@thatopen/components 2.3.12 → 2.3.14
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/core/Components/index.d.ts +1 -1
- package/dist/ifc/IfcPropertiesManager/index.d.ts +0 -1
- package/dist/index.cjs +16 -16
- package/dist/index.mjs +514 -501
- package/dist/namespace.d.ts +1994 -1993
- package/dist/openbim/IDSSpecifications/src/facets/Property.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2,10 +2,10 @@ var Ao = Object.defineProperty;
|
|
|
2
2
|
var Fo = (c, i, t) => i in c ? Ao(c, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[i] = t;
|
|
3
3
|
var C = (c, i, t) => (Fo(c, typeof i != "symbol" ? i + "" : i, t), t);
|
|
4
4
|
import * as D from "three";
|
|
5
|
-
import { BufferAttribute as Zr, Vector3 as Q, Vector2 as ai, Plane as Dn, Line3 as Ee, Triangle as ii, Sphere as So, Matrix4 as pe, Box3 as ae, BackSide as Oo, DoubleSide as jr, FrontSide as Xn, Mesh as rt, Ray as No, Raycaster as yo, Quaternion as de, Object3D as In, Euler as Lo, MeshBasicMaterial as qr, LineBasicMaterial as
|
|
5
|
+
import { BufferAttribute as Zr, Vector3 as Q, Vector2 as ai, Plane as Dn, Line3 as Ee, Triangle as ii, Sphere as So, Matrix4 as pe, Box3 as ae, BackSide as Oo, DoubleSide as jr, FrontSide as Xn, Mesh as rt, Ray as No, Raycaster as yo, Quaternion as de, Object3D as In, Euler as Lo, MeshBasicMaterial as qr, LineBasicMaterial as Po, CylinderGeometry as Vt, BoxGeometry as Ut, BufferGeometry as $n, Float32BufferAttribute as Zn, OctahedronGeometry as Gi, Line as Fe, SphereGeometry as _o, TorusGeometry as Ii, PlaneGeometry as wo } from "three";
|
|
6
6
|
import * as Qt from "@thatopen/fragments";
|
|
7
7
|
import { FragmentsGroup as Mo, Serializer as Do } from "@thatopen/fragments";
|
|
8
|
-
import * as
|
|
8
|
+
import * as k from "web-ifc";
|
|
9
9
|
const Qr = 0, bo = 1, vo = 2, jn = 2, Ws = 1.25, qn = 1, Is = 6 * 4 + 4 + 4, Ys = 65535, Uo = Math.pow(2, -24), Xs = Symbol("SKIP_GENERATION");
|
|
10
10
|
function xo(c) {
|
|
11
11
|
return c.index ? c.index.count : c.attributes.position.count;
|
|
@@ -139,7 +139,7 @@ function ko(c, i) {
|
|
|
139
139
|
}
|
|
140
140
|
return n;
|
|
141
141
|
}
|
|
142
|
-
const Te = 32, Ho = (c, i) => c.candidate - i.candidate,
|
|
142
|
+
const Te = 32, Ho = (c, i) => c.candidate - i.candidate, Se = new Array(Te).fill().map(() => ({
|
|
143
143
|
count: 0,
|
|
144
144
|
bounds: new Float32Array(6),
|
|
145
145
|
rightCacheBounds: new Float32Array(6),
|
|
@@ -159,7 +159,7 @@ function Wo(c, i, t, e, s, n) {
|
|
|
159
159
|
for (let I = 0; I < 3; I++) {
|
|
160
160
|
const u = i[I], T = (i[I + 3] - u) / Te;
|
|
161
161
|
if (s < Te / 4) {
|
|
162
|
-
const p = [...
|
|
162
|
+
const p = [...Se];
|
|
163
163
|
p.length = s;
|
|
164
164
|
let m = 0;
|
|
165
165
|
for (let R = h; R < f; R += 6, m++) {
|
|
@@ -199,7 +199,7 @@ function Wo(c, i, t, e, s, n) {
|
|
|
199
199
|
}
|
|
200
200
|
} else {
|
|
201
201
|
for (let F = 0; F < Te; F++) {
|
|
202
|
-
const R =
|
|
202
|
+
const R = Se[F];
|
|
203
203
|
R.count = 0, R.candidate = u + T + F * T;
|
|
204
204
|
const S = R.bounds;
|
|
205
205
|
for (let O = 0; O < 3; O++)
|
|
@@ -208,18 +208,18 @@ function Wo(c, i, t, e, s, n) {
|
|
|
208
208
|
for (let F = h; F < f; F += 6) {
|
|
209
209
|
let O = ~~((t[F + 2 * I] - u) / T);
|
|
210
210
|
O >= Te && (O = Te - 1);
|
|
211
|
-
const y =
|
|
211
|
+
const y = Se[O];
|
|
212
212
|
y.count++, zi(F, t, y.bounds);
|
|
213
213
|
}
|
|
214
|
-
const p =
|
|
214
|
+
const p = Se[Te - 1];
|
|
215
215
|
Kn(p.bounds, p.rightCacheBounds);
|
|
216
216
|
for (let F = Te - 2; F >= 0; F--) {
|
|
217
|
-
const R =
|
|
217
|
+
const R = Se[F], S = Se[F + 1];
|
|
218
218
|
Jn(R.bounds, S.rightCacheBounds, R.rightCacheBounds);
|
|
219
219
|
}
|
|
220
220
|
let m = 0;
|
|
221
221
|
for (let F = 0; F < Te - 1; F++) {
|
|
222
|
-
const R =
|
|
222
|
+
const R = Se[F], S = R.count, O = R.bounds, w = Se[F + 1].rightCacheBounds;
|
|
223
223
|
S !== 0 && (m === 0 ? Kn(O, ki) : Jn(O, ki, ki)), m += S;
|
|
224
224
|
let L = 0, b = 0;
|
|
225
225
|
m !== 0 && (L = di(ki) / a);
|
|
@@ -362,7 +362,7 @@ function Qo(c, i) {
|
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
|
-
class
|
|
365
|
+
class Ae {
|
|
366
366
|
constructor() {
|
|
367
367
|
this.min = 1 / 0, this.max = -1 / 0;
|
|
368
368
|
}
|
|
@@ -386,7 +386,7 @@ class ge {
|
|
|
386
386
|
return this.min > i.max || i.min > this.max;
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
|
-
|
|
389
|
+
Ae.prototype.setFromBox = function() {
|
|
390
390
|
const c = new Q();
|
|
391
391
|
return function(t, e) {
|
|
392
392
|
const s = e.min, n = e.max;
|
|
@@ -459,7 +459,7 @@ function Zs(c) {
|
|
|
459
459
|
}
|
|
460
460
|
class ne extends ii {
|
|
461
461
|
constructor(...i) {
|
|
462
|
-
super(...i), this.isExtendedTriangle = !0, this.satAxes = new Array(4).fill().map(() => new Q()), this.satBounds = new Array(4).fill().map(() => new
|
|
462
|
+
super(...i), this.isExtendedTriangle = !0, this.satAxes = new Array(4).fill().map(() => new Q()), this.satBounds = new Array(4).fill().map(() => new Ae()), this.points = [this.a, this.b, this.c], this.sphere = new So(), this.plane = new Dn(), this.needsUpdate = !0;
|
|
463
463
|
}
|
|
464
464
|
intersectsSphere(i) {
|
|
465
465
|
return Jo(i, this);
|
|
@@ -488,7 +488,7 @@ ne.prototype.closestPointToSegment = function() {
|
|
|
488
488
|
};
|
|
489
489
|
}();
|
|
490
490
|
ne.prototype.intersectsTriangle = function() {
|
|
491
|
-
const c = new ne(), i = new Array(3), t = new Array(3), e = new
|
|
491
|
+
const c = new ne(), i = new Array(3), t = new Array(3), e = new Ae(), s = new Ae(), n = new Q(), r = new Q(), o = new Q(), a = new Q(), l = new Q(), h = new Ee(), f = new Ee(), I = new Ee(), u = new Q();
|
|
492
492
|
function d(E, T, p) {
|
|
493
493
|
const m = E.points;
|
|
494
494
|
let F = 0, R = -1;
|
|
@@ -596,7 +596,7 @@ ne.prototype.distanceToTriangle = function() {
|
|
|
596
596
|
}();
|
|
597
597
|
class Bt {
|
|
598
598
|
constructor(i, t, e) {
|
|
599
|
-
this.isOrientedBox = !0, this.min = new Q(), this.max = new Q(), this.matrix = new pe(), this.invMatrix = new pe(), this.points = new Array(8).fill().map(() => new Q()), this.satAxes = new Array(3).fill().map(() => new Q()), this.satBounds = new Array(3).fill().map(() => new
|
|
599
|
+
this.isOrientedBox = !0, this.min = new Q(), this.max = new Q(), this.matrix = new pe(), this.invMatrix = new pe(), this.points = new Array(8).fill().map(() => new Q()), this.satAxes = new Array(3).fill().map(() => new Q()), this.satBounds = new Array(3).fill().map(() => new Ae()), this.alignedSatBounds = new Array(3).fill().map(() => new Ae()), this.needsUpdate = !1, i && this.min.copy(i), t && this.max.copy(t), e && this.matrix.copy(e);
|
|
600
600
|
}
|
|
601
601
|
set(i, t, e) {
|
|
602
602
|
this.min.copy(i), this.max.copy(t), this.matrix.copy(e), this.needsUpdate = !0;
|
|
@@ -624,7 +624,7 @@ Bt.prototype.update = /* @__PURE__ */ function() {
|
|
|
624
624
|
};
|
|
625
625
|
}();
|
|
626
626
|
Bt.prototype.intersectsBox = function() {
|
|
627
|
-
const c = new
|
|
627
|
+
const c = new Ae();
|
|
628
628
|
return function(t) {
|
|
629
629
|
this.needsUpdate && this.update();
|
|
630
630
|
const e = t.min, s = t.max, n = this.satBounds, r = this.satAxes, o = this.alignedSatBounds;
|
|
@@ -639,7 +639,7 @@ Bt.prototype.intersectsBox = function() {
|
|
|
639
639
|
};
|
|
640
640
|
}();
|
|
641
641
|
Bt.prototype.intersectsTriangle = function() {
|
|
642
|
-
const c = new ne(), i = new Array(3), t = new
|
|
642
|
+
const c = new ne(), i = new Array(3), t = new Ae(), e = new Ae(), s = new Q();
|
|
643
643
|
return function(r) {
|
|
644
644
|
this.needsUpdate && this.update(), r.isExtendedTriangle ? r.needsUpdate && r.update() : (c.copy(r), c.update(), r = c);
|
|
645
645
|
const o = this.satBounds, a = this.satAxes;
|
|
@@ -739,10 +739,10 @@ class ea extends vn {
|
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
741
|
const $t = /* @__PURE__ */ new ea();
|
|
742
|
-
function
|
|
742
|
+
function zt(c, i) {
|
|
743
743
|
return i[c + 15] === 65535;
|
|
744
744
|
}
|
|
745
|
-
function
|
|
745
|
+
function kt(c, i) {
|
|
746
746
|
return i[c + 6];
|
|
747
747
|
}
|
|
748
748
|
function Zt(c, i) {
|
|
@@ -770,44 +770,44 @@ class ia {
|
|
|
770
770
|
}
|
|
771
771
|
}
|
|
772
772
|
const Ft = new ia();
|
|
773
|
-
let
|
|
773
|
+
let Pe, si;
|
|
774
774
|
const ze = [], Wi = /* @__PURE__ */ new vn(() => new ae());
|
|
775
775
|
function sa(c, i, t, e, s, n) {
|
|
776
|
-
|
|
776
|
+
Pe = Wi.getPrimitive(), si = Wi.getPrimitive(), ze.push(Pe, si), Ft.setBuffer(c._roots[i]);
|
|
777
777
|
const r = dn(0, c.geometry, t, e, s, n);
|
|
778
|
-
Ft.clearBuffer(), Wi.releasePrimitive(
|
|
778
|
+
Ft.clearBuffer(), Wi.releasePrimitive(Pe), Wi.releasePrimitive(si), ze.pop(), ze.pop();
|
|
779
779
|
const o = ze.length;
|
|
780
|
-
return o > 0 && (si = ze[o - 1],
|
|
780
|
+
return o > 0 && (si = ze[o - 1], Pe = ze[o - 2]), r;
|
|
781
781
|
}
|
|
782
782
|
function dn(c, i, t, e, s = null, n = 0, r = 0) {
|
|
783
783
|
const { float32Array: o, uint16Array: a, uint32Array: l } = Ft;
|
|
784
784
|
let h = c * 2;
|
|
785
|
-
if (
|
|
786
|
-
const I =
|
|
787
|
-
return Nt(c, o,
|
|
785
|
+
if (zt(h, a)) {
|
|
786
|
+
const I = kt(c, l), u = Zt(h, a);
|
|
787
|
+
return Nt(c, o, Pe), e(I, u, !1, r, n + c, Pe);
|
|
788
788
|
} else {
|
|
789
789
|
let b = function(N) {
|
|
790
790
|
const { uint16Array: M, uint32Array: g } = Ft;
|
|
791
791
|
let v = N * 2;
|
|
792
|
-
for (; !
|
|
792
|
+
for (; !zt(v, M); )
|
|
793
793
|
N = jt(N), v = N * 2;
|
|
794
|
-
return
|
|
794
|
+
return kt(N, g);
|
|
795
795
|
}, Y = function(N) {
|
|
796
796
|
const { uint16Array: M, uint32Array: g } = Ft;
|
|
797
797
|
let v = N * 2;
|
|
798
|
-
for (; !
|
|
798
|
+
for (; !zt(v, M); )
|
|
799
799
|
N = qt(N, g), v = N * 2;
|
|
800
|
-
return
|
|
800
|
+
return kt(N, g) + Zt(v, M);
|
|
801
801
|
};
|
|
802
802
|
const I = jt(c), u = qt(c, l);
|
|
803
803
|
let d = I, E = u, T, p, m, F;
|
|
804
|
-
if (s && (m =
|
|
804
|
+
if (s && (m = Pe, F = si, Nt(d, o, m), Nt(E, o, F), T = s(m), p = s(F), p < T)) {
|
|
805
805
|
d = u, E = I;
|
|
806
806
|
const N = T;
|
|
807
807
|
T = p, p = N, m = F;
|
|
808
808
|
}
|
|
809
|
-
m || (m =
|
|
810
|
-
const R =
|
|
809
|
+
m || (m = Pe, Nt(d, o, m));
|
|
810
|
+
const R = zt(d * 2, a), S = t(m, R, T, r + 1, n + d);
|
|
811
811
|
let O;
|
|
812
812
|
if (S === jn) {
|
|
813
813
|
const N = b(d), g = Y(d) - N;
|
|
@@ -825,7 +825,7 @@ function dn(c, i, t, e, s = null, n = 0, r = 0) {
|
|
|
825
825
|
if (O)
|
|
826
826
|
return !0;
|
|
827
827
|
F = si, Nt(E, o, F);
|
|
828
|
-
const y =
|
|
828
|
+
const y = zt(E * 2, a), w = t(F, y, p, r + 1, n + E);
|
|
829
829
|
let L;
|
|
830
830
|
if (w === jn) {
|
|
831
831
|
const N = b(E), g = Y(E) - N;
|
|
@@ -994,8 +994,8 @@ function da(c, i, t, e, s) {
|
|
|
994
994
|
}
|
|
995
995
|
function En(c, i, t, e, s) {
|
|
996
996
|
const { float32Array: n, uint16Array: r, uint32Array: o } = Ft, a = c * 2;
|
|
997
|
-
if (
|
|
998
|
-
const h =
|
|
997
|
+
if (zt(a, r)) {
|
|
998
|
+
const h = kt(c, o), f = Zt(a, r);
|
|
999
999
|
aa(i, t, e, h, f, s);
|
|
1000
1000
|
} else {
|
|
1001
1001
|
const h = jt(c);
|
|
@@ -1013,8 +1013,8 @@ function pa(c, i, t, e) {
|
|
|
1013
1013
|
function pn(c, i, t, e) {
|
|
1014
1014
|
const { float32Array: s, uint16Array: n, uint32Array: r } = Ft;
|
|
1015
1015
|
let o = c * 2;
|
|
1016
|
-
if (
|
|
1017
|
-
const l =
|
|
1016
|
+
if (zt(o, n)) {
|
|
1017
|
+
const l = kt(c, r), h = Zt(o, n);
|
|
1018
1018
|
return ca(i, t, e, l, h);
|
|
1019
1019
|
} else {
|
|
1020
1020
|
const l = to(c, r), h = Ea[l], I = e.direction[h] >= 0;
|
|
@@ -1042,8 +1042,8 @@ function Ca(c, i, t, e) {
|
|
|
1042
1042
|
function Cn(c, i, t, e, s = null) {
|
|
1043
1043
|
const { float32Array: n, uint16Array: r, uint32Array: o } = Ft;
|
|
1044
1044
|
let a = c * 2;
|
|
1045
|
-
if (s === null && (t.boundingBox || t.computeBoundingBox(), or.set(t.boundingBox.min, t.boundingBox.max, e), s = or),
|
|
1046
|
-
const h = i.geometry, f = h.index, I = h.attributes.position, u = t.index, d = t.attributes.position, E =
|
|
1045
|
+
if (s === null && (t.boundingBox || t.computeBoundingBox(), or.set(t.boundingBox.min, t.boundingBox.max, e), s = or), zt(a, r)) {
|
|
1046
|
+
const h = i.geometry, f = h.index, I = h.attributes.position, u = t.index, d = t.attributes.position, E = kt(c, o), T = Zt(a, r);
|
|
1047
1047
|
if (pi.copy(e).invert(), t.boundsTree)
|
|
1048
1048
|
return Nt(c, n, Qi), Qi.matrix.copy(pi), Qi.needsUpdate = !0, t.boundsTree.shapecast({
|
|
1049
1049
|
intersectsBounds: (m) => Qi.intersectsBox(m),
|
|
@@ -1157,8 +1157,8 @@ function Sa(c, i, t, e, s) {
|
|
|
1157
1157
|
}
|
|
1158
1158
|
function Tn(c, i, t, e, s) {
|
|
1159
1159
|
const { float32Array: n, uint16Array: r, uint32Array: o } = Ft, a = c * 2;
|
|
1160
|
-
if (
|
|
1161
|
-
const h =
|
|
1160
|
+
if (zt(a, r)) {
|
|
1161
|
+
const h = kt(c, o), f = Zt(a, r);
|
|
1162
1162
|
ua(i, t, e, h, f, s);
|
|
1163
1163
|
} else {
|
|
1164
1164
|
const h = jt(c);
|
|
@@ -1176,8 +1176,8 @@ function Na(c, i, t, e) {
|
|
|
1176
1176
|
function mn(c, i, t, e) {
|
|
1177
1177
|
const { float32Array: s, uint16Array: n, uint32Array: r } = Ft;
|
|
1178
1178
|
let o = c * 2;
|
|
1179
|
-
if (
|
|
1180
|
-
const l =
|
|
1179
|
+
if (zt(o, n)) {
|
|
1180
|
+
const l = kt(c, r), h = Zt(o, n);
|
|
1181
1181
|
return fa(i, t, e, l, h);
|
|
1182
1182
|
} else {
|
|
1183
1183
|
const l = to(c, r), h = Oa[l], I = e.direction[h] >= 0;
|
|
@@ -1205,8 +1205,8 @@ function ya(c, i, t, e) {
|
|
|
1205
1205
|
function Rn(c, i, t, e, s = null) {
|
|
1206
1206
|
const { float32Array: n, uint16Array: r, uint32Array: o } = Ft;
|
|
1207
1207
|
let a = c * 2;
|
|
1208
|
-
if (s === null && (t.boundingBox || t.computeBoundingBox(), lr.set(t.boundingBox.min, t.boundingBox.max, e), s = lr),
|
|
1209
|
-
const h = i.geometry, f = h.index, I = h.attributes.position, u = t.index, d = t.attributes.position, E =
|
|
1208
|
+
if (s === null && (t.boundingBox || t.computeBoundingBox(), lr.set(t.boundingBox.min, t.boundingBox.max, e), s = lr), zt(a, r)) {
|
|
1209
|
+
const h = i.geometry, f = h.index, I = h.attributes.position, u = t.index, d = t.attributes.position, E = kt(c, o), T = Zt(a, r);
|
|
1210
1210
|
if (Ti.copy(e).invert(), t.boundsTree)
|
|
1211
1211
|
return Nt(c, n, ts), ts.matrix.copy(Ti), ts.needsUpdate = !0, t.boundsTree.shapecast({
|
|
1212
1212
|
intersectsBounds: (m) => ts.intersectsBox(m),
|
|
@@ -1230,12 +1230,12 @@ function Rn(c, i, t, e, s = null) {
|
|
|
1230
1230
|
return Nt(h, n, Ji), !!(s.intersectsBox(Ji) && Rn(h, i, t, e, s) || (Nt(f, n, Ji), s.intersectsBox(Ji) && Rn(f, i, t, e, s)));
|
|
1231
1231
|
}
|
|
1232
1232
|
}
|
|
1233
|
-
const es = /* @__PURE__ */ new pe(), Qs = /* @__PURE__ */ new Bt(), mi = /* @__PURE__ */ new Bt(), La = /* @__PURE__ */ new Q(),
|
|
1233
|
+
const es = /* @__PURE__ */ new pe(), Qs = /* @__PURE__ */ new Bt(), mi = /* @__PURE__ */ new Bt(), La = /* @__PURE__ */ new Q(), Pa = /* @__PURE__ */ new Q(), _a = /* @__PURE__ */ new Q(), wa = /* @__PURE__ */ new Q();
|
|
1234
1234
|
function Ma(c, i, t, e = {}, s = {}, n = 0, r = 1 / 0) {
|
|
1235
1235
|
i.boundingBox || i.computeBoundingBox(), Qs.set(i.boundingBox.min, i.boundingBox.max, t), Qs.needsUpdate = !0;
|
|
1236
1236
|
const o = c.geometry, a = o.attributes.position, l = o.index, h = i.attributes.position, f = i.index, I = $t.getPrimitive(), u = $t.getPrimitive();
|
|
1237
|
-
let d = La, E =
|
|
1238
|
-
s && (T =
|
|
1237
|
+
let d = La, E = Pa, T = null, p = null;
|
|
1238
|
+
s && (T = _a, p = wa);
|
|
1239
1239
|
let m = 1 / 0, F = null, R = null;
|
|
1240
1240
|
return es.copy(t).invert(), mi.matrix.copy(es), c.shapecast(
|
|
1241
1241
|
{
|
|
@@ -1281,7 +1281,7 @@ function Ma(c, i, t, e = {}, s = {}, n = 0, r = 1 / 0) {
|
|
|
1281
1281
|
function Da() {
|
|
1282
1282
|
return typeof SharedArrayBuffer < "u";
|
|
1283
1283
|
}
|
|
1284
|
-
const wi = new Ft.constructor(), ps = new Ft.constructor(),
|
|
1284
|
+
const wi = new Ft.constructor(), ps = new Ft.constructor(), ye = new vn(() => new ae()), qe = new ae(), Qe = new ae(), Ks = new ae(), Js = new ae();
|
|
1285
1285
|
let tn = !1;
|
|
1286
1286
|
function ba(c, i, t, e) {
|
|
1287
1287
|
if (tn)
|
|
@@ -1292,7 +1292,7 @@ function ba(c, i, t, e) {
|
|
|
1292
1292
|
const l = new pe().copy(t).invert();
|
|
1293
1293
|
for (let h = 0, f = s.length; h < f; h++) {
|
|
1294
1294
|
wi.setBuffer(s[h]), a = 0;
|
|
1295
|
-
const I =
|
|
1295
|
+
const I = ye.getPrimitive();
|
|
1296
1296
|
Nt(0, wi.float32Array, I), I.applyMatrix4(l);
|
|
1297
1297
|
for (let u = 0, d = n.length; u < d && (ps.setBuffer(n[h]), r = Kt(
|
|
1298
1298
|
0,
|
|
@@ -1307,7 +1307,7 @@ function ba(c, i, t, e) {
|
|
|
1307
1307
|
I
|
|
1308
1308
|
), ps.clearBuffer(), a += n[u].length, !r); u++)
|
|
1309
1309
|
;
|
|
1310
|
-
if (
|
|
1310
|
+
if (ye.releasePrimitive(I), wi.clearBuffer(), o += s[h].length, r)
|
|
1311
1311
|
break;
|
|
1312
1312
|
}
|
|
1313
1313
|
return tn = !1, r;
|
|
@@ -1315,22 +1315,22 @@ function ba(c, i, t, e) {
|
|
|
1315
1315
|
function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
|
|
1316
1316
|
let f, I;
|
|
1317
1317
|
h ? (f = ps, I = wi) : (f = wi, I = ps);
|
|
1318
|
-
const u = f.float32Array, d = f.uint32Array, E = f.uint16Array, T = I.float32Array, p = I.uint32Array, m = I.uint16Array, F = c * 2, R = i * 2, S =
|
|
1318
|
+
const u = f.float32Array, d = f.uint32Array, E = f.uint16Array, T = I.float32Array, p = I.uint32Array, m = I.uint16Array, F = c * 2, R = i * 2, S = zt(F, E), O = zt(R, m);
|
|
1319
1319
|
let y = !1;
|
|
1320
1320
|
if (O && S)
|
|
1321
1321
|
h ? y = s(
|
|
1322
|
-
|
|
1322
|
+
kt(i, p),
|
|
1323
1323
|
Zt(i * 2, m),
|
|
1324
|
-
|
|
1324
|
+
kt(c, d),
|
|
1325
1325
|
Zt(c * 2, E),
|
|
1326
1326
|
a,
|
|
1327
1327
|
r + i,
|
|
1328
1328
|
o,
|
|
1329
1329
|
n + c
|
|
1330
1330
|
) : y = s(
|
|
1331
|
-
|
|
1331
|
+
kt(c, d),
|
|
1332
1332
|
Zt(c * 2, E),
|
|
1333
|
-
|
|
1333
|
+
kt(i, p),
|
|
1334
1334
|
Zt(i * 2, m),
|
|
1335
1335
|
o,
|
|
1336
1336
|
n + c,
|
|
@@ -1338,7 +1338,7 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
|
|
|
1338
1338
|
r + i
|
|
1339
1339
|
);
|
|
1340
1340
|
else if (O) {
|
|
1341
|
-
const w =
|
|
1341
|
+
const w = ye.getPrimitive();
|
|
1342
1342
|
Nt(i, T, w), w.applyMatrix4(t);
|
|
1343
1343
|
const L = jt(c), b = qt(c, d);
|
|
1344
1344
|
Nt(L, u, qe), Nt(b, u, Qe);
|
|
@@ -1367,7 +1367,7 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
|
|
|
1367
1367
|
o + 1,
|
|
1368
1368
|
w,
|
|
1369
1369
|
!h
|
|
1370
|
-
),
|
|
1370
|
+
), ye.releasePrimitive(w);
|
|
1371
1371
|
} else {
|
|
1372
1372
|
const w = jt(i), L = qt(i, p);
|
|
1373
1373
|
Nt(w, T, Ks), Nt(L, T, Js);
|
|
@@ -1414,7 +1414,7 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
|
|
|
1414
1414
|
h
|
|
1415
1415
|
);
|
|
1416
1416
|
else {
|
|
1417
|
-
const N =
|
|
1417
|
+
const N = ye.getPrimitive();
|
|
1418
1418
|
N.copy(Ks).applyMatrix4(t);
|
|
1419
1419
|
const M = jt(c), g = qt(c, d);
|
|
1420
1420
|
Nt(M, u, qe), Nt(g, u, Qe);
|
|
@@ -1443,7 +1443,7 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
|
|
|
1443
1443
|
o + 1,
|
|
1444
1444
|
N,
|
|
1445
1445
|
!h
|
|
1446
|
-
),
|
|
1446
|
+
), ye.releasePrimitive(N);
|
|
1447
1447
|
}
|
|
1448
1448
|
else if (Y)
|
|
1449
1449
|
if (S)
|
|
@@ -1461,7 +1461,7 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
|
|
|
1461
1461
|
h
|
|
1462
1462
|
);
|
|
1463
1463
|
else {
|
|
1464
|
-
const N =
|
|
1464
|
+
const N = ye.getPrimitive();
|
|
1465
1465
|
N.copy(Js).applyMatrix4(t);
|
|
1466
1466
|
const M = jt(c), g = qt(c, d);
|
|
1467
1467
|
Nt(M, u, qe), Nt(g, u, Qe);
|
|
@@ -1490,7 +1490,7 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
|
|
|
1490
1490
|
o + 1,
|
|
1491
1491
|
N,
|
|
1492
1492
|
!h
|
|
1493
|
-
),
|
|
1493
|
+
), ye.releasePrimitive(N);
|
|
1494
1494
|
}
|
|
1495
1495
|
}
|
|
1496
1496
|
return y;
|
|
@@ -1765,7 +1765,7 @@ class j {
|
|
|
1765
1765
|
this.handlers.length = 0;
|
|
1766
1766
|
}
|
|
1767
1767
|
}
|
|
1768
|
-
class
|
|
1768
|
+
class _e {
|
|
1769
1769
|
constructor() {
|
|
1770
1770
|
/** Triggers all the callbacks assigned to this event. */
|
|
1771
1771
|
C(this, "trigger", async (i) => {
|
|
@@ -2542,8 +2542,8 @@ function qa(c) {
|
|
|
2542
2542
|
while (Ct !== ft.edge);
|
|
2543
2543
|
const Ht = n.length - 2;
|
|
2544
2544
|
for (let Dt = 1, A = Ht; Dt <= A; Dt++) {
|
|
2545
|
-
const X = n[0].vertex,
|
|
2546
|
-
r.push(X.point.x, X.point.y, X.point.z), r.push(
|
|
2545
|
+
const X = n[0].vertex, z = n[Dt + 0].vertex, _ = n[Dt + 1].vertex;
|
|
2546
|
+
r.push(X.point.x, X.point.y, X.point.z), r.push(z.point.x, z.point.y, z.point.z), r.push(_.point.x, _.point.y, _.point.z);
|
|
2547
2547
|
}
|
|
2548
2548
|
}
|
|
2549
2549
|
const o = new D.Vector3(), a = new D.Vector3(), l = new D.Vector3(), h = new D.Vector3(), f = new D.Vector3(), I = new D.Vector3(), u = new D.Vector3(), d = new D.Vector3();
|
|
@@ -2590,15 +2590,15 @@ class pr {
|
|
|
2590
2590
|
return i.transparent && i.opacity < 1;
|
|
2591
2591
|
}
|
|
2592
2592
|
}
|
|
2593
|
-
const
|
|
2593
|
+
const Pt = class Pt {
|
|
2594
2594
|
// Copied from three.js source
|
|
2595
2595
|
// Original source: http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript/21963136#21963136
|
|
2596
2596
|
static create() {
|
|
2597
2597
|
const i = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, s = Math.random() * 4294967295 | 0;
|
|
2598
|
-
return `${
|
|
2598
|
+
return `${Pt._lut[i & 255] + Pt._lut[i >> 8 & 255] + Pt._lut[i >> 16 & 255] + Pt._lut[i >> 24 & 255]}-${Pt._lut[t & 255]}${Pt._lut[t >> 8 & 255]}-${Pt._lut[t >> 16 & 15 | 64]}${Pt._lut[t >> 24 & 255]}-${Pt._lut[e & 63 | 128]}${Pt._lut[e >> 8 & 255]}-${Pt._lut[e >> 16 & 255]}${Pt._lut[e >> 24 & 255]}${Pt._lut[s & 255]}${Pt._lut[s >> 8 & 255]}${Pt._lut[s >> 16 & 255]}${Pt._lut[s >> 24 & 255]}`.toLowerCase();
|
|
2599
2599
|
}
|
|
2600
2600
|
static validate(i) {
|
|
2601
|
-
if (!
|
|
2601
|
+
if (!Pt._pattern.test(i))
|
|
2602
2602
|
throw new Error(
|
|
2603
2603
|
`${i} is not a valid UUID v4.
|
|
2604
2604
|
|
|
@@ -2608,8 +2608,8 @@ const _t = class _t {
|
|
|
2608
2608
|
);
|
|
2609
2609
|
}
|
|
2610
2610
|
};
|
|
2611
|
-
C(
|
|
2612
|
-
C(
|
|
2611
|
+
C(Pt, "_pattern", /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/), // prettier-ignore
|
|
2612
|
+
C(Pt, "_lut", [
|
|
2613
2613
|
"00",
|
|
2614
2614
|
"01",
|
|
2615
2615
|
"02",
|
|
@@ -2867,7 +2867,7 @@ C(_t, "_lut", [
|
|
|
2867
2867
|
"fe",
|
|
2868
2868
|
"ff"
|
|
2869
2869
|
]);
|
|
2870
|
-
let oe =
|
|
2870
|
+
let oe = Pt;
|
|
2871
2871
|
class Th extends At {
|
|
2872
2872
|
constructor(t, e) {
|
|
2873
2873
|
super(t);
|
|
@@ -3137,7 +3137,7 @@ const Fs = class Fs {
|
|
|
3137
3137
|
/**
|
|
3138
3138
|
* The version of the @thatopen/components library.
|
|
3139
3139
|
*/
|
|
3140
|
-
C(Fs, "release", "2.3.
|
|
3140
|
+
C(Fs, "release", "2.3.14");
|
|
3141
3141
|
let Cs = Fs;
|
|
3142
3142
|
class Qa extends xn {
|
|
3143
3143
|
constructor() {
|
|
@@ -3615,7 +3615,7 @@ const ht = {
|
|
|
3615
3615
|
function ve(c) {
|
|
3616
3616
|
return c.isPerspectiveCamera;
|
|
3617
3617
|
}
|
|
3618
|
-
function
|
|
3618
|
+
function Ne(c) {
|
|
3619
3619
|
return c.isOrthographicCamera;
|
|
3620
3620
|
}
|
|
3621
3621
|
const Je = Math.PI * 2, Cr = Math.PI / 2, eo = 1e-5, Ri = Math.PI / 180;
|
|
@@ -3669,7 +3669,7 @@ function rn(c, i) {
|
|
|
3669
3669
|
}), i.x /= c.length, i.y /= c.length;
|
|
3670
3670
|
}
|
|
3671
3671
|
function on(c, i) {
|
|
3672
|
-
return
|
|
3672
|
+
return Ne(c) ? (console.warn(`${i} is not supported in OrthographicCamera`), !0) : !1;
|
|
3673
3673
|
}
|
|
3674
3674
|
class ic {
|
|
3675
3675
|
constructor() {
|
|
@@ -3812,7 +3812,7 @@ class vt extends ic {
|
|
|
3812
3812
|
if (ve(this._camera)) {
|
|
3813
3813
|
const L = ut.copy(this._camera.position).sub(this._target), b = this._camera.getEffectiveFOV() * Ri, Y = L.length() * Math.tan(b * 0.5);
|
|
3814
3814
|
y = this.truckSpeed * R * Y / this._elementRect.height, w = this.truckSpeed * S * Y / this._elementRect.height;
|
|
3815
|
-
} else if (
|
|
3815
|
+
} else if (Ne(this._camera)) {
|
|
3816
3816
|
const L = this._camera;
|
|
3817
3817
|
y = R * (L.right - L.left) / L.zoom / this._elementRect.width, w = S * (L.top - L.bottom) / L.zoom / this._elementRect.height;
|
|
3818
3818
|
} else
|
|
@@ -3836,10 +3836,10 @@ class vt extends ic {
|
|
|
3836
3836
|
left: H.ROTATE,
|
|
3837
3837
|
middle: H.DOLLY,
|
|
3838
3838
|
right: H.TRUCK,
|
|
3839
|
-
wheel: ve(this._camera) ? H.DOLLY :
|
|
3839
|
+
wheel: ve(this._camera) ? H.DOLLY : Ne(this._camera) ? H.ZOOM : H.NONE
|
|
3840
3840
|
}, this.touches = {
|
|
3841
3841
|
one: H.TOUCH_ROTATE,
|
|
3842
|
-
two: ve(this._camera) ? H.TOUCH_DOLLY_TRUCK :
|
|
3842
|
+
two: ve(this._camera) ? H.TOUCH_DOLLY_TRUCK : Ne(this._camera) ? H.TOUCH_ZOOM_TRUCK : H.NONE,
|
|
3843
3843
|
three: H.TOUCH_TRUCK
|
|
3844
3844
|
};
|
|
3845
3845
|
const e = new lt.Vector2(), s = new lt.Vector2(), n = new lt.Vector2(), r = (R) => {
|
|
@@ -4425,7 +4425,7 @@ class vt extends ic {
|
|
|
4425
4425
|
if (ve(this._camera)) {
|
|
4426
4426
|
const m = this.getDistanceToFitBox(T.x, T.y, T.z, e);
|
|
4427
4427
|
a.push(this.moveTo(p.x, p.y, p.z, t)), a.push(this.dollyTo(m, t)), a.push(this.setFocalOffset(0, 0, 0, t));
|
|
4428
|
-
} else if (
|
|
4428
|
+
} else if (Ne(this._camera)) {
|
|
4429
4429
|
const m = this._camera, F = m.right - m.left, R = m.top - m.bottom, S = e ? Math.max(F / T.x, R / T.y) : Math.min(F / T.x, R / T.y);
|
|
4430
4430
|
a.push(this.moveTo(p.x, p.y, p.z, t)), a.push(this.zoomTo(S, t)), a.push(this.setFocalOffset(0, 0, 0, t));
|
|
4431
4431
|
}
|
|
@@ -4442,7 +4442,7 @@ class vt extends ic {
|
|
|
4442
4442
|
if (e.push(this.moveTo(n.center.x, n.center.y, n.center.z, t)), ve(this._camera)) {
|
|
4443
4443
|
const r = this.getDistanceToFitSphere(n.radius);
|
|
4444
4444
|
e.push(this.dollyTo(r, t));
|
|
4445
|
-
} else if (
|
|
4445
|
+
} else if (Ne(this._camera)) {
|
|
4446
4446
|
const r = this._camera.right - this._camera.left, o = this._camera.top - this._camera.bottom, a = 2 * n.radius, l = Math.min(r / a, o / a);
|
|
4447
4447
|
e.push(this.zoomTo(l, t));
|
|
4448
4448
|
}
|
|
@@ -4745,7 +4745,7 @@ class vt extends ic {
|
|
|
4745
4745
|
this._boundary.clampPoint(R, R);
|
|
4746
4746
|
const y = Et.subVectors(R, this._targetEnd);
|
|
4747
4747
|
this._targetEnd.copy(R), this._target.add(y), this._changedDolly -= f, gt(this._changedDolly) && (this._changedDolly = 0);
|
|
4748
|
-
} else if (
|
|
4748
|
+
} else if (Ne(this._camera) && this._changedZoom !== 0) {
|
|
4749
4749
|
const f = this._zoom - this._lastZoom, I = this._camera, u = ut.set(this._dollyControlCoord.x, this._dollyControlCoord.y, (I.near + I.far) / (I.near - I.far)).unproject(I), d = Et.set(0, 0, -1).applyQuaternion(I.quaternion), E = ti.copy(u).add(d.multiplyScalar(-u.dot(I.up))), p = -(this._zoom - f - this._zoom) / this._zoom, m = this._getCameraDirection(Fi), F = this._targetEnd.dot(m), R = ut.copy(this._targetEnd).lerp(E, p), S = R.dot(m), O = m.multiplyScalar(S - F);
|
|
4750
4750
|
R.sub(O), this._boundary.clampPoint(R, R);
|
|
4751
4751
|
const y = Et.subVectors(R, this._targetEnd);
|
|
@@ -4860,7 +4860,7 @@ class vt extends ic {
|
|
|
4860
4860
|
if (ve(this._camera)) {
|
|
4861
4861
|
const i = this._camera, t = i.near, e = i.getEffectiveFOV() * Ri, s = Math.tan(e * 0.5) * t, n = s * i.aspect;
|
|
4862
4862
|
this._nearPlaneCorners[0].set(-n, -s, 0), this._nearPlaneCorners[1].set(n, -s, 0), this._nearPlaneCorners[2].set(n, s, 0), this._nearPlaneCorners[3].set(-n, s, 0);
|
|
4863
|
-
} else if (
|
|
4863
|
+
} else if (Ne(this._camera)) {
|
|
4864
4864
|
const i = this._camera, t = 1 / i.zoom, e = i.left * t, s = i.right * t, n = i.top * t, r = i.bottom * t;
|
|
4865
4865
|
this._nearPlaneCorners[0].set(e, n, 0), this._nearPlaneCorners[1].set(s, n, 0), this._nearPlaneCorners[2].set(s, r, 0), this._nearPlaneCorners[3].set(e, r, 0);
|
|
4866
4866
|
}
|
|
@@ -5296,7 +5296,7 @@ class lc {
|
|
|
5296
5296
|
* meshes that are currently visible, and the ones that were visible
|
|
5297
5297
|
* just before but not anymore.
|
|
5298
5298
|
*/
|
|
5299
|
-
C(this, "onViewUpdated", new
|
|
5299
|
+
C(this, "onViewUpdated", new _e());
|
|
5300
5300
|
/**
|
|
5301
5301
|
* Whether this renderer is active or not. If not, it won't render anything.
|
|
5302
5302
|
*/
|
|
@@ -6434,11 +6434,11 @@ const ys = class ys extends At {
|
|
|
6434
6434
|
*/
|
|
6435
6435
|
C(ys, "uuid", "d1e814d5-b81c-4452-87a2-f039375e0489");
|
|
6436
6436
|
let Or = ys;
|
|
6437
|
-
const xe = new yo(), bt = new Q(),
|
|
6437
|
+
const xe = new yo(), bt = new Q(), Oe = new Q(), Ot = new de(), Nr = {
|
|
6438
6438
|
X: new Q(1, 0, 0),
|
|
6439
6439
|
Y: new Q(0, 1, 0),
|
|
6440
6440
|
Z: new Q(0, 0, 1)
|
|
6441
|
-
}, un = { type: "change" }, yr = { type: "mouseDown" }, Lr = { type: "mouseUp", mode: null },
|
|
6441
|
+
}, un = { type: "change" }, yr = { type: "mouseDown" }, Lr = { type: "mouseUp", mode: null }, Pr = { type: "objectChange" };
|
|
6442
6442
|
class pc extends In {
|
|
6443
6443
|
constructor(i, t) {
|
|
6444
6444
|
super(), t === void 0 && (console.warn('THREE.TransformControls: The second parameter "domElement" is now mandatory.'), t = document), this.isTransformControls = !0, this.visible = !1, this.domElement = t, this.domElement.style.touchAction = "none";
|
|
@@ -6493,17 +6493,17 @@ class pc extends In {
|
|
|
6493
6493
|
else if (e === "scale") {
|
|
6494
6494
|
if (t.search("XYZ") !== -1) {
|
|
6495
6495
|
let o = this.pointEnd.length() / this.pointStart.length();
|
|
6496
|
-
this.pointEnd.dot(this.pointStart) < 0 && (o *= -1),
|
|
6496
|
+
this.pointEnd.dot(this.pointStart) < 0 && (o *= -1), Oe.set(o, o, o);
|
|
6497
6497
|
} else
|
|
6498
|
-
bt.copy(this.pointStart),
|
|
6499
|
-
s.scale.copy(this._scaleStart).multiply(
|
|
6498
|
+
bt.copy(this.pointStart), Oe.copy(this.pointEnd), bt.applyQuaternion(this._worldQuaternionInv), Oe.applyQuaternion(this._worldQuaternionInv), Oe.divide(bt), t.search("X") === -1 && (Oe.x = 1), t.search("Y") === -1 && (Oe.y = 1), t.search("Z") === -1 && (Oe.z = 1);
|
|
6499
|
+
s.scale.copy(this._scaleStart).multiply(Oe), this.scaleSnap && (t.search("X") !== -1 && (s.scale.x = Math.round(s.scale.x / this.scaleSnap) * this.scaleSnap || this.scaleSnap), t.search("Y") !== -1 && (s.scale.y = Math.round(s.scale.y / this.scaleSnap) * this.scaleSnap || this.scaleSnap), t.search("Z") !== -1 && (s.scale.z = Math.round(s.scale.z / this.scaleSnap) * this.scaleSnap || this.scaleSnap));
|
|
6500
6500
|
} else if (e === "rotate") {
|
|
6501
6501
|
this._offset.copy(this.pointEnd).sub(this.pointStart);
|
|
6502
6502
|
const o = 20 / this.worldPosition.distanceTo(bt.setFromMatrixPosition(this.camera.matrixWorld));
|
|
6503
6503
|
let a = !1;
|
|
6504
6504
|
t === "XYZE" ? (this.rotationAxis.copy(this._offset).cross(this.eye).normalize(), this.rotationAngle = this._offset.dot(bt.copy(this.rotationAxis).cross(this.eye)) * o) : (t === "X" || t === "Y" || t === "Z") && (this.rotationAxis.copy(Nr[t]), bt.copy(Nr[t]), n === "local" && bt.applyQuaternion(this.worldQuaternion), bt.cross(this.eye), bt.length() === 0 ? a = !0 : this.rotationAngle = this._offset.dot(bt.normalize()) * o), (t === "E" || a) && (this.rotationAxis.copy(this.eye), this.rotationAngle = this.pointEnd.angleTo(this.pointStart), this._startNorm.copy(this.pointStart).normalize(), this._endNorm.copy(this.pointEnd).normalize(), this.rotationAngle *= this._endNorm.cross(this._startNorm).dot(this.eye) < 0 ? 1 : -1), this.rotationSnap && (this.rotationAngle = Math.round(this.rotationAngle / this.rotationSnap) * this.rotationSnap), n === "local" && t !== "E" && t !== "XYZE" ? (s.quaternion.copy(this._quaternionStart), s.quaternion.multiply(Ot.setFromAxisAngle(this.rotationAxis, this.rotationAngle)).normalize()) : (this.rotationAxis.applyQuaternion(this._parentQuaternionInv), s.quaternion.copy(Ot.setFromAxisAngle(this.rotationAxis, this.rotationAngle)), s.quaternion.multiply(this._quaternionStart).normalize());
|
|
6505
6505
|
}
|
|
6506
|
-
this.dispatchEvent(un), this.dispatchEvent(
|
|
6506
|
+
this.dispatchEvent(un), this.dispatchEvent(Pr);
|
|
6507
6507
|
}
|
|
6508
6508
|
}
|
|
6509
6509
|
pointerUp(i) {
|
|
@@ -6523,7 +6523,7 @@ class pc extends In {
|
|
|
6523
6523
|
return this.object = void 0, this.visible = !1, this.axis = null, this;
|
|
6524
6524
|
}
|
|
6525
6525
|
reset() {
|
|
6526
|
-
this.enabled && this.dragging && (this.object.position.copy(this._positionStart), this.object.quaternion.copy(this._quaternionStart), this.object.scale.copy(this._scaleStart), this.dispatchEvent(un), this.dispatchEvent(
|
|
6526
|
+
this.enabled && this.dragging && (this.object.position.copy(this._positionStart), this.object.quaternion.copy(this._quaternionStart), this.object.scale.copy(this._scaleStart), this.dispatchEvent(un), this.dispatchEvent(Pr), this.pointStart.copy(this.pointEnd));
|
|
6527
6527
|
}
|
|
6528
6528
|
getRaycaster() {
|
|
6529
6529
|
return xe;
|
|
@@ -6592,7 +6592,7 @@ function fn(c, i, t) {
|
|
|
6592
6592
|
return e[s];
|
|
6593
6593
|
return !1;
|
|
6594
6594
|
}
|
|
6595
|
-
const cs = new Lo(), mt = new Q(0, 1, 0),
|
|
6595
|
+
const cs = new Lo(), mt = new Q(0, 1, 0), _r = new Q(0, 0, 0), wr = new pe(), ls = new de(), Es = new de(), ue = new Q(), Mr = new pe(), Pi = new Q(1, 0, 0), Be = new Q(0, 1, 0), _i = new Q(0, 0, 1), hs = new Q(), Oi = new Q(), Ni = new Q();
|
|
6596
6596
|
class Ac extends In {
|
|
6597
6597
|
constructor() {
|
|
6598
6598
|
super(), this.isTransformControlsGizmo = !0, this.type = "TransformControlsGizmo";
|
|
@@ -6602,7 +6602,7 @@ class Ac extends In {
|
|
|
6602
6602
|
fog: !1,
|
|
6603
6603
|
toneMapped: !1,
|
|
6604
6604
|
transparent: !0
|
|
6605
|
-
}), t = new
|
|
6605
|
+
}), t = new Po({
|
|
6606
6606
|
depthTest: !1,
|
|
6607
6607
|
depthWrite: !1,
|
|
6608
6608
|
fog: !1,
|
|
@@ -6707,16 +6707,16 @@ class Ac extends In {
|
|
|
6707
6707
|
[new rt(new Gi(0.01, 2), s), null, null, null, "helper"]
|
|
6708
6708
|
],
|
|
6709
6709
|
DELTA: [
|
|
6710
|
-
[new
|
|
6710
|
+
[new Fe(R(), s), null, null, null, "helper"]
|
|
6711
6711
|
],
|
|
6712
6712
|
X: [
|
|
6713
|
-
[new
|
|
6713
|
+
[new Fe(p, s.clone()), [-1e3, 0, 0], null, [1e6, 1, 1], "helper"]
|
|
6714
6714
|
],
|
|
6715
6715
|
Y: [
|
|
6716
|
-
[new
|
|
6716
|
+
[new Fe(p, s.clone()), [0, -1e3, 0], [0, 0, Math.PI / 2], [1e6, 1, 1], "helper"]
|
|
6717
6717
|
],
|
|
6718
6718
|
Z: [
|
|
6719
|
-
[new
|
|
6719
|
+
[new Fe(p, s.clone()), [0, 0, -1e3], [0, -Math.PI / 2, 0], [1e6, 1, 1], "helper"]
|
|
6720
6720
|
]
|
|
6721
6721
|
}, w = {
|
|
6722
6722
|
XYZE: [
|
|
@@ -6736,11 +6736,11 @@ class Ac extends In {
|
|
|
6736
6736
|
]
|
|
6737
6737
|
}, L = {
|
|
6738
6738
|
AXIS: [
|
|
6739
|
-
[new
|
|
6739
|
+
[new Fe(p, s.clone()), [-1e3, 0, 0], null, [1e6, 1, 1], "helper"]
|
|
6740
6740
|
]
|
|
6741
6741
|
}, b = {
|
|
6742
6742
|
XYZE: [
|
|
6743
|
-
[new rt(new
|
|
6743
|
+
[new rt(new _o(0.25, 10, 8), e)]
|
|
6744
6744
|
],
|
|
6745
6745
|
X: [
|
|
6746
6746
|
[new rt(new Ii(0.5, 0.1, 4, 24), e), [0, 0, 0], [0, -Math.PI / 2, -Math.PI / 2]]
|
|
@@ -6809,13 +6809,13 @@ class Ac extends In {
|
|
|
6809
6809
|
]
|
|
6810
6810
|
}, M = {
|
|
6811
6811
|
X: [
|
|
6812
|
-
[new
|
|
6812
|
+
[new Fe(p, s.clone()), [-1e3, 0, 0], null, [1e6, 1, 1], "helper"]
|
|
6813
6813
|
],
|
|
6814
6814
|
Y: [
|
|
6815
|
-
[new
|
|
6815
|
+
[new Fe(p, s.clone()), [0, -1e3, 0], [0, 0, Math.PI / 2], [1e6, 1, 1], "helper"]
|
|
6816
6816
|
],
|
|
6817
6817
|
Z: [
|
|
6818
|
-
[new
|
|
6818
|
+
[new Fe(p, s.clone()), [0, 0, -1e3], [0, -Math.PI / 2, 0], [1e6, 1, 1], "helper"]
|
|
6819
6819
|
]
|
|
6820
6820
|
};
|
|
6821
6821
|
function g(v) {
|
|
@@ -6842,10 +6842,10 @@ class Ac extends In {
|
|
|
6842
6842
|
r.visible = !0, r.rotation.set(0, 0, 0), r.position.copy(this.worldPosition);
|
|
6843
6843
|
let o;
|
|
6844
6844
|
if (this.camera.isOrthographicCamera ? o = (this.camera.top - this.camera.bottom) / this.camera.zoom : o = this.worldPosition.distanceTo(this.cameraPosition) * Math.min(1.9 * Math.tan(Math.PI * this.camera.fov / 360) / this.camera.zoom, 7), r.scale.set(1, 1, 1).multiplyScalar(o * this.size / 4), r.tag === "helper") {
|
|
6845
|
-
r.visible = !1, r.name === "AXIS" ? (r.visible = !!this.axis, this.axis === "X" && (Ot.setFromEuler(cs.set(0, 0, 0)), r.quaternion.copy(e).multiply(Ot), Math.abs(mt.copy(
|
|
6845
|
+
r.visible = !1, r.name === "AXIS" ? (r.visible = !!this.axis, this.axis === "X" && (Ot.setFromEuler(cs.set(0, 0, 0)), r.quaternion.copy(e).multiply(Ot), Math.abs(mt.copy(Pi).applyQuaternion(e).dot(this.eye)) > 0.9 && (r.visible = !1)), this.axis === "Y" && (Ot.setFromEuler(cs.set(0, 0, Math.PI / 2)), r.quaternion.copy(e).multiply(Ot), Math.abs(mt.copy(Be).applyQuaternion(e).dot(this.eye)) > 0.9 && (r.visible = !1)), this.axis === "Z" && (Ot.setFromEuler(cs.set(0, Math.PI / 2, 0)), r.quaternion.copy(e).multiply(Ot), Math.abs(mt.copy(_i).applyQuaternion(e).dot(this.eye)) > 0.9 && (r.visible = !1)), this.axis === "XYZE" && (Ot.setFromEuler(cs.set(0, Math.PI / 2, 0)), mt.copy(this.rotationAxis), r.quaternion.setFromRotationMatrix(wr.lookAt(_r, mt, Be)), r.quaternion.multiply(Ot), r.visible = this.dragging), this.axis === "E" && (r.visible = !1)) : r.name === "START" ? (r.position.copy(this.worldPositionStart), r.visible = this.dragging) : r.name === "END" ? (r.position.copy(this.worldPosition), r.visible = this.dragging) : r.name === "DELTA" ? (r.position.copy(this.worldPositionStart), r.quaternion.copy(this.worldQuaternionStart), bt.set(1e-10, 1e-10, 1e-10).add(this.worldPositionStart).sub(this.worldPosition).multiplyScalar(-1), bt.applyQuaternion(this.worldQuaternionStart.clone().invert()), r.scale.copy(bt), r.visible = this.dragging) : (r.quaternion.copy(e), this.dragging ? r.position.copy(this.worldPositionStart) : r.position.copy(this.worldPosition), this.axis && (r.visible = this.axis.search(r.name) !== -1));
|
|
6846
6846
|
continue;
|
|
6847
6847
|
}
|
|
6848
|
-
r.quaternion.copy(e), this.mode === "translate" || this.mode === "scale" ? (r.name === "X" && Math.abs(mt.copy(
|
|
6848
|
+
r.quaternion.copy(e), this.mode === "translate" || this.mode === "scale" ? (r.name === "X" && Math.abs(mt.copy(Pi).applyQuaternion(e).dot(this.eye)) > 0.99 && (r.scale.set(1e-10, 1e-10, 1e-10), r.visible = !1), r.name === "Y" && Math.abs(mt.copy(Be).applyQuaternion(e).dot(this.eye)) > 0.99 && (r.scale.set(1e-10, 1e-10, 1e-10), r.visible = !1), r.name === "Z" && Math.abs(mt.copy(_i).applyQuaternion(e).dot(this.eye)) > 0.99 && (r.scale.set(1e-10, 1e-10, 1e-10), r.visible = !1), r.name === "XY" && Math.abs(mt.copy(_i).applyQuaternion(e).dot(this.eye)) < 0.2 && (r.scale.set(1e-10, 1e-10, 1e-10), r.visible = !1), r.name === "YZ" && Math.abs(mt.copy(Pi).applyQuaternion(e).dot(this.eye)) < 0.2 && (r.scale.set(1e-10, 1e-10, 1e-10), r.visible = !1), r.name === "XZ" && Math.abs(mt.copy(Be).applyQuaternion(e).dot(this.eye)) < 0.2 && (r.scale.set(1e-10, 1e-10, 1e-10), r.visible = !1)) : this.mode === "rotate" && (ls.copy(e), mt.copy(this.eye).applyQuaternion(Ot.copy(e).invert()), r.name.search("E") !== -1 && r.quaternion.setFromRotationMatrix(wr.lookAt(this.eye, _r, Be)), r.name === "X" && (Ot.setFromAxisAngle(Pi, Math.atan2(-mt.y, mt.z)), Ot.multiplyQuaternions(ls, Ot), r.quaternion.copy(Ot)), r.name === "Y" && (Ot.setFromAxisAngle(Be, Math.atan2(mt.x, mt.z)), Ot.multiplyQuaternions(ls, Ot), r.quaternion.copy(Ot)), r.name === "Z" && (Ot.setFromAxisAngle(_i, Math.atan2(mt.y, mt.x)), Ot.multiplyQuaternions(ls, Ot), r.quaternion.copy(Ot))), r.visible = r.visible && (r.name.indexOf("X") === -1 || this.showX), r.visible = r.visible && (r.name.indexOf("Y") === -1 || this.showY), r.visible = r.visible && (r.name.indexOf("Z") === -1 || this.showZ), r.visible = r.visible && (r.name.indexOf("E") === -1 || this.showX && this.showY && this.showZ), r.material._color = r.material._color || r.material.color.clone(), r.material._opacity = r.material._opacity || r.material.opacity, r.material.color.copy(r.material._color), r.material.opacity = r.material._opacity, this.enabled && this.axis && (r.name === this.axis || this.axis.split("").some(function(a) {
|
|
6849
6849
|
return r.name === a;
|
|
6850
6850
|
})) && (r.material.color.setHex(16776960), r.material.opacity = 1);
|
|
6851
6851
|
}
|
|
@@ -6861,7 +6861,7 @@ class Fc extends rt {
|
|
|
6861
6861
|
}
|
|
6862
6862
|
updateMatrixWorld(i) {
|
|
6863
6863
|
let t = this.space;
|
|
6864
|
-
switch (this.position.copy(this.worldPosition), this.mode === "scale" && (t = "local"), hs.copy(
|
|
6864
|
+
switch (this.position.copy(this.worldPosition), this.mode === "scale" && (t = "local"), hs.copy(Pi).applyQuaternion(t === "local" ? this.worldQuaternion : Es), Oi.copy(Be).applyQuaternion(t === "local" ? this.worldQuaternion : Es), Ni.copy(_i).applyQuaternion(t === "local" ? this.worldQuaternion : Es), mt.copy(Oi), this.mode) {
|
|
6865
6865
|
case "translate":
|
|
6866
6866
|
case "scale":
|
|
6867
6867
|
switch (this.axis) {
|
|
@@ -7531,7 +7531,7 @@ class Lc {
|
|
|
7531
7531
|
i.position.copy(t.position), i.quaternion.copy(t.quaternion), this._component.controls.mouseButtons.wheel = vt.ACTION.DOLLY, this.matchOrthoDistanceEnabled ? this._component.controls.distance = this.getDistance() : this._component.controls.distance = this._previousDistance, await this._component.controls.zoomTo(1), i.updateProjectionMatrix(), this._component.controls.camera = i, this.camera = i, this.current = "Perspective";
|
|
7532
7532
|
}
|
|
7533
7533
|
}
|
|
7534
|
-
class
|
|
7534
|
+
class Pc extends xi {
|
|
7535
7535
|
constructor(t) {
|
|
7536
7536
|
super(t);
|
|
7537
7537
|
/**
|
|
@@ -7648,111 +7648,111 @@ class _c extends xi {
|
|
|
7648
7648
|
}
|
|
7649
7649
|
const Dr = /* @__PURE__ */ new Map([
|
|
7650
7650
|
[
|
|
7651
|
-
|
|
7651
|
+
k.IFCRELAGGREGATES,
|
|
7652
7652
|
{
|
|
7653
7653
|
forRelated: "Decomposes",
|
|
7654
7654
|
forRelating: "IsDecomposedBy"
|
|
7655
7655
|
}
|
|
7656
7656
|
],
|
|
7657
7657
|
[
|
|
7658
|
-
|
|
7658
|
+
k.IFCRELASSOCIATESMATERIAL,
|
|
7659
7659
|
{
|
|
7660
7660
|
forRelated: "HasAssociations",
|
|
7661
7661
|
forRelating: "AssociatedTo"
|
|
7662
7662
|
}
|
|
7663
7663
|
],
|
|
7664
7664
|
[
|
|
7665
|
-
|
|
7665
|
+
k.IFCRELASSOCIATESCLASSIFICATION,
|
|
7666
7666
|
{
|
|
7667
7667
|
forRelated: "HasAssociations",
|
|
7668
7668
|
forRelating: "ClassificationForObjects"
|
|
7669
7669
|
}
|
|
7670
7670
|
],
|
|
7671
7671
|
[
|
|
7672
|
-
|
|
7672
|
+
k.IFCRELASSIGNSTOGROUP,
|
|
7673
7673
|
{
|
|
7674
7674
|
forRelated: "HasAssignments",
|
|
7675
7675
|
forRelating: "IsGroupedBy"
|
|
7676
7676
|
}
|
|
7677
7677
|
],
|
|
7678
7678
|
[
|
|
7679
|
-
|
|
7679
|
+
k.IFCRELDEFINESBYPROPERTIES,
|
|
7680
7680
|
{
|
|
7681
7681
|
forRelated: "IsDefinedBy",
|
|
7682
7682
|
forRelating: "DefinesOcurrence"
|
|
7683
7683
|
}
|
|
7684
7684
|
],
|
|
7685
7685
|
[
|
|
7686
|
-
|
|
7686
|
+
k.IFCRELDEFINESBYTYPE,
|
|
7687
7687
|
{
|
|
7688
7688
|
forRelated: "IsTypedBy",
|
|
7689
7689
|
forRelating: "Types"
|
|
7690
7690
|
}
|
|
7691
7691
|
],
|
|
7692
7692
|
[
|
|
7693
|
-
|
|
7693
|
+
k.IFCRELDEFINESBYTEMPLATE,
|
|
7694
7694
|
{
|
|
7695
7695
|
forRelated: "IsDefinedBy",
|
|
7696
7696
|
forRelating: "Defines"
|
|
7697
7697
|
}
|
|
7698
7698
|
],
|
|
7699
7699
|
[
|
|
7700
|
-
|
|
7700
|
+
k.IFCRELCONTAINEDINSPATIALSTRUCTURE,
|
|
7701
7701
|
{
|
|
7702
7702
|
forRelated: "ContainedInStructure",
|
|
7703
7703
|
forRelating: "ContainsElements"
|
|
7704
7704
|
}
|
|
7705
7705
|
],
|
|
7706
7706
|
[
|
|
7707
|
-
|
|
7707
|
+
k.IFCRELFLOWCONTROLELEMENTS,
|
|
7708
7708
|
{
|
|
7709
7709
|
forRelated: "AssignedToFlowElement",
|
|
7710
7710
|
forRelating: "HasControlElements"
|
|
7711
7711
|
}
|
|
7712
7712
|
],
|
|
7713
7713
|
[
|
|
7714
|
-
|
|
7714
|
+
k.IFCRELCONNECTSELEMENTS,
|
|
7715
7715
|
{
|
|
7716
7716
|
forRelated: "ConnectedFrom",
|
|
7717
7717
|
forRelating: "ConnectedTo"
|
|
7718
7718
|
}
|
|
7719
7719
|
],
|
|
7720
7720
|
[
|
|
7721
|
-
|
|
7721
|
+
k.IFCRELASSIGNSTOPRODUCT,
|
|
7722
7722
|
{
|
|
7723
7723
|
forRelated: "HasAssignments",
|
|
7724
7724
|
forRelating: "ReferencedBy"
|
|
7725
7725
|
}
|
|
7726
7726
|
],
|
|
7727
7727
|
[
|
|
7728
|
-
|
|
7728
|
+
k.IFCRELDECLARES,
|
|
7729
7729
|
{
|
|
7730
7730
|
forRelated: "HasContext",
|
|
7731
7731
|
forRelating: "Declares"
|
|
7732
7732
|
}
|
|
7733
7733
|
],
|
|
7734
7734
|
[
|
|
7735
|
-
|
|
7735
|
+
k.IFCRELASSIGNSTOCONTROL,
|
|
7736
7736
|
{
|
|
7737
7737
|
forRelated: "HasAssignments",
|
|
7738
7738
|
forRelating: "Controls"
|
|
7739
7739
|
}
|
|
7740
7740
|
],
|
|
7741
7741
|
[
|
|
7742
|
-
|
|
7742
|
+
k.IFCRELNESTS,
|
|
7743
7743
|
{
|
|
7744
7744
|
forRelated: "Nests",
|
|
7745
7745
|
forRelating: "IsNestedBy"
|
|
7746
7746
|
}
|
|
7747
7747
|
],
|
|
7748
7748
|
[
|
|
7749
|
-
|
|
7749
|
+
k.IFCRELASSOCIATESDOCUMENT,
|
|
7750
7750
|
{
|
|
7751
7751
|
forRelated: "HasAssociations",
|
|
7752
7752
|
forRelating: "DocumentRefForObjects"
|
|
7753
7753
|
}
|
|
7754
7754
|
]
|
|
7755
|
-
]),
|
|
7755
|
+
]), _c = {
|
|
7756
7756
|
103090709: "IFCPROJECT",
|
|
7757
7757
|
4097777520: "IFCSITE",
|
|
7758
7758
|
4031249490: "IFCBUILDING",
|
|
@@ -7893,7 +7893,7 @@ const Dr = /* @__PURE__ */ new Map([
|
|
|
7893
7893
|
};
|
|
7894
7894
|
class gh {
|
|
7895
7895
|
getAll(i, t) {
|
|
7896
|
-
const e = {}, s = Object.keys(
|
|
7896
|
+
const e = {}, s = Object.keys(_c).map((n) => parseInt(n, 10));
|
|
7897
7897
|
for (let n = 0; n < s.length; n++) {
|
|
7898
7898
|
const r = s[n], o = i.GetLineIDsWithType(t, r), a = o.size();
|
|
7899
7899
|
for (let l = 0; l < a; l++)
|
|
@@ -9047,7 +9047,7 @@ const ms = {
|
|
|
9047
9047
|
class oi {
|
|
9048
9048
|
static async getUnits(i) {
|
|
9049
9049
|
var r, o, a;
|
|
9050
|
-
const { IFCUNITASSIGNMENT: t } =
|
|
9050
|
+
const { IFCUNITASSIGNMENT: t } = k, e = await i.getAllPropertiesOfType(t);
|
|
9051
9051
|
if (!e)
|
|
9052
9052
|
return 1;
|
|
9053
9053
|
const s = Object.keys(e), n = e[parseInt(s[0], 10)];
|
|
@@ -9098,19 +9098,19 @@ class oi {
|
|
|
9098
9098
|
static async getQsetQuantities(i, t, e) {
|
|
9099
9099
|
const n = e ?? (() => {
|
|
9100
9100
|
}), r = await i.getProperties(t);
|
|
9101
|
-
return !r || r.type !==
|
|
9101
|
+
return !r || r.type !== k.IFCELEMENTQUANTITY ? null : (r.Quantities ?? [{}]).map((l) => (l.value && n(l.value), l.value)).filter((l) => l !== null);
|
|
9102
9102
|
}
|
|
9103
9103
|
static async getPsetProps(i, t, e) {
|
|
9104
9104
|
const n = e ?? (() => {
|
|
9105
9105
|
}), r = await i.getProperties(t);
|
|
9106
|
-
return !r || r.type !==
|
|
9106
|
+
return !r || r.type !== k.IFCPROPERTYSET ? null : (r.HasProperties ?? [{}]).map((l) => (l.value && n(l.value), l.value)).filter((l) => l !== null);
|
|
9107
9107
|
}
|
|
9108
9108
|
static async getPsetRel(i, t) {
|
|
9109
9109
|
var o;
|
|
9110
9110
|
if (!await i.getProperties(t))
|
|
9111
9111
|
return null;
|
|
9112
9112
|
const s = await i.getAllPropertiesOfType(
|
|
9113
|
-
|
|
9113
|
+
k.IFCRELDEFINESBYPROPERTIES
|
|
9114
9114
|
);
|
|
9115
9115
|
if (!s)
|
|
9116
9116
|
return null;
|
|
@@ -10340,7 +10340,7 @@ class Mc {
|
|
|
10340
10340
|
try {
|
|
10341
10341
|
const e = i.GetLineIDsWithType(
|
|
10342
10342
|
0,
|
|
10343
|
-
|
|
10343
|
+
k.IFCUNITASSIGNMENT
|
|
10344
10344
|
).get(0), s = i.GetLine(0, e);
|
|
10345
10345
|
for (const n of s.Units) {
|
|
10346
10346
|
if (!n || n.value === null || n.value === void 0)
|
|
@@ -10387,11 +10387,11 @@ class no {
|
|
|
10387
10387
|
try {
|
|
10388
10388
|
const t = i.GetLineIDsWithType(
|
|
10389
10389
|
0,
|
|
10390
|
-
|
|
10391
|
-
), e = /* @__PURE__ */ new Set(), s = i.GetLineIDsWithType(0,
|
|
10390
|
+
k.IFCRELCONTAINEDINSPATIALSTRUCTURE
|
|
10391
|
+
), e = /* @__PURE__ */ new Set(), s = i.GetLineIDsWithType(0, k.IFCSPACE);
|
|
10392
10392
|
for (let l = 0; l < s.size(); l++)
|
|
10393
10393
|
e.add(s.get(l));
|
|
10394
|
-
const n = i.GetLineIDsWithType(0,
|
|
10394
|
+
const n = i.GetLineIDsWithType(0, k.IFCRELAGGREGATES), r = n.size();
|
|
10395
10395
|
for (let l = 0; l < r; l++) {
|
|
10396
10396
|
const h = n.get(l), f = i.GetLine(0, h);
|
|
10397
10397
|
if (!f || !f.RelatingObject || !f.RelatedObjects)
|
|
@@ -10454,12 +10454,12 @@ class Yn {
|
|
|
10454
10454
|
* Generate the geometry for categories that are not included by default,
|
|
10455
10455
|
* like IFCSPACE.
|
|
10456
10456
|
*/
|
|
10457
|
-
C(this, "optionalCategories", [
|
|
10457
|
+
C(this, "optionalCategories", [k.IFCSPACE]);
|
|
10458
10458
|
/** Path of the WASM for [web-ifc](https://github.com/ThatOpen/engine_web-ifc). */
|
|
10459
10459
|
C(this, "wasm", {
|
|
10460
10460
|
path: "",
|
|
10461
10461
|
absolute: !1,
|
|
10462
|
-
logLevel:
|
|
10462
|
+
logLevel: k.LogLevel.LOG_LEVEL_OFF
|
|
10463
10463
|
});
|
|
10464
10464
|
/** List of categories that won't be converted to fragments. */
|
|
10465
10465
|
C(this, "excludedCategories", /* @__PURE__ */ new Set());
|
|
@@ -10544,7 +10544,7 @@ class ro {
|
|
|
10544
10544
|
class oo {
|
|
10545
10545
|
getNameInfo(i) {
|
|
10546
10546
|
var f;
|
|
10547
|
-
const t = {}, { arguments: e } = i.GetHeaderLine(0,
|
|
10547
|
+
const t = {}, { arguments: e } = i.GetHeaderLine(0, k.FILE_NAME) || {};
|
|
10548
10548
|
if (!e)
|
|
10549
10549
|
return t;
|
|
10550
10550
|
const [
|
|
@@ -10565,7 +10565,7 @@ class oo {
|
|
|
10565
10565
|
}
|
|
10566
10566
|
getDescriptionInfo(i) {
|
|
10567
10567
|
var r;
|
|
10568
|
-
const t = {}, { arguments: e } = i.GetHeaderLine(0,
|
|
10568
|
+
const t = {}, { arguments: e } = i.GetHeaderLine(0, k.FILE_DESCRIPTION) || {};
|
|
10569
10569
|
if (!e)
|
|
10570
10570
|
return t;
|
|
10571
10571
|
const [s, n] = e;
|
|
@@ -10579,15 +10579,15 @@ class oo {
|
|
|
10579
10579
|
class ao {
|
|
10580
10580
|
static get(i, t) {
|
|
10581
10581
|
const e = [
|
|
10582
|
-
|
|
10583
|
-
|
|
10584
|
-
|
|
10585
|
-
|
|
10586
|
-
|
|
10587
|
-
|
|
10588
|
-
|
|
10589
|
-
|
|
10590
|
-
|
|
10582
|
+
k.IFCPROJECT,
|
|
10583
|
+
k.IFCSITE,
|
|
10584
|
+
k.IFCBUILDING,
|
|
10585
|
+
k.IFCBUILDINGSTOREY,
|
|
10586
|
+
k.IFCSPACE,
|
|
10587
|
+
k.IFCROAD,
|
|
10588
|
+
k.IFCFACILITY,
|
|
10589
|
+
k.IFCFACILITYPART,
|
|
10590
|
+
k.IFCBRIDGE
|
|
10591
10591
|
], s = i.data;
|
|
10592
10592
|
for (const n of e) {
|
|
10593
10593
|
const r = t.GetLineIDsWithType(0, n), o = r.size();
|
|
@@ -10748,11 +10748,11 @@ const co = /* @__PURE__ */ new Set([
|
|
|
10748
10748
|
*/
|
|
10749
10749
|
async export(t, e, s = !1, n = !0) {
|
|
10750
10750
|
const r = {}, o = new Set(t.GetIfcEntityList(e)), a = /* @__PURE__ */ new Set([
|
|
10751
|
-
|
|
10752
|
-
|
|
10753
|
-
|
|
10754
|
-
|
|
10755
|
-
|
|
10751
|
+
k.IFCPROJECT,
|
|
10752
|
+
k.IFCSITE,
|
|
10753
|
+
k.IFCBUILDING,
|
|
10754
|
+
k.IFCBUILDINGSTOREY,
|
|
10755
|
+
k.IFCSPACE
|
|
10756
10756
|
]);
|
|
10757
10757
|
for (const l of a)
|
|
10758
10758
|
o.add(l);
|
|
@@ -10800,7 +10800,7 @@ const bi = class bi extends At {
|
|
|
10800
10800
|
/**
|
|
10801
10801
|
* The instance of the Web-IFC library used for handling IFC data.
|
|
10802
10802
|
*/
|
|
10803
|
-
C(this, "webIfc", new
|
|
10803
|
+
C(this, "webIfc", new k.IfcAPI());
|
|
10804
10804
|
/** {@link Component.enabled} */
|
|
10805
10805
|
C(this, "enabled", !0);
|
|
10806
10806
|
C(this, "_material", new D.MeshLambertMaterial());
|
|
@@ -10813,7 +10813,7 @@ const bi = class bi extends At {
|
|
|
10813
10813
|
transparent: !0,
|
|
10814
10814
|
opacity: 0.5
|
|
10815
10815
|
}));
|
|
10816
|
-
this.components.add(bi.uuid, this), this.settings.excludedCategories.add(
|
|
10816
|
+
this.components.add(bi.uuid, this), this.settings.excludedCategories.add(k.IFCOPENINGELEMENT);
|
|
10817
10817
|
}
|
|
10818
10818
|
/** {@link Disposable.dispose} */
|
|
10819
10819
|
dispose() {
|
|
@@ -10915,7 +10915,7 @@ const bi = class bi extends At {
|
|
|
10915
10915
|
} catch {
|
|
10916
10916
|
console.log("Web-ifc wasn't disposed.");
|
|
10917
10917
|
}
|
|
10918
|
-
this.webIfc = null, this.webIfc = new
|
|
10918
|
+
this.webIfc = null, this.webIfc = new k.IfcAPI(), this._visitedFragments.clear(), this._fragmentInstances.clear();
|
|
10919
10919
|
}
|
|
10920
10920
|
async getAllGeometries() {
|
|
10921
10921
|
this._spatialTree.setUp(this.webIfc);
|
|
@@ -10930,7 +10930,7 @@ const bi = class bi extends At {
|
|
|
10930
10930
|
};
|
|
10931
10931
|
const s = [];
|
|
10932
10932
|
for (const r of t) {
|
|
10933
|
-
if (!this.webIfc.IsIfcElement(r) && r !==
|
|
10933
|
+
if (!this.webIfc.IsIfcElement(r) && r !== k.IFCSPACE)
|
|
10934
10934
|
continue;
|
|
10935
10935
|
const o = this.settings.includedCategories;
|
|
10936
10936
|
if (o.size > 0 && !o.has(r))
|
|
@@ -11061,27 +11061,27 @@ const Dc = {
|
|
|
11061
11061
|
IfcRelDefinesByTemplate: { related: 5, relating: 6 }
|
|
11062
11062
|
}, bc = {
|
|
11063
11063
|
// IfcRelAssigns
|
|
11064
|
-
[
|
|
11065
|
-
[
|
|
11066
|
-
[
|
|
11064
|
+
[k.IFCRELASSIGNSTOCONTROL]: "IfcRelAssignsToControl",
|
|
11065
|
+
[k.IFCRELASSIGNSTOGROUP]: "IfcRelAssignsToGroup",
|
|
11066
|
+
[k.IFCRELASSIGNSTOPRODUCT]: "IfcRelAssignsToProduct",
|
|
11067
11067
|
// IfcRelAssociates
|
|
11068
|
-
[
|
|
11069
|
-
[
|
|
11070
|
-
[
|
|
11068
|
+
[k.IFCRELASSOCIATESCLASSIFICATION]: "IfcRelAssociatesClassification",
|
|
11069
|
+
[k.IFCRELASSOCIATESMATERIAL]: "IfcRelAssociatesMaterial",
|
|
11070
|
+
[k.IFCRELASSOCIATESDOCUMENT]: "IfcRelAssociatesDocument",
|
|
11071
11071
|
// IfcRelConnects
|
|
11072
|
-
[
|
|
11073
|
-
[
|
|
11074
|
-
[
|
|
11072
|
+
[k.IFCRELCONTAINEDINSPATIALSTRUCTURE]: "IfcRelContainedInSpatialStructure",
|
|
11073
|
+
[k.IFCRELCONNECTSELEMENTS]: "IfcRelConnectsElements",
|
|
11074
|
+
[k.IFCRELFLOWCONTROLELEMENTS]: "IfcRelFlowControlElements",
|
|
11075
11075
|
// IfcRelDeclares
|
|
11076
|
-
[
|
|
11076
|
+
[k.IFCRELDECLARES]: "IfcRelDeclares",
|
|
11077
11077
|
// IfcRelDecomposes
|
|
11078
|
-
[
|
|
11079
|
-
[
|
|
11078
|
+
[k.IFCRELAGGREGATES]: "IfcRelAggregates",
|
|
11079
|
+
[k.IFCRELNESTS]: "IfcRelNests",
|
|
11080
11080
|
// IfcRelDefines
|
|
11081
|
-
[
|
|
11082
|
-
[
|
|
11083
|
-
[
|
|
11084
|
-
},
|
|
11081
|
+
[k.IFCRELDEFINESBYPROPERTIES]: "IfcRelDefinesByProperties",
|
|
11082
|
+
[k.IFCRELDEFINESBYTYPE]: "IfcRelDefinesByType",
|
|
11083
|
+
[k.IFCRELDEFINESBYTEMPLATE]: "IfcRelDefinesByTemplate"
|
|
11084
|
+
}, me = class me extends At {
|
|
11085
11085
|
constructor(t) {
|
|
11086
11086
|
super(t);
|
|
11087
11087
|
/** {@link Disposable.onDisposed} */
|
|
@@ -11131,11 +11131,11 @@ const Dc = {
|
|
|
11131
11131
|
* Map of changed entities in the model.
|
|
11132
11132
|
*/
|
|
11133
11133
|
C(this, "changeMap", {});
|
|
11134
|
-
this.components.add(
|
|
11134
|
+
this.components.add(me.uuid, this);
|
|
11135
11135
|
}
|
|
11136
11136
|
/** {@link Disposable.dispose} */
|
|
11137
11137
|
dispose() {
|
|
11138
|
-
this.selectedModel = void 0, this.attributeListeners = {}, this.changeMap = {}, this.onElementToPset.reset(), this.onPropToPset.reset(), this.onPsetRemoved.reset(), this.onDataChanged.reset(), this.onDisposed.trigger(
|
|
11138
|
+
this.selectedModel = void 0, this.attributeListeners = {}, this.changeMap = {}, this.onElementToPset.reset(), this.onPropToPset.reset(), this.onPsetRemoved.reset(), this.onDataChanged.reset(), this.onDisposed.trigger(me.uuid), this.onDisposed.reset();
|
|
11139
11139
|
}
|
|
11140
11140
|
/**
|
|
11141
11141
|
* Static method to retrieve the IFC schema from a given model.
|
|
@@ -11181,23 +11181,14 @@ const Dc = {
|
|
|
11181
11181
|
* @throws Will throw an error if no OwnerHistory is found in the model.
|
|
11182
11182
|
*/
|
|
11183
11183
|
async newPset(t, e, s) {
|
|
11184
|
-
const n =
|
|
11184
|
+
const n = me.getIFCSchema(t), { ownerHistoryHandle: r } = await this.getOwnerHistory(t), o = this.newGUID(t), a = new k[n].IfcLabel(e), l = s ? new k[n].IfcText(s) : null, h = new k[n].IfcPropertySet(
|
|
11185
11185
|
o,
|
|
11186
11186
|
r,
|
|
11187
11187
|
a,
|
|
11188
11188
|
l,
|
|
11189
11189
|
[]
|
|
11190
11190
|
);
|
|
11191
|
-
h.expressID = this.getNewExpressID(t);
|
|
11192
|
-
const f = this.newGUID(t), I = new z[n].IfcRelDefinesByProperties(
|
|
11193
|
-
f,
|
|
11194
|
-
r,
|
|
11195
|
-
null,
|
|
11196
|
-
null,
|
|
11197
|
-
[],
|
|
11198
|
-
new z.Handle(h.expressID)
|
|
11199
|
-
);
|
|
11200
|
-
return I.expressID = this.getNewExpressID(t), await this.setData(t, h, I), { pset: h, rel: I };
|
|
11191
|
+
return h.expressID = this.getNewExpressID(t), await this.setData(t, h), { pset: h };
|
|
11201
11192
|
}
|
|
11202
11193
|
/**
|
|
11203
11194
|
* Removes a Property Set (Pset) from the given model.
|
|
@@ -11214,7 +11205,7 @@ const Dc = {
|
|
|
11214
11205
|
async removePset(t, ...e) {
|
|
11215
11206
|
for (const s of e) {
|
|
11216
11207
|
const n = await t.getProperties(s);
|
|
11217
|
-
if ((n == null ? void 0 : n.type) !==
|
|
11208
|
+
if ((n == null ? void 0 : n.type) !== k.IFCPROPERTYSET)
|
|
11218
11209
|
continue;
|
|
11219
11210
|
const r = await oi.getPsetRel(t, s);
|
|
11220
11211
|
if (r && (await t.setProperties(r, null), this.registerChange(t, r)), n) {
|
|
@@ -11286,16 +11277,16 @@ const Dc = {
|
|
|
11286
11277
|
*/
|
|
11287
11278
|
async removePsetProp(t, e, s) {
|
|
11288
11279
|
const n = await t.getProperties(e), r = await t.getProperties(s);
|
|
11289
|
-
!n || !r || n.type ===
|
|
11280
|
+
!n || !r || n.type === k.IFCPROPERTYSET && r && (n.HasProperties = n.HasProperties.filter((o) => o.value !== s), await t.setProperties(s, null), this.registerChange(t, e, s));
|
|
11290
11281
|
}
|
|
11291
11282
|
/**
|
|
11292
11283
|
* @deprecated Use indexer.addEntitiesRelation instead. This will be removed in future releases.
|
|
11293
11284
|
*/
|
|
11294
11285
|
addElementToPset(t, e, ...s) {
|
|
11295
|
-
this.components.get(
|
|
11286
|
+
this.components.get(Gt).addEntitiesRelation(
|
|
11296
11287
|
t,
|
|
11297
11288
|
e,
|
|
11298
|
-
{ type:
|
|
11289
|
+
{ type: k.IFCRELDEFINESBYPROPERTIES, inv: "DefinesOcurrence" },
|
|
11299
11290
|
...s
|
|
11300
11291
|
);
|
|
11301
11292
|
}
|
|
@@ -11318,7 +11309,7 @@ const Dc = {
|
|
|
11318
11309
|
for (const r of s) {
|
|
11319
11310
|
if (n.HasProperties.includes(r))
|
|
11320
11311
|
continue;
|
|
11321
|
-
const o = new
|
|
11312
|
+
const o = new k.Handle(r);
|
|
11322
11313
|
n.HasProperties.push(o), this.onPropToPset.trigger({ model: t, psetID: e, propID: r });
|
|
11323
11314
|
}
|
|
11324
11315
|
this.registerChange(t, e);
|
|
@@ -11340,16 +11331,16 @@ const Dc = {
|
|
|
11340
11331
|
const r = bc[e];
|
|
11341
11332
|
if (!r)
|
|
11342
11333
|
throw new Error(`IfcPropertiesManager: ${r} is unsoported.`);
|
|
11343
|
-
const o = t
|
|
11334
|
+
const o = me.getIFCSchema(t), a = Dc[r], l = k[o][r];
|
|
11344
11335
|
if (!(a && l))
|
|
11345
11336
|
throw new Error(`IfcPropertiesManager: ${r} is unsoported.`);
|
|
11346
|
-
const h = [new
|
|
11347
|
-
(p) => new
|
|
11337
|
+
const h = [new k[o].IfcGloballyUniqueId(oe.create())], { related: f, relating: I } = a, d = [...new Set(n)].map(
|
|
11338
|
+
(p) => new k.Handle(p)
|
|
11348
11339
|
), E = (p, m) => {
|
|
11349
11340
|
for (let F = p; F < m - 1; F++)
|
|
11350
11341
|
h.push(null);
|
|
11351
11342
|
};
|
|
11352
|
-
f < I ? (E(1, f), h.push(d), E(f, I), h.push(new
|
|
11343
|
+
f < I ? (E(1, f), h.push(d), E(f, I), h.push(new k.Handle(s))) : (E(1, I), E(I, f), h.push(new k.Handle(s)), h.push(d));
|
|
11353
11344
|
const T = new l(...h);
|
|
11354
11345
|
return await this.setData(t, T), T;
|
|
11355
11346
|
}
|
|
@@ -11365,7 +11356,7 @@ const Dc = {
|
|
|
11365
11356
|
*/
|
|
11366
11357
|
async saveToIfc(t, e) {
|
|
11367
11358
|
const s = this.components.get(Nn), n = s.webIfc, r = await s.readIfcFile(e);
|
|
11368
|
-
await this.components.get(
|
|
11359
|
+
await this.components.get(Gt).applyRelationChanges();
|
|
11369
11360
|
const a = this.changeMap[t.uuid] ?? [];
|
|
11370
11361
|
for (const h of a) {
|
|
11371
11362
|
const f = await t.getProperties(h);
|
|
@@ -11390,7 +11381,7 @@ const Dc = {
|
|
|
11390
11381
|
return null;
|
|
11391
11382
|
const n = [];
|
|
11392
11383
|
for (const r in s) {
|
|
11393
|
-
const o = new
|
|
11384
|
+
const o = new k.Handle(Number(r));
|
|
11394
11385
|
n.push(o);
|
|
11395
11386
|
}
|
|
11396
11387
|
return n;
|
|
@@ -11439,16 +11430,16 @@ const Dc = {
|
|
|
11439
11430
|
return t.ifcMetadata.maxExpressID++, t.ifcMetadata.maxExpressID;
|
|
11440
11431
|
}
|
|
11441
11432
|
newGUID(t) {
|
|
11442
|
-
const e =
|
|
11443
|
-
return new
|
|
11433
|
+
const e = me.getIFCSchema(t);
|
|
11434
|
+
return new k[e].IfcGloballyUniqueId(oe.create());
|
|
11444
11435
|
}
|
|
11445
11436
|
async getOwnerHistory(t) {
|
|
11446
11437
|
const e = await t.getAllPropertiesOfType(
|
|
11447
|
-
|
|
11438
|
+
k.IFCOWNERHISTORY
|
|
11448
11439
|
);
|
|
11449
11440
|
if (!e)
|
|
11450
11441
|
throw new Error("No OwnerHistory was found.");
|
|
11451
|
-
const s = Object.keys(e).map((o) => parseInt(o, 10)), n = e[s[0]], r = new
|
|
11442
|
+
const s = Object.keys(e).map((o) => parseInt(o, 10)), n = e[s[0]], r = new k.Handle(n.expressID);
|
|
11452
11443
|
return { ownerHistory: n, ownerHistoryHandle: r };
|
|
11453
11444
|
}
|
|
11454
11445
|
registerChange(t, ...e) {
|
|
@@ -11457,7 +11448,7 @@ const Dc = {
|
|
|
11457
11448
|
this.changeMap[t.uuid].add(s), this.onDataChanged.trigger({ model: t, expressID: s });
|
|
11458
11449
|
}
|
|
11459
11450
|
async newSingleProperty(t, e, s, n) {
|
|
11460
|
-
const r =
|
|
11451
|
+
const r = me.getIFCSchema(t), o = new k[r].IfcIdentifier(s), a = new k[r][e](n), l = new k[r].IfcPropertySingleValue(
|
|
11461
11452
|
o,
|
|
11462
11453
|
null,
|
|
11463
11454
|
a,
|
|
@@ -11470,8 +11461,8 @@ const Dc = {
|
|
|
11470
11461
|
* A unique identifier for the component.
|
|
11471
11462
|
* This UUID is used to register the component within the Components system.
|
|
11472
11463
|
*/
|
|
11473
|
-
C(
|
|
11474
|
-
let yn =
|
|
11464
|
+
C(me, "uuid", "58c2d9f0-183c-48d6-a402-dfcf5b9a34df");
|
|
11465
|
+
let yn = me;
|
|
11475
11466
|
const vi = class vi extends At {
|
|
11476
11467
|
constructor(t) {
|
|
11477
11468
|
super(t);
|
|
@@ -11526,21 +11517,21 @@ const vi = class vi extends At {
|
|
|
11526
11517
|
"DocumentRefForObjects"
|
|
11527
11518
|
]);
|
|
11528
11519
|
C(this, "_ifcRels", [
|
|
11529
|
-
|
|
11530
|
-
|
|
11531
|
-
|
|
11532
|
-
|
|
11533
|
-
|
|
11534
|
-
|
|
11535
|
-
|
|
11536
|
-
|
|
11537
|
-
|
|
11538
|
-
|
|
11539
|
-
|
|
11540
|
-
|
|
11541
|
-
|
|
11542
|
-
|
|
11543
|
-
|
|
11520
|
+
k.IFCRELAGGREGATES,
|
|
11521
|
+
k.IFCRELASSOCIATESMATERIAL,
|
|
11522
|
+
k.IFCRELASSOCIATESCLASSIFICATION,
|
|
11523
|
+
k.IFCRELASSIGNSTOGROUP,
|
|
11524
|
+
k.IFCRELDEFINESBYPROPERTIES,
|
|
11525
|
+
k.IFCRELDEFINESBYTYPE,
|
|
11526
|
+
k.IFCRELDEFINESBYTEMPLATE,
|
|
11527
|
+
k.IFCRELCONTAINEDINSPATIALSTRUCTURE,
|
|
11528
|
+
k.IFCRELFLOWCONTROLELEMENTS,
|
|
11529
|
+
k.IFCRELCONNECTSELEMENTS,
|
|
11530
|
+
k.IFCRELASSIGNSTOPRODUCT,
|
|
11531
|
+
k.IFCRELDECLARES,
|
|
11532
|
+
k.IFCRELASSIGNSTOCONTROL,
|
|
11533
|
+
k.IFCRELNESTS,
|
|
11534
|
+
k.IFCRELASSOCIATESDOCUMENT
|
|
11544
11535
|
]);
|
|
11545
11536
|
C(this, "onFragmentsDisposed", (t) => {
|
|
11546
11537
|
delete this.relationMaps[t.groupID];
|
|
@@ -11858,7 +11849,7 @@ const vi = class vi extends At {
|
|
|
11858
11849
|
const d = Object.keys(u), E = d.find((p) => p.startsWith("Related")), T = d.find((p) => p.startsWith("Relating"));
|
|
11859
11850
|
if (!(E && T))
|
|
11860
11851
|
continue;
|
|
11861
|
-
u[E] = [...f].map((p) => new
|
|
11852
|
+
u[E] = [...f].map((p) => new k.Handle(p)), u[T] = new k.Handle(l), await e.setData(n, u);
|
|
11862
11853
|
} else {
|
|
11863
11854
|
const u = await e.createIfcRel(
|
|
11864
11855
|
n,
|
|
@@ -11959,8 +11950,8 @@ const vi = class vi extends At {
|
|
|
11959
11950
|
* This UUID is used to register the component within the Components system.
|
|
11960
11951
|
*/
|
|
11961
11952
|
C(vi, "uuid", "23a889ab-83b3-44a4-8bee-ead83438370b");
|
|
11962
|
-
let
|
|
11963
|
-
const
|
|
11953
|
+
let Gt = vi;
|
|
11954
|
+
const Ps = class Ps extends At {
|
|
11964
11955
|
constructor(t) {
|
|
11965
11956
|
super(t);
|
|
11966
11957
|
/** {@link Disposable.onDisposed} */
|
|
@@ -11988,7 +11979,7 @@ const _s = class _s extends At {
|
|
|
11988
11979
|
/** {@link Component.enabled} */
|
|
11989
11980
|
C(this, "enabled", !0);
|
|
11990
11981
|
C(this, "_loader", new Do());
|
|
11991
|
-
this.components.add(
|
|
11982
|
+
this.components.add(Ps.uuid, this);
|
|
11992
11983
|
}
|
|
11993
11984
|
/**
|
|
11994
11985
|
* Getter for the meshes of all fragments in the FragmentsManager.
|
|
@@ -12037,7 +12028,7 @@ const _s = class _s extends At {
|
|
|
12037
12028
|
e && (h.isStreamed = e.isStreamed || !1), o && (h.name = o);
|
|
12038
12029
|
for (const f of h.items)
|
|
12039
12030
|
f.group = h, this.list.set(f.id, f);
|
|
12040
|
-
return r && this.coordinate([h]), this.groups.set(h.uuid, h), a && h.setLocalProperties(a), l && this.components.get(
|
|
12031
|
+
return r && this.coordinate([h]), this.groups.set(h.uuid, h), a && h.setLocalProperties(a), l && this.components.get(Gt).setRelationMap(h, l), this.onFragmentsLoaded.trigger(h), h;
|
|
12041
12032
|
}
|
|
12042
12033
|
/**
|
|
12043
12034
|
* Export the specified fragmentsgroup to binary data.
|
|
@@ -12184,8 +12175,8 @@ const _s = class _s extends At {
|
|
|
12184
12175
|
* A unique identifier for the component.
|
|
12185
12176
|
* This UUID is used to register the component within the Components system.
|
|
12186
12177
|
*/
|
|
12187
|
-
C(
|
|
12188
|
-
let Tt =
|
|
12178
|
+
C(Ps, "uuid", "fef46874-46a3-461b-8c44-2922ab77c806");
|
|
12179
|
+
let Tt = Ps;
|
|
12189
12180
|
var us = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
12190
12181
|
function vc(c) {
|
|
12191
12182
|
return c && c.__esModule && Object.prototype.hasOwnProperty.call(c, "default") ? c.default : c;
|
|
@@ -13719,8 +13710,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13719
13710
|
A[X] = 0;
|
|
13720
13711
|
}
|
|
13721
13712
|
function V(A) {
|
|
13722
|
-
var X = A.state,
|
|
13723
|
-
|
|
13713
|
+
var X = A.state, z = X.pending;
|
|
13714
|
+
z > A.avail_out && (z = A.avail_out), z !== 0 && (r.arraySet(A.output, X.pending_buf, X.pending_out, z, A.next_out), A.next_out += z, X.pending_out += z, A.total_out += z, A.avail_out -= z, X.pending -= z, X.pending === 0 && (X.pending_out = 0));
|
|
13724
13715
|
}
|
|
13725
13716
|
function x(A, X) {
|
|
13726
13717
|
o._tr_flush_block(A, 0 <= A.block_start ? A.block_start : -1, A.strstart - A.block_start, X), A.block_start = A.strstart, V(A.strm);
|
|
@@ -13732,85 +13723,85 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13732
13723
|
A.pending_buf[A.pending++] = X >>> 8 & 255, A.pending_buf[A.pending++] = 255 & X;
|
|
13733
13724
|
}
|
|
13734
13725
|
function tt(A, X) {
|
|
13735
|
-
var
|
|
13736
|
-
A.prev_length >= A.good_match && (
|
|
13726
|
+
var z, _, P = A.max_chain_length, U = A.strstart, $ = A.prev_length, Z = A.nice_match, B = A.strstart > A.w_size - Y ? A.strstart - (A.w_size - Y) : 0, K = A.window, st = A.w_mask, J = A.prev, ct = A.strstart + b, Rt = K[U + $ - 1], dt = K[U + $];
|
|
13727
|
+
A.prev_length >= A.good_match && (P >>= 2), Z > A.lookahead && (Z = A.lookahead);
|
|
13737
13728
|
do
|
|
13738
|
-
if (K[(
|
|
13739
|
-
U += 2,
|
|
13729
|
+
if (K[(z = X) + $] === dt && K[z + $ - 1] === Rt && K[z] === K[U] && K[++z] === K[U + 1]) {
|
|
13730
|
+
U += 2, z++;
|
|
13740
13731
|
do
|
|
13741
13732
|
;
|
|
13742
|
-
while (K[++U] === K[++
|
|
13743
|
-
if (
|
|
13744
|
-
if (A.match_start = X, Z <= ($ =
|
|
13733
|
+
while (K[++U] === K[++z] && K[++U] === K[++z] && K[++U] === K[++z] && K[++U] === K[++z] && K[++U] === K[++z] && K[++U] === K[++z] && K[++U] === K[++z] && K[++U] === K[++z] && U < ct);
|
|
13734
|
+
if (_ = b - (ct - U), U = ct - b, $ < _) {
|
|
13735
|
+
if (A.match_start = X, Z <= ($ = _))
|
|
13745
13736
|
break;
|
|
13746
13737
|
Rt = K[U + $ - 1], dt = K[U + $];
|
|
13747
13738
|
}
|
|
13748
13739
|
}
|
|
13749
|
-
while ((X = J[X & st]) > B && --
|
|
13740
|
+
while ((X = J[X & st]) > B && --P != 0);
|
|
13750
13741
|
return $ <= A.lookahead ? $ : A.lookahead;
|
|
13751
13742
|
}
|
|
13752
13743
|
function St(A) {
|
|
13753
|
-
var X,
|
|
13744
|
+
var X, z, _, P, U, $, Z, B, K, st, J = A.w_size;
|
|
13754
13745
|
do {
|
|
13755
|
-
if (
|
|
13756
|
-
for (r.arraySet(A.window, A.window, J, J, 0), A.match_start -= J, A.strstart -= J, A.block_start -= J, X =
|
|
13746
|
+
if (P = A.window_size - A.lookahead - A.strstart, A.strstart >= J + (J - Y)) {
|
|
13747
|
+
for (r.arraySet(A.window, A.window, J, J, 0), A.match_start -= J, A.strstart -= J, A.block_start -= J, X = z = A.hash_size; _ = A.head[--X], A.head[X] = J <= _ ? _ - J : 0, --z; )
|
|
13757
13748
|
;
|
|
13758
|
-
for (X =
|
|
13749
|
+
for (X = z = J; _ = A.prev[--X], A.prev[X] = J <= _ ? _ - J : 0, --z; )
|
|
13759
13750
|
;
|
|
13760
|
-
|
|
13751
|
+
P += J;
|
|
13761
13752
|
}
|
|
13762
13753
|
if (A.strm.avail_in === 0)
|
|
13763
13754
|
break;
|
|
13764
|
-
if ($ = A.strm, Z = A.window, B = A.strstart + A.lookahead, K =
|
|
13755
|
+
if ($ = A.strm, Z = A.window, B = A.strstart + A.lookahead, K = P, st = void 0, st = $.avail_in, K < st && (st = K), z = st === 0 ? 0 : ($.avail_in -= st, r.arraySet(Z, $.input, $.next_in, st, B), $.state.wrap === 1 ? $.adler = a($.adler, Z, st, B) : $.state.wrap === 2 && ($.adler = l($.adler, Z, st, B)), $.next_in += st, $.total_in += st, st), A.lookahead += z, A.lookahead + A.insert >= L)
|
|
13765
13756
|
for (U = A.strstart - A.insert, A.ins_h = A.window[U], A.ins_h = (A.ins_h << A.hash_shift ^ A.window[U + 1]) & A.hash_mask; A.insert && (A.ins_h = (A.ins_h << A.hash_shift ^ A.window[U + L - 1]) & A.hash_mask, A.prev[U & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = U, U++, A.insert--, !(A.lookahead + A.insert < L)); )
|
|
13766
13757
|
;
|
|
13767
13758
|
} while (A.lookahead < Y && A.strm.avail_in !== 0);
|
|
13768
13759
|
}
|
|
13769
13760
|
function yt(A, X) {
|
|
13770
|
-
for (var
|
|
13761
|
+
for (var z, _; ; ) {
|
|
13771
13762
|
if (A.lookahead < Y) {
|
|
13772
13763
|
if (St(A), A.lookahead < Y && X === f)
|
|
13773
13764
|
return g;
|
|
13774
13765
|
if (A.lookahead === 0)
|
|
13775
13766
|
break;
|
|
13776
13767
|
}
|
|
13777
|
-
if (
|
|
13778
|
-
if (
|
|
13779
|
-
for (A.match_length--; A.strstart++, A.ins_h = (A.ins_h << A.hash_shift ^ A.window[A.strstart + L - 1]) & A.hash_mask,
|
|
13768
|
+
if (z = 0, A.lookahead >= L && (A.ins_h = (A.ins_h << A.hash_shift ^ A.window[A.strstart + L - 1]) & A.hash_mask, z = A.prev[A.strstart & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = A.strstart), z !== 0 && A.strstart - z <= A.w_size - Y && (A.match_length = tt(A, z)), A.match_length >= L)
|
|
13769
|
+
if (_ = o._tr_tally(A, A.strstart - A.match_start, A.match_length - L), A.lookahead -= A.match_length, A.match_length <= A.max_lazy_match && A.lookahead >= L) {
|
|
13770
|
+
for (A.match_length--; A.strstart++, A.ins_h = (A.ins_h << A.hash_shift ^ A.window[A.strstart + L - 1]) & A.hash_mask, z = A.prev[A.strstart & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = A.strstart, --A.match_length != 0; )
|
|
13780
13771
|
;
|
|
13781
13772
|
A.strstart++;
|
|
13782
13773
|
} else
|
|
13783
13774
|
A.strstart += A.match_length, A.match_length = 0, A.ins_h = A.window[A.strstart], A.ins_h = (A.ins_h << A.hash_shift ^ A.window[A.strstart + 1]) & A.hash_mask;
|
|
13784
13775
|
else
|
|
13785
|
-
|
|
13786
|
-
if (
|
|
13776
|
+
_ = o._tr_tally(A, 0, A.window[A.strstart]), A.lookahead--, A.strstart++;
|
|
13777
|
+
if (_ && (x(A, !1), A.strm.avail_out === 0))
|
|
13787
13778
|
return g;
|
|
13788
13779
|
}
|
|
13789
13780
|
return A.insert = A.strstart < L - 1 ? A.strstart : L - 1, X === I ? (x(A, !0), A.strm.avail_out === 0 ? q : G) : A.last_lit && (x(A, !1), A.strm.avail_out === 0) ? g : v;
|
|
13790
13781
|
}
|
|
13791
13782
|
function at(A, X) {
|
|
13792
|
-
for (var
|
|
13783
|
+
for (var z, _, P; ; ) {
|
|
13793
13784
|
if (A.lookahead < Y) {
|
|
13794
13785
|
if (St(A), A.lookahead < Y && X === f)
|
|
13795
13786
|
return g;
|
|
13796
13787
|
if (A.lookahead === 0)
|
|
13797
13788
|
break;
|
|
13798
13789
|
}
|
|
13799
|
-
if (
|
|
13800
|
-
for (
|
|
13790
|
+
if (z = 0, A.lookahead >= L && (A.ins_h = (A.ins_h << A.hash_shift ^ A.window[A.strstart + L - 1]) & A.hash_mask, z = A.prev[A.strstart & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = A.strstart), A.prev_length = A.match_length, A.prev_match = A.match_start, A.match_length = L - 1, z !== 0 && A.prev_length < A.max_lazy_match && A.strstart - z <= A.w_size - Y && (A.match_length = tt(A, z), A.match_length <= 5 && (A.strategy === 1 || A.match_length === L && 4096 < A.strstart - A.match_start) && (A.match_length = L - 1)), A.prev_length >= L && A.match_length <= A.prev_length) {
|
|
13791
|
+
for (P = A.strstart + A.lookahead - L, _ = o._tr_tally(A, A.strstart - 1 - A.prev_match, A.prev_length - L), A.lookahead -= A.prev_length - 1, A.prev_length -= 2; ++A.strstart <= P && (A.ins_h = (A.ins_h << A.hash_shift ^ A.window[A.strstart + L - 1]) & A.hash_mask, z = A.prev[A.strstart & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = A.strstart), --A.prev_length != 0; )
|
|
13801
13792
|
;
|
|
13802
|
-
if (A.match_available = 0, A.match_length = L - 1, A.strstart++,
|
|
13793
|
+
if (A.match_available = 0, A.match_length = L - 1, A.strstart++, _ && (x(A, !1), A.strm.avail_out === 0))
|
|
13803
13794
|
return g;
|
|
13804
13795
|
} else if (A.match_available) {
|
|
13805
|
-
if ((
|
|
13796
|
+
if ((_ = o._tr_tally(A, 0, A.window[A.strstart - 1])) && x(A, !1), A.strstart++, A.lookahead--, A.strm.avail_out === 0)
|
|
13806
13797
|
return g;
|
|
13807
13798
|
} else
|
|
13808
13799
|
A.match_available = 1, A.strstart++, A.lookahead--;
|
|
13809
13800
|
}
|
|
13810
|
-
return A.match_available && (
|
|
13801
|
+
return A.match_available && (_ = o._tr_tally(A, 0, A.window[A.strstart - 1]), A.match_available = 0), A.insert = A.strstart < L - 1 ? A.strstart : L - 1, X === I ? (x(A, !0), A.strm.avail_out === 0 ? q : G) : A.last_lit && (x(A, !1), A.strm.avail_out === 0) ? g : v;
|
|
13811
13802
|
}
|
|
13812
|
-
function It(A, X,
|
|
13813
|
-
this.good_length = A, this.max_lazy = X, this.nice_length =
|
|
13803
|
+
function It(A, X, z, _, P) {
|
|
13804
|
+
this.good_length = A, this.max_lazy = X, this.nice_length = z, this.max_chain = _, this.func = P;
|
|
13814
13805
|
}
|
|
13815
13806
|
function ft() {
|
|
13816
13807
|
this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = m, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new r.Buf16(2 * y), this.dyn_dtree = new r.Buf16(2 * (2 * S + 1)), this.bl_tree = new r.Buf16(2 * (2 * O + 1)), nt(this.dyn_ltree), nt(this.dyn_dtree), nt(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new r.Buf16(w + 1), this.heap = new r.Buf16(2 * R + 1), nt(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new r.Buf16(2 * R + 1), nt(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
|
|
@@ -13821,23 +13812,23 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13821
13812
|
}
|
|
13822
13813
|
function Ht(A) {
|
|
13823
13814
|
var X = Ct(A);
|
|
13824
|
-
return X === u && function(
|
|
13825
|
-
|
|
13815
|
+
return X === u && function(z) {
|
|
13816
|
+
z.window_size = 2 * z.w_size, nt(z.head), z.max_lazy_match = n[z.level].max_lazy, z.good_match = n[z.level].good_length, z.nice_match = n[z.level].nice_length, z.max_chain_length = n[z.level].max_chain, z.strstart = 0, z.block_start = 0, z.lookahead = 0, z.insert = 0, z.match_length = z.prev_length = L - 1, z.match_available = 0, z.ins_h = 0;
|
|
13826
13817
|
}(A.state), X;
|
|
13827
13818
|
}
|
|
13828
|
-
function Dt(A, X,
|
|
13819
|
+
function Dt(A, X, z, _, P, U) {
|
|
13829
13820
|
if (!A)
|
|
13830
13821
|
return d;
|
|
13831
13822
|
var $ = 1;
|
|
13832
|
-
if (X === E && (X = 6),
|
|
13823
|
+
if (X === E && (X = 6), _ < 0 ? ($ = 0, _ = -_) : 15 < _ && ($ = 2, _ -= 16), P < 1 || F < P || z !== m || _ < 8 || 15 < _ || X < 0 || 9 < X || U < 0 || T < U)
|
|
13833
13824
|
return et(A, d);
|
|
13834
|
-
|
|
13825
|
+
_ === 8 && (_ = 9);
|
|
13835
13826
|
var Z = new ft();
|
|
13836
|
-
return (A.state = Z).strm = A, Z.wrap = $, Z.gzhead = null, Z.w_bits =
|
|
13827
|
+
return (A.state = Z).strm = A, Z.wrap = $, Z.gzhead = null, Z.w_bits = _, Z.w_size = 1 << Z.w_bits, Z.w_mask = Z.w_size - 1, Z.hash_bits = P + 7, Z.hash_size = 1 << Z.hash_bits, Z.hash_mask = Z.hash_size - 1, Z.hash_shift = ~~((Z.hash_bits + L - 1) / L), Z.window = new r.Buf8(2 * Z.w_size), Z.head = new r.Buf16(Z.hash_size), Z.prev = new r.Buf16(Z.w_size), Z.lit_bufsize = 1 << P + 6, Z.pending_buf_size = 4 * Z.lit_bufsize, Z.pending_buf = new r.Buf8(Z.pending_buf_size), Z.d_buf = 1 * Z.lit_bufsize, Z.l_buf = 3 * Z.lit_bufsize, Z.level = X, Z.strategy = U, Z.method = z, Ht(A);
|
|
13837
13828
|
}
|
|
13838
13829
|
n = [new It(0, 0, 0, 0, function(A, X) {
|
|
13839
|
-
var
|
|
13840
|
-
for (
|
|
13830
|
+
var z = 65535;
|
|
13831
|
+
for (z > A.pending_buf_size - 5 && (z = A.pending_buf_size - 5); ; ) {
|
|
13841
13832
|
if (A.lookahead <= 1) {
|
|
13842
13833
|
if (St(A), A.lookahead === 0 && X === f)
|
|
13843
13834
|
return g;
|
|
@@ -13845,8 +13836,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13845
13836
|
break;
|
|
13846
13837
|
}
|
|
13847
13838
|
A.strstart += A.lookahead, A.lookahead = 0;
|
|
13848
|
-
var
|
|
13849
|
-
if ((A.strstart === 0 || A.strstart >=
|
|
13839
|
+
var _ = A.block_start + z;
|
|
13840
|
+
if ((A.strstart === 0 || A.strstart >= _) && (A.lookahead = A.strstart - _, A.strstart = _, x(A, !1), A.strm.avail_out === 0) || A.strstart - A.block_start >= A.w_size - Y && (x(A, !1), A.strm.avail_out === 0))
|
|
13850
13841
|
return g;
|
|
13851
13842
|
}
|
|
13852
13843
|
return A.insert = 0, X === I ? (x(A, !0), A.strm.avail_out === 0 ? q : G) : (A.strstart > A.block_start && (x(A, !1), A.strm.avail_out), g);
|
|
@@ -13855,60 +13846,60 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13855
13846
|
}, s.deflateInit2 = Dt, s.deflateReset = Ht, s.deflateResetKeep = Ct, s.deflateSetHeader = function(A, X) {
|
|
13856
13847
|
return A && A.state ? A.state.wrap !== 2 ? d : (A.state.gzhead = X, u) : d;
|
|
13857
13848
|
}, s.deflate = function(A, X) {
|
|
13858
|
-
var
|
|
13849
|
+
var z, _, P, U;
|
|
13859
13850
|
if (!A || !A.state || 5 < X || X < 0)
|
|
13860
13851
|
return A ? et(A, d) : d;
|
|
13861
|
-
if (
|
|
13852
|
+
if (_ = A.state, !A.output || !A.input && A.avail_in !== 0 || _.status === 666 && X !== I)
|
|
13862
13853
|
return et(A, A.avail_out === 0 ? -5 : d);
|
|
13863
|
-
if (
|
|
13864
|
-
if (
|
|
13865
|
-
A.adler = 0, ot(
|
|
13854
|
+
if (_.strm = A, z = _.last_flush, _.last_flush = X, _.status === N)
|
|
13855
|
+
if (_.wrap === 2)
|
|
13856
|
+
A.adler = 0, ot(_, 31), ot(_, 139), ot(_, 8), _.gzhead ? (ot(_, (_.gzhead.text ? 1 : 0) + (_.gzhead.hcrc ? 2 : 0) + (_.gzhead.extra ? 4 : 0) + (_.gzhead.name ? 8 : 0) + (_.gzhead.comment ? 16 : 0)), ot(_, 255 & _.gzhead.time), ot(_, _.gzhead.time >> 8 & 255), ot(_, _.gzhead.time >> 16 & 255), ot(_, _.gzhead.time >> 24 & 255), ot(_, _.level === 9 ? 2 : 2 <= _.strategy || _.level < 2 ? 4 : 0), ot(_, 255 & _.gzhead.os), _.gzhead.extra && _.gzhead.extra.length && (ot(_, 255 & _.gzhead.extra.length), ot(_, _.gzhead.extra.length >> 8 & 255)), _.gzhead.hcrc && (A.adler = l(A.adler, _.pending_buf, _.pending, 0)), _.gzindex = 0, _.status = 69) : (ot(_, 0), ot(_, 0), ot(_, 0), ot(_, 0), ot(_, 0), ot(_, _.level === 9 ? 2 : 2 <= _.strategy || _.level < 2 ? 4 : 0), ot(_, 3), _.status = M);
|
|
13866
13857
|
else {
|
|
13867
|
-
var $ = m + (
|
|
13868
|
-
$ |= (2 <=
|
|
13858
|
+
var $ = m + (_.w_bits - 8 << 4) << 8;
|
|
13859
|
+
$ |= (2 <= _.strategy || _.level < 2 ? 0 : _.level < 6 ? 1 : _.level === 6 ? 2 : 3) << 6, _.strstart !== 0 && ($ |= 32), $ += 31 - $ % 31, _.status = M, it(_, $), _.strstart !== 0 && (it(_, A.adler >>> 16), it(_, 65535 & A.adler)), A.adler = 1;
|
|
13869
13860
|
}
|
|
13870
|
-
if (
|
|
13871
|
-
if (
|
|
13872
|
-
for (
|
|
13873
|
-
ot(
|
|
13874
|
-
|
|
13861
|
+
if (_.status === 69)
|
|
13862
|
+
if (_.gzhead.extra) {
|
|
13863
|
+
for (P = _.pending; _.gzindex < (65535 & _.gzhead.extra.length) && (_.pending !== _.pending_buf_size || (_.gzhead.hcrc && _.pending > P && (A.adler = l(A.adler, _.pending_buf, _.pending - P, P)), V(A), P = _.pending, _.pending !== _.pending_buf_size)); )
|
|
13864
|
+
ot(_, 255 & _.gzhead.extra[_.gzindex]), _.gzindex++;
|
|
13865
|
+
_.gzhead.hcrc && _.pending > P && (A.adler = l(A.adler, _.pending_buf, _.pending - P, P)), _.gzindex === _.gzhead.extra.length && (_.gzindex = 0, _.status = 73);
|
|
13875
13866
|
} else
|
|
13876
|
-
|
|
13877
|
-
if (
|
|
13878
|
-
if (
|
|
13879
|
-
|
|
13867
|
+
_.status = 73;
|
|
13868
|
+
if (_.status === 73)
|
|
13869
|
+
if (_.gzhead.name) {
|
|
13870
|
+
P = _.pending;
|
|
13880
13871
|
do {
|
|
13881
|
-
if (
|
|
13872
|
+
if (_.pending === _.pending_buf_size && (_.gzhead.hcrc && _.pending > P && (A.adler = l(A.adler, _.pending_buf, _.pending - P, P)), V(A), P = _.pending, _.pending === _.pending_buf_size)) {
|
|
13882
13873
|
U = 1;
|
|
13883
13874
|
break;
|
|
13884
13875
|
}
|
|
13885
|
-
U =
|
|
13876
|
+
U = _.gzindex < _.gzhead.name.length ? 255 & _.gzhead.name.charCodeAt(_.gzindex++) : 0, ot(_, U);
|
|
13886
13877
|
} while (U !== 0);
|
|
13887
|
-
|
|
13878
|
+
_.gzhead.hcrc && _.pending > P && (A.adler = l(A.adler, _.pending_buf, _.pending - P, P)), U === 0 && (_.gzindex = 0, _.status = 91);
|
|
13888
13879
|
} else
|
|
13889
|
-
|
|
13890
|
-
if (
|
|
13891
|
-
if (
|
|
13892
|
-
|
|
13880
|
+
_.status = 91;
|
|
13881
|
+
if (_.status === 91)
|
|
13882
|
+
if (_.gzhead.comment) {
|
|
13883
|
+
P = _.pending;
|
|
13893
13884
|
do {
|
|
13894
|
-
if (
|
|
13885
|
+
if (_.pending === _.pending_buf_size && (_.gzhead.hcrc && _.pending > P && (A.adler = l(A.adler, _.pending_buf, _.pending - P, P)), V(A), P = _.pending, _.pending === _.pending_buf_size)) {
|
|
13895
13886
|
U = 1;
|
|
13896
13887
|
break;
|
|
13897
13888
|
}
|
|
13898
|
-
U =
|
|
13889
|
+
U = _.gzindex < _.gzhead.comment.length ? 255 & _.gzhead.comment.charCodeAt(_.gzindex++) : 0, ot(_, U);
|
|
13899
13890
|
} while (U !== 0);
|
|
13900
|
-
|
|
13891
|
+
_.gzhead.hcrc && _.pending > P && (A.adler = l(A.adler, _.pending_buf, _.pending - P, P)), U === 0 && (_.status = 103);
|
|
13901
13892
|
} else
|
|
13902
|
-
|
|
13903
|
-
if (
|
|
13893
|
+
_.status = 103;
|
|
13894
|
+
if (_.status === 103 && (_.gzhead.hcrc ? (_.pending + 2 > _.pending_buf_size && V(A), _.pending + 2 <= _.pending_buf_size && (ot(_, 255 & A.adler), ot(_, A.adler >> 8 & 255), A.adler = 0, _.status = M)) : _.status = M), _.pending !== 0) {
|
|
13904
13895
|
if (V(A), A.avail_out === 0)
|
|
13905
|
-
return
|
|
13906
|
-
} else if (A.avail_in === 0 && W(X) <= W(
|
|
13896
|
+
return _.last_flush = -1, u;
|
|
13897
|
+
} else if (A.avail_in === 0 && W(X) <= W(z) && X !== I)
|
|
13907
13898
|
return et(A, -5);
|
|
13908
|
-
if (
|
|
13899
|
+
if (_.status === 666 && A.avail_in !== 0)
|
|
13909
13900
|
return et(A, -5);
|
|
13910
|
-
if (A.avail_in !== 0 ||
|
|
13911
|
-
var Z =
|
|
13901
|
+
if (A.avail_in !== 0 || _.lookahead !== 0 || X !== f && _.status !== 666) {
|
|
13902
|
+
var Z = _.strategy === 2 ? function(B, K) {
|
|
13912
13903
|
for (var st; ; ) {
|
|
13913
13904
|
if (B.lookahead === 0 && (St(B), B.lookahead === 0)) {
|
|
13914
13905
|
if (K === f)
|
|
@@ -13919,7 +13910,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13919
13910
|
return g;
|
|
13920
13911
|
}
|
|
13921
13912
|
return B.insert = 0, K === I ? (x(B, !0), B.strm.avail_out === 0 ? q : G) : B.last_lit && (x(B, !1), B.strm.avail_out === 0) ? g : v;
|
|
13922
|
-
}(
|
|
13913
|
+
}(_, X) : _.strategy === 3 ? function(B, K) {
|
|
13923
13914
|
for (var st, J, ct, Rt, dt = B.window; ; ) {
|
|
13924
13915
|
if (B.lookahead <= b) {
|
|
13925
13916
|
if (St(B), B.lookahead <= b && K === f)
|
|
@@ -13938,26 +13929,26 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13938
13929
|
return g;
|
|
13939
13930
|
}
|
|
13940
13931
|
return B.insert = 0, K === I ? (x(B, !0), B.strm.avail_out === 0 ? q : G) : B.last_lit && (x(B, !1), B.strm.avail_out === 0) ? g : v;
|
|
13941
|
-
}(
|
|
13942
|
-
if (Z !== q && Z !== G || (
|
|
13943
|
-
return A.avail_out === 0 && (
|
|
13944
|
-
if (Z === v && (X === 1 ? o._tr_align(
|
|
13945
|
-
return
|
|
13932
|
+
}(_, X) : n[_.level].func(_, X);
|
|
13933
|
+
if (Z !== q && Z !== G || (_.status = 666), Z === g || Z === q)
|
|
13934
|
+
return A.avail_out === 0 && (_.last_flush = -1), u;
|
|
13935
|
+
if (Z === v && (X === 1 ? o._tr_align(_) : X !== 5 && (o._tr_stored_block(_, 0, 0, !1), X === 3 && (nt(_.head), _.lookahead === 0 && (_.strstart = 0, _.block_start = 0, _.insert = 0))), V(A), A.avail_out === 0))
|
|
13936
|
+
return _.last_flush = -1, u;
|
|
13946
13937
|
}
|
|
13947
|
-
return X !== I ? u :
|
|
13938
|
+
return X !== I ? u : _.wrap <= 0 ? 1 : (_.wrap === 2 ? (ot(_, 255 & A.adler), ot(_, A.adler >> 8 & 255), ot(_, A.adler >> 16 & 255), ot(_, A.adler >> 24 & 255), ot(_, 255 & A.total_in), ot(_, A.total_in >> 8 & 255), ot(_, A.total_in >> 16 & 255), ot(_, A.total_in >> 24 & 255)) : (it(_, A.adler >>> 16), it(_, 65535 & A.adler)), V(A), 0 < _.wrap && (_.wrap = -_.wrap), _.pending !== 0 ? u : 1);
|
|
13948
13939
|
}, s.deflateEnd = function(A) {
|
|
13949
13940
|
var X;
|
|
13950
13941
|
return A && A.state ? (X = A.state.status) !== N && X !== 69 && X !== 73 && X !== 91 && X !== 103 && X !== M && X !== 666 ? et(A, d) : (A.state = null, X === M ? et(A, -3) : u) : d;
|
|
13951
13942
|
}, s.deflateSetDictionary = function(A, X) {
|
|
13952
|
-
var
|
|
13953
|
-
if (!A || !A.state || (U = (
|
|
13943
|
+
var z, _, P, U, $, Z, B, K, st = X.length;
|
|
13944
|
+
if (!A || !A.state || (U = (z = A.state).wrap) === 2 || U === 1 && z.status !== N || z.lookahead)
|
|
13954
13945
|
return d;
|
|
13955
|
-
for (U === 1 && (A.adler = a(A.adler, X, st, 0)),
|
|
13956
|
-
for (
|
|
13946
|
+
for (U === 1 && (A.adler = a(A.adler, X, st, 0)), z.wrap = 0, st >= z.w_size && (U === 0 && (nt(z.head), z.strstart = 0, z.block_start = 0, z.insert = 0), K = new r.Buf8(z.w_size), r.arraySet(K, X, st - z.w_size, z.w_size, 0), X = K, st = z.w_size), $ = A.avail_in, Z = A.next_in, B = A.input, A.avail_in = st, A.next_in = 0, A.input = X, St(z); z.lookahead >= L; ) {
|
|
13947
|
+
for (_ = z.strstart, P = z.lookahead - (L - 1); z.ins_h = (z.ins_h << z.hash_shift ^ z.window[_ + L - 1]) & z.hash_mask, z.prev[_ & z.w_mask] = z.head[z.ins_h], z.head[z.ins_h] = _, _++, --P; )
|
|
13957
13948
|
;
|
|
13958
|
-
|
|
13949
|
+
z.strstart = _, z.lookahead = L - 1, St(z);
|
|
13959
13950
|
}
|
|
13960
|
-
return
|
|
13951
|
+
return z.strstart += z.lookahead, z.block_start = z.strstart, z.insert = z.lookahead, z.lookahead = 0, z.match_length = z.prev_length = L - 1, z.match_available = 0, A.next_in = Z, A.input = B, A.avail_in = $, z.wrap = U, u;
|
|
13961
13952
|
}, s.deflateInfo = "pako deflate (from Nodeca project)";
|
|
13962
13953
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(t, e, s) {
|
|
13963
13954
|
e.exports = function() {
|
|
@@ -14093,7 +14084,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14093
14084
|
s.inflateReset = R, s.inflateReset2 = S, s.inflateResetKeep = F, s.inflateInit = function(N) {
|
|
14094
14085
|
return O(N, 15);
|
|
14095
14086
|
}, s.inflateInit2 = O, s.inflate = function(N, M) {
|
|
14096
|
-
var g, v, q, G, et, W, nt, V, x, ot, it, tt, St, yt, at, It, ft, Ct, Ht, Dt, A, X,
|
|
14087
|
+
var g, v, q, G, et, W, nt, V, x, ot, it, tt, St, yt, at, It, ft, Ct, Ht, Dt, A, X, z, _, P = 0, U = new n.Buf8(4), $ = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
14097
14088
|
if (!N || !N.state || !N.output || !N.input && N.avail_in !== 0)
|
|
14098
14089
|
return u;
|
|
14099
14090
|
(g = N.state).mode === 12 && (g.mode = 13), et = N.next_out, q = N.output, nt = N.avail_out, G = N.next_in, v = N.input, W = N.avail_in, V = g.hold, x = g.bits, ot = W, it = nt, X = I;
|
|
@@ -14297,14 +14288,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14297
14288
|
}
|
|
14298
14289
|
for (; g.have < 19; )
|
|
14299
14290
|
g.lens[$[g.have++]] = 0;
|
|
14300
|
-
if (g.lencode = g.lendyn, g.lenbits = 7,
|
|
14291
|
+
if (g.lencode = g.lendyn, g.lenbits = 7, z = { bits: g.lenbits }, X = l(0, g.lens, 0, 19, g.lencode, 0, g.work, z), g.lenbits = z.bits, X) {
|
|
14301
14292
|
N.msg = "invalid code lengths set", g.mode = 30;
|
|
14302
14293
|
break;
|
|
14303
14294
|
}
|
|
14304
14295
|
g.have = 0, g.mode = 19;
|
|
14305
14296
|
case 19:
|
|
14306
14297
|
for (; g.have < g.nlen + g.ndist; ) {
|
|
14307
|
-
for (; It = (
|
|
14298
|
+
for (; It = (P = g.lencode[V & (1 << g.lenbits) - 1]) >>> 16 & 255, ft = 65535 & P, !((at = P >>> 24) <= x); ) {
|
|
14308
14299
|
if (W === 0)
|
|
14309
14300
|
break t;
|
|
14310
14301
|
W--, V += v[G++] << x, x += 8;
|
|
@@ -14313,7 +14304,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14313
14304
|
V >>>= at, x -= at, g.lens[g.have++] = ft;
|
|
14314
14305
|
else {
|
|
14315
14306
|
if (ft === 16) {
|
|
14316
|
-
for (
|
|
14307
|
+
for (_ = at + 2; x < _; ) {
|
|
14317
14308
|
if (W === 0)
|
|
14318
14309
|
break t;
|
|
14319
14310
|
W--, V += v[G++] << x, x += 8;
|
|
@@ -14324,14 +14315,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14324
14315
|
}
|
|
14325
14316
|
A = g.lens[g.have - 1], tt = 3 + (3 & V), V >>>= 2, x -= 2;
|
|
14326
14317
|
} else if (ft === 17) {
|
|
14327
|
-
for (
|
|
14318
|
+
for (_ = at + 3; x < _; ) {
|
|
14328
14319
|
if (W === 0)
|
|
14329
14320
|
break t;
|
|
14330
14321
|
W--, V += v[G++] << x, x += 8;
|
|
14331
14322
|
}
|
|
14332
14323
|
x -= at, A = 0, tt = 3 + (7 & (V >>>= at)), V >>>= 3, x -= 3;
|
|
14333
14324
|
} else {
|
|
14334
|
-
for (
|
|
14325
|
+
for (_ = at + 7; x < _; ) {
|
|
14335
14326
|
if (W === 0)
|
|
14336
14327
|
break t;
|
|
14337
14328
|
W--, V += v[G++] << x, x += 8;
|
|
@@ -14352,11 +14343,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14352
14343
|
N.msg = "invalid code -- missing end-of-block", g.mode = 30;
|
|
14353
14344
|
break;
|
|
14354
14345
|
}
|
|
14355
|
-
if (g.lenbits = 9,
|
|
14346
|
+
if (g.lenbits = 9, z = { bits: g.lenbits }, X = l(h, g.lens, 0, g.nlen, g.lencode, 0, g.work, z), g.lenbits = z.bits, X) {
|
|
14356
14347
|
N.msg = "invalid literal/lengths set", g.mode = 30;
|
|
14357
14348
|
break;
|
|
14358
14349
|
}
|
|
14359
|
-
if (g.distbits = 6, g.distcode = g.distdyn,
|
|
14350
|
+
if (g.distbits = 6, g.distcode = g.distdyn, z = { bits: g.distbits }, X = l(f, g.lens, g.nlen, g.ndist, g.distcode, 0, g.work, z), g.distbits = z.bits, X) {
|
|
14360
14351
|
N.msg = "invalid distances set", g.mode = 30;
|
|
14361
14352
|
break;
|
|
14362
14353
|
}
|
|
@@ -14369,13 +14360,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14369
14360
|
N.next_out = et, N.avail_out = nt, N.next_in = G, N.avail_in = W, g.hold = V, g.bits = x, a(N, it), et = N.next_out, q = N.output, nt = N.avail_out, G = N.next_in, v = N.input, W = N.avail_in, V = g.hold, x = g.bits, g.mode === 12 && (g.back = -1);
|
|
14370
14361
|
break;
|
|
14371
14362
|
}
|
|
14372
|
-
for (g.back = 0; It = (
|
|
14363
|
+
for (g.back = 0; It = (P = g.lencode[V & (1 << g.lenbits) - 1]) >>> 16 & 255, ft = 65535 & P, !((at = P >>> 24) <= x); ) {
|
|
14373
14364
|
if (W === 0)
|
|
14374
14365
|
break t;
|
|
14375
14366
|
W--, V += v[G++] << x, x += 8;
|
|
14376
14367
|
}
|
|
14377
14368
|
if (It && !(240 & It)) {
|
|
14378
|
-
for (Ct = at, Ht = It, Dt = ft; It = (
|
|
14369
|
+
for (Ct = at, Ht = It, Dt = ft; It = (P = g.lencode[Dt + ((V & (1 << Ct + Ht) - 1) >> Ct)]) >>> 16 & 255, ft = 65535 & P, !(Ct + (at = P >>> 24) <= x); ) {
|
|
14379
14370
|
if (W === 0)
|
|
14380
14371
|
break t;
|
|
14381
14372
|
W--, V += v[G++] << x, x += 8;
|
|
@@ -14397,7 +14388,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14397
14388
|
g.extra = 15 & It, g.mode = 22;
|
|
14398
14389
|
case 22:
|
|
14399
14390
|
if (g.extra) {
|
|
14400
|
-
for (
|
|
14391
|
+
for (_ = g.extra; x < _; ) {
|
|
14401
14392
|
if (W === 0)
|
|
14402
14393
|
break t;
|
|
14403
14394
|
W--, V += v[G++] << x, x += 8;
|
|
@@ -14406,13 +14397,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14406
14397
|
}
|
|
14407
14398
|
g.was = g.length, g.mode = 23;
|
|
14408
14399
|
case 23:
|
|
14409
|
-
for (; It = (
|
|
14400
|
+
for (; It = (P = g.distcode[V & (1 << g.distbits) - 1]) >>> 16 & 255, ft = 65535 & P, !((at = P >>> 24) <= x); ) {
|
|
14410
14401
|
if (W === 0)
|
|
14411
14402
|
break t;
|
|
14412
14403
|
W--, V += v[G++] << x, x += 8;
|
|
14413
14404
|
}
|
|
14414
14405
|
if (!(240 & It)) {
|
|
14415
|
-
for (Ct = at, Ht = It, Dt = ft; It = (
|
|
14406
|
+
for (Ct = at, Ht = It, Dt = ft; It = (P = g.distcode[Dt + ((V & (1 << Ct + Ht) - 1) >> Ct)]) >>> 16 & 255, ft = 65535 & P, !(Ct + (at = P >>> 24) <= x); ) {
|
|
14416
14407
|
if (W === 0)
|
|
14417
14408
|
break t;
|
|
14418
14409
|
W--, V += v[G++] << x, x += 8;
|
|
@@ -14426,7 +14417,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14426
14417
|
g.offset = ft, g.extra = 15 & It, g.mode = 24;
|
|
14427
14418
|
case 24:
|
|
14428
14419
|
if (g.extra) {
|
|
14429
|
-
for (
|
|
14420
|
+
for (_ = g.extra; x < _; ) {
|
|
14430
14421
|
if (W === 0)
|
|
14431
14422
|
break t;
|
|
14432
14423
|
W--, V += v[G++] << x, x += 8;
|
|
@@ -14560,9 +14551,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14560
14551
|
e.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" };
|
|
14561
14552
|
}, {}], 52: [function(t, e, s) {
|
|
14562
14553
|
var n = t("../utils/common"), r = 0, o = 1;
|
|
14563
|
-
function a(
|
|
14564
|
-
for (var U =
|
|
14565
|
-
|
|
14554
|
+
function a(P) {
|
|
14555
|
+
for (var U = P.length; 0 <= --U; )
|
|
14556
|
+
P[U] = 0;
|
|
14566
14557
|
}
|
|
14567
14558
|
var l = 0, h = 29, f = 256, I = f + 1 + h, u = 30, d = 19, E = 2 * I + 1, T = 15, p = 16, m = 7, F = 256, R = 16, S = 17, O = 18, y = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], w = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], L = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], b = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], Y = new Array(2 * (I + 2));
|
|
14568
14559
|
a(Y);
|
|
@@ -14575,78 +14566,78 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14575
14566
|
var v = new Array(h);
|
|
14576
14567
|
a(v);
|
|
14577
14568
|
var q, G, et, W = new Array(u);
|
|
14578
|
-
function nt(
|
|
14579
|
-
this.static_tree =
|
|
14569
|
+
function nt(P, U, $, Z, B) {
|
|
14570
|
+
this.static_tree = P, this.extra_bits = U, this.extra_base = $, this.elems = Z, this.max_length = B, this.has_stree = P && P.length;
|
|
14580
14571
|
}
|
|
14581
|
-
function V(
|
|
14582
|
-
this.dyn_tree =
|
|
14572
|
+
function V(P, U) {
|
|
14573
|
+
this.dyn_tree = P, this.max_code = 0, this.stat_desc = U;
|
|
14583
14574
|
}
|
|
14584
|
-
function x(
|
|
14585
|
-
return
|
|
14575
|
+
function x(P) {
|
|
14576
|
+
return P < 256 ? M[P] : M[256 + (P >>> 7)];
|
|
14586
14577
|
}
|
|
14587
|
-
function ot(
|
|
14588
|
-
|
|
14578
|
+
function ot(P, U) {
|
|
14579
|
+
P.pending_buf[P.pending++] = 255 & U, P.pending_buf[P.pending++] = U >>> 8 & 255;
|
|
14589
14580
|
}
|
|
14590
|
-
function it(
|
|
14591
|
-
|
|
14581
|
+
function it(P, U, $) {
|
|
14582
|
+
P.bi_valid > p - $ ? (P.bi_buf |= U << P.bi_valid & 65535, ot(P, P.bi_buf), P.bi_buf = U >> p - P.bi_valid, P.bi_valid += $ - p) : (P.bi_buf |= U << P.bi_valid & 65535, P.bi_valid += $);
|
|
14592
14583
|
}
|
|
14593
|
-
function tt(
|
|
14594
|
-
it(
|
|
14584
|
+
function tt(P, U, $) {
|
|
14585
|
+
it(P, $[2 * U], $[2 * U + 1]);
|
|
14595
14586
|
}
|
|
14596
|
-
function St(
|
|
14597
|
-
for (var $ = 0; $ |= 1 &
|
|
14587
|
+
function St(P, U) {
|
|
14588
|
+
for (var $ = 0; $ |= 1 & P, P >>>= 1, $ <<= 1, 0 < --U; )
|
|
14598
14589
|
;
|
|
14599
14590
|
return $ >>> 1;
|
|
14600
14591
|
}
|
|
14601
|
-
function yt(
|
|
14592
|
+
function yt(P, U, $) {
|
|
14602
14593
|
var Z, B, K = new Array(T + 1), st = 0;
|
|
14603
14594
|
for (Z = 1; Z <= T; Z++)
|
|
14604
14595
|
K[Z] = st = st + $[Z - 1] << 1;
|
|
14605
14596
|
for (B = 0; B <= U; B++) {
|
|
14606
|
-
var J =
|
|
14607
|
-
J !== 0 && (
|
|
14597
|
+
var J = P[2 * B + 1];
|
|
14598
|
+
J !== 0 && (P[2 * B] = St(K[J]++, J));
|
|
14608
14599
|
}
|
|
14609
14600
|
}
|
|
14610
|
-
function at(
|
|
14601
|
+
function at(P) {
|
|
14611
14602
|
var U;
|
|
14612
14603
|
for (U = 0; U < I; U++)
|
|
14613
|
-
|
|
14604
|
+
P.dyn_ltree[2 * U] = 0;
|
|
14614
14605
|
for (U = 0; U < u; U++)
|
|
14615
|
-
|
|
14606
|
+
P.dyn_dtree[2 * U] = 0;
|
|
14616
14607
|
for (U = 0; U < d; U++)
|
|
14617
|
-
|
|
14618
|
-
|
|
14608
|
+
P.bl_tree[2 * U] = 0;
|
|
14609
|
+
P.dyn_ltree[2 * F] = 1, P.opt_len = P.static_len = 0, P.last_lit = P.matches = 0;
|
|
14619
14610
|
}
|
|
14620
|
-
function It(
|
|
14621
|
-
8 <
|
|
14611
|
+
function It(P) {
|
|
14612
|
+
8 < P.bi_valid ? ot(P, P.bi_buf) : 0 < P.bi_valid && (P.pending_buf[P.pending++] = P.bi_buf), P.bi_buf = 0, P.bi_valid = 0;
|
|
14622
14613
|
}
|
|
14623
|
-
function ft(
|
|
14614
|
+
function ft(P, U, $, Z) {
|
|
14624
14615
|
var B = 2 * U, K = 2 * $;
|
|
14625
|
-
return
|
|
14616
|
+
return P[B] < P[K] || P[B] === P[K] && Z[U] <= Z[$];
|
|
14626
14617
|
}
|
|
14627
|
-
function Ct(
|
|
14628
|
-
for (var Z =
|
|
14629
|
-
|
|
14630
|
-
|
|
14618
|
+
function Ct(P, U, $) {
|
|
14619
|
+
for (var Z = P.heap[$], B = $ << 1; B <= P.heap_len && (B < P.heap_len && ft(U, P.heap[B + 1], P.heap[B], P.depth) && B++, !ft(U, Z, P.heap[B], P.depth)); )
|
|
14620
|
+
P.heap[$] = P.heap[B], $ = B, B <<= 1;
|
|
14621
|
+
P.heap[$] = Z;
|
|
14631
14622
|
}
|
|
14632
|
-
function Ht(
|
|
14623
|
+
function Ht(P, U, $) {
|
|
14633
14624
|
var Z, B, K, st, J = 0;
|
|
14634
|
-
if (
|
|
14635
|
-
for (; Z =
|
|
14625
|
+
if (P.last_lit !== 0)
|
|
14626
|
+
for (; Z = P.pending_buf[P.d_buf + 2 * J] << 8 | P.pending_buf[P.d_buf + 2 * J + 1], B = P.pending_buf[P.l_buf + J], J++, Z === 0 ? tt(P, B, U) : (tt(P, (K = g[B]) + f + 1, U), (st = y[K]) !== 0 && it(P, B -= v[K], st), tt(P, K = x(--Z), $), (st = w[K]) !== 0 && it(P, Z -= W[K], st)), J < P.last_lit; )
|
|
14636
14627
|
;
|
|
14637
|
-
tt(
|
|
14628
|
+
tt(P, F, U);
|
|
14638
14629
|
}
|
|
14639
|
-
function Dt(
|
|
14630
|
+
function Dt(P, U) {
|
|
14640
14631
|
var $, Z, B, K = U.dyn_tree, st = U.stat_desc.static_tree, J = U.stat_desc.has_stree, ct = U.stat_desc.elems, Rt = -1;
|
|
14641
|
-
for (
|
|
14642
|
-
K[2 * $] !== 0 ? (
|
|
14643
|
-
for (;
|
|
14644
|
-
K[2 * (B =
|
|
14645
|
-
for (U.max_code = Rt, $ =
|
|
14646
|
-
Ct(
|
|
14647
|
-
for (B = ct; $ =
|
|
14632
|
+
for (P.heap_len = 0, P.heap_max = E, $ = 0; $ < ct; $++)
|
|
14633
|
+
K[2 * $] !== 0 ? (P.heap[++P.heap_len] = Rt = $, P.depth[$] = 0) : K[2 * $ + 1] = 0;
|
|
14634
|
+
for (; P.heap_len < 2; )
|
|
14635
|
+
K[2 * (B = P.heap[++P.heap_len] = Rt < 2 ? ++Rt : 0)] = 1, P.depth[B] = 0, P.opt_len--, J && (P.static_len -= st[2 * B + 1]);
|
|
14636
|
+
for (U.max_code = Rt, $ = P.heap_len >> 1; 1 <= $; $--)
|
|
14637
|
+
Ct(P, K, $);
|
|
14638
|
+
for (B = ct; $ = P.heap[1], P.heap[1] = P.heap[P.heap_len--], Ct(P, K, 1), Z = P.heap[1], P.heap[--P.heap_max] = $, P.heap[--P.heap_max] = Z, K[2 * B] = K[2 * $] + K[2 * Z], P.depth[B] = (P.depth[$] >= P.depth[Z] ? P.depth[$] : P.depth[Z]) + 1, K[2 * $ + 1] = K[2 * Z + 1] = B, P.heap[1] = B++, Ct(P, K, 1), 2 <= P.heap_len; )
|
|
14648
14639
|
;
|
|
14649
|
-
|
|
14640
|
+
P.heap[--P.heap_max] = P.heap[1], function(dt, Wt) {
|
|
14650
14641
|
var hi, ce, ui, Lt, Vi, Hs, Ce = Wt.dyn_tree, Hn = Wt.max_code, mo = Wt.stat_desc.static_tree, Ro = Wt.stat_desc.has_stree, go = Wt.stat_desc.extra_bits, Wn = Wt.stat_desc.extra_base, fi = Wt.stat_desc.max_length, Yi = 0;
|
|
14651
14642
|
for (Lt = 0; Lt <= T; Lt++)
|
|
14652
14643
|
dt.bl_count[Lt] = 0;
|
|
@@ -14662,34 +14653,34 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14662
14653
|
for (ce = dt.bl_count[Lt]; ce !== 0; )
|
|
14663
14654
|
Hn < (ui = dt.heap[--hi]) || (Ce[2 * ui + 1] !== Lt && (dt.opt_len += (Lt - Ce[2 * ui + 1]) * Ce[2 * ui], Ce[2 * ui + 1] = Lt), ce--);
|
|
14664
14655
|
}
|
|
14665
|
-
}(
|
|
14656
|
+
}(P, U), yt(K, Rt, P.bl_count);
|
|
14666
14657
|
}
|
|
14667
|
-
function A(
|
|
14658
|
+
function A(P, U, $) {
|
|
14668
14659
|
var Z, B, K = -1, st = U[1], J = 0, ct = 7, Rt = 4;
|
|
14669
14660
|
for (st === 0 && (ct = 138, Rt = 3), U[2 * ($ + 1) + 1] = 65535, Z = 0; Z <= $; Z++)
|
|
14670
|
-
B = st, st = U[2 * (Z + 1) + 1], ++J < ct && B === st || (J < Rt ?
|
|
14661
|
+
B = st, st = U[2 * (Z + 1) + 1], ++J < ct && B === st || (J < Rt ? P.bl_tree[2 * B] += J : B !== 0 ? (B !== K && P.bl_tree[2 * B]++, P.bl_tree[2 * R]++) : J <= 10 ? P.bl_tree[2 * S]++ : P.bl_tree[2 * O]++, K = B, Rt = (J = 0) === st ? (ct = 138, 3) : B === st ? (ct = 6, 3) : (ct = 7, 4));
|
|
14671
14662
|
}
|
|
14672
|
-
function X(
|
|
14663
|
+
function X(P, U, $) {
|
|
14673
14664
|
var Z, B, K = -1, st = U[1], J = 0, ct = 7, Rt = 4;
|
|
14674
14665
|
for (st === 0 && (ct = 138, Rt = 3), Z = 0; Z <= $; Z++)
|
|
14675
14666
|
if (B = st, st = U[2 * (Z + 1) + 1], !(++J < ct && B === st)) {
|
|
14676
14667
|
if (J < Rt)
|
|
14677
|
-
for (; tt(
|
|
14668
|
+
for (; tt(P, B, P.bl_tree), --J != 0; )
|
|
14678
14669
|
;
|
|
14679
14670
|
else
|
|
14680
|
-
B !== 0 ? (B !== K && (tt(
|
|
14671
|
+
B !== 0 ? (B !== K && (tt(P, B, P.bl_tree), J--), tt(P, R, P.bl_tree), it(P, J - 3, 2)) : J <= 10 ? (tt(P, S, P.bl_tree), it(P, J - 3, 3)) : (tt(P, O, P.bl_tree), it(P, J - 11, 7));
|
|
14681
14672
|
K = B, Rt = (J = 0) === st ? (ct = 138, 3) : B === st ? (ct = 6, 3) : (ct = 7, 4);
|
|
14682
14673
|
}
|
|
14683
14674
|
}
|
|
14684
14675
|
a(W);
|
|
14685
|
-
var
|
|
14686
|
-
function P
|
|
14687
|
-
it(
|
|
14676
|
+
var z = !1;
|
|
14677
|
+
function _(P, U, $, Z) {
|
|
14678
|
+
it(P, (l << 1) + (Z ? 1 : 0), 3), function(B, K, st, J) {
|
|
14688
14679
|
It(B), ot(B, st), ot(B, ~st), n.arraySet(B.pending_buf, B.window, K, st, B.pending), B.pending += st;
|
|
14689
|
-
}(
|
|
14680
|
+
}(P, U, $);
|
|
14690
14681
|
}
|
|
14691
|
-
s._tr_init = function(
|
|
14692
|
-
|
|
14682
|
+
s._tr_init = function(P) {
|
|
14683
|
+
z || (function() {
|
|
14693
14684
|
var U, $, Z, B, K, st = new Array(T + 1);
|
|
14694
14685
|
for (B = Z = 0; B < h - 1; B++)
|
|
14695
14686
|
for (v[B] = Z, U = 0; U < 1 << y[B]; U++)
|
|
@@ -14713,10 +14704,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14713
14704
|
for (yt(Y, I + 1, st), U = 0; U < u; U++)
|
|
14714
14705
|
N[2 * U + 1] = 5, N[2 * U] = St(U, 5);
|
|
14715
14706
|
q = new nt(Y, y, f + 1, I, T), G = new nt(N, w, 0, u, T), et = new nt(new Array(0), L, 0, d, m);
|
|
14716
|
-
}(),
|
|
14717
|
-
}, s._tr_stored_block =
|
|
14707
|
+
}(), z = !0), P.l_desc = new V(P.dyn_ltree, q), P.d_desc = new V(P.dyn_dtree, G), P.bl_desc = new V(P.bl_tree, et), P.bi_buf = 0, P.bi_valid = 0, at(P);
|
|
14708
|
+
}, s._tr_stored_block = _, s._tr_flush_block = function(P, U, $, Z) {
|
|
14718
14709
|
var B, K, st = 0;
|
|
14719
|
-
0 <
|
|
14710
|
+
0 < P.level ? (P.strm.data_type === 2 && (P.strm.data_type = function(J) {
|
|
14720
14711
|
var ct, Rt = 4093624447;
|
|
14721
14712
|
for (ct = 0; ct <= 31; ct++, Rt >>>= 1)
|
|
14722
14713
|
if (1 & Rt && J.dyn_ltree[2 * ct] !== 0)
|
|
@@ -14727,23 +14718,23 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14727
14718
|
if (J.dyn_ltree[2 * ct] !== 0)
|
|
14728
14719
|
return o;
|
|
14729
14720
|
return r;
|
|
14730
|
-
}(
|
|
14721
|
+
}(P)), Dt(P, P.l_desc), Dt(P, P.d_desc), st = function(J) {
|
|
14731
14722
|
var ct;
|
|
14732
14723
|
for (A(J, J.dyn_ltree, J.l_desc.max_code), A(J, J.dyn_dtree, J.d_desc.max_code), Dt(J, J.bl_desc), ct = d - 1; 3 <= ct && J.bl_tree[2 * b[ct] + 1] === 0; ct--)
|
|
14733
14724
|
;
|
|
14734
14725
|
return J.opt_len += 3 * (ct + 1) + 5 + 5 + 4, ct;
|
|
14735
|
-
}(
|
|
14726
|
+
}(P), B = P.opt_len + 3 + 7 >>> 3, (K = P.static_len + 3 + 7 >>> 3) <= B && (B = K)) : B = K = $ + 5, $ + 4 <= B && U !== -1 ? _(P, U, $, Z) : P.strategy === 4 || K === B ? (it(P, 2 + (Z ? 1 : 0), 3), Ht(P, Y, N)) : (it(P, 4 + (Z ? 1 : 0), 3), function(J, ct, Rt, dt) {
|
|
14736
14727
|
var Wt;
|
|
14737
14728
|
for (it(J, ct - 257, 5), it(J, Rt - 1, 5), it(J, dt - 4, 4), Wt = 0; Wt < dt; Wt++)
|
|
14738
14729
|
it(J, J.bl_tree[2 * b[Wt] + 1], 3);
|
|
14739
14730
|
X(J, J.dyn_ltree, ct - 1), X(J, J.dyn_dtree, Rt - 1);
|
|
14740
|
-
}(
|
|
14741
|
-
}, s._tr_tally = function(
|
|
14742
|
-
return
|
|
14743
|
-
}, s._tr_align = function(
|
|
14744
|
-
it(
|
|
14731
|
+
}(P, P.l_desc.max_code + 1, P.d_desc.max_code + 1, st + 1), Ht(P, P.dyn_ltree, P.dyn_dtree)), at(P), Z && It(P);
|
|
14732
|
+
}, s._tr_tally = function(P, U, $) {
|
|
14733
|
+
return P.pending_buf[P.d_buf + 2 * P.last_lit] = U >>> 8 & 255, P.pending_buf[P.d_buf + 2 * P.last_lit + 1] = 255 & U, P.pending_buf[P.l_buf + P.last_lit] = 255 & $, P.last_lit++, U === 0 ? P.dyn_ltree[2 * $]++ : (P.matches++, U--, P.dyn_ltree[2 * (g[$] + f + 1)]++, P.dyn_dtree[2 * x(U)]++), P.last_lit === P.lit_bufsize - 1;
|
|
14734
|
+
}, s._tr_align = function(P) {
|
|
14735
|
+
it(P, 2, 3), tt(P, F, Y), function(U) {
|
|
14745
14736
|
U.bi_valid === 16 ? (ot(U, U.bi_buf), U.bi_buf = 0, U.bi_valid = 0) : 8 <= U.bi_valid && (U.pending_buf[U.pending++] = 255 & U.bi_buf, U.bi_buf >>= 8, U.bi_valid -= 8);
|
|
14746
|
-
}(
|
|
14737
|
+
}(P);
|
|
14747
14738
|
};
|
|
14748
14739
|
}, { "../utils/common": 41 }], 53: [function(t, e, s) {
|
|
14749
14740
|
e.exports = function() {
|
|
@@ -14892,11 +14883,11 @@ Gn.validate = function(c, i) {
|
|
|
14892
14883
|
a += c[n];
|
|
14893
14884
|
if (a = a.trim(), a[a.length - 1] === "/" && (a = a.substring(0, a.length - 1), n--), !Wc(a)) {
|
|
14894
14885
|
let f;
|
|
14895
|
-
return a.trim().length === 0 ? f = "Invalid space after '<'." : f = "Tag '" + a + "' is an invalid name.",
|
|
14886
|
+
return a.trim().length === 0 ? f = "Invalid space after '<'." : f = "Tag '" + a + "' is an invalid name.", _t("InvalidTag", f, xt(c, n));
|
|
14896
14887
|
}
|
|
14897
14888
|
const l = Yc(c, n);
|
|
14898
14889
|
if (l === !1)
|
|
14899
|
-
return
|
|
14890
|
+
return _t("InvalidAttr", "Attributes for '" + a + "' have open quote.", xt(c, n));
|
|
14900
14891
|
let h = l.value;
|
|
14901
14892
|
if (n = l.index, h[h.length - 1] === "/") {
|
|
14902
14893
|
const f = n - h.length;
|
|
@@ -14905,18 +14896,18 @@ Gn.validate = function(c, i) {
|
|
|
14905
14896
|
if (I === !0)
|
|
14906
14897
|
e = !0;
|
|
14907
14898
|
else
|
|
14908
|
-
return
|
|
14899
|
+
return _t(I.err.code, I.err.msg, xt(c, f + I.err.line));
|
|
14909
14900
|
} else if (o)
|
|
14910
14901
|
if (l.tagClosed) {
|
|
14911
14902
|
if (h.trim().length > 0)
|
|
14912
|
-
return
|
|
14903
|
+
return _t("InvalidTag", "Closing tag '" + a + "' can't have attributes or invalid starting.", xt(c, r));
|
|
14913
14904
|
if (t.length === 0)
|
|
14914
|
-
return
|
|
14905
|
+
return _t("InvalidTag", "Closing tag '" + a + "' has not been opened.", xt(c, r));
|
|
14915
14906
|
{
|
|
14916
14907
|
const f = t.pop();
|
|
14917
14908
|
if (a !== f.tagName) {
|
|
14918
14909
|
let I = xt(c, f.tagStartPos);
|
|
14919
|
-
return
|
|
14910
|
+
return _t(
|
|
14920
14911
|
"InvalidTag",
|
|
14921
14912
|
"Expected closing tag '" + f.tagName + "' (opened in line " + I.line + ", col " + I.col + ") instead of closing tag '" + a + "'.",
|
|
14922
14913
|
xt(c, r)
|
|
@@ -14925,13 +14916,13 @@ Gn.validate = function(c, i) {
|
|
|
14925
14916
|
t.length == 0 && (s = !0);
|
|
14926
14917
|
}
|
|
14927
14918
|
} else
|
|
14928
|
-
return
|
|
14919
|
+
return _t("InvalidTag", "Closing tag '" + a + "' doesn't have proper closing.", xt(c, n));
|
|
14929
14920
|
else {
|
|
14930
14921
|
const f = Br(h, i);
|
|
14931
14922
|
if (f !== !0)
|
|
14932
|
-
return
|
|
14923
|
+
return _t(f.err.code, f.err.msg, xt(c, n - h.length + f.err.line));
|
|
14933
14924
|
if (s === !0)
|
|
14934
|
-
return
|
|
14925
|
+
return _t("InvalidXml", "Multiple possible root nodes found.", xt(c, n));
|
|
14935
14926
|
i.unpairedTags.indexOf(a) !== -1 || t.push({ tagName: a, tagStartPos: r }), e = !0;
|
|
14936
14927
|
}
|
|
14937
14928
|
for (n++; n < c.length; n++)
|
|
@@ -14947,24 +14938,24 @@ Gn.validate = function(c, i) {
|
|
|
14947
14938
|
else if (c[n] === "&") {
|
|
14948
14939
|
const f = kc(c, n);
|
|
14949
14940
|
if (f == -1)
|
|
14950
|
-
return
|
|
14941
|
+
return _t("InvalidChar", "char '&' is not expected.", xt(c, n));
|
|
14951
14942
|
n = f;
|
|
14952
14943
|
} else if (s === !0 && !vr(c[n]))
|
|
14953
|
-
return
|
|
14944
|
+
return _t("InvalidXml", "Extra text at the end", xt(c, n));
|
|
14954
14945
|
c[n] === "<" && n--;
|
|
14955
14946
|
}
|
|
14956
14947
|
} else {
|
|
14957
14948
|
if (vr(c[n]))
|
|
14958
14949
|
continue;
|
|
14959
|
-
return
|
|
14950
|
+
return _t("InvalidChar", "char '" + c[n] + "' is not expected.", xt(c, n));
|
|
14960
14951
|
}
|
|
14961
14952
|
if (e) {
|
|
14962
14953
|
if (t.length == 1)
|
|
14963
|
-
return
|
|
14954
|
+
return _t("InvalidTag", "Unclosed tag '" + t[0].tagName + "'.", xt(c, t[0].tagStartPos));
|
|
14964
14955
|
if (t.length > 0)
|
|
14965
|
-
return
|
|
14956
|
+
return _t("InvalidXml", "Invalid '" + JSON.stringify(t.map((n) => n.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 });
|
|
14966
14957
|
} else
|
|
14967
|
-
return
|
|
14958
|
+
return _t("InvalidXml", "Start tag expected.", 1);
|
|
14968
14959
|
return !0;
|
|
14969
14960
|
};
|
|
14970
14961
|
function vr(c) {
|
|
@@ -14977,7 +14968,7 @@ function Ur(c, i) {
|
|
|
14977
14968
|
if (c[i] == "?" || c[i] == " ") {
|
|
14978
14969
|
const e = c.substr(t, i - t);
|
|
14979
14970
|
if (i > 5 && e === "xml")
|
|
14980
|
-
return
|
|
14971
|
+
return _t("InvalidXml", "XML declaration allowed only at the start of the document.", xt(c, i));
|
|
14981
14972
|
if (c[i] == "?" && c[i + 1] == ">") {
|
|
14982
14973
|
i++;
|
|
14983
14974
|
break;
|
|
@@ -15032,18 +15023,18 @@ function Br(c, i) {
|
|
|
15032
15023
|
const t = zn.getAllMatches(c, Gc), e = {};
|
|
15033
15024
|
for (let s = 0; s < t.length; s++) {
|
|
15034
15025
|
if (t[s][1].length === 0)
|
|
15035
|
-
return
|
|
15026
|
+
return _t("InvalidAttr", "Attribute '" + t[s][2] + "' has no space in starting.", yi(t[s]));
|
|
15036
15027
|
if (t[s][3] !== void 0 && t[s][4] === void 0)
|
|
15037
|
-
return
|
|
15028
|
+
return _t("InvalidAttr", "Attribute '" + t[s][2] + "' is without value.", yi(t[s]));
|
|
15038
15029
|
if (t[s][3] === void 0 && !i.allowBooleanAttributes)
|
|
15039
|
-
return
|
|
15030
|
+
return _t("InvalidAttr", "boolean attribute '" + t[s][2] + "' is not allowed.", yi(t[s]));
|
|
15040
15031
|
const n = t[s][2];
|
|
15041
15032
|
if (!Hc(n))
|
|
15042
|
-
return
|
|
15033
|
+
return _t("InvalidAttr", "Attribute '" + n + "' is an invalid name.", yi(t[s]));
|
|
15043
15034
|
if (!e.hasOwnProperty(n))
|
|
15044
15035
|
e[n] = 1;
|
|
15045
15036
|
else
|
|
15046
|
-
return
|
|
15037
|
+
return _t("InvalidAttr", "Attribute '" + n + "' is repeated.", yi(t[s]));
|
|
15047
15038
|
}
|
|
15048
15039
|
return !0;
|
|
15049
15040
|
}
|
|
@@ -15071,7 +15062,7 @@ function kc(c, i) {
|
|
|
15071
15062
|
}
|
|
15072
15063
|
return i;
|
|
15073
15064
|
}
|
|
15074
|
-
function
|
|
15065
|
+
function _t(c, i, t) {
|
|
15075
15066
|
return {
|
|
15076
15067
|
err: {
|
|
15077
15068
|
code: c,
|
|
@@ -15308,7 +15299,7 @@ function El(c, i, t, e, s, n, r) {
|
|
|
15308
15299
|
if (c !== void 0 && (this.options.trimValues && !e && (c = c.trim()), c.length > 0)) {
|
|
15309
15300
|
r || (c = this.replaceEntitiesValue(c));
|
|
15310
15301
|
const o = this.options.tagValueProcessor(i, c, t, s, n);
|
|
15311
|
-
return o == null ? c : typeof o != typeof c || o !== c ? o : this.options.trimValues ?
|
|
15302
|
+
return o == null ? c : typeof o != typeof c || o !== c ? o : this.options.trimValues ? Pn(c, this.options.parseTagValue, this.options.numberParseOptions) : c.trim() === c ? Pn(c, this.options.parseTagValue, this.options.numberParseOptions) : c;
|
|
15312
15303
|
}
|
|
15313
15304
|
}
|
|
15314
15305
|
function pl(c) {
|
|
@@ -15331,7 +15322,7 @@ function Tl(c, i, t) {
|
|
|
15331
15322
|
if (this.options.transformAttributeName && (l = this.options.transformAttributeName(l)), l === "__proto__" && (l = "#__proto__"), a !== void 0) {
|
|
15332
15323
|
this.options.trimValues && (a = a.trim()), a = this.replaceEntitiesValue(a);
|
|
15333
15324
|
const h = this.options.attributeValueProcessor(o, a, i);
|
|
15334
|
-
h == null ? n[l] = a : typeof h != typeof a || h !== a ? n[l] = h : n[l] =
|
|
15325
|
+
h == null ? n[l] = a : typeof h != typeof a || h !== a ? n[l] = h : n[l] = Pn(
|
|
15335
15326
|
a,
|
|
15336
15327
|
this.options.parseAttributeValue,
|
|
15337
15328
|
this.options.numberParseOptions
|
|
@@ -15546,7 +15537,7 @@ function Ol(c, i, t) {
|
|
|
15546
15537
|
n && ((n && n.tagName) === i && n.tagExp[n.tagExp.length - 1] !== "/" && s++, t = n.closeIndex);
|
|
15547
15538
|
}
|
|
15548
15539
|
}
|
|
15549
|
-
function
|
|
15540
|
+
function Pn(c, i, t) {
|
|
15550
15541
|
if (i && typeof c == "string") {
|
|
15551
15542
|
const e = c.trim();
|
|
15552
15543
|
return e === "true" ? !0 : e === "false" ? !1 : fl(c, t);
|
|
@@ -15570,8 +15561,8 @@ function Io(c, i, t) {
|
|
|
15570
15561
|
continue;
|
|
15571
15562
|
if (r[o]) {
|
|
15572
15563
|
let l = Io(r[o], i, a);
|
|
15573
|
-
const h =
|
|
15574
|
-
r[":@"] ?
|
|
15564
|
+
const h = _l(l, i);
|
|
15565
|
+
r[":@"] ? Pl(l, r[":@"], a, i) : Object.keys(l).length === 1 && l[i.textNodeName] !== void 0 && !i.alwaysCreateTextNode ? l = l[i.textNodeName] : Object.keys(l).length === 0 && (i.alwaysCreateTextNode ? l[i.textNodeName] = "" : l = ""), s[o] !== void 0 && s.hasOwnProperty(o) ? (Array.isArray(s[o]) || (s[o] = [s[o]]), s[o].push(l)) : i.isArray(o, a, h) ? s[o] = [l] : s[o] = l;
|
|
15575
15566
|
}
|
|
15576
15567
|
}
|
|
15577
15568
|
}
|
|
@@ -15585,7 +15576,7 @@ function Ll(c) {
|
|
|
15585
15576
|
return e;
|
|
15586
15577
|
}
|
|
15587
15578
|
}
|
|
15588
|
-
function
|
|
15579
|
+
function Pl(c, i, t, e) {
|
|
15589
15580
|
if (i) {
|
|
15590
15581
|
const s = Object.keys(i), n = s.length;
|
|
15591
15582
|
for (let r = 0; r < n; r++) {
|
|
@@ -15594,7 +15585,7 @@ function _l(c, i, t, e) {
|
|
|
15594
15585
|
}
|
|
15595
15586
|
}
|
|
15596
15587
|
}
|
|
15597
|
-
function
|
|
15588
|
+
function _l(c, i) {
|
|
15598
15589
|
const { textNodeName: t } = i, e = Object.keys(c).length;
|
|
15599
15590
|
return !!(e === 0 || e === 1 && (c[t] || typeof c[t] == "boolean" || c[t] === 0));
|
|
15600
15591
|
}
|
|
@@ -15862,7 +15853,7 @@ var Co = {
|
|
|
15862
15853
|
XMLValidator: Zl,
|
|
15863
15854
|
XMLBuilder: ql
|
|
15864
15855
|
};
|
|
15865
|
-
class
|
|
15856
|
+
class _n {
|
|
15866
15857
|
/**
|
|
15867
15858
|
* Constructs a new BCF Topic Comment instance.
|
|
15868
15859
|
* @param components - The Components instance.
|
|
@@ -16084,7 +16075,7 @@ const Ie = class Ie {
|
|
|
16084
16075
|
* ```
|
|
16085
16076
|
*/
|
|
16086
16077
|
createComment(i, t) {
|
|
16087
|
-
const e = new
|
|
16078
|
+
const e = new _n(this._components, i);
|
|
16088
16079
|
return e.viewpoint = t, e.topic = this, this.comments.set(e.guid, e), e;
|
|
16089
16080
|
}
|
|
16090
16081
|
createLabelTags(i = this._managerVersion) {
|
|
@@ -16610,9 +16601,9 @@ ${o}
|
|
|
16610
16601
|
Comment: r,
|
|
16611
16602
|
Viewpoint: o
|
|
16612
16603
|
} = t;
|
|
16613
|
-
if (!(e && s && n && (
|
|
16604
|
+
if (!(e && s && n && (_n || o)))
|
|
16614
16605
|
return null;
|
|
16615
|
-
const a = this.components.get(ie), l = new
|
|
16606
|
+
const a = this.components.get(ie), l = new _n(this.components, r ?? "");
|
|
16616
16607
|
return l.guid = e, l.date = new Date(s), l.author = n, l.viewpoint = o != null && o.Guid ? a.list.get(o.Guid) : void 0, l.modifiedAuthor = t.ModifiedAuthor, l.modifiedDate = t.ModifiedDate ? new Date(t.ModifiedDate) : void 0, l;
|
|
16617
16608
|
}
|
|
16618
16609
|
getMarkupComments(t, e) {
|
|
@@ -17093,7 +17084,7 @@ const ee = class ee extends At {
|
|
|
17093
17084
|
};
|
|
17094
17085
|
C(ee, "uuid", "d1444724-dba6-4cdd-a0c7-68ee1450d166");
|
|
17095
17086
|
let wn = ee;
|
|
17096
|
-
const
|
|
17087
|
+
const _s = class _s {
|
|
17097
17088
|
constructor(i) {
|
|
17098
17089
|
/**
|
|
17099
17090
|
* Event used to notify the progress when performing a query on an IFC file.
|
|
@@ -17125,7 +17116,7 @@ const Ps = class Ps {
|
|
|
17125
17116
|
* @param data the data of the query to import as a serializable object.
|
|
17126
17117
|
*/
|
|
17127
17118
|
static import(i, t) {
|
|
17128
|
-
const e =
|
|
17119
|
+
const e = _s.importers.get(t.type);
|
|
17129
17120
|
return e ? e(i, t) : (console.warn("Invalid query data:.", t), null);
|
|
17130
17121
|
}
|
|
17131
17122
|
/**
|
|
@@ -17250,7 +17241,7 @@ const Ps = class Ps {
|
|
|
17250
17241
|
n = !1;
|
|
17251
17242
|
break;
|
|
17252
17243
|
}
|
|
17253
|
-
if (s === null && (s = Object.keys(new
|
|
17244
|
+
if (s === null && (s = Object.keys(new k.IFC4[t]()), s = s.slice(2), s === null)) {
|
|
17254
17245
|
if (this.inclusive)
|
|
17255
17246
|
continue;
|
|
17256
17247
|
n = !1;
|
|
@@ -17331,8 +17322,8 @@ const Ps = class Ps {
|
|
|
17331
17322
|
/**
|
|
17332
17323
|
* The list of functions to import the queries. If you create your own custom query, you should add its importer here. See the other queries provided by the library for reference.
|
|
17333
17324
|
*/
|
|
17334
|
-
C(
|
|
17335
|
-
let se =
|
|
17325
|
+
C(_s, "importers", /* @__PURE__ */ new Map());
|
|
17326
|
+
let se = _s;
|
|
17336
17327
|
class Yr {
|
|
17337
17328
|
constructor(i) {
|
|
17338
17329
|
/**
|
|
@@ -17498,7 +17489,7 @@ const Ms = class Ms extends se {
|
|
|
17498
17489
|
* {@link IfcFinderQuery.items}
|
|
17499
17490
|
*/
|
|
17500
17491
|
get items() {
|
|
17501
|
-
const t = this.components.get(
|
|
17492
|
+
const t = this.components.get(Gt), e = this.components.get(Tt), s = [];
|
|
17502
17493
|
for (const n in this.ids) {
|
|
17503
17494
|
const r = e.groups.get(n);
|
|
17504
17495
|
if (!r) {
|
|
@@ -17883,7 +17874,7 @@ const bs = class bs extends At {
|
|
|
17883
17874
|
*/
|
|
17884
17875
|
async bySpatialStructure(t, e = {}) {
|
|
17885
17876
|
var l, h;
|
|
17886
|
-
const s = this.components.get(
|
|
17877
|
+
const s = this.components.get(Gt), n = s.relationMaps[t.uuid];
|
|
17887
17878
|
if (!n)
|
|
17888
17879
|
throw new Error(
|
|
17889
17880
|
`Classifier: model relations of ${t.name || t.uuid} have to exists to group by spatial structure.`
|
|
@@ -18156,22 +18147,22 @@ const xs = class xs extends At {
|
|
|
18156
18147
|
* Event triggered when geometry is streamed.
|
|
18157
18148
|
* Contains the streamed geometry data and its buffer.
|
|
18158
18149
|
*/
|
|
18159
|
-
C(this, "onGeometryStreamed", new
|
|
18150
|
+
C(this, "onGeometryStreamed", new _e());
|
|
18160
18151
|
/**
|
|
18161
18152
|
* Event triggered when assets are streamed.
|
|
18162
18153
|
* Contains the streamed assets.
|
|
18163
18154
|
*/
|
|
18164
|
-
C(this, "onAssetStreamed", new
|
|
18155
|
+
C(this, "onAssetStreamed", new _e());
|
|
18165
18156
|
/**
|
|
18166
18157
|
* Event triggered to indicate the progress of the streaming process.
|
|
18167
18158
|
* Contains the progress percentage.
|
|
18168
18159
|
*/
|
|
18169
|
-
C(this, "onProgress", new
|
|
18160
|
+
C(this, "onProgress", new _e());
|
|
18170
18161
|
/**
|
|
18171
18162
|
* Event triggered when the IFC file is loaded.
|
|
18172
18163
|
* Contains the loaded IFC file data.
|
|
18173
18164
|
*/
|
|
18174
|
-
C(this, "onIfcLoaded", new
|
|
18165
|
+
C(this, "onIfcLoaded", new _e());
|
|
18175
18166
|
/** {@link Disposable.onDisposed} */
|
|
18176
18167
|
C(this, "onDisposed", new j());
|
|
18177
18168
|
/**
|
|
@@ -18183,7 +18174,7 @@ const xs = class xs extends At {
|
|
|
18183
18174
|
/**
|
|
18184
18175
|
* The WebIFC API instance used for IFC file processing.
|
|
18185
18176
|
*/
|
|
18186
|
-
C(this, "webIfc", new
|
|
18177
|
+
C(this, "webIfc", new k.IfcAPI());
|
|
18187
18178
|
C(this, "_nextAvailableID", 0);
|
|
18188
18179
|
C(this, "_splittedGeometries", /* @__PURE__ */ new Map());
|
|
18189
18180
|
C(this, "_spatialTree", new no());
|
|
@@ -18196,7 +18187,7 @@ const xs = class xs extends At {
|
|
|
18196
18187
|
C(this, "_groupSerializer", new Qt.Serializer());
|
|
18197
18188
|
C(this, "_assets", []);
|
|
18198
18189
|
C(this, "_meshesWithHoles", /* @__PURE__ */ new Set());
|
|
18199
|
-
this.components.add(xs.uuid, this), this.settings.excludedCategories.add(
|
|
18190
|
+
this.components.add(xs.uuid, this), this.settings.excludedCategories.add(k.IFCOPENINGELEMENT);
|
|
18200
18191
|
}
|
|
18201
18192
|
/** {@link Disposable.dispose} */
|
|
18202
18193
|
dispose() {
|
|
@@ -18257,7 +18248,7 @@ const xs = class xs extends At {
|
|
|
18257
18248
|
};
|
|
18258
18249
|
let o = 0, a = 0;
|
|
18259
18250
|
for (const E of s) {
|
|
18260
|
-
if (!this.webIfc.IsIfcElement(E) && E !==
|
|
18251
|
+
if (!this.webIfc.IsIfcElement(E) && E !== k.IFCSPACE || this.settings.excludedCategories.has(E))
|
|
18261
18252
|
continue;
|
|
18262
18253
|
const T = this.webIfc.GetLineIDsWithType(0, E), p = T.size();
|
|
18263
18254
|
for (let m = 0; m < p; m++) {
|
|
@@ -18297,7 +18288,7 @@ const xs = class xs extends At {
|
|
|
18297
18288
|
this.webIfc.Dispose();
|
|
18298
18289
|
} catch {
|
|
18299
18290
|
}
|
|
18300
|
-
this.webIfc = null, this.webIfc = new
|
|
18291
|
+
this.webIfc = null, this.webIfc = new k.IfcAPI(), this._visitedGeometries.clear(), this._geometries.clear(), this._assets = [], this._meshesWithHoles.clear();
|
|
18301
18292
|
}
|
|
18302
18293
|
getMesh(t, e, s) {
|
|
18303
18294
|
const n = e.geometries.size(), r = e.expressID, o = { id: r, geometries: [] };
|
|
@@ -18425,17 +18416,17 @@ class eh extends At {
|
|
|
18425
18416
|
* An event that is triggered when properties are streamed from the IFC file.
|
|
18426
18417
|
* The event provides the type of the IFC entity and the corresponding data.
|
|
18427
18418
|
*/
|
|
18428
|
-
C(this, "onPropertiesStreamed", new
|
|
18419
|
+
C(this, "onPropertiesStreamed", new _e());
|
|
18429
18420
|
/**
|
|
18430
18421
|
* An event that is triggered to indicate the progress of the streaming process.
|
|
18431
18422
|
* The event provides a number between 0 and 1 representing the progress percentage.
|
|
18432
18423
|
*/
|
|
18433
|
-
C(this, "onProgress", new
|
|
18424
|
+
C(this, "onProgress", new _e());
|
|
18434
18425
|
/**
|
|
18435
18426
|
* An event that is triggered when indices are streamed from the IFC file.
|
|
18436
18427
|
* The event provides a map of indices, where the key is the entity type and the value is another map of indices.
|
|
18437
18428
|
*/
|
|
18438
|
-
C(this, "onIndicesStreamed", new
|
|
18429
|
+
C(this, "onIndicesStreamed", new _e());
|
|
18439
18430
|
/** {@link Disposable.onDisposed} */
|
|
18440
18431
|
C(this, "onDisposed", new j());
|
|
18441
18432
|
/** {@link Component.enabled} */
|
|
@@ -18447,7 +18438,7 @@ class eh extends At {
|
|
|
18447
18438
|
/**
|
|
18448
18439
|
* An instance of the IfcAPI class from the Web-IFC library, which provides methods for reading and processing IFC data.
|
|
18449
18440
|
*/
|
|
18450
|
-
C(this, "webIfc", new
|
|
18441
|
+
C(this, "webIfc", new k.IfcAPI());
|
|
18451
18442
|
}
|
|
18452
18443
|
/** {@link Disposable.dispose} */
|
|
18453
18444
|
async dispose() {
|
|
@@ -18481,11 +18472,11 @@ class eh extends At {
|
|
|
18481
18472
|
}
|
|
18482
18473
|
async streamAllProperties() {
|
|
18483
18474
|
const { propertiesSize: t } = this.settings, e = new Set(this.webIfc.GetIfcEntityList(0)), s = /* @__PURE__ */ new Set([
|
|
18484
|
-
|
|
18485
|
-
|
|
18486
|
-
|
|
18487
|
-
|
|
18488
|
-
|
|
18475
|
+
k.IFCPROJECT,
|
|
18476
|
+
k.IFCSITE,
|
|
18477
|
+
k.IFCBUILDING,
|
|
18478
|
+
k.IFCBUILDINGSTOREY,
|
|
18479
|
+
k.IFCSPACE
|
|
18489
18480
|
]);
|
|
18490
18481
|
for (const l of s)
|
|
18491
18482
|
e.add(l);
|
|
@@ -18525,11 +18516,11 @@ class eh extends At {
|
|
|
18525
18516
|
r / e.size > n && (n = Math.round(n * 100) / 100, await this.onProgress.trigger(n), n += 0.01);
|
|
18526
18517
|
}
|
|
18527
18518
|
await this.onProgress.trigger(1);
|
|
18528
|
-
const a = await this.components.get(
|
|
18519
|
+
const a = await this.components.get(Gt).processFromWebIfc(this.webIfc, 0);
|
|
18529
18520
|
await this.onIndicesStreamed.trigger(a);
|
|
18530
18521
|
}
|
|
18531
18522
|
cleanUp() {
|
|
18532
|
-
this.webIfc.Dispose(), this.webIfc = null, this.webIfc = new
|
|
18523
|
+
this.webIfc.Dispose(), this.webIfc = null, this.webIfc = new k.IfcAPI();
|
|
18533
18524
|
}
|
|
18534
18525
|
}
|
|
18535
18526
|
/**
|
|
@@ -18748,7 +18739,7 @@ class To {
|
|
|
18748
18739
|
throw new Error(
|
|
18749
18740
|
"Viewpoint: the world's camera need controls to set the viewpoint."
|
|
18750
18741
|
);
|
|
18751
|
-
t instanceof
|
|
18742
|
+
t instanceof Pc && t.projection.set(this.projection);
|
|
18752
18743
|
const e = new D.Vector3(
|
|
18753
18744
|
this.camera.position.x,
|
|
18754
18745
|
this.camera.position.y,
|
|
@@ -19704,7 +19695,7 @@ class ks {
|
|
|
19704
19695
|
this.testResult.push(n);
|
|
19705
19696
|
}
|
|
19706
19697
|
}
|
|
19707
|
-
const
|
|
19698
|
+
const Re = (c, i) => {
|
|
19708
19699
|
let t = "";
|
|
19709
19700
|
return i ? (i.type === "simple" && (t = `<ids:simpleValue>${i.parameter}</ids:simpleValue>`), i.type === "enumeration" && (t = `<xs:restriction base="xs:string">
|
|
19710
19701
|
${i.parameter.map((n) => `<xs:enumeration value="${n}" />`).join(`\r
|
|
@@ -19723,7 +19714,7 @@ class rh extends ks {
|
|
|
19723
19714
|
this.name = e;
|
|
19724
19715
|
}
|
|
19725
19716
|
serialize(t) {
|
|
19726
|
-
const e =
|
|
19717
|
+
const e = Re("Name", this.name), s = Re("Value", this.value);
|
|
19727
19718
|
let n = "";
|
|
19728
19719
|
return t === "requirement" && (n += `cardinality="${this.cardinality}"`, n += this.instructions ? `instructions="${this.instructions}"` : ""), `<ids:attribute ${n}>
|
|
19729
19720
|
${e}
|
|
@@ -19825,7 +19816,7 @@ class oh extends ks {
|
|
|
19825
19816
|
this.system = e;
|
|
19826
19817
|
}
|
|
19827
19818
|
serialize(t) {
|
|
19828
|
-
const e =
|
|
19819
|
+
const e = Re("System", this.system), s = Re("Value", this.value);
|
|
19829
19820
|
let n = "";
|
|
19830
19821
|
return t === "requirement" && (n += `cardinality="${this.cardinality}"`, n += this.uri ? `uri=${this.uri}` : "", n += this.instructions ? `instructions="${this.instructions}"` : ""), `<ids:classification ${n}>
|
|
19831
19822
|
${e}
|
|
@@ -19835,9 +19826,9 @@ class oh extends ks {
|
|
|
19835
19826
|
async getEntities(t, e = {}) {
|
|
19836
19827
|
var h;
|
|
19837
19828
|
const s = [], n = await t.getAllPropertiesOfType(
|
|
19838
|
-
|
|
19829
|
+
k.IFCCLASSIFICATIONREFERENCE
|
|
19839
19830
|
), r = await t.getAllPropertiesOfType(
|
|
19840
|
-
|
|
19831
|
+
k.IFCCLASSIFICATION
|
|
19841
19832
|
), o = { ...n, ...r }, a = [];
|
|
19842
19833
|
for (const f in o) {
|
|
19843
19834
|
const I = Number(f), u = await t.getProperties(I);
|
|
@@ -19849,7 +19840,7 @@ class oh extends ks {
|
|
|
19849
19840
|
const E = await t.getProperties(d);
|
|
19850
19841
|
!E || !this.evalSystem(E) || !this.evalValue(u) || !this.evalURI(u) || a.push(I);
|
|
19851
19842
|
}
|
|
19852
|
-
const l = this.components.get(
|
|
19843
|
+
const l = this.components.get(Gt);
|
|
19853
19844
|
for (const f of a) {
|
|
19854
19845
|
const I = l.getEntitiesWithRelation(
|
|
19855
19846
|
t,
|
|
@@ -19884,7 +19875,7 @@ class oh extends ks {
|
|
|
19884
19875
|
continue;
|
|
19885
19876
|
if (f = !1, !(this.value && this.system))
|
|
19886
19877
|
break;
|
|
19887
|
-
if (d.type !==
|
|
19878
|
+
if (d.type !== k.IFCCLASSIFICATIONREFERENCE)
|
|
19888
19879
|
continue;
|
|
19889
19880
|
const T = !this.value || this.evalValue(d, l), p = !this.uri || this.evalURI(d, l);
|
|
19890
19881
|
if (T && p)
|
|
@@ -19909,14 +19900,14 @@ class oh extends ks {
|
|
|
19909
19900
|
if (!s)
|
|
19910
19901
|
return null;
|
|
19911
19902
|
const n = await t.getProperties(s);
|
|
19912
|
-
return n ? (n.type ===
|
|
19903
|
+
return n ? (n.type === k.IFCCLASSIFICATIONREFERENCE && (n.ReferencedSource = await this.processReferencedSource(
|
|
19913
19904
|
t,
|
|
19914
19905
|
n
|
|
19915
19906
|
)), n) : null;
|
|
19916
19907
|
}
|
|
19917
19908
|
async getSystems(t, e) {
|
|
19918
19909
|
var f;
|
|
19919
|
-
const s = [], n = this.components.get(
|
|
19910
|
+
const s = [], n = this.components.get(Gt), r = n.getEntityRelations(
|
|
19920
19911
|
t,
|
|
19921
19912
|
e,
|
|
19922
19913
|
"HasAssociations"
|
|
@@ -19924,14 +19915,14 @@ class oh extends ks {
|
|
|
19924
19915
|
if (r)
|
|
19925
19916
|
for (const I of r) {
|
|
19926
19917
|
const u = await t.getProperties(I);
|
|
19927
|
-
u && (u.type ===
|
|
19918
|
+
u && (u.type === k.IFCCLASSIFICATION && s.push(u), u.type === k.IFCCLASSIFICATIONREFERENCE && (u.ReferencedSource = await this.processReferencedSource(
|
|
19928
19919
|
t,
|
|
19929
19920
|
u
|
|
19930
19921
|
), u.ReferencedSource && s.push(u)));
|
|
19931
19922
|
}
|
|
19932
19923
|
const o = s.map((I) => {
|
|
19933
19924
|
var u, d, E;
|
|
19934
|
-
return I.type ===
|
|
19925
|
+
return I.type === k.IFCCLASSIFICATION ? (u = I.Name) == null ? void 0 : u.value : I.type === k.IFCCLASSIFICATIONREFERENCE ? (E = (d = I.ReferencedSource) == null ? void 0 : d.Name) == null ? void 0 : E.value : null;
|
|
19935
19926
|
}).filter((I) => I), a = n.getEntityRelations(t, e, "IsTypedBy");
|
|
19936
19927
|
if (!(a && a[0]))
|
|
19937
19928
|
return s;
|
|
@@ -19944,12 +19935,12 @@ class oh extends ks {
|
|
|
19944
19935
|
for (const I of h) {
|
|
19945
19936
|
const u = await t.getProperties(I);
|
|
19946
19937
|
if (u) {
|
|
19947
|
-
if (u.type ===
|
|
19938
|
+
if (u.type === k.IFCCLASSIFICATION) {
|
|
19948
19939
|
if (o.includes((f = u.Name) == null ? void 0 : f.value))
|
|
19949
19940
|
continue;
|
|
19950
19941
|
s.push(u);
|
|
19951
19942
|
}
|
|
19952
|
-
u.type ===
|
|
19943
|
+
u.type === k.IFCCLASSIFICATIONREFERENCE && (u.ReferencedSource = await this.processReferencedSource(
|
|
19953
19944
|
t,
|
|
19954
19945
|
u
|
|
19955
19946
|
), u.ReferencedSource && s.push(u));
|
|
@@ -19959,18 +19950,18 @@ class oh extends ks {
|
|
|
19959
19950
|
}
|
|
19960
19951
|
getSystemName(t) {
|
|
19961
19952
|
var e, s, n, r;
|
|
19962
|
-
if (t.type ===
|
|
19953
|
+
if (t.type === k.IFCCLASSIFICATION)
|
|
19963
19954
|
return (e = t.Name) == null ? void 0 : e.value;
|
|
19964
|
-
if (t.type ===
|
|
19965
|
-
if (((s = t.ReferencedSource) == null ? void 0 : s.type) ===
|
|
19955
|
+
if (t.type === k.IFCCLASSIFICATIONREFERENCE) {
|
|
19956
|
+
if (((s = t.ReferencedSource) == null ? void 0 : s.type) === k.IFCCLASSIFICATIONREFERENCE)
|
|
19966
19957
|
return this.getSystemName(t.ReferencedSource);
|
|
19967
|
-
if (((n = t.ReferencedSource) == null ? void 0 : n.type) ===
|
|
19958
|
+
if (((n = t.ReferencedSource) == null ? void 0 : n.type) === k.IFCCLASSIFICATION)
|
|
19968
19959
|
return (r = t.ReferencedSource.Name) == null ? void 0 : r.value;
|
|
19969
19960
|
}
|
|
19970
19961
|
return null;
|
|
19971
19962
|
}
|
|
19972
19963
|
getAllReferenceIdentifications(t) {
|
|
19973
|
-
if (t.type !==
|
|
19964
|
+
if (t.type !== k.IFCCLASSIFICATIONREFERENCE)
|
|
19974
19965
|
return null;
|
|
19975
19966
|
const e = [];
|
|
19976
19967
|
if (t.Identification && e.push(t.Identification.value), t.ReferencedSource) {
|
|
@@ -20023,7 +20014,7 @@ class ah extends ks {
|
|
|
20023
20014
|
this.name = e;
|
|
20024
20015
|
}
|
|
20025
20016
|
serialize(t) {
|
|
20026
|
-
const e =
|
|
20017
|
+
const e = Re("Name", this.name), s = Re("Name", this.predefinedType);
|
|
20027
20018
|
let n = "";
|
|
20028
20019
|
return t === "requirement" && (n += `cardinality="${this.cardinality}"`, n += this.instructions ? `instructions="${this.instructions}"` : ""), `<ids:entity ${n}>
|
|
20029
20020
|
${e}
|
|
@@ -20079,7 +20070,7 @@ class ah extends ks {
|
|
|
20079
20070
|
var l, h, f, I;
|
|
20080
20071
|
if (!this.predefinedType)
|
|
20081
20072
|
return null;
|
|
20082
|
-
const n = this.components.get(
|
|
20073
|
+
const n = this.components.get(Gt), r = typeof this.predefinedType.parameter == "string" && this.predefinedType.parameter === "USERDEFINED";
|
|
20083
20074
|
let o = (l = e.PredefinedType) == null ? void 0 : l.value;
|
|
20084
20075
|
if (o === "USERDEFINED" && !r) {
|
|
20085
20076
|
const d = Object.keys(e).find(
|
|
@@ -20119,14 +20110,15 @@ class ch extends ks {
|
|
|
20119
20110
|
C(this, "value");
|
|
20120
20111
|
C(this, "dataType");
|
|
20121
20112
|
C(this, "uri");
|
|
20113
|
+
// These are defined by the IDS specification
|
|
20122
20114
|
C(this, "_unsupportedTypes", [
|
|
20123
|
-
|
|
20124
|
-
|
|
20115
|
+
k.IFCCOMPLEXPROPERTY,
|
|
20116
|
+
k.IFCPHYSICALCOMPLEXQUANTITY
|
|
20125
20117
|
]);
|
|
20126
20118
|
this.propertySet = e, this.baseName = s;
|
|
20127
20119
|
}
|
|
20128
20120
|
serialize(t) {
|
|
20129
|
-
const e =
|
|
20121
|
+
const e = Re("PropertySet", this.propertySet), s = Re("BaseName", this.baseName), n = Re("Value", this.value), r = this.dataType ? `dataType=${this.dataType}` : "";
|
|
20130
20122
|
let o = "";
|
|
20131
20123
|
return t === "requirement" && (o += `cardinality="${this.cardinality}"`, o += this.uri ? `uri=${this.uri}` : "", o += this.instructions ? `instructions="${this.instructions}"` : ""), `<ids:property ${r} ${o}>
|
|
20132
20124
|
${e}
|
|
@@ -20137,9 +20129,9 @@ class ch extends ks {
|
|
|
20137
20129
|
async getEntities(t, e = {}) {
|
|
20138
20130
|
var l, h;
|
|
20139
20131
|
let s = {};
|
|
20140
|
-
const n = await t.getAllPropertiesOfType(
|
|
20132
|
+
const n = await t.getAllPropertiesOfType(k.IFCPROPERTYSET);
|
|
20141
20133
|
s = { ...s, ...n };
|
|
20142
|
-
const r = await t.getAllPropertiesOfType(
|
|
20134
|
+
const r = await t.getAllPropertiesOfType(k.IFCELEMENTQUANTITY);
|
|
20143
20135
|
if (s = { ...s, ...r }, Object.keys(s).length === 0)
|
|
20144
20136
|
return [];
|
|
20145
20137
|
const o = [];
|
|
@@ -20148,7 +20140,7 @@ class ch extends ks {
|
|
|
20148
20140
|
if (!u || !(((l = u.Name) == null ? void 0 : l.value) === this.propertySet.parameter))
|
|
20149
20141
|
continue;
|
|
20150
20142
|
let E;
|
|
20151
|
-
if (u.type ===
|
|
20143
|
+
if (u.type === k.IFCPROPERTYSET && (E = "HasProperties"), u.type === k.IFCELEMENTQUANTITY && (E = "Quantities"), !!E)
|
|
20152
20144
|
for (const T of u[E]) {
|
|
20153
20145
|
const p = await t.getProperties(T.value);
|
|
20154
20146
|
if (!(!p || !(((h = p.Name) == null ? void 0 : h.value) === this.baseName.parameter))) {
|
|
@@ -20163,7 +20155,7 @@ class ch extends ks {
|
|
|
20163
20155
|
}
|
|
20164
20156
|
}
|
|
20165
20157
|
}
|
|
20166
|
-
const a = this.components.get(
|
|
20158
|
+
const a = this.components.get(Gt);
|
|
20167
20159
|
for (const f of o) {
|
|
20168
20160
|
const I = a.getEntitiesWithRelation(
|
|
20169
20161
|
t,
|
|
@@ -20256,16 +20248,41 @@ class ch extends ks {
|
|
|
20256
20248
|
}
|
|
20257
20249
|
getItemsAttrName(t) {
|
|
20258
20250
|
let e;
|
|
20259
|
-
return t ===
|
|
20251
|
+
return t === k.IFCPROPERTYSET && (e = "HasProperties"), t === k.IFCELEMENTQUANTITY && (e = "Quantities"), e;
|
|
20260
20252
|
}
|
|
20261
20253
|
getValueKey(t) {
|
|
20262
20254
|
return Object.keys(t).find(
|
|
20263
20255
|
(e) => e.endsWith("Value") || e.endsWith("Values")
|
|
20264
20256
|
);
|
|
20265
20257
|
}
|
|
20266
|
-
|
|
20258
|
+
async getPsetProps(t, e, s) {
|
|
20259
|
+
const n = structuredClone(e), r = [], o = n[s];
|
|
20260
|
+
if (!o)
|
|
20261
|
+
return r;
|
|
20262
|
+
for (const { value: a } of o) {
|
|
20263
|
+
const l = await t.getProperties(a);
|
|
20264
|
+
l && r.push(l);
|
|
20265
|
+
}
|
|
20266
|
+
return n[s] = r, n;
|
|
20267
|
+
}
|
|
20268
|
+
async getTypePsets(t, e) {
|
|
20269
|
+
const s = [], r = this.components.get(Gt).getEntityRelations(t, e, "IsTypedBy");
|
|
20270
|
+
if (!(r && r[0]))
|
|
20271
|
+
return s;
|
|
20272
|
+
const o = await t.getProperties(r[0]);
|
|
20273
|
+
if (!(o && "HasPropertySets" in o && Array.isArray(o.HasPropertySets)))
|
|
20274
|
+
return s;
|
|
20275
|
+
for (const { value: a } of o.HasPropertySets) {
|
|
20276
|
+
const l = await t.getProperties(a);
|
|
20277
|
+
if (!(l && "HasProperties" in l && Array.isArray(l.HasProperties)))
|
|
20278
|
+
continue;
|
|
20279
|
+
const h = await this.getPsetProps(t, l, "HasProperties");
|
|
20280
|
+
s.push(h);
|
|
20281
|
+
}
|
|
20282
|
+
return s;
|
|
20283
|
+
}
|
|
20267
20284
|
async getPsets(t, e) {
|
|
20268
|
-
const s =
|
|
20285
|
+
const s = await this.getTypePsets(t, e), r = this.components.get(Gt).getEntityRelations(
|
|
20269
20286
|
t,
|
|
20270
20287
|
e,
|
|
20271
20288
|
"IsDefinedBy"
|
|
@@ -20279,12 +20296,8 @@ class ch extends ks {
|
|
|
20279
20296
|
const l = this.getItemsAttrName(a.type);
|
|
20280
20297
|
if (!l)
|
|
20281
20298
|
continue;
|
|
20282
|
-
const h =
|
|
20283
|
-
|
|
20284
|
-
const u = await t.getProperties(I);
|
|
20285
|
-
u && f.push(u);
|
|
20286
|
-
}
|
|
20287
|
-
h[l] = f, s.push(h);
|
|
20299
|
+
const h = await this.getPsetProps(t, a, l);
|
|
20300
|
+
s.push(h);
|
|
20288
20301
|
}
|
|
20289
20302
|
return s;
|
|
20290
20303
|
}
|
|
@@ -20302,7 +20315,7 @@ class ch extends ks {
|
|
|
20302
20315
|
requiredValue: this.value.parameter
|
|
20303
20316
|
}), !1;
|
|
20304
20317
|
const r = t[s], o = structuredClone(this.value);
|
|
20305
|
-
if (r.name === "IFCLABEL" && o.type === "simple" && (o.parameter = String(o.parameter)), (t.type ===
|
|
20318
|
+
if (r.name === "IFCLABEL" && o.type === "simple" && (o.parameter = String(o.parameter)), (t.type === k.IFCPROPERTYLISTVALUE || t.type === k.IFCPROPERTYENUMERATEDVALUE) && Array.isArray(r)) {
|
|
20306
20319
|
const l = r.map((f) => f.value), h = r.find((f) => o ? this.evalRequirement(f.value, o, "Value") : !1);
|
|
20307
20320
|
return e == null || e.push({
|
|
20308
20321
|
currentValue: l,
|
|
@@ -20337,7 +20350,7 @@ class ch extends ks {
|
|
|
20337
20350
|
if (!this.dataType)
|
|
20338
20351
|
return !0;
|
|
20339
20352
|
const s = this.getValueKey(t), n = t[s];
|
|
20340
|
-
if ((t.type ===
|
|
20353
|
+
if ((t.type === k.IFCPROPERTYLISTVALUE || t.type === k.IFCPROPERTYENUMERATEDVALUE) && Array.isArray(n) && n[0]) {
|
|
20341
20354
|
const o = n[0].name;
|
|
20342
20355
|
return this.evalRequirement(
|
|
20343
20356
|
o,
|
|
@@ -20413,7 +20426,7 @@ class lh {
|
|
|
20413
20426
|
</ids:specification>`;
|
|
20414
20427
|
}
|
|
20415
20428
|
}
|
|
20416
|
-
const
|
|
20429
|
+
const ge = (c) => {
|
|
20417
20430
|
if (!c)
|
|
20418
20431
|
return;
|
|
20419
20432
|
const i = { type: "simple" };
|
|
@@ -20432,44 +20445,44 @@ const Re = (c) => {
|
|
|
20432
20445
|
}, Xr = (c, i) => {
|
|
20433
20446
|
const t = [];
|
|
20434
20447
|
for (const e of i) {
|
|
20435
|
-
const s = e.name, n =
|
|
20448
|
+
const s = e.name, n = ge(s);
|
|
20436
20449
|
if (!n)
|
|
20437
20450
|
continue;
|
|
20438
20451
|
const r = new ah(c, n);
|
|
20439
|
-
e.cardinality && (r.cardinality = e.cardinality), r.predefinedType =
|
|
20452
|
+
e.cardinality && (r.cardinality = e.cardinality), r.predefinedType = ge(e.predefinedType), r.instructions = e.instructions, t.push(r);
|
|
20440
20453
|
}
|
|
20441
20454
|
return t;
|
|
20442
20455
|
}, hh = (c, i) => {
|
|
20443
20456
|
const t = [];
|
|
20444
20457
|
for (const e of i) {
|
|
20445
|
-
const s = e.name, n =
|
|
20458
|
+
const s = e.name, n = ge(s);
|
|
20446
20459
|
if (!n)
|
|
20447
20460
|
continue;
|
|
20448
20461
|
const r = new rh(c, n);
|
|
20449
|
-
e.cardinality && (r.cardinality = e.cardinality), r.value =
|
|
20462
|
+
e.cardinality && (r.cardinality = e.cardinality), r.value = ge(e.value), r.instructions = e.instructions, t.push(r);
|
|
20450
20463
|
}
|
|
20451
20464
|
return t;
|
|
20452
20465
|
}, uh = (c, i) => {
|
|
20453
20466
|
const t = [];
|
|
20454
20467
|
for (const e of i) {
|
|
20455
|
-
const s = e.system, n =
|
|
20468
|
+
const s = e.system, n = ge(s);
|
|
20456
20469
|
if (!n)
|
|
20457
20470
|
continue;
|
|
20458
20471
|
const r = new oh(c, n);
|
|
20459
20472
|
e.cardinality && (r.cardinality = e.cardinality);
|
|
20460
|
-
const o =
|
|
20473
|
+
const o = ge(e.value);
|
|
20461
20474
|
(o == null ? void 0 : o.type) === "simple" && (o.parameter = String(o.parameter)), (o == null ? void 0 : o.type) === "enumeration" && Array.isArray(o.parameter) && (o.parameter = o.parameter.map(String)), r.value = o, r.uri = e.uri, r.instructions = e.instructions, t.push(r);
|
|
20462
20475
|
}
|
|
20463
20476
|
return t;
|
|
20464
20477
|
}, fh = (c, i) => {
|
|
20465
20478
|
const t = [];
|
|
20466
20479
|
for (const e of i) {
|
|
20467
|
-
const s = e.propertySet, n = e.baseName, r =
|
|
20480
|
+
const s = e.propertySet, n = e.baseName, r = ge(s), o = ge(n);
|
|
20468
20481
|
if (!(o && r))
|
|
20469
20482
|
continue;
|
|
20470
20483
|
const a = new ch(c, r, o);
|
|
20471
20484
|
e.cardinality && (a.cardinality = e.cardinality);
|
|
20472
|
-
const l =
|
|
20485
|
+
const l = ge(e.value);
|
|
20473
20486
|
(l == null ? void 0 : l.type) === "enumeration" && Array.isArray(l.parameter) && (l.parameter = l.parameter.map(String)), a.value = l, a.dataType = e.dataType, a.uri = e.uri, a.instructions = e.instructions, t.push(a);
|
|
20474
20487
|
}
|
|
20475
20488
|
return t;
|
|
@@ -20626,7 +20639,7 @@ C(ri, "uuid", "9f0b9f78-9b2e-481a-b766-2fbfd01f342c"), C(ri, "xmlParser", new Co
|
|
|
20626
20639
|
}));
|
|
20627
20640
|
let $r = ri;
|
|
20628
20641
|
export {
|
|
20629
|
-
|
|
20642
|
+
_e as AsyncEvent,
|
|
20630
20643
|
Mt as BCFTopics,
|
|
20631
20644
|
Kl as BCFTopicsConfigManager,
|
|
20632
20645
|
xn as Base,
|
|
@@ -20637,7 +20650,7 @@ export {
|
|
|
20637
20650
|
wn as BoundingBoxer,
|
|
20638
20651
|
Bi as Classifier,
|
|
20639
20652
|
Sn as Clipper,
|
|
20640
|
-
|
|
20653
|
+
_n as Comment,
|
|
20641
20654
|
At as Component,
|
|
20642
20655
|
ph as ComponentWithUI,
|
|
20643
20656
|
Cs as Components,
|
|
@@ -20665,7 +20678,7 @@ export {
|
|
|
20665
20678
|
gs as IfcBasicQuery,
|
|
20666
20679
|
gh as IfcCategories,
|
|
20667
20680
|
ms as IfcCategoryMap,
|
|
20668
|
-
|
|
20681
|
+
_c as IfcElements,
|
|
20669
20682
|
Gr as IfcFinder,
|
|
20670
20683
|
se as IfcFinderQuery,
|
|
20671
20684
|
Yn as IfcFragmentSettings,
|
|
@@ -20676,7 +20689,7 @@ export {
|
|
|
20676
20689
|
eh as IfcPropertiesTiler,
|
|
20677
20690
|
oi as IfcPropertiesUtils,
|
|
20678
20691
|
As as IfcPropertyQuery,
|
|
20679
|
-
|
|
20692
|
+
Gt as IfcRelationsIndexer,
|
|
20680
20693
|
Jl as IfcStreamingSettings,
|
|
20681
20694
|
pr as MaterialsUtils,
|
|
20682
20695
|
Wr as MeasurementUtils,
|
|
@@ -20686,7 +20699,7 @@ export {
|
|
|
20686
20699
|
Hr as MiniMaps,
|
|
20687
20700
|
fc as Mouse,
|
|
20688
20701
|
Nc as OrbitMode,
|
|
20689
|
-
|
|
20702
|
+
Pc as OrthoPerspectiveCamera,
|
|
20690
20703
|
yc as PlanMode,
|
|
20691
20704
|
Lc as ProjectionManager,
|
|
20692
20705
|
th as PropertiesStreamingSettings,
|