@needle-tools/engine 3.16.1-beta → 3.16.2-beta
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/CHANGELOG.md +4 -0
- package/dist/needle-engine.js +616 -605
- package/dist/needle-engine.light.js +638 -627
- package/dist/needle-engine.light.min.js +34 -34
- package/dist/needle-engine.light.umd.cjs +37 -37
- package/dist/needle-engine.min.js +35 -35
- package/dist/needle-engine.umd.cjs +38 -38
- package/lib/engine/engine_types.d.ts +1 -0
- package/lib/engine/engine_types.js.map +1 -1
- package/lib/engine-components/Camera.d.ts +3 -0
- package/lib/engine-components/Camera.js +10 -0
- package/lib/engine-components/Camera.js.map +1 -1
- package/lib/engine-components/CameraUtils.js +1 -1
- package/lib/engine-components/CameraUtils.js.map +1 -1
- package/lib/engine-components/Renderer.js +2 -1
- package/lib/engine-components/Renderer.js.map +1 -1
- package/package.json +1 -1
- package/src/engine/engine_types.ts +1 -0
- package/src/engine-components/Camera.ts +9 -0
- package/src/engine-components/CameraUtils.ts +1 -1
- package/src/engine-components/Renderer.ts +2 -1
|
@@ -321,7 +321,7 @@ function Tz() {
|
|
|
321
321
|
return window.location.hostname.includes("glitch.me");
|
|
322
322
|
}
|
|
323
323
|
var ir = /* @__PURE__ */ ((n) => (n.ContextRegistered = "ContextRegistered", n.ContextCreationStart = "ContextCreationStart", n.ContextCreated = "ContextCreated", n.ContextDestroyed = "ContextDestroyed", n.MissingCamera = "MissingCamera", n.ContextClearing = "ContextClearing", n.ContextCleared = "ContextCleared", n))(ir || {});
|
|
324
|
-
class
|
|
324
|
+
class Qi {
|
|
325
325
|
/** The currently active (rendering) Needle Engine context */
|
|
326
326
|
static get Current() {
|
|
327
327
|
return globalThis["NeedleEngine.Context.Current"];
|
|
@@ -374,7 +374,7 @@ class Vi {
|
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
376
|
/** All currently registered Needle Engine contexts. Do not modify */
|
|
377
|
-
u(
|
|
377
|
+
u(Qi, "Registered", []), u(Qi, "_callbacks", {});
|
|
378
378
|
const hI = re("debugdebug");
|
|
379
379
|
let Ld = !1;
|
|
380
380
|
re("noerrors") && (Ld = !0);
|
|
@@ -420,7 +420,7 @@ function Rz(n) {
|
|
|
420
420
|
function wc(n, e, t, i) {
|
|
421
421
|
if (Ld)
|
|
422
422
|
return;
|
|
423
|
-
const s =
|
|
423
|
+
const s = Qi.Current, r = (s == null ? void 0 : s.domElement) ?? document.querySelector("needle-engine");
|
|
424
424
|
if (r) {
|
|
425
425
|
if (Array.isArray(e)) {
|
|
426
426
|
let o = "";
|
|
@@ -547,7 +547,7 @@ function kz(n, e) {
|
|
|
547
547
|
* Copyright 2010-2023 Three.js Authors
|
|
548
548
|
* SPDX-License-Identifier: MIT
|
|
549
549
|
*/
|
|
550
|
-
const Wl = "154", Th = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, Ih = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, Bk = 0, wS = 1, Dk = 2, Oz = 3, Lz = 0, DE = 1, kE = 2, ca = 3, Es = 0, hn = 1, xi = 2, Fz = 2,
|
|
550
|
+
const Wl = "154", Th = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, Ih = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, Bk = 0, wS = 1, Dk = 2, Oz = 3, Lz = 0, DE = 1, kE = 2, ca = 3, Es = 0, hn = 1, xi = 2, Fz = 2, ji = 0, El = 1, Xd = 2, SS = 3, CS = 4, kk = 5, kh = 100, Ok = 101, Lk = 102, ES = 103, MS = 104, Fk = 200, Uk = 201, Nk = 202, zk = 203, OE = 204, LE = 205, Gk = 206, Hk = 207, Vk = 208, Qk = 209, Wk = 210, FE = 0, N0 = 1, Lg = 2, Yd = 3, Kd = 4, z0 = 5, G0 = 6, bm = 7, _m = 0, jk = 1, qk = 2, Vs = 0, Fg = 1, UE = 2, Xk = 3, NE = 4, Yk = 5, H0 = 300, Dl = 301, kl = 302, vo = 303, Jd = 304, df = 306, bo = 1e3, jn = 1001, nu = 1002, Ht = 1003, Zd = 1004, Uz = 1004, Yh = 1005, Nz = 1005, Ft = 1006, xm = 1007, zz = 1007, _o = 1008, Gz = 1008, pi = 1009, Kk = 1010, Jk = 1011, V0 = 1012, zE = 1013, xa = 1014, $i = 1015, bn = 1016, GE = 1017, HE = 1018, Sc = 1020, Zk = 1021, Ci = 1023, Q0 = 1024, $k = 1025, Ml = 1026, Ol = 1027, Ac = 1028, VE = 1029, Nh = 1030, QE = 1031, WE = 1033, eg = 33776, ny = 33777, sy = 33778, tg = 33779, Gy = 35840, TS = 35841, Hy = 35842, IS = 35843, jE = 36196, Vy = 37492, Qy = 37496, Wy = 37808, RS = 37809, PS = 37810, BS = 37811, DS = 37812, kS = 37813, OS = 37814, LS = 37815, FS = 37816, US = 37817, NS = 37818, zS = 37819, GS = 37820, HS = 37821, ig = 36492, eO = 36283, VS = 36284, QS = 36285, WS = 36286, Ug = 2200, qE = 2201, tO = 2202, Ll = 2300, Ra = 2301, ry = 2302, zh = 2400, Gh = 2401, Ng = 2402, W0 = 2500, XE = 2501, iO = 0, YE = 1, jy = 2, wm = 3e3, Ea = 3001, cs = 3200, j0 = 3201, jl = 0, nO = 1, ar = "", Ze = "srgb", un = "srgb-linear", KE = "display-p3", sO = 0, ng = 7680, rO = 7681, oO = 7682, aO = 7683, cO = 34055, lO = 34056, hO = 5386, jS = 512, uO = 513, dO = 514, fO = 515, pO = 516, gO = 517, mO = 518, JE = 519, AO = 512, vO = 513, yO = 514, bO = 515, _O = 516, xO = 517, wO = 518, SO = 519, zg = 35044, _s = 35048, Hz = 35040, Vz = 35045, Qz = 35049, Wz = 35041, jz = 35046, qz = 35050, Xz = 35042, Yz = "100", qy = "300 es", Xy = 1035, wa = 2e3, Gg = 2001;
|
|
551
551
|
class Un {
|
|
552
552
|
addEventListener(e, t) {
|
|
553
553
|
this._listeners === void 0 && (this._listeners = {});
|
|
@@ -1185,7 +1185,7 @@ const pG = {
|
|
|
1185
1185
|
[un]: (n) => n,
|
|
1186
1186
|
[Ze]: (n) => n.convertLinearToSRGB(),
|
|
1187
1187
|
[KE]: fG
|
|
1188
|
-
},
|
|
1188
|
+
}, eo = {
|
|
1189
1189
|
enabled: !0,
|
|
1190
1190
|
get legacyMode() {
|
|
1191
1191
|
return console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."), !this.enabled;
|
|
@@ -1291,7 +1291,7 @@ function ix(n) {
|
|
|
1291
1291
|
}
|
|
1292
1292
|
let AG = 0;
|
|
1293
1293
|
class kt extends Un {
|
|
1294
|
-
constructor(e = kt.DEFAULT_IMAGE, t = kt.DEFAULT_MAPPING, i = jn, s = jn, r = Ft, o =
|
|
1294
|
+
constructor(e = kt.DEFAULT_IMAGE, t = kt.DEFAULT_MAPPING, i = jn, s = jn, r = Ft, o = _o, a = Ci, c = pi, l = kt.DEFAULT_ANISOTROPY, h = ar) {
|
|
1295
1295
|
super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: AG++ }), this.uuid = Rr(), this.name = "", this.source = new vc(e), this.mipmaps = [], this.mapping = t, this.channel = 0, this.wrapS = i, this.wrapT = s, this.magFilter = r, this.minFilter = o, this.anisotropy = l, this.format = a, this.internalFormat = null, this.type = c, this.offset = new te(0, 0), this.repeat = new te(1, 1), this.center = new te(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new Dt(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, typeof h == "string" ? this.colorSpace = h : (rg("THREE.Texture: Property .encoding has been replaced by .colorSpace."), this.colorSpace = h === Ea ? Ze : ar), this.userData = {}, this.version = 0, this.onUpdate = null, this.isRenderTargetTexture = !1, this.needsPMREMUpdate = !1;
|
|
1296
1296
|
}
|
|
1297
1297
|
get image() {
|
|
@@ -1351,7 +1351,7 @@ class kt extends Un {
|
|
|
1351
1351
|
return e;
|
|
1352
1352
|
if (e.applyMatrix3(this.matrix), e.x < 0 || e.x > 1)
|
|
1353
1353
|
switch (this.wrapS) {
|
|
1354
|
-
case
|
|
1354
|
+
case bo:
|
|
1355
1355
|
e.x = e.x - Math.floor(e.x);
|
|
1356
1356
|
break;
|
|
1357
1357
|
case jn:
|
|
@@ -1363,7 +1363,7 @@ class kt extends Un {
|
|
|
1363
1363
|
}
|
|
1364
1364
|
if (e.y < 0 || e.y > 1)
|
|
1365
1365
|
switch (this.wrapT) {
|
|
1366
|
-
case
|
|
1366
|
+
case bo:
|
|
1367
1367
|
e.y = e.y - Math.floor(e.y);
|
|
1368
1368
|
break;
|
|
1369
1369
|
case jn:
|
|
@@ -3676,19 +3676,19 @@ class _e {
|
|
|
3676
3676
|
return this.r = e, this.g = e, this.b = e, this;
|
|
3677
3677
|
}
|
|
3678
3678
|
setHex(e, t = Ze) {
|
|
3679
|
-
return e = Math.floor(e), this.r = (e >> 16 & 255) / 255, this.g = (e >> 8 & 255) / 255, this.b = (e & 255) / 255,
|
|
3679
|
+
return e = Math.floor(e), this.r = (e >> 16 & 255) / 255, this.g = (e >> 8 & 255) / 255, this.b = (e & 255) / 255, eo.toWorkingColorSpace(this, t), this;
|
|
3680
3680
|
}
|
|
3681
|
-
setRGB(e, t, i, s =
|
|
3682
|
-
return this.r = e, this.g = t, this.b = i,
|
|
3681
|
+
setRGB(e, t, i, s = eo.workingColorSpace) {
|
|
3682
|
+
return this.r = e, this.g = t, this.b = i, eo.toWorkingColorSpace(this, s), this;
|
|
3683
3683
|
}
|
|
3684
|
-
setHSL(e, t, i, s =
|
|
3684
|
+
setHSL(e, t, i, s = eo.workingColorSpace) {
|
|
3685
3685
|
if (e = ZE(e, 1), t = Zi(t, 0, 1), i = Zi(i, 0, 1), t === 0)
|
|
3686
3686
|
this.r = this.g = this.b = i;
|
|
3687
3687
|
else {
|
|
3688
3688
|
const r = i <= 0.5 ? i * (1 + t) : i + t - i * t, o = 2 * i - r;
|
|
3689
3689
|
this.r = fx(o, r, e + 1 / 3), this.g = fx(o, r, e), this.b = fx(o, r, e - 1 / 3);
|
|
3690
3690
|
}
|
|
3691
|
-
return
|
|
3691
|
+
return eo.toWorkingColorSpace(this, s), this;
|
|
3692
3692
|
}
|
|
3693
3693
|
setStyle(e, t = Ze) {
|
|
3694
3694
|
function i(r) {
|
|
@@ -3768,13 +3768,13 @@ class _e {
|
|
|
3768
3768
|
return this.copyLinearToSRGB(this), this;
|
|
3769
3769
|
}
|
|
3770
3770
|
getHex(e = Ze) {
|
|
3771
|
-
return
|
|
3771
|
+
return eo.fromWorkingColorSpace(ms.copy(this), e), Math.round(Zi(ms.r * 255, 0, 255)) * 65536 + Math.round(Zi(ms.g * 255, 0, 255)) * 256 + Math.round(Zi(ms.b * 255, 0, 255));
|
|
3772
3772
|
}
|
|
3773
3773
|
getHexString(e = Ze) {
|
|
3774
3774
|
return ("000000" + this.getHex(e).toString(16)).slice(-6);
|
|
3775
3775
|
}
|
|
3776
|
-
getHSL(e, t =
|
|
3777
|
-
|
|
3776
|
+
getHSL(e, t = eo.workingColorSpace) {
|
|
3777
|
+
eo.fromWorkingColorSpace(ms.copy(this), t);
|
|
3778
3778
|
const i = ms.r, s = ms.g, r = ms.b, o = Math.max(i, s, r), a = Math.min(i, s, r);
|
|
3779
3779
|
let c, l;
|
|
3780
3780
|
const h = (a + o) / 2;
|
|
@@ -3797,11 +3797,11 @@ class _e {
|
|
|
3797
3797
|
}
|
|
3798
3798
|
return e.h = c, e.s = l, e.l = h, e;
|
|
3799
3799
|
}
|
|
3800
|
-
getRGB(e, t =
|
|
3801
|
-
return
|
|
3800
|
+
getRGB(e, t = eo.workingColorSpace) {
|
|
3801
|
+
return eo.fromWorkingColorSpace(ms.copy(this), t), e.r = ms.r, e.g = ms.g, e.b = ms.b, e;
|
|
3802
3802
|
}
|
|
3803
3803
|
getStyle(e = Ze) {
|
|
3804
|
-
|
|
3804
|
+
eo.fromWorkingColorSpace(ms.copy(this), e);
|
|
3805
3805
|
const t = ms.r, i = ms.g, s = ms.b;
|
|
3806
3806
|
return e !== Ze ? `color(${e} ${t.toFixed(3)} ${i.toFixed(3)} ${s.toFixed(3)})` : `rgb(${Math.round(t * 255)},${Math.round(i * 255)},${Math.round(s * 255)})`;
|
|
3807
3807
|
}
|
|
@@ -4114,7 +4114,7 @@ class OG extends ct {
|
|
|
4114
4114
|
}
|
|
4115
4115
|
}
|
|
4116
4116
|
let LG = 0;
|
|
4117
|
-
const
|
|
4117
|
+
const Xr = /* @__PURE__ */ new Re(), px = /* @__PURE__ */ new Te(), Hu = /* @__PURE__ */ new S(), vr = /* @__PURE__ */ new Bn(), ep = /* @__PURE__ */ new Bn(), zn = /* @__PURE__ */ new S();
|
|
4118
4118
|
class vt extends Un {
|
|
4119
4119
|
constructor() {
|
|
4120
4120
|
super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: LG++ }), this.uuid = Rr(), 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 = {};
|
|
@@ -4162,22 +4162,22 @@ class vt extends Un {
|
|
|
4162
4162
|
return s !== void 0 && (s.transformDirection(e), s.needsUpdate = !0), this.boundingBox !== null && this.computeBoundingBox(), this.boundingSphere !== null && this.computeBoundingSphere(), this;
|
|
4163
4163
|
}
|
|
4164
4164
|
applyQuaternion(e) {
|
|
4165
|
-
return
|
|
4165
|
+
return Xr.makeRotationFromQuaternion(e), this.applyMatrix4(Xr), this;
|
|
4166
4166
|
}
|
|
4167
4167
|
rotateX(e) {
|
|
4168
|
-
return
|
|
4168
|
+
return Xr.makeRotationX(e), this.applyMatrix4(Xr), this;
|
|
4169
4169
|
}
|
|
4170
4170
|
rotateY(e) {
|
|
4171
|
-
return
|
|
4171
|
+
return Xr.makeRotationY(e), this.applyMatrix4(Xr), this;
|
|
4172
4172
|
}
|
|
4173
4173
|
rotateZ(e) {
|
|
4174
|
-
return
|
|
4174
|
+
return Xr.makeRotationZ(e), this.applyMatrix4(Xr), this;
|
|
4175
4175
|
}
|
|
4176
4176
|
translate(e, t, i) {
|
|
4177
|
-
return
|
|
4177
|
+
return Xr.makeTranslation(e, t, i), this.applyMatrix4(Xr), this;
|
|
4178
4178
|
}
|
|
4179
4179
|
scale(e, t, i) {
|
|
4180
|
-
return
|
|
4180
|
+
return Xr.makeScale(e, t, i), this.applyMatrix4(Xr), this;
|
|
4181
4181
|
}
|
|
4182
4182
|
lookAt(e) {
|
|
4183
4183
|
return px.lookAt(e), px.updateMatrix(), this.applyMatrix4(px.matrix), this;
|
|
@@ -4899,11 +4899,11 @@ class K0 extends ai {
|
|
|
4899
4899
|
vertexShader: i.vertexShader,
|
|
4900
4900
|
fragmentShader: i.fragmentShader,
|
|
4901
4901
|
side: hn,
|
|
4902
|
-
blending:
|
|
4902
|
+
blending: ji
|
|
4903
4903
|
});
|
|
4904
4904
|
r.uniforms.tEquirect.value = t;
|
|
4905
4905
|
const o = new ye(s, r), a = t.minFilter;
|
|
4906
|
-
return t.minFilter ===
|
|
4906
|
+
return t.minFilter === _o && (t.minFilter = Ft), new i1(1, 10, this).update(e, o), t.minFilter = a, o.geometry.dispose(), o.material.dispose(), this;
|
|
4907
4907
|
}
|
|
4908
4908
|
clear(e, t, i, s) {
|
|
4909
4909
|
const r = e.getRenderTarget();
|
|
@@ -4913,7 +4913,7 @@ class K0 extends ai {
|
|
|
4913
4913
|
}
|
|
4914
4914
|
}
|
|
4915
4915
|
const mx = /* @__PURE__ */ new S(), GG = /* @__PURE__ */ new S(), HG = /* @__PURE__ */ new Dt();
|
|
4916
|
-
class
|
|
4916
|
+
class go {
|
|
4917
4917
|
constructor(e = new S(1, 0, 0), t = 0) {
|
|
4918
4918
|
this.isPlane = !0, this.normal = e, this.constant = t;
|
|
4919
4919
|
}
|
|
@@ -4985,7 +4985,7 @@ class po {
|
|
|
4985
4985
|
}
|
|
4986
4986
|
const fh = /* @__PURE__ */ new qs(), zA = /* @__PURE__ */ new S();
|
|
4987
4987
|
class J0 {
|
|
4988
|
-
constructor(e = new
|
|
4988
|
+
constructor(e = new go(), t = new go(), i = new go(), s = new go(), r = new go(), o = new go()) {
|
|
4989
4989
|
this.planes = [e, t, i, s, r, o];
|
|
4990
4990
|
}
|
|
4991
4991
|
set(e, t, i, s, r, o) {
|
|
@@ -9432,7 +9432,7 @@ function SQ(n, e, t) {
|
|
|
9432
9432
|
function CQ(n) {
|
|
9433
9433
|
const e = this;
|
|
9434
9434
|
let t = null, i = 0, s = !1, r = !1;
|
|
9435
|
-
const o = new
|
|
9435
|
+
const o = new go(), a = new Dt(), c = { value: null, needsUpdate: !1 };
|
|
9436
9436
|
this.uniform = c, this.numPlanes = 0, this.numIntersection = 0, this.init = function(d, f) {
|
|
9437
9437
|
const p = d.length !== 0 || f || // enable state of previous frame - the clipping code has to
|
|
9438
9438
|
// run another frame in order to reset the state:
|
|
@@ -9478,12 +9478,12 @@ function CQ(n) {
|
|
|
9478
9478
|
function EQ(n) {
|
|
9479
9479
|
let e = /* @__PURE__ */ new WeakMap();
|
|
9480
9480
|
function t(o, a) {
|
|
9481
|
-
return a ===
|
|
9481
|
+
return a === vo ? o.mapping = Dl : a === Jd && (o.mapping = kl), o;
|
|
9482
9482
|
}
|
|
9483
9483
|
function i(o) {
|
|
9484
9484
|
if (o && o.isTexture && o.isRenderTargetTexture === !1) {
|
|
9485
9485
|
const a = o.mapping;
|
|
9486
|
-
if (a ===
|
|
9486
|
+
if (a === vo || a === Jd)
|
|
9487
9487
|
if (e.has(o)) {
|
|
9488
9488
|
const c = e.get(o).texture;
|
|
9489
9489
|
return t(c, o.mapping);
|
|
@@ -9870,7 +9870,7 @@ function MQ(n, e, t) {
|
|
|
9870
9870
|
}
|
|
9871
9871
|
`
|
|
9872
9872
|
),
|
|
9873
|
-
blending:
|
|
9873
|
+
blending: ji,
|
|
9874
9874
|
depthTest: !1,
|
|
9875
9875
|
depthWrite: !1
|
|
9876
9876
|
});
|
|
@@ -9905,7 +9905,7 @@ function DI() {
|
|
|
9905
9905
|
}
|
|
9906
9906
|
`
|
|
9907
9907
|
),
|
|
9908
|
-
blending:
|
|
9908
|
+
blending: ji,
|
|
9909
9909
|
depthTest: !1,
|
|
9910
9910
|
depthWrite: !1
|
|
9911
9911
|
});
|
|
@@ -9938,7 +9938,7 @@ function kI() {
|
|
|
9938
9938
|
}
|
|
9939
9939
|
`
|
|
9940
9940
|
),
|
|
9941
|
-
blending:
|
|
9941
|
+
blending: ji,
|
|
9942
9942
|
depthTest: !1,
|
|
9943
9943
|
depthWrite: !1
|
|
9944
9944
|
});
|
|
@@ -10008,7 +10008,7 @@ function TQ(n) {
|
|
|
10008
10008
|
let e = /* @__PURE__ */ new WeakMap(), t = null;
|
|
10009
10009
|
function i(a) {
|
|
10010
10010
|
if (a && a.isTexture) {
|
|
10011
|
-
const c = a.mapping, l = c ===
|
|
10011
|
+
const c = a.mapping, l = c === vo || c === Jd, h = c === Dl || c === kl;
|
|
10012
10012
|
if (l || h)
|
|
10013
10013
|
if (a.isRenderTargetTexture && a.needsPMREMUpdate === !0) {
|
|
10014
10014
|
a.needsPMREMUpdate = !1;
|
|
@@ -11362,8 +11362,8 @@ function Y4(n, e, t, i, s, r, o) {
|
|
|
11362
11362
|
Y.morphAttributes.position !== void 0 && (ie = 1), Y.morphAttributes.normal !== void 0 && (ie = 2), Y.morphAttributes.color !== void 0 && (ie = 3);
|
|
11363
11363
|
let Ae, ge, Ce, Ee;
|
|
11364
11364
|
if (ee) {
|
|
11365
|
-
const
|
|
11366
|
-
Ae =
|
|
11365
|
+
const Wr = Sr[ee];
|
|
11366
|
+
Ae = Wr.vertexShader, ge = Wr.fragmentShader;
|
|
11367
11367
|
} else
|
|
11368
11368
|
Ae = C.vertexShader, ge = C.fragmentShader, c.update(C), Ce = c.getVertexShaderID(C), Ee = c.getFragmentShaderID(C);
|
|
11369
11369
|
const Ge = n.getRenderTarget(), Qe = H.isInstancedMesh === !0, lt = !!C.map, Et = !!C.matcap, tt = !!L, W = !!C.aoMap, Fe = !!C.lightMap, me = !!C.bumpMap, Le = !!C.normalMap, we = !!C.displacementMap, $e = !!C.emissiveMap, qe = !!C.metalnessMap, Ye = !!C.roughnessMap, gt = C.anisotropy > 0, Mt = C.clearcoat > 0, Yt = C.iridescence > 0, z = C.sheen > 0, O = C.transmission > 0, he = gt && !!C.anisotropyMap, Pe = Mt && !!C.clearcoatMap, Be = Mt && !!C.clearcoatNormalMap, Ue = Mt && !!C.clearcoatRoughnessMap, q = Yt && !!C.iridescenceMap, de = Yt && !!C.iridescenceThicknessMap, ce = z && !!C.sheenColorMap, je = z && !!C.sheenRoughnessMap, Xe = !!C.specularMap, Ve = !!C.specularColorMap, Oe = !!C.specularIntensityMap, st = O && !!C.transmissionMap, At = O && !!C.thicknessMap, yt = !!C.gradientMap, Z = !!C.alphaMap, ue = C.alphaTest > 0, fe = !!C.alphaHash, We = !!C.extensions, Ke = !!Y.attributes.uv1, ii = !!Y.attributes.uv2, Ei = !!Y.attributes.uv3;
|
|
@@ -11983,7 +11983,7 @@ function a5(n, e, t) {
|
|
|
11983
11983
|
if (v.enabled === !1 || v.autoUpdate === !1 && v.needsUpdate === !1 || E.length === 0)
|
|
11984
11984
|
return;
|
|
11985
11985
|
const R = n.getRenderTarget(), C = n.getActiveCubeFace(), T = n.getActiveMipmapLevel(), k = n.state;
|
|
11986
|
-
k.setBlending(
|
|
11986
|
+
k.setBlending(ji), k.buffers.color.setClear(1, 1, 1, 1), k.buffers.depth.setTest(!0), k.setScissorTest(!1);
|
|
11987
11987
|
const K = m !== ca && this.type === ca, H = m === ca && this.type !== ca;
|
|
11988
11988
|
for (let V = 0, Y = E.length; V < Y; V++) {
|
|
11989
11989
|
const N = E[V], L = N.shadow;
|
|
@@ -12075,8 +12075,8 @@ function c5(n, e, t) {
|
|
|
12075
12075
|
setLocked: function(Ke) {
|
|
12076
12076
|
Z = Ke;
|
|
12077
12077
|
},
|
|
12078
|
-
setClear: function(Ke, ii, Ei, fn,
|
|
12079
|
-
|
|
12078
|
+
setClear: function(Ke, ii, Ei, fn, Wr) {
|
|
12079
|
+
Wr === !0 && (Ke *= fn, ii *= fn, Ei *= fn), ue.set(Ke, ii, Ei, fn), We.equals(ue) === !1 && (n.clearColor(Ke, ii, Ei, fn), We.copy(ue));
|
|
12080
12080
|
},
|
|
12081
12081
|
reset: function() {
|
|
12082
12082
|
Z = !1, fe = null, We.set(-1, 0, 0, 0);
|
|
@@ -12137,7 +12137,7 @@ function c5(n, e, t) {
|
|
|
12137
12137
|
};
|
|
12138
12138
|
}
|
|
12139
12139
|
function o() {
|
|
12140
|
-
let Z = !1, ue = null, fe = null, We = null, Ke = null, ii = null, Ei = null, fn = null,
|
|
12140
|
+
let Z = !1, ue = null, fe = null, We = null, Ke = null, ii = null, Ei = null, fn = null, Wr = null;
|
|
12141
12141
|
return {
|
|
12142
12142
|
setTest: function(Di) {
|
|
12143
12143
|
Z || (Di ? Ge(n.STENCIL_TEST) : Qe(n.STENCIL_TEST));
|
|
@@ -12145,20 +12145,20 @@ function c5(n, e, t) {
|
|
|
12145
12145
|
setMask: function(Di) {
|
|
12146
12146
|
ue !== Di && !Z && (n.stencilMask(Di), ue = Di);
|
|
12147
12147
|
},
|
|
12148
|
-
setFunc: function(Di,
|
|
12149
|
-
(fe !== Di || We !==
|
|
12148
|
+
setFunc: function(Di, jr, Kn) {
|
|
12149
|
+
(fe !== Di || We !== jr || Ke !== Kn) && (n.stencilFunc(Di, jr, Kn), fe = Di, We = jr, Ke = Kn);
|
|
12150
12150
|
},
|
|
12151
|
-
setOp: function(Di,
|
|
12152
|
-
(ii !== Di || Ei !==
|
|
12151
|
+
setOp: function(Di, jr, Kn) {
|
|
12152
|
+
(ii !== Di || Ei !== jr || fn !== Kn) && (n.stencilOp(Di, jr, Kn), ii = Di, Ei = jr, fn = Kn);
|
|
12153
12153
|
},
|
|
12154
12154
|
setLocked: function(Di) {
|
|
12155
12155
|
Z = Di;
|
|
12156
12156
|
},
|
|
12157
12157
|
setClear: function(Di) {
|
|
12158
|
-
|
|
12158
|
+
Wr !== Di && (n.clearStencil(Di), Wr = Di);
|
|
12159
12159
|
},
|
|
12160
12160
|
reset: function() {
|
|
12161
|
-
Z = !1, ue = null, fe = null, We = null, Ke = null, ii = null, Ei = null, fn = null,
|
|
12161
|
+
Z = !1, ue = null, fe = null, We = null, Ke = null, ii = null, Ei = null, fn = null, Wr = null;
|
|
12162
12162
|
}
|
|
12163
12163
|
};
|
|
12164
12164
|
}
|
|
@@ -12178,7 +12178,7 @@ function c5(n, e, t) {
|
|
|
12178
12178
|
return ii;
|
|
12179
12179
|
}
|
|
12180
12180
|
const Ee = {};
|
|
12181
|
-
Ee[n.TEXTURE_2D] = Ce(n.TEXTURE_2D, n.TEXTURE_2D, 1), Ee[n.TEXTURE_CUBE_MAP] = Ce(n.TEXTURE_CUBE_MAP, n.TEXTURE_CUBE_MAP_POSITIVE_X, 6), i && (Ee[n.TEXTURE_2D_ARRAY] = Ce(n.TEXTURE_2D_ARRAY, n.TEXTURE_2D_ARRAY, 1, 1), Ee[n.TEXTURE_3D] = Ce(n.TEXTURE_3D, n.TEXTURE_3D, 1, 1)), a.setClear(0, 0, 0, 1), c.setClear(1), l.setClear(0), Ge(n.DEPTH_TEST), c.setFunc(Yd), we(!1), $e(wS), Ge(n.CULL_FACE), me(
|
|
12181
|
+
Ee[n.TEXTURE_2D] = Ce(n.TEXTURE_2D, n.TEXTURE_2D, 1), Ee[n.TEXTURE_CUBE_MAP] = Ce(n.TEXTURE_CUBE_MAP, n.TEXTURE_CUBE_MAP_POSITIVE_X, 6), i && (Ee[n.TEXTURE_2D_ARRAY] = Ce(n.TEXTURE_2D_ARRAY, n.TEXTURE_2D_ARRAY, 1, 1), Ee[n.TEXTURE_3D] = Ce(n.TEXTURE_3D, n.TEXTURE_3D, 1, 1)), a.setClear(0, 0, 0, 1), c.setClear(1), l.setClear(0), Ge(n.DEPTH_TEST), c.setFunc(Yd), we(!1), $e(wS), Ge(n.CULL_FACE), me(ji);
|
|
12182
12182
|
function Ge(Z) {
|
|
12183
12183
|
f[Z] !== !0 && (n.enable(Z), f[Z] = !0);
|
|
12184
12184
|
}
|
|
@@ -12232,7 +12232,7 @@ function c5(n, e, t) {
|
|
|
12232
12232
|
[Hk]: n.ONE_MINUS_DST_ALPHA
|
|
12233
12233
|
};
|
|
12234
12234
|
function me(Z, ue, fe, We, Ke, ii, Ei, fn) {
|
|
12235
|
-
if (Z ===
|
|
12235
|
+
if (Z === ji) {
|
|
12236
12236
|
m === !0 && (Qe(n.BLEND), m = !1);
|
|
12237
12237
|
return;
|
|
12238
12238
|
}
|
|
@@ -12283,7 +12283,7 @@ function c5(n, e, t) {
|
|
|
12283
12283
|
function Le(Z, ue) {
|
|
12284
12284
|
Z.side === xi ? Qe(n.CULL_FACE) : Ge(n.CULL_FACE);
|
|
12285
12285
|
let fe = Z.side === hn;
|
|
12286
|
-
ue && (fe = !fe), we(fe), Z.blending === El && Z.transparent === !1 ? me(
|
|
12286
|
+
ue && (fe = !fe), we(fe), Z.blending === El && Z.transparent === !1 ? me(ji) : me(Z.blending, Z.blendEquation, Z.blendSrc, Z.blendDst, Z.blendEquationAlpha, Z.blendSrcAlpha, Z.blendDstAlpha, Z.premultipliedAlpha), c.setFunc(Z.depthFunc), c.setTest(Z.depthTest), c.setMask(Z.depthWrite), a.setMask(Z.colorWrite);
|
|
12287
12287
|
const We = Z.stencilWrite;
|
|
12288
12288
|
l.setTest(We), We && (l.setMask(Z.stencilWriteMask), l.setFunc(Z.stencilFunc, Z.stencilRef, Z.stencilFuncMask), l.setOp(Z.stencilFail, Z.stencilZFail, Z.stencilZPass)), Ye(Z.polygonOffset, Z.polygonOffsetFactor, Z.polygonOffsetUnits), Z.alphaToCoverage === !0 ? Ge(n.SAMPLE_ALPHA_TO_COVERAGE) : Qe(n.SAMPLE_ALPHA_TO_COVERAGE);
|
|
12289
12289
|
}
|
|
@@ -12592,7 +12592,7 @@ function l5(n, e, t, i, s, r, o) {
|
|
|
12592
12592
|
t.bindTexture(n.TEXTURE_CUBE_MAP, he.__webglTexture, n.TEXTURE0 + O);
|
|
12593
12593
|
}
|
|
12594
12594
|
const ge = {
|
|
12595
|
-
[
|
|
12595
|
+
[bo]: n.REPEAT,
|
|
12596
12596
|
[jn]: n.CLAMP_TO_EDGE,
|
|
12597
12597
|
[nu]: n.MIRRORED_REPEAT
|
|
12598
12598
|
}, Ce = {
|
|
@@ -12601,7 +12601,7 @@ function l5(n, e, t, i, s, r, o) {
|
|
|
12601
12601
|
[Yh]: n.NEAREST_MIPMAP_LINEAR,
|
|
12602
12602
|
[Ft]: n.LINEAR,
|
|
12603
12603
|
[xm]: n.LINEAR_MIPMAP_NEAREST,
|
|
12604
|
-
[
|
|
12604
|
+
[_o]: n.LINEAR_MIPMAP_LINEAR
|
|
12605
12605
|
}, Ee = {
|
|
12606
12606
|
[AO]: n.NEVER,
|
|
12607
12607
|
[SO]: n.ALWAYS,
|
|
@@ -12615,7 +12615,7 @@ function l5(n, e, t, i, s, r, o) {
|
|
|
12615
12615
|
function Ge(z, O, he) {
|
|
12616
12616
|
if (he ? (n.texParameteri(z, n.TEXTURE_WRAP_S, ge[O.wrapS]), n.texParameteri(z, n.TEXTURE_WRAP_T, ge[O.wrapT]), (z === n.TEXTURE_3D || z === n.TEXTURE_2D_ARRAY) && n.texParameteri(z, n.TEXTURE_WRAP_R, ge[O.wrapR]), n.texParameteri(z, n.TEXTURE_MAG_FILTER, Ce[O.magFilter]), n.texParameteri(z, n.TEXTURE_MIN_FILTER, Ce[O.minFilter])) : (n.texParameteri(z, n.TEXTURE_WRAP_S, n.CLAMP_TO_EDGE), n.texParameteri(z, n.TEXTURE_WRAP_T, n.CLAMP_TO_EDGE), (z === n.TEXTURE_3D || z === n.TEXTURE_2D_ARRAY) && n.texParameteri(z, n.TEXTURE_WRAP_R, n.CLAMP_TO_EDGE), (O.wrapS !== jn || O.wrapT !== jn) && console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."), n.texParameteri(z, n.TEXTURE_MAG_FILTER, T(O.magFilter)), n.texParameteri(z, n.TEXTURE_MIN_FILTER, T(O.minFilter)), O.minFilter !== Ht && O.minFilter !== Ft && console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")), O.compareFunction && (n.texParameteri(z, n.TEXTURE_COMPARE_MODE, n.COMPARE_REF_TO_TEXTURE), n.texParameteri(z, n.TEXTURE_COMPARE_FUNC, Ee[O.compareFunction])), e.has("EXT_texture_filter_anisotropic") === !0) {
|
|
12617
12617
|
const Pe = e.get("EXT_texture_filter_anisotropic");
|
|
12618
|
-
if (O.magFilter === Ht || O.minFilter !== Yh && O.minFilter !==
|
|
12618
|
+
if (O.magFilter === Ht || O.minFilter !== Yh && O.minFilter !== _o || O.type === $i && e.has("OES_texture_float_linear") === !1 || a === !1 && O.type === bn && e.has("OES_texture_half_float_linear") === !1)
|
|
12619
12619
|
return;
|
|
12620
12620
|
(O.anisotropy > 1 || i.get(O).__currentAnisotropy) && (n.texParameterf(z, Pe.TEXTURE_MAX_ANISOTROPY_EXT, Math.min(O.anisotropy, s.getMaxAnisotropy())), i.get(O).__currentAnisotropy = O.anisotropy);
|
|
12621
12621
|
}
|
|
@@ -13680,7 +13680,7 @@ class du {
|
|
|
13680
13680
|
}, this.clearStencil = function() {
|
|
13681
13681
|
this.clear(!1, !1, !0);
|
|
13682
13682
|
}, this.dispose = function() {
|
|
13683
|
-
t.removeEventListener("webglcontextlost", ue, !1), t.removeEventListener("webglcontextrestored", fe, !1), t.removeEventListener("webglcontextcreationerror", We, !1), Be.dispose(), Ue.dispose(), qe.dispose(), gt.dispose(), Mt.dispose(), O.dispose(), st.dispose(), At.dispose(), he.dispose(), Z.dispose(), Z.removeEventListener("sessionstart", Di), Z.removeEventListener("sessionend",
|
|
13683
|
+
t.removeEventListener("webglcontextlost", ue, !1), t.removeEventListener("webglcontextrestored", fe, !1), t.removeEventListener("webglcontextcreationerror", We, !1), Be.dispose(), Ue.dispose(), qe.dispose(), gt.dispose(), Mt.dispose(), O.dispose(), st.dispose(), At.dispose(), he.dispose(), Z.dispose(), Z.removeEventListener("sessionstart", Di), Z.removeEventListener("sessionend", jr), Ee && (Ee.dispose(), Ee = null), Kn.stop();
|
|
13684
13684
|
};
|
|
13685
13685
|
function ue(w) {
|
|
13686
13686
|
w.preventDefault(), console.log("THREE.WebGLRenderer: Context Lost."), _ = !0;
|
|
@@ -13753,19 +13753,19 @@ class du {
|
|
|
13753
13753
|
}), b.pop(), v = null;
|
|
13754
13754
|
};
|
|
13755
13755
|
let fn = null;
|
|
13756
|
-
function
|
|
13756
|
+
function Wr(w) {
|
|
13757
13757
|
fn && fn(w);
|
|
13758
13758
|
}
|
|
13759
13759
|
function Di() {
|
|
13760
13760
|
Kn.stop();
|
|
13761
13761
|
}
|
|
13762
|
-
function
|
|
13762
|
+
function jr() {
|
|
13763
13763
|
Kn.start();
|
|
13764
13764
|
}
|
|
13765
13765
|
const Kn = new RO();
|
|
13766
|
-
Kn.setAnimationLoop(
|
|
13766
|
+
Kn.setAnimationLoop(Wr), typeof self < "u" && Kn.setContext(self), this.setAnimationLoop = function(w) {
|
|
13767
13767
|
fn = w, Z.setAnimationLoop(w), w === null ? Kn.stop() : Kn.start();
|
|
13768
|
-
}, Z.addEventListener("sessionstart", Di), Z.addEventListener("sessionend",
|
|
13768
|
+
}, Z.addEventListener("sessionstart", Di), Z.addEventListener("sessionend", jr), this.render = function(w, B) {
|
|
13769
13769
|
if (B !== void 0 && B.isCamera !== !0) {
|
|
13770
13770
|
console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");
|
|
13771
13771
|
return;
|
|
@@ -13825,7 +13825,7 @@ class du {
|
|
|
13825
13825
|
Ee === null && (Ee = new ai(1, 1, {
|
|
13826
13826
|
generateMipmaps: !0,
|
|
13827
13827
|
type: me.has("EXT_color_buffer_half_float") ? bn : pi,
|
|
13828
|
-
minFilter:
|
|
13828
|
+
minFilter: _o,
|
|
13829
13829
|
samples: Q ? 4 : 0
|
|
13830
13830
|
})), y.getDrawingBufferSize(Qe), Q ? Ee.setSize(Qe.x, Qe.y) : Ee.setSize(Yy(Qe.x), Yy(Qe.y));
|
|
13831
13831
|
const oe = y.getRenderTarget();
|
|
@@ -13876,8 +13876,8 @@ class du {
|
|
|
13876
13876
|
B.isScene !== !0 && (B = Et), Ye.resetTextureUnits();
|
|
13877
13877
|
const oe = B.fog, pe = U.isMeshStandardMaterial ? B.environment : null, ve = I === null ? y.outputColorSpace : I.isXRRenderTarget === !0 ? I.texture.colorSpace : un, le = (U.isMeshStandardMaterial ? Mt : gt).get(U.envMap || pe), be = U.vertexColors === !0 && !!F.attributes.color && F.attributes.color.itemSize === 4, De = !!F.attributes.tangent && (!!U.normalMap || U.anisotropy > 0), ke = !!F.morphAttributes.position, Je = !!F.morphAttributes.normal, ut = !!F.morphAttributes.color, et = U.toneMapped ? y.toneMapping : Vs, at = F.morphAttributes.position || F.morphAttributes.normal || F.morphAttributes.color, ft = at !== void 0 ? at.length : 0, pt = qe.get(U), Mi = v.state.lights;
|
|
13878
13878
|
if (ge === !0 && (Ce === !0 || w !== C)) {
|
|
13879
|
-
const
|
|
13880
|
-
q.setState(U, w,
|
|
13879
|
+
const Hi = w === C && U.id === R;
|
|
13880
|
+
q.setState(U, w, Hi);
|
|
13881
13881
|
}
|
|
13882
13882
|
let ci = !1;
|
|
13883
13883
|
U.version === pt.__version ? (pt.needsLights && pt.lightsStateVersion !== Mi.state.version || pt.outputColorSpace !== ve || Q.isInstancedMesh && pt.instancing === !1 || !Q.isInstancedMesh && pt.instancing === !0 || Q.isSkinnedMesh && pt.skinning === !1 || !Q.isSkinnedMesh && pt.skinning === !0 || pt.envMap !== le || U.fog === !0 && pt.fog !== oe || pt.numClippingPlanes !== void 0 && (pt.numClippingPlanes !== q.numPlanes || pt.numIntersection !== q.numIntersection) || pt.vertexAlphas !== be || pt.vertexTangents !== De || pt.morphTargets !== ke || pt.morphNormals !== Je || pt.morphColors !== ut || pt.toneMapping !== et || Le.isWebGL2 === !0 && pt.morphTargetsCount !== ft) && (ci = !0) : (ci = !0, pt.__version = U.version);
|
|
@@ -13891,8 +13891,8 @@ class du {
|
|
|
13891
13891
|
"logDepthBufFC",
|
|
13892
13892
|
2 / (Math.log(w.far + 1) / Math.LN2)
|
|
13893
13893
|
), C !== w && (C = w, Ti = !0, ps = !0), U.isShaderMaterial || U.isMeshPhongMaterial || U.isMeshToonMaterial || U.isMeshStandardMaterial || U.envMap) {
|
|
13894
|
-
const
|
|
13895
|
-
|
|
13894
|
+
const Hi = ni.map.cameraPosition;
|
|
13895
|
+
Hi !== void 0 && Hi.setValue(
|
|
13896
13896
|
W,
|
|
13897
13897
|
lt.setFromMatrixPosition(w.matrixWorld)
|
|
13898
13898
|
);
|
|
@@ -13901,15 +13901,15 @@ class du {
|
|
|
13901
13901
|
}
|
|
13902
13902
|
if (Q.isSkinnedMesh) {
|
|
13903
13903
|
ni.setOptional(W, Q, "bindMatrix"), ni.setOptional(W, Q, "bindMatrixInverse");
|
|
13904
|
-
const
|
|
13905
|
-
|
|
13904
|
+
const Hi = Q.skeleton;
|
|
13905
|
+
Hi && (Le.floatVertexTextures ? (Hi.boneTexture === null && Hi.computeBoneTexture(), ni.setValue(W, "boneTexture", Hi.boneTexture, Ye), ni.setValue(W, "boneTextureSize", Hi.boneTextureSize)) : console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."));
|
|
13906
13906
|
}
|
|
13907
13907
|
const di = F.morphAttributes;
|
|
13908
13908
|
if ((di.position !== void 0 || di.normal !== void 0 || di.color !== void 0 && Le.isWebGL2 === !0) && je.update(Q, F, ri), (Ti || pt.receiveShadow !== Q.receiveShadow) && (pt.receiveShadow = Q.receiveShadow, ni.setValue(W, "receiveShadow", Q.receiveShadow)), U.isMeshGouraudMaterial && U.envMap !== null && (jt.envMap.value = le, jt.flipEnvMap.value = le.isCubeTexture && le.isRenderTargetTexture === !1 ? -1 : 1), Ti && (ni.setValue(W, "toneMappingExposure", y.toneMappingExposure), pt.needsLights && K_(jt, ps), oe && U.fog === !0 && Pe.refreshFogUniforms(jt, oe), Pe.refreshMaterialUniforms(jt, U, L, N, Ee), oy.upload(W, pt.uniformsList, jt, Ye)), U.isShaderMaterial && U.uniformsNeedUpdate === !0 && (oy.upload(W, pt.uniformsList, jt, Ye), U.uniformsNeedUpdate = !1), U.isSpriteMaterial && ni.setValue(W, "center", Q.center), ni.setValue(W, "modelViewMatrix", Q.modelViewMatrix), ni.setValue(W, "normalMatrix", Q.normalMatrix), ni.setValue(W, "modelMatrix", Q.matrixWorld), U.isShaderMaterial || U.isRawShaderMaterial) {
|
|
13909
|
-
const
|
|
13910
|
-
for (let Ha = 0,
|
|
13909
|
+
const Hi = U.uniformsGroups;
|
|
13910
|
+
for (let Ha = 0, qr = Hi.length; Ha < qr; Ha++)
|
|
13911
13911
|
if (Le.isWebGL2) {
|
|
13912
|
-
const lh =
|
|
13912
|
+
const lh = Hi[Ha];
|
|
13913
13913
|
At.update(lh, ri), At.bind(lh, ri);
|
|
13914
13914
|
} else
|
|
13915
13915
|
console.warn("THREE.WebGLRenderer: Uniform Buffer Objects can only be used with WebGL 2.");
|
|
@@ -14438,7 +14438,7 @@ class Em extends Te {
|
|
|
14438
14438
|
super(), this.isBone = !0, this.type = "Bone";
|
|
14439
14439
|
}
|
|
14440
14440
|
}
|
|
14441
|
-
class
|
|
14441
|
+
class yo extends kt {
|
|
14442
14442
|
constructor(e = null, t = 1, i = 1, s, r, o, a, c, l = Ht, h = Ht, d, f) {
|
|
14443
14443
|
super(null, o, a, c, l, h, s, r, d, f), this.isDataTexture = !0, this.image = { data: e, width: t, height: i }, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
|
|
14444
14444
|
}
|
|
@@ -14491,7 +14491,7 @@ class gf {
|
|
|
14491
14491
|
e = CO(e), e = Math.max(e, 4);
|
|
14492
14492
|
const t = new Float32Array(e * e * 4);
|
|
14493
14493
|
t.set(this.boneMatrices);
|
|
14494
|
-
const i = new
|
|
14494
|
+
const i = new yo(t, e, e, Ci, $i);
|
|
14495
14495
|
return i.needsUpdate = !0, this.boneMatrices = t, this.boneTexture = i, this.boneTextureSize = e, this;
|
|
14496
14496
|
}
|
|
14497
14497
|
getBoneByName(e) {
|
|
@@ -15992,7 +15992,7 @@ function su(n, e) {
|
|
|
15992
15992
|
e || (e = n);
|
|
15993
15993
|
let t = n, i;
|
|
15994
15994
|
do
|
|
15995
|
-
if (i = !1, !t.steiner && (hb(t, t.next) ||
|
|
15995
|
+
if (i = !1, !t.steiner && (hb(t, t.next) || Wi(t.prev, t, t.next) === 0)) {
|
|
15996
15996
|
if (jg(t), t = e = t.prev, t === t.next)
|
|
15997
15997
|
break;
|
|
15998
15998
|
i = !0;
|
|
@@ -16019,12 +16019,12 @@ function Qg(n, e, t, i, s, r, o) {
|
|
|
16019
16019
|
}
|
|
16020
16020
|
function M5(n) {
|
|
16021
16021
|
const e = n.prev, t = n, i = n.next;
|
|
16022
|
-
if (
|
|
16022
|
+
if (Wi(e, t, i) >= 0)
|
|
16023
16023
|
return !1;
|
|
16024
16024
|
const s = e.x, r = t.x, o = i.x, a = e.y, c = t.y, l = i.y, h = s < r ? s < o ? s : o : r < o ? r : o, d = a < c ? a < l ? a : l : c < l ? c : l, f = s > r ? s > o ? s : o : r > o ? r : o, p = a > c ? a > l ? a : l : c > l ? c : l;
|
|
16025
16025
|
let g = i.next;
|
|
16026
16026
|
for (; g !== e; ) {
|
|
16027
|
-
if (g.x >= h && g.x <= f && g.y >= d && g.y <= p && Sd(s, a, r, c, o, l, g.x, g.y) &&
|
|
16027
|
+
if (g.x >= h && g.x <= f && g.y >= d && g.y <= p && Sd(s, a, r, c, o, l, g.x, g.y) && Wi(g.prev, g, g.next) >= 0)
|
|
16028
16028
|
return !1;
|
|
16029
16029
|
g = g.next;
|
|
16030
16030
|
}
|
|
@@ -16032,22 +16032,22 @@ function M5(n) {
|
|
|
16032
16032
|
}
|
|
16033
16033
|
function T5(n, e, t, i) {
|
|
16034
16034
|
const s = n.prev, r = n, o = n.next;
|
|
16035
|
-
if (
|
|
16035
|
+
if (Wi(s, r, o) >= 0)
|
|
16036
16036
|
return !1;
|
|
16037
16037
|
const a = s.x, c = r.x, l = o.x, h = s.y, d = r.y, f = o.y, p = a < c ? a < l ? a : l : c < l ? c : l, g = h < d ? h < f ? h : f : d < f ? d : f, A = a > c ? a > l ? a : l : c > l ? c : l, v = h > d ? h > f ? h : f : d > f ? d : f, m = JS(p, g, e, t, i), b = JS(A, v, e, t, i);
|
|
16038
16038
|
let y = n.prevZ, _ = n.nextZ;
|
|
16039
16039
|
for (; y && y.z >= m && _ && _.z <= b; ) {
|
|
16040
|
-
if (y.x >= p && y.x <= A && y.y >= g && y.y <= v && y !== s && y !== o && Sd(a, h, c, d, l, f, y.x, y.y) &&
|
|
16040
|
+
if (y.x >= p && y.x <= A && y.y >= g && y.y <= v && y !== s && y !== o && Sd(a, h, c, d, l, f, y.x, y.y) && Wi(y.prev, y, y.next) >= 0 || (y = y.prevZ, _.x >= p && _.x <= A && _.y >= g && _.y <= v && _ !== s && _ !== o && Sd(a, h, c, d, l, f, _.x, _.y) && Wi(_.prev, _, _.next) >= 0))
|
|
16041
16041
|
return !1;
|
|
16042
16042
|
_ = _.nextZ;
|
|
16043
16043
|
}
|
|
16044
16044
|
for (; y && y.z >= m; ) {
|
|
16045
|
-
if (y.x >= p && y.x <= A && y.y >= g && y.y <= v && y !== s && y !== o && Sd(a, h, c, d, l, f, y.x, y.y) &&
|
|
16045
|
+
if (y.x >= p && y.x <= A && y.y >= g && y.y <= v && y !== s && y !== o && Sd(a, h, c, d, l, f, y.x, y.y) && Wi(y.prev, y, y.next) >= 0)
|
|
16046
16046
|
return !1;
|
|
16047
16047
|
y = y.prevZ;
|
|
16048
16048
|
}
|
|
16049
16049
|
for (; _ && _.z <= b; ) {
|
|
16050
|
-
if (_.x >= p && _.x <= A && _.y >= g && _.y <= v && _ !== s && _ !== o && Sd(a, h, c, d, l, f, _.x, _.y) &&
|
|
16050
|
+
if (_.x >= p && _.x <= A && _.y >= g && _.y <= v && _ !== s && _ !== o && Sd(a, h, c, d, l, f, _.x, _.y) && Wi(_.prev, _, _.next) >= 0)
|
|
16051
16051
|
return !1;
|
|
16052
16052
|
_ = _.nextZ;
|
|
16053
16053
|
}
|
|
@@ -16117,7 +16117,7 @@ function k5(n, e) {
|
|
|
16117
16117
|
return s;
|
|
16118
16118
|
}
|
|
16119
16119
|
function O5(n, e) {
|
|
16120
|
-
return
|
|
16120
|
+
return Wi(n.prev, n, e.prev) < 0 && Wi(e.next, n, n.next) < 0;
|
|
16121
16121
|
}
|
|
16122
16122
|
function L5(n, e, t, i) {
|
|
16123
16123
|
let s = n;
|
|
@@ -16156,17 +16156,17 @@ function Sd(n, e, t, i, s, r, o, a) {
|
|
|
16156
16156
|
function N5(n, e) {
|
|
16157
16157
|
return n.next.i !== e.i && n.prev.i !== e.i && !z5(n, e) && // dones't intersect other edges
|
|
16158
16158
|
(Wg(n, e) && Wg(e, n) && G5(n, e) && // locally visible
|
|
16159
|
-
(
|
|
16160
|
-
hb(n, e) &&
|
|
16159
|
+
(Wi(n.prev, n, e.prev) || Wi(n, e.prev, e)) || // does not create opposite-facing sectors
|
|
16160
|
+
hb(n, e) && Wi(n.prev, n, n.next) > 0 && Wi(e.prev, e, e.next) > 0);
|
|
16161
16161
|
}
|
|
16162
|
-
function
|
|
16162
|
+
function Wi(n, e, t) {
|
|
16163
16163
|
return (e.y - n.y) * (t.x - e.x) - (e.x - n.x) * (t.y - e.y);
|
|
16164
16164
|
}
|
|
16165
16165
|
function hb(n, e) {
|
|
16166
16166
|
return n.x === e.x && n.y === e.y;
|
|
16167
16167
|
}
|
|
16168
16168
|
function KO(n, e, t, i) {
|
|
16169
|
-
const s = iv(
|
|
16169
|
+
const s = iv(Wi(n, e, t)), r = iv(Wi(n, e, i)), o = iv(Wi(t, i, n)), a = iv(Wi(t, i, e));
|
|
16170
16170
|
return !!(s !== r && o !== a || s === 0 && tv(n, t, e) || r === 0 && tv(n, i, e) || o === 0 && tv(t, n, i) || a === 0 && tv(t, e, i));
|
|
16171
16171
|
}
|
|
16172
16172
|
function tv(n, e, t) {
|
|
@@ -16185,7 +16185,7 @@ function z5(n, e) {
|
|
|
16185
16185
|
return !1;
|
|
16186
16186
|
}
|
|
16187
16187
|
function Wg(n, e) {
|
|
16188
|
-
return
|
|
16188
|
+
return Wi(n.prev, n, n.next) < 0 ? Wi(n, e, n.next) >= 0 && Wi(n, n.prev, e) >= 0 : Wi(n, e, n.prev) < 0 || Wi(n, n.next, e) < 0;
|
|
16189
16189
|
}
|
|
16190
16190
|
function G5(n, e) {
|
|
16191
16191
|
let t = n, i = !1;
|
|
@@ -16739,7 +16739,7 @@ function W5(n, e) {
|
|
|
16739
16739
|
e.shapes.push(n.uuid);
|
|
16740
16740
|
return e;
|
|
16741
16741
|
}
|
|
16742
|
-
class
|
|
16742
|
+
class wo extends vt {
|
|
16743
16743
|
constructor(e = 1, t = 32, i = 16, s = 0, r = Math.PI * 2, o = 0, a = Math.PI) {
|
|
16744
16744
|
super(), this.type = "SphereGeometry", this.parameters = {
|
|
16745
16745
|
radius: e,
|
|
@@ -16774,7 +16774,7 @@ class xo extends vt {
|
|
|
16774
16774
|
return super.copy(e), this.parameters = Object.assign({}, e.parameters), this;
|
|
16775
16775
|
}
|
|
16776
16776
|
static fromJSON(e) {
|
|
16777
|
-
return new
|
|
16777
|
+
return new wo(e.radius, e.widthSegments, e.heightSegments, e.phiStart, e.phiLength, e.thetaStart, e.thetaLength);
|
|
16778
16778
|
}
|
|
16779
16779
|
}
|
|
16780
16780
|
class fb extends ql {
|
|
@@ -16993,7 +16993,7 @@ var yR = /* @__PURE__ */ Object.freeze({
|
|
|
16993
16993
|
PolyhedronGeometry: ql,
|
|
16994
16994
|
RingGeometry: Im,
|
|
16995
16995
|
ShapeGeometry: db,
|
|
16996
|
-
SphereGeometry:
|
|
16996
|
+
SphereGeometry: wo,
|
|
16997
16997
|
TetrahedronGeometry: fb,
|
|
16998
16998
|
TorusGeometry: fc,
|
|
16999
16999
|
TorusKnotGeometry: pb,
|
|
@@ -17120,7 +17120,7 @@ class nL extends dn {
|
|
|
17120
17120
|
return super.copy(e), this.scale = e.scale, this.dashSize = e.dashSize, this.gapSize = e.gapSize, this;
|
|
17121
17121
|
}
|
|
17122
17122
|
}
|
|
17123
|
-
function
|
|
17123
|
+
function lo(n, e, t) {
|
|
17124
17124
|
return y1(n) ? new n.constructor(n.subarray(e, t !== void 0 ? t : n.length)) : n.slice(e, t);
|
|
17125
17125
|
}
|
|
17126
17126
|
function Vh(n, e, t) {
|
|
@@ -17215,13 +17215,13 @@ function q5(n, e = 0, t = n, i = 30) {
|
|
|
17215
17215
|
let A;
|
|
17216
17216
|
if (r <= a.times[0]) {
|
|
17217
17217
|
const m = h, b = d - h;
|
|
17218
|
-
A =
|
|
17218
|
+
A = lo(a.values, m, b);
|
|
17219
17219
|
} else if (r >= a.times[g]) {
|
|
17220
17220
|
const m = g * d + h, b = m + d - h;
|
|
17221
|
-
A =
|
|
17221
|
+
A = lo(a.values, m, b);
|
|
17222
17222
|
} else {
|
|
17223
17223
|
const m = a.createInterpolant(), b = h, y = d - h;
|
|
17224
|
-
m.evaluate(r), A =
|
|
17224
|
+
m.evaluate(r), A = lo(m.resultBuffer, b, y);
|
|
17225
17225
|
}
|
|
17226
17226
|
c === "quaternion" && new Se().fromArray(A).normalize().conjugate().toArray(A);
|
|
17227
17227
|
const v = l.times.length;
|
|
@@ -17246,7 +17246,7 @@ function q5(n, e = 0, t = n, i = 30) {
|
|
|
17246
17246
|
return n.blendMode = XE, n;
|
|
17247
17247
|
}
|
|
17248
17248
|
const X5 = {
|
|
17249
|
-
arraySlice:
|
|
17249
|
+
arraySlice: lo,
|
|
17250
17250
|
convertArray: Vh,
|
|
17251
17251
|
isTypedArray: y1,
|
|
17252
17252
|
getKeyframeOrder: sL,
|
|
@@ -17490,7 +17490,7 @@ class cr {
|
|
|
17490
17490
|
if (++o, r !== 0 || o !== s) {
|
|
17491
17491
|
r >= o && (o = Math.max(o, 1), r = o - 1);
|
|
17492
17492
|
const a = this.getValueSize();
|
|
17493
|
-
this.times =
|
|
17493
|
+
this.times = lo(i, r, o), this.values = lo(this.values, r * a, o * a);
|
|
17494
17494
|
}
|
|
17495
17495
|
return this;
|
|
17496
17496
|
}
|
|
@@ -17527,7 +17527,7 @@ class cr {
|
|
|
17527
17527
|
// removes equivalent sequential keys as common in morph target sequences
|
|
17528
17528
|
// (0,0,0,0,1,1,1,0,0,0,0,0,0,0) --> (0,0,1,1,0,0)
|
|
17529
17529
|
optimize() {
|
|
17530
|
-
const e =
|
|
17530
|
+
const e = lo(this.times), t = lo(this.values), i = this.getValueSize(), s = this.getInterpolation() === ry, r = e.length - 1;
|
|
17531
17531
|
let o = 1;
|
|
17532
17532
|
for (let a = 1; a < r; ++a) {
|
|
17533
17533
|
let c = !1;
|
|
@@ -17561,10 +17561,10 @@ class cr {
|
|
|
17561
17561
|
t[c + l] = t[a + l];
|
|
17562
17562
|
++o;
|
|
17563
17563
|
}
|
|
17564
|
-
return o !== e.length ? (this.times =
|
|
17564
|
+
return o !== e.length ? (this.times = lo(e, 0, o), this.values = lo(t, 0, o * i)) : (this.times = e, this.values = t), this;
|
|
17565
17565
|
}
|
|
17566
17566
|
clone() {
|
|
17567
|
-
const e =
|
|
17567
|
+
const e = lo(this.times, 0), t = lo(this.values, 0), i = this.constructor, s = new i(this.name, e, t);
|
|
17568
17568
|
return s.createInterpolant = this.createInterpolant, s;
|
|
17569
17569
|
}
|
|
17570
17570
|
}
|
|
@@ -18111,10 +18111,10 @@ class x1 extends hs {
|
|
|
18111
18111
|
super(e);
|
|
18112
18112
|
}
|
|
18113
18113
|
load(e, t, i, s) {
|
|
18114
|
-
const r = this, o = new
|
|
18114
|
+
const r = this, o = new yo(), a = new Dn(this.manager);
|
|
18115
18115
|
return a.setResponseType("arraybuffer"), a.setRequestHeader(this.requestHeader), a.setPath(this.path), a.setWithCredentials(r.withCredentials), a.load(e, function(c) {
|
|
18116
18116
|
const l = r.parse(c);
|
|
18117
|
-
l && (l.image !== void 0 ? o.image = l.image : l.data !== void 0 && (o.image.width = l.width, o.image.height = l.height, o.image.data = l.data), o.wrapS = l.wrapS !== void 0 ? l.wrapS : jn, o.wrapT = l.wrapT !== void 0 ? l.wrapT : jn, o.magFilter = l.magFilter !== void 0 ? l.magFilter : Ft, o.minFilter = l.minFilter !== void 0 ? l.minFilter : Ft, o.anisotropy = l.anisotropy !== void 0 ? l.anisotropy : 1, l.colorSpace !== void 0 ? o.colorSpace = l.colorSpace : l.encoding !== void 0 && (o.encoding = l.encoding), l.flipY !== void 0 && (o.flipY = l.flipY), l.format !== void 0 && (o.format = l.format), l.type !== void 0 && (o.type = l.type), l.mipmaps !== void 0 && (o.mipmaps = l.mipmaps, o.minFilter =
|
|
18117
|
+
l && (l.image !== void 0 ? o.image = l.image : l.data !== void 0 && (o.image.width = l.width, o.image.height = l.height, o.image.data = l.data), o.wrapS = l.wrapS !== void 0 ? l.wrapS : jn, o.wrapT = l.wrapT !== void 0 ? l.wrapT : jn, o.magFilter = l.magFilter !== void 0 ? l.magFilter : Ft, o.minFilter = l.minFilter !== void 0 ? l.minFilter : Ft, o.anisotropy = l.anisotropy !== void 0 ? l.anisotropy : 1, l.colorSpace !== void 0 ? o.colorSpace = l.colorSpace : l.encoding !== void 0 && (o.encoding = l.encoding), l.flipY !== void 0 && (o.flipY = l.flipY), l.format !== void 0 && (o.format = l.format), l.type !== void 0 && (o.type = l.type), l.mipmaps !== void 0 && (o.mipmaps = l.mipmaps, o.minFilter = _o), l.mipmapCount === 1 && (o.minFilter = Ft), l.generateMipmaps !== void 0 && (o.generateMipmaps = l.generateMipmaps), o.needsUpdate = !0, t && t(o, l));
|
|
18118
18118
|
}, i, s), o;
|
|
18119
18119
|
}
|
|
18120
18120
|
}
|
|
@@ -18775,7 +18775,7 @@ class s8 extends hs {
|
|
|
18775
18775
|
const p = [];
|
|
18776
18776
|
for (let g = 0, A = f.length; g < A; g++) {
|
|
18777
18777
|
const v = f[g], m = a(v);
|
|
18778
|
-
m !== null && (m instanceof HTMLImageElement ? p.push(m) : p.push(new
|
|
18778
|
+
m !== null && (m instanceof HTMLImageElement ? p.push(m) : p.push(new yo(m.data, m.width, m.height)));
|
|
18779
18779
|
}
|
|
18780
18780
|
s[d.uuid] = new vc(p);
|
|
18781
18781
|
} else {
|
|
@@ -18808,7 +18808,7 @@ class s8 extends hs {
|
|
|
18808
18808
|
const h = [];
|
|
18809
18809
|
for (let d = 0, f = l.length; d < f; d++) {
|
|
18810
18810
|
const p = l[d], g = await r(p);
|
|
18811
|
-
g !== null && (g instanceof HTMLImageElement ? h.push(g) : h.push(new
|
|
18811
|
+
g !== null && (g instanceof HTMLImageElement ? h.push(g) : h.push(new yo(g.data, g.width, g.height)));
|
|
18812
18812
|
}
|
|
18813
18813
|
i[c.uuid] = new vc(h);
|
|
18814
18814
|
} else {
|
|
@@ -18830,7 +18830,7 @@ class s8 extends hs {
|
|
|
18830
18830
|
a.image === void 0 && console.warn('THREE.ObjectLoader: No "image" specified for', a.uuid), t[a.image] === void 0 && console.warn("THREE.ObjectLoader: Undefined image", a.image);
|
|
18831
18831
|
const c = t[a.image], l = c.data;
|
|
18832
18832
|
let h;
|
|
18833
|
-
Array.isArray(l) ? (h = new Sm(), l.length === 6 && (h.needsUpdate = !0)) : (l && l.data ? h = new
|
|
18833
|
+
Array.isArray(l) ? (h = new Sm(), l.length === 6 && (h.needsUpdate = !0)) : (l && l.data ? h = new yo() : h = new kt(), l && (h.needsUpdate = !0)), h.source = c, h.uuid = a.uuid, a.name !== void 0 && (h.name = a.name), a.mapping !== void 0 && (h.mapping = i(a.mapping, r8)), a.channel !== void 0 && (h.channel = a.channel), a.offset !== void 0 && h.offset.fromArray(a.offset), a.repeat !== void 0 && h.repeat.fromArray(a.repeat), a.center !== void 0 && h.center.fromArray(a.center), a.rotation !== void 0 && (h.rotation = a.rotation), a.wrap !== void 0 && (h.wrapS = i(a.wrap[0], wR), h.wrapT = i(a.wrap[1], wR)), a.format !== void 0 && (h.format = a.format), a.internalFormat !== void 0 && (h.internalFormat = a.internalFormat), a.type !== void 0 && (h.type = a.type), a.colorSpace !== void 0 && (h.colorSpace = a.colorSpace), a.encoding !== void 0 && (h.encoding = a.encoding), a.minFilter !== void 0 && (h.minFilter = i(a.minFilter, SR)), a.magFilter !== void 0 && (h.magFilter = i(a.magFilter, SR)), a.anisotropy !== void 0 && (h.anisotropy = a.anisotropy), a.flipY !== void 0 && (h.flipY = a.flipY), a.generateMipmaps !== void 0 && (h.generateMipmaps = a.generateMipmaps), a.premultiplyAlpha !== void 0 && (h.premultiplyAlpha = a.premultiplyAlpha), a.unpackAlignment !== void 0 && (h.unpackAlignment = a.unpackAlignment), a.compareFunction !== void 0 && (h.compareFunction = a.compareFunction), a.userData !== void 0 && (h.userData = a.userData), s[a.uuid] = h;
|
|
18834
18834
|
}
|
|
18835
18835
|
return s;
|
|
18836
18836
|
}
|
|
@@ -18961,11 +18961,11 @@ const r8 = {
|
|
|
18961
18961
|
UVMapping: H0,
|
|
18962
18962
|
CubeReflectionMapping: Dl,
|
|
18963
18963
|
CubeRefractionMapping: kl,
|
|
18964
|
-
EquirectangularReflectionMapping:
|
|
18964
|
+
EquirectangularReflectionMapping: vo,
|
|
18965
18965
|
EquirectangularRefractionMapping: Jd,
|
|
18966
18966
|
CubeUVReflectionMapping: df
|
|
18967
18967
|
}, wR = {
|
|
18968
|
-
RepeatWrapping:
|
|
18968
|
+
RepeatWrapping: bo,
|
|
18969
18969
|
ClampToEdgeWrapping: jn,
|
|
18970
18970
|
MirroredRepeatWrapping: nu
|
|
18971
18971
|
}, SR = {
|
|
@@ -18974,7 +18974,7 @@ const r8 = {
|
|
|
18974
18974
|
NearestMipmapLinearFilter: Yh,
|
|
18975
18975
|
LinearFilter: Ft,
|
|
18976
18976
|
LinearMipmapNearestFilter: xm,
|
|
18977
|
-
LinearMipmapLinearFilter:
|
|
18977
|
+
LinearMipmapLinearFilter: _o
|
|
18978
18978
|
};
|
|
18979
18979
|
class uL extends hs {
|
|
18980
18980
|
constructor(e) {
|
|
@@ -20693,7 +20693,7 @@ function AL(n) {
|
|
|
20693
20693
|
}
|
|
20694
20694
|
class R8 extends ye {
|
|
20695
20695
|
constructor(e, t, i) {
|
|
20696
|
-
const s = new
|
|
20696
|
+
const s = new wo(t, 4, 2), r = new hi({ wireframe: !0, fog: !1, toneMapped: !1 });
|
|
20697
20697
|
super(s, r), this.light = e, this.color = i, this.type = "PointLightHelper", this.matrix = this.light.matrixWorld, this.matrixAutoUpdate = !1, this.update();
|
|
20698
20698
|
}
|
|
20699
20699
|
dispose() {
|
|
@@ -21132,7 +21132,7 @@ const F8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21132
21132
|
Clock: T1,
|
|
21133
21133
|
Color: _e,
|
|
21134
21134
|
ColorKeyframeTrack: Ab,
|
|
21135
|
-
ColorManagement:
|
|
21135
|
+
ColorManagement: eo,
|
|
21136
21136
|
CompressedArrayTexture: HO,
|
|
21137
21137
|
CompressedTexture: Cc,
|
|
21138
21138
|
CompressedTextureLoader: $5,
|
|
@@ -21158,7 +21158,7 @@ const F8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21158
21158
|
Cylindrical: E8,
|
|
21159
21159
|
Data3DTexture: X0,
|
|
21160
21160
|
DataArrayTexture: q0,
|
|
21161
|
-
DataTexture:
|
|
21161
|
+
DataTexture: yo,
|
|
21162
21162
|
DataTextureLoader: x1,
|
|
21163
21163
|
DataUtils: Hh,
|
|
21164
21164
|
DecrementStencilOp: aO,
|
|
@@ -21183,7 +21183,7 @@ const F8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21183
21183
|
EqualCompare: yO,
|
|
21184
21184
|
EqualDepth: Kd,
|
|
21185
21185
|
EqualStencilFunc: dO,
|
|
21186
|
-
EquirectangularReflectionMapping:
|
|
21186
|
+
EquirectangularReflectionMapping: vo,
|
|
21187
21187
|
EquirectangularRefractionMapping: Jd,
|
|
21188
21188
|
Euler: _n,
|
|
21189
21189
|
EventDispatcher: Un,
|
|
@@ -21260,7 +21260,7 @@ const F8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21260
21260
|
LinearInterpolant: _1,
|
|
21261
21261
|
LinearMipMapLinearFilter: Gz,
|
|
21262
21262
|
LinearMipMapNearestFilter: zz,
|
|
21263
|
-
LinearMipmapLinearFilter:
|
|
21263
|
+
LinearMipmapLinearFilter: _o,
|
|
21264
21264
|
LinearMipmapNearestFilter: xm,
|
|
21265
21265
|
LinearSRGBColorSpace: un,
|
|
21266
21266
|
LinearToneMapping: Fg,
|
|
@@ -21303,7 +21303,7 @@ const F8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21303
21303
|
NeverCompare: AO,
|
|
21304
21304
|
NeverDepth: FE,
|
|
21305
21305
|
NeverStencilFunc: jS,
|
|
21306
|
-
NoBlending:
|
|
21306
|
+
NoBlending: ji,
|
|
21307
21307
|
NoColorSpace: ar,
|
|
21308
21308
|
NoToneMapping: Vs,
|
|
21309
21309
|
NormalAnimationBlendMode: W0,
|
|
@@ -21327,7 +21327,7 @@ const F8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21327
21327
|
PMREMGenerator: XS,
|
|
21328
21328
|
Path: Vg,
|
|
21329
21329
|
PerspectiveCamera: Xt,
|
|
21330
|
-
Plane:
|
|
21330
|
+
Plane: go,
|
|
21331
21331
|
PlaneGeometry: ls,
|
|
21332
21332
|
PlaneHelper: k8,
|
|
21333
21333
|
PointLight: bb,
|
|
@@ -21385,7 +21385,7 @@ const F8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21385
21385
|
RedFormat: Ac,
|
|
21386
21386
|
RedIntegerFormat: VE,
|
|
21387
21387
|
ReinhardToneMapping: UE,
|
|
21388
|
-
RepeatWrapping:
|
|
21388
|
+
RepeatWrapping: bo,
|
|
21389
21389
|
ReplaceStencilOp: rO,
|
|
21390
21390
|
ReverseSubtractEquation: Lk,
|
|
21391
21391
|
RingGeometry: Im,
|
|
@@ -21407,7 +21407,7 @@ const F8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21407
21407
|
SkinnedMesh: fu,
|
|
21408
21408
|
Source: vc,
|
|
21409
21409
|
Sphere: qs,
|
|
21410
|
-
SphereGeometry:
|
|
21410
|
+
SphereGeometry: wo,
|
|
21411
21411
|
Spherical: tC,
|
|
21412
21412
|
SphericalHarmonics3: Cd,
|
|
21413
21413
|
SplineCurve: p1,
|
|
@@ -22081,7 +22081,7 @@ function aW(n, e) {
|
|
|
22081
22081
|
while (!t && (n = Object.getPrototypeOf(n)));
|
|
22082
22082
|
return t;
|
|
22083
22083
|
}
|
|
22084
|
-
const
|
|
22084
|
+
const Yr = re("debuginput");
|
|
22085
22085
|
class Ox {
|
|
22086
22086
|
constructor(e) {
|
|
22087
22087
|
u(this, "key");
|
|
@@ -22167,7 +22167,7 @@ class lW extends EventTarget {
|
|
|
22167
22167
|
if (!(t.changedTouches.length <= 0) && this.canReceiveInput(t) !== !1)
|
|
22168
22168
|
for (let i = 0; i < t.changedTouches.length; i++) {
|
|
22169
22169
|
const s = t.changedTouches[i], r = this.getPointerIndex(s.identifier);
|
|
22170
|
-
|
|
22170
|
+
Yr && Pn(`touch start #${r}, identifier:${s.identifier}`);
|
|
22171
22171
|
const o = { button: r, clientX: s.clientX, clientY: s.clientY, pointerType: "touch", source: t };
|
|
22172
22172
|
this.onDown(o);
|
|
22173
22173
|
}
|
|
@@ -22185,7 +22185,7 @@ class lW extends EventTarget {
|
|
|
22185
22185
|
const s = t.changedTouches[i], r = this.getPointerIndex(s.identifier);
|
|
22186
22186
|
if (!this.isNewEvent(t.timeStamp, r, this._pointerUpTimestamp))
|
|
22187
22187
|
continue;
|
|
22188
|
-
|
|
22188
|
+
Yr && Pn(`touch up #${r}, identifier:${s.identifier}`);
|
|
22189
22189
|
const o = { button: r, clientX: s.clientX, clientY: s.clientY, pointerType: "touch", source: t };
|
|
22190
22190
|
this.onUp(o);
|
|
22191
22191
|
}
|
|
@@ -22423,13 +22423,13 @@ class lW extends EventTarget {
|
|
|
22423
22423
|
return null;
|
|
22424
22424
|
}
|
|
22425
22425
|
createPointerDown(t) {
|
|
22426
|
-
|
|
22426
|
+
Yr && Pn("Create Pointer down"), this.onDown(t);
|
|
22427
22427
|
}
|
|
22428
22428
|
createPointerMove(t) {
|
|
22429
|
-
|
|
22429
|
+
Yr && Pn("Create Pointer move"), this.onMove(t);
|
|
22430
22430
|
}
|
|
22431
22431
|
createPointerUp(t) {
|
|
22432
|
-
|
|
22432
|
+
Yr && Pn("Create Pointer up"), this.onUp(t);
|
|
22433
22433
|
}
|
|
22434
22434
|
convertScreenspaceToRaycastSpace(t) {
|
|
22435
22435
|
t.x = (t.x - this.context.domX) / this.context.domWidth * 2 - 1, t.y = -((t.y - this.context.domY) / this.context.domHeight) * 2 + 1;
|
|
@@ -22451,17 +22451,17 @@ class lW extends EventTarget {
|
|
|
22451
22451
|
if (this.context.isInXR)
|
|
22452
22452
|
return !0;
|
|
22453
22453
|
const i = this.context.domElement.getBoundingClientRect(), s = t.clientX, r = t.clientY, o = s >= i.x && s <= i.right && r >= i.y && r <= i.bottom;
|
|
22454
|
-
return
|
|
22454
|
+
return Yr && !o && console.log("Not in rect", i, s, r), o;
|
|
22455
22455
|
}
|
|
22456
22456
|
onDown(t) {
|
|
22457
22457
|
var i;
|
|
22458
|
-
if (
|
|
22458
|
+
if (Yr && console.log(t.pointerType, "DOWN", t.button), !!this.isInRect(t)) {
|
|
22459
22459
|
if (t.pointerType === "mouse") {
|
|
22460
22460
|
const s = this._pointerUpTimestamp[t.button];
|
|
22461
22461
|
if (s > 0 && ((i = t.source) == null ? void 0 : i.timeStamp) !== void 0) {
|
|
22462
22462
|
const r = t.source.timeStamp - s;
|
|
22463
22463
|
if (r < 60 && r >= 0) {
|
|
22464
|
-
|
|
22464
|
+
Yr && console.log("Ignoring mouse.down for touch.up");
|
|
22465
22465
|
return;
|
|
22466
22466
|
}
|
|
22467
22467
|
}
|
|
@@ -22478,18 +22478,18 @@ class lW extends EventTarget {
|
|
|
22478
22478
|
// moveEvent?: Event;
|
|
22479
22479
|
onMove(t) {
|
|
22480
22480
|
const i = this.getPointerPressed(t.button);
|
|
22481
|
-
i === !1 && !this.isInRect(t) || t.pointerType === "touch" && !i || (
|
|
22481
|
+
i === !1 && !this.isInRect(t) || t.pointerType === "touch" && !i || (Yr && console.log(t.pointerType, "MOVE", t.button), this.updatePointerPosition(t), this.setPointerStateT(t.button, this._pointerEvent, t.source), this.onDispatchEvent("pointermove", t));
|
|
22482
22482
|
}
|
|
22483
22483
|
onUp(t) {
|
|
22484
22484
|
var o;
|
|
22485
22485
|
if (((o = this._pointerIds) == null ? void 0 : o.length) >= t.button && (this._pointerIds[t.button] = -1), !this._pointerPressed[t.button]) {
|
|
22486
|
-
|
|
22486
|
+
Yr && console.log(t.pointerType, "UP", t.button, "was not down");
|
|
22487
22487
|
return;
|
|
22488
22488
|
}
|
|
22489
|
-
for (
|
|
22489
|
+
for (Yr && console.log(t.pointerType, "UP", t.button), this.setPointerState(t.button, this._pointerPressed, !1), this.setPointerStateT(t.button, this._pointerEvent, t.source), this.setPointerState(t.button, this._pointerUp, !0); t.button >= this._pointerUsed.length; )
|
|
22490
22490
|
this._pointerUsed.push(!1);
|
|
22491
22491
|
if (this.setPointerState(t.button, this._pointerUsed, !1), this.updatePointerPosition(t), !this._pointerPositionDown[t.button]) {
|
|
22492
|
-
|
|
22492
|
+
Yr && pr("Received pointer up event without matching down event for button: " + t.button), console.warn("Received pointer up event without matching down event for button: " + t.button);
|
|
22493
22493
|
return;
|
|
22494
22494
|
}
|
|
22495
22495
|
const s = t.clientX - this._pointerPositionDown[t.button].x, r = t.clientY - this._pointerPositionDown[t.button].y;
|
|
@@ -29112,7 +29112,7 @@ function Mj(n) {
|
|
|
29112
29112
|
return [t[0] >> 24 & 255, t[0] >> 16 & 255, t[0] >> 8 & 255, t[0] & 255, t[1] >> 24 & 255, t[1] >> 16 & 255, t[1] >> 8 & 255, t[1] & 255, t[2] >> 24 & 255, t[2] >> 16 & 255, t[2] >> 8 & 255, t[2] & 255, t[3] >> 24 & 255, t[3] >> 16 & 255, t[3] >> 8 & 255, t[3] & 255, t[4] >> 24 & 255, t[4] >> 16 & 255, t[4] >> 8 & 255, t[4] & 255];
|
|
29113
29113
|
}
|
|
29114
29114
|
const Tj = Cj("v5", 80, Mj), SP = Tj;
|
|
29115
|
-
|
|
29115
|
+
Qi.registerCallback(ir.ContextCreated, (n) => {
|
|
29116
29116
|
const e = n.context;
|
|
29117
29117
|
Dj(e), Pj(e);
|
|
29118
29118
|
});
|
|
@@ -30095,9 +30095,9 @@ function PP(n, e, t, i) {
|
|
|
30095
30095
|
return t.clone();
|
|
30096
30096
|
}
|
|
30097
30097
|
}
|
|
30098
|
-
const G2 = re("debugnewscripts"), r9 = re("debughierarchy"),
|
|
30098
|
+
const G2 = re("debugnewscripts"), r9 = re("debughierarchy"), Vi = [];
|
|
30099
30099
|
function o9() {
|
|
30100
|
-
return
|
|
30100
|
+
return Vi.length > 0;
|
|
30101
30101
|
}
|
|
30102
30102
|
function r0(n) {
|
|
30103
30103
|
if (!(n.new_scripts.length <= 0)) {
|
|
@@ -30106,25 +30106,25 @@ function r0(n) {
|
|
|
30106
30106
|
e && e();
|
|
30107
30107
|
n.new_scripts_pre_setup_callbacks.length = 0;
|
|
30108
30108
|
}
|
|
30109
|
-
|
|
30110
|
-
for (let e = 0; e <
|
|
30109
|
+
Vi.length = 0, n.new_scripts.length > 0 && Vi.push(...n.new_scripts), n.new_scripts.length = 0;
|
|
30110
|
+
for (let e = 0; e < Vi.length; e++)
|
|
30111
30111
|
try {
|
|
30112
|
-
const t =
|
|
30112
|
+
const t = Vi[e];
|
|
30113
30113
|
if (t.destroyed)
|
|
30114
30114
|
continue;
|
|
30115
30115
|
if (!t.gameObject) {
|
|
30116
|
-
console.error("MISSING GAMEOBJECT - will ignore", t),
|
|
30116
|
+
console.error("MISSING GAMEOBJECT - will ignore", t), Vi.splice(e, 1), e--;
|
|
30117
30117
|
continue;
|
|
30118
30118
|
}
|
|
30119
30119
|
t.context = n, hg(t.gameObject), $1(t, n);
|
|
30120
30120
|
} catch (t) {
|
|
30121
|
-
console.error(t), gc(
|
|
30121
|
+
console.error(t), gc(Vi[e], n), Vi.splice(e, 1), e--;
|
|
30122
30122
|
}
|
|
30123
|
-
for (let e = 0; e <
|
|
30123
|
+
for (let e = 0; e < Vi.length; e++)
|
|
30124
30124
|
try {
|
|
30125
|
-
const t =
|
|
30125
|
+
const t = Vi[e];
|
|
30126
30126
|
if (t.destroyed) {
|
|
30127
|
-
gc(
|
|
30127
|
+
gc(Vi[e], n), Vi.splice(e, 1), e--;
|
|
30128
30128
|
continue;
|
|
30129
30129
|
}
|
|
30130
30130
|
if (t.registering)
|
|
@@ -30135,27 +30135,27 @@ function r0(n) {
|
|
|
30135
30135
|
}
|
|
30136
30136
|
t.__internalAwake !== void 0 && (t.gameObject || console.error("MISSING GAMEOBJECT", t, t.gameObject), hg(t.gameObject), t.activeAndEnabled && Ud(t.__internalAwake.bind(t)));
|
|
30137
30137
|
} catch (t) {
|
|
30138
|
-
console.error(t), gc(
|
|
30138
|
+
console.error(t), gc(Vi[e], n), Vi.splice(e, 1), e--;
|
|
30139
30139
|
}
|
|
30140
|
-
for (let e = 0; e <
|
|
30140
|
+
for (let e = 0; e < Vi.length; e++)
|
|
30141
30141
|
try {
|
|
30142
|
-
const t =
|
|
30142
|
+
const t = Vi[e];
|
|
30143
30143
|
if (t.destroyed || t.enabled === !1 || (hg(t.gameObject), t.activeAndEnabled === !1))
|
|
30144
30144
|
continue;
|
|
30145
30145
|
t.__internalEnable !== void 0 && (t.enabled = !0, Ud(t.__internalEnable.bind(t)));
|
|
30146
30146
|
} catch (t) {
|
|
30147
|
-
console.error(t), gc(
|
|
30147
|
+
console.error(t), gc(Vi[e], n), Vi.splice(e, 1), e--;
|
|
30148
30148
|
}
|
|
30149
|
-
for (let e = 0; e <
|
|
30149
|
+
for (let e = 0; e < Vi.length; e++)
|
|
30150
30150
|
try {
|
|
30151
|
-
const t =
|
|
30151
|
+
const t = Vi[e];
|
|
30152
30152
|
if (t.destroyed || !t.gameObject)
|
|
30153
30153
|
continue;
|
|
30154
30154
|
n.new_script_start.push(t);
|
|
30155
30155
|
} catch (t) {
|
|
30156
|
-
console.error(t), gc(
|
|
30156
|
+
console.error(t), gc(Vi[e], n), Vi.splice(e, 1), e--;
|
|
30157
30157
|
}
|
|
30158
|
-
|
|
30158
|
+
Vi.length = 0;
|
|
30159
30159
|
for (const e of n.new_scripts_post_setup_callbacks)
|
|
30160
30160
|
e && e();
|
|
30161
30161
|
n.new_scripts_post_setup_callbacks.length = 0;
|
|
@@ -30186,7 +30186,7 @@ function Ka(n, e) {
|
|
|
30186
30186
|
t >= 0 && e.splice(t, 1);
|
|
30187
30187
|
}
|
|
30188
30188
|
function my(n) {
|
|
30189
|
-
if (n || (n =
|
|
30189
|
+
if (n || (n = Qi.Current.scene), !n) {
|
|
30190
30190
|
console.trace("Invalid call - no current context.");
|
|
30191
30191
|
return;
|
|
30192
30192
|
}
|
|
@@ -30315,7 +30315,7 @@ vec4 maxValue=texture2D(inputBuffer,vUv);for(int i=0;i<8;++i){vec4 kernel=kernel
|
|
|
30315
30315
|
kernel16: new xe(null),
|
|
30316
30316
|
scale: new xe(1)
|
|
30317
30317
|
},
|
|
30318
|
-
blending:
|
|
30318
|
+
blending: ji,
|
|
30319
30319
|
toneMapped: !1,
|
|
30320
30320
|
depthWrite: !1,
|
|
30321
30321
|
depthTest: !1,
|
|
@@ -30564,7 +30564,7 @@ float signedDistance=linearDepth-focusDistance;float magnitude=smoothstep(0.0,fo
|
|
|
30564
30564
|
cameraNear: new xe(0.3),
|
|
30565
30565
|
cameraFar: new xe(1e3)
|
|
30566
30566
|
},
|
|
30567
|
-
blending:
|
|
30567
|
+
blending: ji,
|
|
30568
30568
|
toneMapped: !1,
|
|
30569
30569
|
depthWrite: !1,
|
|
30570
30570
|
depthTest: !1,
|
|
@@ -30755,7 +30755,7 @@ varying vec2 vUv0;varying vec2 vUv1;varying vec2 vUv2;varying vec2 vUv3;void mai
|
|
|
30755
30755
|
scale: new xe(1),
|
|
30756
30756
|
kernel: new xe(0)
|
|
30757
30757
|
},
|
|
30758
|
-
blending:
|
|
30758
|
+
blending: ji,
|
|
30759
30759
|
toneMapped: !1,
|
|
30760
30760
|
depthWrite: !1,
|
|
30761
30761
|
depthTest: !1,
|
|
@@ -30887,7 +30887,7 @@ uniform float opacity;varying vec2 vUv;void main(){vec4 texel=texture2D(inputBuf
|
|
|
30887
30887
|
inputBuffer: new xe(null),
|
|
30888
30888
|
opacity: new xe(1)
|
|
30889
30889
|
},
|
|
30890
|
-
blending:
|
|
30890
|
+
blending: ji,
|
|
30891
30891
|
toneMapped: !1,
|
|
30892
30892
|
depthWrite: !1,
|
|
30893
30893
|
depthTest: !1,
|
|
@@ -30966,7 +30966,7 @@ gl_FragColor=vec4(n[index],d[index]);}`, _9 = "uniform vec2 texelSize;varying ve
|
|
|
30966
30966
|
normalBuffer: new xe(null),
|
|
30967
30967
|
texelSize: new xe(new te())
|
|
30968
30968
|
},
|
|
30969
|
-
blending:
|
|
30969
|
+
blending: ji,
|
|
30970
30970
|
toneMapped: !1,
|
|
30971
30971
|
depthWrite: !1,
|
|
30972
30972
|
depthTest: !1,
|
|
@@ -31096,7 +31096,7 @@ if(keep){gl_FragColor=texture2D(inputBuffer,vUv);}else{discard;}}`, S9 = class e
|
|
|
31096
31096
|
depthBuffer1: new xe(null),
|
|
31097
31097
|
cameraNearFar: new xe(new te(1, 1))
|
|
31098
31098
|
},
|
|
31099
|
-
blending:
|
|
31099
|
+
blending: ji,
|
|
31100
31100
|
toneMapped: !1,
|
|
31101
31101
|
depthWrite: !1,
|
|
31102
31102
|
depthTest: !1,
|
|
@@ -31321,7 +31321,7 @@ varying vec2 vUv;varying vec2 vUv00;varying vec2 vUv01;varying vec2 vUv02;varyin
|
|
|
31321
31321
|
inputBuffer: new xe(null),
|
|
31322
31322
|
texelSize: new xe(new te())
|
|
31323
31323
|
},
|
|
31324
|
-
blending:
|
|
31324
|
+
blending: ji,
|
|
31325
31325
|
toneMapped: !1,
|
|
31326
31326
|
depthWrite: !1,
|
|
31327
31327
|
depthTest: !1,
|
|
@@ -31429,7 +31429,7 @@ gl_Position=vec4(position.xy,1.0,1.0);}`, R9 = class extends Lt {
|
|
|
31429
31429
|
predicationBuffer: new xe(null),
|
|
31430
31430
|
texelSize: new xe(n)
|
|
31431
31431
|
},
|
|
31432
|
-
blending:
|
|
31432
|
+
blending: ji,
|
|
31433
31433
|
toneMapped: !1,
|
|
31434
31434
|
depthWrite: !1,
|
|
31435
31435
|
depthTest: !1,
|
|
@@ -31780,7 +31780,7 @@ return orthographicDepthToViewZ(depth,cameraNear,cameraFar);
|
|
|
31780
31780
|
aspect: new xe(1),
|
|
31781
31781
|
time: new xe(0)
|
|
31782
31782
|
},
|
|
31783
|
-
blending:
|
|
31783
|
+
blending: ji,
|
|
31784
31784
|
toneMapped: !1,
|
|
31785
31785
|
depthWrite: !1,
|
|
31786
31786
|
depthTest: !1,
|
|
@@ -32021,7 +32021,7 @@ gl_FragColor=vec4(l);
|
|
|
32021
32021
|
smoothing: new xe(1),
|
|
32022
32022
|
range: new xe(null)
|
|
32023
32023
|
},
|
|
32024
|
-
blending:
|
|
32024
|
+
blending: ji,
|
|
32025
32025
|
toneMapped: !1,
|
|
32026
32026
|
depthWrite: !1,
|
|
32027
32027
|
depthTest: !1,
|
|
@@ -32239,7 +32239,7 @@ gl_FragColor=mask*texture2D(inputBuffer,vUv);
|
|
|
32239
32239
|
inputBuffer: new xe(null),
|
|
32240
32240
|
strength: new xe(1)
|
|
32241
32241
|
},
|
|
32242
|
-
blending:
|
|
32242
|
+
blending: ji,
|
|
32243
32243
|
toneMapped: !1,
|
|
32244
32244
|
depthWrite: !1,
|
|
32245
32245
|
depthTest: !1,
|
|
@@ -32435,7 +32435,7 @@ vec2 d;vec3 coords;coords.x=searchXLeft(vOffset[0].xy,vOffset[2].x);coords.y=vOf
|
|
|
32435
32435
|
resolution: new xe(e),
|
|
32436
32436
|
texelSize: new xe(n)
|
|
32437
32437
|
},
|
|
32438
|
-
blending:
|
|
32438
|
+
blending: ji,
|
|
32439
32439
|
toneMapped: !1,
|
|
32440
32440
|
depthWrite: !1,
|
|
32441
32441
|
depthTest: !1,
|
|
@@ -32720,7 +32720,7 @@ ao=clamp(1.0-pow(1.0-ao,abs(intensity)),0.0,1.0);
|
|
|
32720
32720
|
fade: new xe(0.01),
|
|
32721
32721
|
bias: new xe(0)
|
|
32722
32722
|
},
|
|
32723
|
-
blending:
|
|
32723
|
+
blending: ji,
|
|
32724
32724
|
toneMapped: !1,
|
|
32725
32725
|
depthWrite: !1,
|
|
32726
32726
|
depthTest: !1,
|
|
@@ -33338,7 +33338,7 @@ uniform float radius;varying vec2 vUv;varying vec2 vUv0;varying vec2 vUv1;varyin
|
|
|
33338
33338
|
texelSize: new xe(new te()),
|
|
33339
33339
|
radius: new xe(0.85)
|
|
33340
33340
|
},
|
|
33341
|
-
blending:
|
|
33341
|
+
blending: ji,
|
|
33342
33342
|
toneMapped: !1,
|
|
33343
33343
|
depthWrite: !1,
|
|
33344
33344
|
depthTest: !1,
|
|
@@ -36836,7 +36836,7 @@ function Y6(n, e, t) {
|
|
|
36836
36836
|
}
|
|
36837
36837
|
return s;
|
|
36838
36838
|
}
|
|
36839
|
-
var K6 = class extends
|
|
36839
|
+
var K6 = class extends yo {
|
|
36840
36840
|
/**
|
|
36841
36841
|
* Constructs a new noise texture.
|
|
36842
36842
|
*
|
|
@@ -37445,7 +37445,7 @@ outputColor=vec4(vec3(1.0-ao),inputColor.a);
|
|
|
37445
37445
|
const k = this.resolution = new gi(this, C, T, M);
|
|
37446
37446
|
k.addEventListener("change", (V) => this.setSize(k.baseWidth, k.baseHeight)), this.camera = n, this.depthDownsamplingPass = new tM({ normalBuffer: e, resolutionScale: M }), this.depthDownsamplingPass.enabled = r === null, this.ssaoPass = new da(new V9(n));
|
|
37447
37447
|
const K = new K6(zP, zP, Ci);
|
|
37448
|
-
K.wrapS = K.wrapT =
|
|
37448
|
+
K.wrapS = K.wrapT = bo;
|
|
37449
37449
|
const H = this.ssaoMaterial;
|
|
37450
37450
|
H.normalBuffer = e, H.noiseTexture = K, H.minRadiusScale = A, H.samples = i, H.radius = m, H.rings = s, H.fade = _, H.bias = y, H.distanceThreshold = d, H.distanceFalloff = f, H.proximityThreshold = p, H.proximityFalloff = g, a !== void 0 && (H.worldDistanceThreshold = a), c !== void 0 && (H.worldDistanceFalloff = c), l !== void 0 && (H.worldProximityThreshold = l), h !== void 0 && (H.worldProximityFalloff = h), r !== null && (this.ssaoMaterial.normalDepthBuffer = r, this.defines.set("NORMAL_DEPTH", "1")), this.depthAwareUpsampling = o, this.color = E;
|
|
37451
37451
|
}
|
|
@@ -38131,14 +38131,14 @@ Om[0] = 255;
|
|
|
38131
38131
|
Om[1] = 255;
|
|
38132
38132
|
Om[2] = 255;
|
|
38133
38133
|
Om[3] = 255;
|
|
38134
|
-
const lq = new
|
|
38134
|
+
const lq = new yo(Om, 1, 1, Ci);
|
|
38135
38135
|
function lF(n, e = 1) {
|
|
38136
38136
|
const t = "alpha" in n, i = e * e, s = new Uint8Array(4 * i), r = Math.floor(n.r * 255), o = Math.floor(n.g * 255), a = Math.floor(n.b * 255);
|
|
38137
38137
|
for (let l = 0; l < i; l++) {
|
|
38138
38138
|
const h = l * 4;
|
|
38139
38139
|
s[h + 0] = r, s[h + 1] = o, s[h + 2] = a, t ? s[h + 3] = Math.floor(n.alpha * 255) : s[h + 3] = 255;
|
|
38140
38140
|
}
|
|
38141
|
-
const c = new
|
|
38141
|
+
const c = new yo(s, e, e);
|
|
38142
38142
|
return c.needsUpdate = !0, c;
|
|
38143
38143
|
}
|
|
38144
38144
|
function hq(n, e, t, i = 1, s = 3) {
|
|
@@ -38152,7 +38152,7 @@ function hq(n, e, t, i = 1, s = 3) {
|
|
|
38152
38152
|
l[M + 0] = b, l[M + 1] = y, l[M + 2] = _, l[M + 3] = 255;
|
|
38153
38153
|
}
|
|
38154
38154
|
}
|
|
38155
|
-
const d = new
|
|
38155
|
+
const d = new yo(l, i, s);
|
|
38156
38156
|
return d.needsUpdate = !0, d;
|
|
38157
38157
|
}
|
|
38158
38158
|
function o0(n, e) {
|
|
@@ -38674,7 +38674,7 @@ class Sq extends Yl {
|
|
|
38674
38674
|
}
|
|
38675
38675
|
}
|
|
38676
38676
|
new Sq();
|
|
38677
|
-
const
|
|
38677
|
+
const to = re("debugenvlight");
|
|
38678
38678
|
var pg = /* @__PURE__ */ ((n) => (n[n.Skybox = 0] = "Skybox", n[n.Trilight = 1] = "Trilight", n[n.Flat = 3] = "Flat", n[n.Custom = 4] = "Custom", n))(pg || {}), IC = /* @__PURE__ */ ((n) => (n[n.Skybox = 0] = "Skybox", n[n.Custom = 1] = "Custom", n))(IC || {});
|
|
38679
38679
|
class Cq {
|
|
38680
38680
|
constructor(e) {
|
|
@@ -38717,7 +38717,7 @@ class Cq {
|
|
|
38717
38717
|
var i;
|
|
38718
38718
|
e instanceof Xn && (e = e.uri);
|
|
38719
38719
|
const t = (i = this._sceneLightSettings) == null ? void 0 : i.get(e);
|
|
38720
|
-
return t ? (
|
|
38720
|
+
return t ? (to && console.log("Enable scene light settings", e, t), e !== this._currentLightSettingsId && this._currentLightSettingsId && this.disable(this._currentLightSettingsId), this._currentLightSettingsId = e, t.enabled = !0, !0) : !1;
|
|
38721
38721
|
}
|
|
38722
38722
|
/** disable the lighting of a specific scene, will only have any effect if it is currently active */
|
|
38723
38723
|
disable(e) {
|
|
@@ -38725,7 +38725,7 @@ class Cq {
|
|
|
38725
38725
|
if (e instanceof Xn && (e = e.uri), e == null)
|
|
38726
38726
|
return !1;
|
|
38727
38727
|
const t = (i = this._sceneLightSettings) == null ? void 0 : i.get(e);
|
|
38728
|
-
return t ? (
|
|
38728
|
+
return t ? (to && console.log("Disable scene light settings", e, t), t.enabled = !1, !0) : !1;
|
|
38729
38729
|
}
|
|
38730
38730
|
/** Disables the currently active scene lighting (if any), returns the id of the previously active lighting */
|
|
38731
38731
|
disableCurrent() {
|
|
@@ -38742,7 +38742,7 @@ class Cq {
|
|
|
38742
38742
|
console.error("Missing source id for scene light settings, can not register:", e);
|
|
38743
38743
|
return;
|
|
38744
38744
|
}
|
|
38745
|
-
|
|
38745
|
+
to && console.log("Register " + (e == null ? void 0 : e.sourceId) + " lighting", e), this._sceneLightSettings || (this._sceneLightSettings = /* @__PURE__ */ new Map()), this._sceneLightSettings.set(t, e);
|
|
38746
38746
|
}
|
|
38747
38747
|
/** @internal */
|
|
38748
38748
|
internalUnregisterSceneLightSettings(e) {
|
|
@@ -38751,11 +38751,11 @@ class Cq {
|
|
|
38751
38751
|
console.error("Missing source id for scene light settings, can not unregister:", e);
|
|
38752
38752
|
return;
|
|
38753
38753
|
}
|
|
38754
|
-
|
|
38754
|
+
to && console.log("Unregister " + (e == null ? void 0 : e.sourceId) + " lighting", e), this._sceneLightSettings && this._sceneLightSettings.delete(t);
|
|
38755
38755
|
}
|
|
38756
38756
|
/** @internal */
|
|
38757
38757
|
internalRegisterReflection(e, t) {
|
|
38758
|
-
|
|
38758
|
+
to && console.log("Register reflection", e, t);
|
|
38759
38759
|
const i = new Eq(this.context, t, 1);
|
|
38760
38760
|
this._lighting[e] = i;
|
|
38761
38761
|
}
|
|
@@ -38768,17 +38768,17 @@ class Cq {
|
|
|
38768
38768
|
var i;
|
|
38769
38769
|
this.__currentReflectionId = e;
|
|
38770
38770
|
const t = (i = this._sceneLightSettings) == null ? void 0 : i.get(e);
|
|
38771
|
-
switch (
|
|
38771
|
+
switch (to && console.log("Enable reflection", e, t ? pg[t.ambientMode] : "Unknown ambient mode"), t == null ? void 0 : t.ambientMode) {
|
|
38772
38772
|
case 0:
|
|
38773
38773
|
case 4:
|
|
38774
38774
|
const s = this.internalGetReflection(e);
|
|
38775
38775
|
if (s && s.Source) {
|
|
38776
|
-
|
|
38776
|
+
to && console.log("Setting environment reflection", s);
|
|
38777
38777
|
const r = this.context.scene, o = s.Source;
|
|
38778
|
-
o.colorSpace = Ze, o.mapping =
|
|
38778
|
+
o.colorSpace = Ze, o.mapping = vo, r.environment = o;
|
|
38779
38779
|
return;
|
|
38780
38780
|
} else
|
|
38781
|
-
|
|
38781
|
+
to && console.warn("Could not find reflection for source", e);
|
|
38782
38782
|
break;
|
|
38783
38783
|
}
|
|
38784
38784
|
if ((t == null ? void 0 : t.environmentReflectionSource) === 1)
|
|
@@ -38786,14 +38786,14 @@ class Cq {
|
|
|
38786
38786
|
case 1:
|
|
38787
38787
|
if (t.ambientTrilight) {
|
|
38788
38788
|
const s = t.ambientTrilight, r = hq(s[0], s[1], s[2], 64, 64);
|
|
38789
|
-
r.colorSpace = Ze, r.mapping =
|
|
38789
|
+
r.colorSpace = Ze, r.mapping = vo, this.context.scene.environment = r;
|
|
38790
38790
|
} else
|
|
38791
38791
|
console.error("Missing ambient trilight", t.sourceId);
|
|
38792
38792
|
return;
|
|
38793
38793
|
case 3:
|
|
38794
38794
|
if (t.ambientLight) {
|
|
38795
38795
|
const s = lF(t.ambientLight, 64);
|
|
38796
|
-
s.colorSpace = Ze, s.mapping =
|
|
38796
|
+
s.colorSpace = Ze, s.mapping = vo, this.context.scene.environment = s;
|
|
38797
38797
|
} else
|
|
38798
38798
|
console.error("Missing ambientlight", t.sourceId);
|
|
38799
38799
|
return;
|
|
@@ -38804,16 +38804,16 @@ class Cq {
|
|
|
38804
38804
|
/** @internal */
|
|
38805
38805
|
internalDisableReflection(e) {
|
|
38806
38806
|
if (e && e !== this.__currentReflectionId) {
|
|
38807
|
-
|
|
38807
|
+
to && console.log("Not disabling reflection for", e, "because it is not the current light settings id", this.__currentReflectionId);
|
|
38808
38808
|
return;
|
|
38809
38809
|
}
|
|
38810
|
-
|
|
38810
|
+
to && console.log("Disable reflection", e);
|
|
38811
38811
|
const t = this.context.scene;
|
|
38812
38812
|
t.environment = null;
|
|
38813
38813
|
}
|
|
38814
38814
|
/** @internal */
|
|
38815
38815
|
async internalGetSceneLightingData(e) {
|
|
38816
|
-
return
|
|
38816
|
+
return to && console.log("GET SCENE LIGHT DATA", e), this._waitPromise ? this._waitPromise : (this._waitPromise = new Promise((t, i) => {
|
|
38817
38817
|
const s = setInterval(async () => {
|
|
38818
38818
|
const r = this.internalGetReflection(e);
|
|
38819
38819
|
r && (clearInterval(s), t(r.getSphericalHarmonicsArray(this.environmentIntensity ?? 1)));
|
|
@@ -38829,7 +38829,7 @@ class Eq {
|
|
|
38829
38829
|
u(this, "_sphericalHarmonicsArray");
|
|
38830
38830
|
u(this, "_ambientScale", 1);
|
|
38831
38831
|
u(this, "_lightProbe");
|
|
38832
|
-
this._context = e, this._source = t, this._ambientScale = i, t.mapping =
|
|
38832
|
+
this._context = e, this._source = t, this._ambientScale = i, t.mapping = vo, t.colorSpace = Ze;
|
|
38833
38833
|
}
|
|
38834
38834
|
get Source() {
|
|
38835
38835
|
return this._source;
|
|
@@ -38845,7 +38845,7 @@ class Eq {
|
|
|
38845
38845
|
const i = this._source;
|
|
38846
38846
|
let s = null;
|
|
38847
38847
|
if (i) {
|
|
38848
|
-
|
|
38848
|
+
to && console.log("GENERATING LIGHT PROBE", i, this.Source);
|
|
38849
38849
|
const r = Math.min(i.image.width, 512);
|
|
38850
38850
|
s = new K0(r).fromEquirectangularTexture(this._context.renderer, i);
|
|
38851
38851
|
}
|
|
@@ -39732,18 +39732,18 @@ class c0 extends x1 {
|
|
|
39732
39732
|
let ni = 0;
|
|
39733
39733
|
for (let jt = 0; jt < le; ++jt) {
|
|
39734
39734
|
const di = B[P.idx[jt]].type;
|
|
39735
|
-
for (let
|
|
39736
|
-
ni = ci[jt][
|
|
39735
|
+
for (let Hi = 8 * Kt; Hi < 8 * Kt + Ti; ++Hi) {
|
|
39736
|
+
ni = ci[jt][Hi];
|
|
39737
39737
|
for (let Ha = 0; Ha < be; ++Ha) {
|
|
39738
|
-
const
|
|
39739
|
-
oe.setUint16(ni + 0 * 2 * di, Mi[jt][
|
|
39738
|
+
const qr = Ha * 64 + (Hi & 7) * 8;
|
|
39739
|
+
oe.setUint16(ni + 0 * 2 * di, Mi[jt][qr + 0], !0), oe.setUint16(ni + 1 * 2 * di, Mi[jt][qr + 1], !0), oe.setUint16(ni + 2 * 2 * di, Mi[jt][qr + 2], !0), oe.setUint16(ni + 3 * 2 * di, Mi[jt][qr + 3], !0), oe.setUint16(ni + 4 * 2 * di, Mi[jt][qr + 4], !0), oe.setUint16(ni + 5 * 2 * di, Mi[jt][qr + 5], !0), oe.setUint16(ni + 6 * 2 * di, Mi[jt][qr + 6], !0), oe.setUint16(ni + 7 * 2 * di, Mi[jt][qr + 7], !0), ni += 8 * 2 * di;
|
|
39740
39740
|
}
|
|
39741
39741
|
}
|
|
39742
39742
|
if (be != De)
|
|
39743
|
-
for (let
|
|
39744
|
-
const Ha = ci[jt][
|
|
39743
|
+
for (let Hi = 8 * Kt; Hi < 8 * Kt + Ti; ++Hi) {
|
|
39744
|
+
const Ha = ci[jt][Hi] + 8 * be * 2 * di, qr = be * 64 + (Hi & 7) * 8;
|
|
39745
39745
|
for (let lh = 0; lh < ps; ++lh)
|
|
39746
|
-
oe.setUint16(Ha + lh * 2 * di, Mi[jt][
|
|
39746
|
+
oe.setUint16(Ha + lh * 2 * di, Mi[jt][qr + lh], !0);
|
|
39747
39747
|
}
|
|
39748
39748
|
}
|
|
39749
39749
|
}
|
|
@@ -40063,7 +40063,7 @@ class c0 extends x1 {
|
|
|
40063
40063
|
const B = Ve(P, w), F = Ve(P, w), U = Ve(P, w), Q = Ve(P, w);
|
|
40064
40064
|
return { xMin: B, yMin: F, xMax: U, yMax: Q };
|
|
40065
40065
|
}
|
|
40066
|
-
function
|
|
40066
|
+
function Wr(P, w) {
|
|
40067
40067
|
const B = [
|
|
40068
40068
|
"INCREASING_Y"
|
|
40069
40069
|
], F = st(P, w);
|
|
@@ -40073,7 +40073,7 @@ class c0 extends x1 {
|
|
|
40073
40073
|
const B = yt(P, w), F = yt(P, w);
|
|
40074
40074
|
return [B, F];
|
|
40075
40075
|
}
|
|
40076
|
-
function
|
|
40076
|
+
function jr(P, w) {
|
|
40077
40077
|
const B = yt(P, w), F = yt(P, w), U = yt(P, w);
|
|
40078
40078
|
return [B, F, U];
|
|
40079
40079
|
}
|
|
@@ -40089,13 +40089,13 @@ class c0 extends x1 {
|
|
|
40089
40089
|
if (F === "box2i")
|
|
40090
40090
|
return fn(P, B);
|
|
40091
40091
|
if (F === "lineOrder")
|
|
40092
|
-
return
|
|
40092
|
+
return Wr(P, B);
|
|
40093
40093
|
if (F === "float")
|
|
40094
40094
|
return yt(P, B);
|
|
40095
40095
|
if (F === "v2f")
|
|
40096
40096
|
return Di(P, B);
|
|
40097
40097
|
if (F === "v3f")
|
|
40098
|
-
return
|
|
40098
|
+
return jr(P, B);
|
|
40099
40099
|
if (F === "int")
|
|
40100
40100
|
return Xe(P, B);
|
|
40101
40101
|
if (F === "rational")
|
|
@@ -40699,7 +40699,7 @@ const sn = class {
|
|
|
40699
40699
|
}), this._disposeCallbacks.push(() => {
|
|
40700
40700
|
var s;
|
|
40701
40701
|
return (s = this._intersectionObserver) == null ? void 0 : s.disconnect();
|
|
40702
|
-
}),
|
|
40702
|
+
}), Qi.register(this);
|
|
40703
40703
|
}
|
|
40704
40704
|
/** When a new context is created this is the framerate that will be used by default */
|
|
40705
40705
|
static get DefaultTargetFrameRate() {
|
|
@@ -40715,11 +40715,11 @@ const sn = class {
|
|
|
40715
40715
|
}
|
|
40716
40716
|
/** The currently active context. Only set during the update loops */
|
|
40717
40717
|
static get Current() {
|
|
40718
|
-
return
|
|
40718
|
+
return Qi.Current;
|
|
40719
40719
|
}
|
|
40720
40720
|
/** @internal this property should not be set by user code */
|
|
40721
40721
|
static set Current(e) {
|
|
40722
|
-
|
|
40722
|
+
Qi.Current = e;
|
|
40723
40723
|
}
|
|
40724
40724
|
appendHTMLElement(e) {
|
|
40725
40725
|
return this.domElement.shadowRoot ? this.domElement.shadowRoot.appendChild(e) : this.domElement.appendChild(e);
|
|
@@ -40851,7 +40851,7 @@ const sn = class {
|
|
|
40851
40851
|
*/
|
|
40852
40852
|
clear() {
|
|
40853
40853
|
var e, t, i, s;
|
|
40854
|
-
|
|
40854
|
+
Qi.dispatchCallback(ir.ContextClearing, this), Ul(this.scene, !0, !0), this.scene = new dr(), (e = this.addressables) == null || e.dispose(), (t = this.lightmaps) == null || t.clear(), (s = (i = this.physics) == null ? void 0 : i.engine) == null || s.clearCaches(), this.isManagedExternally || (this.renderer.renderLists.dispose(), this.renderer.state.reset(), this.renderer.resetState()), Qi.dispatchCallback(ir.ContextCleared, this);
|
|
40855
40855
|
}
|
|
40856
40856
|
dispose() {
|
|
40857
40857
|
this.internalOnDestroy();
|
|
@@ -40869,7 +40869,7 @@ const sn = class {
|
|
|
40869
40869
|
} catch (s) {
|
|
40870
40870
|
console.error("Error in on dispose callback:", s, i);
|
|
40871
40871
|
}
|
|
40872
|
-
(t = this.domElement) != null && t.parentElement && this.domElement.parentElement.removeChild(this.domElement),
|
|
40872
|
+
(t = this.domElement) != null && t.parentElement && this.domElement.parentElement.removeChild(this.domElement), Qi.dispatchCallback(ir.ContextDestroyed, this), Qi.unregister(this);
|
|
40873
40873
|
}
|
|
40874
40874
|
registerCoroutineUpdate(e, t, i) {
|
|
40875
40875
|
return this.coroutines[i] || (this.coroutines[i] = []), this.coroutines[i].push({ comp: e, main: t }), t;
|
|
@@ -40969,7 +40969,7 @@ const sn = class {
|
|
|
40969
40969
|
async internalOnCreate(e) {
|
|
40970
40970
|
var o, a;
|
|
40971
40971
|
const t = ++this._createId;
|
|
40972
|
-
this.clear(), this.isManagedExternally === !1 && ((o = this.renderer) == null || o.setAnimationLoop(null)), await U0(1), sn.Current = this, await
|
|
40972
|
+
this.clear(), this.isManagedExternally === !1 && ((o = this.renderer) == null || o.setAnimationLoop(null)), await U0(1), sn.Current = this, await Qi.dispatchCallback(ir.ContextCreationStart, this);
|
|
40973
40973
|
let i = !0, s;
|
|
40974
40974
|
try {
|
|
40975
40975
|
sn.Current = this, e ? s = await this.internalLoadInitialContent(t, e) : s = [];
|
|
@@ -41004,14 +41004,14 @@ const sn = class {
|
|
|
41004
41004
|
return c = h, !0;
|
|
41005
41005
|
c = h;
|
|
41006
41006
|
}
|
|
41007
|
-
}), c ? this.setCurrentCamera(c) : !
|
|
41007
|
+
}), c ? this.setCurrentCamera(c) : !Qi.dispatchCallback(ir.MissingCamera, this, { files: s }) && !this.mainCamera && !this.isManagedExternally && console.warn("Missing camera in main scene", this);
|
|
41008
41008
|
}
|
|
41009
41009
|
if (sn.Current = this, r0(this), !this.isManagedExternally && this.composer && this.mainCamera) {
|
|
41010
41010
|
const c = new Nb(this.scene, this.mainCamera);
|
|
41011
41011
|
this.renderer.setSize(this.domWidth, this.domHeight), this.composer.addPass(c), this.composer.setSize(this.domWidth, this.domHeight);
|
|
41012
41012
|
}
|
|
41013
41013
|
this._sizeChanged = !0, this._stats && (this._stats.showPanel(0), (a = this.domElement.shadowRoot) == null || a.appendChild(this._stats.dom)), _h && uC(this.scene, !0), this.targetFrameRate === void 0 ? (_h && console.warn("No target framerate set, using default", sn.DefaultTargetFrameRate), this.targetFrameRate = sn._defaultTargetFramerate) : _h && console.log("Target framerate set to", this.targetFrameRate), this._dispatchReadyAfterFrame = !0;
|
|
41014
|
-
const r =
|
|
41014
|
+
const r = Qi.dispatchCallback(ir.ContextCreated, this, { files: s });
|
|
41015
41015
|
return r && await r, this._isCreating = !1, this.isManagedExternally || this.restartRenderLoop(), r;
|
|
41016
41016
|
}
|
|
41017
41017
|
async internalLoadInitialContent(e, t) {
|
|
@@ -41751,7 +41751,7 @@ function EF() {
|
|
|
41751
41751
|
function of() {
|
|
41752
41752
|
return gg() || EF();
|
|
41753
41753
|
}
|
|
41754
|
-
|
|
41754
|
+
Qi.registerCallback(ir.ContextRegistered, (n) => {
|
|
41755
41755
|
cX(n.context), dX(), aX(n.context);
|
|
41756
41756
|
});
|
|
41757
41757
|
let Il, FC = !1, zp = "";
|
|
@@ -42590,7 +42590,7 @@ class Wo extends hs {
|
|
|
42590
42590
|
const f = i[0].mipmaps;
|
|
42591
42591
|
d = t.layerCount > 1 ? new HO(f, s, r, t.layerCount, o, pi) : new Cc(f, s, r, o, pi);
|
|
42592
42592
|
}
|
|
42593
|
-
return d.minFilter = i[0].mipmaps.length === 1 ? Ft :
|
|
42593
|
+
return d.minFilter = i[0].mipmaps.length === 1 ? Ft : _o, d.magFilter = Ft, d.generateMipmaps = !1, d.needsUpdate = !0, d.colorSpace = l === vX ? Ze : ar, d.premultiplyAlpha = !!(h & AX), d;
|
|
42594
42594
|
}
|
|
42595
42595
|
/**
|
|
42596
42596
|
* @param {ArrayBuffer} buffer
|
|
@@ -42862,7 +42862,7 @@ async function SX(n, e = 0) {
|
|
|
42862
42862
|
a.byteOffset,
|
|
42863
42863
|
a.byteLength / Uint16Array.BYTES_PER_ELEMENT
|
|
42864
42864
|
) : c = a;
|
|
42865
|
-
const l = r === 0 ? new
|
|
42865
|
+
const l = r === 0 ? new yo(c, i, s) : new X0(c, i, s, r);
|
|
42866
42866
|
return l.type = nw[t], l.format = oB[t], l.colorSpace = wX[t] || ar, l.needsUpdate = !0, Promise.resolve(l);
|
|
42867
42867
|
}
|
|
42868
42868
|
var CX = function() {
|
|
@@ -43500,7 +43500,7 @@ class HX {
|
|
|
43500
43500
|
return null;
|
|
43501
43501
|
const s = t.meshes[i.mesh];
|
|
43502
43502
|
for (const l of s.primitives)
|
|
43503
|
-
if (l.mode !==
|
|
43503
|
+
if (l.mode !== ao.TRIANGLES && l.mode !== ao.TRIANGLE_STRIP && l.mode !== ao.TRIANGLE_FAN && l.mode !== void 0)
|
|
43504
43504
|
return null;
|
|
43505
43505
|
const o = i.extensions[this.name].attributes, a = [], c = {};
|
|
43506
43506
|
for (const l in o)
|
|
@@ -43622,7 +43622,7 @@ class XX extends zF {
|
|
|
43622
43622
|
return qX.fromArray(r).normalize().toArray(r), r;
|
|
43623
43623
|
}
|
|
43624
43624
|
}
|
|
43625
|
-
const
|
|
43625
|
+
const ao = {
|
|
43626
43626
|
FLOAT: 5126,
|
|
43627
43627
|
//FLOAT_MAT2: 35674,
|
|
43628
43628
|
FLOAT_MAT3: 35675,
|
|
@@ -43655,11 +43655,11 @@ const oo = {
|
|
|
43655
43655
|
9984: Zd,
|
|
43656
43656
|
9985: xm,
|
|
43657
43657
|
9986: Yh,
|
|
43658
|
-
9987:
|
|
43658
|
+
9987: _o
|
|
43659
43659
|
}, gB = {
|
|
43660
43660
|
33071: jn,
|
|
43661
43661
|
33648: nu,
|
|
43662
|
-
10497:
|
|
43662
|
+
10497: bo
|
|
43663
43663
|
}, rw = {
|
|
43664
43664
|
SCALAR: 1,
|
|
43665
43665
|
VEC2: 2,
|
|
@@ -44060,7 +44060,7 @@ class iY {
|
|
|
44060
44060
|
const l = this.loadImageSource(t, i).then(function(h) {
|
|
44061
44061
|
h.flipY = !1, h.name = o.name || a.name || "", h.name === "" && typeof a.uri == "string" && a.uri.startsWith("data:image/") === !1 && (h.name = a.uri);
|
|
44062
44062
|
const f = (r.samplers || {})[o.sampler] || {};
|
|
44063
|
-
return h.magFilter = pB[f.magFilter] || Ft, h.minFilter = pB[f.minFilter] ||
|
|
44063
|
+
return h.magFilter = pB[f.magFilter] || Ft, h.minFilter = pB[f.minFilter] || _o, h.wrapS = gB[f.wrapS] || bo, h.wrapT = gB[f.wrapT] || bo, h.anisotropy = 4, s.associations.set(h, { textures: e }), h;
|
|
44064
44064
|
}).catch(function() {
|
|
44065
44065
|
return null;
|
|
44066
44066
|
});
|
|
@@ -44233,15 +44233,15 @@ class iY {
|
|
|
44233
44233
|
const A = h[p], v = o[p];
|
|
44234
44234
|
let m;
|
|
44235
44235
|
const b = l[p];
|
|
44236
|
-
if (v.mode ===
|
|
44237
|
-
m = r.isSkinnedMesh === !0 ? new fu(A, b) : new ye(A, b), m.isSkinnedMesh === !0 && m.normalizeSkinWeights(), v.mode ===
|
|
44238
|
-
else if (v.mode ===
|
|
44236
|
+
if (v.mode === ao.TRIANGLES || v.mode === ao.TRIANGLE_STRIP || v.mode === ao.TRIANGLE_FAN || v.mode === void 0)
|
|
44237
|
+
m = r.isSkinnedMesh === !0 ? new fu(A, b) : new ye(A, b), m.isSkinnedMesh === !0 && m.normalizeSkinWeights(), v.mode === ao.TRIANGLE_STRIP ? m.geometry = dB(m.geometry, YE) : v.mode === ao.TRIANGLE_FAN && (m.geometry = dB(m.geometry, jy));
|
|
44238
|
+
else if (v.mode === ao.LINES)
|
|
44239
44239
|
m = new Fr(A, b);
|
|
44240
|
-
else if (v.mode ===
|
|
44240
|
+
else if (v.mode === ao.LINE_STRIP)
|
|
44241
44241
|
m = new cn(A, b);
|
|
44242
|
-
else if (v.mode ===
|
|
44242
|
+
else if (v.mode === ao.LINE_LOOP)
|
|
44243
44243
|
m = new c1(A, b);
|
|
44244
|
-
else if (v.mode ===
|
|
44244
|
+
else if (v.mode === ao.POINTS)
|
|
44245
44245
|
m = new l1(A, b);
|
|
44246
44246
|
else
|
|
44247
44247
|
throw new Error("THREE.GLTFLoader: Primitive mode unsupported: " + v.mode);
|
|
@@ -44656,8 +44656,8 @@ const ki = class extends mb {
|
|
|
44656
44656
|
this.uniformsNeedUpdate = !0;
|
|
44657
44657
|
}
|
|
44658
44658
|
};
|
|
44659
|
-
let
|
|
44660
|
-
u(
|
|
44659
|
+
let io = ki;
|
|
44660
|
+
u(io, "viewProjection", new Re()), u(io, "_viewProjectionValues", []), u(io, "viewMatrix", new Re()), u(io, "_viewMatrixValues", []), u(io, "_worldSpaceCameraPosName", "_WorldSpaceCameraPos"), u(io, "_worldSpaceCameraPos", new S()), u(io, "_mainLightColor", new it()), u(io, "_mainLightPosition", new S()), u(io, "_lightData", new it());
|
|
44661
44661
|
class rY {
|
|
44662
44662
|
constructor(e, t) {
|
|
44663
44663
|
u(this, "parser");
|
|
@@ -44752,7 +44752,7 @@ class rY {
|
|
|
44752
44752
|
}
|
|
44753
44753
|
}
|
|
44754
44754
|
}
|
|
44755
|
-
const g = new
|
|
44755
|
+
const g = new io(
|
|
44756
44756
|
this.identifier,
|
|
44757
44757
|
{
|
|
44758
44758
|
name: t.name ?? "",
|
|
@@ -45093,7 +45093,7 @@ class uY {
|
|
|
45093
45093
|
return null;
|
|
45094
45094
|
}
|
|
45095
45095
|
}
|
|
45096
|
-
|
|
45096
|
+
Qi.registerCallback(ir.ContextCreated, (n) => {
|
|
45097
45097
|
const e = n.context, t = se.findObjectOfType(VC, e);
|
|
45098
45098
|
t != null && t.sourceId && (t.enabled = !0);
|
|
45099
45099
|
});
|
|
@@ -45431,10 +45431,10 @@ const Ig = class {
|
|
|
45431
45431
|
r && r.onEnd(e);
|
|
45432
45432
|
}
|
|
45433
45433
|
};
|
|
45434
|
-
let
|
|
45435
|
-
u(
|
|
45436
|
-
u(
|
|
45437
|
-
u(
|
|
45434
|
+
let fo = Ig;
|
|
45435
|
+
u(fo, "cache", /* @__PURE__ */ new Map()), u(fo, "resolved", {}), u(fo, "currentlyLoading", {}), /** event listeners per context */
|
|
45436
|
+
u(fo, "_progressiveEventListeners", /* @__PURE__ */ new Map()), //** loading info per context, contains an array of urls that are currently being loaded */
|
|
45437
|
+
u(fo, "_currentProgressiveLoadingInfo", /* @__PURE__ */ new Map());
|
|
45438
45438
|
class mY {
|
|
45439
45439
|
// TODO: can contain information if the event is a background process / preloading or if the object is currently visible
|
|
45440
45440
|
constructor(e, t, i, s, r) {
|
|
@@ -45483,7 +45483,7 @@ class yY {
|
|
|
45483
45483
|
}
|
|
45484
45484
|
async function bY(n, e, t) {
|
|
45485
45485
|
const i = t.lastIndexOf("?");
|
|
45486
|
-
i >= 0 && (t = t.substring(0, i)), n.register((s) => new hY(s)), n.register((s) => new Z8(s)), n.register((s) => new Wq(s, e.lightmaps, t)), n.register((s) => new uY(s, t, e)), n.register((s) => new rY(s, t)), n.register((s) => new mg(s, t)), n.register((s) => new
|
|
45486
|
+
i >= 0 && (t = t.substring(0, i)), n.register((s) => new hY(s)), n.register((s) => new Z8(s)), n.register((s) => new Wq(s, e.lightmaps, t)), n.register((s) => new uY(s, t, e)), n.register((s) => new rY(s, t)), n.register((s) => new mg(s, t)), n.register((s) => new fo(s, t, e)), n.register((s) => new lY(s)), Yj() && n.register((s) => new lg(s));
|
|
45487
45487
|
for (const s of em)
|
|
45488
45488
|
n.register((r) => new s(r));
|
|
45489
45489
|
await vY.catch((s) => {
|
|
@@ -46013,7 +46013,7 @@ class zs {
|
|
|
46013
46013
|
}
|
|
46014
46014
|
static getSphere(e, t, i) {
|
|
46015
46015
|
let s = this.spheresCache.pop();
|
|
46016
|
-
return s || (s = new ye(new
|
|
46016
|
+
return s || (s = new ye(new wo(1, 8, 8))), s.scale.set(e, e, e), s.material.wireframe = i, this.registerTimedObject(Nt.Current, s, t, this.spheresCache), s;
|
|
46017
46017
|
}
|
|
46018
46018
|
static getArrowHead(e) {
|
|
46019
46019
|
let t = this.arrowHeadsCache.pop();
|
|
@@ -46038,7 +46038,7 @@ class zs {
|
|
|
46038
46038
|
}
|
|
46039
46039
|
}
|
|
46040
46040
|
u(zs, "linesCache", []), u(zs, "spheresCache", []), u(zs, "boxesCache", []), u(zs, "arrowHeadsCache", []), u(zs, "timedObjectsBuffer", new Array()), u(zs, "timesBuffer", new Array()), u(zs, "contextPostRenderCallbacks", /* @__PURE__ */ new Map());
|
|
46041
|
-
const PY = re("gizmos"), BY = re("debugboxhelper"),
|
|
46041
|
+
const PY = re("gizmos"), BY = re("debugboxhelper"), oo = class extends Me {
|
|
46042
46042
|
constructor() {
|
|
46043
46043
|
super(...arguments);
|
|
46044
46044
|
u(this, "box", null);
|
|
@@ -46051,18 +46051,18 @@ const PY = re("gizmos"), BY = re("debugboxhelper"), ro = class extends Me {
|
|
|
46051
46051
|
if (!t)
|
|
46052
46052
|
return;
|
|
46053
46053
|
if (this.box || (this.box = new Bn()), t.type === "Mesh")
|
|
46054
|
-
|
|
46054
|
+
oo.testBox.setFromObject(t);
|
|
46055
46055
|
else if (t.type === "Group") {
|
|
46056
|
-
if (
|
|
46056
|
+
if (oo.testBox.makeEmpty(), t.children.length > 0)
|
|
46057
46057
|
for (let o = 0; o < t.children.length; o++)
|
|
46058
|
-
t.children[o].type === "Mesh" &&
|
|
46058
|
+
t.children[o].type === "Mesh" && oo.testBox.expandByObject(t);
|
|
46059
46059
|
} else {
|
|
46060
|
-
const o = Ct(t,
|
|
46061
|
-
i !== void 0 && a.multiplyScalar(i),
|
|
46060
|
+
const o = Ct(t, oo._position), a = rs(t, oo._size);
|
|
46061
|
+
i !== void 0 && a.multiplyScalar(i), oo.testBox.setFromCenterAndSize(o, a);
|
|
46062
46062
|
}
|
|
46063
46063
|
this.updateBox();
|
|
46064
|
-
const s = (r = this.box) == null ? void 0 : r.intersectsBox(
|
|
46065
|
-
return s && BY && Sl.DrawBox3(
|
|
46064
|
+
const s = (r = this.box) == null ? void 0 : r.intersectsBox(oo.testBox);
|
|
46065
|
+
return s && BY && Sl.DrawBox3(oo.testBox, 16711680, 5), s;
|
|
46066
46066
|
}
|
|
46067
46067
|
intersects(t) {
|
|
46068
46068
|
return t ? this.updateBox(!1).intersectsBox(t) : !1;
|
|
@@ -46071,7 +46071,7 @@ const PY = re("gizmos"), BY = re("debugboxhelper"), ro = class extends Me {
|
|
|
46071
46071
|
if (this.box || (this.box = new Bn()), t || this.context.time.frameCount != this._lastMatrixUpdateFrame) {
|
|
46072
46072
|
const i = this._lastMatrixUpdateFrame < 0;
|
|
46073
46073
|
this._lastMatrixUpdateFrame = this.context.time.frameCount;
|
|
46074
|
-
const s = i, r = Ct(this.gameObject,
|
|
46074
|
+
const s = i, r = Ct(this.gameObject, oo._position, s), o = rs(this.gameObject, oo._size);
|
|
46075
46075
|
this.box.setFromCenterAndSize(r, o);
|
|
46076
46076
|
}
|
|
46077
46077
|
return this.box;
|
|
@@ -46090,7 +46090,7 @@ const PY = re("gizmos"), BY = re("debugboxhelper"), ro = class extends Me {
|
|
|
46090
46090
|
}
|
|
46091
46091
|
}
|
|
46092
46092
|
};
|
|
46093
|
-
let Vo =
|
|
46093
|
+
let Vo = oo;
|
|
46094
46094
|
u(Vo, "testBox", new Bn()), u(Vo, "_position", new S()), u(Vo, "_size", new S(0.01, 0.01, 0.01));
|
|
46095
46095
|
var DY = Object.defineProperty, kY = Object.getOwnPropertyDescriptor, jF = (n, e, t, i) => {
|
|
46096
46096
|
for (var s = i > 1 ? void 0 : i ? kY(e, t) : e, r = n.length - 1, o; r >= 0; r--)
|
|
@@ -46130,7 +46130,7 @@ const tc = (Jv = class extends Me {
|
|
|
46130
46130
|
console.error("ReflectionProbe.texture must be a Texture", e);
|
|
46131
46131
|
return;
|
|
46132
46132
|
}
|
|
46133
|
-
this._texture = e, e && (e.mapping =
|
|
46133
|
+
this._texture = e, e && (e.mapping = vo, e.colorSpace = Ze, e.needsUpdate = !0);
|
|
46134
46134
|
}
|
|
46135
46135
|
get texture() {
|
|
46136
46136
|
return this._texture;
|
|
@@ -46140,7 +46140,7 @@ const tc = (Jv = class extends Me {
|
|
|
46140
46140
|
return (i = this._boxHelper) == null ? void 0 : i.isInBox(e, t);
|
|
46141
46141
|
}
|
|
46142
46142
|
awake() {
|
|
46143
|
-
this._boxHelper = this.gameObject.addNewComponent(Vo), this._boxHelper.updateBox(!0), mp && this._boxHelper.showHelper(5592320, !0), this.texture && (this.texture.mapping =
|
|
46143
|
+
this._boxHelper = this.gameObject.addNewComponent(Vo), this._boxHelper.updateBox(!0), mp && this._boxHelper.showHelper(5592320, !0), this.texture && (this.texture.mapping = vo, this.texture.colorSpace = Ze, this.texture.needsUpdate = !0);
|
|
46144
46144
|
}
|
|
46145
46145
|
onDestroy() {
|
|
46146
46146
|
const e = tc._probes.get(this.context);
|
|
@@ -46353,13 +46353,14 @@ const KF = class extends Me {
|
|
|
46353
46353
|
u(this, "handles");
|
|
46354
46354
|
u(this, "prevLayers");
|
|
46355
46355
|
u(this, "onBeforeRenderThree", (e, t, i, s, r, o) => {
|
|
46356
|
+
var a;
|
|
46356
46357
|
if (this.loadProgressiveTextures(r), r.envMapIntensity !== void 0) {
|
|
46357
|
-
const
|
|
46358
|
-
r.envMapIntensity = Math.max(0, this.context.sceneLighting.environmentIntensity /
|
|
46358
|
+
const c = this.hasLightmap ? Math.PI : 1, l = ((a = this.context.mainCameraComponent) == null ? void 0 : a.environmentIntensity) ?? 1;
|
|
46359
|
+
r.envMapIntensity = Math.max(0, l * this.context.sceneLighting.environmentIntensity / c);
|
|
46359
46360
|
}
|
|
46360
46361
|
if (this._lightmaps)
|
|
46361
|
-
for (const
|
|
46362
|
-
|
|
46362
|
+
for (const c of this._lightmaps)
|
|
46363
|
+
c.updateLightmapUniforms(r);
|
|
46363
46364
|
});
|
|
46364
46365
|
u(this, "_reflectionProbe", null);
|
|
46365
46366
|
}
|
|
@@ -46566,7 +46567,7 @@ const KF = class extends Me {
|
|
|
46566
46567
|
this.reflectionProbeUsage !== 0 && this._reflectionProbe && this._reflectionProbe.onUnset(this);
|
|
46567
46568
|
}
|
|
46568
46569
|
loadProgressiveTextures(e) {
|
|
46569
|
-
return !GY && e && e._didRequestTextureLOD === void 0 && this.allowProgressiveLoading ? (e._didRequestTextureLOD = 0, zY && console.log("Load material LOD", e.name),
|
|
46570
|
+
return !GY && e && e._didRequestTextureLOD === void 0 && this.allowProgressiveLoading ? (e._didRequestTextureLOD = 0, zY && console.log("Load material LOD", e.name), fo.assignTextureLOD(this.context, this.sourceId, e)) : Promise.resolve(!0);
|
|
46570
46571
|
}
|
|
46571
46572
|
applySettings(e) {
|
|
46572
46573
|
e.receiveShadow = this.receiveShadows, this.shadowCastingMode == 1 ? e.castShadow = !0 : e.castShadow = !1;
|
|
@@ -46596,35 +46597,35 @@ const KF = class extends Me {
|
|
|
46596
46597
|
return e.type === "Mesh" || e.type === "SkinnedMesh";
|
|
46597
46598
|
}
|
|
46598
46599
|
};
|
|
46599
|
-
let
|
|
46600
|
+
let qi = KF;
|
|
46600
46601
|
Nc([
|
|
46601
46602
|
x()
|
|
46602
|
-
],
|
|
46603
|
+
], qi.prototype, "receiveShadows", 2);
|
|
46603
46604
|
Nc([
|
|
46604
46605
|
x()
|
|
46605
|
-
],
|
|
46606
|
+
], qi.prototype, "shadowCastingMode", 2);
|
|
46606
46607
|
Nc([
|
|
46607
46608
|
x()
|
|
46608
|
-
],
|
|
46609
|
+
], qi.prototype, "lightmapIndex", 2);
|
|
46609
46610
|
Nc([
|
|
46610
46611
|
x(it)
|
|
46611
|
-
],
|
|
46612
|
+
], qi.prototype, "lightmapScaleOffset", 2);
|
|
46612
46613
|
Nc([
|
|
46613
46614
|
x()
|
|
46614
|
-
],
|
|
46615
|
+
], qi.prototype, "enableInstancing", 2);
|
|
46615
46616
|
Nc([
|
|
46616
46617
|
x()
|
|
46617
|
-
],
|
|
46618
|
+
], qi.prototype, "renderOrder", 2);
|
|
46618
46619
|
Nc([
|
|
46619
46620
|
x()
|
|
46620
|
-
],
|
|
46621
|
+
], qi.prototype, "allowOcclusionWhenDynamic", 2);
|
|
46621
46622
|
Nc([
|
|
46622
46623
|
x(Te)
|
|
46623
|
-
],
|
|
46624
|
+
], qi.prototype, "probeAnchor", 2);
|
|
46624
46625
|
Nc([
|
|
46625
46626
|
x()
|
|
46626
|
-
],
|
|
46627
|
-
class pM extends
|
|
46627
|
+
], qi.prototype, "reflectionProbeUsage", 2);
|
|
46628
|
+
class pM extends qi {
|
|
46628
46629
|
}
|
|
46629
46630
|
class JF extends pM {
|
|
46630
46631
|
awake() {
|
|
@@ -46984,7 +46985,7 @@ function $F(n, e, t) {
|
|
|
46984
46985
|
return;
|
|
46985
46986
|
let i, s, r;
|
|
46986
46987
|
n instanceof ye && (s = n.geometry, r = n.material);
|
|
46987
|
-
const o = se.getComponent(n,
|
|
46988
|
+
const o = se.getComponent(n, qi);
|
|
46988
46989
|
if (o && !o.enabled && (s = void 0, r = void 0), n instanceof ye && r && (r instanceof Xo || r instanceof hi) && !(n instanceof fu)) {
|
|
46989
46990
|
const a = _v(n);
|
|
46990
46991
|
i = new Tr(n.uuid, a, n.matrix, s, r);
|
|
@@ -47486,8 +47487,8 @@ const D0 = class {
|
|
|
47486
47487
|
t.beginBlock(`def Preliminary_Action "${this.id}"`), this.affectedObjects && (typeof this.affectedObjects != "string" && (this.affectedObjects = WC(this.affectedObjects, e)), t.appendLine("rel affectedObjects = " + this.affectedObjects)), typeof this.duration == "number" && t.appendLine(`double duration = ${this.duration} `), this.easeType && t.appendLine(`token easeType = "${this.easeType}"`), this.tokenId && t.appendLine(`token info:id = "${this.tokenId}"`), this.motionType && t.appendLine(`token motionType = "${this.motionType}"`), typeof this.moveDistance == "number" && t.appendLine(`double moveDistance = ${this.moveDistance} `), this.style && t.appendLine(`token style = "${this.style}"`), this.type && t.appendLine(`token type = "${this.type}"`), this.front && t.appendLine(`vector3d front = (${this.front.x}, ${this.front.y}, ${this.front.z})`), this.up && t.appendLine(`vector3d upVector = (${this.up.x}, ${this.up.y}, ${this.up.z})`), typeof this.start == "number" && t.appendLine(`double start = ${this.start} `), typeof this.animationSpeed == "number" && t.appendLine(`double animationSpeed = ${this.animationSpeed} `), typeof this.reversed == "boolean" && t.appendLine(`bool reversed = ${this.reversed}`), typeof this.pingPong == "boolean" && t.appendLine(`bool reverses = ${this.pingPong}`), this.xFormTarget && (typeof this.xFormTarget != "string" && (this.xFormTarget = WC(this.xFormTarget, e)), t.appendLine(`rel xformTarget = ${this.xFormTarget}`)), typeof this.audio == "string" && t.appendLine(`asset audio = @${this.audio}@`), typeof this.gain == "number" && t.appendLine(`double gain = ${this.gain}`), typeof this.auralMode == "string" && t.appendLine(`token auralMode = "${this.auralMode}"`), typeof this.multiplePerformOperation == "string" && t.appendLine(`token multiplePerformOperation = "${this.multiplePerformOperation}"`), t.closeBlock();
|
|
47487
47488
|
}
|
|
47488
47489
|
};
|
|
47489
|
-
let
|
|
47490
|
-
u(
|
|
47490
|
+
let po = D0;
|
|
47491
|
+
u(po, "global_id", 0);
|
|
47491
47492
|
let Md = class Ad {
|
|
47492
47493
|
constructor(e, t, i) {
|
|
47493
47494
|
u(this, "x", 0);
|
|
@@ -47520,7 +47521,7 @@ class fi {
|
|
|
47520
47521
|
return new Wh("group_" + Wh.getId(), e).makeParallel();
|
|
47521
47522
|
}
|
|
47522
47523
|
static fadeAction(e, t, i) {
|
|
47523
|
-
const s = new
|
|
47524
|
+
const s = new po(e);
|
|
47524
47525
|
return s.tokenId = "Visibility", s.type = i ? "show" : "hide", s.duration = t, s.style = "basic", s.motionType = "none", s.moveDistance = 0, s.easeType = "none", s;
|
|
47525
47526
|
}
|
|
47526
47527
|
/**
|
|
@@ -47529,7 +47530,7 @@ class fi {
|
|
|
47529
47530
|
* @param duration in seconds! 0 means play to end
|
|
47530
47531
|
*/
|
|
47531
47532
|
static startAnimationAction(e, t, i = 0, s = 1, r = !1, o = !1) {
|
|
47532
|
-
const a = new
|
|
47533
|
+
const a = new po(e);
|
|
47533
47534
|
if (a.tokenId = "StartAnimation", a.start = t, a.duration = i, a.animationSpeed = s, a.reversed = r, a.pingPong = o, r && (a.start -= i), o) {
|
|
47534
47535
|
a.pingPong = !1;
|
|
47535
47536
|
const c = a.clone();
|
|
@@ -47538,23 +47539,23 @@ class fi {
|
|
|
47538
47539
|
return a7 && console.log("Start Animation Action", a), a;
|
|
47539
47540
|
}
|
|
47540
47541
|
static waitAction(e) {
|
|
47541
|
-
const t = new
|
|
47542
|
+
const t = new po();
|
|
47542
47543
|
return t.tokenId = "Wait", t.duration = e, t;
|
|
47543
47544
|
}
|
|
47544
47545
|
static lookAtCameraAction(e, t = 9999999999999, i, s) {
|
|
47545
|
-
const r = new
|
|
47546
|
+
const r = new po(e);
|
|
47546
47547
|
return r.tokenId = "LookAtCamera", r.duration = t, r.front = i ?? Md.forward, r.up = s ?? Md.up, r;
|
|
47547
47548
|
}
|
|
47548
47549
|
static emphasize(e, t, i = 2, s = 1, r = "basic") {
|
|
47549
|
-
const o = new
|
|
47550
|
+
const o = new po(e);
|
|
47550
47551
|
return o.tokenId = "Emphasize", o.duration = t, o.style = r ?? "basic", o.motionType = mM[i], o.moveDistance = s, o;
|
|
47551
47552
|
}
|
|
47552
47553
|
static transformAction(e, t, i, s, r = "inout") {
|
|
47553
|
-
const o = new
|
|
47554
|
+
const o = new po(e);
|
|
47554
47555
|
return o.tokenId = "Transform", o.duration = i, o.type = s, o.easeType = r, Array.isArray(t) && console.error("Transform target must not be an array", t), o.xFormTarget = t, o;
|
|
47555
47556
|
}
|
|
47556
47557
|
static playAudioAction(e, t, i = "play", s = 1, r = "spatial") {
|
|
47557
|
-
const o = new
|
|
47558
|
+
const o = new po(e);
|
|
47558
47559
|
return o.tokenId = "Audio", o.type = i, o.audio = t, o.gain = s, o.auralMode = r, o.multiplePerformOperation = "allow", o;
|
|
47559
47560
|
}
|
|
47560
47561
|
}
|
|
@@ -47657,7 +47658,7 @@ var u7 = Object.defineProperty, d7 = Object.getOwnPropertyDescriptor, Nm = (n, e
|
|
|
47657
47658
|
return i && s && u7(e, t, s), s;
|
|
47658
47659
|
};
|
|
47659
47660
|
const al = re("debuganimation");
|
|
47660
|
-
class
|
|
47661
|
+
class xo extends Me {
|
|
47661
47662
|
constructor() {
|
|
47662
47663
|
super(...arguments);
|
|
47663
47664
|
u(this, "playAutomatically", !0);
|
|
@@ -47795,19 +47796,19 @@ class _o extends Me {
|
|
|
47795
47796
|
}
|
|
47796
47797
|
Nm([
|
|
47797
47798
|
x()
|
|
47798
|
-
],
|
|
47799
|
+
], xo.prototype, "playAutomatically", 2);
|
|
47799
47800
|
Nm([
|
|
47800
47801
|
x()
|
|
47801
|
-
],
|
|
47802
|
+
], xo.prototype, "randomStartTime", 2);
|
|
47802
47803
|
Nm([
|
|
47803
47804
|
x()
|
|
47804
|
-
],
|
|
47805
|
+
], xo.prototype, "loop", 2);
|
|
47805
47806
|
Nm([
|
|
47806
47807
|
x()
|
|
47807
|
-
],
|
|
47808
|
+
], xo.prototype, "clampWhenFinished", 2);
|
|
47808
47809
|
Nm([
|
|
47809
47810
|
x(Qs)
|
|
47810
|
-
],
|
|
47811
|
+
], xo.prototype, "clips", 1);
|
|
47811
47812
|
class f7 {
|
|
47812
47813
|
constructor(e, t, i, s) {
|
|
47813
47814
|
u(this, "mixer");
|
|
@@ -48658,15 +48659,15 @@ function y7(n) {
|
|
|
48658
48659
|
const e = n[wy];
|
|
48659
48660
|
return e !== void 0 && e.size > 0;
|
|
48660
48661
|
}
|
|
48661
|
-
|
|
48662
|
+
Qi.registerCallback(ir.ContextCreated, (n) => {
|
|
48662
48663
|
const e = n.context.domElement.getAttribute("autoplay");
|
|
48663
48664
|
if (e !== void 0 && (e === "" || e === "true") && n.files)
|
|
48664
48665
|
for (const t of n.files)
|
|
48665
48666
|
se.foreachComponent(t.file.scene, (s) => {
|
|
48666
48667
|
if (s.enabled !== !1) {
|
|
48667
|
-
if (s instanceof
|
|
48668
|
+
if (s instanceof xo && s.playAutomatically || s instanceof js || s instanceof Pl && s.playOnAwake === !0)
|
|
48668
48669
|
return !0;
|
|
48669
|
-
if (s instanceof
|
|
48670
|
+
if (s instanceof xo)
|
|
48670
48671
|
return s.playAutomatically = !0, !0;
|
|
48671
48672
|
if (s instanceof Pl)
|
|
48672
48673
|
return s.playOnAwake = !0, !0;
|
|
@@ -48685,7 +48686,7 @@ function b7(n) {
|
|
|
48685
48686
|
if (!a && (a = n.scene.getObjectByProperty("uuid", o), !a))
|
|
48686
48687
|
continue;
|
|
48687
48688
|
let c = e(a);
|
|
48688
|
-
c || (c = _f(n.scene, new
|
|
48689
|
+
c || (c = _f(n.scene, new xo()));
|
|
48689
48690
|
const l = c.animations = c.animations || [];
|
|
48690
48691
|
i.name_animator = c.name, l.indexOf(i) < 0 && l.push(i);
|
|
48691
48692
|
}
|
|
@@ -48698,7 +48699,7 @@ function b7(n) {
|
|
|
48698
48699
|
if (i && i.length > 0)
|
|
48699
48700
|
for (let r = 0; r < i.length; r++) {
|
|
48700
48701
|
const o = i[r];
|
|
48701
|
-
if (o instanceof js || o instanceof
|
|
48702
|
+
if (o instanceof js || o instanceof xo)
|
|
48702
48703
|
return t;
|
|
48703
48704
|
}
|
|
48704
48705
|
return e(t.parent);
|
|
@@ -50041,7 +50042,7 @@ class G7 extends Te {
|
|
|
50041
50042
|
this.intersectBoxObject(e) ? e.onPress() : e.onClear(), e.isPressed() && e.whilePressed();
|
|
50042
50043
|
}
|
|
50043
50044
|
}
|
|
50044
|
-
const H7 = 0.05, UB = 0.02, Cv = 0.01, NB = 0.02, zB = 1, sd = 0.4, V7 = 2e-3, Ap = 0.01, Ev = 3e-3, GB = 0.035, bi = 16,
|
|
50045
|
+
const H7 = 0.05, UB = 0.02, Cv = 0.01, NB = 0.02, zB = 1, sd = 0.4, V7 = 2e-3, Ap = 0.01, Ev = 3e-3, GB = 0.035, bi = 16, Kr = 12, yw = 110, Q7 = /* @__PURE__ */ new S(0, 1, 0), W7 = /* @__PURE__ */ new S(0, 0, 1), j7 = 0.02, q7 = 1.5;
|
|
50045
50046
|
class X7 extends Te {
|
|
50046
50047
|
constructor(e, t) {
|
|
50047
50048
|
super(), this.hand = e, this.controller = t, this.motionController = null, this.envMap = null, this.mesh = null, this.pointerGeometry = null, this.pointerMesh = null, this.pointerObject = null, this.pinched = !1, this.attached = !1, this.cursorObject = null, this.raycaster = null, this._onConnected = this._onConnected.bind(this), this._onDisconnected = this._onDisconnected.bind(this), this.hand.addEventListener("connected", this._onConnected), this.hand.addEventListener("disconnected", this._onDisconnected);
|
|
@@ -50073,12 +50074,12 @@ class X7 extends Te {
|
|
|
50073
50074
|
Math.cos(Math.PI * yw / 180) * e,
|
|
50074
50075
|
0
|
|
50075
50076
|
);
|
|
50076
|
-
for (let l = 0; l <
|
|
50077
|
+
for (let l = 0; l < Kr; l++)
|
|
50077
50078
|
this._drawVerticesRing(t, s, l + 1), s.applyAxisAngle(
|
|
50078
50079
|
Q7,
|
|
50079
|
-
Math.PI * yw / 180 / (
|
|
50080
|
+
Math.PI * yw / 180 / (Kr * -2)
|
|
50080
50081
|
);
|
|
50081
|
-
const r = bi * (1 +
|
|
50082
|
+
const r = bi * (1 + Kr), o = bi * (1 + Kr) + 1, a = new S(
|
|
50082
50083
|
0,
|
|
50083
50084
|
0,
|
|
50084
50085
|
-1 * (GB - e)
|
|
@@ -50093,12 +50094,12 @@ class X7 extends Te {
|
|
|
50093
50094
|
createPointer() {
|
|
50094
50095
|
let e, t;
|
|
50095
50096
|
const i = new Array(
|
|
50096
|
-
((
|
|
50097
|
+
((Kr + 1) * bi + 2) * 3
|
|
50097
50098
|
).fill(0), s = [];
|
|
50098
50099
|
for (this.pointerGeometry = new vt(), this.pointerGeometry.setAttribute(
|
|
50099
50100
|
"position",
|
|
50100
50101
|
new ot(i, 3)
|
|
50101
|
-
), this._updatePointerVertices(Ap), e = 0; e <
|
|
50102
|
+
), this._updatePointerVertices(Ap), e = 0; e < Kr; e++) {
|
|
50102
50103
|
for (t = 0; t < bi - 1; t++)
|
|
50103
50104
|
s.push(
|
|
50104
50105
|
e * bi + t,
|
|
@@ -50119,21 +50120,21 @@ class X7 extends Te {
|
|
|
50119
50120
|
(e + 2) * bi - 1
|
|
50120
50121
|
);
|
|
50121
50122
|
}
|
|
50122
|
-
const r = bi * (1 +
|
|
50123
|
+
const r = bi * (1 + Kr), o = bi * (1 + Kr) + 1;
|
|
50123
50124
|
for (e = 0; e < bi - 1; e++)
|
|
50124
50125
|
s.push(r, e + 1, e), s.push(
|
|
50125
50126
|
o,
|
|
50126
|
-
e + bi *
|
|
50127
|
-
e + bi *
|
|
50127
|
+
e + bi * Kr,
|
|
50128
|
+
e + bi * Kr + 1
|
|
50128
50129
|
);
|
|
50129
50130
|
s.push(r, 0, bi - 1), s.push(
|
|
50130
50131
|
o,
|
|
50131
|
-
bi * (
|
|
50132
|
-
bi *
|
|
50132
|
+
bi * (Kr + 1) - 1,
|
|
50133
|
+
bi * Kr
|
|
50133
50134
|
);
|
|
50134
50135
|
const a = new hi();
|
|
50135
50136
|
a.transparent = !0, a.opacity = sd, this.pointerGeometry.setIndex(s), this.pointerMesh = new ye(this.pointerGeometry, a), this.pointerMesh.position.set(0, 0, -1 * Ap), this.pointerObject = new Te(), this.pointerObject.add(this.pointerMesh), this.raycaster = new Af();
|
|
50136
|
-
const c = new
|
|
50137
|
+
const c = new wo(j7, 10, 10), l = new hi();
|
|
50137
50138
|
l.transparent = !0, l.opacity = sd, this.cursorObject = new ye(c, l), this.pointerObject.add(this.cursorObject), this.add(this.pointerObject), this.pointerObject.layers.mask = this.layers.mask, this.pointerMesh.layers.mask = this.layers.mask;
|
|
50138
50139
|
}
|
|
50139
50140
|
_updateRaycaster() {
|
|
@@ -50447,7 +50448,7 @@ function rK(n, e) {
|
|
|
50447
50448
|
const { type: i, touchPointNodeName: s, visualResponses: r } = t;
|
|
50448
50449
|
if (i === Ki.ComponentType.TOUCHPAD)
|
|
50449
50450
|
if (t.touchPointNode = e.getObjectByName(s), t.touchPointNode) {
|
|
50450
|
-
const o = new
|
|
50451
|
+
const o = new wo(1e-3), a = new hi({ color: 255 }), c = new ye(o, a);
|
|
50451
50452
|
t.touchPointNode.add(c);
|
|
50452
50453
|
} else
|
|
50453
50454
|
console.warn(`Could not find touch dot, ${t.touchPointNodeName}, in touchpad component ${t.id}`);
|
|
@@ -50639,22 +50640,22 @@ const oI = class {
|
|
|
50639
50640
|
return (this.Mask & e) !== 0;
|
|
50640
50641
|
}
|
|
50641
50642
|
Set(e) {
|
|
50642
|
-
vd && console.warn("Set XR flag state to", e), this.Mask = e,
|
|
50643
|
+
vd && console.warn("Set XR flag state to", e), this.Mask = e, mo.Apply();
|
|
50643
50644
|
}
|
|
50644
50645
|
Enable(e) {
|
|
50645
|
-
this.Mask |= e,
|
|
50646
|
+
this.Mask |= e, mo.Apply();
|
|
50646
50647
|
}
|
|
50647
50648
|
Disable(e) {
|
|
50648
|
-
this.Mask &= ~e,
|
|
50649
|
+
this.Mask &= ~e, mo.Apply();
|
|
50649
50650
|
}
|
|
50650
50651
|
Toggle(e) {
|
|
50651
|
-
this.Mask ^= e,
|
|
50652
|
+
this.Mask ^= e, mo.Apply();
|
|
50652
50653
|
}
|
|
50653
50654
|
EnableAll() {
|
|
50654
|
-
this.Mask = -1,
|
|
50655
|
+
this.Mask = -1, mo.Apply();
|
|
50655
50656
|
}
|
|
50656
50657
|
DisableAll() {
|
|
50657
|
-
this.Mask = 0,
|
|
50658
|
+
this.Mask = 0, mo.Apply();
|
|
50658
50659
|
}
|
|
50659
50660
|
};
|
|
50660
50661
|
let rr = oI;
|
|
@@ -50697,10 +50698,10 @@ const ic = (Pp = class extends Me {
|
|
|
50697
50698
|
}
|
|
50698
50699
|
}
|
|
50699
50700
|
}, u(Pp, "registry", []), u(Pp, "firstApply"), u(Pp, "buffer", new rr()), Pp);
|
|
50700
|
-
let
|
|
50701
|
+
let mo = ic;
|
|
50701
50702
|
lK([
|
|
50702
50703
|
x()
|
|
50703
|
-
],
|
|
50704
|
+
], mo.prototype, "visibleIn", 2);
|
|
50704
50705
|
const dl = re("debugavatar"), No = class extends Me {
|
|
50705
50706
|
constructor() {
|
|
50706
50707
|
super(...arguments);
|
|
@@ -50822,8 +50823,8 @@ const Rg = class {
|
|
|
50822
50823
|
dl && console.log(e);
|
|
50823
50824
|
const i = await Rg.loader.getOrCreateNewAvatarInstance(this.context, e);
|
|
50824
50825
|
if (dl && console.log(i, i == null ? void 0 : i.isValid, this.lastAvatarId, e), i != null && i.isValid) {
|
|
50825
|
-
if (this.root = i.root, this.root.position.set(0, 0, 0), this.root.quaternion.set(0, 0, 0, 1), this.root.scale.set(1, 1, 1), this.avatarMarker = se.addNewComponent(this.root, os), this.avatarMarker.connectionId = this.guid, this.avatarMarker.avatar = this, this.head && this.head !== i.head && ((s = this.head) == null || s.removeFromParent()), this.head = i.head, this.headScale.copy(this.head.scale), this.head && !this.isLocalAvatar && hr.Add(this.context, this.head, this.avatarMarker), i.leftHand && ((r = this.handLeft) == null || r.removeFromParent()), this.handLeft = i.leftHand ?? this.handLeft, this.handLeft ? this.handLeftScale.copy(this.handLeft.scale) : this.handLeftScale.set(1, 1, 1), i.rigthHand && ((o = this.handRight) == null || o.removeFromParent()), this.handRight = i.rigthHand ?? this.handRight, this.handRight ? this.handRightScale.copy(this.handRight.scale) : this.handRightScale.set(1, 1, 1), this.context.scene.add(this.root), this.flags == null && (this.flags = []), this.flags.length = 0, this.flags.push(...se.getComponentsInChildren(this.root,
|
|
50826
|
-
const a = se.addNewComponent(this.head,
|
|
50826
|
+
if (this.root = i.root, this.root.position.set(0, 0, 0), this.root.quaternion.set(0, 0, 0, 1), this.root.scale.set(1, 1, 1), this.avatarMarker = se.addNewComponent(this.root, os), this.avatarMarker.connectionId = this.guid, this.avatarMarker.avatar = this, this.head && this.head !== i.head && ((s = this.head) == null || s.removeFromParent()), this.head = i.head, this.headScale.copy(this.head.scale), this.head && !this.isLocalAvatar && hr.Add(this.context, this.head, this.avatarMarker), i.leftHand && ((r = this.handLeft) == null || r.removeFromParent()), this.handLeft = i.leftHand ?? this.handLeft, this.handLeft ? this.handLeftScale.copy(this.handLeft.scale) : this.handLeftScale.set(1, 1, 1), i.rigthHand && ((o = this.handRight) == null || o.removeFromParent()), this.handRight = i.rigthHand ?? this.handRight, this.handRight ? this.handRightScale.copy(this.handRight.scale) : this.handRightScale.set(1, 1, 1), this.context.scene.add(this.root), this.flags == null && (this.flags = []), this.flags.length = 0, this.flags.push(...se.getComponentsInChildren(this.root, mo)), this.flags.length <= 0 && this.head) {
|
|
50827
|
+
const a = se.addNewComponent(this.head, mo);
|
|
50827
50828
|
a.visibleIn = vn.ThirdPerson | vn.VR, this.flags.push(a), dl && console.log("Added flag to head: " + a.visibleIn, this.head.name);
|
|
50828
50829
|
}
|
|
50829
50830
|
return dl && console.log("[Avatar], is Local? ", this.isLocalAvatar, this.root), this.updateFlags(), this.updateVisibility(), !0;
|
|
@@ -50935,7 +50936,7 @@ class Gm extends Me {
|
|
|
50935
50936
|
}
|
|
50936
50937
|
}
|
|
50937
50938
|
var nc = /* @__PURE__ */ ((n) => (n[n.Average = 0] = "Average", n[n.Multiply = 1] = "Multiply", n[n.Minimum = 2] = "Minimum", n[n.Maximum = 3] = "Maximum", n))(nc || {}), _M = /* @__PURE__ */ ((n) => (n[n.Discrete = 0] = "Discrete", n[n.Continuous = 1] = "Continuous", n))(_M || {}), mn = /* @__PURE__ */ ((n) => (n[n.None = 0] = "None", n[n.FreezePositionX = 2] = "FreezePositionX", n[n.FreezePositionY = 4] = "FreezePositionY", n[n.FreezePositionZ = 8] = "FreezePositionZ", n[n.FreezePosition = 14] = "FreezePosition", n[n.FreezeRotationX = 16] = "FreezeRotationX", n[n.FreezeRotationY = 32] = "FreezeRotationY", n[n.FreezeRotationZ = 64] = "FreezeRotationZ", n[n.FreezeRotation = 112] = "FreezeRotation", n[n.FreezeAll = 126] = "FreezeAll", n))(mn || {}), Gp = /* @__PURE__ */ ((n) => (n[n.None = 0] = "None", n[n.X = 2] = "X", n[n.Y = 4] = "Y", n[n.Z = 8] = "Z", n[n.All = -1] = "All", n))(Gp || {});
|
|
50938
|
-
const
|
|
50939
|
+
const So = function(n, e) {
|
|
50939
50940
|
return function(t, i, s) {
|
|
50940
50941
|
uK(t, i, s, n, e);
|
|
50941
50942
|
};
|
|
@@ -51237,39 +51238,39 @@ const YC = (cS = class extends Me {
|
|
|
51237
51238
|
}, u(cS, "tempPosition", new S()), cS);
|
|
51238
51239
|
let en = YC;
|
|
51239
51240
|
zc([
|
|
51240
|
-
|
|
51241
|
+
So(),
|
|
51241
51242
|
x()
|
|
51242
51243
|
], en.prototype, "mass", 2);
|
|
51243
51244
|
zc([
|
|
51244
|
-
|
|
51245
|
+
So(),
|
|
51245
51246
|
x()
|
|
51246
51247
|
], en.prototype, "useGravity", 2);
|
|
51247
51248
|
zc([
|
|
51248
|
-
|
|
51249
|
+
So(),
|
|
51249
51250
|
x()
|
|
51250
51251
|
], en.prototype, "constraints", 2);
|
|
51251
51252
|
zc([
|
|
51252
|
-
|
|
51253
|
+
So(),
|
|
51253
51254
|
x()
|
|
51254
51255
|
], en.prototype, "isKinematic", 2);
|
|
51255
51256
|
zc([
|
|
51256
|
-
|
|
51257
|
+
So(),
|
|
51257
51258
|
x()
|
|
51258
51259
|
], en.prototype, "drag", 2);
|
|
51259
51260
|
zc([
|
|
51260
|
-
|
|
51261
|
+
So(),
|
|
51261
51262
|
x()
|
|
51262
51263
|
], en.prototype, "angularDrag", 2);
|
|
51263
51264
|
zc([
|
|
51264
|
-
|
|
51265
|
+
So(),
|
|
51265
51266
|
x()
|
|
51266
51267
|
], en.prototype, "detectCollisions", 2);
|
|
51267
51268
|
zc([
|
|
51268
|
-
|
|
51269
|
+
So(),
|
|
51269
51270
|
x()
|
|
51270
51271
|
], en.prototype, "sleepThreshold", 2);
|
|
51271
51272
|
zc([
|
|
51272
|
-
|
|
51273
|
+
So(),
|
|
51273
51274
|
x()
|
|
51274
51275
|
], en.prototype, "collisionDetectionMode", 2);
|
|
51275
51276
|
class kr {
|
|
@@ -51575,7 +51576,7 @@ qo.d(wn, {
|
|
|
51575
51576
|
),
|
|
51576
51577
|
tx: () => (
|
|
51577
51578
|
/* reexport */
|
|
51578
|
-
|
|
51579
|
+
ho
|
|
51579
51580
|
),
|
|
51580
51581
|
hj: () => (
|
|
51581
51582
|
/* reexport */
|
|
@@ -51623,7 +51624,7 @@ qo.d(wM, {
|
|
|
51623
51624
|
asPreprocessorValueTransformer: () => MU,
|
|
51624
51625
|
toPreprocessorTriggerTransformer: () => kM,
|
|
51625
51626
|
toUserDataTransformer: () => EJ,
|
|
51626
|
-
uniformOrUserDataTransformer: () =>
|
|
51627
|
+
uniformOrUserDataTransformer: () => co
|
|
51627
51628
|
});
|
|
51628
51629
|
const KC = {
|
|
51629
51630
|
fontFamily: null,
|
|
@@ -51874,8 +51875,8 @@ var _K = (n) => {
|
|
|
51874
51875
|
var e = {};
|
|
51875
51876
|
return qo.d(e, n), e;
|
|
51876
51877
|
};
|
|
51877
|
-
const He = _K({ BackSide: () => hn, BufferAttribute: () => ct, BufferGeometry: () => vt, Color: () => _e, DoubleSide: () => xi, EventDispatcher: () => Un, FileLoader: () => Dn, FrontSide: () => Es, LinearFilter: () => Ft, Mesh: () => ye, MeshBasicMaterial: () => hi, Object3D: () => Te, Plane: () =>
|
|
51878
|
-
class
|
|
51878
|
+
const He = _K({ BackSide: () => hn, BufferAttribute: () => ct, BufferGeometry: () => vt, Color: () => _e, DoubleSide: () => xi, EventDispatcher: () => Un, FileLoader: () => Dn, FrontSide: () => Es, LinearFilter: () => Ft, Mesh: () => ye, MeshBasicMaterial: () => hi, Object3D: () => Te, Plane: () => go, PlaneGeometry: () => ls, ShaderMaterial: () => Lt, Texture: () => kt, TextureLoader: () => Ec, Vector2: () => te, Vector3: () => S, Vector4: () => it });
|
|
51879
|
+
class Gi extends mi {
|
|
51879
51880
|
/**
|
|
51880
51881
|
*
|
|
51881
51882
|
* @param {string} propertyId
|
|
@@ -51952,7 +51953,7 @@ class zi extends mi {
|
|
|
51952
51953
|
return t ? t[`_${this._id}`].getInheritedInput(t) : this.getDefaultValue();
|
|
51953
51954
|
}
|
|
51954
51955
|
}
|
|
51955
|
-
class Wb extends
|
|
51956
|
+
class Wb extends Gi {
|
|
51956
51957
|
constructor(e, t) {
|
|
51957
51958
|
super(e, t, !1), this._input = new He.Vector4(0, 0, 0, 0), this._inline = null, this._value = new He.Vector4(0, 0, 0, 0);
|
|
51958
51959
|
}
|
|
@@ -52448,7 +52449,7 @@ function kK(n, e) {
|
|
|
52448
52449
|
e._needsUpdate = !0, n._glyphs._needsProcess = !0, e._fontVariant.removeEventListener("ready", e._handleFontReadyClosure), e._handleFontReadyClosure = null;
|
|
52449
52450
|
};
|
|
52450
52451
|
}
|
|
52451
|
-
class OK extends
|
|
52452
|
+
class OK extends Gi {
|
|
52452
52453
|
constructor(e) {
|
|
52453
52454
|
super("display", e), this._value = "flex", this._allowsInherit = !1, this._needsUpdate = !1, this.isValidValue = FK;
|
|
52454
52455
|
}
|
|
@@ -52460,7 +52461,7 @@ const LK = ["none", "flex"];
|
|
|
52460
52461
|
function FK(n) {
|
|
52461
52462
|
return LK.indexOf(n) === -1 ? (console.warn(`(.style) display value '${n}' is not valid. Aborted`), !1) : !0;
|
|
52462
52463
|
}
|
|
52463
|
-
class UK extends
|
|
52464
|
+
class UK extends Gi {
|
|
52464
52465
|
constructor(e) {
|
|
52465
52466
|
super("boxSizing", e), this._allowsInherit = !1, this.isValidValue = zK;
|
|
52466
52467
|
}
|
|
@@ -52472,7 +52473,7 @@ const NK = ["border-box", "content-box"];
|
|
|
52472
52473
|
function zK(n) {
|
|
52473
52474
|
return NK.indexOf(n) === -1 ? (console.warn(`(.style) boxSizing value '${n}' is not valid. Aborted`), !1) : !0;
|
|
52474
52475
|
}
|
|
52475
|
-
class nm extends
|
|
52476
|
+
class nm extends Gi {
|
|
52476
52477
|
constructor(e, t) {
|
|
52477
52478
|
super(e, t, !1), this._value = new He.Color(), this.output = this._outputValue;
|
|
52478
52479
|
}
|
|
@@ -52487,7 +52488,7 @@ class nm extends zi {
|
|
|
52487
52488
|
this._input = this._inline = e, this._needsUpdate = !0;
|
|
52488
52489
|
}
|
|
52489
52490
|
}
|
|
52490
|
-
class bw extends
|
|
52491
|
+
class bw extends Gi {
|
|
52491
52492
|
/**
|
|
52492
52493
|
*
|
|
52493
52494
|
* @param {string} propertyId
|
|
@@ -52503,7 +52504,7 @@ class bw extends zi {
|
|
|
52503
52504
|
function GK(n) {
|
|
52504
52505
|
return n < 0 && n > 1 ? (console.warn(`(.style) styleFactorProperty('${this.id}') value '${n}' is not valid)`), !1) : !0;
|
|
52505
52506
|
}
|
|
52506
|
-
class HK extends
|
|
52507
|
+
class HK extends Gi {
|
|
52507
52508
|
constructor(e) {
|
|
52508
52509
|
super("backgroundImage", e, !0), this._input = null, this._allowsInherit = !1, this._textureSize = new He.Vector2(1, 1), this.isValidValue = VK;
|
|
52509
52510
|
}
|
|
@@ -52537,7 +52538,7 @@ class HK extends zi {
|
|
|
52537
52538
|
function VK(n) {
|
|
52538
52539
|
return !0;
|
|
52539
52540
|
}
|
|
52540
|
-
class QK extends
|
|
52541
|
+
class QK extends Gi {
|
|
52541
52542
|
constructor(e) {
|
|
52542
52543
|
super("backgroundSize", e, !0), this.isValidValue = jK, this.output = this._outputValue;
|
|
52543
52544
|
}
|
|
@@ -52546,7 +52547,7 @@ const WK = ["cover", "contain", "stretch"];
|
|
|
52546
52547
|
function jK(n) {
|
|
52547
52548
|
return WK.indexOf(n) === -1 ? (console.warn(`(.style) backgroundSize value '${n}' is not valid. Aborted`), !1) : !0;
|
|
52548
52549
|
}
|
|
52549
|
-
class qK extends
|
|
52550
|
+
class qK extends Gi {
|
|
52550
52551
|
constructor(e) {
|
|
52551
52552
|
super("overflow", e, !0), this.isValidValue = YK, this._clippingPlanes = null, this._renderStrategy = this._emptyRender;
|
|
52552
52553
|
}
|
|
@@ -53034,12 +53035,12 @@ class eJ extends mi {
|
|
|
53034
53035
|
const tJ = ["start", "center", "end", "stretch"], iJ = function(n) {
|
|
53035
53036
|
return tJ.indexOf(n) === -1 ? (console.warn(`(.style) alignItems value '${n}' is not valid. Aborted`), !1) : !0;
|
|
53036
53037
|
};
|
|
53037
|
-
class CM extends
|
|
53038
|
+
class CM extends Gi {
|
|
53038
53039
|
constructor() {
|
|
53039
53040
|
super("alignItems", "inherit", !0), this.isValidValue = iJ;
|
|
53040
53041
|
}
|
|
53041
53042
|
}
|
|
53042
|
-
class EM extends
|
|
53043
|
+
class EM extends Gi {
|
|
53043
53044
|
constructor() {
|
|
53044
53045
|
super("textAlign", "inherit", !0), this.isValidValue = sJ;
|
|
53045
53046
|
}
|
|
@@ -53047,7 +53048,7 @@ class EM extends zi {
|
|
|
53047
53048
|
const nJ = ["left", "right", "center", "justify", "justify-left", "justify-right", "justify-center"], sJ = function(n) {
|
|
53048
53049
|
return nJ.indexOf(n) === -1 ? (console.warn(`(.style) textAlign value '${n}' is not valid. Aborted`), !1) : !0;
|
|
53049
53050
|
};
|
|
53050
|
-
class MM extends
|
|
53051
|
+
class MM extends Gi {
|
|
53051
53052
|
constructor() {
|
|
53052
53053
|
super("flexDirection", "inherit", !0), this.isValid = oJ;
|
|
53053
53054
|
}
|
|
@@ -53056,7 +53057,7 @@ const rJ = ["row", "row-reverse", "column", "column-reverse"];
|
|
|
53056
53057
|
function oJ(n) {
|
|
53057
53058
|
return rJ.indexOf(n) === -1 ? (console.warn(`(.style) flexDirection value '${n}' is not valid. Aborted`), !1) : !0;
|
|
53058
53059
|
}
|
|
53059
|
-
class TM extends
|
|
53060
|
+
class TM extends Gi {
|
|
53060
53061
|
constructor() {
|
|
53061
53062
|
super("justifyContent", "inherit", !0), this.isValidValue = cJ;
|
|
53062
53063
|
}
|
|
@@ -53065,7 +53066,7 @@ const aJ = ["start", "center", "end", "space-between", "space-around", "space-ev
|
|
|
53065
53066
|
function cJ(n) {
|
|
53066
53067
|
return aJ.indexOf(n) === -1 ? (console.warn(`(.style) justifyContent value '${n}' is not valid. Aborted`), !1) : !0;
|
|
53067
53068
|
}
|
|
53068
|
-
class lJ extends
|
|
53069
|
+
class lJ extends Gi {
|
|
53069
53070
|
constructor() {
|
|
53070
53071
|
super("order", 0, !0), this._value = 0, this._input = 0, this._allowsInherit = !1;
|
|
53071
53072
|
}
|
|
@@ -53074,7 +53075,7 @@ class lJ extends zi {
|
|
|
53074
53075
|
this._value = this._inheritedInput, e._parent._value && (e._parent._value._children._needsProcess = !0);
|
|
53075
53076
|
}
|
|
53076
53077
|
}
|
|
53077
|
-
class vU extends
|
|
53078
|
+
class vU extends Gi {
|
|
53078
53079
|
constructor() {
|
|
53079
53080
|
super("position", "static", !0), this._allowsInherit = !1, this._value = "static", this._needsUpdate = !1, this.computeOutputValue = this._computeFromInherited, this.isValidValue = uJ;
|
|
53080
53081
|
}
|
|
@@ -53086,7 +53087,7 @@ const hJ = ["static", "absolute"];
|
|
|
53086
53087
|
function uJ(n) {
|
|
53087
53088
|
return hJ.indexOf(n) === -1 ? (console.warn(`(.style) position value '${n}' is not valid. Aborted`), !1) : !0;
|
|
53088
53089
|
}
|
|
53089
|
-
class yU extends
|
|
53090
|
+
class yU extends Gi {
|
|
53090
53091
|
/**
|
|
53091
53092
|
*
|
|
53092
53093
|
* @param {string} propertyId
|
|
@@ -53178,7 +53179,7 @@ class bU extends sc {
|
|
|
53178
53179
|
this._value = t;
|
|
53179
53180
|
}
|
|
53180
53181
|
}
|
|
53181
|
-
class _U extends
|
|
53182
|
+
class _U extends Gi {
|
|
53182
53183
|
constructor(e) {
|
|
53183
53184
|
super("fontStyle", e, !0), this.isValidValue = gJ;
|
|
53184
53185
|
}
|
|
@@ -53187,7 +53188,7 @@ const pJ = ["normal", "italic"];
|
|
|
53187
53188
|
function gJ(n) {
|
|
53188
53189
|
return pJ.indexOf(n) === -1 ? (console.warn(`(.style) fontStyle value '${n}' is not valid. Aborted`), !1) : !0;
|
|
53189
53190
|
}
|
|
53190
|
-
class xU extends
|
|
53191
|
+
class xU extends Gi {
|
|
53191
53192
|
constructor() {
|
|
53192
53193
|
super("fontWeight", "inherit", !0), this.isValid = AJ;
|
|
53193
53194
|
}
|
|
@@ -53845,12 +53846,12 @@ float tap(vec2 offsetUV) {
|
|
|
53845
53846
|
n.defines && (t ? n.defines[e] === void 0 && (n.defines[e] = "", n.needsUpdate = !0) : n.defines[e] !== void 0 && (delete n.defines[e], n.needsUpdate = !0));
|
|
53846
53847
|
}, MU = function(n, e, t) {
|
|
53847
53848
|
n.defines[e] && n.defines[e] === t || (n.defines[e] = t, n.needsUpdate = !0);
|
|
53848
|
-
},
|
|
53849
|
+
}, co = function(n, e, t) {
|
|
53849
53850
|
n.userData[e] ? n.userData[e].value = t : n.uniforms[e].value = t;
|
|
53850
53851
|
}, EJ = function(n, e, t) {
|
|
53851
53852
|
n.userData[e].value = t;
|
|
53852
53853
|
};
|
|
53853
|
-
class
|
|
53854
|
+
class ho {
|
|
53854
53855
|
/**
|
|
53855
53856
|
* Alter a material options with required fontMaterial options and or default values
|
|
53856
53857
|
* @param {Object.<string,any>} materialOptions
|
|
@@ -53887,7 +53888,7 @@ class lo {
|
|
|
53887
53888
|
* @param shader
|
|
53888
53889
|
*/
|
|
53889
53890
|
static injectShaderChunks(e) {
|
|
53890
|
-
|
|
53891
|
+
ho.injectVertexShaderChunks(e), ho.injectFragmentShaderChunks(e);
|
|
53891
53892
|
}
|
|
53892
53893
|
/**
|
|
53893
53894
|
*
|
|
@@ -53931,7 +53932,7 @@ class lo {
|
|
|
53931
53932
|
static from(e) {
|
|
53932
53933
|
return class extends e {
|
|
53933
53934
|
constructor(i = {}) {
|
|
53934
|
-
|
|
53935
|
+
ho.ensureMaterialOptions(i);
|
|
53935
53936
|
super(i);
|
|
53936
53937
|
/**
|
|
53937
53938
|
*
|
|
@@ -53941,9 +53942,9 @@ class lo {
|
|
|
53941
53942
|
* @private
|
|
53942
53943
|
*/
|
|
53943
53944
|
u(this, "_cumulativeOnBeforeCompile", (i) => {
|
|
53944
|
-
|
|
53945
|
+
ho.bindUniformsWithUserData(i, this), ho.injectShaderChunks(i), this._userDefinedOnBeforeCompile(i);
|
|
53945
53946
|
});
|
|
53946
|
-
|
|
53947
|
+
ho.ensureDefines(this), ho.ensureUserData(this, i), this._userDefinedOnBeforeCompile = (s) => {
|
|
53947
53948
|
}, this._onBeforeCompile = this._cumulativeOnBeforeCompile;
|
|
53948
53949
|
}
|
|
53949
53950
|
/**
|
|
@@ -53952,7 +53953,7 @@ class lo {
|
|
|
53952
53953
|
* @returns {Object.<{m:string, t?:(fontMaterial:Material|ShaderMaterial, materialProperty:string, value:any) => void}>}
|
|
53953
53954
|
*/
|
|
53954
53955
|
static get fontMaterialProperties() {
|
|
53955
|
-
return
|
|
53956
|
+
return ho.mediation;
|
|
53956
53957
|
}
|
|
53957
53958
|
////////////////////////////
|
|
53958
53959
|
// OnBeforeCompile Override
|
|
@@ -54041,7 +54042,7 @@ class OM extends He.ShaderMaterial {
|
|
|
54041
54042
|
* @returns {Object.<{m:string, t?:(fontMaterial:Material|ShaderMaterial, materialProperty:string, value:any) => void}>}
|
|
54042
54043
|
*/
|
|
54043
54044
|
static get mediation() {
|
|
54044
|
-
return
|
|
54045
|
+
return ho.mediation;
|
|
54045
54046
|
}
|
|
54046
54047
|
constructor(e = {}) {
|
|
54047
54048
|
super({
|
|
@@ -54389,7 +54390,7 @@ const VJ = {
|
|
|
54389
54390
|
setMissingCharacterHandler: GJ,
|
|
54390
54391
|
missingCharacter: HJ
|
|
54391
54392
|
}, cu = VJ;
|
|
54392
|
-
class IU extends
|
|
54393
|
+
class IU extends Gi {
|
|
54393
54394
|
constructor() {
|
|
54394
54395
|
super("fontFamily", "inherit", !0);
|
|
54395
54396
|
}
|
|
@@ -54422,7 +54423,7 @@ class IU extends zi {
|
|
|
54422
54423
|
return t ? t[`_${this._id}`].getInheritedInput(t) : this.getDefaultValue();
|
|
54423
54424
|
}
|
|
54424
54425
|
}
|
|
54425
|
-
class RU extends
|
|
54426
|
+
class RU extends Gi {
|
|
54426
54427
|
/**
|
|
54427
54428
|
*
|
|
54428
54429
|
*/
|
|
@@ -54433,7 +54434,7 @@ class RU extends zi {
|
|
|
54433
54434
|
super.update(e, t), e._layouter._needsProcess = !0;
|
|
54434
54435
|
}
|
|
54435
54436
|
}
|
|
54436
|
-
class PU extends
|
|
54437
|
+
class PU extends Gi {
|
|
54437
54438
|
constructor() {
|
|
54438
54439
|
super("whiteSpace", "inherit"), this.isValidValue = WJ;
|
|
54439
54440
|
}
|
|
@@ -54442,12 +54443,12 @@ const QJ = ["normal", "nowrap", "pre", "pre-line", "pre-wrap"];
|
|
|
54442
54443
|
function WJ(n) {
|
|
54443
54444
|
return QJ.indexOf(n) === -1 ? (console.warn(`(.style) whiteSpace value '${n}' is not valid. Aborted`), !1) : !0;
|
|
54444
54445
|
}
|
|
54445
|
-
class BU extends
|
|
54446
|
+
class BU extends Gi {
|
|
54446
54447
|
constructor() {
|
|
54447
54448
|
super("letterSpacing", "inherit", !0);
|
|
54448
54449
|
}
|
|
54449
54450
|
}
|
|
54450
|
-
class jJ extends
|
|
54451
|
+
class jJ extends Gi {
|
|
54451
54452
|
constructor() {
|
|
54452
54453
|
super("fontSize", "inherit", !0);
|
|
54453
54454
|
}
|
|
@@ -54462,7 +54463,7 @@ class qJ extends vu {
|
|
|
54462
54463
|
super("invertAlpha", "inherit");
|
|
54463
54464
|
}
|
|
54464
54465
|
}
|
|
54465
|
-
class Xb extends
|
|
54466
|
+
class Xb extends Gi {
|
|
54466
54467
|
constructor() {
|
|
54467
54468
|
super("fontKerning", "inherit"), this.isValidValue = YJ;
|
|
54468
54469
|
}
|
|
@@ -54543,10 +54544,10 @@ function lf(n, e) {
|
|
|
54543
54544
|
var oi = function(e, t) {
|
|
54544
54545
|
t === void 0 && (t = {}), this.label = e, this.keyword = t.keyword, this.beforeExpr = !!t.beforeExpr, this.startsExpr = !!t.startsExpr, this.isLoop = !!t.isLoop, this.isAssign = !!t.isAssign, this.prefix = !!t.prefix, this.postfix = !!t.postfix, this.binop = t.binop || null, this.updateContext = null;
|
|
54545
54546
|
};
|
|
54546
|
-
function
|
|
54547
|
+
function Jr(n, e) {
|
|
54547
54548
|
return new oi(n, { beforeExpr: !0, binop: e });
|
|
54548
54549
|
}
|
|
54549
|
-
var
|
|
54550
|
+
var Zr = { beforeExpr: !0 }, Js = { startsExpr: !0 }, LM = {};
|
|
54550
54551
|
function $t(n, e) {
|
|
54551
54552
|
return e === void 0 && (e = {}), e.keyword = n, LM[n] = new oi(n, e);
|
|
54552
54553
|
}
|
|
@@ -54564,16 +54565,16 @@ var D = {
|
|
|
54564
54565
|
braceR: new oi("}"),
|
|
54565
54566
|
parenL: new oi("(", { beforeExpr: !0, startsExpr: !0 }),
|
|
54566
54567
|
parenR: new oi(")"),
|
|
54567
|
-
comma: new oi(",",
|
|
54568
|
-
semi: new oi(";",
|
|
54569
|
-
colon: new oi(":",
|
|
54568
|
+
comma: new oi(",", Zr),
|
|
54569
|
+
semi: new oi(";", Zr),
|
|
54570
|
+
colon: new oi(":", Zr),
|
|
54570
54571
|
dot: new oi("."),
|
|
54571
|
-
question: new oi("?",
|
|
54572
|
+
question: new oi("?", Zr),
|
|
54572
54573
|
questionDot: new oi("?."),
|
|
54573
|
-
arrow: new oi("=>",
|
|
54574
|
+
arrow: new oi("=>", Zr),
|
|
54574
54575
|
template: new oi("template"),
|
|
54575
54576
|
invalidTemplate: new oi("invalidTemplate"),
|
|
54576
|
-
ellipsis: new oi("...",
|
|
54577
|
+
ellipsis: new oi("...", Zr),
|
|
54577
54578
|
backQuote: new oi("`", Js),
|
|
54578
54579
|
dollarBraceL: new oi("${", { beforeExpr: !0, startsExpr: !0 }),
|
|
54579
54580
|
// Operators. These carry several kinds of properties to help the
|
|
@@ -54593,36 +54594,36 @@ var D = {
|
|
|
54593
54594
|
assign: new oi("_=", { beforeExpr: !0, isAssign: !0 }),
|
|
54594
54595
|
incDec: new oi("++/--", { prefix: !0, postfix: !0, startsExpr: !0 }),
|
|
54595
54596
|
prefix: new oi("!/~", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
|
|
54596
|
-
logicalOR:
|
|
54597
|
-
logicalAND:
|
|
54598
|
-
bitwiseOR:
|
|
54599
|
-
bitwiseXOR:
|
|
54600
|
-
bitwiseAND:
|
|
54601
|
-
equality:
|
|
54602
|
-
relational:
|
|
54603
|
-
bitShift:
|
|
54597
|
+
logicalOR: Jr("||", 1),
|
|
54598
|
+
logicalAND: Jr("&&", 2),
|
|
54599
|
+
bitwiseOR: Jr("|", 3),
|
|
54600
|
+
bitwiseXOR: Jr("^", 4),
|
|
54601
|
+
bitwiseAND: Jr("&", 5),
|
|
54602
|
+
equality: Jr("==/!=/===/!==", 6),
|
|
54603
|
+
relational: Jr("</>/<=/>=", 7),
|
|
54604
|
+
bitShift: Jr("<</>>/>>>", 8),
|
|
54604
54605
|
plusMin: new oi("+/-", { beforeExpr: !0, binop: 9, prefix: !0, startsExpr: !0 }),
|
|
54605
|
-
modulo:
|
|
54606
|
-
star:
|
|
54607
|
-
slash:
|
|
54606
|
+
modulo: Jr("%", 10),
|
|
54607
|
+
star: Jr("*", 10),
|
|
54608
|
+
slash: Jr("/", 10),
|
|
54608
54609
|
starstar: new oi("**", { beforeExpr: !0 }),
|
|
54609
|
-
coalesce:
|
|
54610
|
+
coalesce: Jr("??", 1),
|
|
54610
54611
|
// Keyword token types.
|
|
54611
54612
|
_break: $t("break"),
|
|
54612
|
-
_case: $t("case",
|
|
54613
|
+
_case: $t("case", Zr),
|
|
54613
54614
|
_catch: $t("catch"),
|
|
54614
54615
|
_continue: $t("continue"),
|
|
54615
54616
|
_debugger: $t("debugger"),
|
|
54616
|
-
_default: $t("default",
|
|
54617
|
+
_default: $t("default", Zr),
|
|
54617
54618
|
_do: $t("do", { isLoop: !0, beforeExpr: !0 }),
|
|
54618
|
-
_else: $t("else",
|
|
54619
|
+
_else: $t("else", Zr),
|
|
54619
54620
|
_finally: $t("finally"),
|
|
54620
54621
|
_for: $t("for", { isLoop: !0 }),
|
|
54621
54622
|
_function: $t("function", Js),
|
|
54622
54623
|
_if: $t("if"),
|
|
54623
|
-
_return: $t("return",
|
|
54624
|
+
_return: $t("return", Zr),
|
|
54624
54625
|
_switch: $t("switch"),
|
|
54625
|
-
_throw: $t("throw",
|
|
54626
|
+
_throw: $t("throw", Zr),
|
|
54626
54627
|
_try: $t("try"),
|
|
54627
54628
|
_var: $t("var"),
|
|
54628
54629
|
_const: $t("const"),
|
|
@@ -54632,7 +54633,7 @@ var D = {
|
|
|
54632
54633
|
_this: $t("this", Js),
|
|
54633
54634
|
_super: $t("super", Js),
|
|
54634
54635
|
_class: $t("class", Js),
|
|
54635
|
-
_extends: $t("extends",
|
|
54636
|
+
_extends: $t("extends", Zr),
|
|
54636
54637
|
_export: $t("export"),
|
|
54637
54638
|
_import: $t("import", Js),
|
|
54638
54639
|
_null: $t("null", Js),
|
|
@@ -54643,7 +54644,7 @@ var D = {
|
|
|
54643
54644
|
_typeof: $t("typeof", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
|
|
54644
54645
|
_void: $t("void", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
|
|
54645
54646
|
_delete: $t("delete", { beforeExpr: !0, prefix: !0, startsExpr: !0 })
|
|
54646
|
-
},
|
|
54647
|
+
}, Co = /\r\n?|\n|\u2028|\u2029/, iZ = new RegExp(Co.source, "g");
|
|
54647
54648
|
function Ef(n) {
|
|
54648
54649
|
return n === 10 || n === 13 || n === 8232 || n === 8233;
|
|
54649
54650
|
}
|
|
@@ -54656,7 +54657,7 @@ function LU(n, e, t) {
|
|
|
54656
54657
|
}
|
|
54657
54658
|
return -1;
|
|
54658
54659
|
}
|
|
54659
|
-
var FU = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,
|
|
54660
|
+
var FU = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Ao = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, UU = Object.prototype, nZ = UU.hasOwnProperty, sZ = UU.toString, Vm = Object.hasOwn || function(n, e) {
|
|
54660
54661
|
return nZ.call(n, e);
|
|
54661
54662
|
}, qB = Array.isArray || function(n) {
|
|
54662
54663
|
return sZ.call(n) === "[object Array]";
|
|
@@ -54809,7 +54810,7 @@ var m0 = 0, GM = 1, Ic = 2, QU = 3, WU = 4, jU = 5, Yn = function(e, t, i) {
|
|
|
54809
54810
|
e.allowReserved !== !0 && (s = _w[e.ecmaVersion >= 6 ? 6 : e.ecmaVersion === 5 ? 5 : 3], e.sourceType === "module" && (s += " await")), this.reservedWords = qh(s);
|
|
54810
54811
|
var r = (s ? s + " " : "") + _w.strict;
|
|
54811
54812
|
this.reservedWordsStrict = qh(r), this.reservedWordsStrictBind = qh(r + " " + _w.strictBind), this.input = String(t), this.containsEsc = !1, i ? (this.pos = i, this.lineStart = this.input.lastIndexOf(`
|
|
54812
|
-
`, i - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(
|
|
54813
|
+
`, i - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(Co).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = D.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = !0, this.inModule = e.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = !1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = /* @__PURE__ */ Object.create(null), this.pos === 0 && e.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(rm), this.regexpState = null, this.privateNameStack = [];
|
|
54813
54814
|
}, Fa = { inFunction: { configurable: !0 }, inGenerator: { configurable: !0 }, inAsync: { configurable: !0 }, canAwait: { configurable: !0 }, allowSuper: { configurable: !0 }, allowDirectSuper: { configurable: !0 }, treatFunctionsAsVar: { configurable: !0 }, allowNewDotTarget: { configurable: !0 }, inClassStaticBlock: { configurable: !0 } };
|
|
54814
54815
|
Yn.prototype.parse = function() {
|
|
54815
54816
|
var e = this.options.program || this.startNode();
|
|
@@ -54874,16 +54875,16 @@ Xs.strictDirective = function(n) {
|
|
|
54874
54875
|
if (this.options.ecmaVersion < 5)
|
|
54875
54876
|
return !1;
|
|
54876
54877
|
for (; ; ) {
|
|
54877
|
-
|
|
54878
|
+
Ao.lastIndex = n, n += Ao.exec(this.input)[0].length;
|
|
54878
54879
|
var e = cZ.exec(this.input.slice(n));
|
|
54879
54880
|
if (!e)
|
|
54880
54881
|
return !1;
|
|
54881
54882
|
if ((e[1] || e[2]) === "use strict") {
|
|
54882
|
-
|
|
54883
|
-
var t =
|
|
54884
|
-
return s === ";" || s === "}" ||
|
|
54883
|
+
Ao.lastIndex = n + e[0].length;
|
|
54884
|
+
var t = Ao.exec(this.input), i = t.index + t[0].length, s = this.input.charAt(i);
|
|
54885
|
+
return s === ";" || s === "}" || Co.test(t[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(s) || s === "!" && this.input.charAt(i + 1) === "=");
|
|
54885
54886
|
}
|
|
54886
|
-
n += e[0].length,
|
|
54887
|
+
n += e[0].length, Ao.lastIndex = n, n += Ao.exec(this.input)[0].length, this.input[n] === ";" && n++;
|
|
54887
54888
|
}
|
|
54888
54889
|
};
|
|
54889
54890
|
Xs.eat = function(n) {
|
|
@@ -54899,7 +54900,7 @@ Xs.expectContextual = function(n) {
|
|
|
54899
54900
|
this.eatContextual(n) || this.unexpected();
|
|
54900
54901
|
};
|
|
54901
54902
|
Xs.canInsertSemicolon = function() {
|
|
54902
|
-
return this.type === D.eof || this.type === D.braceR ||
|
|
54903
|
+
return this.type === D.eof || this.type === D.braceR || Co.test(this.input.slice(this.lastTokEnd, this.start));
|
|
54903
54904
|
};
|
|
54904
54905
|
Xs.insertSemicolon = function() {
|
|
54905
54906
|
if (this.canInsertSemicolon())
|
|
@@ -54960,8 +54961,8 @@ var HM = { kind: "loop" }, lZ = { kind: "switch" };
|
|
|
54960
54961
|
Rt.isLet = function(n) {
|
|
54961
54962
|
if (this.options.ecmaVersion < 6 || !this.isContextual("let"))
|
|
54962
54963
|
return !1;
|
|
54963
|
-
|
|
54964
|
-
var e =
|
|
54964
|
+
Ao.lastIndex = this.pos;
|
|
54965
|
+
var e = Ao.exec(this.input), t = this.pos + e[0].length, i = this.input.charCodeAt(t);
|
|
54965
54966
|
if (i === 91 || i === 92 || i > 55295 && i < 56320)
|
|
54966
54967
|
return !0;
|
|
54967
54968
|
if (n)
|
|
@@ -54982,9 +54983,9 @@ Rt.isLet = function(n) {
|
|
|
54982
54983
|
Rt.isAsyncFunction = function() {
|
|
54983
54984
|
if (this.options.ecmaVersion < 8 || !this.isContextual("async"))
|
|
54984
54985
|
return !1;
|
|
54985
|
-
|
|
54986
|
-
var n =
|
|
54987
|
-
return !
|
|
54986
|
+
Ao.lastIndex = this.pos;
|
|
54987
|
+
var n = Ao.exec(this.input), e = this.pos + n[0].length, t;
|
|
54988
|
+
return !Co.test(this.input.slice(this.pos, e)) && this.input.slice(e, e + 8) === "function" && (e + 8 === this.input.length || !(lf(t = this.input.charCodeAt(e + 8)) || t > 55295 && t < 56320));
|
|
54988
54989
|
};
|
|
54989
54990
|
Rt.parseStatement = function(n, e, t) {
|
|
54990
54991
|
var i = this.type, s = this.startNode(), r;
|
|
@@ -55026,8 +55027,8 @@ Rt.parseStatement = function(n, e, t) {
|
|
|
55026
55027
|
case D._export:
|
|
55027
55028
|
case D._import:
|
|
55028
55029
|
if (this.options.ecmaVersion > 10 && i === D._import) {
|
|
55029
|
-
|
|
55030
|
-
var o =
|
|
55030
|
+
Ao.lastIndex = this.pos;
|
|
55031
|
+
var o = Ao.exec(this.input), a = this.pos + o[0].length, c = this.input.charCodeAt(a);
|
|
55031
55032
|
if (c === 40 || c === 46)
|
|
55032
55033
|
return this.parseExpressionStatement(s, this.parseExpression());
|
|
55033
55034
|
}
|
|
@@ -55088,7 +55089,7 @@ Rt.parseSwitchStatement = function(n) {
|
|
|
55088
55089
|
return this.exitScope(), e && this.finishNode(e, "SwitchCase"), this.next(), this.labels.pop(), this.finishNode(n, "SwitchStatement");
|
|
55089
55090
|
};
|
|
55090
55091
|
Rt.parseThrowStatement = function(n) {
|
|
55091
|
-
return this.next(),
|
|
55092
|
+
return this.next(), Co.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), n.argument = this.parseExpression(), this.semicolon(), this.finishNode(n, "ThrowStatement");
|
|
55092
55093
|
};
|
|
55093
55094
|
var hZ = [];
|
|
55094
55095
|
Rt.parseTryStatement = function(n) {
|
|
@@ -55551,7 +55552,7 @@ Tf.curContext = function() {
|
|
|
55551
55552
|
};
|
|
55552
55553
|
Tf.braceIsBlock = function(n) {
|
|
55553
55554
|
var e = this.curContext();
|
|
55554
|
-
return e === Ni.f_expr || e === Ni.f_stat ? !0 : n === D.colon && (e === Ni.b_stat || e === Ni.b_expr) ? !e.isExpr : n === D._return || n === D.name && this.exprAllowed ?
|
|
55555
|
+
return e === Ni.f_expr || e === Ni.f_stat ? !0 : n === D.colon && (e === Ni.b_stat || e === Ni.b_expr) ? !e.isExpr : n === D._return || n === D.name && this.exprAllowed ? Co.test(this.input.slice(this.lastTokEnd, this.start)) : n === D._else || n === D.semi || n === D.eof || n === D.parenR || n === D.arrow ? !0 : n === D.braceL ? e === Ni.b_stat : n === D._var || n === D._const || n === D.name ? !1 : !this.exprAllowed;
|
|
55555
55556
|
};
|
|
55556
55557
|
Tf.inGeneratorContext = function() {
|
|
55557
55558
|
for (var n = this.context.length - 1; n >= 1; n--) {
|
|
@@ -55589,7 +55590,7 @@ D.parenL.updateContext = function(n) {
|
|
|
55589
55590
|
D.incDec.updateContext = function() {
|
|
55590
55591
|
};
|
|
55591
55592
|
D._function.updateContext = D._class.updateContext = function(n) {
|
|
55592
|
-
n.beforeExpr && n !== D._else && !(n === D.semi && this.curContext() !== Ni.p_stat) && !(n === D._return &&
|
|
55593
|
+
n.beforeExpr && n !== D._else && !(n === D.semi && this.curContext() !== Ni.p_stat) && !(n === D._return && Co.test(this.input.slice(this.lastTokEnd, this.start))) && !((n === D.colon || n === D.braceL) && this.curContext() === Ni.b_stat) ? this.context.push(Ni.f_expr) : this.context.push(Ni.f_stat), this.exprAllowed = !1;
|
|
55593
55594
|
};
|
|
55594
55595
|
D.backQuote.updateContext = function() {
|
|
55595
55596
|
this.curContext() === Ni.q_tmpl ? this.context.pop() : this.context.push(Ni.q_tmpl), this.exprAllowed = !1;
|
|
@@ -55919,7 +55920,7 @@ Qt.parseTemplate = function(n) {
|
|
|
55919
55920
|
return this.next(), this.finishNode(t, "TemplateLiteral");
|
|
55920
55921
|
};
|
|
55921
55922
|
Qt.isAsyncProp = function(n) {
|
|
55922
|
-
return !n.computed && n.key.type === "Identifier" && n.key.name === "async" && (this.type === D.name || this.type === D.num || this.type === D.string || this.type === D.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === D.star) && !
|
|
55923
|
+
return !n.computed && n.key.type === "Identifier" && n.key.name === "async" && (this.type === D.name || this.type === D.num || this.type === D.string || this.type === D.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === D.star) && !Co.test(this.input.slice(this.lastTokEnd, this.start));
|
|
55923
55924
|
};
|
|
55924
55925
|
Qt.parseObj = function(n, e) {
|
|
55925
55926
|
var t = this.startNode(), i = !0, s = {};
|
|
@@ -56910,7 +56911,7 @@ Zt.readToken_caret = function() {
|
|
|
56910
56911
|
};
|
|
56911
56912
|
Zt.readToken_plus_min = function(n) {
|
|
56912
56913
|
var e = this.input.charCodeAt(this.pos + 1);
|
|
56913
|
-
return e === n ? e === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 ||
|
|
56914
|
+
return e === n ? e === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || Co.test(this.input.slice(this.lastTokEnd, this.pos))) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(D.incDec, 2) : e === 61 ? this.finishOp(D.assign, 2) : this.finishOp(D.plusMin, 1);
|
|
56914
56915
|
};
|
|
56915
56916
|
Zt.readToken_lt_gt = function(n) {
|
|
56916
56917
|
var e = this.input.charCodeAt(this.pos + 1), t = 1;
|
|
@@ -57031,7 +57032,7 @@ Zt.readRegexp = function() {
|
|
|
57031
57032
|
for (var n, e, t = this.pos; ; ) {
|
|
57032
57033
|
this.pos >= this.input.length && this.raise(t, "Unterminated regular expression");
|
|
57033
57034
|
var i = this.input.charAt(this.pos);
|
|
57034
|
-
if (
|
|
57035
|
+
if (Co.test(i) && this.raise(t, "Unterminated regular expression"), n)
|
|
57035
57036
|
n = !1;
|
|
57036
57037
|
else {
|
|
57037
57038
|
if (i === "[")
|
|
@@ -57264,7 +57265,7 @@ Yn.acorn = {
|
|
|
57264
57265
|
isIdentifierStart: Uc,
|
|
57265
57266
|
Token: VM,
|
|
57266
57267
|
isNewLine: Ef,
|
|
57267
|
-
lineBreak:
|
|
57268
|
+
lineBreak: Co,
|
|
57268
57269
|
lineBreakG: iZ,
|
|
57269
57270
|
nonASCIIwhitespace: FU
|
|
57270
57271
|
};
|
|
@@ -57631,7 +57632,7 @@ class jm extends He.Object3D {
|
|
|
57631
57632
|
* @param {Material|ShaderMaterial} material
|
|
57632
57633
|
*/
|
|
57633
57634
|
set backgroundMaterial(t) {
|
|
57634
|
-
this._backgroundMaterial = t, this._backgroundMaterialMediation = { ...t.constructor.mediation }, this._transferToBackgroundMaterial(), this._backgroundMesh && (this._backgroundMesh.material = this._backgroundMaterial,
|
|
57635
|
+
this._backgroundMaterial = t, this._backgroundMaterialMediation = { ...t.constructor.mediation }, this._transferToBackgroundMaterial(), this._backgroundMesh && (this._backgroundMesh.material = this._backgroundMaterial, co(t, "frameSize", this._backgroundMesh.scale));
|
|
57635
57636
|
}
|
|
57636
57637
|
/**
|
|
57637
57638
|
*
|
|
@@ -57786,7 +57787,7 @@ class jm extends He.Object3D {
|
|
|
57786
57787
|
* @param {Mesh|Array.<Mesh>|null} mesh
|
|
57787
57788
|
*/
|
|
57788
57789
|
setBackgroundMesh(t) {
|
|
57789
|
-
this._backgroundMesh && (this.remove(this._backgroundMesh), this.unbindBackgroundMeshProperties()), this._backgroundMesh = t, this._backgroundMesh && (this.bindBackgroundMeshProperties(), this._backgroundCustomDepthMaterial && (this._backgroundMesh.customDepthMaterial = this._backgroundCustomDepthMaterial), this._backgroundMaterial &&
|
|
57790
|
+
this._backgroundMesh && (this.remove(this._backgroundMesh), this.unbindBackgroundMeshProperties()), this._backgroundMesh = t, this._backgroundMesh && (this.bindBackgroundMeshProperties(), this._backgroundCustomDepthMaterial && (this._backgroundMesh.customDepthMaterial = this._backgroundCustomDepthMaterial), this._backgroundMaterial && co(this._backgroundMaterial, "frameSize", this._backgroundMesh.scale), this._transferToBackgroundMesh(), this.add(this._backgroundMesh));
|
|
57790
57791
|
}
|
|
57791
57792
|
/**
|
|
57792
57793
|
*
|
|
@@ -58442,15 +58443,15 @@ const FZ = function(n, e, t) {
|
|
|
58442
58443
|
backgroundColor: { m: "color" },
|
|
58443
58444
|
backgroundOpacity: { m: "opacity" },
|
|
58444
58445
|
backgroundSize: { m: "computedBackgroundSize", t: FZ },
|
|
58445
|
-
borderWidth: { m: "borderWidth", t:
|
|
58446
|
-
borderColor: { m: "borderColor", t:
|
|
58447
|
-
cornerTL: { m: "cornerTL", t:
|
|
58448
|
-
cornerTR: { m: "cornerTR", t:
|
|
58449
|
-
cornerBR: { m: "cornerBR", t:
|
|
58450
|
-
cornerBL: { m: "cornerBL", t:
|
|
58451
|
-
borderOpacity: { m: "borderOpacity", t:
|
|
58452
|
-
size: { m: "frameSize", t:
|
|
58453
|
-
tSize: { m: "textureSize", t:
|
|
58446
|
+
borderWidth: { m: "borderWidth", t: co },
|
|
58447
|
+
borderColor: { m: "borderColor", t: co },
|
|
58448
|
+
cornerTL: { m: "cornerTL", t: co },
|
|
58449
|
+
cornerTR: { m: "cornerTR", t: co },
|
|
58450
|
+
cornerBR: { m: "cornerBR", t: co },
|
|
58451
|
+
cornerBL: { m: "cornerBL", t: co },
|
|
58452
|
+
borderOpacity: { m: "borderOpacity", t: co },
|
|
58453
|
+
size: { m: "frameSize", t: co },
|
|
58454
|
+
tSize: { m: "textureSize", t: co }
|
|
58454
58455
|
};
|
|
58455
58456
|
class pN extends He.ShaderMaterial {
|
|
58456
58457
|
/**
|
|
@@ -59593,7 +59594,7 @@ class MN extends BU {
|
|
|
59593
59594
|
super._computeFromInherited(e), e._fontSize._needsProcess = !0, e._layouter._needsProcess = !0;
|
|
59594
59595
|
}
|
|
59595
59596
|
}
|
|
59596
|
-
class TN extends
|
|
59597
|
+
class TN extends Gi {
|
|
59597
59598
|
constructor() {
|
|
59598
59599
|
super("fontSize", "inherit", !0), this._allowsInherit = !1;
|
|
59599
59600
|
}
|
|
@@ -60407,7 +60408,7 @@ const BN = () => y0.update(), DN = {
|
|
|
60407
60408
|
MeshUIBaseElement: jm,
|
|
60408
60409
|
FontLibrary: cu,
|
|
60409
60410
|
update: BN,
|
|
60410
|
-
MSDFFontMaterialUtils:
|
|
60411
|
+
MSDFFontMaterialUtils: ho,
|
|
60411
60412
|
ShaderChunkUI: fN,
|
|
60412
60413
|
Behavior: PN,
|
|
60413
60414
|
FontVariant: Hm
|
|
@@ -60614,7 +60615,7 @@ const Vn = class extends Me {
|
|
|
60614
60615
|
return i.color = this.raycastColor, t.layers.set(2), t.name = "line", t.scale.z = 1, t;
|
|
60615
60616
|
}
|
|
60616
60617
|
static CreateRaycastHitPoint() {
|
|
60617
|
-
const t = new
|
|
60618
|
+
const t = new wo(0.5, 22, 22), i = new hi({ color: this.raycastColor }), s = new ye(t, i);
|
|
60618
60619
|
return s.visible = !1, s.layers.set(2), s;
|
|
60619
60620
|
}
|
|
60620
60621
|
static Create(t, i, s, r) {
|
|
@@ -62396,7 +62397,7 @@ class th extends Me {
|
|
|
62396
62397
|
start() {
|
|
62397
62398
|
if (this.autoTarget) {
|
|
62398
62399
|
if (this._controls) {
|
|
62399
|
-
const t = se.getComponent(this.gameObject,
|
|
62400
|
+
const t = se.getComponent(this.gameObject, zi);
|
|
62400
62401
|
if (t && !this.setFromTargetPosition()) {
|
|
62401
62402
|
this.debugLog && console.log("NO TARGET");
|
|
62402
62403
|
const s = Ct(t.cam).length(), r = new S(0, 0, -s).applyMatrix4(t.cam.matrixWorld);
|
|
@@ -62413,7 +62414,7 @@ class th extends Me {
|
|
|
62413
62414
|
}
|
|
62414
62415
|
onEnable() {
|
|
62415
62416
|
this._enableTime = this.context.time.time;
|
|
62416
|
-
const t = se.getComponent(this.gameObject,
|
|
62417
|
+
const t = se.getComponent(this.gameObject, zi);
|
|
62417
62418
|
this._camera = t;
|
|
62418
62419
|
const i = t == null ? void 0 : t.cam;
|
|
62419
62420
|
if (i && iD(i, this, !0), !this._controls) {
|
|
@@ -62541,7 +62542,7 @@ class th extends Me {
|
|
|
62541
62542
|
kee([
|
|
62542
62543
|
x(Qb)
|
|
62543
62544
|
], th.prototype, "lookAtConstraint", 2);
|
|
62544
|
-
var Lee = Object.defineProperty, Fee = Object.getOwnPropertyDescriptor,
|
|
62545
|
+
var Lee = Object.defineProperty, Fee = Object.getOwnPropertyDescriptor, Ur = (n, e, t, i) => {
|
|
62545
62546
|
for (var s = i > 1 ? void 0 : i ? Fee(e, t) : e, r = n.length - 1, o; r >= 0; r--)
|
|
62546
62547
|
(o = n[r]) && (s = (i ? o(e, t, s) : o(s)) || s);
|
|
62547
62548
|
return i && s && Lee(e, t, s), s;
|
|
@@ -62559,6 +62560,7 @@ const qp = (Zv = class extends Me {
|
|
|
62559
62560
|
u(this, "_cullingMask", 4294967295);
|
|
62560
62561
|
u(this, "_backgroundBlurriness");
|
|
62561
62562
|
u(this, "_backgroundIntensity");
|
|
62563
|
+
u(this, "_environmentIntensity");
|
|
62562
62564
|
u(this, "_targetTexture", null);
|
|
62563
62565
|
u(this, "_backgroundColor");
|
|
62564
62566
|
u(this, "_fov");
|
|
@@ -62623,6 +62625,12 @@ const qp = (Zv = class extends Me {
|
|
|
62623
62625
|
get backgroundIntensity() {
|
|
62624
62626
|
return this._backgroundIntensity;
|
|
62625
62627
|
}
|
|
62628
|
+
set environmentIntensity(e) {
|
|
62629
|
+
this._environmentIntensity = e;
|
|
62630
|
+
}
|
|
62631
|
+
get environmentIntensity() {
|
|
62632
|
+
return this._environmentIntensity;
|
|
62633
|
+
}
|
|
62626
62634
|
get backgroundColor() {
|
|
62627
62635
|
return this._backgroundColor ?? null;
|
|
62628
62636
|
}
|
|
@@ -62740,43 +62748,46 @@ const qp = (Zv = class extends Me {
|
|
|
62740
62748
|
return s;
|
|
62741
62749
|
}
|
|
62742
62750
|
}, u(Zv, "_origin", new S()), u(Zv, "_direction", new S()), Zv);
|
|
62743
|
-
let
|
|
62744
|
-
|
|
62751
|
+
let zi = qp;
|
|
62752
|
+
Ur([
|
|
62753
|
+
x()
|
|
62754
|
+
], zi.prototype, "fieldOfView", 1);
|
|
62755
|
+
Ur([
|
|
62745
62756
|
x()
|
|
62746
|
-
],
|
|
62747
|
-
|
|
62757
|
+
], zi.prototype, "nearClipPlane", 1);
|
|
62758
|
+
Ur([
|
|
62748
62759
|
x()
|
|
62749
|
-
],
|
|
62750
|
-
|
|
62760
|
+
], zi.prototype, "farClipPlane", 1);
|
|
62761
|
+
Ur([
|
|
62751
62762
|
x()
|
|
62752
|
-
],
|
|
62753
|
-
|
|
62763
|
+
], zi.prototype, "clearFlags", 1);
|
|
62764
|
+
Ur([
|
|
62754
62765
|
x()
|
|
62755
|
-
],
|
|
62756
|
-
|
|
62766
|
+
], zi.prototype, "orthographic", 2);
|
|
62767
|
+
Ur([
|
|
62757
62768
|
x()
|
|
62758
|
-
],
|
|
62759
|
-
|
|
62769
|
+
], zi.prototype, "orthographicSize", 2);
|
|
62770
|
+
Ur([
|
|
62760
62771
|
x()
|
|
62761
|
-
],
|
|
62762
|
-
|
|
62772
|
+
], zi.prototype, "ARBackgroundAlpha", 2);
|
|
62773
|
+
Ur([
|
|
62763
62774
|
x()
|
|
62764
|
-
],
|
|
62765
|
-
|
|
62775
|
+
], zi.prototype, "cullingMask", 1);
|
|
62776
|
+
Ur([
|
|
62766
62777
|
x()
|
|
62767
|
-
],
|
|
62768
|
-
|
|
62778
|
+
], zi.prototype, "backgroundBlurriness", 1);
|
|
62779
|
+
Ur([
|
|
62769
62780
|
x()
|
|
62770
|
-
],
|
|
62771
|
-
|
|
62781
|
+
], zi.prototype, "backgroundIntensity", 1);
|
|
62782
|
+
Ur([
|
|
62772
62783
|
x()
|
|
62773
|
-
],
|
|
62774
|
-
|
|
62784
|
+
], zi.prototype, "environmentIntensity", 1);
|
|
62785
|
+
Ur([
|
|
62775
62786
|
x(Si)
|
|
62776
|
-
],
|
|
62777
|
-
|
|
62787
|
+
], zi.prototype, "backgroundColor", 1);
|
|
62788
|
+
Ur([
|
|
62778
62789
|
x(tu)
|
|
62779
|
-
],
|
|
62790
|
+
], zi.prototype, "targetTexture", 1);
|
|
62780
62791
|
class Nee {
|
|
62781
62792
|
constructor(e) {
|
|
62782
62793
|
u(this, "_camera");
|
|
@@ -62788,7 +62799,7 @@ class Nee {
|
|
|
62788
62799
|
return (e = this._camera) == null ? void 0 : e.context;
|
|
62789
62800
|
}
|
|
62790
62801
|
enable() {
|
|
62791
|
-
this._skybox = this.context.lightmaps.tryGetSkybox(this._camera.sourceId), this._skybox ? this.context.scene.background !== this._skybox && (jp && console.log("Set skybox", this._camera, this._skybox), this._skybox.colorSpace = Ze, this._skybox.mapping =
|
|
62802
|
+
this._skybox = this.context.lightmaps.tryGetSkybox(this._camera.sourceId), this._skybox ? this.context.scene.background !== this._skybox && (jp && console.log("Set skybox", this._camera, this._skybox), this._skybox.colorSpace = Ze, this._skybox.mapping = vo, this.context.scene.background = this._skybox) : console.warn("Failed to load/find skybox texture", this._camera.sourceId, this.context.lightmaps);
|
|
62792
62803
|
}
|
|
62793
62804
|
}
|
|
62794
62805
|
function zee(n) {
|
|
@@ -62809,7 +62820,7 @@ class um extends Me {
|
|
|
62809
62820
|
const t = this.listener;
|
|
62810
62821
|
if (t == null || t.parent)
|
|
62811
62822
|
return;
|
|
62812
|
-
const i = this.context.mainCameraComponent || se.getComponentInParent(this.gameObject,
|
|
62823
|
+
const i = this.context.mainCameraComponent || se.getComponentInParent(this.gameObject, zi);
|
|
62813
62824
|
i != null && i.cam ? i.cam.add(t) : this.gameObject.add(t);
|
|
62814
62825
|
});
|
|
62815
62826
|
}
|
|
@@ -62909,7 +62920,7 @@ let Ym = rc;
|
|
|
62909
62920
|
t_([
|
|
62910
62921
|
x(Xm)
|
|
62911
62922
|
], Ym.prototype, "events", 2);
|
|
62912
|
-
var
|
|
62923
|
+
var no = /* @__PURE__ */ ((n) => (n.Activation = "ActivationTrack", n.Animation = "AnimationTrack", n.Audio = "AudioTrack", n.Control = "ControlTrack", n.Marker = "MarkerTrack", n.Signal = "SignalTrack", n))(no || {}), oc = /* @__PURE__ */ ((n) => (n[n.None = 0] = "None", n[n.Hold = 1] = "Hold", n[n.Loop = 2] = "Loop", n[n.PingPong = 3] = "PingPong", n[n.Continue = 4] = "Continue", n))(oc || {}), UN = /* @__PURE__ */ ((n) => (n.Signal = "SignalEmitter", n))(UN || {});
|
|
62913
62924
|
const rd = re("debugtimeline"), O0 = class extends Me {
|
|
62914
62925
|
constructor() {
|
|
62915
62926
|
super(...arguments);
|
|
@@ -63104,7 +63115,7 @@ const rd = re("debugtimeline"), O0 = class extends Me {
|
|
|
63104
63115
|
for (const i of this.playableAsset.tracks)
|
|
63105
63116
|
if (!i.muted)
|
|
63106
63117
|
switch (i.type) {
|
|
63107
|
-
case
|
|
63118
|
+
case no.Activation:
|
|
63108
63119
|
if (!this._isPlaying)
|
|
63109
63120
|
continue;
|
|
63110
63121
|
for (let s = 0; s < i.outputs.length; s++) {
|
|
@@ -63145,10 +63156,10 @@ const rd = re("debugtimeline"), O0 = class extends Me {
|
|
|
63145
63156
|
} else if (r === null) {
|
|
63146
63157
|
if (i.outputs.splice(s, 1), O0.createTrackFunctions[i.type])
|
|
63147
63158
|
continue;
|
|
63148
|
-
i.type !==
|
|
63159
|
+
i.type !== no.Audio && i.type !== no.Control && i.type !== no.Marker && i.type !== no.Signal && console.warn("Missing binding", r, i.name, i.type, this.name, this.playableAsset.name);
|
|
63149
63160
|
}
|
|
63150
63161
|
}
|
|
63151
|
-
if (i.type ===
|
|
63162
|
+
if (i.type === no.Control)
|
|
63152
63163
|
for (let s = 0; s < i.clips.length; s++) {
|
|
63153
63164
|
const r = i.clips[s];
|
|
63154
63165
|
let o = r.asset.sourceObject;
|
|
@@ -63188,7 +63199,7 @@ const rd = re("debugtimeline"), O0 = class extends Me {
|
|
|
63188
63199
|
continue;
|
|
63189
63200
|
}
|
|
63190
63201
|
}
|
|
63191
|
-
if (r.type ===
|
|
63202
|
+
if (r.type === no.Animation) {
|
|
63192
63203
|
if (r.clips.length <= 0) {
|
|
63193
63204
|
rd && console.warn("Animation track has no clips", r);
|
|
63194
63205
|
continue;
|
|
@@ -63222,7 +63233,7 @@ const rd = re("debugtimeline"), O0 = class extends Me {
|
|
|
63222
63233
|
this._animationTracks.push(d);
|
|
63223
63234
|
}
|
|
63224
63235
|
}
|
|
63225
|
-
} else if (r.type ===
|
|
63236
|
+
} else if (r.type === no.Audio) {
|
|
63226
63237
|
if (r.clips.length <= 0)
|
|
63227
63238
|
continue;
|
|
63228
63239
|
const c = new Vd();
|
|
@@ -63233,7 +63244,7 @@ const rd = re("debugtimeline"), O0 = class extends Me {
|
|
|
63233
63244
|
const h = r.clips[l];
|
|
63234
63245
|
c.addModel(h);
|
|
63235
63246
|
}
|
|
63236
|
-
} else if (r.type ===
|
|
63247
|
+
} else if (r.type === no.Marker) {
|
|
63237
63248
|
const c = new w0();
|
|
63238
63249
|
c.director = this, c.track = r;
|
|
63239
63250
|
for (const l of r.markers)
|
|
@@ -63246,7 +63257,7 @@ const rd = re("debugtimeline"), O0 = class extends Me {
|
|
|
63246
63257
|
const l = se.getComponent(this.gameObject, Ym);
|
|
63247
63258
|
l && (c.receivers.push(l), this._signalTracks.push(c));
|
|
63248
63259
|
}
|
|
63249
|
-
} else if (r.type ===
|
|
63260
|
+
} else if (r.type === no.Signal) {
|
|
63250
63261
|
const c = new w0();
|
|
63251
63262
|
c.director = this, c.track = r;
|
|
63252
63263
|
for (const l of r.markers)
|
|
@@ -63254,7 +63265,7 @@ const rd = re("debugtimeline"), O0 = class extends Me {
|
|
|
63254
63265
|
for (const l of r.outputs)
|
|
63255
63266
|
c.receivers.push(l);
|
|
63256
63267
|
this._signalTracks.push(c);
|
|
63257
|
-
} else if (r.type ===
|
|
63268
|
+
} else if (r.type === no.Control) {
|
|
63258
63269
|
const c = new sT();
|
|
63259
63270
|
c.director = this, c.track = r;
|
|
63260
63271
|
for (const l of r.clips)
|
|
@@ -64076,7 +64087,7 @@ class Pf extends Me {
|
|
|
64076
64087
|
u(this, "state", null);
|
|
64077
64088
|
}
|
|
64078
64089
|
awake() {
|
|
64079
|
-
this.state = se.getComponentInParent(this.gameObject,
|
|
64090
|
+
this.state = se.getComponentInParent(this.gameObject, mo);
|
|
64080
64091
|
}
|
|
64081
64092
|
update() {
|
|
64082
64093
|
if (!this.gameObject || !this.gameObject.visible || !this.eyes || !Array.isArray(this.eyes) || this.eyes.length === 0)
|
|
@@ -64961,7 +64972,7 @@ class uT extends u_ {
|
|
|
64961
64972
|
d_([
|
|
64962
64973
|
x(kt)
|
|
64963
64974
|
], uT.prototype, "mainTexture", 1);
|
|
64964
|
-
var Tte = Object.defineProperty, Ite = Object.getOwnPropertyDescriptor,
|
|
64975
|
+
var Tte = Object.defineProperty, Ite = Object.getOwnPropertyDescriptor, Nr = (n, e, t, i) => {
|
|
64965
64976
|
for (var s = i > 1 ? void 0 : i ? Ite(e, t) : e, r = n.length - 1, o; r >= 0; r--)
|
|
64966
64977
|
(o = n[r]) && (s = (i ? o(e, t, s) : o(s)) || s);
|
|
64967
64978
|
return i && s && Tte(e, t, s), s;
|
|
@@ -64978,25 +64989,25 @@ class yu {
|
|
|
64978
64989
|
u(this, "selectedColor");
|
|
64979
64990
|
}
|
|
64980
64991
|
}
|
|
64981
|
-
|
|
64992
|
+
Nr([
|
|
64982
64993
|
x()
|
|
64983
64994
|
], yu.prototype, "colorMultiplier", 2);
|
|
64984
|
-
|
|
64995
|
+
Nr([
|
|
64985
64996
|
x(Si)
|
|
64986
64997
|
], yu.prototype, "disabledColor", 2);
|
|
64987
|
-
|
|
64998
|
+
Nr([
|
|
64988
64999
|
x()
|
|
64989
65000
|
], yu.prototype, "fadeDuration", 2);
|
|
64990
|
-
|
|
65001
|
+
Nr([
|
|
64991
65002
|
x(Si)
|
|
64992
65003
|
], yu.prototype, "highlightedColor", 2);
|
|
64993
|
-
|
|
65004
|
+
Nr([
|
|
64994
65005
|
x(Si)
|
|
64995
65006
|
], yu.prototype, "normalColor", 2);
|
|
64996
|
-
|
|
65007
|
+
Nr([
|
|
64997
65008
|
x(Si)
|
|
64998
65009
|
], yu.prototype, "pressedColor", 2);
|
|
64999
|
-
|
|
65010
|
+
Nr([
|
|
65000
65011
|
x(Si)
|
|
65001
65012
|
], yu.prototype, "selectedColor", 2);
|
|
65002
65013
|
class ih extends Me {
|
|
@@ -65108,22 +65119,22 @@ class ih extends Me {
|
|
|
65108
65119
|
return i ? t.clone().multiply(i) : t.clone();
|
|
65109
65120
|
}
|
|
65110
65121
|
}
|
|
65111
|
-
|
|
65122
|
+
Nr([
|
|
65112
65123
|
x(Ss)
|
|
65113
65124
|
], ih.prototype, "onClick", 2);
|
|
65114
|
-
|
|
65125
|
+
Nr([
|
|
65115
65126
|
x()
|
|
65116
65127
|
], ih.prototype, "colors", 2);
|
|
65117
|
-
|
|
65128
|
+
Nr([
|
|
65118
65129
|
x()
|
|
65119
65130
|
], ih.prototype, "transition", 2);
|
|
65120
|
-
|
|
65131
|
+
Nr([
|
|
65121
65132
|
x()
|
|
65122
65133
|
], ih.prototype, "animationTriggers", 2);
|
|
65123
|
-
|
|
65134
|
+
Nr([
|
|
65124
65135
|
x(js)
|
|
65125
65136
|
], ih.prototype, "animator", 2);
|
|
65126
|
-
|
|
65137
|
+
Nr([
|
|
65127
65138
|
x()
|
|
65128
65139
|
], ih.prototype, "interactable", 1);
|
|
65129
65140
|
var Rte = Object.defineProperty, Pte = Object.getOwnPropertyDescriptor, Sn = (n, e, t, i) => {
|
|
@@ -65158,7 +65169,7 @@ Sn([
|
|
|
65158
65169
|
Sn([
|
|
65159
65170
|
x()
|
|
65160
65171
|
], bu.prototype, "bottom", 2);
|
|
65161
|
-
class
|
|
65172
|
+
class zr extends Me {
|
|
65162
65173
|
constructor() {
|
|
65163
65174
|
super(...arguments);
|
|
65164
65175
|
u(this, "_rectTransform", null);
|
|
@@ -65211,35 +65222,35 @@ class Nr extends Me {
|
|
|
65211
65222
|
}
|
|
65212
65223
|
Sn([
|
|
65213
65224
|
x()
|
|
65214
|
-
],
|
|
65225
|
+
], zr.prototype, "childAlignment", 2);
|
|
65215
65226
|
Sn([
|
|
65216
65227
|
x()
|
|
65217
|
-
],
|
|
65228
|
+
], zr.prototype, "reverseArrangement", 2);
|
|
65218
65229
|
Sn([
|
|
65219
65230
|
x()
|
|
65220
|
-
],
|
|
65231
|
+
], zr.prototype, "spacing", 2);
|
|
65221
65232
|
Sn([
|
|
65222
65233
|
x(bu)
|
|
65223
|
-
],
|
|
65234
|
+
], zr.prototype, "padding", 2);
|
|
65224
65235
|
Sn([
|
|
65225
65236
|
x()
|
|
65226
|
-
],
|
|
65237
|
+
], zr.prototype, "minWidth", 2);
|
|
65227
65238
|
Sn([
|
|
65228
65239
|
x()
|
|
65229
|
-
],
|
|
65240
|
+
], zr.prototype, "minHeight", 2);
|
|
65230
65241
|
Sn([
|
|
65231
65242
|
x()
|
|
65232
|
-
],
|
|
65243
|
+
], zr.prototype, "flexibleHeight", 2);
|
|
65233
65244
|
Sn([
|
|
65234
65245
|
x()
|
|
65235
|
-
],
|
|
65246
|
+
], zr.prototype, "flexibleWidth", 2);
|
|
65236
65247
|
Sn([
|
|
65237
65248
|
x()
|
|
65238
|
-
],
|
|
65249
|
+
], zr.prototype, "preferredHeight", 2);
|
|
65239
65250
|
Sn([
|
|
65240
65251
|
x()
|
|
65241
|
-
],
|
|
65242
|
-
class nh extends
|
|
65252
|
+
], zr.prototype, "preferredWidth", 2);
|
|
65253
|
+
class nh extends zr {
|
|
65243
65254
|
constructor() {
|
|
65244
65255
|
super(...arguments);
|
|
65245
65256
|
u(this, "childControlHeight", !0);
|
|
@@ -65320,7 +65331,7 @@ class KN extends nh {
|
|
|
65320
65331
|
return "x";
|
|
65321
65332
|
}
|
|
65322
65333
|
}
|
|
65323
|
-
class JN extends
|
|
65334
|
+
class JN extends zr {
|
|
65324
65335
|
onCalculateLayout() {
|
|
65325
65336
|
}
|
|
65326
65337
|
}
|
|
@@ -65469,7 +65480,7 @@ const kw = re("debuguilayout"), $N = class extends $b {
|
|
|
65469
65480
|
for (const i of this._rectTransforms) {
|
|
65470
65481
|
e && i.markDirty();
|
|
65471
65482
|
let s = this._layoutGroups.get(i.gameObject);
|
|
65472
|
-
i.isDirty && !s && (s = i.gameObject.getComponentInParent(
|
|
65483
|
+
i.isDirty && !s && (s = i.gameObject.getComponentInParent(zr)), (i.isDirty || s != null && s.isDirty) && (kw && !t && console.log("CANVAS UPDATE ### " + i.name + " ##################################### " + this.context.time.frame), s == null || s.updateLayout(), i.updateTransform());
|
|
65473
65484
|
}
|
|
65474
65485
|
}
|
|
65475
65486
|
applyRenderSettings() {
|
|
@@ -65535,7 +65546,7 @@ Ua([
|
|
|
65535
65546
|
x()
|
|
65536
65547
|
], Ts.prototype, "scaleFactor", 1);
|
|
65537
65548
|
Ua([
|
|
65538
|
-
x(
|
|
65549
|
+
x(zi)
|
|
65539
65550
|
], Ts.prototype, "worldCamera", 2);
|
|
65540
65551
|
Ua([
|
|
65541
65552
|
x()
|
|
@@ -65665,7 +65676,7 @@ const ac = ($v = class extends Me {
|
|
|
65665
65676
|
}
|
|
65666
65677
|
awake() {
|
|
65667
65678
|
if (this.variantMaterial && this.materialToSwitch) {
|
|
65668
|
-
const e = se.findObjectsOfType(
|
|
65679
|
+
const e = se.findObjectsOfType(qi);
|
|
65669
65680
|
for (const t of e)
|
|
65670
65681
|
for (let i = 0; i < t.sharedMaterials.length; i++) {
|
|
65671
65682
|
const s = t.sharedMaterials[i];
|
|
@@ -65688,7 +65699,7 @@ const ac = ($v = class extends Me {
|
|
|
65688
65699
|
}
|
|
65689
65700
|
}
|
|
65690
65701
|
async beforeCreateDocument(e, t) {
|
|
65691
|
-
this.targetModels = [], ac._materialTriggersPerId = {}, ac.variantSwitchIndex = 0, this.materialToSwitch && await
|
|
65702
|
+
this.targetModels = [], ac._materialTriggersPerId = {}, ac.variantSwitchIndex = 0, this.materialToSwitch && await fo.assignTextureLOD(this.context, this.sourceId, this.materialToSwitch, 0), this.variantMaterial && await fo.assignTextureLOD(this.context, this.sourceId, this.variantMaterial, 0);
|
|
65692
65703
|
}
|
|
65693
65704
|
createBehaviours(e, t, i) {
|
|
65694
65705
|
this._objectsWithThisMaterial.find((r) => r.uuid === t.uuid) && this.targetModels.push(t), this.gameObject.uuid === t.uuid && (this.selfModel = t, this.materialToSwitch && (ac._materialTriggersPerId[this.materialToSwitch.uuid] || (ac._materialTriggersPerId[this.materialToSwitch.uuid] = []), ac._materialTriggersPerId[this.materialToSwitch.uuid].push(this)));
|
|
@@ -66603,25 +66614,25 @@ const Fo = (ey = class {
|
|
|
66603
66614
|
return Fo._temp.set(16711935), Fo._temp.alpha = 1, Fo._temp;
|
|
66604
66615
|
}
|
|
66605
66616
|
}, u(ey, "_temp", new Si(0, 0, 0, 1)), u(ey, "_temp2", new Si(0, 0, 0, 1)), ey);
|
|
66606
|
-
let
|
|
66617
|
+
let Gr = Fo;
|
|
66607
66618
|
ne([
|
|
66608
66619
|
x(Si)
|
|
66609
|
-
],
|
|
66620
|
+
], Gr.prototype, "color", 2);
|
|
66610
66621
|
ne([
|
|
66611
66622
|
x(Si)
|
|
66612
|
-
],
|
|
66623
|
+
], Gr.prototype, "colorMin", 2);
|
|
66613
66624
|
ne([
|
|
66614
66625
|
x(Si)
|
|
66615
|
-
],
|
|
66626
|
+
], Gr.prototype, "colorMax", 2);
|
|
66616
66627
|
ne([
|
|
66617
66628
|
x(wu)
|
|
66618
|
-
],
|
|
66629
|
+
], Gr.prototype, "gradient", 2);
|
|
66619
66630
|
ne([
|
|
66620
66631
|
x(wu)
|
|
66621
|
-
],
|
|
66632
|
+
], Gr.prototype, "gradientMin", 2);
|
|
66622
66633
|
ne([
|
|
66623
66634
|
x(wu)
|
|
66624
|
-
],
|
|
66635
|
+
], Gr.prototype, "gradientMax", 2);
|
|
66625
66636
|
var oE = /* @__PURE__ */ ((n) => (n[n.Hierarchy = 0] = "Hierarchy", n[n.Local = 1] = "Local", n[n.Shape = 2] = "Shape", n))(oE || {});
|
|
66626
66637
|
class Rs {
|
|
66627
66638
|
constructor() {
|
|
@@ -66673,7 +66684,7 @@ ne([
|
|
|
66673
66684
|
x(ht)
|
|
66674
66685
|
], Rs.prototype, "gravityModifier", 2);
|
|
66675
66686
|
ne([
|
|
66676
|
-
x(
|
|
66687
|
+
x(Gr)
|
|
66677
66688
|
], Rs.prototype, "startColor", 2);
|
|
66678
66689
|
ne([
|
|
66679
66690
|
x(ht)
|
|
@@ -66802,7 +66813,7 @@ class A_ {
|
|
|
66802
66813
|
}
|
|
66803
66814
|
}
|
|
66804
66815
|
ne([
|
|
66805
|
-
x(
|
|
66816
|
+
x(Gr)
|
|
66806
66817
|
], A_.prototype, "color", 2);
|
|
66807
66818
|
class Su {
|
|
66808
66819
|
constructor() {
|
|
@@ -67215,10 +67226,10 @@ ne([
|
|
|
67215
67226
|
x()
|
|
67216
67227
|
], Xi.prototype, "attachRibbonToTransform", 2);
|
|
67217
67228
|
ne([
|
|
67218
|
-
x(
|
|
67229
|
+
x(Gr)
|
|
67219
67230
|
], Xi.prototype, "colorOverLifetime", 2);
|
|
67220
67231
|
ne([
|
|
67221
|
-
x(
|
|
67232
|
+
x(Gr)
|
|
67222
67233
|
], Xi.prototype, "colorOverTrail", 2);
|
|
67223
67234
|
ne([
|
|
67224
67235
|
x()
|
|
@@ -67731,7 +67742,7 @@ ne([
|
|
|
67731
67742
|
x(te)
|
|
67732
67743
|
], Lf.prototype, "range", 2);
|
|
67733
67744
|
ne([
|
|
67734
|
-
x(
|
|
67745
|
+
x(Gr)
|
|
67735
67746
|
], Lf.prototype, "color", 2);
|
|
67736
67747
|
function aD(n) {
|
|
67737
67748
|
const e = n.domElement.shadowRoot.querySelector("link[rel='ar']");
|
|
@@ -67753,7 +67764,7 @@ function Kte() {
|
|
|
67753
67764
|
}
|
|
67754
67765
|
const Fv = re("debugusdz");
|
|
67755
67766
|
function Jte(n, e) {
|
|
67756
|
-
const t = [], i = se.getComponentsInChildren(n, js), s = se.getComponentsInChildren(n,
|
|
67767
|
+
const t = [], i = se.getComponentsInChildren(n, js), s = se.getComponentsInChildren(n, xo);
|
|
67757
67768
|
let r = !1;
|
|
67758
67769
|
const o = new Qs("rest", 0.01, []), a = /* @__PURE__ */ new Map(), c = (l, h) => {
|
|
67759
67770
|
if (!r && h.tracks.length > 0 && (r = !0, l.push(o)), h.tracks.length > 0)
|
|
@@ -68360,7 +68371,7 @@ class pT {
|
|
|
68360
68371
|
e.index.needsUpdate = !0;
|
|
68361
68372
|
}
|
|
68362
68373
|
}
|
|
68363
|
-
var nie = Object.defineProperty, sie = Object.getOwnPropertyDescriptor,
|
|
68374
|
+
var nie = Object.defineProperty, sie = Object.getOwnPropertyDescriptor, Hr = (n, e, t, i) => {
|
|
68364
68375
|
for (var s = i > 1 ? void 0 : i ? sie(e, t) : e, r = n.length - 1, o; r >= 0; r--)
|
|
68365
68376
|
(o = n[r]) && (s = (i ? o(e, t, s) : o(s)) || s);
|
|
68366
68377
|
return i && s && nie(e, t, s), s;
|
|
@@ -68374,16 +68385,16 @@ class Eu {
|
|
|
68374
68385
|
u(this, "callToActionURL");
|
|
68375
68386
|
}
|
|
68376
68387
|
}
|
|
68377
|
-
|
|
68388
|
+
Hr([
|
|
68378
68389
|
x()
|
|
68379
68390
|
], Eu.prototype, "callToAction", 2);
|
|
68380
|
-
|
|
68391
|
+
Hr([
|
|
68381
68392
|
x()
|
|
68382
68393
|
], Eu.prototype, "checkoutTitle", 2);
|
|
68383
|
-
|
|
68394
|
+
Hr([
|
|
68384
68395
|
x()
|
|
68385
68396
|
], Eu.prototype, "checkoutSubtitle", 2);
|
|
68386
|
-
|
|
68397
|
+
Hr([
|
|
68387
68398
|
x()
|
|
68388
68399
|
], Eu.prototype, "callToActionURL", 2);
|
|
68389
68400
|
class Mo extends Me {
|
|
@@ -68446,7 +68457,7 @@ class Mo extends Me {
|
|
|
68446
68457
|
console.warn("No object to export", this);
|
|
68447
68458
|
return;
|
|
68448
68459
|
}
|
|
68449
|
-
const i = se.getComponentsInChildren(this.objectToExport,
|
|
68460
|
+
const i = se.getComponentsInChildren(this.objectToExport, qi), s = new Array();
|
|
68450
68461
|
for (const m of i)
|
|
68451
68462
|
for (const b of m.sharedMaterials)
|
|
68452
68463
|
if (b) {
|
|
@@ -68538,31 +68549,31 @@ class Mo extends Me {
|
|
|
68538
68549
|
Mn && console.log("AR Session Root scale", r, s), s.matrix.makeScale(r, r, r), t.invertForward && s.matrix.multiply(new Re().makeRotationY(Math.PI));
|
|
68539
68550
|
}
|
|
68540
68551
|
}
|
|
68541
|
-
|
|
68552
|
+
Hr([
|
|
68542
68553
|
x(Te)
|
|
68543
68554
|
], Mo.prototype, "objectToExport", 2);
|
|
68544
|
-
|
|
68555
|
+
Hr([
|
|
68545
68556
|
x()
|
|
68546
68557
|
], Mo.prototype, "autoExportAnimations", 2);
|
|
68547
|
-
|
|
68558
|
+
Hr([
|
|
68548
68559
|
x()
|
|
68549
68560
|
], Mo.prototype, "exportFileName", 2);
|
|
68550
|
-
|
|
68561
|
+
Hr([
|
|
68551
68562
|
x(URL)
|
|
68552
68563
|
], Mo.prototype, "customUsdzFile", 2);
|
|
68553
|
-
|
|
68564
|
+
Hr([
|
|
68554
68565
|
x(Eu)
|
|
68555
68566
|
], Mo.prototype, "customBranding", 2);
|
|
68556
|
-
|
|
68567
|
+
Hr([
|
|
68557
68568
|
x()
|
|
68558
68569
|
], Mo.prototype, "anchoringType", 2);
|
|
68559
|
-
|
|
68570
|
+
Hr([
|
|
68560
68571
|
x()
|
|
68561
68572
|
], Mo.prototype, "planeAnchoringAlignment", 2);
|
|
68562
|
-
|
|
68573
|
+
Hr([
|
|
68563
68574
|
x()
|
|
68564
68575
|
], Mo.prototype, "interactive", 2);
|
|
68565
|
-
|
|
68576
|
+
Hr([
|
|
68566
68577
|
x()
|
|
68567
68578
|
], Mo.prototype, "allowCreateQuicklookButton", 2);
|
|
68568
68579
|
const cD = re("debugdeletable");
|
|
@@ -68833,9 +68844,9 @@ const aI = class {
|
|
|
68833
68844
|
u(this, "_selected", null);
|
|
68834
68845
|
u(this, "_context", null);
|
|
68835
68846
|
u(this, "_camera");
|
|
68836
|
-
u(this, "_cameraPlane", new
|
|
68847
|
+
u(this, "_cameraPlane", new go());
|
|
68837
68848
|
u(this, "_hasGroundPlane", !1);
|
|
68838
|
-
u(this, "_groundPlane", new
|
|
68849
|
+
u(this, "_groundPlane", new go());
|
|
68839
68850
|
u(this, "_groundOffset", new S());
|
|
68840
68851
|
u(this, "_groundOffsetFactor", 0);
|
|
68841
68852
|
u(this, "_groundDistance", 0);
|
|
@@ -68854,7 +68865,7 @@ const aI = class {
|
|
|
68854
68865
|
this._camera = e;
|
|
68855
68866
|
const t = new cn(aI.geometry), i = t.material;
|
|
68856
68867
|
i.color = new _e(0.4, 0.4, 0.4), t.layers.set(2), t.name = "line", t.scale.y = 1, this._groundLine = t;
|
|
68857
|
-
const s = new
|
|
68868
|
+
const s = new wo(0.5, 22, 22), r = new hi({ color: i.color }), o = new ye(s, r);
|
|
68858
68869
|
o.visible = !1, o.layers.set(2), this._groundMarker = o;
|
|
68859
68870
|
}
|
|
68860
68871
|
get hasSelected() {
|
|
@@ -68999,7 +69010,7 @@ async function gie(n, e) {
|
|
|
68999
69010
|
a && a.scene ? (a.scene, AT(), t(a)) : console.warn("Unsupported file type: " + n.toString());
|
|
69000
69011
|
});
|
|
69001
69012
|
}
|
|
69002
|
-
|
|
69013
|
+
Qi.registerCallback(ir.ContextCreated, (n) => {
|
|
69003
69014
|
mie(n.context);
|
|
69004
69015
|
});
|
|
69005
69016
|
function mie(n) {
|
|
@@ -69556,7 +69567,7 @@ class h3 extends Me {
|
|
|
69556
69567
|
}
|
|
69557
69568
|
onEnable() {
|
|
69558
69569
|
var i;
|
|
69559
|
-
const t = (i = se.getComponent(this.gameObject,
|
|
69570
|
+
const t = (i = se.getComponent(this.gameObject, zi)) == null ? void 0 : i.cam;
|
|
69560
69571
|
if (!t) {
|
|
69561
69572
|
console.warn("FlyControls: Requires a Camera component on the same object as this component.");
|
|
69562
69573
|
return;
|
|
@@ -69762,9 +69773,9 @@ Ir[Zd] = Jt.NEAREST_MIPMAP_NEAREST;
|
|
|
69762
69773
|
Ir[Yh] = Jt.NEAREST_MIPMAP_LINEAR;
|
|
69763
69774
|
Ir[Ft] = Jt.LINEAR;
|
|
69764
69775
|
Ir[xm] = Jt.LINEAR_MIPMAP_NEAREST;
|
|
69765
|
-
Ir[
|
|
69776
|
+
Ir[_o] = Jt.LINEAR_MIPMAP_LINEAR;
|
|
69766
69777
|
Ir[jn] = Jt.CLAMP_TO_EDGE;
|
|
69767
|
-
Ir[
|
|
69778
|
+
Ir[bo] = Jt.REPEAT;
|
|
69768
69779
|
Ir[nu] = Jt.MIRRORED_REPEAT;
|
|
69769
69780
|
const hD = {
|
|
69770
69781
|
scale: "scale",
|
|
@@ -70910,7 +70921,7 @@ class yl extends Me {
|
|
|
70910
70921
|
animations: yl.collectAnimations(t)
|
|
70911
70922
|
}, r = new Te();
|
|
70912
70923
|
i != null && i.pivot && r.position.sub(i.pivot), zw && console.log("EXPORT", t), t.forEach((c) => {
|
|
70913
|
-
c && (r.children.push(c), c.matrixAutoUpdate = !1, c.matrix.copy(c.matrixWorld), se.getComponentsInChildren(c,
|
|
70924
|
+
c && (r.children.push(c), c.matrixAutoUpdate = !1, c.matrix.copy(c.matrixWorld), se.getComponentsInChildren(c, qi).forEach((l) => {
|
|
70914
70925
|
se.isActiveInHierarchy(l.gameObject) && l.setInstancingEnabled(!1);
|
|
70915
70926
|
}));
|
|
70916
70927
|
});
|
|
@@ -70939,7 +70950,7 @@ class yl extends Me {
|
|
|
70939
70950
|
});
|
|
70940
70951
|
function a() {
|
|
70941
70952
|
t.forEach((c) => {
|
|
70942
|
-
c && (c.matrixAutoUpdate = !0, se.getComponentsInChildren(c,
|
|
70953
|
+
c && (c.matrixAutoUpdate = !0, se.getComponentsInChildren(c, qi).forEach((l) => {
|
|
70943
70954
|
se.isActiveInHierarchy(l.gameObject) && l.setInstancingEnabled(!1);
|
|
70944
70955
|
}));
|
|
70945
70956
|
});
|
|
@@ -71403,7 +71414,7 @@ function Gw(n) {
|
|
|
71403
71414
|
return n * Math.PI / 180;
|
|
71404
71415
|
}
|
|
71405
71416
|
const gD = 300, ll = re("debuglights");
|
|
71406
|
-
class
|
|
71417
|
+
class Vr extends Me {
|
|
71407
71418
|
constructor() {
|
|
71408
71419
|
super(...arguments);
|
|
71409
71420
|
u(this, "type", 0);
|
|
@@ -71606,37 +71617,37 @@ class Hr extends Me {
|
|
|
71606
71617
|
t.add(t.target), t.target.position.set(0, 0, -1);
|
|
71607
71618
|
}
|
|
71608
71619
|
}
|
|
71609
|
-
u(
|
|
71620
|
+
u(Vr, "allowChangingRendererShadowMapType", !0);
|
|
71610
71621
|
za([
|
|
71611
71622
|
x()
|
|
71612
|
-
],
|
|
71623
|
+
], Vr.prototype, "type", 2);
|
|
71613
71624
|
za([
|
|
71614
71625
|
x(_e)
|
|
71615
|
-
],
|
|
71626
|
+
], Vr.prototype, "color", 1);
|
|
71616
71627
|
za([
|
|
71617
71628
|
x()
|
|
71618
|
-
],
|
|
71629
|
+
], Vr.prototype, "shadowNearPlane", 1);
|
|
71619
71630
|
za([
|
|
71620
71631
|
x()
|
|
71621
|
-
],
|
|
71632
|
+
], Vr.prototype, "shadowBias", 1);
|
|
71622
71633
|
za([
|
|
71623
71634
|
x()
|
|
71624
|
-
],
|
|
71635
|
+
], Vr.prototype, "shadowNormalBias", 1);
|
|
71625
71636
|
za([
|
|
71626
71637
|
x()
|
|
71627
|
-
],
|
|
71638
|
+
], Vr.prototype, "shadows", 1);
|
|
71628
71639
|
za([
|
|
71629
71640
|
x()
|
|
71630
|
-
],
|
|
71641
|
+
], Vr.prototype, "lightmapBakeType", 2);
|
|
71631
71642
|
za([
|
|
71632
71643
|
x()
|
|
71633
|
-
],
|
|
71644
|
+
], Vr.prototype, "intensity", 1);
|
|
71634
71645
|
za([
|
|
71635
71646
|
x()
|
|
71636
|
-
],
|
|
71647
|
+
], Vr.prototype, "shadowDistance", 1);
|
|
71637
71648
|
za([
|
|
71638
71649
|
x()
|
|
71639
|
-
],
|
|
71650
|
+
], Vr.prototype, "shadowResolution", 1);
|
|
71640
71651
|
new S(0, 0, 0);
|
|
71641
71652
|
var une = Object.defineProperty, dne = Object.getOwnPropertyDescriptor, lA = (n, e, t, i) => {
|
|
71642
71653
|
for (var s = i > 1 ? void 0 : i ? dne(e, t) : e, r = n.length - 1, o; r >= 0; r--)
|
|
@@ -71658,7 +71669,7 @@ lA([
|
|
|
71658
71669
|
x()
|
|
71659
71670
|
], Gf.prototype, "distance", 2);
|
|
71660
71671
|
lA([
|
|
71661
|
-
x(
|
|
71672
|
+
x(qi)
|
|
71662
71673
|
], Gf.prototype, "renderers", 2);
|
|
71663
71674
|
class pne {
|
|
71664
71675
|
constructor(e) {
|
|
@@ -71905,7 +71916,7 @@ class Vf extends Me {
|
|
|
71905
71916
|
this.offset.copy(this.positionOffset);
|
|
71906
71917
|
const s = this.offset.length();
|
|
71907
71918
|
if (this.referenceSpace && this.offset.transformDirection(this.referenceSpace.matrixWorld).multiplyScalar(s), t.add(this.offset), this.levelPosition && this.referenceSpace) {
|
|
71908
|
-
const c = new
|
|
71919
|
+
const c = new go(this.gameObject.up, 0), l = Ct(this.referenceSpace);
|
|
71909
71920
|
c.setFromNormalAndCoplanarPoint(this.gameObject.up, l);
|
|
71910
71921
|
const h = new S(0, 0, 0);
|
|
71911
71922
|
c.projectPoint(t, h), t.copy(h);
|
|
@@ -76425,7 +76436,7 @@ const vE = (pS = class extends Me {
|
|
|
76425
76436
|
};
|
|
76426
76437
|
}
|
|
76427
76438
|
const t = e === !0 && this.trailMaterial ? this.trailMaterial : this.particleMaterial;
|
|
76428
|
-
return t && !Qse && t._didRequestTextureLOD === void 0 && (t._didRequestTextureLOD = 0, Wse && console.log("Load material LOD", t.name),
|
|
76439
|
+
return t && !Qse && t._didRequestTextureLOD === void 0 && (t._didRequestTextureLOD = 0, Wse && console.log("Load material LOD", t.name), fo.assignTextureLOD(this.context, this.sourceId, t)), t;
|
|
76429
76440
|
}
|
|
76430
76441
|
getMesh(e) {
|
|
76431
76442
|
let t = null;
|
|
@@ -77576,7 +77587,7 @@ function ZD(n, e, t, i, s) {
|
|
|
77576
77587
|
ba && console.log("Destroyed attribute remote skybox", s), Sz(n.domElement, s, o);
|
|
77577
77588
|
}), r.setSkybox(e);
|
|
77578
77589
|
}
|
|
77579
|
-
|
|
77590
|
+
Qi.addContextCreatedCallback((n) => {
|
|
77580
77591
|
const e = n.context, t = e.domElement.getAttribute("skybox-image"), i = e.domElement.getAttribute("environment-image"), s = new Array();
|
|
77581
77592
|
if (t) {
|
|
77582
77593
|
ba && console.log("Creating remote skybox to load " + t);
|
|
@@ -77631,7 +77642,7 @@ class Hl extends Me {
|
|
|
77631
77642
|
}
|
|
77632
77643
|
onDisable() {
|
|
77633
77644
|
var t;
|
|
77634
|
-
this.context.scene.environment === this._prevLoadedEnvironment && (this.context.scene.environment = this._prevEnvironment,
|
|
77645
|
+
this.context.scene.environment === this._prevLoadedEnvironment && (this.context.scene.environment = this._prevEnvironment, zi.backgroundShouldBeTransparent(this.context) || (this.context.scene.background = this._prevBackground), this._prevLoadedEnvironment = void 0), this.unregisterDropEvents(), (t = this.context.mainCameraComponent) == null || t.applyClearFlags();
|
|
77635
77646
|
}
|
|
77636
77647
|
urlChangedSyncField() {
|
|
77637
77648
|
this.allowNetworking && this.setSkybox(this.url);
|
|
@@ -77671,7 +77682,7 @@ class Hl extends Me {
|
|
|
77671
77682
|
applySkybox() {
|
|
77672
77683
|
var i;
|
|
77673
77684
|
const t = this._prevLoadedEnvironment;
|
|
77674
|
-
t && (t.mapping = Jd, t.needsUpdate = !0, this.context.scene.background !== t && (this._prevBackground = this.context.scene.background), this.context.scene.environment !== t && (this._prevEnvironment = this.context.scene.environment), ba && console.log("Set remote skybox", this.url), this.environment && (this.context.scene.environment = t), this.background && !
|
|
77685
|
+
t && (t.mapping = Jd, t.needsUpdate = !0, this.context.scene.background !== t && (this._prevBackground = this.context.scene.background), this.context.scene.environment !== t && (this._prevEnvironment = this.context.scene.environment), ba && console.log("Set remote skybox", this.url), this.environment && (this.context.scene.environment = t), this.background && !zi.backgroundShouldBeTransparent(this.context) && (this.context.scene.background = t), ((i = this.context.mainCameraComponent) == null ? void 0 : i.backgroundBlurriness) !== void 0 && (this.context.scene.backgroundBlurriness = this.context.mainCameraComponent.backgroundBlurriness));
|
|
77675
77686
|
}
|
|
77676
77687
|
registerDropEvents() {
|
|
77677
77688
|
this.dragOverEvent || (this.dragOverEvent = (t) => {
|
|
@@ -77720,7 +77731,7 @@ var vre = Object.defineProperty, yre = Object.getOwnPropertyDescriptor, ia = (n,
|
|
|
77720
77731
|
const zo = re("debugsceneswitcher"), Ry = "scene";
|
|
77721
77732
|
FT(Ry);
|
|
77722
77733
|
const hl = Promise.resolve(!1);
|
|
77723
|
-
class
|
|
77734
|
+
class Qr extends Me {
|
|
77724
77735
|
constructor() {
|
|
77725
77736
|
super(...arguments);
|
|
77726
77737
|
u(this, "scenes");
|
|
@@ -77931,37 +77942,37 @@ class Vr extends Me {
|
|
|
77931
77942
|
}
|
|
77932
77943
|
ia([
|
|
77933
77944
|
x(Xn)
|
|
77934
|
-
],
|
|
77945
|
+
], Qr.prototype, "scenes", 2);
|
|
77935
77946
|
ia([
|
|
77936
77947
|
x()
|
|
77937
|
-
],
|
|
77948
|
+
], Qr.prototype, "queryParameterName", 2);
|
|
77938
77949
|
ia([
|
|
77939
77950
|
x()
|
|
77940
|
-
],
|
|
77951
|
+
], Qr.prototype, "useSceneName", 2);
|
|
77941
77952
|
ia([
|
|
77942
77953
|
x()
|
|
77943
|
-
],
|
|
77954
|
+
], Qr.prototype, "clamp", 2);
|
|
77944
77955
|
ia([
|
|
77945
77956
|
x()
|
|
77946
|
-
],
|
|
77957
|
+
], Qr.prototype, "useHistory", 2);
|
|
77947
77958
|
ia([
|
|
77948
77959
|
x()
|
|
77949
|
-
],
|
|
77960
|
+
], Qr.prototype, "useKeyboard", 2);
|
|
77950
77961
|
ia([
|
|
77951
77962
|
x()
|
|
77952
|
-
],
|
|
77963
|
+
], Qr.prototype, "useSwipe", 2);
|
|
77953
77964
|
ia([
|
|
77954
77965
|
x()
|
|
77955
|
-
],
|
|
77966
|
+
], Qr.prototype, "useSceneLighting", 2);
|
|
77956
77967
|
ia([
|
|
77957
77968
|
x()
|
|
77958
|
-
],
|
|
77969
|
+
], Qr.prototype, "preloadNext", 2);
|
|
77959
77970
|
ia([
|
|
77960
77971
|
x()
|
|
77961
|
-
],
|
|
77972
|
+
], Qr.prototype, "preloadPrevious", 2);
|
|
77962
77973
|
ia([
|
|
77963
77974
|
x()
|
|
77964
|
-
],
|
|
77975
|
+
], Qr.prototype, "preloadConcurrent", 2);
|
|
77965
77976
|
function $D(n) {
|
|
77966
77977
|
const e = n.split("/").pop(), t = e == null ? void 0 : e.split(".").shift();
|
|
77967
77978
|
return t != null && t.length ? t : n;
|
|
@@ -78055,7 +78066,7 @@ class Sre {
|
|
|
78055
78066
|
i = new ye(o, a);
|
|
78056
78067
|
break;
|
|
78057
78068
|
case 2:
|
|
78058
|
-
const c = new
|
|
78069
|
+
const c = new wo(0.5, 16, 16), l = (t == null ? void 0 : t.material) ?? new Xo({ color: 14540253 });
|
|
78059
78070
|
i = new ye(c, l);
|
|
78060
78071
|
break;
|
|
78061
78072
|
}
|
|
@@ -78250,7 +78261,7 @@ class Bs extends Me {
|
|
|
78250
78261
|
let i = this.gameObject;
|
|
78251
78262
|
switch (this.renderMode) {
|
|
78252
78263
|
case 3:
|
|
78253
|
-
i = (r = this.targetMaterialRenderer) == null ? void 0 : r.gameObject, i || (i = (o = se.getComponent(this.gameObject,
|
|
78264
|
+
i = (r = this.targetMaterialRenderer) == null ? void 0 : r.gameObject, i || (i = (o = se.getComponent(this.gameObject, qi)) == null ? void 0 : o.gameObject);
|
|
78254
78265
|
break;
|
|
78255
78266
|
case 2:
|
|
78256
78267
|
console.error("VideoPlayer renderTexture not implemented yet. Please use material override instead");
|
|
@@ -78350,7 +78361,7 @@ To([
|
|
|
78350
78361
|
x()
|
|
78351
78362
|
], Bs.prototype, "targetMaterialProperty", 2);
|
|
78352
78363
|
To([
|
|
78353
|
-
x(
|
|
78364
|
+
x(qi)
|
|
78354
78365
|
], Bs.prototype, "targetMaterialRenderer", 2);
|
|
78355
78366
|
To([
|
|
78356
78367
|
x(kt)
|
|
@@ -80137,7 +80148,7 @@ class Qre extends Is {
|
|
|
80137
80148
|
minFilter: Ft,
|
|
80138
80149
|
magFilter: Ft,
|
|
80139
80150
|
depthBuffer: !1
|
|
80140
|
-
}), this.bluenoise = new
|
|
80151
|
+
}), this.bluenoise = new yo(Vre, 128, 128), this.bluenoise.colorSpace = ar, this.bluenoise.wrapS = bo, this.bluenoise.wrapT = bo, this.bluenoise.minFilter = Ht, this.bluenoise.magFilter = Ht, this.bluenoise.needsUpdate = !0, this.lastTime = 0, this.needsDepthTexture = !0, this.needsSwap = !0, this._r = new te(), this._c = new _e();
|
|
80141
80152
|
}
|
|
80142
80153
|
configureHalfResTargets() {
|
|
80143
80154
|
this.configuration.halfRes ? (this.depthDownsampleTarget = /*new THREE.WebGLRenderTarget(this.width / 2, this.height / 2, {
|
|
@@ -80318,7 +80329,7 @@ class Ga extends Ys {
|
|
|
80318
80329
|
}
|
|
80319
80330
|
}
|
|
80320
80331
|
Tu([
|
|
80321
|
-
|
|
80332
|
+
So(),
|
|
80322
80333
|
x()
|
|
80323
80334
|
], Ga.prototype, "gammaCorrection", 2);
|
|
80324
80335
|
Tu([
|
|
@@ -80331,14 +80342,14 @@ Tu([
|
|
|
80331
80342
|
x(Pt)
|
|
80332
80343
|
], Ga.prototype, "aoRadius", 2);
|
|
80333
80344
|
Tu([
|
|
80334
|
-
|
|
80345
|
+
So(),
|
|
80335
80346
|
x()
|
|
80336
80347
|
], Ga.prototype, "screenspaceRadius", 2);
|
|
80337
80348
|
Tu([
|
|
80338
80349
|
x(Pt)
|
|
80339
80350
|
], Ga.prototype, "color", 2);
|
|
80340
80351
|
Tu([
|
|
80341
|
-
|
|
80352
|
+
So(),
|
|
80342
80353
|
x()
|
|
80343
80354
|
], Ga.prototype, "quality", 2);
|
|
80344
80355
|
$o("ScreenSpaceAmbientOcclusionN8", Ga);
|
|
@@ -80372,7 +80383,7 @@ class O_ extends Me {
|
|
|
80372
80383
|
// Works even better with an additional black-ish gradient to darken parts of the AR scene
|
|
80373
80384
|
// so that lights become more visible on bright surfaces.
|
|
80374
80385
|
applyLightBlendMaterial() {
|
|
80375
|
-
const t = se.getComponent(this.gameObject,
|
|
80386
|
+
const t = se.getComponent(this.gameObject, qi);
|
|
80376
80387
|
if (t) {
|
|
80377
80388
|
const i = t.sharedMaterial;
|
|
80378
80389
|
i.blending = Xd, this.applyMaterialOptions(i), i.onBeforeCompile = (s) => {
|
|
@@ -80398,7 +80409,7 @@ class O_ extends Me {
|
|
|
80398
80409
|
// works great for Directional Lights.
|
|
80399
80410
|
applyShadowMaterial() {
|
|
80400
80411
|
var i;
|
|
80401
|
-
const t = se.getComponent(this.gameObject,
|
|
80412
|
+
const t = se.getComponent(this.gameObject, qi);
|
|
80402
80413
|
if (t)
|
|
80403
80414
|
if (((i = t.sharedMaterial) == null ? void 0 : i.type) !== "ShadowMaterial") {
|
|
80404
80415
|
const s = new A1();
|
|
@@ -80409,7 +80420,7 @@ class O_ extends Me {
|
|
|
80409
80420
|
}
|
|
80410
80421
|
}
|
|
80411
80422
|
applyOccluderMaterial() {
|
|
80412
|
-
const t = se.getComponent(this.gameObject,
|
|
80423
|
+
const t = se.getComponent(this.gameObject, qi);
|
|
80413
80424
|
if (t) {
|
|
80414
80425
|
const i = t.sharedMaterial;
|
|
80415
80426
|
i.depthWrite = !0, i.stencilWrite = !0, i.colorWrite = !1, this.gameObject.renderOrder = -100;
|
|
@@ -80886,7 +80897,7 @@ class UT extends Me {
|
|
|
80886
80897
|
return this.isSpectating && ((t = this.target) == null ? void 0 : t.currentObject) === ((i = this.context.players.getPlayerView(this.localId)) == null ? void 0 : i.currentObject);
|
|
80887
80898
|
}
|
|
80888
80899
|
awake() {
|
|
80889
|
-
if (this._debug = new loe(this.context, this), this._networking = new doe(this.context, this), this._networking.awake(), se.setActive(this.gameObject, !1), this.cam = se.getComponent(this.gameObject,
|
|
80900
|
+
if (this._debug = new loe(this.context, this), this._networking = new doe(this.context, this), this._networking.awake(), se.setActive(this.gameObject, !1), this.cam = se.getComponent(this.gameObject, zi), !this.cam) {
|
|
80890
80901
|
console.warn("SpectatorCamera: Spectator camera needs camera component on the same object.", this);
|
|
80891
80902
|
return;
|
|
80892
80903
|
}
|
|
@@ -82075,7 +82086,7 @@ class Ooe extends Te {
|
|
|
82075
82086
|
]
|
|
82076
82087
|
}, T = {
|
|
82077
82088
|
XYZE: [
|
|
82078
|
-
[new ye(new
|
|
82089
|
+
[new ye(new wo(0.25, 10, 8), i)]
|
|
82079
82090
|
],
|
|
82080
82091
|
X: [
|
|
82081
82092
|
[new ye(new fc(0.5, 0.1, 4, 24), i), [0, 0, 0], [0, -Math.PI / 2, -Math.PI / 2]]
|
|
@@ -83053,9 +83064,9 @@ const tae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
83053
83064
|
__proto__: null,
|
|
83054
83065
|
ActionBuilder: fi,
|
|
83055
83066
|
ActionCollection: oU,
|
|
83056
|
-
ActionModel:
|
|
83067
|
+
ActionModel: po,
|
|
83057
83068
|
AlignmentConstraint: Hb,
|
|
83058
|
-
Animation:
|
|
83069
|
+
Animation: xo,
|
|
83059
83070
|
AnimationCurve: Cf,
|
|
83060
83071
|
AnimationExtension: vM,
|
|
83061
83072
|
AnimationTrackHandler: nT,
|
|
@@ -83088,7 +83099,7 @@ const tae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
83088
83099
|
BoxHelperComponent: Vo,
|
|
83089
83100
|
Button: ih,
|
|
83090
83101
|
CallInfo: tm,
|
|
83091
|
-
Camera:
|
|
83102
|
+
Camera: zi,
|
|
83092
83103
|
Canvas: Ts,
|
|
83093
83104
|
CanvasGroup: hu,
|
|
83094
83105
|
CapsuleCollider: lu,
|
|
@@ -83140,7 +83151,7 @@ const tae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
83140
83151
|
Interactable: zm,
|
|
83141
83152
|
LODGroup: S_,
|
|
83142
83153
|
LODModel: Gf,
|
|
83143
|
-
Light:
|
|
83154
|
+
Light: Vr,
|
|
83144
83155
|
LimitVelocityOverLifetimeModule: Nn,
|
|
83145
83156
|
LogStats: f3,
|
|
83146
83157
|
LookAt: Hf,
|
|
@@ -83150,7 +83161,7 @@ const tae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
83150
83161
|
MeshCollider: h_,
|
|
83151
83162
|
MeshRenderer: pM,
|
|
83152
83163
|
MinMaxCurve: ht,
|
|
83153
|
-
MinMaxGradient:
|
|
83164
|
+
MinMaxGradient: Gr,
|
|
83154
83165
|
NestedGltf: MT,
|
|
83155
83166
|
Networking: Ff,
|
|
83156
83167
|
NoiseModule: Ai,
|
|
@@ -83181,12 +83192,12 @@ const tae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
83181
83192
|
ReflectionProbe: Um,
|
|
83182
83193
|
RegisteredAnimationInfo: AM,
|
|
83183
83194
|
RemoteSkybox: Hl,
|
|
83184
|
-
Renderer:
|
|
83195
|
+
Renderer: qi,
|
|
83185
83196
|
RendererLightmap: u0,
|
|
83186
83197
|
Rigidbody: en,
|
|
83187
83198
|
RotationBySpeedModule: Eo,
|
|
83188
83199
|
RotationOverLifetimeModule: ta,
|
|
83189
|
-
SceneSwitcher:
|
|
83200
|
+
SceneSwitcher: Qr,
|
|
83190
83201
|
ScreenCapture: k_,
|
|
83191
83202
|
ScreenSpaceAmbientOcclusion: oh,
|
|
83192
83203
|
ScreenSpaceAmbientOcclusionN8: Ga,
|
|
@@ -83258,7 +83269,7 @@ const tae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
83258
83269
|
WebXRPlaneTracking: G_,
|
|
83259
83270
|
WebXRSync: _0,
|
|
83260
83271
|
WebXRTrackedImage: bl,
|
|
83261
|
-
XRFlag:
|
|
83272
|
+
XRFlag: mo,
|
|
83262
83273
|
XRGrabModel: QT,
|
|
83263
83274
|
XRGrabRendering: U3,
|
|
83264
83275
|
XRRig: tT,
|
|
@@ -83420,9 +83431,9 @@ class rae extends Me {
|
|
|
83420
83431
|
X.add("__Ignore", N3);
|
|
83421
83432
|
X.add("ActionBuilder", fi);
|
|
83422
83433
|
X.add("ActionCollection", oU);
|
|
83423
|
-
X.add("ActionModel",
|
|
83434
|
+
X.add("ActionModel", po);
|
|
83424
83435
|
X.add("AlignmentConstraint", Hb);
|
|
83425
|
-
X.add("Animation",
|
|
83436
|
+
X.add("Animation", xo);
|
|
83426
83437
|
X.add("AnimationCurve", Cf);
|
|
83427
83438
|
X.add("AnimationExtension", vM);
|
|
83428
83439
|
X.add("AnimationTrackHandler", nT);
|
|
@@ -83455,7 +83466,7 @@ X.add("BoxGizmo", If);
|
|
|
83455
83466
|
X.add("BoxHelperComponent", Vo);
|
|
83456
83467
|
X.add("Button", ih);
|
|
83457
83468
|
X.add("CallInfo", tm);
|
|
83458
|
-
X.add("Camera",
|
|
83469
|
+
X.add("Camera", zi);
|
|
83459
83470
|
X.add("Canvas", Ts);
|
|
83460
83471
|
X.add("CanvasGroup", hu);
|
|
83461
83472
|
X.add("CapsuleCollider", lu);
|
|
@@ -83505,7 +83516,7 @@ X.add("Image", eA);
|
|
|
83505
83516
|
X.add("InheritVelocityModule", Cu);
|
|
83506
83517
|
X.add("InputField", zf);
|
|
83507
83518
|
X.add("Interactable", zm);
|
|
83508
|
-
X.add("Light",
|
|
83519
|
+
X.add("Light", Vr);
|
|
83509
83520
|
X.add("LimitVelocityOverLifetimeModule", Nn);
|
|
83510
83521
|
X.add("LODGroup", S_);
|
|
83511
83522
|
X.add("LODModel", Gf);
|
|
@@ -83517,7 +83528,7 @@ X.add("MaskableGraphic", u_);
|
|
|
83517
83528
|
X.add("MeshCollider", h_);
|
|
83518
83529
|
X.add("MeshRenderer", pM);
|
|
83519
83530
|
X.add("MinMaxCurve", ht);
|
|
83520
|
-
X.add("MinMaxGradient",
|
|
83531
|
+
X.add("MinMaxGradient", Gr);
|
|
83521
83532
|
X.add("NestedGltf", MT);
|
|
83522
83533
|
X.add("Networking", Ff);
|
|
83523
83534
|
X.add("NoiseModule", Ai);
|
|
@@ -83550,13 +83561,13 @@ X.add("RectTransform", fr);
|
|
|
83550
83561
|
X.add("ReflectionProbe", Um);
|
|
83551
83562
|
X.add("RegisteredAnimationInfo", AM);
|
|
83552
83563
|
X.add("RemoteSkybox", Hl);
|
|
83553
|
-
X.add("Renderer",
|
|
83564
|
+
X.add("Renderer", qi);
|
|
83554
83565
|
X.add("RendererLightmap", u0);
|
|
83555
83566
|
X.add("RGBAColor", Si);
|
|
83556
83567
|
X.add("Rigidbody", en);
|
|
83557
83568
|
X.add("RotationBySpeedModule", Eo);
|
|
83558
83569
|
X.add("RotationOverLifetimeModule", ta);
|
|
83559
|
-
X.add("SceneSwitcher",
|
|
83570
|
+
X.add("SceneSwitcher", Qr);
|
|
83560
83571
|
X.add("ScreenCapture", k_);
|
|
83561
83572
|
X.add("ScreenSpaceAmbientOcclusion", oh);
|
|
83562
83573
|
X.add("ScreenSpaceAmbientOcclusionN8", Ga);
|
|
@@ -83628,7 +83639,7 @@ X.add("WebXRImageTrackingModel", ch);
|
|
|
83628
83639
|
X.add("WebXRPlaneTracking", G_);
|
|
83629
83640
|
X.add("WebXRSync", _0);
|
|
83630
83641
|
X.add("WebXRTrackedImage", bl);
|
|
83631
|
-
X.add("XRFlag",
|
|
83642
|
+
X.add("XRFlag", mo);
|
|
83632
83643
|
X.add("XRGrabModel", QT);
|
|
83633
83644
|
X.add("XRGrabRendering", U3);
|
|
83634
83645
|
X.add("XRRig", tT);
|
|
@@ -84805,7 +84816,7 @@ class Ii {
|
|
|
84805
84816
|
e.x = t.x, e.y = t.y, e.z = t.z, e.w = t.w;
|
|
84806
84817
|
}
|
|
84807
84818
|
}
|
|
84808
|
-
var Eg, ha, bk,
|
|
84819
|
+
var Eg, ha, bk, uo, EE, si, R0, Id, ME, TE, _k, xk;
|
|
84809
84820
|
(function(n) {
|
|
84810
84821
|
n[n.Dynamic = 0] = "Dynamic", n[n.Fixed = 1] = "Fixed", n[n.KinematicPositionBased = 2] = "KinematicPositionBased", n[n.KinematicVelocityBased = 3] = "KinematicVelocityBased";
|
|
84811
84822
|
})(Eg || (Eg = {}));
|
|
@@ -85031,7 +85042,7 @@ class Rd {
|
|
|
85031
85042
|
}
|
|
85032
85043
|
(function(n) {
|
|
85033
85044
|
n[n.Average = 0] = "Average", n[n.Min = 1] = "Min", n[n.Multiply = 2] = "Multiply", n[n.Max = 3] = "Max";
|
|
85034
|
-
})(
|
|
85045
|
+
})(uo || (uo = {}));
|
|
85035
85046
|
class ym {
|
|
85036
85047
|
constructor(e, t, i, s, r) {
|
|
85037
85048
|
this.distance = e, this.point1 = t, this.point2 = i, this.normal1 = s, this.normal2 = r;
|
|
@@ -85516,7 +85527,7 @@ class Iae {
|
|
|
85516
85527
|
})(Id || (Id = {}));
|
|
85517
85528
|
class Fi {
|
|
85518
85529
|
constructor(e) {
|
|
85519
|
-
this.shape = e, this.massPropsMode = Id.Density, this.density = 1, this.friction = 0.5, this.restitution = 0, this.rotation = Ii.identity(), this.translation = Ie.zeros(), this.isSensor = !1, this.collisionGroups = 4294967295, this.solverGroups = 4294967295, this.frictionCombineRule =
|
|
85530
|
+
this.shape = e, this.massPropsMode = Id.Density, this.density = 1, this.friction = 0.5, this.restitution = 0, this.rotation = Ii.identity(), this.translation = Ie.zeros(), this.isSensor = !1, this.collisionGroups = 4294967295, this.solverGroups = 4294967295, this.frictionCombineRule = uo.Average, this.restitutionCombineRule = uo.Average, this.activeCollisionTypes = R0.DEFAULT, this.activeEvents = 0, this.activeHooks = 0, this.mass = 0, this.centerOfMass = Ie.zeros(), this.contactForceEventThreshold = 0, this.principalAngularInertia = Ie.zeros(), this.angularInertiaLocalFrame = Ii.identity();
|
|
85520
85531
|
}
|
|
85521
85532
|
static ball(e) {
|
|
85522
85533
|
const t = new ZT(e);
|
|
@@ -85703,14 +85714,14 @@ for (var gle = { byteLength: function(n) {
|
|
|
85703
85714
|
return 3 * (h + d) / 4 - d;
|
|
85704
85715
|
}(0, s, r)), a = 0, c = r > 0 ? s - 4 : s;
|
|
85705
85716
|
for (t = 0; t < c; t += 4)
|
|
85706
|
-
e =
|
|
85707
|
-
return r === 2 && (e =
|
|
85717
|
+
e = so[n.charCodeAt(t)] << 18 | so[n.charCodeAt(t + 1)] << 12 | so[n.charCodeAt(t + 2)] << 6 | so[n.charCodeAt(t + 3)], o[a++] = e >> 16 & 255, o[a++] = e >> 8 & 255, o[a++] = 255 & e;
|
|
85718
|
+
return r === 2 && (e = so[n.charCodeAt(t)] << 2 | so[n.charCodeAt(t + 1)] >> 4, o[a++] = 255 & e), r === 1 && (e = so[n.charCodeAt(t)] << 10 | so[n.charCodeAt(t + 1)] << 4 | so[n.charCodeAt(t + 2)] >> 2, o[a++] = e >> 8 & 255, o[a++] = 255 & e), o;
|
|
85708
85719
|
}, fromByteArray: function(n) {
|
|
85709
85720
|
for (var e, t = n.length, i = t % 3, s = [], r = 16383, o = 0, a = t - i; o < a; o += r)
|
|
85710
85721
|
s.push(kae(n, o, o + r > a ? a : o + r));
|
|
85711
85722
|
return i === 1 ? (e = n[t - 1], s.push(ga[e >> 2] + ga[e << 4 & 63] + "==")) : i === 2 && (e = (n[t - 2] << 8) + n[t - 1], s.push(ga[e >> 10] + ga[e >> 4 & 63] + ga[e << 2 & 63] + "=")), s.join("");
|
|
85712
|
-
} }, ga = [],
|
|
85713
|
-
ga[hd] = rS[hd],
|
|
85723
|
+
} }, ga = [], so = [], Bae = typeof Uint8Array < "u" ? Uint8Array : Array, rS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", hd = 0, Dae = rS.length; hd < Dae; ++hd)
|
|
85724
|
+
ga[hd] = rS[hd], so[rS.charCodeAt(hd)] = hd;
|
|
85714
85725
|
function wk(n) {
|
|
85715
85726
|
var e = n.length;
|
|
85716
85727
|
if (e % 4 > 0)
|
|
@@ -85723,8 +85734,8 @@ function kae(n, e, t) {
|
|
|
85723
85734
|
i = (n[o] << 16 & 16711680) + (n[o + 1] << 8 & 65280) + (255 & n[o + 2]), r.push(ga[(s = i) >> 18 & 63] + ga[s >> 12 & 63] + ga[s >> 6 & 63] + ga[63 & s]);
|
|
85724
85735
|
return r.join("");
|
|
85725
85736
|
}
|
|
85726
|
-
|
|
85727
|
-
const Fs = re("debugphysics"), oS = re("debugcolliderplacement"), aS = re("debugcollisions"), Oae = re("showcolliders"),
|
|
85737
|
+
so["-".charCodeAt(0)] = 62, so["_".charCodeAt(0)] = 63;
|
|
85738
|
+
const Fs = re("debugphysics"), oS = re("debugcolliderplacement"), aS = re("debugcollisions"), Oae = re("showcolliders"), ro = Symbol("needle component"), Oo = Symbol("physics body"), Lae = Symbol("rigidbody");
|
|
85728
85739
|
let ud;
|
|
85729
85740
|
globalThis.false = globalThis.false !== void 0 ? globalThis.false : !0;
|
|
85730
85741
|
Fs && console.log("Use Rapier", !1, globalThis.false);
|
|
@@ -85773,7 +85784,7 @@ const Dg = class {
|
|
|
85773
85784
|
(i = this.world) == null || i.removeCollider(a, !0);
|
|
85774
85785
|
const c = a.parent();
|
|
85775
85786
|
if (c && c.numColliders() <= 0) {
|
|
85776
|
-
const l = c[
|
|
85787
|
+
const l = c[ro];
|
|
85777
85788
|
this.removeBody(l);
|
|
85778
85789
|
}
|
|
85779
85790
|
} else
|
|
@@ -85865,11 +85876,11 @@ const Dg = class {
|
|
|
85865
85876
|
return null;
|
|
85866
85877
|
const o = (a = this.world) == null ? void 0 : a.castRay(r, i, s, void 0, void 0, void 0, void 0, (c) => {
|
|
85867
85878
|
var l;
|
|
85868
|
-
return !((l = c[
|
|
85879
|
+
return !((l = c[ro]) != null && l.gameObject.layers.isEnabled(2));
|
|
85869
85880
|
});
|
|
85870
85881
|
if (o) {
|
|
85871
85882
|
const c = r.pointAt(o.toi), l = this.raycastVectorsBuffer.get();
|
|
85872
|
-
return l.set(c.x, c.y, c.z), { point: l, collider: o.collider[
|
|
85883
|
+
return l.set(c.x, c.y, c.z), { point: l, collider: o.collider[ro] };
|
|
85873
85884
|
}
|
|
85874
85885
|
return null;
|
|
85875
85886
|
}
|
|
@@ -85881,11 +85892,11 @@ const Dg = class {
|
|
|
85881
85892
|
return null;
|
|
85882
85893
|
const o = (a = this.world) == null ? void 0 : a.castRayAndGetNormal(r, i, s, void 0, void 0, void 0, void 0, (c) => {
|
|
85883
85894
|
var l;
|
|
85884
|
-
return !((l = c[
|
|
85895
|
+
return !((l = c[ro]) != null && l.gameObject.layers.isEnabled(2));
|
|
85885
85896
|
});
|
|
85886
85897
|
if (o) {
|
|
85887
85898
|
const c = r.pointAt(o.toi), l = o.normal, h = this.raycastVectorsBuffer.get(), d = this.raycastVectorsBuffer.get();
|
|
85888
|
-
return h.set(c.x, c.y, c.z), d.set(l.x, l.y, l.z), { point: h, normal: d, collider: o.collider[
|
|
85899
|
+
return h.set(c.x, c.y, c.z), d.set(l.x, l.y, l.z), { point: h, normal: d, collider: o.collider[ro] };
|
|
85889
85900
|
}
|
|
85890
85901
|
return null;
|
|
85891
85902
|
}
|
|
@@ -85930,14 +85941,14 @@ const Dg = class {
|
|
|
85930
85941
|
this.rapierIdentityRotation,
|
|
85931
85942
|
this.rapierSphere,
|
|
85932
85943
|
(i) => {
|
|
85933
|
-
const s = i[
|
|
85944
|
+
const s = i[ro], r = new xae(s.gameObject, s);
|
|
85934
85945
|
return this.rapierColliderArray.push(r), !0;
|
|
85935
85946
|
},
|
|
85936
85947
|
ME.EXCLUDE_SENSORS,
|
|
85937
85948
|
void 0,
|
|
85938
85949
|
void 0,
|
|
85939
85950
|
void 0,
|
|
85940
|
-
(i) => i[
|
|
85951
|
+
(i) => i[ro].gameObject.layers.isEnabled(2) == !1
|
|
85941
85952
|
), this.rapierColliderArray) : this.rapierColliderArray;
|
|
85942
85953
|
}
|
|
85943
85954
|
get isUpdating() {
|
|
@@ -86032,35 +86043,35 @@ const Dg = class {
|
|
|
86032
86043
|
if (a) {
|
|
86033
86044
|
switch (t.setRestitution(a.bounciness), a.bounceCombine) {
|
|
86034
86045
|
case nc.Average:
|
|
86035
|
-
t.setRestitutionCombineRule(
|
|
86046
|
+
t.setRestitutionCombineRule(uo.Average);
|
|
86036
86047
|
break;
|
|
86037
86048
|
case nc.Maximum:
|
|
86038
|
-
t.setRestitutionCombineRule(
|
|
86049
|
+
t.setRestitutionCombineRule(uo.Max);
|
|
86039
86050
|
break;
|
|
86040
86051
|
case nc.Minimum:
|
|
86041
|
-
t.setRestitutionCombineRule(
|
|
86052
|
+
t.setRestitutionCombineRule(uo.Min);
|
|
86042
86053
|
break;
|
|
86043
86054
|
case nc.Multiply:
|
|
86044
|
-
t.setRestitutionCombineRule(
|
|
86055
|
+
t.setRestitutionCombineRule(uo.Multiply);
|
|
86045
86056
|
break;
|
|
86046
86057
|
}
|
|
86047
86058
|
switch (t.setFriction(a.dynamicFriction), a.frictionCombine) {
|
|
86048
86059
|
case nc.Average:
|
|
86049
|
-
t.setFrictionCombineRule(
|
|
86060
|
+
t.setFrictionCombineRule(uo.Average);
|
|
86050
86061
|
break;
|
|
86051
86062
|
case nc.Maximum:
|
|
86052
|
-
t.setFrictionCombineRule(
|
|
86063
|
+
t.setFrictionCombineRule(uo.Max);
|
|
86053
86064
|
break;
|
|
86054
86065
|
case nc.Minimum:
|
|
86055
|
-
t.setFrictionCombineRule(
|
|
86066
|
+
t.setFrictionCombineRule(uo.Min);
|
|
86056
86067
|
break;
|
|
86057
86068
|
case nc.Multiply:
|
|
86058
|
-
t.setFrictionCombineRule(
|
|
86069
|
+
t.setFrictionCombineRule(uo.Multiply);
|
|
86059
86070
|
break;
|
|
86060
86071
|
}
|
|
86061
86072
|
}
|
|
86062
86073
|
const c = this.world.createCollider(t, r);
|
|
86063
|
-
return c[
|
|
86074
|
+
return c[ro] = e, e[Oo] = c, c.setActiveEvents(TE.COLLISION_EVENTS), c.setActiveCollisionTypes(R0.ALL), this.objects.push(e), this.bodies.push(c), c;
|
|
86064
86075
|
}
|
|
86065
86076
|
getRigidbody(e, t) {
|
|
86066
86077
|
if (!this.world)
|
|
@@ -86074,10 +86085,10 @@ const Dg = class {
|
|
|
86074
86085
|
const a = o ? ud.RigidBodyDesc.kinematicPositionBased() : ud.RigidBodyDesc.dynamic(), c = Ct(e.attachedRigidbody.gameObject);
|
|
86075
86086
|
a.setTranslation(c.x, c.y, c.z), a.setRotation(qn(e.attachedRigidbody.gameObject)), i = this.world.createRigidBody(a), this.bodies.push(i), this.objects.push(r);
|
|
86076
86087
|
}
|
|
86077
|
-
i[
|
|
86088
|
+
i[ro] = r, r[Oo] = i, this.internalUpdateProperties(r, i), this.getRigidbodyRelativeMatrix(e.gameObject, r.gameObject, t);
|
|
86078
86089
|
} else {
|
|
86079
86090
|
const r = ud.RigidBodyDesc.kinematicPositionBased(), o = Ct(e.gameObject);
|
|
86080
|
-
r.setTranslation(o.x, o.y, o.z), r.setRotation(qn(e.gameObject)), i = this.world.createRigidBody(r), t.identity(), i[
|
|
86091
|
+
r.setTranslation(o.x, o.y, o.z), r.setRotation(qn(e.gameObject)), i = this.world.createRigidBody(r), t.identity(), i[ro] = null;
|
|
86081
86092
|
}
|
|
86082
86093
|
return e[Lae] = i, { rigidBody: i, useExplicitMassProperties: s };
|
|
86083
86094
|
}
|
|
@@ -86198,7 +86209,7 @@ class Fae {
|
|
|
86198
86209
|
}
|
|
86199
86210
|
handleCollisionEvents() {
|
|
86200
86211
|
this.eventQueue && this.world && this.eventQueue.drainCollisionEvents((e, t, i) => {
|
|
86201
|
-
const s = this.world.getCollider(e), r = this.world.getCollider(t), o = s[
|
|
86212
|
+
const s = this.world.getCollider(e), r = this.world.getCollider(t), o = s[ro], a = r[ro];
|
|
86202
86213
|
aS && console.log("EVT", o.name, a.name, i, s, r), o && a && (i ? (this.onCollisionStarted(o, s, a, r), this.onCollisionStarted(a, r, o, s)) : (this.onCollisionEnded(o, a), this.onCollisionEnded(a, o)));
|
|
86203
86214
|
});
|
|
86204
86215
|
}
|
|
@@ -86331,7 +86342,7 @@ Object.defineProperty(Xt.prototype, "far", {
|
|
|
86331
86342
|
}
|
|
86332
86343
|
});
|
|
86333
86344
|
function mle(n, e, t, i = "image/webp", s) {
|
|
86334
|
-
if (!n && (n =
|
|
86345
|
+
if (!n && (n = Qi.Current, !n))
|
|
86335
86346
|
return console.error("Can not save screenshot: No needle-engine context found or provided."), null;
|
|
86336
86347
|
if (!s && (s = n.mainCamera, !s))
|
|
86337
86348
|
return console.error("No camera found"), null;
|
|
@@ -86356,17 +86367,17 @@ function Ale(n, e) {
|
|
|
86356
86367
|
}
|
|
86357
86368
|
}
|
|
86358
86369
|
const P0 = re("debugmissingcamera");
|
|
86359
|
-
|
|
86370
|
+
Qi.registerCallback(ir.MissingCamera, (n) => {
|
|
86360
86371
|
var r, o;
|
|
86361
86372
|
P0 && console.warn("Creating missing camera");
|
|
86362
86373
|
const e = n.context.scene, t = new Te();
|
|
86363
86374
|
t.name = "Default Fallback Camera", e.add(t);
|
|
86364
|
-
const i = new
|
|
86365
|
-
i.sourceId = ((o = (r = n.files) == null ? void 0 : r[0]) == null ? void 0 : o.src) ?? "unknown", i.clearFlags = 1, i.backgroundColor = new Si(0.5, 0.5, 0.5, 1), i.fieldOfView = 35, i.backgroundBlurriness = 0.
|
|
86375
|
+
const i = new zi();
|
|
86376
|
+
i.sourceId = ((o = (r = n.files) == null ? void 0 : r[0]) == null ? void 0 : o.src) ?? "unknown", i.clearFlags = 1, i.backgroundColor = new Si(0.5, 0.5, 0.5, 1), i.fieldOfView = 35, i.backgroundBlurriness = 0.125;
|
|
86366
86377
|
const s = _f(t, i, !0);
|
|
86367
86378
|
return t.position.x = 0, t.position.y = 1, t.position.z = 2, az(n.context, s), s;
|
|
86368
86379
|
});
|
|
86369
|
-
|
|
86380
|
+
Qi.registerCallback(ir.ContextCreated, (n) => {
|
|
86370
86381
|
if (!n.context.mainCamera) {
|
|
86371
86382
|
P0 && console.log("Will not auto-fit because a default camera exists");
|
|
86372
86383
|
return;
|
|
@@ -86704,7 +86715,7 @@ Y_.WebsocketBuilder = Vae;
|
|
|
86704
86715
|
const Qae = /* @__PURE__ */ Pm(eI), Wae = /* @__PURE__ */ fz({
|
|
86705
86716
|
__proto__: null,
|
|
86706
86717
|
default: Qae
|
|
86707
|
-
}, [eI]),
|
|
86718
|
+
}, [eI]), $r = {
|
|
86708
86719
|
node: "node",
|
|
86709
86720
|
material: "material",
|
|
86710
86721
|
camera: "camera",
|
|
@@ -86767,7 +86778,7 @@ class qae {
|
|
|
86767
86778
|
const t = e.target, i = t.extensions && t.extensions[Mh] && t.path && t.path === "pointer";
|
|
86768
86779
|
if (!i)
|
|
86769
86780
|
return null;
|
|
86770
|
-
let s, r =
|
|
86781
|
+
let s, r = $r.node, o;
|
|
86771
86782
|
if (i) {
|
|
86772
86783
|
const c = t.extensions[Mh];
|
|
86773
86784
|
let l = c.pointer;
|
|
@@ -86775,12 +86786,12 @@ class qae {
|
|
|
86775
86786
|
console.warn("Invalid path", c, t);
|
|
86776
86787
|
return;
|
|
86777
86788
|
}
|
|
86778
|
-
if (l.startsWith("/materials/") ? r =
|
|
86789
|
+
if (l.startsWith("/materials/") ? r = $r.material : l.startsWith("/extensions/KHR_lights_punctual/lights/") ? r = $r.light : l.startsWith("/cameras/") && (r = $r.camera), o = this._tryResolveTargetId(l, r), o === null || isNaN(o)) {
|
|
86779
86790
|
console.warn("Failed resolving animation node id: " + o, l);
|
|
86780
86791
|
return;
|
|
86781
86792
|
}
|
|
86782
86793
|
switch (r) {
|
|
86783
|
-
case
|
|
86794
|
+
case $r.material:
|
|
86784
86795
|
const d = ("/materials/" + o.toString() + "/").length, f = l.substring(0, d);
|
|
86785
86796
|
switch (s = l.substring(d), s) {
|
|
86786
86797
|
case "pbrMetallicRoughness/baseColorFactor":
|
|
@@ -86867,7 +86878,7 @@ class qae {
|
|
|
86867
86878
|
}
|
|
86868
86879
|
l = f + s;
|
|
86869
86880
|
break;
|
|
86870
|
-
case
|
|
86881
|
+
case $r.node:
|
|
86871
86882
|
const p = ("/nodes/" + o.toString() + "/").length, g = l.substring(0, p);
|
|
86872
86883
|
switch (s = l.substring(p), s) {
|
|
86873
86884
|
case "translation":
|
|
@@ -86885,7 +86896,7 @@ class qae {
|
|
|
86885
86896
|
}
|
|
86886
86897
|
l = g + s;
|
|
86887
86898
|
break;
|
|
86888
|
-
case
|
|
86899
|
+
case $r.light:
|
|
86889
86900
|
const A = ("/extensions/KHR_lights_punctual/lights/" + o.toString() + "/").length;
|
|
86890
86901
|
switch (s = l.substring(A), s) {
|
|
86891
86902
|
case "color":
|
|
@@ -86904,7 +86915,7 @@ class qae {
|
|
|
86904
86915
|
}
|
|
86905
86916
|
l = "/lights/" + o.toString() + "/" + s;
|
|
86906
86917
|
break;
|
|
86907
|
-
case
|
|
86918
|
+
case $r.camera:
|
|
86908
86919
|
const v = ("/cameras/" + o.toString() + "/").length, m = l.substring(0, v);
|
|
86909
86920
|
switch (s = l.substring(v), s) {
|
|
86910
86921
|
case "perspective/yfov":
|
|
@@ -86939,7 +86950,7 @@ class qae {
|
|
|
86939
86950
|
return;
|
|
86940
86951
|
}
|
|
86941
86952
|
let a;
|
|
86942
|
-
return r ===
|
|
86953
|
+
return r === $r.node ? a = this.parser.getDependency("node", o) : r === $r.material ? a = this.parser.getDependency("material", o) : r === $r.light ? a = this.parser.getDependency("light", o) : r === $r.camera ? a = this.parser.getDependency("camera", o) : console.error("Unhandled type", r), a;
|
|
86943
86954
|
}
|
|
86944
86955
|
createAnimationTracksWithAnimationPointer(e, t, i, s, r) {
|
|
86945
86956
|
if (!(r.extensions && r.extensions[Mh] && r.path && r.path === "pointer"))
|
|
@@ -87043,11 +87054,11 @@ export {
|
|
|
87043
87054
|
ple as $physicsKey,
|
|
87044
87055
|
fi as ActionBuilder,
|
|
87045
87056
|
oU as ActionCollection,
|
|
87046
|
-
|
|
87057
|
+
po as ActionModel,
|
|
87047
87058
|
_q as Addressables,
|
|
87048
87059
|
Hb as AlignmentConstraint,
|
|
87049
87060
|
pg as AmbientMode,
|
|
87050
|
-
|
|
87061
|
+
xo as Animation,
|
|
87051
87062
|
Cf as AnimationCurve,
|
|
87052
87063
|
vM as AnimationExtension,
|
|
87053
87064
|
nT as AnimationTrackHandler,
|
|
@@ -87089,7 +87100,7 @@ export {
|
|
|
87089
87100
|
Vo as BoxHelperComponent,
|
|
87090
87101
|
ih as Button,
|
|
87091
87102
|
tm as CallInfo,
|
|
87092
|
-
|
|
87103
|
+
zi as Camera,
|
|
87093
87104
|
Ts as Canvas,
|
|
87094
87105
|
hu as CanvasGroup,
|
|
87095
87106
|
lu as CapsuleCollider,
|
|
@@ -87115,12 +87126,12 @@ export {
|
|
|
87115
87126
|
Nt as Context,
|
|
87116
87127
|
Lce as ContextArgs,
|
|
87117
87128
|
ir as ContextEvent,
|
|
87118
|
-
|
|
87129
|
+
Qi as ContextRegistry,
|
|
87119
87130
|
sT as ControlTrackHandler,
|
|
87120
87131
|
ml as ControllerEvents,
|
|
87121
87132
|
yg as ControllerType,
|
|
87122
87133
|
Eu as CustomBranding,
|
|
87123
|
-
|
|
87134
|
+
io as CustomShader,
|
|
87124
87135
|
IC as DefaultReflectionMode,
|
|
87125
87136
|
s3 as Deletable,
|
|
87126
87137
|
gT as DeleteBox,
|
|
@@ -87182,7 +87193,7 @@ export {
|
|
|
87182
87193
|
S_ as LODGroup,
|
|
87183
87194
|
Gf as LODModel,
|
|
87184
87195
|
Ece as LeftRoomResponse,
|
|
87185
|
-
|
|
87196
|
+
Vr as Light,
|
|
87186
87197
|
Eq as LightData,
|
|
87187
87198
|
Nn as LimitVelocityOverLifetimeModule,
|
|
87188
87199
|
Fce as LoadingElementOptions,
|
|
@@ -87197,9 +87208,9 @@ export {
|
|
|
87197
87208
|
h_ as MeshCollider,
|
|
87198
87209
|
pM as MeshRenderer,
|
|
87199
87210
|
ht as MinMaxCurve,
|
|
87200
|
-
|
|
87201
|
-
|
|
87202
|
-
|
|
87211
|
+
Gr as MinMaxGradient,
|
|
87212
|
+
fo as NEEDLE_progressive,
|
|
87213
|
+
Qi as NeedleEngine,
|
|
87203
87214
|
q3 as NeedleEngineHTMLElement,
|
|
87204
87215
|
G3 as NeedleGltfLoader,
|
|
87205
87216
|
Hx as NeedlePatchesKey,
|
|
@@ -87255,7 +87266,7 @@ export {
|
|
|
87255
87266
|
Hl as RemoteSkybox,
|
|
87256
87267
|
tu as RenderTexture,
|
|
87257
87268
|
TY as RenderTextureSerializer,
|
|
87258
|
-
|
|
87269
|
+
qi as Renderer,
|
|
87259
87270
|
Cq as RendererData,
|
|
87260
87271
|
u0 as RendererLightmap,
|
|
87261
87272
|
en as Rigidbody,
|
|
@@ -87264,7 +87275,7 @@ export {
|
|
|
87264
87275
|
Eo as RotationBySpeedModule,
|
|
87265
87276
|
ta as RotationOverLifetimeModule,
|
|
87266
87277
|
VC as SceneLightSettings,
|
|
87267
|
-
|
|
87278
|
+
Qr as SceneSwitcher,
|
|
87268
87279
|
k_ as ScreenCapture,
|
|
87269
87280
|
oh as ScreenSpaceAmbientOcclusion,
|
|
87270
87281
|
Ga as ScreenSpaceAmbientOcclusionN8,
|
|
@@ -87309,7 +87320,7 @@ export {
|
|
|
87309
87320
|
TW as Time,
|
|
87310
87321
|
N_ as ToneMapping,
|
|
87311
87322
|
n_ as TrackHandler,
|
|
87312
|
-
|
|
87323
|
+
no as TrackType,
|
|
87313
87324
|
Xi as TrailModule,
|
|
87314
87325
|
iu as TransformData,
|
|
87315
87326
|
Xf as TransformGizmo,
|
|
@@ -87354,7 +87365,7 @@ export {
|
|
|
87354
87365
|
G_ as WebXRPlaneTracking,
|
|
87355
87366
|
_0 as WebXRSync,
|
|
87356
87367
|
bl as WebXRTrackedImage,
|
|
87357
|
-
|
|
87368
|
+
mo as XRFlag,
|
|
87358
87369
|
QT as XRGrabModel,
|
|
87359
87370
|
U3 as XRGrabRendering,
|
|
87360
87371
|
tT as XRRig,
|
|
@@ -87523,5 +87534,5 @@ export {
|
|
|
87523
87534
|
RW as tryGetGuid,
|
|
87524
87535
|
dle as unregisterHotReloadType,
|
|
87525
87536
|
yq as upload_file,
|
|
87526
|
-
|
|
87537
|
+
So as validate
|
|
87527
87538
|
};
|