@needle-tools/engine 2.67.0-pre → 2.67.2-pre
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 +7 -0
- package/dist/needle-engine.js +728 -722
- package/dist/needle-engine.umd.cjs +48 -48
- package/lib/engine/engine_element.js +9 -0
- package/lib/engine/engine_element.js.map +1 -1
- package/lib/engine/engine_patcher.js +1 -1
- package/lib/engine/engine_patcher.js.map +1 -1
- package/lib/engine/engine_physics.js +0 -1
- package/lib/engine/engine_physics.js.map +1 -1
- package/lib/engine-components/postprocessing/PostProcessingHandler.d.ts +7 -3
- package/lib/engine-components/postprocessing/PostProcessingHandler.js +17 -6
- package/lib/engine-components/postprocessing/PostProcessingHandler.js.map +1 -1
- package/lib/engine-components/postprocessing/Volume.d.ts +1 -3
- package/lib/engine-components/postprocessing/Volume.js +13 -16
- package/lib/engine-components/postprocessing/Volume.js.map +1 -1
- package/lib/engine-components/ui/RectTransform.js +10 -6
- package/lib/engine-components/ui/RectTransform.js.map +1 -1
- package/package.json +1 -1
- package/src/engine/engine_element.ts +8 -0
- package/src/engine/engine_patcher.ts +1 -1
- package/src/engine/engine_physics.ts +0 -1
- package/src/engine-components/postprocessing/PostProcessingHandler.ts +20 -7
- package/src/engine-components/postprocessing/Volume.ts +15 -18
- package/src/engine-components/ui/RectTransform.ts +11 -6
package/dist/needle-engine.js
CHANGED
|
@@ -212,7 +212,7 @@ function ZX() {
|
|
|
212
212
|
return navigator.userAgent.includes("OculusBrowser");
|
|
213
213
|
}
|
|
214
214
|
const Su = /* @__PURE__ */ new Map();
|
|
215
|
-
function
|
|
215
|
+
function ji(i = window.location.hostname) {
|
|
216
216
|
if (Su.has(i))
|
|
217
217
|
return Su.get(i);
|
|
218
218
|
const A = new RegExp("[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}|localhost", "gm").test(i);
|
|
@@ -254,29 +254,29 @@ class Oe {
|
|
|
254
254
|
}
|
|
255
255
|
Q(Oe, "Current"), Q(Oe, "Registered", []), Q(Oe, "_callbacks", {});
|
|
256
256
|
const tL = cA("debugdebug"), NR = cA("noerrors"), CL = "ar", Gu = /* @__PURE__ */ new Map();
|
|
257
|
-
var
|
|
257
|
+
var cs = /* @__PURE__ */ ((i) => (i[i.Log = 0] = "Log", i[i.Warn = 1] = "Warn", i[i.Error = 2] = "Error", i))(cs || {});
|
|
258
258
|
function KR() {
|
|
259
259
|
return JR;
|
|
260
260
|
}
|
|
261
261
|
function oL() {
|
|
262
262
|
if (NR)
|
|
263
263
|
return;
|
|
264
|
-
if (
|
|
264
|
+
if (ji()) {
|
|
265
265
|
tL && console.log(window.location.hostname);
|
|
266
266
|
const A = console.error;
|
|
267
267
|
console.error = (...g) => {
|
|
268
|
-
A.apply(console, g), sL(g),
|
|
268
|
+
A.apply(console, g), sL(g), Bs(2, g), ku();
|
|
269
269
|
}, window.addEventListener("error", (g) => {
|
|
270
270
|
if (!g)
|
|
271
271
|
return;
|
|
272
272
|
let I = g.error;
|
|
273
273
|
if (I === void 0) {
|
|
274
|
-
|
|
274
|
+
ji() && console.warn("Received unknown error", g, g.target);
|
|
275
275
|
return;
|
|
276
276
|
}
|
|
277
|
-
|
|
277
|
+
Bs(2, I, g.filename, g.lineno), ku();
|
|
278
278
|
}, !0), window.addEventListener("unhandledrejection", (g) => {
|
|
279
|
-
g && (g.reason ?
|
|
279
|
+
g && (g.reason ? Bs(2, g.reason.message, g.reason.stack) : Bs(2, "unhandled rejection"), ku());
|
|
280
280
|
});
|
|
281
281
|
}
|
|
282
282
|
}
|
|
@@ -291,7 +291,7 @@ function sL(i) {
|
|
|
291
291
|
typeof g == "string" && g.startsWith("THREE.PropertyBinding: Trying to update node for track:") && (i[A] = "Some animated objects couldn't be found: see console for details");
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function Bs(i, A, g, I) {
|
|
295
295
|
if (NR)
|
|
296
296
|
return;
|
|
297
297
|
const e = Oe.Current, t = (e == null ? void 0 : e.domElement) ?? document.querySelector("needle-engine");
|
|
@@ -395,7 +395,7 @@ function rL(i, A) {
|
|
|
395
395
|
* Copyright 2010-2022 Three.js Authors
|
|
396
396
|
* SPDX-License-Identifier: MIT
|
|
397
397
|
*/
|
|
398
|
-
const HB = "147dev", AB = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, gB = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, LR = 0, ww = 1, bR = 2, EL = 3, cL = 0, ny = 1, ay = 2, On = 3, Gi = 0, we = 1, pI = 2, MI = 0, Qo = 1, NB = 2, fw = 3, yw = 4, vR = 5, sB = 100, xR = 101, YR = 102, Sw = 103, Gw = 104, HR = 200, TR = 201, OR = 202, _R = 203, Qy = 204, ry = 205, PR = 206, WR = 207, jR = 208, ZR = 209, zR = 210, Ey = 0, JD = 1, Or = 2, ha = 3, la = 4, qD = 5, LD = 6, wE = 7, fE = 0, VR = 1, XR = 2, ni = 0, cy = 1, hy = 2, $R = 3, ly = 4, Am = 5, bD = 300,
|
|
398
|
+
const HB = "147dev", AB = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, gB = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, LR = 0, ww = 1, bR = 2, EL = 3, cL = 0, ny = 1, ay = 2, On = 3, Gi = 0, we = 1, pI = 2, MI = 0, Qo = 1, NB = 2, fw = 3, yw = 4, vR = 5, sB = 100, xR = 101, YR = 102, Sw = 103, Gw = 104, HR = 200, TR = 201, OR = 202, _R = 203, Qy = 204, ry = 205, PR = 206, WR = 207, jR = 208, ZR = 209, zR = 210, Ey = 0, JD = 1, Or = 2, ha = 3, la = 4, qD = 5, LD = 6, wE = 7, fE = 0, VR = 1, XR = 2, ni = 0, cy = 1, hy = 2, $R = 3, ly = 4, Am = 5, bD = 300, ps = 301, ws = 302, Dt = 303, Da = 304, Ja = 306, pt = 1e3, pe = 1001, ho = 1002, jg = 1003, da = 1004, hL = 1004, ua = 1005, lL = 1005, Jg = 1006, yE = 1007, DL = 1007, Zt = 1008, dL = 1008, sI = 1009, gm = 1010, Im = 1011, Dy = 1012, em = 1013, to = 1014, ge = 1015, ne = 1016, im = 1017, tm = 1018, hs = 1020, Cm = 1021, om = 1022, dI = 1023, vD = 1024, sm = 1025, ls = 1026, fs = 1027, ns = 1028, Bm = 1029, EB = 1030, nm = 1031, am = 1033, Er = 33776, Ph = 33777, Wh = 33778, cr = 33779, Rl = 35840, kw = 35841, ml = 35842, Mw = 35843, dy = 36196, Fl = 37492, Nl = 37496, Kl = 37808, Uw = 37809, Rw = 37810, mw = 37811, Fw = 37812, Nw = 37813, Kw = 37814, Jw = 37815, qw = 37816, Lw = 37817, bw = 37818, vw = 37819, xw = 37820, Yw = 37821, Jl = 36492, _r = 2200, uy = 2201, Qm = 2202, KB = 2300, lo = 2301, jh = 2302, cB = 2400, hB = 2401, Pr = 2402, xD = 2500, py = 2501, uL = 0, rm = 1, wy = 2, WI = 3e3, Ag = 3001, be = 3200, YD = 3201, Us = 0, Em = 1, pL = "", bt = "srgb", pa = "srgb-linear", cm = 0, hr = 7680, hm = 7681, lm = 7682, Dm = 7683, dm = 34055, um = 34056, pm = 5386, wm = 512, fm = 513, ym = 514, Sm = 515, Gm = 516, km = 517, Mm = 518, fy = 519, Wr = 35044, Te = 35048, wL = 35040, fL = 35045, yL = 35049, SL = 35041, GL = 35046, kL = 35050, ML = 35042, UL = "100", Hw = "300 es", ql = 1035;
|
|
399
399
|
class Se {
|
|
400
400
|
addEventListener(A, g) {
|
|
401
401
|
this._listeners === void 0 && (this._listeners = {});
|
|
@@ -1358,7 +1358,7 @@ class Sy {
|
|
|
1358
1358
|
return console.warn("THREE.ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."), A;
|
|
1359
1359
|
}
|
|
1360
1360
|
}
|
|
1361
|
-
class
|
|
1361
|
+
class as {
|
|
1362
1362
|
constructor(A = null) {
|
|
1363
1363
|
this.isSource = !0, this.uuid = Hi(), this.data = A, this.version = 0;
|
|
1364
1364
|
}
|
|
@@ -1397,7 +1397,7 @@ function Fu(i) {
|
|
|
1397
1397
|
let OL = 0;
|
|
1398
1398
|
class qg extends Se {
|
|
1399
1399
|
constructor(A = qg.DEFAULT_IMAGE, g = qg.DEFAULT_MAPPING, I = pe, e = pe, t = Jg, C = Zt, o = dI, s = sI, B = 1, n = WI) {
|
|
1400
|
-
super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: OL++ }), this.uuid = Hi(), this.name = "", this.source = new
|
|
1400
|
+
super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: OL++ }), this.uuid = Hi(), this.name = "", this.source = new as(A), this.mipmaps = [], this.mapping = g, this.wrapS = I, this.wrapT = e, this.magFilter = t, this.minFilter = C, this.anisotropy = B, this.format = o, this.internalFormat = null, this.type = s, this.offset = new $(0, 0), this.repeat = new $(1, 1), this.center = new $(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new Ie(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.encoding = n, this.userData = {}, this.version = 0, this.onUpdate = null, this.isRenderTargetTexture = !1, this.needsPMREMUpdate = !1;
|
|
1401
1401
|
}
|
|
1402
1402
|
get image() {
|
|
1403
1403
|
return this.source.data;
|
|
@@ -1697,7 +1697,7 @@ class eI extends Se {
|
|
|
1697
1697
|
copy(A) {
|
|
1698
1698
|
this.width = A.width, this.height = A.height, this.depth = A.depth, this.viewport.copy(A.viewport), this.texture = A.texture.clone(), this.texture.isRenderTargetTexture = !0;
|
|
1699
1699
|
const g = Object.assign({}, A.texture.image);
|
|
1700
|
-
return this.texture.source = new
|
|
1700
|
+
return this.texture.source = new as(g), this.depthBuffer = A.depthBuffer, this.stencilBuffer = A.stencilBuffer, A.depthTexture !== null && (this.depthTexture = A.depthTexture.clone()), this.samples = A.samples, this;
|
|
1701
1701
|
}
|
|
1702
1702
|
dispose() {
|
|
1703
1703
|
this.dispatchEvent({ type: "dispose" });
|
|
@@ -2328,37 +2328,37 @@ class je {
|
|
|
2328
2328
|
intersectsTriangle(A) {
|
|
2329
2329
|
if (this.isEmpty())
|
|
2330
2330
|
return !1;
|
|
2331
|
-
this.getCenter(MQ), yc.subVectors(this.max, MQ), on.subVectors(A.a, MQ), sn.subVectors(A.b, MQ), Bn.subVectors(A.c, MQ),
|
|
2331
|
+
this.getCenter(MQ), yc.subVectors(this.max, MQ), on.subVectors(A.a, MQ), sn.subVectors(A.b, MQ), Bn.subVectors(A.c, MQ), qo.subVectors(sn, on), Lo.subVectors(Bn, sn), Os.subVectors(on, Bn);
|
|
2332
2332
|
let g = [
|
|
2333
|
-
0,
|
|
2334
|
-
-Jo.z,
|
|
2335
|
-
Jo.y,
|
|
2336
2333
|
0,
|
|
2337
2334
|
-qo.z,
|
|
2338
2335
|
qo.y,
|
|
2339
2336
|
0,
|
|
2337
|
+
-Lo.z,
|
|
2338
|
+
Lo.y,
|
|
2339
|
+
0,
|
|
2340
2340
|
-Os.z,
|
|
2341
2341
|
Os.y,
|
|
2342
|
-
Jo.z,
|
|
2343
|
-
0,
|
|
2344
|
-
-Jo.x,
|
|
2345
2342
|
qo.z,
|
|
2346
2343
|
0,
|
|
2347
2344
|
-qo.x,
|
|
2345
|
+
Lo.z,
|
|
2346
|
+
0,
|
|
2347
|
+
-Lo.x,
|
|
2348
2348
|
Os.z,
|
|
2349
2349
|
0,
|
|
2350
2350
|
-Os.x,
|
|
2351
|
-
-Jo.y,
|
|
2352
|
-
Jo.x,
|
|
2353
|
-
0,
|
|
2354
2351
|
-qo.y,
|
|
2355
2352
|
qo.x,
|
|
2356
2353
|
0,
|
|
2354
|
+
-Lo.y,
|
|
2355
|
+
Lo.x,
|
|
2356
|
+
0,
|
|
2357
2357
|
-Os.y,
|
|
2358
2358
|
Os.x,
|
|
2359
2359
|
0
|
|
2360
2360
|
];
|
|
2361
|
-
return !Ju(g, on, sn, Bn, yc) || (g = [1, 0, 0, 0, 1, 0, 0, 0, 1], !Ju(g, on, sn, Bn, yc)) ? !1 : (Sc.crossVectors(
|
|
2361
|
+
return !Ju(g, on, sn, Bn, yc) || (g = [1, 0, 0, 0, 1, 0, 0, 0, 1], !Ju(g, on, sn, Bn, yc)) ? !1 : (Sc.crossVectors(qo, Lo), g = [Sc.x, Sc.y, Sc.z], Ju(g, on, sn, Bn, yc));
|
|
2362
2362
|
}
|
|
2363
2363
|
clampPoint(A, g) {
|
|
2364
2364
|
return g.copy(A).clamp(this.min, this.max);
|
|
@@ -2394,7 +2394,7 @@ const YC = [
|
|
|
2394
2394
|
/* @__PURE__ */ new M(),
|
|
2395
2395
|
/* @__PURE__ */ new M(),
|
|
2396
2396
|
/* @__PURE__ */ new M()
|
|
2397
|
-
], Ts = /* @__PURE__ */ new M(), Ku = /* @__PURE__ */ new je(), on = /* @__PURE__ */ new M(), sn = /* @__PURE__ */ new M(), Bn = /* @__PURE__ */ new M(),
|
|
2397
|
+
], Ts = /* @__PURE__ */ new M(), Ku = /* @__PURE__ */ new je(), on = /* @__PURE__ */ new M(), sn = /* @__PURE__ */ new M(), Bn = /* @__PURE__ */ new M(), qo = /* @__PURE__ */ new M(), Lo = /* @__PURE__ */ new M(), Os = /* @__PURE__ */ new M(), MQ = /* @__PURE__ */ new M(), yc = /* @__PURE__ */ new M(), Sc = /* @__PURE__ */ new M(), _s = /* @__PURE__ */ new M();
|
|
2398
2398
|
function Ju(i, A, g, I, e) {
|
|
2399
2399
|
for (let t = 0, C = i.length - 3; t <= C; t += 3) {
|
|
2400
2400
|
_s.fromArray(i, t);
|
|
@@ -2479,7 +2479,7 @@ class NC {
|
|
|
2479
2479
|
return new this.constructor().copy(this);
|
|
2480
2480
|
}
|
|
2481
2481
|
}
|
|
2482
|
-
const HC = /* @__PURE__ */ new M(), Lu = /* @__PURE__ */ new M(), Gc = /* @__PURE__ */ new M(),
|
|
2482
|
+
const HC = /* @__PURE__ */ new M(), Lu = /* @__PURE__ */ new M(), Gc = /* @__PURE__ */ new M(), bo = /* @__PURE__ */ new M(), bu = /* @__PURE__ */ new M(), kc = /* @__PURE__ */ new M(), vu = /* @__PURE__ */ new M();
|
|
2483
2483
|
class yo {
|
|
2484
2484
|
constructor(A = new M(), g = new M(0, 0, -1)) {
|
|
2485
2485
|
this.origin = A, this.direction = g;
|
|
@@ -2512,8 +2512,8 @@ class yo {
|
|
|
2512
2512
|
return g < 0 ? this.origin.distanceToSquared(A) : (HC.copy(this.direction).multiplyScalar(g).add(this.origin), HC.distanceToSquared(A));
|
|
2513
2513
|
}
|
|
2514
2514
|
distanceSqToSegment(A, g, I, e) {
|
|
2515
|
-
Lu.copy(A).add(g).multiplyScalar(0.5), Gc.copy(g).sub(A).normalize(),
|
|
2516
|
-
const t = A.distanceTo(g) * 0.5, C = -this.direction.dot(Gc), o =
|
|
2515
|
+
Lu.copy(A).add(g).multiplyScalar(0.5), Gc.copy(g).sub(A).normalize(), bo.copy(this.origin).sub(Lu);
|
|
2516
|
+
const t = A.distanceTo(g) * 0.5, C = -this.direction.dot(Gc), o = bo.dot(this.direction), s = -bo.dot(Gc), B = bo.lengthSq(), n = Math.abs(1 - C * C);
|
|
2517
2517
|
let r, a, E, c;
|
|
2518
2518
|
if (n > 0)
|
|
2519
2519
|
if (r = C * s - o, a = C * o - s, c = t * n, r >= 0)
|
|
@@ -2576,14 +2576,14 @@ class yo {
|
|
|
2576
2576
|
o = -1, C = -C;
|
|
2577
2577
|
else
|
|
2578
2578
|
return null;
|
|
2579
|
-
|
|
2580
|
-
const s = o * this.direction.dot(kc.crossVectors(
|
|
2579
|
+
bo.subVectors(this.origin, A);
|
|
2580
|
+
const s = o * this.direction.dot(kc.crossVectors(bo, kc));
|
|
2581
2581
|
if (s < 0)
|
|
2582
2582
|
return null;
|
|
2583
|
-
const B = o * this.direction.dot(bu.cross(
|
|
2583
|
+
const B = o * this.direction.dot(bu.cross(bo));
|
|
2584
2584
|
if (B < 0 || s + B > C)
|
|
2585
2585
|
return null;
|
|
2586
|
-
const n = -o *
|
|
2586
|
+
const n = -o * bo.dot(vu);
|
|
2587
2587
|
return n < 0 ? null : this.at(n / C, t);
|
|
2588
2588
|
}
|
|
2589
2589
|
applyMatrix4(A) {
|
|
@@ -2728,7 +2728,7 @@ class XA {
|
|
|
2728
2728
|
}
|
|
2729
2729
|
lookAt(A, g, I) {
|
|
2730
2730
|
const e = this.elements;
|
|
2731
|
-
return Ri.subVectors(A, g), Ri.lengthSq() === 0 && (Ri.z = 1), Ri.normalize(),
|
|
2731
|
+
return Ri.subVectors(A, g), Ri.lengthSq() === 0 && (Ri.z = 1), Ri.normalize(), vo.crossVectors(I, Ri), vo.lengthSq() === 0 && (Math.abs(I.z) === 1 ? Ri.x += 1e-4 : Ri.z += 1e-4, Ri.normalize(), vo.crossVectors(I, Ri)), vo.normalize(), Mc.crossVectors(Ri, vo), e[0] = vo.x, e[4] = Mc.x, e[8] = Ri.x, e[1] = vo.y, e[5] = Mc.y, e[9] = Ri.y, e[2] = vo.z, e[6] = Mc.z, e[10] = Ri.z, this;
|
|
2732
2732
|
}
|
|
2733
2733
|
multiply(A) {
|
|
2734
2734
|
return this.multiplyMatrices(this, A);
|
|
@@ -2953,7 +2953,7 @@ class XA {
|
|
|
2953
2953
|
return A[g] = I[0], A[g + 1] = I[1], A[g + 2] = I[2], A[g + 3] = I[3], A[g + 4] = I[4], A[g + 5] = I[5], A[g + 6] = I[6], A[g + 7] = I[7], A[g + 8] = I[8], A[g + 9] = I[9], A[g + 10] = I[10], A[g + 11] = I[11], A[g + 12] = I[12], A[g + 13] = I[13], A[g + 14] = I[14], A[g + 15] = I[15], A;
|
|
2954
2954
|
}
|
|
2955
2955
|
}
|
|
2956
|
-
const nn = /* @__PURE__ */ new M(), mt = /* @__PURE__ */ new XA(), ZL = /* @__PURE__ */ new M(0, 0, 0), zL = /* @__PURE__ */ new M(1, 1, 1),
|
|
2956
|
+
const nn = /* @__PURE__ */ new M(), mt = /* @__PURE__ */ new XA(), ZL = /* @__PURE__ */ new M(0, 0, 0), zL = /* @__PURE__ */ new M(1, 1, 1), vo = /* @__PURE__ */ new M(), Mc = /* @__PURE__ */ new M(), Ri = /* @__PURE__ */ new M(), SG = /* @__PURE__ */ new XA(), GG = /* @__PURE__ */ new UA();
|
|
2957
2957
|
class ee {
|
|
2958
2958
|
constructor(A = 0, g = 0, I = 0, e = ee.DefaultOrder) {
|
|
2959
2959
|
this.isEuler = !0, this._x = A, this._y = g, this._z = I, this._order = e;
|
|
@@ -3734,7 +3734,7 @@ class sb extends Qg {
|
|
|
3734
3734
|
}
|
|
3735
3735
|
}
|
|
3736
3736
|
let Bb = 0;
|
|
3737
|
-
const
|
|
3737
|
+
const it = /* @__PURE__ */ new XA(), Ou = /* @__PURE__ */ new LA(), En = /* @__PURE__ */ new M(), mi = /* @__PURE__ */ new je(), mQ = /* @__PURE__ */ new je(), le = /* @__PURE__ */ new M();
|
|
3738
3738
|
class lg extends Se {
|
|
3739
3739
|
constructor() {
|
|
3740
3740
|
super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: Bb++ }), this.uuid = Hi(), 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 = {};
|
|
@@ -3782,22 +3782,22 @@ class lg extends Se {
|
|
|
3782
3782
|
return e !== void 0 && (e.transformDirection(A), e.needsUpdate = !0), this.boundingBox !== null && this.computeBoundingBox(), this.boundingSphere !== null && this.computeBoundingSphere(), this;
|
|
3783
3783
|
}
|
|
3784
3784
|
applyQuaternion(A) {
|
|
3785
|
-
return
|
|
3785
|
+
return it.makeRotationFromQuaternion(A), this.applyMatrix4(it), this;
|
|
3786
3786
|
}
|
|
3787
3787
|
rotateX(A) {
|
|
3788
|
-
return
|
|
3788
|
+
return it.makeRotationX(A), this.applyMatrix4(it), this;
|
|
3789
3789
|
}
|
|
3790
3790
|
rotateY(A) {
|
|
3791
|
-
return
|
|
3791
|
+
return it.makeRotationY(A), this.applyMatrix4(it), this;
|
|
3792
3792
|
}
|
|
3793
3793
|
rotateZ(A) {
|
|
3794
|
-
return
|
|
3794
|
+
return it.makeRotationZ(A), this.applyMatrix4(it), this;
|
|
3795
3795
|
}
|
|
3796
3796
|
translate(A, g, I) {
|
|
3797
|
-
return
|
|
3797
|
+
return it.makeTranslation(A, g, I), this.applyMatrix4(it), this;
|
|
3798
3798
|
}
|
|
3799
3799
|
scale(A, g, I) {
|
|
3800
|
-
return
|
|
3800
|
+
return it.makeScale(A, g, I), this.applyMatrix4(it), this;
|
|
3801
3801
|
}
|
|
3802
3802
|
lookAt(A) {
|
|
3803
3803
|
return Ou.lookAt(A), Ou.updateMatrix(), this.applyMatrix4(Ou.matrix), this;
|
|
@@ -4050,7 +4050,7 @@ class lg extends Se {
|
|
|
4050
4050
|
this.dispatchEvent({ type: "dispose" });
|
|
4051
4051
|
}
|
|
4052
4052
|
}
|
|
4053
|
-
const NG = /* @__PURE__ */ new XA(), cn = /* @__PURE__ */ new yo(), _u = /* @__PURE__ */ new NC(),
|
|
4053
|
+
const NG = /* @__PURE__ */ new XA(), cn = /* @__PURE__ */ new yo(), _u = /* @__PURE__ */ new NC(), xo = /* @__PURE__ */ new M(), Yo = /* @__PURE__ */ new M(), Ho = /* @__PURE__ */ new M(), Pu = /* @__PURE__ */ new M(), Wu = /* @__PURE__ */ new M(), ju = /* @__PURE__ */ new M(), mc = /* @__PURE__ */ new M(), Fc = /* @__PURE__ */ new M(), Nc = /* @__PURE__ */ new M(), Kc = /* @__PURE__ */ new $(), Jc = /* @__PURE__ */ new $(), qc = /* @__PURE__ */ new $(), Zu = /* @__PURE__ */ new M(), Lc = /* @__PURE__ */ new M();
|
|
4054
4054
|
class SA extends LA {
|
|
4055
4055
|
constructor(A = new lg(), g = new QI()) {
|
|
4056
4056
|
super(), this.isMesh = !0, this.type = "Mesh", this.geometry = A, this.material = g, this.updateMorphTargets();
|
|
@@ -4124,20 +4124,20 @@ function nb(i, A, g, I, e, t, C, o) {
|
|
|
4124
4124
|
};
|
|
4125
4125
|
}
|
|
4126
4126
|
function bc(i, A, g, I, e, t, C, o, s, B, n, r) {
|
|
4127
|
-
|
|
4127
|
+
xo.fromBufferAttribute(e, B), Yo.fromBufferAttribute(e, n), Ho.fromBufferAttribute(e, r);
|
|
4128
4128
|
const a = i.morphTargetInfluences;
|
|
4129
4129
|
if (t && a) {
|
|
4130
4130
|
mc.set(0, 0, 0), Fc.set(0, 0, 0), Nc.set(0, 0, 0);
|
|
4131
4131
|
for (let c = 0, h = t.length; c < h; c++) {
|
|
4132
4132
|
const l = a[c], u = t[c];
|
|
4133
|
-
l !== 0 && (Pu.fromBufferAttribute(u, B), Wu.fromBufferAttribute(u, n), ju.fromBufferAttribute(u, r), C ? (mc.addScaledVector(Pu, l), Fc.addScaledVector(Wu, l), Nc.addScaledVector(ju, l)) : (mc.addScaledVector(Pu.sub(
|
|
4133
|
+
l !== 0 && (Pu.fromBufferAttribute(u, B), Wu.fromBufferAttribute(u, n), ju.fromBufferAttribute(u, r), C ? (mc.addScaledVector(Pu, l), Fc.addScaledVector(Wu, l), Nc.addScaledVector(ju, l)) : (mc.addScaledVector(Pu.sub(xo), l), Fc.addScaledVector(Wu.sub(Yo), l), Nc.addScaledVector(ju.sub(Ho), l)));
|
|
4134
4134
|
}
|
|
4135
|
-
|
|
4135
|
+
xo.add(mc), Yo.add(Fc), Ho.add(Nc);
|
|
4136
4136
|
}
|
|
4137
|
-
i.isSkinnedMesh && (i.boneTransform(B,
|
|
4138
|
-
const E = nb(i, A, g, I,
|
|
4137
|
+
i.isSkinnedMesh && (i.boneTransform(B, xo), i.boneTransform(n, Yo), i.boneTransform(r, Ho));
|
|
4138
|
+
const E = nb(i, A, g, I, xo, Yo, Ho, Zu);
|
|
4139
4139
|
if (E) {
|
|
4140
|
-
o && (Kc.fromBufferAttribute(o, B), Jc.fromBufferAttribute(o, n), qc.fromBufferAttribute(o, r), E.uv = vi.getUV(Zu,
|
|
4140
|
+
o && (Kc.fromBufferAttribute(o, B), Jc.fromBufferAttribute(o, n), qc.fromBufferAttribute(o, r), E.uv = vi.getUV(Zu, xo, Yo, Ho, Kc, Jc, qc, new $())), s && (Kc.fromBufferAttribute(s, B), Jc.fromBufferAttribute(s, n), qc.fromBufferAttribute(s, r), E.uv2 = vi.getUV(Zu, xo, Yo, Ho, Kc, Jc, qc, new $()));
|
|
4141
4141
|
const c = {
|
|
4142
4142
|
a: B,
|
|
4143
4143
|
b: n,
|
|
@@ -4145,7 +4145,7 @@ function bc(i, A, g, I, e, t, C, o, s, B, n, r) {
|
|
|
4145
4145
|
normal: new M(),
|
|
4146
4146
|
materialIndex: 0
|
|
4147
4147
|
};
|
|
4148
|
-
vi.getNormal(
|
|
4148
|
+
vi.getNormal(xo, Yo, Ho, c.normal), E.face = c;
|
|
4149
4149
|
}
|
|
4150
4150
|
return E;
|
|
4151
4151
|
}
|
|
@@ -4430,7 +4430,7 @@ class Uy extends LA {
|
|
|
4430
4430
|
}
|
|
4431
4431
|
class kE extends qg {
|
|
4432
4432
|
constructor(A, g, I, e, t, C, o, s, B, n) {
|
|
4433
|
-
A = A !== void 0 ? A : [], g = g !== void 0 ? g :
|
|
4433
|
+
A = A !== void 0 ? A : [], g = g !== void 0 ? g : ps, super(A, g, I, e, t, C, o, s, B, n), this.isCubeTexture = !0, this.flipY = !1;
|
|
4434
4434
|
}
|
|
4435
4435
|
get images() {
|
|
4436
4436
|
return this.image;
|
|
@@ -4514,7 +4514,7 @@ class HD extends eI {
|
|
|
4514
4514
|
}
|
|
4515
4515
|
}
|
|
4516
4516
|
const zu = /* @__PURE__ */ new M(), Eb = /* @__PURE__ */ new M(), cb = /* @__PURE__ */ new Ie();
|
|
4517
|
-
class
|
|
4517
|
+
class Et {
|
|
4518
4518
|
constructor(A = new M(1, 0, 0), g = 0) {
|
|
4519
4519
|
this.isPlane = !0, this.normal = A, this.constant = g;
|
|
4520
4520
|
}
|
|
@@ -4586,7 +4586,7 @@ class rt {
|
|
|
4586
4586
|
}
|
|
4587
4587
|
const Dn = /* @__PURE__ */ new NC(), vc = /* @__PURE__ */ new M();
|
|
4588
4588
|
class TD {
|
|
4589
|
-
constructor(A = new
|
|
4589
|
+
constructor(A = new Et(), g = new Et(), I = new Et(), e = new Et(), t = new Et(), C = new Et()) {
|
|
4590
4590
|
this.planes = [A, g, I, e, t, C];
|
|
4591
4591
|
}
|
|
4592
4592
|
set(A, g, I, e, t, C) {
|
|
@@ -8572,7 +8572,7 @@ function Xx(i, A, g) {
|
|
|
8572
8572
|
function $x(i) {
|
|
8573
8573
|
const A = this;
|
|
8574
8574
|
let g = null, I = 0, e = !1, t = !1;
|
|
8575
|
-
const C = new
|
|
8575
|
+
const C = new Et(), o = new Ie(), s = { value: null, needsUpdate: !1 };
|
|
8576
8576
|
this.uniform = s, this.numPlanes = 0, this.numIntersection = 0, this.init = function(r, a, E) {
|
|
8577
8577
|
const c = r.length !== 0 || a || // enable state of previous frame - the clipping code has to
|
|
8578
8578
|
// run another frame in order to reset the state:
|
|
@@ -8616,12 +8616,12 @@ function $x(i) {
|
|
|
8616
8616
|
function AY(i) {
|
|
8617
8617
|
let A = /* @__PURE__ */ new WeakMap();
|
|
8618
8618
|
function g(C, o) {
|
|
8619
|
-
return o ===
|
|
8619
|
+
return o === Dt ? C.mapping = ps : o === Da && (C.mapping = ws), C;
|
|
8620
8620
|
}
|
|
8621
8621
|
function I(C) {
|
|
8622
8622
|
if (C && C.isTexture && C.isRenderTargetTexture === !1) {
|
|
8623
8623
|
const o = C.mapping;
|
|
8624
|
-
if (o ===
|
|
8624
|
+
if (o === Dt || o === Da)
|
|
8625
8625
|
if (A.has(C)) {
|
|
8626
8626
|
const s = A.get(C).texture;
|
|
8627
8627
|
return g(s, C.mapping);
|
|
@@ -8766,7 +8766,7 @@ class Ow {
|
|
|
8766
8766
|
this._renderer.setRenderTarget(Xu), A.scissorTest = !1, Yc(A, 0, 0, A.width, A.height);
|
|
8767
8767
|
}
|
|
8768
8768
|
_fromTexture(A, g) {
|
|
8769
|
-
A.mapping ===
|
|
8769
|
+
A.mapping === ps || A.mapping === ws ? this._setSize(A.image.length === 0 ? 16 : A.image[0].width || A.image[0].image.width) : this._setSize(A.image.width / 4), Xu = this._renderer.getRenderTarget();
|
|
8770
8770
|
const I = g || this._allocateTargets();
|
|
8771
8771
|
return this._textureToCubeUV(A, I), this._applyPMREM(I), this._cleanup(I), I;
|
|
8772
8772
|
}
|
|
@@ -8812,7 +8812,7 @@ class Ow {
|
|
|
8812
8812
|
c.geometry.dispose(), c.material.dispose(), n.toneMapping = a, n.autoClear = r, A.background = l;
|
|
8813
8813
|
}
|
|
8814
8814
|
_textureToCubeUV(A, g) {
|
|
8815
|
-
const I = this._renderer, e = A.mapping ===
|
|
8815
|
+
const I = this._renderer, e = A.mapping === ps || A.mapping === ws;
|
|
8816
8816
|
e ? (this._cubemapMaterial === null && (this._cubemapMaterial = xG()), this._cubemapMaterial.uniforms.flipEnvMap.value = A.isRenderTargetTexture === !1 ? -1 : 1) : this._equirectMaterial === null && (this._equirectMaterial = vG());
|
|
8817
8817
|
const t = e ? this._cubemapMaterial : this._equirectMaterial, C = new SA(this._lodPlanes[0], t), o = t.uniforms;
|
|
8818
8818
|
o.envMap.value = A;
|
|
@@ -9146,7 +9146,7 @@ function IY(i) {
|
|
|
9146
9146
|
let A = /* @__PURE__ */ new WeakMap(), g = null;
|
|
9147
9147
|
function I(o) {
|
|
9148
9148
|
if (o && o.isTexture) {
|
|
9149
|
-
const s = o.mapping, B = s ===
|
|
9149
|
+
const s = o.mapping, B = s === Dt || s === Da, n = s === ps || s === ws;
|
|
9150
9150
|
if (B || n)
|
|
9151
9151
|
if (o.isRenderTargetTexture && o.needsPMREMUpdate === !0) {
|
|
9152
9152
|
o.needsPMREMUpdate = !1;
|
|
@@ -10053,8 +10053,8 @@ function EH(i) {
|
|
|
10053
10053
|
let A = "ENVMAP_TYPE_CUBE";
|
|
10054
10054
|
if (i.envMap)
|
|
10055
10055
|
switch (i.envMapMode) {
|
|
10056
|
-
case us:
|
|
10057
10056
|
case ps:
|
|
10057
|
+
case ws:
|
|
10058
10058
|
A = "ENVMAP_TYPE_CUBE";
|
|
10059
10059
|
break;
|
|
10060
10060
|
case Ja:
|
|
@@ -10067,7 +10067,7 @@ function cH(i) {
|
|
|
10067
10067
|
let A = "ENVMAP_MODE_REFLECTION";
|
|
10068
10068
|
if (i.envMap)
|
|
10069
10069
|
switch (i.envMapMode) {
|
|
10070
|
-
case
|
|
10070
|
+
case ws:
|
|
10071
10071
|
A = "ENVMAP_MODE_REFRACTION";
|
|
10072
10072
|
break;
|
|
10073
10073
|
}
|
|
@@ -10456,7 +10456,7 @@ function wH(i, A, g, I, e, t, C) {
|
|
|
10456
10456
|
bumpMap: !!y.bumpMap,
|
|
10457
10457
|
normalMap: !!y.normalMap,
|
|
10458
10458
|
objectSpaceNormalMap: y.normalMapType === Em,
|
|
10459
|
-
tangentSpaceNormalMap: y.normalMapType ===
|
|
10459
|
+
tangentSpaceNormalMap: y.normalMapType === Us,
|
|
10460
10460
|
decodeVideoTexture: !!y.map && y.map.isVideoTexture === !0 && y.map.encoding === Ag,
|
|
10461
10461
|
clearcoat: mA,
|
|
10462
10462
|
clearcoatMap: mA && !!y.clearcoatMap,
|
|
@@ -11668,7 +11668,7 @@ function qH(i, A, g, I, e, t, C) {
|
|
|
11668
11668
|
let bA;
|
|
11669
11669
|
const Sg = L.mipmaps, Ug = o && L.isVideoTexture !== !0, fg = og.__version === void 0 || NA === !0, W = G(L, b, pA);
|
|
11670
11670
|
if (L.isDepthTexture)
|
|
11671
|
-
PA = 6402, o ? L.type === ge ? PA = 36012 : L.type === to ? PA = 33190 : L.type ===
|
|
11671
|
+
PA = 6402, o ? L.type === ge ? PA = 36012 : L.type === to ? PA = 33190 : L.type === hs ? PA = 35056 : PA = 33189 : L.type === ge && console.error("WebGLRenderer: Floating point depth texture requires WebGL2."), L.format === ls && PA === 6402 && L.type !== Dy && L.type !== to && (console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."), L.type = to, YA = t.convert(L.type)), L.format === fs && PA === 6402 && (PA = 34041, L.type !== hs && (console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."), L.type = hs, YA = t.convert(L.type))), fg && (Ug ? g.texStorage2D(3553, 1, PA, b.width, b.height) : g.texImage2D(3553, 0, PA, b.width, b.height, 0, VA, YA, null));
|
|
11672
11672
|
else if (L.isDataTexture)
|
|
11673
11673
|
if (Sg.length > 0 && pA) {
|
|
11674
11674
|
Ug && fg && g.texStorage2D(3553, W, PA, Sg[0].width, Sg[0].height);
|
|
@@ -11790,9 +11790,9 @@ function qH(i, A, g, I, e, t, C) {
|
|
|
11790
11790
|
throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");
|
|
11791
11791
|
(!I.get(L.depthTexture).__webglTexture || L.depthTexture.image.width !== L.width || L.depthTexture.image.height !== L.height) && (L.depthTexture.image.width = L.width, L.depthTexture.image.height = L.height, L.depthTexture.needsUpdate = !0), rA(L.depthTexture, 0);
|
|
11792
11792
|
const kA = I.get(L.depthTexture).__webglTexture, NA = $A(L);
|
|
11793
|
-
if (L.depthTexture.format ===
|
|
11793
|
+
if (L.depthTexture.format === ls)
|
|
11794
11794
|
Ig(L) ? a.framebufferTexture2DMultisampleEXT(36160, 36096, 3553, kA, 0, NA) : i.framebufferTexture2D(36160, 36096, 3553, kA, 0);
|
|
11795
|
-
else if (L.depthTexture.format ===
|
|
11795
|
+
else if (L.depthTexture.format === fs)
|
|
11796
11796
|
Ig(L) ? a.framebufferTexture2DMultisampleEXT(36160, 33306, 3553, kA, 0, NA) : i.framebufferTexture2D(36160, 33306, 3553, kA, 0);
|
|
11797
11797
|
else
|
|
11798
11798
|
throw new Error("Unknown depthTexture format");
|
|
@@ -11949,15 +11949,15 @@ function bm(i, A, g) {
|
|
|
11949
11949
|
return 6409;
|
|
11950
11950
|
if (t === sm)
|
|
11951
11951
|
return 6410;
|
|
11952
|
-
if (t ===
|
|
11952
|
+
if (t === ls)
|
|
11953
11953
|
return 6402;
|
|
11954
|
-
if (t ===
|
|
11954
|
+
if (t === fs)
|
|
11955
11955
|
return 34041;
|
|
11956
11956
|
if (t === om)
|
|
11957
11957
|
return console.warn("THREE.WebGLRenderer: THREE.RGBFormat has been removed. Use THREE.RGBAFormat instead. https://github.com/mrdoob/three.js/pull/23228"), 6408;
|
|
11958
11958
|
if (t === ql)
|
|
11959
11959
|
return o = A.get("EXT_sRGB"), o !== null ? o.SRGB_ALPHA_EXT : null;
|
|
11960
|
-
if (t ===
|
|
11960
|
+
if (t === ns)
|
|
11961
11961
|
return 6403;
|
|
11962
11962
|
if (t === Bm)
|
|
11963
11963
|
return 36244;
|
|
@@ -12051,7 +12051,7 @@ function bm(i, A, g) {
|
|
|
12051
12051
|
return C === Ag ? o.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT : o.COMPRESSED_RGBA_BPTC_UNORM_EXT;
|
|
12052
12052
|
} else
|
|
12053
12053
|
return null;
|
|
12054
|
-
return t ===
|
|
12054
|
+
return t === hs ? I ? 34042 : (o = A.get("WEBGL_depth_texture"), o !== null ? o.UNSIGNED_INT_24_8_WEBGL : null) : i[t] !== void 0 ? i[t] : null;
|
|
12055
12055
|
}
|
|
12056
12056
|
return { convert: e };
|
|
12057
12057
|
}
|
|
@@ -12131,9 +12131,9 @@ let Ap = class {
|
|
|
12131
12131
|
};
|
|
12132
12132
|
class PD extends qg {
|
|
12133
12133
|
constructor(A, g, I, e, t, C, o, s, B, n) {
|
|
12134
|
-
if (n = n !== void 0 ? n :
|
|
12134
|
+
if (n = n !== void 0 ? n : ls, n !== ls && n !== fs)
|
|
12135
12135
|
throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");
|
|
12136
|
-
I === void 0 && n ===
|
|
12136
|
+
I === void 0 && n === ls && (I = to), I === void 0 && n === fs && (I = hs), super(null, e, t, C, o, s, n, I, B), this.isDepthTexture = !0, this.image = { width: A, height: g }, this.magFilter = o !== void 0 ? o : jg, this.minFilter = s !== void 0 ? s : jg, this.flipY = !1, this.generateMipmaps = !1;
|
|
12137
12137
|
}
|
|
12138
12138
|
}
|
|
12139
12139
|
class bH extends Se {
|
|
@@ -12217,7 +12217,7 @@ class bH extends Se {
|
|
|
12217
12217
|
);
|
|
12218
12218
|
} else {
|
|
12219
12219
|
let nA = null, wA = null, Z = null;
|
|
12220
|
-
h.depth && (Z = h.stencil ? 35056 : 33190, nA = h.stencil ?
|
|
12220
|
+
h.depth && (Z = h.stencil ? 35056 : 33190, nA = h.stencil ? fs : ls, wA = h.stencil ? hs : to);
|
|
12221
12221
|
const KA = {
|
|
12222
12222
|
colorFormat: 32856,
|
|
12223
12223
|
depthFormat: Z,
|
|
@@ -13597,7 +13597,7 @@ class OI extends LA {
|
|
|
13597
13597
|
}
|
|
13598
13598
|
}
|
|
13599
13599
|
const ck = /* @__PURE__ */ new M(), hk = /* @__PURE__ */ new M();
|
|
13600
|
-
class
|
|
13600
|
+
class Vi extends OI {
|
|
13601
13601
|
constructor(A, g) {
|
|
13602
13602
|
super(A, g), this.isLineSegments = !0, this.type = "LineSegments";
|
|
13603
13603
|
}
|
|
@@ -15880,7 +15880,7 @@ class Py extends _g {
|
|
|
15880
15880
|
}
|
|
15881
15881
|
class xE extends Rg {
|
|
15882
15882
|
constructor(A) {
|
|
15883
|
-
super(), this.isMeshStandardMaterial = !0, this.defines = { STANDARD: "" }, this.type = "MeshStandardMaterial", this.color = new fA(16777215), this.roughness = 1, this.metalness = 0, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new fA(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType =
|
|
15883
|
+
super(), this.isMeshStandardMaterial = !0, this.defines = { STANDARD: "" }, this.type = "MeshStandardMaterial", this.color = new fA(16777215), this.roughness = 1, this.metalness = 0, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new fA(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Us, this.normalScale = new $(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.roughnessMap = null, this.metalnessMap = null, this.alphaMap = null, this.envMap = null, this.envMapIntensity = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(A);
|
|
15884
15884
|
}
|
|
15885
15885
|
copy(A) {
|
|
15886
15886
|
return super.copy(A), this.defines = { STANDARD: "" }, this.color.copy(A.color), this.roughness = A.roughness, this.metalness = A.metalness, this.map = A.map, this.lightMap = A.lightMap, this.lightMapIntensity = A.lightMapIntensity, this.aoMap = A.aoMap, this.aoMapIntensity = A.aoMapIntensity, this.emissive.copy(A.emissive), this.emissiveMap = A.emissiveMap, this.emissiveIntensity = A.emissiveIntensity, this.bumpMap = A.bumpMap, this.bumpScale = A.bumpScale, this.normalMap = A.normalMap, this.normalMapType = A.normalMapType, this.normalScale.copy(A.normalScale), this.displacementMap = A.displacementMap, this.displacementScale = A.displacementScale, this.displacementBias = A.displacementBias, this.roughnessMap = A.roughnessMap, this.metalnessMap = A.metalnessMap, this.alphaMap = A.alphaMap, this.envMap = A.envMap, this.envMapIntensity = A.envMapIntensity, this.wireframe = A.wireframe, this.wireframeLinewidth = A.wireframeLinewidth, this.wireframeLinecap = A.wireframeLinecap, this.wireframeLinejoin = A.wireframeLinejoin, this.flatShading = A.flatShading, this.fog = A.fog, this;
|
|
@@ -15933,7 +15933,7 @@ class Go extends xE {
|
|
|
15933
15933
|
}
|
|
15934
15934
|
class gF extends Rg {
|
|
15935
15935
|
constructor(A) {
|
|
15936
|
-
super(), this.isMeshPhongMaterial = !0, this.type = "MeshPhongMaterial", this.color = new fA(16777215), this.specular = new fA(1118481), this.shininess = 30, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new fA(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType =
|
|
15936
|
+
super(), this.isMeshPhongMaterial = !0, this.type = "MeshPhongMaterial", this.color = new fA(16777215), this.specular = new fA(1118481), this.shininess = 30, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new fA(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Us, this.normalScale = new $(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine = fE, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(A);
|
|
15937
15937
|
}
|
|
15938
15938
|
copy(A) {
|
|
15939
15939
|
return super.copy(A), this.color.copy(A.color), this.specular.copy(A.specular), this.shininess = A.shininess, this.map = A.map, this.lightMap = A.lightMap, this.lightMapIntensity = A.lightMapIntensity, this.aoMap = A.aoMap, this.aoMapIntensity = A.aoMapIntensity, this.emissive.copy(A.emissive), this.emissiveMap = A.emissiveMap, this.emissiveIntensity = A.emissiveIntensity, this.bumpMap = A.bumpMap, this.bumpScale = A.bumpScale, this.normalMap = A.normalMap, this.normalMapType = A.normalMapType, this.normalScale.copy(A.normalScale), this.displacementMap = A.displacementMap, this.displacementScale = A.displacementScale, this.displacementBias = A.displacementBias, this.specularMap = A.specularMap, this.alphaMap = A.alphaMap, this.envMap = A.envMap, this.combine = A.combine, this.reflectivity = A.reflectivity, this.refractionRatio = A.refractionRatio, this.wireframe = A.wireframe, this.wireframeLinewidth = A.wireframeLinewidth, this.wireframeLinecap = A.wireframeLinecap, this.wireframeLinejoin = A.wireframeLinejoin, this.flatShading = A.flatShading, this.fog = A.fog, this;
|
|
@@ -15941,7 +15941,7 @@ class gF extends Rg {
|
|
|
15941
15941
|
}
|
|
15942
15942
|
class IF extends Rg {
|
|
15943
15943
|
constructor(A) {
|
|
15944
|
-
super(), this.isMeshToonMaterial = !0, this.defines = { TOON: "" }, this.type = "MeshToonMaterial", this.color = new fA(16777215), this.map = null, this.gradientMap = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new fA(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType =
|
|
15944
|
+
super(), this.isMeshToonMaterial = !0, this.defines = { TOON: "" }, this.type = "MeshToonMaterial", this.color = new fA(16777215), this.map = null, this.gradientMap = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new fA(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Us, this.normalScale = new $(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.alphaMap = null, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.fog = !0, this.setValues(A);
|
|
15945
15945
|
}
|
|
15946
15946
|
copy(A) {
|
|
15947
15947
|
return super.copy(A), this.color.copy(A.color), this.map = A.map, this.gradientMap = A.gradientMap, this.lightMap = A.lightMap, this.lightMapIntensity = A.lightMapIntensity, this.aoMap = A.aoMap, this.aoMapIntensity = A.aoMapIntensity, this.emissive.copy(A.emissive), this.emissiveMap = A.emissiveMap, this.emissiveIntensity = A.emissiveIntensity, this.bumpMap = A.bumpMap, this.bumpScale = A.bumpScale, this.normalMap = A.normalMap, this.normalMapType = A.normalMapType, this.normalScale.copy(A.normalScale), this.displacementMap = A.displacementMap, this.displacementScale = A.displacementScale, this.displacementBias = A.displacementBias, this.alphaMap = A.alphaMap, this.wireframe = A.wireframe, this.wireframeLinewidth = A.wireframeLinewidth, this.wireframeLinecap = A.wireframeLinecap, this.wireframeLinejoin = A.wireframeLinejoin, this.fog = A.fog, this;
|
|
@@ -15949,7 +15949,7 @@ class IF extends Rg {
|
|
|
15949
15949
|
}
|
|
15950
15950
|
class Wy extends Rg {
|
|
15951
15951
|
constructor(A) {
|
|
15952
|
-
super(), this.isMeshNormalMaterial = !0, this.type = "MeshNormalMaterial", this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType =
|
|
15952
|
+
super(), this.isMeshNormalMaterial = !0, this.type = "MeshNormalMaterial", this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Us, this.normalScale = new $(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.wireframe = !1, this.wireframeLinewidth = 1, this.flatShading = !1, this.setValues(A);
|
|
15953
15953
|
}
|
|
15954
15954
|
copy(A) {
|
|
15955
15955
|
return super.copy(A), this.bumpMap = A.bumpMap, this.bumpScale = A.bumpScale, this.normalMap = A.normalMap, this.normalMapType = A.normalMapType, this.normalScale.copy(A.normalScale), this.displacementMap = A.displacementMap, this.displacementScale = A.displacementScale, this.displacementBias = A.displacementBias, this.wireframe = A.wireframe, this.wireframeLinewidth = A.wireframeLinewidth, this.flatShading = A.flatShading, this;
|
|
@@ -15957,7 +15957,7 @@ class Wy extends Rg {
|
|
|
15957
15957
|
}
|
|
15958
15958
|
class eF extends Rg {
|
|
15959
15959
|
constructor(A) {
|
|
15960
|
-
super(), this.isMeshLambertMaterial = !0, this.type = "MeshLambertMaterial", this.color = new fA(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new fA(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType =
|
|
15960
|
+
super(), this.isMeshLambertMaterial = !0, this.type = "MeshLambertMaterial", this.color = new fA(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new fA(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Us, this.normalScale = new $(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine = fE, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(A);
|
|
15961
15961
|
}
|
|
15962
15962
|
copy(A) {
|
|
15963
15963
|
return super.copy(A), this.color.copy(A.color), this.map = A.map, this.lightMap = A.lightMap, this.lightMapIntensity = A.lightMapIntensity, this.aoMap = A.aoMap, this.aoMapIntensity = A.aoMapIntensity, this.emissive.copy(A.emissive), this.emissiveMap = A.emissiveMap, this.emissiveIntensity = A.emissiveIntensity, this.bumpMap = A.bumpMap, this.bumpScale = A.bumpScale, this.normalMap = A.normalMap, this.normalMapType = A.normalMapType, this.normalScale.copy(A.normalScale), this.displacementMap = A.displacementMap, this.displacementScale = A.displacementScale, this.displacementBias = A.displacementBias, this.specularMap = A.specularMap, this.alphaMap = A.alphaMap, this.envMap = A.envMap, this.combine = A.combine, this.reflectivity = A.reflectivity, this.refractionRatio = A.refractionRatio, this.wireframe = A.wireframe, this.wireframeLinewidth = A.wireframeLinewidth, this.wireframeLinecap = A.wireframeLinecap, this.wireframeLinejoin = A.wireframeLinejoin, this.flatShading = A.flatShading, this.fog = A.fog, this;
|
|
@@ -15965,7 +15965,7 @@ class eF extends Rg {
|
|
|
15965
15965
|
}
|
|
15966
15966
|
class iF extends Rg {
|
|
15967
15967
|
constructor(A) {
|
|
15968
|
-
super(), this.isMeshMatcapMaterial = !0, this.defines = { MATCAP: "" }, this.type = "MeshMatcapMaterial", this.color = new fA(16777215), this.matcap = null, this.map = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType =
|
|
15968
|
+
super(), this.isMeshMatcapMaterial = !0, this.defines = { MATCAP: "" }, this.type = "MeshMatcapMaterial", this.color = new fA(16777215), this.matcap = null, this.map = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Us, this.normalScale = new $(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.alphaMap = null, this.flatShading = !1, this.fog = !0, this.setValues(A);
|
|
15969
15969
|
}
|
|
15970
15970
|
copy(A) {
|
|
15971
15971
|
return super.copy(A), this.defines = { MATCAP: "" }, this.color.copy(A.color), this.matcap = A.matcap, this.map = A.map, this.bumpMap = A.bumpMap, this.bumpScale = A.bumpScale, this.normalMap = A.normalMap, this.normalMapType = A.normalMapType, this.normalScale.copy(A.normalScale), this.displacementMap = A.displacementMap, this.displacementScale = A.displacementScale, this.displacementBias = A.displacementBias, this.alphaMap = A.alphaMap, this.flatShading = A.flatShading, this.fog = A.fog, this;
|
|
@@ -15979,7 +15979,7 @@ class tF extends jI {
|
|
|
15979
15979
|
return super.copy(A), this.scale = A.scale, this.dashSize = A.dashSize, this.gapSize = A.gapSize, this;
|
|
15980
15980
|
}
|
|
15981
15981
|
}
|
|
15982
|
-
function
|
|
15982
|
+
function rt(i, A, g) {
|
|
15983
15983
|
return jy(i) ? new i.constructor(i.subarray(A, g !== void 0 ? g : i.length)) : i.slice(A, g);
|
|
15984
15984
|
}
|
|
15985
15985
|
function lB(i, A, g) {
|
|
@@ -16074,13 +16074,13 @@ function uT(i, A = 0, g = i, I = 30) {
|
|
|
16074
16074
|
let h;
|
|
16075
16075
|
if (t <= o.times[0]) {
|
|
16076
16076
|
const u = n, w = r - n;
|
|
16077
|
-
h =
|
|
16077
|
+
h = rt(o.values, u, w);
|
|
16078
16078
|
} else if (t >= o.times[c]) {
|
|
16079
16079
|
const u = c * r + n, w = u + r - n;
|
|
16080
|
-
h =
|
|
16080
|
+
h = rt(o.values, u, w);
|
|
16081
16081
|
} else {
|
|
16082
16082
|
const u = o.createInterpolant(), w = n, D = r - n;
|
|
16083
|
-
u.evaluate(t), h =
|
|
16083
|
+
u.evaluate(t), h = rt(u.resultBuffer, w, D);
|
|
16084
16084
|
}
|
|
16085
16085
|
s === "quaternion" && new UA().fromArray(h).normalize().conjugate().toArray(h);
|
|
16086
16086
|
const l = B.times.length;
|
|
@@ -16106,7 +16106,7 @@ function uT(i, A = 0, g = i, I = 30) {
|
|
|
16106
16106
|
}
|
|
16107
16107
|
var pT = /* @__PURE__ */ Object.freeze({
|
|
16108
16108
|
__proto__: null,
|
|
16109
|
-
arraySlice:
|
|
16109
|
+
arraySlice: rt,
|
|
16110
16110
|
convertArray: lB,
|
|
16111
16111
|
isTypedArray: jy,
|
|
16112
16112
|
getKeyframeOrder: CF,
|
|
@@ -16248,7 +16248,7 @@ class sF extends Ta {
|
|
|
16248
16248
|
return this.copySampleValue_(A - 1);
|
|
16249
16249
|
}
|
|
16250
16250
|
}
|
|
16251
|
-
class
|
|
16251
|
+
class Zi {
|
|
16252
16252
|
constructor(A, g, I, e) {
|
|
16253
16253
|
if (A === void 0)
|
|
16254
16254
|
throw new Error("THREE.KeyframeTrack: track name is undefined");
|
|
@@ -16350,7 +16350,7 @@ class ji {
|
|
|
16350
16350
|
if (++C, t !== 0 || C !== e) {
|
|
16351
16351
|
t >= C && (C = Math.max(C, 1), t = C - 1);
|
|
16352
16352
|
const o = this.getValueSize();
|
|
16353
|
-
this.times =
|
|
16353
|
+
this.times = rt(I, t, C), this.values = rt(this.values, t * o, C * o);
|
|
16354
16354
|
}
|
|
16355
16355
|
return this;
|
|
16356
16356
|
}
|
|
@@ -16387,7 +16387,7 @@ class ji {
|
|
|
16387
16387
|
// removes equivalent sequential keys as common in morph target sequences
|
|
16388
16388
|
// (0,0,0,0,1,1,1,0,0,0,0,0,0,0) --> (0,0,1,1,0,0)
|
|
16389
16389
|
optimize() {
|
|
16390
|
-
const A =
|
|
16390
|
+
const A = rt(this.times), g = rt(this.values), I = this.getValueSize(), e = this.getInterpolation() === jh, t = A.length - 1;
|
|
16391
16391
|
let C = 1;
|
|
16392
16392
|
for (let o = 1; o < t; ++o) {
|
|
16393
16393
|
let s = !1;
|
|
@@ -16421,29 +16421,29 @@ class ji {
|
|
|
16421
16421
|
g[s + B] = g[o + B];
|
|
16422
16422
|
++C;
|
|
16423
16423
|
}
|
|
16424
|
-
return C !== A.length ? (this.times =
|
|
16424
|
+
return C !== A.length ? (this.times = rt(A, 0, C), this.values = rt(g, 0, C * I)) : (this.times = A, this.values = g), this;
|
|
16425
16425
|
}
|
|
16426
16426
|
clone() {
|
|
16427
|
-
const A =
|
|
16427
|
+
const A = rt(this.times, 0), g = rt(this.values, 0), I = this.constructor, e = new I(this.name, A, g);
|
|
16428
16428
|
return e.createInterpolant = this.createInterpolant, e;
|
|
16429
16429
|
}
|
|
16430
16430
|
}
|
|
16431
|
-
|
|
16432
|
-
|
|
16433
|
-
|
|
16434
|
-
class OB extends
|
|
16431
|
+
Zi.prototype.TimeBufferType = Float32Array;
|
|
16432
|
+
Zi.prototype.ValueBufferType = Float32Array;
|
|
16433
|
+
Zi.prototype.DefaultInterpolation = lo;
|
|
16434
|
+
class OB extends Zi {
|
|
16435
16435
|
}
|
|
16436
16436
|
OB.prototype.ValueTypeName = "bool";
|
|
16437
16437
|
OB.prototype.ValueBufferType = Array;
|
|
16438
16438
|
OB.prototype.DefaultInterpolation = KB;
|
|
16439
16439
|
OB.prototype.InterpolantFactoryMethodLinear = void 0;
|
|
16440
16440
|
OB.prototype.InterpolantFactoryMethodSmooth = void 0;
|
|
16441
|
-
class YE extends
|
|
16441
|
+
class YE extends Zi {
|
|
16442
16442
|
}
|
|
16443
16443
|
YE.prototype.ValueTypeName = "color";
|
|
16444
|
-
class
|
|
16444
|
+
class ys extends Zi {
|
|
16445
16445
|
}
|
|
16446
|
-
|
|
16446
|
+
ys.prototype.ValueTypeName = "number";
|
|
16447
16447
|
class BF extends Ta {
|
|
16448
16448
|
constructor(A, g, I, e) {
|
|
16449
16449
|
super(A, g, I, e);
|
|
@@ -16456,7 +16456,7 @@ class BF extends Ta {
|
|
|
16456
16456
|
return t;
|
|
16457
16457
|
}
|
|
16458
16458
|
}
|
|
16459
|
-
class KC extends
|
|
16459
|
+
class KC extends Zi {
|
|
16460
16460
|
InterpolantFactoryMethodLinear(A) {
|
|
16461
16461
|
return new BF(this.times, this.values, this.getValueSize(), A);
|
|
16462
16462
|
}
|
|
@@ -16464,16 +16464,16 @@ class KC extends ji {
|
|
|
16464
16464
|
KC.prototype.ValueTypeName = "quaternion";
|
|
16465
16465
|
KC.prototype.DefaultInterpolation = lo;
|
|
16466
16466
|
KC.prototype.InterpolantFactoryMethodSmooth = void 0;
|
|
16467
|
-
class _B extends
|
|
16467
|
+
class _B extends Zi {
|
|
16468
16468
|
}
|
|
16469
16469
|
_B.prototype.ValueTypeName = "string";
|
|
16470
16470
|
_B.prototype.ValueBufferType = Array;
|
|
16471
16471
|
_B.prototype.DefaultInterpolation = KB;
|
|
16472
16472
|
_B.prototype.InterpolantFactoryMethodLinear = void 0;
|
|
16473
16473
|
_B.prototype.InterpolantFactoryMethodSmooth = void 0;
|
|
16474
|
-
class
|
|
16474
|
+
class Ss extends Zi {
|
|
16475
16475
|
}
|
|
16476
|
-
|
|
16476
|
+
Ss.prototype.ValueTypeName = "vector";
|
|
16477
16477
|
class Wt {
|
|
16478
16478
|
constructor(A, g = -1, I, e = xD) {
|
|
16479
16479
|
this.name = A, this.tracks = I, this.duration = g, this.blendMode = e, this.uuid = Hi(), this.duration < 0 && this.resetDuration();
|
|
@@ -16494,7 +16494,7 @@ class Wt {
|
|
|
16494
16494
|
blendMode: A.blendMode
|
|
16495
16495
|
};
|
|
16496
16496
|
for (let t = 0, C = I.length; t !== C; ++t)
|
|
16497
|
-
g.push(
|
|
16497
|
+
g.push(Zi.toJSON(I[t]));
|
|
16498
16498
|
return e;
|
|
16499
16499
|
}
|
|
16500
16500
|
static CreateFromMorphTargetSequence(A, g, I, e) {
|
|
@@ -16508,7 +16508,7 @@ class Wt {
|
|
|
16508
16508
|
), B.push(0, 1, 0);
|
|
16509
16509
|
const n = CF(s);
|
|
16510
16510
|
s = Zw(s, 1, n), B = Zw(B, 1, n), !e && s[0] === 0 && (s.push(t), B.push(B[0])), C.push(
|
|
16511
|
-
new
|
|
16511
|
+
new ys(
|
|
16512
16512
|
".morphTargetInfluences[" + g[o].name + "]",
|
|
16513
16513
|
s,
|
|
16514
16514
|
B
|
|
@@ -16571,13 +16571,13 @@ class Wt {
|
|
|
16571
16571
|
const D = a[c];
|
|
16572
16572
|
l.push(D.time), u.push(D.morphTarget === h ? 1 : 0);
|
|
16573
16573
|
}
|
|
16574
|
-
e.push(new
|
|
16574
|
+
e.push(new ys(".morphTargetInfluence[" + h + "]", l, u));
|
|
16575
16575
|
}
|
|
16576
16576
|
s = E.length * C;
|
|
16577
16577
|
} else {
|
|
16578
16578
|
const E = ".bones[" + g[r].name + "]";
|
|
16579
16579
|
I(
|
|
16580
|
-
|
|
16580
|
+
Ss,
|
|
16581
16581
|
E + ".position",
|
|
16582
16582
|
a,
|
|
16583
16583
|
"pos",
|
|
@@ -16589,7 +16589,7 @@ class Wt {
|
|
|
16589
16589
|
"rot",
|
|
16590
16590
|
e
|
|
16591
16591
|
), I(
|
|
16592
|
-
|
|
16592
|
+
Ss,
|
|
16593
16593
|
E + ".scale",
|
|
16594
16594
|
a,
|
|
16595
16595
|
"scl",
|
|
@@ -16641,12 +16641,12 @@ function wT(i) {
|
|
|
16641
16641
|
case "float":
|
|
16642
16642
|
case "number":
|
|
16643
16643
|
case "integer":
|
|
16644
|
-
return
|
|
16644
|
+
return ys;
|
|
16645
16645
|
case "vector":
|
|
16646
16646
|
case "vector2":
|
|
16647
16647
|
case "vector3":
|
|
16648
16648
|
case "vector4":
|
|
16649
|
-
return
|
|
16649
|
+
return Ss;
|
|
16650
16650
|
case "color":
|
|
16651
16651
|
return YE;
|
|
16652
16652
|
case "quaternion":
|
|
@@ -16986,7 +16986,7 @@ class kB extends Ze {
|
|
|
16986
16986
|
}, I, e), t;
|
|
16987
16987
|
}
|
|
16988
16988
|
}
|
|
16989
|
-
let
|
|
16989
|
+
let Rs = class extends LA {
|
|
16990
16990
|
constructor(A, g = 1) {
|
|
16991
16991
|
super(), this.isLight = !0, this.type = "Light", this.color = new fA(A), this.intensity = g;
|
|
16992
16992
|
}
|
|
@@ -17000,7 +17000,7 @@ let Us = class extends LA {
|
|
|
17000
17000
|
return g.object.color = this.color.getHex(), g.object.intensity = this.intensity, this.groundColor !== void 0 && (g.object.groundColor = this.groundColor.getHex()), this.distance !== void 0 && (g.object.distance = this.distance), this.angle !== void 0 && (g.object.angle = this.angle), this.decay !== void 0 && (g.object.decay = this.decay), this.penumbra !== void 0 && (g.object.penumbra = this.penumbra), this.shadow !== void 0 && (g.object.shadow = this.shadow.toJSON()), g;
|
|
17001
17001
|
}
|
|
17002
17002
|
};
|
|
17003
|
-
class Xy extends
|
|
17003
|
+
class Xy extends Rs {
|
|
17004
17004
|
constructor(A, g, I) {
|
|
17005
17005
|
super(A, I), this.isHemisphereLight = !0, this.type = "HemisphereLight", this.position.copy(LA.DefaultUp), this.updateMatrix(), this.groundColor = new fA(g);
|
|
17006
17006
|
}
|
|
@@ -17074,7 +17074,7 @@ class MT extends $y {
|
|
|
17074
17074
|
return super.copy(A), this.focus = A.focus, this;
|
|
17075
17075
|
}
|
|
17076
17076
|
}
|
|
17077
|
-
class Ad extends
|
|
17077
|
+
class Ad extends Rs {
|
|
17078
17078
|
constructor(A, g, I = 0, e = Math.PI / 3, t = 0, C = 2) {
|
|
17079
17079
|
super(A, g), this.isSpotLight = !0, this.type = "SpotLight", this.position.copy(LA.DefaultUp), this.updateMatrix(), this.target = new LA(), this.distance = I, this.angle = e, this.penumbra = t, this.decay = C, this.map = null, this.shadow = new MT();
|
|
17080
17080
|
}
|
|
@@ -17140,7 +17140,7 @@ class UT extends $y {
|
|
|
17140
17140
|
t !== I.far && (I.far = t, I.updateProjectionMatrix()), qQ.setFromMatrixPosition(A.matrixWorld), I.position.copy(qQ), sp.copy(I.position), sp.add(this._cubeDirections[g]), I.up.copy(this._cubeUps[g]), I.lookAt(sp), I.updateMatrixWorld(), e.makeTranslation(-qQ.x, -qQ.y, -qQ.z), kk.multiplyMatrices(I.projectionMatrix, I.matrixWorldInverse), this._frustum.setFromProjectionMatrix(kk);
|
|
17141
17141
|
}
|
|
17142
17142
|
}
|
|
17143
|
-
class gd extends
|
|
17143
|
+
class gd extends Rs {
|
|
17144
17144
|
constructor(A, g, I = 0, e = 2) {
|
|
17145
17145
|
super(A, g), this.isPointLight = !0, this.type = "PointLight", this.distance = I, this.decay = e, this.shadow = new UT();
|
|
17146
17146
|
}
|
|
@@ -17162,7 +17162,7 @@ class RT extends $y {
|
|
|
17162
17162
|
super(new La(-5, 5, 5, -5, 0.5, 500)), this.isDirectionalLightShadow = !0;
|
|
17163
17163
|
}
|
|
17164
17164
|
}
|
|
17165
|
-
class Id extends
|
|
17165
|
+
class Id extends Rs {
|
|
17166
17166
|
constructor(A, g) {
|
|
17167
17167
|
super(A, g), this.isDirectionalLight = !0, this.type = "DirectionalLight", this.position.copy(LA.DefaultUp), this.updateMatrix(), this.target = new LA(), this.shadow = new RT();
|
|
17168
17168
|
}
|
|
@@ -17173,12 +17173,12 @@ class Id extends Us {
|
|
|
17173
17173
|
return super.copy(A), this.target = A.target.clone(), this.shadow = A.shadow.clone(), this;
|
|
17174
17174
|
}
|
|
17175
17175
|
}
|
|
17176
|
-
class AS extends
|
|
17176
|
+
class AS extends Rs {
|
|
17177
17177
|
constructor(A, g) {
|
|
17178
17178
|
super(A, g), this.isAmbientLight = !0, this.type = "AmbientLight";
|
|
17179
17179
|
}
|
|
17180
17180
|
}
|
|
17181
|
-
class aF extends
|
|
17181
|
+
class aF extends Rs {
|
|
17182
17182
|
constructor(A, g, I = 10, e = 10) {
|
|
17183
17183
|
super(A, g), this.isRectAreaLight = !0, this.type = "RectAreaLight", this.width = I, this.height = e;
|
|
17184
17184
|
}
|
|
@@ -17276,7 +17276,7 @@ class jn {
|
|
|
17276
17276
|
g[0] = 0.282095, g[1] = 0.488603 * e, g[2] = 0.488603 * t, g[3] = 0.488603 * I, g[4] = 1.092548 * I * e, g[5] = 1.092548 * e * t, g[6] = 0.315392 * (3 * t * t - 1), g[7] = 1.092548 * I * t, g[8] = 0.546274 * (I * I - e * e);
|
|
17277
17277
|
}
|
|
17278
17278
|
}
|
|
17279
|
-
class ya extends
|
|
17279
|
+
class ya extends Rs {
|
|
17280
17280
|
constructor(A = new jn(), g = 1) {
|
|
17281
17281
|
super(void 0, g), this.isLightProbe = !0, this.sh = A;
|
|
17282
17282
|
}
|
|
@@ -17634,10 +17634,10 @@ class mT extends Ze {
|
|
|
17634
17634
|
const l = a[c], u = o(l);
|
|
17635
17635
|
u !== null && (u instanceof HTMLImageElement ? E.push(u) : E.push(new _t(u.data, u.width, u.height)));
|
|
17636
17636
|
}
|
|
17637
|
-
e[r.uuid] = new
|
|
17637
|
+
e[r.uuid] = new as(E);
|
|
17638
17638
|
} else {
|
|
17639
17639
|
const E = o(r.url);
|
|
17640
|
-
e[r.uuid] = new
|
|
17640
|
+
e[r.uuid] = new as(E);
|
|
17641
17641
|
}
|
|
17642
17642
|
}
|
|
17643
17643
|
}
|
|
@@ -17667,10 +17667,10 @@ class mT extends Ze {
|
|
|
17667
17667
|
const E = B[r], c = await t(E);
|
|
17668
17668
|
c !== null && (c instanceof HTMLImageElement ? n.push(c) : n.push(new _t(c.data, c.width, c.height)));
|
|
17669
17669
|
}
|
|
17670
|
-
I[s.uuid] = new
|
|
17670
|
+
I[s.uuid] = new as(n);
|
|
17671
17671
|
} else {
|
|
17672
17672
|
const n = await t(s.url);
|
|
17673
|
-
I[s.uuid] = new
|
|
17673
|
+
I[s.uuid] = new as(n);
|
|
17674
17674
|
}
|
|
17675
17675
|
}
|
|
17676
17676
|
}
|
|
@@ -17765,7 +17765,7 @@ class mT extends Ze {
|
|
|
17765
17765
|
C = new Jy(o(A.geometry), s(A.material));
|
|
17766
17766
|
break;
|
|
17767
17767
|
case "LineSegments":
|
|
17768
|
-
C = new
|
|
17768
|
+
C = new Vi(o(A.geometry), s(A.material));
|
|
17769
17769
|
break;
|
|
17770
17770
|
case "PointCloud":
|
|
17771
17771
|
case "Points":
|
|
@@ -17816,9 +17816,9 @@ class mT extends Ze {
|
|
|
17816
17816
|
}
|
|
17817
17817
|
const FT = {
|
|
17818
17818
|
UVMapping: bD,
|
|
17819
|
-
CubeReflectionMapping:
|
|
17820
|
-
CubeRefractionMapping:
|
|
17821
|
-
EquirectangularReflectionMapping:
|
|
17819
|
+
CubeReflectionMapping: ps,
|
|
17820
|
+
CubeRefractionMapping: ws,
|
|
17821
|
+
EquirectangularReflectionMapping: Dt,
|
|
17822
17822
|
EquirectangularRefractionMapping: Da,
|
|
17823
17823
|
CubeUVReflectionMapping: Ja
|
|
17824
17824
|
}, Mk = {
|
|
@@ -19499,7 +19499,7 @@ class I2 extends LA {
|
|
|
19499
19499
|
}
|
|
19500
19500
|
I.setAttribute("position", new tg(e, 3));
|
|
19501
19501
|
const t = new jI({ fog: !1, toneMapped: !1 });
|
|
19502
|
-
this.cone = new
|
|
19502
|
+
this.cone = new Vi(I, t), this.add(this.cone), this.update();
|
|
19503
19503
|
}
|
|
19504
19504
|
dispose() {
|
|
19505
19505
|
this.cone.geometry.dispose(), this.cone.material.dispose();
|
|
@@ -19510,8 +19510,8 @@ class I2 extends LA {
|
|
|
19510
19510
|
this.cone.scale.set(g, g, A), bk.setFromMatrixPosition(this.light.target.matrixWorld), this.cone.lookAt(bk), this.color !== void 0 ? this.cone.material.color.set(this.color) : this.cone.material.color.copy(this.light.color);
|
|
19511
19511
|
}
|
|
19512
19512
|
}
|
|
19513
|
-
const
|
|
19514
|
-
class e2 extends
|
|
19513
|
+
const To = /* @__PURE__ */ new M(), ih = /* @__PURE__ */ new XA(), Bp = /* @__PURE__ */ new XA();
|
|
19514
|
+
class e2 extends Vi {
|
|
19515
19515
|
constructor(A) {
|
|
19516
19516
|
const g = DF(A), I = new lg(), e = [], t = [], C = new fA(0, 0, 1), o = new fA(0, 1, 0);
|
|
19517
19517
|
for (let B = 0; B < g.length; B++) {
|
|
@@ -19527,7 +19527,7 @@ class e2 extends zi {
|
|
|
19527
19527
|
Bp.copy(this.root.matrixWorld).invert();
|
|
19528
19528
|
for (let t = 0, C = 0; t < g.length; t++) {
|
|
19529
19529
|
const o = g[t];
|
|
19530
|
-
o.parent && o.parent.isBone && (ih.multiplyMatrices(Bp, o.matrixWorld),
|
|
19530
|
+
o.parent && o.parent.isBone && (ih.multiplyMatrices(Bp, o.matrixWorld), To.setFromMatrixPosition(ih), e.setXYZ(C, To.x, To.y, To.z), ih.multiplyMatrices(Bp, o.parent.matrixWorld), To.setFromMatrixPosition(ih), e.setXYZ(C + 1, To.x, To.y, To.z), C += 2);
|
|
19531
19531
|
}
|
|
19532
19532
|
I.getAttribute("position").needsUpdate = !0, super.updateMatrixWorld(A);
|
|
19533
19533
|
}
|
|
@@ -19582,7 +19582,7 @@ class C2 extends LA {
|
|
|
19582
19582
|
this.light.updateWorldMatrix(!0, !1), A.lookAt(t2.setFromMatrixPosition(this.light.matrixWorld).negate());
|
|
19583
19583
|
}
|
|
19584
19584
|
}
|
|
19585
|
-
let dF = class extends
|
|
19585
|
+
let dF = class extends Vi {
|
|
19586
19586
|
constructor(A = 10, g = 10, I = 4473924, e = 8947848) {
|
|
19587
19587
|
I = new fA(I), e = new fA(e);
|
|
19588
19588
|
const t = g / 2, C = A / g, o = A / 2, s = [], B = [];
|
|
@@ -19600,7 +19600,7 @@ let dF = class extends zi {
|
|
|
19600
19600
|
this.geometry.dispose(), this.material.dispose();
|
|
19601
19601
|
}
|
|
19602
19602
|
};
|
|
19603
|
-
class o2 extends
|
|
19603
|
+
class o2 extends Vi {
|
|
19604
19604
|
constructor(A = 10, g = 16, I = 8, e = 64, t = 4473924, C = 8947848) {
|
|
19605
19605
|
t = new fA(t), C = new fA(C);
|
|
19606
19606
|
const o = [], s = [];
|
|
@@ -19660,7 +19660,7 @@ class uF extends LA {
|
|
|
19660
19660
|
}
|
|
19661
19661
|
}
|
|
19662
19662
|
const Ch = /* @__PURE__ */ new M(), RI = /* @__PURE__ */ new qa();
|
|
19663
|
-
class pF extends
|
|
19663
|
+
class pF extends Vi {
|
|
19664
19664
|
constructor(A) {
|
|
19665
19665
|
const g = new lg(), I = new jI({ color: 16777215, vertexColors: !0, toneMapped: !1 }), e = [], t = [], C = {};
|
|
19666
19666
|
o("n1", "n2"), o("n2", "n4"), o("n4", "n3"), o("n3", "n1"), o("f1", "f2"), o("f2", "f4"), o("f4", "f3"), o("f3", "f1"), o("n1", "f1"), o("n2", "f2"), o("n3", "f3"), o("n4", "f4"), o("p", "n1"), o("p", "n2"), o("p", "n3"), o("p", "n4"), o("u1", "u2"), o("u2", "u3"), o("u3", "u1"), o("c", "t"), o("p", "c"), o("cn1", "cn2"), o("cn3", "cn4"), o("cf1", "cf2"), o("cf3", "cf4");
|
|
@@ -19696,7 +19696,7 @@ function xI(i, A, g, I, e, t, C) {
|
|
|
19696
19696
|
}
|
|
19697
19697
|
}
|
|
19698
19698
|
const oh = /* @__PURE__ */ new je();
|
|
19699
|
-
class Cd extends
|
|
19699
|
+
class Cd extends Vi {
|
|
19700
19700
|
constructor(A, g = 16776960) {
|
|
19701
19701
|
const I = new Uint16Array([0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7]), e = new Float32Array(8 * 3), t = new lg();
|
|
19702
19702
|
t.setIndex(new Qg(I, 1)), t.setAttribute("position", new Qg(e, 3)), super(t, new jI({ color: g, toneMapped: !1 })), this.object = A, this.type = "BoxHelper", this.matrixAutoUpdate = !1, this.update();
|
|
@@ -19717,7 +19717,7 @@ class Cd extends zi {
|
|
|
19717
19717
|
this.geometry.dispose(), this.material.dispose();
|
|
19718
19718
|
}
|
|
19719
19719
|
}
|
|
19720
|
-
class s2 extends
|
|
19720
|
+
class s2 extends Vi {
|
|
19721
19721
|
constructor(A, g = 16776960) {
|
|
19722
19722
|
const I = new Uint16Array([0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7]), e = [1, 1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1], t = new lg();
|
|
19723
19723
|
t.setIndex(new Qg(I, 1)), t.setAttribute("position", new tg(e, 3)), super(t, new jI({ color: g, toneMapped: !1 })), this.box = A, this.type = "Box3Helper", this.geometry.computeBoundingSphere();
|
|
@@ -19775,7 +19775,7 @@ class n2 extends LA {
|
|
|
19775
19775
|
this.line.geometry.dispose(), this.line.material.dispose(), this.cone.geometry.dispose(), this.cone.material.dispose();
|
|
19776
19776
|
}
|
|
19777
19777
|
}
|
|
19778
|
-
let _a = class extends
|
|
19778
|
+
let _a = class extends Vi {
|
|
19779
19779
|
constructor(A = 1) {
|
|
19780
19780
|
const g = [
|
|
19781
19781
|
0,
|
|
@@ -20152,8 +20152,8 @@ const L2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
20152
20152
|
ConeBufferGeometry: w2,
|
|
20153
20153
|
ConeGeometry: NE,
|
|
20154
20154
|
CubeCamera: Uy,
|
|
20155
|
-
CubeReflectionMapping:
|
|
20156
|
-
CubeRefractionMapping:
|
|
20155
|
+
CubeReflectionMapping: ps,
|
|
20156
|
+
CubeRefractionMapping: ws,
|
|
20157
20157
|
CubeTexture: kE,
|
|
20158
20158
|
CubeTextureLoader: kT,
|
|
20159
20159
|
CubeUVReflectionMapping: Ja,
|
|
@@ -20181,8 +20181,8 @@ const L2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
20181
20181
|
DecrementStencilOp: Dm,
|
|
20182
20182
|
DecrementWrapStencilOp: um,
|
|
20183
20183
|
DefaultLoadingManager: nF,
|
|
20184
|
-
DepthFormat:
|
|
20185
|
-
DepthStencilFormat:
|
|
20184
|
+
DepthFormat: ls,
|
|
20185
|
+
DepthStencilFormat: fs,
|
|
20186
20186
|
DepthTexture: PD,
|
|
20187
20187
|
DirectionalLight: Id,
|
|
20188
20188
|
DirectionalLightHelper: uF,
|
|
@@ -20199,7 +20199,7 @@ const L2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
20199
20199
|
EllipseCurve: zD,
|
|
20200
20200
|
EqualDepth: la,
|
|
20201
20201
|
EqualStencilFunc: ym,
|
|
20202
|
-
EquirectangularReflectionMapping:
|
|
20202
|
+
EquirectangularReflectionMapping: Dt,
|
|
20203
20203
|
EquirectangularRefractionMapping: Da,
|
|
20204
20204
|
Euler: ee,
|
|
20205
20205
|
EventDispatcher: Se,
|
|
@@ -20252,7 +20252,7 @@ const L2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
20252
20252
|
InterpolateSmooth: jh,
|
|
20253
20253
|
InvertStencilOp: pm,
|
|
20254
20254
|
KeepStencilOp: hr,
|
|
20255
|
-
KeyframeTrack:
|
|
20255
|
+
KeyframeTrack: Zi,
|
|
20256
20256
|
LOD: Ky,
|
|
20257
20257
|
LatheBufferGeometry: k2,
|
|
20258
20258
|
LatheGeometry: xa,
|
|
@@ -20261,7 +20261,7 @@ const L2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
20261
20261
|
LessEqualDepth: ha,
|
|
20262
20262
|
LessEqualStencilFunc: Sm,
|
|
20263
20263
|
LessStencilFunc: fm,
|
|
20264
|
-
Light:
|
|
20264
|
+
Light: Rs,
|
|
20265
20265
|
LightProbe: ya,
|
|
20266
20266
|
Line: OI,
|
|
20267
20267
|
Line3: lF,
|
|
@@ -20270,7 +20270,7 @@ const L2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
20270
20270
|
LineCurve3: Zm,
|
|
20271
20271
|
LineDashedMaterial: tF,
|
|
20272
20272
|
LineLoop: Jy,
|
|
20273
|
-
LineSegments:
|
|
20273
|
+
LineSegments: Vi,
|
|
20274
20274
|
LinearEncoding: WI,
|
|
20275
20275
|
LinearFilter: Jg,
|
|
20276
20276
|
LinearInterpolant: zy,
|
|
@@ -20325,7 +20325,7 @@ const L2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
20325
20325
|
NormalBlending: Qo,
|
|
20326
20326
|
NotEqualDepth: wE,
|
|
20327
20327
|
NotEqualStencilFunc: km,
|
|
20328
|
-
NumberKeyframeTrack:
|
|
20328
|
+
NumberKeyframeTrack: ys,
|
|
20329
20329
|
Object3D: LA,
|
|
20330
20330
|
ObjectLoader: mT,
|
|
20331
20331
|
ObjectSpaceNormalMap: Em,
|
|
@@ -20342,7 +20342,7 @@ const L2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
20342
20342
|
PMREMGenerator: Ow,
|
|
20343
20343
|
Path: Zr,
|
|
20344
20344
|
PerspectiveCamera: Zg,
|
|
20345
|
-
Plane:
|
|
20345
|
+
Plane: Et,
|
|
20346
20346
|
PlaneBufferGeometry: wF,
|
|
20347
20347
|
PlaneGeometry: ve,
|
|
20348
20348
|
PlaneHelper: B2,
|
|
@@ -20398,7 +20398,7 @@ const L2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
20398
20398
|
Ray: yo,
|
|
20399
20399
|
Raycaster: Oa,
|
|
20400
20400
|
RectAreaLight: aF,
|
|
20401
|
-
RedFormat:
|
|
20401
|
+
RedFormat: ns,
|
|
20402
20402
|
RedIntegerFormat: Bm,
|
|
20403
20403
|
ReinhardToneMapping: hy,
|
|
20404
20404
|
RepeatWrapping: pt,
|
|
@@ -20421,7 +20421,7 @@ const L2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
20421
20421
|
Skeleton: va,
|
|
20422
20422
|
SkeletonHelper: e2,
|
|
20423
20423
|
SkinnedMesh: UE,
|
|
20424
|
-
Source:
|
|
20424
|
+
Source: as,
|
|
20425
20425
|
Sphere: NC,
|
|
20426
20426
|
SphereBufferGeometry: F2,
|
|
20427
20427
|
SphereGeometry: St,
|
|
@@ -20446,7 +20446,7 @@ const L2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
20446
20446
|
SubtractEquation: xR,
|
|
20447
20447
|
SubtractiveBlending: fw,
|
|
20448
20448
|
TOUCH: gB,
|
|
20449
|
-
TangentSpaceNormalMap:
|
|
20449
|
+
TangentSpaceNormalMap: Us,
|
|
20450
20450
|
TetrahedronBufferGeometry: N2,
|
|
20451
20451
|
TetrahedronGeometry: LE,
|
|
20452
20452
|
Texture: qg,
|
|
@@ -20471,7 +20471,7 @@ const L2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
20471
20471
|
UniformsLib: jA,
|
|
20472
20472
|
UniformsUtils: My,
|
|
20473
20473
|
UnsignedByteType: sI,
|
|
20474
|
-
UnsignedInt248Type:
|
|
20474
|
+
UnsignedInt248Type: hs,
|
|
20475
20475
|
UnsignedIntType: to,
|
|
20476
20476
|
UnsignedShort4444Type: im,
|
|
20477
20477
|
UnsignedShort5551Type: tm,
|
|
@@ -20480,7 +20480,7 @@ const L2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
20480
20480
|
Vector2: $,
|
|
20481
20481
|
Vector3: M,
|
|
20482
20482
|
Vector4: Bg,
|
|
20483
|
-
VectorKeyframeTrack:
|
|
20483
|
+
VectorKeyframeTrack: Ss,
|
|
20484
20484
|
VideoTexture: Om,
|
|
20485
20485
|
WebGL1Renderer: xm,
|
|
20486
20486
|
WebGL3DRenderTarget: PL,
|
|
@@ -20500,11 +20500,11 @@ const L2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
20500
20500
|
_SRGBAFormat: ql,
|
|
20501
20501
|
sRGBEncoding: Ag
|
|
20502
20502
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
20503
|
-
let ro = null,
|
|
20503
|
+
let ro = null, Qs = null, uC = null, ap = !1, Ok = null;
|
|
20504
20504
|
const fF = "📜", Xw = cA("console"), b2 = cA("noerrors");
|
|
20505
20505
|
Xw && yF();
|
|
20506
|
-
if (!b2 && (Xw ||
|
|
20507
|
-
|
|
20506
|
+
if (!b2 && (Xw || ji())) {
|
|
20507
|
+
ji() && console.log("Add the ?console query parameter to the url to show the debug console (on mobile it will automatically open for local development when your get errors)");
|
|
20508
20508
|
const i = sy();
|
|
20509
20509
|
if (i && (SF(), GF(!0), i)) {
|
|
20510
20510
|
const A = document.querySelector("needle-engine");
|
|
@@ -20547,7 +20547,7 @@ function H2() {
|
|
|
20547
20547
|
uC && (uC.removeAttribute("error"), uC.innerText = fF);
|
|
20548
20548
|
}
|
|
20549
20549
|
function T2() {
|
|
20550
|
-
|
|
20550
|
+
Qs && Qs[$w] && Qs[$w].appendChild(Qs);
|
|
20551
20551
|
}
|
|
20552
20552
|
function GF(i = !1) {
|
|
20553
20553
|
if (ro || ap)
|
|
@@ -20555,7 +20555,7 @@ function GF(i = !1) {
|
|
|
20555
20555
|
ap = !0;
|
|
20556
20556
|
const A = document.createElement("script");
|
|
20557
20557
|
A.src = "https://unpkg.com/vconsole@latest/dist/vconsole.min.js", A.onload = () => {
|
|
20558
|
-
if (ap = !1, SF(), ro = new window.VConsole(),
|
|
20558
|
+
if (ap = !1, SF(), ro = new window.VConsole(), Qs = kF(), Qs && (Qs[$w] = Qs.parentElement), ro.setSwitchPosition(20, 10), uC = O2(), uC) {
|
|
20559
20559
|
uC.innerText = fF, uC.addEventListener("click", H2);
|
|
20560
20560
|
const g = document.createElement("style"), I = 40;
|
|
20561
20561
|
g.innerHTML = `
|
|
@@ -20609,14 +20609,14 @@ function kF() {
|
|
|
20609
20609
|
const i = document.querySelector("#__vconsole");
|
|
20610
20610
|
return i || null;
|
|
20611
20611
|
}
|
|
20612
|
-
function
|
|
20613
|
-
|
|
20612
|
+
function ct(i, A = cs.Log) {
|
|
20613
|
+
Bs(A, i);
|
|
20614
20614
|
}
|
|
20615
|
-
function
|
|
20616
|
-
|
|
20615
|
+
function ko(i) {
|
|
20616
|
+
ct(i, cs.Warn);
|
|
20617
20617
|
}
|
|
20618
20618
|
function HE() {
|
|
20619
|
-
return
|
|
20619
|
+
return ji();
|
|
20620
20620
|
}
|
|
20621
20621
|
const TE = cA("gizmos"), We = cA("debugextension"), vl = cA("debugresolvedependencies"), _2 = ["/extensions/", "extensions/"], P2 = [
|
|
20622
20622
|
{ prefix: "/nodes/", dependencyName: "node" },
|
|
@@ -20839,7 +20839,7 @@ class Pa {
|
|
|
20839
20839
|
}
|
|
20840
20840
|
class $2 {
|
|
20841
20841
|
constructor() {
|
|
20842
|
-
Q(this, "isDevMode",
|
|
20842
|
+
Q(this, "isDevMode", ji());
|
|
20843
20843
|
Q(this, "cache", {});
|
|
20844
20844
|
}
|
|
20845
20845
|
/** only call when assigning values for the very first time */
|
|
@@ -20937,7 +20937,7 @@ function If(i, A, g) {
|
|
|
20937
20937
|
const gO = cA("noerrors");
|
|
20938
20938
|
function IO(i, A, g) {
|
|
20939
20939
|
var t;
|
|
20940
|
-
if (gO || !A ||
|
|
20940
|
+
if (gO || !A || ji() === !1 || !i || i.constructor && i.constructor[Z2] === !0)
|
|
20941
20941
|
return;
|
|
20942
20942
|
const I = (t = i.constructor) == null ? void 0 : t.name, e = Object.getOwnPropertyNames(A);
|
|
20943
20943
|
for (const C of e) {
|
|
@@ -20949,7 +20949,7 @@ function IO(i, A, g) {
|
|
|
20949
20949
|
const s = A[C];
|
|
20950
20950
|
if ((g == null ? void 0 : g.getDefinedKey(I, C)) === !1) {
|
|
20951
20951
|
const B = C.charAt(0).toUpperCase() + C.slice(1);
|
|
20952
|
-
g.getDefinedKey(I, B) && (
|
|
20952
|
+
g.getDefinedKey(I, B) && (Bs(cs.Warn, '<strong>Please rename</strong> "' + B + '" to "' + C + '" in ' + I), console.warn('Please use lowercase for field: "' + B + '" in ' + I, s, i));
|
|
20953
20953
|
continue;
|
|
20954
20954
|
}
|
|
20955
20955
|
if (s != null) {
|
|
@@ -20957,7 +20957,7 @@ function IO(i, A, g) {
|
|
|
20957
20957
|
if (s.could_not_resolve)
|
|
20958
20958
|
continue;
|
|
20959
20959
|
if (!(o !== void 0 && Object.keys(o).length > 1)) {
|
|
20960
|
-
|
|
20960
|
+
Bs(cs.Warn, `<strong>Missing serialization for object reference!</strong>
|
|
20961
20961
|
|
|
20962
20962
|
Please change to:
|
|
20963
20963
|
@serializable(Object3D)
|
|
@@ -20969,7 +20969,7 @@ in script ${I}.ts
|
|
|
20969
20969
|
}
|
|
20970
20970
|
}
|
|
20971
20971
|
if (typeof o == "string" && (s.endsWith(".gltf") || s.endsWith(".glb"))) {
|
|
20972
|
-
|
|
20972
|
+
Bs(cs.Warn, `<strong>Missing serialization for object reference!</strong>
|
|
20973
20973
|
|
|
20974
20974
|
Please change to:
|
|
20975
20975
|
@serializable(AssetReference)
|
|
@@ -21271,13 +21271,13 @@ class CO extends EventTarget {
|
|
|
21271
21271
|
return typeof g == "number" && (g = String.fromCharCode(g)), this.context.application.isVisible && this.context.application.hasFocus && ((I = this.keysPressed[g]) == null ? void 0 : I.pressed);
|
|
21272
21272
|
}
|
|
21273
21273
|
createPointerDown(g) {
|
|
21274
|
-
Nt &&
|
|
21274
|
+
Nt && ct("Create Pointer down"), this.onDown(g);
|
|
21275
21275
|
}
|
|
21276
21276
|
createPointerMove(g) {
|
|
21277
|
-
Nt &&
|
|
21277
|
+
Nt && ct("Create Pointer move"), this.onMove(g);
|
|
21278
21278
|
}
|
|
21279
21279
|
createPointerUp(g) {
|
|
21280
|
-
Nt &&
|
|
21280
|
+
Nt && ct("Create Pointer up"), this.onUp(g);
|
|
21281
21281
|
}
|
|
21282
21282
|
convertScreenspaceToRaycastSpace(g) {
|
|
21283
21283
|
g.x = (g.x - this.context.domX) / this.context.domWidth * 2 - 1, g.y = -((g.y - this.context.domY) / this.context.domHeight) * 2 + 1;
|
|
@@ -21334,7 +21334,7 @@ class CO extends EventTarget {
|
|
|
21334
21334
|
if (!(g.changedTouches.length <= 0) && this.canReceiveInput(g) !== !1)
|
|
21335
21335
|
for (let I = 0; I < g.changedTouches.length; I++) {
|
|
21336
21336
|
const e = g.changedTouches[I], t = this.getPointerIndex(e.identifier);
|
|
21337
|
-
Nt &&
|
|
21337
|
+
Nt && ct(`touch start #${t}, identifier:${e.identifier}`);
|
|
21338
21338
|
const C = { button: t, clientX: e.clientX, clientY: e.clientY, pointerType: "touch", source: g };
|
|
21339
21339
|
this.onDown(C);
|
|
21340
21340
|
}
|
|
@@ -21352,7 +21352,7 @@ class CO extends EventTarget {
|
|
|
21352
21352
|
const e = g.changedTouches[I], t = this.getPointerIndex(e.identifier);
|
|
21353
21353
|
if (!this.isNewEvent(g.timeStamp, t, this._pointerUpTimestamp))
|
|
21354
21354
|
continue;
|
|
21355
|
-
Nt &&
|
|
21355
|
+
Nt && ct(`touch up #${t}, identifier:${e.identifier}`);
|
|
21356
21356
|
const C = { button: t, clientX: e.clientX, clientY: e.clientY, pointerType: "touch", source: g };
|
|
21357
21357
|
this.onUp(C);
|
|
21358
21358
|
}
|
|
@@ -21408,7 +21408,7 @@ class CO extends EventTarget {
|
|
|
21408
21408
|
return;
|
|
21409
21409
|
}
|
|
21410
21410
|
if (Nt && console.log(g.pointerType, "UP", g.button), this.setPointerState(g.button, this._pointerPressed, !1), this.setPointerStateT(g.button, this._pointerEvent, g.source), this.setPointerState(g.button, this._pointerUp, !0), this.updatePointerPosition(g), !this._pointerPositionDown[g.button]) {
|
|
21411
|
-
Nt &&
|
|
21411
|
+
Nt && ko("Received pointer up event without matching down event for button: " + g.button), console.warn("Received pointer up event without matching down event for button: " + g.button);
|
|
21412
21412
|
return;
|
|
21413
21413
|
}
|
|
21414
21414
|
const e = g.clientX - this._pointerPositionDown[g.button].x, t = g.clientY - this._pointerPositionDown[g.button].y;
|
|
@@ -21714,7 +21714,7 @@ function ia(i, A) {
|
|
|
21714
21714
|
}
|
|
21715
21715
|
return !0;
|
|
21716
21716
|
}
|
|
21717
|
-
const
|
|
21717
|
+
const Ds = Symbol("isActiveInHierarchy"), Jn = "builtin_components", Xh = Symbol("originalGuid"), DO = cA("debugnewscripts"), dO = cA("debughierarchy"), mI = [];
|
|
21718
21718
|
function IE(i) {
|
|
21719
21719
|
if (!(i.new_scripts.length <= 0)) {
|
|
21720
21720
|
if (DO && console.log("Register new components", i.new_scripts.length, [...i.new_scripts], i.alias ? "element: " + i.alias : i.hash, i), i.new_scripts_pre_setup_callbacks.length > 0) {
|
|
@@ -21734,13 +21734,13 @@ function IE(i) {
|
|
|
21734
21734
|
}
|
|
21735
21735
|
g.context = i, ur(g.gameObject), NF(g, i);
|
|
21736
21736
|
} catch (g) {
|
|
21737
|
-
console.error(g),
|
|
21737
|
+
console.error(g), Cs(mI[A], i), mI.splice(A, 1), A--;
|
|
21738
21738
|
}
|
|
21739
21739
|
for (let A = 0; A < mI.length; A++)
|
|
21740
21740
|
try {
|
|
21741
21741
|
const g = mI[A];
|
|
21742
21742
|
if (g.destroyed) {
|
|
21743
|
-
|
|
21743
|
+
Cs(mI[A], i), mI.splice(A, 1), A--;
|
|
21744
21744
|
continue;
|
|
21745
21745
|
}
|
|
21746
21746
|
if (g.registering)
|
|
@@ -21751,7 +21751,7 @@ function IE(i) {
|
|
|
21751
21751
|
}
|
|
21752
21752
|
g.__internalAwake !== void 0 && (g.gameObject || console.error("MISSING GAMEOBJECT", g, g.gameObject), ur(g.gameObject), g.activeAndEnabled && ia(g.__internalAwake.bind(g)));
|
|
21753
21753
|
} catch (g) {
|
|
21754
|
-
console.error(g),
|
|
21754
|
+
console.error(g), Cs(mI[A], i), mI.splice(A, 1), A--;
|
|
21755
21755
|
}
|
|
21756
21756
|
for (let A = 0; A < mI.length; A++)
|
|
21757
21757
|
try {
|
|
@@ -21760,7 +21760,7 @@ function IE(i) {
|
|
|
21760
21760
|
continue;
|
|
21761
21761
|
g.__internalEnable !== void 0 && (g.enabled = !0, ia(g.__internalEnable.bind(g)));
|
|
21762
21762
|
} catch (g) {
|
|
21763
|
-
console.error(g),
|
|
21763
|
+
console.error(g), Cs(mI[A], i), mI.splice(A, 1), A--;
|
|
21764
21764
|
}
|
|
21765
21765
|
for (let A = 0; A < mI.length; A++)
|
|
21766
21766
|
try {
|
|
@@ -21769,7 +21769,7 @@ function IE(i) {
|
|
|
21769
21769
|
continue;
|
|
21770
21770
|
i.new_script_start.push(g);
|
|
21771
21771
|
} catch (g) {
|
|
21772
|
-
console.error(g),
|
|
21772
|
+
console.error(g), Cs(mI[A], i), mI.splice(A, 1), A--;
|
|
21773
21773
|
}
|
|
21774
21774
|
mI.length = 0;
|
|
21775
21775
|
for (const A of i.new_scripts_post_setup_callbacks)
|
|
@@ -21778,7 +21778,7 @@ function IE(i) {
|
|
|
21778
21778
|
}
|
|
21779
21779
|
}
|
|
21780
21780
|
function uO(i) {
|
|
21781
|
-
i && (i.__internalDisable(),
|
|
21781
|
+
i && (i.__internalDisable(), Cs(i, i.context));
|
|
21782
21782
|
}
|
|
21783
21783
|
function FF(i, A) {
|
|
21784
21784
|
for (let g = 0; g < i.new_script_start.length; g++)
|
|
@@ -21788,13 +21788,13 @@ function FF(i, A) {
|
|
|
21788
21788
|
continue;
|
|
21789
21789
|
ia(I.__internalAwake.bind(I)), ia(I.__internalEnable.bind(I)), ia(I.__internalStart.bind(I)), i.new_script_start.splice(g, 1), g--;
|
|
21790
21790
|
} catch (I) {
|
|
21791
|
-
console.error(I),
|
|
21791
|
+
console.error(I), Cs(i.new_script_start[g], i), i.new_script_start.splice(g, 1), g--;
|
|
21792
21792
|
}
|
|
21793
21793
|
}
|
|
21794
21794
|
function NF(i, A) {
|
|
21795
21795
|
A.scripts.indexOf(i) === -1 && (A.scripts.push(i), i.earlyUpdate && A.scripts_earlyUpdate.push(i), i.update && A.scripts_update.push(i), i.lateUpdate && A.scripts_lateUpdate.push(i), i.onBeforeRender && A.scripts_onBeforeRender.push(i), i.onAfterRender && A.scripts_onAfterRender.push(i), i.onPausedChanged && A.scripts_pausedChanged.push(i));
|
|
21796
21796
|
}
|
|
21797
|
-
function
|
|
21797
|
+
function Cs(i, A) {
|
|
21798
21798
|
WC(i, A.new_scripts), WC(i, A.new_script_start), WC(i, A.scripts), WC(i, A.scripts_earlyUpdate), WC(i, A.scripts_update), WC(i, A.scripts_lateUpdate), WC(i, A.scripts_onBeforeRender), WC(i, A.scripts_onAfterRender), WC(i, A.scripts_pausedChanged), A.stopAllCoroutinesFrom(i);
|
|
21799
21799
|
}
|
|
21800
21800
|
function WC(i, A) {
|
|
@@ -21812,9 +21812,9 @@ function KF(i, A, g, I = 0) {
|
|
|
21812
21812
|
if (I > 1e3)
|
|
21813
21813
|
return console.warn("Hierarchy is too deep (> 1000 level) - will abort updating active state"), !1;
|
|
21814
21814
|
const e = PE(i);
|
|
21815
|
-
A && (A = e, A && i.parent && (A = i.parent[
|
|
21816
|
-
const C = i[
|
|
21817
|
-
i[
|
|
21815
|
+
A && (A = e, A && i.parent && (A = i.parent[Ds]));
|
|
21816
|
+
const C = i[Ds] !== A;
|
|
21817
|
+
i[Ds] = A, C && (dO && console.warn("ACTIVE CHANGE", i.name, e, i.visible, A, "changed?" + C, i), g && pO(i, (s) => {
|
|
21818
21818
|
A ? s.enabled && (ia(s.__internalAwake.bind(s)), s.__didEnable = !0, s.onEnable()) : s.__didAwake && (s.__didEnable = !1, s.onDisable());
|
|
21819
21819
|
}));
|
|
21820
21820
|
let o = !0;
|
|
@@ -21838,7 +21838,7 @@ function ur(i) {
|
|
|
21838
21838
|
console.error("GO is null");
|
|
21839
21839
|
return;
|
|
21840
21840
|
}
|
|
21841
|
-
i[
|
|
21841
|
+
i[Ds] = A && I;
|
|
21842
21842
|
}
|
|
21843
21843
|
function pO(i, A) {
|
|
21844
21844
|
var g;
|
|
@@ -22214,7 +22214,7 @@ function ZO(i) {
|
|
|
22214
22214
|
const A = i.gameObject.userData.components.indexOf(i);
|
|
22215
22215
|
i.gameObject.userData.components.splice(A, 1);
|
|
22216
22216
|
}
|
|
22217
|
-
i.__internalDisable && i.__internalDisable(), i.onDestroy && i.onDestroy(),
|
|
22217
|
+
i.__internalDisable && i.__internalDisable(), i.onDestroy && i.onDestroy(), Cs(i, i.context ?? bg.Current), i.__internalDestroy(), i.gameObject = null;
|
|
22218
22218
|
}
|
|
22219
22219
|
let gM = !1;
|
|
22220
22220
|
function OF(i, A, g) {
|
|
@@ -22310,7 +22310,7 @@ function zO(i, A, g) {
|
|
|
22310
22310
|
return null;
|
|
22311
22311
|
for (const e in I.children) {
|
|
22312
22312
|
const t = I.children[e];
|
|
22313
|
-
if (g === !1 && t[
|
|
22313
|
+
if (g === !1 && t[Ds] === !1)
|
|
22314
22314
|
continue;
|
|
22315
22315
|
if (t.constructor == i)
|
|
22316
22316
|
return t;
|
|
@@ -22475,8 +22475,7 @@ function PF(i, A, g) {
|
|
|
22475
22475
|
const nf = /* @__PURE__ */ new WeakMap();
|
|
22476
22476
|
function WF(i, A) {
|
|
22477
22477
|
let g = nf.get(i);
|
|
22478
|
-
|
|
22479
|
-
return g.get(A);
|
|
22478
|
+
return g ? g.get(A) : null;
|
|
22480
22479
|
}
|
|
22481
22480
|
function $O(i, A, g) {
|
|
22482
22481
|
let I = nf.get(i);
|
|
@@ -22663,7 +22662,7 @@ function el(i, A) {
|
|
|
22663
22662
|
return typeof A == "number" && (A = A > 0.5), i.visible = A, i.visible;
|
|
22664
22663
|
}
|
|
22665
22664
|
function B_(i) {
|
|
22666
|
-
return i[
|
|
22665
|
+
return i[Ds] || ES(i);
|
|
22667
22666
|
}
|
|
22668
22667
|
function n_(i, A) {
|
|
22669
22668
|
i[_F] = A;
|
|
@@ -22944,9 +22943,9 @@ function lp(i, A) {
|
|
|
22944
22943
|
}
|
|
22945
22944
|
}
|
|
22946
22945
|
const rd = Object.freeze({ X: 0, 0: "X", Y: 1, 1: "Y", Z: 2, 2: "Z", AngX: 3, 3: "AngX", AngY: 4, 4: "AngY", AngZ: 5, 5: "AngZ" });
|
|
22947
|
-
class
|
|
22946
|
+
class Gs {
|
|
22948
22947
|
static __wrap(A) {
|
|
22949
|
-
const g = Object.create(
|
|
22948
|
+
const g = Object.create(Gs.prototype);
|
|
22950
22949
|
return g.ptr = A, g;
|
|
22951
22950
|
}
|
|
22952
22951
|
__destroy_into_raw() {
|
|
@@ -22959,7 +22958,7 @@ class Ss {
|
|
|
22959
22958
|
}
|
|
22960
22959
|
constructor() {
|
|
22961
22960
|
const A = m.rawbroadphase_new();
|
|
22962
|
-
return
|
|
22961
|
+
return Gs.__wrap(A);
|
|
22963
22962
|
}
|
|
22964
22963
|
}
|
|
22965
22964
|
class Ga {
|
|
@@ -23476,7 +23475,7 @@ class hS {
|
|
|
23476
23475
|
}
|
|
23477
23476
|
takeBroadPhase() {
|
|
23478
23477
|
const A = m.rawdeserializedworld_takeBroadPhase(this.ptr);
|
|
23479
|
-
return A === 0 ? void 0 :
|
|
23478
|
+
return A === 0 ? void 0 : Gs.__wrap(A);
|
|
23480
23479
|
}
|
|
23481
23480
|
takeNarrowPhase() {
|
|
23482
23481
|
const A = m.rawdeserializedworld_takeNarrowPhase(this.ptr);
|
|
@@ -23534,9 +23533,9 @@ class tE {
|
|
|
23534
23533
|
m.raweventqueue_clear(this.ptr);
|
|
23535
23534
|
}
|
|
23536
23535
|
}
|
|
23537
|
-
class
|
|
23536
|
+
class ht {
|
|
23538
23537
|
static __wrap(A) {
|
|
23539
|
-
const g = Object.create(
|
|
23538
|
+
const g = Object.create(ht.prototype);
|
|
23540
23539
|
return g.ptr = A, g;
|
|
23541
23540
|
}
|
|
23542
23541
|
__destroy_into_raw() {
|
|
@@ -23550,22 +23549,22 @@ class ct {
|
|
|
23550
23549
|
static spherical(A, g) {
|
|
23551
23550
|
P(A, QA), P(g, QA);
|
|
23552
23551
|
const I = m.rawgenericjoint_spherical(A.ptr, g.ptr);
|
|
23553
|
-
return
|
|
23552
|
+
return ht.__wrap(I);
|
|
23554
23553
|
}
|
|
23555
23554
|
static prismatic(A, g, I, e, t, C) {
|
|
23556
23555
|
P(A, QA), P(g, QA), P(I, QA);
|
|
23557
23556
|
const o = m.rawgenericjoint_prismatic(A.ptr, g.ptr, I.ptr, e, t, C);
|
|
23558
|
-
return o === 0 ? void 0 :
|
|
23557
|
+
return o === 0 ? void 0 : ht.__wrap(o);
|
|
23559
23558
|
}
|
|
23560
23559
|
static fixed(A, g, I, e) {
|
|
23561
23560
|
P(A, QA), P(g, Hg), P(I, QA), P(e, Hg);
|
|
23562
23561
|
const t = m.rawgenericjoint_fixed(A.ptr, g.ptr, I.ptr, e.ptr);
|
|
23563
|
-
return
|
|
23562
|
+
return ht.__wrap(t);
|
|
23564
23563
|
}
|
|
23565
23564
|
static revolute(A, g, I) {
|
|
23566
23565
|
P(A, QA), P(g, QA), P(I, QA);
|
|
23567
23566
|
const e = m.rawgenericjoint_revolute(A.ptr, g.ptr, I.ptr);
|
|
23568
|
-
return e === 0 ? void 0 :
|
|
23567
|
+
return e === 0 ? void 0 : ht.__wrap(e);
|
|
23569
23568
|
}
|
|
23570
23569
|
}
|
|
23571
23570
|
class UC {
|
|
@@ -23647,7 +23646,7 @@ class UC {
|
|
|
23647
23646
|
return UC.__wrap(A);
|
|
23648
23647
|
}
|
|
23649
23648
|
createJoint(A, g, I, e) {
|
|
23650
|
-
return P(A,
|
|
23649
|
+
return P(A, ht), m.rawimpulsejointset_createJoint(this.ptr, A.ptr, g, I, e);
|
|
23651
23650
|
}
|
|
23652
23651
|
remove(A, g) {
|
|
23653
23652
|
m.rawimpulsejointset_remove(this.ptr, A, g);
|
|
@@ -23822,7 +23821,7 @@ let vB = class rf {
|
|
|
23822
23821
|
return rf.__wrap(A);
|
|
23823
23822
|
}
|
|
23824
23823
|
createJoint(A, g, I, e) {
|
|
23825
|
-
return P(A,
|
|
23824
|
+
return P(A, ht), m.rawmultibodyjointset_createJoint(this.ptr, A.ptr, g, I, e);
|
|
23826
23825
|
}
|
|
23827
23826
|
remove(A, g) {
|
|
23828
23827
|
m.rawmultibodyjointset_remove(this.ptr, A, g);
|
|
@@ -23894,10 +23893,10 @@ class jl {
|
|
|
23894
23893
|
return jl.__wrap(A);
|
|
23895
23894
|
}
|
|
23896
23895
|
step(A, g, I, e, t, C, o, s, B, n) {
|
|
23897
|
-
P(A, QA), P(g, CE), P(I, jt), P(e,
|
|
23896
|
+
P(A, QA), P(g, CE), P(I, jt), P(e, Gs), P(t, po), P(C, HI), P(o, YI), P(s, UC), P(B, vB), P(n, Ga), m.rawphysicspipeline_step(this.ptr, A.ptr, g.ptr, I.ptr, e.ptr, t.ptr, C.ptr, o.ptr, s.ptr, B.ptr, n.ptr);
|
|
23898
23897
|
}
|
|
23899
23898
|
stepWithEvents(A, g, I, e, t, C, o, s, B, n, r, a, E, c) {
|
|
23900
|
-
P(A, QA), P(g, CE), P(I, jt), P(e,
|
|
23899
|
+
P(A, QA), P(g, CE), P(I, jt), P(e, Gs), P(t, po), P(C, HI), P(o, YI), P(s, UC), P(B, vB), P(n, Ga), P(r, tE), m.rawphysicspipeline_stepWithEvents(this.ptr, A.ptr, g.ptr, I.ptr, e.ptr, t.ptr, C.ptr, o.ptr, s.ptr, B.ptr, n.ptr, r.ptr, Ae(a), Ae(E), Ae(c));
|
|
23901
23900
|
}
|
|
23902
23901
|
}
|
|
23903
23902
|
class Zl {
|
|
@@ -24401,7 +24400,7 @@ class Vl {
|
|
|
24401
24400
|
return Vl.__wrap(A);
|
|
24402
24401
|
}
|
|
24403
24402
|
serializeAll(A, g, I, e, t, C, o, s, B) {
|
|
24404
|
-
return P(A, QA), P(g, CE), P(I, jt), P(e,
|
|
24403
|
+
return P(A, QA), P(g, CE), P(I, jt), P(e, Gs), P(t, po), P(C, HI), P(o, YI), P(s, UC), P(B, vB), _l(m.rawserializationpipeline_serializeAll(this.ptr, A.ptr, g.ptr, I.ptr, e.ptr, t.ptr, C.ptr, o.ptr, s.ptr, B.ptr));
|
|
24405
24404
|
}
|
|
24406
24405
|
deserializeAll(A) {
|
|
24407
24406
|
const g = m.rawserializationpipeline_deserializeAll(this.ptr, Ae(A));
|
|
@@ -25245,7 +25244,7 @@ class BN {
|
|
|
25245
25244
|
})(oe || (oe = {})), function(i) {
|
|
25246
25245
|
i[i.AccelerationBased = 0] = "AccelerationBased", i[i.ForceBased = 1] = "ForceBased";
|
|
25247
25246
|
}(cf || (cf = {}));
|
|
25248
|
-
class
|
|
25247
|
+
class ks {
|
|
25249
25248
|
constructor(A, g, I) {
|
|
25250
25249
|
this.rawSet = A, this.bodySet = g, this.handle = I;
|
|
25251
25250
|
}
|
|
@@ -25260,7 +25259,7 @@ class Gs {
|
|
|
25260
25259
|
case oe.Spherical:
|
|
25261
25260
|
return new rN(A, g, I);
|
|
25262
25261
|
default:
|
|
25263
|
-
return new
|
|
25262
|
+
return new ks(A, g, I);
|
|
25264
25263
|
}
|
|
25265
25264
|
}
|
|
25266
25265
|
finalizeDeserialization(A) {
|
|
@@ -25305,7 +25304,7 @@ class Gs {
|
|
|
25305
25304
|
return this.rawSet.jointContactsEnabled(this.handle);
|
|
25306
25305
|
}
|
|
25307
25306
|
}
|
|
25308
|
-
class DS extends
|
|
25307
|
+
class DS extends ks {
|
|
25309
25308
|
limitsEnabled() {
|
|
25310
25309
|
return this.rawSet.jointLimitsEnabled(this.handle, this.rawAxis());
|
|
25311
25310
|
}
|
|
@@ -25331,7 +25330,7 @@ class DS extends Gs {
|
|
|
25331
25330
|
this.rawSet.jointConfigureMotor(this.handle, this.rawAxis(), A, g, I, e);
|
|
25332
25331
|
}
|
|
25333
25332
|
}
|
|
25334
|
-
class nN extends
|
|
25333
|
+
class nN extends ks {
|
|
25335
25334
|
}
|
|
25336
25335
|
class aN extends DS {
|
|
25337
25336
|
rawAxis() {
|
|
@@ -25343,7 +25342,7 @@ class QN extends DS {
|
|
|
25343
25342
|
return rd.AngX;
|
|
25344
25343
|
}
|
|
25345
25344
|
}
|
|
25346
|
-
class rN extends
|
|
25345
|
+
class rN extends ks {
|
|
25347
25346
|
}
|
|
25348
25347
|
class uB {
|
|
25349
25348
|
constructor() {
|
|
@@ -25369,16 +25368,16 @@ class uB {
|
|
|
25369
25368
|
switch (this.jointType) {
|
|
25370
25369
|
case oe.Fixed:
|
|
25371
25370
|
let s = Kg.intoRaw(this.frame1), B = Kg.intoRaw(this.frame2);
|
|
25372
|
-
g =
|
|
25371
|
+
g = ht.fixed(I, s, e, B), s.free(), B.free();
|
|
25373
25372
|
break;
|
|
25374
25373
|
case oe.Prismatic:
|
|
25375
|
-
A = CA.intoRaw(this.axis), this.limitsEnabled && (t = !0, C = this.limits[0], o = this.limits[1]), g =
|
|
25374
|
+
A = CA.intoRaw(this.axis), this.limitsEnabled && (t = !0, C = this.limits[0], o = this.limits[1]), g = ht.prismatic(I, e, A, t, C, o), A.free();
|
|
25376
25375
|
break;
|
|
25377
25376
|
case oe.Spherical:
|
|
25378
|
-
g =
|
|
25377
|
+
g = ht.spherical(I, e);
|
|
25379
25378
|
break;
|
|
25380
25379
|
case oe.Revolute:
|
|
25381
|
-
A = CA.intoRaw(this.axis), g =
|
|
25380
|
+
A = CA.intoRaw(this.axis), g = ht.revolute(I, e, A), A.free();
|
|
25382
25381
|
}
|
|
25383
25382
|
return I.free(), e.free(), g;
|
|
25384
25383
|
}
|
|
@@ -25386,7 +25385,7 @@ class uB {
|
|
|
25386
25385
|
class EN {
|
|
25387
25386
|
constructor(A) {
|
|
25388
25387
|
this.raw = A || new UC(), this.map = new dd(), A && A.forEachJointHandle((g) => {
|
|
25389
|
-
this.map.set(g,
|
|
25388
|
+
this.map.set(g, ks.newTyped(A, null, g));
|
|
25390
25389
|
});
|
|
25391
25390
|
}
|
|
25392
25391
|
free() {
|
|
@@ -25398,7 +25397,7 @@ class EN {
|
|
|
25398
25397
|
createJoint(A, g, I, e, t) {
|
|
25399
25398
|
const C = g.intoRaw(), o = this.raw.createJoint(C, I, e, t);
|
|
25400
25399
|
C.free();
|
|
25401
|
-
let s =
|
|
25400
|
+
let s = ks.newTyped(this.raw, A, o);
|
|
25402
25401
|
return this.map.set(o, s), s;
|
|
25403
25402
|
}
|
|
25404
25403
|
remove(A, g) {
|
|
@@ -25426,7 +25425,7 @@ class EN {
|
|
|
25426
25425
|
return this.map.getAll();
|
|
25427
25426
|
}
|
|
25428
25427
|
}
|
|
25429
|
-
class
|
|
25428
|
+
class Ms {
|
|
25430
25429
|
constructor(A, g) {
|
|
25431
25430
|
this.rawSet = A, this.handle = g;
|
|
25432
25431
|
}
|
|
@@ -25441,7 +25440,7 @@ class ks {
|
|
|
25441
25440
|
case oe.Spherical:
|
|
25442
25441
|
return new DN(A, g);
|
|
25443
25442
|
default:
|
|
25444
|
-
return new
|
|
25443
|
+
return new Ms(A, g);
|
|
25445
25444
|
}
|
|
25446
25445
|
}
|
|
25447
25446
|
isValid() {
|
|
@@ -25454,9 +25453,9 @@ class ks {
|
|
|
25454
25453
|
return this.rawSet.jointContactsEnabled(this.handle);
|
|
25455
25454
|
}
|
|
25456
25455
|
}
|
|
25457
|
-
class dS extends
|
|
25456
|
+
class dS extends Ms {
|
|
25458
25457
|
}
|
|
25459
|
-
class cN extends
|
|
25458
|
+
class cN extends Ms {
|
|
25460
25459
|
}
|
|
25461
25460
|
class hN extends dS {
|
|
25462
25461
|
rawAxis() {
|
|
@@ -25468,12 +25467,12 @@ class lN extends dS {
|
|
|
25468
25467
|
return rd.AngX;
|
|
25469
25468
|
}
|
|
25470
25469
|
}
|
|
25471
|
-
class DN extends
|
|
25470
|
+
class DN extends Ms {
|
|
25472
25471
|
}
|
|
25473
25472
|
class dN {
|
|
25474
25473
|
constructor(A) {
|
|
25475
25474
|
this.raw = A || new vB(), this.map = new dd(), A && A.forEachJointHandle((g) => {
|
|
25476
|
-
this.map.set(g,
|
|
25475
|
+
this.map.set(g, Ms.newTyped(this.raw, g));
|
|
25477
25476
|
});
|
|
25478
25477
|
}
|
|
25479
25478
|
free() {
|
|
@@ -25482,7 +25481,7 @@ class dN {
|
|
|
25482
25481
|
createJoint(A, g, I, e) {
|
|
25483
25482
|
const t = A.intoRaw(), C = this.raw.createJoint(t, g, I, e);
|
|
25484
25483
|
t.free();
|
|
25485
|
-
let o =
|
|
25484
|
+
let o = Ms.newTyped(this.raw, C);
|
|
25486
25485
|
return this.map.set(C, o), o;
|
|
25487
25486
|
}
|
|
25488
25487
|
remove(A, g) {
|
|
@@ -25534,7 +25533,7 @@ class pN {
|
|
|
25534
25533
|
}
|
|
25535
25534
|
class wN {
|
|
25536
25535
|
constructor(A) {
|
|
25537
|
-
this.raw = A || new
|
|
25536
|
+
this.raw = A || new Gs();
|
|
25538
25537
|
}
|
|
25539
25538
|
free() {
|
|
25540
25539
|
this.raw.free(), this.raw = void 0;
|
|
@@ -26655,14 +26654,14 @@ for (var D_ = { byteLength: function(i) {
|
|
|
26655
26654
|
return 3 * (n + r) / 4 - r;
|
|
26656
26655
|
}(0, e, t)), o = 0, s = t > 0 ? e - 4 : e;
|
|
26657
26656
|
for (g = 0; g < s; g += 4)
|
|
26658
|
-
A =
|
|
26659
|
-
return t === 2 && (A =
|
|
26657
|
+
A = nt[i.charCodeAt(g)] << 18 | nt[i.charCodeAt(g + 1)] << 12 | nt[i.charCodeAt(g + 2)] << 6 | nt[i.charCodeAt(g + 3)], C[o++] = A >> 16 & 255, C[o++] = A >> 8 & 255, C[o++] = 255 & A;
|
|
26658
|
+
return t === 2 && (A = nt[i.charCodeAt(g)] << 2 | nt[i.charCodeAt(g + 1)] >> 4, C[o++] = 255 & A), t === 1 && (A = nt[i.charCodeAt(g)] << 10 | nt[i.charCodeAt(g + 1)] << 4 | nt[i.charCodeAt(g + 2)] >> 2, C[o++] = A >> 8 & 255, C[o++] = 255 & A), C;
|
|
26660
26659
|
}, fromByteArray: function(i) {
|
|
26661
26660
|
for (var A, g = i.length, I = g % 3, e = [], t = 16383, C = 0, o = g - I; C < o; C += t)
|
|
26662
26661
|
e.push(p_(i, C, C + t > o ? o : C + t));
|
|
26663
26662
|
return I === 1 ? (A = i[g - 1], e.push(rC[A >> 2] + rC[A << 4 & 63] + "==")) : I === 2 && (A = (i[g - 2] << 8) + i[g - 1], e.push(rC[A >> 10] + rC[A >> 4 & 63] + rC[A << 2 & 63] + "=")), e.join("");
|
|
26664
|
-
} }, rC = [],
|
|
26665
|
-
rC[yn] = Dp[yn],
|
|
26663
|
+
} }, rC = [], nt = [], d_ = typeof Uint8Array < "u" ? Uint8Array : Array, Dp = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", yn = 0, u_ = Dp.length; yn < u_; ++yn)
|
|
26664
|
+
rC[yn] = Dp[yn], nt[Dp.charCodeAt(yn)] = yn;
|
|
26666
26665
|
function oM(i) {
|
|
26667
26666
|
var A = i.length;
|
|
26668
26667
|
if (A % 4 > 0)
|
|
@@ -26692,14 +26691,14 @@ function f_() {
|
|
|
26692
26691
|
}
|
|
26693
26692
|
}();
|
|
26694
26693
|
}
|
|
26695
|
-
|
|
26694
|
+
nt["-".charCodeAt(0)] = 62, nt["_".charCodeAt(0)] = 63;
|
|
26696
26695
|
var gC = Object.freeze({ __proto__: null, version: f_, Vector3: oN, VectorOps: CA, Quaternion: Ef, RotationOps: Kg, get RigidBodyType() {
|
|
26697
26696
|
return ui;
|
|
26698
26697
|
}, RigidBody: Df, RigidBodyDesc: BC, RigidBodySet: sN, IntegrationParameters: BN, get JointType() {
|
|
26699
26698
|
return oe;
|
|
26700
26699
|
}, get MotorModel() {
|
|
26701
26700
|
return cf;
|
|
26702
|
-
}, ImpulseJoint:
|
|
26701
|
+
}, ImpulseJoint: ks, UnitImpulseJoint: DS, FixedImpulseJoint: nN, PrismaticImpulseJoint: aN, RevoluteImpulseJoint: QN, SphericalImpulseJoint: rN, JointData: uB, ImpulseJointSet: EN, MultibodyJoint: Ms, UnitMultibodyJoint: dS, FixedMultibodyJoint: cN, PrismaticMultibodyJoint: hN, RevoluteMultibodyJoint: lN, SphericalMultibodyJoint: DN, MultibodyJointSet: dN, get CoefficientCombineRule() {
|
|
26703
26702
|
return Ki;
|
|
26704
26703
|
}, CCDSolver: uN, IslandManager: pN, BroadPhase: wN, NarrowPhase: fN, TempContactManifold: yN, Shape: Ge, get ShapeType() {
|
|
26705
26704
|
return Pg;
|
|
@@ -26718,37 +26717,37 @@ var gC = Object.freeze({ __proto__: null, version: f_, Vector3: oN, VectorOps: C
|
|
|
26718
26717
|
}, DebugRenderBuffers: MN, DebugRenderPipeline: UN, get QueryFilterFlags() {
|
|
26719
26718
|
return $l;
|
|
26720
26719
|
}, QueryPipeline: kN, init: w_ }), ZC = /* @__PURE__ */ ((i) => (i[i.Average = 0] = "Average", i[i.Multiply = 1] = "Multiply", i[i.Minimum = 2] = "Minimum", i[i.Maximum = 3] = "Maximum", i))(ZC || {}), KS = /* @__PURE__ */ ((i) => (i[i.Discrete = 0] = "Discrete", i[i.Continuous = 1] = "Continuous", i))(KS || {}), XI = /* @__PURE__ */ ((i) => (i[i.None = 0] = "None", i[i.FreezePositionX = 2] = "FreezePositionX", i[i.FreezePositionY = 4] = "FreezePositionY", i[i.FreezePositionZ = 8] = "FreezePositionZ", i[i.FreezePosition = 14] = "FreezePosition", i[i.FreezeRotationX = 16] = "FreezeRotationX", i[i.FreezeRotationY = 32] = "FreezeRotationY", i[i.FreezeRotationZ = 64] = "FreezeRotationZ", i[i.FreezeRotation = 112] = "FreezeRotation", i[i.FreezeAll = 126] = "FreezeAll", i))(XI || {}), ir = /* @__PURE__ */ ((i) => (i[i.None = 0] = "None", i[i.X = 2] = "X", i[i.Y = 4] = "Y", i[i.Z = 8] = "Z", i[i.All = -1] = "All", i))(ir || {});
|
|
26721
|
-
const Ai = new M(), sM = new M(), BM = new UA(),
|
|
26720
|
+
const Ai = new M(), sM = new M(), BM = new UA(), Oo = 8947848;
|
|
26722
26721
|
class oo {
|
|
26723
|
-
static DrawRay(A, g, I =
|
|
26722
|
+
static DrawRay(A, g, I = Oo, e = 0, t = !0) {
|
|
26724
26723
|
const C = si.getLine(e), o = C.geometry.getAttribute("position");
|
|
26725
26724
|
o.setXYZ(0, A.x, A.y, A.z), Ai.set(g.x, g.y, g.z).multiplyScalar(999999999), o.setXYZ(1, A.x + Ai.x, A.y + Ai.y, A.z + Ai.z), o.needsUpdate = !0, C.material.color.set(I), C.material.depthTest = t;
|
|
26726
26725
|
}
|
|
26727
|
-
static DrawDirection(A, g, I =
|
|
26726
|
+
static DrawDirection(A, g, I = Oo, e = 0, t = !0, C = 1) {
|
|
26728
26727
|
const o = si.getLine(e), s = o.geometry.getAttribute("position");
|
|
26729
26728
|
s.setXYZ(0, A.x, A.y, A.z), g.w !== void 0 ? (Ai.set(0, 0, -C), BM.set(g.x, g.y, g.z, g.w), Ai.applyQuaternion(BM)) : (Ai.set(g.x, g.y, g.z), Ai.multiplyScalar(C)), s.setXYZ(1, A.x + Ai.x, A.y + Ai.y, A.z + Ai.z), s.needsUpdate = !0, o.material.color.set(I), o.material.depthTest = t;
|
|
26730
26729
|
}
|
|
26731
|
-
static DrawLine(A, g, I =
|
|
26730
|
+
static DrawLine(A, g, I = Oo, e = 0, t = !0) {
|
|
26732
26731
|
const C = si.getLine(e), o = C.geometry.getAttribute("position");
|
|
26733
26732
|
o.setXYZ(0, A.x, A.y, A.z), o.setXYZ(1, g.x, g.y, g.z), o.needsUpdate = !0, C.material.color.set(I), C.material.depthTest = t;
|
|
26734
26733
|
}
|
|
26735
|
-
static DrawWireSphere(A, g, I =
|
|
26734
|
+
static DrawWireSphere(A, g, I = Oo, e = 0, t = !0) {
|
|
26736
26735
|
const C = si.getSphere(g, e, !0);
|
|
26737
26736
|
AE(C, A.x, A.y, A.z), C.material.color.set(I), C.material.depthTest = t;
|
|
26738
26737
|
}
|
|
26739
|
-
static DrawSphere(A, g, I =
|
|
26738
|
+
static DrawSphere(A, g, I = Oo, e = 0, t = !0) {
|
|
26740
26739
|
const C = si.getSphere(g, e, !1);
|
|
26741
26740
|
AE(C, A.x, A.y, A.z), C.material.color.set(I), C.material.depthTest = t;
|
|
26742
26741
|
}
|
|
26743
|
-
static DrawBox(A, g, I =
|
|
26742
|
+
static DrawBox(A, g, I = Oo, e = 0, t = !0) {
|
|
26744
26743
|
const C = si.getBox(e);
|
|
26745
26744
|
C.position.set(A.x, A.y, A.z), C.scale.set(g.x, g.y, g.z), C.material.color.set(I), C.material.depthTest = t, C.material.wireframe = !0;
|
|
26746
26745
|
}
|
|
26747
|
-
static DrawBox3(A, g =
|
|
26746
|
+
static DrawBox3(A, g = Oo, I = 0, e = !0) {
|
|
26748
26747
|
const t = si.getBox(I);
|
|
26749
26748
|
t.position.copy(A.getCenter(Ai)), t.scale.copy(A.getSize(Ai)), t.material.color.set(g), t.material.depthTest = e, t.material.wireframe = !0;
|
|
26750
26749
|
}
|
|
26751
|
-
static DrawArrow(A, g, I =
|
|
26750
|
+
static DrawArrow(A, g, I = Oo, e = 0, t = !0, C = !1) {
|
|
26752
26751
|
const o = si.getArrowHead(e);
|
|
26753
26752
|
o.position.set(g.x, g.y, g.z), o.quaternion.setFromUnitVectors(this._up.set(0, 1, 0), Ai.set(g.x, g.y, g.z).sub(sM.set(A.x, A.y, A.z)).normalize());
|
|
26754
26753
|
const B = Ai.set(g.x, g.y, g.z).sub(sM.set(A.x, A.y, A.z)).length() * 0.1;
|
|
@@ -26759,7 +26758,7 @@ Q(oo, "_up", new M(0, 1, 0));
|
|
|
26759
26758
|
const y_ = new oI(1, 1, 1);
|
|
26760
26759
|
function FN(i = null) {
|
|
26761
26760
|
const A = new fA(i ?? 14540253), g = new Oy(y_);
|
|
26762
|
-
return new
|
|
26761
|
+
return new Vi(g, new jI({ color: A }));
|
|
26763
26762
|
}
|
|
26764
26763
|
const nM = Symbol("GizmoCache");
|
|
26765
26764
|
class si {
|
|
@@ -26808,7 +26807,7 @@ class si {
|
|
|
26808
26807
|
}
|
|
26809
26808
|
}
|
|
26810
26809
|
Q(si, "linesCache", []), Q(si, "spheresCache", []), Q(si, "boxesCache", []), Q(si, "arrowHeadsCache", []), Q(si, "timedObjectsBuffer", new Array()), Q(si, "timesBuffer", new Array()), Q(si, "contextPostRenderCallbacks", /* @__PURE__ */ new Map());
|
|
26811
|
-
const IC = cA("debugphysics"), dp = cA("debugphysicscolliders"), up = cA("debugcollisions"), S_ = cA("showcolliders"), G_ = cA("nophysics"),
|
|
26810
|
+
const IC = cA("debugphysics"), dp = cA("debugphysicscolliders"), up = cA("debugcollisions"), S_ = cA("showcolliders"), G_ = cA("nophysics"), Is = Symbol("needle component"), tt = Symbol("physics body"), k_ = Symbol("rigidbody"), aM = new wt();
|
|
26812
26811
|
class JC {
|
|
26813
26812
|
constructor() {
|
|
26814
26813
|
Q(this, "ray");
|
|
@@ -26956,7 +26955,7 @@ const QB = class {
|
|
|
26956
26955
|
let e = A.targets;
|
|
26957
26956
|
e || (e = this.targetBuffer, e[0] = this.context.scene);
|
|
26958
26957
|
let t = A.results;
|
|
26959
|
-
t || (this.defaultRaycastOptions.results || (this.defaultRaycastOptions.results = new Array()), t = this.defaultRaycastOptions.results), A.layerMask !== void 0 ?
|
|
26958
|
+
t || (this.defaultRaycastOptions.results || (this.defaultRaycastOptions.results = new Array()), t = this.defaultRaycastOptions.results), A.layerMask !== void 0 ? A.layerMask instanceof wt ? I.layers.mask = A.layerMask.mask : I.layers.mask = A.layerMask : (I.layers.enableAll(), I.layers.disable(2)), t.length = 0, I.intersectObjects(e, A.recursive, t);
|
|
26960
26959
|
const C = A.ignore;
|
|
26961
26960
|
return C !== void 0 && C.length > 0 && (t = t.filter((o) => !C.includes(o.object))), t;
|
|
26962
26961
|
}
|
|
@@ -26974,7 +26973,7 @@ const QB = class {
|
|
|
26974
26973
|
const C = (o = this.world) == null ? void 0 : o.castRay(t, I, e);
|
|
26975
26974
|
if (C) {
|
|
26976
26975
|
const s = t.pointAt(C.toi), B = this.raycastVectorsBuffer.get();
|
|
26977
|
-
return B.set(s.x, s.y, s.z), { point: B, collider: C.collider[
|
|
26976
|
+
return B.set(s.x, s.y, s.z), { point: B, collider: C.collider[Is] };
|
|
26978
26977
|
}
|
|
26979
26978
|
return null;
|
|
26980
26979
|
}
|
|
@@ -27011,14 +27010,14 @@ const QB = class {
|
|
|
27011
27010
|
this.rapierIdentityRotation,
|
|
27012
27011
|
this.rapierSphere,
|
|
27013
27012
|
(I) => {
|
|
27014
|
-
const e = I[
|
|
27013
|
+
const e = I[Is], t = new U_(e.gameObject, e);
|
|
27015
27014
|
return this.rapierColliderArray.push(t), !0;
|
|
27016
27015
|
},
|
|
27017
27016
|
$l.EXCLUDE_SENSORS,
|
|
27018
27017
|
void 0,
|
|
27019
27018
|
void 0,
|
|
27020
27019
|
void 0,
|
|
27021
|
-
(I) => I[
|
|
27020
|
+
(I) => I[Is].gameObject.layers.isEnabled(2) == !1
|
|
27022
27021
|
), this.rapierColliderArray) : this.rapierColliderArray;
|
|
27023
27022
|
}
|
|
27024
27023
|
get isUpdating() {
|
|
@@ -27139,7 +27138,7 @@ const QB = class {
|
|
|
27139
27138
|
}
|
|
27140
27139
|
}
|
|
27141
27140
|
const s = this.world.createCollider(g, t);
|
|
27142
|
-
return s[
|
|
27141
|
+
return s[Is] = A, A[tt] = s, s.setActiveEvents(AD.COLLISION_EVENTS), this.objects.push(A), this.bodies.push(s), s;
|
|
27143
27142
|
}
|
|
27144
27143
|
getRigidbody(A, g) {
|
|
27145
27144
|
if (!this.world)
|
|
@@ -27147,23 +27146,23 @@ const QB = class {
|
|
|
27147
27146
|
let I = null, e = !1;
|
|
27148
27147
|
if (A.attachedRigidbody) {
|
|
27149
27148
|
const t = A.attachedRigidbody;
|
|
27150
|
-
if (I = t[
|
|
27149
|
+
if (I = t[tt], e = !0, !I) {
|
|
27151
27150
|
const C = t.isKinematic && !dp;
|
|
27152
27151
|
IC && console.log("Create rigidbody", C);
|
|
27153
27152
|
const o = C ? gC.RigidBodyDesc.kinematicPositionBased() : gC.RigidBodyDesc.dynamic(), s = pg(A.attachedRigidbody.gameObject);
|
|
27154
27153
|
o.setTranslation(s.x, s.y, s.z), o.setRotation(Ti(A.attachedRigidbody.gameObject)), I = this.world.createRigidBody(o), this.bodies.push(I), this.objects.push(t);
|
|
27155
27154
|
}
|
|
27156
|
-
I[
|
|
27155
|
+
I[Is] = t, t[tt] = I, this.internalUpdateProperties(t, I), this.getRigidbodyRelativeMatrix(A.gameObject, t.gameObject, g);
|
|
27157
27156
|
} else {
|
|
27158
27157
|
const t = gC.RigidBodyDesc.kinematicPositionBased(), C = pg(A.gameObject);
|
|
27159
|
-
t.setTranslation(C.x, C.y, C.z), t.setRotation(Ti(A.gameObject)), I = this.world.createRigidBody(t), g.identity(), I[
|
|
27158
|
+
t.setTranslation(C.x, C.y, C.z), t.setRotation(Ti(A.gameObject)), I = this.world.createRigidBody(t), g.identity(), I[Is] = null;
|
|
27160
27159
|
}
|
|
27161
27160
|
return A[k_] = I, { rigidBody: I, useExplicitMassProperties: e };
|
|
27162
27161
|
}
|
|
27163
27162
|
removeBody(A) {
|
|
27164
27163
|
var I, e;
|
|
27165
|
-
const g = A[
|
|
27166
|
-
if (A[
|
|
27164
|
+
const g = A[tt];
|
|
27165
|
+
if (A[tt] = null, g && this.world) {
|
|
27167
27166
|
const t = this.objects.findIndex((C) => C === A);
|
|
27168
27167
|
if (t >= 0) {
|
|
27169
27168
|
const C = this.bodies[t];
|
|
@@ -27181,16 +27180,16 @@ const QB = class {
|
|
|
27181
27180
|
if (A.isCollider === !0)
|
|
27182
27181
|
console.warn("TODO: implement updating collider position");
|
|
27183
27182
|
else {
|
|
27184
|
-
const e = A, t = e[
|
|
27183
|
+
const e = A, t = e[tt];
|
|
27185
27184
|
t && this.syncPhysicsBody(e.gameObject, t, g, I);
|
|
27186
27185
|
}
|
|
27187
27186
|
}
|
|
27188
27187
|
updateProperties(A) {
|
|
27189
|
-
const g = A[
|
|
27188
|
+
const g = A[tt];
|
|
27190
27189
|
g && this.internalUpdateProperties(A, g);
|
|
27191
27190
|
}
|
|
27192
27191
|
internal_getRigidbody(A) {
|
|
27193
|
-
return A[
|
|
27192
|
+
return A[tt];
|
|
27194
27193
|
}
|
|
27195
27194
|
internalUpdateProperties(A, g) {
|
|
27196
27195
|
g.enableCcd(A.collisionDetectionMode !== KS.Discrete), g.setLinearDamping(A.drag), g.setAngularDamping(A.angularDrag), g.setGravityScale(A.useGravity ? A.gravityScale : 0, !0), g.setEnabledRotations(!A.lockRotationX, !A.lockRotationY, !A.lockRotationZ, !0), g.setEnabledTranslations(!A.lockPositionX, !A.lockPositionY, !A.lockPositionZ, !0), A.isKinematic ? g.setBodyType(gC.RigidBodyType.KinematicPositionBased) : g.setBodyType(gC.RigidBodyType.Dynamic);
|
|
@@ -27205,7 +27204,7 @@ const QB = class {
|
|
|
27205
27204
|
color: 2258688
|
|
27206
27205
|
// vertexColors: THREE.VertexColors
|
|
27207
27206
|
}), e = new lg();
|
|
27208
|
-
this.lines = new
|
|
27207
|
+
this.lines = new Vi(e, I), this.context.scene.add(this.lines);
|
|
27209
27208
|
}
|
|
27210
27209
|
const g = A.debugRender();
|
|
27211
27210
|
this.lines.geometry.setAttribute("position", new Qg(g.vertices, 3)), this.lines.geometry.setAttribute("color", new Qg(g.colors, 4));
|
|
@@ -27262,7 +27261,7 @@ const QB = class {
|
|
|
27262
27261
|
console.error("Physics world not initialized");
|
|
27263
27262
|
return;
|
|
27264
27263
|
}
|
|
27265
|
-
const I = A[
|
|
27264
|
+
const I = A[tt], e = g[tt];
|
|
27266
27265
|
this.calculateJointRelativeMatrices(A.gameObject, g.gameObject, this._tempMatrix), this._tempMatrix.decompose(this._tempPosition, this._tempQuaternion, this._tempScale);
|
|
27267
27266
|
const t = uB.fixed(
|
|
27268
27267
|
QB.centerConnectionPos,
|
|
@@ -27278,7 +27277,7 @@ const QB = class {
|
|
|
27278
27277
|
console.error("Physics world not initialized");
|
|
27279
27278
|
return;
|
|
27280
27279
|
}
|
|
27281
|
-
const t = A[
|
|
27280
|
+
const t = A[tt], C = g[tt];
|
|
27282
27281
|
this.calculateJointRelativeMatrices(A.gameObject, g.gameObject, this._tempMatrix), this._tempMatrix.decompose(this._tempPosition, this._tempQuaternion, this._tempScale);
|
|
27283
27282
|
let o = gC.JointData.revolute(I, this._tempPosition, e), s = this.world.createImpulseJoint(o, t, C, !0);
|
|
27284
27283
|
IC && console.log("ADD HINGE JOINT", s);
|
|
@@ -27302,7 +27301,7 @@ class R_ {
|
|
|
27302
27301
|
}
|
|
27303
27302
|
handleCollisionEvents() {
|
|
27304
27303
|
this.eventQueue && this.world && this.eventQueue.drainCollisionEvents((A, g, I) => {
|
|
27305
|
-
const e = this.world.getCollider(A), t = this.world.getCollider(g), C = e[
|
|
27304
|
+
const e = this.world.getCollider(A), t = this.world.getCollider(g), C = e[Is], o = t[Is];
|
|
27306
27305
|
up && console.log("EVT", C.name, o.name, I, e, t), C && o && (I ? (this.onCollisionStarted(C, e, o, t), this.onCollisionStarted(o, t, C, e)) : (this.onCollisionEnded(C, o), this.onCollisionEnded(o, C)));
|
|
27307
27306
|
});
|
|
27308
27307
|
}
|
|
@@ -27706,7 +27705,7 @@ Gd.WebsocketBuilder = b_;
|
|
|
27706
27705
|
};
|
|
27707
27706
|
Object.defineProperty(i, "__esModule", { value: !0 }), g(KN, i), g(pd, i), g(wd, i), g(fd, i), g(JN, i), g(yd, i), g(Sd, i), g(JS, i), g(Gd, i);
|
|
27708
27707
|
})(NN);
|
|
27709
|
-
const pp = 2, lC = 4, eo = 4, kd = 4,
|
|
27708
|
+
const pp = 2, lC = 4, eo = 4, kd = 4, es = new Int32Array(2), rM = new Float32Array(es.buffer), EM = new Float64Array(es.buffer), Qh = new Uint16Array(new Uint8Array([1, 0]).buffer)[0] === 1;
|
|
27710
27709
|
class yC {
|
|
27711
27710
|
constructor(A, g) {
|
|
27712
27711
|
this.low = A | 0, this.high = g | 0;
|
|
@@ -27791,10 +27790,10 @@ class nE {
|
|
|
27791
27790
|
return new yC(this.readUint32(A), this.readUint32(A + 4));
|
|
27792
27791
|
}
|
|
27793
27792
|
readFloat32(A) {
|
|
27794
|
-
return
|
|
27793
|
+
return es[0] = this.readInt32(A), rM[0];
|
|
27795
27794
|
}
|
|
27796
27795
|
readFloat64(A) {
|
|
27797
|
-
return
|
|
27796
|
+
return es[Qh ? 0 : 1] = this.readInt32(A), es[Qh ? 1 : 0] = this.readInt32(A + 4), EM[0];
|
|
27798
27797
|
}
|
|
27799
27798
|
writeInt8(A, g) {
|
|
27800
27799
|
this.bytes_[A] = g;
|
|
@@ -27821,10 +27820,10 @@ class nE {
|
|
|
27821
27820
|
this.writeUint32(A, g.low), this.writeUint32(A + 4, g.high);
|
|
27822
27821
|
}
|
|
27823
27822
|
writeFloat32(A, g) {
|
|
27824
|
-
rM[0] = g, this.writeInt32(A,
|
|
27823
|
+
rM[0] = g, this.writeInt32(A, es[0]);
|
|
27825
27824
|
}
|
|
27826
27825
|
writeFloat64(A, g) {
|
|
27827
|
-
EM[0] = g, this.writeInt32(A,
|
|
27826
|
+
EM[0] = g, this.writeInt32(A, es[Qh ? 0 : 1]), this.writeInt32(A + 4, es[Qh ? 1 : 0]);
|
|
27828
27827
|
}
|
|
27829
27828
|
/**
|
|
27830
27829
|
* Return the file identifier. Behavior is undefined for FlatBuffers whose
|
|
@@ -35848,13 +35847,13 @@ uniform float radius;varying vec2 vUv;varying vec2 vUv0;varying vec2 vUv1;varyin
|
|
|
35848
35847
|
setSize(i, A) {
|
|
35849
35848
|
this.uniforms.texelSize.value.set(1 / i, 1 / A);
|
|
35850
35849
|
}
|
|
35851
|
-
}, MP = new qa(),
|
|
35850
|
+
}, MP = new qa(), _o = null;
|
|
35852
35851
|
function UP() {
|
|
35853
|
-
if (
|
|
35852
|
+
if (_o === null) {
|
|
35854
35853
|
const i = new Float32Array([-1, -1, 0, 3, -1, 0, -1, 3, 0]), A = new Float32Array([0, 0, 2, 0, 0, 2]);
|
|
35855
|
-
|
|
35854
|
+
_o = new lg(), _o.setAttribute !== void 0 ? (_o.setAttribute("position", new Qg(i, 3)), _o.setAttribute("uv", new Qg(A, 2))) : (_o.addAttribute("position", new Qg(i, 3)), _o.addAttribute("uv", new Qg(A, 2)));
|
|
35856
35855
|
}
|
|
35857
|
-
return
|
|
35856
|
+
return _o;
|
|
35858
35857
|
}
|
|
35859
35858
|
var ze = class {
|
|
35860
35859
|
/**
|
|
@@ -36198,7 +36197,7 @@ var ze = class {
|
|
|
36198
36197
|
const t = this.overrideClearColor, C = this.overrideClearAlpha, o = i.getClearAlpha(), s = t !== null, B = C >= 0;
|
|
36199
36198
|
s ? (i.getClearColor(hM), i.setClearColor(t, B ? C : o)) : B && i.setClearAlpha(C), i.setRenderTarget(this.renderToScreen ? null : A), i.clear(this.color, this.depth, this.stencil), s ? i.setClearColor(hM, o) : B && i.setClearAlpha(o);
|
|
36200
36199
|
}
|
|
36201
|
-
},
|
|
36200
|
+
}, Po = -1, wI = class extends Se {
|
|
36202
36201
|
/**
|
|
36203
36202
|
* Constructs a new resolution.
|
|
36204
36203
|
*
|
|
@@ -36208,7 +36207,7 @@ var ze = class {
|
|
|
36208
36207
|
* @param {Number} [height=Resolution.AUTO_SIZE] - The preferred height.
|
|
36209
36208
|
* @param {Number} [scale=1.0] - A resolution scale.
|
|
36210
36209
|
*/
|
|
36211
|
-
constructor(i, A =
|
|
36210
|
+
constructor(i, A = Po, g = Po, I = 1) {
|
|
36212
36211
|
super(), this.resizable = i, this.baseSize = new $(1, 1), this.preferredSize = new $(A, g), this.target = this.preferredSize, this.s = I, this.effectiveSize = new $(), this.addEventListener("change", () => this.updateEffectiveSize()), this.updateEffectiveSize();
|
|
36213
36212
|
}
|
|
36214
36213
|
/**
|
|
@@ -36218,7 +36217,7 @@ var ze = class {
|
|
|
36218
36217
|
*/
|
|
36219
36218
|
updateEffectiveSize() {
|
|
36220
36219
|
const i = this.baseSize, A = this.preferredSize, g = this.effectiveSize, I = this.scale;
|
|
36221
|
-
A.width !==
|
|
36220
|
+
A.width !== Po ? g.width = A.width : A.height !== Po ? g.width = Math.round(A.height * (i.width / Math.max(i.height, 1))) : g.width = Math.round(i.width * I), A.height !== Po ? g.height = A.height : A.width !== Po ? g.height = Math.round(A.width / Math.max(i.width / Math.max(i.height, 1), 1)) : g.height = Math.round(i.height * I);
|
|
36222
36221
|
}
|
|
36223
36222
|
/**
|
|
36224
36223
|
* The effective width.
|
|
@@ -36277,7 +36276,7 @@ var ze = class {
|
|
|
36277
36276
|
return this.s;
|
|
36278
36277
|
}
|
|
36279
36278
|
set scale(i) {
|
|
36280
|
-
this.s !== i && (this.s = i, this.preferredSize.setScalar(
|
|
36279
|
+
this.s !== i && (this.s = i, this.preferredSize.setScalar(Po), this.dispatchEvent({ type: "change" }), this.resizable.setSize(this.baseSize.width, this.baseSize.height));
|
|
36281
36280
|
}
|
|
36282
36281
|
/**
|
|
36283
36282
|
* Returns the current resolution scale.
|
|
@@ -36453,7 +36452,7 @@ var ze = class {
|
|
|
36453
36452
|
* @type {Number}
|
|
36454
36453
|
*/
|
|
36455
36454
|
static get AUTO_SIZE() {
|
|
36456
|
-
return
|
|
36455
|
+
return Po;
|
|
36457
36456
|
}
|
|
36458
36457
|
}, wp = !1, lM = class {
|
|
36459
36458
|
/**
|
|
@@ -37979,7 +37978,7 @@ var dM = class extends ze {
|
|
|
37979
37978
|
*/
|
|
37980
37979
|
createDepthTexture() {
|
|
37981
37980
|
const i = this.depthTexture = new PD();
|
|
37982
|
-
return this.inputBuffer.depthTexture = i, this.inputBuffer.dispose(), this.inputBuffer.stencilBuffer ? (i.format =
|
|
37981
|
+
return this.inputBuffer.depthTexture = i, this.inputBuffer.dispose(), this.inputBuffer.stencilBuffer ? (i.format = fs, i.type = hs) : i.type = to, i;
|
|
37983
37982
|
}
|
|
37984
37983
|
/**
|
|
37985
37984
|
* Deletes the current depth texture.
|
|
@@ -39238,7 +39237,7 @@ uniform lowp sampler2D nearCoCBuffer;uniform float scale;void mainImage(const in
|
|
|
39238
39237
|
function R1(i, A, g) {
|
|
39239
39238
|
const I = /* @__PURE__ */ new Map([
|
|
39240
39239
|
[vD, 1],
|
|
39241
|
-
[
|
|
39240
|
+
[ns, 1],
|
|
39242
39241
|
[EB, 2],
|
|
39243
39242
|
[dI, 4]
|
|
39244
39243
|
]);
|
|
@@ -40517,7 +40516,7 @@ class V1 {
|
|
|
40517
40516
|
const t = this.getReflection(A);
|
|
40518
40517
|
if (t && t.Source) {
|
|
40519
40518
|
const C = this.context.scene, o = t.Source;
|
|
40520
|
-
o.encoding = Ag, o.mapping =
|
|
40519
|
+
o.encoding = Ag, o.mapping = Dt, C.environment = o;
|
|
40521
40520
|
return;
|
|
40522
40521
|
}
|
|
40523
40522
|
break;
|
|
@@ -40527,14 +40526,14 @@ class V1 {
|
|
|
40527
40526
|
case 1:
|
|
40528
40527
|
if (this.sceneLightSettings.ambientTrilight) {
|
|
40529
40528
|
const t = this.sceneLightSettings.ambientTrilight, C = W1(t[0], t[1], t[2], 64, 64);
|
|
40530
|
-
C.encoding = Ag, C.mapping =
|
|
40529
|
+
C.encoding = Ag, C.mapping = Dt, this.context.scene.environment = C;
|
|
40531
40530
|
} else
|
|
40532
40531
|
console.error("Missing ambient trilight", this.sceneLightSettings.sourceId);
|
|
40533
40532
|
return;
|
|
40534
40533
|
case 3:
|
|
40535
40534
|
if (this.sceneLightSettings.ambientLight) {
|
|
40536
40535
|
const t = TN(this.sceneLightSettings.ambientLight, 64);
|
|
40537
|
-
t.encoding = Ag, t.mapping =
|
|
40536
|
+
t.encoding = Ag, t.mapping = Dt, this.context.scene.environment = t;
|
|
40538
40537
|
} else
|
|
40539
40538
|
console.error("Missing ambientlight", this.sceneLightSettings.sourceId);
|
|
40540
40539
|
return;
|
|
@@ -40564,7 +40563,7 @@ class X1 {
|
|
|
40564
40563
|
Q(this, "_sphericalHarmonicsArray");
|
|
40565
40564
|
Q(this, "_ambientScale", 1);
|
|
40566
40565
|
Q(this, "_lightProbe");
|
|
40567
|
-
this._context = A, this._source = g, this._ambientScale = I, g.mapping =
|
|
40566
|
+
this._context = A, this._source = g, this._ambientScale = I, g.mapping = Dt, g.encoding = Ag;
|
|
40568
40567
|
}
|
|
40569
40568
|
get Source() {
|
|
40570
40569
|
return this._source;
|
|
@@ -40824,7 +40823,7 @@ function RC() {
|
|
|
40824
40823
|
function ZN(i) {
|
|
40825
40824
|
MM !== i && (MM = i, jN = new i());
|
|
40826
40825
|
}
|
|
40827
|
-
const
|
|
40826
|
+
const Wo = cA("debugaddressables");
|
|
40828
40827
|
class t3 {
|
|
40829
40828
|
constructor(A) {
|
|
40830
40829
|
Q(this, "_context");
|
|
@@ -40855,7 +40854,7 @@ const Aa = class {
|
|
|
40855
40854
|
}
|
|
40856
40855
|
static getOrCreate(A, g, I) {
|
|
40857
40856
|
const e = Ka(A, g);
|
|
40858
|
-
|
|
40857
|
+
Wo && console.log("GetOrCreate Addressable from", A, g, "FinalPath=", e);
|
|
40859
40858
|
const t = I.addressables, C = t.findAssetReference(e);
|
|
40860
40859
|
if (C)
|
|
40861
40860
|
return C;
|
|
@@ -40884,26 +40883,26 @@ const Aa = class {
|
|
|
40884
40883
|
return this._rawBinary || this.asset !== void 0;
|
|
40885
40884
|
}
|
|
40886
40885
|
unload() {
|
|
40887
|
-
this.asset && (
|
|
40886
|
+
this.asset && (Wo && console.log("Unload", this.asset), this.asset.scene ? bB(this.asset.scene, !0, !0) : bB(this.asset, !0, !0)), this.asset = null, this._rawBinary = void 0;
|
|
40888
40887
|
}
|
|
40889
40888
|
async preload() {
|
|
40890
40889
|
if (!this.mustLoad || this._isLoadingRawBinary)
|
|
40891
40890
|
return null;
|
|
40892
40891
|
if (this._rawBinary !== void 0)
|
|
40893
40892
|
return this._rawBinary;
|
|
40894
|
-
this._isLoadingRawBinary = !0,
|
|
40893
|
+
this._isLoadingRawBinary = !0, Wo && console.log("Preload", this._hashedUri);
|
|
40895
40894
|
const A = await i3(this._hashedUri, (g) => {
|
|
40896
40895
|
this.raiseProgressEvent(g);
|
|
40897
40896
|
});
|
|
40898
40897
|
return this._rawBinary = (A == null ? void 0 : A.buffer) ?? null, this._isLoadingRawBinary = !1, this._rawBinary;
|
|
40899
40898
|
}
|
|
40900
40899
|
async loadAssetAsync(A) {
|
|
40901
|
-
if (
|
|
40900
|
+
if (Wo && console.log("loadAssetAsync", this.uri), !this.mustLoad)
|
|
40902
40901
|
return this.asset;
|
|
40903
40902
|
if (A && this._progressListeners.push(A), this._loading !== void 0)
|
|
40904
40903
|
return this._loading;
|
|
40905
40904
|
const g = bg.Current;
|
|
40906
|
-
this._rawBinary ? (this._loading = RC().parseSync(g, this._rawBinary, this.uri, null), this.raiseProgressEvent(new ProgressEvent("progress", { loaded: this._rawBinary.byteLength, total: this._rawBinary.byteLength }))) : (
|
|
40905
|
+
this._rawBinary ? (this._loading = RC().parseSync(g, this._rawBinary, this.uri, null), this.raiseProgressEvent(new ProgressEvent("progress", { loaded: this._rawBinary.byteLength, total: this._rawBinary.byteLength }))) : (Wo && console.log("Load async", this.uri), this._loading = RC().loadSync(g, this._hashedUri, null, !0, (e) => {
|
|
40907
40906
|
this.raiseProgressEvent(e);
|
|
40908
40907
|
}));
|
|
40909
40908
|
const I = await this._loading;
|
|
@@ -40929,8 +40928,8 @@ const Aa = class {
|
|
|
40929
40928
|
}
|
|
40930
40929
|
async onInstantiate(A, g = !1, I) {
|
|
40931
40930
|
const e = bg.Current;
|
|
40932
|
-
if (A || (A = e.scene), this.mustLoad && await this.loadAssetAsync(),
|
|
40933
|
-
|
|
40931
|
+
if (A || (A = e.scene), this.mustLoad && await this.loadAssetAsync(), Wo && console.log("Instantiate", this.uri, "parent:", A), this.asset) {
|
|
40932
|
+
Wo && console.log("Add to scene", this.asset);
|
|
40934
40933
|
let t = A instanceof uo ? A : null;
|
|
40935
40934
|
t || (t = new uo()), typeof A == "object" && (A instanceof LA ? t.parent = A : Object.assign(t, A));
|
|
40936
40935
|
let C = Aa.currentlyInstantiating.get(this.uri);
|
|
@@ -40955,7 +40954,7 @@ const Aa = class {
|
|
|
40955
40954
|
});
|
|
40956
40955
|
}
|
|
40957
40956
|
} else
|
|
40958
|
-
|
|
40957
|
+
Wo && console.warn("Failed to load asset", this.uri);
|
|
40959
40958
|
return null;
|
|
40960
40959
|
}
|
|
40961
40960
|
/**
|
|
@@ -41031,7 +41030,7 @@ class o3 extends EventTarget {
|
|
|
41031
41030
|
}
|
|
41032
41031
|
}
|
|
41033
41032
|
const UM = "NEEDLE_lightmaps", s3 = cA("debuglightmapsextension");
|
|
41034
|
-
var
|
|
41033
|
+
var rs = /* @__PURE__ */ ((i) => (i[i.Lightmap = 0] = "Lightmap", i[i.Skybox = 1] = "Skybox", i[i.Reflection = 2] = "Reflection", i))(rs || {});
|
|
41035
41034
|
class B3 {
|
|
41036
41035
|
constructor(A, g, I) {
|
|
41037
41036
|
Q(this, "parser");
|
|
@@ -41054,7 +41053,7 @@ class B3 {
|
|
|
41054
41053
|
if (s.pointer) {
|
|
41055
41054
|
const B = oS(this.parser, s.pointer).then((n) => {
|
|
41056
41055
|
const r = n;
|
|
41057
|
-
r != null && r.isTexture && (this.registry ? (s.type !== 0 ? r.encoding = Ag : r.encoding = WI, this.registry.registerTexture(this.source, s.type, r, s.index)) : console.log(
|
|
41056
|
+
r != null && r.isTexture && (this.registry ? (s.type !== 0 ? r.encoding = Ag : r.encoding = WI, this.registry.registerTexture(this.source, s.type, r, s.index)) : console.log(rs[s.type], s.pointer, r));
|
|
41058
41057
|
});
|
|
41059
41058
|
o.push(B);
|
|
41060
41059
|
}
|
|
@@ -41073,18 +41072,18 @@ class n3 {
|
|
|
41073
41072
|
this._context = A;
|
|
41074
41073
|
}
|
|
41075
41074
|
registerTexture(A, g, I, e) {
|
|
41076
|
-
RM && console.log("Registering ",
|
|
41075
|
+
RM && console.log("Registering ", rs[g], I, A), this._lightmaps.has(A) || this._lightmaps.set(A, /* @__PURE__ */ new Map());
|
|
41077
41076
|
const t = this._lightmaps.get(A), C = (t == null ? void 0 : t.get(g)) ?? [];
|
|
41078
41077
|
C.length < e && (C.length = e + 1), C[e] = I, t == null || t.set(g, C);
|
|
41079
41078
|
}
|
|
41080
41079
|
tryGetLightmap(A, g = 0) {
|
|
41081
|
-
return this.tryGet(A,
|
|
41080
|
+
return this.tryGet(A, rs.Lightmap, g);
|
|
41082
41081
|
}
|
|
41083
41082
|
tryGetSkybox(A) {
|
|
41084
|
-
return this.tryGet(A,
|
|
41083
|
+
return this.tryGet(A, rs.Skybox, 0);
|
|
41085
41084
|
}
|
|
41086
41085
|
tryGetReflection(A) {
|
|
41087
|
-
return this.tryGet(A,
|
|
41086
|
+
return this.tryGet(A, rs.Reflection, 0);
|
|
41088
41087
|
}
|
|
41089
41088
|
tryGet(A, g, I) {
|
|
41090
41089
|
var t;
|
|
@@ -41171,7 +41170,7 @@ class r3 {
|
|
|
41171
41170
|
}
|
|
41172
41171
|
}
|
|
41173
41172
|
const E3 = cA("debugSetup"), c3 = cA("stats"), h3 = cA("debugactive");
|
|
41174
|
-
var
|
|
41173
|
+
var zi = /* @__PURE__ */ ((i) => (i[i.EarlyUpdate = 0] = "EarlyUpdate", i[i.Update = 1] = "Update", i[i.LateUpdate = 2] = "LateUpdate", i[i.OnBeforeRender = 3] = "OnBeforeRender", i[i.OnAfterRender = 4] = "OnAfterRender", i[i.PrePhysicsStep = 9] = "PrePhysicsStep", i[i.PostPhysicsStep = 10] = "PostPhysicsStep", i))(zi || {}), CD = /* @__PURE__ */ ((i) => (i.ImmersiveVR = "immersive-vr", i.ImmersiveAR = "immersive-ar", i))(CD || {});
|
|
41175
41174
|
function zN(i, A) {
|
|
41176
41175
|
if (!i)
|
|
41177
41176
|
return;
|
|
@@ -41982,11 +41981,11 @@ let XE = (JI = class {
|
|
|
41982
41981
|
get __isActiveInHierarchy() {
|
|
41983
41982
|
if (!this.gameObject)
|
|
41984
41983
|
return !1;
|
|
41985
|
-
const A = this.gameObject[
|
|
41984
|
+
const A = this.gameObject[Ds];
|
|
41986
41985
|
return A === void 0 ? !0 : A;
|
|
41987
41986
|
}
|
|
41988
41987
|
set __isActiveInHierarchy(A) {
|
|
41989
|
-
this.gameObject && (this.gameObject[
|
|
41988
|
+
this.gameObject && (this.gameObject[Ds] = A);
|
|
41990
41989
|
}
|
|
41991
41990
|
/** called once when the component becomes active for the first time */
|
|
41992
41991
|
awake() {
|
|
@@ -41999,10 +41998,10 @@ let XE = (JI = class {
|
|
|
41999
41998
|
onDestroy() {
|
|
42000
41999
|
this.__destroyed = !0;
|
|
42001
42000
|
}
|
|
42002
|
-
startCoroutine(A, g =
|
|
42001
|
+
startCoroutine(A, g = zi.Update) {
|
|
42003
42002
|
return this.context.registerCoroutineUpdate(this, A, g);
|
|
42004
42003
|
}
|
|
42005
|
-
stopCoroutine(A, g =
|
|
42004
|
+
stopCoroutine(A, g = zi.Update) {
|
|
42006
42005
|
this.context.unregisterCoroutineUpdate(A, g);
|
|
42007
42006
|
}
|
|
42008
42007
|
get destroyed() {
|
|
@@ -42131,7 +42130,7 @@ let bQ = 0, FM;
|
|
|
42131
42130
|
function XN(i) {
|
|
42132
42131
|
aB && console.log(i.progress.loaded.toFixed(0) + "/" + i.progress.total.toFixed(0), i);
|
|
42133
42132
|
const A = i.count, g = i.progress.total;
|
|
42134
|
-
g === 0 || g === void 0 ? (FM !== i.name && (bQ = 0), FM = i.name, bQ += (1 - bQ) * 1e-3, aB &&
|
|
42133
|
+
g === 0 || g === void 0 ? (FM !== i.name && (bQ = 0), FM = i.name, bQ += (1 - bQ) * 1e-3, aB && ko("Loading " + i.name + " did not report total size")) : bQ = i.progress.loaded / g;
|
|
42135
42134
|
const I = i.index / A + bQ / A;
|
|
42136
42135
|
return gg.clamp01(I);
|
|
42137
42136
|
}
|
|
@@ -42854,10 +42853,10 @@ const JM = {
|
|
|
42854
42853
|
[eK]: EB,
|
|
42855
42854
|
[AK]: EB,
|
|
42856
42855
|
[HS]: EB,
|
|
42857
|
-
[tK]:
|
|
42858
|
-
[IK]:
|
|
42859
|
-
[YS]:
|
|
42860
|
-
[$N]:
|
|
42856
|
+
[tK]: ns,
|
|
42857
|
+
[IK]: ns,
|
|
42858
|
+
[YS]: ns,
|
|
42859
|
+
[$N]: ns
|
|
42861
42860
|
}, Fp = {
|
|
42862
42861
|
[oK]: ge,
|
|
42863
42862
|
[iK]: ne,
|
|
@@ -43000,7 +42999,7 @@ var N3 = function() {
|
|
|
43000
42999
|
};
|
|
43001
43000
|
}();
|
|
43002
43001
|
const Ca = cA("debugdecoders"), qM = "https://www.gstatic.com/draco/versioned/decoders/1.4.1/", LM = "https://www.gstatic.com/basis-universal/versioned/2021-04-15-ba1c3e4/";
|
|
43003
|
-
let vt, Np,
|
|
43002
|
+
let vt, Np, os;
|
|
43004
43003
|
function bM(i) {
|
|
43005
43004
|
i !== void 0 && typeof i == "string" && (vt || (vt = new xS()), Ca && console.log("Setting draco decoder path to", i), vt.setDecoderPath(i));
|
|
43006
43005
|
}
|
|
@@ -43008,10 +43007,10 @@ function vM(i) {
|
|
|
43008
43007
|
i !== void 0 && typeof i == "string" && (vt || (vt = new xS()), Ca && console.log("Setting draco decoder type to", i), vt.setDecoderConfig({ type: i }));
|
|
43009
43008
|
}
|
|
43010
43009
|
function xM(i) {
|
|
43011
|
-
i !== void 0 && typeof i == "string" && (
|
|
43010
|
+
i !== void 0 && typeof i == "string" && (os || (os = new Tt()), Ca && console.log("Setting ktx2 transcoder path to", i), os.setTranscoderPath(i));
|
|
43012
43011
|
}
|
|
43013
43012
|
function $E(i, A) {
|
|
43014
|
-
vt || (vt = new xS(), vt.setDecoderPath(qM), vt.setDecoderConfig({ type: "js" }), Ca && console.log("Setting draco decoder path to", qM)),
|
|
43013
|
+
vt || (vt = new xS(), vt.setDecoderPath(qM), vt.setDecoderConfig({ type: "js" }), Ca && console.log("Setting draco decoder path to", qM)), os || (os = new Tt(), os.setTranscoderPath(LM), Ca && console.log("Setting ktx2 transcoder path to", LM), A.renderer && os.detectSupport(A.renderer)), Np || (Np = N3, Ca && console.log("Using the default meshopt decoder")), i.setDRACOLoader(vt), i.setKTX2Loader(os), i.setMeshoptDecoder(Np);
|
|
43015
43014
|
}
|
|
43016
43015
|
class Kp {
|
|
43017
43016
|
constructor(A, g, I, e) {
|
|
@@ -43679,7 +43678,7 @@ var b3 = Object.defineProperty, v3 = Object.getOwnPropertyDescriptor, gc = (i, A
|
|
|
43679
43678
|
(C = i[t]) && (e = (I ? C(A, g, e) : C(e)) || e);
|
|
43680
43679
|
return I && e && b3(A, g, e), e;
|
|
43681
43680
|
};
|
|
43682
|
-
const
|
|
43681
|
+
const jo = cA("debuganimation");
|
|
43683
43682
|
class GC extends TA {
|
|
43684
43683
|
constructor() {
|
|
43685
43684
|
super(...arguments);
|
|
@@ -43703,16 +43702,16 @@ class GC extends TA {
|
|
|
43703
43702
|
}
|
|
43704
43703
|
set clip(g) {
|
|
43705
43704
|
if (!this.__didAwake) {
|
|
43706
|
-
|
|
43705
|
+
jo && console.log("Assign clip during serialization", g), this._tempAnimationClipBeforeGameObjectExisted = g;
|
|
43707
43706
|
return;
|
|
43708
43707
|
}
|
|
43709
|
-
g && (
|
|
43708
|
+
g && (jo && console.log("Assign clip", g, Boolean(this.gameObject)), this.gameObject.animations || (this.gameObject.animations = []), !this.animations.includes(g) && (this.animations.length > 0 ? this.animations.splice(0, 0, g) : this.animations.push(g)));
|
|
43710
43709
|
}
|
|
43711
43710
|
set clips(g) {
|
|
43712
43711
|
this.animations = g;
|
|
43713
43712
|
}
|
|
43714
43713
|
set animations(g) {
|
|
43715
|
-
|
|
43714
|
+
jo && console.log("assign animations", g), this.gameObject.animations = g;
|
|
43716
43715
|
}
|
|
43717
43716
|
get animations() {
|
|
43718
43717
|
return this.gameObject.animations;
|
|
@@ -43736,7 +43735,7 @@ class GC extends TA {
|
|
|
43736
43735
|
this._actions = g;
|
|
43737
43736
|
}
|
|
43738
43737
|
awake() {
|
|
43739
|
-
|
|
43738
|
+
jo && console.log(this), this._tempAnimationClipBeforeGameObjectExisted && (this.clip = this._tempAnimationClipBeforeGameObjectExisted, this._tempAnimationClipBeforeGameObjectExisted = null), this.playAutomatically && this.init();
|
|
43740
43739
|
}
|
|
43741
43740
|
onEnable() {
|
|
43742
43741
|
var g;
|
|
@@ -43762,15 +43761,15 @@ class GC extends TA {
|
|
|
43762
43761
|
return !1;
|
|
43763
43762
|
}
|
|
43764
43763
|
play(g, I) {
|
|
43765
|
-
if (
|
|
43766
|
-
|
|
43764
|
+
if (jo && console.log("PLAY", g), this.init(), !this.mixer) {
|
|
43765
|
+
jo && console.warn("Missing mixer", this);
|
|
43767
43766
|
return;
|
|
43768
43767
|
}
|
|
43769
43768
|
g === void 0 && (g = 0);
|
|
43770
43769
|
let e = g;
|
|
43771
43770
|
if (typeof g == "number") {
|
|
43772
43771
|
if (g >= this.animations.length) {
|
|
43773
|
-
|
|
43772
|
+
jo && console.log("No animation at index", g);
|
|
43774
43773
|
return;
|
|
43775
43774
|
}
|
|
43776
43775
|
e = this.animations[g];
|
|
@@ -43797,7 +43796,7 @@ class GC extends TA {
|
|
|
43797
43796
|
const t = (I == null ? void 0 : I.exclusive) ?? !0;
|
|
43798
43797
|
I != null && I.fadeDuration ? (t && (e == null || e.fadeOut(I.fadeDuration)), g.fadeIn(I.fadeDuration)) : t && (e == null || e.stop()), g.reset(), g.enabled = !0, g.time = 0, g.timeScale = 1;
|
|
43799
43798
|
const C = g.getClip();
|
|
43800
|
-
I != null && I.minMaxOffsetNormalized && (g.time = gg.lerp(I.minMaxOffsetNormalized.x, I.minMaxOffsetNormalized.y, Math.random()) * C.duration), I != null && I.minMaxSpeed && (g.timeScale = gg.lerp(I.minMaxSpeed.x, I.minMaxSpeed.y, Math.random())), I != null && I.clampWhenFinished && (g.clampWhenFinished = !0), (I == null ? void 0 : I.startTime) !== void 0 && (g.time = I.startTime), (I == null ? void 0 : I.loop) !== void 0 ? g.loop = I.loop ? uy : _r : g.loop = _r, g.play(),
|
|
43799
|
+
I != null && I.minMaxOffsetNormalized && (g.time = gg.lerp(I.minMaxOffsetNormalized.x, I.minMaxOffsetNormalized.y, Math.random()) * C.duration), I != null && I.minMaxSpeed && (g.timeScale = gg.lerp(I.minMaxSpeed.x, I.minMaxSpeed.y, Math.random())), I != null && I.clampWhenFinished && (g.clampWhenFinished = !0), (I == null ? void 0 : I.startTime) !== void 0 && (g.time = I.startTime), (I == null ? void 0 : I.loop) !== void 0 ? g.loop = I.loop ? uy : _r : g.loop = _r, g.play(), jo && console.log("PLAY", g.getClip().name, g);
|
|
43801
43800
|
const o = new x3(g, this.mixer, I, (s) => {
|
|
43802
43801
|
this._handles.splice(this._handles.indexOf(o), 1);
|
|
43803
43802
|
});
|
|
@@ -44076,7 +44075,7 @@ class H3 {
|
|
|
44076
44075
|
default:
|
|
44077
44076
|
throw new Error("THREE.GLTFLoader: Unexpected light type: " + s.type);
|
|
44078
44077
|
}
|
|
44079
|
-
return B.position.set(0, 0, 0), B.decay = 2,
|
|
44078
|
+
return B.position.set(0, 0, 0), B.decay = 2, is(B, s), s.intensity !== void 0 && (B.intensity = s.intensity), B.name = g.createUniqueName(s.name || "light_" + A), e = Promise.resolve(B), g.cache.add(I, e), e;
|
|
44080
44079
|
}
|
|
44081
44080
|
getDependency(A, g) {
|
|
44082
44081
|
if (A === "light")
|
|
@@ -44386,11 +44385,11 @@ class P3 {
|
|
|
44386
44385
|
let n;
|
|
44387
44386
|
switch (I.itemSize) {
|
|
44388
44387
|
case 1:
|
|
44389
|
-
n =
|
|
44388
|
+
n = ys;
|
|
44390
44389
|
break;
|
|
44391
44390
|
case 2:
|
|
44392
44391
|
case 3:
|
|
44393
|
-
n =
|
|
44392
|
+
n = Ss;
|
|
44394
44393
|
break;
|
|
44395
44394
|
case 4:
|
|
44396
44395
|
o.endsWith(".quaternion") ? n = KC : n = YE;
|
|
@@ -44609,7 +44608,7 @@ class I4 {
|
|
|
44609
44608
|
return null;
|
|
44610
44609
|
const e = g.meshes[I.mesh];
|
|
44611
44610
|
for (const B of e.primitives)
|
|
44612
|
-
if (B.mode !==
|
|
44611
|
+
if (B.mode !== Qt.TRIANGLES && B.mode !== Qt.TRIANGLE_STRIP && B.mode !== Qt.TRIANGLE_FAN && B.mode !== void 0)
|
|
44613
44612
|
return null;
|
|
44614
44613
|
const C = I.extensions[this.name].attributes, o = [], s = {};
|
|
44615
44614
|
for (const B in C)
|
|
@@ -44731,7 +44730,7 @@ class s4 extends nK {
|
|
|
44731
44730
|
return o4.fromArray(t).normalize().toArray(t), t;
|
|
44732
44731
|
}
|
|
44733
44732
|
}
|
|
44734
|
-
const
|
|
44733
|
+
const Qt = {
|
|
44735
44734
|
FLOAT: 5126,
|
|
44736
44735
|
//FLOAT_MAT2: 35674,
|
|
44737
44736
|
FLOAT_MAT3: 35675,
|
|
@@ -44786,7 +44785,7 @@ const at = {
|
|
|
44786
44785
|
COLOR_0: "color",
|
|
44787
44786
|
WEIGHTS_0: "skinWeight",
|
|
44788
44787
|
JOINTS_0: "skinIndex"
|
|
44789
|
-
},
|
|
44788
|
+
}, Zo = {
|
|
44790
44789
|
scale: "scale",
|
|
44791
44790
|
translation: "position",
|
|
44792
44791
|
rotation: "quaternion",
|
|
@@ -44817,7 +44816,7 @@ function YQ(i, A, g) {
|
|
|
44817
44816
|
for (const I in g.extensions)
|
|
44818
44817
|
i[I] === void 0 && (A.userData.gltfExtensions = A.userData.gltfExtensions || {}, A.userData.gltfExtensions[I] = g.extensions[I]);
|
|
44819
44818
|
}
|
|
44820
|
-
function
|
|
44819
|
+
function is(i, A) {
|
|
44821
44820
|
A.extras !== void 0 && (typeof A.extras == "object" ? Object.assign(i.userData, A.extras) : console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, " + A.extras));
|
|
44822
44821
|
}
|
|
44823
44822
|
function n4(i, A, g) {
|
|
@@ -44947,7 +44946,7 @@ class E4 {
|
|
|
44947
44946
|
parser: I,
|
|
44948
44947
|
userData: {}
|
|
44949
44948
|
};
|
|
44950
|
-
YQ(t, o, e),
|
|
44949
|
+
YQ(t, o, e), is(o, e), Promise.all(I._invokeAll(function(s) {
|
|
44951
44950
|
return s.afterRoot && s.afterRoot(o);
|
|
44952
44951
|
})).then(function() {
|
|
44953
44952
|
A(o);
|
|
@@ -45301,7 +45300,7 @@ class E4 {
|
|
|
45301
45300
|
}
|
|
45302
45301
|
return t.occlusionTexture !== void 0 && C !== QI && (B.push(g.assignTexture(o, "aoMap", t.occlusionTexture)), t.occlusionTexture.strength !== void 0 && (o.aoMapIntensity = t.occlusionTexture.strength)), t.emissiveFactor !== void 0 && C !== QI && (o.emissive = new fA().fromArray(t.emissiveFactor)), t.emissiveTexture !== void 0 && C !== QI && B.push(g.assignTexture(o, "emissiveMap", t.emissiveTexture, Ag)), Promise.all(B).then(function() {
|
|
45303
45302
|
const r = new C(o);
|
|
45304
|
-
return t.name && (r.name = t.name),
|
|
45303
|
+
return t.name && (r.name = t.name), is(r, t), g.associations.set(r, { materials: A }), t.extensions && YQ(e, r, t), r;
|
|
45305
45304
|
});
|
|
45306
45305
|
}
|
|
45307
45306
|
/** When Object3D instances are targeted by animation, they need unique names. */
|
|
@@ -45356,19 +45355,19 @@ class E4 {
|
|
|
45356
45355
|
const h = n[E], l = C[E];
|
|
45357
45356
|
let u;
|
|
45358
45357
|
const w = B[E];
|
|
45359
|
-
if (l.mode ===
|
|
45360
|
-
u = t.isSkinnedMesh === !0 ? new UE(h, w) : new SA(h, w), u.isSkinnedMesh === !0 && !u.geometry.attributes.skinWeight.normalized && u.normalizeSkinWeights(), l.mode ===
|
|
45361
|
-
else if (l.mode ===
|
|
45362
|
-
u = new
|
|
45363
|
-
else if (l.mode ===
|
|
45358
|
+
if (l.mode === Qt.TRIANGLES || l.mode === Qt.TRIANGLE_STRIP || l.mode === Qt.TRIANGLE_FAN || l.mode === void 0)
|
|
45359
|
+
u = t.isSkinnedMesh === !0 ? new UE(h, w) : new SA(h, w), u.isSkinnedMesh === !0 && !u.geometry.attributes.skinWeight.normalized && u.normalizeSkinWeights(), l.mode === Qt.TRIANGLE_STRIP ? u.geometry = ZM(u.geometry, rm) : l.mode === Qt.TRIANGLE_FAN && (u.geometry = ZM(u.geometry, wy));
|
|
45360
|
+
else if (l.mode === Qt.LINES)
|
|
45361
|
+
u = new Vi(h, w);
|
|
45362
|
+
else if (l.mode === Qt.LINE_STRIP)
|
|
45364
45363
|
u = new OI(h, w);
|
|
45365
|
-
else if (l.mode ===
|
|
45364
|
+
else if (l.mode === Qt.LINE_LOOP)
|
|
45366
45365
|
u = new Jy(h, w);
|
|
45367
|
-
else if (l.mode ===
|
|
45366
|
+
else if (l.mode === Qt.POINTS)
|
|
45368
45367
|
u = new qy(h, w);
|
|
45369
45368
|
else
|
|
45370
45369
|
throw new Error("THREE.GLTFLoader: Primitive mode unsupported: " + l.mode);
|
|
45371
|
-
Object.keys(u.geometry.morphAttributes).length > 0 && a4(u, t), u.name = g.createUniqueName(t.name || "mesh_" + A),
|
|
45370
|
+
Object.keys(u.geometry.morphAttributes).length > 0 && a4(u, t), u.name = g.createUniqueName(t.name || "mesh_" + A), is(u, t), l.extensions && YQ(e, u, l), g.assignFinalMaterial(u), r.push(u);
|
|
45372
45371
|
}
|
|
45373
45372
|
for (let E = 0, c = r.length; E < c; E++)
|
|
45374
45373
|
g.associations.set(r[E], {
|
|
@@ -45396,7 +45395,7 @@ class E4 {
|
|
|
45396
45395
|
console.warn("THREE.GLTFLoader: Missing camera parameters.");
|
|
45397
45396
|
return;
|
|
45398
45397
|
}
|
|
45399
|
-
return I.type === "perspective" ? g = new Zg(ki.radToDeg(e.yfov), e.aspectRatio || 1, e.znear || 1, e.zfar || 2e6) : I.type === "orthographic" && (g = new La(-e.xmag, e.xmag, e.ymag, -e.ymag, e.znear, e.zfar)), I.name && (g.name = this.createUniqueName(I.name)),
|
|
45398
|
+
return I.type === "perspective" ? g = new Zg(ki.radToDeg(e.yfov), e.aspectRatio || 1, e.znear || 1, e.zfar || 2e6) : I.type === "orthographic" && (g = new La(-e.xmag, e.xmag, e.ymag, -e.ymag, e.znear, e.zfar)), I.name && (g.name = this.createUniqueName(I.name)), is(g, I), Promise.resolve(g);
|
|
45400
45399
|
}
|
|
45401
45400
|
/**
|
|
45402
45401
|
* Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#skins
|
|
@@ -45481,7 +45480,7 @@ class E4 {
|
|
|
45481
45480
|
if (t.isBone === !0 ? s = new RE() : o.length > 1 ? s = new Ht() : o.length === 1 ? s = o[0] : s = new LA(), s !== o[0])
|
|
45482
45481
|
for (let B = 0, n = o.length; B < n; B++)
|
|
45483
45482
|
s.add(o[B]);
|
|
45484
|
-
if (t.name && (s.userData.name = t.name, s.name = C),
|
|
45483
|
+
if (t.name && (s.userData.name = t.name, s.name = C), is(s, t), t.extensions && YQ(I, s, t), t.matrix !== void 0) {
|
|
45485
45484
|
const B = new XA();
|
|
45486
45485
|
B.fromArray(t.matrix), s.applyMatrix4(B);
|
|
45487
45486
|
} else
|
|
@@ -45496,7 +45495,7 @@ class E4 {
|
|
|
45496
45495
|
*/
|
|
45497
45496
|
loadScene(A) {
|
|
45498
45497
|
const g = this.json, I = this.extensions, e = this.json.scenes[A], t = this, C = new Ht();
|
|
45499
|
-
e.name && (C.name = t.createUniqueName(e.name)),
|
|
45498
|
+
e.name && (C.name = t.createUniqueName(e.name)), is(C, e), e.extensions && YQ(I, C, e);
|
|
45500
45499
|
const o = e.nodes || [], s = [];
|
|
45501
45500
|
for (let B = 0, n = o.length; B < n; B++)
|
|
45502
45501
|
s.push(rK(o[B], C, g, t));
|
|
@@ -45519,27 +45518,27 @@ class E4 {
|
|
|
45519
45518
|
}
|
|
45520
45519
|
createAnimationTracks(A, g, I, e, t) {
|
|
45521
45520
|
const C = [], o = A.name ? A.name : A.uuid, s = [];
|
|
45522
|
-
|
|
45521
|
+
Zo[t.path] === Zo.weights ? A.traverse(function(a) {
|
|
45523
45522
|
a.morphTargetInfluences && s.push(a.name ? a.name : a.uuid);
|
|
45524
45523
|
}) : s.push(o);
|
|
45525
45524
|
let B;
|
|
45526
|
-
switch (
|
|
45527
|
-
case
|
|
45528
|
-
B =
|
|
45525
|
+
switch (Zo[t.path]) {
|
|
45526
|
+
case Zo.weights:
|
|
45527
|
+
B = ys;
|
|
45529
45528
|
break;
|
|
45530
|
-
case
|
|
45529
|
+
case Zo.rotation:
|
|
45531
45530
|
B = KC;
|
|
45532
45531
|
break;
|
|
45533
|
-
case
|
|
45534
|
-
case
|
|
45532
|
+
case Zo.position:
|
|
45533
|
+
case Zo.scale:
|
|
45535
45534
|
default:
|
|
45536
45535
|
switch (I.itemSize) {
|
|
45537
45536
|
case 1:
|
|
45538
|
-
B =
|
|
45537
|
+
B = ys;
|
|
45539
45538
|
break;
|
|
45540
45539
|
case 2:
|
|
45541
45540
|
case 3:
|
|
45542
|
-
B =
|
|
45541
|
+
B = Ss;
|
|
45543
45542
|
break;
|
|
45544
45543
|
case 4:
|
|
45545
45544
|
B = YE;
|
|
@@ -45550,7 +45549,7 @@ class E4 {
|
|
|
45550
45549
|
const n = e.interpolation !== void 0 ? aK[e.interpolation] : lo, r = QK(I);
|
|
45551
45550
|
for (let a = 0, E = s.length; a < E; a++) {
|
|
45552
45551
|
const c = new B(
|
|
45553
|
-
s[a] + "." +
|
|
45552
|
+
s[a] + "." + Zo[t.path],
|
|
45554
45553
|
g.array,
|
|
45555
45554
|
r,
|
|
45556
45555
|
n
|
|
@@ -45660,7 +45659,7 @@ function jM(i, A, g) {
|
|
|
45660
45659
|
});
|
|
45661
45660
|
e.push(C);
|
|
45662
45661
|
}
|
|
45663
|
-
return
|
|
45662
|
+
return is(i, A), c4(i, A, g), Promise.all(e).then(function() {
|
|
45664
45663
|
return A.targets !== void 0 ? n4(i, A.targets, g) : i;
|
|
45665
45664
|
});
|
|
45666
45665
|
}
|
|
@@ -45786,8 +45785,8 @@ const yI = class extends Py {
|
|
|
45786
45785
|
this.uniformsNeedUpdate = !0;
|
|
45787
45786
|
}
|
|
45788
45787
|
};
|
|
45789
|
-
let
|
|
45790
|
-
Q(
|
|
45788
|
+
let st = yI;
|
|
45789
|
+
Q(st, "viewProjection", new XA()), Q(st, "_viewProjectionValues", []), Q(st, "viewMatrix", new XA()), Q(st, "_viewMatrixValues", []), Q(st, "_worldSpaceCameraPosName", "_WorldSpaceCameraPos"), Q(st, "_worldSpaceCameraPos", new M()), Q(st, "_mainLightColor", new Bg()), Q(st, "_mainLightPosition", new M()), Q(st, "_lightData", new Bg());
|
|
45791
45790
|
class l4 {
|
|
45792
45791
|
constructor(A, g) {
|
|
45793
45792
|
Q(this, "parser");
|
|
@@ -45882,7 +45881,7 @@ class l4 {
|
|
|
45882
45881
|
}
|
|
45883
45882
|
}
|
|
45884
45883
|
}
|
|
45885
|
-
const c = new
|
|
45884
|
+
const c = new st(
|
|
45886
45885
|
this.identifier,
|
|
45887
45886
|
{
|
|
45888
45887
|
name: g.name ?? "",
|
|
@@ -45959,7 +45958,7 @@ function cK(i) {
|
|
|
45959
45958
|
}
|
|
45960
45959
|
});
|
|
45961
45960
|
}
|
|
45962
|
-
const
|
|
45961
|
+
const zo = We, Dh = "$___Export_Components", D4 = "NEEDLE_components";
|
|
45963
45962
|
var _X;
|
|
45964
45963
|
class d4 {
|
|
45965
45964
|
constructor() {
|
|
@@ -46014,7 +46013,7 @@ class hK {
|
|
|
46014
46013
|
!I || I.length <= 0 || (delete A.userData.components, A[Dh] = I);
|
|
46015
46014
|
}
|
|
46016
46015
|
afterSerializeUserData(A, g) {
|
|
46017
|
-
if (A.type === "Scene" &&
|
|
46016
|
+
if (A.type === "Scene" && zo && console.log("DONE", JSON.stringify(g)), A[Dh] === void 0)
|
|
46018
46017
|
return;
|
|
46019
46018
|
const I = A[Dh];
|
|
46020
46019
|
delete A[Dh], I !== null && (A.userData.components = I);
|
|
@@ -46027,7 +46026,7 @@ class hK {
|
|
|
46027
46026
|
}
|
|
46028
46027
|
afterParse(A) {
|
|
46029
46028
|
var g;
|
|
46030
|
-
|
|
46029
|
+
zo && console.log("AFTER", A);
|
|
46031
46030
|
for (const I in this.exportContext) {
|
|
46032
46031
|
const e = this.exportContext[I], t = e.node, C = e.nodeDef, o = e.nodeIndex, s = (g = t.userData) == null ? void 0 : g.components;
|
|
46033
46032
|
if (!s || s.length <= 0)
|
|
@@ -46040,14 +46039,14 @@ class hK {
|
|
|
46040
46039
|
const a = RC().writeBuiltinComponentData(r, this.context);
|
|
46041
46040
|
a !== null && n.push(a);
|
|
46042
46041
|
}
|
|
46043
|
-
n.length > 0 && (B[Jn] = n,
|
|
46042
|
+
n.length > 0 && (B[Jn] = n, zo && console.log("DID WRITE", t, "nodeIndex", o, n));
|
|
46044
46043
|
}
|
|
46045
46044
|
}
|
|
46046
46045
|
// -------------------------------------
|
|
46047
46046
|
// LOADING
|
|
46048
46047
|
// called by GLTFLoader
|
|
46049
46048
|
beforeRoot() {
|
|
46050
|
-
return
|
|
46049
|
+
return zo && console.log("BEGIN LOAD"), this.nodeToObjectMap = {}, null;
|
|
46051
46050
|
}
|
|
46052
46051
|
// called by GLTFLoader
|
|
46053
46052
|
async afterRoot(A) {
|
|
@@ -46055,7 +46054,7 @@ class hK {
|
|
|
46055
46054
|
if (!I)
|
|
46056
46055
|
return;
|
|
46057
46056
|
const e = I[this.name];
|
|
46058
|
-
|
|
46057
|
+
zo && console.log("After root", A, this.parser, I);
|
|
46059
46058
|
const t = [];
|
|
46060
46059
|
if (e === !0) {
|
|
46061
46060
|
const C = g.json.nodes;
|
|
@@ -46070,7 +46069,7 @@ class hK {
|
|
|
46070
46069
|
const r = n[this.name];
|
|
46071
46070
|
if (!r)
|
|
46072
46071
|
continue;
|
|
46073
|
-
|
|
46072
|
+
zo && console.log("NODE", s);
|
|
46074
46073
|
const a = this.nodeToObjectMap[B];
|
|
46075
46074
|
if (!a) {
|
|
46076
46075
|
console.error("Could not find object for node index: " + B, s, g);
|
|
@@ -46087,10 +46086,10 @@ class hK {
|
|
|
46087
46086
|
const I = g[Jn];
|
|
46088
46087
|
if (I) {
|
|
46089
46088
|
const e = new Array();
|
|
46090
|
-
|
|
46089
|
+
zo && console.log(A.name, I);
|
|
46091
46090
|
for (const t in I) {
|
|
46092
46091
|
const C = I[t];
|
|
46093
|
-
|
|
46092
|
+
zo && console.log("Serialized data", JSON.parse(JSON.stringify(C))), C && this.parser && e.push(oS(this.parser, C)), A.userData = A.userData || {}, A.userData[Jn] = A.userData[Jn] || [], A.userData[Jn].push(C);
|
|
46094
46093
|
}
|
|
46095
46094
|
await Promise.all(e);
|
|
46096
46095
|
}
|
|
@@ -46218,10 +46217,10 @@ var p4 = function(i, A, g, I, e) {
|
|
|
46218
46217
|
OS[28] = 258, oD[258] = 28;
|
|
46219
46218
|
var uK = DK(Xa, 0), pK = uK[0], Nf = uK[1], QE = new fe(32768);
|
|
46220
46219
|
for (var uI = 0; uI < 32768; ++uI) {
|
|
46221
|
-
var
|
|
46222
|
-
|
|
46220
|
+
var Vo = (uI & 43690) >>> 1 | (uI & 21845) << 1;
|
|
46221
|
+
Vo = (Vo & 52428) >>> 2 | (Vo & 13107) << 2, Vo = (Vo & 61680) >>> 4 | (Vo & 3855) << 4, QE[uI] = ((Vo & 65280) >>> 8 | (Vo & 255) << 8) >>> 1;
|
|
46223
46222
|
}
|
|
46224
|
-
var
|
|
46223
|
+
var dt = function(i, A, g) {
|
|
46225
46224
|
for (var I = i.length, e = 0, t = new fe(A); e < I; ++e)
|
|
46226
46225
|
++t[i[e] - 1];
|
|
46227
46226
|
var C = new fe(A);
|
|
@@ -46251,11 +46250,11 @@ for (var uI = 280; uI < 288; ++uI)
|
|
|
46251
46250
|
var Ra = new Og(32);
|
|
46252
46251
|
for (var uI = 0; uI < 32; ++uI)
|
|
46253
46252
|
Ra[uI] = 5;
|
|
46254
|
-
var wK = /* @__PURE__ */
|
|
46253
|
+
var wK = /* @__PURE__ */ dt(fo, 9, 0), fK = /* @__PURE__ */ dt(fo, 9, 1), yK = /* @__PURE__ */ dt(Ra, 5, 0), SK = /* @__PURE__ */ dt(Ra, 5, 1), nl = function(i) {
|
|
46255
46254
|
for (var A = i[0], g = 1; g < i.length; ++g)
|
|
46256
46255
|
i[g] > A && (A = i[g]);
|
|
46257
46256
|
return A;
|
|
46258
|
-
},
|
|
46257
|
+
}, Bt = function(i, A, g) {
|
|
46259
46258
|
var I = A / 8 | 0;
|
|
46260
46259
|
return (i[I] | i[I + 1] << 8) >> (A & 7) & g;
|
|
46261
46260
|
}, al = function(i, A) {
|
|
@@ -46263,7 +46262,7 @@ var wK = /* @__PURE__ */ Dt(fo, 9, 0), fK = /* @__PURE__ */ Dt(fo, 9, 1), yK = /
|
|
|
46263
46262
|
return (i[g] | i[g + 1] << 8 | i[g + 2] << 16) >> (A & 7);
|
|
46264
46263
|
}, Ic = function(i) {
|
|
46265
46264
|
return (i / 8 | 0) + (i & 7 && 1);
|
|
46266
|
-
},
|
|
46265
|
+
}, ut = function(i, A, g) {
|
|
46267
46266
|
(A == null || A < 0) && (A = 0), (g == null || g > i.length) && (g = i.length);
|
|
46268
46267
|
var I = new (i instanceof fe ? fe : i instanceof wo ? wo : Og)(g - A);
|
|
46269
46268
|
return I.set(i.subarray(A, g)), I;
|
|
@@ -46282,31 +46281,31 @@ var wK = /* @__PURE__ */ Dt(fo, 9, 0), fK = /* @__PURE__ */ Dt(fo, 9, 1), yK = /
|
|
|
46282
46281
|
}, o = g.f || 0, s = g.p || 0, B = g.b || 0, n = g.l, r = g.d, a = g.m, E = g.n, c = I * 8;
|
|
46283
46282
|
do {
|
|
46284
46283
|
if (!n) {
|
|
46285
|
-
g.f = o =
|
|
46286
|
-
var h =
|
|
46284
|
+
g.f = o = Bt(i, s, 1);
|
|
46285
|
+
var h = Bt(i, s + 1, 3);
|
|
46287
46286
|
if (s += 3, h)
|
|
46288
46287
|
if (h == 1)
|
|
46289
46288
|
n = fK, r = SK, a = 9, E = 5;
|
|
46290
46289
|
else if (h == 2) {
|
|
46291
|
-
var D =
|
|
46290
|
+
var D = Bt(i, s, 31) + 257, d = Bt(i, s + 10, 15) + 4, p = D + Bt(i, s + 5, 31) + 1;
|
|
46292
46291
|
s += 14;
|
|
46293
46292
|
for (var f = new Og(p), S = new Og(19), y = 0; y < d; ++y)
|
|
46294
|
-
S[aE[y]] =
|
|
46293
|
+
S[aE[y]] = Bt(i, s + y * 3, 7);
|
|
46295
46294
|
s += d * 3;
|
|
46296
|
-
for (var G = nl(S), k = (1 << G) - 1, F =
|
|
46297
|
-
var J = F[
|
|
46295
|
+
for (var G = nl(S), k = (1 << G) - 1, F = dt(S, G, 1), y = 0; y < p; ) {
|
|
46296
|
+
var J = F[Bt(i, s, k)];
|
|
46298
46297
|
s += J & 15;
|
|
46299
46298
|
var l = J >>> 4;
|
|
46300
46299
|
if (l < 16)
|
|
46301
46300
|
f[y++] = l;
|
|
46302
46301
|
else {
|
|
46303
46302
|
var N = 0, K = 0;
|
|
46304
|
-
for (l == 16 ? (K = 3 +
|
|
46303
|
+
for (l == 16 ? (K = 3 + Bt(i, s, 3), s += 2, N = f[y - 1]) : l == 17 ? (K = 3 + Bt(i, s, 7), s += 3) : l == 18 && (K = 11 + Bt(i, s, 127), s += 7); K--; )
|
|
46305
46304
|
f[y++] = N;
|
|
46306
46305
|
}
|
|
46307
46306
|
}
|
|
46308
46307
|
var x = f.subarray(0, D), T = f.subarray(D);
|
|
46309
|
-
a = nl(x), E = nl(T), n =
|
|
46308
|
+
a = nl(x), E = nl(T), n = dt(x, a, 1), r = dt(T, E, 1);
|
|
46310
46309
|
} else
|
|
46311
46310
|
throw "invalid block type";
|
|
46312
46311
|
else {
|
|
@@ -46344,7 +46343,7 @@ var wK = /* @__PURE__ */ Dt(fo, 9, 0), fK = /* @__PURE__ */ Dt(fo, 9, 1), yK = /
|
|
|
46344
46343
|
var EA = rA - 254;
|
|
46345
46344
|
if (rA > 264) {
|
|
46346
46345
|
var y = rA - 257, dA = Va[y];
|
|
46347
|
-
EA =
|
|
46346
|
+
EA = Bt(i, s, (1 << dA) - 1) + OS[y], s += dA;
|
|
46348
46347
|
}
|
|
46349
46348
|
var IA = r[al(i, s) & _], nA = IA >>> 4;
|
|
46350
46349
|
if (!IA)
|
|
@@ -46368,7 +46367,7 @@ var wK = /* @__PURE__ */ Dt(fo, 9, 0), fK = /* @__PURE__ */ Dt(fo, 9, 1), yK = /
|
|
|
46368
46367
|
}
|
|
46369
46368
|
g.l = n, g.p = gA, g.b = B, n && (o = 1, g.m = a, g.d = r, g.n = E);
|
|
46370
46369
|
} while (!o);
|
|
46371
|
-
return B == A.length ? A :
|
|
46370
|
+
return B == A.length ? A : ut(A, 0, B);
|
|
46372
46371
|
}, CC = function(i, A, g) {
|
|
46373
46372
|
g <<= A & 7;
|
|
46374
46373
|
var I = A / 8 | 0;
|
|
@@ -46466,8 +46465,8 @@ var wK = /* @__PURE__ */ Dt(fo, 9, 0), fK = /* @__PURE__ */ Dt(fo, 9, 1), yK = /
|
|
|
46466
46465
|
return kr(A, n, i.subarray(s, s + B));
|
|
46467
46466
|
var T, O, _, gA;
|
|
46468
46467
|
if (CC(A, n, 1 + (x < K)), n += 2, x < K) {
|
|
46469
|
-
T =
|
|
46470
|
-
var rA =
|
|
46468
|
+
T = dt(a, E, 0), O = a, _ = dt(h, l, 0), gA = h;
|
|
46469
|
+
var rA = dt(k, F, 0);
|
|
46471
46470
|
CC(A, n, D - 257), CC(A, n + 5, f - 1), CC(A, n + 10, J - 4), n += 14;
|
|
46472
46471
|
for (var y = 0; y < J; ++y)
|
|
46473
46472
|
CC(A, n + 3 * y, k[aE[y]]);
|
|
@@ -46536,7 +46535,7 @@ var wK = /* @__PURE__ */ Dt(fo, 9, 0), fK = /* @__PURE__ */ Dt(fo, 9, 1), yK = /
|
|
|
46536
46535
|
}
|
|
46537
46536
|
B = Jf(i, s, t, p, f, S, G, k, J, n - J, B), !t && B & 7 && (B = kr(s, B + 1, so));
|
|
46538
46537
|
}
|
|
46539
|
-
return
|
|
46538
|
+
return ut(o, 0, I + Ic(B) + e);
|
|
46540
46539
|
}, MK = /* @__PURE__ */ function() {
|
|
46541
46540
|
for (var i = new wo(256), A = 0; A < 256; ++A) {
|
|
46542
46541
|
for (var g = A, I = 9; --I; )
|
|
@@ -46616,9 +46615,9 @@ var wK = /* @__PURE__ */ Dt(fo, 9, 0), fK = /* @__PURE__ */ Dt(fo, 9, 1), yK = /
|
|
|
46616
46615
|
var B = ic({}, dh[g][1]);
|
|
46617
46616
|
return p4(dh[g][0] + ";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage=" + A.toString() + "}", g, B, w4(B), I);
|
|
46618
46617
|
}, AQ = function() {
|
|
46619
|
-
return [Og, fe, wo, Va, Xa, aE, OS, pK, fK, SK, QE,
|
|
46618
|
+
return [Og, fe, wo, Va, Xa, aE, OS, pK, fK, SK, QE, dt, nl, Bt, al, Ic, ut, ec, iQ, ms, PS];
|
|
46620
46619
|
}, gQ = function() {
|
|
46621
|
-
return [Og, fe, wo, Va, Xa, aE, oD, Nf, wK, fo, yK, Ra, QE, GK, so,
|
|
46620
|
+
return [Og, fe, wo, Va, Xa, aE, oD, Nf, wK, fo, yK, Ra, QE, GK, so, dt, CC, Ln, Ql, sD, Kf, bn, kr, Jf, Ic, ut, kK, WB, tc, ms];
|
|
46622
46621
|
}, RK = function() {
|
|
46623
46622
|
return [WS, ZS, gI, $a, MK];
|
|
46624
46623
|
}, mK = function() {
|
|
@@ -46751,7 +46750,7 @@ var yi = /* @__PURE__ */ function() {
|
|
|
46751
46750
|
}, i.prototype.c = function(A) {
|
|
46752
46751
|
this.d = this.s.i = A || !1;
|
|
46753
46752
|
var g = this.s.b, I = ec(this.p, this.o, this.s);
|
|
46754
|
-
this.ondata(
|
|
46753
|
+
this.ondata(ut(I, g, this.s.b), this.d), this.o = ut(I, this.s.b - 32768), this.s.b = this.o.length, this.p = ut(this.p, this.s.p / 8 | 0), this.s.p &= 7;
|
|
46755
46754
|
}, i.prototype.push = function(A, g) {
|
|
46756
46755
|
this.e(A), this.c(g);
|
|
46757
46756
|
}, i;
|
|
@@ -46961,13 +46960,13 @@ function YK(i, A, g) {
|
|
|
46961
46960
|
AQ,
|
|
46962
46961
|
NK,
|
|
46963
46962
|
function() {
|
|
46964
|
-
return [
|
|
46963
|
+
return [Es];
|
|
46965
46964
|
}
|
|
46966
46965
|
], function(I) {
|
|
46967
|
-
return ms(
|
|
46966
|
+
return ms(Es(I.data[0], PS(I.data[1])));
|
|
46968
46967
|
}, 5, g);
|
|
46969
46968
|
}
|
|
46970
|
-
function
|
|
46969
|
+
function Es(i, A) {
|
|
46971
46970
|
return ec((JK(i), i.subarray(2, -4)), A);
|
|
46972
46971
|
}
|
|
46973
46972
|
var HK = /* @__PURE__ */ function() {
|
|
@@ -47007,7 +47006,7 @@ function G4(i, A, g) {
|
|
|
47007
47006
|
return i[0] == 31 && i[1] == 139 && i[2] == 8 ? vK(i, A, g) : (i[0] & 15) != 8 || i[0] >> 4 > 7 || (i[0] << 8 | i[1]) % 31 ? $S(i, A, g) : YK(i, A, g);
|
|
47008
47007
|
}
|
|
47009
47008
|
function k4(i, A) {
|
|
47010
|
-
return i[0] == 31 && i[1] == 139 && i[2] == 8 ? QD(i, A) : (i[0] & 15) != 8 || i[0] >> 4 > 7 || (i[0] << 8 | i[1]) % 31 ? iQ(i, A) :
|
|
47009
|
+
return i[0] == 31 && i[1] == 139 && i[2] == 8 ? QD(i, A) : (i[0] & 15) != 8 || i[0] >> 4 > 7 || (i[0] << 8 | i[1]) % 31 ? iQ(i, A) : Es(i, A);
|
|
47011
47010
|
}
|
|
47012
47011
|
var A0 = function(i, A, g, I) {
|
|
47013
47012
|
for (var e in i) {
|
|
@@ -47023,7 +47022,7 @@ var OK = function(i) {
|
|
|
47023
47022
|
for (var A = "", g = 0; ; ) {
|
|
47024
47023
|
var I = i[g++], e = (I > 127) + (I > 223) + (I > 239);
|
|
47025
47024
|
if (g + e > i.length)
|
|
47026
|
-
return [A,
|
|
47025
|
+
return [A, ut(i, g - 1)];
|
|
47027
47026
|
e ? e == 3 ? (I = ((I & 15) << 18 | (i[g++] & 63) << 12 | (i[g++] & 63) << 6 | i[g++] & 63) - 65536, A += String.fromCharCode(55296 | I >> 10, 56320 | I & 1023)) : e & 1 ? A += String.fromCharCode((I & 31) << 6 | i[g++] & 63) : A += String.fromCharCode((I & 15) << 12 | (i[g++] & 63) << 6 | i[g++] & 63) : A += String.fromCharCode(I);
|
|
47028
47027
|
}
|
|
47029
47028
|
}, M4 = /* @__PURE__ */ function() {
|
|
@@ -47084,7 +47083,7 @@ function FC(i, A) {
|
|
|
47084
47083
|
var B = i.charCodeAt(I);
|
|
47085
47084
|
B < 128 || A ? o(B) : B < 2048 ? (o(192 | B >> 6), o(128 | B & 63)) : B > 55295 && B < 57344 ? (B = 65536 + (B & 1023 << 10) | i.charCodeAt(++I) & 1023, o(240 | B >> 18), o(128 | B >> 12 & 63), o(128 | B >> 6 & 63), o(128 | B & 63)) : (o(224 | B >> 12), o(128 | B >> 6 & 63), o(128 | B & 63));
|
|
47086
47085
|
}
|
|
47087
|
-
return
|
|
47086
|
+
return ut(t, 0, C);
|
|
47088
47087
|
}
|
|
47089
47088
|
function g0(i, A) {
|
|
47090
47089
|
if (A) {
|
|
@@ -47111,7 +47110,7 @@ var _K = function(i) {
|
|
|
47111
47110
|
for (; Bi(i, A) != 1; A += 4 + Bi(i, A + 2))
|
|
47112
47111
|
;
|
|
47113
47112
|
return [Lp(i, A + 12), Lp(i, A + 4), Lp(i, A + 20)];
|
|
47114
|
-
},
|
|
47113
|
+
}, ds = function(i) {
|
|
47115
47114
|
var A = 0;
|
|
47116
47115
|
if (i)
|
|
47117
47116
|
for (var g in i) {
|
|
@@ -47122,7 +47121,7 @@ var _K = function(i) {
|
|
|
47122
47121
|
}
|
|
47123
47122
|
return A;
|
|
47124
47123
|
}, ma = function(i, A, g, I, e, t, C, o) {
|
|
47125
|
-
var s = I.length, B = g.extra, n = o && o.length, r =
|
|
47124
|
+
var s = I.length, B = g.extra, n = o && o.length, r = ds(B);
|
|
47126
47125
|
gI(i, A, C != null ? 33639248 : 67324752), A += 4, C != null && (i[A++] = 20, i[A++] = g.os), i[A] = 20, A += 2, i[A++] = g.flag << 1 | (t == null && 8), i[A++] = e && 8, i[A++] = g.compression & 255, i[A++] = g.compression >> 8;
|
|
47127
47126
|
var a = new Date(g.mtime == null ? Date.now() : g.mtime), E = a.getFullYear() - 1980;
|
|
47128
47127
|
if (E < 0 || E > 119)
|
|
@@ -47182,7 +47181,7 @@ var _K = function(i) {
|
|
|
47182
47181
|
var g = this;
|
|
47183
47182
|
if (this.d & 2)
|
|
47184
47183
|
throw "stream finished";
|
|
47185
|
-
var I = FC(A.filename), e = I.length, t = A.comment, C = t && FC(t), o = e != A.filename.length || C && t.length != C.length, s = e +
|
|
47184
|
+
var I = FC(A.filename), e = I.length, t = A.comment, C = t && FC(t), o = e != A.filename.length || C && t.length != C.length, s = e + ds(A.extra) + 30;
|
|
47186
47185
|
if (e > 65535)
|
|
47187
47186
|
throw "filename too long";
|
|
47188
47187
|
var B = new Og(s);
|
|
@@ -47233,11 +47232,11 @@ var _K = function(i) {
|
|
|
47233
47232
|
}, i.prototype.e = function() {
|
|
47234
47233
|
for (var A = 0, g = 0, I = 0, e = 0, t = this.u; e < t.length; e++) {
|
|
47235
47234
|
var C = t[e];
|
|
47236
|
-
I += 46 + C.f.length +
|
|
47235
|
+
I += 46 + C.f.length + ds(C.extra) + (C.o ? C.o.length : 0);
|
|
47237
47236
|
}
|
|
47238
47237
|
for (var o = new Og(I + 22), s = 0, B = this.u; s < B.length; s++) {
|
|
47239
47238
|
var C = B[s];
|
|
47240
|
-
ma(o, A, C, C.f, C.u, C.c, g, C.o), A += 46 + C.f.length +
|
|
47239
|
+
ma(o, A, C, C.f, C.u, C.c, g, C.o), A += 46 + C.f.length + ds(C.extra) + (C.o ? C.o.length : 0), g += C.b;
|
|
47241
47240
|
}
|
|
47242
47241
|
I0(o, A, this.u.length, I, g), this.ondata(null, o, !0), this.d = 2;
|
|
47243
47242
|
}, i.prototype.terminate = function() {
|
|
@@ -47264,7 +47263,7 @@ function N4(i, A, g) {
|
|
|
47264
47263
|
try {
|
|
47265
47264
|
var d = D.c.length;
|
|
47266
47265
|
ma(h, o, D, D.f, D.u, d);
|
|
47267
|
-
var p = 30 + D.f.length +
|
|
47266
|
+
var p = 30 + D.f.length + ds(D.extra), f = o + p;
|
|
47268
47267
|
h.set(D.c, f), ma(h, C, D, D.f, D.u, d, o, D.m), C += 16 + p + (D.m ? D.m.length : 0), o = f + d;
|
|
47269
47268
|
} catch (S) {
|
|
47270
47269
|
return g(S, null);
|
|
@@ -47276,7 +47275,7 @@ function N4(i, A, g) {
|
|
|
47276
47275
|
for (var E = function(h) {
|
|
47277
47276
|
var l = e[h], u = I[l], w = u[0], D = u[1], d = $a(), p = w.length;
|
|
47278
47277
|
d.p(w);
|
|
47279
|
-
var f = FC(l), S = f.length, y = D.comment, G = y && FC(y), k = G && G.length, F =
|
|
47278
|
+
var f = FC(l), S = f.length, y = D.comment, G = y && FC(y), k = G && G.length, F = ds(D.extra), J = D.level == 0 ? 0 : 8, N = function(K, x) {
|
|
47280
47279
|
if (K)
|
|
47281
47280
|
r(), g(K, null);
|
|
47282
47281
|
else {
|
|
@@ -47312,7 +47311,7 @@ function ZK(i, A) {
|
|
|
47312
47311
|
A0(i, "", g, A);
|
|
47313
47312
|
var e = 0, t = 0;
|
|
47314
47313
|
for (var C in g) {
|
|
47315
|
-
var o = g[C], s = o[0], B = o[1], n = B.level == 0 ? 0 : 8, r = FC(C), a = r.length, E = B.comment, c = E && FC(E), h = c && c.length, l =
|
|
47314
|
+
var o = g[C], s = o[0], B = o[1], n = B.level == 0 ? 0 : 8, r = FC(C), a = r.length, E = B.comment, c = E && FC(E), h = c && c.length, l = ds(B.extra);
|
|
47316
47315
|
if (a > 65535)
|
|
47317
47316
|
throw "filename too long";
|
|
47318
47317
|
var u = n ? tc(s, B) : s, w = u.length, D = $a();
|
|
@@ -47330,7 +47329,7 @@ function ZK(i, A) {
|
|
|
47330
47329
|
for (var d = new Og(t + 22), p = e, f = t - e, S = 0; S < I.length; ++S) {
|
|
47331
47330
|
var r = I[S];
|
|
47332
47331
|
ma(d, r.o, r, r.f, r.u, r.c.length);
|
|
47333
|
-
var y = 30 + r.f.length +
|
|
47332
|
+
var y = 30 + r.f.length + ds(r.extra);
|
|
47334
47333
|
d.set(r.c, r.o + y), ma(d, e, r, r.f, r.u, r.c.length, r.o, r.m), e += 16 + y + (r.m ? r.m.length : 0);
|
|
47335
47334
|
}
|
|
47336
47335
|
return I0(d, e, I.length, f, p), d;
|
|
@@ -47365,7 +47364,7 @@ var zK = /* @__PURE__ */ function() {
|
|
|
47365
47364
|
}), this.terminate = this.i.terminate);
|
|
47366
47365
|
}
|
|
47367
47366
|
return i.prototype.push = function(A, g) {
|
|
47368
|
-
this.i.terminate && (A =
|
|
47367
|
+
this.i.terminate && (A = ut(A, 0)), this.i.push(A, g);
|
|
47369
47368
|
}, i.compression = 8, i;
|
|
47370
47369
|
}(), q4 = /* @__PURE__ */ function() {
|
|
47371
47370
|
function i(A) {
|
|
@@ -47481,7 +47480,7 @@ function L4(i, A) {
|
|
|
47481
47480
|
S ? (I(), A(S, null)) : (e[u] = y, --C || A(null, e));
|
|
47482
47481
|
};
|
|
47483
47482
|
if (!c)
|
|
47484
|
-
p(null,
|
|
47483
|
+
p(null, ut(i, d, d + h));
|
|
47485
47484
|
else if (c == 8) {
|
|
47486
47485
|
var f = i.subarray(d, d + h);
|
|
47487
47486
|
if (h < 32e4)
|
|
@@ -47514,7 +47513,7 @@ function b4(i) {
|
|
|
47514
47513
|
for (var C = 0; C < I; ++C) {
|
|
47515
47514
|
var o = WK(i, e, t), s = o[0], B = o[1], n = o[2], r = o[3], a = o[4], E = o[5], c = PK(i, E);
|
|
47516
47515
|
if (e = a, !s)
|
|
47517
|
-
A[r] =
|
|
47516
|
+
A[r] = ut(i, c, c + B);
|
|
47518
47517
|
else if (s == 8)
|
|
47519
47518
|
A[r] = iQ(i.subarray(c, c + B), new Og(n));
|
|
47520
47519
|
else
|
|
@@ -47567,7 +47566,7 @@ const gU = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
47567
47566
|
unzip: L4,
|
|
47568
47567
|
unzipSync: b4,
|
|
47569
47568
|
unzlib: YK,
|
|
47570
|
-
unzlibSync:
|
|
47569
|
+
unzlibSync: Es,
|
|
47571
47570
|
zip: N4,
|
|
47572
47571
|
zipSync: ZK,
|
|
47573
47572
|
zlib: y4,
|
|
@@ -47923,7 +47922,7 @@ class vf extends Vy {
|
|
|
47923
47922
|
function kA(R) {
|
|
47924
47923
|
const q = R.array.slice(R.offset.value, R.offset.value + R.size);
|
|
47925
47924
|
typeof gU > "u" && console.error("THREE.EXRLoader: External library fflate.min.js required.");
|
|
47926
|
-
const H =
|
|
47925
|
+
const H = Es(q), j = new Uint8Array(H.length);
|
|
47927
47926
|
return hA(H), FA(H, j), new DataView(j.buffer);
|
|
47928
47927
|
}
|
|
47929
47928
|
function NA(R) {
|
|
@@ -47966,7 +47965,7 @@ class vf extends Vy {
|
|
|
47966
47965
|
function _A(R) {
|
|
47967
47966
|
const q = R.array.slice(R.offset.value, R.offset.value + R.size);
|
|
47968
47967
|
typeof gU > "u" && console.error("THREE.EXRLoader: External library fflate.min.js required.");
|
|
47969
|
-
const H =
|
|
47968
|
+
const H = Es(q), j = R.lines * R.channels * R.width, oA = R.type == 1 ? new Uint16Array(j) : new Uint32Array(j);
|
|
47970
47969
|
let AA = 0, lA = 0;
|
|
47971
47970
|
const RA = new Array(4);
|
|
47972
47971
|
for (let vA = 0; vA < R.lines; vA++)
|
|
@@ -48040,7 +48039,7 @@ class vf extends Vy {
|
|
|
48040
48039
|
HA = new Uint16Array(oA.totalAcUncompressedCount), Cg(R.array, q, H, oA.acCompressedSize, HA, oA.totalAcUncompressedCount);
|
|
48041
48040
|
break;
|
|
48042
48041
|
case 1:
|
|
48043
|
-
const ig = R.array.slice(H.value, H.value + oA.totalAcUncompressedCount), Eg =
|
|
48042
|
+
const ig = R.array.slice(H.value, H.value + oA.totalAcUncompressedCount), Eg = Es(ig);
|
|
48044
48043
|
HA = new Uint16Array(Eg.buffer), H.value += oA.totalAcUncompressedCount;
|
|
48045
48044
|
break;
|
|
48046
48045
|
}
|
|
@@ -48053,7 +48052,7 @@ class vf extends Vy {
|
|
|
48053
48052
|
WA = new Uint16Array(kA(ig).buffer), H.value += oA.dcCompressedSize;
|
|
48054
48053
|
}
|
|
48055
48054
|
if (oA.rleRawSize > 0) {
|
|
48056
|
-
const ig = R.array.slice(H.value, H.value + oA.rleCompressedSize), Eg =
|
|
48055
|
+
const ig = R.array.slice(H.value, H.value + oA.rleCompressedSize), Eg = Es(ig);
|
|
48057
48056
|
JA = zA(Eg.buffer), H.value += oA.rleCompressedSize;
|
|
48058
48057
|
}
|
|
48059
48058
|
let Dg = 0;
|
|
@@ -48338,7 +48337,7 @@ class vf extends Vy {
|
|
|
48338
48337
|
console.error("THREE.EXRLoader: unsupported type: ", oA);
|
|
48339
48338
|
break;
|
|
48340
48339
|
}
|
|
48341
|
-
return AA.bytesPerLine = AA.width * AA.inputSize * AA.channels, AA.outputChannels == 4 ? (AA.format = dI, AA.encoding = WI) : (AA.format =
|
|
48340
|
+
return AA.bytesPerLine = AA.width * AA.inputSize * AA.channels, AA.outputChannels == 4 ? (AA.format = dI, AA.encoding = WI) : (AA.format = ns, AA.encoding = WI), AA;
|
|
48342
48341
|
}
|
|
48343
48342
|
const tn = new DataView(A), fu = new Uint8Array(A), v = { value: 0 }, tA = uc(tn, A, v), iA = wu(tA, tn, fu, v, this.type), eA = { value: 0 }, uA = { R: 0, G: 1, B: 2, A: 3, Y: 0 };
|
|
48344
48343
|
for (let R = 0; R < iA.height / iA.scanlineBlockSize; R++) {
|
|
@@ -48481,7 +48480,7 @@ class H4 extends TA {
|
|
|
48481
48480
|
}
|
|
48482
48481
|
awake() {
|
|
48483
48482
|
if (this.sourceId) {
|
|
48484
|
-
const g = this.environmentReflectionSource === yf.Skybox ?
|
|
48483
|
+
const g = this.environmentReflectionSource === yf.Skybox ? rs.Skybox : rs.Reflection, I = this.context.lightmaps.tryGet(this.sourceId, g, 0);
|
|
48485
48484
|
this._hasReflection = I != null, I && this.context.rendererData.registerReflection(this.sourceId, I);
|
|
48486
48485
|
}
|
|
48487
48486
|
vn && window.addEventListener("keydown", (g) => {
|
|
@@ -48534,7 +48533,7 @@ const O4 = Symbol("stencils"), rB = class {
|
|
|
48534
48533
|
const t = I[e];
|
|
48535
48534
|
if (T4(t.layer, A)) {
|
|
48536
48535
|
vp && console.log(t), setTimeout(() => {
|
|
48537
|
-
|
|
48536
|
+
ji() && ES(A.gameObject) && (ko("Stencil not supported on instanced objects"), console.warn("Stencil not supported on instanced objects", A));
|
|
48538
48537
|
}, 500);
|
|
48539
48538
|
for (let C = 0; C < A.sharedMaterials.length; C++) {
|
|
48540
48539
|
let o = A.sharedMaterials[C];
|
|
@@ -50732,7 +50731,7 @@ class KW extends LA {
|
|
|
50732
50731
|
this.intersectBoxObject(A) ? A.onPress() : A.onClear(), A.isPressed() && A.whilePressed();
|
|
50733
50732
|
}
|
|
50734
50733
|
}
|
|
50735
|
-
const JW = 0.05, aU = 0.02, wh = 0.01, QU = 0.02, rU = 1, Mn = 0.4, qW = 2e-3, HQ = 0.01, fh = 3e-3, EU = 0.035, BI = 16,
|
|
50734
|
+
const JW = 0.05, aU = 0.02, wh = 0.01, QU = 0.02, rU = 1, Mn = 0.4, qW = 2e-3, HQ = 0.01, fh = 3e-3, EU = 0.035, BI = 16, Ct = 12, _p = 110, LW = new M(0, 1, 0), bW = new M(0, 0, 1), vW = 0.02, xW = 1.5;
|
|
50736
50735
|
class YW extends LA {
|
|
50737
50736
|
constructor(A, g) {
|
|
50738
50737
|
super(), this.hand = A, this.controller = g, 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, A.addEventListener("connected", (I) => {
|
|
@@ -50760,12 +50759,12 @@ class YW extends LA {
|
|
|
50760
50759
|
Math.cos(Math.PI * _p / 180) * A,
|
|
50761
50760
|
0
|
|
50762
50761
|
);
|
|
50763
|
-
for (let B = 0; B <
|
|
50762
|
+
for (let B = 0; B < Ct; B++)
|
|
50764
50763
|
this._drawVerticesRing(g, e, B + 1), e.applyAxisAngle(
|
|
50765
50764
|
LW,
|
|
50766
|
-
Math.PI * _p / 180 / (
|
|
50765
|
+
Math.PI * _p / 180 / (Ct * -2)
|
|
50767
50766
|
);
|
|
50768
|
-
const t = BI * (1 +
|
|
50767
|
+
const t = BI * (1 + Ct), C = BI * (1 + Ct) + 1, o = new M(
|
|
50769
50768
|
0,
|
|
50770
50769
|
0,
|
|
50771
50770
|
-1 * (EU - A)
|
|
@@ -50780,12 +50779,12 @@ class YW extends LA {
|
|
|
50780
50779
|
createPointer() {
|
|
50781
50780
|
let A, g;
|
|
50782
50781
|
const I = new Array(
|
|
50783
|
-
((
|
|
50782
|
+
((Ct + 1) * BI + 2) * 3
|
|
50784
50783
|
).fill(0), e = [];
|
|
50785
50784
|
for (this.pointerGeometry = new lg(), this.pointerGeometry.setAttribute(
|
|
50786
50785
|
"position",
|
|
50787
50786
|
new tg(I, 3)
|
|
50788
|
-
), this._updatePointerVertices(HQ), A = 0; A <
|
|
50787
|
+
), this._updatePointerVertices(HQ), A = 0; A < Ct; A++) {
|
|
50789
50788
|
for (g = 0; g < BI - 1; g++)
|
|
50790
50789
|
e.push(
|
|
50791
50790
|
A * BI + g,
|
|
@@ -50806,17 +50805,17 @@ class YW extends LA {
|
|
|
50806
50805
|
(A + 2) * BI - 1
|
|
50807
50806
|
);
|
|
50808
50807
|
}
|
|
50809
|
-
const t = BI * (1 +
|
|
50808
|
+
const t = BI * (1 + Ct), C = BI * (1 + Ct) + 1;
|
|
50810
50809
|
for (A = 0; A < BI - 1; A++)
|
|
50811
50810
|
e.push(t, A + 1, A), e.push(
|
|
50812
50811
|
C,
|
|
50813
|
-
A + BI *
|
|
50814
|
-
A + BI *
|
|
50812
|
+
A + BI * Ct,
|
|
50813
|
+
A + BI * Ct + 1
|
|
50815
50814
|
);
|
|
50816
50815
|
e.push(t, 0, BI - 1), e.push(
|
|
50817
50816
|
C,
|
|
50818
|
-
BI * (
|
|
50819
|
-
BI *
|
|
50817
|
+
BI * (Ct + 1) - 1,
|
|
50818
|
+
BI * Ct
|
|
50820
50819
|
);
|
|
50821
50820
|
const o = new QI();
|
|
50822
50821
|
o.transparent = !0, o.opacity = Mn, this.pointerGeometry.setIndex(e), this.pointerMesh = new SA(this.pointerGeometry, o), this.pointerMesh.position.set(0, 0, -1 * HQ), this.pointerObject = new LA(), this.pointerObject.add(this.pointerMesh), this.raycaster = new Oa();
|
|
@@ -51377,7 +51376,7 @@ const nC = class extends TA {
|
|
|
51377
51376
|
};
|
|
51378
51377
|
let _e = nC;
|
|
51379
51378
|
Q(_e, "registry", []), Q(_e, "firstApply"), Q(_e, "buffer", new kC());
|
|
51380
|
-
const
|
|
51379
|
+
const gs = cA("debugavatar"), Lt = class extends TA {
|
|
51381
51380
|
constructor() {
|
|
51382
51381
|
super(...arguments);
|
|
51383
51382
|
Q(this, "connectionId");
|
|
@@ -51393,7 +51392,7 @@ const As = cA("debugavatar"), Lt = class extends TA {
|
|
|
51393
51392
|
return Lt._onAvatarMarkerDestroyed.push(g), g;
|
|
51394
51393
|
}
|
|
51395
51394
|
awake() {
|
|
51396
|
-
Lt.instances.push(this),
|
|
51395
|
+
Lt.instances.push(this), gs && console.log(this);
|
|
51397
51396
|
for (const g of Lt._onNewAvatarMarkerAdded)
|
|
51398
51397
|
g({ avatarMarker: this, gameObject: this.gameObject });
|
|
51399
51398
|
}
|
|
@@ -51479,7 +51478,7 @@ const xr = class {
|
|
|
51479
51478
|
}
|
|
51480
51479
|
destroy() {
|
|
51481
51480
|
var A, g;
|
|
51482
|
-
|
|
51481
|
+
gs && console.log("Destroy avatar", this.guid), (A = this.root) == null || A.removeFromParent(), (g = this.avatarMarker) == null || g.destroy(), this.lastAvatarId = null, this.head && Si.Remove(this.context, this.head);
|
|
51483
51482
|
}
|
|
51484
51483
|
updateVisibility() {
|
|
51485
51484
|
const A = this.root;
|
|
@@ -51487,7 +51486,7 @@ const xr = class {
|
|
|
51487
51486
|
}
|
|
51488
51487
|
async setupCustomAvatar(A) {
|
|
51489
51488
|
var e, t, C;
|
|
51490
|
-
if (
|
|
51489
|
+
if (gs && console.log("LOAD", A, this), !A || typeof A == "string" && A.length <= 0)
|
|
51491
51490
|
return !1;
|
|
51492
51491
|
this.head && Si.Remove(this.context, this.head);
|
|
51493
51492
|
const g = A;
|
|
@@ -51496,16 +51495,16 @@ const xr = class {
|
|
|
51496
51495
|
const o = g.asset;
|
|
51497
51496
|
BA.setActive(o, !1), A = BA.instantiate(o), BA.setActive(A, !0);
|
|
51498
51497
|
}
|
|
51499
|
-
|
|
51498
|
+
gs && console.log(A);
|
|
51500
51499
|
const I = await xr.loader.getOrCreateNewAvatarInstance(this.context, A);
|
|
51501
|
-
if (
|
|
51500
|
+
if (gs && console.log(I, I == null ? void 0 : I.isValid, this.lastAvatarId, A), I != null && I.isValid) {
|
|
51502
51501
|
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 = BA.addNewComponent(this.root, Je), this.avatarMarker.connectionId = this.guid, this.avatarMarker.avatar = this, this.head && this.head !== I.head && ((e = this.head) == null || e.removeFromParent()), this.head = I.head, this.headScale.copy(this.head.scale), this.head && !this.isLocalAvatar && Si.Add(this.context, this.head, this.avatarMarker), I.leftHand && ((t = this.handLeft) == null || t.removeFromParent()), this.handLeft = I.leftHand ?? this.handLeft, this.handLeft ? this.handLeftScale.copy(this.handLeft.scale) : this.handLeftScale.set(1, 1, 1), I.rigthHand && ((C = this.handRight) == null || C.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(...BA.getComponentsInChildren(this.root, _e)), this.flags.length <= 0 && this.head) {
|
|
51503
51502
|
const o = BA.addNewComponent(this.head, _e);
|
|
51504
|
-
o.visibleIn = se.ThirdPerson | se.VR, this.flags.push(o),
|
|
51503
|
+
o.visibleIn = se.ThirdPerson | se.VR, this.flags.push(o), gs && console.log("Added flag to head: " + o.visibleIn, this.head.name);
|
|
51505
51504
|
}
|
|
51506
|
-
return
|
|
51505
|
+
return gs && console.log("[Avatar], is Local? ", this.isLocalAvatar, this.root), this.updateFlags(), this.updateVisibility(), !0;
|
|
51507
51506
|
} else
|
|
51508
|
-
return
|
|
51507
|
+
return gs && console.warn("build avatar failed"), !1;
|
|
51509
51508
|
}
|
|
51510
51509
|
};
|
|
51511
51510
|
let Bo = xr;
|
|
@@ -51611,7 +51610,7 @@ class oc extends TA {
|
|
|
51611
51610
|
Q(this, "usedBy", null);
|
|
51612
51611
|
}
|
|
51613
51612
|
}
|
|
51614
|
-
const
|
|
51613
|
+
const Mo = function(i, A) {
|
|
51615
51614
|
return function(g, I, e) {
|
|
51616
51615
|
g8(g, I, e, i, A);
|
|
51617
51616
|
};
|
|
@@ -51619,7 +51618,7 @@ const ko = function(i, A) {
|
|
|
51619
51618
|
function g8(i, A, g, I, e) {
|
|
51620
51619
|
if (!(!e && !I && !i.onValidate)) {
|
|
51621
51620
|
if (g !== void 0) {
|
|
51622
|
-
console.error("Invalid usage of validate decorator. Only fields can be validated.", i, A, g),
|
|
51621
|
+
console.error("Invalid usage of validate decorator. Only fields can be validated.", i, A, g), ct("Invalid usage of validate decorator. Only fields can be validated. Property: " + A, cs.Error);
|
|
51623
51622
|
return;
|
|
51624
51623
|
}
|
|
51625
51624
|
if (i.__internalAwake) {
|
|
@@ -51644,7 +51643,7 @@ function g8(i, A, g, I, e) {
|
|
|
51644
51643
|
}
|
|
51645
51644
|
}
|
|
51646
51645
|
}
|
|
51647
|
-
var I8 = Object.defineProperty, e8 = Object.getOwnPropertyDescriptor,
|
|
51646
|
+
var I8 = Object.defineProperty, e8 = Object.getOwnPropertyDescriptor, Uo = (i, A, g, I) => {
|
|
51648
51647
|
for (var e = I > 1 ? void 0 : I ? e8(A, g) : A, t = i.length - 1, C; t >= 0; t--)
|
|
51649
51648
|
(C = i[t]) && (e = (I ? C(A, g, e) : C(e)) || e);
|
|
51650
51649
|
return I && e && I8(A, g, e), e;
|
|
@@ -51782,7 +51781,7 @@ const Yf = (cw = class extends TA {
|
|
|
51782
51781
|
this._watch = void 0, this._propertiesChanged = !1;
|
|
51783
51782
|
}
|
|
51784
51783
|
onEnable() {
|
|
51785
|
-
this._watch || (this._watch = new i8(this.gameObject, this.context)), this._watch.start(!0, !0), this.startCoroutine(this.beforePhysics(),
|
|
51784
|
+
this._watch || (this._watch = new i8(this.gameObject, this.context)), this._watch.start(!0, !0), this.startCoroutine(this.beforePhysics(), zi.LateUpdate);
|
|
51786
51785
|
}
|
|
51787
51786
|
onDisable() {
|
|
51788
51787
|
var A;
|
|
@@ -51887,40 +51886,40 @@ const Yf = (cw = class extends TA {
|
|
|
51887
51886
|
}
|
|
51888
51887
|
}, Q(cw, "tempPosition", new M()), cw);
|
|
51889
51888
|
let qI = Yf;
|
|
51890
|
-
|
|
51891
|
-
|
|
51889
|
+
Uo([
|
|
51890
|
+
Mo(),
|
|
51892
51891
|
U()
|
|
51893
51892
|
], qI.prototype, "mass", 2);
|
|
51894
|
-
|
|
51895
|
-
|
|
51893
|
+
Uo([
|
|
51894
|
+
Mo(),
|
|
51896
51895
|
U()
|
|
51897
51896
|
], qI.prototype, "useGravity", 2);
|
|
51898
|
-
|
|
51899
|
-
|
|
51897
|
+
Uo([
|
|
51898
|
+
Mo(),
|
|
51900
51899
|
U()
|
|
51901
51900
|
], qI.prototype, "constraints", 2);
|
|
51902
|
-
|
|
51903
|
-
|
|
51901
|
+
Uo([
|
|
51902
|
+
Mo(),
|
|
51904
51903
|
U()
|
|
51905
51904
|
], qI.prototype, "isKinematic", 2);
|
|
51906
|
-
|
|
51907
|
-
|
|
51905
|
+
Uo([
|
|
51906
|
+
Mo(),
|
|
51908
51907
|
U()
|
|
51909
51908
|
], qI.prototype, "drag", 2);
|
|
51910
|
-
|
|
51911
|
-
|
|
51909
|
+
Uo([
|
|
51910
|
+
Mo(),
|
|
51912
51911
|
U()
|
|
51913
51912
|
], qI.prototype, "angularDrag", 2);
|
|
51914
|
-
|
|
51915
|
-
|
|
51913
|
+
Uo([
|
|
51914
|
+
Mo(),
|
|
51916
51915
|
U()
|
|
51917
51916
|
], qI.prototype, "detectCollisions", 2);
|
|
51918
|
-
|
|
51919
|
-
|
|
51917
|
+
Uo([
|
|
51918
|
+
Mo(),
|
|
51920
51919
|
U()
|
|
51921
51920
|
], qI.prototype, "sleepThreshold", 2);
|
|
51922
|
-
|
|
51923
|
-
|
|
51921
|
+
Uo([
|
|
51922
|
+
Mo(),
|
|
51924
51923
|
U()
|
|
51925
51924
|
], qI.prototype, "collisionDetectionMode", 2);
|
|
51926
51925
|
class Pi {
|
|
@@ -52032,7 +52031,7 @@ class io {
|
|
|
52032
52031
|
A.finish(g, void 0, !0);
|
|
52033
52032
|
}
|
|
52034
52033
|
}
|
|
52035
|
-
const
|
|
52034
|
+
const Xo = cA("debugsync"), cE = "STRS";
|
|
52036
52035
|
qS(cE, io.getRootAsSyncedTransformModel);
|
|
52037
52036
|
const eC = new ja();
|
|
52038
52037
|
function sJ(i, A, g = !0) {
|
|
@@ -52071,7 +52070,7 @@ class xB extends TA {
|
|
|
52071
52070
|
Q(this, "lastWorldRotation");
|
|
52072
52071
|
}
|
|
52073
52072
|
requestOwnership() {
|
|
52074
|
-
|
|
52073
|
+
Xo && console.log("Request ownership"), this._model ? this._model.requestOwnership() : (this._shouldRequestOwnership = !0, this._needsUpdate = !0);
|
|
52075
52074
|
}
|
|
52076
52075
|
hasOwnership() {
|
|
52077
52076
|
var g;
|
|
@@ -52082,7 +52081,7 @@ class xB extends TA {
|
|
|
52082
52081
|
return (g = this._model) == null ? void 0 : g.isOwned;
|
|
52083
52082
|
}
|
|
52084
52083
|
awake() {
|
|
52085
|
-
|
|
52084
|
+
Xo && console.log("new instance", this.guid, this), this._receivedDataBefore = !1, this._targetPosition = new M(), this._targetRotation = new UA(), this.lastWorldPos = new M(), this.lastWorldRotation = new UA(), this.rb = BA.getComponentInChildren(this.gameObject, qI), this.rb && (this._wasKinematic = this.rb.isKinematic), this.receivedUpdate = !0, this._model = new LS(this.context.connection, this.guid), this.context.connection.isConnected && this.tryGetLastState(), this.joinedRoomCallback = this.tryGetLastState.bind(this), this.context.connection.beginListen(Be.JoinedRoom, this.joinedRoomCallback), this.receivedDataCallback = this.onReceivedData.bind(this), this.context.connection.beginListenBinary(cE, this.receivedDataCallback);
|
|
52086
52085
|
}
|
|
52087
52086
|
onDestroy() {
|
|
52088
52087
|
this.syncDestroy && KO(this.guid, this.context.connection), this._model = null, this.context.connection.stopListen(Be.JoinedRoom, this.joinedRoomCallback), this.context.connection.stopListenBinary(cE, this.receivedDataCallback);
|
|
@@ -52094,7 +52093,7 @@ class xB extends TA {
|
|
|
52094
52093
|
onReceivedData(g) {
|
|
52095
52094
|
var I;
|
|
52096
52095
|
if (!this.destroyed && typeof g.guid == "function" && g.guid() === this.guid) {
|
|
52097
|
-
|
|
52096
|
+
Xo && console.log("new data", this.context.connection.connectionId, this.context.time.frameCount, this.guid, g), this.receivedUpdate = !0, this._receivedFastUpdate = g.fast();
|
|
52098
52097
|
const e = g.transform();
|
|
52099
52098
|
if (e) {
|
|
52100
52099
|
Oi.markDirty(this.gameObject, !0);
|
|
@@ -52116,14 +52115,14 @@ class xB extends TA {
|
|
|
52116
52115
|
if (!this.activeAndEnabled || !this.context.connection.isConnected)
|
|
52117
52116
|
return;
|
|
52118
52117
|
if (!this.context.connection.isInRoom || !this._model) {
|
|
52119
|
-
|
|
52118
|
+
Xo && console.log("no model or room", this.name, this.guid, this.context.connection.isInRoom);
|
|
52120
52119
|
return;
|
|
52121
52120
|
}
|
|
52122
52121
|
this._shouldRequestOwnership && (this._shouldRequestOwnership = !1, this._model.requestOwnership());
|
|
52123
52122
|
let g = this.worldPosition, I = this.worldQuaternion;
|
|
52124
52123
|
if (this._model.isOwned && !this.receivedUpdate) {
|
|
52125
52124
|
const C = g.distanceTo(this.lastWorldPos), o = I.angleTo(this.lastWorldRotation), s = this._model.hasOwnership || this.fastMode ? 1e-4 : 1e-3;
|
|
52126
|
-
(C > s || o > s) && (this._model.hasOwnership ? this._needsUpdate = !0 : (
|
|
52125
|
+
(C > s || o > s) && (this._model.hasOwnership ? this._needsUpdate = !0 : (Xo && console.log(this.guid, "reset because not owned but", this.gameObject.name, this.lastWorldPos), this.worldPosition = this.lastWorldPos, g.copy(this.lastWorldPos), this.worldQuaternion = this.lastWorldRotation, I.copy(this.lastWorldRotation), Oi.markDirty(this.gameObject, !0), this._needsUpdate = !1));
|
|
52127
52126
|
}
|
|
52128
52127
|
if (this._model && !this._model.hasOwnership && this._model.isOwned && this._receivedDataBefore) {
|
|
52129
52128
|
const o = this._receivedFastUpdate || this.fastMode ? 0.5 : 0.3;
|
|
@@ -52144,10 +52143,10 @@ class xB extends TA {
|
|
|
52144
52143
|
this.rb && (this.rb.isKinematic = this._model.isOwned ?? !1, this.rb.setVelocity(0, 0, 0));
|
|
52145
52144
|
return;
|
|
52146
52145
|
}
|
|
52147
|
-
this.rb && (this._wasKinematic !== void 0 && (
|
|
52146
|
+
this.rb && (this._wasKinematic !== void 0 && (Xo && console.log("reset kinematic", this.rb.name, this._wasKinematic), this.rb.isKinematic = this._wasKinematic), this.gameObject.position.distanceTo(new M(0, 0, 0)) > 1e3 && (Xo && console.log("RESET", this.name), this.gameObject.position.set(0, 1, 0), this.rb.setVelocity(0, 0, 0)));
|
|
52148
52147
|
const e = 10, t = this.rb || this.fastMode;
|
|
52149
52148
|
if (this._needsUpdate && (this.context.time.frameCount % e === 0 || t)) {
|
|
52150
|
-
|
|
52149
|
+
Xo && console.log("send update", this.context.connection.connectionId, this.guid, this.gameObject.name, this.gameObject.guid), this.overridePhysics && this.rb, this._needsUpdate = !1;
|
|
52151
52150
|
const C = sJ(this.guid, this, !!t);
|
|
52152
52151
|
this.context.connection.sendBinary(C);
|
|
52153
52152
|
}
|
|
@@ -52182,8 +52181,8 @@ Le.o = (i, A) => Object.prototype.hasOwnProperty.call(i, A);
|
|
|
52182
52181
|
Le.r = (i) => {
|
|
52183
52182
|
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(i, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(i, "__esModule", { value: !0 });
|
|
52184
52183
|
};
|
|
52185
|
-
var
|
|
52186
|
-
Le.d(
|
|
52184
|
+
var Xi = {};
|
|
52185
|
+
Le.d(Xi, {
|
|
52187
52186
|
g1: () => (
|
|
52188
52187
|
/* reexport */
|
|
52189
52188
|
Jd
|
|
@@ -52293,7 +52292,7 @@ var t8 = (i) => {
|
|
|
52293
52292
|
var A = {};
|
|
52294
52293
|
return Le.d(A, i), A;
|
|
52295
52294
|
};
|
|
52296
|
-
const Tg = t8({ BufferAttribute: () => Qg, BufferGeometry: () => lg, CanvasTexture: () => Ly, Color: () => fA, FileLoader: () => ae, LinearFilter: () => Jg, Mesh: () => SA, Object3D: () => LA, Plane: () =>
|
|
52295
|
+
const Tg = t8({ BufferAttribute: () => Qg, BufferGeometry: () => lg, CanvasTexture: () => Ly, Color: () => fA, FileLoader: () => ae, LinearFilter: () => Jg, Mesh: () => SA, Object3D: () => LA, Plane: () => Et, PlaneGeometry: () => ve, ShaderMaterial: () => _g, TextureLoader: () => kB, Vector2: () => $, Vector3: () => M }), Rr = "row", BJ = "row-reverse", vd = "column", nJ = "column-reverse";
|
|
52297
52296
|
function aJ(i, A, g, I) {
|
|
52298
52297
|
let e = g, t = "getWidth", C = "x", o = "y";
|
|
52299
52298
|
A.indexOf(vd) === 0 && (t = "getHeight", C = "y", o = "x");
|
|
@@ -53936,7 +53935,7 @@ class f0 extends Fa.withBase(Tg.Object3D)(
|
|
|
53936
53935
|
this.position.z = this.getOffset(), this.frame && this.updateBackgroundMaterial();
|
|
53937
53936
|
}
|
|
53938
53937
|
}
|
|
53939
|
-
const
|
|
53938
|
+
const $o = {
|
|
53940
53939
|
fr: [
|
|
53941
53940
|
[
|
|
53942
53941
|
[
|
|
@@ -54589,17 +54588,17 @@ let mJ = class extends Fa.withBase(Tg.Object3D)(l0, Td) {
|
|
|
54589
54588
|
case "fr":
|
|
54590
54589
|
case "fr-CH":
|
|
54591
54590
|
case "fr-CA":
|
|
54592
|
-
g =
|
|
54591
|
+
g = $o.fr;
|
|
54593
54592
|
break;
|
|
54594
54593
|
case "ru":
|
|
54595
|
-
this.charsetCount = 2, g =
|
|
54594
|
+
this.charsetCount = 2, g = $o.ru;
|
|
54596
54595
|
break;
|
|
54597
54596
|
case "de":
|
|
54598
54597
|
case "de-DE":
|
|
54599
54598
|
case "de-AT":
|
|
54600
54599
|
case "de-LI":
|
|
54601
54600
|
case "de-CH":
|
|
54602
|
-
g =
|
|
54601
|
+
g = $o.de;
|
|
54603
54602
|
break;
|
|
54604
54603
|
case "es":
|
|
54605
54604
|
case "es-419":
|
|
@@ -54614,20 +54613,20 @@ let mJ = class extends Fa.withBase(Tg.Object3D)(l0, Td) {
|
|
|
54614
54613
|
case "es-PE":
|
|
54615
54614
|
case "es-UY":
|
|
54616
54615
|
case "es-VE":
|
|
54617
|
-
g =
|
|
54616
|
+
g = $o.es;
|
|
54618
54617
|
break;
|
|
54619
54618
|
case "el":
|
|
54620
|
-
this.charsetCount = 2, g =
|
|
54619
|
+
this.charsetCount = 2, g = $o.el;
|
|
54621
54620
|
break;
|
|
54622
54621
|
case "nord":
|
|
54623
|
-
g =
|
|
54622
|
+
g = $o.nord;
|
|
54624
54623
|
break;
|
|
54625
54624
|
default:
|
|
54626
|
-
g =
|
|
54625
|
+
g = $o.eng;
|
|
54627
54626
|
break;
|
|
54628
54627
|
}
|
|
54629
54628
|
else
|
|
54630
|
-
g =
|
|
54629
|
+
g = $o.eng;
|
|
54631
54630
|
this.keys = [], this.panels = g.map((I) => {
|
|
54632
54631
|
const e = A.height / I.length - A.margin * 2, t = new mr({
|
|
54633
54632
|
width: A.width + A.padding * 2,
|
|
@@ -54756,7 +54755,7 @@ const FJ = () => RB.update(), NJ = {
|
|
|
54756
54755
|
};
|
|
54757
54756
|
typeof global < "u" && (global.ThreeMeshUI = NJ);
|
|
54758
54757
|
const N8 = NJ;
|
|
54759
|
-
var K8 =
|
|
54758
|
+
var K8 = Xi.g1, y0 = Xi.gO, J8 = Xi.km, q8 = Xi.zV, L8 = Xi.ol, b8 = Xi.uM, KJ = Xi.N1, JJ = Xi.xv, v8 = Xi.PH, x8 = Xi.UH, Y8 = Xi.ZP, qJ = Xi.Vx;
|
|
54760
54759
|
const H8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
54761
54760
|
__proto__: null,
|
|
54762
54761
|
AlignItems: K8,
|
|
@@ -54781,7 +54780,7 @@ y0.prototype.interactable = {
|
|
|
54781
54780
|
}
|
|
54782
54781
|
};
|
|
54783
54782
|
const xt = Symbol("shadowDomOwner");
|
|
54784
|
-
class
|
|
54783
|
+
class Ro extends TA {
|
|
54785
54784
|
constructor() {
|
|
54786
54785
|
super(...arguments);
|
|
54787
54786
|
Q(this, "shadowComponent", null);
|
|
@@ -54795,7 +54794,7 @@ class Uo extends TA {
|
|
|
54795
54794
|
return ((g = this.Root) == null ? void 0 : g.gameObject) === this.gameObject;
|
|
54796
54795
|
}
|
|
54797
54796
|
markDirty() {
|
|
54798
|
-
|
|
54797
|
+
lt.markUIDirty(this.context);
|
|
54799
54798
|
}
|
|
54800
54799
|
get controlsChildLayout() {
|
|
54801
54800
|
return this._controlsChildLayout;
|
|
@@ -54817,7 +54816,7 @@ class Uo extends TA {
|
|
|
54817
54816
|
var C;
|
|
54818
54817
|
this.removeShadowComponent();
|
|
54819
54818
|
const e = this.isRoot() ? this.gameObject : this.gameObject.parent;
|
|
54820
|
-
if (this._parentComponent = BA.getComponentInParent(e,
|
|
54819
|
+
if (this._parentComponent = BA.getComponentInParent(e, Ro), !this._parentComponent) {
|
|
54821
54820
|
console.warn(`Component "${this.name}" doesn't have a UI parent anywhere. Do you have an UI element outside a Canvas? UI components must be a child of a Canvas component`, this);
|
|
54822
54821
|
return;
|
|
54823
54822
|
}
|
|
@@ -54854,7 +54853,7 @@ class Uo extends TA {
|
|
|
54854
54853
|
this.shadowComponent && (this.shadowComponent.interactable = g);
|
|
54855
54854
|
}
|
|
54856
54855
|
}
|
|
54857
|
-
class Od extends
|
|
54856
|
+
class Od extends Ro {
|
|
54858
54857
|
awake() {
|
|
54859
54858
|
super.awake();
|
|
54860
54859
|
}
|
|
@@ -54889,7 +54888,7 @@ class lE {
|
|
|
54889
54888
|
}
|
|
54890
54889
|
}
|
|
54891
54890
|
const Cr = cA("debugwebxrcontroller");
|
|
54892
|
-
var Fr = /* @__PURE__ */ ((i) => (i[i.PhysicalDevice = 0] = "PhysicalDevice", i[i.Touch = 1] = "Touch", i))(Fr || {}),
|
|
54891
|
+
var Fr = /* @__PURE__ */ ((i) => (i[i.PhysicalDevice = 0] = "PhysicalDevice", i[i.Touch = 1] = "Touch", i))(Fr || {}), ts = /* @__PURE__ */ ((i) => (i.SelectStart = "select-start", i.SelectEnd = "select-end", i.Update = "update", i))(ts || {});
|
|
54893
54892
|
class S0 extends TA {
|
|
54894
54893
|
}
|
|
54895
54894
|
const ue = class extends TA {
|
|
@@ -55423,7 +55422,7 @@ class oQ extends TA {
|
|
|
55423
55422
|
Q(this, "_boxHelper", null);
|
|
55424
55423
|
}
|
|
55425
55424
|
onEnable() {
|
|
55426
|
-
this.isGizmo && !TE || (this._gizmoObject || (this.objectBounds && this.gameObject.isMesh === !0 ? this._gizmoObject = new Cd(this.gameObject, this.color ?? 16776960) : (this.objectBounds = !1, this._gizmoObject = FN(this.color ?? 16776960))), this.objectBounds ? (this.scene.add(this._gizmoObject), this._boxHelper = this._gizmoObject, this.startCoroutine(this.syncObjectBounds(),
|
|
55425
|
+
this.isGizmo && !TE || (this._gizmoObject || (this.objectBounds && this.gameObject.isMesh === !0 ? this._gizmoObject = new Cd(this.gameObject, this.color ?? 16776960) : (this.objectBounds = !1, this._gizmoObject = FN(this.color ?? 16776960))), this.objectBounds ? (this.scene.add(this._gizmoObject), this._boxHelper = this._gizmoObject, this.startCoroutine(this.syncObjectBounds(), zi.OnBeforeRender)) : this.gameObject.add(this._gizmoObject));
|
|
55427
55426
|
}
|
|
55428
55427
|
onDisable() {
|
|
55429
55428
|
this._gizmoObject && this.gameObject.remove(this._gizmoObject);
|
|
@@ -55918,7 +55917,7 @@ const de = (Kn = class extends TA {
|
|
|
55918
55917
|
this.webAR = new Ba(this);
|
|
55919
55918
|
}
|
|
55920
55919
|
start() {
|
|
55921
|
-
location.protocol == "http:" && location.host.indexOf("localhost") < 0 && (
|
|
55920
|
+
location.protocol == "http:" && location.host.indexOf("localhost") < 0 && (ko("WebXR only works on https"), console.warn("WebXR only works on https. https://engine.needle.tools/docs/xr.html"));
|
|
55922
55921
|
}
|
|
55923
55922
|
onEnable() {
|
|
55924
55923
|
if (this.isInit || !this.enableAR && !this.enableVR)
|
|
@@ -56286,10 +56285,10 @@ const aC = class extends TA {
|
|
|
56286
56285
|
return;
|
|
56287
56286
|
const C = new Vn();
|
|
56288
56287
|
C.inputSource = e, this.handleIntersections(t, C);
|
|
56289
|
-
}), TI.addEventListener(
|
|
56288
|
+
}), TI.addEventListener(ts.SelectStart, this._selectStartFn), TI.addEventListener(ts.SelectEnd, this._selectEndFn), TI.addEventListener(ts.Update, this._selectUpdateFn), this._handleEventFn ?? (this._handleEventFn = this.onHandleEvents.bind(this)), this.context.pre_update_callbacks.push(this._handleEventFn);
|
|
56290
56289
|
}
|
|
56291
56290
|
onDisable() {
|
|
56292
|
-
TI.removeEventListener(
|
|
56291
|
+
TI.removeEventListener(ts.SelectStart, this._selectStartFn), TI.removeEventListener(ts.SelectEnd, this._selectEndFn), TI.removeEventListener(ts.Update, this._selectUpdateFn), this.context.pre_update_callbacks.splice(this.context.pre_update_callbacks.indexOf(this._handleEventFn), 1);
|
|
56293
56292
|
}
|
|
56294
56293
|
onHandleEvents() {
|
|
56295
56294
|
if (this.objectsHoveredThisFrame.length = 0, this.resetMeshUIStates(), Lg.IsInWebXR || this.context.input.isKeyPressed(MB.ALT))
|
|
@@ -56319,7 +56318,7 @@ const aC = class extends TA {
|
|
|
56319
56318
|
args: e,
|
|
56320
56319
|
hasActiveUI: this.currentActiveMeshUIComponents.length > 0
|
|
56321
56320
|
};
|
|
56322
|
-
or && e.isClicked &&
|
|
56321
|
+
or && e.isClicked && ct("EventSystem: " + e.pointerId + " - " + this.context.time.frame + " - Up:" + e.isUp + ", Down:" + e.isDown), this.dispatchEvent(new CustomEvent("BeforeHandleInput", { detail: C })), this.handleIntersections(t, e), this.dispatchEvent(new CustomEvent("AfterHandleInput", { detail: C }));
|
|
56323
56322
|
}
|
|
56324
56323
|
onBeforeRender() {
|
|
56325
56324
|
if (this.lastPointerEvent)
|
|
@@ -56448,8 +56447,8 @@ const aC = class extends TA {
|
|
|
56448
56447
|
return g ? BA.isActiveSelf(g) ? this.testIsVisible(g.parent) : !1 : !0;
|
|
56449
56448
|
}
|
|
56450
56449
|
};
|
|
56451
|
-
let
|
|
56452
|
-
Q(
|
|
56450
|
+
let lt = aC;
|
|
56451
|
+
Q(lt, "_eventSystemMap", /* @__PURE__ */ new Map()), Q(lt, "didSearchEventSystem", !1);
|
|
56453
56452
|
class Ao {
|
|
56454
56453
|
static markDirty() {
|
|
56455
56454
|
this.needsUpdate = !0;
|
|
@@ -56564,7 +56563,7 @@ class ZB extends TA {
|
|
|
56564
56563
|
this.setTarget(I, !0);
|
|
56565
56564
|
}
|
|
56566
56565
|
}
|
|
56567
|
-
this.startCoroutine(this.startRaycastDelayed()), this._eventSystem =
|
|
56566
|
+
this.startCoroutine(this.startRaycastDelayed()), this._eventSystem = lt.get(this.context) ?? void 0, this._eventSystem && (this._afterHandleInputFn = this.afterHandleInput.bind(this), this._eventSystem.addEventListener(Wf.AfterHandleInput, this._afterHandleInputFn));
|
|
56568
56567
|
}
|
|
56569
56568
|
onDestroy() {
|
|
56570
56569
|
var g, I;
|
|
@@ -56862,7 +56861,7 @@ const Br = (Hh = class extends TA {
|
|
|
56862
56861
|
sr && console.log("Camera does not exist (apply clear flags)");
|
|
56863
56862
|
return;
|
|
56864
56863
|
}
|
|
56865
|
-
switch (sr &&
|
|
56864
|
+
switch (sr && ct("apply Camera clear flags: " + this._clearFlags), this._clearFlags) {
|
|
56866
56865
|
case 1:
|
|
56867
56866
|
if (Br.backgroundShouldBeTransparent(this.context) && (!this.ARBackgroundAlpha || this.ARBackgroundAlpha < 1e-3)) {
|
|
56868
56867
|
this.context.scene.background = null, this.context.renderer.setClearColor(0, 0);
|
|
@@ -56891,7 +56890,7 @@ const Br = (Hh = class extends TA {
|
|
|
56891
56890
|
if (!g)
|
|
56892
56891
|
return !1;
|
|
56893
56892
|
const I = g.environmentBlendMode;
|
|
56894
|
-
sr &&
|
|
56893
|
+
sr && ct("Environment blend mode: " + I + " on " + navigator.userAgent);
|
|
56895
56894
|
const e = I === "additive" || I === "alpha-blend";
|
|
56896
56895
|
if (A.xrSessionMode === CD.ImmersiveAR && I === "opaque") {
|
|
56897
56896
|
if ((C = navigator.userAgent) != null && C.includes("OculusBrowser"))
|
|
@@ -56950,7 +56949,7 @@ class tj {
|
|
|
56950
56949
|
return (A = this._camera) == null ? void 0 : A.context;
|
|
56951
56950
|
}
|
|
56952
56951
|
enable() {
|
|
56953
|
-
this._skybox = this.context.lightmaps.tryGetSkybox(this._camera.sourceId), this._skybox ? this.context.scene.background !== this._skybox && (sr && console.log("Set skybox", this._camera, this._skybox), this._skybox.encoding = Ag, this._skybox.mapping =
|
|
56952
|
+
this._skybox = this.context.lightmaps.tryGetSkybox(this._camera.sourceId), this._skybox ? this.context.scene.background !== this._skybox && (sr && console.log("Set skybox", this._camera, this._skybox), this._skybox.encoding = Ag, this._skybox.mapping = Dt, this.context.scene.background = this._skybox) : console.warn("Failed to load/find skybox texture", this);
|
|
56954
56953
|
}
|
|
56955
56954
|
}
|
|
56956
56955
|
function Cj(i) {
|
|
@@ -57161,7 +57160,7 @@ const Gh = cA("debugtimeline"), mD = class extends TA {
|
|
|
57161
57160
|
return this._time;
|
|
57162
57161
|
}
|
|
57163
57162
|
set time(g) {
|
|
57164
|
-
typeof g == "number" && !Number.isNaN(g) ? this._time = g : (Gh ||
|
|
57163
|
+
typeof g == "number" && !Number.isNaN(g) ? this._time = g : (Gh || ji()) && console.error("INVALID TIMELINE.TIME VALUE", g, this.name);
|
|
57165
57164
|
}
|
|
57166
57165
|
get duration() {
|
|
57167
57166
|
return this._duration;
|
|
@@ -57560,7 +57559,7 @@ class F0 extends Pd {
|
|
|
57560
57559
|
} else {
|
|
57561
57560
|
const w = h + ".position";
|
|
57562
57561
|
FB && console.warn("Create position track", l, u);
|
|
57563
|
-
const D = u.position, d = new
|
|
57562
|
+
const D = u.position, d = new Ss(w, [0, I.duration], [D.x, D.y, D.z, D.x, D.y, D.z]);
|
|
57564
57563
|
I.tracks.push(d), this.createPositionInterpolant(I, g, d);
|
|
57565
57564
|
}
|
|
57566
57565
|
}
|
|
@@ -58053,7 +58052,7 @@ var wj = Object.defineProperty, fj = Object.getOwnPropertyDescriptor, yj = (i, A
|
|
|
58053
58052
|
(C = i[t]) && (e = (I ? C(A, g, e) : C(e)) || e);
|
|
58054
58053
|
return I && e && wj(A, g, e), e;
|
|
58055
58054
|
};
|
|
58056
|
-
class
|
|
58055
|
+
class $i extends XE {
|
|
58057
58056
|
constructor() {
|
|
58058
58057
|
super(...arguments);
|
|
58059
58058
|
Q(this, "active", !0);
|
|
@@ -58109,18 +58108,18 @@ class Xi extends XE {
|
|
|
58109
58108
|
}
|
|
58110
58109
|
yj([
|
|
58111
58110
|
U()
|
|
58112
|
-
],
|
|
58111
|
+
], $i.prototype, "active", 2);
|
|
58113
58112
|
var Sj = Object.defineProperty, Gj = Object.getOwnPropertyDescriptor, kj = (i, A, g, I) => {
|
|
58114
58113
|
for (var e = I > 1 ? void 0 : I ? Gj(A, g) : A, t = i.length - 1, C; t >= 0; t--)
|
|
58115
58114
|
(C = i[t]) && (e = (I ? C(A, g, e) : C(e)) || e);
|
|
58116
58115
|
return I && e && Sj(A, g, e), e;
|
|
58117
58116
|
};
|
|
58118
58117
|
const Mj = cA("debugpost"), jf = {};
|
|
58119
|
-
function
|
|
58118
|
+
function mo(i, A) {
|
|
58120
58119
|
jf[i] = A;
|
|
58121
58120
|
}
|
|
58122
58121
|
function Uj(i) {
|
|
58123
|
-
return i.__type in jf ? jf[i.__type] : (Mj && i.__type && console.warn("Unknown postprocessing type", i.__type, i),
|
|
58122
|
+
return i.__type in jf ? jf[i.__type] : (Mj && i.__type && console.warn("Unknown postprocessing type", i.__type, i), $i);
|
|
58124
58123
|
}
|
|
58125
58124
|
class Wd {
|
|
58126
58125
|
constructor() {
|
|
@@ -58133,14 +58132,14 @@ class Wd {
|
|
|
58133
58132
|
}
|
|
58134
58133
|
}
|
|
58135
58134
|
kj([
|
|
58136
|
-
Ac([(i) => Uj(i),
|
|
58135
|
+
Ac([(i) => Uj(i), $i])
|
|
58137
58136
|
], Wd.prototype, "components", 2);
|
|
58138
58137
|
var Rj = Object.defineProperty, mj = Object.getOwnPropertyDescriptor, Fj = (i, A, g, I) => {
|
|
58139
58138
|
for (var e = I > 1 ? void 0 : I ? mj(A, g) : A, t = i.length - 1, C; t >= 0; t--)
|
|
58140
58139
|
(C = i[t]) && (e = (I ? C(A, g, e) : C(e)) || e);
|
|
58141
58140
|
return I && e && Rj(A, g, e), e;
|
|
58142
58141
|
};
|
|
58143
|
-
class jd extends
|
|
58142
|
+
class jd extends $i {
|
|
58144
58143
|
constructor() {
|
|
58145
58144
|
super(...arguments);
|
|
58146
58145
|
Q(this, "preset");
|
|
@@ -58161,7 +58160,7 @@ class jd extends Xi {
|
|
|
58161
58160
|
Fj([
|
|
58162
58161
|
U(II)
|
|
58163
58162
|
], jd.prototype, "preset", 2);
|
|
58164
|
-
|
|
58163
|
+
mo("Antialiasing", jd);
|
|
58165
58164
|
var Nj = Object.defineProperty, Kj = Object.getOwnPropertyDescriptor, vJ = (i, A, g, I) => {
|
|
58166
58165
|
for (var e = I > 1 ? void 0 : I ? Kj(A, g) : A, t = i.length - 1, C; t >= 0; t--)
|
|
58167
58166
|
(C = i[t]) && (e = (I ? C(A, g, e) : C(e)) || e);
|
|
@@ -58408,7 +58407,7 @@ var Hj = Object.defineProperty, Tj = Object.getOwnPropertyDescriptor, q0 = (i, A
|
|
|
58408
58407
|
(C = i[t]) && (e = (I ? C(A, g, e) : C(e)) || e);
|
|
58409
58408
|
return I && e && Hj(A, g, e), e;
|
|
58410
58409
|
};
|
|
58411
|
-
class nQ extends
|
|
58410
|
+
class nQ extends $i {
|
|
58412
58411
|
constructor() {
|
|
58413
58412
|
super(...arguments);
|
|
58414
58413
|
Q(this, "threshold");
|
|
@@ -58453,13 +58452,13 @@ q0([
|
|
|
58453
58452
|
q0([
|
|
58454
58453
|
U(II)
|
|
58455
58454
|
], nQ.prototype, "scatter", 2);
|
|
58456
|
-
|
|
58455
|
+
mo("Bloom", nQ);
|
|
58457
58456
|
var Oj = Object.defineProperty, _j = Object.getOwnPropertyDescriptor, Vt = (i, A, g, I) => {
|
|
58458
58457
|
for (var e = I > 1 ? void 0 : I ? _j(A, g) : A, t = i.length - 1, C; t >= 0; t--)
|
|
58459
58458
|
(C = i[t]) && (e = (I ? C(A, g, e) : C(e)) || e);
|
|
58460
58459
|
return I && e && Oj(A, g, e), e;
|
|
58461
58460
|
};
|
|
58462
|
-
class
|
|
58461
|
+
class Fo extends TA {
|
|
58463
58462
|
constructor() {
|
|
58464
58463
|
super(...arguments);
|
|
58465
58464
|
Q(this, "attachedRigidbody", null);
|
|
@@ -58484,14 +58483,14 @@ class mo extends TA {
|
|
|
58484
58483
|
}
|
|
58485
58484
|
Vt([
|
|
58486
58485
|
U(qI)
|
|
58487
|
-
],
|
|
58486
|
+
], Fo.prototype, "attachedRigidbody", 2);
|
|
58488
58487
|
Vt([
|
|
58489
58488
|
U()
|
|
58490
|
-
],
|
|
58489
|
+
], Fo.prototype, "isTrigger", 2);
|
|
58491
58490
|
Vt([
|
|
58492
58491
|
U()
|
|
58493
|
-
],
|
|
58494
|
-
class Vd extends
|
|
58492
|
+
], Fo.prototype, "sharedMaterial", 2);
|
|
58493
|
+
class Vd extends Fo {
|
|
58495
58494
|
constructor() {
|
|
58496
58495
|
super(...arguments);
|
|
58497
58496
|
Q(this, "radius", 0.5);
|
|
@@ -58507,7 +58506,7 @@ Vt([
|
|
|
58507
58506
|
Vt([
|
|
58508
58507
|
U(M)
|
|
58509
58508
|
], Vd.prototype, "center", 2);
|
|
58510
|
-
class Xd extends
|
|
58509
|
+
class Xd extends Fo {
|
|
58511
58510
|
constructor() {
|
|
58512
58511
|
super(...arguments);
|
|
58513
58512
|
Q(this, "size", new M(1, 1, 1));
|
|
@@ -58523,7 +58522,7 @@ Vt([
|
|
|
58523
58522
|
Vt([
|
|
58524
58523
|
U(M)
|
|
58525
58524
|
], Xd.prototype, "center", 2);
|
|
58526
|
-
class L0 extends
|
|
58525
|
+
class L0 extends Fo {
|
|
58527
58526
|
constructor() {
|
|
58528
58527
|
super(...arguments);
|
|
58529
58528
|
Q(this, "sharedMesh");
|
|
@@ -58548,7 +58547,7 @@ class L0 extends mo {
|
|
|
58548
58547
|
Vt([
|
|
58549
58548
|
U()
|
|
58550
58549
|
], L0.prototype, "convex", 2);
|
|
58551
|
-
class YB extends
|
|
58550
|
+
class YB extends Fo {
|
|
58552
58551
|
constructor() {
|
|
58553
58552
|
super(...arguments);
|
|
58554
58553
|
Q(this, "center", new M(0, 0, 0));
|
|
@@ -58568,7 +58567,7 @@ Vt([
|
|
|
58568
58567
|
Vt([
|
|
58569
58568
|
U()
|
|
58570
58569
|
], YB.prototype, "height", 2);
|
|
58571
|
-
const Pj = cA("gizmos"), Wj = cA("debugboxhelper"),
|
|
58570
|
+
const Pj = cA("gizmos"), Wj = cA("debugboxhelper"), at = class extends TA {
|
|
58572
58571
|
constructor() {
|
|
58573
58572
|
super(...arguments);
|
|
58574
58573
|
Q(this, "box", null);
|
|
@@ -58581,18 +58580,18 @@ const Pj = cA("gizmos"), Wj = cA("debugboxhelper"), nt = class extends TA {
|
|
|
58581
58580
|
if (!g)
|
|
58582
58581
|
return;
|
|
58583
58582
|
if (this.box || (this.box = new je()), g.type === "Mesh")
|
|
58584
|
-
|
|
58583
|
+
at.testBox.setFromObject(g);
|
|
58585
58584
|
else if (g.type === "Group") {
|
|
58586
|
-
if (
|
|
58585
|
+
if (at.testBox.makeEmpty(), g.children.length > 0)
|
|
58587
58586
|
for (let C = 0; C < g.children.length; C++)
|
|
58588
|
-
g.children[C].type === "Mesh" &&
|
|
58587
|
+
g.children[C].type === "Mesh" && at.testBox.expandByObject(g);
|
|
58589
58588
|
} else {
|
|
58590
|
-
const C = pg(g,
|
|
58591
|
-
I !== void 0 && o.multiplyScalar(I),
|
|
58589
|
+
const C = pg(g, at._position), o = pi(g, at._size);
|
|
58590
|
+
I !== void 0 && o.multiplyScalar(I), at.testBox.setFromCenterAndSize(C, o);
|
|
58592
58591
|
}
|
|
58593
58592
|
this.updateBox();
|
|
58594
|
-
const e = (t = this.box) == null ? void 0 : t.intersectsBox(
|
|
58595
|
-
return e && Wj && oo.DrawBox3(
|
|
58593
|
+
const e = (t = this.box) == null ? void 0 : t.intersectsBox(at.testBox);
|
|
58594
|
+
return e && Wj && oo.DrawBox3(at.testBox, 16711680, 5), e;
|
|
58596
58595
|
}
|
|
58597
58596
|
intersects(g) {
|
|
58598
58597
|
return g ? this.updateBox(!1).intersectsBox(g) : !1;
|
|
@@ -58601,7 +58600,7 @@ const Pj = cA("gizmos"), Wj = cA("debugboxhelper"), nt = class extends TA {
|
|
|
58601
58600
|
if (this.box || (this.box = new je()), g || this.context.time.frameCount != this._lastMatrixUpdateFrame) {
|
|
58602
58601
|
const I = this._lastMatrixUpdateFrame < 0;
|
|
58603
58602
|
this._lastMatrixUpdateFrame = this.context.time.frameCount;
|
|
58604
|
-
const e = I, t = pg(this.gameObject,
|
|
58603
|
+
const e = I, t = pg(this.gameObject, at._position, e), C = pi(this.gameObject, at._size);
|
|
58605
58604
|
this.box.setFromCenterAndSize(t, C);
|
|
58606
58605
|
}
|
|
58607
58606
|
return this.box;
|
|
@@ -58620,7 +58619,7 @@ const Pj = cA("gizmos"), Wj = cA("debugboxhelper"), nt = class extends TA {
|
|
|
58620
58619
|
}
|
|
58621
58620
|
}
|
|
58622
58621
|
};
|
|
58623
|
-
let Yt =
|
|
58622
|
+
let Yt = at;
|
|
58624
58623
|
Q(Yt, "testBox", new je()), Q(Yt, "_position", new M()), Q(Yt, "_size", new M(0.01, 0.01, 0.01));
|
|
58625
58624
|
function TJ(i) {
|
|
58626
58625
|
const A = i[xt];
|
|
@@ -58650,7 +58649,7 @@ function OJ(i, A, g) {
|
|
|
58650
58649
|
}, i[A] = I.proxy, I;
|
|
58651
58650
|
}
|
|
58652
58651
|
const fU = Symbol("Scheduled action");
|
|
58653
|
-
function jj(i, A, g =
|
|
58652
|
+
function jj(i, A, g = zi.OnBeforeRender) {
|
|
58654
58653
|
let I = i[fU];
|
|
58655
58654
|
I || (I = i[fU] = {});
|
|
58656
58655
|
const e = A.name;
|
|
@@ -58684,7 +58683,7 @@ class b0 {
|
|
|
58684
58683
|
Q(this, "height");
|
|
58685
58684
|
}
|
|
58686
58685
|
}
|
|
58687
|
-
class qs extends
|
|
58686
|
+
class qs extends Ro {
|
|
58688
58687
|
constructor() {
|
|
58689
58688
|
super(...arguments);
|
|
58690
58689
|
Q(this, "offset", 0.01);
|
|
@@ -58731,14 +58730,14 @@ class qs extends Uo {
|
|
|
58731
58730
|
this._transformNeedsUpdate = !0;
|
|
58732
58731
|
}
|
|
58733
58732
|
onBeforeRender() {
|
|
58734
|
-
(this._transformNeedsUpdate || this.lastMatrix.equals(this.gameObject.matrix) === !1) && (yU && console.log("updating", this.name), this.applyTransform()),
|
|
58733
|
+
(this._transformNeedsUpdate || this.lastMatrix.equals(this.gameObject.matrix) === !1) && (yU && console.log("updating", this.name), this.applyTransform()), lt.ensureUpdateMeshUI(H8, this.context);
|
|
58735
58734
|
}
|
|
58736
58735
|
applyAnchoring(g) {
|
|
58737
58736
|
if (this.pivot && this.sizeDelta) {
|
|
58738
58737
|
let I = this.pivot.x * 2 - 1, e = this.pivot.y * 2 - 1;
|
|
58739
|
-
|
|
58740
|
-
const t =
|
|
58741
|
-
g.x -= t
|
|
58738
|
+
I -= this.anchoredPosition.x, e -= this.anchoredPosition.y;
|
|
58739
|
+
const t = I, C = e;
|
|
58740
|
+
g.x -= t, g.y -= C, this.shadowComponent && this.set({ width: this.sizeDelta.x, height: this.sizeDelta.y });
|
|
58742
58741
|
}
|
|
58743
58742
|
}
|
|
58744
58743
|
getBasicOptions() {
|
|
@@ -58789,7 +58788,7 @@ var Vj = Object.defineProperty, Xj = Object.getOwnPropertyDescriptor, PJ = (i, A
|
|
|
58789
58788
|
(C = i[t]) && (e = (I ? C(A, g, e) : C(e)) || e);
|
|
58790
58789
|
return I && e && Vj(A, g, e), e;
|
|
58791
58790
|
}, lw;
|
|
58792
|
-
const ul = (lw = class extends
|
|
58791
|
+
const ul = (lw = class extends Ro {
|
|
58793
58792
|
constructor() {
|
|
58794
58793
|
super(...arguments);
|
|
58795
58794
|
Q(this, "raycastTarget", !0);
|
|
@@ -58957,7 +58956,7 @@ class x0 extends Au {
|
|
|
58957
58956
|
v0([
|
|
58958
58957
|
U(qg)
|
|
58959
58958
|
], x0.prototype, "mainTexture", 1);
|
|
58960
|
-
var gZ = Object.defineProperty, IZ = Object.getOwnPropertyDescriptor,
|
|
58959
|
+
var gZ = Object.defineProperty, IZ = Object.getOwnPropertyDescriptor, At = (i, A, g, I) => {
|
|
58961
58960
|
for (var e = I > 1 ? void 0 : I ? IZ(A, g) : A, t = i.length - 1, C; t >= 0; t--)
|
|
58962
58961
|
(C = i[t]) && (e = (I ? C(A, g, e) : C(e)) || e);
|
|
58963
58962
|
return I && e && gZ(A, g, e), e;
|
|
@@ -58974,25 +58973,25 @@ class VB {
|
|
|
58974
58973
|
Q(this, "selectedColor");
|
|
58975
58974
|
}
|
|
58976
58975
|
}
|
|
58977
|
-
|
|
58976
|
+
At([
|
|
58978
58977
|
U()
|
|
58979
58978
|
], VB.prototype, "colorMultiplier", 2);
|
|
58980
|
-
|
|
58979
|
+
At([
|
|
58981
58980
|
U(fI)
|
|
58982
58981
|
], VB.prototype, "disabledColor", 2);
|
|
58983
|
-
|
|
58982
|
+
At([
|
|
58984
58983
|
U()
|
|
58985
58984
|
], VB.prototype, "fadeDuration", 2);
|
|
58986
|
-
|
|
58985
|
+
At([
|
|
58987
58986
|
U(fI)
|
|
58988
58987
|
], VB.prototype, "highlightedColor", 2);
|
|
58989
|
-
|
|
58988
|
+
At([
|
|
58990
58989
|
U(fI)
|
|
58991
58990
|
], VB.prototype, "normalColor", 2);
|
|
58992
|
-
|
|
58991
|
+
At([
|
|
58993
58992
|
U(fI)
|
|
58994
58993
|
], VB.prototype, "pressedColor", 2);
|
|
58995
|
-
|
|
58994
|
+
At([
|
|
58996
58995
|
U(fI)
|
|
58997
58996
|
], VB.prototype, "selectedColor", 2);
|
|
58998
58997
|
class Ls extends TA {
|
|
@@ -59027,7 +59026,7 @@ class Ls extends TA {
|
|
|
59027
59026
|
}
|
|
59028
59027
|
onPointerClick(g) {
|
|
59029
59028
|
var I;
|
|
59030
|
-
Un && (console.warn("Button Click", this.onClick),
|
|
59029
|
+
Un && (console.warn("Button Click", this.onClick), ct("CLICKED button " + this.name + " at " + this.context.time.frameCount)), (I = this.onClick) == null || I.invoke();
|
|
59031
59030
|
}
|
|
59032
59031
|
set interactable(g) {
|
|
59033
59032
|
this._interactable = g, this._image && (this._image.setInteractable(g), g ? this._image.setState("normal") : this._image.setState("disabled"));
|
|
@@ -59103,22 +59102,22 @@ class Ls extends TA {
|
|
|
59103
59102
|
return I ? g.clone().multiply(I) : g.clone();
|
|
59104
59103
|
}
|
|
59105
59104
|
}
|
|
59106
|
-
|
|
59105
|
+
At([
|
|
59107
59106
|
U(Wi)
|
|
59108
59107
|
], Ls.prototype, "onClick", 2);
|
|
59109
|
-
|
|
59108
|
+
At([
|
|
59110
59109
|
U()
|
|
59111
59110
|
], Ls.prototype, "colors", 2);
|
|
59112
|
-
|
|
59111
|
+
At([
|
|
59113
59112
|
U()
|
|
59114
59113
|
], Ls.prototype, "transition", 2);
|
|
59115
|
-
|
|
59114
|
+
At([
|
|
59116
59115
|
U()
|
|
59117
59116
|
], Ls.prototype, "animationTriggers", 2);
|
|
59118
|
-
|
|
59117
|
+
At([
|
|
59119
59118
|
U(Gt)
|
|
59120
59119
|
], Ls.prototype, "animator", 2);
|
|
59121
|
-
|
|
59120
|
+
At([
|
|
59122
59121
|
U()
|
|
59123
59122
|
], Ls.prototype, "interactable", 1);
|
|
59124
59123
|
var eZ = Object.defineProperty, iZ = Object.getOwnPropertyDescriptor, bs = (i, A, g, I) => {
|
|
@@ -59202,12 +59201,12 @@ const jJ = class extends Od {
|
|
|
59202
59201
|
this.onRenderSettingsChanged();
|
|
59203
59202
|
}
|
|
59204
59203
|
onRenderSettingsChanged() {
|
|
59205
|
-
this._updateRenderSettingsRoutine || (this._updateRenderSettingsRoutine = this.startCoroutine(this._updateRenderSettingsDelayed(),
|
|
59204
|
+
this._updateRenderSettingsRoutine || (this._updateRenderSettingsRoutine = this.startCoroutine(this._updateRenderSettingsDelayed(), zi.OnBeforeRender));
|
|
59206
59205
|
}
|
|
59207
59206
|
*_updateRenderSettingsDelayed() {
|
|
59208
59207
|
if (yield, this._updateRenderSettingsRoutine = void 0, this.shadowComponent) {
|
|
59209
59208
|
this.updateRenderMode(), dD(this.shadowComponent, this);
|
|
59210
|
-
for (const A of BA.getComponentsInChildren(this.gameObject,
|
|
59209
|
+
for (const A of BA.getComponentsInChildren(this.gameObject, Ro))
|
|
59211
59210
|
dD(A.shadowComponent, this);
|
|
59212
59211
|
}
|
|
59213
59212
|
}
|
|
@@ -59219,7 +59218,7 @@ const jJ = class extends Od {
|
|
|
59219
59218
|
switch (this.renderMode) {
|
|
59220
59219
|
case 0:
|
|
59221
59220
|
case 1:
|
|
59222
|
-
|
|
59221
|
+
ko("Screenspace Canvas is not supported yet. Please use worldspace");
|
|
59223
59222
|
const A = this.context.mainCameraComponent;
|
|
59224
59223
|
if (!A)
|
|
59225
59224
|
return;
|
|
@@ -59283,7 +59282,7 @@ class ac extends TA {
|
|
|
59283
59282
|
return !0;
|
|
59284
59283
|
}
|
|
59285
59284
|
markDirty() {
|
|
59286
|
-
this._isDirty || (this._isDirty = !0, this.startCoroutine(this.applyChangesDelayed(),
|
|
59285
|
+
this._isDirty || (this._isDirty = !0, this.startCoroutine(this.applyChangesDelayed(), zi.OnBeforeRender));
|
|
59287
59286
|
}
|
|
59288
59287
|
*applyChangesDelayed() {
|
|
59289
59288
|
this._isDirty = !1, this.applyChangesNow();
|
|
@@ -59304,7 +59303,7 @@ Y0([
|
|
|
59304
59303
|
Y0([
|
|
59305
59304
|
U()
|
|
59306
59305
|
], ac.prototype, "blocksRaycasts", 2);
|
|
59307
|
-
var oZ = Object.defineProperty, sZ = Object.getOwnPropertyDescriptor,
|
|
59306
|
+
var oZ = Object.defineProperty, sZ = Object.getOwnPropertyDescriptor, No = (i, A, g, I) => {
|
|
59308
59307
|
for (var e = I > 1 ? void 0 : I ? sZ(A, g) : A, t = i.length - 1, C; t >= 0; t--)
|
|
59309
59308
|
(C = i[t]) && (e = (I ? C(A, g, e) : C(e)) || e);
|
|
59310
59309
|
return I && e && oZ(A, g, e), e;
|
|
@@ -59342,13 +59341,13 @@ class aQ extends TA {
|
|
|
59342
59341
|
return this._activeGroundCollisions.size > 0;
|
|
59343
59342
|
}
|
|
59344
59343
|
}
|
|
59345
|
-
|
|
59344
|
+
No([
|
|
59346
59345
|
U(M)
|
|
59347
59346
|
], aQ.prototype, "center", 2);
|
|
59348
|
-
|
|
59347
|
+
No([
|
|
59349
59348
|
U()
|
|
59350
59349
|
], aQ.prototype, "radius", 2);
|
|
59351
|
-
|
|
59350
|
+
No([
|
|
59352
59351
|
U()
|
|
59353
59352
|
], aQ.prototype, "height", 2);
|
|
59354
59353
|
class vs extends TA {
|
|
@@ -59402,22 +59401,22 @@ class vs extends TA {
|
|
|
59402
59401
|
}
|
|
59403
59402
|
}
|
|
59404
59403
|
}
|
|
59405
|
-
|
|
59404
|
+
No([
|
|
59406
59405
|
U(aQ)
|
|
59407
59406
|
], vs.prototype, "controller", 2);
|
|
59408
|
-
|
|
59407
|
+
No([
|
|
59409
59408
|
U()
|
|
59410
59409
|
], vs.prototype, "movementSpeed", 2);
|
|
59411
|
-
|
|
59410
|
+
No([
|
|
59412
59411
|
U()
|
|
59413
59412
|
], vs.prototype, "rotationSpeed", 2);
|
|
59414
|
-
|
|
59413
|
+
No([
|
|
59415
59414
|
U()
|
|
59416
59415
|
], vs.prototype, "jumpForce", 2);
|
|
59417
|
-
|
|
59416
|
+
No([
|
|
59418
59417
|
U()
|
|
59419
59418
|
], vs.prototype, "doubleJumpForce", 2);
|
|
59420
|
-
|
|
59419
|
+
No([
|
|
59421
59420
|
U(Gt)
|
|
59422
59421
|
], vs.prototype, "animator", 2);
|
|
59423
59422
|
var BZ = Object.defineProperty, nZ = Object.getOwnPropertyDescriptor, aZ = (i, A, g, I) => {
|
|
@@ -59425,7 +59424,7 @@ var BZ = Object.defineProperty, nZ = Object.getOwnPropertyDescriptor, aZ = (i, A
|
|
|
59425
59424
|
(C = i[t]) && (e = (I ? C(A, g, e) : C(e)) || e);
|
|
59426
59425
|
return I && e && BZ(A, g, e), e;
|
|
59427
59426
|
};
|
|
59428
|
-
class Iu extends
|
|
59427
|
+
class Iu extends $i {
|
|
59429
59428
|
constructor() {
|
|
59430
59429
|
super(...arguments);
|
|
59431
59430
|
Q(this, "intensity");
|
|
@@ -59446,13 +59445,13 @@ class Iu extends Xi {
|
|
|
59446
59445
|
aZ([
|
|
59447
59446
|
U(II)
|
|
59448
59447
|
], Iu.prototype, "intensity", 2);
|
|
59449
|
-
|
|
59448
|
+
mo("ChromaticAberration", Iu);
|
|
59450
59449
|
var QZ = Object.defineProperty, rZ = Object.getOwnPropertyDescriptor, eu = (i, A, g, I) => {
|
|
59451
59450
|
for (var e = I > 1 ? void 0 : I ? rZ(A, g) : A, t = i.length - 1, C; t >= 0; t--)
|
|
59452
59451
|
(C = i[t]) && (e = (I ? C(A, g, e) : C(e)) || e);
|
|
59453
59452
|
return I && e && QZ(A, g, e), e;
|
|
59454
59453
|
};
|
|
59455
|
-
class XB extends
|
|
59454
|
+
class XB extends $i {
|
|
59456
59455
|
constructor() {
|
|
59457
59456
|
super(...arguments);
|
|
59458
59457
|
Q(this, "postExposure");
|
|
@@ -59507,7 +59506,7 @@ eu([
|
|
|
59507
59506
|
eu([
|
|
59508
59507
|
U(II)
|
|
59509
59508
|
], XB.prototype, "saturation", 2);
|
|
59510
|
-
|
|
59509
|
+
mo("ColorAdjustments", XB);
|
|
59511
59510
|
const EZ = (Math.sqrt(5) - 1) / 4, ke = (5 - Math.sqrt(5)) / 20, kh = (i) => Math.floor(i) | 0, Mh = /* @__PURE__ */ new Float64Array([
|
|
59512
59511
|
0,
|
|
59513
59512
|
1,
|
|
@@ -59847,25 +59846,25 @@ const Jt = (Th = class {
|
|
|
59847
59846
|
return Jt._temp.set(16711935), Jt._temp.alpha = 1, Jt._temp;
|
|
59848
59847
|
}
|
|
59849
59848
|
}, Q(Th, "_temp", new fI(0, 0, 0, 1)), Q(Th, "_temp2", new fI(0, 0, 0, 1)), Th);
|
|
59850
|
-
let
|
|
59849
|
+
let gt = Jt;
|
|
59851
59850
|
X([
|
|
59852
59851
|
U(fI)
|
|
59853
|
-
],
|
|
59852
|
+
], gt.prototype, "color", 2);
|
|
59854
59853
|
X([
|
|
59855
59854
|
U(fI)
|
|
59856
|
-
],
|
|
59855
|
+
], gt.prototype, "colorMin", 2);
|
|
59857
59856
|
X([
|
|
59858
59857
|
U(fI)
|
|
59859
|
-
],
|
|
59858
|
+
], gt.prototype, "colorMax", 2);
|
|
59860
59859
|
X([
|
|
59861
59860
|
U($B)
|
|
59862
|
-
],
|
|
59861
|
+
], gt.prototype, "gradient", 2);
|
|
59863
59862
|
X([
|
|
59864
59863
|
U($B)
|
|
59865
|
-
],
|
|
59864
|
+
], gt.prototype, "gradientMin", 2);
|
|
59866
59865
|
X([
|
|
59867
59866
|
U($B)
|
|
59868
|
-
],
|
|
59867
|
+
], gt.prototype, "gradientMax", 2);
|
|
59869
59868
|
class Ve {
|
|
59870
59869
|
constructor() {
|
|
59871
59870
|
Q(this, "cullingMode");
|
|
@@ -59916,7 +59915,7 @@ X([
|
|
|
59916
59915
|
U(ng)
|
|
59917
59916
|
], Ve.prototype, "gravityModifier", 2);
|
|
59918
59917
|
X([
|
|
59919
|
-
U(
|
|
59918
|
+
U(gt)
|
|
59920
59919
|
], Ve.prototype, "startColor", 2);
|
|
59921
59920
|
X([
|
|
59922
59921
|
U(ng)
|
|
@@ -59991,7 +59990,7 @@ class uD {
|
|
|
59991
59990
|
return g;
|
|
59992
59991
|
}
|
|
59993
59992
|
}
|
|
59994
|
-
class
|
|
59993
|
+
class Ko {
|
|
59995
59994
|
constructor() {
|
|
59996
59995
|
Q(this, "enabled");
|
|
59997
59996
|
Q(this, "bursts");
|
|
@@ -60022,22 +60021,22 @@ class No {
|
|
|
60022
60021
|
}
|
|
60023
60022
|
X([
|
|
60024
60023
|
U()
|
|
60025
|
-
],
|
|
60024
|
+
], Ko.prototype, "enabled", 2);
|
|
60026
60025
|
X([
|
|
60027
60026
|
U()
|
|
60028
|
-
],
|
|
60027
|
+
], Ko.prototype, "bursts", 2);
|
|
60029
60028
|
X([
|
|
60030
60029
|
U(ng)
|
|
60031
|
-
],
|
|
60030
|
+
], Ko.prototype, "rateOverTime", 2);
|
|
60032
60031
|
X([
|
|
60033
60032
|
U()
|
|
60034
|
-
],
|
|
60033
|
+
], Ko.prototype, "rateOverTimeMultiplier", 2);
|
|
60035
60034
|
X([
|
|
60036
60035
|
U(ng)
|
|
60037
|
-
],
|
|
60036
|
+
], Ko.prototype, "rateOverDistance", 2);
|
|
60038
60037
|
X([
|
|
60039
60038
|
U()
|
|
60040
|
-
],
|
|
60039
|
+
], Ko.prototype, "rateOverDistanceMultiplier", 2);
|
|
60041
60040
|
class tu {
|
|
60042
60041
|
constructor() {
|
|
60043
60042
|
Q(this, "enabled");
|
|
@@ -60045,7 +60044,7 @@ class tu {
|
|
|
60045
60044
|
}
|
|
60046
60045
|
}
|
|
60047
60046
|
X([
|
|
60048
|
-
U(
|
|
60047
|
+
U(gt)
|
|
60049
60048
|
], tu.prototype, "color", 2);
|
|
60050
60049
|
class An {
|
|
60051
60050
|
constructor() {
|
|
@@ -60454,10 +60453,10 @@ X([
|
|
|
60454
60453
|
U()
|
|
60455
60454
|
], UI.prototype, "attachRibbonToTransform", 2);
|
|
60456
60455
|
X([
|
|
60457
|
-
U(
|
|
60456
|
+
U(gt)
|
|
60458
60457
|
], UI.prototype, "colorOverLifetime", 2);
|
|
60459
60458
|
X([
|
|
60460
|
-
U(
|
|
60459
|
+
U(gt)
|
|
60461
60460
|
], UI.prototype, "colorOverTrail", 2);
|
|
60462
60461
|
X([
|
|
60463
60462
|
U()
|
|
@@ -60507,7 +60506,7 @@ X([
|
|
|
60507
60506
|
X([
|
|
60508
60507
|
U()
|
|
60509
60508
|
], UI.prototype, "worldSpace", 2);
|
|
60510
|
-
class
|
|
60509
|
+
class It {
|
|
60511
60510
|
constructor() {
|
|
60512
60511
|
Q(this, "enabled");
|
|
60513
60512
|
Q(this, "space", 0);
|
|
@@ -60535,34 +60534,34 @@ class gt {
|
|
|
60535
60534
|
}
|
|
60536
60535
|
X([
|
|
60537
60536
|
U()
|
|
60538
|
-
],
|
|
60537
|
+
], It.prototype, "enabled", 2);
|
|
60539
60538
|
X([
|
|
60540
60539
|
U()
|
|
60541
|
-
],
|
|
60540
|
+
], It.prototype, "space", 2);
|
|
60542
60541
|
X([
|
|
60543
60542
|
U(ng)
|
|
60544
|
-
],
|
|
60543
|
+
], It.prototype, "speedModifier", 2);
|
|
60545
60544
|
X([
|
|
60546
60545
|
U()
|
|
60547
|
-
],
|
|
60546
|
+
], It.prototype, "speedModifierMultiplier", 2);
|
|
60548
60547
|
X([
|
|
60549
60548
|
U(ng)
|
|
60550
|
-
],
|
|
60549
|
+
], It.prototype, "x", 2);
|
|
60551
60550
|
X([
|
|
60552
60551
|
U()
|
|
60553
|
-
],
|
|
60552
|
+
], It.prototype, "xMultiplier", 2);
|
|
60554
60553
|
X([
|
|
60555
60554
|
U(ng)
|
|
60556
|
-
],
|
|
60555
|
+
], It.prototype, "y", 2);
|
|
60557
60556
|
X([
|
|
60558
60557
|
U()
|
|
60559
|
-
],
|
|
60558
|
+
], It.prototype, "yMultiplier", 2);
|
|
60560
60559
|
X([
|
|
60561
60560
|
U(ng)
|
|
60562
|
-
],
|
|
60561
|
+
], It.prototype, "z", 2);
|
|
60563
60562
|
X([
|
|
60564
60563
|
U()
|
|
60565
|
-
],
|
|
60564
|
+
], It.prototype, "zMultiplier", 2);
|
|
60566
60565
|
class Xe {
|
|
60567
60566
|
constructor() {
|
|
60568
60567
|
Q(this, "animation");
|
|
@@ -60918,7 +60917,7 @@ X([
|
|
|
60918
60917
|
U($)
|
|
60919
60918
|
], QQ.prototype, "range", 2);
|
|
60920
60919
|
X([
|
|
60921
|
-
U(
|
|
60920
|
+
U(gt)
|
|
60922
60921
|
], QQ.prototype, "color", 2);
|
|
60923
60922
|
const SU = cA("debugdeletable");
|
|
60924
60923
|
class H0 extends Yt {
|
|
@@ -60946,7 +60945,7 @@ var dZ = Object.defineProperty, uZ = Object.getOwnPropertyDescriptor, Qc = (i, A
|
|
|
60946
60945
|
(C = i[t]) && (e = (I ? C(A, g, e) : C(e)) || e);
|
|
60947
60946
|
return I && e && dZ(A, g, e), e;
|
|
60948
60947
|
};
|
|
60949
|
-
class xs extends
|
|
60948
|
+
class xs extends $i {
|
|
60950
60949
|
constructor() {
|
|
60951
60950
|
super(...arguments);
|
|
60952
60951
|
Q(this, "mode");
|
|
@@ -61004,7 +61003,7 @@ Qc([
|
|
|
61004
61003
|
Qc([
|
|
61005
61004
|
U(II)
|
|
61006
61005
|
], xs.prototype, "gaussianMaxRadius", 2);
|
|
61007
|
-
|
|
61006
|
+
mo("DepthOfField", xs);
|
|
61008
61007
|
var pZ = Object.defineProperty, wZ = Object.getOwnPropertyDescriptor, fZ = (i, A, g, I) => {
|
|
61009
61008
|
for (var e = I > 1 ? void 0 : I ? wZ(A, g) : A, t = i.length - 1, C; t >= 0; t--)
|
|
61010
61009
|
(C = i[t]) && (e = (I ? C(A, g, e) : C(e)) || e);
|
|
@@ -61167,9 +61166,9 @@ const DG = class {
|
|
|
61167
61166
|
Q(this, "_selected", null);
|
|
61168
61167
|
Q(this, "_context", null);
|
|
61169
61168
|
Q(this, "_camera");
|
|
61170
|
-
Q(this, "_cameraPlane", new
|
|
61169
|
+
Q(this, "_cameraPlane", new Et());
|
|
61171
61170
|
Q(this, "_hasGroundPlane", !1);
|
|
61172
|
-
Q(this, "_groundPlane", new
|
|
61171
|
+
Q(this, "_groundPlane", new Et());
|
|
61173
61172
|
Q(this, "_groundOffset", new M());
|
|
61174
61173
|
Q(this, "_groundOffsetFactor", 0);
|
|
61175
61174
|
Q(this, "_groundDistance", 0);
|
|
@@ -61436,7 +61435,7 @@ const NZ = cA("debugnet"), zf = class extends TA {
|
|
|
61436
61435
|
return e && (I = g), A != null && A.startsWith("/") && (I = (e ? I : window.location.origin) + A), I;
|
|
61437
61436
|
}
|
|
61438
61437
|
static IsLocalNetwork(A = window.location.hostname) {
|
|
61439
|
-
return
|
|
61438
|
+
return ji(A);
|
|
61440
61439
|
}
|
|
61441
61440
|
};
|
|
61442
61441
|
let rQ = zf;
|
|
@@ -61565,7 +61564,7 @@ class EQ extends Cc {
|
|
|
61565
61564
|
}
|
|
61566
61565
|
const o = this.handleDuplication(C.selected);
|
|
61567
61566
|
o && (console.assert(o !== C.selected, "Duplicated object is original"), C.attached = o);
|
|
61568
|
-
}) : console.warn("Could no find drag controls in parent", this.name), TI.addEventListener(
|
|
61567
|
+
}) : console.warn("Could no find drag controls in parent", this.name), TI.addEventListener(ts.SelectStart, (t, C) => {
|
|
61569
61568
|
if (this._currentCount >= this.limitCount) {
|
|
61570
61569
|
C.grab = null;
|
|
61571
61570
|
return;
|
|
@@ -61797,7 +61796,7 @@ const VC = (_h = class extends TA {
|
|
|
61797
61796
|
console.error("ReflectionProbe.texture must be a Texture", A);
|
|
61798
61797
|
return;
|
|
61799
61798
|
}
|
|
61800
|
-
this._texture = A, A && (A.mapping =
|
|
61799
|
+
this._texture = A, A && (A.mapping = Dt, A.encoding = Ag, A.needsUpdate = !0);
|
|
61801
61800
|
}
|
|
61802
61801
|
get texture() {
|
|
61803
61802
|
return this._texture;
|
|
@@ -61807,7 +61806,7 @@ const VC = (_h = class extends TA {
|
|
|
61807
61806
|
return (I = this._boxHelper) == null ? void 0 : I.isInBox(A, g);
|
|
61808
61807
|
}
|
|
61809
61808
|
awake() {
|
|
61810
|
-
this._boxHelper = this.gameObject.addNewComponent(Yt), this._boxHelper.updateBox(!0), Hn && this._boxHelper.showHelper(5592320, !0), this.texture && (this.texture.mapping =
|
|
61809
|
+
this._boxHelper = this.gameObject.addNewComponent(Yt), this._boxHelper.updateBox(!0), Hn && this._boxHelper.showHelper(5592320, !0), this.texture && (this.texture.mapping = Dt, this.texture.encoding = Ag, this.texture.needsUpdate = !0);
|
|
61811
61810
|
}
|
|
61812
61811
|
onDestroy() {
|
|
61813
61812
|
const A = VC._probes.get(this.context);
|
|
@@ -61874,7 +61873,7 @@ function OZ() {
|
|
|
61874
61873
|
};
|
|
61875
61874
|
}
|
|
61876
61875
|
OZ();
|
|
61877
|
-
var _Z = Object.defineProperty, PZ = Object.getOwnPropertyDescriptor,
|
|
61876
|
+
var _Z = Object.defineProperty, PZ = Object.getOwnPropertyDescriptor, Jo = (i, A, g, I) => {
|
|
61878
61877
|
for (var e = I > 1 ? void 0 : I ? PZ(A, g) : A, t = i.length - 1, C; t >= 0; t--)
|
|
61879
61878
|
(C = i[t]) && (e = (I ? C(A, g, e) : C(e)) || e);
|
|
61880
61879
|
return I && e && _Z(A, g, e), e;
|
|
@@ -61929,7 +61928,7 @@ class VZ {
|
|
|
61929
61928
|
if (C) {
|
|
61930
61929
|
this._indexMapMaxIndex = s, this._indexMap = o;
|
|
61931
61930
|
const B = `Renderer ${A.name} was initialized with missing materials - this may lead to unexpected behaviour when trying to access sharedMaterials by index.`;
|
|
61932
|
-
console.warn(B),
|
|
61931
|
+
console.warn(B), ji() && ko("Found renderer with missing materials: please check the console for details.");
|
|
61933
61932
|
}
|
|
61934
61933
|
return new Proxy(this, {
|
|
61935
61934
|
get(B, n) {
|
|
@@ -62213,7 +62212,7 @@ const eq = class extends TA {
|
|
|
62213
62212
|
if (this._reflectionProbe = null, this.reflectionProbeUsage !== 0) {
|
|
62214
62213
|
if (!this.probeAnchor)
|
|
62215
62214
|
return;
|
|
62216
|
-
this.startCoroutine(this._updateReflectionProbe(),
|
|
62215
|
+
this.startCoroutine(this._updateReflectionProbe(), zi.LateUpdate);
|
|
62217
62216
|
}
|
|
62218
62217
|
}
|
|
62219
62218
|
*_updateReflectionProbe() {
|
|
@@ -62235,31 +62234,31 @@ const eq = class extends TA {
|
|
|
62235
62234
|
}
|
|
62236
62235
|
};
|
|
62237
62236
|
let ye = eq;
|
|
62238
|
-
|
|
62237
|
+
Jo([
|
|
62239
62238
|
U()
|
|
62240
62239
|
], ye.prototype, "receiveShadows", 2);
|
|
62241
|
-
|
|
62240
|
+
Jo([
|
|
62242
62241
|
U()
|
|
62243
62242
|
], ye.prototype, "shadowCastingMode", 2);
|
|
62244
|
-
|
|
62243
|
+
Jo([
|
|
62245
62244
|
U()
|
|
62246
62245
|
], ye.prototype, "lightmapIndex", 2);
|
|
62247
|
-
|
|
62246
|
+
Jo([
|
|
62248
62247
|
U(Bg)
|
|
62249
62248
|
], ye.prototype, "lightmapScaleOffset", 2);
|
|
62250
|
-
|
|
62249
|
+
Jo([
|
|
62251
62250
|
U()
|
|
62252
62251
|
], ye.prototype, "enableInstancing", 2);
|
|
62253
|
-
|
|
62252
|
+
Jo([
|
|
62254
62253
|
U()
|
|
62255
62254
|
], ye.prototype, "renderOrder", 2);
|
|
62256
|
-
|
|
62255
|
+
Jo([
|
|
62257
62256
|
U()
|
|
62258
62257
|
], ye.prototype, "allowOcclusionWhenDynamic", 2);
|
|
62259
|
-
|
|
62258
|
+
Jo([
|
|
62260
62259
|
U(LA)
|
|
62261
62260
|
], ye.prototype, "probeAnchor", 2);
|
|
62262
|
-
|
|
62261
|
+
Jo([
|
|
62263
62262
|
U()
|
|
62264
62263
|
], ye.prototype, "reflectionProbeUsage", 2);
|
|
62265
62264
|
class Z0 extends ye {
|
|
@@ -62995,7 +62994,7 @@ class Ez {
|
|
|
62995
62994
|
}
|
|
62996
62995
|
B.putImageData(n, 0, 0);
|
|
62997
62996
|
const a = (A || g).clone();
|
|
62998
|
-
return a.source = new
|
|
62997
|
+
return a.source = new as(s), a.encoding = WI, a;
|
|
62999
62998
|
}
|
|
63000
62999
|
/**
|
|
63001
63000
|
* Process a buffer to append to the default one.
|
|
@@ -63717,7 +63716,7 @@ class sq extends Yt {
|
|
|
63717
63716
|
yield;
|
|
63718
63717
|
}
|
|
63719
63718
|
}
|
|
63720
|
-
class
|
|
63719
|
+
class ss extends TA {
|
|
63721
63720
|
constructor() {
|
|
63722
63721
|
super(...arguments);
|
|
63723
63722
|
Q(this, "binary", !0);
|
|
@@ -63727,15 +63726,15 @@ class os extends TA {
|
|
|
63727
63726
|
}
|
|
63728
63727
|
async exportNow(g) {
|
|
63729
63728
|
console.log("DO EXPORT", this.objects);
|
|
63730
|
-
const I = { binary: this.binary, pivot:
|
|
63731
|
-
this.binary ? g.endsWith(".glb") || (g += ".glb") : g.endsWith(".gltf") || (g += ".gltf"), this.binary ?
|
|
63729
|
+
const I = { binary: this.binary, pivot: ss.calculateCenter(this.objects) }, e = await this.export(this.objects, I);
|
|
63730
|
+
this.binary ? g.endsWith(".glb") || (g += ".glb") : g.endsWith(".gltf") || (g += ".gltf"), this.binary ? ss.saveArrayBuffer(e, g) : ss.saveJson(e, g);
|
|
63732
63731
|
}
|
|
63733
63732
|
async export(g, I) {
|
|
63734
63733
|
if (g === null || g.length <= 0) {
|
|
63735
63734
|
console.log("no objects set to export");
|
|
63736
63735
|
return;
|
|
63737
63736
|
}
|
|
63738
|
-
this.exporter || (this.exporter = new $0(), this.exporter.register((s) => new pz(s)), this.ext = new hK(), this.ext.registerExport(this.exporter)),
|
|
63737
|
+
this.exporter || (this.exporter = new $0(), this.exporter.register((s) => new pz(s)), this.ext = new hK(), this.ext.registerExport(this.exporter)), ss.filterTopmostParent(g);
|
|
63739
63738
|
const e = {
|
|
63740
63739
|
trs: !1,
|
|
63741
63740
|
onlyVisible: !0,
|
|
@@ -63745,7 +63744,7 @@ class os extends TA {
|
|
|
63745
63744
|
// To prevent NaN value,
|
|
63746
63745
|
embedImages: !0,
|
|
63747
63746
|
includeCustomExtensions: !0,
|
|
63748
|
-
animations:
|
|
63747
|
+
animations: ss.collectAnimations(g)
|
|
63749
63748
|
}, t = new LA();
|
|
63750
63749
|
I != null && I.pivot && t.position.sub(I.pivot), console.log("EXPORT", g), g.forEach((s) => {
|
|
63751
63750
|
s && (t.children.push(s), s.matrixAutoUpdate = !1, s.matrix.copy(s.matrixWorld), BA.getComponentsInChildren(s, ye).forEach((B) => {
|
|
@@ -63827,15 +63826,15 @@ class os extends TA {
|
|
|
63827
63826
|
}
|
|
63828
63827
|
class AG extends TA {
|
|
63829
63828
|
awake() {
|
|
63830
|
-
|
|
63829
|
+
lt.createIfNoneExists(this.context);
|
|
63831
63830
|
}
|
|
63832
63831
|
onEnable() {
|
|
63833
63832
|
var A;
|
|
63834
|
-
(A =
|
|
63833
|
+
(A = lt.get(this.context)) == null || A.register(this);
|
|
63835
63834
|
}
|
|
63836
63835
|
onDisable() {
|
|
63837
63836
|
var A;
|
|
63838
|
-
(A =
|
|
63837
|
+
(A = lt.get(this.context)) == null || A.unregister(this);
|
|
63839
63838
|
}
|
|
63840
63839
|
performRaycast(A = null) {
|
|
63841
63840
|
return null;
|
|
@@ -64192,7 +64191,7 @@ class Ui extends zB {
|
|
|
64192
64191
|
}
|
|
64193
64192
|
}
|
|
64194
64193
|
requestRebuild() {
|
|
64195
|
-
this._isWaitingForRebuild || (this._isWaitingForRebuild = !0, this.startCoroutine(this.rebuildDelayedRoutine(),
|
|
64194
|
+
this._isWaitingForRebuild || (this._isWaitingForRebuild = !0, this.startCoroutine(this.rebuildDelayedRoutine(), zi.EarlyUpdate));
|
|
64196
64195
|
}
|
|
64197
64196
|
*rebuildDelayedRoutine() {
|
|
64198
64197
|
if (this._isWaitingForRebuild = !1, this._textMeshUi) {
|
|
@@ -64491,7 +64490,7 @@ const Gg = (Ar = class extends TA {
|
|
|
64491
64490
|
(A = Gg.htmlField) == null || A.removeEventListener("keyup", this.inputEventFn), this.onDeselected(), this._iosEventFn && window.removeEventListener("touchend", this._iosEventFn);
|
|
64492
64491
|
}
|
|
64493
64492
|
onPointerClick(A) {
|
|
64494
|
-
Xs && console.log("CLICK", A, Gg.active), Gg.activeTime = this.context.time.time, Gg.active !== this && this.startCoroutine(this.activeLoop(),
|
|
64493
|
+
Xs && console.log("CLICK", A, Gg.active), Gg.activeTime = this.context.time.time, Gg.active !== this && this.startCoroutine(this.activeLoop(), zi.LateUpdate), this.selectInputField();
|
|
64495
64494
|
}
|
|
64496
64495
|
*activeLoop() {
|
|
64497
64496
|
for (this.onSelected(); Gg.active === this && !(this.context.input.getPointerUp(0) && this.context.time.time - Gg.activeTime > 0.2); )
|
|
@@ -64595,7 +64594,7 @@ nu([
|
|
|
64595
64594
|
U(Wi)
|
|
64596
64595
|
], hQ.prototype, "onEndEdit", 2);
|
|
64597
64596
|
var rq = /* @__PURE__ */ ((i) => (i[i.fr = 0] = "fr", i[i.ru = 1] = "ru", i[i.de = 2] = "de", i[i.es = 3] = "es", i[i.el = 4] = "el", i[i.nord = 5] = "nord", i[i.eng = 6] = "eng", i))(rq || {});
|
|
64598
|
-
class Eq extends
|
|
64597
|
+
class Eq extends Ro {
|
|
64599
64598
|
constructor() {
|
|
64600
64599
|
super(...arguments);
|
|
64601
64600
|
Q(this, "font");
|
|
@@ -64731,7 +64730,7 @@ function gw(i) {
|
|
|
64731
64730
|
return i * Math.PI / 180;
|
|
64732
64731
|
}
|
|
64733
64732
|
const LU = 300, mn = cA("debuglights");
|
|
64734
|
-
class
|
|
64733
|
+
class et extends TA {
|
|
64735
64734
|
constructor() {
|
|
64736
64735
|
super(...arguments);
|
|
64737
64736
|
Q(this, "type", 0);
|
|
@@ -64854,7 +64853,7 @@ class It extends TA {
|
|
|
64854
64853
|
this.color = new fA(this.color ?? 16777215), mn && console.log(this.name, this);
|
|
64855
64854
|
}
|
|
64856
64855
|
onEnable() {
|
|
64857
|
-
mn && console.log("ENABLE LIGHT", this.name), this.createLight(), !this.isBaked && (this.light && (this.light.visible = !0, this.light.intensity = this._intensity, this.selfIsLight || this.light.parent !== this.gameObject && this.gameObject.add(this.light)), this.type === 1 && this.startCoroutine(this.updateMainLightRoutine(),
|
|
64856
|
+
mn && console.log("ENABLE LIGHT", this.name), this.createLight(), !this.isBaked && (this.light && (this.light.visible = !0, this.light.intensity = this._intensity, this.selfIsLight || this.light.parent !== this.gameObject && this.gameObject.add(this.light)), this.type === 1 && this.startCoroutine(this.updateMainLightRoutine(), zi.LateUpdate), this._webXRStartedListener = Lg.addEventListener(Ke.XRStarted, this.onWebXRStarted.bind(this)), this._webXREndedListener = Lg.addEventListener(Ke.XRStopped, this.onWebXREnded.bind(this)));
|
|
64858
64857
|
}
|
|
64859
64858
|
onDisable() {
|
|
64860
64859
|
mn && console.log("DISABLE LIGHT", this.name), this.light && (this.selfIsLight ? this.light.intensity = 0 : this.light.visible = !1), Lg.removeEventListener(Ke.XRStarted, this._webXRStartedListener), Lg.removeEventListener(Ke.XRStopped, this._webXREndedListener);
|
|
@@ -64930,37 +64929,37 @@ class It extends TA {
|
|
|
64930
64929
|
g.add(g.target), g.target.position.set(0, 0, -1);
|
|
64931
64930
|
}
|
|
64932
64931
|
}
|
|
64933
|
-
Q(
|
|
64932
|
+
Q(et, "allowChangingRendererShadowMapType", !0);
|
|
64934
64933
|
bC([
|
|
64935
64934
|
U()
|
|
64936
|
-
],
|
|
64935
|
+
], et.prototype, "type", 2);
|
|
64937
64936
|
bC([
|
|
64938
64937
|
U(fA)
|
|
64939
|
-
],
|
|
64938
|
+
], et.prototype, "color", 1);
|
|
64940
64939
|
bC([
|
|
64941
64940
|
U()
|
|
64942
|
-
],
|
|
64941
|
+
], et.prototype, "shadowNearPlane", 1);
|
|
64943
64942
|
bC([
|
|
64944
64943
|
U()
|
|
64945
|
-
],
|
|
64944
|
+
], et.prototype, "shadowBias", 1);
|
|
64946
64945
|
bC([
|
|
64947
64946
|
U()
|
|
64948
|
-
],
|
|
64947
|
+
], et.prototype, "shadowNormalBias", 1);
|
|
64949
64948
|
bC([
|
|
64950
64949
|
U()
|
|
64951
|
-
],
|
|
64950
|
+
], et.prototype, "shadows", 1);
|
|
64952
64951
|
bC([
|
|
64953
64952
|
U()
|
|
64954
|
-
],
|
|
64953
|
+
], et.prototype, "lightmapBakeType", 2);
|
|
64955
64954
|
bC([
|
|
64956
64955
|
U()
|
|
64957
|
-
],
|
|
64956
|
+
], et.prototype, "intensity", 1);
|
|
64958
64957
|
bC([
|
|
64959
64958
|
U()
|
|
64960
|
-
],
|
|
64959
|
+
], et.prototype, "shadowDistance", 1);
|
|
64961
64960
|
bC([
|
|
64962
64961
|
U()
|
|
64963
|
-
],
|
|
64962
|
+
], et.prototype, "shadowResolution", 1);
|
|
64964
64963
|
new M(0, 0, 0);
|
|
64965
64964
|
var Kz = Object.defineProperty, Jz = Object.getOwnPropertyDescriptor, lc = (i, A, g, I) => {
|
|
64966
64965
|
for (var e = I > 1 ? void 0 : I ? Jz(A, g) : A, t = i.length - 1, C; t >= 0; t--)
|
|
@@ -65096,7 +65095,7 @@ lc([
|
|
|
65096
65095
|
const bz = cA("logstats");
|
|
65097
65096
|
class cq extends TA {
|
|
65098
65097
|
onEnable() {
|
|
65099
|
-
console.log(this), bz && this.startCoroutine(this.run(),
|
|
65098
|
+
console.log(this), bz && this.startCoroutine(this.run(), zi.OnAfterRender);
|
|
65100
65099
|
}
|
|
65101
65100
|
*run() {
|
|
65102
65101
|
for (; this.enabled; ) {
|
|
@@ -65177,7 +65176,7 @@ class DQ extends TA {
|
|
|
65177
65176
|
this.offset.copy(this.positionOffset);
|
|
65178
65177
|
const e = this.offset.length();
|
|
65179
65178
|
if (this.referenceSpace && this.offset.transformDirection(this.referenceSpace.matrixWorld).multiplyScalar(e), g.add(this.offset), this.levelPosition && this.referenceSpace) {
|
|
65180
|
-
const s = new
|
|
65179
|
+
const s = new Et(this.gameObject.up, 0), B = pg(this.referenceSpace);
|
|
65181
65180
|
s.setFromNormalAndCoplanarPoint(this.gameObject.up, B);
|
|
65182
65181
|
const n = new M(0, 0, 0);
|
|
65183
65182
|
s.projectPoint(g, n), g.copy(n);
|
|
@@ -68460,7 +68459,7 @@ te([
|
|
|
68460
68459
|
U(Ve)
|
|
68461
68460
|
], Ee.prototype, "main", 2);
|
|
68462
68461
|
te([
|
|
68463
|
-
U(
|
|
68462
|
+
U(Ko)
|
|
68464
68463
|
], Ee.prototype, "emission", 2);
|
|
68465
68464
|
te([
|
|
68466
68465
|
U(An)
|
|
@@ -68475,7 +68474,7 @@ te([
|
|
|
68475
68474
|
U(UI)
|
|
68476
68475
|
], Ee.prototype, "trails", 2);
|
|
68477
68476
|
te([
|
|
68478
|
-
U(
|
|
68477
|
+
U(It)
|
|
68479
68478
|
], Ee.prototype, "velocityOverLifetime", 2);
|
|
68480
68479
|
te([
|
|
68481
68480
|
U(ce)
|
|
@@ -68586,7 +68585,7 @@ var YV = Object.defineProperty, HV = Object.getOwnPropertyDescriptor, TV = (i, A
|
|
|
68586
68585
|
(C = i[t]) && (e = (I ? C(A, g, e) : C(e)) || e);
|
|
68587
68586
|
return I && e && YV(A, g, e), e;
|
|
68588
68587
|
};
|
|
68589
|
-
class ru extends
|
|
68588
|
+
class ru extends $i {
|
|
68590
68589
|
constructor() {
|
|
68591
68590
|
super(...arguments);
|
|
68592
68591
|
Q(this, "granularity");
|
|
@@ -68604,7 +68603,7 @@ class ru extends Xi {
|
|
|
68604
68603
|
TV([
|
|
68605
68604
|
U(II)
|
|
68606
68605
|
], ru.prototype, "granularity", 2);
|
|
68607
|
-
|
|
68606
|
+
mo("PixelationEffect", ru);
|
|
68608
68607
|
function* OV(i, A = null) {
|
|
68609
68608
|
const g = A ? A.time : bg.Current.time, I = g.time;
|
|
68610
68609
|
for (; g.time - I < i; )
|
|
@@ -68659,26 +68658,33 @@ class Na extends TA {
|
|
|
68659
68658
|
}
|
|
68660
68659
|
const hR = cA("debugpost"), tw = Symbol("postprocessing-handler");
|
|
68661
68660
|
class CG {
|
|
68662
|
-
constructor() {
|
|
68661
|
+
constructor(A) {
|
|
68663
68662
|
Q(this, "_composer", null);
|
|
68664
68663
|
Q(this, "_lastVolumeComponents");
|
|
68665
68664
|
Q(this, "_effects", []);
|
|
68665
|
+
Q(this, "_isActive", !1);
|
|
68666
|
+
Q(this, "context");
|
|
68667
|
+
this.context = A;
|
|
68668
|
+
}
|
|
68669
|
+
get isActive() {
|
|
68670
|
+
return this._isActive;
|
|
68666
68671
|
}
|
|
68667
|
-
apply(A
|
|
68668
|
-
this.onApply(
|
|
68672
|
+
apply(A) {
|
|
68673
|
+
this._isActive = !0, this.onApply(this.context, A);
|
|
68669
68674
|
}
|
|
68670
|
-
unapply(
|
|
68671
|
-
if (this._lastVolumeComponents) {
|
|
68675
|
+
unapply() {
|
|
68676
|
+
if (this._isActive = !1, this._lastVolumeComponents) {
|
|
68672
68677
|
for (const I of this._lastVolumeComponents)
|
|
68673
68678
|
I.unapply();
|
|
68674
68679
|
this._lastVolumeComponents.length = 0;
|
|
68675
68680
|
}
|
|
68681
|
+
const A = this.context;
|
|
68676
68682
|
A[tw] === this && delete A[tw], A.composer === this._composer && (A.composer = null);
|
|
68677
68683
|
}
|
|
68678
|
-
dispose(
|
|
68679
|
-
this.unapply(
|
|
68680
|
-
for (const
|
|
68681
|
-
|
|
68684
|
+
dispose() {
|
|
68685
|
+
this.unapply();
|
|
68686
|
+
for (const A of this._effects)
|
|
68687
|
+
A.dispose();
|
|
68682
68688
|
this._effects.length = 0;
|
|
68683
68689
|
}
|
|
68684
68690
|
onApply(A, g) {
|
|
@@ -68692,12 +68698,12 @@ class CG {
|
|
|
68692
68698
|
return;
|
|
68693
68699
|
}
|
|
68694
68700
|
const e = I.apply();
|
|
68695
|
-
if (e
|
|
68701
|
+
if (!e)
|
|
68696
68702
|
continue;
|
|
68697
68703
|
Array.isArray(e) ? this._effects.push(...e) : this._effects.push(e);
|
|
68698
68704
|
}
|
|
68699
68705
|
} else
|
|
68700
|
-
I.active &&
|
|
68706
|
+
I.active && ko("Volume component is not a VolumeComponent: " + I.__type);
|
|
68701
68707
|
this.applyEffects(A);
|
|
68702
68708
|
}
|
|
68703
68709
|
}
|
|
@@ -70040,7 +70046,7 @@ var Q5 = Object.defineProperty, r5 = Object.getOwnPropertyDescriptor, sG = (i, A
|
|
|
70040
70046
|
(C = i[t]) && (e = (I ? C(A, g, e) : C(e)) || e);
|
|
70041
70047
|
return I && e && Q5(A, g, e), e;
|
|
70042
70048
|
};
|
|
70043
|
-
class fQ extends
|
|
70049
|
+
class fQ extends $i {
|
|
70044
70050
|
constructor() {
|
|
70045
70051
|
super(...arguments);
|
|
70046
70052
|
Q(this, "intensity");
|
|
@@ -70092,7 +70098,7 @@ sG([
|
|
|
70092
70098
|
sG([
|
|
70093
70099
|
U(II)
|
|
70094
70100
|
], fQ.prototype, "samples", 2);
|
|
70095
|
-
|
|
70101
|
+
mo("ScreenSpaceAmbientOcclusion", fQ);
|
|
70096
70102
|
var E5 = Object.defineProperty, c5 = Object.getOwnPropertyDescriptor, Uq = (i, A, g, I) => {
|
|
70097
70103
|
for (var e = I > 1 ? void 0 : I ? c5(A, g) : A, t = i.length - 1, C; t >= 0; t--)
|
|
70098
70104
|
(C = i[t]) && (e = (I ? C(A, g, e) : C(e)) || e);
|
|
@@ -71425,7 +71431,7 @@ var O5 = Object.defineProperty, _5 = Object.getOwnPropertyDescriptor, P5 = (i, A
|
|
|
71425
71431
|
(C = i[t]) && (e = (I ? C(A, g, e) : C(e)) || e);
|
|
71426
71432
|
return I && e && O5(A, g, e), e;
|
|
71427
71433
|
};
|
|
71428
|
-
class uu extends
|
|
71434
|
+
class uu extends $i {
|
|
71429
71435
|
constructor() {
|
|
71430
71436
|
super(...arguments);
|
|
71431
71437
|
Q(this, "mode");
|
|
@@ -71462,8 +71468,8 @@ class uu extends Xi {
|
|
|
71462
71468
|
P5([
|
|
71463
71469
|
U(II)
|
|
71464
71470
|
], uu.prototype, "mode", 2);
|
|
71465
|
-
|
|
71466
|
-
const $s = new Oa(), di = new M(),
|
|
71471
|
+
mo("Tonemapping", uu);
|
|
71472
|
+
const $s = new Oa(), di = new M(), As = new M(), SI = new UA(), pR = {
|
|
71467
71473
|
X: new M(1, 0, 0),
|
|
71468
71474
|
Y: new M(0, 1, 0),
|
|
71469
71475
|
Z: new M(0, 0, 1)
|
|
@@ -71522,10 +71528,10 @@ class W5 extends LA {
|
|
|
71522
71528
|
else if (I === "scale") {
|
|
71523
71529
|
if (g.search("XYZ") !== -1) {
|
|
71524
71530
|
let o = this.pointEnd.length() / this.pointStart.length();
|
|
71525
|
-
this.pointEnd.dot(this.pointStart) < 0 && (o *= -1),
|
|
71531
|
+
this.pointEnd.dot(this.pointStart) < 0 && (o *= -1), As.set(o, o, o);
|
|
71526
71532
|
} else
|
|
71527
|
-
di.copy(this.pointStart),
|
|
71528
|
-
e.scale.copy(this._scaleStart).multiply(
|
|
71533
|
+
di.copy(this.pointStart), As.copy(this.pointEnd), di.applyQuaternion(this._worldQuaternionInv), As.applyQuaternion(this._worldQuaternionInv), As.divide(di), g.search("X") === -1 && (As.x = 1), g.search("Y") === -1 && (As.y = 1), g.search("Z") === -1 && (As.z = 1);
|
|
71534
|
+
e.scale.copy(this._scaleStart).multiply(As), this.scaleSnap && (g.search("X") !== -1 && (e.scale.x = Math.round(e.scale.x / this.scaleSnap) * this.scaleSnap || this.scaleSnap), g.search("Y") !== -1 && (e.scale.y = Math.round(e.scale.y / this.scaleSnap) * this.scaleSnap || this.scaleSnap), g.search("Z") !== -1 && (e.scale.z = Math.round(e.scale.z / this.scaleSnap) * this.scaleSnap || this.scaleSnap));
|
|
71529
71535
|
} else if (I === "rotate") {
|
|
71530
71536
|
this._offset.copy(this.pointEnd).sub(this.pointStart);
|
|
71531
71537
|
const o = 20 / this.worldPosition.distanceTo(di.setFromMatrixPosition(this.camera.matrixWorld));
|
|
@@ -72054,7 +72060,7 @@ function CX(i, A) {
|
|
|
72054
72060
|
const s = o.getClip();
|
|
72055
72061
|
if (!e && s.tracks.length > 0) {
|
|
72056
72062
|
e = !0;
|
|
72057
|
-
const B = s.tracks[0], n = B.name.substring(0, B.name.lastIndexOf(".")), r = new
|
|
72063
|
+
const B = s.tracks[0], n = B.name.substring(0, B.name.lastIndexOf(".")), r = new Zi(n + ".position", [0, 0.01], [0, 0, 0, 0, 0, 0]), a = new Zi(n + ".quaternion", [0, 0.01], [0, 0, 0, 1, 0, 0, 0, 1]);
|
|
72058
72064
|
C.push(new Wt("rest", 0.01, [r, a]));
|
|
72059
72065
|
}
|
|
72060
72066
|
C.includes(s) || C.push(s);
|
|
@@ -72125,7 +72131,7 @@ class pu extends TA {
|
|
|
72125
72131
|
this.link.href = URL.createObjectURL(s) + `#callToAction=${n}&checkoutTitle=${r}&checkoutSubtitle=${a}&`, this.lastCallback || (this.lastCallback = this.quicklookCallback.bind(this), this.link.addEventListener("message", this.lastCallback)), this.link.download = C + ".usdz", this.link.click();
|
|
72126
72132
|
}
|
|
72127
72133
|
quicklookCallback(g) {
|
|
72128
|
-
(g == null ? void 0 : g.data) == "_apple_ar_quicklook_button_tapped" && (ZQ &&
|
|
72134
|
+
(g == null ? void 0 : g.data) == "_apple_ar_quicklook_button_tapped" && (ZQ && ko("Quicklook closed via call to action button"), this.dispatchEvent(new CustomEvent("quicklook-button-tapped", { detail: this })));
|
|
72129
72135
|
}
|
|
72130
72136
|
buildQuicklookOverlay() {
|
|
72131
72137
|
const g = {};
|
|
@@ -72168,7 +72174,7 @@ var BX = Object.defineProperty, nX = Object.getOwnPropertyDescriptor, QG = (i, A
|
|
|
72168
72174
|
(C = i[t]) && (e = (I ? C(A, g, e) : C(e)) || e);
|
|
72169
72175
|
return I && e && BX(A, g, e), e;
|
|
72170
72176
|
};
|
|
72171
|
-
class GQ extends
|
|
72177
|
+
class GQ extends $i {
|
|
72172
72178
|
constructor() {
|
|
72173
72179
|
super(...arguments);
|
|
72174
72180
|
Q(this, "color");
|
|
@@ -72203,7 +72209,7 @@ QG([
|
|
|
72203
72209
|
QG([
|
|
72204
72210
|
U(II)
|
|
72205
72211
|
], GQ.prototype, "center", 2);
|
|
72206
|
-
|
|
72212
|
+
mo("Vignette", GQ);
|
|
72207
72213
|
function aX() {
|
|
72208
72214
|
return globalThis["NeedleEditorSync.ModificationCache"];
|
|
72209
72215
|
}
|
|
@@ -72217,7 +72223,7 @@ class rG extends TA {
|
|
|
72217
72223
|
constructor() {
|
|
72218
72224
|
super(...arguments);
|
|
72219
72225
|
Q(this, "sharedProfile");
|
|
72220
|
-
Q(this, "_postprocessing"
|
|
72226
|
+
Q(this, "_postprocessing");
|
|
72221
72227
|
Q(this, "_effects", []);
|
|
72222
72228
|
Q(this, "_lastApplyTime");
|
|
72223
72229
|
Q(this, "_rapidApplyCount", 0);
|
|
@@ -72229,34 +72235,29 @@ class rG extends TA {
|
|
|
72229
72235
|
I.key === "p" && (console.log("Toggle volume: " + this.name, !this.enabled), this.enabled = !this.enabled);
|
|
72230
72236
|
}));
|
|
72231
72237
|
}
|
|
72232
|
-
start() {
|
|
72233
|
-
this.apply(), this.tryApplyCache();
|
|
72234
|
-
}
|
|
72235
|
-
onEnable() {
|
|
72236
|
-
this.__internalDidAwakeAndStart && this.apply();
|
|
72237
|
-
}
|
|
72238
72238
|
onDisable() {
|
|
72239
72239
|
var g;
|
|
72240
|
-
(g = this._postprocessing) == null || g.unapply(
|
|
72240
|
+
(g = this._postprocessing) == null || g.unapply();
|
|
72241
72241
|
}
|
|
72242
72242
|
onBeforeRender() {
|
|
72243
|
-
!this.context.isInXR && this.context.composer && this.context.mainCamera && (this.context.composer.setRenderer(this.context.renderer), this.context.composer.setMainScene(this.context.scene), this.context.composer.setMainCamera(this.context.mainCamera));
|
|
72243
|
+
this.context.mainCamera && (!this._postprocessing || !this._postprocessing.isActive) && this.apply(), !this.context.isInXR && this.context.composer && this.context.mainCamera && (this.context.composer.setRenderer(this.context.renderer), this.context.composer.setMainScene(this.context.scene), this.context.composer.setMainCamera(this.context.mainCamera));
|
|
72244
72244
|
}
|
|
72245
72245
|
onDestroy() {
|
|
72246
72246
|
var g;
|
|
72247
|
-
(g = this._postprocessing) == null || g.dispose(
|
|
72247
|
+
(g = this._postprocessing) == null || g.dispose();
|
|
72248
72248
|
}
|
|
72249
72249
|
apply() {
|
|
72250
|
-
var I;
|
|
72251
|
-
aw && console.log("Apply PostProcessing", this), HE() && (this._lastApplyTime !== void 0 && Date.now() - this._lastApplyTime < 100 && (this._rapidApplyCount++, this._rapidApplyCount === 5 && console.warn("Detected rapid post processing modifications - this might be a bug", this)), this._lastApplyTime = Date.now()), this.unapply(), this._effects.length = 0, (
|
|
72252
|
-
const g = this.gameObject.getComponentsInChildren(
|
|
72250
|
+
var I, e;
|
|
72251
|
+
aw && console.log("Apply PostProcessing", this, (I = this.context.mainCamera) == null ? void 0 : I.name), HE() && (this._lastApplyTime !== void 0 && Date.now() - this._lastApplyTime < 100 && (this._rapidApplyCount++, this._rapidApplyCount === 5 && console.warn("Detected rapid post processing modifications - this might be a bug", this)), this._lastApplyTime = Date.now()), this.unapply(), this._effects.length = 0, (e = this.sharedProfile) != null && e.components && this._effects.push(...this.sharedProfile.components);
|
|
72252
|
+
const g = this.gameObject.getComponentsInChildren($i);
|
|
72253
72253
|
if (aw && (g != null && g.length) && console.log("Additional", g), g)
|
|
72254
|
-
for (const
|
|
72255
|
-
|
|
72256
|
-
this._effects.length > 0 && this._postprocessing.
|
|
72254
|
+
for (const t of g)
|
|
72255
|
+
t.active && this._effects.push(t);
|
|
72256
|
+
this._effects.length > 0 && (this._postprocessing || (this._postprocessing = new CG(this.context)), this._postprocessing.apply(this._effects));
|
|
72257
72257
|
}
|
|
72258
72258
|
unapply() {
|
|
72259
|
-
|
|
72259
|
+
var g;
|
|
72260
|
+
(g = this._postprocessing) == null || g.unapply();
|
|
72260
72261
|
}
|
|
72261
72262
|
tryApplyCache() {
|
|
72262
72263
|
const g = aX();
|
|
@@ -72552,7 +72553,7 @@ const uX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
72552
72553
|
Avatar_MustacheShake: xJ,
|
|
72553
72554
|
Avatar_POI: Si,
|
|
72554
72555
|
AxesHelper: nc,
|
|
72555
|
-
BaseUIComponent:
|
|
72556
|
+
BaseUIComponent: Ro,
|
|
72556
72557
|
BasicIKConstraint: HJ,
|
|
72557
72558
|
Bloom: nQ,
|
|
72558
72559
|
BoxCollider: Xd,
|
|
@@ -72567,7 +72568,7 @@ const uX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
72567
72568
|
CharacterController: aQ,
|
|
72568
72569
|
CharacterControllerInput: vs,
|
|
72569
72570
|
ChromaticAberration: Iu,
|
|
72570
|
-
Collider:
|
|
72571
|
+
Collider: Fo,
|
|
72571
72572
|
ColorAdjustments: XB,
|
|
72572
72573
|
ColorBySpeedModule: QQ,
|
|
72573
72574
|
ColorOverLifetimeModule: tu,
|
|
@@ -72579,16 +72580,16 @@ const uX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
72579
72580
|
DragControls: fB,
|
|
72580
72581
|
DropListener: Cu,
|
|
72581
72582
|
Duplicatable: EQ,
|
|
72582
|
-
EmissionModule:
|
|
72583
|
+
EmissionModule: Ko,
|
|
72583
72584
|
EventList: Wi,
|
|
72584
72585
|
EventListEvent: U0,
|
|
72585
|
-
EventSystem:
|
|
72586
|
+
EventSystem: lt,
|
|
72586
72587
|
EventTrigger: j0,
|
|
72587
72588
|
FieldWithDefault: Iq,
|
|
72588
72589
|
FixedJoint: tq,
|
|
72589
72590
|
FlyControls: Cq,
|
|
72590
72591
|
Fog: Ec,
|
|
72591
|
-
GltfExport:
|
|
72592
|
+
GltfExport: ss,
|
|
72592
72593
|
GltfExportBox: sq,
|
|
72593
72594
|
Gradient: $B,
|
|
72594
72595
|
Graphic: zB,
|
|
@@ -72606,7 +72607,7 @@ const uX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
72606
72607
|
LODGroup: au,
|
|
72607
72608
|
LODModel: lQ,
|
|
72608
72609
|
LayoutGroup: hc,
|
|
72609
|
-
Light:
|
|
72610
|
+
Light: et,
|
|
72610
72611
|
LimitVelocityOverLifetimeModule: ce,
|
|
72611
72612
|
LogStats: cq,
|
|
72612
72613
|
LookAtConstraint: Nd,
|
|
@@ -72615,7 +72616,7 @@ const uX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
72615
72616
|
MeshCollider: L0,
|
|
72616
72617
|
MeshRenderer: Z0,
|
|
72617
72618
|
MinMaxCurve: ng,
|
|
72618
|
-
MinMaxGradient:
|
|
72619
|
+
MinMaxGradient: gt,
|
|
72619
72620
|
NestedGltf: eG,
|
|
72620
72621
|
Networking: rQ,
|
|
72621
72622
|
NoiseModule: CI,
|
|
@@ -72683,7 +72684,7 @@ const uX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
72683
72684
|
USDZExporter: pu,
|
|
72684
72685
|
UsageMarker: oc,
|
|
72685
72686
|
VRUserState: DC,
|
|
72686
|
-
VelocityOverLifetimeModule:
|
|
72687
|
+
VelocityOverLifetimeModule: It,
|
|
72687
72688
|
VerticalLayoutGroup: nq,
|
|
72688
72689
|
VideoPlayer: ri,
|
|
72689
72690
|
Vignette: GQ,
|
|
@@ -72869,7 +72870,7 @@ V.add("AvatarLoader", o0);
|
|
|
72869
72870
|
V.add("AvatarMarker", Je);
|
|
72870
72871
|
V.add("AvatarModel", C0);
|
|
72871
72872
|
V.add("AxesHelper", nc);
|
|
72872
|
-
V.add("BaseUIComponent",
|
|
72873
|
+
V.add("BaseUIComponent", Ro);
|
|
72873
72874
|
V.add("BasicIKConstraint", HJ);
|
|
72874
72875
|
V.add("Bloom", nQ);
|
|
72875
72876
|
V.add("BoxCollider", Xd);
|
|
@@ -72884,7 +72885,7 @@ V.add("CapsuleCollider", YB);
|
|
|
72884
72885
|
V.add("CharacterController", aQ);
|
|
72885
72886
|
V.add("CharacterControllerInput", vs);
|
|
72886
72887
|
V.add("ChromaticAberration", Iu);
|
|
72887
|
-
V.add("Collider",
|
|
72888
|
+
V.add("Collider", Fo);
|
|
72888
72889
|
V.add("ColorAdjustments", XB);
|
|
72889
72890
|
V.add("ColorBySpeedModule", QQ);
|
|
72890
72891
|
V.add("ColorOverLifetimeModule", tu);
|
|
@@ -72896,16 +72897,16 @@ V.add("DeviceFlag", T0);
|
|
|
72896
72897
|
V.add("DragControls", fB);
|
|
72897
72898
|
V.add("DropListener", Cu);
|
|
72898
72899
|
V.add("Duplicatable", EQ);
|
|
72899
|
-
V.add("EmissionModule",
|
|
72900
|
+
V.add("EmissionModule", Ko);
|
|
72900
72901
|
V.add("EventList", Wi);
|
|
72901
72902
|
V.add("EventListEvent", U0);
|
|
72902
|
-
V.add("EventSystem",
|
|
72903
|
+
V.add("EventSystem", lt);
|
|
72903
72904
|
V.add("EventTrigger", j0);
|
|
72904
72905
|
V.add("FieldWithDefault", Iq);
|
|
72905
72906
|
V.add("FixedJoint", tq);
|
|
72906
72907
|
V.add("FlyControls", Cq);
|
|
72907
72908
|
V.add("Fog", Ec);
|
|
72908
|
-
V.add("GltfExport",
|
|
72909
|
+
V.add("GltfExport", ss);
|
|
72909
72910
|
V.add("GltfExportBox", sq);
|
|
72910
72911
|
V.add("Gradient", $B);
|
|
72911
72912
|
V.add("Graphic", zB);
|
|
@@ -72921,7 +72922,7 @@ V.add("InputField", hQ);
|
|
|
72921
72922
|
V.add("Interactable", Cc);
|
|
72922
72923
|
V.add("Keyboard", Eq);
|
|
72923
72924
|
V.add("LayoutGroup", hc);
|
|
72924
|
-
V.add("Light",
|
|
72925
|
+
V.add("Light", et);
|
|
72925
72926
|
V.add("LimitVelocityOverLifetimeModule", ce);
|
|
72926
72927
|
V.add("LODGroup", au);
|
|
72927
72928
|
V.add("LODModel", lQ);
|
|
@@ -72932,7 +72933,7 @@ V.add("MaskableGraphic", Au);
|
|
|
72932
72933
|
V.add("MeshCollider", L0);
|
|
72933
72934
|
V.add("MeshRenderer", Z0);
|
|
72934
72935
|
V.add("MinMaxCurve", ng);
|
|
72935
|
-
V.add("MinMaxGradient",
|
|
72936
|
+
V.add("MinMaxGradient", gt);
|
|
72936
72937
|
V.add("NestedGltf", eG);
|
|
72937
72938
|
V.add("Networking", rQ);
|
|
72938
72939
|
V.add("NoiseModule", CI);
|
|
@@ -73002,7 +73003,7 @@ V.add("UIRaycastUtils", lE);
|
|
|
73002
73003
|
V.add("UIRootComponent", Od);
|
|
73003
73004
|
V.add("UsageMarker", oc);
|
|
73004
73005
|
V.add("USDZExporter", pu);
|
|
73005
|
-
V.add("VelocityOverLifetimeModule",
|
|
73006
|
+
V.add("VelocityOverLifetimeModule", It);
|
|
73006
73007
|
V.add("VerticalLayoutGroup", nq);
|
|
73007
73008
|
V.add("VideoPlayer", ri);
|
|
73008
73009
|
V.add("Vignette", GQ);
|
|
@@ -73097,12 +73098,12 @@ async function ty(i, A, g, I) {
|
|
|
73097
73098
|
}
|
|
73098
73099
|
if (zQ.length > 0) {
|
|
73099
73100
|
const C = zQ.join(", ");
|
|
73100
|
-
console.warn("unknown components: " + C), zQ.length = 0,
|
|
73101
|
+
console.warn("unknown components: " + C), zQ.length = 0, ji() && ct(`<strong>Unknown components in scene</strong>:
|
|
73101
73102
|
|
|
73102
73103
|
${C}
|
|
73103
73104
|
|
|
73104
73105
|
This could mean you forgot to add a npmdef to your ExportInfo
|
|
73105
|
-
<a href="https://engine.needle.tools/docs/project_structure.html#creating-and-installing-a-npmdef" target="_blank">documentation</a>`,
|
|
73106
|
+
<a href="https://engine.needle.tools/docs/project_structure.html#creating-and-installing-a-npmdef" target="_blank">documentation</a>`, cs.Warn);
|
|
73106
73107
|
}
|
|
73107
73108
|
}
|
|
73108
73109
|
if (A.children)
|
|
@@ -73139,19 +73140,19 @@ class ra {
|
|
|
73139
73140
|
this.context = A, this.path = g, this.loader = I, this.gltf = e;
|
|
73140
73141
|
}
|
|
73141
73142
|
}
|
|
73142
|
-
const
|
|
73143
|
+
const us = {};
|
|
73143
73144
|
function U9(i, A) {
|
|
73144
|
-
|
|
73145
|
+
us[i] = us[i] || [], us[i].push(A);
|
|
73145
73146
|
}
|
|
73146
73147
|
function R9(i, A) {
|
|
73147
|
-
if (
|
|
73148
|
-
const g =
|
|
73149
|
-
g >= 0 &&
|
|
73148
|
+
if (us[i]) {
|
|
73149
|
+
const g = us[i].indexOf(A);
|
|
73150
|
+
g >= 0 && us[i].splice(g, 1);
|
|
73150
73151
|
}
|
|
73151
73152
|
}
|
|
73152
73153
|
function Ea(i, A) {
|
|
73153
|
-
if (
|
|
73154
|
-
for (const g of
|
|
73154
|
+
if (us[i])
|
|
73155
|
+
for (const g of us[i])
|
|
73155
73156
|
g(A);
|
|
73156
73157
|
}
|
|
73157
73158
|
async function Hq(i, A, g, I, e) {
|
|
@@ -73256,7 +73257,7 @@ function N9(i, A = null) {
|
|
|
73256
73257
|
return null;
|
|
73257
73258
|
}
|
|
73258
73259
|
ZN(Yq);
|
|
73259
|
-
const
|
|
73260
|
+
const ot = cA("debugwebcomponent"), MR = "needle-engine", Oq = "vr", _q = "desktop", JX = [nB, Oq, _q], VQ = "ar-session-active", XQ = "desktop-session-active";
|
|
73260
73261
|
class qX extends HTMLElement {
|
|
73261
73262
|
constructor() {
|
|
73262
73263
|
super();
|
|
@@ -73306,7 +73307,7 @@ class qX extends HTMLElement {
|
|
|
73306
73307
|
return this._context;
|
|
73307
73308
|
}
|
|
73308
73309
|
async connectedCallback() {
|
|
73309
|
-
|
|
73310
|
+
ot && (console.log("<needle-engine> connected"), console.dir(this)), this.onSetupDesktop();
|
|
73310
73311
|
const g = this.getAttribute("src") ?? globalThis["needle:codegen_files"];
|
|
73311
73312
|
g && g.length > 0 && await this.onLoad(g, !0), this.onSetupDesktop();
|
|
73312
73313
|
}
|
|
@@ -73330,7 +73331,7 @@ class qX extends HTMLElement {
|
|
|
73330
73331
|
attributeChangedCallback(g, I, e) {
|
|
73331
73332
|
switch (g) {
|
|
73332
73333
|
case "src":
|
|
73333
|
-
|
|
73334
|
+
ot && console.log("src changed to type:", typeof e, ', from "', I, '" to "', e), this.onLoad(e, !1);
|
|
73334
73335
|
break;
|
|
73335
73336
|
case "hash":
|
|
73336
73337
|
this._context && (this._context.hash = e);
|
|
@@ -73338,16 +73339,16 @@ class qX extends HTMLElement {
|
|
|
73338
73339
|
case "loadstart":
|
|
73339
73340
|
case "progress":
|
|
73340
73341
|
case "loadfinished":
|
|
73341
|
-
typeof e == "string" && e.length > 0 && (
|
|
73342
|
+
typeof e == "string" && e.length > 0 && (ot && console.log(g + " attribute changed", e), this.registerEventFromAttribute(g, e));
|
|
73342
73343
|
break;
|
|
73343
73344
|
case "dracoDecoderPath":
|
|
73344
|
-
|
|
73345
|
+
ot && console.log("dracoDecoderPath", e), bM(e);
|
|
73345
73346
|
break;
|
|
73346
73347
|
case "dracoDecoderType":
|
|
73347
|
-
e === "wasm" || e === "js" ? (
|
|
73348
|
+
e === "wasm" || e === "js" ? (ot && console.log("dracoDecoderType", e), vM(e)) : console.error("Invalid dracoDecoderType", e, "expected js or wasm");
|
|
73348
73349
|
break;
|
|
73349
73350
|
case "ktx2DecoderPath":
|
|
73350
|
-
|
|
73351
|
+
ot && console.log("ktx2DecoderPath", e), xM(e);
|
|
73351
73352
|
break;
|
|
73352
73353
|
}
|
|
73353
73354
|
}
|
|
@@ -73365,7 +73366,7 @@ class qX extends HTMLElement {
|
|
|
73365
73366
|
}
|
|
73366
73367
|
this._previousSrc = g, this._isCurrentlySettingsSourceAttribute = !0, this.setAttribute("src", g == null ? void 0 : g.toString()), this._isCurrentlySettingsSourceAttribute = !1;
|
|
73367
73368
|
const e = this.getAttribute("alias");
|
|
73368
|
-
this.classList.add("loading"),
|
|
73369
|
+
this.classList.add("loading"), ot && console.log("Needle Engine: Begin loading", e ?? "");
|
|
73369
73370
|
const t = !0, C = this.dispatchEvent(new CustomEvent("loadstart", {
|
|
73370
73371
|
detail: {
|
|
73371
73372
|
context: this._context,
|
|
@@ -73373,7 +73374,7 @@ class qX extends HTMLElement {
|
|
|
73373
73374
|
},
|
|
73374
73375
|
cancelable: t
|
|
73375
73376
|
}));
|
|
73376
|
-
!this._loadingView && C && (this._loadingView = new Bl(this)), C && ((n = this._loadingView) == null || n.onLoadingBegin("begin load")), this.onBeforeBeginLoading(),
|
|
73377
|
+
!this._loadingView && C && (this._loadingView = new Bl(this)), C && ((n = this._loadingView) == null || n.onLoadingBegin("begin load")), this.onBeforeBeginLoading(), ot && console.log(g);
|
|
73377
73378
|
let o;
|
|
73378
73379
|
Array.isArray(g) ? o = g : g.startsWith("[") && g.endsWith("]") ? o = JSON.parse(g) : g.includes(",") ? o = g.split(",") : o = [g];
|
|
73379
73380
|
let s = null;
|
|
@@ -73382,7 +73383,12 @@ class qX extends HTMLElement {
|
|
|
73382
73383
|
a.hash && (E = Number.parseInt(a.hash) ?? 0);
|
|
73383
73384
|
const c = RC();
|
|
73384
73385
|
for (let h = 0; h < o.length; h++) {
|
|
73385
|
-
const l = o[h]
|
|
73386
|
+
const l = o[h];
|
|
73387
|
+
if (!l.includes(".glb") && !l.includes(".gltf")) {
|
|
73388
|
+
const f = `Needle Engine: found suspicious src "${l}"`;
|
|
73389
|
+
console.warn(f), ji() && ko(f);
|
|
73390
|
+
}
|
|
73391
|
+
const u = LX(l), w = {
|
|
73386
73392
|
name: u,
|
|
73387
73393
|
progress: null,
|
|
73388
73394
|
index: h,
|
|
@@ -73408,7 +73414,7 @@ class qX extends HTMLElement {
|
|
|
73408
73414
|
return;
|
|
73409
73415
|
}
|
|
73410
73416
|
const B = this.getAttribute("hash");
|
|
73411
|
-
B != null && (this._context.hash = B), this._context.alias = e, this._context.isCreated ? await s(this._context) : await this._context.onCreate(s), this._loadingProgress01 = 1, C && ((r = this._loadingView) == null || r.onLoadingUpdate(1, "creating scene")), this.classList.remove("loading"), this.classList.add("loading-finished"),
|
|
73417
|
+
B != null && (this._context.hash = B), this._context.alias = e, this._context.isCreated ? await s(this._context) : await this._context.onCreate(s), this._loadingProgress01 = 1, C && ((r = this._loadingView) == null || r.onLoadingUpdate(1, "creating scene")), this.classList.remove("loading"), this.classList.add("loading-finished"), ot && console.log("Needle Engine: finished loading", e ?? ""), this.dispatchEvent(new CustomEvent("loadfinished", {
|
|
73412
73418
|
detail: {
|
|
73413
73419
|
context: this._context,
|
|
73414
73420
|
src: e ?? g
|
|
@@ -73477,11 +73483,11 @@ class qX extends HTMLElement {
|
|
|
73477
73483
|
}
|
|
73478
73484
|
onBeforeBeginLoading() {
|
|
73479
73485
|
const g = this.getAttribute("dracoDecoderPath");
|
|
73480
|
-
g && (
|
|
73486
|
+
g && (ot && console.log("using custom draco decoder path", g), bM(g));
|
|
73481
73487
|
const I = this.getAttribute("dracoDecoderType");
|
|
73482
|
-
I && (
|
|
73488
|
+
I && (ot && console.log("using custom draco decoder type", I), vM(I));
|
|
73483
73489
|
const e = this.getAttribute("ktx2DecoderPath");
|
|
73484
|
-
e && (
|
|
73490
|
+
e && (ot && console.log("using custom ktx2 decoder path", e), xM(e));
|
|
73485
73491
|
}
|
|
73486
73492
|
}
|
|
73487
73493
|
window.customElements.get(MR) || window.customElements.define(MR, qX);
|
|
@@ -73754,7 +73760,7 @@ export {
|
|
|
73754
73760
|
xJ as Avatar_MustacheShake,
|
|
73755
73761
|
Si as Avatar_POI,
|
|
73756
73762
|
nc as AxesHelper,
|
|
73757
|
-
|
|
73763
|
+
Ro as BaseUIComponent,
|
|
73758
73764
|
HJ as BasicIKConstraint,
|
|
73759
73765
|
TA as Behaviour,
|
|
73760
73766
|
nQ as Bloom,
|
|
@@ -73770,7 +73776,7 @@ export {
|
|
|
73770
73776
|
aQ as CharacterController,
|
|
73771
73777
|
vs as CharacterControllerInput,
|
|
73772
73778
|
Iu as ChromaticAberration,
|
|
73773
|
-
|
|
73779
|
+
Fo as Collider,
|
|
73774
73780
|
lO as Collision,
|
|
73775
73781
|
XB as ColorAdjustments,
|
|
73776
73782
|
QQ as ColorBySpeedModule,
|
|
@@ -73786,19 +73792,19 @@ export {
|
|
|
73786
73792
|
fB as DragControls,
|
|
73787
73793
|
Cu as DropListener,
|
|
73788
73794
|
EQ as Duplicatable,
|
|
73789
|
-
|
|
73795
|
+
Ko as EmissionModule,
|
|
73790
73796
|
Wi as EventList,
|
|
73791
73797
|
U0 as EventListEvent,
|
|
73792
|
-
|
|
73798
|
+
lt as EventSystem,
|
|
73793
73799
|
j0 as EventTrigger,
|
|
73794
73800
|
Iq as FieldWithDefault,
|
|
73795
73801
|
tq as FixedJoint,
|
|
73796
73802
|
Cq as FlyControls,
|
|
73797
73803
|
Ec as Fog,
|
|
73798
|
-
|
|
73804
|
+
zi as FrameEvent,
|
|
73799
73805
|
BA as GameObject,
|
|
73800
73806
|
oo as Gizmos,
|
|
73801
|
-
|
|
73807
|
+
ss as GltfExport,
|
|
73802
73808
|
sq as GltfExportBox,
|
|
73803
73809
|
ra as GltfLoadEvent,
|
|
73804
73810
|
RX as GltfLoadEventType,
|
|
@@ -73821,10 +73827,10 @@ export {
|
|
|
73821
73827
|
au as LODGroup,
|
|
73822
73828
|
lQ as LODModel,
|
|
73823
73829
|
hc as LayoutGroup,
|
|
73824
|
-
|
|
73830
|
+
et as Light,
|
|
73825
73831
|
ce as LimitVelocityOverLifetimeModule,
|
|
73826
73832
|
cq as LogStats,
|
|
73827
|
-
|
|
73833
|
+
cs as LogType,
|
|
73828
73834
|
Nd as LookAtConstraint,
|
|
73829
73835
|
Ve as MainModule,
|
|
73830
73836
|
Au as MaskableGraphic,
|
|
@@ -73832,7 +73838,7 @@ export {
|
|
|
73832
73838
|
L0 as MeshCollider,
|
|
73833
73839
|
Z0 as MeshRenderer,
|
|
73834
73840
|
ng as MinMaxCurve,
|
|
73835
|
-
|
|
73841
|
+
gt as MinMaxGradient,
|
|
73836
73842
|
Yq as NeedleGltfLoader,
|
|
73837
73843
|
eG as NestedGltf,
|
|
73838
73844
|
rQ as Networking,
|
|
@@ -73902,7 +73908,7 @@ export {
|
|
|
73902
73908
|
pu as USDZExporter,
|
|
73903
73909
|
oc as UsageMarker,
|
|
73904
73910
|
DC as VRUserState,
|
|
73905
|
-
|
|
73911
|
+
It as VelocityOverLifetimeModule,
|
|
73906
73912
|
nq as VerticalLayoutGroup,
|
|
73907
73913
|
ri as VideoPlayer,
|
|
73908
73914
|
GQ as Vignette,
|
|
@@ -73976,11 +73982,11 @@ export {
|
|
|
73976
73982
|
WX as setParam,
|
|
73977
73983
|
jX as setParamWithoutReload,
|
|
73978
73984
|
t9 as setUsageTrackingEnabled,
|
|
73979
|
-
|
|
73980
|
-
|
|
73985
|
+
ct as showBalloonMessage,
|
|
73986
|
+
ko as showBalloonWarning,
|
|
73981
73987
|
yF as showDebugConsole,
|
|
73982
73988
|
F9 as tryFindObject,
|
|
73983
73989
|
KX as tryFindObjectByName,
|
|
73984
73990
|
N9 as tryFindScript,
|
|
73985
|
-
|
|
73991
|
+
Mo as validate
|
|
73986
73992
|
};
|