@thatopen/components 2.3.9 → 2.3.11

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/index.mjs CHANGED
@@ -95,12 +95,12 @@ function $s(c, i, t, e, s = null) {
95
95
  let n = 1 / 0, r = 1 / 0, o = 1 / 0, a = -1 / 0, l = -1 / 0, h = -1 / 0, f = 1 / 0, I = 1 / 0, u = 1 / 0, d = -1 / 0, E = -1 / 0, T = -1 / 0;
96
96
  const p = s !== null;
97
97
  for (let m = i * 6, F = (i + t) * 6; m < F; m += 6) {
98
- const R = c[m + 0], S = c[m + 1], N = R - S, y = R + S;
99
- N < n && (n = N), y > a && (a = y), p && R < f && (f = R), p && R > d && (d = R);
100
- const M = c[m + 2], L = c[m + 3], b = M - L, Y = M + L;
101
- b < r && (r = b), Y > l && (l = Y), p && M < I && (I = M), p && M > E && (E = M);
102
- const O = c[m + 4], w = c[m + 5], g = O - w, v = O + w;
103
- g < o && (o = g), v > h && (h = v), p && O < u && (u = O), p && O > T && (T = O);
98
+ const R = c[m + 0], S = c[m + 1], O = R - S, y = R + S;
99
+ O < n && (n = O), y > a && (a = y), p && R < f && (f = R), p && R > d && (d = R);
100
+ const w = c[m + 2], L = c[m + 3], b = w - L, Y = w + L;
101
+ b < r && (r = b), Y > l && (l = Y), p && w < I && (I = w), p && w > E && (E = w);
102
+ const N = c[m + 4], M = c[m + 5], g = N - M, v = N + M;
103
+ g < o && (o = g), v > h && (h = v), p && N < u && (u = N), p && N > T && (T = N);
104
104
  }
105
105
  e[0] = n, e[1] = r, e[2] = o, e[3] = a, e[4] = l, e[5] = h, p && (s[0] = f, s[1] = I, s[2] = u, s[3] = d, s[4] = E, s[5] = T);
106
106
  }
@@ -131,10 +131,10 @@ function ko(c, i) {
131
131
  r ? (m = t[h[p]](d), F = t[h[p]](E), R = t[h[p]](T)) : (m = o[d + p], F = o[E + p], R = o[T + p]);
132
132
  let S = m;
133
133
  F < S && (S = F), R < S && (S = R);
134
- let N = m;
135
- F > N && (N = F), R > N && (N = R);
136
- const y = (N - S) / 2, M = p * 2;
137
- n[u + M + 0] = S + y, n[u + M + 1] = y + (Math.abs(S) + y) * Uo, S < i[p] && (i[p] = S), N > i[p + 3] && (i[p + 3] = N);
134
+ let O = m;
135
+ F > O && (O = F), R > O && (O = R);
136
+ const y = (O - S) / 2, w = p * 2;
137
+ n[u + w + 0] = S + y, n[u + w + 1] = y + (Math.abs(S) + y) * Uo, S < i[p] && (i[p] = S), O > i[p + 3] && (i[p + 3] = O);
138
138
  }
139
139
  }
140
140
  return n;
@@ -166,13 +166,13 @@ function Wo(c, i, t, e, s, n) {
166
166
  const S = p[m];
167
167
  S.candidate = t[R + 2 * I], S.count = 0;
168
168
  const {
169
- bounds: N,
169
+ bounds: O,
170
170
  leftCacheBounds: y,
171
- rightCacheBounds: M
171
+ rightCacheBounds: w
172
172
  } = S;
173
173
  for (let L = 0; L < 3; L++)
174
- M[L] = 1 / 0, M[L + 3] = -1 / 0, y[L] = 1 / 0, y[L + 3] = -1 / 0, N[L] = 1 / 0, N[L + 3] = -1 / 0;
175
- zi(R, t, N);
174
+ w[L] = 1 / 0, w[L + 3] = -1 / 0, y[L] = 1 / 0, y[L + 3] = -1 / 0, O[L] = 1 / 0, O[L + 3] = -1 / 0;
175
+ zi(R, t, O);
176
176
  }
177
177
  p.sort(Ho);
178
178
  let F = s;
@@ -183,32 +183,32 @@ function Wo(c, i, t, e, s, n) {
183
183
  }
184
184
  for (let R = h; R < f; R += 6) {
185
185
  const S = t[R + 2 * I];
186
- for (let N = 0; N < F; N++) {
187
- const y = p[N];
186
+ for (let O = 0; O < F; O++) {
187
+ const y = p[O];
188
188
  S >= y.candidate ? zi(R, t, y.rightCacheBounds) : (zi(R, t, y.leftCacheBounds), y.count++);
189
189
  }
190
190
  }
191
191
  for (let R = 0; R < F; R++) {
192
- const S = p[R], N = S.count, y = s - S.count, M = S.leftCacheBounds, L = S.rightCacheBounds;
192
+ const S = p[R], O = S.count, y = s - S.count, w = S.leftCacheBounds, L = S.rightCacheBounds;
193
193
  let b = 0;
194
- N !== 0 && (b = di(M) / a);
194
+ O !== 0 && (b = di(w) / a);
195
195
  let Y = 0;
196
196
  y !== 0 && (Y = di(L) / a);
197
- const O = qn + Ws * (b * N + Y * y);
198
- O < l && (r = I, l = O, o = S.candidate);
197
+ const N = qn + Ws * (b * O + Y * y);
198
+ N < l && (r = I, l = N, o = S.candidate);
199
199
  }
200
200
  } else {
201
201
  for (let F = 0; F < Te; F++) {
202
202
  const R = Fe[F];
203
203
  R.count = 0, R.candidate = u + T + F * T;
204
204
  const S = R.bounds;
205
- for (let N = 0; N < 3; N++)
206
- S[N] = 1 / 0, S[N + 3] = -1 / 0;
205
+ for (let O = 0; O < 3; O++)
206
+ S[O] = 1 / 0, S[O + 3] = -1 / 0;
207
207
  }
208
208
  for (let F = h; F < f; F += 6) {
209
- let N = ~~((t[F + 2 * I] - u) / T);
210
- N >= Te && (N = Te - 1);
211
- const y = Fe[N];
209
+ let O = ~~((t[F + 2 * I] - u) / T);
210
+ O >= Te && (O = Te - 1);
211
+ const y = Fe[O];
212
212
  y.count++, zi(F, t, y.bounds);
213
213
  }
214
214
  const p = Fe[Te - 1];
@@ -219,14 +219,14 @@ function Wo(c, i, t, e, s, n) {
219
219
  }
220
220
  let m = 0;
221
221
  for (let F = 0; F < Te - 1; F++) {
222
- const R = Fe[F], S = R.count, N = R.bounds, M = Fe[F + 1].rightCacheBounds;
223
- S !== 0 && (m === 0 ? Kn(N, ki) : Jn(N, ki, ki)), m += S;
222
+ const R = Fe[F], S = R.count, O = R.bounds, w = Fe[F + 1].rightCacheBounds;
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);
226
226
  const Y = s - m;
227
- Y !== 0 && (b = di(M) / a);
228
- const O = qn + Ws * (L * m + b * Y);
229
- O < l && (r = I, l = O, o = R.candidate);
227
+ Y !== 0 && (b = di(w) / a);
228
+ const N = qn + Ws * (L * m + b * Y);
229
+ N < l && (r = I, l = N, o = R.candidate);
230
230
  }
231
231
  }
232
232
  }
