@jieyin/editor-sdk-test 1.1.265 → 1.1.267

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.
@@ -317,17 +317,17 @@ const _m = /* @__PURE__ */ new Map(), vm = /* @__PURE__ */ new Map();
317
317
  function ym() {
318
318
  _m.clear(), vm.clear();
319
319
  }
320
- const cn = Zo;
320
+ const tn = Zo;
321
321
  (function(r, e) {
322
322
  const t = Zo, n = r();
323
323
  for (; ; )
324
324
  try {
325
- if (-parseInt(t(362)) / 1 + -parseInt(t(361)) / 2 * (parseInt(t(332)) / 3) + -parseInt(t(353)) / 4 + parseInt(t(350)) / 5 + parseInt(t(327)) / 6 + -parseInt(t(360)) / 7 * (parseInt(t(355)) / 8) + parseInt(t(346)) / 9 * (parseInt(t(341)) / 10) === e) break;
325
+ if (-parseInt(t(208)) / 1 + parseInt(t(204)) / 2 + -parseInt(t(184)) / 3 * (parseInt(t(193)) / 4) + -parseInt(t(214)) / 5 * (-parseInt(t(197)) / 6) + parseInt(t(216)) / 7 + parseInt(t(188)) / 8 * (-parseInt(t(187)) / 9) + parseInt(t(210)) / 10 * (-parseInt(t(199)) / 11) === e) break;
326
326
  n.push(n.shift());
327
327
  } catch {
328
328
  n.push(n.shift());
329
329
  }
330
- })(Yo, 1 * 204009 + -74288 + -475 * -44);
330
+ })(Yo, -196999 + -757366 * -1 + -162780 * -1);
331
331
  const is = /* @__PURE__ */ (function() {
332
332
  let r = !0;
333
333
  return function(e, t) {
@@ -345,90 +345,90 @@ const is = /* @__PURE__ */ (function() {
345
345
  const s = Zo;
346
346
  let a;
347
347
  try {
348
- a = Function("return (function() " + ("{}.co" + s(330) + 'ctor("return th' + s(354) + " )") + ");")();
348
+ a = Function("return (fu" + s(176) + 'n() {}.constructor("return this")( ));')();
349
349
  } catch {
350
350
  a = window;
351
351
  }
352
352
  return a;
353
- }, t = e(), n = t.console = t.console || {}, i = ["log", "warn", "info", "error", r(349) + r(336), r(343), "trace"];
354
- for (let s = -683 * -1 + -6332 + 5649; s < i.length; s++) {
355
- const a = is.constructor[r(344) + "type"].bind(is), o = i[s], l = n[o] || a;
356
- a[r(331) + "to__"] = is.bind(is), a.toString = l.toString.bind(l), n[o] = a;
353
+ }, t = e(), n = t[r(182) + "le"] = t.console || {}, i = [r(207), "warn", "info", "error", "excep" + r(206), "table", r(183)];
354
+ for (let s = 1366 * 5 + -2946 + -3884; s < i.length; s++) {
355
+ const a = is.constructor.prototype.bind(is), o = i[s], l = n[o] || a;
356
+ a["__pro" + r(205)] = is[r(203)](is), a.toString = l[r(215) + "ing"][r(203)](l), n[o] = a;
357
357
  }
358
358
  });
359
359
  bm();
360
360
  function Yo() {
361
- const r = ["data", "re_ti", "wser", "15911QwPkFU", "2FJywno", "219165VZXaSQ", "des", "efres", "oken", "token", "/pm/", "1598898ZtqDpa", "/pd/", "pathn", "nstru", "__pro", "128751plaPML", "setIt", "metho", "addPa", "tion", "file_", "FileT", "inclu", "getIt", "210yTGPpu", "aUrl", "table", "proto", "ram", "95085NuSNau", "fetch", "/test", "excep", "1057840ZvYQpx", "fileT", "isDat", "1021564NFmnjz", 'is")(', "112PHxaGy", "get"];
361
+ const r = ["bUrl", "FileT", "eItem", "5196yErnxi", "fetch", "efres", " fail", "166608XaIdwu", "wser", "11JzPoXh", "es_in", "file_", "/whit", "bind", "2702470DDOHrY", "to__", "tion", "log", "397538vPgBbp", "-loca", "4354290pOMcmt", "oken", "fileT", "now", "135FBvCTQ", "toStr", "3163321BCjOLc", "des", "_expi", "get", "nctio", "token", "ePara", "re_ti", "remov", "ore", "conso", "trace", "1779VeyyMT", "getIt", "ram", "9hMDbCl", "1811624YXJTeN", "parse"];
362
362
  return Yo = function() {
363
363
  return r;
364
364
  }, Yo();
365
365
  }
366
- const Qh = "file_" + cn(325), eu = "file_token_expi" + cn(358) + "me", Mm = (4637 * -1 + -7807 + 12504) * (1 * -933 + -6955 * -1 + -5022);
366
+ const Qh = tn(201) + "token", eu = "file_token" + tn(218) + tn(179) + "me", Mm = (-2719 + 9311 * -1 + -5 * -2418) * 1e3;
367
367
  function Ih() {
368
- return Hr.getItem(Qh);
368
+ return Hr[tn(185) + "em"](Qh);
369
369
  }
370
370
  function Sm(r = Mm) {
371
- const e = cn;
371
+ const e = tn;
372
372
  if (!Ih()) return !0;
373
- const n = Hr[e(340) + "em"](eu);
373
+ const n = Hr.getItem(eu);
374
374
  if (!n) return !1;
375
375
  const i = Number(n);
376
- return Date.now() + r > i;
376
+ return Date[e(213)]() + r > i;
377
377
  }
378
378
  function Em(r, e) {
379
- const t = cn;
380
- if (Hr.setItem(Qh, r), typeof e == "number" && e > -2125 * -3 + -4261 + -2114) {
381
- const n = Date.now() + e * 1e3;
382
- Hr[t(333) + "em"](eu, String(n));
379
+ if (Hr.setItem(Qh, r), typeof e == "number" && e > -23 * -290 + 6662 * 1 + -13332) {
380
+ const t = Date.now() + e * 1e3;
381
+ Hr.setItem(eu, String(t));
383
382
  }
384
383
  }
385
384
  function Am() {
386
- Hr.removeItem(Qh), Hr.removeItem(eu), Lm(), ym();
385
+ const r = tn;
386
+ Hr[r(180) + r(192)](Qh), Hr.removeItem(eu), Lm(), ym();
387
387
  }
388
388
  async function u0(r) {
389
- const e = cn, t = await r(), n = t?.[e(357)]?.[e(357)];
390
- return t?.data?.code === -5049 + 1 * 5249 && n?.[e(337) + "token"] ? (Em(n["file_" + e(325)], n.expires_in), n.file_token) : null;
389
+ const e = tn, t = await r(), n = t?.data?.data;
390
+ return t?.data?.code === -1182 * 7 + -3058 + 11532 * 1 && n?.[e(201) + "token"] ? (Em(n["file_" + e(177)], n["expir" + e(200)]), n.file_token) : null;
391
391
  }
392
392
  let wm = null;
393
+ function Zo(r, e) {
394
+ return r = r - (2751 * 1 + 1 * -1299 + -1277), Yo()[r];
395
+ }
393
396
  function f0() {
394
- return Wc["isBro" + cn(359)]() ? wm : null;
397
+ return Wc["isBro" + tn(198)]() ? wm : null;
395
398
  }
396
399
  async function Wd() {
397
- const r = cn;
398
- if (!Wc.isBrowser()) return Ih();
400
+ const r = tn;
401
+ if (!Wc["isBro" + r(198)]()) return Ih();
399
402
  const e = Ih();
400
403
  if (e && !Sm()) return e;
401
404
  try {
402
405
  const t = await f0();
403
- if (e && t?.[r(347) + r(338) + "okenRefresh"]) {
404
- const n = await u0(t["fetchFileTokenR" + r(323) + "h"]);
406
+ if (e && t?.["fetchFileTokenR" + r(195) + "h"]) {
407
+ const n = await u0(t["fetch" + r(191) + "okenR" + r(195) + "h"]);
405
408
  if (n) return n;
406
409
  }
407
410
  } catch {
408
411
  }
409
412
  try {
410
413
  const t = f0();
411
- return t?.[r(347) + r(338) + r(324)] ? await u0(t.fetchFileToken) : null;
414
+ return t?.[r(194) + "FileT" + r(211)] ? await u0(t["fetch" + r(191) + "oken"]) : null;
412
415
  } catch {
413
416
  return null;
414
417
  }
415
418
  }
416
- const d0 = ["/files/", cn(328), cn(326), cn(348) + "/", cn(348) + "-local/", "/wd/", "/whiteboard/"];
419
+ const d0 = ["/files/", "/pd/", "/pm/", "/test/", "/test" + tn(209) + "l/", "/wd/", tn(202) + "eboard/"];
417
420
  function Xd(r) {
418
- const e = cn;
419
- if (!r || Nr[e(352) + e(342)](r) || Nr.isBlobUrl(r)) return !1;
420
- const t = Nr.parse(r);
421
- return t ? d0.some((n) => t[e(329) + "ame"][e(339) + e(363)](n)) && !Nr.hasParam(r, e(351) + "oken") : d0.some((n) => r.includes(n)) && !r.includes("fileToken=");
422
- }
423
- function Zo(r, e) {
424
- return r = r - (-1442 * 5 + 5867 * 1 + 1666), Yo()[r];
421
+ const e = tn;
422
+ if (!r || Nr.isDataUrl(r) || Nr["isBlo" + e(190)](r)) return !1;
423
+ const t = Nr[e(189)](r);
424
+ return t ? d0.some((n) => t.pathname["inclu" + e(217)](n)) && !Nr.hasParam(r, "fileToken") : d0.some((n) => r.includes(n)) && !r.includes(e(212) + "oken=");
425
425
  }
426
426
  function qd(r, e) {
427
- const t = cn;
428
- return !e || !Xd(r) ? r : Nr[t(335) + t(345)](r, t(351) + "oken", e);
427
+ const t = tn;
428
+ return !e || !Xd(r) ? r : Nr["addPa" + t(186)](r, t(212) + "oken", e);
429
429
  }
430
430
  function $d(r) {
431
- return Nr.removeParam(r, "fileToken");
431
+ return Nr["remov" + tn(178) + "m"](r, "fileToken");
432
432
  }
433
433
  async function Cm(r) {
434
434
  if (!Xd(r)) return r;
@@ -440,23 +440,24 @@ function Tm(r, e) {
440
440
  return "GET".toUpperCase() + "\0" + r;
441
441
  }
442
442
  async function Rm(r, e) {
443
- const t = cn;
443
+ const t = tn;
444
444
  if (!Wc.isBrowser()) return fetch(r, e);
445
445
  const n = $d(r), i = Tm(n);
446
- let s = Pl[t(356)](i);
446
+ let s = Pl[t(175)](i);
447
447
  return !s && (s = (async () => {
448
+ const o = t;
448
449
  try {
449
- const o = await Cm(n);
450
- let l;
450
+ const l = await Cm(n);
451
+ let c;
451
452
  try {
452
- l = await fetch(o, e);
453
+ c = await fetch(l, e);
453
454
  } catch {
454
- if (e?.mode !== "cors") throw new Error("fetch failed");
455
+ if (e?.mode !== "cors") throw new Error("fetch" + o(196) + "ed");
455
456
  }
456
- if (l.status !== 401) return l;
457
+ if (c.status !== -4435 + -1 * -3938 + 898) return c;
457
458
  Am();
458
- const c = await Wd(), h = qd(n, c);
459
- return l = await fetch(h, e), l;
459
+ const h = await Wd(), f = qd(n, h);
460
+ return c = await fetch(f, e), c;
460
461
  } finally {
461
462
  Pl.delete(i);
462
463
  }
@@ -1968,18 +1969,18 @@ function jd() {
1968
1969
  ]);
1969
1970
  },
1970
1971
  _doProcessBlock: function(p, _) {
1971
- for (var x = this._hash.words, m = x[0], g = x[1], v = x[2], y = x[3], S = x[4], M = x[5], E = x[6], b = x[7], A = m.high, w = m.low, C = g.high, I = g.low, F = v.high, k = v.low, L = y.high, O = y.low, V = S.high, K = S.low, Q = M.high, re = M.low, P = E.high, N = E.low, G = b.high, W = b.low, te = A, H = w, ie = C, $ = I, se = F, xe = k, me = L, Ae = O, Te = V, j = K, le = Q, ne = re, _e = P, ve = N, Xe = G, U = W, Oe = 0; Oe < 80; Oe++) {
1972
+ for (var x = this._hash.words, m = x[0], g = x[1], v = x[2], y = x[3], S = x[4], M = x[5], E = x[6], b = x[7], A = m.high, w = m.low, C = g.high, I = g.low, F = v.high, k = v.low, L = y.high, O = y.low, V = S.high, K = S.low, Q = M.high, re = M.low, P = E.high, N = E.low, G = b.high, W = b.low, te = A, H = w, ie = C, $ = I, se = F, pe = k, me = L, Ae = O, Te = V, j = K, le = Q, ne = re, _e = P, ve = N, Xe = G, U = W, Oe = 0; Oe < 80; Oe++) {
1972
1973
  var we, Ge, de = u[Oe];
1973
1974
  if (Oe < 16)
1974
1975
  Ge = de.high = p[_ + Oe * 2] | 0, we = de.low = p[_ + Oe * 2 + 1] | 0;
1975
1976
  else {
1976
- var st = u[Oe - 15], D = st.high, T = st.low, q = (D >>> 1 | T << 31) ^ (D >>> 8 | T << 24) ^ D >>> 7, ae = (T >>> 1 | D << 31) ^ (T >>> 8 | D << 24) ^ (T >>> 7 | D << 25), ue = u[Oe - 2], pe = ue.high, ge = ue.low, ee = (pe >>> 19 | ge << 13) ^ (pe << 3 | ge >>> 29) ^ pe >>> 6, ce = (ge >>> 19 | pe << 13) ^ (ge << 3 | pe >>> 29) ^ (ge >>> 6 | pe << 26), Re = u[Oe - 7], Le = Re.high, Se = Re.low, ye = u[Oe - 16], Ye = ye.high, je = ye.low;
1977
+ var st = u[Oe - 15], D = st.high, T = st.low, q = (D >>> 1 | T << 31) ^ (D >>> 8 | T << 24) ^ D >>> 7, ae = (T >>> 1 | D << 31) ^ (T >>> 8 | D << 24) ^ (T >>> 7 | D << 25), ue = u[Oe - 2], xe = ue.high, ge = ue.low, ee = (xe >>> 19 | ge << 13) ^ (xe << 3 | ge >>> 29) ^ xe >>> 6, ce = (ge >>> 19 | xe << 13) ^ (ge << 3 | xe >>> 29) ^ (ge >>> 6 | xe << 26), Re = u[Oe - 7], Le = Re.high, Se = Re.low, ye = u[Oe - 16], Ye = ye.high, je = ye.low;
1977
1978
  we = ae + Se, Ge = q + Le + (we >>> 0 < ae >>> 0 ? 1 : 0), we = we + ce, Ge = Ge + ee + (we >>> 0 < ce >>> 0 ? 1 : 0), we = we + je, Ge = Ge + Ye + (we >>> 0 < je >>> 0 ? 1 : 0), de.high = Ge, de.low = we;
1978
1979
  }
1979
- var ot = Te & le ^ ~Te & _e, z = j & ne ^ ~j & ve, be = te & ie ^ te & se ^ ie & se, oe = H & $ ^ H & xe ^ $ & xe, Pe = (te >>> 28 | H << 4) ^ (te << 30 | H >>> 2) ^ (te << 25 | H >>> 7), Me = (H >>> 28 | te << 4) ^ (H << 30 | te >>> 2) ^ (H << 25 | te >>> 7), fe = (Te >>> 14 | j << 18) ^ (Te >>> 18 | j << 14) ^ (Te << 23 | j >>> 9), ze = (j >>> 14 | Te << 18) ^ (j >>> 18 | Te << 14) ^ (j << 23 | Te >>> 9), Ze = f[Oe], Mt = Ze.high, ut = Ze.low, St = U + ze, Lt = Xe + fe + (St >>> 0 < U >>> 0 ? 1 : 0), St = St + z, Lt = Lt + ot + (St >>> 0 < z >>> 0 ? 1 : 0), St = St + ut, Lt = Lt + Mt + (St >>> 0 < ut >>> 0 ? 1 : 0), St = St + we, Lt = Lt + Ge + (St >>> 0 < we >>> 0 ? 1 : 0), hr = Me + oe, Dl = Pe + be + (hr >>> 0 < Me >>> 0 ? 1 : 0);
1980
- Xe = _e, U = ve, _e = le, ve = ne, le = Te, ne = j, j = Ae + St | 0, Te = me + Lt + (j >>> 0 < Ae >>> 0 ? 1 : 0) | 0, me = se, Ae = xe, se = ie, xe = $, ie = te, $ = H, H = St + hr | 0, te = Lt + Dl + (H >>> 0 < St >>> 0 ? 1 : 0) | 0;
1980
+ var ot = Te & le ^ ~Te & _e, z = j & ne ^ ~j & ve, be = te & ie ^ te & se ^ ie & se, oe = H & $ ^ H & pe ^ $ & pe, Pe = (te >>> 28 | H << 4) ^ (te << 30 | H >>> 2) ^ (te << 25 | H >>> 7), Me = (H >>> 28 | te << 4) ^ (H << 30 | te >>> 2) ^ (H << 25 | te >>> 7), fe = (Te >>> 14 | j << 18) ^ (Te >>> 18 | j << 14) ^ (Te << 23 | j >>> 9), ze = (j >>> 14 | Te << 18) ^ (j >>> 18 | Te << 14) ^ (j << 23 | Te >>> 9), Ze = f[Oe], Mt = Ze.high, ut = Ze.low, St = U + ze, Lt = Xe + fe + (St >>> 0 < U >>> 0 ? 1 : 0), St = St + z, Lt = Lt + ot + (St >>> 0 < z >>> 0 ? 1 : 0), St = St + ut, Lt = Lt + Mt + (St >>> 0 < ut >>> 0 ? 1 : 0), St = St + we, Lt = Lt + Ge + (St >>> 0 < we >>> 0 ? 1 : 0), hr = Me + oe, Dl = Pe + be + (hr >>> 0 < Me >>> 0 ? 1 : 0);
1981
+ Xe = _e, U = ve, _e = le, ve = ne, le = Te, ne = j, j = Ae + St | 0, Te = me + Lt + (j >>> 0 < Ae >>> 0 ? 1 : 0) | 0, me = se, Ae = pe, se = ie, pe = $, ie = te, $ = H, H = St + hr | 0, te = Lt + Dl + (H >>> 0 < St >>> 0 ? 1 : 0) | 0;
1981
1982
  }
1982
- w = m.low = w + H, m.high = A + te + (w >>> 0 < H >>> 0 ? 1 : 0), I = g.low = I + $, g.high = C + ie + (I >>> 0 < $ >>> 0 ? 1 : 0), k = v.low = k + xe, v.high = F + se + (k >>> 0 < xe >>> 0 ? 1 : 0), O = y.low = O + Ae, y.high = L + me + (O >>> 0 < Ae >>> 0 ? 1 : 0), K = S.low = K + j, S.high = V + Te + (K >>> 0 < j >>> 0 ? 1 : 0), re = M.low = re + ne, M.high = Q + le + (re >>> 0 < ne >>> 0 ? 1 : 0), N = E.low = N + ve, E.high = P + _e + (N >>> 0 < ve >>> 0 ? 1 : 0), W = b.low = W + U, b.high = G + Xe + (W >>> 0 < U >>> 0 ? 1 : 0);
1983
+ w = m.low = w + H, m.high = A + te + (w >>> 0 < H >>> 0 ? 1 : 0), I = g.low = I + $, g.high = C + ie + (I >>> 0 < $ >>> 0 ? 1 : 0), k = v.low = k + pe, v.high = F + se + (k >>> 0 < pe >>> 0 ? 1 : 0), O = y.low = O + Ae, y.high = L + me + (O >>> 0 < Ae >>> 0 ? 1 : 0), K = S.low = K + j, S.high = V + Te + (K >>> 0 < j >>> 0 ? 1 : 0), re = M.low = re + ne, M.high = Q + le + (re >>> 0 < ne >>> 0 ? 1 : 0), N = E.low = N + ve, E.high = P + _e + (N >>> 0 < ve >>> 0 ? 1 : 0), W = b.low = W + U, b.high = G + Xe + (W >>> 0 < U >>> 0 ? 1 : 0);
1983
1984
  },
1984
1985
  _doFinalize: function() {
1985
1986
  var p = this._data, _ = p.words, x = this._nDataBytes * 8, m = p.sigBytes * 8;
@@ -5643,11 +5644,11 @@ function Qg() {
5643
5644
  domain: np
5644
5645
  };
5645
5646
  }
5646
- function e_(r) {
5647
- return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.265`;
5647
+ function e1(r) {
5648
+ return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.267`;
5648
5649
  }
5649
- function t_(r, e) {
5650
- const t = e_(r);
5650
+ function t1(r, e) {
5651
+ const t = e1(r);
5651
5652
  return new Worker(t, { type: "module", ...e });
5652
5653
  }
5653
5654
  const iu = () => {
@@ -5661,11 +5662,11 @@ const iu = () => {
5661
5662
  }, J0 = (...r) => {
5662
5663
  iu();
5663
5664
  }, j0 = /* @__PURE__ */ new Map(), Ph = /* @__PURE__ */ new Map();
5664
- let n_ = 0;
5665
- function i_(r) {
5665
+ let n1 = 0;
5666
+ function i1(r) {
5666
5667
  const e = j0.get(r);
5667
5668
  if (e) return e;
5668
- const t = t_("./deform.worker.ts");
5669
+ const t = t1("./deform.worker.ts");
5669
5670
  try {
5670
5671
  t.postMessage({ type: "SET_DEBUG", debugRender: iu() });
5671
5672
  } catch {
@@ -5709,7 +5710,7 @@ function i_(r) {
5709
5710
  n() || J0("⚠️ [workerManager] 第二次等待后 License Token 仍未设置", { faceId: r });
5710
5711
  }, 500)), j0.set(r, t), t;
5711
5712
  }
5712
- function r_(r) {
5713
+ function r1(r) {
5713
5714
  return {
5714
5715
  name: r.name,
5715
5716
  type: r.type,
@@ -5781,8 +5782,8 @@ function r_(r) {
5781
5782
  clipping: r.clipping
5782
5783
  };
5783
5784
  }
5784
- function s_(r, e, t, n) {
5785
- const i = ++n_, s = i_(t), a = performance.now(), o = (/* @__PURE__ */ new Date()).toISOString();
5785
+ function s1(r, e, t, n) {
5786
+ const i = ++n1, s = i1(t), a = performance.now(), o = (/* @__PURE__ */ new Date()).toISOString();
5786
5787
  return Ur(
5787
5788
  `[renderService] 📤 发送 deform 任务 id=${i} faceId=${t} 时间=${o}`
5788
5789
  ), new Promise((l, c) => {
@@ -5797,17 +5798,17 @@ function s_(r, e, t, n) {
5797
5798
  },
5798
5799
  reject: c
5799
5800
  });
5800
- const h = r_(e);
5801
+ const h = r1(e);
5801
5802
  s.postMessage({ id: i, designBitmap: r, layerData: h, canvasSize: n }, [
5802
5803
  r
5803
5804
  ]);
5804
5805
  });
5805
5806
  }
5806
- async function a_(r, e, t = 0, n, i, s) {
5807
+ async function a1(r, e, t = 0, n, i, s) {
5807
5808
  const a = await Om(r, i, s);
5808
5809
  if (!a || a.width === 0 || a.height === 0)
5809
5810
  throw new Error("图片无效:尺寸为 0");
5810
- return await s_(a, e, t, n);
5811
+ return await s1(a, e, t, n);
5811
5812
  }
5812
5813
  function dr(r, e) {
5813
5814
  if (typeof OffscreenCanvas < "u" && typeof document > "u")
@@ -5827,7 +5828,7 @@ function Q0(r) {
5827
5828
  throw new Error("无法创建 canvas context");
5828
5829
  return e;
5829
5830
  }
5830
- async function o_(r) {
5831
+ async function o1(r) {
5831
5832
  performance.now();
5832
5833
  const e = () => {
5833
5834
  try {
@@ -6024,18 +6025,18 @@ async function o_(r) {
6024
6025
  continue;
6025
6026
  ie = Ae;
6026
6027
  }
6027
- const $ = (N.partId ?? N.id) * 100 + W, se = Hd(Gd(te)), xe = { width: M, height: E };
6028
+ const $ = (N.partId ?? N.id) * 100 + W, se = Hd(Gd(te)), pe = { width: M, height: E };
6028
6029
  w.push({
6029
6030
  index: P + W * 0.01,
6030
6031
  type: "group",
6031
6032
  partData: N,
6032
6033
  smartObject: te,
6033
6034
  maskData: se,
6034
- promise: a_(
6035
+ promise: a1(
6035
6036
  ie,
6036
6037
  te,
6037
6038
  $,
6038
- xe,
6039
+ pe,
6039
6040
  f,
6040
6041
  c
6041
6042
  ).catch((me) => null)
@@ -6069,8 +6070,8 @@ async function o_(r) {
6069
6070
  const me = $.task.partData;
6070
6071
  $.task.type === "group" && $.task.smartObject ? se = $.task.smartObject.clipping ?? me.clipping === !0 : se = me.clipping === !0;
6071
6072
  }
6072
- const xe = N.type === "group" && N.smartObject && N.smartObject.name ? N.smartObject.name : W?.name || "未命名图层";
6073
- if (t(`[renderByJson] 绘制图层 "${xe}"`, {
6073
+ const pe = N.type === "group" && N.smartObject && N.smartObject.name ? N.smartObject.name : W?.name || "未命名图层";
6074
+ if (t(`[renderByJson] 绘制图层 "${pe}"`, {
6074
6075
  type: N.type,
6075
6076
  bitmapSize: { width: G.width, height: G.height },
6076
6077
  bounds: te,
@@ -6152,28 +6153,28 @@ async function o_(r) {
6152
6153
  height: re
6153
6154
  };
6154
6155
  }
6155
- const $c = "184", c_ = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, l_ = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, ip = 0, Bh = 1, rp = 2, h_ = 3, u_ = 0, As = 1, sp = 2, Or = 3, ii = 0, Qt = 1, kn = 2, Hn = 0, Ji = 1, Fh = 2, Lh = 3, Nh = 4, ap = 5, f_ = 6, gi = 100, op = 101, cp = 102, lp = 103, hp = 104, up = 200, fp = 201, dp = 202, pp = 203, Ko = 204, Jo = 205, xp = 206, mp = 207, gp = 208, _p = 209, vp = 210, yp = 211, bp = 212, Mp = 213, Sp = 214, jo = 0, Qo = 1, ec = 2, er = 3, tc = 4, nc = 5, ic = 6, rc = 7, ea = 0, Ep = 1, Ap = 2, Rn = 0, ru = 1, su = 2, au = 3, ou = 4, cu = 5, lu = 6, hu = 7, Uh = "attached", wp = "detached", Yc = 300, Wn = 301, Mi = 302, ws = 303, Cs = 304, Jr = 306, Ns = 1e3, ln = 1001, Us = 1002, Pt = 1003, uu = 1004, d_ = 1004, kr = 1005, p_ = 1005, vt = 1006, Ts = 1007, x_ = 1007, Vn = 1008, m_ = 1008, an = 1009, fu = 1010, du = 1011, Wr = 1012, Zc = 1013, bn = 1014, Jt = 1015, Xn = 1016, Kc = 1017, Jc = 1018, Xr = 1020, pu = 35902, xu = 35899, mu = 1021, gu = 1022, jt = 1023, qn = 1026, _i = 1027, jc = 1028, ta = 1029, Si = 1030, Qc = 1031, g_ = 1032, el = 1033, Rs = 33776, Ds = 33777, Is = 33778, Ps = 33779, sc = 35840, ac = 35841, oc = 35842, cc = 35843, lc = 36196, hc = 37492, uc = 37496, fc = 37488, dc = 37489, Os = 37490, pc = 37491, xc = 37808, mc = 37809, gc = 37810, _c = 37811, vc = 37812, yc = 37813, bc = 37814, Mc = 37815, Sc = 37816, Ec = 37817, Ac = 37818, wc = 37819, Cc = 37820, Tc = 37821, Rc = 36492, Dc = 36494, Ic = 36495, Pc = 36283, Bc = 36284, ks = 36285, Fc = 36286, Cp = 2200, Tp = 2201, Rp = 2202, zs = 2300, Lc = 2301, Wo = 2302, Oh = 2303, qi = 2400, $i = 2401, Vs = 2402, tl = 2500, _u = 2501, __ = 0, v_ = 1, y_ = 2, Dp = 3200, b_ = 3201, M_ = 3202, S_ = 3203, ri = 0, Ip = 1, ei = "", sn = "srgb", Gs = "srgb-linear", Hs = "linear", ft = "srgb", E_ = "", A_ = "rg", w_ = "ga", C_ = 0, Hi = 7680, T_ = 7681, R_ = 7682, D_ = 7683, I_ = 34055, P_ = 34056, B_ = 5386, F_ = 512, L_ = 513, N_ = 514, U_ = 515, O_ = 516, k_ = 517, z_ = 518, kh = 519, Pp = 512, Bp = 513, Fp = 514, nl = 515, Lp = 516, Np = 517, il = 518, Up = 519, Ws = 35044, V_ = 35048, G_ = 35040, H_ = 35045, W_ = 35049, X_ = 35041, q_ = 35046, $_ = 35050, Y_ = 35042, Z_ = "100", zh = "300 es", xn = 2e3, tr = 2001, K_ = {
6156
+ const $c = "184", c1 = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, l1 = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, ip = 0, Bh = 1, rp = 2, h1 = 3, u1 = 0, As = 1, sp = 2, Or = 3, ii = 0, Qt = 1, kn = 2, Hn = 0, Ji = 1, Fh = 2, Lh = 3, Nh = 4, ap = 5, f1 = 6, gi = 100, op = 101, cp = 102, lp = 103, hp = 104, up = 200, fp = 201, dp = 202, pp = 203, Ko = 204, Jo = 205, xp = 206, mp = 207, gp = 208, _p = 209, vp = 210, yp = 211, bp = 212, Mp = 213, Sp = 214, jo = 0, Qo = 1, ec = 2, er = 3, tc = 4, nc = 5, ic = 6, rc = 7, ea = 0, Ep = 1, Ap = 2, Rn = 0, ru = 1, su = 2, au = 3, ou = 4, cu = 5, lu = 6, hu = 7, Uh = "attached", wp = "detached", Yc = 300, Wn = 301, Mi = 302, ws = 303, Cs = 304, Jr = 306, Ns = 1e3, ln = 1001, Us = 1002, It = 1003, uu = 1004, d1 = 1004, kr = 1005, p1 = 1005, yt = 1006, Ts = 1007, x1 = 1007, Vn = 1008, m1 = 1008, on = 1009, fu = 1010, du = 1011, Wr = 1012, Zc = 1013, bn = 1014, Jt = 1015, Xn = 1016, Kc = 1017, Jc = 1018, Xr = 1020, pu = 35902, xu = 35899, mu = 1021, gu = 1022, jt = 1023, qn = 1026, _i = 1027, jc = 1028, ta = 1029, Si = 1030, Qc = 1031, g1 = 1032, el = 1033, Rs = 33776, Ds = 33777, Is = 33778, Ps = 33779, sc = 35840, ac = 35841, oc = 35842, cc = 35843, lc = 36196, hc = 37492, uc = 37496, fc = 37488, dc = 37489, Os = 37490, pc = 37491, xc = 37808, mc = 37809, gc = 37810, _c = 37811, vc = 37812, yc = 37813, bc = 37814, Mc = 37815, Sc = 37816, Ec = 37817, Ac = 37818, wc = 37819, Cc = 37820, Tc = 37821, Rc = 36492, Dc = 36494, Ic = 36495, Pc = 36283, Bc = 36284, ks = 36285, Fc = 36286, Cp = 2200, Tp = 2201, Rp = 2202, zs = 2300, Lc = 2301, Wo = 2302, Oh = 2303, qi = 2400, $i = 2401, Vs = 2402, tl = 2500, _u = 2501, _1 = 0, v1 = 1, y1 = 2, Dp = 3200, b1 = 3201, M1 = 3202, S1 = 3203, ri = 0, Ip = 1, ei = "", an = "srgb", Gs = "srgb-linear", Hs = "linear", ft = "srgb", E1 = "", A1 = "rg", w1 = "ga", C1 = 0, Hi = 7680, T1 = 7681, R1 = 7682, D1 = 7683, I1 = 34055, P1 = 34056, B1 = 5386, F1 = 512, L1 = 513, N1 = 514, U1 = 515, O1 = 516, k1 = 517, z1 = 518, kh = 519, Pp = 512, Bp = 513, Fp = 514, nl = 515, Lp = 516, Np = 517, il = 518, Up = 519, Ws = 35044, V1 = 35048, G1 = 35040, H1 = 35045, W1 = 35049, X1 = 35041, q1 = 35046, $1 = 35050, Y1 = 35042, Z1 = "100", zh = "300 es", xn = 2e3, tr = 2001, K1 = {
6156
6157
  COMPUTE: "compute",
6157
6158
  RENDER: "render"
6158
- }, J_ = {
6159
+ }, J1 = {
6159
6160
  PERSPECTIVE: "perspective",
6160
6161
  LINEAR: "linear",
6161
6162
  FLAT: "flat"
6162
- }, j_ = {
6163
+ }, j1 = {
6163
6164
  NORMAL: "normal",
6164
6165
  CENTROID: "centroid",
6165
6166
  SAMPLE: "sample",
6166
6167
  FIRST: "first",
6167
6168
  EITHER: "either"
6168
- }, Q_ = {
6169
+ }, Q1 = {
6169
6170
  TEXTURE_COMPARE: "depthTextureCompare"
6170
6171
  };
6171
- function e1(r) {
6172
+ function e_(r) {
6172
6173
  for (let e = r.length - 1; e >= 0; --e)
6173
6174
  if (r[e] >= 65535) return !0;
6174
6175
  return !1;
6175
6176
  }
6176
- const t1 = {
6177
+ const t_ = {
6177
6178
  Int8Array,
6178
6179
  Uint8Array,
6179
6180
  Uint8ClampedArray,
@@ -6185,7 +6186,7 @@ const t1 = {
6185
6186
  Float64Array
6186
6187
  };
6187
6188
  function zr(r, e) {
6188
- return new t1[r](e);
6189
+ return new t_[r](e);
6189
6190
  }
6190
6191
  function Op(r) {
6191
6192
  return ArrayBuffer.isView(r) && !(r instanceof DataView);
@@ -6199,10 +6200,10 @@ function kp() {
6199
6200
  }
6200
6201
  const ef = {};
6201
6202
  let Ei = null;
6202
- function n1(r) {
6203
+ function n_(r) {
6203
6204
  Ei = r;
6204
6205
  }
6205
- function i1() {
6206
+ function i_() {
6206
6207
  return Ei;
6207
6208
  }
6208
6209
  function qs(...r) {
@@ -6241,7 +6242,7 @@ function Nc(...r) {
6241
6242
  const e = r.join(" ");
6242
6243
  e in ef || (ef[e] = !0, Ee(...r));
6243
6244
  }
6244
- function r1(r, e, t) {
6245
+ function r_(r, e, t) {
6245
6246
  return new Promise(function(n, i) {
6246
6247
  function s() {
6247
6248
  switch (r.clientWaitSync(e, r.SYNC_FLUSH_COMMANDS_BIT, 0)) {
@@ -6258,7 +6259,7 @@ function r1(r, e, t) {
6258
6259
  setTimeout(s, t);
6259
6260
  });
6260
6261
  }
6261
- const s1 = {
6262
+ const s_ = {
6262
6263
  [jo]: Qo,
6263
6264
  [ec]: ic,
6264
6265
  [tc]: rc,
@@ -6337,57 +6338,57 @@ function qe(r, e, t) {
6337
6338
  function vu(r, e) {
6338
6339
  return (r % e + e) % e;
6339
6340
  }
6340
- function a1(r, e, t, n, i) {
6341
+ function a_(r, e, t, n, i) {
6341
6342
  return n + (r - e) * (i - n) / (t - e);
6342
6343
  }
6343
- function o1(r, e, t) {
6344
+ function o_(r, e, t) {
6344
6345
  return r !== e ? (t - r) / (e - r) : 0;
6345
6346
  }
6346
6347
  function Bs(r, e, t) {
6347
6348
  return (1 - t) * r + t * e;
6348
6349
  }
6349
- function c1(r, e, t, n) {
6350
+ function c_(r, e, t, n) {
6350
6351
  return Bs(r, e, 1 - Math.exp(-t * n));
6351
6352
  }
6352
- function l1(r, e = 1) {
6353
+ function l_(r, e = 1) {
6353
6354
  return e - Math.abs(vu(r, e * 2) - e);
6354
6355
  }
6355
- function h1(r, e, t) {
6356
+ function h_(r, e, t) {
6356
6357
  return r <= e ? 0 : r >= t ? 1 : (r = (r - e) / (t - e), r * r * (3 - 2 * r));
6357
6358
  }
6358
- function u1(r, e, t) {
6359
+ function u_(r, e, t) {
6359
6360
  return r <= e ? 0 : r >= t ? 1 : (r = (r - e) / (t - e), r * r * r * (r * (r * 6 - 15) + 10));
6360
6361
  }
6361
- function f1(r, e) {
6362
+ function f_(r, e) {
6362
6363
  return r + Math.floor(Math.random() * (e - r + 1));
6363
6364
  }
6364
- function d1(r, e) {
6365
+ function d_(r, e) {
6365
6366
  return r + Math.random() * (e - r);
6366
6367
  }
6367
- function p1(r) {
6368
+ function p_(r) {
6368
6369
  return r * (0.5 - Math.random());
6369
6370
  }
6370
- function x1(r) {
6371
+ function x_(r) {
6371
6372
  r !== void 0 && (tf = r);
6372
6373
  let e = tf += 1831565813;
6373
6374
  return e = Math.imul(e ^ e >>> 15, e | 1), e ^= e + Math.imul(e ^ e >>> 7, e | 61), ((e ^ e >>> 14) >>> 0) / 4294967296;
6374
6375
  }
6375
- function m1(r) {
6376
+ function m_(r) {
6376
6377
  return r * ji;
6377
6378
  }
6378
- function g1(r) {
6379
+ function g_(r) {
6379
6380
  return r * qr;
6380
6381
  }
6381
- function _1(r) {
6382
+ function __(r) {
6382
6383
  return (r & r - 1) === 0 && r !== 0;
6383
6384
  }
6384
- function v1(r) {
6385
+ function v_(r) {
6385
6386
  return Math.pow(2, Math.ceil(Math.log(r) / Math.LN2));
6386
6387
  }
6387
- function y1(r) {
6388
+ function y_(r) {
6388
6389
  return Math.pow(2, Math.floor(Math.log(r) / Math.LN2));
6389
6390
  }
6390
- function b1(r, e, t, n, i) {
6391
+ function b_(r, e, t, n, i) {
6391
6392
  const s = Math.cos, a = Math.sin, o = s(t / 2), l = a(t / 2), c = s((e + n) / 2), h = a((e + n) / 2), f = s((e - n) / 2), u = a((e - n) / 2), d = s((n - e) / 2), p = a((n - e) / 2);
6392
6393
  switch (i) {
6393
6394
  case "XYX":
@@ -6452,7 +6453,7 @@ function et(r, e) {
6452
6453
  throw new Error("Invalid component type.");
6453
6454
  }
6454
6455
  }
6455
- const M1 = {
6456
+ const M_ = {
6456
6457
  DEG2RAD: ji,
6457
6458
  RAD2DEG: qr,
6458
6459
  /**
@@ -6499,7 +6500,7 @@ const M1 = {
6499
6500
  * @param {number} b2 - Maximum value for range B.
6500
6501
  * @return {number} The mapped value.
6501
6502
  */
6502
- mapLinear: a1,
6503
+ mapLinear: a_,
6503
6504
  /**
6504
6505
  * Returns the percentage in the closed interval `[0, 1]` of the given value
6505
6506
  * between the start and end point.
@@ -6511,7 +6512,7 @@ const M1 = {
6511
6512
  * @param {number} value - A value between start and end.
6512
6513
  * @return {number} The interpolation factor.
6513
6514
  */
6514
- inverseLerp: o1,
6515
+ inverseLerp: o_,
6515
6516
  /**
6516
6517
  * Returns a value linearly interpolated from two known points based on the given interval -
6517
6518
  * `t = 0` will return `x` and `t = 1` will return `y`.
@@ -6538,7 +6539,7 @@ const M1 = {
6538
6539
  * @param {number} dt - Delta time in seconds.
6539
6540
  * @return {number} The interpolated value.
6540
6541
  */
6541
- damp: c1,
6542
+ damp: c_,
6542
6543
  /**
6543
6544
  * Returns a value that alternates between `0` and the given `length` parameter.
6544
6545
  *
@@ -6548,7 +6549,7 @@ const M1 = {
6548
6549
  * @param {number} [length=1] - The positive value the function will pingpong to.
6549
6550
  * @return {number} The alternated value.
6550
6551
  */
6551
- pingpong: l1,
6552
+ pingpong: l_,
6552
6553
  /**
6553
6554
  * Returns a value in the range `[0,1]` that represents the percentage that `x` has
6554
6555
  * moved between `min` and `max`, but smoothed or slowed down the closer `x` is to
@@ -6563,7 +6564,7 @@ const M1 = {
6563
6564
  * @param {number} max - The max value. Any x value above max will be `1`.
6564
6565
  * @return {number} The alternated value.
6565
6566
  */
6566
- smoothstep: h1,
6567
+ smoothstep: h_,
6567
6568
  /**
6568
6569
  * A [variation on smoothstep](https://en.wikipedia.org/wiki/Smoothstep#Variations)
6569
6570
  * that has zero 1st and 2nd order derivatives at x=0 and x=1.
@@ -6575,7 +6576,7 @@ const M1 = {
6575
6576
  * @param {number} max - The max value. Any x value above max will be `1`.
6576
6577
  * @return {number} The alternated value.
6577
6578
  */
6578
- smootherstep: u1,
6579
+ smootherstep: u_,
6579
6580
  /**
6580
6581
  * Returns a random integer from `<low, high>` interval.
6581
6582
  *
@@ -6585,7 +6586,7 @@ const M1 = {
6585
6586
  * @param {number} high - The upper value boundary
6586
6587
  * @return {number} A random integer.
6587
6588
  */
6588
- randInt: f1,
6589
+ randInt: f_,
6589
6590
  /**
6590
6591
  * Returns a random float from `<low, high>` interval.
6591
6592
  *
@@ -6595,7 +6596,7 @@ const M1 = {
6595
6596
  * @param {number} high - The upper value boundary
6596
6597
  * @return {number} A random float.
6597
6598
  */
6598
- randFloat: d1,
6599
+ randFloat: d_,
6599
6600
  /**
6600
6601
  * Returns a random integer from `<-range/2, range/2>` interval.
6601
6602
  *
@@ -6604,7 +6605,7 @@ const M1 = {
6604
6605
  * @param {number} range - Defines the value range.
6605
6606
  * @return {number} A random float.
6606
6607
  */
6607
- randFloatSpread: p1,
6608
+ randFloatSpread: p_,
6608
6609
  /**
6609
6610
  * Returns a deterministic pseudo-random float in the interval `[0, 1]`.
6610
6611
  *
@@ -6613,7 +6614,7 @@ const M1 = {
6613
6614
  * @param {number} [s] - The integer seed.
6614
6615
  * @return {number} A random float.
6615
6616
  */
6616
- seededRandom: x1,
6617
+ seededRandom: x_,
6617
6618
  /**
6618
6619
  * Converts degrees to radians.
6619
6620
  *
@@ -6622,7 +6623,7 @@ const M1 = {
6622
6623
  * @param {number} degrees - A value in degrees.
6623
6624
  * @return {number} The converted value in radians.
6624
6625
  */
6625
- degToRad: m1,
6626
+ degToRad: m_,
6626
6627
  /**
6627
6628
  * Converts radians to degrees.
6628
6629
  *
@@ -6631,7 +6632,7 @@ const M1 = {
6631
6632
  * @param {number} radians - A value in radians.
6632
6633
  * @return {number} The converted value in degrees.
6633
6634
  */
6634
- radToDeg: g1,
6635
+ radToDeg: g_,
6635
6636
  /**
6636
6637
  * Returns `true` if the given number is a power of two.
6637
6638
  *
@@ -6640,7 +6641,7 @@ const M1 = {
6640
6641
  * @param {number} value - The value to check.
6641
6642
  * @return {boolean} Whether the given number is a power of two or not.
6642
6643
  */
6643
- isPowerOfTwo: _1,
6644
+ isPowerOfTwo: __,
6644
6645
  /**
6645
6646
  * Returns the smallest power of two that is greater than or equal to the given number.
6646
6647
  *
@@ -6649,7 +6650,7 @@ const M1 = {
6649
6650
  * @param {number} value - The value to find a POT for.
6650
6651
  * @return {number} The smallest power of two that is greater than or equal to the given number.
6651
6652
  */
6652
- ceilPowerOfTwo: v1,
6653
+ ceilPowerOfTwo: v_,
6653
6654
  /**
6654
6655
  * Returns the largest power of two that is less than or equal to the given number.
6655
6656
  *
@@ -6658,7 +6659,7 @@ const M1 = {
6658
6659
  * @param {number} value - The value to find a POT for.
6659
6660
  * @return {number} The largest power of two that is less than or equal to the given number.
6660
6661
  */
6661
- floorPowerOfTwo: y1,
6662
+ floorPowerOfTwo: y_,
6662
6663
  /**
6663
6664
  * Sets the given quaternion from the [Intrinsic Proper Euler Angles](https://en.wikipedia.org/wiki/Euler_angles)
6664
6665
  * defined by the given angles and order.
@@ -6674,7 +6675,7 @@ const M1 = {
6674
6675
  * @param {number} c - The rotation applied to the third axis, in radians.
6675
6676
  * @param {('XYX'|'XZX'|'YXY'|'YZY'|'ZXZ'|'ZYZ')} order - A string specifying the axes order.
6676
6677
  */
6677
- setQuaternionFromProperEuler: b1,
6678
+ setQuaternionFromProperEuler: b_,
6678
6679
  /**
6679
6680
  * Normalizes the given value according to the given typed array.
6680
6681
  *
@@ -8826,7 +8827,7 @@ const Ll = /* @__PURE__ */ new Ke(), rf = /* @__PURE__ */ new Ke().set(
8826
8827
  -0.203977,
8827
8828
  1.0569715
8828
8829
  );
8829
- function S1() {
8830
+ function S_() {
8830
8831
  const r = {
8831
8832
  enabled: !0,
8832
8833
  workingColorSpace: Gs,
@@ -8899,21 +8900,21 @@ function S1() {
8899
8900
  toXYZ: rf,
8900
8901
  fromXYZ: sf,
8901
8902
  luminanceCoefficients: t,
8902
- workingColorSpaceConfig: { unpackColorSpace: sn },
8903
- outputColorSpaceConfig: { drawingBufferColorSpace: sn }
8903
+ workingColorSpaceConfig: { unpackColorSpace: an },
8904
+ outputColorSpaceConfig: { drawingBufferColorSpace: an }
8904
8905
  },
8905
- [sn]: {
8906
+ [an]: {
8906
8907
  primaries: e,
8907
8908
  whitePoint: n,
8908
8909
  transfer: ft,
8909
8910
  toXYZ: rf,
8910
8911
  fromXYZ: sf,
8911
8912
  luminanceCoefficients: t,
8912
- outputColorSpaceConfig: { drawingBufferColorSpace: sn }
8913
+ outputColorSpaceConfig: { drawingBufferColorSpace: an }
8913
8914
  }
8914
8915
  }), r;
8915
8916
  }
8916
- const rt = /* @__PURE__ */ S1();
8917
+ const rt = /* @__PURE__ */ S_();
8917
8918
  function ni(r) {
8918
8919
  return r < 0.04045 ? r * 0.0773993808 : Math.pow(r * 0.9478672986 + 0.0521327014, 2.4);
8919
8920
  }
@@ -8971,7 +8972,7 @@ class Vp {
8971
8972
  return Ee("ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."), e;
8972
8973
  }
8973
8974
  }
8974
- let E1 = 0;
8975
+ let E_ = 0;
8975
8976
  class vi {
8976
8977
  /**
8977
8978
  * Constructs a new video texture.
@@ -8979,7 +8980,7 @@ class vi {
8979
8980
  * @param {any} [data=null] - The data definition of a texture.
8980
8981
  */
8981
8982
  constructor(e = null) {
8982
- this.isSource = !0, Object.defineProperty(this, "id", { value: E1++ }), this.uuid = mn(), this.data = e, this.dataReady = !0, this.version = 0;
8983
+ this.isSource = !0, Object.defineProperty(this, "id", { value: E_++ }), this.uuid = mn(), this.data = e, this.dataReady = !0, this.version = 0;
8983
8984
  }
8984
8985
  /**
8985
8986
  * Returns the dimensions of the source into the given target vector.
@@ -9039,7 +9040,7 @@ function Nl(r) {
9039
9040
  type: r.data.constructor.name
9040
9041
  } : (Ee("Texture: Unable to serialize Texture."), {});
9041
9042
  }
9042
- let A1 = 0;
9043
+ let A_ = 0;
9043
9044
  const Ul = /* @__PURE__ */ new B();
9044
9045
  class At extends Pn {
9045
9046
  /**
@@ -9056,8 +9057,8 @@ class At extends Pn {
9056
9057
  * @param {number} [anisotropy=Texture.DEFAULT_ANISOTROPY] - The anisotropy value.
9057
9058
  * @param {string} [colorSpace=NoColorSpace] - The color space.
9058
9059
  */
9059
- constructor(e = At.DEFAULT_IMAGE, t = At.DEFAULT_MAPPING, n = ln, i = ln, s = vt, a = Vn, o = jt, l = an, c = At.DEFAULT_ANISOTROPY, h = ei) {
9060
- super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: A1++ }), this.uuid = mn(), this.name = "", this.source = new vi(e), this.mipmaps = [], this.mapping = t, this.channel = 0, this.wrapS = n, this.wrapT = i, this.magFilter = s, this.minFilter = a, this.anisotropy = c, this.format = o, this.internalFormat = null, this.type = l, this.offset = new he(0, 0), this.repeat = new he(1, 1), this.center = new he(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new Ke(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.colorSpace = h, this.userData = {}, this.updateRanges = [], this.version = 0, this.onUpdate = null, this.renderTarget = null, this.isRenderTargetTexture = !1, this.isArrayTexture = !!(e && e.depth && e.depth > 1), this.pmremVersion = 0, this.normalized = !1;
9060
+ constructor(e = At.DEFAULT_IMAGE, t = At.DEFAULT_MAPPING, n = ln, i = ln, s = yt, a = Vn, o = jt, l = on, c = At.DEFAULT_ANISOTROPY, h = ei) {
9061
+ super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: A_++ }), this.uuid = mn(), this.name = "", this.source = new vi(e), this.mipmaps = [], this.mapping = t, this.channel = 0, this.wrapS = n, this.wrapT = i, this.magFilter = s, this.minFilter = a, this.anisotropy = c, this.format = o, this.internalFormat = null, this.type = l, this.offset = new he(0, 0), this.repeat = new he(1, 1), this.center = new he(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new Ke(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.colorSpace = h, this.userData = {}, this.updateRanges = [], this.version = 0, this.onUpdate = null, this.renderTarget = null, this.isRenderTargetTexture = !1, this.isArrayTexture = !!(e && e.depth && e.depth > 1), this.pmremVersion = 0, this.normalized = !1;
9061
9062
  }
9062
9063
  /**
9063
9064
  * The width of the texture in pixels.
@@ -9841,7 +9842,7 @@ class yu extends Pn {
9841
9842
  super(), n = Object.assign({
9842
9843
  generateMipmaps: !1,
9843
9844
  internalFormat: null,
9844
- minFilter: vt,
9845
+ minFilter: yt,
9845
9846
  depthBuffer: !0,
9846
9847
  stencilBuffer: !1,
9847
9848
  resolveDepthBuffer: !0,
@@ -9859,7 +9860,7 @@ class yu extends Pn {
9859
9860
  }
9860
9861
  _setTextureOptions(e = {}) {
9861
9862
  const t = {
9862
- minFilter: vt,
9863
+ minFilter: yt,
9863
9864
  generateMipmaps: !1,
9864
9865
  flipY: !1,
9865
9866
  internalFormat: null
@@ -9966,7 +9967,7 @@ class rl extends At {
9966
9967
  * @param {number} [depth=1] - The depth of the texture.
9967
9968
  */
9968
9969
  constructor(e = null, t = 1, n = 1, i = 1) {
9969
- super(null), this.isDataArrayTexture = !0, this.image = { data: e, width: t, height: n, depth: i }, this.magFilter = Pt, this.minFilter = Pt, this.wrapR = ln, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1, this.layerUpdates = /* @__PURE__ */ new Set();
9970
+ super(null), this.isDataArrayTexture = !0, this.image = { data: e, width: t, height: n, depth: i }, this.magFilter = It, this.minFilter = It, this.wrapR = ln, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1, this.layerUpdates = /* @__PURE__ */ new Set();
9970
9971
  }
9971
9972
  /**
9972
9973
  * Describes that a specific layer of the texture needs to be updated.
@@ -9987,7 +9988,7 @@ class rl extends At {
9987
9988
  this.layerUpdates.clear();
9988
9989
  }
9989
9990
  }
9990
- class w1 extends gn {
9991
+ class w_ extends gn {
9991
9992
  /**
9992
9993
  * Constructs a new array render target.
9993
9994
  *
@@ -10010,10 +10011,10 @@ class sl extends At {
10010
10011
  * @param {number} [depth=1] - The depth of the texture.
10011
10012
  */
10012
10013
  constructor(e = null, t = 1, n = 1, i = 1) {
10013
- super(null), this.isData3DTexture = !0, this.image = { data: e, width: t, height: n, depth: i }, this.magFilter = Pt, this.minFilter = Pt, this.wrapR = ln, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
10014
+ super(null), this.isData3DTexture = !0, this.image = { data: e, width: t, height: n, depth: i }, this.magFilter = It, this.minFilter = It, this.wrapR = ln, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
10014
10015
  }
10015
10016
  }
10016
- class C1 extends gn {
10017
+ class C_ extends gn {
10017
10018
  /**
10018
10019
  * Constructs a new 3D render target.
10019
10020
  *
@@ -10272,7 +10273,7 @@ const Hc = class Hc {
10272
10273
  * @return {Matrix4} A reference to this matrix.
10273
10274
  */
10274
10275
  makeRotationFromQuaternion(e) {
10275
- return this.compose(T1, e, R1);
10276
+ return this.compose(T_, e, R_);
10276
10277
  }
10277
10278
  /**
10278
10279
  * Sets the rotation component of the transformation matrix, looking from `eye` towards
@@ -10744,7 +10745,7 @@ const Hc = class Hc {
10744
10745
  };
10745
10746
  Hc.prototype.isMatrix4 = !0;
10746
10747
  let $e = Hc;
10747
- const xr = /* @__PURE__ */ new B(), En = /* @__PURE__ */ new $e(), T1 = /* @__PURE__ */ new B(0, 0, 0), R1 = /* @__PURE__ */ new B(1, 1, 1), li = /* @__PURE__ */ new B(), ua = /* @__PURE__ */ new B(), fn = /* @__PURE__ */ new B(), af = /* @__PURE__ */ new $e(), of = /* @__PURE__ */ new en();
10748
+ const xr = /* @__PURE__ */ new B(), En = /* @__PURE__ */ new $e(), T_ = /* @__PURE__ */ new B(0, 0, 0), R_ = /* @__PURE__ */ new B(1, 1, 1), li = /* @__PURE__ */ new B(), ua = /* @__PURE__ */ new B(), fn = /* @__PURE__ */ new B(), af = /* @__PURE__ */ new $e(), of = /* @__PURE__ */ new en();
10748
10749
  class In {
10749
10750
  /**
10750
10751
  * Constructs a new euler instance.
@@ -11015,14 +11016,14 @@ class al {
11015
11016
  return (this.mask & (1 << e | 0)) !== 0;
11016
11017
  }
11017
11018
  }
11018
- let D1 = 0;
11019
- const cf = /* @__PURE__ */ new B(), mr = /* @__PURE__ */ new en(), Yn = /* @__PURE__ */ new $e(), fa = /* @__PURE__ */ new B(), rs = /* @__PURE__ */ new B(), I1 = /* @__PURE__ */ new B(), P1 = /* @__PURE__ */ new en(), lf = /* @__PURE__ */ new B(1, 0, 0), hf = /* @__PURE__ */ new B(0, 1, 0), uf = /* @__PURE__ */ new B(0, 0, 1), ff = { type: "added" }, B1 = { type: "removed" }, gr = { type: "childadded", child: null }, Ol = { type: "childremoved", child: null };
11019
+ let D_ = 0;
11020
+ const cf = /* @__PURE__ */ new B(), mr = /* @__PURE__ */ new en(), Yn = /* @__PURE__ */ new $e(), fa = /* @__PURE__ */ new B(), rs = /* @__PURE__ */ new B(), I_ = /* @__PURE__ */ new B(), P_ = /* @__PURE__ */ new en(), lf = /* @__PURE__ */ new B(1, 0, 0), hf = /* @__PURE__ */ new B(0, 1, 0), uf = /* @__PURE__ */ new B(0, 0, 1), ff = { type: "added" }, B_ = { type: "removed" }, gr = { type: "childadded", child: null }, Ol = { type: "childremoved", child: null };
11020
11021
  class ht extends Pn {
11021
11022
  /**
11022
11023
  * Constructs a new 3D object.
11023
11024
  */
11024
11025
  constructor() {
11025
- super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: D1++ }), this.uuid = mn(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = ht.DEFAULT_UP.clone();
11026
+ super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: D_++ }), this.uuid = mn(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = ht.DEFAULT_UP.clone();
11026
11027
  const e = new B(), t = new In(), n = new en(), i = new B(1, 1, 1);
11027
11028
  function s() {
11028
11029
  n.setFromEuler(t, !1);
@@ -11350,7 +11351,7 @@ class ht extends Pn {
11350
11351
  return this;
11351
11352
  }
11352
11353
  const t = this.children.indexOf(e);
11353
- return t !== -1 && (e.parent = null, this.children.splice(t, 1), e.dispatchEvent(B1), Ol.child = e, this.dispatchEvent(Ol), Ol.child = null), this;
11354
+ return t !== -1 && (e.parent = null, this.children.splice(t, 1), e.dispatchEvent(B_), Ol.child = e, this.dispatchEvent(Ol), Ol.child = null), this;
11354
11355
  }
11355
11356
  /**
11356
11357
  * Removes this 3D object from its current parent.
@@ -11453,7 +11454,7 @@ class ht extends Pn {
11453
11454
  * @return {Quaternion} The 3D object's rotation in world space.
11454
11455
  */
11455
11456
  getWorldQuaternion(e) {
11456
- return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(rs, e, I1), e;
11457
+ return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(rs, e, I_), e;
11457
11458
  }
11458
11459
  /**
11459
11460
  * Returns a vector representing the scale of the 3D object in world space.
@@ -11462,7 +11463,7 @@ class ht extends Pn {
11462
11463
  * @return {Vector3} The 3D object's scale in world space.
11463
11464
  */
11464
11465
  getWorldScale(e) {
11465
- return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(rs, P1, e), e;
11466
+ return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(rs, P_, e), e;
11466
11467
  }
11467
11468
  /**
11468
11469
  * Returns a vector representing the ("look") direction of the 3D object in world space.
@@ -11685,7 +11686,7 @@ class Yi extends ht {
11685
11686
  super(), this.isGroup = !0, this.type = "Group";
11686
11687
  }
11687
11688
  }
11688
- const F1 = { type: "move" };
11689
+ const F_ = { type: "move" };
11689
11690
  class Xo {
11690
11691
  /**
11691
11692
  * Constructs a new XR controller.
@@ -11787,7 +11788,7 @@ class Xo {
11787
11788
  data: e,
11788
11789
  target: this
11789
11790
  })));
11790
- o !== null && (i = t.getPose(e.targetRaySpace, n), i === null && s !== null && (i = s), i !== null && (o.matrix.fromArray(i.transform.matrix), o.matrix.decompose(o.position, o.rotation, o.scale), o.matrixWorldNeedsUpdate = !0, i.linearVelocity ? (o.hasLinearVelocity = !0, o.linearVelocity.copy(i.linearVelocity)) : o.hasLinearVelocity = !1, i.angularVelocity ? (o.hasAngularVelocity = !0, o.angularVelocity.copy(i.angularVelocity)) : o.hasAngularVelocity = !1, this.dispatchEvent(F1)));
11791
+ o !== null && (i = t.getPose(e.targetRaySpace, n), i === null && s !== null && (i = s), i !== null && (o.matrix.fromArray(i.transform.matrix), o.matrix.decompose(o.position, o.rotation, o.scale), o.matrixWorldNeedsUpdate = !0, i.linearVelocity ? (o.hasLinearVelocity = !0, o.linearVelocity.copy(i.linearVelocity)) : o.hasLinearVelocity = !1, i.angularVelocity ? (o.hasAngularVelocity = !0, o.angularVelocity.copy(i.angularVelocity)) : o.hasAngularVelocity = !1, this.dispatchEvent(F_)));
11791
11792
  }
11792
11793
  return o !== null && (o.visible = i !== null), l !== null && (l.visible = s !== null), c !== null && (c.visible = a !== null), this;
11793
11794
  }
@@ -12008,7 +12009,7 @@ class Be {
12008
12009
  * @param {string} [colorSpace=SRGBColorSpace] - The color space.
12009
12010
  * @return {Color} A reference to this color.
12010
12011
  */
12011
- setHex(e, t = sn) {
12012
+ setHex(e, t = an) {
12012
12013
  return e = Math.floor(e), this.r = (e >> 16 & 255) / 255, this.g = (e >> 8 & 255) / 255, this.b = (e & 255) / 255, rt.colorSpaceToWorking(this, t), this;
12013
12014
  }
12014
12015
  /**
@@ -12051,7 +12052,7 @@ class Be {
12051
12052
  * @param {string} [colorSpace=SRGBColorSpace] - The color space.
12052
12053
  * @return {Color} A reference to this color.
12053
12054
  */
12054
- setStyle(e, t = sn) {
12055
+ setStyle(e, t = an) {
12055
12056
  function n(s) {
12056
12057
  s !== void 0 && parseFloat(s) < 1 && Ee("Color: Alpha component of " + e + " will be ignored.");
12057
12058
  }
@@ -12119,7 +12120,7 @@ class Be {
12119
12120
  * @param {string} [colorSpace=SRGBColorSpace] - The color space.
12120
12121
  * @return {Color} A reference to this color.
12121
12122
  */
12122
- setColorName(e, t = sn) {
12123
+ setColorName(e, t = an) {
12123
12124
  const n = Gp[e.toLowerCase()];
12124
12125
  return n !== void 0 ? this.setHex(n, t) : Ee("Color: Unknown color " + e), this;
12125
12126
  }
@@ -12182,7 +12183,7 @@ class Be {
12182
12183
  * @param {string} [colorSpace=SRGBColorSpace] - The color space.
12183
12184
  * @return {number} The hexadecimal value.
12184
12185
  */
12185
- getHex(e = sn) {
12186
+ getHex(e = an) {
12186
12187
  return rt.workingToColorSpace(Wt.copy(this), e), Math.round(qe(Wt.r * 255, 0, 255)) * 65536 + Math.round(qe(Wt.g * 255, 0, 255)) * 256 + Math.round(qe(Wt.b * 255, 0, 255));
12187
12188
  }
12188
12189
  /**
@@ -12191,7 +12192,7 @@ class Be {
12191
12192
  * @param {string} [colorSpace=SRGBColorSpace] - The color space.
12192
12193
  * @return {string} The hexadecimal value as a string.
12193
12194
  */
12194
- getHexString(e = sn) {
12195
+ getHexString(e = an) {
12195
12196
  return ("000000" + this.getHex(e).toString(16)).slice(-6);
12196
12197
  }
12197
12198
  /**
@@ -12242,10 +12243,10 @@ class Be {
12242
12243
  * @param {string} [colorSpace=SRGBColorSpace] - The color space.
12243
12244
  * @return {string} The CSS representation of this color.
12244
12245
  */
12245
- getStyle(e = sn) {
12246
+ getStyle(e = an) {
12246
12247
  rt.workingToColorSpace(Wt.copy(this), e);
12247
12248
  const t = Wt.r, n = Wt.g, i = Wt.b;
12248
- return e !== sn ? `color(${e} ${t.toFixed(3)} ${n.toFixed(3)} ${i.toFixed(3)})` : `rgb(${Math.round(t * 255)},${Math.round(n * 255)},${Math.round(i * 255)})`;
12249
+ return e !== an ? `color(${e} ${t.toFixed(3)} ${n.toFixed(3)} ${i.toFixed(3)})` : `rgb(${Math.round(t * 255)},${Math.round(n * 255)},${Math.round(i * 255)})`;
12249
12250
  }
12250
12251
  /**
12251
12252
  * Adds the given HSL values to this color's values.
@@ -12514,7 +12515,7 @@ class Hp extends ht {
12514
12515
  }
12515
12516
  }
12516
12517
  const An = /* @__PURE__ */ new B(), Zn = /* @__PURE__ */ new B(), zl = /* @__PURE__ */ new B(), Kn = /* @__PURE__ */ new B(), _r = /* @__PURE__ */ new B(), vr = /* @__PURE__ */ new B(), df = /* @__PURE__ */ new B(), Vl = /* @__PURE__ */ new B(), Gl = /* @__PURE__ */ new B(), Hl = /* @__PURE__ */ new B(), Wl = /* @__PURE__ */ new dt(), Xl = /* @__PURE__ */ new dt(), ql = /* @__PURE__ */ new dt();
12517
- class on {
12518
+ class cn {
12518
12519
  /**
12519
12520
  * Constructs a new triangle.
12520
12521
  *
@@ -12691,7 +12692,7 @@ class on {
12691
12692
  * @return {Vector3} The triangle's normal.
12692
12693
  */
12693
12694
  getNormal(e) {
12694
- return on.getNormal(this.a, this.b, this.c, e);
12695
+ return cn.getNormal(this.a, this.b, this.c, e);
12695
12696
  }
12696
12697
  /**
12697
12698
  * Computes a plane the triangle lies within.
@@ -12711,7 +12712,7 @@ class on {
12711
12712
  * @return {?Vector3} The barycentric coordinates for the given point
12712
12713
  */
12713
12714
  getBarycoord(e, t) {
12714
- return on.getBarycoord(e, this.a, this.b, this.c, t);
12715
+ return cn.getBarycoord(e, this.a, this.b, this.c, t);
12715
12716
  }
12716
12717
  /**
12717
12718
  * Computes the value barycentrically interpolated for the given point on the
@@ -12725,7 +12726,7 @@ class on {
12725
12726
  * @return {?Vector3} The interpolated value.
12726
12727
  */
12727
12728
  getInterpolation(e, t, n, i, s) {
12728
- return on.getInterpolation(e, this.a, this.b, this.c, t, n, i, s);
12729
+ return cn.getInterpolation(e, this.a, this.b, this.c, t, n, i, s);
12729
12730
  }
12730
12731
  /**
12731
12732
  * Returns `true` if the given point, when projected onto the plane of the
@@ -12736,7 +12737,7 @@ class on {
12736
12737
  * triangle, lies within the triangle or not.
12737
12738
  */
12738
12739
  containsPoint(e) {
12739
- return on.containsPoint(e, this.a, this.b, this.c);
12740
+ return cn.containsPoint(e, this.a, this.b, this.c);
12740
12741
  }
12741
12742
  /**
12742
12743
  * Returns `true` if the triangle is oriented towards the given direction.
@@ -12745,7 +12746,7 @@ class on {
12745
12746
  * @return {boolean} Whether the triangle is oriented towards the given direction or not.
12746
12747
  */
12747
12748
  isFrontFacing(e) {
12748
- return on.isFrontFacing(this.a, this.b, this.c, e);
12749
+ return cn.isFrontFacing(this.a, this.b, this.c, e);
12749
12750
  }
12750
12751
  /**
12751
12752
  * Returns `true` if this triangle intersects with the given box.
@@ -13219,8 +13220,8 @@ function $l(r, e, t, n, i) {
13219
13220
  }
13220
13221
  return !0;
13221
13222
  }
13222
- const ti = /* @__PURE__ */ L1();
13223
- function L1() {
13223
+ const ti = /* @__PURE__ */ L_();
13224
+ function L_() {
13224
13225
  const r = new ArrayBuffer(4), e = new Float32Array(r), t = new Uint32Array(r), n = new Uint32Array(512), i = new Uint32Array(512);
13225
13226
  for (let l = 0; l < 256; ++l) {
13226
13227
  const c = l - 127;
@@ -13253,7 +13254,7 @@ function L1() {
13253
13254
  offsetTable: o
13254
13255
  };
13255
13256
  }
13256
- function rn(r) {
13257
+ function sn(r) {
13257
13258
  Math.abs(r) > 65504 && Ee("DataUtils.toHalfFloat(): Value out of range."), r = qe(r, -65504, 65504), ti.floatView[0] = r;
13258
13259
  const e = ti.uint32View[0], t = e >> 23 & 511;
13259
13260
  return ti.baseTable[t] + ((e & 8388607) >> ti.shiftTable[t]);
@@ -13262,7 +13263,7 @@ function bs(r) {
13262
13263
  const e = r >> 10;
13263
13264
  return ti.uint32View[0] = ti.mantissaTable[ti.offsetTable[e] + (r & 1023)] + ti.exponentTable[e], ti.floatView[0];
13264
13265
  }
13265
- class N1 {
13266
+ class N_ {
13266
13267
  /**
13267
13268
  * Returns a half precision floating point value (FP16) from the given single
13268
13269
  * precision floating point value (FP32).
@@ -13271,7 +13272,7 @@ class N1 {
13271
13272
  * @return {number} The FP16 value.
13272
13273
  */
13273
13274
  static toHalfFloat(e) {
13274
- return rn(e);
13275
+ return sn(e);
13275
13276
  }
13276
13277
  /**
13277
13278
  * Returns a single precision floating point value (FP32) from the given half
@@ -13285,7 +13286,7 @@ class N1 {
13285
13286
  }
13286
13287
  }
13287
13288
  const Bt = /* @__PURE__ */ new B(), ga = /* @__PURE__ */ new he();
13288
- let U1 = 0;
13289
+ let U_ = 0;
13289
13290
  class xt extends Pn {
13290
13291
  /**
13291
13292
  * Constructs a new buffer attribute.
@@ -13297,7 +13298,7 @@ class xt extends Pn {
13297
13298
  constructor(e, t, n = !1) {
13298
13299
  if (super(), Array.isArray(e))
13299
13300
  throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");
13300
- this.isBufferAttribute = !0, Object.defineProperty(this, "id", { value: U1++ }), this.name = "", this.array = e, this.itemSize = t, this.count = e !== void 0 ? e.length / t : 0, this.normalized = n, this.usage = Ws, this.updateRanges = [], this.gpuType = Jt, this.version = 0;
13301
+ this.isBufferAttribute = !0, Object.defineProperty(this, "id", { value: U_++ }), this.name = "", this.array = e, this.itemSize = t, this.count = e !== void 0 ? e.length / t : 0, this.normalized = n, this.usage = Ws, this.updateRanges = [], this.gpuType = Jt, this.version = 0;
13301
13302
  }
13302
13303
  /**
13303
13304
  * A callback function that is executed after the renderer has transferred the attribute
@@ -13614,7 +13615,7 @@ class xt extends Pn {
13614
13615
  this.dispatchEvent({ type: "dispose" });
13615
13616
  }
13616
13617
  }
13617
- class O1 extends xt {
13618
+ class O_ extends xt {
13618
13619
  /**
13619
13620
  * Constructs a new buffer attribute.
13620
13621
  *
@@ -13626,7 +13627,7 @@ class O1 extends xt {
13626
13627
  super(new Int8Array(e), t, n);
13627
13628
  }
13628
13629
  }
13629
- class k1 extends xt {
13630
+ class k_ extends xt {
13630
13631
  /**
13631
13632
  * Constructs a new buffer attribute.
13632
13633
  *
@@ -13638,7 +13639,7 @@ class k1 extends xt {
13638
13639
  super(new Uint8Array(e), t, n);
13639
13640
  }
13640
13641
  }
13641
- class z1 extends xt {
13642
+ class z_ extends xt {
13642
13643
  /**
13643
13644
  * Constructs a new buffer attribute.
13644
13645
  *
@@ -13650,7 +13651,7 @@ class z1 extends xt {
13650
13651
  super(new Uint8ClampedArray(e), t, n);
13651
13652
  }
13652
13653
  }
13653
- class V1 extends xt {
13654
+ class V_ extends xt {
13654
13655
  /**
13655
13656
  * Constructs a new buffer attribute.
13656
13657
  *
@@ -13674,7 +13675,7 @@ class bu extends xt {
13674
13675
  super(new Uint16Array(e), t, n);
13675
13676
  }
13676
13677
  }
13677
- class G1 extends xt {
13678
+ class G_ extends xt {
13678
13679
  /**
13679
13680
  * Constructs a new buffer attribute.
13680
13681
  *
@@ -13698,7 +13699,7 @@ class Mu extends xt {
13698
13699
  super(new Uint32Array(e), t, n);
13699
13700
  }
13700
13701
  }
13701
- class H1 extends xt {
13702
+ class H_ extends xt {
13702
13703
  /**
13703
13704
  * Constructs a new buffer attribute.
13704
13705
  *
@@ -13714,37 +13715,37 @@ class H1 extends xt {
13714
13715
  return this.normalized && (t = Kt(t, this.array)), t;
13715
13716
  }
13716
13717
  setX(e, t) {
13717
- return this.normalized && (t = et(t, this.array)), this.array[e * this.itemSize] = rn(t), this;
13718
+ return this.normalized && (t = et(t, this.array)), this.array[e * this.itemSize] = sn(t), this;
13718
13719
  }
13719
13720
  getY(e) {
13720
13721
  let t = bs(this.array[e * this.itemSize + 1]);
13721
13722
  return this.normalized && (t = Kt(t, this.array)), t;
13722
13723
  }
13723
13724
  setY(e, t) {
13724
- return this.normalized && (t = et(t, this.array)), this.array[e * this.itemSize + 1] = rn(t), this;
13725
+ return this.normalized && (t = et(t, this.array)), this.array[e * this.itemSize + 1] = sn(t), this;
13725
13726
  }
13726
13727
  getZ(e) {
13727
13728
  let t = bs(this.array[e * this.itemSize + 2]);
13728
13729
  return this.normalized && (t = Kt(t, this.array)), t;
13729
13730
  }
13730
13731
  setZ(e, t) {
13731
- return this.normalized && (t = et(t, this.array)), this.array[e * this.itemSize + 2] = rn(t), this;
13732
+ return this.normalized && (t = et(t, this.array)), this.array[e * this.itemSize + 2] = sn(t), this;
13732
13733
  }
13733
13734
  getW(e) {
13734
13735
  let t = bs(this.array[e * this.itemSize + 3]);
13735
13736
  return this.normalized && (t = Kt(t, this.array)), t;
13736
13737
  }
13737
13738
  setW(e, t) {
13738
- return this.normalized && (t = et(t, this.array)), this.array[e * this.itemSize + 3] = rn(t), this;
13739
+ return this.normalized && (t = et(t, this.array)), this.array[e * this.itemSize + 3] = sn(t), this;
13739
13740
  }
13740
13741
  setXY(e, t, n) {
13741
- return e *= this.itemSize, this.normalized && (t = et(t, this.array), n = et(n, this.array)), this.array[e + 0] = rn(t), this.array[e + 1] = rn(n), this;
13742
+ return e *= this.itemSize, this.normalized && (t = et(t, this.array), n = et(n, this.array)), this.array[e + 0] = sn(t), this.array[e + 1] = sn(n), this;
13742
13743
  }
13743
13744
  setXYZ(e, t, n, i) {
13744
- return e *= this.itemSize, this.normalized && (t = et(t, this.array), n = et(n, this.array), i = et(i, this.array)), this.array[e + 0] = rn(t), this.array[e + 1] = rn(n), this.array[e + 2] = rn(i), this;
13745
+ return e *= this.itemSize, this.normalized && (t = et(t, this.array), n = et(n, this.array), i = et(i, this.array)), this.array[e + 0] = sn(t), this.array[e + 1] = sn(n), this.array[e + 2] = sn(i), this;
13745
13746
  }
13746
13747
  setXYZW(e, t, n, i, s) {
13747
- return e *= this.itemSize, this.normalized && (t = et(t, this.array), n = et(n, this.array), i = et(i, this.array), s = et(s, this.array)), this.array[e + 0] = rn(t), this.array[e + 1] = rn(n), this.array[e + 2] = rn(i), this.array[e + 3] = rn(s), this;
13748
+ return e *= this.itemSize, this.normalized && (t = et(t, this.array), n = et(n, this.array), i = et(i, this.array), s = et(s, this.array)), this.array[e + 0] = sn(t), this.array[e + 1] = sn(n), this.array[e + 2] = sn(i), this.array[e + 3] = sn(s), this;
13748
13749
  }
13749
13750
  }
13750
13751
  class Fe extends xt {
@@ -13759,7 +13760,7 @@ class Fe extends xt {
13759
13760
  super(new Float32Array(e), t, n);
13760
13761
  }
13761
13762
  }
13762
- const W1 = /* @__PURE__ */ new qt(), as = /* @__PURE__ */ new B(), Yl = /* @__PURE__ */ new B();
13763
+ const W_ = /* @__PURE__ */ new qt(), as = /* @__PURE__ */ new B(), Yl = /* @__PURE__ */ new B();
13763
13764
  class Vt {
13764
13765
  /**
13765
13766
  * Constructs a new sphere.
@@ -13792,7 +13793,7 @@ class Vt {
13792
13793
  */
13793
13794
  setFromPoints(e, t) {
13794
13795
  const n = this.center;
13795
- t !== void 0 ? n.copy(t) : W1.setFromPoints(e).getCenter(n);
13796
+ t !== void 0 ? n.copy(t) : W_.setFromPoints(e).getCenter(n);
13796
13797
  let i = 0;
13797
13798
  for (let s = 0, a = e.length; s < a; s++)
13798
13799
  i = Math.max(i, n.distanceToSquared(e[s]));
@@ -13979,14 +13980,14 @@ class Vt {
13979
13980
  return this.radius = e.radius, this.center.fromArray(e.center), this;
13980
13981
  }
13981
13982
  }
13982
- let X1 = 0;
13983
+ let X_ = 0;
13983
13984
  const vn = /* @__PURE__ */ new $e(), Zl = /* @__PURE__ */ new ht(), Sr = /* @__PURE__ */ new B(), dn = /* @__PURE__ */ new qt(), os = /* @__PURE__ */ new qt(), Ot = /* @__PURE__ */ new B();
13984
13985
  class Je extends Pn {
13985
13986
  /**
13986
13987
  * Constructs a new geometry.
13987
13988
  */
13988
13989
  constructor() {
13989
- super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: X1++ }), this.uuid = mn(), this.name = "", this.type = "BufferGeometry", this.index = null, this.indirect = null, this.indirectOffset = 0, this.attributes = {}, this.morphAttributes = {}, this.morphTargetsRelative = !1, this.groups = [], this.boundingBox = null, this.boundingSphere = null, this.drawRange = { start: 0, count: 1 / 0 }, this.userData = {};
13990
+ super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: X_++ }), this.uuid = mn(), this.name = "", this.type = "BufferGeometry", this.index = null, this.indirect = null, this.indirectOffset = 0, this.attributes = {}, this.morphAttributes = {}, this.morphTargetsRelative = !1, this.groups = [], this.boundingBox = null, this.boundingSphere = null, this.drawRange = { start: 0, count: 1 / 0 }, this.userData = {};
13990
13991
  }
13991
13992
  /**
13992
13993
  * Returns the index of this geometry.
@@ -14003,7 +14004,7 @@ class Je extends Pn {
14003
14004
  * @return {BufferGeometry} A reference to this instance.
14004
14005
  */
14005
14006
  setIndex(e) {
14006
- return Array.isArray(e) ? this.index = new (e1(e) ? Mu : bu)(e, 1) : this.index = e, this;
14007
+ return Array.isArray(e) ? this.index = new (e_(e) ? Mu : bu)(e, 1) : this.index = e, this;
14007
14008
  }
14008
14009
  /**
14009
14010
  * Sets the given indirect attribute to this geometry.
@@ -14903,13 +14904,13 @@ class nr {
14903
14904
  };
14904
14905
  }
14905
14906
  }
14906
- let q1 = 0;
14907
+ let q_ = 0;
14907
14908
  class $t extends Pn {
14908
14909
  /**
14909
14910
  * Constructs a new material.
14910
14911
  */
14911
14912
  constructor() {
14912
- super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: q1++ }), this.uuid = mn(), this.name = "", this.type = "Material", this.blending = Ji, this.side = ii, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = Ko, this.blendDst = Jo, this.blendEquation = gi, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new Be(0, 0, 0), this.blendAlpha = 0, this.depthFunc = er, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = kh, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = Hi, this.stencilZFail = Hi, this.stencilZPass = Hi, 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;
14913
+ super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: q_++ }), this.uuid = mn(), this.name = "", this.type = "Material", this.blending = Ji, this.side = ii, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = Ko, this.blendDst = Jo, this.blendEquation = gi, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new Be(0, 0, 0), this.blendAlpha = 0, this.depthFunc = er, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = kh, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = Hi, this.stencilZFail = Hi, this.stencilZPass = Hi, 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;
14913
14914
  }
14914
14915
  /**
14915
14916
  * Sets the alpha value to be used when running an alpha test. The material
@@ -15144,7 +15145,7 @@ class Xp extends ht {
15144
15145
  l < e.near || l > e.far || t.push({
15145
15146
  distance: l,
15146
15147
  point: cs.clone(),
15147
- uv: on.getInterpolation(cs, _a, hs, va, pf, Kl, xf, new he()),
15148
+ uv: cn.getInterpolation(cs, _a, hs, va, pf, Kl, xf, new he()),
15148
15149
  face: null,
15149
15150
  object: this
15150
15151
  });
@@ -15573,7 +15574,7 @@ class Ci extends $t {
15573
15574
  }
15574
15575
  }
15575
15576
  const gf = /* @__PURE__ */ new $e(), Bi = /* @__PURE__ */ new jr(), Ea = /* @__PURE__ */ new Vt(), _f = /* @__PURE__ */ new B(), Aa = /* @__PURE__ */ new B(), wa = /* @__PURE__ */ new B(), Ca = /* @__PURE__ */ new B(), eh = /* @__PURE__ */ new B(), Ta = /* @__PURE__ */ new B(), vf = /* @__PURE__ */ new B(), Ra = /* @__PURE__ */ new B();
15576
- class yt extends ht {
15577
+ class bt extends ht {
15577
15578
  /**
15578
15579
  * Constructs a new mesh.
15579
15580
  *
@@ -15672,7 +15673,7 @@ class yt extends ht {
15672
15673
  }
15673
15674
  }
15674
15675
  }
15675
- function $1(r, e, t, n, i, s, a, o) {
15676
+ function $_(r, e, t, n, i, s, a, o) {
15676
15677
  let l;
15677
15678
  if (e.side === Qt ? l = n.intersectTriangle(a, s, i, !0, o) : l = n.intersectTriangle(i, s, a, e.side === ii, o), l === null) return null;
15678
15679
  Ra.copy(o), Ra.applyMatrix4(r.matrixWorld);
@@ -15685,10 +15686,10 @@ function $1(r, e, t, n, i, s, a, o) {
15685
15686
  }
15686
15687
  function Da(r, e, t, n, i, s, a, o, l, c) {
15687
15688
  r.getVertexPosition(o, Aa), r.getVertexPosition(l, wa), r.getVertexPosition(c, Ca);
15688
- const h = $1(r, e, t, n, Aa, wa, Ca, vf);
15689
+ const h = $_(r, e, t, n, Aa, wa, Ca, vf);
15689
15690
  if (h) {
15690
15691
  const f = new B();
15691
- on.getBarycoord(vf, Aa, wa, Ca, f), i && (h.uv = on.getInterpolatedAttribute(i, o, l, c, f, new he())), s && (h.uv1 = on.getInterpolatedAttribute(s, o, l, c, f, new he())), a && (h.normal = on.getInterpolatedAttribute(a, o, l, c, f, new B()), h.normal.dot(n.direction) > 0 && h.normal.multiplyScalar(-1));
15692
+ cn.getBarycoord(vf, Aa, wa, Ca, f), i && (h.uv = cn.getInterpolatedAttribute(i, o, l, c, f, new he())), s && (h.uv1 = cn.getInterpolatedAttribute(s, o, l, c, f, new he())), a && (h.normal = cn.getInterpolatedAttribute(a, o, l, c, f, new B()), h.normal.dot(n.direction) > 0 && h.normal.multiplyScalar(-1));
15692
15693
  const u = {
15693
15694
  a: o,
15694
15695
  b: l,
@@ -15696,12 +15697,12 @@ function Da(r, e, t, n, i, s, a, o, l, c) {
15696
15697
  normal: new B(),
15697
15698
  materialIndex: 0
15698
15699
  };
15699
- on.getNormal(Aa, wa, Ca, u.normal), h.face = u, h.barycoord = f;
15700
+ cn.getNormal(Aa, wa, Ca, u.normal), h.face = u, h.barycoord = f;
15700
15701
  }
15701
15702
  return h;
15702
15703
  }
15703
- const us = /* @__PURE__ */ new dt(), yf = /* @__PURE__ */ new dt(), bf = /* @__PURE__ */ new dt(), Y1 = /* @__PURE__ */ new dt(), Mf = /* @__PURE__ */ new $e(), Ia = /* @__PURE__ */ new B(), th = /* @__PURE__ */ new Vt(), Sf = /* @__PURE__ */ new $e(), nh = /* @__PURE__ */ new jr();
15704
- class $p extends yt {
15704
+ const us = /* @__PURE__ */ new dt(), yf = /* @__PURE__ */ new dt(), bf = /* @__PURE__ */ new dt(), Y_ = /* @__PURE__ */ new dt(), Mf = /* @__PURE__ */ new $e(), Ia = /* @__PURE__ */ new B(), th = /* @__PURE__ */ new Vt(), Sf = /* @__PURE__ */ new $e(), nh = /* @__PURE__ */ new jr();
15705
+ class $p extends bt {
15705
15706
  /**
15706
15707
  * Constructs a new skinned mesh.
15707
15708
  *
@@ -15794,7 +15795,7 @@ class $p extends yt {
15794
15795
  const a = bf.getComponent(s);
15795
15796
  if (a !== 0) {
15796
15797
  const o = yf.getComponent(s);
15797
- Mf.multiplyMatrices(n.bones[o].matrixWorld, n.boneInverses[o]), t.addScaledVector(Y1.copy(us).applyMatrix4(Mf), a);
15798
+ Mf.multiplyMatrices(n.bones[o].matrixWorld, n.boneInverses[o]), t.addScaledVector(Y_.copy(us).applyMatrix4(Mf), a);
15798
15799
  }
15799
15800
  }
15800
15801
  return t.isVector4 && (t.w = us.w), t.applyMatrix4(this.bindMatrixInverse);
@@ -15825,11 +15826,11 @@ class Dn extends At {
15825
15826
  * @param {number} [anisotropy=Texture.DEFAULT_ANISOTROPY] - The anisotropy value.
15826
15827
  * @param {string} [colorSpace=NoColorSpace] - The color space.
15827
15828
  */
15828
- constructor(e = null, t = 1, n = 1, i, s, a, o, l, c = Pt, h = Pt, f, u) {
15829
+ constructor(e = null, t = 1, n = 1, i, s, a, o, l, c = It, h = It, f, u) {
15829
15830
  super(null, a, o, l, c, h, i, s, f, u), this.isDataTexture = !0, this.image = { data: e, width: t, height: n }, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
15830
15831
  }
15831
15832
  }
15832
- const Ef = /* @__PURE__ */ new $e(), Z1 = /* @__PURE__ */ new $e();
15833
+ const Ef = /* @__PURE__ */ new $e(), Z_ = /* @__PURE__ */ new $e();
15833
15834
  class hl {
15834
15835
  /**
15835
15836
  * Constructs a new skeleton.
@@ -15886,7 +15887,7 @@ class hl {
15886
15887
  update() {
15887
15888
  const e = this.bones, t = this.boneInverses, n = this.boneMatrices, i = this.boneTexture;
15888
15889
  for (let s = 0, a = e.length; s < a; s++) {
15889
- const o = e[s] ? e[s].matrixWorld : Z1;
15890
+ const o = e[s] ? e[s].matrixWorld : Z_;
15890
15891
  Ef.multiplyMatrices(o, t[s]), Ef.toArray(n, s * 16);
15891
15892
  }
15892
15893
  i !== null && (i.needsUpdate = !0);
@@ -15996,8 +15997,8 @@ class $r extends xt {
15996
15997
  return e.meshPerAttribute = this.meshPerAttribute, e.isInstancedBufferAttribute = !0, e;
15997
15998
  }
15998
15999
  }
15999
- const Tr = /* @__PURE__ */ new $e(), Af = /* @__PURE__ */ new $e(), Pa = [], wf = /* @__PURE__ */ new qt(), K1 = /* @__PURE__ */ new $e(), fs = /* @__PURE__ */ new yt(), ds = /* @__PURE__ */ new Vt();
16000
- class Yp extends yt {
16000
+ const Tr = /* @__PURE__ */ new $e(), Af = /* @__PURE__ */ new $e(), Pa = [], wf = /* @__PURE__ */ new qt(), K_ = /* @__PURE__ */ new $e(), fs = /* @__PURE__ */ new bt(), ds = /* @__PURE__ */ new Vt();
16001
+ class Yp extends bt {
16001
16002
  /**
16002
16003
  * Constructs a new instanced mesh.
16003
16004
  *
@@ -16008,7 +16009,7 @@ class Yp extends yt {
16008
16009
  constructor(e, t, n) {
16009
16010
  super(e, t), this.isInstancedMesh = !0, this.instanceMatrix = new $r(new Float32Array(n * 16), 16), this.previousInstanceMatrix = null, this.instanceColor = null, this.morphTexture = null, this.count = n, this.boundingBox = null, this.boundingSphere = null;
16010
16011
  for (let i = 0; i < n; i++)
16011
- this.setMatrixAt(i, K1);
16012
+ this.setMatrixAt(i, K_);
16012
16013
  }
16013
16014
  /**
16014
16015
  * Computes the bounding box of the instanced mesh, and updates {@link InstancedMesh#boundingBox}.
@@ -16129,7 +16130,7 @@ class Yp extends yt {
16129
16130
  this.dispatchEvent({ type: "dispose" }), this.morphTexture !== null && (this.morphTexture.dispose(), this.morphTexture = null);
16130
16131
  }
16131
16132
  }
16132
- const ih = /* @__PURE__ */ new B(), J1 = /* @__PURE__ */ new B(), j1 = /* @__PURE__ */ new Ke();
16133
+ const ih = /* @__PURE__ */ new B(), J_ = /* @__PURE__ */ new B(), j_ = /* @__PURE__ */ new Ke();
16133
16134
  class mi {
16134
16135
  /**
16135
16136
  * Constructs a new plane.
@@ -16185,7 +16186,7 @@ class mi {
16185
16186
  * @return {Plane} A reference to this plane.
16186
16187
  */
16187
16188
  setFromCoplanarPoints(e, t, n) {
16188
- const i = ih.subVectors(n, t).cross(J1.subVectors(e, t)).normalize();
16189
+ const i = ih.subVectors(n, t).cross(J_.subVectors(e, t)).normalize();
16189
16190
  return this.setFromNormalAndCoplanarPoint(i, e), this;
16190
16191
  }
16191
16192
  /**
@@ -16310,7 +16311,7 @@ class mi {
16310
16311
  * @return {Plane} A reference to this plane.
16311
16312
  */
16312
16313
  applyMatrix4(e, t) {
16313
- const n = t || j1.getNormalMatrix(e), i = this.coplanarPoint(ih).applyMatrix4(e), s = this.normal.applyMatrix3(n).normalize();
16314
+ const n = t || j_.getNormalMatrix(e), i = this.coplanarPoint(ih).applyMatrix4(e), s = this.normal.applyMatrix3(n).normalize();
16314
16315
  return this.constant = -i.dot(s), this;
16315
16316
  }
16316
16317
  /**
@@ -16341,7 +16342,7 @@ class mi {
16341
16342
  return new this.constructor().copy(this);
16342
16343
  }
16343
16344
  }
16344
- const Fi = /* @__PURE__ */ new Vt(), Q1 = /* @__PURE__ */ new he(0.5, 0.5), Ba = /* @__PURE__ */ new B();
16345
+ const Fi = /* @__PURE__ */ new Vt(), Q_ = /* @__PURE__ */ new he(0.5, 0.5), Ba = /* @__PURE__ */ new B();
16345
16346
  class Qr {
16346
16347
  /**
16347
16348
  * Constructs a new frustum.
@@ -16428,7 +16429,7 @@ class Qr {
16428
16429
  */
16429
16430
  intersectsSprite(e) {
16430
16431
  Fi.center.set(0, 0, 0);
16431
- const t = Q1.distanceTo(e.center);
16432
+ const t = Q_.distanceTo(e.center);
16432
16433
  return Fi.radius = 0.7071067811865476 + t, Fi.applyMatrix4(e.matrixWorld), this.intersectsSphere(Fi);
16433
16434
  }
16434
16435
  /**
@@ -16652,7 +16653,7 @@ class nv {
16652
16653
  this.list.length = 0, this.index = 0;
16653
16654
  }
16654
16655
  }
16655
- const nn = /* @__PURE__ */ new $e(), iv = /* @__PURE__ */ new Be(1, 1, 1), Cf = /* @__PURE__ */ new Qr(), rv = /* @__PURE__ */ new ul(), Fa = /* @__PURE__ */ new qt(), Li = /* @__PURE__ */ new Vt(), ps = /* @__PURE__ */ new B(), Tf = /* @__PURE__ */ new B(), sv = /* @__PURE__ */ new B(), sh = /* @__PURE__ */ new nv(), Xt = /* @__PURE__ */ new yt(), La = [];
16656
+ const rn = /* @__PURE__ */ new $e(), iv = /* @__PURE__ */ new Be(1, 1, 1), Cf = /* @__PURE__ */ new Qr(), rv = /* @__PURE__ */ new ul(), Fa = /* @__PURE__ */ new qt(), Li = /* @__PURE__ */ new Vt(), ps = /* @__PURE__ */ new B(), Tf = /* @__PURE__ */ new B(), sv = /* @__PURE__ */ new B(), sh = /* @__PURE__ */ new nv(), Xt = /* @__PURE__ */ new bt(), La = [];
16656
16657
  function av(r, e, t = 0) {
16657
16658
  const n = e.itemSize;
16658
16659
  if (r.isInterleavedBufferAttribute || r.array.constructor !== e.array.constructor) {
@@ -16674,7 +16675,7 @@ function Ni(r, e) {
16674
16675
  e.set(new r.constructor(r.buffer, 0, t));
16675
16676
  }
16676
16677
  }
16677
- class Zp extends yt {
16678
+ class Zp extends bt {
16678
16679
  /**
16679
16680
  * Constructs a new batched mesh.
16680
16681
  *
@@ -16809,7 +16810,7 @@ class Zp extends yt {
16809
16810
  for (let n = 0, i = t.length; n < i; n++) {
16810
16811
  if (t[n].active === !1) continue;
16811
16812
  const s = t[n].geometryIndex;
16812
- this.getMatrixAt(n, nn), this.getBoundingBoxAt(s, Fa).applyMatrix4(nn), e.union(Fa);
16813
+ this.getMatrixAt(n, rn), this.getBoundingBoxAt(s, Fa).applyMatrix4(rn), e.union(Fa);
16813
16814
  }
16814
16815
  }
16815
16816
  /**
@@ -16824,7 +16825,7 @@ class Zp extends yt {
16824
16825
  for (let n = 0, i = t.length; n < i; n++) {
16825
16826
  if (t[n].active === !1) continue;
16826
16827
  const s = t[n].geometryIndex;
16827
- this.getMatrixAt(n, nn), this.getBoundingSphereAt(s, Li).applyMatrix4(nn), e.union(Li);
16828
+ this.getMatrixAt(n, rn), this.getBoundingSphereAt(s, Li).applyMatrix4(rn), e.union(Li);
16828
16829
  }
16829
16830
  }
16830
16831
  /**
@@ -16845,7 +16846,7 @@ class Zp extends yt {
16845
16846
  let i = null;
16846
16847
  this._availableInstanceIds.length > 0 ? (this._availableInstanceIds.sort(rh), i = this._availableInstanceIds.shift(), this._instanceInfo[i] = n) : (i = this._instanceInfo.length, this._instanceInfo.push(n));
16847
16848
  const s = this._matricesTexture;
16848
- nn.identity().toArray(s.image.data, i * 16), s.needsUpdate = !0;
16849
+ rn.identity().toArray(s.image.data, i * 16), s.needsUpdate = !0;
16849
16850
  const a = this._colorsTexture;
16850
16851
  return a && (iv.toArray(a.image.data, i * 4), a.needsUpdate = !0), this._visibilityChanged = !0, i;
16851
16852
  }
@@ -17207,18 +17208,18 @@ class Zp extends yt {
17207
17208
  let o = a === null ? 1 : a.array.BYTES_PER_ELEMENT, l = 1;
17208
17209
  s.wireframe && (l = 2, o = i.attributes.position.count > 65535 ? 4 : 2);
17209
17210
  const c = this._instanceInfo, h = this._multiDrawStarts, f = this._multiDrawCounts, u = this._geometryInfo, d = this.perObjectFrustumCulled, p = this._indirectTexture, _ = p.image.data, x = n.isArrayCamera ? rv : Cf;
17210
- d && !n.isArrayCamera && (nn.multiplyMatrices(n.projectionMatrix, n.matrixWorldInverse).multiply(this.matrixWorld), Cf.setFromProjectionMatrix(
17211
- nn,
17211
+ d && !n.isArrayCamera && (rn.multiplyMatrices(n.projectionMatrix, n.matrixWorldInverse).multiply(this.matrixWorld), Cf.setFromProjectionMatrix(
17212
+ rn,
17212
17213
  n.coordinateSystem,
17213
17214
  n.reversedDepth
17214
17215
  ));
17215
17216
  let m = 0;
17216
17217
  if (this.sortObjects) {
17217
- nn.copy(this.matrixWorld).invert(), ps.setFromMatrixPosition(n.matrixWorld).applyMatrix4(nn), Tf.set(0, 0, -1).transformDirection(n.matrixWorld).transformDirection(nn);
17218
+ rn.copy(this.matrixWorld).invert(), ps.setFromMatrixPosition(n.matrixWorld).applyMatrix4(rn), Tf.set(0, 0, -1).transformDirection(n.matrixWorld).transformDirection(rn);
17218
17219
  for (let y = 0, S = c.length; y < S; y++)
17219
17220
  if (c[y].visible && c[y].active) {
17220
17221
  const M = c[y].geometryIndex;
17221
- this.getMatrixAt(y, nn), this.getBoundingSphereAt(M, Li).applyMatrix4(nn);
17222
+ this.getMatrixAt(y, rn), this.getBoundingSphereAt(M, Li).applyMatrix4(rn);
17222
17223
  let E = !1;
17223
17224
  if (d && (E = !x.intersectsSphere(Li, n)), !E) {
17224
17225
  const b = u[M], A = sv.subVectors(Li.center, ps).dot(Tf);
@@ -17237,7 +17238,7 @@ class Zp extends yt {
17237
17238
  if (c[g].visible && c[g].active) {
17238
17239
  const y = c[g].geometryIndex;
17239
17240
  let S = !1;
17240
- if (d && (this.getMatrixAt(g, nn), this.getBoundingSphereAt(y, Li).applyMatrix4(nn), S = !x.intersectsSphere(Li, n)), !S) {
17241
+ if (d && (this.getMatrixAt(g, rn), this.getBoundingSphereAt(y, Li).applyMatrix4(rn), S = !x.intersectsSphere(Li, n)), !S) {
17241
17242
  const M = u[y];
17242
17243
  h[m] = M.start * o * l, f[m] = M.count * l, _[m] = g, m++;
17243
17244
  }
@@ -17248,7 +17249,7 @@ class Zp extends yt {
17248
17249
  this.onBeforeRender(e, null, i, s, a);
17249
17250
  }
17250
17251
  }
17251
- class tn extends $t {
17252
+ class nn extends $t {
17252
17253
  /**
17253
17254
  * Constructs a new line basic material.
17254
17255
  *
@@ -17273,7 +17274,7 @@ class Ai extends ht {
17273
17274
  * @param {BufferGeometry} [geometry] - The line geometry.
17274
17275
  * @param {Material|Array<Material>} [material] - The line material.
17275
17276
  */
17276
- constructor(e = new Je(), t = new tn()) {
17277
+ constructor(e = new Je(), t = new nn()) {
17277
17278
  super(), this.isLine = !0, this.type = "Line", this.geometry = e, this.material = t, this.morphTargetDictionary = void 0, this.morphTargetInfluences = void 0, this.updateMorphTargets();
17278
17279
  }
17279
17280
  copy(e, t) {
@@ -17505,7 +17506,7 @@ class jp extends At {
17505
17506
  * @param {number} [type=UnsignedByteType] - The texture type.
17506
17507
  * @param {number} [anisotropy=Texture.DEFAULT_ANISOTROPY] - The anisotropy value.
17507
17508
  */
17508
- constructor(e, t, n, i, s = vt, a = vt, o, l, c) {
17509
+ constructor(e, t, n, i, s = yt, a = yt, o, l, c) {
17509
17510
  super(e, t, n, i, s, a, o, l, c), this.isVideoTexture = !0, this.generateMipmaps = !1, this._requestVideoFrameCallbackId = 0;
17510
17511
  const h = this;
17511
17512
  function f() {
@@ -17573,7 +17574,7 @@ class cv extends At {
17573
17574
  * @param {number} [height] - The height of the texture.
17574
17575
  */
17575
17576
  constructor(e, t) {
17576
- super({ width: e, height: t }), this.isFramebufferTexture = !0, this.magFilter = Pt, this.minFilter = Pt, this.generateMipmaps = !1, this.needsUpdate = !0;
17577
+ super({ width: e, height: t }), this.isFramebufferTexture = !0, this.magFilter = It, this.minFilter = It, this.generateMipmaps = !1, this.needsUpdate = !0;
17577
17578
  }
17578
17579
  }
17579
17580
  class fl extends At {
@@ -17734,7 +17735,7 @@ class ir extends At {
17734
17735
  * @param {number} [format=DepthFormat] - The texture format.
17735
17736
  * @param {number} [depth=1] - The depth of the texture.
17736
17737
  */
17737
- constructor(e, t, n = bn, i, s, a, o = Pt, l = Pt, c, h = qn, f = 1) {
17738
+ constructor(e, t, n = bn, i, s, a, o = It, l = It, c, h = qn, f = 1) {
17738
17739
  if (h !== qn && h !== _i)
17739
17740
  throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");
17740
17741
  const u = { width: e, height: t, depth: f };
@@ -17762,7 +17763,7 @@ class Qp extends ir {
17762
17763
  * @param {number} [anisotropy=Texture.DEFAULT_ANISOTROPY] - The anisotropy value.
17763
17764
  * @param {number} [format=DepthFormat] - The texture format.
17764
17765
  */
17765
- constructor(e, t = bn, n = Wn, i, s, a = Pt, o = Pt, l, c = qn) {
17766
+ constructor(e, t = bn, n = Wn, i, s, a = It, o = It, l, c = qn) {
17766
17767
  const h = { width: e, height: e, depth: 1 }, f = [h, h, h, h, h, h];
17767
17768
  super(e, e, t, n, i, s, a, o, l, c), this.image = f, this.isCubeDepthTexture = !0, this.isCubeTexture = !0;
17768
17769
  }
@@ -18369,7 +18370,7 @@ class xl extends Ti {
18369
18370
  return new xl(e.radius, e.detail);
18370
18371
  }
18371
18372
  }
18372
- const za = /* @__PURE__ */ new B(), Va = /* @__PURE__ */ new B(), oh = /* @__PURE__ */ new B(), Ga = /* @__PURE__ */ new on();
18373
+ const za = /* @__PURE__ */ new B(), Va = /* @__PURE__ */ new B(), oh = /* @__PURE__ */ new B(), Ga = /* @__PURE__ */ new cn();
18373
18374
  class ex extends Je {
18374
18375
  /**
18375
18376
  * Constructs a new edges geometry.
@@ -19894,7 +19895,7 @@ class gl extends Je {
19894
19895
  let _e, ve, Xe;
19895
19896
  const U = j.x - le.x, Oe = j.y - le.y, we = ne.x - j.x, Ge = ne.y - j.y, de = U * U + Oe * Oe, st = U * Ge - Oe * we;
19896
19897
  if (Math.abs(st) > Number.EPSILON) {
19897
- const D = Math.sqrt(de), T = Math.sqrt(we * we + Ge * Ge), q = le.x - Oe / D, ae = le.y + U / D, ue = ne.x - Ge / T, pe = ne.y + we / T, ge = ((ue - q) * Ge - (pe - ae) * we) / (U * Ge - Oe * we);
19898
+ const D = Math.sqrt(de), T = Math.sqrt(we * we + Ge * Ge), q = le.x - Oe / D, ae = le.y + U / D, ue = ne.x - Ge / T, xe = ne.y + we / T, ge = ((ue - q) * Ge - (xe - ae) * we) / (U * Ge - Oe * we);
19898
19899
  _e = q + U * ge - j.x, ve = ae + Oe * ge - j.y;
19899
19900
  const ee = _e * _e + ve * ve;
19900
19901
  if (ee <= 2)
@@ -19974,21 +19975,21 @@ class gl extends Je {
19974
19975
  let le = 0, ne = V * le;
19975
19976
  for (let _e = 0; _e < W; _e++) {
19976
19977
  const ve = G[_e];
19977
- xe(ve[2] + ne, ve[1] + ne, ve[0] + ne);
19978
+ pe(ve[2] + ne, ve[1] + ne, ve[0] + ne);
19978
19979
  }
19979
19980
  le = h + x * 2, ne = V * le;
19980
19981
  for (let _e = 0; _e < W; _e++) {
19981
19982
  const ve = G[_e];
19982
- xe(ve[0] + ne, ve[1] + ne, ve[2] + ne);
19983
+ pe(ve[0] + ne, ve[1] + ne, ve[2] + ne);
19983
19984
  }
19984
19985
  } else {
19985
19986
  for (let le = 0; le < W; le++) {
19986
19987
  const ne = G[le];
19987
- xe(ne[2], ne[1], ne[0]);
19988
+ pe(ne[2], ne[1], ne[0]);
19988
19989
  }
19989
19990
  for (let le = 0; le < W; le++) {
19990
19991
  const ne = G[le];
19991
- xe(ne[0] + V * h, ne[1] + V * h, ne[2] + V * h);
19992
+ pe(ne[0] + V * h, ne[1] + V * h, ne[2] + V * h);
19992
19993
  }
19993
19994
  }
19994
19995
  n.addGroup(j, i.length / 3 - j, 0);
@@ -20018,7 +20019,7 @@ class gl extends Je {
20018
20019
  function se(j, le, ne) {
20019
20020
  l.push(j), l.push(le), l.push(ne);
20020
20021
  }
20021
- function xe(j, le, ne) {
20022
+ function pe(j, le, ne) {
20022
20023
  Ae(j), Ae(le), Ae(ne);
20023
20024
  const _e = i.length / 3, ve = g.generateTopUV(n, i, _e - 3, _e - 2, _e - 1);
20024
20025
  Te(ve[0]), Te(ve[1]), Te(ve[2]);
@@ -21267,7 +21268,7 @@ class vx extends $t {
21267
21268
  return super.copy(e), this.defines = { MATCAP: "" }, this.color.copy(e.color), this.matcap = e.matcap, this.map = e.map, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.alphaMap = e.alphaMap, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.flatShading = e.flatShading, this.fog = e.fog, this;
21268
21269
  }
21269
21270
  }
21270
- class yx extends tn {
21271
+ class yx extends nn {
21271
21272
  /**
21272
21273
  * Constructs a new line dashed material.
21273
21274
  *
@@ -22858,7 +22859,7 @@ class Jv extends hn {
22858
22859
  height: d.height,
22859
22860
  format: d.format,
22860
22861
  mipmaps: d.mipmaps
22861
- }, c += 1, c === 6 && (d.mipmapCount === 1 && (o.minFilter = vt), o.image = a, o.format = d.format, o.needsUpdate = !0, t && t(o));
22862
+ }, c += 1, c === 6 && (d.mipmapCount === 1 && (o.minFilter = yt), o.image = a, o.format = d.format, o.needsUpdate = !0, t && t(o));
22862
22863
  }, n, i);
22863
22864
  }
22864
22865
  if (Array.isArray(e))
@@ -22877,7 +22878,7 @@ class Jv extends hn {
22877
22878
  o.image = a;
22878
22879
  } else
22879
22880
  o.image.width = u.width, o.image.height = u.height, o.mipmaps = u.mipmaps;
22880
- u.mipmapCount === 1 && (o.minFilter = vt), o.format = u.format, o.needsUpdate = !0, t && t(o);
22881
+ u.mipmapCount === 1 && (o.minFilter = yt), o.format = u.format, o.needsUpdate = !0, t && t(o);
22881
22882
  }, n, i);
22882
22883
  return o;
22883
22884
  }
@@ -22968,7 +22969,7 @@ class jv extends hn {
22968
22969
  */
22969
22970
  load(e, t, n, i) {
22970
22971
  const s = new na();
22971
- s.colorSpace = sn;
22972
+ s.colorSpace = an;
22972
22973
  const a = new Qs(this.manager);
22973
22974
  a.setCrossOrigin(this.crossOrigin), a.setPath(this.path);
22974
22975
  let o = 0;
@@ -23013,7 +23014,7 @@ class Qv extends hn {
23013
23014
  i !== void 0 ? i(h) : ke(h);
23014
23015
  return;
23015
23016
  }
23016
- c.image !== void 0 ? a.image = c.image : c.data !== void 0 && (a.image.width = c.width, a.image.height = c.height, a.image.data = c.data), a.wrapS = c.wrapS !== void 0 ? c.wrapS : ln, a.wrapT = c.wrapT !== void 0 ? c.wrapT : ln, a.magFilter = c.magFilter !== void 0 ? c.magFilter : vt, a.minFilter = c.minFilter !== void 0 ? c.minFilter : vt, a.anisotropy = c.anisotropy !== void 0 ? c.anisotropy : 1, c.colorSpace !== void 0 && (a.colorSpace = c.colorSpace), c.flipY !== void 0 && (a.flipY = c.flipY), c.format !== void 0 && (a.format = c.format), c.type !== void 0 && (a.type = c.type), c.mipmaps !== void 0 && (a.mipmaps = c.mipmaps, a.minFilter = Vn), c.mipmapCount === 1 && (a.minFilter = vt), c.generateMipmaps !== void 0 && (a.generateMipmaps = c.generateMipmaps), a.needsUpdate = !0, t && t(a, c);
23017
+ c.image !== void 0 ? a.image = c.image : c.data !== void 0 && (a.image.width = c.width, a.image.height = c.height, a.image.data = c.data), a.wrapS = c.wrapS !== void 0 ? c.wrapS : ln, a.wrapT = c.wrapT !== void 0 ? c.wrapT : ln, a.magFilter = c.magFilter !== void 0 ? c.magFilter : yt, a.minFilter = c.minFilter !== void 0 ? c.minFilter : yt, a.anisotropy = c.anisotropy !== void 0 ? c.anisotropy : 1, c.colorSpace !== void 0 && (a.colorSpace = c.colorSpace), c.flipY !== void 0 && (a.flipY = c.flipY), c.format !== void 0 && (a.format = c.format), c.type !== void 0 && (a.type = c.type), c.mipmaps !== void 0 && (a.mipmaps = c.mipmaps, a.minFilter = Vn), c.mipmapCount === 1 && (a.minFilter = yt), c.generateMipmaps !== void 0 && (a.generateMipmaps = c.generateMipmaps), a.needsUpdate = !0, t && t(a, c);
23017
23018
  }, n, i), a;
23018
23019
  }
23019
23020
  }
@@ -23097,7 +23098,7 @@ class Vu {
23097
23098
  * @param {Camera} camera - The light's view of the world.
23098
23099
  */
23099
23100
  constructor(e) {
23100
- this.camera = e, this.intensity = 1, this.bias = 0, this.biasNode = null, this.normalBias = 0, this.radius = 1, this.blurSamples = 8, this.mapSize = new he(512, 512), this.mapType = an, this.map = null, this.mapPass = null, this.matrix = new $e(), this.autoUpdate = !0, this.needsUpdate = !1, this._frustum = new Qr(), this._frameExtents = new he(1, 1), this._viewportCount = 1, this._viewports = [
23101
+ this.camera = e, this.intensity = 1, this.bias = 0, this.biasNode = null, this.normalBias = 0, this.radius = 1, this.blurSamples = 8, this.mapSize = new he(512, 512), this.mapType = on, this.map = null, this.mapPass = null, this.matrix = new $e(), this.autoUpdate = !0, this.needsUpdate = !1, this._frustum = new Qr(), this._frameExtents = new he(1, 1), this._viewportCount = 1, this._viewports = [
23101
23102
  new dt(0, 0, 1, 1)
23102
23103
  ];
23103
23104
  }
@@ -23962,7 +23963,7 @@ class Cl extends hn {
23962
23963
  MeshBasicMaterial: Ci,
23963
23964
  MeshMatcapMaterial: vx,
23964
23965
  LineDashedMaterial: yx,
23965
- LineBasicMaterial: tn,
23966
+ LineBasicMaterial: nn,
23966
23967
  Material: $t
23967
23968
  };
23968
23969
  return new t[e]();
@@ -24415,7 +24416,7 @@ class ry extends hn {
24415
24416
  h = o(e.geometry), f = l(e.material), a = new $p(h, f), e.bindMode !== void 0 && (a.bindMode = e.bindMode), e.bindMatrix !== void 0 && a.bindMatrix.fromArray(e.bindMatrix), e.skeleton !== void 0 && (a.skeleton = e.skeleton);
24416
24417
  break;
24417
24418
  case "Mesh":
24418
- h = o(e.geometry), f = l(e.material), a = new yt(h, f);
24419
+ h = o(e.geometry), f = l(e.material), a = new bt(h, f);
24419
24420
  break;
24420
24421
  case "InstancedMesh":
24421
24422
  h = o(e.geometry), f = l(e.material);
@@ -24511,10 +24512,10 @@ const sy = {
24511
24512
  ClampToEdgeWrapping: ln,
24512
24513
  MirroredRepeatWrapping: Us
24513
24514
  }, Kf = {
24514
- NearestFilter: Pt,
24515
+ NearestFilter: It,
24515
24516
  NearestMipmapNearestFilter: uu,
24516
24517
  NearestMipmapLinearFilter: kr,
24517
- LinearFilter: vt,
24518
+ LinearFilter: yt,
24518
24519
  LinearMipmapNearestFilter: Ts,
24519
24520
  LinearMipmapLinearFilter: Vn
24520
24521
  }, dh = /* @__PURE__ */ new WeakMap();
@@ -27640,7 +27641,7 @@ class zy extends ht {
27640
27641
  );
27641
27642
  }
27642
27643
  n.setAttribute("position", new Fe(i, 3));
27643
- const s = new tn({ fog: !1, toneMapped: !1 });
27644
+ const s = new nn({ fog: !1, toneMapped: !1 });
27644
27645
  this.cone = new $n(n, s), this.add(this.cone), this.update();
27645
27646
  }
27646
27647
  /**
@@ -27675,7 +27676,7 @@ class Vy extends $n {
27675
27676
  h.parent && h.parent.isBone && (i.push(0, 0, 0), i.push(0, 0, 0), s.push(0, 0, 0), s.push(0, 0, 0));
27676
27677
  }
27677
27678
  n.setAttribute("position", new Fe(i, 3)), n.setAttribute("color", new Fe(s, 3));
27678
- const a = new tn({ vertexColors: !0, depthTest: !1, depthWrite: !1, toneMapped: !1, transparent: !0 });
27679
+ const a = new nn({ vertexColors: !0, depthTest: !1, depthWrite: !1, toneMapped: !1, transparent: !0 });
27679
27680
  super(n, a), this.isSkeletonHelper = !0, this.type = "SkeletonHelper", this.root = e, this.bones = t, this.matrix = e.matrixWorld, this.matrixAutoUpdate = !1;
27680
27681
  const o = new Be(255), l = new Be(65280);
27681
27682
  this.setColors(o, l);
@@ -27717,7 +27718,7 @@ function Gx(r) {
27717
27718
  e.push(...Gx(r.children[t]));
27718
27719
  return e;
27719
27720
  }
27720
- class Gy extends yt {
27721
+ class Gy extends bt {
27721
27722
  /**
27722
27723
  * Constructs a new point light helper.
27723
27724
  *
@@ -27760,7 +27761,7 @@ class Wy extends ht {
27760
27761
  const i = new sa(t);
27761
27762
  i.rotateY(Math.PI * 0.5), this.material = new Ci({ wireframe: !0, fog: !1, toneMapped: !1 }), this.color === void 0 && (this.material.vertexColors = !0);
27762
27763
  const s = i.getAttribute("position"), a = new Float32Array(s.count * 3);
27763
- i.setAttribute("color", new xt(a, 3)), this.add(new yt(i, this.material)), this.update();
27764
+ i.setAttribute("color", new xt(a, 3)), this.add(new bt(i, this.material)), this.update();
27764
27765
  }
27765
27766
  /**
27766
27767
  * Frees the GPU-related resources allocated by this instance. Call this
@@ -27808,7 +27809,7 @@ class Xy extends $n {
27808
27809
  }
27809
27810
  const h = new Je();
27810
27811
  h.setAttribute("position", new Fe(l, 3)), h.setAttribute("color", new Fe(c, 3));
27811
- const f = new tn({ vertexColors: !0, toneMapped: !1 });
27812
+ const f = new nn({ vertexColors: !0, toneMapped: !1 });
27812
27813
  super(h, f), this.type = "GridHelper";
27813
27814
  }
27814
27815
  /**
@@ -27849,7 +27850,7 @@ class qy extends $n {
27849
27850
  }
27850
27851
  const c = new Je();
27851
27852
  c.setAttribute("position", new Fe(o, 3)), c.setAttribute("color", new Fe(l, 3));
27852
- const h = new tn({ vertexColors: !0, toneMapped: !1 });
27853
+ const h = new nn({ vertexColors: !0, toneMapped: !1 });
27853
27854
  super(c, h), this.type = "PolarGridHelper";
27854
27855
  }
27855
27856
  /**
@@ -27890,7 +27891,7 @@ class $y extends ht {
27890
27891
  t,
27891
27892
  0
27892
27893
  ], 3));
27893
- const s = new tn({ fog: !1, toneMapped: !1 });
27894
+ const s = new nn({ fog: !1, toneMapped: !1 });
27894
27895
  this.lightPlane = new Ai(i, s), this.add(this.lightPlane), i = new Je(), i.setAttribute("position", new Fe([0, 0, 0, 0, 0, 1], 3)), this.targetLine = new Ai(i, s), this.add(this.targetLine), this.update();
27895
27896
  }
27896
27897
  /**
@@ -27908,7 +27909,7 @@ class $y extends ht {
27908
27909
  this.light.updateWorldMatrix(!0, !1), this.light.target.updateWorldMatrix(!0, !1), od.setFromMatrixPosition(this.light.matrixWorld), Ka.setFromMatrixPosition(this.light.target.matrixWorld), cd.subVectors(Ka, od), this.lightPlane.lookAt(Ka), this.color !== void 0 ? (this.lightPlane.material.color.set(this.color), this.targetLine.material.color.set(this.color)) : (this.lightPlane.material.color.copy(this.light.color), this.targetLine.material.color.copy(this.light.color)), this.targetLine.lookAt(Ka), this.targetLine.scale.z = cd.length();
27909
27910
  }
27910
27911
  }
27911
- const Ja = /* @__PURE__ */ new B(), Tt = /* @__PURE__ */ new wl();
27912
+ const Ja = /* @__PURE__ */ new B(), Ct = /* @__PURE__ */ new wl();
27912
27913
  class Yy extends $n {
27913
27914
  /**
27914
27915
  * Constructs a new arrow helper.
@@ -27916,7 +27917,7 @@ class Yy extends $n {
27916
27917
  * @param {Camera} camera - The camera to visualize.
27917
27918
  */
27918
27919
  constructor(e) {
27919
- const t = new Je(), n = new tn({ color: 16777215, vertexColors: !0, toneMapped: !1 }), i = [], s = [], a = {};
27920
+ const t = new Je(), n = new nn({ color: 16777215, vertexColors: !0, toneMapped: !1 }), i = [], s = [], a = {};
27920
27921
  o("n1", "n2"), o("n2", "n4"), o("n4", "n3"), o("n3", "n1"), o("f1", "f2"), o("f2", "f4"), o("f4", "f3"), o("f3", "f1"), o("n1", "f1"), o("n2", "f2"), o("n3", "f3"), o("n4", "f4"), o("p", "n1"), o("p", "n2"), o("p", "n3"), o("p", "n4"), o("u1", "u2"), o("u2", "u3"), o("u3", "u1"), o("c", "t"), o("p", "c"), o("cn1", "cn2"), o("cn3", "cn4"), o("cf1", "cf2"), o("cf3", "cf4");
27921
27922
  function o(p, _) {
27922
27923
  l(p), l(_);
@@ -27948,7 +27949,7 @@ class Yy extends $n {
27948
27949
  update() {
27949
27950
  const e = this.geometry, t = this.pointMap, n = 1, i = 1;
27950
27951
  let s, a;
27951
- if (Tt.projectionMatrixInverse.copy(this.camera.projectionMatrixInverse), this.camera.reversedDepth === !0)
27952
+ if (Ct.projectionMatrixInverse.copy(this.camera.projectionMatrixInverse), this.camera.reversedDepth === !0)
27952
27953
  s = 1, a = 0;
27953
27954
  else if (this.camera.coordinateSystem === xn)
27954
27955
  s = -1, a = 1;
@@ -27956,7 +27957,7 @@ class Yy extends $n {
27956
27957
  s = 0, a = 1;
27957
27958
  else
27958
27959
  throw new Error("THREE.CameraHelper.update(): Invalid coordinate system: " + this.camera.coordinateSystem);
27959
- It("c", t, e, Tt, 0, 0, s), It("t", t, e, Tt, 0, 0, a), It("n1", t, e, Tt, -n, -i, s), It("n2", t, e, Tt, n, -i, s), It("n3", t, e, Tt, -n, i, s), It("n4", t, e, Tt, n, i, s), It("f1", t, e, Tt, -n, -i, a), It("f2", t, e, Tt, n, -i, a), It("f3", t, e, Tt, -n, i, a), It("f4", t, e, Tt, n, i, a), It("u1", t, e, Tt, n * 0.7, i * 1.1, s), It("u2", t, e, Tt, -n * 0.7, i * 1.1, s), It("u3", t, e, Tt, 0, i * 2, s), It("cf1", t, e, Tt, -n, 0, a), It("cf2", t, e, Tt, n, 0, a), It("cf3", t, e, Tt, 0, -i, a), It("cf4", t, e, Tt, 0, i, a), It("cn1", t, e, Tt, -n, 0, s), It("cn2", t, e, Tt, n, 0, s), It("cn3", t, e, Tt, 0, -i, s), It("cn4", t, e, Tt, 0, i, s), e.getAttribute("position").needsUpdate = !0;
27960
+ Dt("c", t, e, Ct, 0, 0, s), Dt("t", t, e, Ct, 0, 0, a), Dt("n1", t, e, Ct, -n, -i, s), Dt("n2", t, e, Ct, n, -i, s), Dt("n3", t, e, Ct, -n, i, s), Dt("n4", t, e, Ct, n, i, s), Dt("f1", t, e, Ct, -n, -i, a), Dt("f2", t, e, Ct, n, -i, a), Dt("f3", t, e, Ct, -n, i, a), Dt("f4", t, e, Ct, n, i, a), Dt("u1", t, e, Ct, n * 0.7, i * 1.1, s), Dt("u2", t, e, Ct, -n * 0.7, i * 1.1, s), Dt("u3", t, e, Ct, 0, i * 2, s), Dt("cf1", t, e, Ct, -n, 0, a), Dt("cf2", t, e, Ct, n, 0, a), Dt("cf3", t, e, Ct, 0, -i, a), Dt("cf4", t, e, Ct, 0, i, a), Dt("cn1", t, e, Ct, -n, 0, s), Dt("cn2", t, e, Ct, n, 0, s), Dt("cn3", t, e, Ct, 0, -i, s), Dt("cn4", t, e, Ct, 0, i, s), e.getAttribute("position").needsUpdate = !0;
27960
27961
  }
27961
27962
  /**
27962
27963
  * Frees the GPU-related resources allocated by this instance. Call this
@@ -27966,7 +27967,7 @@ class Yy extends $n {
27966
27967
  this.geometry.dispose(), this.material.dispose();
27967
27968
  }
27968
27969
  }
27969
- function It(r, e, t, n, i, s, a) {
27970
+ function Dt(r, e, t, n, i, s, a) {
27970
27971
  Ja.set(i, s, a).unproject(n);
27971
27972
  const o = e[r];
27972
27973
  if (o !== void 0) {
@@ -27985,7 +27986,7 @@ class Zy extends $n {
27985
27986
  */
27986
27987
  constructor(e, t = 16776960) {
27987
27988
  const n = new Uint16Array([0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7]), i = new Float32Array(24), s = new Je();
27988
- s.setIndex(new xt(n, 1)), s.setAttribute("position", new xt(i, 3)), super(s, new tn({ color: t, toneMapped: !1 })), this.object = e, this.type = "BoxHelper", this.matrixAutoUpdate = !1, this.update();
27989
+ s.setIndex(new xt(n, 1)), s.setAttribute("position", new xt(i, 3)), super(s, new nn({ color: t, toneMapped: !1 })), this.object = e, this.type = "BoxHelper", this.matrixAutoUpdate = !1, this.update();
27989
27990
  }
27990
27991
  /**
27991
27992
  * Updates the helper's geometry to match the dimensions of the object,
@@ -28025,7 +28026,7 @@ class Ky extends $n {
28025
28026
  */
28026
28027
  constructor(e, t = 16776960) {
28027
28028
  const n = new Uint16Array([0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7]), i = [1, 1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1], s = new Je();
28028
- s.setIndex(new xt(n, 1)), s.setAttribute("position", new Fe(i, 3)), super(s, new tn({ color: t, toneMapped: !1 })), this.box = e, this.type = "Box3Helper", this.geometry.computeBoundingSphere();
28029
+ s.setIndex(new xt(n, 1)), s.setAttribute("position", new Fe(i, 3)), super(s, new nn({ color: t, toneMapped: !1 })), this.box = e, this.type = "Box3Helper", this.geometry.computeBoundingSphere();
28029
28030
  }
28030
28031
  updateMatrixWorld(e) {
28031
28032
  const t = this.box;
@@ -28049,9 +28050,9 @@ class Jy extends Ai {
28049
28050
  */
28050
28051
  constructor(e, t = 1, n = 16776960) {
28051
28052
  const i = n, s = [1, -1, 0, -1, 1, 0, -1, -1, 0, 1, 1, 0, -1, 1, 0, -1, -1, 0, 1, -1, 0, 1, 1, 0], a = new Je();
28052
- a.setAttribute("position", new Fe(s, 3)), a.computeBoundingSphere(), super(a, new tn({ color: i, toneMapped: !1 })), this.type = "PlaneHelper", this.plane = e, this.size = t;
28053
+ a.setAttribute("position", new Fe(s, 3)), a.computeBoundingSphere(), super(a, new nn({ color: i, toneMapped: !1 })), this.type = "PlaneHelper", this.plane = e, this.size = t;
28053
28054
  const o = [1, 1, 0, -1, 1, 0, -1, -1, 0, 1, 1, 0, -1, -1, 0, 1, -1, 0], l = new Je();
28054
- l.setAttribute("position", new Fe(o, 3)), l.computeBoundingSphere(), this.add(new yt(l, new Ci({ color: i, opacity: 0.2, transparent: !0, depthWrite: !1, toneMapped: !1 })));
28055
+ l.setAttribute("position", new Fe(o, 3)), l.computeBoundingSphere(), this.add(new bt(l, new Ci({ color: i, opacity: 0.2, transparent: !0, depthWrite: !1, toneMapped: !1 })));
28055
28056
  }
28056
28057
  updateMatrixWorld(e) {
28057
28058
  this.position.set(0, 0, 0), this.scale.set(0.5 * this.size, 0.5 * this.size, 1), this.lookAt(this.plane.normal), this.translateZ(-this.plane.constant), super.updateMatrixWorld(e);
@@ -28078,7 +28079,7 @@ class jy extends ht {
28078
28079
  * @param {number} [headWidth=headLength*0.2] - The width of the head of the arrow.
28079
28080
  */
28080
28081
  constructor(e = new B(0, 0, 1), t = new B(0, 0, 0), n = 1, i = 16776960, s = n * 0.2, a = s * 0.2) {
28081
- super(), this.type = "ArrowHelper", Qa === void 0 && (Qa = new Je(), Qa.setAttribute("position", new Fe([0, 0, 0, 0, 1, 0], 3)), gh = new ra(0.5, 1, 5, 1), gh.translate(0, -0.5, 0)), this.position.copy(t), this.line = new Ai(Qa, new tn({ color: i, toneMapped: !1 })), this.line.matrixAutoUpdate = !1, this.add(this.line), this.cone = new yt(gh, new Ci({ color: i, toneMapped: !1 })), this.cone.matrixAutoUpdate = !1, this.add(this.cone), this.setDirection(e), this.setLength(n, s, a);
28082
+ super(), this.type = "ArrowHelper", Qa === void 0 && (Qa = new Je(), Qa.setAttribute("position", new Fe([0, 0, 0, 0, 1, 0], 3)), gh = new ra(0.5, 1, 5, 1), gh.translate(0, -0.5, 0)), this.position.copy(t), this.line = new Ai(Qa, new nn({ color: i, toneMapped: !1 })), this.line.matrixAutoUpdate = !1, this.add(this.line), this.cone = new bt(gh, new Ci({ color: i, toneMapped: !1 })), this.cone.matrixAutoUpdate = !1, this.add(this.cone), this.setDirection(e), this.setLength(n, s, a);
28082
28083
  }
28083
28084
  /**
28084
28085
  * Sets the direction of the helper.
@@ -28172,7 +28173,7 @@ class Qy extends $n {
28172
28173
  1
28173
28174
  ], i = new Je();
28174
28175
  i.setAttribute("position", new Fe(t, 3)), i.setAttribute("color", new Fe(n, 3));
28175
- const s = new tn({ vertexColors: !0, toneMapped: !1 });
28176
+ const s = new nn({ vertexColors: !0, toneMapped: !1 });
28176
28177
  super(i, s), this.type = "AxesHelper";
28177
28178
  }
28178
28179
  /**
@@ -28484,7 +28485,7 @@ function Yh(r, e, t, n) {
28484
28485
  }
28485
28486
  function sb(r) {
28486
28487
  switch (r) {
28487
- case an:
28488
+ case on:
28488
28489
  case fu:
28489
28490
  return { byteLength: 1, components: 1 };
28490
28491
  case Wr:
@@ -32941,7 +32942,7 @@ function HS(r, e, t, n, i, s) {
32941
32942
  }
32942
32943
  function _(g, v) {
32943
32944
  const y = d(v);
32944
- y && (y.isCubeTexture || y.mapping === Jr) ? (c === void 0 && (c = new yt(
32945
+ y && (y.isCubeTexture || y.mapping === Jr) ? (c === void 0 && (c = new bt(
32945
32946
  new or(1, 1, 1),
32946
32947
  new Mn({
32947
32948
  name: "BackgroundCubeMaterial",
@@ -32960,7 +32961,7 @@ function HS(r, e, t, n, i, s) {
32960
32961
  get: function() {
32961
32962
  return this.uniforms.envMap.value;
32962
32963
  }
32963
- }), n.update(c)), c.material.uniforms.envMap.value = y, c.material.uniforms.backgroundBlurriness.value = v.backgroundBlurriness, c.material.uniforms.backgroundIntensity.value = v.backgroundIntensity, c.material.uniforms.backgroundRotation.value.setFromMatrix4(GS.makeRotationFromEuler(v.backgroundRotation)).transpose(), y.isCubeTexture && y.isRenderTargetTexture === !1 && c.material.uniforms.backgroundRotation.value.premultiply(Wx), c.material.toneMapped = rt.getTransfer(y.colorSpace) !== ft, (h !== y || f !== y.version || u !== r.toneMapping) && (c.material.needsUpdate = !0, h = y, f = y.version, u = r.toneMapping), c.layers.enableAll(), g.unshift(c, c.geometry, c.material, 0, 0, null)) : y && y.isTexture && (l === void 0 && (l = new yt(
32964
+ }), n.update(c)), c.material.uniforms.envMap.value = y, c.material.uniforms.backgroundBlurriness.value = v.backgroundBlurriness, c.material.uniforms.backgroundIntensity.value = v.backgroundIntensity, c.material.uniforms.backgroundRotation.value.setFromMatrix4(GS.makeRotationFromEuler(v.backgroundRotation)).transpose(), y.isCubeTexture && y.isRenderTargetTexture === !1 && c.material.uniforms.backgroundRotation.value.premultiply(Wx), c.material.toneMapped = rt.getTransfer(y.colorSpace) !== ft, (h !== y || f !== y.version || u !== r.toneMapping) && (c.material.needsUpdate = !0, h = y, f = y.version, u = r.toneMapping), c.layers.enableAll(), g.unshift(c, c.geometry, c.material, 0, 0, null)) : y && y.isTexture && (l === void 0 && (l = new bt(
32964
32965
  new es(2, 2),
32965
32966
  new Mn({
32966
32967
  name: "BackgroundMaterial",
@@ -33107,7 +33108,7 @@ function WS(r, e) {
33107
33108
  if (G === void 0) continue;
33108
33109
  const W = G.buffer, te = G.type, H = G.bytesPerElement, ie = te === r.INT || te === r.UNSIGNED_INT || re.gpuType === Zc;
33109
33110
  if (re.isInterleavedBufferAttribute) {
33110
- const $ = re.data, se = $.stride, xe = re.offset;
33111
+ const $ = re.data, se = $.stride, pe = re.offset;
33111
33112
  if ($.isInstancedInterleavedBuffer) {
33112
33113
  for (let me = 0; me < Q.locationSize; me++)
33113
33114
  m(Q.location + me, $.meshPerAttribute);
@@ -33123,7 +33124,7 @@ function WS(r, e) {
33123
33124
  te,
33124
33125
  P,
33125
33126
  se * H,
33126
- (xe + N / Q.locationSize * me) * H,
33127
+ (pe + N / Q.locationSize * me) * H,
33127
33128
  ie
33128
33129
  );
33129
33130
  } else {
@@ -33280,7 +33281,7 @@ function qS(r, e, t, n) {
33280
33281
  }
33281
33282
  function o(E) {
33282
33283
  const b = E === Xn && (e.has("EXT_color_buffer_half_float") || e.has("EXT_color_buffer_float"));
33283
- return !(E !== an && n.convert(E) !== r.getParameter(r.IMPLEMENTATION_COLOR_READ_TYPE) && // Edge and Chrome Mac < 52 (#9513)
33284
+ return !(E !== on && n.convert(E) !== r.getParameter(r.IMPLEMENTATION_COLOR_READ_TYPE) && // Edge and Chrome Mac < 52 (#9513)
33284
33285
  E !== Jt && !b);
33285
33286
  }
33286
33287
  function l(E) {
@@ -33466,8 +33467,8 @@ class Zh {
33466
33467
  }
33467
33468
  _allocateTargets() {
33468
33469
  const e = 3 * Math.max(this._cubeSize, 112), t = 4 * this._cubeSize, n = {
33469
- magFilter: vt,
33470
- minFilter: vt,
33470
+ magFilter: yt,
33471
+ minFilter: yt,
33471
33472
  generateMipmaps: !1,
33472
33473
  type: Xn,
33473
33474
  format: jt,
@@ -33482,12 +33483,12 @@ class Zh {
33482
33483
  return i;
33483
33484
  }
33484
33485
  _compileMaterial(e) {
33485
- const t = new yt(new Je(), e);
33486
+ const t = new bt(new Je(), e);
33486
33487
  this._renderer.compile(t, ms);
33487
33488
  }
33488
33489
  _sceneToCubeUV(e, t, n, i, s) {
33489
33490
  const l = new zt(90, 1, t, n), c = [1, -1, 1, 1, 1, 1], h = [1, 1, 1, -1, -1, -1], f = this._renderer, u = f.autoClear, d = f.toneMapping;
33490
- f.getClearColor(ud), f.toneMapping = Rn, f.autoClear = !1, f.state.buffers.depth.getReversed() && (f.setRenderTarget(i), f.clearDepth(), f.setRenderTarget(null)), this._backgroundBox === null && (this._backgroundBox = new yt(
33491
+ f.getClearColor(ud), f.toneMapping = Rn, f.autoClear = !1, f.state.buffers.depth.getReversed() && (f.setRenderTarget(i), f.clearDepth(), f.setRenderTarget(null)), this._backgroundBox === null && (this._backgroundBox = new bt(
33491
33492
  new or(),
33492
33493
  new Ci({
33493
33494
  name: "PMREM.Background",
@@ -33639,7 +33640,7 @@ function KS(r) {
33639
33640
  y.set(w, m * p * M);
33640
33641
  }
33641
33642
  const S = new Je();
33642
- S.setAttribute("position", new xt(g, _)), S.setAttribute("uv", new xt(v, x)), S.setAttribute("faceIndex", new xt(y, m)), n.push(new yt(S, null)), i > yi && i--;
33643
+ S.setAttribute("position", new xt(g, _)), S.setAttribute("uv", new xt(v, x)), S.setAttribute("faceIndex", new xt(y, m)), n.push(new bt(S, null)), i > yi && i--;
33643
33644
  }
33644
33645
  return { lodMeshes: n, sizeLods: e, sigmas: t };
33645
33646
  }
@@ -34073,8 +34074,8 @@ class $u extends gn {
34073
34074
  blending: Hn
34074
34075
  });
34075
34076
  s.uniforms.tEquirect.value = t;
34076
- const a = new yt(i, s), o = t.minFilter;
34077
- return t.minFilter === Vn && (t.minFilter = vt), new Nx(1, 10, this).update(e, a), t.minFilter = o, a.geometry.dispose(), a.material.dispose(), this;
34077
+ const a = new bt(i, s), o = t.minFilter;
34078
+ return t.minFilter === Vn && (t.minFilter = yt), new Nx(1, 10, this).update(e, a), t.minFilter = o, a.geometry.dispose(), a.material.dispose(), this;
34078
34079
  }
34079
34080
  /**
34080
34081
  * Clears this cube render target.
@@ -34462,7 +34463,7 @@ function o2(r, e, t, n, i) {
34462
34463
  ),
34463
34464
  depthTest: !1,
34464
34465
  depthWrite: !1
34465
- }), c = new yt(o, l), h = new ca(-1, 1, 1, -1, 0, 1);
34466
+ }), c = new bt(o, l), h = new ca(-1, 1, 1, -1, 0, 1);
34466
34467
  let f = null, u = null, d = !1, p, _ = null, x = [], m = !1;
34467
34468
  this.setSize = function(g, v) {
34468
34469
  s.setSize(g, v), a.setSize(g, v);
@@ -35600,7 +35601,7 @@ function TE(r, e, t, n, i, s) {
35600
35601
  W = Ze.vertexShader, te = Ze.fragmentShader;
35601
35602
  } else
35602
35603
  W = b.vertexShader, te = b.fragmentShader, o.update(b), H = o.getVertexShaderID(b), ie = o.getFragmentShaderID(b);
35603
- const $ = r.getRenderTarget(), se = r.state.buffers.depth.getReversed(), xe = I.isInstancedMesh === !0, me = I.isBatchedMesh === !0, Ae = !!b.map, Te = !!b.matcap, j = !!K, le = !!b.aoMap, ne = !!b.lightMap, _e = !!b.bumpMap, ve = !!b.normalMap, Xe = !!b.displacementMap, U = !!b.emissiveMap, Oe = !!b.metalnessMap, we = !!b.roughnessMap, Ge = b.anisotropy > 0, de = b.clearcoat > 0, st = b.dispersion > 0, D = b.iridescence > 0, T = b.sheen > 0, q = b.transmission > 0, ae = Ge && !!b.anisotropyMap, ue = de && !!b.clearcoatMap, pe = de && !!b.clearcoatNormalMap, ge = de && !!b.clearcoatRoughnessMap, ee = D && !!b.iridescenceMap, ce = D && !!b.iridescenceThicknessMap, Re = T && !!b.sheenColorMap, Le = T && !!b.sheenRoughnessMap, Se = !!b.specularMap, ye = !!b.specularColorMap, Ye = !!b.specularIntensityMap, je = q && !!b.transmissionMap, ot = q && !!b.thicknessMap, z = !!b.gradientMap, be = !!b.alphaMap, oe = b.alphaTest > 0, Pe = !!b.alphaHash, Me = !!b.extensions;
35604
+ const $ = r.getRenderTarget(), se = r.state.buffers.depth.getReversed(), pe = I.isInstancedMesh === !0, me = I.isBatchedMesh === !0, Ae = !!b.map, Te = !!b.matcap, j = !!K, le = !!b.aoMap, ne = !!b.lightMap, _e = !!b.bumpMap, ve = !!b.normalMap, Xe = !!b.displacementMap, U = !!b.emissiveMap, Oe = !!b.metalnessMap, we = !!b.roughnessMap, Ge = b.anisotropy > 0, de = b.clearcoat > 0, st = b.dispersion > 0, D = b.iridescence > 0, T = b.sheen > 0, q = b.transmission > 0, ae = Ge && !!b.anisotropyMap, ue = de && !!b.clearcoatMap, xe = de && !!b.clearcoatNormalMap, ge = de && !!b.clearcoatRoughnessMap, ee = D && !!b.iridescenceMap, ce = D && !!b.iridescenceThicknessMap, Re = T && !!b.sheenColorMap, Le = T && !!b.sheenRoughnessMap, Se = !!b.specularMap, ye = !!b.specularColorMap, Ye = !!b.specularIntensityMap, je = q && !!b.transmissionMap, ot = q && !!b.thicknessMap, z = !!b.gradientMap, be = !!b.alphaMap, oe = b.alphaTest > 0, Pe = !!b.alphaHash, Me = !!b.extensions;
35604
35605
  let fe = Rn;
35605
35606
  b.toneMapped && ($ === null || $.isXRRenderTarget === !0) && (fe = r.toneMapping);
35606
35607
  const ze = {
@@ -35617,9 +35618,9 @@ function TE(r, e, t, n, i, s) {
35617
35618
  precision: u,
35618
35619
  batching: me,
35619
35620
  batchingColor: me && I._colorsTexture !== null,
35620
- instancing: xe,
35621
- instancingColor: xe && I.instanceColor !== null,
35622
- instancingMorph: xe && I.morphTexture !== null,
35621
+ instancing: pe,
35622
+ instancingColor: pe && I.instanceColor !== null,
35623
+ instancingMorph: pe && I.morphTexture !== null,
35623
35624
  outputColorSpace: $ === null ? r.outputColorSpace : $.isXRRenderTarget === !0 ? $.texture.colorSpace : rt.workingColorSpace,
35624
35625
  alphaToCoverage: !!b.alphaToCoverage,
35625
35626
  map: Ae,
@@ -35642,7 +35643,7 @@ function TE(r, e, t, n, i, s) {
35642
35643
  anisotropyMap: ae,
35643
35644
  clearcoat: de,
35644
35645
  clearcoatMap: ue,
35645
- clearcoatNormalMap: pe,
35646
+ clearcoatNormalMap: xe,
35646
35647
  clearcoatRoughnessMap: ge,
35647
35648
  dispersion: st,
35648
35649
  iridescence: D,
@@ -35675,7 +35676,7 @@ function TE(r, e, t, n, i, s) {
35675
35676
  roughnessMapUv: we && p(b.roughnessMap.channel),
35676
35677
  anisotropyMapUv: ae && p(b.anisotropyMap.channel),
35677
35678
  clearcoatMapUv: ue && p(b.clearcoatMap.channel),
35678
- clearcoatNormalMapUv: pe && p(b.clearcoatNormalMap.channel),
35679
+ clearcoatNormalMapUv: xe && p(b.clearcoatNormalMap.channel),
35679
35680
  clearcoatRoughnessMapUv: ge && p(b.clearcoatRoughnessMap.channel),
35680
35681
  iridescenceMapUv: ee && p(b.iridescenceMap.channel),
35681
35682
  iridescenceThicknessMapUv: ce && p(b.iridescenceThicknessMap.channel),
@@ -36226,7 +36227,7 @@ function GE(r, e, t) {
36226
36227
  3
36227
36228
  )
36228
36229
  );
36229
- const _ = new yt(p, u), x = this;
36230
+ const _ = new bt(p, u), x = this;
36230
36231
  this.enabled = !1, this.autoUpdate = !0, this.needsUpdate = !1, this.type = As;
36231
36232
  let m = this.type;
36232
36233
  this.render = function(M, E, b) {
@@ -36258,12 +36259,12 @@ function GE(r, e, t) {
36258
36259
  V.map = new gn(i.x, i.y, {
36259
36260
  format: Si,
36260
36261
  type: Xn,
36261
- minFilter: vt,
36262
- magFilter: vt,
36262
+ minFilter: yt,
36263
+ magFilter: yt,
36263
36264
  generateMipmaps: !1
36264
- }), V.map.texture.name = O.name + ".shadowMap", V.map.depthTexture = new ir(i.x, i.y, Jt), V.map.depthTexture.name = O.name + ".shadowMapDepth", V.map.depthTexture.format = qn, V.map.depthTexture.compareFunction = null, V.map.depthTexture.minFilter = Pt, V.map.depthTexture.magFilter = Pt;
36265
+ }), V.map.texture.name = O.name + ".shadowMap", V.map.depthTexture = new ir(i.x, i.y, Jt), V.map.depthTexture.name = O.name + ".shadowMapDepth", V.map.depthTexture.format = qn, V.map.depthTexture.compareFunction = null, V.map.depthTexture.minFilter = It, V.map.depthTexture.magFilter = It;
36265
36266
  } else
36266
- O.isPointLight ? (V.map = new $u(i.x), V.map.depthTexture = new Qp(i.x, bn)) : (V.map = new gn(i.x, i.y), V.map.depthTexture = new ir(i.x, i.y, bn)), V.map.depthTexture.name = O.name + ".shadowMap", V.map.depthTexture.format = qn, this.type === As ? (V.map.depthTexture.compareFunction = Q ? il : nl, V.map.depthTexture.minFilter = vt, V.map.depthTexture.magFilter = vt) : (V.map.depthTexture.compareFunction = null, V.map.depthTexture.minFilter = Pt, V.map.depthTexture.magFilter = Pt);
36267
+ O.isPointLight ? (V.map = new $u(i.x), V.map.depthTexture = new Qp(i.x, bn)) : (V.map = new gn(i.x, i.y), V.map.depthTexture = new ir(i.x, i.y, bn)), V.map.depthTexture.name = O.name + ".shadowMap", V.map.depthTexture.format = qn, this.type === As ? (V.map.depthTexture.compareFunction = Q ? il : nl, V.map.depthTexture.minFilter = yt, V.map.depthTexture.magFilter = yt) : (V.map.depthTexture.compareFunction = null, V.map.depthTexture.minFilter = It, V.map.depthTexture.magFilter = It);
36267
36268
  V.camera.updateProjectionMatrix();
36268
36269
  }
36269
36270
  const re = V.map.isWebGLCubeRenderTarget ? 6 : 1;
@@ -36389,7 +36390,7 @@ function HE(r, e) {
36389
36390
  oe !== fe && !z && (r.depthMask(fe), oe = fe);
36390
36391
  },
36391
36392
  setFunc: function(fe) {
36392
- if (be && (fe = s1[fe]), Pe !== fe) {
36393
+ if (be && (fe = s_[fe]), Pe !== fe) {
36393
36394
  switch (fe) {
36394
36395
  case jo:
36395
36396
  r.depthFunc(r.NEVER);
@@ -36481,7 +36482,7 @@ function HE(r, e) {
36481
36482
  function se(z) {
36482
36483
  h[z] !== !1 && (r.disable(z), h[z] = !1);
36483
36484
  }
36484
- function xe(z, be) {
36485
+ function pe(z, be) {
36485
36486
  return u[z] !== be ? (r.bindFramebuffer(z, be), u[z] = be, z === r.DRAW_FRAMEBUFFER && (u[r.FRAMEBUFFER] = be), z === r.FRAMEBUFFER && (u[r.DRAW_FRAMEBUFFER] = be), !0) : !1;
36486
36487
  }
36487
36488
  function me(z, be) {
@@ -36649,7 +36650,7 @@ function HE(r, e) {
36649
36650
  ke("WebGLState:", z);
36650
36651
  }
36651
36652
  }
36652
- function pe() {
36653
+ function xe() {
36653
36654
  try {
36654
36655
  r.texStorage2D(...arguments);
36655
36656
  } catch (z) {
@@ -36710,7 +36711,7 @@ function HE(r, e) {
36710
36711
  },
36711
36712
  enable: $,
36712
36713
  disable: se,
36713
- bindFramebuffer: xe,
36714
+ bindFramebuffer: pe,
36714
36715
  drawBuffers: me,
36715
36716
  useProgram: Ae,
36716
36717
  setBlending: le,
@@ -36731,7 +36732,7 @@ function HE(r, e) {
36731
36732
  getParameter: Re,
36732
36733
  updateUBOMapping: Ye,
36733
36734
  uniformBlockBinding: je,
36734
- texStorage2D: pe,
36735
+ texStorage2D: xe,
36735
36736
  texStorage3D: ge,
36736
36737
  texSubImage2D: T,
36737
36738
  texSubImage3D: q,
@@ -36759,10 +36760,10 @@ function WE(r, e, t, n, i, s, a) {
36759
36760
  const ue = st(D);
36760
36761
  if ((ue.width > q || ue.height > q) && (ae = q / Math.max(ue.width, ue.height)), ae < 1)
36761
36762
  if (typeof HTMLImageElement < "u" && D instanceof HTMLImageElement || typeof HTMLCanvasElement < "u" && D instanceof HTMLCanvasElement || typeof ImageBitmap < "u" && D instanceof ImageBitmap || typeof VideoFrame < "u" && D instanceof VideoFrame) {
36762
- const pe = Math.floor(ae * ue.width), ge = Math.floor(ae * ue.height);
36763
- u === void 0 && (u = _(pe, ge));
36764
- const ee = T ? _(pe, ge) : u;
36765
- return ee.width = pe, ee.height = ge, ee.getContext("2d").drawImage(D, 0, 0, pe, ge), Ee("WebGLRenderer: Texture has been resized from (" + ue.width + "x" + ue.height + ") to (" + pe + "x" + ge + ")."), ee;
36763
+ const xe = Math.floor(ae * ue.width), ge = Math.floor(ae * ue.height);
36764
+ u === void 0 && (u = _(xe, ge));
36765
+ const ee = T ? _(xe, ge) : u;
36766
+ return ee.width = xe, ee.height = ge, ee.getContext("2d").drawImage(D, 0, 0, xe, ge), Ee("WebGLRenderer: Texture has been resized from (" + ue.width + "x" + ue.height + ") to (" + xe + "x" + ge + ")."), ee;
36766
36767
  } else
36767
36768
  return "data" in D && Ee("WebGLRenderer: Image in DataTexture is too big (" + ue.width + "x" + ue.height + ")."), D;
36768
36769
  return D;
@@ -36776,7 +36777,7 @@ function WE(r, e, t, n, i, s, a) {
36776
36777
  function v(D) {
36777
36778
  return D.isWebGLCubeRenderTarget ? r.TEXTURE_CUBE_MAP : D.isWebGL3DRenderTarget ? r.TEXTURE_3D : D.isWebGLArrayRenderTarget || D.isCompressedArrayTexture ? r.TEXTURE_2D_ARRAY : r.TEXTURE_2D;
36778
36779
  }
36779
- function y(D, T, q, ae, ue, pe = !1) {
36780
+ function y(D, T, q, ae, ue, xe = !1) {
36780
36781
  if (D !== null) {
36781
36782
  if (r[D] !== void 0) return r[D];
36782
36783
  Ee("WebGLRenderer: Attempt to use non-existing WebGL internal format '" + D + "'");
@@ -36785,7 +36786,7 @@ function WE(r, e, t, n, i, s, a) {
36785
36786
  ae && (ge = e.get("EXT_texture_norm16"), ge || Ee("WebGLRenderer: Unable to use normalized textures without EXT_texture_norm16 extension"));
36786
36787
  let ee = T;
36787
36788
  if (T === r.RED && (q === r.FLOAT && (ee = r.R32F), q === r.HALF_FLOAT && (ee = r.R16F), q === r.UNSIGNED_BYTE && (ee = r.R8), q === r.UNSIGNED_SHORT && ge && (ee = ge.R16_EXT), q === r.SHORT && ge && (ee = ge.R16_SNORM_EXT)), T === r.RED_INTEGER && (q === r.UNSIGNED_BYTE && (ee = r.R8UI), q === r.UNSIGNED_SHORT && (ee = r.R16UI), q === r.UNSIGNED_INT && (ee = r.R32UI), q === r.BYTE && (ee = r.R8I), q === r.SHORT && (ee = r.R16I), q === r.INT && (ee = r.R32I)), T === r.RG && (q === r.FLOAT && (ee = r.RG32F), q === r.HALF_FLOAT && (ee = r.RG16F), q === r.UNSIGNED_BYTE && (ee = r.RG8), q === r.UNSIGNED_SHORT && ge && (ee = ge.RG16_EXT), q === r.SHORT && ge && (ee = ge.RG16_SNORM_EXT)), T === r.RG_INTEGER && (q === r.UNSIGNED_BYTE && (ee = r.RG8UI), q === r.UNSIGNED_SHORT && (ee = r.RG16UI), q === r.UNSIGNED_INT && (ee = r.RG32UI), q === r.BYTE && (ee = r.RG8I), q === r.SHORT && (ee = r.RG16I), q === r.INT && (ee = r.RG32I)), T === r.RGB_INTEGER && (q === r.UNSIGNED_BYTE && (ee = r.RGB8UI), q === r.UNSIGNED_SHORT && (ee = r.RGB16UI), q === r.UNSIGNED_INT && (ee = r.RGB32UI), q === r.BYTE && (ee = r.RGB8I), q === r.SHORT && (ee = r.RGB16I), q === r.INT && (ee = r.RGB32I)), T === r.RGBA_INTEGER && (q === r.UNSIGNED_BYTE && (ee = r.RGBA8UI), q === r.UNSIGNED_SHORT && (ee = r.RGBA16UI), q === r.UNSIGNED_INT && (ee = r.RGBA32UI), q === r.BYTE && (ee = r.RGBA8I), q === r.SHORT && (ee = r.RGBA16I), q === r.INT && (ee = r.RGBA32I)), T === r.RGB && (q === r.UNSIGNED_SHORT && ge && (ee = ge.RGB16_EXT), q === r.SHORT && ge && (ee = ge.RGB16_SNORM_EXT), q === r.UNSIGNED_INT_5_9_9_9_REV && (ee = r.RGB9_E5), q === r.UNSIGNED_INT_10F_11F_11F_REV && (ee = r.R11F_G11F_B10F)), T === r.RGBA) {
36788
- const ce = pe ? Hs : rt.getTransfer(ue);
36789
+ const ce = xe ? Hs : rt.getTransfer(ue);
36789
36790
  q === r.FLOAT && (ee = r.RGBA32F), q === r.HALF_FLOAT && (ee = r.RGBA16F), q === r.UNSIGNED_BYTE && (ee = ce === ft ? r.SRGB8_ALPHA8 : r.RGBA8), q === r.UNSIGNED_SHORT && ge && (ee = ge.RGBA16_EXT), q === r.SHORT && ge && (ee = ge.RGBA16_SNORM_EXT), q === r.UNSIGNED_SHORT_4_4_4_4 && (ee = r.RGBA4), q === r.UNSIGNED_SHORT_5_5_5_1 && (ee = r.RGB5_A1);
36790
36791
  }
36791
36792
  return (ee === r.R16F || ee === r.R32F || ee === r.RG16F || ee === r.RG32F || ee === r.RGBA16F || ee === r.RGBA32F) && e.get("EXT_color_buffer_float"), ee;
@@ -36795,7 +36796,7 @@ function WE(r, e, t, n, i, s, a) {
36795
36796
  return D ? T === null || T === bn || T === Xr ? q = r.DEPTH24_STENCIL8 : T === Jt ? q = r.DEPTH32F_STENCIL8 : T === Wr && (q = r.DEPTH24_STENCIL8, Ee("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")) : T === null || T === bn || T === Xr ? q = r.DEPTH_COMPONENT24 : T === Jt ? q = r.DEPTH_COMPONENT32F : T === Wr && (q = r.DEPTH_COMPONENT16), q;
36796
36797
  }
36797
36798
  function M(D, T) {
36798
- return m(D) === !0 || D.isFramebufferTexture && D.minFilter !== Pt && D.minFilter !== vt ? Math.log2(Math.max(T.width, T.height)) + 1 : D.mipmaps !== void 0 && D.mipmaps.length > 0 ? D.mipmaps.length : D.isCompressedTexture && Array.isArray(D.image) ? T.mipmaps.length : 1;
36799
+ return m(D) === !0 || D.isFramebufferTexture && D.minFilter !== It && D.minFilter !== yt ? Math.log2(Math.max(T.width, T.height)) + 1 : D.mipmaps !== void 0 && D.mipmaps.length > 0 ? D.mipmaps.length : D.isCompressedTexture && Array.isArray(D.image) ? T.mipmaps.length : 1;
36799
36800
  }
36800
36801
  function E(D) {
36801
36802
  const T = D.target;
@@ -36843,8 +36844,8 @@ function WE(r, e, t, n, i, s, a) {
36843
36844
  }
36844
36845
  const q = D.textures;
36845
36846
  for (let ae = 0, ue = q.length; ae < ue; ae++) {
36846
- const pe = n.get(q[ae]);
36847
- pe.__webglTexture && (r.deleteTexture(pe.__webglTexture), a.memory.textures--), n.remove(q[ae]);
36847
+ const xe = n.get(q[ae]);
36848
+ xe.__webglTexture && (r.deleteTexture(xe.__webglTexture), a.memory.textures--), n.remove(q[ae]);
36848
36849
  }
36849
36850
  n.remove(D);
36850
36851
  }
@@ -36900,7 +36901,7 @@ function WE(r, e, t, n, i, s, a) {
36900
36901
  function P(D, T) {
36901
36902
  const q = n.get(D);
36902
36903
  if (D.isCubeDepthTexture !== !0 && D.version > 0 && q.__version !== D.version) {
36903
- xe(q, D, T);
36904
+ pe(q, D, T);
36904
36905
  return;
36905
36906
  }
36906
36907
  t.bindTexture(r.TEXTURE_CUBE_MAP, q.__webglTexture, r.TEXTURE0 + T);
@@ -36910,10 +36911,10 @@ function WE(r, e, t, n, i, s, a) {
36910
36911
  [ln]: r.CLAMP_TO_EDGE,
36911
36912
  [Us]: r.MIRRORED_REPEAT
36912
36913
  }, G = {
36913
- [Pt]: r.NEAREST,
36914
+ [It]: r.NEAREST,
36914
36915
  [uu]: r.NEAREST_MIPMAP_NEAREST,
36915
36916
  [kr]: r.NEAREST_MIPMAP_LINEAR,
36916
- [vt]: r.LINEAR,
36917
+ [yt]: r.LINEAR,
36917
36918
  [Ts]: r.LINEAR_MIPMAP_NEAREST,
36918
36919
  [Vn]: r.LINEAR_MIPMAP_LINEAR
36919
36920
  }, W = {
@@ -36927,8 +36928,8 @@ function WE(r, e, t, n, i, s, a) {
36927
36928
  [Np]: r.NOTEQUAL
36928
36929
  };
36929
36930
  function te(D, T) {
36930
- if (T.type === Jt && e.has("OES_texture_float_linear") === !1 && (T.magFilter === vt || T.magFilter === Ts || T.magFilter === kr || T.magFilter === Vn || T.minFilter === vt || T.minFilter === Ts || T.minFilter === kr || T.minFilter === Vn) && Ee("WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."), r.texParameteri(D, r.TEXTURE_WRAP_S, N[T.wrapS]), r.texParameteri(D, r.TEXTURE_WRAP_T, N[T.wrapT]), (D === r.TEXTURE_3D || D === r.TEXTURE_2D_ARRAY) && r.texParameteri(D, r.TEXTURE_WRAP_R, N[T.wrapR]), r.texParameteri(D, r.TEXTURE_MAG_FILTER, G[T.magFilter]), r.texParameteri(D, r.TEXTURE_MIN_FILTER, G[T.minFilter]), T.compareFunction && (r.texParameteri(D, r.TEXTURE_COMPARE_MODE, r.COMPARE_REF_TO_TEXTURE), r.texParameteri(D, r.TEXTURE_COMPARE_FUNC, W[T.compareFunction])), e.has("EXT_texture_filter_anisotropic") === !0) {
36931
- if (T.magFilter === Pt || T.minFilter !== kr && T.minFilter !== Vn || T.type === Jt && e.has("OES_texture_float_linear") === !1) return;
36931
+ if (T.type === Jt && e.has("OES_texture_float_linear") === !1 && (T.magFilter === yt || T.magFilter === Ts || T.magFilter === kr || T.magFilter === Vn || T.minFilter === yt || T.minFilter === Ts || T.minFilter === kr || T.minFilter === Vn) && Ee("WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."), r.texParameteri(D, r.TEXTURE_WRAP_S, N[T.wrapS]), r.texParameteri(D, r.TEXTURE_WRAP_T, N[T.wrapT]), (D === r.TEXTURE_3D || D === r.TEXTURE_2D_ARRAY) && r.texParameteri(D, r.TEXTURE_WRAP_R, N[T.wrapR]), r.texParameteri(D, r.TEXTURE_MAG_FILTER, G[T.magFilter]), r.texParameteri(D, r.TEXTURE_MIN_FILTER, G[T.minFilter]), T.compareFunction && (r.texParameteri(D, r.TEXTURE_COMPARE_MODE, r.COMPARE_REF_TO_TEXTURE), r.texParameteri(D, r.TEXTURE_COMPARE_FUNC, W[T.compareFunction])), e.has("EXT_texture_filter_anisotropic") === !0) {
36932
+ if (T.magFilter === It || T.minFilter !== kr && T.minFilter !== Vn || T.type === Jt && e.has("OES_texture_float_linear") === !1) return;
36932
36933
  if (T.anisotropy > 1 || n.get(T).__currentAnisotropy) {
36933
36934
  const q = e.get("EXT_texture_filter_anisotropic");
36934
36935
  r.texParameterf(D, q.TEXTURE_MAX_ANISOTROPY_EXT, Math.min(T.anisotropy, i.getMaxAnisotropy())), n.get(T).__currentAnisotropy = T.anisotropy;
@@ -36941,14 +36942,14 @@ function WE(r, e, t, n, i, s, a) {
36941
36942
  const ae = T.source;
36942
36943
  let ue = d.get(ae);
36943
36944
  ue === void 0 && (ue = {}, d.set(ae, ue));
36944
- const pe = V(T);
36945
- if (pe !== D.__cacheKey) {
36946
- ue[pe] === void 0 && (ue[pe] = {
36945
+ const xe = V(T);
36946
+ if (xe !== D.__cacheKey) {
36947
+ ue[xe] === void 0 && (ue[xe] = {
36947
36948
  texture: r.createTexture(),
36948
36949
  usedTimes: 0
36949
- }, a.memory.textures++, q = !0), ue[pe].usedTimes++;
36950
+ }, a.memory.textures++, q = !0), ue[xe].usedTimes++;
36950
36951
  const ge = ue[D.__cacheKey];
36951
- ge !== void 0 && (ue[D.__cacheKey].usedTimes--, ge.usedTimes === 0 && w(T)), D.__cacheKey = pe, D.__webglTexture = ue[pe].texture;
36952
+ ge !== void 0 && (ue[D.__cacheKey].usedTimes--, ge.usedTimes === 0 && w(T)), D.__cacheKey = xe, D.__webglTexture = ue[xe].texture;
36952
36953
  }
36953
36954
  return q;
36954
36955
  }
@@ -36956,24 +36957,24 @@ function WE(r, e, t, n, i, s, a) {
36956
36957
  return Math.floor(Math.floor(D / q) / T);
36957
36958
  }
36958
36959
  function $(D, T, q, ae) {
36959
- const pe = D.updateRanges;
36960
- if (pe.length === 0)
36960
+ const xe = D.updateRanges;
36961
+ if (xe.length === 0)
36961
36962
  t.texSubImage2D(r.TEXTURE_2D, 0, 0, 0, T.width, T.height, q, ae, T.data);
36962
36963
  else {
36963
- pe.sort((Le, Se) => Le.start - Se.start);
36964
+ xe.sort((Le, Se) => Le.start - Se.start);
36964
36965
  let ge = 0;
36965
- for (let Le = 1; Le < pe.length; Le++) {
36966
- const Se = pe[ge], ye = pe[Le], Ye = Se.start + Se.count, je = ie(ye.start, T.width, 4), ot = ie(Se.start, T.width, 4);
36966
+ for (let Le = 1; Le < xe.length; Le++) {
36967
+ const Se = xe[ge], ye = xe[Le], Ye = Se.start + Se.count, je = ie(ye.start, T.width, 4), ot = ie(Se.start, T.width, 4);
36967
36968
  ye.start <= Ye + 1 && je === ot && ie(ye.start + ye.count - 1, T.width, 4) === je ? Se.count = Math.max(
36968
36969
  Se.count,
36969
36970
  ye.start + ye.count - Se.start
36970
- ) : (++ge, pe[ge] = ye);
36971
+ ) : (++ge, xe[ge] = ye);
36971
36972
  }
36972
- pe.length = ge + 1;
36973
+ xe.length = ge + 1;
36973
36974
  const ee = t.getParameter(r.UNPACK_ROW_LENGTH), ce = t.getParameter(r.UNPACK_SKIP_PIXELS), Re = t.getParameter(r.UNPACK_SKIP_ROWS);
36974
36975
  t.pixelStorei(r.UNPACK_ROW_LENGTH, T.width);
36975
- for (let Le = 0, Se = pe.length; Le < Se; Le++) {
36976
- const ye = pe[Le], Ye = Math.floor(ye.start / 4), je = Math.ceil(ye.count / 4), ot = Ye % T.width, z = Math.floor(Ye / T.width), be = je, oe = 1;
36976
+ for (let Le = 0, Se = xe.length; Le < Se; Le++) {
36977
+ const ye = xe[Le], Ye = Math.floor(ye.start / 4), je = Math.ceil(ye.count / 4), ot = Ye % T.width, z = Math.floor(Ye / T.width), be = je, oe = 1;
36977
36978
  t.pixelStorei(r.UNPACK_SKIP_PIXELS, ot), t.pixelStorei(r.UNPACK_SKIP_ROWS, z), t.texSubImage2D(r.TEXTURE_2D, 0, ot, z, be, oe, q, ae, T.data);
36978
36979
  }
36979
36980
  D.clearUpdateRanges(), t.pixelStorei(r.UNPACK_ROW_LENGTH, ee), t.pixelStorei(r.UNPACK_SKIP_PIXELS, ce), t.pixelStorei(r.UNPACK_SKIP_ROWS, Re);
@@ -36982,10 +36983,10 @@ function WE(r, e, t, n, i, s, a) {
36982
36983
  function se(D, T, q) {
36983
36984
  let ae = r.TEXTURE_2D;
36984
36985
  (T.isDataArrayTexture || T.isCompressedArrayTexture) && (ae = r.TEXTURE_2D_ARRAY), T.isData3DTexture && (ae = r.TEXTURE_3D);
36985
- const ue = H(D, T), pe = T.source;
36986
+ const ue = H(D, T), xe = T.source;
36986
36987
  t.bindTexture(ae, D.__webglTexture, r.TEXTURE0 + q);
36987
- const ge = n.get(pe);
36988
- if (pe.version !== ge.__version || ue === !0) {
36988
+ const ge = n.get(xe);
36989
+ if (xe.version !== ge.__version || ue === !0) {
36989
36990
  if (t.activeTexture(r.TEXTURE0 + q), (typeof ImageBitmap < "u" && T.image instanceof ImageBitmap) === !1) {
36990
36991
  const oe = rt.getPrimaries(rt.workingColorSpace), Pe = T.colorSpace === ei ? null : rt.getPrimaries(T.colorSpace), Me = T.colorSpace === ei || oe === Pe ? r.NONE : r.BROWSER_DEFAULT_WEBGL;
36991
36992
  t.pixelStorei(r.UNPACK_FLIP_Y_WEBGL, T.flipY), t.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL, T.premultiplyAlpha), t.pixelStorei(r.UNPACK_COLORSPACE_CONVERSION_WEBGL, Me);
@@ -36997,7 +36998,7 @@ function WE(r, e, t, n, i, s, a) {
36997
36998
  let Se = y(T.internalFormat, Re, Le, T.normalized, T.colorSpace, T.isVideoTexture);
36998
36999
  te(ae, T);
36999
37000
  let ye;
37000
- const Ye = T.mipmaps, je = T.isVideoTexture !== !0, ot = ge.__version === void 0 || ue === !0, z = pe.dataReady, be = M(T, ce);
37001
+ const Ye = T.mipmaps, je = T.isVideoTexture !== !0, ot = ge.__version === void 0 || ue === !0, z = xe.dataReady, be = M(T, ce);
37001
37002
  if (T.isDepthTexture)
37002
37003
  Se = S(T.format === _i, T.type), ot && (je ? t.texStorage2D(r.TEXTURE_2D, 1, Se, ce.width, ce.height) : t.texImage2D(r.TEXTURE_2D, 0, Se, ce.width, ce.height, 0, Re, Le, null));
37003
37004
  else if (T.isDataTexture)
@@ -37097,23 +37098,23 @@ function WE(r, e, t, n, i, s, a) {
37097
37098
  z && t.texSubImage2D(r.TEXTURE_2D, 0, 0, 0, Re, Le, ce);
37098
37099
  } else
37099
37100
  t.texImage2D(r.TEXTURE_2D, 0, Se, Re, Le, ce);
37100
- m(T) && g(ae), ge.__version = pe.version, T.onUpdate && T.onUpdate(T);
37101
+ m(T) && g(ae), ge.__version = xe.version, T.onUpdate && T.onUpdate(T);
37101
37102
  }
37102
37103
  D.__version = T.version;
37103
37104
  }
37104
- function xe(D, T, q) {
37105
+ function pe(D, T, q) {
37105
37106
  if (T.image.length !== 6) return;
37106
37107
  const ae = H(D, T), ue = T.source;
37107
37108
  t.bindTexture(r.TEXTURE_CUBE_MAP, D.__webglTexture, r.TEXTURE0 + q);
37108
- const pe = n.get(ue);
37109
- if (ue.version !== pe.__version || ae === !0) {
37109
+ const xe = n.get(ue);
37110
+ if (ue.version !== xe.__version || ae === !0) {
37110
37111
  t.activeTexture(r.TEXTURE0 + q);
37111
37112
  const ge = rt.getPrimaries(rt.workingColorSpace), ee = T.colorSpace === ei ? null : rt.getPrimaries(T.colorSpace), ce = T.colorSpace === ei || ge === ee ? r.NONE : r.BROWSER_DEFAULT_WEBGL;
37112
37113
  t.pixelStorei(r.UNPACK_FLIP_Y_WEBGL, T.flipY), t.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL, T.premultiplyAlpha), t.pixelStorei(r.UNPACK_ALIGNMENT, T.unpackAlignment), t.pixelStorei(r.UNPACK_COLORSPACE_CONVERSION_WEBGL, ce);
37113
37114
  const Re = T.isCompressedTexture || T.image[0].isCompressedTexture, Le = T.image[0] && T.image[0].isDataTexture, Se = [];
37114
37115
  for (let fe = 0; fe < 6; fe++)
37115
37116
  !Re && !Le ? Se[fe] = x(T.image[fe], !0, i.maxCubemapSize) : Se[fe] = Le ? T.image[fe].image : T.image[fe], Se[fe] = de(T, Se[fe]);
37116
- const ye = Se[0], Ye = s.convert(T.format, T.colorSpace), je = s.convert(T.type), ot = y(T.internalFormat, Ye, je, T.normalized, T.colorSpace), z = T.isVideoTexture !== !0, be = pe.__version === void 0 || ae === !0, oe = ue.dataReady;
37117
+ const ye = Se[0], Ye = s.convert(T.format, T.colorSpace), je = s.convert(T.type), ot = y(T.internalFormat, Ye, je, T.normalized, T.colorSpace), z = T.isVideoTexture !== !0, be = xe.__version === void 0 || ae === !0, oe = ue.dataReady;
37117
37118
  let Pe = M(T, ye);
37118
37119
  te(r.TEXTURE_CUBE_MAP, T);
37119
37120
  let Me;
@@ -37147,26 +37148,26 @@ function WE(r, e, t, n, i, s, a) {
37147
37148
  }
37148
37149
  }
37149
37150
  }
37150
- m(T) && g(r.TEXTURE_CUBE_MAP), pe.__version = ue.version, T.onUpdate && T.onUpdate(T);
37151
+ m(T) && g(r.TEXTURE_CUBE_MAP), xe.__version = ue.version, T.onUpdate && T.onUpdate(T);
37151
37152
  }
37152
37153
  D.__version = T.version;
37153
37154
  }
37154
- function me(D, T, q, ae, ue, pe) {
37155
+ function me(D, T, q, ae, ue, xe) {
37155
37156
  const ge = s.convert(q.format, q.colorSpace), ee = s.convert(q.type), ce = y(q.internalFormat, ge, ee, q.normalized, q.colorSpace), Re = n.get(T), Le = n.get(q);
37156
37157
  if (Le.__renderTarget = T, !Re.__hasExternalTextures) {
37157
- const Se = Math.max(1, T.width >> pe), ye = Math.max(1, T.height >> pe);
37158
- ue === r.TEXTURE_3D || ue === r.TEXTURE_2D_ARRAY ? t.texImage3D(ue, pe, ce, Se, ye, T.depth, 0, ge, ee, null) : t.texImage2D(ue, pe, ce, Se, ye, 0, ge, ee, null);
37158
+ const Se = Math.max(1, T.width >> xe), ye = Math.max(1, T.height >> xe);
37159
+ ue === r.TEXTURE_3D || ue === r.TEXTURE_2D_ARRAY ? t.texImage3D(ue, xe, ce, Se, ye, T.depth, 0, ge, ee, null) : t.texImage2D(ue, xe, ce, Se, ye, 0, ge, ee, null);
37159
37160
  }
37160
- t.bindFramebuffer(r.FRAMEBUFFER, D), we(T) ? o.framebufferTexture2DMultisampleEXT(r.FRAMEBUFFER, ae, ue, Le.__webglTexture, 0, Oe(T)) : (ue === r.TEXTURE_2D || ue >= r.TEXTURE_CUBE_MAP_POSITIVE_X && ue <= r.TEXTURE_CUBE_MAP_NEGATIVE_Z) && r.framebufferTexture2D(r.FRAMEBUFFER, ae, ue, Le.__webglTexture, pe), t.bindFramebuffer(r.FRAMEBUFFER, null);
37161
+ t.bindFramebuffer(r.FRAMEBUFFER, D), we(T) ? o.framebufferTexture2DMultisampleEXT(r.FRAMEBUFFER, ae, ue, Le.__webglTexture, 0, Oe(T)) : (ue === r.TEXTURE_2D || ue >= r.TEXTURE_CUBE_MAP_POSITIVE_X && ue <= r.TEXTURE_CUBE_MAP_NEGATIVE_Z) && r.framebufferTexture2D(r.FRAMEBUFFER, ae, ue, Le.__webglTexture, xe), t.bindFramebuffer(r.FRAMEBUFFER, null);
37161
37162
  }
37162
37163
  function Ae(D, T, q) {
37163
37164
  if (r.bindRenderbuffer(r.RENDERBUFFER, D), T.depthBuffer) {
37164
- const ae = T.depthTexture, ue = ae && ae.isDepthTexture ? ae.type : null, pe = S(T.stencilBuffer, ue), ge = T.stencilBuffer ? r.DEPTH_STENCIL_ATTACHMENT : r.DEPTH_ATTACHMENT;
37165
- we(T) ? o.renderbufferStorageMultisampleEXT(r.RENDERBUFFER, Oe(T), pe, T.width, T.height) : q ? r.renderbufferStorageMultisample(r.RENDERBUFFER, Oe(T), pe, T.width, T.height) : r.renderbufferStorage(r.RENDERBUFFER, pe, T.width, T.height), r.framebufferRenderbuffer(r.FRAMEBUFFER, ge, r.RENDERBUFFER, D);
37165
+ const ae = T.depthTexture, ue = ae && ae.isDepthTexture ? ae.type : null, xe = S(T.stencilBuffer, ue), ge = T.stencilBuffer ? r.DEPTH_STENCIL_ATTACHMENT : r.DEPTH_ATTACHMENT;
37166
+ we(T) ? o.renderbufferStorageMultisampleEXT(r.RENDERBUFFER, Oe(T), xe, T.width, T.height) : q ? r.renderbufferStorageMultisample(r.RENDERBUFFER, Oe(T), xe, T.width, T.height) : r.renderbufferStorage(r.RENDERBUFFER, xe, T.width, T.height), r.framebufferRenderbuffer(r.FRAMEBUFFER, ge, r.RENDERBUFFER, D);
37166
37167
  } else {
37167
37168
  const ae = T.textures;
37168
37169
  for (let ue = 0; ue < ae.length; ue++) {
37169
- const pe = ae[ue], ge = s.convert(pe.format, pe.colorSpace), ee = s.convert(pe.type), ce = y(pe.internalFormat, ge, ee, pe.normalized, pe.colorSpace);
37170
+ const xe = ae[ue], ge = s.convert(xe.format, xe.colorSpace), ee = s.convert(xe.type), ce = y(xe.internalFormat, ge, ee, xe.normalized, xe.colorSpace);
37170
37171
  we(T) ? o.renderbufferStorageMultisampleEXT(r.RENDERBUFFER, Oe(T), ce, T.width, T.height) : q ? r.renderbufferStorageMultisample(r.RENDERBUFFER, Oe(T), ce, T.width, T.height) : r.renderbufferStorage(r.RENDERBUFFER, ce, T.width, T.height);
37171
37172
  }
37172
37173
  }
@@ -37188,11 +37189,11 @@ function WE(r, e, t, n, i, s, a) {
37188
37189
  }
37189
37190
  } else
37190
37191
  K(T.depthTexture, 0);
37191
- const pe = ue.__webglTexture, ge = Oe(T), ee = ae ? r.TEXTURE_CUBE_MAP_POSITIVE_X + q : r.TEXTURE_2D, ce = T.depthTexture.format === _i ? r.DEPTH_STENCIL_ATTACHMENT : r.DEPTH_ATTACHMENT;
37192
+ const xe = ue.__webglTexture, ge = Oe(T), ee = ae ? r.TEXTURE_CUBE_MAP_POSITIVE_X + q : r.TEXTURE_2D, ce = T.depthTexture.format === _i ? r.DEPTH_STENCIL_ATTACHMENT : r.DEPTH_ATTACHMENT;
37192
37193
  if (T.depthTexture.format === qn)
37193
- we(T) ? o.framebufferTexture2DMultisampleEXT(r.FRAMEBUFFER, ce, ee, pe, 0, ge) : r.framebufferTexture2D(r.FRAMEBUFFER, ce, ee, pe, 0);
37194
+ we(T) ? o.framebufferTexture2DMultisampleEXT(r.FRAMEBUFFER, ce, ee, xe, 0, ge) : r.framebufferTexture2D(r.FRAMEBUFFER, ce, ee, xe, 0);
37194
37195
  else if (T.depthTexture.format === _i)
37195
- we(T) ? o.framebufferTexture2DMultisampleEXT(r.FRAMEBUFFER, ce, ee, pe, 0, ge) : r.framebufferTexture2D(r.FRAMEBUFFER, ce, ee, pe, 0);
37196
+ we(T) ? o.framebufferTexture2DMultisampleEXT(r.FRAMEBUFFER, ce, ee, xe, 0, ge) : r.framebufferTexture2D(r.FRAMEBUFFER, ce, ee, xe, 0);
37196
37197
  else
37197
37198
  throw new Error("Unknown depthTexture format");
37198
37199
  }
@@ -37222,16 +37223,16 @@ function WE(r, e, t, n, i, s, a) {
37222
37223
  if (t.bindFramebuffer(r.FRAMEBUFFER, T.__webglFramebuffer[ae]), T.__webglDepthbuffer[ae] === void 0)
37223
37224
  T.__webglDepthbuffer[ae] = r.createRenderbuffer(), Ae(T.__webglDepthbuffer[ae], D, !1);
37224
37225
  else {
37225
- const ue = D.stencilBuffer ? r.DEPTH_STENCIL_ATTACHMENT : r.DEPTH_ATTACHMENT, pe = T.__webglDepthbuffer[ae];
37226
- r.bindRenderbuffer(r.RENDERBUFFER, pe), r.framebufferRenderbuffer(r.FRAMEBUFFER, ue, r.RENDERBUFFER, pe);
37226
+ const ue = D.stencilBuffer ? r.DEPTH_STENCIL_ATTACHMENT : r.DEPTH_ATTACHMENT, xe = T.__webglDepthbuffer[ae];
37227
+ r.bindRenderbuffer(r.RENDERBUFFER, xe), r.framebufferRenderbuffer(r.FRAMEBUFFER, ue, r.RENDERBUFFER, xe);
37227
37228
  }
37228
37229
  } else {
37229
37230
  const ae = D.texture.mipmaps;
37230
37231
  if (ae && ae.length > 0 ? t.bindFramebuffer(r.FRAMEBUFFER, T.__webglFramebuffer[0]) : t.bindFramebuffer(r.FRAMEBUFFER, T.__webglFramebuffer), T.__webglDepthbuffer === void 0)
37231
37232
  T.__webglDepthbuffer = r.createRenderbuffer(), Ae(T.__webglDepthbuffer, D, !1);
37232
37233
  else {
37233
- const ue = D.stencilBuffer ? r.DEPTH_STENCIL_ATTACHMENT : r.DEPTH_ATTACHMENT, pe = T.__webglDepthbuffer;
37234
- r.bindRenderbuffer(r.RENDERBUFFER, pe), r.framebufferRenderbuffer(r.FRAMEBUFFER, ue, r.RENDERBUFFER, pe);
37234
+ const ue = D.stencilBuffer ? r.DEPTH_STENCIL_ATTACHMENT : r.DEPTH_ATTACHMENT, xe = T.__webglDepthbuffer;
37235
+ r.bindRenderbuffer(r.RENDERBUFFER, xe), r.framebufferRenderbuffer(r.FRAMEBUFFER, ue, r.RENDERBUFFER, xe);
37235
37236
  }
37236
37237
  }
37237
37238
  t.bindFramebuffer(r.FRAMEBUFFER, null);
@@ -37243,8 +37244,8 @@ function WE(r, e, t, n, i, s, a) {
37243
37244
  function ne(D) {
37244
37245
  const T = D.texture, q = n.get(D), ae = n.get(T);
37245
37246
  D.addEventListener("dispose", b);
37246
- const ue = D.textures, pe = D.isWebGLCubeRenderTarget === !0, ge = ue.length > 1;
37247
- if (ge || (ae.__webglTexture === void 0 && (ae.__webglTexture = r.createTexture()), ae.__version = T.version, a.memory.textures++), pe) {
37247
+ const ue = D.textures, xe = D.isWebGLCubeRenderTarget === !0, ge = ue.length > 1;
37248
+ if (ge || (ae.__webglTexture === void 0 && (ae.__webglTexture = r.createTexture()), ae.__version = T.version, a.memory.textures++), xe) {
37248
37249
  q.__webglFramebuffer = [];
37249
37250
  for (let ee = 0; ee < 6; ee++)
37250
37251
  if (T.mipmaps && T.mipmaps.length > 0) {
@@ -37276,7 +37277,7 @@ function WE(r, e, t, n, i, s, a) {
37276
37277
  r.bindRenderbuffer(r.RENDERBUFFER, null), D.depthBuffer && (q.__webglDepthRenderbuffer = r.createRenderbuffer(), Ae(q.__webglDepthRenderbuffer, D, !0)), t.bindFramebuffer(r.FRAMEBUFFER, null);
37277
37278
  }
37278
37279
  }
37279
- if (pe) {
37280
+ if (xe) {
37280
37281
  t.bindTexture(r.TEXTURE_CUBE_MAP, ae.__webglTexture), te(r.TEXTURE_CUBE_MAP, T);
37281
37282
  for (let ee = 0; ee < 6; ee++)
37282
37283
  if (T.mipmaps && T.mipmaps.length > 0)
@@ -37308,8 +37309,8 @@ function WE(r, e, t, n, i, s, a) {
37308
37309
  for (let q = 0, ae = T.length; q < ae; q++) {
37309
37310
  const ue = T[q];
37310
37311
  if (m(ue)) {
37311
- const pe = v(D), ge = n.get(ue).__webglTexture;
37312
- t.bindTexture(pe, ge), g(pe), t.unbindTexture();
37312
+ const xe = v(D), ge = n.get(ue).__webglTexture;
37313
+ t.bindTexture(xe, ge), g(xe), t.unbindTexture();
37313
37314
  }
37314
37315
  }
37315
37316
  }
@@ -37319,7 +37320,7 @@ function WE(r, e, t, n, i, s, a) {
37319
37320
  if (we(D) === !1) {
37320
37321
  const T = D.textures, q = D.width, ae = D.height;
37321
37322
  let ue = r.COLOR_BUFFER_BIT;
37322
- const pe = D.stencilBuffer ? r.DEPTH_STENCIL_ATTACHMENT : r.DEPTH_ATTACHMENT, ge = n.get(D), ee = T.length > 1;
37323
+ const xe = D.stencilBuffer ? r.DEPTH_STENCIL_ATTACHMENT : r.DEPTH_ATTACHMENT, ge = n.get(D), ee = T.length > 1;
37323
37324
  if (ee)
37324
37325
  for (let Re = 0; Re < T.length; Re++)
37325
37326
  t.bindFramebuffer(r.FRAMEBUFFER, ge.__webglMultisampledFramebuffer), r.framebufferRenderbuffer(r.FRAMEBUFFER, r.COLOR_ATTACHMENT0 + Re, r.RENDERBUFFER, null), t.bindFramebuffer(r.FRAMEBUFFER, ge.__webglFramebuffer), r.framebufferTexture2D(r.DRAW_FRAMEBUFFER, r.COLOR_ATTACHMENT0 + Re, r.TEXTURE_2D, null, 0);
@@ -37332,7 +37333,7 @@ function WE(r, e, t, n, i, s, a) {
37332
37333
  const Le = n.get(T[Re]).__webglTexture;
37333
37334
  r.framebufferTexture2D(r.DRAW_FRAMEBUFFER, r.COLOR_ATTACHMENT0, r.TEXTURE_2D, Le, 0);
37334
37335
  }
37335
- r.blitFramebuffer(0, 0, q, ae, 0, 0, q, ae, ue, r.NEAREST), l === !0 && (ve.length = 0, Xe.length = 0, ve.push(r.COLOR_ATTACHMENT0 + Re), D.depthBuffer && D.resolveDepthBuffer === !1 && (ve.push(pe), Xe.push(pe), r.invalidateFramebuffer(r.DRAW_FRAMEBUFFER, Xe)), r.invalidateFramebuffer(r.READ_FRAMEBUFFER, ve));
37336
+ r.blitFramebuffer(0, 0, q, ae, 0, 0, q, ae, ue, r.NEAREST), l === !0 && (ve.length = 0, Xe.length = 0, ve.push(r.COLOR_ATTACHMENT0 + Re), D.depthBuffer && D.resolveDepthBuffer === !1 && (ve.push(xe), Xe.push(xe), r.invalidateFramebuffer(r.DRAW_FRAMEBUFFER, Xe)), r.invalidateFramebuffer(r.READ_FRAMEBUFFER, ve));
37336
37337
  }
37337
37338
  if (t.bindFramebuffer(r.READ_FRAMEBUFFER, null), t.bindFramebuffer(r.DRAW_FRAMEBUFFER, null), ee)
37338
37339
  for (let Re = 0; Re < T.length; Re++) {
@@ -37360,7 +37361,7 @@ function WE(r, e, t, n, i, s, a) {
37360
37361
  }
37361
37362
  function de(D, T) {
37362
37363
  const q = D.colorSpace, ae = D.format, ue = D.type;
37363
- return D.isCompressedTexture === !0 || D.isVideoTexture === !0 || q !== Gs && q !== ei && (rt.getTransfer(q) === ft ? (ae !== jt || ue !== an) && Ee("WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.") : ke("WebGLTextures: Unsupported texture color space:", q)), T;
37364
+ return D.isCompressedTexture === !0 || D.isVideoTexture === !0 || q !== Gs && q !== ei && (rt.getTransfer(q) === ft ? (ae !== jt || ue !== on) && Ee("WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.") : ke("WebGLTextures: Unsupported texture color space:", q)), T;
37364
37365
  }
37365
37366
  function st(D) {
37366
37367
  return typeof HTMLImageElement < "u" && D instanceof HTMLImageElement ? (c.width = D.naturalWidth || D.width, c.height = D.naturalHeight || D.height) : typeof VideoFrame < "u" && D instanceof VideoFrame ? (c.width = D.displayWidth, c.height = D.displayHeight) : (c.width = D.width, c.height = D.height), c;
@@ -37373,7 +37374,7 @@ function Zx(r, e) {
37373
37374
  function t(n, i = ei) {
37374
37375
  let s;
37375
37376
  const a = rt.getTransfer(i);
37376
- if (n === an) return r.UNSIGNED_BYTE;
37377
+ if (n === on) return r.UNSIGNED_BYTE;
37377
37378
  if (n === Kc) return r.UNSIGNED_SHORT_4_4_4_4;
37378
37379
  if (n === Jc) return r.UNSIGNED_SHORT_5_5_5_1;
37379
37380
  if (n === pu) return r.UNSIGNED_INT_5_9_9_9_REV;
@@ -37527,7 +37528,7 @@ class $E {
37527
37528
  depthHeight: { value: t.w }
37528
37529
  }
37529
37530
  });
37530
- this.mesh = new yt(new es(20, 20), n);
37531
+ this.mesh = new bt(new es(20, 20), n);
37531
37532
  }
37532
37533
  return this.mesh;
37533
37534
  }
@@ -37614,11 +37615,11 @@ class YE extends Pn {
37614
37615
  }, this.setSession = async function(H) {
37615
37616
  if (i = H, i !== null) {
37616
37617
  if (v = e.getRenderTarget(), i.addEventListener("select", L), i.addEventListener("selectstart", L), i.addEventListener("selectend", L), i.addEventListener("squeeze", L), i.addEventListener("squeezestart", L), i.addEventListener("squeezeend", L), i.addEventListener("end", O), i.addEventListener("inputsourceschange", V), g.xrCompatible !== !0 && await t.makeXRCompatible(), b = e.getPixelRatio(), e.getSize(E), _ && "createProjectionLayer" in XRWebGLBinding.prototype) {
37617
- let $ = null, se = null, xe = null;
37618
- g.depth && (xe = g.stencil ? t.DEPTH24_STENCIL8 : t.DEPTH_COMPONENT24, $ = g.stencil ? _i : qn, se = g.stencil ? Xr : bn);
37618
+ let $ = null, se = null, pe = null;
37619
+ g.depth && (pe = g.stencil ? t.DEPTH24_STENCIL8 : t.DEPTH_COMPONENT24, $ = g.stencil ? _i : qn, se = g.stencil ? Xr : bn);
37619
37620
  const me = {
37620
37621
  colorFormat: t.RGBA8,
37621
- depthFormat: xe,
37622
+ depthFormat: pe,
37622
37623
  scaleFactor: s
37623
37624
  };
37624
37625
  f = this.getBinding(), u = f.createProjectionLayer(me), i.updateRenderState({ layers: [u] }), e.setPixelRatio(1), e.setSize(u.textureWidth, u.textureHeight, !1), y = new gn(
@@ -37626,7 +37627,7 @@ class YE extends Pn {
37626
37627
  u.textureHeight,
37627
37628
  {
37628
37629
  format: jt,
37629
- type: an,
37630
+ type: on,
37630
37631
  depthTexture: new ir(u.textureWidth, u.textureHeight, se, void 0, void 0, void 0, void 0, void 0, void 0, $),
37631
37632
  stencilBuffer: g.stencil,
37632
37633
  colorSpace: e.outputColorSpace,
@@ -37648,7 +37649,7 @@ class YE extends Pn {
37648
37649
  d.framebufferHeight,
37649
37650
  {
37650
37651
  format: jt,
37651
- type: an,
37652
+ type: on,
37652
37653
  colorSpace: e.outputColorSpace,
37653
37654
  stencilBuffer: g.stencil,
37654
37655
  resolveDepthBuffer: d.ignoreDepthValues === !1,
@@ -37683,15 +37684,15 @@ class YE extends Pn {
37683
37684
  }
37684
37685
  if (se === -1) break;
37685
37686
  }
37686
- const xe = S[se];
37687
- xe && xe.connect($);
37687
+ const pe = S[se];
37688
+ pe && pe.connect($);
37688
37689
  }
37689
37690
  }
37690
37691
  const K = new B(), Q = new B();
37691
37692
  function re(H, ie, $) {
37692
37693
  K.setFromMatrixPosition(ie.matrixWorld), Q.setFromMatrixPosition($.matrixWorld);
37693
- const se = K.distanceTo(Q), xe = ie.projectionMatrix.elements, me = $.projectionMatrix.elements, Ae = xe[14] / (xe[10] - 1), Te = xe[14] / (xe[10] + 1), j = (xe[9] + 1) / xe[5], le = (xe[9] - 1) / xe[5], ne = (xe[8] - 1) / xe[0], _e = (me[8] + 1) / me[0], ve = Ae * ne, Xe = Ae * _e, U = se / (-ne + _e), Oe = U * -ne;
37694
- if (ie.matrixWorld.decompose(H.position, H.quaternion, H.scale), H.translateX(Oe), H.translateZ(U), H.matrixWorld.compose(H.position, H.quaternion, H.scale), H.matrixWorldInverse.copy(H.matrixWorld).invert(), xe[10] === -1)
37694
+ const se = K.distanceTo(Q), pe = ie.projectionMatrix.elements, me = $.projectionMatrix.elements, Ae = pe[14] / (pe[10] - 1), Te = pe[14] / (pe[10] + 1), j = (pe[9] + 1) / pe[5], le = (pe[9] - 1) / pe[5], ne = (pe[8] - 1) / pe[0], _e = (me[8] + 1) / me[0], ve = Ae * ne, Xe = Ae * _e, U = se / (-ne + _e), Oe = U * -ne;
37695
+ if (ie.matrixWorld.decompose(H.position, H.quaternion, H.scale), H.translateX(Oe), H.translateZ(U), H.matrixWorld.compose(H.position, H.quaternion, H.scale), H.matrixWorldInverse.copy(H.matrixWorld).invert(), pe[10] === -1)
37695
37696
  H.projectionMatrix.copy(ie.projectionMatrix), H.projectionMatrixInverse.copy(ie.projectionMatrixInverse);
37696
37697
  else {
37697
37698
  const we = Ae + U, Ge = Te + U, de = ve - Oe, st = Xe + (se - Oe), D = j * Te / Ge * we, T = le * Te / Ge * we;
@@ -37708,11 +37709,11 @@ class YE extends Pn {
37708
37709
  depthNear: I.near,
37709
37710
  depthFar: I.far
37710
37711
  }), F = I.near, k = I.far), I.layers.mask = H.layers.mask | 6, A.layers.mask = I.layers.mask & -5, w.layers.mask = I.layers.mask & -3;
37711
- const se = H.parent, xe = I.cameras;
37712
+ const se = H.parent, pe = I.cameras;
37712
37713
  P(I, se);
37713
- for (let me = 0; me < xe.length; me++)
37714
- P(xe[me], se);
37715
- xe.length === 2 ? re(I, A, w) : I.projectionMatrix.copy(A.projectionMatrix), N(H, I, se);
37714
+ for (let me = 0; me < pe.length; me++)
37715
+ P(pe[me], se);
37716
+ pe.length === 2 ? re(I, A, w) : I.projectionMatrix.copy(A.projectionMatrix), N(H, I, se);
37716
37717
  };
37717
37718
  function N(H, ie, $) {
37718
37719
  $ === null ? H.matrix.copy(ie.matrixWorld) : (H.matrix.copy($.matrixWorld), H.matrix.invert(), H.matrix.multiply(ie.matrixWorld)), H.matrix.decompose(H.position, H.quaternion, H.scale), H.updateMatrixWorld(!0), H.projectionMatrix.copy(ie.projectionMatrix), H.projectionMatrixInverse.copy(ie.projectionMatrixInverse), H.isPerspectiveCamera && (H.fov = qr * 2 * Math.atan(1 / H.projectionMatrix.elements[5]), H.zoom = 1);
@@ -37754,13 +37755,13 @@ class YE extends Pn {
37754
37755
  let ne = C[Te];
37755
37756
  ne === void 0 && (ne = new zt(), ne.layers.enable(Te), ne.viewport = new dt(), C[Te] = ne), ne.matrix.fromArray(j.transform.matrix), ne.matrix.decompose(ne.position, ne.quaternion, ne.scale), ne.projectionMatrix.fromArray(j.projectionMatrix), ne.projectionMatrixInverse.copy(ne.projectionMatrix).invert(), ne.viewport.set(le.x, le.y, le.width, le.height), Te === 0 && (I.matrix.copy(ne.matrix), I.matrix.decompose(I.position, I.quaternion, I.scale)), se === !0 && I.cameras.push(ne);
37756
37757
  }
37757
- const xe = i.enabledFeatures;
37758
- if (xe && xe.includes("depth-sensing") && i.depthUsage == "gpu-optimized" && _) {
37758
+ const pe = i.enabledFeatures;
37759
+ if (pe && pe.includes("depth-sensing") && i.depthUsage == "gpu-optimized" && _) {
37759
37760
  f = n.getBinding();
37760
37761
  const Te = f.getDepthInformation($[0]);
37761
37762
  Te && Te.isValid && Te.texture && x.init(Te, i.renderState);
37762
37763
  }
37763
- if (xe && xe.includes("camera-access") && _) {
37764
+ if (pe && pe.includes("camera-access") && _) {
37764
37765
  e.state.unbindTexture(), f = n.getBinding();
37765
37766
  for (let Te = 0; Te < $.length; Te++) {
37766
37767
  const j = $[Te].camera;
@@ -37774,8 +37775,8 @@ class YE extends Pn {
37774
37775
  }
37775
37776
  }
37776
37777
  for (let $ = 0; $ < S.length; $++) {
37777
- const se = M[$], xe = S[$];
37778
- se !== null && xe !== void 0 && xe.update(se, ie, c || a);
37778
+ const se = M[$], pe = S[$];
37779
+ se !== null && pe !== void 0 && pe.update(se, ie, c || a);
37779
37780
  }
37780
37781
  G && G(H, ie), ie.detectedPlanes && n.dispatchEvent({ type: "planesdetected", data: ie }), p = null;
37781
37782
  }
@@ -38463,7 +38464,7 @@ const jE = new Uint16Array([
38463
38464
  ]);
38464
38465
  let On = null;
38465
38466
  function QE() {
38466
- return On === null && (On = new Dn(jE, 16, 16, Si, Xn), On.name = "DFG_LUT", On.minFilter = vt, On.magFilter = vt, On.wrapS = ln, On.wrapT = ln, On.generateMipmaps = !1, On.needsUpdate = !0), On;
38467
+ return On === null && (On = new Dn(jE, 16, 16, Si, Xn), On.name = "DFG_LUT", On.minFilter = yt, On.magFilter = yt, On.wrapS = ln, On.wrapT = ln, On.generateMipmaps = !1, On.needsUpdate = !0), On;
38467
38468
  }
38468
38469
  class eA {
38469
38470
  /**
@@ -38484,7 +38485,7 @@ class eA {
38484
38485
  powerPreference: h = "default",
38485
38486
  failIfMajorPerformanceCaveat: f = !1,
38486
38487
  reversedDepthBuffer: u = !1,
38487
- outputBufferType: d = an
38488
+ outputBufferType: d = on
38488
38489
  } = e;
38489
38490
  this.isWebGLRenderer = !0;
38490
38491
  let p;
@@ -38499,7 +38500,7 @@ class eA {
38499
38500
  Qc,
38500
38501
  ta
38501
38502
  ]), m = /* @__PURE__ */ new Set([
38502
- an,
38503
+ on,
38503
38504
  bn,
38504
38505
  Wr,
38505
38506
  Xr,
@@ -38523,14 +38524,14 @@ class eA {
38523
38524
  }, this.autoClear = !0, this.autoClearColor = !0, this.autoClearDepth = !0, this.autoClearStencil = !0, this.sortObjects = !0, this.clippingPlanes = [], this.localClippingEnabled = !1, this.toneMapping = Rn, this.toneMappingExposure = 1, this.transmissionResolutionScale = 1;
38524
38525
  const w = this;
38525
38526
  let C = !1, I = null;
38526
- this._outputColorSpace = sn;
38527
+ this._outputColorSpace = an;
38527
38528
  let F = 0, k = 0, L = null, O = -1, V = null;
38528
38529
  const K = new dt(), Q = new dt();
38529
38530
  let re = null;
38530
38531
  const P = new Be(0);
38531
38532
  let N = 0, G = t.width, W = t.height, te = 1, H = null, ie = null;
38532
38533
  const $ = new dt(0, 0, G, W), se = new dt(0, 0, G, W);
38533
- let xe = !1;
38534
+ let pe = !1;
38534
38535
  const me = new Qr();
38535
38536
  let Ae = !1, Te = !1;
38536
38537
  const j = new $e(), le = new B(), ne = new dt(), _e = { background: null, fog: null, environment: null, overrideMaterial: null, isScene: !0 };
@@ -38561,11 +38562,11 @@ class eA {
38561
38562
  } catch (R) {
38562
38563
  throw ke("WebGLRenderer: " + R.message), R;
38563
38564
  }
38564
- let we, Ge, de, st, D, T, q, ae, ue, pe, ge, ee, ce, Re, Le, Se, ye, Ye, je, ot, z, be, oe;
38565
+ let we, Ge, de, st, D, T, q, ae, ue, xe, ge, ee, ce, Re, Le, Se, ye, Ye, je, ot, z, be, oe;
38565
38566
  function Pe() {
38566
- we = new e2(U), we.init(), z = new Zx(U, we), Ge = new qS(U, we, e, z), de = new HE(U, we), Ge.reversedDepthBuffer && u && de.buffers.depth.setReversed(!0), st = new i2(U), D = new RE(), T = new WE(U, we, de, D, Ge, z, st), q = new QS(w), ae = new ob(U), be = new WS(U, ae), ue = new t2(U, ae, st, be), pe = new s2(U, ue, ae, be, st), Ye = new r2(U, Ge, T), Le = new $S(D), ge = new TE(w, q, we, Ge, be, Le), ee = new KE(w, D), ce = new IE(), Re = new UE(we), ye = new HS(w, q, de, pe, p, l), Se = new GE(w, pe, Ge), oe = new JE(U, st, Ge, de), je = new XS(U, we, st), ot = new n2(U, we, st), st.programs = ge.programs, w.capabilities = Ge, w.extensions = we, w.properties = D, w.renderLists = ce, w.shadowMap = Se, w.state = de, w.info = st;
38567
+ we = new e2(U), we.init(), z = new Zx(U, we), Ge = new qS(U, we, e, z), de = new HE(U, we), Ge.reversedDepthBuffer && u && de.buffers.depth.setReversed(!0), st = new i2(U), D = new RE(), T = new WE(U, we, de, D, Ge, z, st), q = new QS(w), ae = new ob(U), be = new WS(U, ae), ue = new t2(U, ae, st, be), xe = new s2(U, ue, ae, be, st), Ye = new r2(U, Ge, T), Le = new $S(D), ge = new TE(w, q, we, Ge, be, Le), ee = new KE(w, D), ce = new IE(), Re = new UE(we), ye = new HS(w, q, de, xe, p, l), Se = new GE(w, xe, Ge), oe = new JE(U, st, Ge, de), je = new XS(U, we, st), ot = new n2(U, we, st), st.programs = ge.programs, w.capabilities = Ge, w.extensions = we, w.properties = D, w.renderLists = ce, w.shadowMap = Se, w.state = de, w.info = st;
38567
38568
  }
38568
- Pe(), _ !== an && (A = new o2(_, t.width, t.height, i, s));
38569
+ Pe(), _ !== on && (A = new o2(_, t.width, t.height, i, s));
38569
38570
  const Me = new YE(w, U);
38570
38571
  this.xr = Me, this.getContext = function() {
38571
38572
  return U;
@@ -38594,7 +38595,7 @@ class eA {
38594
38595
  }, this.setDrawingBufferSize = function(R, X, J) {
38595
38596
  G = R, W = X, te = J, t.width = Math.floor(R * J), t.height = Math.floor(X * J), this.setViewport(0, 0, R, X);
38596
38597
  }, this.setEffects = function(R) {
38597
- if (_ === an) {
38598
+ if (_ === on) {
38598
38599
  ke("THREE.WebGLRenderer: setEffects() requires outputBufferType set to HalfFloatType or FloatType.");
38599
38600
  return;
38600
38601
  }
@@ -38617,9 +38618,9 @@ class eA {
38617
38618
  }, this.setScissor = function(R, X, J, Y) {
38618
38619
  R.isVector4 ? se.set(R.x, R.y, R.z, R.w) : se.set(R, X, J, Y), de.scissor(Q.copy(se).multiplyScalar(te).round());
38619
38620
  }, this.getScissorTest = function() {
38620
- return xe;
38621
+ return pe;
38621
38622
  }, this.setScissorTest = function(R) {
38622
- de.setScissorTest(xe = R);
38623
+ de.setScissorTest(pe = R);
38623
38624
  }, this.setOpaqueSort = function(R) {
38624
38625
  H = R;
38625
38626
  }, this.setTransparentSort = function(R) {
@@ -38656,7 +38657,7 @@ class eA {
38656
38657
  }, this.setNodesHandler = function(R) {
38657
38658
  R.setRenderer(this), I = R;
38658
38659
  }, this.dispose = function() {
38659
- t.removeEventListener("webglcontextlost", fe, !1), t.removeEventListener("webglcontextrestored", ze, !1), t.removeEventListener("webglcontextcreationerror", Ze, !1), ye.dispose(), ce.dispose(), Re.dispose(), D.dispose(), q.dispose(), pe.dispose(), be.dispose(), oe.dispose(), ge.dispose(), Me.dispose(), Me.removeEventListener("sessionstart", i0), Me.removeEventListener("sessionend", r0), Di.stop();
38660
+ t.removeEventListener("webglcontextlost", fe, !1), t.removeEventListener("webglcontextrestored", ze, !1), t.removeEventListener("webglcontextcreationerror", Ze, !1), ye.dispose(), ce.dispose(), Re.dispose(), D.dispose(), q.dispose(), xe.dispose(), be.dispose(), oe.dispose(), ge.dispose(), Me.dispose(), Me.removeEventListener("sessionstart", i0), Me.removeEventListener("sessionend", r0), Di.stop();
38660
38661
  };
38661
38662
  function fe(R) {
38662
38663
  R.preventDefault(), qs("WebGLRenderer: Context Lost."), C = !0;
@@ -38694,31 +38695,31 @@ class eA {
38694
38695
  const Qe = J.drawRange, nt = J.attributes.position;
38695
38696
  let We = Qe.start * He, pt = (Qe.start + Qe.count) * He;
38696
38697
  Ie !== null && (We = Math.max(We, Ie.start * He), pt = Math.min(pt, (Ie.start + Ie.count) * He)), Ve !== null ? (We = Math.max(We, 0), pt = Math.min(pt, Ve.count)) : nt != null && (We = Math.max(We, 0), pt = Math.min(pt, nt.count));
38697
- const Rt = pt - We;
38698
- if (Rt < 0 || Rt === 1 / 0) return;
38698
+ const Tt = pt - We;
38699
+ if (Tt < 0 || Tt === 1 / 0) return;
38699
38700
  be.setup(Z, Y, De, J, Ve);
38700
- let Ct, mt = je;
38701
- if (Ve !== null && (Ct = ae.get(Ve), mt = ot, mt.setIndex(Ct)), Z.isMesh)
38702
- Y.wireframe === !0 ? (de.setLineWidth(Y.wireframeLinewidth * Xe()), mt.setMode(U.LINES)) : mt.setMode(U.TRIANGLES);
38701
+ let wt, gt = je;
38702
+ if (Ve !== null && (wt = ae.get(Ve), gt = ot, gt.setIndex(wt)), Z.isMesh)
38703
+ Y.wireframe === !0 ? (de.setLineWidth(Y.wireframeLinewidth * Xe()), gt.setMode(U.LINES)) : gt.setMode(U.TRIANGLES);
38703
38704
  else if (Z.isLine) {
38704
38705
  let Gt = Y.linewidth;
38705
- Gt === void 0 && (Gt = 1), de.setLineWidth(Gt * Xe()), Z.isLineSegments ? mt.setMode(U.LINES) : Z.isLineLoop ? mt.setMode(U.LINE_LOOP) : mt.setMode(U.LINE_STRIP);
38706
- } else Z.isPoints ? mt.setMode(U.POINTS) : Z.isSprite && mt.setMode(U.TRIANGLES);
38706
+ Gt === void 0 && (Gt = 1), de.setLineWidth(Gt * Xe()), Z.isLineSegments ? gt.setMode(U.LINES) : Z.isLineLoop ? gt.setMode(U.LINE_LOOP) : gt.setMode(U.LINE_STRIP);
38707
+ } else Z.isPoints ? gt.setMode(U.POINTS) : Z.isSprite && gt.setMode(U.TRIANGLES);
38707
38708
  if (Z.isBatchedMesh)
38708
38709
  if (we.get("WEBGL_multi_draw"))
38709
- mt.renderMultiDraw(Z._multiDrawStarts, Z._multiDrawCounts, Z._multiDrawCount);
38710
+ gt.renderMultiDraw(Z._multiDrawStarts, Z._multiDrawCounts, Z._multiDrawCount);
38710
38711
  else {
38711
38712
  const Gt = Z._multiDrawStarts, Ne = Z._multiDrawCounts, un = Z._multiDrawCount, ct = Ve ? ae.get(Ve).bytesPerElement : 1, _n = D.get(Y).currentProgram.getUniforms();
38712
38713
  for (let Fn = 0; Fn < un; Fn++)
38713
- _n.setValue(U, "_gl_DrawID", Fn), mt.render(Gt[Fn] / ct, Ne[Fn]);
38714
+ _n.setValue(U, "_gl_DrawID", Fn), gt.render(Gt[Fn] / ct, Ne[Fn]);
38714
38715
  }
38715
38716
  else if (Z.isInstancedMesh)
38716
- mt.renderInstances(We, Rt, Z.count);
38717
+ gt.renderInstances(We, Tt, Z.count);
38717
38718
  else if (J.isInstancedBufferGeometry) {
38718
38719
  const Gt = J._maxInstanceCount !== void 0 ? J._maxInstanceCount : 1 / 0, Ne = Math.min(J.instanceCount, Gt);
38719
- mt.renderInstances(We, Rt, Ne);
38720
+ gt.renderInstances(We, Tt, Ne);
38720
38721
  } else
38721
- mt.render(We, Rt);
38722
+ gt.render(We, Tt);
38722
38723
  };
38723
38724
  function Lt(R, X, J) {
38724
38725
  R.transparent === !0 && R.side === kn && R.forceSinglePass === !1 ? (R.side = Qt, R.needsUpdate = !0, ha(R, X, J), R.side = ii, R.needsUpdate = !0, ha(R, X, J), R.side = kn) : ha(R, X, J);
@@ -38818,11 +38819,11 @@ class eA {
38818
38819
  else if (R.isSprite) {
38819
38820
  if (!R.frustumCulled || me.intersectsSprite(R)) {
38820
38821
  Y && ne.setFromMatrixPosition(R.matrixWorld).applyMatrix4(j);
38821
- const Ue = pe.update(R), De = R.material;
38822
+ const Ue = xe.update(R), De = R.material;
38822
38823
  De.visible && S.push(R, Ue, De, J, ne.z, null);
38823
38824
  }
38824
38825
  } else if ((R.isMesh || R.isLine || R.isPoints) && (!R.frustumCulled || me.intersectsObject(R))) {
38825
- const Ue = pe.update(R), De = R.material;
38826
+ const Ue = xe.update(R), De = R.material;
38826
38827
  if (Y && (R.boundingSphere !== void 0 ? (R.boundingSphere === null && R.computeBoundingSphere(), ne.copy(R.boundingSphere.center)) : (Ue.boundingSphere === null && Ue.computeBoundingSphere(), ne.copy(Ue.boundingSphere.center)), ne.applyMatrix4(R.matrixWorld).applyMatrix4(j)), Array.isArray(De)) {
38827
38828
  const Ve = Ue.groups;
38828
38829
  for (let He = 0, Qe = Ve.length; He < Qe; He++) {
@@ -38847,7 +38848,7 @@ class eA {
38847
38848
  const We = we.has("EXT_color_buffer_half_float") || we.has("EXT_color_buffer_float");
38848
38849
  M.state.transmissionRenderTarget[Y.id] = new gn(1, 1, {
38849
38850
  generateMipmaps: !0,
38850
- type: We ? Xn : an,
38851
+ type: We ? Xn : on,
38851
38852
  minFilter: Vn,
38852
38853
  samples: Math.max(4, Ge.samples),
38853
38854
  // to avoid feedback loops, the transmission render target requires a resolve, see #26177
@@ -38866,11 +38867,11 @@ class eA {
38866
38867
  const nt = Y.viewport;
38867
38868
  if (Y.viewport !== void 0 && (Y.viewport = void 0), M.setupLightsView(Y), Ae === !0 && Le.setGlobalState(w.clippingPlanes, Y), la(R, J, Y), T.updateMultisampleRenderTarget(Ie), T.updateRenderTargetMipmap(Ie), we.has("WEBGL_multisampled_render_to_texture") === !1) {
38868
38869
  let We = !1;
38869
- for (let pt = 0, Rt = X.length; pt < Rt; pt++) {
38870
- const Ct = X[pt], { object: mt, geometry: Gt, material: Ne, group: un } = Ct;
38871
- if (Ne.side === kn && mt.layers.test(Y.layers)) {
38870
+ for (let pt = 0, Tt = X.length; pt < Tt; pt++) {
38871
+ const wt = X[pt], { object: gt, geometry: Gt, material: Ne, group: un } = wt;
38872
+ if (Ne.side === kn && gt.layers.test(Y.layers)) {
38872
38873
  const ct = Ne.side;
38873
- Ne.side = Qt, Ne.needsUpdate = !0, o0(mt, J, Y, Gt, Ne, un), Ne.side = ct, Ne.needsUpdate = !0, We = !0;
38874
+ Ne.side = Qt, Ne.needsUpdate = !0, o0(gt, J, Y, Gt, Ne, un), Ne.side = ct, Ne.needsUpdate = !0, We = !0;
38874
38875
  }
38875
38876
  }
38876
38877
  We === !0 && (T.updateMultisampleRenderTarget(Ie), T.updateRenderTargetMipmap(Ie));
@@ -38928,51 +38929,51 @@ class eA {
38928
38929
  }
38929
38930
  function om(R, X, J, Y, Z) {
38930
38931
  X.isScene !== !0 && (X = _e), T.resetTextureUnits();
38931
- const Ie = X.fog, Ue = Y.isMeshStandardMaterial || Y.isMeshLambertMaterial || Y.isMeshPhongMaterial ? X.environment : null, De = L === null ? w.outputColorSpace : L.isXRRenderTarget === !0 ? L.texture.colorSpace : rt.workingColorSpace, Ve = Y.isMeshStandardMaterial || Y.isMeshLambertMaterial && !Y.envMap || Y.isMeshPhongMaterial && !Y.envMap, He = q.get(Y.envMap || Ue, Ve), Qe = Y.vertexColors === !0 && !!J.attributes.color && J.attributes.color.itemSize === 4, nt = !!J.attributes.tangent && (!!Y.normalMap || Y.anisotropy > 0), We = !!J.morphAttributes.position, pt = !!J.morphAttributes.normal, Rt = !!J.morphAttributes.color;
38932
- let Ct = Rn;
38933
- Y.toneMapped && (L === null || L.isXRRenderTarget === !0) && (Ct = w.toneMapping);
38934
- const mt = J.morphAttributes.position || J.morphAttributes.normal || J.morphAttributes.color, Gt = mt !== void 0 ? mt.length : 0, Ne = D.get(Y), un = M.state.lights;
38932
+ const Ie = X.fog, Ue = Y.isMeshStandardMaterial || Y.isMeshLambertMaterial || Y.isMeshPhongMaterial ? X.environment : null, De = L === null ? w.outputColorSpace : L.isXRRenderTarget === !0 ? L.texture.colorSpace : rt.workingColorSpace, Ve = Y.isMeshStandardMaterial || Y.isMeshLambertMaterial && !Y.envMap || Y.isMeshPhongMaterial && !Y.envMap, He = q.get(Y.envMap || Ue, Ve), Qe = Y.vertexColors === !0 && !!J.attributes.color && J.attributes.color.itemSize === 4, nt = !!J.attributes.tangent && (!!Y.normalMap || Y.anisotropy > 0), We = !!J.morphAttributes.position, pt = !!J.morphAttributes.normal, Tt = !!J.morphAttributes.color;
38933
+ let wt = Rn;
38934
+ Y.toneMapped && (L === null || L.isXRRenderTarget === !0) && (wt = w.toneMapping);
38935
+ const gt = J.morphAttributes.position || J.morphAttributes.normal || J.morphAttributes.color, Gt = gt !== void 0 ? gt.length : 0, Ne = D.get(Y), un = M.state.lights;
38935
38936
  if (Ae === !0 && (Te === !0 || R !== V)) {
38936
- const _t = R === V && Y.id === O;
38937
- Le.setState(Y, R, _t);
38937
+ const vt = R === V && Y.id === O;
38938
+ Le.setState(Y, R, vt);
38938
38939
  }
38939
38940
  let ct = !1;
38940
- Y.version === Ne.__version ? (Ne.needsLights && Ne.lightsStateVersion !== un.state.version || Ne.outputColorSpace !== De || Z.isBatchedMesh && Ne.batching === !1 || !Z.isBatchedMesh && Ne.batching === !0 || Z.isBatchedMesh && Ne.batchingColor === !0 && Z.colorTexture === null || Z.isBatchedMesh && Ne.batchingColor === !1 && Z.colorTexture !== null || Z.isInstancedMesh && Ne.instancing === !1 || !Z.isInstancedMesh && Ne.instancing === !0 || Z.isSkinnedMesh && Ne.skinning === !1 || !Z.isSkinnedMesh && Ne.skinning === !0 || Z.isInstancedMesh && Ne.instancingColor === !0 && Z.instanceColor === null || Z.isInstancedMesh && Ne.instancingColor === !1 && Z.instanceColor !== null || Z.isInstancedMesh && Ne.instancingMorph === !0 && Z.morphTexture === null || Z.isInstancedMesh && Ne.instancingMorph === !1 && Z.morphTexture !== null || Ne.envMap !== He || Y.fog === !0 && Ne.fog !== Ie || Ne.numClippingPlanes !== void 0 && (Ne.numClippingPlanes !== Le.numPlanes || Ne.numIntersection !== Le.numIntersection) || Ne.vertexAlphas !== Qe || Ne.vertexTangents !== nt || Ne.morphTargets !== We || Ne.morphNormals !== pt || Ne.morphColors !== Rt || Ne.toneMapping !== Ct || Ne.morphTargetsCount !== Gt || !!Ne.lightProbeGrid != M.state.lightProbeGridArray.length > 0) && (ct = !0) : (ct = !0, Ne.__version = Y.version);
38941
+ Y.version === Ne.__version ? (Ne.needsLights && Ne.lightsStateVersion !== un.state.version || Ne.outputColorSpace !== De || Z.isBatchedMesh && Ne.batching === !1 || !Z.isBatchedMesh && Ne.batching === !0 || Z.isBatchedMesh && Ne.batchingColor === !0 && Z.colorTexture === null || Z.isBatchedMesh && Ne.batchingColor === !1 && Z.colorTexture !== null || Z.isInstancedMesh && Ne.instancing === !1 || !Z.isInstancedMesh && Ne.instancing === !0 || Z.isSkinnedMesh && Ne.skinning === !1 || !Z.isSkinnedMesh && Ne.skinning === !0 || Z.isInstancedMesh && Ne.instancingColor === !0 && Z.instanceColor === null || Z.isInstancedMesh && Ne.instancingColor === !1 && Z.instanceColor !== null || Z.isInstancedMesh && Ne.instancingMorph === !0 && Z.morphTexture === null || Z.isInstancedMesh && Ne.instancingMorph === !1 && Z.morphTexture !== null || Ne.envMap !== He || Y.fog === !0 && Ne.fog !== Ie || Ne.numClippingPlanes !== void 0 && (Ne.numClippingPlanes !== Le.numPlanes || Ne.numIntersection !== Le.numIntersection) || Ne.vertexAlphas !== Qe || Ne.vertexTangents !== nt || Ne.morphTargets !== We || Ne.morphNormals !== pt || Ne.morphColors !== Tt || Ne.toneMapping !== wt || Ne.morphTargetsCount !== Gt || !!Ne.lightProbeGrid != M.state.lightProbeGridArray.length > 0) && (ct = !0) : (ct = !0, Ne.__version = Y.version);
38941
38942
  let _n = Ne.currentProgram;
38942
38943
  ct === !0 && (_n = ha(Y, X, Z), I && Y.isNodeMaterial && I.onUpdateProgram(Y, _n, Ne));
38943
38944
  let Fn = !1, ai = !1, ur = !1;
38944
- const gt = _n.getUniforms(), Dt = Ne.uniforms;
38945
+ const _t = _n.getUniforms(), Rt = Ne.uniforms;
38945
38946
  if (de.useProgram(_n.program) && (Fn = !0, ai = !0, ur = !0), Y.id !== O && (O = Y.id, ai = !0), Ne.needsLights) {
38946
- const _t = am(M.state.lightProbeGridArray, Z);
38947
- Ne.lightProbeGrid !== _t && (Ne.lightProbeGrid = _t, ai = !0);
38947
+ const vt = am(M.state.lightProbeGridArray, Z);
38948
+ Ne.lightProbeGrid !== vt && (Ne.lightProbeGrid = vt, ai = !0);
38948
38949
  }
38949
38950
  if (Fn || V !== R) {
38950
- de.buffers.depth.getReversed() && R.reversedDepth !== !0 && (R._reversedDepth = !0, R.updateProjectionMatrix()), gt.setValue(U, "projectionMatrix", R.projectionMatrix), gt.setValue(U, "viewMatrix", R.matrixWorldInverse);
38951
- const ci = gt.map.cameraPosition;
38952
- ci !== void 0 && ci.setValue(U, le.setFromMatrixPosition(R.matrixWorld)), Ge.logarithmicDepthBuffer && gt.setValue(
38951
+ de.buffers.depth.getReversed() && R.reversedDepth !== !0 && (R._reversedDepth = !0, R.updateProjectionMatrix()), _t.setValue(U, "projectionMatrix", R.projectionMatrix), _t.setValue(U, "viewMatrix", R.matrixWorldInverse);
38952
+ const ci = _t.map.cameraPosition;
38953
+ ci !== void 0 && ci.setValue(U, le.setFromMatrixPosition(R.matrixWorld)), Ge.logarithmicDepthBuffer && _t.setValue(
38953
38954
  U,
38954
38955
  "logDepthBufFC",
38955
38956
  2 / (Math.log(R.far + 1) / Math.LN2)
38956
- ), (Y.isMeshPhongMaterial || Y.isMeshToonMaterial || Y.isMeshLambertMaterial || Y.isMeshBasicMaterial || Y.isMeshStandardMaterial || Y.isShaderMaterial) && gt.setValue(U, "isOrthographic", R.isOrthographicCamera === !0), V !== R && (V = R, ai = !0, ur = !0);
38957
+ ), (Y.isMeshPhongMaterial || Y.isMeshToonMaterial || Y.isMeshLambertMaterial || Y.isMeshBasicMaterial || Y.isMeshStandardMaterial || Y.isShaderMaterial) && _t.setValue(U, "isOrthographic", R.isOrthographicCamera === !0), V !== R && (V = R, ai = !0, ur = !0);
38957
38958
  }
38958
- if (Ne.needsLights && (un.state.directionalShadowMap.length > 0 && gt.setValue(U, "directionalShadowMap", un.state.directionalShadowMap, T), un.state.spotShadowMap.length > 0 && gt.setValue(U, "spotShadowMap", un.state.spotShadowMap, T), un.state.pointShadowMap.length > 0 && gt.setValue(U, "pointShadowMap", un.state.pointShadowMap, T)), Z.isSkinnedMesh) {
38959
- gt.setOptional(U, Z, "bindMatrix"), gt.setOptional(U, Z, "bindMatrixInverse");
38960
- const _t = Z.skeleton;
38961
- _t && (_t.boneTexture === null && _t.computeBoneTexture(), gt.setValue(U, "boneTexture", _t.boneTexture, T));
38959
+ if (Ne.needsLights && (un.state.directionalShadowMap.length > 0 && _t.setValue(U, "directionalShadowMap", un.state.directionalShadowMap, T), un.state.spotShadowMap.length > 0 && _t.setValue(U, "spotShadowMap", un.state.spotShadowMap, T), un.state.pointShadowMap.length > 0 && _t.setValue(U, "pointShadowMap", un.state.pointShadowMap, T)), Z.isSkinnedMesh) {
38960
+ _t.setOptional(U, Z, "bindMatrix"), _t.setOptional(U, Z, "bindMatrixInverse");
38961
+ const vt = Z.skeleton;
38962
+ vt && (vt.boneTexture === null && vt.computeBoneTexture(), _t.setValue(U, "boneTexture", vt.boneTexture, T));
38962
38963
  }
38963
- Z.isBatchedMesh && (gt.setOptional(U, Z, "batchingTexture"), gt.setValue(U, "batchingTexture", Z._matricesTexture, T), gt.setOptional(U, Z, "batchingIdTexture"), gt.setValue(U, "batchingIdTexture", Z._indirectTexture, T), gt.setOptional(U, Z, "batchingColorTexture"), Z._colorsTexture !== null && gt.setValue(U, "batchingColorTexture", Z._colorsTexture, T));
38964
+ Z.isBatchedMesh && (_t.setOptional(U, Z, "batchingTexture"), _t.setValue(U, "batchingTexture", Z._matricesTexture, T), _t.setOptional(U, Z, "batchingIdTexture"), _t.setValue(U, "batchingIdTexture", Z._indirectTexture, T), _t.setOptional(U, Z, "batchingColorTexture"), Z._colorsTexture !== null && _t.setValue(U, "batchingColorTexture", Z._colorsTexture, T));
38964
38965
  const oi = J.morphAttributes;
38965
- if ((oi.position !== void 0 || oi.normal !== void 0 || oi.color !== void 0) && Ye.update(Z, J, _n), (ai || Ne.receiveShadow !== Z.receiveShadow) && (Ne.receiveShadow = Z.receiveShadow, gt.setValue(U, "receiveShadow", Z.receiveShadow)), (Y.isMeshStandardMaterial || Y.isMeshLambertMaterial || Y.isMeshPhongMaterial) && Y.envMap === null && X.environment !== null && (Dt.envMapIntensity.value = X.environmentIntensity), Dt.dfgLUT !== void 0 && (Dt.dfgLUT.value = QE()), ai) {
38966
- if (gt.setValue(U, "toneMappingExposure", w.toneMappingExposure), Ne.needsLights && cm(Dt, ur), Ie && Y.fog === !0 && ee.refreshFogUniforms(Dt, Ie), ee.refreshMaterialUniforms(Dt, Y, te, W, M.state.transmissionRenderTarget[R.id]), Ne.needsLights && Ne.lightProbeGrid) {
38967
- const _t = Ne.lightProbeGrid;
38968
- Dt.probesSH.value = _t.texture, Dt.probesMin.value.copy(_t.boundingBox.min), Dt.probesMax.value.copy(_t.boundingBox.max), Dt.probesResolution.value.copy(_t.resolution);
38966
+ if ((oi.position !== void 0 || oi.normal !== void 0 || oi.color !== void 0) && Ye.update(Z, J, _n), (ai || Ne.receiveShadow !== Z.receiveShadow) && (Ne.receiveShadow = Z.receiveShadow, _t.setValue(U, "receiveShadow", Z.receiveShadow)), (Y.isMeshStandardMaterial || Y.isMeshLambertMaterial || Y.isMeshPhongMaterial) && Y.envMap === null && X.environment !== null && (Rt.envMapIntensity.value = X.environmentIntensity), Rt.dfgLUT !== void 0 && (Rt.dfgLUT.value = QE()), ai) {
38967
+ if (_t.setValue(U, "toneMappingExposure", w.toneMappingExposure), Ne.needsLights && cm(Rt, ur), Ie && Y.fog === !0 && ee.refreshFogUniforms(Rt, Ie), ee.refreshMaterialUniforms(Rt, Y, te, W, M.state.transmissionRenderTarget[R.id]), Ne.needsLights && Ne.lightProbeGrid) {
38968
+ const vt = Ne.lightProbeGrid;
38969
+ Rt.probesSH.value = vt.texture, Rt.probesMin.value.copy(vt.boundingBox.min), Rt.probesMax.value.copy(vt.boundingBox.max), Rt.probesResolution.value.copy(vt.resolution);
38969
38970
  }
38970
- qo.upload(U, c0(Ne), Dt, T);
38971
+ qo.upload(U, c0(Ne), Rt, T);
38971
38972
  }
38972
- if (Y.isShaderMaterial && Y.uniformsNeedUpdate === !0 && (qo.upload(U, c0(Ne), Dt, T), Y.uniformsNeedUpdate = !1), Y.isSpriteMaterial && gt.setValue(U, "center", Z.center), gt.setValue(U, "modelViewMatrix", Z.modelViewMatrix), gt.setValue(U, "normalMatrix", Z.normalMatrix), gt.setValue(U, "modelMatrix", Z.matrixWorld), Y.uniformsGroups !== void 0) {
38973
- const _t = Y.uniformsGroups;
38974
- for (let ci = 0, fr = _t.length; ci < fr; ci++) {
38975
- const h0 = _t[ci];
38973
+ if (Y.isShaderMaterial && Y.uniformsNeedUpdate === !0 && (qo.upload(U, c0(Ne), Rt, T), Y.uniformsNeedUpdate = !1), Y.isSpriteMaterial && _t.setValue(U, "center", Z.center), _t.setValue(U, "modelViewMatrix", Z.modelViewMatrix), _t.setValue(U, "normalMatrix", Z.normalMatrix), _t.setValue(U, "modelMatrix", Z.matrixWorld), Y.uniformsGroups !== void 0) {
38974
+ const vt = Y.uniformsGroups;
38975
+ for (let ci = 0, fr = vt.length; ci < fr; ci++) {
38976
+ const h0 = vt[ci];
38976
38977
  oe.update(h0, _n), oe.bind(h0, _n);
38977
38978
  }
38978
38979
  }
@@ -39023,7 +39024,7 @@ class eA {
39023
39024
  const He = D.get(R).__webglFramebuffer;
39024
39025
  R.isWebGLCubeRenderTarget ? (Array.isArray(He[X]) ? Y = He[X][J] : Y = He[X], Z = !0) : R.samples > 0 && T.useMultisampledRTT(R) === !1 ? Y = D.get(R).__webglMultisampledFramebuffer : Array.isArray(He) ? Y = He[J] : Y = He, K.copy(R.viewport), Q.copy(R.scissor), re = R.scissorTest;
39025
39026
  } else
39026
- K.copy($).multiplyScalar(te).floor(), Q.copy(se).multiplyScalar(te).floor(), re = xe;
39027
+ K.copy($).multiplyScalar(te).floor(), Q.copy(se).multiplyScalar(te).floor(), re = pe;
39027
39028
  if (J !== 0 && (Y = hm), de.bindFramebuffer(U.FRAMEBUFFER, Y) && de.drawBuffers(R, Y), de.viewport(K), de.scissor(Q), de.setScissorTest(re), Z) {
39028
39029
  const De = D.get(R.texture);
39029
39030
  U.framebufferTexture2D(U.FRAMEBUFFER, U.COLOR_ATTACHMENT0, U.TEXTURE_CUBE_MAP_POSITIVE_X + X, De.__webglTexture, J);
@@ -39078,8 +39079,8 @@ class eA {
39078
39079
  U.bindBuffer(U.PIXEL_PACK_BUFFER, We), U.bufferData(U.PIXEL_PACK_BUFFER, Ie.byteLength, U.STREAM_READ), U.readPixels(X, J, Y, Z, z.convert(Qe), z.convert(nt), 0);
39079
39080
  const pt = L !== null ? D.get(L).__webglFramebuffer : null;
39080
39081
  de.bindFramebuffer(U.FRAMEBUFFER, pt);
39081
- const Rt = U.fenceSync(U.SYNC_GPU_COMMANDS_COMPLETE, 0);
39082
- return U.flush(), await r1(U, Rt, 4), U.bindBuffer(U.PIXEL_PACK_BUFFER, We), U.getBufferSubData(U.PIXEL_PACK_BUFFER, 0, Ie), U.deleteBuffer(We), U.deleteSync(Rt), Ie;
39082
+ const Tt = U.fenceSync(U.SYNC_GPU_COMMANDS_COMPLETE, 0);
39083
+ return U.flush(), await r_(U, Tt, 4), U.bindBuffer(U.PIXEL_PACK_BUFFER, We), U.getBufferSubData(U.PIXEL_PACK_BUFFER, 0, Ie), U.deleteBuffer(We), U.deleteSync(Tt), Ie;
39083
39084
  } else
39084
39085
  throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.");
39085
39086
  }, this.copyFramebufferToTexture = function(R, X = null, J = 0) {
@@ -39088,35 +39089,35 @@ class eA {
39088
39089
  };
39089
39090
  const um = U.createFramebuffer(), fm = U.createFramebuffer();
39090
39091
  this.copyTextureToTexture = function(R, X, J = null, Y = null, Z = 0, Ie = 0) {
39091
- let Ue, De, Ve, He, Qe, nt, We, pt, Rt;
39092
- const Ct = R.isCompressedTexture ? R.mipmaps[Ie] : R.image;
39092
+ let Ue, De, Ve, He, Qe, nt, We, pt, Tt;
39093
+ const wt = R.isCompressedTexture ? R.mipmaps[Ie] : R.image;
39093
39094
  if (J !== null)
39094
39095
  Ue = J.max.x - J.min.x, De = J.max.y - J.min.y, Ve = J.isBox3 ? J.max.z - J.min.z : 1, He = J.min.x, Qe = J.min.y, nt = J.isBox3 ? J.min.z : 0;
39095
39096
  else {
39096
- const Dt = Math.pow(2, -Z);
39097
- Ue = Math.floor(Ct.width * Dt), De = Math.floor(Ct.height * Dt), R.isDataArrayTexture ? Ve = Ct.depth : R.isData3DTexture ? Ve = Math.floor(Ct.depth * Dt) : Ve = 1, He = 0, Qe = 0, nt = 0;
39097
+ const Rt = Math.pow(2, -Z);
39098
+ Ue = Math.floor(wt.width * Rt), De = Math.floor(wt.height * Rt), R.isDataArrayTexture ? Ve = wt.depth : R.isData3DTexture ? Ve = Math.floor(wt.depth * Rt) : Ve = 1, He = 0, Qe = 0, nt = 0;
39098
39099
  }
39099
- Y !== null ? (We = Y.x, pt = Y.y, Rt = Y.z) : (We = 0, pt = 0, Rt = 0);
39100
- const mt = z.convert(X.format), Gt = z.convert(X.type);
39100
+ Y !== null ? (We = Y.x, pt = Y.y, Tt = Y.z) : (We = 0, pt = 0, Tt = 0);
39101
+ const gt = z.convert(X.format), Gt = z.convert(X.type);
39101
39102
  let Ne;
39102
39103
  X.isData3DTexture ? (T.setTexture3D(X, 0), Ne = U.TEXTURE_3D) : X.isDataArrayTexture || X.isCompressedArrayTexture ? (T.setTexture2DArray(X, 0), Ne = U.TEXTURE_2D_ARRAY) : (T.setTexture2D(X, 0), Ne = U.TEXTURE_2D), de.activeTexture(U.TEXTURE0), de.pixelStorei(U.UNPACK_FLIP_Y_WEBGL, X.flipY), de.pixelStorei(U.UNPACK_PREMULTIPLY_ALPHA_WEBGL, X.premultiplyAlpha), de.pixelStorei(U.UNPACK_ALIGNMENT, X.unpackAlignment);
39103
39104
  const un = de.getParameter(U.UNPACK_ROW_LENGTH), ct = de.getParameter(U.UNPACK_IMAGE_HEIGHT), _n = de.getParameter(U.UNPACK_SKIP_PIXELS), Fn = de.getParameter(U.UNPACK_SKIP_ROWS), ai = de.getParameter(U.UNPACK_SKIP_IMAGES);
39104
- de.pixelStorei(U.UNPACK_ROW_LENGTH, Ct.width), de.pixelStorei(U.UNPACK_IMAGE_HEIGHT, Ct.height), de.pixelStorei(U.UNPACK_SKIP_PIXELS, He), de.pixelStorei(U.UNPACK_SKIP_ROWS, Qe), de.pixelStorei(U.UNPACK_SKIP_IMAGES, nt);
39105
- const ur = R.isDataArrayTexture || R.isData3DTexture, gt = X.isDataArrayTexture || X.isData3DTexture;
39105
+ de.pixelStorei(U.UNPACK_ROW_LENGTH, wt.width), de.pixelStorei(U.UNPACK_IMAGE_HEIGHT, wt.height), de.pixelStorei(U.UNPACK_SKIP_PIXELS, He), de.pixelStorei(U.UNPACK_SKIP_ROWS, Qe), de.pixelStorei(U.UNPACK_SKIP_IMAGES, nt);
39106
+ const ur = R.isDataArrayTexture || R.isData3DTexture, _t = X.isDataArrayTexture || X.isData3DTexture;
39106
39107
  if (R.isDepthTexture) {
39107
- const Dt = D.get(R), oi = D.get(X), _t = D.get(Dt.__renderTarget), ci = D.get(oi.__renderTarget);
39108
- de.bindFramebuffer(U.READ_FRAMEBUFFER, _t.__webglFramebuffer), de.bindFramebuffer(U.DRAW_FRAMEBUFFER, ci.__webglFramebuffer);
39108
+ const Rt = D.get(R), oi = D.get(X), vt = D.get(Rt.__renderTarget), ci = D.get(oi.__renderTarget);
39109
+ de.bindFramebuffer(U.READ_FRAMEBUFFER, vt.__webglFramebuffer), de.bindFramebuffer(U.DRAW_FRAMEBUFFER, ci.__webglFramebuffer);
39109
39110
  for (let fr = 0; fr < Ve; fr++)
39110
- ur && (U.framebufferTextureLayer(U.READ_FRAMEBUFFER, U.COLOR_ATTACHMENT0, D.get(R).__webglTexture, Z, nt + fr), U.framebufferTextureLayer(U.DRAW_FRAMEBUFFER, U.COLOR_ATTACHMENT0, D.get(X).__webglTexture, Ie, Rt + fr)), U.blitFramebuffer(He, Qe, Ue, De, We, pt, Ue, De, U.DEPTH_BUFFER_BIT, U.NEAREST);
39111
+ ur && (U.framebufferTextureLayer(U.READ_FRAMEBUFFER, U.COLOR_ATTACHMENT0, D.get(R).__webglTexture, Z, nt + fr), U.framebufferTextureLayer(U.DRAW_FRAMEBUFFER, U.COLOR_ATTACHMENT0, D.get(X).__webglTexture, Ie, Tt + fr)), U.blitFramebuffer(He, Qe, Ue, De, We, pt, Ue, De, U.DEPTH_BUFFER_BIT, U.NEAREST);
39111
39112
  de.bindFramebuffer(U.READ_FRAMEBUFFER, null), de.bindFramebuffer(U.DRAW_FRAMEBUFFER, null);
39112
39113
  } else if (Z !== 0 || R.isRenderTargetTexture || D.has(R)) {
39113
- const Dt = D.get(R), oi = D.get(X);
39114
+ const Rt = D.get(R), oi = D.get(X);
39114
39115
  de.bindFramebuffer(U.READ_FRAMEBUFFER, um), de.bindFramebuffer(U.DRAW_FRAMEBUFFER, fm);
39115
- for (let _t = 0; _t < Ve; _t++)
39116
- ur ? U.framebufferTextureLayer(U.READ_FRAMEBUFFER, U.COLOR_ATTACHMENT0, Dt.__webglTexture, Z, nt + _t) : U.framebufferTexture2D(U.READ_FRAMEBUFFER, U.COLOR_ATTACHMENT0, U.TEXTURE_2D, Dt.__webglTexture, Z), gt ? U.framebufferTextureLayer(U.DRAW_FRAMEBUFFER, U.COLOR_ATTACHMENT0, oi.__webglTexture, Ie, Rt + _t) : U.framebufferTexture2D(U.DRAW_FRAMEBUFFER, U.COLOR_ATTACHMENT0, U.TEXTURE_2D, oi.__webglTexture, Ie), Z !== 0 ? U.blitFramebuffer(He, Qe, Ue, De, We, pt, Ue, De, U.COLOR_BUFFER_BIT, U.NEAREST) : gt ? U.copyTexSubImage3D(Ne, Ie, We, pt, Rt + _t, He, Qe, Ue, De) : U.copyTexSubImage2D(Ne, Ie, We, pt, He, Qe, Ue, De);
39116
+ for (let vt = 0; vt < Ve; vt++)
39117
+ ur ? U.framebufferTextureLayer(U.READ_FRAMEBUFFER, U.COLOR_ATTACHMENT0, Rt.__webglTexture, Z, nt + vt) : U.framebufferTexture2D(U.READ_FRAMEBUFFER, U.COLOR_ATTACHMENT0, U.TEXTURE_2D, Rt.__webglTexture, Z), _t ? U.framebufferTextureLayer(U.DRAW_FRAMEBUFFER, U.COLOR_ATTACHMENT0, oi.__webglTexture, Ie, Tt + vt) : U.framebufferTexture2D(U.DRAW_FRAMEBUFFER, U.COLOR_ATTACHMENT0, U.TEXTURE_2D, oi.__webglTexture, Ie), Z !== 0 ? U.blitFramebuffer(He, Qe, Ue, De, We, pt, Ue, De, U.COLOR_BUFFER_BIT, U.NEAREST) : _t ? U.copyTexSubImage3D(Ne, Ie, We, pt, Tt + vt, He, Qe, Ue, De) : U.copyTexSubImage2D(Ne, Ie, We, pt, He, Qe, Ue, De);
39117
39118
  de.bindFramebuffer(U.READ_FRAMEBUFFER, null), de.bindFramebuffer(U.DRAW_FRAMEBUFFER, null);
39118
39119
  } else
39119
- gt ? R.isDataTexture || R.isData3DTexture ? U.texSubImage3D(Ne, Ie, We, pt, Rt, Ue, De, Ve, mt, Gt, Ct.data) : X.isCompressedArrayTexture ? U.compressedTexSubImage3D(Ne, Ie, We, pt, Rt, Ue, De, Ve, mt, Ct.data) : U.texSubImage3D(Ne, Ie, We, pt, Rt, Ue, De, Ve, mt, Gt, Ct) : R.isDataTexture ? U.texSubImage2D(U.TEXTURE_2D, Ie, We, pt, Ue, De, mt, Gt, Ct.data) : R.isCompressedTexture ? U.compressedTexSubImage2D(U.TEXTURE_2D, Ie, We, pt, Ct.width, Ct.height, mt, Ct.data) : U.texSubImage2D(U.TEXTURE_2D, Ie, We, pt, Ue, De, mt, Gt, Ct);
39120
+ _t ? R.isDataTexture || R.isData3DTexture ? U.texSubImage3D(Ne, Ie, We, pt, Tt, Ue, De, Ve, gt, Gt, wt.data) : X.isCompressedArrayTexture ? U.compressedTexSubImage3D(Ne, Ie, We, pt, Tt, Ue, De, Ve, gt, wt.data) : U.texSubImage3D(Ne, Ie, We, pt, Tt, Ue, De, Ve, gt, Gt, wt) : R.isDataTexture ? U.texSubImage2D(U.TEXTURE_2D, Ie, We, pt, Ue, De, gt, Gt, wt.data) : R.isCompressedTexture ? U.compressedTexSubImage2D(U.TEXTURE_2D, Ie, We, pt, wt.width, wt.height, gt, wt.data) : U.texSubImage2D(U.TEXTURE_2D, Ie, We, pt, Ue, De, gt, Gt, wt);
39120
39121
  de.pixelStorei(U.UNPACK_ROW_LENGTH, un), de.pixelStorei(U.UNPACK_IMAGE_HEIGHT, ct), de.pixelStorei(U.UNPACK_SKIP_PIXELS, _n), de.pixelStorei(U.UNPACK_SKIP_ROWS, Fn), de.pixelStorei(U.UNPACK_SKIP_IMAGES, ai), Ie === 0 && X.generateMipmaps && U.generateMipmap(Ne), de.unbindTexture();
39121
39122
  }, this.initRenderTarget = function(R) {
39122
39123
  D.get(R).__webglFramebuffer === void 0 && T.setupRenderTarget(R);
@@ -39184,7 +39185,7 @@ var it = /* @__PURE__ */ Object.freeze({
39184
39185
  AxesHelper: Qy,
39185
39186
  BackSide: Qt,
39186
39187
  BasicDepthPacking: Dp,
39187
- BasicShadowMap: u_,
39188
+ BasicShadowMap: u1,
39188
39189
  BatchedMesh: Zp,
39189
39190
  BezierInterpolant: Ex,
39190
39191
  Bone: Eu,
@@ -39211,7 +39212,7 @@ var it = /* @__PURE__ */ Object.freeze({
39211
39212
  Color: Be,
39212
39213
  ColorKeyframeTrack: ku,
39213
39214
  ColorManagement: rt,
39214
- Compatibility: Q_,
39215
+ Compatibility: Q1,
39215
39216
  CompressedArrayTexture: lv,
39216
39217
  CompressedCubeTexture: hv,
39217
39218
  CompressedTexture: fl,
@@ -39232,7 +39233,7 @@ var it = /* @__PURE__ */ Object.freeze({
39232
39233
  CubicInterpolant: Mx,
39233
39234
  CullFaceBack: Bh,
39234
39235
  CullFaceFront: rp,
39235
- CullFaceFrontBack: h_,
39236
+ CullFaceFrontBack: h1,
39236
39237
  CullFaceNone: ip,
39237
39238
  Curve: Bn,
39238
39239
  CurvePath: sx,
@@ -39244,9 +39245,9 @@ var it = /* @__PURE__ */ Object.freeze({
39244
39245
  DataArrayTexture: rl,
39245
39246
  DataTexture: Dn,
39246
39247
  DataTextureLoader: Qv,
39247
- DataUtils: N1,
39248
- DecrementStencilOp: D_,
39249
- DecrementWrapStencilOp: P_,
39248
+ DataUtils: N_,
39249
+ DecrementStencilOp: D1,
39250
+ DecrementWrapStencilOp: P1,
39250
39251
  DefaultLoadingManager: wx,
39251
39252
  DepthFormat: qn,
39252
39253
  DepthStencilFormat: _i,
@@ -39259,14 +39260,14 @@ var it = /* @__PURE__ */ Object.freeze({
39259
39260
  DoubleSide: kn,
39260
39261
  DstAlphaFactor: xp,
39261
39262
  DstColorFactor: gp,
39262
- DynamicCopyUsage: $_,
39263
- DynamicDrawUsage: V_,
39264
- DynamicReadUsage: W_,
39263
+ DynamicCopyUsage: $1,
39264
+ DynamicDrawUsage: V1,
39265
+ DynamicReadUsage: W1,
39265
39266
  EdgesGeometry: ex,
39266
39267
  EllipseCurve: ml,
39267
39268
  EqualCompare: Fp,
39268
39269
  EqualDepth: tc,
39269
- EqualStencilFunc: N_,
39270
+ EqualStencilFunc: N1,
39270
39271
  EquirectangularReflectionMapping: ws,
39271
39272
  EquirectangularRefractionMapping: Cs,
39272
39273
  Euler: In,
@@ -39274,7 +39275,7 @@ var it = /* @__PURE__ */ Object.freeze({
39274
39275
  ExternalTexture: wu,
39275
39276
  ExtrudeGeometry: gl,
39276
39277
  FileLoader: si,
39277
- Float16BufferAttribute: H1,
39278
+ Float16BufferAttribute: H_,
39278
39279
  Float32BufferAttribute: Fe,
39279
39280
  FloatType: Jt,
39280
39281
  Fog: cl,
@@ -39284,14 +39285,14 @@ var it = /* @__PURE__ */ Object.freeze({
39284
39285
  Frustum: Qr,
39285
39286
  FrustumArray: ul,
39286
39287
  GLBufferAttribute: Iy,
39287
- GLSL1: Z_,
39288
+ GLSL1: Z1,
39288
39289
  GLSL3: zh,
39289
39290
  GreaterCompare: Lp,
39290
39291
  GreaterDepth: ic,
39291
39292
  GreaterEqualCompare: il,
39292
39293
  GreaterEqualDepth: nc,
39293
- GreaterEqualStencilFunc: z_,
39294
- GreaterStencilFunc: O_,
39294
+ GreaterEqualStencilFunc: z1,
39295
+ GreaterStencilFunc: O1,
39295
39296
  GridHelper: Xy,
39296
39297
  Group: Yi,
39297
39298
  HTMLTexture: fv,
@@ -39302,15 +39303,15 @@ var it = /* @__PURE__ */ Object.freeze({
39302
39303
  ImageBitmapLoader: ay,
39303
39304
  ImageLoader: Qs,
39304
39305
  ImageUtils: Vp,
39305
- IncrementStencilOp: R_,
39306
- IncrementWrapStencilOp: I_,
39306
+ IncrementStencilOp: R1,
39307
+ IncrementWrapStencilOp: I1,
39307
39308
  InstancedBufferAttribute: $r,
39308
39309
  InstancedBufferGeometry: Fx,
39309
39310
  InstancedInterleavedBuffer: Dy,
39310
39311
  InstancedMesh: Yp,
39311
- Int16BufferAttribute: V1,
39312
- Int32BufferAttribute: G1,
39313
- Int8BufferAttribute: O1,
39312
+ Int16BufferAttribute: V_,
39313
+ Int32BufferAttribute: G_,
39314
+ Int8BufferAttribute: O_,
39314
39315
  IntType: Zc,
39315
39316
  InterleavedBuffer: ll,
39316
39317
  InterleavedBufferAttribute: nr,
@@ -39319,9 +39320,9 @@ var it = /* @__PURE__ */ Object.freeze({
39319
39320
  InterpolateDiscrete: zs,
39320
39321
  InterpolateLinear: Lc,
39321
39322
  InterpolateSmooth: Wo,
39322
- InterpolationSamplingMode: j_,
39323
- InterpolationSamplingType: J_,
39324
- InvertStencilOp: B_,
39323
+ InterpolationSamplingMode: j1,
39324
+ InterpolationSamplingType: J1,
39325
+ InvertStencilOp: B1,
39325
39326
  KeepStencilOp: Hi,
39326
39327
  KeyframeTrack: Sn,
39327
39328
  LOD: qp,
@@ -39331,22 +39332,22 @@ var it = /* @__PURE__ */ Object.freeze({
39331
39332
  LessDepth: ec,
39332
39333
  LessEqualCompare: nl,
39333
39334
  LessEqualDepth: er,
39334
- LessEqualStencilFunc: U_,
39335
- LessStencilFunc: L_,
39335
+ LessEqualStencilFunc: U1,
39336
+ LessStencilFunc: L1,
39336
39337
  Light: Ri,
39337
39338
  LightProbe: Bx,
39338
39339
  Line: Ai,
39339
39340
  Line3: ky,
39340
- LineBasicMaterial: tn,
39341
+ LineBasicMaterial: nn,
39341
39342
  LineCurve: Ru,
39342
39343
  LineCurve3: rx,
39343
39344
  LineDashedMaterial: yx,
39344
39345
  LineLoop: Kp,
39345
39346
  LineSegments: $n,
39346
- LinearFilter: vt,
39347
+ LinearFilter: yt,
39347
39348
  LinearInterpolant: Ou,
39348
- LinearMipMapLinearFilter: m_,
39349
- LinearMipMapNearestFilter: x_,
39349
+ LinearMipMapLinearFilter: m1,
39350
+ LinearMipMapNearestFilter: x1,
39350
39351
  LinearMipmapLinearFilter: Vn,
39351
39352
  LinearMipmapNearestFilter: Ts,
39352
39353
  LinearSRGBColorSpace: Gs,
@@ -39358,16 +39359,16 @@ var it = /* @__PURE__ */ Object.freeze({
39358
39359
  LoopOnce: Cp,
39359
39360
  LoopPingPong: Rp,
39360
39361
  LoopRepeat: Tp,
39361
- MOUSE: c_,
39362
+ MOUSE: c1,
39362
39363
  Material: $t,
39363
- MaterialBlending: f_,
39364
+ MaterialBlending: f1,
39364
39365
  MaterialLoader: Cl,
39365
- MathUtils: M1,
39366
+ MathUtils: M_,
39366
39367
  Matrix2: $h,
39367
39368
  Matrix3: Ke,
39368
39369
  Matrix4: $e,
39369
39370
  MaxEquation: hp,
39370
- Mesh: yt,
39371
+ Mesh: bt,
39371
39372
  MeshBasicMaterial: Ci,
39372
39373
  MeshDepthMaterial: Lu,
39373
39374
  MeshDistanceMaterial: Nu,
@@ -39383,26 +39384,26 @@ var it = /* @__PURE__ */ Object.freeze({
39383
39384
  MixOperation: Ep,
39384
39385
  MultiplyBlending: Nh,
39385
39386
  MultiplyOperation: ea,
39386
- NearestFilter: Pt,
39387
- NearestMipMapLinearFilter: p_,
39388
- NearestMipMapNearestFilter: d_,
39387
+ NearestFilter: It,
39388
+ NearestMipMapLinearFilter: p1,
39389
+ NearestMipMapNearestFilter: d1,
39389
39390
  NearestMipmapLinearFilter: kr,
39390
39391
  NearestMipmapNearestFilter: uu,
39391
39392
  NeutralToneMapping: hu,
39392
39393
  NeverCompare: Pp,
39393
39394
  NeverDepth: jo,
39394
- NeverStencilFunc: F_,
39395
+ NeverStencilFunc: F1,
39395
39396
  NoBlending: Hn,
39396
39397
  NoColorSpace: ei,
39397
- NoNormalPacking: E_,
39398
+ NoNormalPacking: E1,
39398
39399
  NoToneMapping: Rn,
39399
39400
  NormalAnimationBlendMode: tl,
39400
39401
  NormalBlending: Ji,
39401
- NormalGAPacking: w_,
39402
- NormalRGPacking: A_,
39402
+ NormalGAPacking: w1,
39403
+ NormalRGPacking: A1,
39403
39404
  NotEqualCompare: Np,
39404
39405
  NotEqualDepth: rc,
39405
- NotEqualStencilFunc: k_,
39406
+ NotEqualStencilFunc: k1,
39406
39407
  NumberKeyframeTrack: Ks,
39407
39408
  Object3D: ht,
39408
39409
  ObjectLoader: ry,
@@ -39443,7 +39444,7 @@ var it = /* @__PURE__ */ Object.freeze({
39443
39444
  RED_RGTC1_Format: Pc,
39444
39445
  REVISION: $c,
39445
39446
  RG11_EAC_Format: Os,
39446
- RGBADepthPacking: b_,
39447
+ RGBADepthPacking: b1,
39447
39448
  RGBAFormat: jt,
39448
39449
  RGBAIntegerFormat: el,
39449
39450
  RGBA_ASTC_10x10_Format: wc,
@@ -39467,9 +39468,9 @@ var it = /* @__PURE__ */ Object.freeze({
39467
39468
  RGBA_S3TC_DXT1_Format: Ds,
39468
39469
  RGBA_S3TC_DXT3_Format: Is,
39469
39470
  RGBA_S3TC_DXT5_Format: Ps,
39470
- RGBDepthPacking: M_,
39471
+ RGBDepthPacking: M1,
39471
39472
  RGBFormat: gu,
39472
- RGBIntegerFormat: g_,
39473
+ RGBIntegerFormat: g1,
39473
39474
  RGB_BPTC_SIGNED_Format: Dc,
39474
39475
  RGB_BPTC_UNSIGNED_Format: Ic,
39475
39476
  RGB_ETC1_Format: lc,
@@ -39477,7 +39478,7 @@ var it = /* @__PURE__ */ Object.freeze({
39477
39478
  RGB_PVRTC_2BPPV1_Format: ac,
39478
39479
  RGB_PVRTC_4BPPV1_Format: sc,
39479
39480
  RGB_S3TC_DXT1_Format: Rs,
39480
- RGDepthPacking: S_,
39481
+ RGDepthPacking: S1,
39481
39482
  RGFormat: Si,
39482
39483
  RGIntegerFormat: Qc,
39483
39484
  RawShaderMaterial: Bu,
@@ -39490,14 +39491,14 @@ var it = /* @__PURE__ */ Object.freeze({
39490
39491
  RenderTarget: yu,
39491
39492
  RenderTarget3D: Cy,
39492
39493
  RepeatWrapping: Ns,
39493
- ReplaceStencilOp: T_,
39494
+ ReplaceStencilOp: T1,
39494
39495
  ReverseSubtractEquation: cp,
39495
39496
  RingGeometry: yl,
39496
39497
  SIGNED_R11_EAC_Format: dc,
39497
39498
  SIGNED_RED_GREEN_RGTC2_Format: Fc,
39498
39499
  SIGNED_RED_RGTC1_Format: Bc,
39499
39500
  SIGNED_RG11_EAC_Format: pc,
39500
- SRGBColorSpace: sn,
39501
+ SRGBColorSpace: an,
39501
39502
  SRGBTransfer: ft,
39502
39503
  Scene: Hp,
39503
39504
  ShaderChunk: tt,
@@ -39525,41 +39526,41 @@ var it = /* @__PURE__ */ Object.freeze({
39525
39526
  SrcAlphaFactor: Ko,
39526
39527
  SrcAlphaSaturateFactor: vp,
39527
39528
  SrcColorFactor: dp,
39528
- StaticCopyUsage: q_,
39529
+ StaticCopyUsage: q1,
39529
39530
  StaticDrawUsage: Ws,
39530
- StaticReadUsage: H_,
39531
+ StaticReadUsage: H1,
39531
39532
  StereoCamera: cy,
39532
- StreamCopyUsage: Y_,
39533
- StreamDrawUsage: G_,
39534
- StreamReadUsage: X_,
39533
+ StreamCopyUsage: Y1,
39534
+ StreamDrawUsage: G1,
39535
+ StreamReadUsage: X1,
39535
39536
  StringKeyframeTrack: lr,
39536
39537
  SubtractEquation: op,
39537
39538
  SubtractiveBlending: Lh,
39538
- TOUCH: l_,
39539
+ TOUCH: l1,
39539
39540
  TangentSpaceNormalMap: ri,
39540
39541
  TetrahedronGeometry: Ml,
39541
39542
  Texture: At,
39542
39543
  TextureLoader: ey,
39543
39544
  TextureUtils: ab,
39544
39545
  Timer: Ox,
39545
- TimestampQuery: K_,
39546
+ TimestampQuery: K1,
39546
39547
  TorusGeometry: Sl,
39547
39548
  TorusKnotGeometry: El,
39548
- Triangle: on,
39549
- TriangleFanDrawMode: y_,
39550
- TriangleStripDrawMode: v_,
39551
- TrianglesDrawMode: __,
39549
+ Triangle: cn,
39550
+ TriangleFanDrawMode: y1,
39551
+ TriangleStripDrawMode: v1,
39552
+ TrianglesDrawMode: _1,
39552
39553
  TubeGeometry: Al,
39553
39554
  UVMapping: Yc,
39554
39555
  Uint16BufferAttribute: bu,
39555
39556
  Uint32BufferAttribute: Mu,
39556
- Uint8BufferAttribute: k1,
39557
- Uint8ClampedBufferAttribute: z1,
39557
+ Uint8BufferAttribute: k_,
39558
+ Uint8ClampedBufferAttribute: z_,
39558
39559
  Uniform: qu,
39559
39560
  UniformsGroup: Ry,
39560
39561
  UniformsLib: Ce,
39561
39562
  UniformsUtils: dx,
39562
- UnsignedByteType: an,
39563
+ UnsignedByteType: on,
39563
39564
  UnsignedInt101111Type: xu,
39564
39565
  UnsignedInt248Type: Xr,
39565
39566
  UnsignedInt5999Type: pu,
@@ -39574,8 +39575,8 @@ var it = /* @__PURE__ */ Object.freeze({
39574
39575
  VectorKeyframeTrack: Js,
39575
39576
  VideoFrameTexture: ov,
39576
39577
  VideoTexture: jp,
39577
- WebGL3DRenderTarget: C1,
39578
- WebGLArrayRenderTarget: w1,
39578
+ WebGL3DRenderTarget: C_,
39579
+ WebGLArrayRenderTarget: w_,
39579
39580
  WebGLCoordinateSystem: xn,
39580
39581
  WebGLCubeRenderTarget: $u,
39581
39582
  WebGLRenderTarget: gn,
@@ -39588,12 +39589,12 @@ var it = /* @__PURE__ */ Object.freeze({
39588
39589
  ZeroCurvatureEnding: qi,
39589
39590
  ZeroFactor: up,
39590
39591
  ZeroSlopeEnding: $i,
39591
- ZeroStencilOp: C_,
39592
+ ZeroStencilOp: C1,
39592
39593
  createCanvasElement: kp,
39593
39594
  error: ke,
39594
- getConsoleFunction: i1,
39595
+ getConsoleFunction: i_,
39595
39596
  log: qs,
39596
- setConsoleFunction: n1,
39597
+ setConsoleFunction: n_,
39597
39598
  warn: Ee,
39598
39599
  warnOnce: Nc
39599
39600
  });
@@ -39630,76 +39631,65 @@ class tA extends Je {
39630
39631
  return super.copy(e), this.parameters = Object.assign({}, e.parameters), this;
39631
39632
  }
39632
39633
  }
39633
- function wt(r, e) {
39634
- return r = r - (13689 + 2253 * -6), Vc()[r];
39635
- }
39636
- const bt = wt;
39637
- function Vc() {
39638
- const r = ["origi", "Layer", "sion", "tribu", "getX", "trim", "gify", "group", "partI", "exclu", "nable", "baseU", "form", " extr", "Order", "lastU", "ugTra", "child", "info", "Three", "s 完成", "data:", "Rect", " outp", "get", "trave", " type", "map", "ntVer", " getT", "light", "compu", "min", "Smoot", "bind", "Name", ", ren", "has", "drawI", "size", "posit", "List", "Mode", "close", "lAlph", "eSide", "sCach", ", tas", "strin", "16912800MPhoNq", "e-ove", "nMatr", "getY", "fabri", "Objec", "ensho", "ks 缓存", ":memo", "nes=", "opaci", "scene", "needs", "dispo", " buil", "layer", "name", "des", "748860mZLieh", "bitma", "pace", "copy", "mesh-", "plySc", "bound", "sed", "osite", "-dodg", "conso", "quick", "to__", "成 sce", "ibute", "ply", "Updat", " offs", "rer", "try", "nalHe", "puppe", "overl", "norma", "image", "rExtr", "split", "7ESNTzx", "smart", "psdPa", "etry", "rAttr", "1238190urzCXy", "Group", "ping", "as bu", "Slice", "setIn", "rMask", "parts", "Path", "4BRzVnA", "trans", "rigin", "as=", "Clamp", "log", "apply", "eList", "ualit", "der=", "heigh", "nts", "Buffe", "d: ", "lengt", "Opera", "e 获取完", "clear", "2128630RYyZNC", "载完成", "partD", "ren", "filte", "inclu", "repla", "add", "build", "delet", "s con", "lComp", "eScal", "ectiv", "tShap", "getAt", "as 缓存", "hreeM", "endsW", "floor", "teVer", "type", "blend", "Rende", "outpu", "push", "olorS", "614474WyUGYX", "clipp", "asicM", " 渲染模型", "forEa", "Scene", "satur", "ata", "ent", "join", "ined", "Vecto", "sort", "34552ZRCNve", "ffer ", "start", "max", "wrapS", "eName", "clone", "quilt", "tiona", "setAt", "darke", "updat", "mage", "width", "previ", "oints", "eleme", "99EqJxJu", "行加载完成", "ial", "high", "url", "ing", "odeAt", "命中 pa", "top", "undef", "ation", "shift", "l/tas", "2895549UEHodB", "ion", "hingQ", "ith", "mater", "rtDat", "psdJs", "Key", "set", "globa", "ateri", "multi", "ageSi", "ic-16", "bicub", "round", "rmals", "meshP", "now", " 智能对象", "Canva", "charC", "conte", "sWith", "test", "left", "o-fit", "Space", "tion", "color", "sourc"];
39639
- return Vc = function() {
39640
- return r;
39641
- }, Vc();
39642
- }
39634
+ const mt = Pt;
39643
39635
  (function(r, e) {
39644
- const t = wt, n = r();
39636
+ const t = Pt, n = r();
39645
39637
  for (; ; )
39646
39638
  try {
39647
- if (-parseInt(t(213)) / 1 + parseInt(t(299)) / 2 + parseInt(t(342)) / 3 * (-parseInt(t(254)) / 4) + parseInt(t(272)) / 5 + -parseInt(t(245)) / 6 * (parseInt(t(240)) / 7) + -parseInt(t(312)) / 8 * (-parseInt(t(329)) / 9) + parseInt(t(195)) / 10 === e) break;
39639
+ if (-parseInt(t(482)) / 1 + parseInt(t(432)) / 2 * (-parseInt(t(476)) / 3) + -parseInt(t(309)) / 4 * (parseInt(t(489)) / 5) + parseInt(t(422)) / 6 * (parseInt(t(441)) / 7) + parseInt(t(363)) / 8 * (parseInt(t(384)) / 9) + -parseInt(t(387)) / 10 * (-parseInt(t(421)) / 11) + parseInt(t(459)) / 12 === e) break;
39648
39640
  n.push(n.shift());
39649
39641
  } catch {
39650
39642
  n.push(n.shift());
39651
39643
  }
39652
- })(Vc, -12 * 59079 + 289 * 201 + 1202203);
39644
+ })(Gc, -1 * 801094 + 106026 + 1320079);
39653
39645
  const _s = /* @__PURE__ */ (function() {
39654
39646
  let r = !0;
39655
39647
  return function(e, t) {
39656
39648
  const n = r ? function() {
39657
- const i = wt;
39658
39649
  if (t) {
39659
- const s = t[i(260)](e, arguments);
39660
- return t = null, s;
39650
+ const i = t.apply(e, arguments);
39651
+ return t = null, i;
39661
39652
  }
39662
39653
  } : function() {
39663
39654
  };
39664
39655
  return r = !1, n;
39665
39656
  };
39666
39657
  })(), nA = _s(void 0, function() {
39667
- const r = wt, e = function() {
39668
- let s;
39669
- try {
39670
- s = Function('return (function() {}.constructor("return this")( ));')();
39671
- } catch {
39672
- s = window;
39673
- }
39674
- return s;
39675
- }, t = e(), n = t[r(223) + "le"] = t.console || {}, i = [r(259), "warn", r(391), "error", "exception", "table", "trace"];
39676
- for (let s = 4 * 1726 + -7347 + 1 * 443; s < i[r(268) + "h"]; s++) {
39677
- const a = _s.constructor.prototype[r(180)](_s), o = i[s], l = n[o] || a;
39678
- a["__pro" + r(225)] = _s[r(180)](_s), a["toStr" + r(334)] = l.toString.bind(l), n[o] = a;
39658
+ const r = Pt;
39659
+ let e;
39660
+ try {
39661
+ e = Function("return (function() " + ("{}.constru" + r(466) + '"return th' + r(465) + " )") + ");")();
39662
+ } catch {
39663
+ e = window;
39664
+ }
39665
+ const t = e.console = e.console || {}, n = ["log", r(468), "info", r(428), r(288) + "tion", "table", "trace"];
39666
+ for (let i = 5 * 266 + 3268 + -4598; i < n[r(433) + "h"]; i++) {
39667
+ const s = _s["const" + r(442) + "r"][r(430) + "type"].bind(_s), a = n[i], o = t[a] || s;
39668
+ s.__proto__ = _s[r(456)](_s), s.toString = o["toStr" + r(493)].bind(o), t[a] = s;
39679
39669
  }
39680
39670
  });
39681
39671
  nA();
39682
- const iA = -4792 + 2396 * 2 + 0.3, rA = (r) => {
39683
- const e = wt, t = r?.[e(326) + "ewDeb" + e(389) + "ce"];
39684
- return !t?.id || typeof t.startTime != "number" ? null : t;
39672
+ const iA = 544 + -3237 * 1 + 2693 * 1 + 0.3, rA = (r) => {
39673
+ const e = Pt, t = r?.["previewDebugTrace"];
39674
+ return !t?.id || typeof t[e(266) + "Time"] != e(370) + "r" ? null : t;
39685
39675
  }, Ft = (r, e, t, n) => {
39686
- const i = wt;
39676
+ const i = Pt;
39687
39677
  if (!r) return;
39688
39678
  const s = performance.now();
39689
- r.startEpoch ? performance["timeO" + i(256)] + s - r[i(314) + "Epoch"] : s - r.startTime, t === void 0 || "" + (s - t).toFixed(-1 * 1380 + -2223 + 3605);
39679
+ r["start" + i(306)] ? performance.timeOrigin + s - r["start" + i(306)] : s - r.startTime, t === void 0 || "" + (s - t).toFixed(-8565 + -1 * 2963 + 11530);
39690
39680
  }, Vr = (r, e) => {
39691
- const t = wt;
39692
- if (typeof OffscreenCanvas != t(338) + "ined") return new OffscreenCanvas(r, e);
39693
- const n = document["createElem" + t(307)]("canvas");
39694
- return n[t(325)] = r, n.height = e, n;
39681
+ const t = Pt;
39682
+ if (typeof OffscreenCanvas < "u") return new OffscreenCanvas(r, e);
39683
+ const n = document.createElement(t(426) + "s");
39684
+ return n.width = r, n[t(369) + "t"] = e, n;
39695
39685
  }, Es = (r) => {
39696
- const e = wt, t = r.getContext("2d");
39697
- if (!t) throw new Error("无法创建 canva" + e(282) + "text");
39686
+ const e = Pt, t = r.getContext("2d");
39687
+ if (!t) throw new Error("无法创建 canva" + e(289) + "text");
39698
39688
  return t;
39699
39689
  }, jh = (r, e) => {
39700
- const t = wt;
39701
- if (!(!r || typeof r != t(194) + "g")) {
39702
- if (r.startsWith(t(394)) || r.startsWith("blob:") || /^(https?:)?\/\//i[t(366)](r) || !e) return r;
39690
+ const t = Pt;
39691
+ if (!(!r || typeof r != "string")) {
39692
+ if (r[t(266) + t(335)]("data:") || r.startsWith("blob:") || /^(https?:)?\/\//i[t(450)](r) || !e) return r;
39703
39693
  try {
39704
39694
  return new URL(r, e).toString();
39705
39695
  } catch {
@@ -39707,12 +39697,12 @@ const iA = -4792 + 2396 * 2 + 0.3, rA = (r) => {
39707
39697
  }
39708
39698
  }
39709
39699
  }, sA = (r, e) => {
39710
- const t = wt, n = e.length, i = r[t(173)]((s, a) => [...s, e[a]]);
39711
- for (let s = -315 + 8653 * -1 + 8968; s < n; s++) {
39700
+ const t = Pt, n = e[t(433) + "h"], i = r.map((s, a) => [...s, e[a]]);
39701
+ for (let s = -7 * -329 + -26 * -278 + -9531; s < n; s++) {
39712
39702
  let a = s;
39713
- for (let l = s + (839 * 8 + -475 * 17 + -4 * -341); l < n; l++)
39714
- Math.abs(i[l][s]) > Math.abs(i[a][s]) && (a = l);
39715
- if (Math.abs(i[a][s]) < -4 * 2363 + -4319 + 13771 * 1 + 1e-12) throw new Error("透视矩阵求解失败");
39703
+ for (let l = s + (-311 * 8 + -4380 + 6869); l < n; l++)
39704
+ Math.abs(i[l][s]) > Math[t(470)](i[a][s]) && (a = l);
39705
+ if (Math.abs(i[a][s]) < -13 * -602 + 5574 + -2680 * 5 + 1e-12) throw new Error("透视矩阵求解失败");
39716
39706
  [i[s], i[a]] = [i[a], i[s]];
39717
39707
  const o = i[s][s];
39718
39708
  for (let l = s; l <= n; l++) i[s][l] /= o;
@@ -39722,307 +39712,316 @@ const iA = -4792 + 2396 * 2 + 0.3, rA = (r) => {
39722
39712
  for (let h = s; h <= n; h++) i[l][h] -= c * i[s][h];
39723
39713
  }
39724
39714
  }
39725
- return i.map((s) => s[n]);
39715
+ return i[t(385)]((s) => s[n]);
39726
39716
  }, Yu = (r) => {
39727
- const e = wt, t = [[-3 + -966 * -2 + -1929 * 1, 822 + 1 * -6381 + -17 * -327], [3127 + 257 * -9 + -813, -1634 * 2 + -6131 + 9399], [1670 + 8903 * 1 + 4 * -2643, 1], [-379 * -25 + -6709 + 6 * -461, 6897 + -12 * 669 + 2 * 566]], n = r[e(173)]((l) => [l.x, l.y]), i = t.flatMap((l, c) => [[l[8 * 343 + -2838 + 94], l[31 * 299 + -4846 * 2 + 424], 1, -6391 + 3 * -722 + 8557, -6658 * 1 + -2027 + 8685, 1144 * -6 + 911 + 5953, -l[0] * n[c][-1 * -1766 + 7130 + -8896], -l[-501 * 1 + -3 * 1621 + 5365] * n[c][0]], [-2448 + 4598 * 1 + -2150, 0, 5353 + -6598 * 1 + -1245 * -1, l[-4923 * -1 + 19 * 514 + -14689 * 1], l[8019 + 1 * 7881 + -15899], 1 * -313 + 6876 + -6562, -l[0] * n[c][1], -l[2073 + -1208 * 4 + 2760] * n[c][-8004 + 874 * 11 + -1609]]]), s = n.flatMap((l) => l), a = sA(i, s), o = new it.Matrix3();
39728
- return o[e(350)](a[8485 + 749 * 1 + -9234], a[1], a[8920 + 3461 * 1 + -1 * 12379], a[8388 + 2 * -2062 + 1 * -4261], a[-11 * 281 + 6135 + -3040], a[-5580 + 5585 * 1], a[9461 * -1 + -1 * 4583 + 1 * 14050], a[-1 * -2722 + -9730 + 7015], 1), o;
39717
+ const e = Pt, t = [[0, 0], [1, 5444 + -1361 * 4], [1, 1], [-17 * 289 + -9697 + 4870 * 3, 3 * 1499 + 1 * 6499 + -10995]], n = r.map((l) => [l.x, l.y]), i = t.flatMap((l, c) => [[l[0], l[1], -6396 + -1 * 2035 + 8432, 4185 + 15 * 565 + -12660, -283 * 5 + -1995 * 2 + 5405, -3583 * -1 + 6188 + -9771 * 1, -l[0] * n[c][-608 + -24 * 281 + 7352], -l[-1 * 4156 + -1872 + 6029 * 1] * n[c][-8419 + 1 * 3862 + 4557]], [5987 + 5987 * -1, -3167 + 1 * -8471 + 11638, -6883 * -1 + 2861 * 3 + -15466, l[0], l[1], 1, -l[0] * n[c][1 * 7949 + 4304 * 2 + 16556 * -1], -l[-5268 + -1775 * -1 + 3494] * n[c][1]]]), s = n.flatMap((l) => l), a = sA(i, s), o = new it.Matrix3();
39718
+ return o[e(457)](a[1 * -7480 + -331 * 6 + 9466], a[3 * 1654 + 796 * 4 + 2715 * -3], a[7429 + -1 * 2323 + -5104], a[-1 * -1477 + 9645 + -11119], a[-1 * -7258 + 6816 + -14070], a[5], a[-6091 + -469 * -13], a[8775 + -1228 * -1 + -9996], 454 * -8 + -9024 + 4219 * 3), o;
39729
39719
  }, Zu = (r, e, t) => {
39730
- const n = wt, i = t[n(328) + "nts"][0] * r + t[n(328) + n(265)][-882 + -8 * 951 + -2831 * -3] * e + t.elements[9539 * 1 + -32 * 271 + 861 * -1], s = t.elements[1] * r + t["eleme" + n(265)][659 * 5 + 7375 + -10666] * e + t.elements[7], a = t.elements[3 * -2678 + 2248 + 5788 * 1] * r + t["eleme" + n(265)][5] * e + t.elements[1635 + -1627 * 1];
39720
+ const n = Pt, i = t["eleme" + n(270)][9 * 287 + -623 + -1960] * r + t[n(463) + n(270)][5976 + -1 * -2493 + -8466] * e + t.elements[2510 + -13 * -389 + -7561], s = t.elements[-1 * -995 + 8 * -995 + 6966] * r + t.elements[4] * e + t.elements[382 + -1 * -8511 + -8886 * 1], a = t["eleme" + n(270)][2] * r + t.elements[5] * e + t["eleme" + n(270)][-2653 * -2 + -3198 + -2100];
39731
39721
  return new it.Vector2(i / a, s / a);
39732
39722
  }, aA = (r, e, t, n) => {
39733
- const i = wt, s = [5780 + -454 * 16 + -1 * -1484, 0, -6528 + -1 * -3757 + 2771, 0, 9076 + -4117 * 2 + -841, 9496 + 9 * -1055, -9780 + -1 * -4935 + 4846, 1], a = [-1866 + -1 * -902 + 964, 0, -6753 * -1 + 1587 * -5 + 1182, 1193 * 3 + -7575 + -1332 * -3, 1, 1, 6353 + 1588 * -4, 1], o = s[-4938 * 2 + -1067 * -7 + 2407] + r * (s[s[i(268) + "h"] - (2335 * 4 + 5084 + -1 * 14423)] - s[7877 * -1 + 5 * 1977 + -4 * 502]), l = a[0] + e * (a[a.length - (11634 + -1 * 11633)] - a[0]);
39734
- oA(9837 + 1709 * -5 + -1289, 3, s, a, n, o, l, t);
39723
+ const i = Pt, s = [-11 * 409 + 357 + 4142, 0, -857 * -7 + -627 + -2 * 2686, 0, 1, -9137 + -8231 * 1 + 17369, 1477 * -2 + 3720 + -765 * 1, -7540 + -1 * -7541], a = [4 * 1171 + -5781 + -1097 * -1, -6596 + -659 * -3 + 4619, 0, 1 * 593 + -8287 + 7694, -8816 + 1227 * -3 + -1 * -12498, 1 * 1973 + 7151 + -3 * 3041, -7 * 839 + 3806 + 2068, 1], o = s[-30 * 293 + -1 * -6611 + 2179] + r * (s[s[i(433) + "h"] - (-4951 * -1 + 3 * 1156 + 23 * -366)] - s[15 * -641 + -2243 * 3 + -2043 * -8]), l = a[-2377 + -2377 * -1] + e * (a[a.length - (7583 + -6530 * -1 + -14 * 1008)] - a[-3672 + -1322 * -5 + -2938]);
39724
+ oA(3, 704 + 752 * 5 + -4461, s, a, n, o, l, t);
39735
39725
  }, oA = (r, e, t, n, i, s, a, o) => {
39736
- const l = wt, c = (m, g, v) => {
39737
- const y = wt, S = v.length - m - (1 * 3253 + 6696 + -9948);
39738
- if (g >= v[S]) return S - 1;
39726
+ const l = Pt, c = (m, g, v) => {
39727
+ const y = Pt, S = v.length - m - 1;
39728
+ if (g >= v[S]) return S - (2519 + 319 * 19 + 23 * -373);
39739
39729
  if (g <= v[m]) return m;
39740
- let M = m, E = S, b = Math.floor((M + E) / (3529 + 577 * 8 + -8143));
39741
- for (; g < v[b] || g >= v[b + (1357 * 3 + -8592 * -1 + 1 * -12662)]; )
39742
- g < v[b] ? E = b : M = b, b = Math[y(291)]((M + E) / (1 * 8389 + -7507 + -880));
39730
+ let M = m, E = S, b = Math[y(464)]((M + E) / (6826 + -2 * 3412));
39731
+ for (; g < v[b] || g >= v[b + (-1 * 607 + -8417 + -9025 * -1)]; )
39732
+ g < v[b] ? E = b : M = b, b = Math.floor((M + E) / 2);
39743
39733
  return b;
39744
39734
  }, h = (m, g, v, y) => {
39745
39735
  const S = [1], M = [], E = [];
39746
- for (let b = 1; b <= v; b++) {
39747
- M[b] = g - y[m + (1891 + 7595 * 1 + 1897 * -5) - b], E[b] = y[m + b] - g;
39748
- let A = -1 * 5203 + 8716 + -3513;
39749
- for (let w = 4677 * 1 + 1050 * -1 + 3 * -1209; w < b; w++) {
39736
+ for (let b = 1687 + 562 * -3; b <= v; b++) {
39737
+ M[b] = g - y[m + (9446 * 1 + 1027 + -10472) - b], E[b] = y[m + b] - g;
39738
+ let A = 11 * 397 + 7811 + -12178;
39739
+ for (let w = 7526 + 3763 * -2; w < b; w++) {
39750
39740
  const C = S[w] / (E[w + 1] + M[b - w]);
39751
- S[w] = A + E[w + (346 * -7 + -6 * -1511 + -6643)] * C, A = M[b - w] * C;
39741
+ S[w] = A + E[w + 1] * C, A = M[b - w] * C;
39752
39742
  }
39753
39743
  S[b] = A;
39754
39744
  }
39755
39745
  return S;
39756
39746
  }, f = c(r, s, t), u = c(e, a, n), d = h(f, s, r, t), p = h(u, a, e, n), _ = [];
39757
- for (let m = 557 * -3 + 177 + -1494 * -1; m <= e; m++) {
39758
- _[m] = new it.Vector4(1456 + -1 * -1933 + -3389, 0, -563 * -7 + 49 + -3990, 0);
39759
- for (let g = 0; g <= r; g++) {
39760
- const v = i[u - e + m][f - r + g][l(318)](), y = v.w;
39761
- v[l(353) + l(218) + "alar"](y), _[m][l(279)](v.multiplyScalar(d[g]));
39747
+ for (let m = 8631 + -1 * -4873 + -13504; m <= e; m++) {
39748
+ _[m] = new it.Vector4(-9189 * 1 + -1410 + 10599, 2 * 2757 + -4683 + -277 * 3, -1134 + -1 * 4339 + 5473, 7397 + -746 * -1 + -1 * 8143);
39749
+ for (let g = -746 * 1 + -6643 + -7389 * -1; g <= r; g++) {
39750
+ const v = i[u - e + m][f - r + g].clone(), y = v.w;
39751
+ v["multi" + l(322) + l(405)](y), _[m].add(v["multiplySc" + l(405)](d[g]));
39762
39752
  }
39763
39753
  }
39764
- const x = new it.Vector4(10620 + 30 * -354, -8889 + 3 * 2171 + 2376, 10806 + 1 * -10806, 0);
39765
- for (let m = 2707 * -2 + 6761 + -1347; m <= e; m++) x[l(279)](_[m]["multi" + l(218) + "alar"](p[m]));
39766
- x["divid" + l(284) + "ar"](x.w), o.set(x.x, x.y, x.z);
39754
+ const x = new it[l(416) + "r4"](-6986 + 3079 * -2 + 3286 * 4, 5161 + 13 * -397, 0, 1 * 6663 + -940 + -1 * 5723);
39755
+ for (let m = -1 * -8926 + -9734 + -404 * -2; m <= e; m++) x.add(_[m].multiplyScalar(p[m]));
39756
+ x["divid" + l(311) + "ar"](x.w), o.set(x.x, x.y, x.z);
39767
39757
  }, Ku = (r, e = 20) => {
39768
- const t = wt, n = new tA((i, s, a) => aA(i, s, a, r), e, e);
39769
- return new yt(n, new it["MeshB" + t(301) + t(352) + "al"]({ side: it["Doubl" + t(191)], transparent: !0 }));
39758
+ const t = Pt, n = new tA((i, s, a) => aA(i, s, a, r), e, e);
39759
+ return new bt(n, new it["MeshBasicM" + t(378) + "al"]({ side: it["Doubl" + t(326)], transparent: !0 }));
39770
39760
  }, $o = (r) => {
39771
- const e = wt, t = new Float32Array([r[1370 + 411 * 23 + -1 * 10823], r[1481 * -3 + -4074 + 8518], 1 * 9689 + 1 * -6170 + -3519, r[1720 + -2 * 859], r[-5142 + -1715 * -3], -775 * -2 + -3577 + 2027, r[7185 + -6329 * -1 + 965 * -14], r[-15 * 534 + 3527 + 4488], -5478 + 5 * -607 + 8513, r[4324 + 1 * 1013 + -5331 * 1], r[-672 * 5 + 1 * -855 + 4222], -3040 + -1 * -6109 + -3069]), n = new it["BufferGeom" + e(243)]();
39772
- return n["setAt" + e(376) + "te"](e(186) + "ion", new it[e(266) + e(244) + "ibute"](t, -5471 + 1 * 5474)), n.setAttribute("uv", new it[e(266) + "rAttribute"](new Float32Array([0, 0, 6285 * 1 + 2477 + -8761, 4967 + -9 * 1017 + 7 * 598, 658 + 3401 * 1 + -2029 * 2, -3727 + 1864 * 2, 898 + 449 * -2, -681 + -682 * -1]), 2)), n[e(250) + "dex"]([3041 * 3 + -8469 * 1 + -327 * 2, -2 * 979 + 5709 + -1 * 3750, -9204 + -9939 * -1 + -733, 290 * -2 + -9074 + 9654, -1 * -4475 + -2 * -1536 + -7545, 5277 + -1 * -6031 + 2261 * -5]), n[e(177) + e(292) + "texNormals"](), new yt(n, new it.MeshBasicMaterial({ side: it["Doubl" + e(191)], transparent: !0 }));
39761
+ const e = Pt, t = new Float32Array([r[0], r[145 + 9785 * 1 + -1 * 9929], 5 * -1909 + -8761 + -1 * -18306, r[-2158 + -2149 * -1 + 11], r[3], 351 + 351 * -1, r[18528 + 4 * -4631], r[-3058 + 2 * 4727 + 1 * -6391], 0, r[4574 * -1 + 6395 * 1 + -1815], r[7], -2753 + 2753 * 1]), n = new it["BufferGeom" + e(267)]();
39762
+ return n[e(408) + e(483) + "te"]("position", new it[e(325) + e(268) + "ibute"](t, 12927 + 4308 * -3)), n.setAttribute("uv", new it.BufferAttribute(new Float32Array([0, -5590 + 8749 * -1 + 1 * 14339, 1, 0, -4362 + -4363 * -1, 1, 8586 + 4147 * 1 + -12733, -5720 + -1 * 9985 + 15706 * 1]), -4194 + 10 * -752 + -11716 * -1)), n.setIndex([-7998 + -2672 * 1 + 10670, 1, -11551 + 3851 * 3, 6149 + -2 * -1668 + -9485, 6837 * 1 + -6 * 514 + -3751, 3]), n["compu" + e(351) + e(388) + e(285)](), new bt(n, new it[e(313) + "asicM" + e(378) + "al"]({ side: it["Doubl" + e(326)], transparent: !0 }));
39773
39763
  }, cA = (r) => {
39774
- if (r.length !== 2438 + 8 * -833 + -303 * -14) return !1;
39775
- let e = 1 / 0, t = -1 / 0, n = 1 / 0, i = -1 / 0;
39776
- r.forEach((o) => {
39777
- const l = wt;
39778
- e = Math.min(e, o.x), t = Math[l(315)](t, o.x), n = Math.min(n, o.y), i = Math.max(i, o.y);
39764
+ const e = Pt;
39765
+ if (r[e(433) + "h"] !== 16) return !1;
39766
+ let t = 1 / 0, n = -1 / 0, i = 1 / 0, s = -1 / 0;
39767
+ r[e(481) + "ch"]((l) => {
39768
+ const c = e;
39769
+ t = Math.min(t, l.x), n = Math.max(n, l.x), i = Math.min(i, l.y), s = Math[c(271)](s, l.y);
39779
39770
  });
39780
- const s = t - e, a = i - n;
39781
- if (s < -261 + 1 * 5323 + -2531 * 2 + 0.1 || a < 0 + 0.1) return !1;
39782
- for (let o = 3641 * -1 + -3131 + 3386 * 2; o < 4; o++)
39783
- for (let l = -337 + -337 * -1; l < -9031 * 1 + 623 * 1 + 8412; l++) {
39784
- const c = e + l / 3 * s, h = n + o / (-7343 + 6 * -1427 + 15908) * a, f = r[o * (-3010 + -1 * 4309 + -2441 * -3) + l];
39785
- if (Math.abs(f.x - c) > -216 + -2885 * 1 + -3102 * -1 || Math.abs(f.y - h) > -2118 * 3 + -9635 + 15990) return !1;
39771
+ const a = n - t, o = s - i;
39772
+ if (a < 1 * -7807 + -3413 + 11220 + 0.1 || o < 2442 + -2045 * -4 + -10622 + 0.1) return !1;
39773
+ for (let l = 1223 * 4 + -9810 + 2459 * 2; l < 9482 + 1354 * -7; l++)
39774
+ for (let c = 934 + 4594 * -1 + -3 * -1220; c < -1 * -2161 + -3113 + -956 * -1; c++) {
39775
+ const h = t + c / 3 * a, f = i + l / 3 * o, u = r[l * (-7880 + 12 * 657) + c];
39776
+ if (Math.abs(u.x - h) > 1 * 7621 + -2448 + 2586 * -2 || Math.abs(u.y - f) > -1 * 9823 + -180 + -1 * -10004) return !1;
39786
39777
  }
39787
39778
  return !0;
39788
39779
  }, lA = (r, e, t, n, i, s) => {
39789
- const a = wt, o = new Yi();
39780
+ const a = Pt, o = new Yi();
39790
39781
  let l = 1 / 0, c = -1 / 0, h = 1 / 0, f = -1 / 0;
39791
39782
  r.forEach((g) => {
39792
- const v = wt;
39793
- l = Math.min(l, g.x), c = Math.max(c, g.x), h = Math.min(h, g.y), f = Math[v(315)](f, g.y);
39783
+ const v = Pt;
39784
+ l = Math[v(261)](l, g.x), c = Math[v(271)](c, g.x), h = Math.min(h, g.y), f = Math.max(f, g.y);
39794
39785
  });
39795
- const u = c - l || 1, d = f - h || -5281 + -4423 * -1 + 859, p = Yu(e), _ = n.length - (-1 * -507 + 3502 + -4008), x = t.length - (8096 + -1 * 8095), m = x * (-1444 + 1447 * 1) + (-3633 + -1293 * -5 + -2831);
39796
- for (let g = 15 + -1 * 3686 + 3671 * 1; g < _; g++)
39797
- for (let v = 1784 + 2 * -1786 + -1 * -1788; v < x; v++) {
39786
+ const u = c - l || 1, d = f - h || -8 * -613 + -650 + -1 * 4253, p = Yu(e), _ = n[a(433) + "h"] - (1 * 2557 + 2 * -3068 + 5 * 716), x = t.length - (-4 * -2364 + -4207 + -1312 * 4), m = x * (-465 * 21 + -7904 + 17672) + (651 * -11 + 4784 + 2378);
39787
+ for (let g = 1 * 6381 + 9930 + -16311; g < _; g++)
39788
+ for (let v = 0; v < x; v++) {
39798
39789
  const y = [];
39799
- for (let F = -1 * 1888 + 1 * -6701 + 8589; F < -7585 + -589 * 1 + -4089 * -2; F++)
39800
- for (let k = 8416 + -1 * -1042 + 2 * -4729; k < 13 * -371 + -6903 + 2346 * 5; k++) y.push(r[(g * (2 * -1991 + -344 * -8 + 1233) + F) * m + (v * (-1005 + -2 * -504) + k)]);
39801
- if (y[a(277) + a(212)](void 0)) continue;
39790
+ for (let F = 8800 + -880 * 10; F < -5490 + 5494 * 1; F++)
39791
+ for (let k = 12463 + -1 * 12463; k < 1 * -9601 + -2 * -890 + 7825; k++) y[a(296)](r[(g * (1943 + -1 * -8005 + -1 * 9945) + F) * m + (v * (-523 * -9 + 393 + -5097) + k)]);
39792
+ if (y["inclu" + a(429)](void 0)) continue;
39802
39793
  const S = y.map((F) => {
39803
- const k = a, L = (F.x - l) / u, O = (F.y - h) / d, V = Zu(L, O, p);
39804
- return new it[k(310) + "r4"](V.x, V.y, 1709 * 1 + -163 + -1546, 5 * 433 + 2089 * -1 + -75);
39805
- }), M = Ku([[S[0], S[-13 * 328 + 3 * -977 + 7196], S[-2998 + 5629 * -1 + 8629], S[-8332 + -1948 * 1 + -10283 * -1]], [S[4], S[5], S[8387 + -6 * -1663 + 11 * -1669], S[-389 * 2 + -2100 + 577 * 5]], [S[8], S[3263 + -1 * -3931 + -7185], S[10], S[11]], [S[-3132 + -2531 * 2 + -22 * -373], S[5644 + -323 * -9 + -8538], S[14], S[5074 + -1453 * 1 + -3606]]], -9533 * -1 + 4438 + -13951 * 1), E = t[v] / i, b = t[v + (-7897 + -1 * 4509 + 12407)] / i, A = n[g] / s, w = n[g + (1748 + -1747 * 1)] / s, C = M.geometry[a(287) + "tribute"]("uv"), I = new Float32Array(C.count * (8 * 1097 + -2 * -3432 + 1 * -15638));
39806
- for (let F = 0; F < C.count; F++)
39807
- I[F * 2] = E + C[a(377)](F) * (b - E), I[F * (5796 + -2 * 2897) + 1] = A + C[a(198)](F) * (w - A);
39808
- M.geometry["setAt" + a(376) + "te"]("uv", new it[a(266) + "rAttribute"](I, -7696 + 2566 * 3)), o.add(M);
39794
+ const k = (F.x - l) / u, L = (F.y - h) / d, O = Zu(k, L, p);
39795
+ return new it.Vector4(O.x, O.y, -8917 + 1 * -9511 + -34 * -542, 2105 + 2 * -1052);
39796
+ }), M = Ku([[S[-3403 + 3403 * 1], S[1], S[5313 + -1 * 5516 + 205], S[5 * -1210 + -2145 + 8198]], [S[4], S[7122 + -647 * 11], S[6], S[3113 + -3106 * 1]], [S[-3034 + -1 * -953 + -1 * -2089], S[7 * -707 + 4379 + 579], S[1011 * -7 + 1 * 3979 + 3108], S[6084 + -1 * -5821 + -11894]], [S[-7122 * 1 + 6081 + 1053], S[-7458 + -1 * -7471], S[417 + 1 * -403], S[-4427 + -1 * 7177 + 3873 * 3]]], 8884 + -4286 * 1 + -4578), E = t[v] / i, b = t[v + (1 * -1555 + -1 * 8475 + 10031)] / i, A = n[g] / s, w = n[g + 1] / s, C = M.geometry[a(302) + "tribute"]("uv"), I = new Float32Array(C.count * (3009 * 1 + 342 + -3349));
39797
+ for (let F = 1 * 662 + 497 * -4 + 1326; F < C.count; F++)
39798
+ I[F * (-1 * -3137 + -26 * -268 + -10103)] = E + C.getX(F) * (b - E), I[F * (7986 * 1 + 5676 + -6830 * 2) + (-3 * 1526 + 6833 + -2254)] = A + C.getY(F) * (w - A);
39799
+ M[a(355) + "try"]["setAt" + a(483) + "te"]("uv", new it["BufferAttr" + a(352)](I, -1 * 7687 + -1033 + 8722)), o.add(M);
39809
39800
  }
39810
39801
  return o;
39811
39802
  }, hA = (r, e, t, n) => {
39812
- const i = wt, s = r?.[i(276) + "r"]?.["puppetShapeList"]?.[-1 * 1459 + 8400 + -631 * 11] ?? r?.["puppetShap" + i(261)]?.[-3 * -1030 + 700 + 758 * -5];
39803
+ const i = Pt, s = r?.["filter"]?.["puppetShapeList"]?.[-5484 + 3 * 1828] ?? r?.[i(449) + "tShap" + i(396)]?.[0];
39813
39804
  if (!s) return null;
39814
- const { originalVertexArray: a, deformedVertexArray: o, indexArray: l } = s, c = Yu(e), h = new it.Matrix3()[i(216)](c).invert(), f = [], u = [];
39815
- for (let p = 0; p < o.length; p++) {
39805
+ const { originalVertexArray: a, deformedVertexArray: o, indexArray: l } = s, c = Yu(e), h = new it[i(395) + "x3"]()[i(458)](c)[i(300) + "t"](), f = [], u = [];
39806
+ for (let p = -3005 * -2 + 756 + -6766; p < o.length; p++) {
39816
39807
  const _ = a[p], x = Zu(_.x, _.y, h);
39817
- u.push(x.x, x.y);
39808
+ u[i(296)](x.x, x.y);
39818
39809
  const m = o[p];
39819
- f[i(297)](m.x, m.y, 1 * 6039 + 489 * -1 + -5550);
39810
+ f[i(296)](m.x, m.y, 2 * 3998 + -5819 + -2177);
39820
39811
  }
39821
- const d = new it.BufferGeometry();
39822
- return d[i(321) + i(376) + "te"]("posit" + i(343), new it["Buffe" + i(244) + "ibute"](new Float32Array(f), 563 * -5 + -3275 + 6093)), d.setAttribute("uv", new it["Buffe" + i(244) + i(227)](new Float32Array(u), -3140 + -1 * -4018 + -438 * 2)), d.setIndex(Array.from(l)), d[i(177) + "teVertexNo" + i(358)](), new yt(d, new it["MeshB" + i(301) + "aterial"]({ side: it.DoubleSide, transparent: !0 }));
39823
- }, uA = (r) => $o([r.left, r.top, r.left + r.width, r.top, r.left + r.width, r[bt(337)] + r.height, r.left, r.top + r.height]), Pd = (r, e = 40) => {
39824
- const t = bt, n = Math.sqrt(r.length);
39825
- if (Math.floor(n) !== n || n < 5175 + -6074 * 1 + 901) return null;
39812
+ const d = new it["Buffe" + i(320) + i(267)]();
39813
+ return d["setAt" + i(483) + "te"](i(314) + "ion", new it.BufferAttribute(new Float32Array(f), -6 * -1232 + -2579 * -2 + -12547)), d.setAttribute("uv", new it.BufferAttribute(new Float32Array(u), 1354 + 3498 * -2 + 5644)), d[i(455) + "dex"](Array.from(l)), d["computeVertexNo" + i(285)](), new bt(d, new it.MeshBasicMaterial({ side: it.DoubleSide, transparent: !0 }));
39814
+ }, uA = (r) => $o([r.left, r[mt(438)], r.left + r.width, r.top, r.left + r[mt(350)], r.top + r.height, r[mt(264)], r.top + r.height]), Pd = (r, e = 2 * 2047 + -6121 + -2067 * -1) => {
39815
+ const t = mt, n = Math.sqrt(r.length);
39816
+ if (Math.floor(n) !== n || n < -4898 * 1 + -1498 + 14 * 457) return null;
39826
39817
  const i = n, s = [];
39827
- for (let a = -954 + -954 * -1; a < i; a++)
39828
- s.push(r.slice(a * i, (a + 1) * i)[t(173)]((o) => new it[t(310) + "r4"](o.x, o.y, 8150 + -3 * 393 + -6971, -1496 + -3 * -499)));
39818
+ for (let a = 0; a < i; a++)
39819
+ s.push(r[t(281)](a * i, (a + (3157 + 4 * 1187 + -7904)) * i).map((o) => new it.Vector4(o.x, o.y, -9258 + -3086 * -3, -11 * -561 + 152 + -6322)));
39829
39820
  return Ku(s, e);
39830
- }, Jx = (r, e) => (r.partId ?? r.id) * 100 + e, fA = (r) => {
39831
- const e = bt, t = [];
39821
+ }, Jx = (r, e) => (r.partId ?? r.id) * (-2 * -4249 + -2020 + -6378) + e, fA = (r) => {
39822
+ const e = mt, t = [];
39832
39823
  for (const n of r)
39833
- if (n[e(293)] === bi.Group)
39834
- for (let i = 8223 + 1 * -1511 + 1 * -6712; i < (n.smartObjects ?? []).length; i++) {
39835
- const s = n[e(241) + "Objects"][i], a = s[e(219) + "s"], o = s.transform, l = o?.["length"] === 8 ? [new it.Vector4(o[2363 + -1 * -3243 + 2 * -2803], o[2778 * -2 + -5264 + 10821], -16536 + -24 * -689, 5431 * 1 + 4938 + -10368), new it.Vector4(o[4843 + -3056 * -3 + -14009 * 1], o[-464 + 1007 * 2 + -1547], 0, 4277 * 1 + 9102 + -13378), new it.Vector4(o[4], o[19 * 417 + 4982 + -12900], 815 * 11 + 5176 * 1 + -14141, -613 * 1 + -1718 * 4 + 7486), new it.Vector4(o[6], o[-688 * 13 + 1 * -5201 + -1769 * -8], 0, 1)] : null, c = s.size?.width ?? s[e(373) + "nalWidth"] ?? a.width, h = s.size?.["height"] ?? s["origi" + e(233) + "ight"] ?? a.height;
39836
- let f = null, u = "bounds-plane";
39837
- const d = s.puppet ?? s.filterList?.find((v) => v?.[e(276) + "r"]?.[e(234) + e(286) + "eList"]?.[e(268) + "h"]);
39824
+ if (n.type === bi.Group)
39825
+ for (let i = 0; i < (n.smartObjects ?? [])[e(433) + "h"]; i++) {
39826
+ const s = n[e(280) + e(359) + "ts"][i], a = s.bounds, o = s.transform, l = o?.["length"] === 5 * -1983 + -1731 + 11654 ? [new it.Vector4(o[-1 * 3451 + 2989 * -3 + -6209 * -2], o[-5 * -1565 + 2472 + -10296], 1686 + 1 * -1686, 1), new it[e(416) + "r4"](o[2], o[-20 * 444 + 9940 + -1057], 11 * -852 + -844 * 1 + 4 * 2554, -1 * -2906 + -550 + -2355), new it.Vector4(o[-4034 + 4038 * 1], o[3208 + 1 * -6722 + 3519], -6891 + 9134 * 1 + 1 * -2243, -389 * -1 + -2347 + 1959 * 1), new it.Vector4(o[-4260 + 711 * 6], o[317 * 2 + 2571 + -2 * 1599], -5927 * 1 + -8640 + 7 * 2081, 1 * -5759 + 520 + 5240)] : null, c = s.size?.width ?? s.originalWidth ?? a.width, h = s.size?.[e(369) + "t"] ?? s[e(386) + e(324) + "ight"] ?? a.height;
39827
+ let f = null, u = e(298) + "s-plane";
39828
+ const d = s.puppet ?? s.filterList?.[e(418)]((v) => v?.[e(401) + "r"]?.["puppe" + e(375) + e(396)]?.["length"]);
39838
39829
  if (d && l) f = hA(d, l), u = "puppet";
39839
39830
  else if (s.meshPoints?.["length"] && l) {
39840
- const v = s.meshPoints.map((y) => new it[e(310) + "r4"](y.x, y.y, 0, 1));
39841
- if (s.quiltSliceX && s["quilt" + e(249) + "Y"]) f = lA(v, l, s["quilt" + e(249) + "X"], s.quiltSliceY, c, h), u = e(319);
39831
+ const v = s[e(301) + "oints"].map((y) => new it.Vector4(y.x, y.y, 0, 1));
39832
+ if (s[e(347) + "SliceX"] && s.quiltSliceY) f = lA(v, l, s.quiltSliceX, s["quilt" + e(490) + "Y"], c, h), u = "quilt";
39842
39833
  else if (v.length === 16)
39843
- if (cA(v)) f = $o(o), u = "persp" + e(285) + "e-uniform-mesh";
39834
+ if (cA(v)) f = $o(o), u = "perspectiv" + e(400) + e(368) + "mesh";
39844
39835
  else {
39845
39836
  let y = 1 / 0, S = -1 / 0, M = 1 / 0, E = -1 / 0;
39846
- v[e(303) + "ch"]((I) => {
39837
+ v[e(481) + "ch"]((I) => {
39847
39838
  const F = e;
39848
- y = Math.min(y, I.x), S = Math.max(S, I.x), M = Math[F(178)](M, I.y), E = Math[F(315)](E, I.y);
39839
+ y = Math[F(261)](y, I.x), S = Math[F(271)](S, I.x), M = Math.min(M, I.y), E = Math.max(E, I.y);
39849
39840
  });
39850
39841
  const b = S - y, A = E - M, w = Yu(l), C = [];
39851
- for (let I = -165 + -751 * -5 + -3590; I < -9955 + 2959 * -1 + 12918; I++) {
39842
+ for (let I = 433 + 433 * -1; I < -7100 + -8363 * 1 + 1 * 15467; I++) {
39852
39843
  const F = [];
39853
- for (let k = -5945 + 7 * 455 + 690 * 4; k < 4; k++) {
39844
+ for (let k = 375 + 375 * -1; k < -8938 + 7320 * -1 + -1 * -16262; k++) {
39854
39845
  const L = v[I * 4 + k], O = Zu((L.x - y) / b, (L.y - M) / A, w);
39855
- F.push(new it[e(310) + "r4"](O.x, O.y, 0, -5728 + 853 * 3 + 3170));
39846
+ F.push(new it.Vector4(O.x, O.y, 1580 + 4 * -395, -3698 + -613 * 3 + 5538));
39856
39847
  }
39857
- C.push(F);
39848
+ C[e(296)](F);
39858
39849
  }
39859
- f = Ku(C), u = e(356) + e(355);
39850
+ f = Ku(C), u = e(297) + "ic-16";
39860
39851
  }
39861
39852
  else
39862
- f = Pd(v), u = f ? e(217) + "grid" : "perspective-aut" + e(368) + "-fallback", f || (f = $o(o));
39863
- } else if (s[e(359) + e(327)]?.["length"]) {
39864
- const v = s.meshPoints.map((y) => new it.Vector4(y.x, y.y, 0, 1));
39865
- f = Pd(v), u = f ? "direct-mesh-grid" : "bounds-plane";
39866
- } else l && (f = $o(o), u = "perspective");
39853
+ f = Pd(v), u = f ? "mesh-grid" : "persp" + e(331) + "e-aut" + e(334) + "-fall" + e(453), f || (f = $o(o));
39854
+ } else if (s.meshPoints?.[e(433) + "h"]) {
39855
+ const v = s.meshPoints.map((y) => new it[e(416) + "r4"](y.x, y.y, 0, 1));
39856
+ f = Pd(v), u = f ? e(339) + "t-mesh-grid" : "bounds-plane";
39857
+ } else l && (f = $o(o), u = "persp" + e(331) + "e");
39867
39858
  f || (f = uA(a));
39868
- const p = a[e(367)] + a.width / (-2113 * -4 + -4487 * -1 + 761 * -17), _ = a[e(337)] + a.height / (-997 * 6 + -5212 + 11196), x = new it.PerspectiveCamera(1 * 3084 + -347 * 10 + 476, a.width / a.height, 1050 + -6761 * 1 + 5712, -8978 + 482 * 29);
39869
- x.position[e(350)](p, _, -a.height * ((-12280 + 614 * 20 + 0.5) / Math.tan(Math.PI / (1399 + -3 * -2065 + -7414) * (-9909 + -1 * 3241 + 13195)))), x.up.set(10157 + -7 * 1451, -1, 6 * 857 + 5 * -1906 + 4388), x.lookAt(p, _, 4785 + 19 * -481 + 4354), x[e(323) + "eProjectio" + e(197) + "ix"]();
39870
- const m = new it[e(304)]();
39871
- m.add(new it.AmbientLight(3402134 + -13375081 * -1, 302 * 33 + -2 * -1498 + -1 * 12961));
39872
- const g = new it["Direc" + e(320) + "lLight"](12627011 + -4 * -1037551, 2 + 0.5);
39873
- g[e(186) + "ion"][e(350)](0, -2 * -3664 + 9340 + 1 * -16668, -5e3)[e(236) + "lize"](), m.add(g), m.add(f), t.push({ sceneKey: Jx(n, i), scene: m, camera: x, meshKind: u });
39859
+ const p = a.left + a.width / 2, _ = a.top + a[e(369) + "t"] / (-12097 + 3 * 4033), x = new it["Persp" + e(331) + "eCamera"](90, a.width / a[e(369) + "t"], 13 * -314 + 3560 + 523 * 1, -3545 + -571 * -16 + 1 * -591);
39860
+ x.position[e(457)](p, _, -a.height * ((15841 + 511 * -31 + 0.5) / Math.tan(Math.PI / (-19779 + 19959 * 1) * (6 * -1661 + 4469 + 5542)))), x.up.set(12200 + 305 * -40, -1, 9373 * -1 + 1073 * -1 + 10446), x.lookAt(p, _, 0), x["updat" + e(293) + "ectionMatrix"]();
39861
+ const m = new it[e(425)]();
39862
+ m.add(new it.AmbientLight(-25393941 + 1850179 * 4 + 34770440, 4067 * -2 + 801 * -7 + -1 * -13742));
39863
+ const g = new it["Direc" + e(398) + "lLight"](1723171 * 1 + 169 * 139867 + -8583479, 6176 + 1187 * 1 + 7361 * -1 + 0.5);
39864
+ g["posit" + e(436)].set(-7039 + -1 * -7039, -2 * -2631 + -422 * 5 + -3152, -5e3).normalize(), m.add(g), m.add(f), t.push({ sceneKey: Jx(n, i), scene: m, camera: x, meshKind: u });
39874
39865
  }
39875
39866
  return t;
39876
39867
  }, Bd = (r) => {
39877
- const e = bt;
39878
- return { normal: e(372) + "e-over", multiply: e(353) + e(228), screen: "screen", overlay: e(235) + "ay", darken: e(322) + "n", lighten: e(176) + "en", "color dodge": "color" + e(222) + "e", "color burn": "color-burn", "hard light": "hard-" + e(176), "soft light": "soft-" + e(176), difference: "difference", exclusion: e(382) + "sion", hue: "hue", saturation: e(305) + e(339), color: "color", luminosity: "luminosity", "linear burn": "plus-" + e(322) + "r", "linear dodge": "lighter", "pass through": "source-over" }[(r || "")[e(378)]().toLowerCase()] || "sourc" + e(196) + "r";
39868
+ const e = mt;
39869
+ return { normal: "source-over", multiply: "multi" + e(478), screen: "screen", overlay: "overlay", darken: "darken", lighten: "lighten", "color dodge": "color-dodge", "color burn": "color-burn", "hard light": "hard-light", "soft light": "soft-" + e(380), difference: e(316) + "rence", exclusion: e(491) + "sion", hue: "hue", saturation: "saturation", color: "color", luminosity: e(419) + "osity", "linear burn": "plus-" + e(392) + "r", "linear dodge": "lighter", "pass through": "source-over" }[(r || "")[e(390)]()[e(275) + "erCase"]()] || "sourc" + e(284) + "r";
39879
39870
  };
39880
39871
  let Lr = null, vs = null;
39881
39872
  const Eh = /* @__PURE__ */ new Map(), yn = /* @__PURE__ */ new Map();
39882
- let Fd = 0;
39883
- const Gc = -8173 * 1 + 7628 + 557, Ld = /* @__PURE__ */ new Map(), Ki = /* @__PURE__ */ new Map();
39884
- let Ah = 2 * 4916 + -1 * -7787 + -17619;
39885
- const Nd = -1613 * -5 + -2161 + -5808, Ud = /* @__PURE__ */ new WeakMap(), jx = (r) => {
39886
- const e = bt;
39887
- let t = 1110038 * 3170 + 3168027830 + 37187 * -121567;
39888
- for (let n = 0; n < r.length; n++)
39889
- t ^= r[e(363) + e(335)](n), t = Math.imul(t, -1369633 * 14 + 30013 * -623 + 54650580);
39890
- return (t >>> -9 * -304 + 1887 + -4623)["toStr" + e(334)](2 * -383 + -279 * -17 + -3941);
39873
+ function Pt(r, e) {
39874
+ return r = r - (-1 * -3621 + 7298 + -10658), Gc()[r];
39875
+ }
39876
+ let Fd = 1091 * 1 + 2253 * 3 + 785 * -10;
39877
+ const Vc = 3779 * 1 + 1186 * -2 + -1395, Ld = /* @__PURE__ */ new Map(), Ki = /* @__PURE__ */ new Map();
39878
+ let Ah = -6808 + 1702 * 4;
39879
+ const Nd = 96, Ud = /* @__PURE__ */ new WeakMap(), jx = (r) => {
39880
+ const e = mt;
39881
+ let t = -70739804 * -4 + 2151796842 + -268619797;
39882
+ for (let n = 7850 * -1 + 1319 * 4 + 2574; n < r[e(433) + "h"]; n++)
39883
+ t ^= r["charC" + e(413)](n), t = Math[e(440)](t, 16250979 + -1100729 * 14 + 15936846);
39884
+ return (t >>> -263 * -11 + -5052 + 2159)["toStr" + e(493)](-1 * -7694 + -3593 + 1 * -4065);
39891
39885
  }, Qx = (r) => {
39892
- const e = bt, t = r.filter((n) => n.type === bi.Group)[e(173)]((n) => ({ id: n.id, partId: n[e(381) + "d"], smartObjects: (n[e(241) + "Objects"] || []).map((i) => ({ transform: i[e(255) + e(385)], meshPoints: i[e(359) + e(327)], bounds: i.bounds, size: i.size, originalWidth: i.originalWidth, originalHeight: i[e(373) + "nalHeight"], quiltSliceX: i.quiltSliceX, quiltSliceY: i.quiltSliceY, filterList: i.filterList, puppet: i.puppet })) }));
39893
- return jx(JSON[e(194) + "gify"](t));
39886
+ const e = mt, t = r.filter((n) => n.type === bi.Group).map((n) => ({ id: n.id, partId: n.partId, smartObjects: (n[e(280) + "Objects"] || []).map((i) => ({ transform: i["trans" + e(286)], meshPoints: i[e(301) + e(291)], bounds: i.bounds, size: i[e(389)], originalWidth: i.originalWidth, originalHeight: i[e(386) + "nalHeight"], quiltSliceX: i[e(347) + "SliceX"], quiltSliceY: i.quiltSliceY, filterList: i.filterList, puppet: i[e(449) + "t"] })) }));
39887
+ return jx(JSON.stringify(t));
39894
39888
  }, dA = (r) => {
39895
- const e = bt;
39889
+ const e = mt;
39896
39890
  for (const t of r)
39897
- t.scene.traverse((n) => {
39898
- const i = wt;
39899
- if (!(n instanceof yt)) return;
39900
- n["geome" + i(232)]?.[i(208) + "se"]?.(), (Array.isArray(n["mater" + i(331)]) ? n.material : [n.material]).forEach((a) => a?.[i(208) + "se"]?.());
39901
- }), t.scene[e(271)]();
39891
+ t.scene["trave" + e(473)]((n) => {
39892
+ const i = e;
39893
+ if (!(n instanceof bt)) return;
39894
+ n["geome" + i(434)]?.["dispose"]?.(), (Array[i(376) + "ay"](n.material) ? n[i(445) + i(404)] : [n[i(445) + "ial"]]).forEach((a) => a?.[i(323) + "se"]?.());
39895
+ }), t[e(423)].clear();
39902
39896
  }, Ju = () => {
39903
- const r = bt;
39904
- if (yn[r(185)] <= Gc) return;
39905
- const e = [...yn.entries()].sort((t, n) => t[-425 * 1 + -811 * -7 + -5251]["lastU" + r(220)] - n[-7457 * -1 + -4 * 2095 + 924]["lastU" + r(220)]);
39906
- for (; yn[r(185)] > Gc && e.length; ) {
39897
+ const r = mt;
39898
+ if (yn[r(389)] <= Vc) return;
39899
+ const e = [...yn[r(494) + "es"]()].sort((t, n) => t[-11 * 333 + 3241 * 2 + -2818][r(343) + "sed"] - n[-17082 + 1 * 17083].lastUsed);
39900
+ for (; yn.size > Vc && e.length; ) {
39907
39901
  const [t, n] = e.shift();
39908
39902
  dA(n.scenes), yn.delete(t);
39909
39903
  }
39910
39904
  }, pA = () => {
39911
- const r = bt;
39912
- if (Ki.size <= Nd) return;
39913
- const e = [...Ki.entries()].sort((t, n) => t[6603 * -1 + 8384 + -1780][r(388) + "sed"] - n[1][r(388) + "sed"]);
39914
- for (; Ki.size > Nd && e[r(268) + "h"]; ) {
39915
- const [t, n] = e[r(340)]();
39905
+ const r = mt;
39906
+ if (Ki[r(389)] <= Nd) return;
39907
+ const e = [...Ki.entries()].sort((t, n) => t[498 + -4120 * 1 + 3623].lastUsed - n[-5316 * -1 + 7421 + -12736]["lastU" + r(321)]);
39908
+ for (; Ki[r(389)] > Nd && e.length; ) {
39909
+ const [t, n] = e[r(330)]();
39916
39910
  try {
39917
- n[r(214) + "p"][r(189)]?.();
39911
+ n.bitmap[r(310)]?.();
39918
39912
  } catch {
39919
39913
  }
39920
- Ki[r(281) + "e"](t);
39914
+ Ki.delete(t);
39921
39915
  }
39922
39916
  }, em = (r) => {
39923
- const e = bt, t = Qx(r), n = yn[e(397)](t);
39917
+ const e = mt, t = Qx(r), n = yn[e(360)](t);
39924
39918
  if (n) return n.lastUsed = ++Fd, n.scenes;
39925
- const i = yn[e(185)], s = fA(r);
39926
- return yn[e(350)](t, { scenes: s, lastUsed: ++Fd }), yn.size > i && yn.size > Gc && Ju(), s;
39919
+ const i = yn.size, s = fA(r);
39920
+ return yn.set(t, { scenes: s, lastUsed: ++Fd }), yn.size > i && yn[e(389)] > Vc && Ju(), s;
39927
39921
  }, Od = async (r, e, t) => {
39928
- const n = bt, i = jh(r, t);
39922
+ const n = mt, i = jh(r, t);
39929
39923
  if (!i) return null;
39930
- const s = !i["start" + n(365)]("blob:") && !i.startsWith(n(394));
39924
+ const s = !i[n(266) + "sWith"]("blob:") && !i.startsWith("data:");
39931
39925
  if (s) {
39932
39926
  const o = Ld.get(i);
39933
39927
  if (o) return o;
39934
39928
  }
39935
39929
  const a = await Kd(i, e, t);
39936
- return s && Ld[n(350)](i, a), a;
39937
- }, xA = (r) => r.left + "," + r.top + "," + r.width + "," + r.height, kd = (r, e, t, n) => {
39938
- const i = bt, s = r[i(241) + i(200) + "t"]?.["bounds"];
39930
+ return s && Ld.set(i, a), a;
39931
+ }, xA = (r) => r.left + "," + r[mt(438)] + "," + r.width + "," + r[mt(369) + "t"], kd = (r, e, t, n) => {
39932
+ const i = mt, s = r.smartObject?.["bounds"];
39939
39933
  if (!s || !t) return "";
39940
- const a = r["scene" + i(349)] ?? r["partD" + i(306)].id, o = r[i(241) + i(200) + "t"] ? jx(JSON["strin" + i(379)]({ vectorMask: r.smartObject["vecto" + i(251)], mask: r.smartObject.mask, maskData: r[i(241) + "Object"].maskData })) : "";
39941
- return [n, a, e, xA(s), t, o][i(308)]("|");
39934
+ const a = r["scene" + i(427)] ?? r.partData.id, o = r.smartObject ? jx(JSON["strin" + i(474)]({ vectorMask: r[i(280) + "Object"].vectorMask, mask: r.smartObject[i(305)], maskData: r["smart" + i(359) + "t"].maskData })) : "";
39935
+ return [n, a, e, xA(s), t, o].join("|");
39942
39936
  }, mA = (r, e) => (vs || (vs = Vr(r, e)), vs.width = r, vs.height = e, vs), gA = (r) => {
39943
- const e = bt, t = typeof HTMLCanvasElement != "undef" + e(309) && r instanceof HTMLCanvasElement, n = typeof OffscreenCanvas < "u" && r instanceof OffscreenCanvas;
39937
+ const e = mt, t = typeof HTMLCanvasElement < "u" && r instanceof HTMLCanvasElement, n = typeof OffscreenCanvas != "undef" + e(358) && r instanceof OffscreenCanvas;
39944
39938
  return t || n;
39945
39939
  }, _A = (r, e) => {
39946
- const t = bt;
39947
- r[t(171) + "rse"]((n) => {
39948
- const i = t;
39949
- n instanceof yt && (n.material.map = e, n[i(346) + i(331)][i(207) + i(229) + "e"] = !0);
39940
+ r.traverse((t) => {
39941
+ const n = Pt;
39942
+ t instanceof it[n(338)] && (t["mater" + n(404)].map = e, t.material[n(303) + "Update"] = !0);
39950
39943
  });
39951
39944
  }, zd = (r) => {
39952
- const e = bt, t = gA(r) ? new it.CanvasTexture(r) : new it.Texture(r);
39953
- return t[e(207) + "Update"] = !0, t.flipY = !1, t[e(371) + e(369)] = it["SRGBC" + e(298) + "pace"], t[e(316)] = it[e(258) + "ToEdgeWrap" + e(247)], t.wrapT = it["ClampToEdgeWrap" + e(247)], t;
39945
+ const e = mt, t = gA(r) ? new it.CanvasTexture(r) : new it.Texture(r);
39946
+ return t.needsUpdate = !0, t.flipY = !1, t["color" + e(447)] = it[e(349) + e(383) + e(414)], t.wrapS = it["ClampToEdgeWrap" + e(318)], t[e(276)] = it["Clamp" + e(354) + e(487) + e(318)], t;
39954
39947
  };
39948
+ function Gc() {
39949
+ const r = ["s con", "ntVer", "oints", "Rende", "eProj", "model", " 渲染失败", "push", "bicub", "bound", "high", "inver", "meshP", "getAt", "needs", ", tas", "mask", "Epoch", " mode", "ks 缓存", "64zPLeqi", "close", "eScal", "ualit", "MeshB", "posit", "rts=", "diffe", ", ren", "ping", "ata", "rGeom", "sed", "plySc", "dispo", "nalHe", "Buffe", "eSide", "s 完成 ", "ren", "行加载完成", "shift", "ectiv", "cScre", "lComp", "o-fit", "sWith", "ks=", "ect", "Mesh", "direc", "hreeM", "clear", "ith", "lastU", "url", "layer", "lAlph", "quilt", "desig", "SRGBC", "width", "teVer", "ibute", "camer", "ToEdg", "geome", "color", " 图层 ", "ined", "Objec", "get", ") 变形缓", "build", "144ODlQxD", " type", "m 跳过变", "sCach", "d: ", "form-", "heigh", "numbe", "rExtr", "Name", "split", "eform", "tShap", "isArr", "now", "ateri", "psdJs", "light", "psdPa", "ewQua", "olorS", "192618iUeOrh", "map", "origi", "5251170rHHDZz", "texNo", "size", "trim", "round", "darke", "并跳过", " 绘制到主", "Matri", "eList", "ut=", "tiona", "Order", "e-uni", "filte", "创建完成 ", " task", "ial", "alar", "creen", "Defor", "setAt", "e-ato", " 智能对象", "child", "ansfo", "odeAt", "pace", "data:", "Vecto", "image", "find", "lumin", "命中 pa", "22IFVMEW", "19122PJWUEo", "scene", "partD", "Scene", "canva", "Key", "error", "des", "proto", "auto", "2266196umtICb", "lengt", "try", "ialLi", "ion", "Rect", "top", "WebGL", "imul", "882YMaHuD", "ructo", "pop", "tColo", "mater", "Path", "Space", "norma", "puppe", "test", "rSpac", ") 图片加", "back", "mage", "setIn", "bind", "set", "copy", "15630864iVSptg", "name", "sion", "has", "eleme", "floor", 'is")(', "ctor(", "group", "warn", "s 完成", "abs", "index", "drawI", "rse", "gify", " skip", "3VmNpQY", "Three", "ply", "ffer ", "globa", "forEa", "385783xAoIip", "tribu", "extra", "strin", "sourc", "eWrap", "ageSi", "311160BRPhkx", "Slice", "exclu", "he=", "ing", "entri", "min", "tion", "ensho", "left", "osite", "start", "etry", "rAttr", "Opera", "nts", "max", "resto", "endsW", "eName", "toLow", "wrapT", "blend", "maxIm", " -> ", "smart", "slice", "rtDat", "type", "e-ove", "rmals", "form", "Canva", "excep"];
39950
+ return Gc = function() {
39951
+ return r;
39952
+ }, Gc();
39953
+ }
39955
39954
  let no = { w: 0, h: 0 };
39956
- const vA = (r, e, t, n, i = 5064 + -5063 * 1) => {
39957
- const s = bt, a = Math.max(1, Math.round(e[s(325)] * i)), o = Math[s(315)](1, Math[s(357)](e.height * i)), l = mA(a, o);
39958
- !Lr && (Lr = new it["WebGL" + s(295) + s(231)]({ canvas: l, alpha: !0, preserveDrawingBuffer: !0 }), Lr[s(296) + "tColorSpace"] = it["SRGBColorS" + s(215)], no = { w: a, h: o }), (no.w !== a || no.h !== o) && (Lr.setSize(a, o, !1), Lr.setViewport(523 * -4 + 719 * -10 + -714 * -13, 3828 + 3999 * 1 + 2609 * -3, a, o), no = { w: a, h: o });
39959
- const c = n.find((_) => _["scene" + s(349)] === t);
39960
- if (!c) throw new Error("Three scene not foun" + s(267) + t);
39961
- let h = Eh.get(t);
39962
- const f = r[s(325)], u = r.height, d = h?.[s(237)];
39963
- return !!h && (d?.[s(325)] !== f || d?.["height"] !== u) ? (h?.dispose(), h = zd(r), Eh[s(350)](t, h)) : h ? (h[s(237)] = r, h[s(207) + s(229) + "e"] = !0) : (h = zd(r), Eh.set(t, h)), _A(c.scene, h), Lr.render(c[s(206)], c.camera), l;
39955
+ const vA = (r, e, t, n, i = -1933 * -3 + -1 * 2399 + -3399) => {
39956
+ const s = mt, a = Math[s(271)](-5124 + -9301 * 1 + -7213 * -2, Math[s(391)](e.width * i)), o = Math.max(-7604 + -13 * -585, Math[s(391)](e.height * i)), l = mA(a, o);
39957
+ !Lr && (Lr = new it[s(439) + s(292) + "rer"]({ canvas: l, alpha: !0, preserveDrawingBuffer: !0 }), Lr["outpu" + s(444) + s(451) + "e"] = it["SRGBC" + s(383) + "pace"], no = { w: a, h: o }), (no.w !== a || no.h !== o) && (Lr.setSize(a, o, !1), Lr.setViewport(0, -9683 + 1 * -2034 + 1 * 11717, a, o), no = { w: a, h: o });
39958
+ const c = n.find((_) => _.sceneKey === t);
39959
+ if (!c) throw new Error(s(477) + " scene not foun" + s(367) + t);
39960
+ let h = Eh[s(360)](t);
39961
+ const f = r.width, u = r[s(369) + "t"], d = h?.image;
39962
+ return !!h && (d?.[s(350)] !== f || d?.[s(369) + "t"] !== u) ? (h?.dispose(), h = zd(r), Eh.set(t, h)) : h ? (h[s(417)] = r, h.needsUpdate = !0) : (h = zd(r), Eh.set(t, h)), _A(c.scene, h), Lr.render(c[s(423)], c[s(353) + "a"]), l;
39964
39963
  };
39965
39964
  let io = null, wh = null, Ch = { w: 0, h: 0 };
39966
- const yA = (r, e) => ((!io || !wh || Ch.w !== r || Ch.h !== e) && (io = Vr(r, e), wh = Es(io), Ch = { w: r, h: e }), { canvas: io, ctx: wh }), Th = (r, e, t, n, i, s, a = 8222 + 1 * -8221) => {
39967
- const o = bt;
39965
+ const yA = (r, e) => ((!io || !wh || Ch.w !== r || Ch.h !== e) && (io = Vr(r, e), wh = Es(io), Ch = { w: r, h: e }), { canvas: io, ctx: wh }), Th = (r, e, t, n, i, s, a = 34 * -267 + -6 * -807 + 4237) => {
39966
+ const o = mt;
39968
39967
  if (!n) {
39969
- r["drawI" + o(324)](e, t.left, t[o(337)], t[o(325)], t.height);
39968
+ r.drawImage(e, t.left, t.top, t.width, t.height);
39970
39969
  return;
39971
39970
  }
39972
39971
  const l = Hd(Gd(n));
39973
39972
  if (!l) {
39974
- r.drawImage(e, t.left, t.top, t.width, t[o(264) + "t"]);
39973
+ r.drawImage(e, t.left, t.top, t.width, t[o(369) + "t"]);
39975
39974
  return;
39976
39975
  }
39977
- const c = Math[o(315)](15 * 319 + 4258 + -9042, Math.round(i * a)), h = Math.max(-11951 + 1494 * 8, Math[o(357)](s * a)), { canvas: f, ctx: u } = yA(c, h);
39978
- u.setTransform(a, 0, 1 * -2803 + 403 * -2 + 3609, a, 7905 + -2 * -2861 + 1 * -13627, 845 * -4 + -3 * -315 + -2435 * -1), u.clearRect(3471 * 1 + -7 * 949 + 3172, 4110 + -1370 * 3, i, s), u["drawI" + o(324)](e, t[o(367)], t.top, t[o(325)], t[o(264) + "t"]), ro(u, l), r.drawImage(f, -5777 + -919 * 10 + 4989 * 3, 0, i, s);
39976
+ const c = Math.max(-5 * -1538 + 5811 + 375 * -36, Math.round(i * a)), h = Math[o(271)](999 + 1 * -998, Math.round(s * a)), { canvas: f, ctx: u } = yA(c, h);
39977
+ u.setTransform(a, -1172 + 1 * 1172, 0, a, 0, -1480 + -2 * -1124 + -768), u.clearRect(1136 + -2 * -820 + -2776, -4366 + -2 * -2062 + 242, i, s), u[o(472) + "mage"](e, t.left, t.top, t.width, t.height), ro(u, l), r["drawI" + o(454)](f, 314 + 1 * -1711 + 1 * 1397, 0, i, s);
39979
39978
  }, tm = (r) => {
39980
- const e = bt, t = {}, n = /* @__PURE__ */ new Map(), i = r.materialList || [];
39979
+ const e = mt, t = {}, n = /* @__PURE__ */ new Map(), i = r.materialList || [];
39981
39980
  for (const c of r.materialList || []) {
39982
- const h = c[e(372) + "eName"] || c[e(210) + "Name"];
39983
- h && (t[h] = { url: c.url }, n[e(350)](h, c.url)), c["layer" + e(181)] && c.layerName !== h && (t[c.layerName] || (t[c[e(210) + "Name"]] = { url: c[e(333)] }), n.set(c[e(210) + "Name"], c.url));
39981
+ const h = c[e(486) + "eName"] || c["layer" + e(372)];
39982
+ h && (t[h] = { url: c.url }, n.set(h, c[e(344)])), c["layer" + e(372)] && c[e(345) + "Name"] !== h && (t[c.layerName] || (t[c.layerName] = { url: c.url }), n[e(457)](c.layerName, c.url));
39984
39983
  }
39985
39984
  const s = /* @__PURE__ */ new Map();
39986
- for (const c of r[e(199) + "cScre" + e(201) + "tList"] || []) s.set(c.id, c);
39985
+ for (const c of r["fabri" + e(332) + e(263) + "tList"] || []) s.set(c.id, c);
39987
39986
  const a = (c, h) => {
39988
- const f = e, u = c[f(371)] || (c.name && ["粉", "白", "绿", "红", "蓝", "黄", "黑", "灰"][f(277) + "des"](c[f(211)]) ? c.name : h), d = r.selectedColor;
39987
+ const f = e, u = c[f(356)] || (c.name && ["粉", "白", "绿", "红", "蓝", "黄", "黑", "灰"]["inclu" + f(429)](c.name) ? c[f(460)] : h), d = r.selectedColor;
39989
39988
  if (!(d && u && u !== d)) {
39990
- if (c[f(293)] === f(374)) {
39991
- if (c.imagePath) {
39989
+ if (c[f(283)] === "Layer") {
39990
+ if (c[f(417) + "Path"]) {
39992
39991
  const p = i.find((_) => {
39993
- const x = f, m = _.sourceName || _.layerName;
39994
- return !m || !c.imagePath ? !1 : m === c["image" + x(253)] || m[x(290) + "ith"](c.imagePath) || c["image" + x(253)]["endsW" + x(345)](m);
39992
+ const x = f, m = _["sourc" + x(274)] || _["layer" + x(372)];
39993
+ return !m || !c[x(417) + "Path"] ? !1 : m === c.imagePath || m["endsW" + x(342)](c.imagePath) || c["image" + x(446)][x(273) + "ith"](m);
39995
39994
  });
39996
- p && (t[c[f(237) + "Path"]] = { url: p.url });
39995
+ p && (t[c[f(417) + f(446)]] = { url: p.url });
39997
39996
  }
39998
39997
  if (c.name) {
39999
39998
  if (u) {
40000
39999
  const p = u + "-" + c.name, _ = i.find((x) => {
40001
- const m = f, g = x["sourc" + m(317)] || x[m(210) + m(181)];
40002
- return g ? (g.split("/").pop() || g)[m(278) + "ce"](/\.(png|jpg|jpeg|gif|webp)$/i, "").startsWith(u + "-" + c.name) : !1;
40000
+ const m = f, g = x[m(486) + "eName"] || x[m(345) + "Name"];
40001
+ return g ? (g.split("/").pop() || g).replace(/\.(png|jpg|jpeg|gif|webp)$/i, "").startsWith(u + "-" + c[m(460)]) : !1;
40003
40002
  });
40004
40003
  _ && (t[p] = { url: _.url });
40005
40004
  }
40006
- if (c.imagePath) {
40007
- const p = c.imagePath.split("/").pop() || c.imagePath, _ = i.find((x) => {
40005
+ if (c[f(417) + "Path"]) {
40006
+ const p = c[f(417) + "Path"][f(373)]("/").pop() || c.imagePath, _ = i.find((x) => {
40008
40007
  const m = x.sourceName || x.layerName;
40009
40008
  return m ? (m.split("/").pop() || m) === p : !1;
40010
40009
  });
40011
- _ && (t[c.imagePath] = { url: _.url });
40010
+ _ && (t[c.imagePath] = { url: _[f(344)] });
40012
40011
  }
40013
40012
  }
40014
40013
  }
40015
- for (const p of c.children || [])
40014
+ for (const p of c["child" + f(328)] || [])
40016
40015
  p && a(p, u);
40017
40016
  }
40018
40017
  }, o = (c, h) => {
40019
40018
  const f = e, u = c.id ?? h;
40020
- if (c[f(293)] === f(246) && u != null && s[f(183)](u)) {
40021
- const d = s[f(397)](u), p = d.designImage ?? d.url;
40019
+ if (c.type === "Group" && u != null && s.has(u)) {
40020
+ const d = s[f(360)](u), p = d[f(348) + "nImage"] ?? d.url;
40022
40021
  for (const _ of c.children || [])
40023
- _?.["isSmartObject"] === !0 && _.name && (t[_.name] = { ...t[_[f(211)]] || {}, designImage: p, contentVersion: d[f(364) + "ntVersion"] ?? d.url });
40022
+ _?.["isSmartObj" + f(337)] === !0 && _.name && (t[_.name] = { ...t[_.name] || {}, designImage: p, contentVersion: d.contentVersion ?? d.url });
40024
40023
  }
40025
- for (const d of c[f(390) + f(275)] || [])
40024
+ for (const d of c[f(411) + "ren"] || [])
40026
40025
  d && o(d, u);
40027
40026
  };
40028
40027
  return ((c) => {
@@ -40030,105 +40029,105 @@ const yA = (r, e) => ((!io || !wh || Ch.w !== r || Ch.h !== e) && (io = Vr(r, e)
40030
40029
  h && a(h);
40031
40030
  for (const h of c || [])
40032
40031
  h && o(h);
40033
- })(r.psdJson["layer" + e(187)] || []), { layerExtrasByName: t, materialUrlBySourceName: n };
40032
+ })(r.psdJson.layerList || []), { layerExtrasByName: t, materialUrlBySourceName: n };
40034
40033
  }, bA = (r) => {
40035
- const e = bt, t = [];
40036
- return r.forEach((n, i) => {
40037
- const s = wt;
40038
- if (n.type === bi.Group) {
40039
- for (let a = 2 * 1108 + -914 * -4 + -5872; a < (n.smartObjects || []).length; a++) {
40040
- const o = n["smart" + s(200) + "ts"][a];
40041
- t.push({ index: i + a * (1567 * 3 + 5822 + 17 * -619 + 0.01), type: s(380), partData: n, smartObject: o, sceneKey: Jx(n, a) });
40034
+ const e = mt, t = [];
40035
+ return r[e(481) + "ch"]((n, i) => {
40036
+ const s = e;
40037
+ if (n[s(283)] === bi.Group) {
40038
+ for (let a = 1 * 2215 + 8660 + -10875; a < (n[s(280) + "Objects"] || []).length; a++) {
40039
+ const o = n["smart" + s(359) + "ts"][a];
40040
+ t[s(296)]({ index: i + a * (103 + 434 * 10 + -4443 + 0.01), type: "group", partData: n, smartObject: o, sceneKey: Jx(n, a) });
40042
40041
  }
40043
40042
  return;
40044
40043
  }
40045
- t[s(297)]({ index: i, type: "layer", partData: n });
40046
- }), t[e(311)]((n, i) => {
40047
- const s = e, a = n.type === "group" && n.smartObject?.[s(210) + "Order"] !== void 0 ? n.smartObject["layer" + s(387)] : n[s(274) + s(306)]["layer" + s(387)] ?? n.index, o = i.type === "group" && i[s(241) + "Object"]?.["layerOrder"] !== void 0 ? i.smartObject.layerOrder : i["partD" + s(306)]["layer" + s(387)] ?? i.index;
40044
+ t.push({ index: i, type: "layer", partData: n });
40045
+ }), t.sort((n, i) => {
40046
+ const s = e, a = n[s(283)] === "group" && n.smartObject?.["layer" + s(399)] !== void 0 ? n[s(280) + "Object"][s(345) + s(399)] : n.partData.layerOrder ?? n.index, o = i.type === "group" && i.smartObject?.["layer" + s(399)] !== void 0 ? i["smart" + s(359) + "t"][s(345) + s(399)] : i.partData[s(345) + s(399)] ?? i[s(471)];
40048
40047
  return a - o;
40049
40048
  });
40050
- }, MA = (r) => r.smartObject?.["bounds"] || r["partD" + bt(306)].bounds, nm = (r, e) => {
40051
- const t = bt, n = { psdJson: r, layerExtrasByName: e }, i = Vd([n], { parts: [], defaultIdStart: 1 }), s = i.models[-26 * -349 + -234 + 8 * -1105];
40052
- if (!s?.["psdPa" + t(347) + "a"]) throw new Error("无法解析 Three" + t(302) + "数据");
40049
+ }, MA = (r) => r.smartObject?.["bounds"] || r["partD" + mt(319)][mt(298) + "s"], nm = (r, e) => {
40050
+ const t = mt, n = { psdJson: r, layerExtrasByName: e }, i = Vd([n], { parts: [], defaultIdStart: 1 }), s = i.models[9849 + 1 * -5327 + -4522];
40051
+ if (!s?.[t(381) + t(282) + "a"]) throw new Error("无法解析 " + t(477) + " 渲染模型数据");
40053
40052
  return s;
40054
40053
  };
40055
40054
  async function SA(r) {
40056
- const e = bt, { layerExtrasByName: t } = tm(r), n = nm(r.psdJson, t), i = em(n[e(242) + "rtData"]);
40055
+ const e = mt, { layerExtrasByName: t } = tm(r), n = nm(r[e(379) + "on"], t), i = em(n.psdPartData);
40057
40056
  return Ju(), { sceneCount: i.length, cacheSize: yn.size };
40058
40057
  }
40059
40058
  let Rh = null;
40060
40059
  const EA = (r) => {
40061
- const e = bt, t = (r[e(346) + "ialList"] || []).map((s) => s.sourceName + ":" + s["layer" + e(181)] + ":" + s.url).join("|"), n = r.psdJson?.[e(210) + e(187)]?.["length"] ?? 8169 * -1 + -4625 + 6397 * 2, i = (r["fabricScre" + e(201) + "tList"] || [])[e(173)]((s) => s.id + ":" + s.name + ":" + (s["conte" + e(174) + e(375)] ?? s.url))[e(308)]("|");
40060
+ const e = mt, t = (r[e(445) + "ialList"] || []).map((s) => s.sourceName + ":" + s.layerName + ":" + s.url).join("|"), n = r.psdJson?.["layerList"]?.["length"] ?? 0, i = (r["fabri" + e(332) + "enshotList"] || []).map((s) => s.id + ":" + s.name + ":" + (s.contentVersion ?? s.url)).join("|");
40062
40061
  return t + "|L" + n + "|S" + i;
40063
40062
  };
40064
40063
  async function AA(r) {
40065
- const e = bt, t = rA(r), n = performance[e(360)]();
40066
- Ft(t, "Three 渲染开始 target=" + (r.width ?? "auto") + "x" + (r.height ?? "auto"));
40067
- const i = performance.now(), s = EA(r);
40064
+ const e = mt, t = rA(r), n = performance.now();
40065
+ Ft(t, "Three 渲染开始 target=" + (r.width ?? e(431)) + "x" + (r[e(369) + "t"] ?? "auto"));
40066
+ const i = performance[e(377)](), s = EA(r);
40068
40067
  let a, o;
40069
- Rh?.key === s ? ({ layerExtrasByName: a, materialUrlBySourceName: o } = Rh, Ft(t, "Three buildLayerExtr" + e(288) + "命中 extras=" + Object.keys(a)[e(268) + "h"], i)) : ({ layerExtrasByName: a, materialUrlBySourceName: o } = tm(r), Rh = { key: s, layerExtrasByName: a, materialUrlBySourceName: o }, Ft(t, "Three" + e(209) + "dLaye" + e(238) + "as 完成" + e(386) + e(257) + Object.keys(a).length, i));
40070
- const l = performance.now(), c = r.psdJson, h = Ud.get(c), f = h?.["extra" + e(192) + "eKey"] === s ? h.model : nm(r[e(348) + "on"], a), u = h?.["extrasCacheKey"] === s ? h.tasks : bA(f["psdPa" + e(347) + "a"]);
40071
- h?.["extra" + e(192) + "eKey"] !== s ? (Ud.set(c, { extrasCacheKey: s, model: f, tasks: u }), Ft(t, "Three" + e(175) + e(289) + "odel/" + e(280) + e(295) + "rTasks 完成 " + e(252) + "=" + f.psdPartData.length + ", tasks=" + u.length, l)) : Ft(t, e(392) + " mode" + e(341) + e(202) + e(336) + "rts=" + f.psdPartData[e(268) + "h"] + (e(193) + "ks=") + u.length, l);
40072
- const d = f[e(325)], p = f.height, _ = r[e(325)], x = r[e(264) + "t"], m = r.previewQuality === e(224) ? iA : 1, g = r.skipDeform === !0, v = Math.max(-9659 + -460 * -21, Math[e(357)](d * m)), y = Math[e(315)](4577 + -286 * 16, Math.round(p * m)), S = performance.now(), M = Vr(v, y), E = Es(M), b = Vr(v, y), A = Es(b), w = Vr(v, y), C = Es(w);
40073
- A.setTransform(m, 1 * 9054 + -4228 + -4826, -9233 + -1 * 2837 + 12070, m, 1126 + 1 * -1126, 0), C.setTransform(m, 0, 1 * -565 + -1 * 6234 + 1 * 6799, m, 2773 * 3 + 3021 + -11340, 685 * -5 + -392 + -3817 * -1), Ft(t, "Three canv" + e(248) + e(313) + "创建完成 " + e(372) + "e=" + d + "x" + p + (e(182) + e(263)) + v + "x" + y, S);
40074
- const I = performance[e(360)](), F = Qx(f[e(242) + "rtData"]), k = em(f["psdPa" + e(347) + "a"]);
40075
- Ft(t, e(392) + " scen" + e(270) + e(226) + e(204) + k[e(268) + "h"] + ", cache=" + yn.size, I);
40068
+ Rh?.key === s ? ({ layerExtrasByName: a, materialUrlBySourceName: o } = Rh, Ft(t, "Three buildLaye" + e(371) + "as 缓存命中 extras=" + Object.keys(a)[e(433) + "h"], i)) : ({ layerExtrasByName: a, materialUrlBySourceName: o } = tm(r), Rh = { key: s, layerExtrasByName: a, materialUrlBySourceName: o }, Ft(t, "Three buildLayerExtras 完成 extras=" + Object.keys(a).length, i));
40069
+ const l = performance[e(377)](), c = r.psdJson, h = Ud.get(c), f = h?.[e(484) + "sCacheKey"] === s ? h[e(294)] : nm(r.psdJson, a), u = h?.[e(484) + "sCacheKey"] === s ? h.tasks : bA(f.psdPartData);
40070
+ h?.["extra" + e(366) + "eKey"] !== s ? (Ud.set(c, { extrasCacheKey: s, model: f, tasks: u }), Ft(t, "Three getT" + e(340) + "odel/" + e(362) + "RenderTask" + e(327) + "parts=" + f["psdPa" + e(282) + "a"][e(433) + "h"] + ", tasks=" + u[e(433) + "h"], l)) : Ft(t, "Three" + e(307) + "l/tas" + e(308) + e(420) + e(315) + f.psdPartData.length + (e(304) + e(336)) + u[e(433) + "h"], l);
40071
+ const d = f.width, p = f[e(369) + "t"], _ = r[e(350)], x = r.height, m = r["previ" + e(382) + "lity"] === "quick" ? iA : -2027 * 1 + 2416 + -388, g = r.skipDeform === !0, v = Math.max(1, Math[e(391)](d * m)), y = Math.max(-6377 + -6 * -1063, Math.round(p * m)), S = performance[e(377)](), M = Vr(v, y), E = Es(M), b = Vr(v, y), A = Es(b), w = Vr(v, y), C = Es(w);
40072
+ A["setTr" + e(412) + "rm"](m, 10442 + 23 * -454, 1 * -8343 + 6772 + 1 * 1571, m, 0, -2861 * 3 + -5031 + 3 * 4538), C["setTr" + e(412) + "rm"](m, 6653 + -1 * 6653, 5078 + 2 * -2539, m, -2 * -1774 + 5727 + -9275, -8002 + 1 * 8002), Ft(t, "Three canvas bu" + e(479) + e(402) + "source=" + d + "x" + p + (e(317) + "der=") + v + "x" + y, S);
40073
+ const I = performance.now(), F = Qx(f[e(381) + e(282) + "a"]), k = em(f.psdPartData);
40074
+ Ft(t, e(477) + " scene 获取完成 scenes=" + k.length + (", cac" + e(492)) + yn.size, I);
40076
40075
  const L = (K) => {
40077
40076
  const Q = e;
40078
- if (K.url && a[K.url]) return a[K[Q(333)]];
40077
+ if (K.url && a[K.url]) return a[K.url];
40079
40078
  if (K.url) {
40080
- const re = K.url.split("/").pop() || K.url;
40079
+ const re = K.url.split("/")[Q(443)]() || K.url;
40081
40080
  if (a[re]) return a[re];
40082
- const P = (r.materialList || []).find((N) => {
40083
- const G = Q, W = N.sourceName || N[G(210) + G(181)];
40084
- return !W || !K.url ? !1 : (W.split("/").pop() || W) === re || W === K.url || W.endsWith(K.url) || K.url.endsWith(W);
40081
+ const P = (r[Q(445) + Q(435) + "st"] || []).find((N) => {
40082
+ const G = Q, W = N["sourc" + G(274)] || N[G(345) + G(372)];
40083
+ return !W || !K.url ? !1 : (W.split("/").pop() || W) === re || W === K.url || W[G(273) + "ith"](K.url) || K[G(344)].endsWith(W);
40085
40084
  });
40086
40085
  if (P) {
40087
- const N = P.sourceName || P.layerName;
40086
+ const N = P.sourceName || P[Q(345) + "Name"];
40088
40087
  if (N) return a[N] || { url: P.url };
40089
40088
  }
40090
40089
  }
40091
40090
  };
40092
- let O = !1, V = "normal";
40091
+ let O = !1, V = e(448) + "l";
40093
40092
  try {
40094
40093
  const K = /* @__PURE__ */ new Map(), Q = /* @__PURE__ */ new Map(), re = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Set(), N = [];
40095
- for (let $ = 3983 + 7 * -569; $ < u[e(268) + "h"]; $++) {
40094
+ for (let $ = 3 * -1967 + -4064 + 9965; $ < u.length; $++) {
40096
40095
  const se = u[$];
40097
- se.type === e(210) ? N[e(297)]((async () => {
40098
- const xe = e, me = L(se["partD" + xe(306)]), Ae = jh(me?.url, r[xe(384) + "rl"]);
40099
- if (!(!me?.[xe(333)] || !Ae))
40096
+ se.type === "layer" ? N.push((async () => {
40097
+ const pe = e, me = L(se["partD" + pe(319)]), Ae = jh(me?.url, r.baseUrl);
40098
+ if (!(!me?.url || !Ae))
40100
40099
  try {
40101
- const Te = await Od(Ae, r["maxIm" + xe(354) + "ze"], r.baseUrl);
40100
+ const Te = await Od(Ae, r["maxIm" + pe(488) + "ze"], r.baseUrl);
40102
40101
  if (!Te) return;
40103
- K[xe(350)]($, Te), Q[xe(350)]($, Ae);
40102
+ K.set($, Te), Q.set($, Ae);
40104
40103
  } catch {
40105
40104
  P.add($);
40106
40105
  }
40107
- })()) : se.smartObject && N[e(297)]((async () => {
40108
- const xe = e;
40109
- let me = a[se["smart" + xe(200) + "t"].name || ""] ?? L(se.partData);
40110
- if (!me && se["smart" + xe(200) + "t"][xe(237) + "Path"] && (me = a[se["smart" + xe(200) + "t"]["image" + xe(253)]], !me)) {
40111
- const Te = se.smartObject["image" + xe(253)][xe(239)]("/").pop() || se["smart" + xe(200) + "t"].imagePath;
40106
+ })()) : se.smartObject && N.push((async () => {
40107
+ const pe = e;
40108
+ let me = a[se["smart" + pe(359) + "t"][pe(460)] || ""] ?? L(se[pe(424) + "ata"]);
40109
+ if (!me && se.smartObject.imagePath && (me = a[se[pe(280) + pe(359) + "t"].imagePath], !me)) {
40110
+ const Te = se.smartObject.imagePath[pe(373)]("/").pop() || se.smartObject["image" + pe(446)];
40112
40111
  if (me = a[Te], !me) {
40113
- const j = (r[xe(346) + "ialList"] || []).find((le) => {
40114
- const ne = xe, _e = le[ne(372) + ne(317)] || le.layerName;
40115
- return !_e || !se[ne(241) + "Object"]?.[ne(237) + ne(253)] ? !1 : (_e[ne(239)]("/").pop() || _e) === Te || _e === se.smartObject[ne(237) + "Path"] || _e[ne(290) + ne(345)](se.smartObject[ne(237) + "Path"]) || se.smartObject.imagePath[ne(290) + ne(345)](_e);
40112
+ const j = (r["mater" + pe(435) + "st"] || []).find((le) => {
40113
+ const ne = pe, _e = le.sourceName || le["layer" + ne(372)];
40114
+ return !_e || !se.smartObject?.[ne(417) + "Path"] ? !1 : (_e.split("/")[ne(443)]() || _e) === Te || _e === se[ne(280) + "Object"].imagePath || _e[ne(273) + ne(342)](se["smart" + ne(359) + "t"]["image" + ne(446)]) || se["smart" + ne(359) + "t"][ne(417) + "Path"]["endsW" + ne(342)](_e);
40116
40115
  });
40117
- j && (me = { url: j.url });
40116
+ j && (me = { url: j[pe(344)] });
40118
40117
  }
40119
40118
  }
40120
40119
  let Ae = me?.["designImage"] ?? me?.url;
40121
40120
  if (Ae) {
40122
- typeof Ae == xe(194) + "g" && (/^(https?:)?\/\//i.test(Ae) || Ae[xe(314) + "sWith"]("data:") || Ae["start" + xe(365)]("blob:") || (Ae = o[xe(397)](Ae) ?? Ae));
40121
+ typeof Ae == pe(485) + "g" && (/^(https?:)?\/\//i.test(Ae) || Ae["start" + pe(335)](pe(415)) || Ae.startsWith("blob:") || (Ae = o[pe(360)](Ae) ?? Ae));
40123
40122
  try {
40124
- const Te = me?.["contentVersion"] ? String(me[xe(364) + "ntVersion"]) : typeof Ae == "string" ? jh(Ae, r.baseUrl) ?? Ae : me?.[xe(333)] ?? (se.sceneKey ?? se.partData.id) + (xe(203) + "ry"), j = kd(se, m, Te, F), le = j ? Ki[xe(397)](j) : void (-2225 + 17 * -291 + -1 * -7172);
40123
+ const Te = me?.["contentVersion"] ? String(me["conte" + pe(290) + pe(461)]) : typeof Ae == pe(485) + "g" ? jh(Ae, r.baseUrl) ?? Ae : me?.[pe(344)] ?? (se[pe(423) + "Key"] ?? se[pe(424) + "ata"].id) + ":memory", j = kd(se, m, Te, F), le = j ? Ki[pe(360)](j) : void 0;
40125
40124
  if (le) {
40126
- le.lastUsed = ++Ah, re.set($, le.bitmap), Q.set($, Te);
40125
+ le[pe(343) + pe(321)] = ++Ah, re.set($, le.bitmap), Q.set($, Te);
40127
40126
  return;
40128
40127
  }
40129
- const ne = typeof Ae == "string" ? await Od(Ae, r.maxImageSize, r.baseUrl) : Ae;
40128
+ const ne = typeof Ae == "string" ? await Od(Ae, r[pe(278) + pe(488) + "ze"], r.baseUrl) : Ae;
40130
40129
  if (!ne) return;
40131
- K.set($, ne), Q[xe(350)]($, Te);
40130
+ K.set($, ne), Q.set($, Te);
40132
40131
  } catch {
40133
40132
  P.add($);
40134
40133
  }
@@ -40136,31 +40135,31 @@ async function AA(r) {
40136
40135
  })());
40137
40136
  }
40138
40137
  const G = performance.now();
40139
- await Promise.all(N), Ft(t, "Three 纹理源并" + e(330) + " tasks=" + u.length, G);
40140
- for (let $ = -1 * 4783 + -9305 * -1 + -4522; $ < u.length; $++) {
40141
- const se = u[$], xe = performance[e(360)](), me = u[$ + 1], Ae = se["smart" + e(200) + "t"]?.["clipp" + e(334)] ?? se[e(274) + "ata"]["clipp" + e(334)] === !0, Te = me ? me.smartObject?.["clipp" + e(334)] ?? me.partData[e(300) + e(334)] === !0 : !1;
40138
+ await Promise.all(N), Ft(t, "Three 纹理源并" + e(329) + e(403) + "s=" + u.length, G);
40139
+ for (let $ = 7813 + 1 * 1313 + 9 * -1014; $ < u.length; $++) {
40140
+ const se = u[$], pe = performance.now(), me = u[$ + (-6850 + 403 * 17)], Ae = se.smartObject?.["clipp" + e(493)] ?? se[e(424) + e(319)].clipping === !0, Te = me ? me.smartObject?.["clipp" + e(493)] ?? me[e(424) + "ata"].clipping === !0 : !1;
40142
40141
  let j = null;
40143
- if (P.has($)) continue;
40144
- if (se.type === e(210)) j = K.get($) ?? null, Ft(t, "Three 图层 " + $ + "(" + (se.partData[e(211)] ?? se["partD" + e(306)].id) + (") 图片加" + e(273)), G);
40145
- else if (se[e(241) + "Object"]) {
40142
+ if (P[e(462)]($)) continue;
40143
+ if (se.type === "layer") j = K.get($) ?? null, Ft(t, "Three" + e(357) + $ + "(" + (se.partData[e(460)] ?? se.partData.id) + (e(452) + "载完成"), G);
40144
+ else if (se["smart" + e(359) + "t"]) {
40146
40145
  const Xe = re.get($);
40147
- if (Xe) j = Xe, Ft(t, "Three 智能对象 " + $ + "(" + (se[e(241) + "Object"].name || se[e(274) + "ata"].name) + ") 变形缓存预命中");
40146
+ if (Xe) j = Xe, Ft(t, e(477) + e(410) + " " + $ + "(" + (se.smartObject[e(460)] || se.partData.name) + (e(361) + "存预命中"));
40148
40147
  else {
40149
- const U = K[e(397)]($);
40148
+ const U = K.get($);
40150
40149
  if (!U) continue;
40151
- Ft(t, e(392) + " 智能对象 " + $ + "(" + (se["smart" + e(200) + "t"].name || se[e(274) + e(306)].name) + ") 纹理源完成", G);
40150
+ Ft(t, "Three 智能对象 " + $ + "(" + (se.smartObject.name || se.partData[e(460)]) + ") 纹理源完成", G);
40152
40151
  try {
40153
- if (g) j = U, Ft(t, "Three" + e(361) + " " + $ + " skipDeform 跳过变形");
40152
+ if (g) j = U, Ft(t, "Three 智能对象 " + $ + (e(475) + e(407) + e(365) + ""));
40154
40153
  else {
40155
- const Oe = kd(se, m, Q.get($) ?? "", F), we = Oe ? Ki[e(397)](Oe) : void (12 * 479 + -641 * 1 + -5107 * 1);
40156
- if (we) we.lastUsed = ++Ah, j = we[e(214) + "p"], Ft(t, "Three 智能对象 " + $ + " getDeformCanvas 缓存命中");
40154
+ const Oe = kd(se, m, Q.get($) ?? "", F), we = Oe ? Ki.get(Oe) : void 0;
40155
+ if (we) we["lastU" + e(321)] = ++Ah, j = we.bitmap, Ft(t, "Three 智能对象 " + $ + (" getDeform" + e(287) + "s 缓存命中"));
40157
40156
  else {
40158
- const Ge = performance[e(360)](), de = vA(U, se.smartObject.bounds, se[e(206) + e(349)] ?? se["partD" + e(306)].id, k, m), st = await createImageBitmap(de);
40159
- Oe && (Ki.set(Oe, { bitmap: st, lastUsed: ++Ah }), pA()), Ft(t, "Three 智能对象 " + $ + (" getDeform" + e(362) + e(393)), Ge), j = st;
40157
+ const Ge = performance.now(), de = vA(U, se[e(280) + "Object"].bounds, se.sceneKey ?? se[e(424) + "ata"].id, k, m), st = await createImageBitmap(de);
40158
+ Oe && (Ki.set(Oe, { bitmap: st, lastUsed: ++Ah }), pA()), Ft(t, e(477) + " 智能对象 " + $ + (" getD" + e(374) + e(287) + e(469)), Ge), j = st;
40160
40159
  }
40161
40160
  }
40162
40161
  } catch (Oe) {
40163
- Ft(t, e(392) + " 智能对象 " + $ + " 渲染失败并跳过", xe, Oe);
40162
+ Ft(t, e(477) + e(410) + " " + $ + (e(295) + e(393)), pe, Oe);
40164
40163
  continue;
40165
40164
  }
40166
40165
  }
@@ -40168,29 +40167,29 @@ async function AA(r) {
40168
40167
  if (!j) continue;
40169
40168
  const le = MA(se);
40170
40169
  if (!le) continue;
40171
- const ne = performance[e(360)](), _e = se[e(241) + "Object"]?.[e(205) + "ty"] ?? se[e(274) + "ata"].opacity ?? -3191 * 1 + -1 * -6673 + -3481, ve = Bd(se[e(241) + e(200) + "t"]?.["blendMode"] ?? se.partData["blend" + e(188)]);
40172
- !Ae && Te ? (O = !0, V = se.partData[e(294) + e(188)] || "normal", C[e(271) + "Rect"](-3 * 1852 + -1 * 7934 + 13490, -8 * 316 + -460 * -10 + -2072, d, p), C["globa" + e(283) + "ositeOperation"] = e(372) + "e-over", C[e(351) + e(190) + "a"] = _e, Th(C, j, le, se.type === e(380) ? se.smartObject : void 0, d, p, m), C["globa" + e(190) + "a"] = 362 * 5 + -7228 + -5419 * -1) : Ae ? (C["globalCompositeOpera" + e(370)] = "source-atop", C.globalAlpha = _e, Th(C, j, le, se.type === e(380) ? se.smartObject : void (4344 + 1 * 3041 + -7385), d, p, m), C.globalAlpha = -11 * -376 + 9367 + 2 * -6751, C["globalComposite" + e(269) + "tion"] = e(372) + "e-over") : (A[e(351) + "lCompositeOperation"] = ve, A.globalAlpha = _e, A.save(), Th(A, j, le, se.type === "group" ? se[e(241) + "Object"] : void (-8237 + 398 * 2 + 7441 * 1), d, p, m), A.restore(), A["globa" + e(190) + "a"] = -1 * 5618 + 735 + 4884, A["globalComp" + e(221) + "Operation"] = "sourc" + e(196) + "r"), O && !Te && (A[e(351) + "lComp" + e(221) + "Operation"] = Bd(V), A[e(184) + "mage"](w, -3 * -1357 + -6260 + 2189, 3205 * 1 + 1917 + -5122, d, p), A["globalComposite" + e(269) + "tion"] = "source-over", O = !1), Ft(t, e(392) + " 图层 " + $ + (" 合成完成" + e(172) + "=") + se.type + ", clipped=" + Ae, ne), Ft(t, "Three 图层 " + $ + " 总阶段完成", xe);
40170
+ const ne = performance[e(377)](), _e = se[e(280) + e(359) + "t"]?.["opacity"] ?? se.partData.opacity ?? 6063 + -1 * 6062, ve = Bd(se["smart" + e(359) + "t"]?.[e(277) + "Mode"] ?? se.partData.blendMode);
40171
+ !Ae && Te ? (O = !0, V = se["partD" + e(319)][e(277) + "Mode"] || "normal", C["clear" + e(437)](-7 * -1397 + -6245 + -3534, 0, d, p), C.globalCompositeOperation = e(486) + "e-over", C["globa" + e(346) + "a"] = _e, Th(C, j, le, se[e(283)] === e(467) ? se["smart" + e(359) + "t"] : void (-8986 + 3 * -322 + -2488 * -4), d, p, m), C.globalAlpha = 1) : Ae ? (C["globalComp" + e(265) + e(269) + "tion"] = e(486) + e(409) + "p", C.globalAlpha = _e, Th(C, j, le, se.type === "group" ? se["smart" + e(359) + "t"] : void (-1 * -1051 + -2707 + 1656), d, p, m), C["globa" + e(346) + "a"] = 2907 + -2906 * 1, C["globa" + e(333) + "ositeOperation"] = "sourc" + e(284) + "r") : (A["globalCompositeOpera" + e(262)] = ve, A[e(480) + "lAlpha"] = _e, A.save(), Th(A, j, le, se.type === "group" ? se.smartObject : void (-5830 + 2915 * 2), d, p, m), A[e(272) + "re"](), A[e(480) + "lAlpha"] = -11703 + -1463 * -8, A.globalCompositeOperation = "sourc" + e(284) + "r"), O && !Te && (A[e(480) + "lCompositeOperation"] = Bd(V), A[e(472) + "mage"](w, -449 * 9 + 2950 * -3 + -3 * -4297, 7860 + -15 * 524, d, p), A["globa" + e(333) + "ositeOperation"] = "source-over", O = !1), Ft(t, "Three 图层 " + $ + (" 合成完成" + e(364) + "=") + se[e(283)] + ", clipped=" + Ae, ne), Ft(t, "Three 图层 " + $ + " 总阶段完成", pe);
40173
40172
  }
40174
40173
  const W = performance.now();
40175
- E.setTransform(-7071 + -1 * -9297 + -1 * 2225, -7584 + 3792 * 2, 3484 + 1 * 5777 + -9261, -5209 + -2 * -2605, 0, 1213 + -1 * 1213), E[e(271) + e(395)](1182 + 1 * -1182, 7 * -1103 + 167 + 3 * 2518, v, y), E["drawI" + e(324)](b, 7726 * -1 + 2461 + 5265, -5781 * 1 + 4647 + 1134), Ft(t, e(392) + e(230) + "creen 绘制到主 canvas 完成", W);
40174
+ E.setTransform(-7950 + 7951 * 1, -6275 + 1 * 8905 + 526 * -5, -9911 + -1649 * -4 + 3315, 5939 * 1 + -7768 + 1830, 0, 723 + -5153 * -1 + -5876), E[e(341) + "Rect"](-9157 + 9257 * -1 + 18414, 2 * -3202 + 6086 + 318, v, y), E[e(472) + "mage"](b, 1978 + -1 * -9343 + -11321 * 1, -4207 * -1 + 2594 + -2267 * 3), Ft(t, "Three offs" + e(406) + e(394) + " canvas 完成", W);
40176
40175
  let te = M, H = v, ie = y;
40177
- if (_ !== void (12 * 643 + -3 * -3099 + -17013) || x !== void (9397 + 9397 * -1)) {
40178
- const $ = performance.now();
40179
- if (_ !== void (-1646 * 3 + -6883 + -11821 * -1) && x !== void (8175 * 1 + -8333 + 158)) H = _, ie = x;
40176
+ if (_ !== void (4600 + 6527 * 1 + 11127 * -1) || x !== void (-1 * -284 + -1459 * -1 + -1743)) {
40177
+ const $ = performance[e(377)]();
40178
+ if (_ !== void 0 && x !== void (-11397 + -11397 * -1)) H = _, ie = x;
40180
40179
  else if (_ !== void 0) {
40181
- const xe = _ / v;
40182
- H = _, ie = Math[e(357)](y * xe);
40183
- } else if (x !== void (1688 + -694 * 2 + -300)) {
40184
- const xe = x / y;
40185
- H = Math.round(v * xe), ie = x;
40180
+ const pe = _ / v;
40181
+ H = _, ie = Math.round(y * pe);
40182
+ } else if (x !== void (-4936 + 8 * -394 + 1348 * 6)) {
40183
+ const pe = x / y;
40184
+ H = Math[e(391)](v * pe), ie = x;
40186
40185
  }
40187
40186
  te = Vr(H, ie);
40188
40187
  const se = Es(te);
40189
- se["imageSmoothingE" + e(383) + "d"] = !0, se["image" + e(179) + e(344) + e(262) + "y"] = e(332), se.drawImage(M, 2 * -2213 + -409 * 11 + 8925, 83 + 327 * -9 + 10 * 286, v, y, 13 * -467 + -7979 + 14050, 0, H, ie), Ft(t, "Three 最终缩放完成 " + v + "x" + y + " -> " + H + "x" + ie, $);
40188
+ se[e(417) + "SmoothingEnabled"] = !0, se[e(417) + "SmoothingQ" + e(312) + "y"] = e(299), se["drawI" + e(454)](M, 5822 + 4 * -1658 + 810, 0, v, y, 0, 0, H, ie), Ft(t, "Three 最终缩放完成 " + v + "x" + y + e(279) + H + "x" + ie, $);
40190
40189
  }
40191
- return Ft(t, "Three 渲染完成" + e(396) + "ut=" + H + "x" + ie, n), { canvas: te, width: H, height: ie };
40190
+ return Ft(t, "Three 渲染完成 outp" + e(397) + H + "x" + ie, n), { canvas: te, width: H, height: ie };
40192
40191
  } finally {
40193
- yn.size > Gc && Ju();
40192
+ yn.size > Vc && Ju();
40194
40193
  }
40195
40194
  }
40196
40195
  const Kr = (r) => {
@@ -40205,7 +40204,7 @@ const Kr = (r) => {
40205
40204
  const i = performance.now();
40206
40205
  t = await AA(r), pn(e, "Worker renderByJsonWithThree 完成", i);
40207
40206
  } catch {
40208
- performance.now(), t = await o_(r);
40207
+ performance.now(), t = await o1(r);
40209
40208
  }
40210
40209
  const n = t.canvas;
40211
40210
  return n ? (pn(e, `Worker renderToCanvas 完成 canvas=${n.width}x${n.height}`), n) : null;