shop-components 0.0.16 → 0.0.18
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.
- package/dist/device-viewer/index.d.ts +2 -0
- package/dist/device-viewer/lines.d.ts +1 -0
- package/dist/device-viewer/scene.d.ts +1 -0
- package/dist/plugin.d.ts +5 -0
- package/dist/plugins/change-slot/index.d.ts +0 -0
- package/dist/shop-components.mjs +568 -560
- package/dist/shop-components.umd.js +53 -53
- package/package.json +1 -1
package/dist/shop-components.mjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2010-2023 Three.js Authors
|
|
4
4
|
* SPDX-License-Identifier: MIT
|
|
5
5
|
*/
|
|
6
|
-
const Mf = "159", Kr = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, Or = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, GL = 0, Tm = 1, PL = 2, lb = 1, EL = 2, Bn = 3, Bi = 0, fi = 1, Li = 2, wi = 0, mr = 1,
|
|
6
|
+
const Mf = "159", Kr = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, Or = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, GL = 0, Tm = 1, PL = 2, lb = 1, EL = 2, Bn = 3, Bi = 0, fi = 1, Li = 2, wi = 0, mr = 1, $d = 2, Mm = 3, Im = 4, hb = 5, hr = 100, AL = 101, RL = 102, wm = 103, _m = 104, KL = 200, OL = 201, qL = 202, XL = 203, ep = 204, tp = 205, zL = 206, WL = 207, NL = 208, kL = 209, HL = 210, ZL = 211, YL = 212, DL = 213, jL = 214, FL = 0, BL = 1, JL = 2, lc = 3, VL = 4, UL = 5, QL = 6, $L = 7, cb = 0, e1 = 1, t1 = 2, En = 0, ub = 1, db = 2, pb = 3, If = 4, i1 = 5, Gm = "attached", n1 = "detached", fb = 300, Za = 301, Ya = 302, hc = 303, ip = 304, kc = 306, ki = 1e3, Nt = 1001, cc = 1002, pt = 1003, np = 1004, Fh = 1005, lt = 1006, mb = 1007, Xs = 1008, on = 1009, sp = 1010, gb = 1011, Hc = 1012, Bo = 1013, Ri = 1014, Mt = 1015, vt = 1016, yb = 1017, vb = 1018, gr = 1020, s1 = 1021, St = 1023, r1 = 1024, a1 = 1025, yr = 1026, Da = 1027, ja = 1028, wf = 1029, bb = 1030, Zc = 1031, cl = 1033, mu = 33776, gu = 33777, yu = 33778, vu = 33779, Pm = 35840, Em = 35841, Am = 35842, Rm = 35843, xb = 36196, Km = 37492, Om = 37496, qm = 37808, Xm = 37809, zm = 37810, Wm = 37811, Nm = 37812, km = 37813, Hm = 37814, Zm = 37815, Ym = 37816, Dm = 37817, jm = 37818, Fm = 37819, Bm = 37820, Jm = 37821, bu = 36492, Vm = 36494, Um = 36495, o1 = 36283, Qm = 36284, $m = 36285, eg = 36286, ul = 2300, Fa = 2301, xu = 2302, tg = 2400, ig = 2401, ng = 2402, l1 = 2500, h1 = 0, Sb = 1, rp = 2, Lb = 3e3, vr = 3001, c1 = 3200, Cb = 3201, Tb = 0, u1 = 1, Ni = "", mt = "srgb", Ft = "srgb-linear", _f = "display-p3", Yc = "display-p3-linear", uc = "linear", xt = "srgb", dc = "rec709", pc = "p3", qr = 7680, sg = 519, d1 = 512, p1 = 513, f1 = 514, Mb = 515, m1 = 516, g1 = 517, y1 = 518, v1 = 519, ap = 35044, rg = "300 es", op = 1035, $n = 2e3, fc = 2001;
|
|
7
7
|
class Gr {
|
|
8
8
|
addEventListener(e, t) {
|
|
9
9
|
this._listeners === void 0 && (this._listeners = {});
|
|
@@ -92,7 +92,7 @@ function G1(n) {
|
|
|
92
92
|
function P1(n) {
|
|
93
93
|
return n * Ba;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function lp(n) {
|
|
96
96
|
return (n & n - 1) === 0 && n !== 0;
|
|
97
97
|
}
|
|
98
98
|
function E1(n) {
|
|
@@ -185,7 +185,7 @@ const Uo = {
|
|
|
185
185
|
seededRandom: _1,
|
|
186
186
|
degToRad: G1,
|
|
187
187
|
radToDeg: P1,
|
|
188
|
-
isPowerOfTwo:
|
|
188
|
+
isPowerOfTwo: lp,
|
|
189
189
|
ceilPowerOfTwo: E1,
|
|
190
190
|
floorPowerOfTwo: mc,
|
|
191
191
|
setQuaternionFromProperEuler: A1,
|
|
@@ -492,13 +492,13 @@ class et {
|
|
|
492
492
|
}
|
|
493
493
|
//
|
|
494
494
|
scale(e, t) {
|
|
495
|
-
return this.premultiply(
|
|
495
|
+
return this.premultiply(Su.makeScale(e, t)), this;
|
|
496
496
|
}
|
|
497
497
|
rotate(e) {
|
|
498
|
-
return this.premultiply(
|
|
498
|
+
return this.premultiply(Su.makeRotation(-e)), this;
|
|
499
499
|
}
|
|
500
500
|
translate(e, t) {
|
|
501
|
-
return this.premultiply(
|
|
501
|
+
return this.premultiply(Su.makeTranslation(e, t)), this;
|
|
502
502
|
}
|
|
503
503
|
// for 2D Transforms
|
|
504
504
|
makeTranslation(e, t) {
|
|
@@ -572,7 +572,7 @@ class et {
|
|
|
572
572
|
return new this.constructor().fromArray(this.elements);
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
const
|
|
575
|
+
const Su = /* @__PURE__ */ new et();
|
|
576
576
|
function Ib(n) {
|
|
577
577
|
for (let e = n.length - 1; e >= 0; --e)
|
|
578
578
|
if (n[e] >= 65535)
|
|
@@ -623,7 +623,7 @@ const lg = /* @__PURE__ */ new et().set(
|
|
|
623
623
|
toReference: (n) => n.convertSRGBToLinear(),
|
|
624
624
|
fromReference: (n) => n.convertLinearToSRGB()
|
|
625
625
|
},
|
|
626
|
-
[
|
|
626
|
+
[Yc]: {
|
|
627
627
|
transfer: uc,
|
|
628
628
|
primaries: pc,
|
|
629
629
|
toReference: (n) => n.applyMatrix3(hg),
|
|
@@ -635,7 +635,7 @@ const lg = /* @__PURE__ */ new et().set(
|
|
|
635
635
|
toReference: (n) => n.convertSRGBToLinear().applyMatrix3(hg),
|
|
636
636
|
fromReference: (n) => n.applyMatrix3(lg).convertLinearToSRGB()
|
|
637
637
|
}
|
|
638
|
-
}, K1 = /* @__PURE__ */ new Set([Ft,
|
|
638
|
+
}, K1 = /* @__PURE__ */ new Set([Ft, Yc]), dt = {
|
|
639
639
|
enabled: !0,
|
|
640
640
|
_workingColorSpace: Ft,
|
|
641
641
|
get legacyMode() {
|
|
@@ -674,7 +674,7 @@ const lg = /* @__PURE__ */ new et().set(
|
|
|
674
674
|
function Ea(n) {
|
|
675
675
|
return n < 0.04045 ? n * 0.0773993808 : Math.pow(n * 0.9478672986 + 0.0521327014, 2.4);
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function Lu(n) {
|
|
678
678
|
return n < 31308e-7 ? n * 12.92 : 1.055 * Math.pow(n, 0.41666) - 0.055;
|
|
679
679
|
}
|
|
680
680
|
let Xr;
|
|
@@ -736,15 +736,15 @@ class Pf {
|
|
|
736
736
|
if (Array.isArray(s)) {
|
|
737
737
|
r = [];
|
|
738
738
|
for (let a = 0, o = s.length; a < o; a++)
|
|
739
|
-
s[a].isDataTexture ? r.push(
|
|
739
|
+
s[a].isDataTexture ? r.push(Cu(s[a].image)) : r.push(Cu(s[a]));
|
|
740
740
|
} else
|
|
741
|
-
r =
|
|
741
|
+
r = Cu(s);
|
|
742
742
|
i.url = r;
|
|
743
743
|
}
|
|
744
744
|
return t || (e.images[this.uuid] = i), i;
|
|
745
745
|
}
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function Cu(n) {
|
|
748
748
|
return typeof HTMLImageElement < "u" && n instanceof HTMLImageElement || typeof HTMLCanvasElement < "u" && n instanceof HTMLCanvasElement || typeof ImageBitmap < "u" && n instanceof ImageBitmap ? wb.getDataURL(n) : n.data ? {
|
|
749
749
|
data: Array.from(n.data),
|
|
750
750
|
width: n.width,
|
|
@@ -1083,14 +1083,14 @@ class zt extends X1 {
|
|
|
1083
1083
|
super(e, t, i), this.isWebGLRenderTarget = !0;
|
|
1084
1084
|
}
|
|
1085
1085
|
}
|
|
1086
|
-
class
|
|
1086
|
+
class Dc extends _i {
|
|
1087
1087
|
constructor(e = null, t = 1, i = 1, s = 1) {
|
|
1088
1088
|
super(null), this.isDataArrayTexture = !0, this.image = { data: e, width: t, height: i, depth: s }, this.magFilter = pt, this.minFilter = pt, this.wrapR = Nt, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
|
|
1089
1089
|
}
|
|
1090
1090
|
}
|
|
1091
1091
|
class _b extends zt {
|
|
1092
1092
|
constructor(e = 1, t = 1, i = 1, s = {}) {
|
|
1093
|
-
super(e, t, s), this.isWebGLArrayRenderTarget = !0, this.depth = i, this.texture = new
|
|
1093
|
+
super(e, t, s), this.isWebGLArrayRenderTarget = !0, this.depth = i, this.texture = new Dc(null, e, t, i), this.texture.isRenderTargetTexture = !0;
|
|
1094
1094
|
}
|
|
1095
1095
|
}
|
|
1096
1096
|
class z1 extends _i {
|
|
@@ -1502,10 +1502,10 @@ class A {
|
|
|
1502
1502
|
return this.copy(e).multiplyScalar(i);
|
|
1503
1503
|
}
|
|
1504
1504
|
projectOnPlane(e) {
|
|
1505
|
-
return
|
|
1505
|
+
return Tu.copy(this).projectOnVector(e), this.sub(Tu);
|
|
1506
1506
|
}
|
|
1507
1507
|
reflect(e) {
|
|
1508
|
-
return this.sub(
|
|
1508
|
+
return this.sub(Tu.copy(e).multiplyScalar(2 * this.dot(e)));
|
|
1509
1509
|
}
|
|
1510
1510
|
angleTo(e) {
|
|
1511
1511
|
const t = Math.sqrt(this.lengthSq() * e.lengthSq());
|
|
@@ -1580,7 +1580,7 @@ class A {
|
|
|
1580
1580
|
yield this.x, yield this.y, yield this.z;
|
|
1581
1581
|
}
|
|
1582
1582
|
}
|
|
1583
|
-
const
|
|
1583
|
+
const Tu = /* @__PURE__ */ new A(), cg = /* @__PURE__ */ new un();
|
|
1584
1584
|
class Et {
|
|
1585
1585
|
constructor(e = new A(1 / 0, 1 / 0, 1 / 0), t = new A(-1 / 0, -1 / 0, -1 / 0)) {
|
|
1586
1586
|
this.isBox3 = !0, this.min = e, this.max = t;
|
|
@@ -1712,7 +1712,7 @@ class Et {
|
|
|
1712
1712
|
Ds.x,
|
|
1713
1713
|
0
|
|
1714
1714
|
];
|
|
1715
|
-
return !
|
|
1715
|
+
return !Mu(t, zr, Wr, Nr, Gl) || (t = [1, 0, 0, 0, 1, 0, 0, 0, 1], !Mu(t, zr, Wr, Nr, Gl)) ? !1 : (Pl.crossVectors(fs, ms), t = [Pl.x, Pl.y, Pl.z], Mu(t, zr, Wr, Nr, Gl));
|
|
1716
1716
|
}
|
|
1717
1717
|
clampPoint(e, t) {
|
|
1718
1718
|
return t.copy(e).clamp(this.min, this.max);
|
|
@@ -1749,7 +1749,7 @@ const Nn = [
|
|
|
1749
1749
|
/* @__PURE__ */ new A(),
|
|
1750
1750
|
/* @__PURE__ */ new A()
|
|
1751
1751
|
], Ui = /* @__PURE__ */ new A(), _l = /* @__PURE__ */ new Et(), zr = /* @__PURE__ */ new A(), Wr = /* @__PURE__ */ new A(), Nr = /* @__PURE__ */ new A(), fs = /* @__PURE__ */ new A(), ms = /* @__PURE__ */ new A(), Ds = /* @__PURE__ */ new A(), yo = /* @__PURE__ */ new A(), Gl = /* @__PURE__ */ new A(), Pl = /* @__PURE__ */ new A(), js = /* @__PURE__ */ new A();
|
|
1752
|
-
function
|
|
1752
|
+
function Mu(n, e, t, i, s) {
|
|
1753
1753
|
for (let r = 0, a = n.length - 3; r <= a; r += 3) {
|
|
1754
1754
|
js.fromArray(n, r);
|
|
1755
1755
|
const o = s.x * Math.abs(js.x) + s.y * Math.abs(js.y) + s.z * Math.abs(js.z), l = e.dot(js), c = t.dot(js), d = i.dot(js);
|
|
@@ -1758,7 +1758,7 @@ function Tu(n, e, t, i, s) {
|
|
|
1758
1758
|
}
|
|
1759
1759
|
return !0;
|
|
1760
1760
|
}
|
|
1761
|
-
const W1 = /* @__PURE__ */ new Et(), vo = /* @__PURE__ */ new A(),
|
|
1761
|
+
const W1 = /* @__PURE__ */ new Et(), vo = /* @__PURE__ */ new A(), Iu = /* @__PURE__ */ new A();
|
|
1762
1762
|
class pn {
|
|
1763
1763
|
constructor(e = new A(), t = -1) {
|
|
1764
1764
|
this.center = e, this.radius = t;
|
|
@@ -1824,7 +1824,7 @@ class pn {
|
|
|
1824
1824
|
return this;
|
|
1825
1825
|
}
|
|
1826
1826
|
union(e) {
|
|
1827
|
-
return e.isEmpty() ? this : this.isEmpty() ? (this.copy(e), this) : (this.center.equals(e.center) === !0 ? this.radius = Math.max(this.radius, e.radius) : (
|
|
1827
|
+
return e.isEmpty() ? this : this.isEmpty() ? (this.copy(e), this) : (this.center.equals(e.center) === !0 ? this.radius = Math.max(this.radius, e.radius) : (Iu.subVectors(e.center, this.center).setLength(e.radius), this.expandByPoint(vo.copy(e.center).add(Iu)), this.expandByPoint(vo.copy(e.center).sub(Iu))), this);
|
|
1828
1828
|
}
|
|
1829
1829
|
equals(e) {
|
|
1830
1830
|
return e.center.equals(this.center) && e.radius === this.radius;
|
|
@@ -1833,7 +1833,7 @@ class pn {
|
|
|
1833
1833
|
return new this.constructor().copy(this);
|
|
1834
1834
|
}
|
|
1835
1835
|
}
|
|
1836
|
-
const kn = /* @__PURE__ */ new A(),
|
|
1836
|
+
const kn = /* @__PURE__ */ new A(), wu = /* @__PURE__ */ new A(), El = /* @__PURE__ */ new A(), gs = /* @__PURE__ */ new A(), _u = /* @__PURE__ */ new A(), Al = /* @__PURE__ */ new A(), Gu = /* @__PURE__ */ new A();
|
|
1837
1837
|
class oo {
|
|
1838
1838
|
constructor(e = new A(), t = new A(0, 0, -1)) {
|
|
1839
1839
|
this.origin = e, this.direction = t;
|
|
@@ -1866,7 +1866,7 @@ class oo {
|
|
|
1866
1866
|
return t < 0 ? this.origin.distanceToSquared(e) : (kn.copy(this.origin).addScaledVector(this.direction, t), kn.distanceToSquared(e));
|
|
1867
1867
|
}
|
|
1868
1868
|
distanceSqToSegment(e, t, i, s) {
|
|
1869
|
-
|
|
1869
|
+
wu.copy(e).add(t).multiplyScalar(0.5), El.copy(t).sub(e).normalize(), gs.copy(this.origin).sub(wu);
|
|
1870
1870
|
const r = e.distanceTo(t) * 0.5, a = -this.direction.dot(El), o = gs.dot(this.direction), l = -gs.dot(El), c = gs.lengthSq(), d = Math.abs(1 - a * a);
|
|
1871
1871
|
let h, u, p, m;
|
|
1872
1872
|
if (d > 0)
|
|
@@ -1883,7 +1883,7 @@ class oo {
|
|
|
1883
1883
|
u <= -m ? (h = Math.max(0, -(-a * r + o)), u = h > 0 ? -r : Math.min(Math.max(-r, -l), r), p = -h * h + u * (u + 2 * l) + c) : u <= m ? (h = 0, u = Math.min(Math.max(-r, -l), r), p = u * (u + 2 * l) + c) : (h = Math.max(0, -(a * r + o)), u = h > 0 ? r : Math.min(Math.max(-r, -l), r), p = -h * h + u * (u + 2 * l) + c);
|
|
1884
1884
|
else
|
|
1885
1885
|
u = a > 0 ? -r : r, h = Math.max(0, -(a * u + o)), p = -h * h + u * (u + 2 * l) + c;
|
|
1886
|
-
return i && i.copy(this.origin).addScaledVector(this.direction, h), s && s.copy(
|
|
1886
|
+
return i && i.copy(this.origin).addScaledVector(this.direction, h), s && s.copy(wu).addScaledVector(El, u), p;
|
|
1887
1887
|
}
|
|
1888
1888
|
intersectSphere(e, t) {
|
|
1889
1889
|
kn.subVectors(e.center, this.origin);
|
|
@@ -1920,8 +1920,8 @@ class oo {
|
|
|
1920
1920
|
return this.intersectBox(e, kn) !== null;
|
|
1921
1921
|
}
|
|
1922
1922
|
intersectTriangle(e, t, i, s, r) {
|
|
1923
|
-
|
|
1924
|
-
let a = this.direction.dot(
|
|
1923
|
+
_u.subVectors(t, e), Al.subVectors(i, e), Gu.crossVectors(_u, Al);
|
|
1924
|
+
let a = this.direction.dot(Gu), o;
|
|
1925
1925
|
if (a > 0) {
|
|
1926
1926
|
if (s)
|
|
1927
1927
|
return null;
|
|
@@ -1934,10 +1934,10 @@ class oo {
|
|
|
1934
1934
|
const l = o * this.direction.dot(Al.crossVectors(gs, Al));
|
|
1935
1935
|
if (l < 0)
|
|
1936
1936
|
return null;
|
|
1937
|
-
const c = o * this.direction.dot(
|
|
1937
|
+
const c = o * this.direction.dot(_u.cross(gs));
|
|
1938
1938
|
if (c < 0 || l + c > a)
|
|
1939
1939
|
return null;
|
|
1940
|
-
const d = -o * gs.dot(
|
|
1940
|
+
const d = -o * gs.dot(Gu);
|
|
1941
1941
|
return d < 0 ? null : this.at(d / a, r);
|
|
1942
1942
|
}
|
|
1943
1943
|
applyMatrix4(e) {
|
|
@@ -2339,8 +2339,8 @@ class Oe {
|
|
|
2339
2339
|
}
|
|
2340
2340
|
}
|
|
2341
2341
|
const kr = /* @__PURE__ */ new A(), Qi = /* @__PURE__ */ new Oe(), N1 = /* @__PURE__ */ new A(0, 0, 0), k1 = /* @__PURE__ */ new A(1, 1, 1), ys = /* @__PURE__ */ new A(), Rl = /* @__PURE__ */ new A(), Pi = /* @__PURE__ */ new A(), ug = /* @__PURE__ */ new Oe(), dg = /* @__PURE__ */ new un();
|
|
2342
|
-
class
|
|
2343
|
-
constructor(e = 0, t = 0, i = 0, s =
|
|
2342
|
+
class jc {
|
|
2343
|
+
constructor(e = 0, t = 0, i = 0, s = jc.DEFAULT_ORDER) {
|
|
2344
2344
|
this.isEuler = !0, this._x = e, this._y = t, this._z = i, this._order = s;
|
|
2345
2345
|
}
|
|
2346
2346
|
get x() {
|
|
@@ -2429,7 +2429,7 @@ class Dc {
|
|
|
2429
2429
|
yield this._x, yield this._y, yield this._z, yield this._order;
|
|
2430
2430
|
}
|
|
2431
2431
|
}
|
|
2432
|
-
|
|
2432
|
+
jc.DEFAULT_ORDER = "XYZ";
|
|
2433
2433
|
class Ef {
|
|
2434
2434
|
constructor() {
|
|
2435
2435
|
this.mask = 1;
|
|
@@ -2464,7 +2464,7 @@ const pg = /* @__PURE__ */ new A(), Hr = /* @__PURE__ */ new un(), Hn = /* @__PU
|
|
|
2464
2464
|
class It extends Gr {
|
|
2465
2465
|
constructor() {
|
|
2466
2466
|
super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: H1++ }), this.uuid = ln(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = It.DEFAULT_UP.clone();
|
|
2467
|
-
const e = new A(), t = new
|
|
2467
|
+
const e = new A(), t = new jc(), i = new un(), s = new A(1, 1, 1);
|
|
2468
2468
|
function r() {
|
|
2469
2469
|
i.setFromEuler(t, !1);
|
|
2470
2470
|
}
|
|
@@ -2767,7 +2767,7 @@ class It extends Gr {
|
|
|
2767
2767
|
It.DEFAULT_UP = /* @__PURE__ */ new A(0, 1, 0);
|
|
2768
2768
|
It.DEFAULT_MATRIX_AUTO_UPDATE = !0;
|
|
2769
2769
|
It.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = !0;
|
|
2770
|
-
const $i = /* @__PURE__ */ new A(), Zn = /* @__PURE__ */ new A(),
|
|
2770
|
+
const $i = /* @__PURE__ */ new A(), Zn = /* @__PURE__ */ new A(), Pu = /* @__PURE__ */ new A(), Yn = /* @__PURE__ */ new A(), Zr = /* @__PURE__ */ new A(), Yr = /* @__PURE__ */ new A(), yg = /* @__PURE__ */ new A(), Eu = /* @__PURE__ */ new A(), Au = /* @__PURE__ */ new A(), Ru = /* @__PURE__ */ new A();
|
|
2771
2771
|
let Ol = !1;
|
|
2772
2772
|
class ui {
|
|
2773
2773
|
constructor(e = new A(), t = new A(), i = new A()) {
|
|
@@ -2781,8 +2781,8 @@ class ui {
|
|
|
2781
2781
|
// static/instance method to calculate barycentric coordinates
|
|
2782
2782
|
// based on: http://www.blackpawn.com/texts/pointinpoly/default.html
|
|
2783
2783
|
static getBarycoord(e, t, i, s, r) {
|
|
2784
|
-
$i.subVectors(s, t), Zn.subVectors(i, t),
|
|
2785
|
-
const a = $i.dot($i), o = $i.dot(Zn), l = $i.dot(
|
|
2784
|
+
$i.subVectors(s, t), Zn.subVectors(i, t), Pu.subVectors(e, t);
|
|
2785
|
+
const a = $i.dot($i), o = $i.dot(Zn), l = $i.dot(Pu), c = Zn.dot(Zn), d = Zn.dot(Pu), h = a * c - o * o;
|
|
2786
2786
|
if (h === 0)
|
|
2787
2787
|
return r.set(-2, -1, -1);
|
|
2788
2788
|
const u = 1 / h, p = (c * l - o * d) * u, m = (a * d - o * l) * u;
|
|
@@ -2848,19 +2848,19 @@ class ui {
|
|
|
2848
2848
|
closestPointToPoint(e, t) {
|
|
2849
2849
|
const i = this.a, s = this.b, r = this.c;
|
|
2850
2850
|
let a, o;
|
|
2851
|
-
Zr.subVectors(s, i), Yr.subVectors(r, i),
|
|
2852
|
-
const l = Zr.dot(
|
|
2851
|
+
Zr.subVectors(s, i), Yr.subVectors(r, i), Eu.subVectors(e, i);
|
|
2852
|
+
const l = Zr.dot(Eu), c = Yr.dot(Eu);
|
|
2853
2853
|
if (l <= 0 && c <= 0)
|
|
2854
2854
|
return t.copy(i);
|
|
2855
|
-
|
|
2856
|
-
const d = Zr.dot(
|
|
2855
|
+
Au.subVectors(e, s);
|
|
2856
|
+
const d = Zr.dot(Au), h = Yr.dot(Au);
|
|
2857
2857
|
if (d >= 0 && h <= d)
|
|
2858
2858
|
return t.copy(s);
|
|
2859
2859
|
const u = l * h - d * c;
|
|
2860
2860
|
if (u <= 0 && l >= 0 && d <= 0)
|
|
2861
2861
|
return a = l / (l - d), t.copy(i).addScaledVector(Zr, a);
|
|
2862
|
-
|
|
2863
|
-
const p = Zr.dot(
|
|
2862
|
+
Ru.subVectors(e, r);
|
|
2863
|
+
const p = Zr.dot(Ru), m = Yr.dot(Ru);
|
|
2864
2864
|
if (m >= 0 && p <= m)
|
|
2865
2865
|
return t.copy(r);
|
|
2866
2866
|
const y = p * c - l * m;
|
|
@@ -3026,7 +3026,7 @@ const Gb = {
|
|
|
3026
3026
|
yellow: 16776960,
|
|
3027
3027
|
yellowgreen: 10145074
|
|
3028
3028
|
}, vs = { h: 0, s: 0, l: 0 }, ql = { h: 0, s: 0, l: 0 };
|
|
3029
|
-
function
|
|
3029
|
+
function Ku(n, e, t) {
|
|
3030
3030
|
return t < 0 && (t += 1), t > 1 && (t -= 1), t < 1 / 6 ? n + (e - n) * 6 * t : t < 1 / 2 ? e : t < 2 / 3 ? n + (e - n) * 6 * (2 / 3 - t) : n;
|
|
3031
3031
|
}
|
|
3032
3032
|
let qe = class {
|
|
@@ -3055,7 +3055,7 @@ let qe = class {
|
|
|
3055
3055
|
this.r = this.g = this.b = i;
|
|
3056
3056
|
else {
|
|
3057
3057
|
const r = i <= 0.5 ? i * (1 + t) : i + t - i * t, a = 2 * i - r;
|
|
3058
|
-
this.r =
|
|
3058
|
+
this.r = Ku(a, r, e + 1 / 3), this.g = Ku(a, r, e), this.b = Ku(a, r, e - 1 / 3);
|
|
3059
3059
|
}
|
|
3060
3060
|
return dt.toWorkingColorSpace(this, s), this;
|
|
3061
3061
|
}
|
|
@@ -3128,7 +3128,7 @@ let qe = class {
|
|
|
3128
3128
|
return this.r = Ea(e.r), this.g = Ea(e.g), this.b = Ea(e.b), this;
|
|
3129
3129
|
}
|
|
3130
3130
|
copyLinearToSRGB(e) {
|
|
3131
|
-
return this.r =
|
|
3131
|
+
return this.r = Lu(e.r), this.g = Lu(e.g), this.b = Lu(e.b), this;
|
|
3132
3132
|
}
|
|
3133
3133
|
convertSRGBToLinear() {
|
|
3134
3134
|
return this.copySRGBToLinear(this), this;
|
|
@@ -3237,7 +3237,7 @@ qe.NAMES = Gb;
|
|
|
3237
3237
|
let F1 = 0;
|
|
3238
3238
|
class An extends Gr {
|
|
3239
3239
|
constructor() {
|
|
3240
|
-
super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: F1++ }), this.uuid = ln(), this.name = "", this.type = "Material", this.blending = mr, this.side = Bi, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc =
|
|
3240
|
+
super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: F1++ }), this.uuid = ln(), this.name = "", this.type = "Material", this.blending = mr, this.side = Bi, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = ep, this.blendDst = tp, this.blendEquation = hr, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new qe(0, 0, 0), this.blendAlpha = 0, this.depthFunc = lc, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = sg, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = qr, this.stencilZFail = qr, this.stencilZPass = qr, 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.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
|
|
3241
3241
|
}
|
|
3242
3242
|
get alphaTest() {
|
|
3243
3243
|
return this._alphaTest;
|
|
@@ -3283,7 +3283,7 @@ class An extends Gr {
|
|
|
3283
3283
|
generator: "Material.toJSON"
|
|
3284
3284
|
}
|
|
3285
3285
|
};
|
|
3286
|
-
i.uuid = this.uuid, i.type = this.type, this.name !== "" && (i.name = this.name), this.color && this.color.isColor && (i.color = this.color.getHex()), this.roughness !== void 0 && (i.roughness = this.roughness), this.metalness !== void 0 && (i.metalness = this.metalness), this.sheen !== void 0 && (i.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (i.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (i.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (i.emissive = this.emissive.getHex()), this.emissiveIntensity && this.emissiveIntensity !== 1 && (i.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (i.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (i.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (i.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (i.shininess = this.shininess), this.clearcoat !== void 0 && (i.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (i.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (i.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (i.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (i.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, i.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.iridescence !== void 0 && (i.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (i.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (i.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (i.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (i.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.anisotropy !== void 0 && (i.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (i.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (i.anisotropyMap = this.anisotropyMap.toJSON(e).uuid), this.map && this.map.isTexture && (i.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (i.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (i.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (i.lightMap = this.lightMap.toJSON(e).uuid, i.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (i.aoMap = this.aoMap.toJSON(e).uuid, i.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (i.bumpMap = this.bumpMap.toJSON(e).uuid, i.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (i.normalMap = this.normalMap.toJSON(e).uuid, i.normalMapType = this.normalMapType, i.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (i.displacementMap = this.displacementMap.toJSON(e).uuid, i.displacementScale = this.displacementScale, i.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (i.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (i.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (i.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (i.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (i.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (i.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (i.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (i.combine = this.combine)), this.envMapIntensity !== void 0 && (i.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (i.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (i.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (i.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (i.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (i.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (i.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (i.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (i.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (i.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (i.size = this.size), this.shadowSide !== null && (i.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (i.sizeAttenuation = this.sizeAttenuation), this.blending !== mr && (i.blending = this.blending), this.side !== Bi && (i.side = this.side), this.vertexColors === !0 && (i.vertexColors = !0), this.opacity < 1 && (i.opacity = this.opacity), this.transparent === !0 && (i.transparent = !0), this.blendSrc !==
|
|
3286
|
+
i.uuid = this.uuid, i.type = this.type, this.name !== "" && (i.name = this.name), this.color && this.color.isColor && (i.color = this.color.getHex()), this.roughness !== void 0 && (i.roughness = this.roughness), this.metalness !== void 0 && (i.metalness = this.metalness), this.sheen !== void 0 && (i.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (i.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (i.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (i.emissive = this.emissive.getHex()), this.emissiveIntensity && this.emissiveIntensity !== 1 && (i.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (i.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (i.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (i.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (i.shininess = this.shininess), this.clearcoat !== void 0 && (i.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (i.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (i.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (i.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (i.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, i.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.iridescence !== void 0 && (i.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (i.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (i.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (i.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (i.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.anisotropy !== void 0 && (i.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (i.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (i.anisotropyMap = this.anisotropyMap.toJSON(e).uuid), this.map && this.map.isTexture && (i.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (i.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (i.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (i.lightMap = this.lightMap.toJSON(e).uuid, i.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (i.aoMap = this.aoMap.toJSON(e).uuid, i.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (i.bumpMap = this.bumpMap.toJSON(e).uuid, i.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (i.normalMap = this.normalMap.toJSON(e).uuid, i.normalMapType = this.normalMapType, i.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (i.displacementMap = this.displacementMap.toJSON(e).uuid, i.displacementScale = this.displacementScale, i.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (i.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (i.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (i.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (i.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (i.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (i.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (i.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (i.combine = this.combine)), this.envMapIntensity !== void 0 && (i.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (i.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (i.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (i.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (i.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (i.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (i.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (i.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (i.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (i.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (i.size = this.size), this.shadowSide !== null && (i.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (i.sizeAttenuation = this.sizeAttenuation), this.blending !== mr && (i.blending = this.blending), this.side !== Bi && (i.side = this.side), this.vertexColors === !0 && (i.vertexColors = !0), this.opacity < 1 && (i.opacity = this.opacity), this.transparent === !0 && (i.transparent = !0), this.blendSrc !== ep && (i.blendSrc = this.blendSrc), this.blendDst !== tp && (i.blendDst = this.blendDst), this.blendEquation !== hr && (i.blendEquation = this.blendEquation), this.blendSrcAlpha !== null && (i.blendSrcAlpha = this.blendSrcAlpha), this.blendDstAlpha !== null && (i.blendDstAlpha = this.blendDstAlpha), this.blendEquationAlpha !== null && (i.blendEquationAlpha = this.blendEquationAlpha), this.blendColor && this.blendColor.isColor && (i.blendColor = this.blendColor.getHex()), this.blendAlpha !== 0 && (i.blendAlpha = this.blendAlpha), this.depthFunc !== lc && (i.depthFunc = this.depthFunc), this.depthTest === !1 && (i.depthTest = this.depthTest), this.depthWrite === !1 && (i.depthWrite = this.depthWrite), this.colorWrite === !1 && (i.colorWrite = this.colorWrite), this.stencilWriteMask !== 255 && (i.stencilWriteMask = this.stencilWriteMask), this.stencilFunc !== sg && (i.stencilFunc = this.stencilFunc), this.stencilRef !== 0 && (i.stencilRef = this.stencilRef), this.stencilFuncMask !== 255 && (i.stencilFuncMask = this.stencilFuncMask), this.stencilFail !== qr && (i.stencilFail = this.stencilFail), this.stencilZFail !== qr && (i.stencilZFail = this.stencilZFail), this.stencilZPass !== qr && (i.stencilZPass = this.stencilZPass), this.stencilWrite === !0 && (i.stencilWrite = this.stencilWrite), this.rotation !== void 0 && this.rotation !== 0 && (i.rotation = this.rotation), this.polygonOffset === !0 && (i.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (i.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (i.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (i.linewidth = this.linewidth), this.dashSize !== void 0 && (i.dashSize = this.dashSize), this.gapSize !== void 0 && (i.gapSize = this.gapSize), this.scale !== void 0 && (i.scale = this.scale), this.dithering === !0 && (i.dithering = !0), this.alphaTest > 0 && (i.alphaTest = this.alphaTest), this.alphaHash === !0 && (i.alphaHash = !0), this.alphaToCoverage === !0 && (i.alphaToCoverage = !0), this.premultipliedAlpha === !0 && (i.premultipliedAlpha = !0), this.forceSinglePass === !0 && (i.forceSinglePass = !0), this.wireframe === !0 && (i.wireframe = !0), this.wireframeLinewidth > 1 && (i.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (i.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (i.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (i.flatShading = !0), this.visible === !1 && (i.visible = !1), this.toneMapped === !1 && (i.toneMapped = !1), this.fog === !1 && (i.fog = !1), Object.keys(this.userData).length > 0 && (i.userData = this.userData);
|
|
3287
3287
|
function s(r) {
|
|
3288
3288
|
const a = [];
|
|
3289
3289
|
for (const o in r) {
|
|
@@ -3379,7 +3379,7 @@ class ut {
|
|
|
3379
3379
|
constructor(e, t, i = !1) {
|
|
3380
3380
|
if (Array.isArray(e))
|
|
3381
3381
|
throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");
|
|
3382
|
-
this.isBufferAttribute = !0, this.name = "", this.array = e, this.itemSize = t, this.count = e !== void 0 ? e.length / t : 0, this.normalized = i, this.usage =
|
|
3382
|
+
this.isBufferAttribute = !0, this.name = "", this.array = e, this.itemSize = t, this.count = e !== void 0 ? e.length / t : 0, this.normalized = i, this.usage = ap, this._updateRange = { offset: 0, count: -1 }, this.updateRanges = [], this.gpuType = Mt, this.version = 0;
|
|
3383
3383
|
}
|
|
3384
3384
|
onUploadCallback() {
|
|
3385
3385
|
}
|
|
@@ -3494,7 +3494,7 @@ class ut {
|
|
|
3494
3494
|
array: Array.from(this.array),
|
|
3495
3495
|
normalized: this.normalized
|
|
3496
3496
|
};
|
|
3497
|
-
return this.name !== "" && (e.name = this.name), this.usage !==
|
|
3497
|
+
return this.name !== "" && (e.name = this.name), this.usage !== ap && (e.usage = this.usage), e;
|
|
3498
3498
|
}
|
|
3499
3499
|
}
|
|
3500
3500
|
class Pb extends ut {
|
|
@@ -3513,7 +3513,7 @@ class ji extends ut {
|
|
|
3513
3513
|
}
|
|
3514
3514
|
}
|
|
3515
3515
|
let U1 = 0;
|
|
3516
|
-
const Xi = /* @__PURE__ */ new Oe(),
|
|
3516
|
+
const Xi = /* @__PURE__ */ new Oe(), Ou = /* @__PURE__ */ new It(), Dr = /* @__PURE__ */ new A(), Ei = /* @__PURE__ */ new Et(), xo = /* @__PURE__ */ new Et(), Qt = /* @__PURE__ */ new A();
|
|
3517
3517
|
class ai extends Gr {
|
|
3518
3518
|
constructor() {
|
|
3519
3519
|
super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: U1++ }), this.uuid = ln(), this.name = "", this.type = "BufferGeometry", this.index = null, this.attributes = {}, this.morphAttributes = {}, this.morphTargetsRelative = !1, this.groups = [], this.boundingBox = null, this.boundingSphere = null, this.drawRange = { start: 0, count: 1 / 0 }, this.userData = {};
|
|
@@ -3579,7 +3579,7 @@ class ai extends Gr {
|
|
|
3579
3579
|
return Xi.makeScale(e, t, i), this.applyMatrix4(Xi), this;
|
|
3580
3580
|
}
|
|
3581
3581
|
lookAt(e) {
|
|
3582
|
-
return
|
|
3582
|
+
return Ou.lookAt(e), Ou.updateMatrix(), this.applyMatrix4(Ou.matrix), this;
|
|
3583
3583
|
}
|
|
3584
3584
|
center() {
|
|
3585
3585
|
return this.computeBoundingBox(), this.boundingBox.getCenter(Dr).negate(), this.translate(Dr.x, Dr.y, Dr.z), this;
|
|
@@ -3825,7 +3825,7 @@ class ai extends Gr {
|
|
|
3825
3825
|
this.dispatchEvent({ type: "dispose" });
|
|
3826
3826
|
}
|
|
3827
3827
|
}
|
|
3828
|
-
const vg = /* @__PURE__ */ new Oe(), Fs = /* @__PURE__ */ new oo(), zl = /* @__PURE__ */ new pn(), bg = /* @__PURE__ */ new A(), jr = /* @__PURE__ */ new A(), Fr = /* @__PURE__ */ new A(), Br = /* @__PURE__ */ new A(),
|
|
3828
|
+
const vg = /* @__PURE__ */ new Oe(), Fs = /* @__PURE__ */ new oo(), zl = /* @__PURE__ */ new pn(), bg = /* @__PURE__ */ new A(), jr = /* @__PURE__ */ new A(), Fr = /* @__PURE__ */ new A(), Br = /* @__PURE__ */ new A(), qu = /* @__PURE__ */ new A(), Wl = /* @__PURE__ */ new A(), Nl = /* @__PURE__ */ new ge(), kl = /* @__PURE__ */ new ge(), Hl = /* @__PURE__ */ new ge(), xg = /* @__PURE__ */ new A(), Sg = /* @__PURE__ */ new A(), Lg = /* @__PURE__ */ new A(), Zl = /* @__PURE__ */ new A(), Yl = /* @__PURE__ */ new A();
|
|
3829
3829
|
let ni = class extends It {
|
|
3830
3830
|
constructor(e = new ai(), t = new Gn()) {
|
|
3831
3831
|
super(), this.isMesh = !0, this.type = "Mesh", this.geometry = e, this.material = t, this.updateMorphTargets();
|
|
@@ -3854,7 +3854,7 @@ let ni = class extends It {
|
|
|
3854
3854
|
Wl.set(0, 0, 0);
|
|
3855
3855
|
for (let l = 0, c = r.length; l < c; l++) {
|
|
3856
3856
|
const d = o[l], h = r[l];
|
|
3857
|
-
d !== 0 && (
|
|
3857
|
+
d !== 0 && (qu.fromBufferAttribute(h, e), a ? Wl.addScaledVector(qu, d) : Wl.addScaledVector(qu.sub(t), d));
|
|
3858
3858
|
}
|
|
3859
3859
|
t.add(Wl);
|
|
3860
3860
|
}
|
|
@@ -3999,7 +3999,7 @@ function $1(n) {
|
|
|
3999
3999
|
function Ab(n) {
|
|
4000
4000
|
return n.getRenderTarget() === null ? n.outputColorSpace : dt.workingColorSpace;
|
|
4001
4001
|
}
|
|
4002
|
-
const
|
|
4002
|
+
const Fc = { clone: Ja, merge: bi };
|
|
4003
4003
|
var eC = `void main() {
|
|
4004
4004
|
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
|
|
4005
4005
|
}`, tC = `void main() {
|
|
@@ -4309,7 +4309,7 @@ class nC extends zt {
|
|
|
4309
4309
|
e.setRenderTarget(r);
|
|
4310
4310
|
}
|
|
4311
4311
|
}
|
|
4312
|
-
const
|
|
4312
|
+
const Xu = /* @__PURE__ */ new A(), sC = /* @__PURE__ */ new A(), rC = /* @__PURE__ */ new et();
|
|
4313
4313
|
class Cn {
|
|
4314
4314
|
constructor(e = new A(1, 0, 0), t = 0) {
|
|
4315
4315
|
this.isPlane = !0, this.normal = e, this.constant = t;
|
|
@@ -4324,7 +4324,7 @@ class Cn {
|
|
|
4324
4324
|
return this.normal.copy(e), this.constant = -t.dot(this.normal), this;
|
|
4325
4325
|
}
|
|
4326
4326
|
setFromCoplanarPoints(e, t, i) {
|
|
4327
|
-
const s =
|
|
4327
|
+
const s = Xu.subVectors(i, t).cross(sC.subVectors(e, t)).normalize();
|
|
4328
4328
|
return this.setFromNormalAndCoplanarPoint(s, e), this;
|
|
4329
4329
|
}
|
|
4330
4330
|
copy(e) {
|
|
@@ -4347,7 +4347,7 @@ class Cn {
|
|
|
4347
4347
|
return t.copy(e).addScaledVector(this.normal, -this.distanceToPoint(e));
|
|
4348
4348
|
}
|
|
4349
4349
|
intersectLine(e, t) {
|
|
4350
|
-
const i = e.delta(
|
|
4350
|
+
const i = e.delta(Xu), s = this.normal.dot(i);
|
|
4351
4351
|
if (s === 0)
|
|
4352
4352
|
return this.distanceToPoint(e.start) === 0 ? t.copy(e.start) : null;
|
|
4353
4353
|
const r = -(e.start.dot(this.normal) + this.constant) / s;
|
|
@@ -4367,7 +4367,7 @@ class Cn {
|
|
|
4367
4367
|
return e.copy(this.normal).multiplyScalar(-this.constant);
|
|
4368
4368
|
}
|
|
4369
4369
|
applyMatrix4(e, t) {
|
|
4370
|
-
const i = t || rC.getNormalMatrix(e), s = this.coplanarPoint(
|
|
4370
|
+
const i = t || rC.getNormalMatrix(e), s = this.coplanarPoint(Xu).applyMatrix4(e), r = this.normal.applyMatrix3(i).normalize();
|
|
4371
4371
|
return this.constant = -s.dot(r), this;
|
|
4372
4372
|
}
|
|
4373
4373
|
translate(e) {
|
|
@@ -8575,7 +8575,7 @@ function NM(n, e, t, i, s, r, a) {
|
|
|
8575
8575
|
let v = !1, b = f.isScene === !0 ? f.background : null;
|
|
8576
8576
|
b && b.isTexture && (b = (f.backgroundBlurriness > 0 ? t : e).get(b)), b === null ? y(o, l) : b && b.isColor && (y(b, 1), v = !0);
|
|
8577
8577
|
const x = n.xr.getEnvironmentBlendMode();
|
|
8578
|
-
x === "additive" ? i.buffers.color.setClear(0, 0, 0, 1, a) : x === "alpha-blend" && i.buffers.color.setClear(0, 0, 0, 0, a), (n.autoClear || v) && n.clear(n.autoClearColor, n.autoClearDepth, n.autoClearStencil), b && (b.isCubeTexture || b.mapping ===
|
|
8578
|
+
x === "additive" ? i.buffers.color.setClear(0, 0, 0, 1, a) : x === "alpha-blend" && i.buffers.color.setClear(0, 0, 0, 0, a), (n.autoClear || v) && n.clear(n.autoClearColor, n.autoClearDepth, n.autoClearStencil), b && (b.isCubeTexture || b.mapping === kc) ? (d === void 0 && (d = new ni(
|
|
8579
8579
|
new bl(1, 1, 1),
|
|
8580
8580
|
new pi({
|
|
8581
8581
|
name: "BackgroundCubeMaterial",
|
|
@@ -8988,12 +8988,12 @@ function YM(n) {
|
|
|
8988
8988
|
function DM(n) {
|
|
8989
8989
|
let e = /* @__PURE__ */ new WeakMap();
|
|
8990
8990
|
function t(a, o) {
|
|
8991
|
-
return o === hc ? a.mapping = Za : o ===
|
|
8991
|
+
return o === hc ? a.mapping = Za : o === ip && (a.mapping = Ya), a;
|
|
8992
8992
|
}
|
|
8993
8993
|
function i(a) {
|
|
8994
8994
|
if (a && a.isTexture) {
|
|
8995
8995
|
const o = a.mapping;
|
|
8996
|
-
if (o === hc || o ===
|
|
8996
|
+
if (o === hc || o === ip)
|
|
8997
8997
|
if (e.has(a)) {
|
|
8998
8998
|
const l = e.get(a).texture;
|
|
8999
8999
|
return t(l, a.mapping);
|
|
@@ -9022,7 +9022,7 @@ function DM(n) {
|
|
|
9022
9022
|
dispose: r
|
|
9023
9023
|
};
|
|
9024
9024
|
}
|
|
9025
|
-
class
|
|
9025
|
+
class Bc extends Rb {
|
|
9026
9026
|
constructor(e = -1, t = 1, i = 1, s = -1, r = 0.1, a = 2e3) {
|
|
9027
9027
|
super(), this.isOrthographicCamera = !0, this.type = "OrthographicCamera", this.zoom = 1, this.view = null, this.left = e, this.right = t, this.top = i, this.bottom = s, this.near = r, this.far = a, this.updateProjectionMatrix();
|
|
9028
9028
|
}
|
|
@@ -9057,8 +9057,8 @@ class Fc extends Rb {
|
|
|
9057
9057
|
return t.object.zoom = this.zoom, t.object.left = this.left, t.object.right = this.right, t.object.top = this.top, t.object.bottom = this.bottom, t.object.near = this.near, t.object.far = this.far, this.view !== null && (t.object.view = Object.assign({}, this.view)), t;
|
|
9058
9058
|
}
|
|
9059
9059
|
}
|
|
9060
|
-
const Ia = 4, Cg = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], cr = 20,
|
|
9061
|
-
let
|
|
9060
|
+
const Ia = 4, Cg = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], cr = 20, zu = /* @__PURE__ */ new Bc(), Tg = /* @__PURE__ */ new qe();
|
|
9061
|
+
let Wu = null, Nu = 0, ku = 0;
|
|
9062
9062
|
const ir = (1 + Math.sqrt(5)) / 2, Ur = 1 / ir, Mg = [
|
|
9063
9063
|
/* @__PURE__ */ new A(1, 1, 1),
|
|
9064
9064
|
/* @__PURE__ */ new A(-1, 1, 1),
|
|
@@ -9083,7 +9083,7 @@ class Ig {
|
|
|
9083
9083
|
* is placed at the origin).
|
|
9084
9084
|
*/
|
|
9085
9085
|
fromScene(e, t = 0, i = 0.1, s = 100) {
|
|
9086
|
-
|
|
9086
|
+
Wu = this._renderer.getRenderTarget(), Nu = this._renderer.getActiveCubeFace(), ku = this._renderer.getActiveMipmapLevel(), this._setSize(256);
|
|
9087
9087
|
const r = this._allocateTargets();
|
|
9088
9088
|
return r.depthBuffer = !0, this._sceneToCubeUV(e, i, s, r), t > 0 && this._blur(r, 0, 0, t), this._applyPMREM(r), this._cleanup(r), r;
|
|
9089
9089
|
}
|
|
@@ -9135,10 +9135,10 @@ class Ig {
|
|
|
9135
9135
|
this._lodPlanes[e].dispose();
|
|
9136
9136
|
}
|
|
9137
9137
|
_cleanup(e) {
|
|
9138
|
-
this._renderer.setRenderTarget(
|
|
9138
|
+
this._renderer.setRenderTarget(Wu, Nu, ku), e.scissorTest = !1, Bl(e, 0, 0, e.width, e.height);
|
|
9139
9139
|
}
|
|
9140
9140
|
_fromTexture(e, t) {
|
|
9141
|
-
e.mapping === Za || e.mapping === Ya ? this._setSize(e.image.length === 0 ? 16 : e.image[0].width || e.image[0].image.width) : this._setSize(e.image.width / 4),
|
|
9141
|
+
e.mapping === Za || e.mapping === Ya ? this._setSize(e.image.length === 0 ? 16 : e.image[0].width || e.image[0].image.width) : this._setSize(e.image.width / 4), Wu = this._renderer.getRenderTarget(), Nu = this._renderer.getActiveCubeFace(), ku = this._renderer.getActiveMipmapLevel();
|
|
9142
9142
|
const i = t || this._allocateTargets();
|
|
9143
9143
|
return this._textureToCubeUV(e, i), this._applyPMREM(i), this._cleanup(i), i;
|
|
9144
9144
|
}
|
|
@@ -9161,7 +9161,7 @@ class Ig {
|
|
|
9161
9161
|
}
|
|
9162
9162
|
_compileMaterial(e) {
|
|
9163
9163
|
const t = new ni(this._lodPlanes[0], e);
|
|
9164
|
-
this._renderer.compile(t,
|
|
9164
|
+
this._renderer.compile(t, zu);
|
|
9165
9165
|
}
|
|
9166
9166
|
_sceneToCubeUV(e, t, i, s) {
|
|
9167
9167
|
const o = new di(90, 1, t, i), l = [1, -1, 1, 1, 1, 1], c = [1, 1, 1, -1, -1, -1], d = this._renderer, h = d.autoClear, u = d.toneMapping;
|
|
@@ -9189,7 +9189,7 @@ class Ig {
|
|
|
9189
9189
|
const r = s ? this._cubemapMaterial : this._equirectMaterial, a = new ni(this._lodPlanes[0], r), o = r.uniforms;
|
|
9190
9190
|
o.envMap.value = e;
|
|
9191
9191
|
const l = this._cubeSize;
|
|
9192
|
-
Bl(t, 0, 0, 3 * l, 2 * l), i.setRenderTarget(t), i.render(a,
|
|
9192
|
+
Bl(t, 0, 0, 3 * l, 2 * l), i.setRenderTarget(t), i.render(a, zu);
|
|
9193
9193
|
}
|
|
9194
9194
|
_applyPMREM(e) {
|
|
9195
9195
|
const t = this._renderer, i = t.autoClear;
|
|
@@ -9246,7 +9246,7 @@ class Ig {
|
|
|
9246
9246
|
const { _lodMax: b } = this;
|
|
9247
9247
|
u.dTheta.value = m, u.mipInt.value = b - i;
|
|
9248
9248
|
const x = this._sizeLods[s], S = 3 * x * (s > b - Ia ? s - b + Ia : 0), C = 4 * (this._cubeSize - x);
|
|
9249
|
-
Bl(t, S, C, 3 * x, 2 * x), l.setRenderTarget(t), l.render(h,
|
|
9249
|
+
Bl(t, S, C, 3 * x, 2 * x), l.setRenderTarget(t), l.render(h, zu);
|
|
9250
9250
|
}
|
|
9251
9251
|
}
|
|
9252
9252
|
function jM(n) {
|
|
@@ -9291,7 +9291,7 @@ function jM(n) {
|
|
|
9291
9291
|
}
|
|
9292
9292
|
function wg(n, e, t) {
|
|
9293
9293
|
const i = new zt(n, e, t);
|
|
9294
|
-
return i.texture.mapping =
|
|
9294
|
+
return i.texture.mapping = kc, i.texture.name = "PMREM.cubeUv", i.scissorTest = !0, i;
|
|
9295
9295
|
}
|
|
9296
9296
|
function Bl(n, e, t, i, s) {
|
|
9297
9297
|
n.viewport.set(e, t, i, s), n.scissor.set(e, t, i, s);
|
|
@@ -9518,7 +9518,7 @@ function BM(n) {
|
|
|
9518
9518
|
let e = /* @__PURE__ */ new WeakMap(), t = null;
|
|
9519
9519
|
function i(o) {
|
|
9520
9520
|
if (o && o.isTexture) {
|
|
9521
|
-
const l = o.mapping, c = l === hc || l ===
|
|
9521
|
+
const l = o.mapping, c = l === hc || l === ip, d = l === Za || l === Ya;
|
|
9522
9522
|
if (c || d)
|
|
9523
9523
|
if (o.isRenderTargetTexture && o.needsPMREMUpdate === !0) {
|
|
9524
9524
|
o.needsPMREMUpdate = !1;
|
|
@@ -9779,7 +9779,7 @@ function tI(n, e, t) {
|
|
|
9779
9779
|
v === !0 && (I = 1), b === !0 && (I = 2), x === !0 && (I = 3);
|
|
9780
9780
|
let L = d.attributes.position.count * I, M = 1;
|
|
9781
9781
|
L > e.maxTextureSize && (M = Math.ceil(L / e.maxTextureSize), L = e.maxTextureSize);
|
|
9782
|
-
const K = new Float32Array(L * M * 4 * m), P = new
|
|
9782
|
+
const K = new Float32Array(L * M * 4 * m), P = new Dc(K, L, M, m);
|
|
9783
9783
|
P.type = Mt, P.needsUpdate = !0;
|
|
9784
9784
|
const G = I * 4;
|
|
9785
9785
|
for (let O = 0; O < m; O++) {
|
|
@@ -9869,7 +9869,7 @@ class qb extends _i {
|
|
|
9869
9869
|
}
|
|
9870
9870
|
const Xb = /* @__PURE__ */ new _i(), zb = /* @__PURE__ */ new qb(1, 1);
|
|
9871
9871
|
zb.compareFunction = Mb;
|
|
9872
|
-
const Wb = /* @__PURE__ */ new
|
|
9872
|
+
const Wb = /* @__PURE__ */ new Dc(), Nb = /* @__PURE__ */ new z1(), kb = /* @__PURE__ */ new Kb(), Pg = [], Eg = [], Ag = new Float32Array(16), Rg = new Float32Array(9), Kg = new Float32Array(4);
|
|
9873
9873
|
function lo(n, e, t) {
|
|
9874
9874
|
const i = n[0];
|
|
9875
9875
|
if (i <= 0 || i > 0)
|
|
@@ -9895,7 +9895,7 @@ function Jt(n, e) {
|
|
|
9895
9895
|
for (let t = 0, i = e.length; t < i; t++)
|
|
9896
9896
|
n[t] = e[t];
|
|
9897
9897
|
}
|
|
9898
|
-
function
|
|
9898
|
+
function Jc(n, e) {
|
|
9899
9899
|
let t = Eg[e];
|
|
9900
9900
|
t === void 0 && (t = new Int32Array(e), Eg[e] = t);
|
|
9901
9901
|
for (let i = 0; i !== e; ++i)
|
|
@@ -10170,25 +10170,25 @@ function XI(n, e) {
|
|
|
10170
10170
|
n.uniform4uiv(this.addr, e);
|
|
10171
10171
|
}
|
|
10172
10172
|
function zI(n, e, t) {
|
|
10173
|
-
const i = this.cache, s = e.length, r =
|
|
10173
|
+
const i = this.cache, s = e.length, r = Jc(t, s);
|
|
10174
10174
|
Bt(i, r) || (n.uniform1iv(this.addr, r), Jt(i, r));
|
|
10175
10175
|
for (let a = 0; a !== s; ++a)
|
|
10176
10176
|
t.setTexture2D(e[a] || Xb, r[a]);
|
|
10177
10177
|
}
|
|
10178
10178
|
function WI(n, e, t) {
|
|
10179
|
-
const i = this.cache, s = e.length, r =
|
|
10179
|
+
const i = this.cache, s = e.length, r = Jc(t, s);
|
|
10180
10180
|
Bt(i, r) || (n.uniform1iv(this.addr, r), Jt(i, r));
|
|
10181
10181
|
for (let a = 0; a !== s; ++a)
|
|
10182
10182
|
t.setTexture3D(e[a] || Nb, r[a]);
|
|
10183
10183
|
}
|
|
10184
10184
|
function NI(n, e, t) {
|
|
10185
|
-
const i = this.cache, s = e.length, r =
|
|
10185
|
+
const i = this.cache, s = e.length, r = Jc(t, s);
|
|
10186
10186
|
Bt(i, r) || (n.uniform1iv(this.addr, r), Jt(i, r));
|
|
10187
10187
|
for (let a = 0; a !== s; ++a)
|
|
10188
10188
|
t.setTextureCube(e[a] || kb, r[a]);
|
|
10189
10189
|
}
|
|
10190
10190
|
function kI(n, e, t) {
|
|
10191
|
-
const i = this.cache, s = e.length, r =
|
|
10191
|
+
const i = this.cache, s = e.length, r = Jc(t, s);
|
|
10192
10192
|
Bt(i, r) || (n.uniform1iv(this.addr, r), Jt(i, r));
|
|
10193
10193
|
for (let a = 0; a !== s; ++a)
|
|
10194
10194
|
t.setTexture2DArray(e[a] || Wb, r[a]);
|
|
@@ -10273,14 +10273,14 @@ class DI {
|
|
|
10273
10273
|
}
|
|
10274
10274
|
}
|
|
10275
10275
|
}
|
|
10276
|
-
const
|
|
10276
|
+
const Hu = /(\w+)(\])?(\[|\.)?/g;
|
|
10277
10277
|
function Og(n, e) {
|
|
10278
10278
|
n.seq.push(e), n.map[e.id] = e;
|
|
10279
10279
|
}
|
|
10280
10280
|
function jI(n, e, t) {
|
|
10281
10281
|
const i = n.name, s = i.length;
|
|
10282
|
-
for (
|
|
10283
|
-
const r =
|
|
10282
|
+
for (Hu.lastIndex = 0; ; ) {
|
|
10283
|
+
const r = Hu.exec(i), a = Hu.lastIndex;
|
|
10284
10284
|
let o = r[1];
|
|
10285
10285
|
const l = r[2] === "]", c = r[3];
|
|
10286
10286
|
if (l && (o = o | 0), c === void 0 || c === "[" && a + 2 === s) {
|
|
@@ -10345,7 +10345,7 @@ function VI(n) {
|
|
|
10345
10345
|
let i;
|
|
10346
10346
|
switch (e === t ? i = "" : e === pc && t === dc ? i = "LinearDisplayP3ToLinearSRGB" : e === dc && t === pc && (i = "LinearSRGBToLinearDisplayP3"), n) {
|
|
10347
10347
|
case Ft:
|
|
10348
|
-
case
|
|
10348
|
+
case Yc:
|
|
10349
10349
|
return [i, "LinearTransferOETF"];
|
|
10350
10350
|
case mt:
|
|
10351
10351
|
case _f:
|
|
@@ -10438,7 +10438,7 @@ function Wg(n, e) {
|
|
|
10438
10438
|
return n.replace(/NUM_CLIPPING_PLANES/g, e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g, e.numClippingPlanes - e.numClipIntersection);
|
|
10439
10439
|
}
|
|
10440
10440
|
const i2 = /^[ \t]*#include +<([\w\d./]+)>/gm;
|
|
10441
|
-
function
|
|
10441
|
+
function hp(n) {
|
|
10442
10442
|
return n.replace(i2, s2);
|
|
10443
10443
|
}
|
|
10444
10444
|
const n2 = /* @__PURE__ */ new Map([
|
|
@@ -10458,7 +10458,7 @@ function s2(n, e) {
|
|
|
10458
10458
|
else
|
|
10459
10459
|
throw new Error("Can not resolve #include <" + e + ">");
|
|
10460
10460
|
}
|
|
10461
|
-
return
|
|
10461
|
+
return hp(t);
|
|
10462
10462
|
}
|
|
10463
10463
|
const r2 = /#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;
|
|
10464
10464
|
function Ng(n) {
|
|
@@ -10490,7 +10490,7 @@ function l2(n) {
|
|
|
10490
10490
|
case Ya:
|
|
10491
10491
|
e = "ENVMAP_TYPE_CUBE";
|
|
10492
10492
|
break;
|
|
10493
|
-
case
|
|
10493
|
+
case kc:
|
|
10494
10494
|
e = "ENVMAP_TYPE_CUBE_UV";
|
|
10495
10495
|
break;
|
|
10496
10496
|
}
|
|
@@ -10776,7 +10776,7 @@ function d2(n, e, t, i) {
|
|
|
10776
10776
|
`
|
|
10777
10777
|
`
|
|
10778
10778
|
].filter(Wo).join(`
|
|
10779
|
-
`)), a =
|
|
10779
|
+
`)), a = hp(a), a = zg(a, t), a = Wg(a, t), o = hp(o), o = zg(o, t), o = Wg(o, t), a = Ng(a), o = Ng(o), t.isWebGL2 && t.isRawShaderMaterial !== !0 && (v = `#version 300 es
|
|
10780
10780
|
`, g = [
|
|
10781
10781
|
"precision mediump sampler2DArray;",
|
|
10782
10782
|
"#define attribute in",
|
|
@@ -10917,7 +10917,7 @@ function g2(n, e, t, i, s, r, a) {
|
|
|
10917
10917
|
return L === 0 ? "uv" : `uv${L}`;
|
|
10918
10918
|
}
|
|
10919
10919
|
function g(L, M, K, P, G) {
|
|
10920
|
-
const w = P.fog, O = G.geometry, X = L.isMeshStandardMaterial ? P.environment : null, W = (L.isMeshStandardMaterial ? t : e).get(L.envMap || X), J = W && W.mapping ===
|
|
10920
|
+
const w = P.fog, O = G.geometry, X = L.isMeshStandardMaterial ? P.environment : null, W = (L.isMeshStandardMaterial ? t : e).get(L.envMap || X), J = W && W.mapping === kc ? W.image.height : null, D = m[L.type];
|
|
10921
10921
|
L.precision !== null && (p = s.getMaxPrecision(L.precision), p !== L.precision && console.warn("THREE.WebGLProgram.getParameters:", L.precision, "not supported, using", p, "instead."));
|
|
10922
10922
|
const N = O.morphAttributes.position || O.morphAttributes.normal || O.morphAttributes.color, H = N !== void 0 ? N.length : 0;
|
|
10923
10923
|
let ee = 0;
|
|
@@ -11085,7 +11085,7 @@ function g2(n, e, t, i, s, r, a) {
|
|
|
11085
11085
|
let K;
|
|
11086
11086
|
if (M) {
|
|
11087
11087
|
const P = Tn[M];
|
|
11088
|
-
K =
|
|
11088
|
+
K = Fc.clone(P.uniforms);
|
|
11089
11089
|
} else
|
|
11090
11090
|
K = L.uniforms;
|
|
11091
11091
|
return K;
|
|
@@ -11792,12 +11792,12 @@ function P2(n, e, t) {
|
|
|
11792
11792
|
[KL]: n.ZERO,
|
|
11793
11793
|
[OL]: n.ONE,
|
|
11794
11794
|
[qL]: n.SRC_COLOR,
|
|
11795
|
-
[
|
|
11795
|
+
[ep]: n.SRC_ALPHA,
|
|
11796
11796
|
[HL]: n.SRC_ALPHA_SATURATE,
|
|
11797
11797
|
[NL]: n.DST_COLOR,
|
|
11798
11798
|
[zL]: n.DST_ALPHA,
|
|
11799
11799
|
[XL]: n.ONE_MINUS_SRC_COLOR,
|
|
11800
|
-
[
|
|
11800
|
+
[tp]: n.ONE_MINUS_SRC_ALPHA,
|
|
11801
11801
|
[kL]: n.ONE_MINUS_DST_COLOR,
|
|
11802
11802
|
[WL]: n.ONE_MINUS_DST_ALPHA,
|
|
11803
11803
|
[ZL]: n.CONSTANT_COLOR,
|
|
@@ -11817,7 +11817,7 @@ function P2(n, e, t) {
|
|
|
11817
11817
|
case mr:
|
|
11818
11818
|
n.blendFuncSeparate(n.ONE, n.ONE_MINUS_SRC_ALPHA, n.ONE, n.ONE_MINUS_SRC_ALPHA);
|
|
11819
11819
|
break;
|
|
11820
|
-
case
|
|
11820
|
+
case $d:
|
|
11821
11821
|
n.blendFunc(n.ONE, n.ONE);
|
|
11822
11822
|
break;
|
|
11823
11823
|
case Mm:
|
|
@@ -11835,7 +11835,7 @@ function P2(n, e, t) {
|
|
|
11835
11835
|
case mr:
|
|
11836
11836
|
n.blendFuncSeparate(n.SRC_ALPHA, n.ONE_MINUS_SRC_ALPHA, n.ONE, n.ONE_MINUS_SRC_ALPHA);
|
|
11837
11837
|
break;
|
|
11838
|
-
case
|
|
11838
|
+
case $d:
|
|
11839
11839
|
n.blendFunc(n.SRC_ALPHA, n.ONE);
|
|
11840
11840
|
break;
|
|
11841
11841
|
case Mm:
|
|
@@ -12043,7 +12043,7 @@ function E2(n, e, t, i, s, r, a) {
|
|
|
12043
12043
|
return R;
|
|
12044
12044
|
}
|
|
12045
12045
|
function x(R) {
|
|
12046
|
-
return
|
|
12046
|
+
return lp(R.width) && lp(R.height);
|
|
12047
12047
|
}
|
|
12048
12048
|
function S(R) {
|
|
12049
12049
|
return o ? !1 : R.wrapS !== Nt || R.wrapT !== Nt || R.minFilter !== pt && R.minFilter !== lt;
|
|
@@ -12073,7 +12073,7 @@ function E2(n, e, t, i, s, r, a) {
|
|
|
12073
12073
|
return C(R, j) === !0 || R.isFramebufferTexture && R.minFilter !== pt && R.minFilter !== lt ? Math.log2(Math.max(_.width, _.height)) + 1 : R.mipmaps !== void 0 && R.mipmaps.length > 0 ? R.mipmaps.length : R.isCompressedTexture && Array.isArray(R.image) ? _.mipmaps.length : 1;
|
|
12074
12074
|
}
|
|
12075
12075
|
function M(R) {
|
|
12076
|
-
return R === pt || R ===
|
|
12076
|
+
return R === pt || R === np || R === Fh ? n.NEAREST : n.LINEAR;
|
|
12077
12077
|
}
|
|
12078
12078
|
function K(R) {
|
|
12079
12079
|
const _ = R.target;
|
|
@@ -12186,7 +12186,7 @@ function E2(n, e, t, i, s, r, a) {
|
|
|
12186
12186
|
[cc]: n.MIRRORED_REPEAT
|
|
12187
12187
|
}, re = {
|
|
12188
12188
|
[pt]: n.NEAREST,
|
|
12189
|
-
[
|
|
12189
|
+
[np]: n.NEAREST_MIPMAP_NEAREST,
|
|
12190
12190
|
[Fh]: n.NEAREST_MIPMAP_LINEAR,
|
|
12191
12191
|
[lt]: n.LINEAR,
|
|
12192
12192
|
[mb]: n.LINEAR_MIPMAP_NEAREST,
|
|
@@ -12245,7 +12245,7 @@ function E2(n, e, t, i, s, r, a) {
|
|
|
12245
12245
|
let Te;
|
|
12246
12246
|
const it = _.mipmaps, z = o && _.isVideoTexture !== !0 && _e !== xb, ue = Ee.__version === void 0 || ne === !0, ie = L(_, te, Ze);
|
|
12247
12247
|
if (_.isDepthTexture)
|
|
12248
|
-
_e = n.DEPTH_COMPONENT, o ? _.type === Mt ? _e = n.DEPTH_COMPONENT32F : _.type === Ri ? _e = n.DEPTH_COMPONENT24 : _.type === gr ? _e = n.DEPTH24_STENCIL8 : _e = n.DEPTH_COMPONENT16 : _.type === Mt && console.error("WebGLRenderer: Floating point depth texture requires WebGL2."), _.format === yr && _e === n.DEPTH_COMPONENT && _.type !==
|
|
12248
|
+
_e = n.DEPTH_COMPONENT, o ? _.type === Mt ? _e = n.DEPTH_COMPONENT32F : _.type === Ri ? _e = n.DEPTH_COMPONENT24 : _.type === gr ? _e = n.DEPTH24_STENCIL8 : _e = n.DEPTH_COMPONENT16 : _.type === Mt && console.error("WebGLRenderer: Floating point depth texture requires WebGL2."), _.format === yr && _e === n.DEPTH_COMPONENT && _.type !== Hc && _.type !== Ri && (console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."), _.type = Ri, We = r.convert(_.type)), _.format === Da && _e === n.DEPTH_COMPONENT && (_e = n.DEPTH_STENCIL, _.type !== gr && (console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."), _.type = gr, We = r.convert(_.type))), ue && (z ? t.texStorage2D(n.TEXTURE_2D, 1, _e, te.width, te.height) : t.texImage2D(n.TEXTURE_2D, 0, _e, te.width, te.height, 0, Re, We, null));
|
|
12249
12249
|
else if (_.isDataTexture)
|
|
12250
12250
|
if (it.length > 0 && Ze) {
|
|
12251
12251
|
z && ue && t.texStorage2D(n.TEXTURE_2D, ie, _e, it[0].width, it[0].height);
|
|
@@ -12516,7 +12516,7 @@ function E2(n, e, t, i, s, r, a) {
|
|
|
12516
12516
|
}
|
|
12517
12517
|
function Zt(R, _) {
|
|
12518
12518
|
const j = R.colorSpace, ae = R.format, ne = R.type;
|
|
12519
|
-
return R.isCompressedTexture === !0 || R.isVideoTexture === !0 || R.format ===
|
|
12519
|
+
return R.isCompressedTexture === !0 || R.isVideoTexture === !0 || R.format === op || j !== Ft && j !== Ni && (dt.getTransfer(j) === xt ? o === !1 ? e.has("EXT_sRGB") === !0 && ae === St ? (R.format = op, R.minFilter = lt, R.generateMipmaps = !1) : _ = wb.sRGBToLinear(_) : (ae !== St || ne !== on) && console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.") : console.error("THREE.WebGLTextures: Unsupported texture color space:", j)), _;
|
|
12520
12520
|
}
|
|
12521
12521
|
this.allocateTextureUnit = J, this.resetTextureUnits = W, this.setTexture2D = N, this.setTexture2DArray = H, this.setTexture3D = ee, this.setTextureCube = Y, this.rebindTextures = Ne, this.setupRenderTarget = Xe, this.updateRenderTargetMipmap = yt, this.updateMultisampleRenderTarget = je, this.setupDepthRenderbuffer = Ce, this.setupFrameBufferTexture = Se, this.useMultisampledRTT = ct;
|
|
12522
12522
|
}
|
|
@@ -12531,11 +12531,11 @@ function A2(n, e, t) {
|
|
|
12531
12531
|
return n.UNSIGNED_SHORT_4_4_4_4;
|
|
12532
12532
|
if (r === vb)
|
|
12533
12533
|
return n.UNSIGNED_SHORT_5_5_5_1;
|
|
12534
|
-
if (r ===
|
|
12534
|
+
if (r === sp)
|
|
12535
12535
|
return n.BYTE;
|
|
12536
12536
|
if (r === gb)
|
|
12537
12537
|
return n.SHORT;
|
|
12538
|
-
if (r ===
|
|
12538
|
+
if (r === Hc)
|
|
12539
12539
|
return n.UNSIGNED_SHORT;
|
|
12540
12540
|
if (r === Bo)
|
|
12541
12541
|
return n.INT;
|
|
@@ -12557,7 +12557,7 @@ function A2(n, e, t) {
|
|
|
12557
12557
|
return n.DEPTH_COMPONENT;
|
|
12558
12558
|
if (r === Da)
|
|
12559
12559
|
return n.DEPTH_STENCIL;
|
|
12560
|
-
if (r ===
|
|
12560
|
+
if (r === op)
|
|
12561
12561
|
return o = e.get("EXT_sRGB"), o !== null ? o.SRGB_ALPHA_EXT : null;
|
|
12562
12562
|
if (r === ja)
|
|
12563
12563
|
return n.RED;
|
|
@@ -12565,31 +12565,31 @@ function A2(n, e, t) {
|
|
|
12565
12565
|
return n.RED_INTEGER;
|
|
12566
12566
|
if (r === bb)
|
|
12567
12567
|
return n.RG;
|
|
12568
|
-
if (r ===
|
|
12568
|
+
if (r === Zc)
|
|
12569
12569
|
return n.RG_INTEGER;
|
|
12570
12570
|
if (r === cl)
|
|
12571
12571
|
return n.RGBA_INTEGER;
|
|
12572
|
-
if (r ===
|
|
12572
|
+
if (r === mu || r === gu || r === yu || r === vu)
|
|
12573
12573
|
if (l === xt)
|
|
12574
12574
|
if (o = e.get("WEBGL_compressed_texture_s3tc_srgb"), o !== null) {
|
|
12575
|
-
if (r === fu)
|
|
12576
|
-
return o.COMPRESSED_SRGB_S3TC_DXT1_EXT;
|
|
12577
12575
|
if (r === mu)
|
|
12578
|
-
return o.
|
|
12576
|
+
return o.COMPRESSED_SRGB_S3TC_DXT1_EXT;
|
|
12579
12577
|
if (r === gu)
|
|
12580
|
-
return o.
|
|
12578
|
+
return o.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;
|
|
12581
12579
|
if (r === yu)
|
|
12580
|
+
return o.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;
|
|
12581
|
+
if (r === vu)
|
|
12582
12582
|
return o.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT;
|
|
12583
12583
|
} else
|
|
12584
12584
|
return null;
|
|
12585
12585
|
else if (o = e.get("WEBGL_compressed_texture_s3tc"), o !== null) {
|
|
12586
|
-
if (r === fu)
|
|
12587
|
-
return o.COMPRESSED_RGB_S3TC_DXT1_EXT;
|
|
12588
12586
|
if (r === mu)
|
|
12589
|
-
return o.
|
|
12587
|
+
return o.COMPRESSED_RGB_S3TC_DXT1_EXT;
|
|
12590
12588
|
if (r === gu)
|
|
12591
|
-
return o.
|
|
12589
|
+
return o.COMPRESSED_RGBA_S3TC_DXT1_EXT;
|
|
12592
12590
|
if (r === yu)
|
|
12591
|
+
return o.COMPRESSED_RGBA_S3TC_DXT3_EXT;
|
|
12592
|
+
if (r === vu)
|
|
12593
12593
|
return o.COMPRESSED_RGBA_S3TC_DXT5_EXT;
|
|
12594
12594
|
} else
|
|
12595
12595
|
return null;
|
|
@@ -12647,9 +12647,9 @@ function A2(n, e, t) {
|
|
|
12647
12647
|
return l === xt ? o.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR : o.COMPRESSED_RGBA_ASTC_12x12_KHR;
|
|
12648
12648
|
} else
|
|
12649
12649
|
return null;
|
|
12650
|
-
if (r ===
|
|
12650
|
+
if (r === bu || r === Vm || r === Um)
|
|
12651
12651
|
if (o = e.get("EXT_texture_compression_bptc"), o !== null) {
|
|
12652
|
-
if (r ===
|
|
12652
|
+
if (r === bu)
|
|
12653
12653
|
return l === xt ? o.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT : o.COMPRESSED_RGBA_BPTC_UNORM_EXT;
|
|
12654
12654
|
if (r === Vm)
|
|
12655
12655
|
return o.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;
|
|
@@ -12659,7 +12659,7 @@ function A2(n, e, t) {
|
|
|
12659
12659
|
return null;
|
|
12660
12660
|
if (r === o1 || r === Qm || r === $m || r === eg)
|
|
12661
12661
|
if (o = e.get("EXT_texture_compression_rgtc"), o !== null) {
|
|
12662
|
-
if (r ===
|
|
12662
|
+
if (r === bu)
|
|
12663
12663
|
return o.COMPRESSED_RED_RGTC1_EXT;
|
|
12664
12664
|
if (r === Qm)
|
|
12665
12665
|
return o.COMPRESSED_SIGNED_RED_RGTC1_EXT;
|
|
@@ -12684,7 +12684,7 @@ let es = class extends It {
|
|
|
12684
12684
|
}
|
|
12685
12685
|
};
|
|
12686
12686
|
const K2 = { type: "move" };
|
|
12687
|
-
class
|
|
12687
|
+
class Zu {
|
|
12688
12688
|
constructor() {
|
|
12689
12689
|
this._targetRay = null, this._grip = null, this._hand = null;
|
|
12690
12690
|
}
|
|
@@ -12765,13 +12765,13 @@ class O2 extends Gr {
|
|
|
12765
12765
|
let M = null, K = null;
|
|
12766
12766
|
this.cameraAutoUpdate = !0, this.enabled = !1, this.isPresenting = !1, this.getController = function(Y) {
|
|
12767
12767
|
let U = v[Y];
|
|
12768
|
-
return U === void 0 && (U = new
|
|
12768
|
+
return U === void 0 && (U = new Zu(), v[Y] = U), U.getTargetRaySpace();
|
|
12769
12769
|
}, this.getControllerGrip = function(Y) {
|
|
12770
12770
|
let U = v[Y];
|
|
12771
|
-
return U === void 0 && (U = new
|
|
12771
|
+
return U === void 0 && (U = new Zu(), v[Y] = U), U.getGripSpace();
|
|
12772
12772
|
}, this.getHand = function(Y) {
|
|
12773
12773
|
let U = v[Y];
|
|
12774
|
-
return U === void 0 && (U = new
|
|
12774
|
+
return U === void 0 && (U = new Zu(), v[Y] = U), U.getHandSpace();
|
|
12775
12775
|
};
|
|
12776
12776
|
function P(Y) {
|
|
12777
12777
|
const U = b.indexOf(Y.inputSource);
|
|
@@ -13266,10 +13266,10 @@ class Zb {
|
|
|
13266
13266
|
let F = !1;
|
|
13267
13267
|
if (T !== null) {
|
|
13268
13268
|
const xe = T.texture.format;
|
|
13269
|
-
F = xe === cl || xe ===
|
|
13269
|
+
F = xe === cl || xe === Zc || xe === wf;
|
|
13270
13270
|
}
|
|
13271
13271
|
if (F) {
|
|
13272
|
-
const xe = T.texture.type, Ke = xe === on || xe === Ri || xe ===
|
|
13272
|
+
const xe = T.texture.type, Ke = xe === on || xe === Ri || xe === Hc || xe === gr || xe === yb || xe === vb, Ye = ye.getClearColor(), Be = ye.getClearAlpha(), $e = Ye.r, Ve = Ye.g, Qe = Ye.b;
|
|
13273
13273
|
Ke ? (p[0] = $e, p[1] = Ve, p[2] = Qe, p[3] = Be, k.clearBufferuiv(k.COLOR, 0, p)) : (m[0] = $e, m[1] = Ve, m[2] = Qe, m[3] = Be, k.clearBufferiv(k.COLOR, 0, m));
|
|
13274
13274
|
} else
|
|
13275
13275
|
V |= k.COLOR_BUFFER_BIT;
|
|
@@ -13338,8 +13338,8 @@ class Zb {
|
|
|
13338
13338
|
else if (F.isInstancedMesh)
|
|
13339
13339
|
wt.renderInstances(Ot, Ut, F.count);
|
|
13340
13340
|
else if (B.isInstancedBufferGeometry) {
|
|
13341
|
-
const st = B._maxInstanceCount !== void 0 ? B._maxInstanceCount : 1 / 0,
|
|
13342
|
-
wt.renderInstances(Ot, Ut,
|
|
13341
|
+
const st = B._maxInstanceCount !== void 0 ? B._maxInstanceCount : 1 / 0, uu = Math.min(B.instanceCount, st);
|
|
13342
|
+
wt.renderInstances(Ot, Ut, uu);
|
|
13343
13343
|
} else
|
|
13344
13344
|
wt.render(Ot, Ut);
|
|
13345
13345
|
};
|
|
@@ -13511,25 +13511,25 @@ class Zb {
|
|
|
13511
13511
|
const xe = Z.fog, Ke = V.isMeshStandardMaterial ? Z.environment : null, Ye = T === null ? b.outputColorSpace : T.isXRRenderTarget === !0 ? T.texture.colorSpace : Ft, Be = (V.isMeshStandardMaterial ? Ht : ct).get(V.envMap || Ke), $e = V.vertexColors === !0 && !!B.attributes.color && B.attributes.color.itemSize === 4, Ve = !!B.attributes.tangent && (!!V.normalMap || V.anisotropy > 0), Qe = !!B.morphAttributes.position, Ot = !!B.morphAttributes.normal, Gi = !!B.morphAttributes.color;
|
|
13512
13512
|
let Ut = En;
|
|
13513
13513
|
V.toneMapped && (T === null || T.isXRRenderTarget === !0) && (Ut = b.toneMapping);
|
|
13514
|
-
const Wn = B.morphAttributes.position || B.morphAttributes.normal || B.morphAttributes.color, wt = Wn !== void 0 ? Wn.length : 0, st = je.get(V),
|
|
13514
|
+
const Wn = B.morphAttributes.position || B.morphAttributes.normal || B.morphAttributes.color, wt = Wn !== void 0 ? Wn.length : 0, st = je.get(V), uu = g.state.lights;
|
|
13515
13515
|
if (U === !0 && (re === !0 || E !== L)) {
|
|
13516
13516
|
const qi = E === L && V.id === I;
|
|
13517
13517
|
Ee.setState(V, E, qi);
|
|
13518
13518
|
}
|
|
13519
13519
|
let Rt = !1;
|
|
13520
|
-
V.version === st.__version ? (st.needsLights && st.lightsStateVersion !==
|
|
13520
|
+
V.version === st.__version ? (st.needsLights && st.lightsStateVersion !== uu.state.version || st.outputColorSpace !== Ye || F.isBatchedMesh && st.batching === !1 || !F.isBatchedMesh && st.batching === !0 || F.isInstancedMesh && st.instancing === !1 || !F.isInstancedMesh && st.instancing === !0 || F.isSkinnedMesh && st.skinning === !1 || !F.isSkinnedMesh && st.skinning === !0 || F.isInstancedMesh && st.instancingColor === !0 && F.instanceColor === null || F.isInstancedMesh && st.instancingColor === !1 && F.instanceColor !== null || st.envMap !== Be || V.fog === !0 && st.fog !== xe || st.numClippingPlanes !== void 0 && (st.numClippingPlanes !== Ee.numPlanes || st.numIntersection !== Ee.numIntersection) || st.vertexAlphas !== $e || st.vertexTangents !== Ve || st.morphTargets !== Qe || st.morphNormals !== Ot || st.morphColors !== Gi || st.toneMapping !== Ut || Ne.isWebGL2 === !0 && st.morphTargetsCount !== wt) && (Rt = !0) : (Rt = !0, st.__version = V.version);
|
|
13521
13521
|
let Zs = st.currentProgram;
|
|
13522
13522
|
Rt === !0 && (Zs = Il(V, Z, F));
|
|
13523
|
-
let Lm = !1, go = !1,
|
|
13523
|
+
let Lm = !1, go = !1, du = !1;
|
|
13524
13524
|
const oi = Zs.getUniforms(), Ys = st.uniforms;
|
|
13525
|
-
if (Xe.useProgram(Zs.program) && (Lm = !0, go = !0,
|
|
13525
|
+
if (Xe.useProgram(Zs.program) && (Lm = !0, go = !0, du = !0), V.id !== I && (I = V.id, go = !0), Lm || L !== E) {
|
|
13526
13526
|
oi.setValue(k, "projectionMatrix", E.projectionMatrix), oi.setValue(k, "viewMatrix", E.matrixWorldInverse);
|
|
13527
13527
|
const qi = oi.map.cameraPosition;
|
|
13528
13528
|
qi !== void 0 && qi.setValue(k, Pe.setFromMatrixPosition(E.matrixWorld)), Ne.logarithmicDepthBuffer && oi.setValue(
|
|
13529
13529
|
k,
|
|
13530
13530
|
"logDepthBufFC",
|
|
13531
13531
|
2 / (Math.log(E.far + 1) / Math.LN2)
|
|
13532
|
-
), (V.isMeshPhongMaterial || V.isMeshToonMaterial || V.isMeshLambertMaterial || V.isMeshBasicMaterial || V.isMeshStandardMaterial || V.isShaderMaterial) && oi.setValue(k, "isOrthographic", E.isOrthographicCamera === !0), L !== E && (L = E, go = !0,
|
|
13532
|
+
), (V.isMeshPhongMaterial || V.isMeshToonMaterial || V.isMeshLambertMaterial || V.isMeshBasicMaterial || V.isMeshStandardMaterial || V.isShaderMaterial) && oi.setValue(k, "isOrthographic", E.isOrthographicCamera === !0), L !== E && (L = E, go = !0, du = !0);
|
|
13533
13533
|
}
|
|
13534
13534
|
if (F.isSkinnedMesh) {
|
|
13535
13535
|
oi.setOptional(k, F, "bindMatrix"), oi.setOptional(k, F, "bindMatrixInverse");
|
|
@@ -13537,12 +13537,12 @@ class Zb {
|
|
|
13537
13537
|
qi && (Ne.floatVertexTextures ? (qi.boneTexture === null && qi.computeBoneTexture(), oi.setValue(k, "boneTexture", qi.boneTexture, Fe)) : console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."));
|
|
13538
13538
|
}
|
|
13539
13539
|
F.isBatchedMesh && (oi.setOptional(k, F, "batchingTexture"), oi.setValue(k, "batchingTexture", F._matricesTexture, Fe));
|
|
13540
|
-
const
|
|
13541
|
-
if ((
|
|
13540
|
+
const pu = B.morphAttributes;
|
|
13541
|
+
if ((pu.position !== void 0 || pu.normal !== void 0 || pu.color !== void 0 && Ne.isWebGL2 === !0) && q.update(F, B, Zs), (go || st.receiveShadow !== F.receiveShadow) && (st.receiveShadow = F.receiveShadow, oi.setValue(k, "receiveShadow", F.receiveShadow)), V.isMeshGouraudMaterial && V.envMap !== null && (Ys.envMap.value = Be, Ys.flipEnvMap.value = Be.isCubeTexture && Be.isRenderTargetTexture === !1 ? -1 : 1), go && (oi.setValue(k, "toneMappingExposure", b.toneMappingExposure), st.needsLights && IL(Ys, du), xe && V.fog === !0 && ae.refreshFogUniforms(Ys, xe), ae.refreshMaterialUniforms(Ys, V, W, X, pe), Jh.upload(k, xm(st), Ys, Fe)), V.isShaderMaterial && V.uniformsNeedUpdate === !0 && (Jh.upload(k, xm(st), Ys, Fe), V.uniformsNeedUpdate = !1), V.isSpriteMaterial && oi.setValue(k, "center", F.center), oi.setValue(k, "modelViewMatrix", F.modelViewMatrix), oi.setValue(k, "normalMatrix", F.normalMatrix), oi.setValue(k, "modelMatrix", F.matrixWorld), V.isShaderMaterial || V.isRawShaderMaterial) {
|
|
13542
13542
|
const qi = V.uniformsGroups;
|
|
13543
|
-
for (let
|
|
13543
|
+
for (let fu = 0, _L = qi.length; fu < _L; fu++)
|
|
13544
13544
|
if (Ne.isWebGL2) {
|
|
13545
|
-
const Cm = qi[
|
|
13545
|
+
const Cm = qi[fu];
|
|
13546
13546
|
We.update(Cm, Zs), We.bind(Cm, Zs);
|
|
13547
13547
|
} else
|
|
13548
13548
|
console.warn("THREE.WebGLRenderer: Uniform Buffer Objects can only be used with WebGL 2.");
|
|
@@ -13654,7 +13654,7 @@ class Zb {
|
|
|
13654
13654
|
set outputColorSpace(e) {
|
|
13655
13655
|
this._outputColorSpace = e;
|
|
13656
13656
|
const t = this.getContext();
|
|
13657
|
-
t.drawingBufferColorSpace = e === _f ? "display-p3" : "srgb", t.unpackColorSpace = dt.workingColorSpace ===
|
|
13657
|
+
t.drawingBufferColorSpace = e === _f ? "display-p3" : "srgb", t.unpackColorSpace = dt.workingColorSpace === Yc ? "display-p3" : "srgb";
|
|
13658
13658
|
}
|
|
13659
13659
|
get physicallyCorrectLights() {
|
|
13660
13660
|
return console.warn("THREE.WebGLRenderer: The property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."), !this.useLegacyLights;
|
|
@@ -13692,7 +13692,7 @@ class W2 extends It {
|
|
|
13692
13692
|
}
|
|
13693
13693
|
class N2 {
|
|
13694
13694
|
constructor(e, t) {
|
|
13695
|
-
this.isInterleavedBuffer = !0, this.array = e, this.stride = t, this.count = e !== void 0 ? e.length / t : 0, this.usage =
|
|
13695
|
+
this.isInterleavedBuffer = !0, this.array = e, this.stride = t, this.count = e !== void 0 ? e.length / t : 0, this.usage = ap, this._updateRange = { offset: 0, count: -1 }, this.updateRanges = [], this.version = 0, this.uuid = ln();
|
|
13696
13696
|
}
|
|
13697
13697
|
onUploadCallback() {
|
|
13698
13698
|
}
|
|
@@ -13844,7 +13844,7 @@ class Of {
|
|
|
13844
13844
|
};
|
|
13845
13845
|
}
|
|
13846
13846
|
}
|
|
13847
|
-
const Dg = /* @__PURE__ */ new A(), jg = /* @__PURE__ */ new ht(), Fg = /* @__PURE__ */ new ht(), k2 = /* @__PURE__ */ new A(), Bg = /* @__PURE__ */ new Oe(), Jl = /* @__PURE__ */ new A(),
|
|
13847
|
+
const Dg = /* @__PURE__ */ new A(), jg = /* @__PURE__ */ new ht(), Fg = /* @__PURE__ */ new ht(), k2 = /* @__PURE__ */ new A(), Bg = /* @__PURE__ */ new Oe(), Jl = /* @__PURE__ */ new A(), Yu = /* @__PURE__ */ new pn(), Jg = /* @__PURE__ */ new Oe(), Du = /* @__PURE__ */ new oo();
|
|
13848
13848
|
class H2 extends ni {
|
|
13849
13849
|
constructor(e, t) {
|
|
13850
13850
|
super(e, t), this.isSkinnedMesh = !0, this.type = "SkinnedMesh", this.bindMode = Gm, this.bindMatrix = new Oe(), this.bindMatrixInverse = new Oe(), this.boundingBox = null, this.boundingSphere = null;
|
|
@@ -13868,7 +13868,7 @@ class H2 extends ni {
|
|
|
13868
13868
|
}
|
|
13869
13869
|
raycast(e, t) {
|
|
13870
13870
|
const i = this.material, s = this.matrixWorld;
|
|
13871
|
-
i !== void 0 && (this.boundingSphere === null && this.computeBoundingSphere(),
|
|
13871
|
+
i !== void 0 && (this.boundingSphere === null && this.computeBoundingSphere(), Yu.copy(this.boundingSphere), Yu.applyMatrix4(s), e.ray.intersectsSphere(Yu) !== !1 && (Jg.copy(s).invert(), Du.copy(e.ray).applyMatrix4(Jg), !(this.boundingBox !== null && Du.intersectsBox(this.boundingBox) === !1) && this._computeIntersections(e, t, Du)));
|
|
13872
13872
|
}
|
|
13873
13873
|
getVertexPosition(e, t) {
|
|
13874
13874
|
return super.getVertexPosition(e, t), this.applyBoneTransform(e, t), t;
|
|
@@ -14007,7 +14007,7 @@ class qf {
|
|
|
14007
14007
|
return e;
|
|
14008
14008
|
}
|
|
14009
14009
|
}
|
|
14010
|
-
class
|
|
14010
|
+
class cp extends ut {
|
|
14011
14011
|
constructor(e, t, i, s = 1) {
|
|
14012
14012
|
super(e, t, i), this.isInstancedBufferAttribute = !0, this.meshPerAttribute = s;
|
|
14013
14013
|
}
|
|
@@ -14022,7 +14022,7 @@ class hp extends ut {
|
|
|
14022
14022
|
const Qr = /* @__PURE__ */ new Oe(), Ug = /* @__PURE__ */ new Oe(), Vl = [], Qg = /* @__PURE__ */ new Et(), Y2 = /* @__PURE__ */ new Oe(), So = /* @__PURE__ */ new ni(), Lo = /* @__PURE__ */ new pn();
|
|
14023
14023
|
class D2 extends ni {
|
|
14024
14024
|
constructor(e, t, i) {
|
|
14025
|
-
super(e, t), this.isInstancedMesh = !0, this.instanceMatrix = new
|
|
14025
|
+
super(e, t), this.isInstancedMesh = !0, this.instanceMatrix = new cp(new Float32Array(i * 16), 16), this.instanceColor = null, this.count = i, this.boundingBox = null, this.boundingSphere = null;
|
|
14026
14026
|
for (let s = 0; s < i; s++)
|
|
14027
14027
|
this.setMatrixAt(s, Y2);
|
|
14028
14028
|
}
|
|
@@ -14060,7 +14060,7 @@ class D2 extends ni {
|
|
|
14060
14060
|
}
|
|
14061
14061
|
}
|
|
14062
14062
|
setColorAt(e, t) {
|
|
14063
|
-
this.instanceColor === null && (this.instanceColor = new
|
|
14063
|
+
this.instanceColor === null && (this.instanceColor = new cp(new Float32Array(this.instanceMatrix.count * 3), 3)), t.toArray(this.instanceColor.array, e * 3);
|
|
14064
14064
|
}
|
|
14065
14065
|
setMatrixAt(e, t) {
|
|
14066
14066
|
t.toArray(this.instanceMatrix.array, e * 16);
|
|
@@ -14079,7 +14079,7 @@ class Db extends An {
|
|
|
14079
14079
|
return super.copy(e), this.color.copy(e.color), this.map = e.map, this.linewidth = e.linewidth, this.linecap = e.linecap, this.linejoin = e.linejoin, this.fog = e.fog, this;
|
|
14080
14080
|
}
|
|
14081
14081
|
}
|
|
14082
|
-
const $g = /* @__PURE__ */ new A(), ey = /* @__PURE__ */ new A(), ty = /* @__PURE__ */ new Oe(),
|
|
14082
|
+
const $g = /* @__PURE__ */ new A(), ey = /* @__PURE__ */ new A(), ty = /* @__PURE__ */ new Oe(), ju = /* @__PURE__ */ new oo(), Ul = /* @__PURE__ */ new pn();
|
|
14083
14083
|
let Xf = class extends It {
|
|
14084
14084
|
constructor(e = new ai(), t = new Db()) {
|
|
14085
14085
|
super(), this.isLine = !0, this.type = "Line", this.geometry = e, this.material = t, this.updateMorphTargets();
|
|
@@ -14102,13 +14102,13 @@ let Xf = class extends It {
|
|
|
14102
14102
|
const i = this.geometry, s = this.matrixWorld, r = e.params.Line.threshold, a = i.drawRange;
|
|
14103
14103
|
if (i.boundingSphere === null && i.computeBoundingSphere(), Ul.copy(i.boundingSphere), Ul.applyMatrix4(s), Ul.radius += r, e.ray.intersectsSphere(Ul) === !1)
|
|
14104
14104
|
return;
|
|
14105
|
-
ty.copy(s).invert(),
|
|
14105
|
+
ty.copy(s).invert(), ju.copy(e.ray).applyMatrix4(ty);
|
|
14106
14106
|
const o = r / ((this.scale.x + this.scale.y + this.scale.z) / 3), l = o * o, c = new A(), d = new A(), h = new A(), u = new A(), p = this.isLineSegments ? 2 : 1, m = i.index, g = i.attributes.position;
|
|
14107
14107
|
if (m !== null) {
|
|
14108
14108
|
const f = Math.max(0, a.start), v = Math.min(m.count, a.start + a.count);
|
|
14109
14109
|
for (let b = f, x = v - 1; b < x; b += p) {
|
|
14110
14110
|
const S = m.getX(b), C = m.getX(b + 1);
|
|
14111
|
-
if (c.fromBufferAttribute(g, S), d.fromBufferAttribute(g, C),
|
|
14111
|
+
if (c.fromBufferAttribute(g, S), d.fromBufferAttribute(g, C), ju.distanceSqToSegment(c, d, u, h) > l)
|
|
14112
14112
|
continue;
|
|
14113
14113
|
u.applyMatrix4(this.matrixWorld);
|
|
14114
14114
|
const I = e.ray.origin.distanceTo(u);
|
|
@@ -14126,7 +14126,7 @@ let Xf = class extends It {
|
|
|
14126
14126
|
} else {
|
|
14127
14127
|
const f = Math.max(0, a.start), v = Math.min(g.count, a.start + a.count);
|
|
14128
14128
|
for (let b = f, x = v - 1; b < x; b += p) {
|
|
14129
|
-
if (c.fromBufferAttribute(g, b), d.fromBufferAttribute(g, b + 1),
|
|
14129
|
+
if (c.fromBufferAttribute(g, b), d.fromBufferAttribute(g, b + 1), ju.distanceSqToSegment(c, d, u, h) > l)
|
|
14130
14130
|
continue;
|
|
14131
14131
|
u.applyMatrix4(this.matrixWorld);
|
|
14132
14132
|
const C = e.ray.origin.distanceTo(u);
|
|
@@ -14187,7 +14187,7 @@ class jb extends An {
|
|
|
14187
14187
|
return super.copy(e), this.color.copy(e.color), this.map = e.map, this.alphaMap = e.alphaMap, this.size = e.size, this.sizeAttenuation = e.sizeAttenuation, this.fog = e.fog, this;
|
|
14188
14188
|
}
|
|
14189
14189
|
}
|
|
14190
|
-
const sy = /* @__PURE__ */ new Oe(),
|
|
14190
|
+
const sy = /* @__PURE__ */ new Oe(), up = /* @__PURE__ */ new oo(), Ql = /* @__PURE__ */ new pn(), $l = /* @__PURE__ */ new A();
|
|
14191
14191
|
class B2 extends It {
|
|
14192
14192
|
constructor(e = new ai(), t = new jb()) {
|
|
14193
14193
|
super(), this.isPoints = !0, this.type = "Points", this.geometry = e, this.material = t, this.updateMorphTargets();
|
|
@@ -14199,7 +14199,7 @@ class B2 extends It {
|
|
|
14199
14199
|
const i = this.geometry, s = this.matrixWorld, r = e.params.Points.threshold, a = i.drawRange;
|
|
14200
14200
|
if (i.boundingSphere === null && i.computeBoundingSphere(), Ql.copy(i.boundingSphere), Ql.applyMatrix4(s), Ql.radius += r, e.ray.intersectsSphere(Ql) === !1)
|
|
14201
14201
|
return;
|
|
14202
|
-
sy.copy(s).invert(),
|
|
14202
|
+
sy.copy(s).invert(), up.copy(e.ray).applyMatrix4(sy);
|
|
14203
14203
|
const o = r / ((this.scale.x + this.scale.y + this.scale.z) / 3), l = o * o, c = i.index, h = i.attributes.position;
|
|
14204
14204
|
if (c !== null) {
|
|
14205
14205
|
const u = Math.max(0, a.start), p = Math.min(c.count, a.start + a.count);
|
|
@@ -14228,10 +14228,10 @@ class B2 extends It {
|
|
|
14228
14228
|
}
|
|
14229
14229
|
}
|
|
14230
14230
|
function ry(n, e, t, i, s, r, a) {
|
|
14231
|
-
const o =
|
|
14231
|
+
const o = up.distanceSqToPoint(n);
|
|
14232
14232
|
if (o < t) {
|
|
14233
14233
|
const l = new A();
|
|
14234
|
-
|
|
14234
|
+
up.closestPointToPoint(n, l), l.applyMatrix4(i);
|
|
14235
14235
|
const c = s.ray.origin.distanceTo(l);
|
|
14236
14236
|
if (c < s.near || c > s.far)
|
|
14237
14237
|
return;
|
|
@@ -14532,7 +14532,7 @@ class Xn {
|
|
|
14532
14532
|
case Fa:
|
|
14533
14533
|
t = this.InterpolantFactoryMethodLinear;
|
|
14534
14534
|
break;
|
|
14535
|
-
case
|
|
14535
|
+
case xu:
|
|
14536
14536
|
t = this.InterpolantFactoryMethodSmooth;
|
|
14537
14537
|
break;
|
|
14538
14538
|
}
|
|
@@ -14554,7 +14554,7 @@ class Xn {
|
|
|
14554
14554
|
case this.InterpolantFactoryMethodLinear:
|
|
14555
14555
|
return Fa;
|
|
14556
14556
|
case this.InterpolantFactoryMethodSmooth:
|
|
14557
|
-
return
|
|
14557
|
+
return xu;
|
|
14558
14558
|
}
|
|
14559
14559
|
}
|
|
14560
14560
|
getValueSize() {
|
|
@@ -14627,7 +14627,7 @@ class Xn {
|
|
|
14627
14627
|
// removes equivalent sequential keys as common in morph target sequences
|
|
14628
14628
|
// (0,0,0,0,1,1,1,0,0,0,0,0,0,0) --> (0,0,1,1,0,0)
|
|
14629
14629
|
optimize() {
|
|
14630
|
-
const e = this.times.slice(), t = this.values.slice(), i = this.getValueSize(), s = this.getInterpolation() ===
|
|
14630
|
+
const e = this.times.slice(), t = this.values.slice(), i = this.getValueSize(), s = this.getInterpolation() === xu, r = e.length - 1;
|
|
14631
14631
|
let a = 1;
|
|
14632
14632
|
for (let o = 1; o < r; ++o) {
|
|
14633
14633
|
let l = !1;
|
|
@@ -15170,7 +15170,7 @@ class Wf extends It {
|
|
|
15170
15170
|
return t.object.color = this.color.getHex(), t.object.intensity = this.intensity, this.groundColor !== void 0 && (t.object.groundColor = this.groundColor.getHex()), this.distance !== void 0 && (t.object.distance = this.distance), this.angle !== void 0 && (t.object.angle = this.angle), this.decay !== void 0 && (t.object.decay = this.decay), this.penumbra !== void 0 && (t.object.penumbra = this.penumbra), this.shadow !== void 0 && (t.object.shadow = this.shadow.toJSON()), t;
|
|
15171
15171
|
}
|
|
15172
15172
|
}
|
|
15173
|
-
const
|
|
15173
|
+
const Fu = /* @__PURE__ */ new Oe(), oy = /* @__PURE__ */ new A(), ly = /* @__PURE__ */ new A();
|
|
15174
15174
|
class Nf {
|
|
15175
15175
|
constructor(e) {
|
|
15176
15176
|
this.camera = e, this.bias = 0, this.normalBias = 0, this.radius = 1, this.blurSamples = 8, this.mapSize = new ge(512, 512), this.map = null, this.mapPass = null, this.matrix = new Oe(), this.autoUpdate = !0, this.needsUpdate = !1, this._frustum = new Af(), this._frameExtents = new ge(1, 1), this._viewportCount = 1, this._viewports = [
|
|
@@ -15185,7 +15185,7 @@ class Nf {
|
|
|
15185
15185
|
}
|
|
15186
15186
|
updateMatrices(e) {
|
|
15187
15187
|
const t = this.camera, i = this.matrix;
|
|
15188
|
-
oy.setFromMatrixPosition(e.matrixWorld), t.position.copy(oy), ly.setFromMatrixPosition(e.target.matrixWorld), t.lookAt(ly), t.updateMatrixWorld(),
|
|
15188
|
+
oy.setFromMatrixPosition(e.matrixWorld), t.position.copy(oy), ly.setFromMatrixPosition(e.target.matrixWorld), t.lookAt(ly), t.updateMatrixWorld(), Fu.multiplyMatrices(t.projectionMatrix, t.matrixWorldInverse), this._frustum.setFromProjectionMatrix(Fu), i.set(
|
|
15189
15189
|
0.5,
|
|
15190
15190
|
0,
|
|
15191
15191
|
0,
|
|
@@ -15202,7 +15202,7 @@ class Nf {
|
|
|
15202
15202
|
0,
|
|
15203
15203
|
0,
|
|
15204
15204
|
1
|
|
15205
|
-
), i.multiply(
|
|
15205
|
+
), i.multiply(Fu);
|
|
15206
15206
|
}
|
|
15207
15207
|
getViewport(e) {
|
|
15208
15208
|
return this._viewports[e];
|
|
@@ -15253,7 +15253,7 @@ class cw extends Wf {
|
|
|
15253
15253
|
return super.copy(e, t), this.distance = e.distance, this.angle = e.angle, this.penumbra = e.penumbra, this.decay = e.decay, this.target = e.target.clone(), this.shadow = e.shadow.clone(), this;
|
|
15254
15254
|
}
|
|
15255
15255
|
}
|
|
15256
|
-
const hy = /* @__PURE__ */ new Oe(), Co = /* @__PURE__ */ new A(),
|
|
15256
|
+
const hy = /* @__PURE__ */ new Oe(), Co = /* @__PURE__ */ new A(), Bu = /* @__PURE__ */ new A();
|
|
15257
15257
|
class uw extends Nf {
|
|
15258
15258
|
constructor() {
|
|
15259
15259
|
super(new di(90, 1, 0.5, 500)), this.isPointLightShadow = !0, this._frameExtents = new ge(4, 2), this._viewportCount = 6, this._viewports = [
|
|
@@ -15299,7 +15299,7 @@ class uw extends Nf {
|
|
|
15299
15299
|
}
|
|
15300
15300
|
updateMatrices(e, t = 0) {
|
|
15301
15301
|
const i = this.camera, s = this.matrix, r = e.distance || i.far;
|
|
15302
|
-
r !== i.far && (i.far = r, i.updateProjectionMatrix()), Co.setFromMatrixPosition(e.matrixWorld), i.position.copy(Co),
|
|
15302
|
+
r !== i.far && (i.far = r, i.updateProjectionMatrix()), Co.setFromMatrixPosition(e.matrixWorld), i.position.copy(Co), Bu.copy(i.position), Bu.add(this._cubeDirections[t]), i.up.copy(this._cubeUps[t]), i.lookAt(Bu), i.updateMatrixWorld(), s.makeTranslation(-Co.x, -Co.y, -Co.z), hy.multiplyMatrices(i.projectionMatrix, i.matrixWorldInverse), this._frustum.setFromProjectionMatrix(hy);
|
|
15303
15303
|
}
|
|
15304
15304
|
}
|
|
15305
15305
|
class dw extends Wf {
|
|
@@ -15321,7 +15321,7 @@ class dw extends Wf {
|
|
|
15321
15321
|
}
|
|
15322
15322
|
class pw extends Nf {
|
|
15323
15323
|
constructor() {
|
|
15324
|
-
super(new
|
|
15324
|
+
super(new Bc(-5, 5, 5, -5, 0.5, 500)), this.isDirectionalLightShadow = !0;
|
|
15325
15325
|
}
|
|
15326
15326
|
}
|
|
15327
15327
|
class fw extends Wf {
|
|
@@ -15731,22 +15731,22 @@ class Iw {
|
|
|
15731
15731
|
t.isPerspectiveCamera ? (this.ray.origin.setFromMatrixPosition(t.matrixWorld), this.ray.direction.set(e.x, e.y, 0.5).unproject(t).sub(this.ray.origin).normalize(), this.camera = t) : t.isOrthographicCamera ? (this.ray.origin.set(e.x, e.y, (t.near + t.far) / (t.near - t.far)).unproject(t), this.ray.direction.set(0, 0, -1).transformDirection(t.matrixWorld), this.camera = t) : console.error("THREE.Raycaster: Unsupported camera type: " + t.type);
|
|
15732
15732
|
}
|
|
15733
15733
|
intersectObject(e, t = !0, i = []) {
|
|
15734
|
-
return
|
|
15734
|
+
return dp(e, this, i, t), i.sort(uy), i;
|
|
15735
15735
|
}
|
|
15736
15736
|
intersectObjects(e, t = !0, i = []) {
|
|
15737
15737
|
for (let s = 0, r = e.length; s < r; s++)
|
|
15738
|
-
|
|
15738
|
+
dp(e[s], this, i, t);
|
|
15739
15739
|
return i.sort(uy), i;
|
|
15740
15740
|
}
|
|
15741
15741
|
}
|
|
15742
15742
|
function uy(n, e) {
|
|
15743
15743
|
return n.distance - e.distance;
|
|
15744
15744
|
}
|
|
15745
|
-
function
|
|
15745
|
+
function dp(n, e, t, i) {
|
|
15746
15746
|
if (n.layers.test(e.layers) && n.raycast(e, t), i === !0) {
|
|
15747
15747
|
const s = n.children;
|
|
15748
15748
|
for (let r = 0, a = s.length; r < a; r++)
|
|
15749
|
-
|
|
15749
|
+
dp(s[r], e, t, !0);
|
|
15750
15750
|
}
|
|
15751
15751
|
}
|
|
15752
15752
|
class dy {
|
|
@@ -15982,7 +15982,7 @@ class uo {
|
|
|
15982
15982
|
dispose() {
|
|
15983
15983
|
}
|
|
15984
15984
|
}
|
|
15985
|
-
const _w = new
|
|
15985
|
+
const _w = new Bc(-1, 1, 1, -1, 0, 1);
|
|
15986
15986
|
class Gw extends ai {
|
|
15987
15987
|
constructor() {
|
|
15988
15988
|
super(), this.setAttribute("position", new ji([-1, 3, 0, -1, -1, 0, 3, -1, 0], 3)), this.setAttribute("uv", new ji([0, 2, 0, 0, 2, 0], 2));
|
|
@@ -16063,7 +16063,7 @@ class ts extends uo {
|
|
|
16063
16063
|
const o = 4, l = 4;
|
|
16064
16064
|
this.separableBlurMaterial1 = this.getSeperableBlurMaterial(o), this.separableBlurMaterial1.uniforms.texSize.value.set(r, a), this.separableBlurMaterial1.uniforms.kernelRadius.value = 1, this.separableBlurMaterial2 = this.getSeperableBlurMaterial(l), this.separableBlurMaterial2.uniforms.texSize.value.set(Math.round(r / 2), Math.round(a / 2)), this.separableBlurMaterial2.uniforms.kernelRadius.value = l, this.overlayMaterial = this.getOverlayMaterial();
|
|
16065
16065
|
const c = Ub;
|
|
16066
|
-
this.copyUniforms =
|
|
16066
|
+
this.copyUniforms = Fc.clone(c.uniforms), this.materialCopy = new pi({
|
|
16067
16067
|
uniforms: this.copyUniforms,
|
|
16068
16068
|
vertexShader: c.vertexShader,
|
|
16069
16069
|
fragmentShader: c.fragmentShader,
|
|
@@ -16329,7 +16329,7 @@ class ts extends uo {
|
|
|
16329
16329
|
finalColor += + visibilityFactor * (1.0 - maskColor.r) * (1.0 - patternColor.r);
|
|
16330
16330
|
gl_FragColor = finalColor;
|
|
16331
16331
|
}`,
|
|
16332
|
-
blending:
|
|
16332
|
+
blending: $d,
|
|
16333
16333
|
depthTest: !1,
|
|
16334
16334
|
depthWrite: !1,
|
|
16335
16335
|
transparent: !0
|
|
@@ -16340,7 +16340,7 @@ ts.BlurDirectionX = new ge(1, 0);
|
|
|
16340
16340
|
ts.BlurDirectionY = new ge(0, 1);
|
|
16341
16341
|
class Qb extends uo {
|
|
16342
16342
|
constructor(e, t) {
|
|
16343
|
-
super(), this.textureID = t !== void 0 ? t : "tDiffuse", e instanceof pi ? (this.uniforms = e.uniforms, this.material = e) : e && (this.uniforms =
|
|
16343
|
+
super(), this.textureID = t !== void 0 ? t : "tDiffuse", e instanceof pi ? (this.uniforms = e.uniforms, this.material = e) : e && (this.uniforms = Fc.clone(e.uniforms), this.material = new pi({
|
|
16344
16344
|
name: e.name !== void 0 ? e.name : "unspecified",
|
|
16345
16345
|
defines: Object.assign({}, e.defines),
|
|
16346
16346
|
uniforms: this.uniforms,
|
|
@@ -16627,7 +16627,7 @@ const Aw = {
|
|
|
16627
16627
|
}
|
|
16628
16628
|
`
|
|
16629
16629
|
)
|
|
16630
|
-
}, fy = { type: "change" },
|
|
16630
|
+
}, fy = { type: "change" }, Ju = { type: "start" }, my = { type: "end" }, ih = new oo(), gy = new Cn(), Rw = Math.cos(70 * Uo.DEG2RAD);
|
|
16631
16631
|
class Kw extends Gr {
|
|
16632
16632
|
constructor(e, t) {
|
|
16633
16633
|
super(), this.object = e, this.domElement = t, this.domElement.style.touchAction = "none", this.enabled = !0, this.target = new A(), this.cursor = new A(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: Kr.ROTATE, MIDDLE: Kr.DOLLY, RIGHT: Kr.PAN }, this.touches = { ONE: Or.ROTATE, TWO: Or.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this.getPolarAngle = function() {
|
|
@@ -16893,7 +16893,7 @@ class Kw extends Gr {
|
|
|
16893
16893
|
default:
|
|
16894
16894
|
r = s.NONE;
|
|
16895
16895
|
}
|
|
16896
|
-
r !== s.NONE && i.dispatchEvent(
|
|
16896
|
+
r !== s.NONE && i.dispatchEvent(Ju);
|
|
16897
16897
|
}
|
|
16898
16898
|
function Zt(q) {
|
|
16899
16899
|
switch (r) {
|
|
@@ -16915,7 +16915,7 @@ class Kw extends Gr {
|
|
|
16915
16915
|
}
|
|
16916
16916
|
}
|
|
16917
16917
|
function R(q) {
|
|
16918
|
-
i.enabled === !1 || i.enableZoom === !1 || r !== s.NONE || (q.preventDefault(), i.dispatchEvent(
|
|
16918
|
+
i.enabled === !1 || i.enableZoom === !1 || r !== s.NONE || (q.preventDefault(), i.dispatchEvent(Ju), pe(q), i.dispatchEvent(my));
|
|
16919
16919
|
}
|
|
16920
16920
|
function _(q) {
|
|
16921
16921
|
i.enabled === !1 || i.enablePan === !1 || me(q);
|
|
@@ -16957,7 +16957,7 @@ class Kw extends Gr {
|
|
|
16957
16957
|
default:
|
|
16958
16958
|
r = s.NONE;
|
|
16959
16959
|
}
|
|
16960
|
-
r !== s.NONE && i.dispatchEvent(
|
|
16960
|
+
r !== s.NONE && i.dispatchEvent(Ju);
|
|
16961
16961
|
}
|
|
16962
16962
|
function ae(q) {
|
|
16963
16963
|
switch (ce(q), r) {
|
|
@@ -17088,7 +17088,7 @@ class qw extends uo {
|
|
|
17088
17088
|
constructor() {
|
|
17089
17089
|
super();
|
|
17090
17090
|
const e = Ow;
|
|
17091
|
-
this.uniforms =
|
|
17091
|
+
this.uniforms = Fc.clone(e.uniforms), this.material = new J2({
|
|
17092
17092
|
name: e.name,
|
|
17093
17093
|
uniforms: this.uniforms,
|
|
17094
17094
|
vertexShader: e.vertexShader,
|
|
@@ -17536,7 +17536,7 @@ class Zw {
|
|
|
17536
17536
|
this._task || (this._task = Hw.call(this)), this._task.next();
|
|
17537
17537
|
}
|
|
17538
17538
|
}
|
|
17539
|
-
const ex = 0, Yw = 1, Yf = 2, vy = 2,
|
|
17539
|
+
const ex = 0, Yw = 1, Yf = 2, vy = 2, Vu = 1.25, by = 1, br = 6 * 4 + 4 + 4, Vc = 65535, Dw = Math.pow(2, -24), Uu = Symbol("SKIP_GENERATION");
|
|
17540
17540
|
function tx(n) {
|
|
17541
17541
|
return n.index ? n.index.count : n.attributes.position.count;
|
|
17542
17542
|
}
|
|
@@ -17621,7 +17621,7 @@ function To(n) {
|
|
|
17621
17621
|
const e = n[3] - n[0], t = n[4] - n[1], i = n[5] - n[2];
|
|
17622
17622
|
return 2 * (e * t + t * i + i * e);
|
|
17623
17623
|
}
|
|
17624
|
-
function
|
|
17624
|
+
function Qu(n, e, t, i, s = null) {
|
|
17625
17625
|
let r = 1 / 0, a = 1 / 0, o = 1 / 0, l = -1 / 0, c = -1 / 0, d = -1 / 0, h = 1 / 0, u = 1 / 0, p = 1 / 0, m = -1 / 0, y = -1 / 0, g = -1 / 0;
|
|
17626
17626
|
const f = s !== null;
|
|
17627
17627
|
for (let v = e * 6, b = (e + t) * 6; v < b; v += 6) {
|
|
@@ -17684,7 +17684,7 @@ function Qw(n, e, t, i, s, r) {
|
|
|
17684
17684
|
a = xy(n), a !== -1 && (o = $w(t, i, s, a));
|
|
17685
17685
|
else if (r === Yf) {
|
|
17686
17686
|
const l = To(n);
|
|
17687
|
-
let c =
|
|
17687
|
+
let c = Vu * s;
|
|
17688
17688
|
const d = i * 6, h = (i + s) * 6;
|
|
17689
17689
|
for (let u = 0; u < 3; u++) {
|
|
17690
17690
|
const p = e[u], g = (e[u + 3] - p) / Jn;
|
|
@@ -17724,7 +17724,7 @@ function Qw(n, e, t, i, s, r) {
|
|
|
17724
17724
|
C !== 0 && (M = To(I) / l);
|
|
17725
17725
|
let K = 0;
|
|
17726
17726
|
T !== 0 && (K = To(L) / l);
|
|
17727
|
-
const P = by +
|
|
17727
|
+
const P = by + Vu * (M * C + K * T);
|
|
17728
17728
|
P < c && (a = u, c = P, o = S.candidate);
|
|
17729
17729
|
}
|
|
17730
17730
|
} else {
|
|
@@ -17755,7 +17755,7 @@ function Qw(n, e, t, i, s, r) {
|
|
|
17755
17755
|
v !== 0 && (L = To(ah) / l);
|
|
17756
17756
|
const K = s - v;
|
|
17757
17757
|
K !== 0 && (M = To(I) / l);
|
|
17758
|
-
const P = by +
|
|
17758
|
+
const P = by + Vu * (L * v + M * K);
|
|
17759
17759
|
P < c && (a = u, c = P, o = x.candidate);
|
|
17760
17760
|
}
|
|
17761
17761
|
}
|
|
@@ -17832,7 +17832,7 @@ function n_(n, e) {
|
|
|
17832
17832
|
} else
|
|
17833
17833
|
for (let x of f) {
|
|
17834
17834
|
const S = new oh();
|
|
17835
|
-
S.boundingData = new Float32Array(6),
|
|
17835
|
+
S.boundingData = new Float32Array(6), Qu(m, x.offset, x.count, S.boundingData, p), b(S, x.offset, x.count, p), g.push(S);
|
|
17836
17836
|
}
|
|
17837
17837
|
return g;
|
|
17838
17838
|
function v(x) {
|
|
@@ -17850,9 +17850,9 @@ function n_(n, e) {
|
|
|
17850
17850
|
else {
|
|
17851
17851
|
x.splitAxis = L.axis;
|
|
17852
17852
|
const K = new oh(), P = S, G = M - S;
|
|
17853
|
-
x.left = K, K.boundingData = new Float32Array(6),
|
|
17853
|
+
x.left = K, K.boundingData = new Float32Array(6), Qu(m, P, G, K.boundingData, p), b(K, P, G, p, I + 1);
|
|
17854
17854
|
const w = new oh(), O = M, X = C - G;
|
|
17855
|
-
x.right = w, w.boundingData = new Float32Array(6),
|
|
17855
|
+
x.right = w, w.boundingData = new Float32Array(6), Qu(m, O, X, w.boundingData, p), b(w, O, X, p, I + 1);
|
|
17856
17856
|
}
|
|
17857
17857
|
return x;
|
|
17858
17858
|
}
|
|
@@ -17882,7 +17882,7 @@ function s_(n, e) {
|
|
|
17882
17882
|
s[p + f] = g[f];
|
|
17883
17883
|
if (y) {
|
|
17884
17884
|
const f = u.offset, v = u.count;
|
|
17885
|
-
return r[p + 6] = f, a[m + 14] = v, a[m + 15] =
|
|
17885
|
+
return r[p + 6] = f, a[m + 14] = v, a[m + 15] = Vc, h + br;
|
|
17886
17886
|
} else {
|
|
17887
17887
|
const f = u.left, v = u.right, b = u.splitAxis;
|
|
17888
17888
|
let x;
|
|
@@ -17984,7 +17984,7 @@ const r_ = function() {
|
|
|
17984
17984
|
return !1;
|
|
17985
17985
|
};
|
|
17986
17986
|
}(), o_ = 1e-15;
|
|
17987
|
-
function
|
|
17987
|
+
function $u(n) {
|
|
17988
17988
|
return Math.abs(n) < o_;
|
|
17989
17989
|
}
|
|
17990
17990
|
class dn extends ui {
|
|
@@ -18025,13 +18025,13 @@ dn.prototype.intersectsTriangle = function() {
|
|
|
18025
18025
|
for (let S = 0; S < 3; S++) {
|
|
18026
18026
|
const { start: C, end: T } = d;
|
|
18027
18027
|
C.copy(v[S]), T.copy(v[(S + 1) % 3]), d.delta(a);
|
|
18028
|
-
const I =
|
|
18029
|
-
if (
|
|
18028
|
+
const I = $u(g.distanceToPoint(C));
|
|
18029
|
+
if ($u(g.normal.dot(a)) && I) {
|
|
18030
18030
|
f.copy(d), b = 2;
|
|
18031
18031
|
break;
|
|
18032
18032
|
}
|
|
18033
18033
|
const L = g.intersectLine(d, p);
|
|
18034
|
-
if (!L && I && p.copy(C), (L || I) &&
|
|
18034
|
+
if (!L && I && p.copy(C), (L || I) && !$u(p.distanceTo(T))) {
|
|
18035
18035
|
if (b <= 1)
|
|
18036
18036
|
(b === 1 ? f.start : f.end).copy(p), I && (x = b);
|
|
18037
18037
|
else if (b >= 2) {
|
|
@@ -18304,12 +18304,12 @@ let Es, wa;
|
|
|
18304
18304
|
const ea = [], lh = /* @__PURE__ */ new jf(() => new Et());
|
|
18305
18305
|
function c_(n, e, t, i, s, r) {
|
|
18306
18306
|
Es = lh.getPrimitive(), wa = lh.getPrimitive(), ea.push(Es, wa), Ct.setBuffer(n._roots[e]);
|
|
18307
|
-
const a =
|
|
18307
|
+
const a = pp(0, n.geometry, t, i, s, r);
|
|
18308
18308
|
Ct.clearBuffer(), lh.releasePrimitive(Es), lh.releasePrimitive(wa), ea.pop(), ea.pop();
|
|
18309
18309
|
const o = ea.length;
|
|
18310
18310
|
return o > 0 && (wa = ea[o - 1], Es = ea[o - 2]), a;
|
|
18311
18311
|
}
|
|
18312
|
-
function
|
|
18312
|
+
function pp(n, e, t, i, s = null, r = 0, a = 0) {
|
|
18313
18313
|
const { float32Array: o, uint16Array: l, uint32Array: c } = Ct;
|
|
18314
18314
|
let d = n * 2;
|
|
18315
18315
|
if (Ci(d, l)) {
|
|
@@ -18343,7 +18343,7 @@ function dp(n, e, t, i, s = null, r = 0, a = 0) {
|
|
|
18343
18343
|
const P = M(m), w = K(m) - P;
|
|
18344
18344
|
C = i(P, w, !0, a + 1, r + m, v);
|
|
18345
18345
|
} else
|
|
18346
|
-
C = S &&
|
|
18346
|
+
C = S && pp(
|
|
18347
18347
|
m,
|
|
18348
18348
|
e,
|
|
18349
18349
|
t,
|
|
@@ -18361,7 +18361,7 @@ function dp(n, e, t, i, s = null, r = 0, a = 0) {
|
|
|
18361
18361
|
const P = M(y), w = K(y) - P;
|
|
18362
18362
|
L = i(P, w, !0, a + 1, r + y, b);
|
|
18363
18363
|
} else
|
|
18364
|
-
L = I &&
|
|
18364
|
+
L = I && pp(
|
|
18365
18365
|
y,
|
|
18366
18366
|
e,
|
|
18367
18367
|
t,
|
|
@@ -18373,7 +18373,7 @@ function dp(n, e, t, i, s = null, r = 0, a = 0) {
|
|
|
18373
18373
|
return !!L;
|
|
18374
18374
|
}
|
|
18375
18375
|
}
|
|
18376
|
-
const Mo = /* @__PURE__ */ new A(),
|
|
18376
|
+
const Mo = /* @__PURE__ */ new A(), ed = /* @__PURE__ */ new A();
|
|
18377
18377
|
function u_(n, e, t = {}, i = 0, s = 1 / 0) {
|
|
18378
18378
|
const r = i * i, a = s * s;
|
|
18379
18379
|
let o = 1 / 0, l = null;
|
|
@@ -18384,13 +18384,13 @@ function u_(n, e, t = {}, i = 0, s = 1 / 0) {
|
|
|
18384
18384
|
intersectsTriangle: (d, h) => {
|
|
18385
18385
|
d.closestPointToPoint(e, Mo);
|
|
18386
18386
|
const u = e.distanceToSquared(Mo);
|
|
18387
|
-
return u < o && (
|
|
18387
|
+
return u < o && (ed.copy(Mo), o = u, l = h), u < r;
|
|
18388
18388
|
}
|
|
18389
18389
|
}
|
|
18390
18390
|
), o === 1 / 0)
|
|
18391
18391
|
return null;
|
|
18392
18392
|
const c = Math.sqrt(o);
|
|
18393
|
-
return t.point ? t.point.copy(
|
|
18393
|
+
return t.point ? t.point.copy(ed) : t.point = ed.clone(), t.distance = c, t.faceIndex = l, t;
|
|
18394
18394
|
}
|
|
18395
18395
|
const ta = /* @__PURE__ */ new A(), ia = /* @__PURE__ */ new A(), na = /* @__PURE__ */ new A(), hh = /* @__PURE__ */ new ge(), ch = /* @__PURE__ */ new ge(), uh = /* @__PURE__ */ new ge(), Cy = /* @__PURE__ */ new A(), Ty = /* @__PURE__ */ new A(), My = /* @__PURE__ */ new A(), dh = /* @__PURE__ */ new A();
|
|
18396
18396
|
function d_(n, e, t, i, s, r) {
|
|
@@ -18416,7 +18416,7 @@ function p_(n, e, t, i, s, r, a, o, l) {
|
|
|
18416
18416
|
}
|
|
18417
18417
|
return c;
|
|
18418
18418
|
}
|
|
18419
|
-
function
|
|
18419
|
+
function Uc(n, e, t, i, s) {
|
|
18420
18420
|
const r = i * 3;
|
|
18421
18421
|
let a = r + 0, o = r + 1, l = r + 2;
|
|
18422
18422
|
const c = n.index;
|
|
@@ -18432,14 +18432,14 @@ function kt(n, e, t, i) {
|
|
|
18432
18432
|
function f_(n, e, t, i, s, r) {
|
|
18433
18433
|
const { geometry: a, _indirectBuffer: o } = n;
|
|
18434
18434
|
for (let l = i, c = i + s; l < c; l++)
|
|
18435
|
-
|
|
18435
|
+
Uc(a, e, t, l, r);
|
|
18436
18436
|
}
|
|
18437
18437
|
function m_(n, e, t, i, s) {
|
|
18438
18438
|
const { geometry: r, _indirectBuffer: a } = n;
|
|
18439
18439
|
let o = 1 / 0, l = null;
|
|
18440
18440
|
for (let c = i, d = i + s; c < d; c++) {
|
|
18441
18441
|
let h;
|
|
18442
|
-
h =
|
|
18442
|
+
h = Uc(r, e, t, c), h && h.distance < o && (l = h, o = h.distance);
|
|
18443
18443
|
}
|
|
18444
18444
|
return l;
|
|
18445
18445
|
}
|
|
@@ -18461,7 +18461,7 @@ function y_(n, e = null) {
|
|
|
18461
18461
|
r = d[u], a = new Uint32Array(r), o = new Uint16Array(r), l = new Float32Array(r), h(0, c), c += r.byteLength;
|
|
18462
18462
|
function h(u, p, m = !1) {
|
|
18463
18463
|
const y = u * 2;
|
|
18464
|
-
if (o[y + 15] ===
|
|
18464
|
+
if (o[y + 15] === Vc) {
|
|
18465
18465
|
const f = a[u + 6], v = o[y + 14];
|
|
18466
18466
|
let b = 1 / 0, x = 1 / 0, S = 1 / 0, C = -1 / 0, T = -1 / 0, I = -1 / 0;
|
|
18467
18467
|
for (let L = 3 * f, M = 3 * (f + v); L < M; L++) {
|
|
@@ -18497,7 +18497,7 @@ function v_(n, e, t, i, s, r) {
|
|
|
18497
18497
|
const { geometry: a, _indirectBuffer: o } = n;
|
|
18498
18498
|
for (let l = i, c = i + s; l < c; l++) {
|
|
18499
18499
|
let d = o ? o[l] : l;
|
|
18500
|
-
|
|
18500
|
+
Uc(a, e, t, d, r);
|
|
18501
18501
|
}
|
|
18502
18502
|
}
|
|
18503
18503
|
function b_(n, e, t, i, s) {
|
|
@@ -18505,7 +18505,7 @@ function b_(n, e, t, i, s) {
|
|
|
18505
18505
|
let o = 1 / 0, l = null;
|
|
18506
18506
|
for (let c = i, d = i + s; c < d; c++) {
|
|
18507
18507
|
let h;
|
|
18508
|
-
h =
|
|
18508
|
+
h = Uc(r, e, t, a ? a[c] : c), h && h.distance < o && (l = h, o = h.distance);
|
|
18509
18509
|
}
|
|
18510
18510
|
return l;
|
|
18511
18511
|
}
|
|
@@ -18520,27 +18520,27 @@ function x_(n, e, t, i, s, r, a) {
|
|
|
18520
18520
|
}
|
|
18521
18521
|
const wy = /* @__PURE__ */ new A();
|
|
18522
18522
|
function S_(n, e, t, i, s) {
|
|
18523
|
-
Ct.setBuffer(n._roots[e]),
|
|
18523
|
+
Ct.setBuffer(n._roots[e]), fp(0, n, t, i, s), Ct.clearBuffer();
|
|
18524
18524
|
}
|
|
18525
|
-
function
|
|
18525
|
+
function fp(n, e, t, i, s) {
|
|
18526
18526
|
const { float32Array: r, uint16Array: a, uint32Array: o } = Ct, l = n * 2;
|
|
18527
18527
|
if (Ci(l, a)) {
|
|
18528
18528
|
const d = Ti(n, o), h = Ki(l, a);
|
|
18529
18529
|
f_(e, t, i, d, h, s);
|
|
18530
18530
|
} else {
|
|
18531
18531
|
const d = Zi(n);
|
|
18532
|
-
zs(d, r, i, wy) &&
|
|
18532
|
+
zs(d, r, i, wy) && fp(d, e, t, i, s);
|
|
18533
18533
|
const h = Oi(n, o);
|
|
18534
|
-
zs(h, r, i, wy) &&
|
|
18534
|
+
zs(h, r, i, wy) && fp(h, e, t, i, s);
|
|
18535
18535
|
}
|
|
18536
18536
|
}
|
|
18537
18537
|
const _y = /* @__PURE__ */ new A(), L_ = ["x", "y", "z"];
|
|
18538
18538
|
function C_(n, e, t, i) {
|
|
18539
18539
|
Ct.setBuffer(n._roots[e]);
|
|
18540
|
-
const s =
|
|
18540
|
+
const s = mp(0, n, t, i);
|
|
18541
18541
|
return Ct.clearBuffer(), s;
|
|
18542
18542
|
}
|
|
18543
|
-
function
|
|
18543
|
+
function mp(n, e, t, i) {
|
|
18544
18544
|
const { float32Array: s, uint16Array: r, uint32Array: a } = Ct;
|
|
18545
18545
|
let o = n * 2;
|
|
18546
18546
|
if (Ci(o, r)) {
|
|
@@ -18550,7 +18550,7 @@ function fp(n, e, t, i) {
|
|
|
18550
18550
|
const c = Ff(n, a), d = L_[c], u = i.direction[d] >= 0;
|
|
18551
18551
|
let p, m;
|
|
18552
18552
|
u ? (p = Zi(n), m = Oi(n, a)) : (p = Oi(n, a), m = Zi(n));
|
|
18553
|
-
const g = zs(p, s, i, _y) ?
|
|
18553
|
+
const g = zs(p, s, i, _y) ? mp(p, e, t, i) : null;
|
|
18554
18554
|
if (g) {
|
|
18555
18555
|
const b = g.point[d];
|
|
18556
18556
|
if (u ? b <= s[m + c] : (
|
|
@@ -18559,17 +18559,17 @@ function fp(n, e, t, i) {
|
|
|
18559
18559
|
))
|
|
18560
18560
|
return g;
|
|
18561
18561
|
}
|
|
18562
|
-
const v = zs(m, s, i, _y) ?
|
|
18562
|
+
const v = zs(m, s, i, _y) ? mp(m, e, t, i) : null;
|
|
18563
18563
|
return g && v ? g.distance <= v.distance ? g : v : g || v || null;
|
|
18564
18564
|
}
|
|
18565
18565
|
}
|
|
18566
18566
|
const ph = /* @__PURE__ */ new Et(), sa = /* @__PURE__ */ new dn(), ra = /* @__PURE__ */ new dn(), Io = /* @__PURE__ */ new Oe(), Gy = /* @__PURE__ */ new Si(), fh = /* @__PURE__ */ new Si();
|
|
18567
18567
|
function T_(n, e, t, i) {
|
|
18568
18568
|
Ct.setBuffer(n._roots[e]);
|
|
18569
|
-
const s =
|
|
18569
|
+
const s = gp(0, n, t, i);
|
|
18570
18570
|
return Ct.clearBuffer(), s;
|
|
18571
18571
|
}
|
|
18572
|
-
function
|
|
18572
|
+
function gp(n, e, t, i, s = null) {
|
|
18573
18573
|
const { float32Array: r, uint16Array: a, uint32Array: o } = Ct;
|
|
18574
18574
|
let l = n * 2;
|
|
18575
18575
|
if (s === null && (t.boundingBox || t.computeBoundingBox(), Gy.set(t.boundingBox.min, t.boundingBox.max, i), s = Gy), Ci(l, a)) {
|
|
@@ -18593,19 +18593,19 @@ function mp(n, e, t, i, s = null) {
|
|
|
18593
18593
|
}
|
|
18594
18594
|
} else {
|
|
18595
18595
|
const d = n + 8, h = o[n + 6];
|
|
18596
|
-
return Gt(d, r, ph), !!(s.intersectsBox(ph) &&
|
|
18596
|
+
return Gt(d, r, ph), !!(s.intersectsBox(ph) && gp(d, e, t, i, s) || (Gt(h, r, ph), s.intersectsBox(ph) && gp(h, e, t, i, s)));
|
|
18597
18597
|
}
|
|
18598
18598
|
}
|
|
18599
|
-
const mh = /* @__PURE__ */ new Oe(),
|
|
18599
|
+
const mh = /* @__PURE__ */ new Oe(), td = /* @__PURE__ */ new Si(), wo = /* @__PURE__ */ new Si(), M_ = /* @__PURE__ */ new A(), I_ = /* @__PURE__ */ new A(), w_ = /* @__PURE__ */ new A(), __ = /* @__PURE__ */ new A();
|
|
18600
18600
|
function G_(n, e, t, i = {}, s = {}, r = 0, a = 1 / 0) {
|
|
18601
|
-
e.boundingBox || e.computeBoundingBox(),
|
|
18601
|
+
e.boundingBox || e.computeBoundingBox(), td.set(e.boundingBox.min, e.boundingBox.max, t), td.needsUpdate = !0;
|
|
18602
18602
|
const o = n.geometry, l = o.attributes.position, c = o.index, d = e.attributes.position, h = e.index, u = Hi.getPrimitive(), p = Hi.getPrimitive();
|
|
18603
18603
|
let m = M_, y = I_, g = null, f = null;
|
|
18604
18604
|
s && (g = w_, f = __);
|
|
18605
18605
|
let v = 1 / 0, b = null, x = null;
|
|
18606
18606
|
return mh.copy(t).invert(), wo.matrix.copy(mh), n.shapecast(
|
|
18607
18607
|
{
|
|
18608
|
-
boundsTraverseOrder: (S) =>
|
|
18608
|
+
boundsTraverseOrder: (S) => td.distanceToBox(S),
|
|
18609
18609
|
intersectsBounds: (S, C, T) => T < v && T < a ? (C && (wo.min.copy(S.min), wo.max.copy(S.max), wo.needsUpdate = !0), !0) : !1,
|
|
18610
18610
|
intersectsRange: (S, C) => {
|
|
18611
18611
|
if (e.boundsTree)
|
|
@@ -18649,7 +18649,7 @@ function P_(n, e = null) {
|
|
|
18649
18649
|
r = d[u], a = new Uint32Array(r), o = new Uint16Array(r), l = new Float32Array(r), h(0, c), c += r.byteLength;
|
|
18650
18650
|
function h(u, p, m = !1) {
|
|
18651
18651
|
const y = u * 2;
|
|
18652
|
-
if (o[y + 15] ===
|
|
18652
|
+
if (o[y + 15] === Vc) {
|
|
18653
18653
|
const f = a[u + 6], v = o[y + 14];
|
|
18654
18654
|
let b = 1 / 0, x = 1 / 0, S = 1 / 0, C = -1 / 0, T = -1 / 0, I = -1 / 0;
|
|
18655
18655
|
for (let L = f, M = f + v; L < M; L++) {
|
|
@@ -18683,27 +18683,27 @@ function P_(n, e = null) {
|
|
|
18683
18683
|
}
|
|
18684
18684
|
const Py = /* @__PURE__ */ new A();
|
|
18685
18685
|
function E_(n, e, t, i, s) {
|
|
18686
|
-
Ct.setBuffer(n._roots[e]),
|
|
18686
|
+
Ct.setBuffer(n._roots[e]), yp(0, n, t, i, s), Ct.clearBuffer();
|
|
18687
18687
|
}
|
|
18688
|
-
function
|
|
18688
|
+
function yp(n, e, t, i, s) {
|
|
18689
18689
|
const { float32Array: r, uint16Array: a, uint32Array: o } = Ct, l = n * 2;
|
|
18690
18690
|
if (Ci(l, a)) {
|
|
18691
18691
|
const d = Ti(n, o), h = Ki(l, a);
|
|
18692
18692
|
v_(e, t, i, d, h, s);
|
|
18693
18693
|
} else {
|
|
18694
18694
|
const d = Zi(n);
|
|
18695
|
-
zs(d, r, i, Py) &&
|
|
18695
|
+
zs(d, r, i, Py) && yp(d, e, t, i, s);
|
|
18696
18696
|
const h = Oi(n, o);
|
|
18697
|
-
zs(h, r, i, Py) &&
|
|
18697
|
+
zs(h, r, i, Py) && yp(h, e, t, i, s);
|
|
18698
18698
|
}
|
|
18699
18699
|
}
|
|
18700
18700
|
const Ey = /* @__PURE__ */ new A(), A_ = ["x", "y", "z"];
|
|
18701
18701
|
function R_(n, e, t, i) {
|
|
18702
18702
|
Ct.setBuffer(n._roots[e]);
|
|
18703
|
-
const s =
|
|
18703
|
+
const s = vp(0, n, t, i);
|
|
18704
18704
|
return Ct.clearBuffer(), s;
|
|
18705
18705
|
}
|
|
18706
|
-
function
|
|
18706
|
+
function vp(n, e, t, i) {
|
|
18707
18707
|
const { float32Array: s, uint16Array: r, uint32Array: a } = Ct;
|
|
18708
18708
|
let o = n * 2;
|
|
18709
18709
|
if (Ci(o, r)) {
|
|
@@ -18713,7 +18713,7 @@ function yp(n, e, t, i) {
|
|
|
18713
18713
|
const c = Ff(n, a), d = A_[c], u = i.direction[d] >= 0;
|
|
18714
18714
|
let p, m;
|
|
18715
18715
|
u ? (p = Zi(n), m = Oi(n, a)) : (p = Oi(n, a), m = Zi(n));
|
|
18716
|
-
const g = zs(p, s, i, Ey) ?
|
|
18716
|
+
const g = zs(p, s, i, Ey) ? vp(p, e, t, i) : null;
|
|
18717
18717
|
if (g) {
|
|
18718
18718
|
const b = g.point[d];
|
|
18719
18719
|
if (u ? b <= s[m + c] : (
|
|
@@ -18722,17 +18722,17 @@ function yp(n, e, t, i) {
|
|
|
18722
18722
|
))
|
|
18723
18723
|
return g;
|
|
18724
18724
|
}
|
|
18725
|
-
const v = zs(m, s, i, Ey) ?
|
|
18725
|
+
const v = zs(m, s, i, Ey) ? vp(m, e, t, i) : null;
|
|
18726
18726
|
return g && v ? g.distance <= v.distance ? g : v : g || v || null;
|
|
18727
18727
|
}
|
|
18728
18728
|
}
|
|
18729
18729
|
const gh = /* @__PURE__ */ new Et(), aa = /* @__PURE__ */ new dn(), oa = /* @__PURE__ */ new dn(), _o = /* @__PURE__ */ new Oe(), Ay = /* @__PURE__ */ new Si(), yh = /* @__PURE__ */ new Si();
|
|
18730
18730
|
function K_(n, e, t, i) {
|
|
18731
18731
|
Ct.setBuffer(n._roots[e]);
|
|
18732
|
-
const s =
|
|
18732
|
+
const s = bp(0, n, t, i);
|
|
18733
18733
|
return Ct.clearBuffer(), s;
|
|
18734
18734
|
}
|
|
18735
|
-
function
|
|
18735
|
+
function bp(n, e, t, i, s = null) {
|
|
18736
18736
|
const { float32Array: r, uint16Array: a, uint32Array: o } = Ct;
|
|
18737
18737
|
let l = n * 2;
|
|
18738
18738
|
if (s === null && (t.boundingBox || t.computeBoundingBox(), Ay.set(t.boundingBox.min, t.boundingBox.max, i), s = Ay), Ci(l, a)) {
|
|
@@ -18757,19 +18757,19 @@ function vp(n, e, t, i, s = null) {
|
|
|
18757
18757
|
}
|
|
18758
18758
|
} else {
|
|
18759
18759
|
const d = n + 8, h = o[n + 6];
|
|
18760
|
-
return Gt(d, r, gh), !!(s.intersectsBox(gh) &&
|
|
18760
|
+
return Gt(d, r, gh), !!(s.intersectsBox(gh) && bp(d, e, t, i, s) || (Gt(h, r, gh), s.intersectsBox(gh) && bp(h, e, t, i, s)));
|
|
18761
18761
|
}
|
|
18762
18762
|
}
|
|
18763
|
-
const vh = /* @__PURE__ */ new Oe(),
|
|
18763
|
+
const vh = /* @__PURE__ */ new Oe(), id = /* @__PURE__ */ new Si(), Go = /* @__PURE__ */ new Si(), O_ = /* @__PURE__ */ new A(), q_ = /* @__PURE__ */ new A(), X_ = /* @__PURE__ */ new A(), z_ = /* @__PURE__ */ new A();
|
|
18764
18764
|
function W_(n, e, t, i = {}, s = {}, r = 0, a = 1 / 0) {
|
|
18765
|
-
e.boundingBox || e.computeBoundingBox(),
|
|
18765
|
+
e.boundingBox || e.computeBoundingBox(), id.set(e.boundingBox.min, e.boundingBox.max, t), id.needsUpdate = !0;
|
|
18766
18766
|
const o = n.geometry, l = o.attributes.position, c = o.index, d = e.attributes.position, h = e.index, u = Hi.getPrimitive(), p = Hi.getPrimitive();
|
|
18767
18767
|
let m = O_, y = q_, g = null, f = null;
|
|
18768
18768
|
s && (g = X_, f = z_);
|
|
18769
18769
|
let v = 1 / 0, b = null, x = null;
|
|
18770
18770
|
return vh.copy(t).invert(), Go.matrix.copy(vh), n.shapecast(
|
|
18771
18771
|
{
|
|
18772
|
-
boundsTraverseOrder: (S) =>
|
|
18772
|
+
boundsTraverseOrder: (S) => id.distanceToBox(S),
|
|
18773
18773
|
intersectsBounds: (S, C, T) => T < v && T < a ? (C && (Go.min.copy(S.min), Go.max.copy(S.max), Go.needsUpdate = !0), !0) : !1,
|
|
18774
18774
|
intersectsRange: (S, C) => {
|
|
18775
18775
|
if (e.boundsTree) {
|
|
@@ -18811,12 +18811,12 @@ function W_(n, e, t, i = {}, s = {}, r = 0, a = 1 / 0) {
|
|
|
18811
18811
|
function N_() {
|
|
18812
18812
|
return typeof SharedArrayBuffer < "u";
|
|
18813
18813
|
}
|
|
18814
|
-
const el = new Ct.constructor(), gc = new Ct.constructor(), Ms = new jf(() => new Et()), la = new Et(), ha = new Et(),
|
|
18815
|
-
let
|
|
18814
|
+
const el = new Ct.constructor(), gc = new Ct.constructor(), Ms = new jf(() => new Et()), la = new Et(), ha = new Et(), nd = new Et(), sd = new Et();
|
|
18815
|
+
let rd = !1;
|
|
18816
18816
|
function k_(n, e, t, i) {
|
|
18817
|
-
if (
|
|
18817
|
+
if (rd)
|
|
18818
18818
|
throw new Error("MeshBVH: Recursive calls to bvhcast not supported.");
|
|
18819
|
-
|
|
18819
|
+
rd = !0;
|
|
18820
18820
|
const s = n._roots, r = e._roots;
|
|
18821
18821
|
let a, o = 0, l = 0;
|
|
18822
18822
|
const c = new Oe().copy(t).invert();
|
|
@@ -18840,7 +18840,7 @@ function k_(n, e, t, i) {
|
|
|
18840
18840
|
if (Ms.releasePrimitive(u), el.clearBuffer(), o += s[d].length, a)
|
|
18841
18841
|
break;
|
|
18842
18842
|
}
|
|
18843
|
-
return
|
|
18843
|
+
return rd = !1, a;
|
|
18844
18844
|
}
|
|
18845
18845
|
function nn(n, e, t, i, s, r = 0, a = 0, o = 0, l = 0, c = null, d = !1) {
|
|
18846
18846
|
let h, u;
|
|
@@ -18900,8 +18900,8 @@ function nn(n, e, t, i, s, r = 0, a = 0, o = 0, l = 0, c = null, d = !1) {
|
|
|
18900
18900
|
), Ms.releasePrimitive(I);
|
|
18901
18901
|
} else {
|
|
18902
18902
|
const I = Zi(e), L = Oi(e, f);
|
|
18903
|
-
Gt(I, g,
|
|
18904
|
-
const M = c.intersectsBox(
|
|
18903
|
+
Gt(I, g, nd), Gt(L, g, sd);
|
|
18904
|
+
const M = c.intersectsBox(nd), K = c.intersectsBox(sd);
|
|
18905
18905
|
if (M && K)
|
|
18906
18906
|
T = nn(
|
|
18907
18907
|
n,
|
|
@@ -18945,7 +18945,7 @@ function nn(n, e, t, i, s, r = 0, a = 0, o = 0, l = 0, c = null, d = !1) {
|
|
|
18945
18945
|
);
|
|
18946
18946
|
else {
|
|
18947
18947
|
const P = Ms.getPrimitive();
|
|
18948
|
-
P.copy(
|
|
18948
|
+
P.copy(nd).applyMatrix4(t);
|
|
18949
18949
|
const G = Zi(n), w = Oi(n, m);
|
|
18950
18950
|
Gt(G, p, la), Gt(w, p, ha);
|
|
18951
18951
|
const O = P.intersectsBox(la), X = P.intersectsBox(ha);
|
|
@@ -18992,7 +18992,7 @@ function nn(n, e, t, i, s, r = 0, a = 0, o = 0, l = 0, c = null, d = !1) {
|
|
|
18992
18992
|
);
|
|
18993
18993
|
else {
|
|
18994
18994
|
const P = Ms.getPrimitive();
|
|
18995
|
-
P.copy(
|
|
18995
|
+
P.copy(sd).applyMatrix4(t);
|
|
18996
18996
|
const G = Zi(n), w = Oi(n, m);
|
|
18997
18997
|
Gt(G, p, la), Gt(w, p, ha);
|
|
18998
18998
|
const O = P.intersectsBox(la), X = P.intersectsBox(ha);
|
|
@@ -19026,7 +19026,7 @@ function nn(n, e, t, i, s, r = 0, a = 0, o = 0, l = 0, c = null, d = !1) {
|
|
|
19026
19026
|
return T;
|
|
19027
19027
|
}
|
|
19028
19028
|
const bh = /* @__PURE__ */ new Si(), Ry = /* @__PURE__ */ new Et();
|
|
19029
|
-
class
|
|
19029
|
+
class Qc {
|
|
19030
19030
|
static serialize(e, t = {}) {
|
|
19031
19031
|
t = {
|
|
19032
19032
|
cloneBuffers: !0,
|
|
@@ -19050,7 +19050,7 @@ class Uc {
|
|
|
19050
19050
|
indirect: !!e.indirectBuffer,
|
|
19051
19051
|
...i
|
|
19052
19052
|
};
|
|
19053
|
-
const { index: s, roots: r, indirectBuffer: a } = e, o = new
|
|
19053
|
+
const { index: s, roots: r, indirectBuffer: a } = e, o = new Qc(t, { ...i, [Uu]: !0 });
|
|
19054
19054
|
if (o._roots = r, o._indirectBuffer = a || null, i.setIndex) {
|
|
19055
19055
|
const l = t.getIndex();
|
|
19056
19056
|
if (l === null) {
|
|
@@ -19081,10 +19081,10 @@ class Uc {
|
|
|
19081
19081
|
indirect: !1,
|
|
19082
19082
|
// undocumented options
|
|
19083
19083
|
// Whether to skip generating the tree. Used for deserialization.
|
|
19084
|
-
[
|
|
19084
|
+
[Uu]: !1
|
|
19085
19085
|
}, t), t.useSharedArrayBuffer && !N_())
|
|
19086
19086
|
throw new Error("MeshBVH: SharedArrayBuffer is not available.");
|
|
19087
|
-
this.geometry = e, this._roots = null, this._indirectBuffer = null, t[
|
|
19087
|
+
this.geometry = e, this._roots = null, this._indirectBuffer = null, t[Uu] || (s_(this, t), !e.boundingBox && t.setBoundingBox && (e.boundingBox = this.getBoundingBox(new Et())));
|
|
19088
19088
|
const { _indirectBuffer: i } = this;
|
|
19089
19089
|
this.resolveTriangleIndex = t.indirect ? (s) => i[s] : (s) => s;
|
|
19090
19090
|
}
|
|
@@ -19095,7 +19095,7 @@ class Uc {
|
|
|
19095
19095
|
const i = this._roots[t], s = new Uint32Array(i), r = new Uint16Array(i);
|
|
19096
19096
|
a(0);
|
|
19097
19097
|
function a(o, l = 0) {
|
|
19098
|
-
const c = o * 2, d = r[c + 15] ===
|
|
19098
|
+
const c = o * 2, d = r[c + 15] === Vc;
|
|
19099
19099
|
if (d) {
|
|
19100
19100
|
const h = s[o + 6], u = r[c + 14];
|
|
19101
19101
|
e(l, d, new Float32Array(i, o * 4, 6), h, u);
|
|
@@ -19267,7 +19267,7 @@ function Ky(n) {
|
|
|
19267
19267
|
case 1:
|
|
19268
19268
|
return wf;
|
|
19269
19269
|
case 2:
|
|
19270
|
-
return
|
|
19270
|
+
return Zc;
|
|
19271
19271
|
case 3:
|
|
19272
19272
|
return cl;
|
|
19273
19273
|
case 4:
|
|
@@ -19306,13 +19306,13 @@ class rx extends Fi {
|
|
|
19306
19306
|
let u, p, m, y, g = H_(r);
|
|
19307
19307
|
switch (d) {
|
|
19308
19308
|
case Mt:
|
|
19309
|
-
m = 1, p = Z_(r), o && c === 1 ? (y = l, g += "8", l === Uint8Array ? u = on : (u =
|
|
19309
|
+
m = 1, p = Z_(r), o && c === 1 ? (y = l, g += "8", l === Uint8Array ? u = on : (u = sp, g += "_SNORM")) : (y = Float32Array, g += "32F", u = Mt);
|
|
19310
19310
|
break;
|
|
19311
19311
|
case Bo:
|
|
19312
|
-
g += c * 8 + "I", m = o ? Math.pow(2, l.BYTES_PER_ELEMENT * 8 - 1) : 1, p = Ky(r), c === 1 ? (y = Int8Array, u =
|
|
19312
|
+
g += c * 8 + "I", m = o ? Math.pow(2, l.BYTES_PER_ELEMENT * 8 - 1) : 1, p = Ky(r), c === 1 ? (y = Int8Array, u = sp) : c === 2 ? (y = Int16Array, u = gb) : (y = Int32Array, u = Bo);
|
|
19313
19313
|
break;
|
|
19314
19314
|
case Ri:
|
|
19315
|
-
g += c * 8 + "UI", m = o ? Math.pow(2, l.BYTES_PER_ELEMENT * 8 - 1) : 1, p = Ky(r), c === 1 ? (y = Uint8Array, u = on) : c === 2 ? (y = Uint16Array, u =
|
|
19315
|
+
g += c * 8 + "UI", m = o ? Math.pow(2, l.BYTES_PER_ELEMENT * 8 - 1) : 1, p = Ky(r), c === 1 ? (y = Uint8Array, u = on) : c === 2 ? (y = Uint16Array, u = Hc) : (y = Uint32Array, u = Ri);
|
|
19316
19316
|
break;
|
|
19317
19317
|
}
|
|
19318
19318
|
h === 3 && (p === St || p === cl) && (h = 4);
|
|
@@ -19384,9 +19384,9 @@ function j_(n, e, t) {
|
|
|
19384
19384
|
u[p * 2 + 0] = v, u[p * 2 + 1] = f;
|
|
19385
19385
|
}
|
|
19386
19386
|
}
|
|
19387
|
-
e.image.data = d, e.image.width = c, e.image.height = c, e.format = St, e.type = Mt, e.internalFormat = "RGBA32F", e.minFilter = pt, e.magFilter = pt, e.generateMipmaps = !1, e.needsUpdate = !0, e.dispose(), t.image.data = u, t.image.width = h, t.image.height = h, t.format =
|
|
19387
|
+
e.image.data = d, e.image.width = c, e.image.height = c, e.format = St, e.type = Mt, e.internalFormat = "RGBA32F", e.minFilter = pt, e.magFilter = pt, e.generateMipmaps = !1, e.needsUpdate = !0, e.dispose(), t.image.data = u, t.image.width = h, t.image.height = h, t.format = Zc, t.type = Ri, t.internalFormat = "RG32UI", t.minFilter = pt, t.magFilter = pt, t.generateMipmaps = !1, t.needsUpdate = !0, t.dispose();
|
|
19388
19388
|
}
|
|
19389
|
-
const Js = /* @__PURE__ */ new A(), Vs = /* @__PURE__ */ new A(), Us = /* @__PURE__ */ new A(), Oy = /* @__PURE__ */ new ht(), xh = /* @__PURE__ */ new A(),
|
|
19389
|
+
const Js = /* @__PURE__ */ new A(), Vs = /* @__PURE__ */ new A(), Us = /* @__PURE__ */ new A(), Oy = /* @__PURE__ */ new ht(), xh = /* @__PURE__ */ new A(), ad = /* @__PURE__ */ new A(), qy = /* @__PURE__ */ new ht(), Xy = /* @__PURE__ */ new ht(), Sh = /* @__PURE__ */ new Oe(), zy = /* @__PURE__ */ new Oe();
|
|
19390
19390
|
function Po(n, e) {
|
|
19391
19391
|
if (!n && !e)
|
|
19392
19392
|
return;
|
|
@@ -19427,11 +19427,11 @@ function Wy(n, e, t) {
|
|
|
19427
19427
|
}
|
|
19428
19428
|
return Sh.multiply(n.bindMatrix).premultiply(n.bindMatrixInverse), t.transformDirection(Sh), t;
|
|
19429
19429
|
}
|
|
19430
|
-
function
|
|
19430
|
+
function od(n, e, t, i, s) {
|
|
19431
19431
|
xh.set(0, 0, 0);
|
|
19432
19432
|
for (let r = 0, a = n.length; r < a; r++) {
|
|
19433
19433
|
const o = e[r], l = n[r];
|
|
19434
|
-
o !== 0 && (
|
|
19434
|
+
o !== 0 && (ad.fromBufferAttribute(l, i), t ? xh.addScaledVector(ad, o) : xh.addScaledVector(ad.sub(s), o));
|
|
19435
19435
|
}
|
|
19436
19436
|
s.add(xh);
|
|
19437
19437
|
}
|
|
@@ -19561,7 +19561,7 @@ class U_ {
|
|
|
19561
19561
|
const c = o.position, d = r ? o.normal : null, h = a ? o.tangent : null, u = i.morphAttributes.position, p = i.morphAttributes.normal, m = i.morphAttributes.tangent, y = i.morphTargetsRelative, g = e.morphTargetInfluences, f = new et();
|
|
19562
19562
|
f.getNormalMatrix(e.matrixWorld);
|
|
19563
19563
|
for (let v = 0, b = o.position.count; v < b; v++)
|
|
19564
|
-
Js.fromBufferAttribute(c, v), d && Vs.fromBufferAttribute(d, v), h && (Oy.fromBufferAttribute(h, v), Us.fromBufferAttribute(h, v)), g && (u &&
|
|
19564
|
+
Js.fromBufferAttribute(c, v), d && Vs.fromBufferAttribute(d, v), h && (Oy.fromBufferAttribute(h, v), Us.fromBufferAttribute(h, v)), g && (u && od(u, g, y, v, Js), p && od(p, g, y, v, Vs), m && od(m, g, y, v, Us)), e.isSkinnedMesh && (e.applyBoneTransform(v, Js), d && Wy(e, v, Vs), h && Wy(e, v, Us)), s && Js.applyMatrix4(e.matrixWorld), l.position.setXYZ(v, Js.x, Js.y, Js.z), d && (s && Vs.applyNormalMatrix(f), l.normal.setXYZ(v, Vs.x, Vs.y, Vs.z)), h && (s && Us.transformDirection(e.matrixWorld), l.tangent.setXYZW(v, Us.x, Us.y, Us.z, Oy.w));
|
|
19565
19565
|
for (const v in this.attributes) {
|
|
19566
19566
|
const b = this.attributes[v];
|
|
19567
19567
|
b === "position" || b === "tangent" || b === "normal" || !(b in o) || (l[b] || t.setAttribute(b, No(o[b])), Po(o[b], l[b]), lx(o[b], l[b]));
|
|
@@ -20030,7 +20030,7 @@ function iG(n, e = 1e-4) {
|
|
|
20030
20030
|
function ky(n, e) {
|
|
20031
20031
|
if (e === h1)
|
|
20032
20032
|
return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."), n;
|
|
20033
|
-
if (e ===
|
|
20033
|
+
if (e === rp || e === Sb) {
|
|
20034
20034
|
let t = n.getIndex();
|
|
20035
20035
|
if (t === null) {
|
|
20036
20036
|
const a = [], o = n.getAttribute("position");
|
|
@@ -20042,7 +20042,7 @@ function ky(n, e) {
|
|
|
20042
20042
|
return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."), n;
|
|
20043
20043
|
}
|
|
20044
20044
|
const i = t.count - 2, s = [];
|
|
20045
|
-
if (e ===
|
|
20045
|
+
if (e === rp)
|
|
20046
20046
|
for (let a = 1; a <= i; a++)
|
|
20047
20047
|
s.push(t.getX(0)), s.push(t.getX(a)), s.push(t.getX(a + 1));
|
|
20048
20048
|
else
|
|
@@ -20160,7 +20160,7 @@ class oG {
|
|
|
20160
20160
|
materials: i,
|
|
20161
20161
|
textures: s,
|
|
20162
20162
|
lights: a,
|
|
20163
|
-
bvh: new
|
|
20163
|
+
bvh: new Qc(r, o)
|
|
20164
20164
|
};
|
|
20165
20165
|
}
|
|
20166
20166
|
}
|
|
@@ -20178,13 +20178,13 @@ class lG extends di {
|
|
|
20178
20178
|
return super.copy(e, t), this.fStop = e.fStop, this.apertureBlades = e.apertureBlades, this.apertureRotation = e.apertureRotation, this.focusDistance = e.focusDistance, this.anamorphicRatio = e.anamorphicRatio, this;
|
|
20179
20179
|
}
|
|
20180
20180
|
}
|
|
20181
|
-
function
|
|
20181
|
+
function xp(n) {
|
|
20182
20182
|
return `${n.source.uuid}:${n.encoding}`;
|
|
20183
20183
|
}
|
|
20184
20184
|
function hx(n) {
|
|
20185
20185
|
const e = /* @__PURE__ */ new Set(), t = [];
|
|
20186
20186
|
for (let i = 0, s = n.length; i < s; i++) {
|
|
20187
|
-
const r = n[i], a =
|
|
20187
|
+
const r = n[i], a = xp(r);
|
|
20188
20188
|
e.has(a) || (e.add(a), t.push(r));
|
|
20189
20189
|
}
|
|
20190
20190
|
return t;
|
|
@@ -20227,7 +20227,7 @@ class cG extends Fi {
|
|
|
20227
20227
|
updateFrom(e, t) {
|
|
20228
20228
|
function i(g, f, v = -1) {
|
|
20229
20229
|
if (f in g && g[f]) {
|
|
20230
|
-
const b =
|
|
20230
|
+
const b = xp(g[f]);
|
|
20231
20231
|
return m[b];
|
|
20232
20232
|
} else
|
|
20233
20233
|
return v;
|
|
@@ -20250,7 +20250,7 @@ class cG extends Fi {
|
|
|
20250
20250
|
let o = 0;
|
|
20251
20251
|
const l = e.length * cx, c = Math.ceil(Math.sqrt(l)), { threeCompatibilityTransforms: d, image: h, features: u } = this, p = hx(t), m = {};
|
|
20252
20252
|
for (let g = 0, f = p.length; g < f; g++)
|
|
20253
|
-
m[
|
|
20253
|
+
m[xp(p[g])] = g;
|
|
20254
20254
|
h.width !== c && (this.dispose(), h.data = new Float32Array(c * c * 4), h.width = c, h.height = c);
|
|
20255
20255
|
const y = h.data;
|
|
20256
20256
|
u.reset();
|
|
@@ -20701,7 +20701,7 @@ function Jy(n, e, t, i, s) {
|
|
|
20701
20701
|
t[s + c + h] = e >= h + 1 ? n[d + h] / o : 0;
|
|
20702
20702
|
}
|
|
20703
20703
|
}
|
|
20704
|
-
class MG extends
|
|
20704
|
+
class MG extends Dc {
|
|
20705
20705
|
constructor() {
|
|
20706
20706
|
super(), this._textures = [], this.type = Mt, this.format = St, this.internalFormat = "RGBA32F";
|
|
20707
20707
|
}
|
|
@@ -24372,11 +24372,11 @@ var Aa = Object.freeze({
|
|
|
24372
24372
|
return n._nextId++;
|
|
24373
24373
|
}, n._nextId = 0, n;
|
|
24374
24374
|
}()
|
|
24375
|
-
),
|
|
24375
|
+
), Sp = new ux(), dx = (
|
|
24376
24376
|
/** @class */
|
|
24377
24377
|
function() {
|
|
24378
24378
|
function n(e, t) {
|
|
24379
|
-
t === void 0 && (t =
|
|
24379
|
+
t === void 0 && (t = Sp), this._object = e, this._group = t, this._isPaused = !1, this._pauseStart = 0, this._valuesStart = {}, this._valuesEnd = {}, this._valuesStartRepeat = {}, this._duration = 1e3, this._isDynamic = !1, this._initialRepeat = 0, this._repeat = 0, this._yoyo = !1, this._isPlaying = !1, this._reversed = !1, this._delayTime = 0, this._startTime = 0, this._easingFunction = Aa.Linear.None, this._interpolationFunction = pr.Linear, this._chainedTweens = [], this._onStartCallbackFired = !1, this._onEveryStartCallbackFired = !1, this._id = Bf.nextId(), this._isChainStopped = !1, this._propertiesAreSetUp = !1, this._goToEnd = !1;
|
|
24380
24380
|
}
|
|
24381
24381
|
return n.prototype.getId = function() {
|
|
24382
24382
|
return this._id;
|
|
@@ -24461,7 +24461,7 @@ var Aa = Object.freeze({
|
|
|
24461
24461
|
this._chainedTweens[e].stop();
|
|
24462
24462
|
return this;
|
|
24463
24463
|
}, n.prototype.group = function(e) {
|
|
24464
|
-
return e === void 0 && (e =
|
|
24464
|
+
return e === void 0 && (e = Sp), this._group = e, this;
|
|
24465
24465
|
}, n.prototype.delay = function(e) {
|
|
24466
24466
|
return e === void 0 && (e = 0), this._delayTime = e, this;
|
|
24467
24467
|
}, n.prototype.repeat = function(e) {
|
|
@@ -24531,7 +24531,7 @@ var Aa = Object.freeze({
|
|
|
24531
24531
|
typeof i == "string" ? this._valuesStartRepeat[e] = this._valuesStartRepeat[e] + parseFloat(i) : this._valuesStartRepeat[e] = this._valuesEnd[e], this._valuesEnd[e] = t;
|
|
24532
24532
|
}, n;
|
|
24533
24533
|
}()
|
|
24534
|
-
), iP = "21.1.1", nP = Bf.nextId, On =
|
|
24534
|
+
), iP = "21.1.1", nP = Bf.nextId, On = Sp, sP = On.getAll.bind(On), rP = On.removeAll.bind(On), aP = On.add.bind(On), oP = On.remove.bind(On), lP = On.update.bind(On), t0 = {
|
|
24535
24535
|
Easing: Aa,
|
|
24536
24536
|
Group: ux,
|
|
24537
24537
|
Interpolation: pr,
|
|
@@ -24784,7 +24784,7 @@ class pP {
|
|
|
24784
24784
|
if (d.error)
|
|
24785
24785
|
r(new Error(d.error)), i.onmessage = null;
|
|
24786
24786
|
else if (d.serialized) {
|
|
24787
|
-
const { serialized: h, position: u } = d, p =
|
|
24787
|
+
const { serialized: h, position: u } = d, p = Qc.deserialize(h, e, { setIndex: !1 }), m = Object.assign({
|
|
24788
24788
|
setBoundingBox: !0
|
|
24789
24789
|
}, t);
|
|
24790
24790
|
if (e.setAttribute("position", new ji(u, 3)), e.index)
|
|
@@ -26066,15 +26066,17 @@ let vP = class {
|
|
|
26066
26066
|
this.sound.play();
|
|
26067
26067
|
}
|
|
26068
26068
|
};
|
|
26069
|
-
const
|
|
26069
|
+
const yc = (n) => {
|
|
26070
26070
|
var e;
|
|
26071
26071
|
for (; n.children.length > 0; )
|
|
26072
|
-
|
|
26072
|
+
yc(n.children[0]), n.children[0].removeFromParent();
|
|
26073
26073
|
if (n instanceof ni)
|
|
26074
26074
|
try {
|
|
26075
26075
|
(e = n.geometry) == null || e.dispose();
|
|
26076
26076
|
} catch {
|
|
26077
26077
|
}
|
|
26078
|
+
else
|
|
26079
|
+
n.dispose && n.dispose();
|
|
26078
26080
|
};
|
|
26079
26081
|
class bP extends ps {
|
|
26080
26082
|
constructor(e) {
|
|
@@ -26627,7 +26629,7 @@ class XP {
|
|
|
26627
26629
|
for (const x in l)
|
|
26628
26630
|
if (x === "_COLOR_0") {
|
|
26629
26631
|
const S = l[x];
|
|
26630
|
-
b.instanceColor = new
|
|
26632
|
+
b.instanceColor = new cp(S.array, S.itemSize, S.normalized);
|
|
26631
26633
|
} else
|
|
26632
26634
|
x !== "TRANSLATION" && x !== "ROTATION" && x !== "SCALE" && m.geometry.setAttribute(x, l[x]);
|
|
26633
26635
|
It.prototype.copy.call(b, m), this.parser.assignFinalMaterial(b), p.push(b);
|
|
@@ -26769,7 +26771,7 @@ const zi = {
|
|
|
26769
26771
|
}, r0 = {
|
|
26770
26772
|
9728: pt,
|
|
26771
26773
|
9729: lt,
|
|
26772
|
-
9984:
|
|
26774
|
+
9984: np,
|
|
26773
26775
|
9985: mb,
|
|
26774
26776
|
9986: Fh,
|
|
26775
26777
|
9987: Xs
|
|
@@ -26777,7 +26779,7 @@ const zi = {
|
|
|
26777
26779
|
33071: Nt,
|
|
26778
26780
|
33648: cc,
|
|
26779
26781
|
10497: ki
|
|
26780
|
-
},
|
|
26782
|
+
}, ld = {
|
|
26781
26783
|
SCALAR: 1,
|
|
26782
26784
|
VEC2: 2,
|
|
26783
26785
|
VEC3: 3,
|
|
@@ -26807,7 +26809,7 @@ const zi = {
|
|
|
26807
26809
|
// keyframe track will be initialized with a default interpolation type, then modified.
|
|
26808
26810
|
LINEAR: Fa,
|
|
26809
26811
|
STEP: ul
|
|
26810
|
-
},
|
|
26812
|
+
}, hd = {
|
|
26811
26813
|
OPAQUE: "OPAQUE",
|
|
26812
26814
|
MASK: "MASK",
|
|
26813
26815
|
BLEND: "BLEND"
|
|
@@ -26881,12 +26883,12 @@ function FP(n, e) {
|
|
|
26881
26883
|
function BP(n) {
|
|
26882
26884
|
let e;
|
|
26883
26885
|
const t = n.extensions && n.extensions[ot.KHR_DRACO_MESH_COMPRESSION];
|
|
26884
|
-
if (t ? e = "draco:" + t.bufferView + ":" + t.indices + ":" +
|
|
26886
|
+
if (t ? e = "draco:" + t.bufferView + ":" + t.indices + ":" + cd(t.attributes) : e = n.indices + ":" + cd(n.attributes) + ":" + n.mode, n.targets !== void 0)
|
|
26885
26887
|
for (let i = 0, s = n.targets.length; i < s; i++)
|
|
26886
|
-
e += ":" +
|
|
26888
|
+
e += ":" + cd(n.targets[i]);
|
|
26887
26889
|
return e;
|
|
26888
26890
|
}
|
|
26889
|
-
function
|
|
26891
|
+
function cd(n) {
|
|
26890
26892
|
let e = "";
|
|
26891
26893
|
const t = Object.keys(n).sort();
|
|
26892
26894
|
for (let i = 0, s = t.length; i < s; i++)
|
|
@@ -27131,12 +27133,12 @@ class UP {
|
|
|
27131
27133
|
loadAccessor(e) {
|
|
27132
27134
|
const t = this, i = this.json, s = this.json.accessors[e];
|
|
27133
27135
|
if (s.bufferView === void 0 && s.sparse === void 0) {
|
|
27134
|
-
const a =
|
|
27136
|
+
const a = ld[s.type], o = Ra[s.componentType], l = s.normalized === !0, c = new o(s.count * a);
|
|
27135
27137
|
return Promise.resolve(new ut(c, a, l));
|
|
27136
27138
|
}
|
|
27137
27139
|
const r = [];
|
|
27138
27140
|
return s.bufferView !== void 0 ? r.push(this.getDependency("bufferView", s.bufferView)) : r.push(null), s.sparse !== void 0 && (r.push(this.getDependency("bufferView", s.sparse.indices.bufferView)), r.push(this.getDependency("bufferView", s.sparse.values.bufferView))), Promise.all(r).then(function(a) {
|
|
27139
|
-
const o = a[0], l =
|
|
27141
|
+
const o = a[0], l = ld[s.type], c = Ra[s.componentType], d = c.BYTES_PER_ELEMENT, h = d * l, u = s.byteOffset || 0, p = s.bufferView !== void 0 ? i.bufferViews[s.bufferView].byteStride : void 0, m = s.normalized === !0;
|
|
27140
27142
|
let y, g;
|
|
27141
27143
|
if (p && p !== h) {
|
|
27142
27144
|
const f = Math.floor(u / p), v = "InterleavedBuffer:" + s.bufferView + ":" + s.componentType + ":" + f + ":" + s.count;
|
|
@@ -27145,7 +27147,7 @@ class UP {
|
|
|
27145
27147
|
} else
|
|
27146
27148
|
o === null ? y = new c(s.count * l) : y = new c(o, u, s.count * l), g = new ut(y, l, m);
|
|
27147
27149
|
if (s.sparse !== void 0) {
|
|
27148
|
-
const f =
|
|
27150
|
+
const f = ld.SCALAR, v = Ra[s.sparse.indices.componentType], b = s.sparse.indices.byteOffset || 0, x = s.sparse.values.byteOffset || 0, S = new v(a[1], b, s.sparse.count * f), C = new c(a[2], x, s.sparse.count * l);
|
|
27149
27151
|
o !== null && (g = new ut(g.array.slice(), g.itemSize, g.normalized));
|
|
27150
27152
|
for (let T = 0, I = S.length; T < I; T++) {
|
|
27151
27153
|
const L = S[T];
|
|
@@ -27291,8 +27293,8 @@ class UP {
|
|
|
27291
27293
|
})));
|
|
27292
27294
|
}
|
|
27293
27295
|
r.doubleSided === !0 && (o.side = Li);
|
|
27294
|
-
const d = r.alphaMode ||
|
|
27295
|
-
if (d ===
|
|
27296
|
+
const d = r.alphaMode || hd.OPAQUE;
|
|
27297
|
+
if (d === hd.BLEND ? (o.transparent = !0, o.depthWrite = !1) : (o.transparent = !1, d === hd.MASK && (o.alphaTest = r.alphaCutoff !== void 0 ? r.alphaCutoff : 0.5)), r.normalTexture !== void 0 && a !== Gn && (c.push(t.assignTexture(o, "normalMap", r.normalTexture)), o.normalScale = new ge(1, 1), r.normalTexture.scale !== void 0)) {
|
|
27296
27298
|
const h = r.normalTexture.scale;
|
|
27297
27299
|
o.normalScale.set(h, h);
|
|
27298
27300
|
}
|
|
@@ -27355,7 +27357,7 @@ class UP {
|
|
|
27355
27357
|
let f;
|
|
27356
27358
|
const v = c[p];
|
|
27357
27359
|
if (g.mode === zi.TRIANGLES || g.mode === zi.TRIANGLE_STRIP || g.mode === zi.TRIANGLE_FAN || g.mode === void 0)
|
|
27358
|
-
f = r.isSkinnedMesh === !0 ? new H2(y, v) : new ni(y, v), f.isSkinnedMesh === !0 && f.normalizeSkinWeights(), g.mode === zi.TRIANGLE_STRIP ? f.geometry = ky(f.geometry, Sb) : g.mode === zi.TRIANGLE_FAN && (f.geometry = ky(f.geometry,
|
|
27360
|
+
f = r.isSkinnedMesh === !0 ? new H2(y, v) : new ni(y, v), f.isSkinnedMesh === !0 && f.normalizeSkinWeights(), g.mode === zi.TRIANGLE_STRIP ? f.geometry = ky(f.geometry, Sb) : g.mode === zi.TRIANGLE_FAN && (f.geometry = ky(f.geometry, rp));
|
|
27359
27361
|
else if (g.mode === zi.LINES)
|
|
27360
27362
|
f = new j2(y, v);
|
|
27361
27363
|
else if (g.mode === zi.LINE_STRIP)
|
|
@@ -27394,7 +27396,7 @@ class UP {
|
|
|
27394
27396
|
console.warn("THREE.GLTFLoader: Missing camera parameters.");
|
|
27395
27397
|
return;
|
|
27396
27398
|
}
|
|
27397
|
-
return i.type === "perspective" ? t = new di(Uo.radToDeg(s.yfov), s.aspectRatio || 1, s.znear || 1, s.zfar || 2e6) : i.type === "orthographic" && (t = new
|
|
27399
|
+
return i.type === "perspective" ? t = new di(Uo.radToDeg(s.yfov), s.aspectRatio || 1, s.znear || 1, s.zfar || 2e6) : i.type === "orthographic" && (t = new Bc(-s.xmag, s.xmag, s.ymag, -s.ymag, s.znear, s.zfar)), i.name && (t.name = this.createUniqueName(i.name)), Is(t, i), Promise.resolve(t);
|
|
27398
27400
|
}
|
|
27399
27401
|
/**
|
|
27400
27402
|
* Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#skins
|
|
@@ -27661,7 +27663,7 @@ function o0(n, e, t) {
|
|
|
27661
27663
|
return e.targets !== void 0 ? jP(n, e.targets, t) : n;
|
|
27662
27664
|
});
|
|
27663
27665
|
}
|
|
27664
|
-
const
|
|
27666
|
+
const ud = /* @__PURE__ */ new WeakMap();
|
|
27665
27667
|
class $P extends ps {
|
|
27666
27668
|
constructor(e) {
|
|
27667
27669
|
super(e), this.decoderPath = "", this.decoderConfig = {}, this.decoderBinary = null, this.decoderPending = null, this.workerLimit = 4, this.workerPool = [], this.workerNextTaskID = 1, this.workerSourceURL = "", this.defaultAttributeIDs = {
|
|
@@ -27705,8 +27707,8 @@ class $P extends ps {
|
|
|
27705
27707
|
}
|
|
27706
27708
|
decodeGeometry(e, t) {
|
|
27707
27709
|
const i = JSON.stringify(t);
|
|
27708
|
-
if (
|
|
27709
|
-
const l =
|
|
27710
|
+
if (ud.has(e)) {
|
|
27711
|
+
const l = ud.get(e);
|
|
27710
27712
|
if (l.key === i)
|
|
27711
27713
|
return l.promise;
|
|
27712
27714
|
if (e.byteLength === 0)
|
|
@@ -27720,7 +27722,7 @@ class $P extends ps {
|
|
|
27720
27722
|
}))).then((l) => this._createGeometry(l.geometry));
|
|
27721
27723
|
return o.catch(() => !0).then(() => {
|
|
27722
27724
|
s && r && this._releaseTask(s, r);
|
|
27723
|
-
}),
|
|
27725
|
+
}), ud.set(e, {
|
|
27724
27726
|
key: i,
|
|
27725
27727
|
promise: o
|
|
27726
27728
|
}), o;
|
|
@@ -27896,10 +27898,10 @@ function e5() {
|
|
|
27896
27898
|
}
|
|
27897
27899
|
}
|
|
27898
27900
|
}
|
|
27899
|
-
const Tp = new bP(),
|
|
27900
|
-
window.dracoPath ?
|
|
27901
|
-
|
|
27902
|
-
Tp.setDRACOLoader(
|
|
27901
|
+
const Tp = new bP(), vc = new $P();
|
|
27902
|
+
window.dracoPath ? vc.setDecoderPath(window.dracoPath) : vc.setDecoderPath("./draco/");
|
|
27903
|
+
vc.setDecoderConfig({ type: "wasm" });
|
|
27904
|
+
Tp.setDRACOLoader(vc);
|
|
27903
27905
|
const l0 = [115, 103, 108, 98];
|
|
27904
27906
|
function GX(n, e, t) {
|
|
27905
27907
|
const i = JSON.stringify(e), s = new TextEncoder().encode(i), r = new Uint8Array([115, 103, 108, 98]), a = new Uint8Array(2);
|
|
@@ -28042,7 +28044,7 @@ class h0 extends eP {
|
|
|
28042
28044
|
}
|
|
28043
28045
|
clearSlot() {
|
|
28044
28046
|
this._slotContainer.children.forEach((e) => {
|
|
28045
|
-
e.removeFromParent(),
|
|
28047
|
+
e.removeFromParent(), yc(e);
|
|
28046
28048
|
}), this.element.classList.remove("filled"), this.deviceInfo = void 0;
|
|
28047
28049
|
}
|
|
28048
28050
|
enable() {
|
|
@@ -28081,7 +28083,7 @@ class h0 extends eP {
|
|
|
28081
28083
|
this._canInstall = e, e ? this.element.classList.add("can-install") : this.element.classList.remove("can-install");
|
|
28082
28084
|
}
|
|
28083
28085
|
dispose() {
|
|
28084
|
-
this.clearSlot(), this._emitter.removeAllListeners(),
|
|
28086
|
+
this.clearSlot(), this._emitter.removeAllListeners(), yc(this._slotContainer), this.element.remove();
|
|
28085
28087
|
}
|
|
28086
28088
|
}
|
|
28087
28089
|
/**
|
|
@@ -28137,7 +28139,7 @@ const Sx = (n) => new xx(typeof n == "string" ? n : n + "", void 0, Uf), Lx = (n
|
|
|
28137
28139
|
* Copyright 2017 Google LLC
|
|
28138
28140
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
28139
28141
|
*/
|
|
28140
|
-
const { is: n5, defineProperty: s5, getOwnPropertyDescriptor: r5, getOwnPropertyNames: a5, getOwnPropertySymbols: o5, getPrototypeOf: l5 } = Object, Os = globalThis, d0 = Os.trustedTypes, h5 = d0 ? d0.emptyScript : "",
|
|
28142
|
+
const { is: n5, defineProperty: s5, getOwnPropertyDescriptor: r5, getOwnPropertyNames: a5, getOwnPropertySymbols: o5, getPrototypeOf: l5 } = Object, Os = globalThis, d0 = Os.trustedTypes, h5 = d0 ? d0.emptyScript : "", dd = Os.reactiveElementPolyfillSupport, nl = (n, e) => n, bc = { toAttribute(n, e) {
|
|
28141
28143
|
switch (e) {
|
|
28142
28144
|
case Boolean:
|
|
28143
28145
|
n = n ? h5 : null;
|
|
@@ -28165,7 +28167,7 @@ const { is: n5, defineProperty: s5, getOwnPropertyDescriptor: r5, getOwnProperty
|
|
|
28165
28167
|
}
|
|
28166
28168
|
}
|
|
28167
28169
|
return t;
|
|
28168
|
-
} }, Qf = (n, e) => !n5(n, e), p0 = { attribute: !0, type: String, converter:
|
|
28170
|
+
} }, Qf = (n, e) => !n5(n, e), p0 = { attribute: !0, type: String, converter: bc, reflect: !1, hasChanged: Qf };
|
|
28169
28171
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Os.litPropertyMetadata ?? (Os.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
28170
28172
|
let ya = class extends HTMLElement {
|
|
28171
28173
|
static addInitializer(e) {
|
|
@@ -28286,7 +28288,7 @@ let ya = class extends HTMLElement {
|
|
|
28286
28288
|
var r;
|
|
28287
28289
|
const i = this.constructor.elementProperties.get(e), s = this.constructor._$Eu(e, i);
|
|
28288
28290
|
if (s !== void 0 && i.reflect === !0) {
|
|
28289
|
-
const a = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter :
|
|
28291
|
+
const a = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : bc).toAttribute(t, i.type);
|
|
28290
28292
|
this._$Em = e, a == null ? this.removeAttribute(s) : this.setAttribute(s, a), this._$Em = null;
|
|
28291
28293
|
}
|
|
28292
28294
|
}
|
|
@@ -28294,7 +28296,7 @@ let ya = class extends HTMLElement {
|
|
|
28294
28296
|
var r;
|
|
28295
28297
|
const i = this.constructor, s = i._$Eh.get(e);
|
|
28296
28298
|
if (s !== void 0 && this._$Em !== s) {
|
|
28297
|
-
const a = i.getPropertyOptions(s), o = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter :
|
|
28299
|
+
const a = i.getPropertyOptions(s), o = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter : bc;
|
|
28298
28300
|
this._$Em = s, this[s] = o.fromAttribute(t, a.type), this._$Em = null;
|
|
28299
28301
|
}
|
|
28300
28302
|
}
|
|
@@ -28378,14 +28380,14 @@ let ya = class extends HTMLElement {
|
|
|
28378
28380
|
firstUpdated(e) {
|
|
28379
28381
|
}
|
|
28380
28382
|
};
|
|
28381
|
-
ya.elementStyles = [], ya.shadowRootOptions = { mode: "open" }, ya[nl("elementProperties")] = /* @__PURE__ */ new Map(), ya[nl("finalized")] = /* @__PURE__ */ new Map(),
|
|
28383
|
+
ya.elementStyles = [], ya.shadowRootOptions = { mode: "open" }, ya[nl("elementProperties")] = /* @__PURE__ */ new Map(), ya[nl("finalized")] = /* @__PURE__ */ new Map(), dd == null || dd({ ReactiveElement: ya }), (Os.reactiveElementVersions ?? (Os.reactiveElementVersions = [])).push("2.0.3");
|
|
28382
28384
|
/**
|
|
28383
28385
|
* @license
|
|
28384
28386
|
* Copyright 2017 Google LLC
|
|
28385
28387
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
28386
28388
|
*/
|
|
28387
|
-
const sl = globalThis,
|
|
28388
|
-
\f\r]`, Ao = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, m0 = /-->/g, g0 = />/g, $s = RegExp(`>|${
|
|
28389
|
+
const sl = globalThis, xc = sl.trustedTypes, f0 = xc ? xc.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, Cx = "$lit$", Gs = `lit$${(Math.random() + "").slice(9)}$`, Tx = "?" + Gs, c5 = `<${Tx}>`, Mr = document, pl = () => Mr.createComment(""), fl = (n) => n === null || typeof n != "object" && typeof n != "function", Mx = Array.isArray, u5 = (n) => Mx(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", pd = `[
|
|
28390
|
+
\f\r]`, Ao = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, m0 = /-->/g, g0 = />/g, $s = RegExp(`>|${pd}(?:([^\\s"'>=/]+)(${pd}*=${pd}*(?:[^
|
|
28389
28391
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), y0 = /'/g, v0 = /"/g, Ix = /^(?:script|style|textarea|title)$/i, wx = (n) => (e, ...t) => ({ _$litType$: n, strings: e, values: t }), d5 = wx(1), b0 = wx(2), eo = Symbol.for("lit-noChange"), ii = Symbol.for("lit-nothing"), x0 = /* @__PURE__ */ new WeakMap(), fr = Mr.createTreeWalker(Mr, 129);
|
|
28390
28392
|
function _x(n, e) {
|
|
28391
28393
|
if (!Array.isArray(n) || !n.hasOwnProperty("raw"))
|
|
@@ -28421,13 +28423,13 @@ let Mp = class Gx {
|
|
|
28421
28423
|
for (const h of s.getAttributeNames())
|
|
28422
28424
|
if (h.endsWith(Cx)) {
|
|
28423
28425
|
const u = d[a++], p = s.getAttribute(h).split(Gs), m = /([.?@])?(.*)/.exec(u);
|
|
28424
|
-
l.push({ type: 1, index: r, name: m[2], strings: p, ctor: m[1] === "." ? m5 : m[1] === "?" ? g5 : m[1] === "@" ? y5 :
|
|
28426
|
+
l.push({ type: 1, index: r, name: m[2], strings: p, ctor: m[1] === "." ? m5 : m[1] === "?" ? g5 : m[1] === "@" ? y5 : $c }), s.removeAttribute(h);
|
|
28425
28427
|
} else
|
|
28426
28428
|
h.startsWith(Gs) && (l.push({ type: 6, index: r }), s.removeAttribute(h));
|
|
28427
28429
|
if (Ix.test(s.tagName)) {
|
|
28428
28430
|
const h = s.textContent.split(Gs), u = h.length - 1;
|
|
28429
28431
|
if (u > 0) {
|
|
28430
|
-
s.textContent =
|
|
28432
|
+
s.textContent = xc ? xc.emptyScript : "";
|
|
28431
28433
|
for (let p = 0; p < u; p++)
|
|
28432
28434
|
s.append(h[p], pl()), fr.nextNode(), l.push({ type: 2, index: ++r });
|
|
28433
28435
|
s.append(h[u], pl());
|
|
@@ -28549,7 +28551,7 @@ let f5 = class {
|
|
|
28549
28551
|
var t;
|
|
28550
28552
|
this._$AM === void 0 && (this._$Cv = e, (t = this._$AP) == null || t.call(this, e));
|
|
28551
28553
|
}
|
|
28552
|
-
},
|
|
28554
|
+
}, $c = class {
|
|
28553
28555
|
get tagName() {
|
|
28554
28556
|
return this.element.tagName;
|
|
28555
28557
|
}
|
|
@@ -28575,21 +28577,21 @@ let f5 = class {
|
|
|
28575
28577
|
O(e) {
|
|
28576
28578
|
e === ii ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
28577
28579
|
}
|
|
28578
|
-
}, m5 = class extends
|
|
28580
|
+
}, m5 = class extends $c {
|
|
28579
28581
|
constructor() {
|
|
28580
28582
|
super(...arguments), this.type = 3;
|
|
28581
28583
|
}
|
|
28582
28584
|
O(e) {
|
|
28583
28585
|
this.element[this.name] = e === ii ? void 0 : e;
|
|
28584
28586
|
}
|
|
28585
|
-
}, g5 = class extends
|
|
28587
|
+
}, g5 = class extends $c {
|
|
28586
28588
|
constructor() {
|
|
28587
28589
|
super(...arguments), this.type = 4;
|
|
28588
28590
|
}
|
|
28589
28591
|
O(e) {
|
|
28590
28592
|
this.element.toggleAttribute(this.name, !!e && e !== ii);
|
|
28591
28593
|
}
|
|
28592
|
-
}, y5 = class extends
|
|
28594
|
+
}, y5 = class extends $c {
|
|
28593
28595
|
constructor(e, t, i, s, r) {
|
|
28594
28596
|
super(e, t, i, s, r), this.type = 5;
|
|
28595
28597
|
}
|
|
@@ -28614,8 +28616,8 @@ let f5 = class {
|
|
|
28614
28616
|
to(this, e);
|
|
28615
28617
|
}
|
|
28616
28618
|
};
|
|
28617
|
-
const
|
|
28618
|
-
|
|
28619
|
+
const fd = sl.litHtmlPolyfillSupport;
|
|
28620
|
+
fd == null || fd(Mp, $f), (sl.litHtmlVersions ?? (sl.litHtmlVersions = [])).push("3.1.1");
|
|
28619
28621
|
const b5 = (n, e, t) => {
|
|
28620
28622
|
const i = (t == null ? void 0 : t.renderBefore) ?? e;
|
|
28621
28623
|
let s = i._$litPart$;
|
|
@@ -28657,8 +28659,8 @@ let Ka = class extends ya {
|
|
|
28657
28659
|
};
|
|
28658
28660
|
var ob;
|
|
28659
28661
|
Ka._$litElement$ = !0, Ka.finalized = !0, (ob = globalThis.litElementHydrateSupport) == null || ob.call(globalThis, { LitElement: Ka });
|
|
28660
|
-
const
|
|
28661
|
-
|
|
28662
|
+
const md = globalThis.litElementPolyfillSupport;
|
|
28663
|
+
md == null || md({ LitElement: Ka });
|
|
28662
28664
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.3");
|
|
28663
28665
|
/**
|
|
28664
28666
|
* @license
|
|
@@ -28675,7 +28677,7 @@ const Ex = (n) => (e, t) => {
|
|
|
28675
28677
|
* Copyright 2017 Google LLC
|
|
28676
28678
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
28677
28679
|
*/
|
|
28678
|
-
const x5 = { attribute: !0, type: String, converter:
|
|
28680
|
+
const x5 = { attribute: !0, type: String, converter: bc, reflect: !1, hasChanged: Qf }, S5 = (n = x5, e, t) => {
|
|
28679
28681
|
const { kind: i, metadata: s } = t;
|
|
28680
28682
|
let r = globalThis.litPropertyMetadata.get(s);
|
|
28681
28683
|
if (r === void 0 && globalThis.litPropertyMetadata.set(s, r = /* @__PURE__ */ new Map()), r.set(t.name, n), i === "accessor") {
|
|
@@ -28780,6 +28782,9 @@ let io = class extends Ka {
|
|
|
28780
28782
|
addLine(n) {
|
|
28781
28783
|
this.lines.has(n.uuid) || this.lines.set(n.uuid, n);
|
|
28782
28784
|
}
|
|
28785
|
+
clear() {
|
|
28786
|
+
this.lines.clear();
|
|
28787
|
+
}
|
|
28783
28788
|
removeLine(n) {
|
|
28784
28789
|
this.lines.delete(n.uuid);
|
|
28785
28790
|
}
|
|
@@ -28925,7 +28930,7 @@ class NX {
|
|
|
28925
28930
|
});
|
|
28926
28931
|
}), this._pointerDownTimeout = 0;
|
|
28927
28932
|
};
|
|
28928
|
-
this._pointerDownTimeout = window.setTimeout(i,
|
|
28933
|
+
this._pointerDownTimeout = window.setTimeout(i, 200);
|
|
28929
28934
|
}, this._detectTrackpad = () => {
|
|
28930
28935
|
va || typeof va < "u" || (Uh === 0 && (Ip = performance.now()), Uh++, performance.now() - Ip > 66 && (Uh > 5 ? va = !0 : va = !1, va ? this.controls.zoomSpeed = 0.2 : this.controls.zoomSpeed = 1, setTimeout(G5, 2e3)));
|
|
28931
28936
|
}, this.fit = () => {
|
|
@@ -29071,8 +29076,11 @@ class NX {
|
|
|
29071
29076
|
const e = this.renderer.domElement.toDataURL("image/png"), t = document.createElement("a");
|
|
29072
29077
|
t.href = e, t.download = "transparent-background-object.png", document.body.appendChild(t), t.click(), document.body.removeChild(t);
|
|
29073
29078
|
}
|
|
29079
|
+
clearAMR() {
|
|
29080
|
+
yc(this._container), this._slots = [], this._logos = [], this._skins = [], this._materialsCache.clear(), this.opacityCache = void 0, this.usePathTracing = !1, this.lines.clear();
|
|
29081
|
+
}
|
|
29074
29082
|
async addAMR(e) {
|
|
29075
|
-
if (!e.endsWith(".sglb"))
|
|
29083
|
+
if (!e.startsWith("blob") && !e.endsWith(".sglb"))
|
|
29076
29084
|
return console.error("Not valid amr file url.");
|
|
29077
29085
|
const i = await new bx({ useCache: !0 }).loadAsync(e);
|
|
29078
29086
|
if (!i.glb)
|
|
@@ -29239,7 +29247,7 @@ const P5 = {
|
|
|
29239
29247
|
*/
|
|
29240
29248
|
ROUND_PIXELS: !1
|
|
29241
29249
|
};
|
|
29242
|
-
var
|
|
29250
|
+
var gd = /iPhone/i, C0 = /iPod/i, T0 = /iPad/i, M0 = /\biOS-universal(?:.+)Mac\b/i, yd = /\bAndroid(?:.+)Mobile\b/i, I0 = /Android/i, da = /(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i, Lh = /Silk/i, jn = /Windows Phone/i, w0 = /\bWindows(?:.+)ARM\b/i, _0 = /BlackBerry/i, G0 = /BB10/i, P0 = /Opera Mini/i, E0 = /\b(CriOS|Chrome)(?:.+)Mobile/i, A0 = /Mobile(?:.+)Firefox\b/i, R0 = function(n) {
|
|
29243
29251
|
return typeof n < "u" && n.platform === "MacIntel" && typeof n.maxTouchPoints == "number" && n.maxTouchPoints > 1 && typeof MSStream > "u";
|
|
29244
29252
|
};
|
|
29245
29253
|
function E5(n) {
|
|
@@ -29266,11 +29274,11 @@ function K0(n) {
|
|
|
29266
29274
|
typeof i[1] < "u" && (t = i[0]), i = t.split("Twitter"), typeof i[1] < "u" && (t = i[0]);
|
|
29267
29275
|
var s = E5(t), r = {
|
|
29268
29276
|
apple: {
|
|
29269
|
-
phone: s(
|
|
29277
|
+
phone: s(gd) && !s(jn),
|
|
29270
29278
|
ipod: s(C0),
|
|
29271
|
-
tablet: !s(
|
|
29279
|
+
tablet: !s(gd) && (s(T0) || R0(e)) && !s(jn),
|
|
29272
29280
|
universal: s(M0),
|
|
29273
|
-
device: (s(
|
|
29281
|
+
device: (s(gd) || s(C0) || s(T0) || s(M0) || R0(e)) && !s(jn)
|
|
29274
29282
|
},
|
|
29275
29283
|
amazon: {
|
|
29276
29284
|
phone: s(da),
|
|
@@ -29278,9 +29286,9 @@ function K0(n) {
|
|
|
29278
29286
|
device: s(da) || s(Lh)
|
|
29279
29287
|
},
|
|
29280
29288
|
android: {
|
|
29281
|
-
phone: !s(jn) && s(da) || !s(jn) && s(
|
|
29282
|
-
tablet: !s(jn) && !s(da) && !s(
|
|
29283
|
-
device: !s(jn) && (s(da) || s(Lh) || s(
|
|
29289
|
+
phone: !s(jn) && s(da) || !s(jn) && s(yd),
|
|
29290
|
+
tablet: !s(jn) && !s(da) && !s(yd) && (s(Lh) || s(I0)),
|
|
29291
|
+
device: !s(jn) && (s(da) || s(Lh) || s(yd) || s(I0)) || s(/\bokhttp\b/i)
|
|
29284
29292
|
},
|
|
29285
29293
|
windows: {
|
|
29286
29294
|
phone: s(jn),
|
|
@@ -29418,9 +29426,9 @@ var Kx = { exports: {} };
|
|
|
29418
29426
|
var R5 = Kx.exports;
|
|
29419
29427
|
const Sl = /* @__PURE__ */ Jf(R5);
|
|
29420
29428
|
var im = { exports: {} };
|
|
29421
|
-
im.exports =
|
|
29422
|
-
im.exports.default =
|
|
29423
|
-
function
|
|
29429
|
+
im.exports = eu;
|
|
29430
|
+
im.exports.default = eu;
|
|
29431
|
+
function eu(n, e, t) {
|
|
29424
29432
|
t = t || 2;
|
|
29425
29433
|
var i = e && e.length, s = i ? e[0] * t : n.length, r = Ox(n, 0, s, t, !0), a = [];
|
|
29426
29434
|
if (!r || r.next === r.prev)
|
|
@@ -29442,7 +29450,7 @@ function Ox(n, e, t, i, s) {
|
|
|
29442
29450
|
else
|
|
29443
29451
|
for (r = t - i; r >= e; r -= i)
|
|
29444
29452
|
a = O0(r, n[r], n[r + 1], a);
|
|
29445
|
-
return a &&
|
|
29453
|
+
return a && tu(a, a.next) && (yl(a), a = a.next), a;
|
|
29446
29454
|
}
|
|
29447
29455
|
function Ir(n, e) {
|
|
29448
29456
|
if (!n)
|
|
@@ -29450,7 +29458,7 @@ function Ir(n, e) {
|
|
|
29450
29458
|
e || (e = n);
|
|
29451
29459
|
var t = n, i;
|
|
29452
29460
|
do
|
|
29453
|
-
if (i = !1, !t.steiner && (
|
|
29461
|
+
if (i = !1, !t.steiner && (tu(t, t.next) || Pt(t.prev, t, t.next) === 0)) {
|
|
29454
29462
|
if (yl(t), t = e = t.prev, t === t.next)
|
|
29455
29463
|
break;
|
|
29456
29464
|
i = !0;
|
|
@@ -29510,7 +29518,7 @@ function q5(n, e, t) {
|
|
|
29510
29518
|
var i = n;
|
|
29511
29519
|
do {
|
|
29512
29520
|
var s = i.prev, r = i.next.next;
|
|
29513
|
-
!
|
|
29521
|
+
!tu(s, r) && qx(s, i, i.next, r) && gl(s, r) && gl(r, s) && (e.push(s.i / t | 0), e.push(i.i / t | 0), e.push(r.i / t | 0), yl(i), yl(i.next), i = n = r), i = i.next;
|
|
29514
29522
|
} while (i !== n);
|
|
29515
29523
|
return Ir(i);
|
|
29516
29524
|
}
|
|
@@ -29606,12 +29614,12 @@ function j5(n, e) {
|
|
|
29606
29614
|
return n.next.i !== e.i && n.prev.i !== e.i && !F5(n, e) && // dones't intersect other edges
|
|
29607
29615
|
(gl(n, e) && gl(e, n) && B5(n, e) && // locally visible
|
|
29608
29616
|
(Pt(n.prev, n, e.prev) || Pt(n, e.prev, e)) || // does not create opposite-facing sectors
|
|
29609
|
-
|
|
29617
|
+
tu(n, e) && Pt(n.prev, n, n.next) > 0 && Pt(e.prev, e, e.next) > 0);
|
|
29610
29618
|
}
|
|
29611
29619
|
function Pt(n, e, t) {
|
|
29612
29620
|
return (e.y - n.y) * (t.x - e.x) - (e.x - n.x) * (t.y - e.y);
|
|
29613
29621
|
}
|
|
29614
|
-
function
|
|
29622
|
+
function tu(n, e) {
|
|
29615
29623
|
return n.x === e.x && n.y === e.y;
|
|
29616
29624
|
}
|
|
29617
29625
|
function qx(n, e, t, i) {
|
|
@@ -29657,7 +29665,7 @@ function yl(n) {
|
|
|
29657
29665
|
function Gp(n, e, t) {
|
|
29658
29666
|
this.i = n, this.x = e, this.y = t, this.prev = null, this.next = null, this.z = 0, this.prevZ = null, this.nextZ = null, this.steiner = !1;
|
|
29659
29667
|
}
|
|
29660
|
-
|
|
29668
|
+
eu.deviation = function(n, e, t, i) {
|
|
29661
29669
|
var s = e && e.length, r = s ? e[0] * t : n.length, a = Math.abs(Pp(n, 0, r, t));
|
|
29662
29670
|
if (s)
|
|
29663
29671
|
for (var o = 0, l = e.length; o < l; o++) {
|
|
@@ -29678,7 +29686,7 @@ function Pp(n, e, t, i) {
|
|
|
29678
29686
|
s += (n[a] - n[r]) * (n[r + 1] + n[a + 1]), a = r;
|
|
29679
29687
|
return s;
|
|
29680
29688
|
}
|
|
29681
|
-
|
|
29689
|
+
eu.flatten = function(n) {
|
|
29682
29690
|
for (var e = n[0][0].length, t = { vertices: [], holes: [], dimensions: e }, i = 0, s = 0; s < n.length; s++) {
|
|
29683
29691
|
for (var r = 0; r < n[s].length; r++)
|
|
29684
29692
|
for (var a = 0; a < e; a++)
|
|
@@ -29689,9 +29697,9 @@ $c.flatten = function(n) {
|
|
|
29689
29697
|
};
|
|
29690
29698
|
var J5 = im.exports;
|
|
29691
29699
|
const V5 = /* @__PURE__ */ Jf(J5);
|
|
29692
|
-
var
|
|
29700
|
+
var Sc = { exports: {} };
|
|
29693
29701
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
29694
|
-
|
|
29702
|
+
Sc.exports;
|
|
29695
29703
|
(function(n, e) {
|
|
29696
29704
|
(function(t) {
|
|
29697
29705
|
var i = e && !e.nodeType && e, s = n && !n.nodeType && n, r = typeof Qn == "object" && Qn;
|
|
@@ -29809,8 +29817,8 @@ xc.exports;
|
|
|
29809
29817
|
else
|
|
29810
29818
|
t.punycode = a;
|
|
29811
29819
|
})(Qn);
|
|
29812
|
-
})(
|
|
29813
|
-
var U5 =
|
|
29820
|
+
})(Sc, Sc.exports);
|
|
29821
|
+
var U5 = Sc.exports, Q5 = function() {
|
|
29814
29822
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
29815
29823
|
return !1;
|
|
29816
29824
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -29877,7 +29885,7 @@ var U5 = xc.exports, Q5 = function() {
|
|
|
29877
29885
|
c.prototype = t.prototype, s.prototype = new c(), c.prototype = null;
|
|
29878
29886
|
}
|
|
29879
29887
|
return s;
|
|
29880
|
-
}, cE = hE, nm = Function.prototype.bind || cE, uE = Function.prototype.call, dE = Object.prototype.hasOwnProperty, pE = nm, fE = pE.call(uE, dE), at, no = SyntaxError, zx = Function, qa = TypeError,
|
|
29888
|
+
}, cE = hE, nm = Function.prototype.bind || cE, uE = Function.prototype.call, dE = Object.prototype.hasOwnProperty, pE = nm, fE = pE.call(uE, dE), at, no = SyntaxError, zx = Function, qa = TypeError, vd = function(n) {
|
|
29881
29889
|
try {
|
|
29882
29890
|
return zx('"use strict"; return (' + n + ").constructor;")();
|
|
29883
29891
|
} catch {
|
|
@@ -29889,19 +29897,19 @@ if (xr)
|
|
|
29889
29897
|
} catch {
|
|
29890
29898
|
xr = null;
|
|
29891
29899
|
}
|
|
29892
|
-
var
|
|
29900
|
+
var bd = function() {
|
|
29893
29901
|
throw new qa();
|
|
29894
29902
|
}, mE = xr ? function() {
|
|
29895
29903
|
try {
|
|
29896
|
-
return arguments.callee,
|
|
29904
|
+
return arguments.callee, bd;
|
|
29897
29905
|
} catch {
|
|
29898
29906
|
try {
|
|
29899
29907
|
return xr(arguments, "callee").get;
|
|
29900
29908
|
} catch {
|
|
29901
|
-
return
|
|
29909
|
+
return bd;
|
|
29902
29910
|
}
|
|
29903
29911
|
}
|
|
29904
|
-
}() :
|
|
29912
|
+
}() : bd, pa = eE(), gE = iE(), ei = Object.getPrototypeOf || (gE ? function(n) {
|
|
29905
29913
|
return n.__proto__;
|
|
29906
29914
|
} : null), ba = {}, yE = typeof Uint8Array > "u" || !ei ? at : ei(Uint8Array), Sr = {
|
|
29907
29915
|
"%AggregateError%": typeof AggregateError > "u" ? at : AggregateError,
|
|
@@ -29982,11 +29990,11 @@ if (ei)
|
|
|
29982
29990
|
var bE = function n(e) {
|
|
29983
29991
|
var t;
|
|
29984
29992
|
if (e === "%AsyncFunction%")
|
|
29985
|
-
t =
|
|
29993
|
+
t = vd("async function () {}");
|
|
29986
29994
|
else if (e === "%GeneratorFunction%")
|
|
29987
|
-
t =
|
|
29995
|
+
t = vd("function* () {}");
|
|
29988
29996
|
else if (e === "%AsyncGeneratorFunction%")
|
|
29989
|
-
t =
|
|
29997
|
+
t = vd("async function* () {}");
|
|
29990
29998
|
else if (e === "%AsyncGenerator%") {
|
|
29991
29999
|
var i = n("%AsyncGeneratorFunction%");
|
|
29992
30000
|
i && (t = i.prototype);
|
|
@@ -30047,8 +30055,8 @@ var bE = function n(e) {
|
|
|
30047
30055
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
30048
30056
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
30049
30057
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
30050
|
-
}, Ll = nm,
|
|
30051
|
-
var t =
|
|
30058
|
+
}, Ll = nm, Lc = fE, xE = Ll.call(Function.call, Array.prototype.concat), SE = Ll.call(Function.apply, Array.prototype.splice), N0 = Ll.call(Function.call, String.prototype.replace), Cc = Ll.call(Function.call, String.prototype.slice), LE = Ll.call(Function.call, RegExp.prototype.exec), CE = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, TE = /\\(\\)?/g, ME = function(e) {
|
|
30059
|
+
var t = Cc(e, 0, 1), i = Cc(e, -1);
|
|
30052
30060
|
if (t === "%" && i !== "%")
|
|
30053
30061
|
throw new no("invalid intrinsic syntax, expected closing `%`");
|
|
30054
30062
|
if (i === "%" && t !== "%")
|
|
@@ -30059,7 +30067,7 @@ var bE = function n(e) {
|
|
|
30059
30067
|
}), s;
|
|
30060
30068
|
}, IE = function(e, t) {
|
|
30061
30069
|
var i = e, s;
|
|
30062
|
-
if (
|
|
30070
|
+
if (Lc(W0, i) && (s = W0[i], i = "%" + s[0] + "%"), Lc(Sr, i)) {
|
|
30063
30071
|
var r = Sr[i];
|
|
30064
30072
|
if (r === ba && (r = bE(i)), typeof r > "u" && !t)
|
|
30065
30073
|
throw new qa("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
@@ -30080,10 +30088,10 @@ var bE = function n(e) {
|
|
|
30080
30088
|
var i = ME(e), s = i.length > 0 ? i[0] : "", r = IE("%" + s + "%", t), a = r.name, o = r.value, l = !1, c = r.alias;
|
|
30081
30089
|
c && (s = c[0], SE(i, xE([0, 1], c)));
|
|
30082
30090
|
for (var d = 1, h = !0; d < i.length; d += 1) {
|
|
30083
|
-
var u = i[d], p =
|
|
30091
|
+
var u = i[d], p = Cc(u, 0, 1), m = Cc(u, -1);
|
|
30084
30092
|
if ((p === '"' || p === "'" || p === "`" || m === '"' || m === "'" || m === "`") && p !== m)
|
|
30085
30093
|
throw new no("property names with quotes must have matching quotes");
|
|
30086
|
-
if ((u === "constructor" || !h) && (l = !0), s += "." + u, a = "%" + s + "%",
|
|
30094
|
+
if ((u === "constructor" || !h) && (l = !0), s += "." + u, a = "%" + s + "%", Lc(Sr, a))
|
|
30087
30095
|
o = Sr[a];
|
|
30088
30096
|
else if (o != null) {
|
|
30089
30097
|
if (!(u in o)) {
|
|
@@ -30095,7 +30103,7 @@ var bE = function n(e) {
|
|
|
30095
30103
|
var y = xr(o, u);
|
|
30096
30104
|
h = !!y, h && "get" in y && !("originalValue" in y.get) ? o = y.get : o = o[u];
|
|
30097
30105
|
} else
|
|
30098
|
-
h =
|
|
30106
|
+
h = Lc(o, u), o = o[u];
|
|
30099
30107
|
h && !l && (Sr[a] = o);
|
|
30100
30108
|
}
|
|
30101
30109
|
}
|
|
@@ -30212,7 +30220,7 @@ const zE = {}, WE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
30212
30220
|
__proto__: null,
|
|
30213
30221
|
default: zE
|
|
30214
30222
|
}, Symbol.toStringTag, { value: "Module" })), NE = /* @__PURE__ */ hP(WE);
|
|
30215
|
-
var rm = typeof Map == "function" && Map.prototype,
|
|
30223
|
+
var rm = typeof Map == "function" && Map.prototype, xd = Object.getOwnPropertyDescriptor && rm ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Tc = rm && xd && typeof xd.get == "function" ? xd.get : null, D0 = rm && Map.prototype.forEach, am = typeof Set == "function" && Set.prototype, Sd = Object.getOwnPropertyDescriptor && am ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Mc = am && Sd && typeof Sd.get == "function" ? Sd.get : null, j0 = am && Set.prototype.forEach, kE = typeof WeakMap == "function" && WeakMap.prototype, al = kE ? WeakMap.prototype.has : null, HE = typeof WeakSet == "function" && WeakSet.prototype, ol = HE ? WeakSet.prototype.has : null, ZE = typeof WeakRef == "function" && WeakRef.prototype, F0 = ZE ? WeakRef.prototype.deref : null, YE = Boolean.prototype.valueOf, DE = Object.prototype.toString, jE = Function.prototype.toString, FE = String.prototype.match, om = String.prototype.slice, As = String.prototype.replace, BE = String.prototype.toUpperCase, B0 = String.prototype.toLowerCase, Dx = RegExp.prototype.test, J0 = Array.prototype.concat, In = Array.prototype.join, JE = Array.prototype.slice, V0 = Math.floor, Rp = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Ld = Object.getOwnPropertySymbols, Kp = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, so = typeof Symbol == "function" && typeof Symbol.iterator == "object", mi = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === so || !0) ? Symbol.toStringTag : null, jx = Object.prototype.propertyIsEnumerable, U0 = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(n) {
|
|
30216
30224
|
return n.__proto__;
|
|
30217
30225
|
} : null);
|
|
30218
30226
|
function Q0(n, e) {
|
|
@@ -30310,20 +30318,20 @@ var Op = NE, $0 = Op.custom, ev = Bx($0) ? $0 : null, VE = function n(e, t, i, s
|
|
|
30310
30318
|
var S = [];
|
|
30311
30319
|
return D0 && D0.call(e, function(G, w) {
|
|
30312
30320
|
S.push(u(w, e, !0) + " => " + u(G, e));
|
|
30313
|
-
}), iv("Map",
|
|
30321
|
+
}), iv("Map", Tc.call(e), S, h);
|
|
30314
30322
|
}
|
|
30315
30323
|
if (hA(e)) {
|
|
30316
30324
|
var C = [];
|
|
30317
30325
|
return j0 && j0.call(e, function(G) {
|
|
30318
30326
|
C.push(u(G, e));
|
|
30319
|
-
}), iv("Set",
|
|
30327
|
+
}), iv("Set", Mc.call(e), C, h);
|
|
30320
30328
|
}
|
|
30321
30329
|
if (oA(e))
|
|
30322
|
-
return
|
|
30330
|
+
return Cd("WeakMap");
|
|
30323
30331
|
if (cA(e))
|
|
30324
|
-
return
|
|
30332
|
+
return Cd("WeakSet");
|
|
30325
30333
|
if (lA(e))
|
|
30326
|
-
return
|
|
30334
|
+
return Cd("WeakRef");
|
|
30327
30335
|
if (tA(e))
|
|
30328
30336
|
return Ro(u(Number(e)));
|
|
30329
30337
|
if (nA(e))
|
|
@@ -30416,12 +30424,12 @@ function Jx(n, e) {
|
|
|
30416
30424
|
return -1;
|
|
30417
30425
|
}
|
|
30418
30426
|
function aA(n) {
|
|
30419
|
-
if (!
|
|
30427
|
+
if (!Tc || !n || typeof n != "object")
|
|
30420
30428
|
return !1;
|
|
30421
30429
|
try {
|
|
30422
|
-
|
|
30430
|
+
Tc.call(n);
|
|
30423
30431
|
try {
|
|
30424
|
-
|
|
30432
|
+
Mc.call(n);
|
|
30425
30433
|
} catch {
|
|
30426
30434
|
return !0;
|
|
30427
30435
|
}
|
|
@@ -30455,12 +30463,12 @@ function lA(n) {
|
|
|
30455
30463
|
return !1;
|
|
30456
30464
|
}
|
|
30457
30465
|
function hA(n) {
|
|
30458
|
-
if (!
|
|
30466
|
+
if (!Mc || !n || typeof n != "object")
|
|
30459
30467
|
return !1;
|
|
30460
30468
|
try {
|
|
30461
|
-
|
|
30469
|
+
Mc.call(n);
|
|
30462
30470
|
try {
|
|
30463
|
-
|
|
30471
|
+
Tc.call(n);
|
|
30464
30472
|
} catch {
|
|
30465
30473
|
return !0;
|
|
30466
30474
|
}
|
|
@@ -30508,7 +30516,7 @@ function dA(n) {
|
|
|
30508
30516
|
function Ro(n) {
|
|
30509
30517
|
return "Object(" + n + ")";
|
|
30510
30518
|
}
|
|
30511
|
-
function
|
|
30519
|
+
function Cd(n) {
|
|
30512
30520
|
return n + " { ? }";
|
|
30513
30521
|
}
|
|
30514
30522
|
function iv(n, e, t, i) {
|
|
@@ -30550,7 +30558,7 @@ function Mh(n, e) {
|
|
|
30550
30558
|
for (var s = 0; s < n.length; s++)
|
|
30551
30559
|
i[s] = ws(n, s) ? e(n[s], n) : "";
|
|
30552
30560
|
}
|
|
30553
|
-
var r = typeof
|
|
30561
|
+
var r = typeof Ld == "function" ? Ld(n) : [], a;
|
|
30554
30562
|
if (so) {
|
|
30555
30563
|
a = {};
|
|
30556
30564
|
for (var o = 0; o < r.length; o++)
|
|
@@ -30558,7 +30566,7 @@ function Mh(n, e) {
|
|
|
30558
30566
|
}
|
|
30559
30567
|
for (var l in n)
|
|
30560
30568
|
ws(n, l) && (t && String(Number(l)) === l && l < n.length || so && a["$" + l] instanceof Symbol || (Dx.call(/[^\w$]/, l) ? i.push(e(l, n) + ": " + e(n[l], n)) : i.push(l + ": " + e(n[l], n))));
|
|
30561
|
-
if (typeof
|
|
30569
|
+
if (typeof Ld == "function")
|
|
30562
30570
|
for (var c = 0; c < r.length; c++)
|
|
30563
30571
|
jx.call(n, r[c]) && i.push("[" + e(r[c]) + "]: " + e(n[r[c]], n));
|
|
30564
30572
|
return i;
|
|
@@ -30612,11 +30620,11 @@ var lm = Er, fo = XE, mA = VE, gA = lm("%TypeError%"), Ih = lm("%WeakMap%", !0),
|
|
|
30612
30620
|
}
|
|
30613
30621
|
};
|
|
30614
30622
|
return s;
|
|
30615
|
-
}, wA = String.prototype.replace, _A = /%20/g,
|
|
30623
|
+
}, wA = String.prototype.replace, _A = /%20/g, Td = {
|
|
30616
30624
|
RFC1738: "RFC1738",
|
|
30617
30625
|
RFC3986: "RFC3986"
|
|
30618
30626
|
}, cm = {
|
|
30619
|
-
default:
|
|
30627
|
+
default: Td.RFC3986,
|
|
30620
30628
|
formatters: {
|
|
30621
30629
|
RFC1738: function(n) {
|
|
30622
30630
|
return wA.call(n, _A, "+");
|
|
@@ -30625,9 +30633,9 @@ var lm = Er, fo = XE, mA = VE, gA = lm("%TypeError%"), Ih = lm("%WeakMap%", !0),
|
|
|
30625
30633
|
return String(n);
|
|
30626
30634
|
}
|
|
30627
30635
|
},
|
|
30628
|
-
RFC1738:
|
|
30629
|
-
RFC3986:
|
|
30630
|
-
}, GA = cm,
|
|
30636
|
+
RFC1738: Td.RFC1738,
|
|
30637
|
+
RFC3986: Td.RFC3986
|
|
30638
|
+
}, GA = cm, Md = Object.prototype.hasOwnProperty, ur = Array.isArray, gn = function() {
|
|
30631
30639
|
for (var n = [], e = 0; e < 256; ++e)
|
|
30632
30640
|
n.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
30633
30641
|
return n;
|
|
@@ -30651,7 +30659,7 @@ var lm = Er, fo = XE, mA = VE, gA = lm("%TypeError%"), Ih = lm("%WeakMap%", !0),
|
|
|
30651
30659
|
if (ur(e))
|
|
30652
30660
|
e.push(t);
|
|
30653
30661
|
else if (e && typeof e == "object")
|
|
30654
|
-
(i && (i.plainObjects || i.allowPrototypes) || !
|
|
30662
|
+
(i && (i.plainObjects || i.allowPrototypes) || !Md.call(Object.prototype, t)) && (e[t] = !0);
|
|
30655
30663
|
else
|
|
30656
30664
|
return [e, t];
|
|
30657
30665
|
return e;
|
|
@@ -30660,14 +30668,14 @@ var lm = Er, fo = XE, mA = VE, gA = lm("%TypeError%"), Ih = lm("%WeakMap%", !0),
|
|
|
30660
30668
|
return [e].concat(t);
|
|
30661
30669
|
var s = e;
|
|
30662
30670
|
return ur(e) && !ur(t) && (s = Ux(e, i)), ur(e) && ur(t) ? (t.forEach(function(r, a) {
|
|
30663
|
-
if (
|
|
30671
|
+
if (Md.call(e, a)) {
|
|
30664
30672
|
var o = e[a];
|
|
30665
30673
|
o && typeof o == "object" && r && typeof r == "object" ? e[a] = n(o, r, i) : e.push(r);
|
|
30666
30674
|
} else
|
|
30667
30675
|
e[a] = r;
|
|
30668
30676
|
}), e) : Object.keys(t).reduce(function(r, a) {
|
|
30669
30677
|
var o = t[a];
|
|
30670
|
-
return
|
|
30678
|
+
return Md.call(r, a) ? r[a] = n(r[a], o, i) : r[a] = o, r;
|
|
30671
30679
|
}, s);
|
|
30672
30680
|
}, AA = function(e, t) {
|
|
30673
30681
|
return Object.keys(t).reduce(function(i, s) {
|
|
@@ -30775,15 +30783,15 @@ var lm = Er, fo = XE, mA = VE, gA = lm("%TypeError%"), Ih = lm("%WeakMap%", !0),
|
|
|
30775
30783
|
strictNullHandling: !1
|
|
30776
30784
|
}, ZA = function(e) {
|
|
30777
30785
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
30778
|
-
},
|
|
30779
|
-
for (var f = e, v = g, b = 0, x = !1; (v = v.get(
|
|
30786
|
+
}, Id = {}, YA = function n(e, t, i, s, r, a, o, l, c, d, h, u, p, m, y, g) {
|
|
30787
|
+
for (var f = e, v = g, b = 0, x = !1; (v = v.get(Id)) !== void 0 && !x; ) {
|
|
30780
30788
|
var S = v.get(e);
|
|
30781
30789
|
if (b += 1, typeof S < "u") {
|
|
30782
30790
|
if (S === b)
|
|
30783
30791
|
throw new RangeError("Cyclic object value");
|
|
30784
30792
|
x = !0;
|
|
30785
30793
|
}
|
|
30786
|
-
typeof v.get(
|
|
30794
|
+
typeof v.get(Id) > "u" && (b = 0);
|
|
30787
30795
|
}
|
|
30788
30796
|
if (typeof l == "function" ? f = l(t, f) : f instanceof Date ? f = h(f) : i === "comma" && Vn(f) && (f = $h.maybeMap(f, function(X) {
|
|
30789
30797
|
return X instanceof Date ? h(X) : X;
|
|
@@ -30817,7 +30825,7 @@ var lm = Er, fo = XE, mA = VE, gA = lm("%TypeError%"), Ih = lm("%WeakMap%", !0),
|
|
|
30817
30825
|
var w = Vn(f) ? typeof i == "function" ? i(M, P) : M : M + (d ? "." + P : "[" + P + "]");
|
|
30818
30826
|
g.set(e, b);
|
|
30819
30827
|
var O = $x();
|
|
30820
|
-
O.set(
|
|
30828
|
+
O.set(Id, g), eS(T, n(
|
|
30821
30829
|
G,
|
|
30822
30830
|
w,
|
|
30823
30831
|
i,
|
|
@@ -31519,9 +31527,9 @@ const jt = {
|
|
|
31519
31527
|
delimiter: ":",
|
|
31520
31528
|
joinExtensions: [".html"]
|
|
31521
31529
|
};
|
|
31522
|
-
let
|
|
31530
|
+
let wd;
|
|
31523
31531
|
async function bR() {
|
|
31524
|
-
return
|
|
31532
|
+
return wd ?? (wd = (async () => {
|
|
31525
31533
|
var r;
|
|
31526
31534
|
const n = document.createElement("canvas").getContext("webgl");
|
|
31527
31535
|
if (!n)
|
|
@@ -31544,11 +31552,11 @@ async function bR() {
|
|
|
31544
31552
|
), n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !1), n.pixelStorei(n.UNPACK_COLORSPACE_CONVERSION_WEBGL, n.NONE), n.texImage2D(n.TEXTURE_2D, 0, n.RGBA, n.RGBA, n.UNSIGNED_BYTE, e);
|
|
31545
31553
|
const s = new Uint8Array(4);
|
|
31546
31554
|
return n.readPixels(0, 0, 1, 1, n.RGBA, n.UNSIGNED_BYTE, s), n.deleteFramebuffer(i), n.deleteTexture(t), (r = n.getExtension("WEBGL_lose_context")) == null || r.loseContext(), s[0] <= s[3] ? Mi.PMA : Mi.UNPACK;
|
|
31547
|
-
})()),
|
|
31555
|
+
})()), wd;
|
|
31548
31556
|
}
|
|
31549
|
-
let
|
|
31557
|
+
let _d;
|
|
31550
31558
|
function xR() {
|
|
31551
|
-
return typeof
|
|
31559
|
+
return typeof _d > "u" && (_d = function() {
|
|
31552
31560
|
var e;
|
|
31553
31561
|
const n = {
|
|
31554
31562
|
stencil: !0,
|
|
@@ -31568,7 +31576,7 @@ function xR() {
|
|
|
31568
31576
|
} catch {
|
|
31569
31577
|
return !1;
|
|
31570
31578
|
}
|
|
31571
|
-
}()),
|
|
31579
|
+
}()), _d;
|
|
31572
31580
|
}
|
|
31573
31581
|
var SR = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, Fn = function(n) {
|
|
31574
31582
|
return typeof n == "string" ? n.length > 0 : typeof n == "number";
|
|
@@ -31580,7 +31588,7 @@ var SR = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, Fn = function(n) {
|
|
|
31580
31588
|
return (n = isFinite(n) ? n % 360 : 0) > 0 ? n : n + 360;
|
|
31581
31589
|
}, hv = function(n) {
|
|
31582
31590
|
return { r: Di(n.r, 0, 255), g: Di(n.g, 0, 255), b: Di(n.b, 0, 255), a: Di(n.a) };
|
|
31583
|
-
},
|
|
31591
|
+
}, Gd = function(n) {
|
|
31584
31592
|
return { r: ti(n.r), g: ti(n.g), b: ti(n.b), a: ti(n.a, 3) };
|
|
31585
31593
|
}, LR = /^#([0-9a-f]{3,8})$/i, _h = function(n) {
|
|
31586
31594
|
var e = n.toString(16);
|
|
@@ -31641,10 +31649,10 @@ var SR = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, Fn = function(n) {
|
|
|
31641
31649
|
return [null, void 0];
|
|
31642
31650
|
}, wR = function(n) {
|
|
31643
31651
|
return typeof n == "string" ? pv(n.trim(), Hp.string) : typeof n == "object" && n !== null ? pv(n, Hp.object) : [null, void 0];
|
|
31644
|
-
},
|
|
31652
|
+
}, Pd = function(n, e) {
|
|
31645
31653
|
var t = hl(n);
|
|
31646
31654
|
return { h: t.h, s: Di(t.s + 100 * e, 0, 100), l: t.l, a: t.a };
|
|
31647
|
-
},
|
|
31655
|
+
}, Ed = function(n) {
|
|
31648
31656
|
return (299 * n.r + 587 * n.g + 114 * n.b) / 1e3 / 255;
|
|
31649
31657
|
}, fv = function(n, e) {
|
|
31650
31658
|
var t = hl(n);
|
|
@@ -31656,18 +31664,18 @@ var SR = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, Fn = function(n) {
|
|
|
31656
31664
|
return n.prototype.isValid = function() {
|
|
31657
31665
|
return this.parsed !== null;
|
|
31658
31666
|
}, n.prototype.brightness = function() {
|
|
31659
|
-
return ti(
|
|
31667
|
+
return ti(Ed(this.rgba), 2);
|
|
31660
31668
|
}, n.prototype.isDark = function() {
|
|
31661
|
-
return
|
|
31669
|
+
return Ed(this.rgba) < 0.5;
|
|
31662
31670
|
}, n.prototype.isLight = function() {
|
|
31663
|
-
return
|
|
31671
|
+
return Ed(this.rgba) >= 0.5;
|
|
31664
31672
|
}, n.prototype.toHex = function() {
|
|
31665
|
-
return e =
|
|
31673
|
+
return e = Gd(this.rgba), t = e.r, i = e.g, s = e.b, a = (r = e.a) < 1 ? _h(ti(255 * r)) : "", "#" + _h(t) + _h(i) + _h(s) + a;
|
|
31666
31674
|
var e, t, i, s, r, a;
|
|
31667
31675
|
}, n.prototype.toRgb = function() {
|
|
31668
|
-
return
|
|
31676
|
+
return Gd(this.rgba);
|
|
31669
31677
|
}, n.prototype.toRgbString = function() {
|
|
31670
|
-
return e =
|
|
31678
|
+
return e = Gd(this.rgba), t = e.r, i = e.g, s = e.b, (r = e.a) < 1 ? "rgba(" + t + ", " + i + ", " + s + ", " + r + ")" : "rgb(" + t + ", " + i + ", " + s + ")";
|
|
31671
31679
|
var e, t, i, s, r;
|
|
31672
31680
|
}, n.prototype.toHsl = function() {
|
|
31673
31681
|
return uv(hl(this.rgba));
|
|
@@ -31681,11 +31689,11 @@ var SR = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, Fn = function(n) {
|
|
|
31681
31689
|
return yn({ r: 255 - (e = this.rgba).r, g: 255 - e.g, b: 255 - e.b, a: e.a });
|
|
31682
31690
|
var e;
|
|
31683
31691
|
}, n.prototype.saturate = function(e) {
|
|
31684
|
-
return e === void 0 && (e = 0.1), yn(
|
|
31692
|
+
return e === void 0 && (e = 0.1), yn(Pd(this.rgba, e));
|
|
31685
31693
|
}, n.prototype.desaturate = function(e) {
|
|
31686
|
-
return e === void 0 && (e = 0.1), yn(
|
|
31694
|
+
return e === void 0 && (e = 0.1), yn(Pd(this.rgba, -e));
|
|
31687
31695
|
}, n.prototype.grayscale = function() {
|
|
31688
|
-
return yn(
|
|
31696
|
+
return yn(Pd(this.rgba, -1));
|
|
31689
31697
|
}, n.prototype.lighten = function(e) {
|
|
31690
31698
|
return e === void 0 && (e = 0.1), yn(fv(this.rgba, e));
|
|
31691
31699
|
}, n.prototype.darken = function(e) {
|
|
@@ -32040,7 +32048,7 @@ function oS(n) {
|
|
|
32040
32048
|
return "Uint8Array";
|
|
32041
32049
|
return null;
|
|
32042
32050
|
}
|
|
32043
|
-
function
|
|
32051
|
+
function Ic(n) {
|
|
32044
32052
|
return n += n === 0 ? 1 : 0, --n, n |= n >>> 1, n |= n >>> 2, n |= n >>> 4, n |= n >>> 8, n |= n >>> 16, n + 1;
|
|
32045
32053
|
}
|
|
32046
32054
|
function gv(n) {
|
|
@@ -32400,7 +32408,7 @@ function kR(n, e) {
|
|
|
32400
32408
|
}
|
|
32401
32409
|
return n;
|
|
32402
32410
|
}
|
|
32403
|
-
const
|
|
32411
|
+
const Ad = 0, Rd = 1, Kd = 2, Od = 3, qd = 4, Xd = 5;
|
|
32404
32412
|
class zn {
|
|
32405
32413
|
constructor() {
|
|
32406
32414
|
this.data = 0, this.blendMode = He.NORMAL, this.polygonOffset = 0, this.blend = !0, this.depthMask = !0;
|
|
@@ -32410,60 +32418,60 @@ class zn {
|
|
|
32410
32418
|
* @default true
|
|
32411
32419
|
*/
|
|
32412
32420
|
get blend() {
|
|
32413
|
-
return !!(this.data & 1 <<
|
|
32421
|
+
return !!(this.data & 1 << Ad);
|
|
32414
32422
|
}
|
|
32415
32423
|
set blend(e) {
|
|
32416
|
-
!!(this.data & 1 <<
|
|
32424
|
+
!!(this.data & 1 << Ad) !== e && (this.data ^= 1 << Ad);
|
|
32417
32425
|
}
|
|
32418
32426
|
/**
|
|
32419
32427
|
* Activates adding an offset to depth values of polygon's fragments
|
|
32420
32428
|
* @default false
|
|
32421
32429
|
*/
|
|
32422
32430
|
get offsets() {
|
|
32423
|
-
return !!(this.data & 1 <<
|
|
32431
|
+
return !!(this.data & 1 << Rd);
|
|
32424
32432
|
}
|
|
32425
32433
|
set offsets(e) {
|
|
32426
|
-
!!(this.data & 1 <<
|
|
32434
|
+
!!(this.data & 1 << Rd) !== e && (this.data ^= 1 << Rd);
|
|
32427
32435
|
}
|
|
32428
32436
|
/**
|
|
32429
32437
|
* Activates culling of polygons.
|
|
32430
32438
|
* @default false
|
|
32431
32439
|
*/
|
|
32432
32440
|
get culling() {
|
|
32433
|
-
return !!(this.data & 1 <<
|
|
32441
|
+
return !!(this.data & 1 << Kd);
|
|
32434
32442
|
}
|
|
32435
32443
|
set culling(e) {
|
|
32436
|
-
!!(this.data & 1 <<
|
|
32444
|
+
!!(this.data & 1 << Kd) !== e && (this.data ^= 1 << Kd);
|
|
32437
32445
|
}
|
|
32438
32446
|
/**
|
|
32439
32447
|
* Activates depth comparisons and updates to the depth buffer.
|
|
32440
32448
|
* @default false
|
|
32441
32449
|
*/
|
|
32442
32450
|
get depthTest() {
|
|
32443
|
-
return !!(this.data & 1 <<
|
|
32451
|
+
return !!(this.data & 1 << Od);
|
|
32444
32452
|
}
|
|
32445
32453
|
set depthTest(e) {
|
|
32446
|
-
!!(this.data & 1 <<
|
|
32454
|
+
!!(this.data & 1 << Od) !== e && (this.data ^= 1 << Od);
|
|
32447
32455
|
}
|
|
32448
32456
|
/**
|
|
32449
32457
|
* Enables or disables writing to the depth buffer.
|
|
32450
32458
|
* @default true
|
|
32451
32459
|
*/
|
|
32452
32460
|
get depthMask() {
|
|
32453
|
-
return !!(this.data & 1 <<
|
|
32461
|
+
return !!(this.data & 1 << Xd);
|
|
32454
32462
|
}
|
|
32455
32463
|
set depthMask(e) {
|
|
32456
|
-
!!(this.data & 1 <<
|
|
32464
|
+
!!(this.data & 1 << Xd) !== e && (this.data ^= 1 << Xd);
|
|
32457
32465
|
}
|
|
32458
32466
|
/**
|
|
32459
32467
|
* Specifies whether or not front or back-facing polygons can be culled.
|
|
32460
32468
|
* @default false
|
|
32461
32469
|
*/
|
|
32462
32470
|
get clockwiseFrontFace() {
|
|
32463
|
-
return !!(this.data & 1 <<
|
|
32471
|
+
return !!(this.data & 1 << qd);
|
|
32464
32472
|
}
|
|
32465
32473
|
set clockwiseFrontFace(e) {
|
|
32466
|
-
!!(this.data & 1 <<
|
|
32474
|
+
!!(this.data & 1 << qd) !== e && (this.data ^= 1 << qd);
|
|
32467
32475
|
}
|
|
32468
32476
|
/**
|
|
32469
32477
|
* The blend mode to be applied when this state is set. Apply a value of `PIXI.BLEND_MODES.NORMAL` to reset the blend mode.
|
|
@@ -32704,7 +32712,7 @@ class vl {
|
|
|
32704
32712
|
return !1;
|
|
32705
32713
|
}
|
|
32706
32714
|
}
|
|
32707
|
-
class
|
|
32715
|
+
class iu extends vl {
|
|
32708
32716
|
/**
|
|
32709
32717
|
* @param source - Source buffer
|
|
32710
32718
|
* @param options - Options
|
|
@@ -32991,7 +32999,7 @@ const HR = {
|
|
|
32991
32999
|
*/
|
|
32992
33000
|
static fromBuffer(e, t, i, s) {
|
|
32993
33001
|
e = e || new Float32Array(t * i * 4);
|
|
32994
|
-
const r = new
|
|
33002
|
+
const r = new iu(e, { width: t, height: i, ...s == null ? void 0 : s.resourceOptions });
|
|
32995
33003
|
let a, o;
|
|
32996
33004
|
return e instanceof Float32Array ? (a = se.RGBA, o = Ae.FLOAT) : e instanceof Int32Array ? (a = se.RGBA_INTEGER, o = Ae.INT) : e instanceof Uint32Array ? (a = se.RGBA_INTEGER, o = Ae.UNSIGNED_INT) : e instanceof Int16Array ? (a = se.RGBA_INTEGER, o = Ae.SHORT) : e instanceof Uint16Array ? (a = se.RGBA_INTEGER, o = Ae.UNSIGNED_SHORT) : e instanceof Int8Array ? (a = se.RGBA, o = Ae.BYTE) : (a = se.RGBA, o = Ae.UNSIGNED_BYTE), r.internal = !0, new Sa(r, Object.assign({}, HR, { type: o, format: a }, s));
|
|
32997
33005
|
}
|
|
@@ -33125,7 +33133,7 @@ class qt {
|
|
|
33125
33133
|
return e instanceof Array && (e = new Float32Array(e)), new qt(e);
|
|
33126
33134
|
}
|
|
33127
33135
|
}
|
|
33128
|
-
class
|
|
33136
|
+
class wc {
|
|
33129
33137
|
/**
|
|
33130
33138
|
* @param buffer - the id of the buffer that this attribute will look for
|
|
33131
33139
|
* @param size - the size of the attribute. If you have 2 floats per vertex (eg position x and y) this would be 2.
|
|
@@ -33153,7 +33161,7 @@ class Ic {
|
|
|
33153
33161
|
* @returns - A new {@link PIXI.Attribute} based on the information provided
|
|
33154
33162
|
*/
|
|
33155
33163
|
static from(e, t, i, s, r) {
|
|
33156
|
-
return new
|
|
33164
|
+
return new wc(e, t, i, s, r);
|
|
33157
33165
|
}
|
|
33158
33166
|
}
|
|
33159
33167
|
const YR = {
|
|
@@ -33222,7 +33230,7 @@ class Ws {
|
|
|
33222
33230
|
return this;
|
|
33223
33231
|
}
|
|
33224
33232
|
let d = this.buffers.indexOf(t);
|
|
33225
|
-
return d === -1 && (this.buffers.push(t), d = this.buffers.length - 1), this.attributes[e] = new
|
|
33233
|
+
return d === -1 && (this.buffers.push(t), d = this.buffers.length - 1), this.attributes[e] = new wc(d, i, s, r, a, o, l), this.instanced = this.instanced || l, this;
|
|
33226
33234
|
}
|
|
33227
33235
|
/**
|
|
33228
33236
|
* Returns the requested attribute.
|
|
@@ -33301,7 +33309,7 @@ class Ws {
|
|
|
33301
33309
|
e.buffers[t] = new qt(this.buffers[t].data.slice(0));
|
|
33302
33310
|
for (const t in this.attributes) {
|
|
33303
33311
|
const i = this.attributes[t];
|
|
33304
|
-
e.attributes[t] = new
|
|
33312
|
+
e.attributes[t] = new wc(
|
|
33305
33313
|
i.buffer,
|
|
33306
33314
|
i.size,
|
|
33307
33315
|
i.normalized,
|
|
@@ -33366,7 +33374,7 @@ class hS extends Ws {
|
|
|
33366
33374
|
super(), this._buffer = new qt(null, e, !1), this._indexBuffer = new qt(null, e, !0), this.addAttribute("aVertexPosition", this._buffer, 2, !1, Ae.FLOAT).addAttribute("aTextureCoord", this._buffer, 2, !1, Ae.FLOAT).addAttribute("aColor", this._buffer, 4, !0, Ae.UNSIGNED_BYTE).addAttribute("aTextureId", this._buffer, 1, !0, Ae.FLOAT).addIndex(this._indexBuffer);
|
|
33367
33375
|
}
|
|
33368
33376
|
}
|
|
33369
|
-
const
|
|
33377
|
+
const _c = Math.PI * 2, BR = 180 / Math.PI, JR = Math.PI / 180;
|
|
33370
33378
|
var ri = /* @__PURE__ */ ((n) => (n[n.POLY = 0] = "POLY", n[n.RECT = 1] = "RECT", n[n.CIRC = 2] = "CIRC", n[n.ELIP = 3] = "ELIP", n[n.RREC = 4] = "RREC", n))(ri || {});
|
|
33371
33379
|
class ke {
|
|
33372
33380
|
/**
|
|
@@ -33559,7 +33567,7 @@ class De {
|
|
|
33559
33567
|
De.prototype.toString = function() {
|
|
33560
33568
|
return `[@pixi/math:Rectangle x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`;
|
|
33561
33569
|
};
|
|
33562
|
-
class
|
|
33570
|
+
class nu {
|
|
33563
33571
|
/**
|
|
33564
33572
|
* @param x - The X coordinate of the center of this circle
|
|
33565
33573
|
* @param y - The Y coordinate of the center of this circle
|
|
@@ -33573,7 +33581,7 @@ class iu {
|
|
|
33573
33581
|
* @returns A copy of the Circle
|
|
33574
33582
|
*/
|
|
33575
33583
|
clone() {
|
|
33576
|
-
return new
|
|
33584
|
+
return new nu(this.x, this.y, this.radius);
|
|
33577
33585
|
}
|
|
33578
33586
|
/**
|
|
33579
33587
|
* Checks whether the x and y coordinates given are contained within this circle
|
|
@@ -33596,10 +33604,10 @@ class iu {
|
|
|
33596
33604
|
return new De(this.x - this.radius, this.y - this.radius, this.radius * 2, this.radius * 2);
|
|
33597
33605
|
}
|
|
33598
33606
|
}
|
|
33599
|
-
|
|
33607
|
+
nu.prototype.toString = function() {
|
|
33600
33608
|
return `[@pixi/math:Circle x=${this.x} y=${this.y} radius=${this.radius}]`;
|
|
33601
33609
|
};
|
|
33602
|
-
class
|
|
33610
|
+
class su {
|
|
33603
33611
|
/**
|
|
33604
33612
|
* @param x - The X coordinate of the center of this ellipse
|
|
33605
33613
|
* @param y - The Y coordinate of the center of this ellipse
|
|
@@ -33614,7 +33622,7 @@ class nu {
|
|
|
33614
33622
|
* @returns {PIXI.Ellipse} A copy of the ellipse
|
|
33615
33623
|
*/
|
|
33616
33624
|
clone() {
|
|
33617
|
-
return new
|
|
33625
|
+
return new su(this.x, this.y, this.width, this.height);
|
|
33618
33626
|
}
|
|
33619
33627
|
/**
|
|
33620
33628
|
* Checks whether the x and y coordinates given are contained within this ellipse
|
|
@@ -33636,7 +33644,7 @@ class nu {
|
|
|
33636
33644
|
return new De(this.x - this.width, this.y - this.height, this.width, this.height);
|
|
33637
33645
|
}
|
|
33638
33646
|
}
|
|
33639
|
-
|
|
33647
|
+
su.prototype.toString = function() {
|
|
33640
33648
|
return `[@pixi/math:Ellipse x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`;
|
|
33641
33649
|
};
|
|
33642
33650
|
class Lr {
|
|
@@ -33684,7 +33692,7 @@ class Lr {
|
|
|
33684
33692
|
Lr.prototype.toString = function() {
|
|
33685
33693
|
return `[@pixi/math:PolygoncloseStroke=${this.closeStroke}points=${this.points.reduce((n, e) => `${n}, ${e}`, "")}]`;
|
|
33686
33694
|
};
|
|
33687
|
-
class
|
|
33695
|
+
class ru {
|
|
33688
33696
|
/**
|
|
33689
33697
|
* @param x - The X coordinate of the upper-left corner of the rounded rectangle
|
|
33690
33698
|
* @param y - The Y coordinate of the upper-left corner of the rounded rectangle
|
|
@@ -33700,7 +33708,7 @@ class su {
|
|
|
33700
33708
|
* @returns - A copy of the rounded rectangle.
|
|
33701
33709
|
*/
|
|
33702
33710
|
clone() {
|
|
33703
|
-
return new
|
|
33711
|
+
return new ru(this.x, this.y, this.width, this.height, this.radius);
|
|
33704
33712
|
}
|
|
33705
33713
|
/**
|
|
33706
33714
|
* Checks whether the x and y coordinates given are contained within this Rounded Rectangle
|
|
@@ -33723,7 +33731,7 @@ class su {
|
|
|
33723
33731
|
return !1;
|
|
33724
33732
|
}
|
|
33725
33733
|
}
|
|
33726
|
-
|
|
33734
|
+
ru.prototype.toString = function() {
|
|
33727
33735
|
return `[@pixi/math:RoundedRectangle x=${this.x} y=${this.y}width=${this.width} height=${this.height} radius=${this.radius}]`;
|
|
33728
33736
|
};
|
|
33729
33737
|
class Tt {
|
|
@@ -33872,7 +33880,7 @@ class Tt {
|
|
|
33872
33880
|
*/
|
|
33873
33881
|
decompose(e) {
|
|
33874
33882
|
const t = this.a, i = this.b, s = this.c, r = this.d, a = e.pivot, o = -Math.atan2(-s, r), l = Math.atan2(i, t), c = Math.abs(o + l);
|
|
33875
|
-
return c < 1e-5 || Math.abs(
|
|
33883
|
+
return c < 1e-5 || Math.abs(_c - c) < 1e-5 ? (e.rotation = l, e.skew.x = e.skew.y = 0) : (e.rotation = 0, e.skew.x = o, e.skew.y = l), e.scale.x = Math.sqrt(t * t + i * i), e.scale.y = Math.sqrt(s * s + r * r), e.position.x = this.tx + (a.x * t + a.y * s), e.position.y = this.ty + (a.x * i + a.y * r), e;
|
|
33876
33884
|
}
|
|
33877
33885
|
/**
|
|
33878
33886
|
* Inverts this matrix
|
|
@@ -34271,7 +34279,7 @@ function Tv(n, e, t) {
|
|
|
34271
34279
|
const i = n.createShader(e);
|
|
34272
34280
|
return n.shaderSource(i, t), n.compileShader(i), i;
|
|
34273
34281
|
}
|
|
34274
|
-
function
|
|
34282
|
+
function zd(n) {
|
|
34275
34283
|
const e = new Array(n);
|
|
34276
34284
|
for (let t = 0; t < e.length; t++)
|
|
34277
34285
|
e[t] = !1;
|
|
@@ -34307,11 +34315,11 @@ function uS(n, e) {
|
|
|
34307
34315
|
case "bool":
|
|
34308
34316
|
return !1;
|
|
34309
34317
|
case "bvec2":
|
|
34310
|
-
return
|
|
34318
|
+
return zd(2 * e);
|
|
34311
34319
|
case "bvec3":
|
|
34312
|
-
return
|
|
34320
|
+
return zd(3 * e);
|
|
34313
34321
|
case "bvec4":
|
|
34314
|
-
return
|
|
34322
|
+
return zd(4 * e);
|
|
34315
34323
|
case "mat2":
|
|
34316
34324
|
return new Float32Array([
|
|
34317
34325
|
1,
|
|
@@ -35075,7 +35083,7 @@ function uK(n) {
|
|
|
35075
35083
|
}
|
|
35076
35084
|
return e ? n : 4;
|
|
35077
35085
|
}
|
|
35078
|
-
class
|
|
35086
|
+
class au {
|
|
35079
35087
|
/**
|
|
35080
35088
|
* @param renderer - The renderer this manager works for.
|
|
35081
35089
|
*/
|
|
@@ -35141,7 +35149,7 @@ void main(void){
|
|
|
35141
35149
|
vColor = aColor * tint;
|
|
35142
35150
|
}
|
|
35143
35151
|
`;
|
|
35144
|
-
const ko = class sn extends
|
|
35152
|
+
const ko = class sn extends au {
|
|
35145
35153
|
/**
|
|
35146
35154
|
* This will hook onto the renderer's `contextChange`
|
|
35147
35155
|
* and `prerender` signals.
|
|
@@ -35335,7 +35343,7 @@ const ko = class sn extends ru {
|
|
|
35335
35343
|
* @returns - buffer than can hold atleast `size` floats
|
|
35336
35344
|
*/
|
|
35337
35345
|
getAttributeBuffer(e) {
|
|
35338
|
-
const t =
|
|
35346
|
+
const t = Ic(Math.ceil(e / 8)), i = yv(t), s = t * 8;
|
|
35339
35347
|
this._aBuffers.length <= i && (this._iBuffers.length = i + 1);
|
|
35340
35348
|
let r = this._aBuffers[s];
|
|
35341
35349
|
return r || (this._aBuffers[s] = r = new jp(s * this.vertexSize * 4)), r;
|
|
@@ -35347,7 +35355,7 @@ const ko = class sn extends ru {
|
|
|
35347
35355
|
* @returns - buffer that can fit `size` indices.
|
|
35348
35356
|
*/
|
|
35349
35357
|
getIndexBuffer(e) {
|
|
35350
|
-
const t =
|
|
35358
|
+
const t = Ic(Math.ceil(e / 12)), i = yv(t), s = t * 12;
|
|
35351
35359
|
this._iBuffers.length <= i && (this._iBuffers.length = i + 1);
|
|
35352
35360
|
let r = this._iBuffers[i];
|
|
35353
35361
|
return r || (this._iBuffers[i] = r = new Uint16Array(s)), r;
|
|
@@ -35504,7 +35512,7 @@ ef.defaultResolution = 1, /**
|
|
|
35504
35512
|
*/
|
|
35505
35513
|
ef.defaultMultisample = Wt.NONE;
|
|
35506
35514
|
let xi = ef;
|
|
35507
|
-
class
|
|
35515
|
+
class Gc {
|
|
35508
35516
|
constructor() {
|
|
35509
35517
|
this.clearBeforeRender = !0, this._backgroundColor = new Lt(0), this.alpha = 1;
|
|
35510
35518
|
}
|
|
@@ -35544,7 +35552,7 @@ class _c {
|
|
|
35544
35552
|
destroy() {
|
|
35545
35553
|
}
|
|
35546
35554
|
}
|
|
35547
|
-
|
|
35555
|
+
Gc.defaultOptions = {
|
|
35548
35556
|
/**
|
|
35549
35557
|
* {@link PIXI.IRendererOptions.backgroundAlpha}
|
|
35550
35558
|
* @default 1
|
|
@@ -35564,20 +35572,20 @@ _c.defaultOptions = {
|
|
|
35564
35572
|
*/
|
|
35565
35573
|
clearBeforeRender: !0
|
|
35566
35574
|
}, /** @ignore */
|
|
35567
|
-
|
|
35575
|
+
Gc.extension = {
|
|
35568
35576
|
type: [
|
|
35569
35577
|
fe.RendererSystem,
|
|
35570
35578
|
fe.CanvasRendererSystem
|
|
35571
35579
|
],
|
|
35572
35580
|
name: "background"
|
|
35573
35581
|
};
|
|
35574
|
-
Ie.add(
|
|
35582
|
+
Ie.add(Gc);
|
|
35575
35583
|
class mS {
|
|
35576
35584
|
/**
|
|
35577
35585
|
* @param renderer - The renderer this System works for.
|
|
35578
35586
|
*/
|
|
35579
35587
|
constructor(e) {
|
|
35580
|
-
this.renderer = e, this.emptyRenderer = new
|
|
35588
|
+
this.renderer = e, this.emptyRenderer = new au(e), this.currentRenderer = this.emptyRenderer;
|
|
35581
35589
|
}
|
|
35582
35590
|
/**
|
|
35583
35591
|
* Changes the current renderer to the one given in parameter
|
|
@@ -35650,7 +35658,7 @@ mS.extension = {
|
|
|
35650
35658
|
};
|
|
35651
35659
|
Ie.add(mS);
|
|
35652
35660
|
let _v = 0;
|
|
35653
|
-
class
|
|
35661
|
+
class Pc {
|
|
35654
35662
|
/** @param renderer - The renderer this System works for. */
|
|
35655
35663
|
constructor(e) {
|
|
35656
35664
|
this.renderer = e, this.webGLVersion = 1, this.extensions = {}, this.supports = {
|
|
@@ -35785,7 +35793,7 @@ class Gc {
|
|
|
35785
35793
|
this.supports.uint32Indices = s, s || console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly");
|
|
35786
35794
|
}
|
|
35787
35795
|
}
|
|
35788
|
-
|
|
35796
|
+
Pc.defaultOptions = {
|
|
35789
35797
|
/**
|
|
35790
35798
|
* {@link PIXI.IRendererOptions.context}
|
|
35791
35799
|
* @default null
|
|
@@ -35817,11 +35825,11 @@ Gc.defaultOptions = {
|
|
|
35817
35825
|
*/
|
|
35818
35826
|
powerPreference: "default"
|
|
35819
35827
|
}, /** @ignore */
|
|
35820
|
-
|
|
35828
|
+
Pc.extension = {
|
|
35821
35829
|
type: fe.RendererSystem,
|
|
35822
35830
|
name: "context"
|
|
35823
35831
|
};
|
|
35824
|
-
Ie.add(
|
|
35832
|
+
Ie.add(Pc);
|
|
35825
35833
|
class tf {
|
|
35826
35834
|
/**
|
|
35827
35835
|
* @param width - Width of the frame buffer
|
|
@@ -36497,7 +36505,7 @@ class vS {
|
|
|
36497
36505
|
*/
|
|
36498
36506
|
getOptimalTexture(e, t, i = 1, s = Wt.NONE) {
|
|
36499
36507
|
let r;
|
|
36500
|
-
e = Math.max(Math.ceil(e * i - 1e-6), 1), t = Math.max(Math.ceil(t * i - 1e-6), 1), !this.enableFullScreen || e !== this._pixelsWidth || t !== this._pixelsHeight ? (e =
|
|
36508
|
+
e = Math.max(Math.ceil(e * i - 1e-6), 1), t = Math.max(Math.ceil(t * i - 1e-6), 1), !this.enableFullScreen || e !== this._pixelsWidth || t !== this._pixelsHeight ? (e = Ic(e), t = Ic(t), r = ((e & 65535) << 16 | t & 65535) >>> 0, s > 1 && (r += s * 4294967296)) : r = s > 1 ? -s : -1, this.texturePool[r] || (this.texturePool[r] = []);
|
|
36501
36509
|
let a = this.texturePool[r].pop();
|
|
36502
36510
|
return a || (a = this.createTexture(e, t, s)), a.filterPoolKey = r, a.setResolution(i), a;
|
|
36503
36511
|
}
|
|
@@ -36635,7 +36643,7 @@ class yK {
|
|
|
36635
36643
|
this.target = null, this.filters = null, this.renderTexture = null;
|
|
36636
36644
|
}
|
|
36637
36645
|
}
|
|
36638
|
-
const Oh = [new ke(), new ke(), new ke(), new ke()],
|
|
36646
|
+
const Oh = [new ke(), new ke(), new ke(), new ke()], Wd = new Tt();
|
|
36639
36647
|
class xS {
|
|
36640
36648
|
/**
|
|
36641
36649
|
* @param renderer - The renderer this System works for.
|
|
@@ -36677,7 +36685,7 @@ class xS {
|
|
|
36677
36685
|
s.length === 1 && (this.defaultFilterStack[0].renderTexture = a.current), s.push(r), r.resolution = c, r.multisample = d, r.legacy = p, r.target = e, r.sourceFrame.copyFrom(e.filterArea || e.getBounds(!0)), r.sourceFrame.pad(h);
|
|
36678
36686
|
const m = this.tempRect.copyFrom(a.sourceFrame);
|
|
36679
36687
|
i.projection.transform && this.transformAABB(
|
|
36680
|
-
|
|
36688
|
+
Wd.copyFrom(i.projection.transform).invert(),
|
|
36681
36689
|
m
|
|
36682
36690
|
), u ? (r.sourceFrame.fit(m), (r.sourceFrame.width <= 0 || r.sourceFrame.height <= 0) && (r.sourceFrame.width = 0, r.sourceFrame.height = 0)) : r.sourceFrame.intersects(m) || (r.sourceFrame.width = 0, r.sourceFrame.height = 0), this.roundFrame(
|
|
36683
36691
|
r.sourceFrame,
|
|
@@ -36852,7 +36860,7 @@ class xS {
|
|
|
36852
36860
|
if ((Math.abs(o) > 1e-4 || Math.abs(l) > 1e-4) && (Math.abs(a) > 1e-4 || Math.abs(c) > 1e-4))
|
|
36853
36861
|
return;
|
|
36854
36862
|
}
|
|
36855
|
-
r = r ?
|
|
36863
|
+
r = r ? Wd.copyFrom(r) : Wd.identity(), r.translate(-i.x, -i.y).scale(
|
|
36856
36864
|
s.width / i.width,
|
|
36857
36865
|
s.height / i.height
|
|
36858
36866
|
).translate(s.x, s.y), this.transformAABB(r, e), e.ceil(t), this.transformAABB(r.invert(), e);
|
|
@@ -37163,7 +37171,7 @@ SS.extension = {
|
|
|
37163
37171
|
name: "framebuffer"
|
|
37164
37172
|
};
|
|
37165
37173
|
Ie.add(SS);
|
|
37166
|
-
const
|
|
37174
|
+
const Nd = { 5126: 4, 5123: 2, 5121: 1 };
|
|
37167
37175
|
class LS {
|
|
37168
37176
|
/** @param renderer - The renderer this System works for. */
|
|
37169
37177
|
constructor(e) {
|
|
@@ -37250,10 +37258,10 @@ class LS {
|
|
|
37250
37258
|
for (const y in h)
|
|
37251
37259
|
p[y] = 0, m[y] = 0;
|
|
37252
37260
|
for (const y in u)
|
|
37253
|
-
!u[y].size && o.attributeData[y] ? u[y].size = o.attributeData[y].size : u[y].size || console.warn(`PIXI Geometry attribute '${y}' size cannot be determined (likely the bound shader does not have the attribute)`), p[u[y].buffer] += u[y].size *
|
|
37261
|
+
!u[y].size && o.attributeData[y] ? u[y].size = o.attributeData[y].size : u[y].size || console.warn(`PIXI Geometry attribute '${y}' size cannot be determined (likely the bound shader does not have the attribute)`), p[u[y].buffer] += u[y].size * Nd[u[y].type];
|
|
37254
37262
|
for (const y in u) {
|
|
37255
37263
|
const g = u[y], f = g.size;
|
|
37256
|
-
g.stride === void 0 && (p[g.buffer] === f *
|
|
37264
|
+
g.stride === void 0 && (p[g.buffer] === f * Nd[g.type] ? g.stride = 0 : g.stride = p[g.buffer]), g.start === void 0 && (g.start = m[g.buffer], m[g.buffer] += f * Nd[g.type]);
|
|
37257
37265
|
}
|
|
37258
37266
|
d = s.createVertexArray(), s.bindVertexArray(d);
|
|
37259
37267
|
for (let y = 0; y < h.length; y++) {
|
|
@@ -38423,7 +38431,7 @@ RS.extension = {
|
|
|
38423
38431
|
name: "shader"
|
|
38424
38432
|
};
|
|
38425
38433
|
Ie.add(RS);
|
|
38426
|
-
class
|
|
38434
|
+
class Ec {
|
|
38427
38435
|
constructor(e) {
|
|
38428
38436
|
this.renderer = e;
|
|
38429
38437
|
}
|
|
@@ -38438,7 +38446,7 @@ class Pc {
|
|
|
38438
38446
|
destroy() {
|
|
38439
38447
|
}
|
|
38440
38448
|
}
|
|
38441
|
-
|
|
38449
|
+
Ec.defaultOptions = {
|
|
38442
38450
|
/**
|
|
38443
38451
|
* {@link PIXI.IRendererOptions.hello}
|
|
38444
38452
|
* @default false
|
|
@@ -38446,14 +38454,14 @@ Pc.defaultOptions = {
|
|
|
38446
38454
|
*/
|
|
38447
38455
|
hello: !1
|
|
38448
38456
|
}, /** @ignore */
|
|
38449
|
-
|
|
38457
|
+
Ec.extension = {
|
|
38450
38458
|
type: [
|
|
38451
38459
|
fe.RendererSystem,
|
|
38452
38460
|
fe.CanvasRendererSystem
|
|
38453
38461
|
],
|
|
38454
38462
|
name: "startup"
|
|
38455
38463
|
};
|
|
38456
|
-
Ie.add(
|
|
38464
|
+
Ie.add(Ec);
|
|
38457
38465
|
function qK(n, e = []) {
|
|
38458
38466
|
return e[He.NORMAL] = [n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.ADD] = [n.ONE, n.ONE], e[He.MULTIPLY] = [n.DST_COLOR, n.ONE_MINUS_SRC_ALPHA, n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.SCREEN] = [n.ONE, n.ONE_MINUS_SRC_COLOR, n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.OVERLAY] = [n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.DARKEN] = [n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.LIGHTEN] = [n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.COLOR_DODGE] = [n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.COLOR_BURN] = [n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.HARD_LIGHT] = [n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.SOFT_LIGHT] = [n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.DIFFERENCE] = [n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.EXCLUSION] = [n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.HUE] = [n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.SATURATION] = [n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.COLOR] = [n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.LUMINOSITY] = [n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.NONE] = [0, 0], e[He.NORMAL_NPM] = [n.SRC_ALPHA, n.ONE_MINUS_SRC_ALPHA, n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.ADD_NPM] = [n.SRC_ALPHA, n.ONE, n.ONE, n.ONE], e[He.SCREEN_NPM] = [n.SRC_ALPHA, n.ONE_MINUS_SRC_COLOR, n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.SRC_IN] = [n.DST_ALPHA, n.ZERO], e[He.SRC_OUT] = [n.ONE_MINUS_DST_ALPHA, n.ZERO], e[He.SRC_ATOP] = [n.DST_ALPHA, n.ONE_MINUS_SRC_ALPHA], e[He.DST_OVER] = [n.ONE_MINUS_DST_ALPHA, n.ONE], e[He.DST_IN] = [n.ZERO, n.SRC_ALPHA], e[He.DST_OUT] = [n.ZERO, n.ONE_MINUS_SRC_ALPHA], e[He.DST_ATOP] = [n.ONE_MINUS_DST_ALPHA, n.SRC_ALPHA], e[He.XOR] = [n.ONE_MINUS_DST_ALPHA, n.ONE_MINUS_SRC_ALPHA], e[He.SUBTRACT] = [n.ONE, n.ONE, n.ONE, n.ONE, n.FUNC_REVERSE_SUBTRACT, n.FUNC_ADD], e;
|
|
38459
38467
|
}
|
|
@@ -38741,7 +38749,7 @@ Zo.extension = {
|
|
|
38741
38749
|
};
|
|
38742
38750
|
let lr = Zo;
|
|
38743
38751
|
Ie.add(lr);
|
|
38744
|
-
class
|
|
38752
|
+
class kd {
|
|
38745
38753
|
constructor(e) {
|
|
38746
38754
|
this.texture = e, this.width = -1, this.height = -1, this.dirtyId = -1, this.dirtyStyleId = -1, this.mipmap = !1, this.wrapMode = 33071, this.type = Ae.UNSIGNED_BYTE, this.internalFormat = se.RGBA, this.samplerType = 0;
|
|
38747
38755
|
}
|
|
@@ -38943,8 +38951,8 @@ class OS {
|
|
|
38943
38951
|
for (let s = 0; s < t; s++)
|
|
38944
38952
|
this.boundTextures[s] = null;
|
|
38945
38953
|
this.emptyTextures = {};
|
|
38946
|
-
const i = new
|
|
38947
|
-
e.bindTexture(e.TEXTURE_2D, i.texture), e.texImage2D(e.TEXTURE_2D, 0, e.RGBA, 1, 1, 0, e.RGBA, e.UNSIGNED_BYTE, new Uint8Array(4)), this.emptyTextures[e.TEXTURE_2D] = i, this.emptyTextures[e.TEXTURE_CUBE_MAP] = new
|
|
38954
|
+
const i = new kd(e.createTexture());
|
|
38955
|
+
e.bindTexture(e.TEXTURE_2D, i.texture), e.texImage2D(e.TEXTURE_2D, 0, e.RGBA, 1, 1, 0, e.RGBA, e.UNSIGNED_BYTE, new Uint8Array(4)), this.emptyTextures[e.TEXTURE_2D] = i, this.emptyTextures[e.TEXTURE_CUBE_MAP] = new kd(e.createTexture()), e.bindTexture(e.TEXTURE_CUBE_MAP, this.emptyTextures[e.TEXTURE_CUBE_MAP].texture);
|
|
38948
38956
|
for (let s = 0; s < 6; s++)
|
|
38949
38957
|
e.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X + s, 0, e.RGBA, 1, 1, 0, e.RGBA, e.UNSIGNED_BYTE, null);
|
|
38950
38958
|
e.texParameteri(e.TEXTURE_CUBE_MAP, e.TEXTURE_MAG_FILTER, e.LINEAR), e.texParameteri(e.TEXTURE_CUBE_MAP, e.TEXTURE_MIN_FILTER, e.LINEAR);
|
|
@@ -39006,7 +39014,7 @@ class OS {
|
|
|
39006
39014
|
* @param texture - Texture to initialize
|
|
39007
39015
|
*/
|
|
39008
39016
|
initTexture(e) {
|
|
39009
|
-
const t = new
|
|
39017
|
+
const t = new kd(this.gl.createTexture());
|
|
39010
39018
|
return t.dirtyId = -1, e._glTextures[this.CONTEXT_UID] = t, this.managedTextures.push(e), e.on("dispose", this.destroyTexture, this), t;
|
|
39011
39019
|
}
|
|
39012
39020
|
initTextureType(e, t) {
|
|
@@ -39173,7 +39181,7 @@ qS.extension = {
|
|
|
39173
39181
|
name: "transformFeedback"
|
|
39174
39182
|
};
|
|
39175
39183
|
Ie.add(qS);
|
|
39176
|
-
class
|
|
39184
|
+
class Ac {
|
|
39177
39185
|
constructor(e) {
|
|
39178
39186
|
this.renderer = e;
|
|
39179
39187
|
}
|
|
@@ -39203,7 +39211,7 @@ class Ec {
|
|
|
39203
39211
|
e && ((t = this.element.parentNode) == null || t.removeChild(this.element)), this.renderer = null, this.element = null, this.screen = null;
|
|
39204
39212
|
}
|
|
39205
39213
|
}
|
|
39206
|
-
|
|
39214
|
+
Ac.defaultOptions = {
|
|
39207
39215
|
/**
|
|
39208
39216
|
* {@link PIXI.IRendererOptions.width}
|
|
39209
39217
|
* @default 800
|
|
@@ -39230,21 +39238,21 @@ Ec.defaultOptions = {
|
|
|
39230
39238
|
*/
|
|
39231
39239
|
autoDensity: !1
|
|
39232
39240
|
}, /** @ignore */
|
|
39233
|
-
|
|
39241
|
+
Ac.extension = {
|
|
39234
39242
|
type: [
|
|
39235
39243
|
fe.RendererSystem,
|
|
39236
39244
|
fe.CanvasRendererSystem
|
|
39237
39245
|
],
|
|
39238
39246
|
name: "_view"
|
|
39239
39247
|
};
|
|
39240
|
-
Ie.add(
|
|
39248
|
+
Ie.add(Ac);
|
|
39241
39249
|
be.PREFER_ENV = Pr.WEBGL2;
|
|
39242
39250
|
be.STRICT_TEXTURE_CACHE = !1;
|
|
39243
39251
|
be.RENDER_OPTIONS = {
|
|
39252
|
+
...Pc.defaultOptions,
|
|
39244
39253
|
...Gc.defaultOptions,
|
|
39245
|
-
...
|
|
39246
|
-
...Ec.defaultOptions
|
|
39247
|
-
...Pc.defaultOptions
|
|
39254
|
+
...Ac.defaultOptions,
|
|
39255
|
+
...Ec.defaultOptions
|
|
39248
39256
|
};
|
|
39249
39257
|
Object.defineProperties(be, {
|
|
39250
39258
|
/**
|
|
@@ -39489,7 +39497,7 @@ Object.defineProperties(be, {
|
|
|
39489
39497
|
}
|
|
39490
39498
|
});
|
|
39491
39499
|
var _r = /* @__PURE__ */ ((n) => (n[n.INTERACTION = 50] = "INTERACTION", n[n.HIGH = 25] = "HIGH", n[n.NORMAL = 0] = "NORMAL", n[n.LOW = -25] = "LOW", n[n.UTILITY = -50] = "UTILITY", n))(_r || {});
|
|
39492
|
-
class
|
|
39500
|
+
class Hd {
|
|
39493
39501
|
/**
|
|
39494
39502
|
* Constructor
|
|
39495
39503
|
* @private
|
|
@@ -39545,7 +39553,7 @@ class kd {
|
|
|
39545
39553
|
}
|
|
39546
39554
|
const XS = class Ai {
|
|
39547
39555
|
constructor() {
|
|
39548
|
-
this.autoStart = !1, this.deltaTime = 1, this.lastTime = -1, this.speed = 1, this.started = !1, this._requestId = null, this._maxElapsedMS = 100, this._minElapsedMS = 0, this._protected = !1, this._lastFrame = -1, this._head = new
|
|
39556
|
+
this.autoStart = !1, this.deltaTime = 1, this.lastTime = -1, this.speed = 1, this.started = !1, this._requestId = null, this._maxElapsedMS = 100, this._minElapsedMS = 0, this._protected = !1, this._lastFrame = -1, this._head = new Hd(null, null, 1 / 0), this.deltaMS = 1 / Ai.targetFPMS, this.elapsedMS = 1 / Ai.targetFPMS, this._tick = (e) => {
|
|
39549
39557
|
this._requestId = null, this.started && (this.update(e), this.started && this._requestId === null && this._head.next && (this._requestId = requestAnimationFrame(this._tick)));
|
|
39550
39558
|
};
|
|
39551
39559
|
}
|
|
@@ -39586,7 +39594,7 @@ const XS = class Ai {
|
|
|
39586
39594
|
* @returns This instance of a ticker
|
|
39587
39595
|
*/
|
|
39588
39596
|
add(e, t, i = _r.NORMAL) {
|
|
39589
|
-
return this._addListener(new
|
|
39597
|
+
return this._addListener(new Hd(e, t, i));
|
|
39590
39598
|
}
|
|
39591
39599
|
/**
|
|
39592
39600
|
* Add a handler for the tick event which is only execute once.
|
|
@@ -39596,7 +39604,7 @@ const XS = class Ai {
|
|
|
39596
39604
|
* @returns This instance of a ticker
|
|
39597
39605
|
*/
|
|
39598
39606
|
addOnce(e, t, i = _r.NORMAL) {
|
|
39599
|
-
return this._addListener(new
|
|
39607
|
+
return this._addListener(new Hd(e, t, i, !0));
|
|
39600
39608
|
}
|
|
39601
39609
|
/**
|
|
39602
39610
|
* Internally adds the event handler so that it can be sorted by priority.
|
|
@@ -40909,11 +40917,11 @@ Fp.push(
|
|
|
40909
40917
|
jS,
|
|
40910
40918
|
tO,
|
|
40911
40919
|
af,
|
|
40912
|
-
|
|
40920
|
+
iu,
|
|
40913
40921
|
eO,
|
|
40914
40922
|
QK
|
|
40915
40923
|
);
|
|
40916
|
-
class
|
|
40924
|
+
class Rc {
|
|
40917
40925
|
constructor() {
|
|
40918
40926
|
this.minX = 1 / 0, this.minY = 1 / 0, this.maxX = -1 / 0, this.maxY = -1 / 0, this.rect = null, this.updateID = -1;
|
|
40919
40927
|
}
|
|
@@ -41091,7 +41099,7 @@ class Ac {
|
|
|
41091
41099
|
}
|
|
41092
41100
|
class At extends Sl {
|
|
41093
41101
|
constructor() {
|
|
41094
|
-
super(), this.tempDisplayObjectParent = null, this.transform = new um(), this.alpha = 1, this.visible = !0, this.renderable = !0, this.cullable = !1, this.cullArea = null, this.parent = null, this.worldAlpha = 1, this._lastSortedIndex = 0, this._zIndex = 0, this.filterArea = null, this.filters = null, this._enabledFilters = null, this._bounds = new
|
|
41102
|
+
super(), this.tempDisplayObjectParent = null, this.transform = new um(), this.alpha = 1, this.visible = !0, this.renderable = !0, this.cullable = !1, this.cullArea = null, this.parent = null, this.worldAlpha = 1, this._lastSortedIndex = 0, this._zIndex = 0, this.filterArea = null, this.filters = null, this._enabledFilters = null, this._bounds = new Rc(), this._localBounds = null, this._boundsID = 0, this._boundsRect = null, this._localBoundsRect = null, this._mask = null, this._maskRefCount = 0, this._destroyed = !1, this.isSprite = !1, this.isMask = !1;
|
|
41095
41103
|
}
|
|
41096
41104
|
/**
|
|
41097
41105
|
* Mixes all enumerable properties and methods from a source object to DisplayObject.
|
|
@@ -41181,7 +41189,7 @@ class At extends Sl {
|
|
|
41181
41189
|
* @returns - The rectangular bounding area.
|
|
41182
41190
|
*/
|
|
41183
41191
|
getLocalBounds(e) {
|
|
41184
|
-
e || (this._localBoundsRect || (this._localBoundsRect = new De()), e = this._localBoundsRect), this._localBounds || (this._localBounds = new
|
|
41192
|
+
e || (this._localBoundsRect || (this._localBoundsRect = new De()), e = this._localBoundsRect), this._localBounds || (this._localBounds = new Rc());
|
|
41185
41193
|
const t = this.transform, i = this.parent;
|
|
41186
41194
|
this.parent = null, this._tempDisplayObjectParent.worldAlpha = (i == null ? void 0 : i.worldAlpha) ?? 1, this.transform = this._tempDisplayObjectParent.transform;
|
|
41187
41195
|
const s = this._bounds, r = this._boundsID;
|
|
@@ -41859,7 +41867,7 @@ class Rr extends Ji {
|
|
|
41859
41867
|
* @returns The bounds.
|
|
41860
41868
|
*/
|
|
41861
41869
|
getLocalBounds(e) {
|
|
41862
|
-
return this.children.length === 0 ? (this._localBounds || (this._localBounds = new
|
|
41870
|
+
return this.children.length === 0 ? (this._localBounds || (this._localBounds = new Rc()), this._localBounds.minX = this._texture.orig.width * -this._anchor._x, this._localBounds.minY = this._texture.orig.height * -this._anchor._y, this._localBounds.maxX = this._texture.orig.width * (1 - this._anchor._x), this._localBounds.maxY = this._texture.orig.height * (1 - this._anchor._y), e || (this._localBoundsRect || (this._localBoundsRect = new De()), e = this._localBoundsRect), this._localBounds.getRectangle(e)) : super.getLocalBounds.call(this, e);
|
|
41863
41871
|
}
|
|
41864
41872
|
/**
|
|
41865
41873
|
* Tests if a point is inside this sprite
|
|
@@ -43655,7 +43663,7 @@ class Cl {
|
|
|
43655
43663
|
this.propagationStopped = !0;
|
|
43656
43664
|
}
|
|
43657
43665
|
}
|
|
43658
|
-
class
|
|
43666
|
+
class Kc extends Cl {
|
|
43659
43667
|
constructor() {
|
|
43660
43668
|
super(...arguments), this.client = new ke(), this.movement = new ke(), this.offset = new ke(), this.global = new ke(), this.screen = new ke();
|
|
43661
43669
|
}
|
|
@@ -43764,7 +43772,7 @@ class Rc extends Cl {
|
|
|
43764
43772
|
throw new Error("Method not implemented.");
|
|
43765
43773
|
}
|
|
43766
43774
|
}
|
|
43767
|
-
class rn extends
|
|
43775
|
+
class rn extends Kc {
|
|
43768
43776
|
constructor() {
|
|
43769
43777
|
super(...arguments), this.width = 0, this.height = 0, this.isPrimary = !1;
|
|
43770
43778
|
}
|
|
@@ -43777,7 +43785,7 @@ class rn extends Rc {
|
|
|
43777
43785
|
throw new Error("getPredictedEvents is not supported!");
|
|
43778
43786
|
}
|
|
43779
43787
|
}
|
|
43780
|
-
class Na extends
|
|
43788
|
+
class Na extends Kc {
|
|
43781
43789
|
constructor() {
|
|
43782
43790
|
super(...arguments), this.DOM_DELTA_PIXEL = 0, this.DOM_DELTA_LINE = 1, this.DOM_DELTA_PAGE = 2;
|
|
43783
43791
|
}
|
|
@@ -43785,7 +43793,7 @@ class Na extends Rc {
|
|
|
43785
43793
|
Na.DOM_DELTA_PIXEL = 0, /** Units specified in lines. */
|
|
43786
43794
|
Na.DOM_DELTA_LINE = 1, /** Units specified in pages. */
|
|
43787
43795
|
Na.DOM_DELTA_PAGE = 2;
|
|
43788
|
-
const MO = 2048, IO = new ke(),
|
|
43796
|
+
const MO = 2048, IO = new ke(), Zd = new ke();
|
|
43789
43797
|
class wO {
|
|
43790
43798
|
/**
|
|
43791
43799
|
* @param rootTarget - The holder of the event boundary.
|
|
@@ -43986,7 +43994,7 @@ class wO {
|
|
|
43986
43994
|
*/
|
|
43987
43995
|
hitPruneFn(e, t) {
|
|
43988
43996
|
var i;
|
|
43989
|
-
if (e.hitArea && (e.worldTransform.applyInverse(t,
|
|
43997
|
+
if (e.hitArea && (e.worldTransform.applyInverse(t, Zd), !e.hitArea.contains(Zd.x, Zd.y)))
|
|
43990
43998
|
return !0;
|
|
43991
43999
|
if (e._mask) {
|
|
43992
44000
|
const s = e._mask.isMaskData ? e._mask.maskObject : e._mask;
|
|
@@ -44322,7 +44330,7 @@ class wO {
|
|
|
44322
44330
|
* @param to
|
|
44323
44331
|
*/
|
|
44324
44332
|
copyMouseData(e, t) {
|
|
44325
|
-
e instanceof
|
|
44333
|
+
e instanceof Kc && t instanceof Kc && (t.altKey = e.altKey, t.button = e.button, t.buttons = e.buttons, t.client.copyFrom(e.client), t.ctrlKey = e.ctrlKey, t.metaKey = e.metaKey, t.movement.copyFrom(e.movement), t.screen.copyFrom(e.screen), t.shiftKey = e.shiftKey, t.global.copyFrom(e.global));
|
|
44326
44334
|
}
|
|
44327
44335
|
/**
|
|
44328
44336
|
* Copies base {@link PIXI.FederatedEvent} data from {@code from} into {@code to}.
|
|
@@ -45631,7 +45639,7 @@ function WO(n) {
|
|
|
45631
45639
|
i.push(n);
|
|
45632
45640
|
return i;
|
|
45633
45641
|
}
|
|
45634
|
-
const
|
|
45642
|
+
const Oc = (n) => !Array.isArray(n);
|
|
45635
45643
|
class NO {
|
|
45636
45644
|
constructor() {
|
|
45637
45645
|
this._parsers = [], this._cache = /* @__PURE__ */ new Map(), this._cacheMap = /* @__PURE__ */ new Map();
|
|
@@ -45758,7 +45766,7 @@ class kO {
|
|
|
45758
45766
|
async load(e, t) {
|
|
45759
45767
|
this._parsersValidated || this._validateParsers();
|
|
45760
45768
|
let i = 0;
|
|
45761
|
-
const s = {}, r =
|
|
45769
|
+
const s = {}, r = Oc(e), a = an(e, (c) => ({
|
|
45762
45770
|
alias: [c],
|
|
45763
45771
|
src: c
|
|
45764
45772
|
})), o = a.length, l = a.map(async (c) => {
|
|
@@ -45958,7 +45966,7 @@ class eL extends Worker {
|
|
|
45958
45966
|
eL.revokeObjectURL = function() {
|
|
45959
45967
|
Ha && (URL.revokeObjectURL(Ha), Ha = null);
|
|
45960
45968
|
};
|
|
45961
|
-
let Wv = 0,
|
|
45969
|
+
let Wv = 0, Yd;
|
|
45962
45970
|
class s3 {
|
|
45963
45971
|
constructor() {
|
|
45964
45972
|
this._initialized = !1, this._createdWorkers = 0, this.workerPool = [], this.queue = [], this.resolveHash = {};
|
|
@@ -45978,9 +45986,9 @@ class s3 {
|
|
|
45978
45986
|
this._initialized || (this._initialized = !0);
|
|
45979
45987
|
}
|
|
45980
45988
|
getWorker() {
|
|
45981
|
-
|
|
45989
|
+
Yd === void 0 && (Yd = navigator.hardwareConcurrency || 4);
|
|
45982
45990
|
let e = this.workerPool.pop();
|
|
45983
|
-
return !e && this._createdWorkers <
|
|
45991
|
+
return !e && this._createdWorkers < Yd && (this._createdWorkers++, e = new eL(), e.addEventListener("message", (t) => {
|
|
45984
45992
|
this.complete(t.data), this.returnWorker(t.target), this.next();
|
|
45985
45993
|
})), e;
|
|
45986
45994
|
}
|
|
@@ -46036,7 +46044,7 @@ async function o3(n) {
|
|
|
46036
46044
|
const t = await e.blob();
|
|
46037
46045
|
return await createImageBitmap(t);
|
|
46038
46046
|
}
|
|
46039
|
-
const
|
|
46047
|
+
const ou = {
|
|
46040
46048
|
name: "loadTextures",
|
|
46041
46049
|
extension: {
|
|
46042
46050
|
type: fe.LoadParser,
|
|
@@ -46067,7 +46075,7 @@ const au = {
|
|
|
46067
46075
|
n.destroy(!0);
|
|
46068
46076
|
}
|
|
46069
46077
|
};
|
|
46070
|
-
Ie.add(
|
|
46078
|
+
Ie.add(ou);
|
|
46071
46079
|
const l3 = ".svg", h3 = "image/svg+xml", c3 = {
|
|
46072
46080
|
extension: {
|
|
46073
46081
|
type: fe.LoadParser,
|
|
@@ -46093,7 +46101,7 @@ const l3 = ".svg", h3 = "image/svg+xml", c3 = {
|
|
|
46093
46101
|
async load(n, e) {
|
|
46094
46102
|
return (await be.ADAPTER.fetch(n)).text();
|
|
46095
46103
|
},
|
|
46096
|
-
unload:
|
|
46104
|
+
unload: ou.unload
|
|
46097
46105
|
};
|
|
46098
46106
|
Ie.add(c3);
|
|
46099
46107
|
const u3 = [".mp4", ".m4v", ".webm", ".ogv"], d3 = [
|
|
@@ -46437,7 +46445,7 @@ Please use Assets.add({ alias, src, data, format, loadParser }) instead.`), a.pu
|
|
|
46437
46445
|
* @returns All the bundles assets or a hash of assets for each bundle specified
|
|
46438
46446
|
*/
|
|
46439
46447
|
resolveBundle(e) {
|
|
46440
|
-
const t =
|
|
46448
|
+
const t = Oc(e);
|
|
46441
46449
|
e = an(e);
|
|
46442
46450
|
const i = {};
|
|
46443
46451
|
return e.forEach((s) => {
|
|
@@ -46468,7 +46476,7 @@ Please use Assets.add({ alias, src, data, format, loadParser }) instead.`), a.pu
|
|
|
46468
46476
|
return t.src;
|
|
46469
46477
|
}
|
|
46470
46478
|
resolve(e) {
|
|
46471
|
-
const t =
|
|
46479
|
+
const t = Oc(e);
|
|
46472
46480
|
e = an(e);
|
|
46473
46481
|
const i = {};
|
|
46474
46482
|
return e.forEach((s) => {
|
|
@@ -46570,7 +46578,7 @@ class m3 {
|
|
|
46570
46578
|
}
|
|
46571
46579
|
async load(e, t) {
|
|
46572
46580
|
this._initialized || await this.init();
|
|
46573
|
-
const i =
|
|
46581
|
+
const i = Oc(e), s = an(e).map((o) => {
|
|
46574
46582
|
if (typeof o != "string") {
|
|
46575
46583
|
const l = this.resolver.getAlias(o);
|
|
46576
46584
|
return l.some((c) => !this.resolver.hasKey(c)) && this.add(o), Array.isArray(l) ? l[0] : l;
|
|
@@ -46835,7 +46843,7 @@ class m3 {
|
|
|
46835
46843
|
* @see {@link Assets.setPreferences}
|
|
46836
46844
|
*/
|
|
46837
46845
|
get preferWorkers() {
|
|
46838
|
-
return
|
|
46846
|
+
return ou.config.preferWorkers;
|
|
46839
46847
|
}
|
|
46840
46848
|
set preferWorkers(e) {
|
|
46841
46849
|
rt("7.2.0", "Assets.prefersWorkers is deprecated, use Assets.setPreferences({ preferWorkers: true }) instead."), this.setPreferences({ preferWorkers: e });
|
|
@@ -46959,7 +46967,7 @@ const C3 = {
|
|
|
46959
46967
|
Ie.add(C3);
|
|
46960
46968
|
const T3 = {
|
|
46961
46969
|
extension: fe.ResolveParser,
|
|
46962
|
-
test:
|
|
46970
|
+
test: ou.test,
|
|
46963
46971
|
parse: (n) => {
|
|
46964
46972
|
var e;
|
|
46965
46973
|
return {
|
|
@@ -46971,7 +46979,7 @@ const T3 = {
|
|
|
46971
46979
|
};
|
|
46972
46980
|
Ie.add(T3);
|
|
46973
46981
|
var si = /* @__PURE__ */ ((n) => (n[n.COMPRESSED_RGB_S3TC_DXT1_EXT = 33776] = "COMPRESSED_RGB_S3TC_DXT1_EXT", n[n.COMPRESSED_RGBA_S3TC_DXT1_EXT = 33777] = "COMPRESSED_RGBA_S3TC_DXT1_EXT", n[n.COMPRESSED_RGBA_S3TC_DXT3_EXT = 33778] = "COMPRESSED_RGBA_S3TC_DXT3_EXT", n[n.COMPRESSED_RGBA_S3TC_DXT5_EXT = 33779] = "COMPRESSED_RGBA_S3TC_DXT5_EXT", n[n.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT = 35917] = "COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT", n[n.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT = 35918] = "COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT", n[n.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT = 35919] = "COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT", n[n.COMPRESSED_SRGB_S3TC_DXT1_EXT = 35916] = "COMPRESSED_SRGB_S3TC_DXT1_EXT", n[n.COMPRESSED_R11_EAC = 37488] = "COMPRESSED_R11_EAC", n[n.COMPRESSED_SIGNED_R11_EAC = 37489] = "COMPRESSED_SIGNED_R11_EAC", n[n.COMPRESSED_RG11_EAC = 37490] = "COMPRESSED_RG11_EAC", n[n.COMPRESSED_SIGNED_RG11_EAC = 37491] = "COMPRESSED_SIGNED_RG11_EAC", n[n.COMPRESSED_RGB8_ETC2 = 37492] = "COMPRESSED_RGB8_ETC2", n[n.COMPRESSED_RGBA8_ETC2_EAC = 37496] = "COMPRESSED_RGBA8_ETC2_EAC", n[n.COMPRESSED_SRGB8_ETC2 = 37493] = "COMPRESSED_SRGB8_ETC2", n[n.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC = 37497] = "COMPRESSED_SRGB8_ALPHA8_ETC2_EAC", n[n.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 37494] = "COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2", n[n.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 37495] = "COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2", n[n.COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 35840] = "COMPRESSED_RGB_PVRTC_4BPPV1_IMG", n[n.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 35842] = "COMPRESSED_RGBA_PVRTC_4BPPV1_IMG", n[n.COMPRESSED_RGB_PVRTC_2BPPV1_IMG = 35841] = "COMPRESSED_RGB_PVRTC_2BPPV1_IMG", n[n.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 35843] = "COMPRESSED_RGBA_PVRTC_2BPPV1_IMG", n[n.COMPRESSED_RGB_ETC1_WEBGL = 36196] = "COMPRESSED_RGB_ETC1_WEBGL", n[n.COMPRESSED_RGB_ATC_WEBGL = 35986] = "COMPRESSED_RGB_ATC_WEBGL", n[n.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL = 35987] = "COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL", n[n.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL = 34798] = "COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL", n[n.COMPRESSED_RGBA_ASTC_4x4_KHR = 37808] = "COMPRESSED_RGBA_ASTC_4x4_KHR", n[n.COMPRESSED_RGBA_BPTC_UNORM_EXT = 36492] = "COMPRESSED_RGBA_BPTC_UNORM_EXT", n[n.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT = 36493] = "COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT", n[n.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT = 36494] = "COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT", n[n.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT = 36495] = "COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT", n))(si || {});
|
|
46974
|
-
const
|
|
46982
|
+
const qc = {
|
|
46975
46983
|
// WEBGL_compressed_texture_s3tc
|
|
46976
46984
|
33776: 0.5,
|
|
46977
46985
|
33777: 0.5,
|
|
@@ -47051,7 +47059,7 @@ const M3 = {
|
|
|
47051
47059
|
remove: async (n) => (Ca || Hv(), n.filter((e) => !(e in Ca)))
|
|
47052
47060
|
};
|
|
47053
47061
|
Ie.add(M3);
|
|
47054
|
-
class I3 extends
|
|
47062
|
+
class I3 extends iu {
|
|
47055
47063
|
/**
|
|
47056
47064
|
* @param source - The buffer/URL of the texture file.
|
|
47057
47065
|
* @param {PIXI.IBlobResourceOptions} [options]
|
|
@@ -47164,18 +47172,18 @@ class Cr extends I3 {
|
|
|
47164
47172
|
*/
|
|
47165
47173
|
static _createLevelBuffers(e, t, i, s, r, a, o) {
|
|
47166
47174
|
const l = new Array(i);
|
|
47167
|
-
let c = e.byteOffset, d = a, h = o, u = d + s - 1 & ~(s - 1), p = h + r - 1 & ~(r - 1), m = u * p *
|
|
47175
|
+
let c = e.byteOffset, d = a, h = o, u = d + s - 1 & ~(s - 1), p = h + r - 1 & ~(r - 1), m = u * p * qc[t];
|
|
47168
47176
|
for (let y = 0; y < i; y++)
|
|
47169
47177
|
l[y] = {
|
|
47170
47178
|
levelID: y,
|
|
47171
47179
|
levelWidth: i > 1 ? d : u,
|
|
47172
47180
|
levelHeight: i > 1 ? h : p,
|
|
47173
47181
|
levelBuffer: new Uint8Array(e.buffer, c, m)
|
|
47174
|
-
}, c += m, d = d >> 1 || 1, h = h >> 1 || 1, u = d + s - 1 & ~(s - 1), p = h + r - 1 & ~(r - 1), m = u * p *
|
|
47182
|
+
}, c += m, d = d >> 1 || 1, h = h >> 1 || 1, u = d + s - 1 & ~(s - 1), p = h + r - 1 & ~(r - 1), m = u * p * qc[t];
|
|
47175
47183
|
return l;
|
|
47176
47184
|
}
|
|
47177
47185
|
}
|
|
47178
|
-
const
|
|
47186
|
+
const Dd = 4, Wh = 124, w3 = 32, Zv = 20, _3 = 542327876, Nh = {
|
|
47179
47187
|
SIZE: 1,
|
|
47180
47188
|
FLAGS: 2,
|
|
47181
47189
|
HEIGHT: 3,
|
|
@@ -47233,7 +47241,7 @@ function Z3(n) {
|
|
|
47233
47241
|
if (o & A3) {
|
|
47234
47242
|
const l = a[G3.FOURCC];
|
|
47235
47243
|
if (l !== W3) {
|
|
47236
|
-
const v = k3[l], b =
|
|
47244
|
+
const v = k3[l], b = Dd + Wh, x = new Uint8Array(n, b);
|
|
47237
47245
|
return [new Cr(x, {
|
|
47238
47246
|
format: v,
|
|
47239
47247
|
width: s,
|
|
@@ -47242,7 +47250,7 @@ function Z3(n) {
|
|
|
47242
47250
|
// CompressedTextureResource will separate the levelBuffers for us!
|
|
47243
47251
|
})];
|
|
47244
47252
|
}
|
|
47245
|
-
const c =
|
|
47253
|
+
const c = Dd + Wh, d = new Uint32Array(
|
|
47246
47254
|
e.buffer,
|
|
47247
47255
|
c,
|
|
47248
47256
|
Zv / Uint32Array.BYTES_PER_ELEMENT
|
|
@@ -47253,11 +47261,11 @@ function Z3(n) {
|
|
|
47253
47261
|
throw new Error("DDSParser does not support cubemap textures");
|
|
47254
47262
|
if (u === 6)
|
|
47255
47263
|
throw new Error("DDSParser does not supported 3D texture data");
|
|
47256
|
-
const g = new Array(), f =
|
|
47264
|
+
const g = new Array(), f = Dd + Wh + Zv;
|
|
47257
47265
|
if (m === 1)
|
|
47258
47266
|
g.push(new Uint8Array(n, f));
|
|
47259
47267
|
else {
|
|
47260
|
-
const v =
|
|
47268
|
+
const v = qc[y];
|
|
47261
47269
|
let b = 0, x = s, S = i;
|
|
47262
47270
|
for (let T = 0; T < r; T++) {
|
|
47263
47271
|
const I = Math.max(1, x + 3 & -4), L = Math.max(1, S + 3 & -4), M = I * L * v;
|
|
@@ -47326,7 +47334,7 @@ function F3(n, e, t = !1) {
|
|
|
47326
47334
|
let x = l * c;
|
|
47327
47335
|
r === 0 && (x = f * v);
|
|
47328
47336
|
let S;
|
|
47329
|
-
if (r !== 0 ? Dv[r] ? S = Dv[r] * D3[a] : S = j3[r] : S =
|
|
47337
|
+
if (r !== 0 ? Dv[r] ? S = Dv[r] * D3[a] : S = j3[r] : S = qc[o], S === void 0)
|
|
47330
47338
|
throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");
|
|
47331
47339
|
const C = t ? V3(i, m, s) : null;
|
|
47332
47340
|
let T = x * S, I = l, L = c, M = f, K = v, P = vf + m;
|
|
@@ -47361,7 +47369,7 @@ function F3(n, e, t = !1) {
|
|
|
47361
47369
|
G[0].levelBuffer.byteOffset,
|
|
47362
47370
|
G[0].levelBuffer.byteLength / 4
|
|
47363
47371
|
)), {
|
|
47364
|
-
resource: new
|
|
47372
|
+
resource: new iu(
|
|
47365
47373
|
w,
|
|
47366
47374
|
{
|
|
47367
47375
|
width: G[0].levelWidth,
|
|
@@ -47665,7 +47673,7 @@ iL.extension = {
|
|
|
47665
47673
|
};
|
|
47666
47674
|
let tq = iL;
|
|
47667
47675
|
Ie.add(tq);
|
|
47668
|
-
const
|
|
47676
|
+
const Xc = {
|
|
47669
47677
|
build(n) {
|
|
47670
47678
|
const e = n.points;
|
|
47671
47679
|
let t, i, s, r, a, o;
|
|
@@ -47811,10 +47819,10 @@ const nL = {
|
|
|
47811
47819
|
}
|
|
47812
47820
|
}, nq = {
|
|
47813
47821
|
build(n) {
|
|
47814
|
-
|
|
47822
|
+
Xc.build(n);
|
|
47815
47823
|
},
|
|
47816
47824
|
triangulate(n, e) {
|
|
47817
|
-
|
|
47825
|
+
Xc.triangulate(n, e);
|
|
47818
47826
|
}
|
|
47819
47827
|
};
|
|
47820
47828
|
var Wi = /* @__PURE__ */ ((n) => (n.MITER = "miter", n.BEVEL = "bevel", n.ROUND = "round", n))(Wi || {}), Ks = /* @__PURE__ */ ((n) => (n.BUTT = "butt", n.ROUND = "round", n.SQUARE = "square", n))(Ks || {});
|
|
@@ -47876,7 +47884,7 @@ class Fv {
|
|
|
47876
47884
|
static arc(e, t, i, s, r, a, o, l, c) {
|
|
47877
47885
|
const d = o - a, h = ao._segmentsCount(
|
|
47878
47886
|
Math.abs(d) * r,
|
|
47879
|
-
Math.ceil(Math.abs(d) /
|
|
47887
|
+
Math.ceil(Math.abs(d) / _c) * 40
|
|
47880
47888
|
), u = d / (h * 2), p = u * 2, m = Math.cos(u), y = Math.sin(u), g = h - 1, f = g % 1 / g;
|
|
47881
47889
|
for (let v = 0; v <= g; ++v) {
|
|
47882
47890
|
const b = v + f * v, x = u + a + p * b, S = Math.cos(x), C = -Math.sin(x);
|
|
@@ -48297,14 +48305,14 @@ class gm {
|
|
|
48297
48305
|
}
|
|
48298
48306
|
}
|
|
48299
48307
|
}
|
|
48300
|
-
const
|
|
48308
|
+
const jd = {
|
|
48301
48309
|
[ri.POLY]: nL,
|
|
48302
|
-
[ri.CIRC]:
|
|
48303
|
-
[ri.ELIP]:
|
|
48310
|
+
[ri.CIRC]: Xc,
|
|
48311
|
+
[ri.ELIP]: Xc,
|
|
48304
48312
|
[ri.RECT]: iq,
|
|
48305
48313
|
[ri.RREC]: nq
|
|
48306
48314
|
}, Vv = [], Zh = [];
|
|
48307
|
-
class
|
|
48315
|
+
class zc {
|
|
48308
48316
|
/**
|
|
48309
48317
|
* @param {PIXI.Circle|PIXI.Ellipse|PIXI.Polygon|PIXI.Rectangle|PIXI.RoundedRectangle} shape - The shape object to draw.
|
|
48310
48318
|
* @param fillStyle - the width of the line to draw
|
|
@@ -48319,7 +48327,7 @@ class Xc {
|
|
|
48319
48327
|
* @returns - Cloned GraphicsData object
|
|
48320
48328
|
*/
|
|
48321
48329
|
clone() {
|
|
48322
|
-
return new
|
|
48330
|
+
return new zc(
|
|
48323
48331
|
this.shape,
|
|
48324
48332
|
this.fillStyle,
|
|
48325
48333
|
this.lineStyle,
|
|
@@ -48334,7 +48342,7 @@ class Xc {
|
|
|
48334
48342
|
const ga = new ke(), sL = class rL extends hS {
|
|
48335
48343
|
// eslint-disable-next-line @typescript-eslint/no-useless-constructor
|
|
48336
48344
|
constructor() {
|
|
48337
|
-
super(), this.closePointEps = 1e-4, this.boundsPadding = 0, this.uvsFloat32 = null, this.indicesUint16 = null, this.batchable = !1, this.points = [], this.colors = [], this.uvs = [], this.indices = [], this.textureIds = [], this.graphicsData = [], this.drawCalls = [], this.batchDirty = -1, this.batches = [], this.dirty = 0, this.cacheDirty = -1, this.clearDirty = 0, this.shapeIndex = 0, this._bounds = new
|
|
48345
|
+
super(), this.closePointEps = 1e-4, this.boundsPadding = 0, this.uvsFloat32 = null, this.indicesUint16 = null, this.batchable = !1, this.points = [], this.colors = [], this.uvs = [], this.indices = [], this.textureIds = [], this.graphicsData = [], this.drawCalls = [], this.batchDirty = -1, this.batches = [], this.dirty = 0, this.cacheDirty = -1, this.clearDirty = 0, this.shapeIndex = 0, this._bounds = new Rc(), this.boundsDirty = -1;
|
|
48338
48346
|
}
|
|
48339
48347
|
/**
|
|
48340
48348
|
* Get the current bounds of the graphic geometry.
|
|
@@ -48376,7 +48384,7 @@ const ga = new ke(), sL = class rL extends hS {
|
|
|
48376
48384
|
* @returns - Returns geometry for chaining.
|
|
48377
48385
|
*/
|
|
48378
48386
|
drawShape(e, t = null, i = null, s = null) {
|
|
48379
|
-
const r = new
|
|
48387
|
+
const r = new zc(e, t, i, s);
|
|
48380
48388
|
return this.graphicsData.push(r), this.dirty++, this;
|
|
48381
48389
|
}
|
|
48382
48390
|
/**
|
|
@@ -48388,7 +48396,7 @@ const ga = new ke(), sL = class rL extends hS {
|
|
|
48388
48396
|
drawHole(e, t = null) {
|
|
48389
48397
|
if (!this.graphicsData.length)
|
|
48390
48398
|
return null;
|
|
48391
|
-
const i = new
|
|
48399
|
+
const i = new zc(e, null, null, t), s = this.graphicsData[this.graphicsData.length - 1];
|
|
48392
48400
|
return i.lineStyle = s.lineStyle, s.holes.push(i), this.dirty++, this;
|
|
48393
48401
|
}
|
|
48394
48402
|
/** Destroys the GraphicsGeometry object. */
|
|
@@ -48440,7 +48448,7 @@ const ga = new ke(), sL = class rL extends hS {
|
|
|
48440
48448
|
for (let l = this.shapeIndex; l < t.length; l++) {
|
|
48441
48449
|
this.shapeIndex++;
|
|
48442
48450
|
const c = t[l], d = c.fillStyle, h = c.lineStyle;
|
|
48443
|
-
|
|
48451
|
+
jd[c.type].build(c), c.matrix && this.transformPoints(c.points, c.matrix), (d.visible || h.visible) && this.processHoles(c.holes);
|
|
48444
48452
|
for (let u = 0; u < 2; u++) {
|
|
48445
48453
|
const p = u === 0 ? d : h;
|
|
48446
48454
|
if (!p.visible)
|
|
@@ -48533,7 +48541,7 @@ const ga = new ke(), sL = class rL extends hS {
|
|
|
48533
48541
|
* @param data
|
|
48534
48542
|
*/
|
|
48535
48543
|
processFill(e) {
|
|
48536
|
-
e.holes.length ? nL.triangulate(e, this) :
|
|
48544
|
+
e.holes.length ? nL.triangulate(e, this) : jd[e.type].triangulate(e, this);
|
|
48537
48545
|
}
|
|
48538
48546
|
/**
|
|
48539
48547
|
* Process line part of Graphics.
|
|
@@ -48551,7 +48559,7 @@ const ga = new ke(), sL = class rL extends hS {
|
|
|
48551
48559
|
processHoles(e) {
|
|
48552
48560
|
for (let t = 0; t < e.length; t++) {
|
|
48553
48561
|
const i = e[t];
|
|
48554
|
-
|
|
48562
|
+
jd[i.type].build(i), i.matrix && this.transformPoints(i.points, i.matrix);
|
|
48555
48563
|
}
|
|
48556
48564
|
}
|
|
48557
48565
|
/** Update the local bounds of the object. Expensive to use performance-wise. */
|
|
@@ -48639,13 +48647,13 @@ const ga = new ke(), sL = class rL extends hS {
|
|
|
48639
48647
|
};
|
|
48640
48648
|
sL.BATCHABLE_SIZE = 100;
|
|
48641
48649
|
let oq = sL;
|
|
48642
|
-
class
|
|
48650
|
+
class lu {
|
|
48643
48651
|
constructor() {
|
|
48644
48652
|
this.color = 16777215, this.alpha = 1, this.texture = Me.WHITE, this.matrix = null, this.visible = !1, this.reset();
|
|
48645
48653
|
}
|
|
48646
48654
|
/** Clones the object */
|
|
48647
48655
|
clone() {
|
|
48648
|
-
const e = new
|
|
48656
|
+
const e = new lu();
|
|
48649
48657
|
return e.color = this.color, e.alpha = this.alpha, e.texture = this.texture, e.matrix = this.matrix, e.visible = this.visible, e;
|
|
48650
48658
|
}
|
|
48651
48659
|
/** Reset */
|
|
@@ -48657,7 +48665,7 @@ class ou {
|
|
|
48657
48665
|
this.texture = null, this.matrix = null;
|
|
48658
48666
|
}
|
|
48659
48667
|
}
|
|
48660
|
-
class ym extends
|
|
48668
|
+
class ym extends lu {
|
|
48661
48669
|
constructor() {
|
|
48662
48670
|
super(...arguments), this.width = 0, this.alignment = 0.5, this.native = !1, this.cap = Ks.BUTT, this.join = Wi.MITER, this.miterLimit = 10;
|
|
48663
48671
|
}
|
|
@@ -48671,12 +48679,12 @@ class ym extends ou {
|
|
|
48671
48679
|
super.reset(), this.color = 0, this.alignment = 0.5, this.width = 0, this.native = !1, this.cap = Ks.BUTT, this.join = Wi.MITER, this.miterLimit = 10;
|
|
48672
48680
|
}
|
|
48673
48681
|
}
|
|
48674
|
-
const
|
|
48682
|
+
const Fd = {}, bf = class rc extends Ji {
|
|
48675
48683
|
/**
|
|
48676
48684
|
* @param geometry - Geometry to use, if omitted will create a new GraphicsGeometry instance.
|
|
48677
48685
|
*/
|
|
48678
48686
|
constructor(e = null) {
|
|
48679
|
-
super(), this.shader = null, this.pluginName = "batch", this.currentPath = null, this.batches = [], this.batchTint = -1, this.batchDirty = -1, this.vertexData = null, this._fillStyle = new
|
|
48687
|
+
super(), this.shader = null, this.pluginName = "batch", this.currentPath = null, this.batches = [], this.batchTint = -1, this.batchDirty = -1, this.vertexData = null, this._fillStyle = new lu(), this._lineStyle = new ym(), this._matrix = null, this._holeMode = !1, this.state = zn.for2d(), this._geometry = e || new oq(), this._geometry.refCount++, this._transformID = -1, this._tintColor = new Lt(16777215), this.blendMode = He.NORMAL;
|
|
48680
48688
|
}
|
|
48681
48689
|
/**
|
|
48682
48690
|
* Includes vertex positions, face indices, normals, colors, UVs, and
|
|
@@ -48883,7 +48891,7 @@ const jd = {}, bf = class rc extends Ji {
|
|
|
48883
48891
|
arc(e, t, i, s, r, a = !1) {
|
|
48884
48892
|
if (s === r)
|
|
48885
48893
|
return this;
|
|
48886
|
-
if (!a && r <= s ? r +=
|
|
48894
|
+
if (!a && r <= s ? r += _c : a && s <= r && (s += _c), r - s === 0)
|
|
48887
48895
|
return this;
|
|
48888
48896
|
const o = e + Math.cos(s) * i, l = t + Math.sin(s) * i, c = this._geometry.closePointEps;
|
|
48889
48897
|
let d = this.currentPath ? this.currentPath.points : null;
|
|
@@ -48960,7 +48968,7 @@ const jd = {}, bf = class rc extends Ji {
|
|
|
48960
48968
|
* @returns - This Graphics object. Good for chaining method calls
|
|
48961
48969
|
*/
|
|
48962
48970
|
drawRoundedRect(e, t, i, s, r) {
|
|
48963
|
-
return this.drawShape(new
|
|
48971
|
+
return this.drawShape(new ru(e, t, i, s, r));
|
|
48964
48972
|
}
|
|
48965
48973
|
/**
|
|
48966
48974
|
* Draws a circle.
|
|
@@ -48970,7 +48978,7 @@ const jd = {}, bf = class rc extends Ji {
|
|
|
48970
48978
|
* @returns - This Graphics object. Good for chaining method calls
|
|
48971
48979
|
*/
|
|
48972
48980
|
drawCircle(e, t, i) {
|
|
48973
|
-
return this.drawShape(new
|
|
48981
|
+
return this.drawShape(new nu(e, t, i));
|
|
48974
48982
|
}
|
|
48975
48983
|
/**
|
|
48976
48984
|
* Draws an ellipse.
|
|
@@ -48981,7 +48989,7 @@ const jd = {}, bf = class rc extends Ji {
|
|
|
48981
48989
|
* @returns - This Graphics object. Good for chaining method calls
|
|
48982
48990
|
*/
|
|
48983
48991
|
drawEllipse(e, t, i, s) {
|
|
48984
|
-
return this.drawShape(new
|
|
48992
|
+
return this.drawShape(new su(e, t, i, s));
|
|
48985
48993
|
}
|
|
48986
48994
|
/**
|
|
48987
48995
|
* Draws a polygon using the given path.
|
|
@@ -49106,7 +49114,7 @@ const jd = {}, bf = class rc extends Ji {
|
|
|
49106
49114
|
let t = this.shader;
|
|
49107
49115
|
const i = this.pluginName;
|
|
49108
49116
|
if (!t) {
|
|
49109
|
-
if (!
|
|
49117
|
+
if (!Fd[i]) {
|
|
49110
49118
|
const { maxTextures: s } = e.plugins[i], r = new Int32Array(s);
|
|
49111
49119
|
for (let l = 0; l < s; l++)
|
|
49112
49120
|
r[l] = l;
|
|
@@ -49115,9 +49123,9 @@ const jd = {}, bf = class rc extends Ji {
|
|
|
49115
49123
|
translationMatrix: new Tt(),
|
|
49116
49124
|
default: cn.from({ uSamplers: r }, !0)
|
|
49117
49125
|
}, o = e.plugins[i]._shader.program;
|
|
49118
|
-
|
|
49126
|
+
Fd[i] = new Kn(o, a);
|
|
49119
49127
|
}
|
|
49120
|
-
t =
|
|
49128
|
+
t = Fd[i];
|
|
49121
49129
|
}
|
|
49122
49130
|
return t;
|
|
49123
49131
|
}
|
|
@@ -49239,7 +49247,7 @@ class lq {
|
|
|
49239
49247
|
(!this.data || this.data.length !== t.length) && (this.data = new Float32Array(t.length)), this.uvMatrix.multiplyUvs(t, this.data), this._updateID++;
|
|
49240
49248
|
}
|
|
49241
49249
|
}
|
|
49242
|
-
const
|
|
49250
|
+
const Bd = new ke(), Uv = new Lr(), oL = class lL extends Ji {
|
|
49243
49251
|
/**
|
|
49244
49252
|
* @param geometry - The geometry the mesh will use.
|
|
49245
49253
|
* @param {PIXI.MeshMaterial} shader - The shader the mesh will use.
|
|
@@ -49398,11 +49406,11 @@ const Fd = new ke(), Uv = new Lr(), oL = class lL extends Ji {
|
|
|
49398
49406
|
containsPoint(e) {
|
|
49399
49407
|
if (!this.getBounds().contains(e.x, e.y))
|
|
49400
49408
|
return !1;
|
|
49401
|
-
this.worldTransform.applyInverse(e,
|
|
49409
|
+
this.worldTransform.applyInverse(e, Bd);
|
|
49402
49410
|
const t = this.geometry.getBuffer("aVertexPosition").data, i = Uv.points, s = this.geometry.getIndex().data, r = s.length, a = this.drawMode === 4 ? 3 : 1;
|
|
49403
49411
|
for (let o = 0; o + 2 < r; o += a) {
|
|
49404
49412
|
const l = s[o] * 2, c = s[o + 1] * 2, d = s[o + 2] * 2;
|
|
49405
|
-
if (i[0] = t[l], i[1] = t[l + 1], i[2] = t[c], i[3] = t[c + 1], i[4] = t[d], i[5] = t[d + 1], Uv.contains(
|
|
49413
|
+
if (i[0] = t[l], i[1] = t[l + 1], i[2] = t[c], i[3] = t[c + 1], i[4] = t[d], i[5] = t[d + 1], Uv.contains(Bd.x, Bd.y))
|
|
49406
49414
|
return !0;
|
|
49407
49415
|
}
|
|
49408
49416
|
return !1;
|
|
@@ -49668,7 +49676,7 @@ void main(void){
|
|
|
49668
49676
|
vColor = aColor * uColor;
|
|
49669
49677
|
}
|
|
49670
49678
|
`;
|
|
49671
|
-
class hL extends
|
|
49679
|
+
class hL extends au {
|
|
49672
49680
|
/**
|
|
49673
49681
|
* @param renderer - The renderer this sprite batch works for.
|
|
49674
49682
|
*/
|
|
@@ -49844,7 +49852,7 @@ hL.extension = {
|
|
|
49844
49852
|
type: fe.RendererPlugin
|
|
49845
49853
|
};
|
|
49846
49854
|
Ie.add(hL);
|
|
49847
|
-
var
|
|
49855
|
+
var hu = /* @__PURE__ */ ((n) => (n[n.LINEAR_VERTICAL = 0] = "LINEAR_VERTICAL", n[n.LINEAR_HORIZONTAL = 1] = "LINEAR_HORIZONTAL", n))(hu || {});
|
|
49848
49856
|
const Yh = {
|
|
49849
49857
|
// TextMetrics requires getImageData readback for measuring fonts.
|
|
49850
49858
|
willReadFrequently: !0
|
|
@@ -50275,7 +50283,7 @@ const fq = [
|
|
|
50275
50283
|
* for the default values.
|
|
50276
50284
|
*/
|
|
50277
50285
|
constructor(e) {
|
|
50278
|
-
this.styleID = 0, this.reset(),
|
|
50286
|
+
this.styleID = 0, this.reset(), Vd(this, e, e);
|
|
50279
50287
|
}
|
|
50280
50288
|
/**
|
|
50281
50289
|
* Creates a new TextStyle object with the same values as this one.
|
|
@@ -50285,11 +50293,11 @@ const fq = [
|
|
|
50285
50293
|
*/
|
|
50286
50294
|
clone() {
|
|
50287
50295
|
const e = {};
|
|
50288
|
-
return
|
|
50296
|
+
return Vd(e, this, jo.defaultStyle), new jo(e);
|
|
50289
50297
|
}
|
|
50290
50298
|
/** Resets all properties to the defaults specified in TextStyle.prototype._default */
|
|
50291
50299
|
reset() {
|
|
50292
|
-
|
|
50300
|
+
Vd(this, jo.defaultStyle, jo.defaultStyle);
|
|
50293
50301
|
}
|
|
50294
50302
|
/**
|
|
50295
50303
|
* Alignment for multiline text, does not affect single line text.
|
|
@@ -50342,7 +50350,7 @@ const fq = [
|
|
|
50342
50350
|
return this._dropShadowColor;
|
|
50343
50351
|
}
|
|
50344
50352
|
set dropShadowColor(e) {
|
|
50345
|
-
const t =
|
|
50353
|
+
const t = Jd(e);
|
|
50346
50354
|
this._dropShadowColor !== t && (this._dropShadowColor = t, this.styleID++);
|
|
50347
50355
|
}
|
|
50348
50356
|
/** Set a distance of the drop shadow. */
|
|
@@ -50364,7 +50372,7 @@ const fq = [
|
|
|
50364
50372
|
return this._fill;
|
|
50365
50373
|
}
|
|
50366
50374
|
set fill(e) {
|
|
50367
|
-
const t =
|
|
50375
|
+
const t = Jd(e);
|
|
50368
50376
|
this._fill !== t && (this._fill = t, this.styleID++);
|
|
50369
50377
|
}
|
|
50370
50378
|
/**
|
|
@@ -50502,7 +50510,7 @@ const fq = [
|
|
|
50502
50510
|
return this._stroke;
|
|
50503
50511
|
}
|
|
50504
50512
|
set stroke(e) {
|
|
50505
|
-
const t =
|
|
50513
|
+
const t = Jd(e);
|
|
50506
50514
|
this._stroke !== t && (this._stroke = t, this.styleID++);
|
|
50507
50515
|
}
|
|
50508
50516
|
/**
|
|
@@ -50619,7 +50627,7 @@ cL.defaultStyle = {
|
|
|
50619
50627
|
* @type {PIXI.TEXT_GRADIENT}
|
|
50620
50628
|
* @default PIXI.TEXT_GRADIENT.LINEAR_VERTICAL
|
|
50621
50629
|
*/
|
|
50622
|
-
fillGradientType:
|
|
50630
|
+
fillGradientType: hu.LINEAR_VERTICAL,
|
|
50623
50631
|
/**
|
|
50624
50632
|
* See {@link PIXI.TextStyle.fillGradientStops}
|
|
50625
50633
|
* @type {number[]}
|
|
@@ -50691,7 +50699,7 @@ cL.defaultStyle = {
|
|
|
50691
50699
|
wordWrapWidth: 100
|
|
50692
50700
|
};
|
|
50693
50701
|
let Ns = cL;
|
|
50694
|
-
function
|
|
50702
|
+
function Jd(n) {
|
|
50695
50703
|
const e = Lt.shared, t = (i) => {
|
|
50696
50704
|
const s = e.setValue(i);
|
|
50697
50705
|
return s.alpha === 1 ? s.toHex() : s.toRgbaString();
|
|
@@ -50706,7 +50714,7 @@ function mq(n, e) {
|
|
|
50706
50714
|
return !1;
|
|
50707
50715
|
return !0;
|
|
50708
50716
|
}
|
|
50709
|
-
function
|
|
50717
|
+
function Vd(n, e, t) {
|
|
50710
50718
|
for (const i in t)
|
|
50711
50719
|
Array.isArray(e[i]) ? n[i] = e[i].slice() : n[i] = e[i];
|
|
50712
50720
|
}
|
|
@@ -50867,7 +50875,7 @@ const gq = {
|
|
|
50867
50875
|
for (let p = 1; p < u; ++p)
|
|
50868
50876
|
h.push(p / u);
|
|
50869
50877
|
}
|
|
50870
|
-
if (d.unshift(s[0]), h.unshift(0), d.push(s[s.length - 1]), h.push(1), e.fillGradientType ===
|
|
50878
|
+
if (d.unshift(s[0]), h.unshift(0), d.push(s[s.length - 1]), h.push(1), e.fillGradientType === hu.LINEAR_VERTICAL) {
|
|
50871
50879
|
r = this.context.createLinearGradient(l / 2, o, l / 2, c + o);
|
|
50872
50880
|
const u = i.fontProperties.fontSize + e.strokeThickness;
|
|
50873
50881
|
for (let p = 0; p < t.length; p++) {
|
|
@@ -51294,7 +51302,7 @@ void main(void)
|
|
|
51294
51302
|
}
|
|
51295
51303
|
`;
|
|
51296
51304
|
const Dh = new Tt();
|
|
51297
|
-
class yL extends
|
|
51305
|
+
class yL extends au {
|
|
51298
51306
|
/**
|
|
51299
51307
|
* constructor for renderer
|
|
51300
51308
|
* @param {PIXI.Renderer} renderer - The renderer this tiling awesomeness works for.
|
|
@@ -51557,7 +51565,7 @@ const Aq = {
|
|
|
51557
51565
|
}
|
|
51558
51566
|
};
|
|
51559
51567
|
Ie.add(Aq);
|
|
51560
|
-
class
|
|
51568
|
+
class Wc {
|
|
51561
51569
|
constructor() {
|
|
51562
51570
|
this.info = [], this.common = [], this.page = [], this.char = [], this.kerning = [], this.distanceField = [];
|
|
51563
51571
|
}
|
|
@@ -51595,7 +51603,7 @@ class ac {
|
|
|
51595
51603
|
}
|
|
51596
51604
|
i[a].push(l);
|
|
51597
51605
|
}
|
|
51598
|
-
const s = new
|
|
51606
|
+
const s = new Wc();
|
|
51599
51607
|
return i.info.forEach((r) => s.info.push({
|
|
51600
51608
|
face: r.face,
|
|
51601
51609
|
size: parseInt(r.size, 10)
|
|
@@ -51640,7 +51648,7 @@ class Lf {
|
|
|
51640
51648
|
* @returns - Data to use for BitmapFont
|
|
51641
51649
|
*/
|
|
51642
51650
|
static parse(e) {
|
|
51643
|
-
const t = new
|
|
51651
|
+
const t = new Wc(), i = e.getElementsByTagName("info"), s = e.getElementsByTagName("common"), r = e.getElementsByTagName("page"), a = e.getElementsByTagName("char"), o = e.getElementsByTagName("kerning"), l = e.getElementsByTagName("distanceField");
|
|
51644
51652
|
for (let c = 0; c < i.length; c++)
|
|
51645
51653
|
t.info.push({
|
|
51646
51654
|
face: i[c].getAttribute("face"),
|
|
@@ -51701,15 +51709,15 @@ class Cf {
|
|
|
51701
51709
|
return Lf.parse(be.ADAPTER.parseXML(e));
|
|
51702
51710
|
}
|
|
51703
51711
|
}
|
|
51704
|
-
const
|
|
51712
|
+
const Ud = [
|
|
51705
51713
|
ac,
|
|
51706
51714
|
Lf,
|
|
51707
51715
|
Cf
|
|
51708
51716
|
];
|
|
51709
51717
|
function Rq(n) {
|
|
51710
|
-
for (let e = 0; e <
|
|
51711
|
-
if (
|
|
51712
|
-
return
|
|
51718
|
+
for (let e = 0; e < Ud.length; e++)
|
|
51719
|
+
if (Ud[e].test(n))
|
|
51720
|
+
return Ud[e];
|
|
51713
51721
|
return null;
|
|
51714
51722
|
}
|
|
51715
51723
|
function Kq(n, e, t, i, s, r) {
|
|
@@ -51726,7 +51734,7 @@ function Kq(n, e, t, i, s, r) {
|
|
|
51726
51734
|
for (let y = 1; y < m; ++y)
|
|
51727
51735
|
p.push(y / m);
|
|
51728
51736
|
}
|
|
51729
|
-
if (u.unshift(a[0]), p.unshift(0), u.push(a[a.length - 1]), p.push(1), t.fillGradientType ===
|
|
51737
|
+
if (u.unshift(a[0]), p.unshift(0), u.push(a[a.length - 1]), p.push(1), t.fillGradientType === hu.LINEAR_VERTICAL) {
|
|
51730
51738
|
o = e.createLinearGradient(d / 2, c, d / 2, h + c);
|
|
51731
51739
|
let m = 0;
|
|
51732
51740
|
const y = (r.fontProperties.fontSize + t.strokeThickness) / h;
|
|
@@ -51852,7 +51860,7 @@ const Cs = class Sn {
|
|
|
51852
51860
|
*/
|
|
51853
51861
|
static install(e, t, i) {
|
|
51854
51862
|
let s;
|
|
51855
|
-
if (e instanceof
|
|
51863
|
+
if (e instanceof Wc)
|
|
51856
51864
|
s = e;
|
|
51857
51865
|
else {
|
|
51858
51866
|
const a = Rq(e);
|
|
@@ -51921,7 +51929,7 @@ const Cs = class Sn {
|
|
|
51921
51929
|
textureWidth: o,
|
|
51922
51930
|
textureHeight: l,
|
|
51923
51931
|
...c
|
|
51924
|
-
} = Object.assign({}, Sn.defaultOptions, i), d = qq(s), h = t instanceof Ns ? t : new Ns(t), u = o, p = new
|
|
51932
|
+
} = Object.assign({}, Sn.defaultOptions, i), d = qq(s), h = t instanceof Ns ? t : new Ns(t), u = o, p = new Wc();
|
|
51925
51933
|
p.info[0] = {
|
|
51926
51934
|
face: h.fontFamily,
|
|
51927
51935
|
size: h.fontSize
|
|
@@ -52675,7 +52683,7 @@ Tf.defaultOptions = {
|
|
|
52675
52683
|
/** Word wrap width */
|
|
52676
52684
|
wordWrapWidth: 100
|
|
52677
52685
|
};
|
|
52678
|
-
let
|
|
52686
|
+
let Qd = Tf;
|
|
52679
52687
|
const jh = class Ma extends Rr {
|
|
52680
52688
|
/**
|
|
52681
52689
|
* @param {string} [text] - Text contents
|
|
@@ -52836,7 +52844,7 @@ const jh = class Ma extends Rr {
|
|
|
52836
52844
|
return this._style;
|
|
52837
52845
|
}
|
|
52838
52846
|
set style(e) {
|
|
52839
|
-
this._style !== e && (e = e || {}, e instanceof
|
|
52847
|
+
this._style !== e && (e = e || {}, e instanceof Qd ? (this.ownsStyle = !1, this._style = e) : e instanceof Ns ? (console.warn("[HTMLText] Cloning TextStyle, if this is not what you want, use HTMLTextStyle"), this.ownsStyle = !0, this._style = Qd.from(e)) : (this.ownsStyle = !0, this._style = new Qd(e)), this.localStyleID = -1, this.dirty = !0);
|
|
52840
52848
|
}
|
|
52841
52849
|
/**
|
|
52842
52850
|
* Contents of text. This can be HTML text and include tags.
|
|
@@ -53020,7 +53028,7 @@ var Yq = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
53020
53028
|
}).call(Yq);
|
|
53021
53029
|
})(LL);
|
|
53022
53030
|
const ab = LL.exports;
|
|
53023
|
-
function
|
|
53031
|
+
function cu(n, e) {
|
|
53024
53032
|
if (n) {
|
|
53025
53033
|
if (typeof n == "function")
|
|
53026
53034
|
return n;
|
|
@@ -53036,7 +53044,7 @@ const Dq = {
|
|
|
53036
53044
|
};
|
|
53037
53045
|
class jq extends Vi {
|
|
53038
53046
|
constructor(e, t = {}) {
|
|
53039
|
-
super(e), $(this, "options"), $(this, "startX"), $(this, "startY"), $(this, "deltaX"), $(this, "deltaY"), $(this, "keepCenter"), $(this, "startWidth", null), $(this, "startHeight", null), $(this, "deltaWidth", null), $(this, "deltaHeight", null), $(this, "width", null), $(this, "height", null), $(this, "time", 0), this.options = Object.assign({}, Dq, t), this.options.ease =
|
|
53047
|
+
super(e), $(this, "options"), $(this, "startX"), $(this, "startY"), $(this, "deltaX"), $(this, "deltaY"), $(this, "keepCenter"), $(this, "startWidth", null), $(this, "startHeight", null), $(this, "deltaWidth", null), $(this, "deltaHeight", null), $(this, "width", null), $(this, "height", null), $(this, "time", 0), this.options = Object.assign({}, Dq, t), this.options.ease = cu(this.options.ease), this.setupPosition(), this.setupZoom(), this.time = 0;
|
|
53040
53048
|
}
|
|
53041
53049
|
setupPosition() {
|
|
53042
53050
|
typeof this.options.position < "u" ? (this.startX = this.parent.center.x, this.startY = this.parent.center.y, this.deltaX = this.options.position.x - this.parent.center.x, this.deltaY = this.options.position.y - this.parent.center.y, this.keepCenter = !1) : this.keepCenter = !0;
|
|
@@ -53094,7 +53102,7 @@ const Fq = {
|
|
|
53094
53102
|
};
|
|
53095
53103
|
class Bq extends Vi {
|
|
53096
53104
|
constructor(e, t = {}) {
|
|
53097
|
-
super(e), $(this, "options"), $(this, "left"), $(this, "top"), $(this, "right"), $(this, "bottom"), $(this, "underflowX"), $(this, "underflowY"), $(this, "ease"), $(this, "toX"), $(this, "toY"), this.options = Object.assign({}, Fq, t), this.ease =
|
|
53105
|
+
super(e), $(this, "options"), $(this, "left"), $(this, "top"), $(this, "right"), $(this, "bottom"), $(this, "underflowX"), $(this, "underflowY"), $(this, "ease"), $(this, "toX"), $(this, "toY"), this.options = Object.assign({}, Fq, t), this.ease = cu(this.options.ease, "easeInOutSine"), this.options.sides ? this.options.sides === "all" ? this.top = this.bottom = this.left = this.right = !0 : this.options.sides === "horizontal" ? (this.right = this.left = !0, this.top = this.bottom = !1) : this.options.sides === "vertical" ? (this.left = this.right = !1, this.top = this.bottom = !0) : (this.top = this.options.sides.indexOf("top") !== -1, this.bottom = this.options.sides.indexOf("bottom") !== -1, this.left = this.options.sides.indexOf("left") !== -1, this.right = this.options.sides.indexOf("right") !== -1) : this.left = this.top = this.right = this.bottom = !1;
|
|
53098
53106
|
const i = this.options.underflow.toLowerCase();
|
|
53099
53107
|
i === "center" ? (this.underflowX = 0, this.underflowY = 0) : (this.underflowX = i.indexOf("left") !== -1 ? -1 : i.indexOf("right") !== -1 ? 1 : 0, this.underflowY = i.indexOf("top") !== -1 ? -1 : i.indexOf("bottom") !== -1 ? 1 : 0), this.reset();
|
|
53100
53108
|
}
|
|
@@ -53700,7 +53708,7 @@ const hX = {
|
|
|
53700
53708
|
};
|
|
53701
53709
|
class cX extends Vi {
|
|
53702
53710
|
constructor(e, t, i, s = {}) {
|
|
53703
|
-
super(e), $(this, "options"), $(this, "ease"), $(this, "x"), $(this, "y"), $(this, "percent"), $(this, "snapping"), $(this, "deltaX"), $(this, "deltaY"), $(this, "startX"), $(this, "startY"), this.options = Object.assign({}, hX, s), this.ease =
|
|
53711
|
+
super(e), $(this, "options"), $(this, "ease"), $(this, "x"), $(this, "y"), $(this, "percent"), $(this, "snapping"), $(this, "deltaX"), $(this, "deltaY"), $(this, "startX"), $(this, "startY"), this.options = Object.assign({}, hX, s), this.ease = cu(s.ease, "easeInOutSine"), this.x = t, this.y = i, this.options.forceStart && this.snapStart();
|
|
53704
53712
|
}
|
|
53705
53713
|
snapStart() {
|
|
53706
53714
|
this.percent = 0, this.snapping = { time: 0 };
|
|
@@ -53754,7 +53762,7 @@ const uX = {
|
|
|
53754
53762
|
};
|
|
53755
53763
|
class dX extends Vi {
|
|
53756
53764
|
constructor(e, t = {}) {
|
|
53757
|
-
super(e), $(this, "options"), $(this, "ease"), $(this, "xScale"), $(this, "yScale"), $(this, "xIndependent"), $(this, "yIndependent"), $(this, "snapping"), this.options = Object.assign({}, uX, t), this.ease =
|
|
53765
|
+
super(e), $(this, "options"), $(this, "ease"), $(this, "xScale"), $(this, "yScale"), $(this, "xIndependent"), $(this, "yIndependent"), $(this, "snapping"), this.options = Object.assign({}, uX, t), this.ease = cu(this.options.ease), this.xIndependent = !1, this.yIndependent = !1, this.xScale = 0, this.yScale = 0, this.options.width > 0 && (this.xScale = e.screenWidth / this.options.width, this.xIndependent = !0), this.options.height > 0 && (this.yScale = e.screenHeight / this.options.height, this.yIndependent = !0), this.xScale = this.xIndependent ? this.xScale : this.yScale, this.yScale = this.yIndependent ? this.yScale : this.xScale, this.options.time === 0 ? (e.container.scale.x = this.xScale, e.container.scale.y = this.yScale, this.options.removeOnComplete && this.parent.plugins.remove("snap-zoom")) : t.forceStart && this.createSnapping();
|
|
53758
53766
|
}
|
|
53759
53767
|
createSnapping() {
|
|
53760
53768
|
const e = this.parent.worldScreenWidth, t = this.parent.worldScreenHeight, i = this.parent.screenWidth / this.xScale, s = this.parent.screenHeight / this.yScale;
|
|
@@ -54327,7 +54335,7 @@ var xX = Object.defineProperty, SX = Object.getOwnPropertyDescriptor, CL = (n, e
|
|
|
54327
54335
|
(a = n[r]) && (s = (i ? a(e, t, s) : a(s)) || s);
|
|
54328
54336
|
return i && s && xX(e, t, s), s;
|
|
54329
54337
|
};
|
|
54330
|
-
let
|
|
54338
|
+
let Nc = class extends Ka {
|
|
54331
54339
|
constructor() {
|
|
54332
54340
|
super(), this.app = new US({
|
|
54333
54341
|
backgroundAlpha: 0,
|
|
@@ -54383,7 +54391,7 @@ let Wc = class extends Ka {
|
|
|
54383
54391
|
`;
|
|
54384
54392
|
}
|
|
54385
54393
|
};
|
|
54386
|
-
|
|
54394
|
+
Nc.styles = Lx`
|
|
54387
54395
|
:host {
|
|
54388
54396
|
width: 100%;
|
|
54389
54397
|
height: 100%;
|
|
@@ -54409,12 +54417,12 @@ Wc.styles = Lx`
|
|
|
54409
54417
|
`;
|
|
54410
54418
|
CL([
|
|
54411
54419
|
Ax(".cropper-container")
|
|
54412
|
-
],
|
|
54413
|
-
|
|
54420
|
+
], Nc.prototype, "container", 2);
|
|
54421
|
+
Nc = CL([
|
|
54414
54422
|
Ex("image-cropper")
|
|
54415
|
-
],
|
|
54423
|
+
], Nc);
|
|
54416
54424
|
export {
|
|
54417
|
-
|
|
54425
|
+
Nc as Cropper,
|
|
54418
54426
|
io as DeviceLines,
|
|
54419
54427
|
WX as Line,
|
|
54420
54428
|
bx as SGLBLoader,
|