@@ -308,21 +308,21 @@ function qo(c, i) {
308
308
  function m(R) {
309
309
  a && a(R / l);
310
310
  }
311
- function F(R, S, N, y = null, M = 0) {
312
- if (!f && M >= s && (f = !0, n && (console.warn(`MeshBVH: Max depth of ${s} reached when generating BVH. Consider increasing maxDepth.`), console.warn(t))), N <= r || M >= s)
313
- return m(S + N), R.offset = S, R.count = N, R;
314
- const L = Wo(R.boundingData, y, d, S, N, o);
311
+ function F(R, S, O, y = null, w = 0) {
312
+ if (!f && w >= s && (f = !0, n && (console.warn(`MeshBVH: Max depth of ${s} reached when generating BVH. Consider increasing maxDepth.`), console.warn(t))), O <= r || w >= s)
313
+ return m(S + O), R.offset = S, R.count = O, R;
314
+ const L = Wo(R.boundingData, y, d, S, O, o);
315
315
  if (L.axis === -1)
316
- return m(S + N), R.offset = S, R.count = N, R;
317
- const b = E(h, e, d, S, N, L);
318
- if (b === S || b === S + N)
319
- m(S + N), R.offset = S, R.count = N;
316
+ return m(S + O), R.offset = S, R.count = O, R;
317
+ const b = E(h, e, d, S, O, L);
318
+ if (b === S || b === S + O)
319
+ m(S + O), R.offset = S, R.count = O;
320
320
  else {
321
321
  R.splitAxis = L.axis;
322
- const Y = new Hi(), O = S, w = b - S;
323
- R.left = Y, Y.boundingData = new Float32Array(6), $s(d, O, w, Y.boundingData, u), F(Y, O, w, u, M + 1);
324
- const g = new Hi(), v = b, q = N - w;
325
- R.right = g, g.boundingData = new Float32Array(6), $s(d, v, q, g.boundingData, u), F(g, v, q, u, M + 1);
322
+ const Y = new Hi(), N = S, M = b - S;
323
+ R.left = Y, Y.boundingData = new Float32Array(6), $s(d, N, M, Y.boundingData, u), F(Y, N, M, u, w + 1);
324
+ const g = new Hi(), v = b, q = O - M;
325
+ R.right = g, g.boundingData = new Float32Array(6), $s(d, v, q, g.boundingData, u), F(g, v, q, u, w + 1);
326
326
  }
327
327
  return R;
328
328
  }
@@ -493,17 +493,17 @@ ne.prototype.intersectsTriangle = function() {
493
493
  const m = E.points;
494
494
  let F = 0, R = -1;
495
495
  for (let S = 0; S < 3; S++) {
496
- const { start: N, end: y } = h;
497
- N.copy(m[S]), y.copy(m[(S + 1) % 3]), h.delta(r);
498
- const M = Zs(T.distanceToPoint(N));
499
- if (Zs(T.normal.dot(r)) && M) {
496
+ const { start: O, end: y } = h;
497
+ O.copy(m[S]), y.copy(m[(S + 1) % 3]), h.delta(r);
498
+ const w = Zs(T.distanceToPoint(O));
499
+ if (Zs(T.normal.dot(r)) && w) {
500
500
  p.copy(h), F = 2;
501
501
  break;
502
502
  }
503
503
  const L = T.intersectLine(h, u);
504
- if (!L && M && u.copy(N), (L || M) && !Zs(u.distanceTo(y))) {
504
+ if (!L && w && u.copy(O), (L || w) && !Zs(u.distanceTo(y))) {
505
505
  if (F <= 1)
506
- (F === 1 ? p.start : p.end).copy(u), M && (R = F);
506
+ (F === 1 ? p.start : p.end).copy(u), w && (R = F);
507
507
  else if (F >= 2) {
508
508
  (R === 1 ? p.start : p.end).copy(u), F = 2;
509
509
  break;
@@ -518,25 +518,25 @@ ne.prototype.intersectsTriangle = function() {
518
518
  this.needsUpdate && this.update(), T.isExtendedTriangle ? T.needsUpdate && T.update() : (c.copy(T), c.update(), T = c);
519
519
  const F = this.plane, R = T.plane;
520
520
  if (Math.abs(F.normal.dot(R.normal)) > 1 - 1e-10) {
521
- const S = this.satBounds, N = this.satAxes;
521
+ const S = this.satBounds, O = this.satAxes;
522
522
  t[0] = T.a, t[1] = T.b, t[2] = T.c;
523
523
  for (let L = 0; L < 4; L++) {
524
- const b = S[L], Y = N[L];
524
+ const b = S[L], Y = O[L];
525
525
  if (e.setFromPoints(Y, t), b.isSeparated(e))
526
526
  return !1;
527
527
  }
528
- const y = T.satBounds, M = T.satAxes;
528
+ const y = T.satBounds, w = T.satAxes;
529
529
  i[0] = this.a, i[1] = this.b, i[2] = this.c;
530
530
  for (let L = 0; L < 4; L++) {
531
- const b = y[L], Y = M[L];
531
+ const b = y[L], Y = w[L];
532
532
  if (e.setFromPoints(Y, i), b.isSeparated(e))
533
533
  return !1;
534
534
  }
535
535
  for (let L = 0; L < 4; L++) {
536
- const b = N[L];
536
+ const b = O[L];
537
537
  for (let Y = 0; Y < 4; Y++) {
538
- const O = M[Y];
539
- if (n.crossVectors(b, O), e.setFromPoints(n, i), s.setFromPoints(n, t), e.isSeparated(s))
538
+ const N = w[Y];
539
+ if (n.crossVectors(b, N), e.setFromPoints(n, i), s.setFromPoints(n, t), e.isSeparated(s))
540
540
  return !1;
541
541
  }
542
542
  }
@@ -547,17 +547,17 @@ ne.prototype.intersectsTriangle = function() {
547
547
  return p && (p.start.copy(f.end), p.end.copy(f.end)), !0;
548
548
  if (S !== 2)
549
549
  return !1;
550
- const N = d(T, F, I);
551
- if (N === 1 && this.containsPoint(I.end))
550
+ const O = d(T, F, I);
551
+ if (O === 1 && this.containsPoint(I.end))
552
552
  return p && (p.start.copy(I.end), p.end.copy(I.end)), !0;
553
- if (N !== 2)
553
+ if (O !== 2)
554
554
  return !1;
555
555
  if (f.delta(o), I.delta(a), o.dot(a) < 0) {
556
- let w = I.start;
557
- I.start = I.end, I.end = w;
556
+ let M = I.start;
557
+ I.start = I.end, I.end = M;
558
558
  }
559
- const y = f.start.dot(o), M = f.end.dot(o), L = I.start.dot(o), b = I.end.dot(o), Y = M < L, O = y < b;
560
- return y !== b && L !== M && Y === O ? !1 : (p && (l.subVectors(f.start, I.start), l.dot(o) > 0 ? p.start.copy(f.start) : p.start.copy(I.start), l.subVectors(f.end, I.end), l.dot(o) < 0 ? p.end.copy(f.end) : p.end.copy(I.end)), !0);
559
+ const y = f.start.dot(o), w = f.end.dot(o), L = I.start.dot(o), b = I.end.dot(o), Y = w < L, N = y < b;
560
+ return y !== b && L !== w && Y === N ? !1 : (p && (l.subVectors(f.start, I.start), l.dot(o) > 0 ? p.start.copy(f.start) : p.start.copy(I.start), l.subVectors(f.end, I.end), l.dot(o) < 0 ? p.end.copy(f.end) : p.end.copy(I.end)), !0);
561
561
  }
562
562
  };
563
563
  }();
@@ -695,10 +695,10 @@ Bt.prototype.distanceToBox = function() {
695
695
  for (let T = 0; T < 3; T++)
696
696
  for (let p = 0; p <= 1; p++)
697
697
  for (let m = 0; m <= 1; m++) {
698
- const F = (T + 1) % 3, R = (T + 2) % 3, S = p << F | m << R, N = 1 << T | p << F | m << R, y = u[S], M = u[N];
699
- i[E].set(y, M);
700
- const b = c[T], Y = c[F], O = c[R], w = t[E], g = w.start, v = w.end;
701
- g[b] = f[b], g[Y] = p ? f[Y] : I[Y], g[O] = m ? f[O] : I[Y], v[b] = I[b], v[Y] = p ? f[Y] : I[Y], v[O] = m ? f[O] : I[Y], E++;
698
+ const F = (T + 1) % 3, R = (T + 2) % 3, S = p << F | m << R, O = 1 << T | p << F | m << R, y = u[S], w = u[O];
699
+ i[E].set(y, w);
700
+ const b = c[T], Y = c[F], N = c[R], M = t[E], g = M.start, v = M.end;
701
+ g[b] = f[b], g[Y] = p ? f[Y] : I[Y], g[N] = m ? f[N] : I[Y], v[b] = I[b], v[Y] = p ? f[Y] : I[Y], v[N] = m ? f[N] : I[Y], E++;
702
702
  }
703
703
  for (let T = 0; T <= 1; T++)
704
704
  for (let p = 0; p <= 1; p++)
@@ -786,34 +786,34 @@ function dn(c, i, t, e, s = null, n = 0, r = 0) {
786
786
  const I = zt(c, l), u = Zt(h, a);
787
787
  return Nt(c, o, _e), e(I, u, !1, r, n + c, _e);
788
788
  } else {
789
- let b = function(O) {
790
- const { uint16Array: w, uint32Array: g } = Ft;
791
- let v = O * 2;
792
- for (; !Gt(v, w); )
793
- O = jt(O), v = O * 2;
794
- return zt(O, g);
795
- }, Y = function(O) {
796
- const { uint16Array: w, uint32Array: g } = Ft;
797
- let v = O * 2;
798
- for (; !Gt(v, w); )
799
- O = qt(O, g), v = O * 2;
800
- return zt(O, g) + Zt(v, w);
789
+ let b = function(N) {
790
+ const { uint16Array: M, uint32Array: g } = Ft;
791
+ let v = N * 2;
792
+ for (; !Gt(v, M); )
793
+ N = jt(N), v = N * 2;
794
+ return zt(N, g);
795
+ }, Y = function(N) {
796
+ const { uint16Array: M, uint32Array: g } = Ft;
797
+ let v = N * 2;
798
+ for (; !Gt(v, M); )
799
+ N = qt(N, g), v = N * 2;
800
+ return zt(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
804
  if (s && (m = _e, 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
- const O = T;
807
- T = p, p = O, m = F;
806
+ const N = T;
807
+ T = p, p = N, m = F;
808
808
  }
809
809
  m || (m = _e, Nt(d, o, m));
810
810
  const R = Gt(d * 2, a), S = t(m, R, T, r + 1, n + d);
811
- let N;
811
+ let O;
812
812
  if (S === jn) {
813
- const O = b(d), g = Y(d) - O;
814
- N = e(O, g, !0, r + 1, n + d, m);
813
+ const N = b(d), g = Y(d) - N;
814
+ O = e(N, g, !0, r + 1, n + d, m);
815
815
  } else
816
- N = S && dn(
816
+ O = S && dn(
817
817
  d,
818
818
  i,
819
819
  t,
@@ -822,16 +822,16 @@ function dn(c, i, t, e, s = null, n = 0, r = 0) {
822
822
  n,
823
823
  r + 1
824
824
  );
825
- if (N)
825
+ if (O)
826
826
  return !0;
827
827
  F = si, Nt(E, o, F);
828
- const y = Gt(E * 2, a), M = t(F, y, p, r + 1, n + E);
828
+ const y = Gt(E * 2, a), w = t(F, y, p, r + 1, n + E);
829
829
  let L;
830
- if (M === jn) {
831
- const O = b(E), g = Y(E) - O;
832
- L = e(O, g, !0, r + 1, n + E, F);
830
+ if (w === jn) {
831
+ const N = b(E), g = Y(E) - N;
832
+ L = e(N, g, !0, r + 1, n + E, F);
833
833
  } else
834
- L = M && dn(
834
+ L = w && dn(
835
835
  E,
836
836
  i,
837
837
  t,
@@ -933,29 +933,29 @@ function ha(c, i = null) {
933
933
  const E = I * 2;
934
934
  if (o[E + 15] === Ys) {
935
935
  const p = r[I + 6], m = o[E + 14];
936
- let F = 1 / 0, R = 1 / 0, S = 1 / 0, N = -1 / 0, y = -1 / 0, M = -1 / 0;
936
+ let F = 1 / 0, R = 1 / 0, S = 1 / 0, O = -1 / 0, y = -1 / 0, w = -1 / 0;
937
937
  for (let L = 3 * p, b = 3 * (p + m); L < b; L++) {
938
938
  let Y = e[L];
939
- const O = s.getX(Y), w = s.getY(Y), g = s.getZ(Y);
940
- O < F && (F = O), O > N && (N = O), w < R && (R = w), w > y && (y = w), g < S && (S = g), g > M && (M = g);
939
+ const N = s.getX(Y), M = s.getY(Y), g = s.getZ(Y);
940
+ N < F && (F = N), N > O && (O = N), M < R && (R = M), M > y && (y = M), g < S && (S = g), g > w && (w = g);
941
941
  }
942
- return a[I + 0] !== F || a[I + 1] !== R || a[I + 2] !== S || a[I + 3] !== N || a[I + 4] !== y || a[I + 5] !== M ? (a[I + 0] = F, a[I + 1] = R, a[I + 2] = S, a[I + 3] = N, a[I + 4] = y, a[I + 5] = M, !0) : !1;
942
+ return a[I + 0] !== F || a[I + 1] !== R || a[I + 2] !== S || a[I + 3] !== O || a[I + 4] !== y || a[I + 5] !== w ? (a[I + 0] = F, a[I + 1] = R, a[I + 2] = S, a[I + 3] = O, a[I + 4] = y, a[I + 5] = w, !0) : !1;
943
943
  } else {
944
944
  const p = I + 8, m = r[I + 6], F = p + u, R = m + u;
945
- let S = d, N = !1, y = !1;
946
- i ? S || (N = i.has(F), y = i.has(R), S = !N && !y) : (N = !0, y = !0);
947
- const M = S || N, L = S || y;
945
+ let S = d, O = !1, y = !1;
946
+ i ? S || (O = i.has(F), y = i.has(R), S = !O && !y) : (O = !0, y = !0);
947
+ const w = S || O, L = S || y;
948
948
  let b = !1;
949
- M && (b = f(p, u, S));
949
+ w && (b = f(p, u, S));
950
950
  let Y = !1;
951
951
  L && (Y = f(m, u, S));
952
- const O = b || Y;
953
- if (O)
954
- for (let w = 0; w < 3; w++) {
955
- const g = p + w, v = m + w, q = a[g], G = a[g + 3], et = a[v], W = a[v + 3];
956
- a[I + w] = q < et ? q : et, a[I + w + 3] = G > W ? G : W;
952
+ const N = b || Y;
953
+ if (N)
954
+ for (let M = 0; M < 3; M++) {
955
+ const g = p + M, v = m + M, q = a[g], G = a[g + 3], et = a[v], W = a[v + 3];
956
+ a[I + M] = q < et ? q : et, a[I + M + 3] = G > W ? G : W;
957
957
  }
958
- return O;
958
+ return N;
959
959
  }
960
960
  }
961
961
  }
@@ -1076,19 +1076,19 @@ function Aa(c, i, t, e = {}, s = {}, n = 0, r = 1 / 0) {
1076
1076
  return Ki.copy(t).invert(), Ci.matrix.copy(Ki), c.shapecast(
1077
1077
  {
1078
1078
  boundsTraverseOrder: (S) => qs.distanceToBox(S),
1079
- intersectsBounds: (S, N, y) => y < m && y < r ? (N && (Ci.min.copy(S.min), Ci.max.copy(S.max), Ci.needsUpdate = !0), !0) : !1,
1080
- intersectsRange: (S, N) => {
1079
+ intersectsBounds: (S, O, y) => y < m && y < r ? (O && (Ci.min.copy(S.min), Ci.max.copy(S.max), Ci.needsUpdate = !0), !0) : !1,
1080
+ intersectsRange: (S, O) => {
1081
1081
  if (i.boundsTree)
1082
1082
  return i.boundsTree.shapecast({
1083
- boundsTraverseOrder: (M) => Ci.distanceToBox(M),
1084
- intersectsBounds: (M, L, b) => b < m && b < r,
1085
- intersectsRange: (M, L) => {
1086
- for (let b = M, Y = M + L; b < Y; b++) {
1083
+ boundsTraverseOrder: (w) => Ci.distanceToBox(w),
1084
+ intersectsBounds: (w, L, b) => b < m && b < r,
1085
+ intersectsRange: (w, L) => {
1086
+ for (let b = w, Y = w + L; b < Y; b++) {
1087
1087
  wt(u, 3 * b, f, h), u.a.applyMatrix4(t), u.b.applyMatrix4(t), u.c.applyMatrix4(t), u.needsUpdate = !0;
1088
- for (let O = S, w = S + N; O < w; O++) {
1089
- wt(I, 3 * O, l, a), I.needsUpdate = !0;
1088
+ for (let N = S, M = S + O; N < M; N++) {
1089
+ wt(I, 3 * N, l, a), I.needsUpdate = !0;
1090
1090
  const g = I.distanceToTriangle(u, d, T);
1091
- if (g < m && (E.copy(d), p && p.copy(T), m = g, F = O, R = b), g < n)
1091
+ if (g < m && (E.copy(d), p && p.copy(T), m = g, F = N, R = b), g < n)
1092
1092
  return !0;
1093
1093
  }
1094
1094
  }
@@ -1096,12 +1096,12 @@ function Aa(c, i, t, e = {}, s = {}, n = 0, r = 1 / 0) {
1096
1096
  });
1097
1097
  {
1098
1098
  const y = li(i);
1099
- for (let M = 0, L = y; M < L; M++) {
1100
- wt(u, 3 * M, f, h), u.a.applyMatrix4(t), u.b.applyMatrix4(t), u.c.applyMatrix4(t), u.needsUpdate = !0;
1101
- for (let b = S, Y = S + N; b < Y; b++) {
1099
+ for (let w = 0, L = y; w < L; w++) {
1100
+ wt(u, 3 * w, f, h), u.a.applyMatrix4(t), u.b.applyMatrix4(t), u.c.applyMatrix4(t), u.needsUpdate = !0;
1101
+ for (let b = S, Y = S + O; b < Y; b++) {
1102
1102
  wt(I, 3 * b, l, a), I.needsUpdate = !0;
1103
- const O = I.distanceToTriangle(u, d, T);
1104
- if (O < m && (E.copy(d), p && p.copy(T), m = O, F = b, R = M), O < n)
1103
+ const N = I.distanceToTriangle(u, d, T);
1104
+ if (N < m && (E.copy(d), p && p.copy(T), m = N, F = b, R = w), N < n)
1105
1105
  return !0;
1106
1106
  }
1107
1107
  }
@@ -1121,33 +1121,33 @@ function Fa(c, i = null) {
1121
1121
  const E = I * 2;
1122
1122
  if (o[E + 15] === Ys) {
1123
1123
  const p = r[I + 6], m = o[E + 14];
1124
- let F = 1 / 0, R = 1 / 0, S = 1 / 0, N = -1 / 0, y = -1 / 0, M = -1 / 0;
1124
+ let F = 1 / 0, R = 1 / 0, S = 1 / 0, O = -1 / 0, y = -1 / 0, w = -1 / 0;
1125
1125
  for (let L = p, b = p + m; L < b; L++) {
1126
1126
  const Y = 3 * c.resolveTriangleIndex(L);
1127
- for (let O = 0; O < 3; O++) {
1128
- let w = Y + O;
1129
- w = e ? e[w] : w;
1130
- const g = s.getX(w), v = s.getY(w), q = s.getZ(w);
1131
- g < F && (F = g), g > N && (N = g), v < R && (R = v), v > y && (y = v), q < S && (S = q), q > M && (M = q);
1127
+ for (let N = 0; N < 3; N++) {
1128
+ let M = Y + N;
1129
+ M = e ? e[M] : M;
1130
+ const g = s.getX(M), v = s.getY(M), q = s.getZ(M);
1131
+ g < F && (F = g), g > O && (O = g), v < R && (R = v), v > y && (y = v), q < S && (S = q), q > w && (w = q);
1132
1132
  }
1133
1133
  }
1134
- return a[I + 0] !== F || a[I + 1] !== R || a[I + 2] !== S || a[I + 3] !== N || a[I + 4] !== y || a[I + 5] !== M ? (a[I + 0] = F, a[I + 1] = R, a[I + 2] = S, a[I + 3] = N, a[I + 4] = y, a[I + 5] = M, !0) : !1;
1134
+ return a[I + 0] !== F || a[I + 1] !== R || a[I + 2] !== S || a[I + 3] !== O || a[I + 4] !== y || a[I + 5] !== w ? (a[I + 0] = F, a[I + 1] = R, a[I + 2] = S, a[I + 3] = O, a[I + 4] = y, a[I + 5] = w, !0) : !1;
1135
1135
  } else {
1136
1136
  const p = I + 8, m = r[I + 6], F = p + u, R = m + u;
1137
- let S = d, N = !1, y = !1;
1138
- i ? S || (N = i.has(F), y = i.has(R), S = !N && !y) : (N = !0, y = !0);
1139
- const M = S || N, L = S || y;
1137
+ let S = d, O = !1, y = !1;
1138
+ i ? S || (O = i.has(F), y = i.has(R), S = !O && !y) : (O = !0, y = !0);
1139
+ const w = S || O, L = S || y;
1140
1140
  let b = !1;
1141
- M && (b = f(p, u, S));
1141
+ w && (b = f(p, u, S));
1142
1142
  let Y = !1;
1143
1143
  L && (Y = f(m, u, S));
1144
- const O = b || Y;
1145
- if (O)
1146
- for (let w = 0; w < 3; w++) {
1147
- const g = p + w, v = m + w, q = a[g], G = a[g + 3], et = a[v], W = a[v + 3];
1148
- a[I + w] = q < et ? q : et, a[I + w + 3] = G > W ? G : W;
1144
+ const N = b || Y;
1145
+ if (N)
1146
+ for (let M = 0; M < 3; M++) {
1147
+ const g = p + M, v = m + M, q = a[g], G = a[g + 3], et = a[v], W = a[v + 3];
1148
+ a[I + M] = q < et ? q : et, a[I + M + 3] = G > W ? G : W;
1149
1149
  }
1150
- return O;
1150
+ return N;
1151
1151
  }
1152
1152
  }
1153
1153
  }
@@ -1240,22 +1240,22 @@ function Ma(c, i, t, e = {}, s = {}, n = 0, r = 1 / 0) {
1240
1240
  return es.copy(t).invert(), mi.matrix.copy(es), c.shapecast(
1241
1241
  {
1242
1242
  boundsTraverseOrder: (S) => Qs.distanceToBox(S),
1243
- intersectsBounds: (S, N, y) => y < m && y < r ? (N && (mi.min.copy(S.min), mi.max.copy(S.max), mi.needsUpdate = !0), !0) : !1,
1244
- intersectsRange: (S, N) => {
1243
+ intersectsBounds: (S, O, y) => y < m && y < r ? (O && (mi.min.copy(S.min), mi.max.copy(S.max), mi.needsUpdate = !0), !0) : !1,
1244
+ intersectsRange: (S, O) => {
1245
1245
  if (i.boundsTree) {
1246
1246
  const y = i.boundsTree;
1247
1247
  return y.shapecast({
1248
- boundsTraverseOrder: (M) => mi.distanceToBox(M),
1249
- intersectsBounds: (M, L, b) => b < m && b < r,
1250
- intersectsRange: (M, L) => {
1251
- for (let b = M, Y = M + L; b < Y; b++) {
1252
- const O = y.resolveTriangleIndex(b);
1253
- wt(u, 3 * O, f, h), u.a.applyMatrix4(t), u.b.applyMatrix4(t), u.c.applyMatrix4(t), u.needsUpdate = !0;
1254
- for (let w = S, g = S + N; w < g; w++) {
1255
- const v = c.resolveTriangleIndex(w);
1248
+ boundsTraverseOrder: (w) => mi.distanceToBox(w),
1249
+ intersectsBounds: (w, L, b) => b < m && b < r,
1250
+ intersectsRange: (w, L) => {
1251
+ for (let b = w, Y = w + L; b < Y; b++) {
1252
+ const N = y.resolveTriangleIndex(b);
1253
+ wt(u, 3 * N, f, h), u.a.applyMatrix4(t), u.b.applyMatrix4(t), u.c.applyMatrix4(t), u.needsUpdate = !0;
1254
+ for (let M = S, g = S + O; M < g; M++) {
1255
+ const v = c.resolveTriangleIndex(M);
1256
1256
  wt(I, 3 * v, l, a), I.needsUpdate = !0;
1257
1257
  const q = I.distanceToTriangle(u, d, T);
1258
- if (q < m && (E.copy(d), p && p.copy(T), m = q, F = w, R = b), q < n)
1258
+ if (q < m && (E.copy(d), p && p.copy(T), m = q, F = M, R = b), q < n)
1259
1259
  return !0;
1260
1260
  }
1261
1261
  }
@@ -1263,13 +1263,13 @@ function Ma(c, i, t, e = {}, s = {}, n = 0, r = 1 / 0) {
1263
1263
  });
1264
1264
  } else {
1265
1265
  const y = li(i);
1266
- for (let M = 0, L = y; M < L; M++) {
1267
- wt(u, 3 * M, f, h), u.a.applyMatrix4(t), u.b.applyMatrix4(t), u.c.applyMatrix4(t), u.needsUpdate = !0;
1268
- for (let b = S, Y = S + N; b < Y; b++) {
1269
- const O = c.resolveTriangleIndex(b);
1270
- wt(I, 3 * O, l, a), I.needsUpdate = !0;
1271
- const w = I.distanceToTriangle(u, d, T);
1272
- if (w < m && (E.copy(d), p && p.copy(T), m = w, F = b, R = M), w < n)
1266
+ for (let w = 0, L = y; w < L; w++) {
1267
+ wt(u, 3 * w, f, h), u.a.applyMatrix4(t), u.b.applyMatrix4(t), u.c.applyMatrix4(t), u.needsUpdate = !0;
1268
+ for (let b = S, Y = S + O; b < Y; b++) {
1269
+ const N = c.resolveTriangleIndex(b);
1270
+ wt(I, 3 * N, l, a), I.needsUpdate = !0;
1271
+ const M = I.distanceToTriangle(u, d, T);
1272
+ if (M < m && (E.copy(d), p && p.copy(T), m = M, F = b, R = w), M < n)
1273
1273
  return !0;
1274
1274
  }
1275
1275
  }
@@ -1315,9 +1315,9 @@ 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 = Gt(F, E), N = Gt(R, m);
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 = Gt(F, E), O = Gt(R, m);
1319
1319
  let y = !1;
1320
- if (N && S)
1320
+ if (O && S)
1321
1321
  h ? y = s(
1322
1322
  zt(i, p),
1323
1323
  Zt(i * 2, m),
@@ -1337,12 +1337,12 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
1337
1337
  a,
1338
1338
  r + i
1339
1339
  );
1340
- else if (N) {
1341
- const M = Ne.getPrimitive();
1342
- Nt(i, T, M), M.applyMatrix4(t);
1340
+ else if (O) {
1341
+ const w = Ne.getPrimitive();
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);
1345
- const Y = M.intersectsBox(qe), O = M.intersectsBox(Qe);
1345
+ const Y = w.intersectsBox(qe), N = w.intersectsBox(Qe);
1346
1346
  y = Y && Kt(
1347
1347
  i,
1348
1348
  L,
@@ -1353,9 +1353,9 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
1353
1353
  n,
1354
1354
  a,
1355
1355
  o + 1,
1356
- M,
1356
+ w,
1357
1357
  !h
1358
- ) || O && Kt(
1358
+ ) || N && Kt(
1359
1359
  i,
1360
1360
  b,
1361
1361
  e,
@@ -1365,17 +1365,17 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
1365
1365
  n,
1366
1366
  a,
1367
1367
  o + 1,
1368
- M,
1368
+ w,
1369
1369
  !h
1370
- ), Ne.releasePrimitive(M);
1370
+ ), Ne.releasePrimitive(w);
1371
1371
  } else {
1372
- const M = jt(i), L = qt(i, p);
1373
- Nt(M, T, Ks), Nt(L, T, Js);
1372
+ const w = jt(i), L = qt(i, p);
1373
+ Nt(w, T, Ks), Nt(L, T, Js);
1374
1374
  const b = l.intersectsBox(Ks), Y = l.intersectsBox(Js);
1375
1375
  if (b && Y)
1376
1376
  y = Kt(
1377
1377
  c,
1378
- M,
1378
+ w,
1379
1379
  t,
1380
1380
  e,
1381
1381
  s,
@@ -1402,7 +1402,7 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
1402
1402
  if (S)
1403
1403
  y = Kt(
1404
1404
  c,
1405
- M,
1405
+ w,
1406
1406
  t,
1407
1407
  e,
1408
1408
  s,
@@ -1414,14 +1414,14 @@ 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 O = Ne.getPrimitive();
1418
- O.copy(Ks).applyMatrix4(t);
1419
- const w = jt(c), g = qt(c, d);
1420
- Nt(w, u, qe), Nt(g, u, Qe);
1421
- const v = O.intersectsBox(qe), q = O.intersectsBox(Qe);
1417
+ const N = Ne.getPrimitive();
1418
+ N.copy(Ks).applyMatrix4(t);
1419
+ const M = jt(c), g = qt(c, d);
1420
+ Nt(M, u, qe), Nt(g, u, Qe);
1421
+ const v = N.intersectsBox(qe), q = N.intersectsBox(Qe);
1422
1422
  y = v && Kt(
1423
- M,
1424
1423
  w,
1424
+ M,
1425
1425
  e,
1426
1426
  t,
1427
1427
  s,
@@ -1429,10 +1429,10 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
1429
1429
  n,
1430
1430
  a,
1431
1431
  o + 1,
1432
- O,
1432
+ N,
1433
1433
  !h
1434
1434
  ) || q && Kt(
1435
- M,
1435
+ w,
1436
1436
  g,
1437
1437
  e,
1438
1438
  t,
@@ -1441,9 +1441,9 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
1441
1441
  n,
1442
1442
  a,
1443
1443
  o + 1,
1444
- O,
1444
+ N,
1445
1445
  !h
1446
- ), Ne.releasePrimitive(O);
1446
+ ), Ne.releasePrimitive(N);
1447
1447
  }
1448
1448
  else if (Y)
1449
1449
  if (S)
@@ -1461,14 +1461,14 @@ 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 O = Ne.getPrimitive();
1465
- O.copy(Js).applyMatrix4(t);
1466
- const w = jt(c), g = qt(c, d);
1467
- Nt(w, u, qe), Nt(g, u, Qe);
1468
- const v = O.intersectsBox(qe), q = O.intersectsBox(Qe);
1464
+ const N = Ne.getPrimitive();
1465
+ N.copy(Js).applyMatrix4(t);
1466
+ const M = jt(c), g = qt(c, d);
1467
+ Nt(M, u, qe), Nt(g, u, Qe);
1468
+ const v = N.intersectsBox(qe), q = N.intersectsBox(Qe);
1469
1469
  y = v && Kt(
1470
1470
  L,
1471
- w,
1471
+ M,
1472
1472
  e,
1473
1473
  t,
1474
1474
  s,
@@ -1476,7 +1476,7 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
1476
1476
  n,
1477
1477
  a,
1478
1478
  o + 1,
1479
- O,
1479
+ N,
1480
1480
  !h
1481
1481
  ) || q && Kt(
1482
1482
  L,
@@ -1488,9 +1488,9 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
1488
1488
  n,
1489
1489
  a,
1490
1490
  o + 1,
1491
- O,
1491
+ N,
1492
1492
  !h
1493
- ), Ne.releasePrimitive(O);
1493
+ ), Ne.releasePrimitive(N);
1494
1494
  }
1495
1495
  }
1496
1496
  return y;
@@ -1645,19 +1645,19 @@ class Un {
1645
1645
  wt(h, d * 3, f, I);
1646
1646
  };
1647
1647
  if (n) {
1648
- const d = (E, T, p, m, F, R, S, N) => {
1649
- for (let y = p, M = p + m; y < M; y++) {
1648
+ const d = (E, T, p, m, F, R, S, O) => {
1649
+ for (let y = p, w = p + m; y < w; y++) {
1650
1650
  u(y), h.a.applyMatrix4(t), h.b.applyMatrix4(t), h.c.applyMatrix4(t), h.needsUpdate = !0;
1651
1651
  for (let L = E, b = E + T; L < b; L++)
1652
- if (l(L), r.needsUpdate = !0, n(r, h, L, y, F, R, S, N))
1652
+ if (l(L), r.needsUpdate = !0, n(r, h, L, y, F, R, S, O))
1653
1653
  return !0;
1654
1654
  }
1655
1655
  return !1;
1656
1656
  };
1657
1657
  if (s) {
1658
1658
  const E = s;
1659
- s = function(T, p, m, F, R, S, N, y) {
1660
- return E(T, p, m, F, R, S, N, y) ? !0 : d(T, p, m, F, R, S, N, y);
1659
+ s = function(T, p, m, F, R, S, O, y) {
1660
+ return E(T, p, m, F, R, S, O, y) ? !0 : d(T, p, m, F, R, S, O, y);
1661
1661
  };
1662
1662
  } else
1663
1663
  s = d;
@@ -2554,18 +2554,18 @@ function qa(c) {
2554
2554
  d.add(I.copy(u).multiplyScalar(ft)), E += ft, T += (9 * u.x * u.x + o.x * o.x + a.x * a.x + l.x * l.x) * (ft / 12), p += (9 * u.x * u.y + o.x * o.y + a.x * a.y + l.x * l.y) * (ft / 12), m += (9 * u.x * u.z + o.x * o.z + a.x * a.z + l.x * l.z) * (ft / 12), F += (9 * u.y * u.y + o.y * o.y + a.y * a.y + l.y * l.y) * (ft / 12), R += (9 * u.y * u.z + o.y * o.z + a.y * a.z + l.y * l.z) * (ft / 12), S += (9 * u.z * u.z + o.z * o.z + a.z * a.z + l.z * l.z) * (ft / 12);
2555
2555
  }
2556
2556
  d.divideScalar(E), T /= E, p /= E, m /= E, F /= E, R /= E, S /= E, T -= d.x * d.x, p -= d.x * d.y, m -= d.x * d.z, F -= d.y * d.y, R -= d.y * d.z, S -= d.z * d.z;
2557
- const N = new D.Matrix3();
2558
- N.elements[0] = T, N.elements[1] = p, N.elements[2] = m, N.elements[3] = p, N.elements[4] = F, N.elements[5] = R, N.elements[6] = m, N.elements[7] = R, N.elements[8] = S, ja(N, e);
2559
- const y = e.unitary, M = new D.Vector3(), L = new D.Vector3(), b = new D.Vector3();
2560
- y.extractBasis(M, L, b);
2561
- let Y = -1 / 0, O = -1 / 0, w = -1 / 0, g = 1 / 0, v = 1 / 0, q = 1 / 0;
2557
+ const O = new D.Matrix3();
2558
+ O.elements[0] = T, O.elements[1] = p, O.elements[2] = m, O.elements[3] = p, O.elements[4] = F, O.elements[5] = R, O.elements[6] = m, O.elements[7] = R, O.elements[8] = S, ja(O, e);
2559
+ const y = e.unitary, w = new D.Vector3(), L = new D.Vector3(), b = new D.Vector3();
2560
+ y.extractBasis(w, L, b);
2561
+ let Y = -1 / 0, N = -1 / 0, M = -1 / 0, g = 1 / 0, v = 1 / 0, q = 1 / 0;
2562
2562
  for (let at = 0, It = i.length; at < It; at++) {
2563
2563
  const ft = i[at];
2564
- Y = Math.max(M.dot(ft), Y), O = Math.max(L.dot(ft), O), w = Math.max(b.dot(ft), w), g = Math.min(M.dot(ft), g), v = Math.min(L.dot(ft), v), q = Math.min(b.dot(ft), q);
2564
+ Y = Math.max(w.dot(ft), Y), N = Math.max(L.dot(ft), N), M = Math.max(b.dot(ft), M), g = Math.min(w.dot(ft), g), v = Math.min(L.dot(ft), v), q = Math.min(b.dot(ft), q);
2565
2565
  }
2566
- M.multiplyScalar(0.5 * (g + Y)), L.multiplyScalar(0.5 * (v + O)), b.multiplyScalar(0.5 * (q + w));
2566
+ w.multiplyScalar(0.5 * (g + Y)), L.multiplyScalar(0.5 * (v + N)), b.multiplyScalar(0.5 * (q + M));
2567
2567
  const G = new D.Vector3(), et = new D.Vector3(), W = new D.Matrix3();
2568
- G.add(M).add(L).add(b), et.x = Y - g, et.y = O - v, et.z = w - q, et.multiplyScalar(0.5), W.copy(y);
2568
+ G.add(w).add(L).add(b), et.x = Y - g, et.y = N - v, et.z = M - q, et.multiplyScalar(0.5), W.copy(y);
2569
2569
  const { x: nt, y: V, z: x } = et, ot = new D.Matrix4();
2570
2570
  ot.makeScale(nt * 2, V * 2, x * 2);
2571
2571
  const it = new D.Matrix4();
@@ -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.9");
3140
+ C(Fs, "release", "2.3.11");
3141
3141
  let Cs = Fs;
3142
3142
  class Qa extends xn {
3143
3143
  constructor() {
@@ -3658,10 +3658,10 @@ function mr(c, i, t, e, s = 1 / 0, n, r) {
3658
3658
  u = u / v * F, d = d / v * F, E = E / v * F;
3659
3659
  }
3660
3660
  h = c.x - u, f = c.y - d, I = c.z - E;
3661
- const N = (t.x + o * u) * n, y = (t.y + o * d) * n, M = (t.z + o * E) * n;
3662
- t.x = (t.x - o * N) * l, t.y = (t.y - o * y) * l, t.z = (t.z - o * M) * l, r.x = h + (u + N) * l, r.y = f + (d + y) * l, r.z = I + (E + M) * l;
3663
- const L = T - c.x, b = p - c.y, Y = m - c.z, O = r.x - T, w = r.y - p, g = r.z - m;
3664
- return L * O + b * w + Y * g > 0 && (r.x = T, r.y = p, r.z = m, t.x = (r.x - T) / n, t.y = (r.y - p) / n, t.z = (r.z - m) / n), r;
3661
+ const O = (t.x + o * u) * n, y = (t.y + o * d) * n, w = (t.z + o * E) * n;
3662
+ t.x = (t.x - o * O) * l, t.y = (t.y - o * y) * l, t.z = (t.z - o * w) * l, r.x = h + (u + O) * l, r.y = f + (d + y) * l, r.z = I + (E + w) * l;
3663
+ const L = T - c.x, b = p - c.y, Y = m - c.z, N = r.x - T, M = r.y - p, g = r.z - m;
3664
+ return L * N + b * M + Y * g > 0 && (r.x = T, r.y = p, r.z = m, t.x = (r.x - T) / n, t.y = (r.y - p) / n, t.z = (r.z - m) / n), r;
3665
3665
  }
3666
3666
  function rn(c, i) {
3667
3667
  i.set(0, 0), c.forEach((t) => {
@@ -3807,26 +3807,26 @@ class vt extends ic {
3807
3807
  */
3808
3808
  constructor(i, t) {
3809
3809
  super(), this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.minDistance = Number.EPSILON, this.maxDistance = 1 / 0, this.infinityDolly = !1, this.minZoom = 0.01, this.maxZoom = 1 / 0, this.smoothTime = 0.25, this.draggingSmoothTime = 0.125, this.maxSpeed = 1 / 0, this.azimuthRotateSpeed = 1, this.polarRotateSpeed = 1, this.dollySpeed = 1, this.dollyDragInverted = !1, this.truckSpeed = 2, this.dollyToCursor = !1, this.dragToOffset = !1, this.verticalDragToForward = !1, this.boundaryFriction = 0, this.restThreshold = 0.01, this.colliderMeshes = [], this.cancel = () => {
3810
- }, this._enabled = !0, this._state = H.NONE, this._viewport = null, this._changedDolly = 0, this._changedZoom = 0, this._hasRested = !0, this._boundaryEnclosesCamera = !1, this._needsUpdate = !0, this._updatedLastTime = !1, this._elementRect = new DOMRect(), this._isDragging = !1, this._dragNeedsUpdate = !0, this._activePointers = [], this._lockedPointer = null, this._interactiveArea = new DOMRect(0, 0, 1, 1), this._isUserControllingRotate = !1, this._isUserControllingDolly = !1, this._isUserControllingTruck = !1, this._isUserControllingOffset = !1, this._isUserControllingZoom = !1, this._lastDollyDirection = Ke.NONE, this._thetaVelocity = { value: 0 }, this._phiVelocity = { value: 0 }, this._radiusVelocity = { value: 0 }, this._targetVelocity = new lt.Vector3(), this._focalOffsetVelocity = new lt.Vector3(), this._zoomVelocity = { value: 0 }, this._truckInternal = (R, S, N) => {
3811
- let y, M;
3810
+ }, this._enabled = !0, this._state = H.NONE, this._viewport = null, this._changedDolly = 0, this._changedZoom = 0, this._hasRested = !0, this._boundaryEnclosesCamera = !1, this._needsUpdate = !0, this._updatedLastTime = !1, this._elementRect = new DOMRect(), this._isDragging = !1, this._dragNeedsUpdate = !0, this._activePointers = [], this._lockedPointer = null, this._interactiveArea = new DOMRect(0, 0, 1, 1), this._isUserControllingRotate = !1, this._isUserControllingDolly = !1, this._isUserControllingTruck = !1, this._isUserControllingOffset = !1, this._isUserControllingZoom = !1, this._lastDollyDirection = Ke.NONE, this._thetaVelocity = { value: 0 }, this._phiVelocity = { value: 0 }, this._radiusVelocity = { value: 0 }, this._targetVelocity = new lt.Vector3(), this._focalOffsetVelocity = new lt.Vector3(), this._zoomVelocity = { value: 0 }, this._truckInternal = (R, S, O) => {
3811
+ let y, w;
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
- y = this.truckSpeed * R * Y / this._elementRect.height, M = this.truckSpeed * S * Y / this._elementRect.height;
3814
+ y = this.truckSpeed * R * Y / this._elementRect.height, w = this.truckSpeed * S * Y / this._elementRect.height;
3815
3815
  } else if (Oe(this._camera)) {
3816
3816
  const L = this._camera;
3817
- y = R * (L.right - L.left) / L.zoom / this._elementRect.width, M = S * (L.top - L.bottom) / L.zoom / this._elementRect.height;
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
3819
3819
  return;
3820
- this.verticalDragToForward ? (N ? this.setFocalOffset(this._focalOffsetEnd.x + y, this._focalOffsetEnd.y, this._focalOffsetEnd.z, !0) : this.truck(y, 0, !0), this.forward(-M, !0)) : N ? this.setFocalOffset(this._focalOffsetEnd.x + y, this._focalOffsetEnd.y + M, this._focalOffsetEnd.z, !0) : this.truck(y, M, !0);
3820
+ this.verticalDragToForward ? (O ? this.setFocalOffset(this._focalOffsetEnd.x + y, this._focalOffsetEnd.y, this._focalOffsetEnd.z, !0) : this.truck(y, 0, !0), this.forward(-w, !0)) : O ? this.setFocalOffset(this._focalOffsetEnd.x + y, this._focalOffsetEnd.y + w, this._focalOffsetEnd.z, !0) : this.truck(y, w, !0);
3821
3821
  }, this._rotateInternal = (R, S) => {
3822
- const N = Je * this.azimuthRotateSpeed * R / this._elementRect.height, y = Je * this.polarRotateSpeed * S / this._elementRect.height;
3823
- this.rotate(N, y, !0);
3824
- }, this._dollyInternal = (R, S, N) => {
3825
- const y = Math.pow(0.95, -R * this.dollySpeed), M = this._sphericalEnd.radius, L = this._sphericalEnd.radius * y, b = Jt(L, this.minDistance, this.maxDistance), Y = b - L;
3826
- this.infinityDolly && this.dollyToCursor ? this._dollyToNoClamp(L, !0) : this.infinityDolly && !this.dollyToCursor ? (this.dollyInFixed(Y, !0), this._dollyToNoClamp(b, !0)) : this._dollyToNoClamp(b, !0), this.dollyToCursor && (this._changedDolly += (this.infinityDolly ? L : b) - M, this._dollyControlCoord.set(S, N)), this._lastDollyDirection = Math.sign(-R);
3827
- }, this._zoomInternal = (R, S, N) => {
3828
- const y = Math.pow(0.95, R * this.dollySpeed), M = this._zoom, L = this._zoom * y;
3829
- this.zoomTo(L, !0), this.dollyToCursor && (this._changedZoom += L - M, this._dollyControlCoord.set(S, N));
3822
+ const O = Je * this.azimuthRotateSpeed * R / this._elementRect.height, y = Je * this.polarRotateSpeed * S / this._elementRect.height;
3823
+ this.rotate(O, y, !0);
3824
+ }, this._dollyInternal = (R, S, O) => {
3825
+ const y = Math.pow(0.95, -R * this.dollySpeed), w = this._sphericalEnd.radius, L = this._sphericalEnd.radius * y, b = Jt(L, this.minDistance, this.maxDistance), Y = b - L;
3826
+ this.infinityDolly && this.dollyToCursor ? this._dollyToNoClamp(L, !0) : this.infinityDolly && !this.dollyToCursor ? (this.dollyInFixed(Y, !0), this._dollyToNoClamp(b, !0)) : this._dollyToNoClamp(b, !0), this.dollyToCursor && (this._changedDolly += (this.infinityDolly ? L : b) - w, this._dollyControlCoord.set(S, O)), this._lastDollyDirection = Math.sign(-R);
3827
+ }, this._zoomInternal = (R, S, O) => {
3828
+ const y = Math.pow(0.95, R * this.dollySpeed), w = this._zoom, L = this._zoom * y;
3829
+ this.zoomTo(L, !0), this.dollyToCursor && (this._changedZoom += L - w, this._dollyControlCoord.set(S, O));
3830
3830
  }, typeof lt > "u" && console.error("camera-controls: `THREE` is undefined. You must first run `CameraControls.install( { THREE: THREE } )`. Check the docs for further information."), this._camera = i, this._yAxisUpSpace = new lt.Quaternion().setFromUnitVectors(this._camera.up, os), this._yAxisUpSpaceInverse = this._yAxisUpSpace.clone().invert(), this._state = H.NONE, this._target = new lt.Vector3(), this._targetEnd = this._target.clone(), this._focalOffset = new lt.Vector3(), this._focalOffsetEnd = this._focalOffset.clone(), this._spherical = new lt.Spherical().setFromVector3(ut.copy(this._camera.position).applyQuaternion(this._yAxisUpSpace)), this._sphericalEnd = this._spherical.clone(), this._lastDistance = this._spherical.radius, this._zoom = this._camera.zoom, this._zoomEnd = this._zoom, this._lastZoom = this._zoom, this._nearPlaneCorners = [
3831
3831
  new lt.Vector3(),
3832
3832
  new lt.Vector3(),
@@ -3846,8 +3846,8 @@ class vt extends ic {
3846
3846
  if (!this._enabled || !this._domElement)
3847
3847
  return;
3848
3848
  if (this._interactiveArea.left !== 0 || this._interactiveArea.top !== 0 || this._interactiveArea.width !== 1 || this._interactiveArea.height !== 1) {
3849
- const y = this._domElement.getBoundingClientRect(), M = R.clientX / y.width, L = R.clientY / y.height;
3850
- if (M < this._interactiveArea.left || M > this._interactiveArea.right || L < this._interactiveArea.top || L > this._interactiveArea.bottom)
3849
+ const y = this._domElement.getBoundingClientRect(), w = R.clientX / y.width, L = R.clientY / y.height;
3850
+ if (w < this._interactiveArea.left || w > this._interactiveArea.right || L < this._interactiveArea.top || L > this._interactiveArea.bottom)
3851
3851
  return;
3852
3852
  }
3853
3853
  const S = R.pointerType !== "mouse" ? null : (R.buttons & ht.LEFT) === ht.LEFT ? ht.LEFT : (R.buttons & ht.MIDDLE) === ht.MIDDLE ? ht.MIDDLE : (R.buttons & ht.RIGHT) === ht.RIGHT ? ht.RIGHT : null;
@@ -3857,7 +3857,7 @@ class vt extends ic {
3857
3857
  }
3858
3858
  if ((R.buttons & ht.LEFT) === ht.LEFT && this._lockedPointer)
3859
3859
  return;
3860
- const N = {
3860
+ const O = {
3861
3861
  pointerId: R.pointerId,
3862
3862
  clientX: R.clientX,
3863
3863
  clientY: R.clientY,
@@ -3865,13 +3865,13 @@ class vt extends ic {
3865
3865
  deltaY: 0,
3866
3866
  mouseButton: S
3867
3867
  };
3868
- this._activePointers.push(N), this._domElement.ownerDocument.removeEventListener("pointermove", a, { passive: !1 }), this._domElement.ownerDocument.removeEventListener("pointerup", h), this._domElement.ownerDocument.addEventListener("pointermove", a, { passive: !1 }), this._domElement.ownerDocument.addEventListener("pointerup", h), this._isDragging = !0, E(R);
3868
+ this._activePointers.push(O), this._domElement.ownerDocument.removeEventListener("pointermove", a, { passive: !1 }), this._domElement.ownerDocument.removeEventListener("pointerup", h), this._domElement.ownerDocument.addEventListener("pointermove", a, { passive: !1 }), this._domElement.ownerDocument.addEventListener("pointerup", h), this._isDragging = !0, E(R);
3869
3869
  }, o = (R) => {
3870
3870
  if (!this._enabled || !this._domElement || this._lockedPointer)
3871
3871
  return;
3872
3872
  if (this._interactiveArea.left !== 0 || this._interactiveArea.top !== 0 || this._interactiveArea.width !== 1 || this._interactiveArea.height !== 1) {
3873
- const y = this._domElement.getBoundingClientRect(), M = R.clientX / y.width, L = R.clientY / y.height;
3874
- if (M < this._interactiveArea.left || M > this._interactiveArea.right || L < this._interactiveArea.top || L > this._interactiveArea.bottom)
3873
+ const y = this._domElement.getBoundingClientRect(), w = R.clientX / y.width, L = R.clientY / y.height;
3874
+ if (w < this._interactiveArea.left || w > this._interactiveArea.right || L < this._interactiveArea.top || L > this._interactiveArea.bottom)
3875
3875
  return;
3876
3876
  }
3877
3877
  const S = (R.buttons & ht.LEFT) === ht.LEFT ? ht.LEFT : (R.buttons & ht.MIDDLE) === ht.MIDDLE ? ht.MIDDLE : (R.buttons & ht.RIGHT) === ht.RIGHT ? ht.RIGHT : null;
@@ -3879,7 +3879,7 @@ class vt extends ic {
3879
3879
  const y = this._findPointerByMouseButton(S);
3880
3880
  y && this._disposePointer(y);
3881
3881
  }
3882
- const N = {
3882
+ const O = {
3883
3883
  pointerId: 1,
3884
3884
  clientX: R.clientX,
3885
3885
  clientY: R.clientY,
@@ -3887,12 +3887,12 @@ class vt extends ic {
3887
3887
  deltaY: 0,
3888
3888
  mouseButton: (R.buttons & ht.LEFT) === ht.LEFT ? ht.LEFT : (R.buttons & ht.MIDDLE) === ht.LEFT ? ht.MIDDLE : (R.buttons & ht.RIGHT) === ht.LEFT ? ht.RIGHT : null
3889
3889
  };
3890
- this._activePointers.push(N), this._domElement.ownerDocument.removeEventListener("mousemove", l), this._domElement.ownerDocument.removeEventListener("mouseup", f), this._domElement.ownerDocument.addEventListener("mousemove", l), this._domElement.ownerDocument.addEventListener("mouseup", f), this._isDragging = !0, E(R);
3890
+ this._activePointers.push(O), this._domElement.ownerDocument.removeEventListener("mousemove", l), this._domElement.ownerDocument.removeEventListener("mouseup", f), this._domElement.ownerDocument.addEventListener("mousemove", l), this._domElement.ownerDocument.addEventListener("mouseup", f), this._isDragging = !0, E(R);
3891
3891
  }, a = (R) => {
3892
3892
  R.cancelable && R.preventDefault();
3893
- const S = R.pointerId, N = this._lockedPointer || this._findPointerById(S);
3894
- if (N) {
3895
- if (N.clientX = R.clientX, N.clientY = R.clientY, N.deltaX = R.movementX, N.deltaY = R.movementY, this._state = 0, R.pointerType === "touch")
3893
+ const S = R.pointerId, O = this._lockedPointer || this._findPointerById(S);
3894
+ if (O) {
3895
+ if (O.clientX = R.clientX, O.clientY = R.clientY, O.deltaX = R.movementX, O.deltaY = R.movementY, this._state = 0, R.pointerType === "touch")
3896
3896
  switch (this._activePointers.length) {
3897
3897
  case 1:
3898
3898
  this._state = this.touches.one;
@@ -3950,7 +3950,7 @@ class vt extends ic {
3950
3950
  const L = performance.now();
3951
3951
  I - L < 1e3 && this._getClientRect(this._elementRect), I = L;
3952
3952
  }
3953
- const S = nc ? -1 : -3, N = R.deltaMode === 1 ? R.deltaY / S : R.deltaY / (S * 10), y = this.dollyToCursor ? (R.clientX - this._elementRect.x) / this._elementRect.width * 2 - 1 : 0, M = this.dollyToCursor ? (R.clientY - this._elementRect.y) / this._elementRect.height * -2 + 1 : 0;
3953
+ const S = nc ? -1 : -3, O = R.deltaMode === 1 ? R.deltaY / S : R.deltaY / (S * 10), y = this.dollyToCursor ? (R.clientX - this._elementRect.x) / this._elementRect.width * 2 - 1 : 0, w = this.dollyToCursor ? (R.clientY - this._elementRect.y) / this._elementRect.height * -2 + 1 : 0;
3954
3954
  switch (this.mouseButtons.wheel) {
3955
3955
  case H.ROTATE: {
3956
3956
  this._rotateInternal(R.deltaX, R.deltaY), this._isUserControllingRotate = !0;
@@ -3965,11 +3965,11 @@ class vt extends ic {
3965
3965
  break;
3966
3966
  }
3967
3967
  case H.DOLLY: {
3968
- this._dollyInternal(-N, y, M), this._isUserControllingDolly = !0;
3968
+ this._dollyInternal(-O, y, w), this._isUserControllingDolly = !0;
3969
3969
  break;
3970
3970
  }
3971
3971
  case H.ZOOM: {
3972
- this._zoomInternal(-N, y, M), this._isUserControllingZoom = !0;
3972
+ this._zoomInternal(-O, y, w), this._isUserControllingZoom = !0;
3973
3973
  break;
3974
3974
  }
3975
3975
  }
@@ -3977,8 +3977,8 @@ class vt extends ic {
3977
3977
  }, d = (R) => {
3978
3978
  if (!(!this._domElement || !this._enabled)) {
3979
3979
  if (this.mouseButtons.right === vt.ACTION.NONE) {
3980
- const S = R instanceof PointerEvent ? R.pointerId : (R instanceof MouseEvent, 0), N = this._findPointerById(S);
3981
- N && this._disposePointer(N), this._domElement.ownerDocument.removeEventListener("pointermove", a, { passive: !1 }), this._domElement.ownerDocument.removeEventListener("pointerup", h), this._domElement.ownerDocument.removeEventListener("mousemove", l), this._domElement.ownerDocument.removeEventListener("mouseup", f);
3980
+ const S = R instanceof PointerEvent ? R.pointerId : (R instanceof MouseEvent, 0), O = this._findPointerById(S);
3981
+ O && this._disposePointer(O), this._domElement.ownerDocument.removeEventListener("pointermove", a, { passive: !1 }), this._domElement.ownerDocument.removeEventListener("pointerup", h), this._domElement.ownerDocument.removeEventListener("mousemove", l), this._domElement.ownerDocument.removeEventListener("mouseup", f);
3982
3982
  return;
3983
3983
  }
3984
3984
  R.preventDefault();
@@ -3987,8 +3987,8 @@ class vt extends ic {
3987
3987
  if (!this._enabled)
3988
3988
  return;
3989
3989
  if (rn(this._activePointers, Yt), this._getClientRect(this._elementRect), e.copy(Yt), s.copy(Yt), this._activePointers.length >= 2) {
3990
- const N = Yt.x - this._activePointers[1].clientX, y = Yt.y - this._activePointers[1].clientY, M = Math.sqrt(N * N + y * y);
3991
- n.set(0, M);
3990
+ const O = Yt.x - this._activePointers[1].clientX, y = Yt.y - this._activePointers[1].clientY, w = Math.sqrt(O * O + y * y);
3991
+ n.set(0, w);
3992
3992
  const L = (this._activePointers[0].clientX + this._activePointers[1].clientX) * 0.5, b = (this._activePointers[0].clientY + this._activePointers[1].clientY) * 0.5;
3993
3993
  s.set(L, b);
3994
3994
  }
@@ -4013,18 +4013,18 @@ class vt extends ic {
4013
4013
  if (!this._enabled || !this._dragNeedsUpdate)
4014
4014
  return;
4015
4015
  this._dragNeedsUpdate = !1, rn(this._activePointers, Yt);
4016
- const S = this._domElement && document.pointerLockElement === this._domElement ? this._lockedPointer || this._activePointers[0] : null, N = S ? -S.deltaX : s.x - Yt.x, y = S ? -S.deltaY : s.y - Yt.y;
4017
- if (s.copy(Yt), ((this._state & H.ROTATE) === H.ROTATE || (this._state & H.TOUCH_ROTATE) === H.TOUCH_ROTATE || (this._state & H.TOUCH_DOLLY_ROTATE) === H.TOUCH_DOLLY_ROTATE || (this._state & H.TOUCH_ZOOM_ROTATE) === H.TOUCH_ZOOM_ROTATE) && (this._rotateInternal(N, y), this._isUserControllingRotate = !0), (this._state & H.DOLLY) === H.DOLLY || (this._state & H.ZOOM) === H.ZOOM) {
4018
- const M = this.dollyToCursor ? (e.x - this._elementRect.x) / this._elementRect.width * 2 - 1 : 0, L = this.dollyToCursor ? (e.y - this._elementRect.y) / this._elementRect.height * -2 + 1 : 0, b = this.dollyDragInverted ? -1 : 1;
4019
- (this._state & H.DOLLY) === H.DOLLY ? (this._dollyInternal(b * y * rs, M, L), this._isUserControllingDolly = !0) : (this._zoomInternal(b * y * rs, M, L), this._isUserControllingZoom = !0);
4016
+ const S = this._domElement && document.pointerLockElement === this._domElement ? this._lockedPointer || this._activePointers[0] : null, O = S ? -S.deltaX : s.x - Yt.x, y = S ? -S.deltaY : s.y - Yt.y;
4017
+ if (s.copy(Yt), ((this._state & H.ROTATE) === H.ROTATE || (this._state & H.TOUCH_ROTATE) === H.TOUCH_ROTATE || (this._state & H.TOUCH_DOLLY_ROTATE) === H.TOUCH_DOLLY_ROTATE || (this._state & H.TOUCH_ZOOM_ROTATE) === H.TOUCH_ZOOM_ROTATE) && (this._rotateInternal(O, y), this._isUserControllingRotate = !0), (this._state & H.DOLLY) === H.DOLLY || (this._state & H.ZOOM) === H.ZOOM) {
4018
+ const w = this.dollyToCursor ? (e.x - this._elementRect.x) / this._elementRect.width * 2 - 1 : 0, L = this.dollyToCursor ? (e.y - this._elementRect.y) / this._elementRect.height * -2 + 1 : 0, b = this.dollyDragInverted ? -1 : 1;
4019
+ (this._state & H.DOLLY) === H.DOLLY ? (this._dollyInternal(b * y * rs, w, L), this._isUserControllingDolly = !0) : (this._zoomInternal(b * y * rs, w, L), this._isUserControllingZoom = !0);
4020
4020
  }
4021
4021
  if ((this._state & H.TOUCH_DOLLY) === H.TOUCH_DOLLY || (this._state & H.TOUCH_ZOOM) === H.TOUCH_ZOOM || (this._state & H.TOUCH_DOLLY_TRUCK) === H.TOUCH_DOLLY_TRUCK || (this._state & H.TOUCH_ZOOM_TRUCK) === H.TOUCH_ZOOM_TRUCK || (this._state & H.TOUCH_DOLLY_OFFSET) === H.TOUCH_DOLLY_OFFSET || (this._state & H.TOUCH_ZOOM_OFFSET) === H.TOUCH_ZOOM_OFFSET || (this._state & H.TOUCH_DOLLY_ROTATE) === H.TOUCH_DOLLY_ROTATE || (this._state & H.TOUCH_ZOOM_ROTATE) === H.TOUCH_ZOOM_ROTATE) {
4022
- const M = Yt.x - this._activePointers[1].clientX, L = Yt.y - this._activePointers[1].clientY, b = Math.sqrt(M * M + L * L), Y = n.y - b;
4022
+ const w = Yt.x - this._activePointers[1].clientX, L = Yt.y - this._activePointers[1].clientY, b = Math.sqrt(w * w + L * L), Y = n.y - b;
4023
4023
  n.set(0, b);
4024
- const O = this.dollyToCursor ? (s.x - this._elementRect.x) / this._elementRect.width * 2 - 1 : 0, w = this.dollyToCursor ? (s.y - this._elementRect.y) / this._elementRect.height * -2 + 1 : 0;
4025
- (this._state & H.TOUCH_DOLLY) === H.TOUCH_DOLLY || (this._state & H.TOUCH_DOLLY_ROTATE) === H.TOUCH_DOLLY_ROTATE || (this._state & H.TOUCH_DOLLY_TRUCK) === H.TOUCH_DOLLY_TRUCK || (this._state & H.TOUCH_DOLLY_OFFSET) === H.TOUCH_DOLLY_OFFSET ? (this._dollyInternal(Y * rs, O, w), this._isUserControllingDolly = !0) : (this._zoomInternal(Y * rs, O, w), this._isUserControllingZoom = !0);
4024
+ const N = this.dollyToCursor ? (s.x - this._elementRect.x) / this._elementRect.width * 2 - 1 : 0, M = this.dollyToCursor ? (s.y - this._elementRect.y) / this._elementRect.height * -2 + 1 : 0;
4025
+ (this._state & H.TOUCH_DOLLY) === H.TOUCH_DOLLY || (this._state & H.TOUCH_DOLLY_ROTATE) === H.TOUCH_DOLLY_ROTATE || (this._state & H.TOUCH_DOLLY_TRUCK) === H.TOUCH_DOLLY_TRUCK || (this._state & H.TOUCH_DOLLY_OFFSET) === H.TOUCH_DOLLY_OFFSET ? (this._dollyInternal(Y * rs, N, M), this._isUserControllingDolly = !0) : (this._zoomInternal(Y * rs, N, M), this._isUserControllingZoom = !0);
4026
4026
  }
4027
- ((this._state & H.TRUCK) === H.TRUCK || (this._state & H.TOUCH_TRUCK) === H.TOUCH_TRUCK || (this._state & H.TOUCH_DOLLY_TRUCK) === H.TOUCH_DOLLY_TRUCK || (this._state & H.TOUCH_ZOOM_TRUCK) === H.TOUCH_ZOOM_TRUCK) && (this._truckInternal(N, y, !1), this._isUserControllingTruck = !0), ((this._state & H.OFFSET) === H.OFFSET || (this._state & H.TOUCH_OFFSET) === H.TOUCH_OFFSET || (this._state & H.TOUCH_DOLLY_OFFSET) === H.TOUCH_DOLLY_OFFSET || (this._state & H.TOUCH_ZOOM_OFFSET) === H.TOUCH_ZOOM_OFFSET) && (this._truckInternal(N, y, !0), this._isUserControllingOffset = !0), this.dispatchEvent({ type: "control" });
4027
+ ((this._state & H.TRUCK) === H.TRUCK || (this._state & H.TOUCH_TRUCK) === H.TOUCH_TRUCK || (this._state & H.TOUCH_DOLLY_TRUCK) === H.TOUCH_DOLLY_TRUCK || (this._state & H.TOUCH_ZOOM_TRUCK) === H.TOUCH_ZOOM_TRUCK) && (this._truckInternal(O, y, !1), this._isUserControllingTruck = !0), ((this._state & H.OFFSET) === H.OFFSET || (this._state & H.TOUCH_OFFSET) === H.TOUCH_OFFSET || (this._state & H.TOUCH_DOLLY_OFFSET) === H.TOUCH_DOLLY_OFFSET || (this._state & H.TOUCH_ZOOM_OFFSET) === H.TOUCH_ZOOM_OFFSET) && (this._truckInternal(O, y, !0), this._isUserControllingOffset = !0), this.dispatchEvent({ type: "control" });
4028
4028
  }, p = () => {
4029
4029
  rn(this._activePointers, Yt), s.copy(Yt), this._dragNeedsUpdate = !1, (this._activePointers.length === 0 || this._activePointers.length === 1 && this._activePointers[0] === this._lockedPointer) && (this._isDragging = !1), this._activePointers.length === 0 && this._domElement && (this._domElement.ownerDocument.removeEventListener("pointermove", a, { passive: !1 }), this._domElement.ownerDocument.removeEventListener("mousemove", l), this._domElement.ownerDocument.removeEventListener("pointerup", h), this._domElement.ownerDocument.removeEventListener("mouseup", f), this.dispatchEvent({ type: "controlend" }));
4030
4030
  };
@@ -4492,8 +4492,8 @@ class vt extends ic {
4492
4492
  Si.setFromVector3(m.sub(p).applyQuaternion(this._yAxisUpSpace)), this._targetEnd.copy(E.lerp(p, u));
4493
4493
  const F = Si.theta - Xt.theta, R = Si.phi - Xt.phi, S = Si.radius - Xt.radius;
4494
4494
  this._sphericalEnd.set(Xt.radius + S * u, Xt.phi + R * u, Xt.theta + F * u), this.normalizeRotations(), this._needsUpdate = !0, d || (this._target.copy(this._targetEnd), this._spherical.copy(this._sphericalEnd));
4495
- const N = !d || pt(this._target.x, this._targetEnd.x, this.restThreshold) && pt(this._target.y, this._targetEnd.y, this.restThreshold) && pt(this._target.z, this._targetEnd.z, this.restThreshold) && pt(this._spherical.theta, this._sphericalEnd.theta, this.restThreshold) && pt(this._spherical.phi, this._sphericalEnd.phi, this.restThreshold) && pt(this._spherical.radius, this._sphericalEnd.radius, this.restThreshold);
4496
- return this._createOnRestPromise(N);
4495
+ const O = !d || pt(this._target.x, this._targetEnd.x, this.restThreshold) && pt(this._target.y, this._targetEnd.y, this.restThreshold) && pt(this._target.z, this._targetEnd.z, this.restThreshold) && pt(this._spherical.theta, this._sphericalEnd.theta, this.restThreshold) && pt(this._spherical.phi, this._sphericalEnd.phi, this.restThreshold) && pt(this._spherical.radius, this._sphericalEnd.radius, this.restThreshold);
4496
+ return this._createOnRestPromise(O);
4497
4497
  }
4498
4498
  /**
4499
4499
  * Set angle and distance by given position.
@@ -4736,18 +4736,18 @@ class vt extends ic {
4736
4736
  if (ve(this._camera) && this._changedDolly !== 0) {
4737
4737
  const f = this._spherical.radius - this._lastDistance, I = this._camera, u = this._getCameraDirection(Fi), d = ut.copy(u).cross(I.up).normalize();
4738
4738
  d.lengthSq() === 0 && (d.x = 1);
4739
- const E = Et.crossVectors(d, u), T = this._sphericalEnd.radius * Math.tan(I.getEffectiveFOV() * Ri * 0.5), m = (this._sphericalEnd.radius - f - this._sphericalEnd.radius) / this._sphericalEnd.radius, F = ti.copy(this._targetEnd).add(d.multiplyScalar(this._dollyControlCoord.x * T * I.aspect)).add(E.multiplyScalar(this._dollyControlCoord.y * T)), R = ut.copy(this._targetEnd).lerp(F, m), S = this._lastDollyDirection === Ke.IN && this._spherical.radius <= this.minDistance, N = this._lastDollyDirection === Ke.OUT && this.maxDistance <= this._spherical.radius;
4740
- if (this.infinityDolly && (S || N)) {
4739
+ const E = Et.crossVectors(d, u), T = this._sphericalEnd.radius * Math.tan(I.getEffectiveFOV() * Ri * 0.5), m = (this._sphericalEnd.radius - f - this._sphericalEnd.radius) / this._sphericalEnd.radius, F = ti.copy(this._targetEnd).add(d.multiplyScalar(this._dollyControlCoord.x * T * I.aspect)).add(E.multiplyScalar(this._dollyControlCoord.y * T)), R = ut.copy(this._targetEnd).lerp(F, m), S = this._lastDollyDirection === Ke.IN && this._spherical.radius <= this.minDistance, O = this._lastDollyDirection === Ke.OUT && this.maxDistance <= this._spherical.radius;
4740
+ if (this.infinityDolly && (S || O)) {
4741
4741
  this._sphericalEnd.radius -= f, this._spherical.radius -= f;
4742
- const M = Et.copy(u).multiplyScalar(-f);
4743
- R.add(M);
4742
+ const w = Et.copy(u).multiplyScalar(-f);
4743
+ R.add(w);
4744
4744
  }
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
4748
  } else if (Oe(this._camera) && this._changedZoom !== 0) {
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), N = m.multiplyScalar(S - F);
4750
- R.sub(N), this._boundary.clampPoint(R, R);
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
+ R.sub(O), this._boundary.clampPoint(R, R);
4751
4751
  const y = Et.subVectors(R, this._targetEnd);
4752
4752
  this._targetEnd.copy(R), this._target.add(y), this._changedZoom -= f, gt(this._changedZoom) && (this._changedZoom = 0);
4753
4753
  }
@@ -6674,7 +6674,7 @@ class Ac extends In {
6674
6674
  XZ: [
6675
6675
  [new rt(new Ut(0.15, 0.15, 0.01), l.clone()), [0.15, 0, 0.15], [-Math.PI / 2, 0, 0]]
6676
6676
  ]
6677
- }, N = {
6677
+ }, O = {
6678
6678
  X: [
6679
6679
  [new rt(new Vt(0.2, 0, 0.6, 4), e), [0.3, 0, 0], [0, 0, -Math.PI / 2]],
6680
6680
  [new rt(new Vt(0.2, 0, 0.6, 4), e), [-0.3, 0, 0], [0, 0, Math.PI / 2]]
@@ -6718,7 +6718,7 @@ class Ac extends In {
6718
6718
  Z: [
6719
6719
  [new Ae(p, s.clone()), [0, 0, -1e3], [0, -Math.PI / 2, 0], [1e6, 1, 1], "helper"]
6720
6720
  ]
6721
- }, M = {
6721
+ }, w = {
6722
6722
  XYZE: [
6723
6723
  [new rt(F(0.5, 1), d), null, [0, Math.PI / 2, 0]]
6724
6724
  ],
@@ -6782,7 +6782,7 @@ class Ac extends In {
6782
6782
  XYZ: [
6783
6783
  [new rt(new Ut(0.1, 0.1, 0.1), f.clone())]
6784
6784
  ]
6785
- }, O = {
6785
+ }, N = {
6786
6786
  X: [
6787
6787
  [new rt(new Vt(0.2, 0, 0.6, 4), e), [0.3, 0, 0], [0, 0, -Math.PI / 2]],
6788
6788
  [new rt(new Vt(0.2, 0, 0.6, 4), e), [-0.3, 0, 0], [0, 0, Math.PI / 2]]
@@ -6807,7 +6807,7 @@ class Ac extends In {
6807
6807
  XYZ: [
6808
6808
  [new rt(new Ut(0.2, 0.2, 0.2), e), [0, 0, 0]]
6809
6809
  ]
6810
- }, w = {
6810
+ }, M = {
6811
6811
  X: [
6812
6812
  [new Ae(p, s.clone()), [-1e3, 0, 0], null, [1e6, 1, 1], "helper"]
6813
6813
  ],
@@ -6829,7 +6829,7 @@ class Ac extends In {
6829
6829
  }
6830
6830
  return q;
6831
6831
  }
6832
- this.gizmo = {}, this.picker = {}, this.helper = {}, this.add(this.gizmo.translate = g(S)), this.add(this.gizmo.rotate = g(M)), this.add(this.gizmo.scale = g(Y)), this.add(this.picker.translate = g(N)), this.add(this.picker.rotate = g(b)), this.add(this.picker.scale = g(O)), this.add(this.helper.translate = g(y)), this.add(this.helper.rotate = g(L)), this.add(this.helper.scale = g(w)), this.picker.translate.visible = !1, this.picker.rotate.visible = !1, this.picker.scale.visible = !1;
6832
+ this.gizmo = {}, this.picker = {}, this.helper = {}, this.add(this.gizmo.translate = g(S)), this.add(this.gizmo.rotate = g(w)), this.add(this.gizmo.scale = g(Y)), this.add(this.picker.translate = g(O)), this.add(this.picker.rotate = g(b)), this.add(this.picker.scale = g(N)), this.add(this.helper.translate = g(y)), this.add(this.helper.rotate = g(L)), this.add(this.helper.scale = g(M)), this.picker.translate.visible = !1, this.picker.rotate.visible = !1, this.picker.scale.visible = !1;
6833
6833
  }
6834
6834
  // updateMatrixWorld will update transformations and appearance of individual handles
6835
6835
  updateMatrixWorld(i) {
@@ -10967,10 +10967,10 @@ const bi = class bi extends At {
10967
10967
  for (let r = 0; r < s; r++) {
10968
10968
  const o = t.geometries.get(r), { x: a, y: l, z: h, w: f } = o.color, I = f !== 1, { geometryExpressID: u } = o, d = `${u}-${I}`;
10969
10969
  if (!this._visitedFragments.has(d)) {
10970
- const S = this.getGeometry(this.webIfc, u), N = I ? this._materialT : this._material, y = new Qt.Fragment(S, N, 1);
10970
+ const S = this.getGeometry(this.webIfc, u), O = I ? this._materialT : this._material, y = new Qt.Fragment(S, O, 1);
10971
10971
  e.add(y.mesh), e.items.push(y);
10972
- const M = this._visitedFragments.size;
10973
- this._visitedFragments.set(d, { index: M, fragment: y });
10972
+ const w = this._visitedFragments.size;
10973
+ this._visitedFragments.set(d, { index: w, fragment: y });
10974
10974
  }
10975
10975
  const E = new D.Color().setRGB(a, l, h, "srgb"), T = new D.Matrix4();
10976
10976
  T.fromArray(o.flatTransformation);
@@ -12330,20 +12330,20 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12330
12330
  return T;
12331
12331
  }
12332
12332
  function r(u, d, E, T, p, m) {
12333
- var F, R, S = u.file, N = u.compression, y = m !== l.utf8encode, M = o.transformTo("string", m(S.name)), L = o.transformTo("string", l.utf8encode(S.name)), b = S.comment, Y = o.transformTo("string", m(b)), O = o.transformTo("string", l.utf8encode(b)), w = L.length !== S.name.length, g = O.length !== b.length, v = "", q = "", G = "", et = S.dir, W = S.date, nt = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
12333
+ var F, R, S = u.file, O = u.compression, y = m !== l.utf8encode, w = o.transformTo("string", m(S.name)), L = o.transformTo("string", l.utf8encode(S.name)), b = S.comment, Y = o.transformTo("string", m(b)), N = o.transformTo("string", l.utf8encode(b)), M = L.length !== S.name.length, g = N.length !== b.length, v = "", q = "", G = "", et = S.dir, W = S.date, nt = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
12334
12334
  d && !E || (nt.crc32 = u.crc32, nt.compressedSize = u.compressedSize, nt.uncompressedSize = u.uncompressedSize);
12335
12335
  var V = 0;
12336
- d && (V |= 8), y || !w && !g || (V |= 2048);
12336
+ d && (V |= 8), y || !M && !g || (V |= 2048);
12337
12337
  var x = 0, ot = 0;
12338
12338
  et && (x |= 16), p === "UNIX" ? (ot = 798, x |= function(tt, St) {
12339
12339
  var yt = tt;
12340
12340
  return tt || (yt = St ? 16893 : 33204), (65535 & yt) << 16;
12341
12341
  }(S.unixPermissions, et)) : (ot = 20, x |= function(tt) {
12342
12342
  return 63 & (tt || 0);
12343
- }(S.dosPermissions)), F = W.getUTCHours(), F <<= 6, F |= W.getUTCMinutes(), F <<= 5, F |= W.getUTCSeconds() / 2, R = W.getUTCFullYear() - 1980, R <<= 4, R |= W.getUTCMonth() + 1, R <<= 5, R |= W.getUTCDate(), w && (q = n(1, 1) + n(h(M), 4) + L, v += "up" + n(q.length, 2) + q), g && (G = n(1, 1) + n(h(Y), 4) + O, v += "uc" + n(G.length, 2) + G);
12343
+ }(S.dosPermissions)), F = W.getUTCHours(), F <<= 6, F |= W.getUTCMinutes(), F <<= 5, F |= W.getUTCSeconds() / 2, R = W.getUTCFullYear() - 1980, R <<= 4, R |= W.getUTCMonth() + 1, R <<= 5, R |= W.getUTCDate(), M && (q = n(1, 1) + n(h(w), 4) + L, v += "up" + n(q.length, 2) + q), g && (G = n(1, 1) + n(h(Y), 4) + N, v += "uc" + n(G.length, 2) + G);
12344
12344
  var it = "";
12345
12345
  return it += `
12346
- \0`, it += n(V, 2), it += N.magic, it += n(F, 2), it += n(R, 2), it += n(nt.crc32, 4), it += n(nt.compressedSize, 4), it += n(nt.uncompressedSize, 4), it += n(M.length, 2), it += n(v.length, 2), { fileRecord: f.LOCAL_FILE_HEADER + it + M + v, dirRecord: f.CENTRAL_FILE_HEADER + n(ot, 2) + it + n(Y.length, 2) + "\0\0\0\0" + n(x, 4) + n(T, 4) + M + v + Y };
12346
+ \0`, it += n(V, 2), it += O.magic, it += n(F, 2), it += n(R, 2), it += n(nt.crc32, 4), it += n(nt.compressedSize, 4), it += n(nt.uncompressedSize, 4), it += n(w.length, 2), it += n(v.length, 2), { fileRecord: f.LOCAL_FILE_HEADER + it + w + v, dirRecord: f.CENTRAL_FILE_HEADER + n(ot, 2) + it + n(Y.length, 2) + "\0\0\0\0" + n(x, 4) + n(T, 4) + w + v + Y };
12347
12347
  }
12348
12348
  var o = t("../utils"), a = t("../stream/GenericWorker"), l = t("../utf8"), h = t("../crc32"), f = t("../signature");
12349
12349
  function I(u, d, E, T) {
@@ -12375,8 +12375,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12375
12375
  for (var u = this.bytesWritten, d = 0; d < this.dirRecords.length; d++)
12376
12376
  this.push({ data: this.dirRecords[d], meta: { percent: 100 } });
12377
12377
  var E = this.bytesWritten - u, T = function(p, m, F, R, S) {
12378
- var N = o.transformTo("string", S(R));
12379
- return f.CENTRAL_DIRECTORY_END + "\0\0\0\0" + n(p, 2) + n(p, 2) + n(m, 4) + n(F, 4) + n(N.length, 2) + N;
12378
+ var O = o.transformTo("string", S(R));
12379
+ return f.CENTRAL_DIRECTORY_END + "\0\0\0\0" + n(p, 2) + n(p, 2) + n(m, 4) + n(F, 4) + n(O.length, 2) + O;
12380
12380
  }(this.dirRecords.length, E, u, this.zipComment, this.encodeFileName);
12381
12381
  this.push({ data: T, meta: { percent: 100 } });
12382
12382
  }, I.prototype.prepareNextSource = function() {
@@ -12528,24 +12528,24 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12528
12528
  return n && typeof n.on == "function" && typeof n.pause == "function" && typeof n.resume == "function";
12529
12529
  } };
12530
12530
  }, {}], 15: [function(t, e, s) {
12531
- function n(S, N, y) {
12532
- var M, L = o.getTypeOf(N), b = o.extend(y || {}, h);
12533
- b.date = b.date || /* @__PURE__ */ new Date(), b.compression !== null && (b.compression = b.compression.toUpperCase()), typeof b.unixPermissions == "string" && (b.unixPermissions = parseInt(b.unixPermissions, 8)), b.unixPermissions && 16384 & b.unixPermissions && (b.dir = !0), b.dosPermissions && 16 & b.dosPermissions && (b.dir = !0), b.dir && (S = p(S)), b.createFolders && (M = T(S)) && m.call(this, M, !0);
12531
+ function n(S, O, y) {
12532
+ var w, L = o.getTypeOf(O), b = o.extend(y || {}, h);
12533
+ b.date = b.date || /* @__PURE__ */ new Date(), b.compression !== null && (b.compression = b.compression.toUpperCase()), typeof b.unixPermissions == "string" && (b.unixPermissions = parseInt(b.unixPermissions, 8)), b.unixPermissions && 16384 & b.unixPermissions && (b.dir = !0), b.dosPermissions && 16 & b.dosPermissions && (b.dir = !0), b.dir && (S = p(S)), b.createFolders && (w = T(S)) && m.call(this, w, !0);
12534
12534
  var Y = L === "string" && b.binary === !1 && b.base64 === !1;
12535
- y && y.binary !== void 0 || (b.binary = !Y), (N instanceof f && N.uncompressedSize === 0 || b.dir || !N || N.length === 0) && (b.base64 = !1, b.binary = !0, N = "", b.compression = "STORE", L = "string");
12536
- var O = null;
12537
- O = N instanceof f || N instanceof a ? N : d.isNode && d.isStream(N) ? new E(S, N) : o.prepareContent(S, N, b.binary, b.optimizedBinaryString, b.base64);
12538
- var w = new I(S, O, b);
12539
- this.files[S] = w;
12535
+ y && y.binary !== void 0 || (b.binary = !Y), (O instanceof f && O.uncompressedSize === 0 || b.dir || !O || O.length === 0) && (b.base64 = !1, b.binary = !0, O = "", b.compression = "STORE", L = "string");
12536
+ var N = null;
12537
+ N = O instanceof f || O instanceof a ? O : d.isNode && d.isStream(O) ? new E(S, O) : o.prepareContent(S, O, b.binary, b.optimizedBinaryString, b.base64);
12538
+ var M = new I(S, N, b);
12539
+ this.files[S] = M;
12540
12540
  }
12541
12541
  var r = t("./utf8"), o = t("./utils"), a = t("./stream/GenericWorker"), l = t("./stream/StreamHelper"), h = t("./defaults"), f = t("./compressedObject"), I = t("./zipObject"), u = t("./generate"), d = t("./nodejsUtils"), E = t("./nodejs/NodejsStreamInputAdapter"), T = function(S) {
12542
12542
  S.slice(-1) === "/" && (S = S.substring(0, S.length - 1));
12543
- var N = S.lastIndexOf("/");
12544
- return 0 < N ? S.substring(0, N) : "";
12543
+ var O = S.lastIndexOf("/");
12544
+ return 0 < O ? S.substring(0, O) : "";
12545
12545
  }, p = function(S) {
12546
12546
  return S.slice(-1) !== "/" && (S += "/"), S;
12547
- }, m = function(S, N) {
12548
- return N = N !== void 0 ? N : h.createFolders, S = p(S), this.files[S] || n.call(this, S, null, { dir: !0, createFolders: N }), this.files[S];
12547
+ }, m = function(S, O) {
12548
+ return O = O !== void 0 ? O : h.createFolders, S = p(S), this.files[S] || n.call(this, S, null, { dir: !0, createFolders: O }), this.files[S];
12549
12549
  };
12550
12550
  function F(S) {
12551
12551
  return Object.prototype.toString.call(S) === "[object RegExp]";
@@ -12553,21 +12553,21 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12553
12553
  var R = { load: function() {
12554
12554
  throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
12555
12555
  }, forEach: function(S) {
12556
- var N, y, M;
12557
- for (N in this.files)
12558
- M = this.files[N], (y = N.slice(this.root.length, N.length)) && N.slice(0, this.root.length) === this.root && S(y, M);
12556
+ var O, y, w;
12557
+ for (O in this.files)
12558
+ w = this.files[O], (y = O.slice(this.root.length, O.length)) && O.slice(0, this.root.length) === this.root && S(y, w);
12559
12559
  }, filter: function(S) {
12560
- var N = [];
12561
- return this.forEach(function(y, M) {
12562
- S(y, M) && N.push(M);
12563
- }), N;
12564
- }, file: function(S, N, y) {
12560
+ var O = [];
12561
+ return this.forEach(function(y, w) {
12562
+ S(y, w) && O.push(w);
12563
+ }), O;
12564
+ }, file: function(S, O, y) {
12565
12565
  if (arguments.length !== 1)
12566
- return S = this.root + S, n.call(this, S, N, y), this;
12566
+ return S = this.root + S, n.call(this, S, O, y), this;
12567
12567
  if (F(S)) {
12568
- var M = S;
12568
+ var w = S;
12569
12569
  return this.filter(function(b, Y) {
12570
- return !Y.dir && M.test(b);
12570
+ return !Y.dir && w.test(b);
12571
12571
  });
12572
12572
  }
12573
12573
  var L = this.files[this.root + S];
@@ -12579,37 +12579,37 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12579
12579
  return this.filter(function(L, b) {
12580
12580
  return b.dir && S.test(L);
12581
12581
  });
12582
- var N = this.root + S, y = m.call(this, N), M = this.clone();
12583
- return M.root = y.name, M;
12582
+ var O = this.root + S, y = m.call(this, O), w = this.clone();
12583
+ return w.root = y.name, w;
12584
12584
  }, remove: function(S) {
12585
12585
  S = this.root + S;
12586
- var N = this.files[S];
12587
- if (N || (S.slice(-1) !== "/" && (S += "/"), N = this.files[S]), N && !N.dir)
12586
+ var O = this.files[S];
12587
+ if (O || (S.slice(-1) !== "/" && (S += "/"), O = this.files[S]), O && !O.dir)
12588
12588
  delete this.files[S];
12589
12589
  else
12590
12590
  for (var y = this.filter(function(L, b) {
12591
12591
  return b.name.slice(0, S.length) === S;
12592
- }), M = 0; M < y.length; M++)
12593
- delete this.files[y[M].name];
12592
+ }), w = 0; w < y.length; w++)
12593
+ delete this.files[y[w].name];
12594
12594
  return this;
12595
12595
  }, generate: function() {
12596
12596
  throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
12597
12597
  }, generateInternalStream: function(S) {
12598
- var N, y = {};
12598
+ var O, y = {};
12599
12599
  try {
12600
12600
  if ((y = o.extend(S || {}, { streamFiles: !1, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName: r.utf8encode })).type = y.type.toLowerCase(), y.compression = y.compression.toUpperCase(), y.type === "binarystring" && (y.type = "string"), !y.type)
12601
12601
  throw new Error("No output type specified.");
12602
12602
  o.checkSupport(y.type), y.platform !== "darwin" && y.platform !== "freebsd" && y.platform !== "linux" && y.platform !== "sunos" || (y.platform = "UNIX"), y.platform === "win32" && (y.platform = "DOS");
12603
- var M = y.comment || this.comment || "";
12604
- N = u.generateWorker(this, y, M);
12603
+ var w = y.comment || this.comment || "";
12604
+ O = u.generateWorker(this, y, w);
12605
12605
  } catch (L) {
12606
- (N = new a("error")).error(L);
12606
+ (O = new a("error")).error(L);
12607
12607
  }
12608
- return new l(N, y.type || "string", y.mimeType);
12609
- }, generateAsync: function(S, N) {
12610
- return this.generateInternalStream(S).accumulate(N);
12611
- }, generateNodeStream: function(S, N) {
12612
- return (S = S || {}).type || (S.type = "nodebuffer"), this.generateInternalStream(S).toNodejsStream(N);
12608
+ return new l(O, y.type || "string", y.mimeType);
12609
+ }, generateAsync: function(S, O) {
12610
+ return this.generateInternalStream(S).accumulate(O);
12611
+ }, generateNodeStream: function(S, O) {
12612
+ return (S = S || {}).type || (S.type = "nodebuffer"), this.generateInternalStream(S).toNodejsStream(O);
12613
12613
  } };
12614
12614
  e.exports = R;
12615
12615
  }, { "./compressedObject": 2, "./defaults": 5, "./generate": 9, "./nodejs/NodejsStreamInputAdapter": 12, "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31, "./utils": 32, "./zipObject": 35 }], 16: [function(t, e, s) {
@@ -12848,41 +12848,41 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12848
12848
  function I(d, E) {
12849
12849
  return new h.Promise(function(T, p) {
12850
12850
  var m = [], F = d._internalType, R = d._outputType, S = d._mimeType;
12851
- d.on("data", function(N, y) {
12852
- m.push(N), E && E(y);
12853
- }).on("error", function(N) {
12854
- m = [], p(N);
12851
+ d.on("data", function(O, y) {
12852
+ m.push(O), E && E(y);
12853
+ }).on("error", function(O) {
12854
+ m = [], p(O);
12855
12855
  }).on("end", function() {
12856
12856
  try {
12857
- var N = function(y, M, L) {
12857
+ var O = function(y, w, L) {
12858
12858
  switch (y) {
12859
12859
  case "blob":
12860
- return n.newBlob(n.transformTo("arraybuffer", M), L);
12860
+ return n.newBlob(n.transformTo("arraybuffer", w), L);
12861
12861
  case "base64":
12862
- return a.encode(M);
12862
+ return a.encode(w);
12863
12863
  default:
12864
- return n.transformTo(y, M);
12864
+ return n.transformTo(y, w);
12865
12865
  }
12866
- }(R, function(y, M) {
12867
- var L, b = 0, Y = null, O = 0;
12868
- for (L = 0; L < M.length; L++)
12869
- O += M[L].length;
12866
+ }(R, function(y, w) {
12867
+ var L, b = 0, Y = null, N = 0;
12868
+ for (L = 0; L < w.length; L++)
12869
+ N += w[L].length;
12870
12870
  switch (y) {
12871
12871
  case "string":
12872
- return M.join("");
12872
+ return w.join("");
12873
12873
  case "array":
12874
- return Array.prototype.concat.apply([], M);
12874
+ return Array.prototype.concat.apply([], w);
12875
12875
  case "uint8array":
12876
- for (Y = new Uint8Array(O), L = 0; L < M.length; L++)
12877
- Y.set(M[L], b), b += M[L].length;
12876
+ for (Y = new Uint8Array(N), L = 0; L < w.length; L++)
12877
+ Y.set(w[L], b), b += w[L].length;
12878
12878
  return Y;
12879
12879
  case "nodebuffer":
12880
- return Buffer.concat(M);
12880
+ return Buffer.concat(w);
12881
12881
  default:
12882
12882
  throw new Error("concat : unsupported type '" + y + "'");
12883
12883
  }
12884
12884
  }(F, m), S);
12885
- T(N);
12885
+ T(O);
12886
12886
  } catch (y) {
12887
12887
  p(y);
12888
12888
  }
@@ -13138,18 +13138,18 @@ https://github.com/nodeca/pako/blob/main/LICENSE
13138
13138
  return p;
13139
13139
  }, s.prepareContent = function(E, T, p, m, F) {
13140
13140
  return a.Promise.resolve(T).then(function(R) {
13141
- return n.blob && (R instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(R)) !== -1) && typeof FileReader < "u" ? new a.Promise(function(S, N) {
13141
+ return n.blob && (R instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(R)) !== -1) && typeof FileReader < "u" ? new a.Promise(function(S, O) {
13142
13142
  var y = new FileReader();
13143
- y.onload = function(M) {
13144
- S(M.target.result);
13145
- }, y.onerror = function(M) {
13146
- N(M.target.error);
13143
+ y.onload = function(w) {
13144
+ S(w.target.result);
13145
+ }, y.onerror = function(w) {
13146
+ O(w.target.error);
13147
13147
  }, y.readAsArrayBuffer(R);
13148
13148
  }) : R;
13149
13149
  }).then(function(R) {
13150
13150
  var S = s.getTypeOf(R);
13151
- return S ? (S === "arraybuffer" ? R = s.transformTo("uint8array", R) : S === "string" && (F ? R = r.decode(R) : p && m !== !0 && (R = function(N) {
13152
- return h(N, n.uint8array ? new Uint8Array(N.length) : new Array(N.length));
13151
+ return S ? (S === "arraybuffer" ? R = s.transformTo("uint8array", R) : S === "string" && (F ? R = r.decode(R) : p && m !== !0 && (R = function(O) {
13152
+ return h(O, n.uint8array ? new Uint8Array(O.length) : new Array(O.length));
13153
13153
  }(R))), R) : a.Promise.reject(new Error("Can't read the data of '" + E + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
13154
13154
  });
13155
13155
  };
@@ -13403,10 +13403,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
13403
13403
  function S(y) {
13404
13404
  F || (F = !0, o.resolve(p, y));
13405
13405
  }
13406
- var N = T(function() {
13406
+ var O = T(function() {
13407
13407
  m(S, R);
13408
13408
  });
13409
- N.status === "error" && R(N.value);
13409
+ O.status === "error" && R(O.value);
13410
13410
  }
13411
13411
  function T(p, m) {
13412
13412
  var F = {};
@@ -13454,7 +13454,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
13454
13454
  E(p, R);
13455
13455
  else {
13456
13456
  p.state = l, p.outcome = m;
13457
- for (var S = -1, N = p.queue.length; ++S < N; )
13457
+ for (var S = -1, O = p.queue.length; ++S < O; )
13458
13458
  p.queue[S].callFulfilled(m);
13459
13459
  }
13460
13460
  return p;
@@ -13475,14 +13475,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
13475
13475
  var F = p.length, R = !1;
13476
13476
  if (!F)
13477
13477
  return this.resolve([]);
13478
- for (var S = new Array(F), N = 0, y = -1, M = new this(r); ++y < F; )
13478
+ for (var S = new Array(F), O = 0, y = -1, w = new this(r); ++y < F; )
13479
13479
  L(p[y], y);
13480
- return M;
13480
+ return w;
13481
13481
  function L(b, Y) {
13482
- m.resolve(b).then(function(O) {
13483
- S[Y] = O, ++N !== F || R || (R = !0, o.resolve(M, S));
13484
- }, function(O) {
13485
- R || (R = !0, o.reject(M, O));
13482
+ m.resolve(b).then(function(N) {
13483
+ S[Y] = N, ++O !== F || R || (R = !0, o.resolve(w, S));
13484
+ }, function(N) {
13485
+ R || (R = !0, o.reject(w, N));
13486
13486
  });
13487
13487
  }
13488
13488
  }, f.race = function(p) {
@@ -13492,14 +13492,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
13492
13492
  var F = p.length, R = !1;
13493
13493
  if (!F)
13494
13494
  return this.resolve([]);
13495
- for (var S = -1, N = new this(r); ++S < F; )
13496
- y = p[S], m.resolve(y).then(function(M) {
13497
- R || (R = !0, o.resolve(N, M));
13498
- }, function(M) {
13499
- R || (R = !0, o.reject(N, M));
13495
+ for (var S = -1, O = new this(r); ++S < F; )
13496
+ y = p[S], m.resolve(y).then(function(w) {
13497
+ R || (R = !0, o.resolve(O, w));
13498
+ }, function(w) {
13499
+ R || (R = !0, o.reject(O, w));
13500
13500
  });
13501
13501
  var y;
13502
- return N;
13502
+ return O;
13503
13503
  };
13504
13504
  }, { immediate: 36 }], 38: [function(t, e, s) {
13505
13505
  var n = {};
@@ -13529,12 +13529,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
13529
13529
  return F.result;
13530
13530
  }
13531
13531
  E.prototype.push = function(p, m) {
13532
- var F, R, S = this.strm, N = this.options.chunkSize;
13532
+ var F, R, S = this.strm, O = this.options.chunkSize;
13533
13533
  if (this.ended)
13534
13534
  return !1;
13535
13535
  R = m === ~~m ? m : m === !0 ? 4 : 0, typeof p == "string" ? S.input = o.string2buf(p) : h.call(p) === "[object ArrayBuffer]" ? S.input = new Uint8Array(p) : S.input = p, S.next_in = 0, S.avail_in = S.input.length;
13536
13536
  do {
13537
- if (S.avail_out === 0 && (S.output = new r.Buf8(N), S.next_out = 0, S.avail_out = N), (F = n.deflate(S, R)) !== 1 && F !== f)
13537
+ if (S.avail_out === 0 && (S.output = new r.Buf8(O), S.next_out = 0, S.avail_out = O), (F = n.deflate(S, R)) !== 1 && F !== f)
13538
13538
  return this.onEnd(F), !(this.ended = !0);
13539
13539
  S.avail_out !== 0 && (S.avail_in !== 0 || R !== 4 && R !== 2) || (this.options.to === "string" ? this.onData(o.buf2binstring(r.shrinkBuf(S.output, S.next_out))) : this.onData(r.shrinkBuf(S.output, S.next_out)));
13540
13540
  } while ((0 < S.avail_in || S.avail_out === 0) && F !== 1);
@@ -13568,14 +13568,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
13568
13568
  return p.result;
13569
13569
  }
13570
13570
  u.prototype.push = function(E, T) {
13571
- var p, m, F, R, S, N, y = this.strm, M = this.options.chunkSize, L = this.options.dictionary, b = !1;
13571
+ var p, m, F, R, S, O, y = this.strm, w = this.options.chunkSize, L = this.options.dictionary, b = !1;
13572
13572
  if (this.ended)
13573
13573
  return !1;
13574
13574
  m = T === ~~T ? T : T === !0 ? a.Z_FINISH : a.Z_NO_FLUSH, typeof E == "string" ? y.input = o.binstring2buf(E) : I.call(E) === "[object ArrayBuffer]" ? y.input = new Uint8Array(E) : y.input = E, y.next_in = 0, y.avail_in = y.input.length;
13575
13575
  do {
13576
- if (y.avail_out === 0 && (y.output = new r.Buf8(M), y.next_out = 0, y.avail_out = M), (p = n.inflate(y, a.Z_NO_FLUSH)) === a.Z_NEED_DICT && L && (N = typeof L == "string" ? o.string2buf(L) : I.call(L) === "[object ArrayBuffer]" ? new Uint8Array(L) : L, p = n.inflateSetDictionary(this.strm, N)), p === a.Z_BUF_ERROR && b === !0 && (p = a.Z_OK, b = !1), p !== a.Z_STREAM_END && p !== a.Z_OK)
13576
+ if (y.avail_out === 0 && (y.output = new r.Buf8(w), y.next_out = 0, y.avail_out = w), (p = n.inflate(y, a.Z_NO_FLUSH)) === a.Z_NEED_DICT && L && (O = typeof L == "string" ? o.string2buf(L) : I.call(L) === "[object ArrayBuffer]" ? new Uint8Array(L) : L, p = n.inflateSetDictionary(this.strm, O)), p === a.Z_BUF_ERROR && b === !0 && (p = a.Z_OK, b = !1), p !== a.Z_STREAM_END && p !== a.Z_OK)
13577
13577
  return this.onEnd(p), !(this.ended = !0);
13578
- y.next_out && (y.avail_out !== 0 && p !== a.Z_STREAM_END && (y.avail_in !== 0 || m !== a.Z_FINISH && m !== a.Z_SYNC_FLUSH) || (this.options.to === "string" ? (F = o.utf8border(y.output, y.next_out), R = y.next_out - F, S = o.buf2string(y.output, F), y.next_out = R, y.avail_out = M - R, R && r.arraySet(y.output, y.output, F, R, 0), this.onData(S)) : this.onData(r.shrinkBuf(y.output, y.next_out)))), y.avail_in === 0 && y.avail_out === 0 && (b = !0);
13578
+ y.next_out && (y.avail_out !== 0 && p !== a.Z_STREAM_END && (y.avail_in !== 0 || m !== a.Z_FINISH && m !== a.Z_SYNC_FLUSH) || (this.options.to === "string" ? (F = o.utf8border(y.output, y.next_out), R = y.next_out - F, S = o.buf2string(y.output, F), y.next_out = R, y.avail_out = w - R, R && r.arraySet(y.output, y.output, F, R, 0), this.onData(S)) : this.onData(r.shrinkBuf(y.output, y.next_out)))), y.avail_in === 0 && y.avail_out === 0 && (b = !0);
13579
13579
  } while ((0 < y.avail_in || y.avail_out === 0) && p !== a.Z_STREAM_END);
13580
13580
  return p === a.Z_STREAM_END && (m = a.Z_FINISH), m === a.Z_FINISH ? (p = n.inflateEnd(this.strm), this.onEnd(p), this.ended = !0, p === a.Z_OK) : m !== a.Z_SYNC_FLUSH || (this.onEnd(a.Z_OK), !(y.avail_out = 0));
13581
13581
  }, u.prototype.onData = function(E) {
@@ -13705,7 +13705,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
13705
13705
  return -1 ^ r;
13706
13706
  };
13707
13707
  }, {}], 46: [function(t, e, s) {
13708
- var n, r = t("../utils/common"), o = t("./trees"), a = t("./adler32"), l = t("./crc32"), h = t("./messages"), f = 0, I = 4, u = 0, d = -2, E = -1, T = 4, p = 2, m = 8, F = 9, R = 286, S = 30, N = 19, y = 2 * R + 1, M = 15, L = 3, b = 258, Y = b + L + 1, O = 42, w = 113, g = 1, v = 2, q = 3, G = 4;
13708
+ var n, r = t("../utils/common"), o = t("./trees"), a = t("./adler32"), l = t("./crc32"), h = t("./messages"), f = 0, I = 4, u = 0, d = -2, E = -1, T = 4, p = 2, m = 8, F = 9, R = 286, S = 30, O = 19, y = 2 * R + 1, w = 15, L = 3, b = 258, Y = b + L + 1, N = 42, M = 113, g = 1, v = 2, q = 3, G = 4;
13709
13709
  function et(A, X) {
13710
13710
  return A.msg = h[X], X;
13711
13711
  }
@@ -13811,11 +13811,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
13811
13811
  this.good_length = A, this.max_lazy = X, this.nice_length = k, this.max_chain = P, this.func = _;
13812
13812
  }
13813
13813
  function ft() {
13814
- 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 * N + 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(M + 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;
13814
+ 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;
13815
13815
  }
13816
13816
  function Ct(A) {
13817
13817
  var X;
13818
- return A && A.state ? (A.total_in = A.total_out = 0, A.data_type = p, (X = A.state).pending = 0, X.pending_out = 0, X.wrap < 0 && (X.wrap = -X.wrap), X.status = X.wrap ? O : w, A.adler = X.wrap === 2 ? 0 : 1, X.last_flush = f, o._tr_init(X), u) : et(A, d);
13818
+ return A && A.state ? (A.total_in = A.total_out = 0, A.data_type = p, (X = A.state).pending = 0, X.pending_out = 0, X.wrap < 0 && (X.wrap = -X.wrap), X.status = X.wrap ? N : M, A.adler = X.wrap === 2 ? 0 : 1, X.last_flush = f, o._tr_init(X), u) : et(A, d);
13819
13819
  }
13820
13820
  function Ht(A) {
13821
13821
  var X = Ct(A);
@@ -13858,12 +13858,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
13858
13858
  return A ? et(A, d) : d;
13859
13859
  if (P = A.state, !A.output || !A.input && A.avail_in !== 0 || P.status === 666 && X !== I)
13860
13860
  return et(A, A.avail_out === 0 ? -5 : d);
13861
- if (P.strm = A, k = P.last_flush, P.last_flush = X, P.status === O)
13861
+ if (P.strm = A, k = P.last_flush, P.last_flush = X, P.status === N)
13862
13862
  if (P.wrap === 2)
13863
- A.adler = 0, ot(P, 31), ot(P, 139), ot(P, 8), P.gzhead ? (ot(P, (P.gzhead.text ? 1 : 0) + (P.gzhead.hcrc ? 2 : 0) + (P.gzhead.extra ? 4 : 0) + (P.gzhead.name ? 8 : 0) + (P.gzhead.comment ? 16 : 0)), ot(P, 255 & P.gzhead.time), ot(P, P.gzhead.time >> 8 & 255), ot(P, P.gzhead.time >> 16 & 255), ot(P, P.gzhead.time >> 24 & 255), ot(P, P.level === 9 ? 2 : 2 <= P.strategy || P.level < 2 ? 4 : 0), ot(P, 255 & P.gzhead.os), P.gzhead.extra && P.gzhead.extra.length && (ot(P, 255 & P.gzhead.extra.length), ot(P, P.gzhead.extra.length >> 8 & 255)), P.gzhead.hcrc && (A.adler = l(A.adler, P.pending_buf, P.pending, 0)), P.gzindex = 0, P.status = 69) : (ot(P, 0), ot(P, 0), ot(P, 0), ot(P, 0), ot(P, 0), ot(P, P.level === 9 ? 2 : 2 <= P.strategy || P.level < 2 ? 4 : 0), ot(P, 3), P.status = w);
13863
+ A.adler = 0, ot(P, 31), ot(P, 139), ot(P, 8), P.gzhead ? (ot(P, (P.gzhead.text ? 1 : 0) + (P.gzhead.hcrc ? 2 : 0) + (P.gzhead.extra ? 4 : 0) + (P.gzhead.name ? 8 : 0) + (P.gzhead.comment ? 16 : 0)), ot(P, 255 & P.gzhead.time), ot(P, P.gzhead.time >> 8 & 255), ot(P, P.gzhead.time >> 16 & 255), ot(P, P.gzhead.time >> 24 & 255), ot(P, P.level === 9 ? 2 : 2 <= P.strategy || P.level < 2 ? 4 : 0), ot(P, 255 & P.gzhead.os), P.gzhead.extra && P.gzhead.extra.length && (ot(P, 255 & P.gzhead.extra.length), ot(P, P.gzhead.extra.length >> 8 & 255)), P.gzhead.hcrc && (A.adler = l(A.adler, P.pending_buf, P.pending, 0)), P.gzindex = 0, P.status = 69) : (ot(P, 0), ot(P, 0), ot(P, 0), ot(P, 0), ot(P, 0), ot(P, P.level === 9 ? 2 : 2 <= P.strategy || P.level < 2 ? 4 : 0), ot(P, 3), P.status = M);
13864
13864
  else {
13865
13865
  var $ = m + (P.w_bits - 8 << 4) << 8;
13866
- $ |= (2 <= P.strategy || P.level < 2 ? 0 : P.level < 6 ? 1 : P.level === 6 ? 2 : 3) << 6, P.strstart !== 0 && ($ |= 32), $ += 31 - $ % 31, P.status = w, it(P, $), P.strstart !== 0 && (it(P, A.adler >>> 16), it(P, 65535 & A.adler)), A.adler = 1;
13866
+ $ |= (2 <= P.strategy || P.level < 2 ? 0 : P.level < 6 ? 1 : P.level === 6 ? 2 : 3) << 6, P.strstart !== 0 && ($ |= 32), $ += 31 - $ % 31, P.status = M, it(P, $), P.strstart !== 0 && (it(P, A.adler >>> 16), it(P, 65535 & A.adler)), A.adler = 1;
13867
13867
  }
13868
13868
  if (P.status === 69)
13869
13869
  if (P.gzhead.extra) {
@@ -13898,7 +13898,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
13898
13898
  P.gzhead.hcrc && P.pending > _ && (A.adler = l(A.adler, P.pending_buf, P.pending - _, _)), U === 0 && (P.status = 103);
13899
13899
  } else
13900
13900
  P.status = 103;
13901
- if (P.status === 103 && (P.gzhead.hcrc ? (P.pending + 2 > P.pending_buf_size && V(A), P.pending + 2 <= P.pending_buf_size && (ot(P, 255 & A.adler), ot(P, A.adler >> 8 & 255), A.adler = 0, P.status = w)) : P.status = w), P.pending !== 0) {
13901
+ if (P.status === 103 && (P.gzhead.hcrc ? (P.pending + 2 > P.pending_buf_size && V(A), P.pending + 2 <= P.pending_buf_size && (ot(P, 255 & A.adler), ot(P, A.adler >> 8 & 255), A.adler = 0, P.status = M)) : P.status = M), P.pending !== 0) {
13902
13902
  if (V(A), A.avail_out === 0)
13903
13903
  return P.last_flush = -1, u;
13904
13904
  } else if (A.avail_in === 0 && W(X) <= W(k) && X !== I)
@@ -13945,10 +13945,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
13945
13945
  return X !== I ? u : P.wrap <= 0 ? 1 : (P.wrap === 2 ? (ot(P, 255 & A.adler), ot(P, A.adler >> 8 & 255), ot(P, A.adler >> 16 & 255), ot(P, A.adler >> 24 & 255), ot(P, 255 & A.total_in), ot(P, A.total_in >> 8 & 255), ot(P, A.total_in >> 16 & 255), ot(P, A.total_in >> 24 & 255)) : (it(P, A.adler >>> 16), it(P, 65535 & A.adler)), V(A), 0 < P.wrap && (P.wrap = -P.wrap), P.pending !== 0 ? u : 1);
13946
13946
  }, s.deflateEnd = function(A) {
13947
13947
  var X;
13948
- return A && A.state ? (X = A.state.status) !== O && X !== 69 && X !== 73 && X !== 91 && X !== 103 && X !== w && X !== 666 ? et(A, d) : (A.state = null, X === w ? et(A, -3) : u) : d;
13948
+ 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;
13949
13949
  }, s.deflateSetDictionary = function(A, X) {
13950
13950
  var k, P, _, U, $, Z, B, K, st = X.length;
13951
- if (!A || !A.state || (U = (k = A.state).wrap) === 2 || U === 1 && k.status !== O || k.lookahead)
13951
+ if (!A || !A.state || (U = (k = A.state).wrap) === 2 || U === 1 && k.status !== N || k.lookahead)
13952
13952
  return d;
13953
13953
  for (U === 1 && (A.adler = a(A.adler, X, st, 0)), k.wrap = 0, st >= k.w_size && (U === 0 && (nt(k.head), k.strstart = 0, k.block_start = 0, k.insert = 0), K = new r.Buf8(k.w_size), r.arraySet(K, X, st - k.w_size, k.w_size, 0), X = K, st = k.w_size), $ = A.avail_in, Z = A.next_in, B = A.input, A.avail_in = st, A.next_in = 0, A.input = X, St(k); k.lookahead >= L; ) {
13954
13954
  for (P = k.strstart, _ = k.lookahead - (L - 1); k.ins_h = (k.ins_h << k.hash_shift ^ k.window[P + L - 1]) & k.hash_mask, k.prev[P & k.w_mask] = k.head[k.ins_h], k.head[k.ins_h] = P, P++, --_; )
@@ -13963,19 +13963,19 @@ https://github.com/nodeca/pako/blob/main/LICENSE
13963
13963
  };
13964
13964
  }, {}], 48: [function(t, e, s) {
13965
13965
  e.exports = function(n, r) {
13966
- var o, a, l, h, f, I, u, d, E, T, p, m, F, R, S, N, y, M, L, b, Y, O, w, g, v;
13967
- o = n.state, a = n.next_in, g = n.input, l = a + (n.avail_in - 5), h = n.next_out, v = n.output, f = h - (r - n.avail_out), I = h + (n.avail_out - 257), u = o.dmax, d = o.wsize, E = o.whave, T = o.wnext, p = o.window, m = o.hold, F = o.bits, R = o.lencode, S = o.distcode, N = (1 << o.lenbits) - 1, y = (1 << o.distbits) - 1;
13966
+ var o, a, l, h, f, I, u, d, E, T, p, m, F, R, S, O, y, w, L, b, Y, N, M, g, v;
13967
+ o = n.state, a = n.next_in, g = n.input, l = a + (n.avail_in - 5), h = n.next_out, v = n.output, f = h - (r - n.avail_out), I = h + (n.avail_out - 257), u = o.dmax, d = o.wsize, E = o.whave, T = o.wnext, p = o.window, m = o.hold, F = o.bits, R = o.lencode, S = o.distcode, O = (1 << o.lenbits) - 1, y = (1 << o.distbits) - 1;
13968
13968
  t:
13969
13969
  do {
13970
- F < 15 && (m += g[a++] << F, F += 8, m += g[a++] << F, F += 8), M = R[m & N];
13970
+ F < 15 && (m += g[a++] << F, F += 8, m += g[a++] << F, F += 8), w = R[m & O];
13971
13971
  e:
13972
13972
  for (; ; ) {
13973
- if (m >>>= L = M >>> 24, F -= L, (L = M >>> 16 & 255) === 0)
13974
- v[h++] = 65535 & M;
13973
+ if (m >>>= L = w >>> 24, F -= L, (L = w >>> 16 & 255) === 0)
13974
+ v[h++] = 65535 & w;
13975
13975
  else {
13976
13976
  if (!(16 & L)) {
13977
13977
  if (!(64 & L)) {
13978
- M = R[(65535 & M) + (m & (1 << L) - 1)];
13978
+ w = R[(65535 & w) + (m & (1 << L) - 1)];
13979
13979
  continue e;
13980
13980
  }
13981
13981
  if (32 & L) {
@@ -13985,18 +13985,18 @@ https://github.com/nodeca/pako/blob/main/LICENSE
13985
13985
  n.msg = "invalid literal/length code", o.mode = 30;
13986
13986
  break t;
13987
13987
  }
13988
- b = 65535 & M, (L &= 15) && (F < L && (m += g[a++] << F, F += 8), b += m & (1 << L) - 1, m >>>= L, F -= L), F < 15 && (m += g[a++] << F, F += 8, m += g[a++] << F, F += 8), M = S[m & y];
13988
+ b = 65535 & w, (L &= 15) && (F < L && (m += g[a++] << F, F += 8), b += m & (1 << L) - 1, m >>>= L, F -= L), F < 15 && (m += g[a++] << F, F += 8, m += g[a++] << F, F += 8), w = S[m & y];
13989
13989
  i:
13990
13990
  for (; ; ) {
13991
- if (m >>>= L = M >>> 24, F -= L, !(16 & (L = M >>> 16 & 255))) {
13991
+ if (m >>>= L = w >>> 24, F -= L, !(16 & (L = w >>> 16 & 255))) {
13992
13992
  if (!(64 & L)) {
13993
- M = S[(65535 & M) + (m & (1 << L) - 1)];
13993
+ w = S[(65535 & w) + (m & (1 << L) - 1)];
13994
13994
  continue i;
13995
13995
  }
13996
13996
  n.msg = "invalid distance code", o.mode = 30;
13997
13997
  break t;
13998
13998
  }
13999
- if (Y = 65535 & M, F < (L &= 15) && (m += g[a++] << F, (F += 8) < L && (m += g[a++] << F, F += 8)), u < (Y += m & (1 << L) - 1)) {
13999
+ if (Y = 65535 & w, F < (L &= 15) && (m += g[a++] << F, (F += 8) < L && (m += g[a++] << F, F += 8)), u < (Y += m & (1 << L) - 1)) {
14000
14000
  n.msg = "invalid distance too far back", o.mode = 30;
14001
14001
  break t;
14002
14002
  }
@@ -14005,34 +14005,34 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14005
14005
  n.msg = "invalid distance too far back", o.mode = 30;
14006
14006
  break t;
14007
14007
  }
14008
- if (w = p, (O = 0) === T) {
14009
- if (O += d - L, L < b) {
14010
- for (b -= L; v[h++] = p[O++], --L; )
14008
+ if (M = p, (N = 0) === T) {
14009
+ if (N += d - L, L < b) {
14010
+ for (b -= L; v[h++] = p[N++], --L; )
14011
14011
  ;
14012
- O = h - Y, w = v;
14012
+ N = h - Y, M = v;
14013
14013
  }
14014
14014
  } else if (T < L) {
14015
- if (O += d + T - L, (L -= T) < b) {
14016
- for (b -= L; v[h++] = p[O++], --L; )
14015
+ if (N += d + T - L, (L -= T) < b) {
14016
+ for (b -= L; v[h++] = p[N++], --L; )
14017
14017
  ;
14018
- if (O = 0, T < b) {
14019
- for (b -= L = T; v[h++] = p[O++], --L; )
14018
+ if (N = 0, T < b) {
14019
+ for (b -= L = T; v[h++] = p[N++], --L; )
14020
14020
  ;
14021
- O = h - Y, w = v;
14021
+ N = h - Y, M = v;
14022
14022
  }
14023
14023
  }
14024
- } else if (O += T - L, L < b) {
14025
- for (b -= L; v[h++] = p[O++], --L; )
14024
+ } else if (N += T - L, L < b) {
14025
+ for (b -= L; v[h++] = p[N++], --L; )
14026
14026
  ;
14027
- O = h - Y, w = v;
14027
+ N = h - Y, M = v;
14028
14028
  }
14029
14029
  for (; 2 < b; )
14030
- v[h++] = w[O++], v[h++] = w[O++], v[h++] = w[O++], b -= 3;
14031
- b && (v[h++] = w[O++], 1 < b && (v[h++] = w[O++]));
14030
+ v[h++] = M[N++], v[h++] = M[N++], v[h++] = M[N++], b -= 3;
14031
+ b && (v[h++] = M[N++], 1 < b && (v[h++] = M[N++]));
14032
14032
  } else {
14033
- for (O = h - Y; v[h++] = v[O++], v[h++] = v[O++], v[h++] = v[O++], 2 < (b -= 3); )
14033
+ for (N = h - Y; v[h++] = v[N++], v[h++] = v[N++], v[h++] = v[N++], 2 < (b -= 3); )
14034
14034
  ;
14035
- b && (v[h++] = v[O++], 1 < b && (v[h++] = v[O++]));
14035
+ b && (v[h++] = v[N++], 1 < b && (v[h++] = v[N++]));
14036
14036
  }
14037
14037
  break;
14038
14038
  }
@@ -14044,57 +14044,57 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14044
14044
  };
14045
14045
  }, {}], 49: [function(t, e, s) {
14046
14046
  var n = t("../utils/common"), r = t("./adler32"), o = t("./crc32"), a = t("./inffast"), l = t("./inftrees"), h = 1, f = 2, I = 0, u = -2, d = 1, E = 852, T = 592;
14047
- function p(O) {
14048
- return (O >>> 24 & 255) + (O >>> 8 & 65280) + ((65280 & O) << 8) + ((255 & O) << 24);
14047
+ function p(N) {
14048
+ return (N >>> 24 & 255) + (N >>> 8 & 65280) + ((65280 & N) << 8) + ((255 & N) << 24);
14049
14049
  }
14050
14050
  function m() {
14051
14051
  this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new n.Buf16(320), this.work = new n.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
14052
14052
  }
14053
- function F(O) {
14054
- var w;
14055
- return O && O.state ? (w = O.state, O.total_in = O.total_out = w.total = 0, O.msg = "", w.wrap && (O.adler = 1 & w.wrap), w.mode = d, w.last = 0, w.havedict = 0, w.dmax = 32768, w.head = null, w.hold = 0, w.bits = 0, w.lencode = w.lendyn = new n.Buf32(E), w.distcode = w.distdyn = new n.Buf32(T), w.sane = 1, w.back = -1, I) : u;
14053
+ function F(N) {
14054
+ var M;
14055
+ return N && N.state ? (M = N.state, N.total_in = N.total_out = M.total = 0, N.msg = "", M.wrap && (N.adler = 1 & M.wrap), M.mode = d, M.last = 0, M.havedict = 0, M.dmax = 32768, M.head = null, M.hold = 0, M.bits = 0, M.lencode = M.lendyn = new n.Buf32(E), M.distcode = M.distdyn = new n.Buf32(T), M.sane = 1, M.back = -1, I) : u;
14056
14056
  }
14057
- function R(O) {
14058
- var w;
14059
- return O && O.state ? ((w = O.state).wsize = 0, w.whave = 0, w.wnext = 0, F(O)) : u;
14057
+ function R(N) {
14058
+ var M;
14059
+ return N && N.state ? ((M = N.state).wsize = 0, M.whave = 0, M.wnext = 0, F(N)) : u;
14060
14060
  }
14061
- function S(O, w) {
14061
+ function S(N, M) {
14062
14062
  var g, v;
14063
- return O && O.state ? (v = O.state, w < 0 ? (g = 0, w = -w) : (g = 1 + (w >> 4), w < 48 && (w &= 15)), w && (w < 8 || 15 < w) ? u : (v.window !== null && v.wbits !== w && (v.window = null), v.wrap = g, v.wbits = w, R(O))) : u;
14063
+ return N && N.state ? (v = N.state, M < 0 ? (g = 0, M = -M) : (g = 1 + (M >> 4), M < 48 && (M &= 15)), M && (M < 8 || 15 < M) ? u : (v.window !== null && v.wbits !== M && (v.window = null), v.wrap = g, v.wbits = M, R(N))) : u;
14064
14064
  }
14065
- function N(O, w) {
14065
+ function O(N, M) {
14066
14066
  var g, v;
14067
- return O ? (v = new m(), (O.state = v).window = null, (g = S(O, w)) !== I && (O.state = null), g) : u;
14067
+ return N ? (v = new m(), (N.state = v).window = null, (g = S(N, M)) !== I && (N.state = null), g) : u;
14068
14068
  }
14069
- var y, M, L = !0;
14070
- function b(O) {
14069
+ var y, w, L = !0;
14070
+ function b(N) {
14071
14071
  if (L) {
14072
- var w;
14073
- for (y = new n.Buf32(512), M = new n.Buf32(32), w = 0; w < 144; )
14074
- O.lens[w++] = 8;
14075
- for (; w < 256; )
14076
- O.lens[w++] = 9;
14077
- for (; w < 280; )
14078
- O.lens[w++] = 7;
14079
- for (; w < 288; )
14080
- O.lens[w++] = 8;
14081
- for (l(h, O.lens, 0, 288, y, 0, O.work, { bits: 9 }), w = 0; w < 32; )
14082
- O.lens[w++] = 5;
14083
- l(f, O.lens, 0, 32, M, 0, O.work, { bits: 5 }), L = !1;
14072
+ var M;
14073
+ for (y = new n.Buf32(512), w = new n.Buf32(32), M = 0; M < 144; )
14074
+ N.lens[M++] = 8;
14075
+ for (; M < 256; )
14076
+ N.lens[M++] = 9;
14077
+ for (; M < 280; )
14078
+ N.lens[M++] = 7;
14079
+ for (; M < 288; )
14080
+ N.lens[M++] = 8;
14081
+ for (l(h, N.lens, 0, 288, y, 0, N.work, { bits: 9 }), M = 0; M < 32; )
14082
+ N.lens[M++] = 5;
14083
+ l(f, N.lens, 0, 32, w, 0, N.work, { bits: 5 }), L = !1;
14084
14084
  }
14085
- O.lencode = y, O.lenbits = 9, O.distcode = M, O.distbits = 5;
14085
+ N.lencode = y, N.lenbits = 9, N.distcode = w, N.distbits = 5;
14086
14086
  }
14087
- function Y(O, w, g, v) {
14088
- var q, G = O.state;
14089
- return G.window === null && (G.wsize = 1 << G.wbits, G.wnext = 0, G.whave = 0, G.window = new n.Buf8(G.wsize)), v >= G.wsize ? (n.arraySet(G.window, w, g - G.wsize, G.wsize, 0), G.wnext = 0, G.whave = G.wsize) : (v < (q = G.wsize - G.wnext) && (q = v), n.arraySet(G.window, w, g - v, q, G.wnext), (v -= q) ? (n.arraySet(G.window, w, g - v, v, 0), G.wnext = v, G.whave = G.wsize) : (G.wnext += q, G.wnext === G.wsize && (G.wnext = 0), G.whave < G.wsize && (G.whave += q))), 0;
14087
+ function Y(N, M, g, v) {
14088
+ var q, G = N.state;
14089
+ return G.window === null && (G.wsize = 1 << G.wbits, G.wnext = 0, G.whave = 0, G.window = new n.Buf8(G.wsize)), v >= G.wsize ? (n.arraySet(G.window, M, g - G.wsize, G.wsize, 0), G.wnext = 0, G.whave = G.wsize) : (v < (q = G.wsize - G.wnext) && (q = v), n.arraySet(G.window, M, g - v, q, G.wnext), (v -= q) ? (n.arraySet(G.window, M, g - v, v, 0), G.wnext = v, G.whave = G.wsize) : (G.wnext += q, G.wnext === G.wsize && (G.wnext = 0), G.whave < G.wsize && (G.whave += q))), 0;
14090
14090
  }
14091
- s.inflateReset = R, s.inflateReset2 = S, s.inflateResetKeep = F, s.inflateInit = function(O) {
14092
- return N(O, 15);
14093
- }, s.inflateInit2 = N, s.inflate = function(O, w) {
14091
+ s.inflateReset = R, s.inflateReset2 = S, s.inflateResetKeep = F, s.inflateInit = function(N) {
14092
+ return O(N, 15);
14093
+ }, s.inflateInit2 = O, s.inflate = function(N, M) {
14094
14094
  var g, v, q, G, et, W, nt, V, x, ot, it, tt, St, yt, at, It, ft, Ct, Ht, Dt, A, X, k, 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];
14095
- if (!O || !O.state || !O.output || !O.input && O.avail_in !== 0)
14095
+ if (!N || !N.state || !N.output || !N.input && N.avail_in !== 0)
14096
14096
  return u;
14097
- (g = O.state).mode === 12 && (g.mode = 13), et = O.next_out, q = O.output, nt = O.avail_out, G = O.next_in, v = O.input, W = O.avail_in, V = g.hold, x = g.bits, ot = W, it = nt, X = I;
14097
+ (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;
14098
14098
  t:
14099
14099
  for (; ; )
14100
14100
  switch (g.mode) {
@@ -14113,20 +14113,20 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14113
14113
  break;
14114
14114
  }
14115
14115
  if (g.flags = 0, g.head && (g.head.done = !1), !(1 & g.wrap) || (((255 & V) << 8) + (V >> 8)) % 31) {
14116
- O.msg = "incorrect header check", g.mode = 30;
14116
+ N.msg = "incorrect header check", g.mode = 30;
14117
14117
  break;
14118
14118
  }
14119
14119
  if ((15 & V) != 8) {
14120
- O.msg = "unknown compression method", g.mode = 30;
14120
+ N.msg = "unknown compression method", g.mode = 30;
14121
14121
  break;
14122
14122
  }
14123
14123
  if (x -= 4, A = 8 + (15 & (V >>>= 4)), g.wbits === 0)
14124
14124
  g.wbits = A;
14125
14125
  else if (A > g.wbits) {
14126
- O.msg = "invalid window size", g.mode = 30;
14126
+ N.msg = "invalid window size", g.mode = 30;
14127
14127
  break;
14128
14128
  }
14129
- g.dmax = 1 << A, O.adler = g.check = 1, g.mode = 512 & V ? 10 : 12, x = V = 0;
14129
+ g.dmax = 1 << A, N.adler = g.check = 1, g.mode = 512 & V ? 10 : 12, x = V = 0;
14130
14130
  break;
14131
14131
  case 2:
14132
14132
  for (; x < 16; ) {
@@ -14135,11 +14135,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14135
14135
  W--, V += v[G++] << x, x += 8;
14136
14136
  }
14137
14137
  if (g.flags = V, (255 & g.flags) != 8) {
14138
- O.msg = "unknown compression method", g.mode = 30;
14138
+ N.msg = "unknown compression method", g.mode = 30;
14139
14139
  break;
14140
14140
  }
14141
14141
  if (57344 & g.flags) {
14142
- O.msg = "unknown header flags set", g.mode = 30;
14142
+ N.msg = "unknown header flags set", g.mode = 30;
14143
14143
  break;
14144
14144
  }
14145
14145
  g.head && (g.head.text = V >> 8 & 1), 512 & g.flags && (U[0] = 255 & V, U[1] = V >>> 8 & 255, g.check = o(g.check, U, 2, 0)), x = V = 0, g.mode = 3;
@@ -14202,12 +14202,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14202
14202
  W--, V += v[G++] << x, x += 8;
14203
14203
  }
14204
14204
  if (V !== (65535 & g.check)) {
14205
- O.msg = "header crc mismatch", g.mode = 30;
14205
+ N.msg = "header crc mismatch", g.mode = 30;
14206
14206
  break;
14207
14207
  }
14208
14208
  x = V = 0;
14209
14209
  }
14210
- g.head && (g.head.hcrc = g.flags >> 9 & 1, g.head.done = !0), O.adler = g.check = 0, g.mode = 12;
14210
+ g.head && (g.head.hcrc = g.flags >> 9 & 1, g.head.done = !0), N.adler = g.check = 0, g.mode = 12;
14211
14211
  break;
14212
14212
  case 10:
14213
14213
  for (; x < 32; ) {
@@ -14215,13 +14215,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14215
14215
  break t;
14216
14216
  W--, V += v[G++] << x, x += 8;
14217
14217
  }
14218
- O.adler = g.check = p(V), x = V = 0, g.mode = 11;
14218
+ N.adler = g.check = p(V), x = V = 0, g.mode = 11;
14219
14219
  case 11:
14220
14220
  if (g.havedict === 0)
14221
- return O.next_out = et, O.avail_out = nt, O.next_in = G, O.avail_in = W, g.hold = V, g.bits = x, 2;
14222
- O.adler = g.check = 1, g.mode = 12;
14221
+ return N.next_out = et, N.avail_out = nt, N.next_in = G, N.avail_in = W, g.hold = V, g.bits = x, 2;
14222
+ N.adler = g.check = 1, g.mode = 12;
14223
14223
  case 12:
14224
- if (w === 5 || w === 6)
14224
+ if (M === 5 || M === 6)
14225
14225
  break t;
14226
14226
  case 13:
14227
14227
  if (g.last) {
@@ -14238,7 +14238,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14238
14238
  g.mode = 14;
14239
14239
  break;
14240
14240
  case 1:
14241
- if (b(g), g.mode = 20, w !== 6)
14241
+ if (b(g), g.mode = 20, M !== 6)
14242
14242
  break;
14243
14243
  V >>>= 2, x -= 2;
14244
14244
  break t;
@@ -14246,7 +14246,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14246
14246
  g.mode = 17;
14247
14247
  break;
14248
14248
  case 3:
14249
- O.msg = "invalid block type", g.mode = 30;
14249
+ N.msg = "invalid block type", g.mode = 30;
14250
14250
  }
14251
14251
  V >>>= 2, x -= 2;
14252
14252
  break;
@@ -14257,10 +14257,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14257
14257
  W--, V += v[G++] << x, x += 8;
14258
14258
  }
14259
14259
  if ((65535 & V) != (V >>> 16 ^ 65535)) {
14260
- O.msg = "invalid stored block lengths", g.mode = 30;
14260
+ N.msg = "invalid stored block lengths", g.mode = 30;
14261
14261
  break;
14262
14262
  }
14263
- if (g.length = 65535 & V, x = V = 0, g.mode = 15, w === 6)
14263
+ if (g.length = 65535 & V, x = V = 0, g.mode = 15, M === 6)
14264
14264
  break t;
14265
14265
  case 15:
14266
14266
  g.mode = 16;
@@ -14280,7 +14280,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14280
14280
  W--, V += v[G++] << x, x += 8;
14281
14281
  }
14282
14282
  if (g.nlen = 257 + (31 & V), V >>>= 5, x -= 5, g.ndist = 1 + (31 & V), V >>>= 5, x -= 5, g.ncode = 4 + (15 & V), V >>>= 4, x -= 4, 286 < g.nlen || 30 < g.ndist) {
14283
- O.msg = "too many length or distance symbols", g.mode = 30;
14283
+ N.msg = "too many length or distance symbols", g.mode = 30;
14284
14284
  break;
14285
14285
  }
14286
14286
  g.have = 0, g.mode = 18;
@@ -14296,7 +14296,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14296
14296
  for (; g.have < 19; )
14297
14297
  g.lens[$[g.have++]] = 0;
14298
14298
  if (g.lencode = g.lendyn, g.lenbits = 7, k = { bits: g.lenbits }, X = l(0, g.lens, 0, 19, g.lencode, 0, g.work, k), g.lenbits = k.bits, X) {
14299
- O.msg = "invalid code lengths set", g.mode = 30;
14299
+ N.msg = "invalid code lengths set", g.mode = 30;
14300
14300
  break;
14301
14301
  }
14302
14302
  g.have = 0, g.mode = 19;
@@ -14317,7 +14317,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14317
14317
  W--, V += v[G++] << x, x += 8;
14318
14318
  }
14319
14319
  if (V >>>= at, x -= at, g.have === 0) {
14320
- O.msg = "invalid bit length repeat", g.mode = 30;
14320
+ N.msg = "invalid bit length repeat", g.mode = 30;
14321
14321
  break;
14322
14322
  }
14323
14323
  A = g.lens[g.have - 1], tt = 3 + (3 & V), V >>>= 2, x -= 2;
@@ -14337,7 +14337,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14337
14337
  x -= at, A = 0, tt = 11 + (127 & (V >>>= at)), V >>>= 7, x -= 7;
14338
14338
  }
14339
14339
  if (g.have + tt > g.nlen + g.ndist) {
14340
- O.msg = "invalid bit length repeat", g.mode = 30;
14340
+ N.msg = "invalid bit length repeat", g.mode = 30;
14341
14341
  break;
14342
14342
  }
14343
14343
  for (; tt--; )
@@ -14347,24 +14347,24 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14347
14347
  if (g.mode === 30)
14348
14348
  break;
14349
14349
  if (g.lens[256] === 0) {
14350
- O.msg = "invalid code -- missing end-of-block", g.mode = 30;
14350
+ N.msg = "invalid code -- missing end-of-block", g.mode = 30;
14351
14351
  break;
14352
14352
  }
14353
14353
  if (g.lenbits = 9, k = { bits: g.lenbits }, X = l(h, g.lens, 0, g.nlen, g.lencode, 0, g.work, k), g.lenbits = k.bits, X) {
14354
- O.msg = "invalid literal/lengths set", g.mode = 30;
14354
+ N.msg = "invalid literal/lengths set", g.mode = 30;
14355
14355
  break;
14356
14356
  }
14357
14357
  if (g.distbits = 6, g.distcode = g.distdyn, k = { bits: g.distbits }, X = l(f, g.lens, g.nlen, g.ndist, g.distcode, 0, g.work, k), g.distbits = k.bits, X) {
14358
- O.msg = "invalid distances set", g.mode = 30;
14358
+ N.msg = "invalid distances set", g.mode = 30;
14359
14359
  break;
14360
14360
  }
14361
- if (g.mode = 20, w === 6)
14361
+ if (g.mode = 20, M === 6)
14362
14362
  break t;
14363
14363
  case 20:
14364
14364
  g.mode = 21;
14365
14365
  case 21:
14366
14366
  if (6 <= W && 258 <= nt) {
14367
- O.next_out = et, O.avail_out = nt, O.next_in = G, O.avail_in = W, g.hold = V, g.bits = x, a(O, it), et = O.next_out, q = O.output, nt = O.avail_out, G = O.next_in, v = O.input, W = O.avail_in, V = g.hold, x = g.bits, g.mode === 12 && (g.back = -1);
14367
+ 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);
14368
14368
  break;
14369
14369
  }
14370
14370
  for (g.back = 0; It = (_ = g.lencode[V & (1 << g.lenbits) - 1]) >>> 16 & 255, ft = 65535 & _, !((at = _ >>> 24) <= x); ) {
@@ -14389,7 +14389,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14389
14389
  break;
14390
14390
  }
14391
14391
  if (64 & It) {
14392
- O.msg = "invalid literal/length code", g.mode = 30;
14392
+ N.msg = "invalid literal/length code", g.mode = 30;
14393
14393
  break;
14394
14394
  }
14395
14395
  g.extra = 15 & It, g.mode = 22;
@@ -14418,7 +14418,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14418
14418
  V >>>= Ct, x -= Ct, g.back += Ct;
14419
14419
  }
14420
14420
  if (V >>>= at, x -= at, g.back += at, 64 & It) {
14421
- O.msg = "invalid distance code", g.mode = 30;
14421
+ N.msg = "invalid distance code", g.mode = 30;
14422
14422
  break;
14423
14423
  }
14424
14424
  g.offset = ft, g.extra = 15 & It, g.mode = 24;
@@ -14432,7 +14432,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14432
14432
  g.offset += V & (1 << g.extra) - 1, V >>>= g.extra, x -= g.extra, g.back += g.extra;
14433
14433
  }
14434
14434
  if (g.offset > g.dmax) {
14435
- O.msg = "invalid distance too far back", g.mode = 30;
14435
+ N.msg = "invalid distance too far back", g.mode = 30;
14436
14436
  break;
14437
14437
  }
14438
14438
  g.mode = 25;
@@ -14441,7 +14441,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14441
14441
  break t;
14442
14442
  if (tt = it - nt, g.offset > tt) {
14443
14443
  if ((tt = g.offset - tt) > g.whave && g.sane) {
14444
- O.msg = "invalid distance too far back", g.mode = 30;
14444
+ N.msg = "invalid distance too far back", g.mode = 30;
14445
14445
  break;
14446
14446
  }
14447
14447
  St = tt > g.wnext ? (tt -= g.wnext, g.wsize - tt) : g.wnext - tt, tt > g.length && (tt = g.length), yt = g.window;
@@ -14463,8 +14463,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14463
14463
  break t;
14464
14464
  W--, V |= v[G++] << x, x += 8;
14465
14465
  }
14466
- if (it -= nt, O.total_out += it, g.total += it, it && (O.adler = g.check = g.flags ? o(g.check, q, it, et - it) : r(g.check, q, it, et - it)), it = nt, (g.flags ? V : p(V)) !== g.check) {
14467
- O.msg = "incorrect data check", g.mode = 30;
14466
+ if (it -= nt, N.total_out += it, g.total += it, it && (N.adler = g.check = g.flags ? o(g.check, q, it, et - it) : r(g.check, q, it, et - it)), it = nt, (g.flags ? V : p(V)) !== g.check) {
14467
+ N.msg = "incorrect data check", g.mode = 30;
14468
14468
  break;
14469
14469
  }
14470
14470
  x = V = 0;
@@ -14478,7 +14478,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14478
14478
  W--, V += v[G++] << x, x += 8;
14479
14479
  }
14480
14480
  if (V !== (4294967295 & g.total)) {
14481
- O.msg = "incorrect length check", g.mode = 30;
14481
+ N.msg = "incorrect length check", g.mode = 30;
14482
14482
  break;
14483
14483
  }
14484
14484
  x = V = 0;
@@ -14496,63 +14496,63 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14496
14496
  default:
14497
14497
  return u;
14498
14498
  }
14499
- return O.next_out = et, O.avail_out = nt, O.next_in = G, O.avail_in = W, g.hold = V, g.bits = x, (g.wsize || it !== O.avail_out && g.mode < 30 && (g.mode < 27 || w !== 4)) && Y(O, O.output, O.next_out, it - O.avail_out) ? (g.mode = 31, -4) : (ot -= O.avail_in, it -= O.avail_out, O.total_in += ot, O.total_out += it, g.total += it, g.wrap && it && (O.adler = g.check = g.flags ? o(g.check, q, it, O.next_out - it) : r(g.check, q, it, O.next_out - it)), O.data_type = g.bits + (g.last ? 64 : 0) + (g.mode === 12 ? 128 : 0) + (g.mode === 20 || g.mode === 15 ? 256 : 0), (ot == 0 && it === 0 || w === 4) && X === I && (X = -5), X);
14500
- }, s.inflateEnd = function(O) {
14501
- if (!O || !O.state)
14499
+ return N.next_out = et, N.avail_out = nt, N.next_in = G, N.avail_in = W, g.hold = V, g.bits = x, (g.wsize || it !== N.avail_out && g.mode < 30 && (g.mode < 27 || M !== 4)) && Y(N, N.output, N.next_out, it - N.avail_out) ? (g.mode = 31, -4) : (ot -= N.avail_in, it -= N.avail_out, N.total_in += ot, N.total_out += it, g.total += it, g.wrap && it && (N.adler = g.check = g.flags ? o(g.check, q, it, N.next_out - it) : r(g.check, q, it, N.next_out - it)), N.data_type = g.bits + (g.last ? 64 : 0) + (g.mode === 12 ? 128 : 0) + (g.mode === 20 || g.mode === 15 ? 256 : 0), (ot == 0 && it === 0 || M === 4) && X === I && (X = -5), X);
14500
+ }, s.inflateEnd = function(N) {
14501
+ if (!N || !N.state)
14502
14502
  return u;
14503
- var w = O.state;
14504
- return w.window && (w.window = null), O.state = null, I;
14505
- }, s.inflateGetHeader = function(O, w) {
14503
+ var M = N.state;
14504
+ return M.window && (M.window = null), N.state = null, I;
14505
+ }, s.inflateGetHeader = function(N, M) {
14506
14506
  var g;
14507
- return O && O.state && 2 & (g = O.state).wrap ? ((g.head = w).done = !1, I) : u;
14508
- }, s.inflateSetDictionary = function(O, w) {
14509
- var g, v = w.length;
14510
- return O && O.state ? (g = O.state).wrap !== 0 && g.mode !== 11 ? u : g.mode === 11 && r(1, w, v, 0) !== g.check ? -3 : Y(O, w, v, v) ? (g.mode = 31, -4) : (g.havedict = 1, I) : u;
14507
+ return N && N.state && 2 & (g = N.state).wrap ? ((g.head = M).done = !1, I) : u;
14508
+ }, s.inflateSetDictionary = function(N, M) {
14509
+ var g, v = M.length;
14510
+ return N && N.state ? (g = N.state).wrap !== 0 && g.mode !== 11 ? u : g.mode === 11 && r(1, M, v, 0) !== g.check ? -3 : Y(N, M, v, v) ? (g.mode = 31, -4) : (g.havedict = 1, I) : u;
14511
14511
  }, s.inflateInfo = "pako inflate (from Nodeca project)";
14512
14512
  }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(t, e, s) {
14513
14513
  var n = t("../utils/common"), r = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], o = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], a = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], l = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
14514
14514
  e.exports = function(h, f, I, u, d, E, T, p) {
14515
- var m, F, R, S, N, y, M, L, b, Y = p.bits, O = 0, w = 0, g = 0, v = 0, q = 0, G = 0, et = 0, W = 0, nt = 0, V = 0, x = null, ot = 0, it = new n.Buf16(16), tt = new n.Buf16(16), St = null, yt = 0;
14516
- for (O = 0; O <= 15; O++)
14517
- it[O] = 0;
14518
- for (w = 0; w < u; w++)
14519
- it[f[I + w]]++;
14515
+ var m, F, R, S, O, y, w, L, b, Y = p.bits, N = 0, M = 0, g = 0, v = 0, q = 0, G = 0, et = 0, W = 0, nt = 0, V = 0, x = null, ot = 0, it = new n.Buf16(16), tt = new n.Buf16(16), St = null, yt = 0;
14516
+ for (N = 0; N <= 15; N++)
14517
+ it[N] = 0;
14518
+ for (M = 0; M < u; M++)
14519
+ it[f[I + M]]++;
14520
14520
  for (q = Y, v = 15; 1 <= v && it[v] === 0; v--)
14521
14521
  ;
14522
14522
  if (v < q && (q = v), v === 0)
14523
14523
  return d[E++] = 20971520, d[E++] = 20971520, p.bits = 1, 0;
14524
14524
  for (g = 1; g < v && it[g] === 0; g++)
14525
14525
  ;
14526
- for (q < g && (q = g), O = W = 1; O <= 15; O++)
14527
- if (W <<= 1, (W -= it[O]) < 0)
14526
+ for (q < g && (q = g), N = W = 1; N <= 15; N++)
14527
+ if (W <<= 1, (W -= it[N]) < 0)
14528
14528
  return -1;
14529
14529
  if (0 < W && (h === 0 || v !== 1))
14530
14530
  return -1;
14531
- for (tt[1] = 0, O = 1; O < 15; O++)
14532
- tt[O + 1] = tt[O] + it[O];
14533
- for (w = 0; w < u; w++)
14534
- f[I + w] !== 0 && (T[tt[f[I + w]]++] = w);
14535
- if (y = h === 0 ? (x = St = T, 19) : h === 1 ? (x = r, ot -= 257, St = o, yt -= 257, 256) : (x = a, St = l, -1), O = g, N = E, et = w = V = 0, R = -1, S = (nt = 1 << (G = q)) - 1, h === 1 && 852 < nt || h === 2 && 592 < nt)
14531
+ for (tt[1] = 0, N = 1; N < 15; N++)
14532
+ tt[N + 1] = tt[N] + it[N];
14533
+ for (M = 0; M < u; M++)
14534
+ f[I + M] !== 0 && (T[tt[f[I + M]]++] = M);
14535
+ if (y = h === 0 ? (x = St = T, 19) : h === 1 ? (x = r, ot -= 257, St = o, yt -= 257, 256) : (x = a, St = l, -1), N = g, O = E, et = M = V = 0, R = -1, S = (nt = 1 << (G = q)) - 1, h === 1 && 852 < nt || h === 2 && 592 < nt)
14536
14536
  return 1;
14537
14537
  for (; ; ) {
14538
- for (M = O - et, b = T[w] < y ? (L = 0, T[w]) : T[w] > y ? (L = St[yt + T[w]], x[ot + T[w]]) : (L = 96, 0), m = 1 << O - et, g = F = 1 << G; d[N + (V >> et) + (F -= m)] = M << 24 | L << 16 | b | 0, F !== 0; )
14538
+ for (w = N - et, b = T[M] < y ? (L = 0, T[M]) : T[M] > y ? (L = St[yt + T[M]], x[ot + T[M]]) : (L = 96, 0), m = 1 << N - et, g = F = 1 << G; d[O + (V >> et) + (F -= m)] = w << 24 | L << 16 | b | 0, F !== 0; )
14539
14539
  ;
14540
- for (m = 1 << O - 1; V & m; )
14540
+ for (m = 1 << N - 1; V & m; )
14541
14541
  m >>= 1;
14542
- if (m !== 0 ? (V &= m - 1, V += m) : V = 0, w++, --it[O] == 0) {
14543
- if (O === v)
14542
+ if (m !== 0 ? (V &= m - 1, V += m) : V = 0, M++, --it[N] == 0) {
14543
+ if (N === v)
14544
14544
  break;
14545
- O = f[I + T[w]];
14545
+ N = f[I + T[M]];
14546
14546
  }
14547
- if (q < O && (V & S) !== R) {
14548
- for (et === 0 && (et = q), N += g, W = 1 << (G = O - et); G + et < v && !((W -= it[G + et]) <= 0); )
14547
+ if (q < N && (V & S) !== R) {
14548
+ for (et === 0 && (et = q), O += g, W = 1 << (G = N - et); G + et < v && !((W -= it[G + et]) <= 0); )
14549
14549
  G++, W <<= 1;
14550
14550
  if (nt += 1 << G, h === 1 && 852 < nt || h === 2 && 592 < nt)
14551
14551
  return 1;
14552
- d[R = V & S] = q << 24 | G << 16 | N - E | 0;
14552
+ d[R = V & S] = q << 24 | G << 16 | O - E | 0;
14553
14553
  }
14554
14554
  }
14555
- return V !== 0 && (d[N + V] = O - et << 24 | 64 << 16 | 0), p.bits = q, 0;
14555
+ return V !== 0 && (d[O + V] = N - et << 24 | 64 << 16 | 0), p.bits = q, 0;
14556
14556
  };
14557
14557
  }, { "../utils/common": 41 }], 51: [function(t, e, s) {
14558
14558
  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" };
@@ -14562,12 +14562,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14562
14562
  for (var U = _.length; 0 <= --U; )
14563
14563
  _[U] = 0;
14564
14564
  }
14565
- 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, N = 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], M = [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));
14565
+ 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));
14566
14566
  a(Y);
14567
- var O = new Array(2 * u);
14568
- a(O);
14569
- var w = new Array(512);
14570
- a(w);
14567
+ var N = new Array(2 * u);
14568
+ a(N);
14569
+ var M = new Array(512);
14570
+ a(M);
14571
14571
  var g = new Array(256);
14572
14572
  a(g);
14573
14573
  var v = new Array(h);
@@ -14580,7 +14580,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14580
14580
  this.dyn_tree = _, this.max_code = 0, this.stat_desc = U;
14581
14581
  }
14582
14582
  function x(_) {
14583
- return _ < 256 ? w[_] : w[256 + (_ >>> 7)];
14583
+ return _ < 256 ? M[_] : M[256 + (_ >>> 7)];
14584
14584
  }
14585
14585
  function ot(_, U) {
14586
14586
  _.pending_buf[_.pending++] = 255 & U, _.pending_buf[_.pending++] = U >>> 8 & 255;
@@ -14630,7 +14630,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14630
14630
  function Ht(_, U, $) {
14631
14631
  var Z, B, K, st, J = 0;
14632
14632
  if (_.last_lit !== 0)
14633
- for (; Z = _.pending_buf[_.d_buf + 2 * J] << 8 | _.pending_buf[_.d_buf + 2 * J + 1], B = _.pending_buf[_.l_buf + J], J++, Z === 0 ? tt(_, B, U) : (tt(_, (K = g[B]) + f + 1, U), (st = y[K]) !== 0 && it(_, B -= v[K], st), tt(_, K = x(--Z), $), (st = M[K]) !== 0 && it(_, Z -= W[K], st)), J < _.last_lit; )
14633
+ for (; Z = _.pending_buf[_.d_buf + 2 * J] << 8 | _.pending_buf[_.d_buf + 2 * J + 1], B = _.pending_buf[_.l_buf + J], J++, Z === 0 ? tt(_, B, U) : (tt(_, (K = g[B]) + f + 1, U), (st = y[K]) !== 0 && it(_, B -= v[K], st), tt(_, K = x(--Z), $), (st = w[K]) !== 0 && it(_, Z -= W[K], st)), J < _.last_lit; )
14634
14634
  ;
14635
14635
  tt(_, F, U);
14636
14636
  }
@@ -14665,7 +14665,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14665
14665
  function A(_, U, $) {
14666
14666
  var Z, B, K = -1, st = U[1], J = 0, ct = 7, Rt = 4;
14667
14667
  for (st === 0 && (ct = 138, Rt = 3), U[2 * ($ + 1) + 1] = 65535, Z = 0; Z <= $; Z++)
14668
- B = st, st = U[2 * (Z + 1) + 1], ++J < ct && B === st || (J < Rt ? _.bl_tree[2 * B] += J : B !== 0 ? (B !== K && _.bl_tree[2 * B]++, _.bl_tree[2 * R]++) : J <= 10 ? _.bl_tree[2 * S]++ : _.bl_tree[2 * N]++, K = B, Rt = (J = 0) === st ? (ct = 138, 3) : B === st ? (ct = 6, 3) : (ct = 7, 4));
14668
+ B = st, st = U[2 * (Z + 1) + 1], ++J < ct && B === st || (J < Rt ? _.bl_tree[2 * B] += J : B !== 0 ? (B !== K && _.bl_tree[2 * B]++, _.bl_tree[2 * R]++) : J <= 10 ? _.bl_tree[2 * S]++ : _.bl_tree[2 * O]++, K = B, Rt = (J = 0) === st ? (ct = 138, 3) : B === st ? (ct = 6, 3) : (ct = 7, 4));
14669
14669
  }
14670
14670
  function X(_, U, $) {
14671
14671
  var Z, B, K = -1, st = U[1], J = 0, ct = 7, Rt = 4;
@@ -14675,7 +14675,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14675
14675
  for (; tt(_, B, _.bl_tree), --J != 0; )
14676
14676
  ;
14677
14677
  else
14678
- B !== 0 ? (B !== K && (tt(_, B, _.bl_tree), J--), tt(_, R, _.bl_tree), it(_, J - 3, 2)) : J <= 10 ? (tt(_, S, _.bl_tree), it(_, J - 3, 3)) : (tt(_, N, _.bl_tree), it(_, J - 11, 7));
14678
+ B !== 0 ? (B !== K && (tt(_, B, _.bl_tree), J--), tt(_, R, _.bl_tree), it(_, J - 3, 2)) : J <= 10 ? (tt(_, S, _.bl_tree), it(_, J - 3, 3)) : (tt(_, O, _.bl_tree), it(_, J - 11, 7));
14679
14679
  K = B, Rt = (J = 0) === st ? (ct = 138, 3) : B === st ? (ct = 6, 3) : (ct = 7, 4);
14680
14680
  }
14681
14681
  }
@@ -14693,11 +14693,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14693
14693
  for (v[B] = Z, U = 0; U < 1 << y[B]; U++)
14694
14694
  g[Z++] = B;
14695
14695
  for (g[Z - 1] = B, B = K = 0; B < 16; B++)
14696
- for (W[B] = K, U = 0; U < 1 << M[B]; U++)
14697
- w[K++] = B;
14696
+ for (W[B] = K, U = 0; U < 1 << w[B]; U++)
14697
+ M[K++] = B;
14698
14698
  for (K >>= 7; B < u; B++)
14699
- for (W[B] = K << 7, U = 0; U < 1 << M[B] - 7; U++)
14700
- w[256 + K++] = B;
14699
+ for (W[B] = K << 7, U = 0; U < 1 << w[B] - 7; U++)
14700
+ M[256 + K++] = B;
14701
14701
  for ($ = 0; $ <= T; $++)
14702
14702
  st[$] = 0;
14703
14703
  for (U = 0; U <= 143; )
@@ -14709,8 +14709,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14709
14709
  for (; U <= 287; )
14710
14710
  Y[2 * U + 1] = 8, U++, st[8]++;
14711
14711
  for (yt(Y, I + 1, st), U = 0; U < u; U++)
14712
- O[2 * U + 1] = 5, O[2 * U] = St(U, 5);
14713
- q = new nt(Y, y, f + 1, I, T), G = new nt(O, M, 0, u, T), et = new nt(new Array(0), L, 0, d, m);
14712
+ N[2 * U + 1] = 5, N[2 * U] = St(U, 5);
14713
+ 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);
14714
14714
  }(), k = !0), _.l_desc = new V(_.dyn_ltree, q), _.d_desc = new V(_.dyn_dtree, G), _.bl_desc = new V(_.bl_tree, et), _.bi_buf = 0, _.bi_valid = 0, at(_);
14715
14715
  }, s._tr_stored_block = P, s._tr_flush_block = function(_, U, $, Z) {
14716
14716
  var B, K, st = 0;
@@ -14730,7 +14730,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14730
14730
  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--)
14731
14731
  ;
14732
14732
  return J.opt_len += 3 * (ct + 1) + 5 + 5 + 4, ct;
14733
- }(_), B = _.opt_len + 3 + 7 >>> 3, (K = _.static_len + 3 + 7 >>> 3) <= B && (B = K)) : B = K = $ + 5, $ + 4 <= B && U !== -1 ? P(_, U, $, Z) : _.strategy === 4 || K === B ? (it(_, 2 + (Z ? 1 : 0), 3), Ht(_, Y, O)) : (it(_, 4 + (Z ? 1 : 0), 3), function(J, ct, Rt, dt) {
14733
+ }(_), B = _.opt_len + 3 + 7 >>> 3, (K = _.static_len + 3 + 7 >>> 3) <= B && (B = K)) : B = K = $ + 5, $ + 4 <= B && U !== -1 ? P(_, U, $, Z) : _.strategy === 4 || K === B ? (it(_, 2 + (Z ? 1 : 0), 3), Ht(_, Y, N)) : (it(_, 4 + (Z ? 1 : 0), 3), function(J, ct, Rt, dt) {
14734
14734
  var Wt;
14735
14735
  for (it(J, ct - 257, 5), it(J, Rt - 1, 5), it(J, dt - 4, 4), Wt = 0; Wt < dt; Wt++)
14736
14736
  it(J, J.bl_tree[2 * b[Wt] + 1], 3);
@@ -14778,8 +14778,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14778
14778
  setTimeout(m, 0, R);
14779
14779
  }, T.setImmediate = function(R) {
14780
14780
  typeof R != "function" && (R = new Function("" + R));
14781
- for (var S = new Array(arguments.length - 1), N = 0; N < S.length; N++)
14782
- S[N] = arguments[N + 1];
14781
+ for (var S = new Array(arguments.length - 1), O = 0; O < S.length; O++)
14782
+ S[O] = arguments[O + 1];
14783
14783
  var y = { callback: R, args: S };
14784
14784
  return u[I] = y, a(I), I++;
14785
14785
  }, T.clearImmediate = p;
@@ -14795,23 +14795,23 @@ https://github.com/nodeca/pako/blob/main/LICENSE
14795
14795
  if (S) {
14796
14796
  d = !0;
14797
14797
  try {
14798
- (function(N) {
14799
- var y = N.callback, M = N.args;
14800
- switch (M.length) {
14798
+ (function(O) {
14799
+ var y = O.callback, w = O.args;
14800
+ switch (w.length) {
14801
14801
  case 0:
14802
14802
  y();
14803
14803
  break;
14804
14804
  case 1:
14805
- y(M[0]);
14805
+ y(w[0]);
14806
14806
  break;
14807
14807
  case 2:
14808
- y(M[0], M[1]);
14808
+ y(w[0], w[1]);
14809
14809
  break;
14810
14810
  case 3:
14811
- y(M[0], M[1], M[2]);
14811
+ y(w[0], w[1], w[2]);
14812
14812
  break;
14813
14813
  default:
14814
- y.apply(o, M);
14814
+ y.apply(o, w);
14815
14815
  }
14816
14816
  })(S);
14817
14817
  } finally {
@@ -16678,28 +16678,28 @@ ${o}
16678
16678
  console.warn("Missing VisualizationInfo in Viewpoint");
16679
16679
  continue;
16680
16680
  }
16681
- const N = {}, {
16681
+ const O = {}, {
16682
16682
  Guid: y,
16683
- ClippingPlanes: M,
16683
+ ClippingPlanes: w,
16684
16684
  Components: L,
16685
16685
  OrthogonalCamera: b,
16686
16686
  PerspectiveCamera: Y
16687
16687
  } = S;
16688
- if (y && (N.guid = y), L) {
16689
- const { Selection: w, Visibility: g } = L;
16690
- if (w && w.Component) {
16691
- const q = Array.isArray(w.Component) ? w.Component : [w.Component];
16692
- N.selectionComponents = q.map((G) => G.IfcGuid).filter((G) => G);
16688
+ if (y && (O.guid = y), L) {
16689
+ const { Selection: M, Visibility: g } = L;
16690
+ if (M && M.Component) {
16691
+ const q = Array.isArray(M.Component) ? M.Component : [M.Component];
16692
+ O.selectionComponents = q.map((G) => G.IfcGuid).filter((G) => G);
16693
16693
  }
16694
- if (g && "DefaultVisibility" in g && (N.defaultVisibility = g.DefaultVisibility), g && g.Exceptions && "Component" in g.Exceptions) {
16694
+ if (g && "DefaultVisibility" in g && (O.defaultVisibility = g.DefaultVisibility), g && g.Exceptions && "Component" in g.Exceptions) {
16695
16695
  const { Component: q } = g.Exceptions, G = Array.isArray(q) ? q : [q];
16696
- N.exceptionComponents = G.map((et) => et.IfcGuid).filter((et) => et);
16696
+ O.exceptionComponents = G.map((et) => et.IfcGuid).filter((et) => et);
16697
16697
  }
16698
16698
  let v;
16699
- l === "2.1" && (v = L.ViewSetupHints), l === "3" && (v = (m = L.Visibility) == null ? void 0 : m.ViewSetupHints), v && ("OpeningsVisible" in v && (N.openingsVisible = v.OpeningsVisible), "SpacesVisible" in v && (N.spacesVisible = v.SpacesVisible), "SpaceBoundariesVisible" in v && (N.spaceBoundariesVisible = v.SpaceBoundariesVisible));
16699
+ l === "2.1" && (v = L.ViewSetupHints), l === "3" && (v = (m = L.Visibility) == null ? void 0 : m.ViewSetupHints), v && ("OpeningsVisible" in v && (O.openingsVisible = v.OpeningsVisible), "SpacesVisible" in v && (O.spacesVisible = v.SpacesVisible), "SpaceBoundariesVisible" in v && (O.spaceBoundariesVisible = v.SpaceBoundariesVisible));
16700
16700
  }
16701
16701
  if (b || Y) {
16702
- const w = S.PerspectiveCamera ?? S.OrthogonalCamera, { CameraViewPoint: g, CameraDirection: v } = w, q = new D.Vector3(
16702
+ const M = S.PerspectiveCamera ?? S.OrthogonalCamera, { CameraViewPoint: g, CameraDirection: v } = M, q = new D.Vector3(
16703
16703
  Number(g.X),
16704
16704
  Number(g.Z),
16705
16705
  Number(-g.Y)
@@ -16710,33 +16710,33 @@ ${o}
16710
16710
  ), et = {
16711
16711
  position: { x: q.x, y: q.y, z: q.z },
16712
16712
  direction: { x: G.x, y: G.y, z: G.z },
16713
- aspectRatio: "AspectRatio" in w ? w.AspectRatio : 1
16713
+ aspectRatio: "AspectRatio" in M ? M.AspectRatio : 1
16714
16714
  // Temporal simplification
16715
16715
  };
16716
- "ViewToWorldScale" in w && (N.camera = {
16716
+ "ViewToWorldScale" in M && (O.camera = {
16717
16717
  ...et,
16718
- viewToWorldScale: w.ViewToWorldScale
16719
- }), "FieldOfView" in w && (N.camera = {
16718
+ viewToWorldScale: M.ViewToWorldScale
16719
+ }), "FieldOfView" in M && (O.camera = {
16720
16720
  ...et,
16721
- fov: w.FieldOfView
16721
+ fov: M.FieldOfView
16722
16722
  });
16723
16723
  }
16724
- const O = new To(this.components, e, {
16725
- data: N,
16724
+ const N = new To(this.components, e, {
16725
+ data: O,
16726
16726
  setCamera: !1
16727
16727
  });
16728
16728
  if (L) {
16729
- const { Coloring: w } = L;
16730
- if (w && w.Color) {
16731
- const g = Array.isArray(w.Color) ? w.Color : [w.Color];
16729
+ const { Coloring: M } = L;
16730
+ if (M && M.Color) {
16731
+ const g = Array.isArray(M.Color) ? M.Color : [M.Color];
16732
16732
  for (const v of g) {
16733
16733
  const { Color: q, Component: G } = v, W = (Array.isArray(G) ? G : [G]).map((nt) => nt.IfcGuid);
16734
- O.componentColors.set(q, W);
16734
+ N.componentColors.set(q, W);
16735
16735
  }
16736
16736
  }
16737
16737
  }
16738
- if (I.push(O), M) {
16739
- const w = this.components.get(Sn), g = Array.isArray(M.ClippingPlane) ? M.ClippingPlane : [M.ClippingPlane];
16738
+ if (I.push(N), w) {
16739
+ const M = this.components.get(Sn), g = Array.isArray(w.ClippingPlane) ? w.ClippingPlane : [w.ClippingPlane];
16740
16740
  for (const v of g) {
16741
16741
  const { Location: q, Direction: G } = v;
16742
16742
  if (!(q && G))
@@ -16749,53 +16749,53 @@ ${o}
16749
16749
  G.X,
16750
16750
  -G.Z,
16751
16751
  G.Y
16752
- ), nt = w.createFromNormalAndCoplanarPoint(
16752
+ ), nt = M.createFromNormalAndCoplanarPoint(
16753
16753
  e,
16754
16754
  W,
16755
16755
  et
16756
16756
  );
16757
- nt.visible = !1, nt.enabled = !1, O.clippingPlanes.add(nt);
16757
+ nt.visible = !1, nt.enabled = !1, N.clippingPlanes.add(nt);
16758
16758
  }
16759
16759
  }
16760
16760
  }
16761
16761
  const E = {}, T = [], p = a.filter((F) => F.name.endsWith(".bcf"));
16762
16762
  for (const F of p) {
16763
- const R = await F.async("string"), S = Le.xmlParser.parse(R).Markup, N = S.Topic, {
16763
+ const R = await F.async("string"), S = Le.xmlParser.parse(R).Markup, O = S.Topic, {
16764
16764
  Guid: y,
16765
- TopicType: M,
16765
+ TopicType: w,
16766
16766
  TopicStatus: L,
16767
16767
  Title: b,
16768
16768
  CreationDate: Y,
16769
- CreationAuthor: O
16770
- } = N;
16771
- if (n && !(y && M && L && b && Y && O))
16769
+ CreationAuthor: N
16770
+ } = O;
16771
+ if (n && !(y && w && L && b && Y && N))
16772
16772
  continue;
16773
- const w = new Rs(this.components);
16774
- w.guid = y ?? w.guid;
16773
+ const M = new Rs(this.components);
16774
+ M.guid = y ?? M.guid;
16775
16775
  const g = this.getMarkupRelatedTopics(S, l);
16776
- E[w.guid] = new Set(g), w.type = M ?? w.type, w.status = L ?? w.status, w.title = b ?? w.title, w.creationDate = Y ? new Date(Y) : w.creationDate, w.creationAuthor = O ?? w.creationAuthor, w.serverAssignedId = N.ServerAssignedId, w.priority = N.Priority, w.index = N.Index, w.modifiedDate = N.ModifiedDate ? new Date(N.ModifiedDate) : void 0, w.modifiedAuthor = N.ModifiedAuthor, w.dueDate = N.DueDate ? new Date(N.DueDate) : void 0, w.assignedTo = N.AssignedTo, w.description = N.Description, w.stage = N.Stage;
16776
+ E[M.guid] = new Set(g), M.type = w ?? M.type, M.status = L ?? M.status, M.title = b ?? M.title, M.creationDate = Y ? new Date(Y) : M.creationDate, M.creationAuthor = N ?? M.creationAuthor, M.serverAssignedId = O.ServerAssignedId, M.priority = O.Priority, M.index = O.Index, M.modifiedDate = O.ModifiedDate ? new Date(O.ModifiedDate) : void 0, M.modifiedAuthor = O.ModifiedAuthor, M.dueDate = O.DueDate ? new Date(O.DueDate) : void 0, M.assignedTo = O.AssignedTo, M.description = O.Description, M.stage = O.Stage;
16777
16777
  const v = this.getMarkupLabels(S, l);
16778
16778
  for (const et of v)
16779
- w.labels.add(et);
16779
+ M.labels.add(et);
16780
16780
  const q = this.getMarkupComments(S, l);
16781
16781
  for (const et of q)
16782
- w.comments.set(et.guid, et);
16782
+ M.comments.set(et.guid, et);
16783
16783
  const G = this.getMarkupViewpoints(S, l);
16784
16784
  for (const et of G) {
16785
16785
  if (!(et && et.Guid))
16786
16786
  continue;
16787
16787
  const W = u.list.get(et.Guid);
16788
- W && w.viewpoints.add(W.guid);
16788
+ W && M.viewpoints.add(W.guid);
16789
16789
  }
16790
- this.list.set(w.guid, w), T.push(w);
16790
+ this.list.set(M.guid, M), T.push(M);
16791
16791
  }
16792
16792
  for (const F in E) {
16793
16793
  const R = this.list.get(F);
16794
16794
  if (!R)
16795
16795
  continue;
16796
16796
  const S = E[F];
16797
- for (const N of S)
16798
- R.relatedTopics.add(N);
16797
+ for (const O of S)
16798
+ R.relatedTopics.add(O);
16799
16799
  }
16800
16800
  return this.onBCFImported.trigger(T), { viewpoints: I, topics: T };
16801
16801
  }
@@ -18264,8 +18264,8 @@ const xs = class xs extends At {
18264
18264
  n[a].push(F);
18265
18265
  const R = this.webIfc.GetLine(0, F);
18266
18266
  if (R.GlobalId) {
18267
- const N = (R == null ? void 0 : R.GlobalId.value) || (R == null ? void 0 : R.GlobalId);
18268
- r.globalToExpressIDs.set(N, F);
18267
+ const O = (R == null ? void 0 : R.GlobalId.value) || (R == null ? void 0 : R.GlobalId);
18268
+ r.globalToExpressIDs.set(O, F);
18269
18269
  }
18270
18270
  const S = this._spatialTree.itemsByFloor[F] || 0;
18271
18271
  r.data.set(F, [[], [S, E]]), o++;
@@ -18366,16 +18366,16 @@ const xs = class xs extends At {
18366
18366
  const v = r[g];
18367
18367
  m.push(a[v * 3]), m.push(a[v * 3 + 1]), m.push(a[v * 3 + 2]), F.push(l[v * 3]), F.push(l[v * 3 + 1]), F.push(l[v * 3 + 2]);
18368
18368
  }
18369
- const S = new Uint32Array(p), N = new Float32Array(m), y = new Float32Array(F), M = qa(N), L = new Float32Array(M.transformation.elements), b = !1, Y = I ? e : this._nextAvailableID++;
18369
+ const S = new Uint32Array(p), O = new Float32Array(m), y = new Float32Array(F), w = qa(O), L = new Float32Array(w.transformation.elements), b = !1, Y = I ? e : this._nextAvailableID++;
18370
18370
  this._geometries.set(Y, {
18371
- position: N,
18371
+ position: O,
18372
18372
  normal: y,
18373
18373
  index: S,
18374
18374
  boundingBox: L,
18375
18375
  hasHoles: b
18376
18376
  }), I || (this._splittedGeometries.has(e) || this._splittedGeometries.set(e, /* @__PURE__ */ new Set()), this._splittedGeometries.get(e).add(Y));
18377
- const O = this._visitedGeometries.size, w = D.MathUtils.generateUUID();
18378
- this._visitedGeometries.set(s, { uuid: w, index: O }), this._geometryCount++, I = !1;
18377
+ const N = this._visitedGeometries.size, M = D.MathUtils.generateUUID();
18378
+ this._visitedGeometries.set(s, { uuid: M, index: N }), this._geometryCount++, I = !1;
18379
18379
  }
18380
18380
  n.delete();
18381
18381
  }
@@ -18547,9 +18547,9 @@ class To {
18547
18547
  */
18548
18548
  C(this, "clippingPlanes", new we());
18549
18549
  C(this, "camera", {
18550
- aspectRatio: 0,
18551
- fov: 0,
18552
- direction: { x: 0, y: 0, z: 80 },
18550
+ aspectRatio: 1,
18551
+ fov: 60,
18552
+ direction: { x: 0, y: 0, z: 0 },
18553
18553
  position: { x: 0, y: 0, z: 0 }
18554
18554
  });
18555
18555
  /**
@@ -18747,28 +18747,38 @@ class To {
18747
18747
  "Viewpoint: the world's camera need controls to set the viewpoint."
18748
18748
  );
18749
18749
  t instanceof _c && t.projection.set(this.projection);
18750
- const e = this.position, s = this.direction;
18751
- let n = {
18752
- x: e.x + s.x * 80,
18753
- y: e.y + s.y * 80,
18754
- z: e.z + s.z * 80
18750
+ const e = new D.Vector3(
18751
+ this.camera.position.x,
18752
+ this.camera.position.y,
18753
+ this.camera.position.z
18754
+ ), s = new D.Vector3(
18755
+ this.camera.direction.x,
18756
+ this.camera.direction.y,
18757
+ this.camera.direction.z
18758
+ );
18759
+ if (e.equals(new D.Vector3()) && s.equals(new D.Vector3()))
18760
+ return;
18761
+ const n = this.position, r = this.direction;
18762
+ let o = {
18763
+ x: n.x + r.x * 80,
18764
+ y: n.y + r.y * 80,
18765
+ z: n.z + r.z * 80
18755
18766
  };
18756
- const r = this.selection;
18757
- if (Object.keys(r).length === 0) {
18758
- const h = this._components.get(ci).get(this.world).castRayFromVector(e, this.direction);
18759
- h && (n = h.point);
18767
+ const a = this.selection;
18768
+ if (Object.keys(a).length === 0) {
18769
+ const f = this._components.get(ci).get(this.world).castRayFromVector(n, this.direction);
18770
+ f && (o = f.point);
18760
18771
  } else {
18761
- const a = this._components.get(wn);
18762
- a.reset(), a.addFragmentIdMap(r), n = a.getSphere().center, a.reset();
18763
- }
18764
- const o = this._components.get(Mn);
18765
- o.set(this.defaultVisibility), o.set(!this.defaultVisibility, this.exception), o.set(!0, r), await t.controls.setLookAt(
18766
- e.x,
18767
- e.y,
18768
- e.z,
18772
+ const l = this._components.get(wn);
18773
+ l.reset(), l.addFragmentIdMap(a), o = l.getSphere().center, l.reset();
18774
+ }
18775
+ await t.controls.setLookAt(
18769
18776
  n.x,
18770
18777
  n.y,
18771
18778
  n.z,
18779
+ o.x,
18780
+ o.y,
18781
+ o.z,
18772
18782
  i
18773
18783
  );
18774
18784
  }
@@ -18811,6 +18821,10 @@ class To {
18811
18821
  viewToWorldScale: s.top - s.bottom
18812
18822
  }), this._components.get(ie).list.set(this.guid, this);
18813
18823
  }
18824
+ applyVisibility() {
18825
+ const i = this._components.get(Mn);
18826
+ i.set(this.defaultVisibility), i.set(!this.defaultVisibility, this.exception), i.set(!0, this.selection);
18827
+ }
18814
18828
  /**
18815
18829
  * Applies color to the components in the viewpoint based on their GUIDs.
18816
18830
  *
@@ -18821,21 +18835,15 @@ class To {
18821
18835
  * The color is applied using the `Classifier.setColor` method, which sets the color of the specified fragments.
18822
18836
  * The color is provided as a hexadecimal string, prefixed with a '#'.
18823
18837
  */
18824
- colorize() {
18838
+ applyColors() {
18825
18839
  const i = this._components.get(ie), t = this._components.get(Tt), e = this._components.get(Bi);
18826
18840
  for (const [s, n] of this.componentColors) {
18827
- const r = t.guidToFragmentIdMap(n), o = new D.Color(`#${s}`);
18828
- e.setColor(
18829
- r,
18830
- o,
18831
- i.config.overwriteColors
18832
- );
18841
+ const r = t.guidToFragmentIdMap(n);
18842
+ e.setColor(r, s, i.config.overwriteColors);
18833
18843
  }
18834
18844
  }
18835
18845
  /**
18836
18846
  * Resets the colors of all components in the viewpoint to their original color.
18837
- * This method iterates through the `componentColors` map, retrieves the fragment IDs
18838
- * corresponding to each color, and then uses the `Classifier` to reset the color of those fragments.
18839
18847
  */
18840
18848
  resetColors() {
18841
18849
  const i = this._components.get(Tt), t = this._components.get(Bi);
@@ -18873,6 +18881,20 @@ class To {
18873
18881
  `);
18874
18882
  return s;
18875
18883
  }
18884
+ createColorTags() {
18885
+ let i = "";
18886
+ for (const [t, e] of this.componentColors.entries()) {
18887
+ const s = `#${t.getHexString()}`, n = e.map((r) => `
18888
+ <Component IfcGuid="${r}" />`).join(`
18889
+ `);
18890
+ i += `<Color Color="${s}">
18891
+ ${n}
18892
+ </Color>`;
18893
+ }
18894
+ return i.length !== 0 ? `<Coloring>
18895
+ ${i}
18896
+ </Coloring>` : "<Coloring />";
18897
+ }
18876
18898
  /**
18877
18899
  * Serializes the viewpoint into a buildingSMART compliant XML string for export.
18878
18900
  *
@@ -18919,7 +18941,7 @@ class To {
18919
18941
  ${h}
18920
18942
  <FieldOfView>${this.camera.fov}</FieldOfView>
18921
18943
  </PerspectiveCamera>`);
18922
- const I = `<ViewSetupHints SpacesVisible="${this.spacesVisible ?? !1}" SpaceBoundariesVisible="${this.spaceBoundariesVisible ?? !1}" OpeningsVisible="${this.openingsVisible ?? !1}" />`, u = (await this.createComponentTags("selection")).trim(), d = (await this.createComponentTags("exception")).trim();
18944
+ const I = `<ViewSetupHints SpacesVisible="${this.spacesVisible ?? !1}" SpaceBoundariesVisible="${this.spaceBoundariesVisible ?? !1}" OpeningsVisible="${this.openingsVisible ?? !1}" />`, u = (await this.createComponentTags("selection")).trim(), d = (await this.createComponentTags("exception")).trim(), E = this.createColorTags();
18923
18945
  return `<?xml version="1.0" encoding="UTF-8"?>
18924
18946
  <VisualizationInfo Guid="${this.guid}">
18925
18947
  <Components>
@@ -18929,6 +18951,7 @@ class To {
18929
18951
  ${i === "3" ? I : ""}
18930
18952
  ${d.length !== 0 ? `<Exceptions>${d}</Exceptions>` : ""}
18931
18953
  </Visibility>
18954
+ ${E}
18932
18955
  </Components>
18933
18956
  ${f}
18934
18957
  </VisualizationInfo>`;
@@ -19414,14 +19437,14 @@ const Vs = class Vs extends At {
19414
19437
  const d = /* @__PURE__ */ new Map();
19415
19438
  for (const { id: S } of u)
19416
19439
  if (h.has(S)) {
19417
- const N = h.get(S);
19418
- d.set(S, N);
19440
+ const O = h.get(S);
19441
+ d.set(S, O);
19419
19442
  }
19420
19443
  const E = u.map((S) => S.id);
19421
19444
  if (!d.size) {
19422
19445
  const S = l++;
19423
- for (const { id: N } of u)
19424
- h.set(N, S);
19446
+ for (const { id: O } of u)
19447
+ h.set(O, S);
19425
19448
  f.set(S, {
19426
19449
  edges: new Set(E),
19427
19450
  indices: /* @__PURE__ */ new Set([I])
@@ -19430,9 +19453,9 @@ const Vs = class Vs extends At {
19430
19453
  }
19431
19454
  let T = null;
19432
19455
  const p = /* @__PURE__ */ new Set(), m = new Set(E);
19433
- for (const [S, N] of d) {
19434
- T === null ? T = N : N !== T && p.add(N), h.delete(S);
19435
- const { edges: y } = f.get(N);
19456
+ for (const [S, O] of d) {
19457
+ T === null ? T = O : O !== T && p.add(O), h.delete(S);
19458
+ const { edges: y } = f.get(O);
19436
19459
  y.delete(S), m.delete(S);
19437
19460
  }
19438
19461
  if (T === null)
@@ -19441,15 +19464,15 @@ const Vs = class Vs extends At {
19441
19464
  R.add(I);
19442
19465
  for (const S of m) {
19443
19466
  h.set(S, T);
19444
- const { edges: N } = F;
19445
- N.add(S);
19467
+ const { edges: O } = F;
19468
+ O.add(S);
19446
19469
  }
19447
19470
  for (const S of p) {
19448
- const N = f.get(S), { edges: y, indices: M } = N, L = f.get(T), { edges: b, indices: Y } = L;
19449
- for (const O of y)
19450
- b.add(O), h.set(O, T);
19451
- for (const O of M)
19452
- Y.add(O);
19471
+ const O = f.get(S), { edges: y, indices: w } = O, L = f.get(T), { edges: b, indices: Y } = L;
19472
+ for (const N of y)
19473
+ b.add(N), h.set(N, T);
19474
+ for (const N of w)
19475
+ Y.add(N);
19453
19476
  f.delete(S);
19454
19477
  }
19455
19478
  }
@@ -19481,8 +19504,8 @@ const Vs = class Vs extends At {
19481
19504
  if (s !== void 0 && t instanceof D.InstancedMesh) {
19482
19505
  const S = new D.Matrix4();
19483
19506
  t.getMatrixAt(s, S);
19484
- const N = new D.Matrix4();
19485
- N.extractRotation(S), R.applyMatrix4(N), f.applyMatrix4(S), I.applyMatrix4(S), u.applyMatrix4(S);
19507
+ const O = new D.Matrix4();
19508
+ O.extractRotation(S), R.applyMatrix4(O), f.applyMatrix4(S), I.applyMatrix4(S), u.applyMatrix4(S);
19486
19509
  }
19487
19510
  return { p1: f, p2: I, p3: u, faceNormal: R };
19488
19511
  }
@@ -20411,7 +20434,7 @@ const Re = (c) => {
20411
20434
  if (!n)
20412
20435
  continue;
20413
20436
  const r = new ah(c, n);
20414
- e.cardinality && (r.cardinality = e.cardinality), r.predefinedType = Re(e.predefinedType), t.push(r);
20437
+ e.cardinality && (r.cardinality = e.cardinality), r.predefinedType = Re(e.predefinedType), r.instructions = e.instructions, t.push(r);
20415
20438
  }
20416
20439
  return t;
20417
20440
  }, hh = (c, i) => {
@@ -20421,7 +20444,7 @@ const Re = (c) => {
20421
20444
  if (!n)
20422
20445
  continue;
20423
20446
  const r = new rh(c, n);
20424
- e.cardinality && (r.cardinality = e.cardinality), r.value = Re(e.value), t.push(r);
20447
+ e.cardinality && (r.cardinality = e.cardinality), r.value = Re(e.value), r.instructions = e.instructions, t.push(r);
20425
20448
  }
20426
20449
  return t;
20427
20450
  }, uh = (c, i) => {
@@ -20433,7 +20456,7 @@ const Re = (c) => {
20433
20456
  const r = new oh(c, n);
20434
20457
  e.cardinality && (r.cardinality = e.cardinality);
20435
20458
  const o = Re(e.value);
20436
- (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, t.push(r);
20459
+ (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);
20437
20460
  }
20438
20461
  return t;
20439
20462
  }, fh = (c, i) => {
@@ -20445,7 +20468,7 @@ const Re = (c) => {
20445
20468
  const a = new ch(c, r, o);
20446
20469
  e.cardinality && (a.cardinality = e.cardinality);
20447
20470
  const l = Re(e.value);
20448
- (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, t.push(a);
20471
+ (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);
20449
20472
  }
20450
20473
  return t;
20451
20474
  }, ri = class ri extends At {
@@ -20478,13 +20501,13 @@ const Re = (c) => {
20478
20501
  *
20479
20502
  * @returns The newly created IDSSpecification instance.
20480
20503
  */
20481
- create(t, e) {
20482
- const s = new lh(
20504
+ create(t, e, s) {
20505
+ const n = new lh(
20483
20506
  this.components,
20484
20507
  t,
20485
20508
  e
20486
20509
  );
20487
- return this.list.set(s.identifier, s), s;
20510
+ return s && (n.identifier = s), this.list.set(n.identifier, n), n;
20488
20511
  }
20489
20512
  /**
20490
20513
  * Parses and processes an XML string containing Information Delivery Specification (IDS) data.
@@ -20500,50 +20523,57 @@ const Re = (c) => {
20500
20523
  if (n && n.specification) {
20501
20524
  const r = Array.isArray(n.specification) ? n.specification : [n.specification];
20502
20525
  for (const o of r) {
20503
- const { name: a, ifcVersion: l } = o;
20526
+ const { name: a, ifcVersion: l, description: h, instructions: f, identifier: I } = o;
20504
20527
  if (!(a && l))
20505
20528
  continue;
20506
- const h = [], f = [], { applicability: I, requirements: u } = o;
20507
- if (I) {
20508
- const { maxOccurs: d, ...E } = I, T = Array.isArray(E) ? E : [E];
20509
- for (const p of T)
20510
- for (const m in p) {
20511
- const F = Array.isArray(p[m]) ? p[m] : [p[m]];
20512
- if (m === "entity") {
20513
- const R = Xr(this.components, F);
20514
- h.push(...R);
20529
+ const u = [], d = [], { applicability: E, requirements: T } = o;
20530
+ if (E) {
20531
+ const { maxOccurs: m, ...F } = E, R = Array.isArray(F) ? F : [F];
20532
+ for (const S of R)
20533
+ for (const O in S) {
20534
+ const y = Array.isArray(S[O]) ? S[O] : [S[O]];
20535
+ if (O === "entity") {
20536
+ const w = Xr(this.components, y);
20537
+ u.push(...w);
20515
20538
  }
20516
20539
  }
20517
20540
  }
20518
- if (u) {
20519
- const { maxOccurs: d, ...E } = u, T = Array.isArray(E) ? E : [E];
20520
- for (const p of T)
20521
- for (const m in p) {
20522
- const F = Array.isArray(p[m]) ? p[m] : [p[m]];
20523
- if (m === "entity") {
20524
- const R = Xr(this.components, F);
20525
- f.push(...R);
20541
+ let p;
20542
+ if (T) {
20543
+ const { maxOccurs: m, ...F } = T;
20544
+ p = T.description;
20545
+ const R = Array.isArray(F) ? F : [F];
20546
+ for (const S of R)
20547
+ for (const O in S) {
20548
+ const y = Array.isArray(S[O]) ? S[O] : [S[O]];
20549
+ if (O === "entity") {
20550
+ const w = Xr(this.components, y);
20551
+ d.push(...w);
20526
20552
  }
20527
- if (m === "attribute") {
20528
- const R = hh(this.components, F);
20529
- f.push(...R);
20553
+ if (O === "attribute") {
20554
+ const w = hh(this.components, y);
20555
+ d.push(...w);
20530
20556
  }
20531
- if (m === "classification") {
20532
- const R = uh(
20557
+ if (O === "classification") {
20558
+ const w = uh(
20533
20559
  this.components,
20534
- F
20560
+ y
20535
20561
  );
20536
- f.push(...R);
20562
+ d.push(...w);
20537
20563
  }
20538
- if (m === "property") {
20539
- const R = fh(this.components, F);
20540
- f.push(...R);
20564
+ if (O === "property") {
20565
+ const w = fh(this.components, y);
20566
+ d.push(...w);
20541
20567
  }
20542
20568
  }
20543
20569
  }
20544
- if (h.length > 0 && f.length > 0) {
20545
- const d = this.create(a, l.split(/\s+/));
20546
- d.applicability.add(...h), d.requirements.add(...f), e.push(d);
20570
+ if (u.length > 0 && d.length > 0) {
20571
+ const m = this.create(
20572
+ a,
20573
+ l.split(/\s+/),
20574
+ I
20575
+ );
20576
+ m.description = h, m.instructions = f, m.requirementsDescription = p, m.applicability.add(...u), m.requirements.add(...d), e.push(m);
20547
20577
  }
20548
20578
  }
20549
20579
  }