@yschindel/ara3d-webgl 1.3.5 → 1.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ara3d-webgl.mjs +310 -328
- package/dist/ara3d-webgl.mjs.map +1 -1
- package/dist/ara3d-webgl.umd.js +14 -14
- package/dist/ara3d-webgl.umd.js.map +1 -1
- package/dist/types/viewer/camera/camera.d.ts +0 -3
- package/dist/types/viewer/camera/cameraMovementLerp.d.ts +3 -5
- package/dist/types/viewer/viewerSettings.d.ts +0 -4
- package/package.json +1 -1
package/dist/ara3d-webgl.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var c0 = Object.defineProperty;
|
|
2
2
|
var l0 = (r, e, t) => e in r ? c0(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
|
-
var
|
|
3
|
+
var $ = (r, e, t) => (l0(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
/**
|
|
5
5
|
* @license
|
|
6
6
|
* Copyright 2010-2025 Three.js Authors
|
|
@@ -2274,8 +2274,8 @@ class qe {
|
|
|
2274
2274
|
return this.multiplyMatrices(e, this);
|
|
2275
2275
|
}
|
|
2276
2276
|
multiplyMatrices(e, t) {
|
|
2277
|
-
const n = e.elements, i = t.elements, s = this.elements, o = n[0], a = n[4], c = n[8], l = n[12], h = n[1], u = n[5], f = n[9], d = n[13], g = n[2], _ = n[6], m = n[10], p = n[14], v = n[3], y = n[7], x = n[11], A = n[15], E = i[0], I = i[4], D = i[8], b = i[12], C = i[1], B = i[5], R = i[9], O = i[13], M = i[2], z = i[6], X = i[10], H = i[14], re = i[3],
|
|
2278
|
-
return s[0] = o * E + a * C + c * M + l * re, s[4] = o * I + a * B + c * z + l *
|
|
2277
|
+
const n = e.elements, i = t.elements, s = this.elements, o = n[0], a = n[4], c = n[8], l = n[12], h = n[1], u = n[5], f = n[9], d = n[13], g = n[2], _ = n[6], m = n[10], p = n[14], v = n[3], y = n[7], x = n[11], A = n[15], E = i[0], I = i[4], D = i[8], b = i[12], C = i[1], B = i[5], R = i[9], O = i[13], M = i[2], z = i[6], X = i[10], H = i[14], re = i[3], J = i[7], le = i[11], W = i[15];
|
|
2278
|
+
return s[0] = o * E + a * C + c * M + l * re, s[4] = o * I + a * B + c * z + l * J, s[8] = o * D + a * R + c * X + l * le, s[12] = o * b + a * O + c * H + l * W, s[1] = h * E + u * C + f * M + d * re, s[5] = h * I + u * B + f * z + d * J, s[9] = h * D + u * R + f * X + d * le, s[13] = h * b + u * O + f * H + d * W, s[2] = g * E + _ * C + m * M + p * re, s[6] = g * I + _ * B + m * z + p * J, s[10] = g * D + _ * R + m * X + p * le, s[14] = g * b + _ * O + m * H + p * W, s[3] = v * E + y * C + x * M + A * re, s[7] = v * I + y * B + x * z + A * J, s[11] = v * D + y * R + x * X + A * le, s[15] = v * b + y * O + x * H + A * W, this;
|
|
2279
2279
|
}
|
|
2280
2280
|
multiplyScalar(e) {
|
|
2281
2281
|
const t = this.elements;
|
|
@@ -4200,12 +4200,12 @@ class wr extends Je {
|
|
|
4200
4200
|
function g(_, m, p, v, y, x, A, E, I, D, b) {
|
|
4201
4201
|
const C = x / I, B = A / D, R = x / 2, O = A / 2, M = E / 2, z = I + 1, X = D + 1;
|
|
4202
4202
|
let H = 0, re = 0;
|
|
4203
|
-
const
|
|
4203
|
+
const J = new U();
|
|
4204
4204
|
for (let le = 0; le < X; le++) {
|
|
4205
4205
|
const W = le * B - O;
|
|
4206
4206
|
for (let Z = 0; Z < z; Z++) {
|
|
4207
4207
|
const ge = Z * C - R;
|
|
4208
|
-
|
|
4208
|
+
J[_] = ge * v, J[m] = W * y, J[p] = M, l.push(J.x, J.y, J.z), J[_] = 0, J[m] = 0, J[p] = E > 0 ? 1 : -1, h.push(J.x, J.y, J.z), u.push(Z / I), u.push(1 - le / D), H += 1;
|
|
4209
4209
|
}
|
|
4210
4210
|
}
|
|
4211
4211
|
for (let le = 0; le < D; le++)
|
|
@@ -7618,11 +7618,11 @@ class ul extends Je {
|
|
|
7618
7618
|
}
|
|
7619
7619
|
return new he(N / G, S / G);
|
|
7620
7620
|
}
|
|
7621
|
-
const
|
|
7621
|
+
const J = [];
|
|
7622
7622
|
for (let w = 0, q = z.length, k = q - 1, N = w + 1; w < q; w++, k++, N++)
|
|
7623
|
-
k === q && (k = 0), N === q && (N = 0),
|
|
7623
|
+
k === q && (k = 0), N === q && (N = 0), J[w] = re(z[w], z[k], z[N]);
|
|
7624
7624
|
const le = [];
|
|
7625
|
-
let W, Z =
|
|
7625
|
+
let W, Z = J.concat();
|
|
7626
7626
|
for (let w = 0, q = M; w < q; w++) {
|
|
7627
7627
|
const k = B[w];
|
|
7628
7628
|
W = [];
|
|
@@ -7638,7 +7638,7 @@ class ul extends Je {
|
|
|
7638
7638
|
for (let k = 0; k < m; k++) {
|
|
7639
7639
|
const N = k / m, S = d * Math.cos(N * Math.PI / 2), G = g * Math.sin(N * Math.PI / 2) + _;
|
|
7640
7640
|
for (let K = 0, ie = z.length; K < ie; K++) {
|
|
7641
|
-
const V = X(z[K],
|
|
7641
|
+
const V = X(z[K], J[K], G);
|
|
7642
7642
|
ye(V.x, V.y, -S), N === 0 && w.push(V);
|
|
7643
7643
|
}
|
|
7644
7644
|
for (let K = 0, ie = M; K < ie; K++) {
|
|
@@ -7667,7 +7667,7 @@ class ul extends Je {
|
|
|
7667
7667
|
for (let w = m - 1; w >= 0; w--) {
|
|
7668
7668
|
const q = w / m, k = d * Math.cos(q * Math.PI / 2), N = g * Math.sin(q * Math.PI / 2) + _;
|
|
7669
7669
|
for (let S = 0, G = z.length; S < G; S++) {
|
|
7670
|
-
const K = X(z[S],
|
|
7670
|
+
const K = X(z[S], J[S], N);
|
|
7671
7671
|
ye(K.x, K.y, u + k);
|
|
7672
7672
|
}
|
|
7673
7673
|
for (let S = 0, G = B.length; S < G; S++) {
|
|
@@ -17229,14 +17229,14 @@ function N1(r, e) {
|
|
|
17229
17229
|
for (const H in z) {
|
|
17230
17230
|
const re = z[H];
|
|
17231
17231
|
if (re.location >= 0) {
|
|
17232
|
-
let
|
|
17233
|
-
if (
|
|
17234
|
-
const le =
|
|
17232
|
+
let J = M[H];
|
|
17233
|
+
if (J === void 0 && (H === "instanceMatrix" && C.instanceMatrix && (J = C.instanceMatrix), H === "instanceColor" && C.instanceColor && (J = C.instanceColor)), J !== void 0) {
|
|
17234
|
+
const le = J.normalized, W = J.itemSize, Z = e.get(J);
|
|
17235
17235
|
if (Z === void 0)
|
|
17236
17236
|
continue;
|
|
17237
|
-
const ge = Z.buffer, _e = Z.type, de = Z.bytesPerElement, oe = _e === r.INT || _e === r.UNSIGNED_INT ||
|
|
17238
|
-
if (
|
|
17239
|
-
const ee =
|
|
17237
|
+
const ge = Z.buffer, _e = Z.type, de = Z.bytesPerElement, oe = _e === r.INT || _e === r.UNSIGNED_INT || J.gpuType === Vc;
|
|
17238
|
+
if (J.isInterleavedBufferAttribute) {
|
|
17239
|
+
const ee = J.data, pe = ee.stride, ye = J.offset;
|
|
17240
17240
|
if (ee.isInstancedInterleavedBuffer) {
|
|
17241
17241
|
for (let xe = 0; xe < re.locationSize; xe++)
|
|
17242
17242
|
p(re.location + xe, ee.meshPerAttribute);
|
|
@@ -17256,10 +17256,10 @@ function N1(r, e) {
|
|
|
17256
17256
|
oe
|
|
17257
17257
|
);
|
|
17258
17258
|
} else {
|
|
17259
|
-
if (
|
|
17259
|
+
if (J.isInstancedBufferAttribute) {
|
|
17260
17260
|
for (let ee = 0; ee < re.locationSize; ee++)
|
|
17261
|
-
p(re.location + ee,
|
|
17262
|
-
C.isInstancedMesh !== !0 && O._maxInstanceCount === void 0 && (O._maxInstanceCount =
|
|
17261
|
+
p(re.location + ee, J.meshPerAttribute);
|
|
17262
|
+
C.isInstancedMesh !== !0 && O._maxInstanceCount === void 0 && (O._maxInstanceCount = J.meshPerAttribute * J.count);
|
|
17263
17263
|
} else
|
|
17264
17264
|
for (let ee = 0; ee < re.locationSize; ee++)
|
|
17265
17265
|
m(re.location + ee);
|
|
@@ -19381,7 +19381,7 @@ function pw(r, e, t, n) {
|
|
|
19381
19381
|
function I(B) {
|
|
19382
19382
|
if (r.debug.checkShaderErrors) {
|
|
19383
19383
|
const R = i.getProgramInfoLog(_) || "", O = i.getShaderInfoLog(A) || "", M = i.getShaderInfoLog(E) || "", z = R.trim(), X = O.trim(), H = M.trim();
|
|
19384
|
-
let re = !0,
|
|
19384
|
+
let re = !0, J = !0;
|
|
19385
19385
|
if (i.getProgramParameter(_, i.LINK_STATUS) === !1)
|
|
19386
19386
|
if (re = !1, typeof r.debug.onShaderError == "function")
|
|
19387
19387
|
r.debug.onShaderError(i, _, A, E);
|
|
@@ -19399,8 +19399,8 @@ Program Info Log: ` + z + `
|
|
|
19399
19399
|
);
|
|
19400
19400
|
}
|
|
19401
19401
|
else
|
|
19402
|
-
z !== "" ? Te("WebGLProgram: Program Info Log:", z) : (X === "" || H === "") && (
|
|
19403
|
-
|
|
19402
|
+
z !== "" ? Te("WebGLProgram: Program Info Log:", z) : (X === "" || H === "") && (J = !1);
|
|
19403
|
+
J && (B.diagnostics = {
|
|
19404
19404
|
runnable: re,
|
|
19405
19405
|
programLog: z,
|
|
19406
19406
|
vertexShader: {
|
|
@@ -19494,14 +19494,14 @@ function vw(r, e, t, n, i, s, o) {
|
|
|
19494
19494
|
return l.add(b), b === 0 ? "uv" : `uv${b}`;
|
|
19495
19495
|
}
|
|
19496
19496
|
function m(b, C, B, R, O) {
|
|
19497
|
-
const M = R.fog, z = O.geometry, X = b.isMeshStandardMaterial ? R.environment : null, H = (b.isMeshStandardMaterial ? t : e).get(b.envMap || X), re = !!H && H.mapping === xs ? H.image.height : null,
|
|
19497
|
+
const M = R.fog, z = O.geometry, X = b.isMeshStandardMaterial ? R.environment : null, H = (b.isMeshStandardMaterial ? t : e).get(b.envMap || X), re = !!H && H.mapping === xs ? H.image.height : null, J = g[b.type];
|
|
19498
19498
|
b.precision !== null && (d = i.getMaxPrecision(b.precision), d !== b.precision && Te("WebGLProgram.getParameters:", b.precision, "not supported, using", d, "instead."));
|
|
19499
19499
|
const le = z.morphAttributes.position || z.morphAttributes.normal || z.morphAttributes.color, W = le !== void 0 ? le.length : 0;
|
|
19500
19500
|
let Z = 0;
|
|
19501
19501
|
z.morphAttributes.position !== void 0 && (Z = 1), z.morphAttributes.normal !== void 0 && (Z = 2), z.morphAttributes.color !== void 0 && (Z = 3);
|
|
19502
19502
|
let ge, _e, de, oe;
|
|
19503
|
-
if (
|
|
19504
|
-
const ft = Bn[
|
|
19503
|
+
if (J) {
|
|
19504
|
+
const ft = Bn[J];
|
|
19505
19505
|
ge = ft.vertexShader, _e = ft.fragmentShader;
|
|
19506
19506
|
} else
|
|
19507
19507
|
ge = b.vertexShader, _e = b.fragmentShader, c.update(b), de = c.getVertexShaderID(b), oe = c.getFragmentShaderID(b);
|
|
@@ -19509,7 +19509,7 @@ function vw(r, e, t, n, i, s, o) {
|
|
|
19509
19509
|
let $e = Fn;
|
|
19510
19510
|
b.toneMapped && (ee === null || ee.isXRRenderTarget === !0) && ($e = r.toneMapping);
|
|
19511
19511
|
const vt = {
|
|
19512
|
-
shaderID:
|
|
19512
|
+
shaderID: J,
|
|
19513
19513
|
shaderType: b.type,
|
|
19514
19514
|
shaderName: b.name,
|
|
19515
19515
|
vertexShader: ge,
|
|
@@ -20160,8 +20160,8 @@ function Dw(r, e, t) {
|
|
|
20160
20160
|
}
|
|
20161
20161
|
H.camera.updateProjectionMatrix();
|
|
20162
20162
|
}
|
|
20163
|
-
const
|
|
20164
|
-
for (let le = 0; le <
|
|
20163
|
+
const J = H.map.isWebGLCubeRenderTarget ? 6 : 1;
|
|
20164
|
+
for (let le = 0; le < J; le++) {
|
|
20165
20165
|
if (H.map.isWebGLCubeRenderTarget)
|
|
20166
20166
|
r.setRenderTarget(H.map, le), r.clear();
|
|
20167
20167
|
else {
|
|
@@ -20219,9 +20219,9 @@ function Dw(r, e, t) {
|
|
|
20219
20219
|
if (Array.isArray(M)) {
|
|
20220
20220
|
const z = O.groups;
|
|
20221
20221
|
for (let X = 0, H = z.length; X < H; X++) {
|
|
20222
|
-
const re = z[X],
|
|
20223
|
-
if (
|
|
20224
|
-
const le = y(E,
|
|
20222
|
+
const re = z[X], J = M[re.materialIndex];
|
|
20223
|
+
if (J && J.visible) {
|
|
20224
|
+
const le = y(E, J, b, C);
|
|
20225
20225
|
E.onBeforeShadow(r, E, I, D, O, le, re), r.renderBufferDirect(D, null, O, le, E, re), E.onAfterShadow(r, E, I, D, O, le, re);
|
|
20226
20226
|
}
|
|
20227
20227
|
}
|
|
@@ -20369,7 +20369,7 @@ function Nw(r, e) {
|
|
|
20369
20369
|
let X = !1, H = 0;
|
|
20370
20370
|
const re = r.getParameter(r.VERSION);
|
|
20371
20371
|
re.indexOf("WebGL") !== -1 ? (H = parseFloat(/^WebGL (\d)/.exec(re)[1]), X = H >= 1) : re.indexOf("OpenGL ES") !== -1 && (H = parseFloat(/^OpenGL ES (\d)/.exec(re)[1]), X = H >= 2);
|
|
20372
|
-
let
|
|
20372
|
+
let J = null, le = {};
|
|
20373
20373
|
const W = r.getParameter(r.SCISSOR_BOX), Z = r.getParameter(r.VIEWPORT), ge = new _t().fromArray(W), _e = new _t().fromArray(Z);
|
|
20374
20374
|
function de(Y, Pe, be, De) {
|
|
20375
20375
|
const ve = new Uint8Array(4), me = r.createTexture();
|
|
@@ -20501,15 +20501,15 @@ function Nw(r, e) {
|
|
|
20501
20501
|
Y ? ee(r.SCISSOR_TEST) : pe(r.SCISSOR_TEST);
|
|
20502
20502
|
}
|
|
20503
20503
|
function ie(Y) {
|
|
20504
|
-
Y === void 0 && (Y = r.TEXTURE0 + z - 1),
|
|
20504
|
+
Y === void 0 && (Y = r.TEXTURE0 + z - 1), J !== Y && (r.activeTexture(Y), J = Y);
|
|
20505
20505
|
}
|
|
20506
20506
|
function V(Y, Pe, be) {
|
|
20507
|
-
be === void 0 && (
|
|
20507
|
+
be === void 0 && (J === null ? be = r.TEXTURE0 + z - 1 : be = J);
|
|
20508
20508
|
let De = le[be];
|
|
20509
|
-
De === void 0 && (De = { type: void 0, texture: void 0 }, le[be] = De), (De.type !== Y || De.texture !== Pe) && (
|
|
20509
|
+
De === void 0 && (De = { type: void 0, texture: void 0 }, le[be] = De), (De.type !== Y || De.texture !== Pe) && (J !== be && (r.activeTexture(be), J = be), r.bindTexture(Y, Pe || oe[Y]), De.type = Y, De.texture = Pe);
|
|
20510
20510
|
}
|
|
20511
20511
|
function P() {
|
|
20512
|
-
const Y = le[
|
|
20512
|
+
const Y = le[J];
|
|
20513
20513
|
Y !== void 0 && Y.type !== void 0 && (r.bindTexture(Y.type, null), Y.type = void 0, Y.texture = void 0);
|
|
20514
20514
|
}
|
|
20515
20515
|
function T() {
|
|
@@ -20599,7 +20599,7 @@ function Nw(r, e) {
|
|
|
20599
20599
|
c.get(Pe) !== De && (r.uniformBlockBinding(Pe, De, Y.__bindingPointIndex), c.set(Pe, De));
|
|
20600
20600
|
}
|
|
20601
20601
|
function nt() {
|
|
20602
|
-
r.disable(r.BLEND), r.disable(r.CULL_FACE), r.disable(r.DEPTH_TEST), r.disable(r.POLYGON_OFFSET_FILL), r.disable(r.SCISSOR_TEST), r.disable(r.STENCIL_TEST), r.disable(r.SAMPLE_ALPHA_TO_COVERAGE), r.blendEquation(r.FUNC_ADD), r.blendFunc(r.ONE, r.ZERO), r.blendFuncSeparate(r.ONE, r.ZERO, r.ONE, r.ZERO), r.blendColor(0, 0, 0, 0), r.colorMask(!0, !0, !0, !0), r.clearColor(0, 0, 0, 0), r.depthMask(!0), r.depthFunc(r.LESS), o.setReversed(!1), r.clearDepth(1), r.stencilMask(4294967295), r.stencilFunc(r.ALWAYS, 0, 4294967295), r.stencilOp(r.KEEP, r.KEEP, r.KEEP), r.clearStencil(0), r.cullFace(r.BACK), r.frontFace(r.CCW), r.polygonOffset(0, 0), r.activeTexture(r.TEXTURE0), r.bindFramebuffer(r.FRAMEBUFFER, null), r.bindFramebuffer(r.DRAW_FRAMEBUFFER, null), r.bindFramebuffer(r.READ_FRAMEBUFFER, null), r.useProgram(null), r.lineWidth(1), r.scissor(0, 0, r.canvas.width, r.canvas.height), r.viewport(0, 0, r.canvas.width, r.canvas.height), h = {},
|
|
20602
|
+
r.disable(r.BLEND), r.disable(r.CULL_FACE), r.disable(r.DEPTH_TEST), r.disable(r.POLYGON_OFFSET_FILL), r.disable(r.SCISSOR_TEST), r.disable(r.STENCIL_TEST), r.disable(r.SAMPLE_ALPHA_TO_COVERAGE), r.blendEquation(r.FUNC_ADD), r.blendFunc(r.ONE, r.ZERO), r.blendFuncSeparate(r.ONE, r.ZERO, r.ONE, r.ZERO), r.blendColor(0, 0, 0, 0), r.colorMask(!0, !0, !0, !0), r.clearColor(0, 0, 0, 0), r.depthMask(!0), r.depthFunc(r.LESS), o.setReversed(!1), r.clearDepth(1), r.stencilMask(4294967295), r.stencilFunc(r.ALWAYS, 0, 4294967295), r.stencilOp(r.KEEP, r.KEEP, r.KEEP), r.clearStencil(0), r.cullFace(r.BACK), r.frontFace(r.CCW), r.polygonOffset(0, 0), r.activeTexture(r.TEXTURE0), r.bindFramebuffer(r.FRAMEBUFFER, null), r.bindFramebuffer(r.DRAW_FRAMEBUFFER, null), r.bindFramebuffer(r.READ_FRAMEBUFFER, null), r.useProgram(null), r.lineWidth(1), r.scissor(0, 0, r.canvas.width, r.canvas.height), r.viewport(0, 0, r.canvas.width, r.canvas.height), h = {}, J = null, le = {}, u = {}, f = /* @__PURE__ */ new WeakMap(), d = [], g = null, _ = !1, m = null, p = null, v = null, y = null, x = null, A = null, E = null, I = new Ae(0, 0, 0), D = 0, b = !1, C = null, B = null, R = null, O = null, M = null, ge.set(0, 0, r.canvas.width, r.canvas.height), _e.set(0, 0, r.canvas.width, r.canvas.height), s.reset(), o.reset(), a.reset();
|
|
20603
20603
|
}
|
|
20604
20604
|
return {
|
|
20605
20605
|
buffers: {
|
|
@@ -20800,7 +20800,7 @@ function Uw(r, e, t, n, i, s, o) {
|
|
|
20800
20800
|
}
|
|
20801
20801
|
t.bindTexture(r.TEXTURE_CUBE_MAP, F.__webglTexture, r.TEXTURE0 + T);
|
|
20802
20802
|
}
|
|
20803
|
-
const
|
|
20803
|
+
const J = {
|
|
20804
20804
|
[Pi]: r.REPEAT,
|
|
20805
20805
|
[nn]: r.CLAMP_TO_EDGE,
|
|
20806
20806
|
[ss]: r.MIRRORED_REPEAT
|
|
@@ -20822,7 +20822,7 @@ function Uw(r, e, t, n, i, s, o) {
|
|
|
20822
20822
|
[pm]: r.NOTEQUAL
|
|
20823
20823
|
};
|
|
20824
20824
|
function Z(P, T) {
|
|
20825
|
-
if (T.type === rn && e.has("OES_texture_float_linear") === !1 && (T.magFilter === mt || T.magFilter === ts || T.magFilter === sr || T.magFilter === En || T.minFilter === mt || T.minFilter === ts || T.minFilter === sr || T.minFilter === En) && Te("WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."), r.texParameteri(P, r.TEXTURE_WRAP_S,
|
|
20825
|
+
if (T.type === rn && e.has("OES_texture_float_linear") === !1 && (T.magFilter === mt || T.magFilter === ts || T.magFilter === sr || T.magFilter === En || T.minFilter === mt || T.minFilter === ts || T.minFilter === sr || T.minFilter === En) && Te("WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."), r.texParameteri(P, r.TEXTURE_WRAP_S, J[T.wrapS]), r.texParameteri(P, r.TEXTURE_WRAP_T, J[T.wrapT]), (P === r.TEXTURE_3D || P === r.TEXTURE_2D_ARRAY) && r.texParameteri(P, r.TEXTURE_WRAP_R, J[T.wrapR]), r.texParameteri(P, r.TEXTURE_MAG_FILTER, le[T.magFilter]), r.texParameteri(P, r.TEXTURE_MIN_FILTER, le[T.minFilter]), T.compareFunction && (r.texParameteri(P, r.TEXTURE_COMPARE_MODE, r.COMPARE_REF_TO_TEXTURE), r.texParameteri(P, r.TEXTURE_COMPARE_FUNC, W[T.compareFunction])), e.has("EXT_texture_filter_anisotropic") === !0) {
|
|
20826
20826
|
if (T.magFilter === Et || T.minFilter !== sr && T.minFilter !== En || T.type === rn && e.has("OES_texture_float_linear") === !1)
|
|
20827
20827
|
return;
|
|
20828
20828
|
if (T.anisotropy > 1 || n.get(T).__currentAnisotropy) {
|
|
@@ -21601,10 +21601,10 @@ class zw extends ti {
|
|
|
21601
21601
|
xe && xe.connect(pe);
|
|
21602
21602
|
}
|
|
21603
21603
|
}
|
|
21604
|
-
const re = new U(),
|
|
21604
|
+
const re = new U(), J = new U();
|
|
21605
21605
|
function le(oe, ee, pe) {
|
|
21606
|
-
re.setFromMatrixPosition(ee.matrixWorld),
|
|
21607
|
-
const ye = re.distanceTo(
|
|
21606
|
+
re.setFromMatrixPosition(ee.matrixWorld), J.setFromMatrixPosition(pe.matrixWorld);
|
|
21607
|
+
const ye = re.distanceTo(J), xe = ee.projectionMatrix.elements, ze = pe.projectionMatrix.elements, Ke = xe[14] / (xe[10] - 1), He = xe[14] / (xe[10] + 1), w = (xe[9] + 1) / xe[5], q = (xe[9] - 1) / xe[5], k = (xe[8] - 1) / xe[0], N = (ze[8] + 1) / ze[0], S = Ke * k, G = Ke * N, K = ye / (-k + N), ie = K * -k;
|
|
21608
21608
|
if (ee.matrixWorld.decompose(oe.position, oe.quaternion, oe.scale), oe.translateX(ie), oe.translateZ(K), oe.matrixWorld.compose(oe.position, oe.quaternion, oe.scale), oe.matrixWorldInverse.copy(oe.matrixWorld).invert(), xe[10] === -1)
|
|
21609
21609
|
oe.projectionMatrix.copy(ee.projectionMatrix), oe.projectionMatrixInverse.copy(ee.projectionMatrixInverse);
|
|
21610
21610
|
else {
|
|
@@ -21823,8 +21823,8 @@ function Hw(r, e, t, n) {
|
|
|
21823
21823
|
for (let C = 0, B = b.length; C < B; C++) {
|
|
21824
21824
|
const R = b[C], O = Array.isArray(R.value) ? R.value : [R.value];
|
|
21825
21825
|
for (let M = 0, z = O.length; M < z; M++) {
|
|
21826
|
-
const X = O[M], H = _(X), re = x % A,
|
|
21827
|
-
x +=
|
|
21826
|
+
const X = O[M], H = _(X), re = x % A, J = re % H.boundary, le = re + J;
|
|
21827
|
+
x += J, le !== 0 && A - le < H.storage && (x += A - le), R.__data = new Float32Array(H.storage / Float32Array.BYTES_PER_ELEMENT), R.__offset = x, x += H.storage;
|
|
21828
21828
|
}
|
|
21829
21829
|
}
|
|
21830
21830
|
}
|
|
@@ -22422,7 +22422,7 @@ class pg {
|
|
|
22422
22422
|
let B = 0, R = 0, O = null, M = -1, z = null;
|
|
22423
22423
|
const X = new _t(), H = new _t();
|
|
22424
22424
|
let re = null;
|
|
22425
|
-
const
|
|
22425
|
+
const J = new Ae(0);
|
|
22426
22426
|
let le = 0, W = t.width, Z = t.height, ge = 1, _e = null, de = null;
|
|
22427
22427
|
const oe = new _t(0, 0, W, Z), ee = new _t(0, 0, W, Z);
|
|
22428
22428
|
let pe = !1;
|
|
@@ -22757,7 +22757,7 @@ class pg {
|
|
|
22757
22757
|
const Ce = A.state.transmissionRenderTarget[se.id], Oe = se.viewport || X;
|
|
22758
22758
|
Ce.setSize(Oe.z * b.transmissionResolutionScale, Oe.w * b.transmissionResolutionScale);
|
|
22759
22759
|
const Ne = b.getRenderTarget(), Ve = b.getActiveCubeFace(), We = b.getActiveMipmapLevel();
|
|
22760
|
-
b.setRenderTarget(Ce), b.getClearColor(
|
|
22760
|
+
b.setRenderTarget(Ce), b.getClearColor(J), le = b.getClearAlpha(), le < 1 && b.setClearColor(16777215, 0.5), b.clear(), k && Me.render(ae);
|
|
22761
22761
|
const je = b.toneMapping;
|
|
22762
22762
|
b.toneMapping = Fn;
|
|
22763
22763
|
const Ze = se.viewport;
|
|
@@ -22772,7 +22772,7 @@ class pg {
|
|
|
22772
22772
|
}
|
|
22773
22773
|
rt === !0 && (F.updateMultisampleRenderTarget(Ce), F.updateRenderTargetMipmap(Ce));
|
|
22774
22774
|
}
|
|
22775
|
-
b.setRenderTarget(Ne, Ve, We), b.setClearColor(
|
|
22775
|
+
b.setRenderTarget(Ne, Ve, We), b.setClearColor(J, le), Ze !== void 0 && (se.viewport = Ze), b.toneMapping = je;
|
|
22776
22776
|
}
|
|
22777
22777
|
function Bo(L, j, ae) {
|
|
22778
22778
|
const se = j.isScene === !0 ? j.overrideMaterial : null;
|
|
@@ -23526,22 +23526,22 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAAAXNSR0IArs
|
|
|
23526
23526
|
`;
|
|
23527
23527
|
class d2 {
|
|
23528
23528
|
constructor(e) {
|
|
23529
|
-
|
|
23530
|
-
|
|
23531
|
-
|
|
23532
|
-
|
|
23533
|
-
|
|
23534
|
-
|
|
23535
|
-
|
|
23536
|
-
|
|
23537
|
-
|
|
23538
|
-
|
|
23539
|
-
|
|
23540
|
-
|
|
23541
|
-
|
|
23542
|
-
|
|
23543
|
-
|
|
23544
|
-
|
|
23529
|
+
$(this, "size", 84);
|
|
23530
|
+
$(this, "padding", 4);
|
|
23531
|
+
$(this, "bubbleSizePrimary", 8);
|
|
23532
|
+
$(this, "bubbleSizeSecondary", 6);
|
|
23533
|
+
$(this, "lineWidth", 2);
|
|
23534
|
+
$(this, "fontSize", "12px");
|
|
23535
|
+
$(this, "fontFamily", "arial");
|
|
23536
|
+
$(this, "fontWeight", "bold");
|
|
23537
|
+
$(this, "fontColor", "#222222");
|
|
23538
|
+
$(this, "className", "gizmo-axis-canvas");
|
|
23539
|
+
$(this, "colorX", "#f73c3c");
|
|
23540
|
+
$(this, "colorY", "#6ccb26");
|
|
23541
|
+
$(this, "colorZ", "#178cf0");
|
|
23542
|
+
$(this, "colorXSub", "#942424");
|
|
23543
|
+
$(this, "colorYSub", "#417a17");
|
|
23544
|
+
$(this, "colorZSub", "#0e5490");
|
|
23545
23545
|
this.size = e?.size ?? this.size, this.padding = e?.padding ?? this.padding, this.bubbleSizePrimary = e?.bubbleSizePrimary ?? this.bubbleSizePrimary, this.bubbleSizeSecondary = e?.bubbleSizeSecondary ?? this.bubbleSizeSecondary, this.lineWidth = e?.lineWidth ?? this.lineWidth, this.fontSize = e?.fontSize ?? this.fontSize, this.fontFamily = e?.fontFamily ?? this.fontFamily, this.fontWeight = e?.fontWeight ?? this.fontWeight, this.fontColor = e?.fontColor ?? this.fontColor, this.className = e?.className ?? this.className, this.colorX = e?.colorX ?? this.colorX, this.colorY = e?.colorY ?? this.colorY, this.colorZ = e?.colorZ ?? this.colorZ, this.colorXSub = e?.colorXSub ?? this.colorXSub, this.colorYSub = e?.colorYSub ?? this.colorYSub, this.colorZSub = e?.colorZSub ?? this.colorZSub;
|
|
23546
23546
|
}
|
|
23547
23547
|
}
|
|
@@ -23563,9 +23563,7 @@ const tp = {
|
|
|
23563
23563
|
orbit: !0,
|
|
23564
23564
|
rotateSpeed: 1,
|
|
23565
23565
|
orbitSpeed: 1,
|
|
23566
|
-
moveSpeed: 1
|
|
23567
|
-
lerpDuration: 1,
|
|
23568
|
-
lerpEasing: "easeOutCubic"
|
|
23566
|
+
moveSpeed: 1
|
|
23569
23567
|
},
|
|
23570
23568
|
gizmo: {
|
|
23571
23569
|
enable: !1,
|
|
@@ -24012,7 +24010,7 @@ Cl.SignalHandlingBase = DS;
|
|
|
24012
24010
|
})(ys);
|
|
24013
24011
|
class LS {
|
|
24014
24012
|
constructor(e) {
|
|
24015
|
-
|
|
24013
|
+
$(this, "camera");
|
|
24016
24014
|
this.camera = e;
|
|
24017
24015
|
}
|
|
24018
24016
|
applySettings(e) {
|
|
@@ -24028,7 +24026,7 @@ class LS {
|
|
|
24028
24026
|
}
|
|
24029
24027
|
class NS {
|
|
24030
24028
|
constructor(e) {
|
|
24031
|
-
|
|
24029
|
+
$(this, "camera");
|
|
24032
24030
|
this.camera = e;
|
|
24033
24031
|
}
|
|
24034
24032
|
applySettings(e) {
|
|
@@ -24041,7 +24039,7 @@ class NS {
|
|
|
24041
24039
|
}
|
|
24042
24040
|
class vg {
|
|
24043
24041
|
constructor(e) {
|
|
24044
|
-
|
|
24042
|
+
$(this, "_camera");
|
|
24045
24043
|
this._camera = e;
|
|
24046
24044
|
}
|
|
24047
24045
|
move2(e, t) {
|
|
@@ -24069,17 +24067,16 @@ class vg {
|
|
|
24069
24067
|
}
|
|
24070
24068
|
}
|
|
24071
24069
|
class US extends vg {
|
|
24072
|
-
constructor(t, n
|
|
24070
|
+
constructor(t, n) {
|
|
24073
24071
|
super(t);
|
|
24074
|
-
|
|
24075
|
-
|
|
24076
|
-
|
|
24077
|
-
|
|
24078
|
-
|
|
24079
|
-
this._movement = n, this._easing = i;
|
|
24072
|
+
$(this, "_movement");
|
|
24073
|
+
$(this, "_clock", new bl());
|
|
24074
|
+
$(this, "onProgress");
|
|
24075
|
+
$(this, "_duration", 1);
|
|
24076
|
+
this._movement = n;
|
|
24080
24077
|
}
|
|
24081
|
-
init(t
|
|
24082
|
-
this.cancel(), this._duration = t,
|
|
24078
|
+
init(t) {
|
|
24079
|
+
this.cancel(), this._duration = t, this._clock.start(), this.animate();
|
|
24083
24080
|
}
|
|
24084
24081
|
cancel() {
|
|
24085
24082
|
this._clock.stop(), this.onProgress = void 0;
|
|
@@ -24087,23 +24084,12 @@ class US extends vg {
|
|
|
24087
24084
|
animate() {
|
|
24088
24085
|
this._clock.running && (this.update(), requestAnimationFrame(() => this.animate()));
|
|
24089
24086
|
}
|
|
24090
|
-
|
|
24091
|
-
|
|
24092
|
-
case "linear":
|
|
24093
|
-
return t;
|
|
24094
|
-
case "easeOutCubic":
|
|
24095
|
-
return 1 - Math.pow(1 - t, 3);
|
|
24096
|
-
case "easeInOutCubic":
|
|
24097
|
-
return t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2;
|
|
24098
|
-
case "easeOutQuad":
|
|
24099
|
-
return 1 - (1 - t) * (1 - t);
|
|
24100
|
-
default:
|
|
24101
|
-
return 1 - Math.pow(1 - t, 3);
|
|
24102
|
-
}
|
|
24087
|
+
easeOutCubic(t) {
|
|
24088
|
+
return 1 - Math.pow(1 - t, 3);
|
|
24103
24089
|
}
|
|
24104
24090
|
update() {
|
|
24105
24091
|
let t = this._clock.getElapsedTime() / this._duration;
|
|
24106
|
-
t = this.
|
|
24092
|
+
t = this.easeOutCubic(t), t >= 1 && (t = 1, this._clock.stop(), this.onProgress = void 0), this.onProgress?.(t);
|
|
24107
24093
|
}
|
|
24108
24094
|
move3(t) {
|
|
24109
24095
|
const n = t.clone();
|
|
@@ -24217,35 +24203,33 @@ class BS extends vg {
|
|
|
24217
24203
|
}
|
|
24218
24204
|
class OS {
|
|
24219
24205
|
constructor(e, t) {
|
|
24220
|
-
|
|
24221
|
-
|
|
24222
|
-
|
|
24223
|
-
|
|
24224
|
-
|
|
24225
|
-
|
|
24226
|
-
|
|
24227
|
-
|
|
24228
|
-
|
|
24229
|
-
|
|
24230
|
-
|
|
24231
|
-
|
|
24232
|
-
|
|
24233
|
-
|
|
24234
|
-
|
|
24235
|
-
|
|
24236
|
-
|
|
24237
|
-
|
|
24238
|
-
|
|
24239
|
-
|
|
24240
|
-
|
|
24241
|
-
|
|
24242
|
-
|
|
24243
|
-
|
|
24244
|
-
J(this, "_lerpDuration", 1);
|
|
24245
|
-
J(this, "_lerpEasing", "easeOutCubic");
|
|
24206
|
+
$(this, "camPerspective");
|
|
24207
|
+
$(this, "camOrthographic");
|
|
24208
|
+
$(this, "_viewport");
|
|
24209
|
+
$(this, "_lerp");
|
|
24210
|
+
$(this, "_movement");
|
|
24211
|
+
$(this, "_inputVelocity", new U());
|
|
24212
|
+
$(this, "_velocity", new U());
|
|
24213
|
+
$(this, "_speed", 0);
|
|
24214
|
+
$(this, "_orthographic", !1);
|
|
24215
|
+
$(this, "_target", new U());
|
|
24216
|
+
$(this, "_lastPosition", new U());
|
|
24217
|
+
$(this, "_lastQuaternion", new wt());
|
|
24218
|
+
$(this, "_lastTarget", new U());
|
|
24219
|
+
$(this, "_savedPosition", new U(0, 0, -5));
|
|
24220
|
+
$(this, "_savedTarget", new U(0, 0, 0));
|
|
24221
|
+
$(this, "_onValueChanged", new ys.SignalDispatcher());
|
|
24222
|
+
$(this, "_hasMoved");
|
|
24223
|
+
$(this, "_onMoved", new ys.SignalDispatcher());
|
|
24224
|
+
$(this, "_force", !1);
|
|
24225
|
+
$(this, "_allowedMovement", new U(1, 1, 1));
|
|
24226
|
+
$(this, "_allowedRotation", new he(1, 1));
|
|
24227
|
+
$(this, "_defaultForward", new U(0, 0, 1));
|
|
24228
|
+
$(this, "_velocityBlendFactor", 1e-4);
|
|
24229
|
+
$(this, "_moveSpeed", 1);
|
|
24246
24230
|
this.camPerspective = new LS(new Ft()), this.camOrthographic = new NS(
|
|
24247
24231
|
new Tr()
|
|
24248
|
-
), this._movement = new BS(this), this.
|
|
24232
|
+
), this._movement = new BS(this), this._lerp = new US(this, this._movement), this._viewport = e, this.applySettings(t), this.do().orbitTowards(this._defaultForward), this.do().setDistance(-1e3);
|
|
24249
24233
|
}
|
|
24250
24234
|
get onValueChanged() {
|
|
24251
24235
|
return this._onValueChanged.asEvent();
|
|
@@ -24277,10 +24261,8 @@ class OS {
|
|
|
24277
24261
|
do(e = !1) {
|
|
24278
24262
|
return this._force = e, this._lerp.cancel(), this._movement;
|
|
24279
24263
|
}
|
|
24280
|
-
lerp(e, t = !1) {
|
|
24281
|
-
this.stop(), this._force = t;
|
|
24282
|
-
const n = e ?? this._lerpDuration;
|
|
24283
|
-
return this._lerp.init(n, this._lerpEasing), this._lerp;
|
|
24264
|
+
lerp(e = 1, t = !1) {
|
|
24265
|
+
return this.stop(), this._force = t, this._lerp.init(e), this._lerp;
|
|
24284
24266
|
}
|
|
24285
24267
|
frustrumSizeAt(e) {
|
|
24286
24268
|
return this.camPerspective.frustrumSizeAt(e);
|
|
@@ -24323,7 +24305,7 @@ class OS {
|
|
|
24323
24305
|
return this._target;
|
|
24324
24306
|
}
|
|
24325
24307
|
applySettings(e) {
|
|
24326
|
-
this._defaultForward = new U().copy(e.camera.forward), this._orthographic = e.camera.orthographic, this.allowedMovement = e.camera.allowedMovement, this.allowedRotation = e.camera.allowedRotation, this.camPerspective.applySettings(e), this.camOrthographic.applySettings(e), this._moveSpeed = e.camera.controls.moveSpeed, this.
|
|
24308
|
+
this._defaultForward = new U().copy(e.camera.forward), this._orthographic = e.camera.orthographic, this.allowedMovement = e.camera.allowedMovement, this.allowedRotation = e.camera.allowedRotation, this.camPerspective.applySettings(e), this.camOrthographic.applySettings(e), this._moveSpeed = e.camera.controls.moveSpeed, this._onValueChanged.dispatch();
|
|
24327
24309
|
}
|
|
24328
24310
|
get orbitDistance() {
|
|
24329
24311
|
return this.position.distanceTo(this._target);
|
|
@@ -24377,9 +24359,9 @@ class OS {
|
|
|
24377
24359
|
}
|
|
24378
24360
|
class uf {
|
|
24379
24361
|
constructor(e) {
|
|
24380
|
-
|
|
24381
|
-
|
|
24382
|
-
|
|
24362
|
+
$(this, "_viewer");
|
|
24363
|
+
$(this, "_unregisters", []);
|
|
24364
|
+
$(this, "reg", (e, t, n) => {
|
|
24383
24365
|
e.addEventListener(t, n), this._unregisters.push(() => e.removeEventListener(t, n));
|
|
24384
24366
|
});
|
|
24385
24367
|
this._viewer = e;
|
|
@@ -24482,16 +24464,16 @@ const bt = {
|
|
|
24482
24464
|
class zS extends uf {
|
|
24483
24465
|
constructor() {
|
|
24484
24466
|
super(...arguments);
|
|
24485
|
-
|
|
24486
|
-
|
|
24487
|
-
|
|
24488
|
-
|
|
24489
|
-
|
|
24490
|
-
|
|
24491
|
-
|
|
24492
|
-
|
|
24493
|
-
|
|
24494
|
-
|
|
24467
|
+
$(this, "SHIFT_MULTIPLIER", 3);
|
|
24468
|
+
$(this, "isUpPressed", !1);
|
|
24469
|
+
$(this, "isDownPressed", !1);
|
|
24470
|
+
$(this, "isLeftPressed", !1);
|
|
24471
|
+
$(this, "isRightPressed", !1);
|
|
24472
|
+
$(this, "isEPressed", !1);
|
|
24473
|
+
$(this, "isQPressed", !1);
|
|
24474
|
+
$(this, "isShiftPressed", !1);
|
|
24475
|
+
$(this, "isCtrlPressed", !1);
|
|
24476
|
+
$(this, "arrowsEnabled", !0);
|
|
24495
24477
|
}
|
|
24496
24478
|
addListeners() {
|
|
24497
24479
|
this.reg(document, "keydown", (t) => this.onKeyDown(t)), this.reg(document, "keyup", (t) => this.onKeyUp(t)), this.reg(this._viewer.viewport.canvas, "focusout", () => this.reset()), this.reg(window, "resize", () => this.reset());
|
|
@@ -24552,40 +24534,40 @@ class zS extends uf {
|
|
|
24552
24534
|
class kS extends uf {
|
|
24553
24535
|
constructor(t) {
|
|
24554
24536
|
super(t);
|
|
24555
|
-
|
|
24556
|
-
|
|
24557
|
-
|
|
24558
|
-
|
|
24559
|
-
|
|
24560
|
-
|
|
24561
|
-
|
|
24562
|
-
|
|
24563
|
-
|
|
24564
|
-
|
|
24565
|
-
|
|
24566
|
-
|
|
24567
|
-
|
|
24568
|
-
|
|
24537
|
+
$(this, "TAP_DURATION_MS", 500);
|
|
24538
|
+
$(this, "DOUBLE_TAP_DELAY_MS", 500);
|
|
24539
|
+
$(this, "TAP_MAX_MOVE_PIXEL", 5);
|
|
24540
|
+
$(this, "ZOOM_SPEED", 1);
|
|
24541
|
+
$(this, "MOVE_SPEED", 100);
|
|
24542
|
+
$(this, "rotateSpeed", 1);
|
|
24543
|
+
$(this, "orbitSpeed", 1);
|
|
24544
|
+
$(this, "_touch");
|
|
24545
|
+
$(this, "_touch1");
|
|
24546
|
+
$(this, "_touch2");
|
|
24547
|
+
$(this, "_touchStartTime");
|
|
24548
|
+
$(this, "_lastTapMs");
|
|
24549
|
+
$(this, "_touchStart");
|
|
24550
|
+
$(this, "reset", () => {
|
|
24569
24551
|
this._touch = this._touch1 = this._touch2 = this._touchStartTime = void 0;
|
|
24570
24552
|
});
|
|
24571
|
-
|
|
24553
|
+
$(this, "onTap", (t) => {
|
|
24572
24554
|
const n = new Date().getTime();
|
|
24573
24555
|
this._lastTapMs && n - this._lastTapMs < this.DOUBLE_TAP_DELAY_MS, this._lastTapMs = new Date().getTime();
|
|
24574
24556
|
});
|
|
24575
|
-
|
|
24557
|
+
$(this, "onTouchStart", (t) => {
|
|
24576
24558
|
t.preventDefault(), !(!t || !t.touches || !t.touches.length) && (this._touchStartTime = new Date().getTime(), t.touches.length === 1 ? (this._touch = this.touchToVector(t.touches[0]), this._touch1 = this._touch2 = void 0) : t.touches.length === 2 && (this._touch1 = this.touchToVector(t.touches[0]), this._touch2 = this.touchToVector(t.touches[1]), this._touch = this.average(this._touch1, this._touch2)), this._touchStart = this._touch);
|
|
24577
24559
|
});
|
|
24578
|
-
|
|
24560
|
+
$(this, "onDrag", (t) => {
|
|
24579
24561
|
this._viewer.inputs.pointerActive === "orbit" ? this.camera.do().orbit(this.toRotation(t, this.orbitSpeed)) : this.camera.do().rotate(this.toRotation(t, this.rotateSpeed));
|
|
24580
24562
|
});
|
|
24581
|
-
|
|
24563
|
+
$(this, "onDoubleDrag", (t) => {
|
|
24582
24564
|
const n = t.clone().multiplyScalar(this.MOVE_SPEED);
|
|
24583
24565
|
this.camera.do().move2(n, "XY");
|
|
24584
24566
|
});
|
|
24585
|
-
|
|
24567
|
+
$(this, "onPinchOrSpread", (t) => {
|
|
24586
24568
|
this._viewer.inputs.pointerActive === "orbit" ? this.camera.do().zoom(1 + t * this.ZOOM_SPEED) : this.camera.do().move1(t * this.ZOOM_SPEED, "Z");
|
|
24587
24569
|
});
|
|
24588
|
-
|
|
24570
|
+
$(this, "onTouchMove", (t) => {
|
|
24589
24571
|
if (t.preventDefault(), !(!t || !t.touches || !t.touches.length) && !!this._touch) {
|
|
24590
24572
|
if (t.touches.length === 1) {
|
|
24591
24573
|
const n = this.touchToVector(t.touches[0]), i = this.viewport.getSize(), s = n.clone().sub(this._touch).multiply(new he(1 / i.x, 1 / i.y));
|
|
@@ -24600,7 +24582,7 @@ class kS extends uf {
|
|
|
24600
24582
|
}
|
|
24601
24583
|
}
|
|
24602
24584
|
});
|
|
24603
|
-
|
|
24585
|
+
$(this, "onTouchEnd", (t) => {
|
|
24604
24586
|
if (this.isSingleTouch() && this._touchStart && this._touch) {
|
|
24605
24587
|
const n = new Date().getTime() - this._touchStartTime, i = this._touch.distanceTo(this._touchStart);
|
|
24606
24588
|
n < this.TAP_DURATION_MS && i < this.TAP_MAX_MOVE_PIXEL && this.onTap(this._touch);
|
|
@@ -24636,48 +24618,48 @@ class kS extends uf {
|
|
|
24636
24618
|
class VS extends uf {
|
|
24637
24619
|
constructor(t) {
|
|
24638
24620
|
super(t);
|
|
24639
|
-
|
|
24640
|
-
|
|
24641
|
-
|
|
24642
|
-
|
|
24643
|
-
|
|
24644
|
-
|
|
24645
|
-
|
|
24646
|
-
|
|
24647
|
-
|
|
24648
|
-
|
|
24649
|
-
|
|
24650
|
-
|
|
24651
|
-
|
|
24621
|
+
$(this, "_idleDelayMs", 150);
|
|
24622
|
+
$(this, "zoomSpeed", 1);
|
|
24623
|
+
$(this, "panSpeed", 100);
|
|
24624
|
+
$(this, "rotateSpeed", 1);
|
|
24625
|
+
$(this, "orbitSpeed", 1);
|
|
24626
|
+
$(this, "_buttonDown");
|
|
24627
|
+
$(this, "_hasMouseMoved", !1);
|
|
24628
|
+
$(this, "_hasCameraMoved", !1);
|
|
24629
|
+
$(this, "_idleTimeout");
|
|
24630
|
+
$(this, "_idlePosition");
|
|
24631
|
+
$(this, "_lastPosition");
|
|
24632
|
+
$(this, "_downPosition");
|
|
24633
|
+
$(this, "reset", () => {
|
|
24652
24634
|
this._buttonDown = void 0, this._hasMouseMoved = !1, this._lastPosition = this._downPosition = void 0, clearTimeout(this._idleTimeout);
|
|
24653
24635
|
});
|
|
24654
|
-
|
|
24636
|
+
$(this, "onMouseOut", (t) => {
|
|
24655
24637
|
t.stopImmediatePropagation(), this._buttonDown = void 0, this._hasMouseMoved = !1, this._lastPosition = void 0, this.resetIdle();
|
|
24656
24638
|
});
|
|
24657
|
-
|
|
24639
|
+
$(this, "onCameraMoved", () => {
|
|
24658
24640
|
this.resetIdle(), this._hasCameraMoved = !0;
|
|
24659
24641
|
});
|
|
24660
|
-
|
|
24642
|
+
$(this, "onMouseMove", (t) => {
|
|
24661
24643
|
t.stopImmediatePropagation(), this._lastPosition = new he(t.offsetX, t.offsetY), (!this._idlePosition || this._lastPosition.distanceTo(this._idlePosition) > 5) && this.resetIdle(), this._buttonDown && this.onMouseDrag(t);
|
|
24662
24644
|
});
|
|
24663
|
-
|
|
24645
|
+
$(this, "onMouseDown", (t) => {
|
|
24664
24646
|
if (t.stopImmediatePropagation(), t.preventDefault(), this._buttonDown)
|
|
24665
24647
|
return;
|
|
24666
24648
|
this.inputs.ContextMenu(void 0), this._hasCameraMoved = !1, this._downPosition = new he(t.offsetX, t.offsetY), this._hasMouseMoved = !1, this.viewport.canvas.focus(), this._buttonDown = this.getButton(t);
|
|
24667
24649
|
const n = this._buttonDown === "middle" ? "pan" : this._buttonDown === "right" ? "look" : void 0;
|
|
24668
24650
|
this.inputs.pointerOverride = n;
|
|
24669
24651
|
});
|
|
24670
|
-
|
|
24652
|
+
$(this, "onMouseWheel", (t) => {
|
|
24671
24653
|
t.preventDefault(), t.stopImmediatePropagation();
|
|
24672
24654
|
const n = Math.sign(t.deltaY);
|
|
24673
24655
|
if (t.ctrlKey)
|
|
24674
24656
|
this.camera.speed -= n;
|
|
24675
24657
|
else {
|
|
24676
24658
|
const i = Math.pow(1.3, n);
|
|
24677
|
-
this.camera.lerp().zoom(i);
|
|
24659
|
+
this.camera.lerp(0.3).zoom(i);
|
|
24678
24660
|
}
|
|
24679
24661
|
});
|
|
24680
|
-
|
|
24662
|
+
$(this, "onMouseUp", (t) => {
|
|
24681
24663
|
t.stopImmediatePropagation(), this.resetIdle(), this.getButton(t) !== this._buttonDown && (t.preventDefault(), this._buttonDown && (t.button === 2 && !this._hasMouseMoved && this.inputs.ContextMenu(new he(t.clientX, t.clientY)), this._buttonDown = void 0, this.inputs.pointerOverride = void 0));
|
|
24682
24664
|
});
|
|
24683
24665
|
this.rotateSpeed = t.settings.camera.controls.rotateSpeed, this.orbitSpeed = t.settings.camera.controls.orbitSpeed;
|
|
@@ -24837,7 +24819,7 @@ Rl.NonUniformSimpleEventList = KS;
|
|
|
24837
24819
|
})(yg);
|
|
24838
24820
|
class jS {
|
|
24839
24821
|
constructor(e) {
|
|
24840
|
-
|
|
24822
|
+
$(this, "_viewer");
|
|
24841
24823
|
this._viewer = e;
|
|
24842
24824
|
}
|
|
24843
24825
|
onKeyAction(e) {
|
|
@@ -24868,18 +24850,18 @@ class jS {
|
|
|
24868
24850
|
}
|
|
24869
24851
|
class JS {
|
|
24870
24852
|
constructor(e) {
|
|
24871
|
-
|
|
24872
|
-
|
|
24873
|
-
|
|
24874
|
-
|
|
24875
|
-
|
|
24876
|
-
|
|
24877
|
-
|
|
24878
|
-
|
|
24879
|
-
|
|
24880
|
-
|
|
24881
|
-
|
|
24882
|
-
|
|
24853
|
+
$(this, "_viewer");
|
|
24854
|
+
$(this, "_scheme");
|
|
24855
|
+
$(this, "touch");
|
|
24856
|
+
$(this, "mouse");
|
|
24857
|
+
$(this, "keyboard");
|
|
24858
|
+
$(this, "_pointerActive", "orbit");
|
|
24859
|
+
$(this, "_pointerFallback", "look");
|
|
24860
|
+
$(this, "_pointerOverride");
|
|
24861
|
+
$(this, "_onPointerModeChanged", new ys.SignalDispatcher());
|
|
24862
|
+
$(this, "_onPointerOverrideChanged", new ys.SignalDispatcher());
|
|
24863
|
+
$(this, "_onContextMenu", new yg.SimpleEventDispatcher());
|
|
24864
|
+
$(this, "unregisterAll", () => {
|
|
24883
24865
|
this.mouse.unregister(), this.keyboard.unregister(), this.touch.unregister();
|
|
24884
24866
|
});
|
|
24885
24867
|
this._viewer = e, this._scheme = new jS(e), this.keyboard = new zS(e), this.mouse = new VS(e), this.touch = new kS(e), this.pointerActive = e.settings.camera.controls.orbit ? "orbit" : "look", this._pointerFallback = e.settings.camera.controls.orbit ? "look" : "orbit";
|
|
@@ -24926,12 +24908,12 @@ class JS {
|
|
|
24926
24908
|
}
|
|
24927
24909
|
class $S {
|
|
24928
24910
|
constructor() {
|
|
24929
|
-
|
|
24930
|
-
|
|
24931
|
-
|
|
24932
|
-
|
|
24933
|
-
|
|
24934
|
-
|
|
24911
|
+
$(this, "mesh");
|
|
24912
|
+
$(this, "_source");
|
|
24913
|
+
$(this, "_size", 1);
|
|
24914
|
+
$(this, "_geometry");
|
|
24915
|
+
$(this, "_material");
|
|
24916
|
+
$(this, "_texture");
|
|
24935
24917
|
this._geometry = new Sr(), this._material = new dn({
|
|
24936
24918
|
transparent: !0,
|
|
24937
24919
|
depthTest: !0,
|
|
@@ -24983,10 +24965,10 @@ class $S {
|
|
|
24983
24965
|
}
|
|
24984
24966
|
class eM {
|
|
24985
24967
|
constructor(e) {
|
|
24986
|
-
|
|
24987
|
-
|
|
24988
|
-
|
|
24989
|
-
|
|
24968
|
+
$(this, "skyLight");
|
|
24969
|
+
$(this, "ambientLight");
|
|
24970
|
+
$(this, "sunLights");
|
|
24971
|
+
$(this, "_groundPlane");
|
|
24990
24972
|
this._groundPlane = new $S(), this.skyLight = new $u(), this.ambientLight = new rf(), this.sunLights = [], this.applySettings(e);
|
|
24991
24973
|
}
|
|
24992
24974
|
get groundPlane() {
|
|
@@ -25016,26 +24998,26 @@ class eM {
|
|
|
25016
24998
|
}
|
|
25017
24999
|
class tM {
|
|
25018
25000
|
constructor(e, t, n, i) {
|
|
25019
|
-
|
|
25020
|
-
|
|
25021
|
-
|
|
25022
|
-
|
|
25023
|
-
|
|
25024
|
-
|
|
25025
|
-
|
|
25026
|
-
|
|
25027
|
-
|
|
25028
|
-
|
|
25029
|
-
|
|
25030
|
-
|
|
25031
|
-
|
|
25032
|
-
|
|
25033
|
-
|
|
25034
|
-
|
|
25035
|
-
|
|
25036
|
-
|
|
25037
|
-
|
|
25038
|
-
|
|
25001
|
+
$(this, "_renderer");
|
|
25002
|
+
$(this, "_camera");
|
|
25003
|
+
$(this, "_inputs");
|
|
25004
|
+
$(this, "_size", 1);
|
|
25005
|
+
$(this, "_fov", 50);
|
|
25006
|
+
$(this, "_color", new Ae("blue"));
|
|
25007
|
+
$(this, "_opacity", 0.2);
|
|
25008
|
+
$(this, "_opacityAlways", 0.5);
|
|
25009
|
+
$(this, "_fadeDurationMs", 200);
|
|
25010
|
+
$(this, "_showDurationMs", 1e3);
|
|
25011
|
+
$(this, "_box");
|
|
25012
|
+
$(this, "_wireframe");
|
|
25013
|
+
$(this, "_material");
|
|
25014
|
+
$(this, "_materialAlways");
|
|
25015
|
+
$(this, "_gizmos");
|
|
25016
|
+
$(this, "_disconnectCamera");
|
|
25017
|
+
$(this, "_timeout");
|
|
25018
|
+
$(this, "_fadeEnd", 0);
|
|
25019
|
+
$(this, "_active", !0);
|
|
25020
|
+
$(this, "_animation", 0);
|
|
25039
25021
|
this._renderer = e, this._camera = t, this._inputs = n, this.applySettings(i), this.connect();
|
|
25040
25022
|
}
|
|
25041
25023
|
connect() {
|
|
@@ -25178,11 +25160,11 @@ class nM {
|
|
|
25178
25160
|
}
|
|
25179
25161
|
class ff {
|
|
25180
25162
|
constructor(e) {
|
|
25181
|
-
|
|
25182
|
-
|
|
25183
|
-
|
|
25184
|
-
|
|
25185
|
-
|
|
25163
|
+
$(this, "canvas");
|
|
25164
|
+
$(this, "text");
|
|
25165
|
+
$(this, "_unregisterResize");
|
|
25166
|
+
$(this, "_ownedCanvas");
|
|
25167
|
+
$(this, "_onResize", new ys.SignalDispatcher());
|
|
25186
25168
|
const [t, n] = ff.getOrCreateCanvas(e.canvas.id);
|
|
25187
25169
|
this.canvas = t, this._ownedCanvas = n, this.watchResize(e.canvas.resizeDelay);
|
|
25188
25170
|
}
|
|
@@ -25230,14 +25212,14 @@ class ff {
|
|
|
25230
25212
|
}
|
|
25231
25213
|
class iM {
|
|
25232
25214
|
constructor(e, t, n, i) {
|
|
25233
|
-
|
|
25234
|
-
|
|
25235
|
-
|
|
25236
|
-
|
|
25237
|
-
|
|
25238
|
-
|
|
25239
|
-
|
|
25240
|
-
|
|
25215
|
+
$(this, "renderer");
|
|
25216
|
+
$(this, "antialias", !0);
|
|
25217
|
+
$(this, "scene");
|
|
25218
|
+
$(this, "viewport");
|
|
25219
|
+
$(this, "camera");
|
|
25220
|
+
$(this, "needsUpdate");
|
|
25221
|
+
$(this, "_lastSize", new he());
|
|
25222
|
+
$(this, "fitViewport", () => {
|
|
25241
25223
|
const e = this.viewport.getParentSize();
|
|
25242
25224
|
if (e.x === this._lastSize.x && e.y === this._lastSize.y)
|
|
25243
25225
|
return;
|
|
@@ -25284,18 +25266,18 @@ class iM {
|
|
|
25284
25266
|
}
|
|
25285
25267
|
class p2 {
|
|
25286
25268
|
constructor(e) {
|
|
25287
|
-
|
|
25288
|
-
|
|
25289
|
-
|
|
25290
|
-
|
|
25291
|
-
|
|
25292
|
-
|
|
25293
|
-
|
|
25294
|
-
|
|
25295
|
-
|
|
25296
|
-
|
|
25297
|
-
|
|
25298
|
-
|
|
25269
|
+
$(this, "settings");
|
|
25270
|
+
$(this, "renderer");
|
|
25271
|
+
$(this, "viewport");
|
|
25272
|
+
$(this, "inputs");
|
|
25273
|
+
$(this, "camera");
|
|
25274
|
+
$(this, "environment");
|
|
25275
|
+
$(this, "gizmoOrbit");
|
|
25276
|
+
$(this, "running", !1);
|
|
25277
|
+
$(this, "updateId", null);
|
|
25278
|
+
$(this, "clock", new bl());
|
|
25279
|
+
$(this, "scene", new Du());
|
|
25280
|
+
$(this, "animate", () => {
|
|
25299
25281
|
if (!this.running)
|
|
25300
25282
|
return;
|
|
25301
25283
|
this.updateId = requestAnimationFrame(this.animate);
|
|
@@ -27097,7 +27079,7 @@ function kM() {
|
|
|
27097
27079
|
}
|
|
27098
27080
|
class m2 {
|
|
27099
27081
|
constructor() {
|
|
27100
|
-
|
|
27082
|
+
$(this, "loader");
|
|
27101
27083
|
this.loader = new rM();
|
|
27102
27084
|
const e = new zM();
|
|
27103
27085
|
e.setDecoderPath("/draco/"), this.loader.setDRACOLoader(e);
|
|
@@ -27266,7 +27248,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27266
27248
|
return m;
|
|
27267
27249
|
}
|
|
27268
27250
|
function o(d, g, _, m, p, v) {
|
|
27269
|
-
var y, x, A = d.file, E = d.compression, I = v !== l.utf8encode, D = a.transformTo("string", v(A.name)), b = a.transformTo("string", l.utf8encode(A.name)), C = A.comment, B = a.transformTo("string", v(C)), R = a.transformTo("string", l.utf8encode(C)), O = b.length !== A.name.length, M = R.length !== C.length, z = "", X = "", H = "", re = A.dir,
|
|
27251
|
+
var y, x, A = d.file, E = d.compression, I = v !== l.utf8encode, D = a.transformTo("string", v(A.name)), b = a.transformTo("string", l.utf8encode(A.name)), C = A.comment, B = a.transformTo("string", v(C)), R = a.transformTo("string", l.utf8encode(C)), O = b.length !== A.name.length, M = R.length !== C.length, z = "", X = "", H = "", re = A.dir, J = A.date, le = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
|
|
27270
27252
|
g && !_ || (le.crc32 = d.crc32, le.compressedSize = d.compressedSize, le.uncompressedSize = d.uncompressedSize);
|
|
27271
27253
|
var W = 0;
|
|
27272
27254
|
g && (W |= 8), I || !O && !M || (W |= 2048);
|
|
@@ -27276,7 +27258,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27276
27258
|
return de || (ee = oe ? 16893 : 33204), (65535 & ee) << 16;
|
|
27277
27259
|
}(A.unixPermissions, re)) : (ge = 20, Z |= function(de) {
|
|
27278
27260
|
return 63 & (de || 0);
|
|
27279
|
-
}(A.dosPermissions)), y =
|
|
27261
|
+
}(A.dosPermissions)), y = J.getUTCHours(), y <<= 6, y |= J.getUTCMinutes(), y <<= 5, y |= J.getUTCSeconds() / 2, x = J.getUTCFullYear() - 1980, x <<= 4, x |= J.getUTCMonth() + 1, x <<= 5, x |= J.getUTCDate(), O && (X = s(1, 1) + s(h(D), 4) + b, z += "up" + s(X.length, 2) + X), M && (H = s(1, 1) + s(h(B), 4) + R, z += "uc" + s(H.length, 2) + H);
|
|
27280
27262
|
var _e = "";
|
|
27281
27263
|
return _e += `
|
|
27282
27264
|
\0`, _e += s(W, 2), _e += E.magic, _e += s(y, 2), _e += s(x, 2), _e += s(le.crc32, 4), _e += s(le.compressedSize, 4), _e += s(le.uncompressedSize, 4), _e += s(D.length, 2), _e += s(z.length, 2), { fileRecord: u.LOCAL_FILE_HEADER + _e + D + z, dirRecord: u.CENTRAL_FILE_HEADER + s(ge, 2) + _e + s(B.length, 2) + "\0\0\0\0" + s(Z, 4) + s(m, 4) + D + z + B };
|
|
@@ -28645,7 +28627,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
28645
28627
|
function re(w, q) {
|
|
28646
28628
|
return w.msg = h[q], q;
|
|
28647
28629
|
}
|
|
28648
|
-
function
|
|
28630
|
+
function J(w) {
|
|
28649
28631
|
return (w << 1) - (4 < w ? 9 : 0);
|
|
28650
28632
|
}
|
|
28651
28633
|
function le(w) {
|
|
@@ -28837,7 +28819,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
28837
28819
|
if (N.status === 103 && (N.gzhead.hcrc ? (N.pending + 2 > N.pending_buf_size && W(w), N.pending + 2 <= N.pending_buf_size && (ge(N, 255 & w.adler), ge(N, w.adler >> 8 & 255), w.adler = 0, N.status = O)) : N.status = O), N.pending !== 0) {
|
|
28838
28820
|
if (W(w), w.avail_out === 0)
|
|
28839
28821
|
return N.last_flush = -1, d;
|
|
28840
|
-
} else if (w.avail_in === 0 &&
|
|
28822
|
+
} else if (w.avail_in === 0 && J(q) <= J(k) && q !== f)
|
|
28841
28823
|
return re(w, -5);
|
|
28842
28824
|
if (N.status === 666 && w.avail_in !== 0)
|
|
28843
28825
|
return re(w, -5);
|
|
@@ -29027,10 +29009,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
29027
29009
|
i.inflateReset = x, i.inflateReset2 = A, i.inflateResetKeep = y, i.inflateInit = function(R) {
|
|
29028
29010
|
return E(R, 15);
|
|
29029
29011
|
}, i.inflateInit2 = E, i.inflate = function(R, O) {
|
|
29030
|
-
var M, z, X, H, re,
|
|
29012
|
+
var M, z, X, H, re, J, le, W, Z, ge, _e, de, oe, ee, pe, ye, xe, ze, Ke, He, w, q, k, N, S = 0, G = new s.Buf8(4), K = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
29031
29013
|
if (!R || !R.state || !R.output || !R.input && R.avail_in !== 0)
|
|
29032
29014
|
return d;
|
|
29033
|
-
(M = R.state).mode === 12 && (M.mode = 13), re = R.next_out, X = R.output, le = R.avail_out, H = R.next_in, z = R.input,
|
|
29015
|
+
(M = R.state).mode === 12 && (M.mode = 13), re = R.next_out, X = R.output, le = R.avail_out, H = R.next_in, z = R.input, J = R.avail_in, W = M.hold, Z = M.bits, ge = J, _e = le, q = f;
|
|
29034
29016
|
e:
|
|
29035
29017
|
for (; ; )
|
|
29036
29018
|
switch (M.mode) {
|
|
@@ -29040,9 +29022,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
29040
29022
|
break;
|
|
29041
29023
|
}
|
|
29042
29024
|
for (; Z < 16; ) {
|
|
29043
|
-
if (
|
|
29025
|
+
if (J === 0)
|
|
29044
29026
|
break e;
|
|
29045
|
-
|
|
29027
|
+
J--, W += z[H++] << Z, Z += 8;
|
|
29046
29028
|
}
|
|
29047
29029
|
if (2 & M.wrap && W === 35615) {
|
|
29048
29030
|
G[M.check = 0] = 255 & W, G[1] = W >>> 8 & 255, M.check = a(M.check, G, 2, 0), Z = W = 0, M.mode = 2;
|
|
@@ -29066,9 +29048,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
29066
29048
|
break;
|
|
29067
29049
|
case 2:
|
|
29068
29050
|
for (; Z < 16; ) {
|
|
29069
|
-
if (
|
|
29051
|
+
if (J === 0)
|
|
29070
29052
|
break e;
|
|
29071
|
-
|
|
29053
|
+
J--, W += z[H++] << Z, Z += 8;
|
|
29072
29054
|
}
|
|
29073
29055
|
if (M.flags = W, (255 & M.flags) != 8) {
|
|
29074
29056
|
R.msg = "unknown compression method", M.mode = 30;
|
|
@@ -29081,51 +29063,51 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
29081
29063
|
M.head && (M.head.text = W >> 8 & 1), 512 & M.flags && (G[0] = 255 & W, G[1] = W >>> 8 & 255, M.check = a(M.check, G, 2, 0)), Z = W = 0, M.mode = 3;
|
|
29082
29064
|
case 3:
|
|
29083
29065
|
for (; Z < 32; ) {
|
|
29084
|
-
if (
|
|
29066
|
+
if (J === 0)
|
|
29085
29067
|
break e;
|
|
29086
|
-
|
|
29068
|
+
J--, W += z[H++] << Z, Z += 8;
|
|
29087
29069
|
}
|
|
29088
29070
|
M.head && (M.head.time = W), 512 & M.flags && (G[0] = 255 & W, G[1] = W >>> 8 & 255, G[2] = W >>> 16 & 255, G[3] = W >>> 24 & 255, M.check = a(M.check, G, 4, 0)), Z = W = 0, M.mode = 4;
|
|
29089
29071
|
case 4:
|
|
29090
29072
|
for (; Z < 16; ) {
|
|
29091
|
-
if (
|
|
29073
|
+
if (J === 0)
|
|
29092
29074
|
break e;
|
|
29093
|
-
|
|
29075
|
+
J--, W += z[H++] << Z, Z += 8;
|
|
29094
29076
|
}
|
|
29095
29077
|
M.head && (M.head.xflags = 255 & W, M.head.os = W >> 8), 512 & M.flags && (G[0] = 255 & W, G[1] = W >>> 8 & 255, M.check = a(M.check, G, 2, 0)), Z = W = 0, M.mode = 5;
|
|
29096
29078
|
case 5:
|
|
29097
29079
|
if (1024 & M.flags) {
|
|
29098
29080
|
for (; Z < 16; ) {
|
|
29099
|
-
if (
|
|
29081
|
+
if (J === 0)
|
|
29100
29082
|
break e;
|
|
29101
|
-
|
|
29083
|
+
J--, W += z[H++] << Z, Z += 8;
|
|
29102
29084
|
}
|
|
29103
29085
|
M.length = W, M.head && (M.head.extra_len = W), 512 & M.flags && (G[0] = 255 & W, G[1] = W >>> 8 & 255, M.check = a(M.check, G, 2, 0)), Z = W = 0;
|
|
29104
29086
|
} else
|
|
29105
29087
|
M.head && (M.head.extra = null);
|
|
29106
29088
|
M.mode = 6;
|
|
29107
29089
|
case 6:
|
|
29108
|
-
if (1024 & M.flags && (
|
|
29090
|
+
if (1024 & M.flags && (J < (de = M.length) && (de = J), de && (M.head && (w = M.head.extra_len - M.length, M.head.extra || (M.head.extra = new Array(M.head.extra_len)), s.arraySet(M.head.extra, z, H, de, w)), 512 & M.flags && (M.check = a(M.check, z, de, H)), J -= de, H += de, M.length -= de), M.length))
|
|
29109
29091
|
break e;
|
|
29110
29092
|
M.length = 0, M.mode = 7;
|
|
29111
29093
|
case 7:
|
|
29112
29094
|
if (2048 & M.flags) {
|
|
29113
|
-
if (
|
|
29095
|
+
if (J === 0)
|
|
29114
29096
|
break e;
|
|
29115
|
-
for (de = 0; w = z[H + de++], M.head && w && M.length < 65536 && (M.head.name += String.fromCharCode(w)), w && de <
|
|
29097
|
+
for (de = 0; w = z[H + de++], M.head && w && M.length < 65536 && (M.head.name += String.fromCharCode(w)), w && de < J; )
|
|
29116
29098
|
;
|
|
29117
|
-
if (512 & M.flags && (M.check = a(M.check, z, de, H)),
|
|
29099
|
+
if (512 & M.flags && (M.check = a(M.check, z, de, H)), J -= de, H += de, w)
|
|
29118
29100
|
break e;
|
|
29119
29101
|
} else
|
|
29120
29102
|
M.head && (M.head.name = null);
|
|
29121
29103
|
M.length = 0, M.mode = 8;
|
|
29122
29104
|
case 8:
|
|
29123
29105
|
if (4096 & M.flags) {
|
|
29124
|
-
if (
|
|
29106
|
+
if (J === 0)
|
|
29125
29107
|
break e;
|
|
29126
|
-
for (de = 0; w = z[H + de++], M.head && w && M.length < 65536 && (M.head.comment += String.fromCharCode(w)), w && de <
|
|
29108
|
+
for (de = 0; w = z[H + de++], M.head && w && M.length < 65536 && (M.head.comment += String.fromCharCode(w)), w && de < J; )
|
|
29127
29109
|
;
|
|
29128
|
-
if (512 & M.flags && (M.check = a(M.check, z, de, H)),
|
|
29110
|
+
if (512 & M.flags && (M.check = a(M.check, z, de, H)), J -= de, H += de, w)
|
|
29129
29111
|
break e;
|
|
29130
29112
|
} else
|
|
29131
29113
|
M.head && (M.head.comment = null);
|
|
@@ -29133,9 +29115,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
29133
29115
|
case 9:
|
|
29134
29116
|
if (512 & M.flags) {
|
|
29135
29117
|
for (; Z < 16; ) {
|
|
29136
|
-
if (
|
|
29118
|
+
if (J === 0)
|
|
29137
29119
|
break e;
|
|
29138
|
-
|
|
29120
|
+
J--, W += z[H++] << Z, Z += 8;
|
|
29139
29121
|
}
|
|
29140
29122
|
if (W !== (65535 & M.check)) {
|
|
29141
29123
|
R.msg = "header crc mismatch", M.mode = 30;
|
|
@@ -29147,14 +29129,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
29147
29129
|
break;
|
|
29148
29130
|
case 10:
|
|
29149
29131
|
for (; Z < 32; ) {
|
|
29150
|
-
if (
|
|
29132
|
+
if (J === 0)
|
|
29151
29133
|
break e;
|
|
29152
|
-
|
|
29134
|
+
J--, W += z[H++] << Z, Z += 8;
|
|
29153
29135
|
}
|
|
29154
29136
|
R.adler = M.check = p(W), Z = W = 0, M.mode = 11;
|
|
29155
29137
|
case 11:
|
|
29156
29138
|
if (M.havedict === 0)
|
|
29157
|
-
return R.next_out = re, R.avail_out = le, R.next_in = H, R.avail_in =
|
|
29139
|
+
return R.next_out = re, R.avail_out = le, R.next_in = H, R.avail_in = J, M.hold = W, M.bits = Z, 2;
|
|
29158
29140
|
R.adler = M.check = 1, M.mode = 12;
|
|
29159
29141
|
case 12:
|
|
29160
29142
|
if (O === 5 || O === 6)
|
|
@@ -29165,9 +29147,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
29165
29147
|
break;
|
|
29166
29148
|
}
|
|
29167
29149
|
for (; Z < 3; ) {
|
|
29168
|
-
if (
|
|
29150
|
+
if (J === 0)
|
|
29169
29151
|
break e;
|
|
29170
|
-
|
|
29152
|
+
J--, W += z[H++] << Z, Z += 8;
|
|
29171
29153
|
}
|
|
29172
29154
|
switch (M.last = 1 & W, Z -= 1, 3 & (W >>>= 1)) {
|
|
29173
29155
|
case 0:
|
|
@@ -29188,9 +29170,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
29188
29170
|
break;
|
|
29189
29171
|
case 14:
|
|
29190
29172
|
for (W >>>= 7 & Z, Z -= 7 & Z; Z < 32; ) {
|
|
29191
|
-
if (
|
|
29173
|
+
if (J === 0)
|
|
29192
29174
|
break e;
|
|
29193
|
-
|
|
29175
|
+
J--, W += z[H++] << Z, Z += 8;
|
|
29194
29176
|
}
|
|
29195
29177
|
if ((65535 & W) != (W >>> 16 ^ 65535)) {
|
|
29196
29178
|
R.msg = "invalid stored block lengths", M.mode = 30;
|
|
@@ -29202,18 +29184,18 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
29202
29184
|
M.mode = 16;
|
|
29203
29185
|
case 16:
|
|
29204
29186
|
if (de = M.length) {
|
|
29205
|
-
if (
|
|
29187
|
+
if (J < de && (de = J), le < de && (de = le), de === 0)
|
|
29206
29188
|
break e;
|
|
29207
|
-
s.arraySet(X, z, H, de, re),
|
|
29189
|
+
s.arraySet(X, z, H, de, re), J -= de, H += de, le -= de, re += de, M.length -= de;
|
|
29208
29190
|
break;
|
|
29209
29191
|
}
|
|
29210
29192
|
M.mode = 12;
|
|
29211
29193
|
break;
|
|
29212
29194
|
case 17:
|
|
29213
29195
|
for (; Z < 14; ) {
|
|
29214
|
-
if (
|
|
29196
|
+
if (J === 0)
|
|
29215
29197
|
break e;
|
|
29216
|
-
|
|
29198
|
+
J--, W += z[H++] << Z, Z += 8;
|
|
29217
29199
|
}
|
|
29218
29200
|
if (M.nlen = 257 + (31 & W), W >>>= 5, Z -= 5, M.ndist = 1 + (31 & W), W >>>= 5, Z -= 5, M.ncode = 4 + (15 & W), W >>>= 4, Z -= 4, 286 < M.nlen || 30 < M.ndist) {
|
|
29219
29201
|
R.msg = "too many length or distance symbols", M.mode = 30;
|
|
@@ -29223,9 +29205,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
29223
29205
|
case 18:
|
|
29224
29206
|
for (; M.have < M.ncode; ) {
|
|
29225
29207
|
for (; Z < 3; ) {
|
|
29226
|
-
if (
|
|
29208
|
+
if (J === 0)
|
|
29227
29209
|
break e;
|
|
29228
|
-
|
|
29210
|
+
J--, W += z[H++] << Z, Z += 8;
|
|
29229
29211
|
}
|
|
29230
29212
|
M.lens[K[M.have++]] = 7 & W, W >>>= 3, Z -= 3;
|
|
29231
29213
|
}
|
|
@@ -29239,18 +29221,18 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
29239
29221
|
case 19:
|
|
29240
29222
|
for (; M.have < M.nlen + M.ndist; ) {
|
|
29241
29223
|
for (; ye = (S = M.lencode[W & (1 << M.lenbits) - 1]) >>> 16 & 255, xe = 65535 & S, !((pe = S >>> 24) <= Z); ) {
|
|
29242
|
-
if (
|
|
29224
|
+
if (J === 0)
|
|
29243
29225
|
break e;
|
|
29244
|
-
|
|
29226
|
+
J--, W += z[H++] << Z, Z += 8;
|
|
29245
29227
|
}
|
|
29246
29228
|
if (xe < 16)
|
|
29247
29229
|
W >>>= pe, Z -= pe, M.lens[M.have++] = xe;
|
|
29248
29230
|
else {
|
|
29249
29231
|
if (xe === 16) {
|
|
29250
29232
|
for (N = pe + 2; Z < N; ) {
|
|
29251
|
-
if (
|
|
29233
|
+
if (J === 0)
|
|
29252
29234
|
break e;
|
|
29253
|
-
|
|
29235
|
+
J--, W += z[H++] << Z, Z += 8;
|
|
29254
29236
|
}
|
|
29255
29237
|
if (W >>>= pe, Z -= pe, M.have === 0) {
|
|
29256
29238
|
R.msg = "invalid bit length repeat", M.mode = 30;
|
|
@@ -29259,16 +29241,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
29259
29241
|
w = M.lens[M.have - 1], de = 3 + (3 & W), W >>>= 2, Z -= 2;
|
|
29260
29242
|
} else if (xe === 17) {
|
|
29261
29243
|
for (N = pe + 3; Z < N; ) {
|
|
29262
|
-
if (
|
|
29244
|
+
if (J === 0)
|
|
29263
29245
|
break e;
|
|
29264
|
-
|
|
29246
|
+
J--, W += z[H++] << Z, Z += 8;
|
|
29265
29247
|
}
|
|
29266
29248
|
Z -= pe, w = 0, de = 3 + (7 & (W >>>= pe)), W >>>= 3, Z -= 3;
|
|
29267
29249
|
} else {
|
|
29268
29250
|
for (N = pe + 7; Z < N; ) {
|
|
29269
|
-
if (
|
|
29251
|
+
if (J === 0)
|
|
29270
29252
|
break e;
|
|
29271
|
-
|
|
29253
|
+
J--, W += z[H++] << Z, Z += 8;
|
|
29272
29254
|
}
|
|
29273
29255
|
Z -= pe, w = 0, de = 11 + (127 & (W >>>= pe)), W >>>= 7, Z -= 7;
|
|
29274
29256
|
}
|
|
@@ -29299,20 +29281,20 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
29299
29281
|
case 20:
|
|
29300
29282
|
M.mode = 21;
|
|
29301
29283
|
case 21:
|
|
29302
|
-
if (6 <=
|
|
29303
|
-
R.next_out = re, R.avail_out = le, R.next_in = H, R.avail_in =
|
|
29284
|
+
if (6 <= J && 258 <= le) {
|
|
29285
|
+
R.next_out = re, R.avail_out = le, R.next_in = H, R.avail_in = J, M.hold = W, M.bits = Z, c(R, _e), re = R.next_out, X = R.output, le = R.avail_out, H = R.next_in, z = R.input, J = R.avail_in, W = M.hold, Z = M.bits, M.mode === 12 && (M.back = -1);
|
|
29304
29286
|
break;
|
|
29305
29287
|
}
|
|
29306
29288
|
for (M.back = 0; ye = (S = M.lencode[W & (1 << M.lenbits) - 1]) >>> 16 & 255, xe = 65535 & S, !((pe = S >>> 24) <= Z); ) {
|
|
29307
|
-
if (
|
|
29289
|
+
if (J === 0)
|
|
29308
29290
|
break e;
|
|
29309
|
-
|
|
29291
|
+
J--, W += z[H++] << Z, Z += 8;
|
|
29310
29292
|
}
|
|
29311
29293
|
if (ye && (240 & ye) == 0) {
|
|
29312
29294
|
for (ze = pe, Ke = ye, He = xe; ye = (S = M.lencode[He + ((W & (1 << ze + Ke) - 1) >> ze)]) >>> 16 & 255, xe = 65535 & S, !(ze + (pe = S >>> 24) <= Z); ) {
|
|
29313
|
-
if (
|
|
29295
|
+
if (J === 0)
|
|
29314
29296
|
break e;
|
|
29315
|
-
|
|
29297
|
+
J--, W += z[H++] << Z, Z += 8;
|
|
29316
29298
|
}
|
|
29317
29299
|
W >>>= ze, Z -= ze, M.back += ze;
|
|
29318
29300
|
}
|
|
@@ -29332,24 +29314,24 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
29332
29314
|
case 22:
|
|
29333
29315
|
if (M.extra) {
|
|
29334
29316
|
for (N = M.extra; Z < N; ) {
|
|
29335
|
-
if (
|
|
29317
|
+
if (J === 0)
|
|
29336
29318
|
break e;
|
|
29337
|
-
|
|
29319
|
+
J--, W += z[H++] << Z, Z += 8;
|
|
29338
29320
|
}
|
|
29339
29321
|
M.length += W & (1 << M.extra) - 1, W >>>= M.extra, Z -= M.extra, M.back += M.extra;
|
|
29340
29322
|
}
|
|
29341
29323
|
M.was = M.length, M.mode = 23;
|
|
29342
29324
|
case 23:
|
|
29343
29325
|
for (; ye = (S = M.distcode[W & (1 << M.distbits) - 1]) >>> 16 & 255, xe = 65535 & S, !((pe = S >>> 24) <= Z); ) {
|
|
29344
|
-
if (
|
|
29326
|
+
if (J === 0)
|
|
29345
29327
|
break e;
|
|
29346
|
-
|
|
29328
|
+
J--, W += z[H++] << Z, Z += 8;
|
|
29347
29329
|
}
|
|
29348
29330
|
if ((240 & ye) == 0) {
|
|
29349
29331
|
for (ze = pe, Ke = ye, He = xe; ye = (S = M.distcode[He + ((W & (1 << ze + Ke) - 1) >> ze)]) >>> 16 & 255, xe = 65535 & S, !(ze + (pe = S >>> 24) <= Z); ) {
|
|
29350
|
-
if (
|
|
29332
|
+
if (J === 0)
|
|
29351
29333
|
break e;
|
|
29352
|
-
|
|
29334
|
+
J--, W += z[H++] << Z, Z += 8;
|
|
29353
29335
|
}
|
|
29354
29336
|
W >>>= ze, Z -= ze, M.back += ze;
|
|
29355
29337
|
}
|
|
@@ -29361,9 +29343,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
29361
29343
|
case 24:
|
|
29362
29344
|
if (M.extra) {
|
|
29363
29345
|
for (N = M.extra; Z < N; ) {
|
|
29364
|
-
if (
|
|
29346
|
+
if (J === 0)
|
|
29365
29347
|
break e;
|
|
29366
|
-
|
|
29348
|
+
J--, W += z[H++] << Z, Z += 8;
|
|
29367
29349
|
}
|
|
29368
29350
|
M.offset += W & (1 << M.extra) - 1, W >>>= M.extra, Z -= M.extra, M.back += M.extra;
|
|
29369
29351
|
}
|
|
@@ -29395,9 +29377,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
29395
29377
|
case 27:
|
|
29396
29378
|
if (M.wrap) {
|
|
29397
29379
|
for (; Z < 32; ) {
|
|
29398
|
-
if (
|
|
29380
|
+
if (J === 0)
|
|
29399
29381
|
break e;
|
|
29400
|
-
|
|
29382
|
+
J--, W |= z[H++] << Z, Z += 8;
|
|
29401
29383
|
}
|
|
29402
29384
|
if (_e -= le, R.total_out += _e, M.total += _e, _e && (R.adler = M.check = M.flags ? a(M.check, X, _e, re - _e) : o(M.check, X, _e, re - _e)), _e = le, (M.flags ? W : p(W)) !== M.check) {
|
|
29403
29385
|
R.msg = "incorrect data check", M.mode = 30;
|
|
@@ -29409,9 +29391,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
29409
29391
|
case 28:
|
|
29410
29392
|
if (M.wrap && M.flags) {
|
|
29411
29393
|
for (; Z < 32; ) {
|
|
29412
|
-
if (
|
|
29394
|
+
if (J === 0)
|
|
29413
29395
|
break e;
|
|
29414
|
-
|
|
29396
|
+
J--, W += z[H++] << Z, Z += 8;
|
|
29415
29397
|
}
|
|
29416
29398
|
if (W !== (4294967295 & M.total)) {
|
|
29417
29399
|
R.msg = "incorrect length check", M.mode = 30;
|
|
@@ -29432,7 +29414,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
29432
29414
|
default:
|
|
29433
29415
|
return d;
|
|
29434
29416
|
}
|
|
29435
|
-
return R.next_out = re, R.avail_out = le, R.next_in = H, R.avail_in =
|
|
29417
|
+
return R.next_out = re, R.avail_out = le, R.next_in = H, R.avail_in = J, M.hold = W, M.bits = Z, (M.wsize || _e !== R.avail_out && M.mode < 30 && (M.mode < 27 || O !== 4)) && B(R, R.output, R.next_out, _e - R.avail_out) ? (M.mode = 31, -4) : (ge -= R.avail_in, _e -= R.avail_out, R.total_in += ge, R.total_out += _e, M.total += _e, M.wrap && _e && (R.adler = M.check = M.flags ? a(M.check, X, _e, R.next_out - _e) : o(M.check, X, _e, R.next_out - _e)), R.data_type = M.bits + (M.last ? 64 : 0) + (M.mode === 12 ? 128 : 0) + (M.mode === 20 || M.mode === 15 ? 256 : 0), (ge == 0 && _e === 0 || O === 4) && q === f && (q = -5), q);
|
|
29436
29418
|
}, i.inflateEnd = function(R) {
|
|
29437
29419
|
if (!R || !R.state)
|
|
29438
29420
|
return d;
|
|
@@ -29448,7 +29430,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
29448
29430
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(t, n, i) {
|
|
29449
29431
|
var s = t("../utils/common"), o = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], a = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], c = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], l = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
|
|
29450
29432
|
n.exports = function(h, u, f, d, g, _, m, p) {
|
|
29451
|
-
var v, y, x, A, E, I, D, b, C, B = p.bits, R = 0, O = 0, M = 0, z = 0, X = 0, H = 0, re = 0,
|
|
29433
|
+
var v, y, x, A, E, I, D, b, C, B = p.bits, R = 0, O = 0, M = 0, z = 0, X = 0, H = 0, re = 0, J = 0, le = 0, W = 0, Z = null, ge = 0, _e = new s.Buf16(16), de = new s.Buf16(16), oe = null, ee = 0;
|
|
29452
29434
|
for (R = 0; R <= 15; R++)
|
|
29453
29435
|
_e[R] = 0;
|
|
29454
29436
|
for (O = 0; O < d; O++)
|
|
@@ -29459,10 +29441,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
29459
29441
|
return g[_++] = 20971520, g[_++] = 20971520, p.bits = 1, 0;
|
|
29460
29442
|
for (M = 1; M < z && _e[M] === 0; M++)
|
|
29461
29443
|
;
|
|
29462
|
-
for (X < M && (X = M), R =
|
|
29463
|
-
if (
|
|
29444
|
+
for (X < M && (X = M), R = J = 1; R <= 15; R++)
|
|
29445
|
+
if (J <<= 1, (J -= _e[R]) < 0)
|
|
29464
29446
|
return -1;
|
|
29465
|
-
if (0 <
|
|
29447
|
+
if (0 < J && (h === 0 || z !== 1))
|
|
29466
29448
|
return -1;
|
|
29467
29449
|
for (de[1] = 0, R = 1; R < 15; R++)
|
|
29468
29450
|
de[R + 1] = de[R] + _e[R];
|
|
@@ -29481,8 +29463,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
29481
29463
|
R = u[f + m[O]];
|
|
29482
29464
|
}
|
|
29483
29465
|
if (X < R && (W & A) !== x) {
|
|
29484
|
-
for (re === 0 && (re = X), E += M,
|
|
29485
|
-
H++,
|
|
29466
|
+
for (re === 0 && (re = X), E += M, J = 1 << (H = R - re); H + re < z && !((J -= _e[H + re]) <= 0); )
|
|
29467
|
+
H++, J <<= 1;
|
|
29486
29468
|
if (le += 1 << H, h === 1 && 852 < le || h === 2 && 592 < le)
|
|
29487
29469
|
return 1;
|
|
29488
29470
|
g[x = W & A] = X << 24 | H << 16 | E - _ | 0;
|
|
@@ -29508,7 +29490,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
29508
29490
|
c(M);
|
|
29509
29491
|
var z = new Array(h);
|
|
29510
29492
|
c(z);
|
|
29511
|
-
var X, H, re,
|
|
29493
|
+
var X, H, re, J = new Array(d);
|
|
29512
29494
|
function le(S, G, K, ie, V) {
|
|
29513
29495
|
this.static_tree = S, this.extra_bits = G, this.extra_base = K, this.elems = ie, this.max_length = V, this.has_stree = S && S.length;
|
|
29514
29496
|
}
|
|
@@ -29566,7 +29548,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
29566
29548
|
function Ke(S, G, K) {
|
|
29567
29549
|
var ie, V, P, T, F = 0;
|
|
29568
29550
|
if (S.last_lit !== 0)
|
|
29569
|
-
for (; ie = S.pending_buf[S.d_buf + 2 * F] << 8 | S.pending_buf[S.d_buf + 2 * F + 1], V = S.pending_buf[S.l_buf + F], F++, ie === 0 ? de(S, V, G) : (de(S, (P = M[V]) + u + 1, G), (T = I[P]) !== 0 && _e(S, V -= z[P], T), de(S, P = Z(--ie), K), (T = D[P]) !== 0 && _e(S, ie -=
|
|
29551
|
+
for (; ie = S.pending_buf[S.d_buf + 2 * F] << 8 | S.pending_buf[S.d_buf + 2 * F + 1], V = S.pending_buf[S.l_buf + F], F++, ie === 0 ? de(S, V, G) : (de(S, (P = M[V]) + u + 1, G), (T = I[P]) !== 0 && _e(S, V -= z[P], T), de(S, P = Z(--ie), K), (T = D[P]) !== 0 && _e(S, ie -= J[P], T)), F < S.last_lit; )
|
|
29570
29552
|
;
|
|
29571
29553
|
de(S, y, G);
|
|
29572
29554
|
}
|
|
@@ -29615,7 +29597,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
29615
29597
|
P = V, ce = (F = 0) === T ? (Q = 138, 3) : V === T ? (Q = 6, 3) : (Q = 7, 4);
|
|
29616
29598
|
}
|
|
29617
29599
|
}
|
|
29618
|
-
c(
|
|
29600
|
+
c(J);
|
|
29619
29601
|
var k = !1;
|
|
29620
29602
|
function N(S, G, K, ie) {
|
|
29621
29603
|
_e(S, (l << 1) + (ie ? 1 : 0), 3), function(V, P, T, F) {
|
|
@@ -29629,10 +29611,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
29629
29611
|
for (z[V] = ie, G = 0; G < 1 << I[V]; G++)
|
|
29630
29612
|
M[ie++] = V;
|
|
29631
29613
|
for (M[ie - 1] = V, V = P = 0; V < 16; V++)
|
|
29632
|
-
for (
|
|
29614
|
+
for (J[V] = P, G = 0; G < 1 << D[V]; G++)
|
|
29633
29615
|
O[P++] = V;
|
|
29634
29616
|
for (P >>= 7; V < d; V++)
|
|
29635
|
-
for (
|
|
29617
|
+
for (J[V] = P << 7, G = 0; G < 1 << D[V] - 7; G++)
|
|
29636
29618
|
O[256 + P++] = V;
|
|
29637
29619
|
for (K = 0; K <= m; K++)
|
|
29638
29620
|
T[K] = 0;
|
|
@@ -31562,16 +31544,16 @@ var DE = ArrayBuffer, Nt = Uint8Array, Uc = Uint16Array, LE = Int16Array, Ll = I
|
|
|
31562
31544
|
z = (M -= B.b) >> 3;
|
|
31563
31545
|
var re = (r[z] | r[z + 1] << 8) >> (M & 7) & (1 << B.b) - 1;
|
|
31564
31546
|
z = (M -= C.b) >> 3;
|
|
31565
|
-
var
|
|
31547
|
+
var J = (r[z] | r[z + 1] << 8) >> (M & 7) & (1 << C.b) - 1;
|
|
31566
31548
|
for (++y; --y; ) {
|
|
31567
|
-
var le = R.s[H], W = R.n[H], Z = C.s[
|
|
31549
|
+
var le = R.s[H], W = R.n[H], Z = C.s[J], ge = C.n[J], _e = B.s[re], de = B.n[re];
|
|
31568
31550
|
z = (M -= _e) >> 3;
|
|
31569
31551
|
var oe = 1 << _e, ee = oe + ((r[z] | r[z + 1] << 8 | r[z + 2] << 16 | r[z + 3] << 24) >>> (M & 7) & oe - 1);
|
|
31570
31552
|
z = (M -= ou[Z]) >> 3;
|
|
31571
31553
|
var pe = GE[Z] + ((r[z] | r[z + 1] << 8 | r[z + 2] << 16) >> (M & 7) & (1 << ou[Z]) - 1);
|
|
31572
31554
|
z = (M -= su[le]) >> 3;
|
|
31573
31555
|
var ye = HE[le] + ((r[z] | r[z + 1] << 8 | r[z + 2] << 16) >> (M & 7) & (1 << su[le]) - 1);
|
|
31574
|
-
if (z = (M -= W) >> 3, H = R.t[H] + ((r[z] | r[z + 1] << 8) >> (M & 7) & (1 << W) - 1), z = (M -= ge) >> 3,
|
|
31556
|
+
if (z = (M -= W) >> 3, H = R.t[H] + ((r[z] | r[z + 1] << 8) >> (M & 7) & (1 << W) - 1), z = (M -= ge) >> 3, J = C.t[J] + ((r[z] | r[z + 1] << 8) >> (M & 7) & (1 << ge) - 1), z = (M -= de) >> 3, re = B.t[re] + ((r[z] | r[z + 1] << 8) >> (M & 7) & (1 << de) - 1), ee > 3)
|
|
31575
31557
|
e.o[2] = e.o[1], e.o[1] = e.o[0], e.o[0] = ee -= 3;
|
|
31576
31558
|
else {
|
|
31577
31559
|
var xe = ee - (ye != 0);
|
|
@@ -35512,8 +35494,8 @@ function KT(r, e) {
|
|
|
35512
35494
|
const R = f.readBits(2), O = uu + (f.readBits(4) << R), M = (1 << R) - 1, z = O + (48 << R), X = new Uint8Array(I[0]);
|
|
35513
35495
|
for (let ee = 0; ee < I[0]; ee++)
|
|
35514
35496
|
f.readMoreInput(), X[ee] = f.readBits(2) << 1;
|
|
35515
|
-
const [H, re] = Cp(I[0] << Pp, f), [
|
|
35516
|
-
h[0] = new nr(VT, H), h[1] = new nr(HT, I[1]), h[2] = new nr(z,
|
|
35497
|
+
const [H, re] = Cp(I[0] << Pp, f), [J, le] = Cp(I[2] << Dp, f);
|
|
35498
|
+
h[0] = new nr(VT, H), h[1] = new nr(HT, I[1]), h[2] = new nr(z, J);
|
|
35517
35499
|
for (let ee = 0; ee < 3; ++ee)
|
|
35518
35500
|
h[ee].decode(f);
|
|
35519
35501
|
let W = 0, Z = 0, ge = X[E[0]], _e = La[ge], de = La[ge + 1], oe = h[1].htrees[0];
|