chbim-plugins 0.0.94 → 0.0.97
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/chbim-plugins.js +395 -412
- package/chbim-plugins.umd.cjs +17 -17
- package/package.json +1 -1
package/chbim-plugins.js
CHANGED
|
@@ -243,8 +243,8 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
243
243
|
return this;
|
|
244
244
|
}, A.render = function(E, L, T) {
|
|
245
245
|
this._initted || this._duration === 0 && this.vars.repeat && this.invalidate();
|
|
246
|
-
var M, R, b, U, N, j, J,
|
|
247
|
-
if (E >= It - 1e-7 && E >= 0 ? (this._totalTime = It, this._cycle = this._repeat, this._yoyo && 1 & this._cycle ? (this._time = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0) : (this._time = Pt, this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1), this._reversed || (M = !0, R = "onComplete", T = T || this._timeline.autoRemoveChildren), Pt === 0 && (this._initted || !this.vars.lazy || T) && (this._startTime === this._timeline._duration && (E = 0), (0 > Et || 0 >= E && E >= -1e-7 || Et === m && this.data !== "isPause") && Et !== E && (T = !0, Et > m && (R = "onReverseComplete")), this._rawPrevTime =
|
|
246
|
+
var M, R, b, U, N, j, J, K, ct, It = this._dirty ? this.totalDuration() : this._totalDuration, et = this._time, yt = this._totalTime, G = this._cycle, Pt = this._duration, Et = this._rawPrevTime;
|
|
247
|
+
if (E >= It - 1e-7 && E >= 0 ? (this._totalTime = It, this._cycle = this._repeat, this._yoyo && 1 & this._cycle ? (this._time = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0) : (this._time = Pt, this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1), this._reversed || (M = !0, R = "onComplete", T = T || this._timeline.autoRemoveChildren), Pt === 0 && (this._initted || !this.vars.lazy || T) && (this._startTime === this._timeline._duration && (E = 0), (0 > Et || 0 >= E && E >= -1e-7 || Et === m && this.data !== "isPause") && Et !== E && (T = !0, Et > m && (R = "onReverseComplete")), this._rawPrevTime = K = !L || E || Et === E ? E : m)) : 1e-7 > E ? (this._totalTime = this._time = this._cycle = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0, (yt !== 0 || Pt === 0 && Et > 0) && (R = "onReverseComplete", M = this._reversed), 0 > E && (this._active = !1, Pt === 0 && (this._initted || !this.vars.lazy || T) && (Et >= 0 && (T = !0), this._rawPrevTime = K = !L || E || Et === E ? E : m)), this._initted || (T = !0)) : (this._totalTime = this._time = E, this._repeat !== 0 && (U = Pt + this._repeatDelay, this._cycle = this._totalTime / U >> 0, this._cycle !== 0 && this._cycle === this._totalTime / U && E >= yt && this._cycle--, this._time = this._totalTime - this._cycle * U, this._yoyo && 1 & this._cycle && (this._time = Pt - this._time, ct = this._yoyoEase || this.vars.yoyoEase, ct && (this._yoyoEase || (ct !== !0 || this._initted ? this._yoyoEase = ct = ct === !0 ? this._ease : ct instanceof Ease ? ct : Ease.map[ct] : (ct = this.vars.ease, this._yoyoEase = ct = ct ? ct instanceof Ease ? ct : typeof ct == "function" ? new Ease(ct, this.vars.easeParams) : Ease.map[ct] || o.defaultEase : o.defaultEase)), this.ratio = ct ? 1 - ct.getRatio((Pt - this._time) / Pt) : 0)), this._time > Pt ? this._time = Pt : this._time < 0 && (this._time = 0)), this._easeType && !ct ? (N = this._time / Pt, j = this._easeType, J = this._easePower, (j === 1 || j === 3 && N >= 0.5) && (N = 1 - N), j === 3 && (N *= 2), J === 1 ? N *= N : J === 2 ? N *= N * N : J === 3 ? N *= N * N * N : J === 4 && (N *= N * N * N * N), j === 1 ? this.ratio = 1 - N : j === 2 ? this.ratio = N : this._time / Pt < 0.5 ? this.ratio = N / 2 : this.ratio = 1 - N / 2) : ct || (this.ratio = this._ease.getRatio(this._time / Pt))), et === this._time && !T && G === this._cycle)
|
|
248
248
|
return void (yt !== this._totalTime && this._onUpdate && (L || this._callback("onUpdate")));
|
|
249
249
|
if (!this._initted) {
|
|
250
250
|
if (this._init(), !this._initted || this._gc)
|
|
@@ -255,7 +255,7 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
255
255
|
}
|
|
256
256
|
for (this._lazy !== !1 && (this._lazy = !1), this._active || !this._paused && this._time !== et && E >= 0 && (this._active = !0), yt === 0 && (this._initted === 2 && E > 0 && this._init(), this._startAt && (E >= 0 ? this._startAt.render(E, !0, T) : R || (R = "_dummyGS")), this.vars.onStart && (this._totalTime !== 0 || Pt === 0) && (L || this._callback("onStart"))), b = this._firstPT; b; )
|
|
257
257
|
b.f ? b.t[b.p](b.c * this.ratio + b.s) : b.t[b.p] = b.c * this.ratio + b.s, b = b._next;
|
|
258
|
-
this._onUpdate && (0 > E && this._startAt && this._startTime && this._startAt.render(E, !0, T), L || (this._totalTime !== yt || R) && this._callback("onUpdate")), this._cycle !== G && (L || this._gc || this.vars.onRepeat && this._callback("onRepeat")), R && (!this._gc || T) && (0 > E && this._startAt && !this._onUpdate && this._startTime && this._startAt.render(E, !0, T), M && (this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !L && this.vars[R] && this._callback(R), Pt === 0 && this._rawPrevTime === m &&
|
|
258
|
+
this._onUpdate && (0 > E && this._startAt && this._startTime && this._startAt.render(E, !0, T), L || (this._totalTime !== yt || R) && this._callback("onUpdate")), this._cycle !== G && (L || this._gc || this.vars.onRepeat && this._callback("onRepeat")), R && (!this._gc || T) && (0 > E && this._startAt && !this._onUpdate && this._startTime && this._startAt.render(E, !0, T), M && (this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !L && this.vars[R] && this._callback(R), Pt === 0 && this._rawPrevTime === m && K !== m && (this._rawPrevTime = 0));
|
|
259
259
|
}, u.to = function(E, L, T) {
|
|
260
260
|
return new u(E, L, T);
|
|
261
261
|
}, u.from = function(E, L, T) {
|
|
@@ -264,17 +264,17 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
264
264
|
return M.startAt = T, M.immediateRender = M.immediateRender != 0 && T.immediateRender != 0, new u(E, L, M);
|
|
265
265
|
}, u.staggerTo = u.allTo = function(E, L, T, M, R, b, U) {
|
|
266
266
|
M = M || 0;
|
|
267
|
-
var N, j, J,
|
|
267
|
+
var N, j, J, K, ct = 0, It = [], et = function() {
|
|
268
268
|
T.onComplete && T.onComplete.apply(T.onCompleteScope || this, arguments), R.apply(U || T.callbackScope || this, b || I);
|
|
269
269
|
}, yt = T.cycle, G = T.startAt && T.startAt.cycle;
|
|
270
270
|
for (S(E) || (typeof E == "string" && (E = o.selector(E) || E), y(E) && (E = c(E))), E = E || [], 0 > M && (E = c(E), E.reverse(), M *= -1), N = E.length - 1, J = 0; N >= J; J++) {
|
|
271
271
|
j = {};
|
|
272
|
-
for (
|
|
273
|
-
j[
|
|
272
|
+
for (K in T)
|
|
273
|
+
j[K] = T[K];
|
|
274
274
|
if (yt && (d(j, E, J), j.duration != null && (L = j.duration, delete j.duration)), G) {
|
|
275
275
|
G = j.startAt = {};
|
|
276
|
-
for (
|
|
277
|
-
G[
|
|
276
|
+
for (K in T.startAt)
|
|
277
|
+
G[K] = T.startAt[K];
|
|
278
278
|
d(j.startAt, E, J);
|
|
279
279
|
}
|
|
280
280
|
j.delay = ct + (j.delay || 0), J === N && R && (j.onComplete = et), It[J] = new u(E[J], L, j), ct += M;
|
|
@@ -401,19 +401,19 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
401
401
|
var N = b.repeat && I.TweenMax || o;
|
|
402
402
|
return M ? this.add(N.fromTo(T, M, R, b), U) : this.set(T, b, U);
|
|
403
403
|
}, L.staggerTo = function(T, M, R, b, U, N, j, J) {
|
|
404
|
-
var
|
|
404
|
+
var K, ct, It = new c({
|
|
405
405
|
onComplete: N,
|
|
406
406
|
onCompleteParams: j,
|
|
407
407
|
callbackScope: J,
|
|
408
408
|
smoothChildTiming: this.smoothChildTiming
|
|
409
409
|
}), et = R.cycle;
|
|
410
410
|
for (typeof T == "string" && (T = o.selector(T) || T), T = T || [], _(T) && (T = E(T)), b = b || 0, 0 > b && (T = E(T), T.reverse(), b *= -1), ct = 0; ct < T.length; ct++)
|
|
411
|
-
|
|
411
|
+
K = k(R), K.startAt && (K.startAt = k(K.startAt), K.startAt.cycle && D(K.startAt, T, ct)), et && (D(K, T, ct), K.duration != null && (M = K.duration, delete K.duration)), It.to(T[ct], M, K, ct * b);
|
|
412
412
|
return this.add(It, U);
|
|
413
413
|
}, L.staggerFrom = function(T, M, R, b, U, N, j, J) {
|
|
414
414
|
return R.immediateRender = R.immediateRender != 0, R.runBackwards = !0, this.staggerTo(T, M, R, b, U, N, j, J);
|
|
415
|
-
}, L.staggerFromTo = function(T, M, R, b, U, N, j, J,
|
|
416
|
-
return b.startAt = R, b.immediateRender = b.immediateRender != 0 && R.immediateRender != 0, this.staggerTo(T, M, b, U, N, j, J,
|
|
415
|
+
}, L.staggerFromTo = function(T, M, R, b, U, N, j, J, K) {
|
|
416
|
+
return b.startAt = R, b.immediateRender = b.immediateRender != 0 && R.immediateRender != 0, this.staggerTo(T, M, b, U, N, j, J, K);
|
|
417
417
|
}, L.call = function(T, M, R, b) {
|
|
418
418
|
return this.add(o.delayedCall(0, T, M, R), b);
|
|
419
419
|
}, L.set = function(T, M, R) {
|
|
@@ -425,7 +425,7 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
425
425
|
N = U._next, M && U instanceof o && U.target === U.vars.onComplete || (b = U._startTime - U._delay, 0 > b && (R = 1), j.add(U, b)), U = N;
|
|
426
426
|
return J.add(j, 0), R && j.totalDuration(), j;
|
|
427
427
|
}, L.add = function(T, M, R, b) {
|
|
428
|
-
var U, N, j, J,
|
|
428
|
+
var U, N, j, J, K, ct;
|
|
429
429
|
if (typeof M != "number" && (M = this._parseTimeOrLabel(M, 0, !0, T)), !(T instanceof x)) {
|
|
430
430
|
if (T instanceof Array || T && T.push && y(T)) {
|
|
431
431
|
for (R = R || "normal", b = b || 0, U = M, N = T.length, j = 0; N > j; j++)
|
|
@@ -445,8 +445,8 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
445
445
|
(this.rawTime() - T._startTime) * T._timeScale
|
|
446
446
|
)
|
|
447
447
|
), Math.abs(U - T._totalTime) > 1e-5 && T.render(U, !1, !1)), (this._gc || this._time === this._duration) && !this._paused && this._duration < this.duration())
|
|
448
|
-
for (
|
|
449
|
-
ct &&
|
|
448
|
+
for (K = this, ct = K.rawTime() > T._startTime; K._timeline; )
|
|
449
|
+
ct && K._timeline.smoothChildTiming ? K.totalTime(K._totalTime, !0) : K._gc && K._enabled(!0, !1), K = K._timeline;
|
|
450
450
|
return this;
|
|
451
451
|
}, L.remove = function(T) {
|
|
452
452
|
if (T instanceof x) {
|
|
@@ -513,7 +513,7 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
513
513
|
return this.pause(T, M);
|
|
514
514
|
}, L.render = function(T, M, R) {
|
|
515
515
|
this._gc && this._enabled(!0, !1);
|
|
516
|
-
var b, U, N, j, J,
|
|
516
|
+
var b, U, N, j, J, K, ct, It = this._time, et = this._dirty ? this.totalDuration() : this._totalDuration, yt = this._startTime, G = this._timeScale, Pt = this._paused;
|
|
517
517
|
if (It !== this._time && (T += this._time - It), T >= et - 1e-7 && T >= 0)
|
|
518
518
|
this._totalTime = this._time = et, this._reversed || this._hasPausedChild() || (U = !0, j = "onComplete", J = !!this._timeline.autoRemoveChildren, this._duration === 0 && (0 >= T && T >= -1e-7 || this._rawPrevTime < 0 || this._rawPrevTime === d) && this._rawPrevTime !== T && this._first && (J = !0, this._rawPrevTime > d && (j = "onReverseComplete"))), this._rawPrevTime = this._duration || !M || T || this._rawPrevTime === T ? T : d, T = et + 1e-4;
|
|
519
519
|
else if (1e-7 > T)
|
|
@@ -528,19 +528,19 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
528
528
|
else {
|
|
529
529
|
if (this._hasPause && !this._forcingPlayhead && !M) {
|
|
530
530
|
if (T >= It)
|
|
531
|
-
for (b = this._first; b && b._startTime <= T &&
|
|
532
|
-
b._duration || b.data !== "isPause" || b.ratio || b._startTime === 0 && this._rawPrevTime === 0 || (
|
|
531
|
+
for (b = this._first; b && b._startTime <= T && !K; )
|
|
532
|
+
b._duration || b.data !== "isPause" || b.ratio || b._startTime === 0 && this._rawPrevTime === 0 || (K = b), b = b._next;
|
|
533
533
|
else
|
|
534
|
-
for (b = this._last; b && b._startTime >= T &&
|
|
535
|
-
b._duration || b.data === "isPause" && b._rawPrevTime > 0 && (
|
|
536
|
-
|
|
534
|
+
for (b = this._last; b && b._startTime >= T && !K; )
|
|
535
|
+
b._duration || b.data === "isPause" && b._rawPrevTime > 0 && (K = b), b = b._prev;
|
|
536
|
+
K && (this._time = T = K._startTime, this._totalTime = T + this._cycle * (this._totalDuration + this._repeatDelay));
|
|
537
537
|
}
|
|
538
538
|
this._totalTime = this._time = this._rawPrevTime = T;
|
|
539
539
|
}
|
|
540
|
-
if (this._time !== It && this._first || R || J ||
|
|
540
|
+
if (this._time !== It && this._first || R || J || K) {
|
|
541
541
|
if (this._initted || (this._initted = !0), this._active || !this._paused && this._time !== It && T > 0 && (this._active = !0), It === 0 && this.vars.onStart && (this._time === 0 && this._duration || M || this._callback("onStart")), ct = this._time, ct >= It)
|
|
542
542
|
for (b = this._first; b && (N = b._next, ct === this._time && (!this._paused || Pt)); )
|
|
543
|
-
(b._active || b._startTime <= ct && !b._paused && !b._gc) && (
|
|
543
|
+
(b._active || b._startTime <= ct && !b._paused && !b._gc) && (K === b && this.pause(), b._reversed ? b.render(
|
|
544
544
|
(b._dirty ? b.totalDuration() : b._totalDuration) - (T - b._startTime) * b._timeScale,
|
|
545
545
|
M,
|
|
546
546
|
R
|
|
@@ -548,14 +548,14 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
548
548
|
else
|
|
549
549
|
for (b = this._last; b && (N = b._prev, ct === this._time && (!this._paused || Pt)); ) {
|
|
550
550
|
if (b._active || b._startTime <= It && !b._paused && !b._gc) {
|
|
551
|
-
if (
|
|
552
|
-
for (
|
|
553
|
-
|
|
554
|
-
|
|
551
|
+
if (K === b) {
|
|
552
|
+
for (K = b._prev; K && K.endTime() > this._time; )
|
|
553
|
+
K.render(
|
|
554
|
+
K._reversed ? K.totalDuration() - (T - K._startTime) * K._timeScale : (T - K._startTime) * K._timeScale,
|
|
555
555
|
M,
|
|
556
556
|
R
|
|
557
|
-
),
|
|
558
|
-
|
|
557
|
+
), K = K._prev;
|
|
558
|
+
K = null, this.pause();
|
|
559
559
|
}
|
|
560
560
|
b._reversed ? b.render(
|
|
561
561
|
(b._dirty ? b.totalDuration() : b._totalDuration) - (T - b._startTime) * b._timeScale,
|
|
@@ -700,7 +700,7 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
700
700
|
return F.isFromTo = 1, F.duration(Math.abs(F.vars.time - I) / this._timeScale || 1e-3);
|
|
701
701
|
}, A.render = function(I, k, D) {
|
|
702
702
|
this._gc && this._enabled(!0, !1);
|
|
703
|
-
var F, E, L, T, M, R, b, U, N = this._time, j = this._dirty ? this.totalDuration() : this._totalDuration, J = this._duration,
|
|
703
|
+
var F, E, L, T, M, R, b, U, N = this._time, j = this._dirty ? this.totalDuration() : this._totalDuration, J = this._duration, K = this._totalTime, ct = this._startTime, It = this._timeScale, et = this._rawPrevTime, yt = this._paused, G = this._cycle;
|
|
704
704
|
if (N !== this._time && (I += this._time - N), I >= j - 1e-7 && I >= 0)
|
|
705
705
|
this._locked || (this._totalTime = j, this._cycle = this._repeat), this._reversed || this._hasPausedChild() || (E = !0, T = "onComplete", M = !!this._timeline.autoRemoveChildren, this._duration === 0 && (0 >= I && I >= -1e-7 || 0 > et || et === d) && et !== I && this._first && (M = !0, et > d && (T = "onReverseComplete"))), this._rawPrevTime = this._duration || !k || I || this._rawPrevTime === I ? I : d, this._yoyo && 1 & this._cycle ? this._time = I = 0 : (this._time = J, I = J + 1e-4);
|
|
706
706
|
else if (1e-7 > I)
|
|
@@ -712,7 +712,7 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
712
712
|
F._duration || (E = !1), F = F._next;
|
|
713
713
|
I = 0, this._initted || (M = !0);
|
|
714
714
|
}
|
|
715
|
-
else if (J === 0 && 0 > et && (M = !0), this._time = this._rawPrevTime = I, this._locked || (this._totalTime = I, this._repeat !== 0 && (R = J + this._repeatDelay, this._cycle = this._totalTime / R >> 0, this._cycle !== 0 && this._cycle === this._totalTime / R && I >=
|
|
715
|
+
else if (J === 0 && 0 > et && (M = !0), this._time = this._rawPrevTime = I, this._locked || (this._totalTime = I, this._repeat !== 0 && (R = J + this._repeatDelay, this._cycle = this._totalTime / R >> 0, this._cycle !== 0 && this._cycle === this._totalTime / R && I >= K && this._cycle--, this._time = this._totalTime - this._cycle * R, this._yoyo && 1 & this._cycle && (this._time = J - this._time), this._time > J ? (this._time = J, I = J + 1e-4) : this._time < 0 ? this._time = I = 0 : I = this._time)), this._hasPause && !this._forcingPlayhead && !k) {
|
|
716
716
|
if (I = this._time, I >= N || this._repeat && G !== this._cycle)
|
|
717
717
|
for (F = this._first; F && F._startTime <= I && !b; )
|
|
718
718
|
F._duration || F.data !== "isPause" || F.ratio || F._startTime === 0 && this._rawPrevTime === 0 || (b = F), F = F._next;
|
|
@@ -728,8 +728,8 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
728
728
|
this._time = Ft, this._totalTime = Ct, this._cycle = fe, this._rawPrevTime = re;
|
|
729
729
|
}
|
|
730
730
|
if (!(this._time !== N && this._first || D || M || b))
|
|
731
|
-
return void (
|
|
732
|
-
if (this._initted || (this._initted = !0), this._active || !this._paused && this._totalTime !==
|
|
731
|
+
return void (K !== this._totalTime && this._onUpdate && (k || this._callback("onUpdate")));
|
|
732
|
+
if (this._initted || (this._initted = !0), this._active || !this._paused && this._totalTime !== K && I > 0 && (this._active = !0), K === 0 && this.vars.onStart && (this._totalTime === 0 && this._totalDuration || k || this._callback("onStart")), U = this._time, U >= N)
|
|
733
733
|
for (F = this._first; F && (L = F._next, U === this._time && (!this._paused || yt)); )
|
|
734
734
|
(F._active || F._startTime <= this._time && !F._paused && !F._gc) && (b === F && this.pause(), F._reversed ? F.render(
|
|
735
735
|
(F._dirty ? F.totalDuration() : F._totalDuration) - (I - F._startTime) * F._timeScale,
|
|
@@ -811,25 +811,25 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
811
811
|
var x = 180 / Math.PI, a = [], o = [], c = [], d = {}, u = hn._gsDefine.globals, m = function(T, M, R, b) {
|
|
812
812
|
R === b && (R = b - (b - M) / 1e6), T === M && (M = T + (R - T) / 1e6), this.a = T, this.b = M, this.c = R, this.d = b, this.da = b - T, this.ca = R - T, this.ba = M - T;
|
|
813
813
|
}, _ = ",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,", y = function(T, M, R, b) {
|
|
814
|
-
var U = { a: T }, N = {}, j = {}, J = { c: b },
|
|
815
|
-
return U.b =
|
|
814
|
+
var U = { a: T }, N = {}, j = {}, J = { c: b }, K = (T + M) / 2, ct = (M + R) / 2, It = (R + b) / 2, et = (K + ct) / 2, yt = (ct + It) / 2, G = (yt - et) / 8;
|
|
815
|
+
return U.b = K + (T - K) / 4, N.b = et + G, U.c = N.a = (U.b + N.b) / 2, N.c = j.a = (et + yt) / 2, j.b = yt - G, J.b = It + (b - It) / 4, j.c = J.a = (j.b + J.b) / 2, [U, N, j, J];
|
|
816
816
|
}, S = function(T, M, R, b, U) {
|
|
817
|
-
var N, j, J,
|
|
817
|
+
var N, j, J, K, ct, It, et, yt, G, Pt, Et, Ct, fe, re = T.length - 1, Ft = 0, Ot = T[0].a;
|
|
818
818
|
for (N = 0; re > N; N++)
|
|
819
|
-
ct = T[Ft], j = ct.a, J = ct.d,
|
|
819
|
+
ct = T[Ft], j = ct.a, J = ct.d, K = T[Ft + 1].d, U ? (Et = a[N], Ct = o[N], fe = (Ct + Et) * M * 0.25 / (b ? 0.5 : c[N] || 0.5), It = J - (J - j) * (b ? 0.5 * M : Et !== 0 ? fe / Et : 0), et = J + (K - J) * (b ? 0.5 * M : Ct !== 0 ? fe / Ct : 0), yt = J - (It + ((et - It) * (3 * Et / (Et + Ct) + 0.5) / 4 || 0))) : (It = J - (J - j) * M * 0.5, et = J + (K - J) * M * 0.5, yt = J - (It + et) / 2), It += yt, et += yt, ct.c = G = It, N !== 0 ? ct.b = Ot : ct.b = Ot = ct.a + 0.6 * (ct.c - ct.a), ct.da = J - j, ct.ca = G - j, ct.ba = Ot - j, R ? (Pt = y(j, Ot, G, J), T.splice(Ft, 1, Pt[0], Pt[1], Pt[2], Pt[3]), Ft += 4) : Ft++, Ot = et;
|
|
820
820
|
ct = T[Ft], ct.b = Ot, ct.c = Ot + 0.4 * (ct.d - Ot), ct.da = ct.d - ct.a, ct.ca = ct.c - ct.a, ct.ba = Ot - ct.a, R && (Pt = y(ct.a, Ot, ct.c, ct.d), T.splice(Ft, 1, Pt[0], Pt[1], Pt[2], Pt[3]));
|
|
821
821
|
}, A = function(T, M, R, b) {
|
|
822
|
-
var U, N, j, J,
|
|
822
|
+
var U, N, j, J, K, ct, It = [];
|
|
823
823
|
if (b)
|
|
824
824
|
for (T = [b].concat(T), N = T.length; --N > -1; )
|
|
825
825
|
typeof (ct = T[N][M]) == "string" && ct.charAt(1) === "=" && (T[N][M] = b[M] + Number(ct.charAt(0) + ct.substr(2)));
|
|
826
826
|
if (U = T.length - 2, 0 > U)
|
|
827
827
|
return It[0] = new m(T[0][M], 0, 0, T[0][M]), It;
|
|
828
828
|
for (N = 0; U > N; N++)
|
|
829
|
-
j = T[N][M], J = T[N + 1][M], It[N] = new m(j, 0, 0, J), R && (
|
|
829
|
+
j = T[N][M], J = T[N + 1][M], It[N] = new m(j, 0, 0, J), R && (K = T[N + 2][M], a[N] = (a[N] || 0) + (J - j) * (J - j), o[N] = (o[N] || 0) + (K - J) * (K - J));
|
|
830
830
|
return It[N] = new m(T[N][M], 0, 0, T[N + 1][M]), It;
|
|
831
831
|
}, I = function(T, M, R, b, U, N) {
|
|
832
|
-
var j, J,
|
|
832
|
+
var j, J, K, ct, It, et, yt, G, Pt = {}, Et = [], Ct = N || T[0];
|
|
833
833
|
U = typeof U == "string" ? "," + U + "," : _, M == null && (M = 1);
|
|
834
834
|
for (J in T[0])
|
|
835
835
|
Et.push(J);
|
|
@@ -848,23 +848,23 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
848
848
|
if (!b) {
|
|
849
849
|
for (j = Et.length; --j > -1; )
|
|
850
850
|
if (d[J])
|
|
851
|
-
for (
|
|
852
|
-
It =
|
|
851
|
+
for (K = Pt[Et[j]], et = K.length - 1, ct = 0; et > ct; ct++)
|
|
852
|
+
It = K[ct + 1].da / o[ct] + K[ct].da / a[ct] || 0, c[ct] = (c[ct] || 0) + It * It;
|
|
853
853
|
for (j = c.length; --j > -1; )
|
|
854
854
|
c[j] = Math.sqrt(c[j]);
|
|
855
855
|
}
|
|
856
856
|
for (j = Et.length, ct = R ? 4 : 1; --j > -1; )
|
|
857
|
-
J = Et[j],
|
|
857
|
+
J = Et[j], K = Pt[J], S(K, M, R, b, d[J]), yt && (K.splice(0, ct), K.splice(K.length - ct, ct));
|
|
858
858
|
return Pt;
|
|
859
859
|
}, k = function(T, M, R) {
|
|
860
860
|
M = M || "soft";
|
|
861
|
-
var b, U, N, j, J,
|
|
861
|
+
var b, U, N, j, J, K, ct, It, et, yt, G, Pt = {}, Et = M === "cubic" ? 3 : 2, Ct = M === "soft", fe = [];
|
|
862
862
|
if (Ct && R && (T = [R].concat(T)), T == null || T.length < Et + 1)
|
|
863
863
|
throw "invalid Bezier data";
|
|
864
864
|
for (et in T[0])
|
|
865
865
|
fe.push(et);
|
|
866
|
-
for (
|
|
867
|
-
for (et = fe[
|
|
866
|
+
for (K = fe.length; --K > -1; ) {
|
|
867
|
+
for (et = fe[K], Pt[et] = J = [], yt = 0, It = T.length, ct = 0; It > ct; ct++)
|
|
868
868
|
b = R == null ? T[ct][et] : typeof (G = T[ct][et]) == "string" && G.charAt(1) === "=" ? R[et] + Number(G.charAt(0) + G.substr(2)) : Number(G), Ct && ct > 1 && It - 1 > ct && (J[yt++] = (b + J[yt - 2]) / 2), J[yt++] = b;
|
|
869
869
|
for (It = yt - Et + 1, yt = 0, ct = 0; It > ct; ct += Et)
|
|
870
870
|
b = J[ct], U = J[ct + 1], N = J[ct + 2], j = Et === 2 ? 0 : J[ct + 3], J[yt++] = G = Et === 3 ? new m(b, U, N, j) : new m(b, (2 * U + b) / 3, (2 * U + N) / 3, N);
|
|
@@ -872,16 +872,16 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
872
872
|
}
|
|
873
873
|
return Pt;
|
|
874
874
|
}, D = function(T, M, R) {
|
|
875
|
-
for (var b, U, N, j, J,
|
|
876
|
-
for (yt = T[Et], N = yt.a, j = yt.d - N, J = yt.c - N,
|
|
877
|
-
ct = Pt * It, et = 1 - ct, b = U - (U = (ct * ct * j + 3 * et * (ct * J + et *
|
|
875
|
+
for (var b, U, N, j, J, K, ct, It, et, yt, G, Pt = 1 / R, Et = T.length; --Et > -1; )
|
|
876
|
+
for (yt = T[Et], N = yt.a, j = yt.d - N, J = yt.c - N, K = yt.b - N, b = U = 0, It = 1; R >= It; It++)
|
|
877
|
+
ct = Pt * It, et = 1 - ct, b = U - (U = (ct * ct * j + 3 * et * (ct * J + et * K)) * ct), G = Et * R + It - 1, M[G] = (M[G] || 0) + b * b;
|
|
878
878
|
}, F = function(T, M) {
|
|
879
879
|
M = M >> 0 || 6;
|
|
880
|
-
var R, b, U, N, j = [], J = [],
|
|
880
|
+
var R, b, U, N, j = [], J = [], K = 0, ct = 0, It = M - 1, et = [], yt = [];
|
|
881
881
|
for (R in T)
|
|
882
882
|
D(T[R], j, M);
|
|
883
883
|
for (U = j.length, b = 0; U > b; b++)
|
|
884
|
-
|
|
884
|
+
K += Math.sqrt(j[b]), N = b % M, yt[N] = K, N === It && (ct += K, N = b / M >> 0, et[N] = yt, J[N] = ct, K = 0, yt = []);
|
|
885
885
|
return { length: ct, lengths: J, segments: et };
|
|
886
886
|
}, E = hn._gsDefine.plugin({
|
|
887
887
|
propName: "bezier",
|
|
@@ -891,20 +891,20 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
891
891
|
global: !0,
|
|
892
892
|
init: function(T, M, R) {
|
|
893
893
|
this._target = T, M instanceof Array && (M = { values: M }), this._func = {}, this._mod = {}, this._props = [], this._timeRes = M.timeResolution == null ? 6 : parseInt(M.timeResolution, 10);
|
|
894
|
-
var b, U, N, j, J,
|
|
894
|
+
var b, U, N, j, J, K = M.values || [], ct = {}, It = K[0], et = M.autoRotate || R.vars.orientToBezier;
|
|
895
895
|
this._autoRotate = et ? et instanceof Array ? et : [["x", "y", "rotation", et === !0 ? 0 : Number(et) || 0]] : null;
|
|
896
896
|
for (b in It)
|
|
897
897
|
this._props.push(b);
|
|
898
898
|
for (N = this._props.length; --N > -1; )
|
|
899
|
-
b = this._props[N], this._overwriteProps.push(b), U = this._func[b] = typeof T[b] == "function", ct[b] = U ? T[b.indexOf("set") || typeof T["get" + b.substr(3)] != "function" ? b : "get" + b.substr(3)]() : parseFloat(T[b]), J || ct[b] !==
|
|
899
|
+
b = this._props[N], this._overwriteProps.push(b), U = this._func[b] = typeof T[b] == "function", ct[b] = U ? T[b.indexOf("set") || typeof T["get" + b.substr(3)] != "function" ? b : "get" + b.substr(3)]() : parseFloat(T[b]), J || ct[b] !== K[0][b] && (J = ct);
|
|
900
900
|
if (this._beziers = M.type !== "cubic" && M.type !== "quadratic" && M.type !== "soft" ? I(
|
|
901
|
-
|
|
901
|
+
K,
|
|
902
902
|
isNaN(M.curviness) ? 1 : M.curviness,
|
|
903
903
|
!1,
|
|
904
904
|
M.type === "thruBasic",
|
|
905
905
|
M.correlate,
|
|
906
906
|
J
|
|
907
|
-
) : k(
|
|
907
|
+
) : k(K, M.type, ct), this._segCount = this._beziers[b].length, this._timeRes) {
|
|
908
908
|
var yt = F(this._beziers, this._timeRes);
|
|
909
909
|
this._length = yt.length, this._lengths = yt.lengths, this._segments = yt.segments, this._l1 = this._li = this._s1 = this._si = 0, this._l2 = this._lengths[0], this._curSeg = this._segments[0], this._s2 = this._curSeg[0], this._prec = 1 / this._curSeg.length;
|
|
910
910
|
}
|
|
@@ -917,10 +917,10 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
917
917
|
return this._startRatio = R.vars.runBackwards ? 1 : 0, !0;
|
|
918
918
|
},
|
|
919
919
|
set: function(T) {
|
|
920
|
-
var M, R, b, U, N, j, J,
|
|
920
|
+
var M, R, b, U, N, j, J, K, ct, It, et = this._segCount, yt = this._func, G = this._target, Pt = T !== this._startRatio;
|
|
921
921
|
if (this._timeRes) {
|
|
922
922
|
if (ct = this._lengths, It = this._curSeg, T *= this._length, b = this._li, T > this._l2 && et - 1 > b) {
|
|
923
|
-
for (
|
|
923
|
+
for (K = et - 1; K > b && (this._l2 = ct[++b]) <= T; )
|
|
924
924
|
;
|
|
925
925
|
this._l1 = ct[b - 1], this._li = b, this._curSeg = It = this._segments[b], this._s2 = It[this._s1 = this._si = 0];
|
|
926
926
|
} else if (T < this._l1 && b > 0) {
|
|
@@ -929,7 +929,7 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
929
929
|
b === 0 && T < this._l1 ? this._l1 = 0 : b++, this._l2 = ct[b], this._li = b, this._curSeg = It = this._segments[b], this._s1 = It[(this._si = It.length - 1) - 1] || 0, this._s2 = It[this._si];
|
|
930
930
|
}
|
|
931
931
|
if (M = b, T -= this._l1, b = this._si, T > this._s2 && b < It.length - 1) {
|
|
932
|
-
for (
|
|
932
|
+
for (K = It.length - 1; K > b && (this._s2 = It[++b]) <= T; )
|
|
933
933
|
;
|
|
934
934
|
this._s1 = It[b - 1], this._si = b;
|
|
935
935
|
} else if (T < this._s1 && b > 0) {
|
|
@@ -956,16 +956,16 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
956
956
|
if (T) {
|
|
957
957
|
var M = T._internals, R = M._parseToProxy, b = M._setPluginRatio, U = M.CSSPropTween;
|
|
958
958
|
M._registerComplexSpecialProp("bezier", {
|
|
959
|
-
parser: function(N, j, J,
|
|
959
|
+
parser: function(N, j, J, K, ct, It) {
|
|
960
960
|
j instanceof Array && (j = { values: j }), It = new E();
|
|
961
961
|
var et, yt, G, Pt = j.values, Et = Pt.length - 1, Ct = [], fe = {};
|
|
962
962
|
if (0 > Et)
|
|
963
963
|
return ct;
|
|
964
964
|
for (et = 0; Et >= et; et++)
|
|
965
|
-
G = R(N, Pt[et],
|
|
965
|
+
G = R(N, Pt[et], K, ct, It, Et !== et), Ct[et] = G.end;
|
|
966
966
|
for (yt in j)
|
|
967
967
|
fe[yt] = j[yt];
|
|
968
|
-
return fe.values = Ct, ct = new U(N, "bezier", 0, 0, G.pt, 2), ct.data = G, ct.plugin = It, ct.setRatio = b, fe.autoRotate === 0 && (fe.autoRotate = !0), !fe.autoRotate || fe.autoRotate instanceof Array || (et = fe.autoRotate === !0 ? 0 : Number(fe.autoRotate), fe.autoRotate = G.end.left != null ? [["left", "top", "rotation", et, !1]] : G.end.x != null ? [["x", "y", "rotation", et, !1]] : !1), fe.autoRotate && (
|
|
968
|
+
return fe.values = Ct, ct = new U(N, "bezier", 0, 0, G.pt, 2), ct.data = G, ct.plugin = It, ct.setRatio = b, fe.autoRotate === 0 && (fe.autoRotate = !0), !fe.autoRotate || fe.autoRotate instanceof Array || (et = fe.autoRotate === !0 ? 0 : Number(fe.autoRotate), fe.autoRotate = G.end.left != null ? [["left", "top", "rotation", et, !1]] : G.end.x != null ? [["x", "y", "rotation", et, !1]] : !1), fe.autoRotate && (K._transform || K._enableTransforms(!1), G.autoRotate = K._target._gsTransform, G.proxy.rotation = G.autoRotate.rotation || 0, K._overwriteProps.push("rotation")), It._onInitTween(G.proxy, fe, K._tween), ct;
|
|
969
969
|
}
|
|
970
970
|
});
|
|
971
971
|
}
|
|
@@ -1003,7 +1003,7 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1003
1003
|
perspective: S,
|
|
1004
1004
|
lineHeight: ""
|
|
1005
1005
|
};
|
|
1006
|
-
var A, I, k, D, F, E, L, T, M = /(?:\-|\.|\b)(\d|\.|e\-)+/g, R = /(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g, b = /(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi, U = /(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g, N = /(?:\d|\-|\+|=|#|\.)*/g, j = /opacity *= *([^)]*)/i, J = /opacity:([^;]*)/i,
|
|
1006
|
+
var A, I, k, D, F, E, L, T, M = /(?:\-|\.|\b)(\d|\.|e\-)+/g, R = /(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g, b = /(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi, U = /(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g, N = /(?:\d|\-|\+|=|#|\.)*/g, j = /opacity *= *([^)]*)/i, J = /opacity:([^;]*)/i, K = /alpha\(opacity *=.+?\)/i, ct = /^(rgb|hsl)/, It = /([A-Z])/g, et = /-([a-z])/gi, yt = /(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi, G = function(V, tt) {
|
|
1007
1007
|
return tt.toUpperCase();
|
|
1008
1008
|
}, Pt = /(?:Left|Right|Width)/i, Et = /(M11|M12|M21|M22)=[\d\-\.e]+/gi, Ct = /progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i, fe = /,(?=[^\)]*(?:\(|$))/gi, re = /[\s,\(]/i, Ft = Math.PI / 180, Ot = 180 / Math.PI, Bt = {}, ke = { style: {} }, ce = hn.document || {
|
|
1009
1009
|
createElement: function() {
|
|
@@ -1690,7 +1690,7 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1690
1690
|
});
|
|
1691
1691
|
var ph = function(V) {
|
|
1692
1692
|
var tt, lt = this.t, at = lt.filter || pt(this.data, "filter") || "", X = this.s + this.c * V | 0;
|
|
1693
|
-
X === 100 && (at.indexOf("atrix(") === -1 && at.indexOf("radient(") === -1 && at.indexOf("oader(") === -1 ? (lt.removeAttribute("filter"), tt = !pt(this.data, "filter")) : (lt.filter = at.replace(
|
|
1693
|
+
X === 100 && (at.indexOf("atrix(") === -1 && at.indexOf("radient(") === -1 && at.indexOf("oader(") === -1 ? (lt.removeAttribute("filter"), tt = !pt(this.data, "filter")) : (lt.filter = at.replace(K, ""), tt = !0)), tt || (this.xn1 && (lt.filter = at = at || "alpha(opacity=" + X + ")"), at.indexOf("pacity") === -1 ? X === 0 && this.xn1 || (lt.filter = at + " alpha(opacity=" + X + ")") : lt.filter = at.replace(j, "opacity=" + X));
|
|
1694
1694
|
};
|
|
1695
1695
|
Oi("opacity,alpha,autoAlpha", {
|
|
1696
1696
|
defaultValue: "1",
|
|
@@ -2082,8 +2082,8 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2082
2082
|
"easing.RoughEase",
|
|
2083
2083
|
function(M) {
|
|
2084
2084
|
M = M || {};
|
|
2085
|
-
for (var R, b, U, N, j, J,
|
|
2086
|
-
R = G ? Math.random() : 1 / et * yt, b = Et ? Et.getRatio(R) : R,
|
|
2085
|
+
for (var R, b, U, N, j, J, K = M.taper || "none", ct = [], It = 0, et = 0 | (M.points || 20), yt = et, G = M.randomize !== !1, Pt = M.clamp === !0, Et = M.template instanceof x ? M.template : null, Ct = typeof M.strength == "number" ? 0.4 * M.strength : 0.4; --yt > -1; )
|
|
2086
|
+
R = G ? Math.random() : 1 / et * yt, b = Et ? Et.getRatio(R) : R, K === "none" ? U = Ct : K === "out" ? (N = 1 - R, U = N * N * Ct) : K === "in" ? U = R * R * Ct : 0.5 > R ? (N = 2 * R, U = N * N * 0.5 * Ct) : (N = 2 * (1 - R), U = N * N * 0.5 * Ct), G ? b += Math.random() * U - 0.5 * U : yt % 2 ? b += 0.5 * U : b -= 0.5 * U, Pt && (b > 1 ? b = 1 : 0 > b && (b = 0)), ct[It++] = { x: R, y: b };
|
|
2087
2087
|
for (ct.sort(function(fe, re) {
|
|
2088
2088
|
return fe.x - re.x;
|
|
2089
2089
|
}), J = new D(1, 1, null), yt = et; --yt > -1; )
|
|
@@ -2274,10 +2274,10 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2274
2274
|
}, m = ["Linear", "Quad", "Cubic", "Quart", "Quint,Strong"], _ = m.length; --_ > -1; )
|
|
2275
2275
|
y = m[_] + ",Power" + _, J(new N(null, null, 1, _), y, "easeOut", !0), J(new N(null, null, 2, _), y, "easeIn" + (_ === 0 ? ",easeNone" : "")), J(new N(null, null, 3, _), y, "easeInOut");
|
|
2276
2276
|
j.linear = k.easing.Linear.easeIn, j.swing = k.easing.Quad.easeInOut;
|
|
2277
|
-
var
|
|
2277
|
+
var K = b("events.EventDispatcher", function(z) {
|
|
2278
2278
|
this._listeners = {}, this._eventTarget = z || this;
|
|
2279
2279
|
});
|
|
2280
|
-
y =
|
|
2280
|
+
y = K.prototype, y.addEventListener = function(z, Q, ot, nt, vt) {
|
|
2281
2281
|
vt = vt || 0;
|
|
2282
2282
|
var Gt, Xt, jt = this._listeners[z], Ne = 0;
|
|
2283
2283
|
for (this !== S || A || S.wake(), jt == null && (this._listeners[z] = jt = []), Xt = jt.length; --Xt > -1; )
|
|
@@ -2306,7 +2306,7 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2306
2306
|
var Si, Gr, er = et() - yt;
|
|
2307
2307
|
er > ge && (Ne += er - we), yt += er, jt.time = (yt - Ne) / 1e3, Si = jt.time - Xt, (!ot || Si > 0 || ni === !0) && (jt.frame++, Xt += Si + (Si >= Gt ? 4e-3 : Gt - Si), Gr = !0), ni !== !0 && (vt = nt(Mi)), Gr && jt.dispatchEvent(vi);
|
|
2308
2308
|
};
|
|
2309
|
-
|
|
2309
|
+
K.call(jt), jt.time = jt.frame = 0, jt.tick = function() {
|
|
2310
2310
|
Mi(!0);
|
|
2311
2311
|
}, jt.lagSmoothing = function(ni, Si) {
|
|
2312
2312
|
return arguments.length ? (ge = ni || 1 / D, void (we = Math.min(Si, ge, 0))) : 1 / D > ge;
|
|
@@ -3200,8 +3200,8 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
3200
3200
|
}
|
|
3201
3201
|
function L() {
|
|
3202
3202
|
S = new THREE.Scene();
|
|
3203
|
-
var
|
|
3204
|
-
S.background =
|
|
3203
|
+
var K = new THREE.Color(3355443);
|
|
3204
|
+
S.background = K, S.fog = new THREE.Fog(K, 0, 400), R(), I = new THREE.PerspectiveCamera(60, _ / y, 0.1, 1e4), I.position.y = 8, I.position.z = 4;
|
|
3205
3205
|
let ct = new THREE.AmbientLight(16777215, 1);
|
|
3206
3206
|
S.add(ct), A = new THREE.WebGLRenderer({
|
|
3207
3207
|
canvas: m,
|
|
@@ -3209,7 +3209,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
3209
3209
|
}), A.setPixelRatio = devicePixelRatio, A.setSize(_, y);
|
|
3210
3210
|
}
|
|
3211
3211
|
function T() {
|
|
3212
|
-
var
|
|
3212
|
+
var K = new THREE.PlaneBufferGeometry(100, 400, 400, 400), ct = {
|
|
3213
3213
|
time: { type: "f", value: 0 },
|
|
3214
3214
|
scroll: { type: "f", value: 0 },
|
|
3215
3215
|
distortCenter: { type: "f", value: 0.1 },
|
|
@@ -3228,35 +3228,35 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
3228
3228
|
wireframe: !1,
|
|
3229
3229
|
fog: !0
|
|
3230
3230
|
});
|
|
3231
|
-
k = new THREE.Mesh(
|
|
3231
|
+
k = new THREE.Mesh(K, It), k.position.z = -180, k.rotation.x = -Math.PI / 2, S.add(k);
|
|
3232
3232
|
}
|
|
3233
3233
|
function M() {
|
|
3234
|
-
new THREE.TextureLoader().load("", function(
|
|
3235
|
-
k.material.uniforms.pallete.value =
|
|
3234
|
+
new THREE.TextureLoader().load("", function(K) {
|
|
3235
|
+
k.material.uniforms.pallete.value = K, k.material.needsUpdate = !0;
|
|
3236
3236
|
});
|
|
3237
3237
|
}
|
|
3238
3238
|
function R() {
|
|
3239
3239
|
R = new THREE.Sky(), R.scale.setScalar(45e4), R.material.uniforms.turbidity.value = 13, R.material.uniforms.rayleigh.value = 1.2, R.material.uniforms.luminance.value = 1, R.material.uniforms.mieCoefficient.value = 0.1, R.material.uniforms.mieDirectionalG.value = 0.58, S.add(R);
|
|
3240
|
-
let
|
|
3240
|
+
let K = new THREE.Mesh(
|
|
3241
3241
|
new THREE.SphereBufferGeometry(2e4, 16, 8),
|
|
3242
3242
|
new THREE.MeshBasicMaterial({ color: 16777215 })
|
|
3243
3243
|
);
|
|
3244
|
-
|
|
3244
|
+
K.visible = !1, S.add(K);
|
|
3245
3245
|
var ct = Math.PI * -2e-3, It = 2 * Math.PI * -0.25;
|
|
3246
|
-
|
|
3246
|
+
K.position.x = 4e5 * Math.cos(It), K.position.y = 4e5 * Math.sin(It) * Math.sin(ct), K.position.z = 4e5 * Math.sin(It) * Math.cos(ct), R.material.uniforms.sunPosition.value.copy(K.position);
|
|
3247
3247
|
}
|
|
3248
3248
|
function b() {
|
|
3249
3249
|
_ = window.innerWidth, y = window.innerHeight, I.aspect = _ / y, I.updateProjectionMatrix(), A.setSize(_, y);
|
|
3250
3250
|
}
|
|
3251
|
-
function U(
|
|
3252
|
-
|
|
3251
|
+
function U(K) {
|
|
3252
|
+
K.preventDefault();
|
|
3253
3253
|
var ct, It;
|
|
3254
|
-
|
|
3254
|
+
K.type == "mousemove" ? (ct = K.clientX, It = K.clientY) : (ct = K.changedTouches[0].clientX, It = K.changedTouches[0].clientY), D.x = ct, D.y = It;
|
|
3255
3255
|
}
|
|
3256
3256
|
function N() {
|
|
3257
3257
|
requestAnimationFrame(N), D.xDamped = J(D.xDamped, D.x, 0.1), D.yDamped = J(D.yDamped, D.y, 0.1);
|
|
3258
|
-
var
|
|
3259
|
-
k.material.uniforms.time.value =
|
|
3258
|
+
var K = performance.now() * 1e-3;
|
|
3259
|
+
k.material.uniforms.time.value = K, k.material.uniforms.scroll.value = K + j(D.yDamped, 0, y, 0, 4), k.material.uniforms.distortCenter.value = Math.sin(K) * 0.1, k.material.uniforms.roadWidth.value = j(
|
|
3260
3260
|
D.xDamped,
|
|
3261
3261
|
0,
|
|
3262
3262
|
_,
|
|
@@ -3264,11 +3264,11 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
3264
3264
|
4.5
|
|
3265
3265
|
), I.position.y = j(D.yDamped, 0, y, 4, 11), A.render(S, I);
|
|
3266
3266
|
}
|
|
3267
|
-
function j(
|
|
3268
|
-
return et + (yt - et) * ((
|
|
3267
|
+
function j(K, ct, It, et, yt) {
|
|
3268
|
+
return et + (yt - et) * ((K - ct) / (It - ct));
|
|
3269
3269
|
}
|
|
3270
|
-
function J(
|
|
3271
|
-
return (1 - It) *
|
|
3270
|
+
function J(K, ct, It) {
|
|
3271
|
+
return (1 - It) * K + It * ct;
|
|
3272
3272
|
}
|
|
3273
3273
|
}, o = () => {
|
|
3274
3274
|
const d = document.querySelector(".overlay"), u = document.querySelector(".content__title");
|
|
@@ -3472,7 +3472,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
3472
3472
|
);
|
|
3473
3473
|
this.name = "", this.array = t, this.itemSize = e, this.count = t !== void 0 ? t.length / e : 0, this.normalized = i === !0, this.dynamic = !1, this.updateRange = { offset: 0, count: -1 }, this.version = 0;
|
|
3474
3474
|
}
|
|
3475
|
-
function
|
|
3475
|
+
function K(t, e, i) {
|
|
3476
3476
|
J.call(this, new Int8Array(t), e, i);
|
|
3477
3477
|
}
|
|
3478
3478
|
function ct(t, e, i) {
|
|
@@ -3523,18 +3523,18 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
3523
3523
|
}, this.fromBufferGeometry(new Bt(t, e, i, n, s, l)), this.mergeVertices();
|
|
3524
3524
|
}
|
|
3525
3525
|
function Bt(t, e, i, n, s, l) {
|
|
3526
|
-
function f(q,
|
|
3526
|
+
function f(q, $, rt, xt, gt, At, wt, Vt, Z, st, zt) {
|
|
3527
3527
|
var ee = At / Z, $t = wt / st, qt = At / 2, Te = wt / 2, me = Vt / 2;
|
|
3528
3528
|
wt = Z + 1;
|
|
3529
3529
|
var Ie = st + 1, be = At = 0, ae, We, Qe = new u();
|
|
3530
3530
|
for (We = 0; We < Ie; We++) {
|
|
3531
3531
|
var ci = We * $t - Te;
|
|
3532
3532
|
for (ae = 0; ae < wt; ae++)
|
|
3533
|
-
Qe[q] = (ae * ee - qt) * xt, Qe[
|
|
3533
|
+
Qe[q] = (ae * ee - qt) * xt, Qe[$] = ci * gt, Qe[rt] = me, w.push(Qe.x, Qe.y, Qe.z), Qe[q] = 0, Qe[$] = 0, Qe[rt] = 0 < Vt ? 1 : -1, C.push(Qe.x, Qe.y, Qe.z), P.push(ae / Z), P.push(1 - We / st), At += 1;
|
|
3534
3534
|
}
|
|
3535
3535
|
for (We = 0; We < st; We++)
|
|
3536
3536
|
for (ae = 0; ae < Z; ae++)
|
|
3537
|
-
q = B + ae + wt * (We + 1),
|
|
3537
|
+
q = B + ae + wt * (We + 1), $ = B + (ae + 1) + wt * (We + 1), rt = B + (ae + 1) + wt * We, v.push(B + ae + wt * We, q, rt), v.push(q, $, rt), be += 6;
|
|
3538
3538
|
p.addGroup(H, be, zt), H += be, B += At;
|
|
3539
3539
|
}
|
|
3540
3540
|
Ft.call(this), this.type = "BoxBufferGeometry", this.parameters = {
|
|
@@ -3638,8 +3638,8 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
3638
3638
|
depthWrite: !1,
|
|
3639
3639
|
fog: !1
|
|
3640
3640
|
})
|
|
3641
|
-
), v.geometry.removeAttribute("normal"), v.geometry.removeAttribute("uv"), v.onBeforeRender = function(H, q,
|
|
3642
|
-
this.matrixWorld.copyPosition(
|
|
3641
|
+
), v.geometry.removeAttribute("normal"), v.geometry.removeAttribute("uv"), v.onBeforeRender = function(H, q, $) {
|
|
3642
|
+
this.matrixWorld.copyPosition($.matrixWorld);
|
|
3643
3643
|
}, i.update(v)), v.material.uniforms.tCube.value = C.isWebGLRenderTargetCube ? C.texture : C, v.material.uniforms.tFlip.value = C.isWebGLRenderTargetCube ? 1 : -1, w.push(v, v.geometry, v.material, 0, null)) : C && C.isTexture && (p === void 0 && (p = new pi(
|
|
3644
3644
|
new ce(2, 2),
|
|
3645
3645
|
new $e({
|
|
@@ -3696,7 +3696,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
3696
3696
|
p,
|
|
3697
3697
|
"instead."
|
|
3698
3698
|
), f = p), i = i.logarithmicDepthBuffer === !0, p = t.getParameter(34930);
|
|
3699
|
-
var v = t.getParameter(35660), w = t.getParameter(3379), C = t.getParameter(34076), P = t.getParameter(34921), B = t.getParameter(36347), H = t.getParameter(36348), q = t.getParameter(36349),
|
|
3699
|
+
var v = t.getParameter(35660), w = t.getParameter(3379), C = t.getParameter(34076), P = t.getParameter(34921), B = t.getParameter(36347), H = t.getParameter(36348), q = t.getParameter(36349), $ = 0 < v, rt = l || !!e.get("OES_texture_float");
|
|
3700
3700
|
return {
|
|
3701
3701
|
isWebGL2: l,
|
|
3702
3702
|
getMaxAnisotropy: function() {
|
|
@@ -3716,9 +3716,9 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
3716
3716
|
maxVertexUniforms: B,
|
|
3717
3717
|
maxVaryings: H,
|
|
3718
3718
|
maxFragmentUniforms: q,
|
|
3719
|
-
vertexTextures:
|
|
3719
|
+
vertexTextures: $,
|
|
3720
3720
|
floatFragmentTextures: rt,
|
|
3721
|
-
floatVertexTextures:
|
|
3721
|
+
floatVertexTextures: $ && rt
|
|
3722
3722
|
};
|
|
3723
3723
|
}
|
|
3724
3724
|
function W() {
|
|
@@ -3726,14 +3726,14 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
3726
3726
|
w.value !== n && (w.value = n, w.needsUpdate = 0 < s), i.numPlanes = s, i.numIntersection = 0;
|
|
3727
3727
|
}
|
|
3728
3728
|
function e(C, P, B, H) {
|
|
3729
|
-
var q = C !== null ? C.length : 0,
|
|
3729
|
+
var q = C !== null ? C.length : 0, $ = null;
|
|
3730
3730
|
if (q !== 0) {
|
|
3731
|
-
if (
|
|
3732
|
-
for (H = B + 4 * q, P = P.matrixWorldInverse, v.getNormalMatrix(P), (
|
|
3733
|
-
p.copy(C[H]).applyMatrix4(P, v), p.normal.toArray(
|
|
3734
|
-
w.value =
|
|
3731
|
+
if ($ = w.value, H !== !0 || $ === null)
|
|
3732
|
+
for (H = B + 4 * q, P = P.matrixWorldInverse, v.getNormalMatrix(P), ($ === null || $.length < H) && ($ = new Float32Array(H)), H = 0; H !== q; ++H, B += 4)
|
|
3733
|
+
p.copy(C[H]).applyMatrix4(P, v), p.normal.toArray($, B), $[B + 3] = p.constant;
|
|
3734
|
+
w.value = $, w.needsUpdate = !0;
|
|
3735
3735
|
}
|
|
3736
|
-
return i.numPlanes = q,
|
|
3736
|
+
return i.numPlanes = q, $;
|
|
3737
3737
|
}
|
|
3738
3738
|
var i = this, n = null, s = 0, l = !1, f = !1, p = new F(), v = new m(), w = { value: null, needsUpdate: !1 };
|
|
3739
3739
|
this.uniform = w, this.numIntersection = this.numPlanes = 0, this.init = function(C, P, B) {
|
|
@@ -3743,13 +3743,13 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
3743
3743
|
f = !0, e(null);
|
|
3744
3744
|
}, this.endShadows = function() {
|
|
3745
3745
|
f = !1, t();
|
|
3746
|
-
}, this.setState = function(C, P, B, H, q,
|
|
3746
|
+
}, this.setState = function(C, P, B, H, q, $) {
|
|
3747
3747
|
if (!l || C === null || C.length === 0 || f && !B)
|
|
3748
3748
|
f ? e(null) : t();
|
|
3749
3749
|
else {
|
|
3750
3750
|
B = f ? 0 : s;
|
|
3751
3751
|
var rt = 4 * B, xt = q.clippingState || null;
|
|
3752
|
-
for (w.value = xt, xt = e(C, H, rt,
|
|
3752
|
+
for (w.value = xt, xt = e(C, H, rt, $), C = 0; C !== rt; ++C)
|
|
3753
3753
|
xt[C] = n[C];
|
|
3754
3754
|
q.clippingState = xt, this.numIntersection = P ? this.numPlanes : 0, this.numPlanes += B;
|
|
3755
3755
|
}
|
|
@@ -4308,7 +4308,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
4308
4308
|
q = "ENVMAP_BLENDING_ADD";
|
|
4309
4309
|
}
|
|
4310
4310
|
}
|
|
4311
|
-
var
|
|
4311
|
+
var $ = 0 < t.gammaFactor ? t.gammaFactor : 1, rt = f.isWebGL2 ? "" : ph(n.extensions, l, e), xt = uo(v), gt = p.createProgram();
|
|
4312
4312
|
n.isRawShaderMaterial ? (v = [xt].filter(co).join(`
|
|
4313
4313
|
`), 0 < v.length && (v += `
|
|
4314
4314
|
`), e = [rt, xt].filter(co).join(`
|
|
@@ -4319,7 +4319,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
4319
4319
|
"#define SHADER_NAME " + s.name,
|
|
4320
4320
|
xt,
|
|
4321
4321
|
l.supportsVertexTextures ? "#define VERTEX_TEXTURES" : "",
|
|
4322
|
-
"#define GAMMA_FACTOR " +
|
|
4322
|
+
"#define GAMMA_FACTOR " + $,
|
|
4323
4323
|
"#define MAX_BONES " + l.maxBones,
|
|
4324
4324
|
l.useFog && l.fog ? "#define USE_FOG" : "",
|
|
4325
4325
|
l.useFog && l.fogExp ? "#define FOG_EXP2" : "",
|
|
@@ -4393,7 +4393,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
4393
4393
|
"#define SHADER_NAME " + s.name,
|
|
4394
4394
|
xt,
|
|
4395
4395
|
l.alphaTest ? "#define ALPHATEST " + l.alphaTest + (l.alphaTest % 1 ? "" : ".0") : "",
|
|
4396
|
-
"#define GAMMA_FACTOR " +
|
|
4396
|
+
"#define GAMMA_FACTOR " + $,
|
|
4397
4397
|
l.useFog && l.fog ? "#define USE_FOG" : "",
|
|
4398
4398
|
l.useFog && l.fogExp ? "#define FOG_EXP2" : "",
|
|
4399
4399
|
l.map ? "#define USE_MAP" : "",
|
|
@@ -4541,20 +4541,20 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
4541
4541
|
this.getParameters = function(p, v, w, C, P, B, H) {
|
|
4542
4542
|
var q = l[p.type];
|
|
4543
4543
|
if (H.isSkinnedMesh) {
|
|
4544
|
-
var
|
|
4544
|
+
var $ = H.skeleton.bones;
|
|
4545
4545
|
if (i.floatVertexTextures)
|
|
4546
|
-
|
|
4546
|
+
$ = 1024;
|
|
4547
4547
|
else {
|
|
4548
4548
|
var rt = Math.min(
|
|
4549
4549
|
Math.floor((i.maxVertexUniforms - 20) / 4),
|
|
4550
|
-
|
|
4550
|
+
$.length
|
|
4551
4551
|
);
|
|
4552
|
-
rt <
|
|
4553
|
-
"THREE.WebGLRenderer: Skeleton has " +
|
|
4554
|
-
),
|
|
4552
|
+
rt < $.length ? (console.warn(
|
|
4553
|
+
"THREE.WebGLRenderer: Skeleton has " + $.length + " bones. This GPU supports " + rt + "."
|
|
4554
|
+
), $ = 0) : $ = rt;
|
|
4555
4555
|
}
|
|
4556
4556
|
} else
|
|
4557
|
-
|
|
4557
|
+
$ = 0;
|
|
4558
4558
|
rt = i.precision, p.precision !== null && (rt = i.getMaxPrecision(p.precision), rt !== p.precision && console.warn(
|
|
4559
4559
|
"THREE.WebGLProgram.getParameters:",
|
|
4560
4560
|
p.precision,
|
|
@@ -4597,8 +4597,8 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
4597
4597
|
flatShading: p.flatShading,
|
|
4598
4598
|
sizeAttenuation: p.sizeAttenuation,
|
|
4599
4599
|
logarithmicDepthBuffer: i.logarithmicDepthBuffer,
|
|
4600
|
-
skinning: p.skinning && 0 <
|
|
4601
|
-
maxBones:
|
|
4600
|
+
skinning: p.skinning && 0 < $,
|
|
4601
|
+
maxBones: $,
|
|
4602
4602
|
useVertexTexture: i.floatVertexTextures,
|
|
4603
4603
|
morphTargets: p.morphTargets,
|
|
4604
4604
|
morphNormals: p.morphNormals,
|
|
@@ -4795,7 +4795,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
4795
4795
|
}, i = new u(), n = new c(), s = new c();
|
|
4796
4796
|
return {
|
|
4797
4797
|
setup: function(l, f, p) {
|
|
4798
|
-
var v = 0, w = 0, C = 0, P = 0, B = 0, H = 0, q = 0,
|
|
4798
|
+
var v = 0, w = 0, C = 0, P = 0, B = 0, H = 0, q = 0, $ = 0;
|
|
4799
4799
|
p = p.matrixWorldInverse;
|
|
4800
4800
|
for (var rt = 0, xt = l.length; rt < xt; rt++) {
|
|
4801
4801
|
var gt = l[rt], At = gt.color, wt = gt.intensity, Vt = gt.distance, Z = gt.shadow && gt.shadow.map ? gt.shadow.map.texture : null;
|
|
@@ -4805,9 +4805,9 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
4805
4805
|
var st = t.get(gt);
|
|
4806
4806
|
st.color.copy(gt.color).multiplyScalar(gt.intensity), st.direction.setFromMatrixPosition(gt.matrixWorld), i.setFromMatrixPosition(gt.target.matrixWorld), st.direction.sub(i), st.direction.transformDirection(p), (st.shadow = gt.castShadow) && (At = gt.shadow, st.shadowBias = At.bias, st.shadowRadius = At.radius, st.shadowMapSize = At.mapSize), e.directionalShadowMap[P] = Z, e.directionalShadowMatrix[P] = gt.shadow.matrix, e.directional[P] = st, P++;
|
|
4807
4807
|
} else
|
|
4808
|
-
gt.isSpotLight ? (st = t.get(gt), st.position.setFromMatrixPosition(gt.matrixWorld), st.position.applyMatrix4(p), st.color.copy(At).multiplyScalar(wt), st.distance = Vt, st.direction.setFromMatrixPosition(gt.matrixWorld), i.setFromMatrixPosition(gt.target.matrixWorld), st.direction.sub(i), st.direction.transformDirection(p), st.coneCos = Math.cos(gt.angle), st.penumbraCos = Math.cos(gt.angle * (1 - gt.penumbra)), st.decay = gt.decay, (st.shadow = gt.castShadow) && (At = gt.shadow, st.shadowBias = At.bias, st.shadowRadius = At.radius, st.shadowMapSize = At.mapSize), e.spotShadowMap[H] = Z, e.spotShadowMatrix[H] = gt.shadow.matrix, e.spot[H] = st, H++) : gt.isRectAreaLight ? (st = t.get(gt), st.color.copy(At).multiplyScalar(wt), st.position.setFromMatrixPosition(gt.matrixWorld), st.position.applyMatrix4(p), s.identity(), n.copy(gt.matrixWorld), n.premultiply(p), s.extractRotation(n), st.halfWidth.set(0.5 * gt.width, 0, 0), st.halfHeight.set(0, 0.5 * gt.height, 0), st.halfWidth.applyMatrix4(s), st.halfHeight.applyMatrix4(s), e.rectArea[q] = st, q++) : gt.isPointLight ? (st = t.get(gt), st.position.setFromMatrixPosition(gt.matrixWorld), st.position.applyMatrix4(p), st.color.copy(gt.color).multiplyScalar(gt.intensity), st.distance = gt.distance, st.decay = gt.decay, (st.shadow = gt.castShadow) && (At = gt.shadow, st.shadowBias = At.bias, st.shadowRadius = At.radius, st.shadowMapSize = At.mapSize, st.shadowCameraNear = At.camera.near, st.shadowCameraFar = At.camera.far), e.pointShadowMap[B] = Z, e.pointShadowMatrix[B] = gt.shadow.matrix, e.point[B] = st, B++) : gt.isHemisphereLight && (st = t.get(gt), st.direction.setFromMatrixPosition(gt.matrixWorld), st.direction.transformDirection(p), st.direction.normalize(), st.skyColor.copy(gt.color).multiplyScalar(wt), st.groundColor.copy(gt.groundColor).multiplyScalar(wt), e.hemi[
|
|
4808
|
+
gt.isSpotLight ? (st = t.get(gt), st.position.setFromMatrixPosition(gt.matrixWorld), st.position.applyMatrix4(p), st.color.copy(At).multiplyScalar(wt), st.distance = Vt, st.direction.setFromMatrixPosition(gt.matrixWorld), i.setFromMatrixPosition(gt.target.matrixWorld), st.direction.sub(i), st.direction.transformDirection(p), st.coneCos = Math.cos(gt.angle), st.penumbraCos = Math.cos(gt.angle * (1 - gt.penumbra)), st.decay = gt.decay, (st.shadow = gt.castShadow) && (At = gt.shadow, st.shadowBias = At.bias, st.shadowRadius = At.radius, st.shadowMapSize = At.mapSize), e.spotShadowMap[H] = Z, e.spotShadowMatrix[H] = gt.shadow.matrix, e.spot[H] = st, H++) : gt.isRectAreaLight ? (st = t.get(gt), st.color.copy(At).multiplyScalar(wt), st.position.setFromMatrixPosition(gt.matrixWorld), st.position.applyMatrix4(p), s.identity(), n.copy(gt.matrixWorld), n.premultiply(p), s.extractRotation(n), st.halfWidth.set(0.5 * gt.width, 0, 0), st.halfHeight.set(0, 0.5 * gt.height, 0), st.halfWidth.applyMatrix4(s), st.halfHeight.applyMatrix4(s), e.rectArea[q] = st, q++) : gt.isPointLight ? (st = t.get(gt), st.position.setFromMatrixPosition(gt.matrixWorld), st.position.applyMatrix4(p), st.color.copy(gt.color).multiplyScalar(gt.intensity), st.distance = gt.distance, st.decay = gt.decay, (st.shadow = gt.castShadow) && (At = gt.shadow, st.shadowBias = At.bias, st.shadowRadius = At.radius, st.shadowMapSize = At.mapSize, st.shadowCameraNear = At.camera.near, st.shadowCameraFar = At.camera.far), e.pointShadowMap[B] = Z, e.pointShadowMatrix[B] = gt.shadow.matrix, e.point[B] = st, B++) : gt.isHemisphereLight && (st = t.get(gt), st.direction.setFromMatrixPosition(gt.matrixWorld), st.direction.transformDirection(p), st.direction.normalize(), st.skyColor.copy(gt.color).multiplyScalar(wt), st.groundColor.copy(gt.groundColor).multiplyScalar(wt), e.hemi[$] = st, $++);
|
|
4809
4809
|
}
|
|
4810
|
-
e.ambient[0] = v, e.ambient[1] = w, e.ambient[2] = C, e.directional.length = P, e.spot.length = H, e.rectArea.length = q, e.point.length = B, e.hemi.length =
|
|
4810
|
+
e.ambient[0] = v, e.ambient[1] = w, e.ambient[2] = C, e.directional.length = P, e.spot.length = H, e.rectArea.length = q, e.point.length = B, e.hemi.length = $, e.hash.stateID = e.id, e.hash.directionalLength = P, e.hash.pointLength = B, e.hash.spotLength = H, e.hash.rectAreaLength = q, e.hash.hemiLength = $, e.hash.shadowsLength = f.length;
|
|
4811
4811
|
},
|
|
4812
4812
|
state: e
|
|
4813
4813
|
};
|
|
@@ -4880,7 +4880,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
4880
4880
|
s(Z[$t], st, zt, ee);
|
|
4881
4881
|
}
|
|
4882
4882
|
}
|
|
4883
|
-
var l = new E(), f = new c(), p = new o(), v = new o(i, i), w = new u(), C = new u(), P = Array(4), B = Array(4), H = {}, q = { 0: 1, 1: 0, 2: 2 },
|
|
4883
|
+
var l = new E(), f = new c(), p = new o(), v = new o(i, i), w = new u(), C = new u(), P = Array(4), B = Array(4), H = {}, q = { 0: 1, 1: 0, 2: 2 }, $ = [
|
|
4884
4884
|
new u(1, 0, 0),
|
|
4885
4885
|
new u(-1, 0, 0),
|
|
4886
4886
|
new u(0, 0, 1),
|
|
@@ -4938,7 +4938,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
4938
4938
|
0,
|
|
4939
4939
|
1
|
|
4940
4940
|
), We.multiply(be.projectionMatrix), We.multiply(be.matrixWorldInverse)), t.setRenderTarget(ae), t.clear(), me = 0; me < $t; me++)
|
|
4941
|
-
Ie && (w.copy(be.position), w.add(
|
|
4941
|
+
Ie && (w.copy(be.position), w.add($[me]), be.up.copy(rt[me]), be.lookAt(w), be.updateMatrixWorld(), ee.viewport(xt[me])), f.multiplyMatrices(be.projectionMatrix, be.matrixWorldInverse), l.setFromMatrix(f), s(st, zt, be, Ie);
|
|
4942
4942
|
}
|
|
4943
4943
|
}
|
|
4944
4944
|
Vt.needsUpdate = !1;
|
|
@@ -5093,7 +5093,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
5093
5093
|
Ut = !1, Hi = ei = Ye = null;
|
|
5094
5094
|
}
|
|
5095
5095
|
};
|
|
5096
|
-
}(),
|
|
5096
|
+
}(), $ = new function() {
|
|
5097
5097
|
var Ut = !1, Ye = null, ei = null, Hi = null, Ce = null, Xe = null, ri = null, Ai = null, bi = null;
|
|
5098
5098
|
return {
|
|
5099
5099
|
setTest: function(ne) {
|
|
@@ -5121,8 +5121,8 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
5121
5121
|
}(), rt = t.getParameter(34921), xt = new Uint8Array(rt), gt = new Uint8Array(rt), At = new Uint8Array(rt), wt = {}, Vt = null, Z = null, st = null, zt = null, ee = null, $t = null, qt = null, Te = null, me = null, Ie = null, be = !1, ae = null, We = null, Qe = null, ci = null, Sn = null, mn = t.getParameter(35661), ji = !1;
|
|
5122
5122
|
rt = 0, rt = t.getParameter(7938), rt.indexOf("WebGL") !== -1 ? (rt = parseFloat(/^WebGL ([0-9])/.exec(rt)[1]), ji = 1 <= rt) : rt.indexOf("OpenGL ES") !== -1 && (rt = parseFloat(/^OpenGL ES ([0-9])/.exec(rt)[1]), ji = 2 <= rt);
|
|
5123
5123
|
var Gi = null, en = {}, En = new y(), Ae = new y(), ti = {};
|
|
5124
|
-
return ti[3553] = s(3553, 3553, 1), ti[34067] = s(34067, 34069, 6), H.setClear(0, 0, 0, 1), q.setClear(1),
|
|
5125
|
-
buffers: { color: H, depth: q, stencil:
|
|
5124
|
+
return ti[3553] = s(3553, 3553, 1), ti[34067] = s(34067, 34069, 6), H.setClear(0, 0, 0, 1), q.setClear(1), $.setClear(0), f(2929), q.setFunc(3), w(!1), C(1), f(2884), v(0), {
|
|
5125
|
+
buffers: { color: H, depth: q, stencil: $ },
|
|
5126
5126
|
initAttributes: function() {
|
|
5127
5127
|
for (var Ut = 0, Ye = xt.length; Ut < Ye; Ut++)
|
|
5128
5128
|
xt[Ut] = 0;
|
|
@@ -5206,7 +5206,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
5206
5206
|
reset: function() {
|
|
5207
5207
|
for (var Ut = 0; Ut < gt.length; Ut++)
|
|
5208
5208
|
gt[Ut] === 1 && (t.disableVertexAttribArray(Ut), gt[Ut] = 0);
|
|
5209
|
-
wt = {}, Gi = Vt = null, en = {}, We = ae = zt = Z = null, H.reset(), q.reset(),
|
|
5209
|
+
wt = {}, Gi = Vt = null, en = {}, We = ae = zt = Z = null, H.reset(), q.reset(), $.reset();
|
|
5210
5210
|
}
|
|
5211
5211
|
};
|
|
5212
5212
|
}
|
|
@@ -5309,7 +5309,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
5309
5309
|
}
|
|
5310
5310
|
f.memory.textures--;
|
|
5311
5311
|
}
|
|
5312
|
-
function
|
|
5312
|
+
function $(Z, st) {
|
|
5313
5313
|
var zt = n.get(Z);
|
|
5314
5314
|
if (Z.isVideoTexture) {
|
|
5315
5315
|
var ee = Z.id, $t = f.render.frame;
|
|
@@ -5405,7 +5405,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
5405
5405
|
t.bindRenderbuffer(36161, Z), st.depthBuffer && !st.stencilBuffer ? (t.renderbufferStorage(36161, 33189, st.width, st.height), t.framebufferRenderbuffer(36160, 36096, 36161, Z)) : st.depthBuffer && st.stencilBuffer ? (t.renderbufferStorage(36161, 34041, st.width, st.height), t.framebufferRenderbuffer(36160, 33306, 36161, Z)) : t.renderbufferStorage(36161, 32854, st.width, st.height), t.bindRenderbuffer(36161, null);
|
|
5406
5406
|
}
|
|
5407
5407
|
var wt = {}, Vt;
|
|
5408
|
-
this.setTexture2D =
|
|
5408
|
+
this.setTexture2D = $, this.setTexture3D = function(Z, st) {
|
|
5409
5409
|
var zt = n.get(Z);
|
|
5410
5410
|
0 < Z.version && zt.__version !== Z.version ? xt(zt, Z, st) : (i.activeTexture(33984 + st), i.bindTexture(32879, zt.__webglTexture));
|
|
5411
5411
|
}, this.setTextureCube = function(Z, st) {
|
|
@@ -5487,7 +5487,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
5487
5487
|
throw Error(
|
|
5488
5488
|
"renderTarget.depthTexture must be an instance of THREE.DepthTexture"
|
|
5489
5489
|
);
|
|
5490
|
-
if (n.get(Z.depthTexture).__webglTexture && Z.depthTexture.image.width === Z.width && Z.depthTexture.image.height === Z.height || (Z.depthTexture.image.width = Z.width, Z.depthTexture.image.height = Z.height, Z.depthTexture.needsUpdate = !0),
|
|
5490
|
+
if (n.get(Z.depthTexture).__webglTexture && Z.depthTexture.image.width === Z.width && Z.depthTexture.image.height === Z.height || (Z.depthTexture.image.width = Z.width, Z.depthTexture.image.height = Z.height, Z.depthTexture.needsUpdate = !0), $(Z.depthTexture, 0), st = n.get(Z.depthTexture).__webglTexture, Z.depthTexture.format === 1026)
|
|
5491
5491
|
t.framebufferTexture2D(36160, 36096, 3553, st, 0);
|
|
5492
5492
|
else if (Z.depthTexture.format === 1027)
|
|
5493
5493
|
t.framebufferTexture2D(36160, 33306, 3553, st, 0);
|
|
@@ -5688,11 +5688,11 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
5688
5688
|
}
|
|
5689
5689
|
var n = this, s = null, l = null, f = null, p = [], v = new c(), w = new c(), C = 1, P = "stage";
|
|
5690
5690
|
typeof window < "u" && "VRFrameData" in window && (l = new window.VRFrameData(), window.addEventListener("vrdisplaypresentchange", i, !1));
|
|
5691
|
-
var B = new c(), H = new d(), q = new u(),
|
|
5692
|
-
|
|
5691
|
+
var B = new c(), H = new d(), q = new u(), $ = new ye();
|
|
5692
|
+
$.bounds = new y(0, 0, 0.5, 1), $.layers.enable(1);
|
|
5693
5693
|
var rt = new ye();
|
|
5694
5694
|
rt.bounds = new y(0.5, 0, 0.5, 1), rt.layers.enable(2);
|
|
5695
|
-
var xt = new Fe([
|
|
5695
|
+
var xt = new Fe([$, rt]);
|
|
5696
5696
|
xt.layers.enable(1), xt.layers.enable(2);
|
|
5697
5697
|
var gt, At, wt = [];
|
|
5698
5698
|
this.enabled = !1, this.getController = function(Z) {
|
|
@@ -5718,7 +5718,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
5718
5718
|
}
|
|
5719
5719
|
if (st = l.pose, zt = f !== null ? f : Z, zt.matrix.copy(v), zt.matrix.decompose(zt.position, zt.quaternion, zt.scale), st.orientation !== null && (H.fromArray(st.orientation), zt.quaternion.multiply(H)), st.position !== null && (H.setFromRotationMatrix(v), q.fromArray(st.position), q.applyQuaternion(H), zt.position.add(q)), zt.updateMatrixWorld(), s.isPresenting === !1)
|
|
5720
5720
|
return Z;
|
|
5721
|
-
|
|
5721
|
+
$.near = Z.near, rt.near = Z.near, $.far = Z.far, rt.far = Z.far, $.matrixWorldInverse.fromArray(l.leftViewMatrix), rt.matrixWorldInverse.fromArray(l.rightViewMatrix), w.getInverse(v), P === "stage" && ($.matrixWorldInverse.multiply(w), rt.matrixWorldInverse.multiply(w)), Z = zt.parent, Z !== null && (B.getInverse(Z.matrixWorld), $.matrixWorldInverse.multiply(B), rt.matrixWorldInverse.multiply(B)), $.matrixWorld.getInverse($.matrixWorldInverse), rt.matrixWorld.getInverse(rt.matrixWorldInverse), $.projectionMatrix.fromArray(l.leftProjectionMatrix), rt.projectionMatrix.fromArray(l.rightProjectionMatrix), pe(xt, $, rt), Z = s.getLayers(), Z.length && (Z = Z[0], Z.leftBounds !== null && Z.leftBounds.length === 4 && $.bounds.fromArray(Z.leftBounds), Z.rightBounds !== null && Z.rightBounds.length === 4 && rt.bounds.fromArray(Z.rightBounds));
|
|
5722
5722
|
t:
|
|
5723
5723
|
for (Z = 0; Z < p.length; Z++) {
|
|
5724
5724
|
st = p[Z];
|
|
@@ -5772,9 +5772,9 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
5772
5772
|
}
|
|
5773
5773
|
var l = t.context, f = null, p = null, v = 1, w = null, C = "stage", P = null, B = [], H = [], q = new ye();
|
|
5774
5774
|
q.layers.enable(1), q.viewport = new y();
|
|
5775
|
-
var
|
|
5776
|
-
|
|
5777
|
-
var rt = new Fe([q,
|
|
5775
|
+
var $ = new ye();
|
|
5776
|
+
$.layers.enable(2), $.viewport = new y();
|
|
5777
|
+
var rt = new Fe([q, $]);
|
|
5778
5778
|
rt.layers.enable(1), rt.layers.enable(2), this.enabled = !1, this.getController = function(At) {
|
|
5779
5779
|
var wt = B[At];
|
|
5780
5780
|
return wt === void 0 && (wt = new ui(), wt.matrixAutoUpdate = !1, wt.visible = !1, B[At] = wt), wt;
|
|
@@ -5802,7 +5802,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
5802
5802
|
s(Vt[Z], wt);
|
|
5803
5803
|
for (At.matrixWorld.copy(rt.matrixWorld), At = At.children, Z = 0, wt = At.length; Z < wt; Z++)
|
|
5804
5804
|
At[Z].updateMatrixWorld(!0);
|
|
5805
|
-
return pe(rt, q,
|
|
5805
|
+
return pe(rt, q, $), rt;
|
|
5806
5806
|
}
|
|
5807
5807
|
return At;
|
|
5808
5808
|
}, this.isPresenting = e;
|
|
@@ -5979,7 +5979,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
5979
5979
|
Se.setValue(ne, "boneTexture", ft.boneTexture), Se.setValue(ne, "boneTextureSize", ft.boneTextureSize);
|
|
5980
5980
|
} else
|
|
5981
5981
|
Se.setOptional(ne, ft, "boneMatrices");
|
|
5982
|
-
return Pi && (Se.setValue(ne, "toneMappingExposure", qt.toneMappingExposure), Se.setValue(ne, "toneMappingWhitePoint", qt.toneMappingWhitePoint), mt.lights && (Pi = Zi, ve.ambientLightColor.needsUpdate = Pi, ve.directionalLights.needsUpdate = Pi, ve.pointLights.needsUpdate = Pi, ve.spotLights.needsUpdate = Pi, ve.rectAreaLights.needsUpdate = Pi, ve.hemisphereLights.needsUpdate = Pi), Tt && mt.fog && (ve.fogColor.value = Tt.color, Tt.isFog ? (ve.fogNear.value = Tt.near, ve.fogFar.value = Tt.far) : Tt.isFogExp2 && (ve.fogDensity.value = Tt.density)), mt.isMeshBasicMaterial ? H(ve, mt) : mt.isMeshLambertMaterial ? (H(ve, mt), mt.emissiveMap && (ve.emissiveMap.value = mt.emissiveMap)) : mt.isMeshPhongMaterial ? (H(ve, mt), mt.isMeshToonMaterial ? (q(ve, mt), mt.gradientMap && (ve.gradientMap.value = mt.gradientMap)) : q(ve, mt)) : mt.isMeshStandardMaterial ? (H(ve, mt), mt.isMeshPhysicalMaterial ? (
|
|
5982
|
+
return Pi && (Se.setValue(ne, "toneMappingExposure", qt.toneMappingExposure), Se.setValue(ne, "toneMappingWhitePoint", qt.toneMappingWhitePoint), mt.lights && (Pi = Zi, ve.ambientLightColor.needsUpdate = Pi, ve.directionalLights.needsUpdate = Pi, ve.pointLights.needsUpdate = Pi, ve.spotLights.needsUpdate = Pi, ve.rectAreaLights.needsUpdate = Pi, ve.hemisphereLights.needsUpdate = Pi), Tt && mt.fog && (ve.fogColor.value = Tt.color, Tt.isFog ? (ve.fogNear.value = Tt.near, ve.fogFar.value = Tt.far) : Tt.isFogExp2 && (ve.fogDensity.value = Tt.density)), mt.isMeshBasicMaterial ? H(ve, mt) : mt.isMeshLambertMaterial ? (H(ve, mt), mt.emissiveMap && (ve.emissiveMap.value = mt.emissiveMap)) : mt.isMeshPhongMaterial ? (H(ve, mt), mt.isMeshToonMaterial ? (q(ve, mt), mt.gradientMap && (ve.gradientMap.value = mt.gradientMap)) : q(ve, mt)) : mt.isMeshStandardMaterial ? (H(ve, mt), mt.isMeshPhysicalMaterial ? ($(ve, mt), ve.reflectivity.value = mt.reflectivity, ve.clearCoat.value = mt.clearCoat, ve.clearCoatRoughness.value = mt.clearCoatRoughness) : $(ve, mt)) : mt.isMeshMatcapMaterial ? (H(ve, mt), mt.matcap && (ve.matcap.value = mt.matcap), mt.bumpMap && (ve.bumpMap.value = mt.bumpMap, ve.bumpScale.value = mt.bumpScale, mt.side === 1 && (ve.bumpScale.value *= -1)), mt.normalMap && (ve.normalMap.value = mt.normalMap, ve.normalScale.value.copy(mt.normalScale), mt.side === 1 && ve.normalScale.value.negate()), mt.displacementMap && (ve.displacementMap.value = mt.displacementMap, ve.displacementScale.value = mt.displacementScale, ve.displacementBias.value = mt.displacementBias)) : mt.isMeshDepthMaterial ? (H(ve, mt), mt.displacementMap && (ve.displacementMap.value = mt.displacementMap, ve.displacementScale.value = mt.displacementScale, ve.displacementBias.value = mt.displacementBias)) : mt.isMeshDistanceMaterial ? (H(ve, mt), mt.displacementMap && (ve.displacementMap.value = mt.displacementMap, ve.displacementScale.value = mt.displacementScale, ve.displacementBias.value = mt.displacementBias), ve.referencePosition.value.copy(mt.referencePosition), ve.nearDistance.value = mt.nearDistance, ve.farDistance.value = mt.farDistance) : mt.isMeshNormalMaterial ? (H(ve, mt), mt.bumpMap && (ve.bumpMap.value = mt.bumpMap, ve.bumpScale.value = mt.bumpScale, mt.side === 1 && (ve.bumpScale.value *= -1)), mt.normalMap && (ve.normalMap.value = mt.normalMap, ve.normalScale.value.copy(mt.normalScale), mt.side === 1 && ve.normalScale.value.negate()), mt.displacementMap && (ve.displacementMap.value = mt.displacementMap, ve.displacementScale.value = mt.displacementScale, ve.displacementBias.value = mt.displacementBias)) : mt.isLineBasicMaterial ? (ve.diffuse.value = mt.color, ve.opacity.value = mt.opacity, mt.isLineDashedMaterial && (ve.dashSize.value = mt.dashSize, ve.totalSize.value = mt.dashSize + mt.gapSize, ve.scale.value = mt.scale)) : mt.isPointsMaterial ? (ve.diffuse.value = mt.color, ve.opacity.value = mt.opacity, ve.size.value = mt.size * ti, ve.scale.value = 0.5 * Ae, ve.map.value = mt.map, mt.map !== null && (mt.map.matrixAutoUpdate === !0 && mt.map.updateMatrix(), ve.uvTransform.value.copy(mt.map.matrix))) : mt.isSpriteMaterial ? (ve.diffuse.value = mt.color, ve.opacity.value = mt.opacity, ve.rotation.value = mt.rotation, ve.map.value = mt.map, mt.map !== null && (mt.map.matrixAutoUpdate === !0 && mt.map.updateMatrix(), ve.uvTransform.value.copy(mt.map.matrix))) : mt.isShadowMaterial && (ve.color.value = mt.color, ve.opacity.value = mt.opacity), ve.ltc_1 !== void 0 && (ve.ltc_1.value = qe.LTC_1), ve.ltc_2 !== void 0 && (ve.ltc_2.value = qe.LTC_2), rs.upload(ne, De.uniformsList, ve, qt)), mt.isShaderMaterial && mt.uniformsNeedUpdate === !0 && (rs.upload(ne, De.uniformsList, ve, qt), mt.uniformsNeedUpdate = !1), mt.isSpriteMaterial && Se.setValue(ne, "center", Me.center), Se.setValue(ne, "modelViewMatrix", Me.modelViewMatrix), Se.setValue(ne, "normalMatrix", Me.normalMatrix), Se.setValue(ne, "modelMatrix", Me.matrixWorld), Ve;
|
|
5983
5983
|
}
|
|
5984
5984
|
function H(ft, Tt) {
|
|
5985
5985
|
if (ft.opacity.value = Tt.opacity, Tt.color && (ft.diffuse.value = Tt.color), Tt.emissive && ft.emissive.value.copy(Tt.emissive).multiplyScalar(Tt.emissiveIntensity), Tt.map && (ft.map.value = Tt.map), Tt.alphaMap && (ft.alphaMap.value = Tt.alphaMap), Tt.specularMap && (ft.specularMap.value = Tt.specularMap), Tt.envMap && (ft.envMap.value = Tt.envMap, ft.flipEnvMap.value = Tt.envMap && Tt.envMap.isCubeTexture ? -1 : 1, ft.reflectivity.value = Tt.reflectivity, ft.refractionRatio.value = Tt.refractionRatio, ft.maxMipLevel.value = bn.get(Tt.envMap).__maxMipLevel), Tt.lightMap && (ft.lightMap.value = Tt.lightMap, ft.lightMapIntensity.value = Tt.lightMapIntensity), Tt.aoMap && (ft.aoMap.value = Tt.aoMap, ft.aoMapIntensity.value = Tt.aoMapIntensity), Tt.map)
|
|
@@ -5991,7 +5991,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
5991
5991
|
function q(ft, Tt) {
|
|
5992
5992
|
ft.specular.value = Tt.specular, ft.shininess.value = Math.max(Tt.shininess, 1e-4), Tt.emissiveMap && (ft.emissiveMap.value = Tt.emissiveMap), Tt.bumpMap && (ft.bumpMap.value = Tt.bumpMap, ft.bumpScale.value = Tt.bumpScale, Tt.side === 1 && (ft.bumpScale.value *= -1)), Tt.normalMap && (ft.normalMap.value = Tt.normalMap, ft.normalScale.value.copy(Tt.normalScale), Tt.side === 1 && ft.normalScale.value.negate()), Tt.displacementMap && (ft.displacementMap.value = Tt.displacementMap, ft.displacementScale.value = Tt.displacementScale, ft.displacementBias.value = Tt.displacementBias);
|
|
5993
5993
|
}
|
|
5994
|
-
function
|
|
5994
|
+
function $(ft, Tt) {
|
|
5995
5995
|
ft.roughness.value = Tt.roughness, ft.metalness.value = Tt.metalness, Tt.roughnessMap && (ft.roughnessMap.value = Tt.roughnessMap), Tt.metalnessMap && (ft.metalnessMap.value = Tt.metalnessMap), Tt.emissiveMap && (ft.emissiveMap.value = Tt.emissiveMap), Tt.bumpMap && (ft.bumpMap.value = Tt.bumpMap, ft.bumpScale.value = Tt.bumpScale, Tt.side === 1 && (ft.bumpScale.value *= -1)), Tt.normalMap && (ft.normalMap.value = Tt.normalMap, ft.normalScale.value.copy(Tt.normalScale), Tt.side === 1 && ft.normalScale.value.negate()), Tt.displacementMap && (ft.displacementMap.value = Tt.displacementMap, ft.displacementScale.value = Tt.displacementScale, ft.displacementBias.value = Tt.displacementBias), Tt.envMap && (ft.envMapIntensity.value = Tt.envMapIntensity);
|
|
5996
5996
|
}
|
|
5997
5997
|
console.log("THREE.WebGLRenderer", "98"), t = t || {};
|
|
@@ -6408,10 +6408,10 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
6408
6408
|
);
|
|
6409
6409
|
var q = e + 1;
|
|
6410
6410
|
for (B = 0; B <= i; B++) {
|
|
6411
|
-
var
|
|
6411
|
+
var $ = B / i;
|
|
6412
6412
|
for (H = 0; H <= e; H++) {
|
|
6413
6413
|
var rt = H / e;
|
|
6414
|
-
t(rt,
|
|
6414
|
+
t(rt, $, v), s.push(v.x, v.y, v.z), 0 <= rt - 1e-5 ? (t(rt - 1e-5, $, w), C.subVectors(v, w)) : (t(rt + 1e-5, $, w), C.subVectors(w, v)), 0 <= $ - 1e-5 ? (t(rt, $ - 1e-5, w), P.subVectors(v, w)) : (t(rt, $ + 1e-5, w), P.subVectors(w, v)), p.crossVectors(C, P).normalize(), l.push(p.x, p.y, p.z), f.push(rt, $);
|
|
6415
6415
|
}
|
|
6416
6416
|
}
|
|
6417
6417
|
for (B = 0; B < i; B++)
|
|
@@ -6437,16 +6437,16 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
6437
6437
|
(function(w) {
|
|
6438
6438
|
for (var C = new u(), P = new u(), B = new u(), H = 0; H < e.length; H += 3) {
|
|
6439
6439
|
l(e[H + 0], C), l(e[H + 1], P), l(e[H + 2], B);
|
|
6440
|
-
var q,
|
|
6441
|
-
for (
|
|
6442
|
-
wt[
|
|
6443
|
-
var Vt = rt.clone().lerp(gt,
|
|
6440
|
+
var q, $, rt = C, xt = P, gt = B, At = Math.pow(2, w), wt = [];
|
|
6441
|
+
for ($ = 0; $ <= At; $++) {
|
|
6442
|
+
wt[$] = [];
|
|
6443
|
+
var Vt = rt.clone().lerp(gt, $ / At), Z = xt.clone().lerp(gt, $ / At), st = At - $;
|
|
6444
6444
|
for (q = 0; q <= st; q++)
|
|
6445
|
-
wt[
|
|
6445
|
+
wt[$][q] = q === 0 && $ === At ? Vt : Vt.clone().lerp(Z, q / st);
|
|
6446
6446
|
}
|
|
6447
|
-
for (
|
|
6448
|
-
for (q = 0; q < 2 * (At -
|
|
6449
|
-
rt = Math.floor(q / 2), q % 2 === 0 ? (s(wt[
|
|
6447
|
+
for ($ = 0; $ < At; $++)
|
|
6448
|
+
for (q = 0; q < 2 * (At - $) - 1; q++)
|
|
6449
|
+
rt = Math.floor(q / 2), q % 2 === 0 ? (s(wt[$][rt + 1]), s(wt[$ + 1][rt]), s(wt[$][rt])) : (s(wt[$][rt + 1]), s(wt[$ + 1][rt + 1]), s(wt[$ + 1][rt]));
|
|
6450
6450
|
}
|
|
6451
6451
|
})(n), function(w) {
|
|
6452
6452
|
for (var C = new u(), P = 0; P < p.length; P += 3)
|
|
@@ -6458,10 +6458,10 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
6458
6458
|
1 - (Math.atan2(-w.y, Math.sqrt(w.x * w.x + w.z * w.z)) / Math.PI + 0.5)
|
|
6459
6459
|
);
|
|
6460
6460
|
w = new u(), C = new u();
|
|
6461
|
-
for (var P = new u(), B = new u(), H = new o(), q = new o(),
|
|
6462
|
-
w.set(p[rt + 0], p[rt + 1], p[rt + 2]), C.set(p[rt + 3], p[rt + 4], p[rt + 5]), P.set(p[rt + 6], p[rt + 7], p[rt + 8]), H.set(v[xt + 0], v[xt + 1]), q.set(v[xt + 2], v[xt + 3]),
|
|
6461
|
+
for (var P = new u(), B = new u(), H = new o(), q = new o(), $ = new o(), rt = 0, xt = 0; rt < p.length; rt += 9, xt += 6) {
|
|
6462
|
+
w.set(p[rt + 0], p[rt + 1], p[rt + 2]), C.set(p[rt + 3], p[rt + 4], p[rt + 5]), P.set(p[rt + 6], p[rt + 7], p[rt + 8]), H.set(v[xt + 0], v[xt + 1]), q.set(v[xt + 2], v[xt + 3]), $.set(v[xt + 4], v[xt + 5]), B.copy(w).add(C).add(P).divideScalar(3);
|
|
6463
6463
|
var gt = Math.atan2(B.z, -B.x);
|
|
6464
|
-
f(H, xt + 0, w, gt), f(q, xt + 2, C, gt), f(
|
|
6464
|
+
f(H, xt + 0, w, gt), f(q, xt + 2, C, gt), f($, xt + 4, P, gt);
|
|
6465
6465
|
}
|
|
6466
6466
|
for (w = 0; w < v.length; w += 6)
|
|
6467
6467
|
C = v[w + 0], P = v[w + 2], B = v[w + 4], H = Math.min(C, P, B), 0.9 < Math.max(C, P, B) && 0.1 > H && (0.2 > C && (v[w + 0] += 1), 0.2 > P && (v[w + 2] += 1), 0.2 > B && (v[w + 4] += 1));
|
|
@@ -6812,19 +6812,19 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
6812
6812
|
}, e = e || 64, i = i || 1, n = n || 8, s = s || !1;
|
|
6813
6813
|
var f = t.computeFrenetFrames(e, s);
|
|
6814
6814
|
this.tangents = f.tangents, this.normals = f.normals, this.binormals = f.binormals;
|
|
6815
|
-
var p = new u(), v = new u(), w = new o(), C = new u(), P, B, H = [], q = [],
|
|
6815
|
+
var p = new u(), v = new u(), w = new o(), C = new u(), P, B, H = [], q = [], $ = [], rt = [];
|
|
6816
6816
|
for (P = 0; P < e; P++)
|
|
6817
6817
|
l(P);
|
|
6818
6818
|
for (l(s === !1 ? e : 0), P = 0; P <= e; P++)
|
|
6819
6819
|
for (B = 0; B <= n; B++)
|
|
6820
|
-
w.x = P / e, w.y = B / n,
|
|
6820
|
+
w.x = P / e, w.y = B / n, $.push(w.x, w.y);
|
|
6821
6821
|
(function() {
|
|
6822
6822
|
for (B = 1; B <= e; B++)
|
|
6823
6823
|
for (P = 1; P <= n; P++) {
|
|
6824
6824
|
var xt = (n + 1) * B + (P - 1), gt = (n + 1) * B + P, At = (n + 1) * (B - 1) + P;
|
|
6825
6825
|
rt.push((n + 1) * (B - 1) + (P - 1), xt, At), rt.push(xt, gt, At);
|
|
6826
6826
|
}
|
|
6827
|
-
})(), this.setIndex(rt), this.addAttribute("position", new Et(H, 3)), this.addAttribute("normal", new Et(q, 3)), this.addAttribute("uv", new Et(
|
|
6827
|
+
})(), this.setIndex(rt), this.addAttribute("position", new Et(H, 3)), this.addAttribute("normal", new Et(q, 3)), this.addAttribute("uv", new Et($, 2));
|
|
6828
6828
|
}
|
|
6829
6829
|
function Vr(t, e, i, n, s, l, f) {
|
|
6830
6830
|
j.call(this), this.type = "TorusKnotGeometry", this.parameters = {
|
|
@@ -6851,10 +6851,10 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
6851
6851
|
p: s,
|
|
6852
6852
|
q: l
|
|
6853
6853
|
}, t = t || 1, e = e || 0.4, i = Math.floor(i) || 64, n = Math.floor(n) || 8, s = s || 2, l = l || 3;
|
|
6854
|
-
var p = [], v = [], w = [], C = [], P, B = new u(), H = new u(), q = new u(),
|
|
6854
|
+
var p = [], v = [], w = [], C = [], P, B = new u(), H = new u(), q = new u(), $ = new u(), rt = new u(), xt = new u(), gt = new u();
|
|
6855
6855
|
for (P = 0; P <= i; ++P) {
|
|
6856
6856
|
var At = P / i * s * Math.PI * 2;
|
|
6857
|
-
for (f(At, s, l, t, q), f(At + 0.01, s, l, t,
|
|
6857
|
+
for (f(At, s, l, t, q), f(At + 0.01, s, l, t, $), xt.subVectors($, q), gt.addVectors($, q), rt.crossVectors(xt, gt), gt.crossVectors(rt, xt), rt.normalize(), gt.normalize(), At = 0; At <= n; ++At) {
|
|
6858
6858
|
var wt = At / n * Math.PI * 2, Vt = -e * Math.cos(wt);
|
|
6859
6859
|
wt = e * Math.sin(wt), B.x = q.x + (Vt * gt.x + wt * rt.x), B.y = q.y + (Vt * gt.y + wt * rt.y), B.z = q.z + (Vt * gt.z + wt * rt.z), v.push(B.x, B.y, B.z), H.subVectors(B, q).normalize(), w.push(H.x, H.y, H.z), C.push(P / i), C.push(At / n);
|
|
6860
6860
|
}
|
|
@@ -6884,8 +6884,8 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
6884
6884
|
var l = [], f = [], p = [], v = [], w = new u(), C = new u(), P = new u(), B, H;
|
|
6885
6885
|
for (B = 0; B <= i; B++)
|
|
6886
6886
|
for (H = 0; H <= n; H++) {
|
|
6887
|
-
var q = H / n * s,
|
|
6888
|
-
C.x = (t + e * Math.cos(
|
|
6887
|
+
var q = H / n * s, $ = B / i * Math.PI * 2;
|
|
6888
|
+
C.x = (t + e * Math.cos($)) * Math.cos(q), C.y = (t + e * Math.cos($)) * Math.sin(q), C.z = e * Math.sin($), f.push(C.x, C.y, C.z), w.x = t * Math.cos(q), w.y = t * Math.sin(q), P.subVectors(C, w).normalize(), p.push(P.x, P.y, P.z), v.push(H / n), v.push(B / i);
|
|
6889
6889
|
}
|
|
6890
6890
|
for (B = 1; B <= i; B++)
|
|
6891
6891
|
for (H = 1; H <= n; H++)
|
|
@@ -6933,18 +6933,18 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
6933
6933
|
var q = p = null;
|
|
6934
6934
|
for (C = 0; v; ) {
|
|
6935
6935
|
C++;
|
|
6936
|
-
var
|
|
6937
|
-
for (w = P = 0; w < H && (P++,
|
|
6936
|
+
var $ = v;
|
|
6937
|
+
for (w = P = 0; w < H && (P++, $ = $.nextZ, $); w++)
|
|
6938
6938
|
;
|
|
6939
|
-
for (B = H; 0 < P || 0 < B &&
|
|
6940
|
-
P !== 0 && (B === 0 ||
|
|
6941
|
-
v =
|
|
6939
|
+
for (B = H; 0 < P || 0 < B && $; )
|
|
6940
|
+
P !== 0 && (B === 0 || !$ || v.z <= $.z) ? (w = v, v = v.nextZ, P--) : (w = $, $ = $.nextZ, B--), q ? q.nextZ = w : p = w, w.prevZ = q, q = w;
|
|
6941
|
+
v = $;
|
|
6942
6942
|
}
|
|
6943
6943
|
q.nextZ = null, H *= 2;
|
|
6944
6944
|
} while (1 < C);
|
|
6945
6945
|
}
|
|
6946
6946
|
for (p = t; t.prev !== t.next; ) {
|
|
6947
|
-
if (v = t.prev,
|
|
6947
|
+
if (v = t.prev, $ = t.next, l)
|
|
6948
6948
|
t: {
|
|
6949
6949
|
q = t, B = n;
|
|
6950
6950
|
var rt = s, xt = l;
|
|
@@ -6990,14 +6990,14 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
6990
6990
|
q = !0;
|
|
6991
6991
|
}
|
|
6992
6992
|
if (q)
|
|
6993
|
-
e.push(v.i / i), e.push(t.i / i), e.push(
|
|
6994
|
-
else if (t =
|
|
6993
|
+
e.push(v.i / i), e.push(t.i / i), e.push($.i / i), Xi(t), p = t = $.next;
|
|
6994
|
+
else if (t = $, t === p) {
|
|
6995
6995
|
if (!f)
|
|
6996
6996
|
sa(ra(t), e, i, n, s, l, 1);
|
|
6997
6997
|
else if (f === 1) {
|
|
6998
6998
|
f = e, p = i, v = t;
|
|
6999
6999
|
do
|
|
7000
|
-
|
|
7000
|
+
$ = v.prev, q = v.next.next, !go($, q) && gh($, v, v.next, q) && Sr($, q) && Sr(q, $) && (f.push($.i / p), f.push(v.i / p), f.push(q.i / p), Xi(v), Xi(v.next), v = t = q), v = v.next;
|
|
7001
7001
|
while (v !== t);
|
|
7002
7002
|
t = v, sa(t, e, i, n, s, l, 2);
|
|
7003
7003
|
} else if (f === 2)
|
|
@@ -7006,11 +7006,11 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
7006
7006
|
do {
|
|
7007
7007
|
for (p = f.next.next; p !== f.prev; ) {
|
|
7008
7008
|
if (v = f.i !== p.i) {
|
|
7009
|
-
if (v = f,
|
|
7009
|
+
if (v = f, $ = p, q = v.next.i !== $.i && v.prev.i !== $.i) {
|
|
7010
7010
|
e: {
|
|
7011
7011
|
q = v;
|
|
7012
7012
|
do {
|
|
7013
|
-
if (q.i !== v.i && q.next.i !== v.i && q.i !==
|
|
7013
|
+
if (q.i !== v.i && q.next.i !== v.i && q.i !== $.i && q.next.i !== $.i && gh(q, q.next, v, $)) {
|
|
7014
7014
|
q = !0;
|
|
7015
7015
|
break e;
|
|
7016
7016
|
}
|
|
@@ -7020,10 +7020,10 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
7020
7020
|
}
|
|
7021
7021
|
q = !q;
|
|
7022
7022
|
}
|
|
7023
|
-
if (q = q && Sr(v,
|
|
7024
|
-
q = v, C = !1, P = (v.x +
|
|
7023
|
+
if (q = q && Sr(v, $) && Sr($, v)) {
|
|
7024
|
+
q = v, C = !1, P = (v.x + $.x) / 2, $ = (v.y + $.y) / 2;
|
|
7025
7025
|
do
|
|
7026
|
-
q.y >
|
|
7026
|
+
q.y > $ != q.next.y > $ && q.next.y !== q.y && P < (q.next.x - q.x) * ($ - q.y) / (q.next.y - q.y) + q.x && (C = !C), q = q.next;
|
|
7027
7027
|
while (q !== v);
|
|
7028
7028
|
q = C;
|
|
7029
7029
|
}
|
|
@@ -7150,7 +7150,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
7150
7150
|
var ne, ii = gt + 2 * st;
|
|
7151
7151
|
for (ne = 0; ne < ii; ne++) {
|
|
7152
7152
|
var Ze = Gi * ne, ai = Gi * (ne + 1), gn = ri + bi + Ze, bn = ri + bi + ai;
|
|
7153
|
-
ai = ri + Ai + ai, q(ri + Ai + Ze), q(gn), q(ai), q(gn), q(bn), q(ai), Ze = s.length / 3, Ze = ee.generateSideWallUV(n, s, Ze - 6, Ze - 3, Ze - 2, Ze - 1),
|
|
7153
|
+
ai = ri + Ai + ai, q(ri + Ai + Ze), q(gn), q(ai), q(gn), q(bn), q(ai), Ze = s.length / 3, Ze = ee.generateSideWallUV(n, s, Ze - 6, Ze - 3, Ze - 2, Ze - 1), $(Ze[0]), $(Ze[1]), $(Ze[3]), $(Ze[1]), $(Ze[2]), $(Ze[3]);
|
|
7154
7154
|
}
|
|
7155
7155
|
}
|
|
7156
7156
|
}
|
|
@@ -7158,12 +7158,12 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
7158
7158
|
rt.push(Xe), rt.push(ri), rt.push(Ai);
|
|
7159
7159
|
}
|
|
7160
7160
|
function H(Xe, ri, Ai) {
|
|
7161
|
-
q(Xe), q(ri), q(Ai), Xe = s.length / 3, Xe = ee.generateTopUV(n, s, Xe - 3, Xe - 2, Xe - 1),
|
|
7161
|
+
q(Xe), q(ri), q(Ai), Xe = s.length / 3, Xe = ee.generateTopUV(n, s, Xe - 3, Xe - 2, Xe - 1), $(Xe[0]), $(Xe[1]), $(Xe[2]);
|
|
7162
7162
|
}
|
|
7163
7163
|
function q(Xe) {
|
|
7164
7164
|
s.push(rt[3 * Xe]), s.push(rt[3 * Xe + 1]), s.push(rt[3 * Xe + 2]);
|
|
7165
7165
|
}
|
|
7166
|
-
function
|
|
7166
|
+
function $(Xe) {
|
|
7167
7167
|
l.push(Xe.x), l.push(Xe.y);
|
|
7168
7168
|
}
|
|
7169
7169
|
var rt = [], xt = e.curveSegments !== void 0 ? e.curveSegments : 12, gt = e.steps !== void 0 ? e.steps : 1, At = e.depth !== void 0 ? e.depth : 100, wt = e.bevelEnabled !== void 0 ? e.bevelEnabled : !0, Vt = e.bevelThickness !== void 0 ? e.bevelThickness : 6, Z = e.bevelSize !== void 0 ? e.bevelSize : Vt - 2, st = e.bevelSegments !== void 0 ? e.bevelSegments : 3, zt = e.extrudePath, ee = e.UVGenerator !== void 0 ? e.UVGenerator : ll;
|
|
@@ -7296,19 +7296,19 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
7296
7296
|
thetaStart: l,
|
|
7297
7297
|
thetaLength: f
|
|
7298
7298
|
}, t = t || 1, e = Math.max(3, Math.floor(e) || 8), i = Math.max(2, Math.floor(i) || 6), n = n !== void 0 ? n : 0, s = s !== void 0 ? s : 2 * Math.PI, l = l !== void 0 ? l : 0, f = f !== void 0 ? f : Math.PI;
|
|
7299
|
-
var p = l + f, v, w, C = 0, P = [], B = new u(), H = new u(), q = [],
|
|
7299
|
+
var p = l + f, v, w, C = 0, P = [], B = new u(), H = new u(), q = [], $ = [], rt = [], xt = [];
|
|
7300
7300
|
for (w = 0; w <= i; w++) {
|
|
7301
7301
|
var gt = [], At = w / i;
|
|
7302
7302
|
for (v = 0; v <= e; v++) {
|
|
7303
7303
|
var wt = v / e;
|
|
7304
|
-
B.x = -t * Math.cos(n + wt * s) * Math.sin(l + At * f), B.y = t * Math.cos(l + At * f), B.z = t * Math.sin(n + wt * s) * Math.sin(l + At * f),
|
|
7304
|
+
B.x = -t * Math.cos(n + wt * s) * Math.sin(l + At * f), B.y = t * Math.cos(l + At * f), B.z = t * Math.sin(n + wt * s) * Math.sin(l + At * f), $.push(B.x, B.y, B.z), H.set(B.x, B.y, B.z).normalize(), rt.push(H.x, H.y, H.z), xt.push(wt, 1 - At), gt.push(C++);
|
|
7305
7305
|
}
|
|
7306
7306
|
P.push(gt);
|
|
7307
7307
|
}
|
|
7308
7308
|
for (w = 0; w < i; w++)
|
|
7309
7309
|
for (v = 0; v < e; v++)
|
|
7310
7310
|
t = P[w][v + 1], n = P[w][v], s = P[w + 1][v], f = P[w + 1][v + 1], (w !== 0 || 0 < l) && q.push(t, n, f), (w !== i - 1 || p < Math.PI) && q.push(n, s, f);
|
|
7311
|
-
this.setIndex(q), this.addAttribute("position", new Et(
|
|
7311
|
+
this.setIndex(q), this.addAttribute("position", new Et($, 3)), this.addAttribute("normal", new Et(rt, 3)), this.addAttribute("uv", new Et(xt, 2));
|
|
7312
7312
|
}
|
|
7313
7313
|
function ja(t, e, i, n, s, l) {
|
|
7314
7314
|
j.call(this), this.type = "RingGeometry", this.parameters = {
|
|
@@ -7329,15 +7329,15 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
7329
7329
|
thetaStart: s,
|
|
7330
7330
|
thetaLength: l
|
|
7331
7331
|
}, t = t || 0.5, e = e || 1, s = s !== void 0 ? s : 0, l = l !== void 0 ? l : 2 * Math.PI, i = i !== void 0 ? Math.max(3, i) : 8, n = n !== void 0 ? Math.max(1, n) : 1;
|
|
7332
|
-
var f = [], p = [], v = [], w = [], C = t, P = (e - t) / n, B = new u(), H = new o(), q,
|
|
7332
|
+
var f = [], p = [], v = [], w = [], C = t, P = (e - t) / n, B = new u(), H = new o(), q, $;
|
|
7333
7333
|
for (q = 0; q <= n; q++) {
|
|
7334
|
-
for (
|
|
7335
|
-
t = s +
|
|
7334
|
+
for ($ = 0; $ <= i; $++)
|
|
7335
|
+
t = s + $ / i * l, B.x = C * Math.cos(t), B.y = C * Math.sin(t), p.push(B.x, B.y, B.z), v.push(0, 0, 1), H.x = (B.x / e + 1) / 2, H.y = (B.y / e + 1) / 2, w.push(H.x, H.y);
|
|
7336
7336
|
C += P;
|
|
7337
7337
|
}
|
|
7338
7338
|
for (q = 0; q < n; q++)
|
|
7339
|
-
for (e = q * (i + 1),
|
|
7340
|
-
t =
|
|
7339
|
+
for (e = q * (i + 1), $ = 0; $ < i; $++)
|
|
7340
|
+
t = $ + e, s = t + i + 1, l = t + i + 2, C = t + 1, f.push(t, s, C), f.push(s, l, C);
|
|
7341
7341
|
this.setIndex(f), this.addAttribute("position", new Et(p, 3)), this.addAttribute("normal", new Et(v, 3)), this.addAttribute("uv", new Et(w, 2));
|
|
7342
7342
|
}
|
|
7343
7343
|
function oa(t, e, i, n) {
|
|
@@ -7368,14 +7368,14 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
7368
7368
|
var H = C.shape, q = C.holes;
|
|
7369
7369
|
if (gs.isClockWise(H) === !1)
|
|
7370
7370
|
for (H = H.reverse(), C = 0, P = q.length; C < P; C++) {
|
|
7371
|
-
var
|
|
7372
|
-
gs.isClockWise(
|
|
7371
|
+
var $ = q[C];
|
|
7372
|
+
gs.isClockWise($) === !0 && (q[C] = $.reverse());
|
|
7373
7373
|
}
|
|
7374
7374
|
var rt = gs.triangulateShape(H, q);
|
|
7375
7375
|
for (C = 0, P = q.length; C < P; C++)
|
|
7376
|
-
|
|
7376
|
+
$ = q[C], H = H.concat($);
|
|
7377
7377
|
for (C = 0, P = H.length; C < P; C++)
|
|
7378
|
-
|
|
7378
|
+
$ = H[C], s.push($.x, $.y, 0), l.push(0, 0, 1), f.push($.x, $.y);
|
|
7379
7379
|
for (C = 0, P = rt.length; C < P; C++)
|
|
7380
7380
|
H = rt[C], n.push(H[0] + B, H[1] + B, H[2] + B), v += 3;
|
|
7381
7381
|
}
|
|
@@ -7454,7 +7454,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
7454
7454
|
};
|
|
7455
7455
|
var w = this;
|
|
7456
7456
|
t = t !== void 0 ? t : 1, e = e !== void 0 ? e : 1, i = i || 1, n = Math.floor(n) || 8, s = Math.floor(s) || 1, l = l !== void 0 ? l : !1, f = f !== void 0 ? f : 0, p = p !== void 0 ? p : 2 * Math.PI;
|
|
7457
|
-
var C = [], P = [], B = [], H = [], q = 0,
|
|
7457
|
+
var C = [], P = [], B = [], H = [], q = 0, $ = [], rt = i / 2, xt = 0;
|
|
7458
7458
|
(function() {
|
|
7459
7459
|
var gt, At, wt = new u(), Vt = new u(), Z = 0, st = (e - t) / i;
|
|
7460
7460
|
for (At = 0; At <= s; At++) {
|
|
@@ -7463,11 +7463,11 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
7463
7463
|
var qt = gt / n, Te = qt * p + f, me = Math.sin(Te);
|
|
7464
7464
|
Te = Math.cos(Te), Vt.x = $t * me, Vt.y = -ee * i + rt, Vt.z = $t * Te, P.push(Vt.x, Vt.y, Vt.z), wt.set(me, st, Te).normalize(), B.push(wt.x, wt.y, wt.z), H.push(qt, 1 - ee), zt.push(q++);
|
|
7465
7465
|
}
|
|
7466
|
-
|
|
7466
|
+
$.push(zt);
|
|
7467
7467
|
}
|
|
7468
7468
|
for (gt = 0; gt < n; gt++)
|
|
7469
7469
|
for (At = 0; At < s; At++)
|
|
7470
|
-
wt =
|
|
7470
|
+
wt = $[At + 1][gt], Vt = $[At + 1][gt + 1], st = $[At][gt + 1], C.push($[At][gt], wt, st), C.push(wt, Vt, st), Z += 6;
|
|
7471
7471
|
w.addGroup(xt, Z, 0), xt += Z;
|
|
7472
7472
|
})(), l === !1 && (0 < t && v(!0), 0 < e && v(!1)), this.setIndex(C), this.addAttribute("position", new Et(P, 3)), this.addAttribute("normal", new Et(B, 3)), this.addAttribute("uv", new Et(H, 2));
|
|
7473
7473
|
}
|
|
@@ -7827,8 +7827,8 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
7827
7827
|
var B = this.renderTarget, H = B.texture.generateMipmaps;
|
|
7828
7828
|
B.texture.generateMipmaps = !1, B.activeCubeFace = 0, C.render(P, s, B), B.activeCubeFace = 1, C.render(P, l, B), B.activeCubeFace = 2, C.render(P, f, B), B.activeCubeFace = 3, C.render(P, p, B), B.activeCubeFace = 4, C.render(P, v, B), B.texture.generateMipmaps = H, B.activeCubeFace = 5, C.render(P, w, B), C.setRenderTarget(null);
|
|
7829
7829
|
}, this.clear = function(C, P, B, H) {
|
|
7830
|
-
for (var q = this.renderTarget,
|
|
7831
|
-
q.activeCubeFace =
|
|
7830
|
+
for (var q = this.renderTarget, $ = 0; 6 > $; $++)
|
|
7831
|
+
q.activeCubeFace = $, C.setRenderTarget(q), C.clear(P, B, H);
|
|
7832
7832
|
C.setRenderTarget(null);
|
|
7833
7833
|
};
|
|
7834
7834
|
}
|
|
@@ -8067,8 +8067,8 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
8067
8067
|
), e = new zi({ fog: !1 }), this.lightPlane = new Vi(t, e), this.add(this.lightPlane), t = new Ft(), t.addAttribute("position", new Et([0, 0, 0, 0, 0, 1], 3)), this.targetLine = new Vi(t, e), this.add(this.targetLine), this.update();
|
|
8068
8068
|
}
|
|
8069
8069
|
function rl(t) {
|
|
8070
|
-
function e(H, q,
|
|
8071
|
-
i(H,
|
|
8070
|
+
function e(H, q, $) {
|
|
8071
|
+
i(H, $), i(q, $);
|
|
8072
8072
|
}
|
|
8073
8073
|
function i(H, q) {
|
|
8074
8074
|
l.push(0, 0, 0), f.push(q.r, q.g, q.b), p[H] === void 0 && (p[H] = []), p[H].push(l.length / 3 - 1);
|
|
@@ -8541,9 +8541,9 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
8541
8541
|
}
|
|
8542
8542
|
}), Object.assign(c.prototype, {
|
|
8543
8543
|
isMatrix4: !0,
|
|
8544
|
-
set: function(t, e, i, n, s, l, f, p, v, w, C, P, B, H, q,
|
|
8544
|
+
set: function(t, e, i, n, s, l, f, p, v, w, C, P, B, H, q, $) {
|
|
8545
8545
|
var rt = this.elements;
|
|
8546
|
-
return rt[0] = t, rt[4] = e, rt[8] = i, rt[12] = n, rt[1] = s, rt[5] = l, rt[9] = f, rt[13] = p, rt[2] = v, rt[6] = w, rt[10] = C, rt[14] = P, rt[3] = B, rt[7] = H, rt[11] = q, rt[15] =
|
|
8546
|
+
return rt[0] = t, rt[4] = e, rt[8] = i, rt[12] = n, rt[1] = s, rt[5] = l, rt[9] = f, rt[13] = p, rt[2] = v, rt[6] = w, rt[10] = C, rt[14] = P, rt[3] = B, rt[7] = H, rt[11] = q, rt[15] = $, this;
|
|
8547
8547
|
},
|
|
8548
8548
|
identity: function() {
|
|
8549
8549
|
return this.set(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1), this;
|
|
@@ -8630,10 +8630,10 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
8630
8630
|
multiplyMatrices: function(t, e) {
|
|
8631
8631
|
var i = t.elements, n = e.elements;
|
|
8632
8632
|
e = this.elements, t = i[0];
|
|
8633
|
-
var s = i[4], l = i[8], f = i[12], p = i[1], v = i[5], w = i[9], C = i[13], P = i[2], B = i[6], H = i[10], q = i[14],
|
|
8633
|
+
var s = i[4], l = i[8], f = i[12], p = i[1], v = i[5], w = i[9], C = i[13], P = i[2], B = i[6], H = i[10], q = i[14], $ = i[3], rt = i[7], xt = i[11];
|
|
8634
8634
|
i = i[15];
|
|
8635
8635
|
var gt = n[0], At = n[4], wt = n[8], Vt = n[12], Z = n[1], st = n[5], zt = n[9], ee = n[13], $t = n[2], qt = n[6], Te = n[10], me = n[14], Ie = n[3], be = n[7], ae = n[11];
|
|
8636
|
-
return n = n[15], e[0] = t * gt + s * Z + l * $t + f * Ie, e[4] = t * At + s * st + l * qt + f * be, e[8] = t * wt + s * zt + l * Te + f * ae, e[12] = t * Vt + s * ee + l * me + f * n, e[1] = p * gt + v * Z + w * $t + C * Ie, e[5] = p * At + v * st + w * qt + C * be, e[9] = p * wt + v * zt + w * Te + C * ae, e[13] = p * Vt + v * ee + w * me + C * n, e[2] = P * gt + B * Z + H * $t + q * Ie, e[6] = P * At + B * st + H * qt + q * be, e[10] = P * wt + B * zt + H * Te + q * ae, e[14] = P * Vt + B * ee + H * me + q * n, e[3] =
|
|
8636
|
+
return n = n[15], e[0] = t * gt + s * Z + l * $t + f * Ie, e[4] = t * At + s * st + l * qt + f * be, e[8] = t * wt + s * zt + l * Te + f * ae, e[12] = t * Vt + s * ee + l * me + f * n, e[1] = p * gt + v * Z + w * $t + C * Ie, e[5] = p * At + v * st + w * qt + C * be, e[9] = p * wt + v * zt + w * Te + C * ae, e[13] = p * Vt + v * ee + w * me + C * n, e[2] = P * gt + B * Z + H * $t + q * Ie, e[6] = P * At + B * st + H * qt + q * be, e[10] = P * wt + B * zt + H * Te + q * ae, e[14] = P * Vt + B * ee + H * me + q * n, e[3] = $ * gt + rt * Z + xt * $t + i * Ie, e[7] = $ * At + rt * st + xt * qt + i * be, e[11] = $ * wt + rt * zt + xt * Te + i * ae, e[15] = $ * Vt + rt * ee + xt * me + i * n, this;
|
|
8637
8637
|
},
|
|
8638
8638
|
multiplyScalar: function(t) {
|
|
8639
8639
|
var e = this.elements;
|
|
@@ -8662,9 +8662,9 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
8662
8662
|
getInverse: function(t, e) {
|
|
8663
8663
|
var i = this.elements, n = t.elements;
|
|
8664
8664
|
t = n[0];
|
|
8665
|
-
var s = n[1], l = n[2], f = n[3], p = n[4], v = n[5], w = n[6], C = n[7], P = n[8], B = n[9], H = n[10], q = n[11],
|
|
8665
|
+
var s = n[1], l = n[2], f = n[3], p = n[4], v = n[5], w = n[6], C = n[7], P = n[8], B = n[9], H = n[10], q = n[11], $ = n[12], rt = n[13], xt = n[14];
|
|
8666
8666
|
n = n[15];
|
|
8667
|
-
var gt = B * xt * C - rt * H * C + rt * w * q - v * xt * q - B * w * n + v * H * n, At =
|
|
8667
|
+
var gt = B * xt * C - rt * H * C + rt * w * q - v * xt * q - B * w * n + v * H * n, At = $ * H * C - P * xt * C - $ * w * q + p * xt * q + P * w * n - p * H * n, wt = P * rt * C - $ * B * C + $ * v * q - p * rt * q - P * v * n + p * B * n, Vt = $ * B * w - P * rt * w - $ * v * H + p * rt * H + P * v * xt - p * B * xt, Z = t * gt + s * At + l * wt + f * Vt;
|
|
8668
8668
|
if (Z === 0) {
|
|
8669
8669
|
if (e === !0)
|
|
8670
8670
|
throw Error(
|
|
@@ -8674,7 +8674,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
8674
8674
|
"THREE.Matrix4: .getInverse() can't invert matrix, determinant is 0"
|
|
8675
8675
|
), this.identity();
|
|
8676
8676
|
}
|
|
8677
|
-
return e = 1 / Z, i[0] = gt * e, i[1] = (rt * H * f - B * xt * f - rt * l * q + s * xt * q + B * l * n - s * H * n) * e, i[2] = (v * xt * f - rt * w * f + rt * l * C - s * xt * C - v * l * n + s * w * n) * e, i[3] = (B * w * f - v * H * f - B * l * C + s * H * C + v * l * q - s * w * q) * e, i[4] = At * e, i[5] = (P * xt * f -
|
|
8677
|
+
return e = 1 / Z, i[0] = gt * e, i[1] = (rt * H * f - B * xt * f - rt * l * q + s * xt * q + B * l * n - s * H * n) * e, i[2] = (v * xt * f - rt * w * f + rt * l * C - s * xt * C - v * l * n + s * w * n) * e, i[3] = (B * w * f - v * H * f - B * l * C + s * H * C + v * l * q - s * w * q) * e, i[4] = At * e, i[5] = (P * xt * f - $ * H * f + $ * l * q - t * xt * q - P * l * n + t * H * n) * e, i[6] = ($ * w * f - p * xt * f - $ * l * C + t * xt * C + p * l * n - t * w * n) * e, i[7] = (p * H * f - P * w * f + P * l * C - t * H * C - p * l * q + t * w * q) * e, i[8] = wt * e, i[9] = ($ * B * f - P * rt * f - $ * s * q + t * rt * q + P * s * n - t * B * n) * e, i[10] = (p * rt * f - $ * v * f + $ * s * C - t * rt * C - p * s * n + t * v * n) * e, i[11] = (P * v * f - p * B * f - P * s * C + t * B * C + p * s * q - t * v * q) * e, i[12] = Vt * e, i[13] = (P * rt * l - $ * B * l + $ * s * H - t * rt * H - P * s * xt + t * B * xt) * e, i[14] = ($ * v * l - p * rt * l - $ * s * w + t * rt * w + p * s * xt - t * v * xt) * e, i[15] = (p * B * l - P * v * l + P * s * w - t * B * w - p * s * H + t * v * H) * e, this;
|
|
8678
8678
|
},
|
|
8679
8679
|
scale: function(t) {
|
|
8680
8680
|
var e = this.elements, i = t.x, n = t.y;
|
|
@@ -9258,8 +9258,8 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
9258
9258
|
e = this.elements, t = i[0];
|
|
9259
9259
|
var s = i[3], l = i[6], f = i[1], p = i[4], v = i[7], w = i[2], C = i[5];
|
|
9260
9260
|
i = i[8];
|
|
9261
|
-
var P = n[0], B = n[3], H = n[6], q = n[1],
|
|
9262
|
-
return n = n[8], e[0] = t * P + s * q + l * xt, e[3] = t * B + s *
|
|
9261
|
+
var P = n[0], B = n[3], H = n[6], q = n[1], $ = n[4], rt = n[7], xt = n[2], gt = n[5];
|
|
9262
|
+
return n = n[8], e[0] = t * P + s * q + l * xt, e[3] = t * B + s * $ + l * gt, e[6] = t * H + s * rt + l * n, e[1] = f * P + p * q + v * xt, e[4] = f * B + p * $ + v * gt, e[7] = f * H + p * rt + v * n, e[2] = w * P + C * q + i * xt, e[5] = w * B + C * $ + i * gt, e[8] = w * H + C * rt + i * n, this;
|
|
9263
9263
|
},
|
|
9264
9264
|
multiplyScalar: function(t) {
|
|
9265
9265
|
var e = this.elements;
|
|
@@ -9764,8 +9764,8 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
9764
9764
|
var B, H = 0;
|
|
9765
9765
|
for (B = P.length - 3; H <= B; H += 3) {
|
|
9766
9766
|
p.fromArray(P, H);
|
|
9767
|
-
var q = w.x * Math.abs(p.x) + w.y * Math.abs(p.y) + w.z * Math.abs(p.z),
|
|
9768
|
-
if (Math.max(-Math.max(
|
|
9767
|
+
var q = w.x * Math.abs(p.x) + w.y * Math.abs(p.y) + w.z * Math.abs(p.z), $ = e.dot(p), rt = i.dot(p), xt = n.dot(p);
|
|
9768
|
+
if (Math.max(-Math.max($, rt, xt), Math.min($, rt, xt)) > q)
|
|
9769
9769
|
return !1;
|
|
9770
9770
|
}
|
|
9771
9771
|
return !0;
|
|
@@ -9993,8 +9993,8 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
9993
9993
|
setFromMatrix: function(t) {
|
|
9994
9994
|
var e = this.planes, i = t.elements;
|
|
9995
9995
|
t = i[0];
|
|
9996
|
-
var n = i[1], s = i[2], l = i[3], f = i[4], p = i[5], v = i[6], w = i[7], C = i[8], P = i[9], B = i[10], H = i[11], q = i[12],
|
|
9997
|
-
return i = i[15], e[0].setComponents(l - t, w - f, H - C, i - q).normalize(), e[1].setComponents(l + t, w + f, H + C, i + q).normalize(), e[2].setComponents(l + n, w + p, H + P, i +
|
|
9996
|
+
var n = i[1], s = i[2], l = i[3], f = i[4], p = i[5], v = i[6], w = i[7], C = i[8], P = i[9], B = i[10], H = i[11], q = i[12], $ = i[13], rt = i[14];
|
|
9997
|
+
return i = i[15], e[0].setComponents(l - t, w - f, H - C, i - q).normalize(), e[1].setComponents(l + t, w + f, H + C, i + q).normalize(), e[2].setComponents(l + n, w + p, H + P, i + $).normalize(), e[3].setComponents(l - n, w - p, H - P, i - $).normalize(), e[4].setComponents(l - s, w - v, H - B, i - rt).normalize(), e[5].setComponents(l + s, w + v, H + B, i + rt).normalize(), this;
|
|
9998
9998
|
},
|
|
9999
9999
|
intersectsObject: function() {
|
|
10000
10000
|
var t = new D();
|
|
@@ -13504,19 +13504,19 @@ void main() {
|
|
|
13504
13504
|
};
|
|
13505
13505
|
}(),
|
|
13506
13506
|
fromBufferGeometry: function(t) {
|
|
13507
|
-
function e(q,
|
|
13508
|
-
var gt = p === void 0 ? [] : [i.colors[q].clone(), i.colors[
|
|
13507
|
+
function e(q, $, rt, xt) {
|
|
13508
|
+
var gt = p === void 0 ? [] : [i.colors[q].clone(), i.colors[$].clone(), i.colors[rt].clone()], At = f === void 0 ? [] : [
|
|
13509
13509
|
new u().fromArray(f, 3 * q),
|
|
13510
|
-
new u().fromArray(f, 3 *
|
|
13510
|
+
new u().fromArray(f, 3 * $),
|
|
13511
13511
|
new u().fromArray(f, 3 * rt)
|
|
13512
13512
|
];
|
|
13513
|
-
xt = new R(q,
|
|
13513
|
+
xt = new R(q, $, rt, At, gt, xt), i.faces.push(xt), v !== void 0 && i.faceVertexUvs[0].push([
|
|
13514
13514
|
new o().fromArray(v, 2 * q),
|
|
13515
|
-
new o().fromArray(v, 2 *
|
|
13515
|
+
new o().fromArray(v, 2 * $),
|
|
13516
13516
|
new o().fromArray(v, 2 * rt)
|
|
13517
13517
|
]), w !== void 0 && i.faceVertexUvs[1].push([
|
|
13518
13518
|
new o().fromArray(w, 2 * q),
|
|
13519
|
-
new o().fromArray(w, 2 *
|
|
13519
|
+
new o().fromArray(w, 2 * $),
|
|
13520
13520
|
new o().fromArray(w, 2 * rt)
|
|
13521
13521
|
]);
|
|
13522
13522
|
}
|
|
@@ -13650,9 +13650,9 @@ void main() {
|
|
|
13650
13650
|
P.push(B[t].clone());
|
|
13651
13651
|
for (t = 0, H = v.length; t < H; t++) {
|
|
13652
13652
|
f = v[t];
|
|
13653
|
-
var
|
|
13654
|
-
for (B = f.vertexColors, P = new R(f.a + s, f.b + s, f.c + s), P.normal.copy(f.normal), n !== void 0 && P.normal.applyMatrix3(n).normalize(), e = 0, l =
|
|
13655
|
-
q =
|
|
13653
|
+
var $ = f.vertexNormals;
|
|
13654
|
+
for (B = f.vertexColors, P = new R(f.a + s, f.b + s, f.c + s), P.normal.copy(f.normal), n !== void 0 && P.normal.applyMatrix3(n).normalize(), e = 0, l = $.length; e < l; e++)
|
|
13655
|
+
q = $[e].clone(), n !== void 0 && q.applyMatrix3(n).normalize(), P.vertexNormals.push(q);
|
|
13656
13656
|
for (P.color.copy(f.color), e = 0, l = B.length; e < l; e++)
|
|
13657
13657
|
q = B[e], P.vertexColors.push(q.clone());
|
|
13658
13658
|
P.materialIndex = f.materialIndex + i, p.push(P);
|
|
@@ -13749,8 +13749,8 @@ void main() {
|
|
|
13749
13749
|
p = [];
|
|
13750
13750
|
var v = [], w = {}, C = [], P = {}, B = [], H = {};
|
|
13751
13751
|
for (f = 0; f < this.faces.length; f++) {
|
|
13752
|
-
var q = this.faces[f],
|
|
13753
|
-
wt = t(wt, 0, 0), wt = t(wt, 1, !0), wt = t(wt, 2, !1), wt = t(wt, 3,
|
|
13752
|
+
var q = this.faces[f], $ = this.faceVertexUvs[0][f] !== void 0, rt = 0 < q.normal.length(), xt = 0 < q.vertexNormals.length, gt = q.color.r !== 1 || q.color.g !== 1 || q.color.b !== 1, At = 0 < q.vertexColors.length, wt = 0;
|
|
13753
|
+
wt = t(wt, 0, 0), wt = t(wt, 1, !0), wt = t(wt, 2, !1), wt = t(wt, 3, $), wt = t(wt, 4, rt), wt = t(wt, 5, xt), wt = t(wt, 6, gt), wt = t(wt, 7, At), p.push(wt), p.push(q.a, q.b, q.c), p.push(q.materialIndex), $ && ($ = this.faceVertexUvs[0][f], p.push(n($[0]), n($[1]), n($[2]))), rt && p.push(e(q.normal)), xt && (rt = q.vertexNormals, p.push(e(rt[0]), e(rt[1]), e(rt[2]))), gt && p.push(i(q.color)), At && (q = q.vertexColors, p.push(i(q[0]), i(q[1]), i(q[2])));
|
|
13754
13754
|
}
|
|
13755
13755
|
return s.data = {}, s.data.vertices = l, s.data.normals = v, 0 < C.length && (s.data.colors = C), 0 < B.length && (s.data.uvs = [B]), s.data.faces = p, s;
|
|
13756
13756
|
},
|
|
@@ -13917,7 +13917,7 @@ void main() {
|
|
|
13917
13917
|
clone: function() {
|
|
13918
13918
|
return new this.constructor(this.array, this.itemSize).copy(this);
|
|
13919
13919
|
}
|
|
13920
|
-
}),
|
|
13920
|
+
}), K.prototype = Object.create(J.prototype), K.prototype.constructor = K, ct.prototype = Object.create(J.prototype), ct.prototype.constructor = ct, It.prototype = Object.create(J.prototype), It.prototype.constructor = It, et.prototype = Object.create(J.prototype), et.prototype.constructor = et, yt.prototype = Object.create(J.prototype), yt.prototype.constructor = yt, G.prototype = Object.create(J.prototype), G.prototype.constructor = G, Pt.prototype = Object.create(J.prototype), Pt.prototype.constructor = Pt, Et.prototype = Object.create(J.prototype), Et.prototype.constructor = Et, Ct.prototype = Object.create(J.prototype), Ct.prototype.constructor = Ct, Object.assign(fe.prototype, {
|
|
13921
13921
|
computeGroups: function(t) {
|
|
13922
13922
|
var e = [], i = void 0;
|
|
13923
13923
|
t = t.faces;
|
|
@@ -13944,7 +13944,7 @@ void main() {
|
|
|
13944
13944
|
B[w] = { name: C[w].name, data: [] };
|
|
13945
13945
|
this.morphTargets.normal = B;
|
|
13946
13946
|
}
|
|
13947
|
-
var H = t.skinIndices, q = t.skinWeights,
|
|
13947
|
+
var H = t.skinIndices, q = t.skinWeights, $ = H.length === i.length, rt = q.length === i.length;
|
|
13948
13948
|
for (0 < i.length && e.length === 0 && console.error(
|
|
13949
13949
|
"THREE.DirectGeometry: Faceless geometries are not supported."
|
|
13950
13950
|
), w = 0; w < e.length; w++) {
|
|
@@ -13963,7 +13963,7 @@ void main() {
|
|
|
13963
13963
|
}
|
|
13964
13964
|
for (gt = 0; gt < P; gt++)
|
|
13965
13965
|
At = C[gt].vertexNormals[w], B[gt].data.push(At.a, At.b, At.c);
|
|
13966
|
-
|
|
13966
|
+
$ && this.skinIndices.push(H[xt.a], H[xt.b], H[xt.c]), rt && this.skinWeights.push(q[xt.a], q[xt.b], q[xt.c]);
|
|
13967
13967
|
}
|
|
13968
13968
|
return this.computeGroups(t), this.verticesNeedUpdate = t.verticesNeedUpdate, this.normalsNeedUpdate = t.normalsNeedUpdate, this.colorsNeedUpdate = t.colorsNeedUpdate, this.uvsNeedUpdate = t.uvsNeedUpdate, this.groupsNeedUpdate = t.groupsNeedUpdate, this;
|
|
13969
13969
|
}
|
|
@@ -14516,12 +14516,12 @@ void main() {
|
|
|
14516
14516
|
var H = t.dot(s), q = e.dot(s);
|
|
14517
14517
|
if (0 <= H && q <= H)
|
|
14518
14518
|
return p.copy(w);
|
|
14519
|
-
var
|
|
14520
|
-
if (0 >=
|
|
14519
|
+
var $ = P * q - H * B;
|
|
14520
|
+
if (0 >= $ && 0 <= P && 0 >= H)
|
|
14521
14521
|
return w = P / (P - H), p.copy(v).addScaledVector(t, w);
|
|
14522
14522
|
l.subVectors(f, C), f = t.dot(l);
|
|
14523
14523
|
var rt = e.dot(l);
|
|
14524
|
-
return 0 <= rt && f <= rt ? p.copy(C) : (P = f * B - P * rt, 0 >= P && 0 <= B && 0 >= rt ? (
|
|
14524
|
+
return 0 <= rt && f <= rt ? p.copy(C) : (P = f * B - P * rt, 0 >= P && 0 <= B && 0 >= rt ? ($ = B / (B - rt), p.copy(v).addScaledVector(e, $)) : (B = H * rt - f * q, 0 >= B && 0 <= q - H && 0 <= f - rt ? (i.subVectors(C, w), $ = (q - H) / (q - H + (f - rt)), p.copy(w).addScaledVector(i, $)) : (C = 1 / (B + P + $), w = P * C, $ *= C, p.copy(v).addScaledVector(t, w).addScaledVector(e, $))));
|
|
14525
14525
|
};
|
|
14526
14526
|
}(),
|
|
14527
14527
|
equals: function(t) {
|
|
@@ -14560,12 +14560,12 @@ void main() {
|
|
|
14560
14560
|
},
|
|
14561
14561
|
raycast: function() {
|
|
14562
14562
|
function t(rt, xt, gt, At, wt, Vt, Z, st) {
|
|
14563
|
-
return (xt.side === 1 ? At.intersectTriangle(Z, Vt, wt, !0, st) : At.intersectTriangle(wt, Vt, Z, xt.side !== 2, st)) === null ? null : (
|
|
14563
|
+
return (xt.side === 1 ? At.intersectTriangle(Z, Vt, wt, !0, st) : At.intersectTriangle(wt, Vt, Z, xt.side !== 2, st)) === null ? null : ($.copy(st), $.applyMatrix4(rt.matrixWorld), xt = gt.ray.origin.distanceTo($), xt < gt.near || xt > gt.far ? null : { distance: xt, point: $.clone(), object: rt });
|
|
14564
14564
|
}
|
|
14565
14565
|
function e(rt, xt, gt, At, wt, Vt, Z, st, zt) {
|
|
14566
14566
|
return l.fromBufferAttribute(wt, Z), f.fromBufferAttribute(wt, st), p.fromBufferAttribute(wt, zt), (rt = t(rt, xt, gt, At, l, f, p, q)) && (Vt && (P.fromBufferAttribute(Vt, Z), B.fromBufferAttribute(Vt, st), H.fromBufferAttribute(Vt, zt), rt.uv = Oe.getUV(q, l, f, p, P, B, H, new o())), Vt = new R(Z, st, zt), Oe.getNormal(l, f, p, Vt.normal), rt.face = Vt), rt;
|
|
14567
14567
|
}
|
|
14568
|
-
var i = new c(), n = new Li(), s = new D(), l = new u(), f = new u(), p = new u(), v = new u(), w = new u(), C = new u(), P = new o(), B = new o(), H = new o(), q = new u(),
|
|
14568
|
+
var i = new c(), n = new Li(), s = new D(), l = new u(), f = new u(), p = new u(), v = new u(), w = new u(), C = new u(), P = new o(), B = new o(), H = new o(), q = new u(), $ = new u();
|
|
14569
14569
|
return function(rt, xt) {
|
|
14570
14570
|
var gt = this.geometry, At = this.material, wt = this.matrixWorld;
|
|
14571
14571
|
if (At !== void 0 && (gt.boundingSphere === null && gt.computeBoundingSphere(), s.copy(gt.boundingSphere), s.applyMatrix4(wt), rt.ray.intersectsSphere(s) !== !1 && (i.getInverse(wt), n.copy(rt.ray).applyMatrix4(i), gt.boundingBox === null || n.intersectsBox(gt.boundingBox) !== !1))) {
|
|
@@ -14852,18 +14852,18 @@ void main() {
|
|
|
14852
14852
|
constructor: Qi,
|
|
14853
14853
|
isSprite: !0,
|
|
14854
14854
|
raycast: function() {
|
|
14855
|
-
function t(H, q,
|
|
14856
|
-
s.subVectors(H,
|
|
14855
|
+
function t(H, q, $, rt, xt, gt) {
|
|
14856
|
+
s.subVectors(H, $).addScalar(0.5).multiply(rt), xt !== void 0 ? (l.x = gt * s.x - xt * s.y, l.y = xt * s.x + gt * s.y) : l.copy(s), H.copy(q), H.x += l.x, H.y += l.y, H.applyMatrix4(f);
|
|
14857
14857
|
}
|
|
14858
14858
|
var e = new u(), i = new u(), n = new u(), s = new o(), l = new o(), f = new c(), p = new u(), v = new u(), w = new u(), C = new o(), P = new o(), B = new o();
|
|
14859
14859
|
return function(H, q) {
|
|
14860
14860
|
i.setFromMatrixScale(this.matrixWorld), f.getInverse(this.modelViewMatrix).premultiply(this.matrixWorld), n.setFromMatrixPosition(this.modelViewMatrix);
|
|
14861
|
-
var
|
|
14862
|
-
if (
|
|
14863
|
-
var rt = Math.cos(
|
|
14864
|
-
|
|
14861
|
+
var $ = this.material.rotation;
|
|
14862
|
+
if ($ !== 0)
|
|
14863
|
+
var rt = Math.cos($), xt = Math.sin($);
|
|
14864
|
+
$ = this.center, t(p.set(-0.5, -0.5, 0), n, $, i, xt, rt), t(v.set(0.5, -0.5, 0), n, $, i, xt, rt), t(w.set(0.5, 0.5, 0), n, $, i, xt, rt), C.set(0, 0), P.set(1, 0), B.set(1, 1);
|
|
14865
14865
|
var gt = H.ray.intersectTriangle(p, v, w, !1, e);
|
|
14866
|
-
gt === null && (t(v.set(-0.5, 0.5, 0), n,
|
|
14866
|
+
gt === null && (t(v.set(-0.5, 0.5, 0), n, $, i, xt, rt), P.set(0, 1), gt = H.ray.intersectTriangle(p, w, v, !1, e), gt === null) || (xt = H.ray.origin.distanceTo(e), xt < H.near || xt > H.far || q.push({
|
|
14867
14867
|
distance: xt,
|
|
14868
14868
|
point: e.clone(),
|
|
14869
14869
|
uv: Oe.getUV(e, p, v, w, C, P, B, new o()),
|
|
@@ -15046,9 +15046,9 @@ void main() {
|
|
|
15046
15046
|
if (B !== null) {
|
|
15047
15047
|
B = B.array, f = 0;
|
|
15048
15048
|
for (var q = B.length - 1; f < q; f += P) {
|
|
15049
|
-
var
|
|
15050
|
-
v.fromArray(H, 3 * B[f]), w.fromArray(H, 3 *
|
|
15051
|
-
distance:
|
|
15049
|
+
var $ = B[f + 1];
|
|
15050
|
+
v.fromArray(H, 3 * B[f]), w.fromArray(H, 3 * $), $ = e.distanceSqToSegment(v, w, C, p), $ > l || (C.applyMatrix4(this.matrixWorld), $ = n.ray.origin.distanceTo(C), $ < n.near || $ > n.far || s.push({
|
|
15051
|
+
distance: $,
|
|
15052
15052
|
point: p.clone().applyMatrix4(this.matrixWorld),
|
|
15053
15053
|
index: f,
|
|
15054
15054
|
face: null,
|
|
@@ -15058,8 +15058,8 @@ void main() {
|
|
|
15058
15058
|
}
|
|
15059
15059
|
} else
|
|
15060
15060
|
for (f = 0, q = H.length / 3 - 1; f < q; f += P)
|
|
15061
|
-
v.fromArray(H, 3 * f), w.fromArray(H, 3 * f + 3),
|
|
15062
|
-
distance:
|
|
15061
|
+
v.fromArray(H, 3 * f), w.fromArray(H, 3 * f + 3), $ = e.distanceSqToSegment(v, w, C, p), $ > l || (C.applyMatrix4(this.matrixWorld), $ = n.ray.origin.distanceTo(C), $ < n.near || $ > n.far || s.push({
|
|
15062
|
+
distance: $,
|
|
15063
15063
|
point: p.clone().applyMatrix4(this.matrixWorld),
|
|
15064
15064
|
index: f,
|
|
15065
15065
|
face: null,
|
|
@@ -15068,8 +15068,8 @@ void main() {
|
|
|
15068
15068
|
}));
|
|
15069
15069
|
} else if (f.isGeometry)
|
|
15070
15070
|
for (v = f.vertices, w = v.length, f = 0; f < w - 1; f += P)
|
|
15071
|
-
|
|
15072
|
-
distance:
|
|
15071
|
+
$ = e.distanceSqToSegment(v[f], v[f + 1], C, p), $ > l || (C.applyMatrix4(this.matrixWorld), $ = n.ray.origin.distanceTo(C), $ < n.near || $ > n.far || s.push({
|
|
15072
|
+
distance: $,
|
|
15073
15073
|
point: p.clone().applyMatrix4(this.matrixWorld),
|
|
15074
15074
|
index: f,
|
|
15075
15075
|
face: null,
|
|
@@ -15141,8 +15141,8 @@ void main() {
|
|
|
15141
15141
|
var H = B.array;
|
|
15142
15142
|
B = 0;
|
|
15143
15143
|
for (var q = H.length; B < q; B++) {
|
|
15144
|
-
var
|
|
15145
|
-
w.fromArray(p, 3 *
|
|
15144
|
+
var $ = H[B];
|
|
15145
|
+
w.fromArray(p, 3 * $), l(w, $);
|
|
15146
15146
|
}
|
|
15147
15147
|
} else
|
|
15148
15148
|
for (B = 0, H = p.length / 3; B < H; B++)
|
|
@@ -15733,10 +15733,10 @@ void main() {
|
|
|
15733
15733
|
return console.error(
|
|
15734
15734
|
"THREE.AnimationClip: No animation in JSONLoader data."
|
|
15735
15735
|
), null;
|
|
15736
|
-
var i = function(
|
|
15736
|
+
var i = function($, rt, xt, gt, At) {
|
|
15737
15737
|
if (xt.length !== 0) {
|
|
15738
15738
|
var wt = [], Vt = [];
|
|
15739
|
-
Wn.flattenJSON(xt, wt, Vt, gt), wt.length !== 0 && At.push(new
|
|
15739
|
+
Wn.flattenJSON(xt, wt, Vt, gt), wt.length !== 0 && At.push(new $(rt, wt, Vt));
|
|
15740
15740
|
}
|
|
15741
15741
|
}, n = [], s = t.name || "default", l = t.length || -1, f = t.fps || 30;
|
|
15742
15742
|
t = t.hierarchy || [];
|
|
@@ -15858,13 +15858,13 @@ void main() {
|
|
|
15858
15858
|
var q = Lr[t];
|
|
15859
15859
|
if (delete Lr[t], this.status === 200 || this.status === 0) {
|
|
15860
15860
|
this.status === 0 && console.warn("THREE.FileLoader: HTTP Status 0 received.");
|
|
15861
|
-
for (var
|
|
15862
|
-
var xt = q[
|
|
15861
|
+
for (var $ = 0, rt = q.length; $ < rt; $++) {
|
|
15862
|
+
var xt = q[$];
|
|
15863
15863
|
xt.onLoad && xt.onLoad(H);
|
|
15864
15864
|
}
|
|
15865
15865
|
} else {
|
|
15866
|
-
for (
|
|
15867
|
-
xt = q[
|
|
15866
|
+
for ($ = 0, rt = q.length; $ < rt; $++)
|
|
15867
|
+
xt = q[$], xt.onError && xt.onError(B);
|
|
15868
15868
|
s.manager.itemError(t);
|
|
15869
15869
|
}
|
|
15870
15870
|
s.manager.itemEnd(t);
|
|
@@ -15873,7 +15873,7 @@ void main() {
|
|
|
15873
15873
|
), P.addEventListener(
|
|
15874
15874
|
"progress",
|
|
15875
15875
|
function(B) {
|
|
15876
|
-
for (var H = Lr[t], q = 0,
|
|
15876
|
+
for (var H = Lr[t], q = 0, $ = H.length; q < $; q++) {
|
|
15877
15877
|
var rt = H[q];
|
|
15878
15878
|
rt.onProgress && rt.onProgress(B);
|
|
15879
15879
|
}
|
|
@@ -15884,7 +15884,7 @@ void main() {
|
|
|
15884
15884
|
function(B) {
|
|
15885
15885
|
var H = Lr[t];
|
|
15886
15886
|
delete Lr[t];
|
|
15887
|
-
for (var q = 0,
|
|
15887
|
+
for (var q = 0, $ = H.length; q < $; q++) {
|
|
15888
15888
|
var rt = H[q];
|
|
15889
15889
|
rt.onError && rt.onError(B);
|
|
15890
15890
|
}
|
|
@@ -15896,7 +15896,7 @@ void main() {
|
|
|
15896
15896
|
function(B) {
|
|
15897
15897
|
var H = Lr[t];
|
|
15898
15898
|
delete Lr[t];
|
|
15899
|
-
for (var q = 0,
|
|
15899
|
+
for (var q = 0, $ = H.length; q < $; q++) {
|
|
15900
15900
|
var rt = H[q];
|
|
15901
15901
|
rt.onError && rt.onError(B);
|
|
15902
15902
|
}
|
|
@@ -15980,8 +15980,8 @@ void main() {
|
|
|
15980
15980
|
if (B = l._parser(B, !0), B.isCubemap)
|
|
15981
15981
|
for (var H = B.mipmaps.length / B.mipmapCount, q = 0; q < H; q++) {
|
|
15982
15982
|
f[q] = { mipmaps: [] };
|
|
15983
|
-
for (var
|
|
15984
|
-
f[q].mipmaps.push(B.mipmaps[q * B.mipmapCount +
|
|
15983
|
+
for (var $ = 0; $ < B.mipmapCount; $++)
|
|
15984
|
+
f[q].mipmaps.push(B.mipmaps[q * B.mipmapCount + $]), f[q].format = B.format, f[q].width = B.width, f[q].height = B.height;
|
|
15985
15985
|
}
|
|
15986
15986
|
else
|
|
15987
15987
|
p.image.width = B.width, p.image.height = B.height, p.mipmaps = B.mipmaps;
|
|
@@ -16731,10 +16731,10 @@ void main() {
|
|
|
16731
16731
|
CustomBlending: 5
|
|
16732
16732
|
}, e = new L(), i = new ln(), n = new Fl();
|
|
16733
16733
|
return function(s, l, f) {
|
|
16734
|
-
function p(B, H, q,
|
|
16734
|
+
function p(B, H, q, $, rt) {
|
|
16735
16735
|
B = l + B;
|
|
16736
16736
|
var xt = Os.Handlers.get(B);
|
|
16737
|
-
return xt !== null ? B = xt.load(B) : (i.setCrossOrigin(f), B = i.load(B)), H !== void 0 && (B.repeat.fromArray(H), H[0] !== 1 && (B.wrapS = 1e3), H[1] !== 1 && (B.wrapT = 1e3)), q !== void 0 && B.offset.fromArray(q),
|
|
16737
|
+
return xt !== null ? B = xt.load(B) : (i.setCrossOrigin(f), B = i.load(B)), H !== void 0 && (B.repeat.fromArray(H), H[0] !== 1 && (B.wrapS = 1e3), H[1] !== 1 && (B.wrapT = 1e3)), q !== void 0 && B.offset.fromArray(q), $ !== void 0 && ($[0] === "repeat" && (B.wrapS = 1e3), $[0] === "mirror" && (B.wrapS = 1002), $[1] === "repeat" && (B.wrapT = 1e3), $[1] === "mirror" && (B.wrapT = 1002)), rt !== void 0 && (B.anisotropy = rt), H = fi.generateUUID(), v[H] = B, H;
|
|
16738
16738
|
}
|
|
16739
16739
|
var v = {}, w = { uuid: fi.generateUUID(), type: "MeshLambertMaterial" }, C;
|
|
16740
16740
|
for (C in s) {
|
|
@@ -16996,18 +16996,18 @@ void main() {
|
|
|
16996
16996
|
s = new u(), s.x = v[H++] * P, s.y = v[H++] * P, s.z = v[H++] * P, i.vertices.push(s);
|
|
16997
16997
|
for (H = 0, f = p.length; H < f; ) {
|
|
16998
16998
|
v = p[H++];
|
|
16999
|
-
var q = v & 1,
|
|
16999
|
+
var q = v & 1, $ = v & 2;
|
|
17000
17000
|
s = v & 8;
|
|
17001
17001
|
var rt = v & 16, xt = v & 32;
|
|
17002
17002
|
if (P = v & 64, v &= 128, q) {
|
|
17003
17003
|
q = new R(), q.a = p[H], q.b = p[H + 1], q.c = p[H + 3];
|
|
17004
17004
|
var gt = new R();
|
|
17005
|
-
if (gt.a = p[H + 1], gt.b = p[H + 2], gt.c = p[H + 3], H += 4,
|
|
17005
|
+
if (gt.a = p[H + 1], gt.b = p[H + 2], gt.c = p[H + 3], H += 4, $ && ($ = p[H++], q.materialIndex = $, gt.materialIndex = $), $ = i.faces.length, s)
|
|
17006
17006
|
for (s = 0; s < B; s++) {
|
|
17007
17007
|
var At = n.uvs[s];
|
|
17008
|
-
for (i.faceVertexUvs[s][
|
|
17008
|
+
for (i.faceVertexUvs[s][$] = [], i.faceVertexUvs[s][$ + 1] = [], l = 0; 4 > l; l++) {
|
|
17009
17009
|
var wt = p[H++], Vt = At[2 * wt];
|
|
17010
|
-
wt = At[2 * wt + 1], Vt = new o(Vt, wt), l !== 2 && i.faceVertexUvs[s][
|
|
17010
|
+
wt = At[2 * wt + 1], Vt = new o(Vt, wt), l !== 2 && i.faceVertexUvs[s][$].push(Vt), l !== 0 && i.faceVertexUvs[s][$ + 1].push(Vt);
|
|
17011
17011
|
}
|
|
17012
17012
|
}
|
|
17013
17013
|
if (rt && (rt = 3 * p[H++], q.normal.set(w[rt++], w[rt++], w[rt]), gt.normal.copy(q.normal)), xt)
|
|
@@ -17018,10 +17018,10 @@ void main() {
|
|
|
17018
17018
|
P = p[H++], P = C[P], s !== 2 && q.vertexColors.push(new L(P)), s !== 0 && gt.vertexColors.push(new L(P));
|
|
17019
17019
|
i.faces.push(q), i.faces.push(gt);
|
|
17020
17020
|
} else {
|
|
17021
|
-
if (q = new R(), q.a = p[H++], q.b = p[H++], q.c = p[H++],
|
|
17021
|
+
if (q = new R(), q.a = p[H++], q.b = p[H++], q.c = p[H++], $ && ($ = p[H++], q.materialIndex = $), $ = i.faces.length, s)
|
|
17022
17022
|
for (s = 0; s < B; s++)
|
|
17023
|
-
for (At = n.uvs[s], i.faceVertexUvs[s][
|
|
17024
|
-
wt = p[H++], Vt = At[2 * wt], wt = At[2 * wt + 1], Vt = new o(Vt, wt), i.faceVertexUvs[s][
|
|
17023
|
+
for (At = n.uvs[s], i.faceVertexUvs[s][$] = [], l = 0; 3 > l; l++)
|
|
17024
|
+
wt = p[H++], Vt = At[2 * wt], wt = At[2 * wt + 1], Vt = new o(Vt, wt), i.faceVertexUvs[s][$].push(Vt);
|
|
17025
17025
|
if (rt && (rt = 3 * p[H++], q.normal.set(w[rt++], w[rt++], w[rt])), xt)
|
|
17026
17026
|
for (s = 0; 3 > s; s++)
|
|
17027
17027
|
rt = 3 * p[H++], xt = new u(w[rt++], w[rt++], w[rt]), q.vertexNormals.push(xt);
|
|
@@ -17562,8 +17562,8 @@ void main() {
|
|
|
17562
17562
|
w[P] = void 0, C[P] = [];
|
|
17563
17563
|
for (var B = 0, H = l.length; B < H; B++) {
|
|
17564
17564
|
f = l[B];
|
|
17565
|
-
var q = f.getPoints(),
|
|
17566
|
-
(
|
|
17565
|
+
var q = f.getPoints(), $ = s(q);
|
|
17566
|
+
($ = t ? !$ : $) ? (!v && w[P] && P++, w[P] = { s: new $n(), p: q }, w[P].s.curves = f.curves, v && P++, C[P] = []) : C[P].push({ h: f, p: q[0] });
|
|
17567
17567
|
}
|
|
17568
17568
|
if (!w[0])
|
|
17569
17569
|
return i(l);
|
|
@@ -17571,9 +17571,9 @@ void main() {
|
|
|
17571
17571
|
for (B = !1, t = [], s = 0, l = w.length; s < l; s++)
|
|
17572
17572
|
p[s] = [];
|
|
17573
17573
|
for (s = 0, l = w.length; s < l; s++)
|
|
17574
|
-
for (f = C[s],
|
|
17575
|
-
for (v = f[
|
|
17576
|
-
n(v.p, w[q].p) && (s !== q && t.push({ froms: s, tos: q, hole:
|
|
17574
|
+
for (f = C[s], $ = 0; $ < f.length; $++) {
|
|
17575
|
+
for (v = f[$], P = !0, q = 0; q < w.length; q++)
|
|
17576
|
+
n(v.p, w[q].p) && (s !== q && t.push({ froms: s, tos: q, hole: $ }), P ? (P = !1, p[q].push(v)) : B = !0);
|
|
17577
17577
|
P && p[s].push(v);
|
|
17578
17578
|
}
|
|
17579
17579
|
0 < t.length && (B || (C = p));
|
|
@@ -17603,21 +17603,21 @@ void main() {
|
|
|
17603
17603
|
if (w = e.glyphs[w] || e.glyphs["?"]) {
|
|
17604
17604
|
var H = new Ul();
|
|
17605
17605
|
if (w.o)
|
|
17606
|
-
for (var q = w._cachedOutline || (w._cachedOutline = w.o.split(" ")),
|
|
17607
|
-
switch (q[
|
|
17606
|
+
for (var q = w._cachedOutline || (w._cachedOutline = w.o.split(" ")), $ = 0, rt = q.length; $ < rt; )
|
|
17607
|
+
switch (q[$++]) {
|
|
17608
17608
|
case "m":
|
|
17609
|
-
var xt = q[
|
|
17609
|
+
var xt = q[$++] * C + P, gt = q[$++] * C + B;
|
|
17610
17610
|
H.moveTo(xt, gt);
|
|
17611
17611
|
break;
|
|
17612
17612
|
case "l":
|
|
17613
|
-
xt = q[
|
|
17613
|
+
xt = q[$++] * C + P, gt = q[$++] * C + B, H.lineTo(xt, gt);
|
|
17614
17614
|
break;
|
|
17615
17615
|
case "q":
|
|
17616
|
-
var At = q[
|
|
17616
|
+
var At = q[$++] * C + P, wt = q[$++] * C + B, Vt = q[$++] * C + P, Z = q[$++] * C + B;
|
|
17617
17617
|
H.quadraticCurveTo(Vt, Z, At, wt);
|
|
17618
17618
|
break;
|
|
17619
17619
|
case "b":
|
|
17620
|
-
At = q[
|
|
17620
|
+
At = q[$++] * C + P, wt = q[$++] * C + B, Vt = q[$++] * C + P, Z = q[$++] * C + B, xt = q[$++] * C + P, gt = q[$++] * C + B, H.bezierCurveTo(Vt, Z, xt, gt, At, wt);
|
|
17621
17621
|
}
|
|
17622
17622
|
C = { offsetX: w.ha * C, path: H };
|
|
17623
17623
|
} else
|
|
@@ -17690,8 +17690,8 @@ void main() {
|
|
|
17690
17690
|
p = this.eyeSep / 2;
|
|
17691
17691
|
var B = p * s / e, H = s * Math.tan(fi.DEG2RAD * i * 0.5) / f;
|
|
17692
17692
|
w.elements[12] = -p, v.elements[12] = p;
|
|
17693
|
-
var q = -H * n + B,
|
|
17694
|
-
P.elements[0] = 2 * s / (
|
|
17693
|
+
var q = -H * n + B, $ = H * n + B;
|
|
17694
|
+
P.elements[0] = 2 * s / ($ - q), P.elements[8] = ($ + q) / ($ - q), this.cameraL.projectionMatrix.copy(P), q = -H * n - B, $ = H * n - B, P.elements[0] = 2 * s / ($ - q), P.elements[8] = ($ + q) / ($ - q), this.cameraR.projectionMatrix.copy(P);
|
|
17695
17695
|
}
|
|
17696
17696
|
this.cameraL.matrixWorld.copy(C.matrixWorld).multiply(w), this.cameraR.matrixWorld.copy(C.matrixWorld).multiply(v);
|
|
17697
17697
|
};
|
|
@@ -18239,10 +18239,10 @@ void main() {
|
|
|
18239
18239
|
f[B].push(new Tn(P, s[B], l[B]));
|
|
18240
18240
|
} else if (H < i) {
|
|
18241
18241
|
v = t[H];
|
|
18242
|
-
var
|
|
18243
|
-
for (q = t[
|
|
18242
|
+
var $ = --i;
|
|
18243
|
+
for (q = t[$], n[q.uuid] = H, t[H] = q, n[B] = $, t[$] = P, B = 0, q = p; B !== q; ++B) {
|
|
18244
18244
|
var rt = f[B], xt = rt[H];
|
|
18245
|
-
rt[H] = rt[
|
|
18245
|
+
rt[H] = rt[$], xt === void 0 && (xt = new Tn(P, s[B], l[B])), rt[$] = xt;
|
|
18246
18246
|
}
|
|
18247
18247
|
} else
|
|
18248
18248
|
t[H] !== v && console.error(
|
|
@@ -19984,7 +19984,7 @@ void main() {
|
|
|
19984
19984
|
console.error(
|
|
19985
19985
|
"THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead."
|
|
19986
19986
|
);
|
|
19987
|
-
}, x.WebGLRenderTargetCube = A, x.WebGLRenderTarget = S, x.WebGLRenderer = xe, x.ShaderLib = ms, x.UniformsLib = qe, x.UniformsUtils = Dn, x.ShaderChunk = Ei, x.FogExp2 = Le, x.Fog = wn, x.Scene = Hn, x.Sprite = Qi, x.LOD = tn, x.SkinnedMesh = Fi, x.Skeleton = on, x.Bone = an, x.Mesh = pi, x.LineSegments = mi, x.LineLoop = os, x.Line = Vi, x.Points = $o, x.Group = ui, x.VideoTexture = dh, x.DataTexture = I, x.DataTexture3D = Q, x.CompressedTexture = Gs, x.CubeTexture = z, x.CanvasTexture = Ba, x.DepthTexture = Na, x.Texture = _, x.AnimationLoader = Qt, x.CompressedTextureLoader = Zt, x.DataTextureLoader = Ue, x.CubeTextureLoader = ki, x.TextureLoader = ln, x.ObjectLoader = Ja, x.MaterialLoader = Fl, x.BufferGeometryLoader = vh, x.DefaultLoadingManager = Kn, x.LoadingManager = Ys, x.JSONLoader = Po, x.ImageLoader = oi, x.ImageBitmapLoader = _h, x.FontLoader = ou, x.FileLoader = Lt, x.Loader = Os, x.LoaderUtils = Do, x.Cache = vs, x.AudioLoader = pn, x.SpotLightShadow = Ya, x.SpotLight = Za, x.PointLight = Ao, x.RectAreaLight = Nl, x.HemisphereLight = qa, x.DirectionalLightShadow = Js, x.DirectionalLight = ds, x.AmbientLight = Co, x.LightShadow = ps, x.Light = $i, x.StereoCamera = Gn, x.PerspectiveCamera = ye, x.OrthographicCamera = ca, x.CubeCamera = $a, x.ArrayCamera = Fe, x.Camera = Be, x.AudioListener = Gl, x.PositionalAudio = Ka, x.AudioContext = Lh, x.AudioAnalyser = Lo, x.Audio = fa, x.VectorKeyframeTrack = ha, x.StringKeyframeTrack = Bl, x.QuaternionKeyframeTrack = la, x.NumberKeyframeTrack = jr, x.ColorKeyframeTrack = kl, x.BooleanKeyframeTrack = zl, x.PropertyMixer = Qa, x.PropertyBinding = Tn, x.KeyframeTrack = Un, x.AnimationUtils = Wn, x.AnimationObjectGroup = pa, x.AnimationMixer = $s, x.AnimationClip = gr, x.Uniform = Hl, x.InstancedBufferGeometry = wh, x.BufferGeometry = Ft, x.Geometry = j, x.InterleavedBufferAttribute = Di, x.InstancedInterleavedBuffer = Th, x.InterleavedBuffer = Ii, x.InstancedBufferAttribute = Mh, x.Face3 = R, x.Object3D = N, x.Raycaster = au, x.Layers = U, x.EventDispatcher = a, x.Clock = xh, x.QuaternionLinearInterpolant = ir, x.LinearInterpolant = Ar, x.DiscreteInterpolant = bo, x.CubicInterpolant = Xa, x.Interpolant = Zn, x.Triangle = Oe, x.Math = fi, x.Spherical = Sh, x.Cylindrical = it, x.Plane = F, x.Frustum = E, x.Sphere = D, x.Ray = Li, x.Matrix4 = c, x.Matrix3 = m, x.Box3 = k, x.Box2 = Ks, x.Line3 = da, x.Euler = b, x.Vector4 = y, x.Vector3 = u, x.Vector2 = o, x.Quaternion = d, x.Color = L, x.ImmediateRenderObject = Vn, x.VertexNormalsHelper = _i, x.SpotLightHelper = ma, x.SkeletonHelper = ga, x.PointLightHelper = Pr, x.RectAreaLightHelper = va, x.HemisphereLightHelper = _a, x.GridHelper = il, x.PolarGridHelper = Vl, x.FaceNormalsHelper = nl, x.DirectionalLightHelper = lr, x.CameraHelper = rl, x.BoxHelper = Is, x.Box3Helper = sl, x.PlaneHelper = ol, x.ArrowHelper = Ds, x.AxesHelper = vr, x.Shape = $n, x.Path = ar, x.ShapePath = Ul, x.Font = yh, x.CurvePath = Rs, x.Curve = Ee, x.ImageUtils = Qs, x.ShapeUtils = gs, x.WebGLUtils = He, x.WireframeGeometry = Ko, x.ParametricGeometry = Fa, x.ParametricBufferGeometry = Qo, x.TetrahedronGeometry = Ua, x.TetrahedronBufferGeometry = ta, x.OctahedronGeometry = Ga, x.OctahedronBufferGeometry = fo, x.IcosahedronGeometry = Ha, x.IcosahedronBufferGeometry = ea, x.DodecahedronGeometry = ia, x.DodecahedronBufferGeometry = na, x.PolyhedronGeometry = Wi, x.PolyhedronBufferGeometry = yi, x.TubeGeometry = fn, x.TubeBufferGeometry = Hs, x.TorusKnotGeometry = Vr, x.TorusKnotBufferGeometry = po, x.TorusGeometry = mo, x.TorusBufferGeometry = Nn, x.TextGeometry = Wa, x.TextBufferGeometry = vo, x.SphereGeometry = Vs, x.SphereBufferGeometry = Er, x.RingGeometry = ja, x.RingBufferGeometry = _o, x.PlaneGeometry = ke, x.PlaneBufferGeometry = ce, x.LatheGeometry = oa, x.LatheBufferGeometry = Ws, x.ShapeGeometry = Cs, x.ShapeBufferGeometry = js, x.ExtrudeGeometry = As, x.ExtrudeBufferGeometry = ls, x.EdgesGeometry = Xs, x.ConeGeometry = aa, x.ConeBufferGeometry = Fn, x.CylinderGeometry = Ps, x.CylinderBufferGeometry = Ls, x.CircleGeometry = yo, x.CircleBufferGeometry = hs, x.BoxGeometry = Ot, x.BoxBufferGeometry = Bt, x.ShadowMaterial = qs, x.SpriteMaterial = Ui, x.RawShaderMaterial = xo, x.ShaderMaterial = $e, x.PointsMaterial = Bn, x.MeshPhysicalMaterial = wo, x.MeshStandardMaterial = us, x.MeshPhongMaterial = Wr, x.MeshToonMaterial = To, x.MeshNormalMaterial = Mo, x.MeshLambertMaterial = br, x.MeshDepthMaterial = oe, x.MeshDistanceMaterial = te, x.MeshBasicMaterial = Ge, x.MeshMatcapMaterial = So, x.LineDashedMaterial = Eo, x.LineBasicMaterial = zi, x.Material = Yt, x.Float64BufferAttribute = Ct, x.Float32BufferAttribute = Et, x.Uint32BufferAttribute = Pt, x.Int32BufferAttribute = G, x.Uint16BufferAttribute = yt, x.Int16BufferAttribute = et, x.Uint8ClampedBufferAttribute = It, x.Uint8BufferAttribute = ct, x.Int8BufferAttribute =
|
|
19987
|
+
}, x.WebGLRenderTargetCube = A, x.WebGLRenderTarget = S, x.WebGLRenderer = xe, x.ShaderLib = ms, x.UniformsLib = qe, x.UniformsUtils = Dn, x.ShaderChunk = Ei, x.FogExp2 = Le, x.Fog = wn, x.Scene = Hn, x.Sprite = Qi, x.LOD = tn, x.SkinnedMesh = Fi, x.Skeleton = on, x.Bone = an, x.Mesh = pi, x.LineSegments = mi, x.LineLoop = os, x.Line = Vi, x.Points = $o, x.Group = ui, x.VideoTexture = dh, x.DataTexture = I, x.DataTexture3D = Q, x.CompressedTexture = Gs, x.CubeTexture = z, x.CanvasTexture = Ba, x.DepthTexture = Na, x.Texture = _, x.AnimationLoader = Qt, x.CompressedTextureLoader = Zt, x.DataTextureLoader = Ue, x.CubeTextureLoader = ki, x.TextureLoader = ln, x.ObjectLoader = Ja, x.MaterialLoader = Fl, x.BufferGeometryLoader = vh, x.DefaultLoadingManager = Kn, x.LoadingManager = Ys, x.JSONLoader = Po, x.ImageLoader = oi, x.ImageBitmapLoader = _h, x.FontLoader = ou, x.FileLoader = Lt, x.Loader = Os, x.LoaderUtils = Do, x.Cache = vs, x.AudioLoader = pn, x.SpotLightShadow = Ya, x.SpotLight = Za, x.PointLight = Ao, x.RectAreaLight = Nl, x.HemisphereLight = qa, x.DirectionalLightShadow = Js, x.DirectionalLight = ds, x.AmbientLight = Co, x.LightShadow = ps, x.Light = $i, x.StereoCamera = Gn, x.PerspectiveCamera = ye, x.OrthographicCamera = ca, x.CubeCamera = $a, x.ArrayCamera = Fe, x.Camera = Be, x.AudioListener = Gl, x.PositionalAudio = Ka, x.AudioContext = Lh, x.AudioAnalyser = Lo, x.Audio = fa, x.VectorKeyframeTrack = ha, x.StringKeyframeTrack = Bl, x.QuaternionKeyframeTrack = la, x.NumberKeyframeTrack = jr, x.ColorKeyframeTrack = kl, x.BooleanKeyframeTrack = zl, x.PropertyMixer = Qa, x.PropertyBinding = Tn, x.KeyframeTrack = Un, x.AnimationUtils = Wn, x.AnimationObjectGroup = pa, x.AnimationMixer = $s, x.AnimationClip = gr, x.Uniform = Hl, x.InstancedBufferGeometry = wh, x.BufferGeometry = Ft, x.Geometry = j, x.InterleavedBufferAttribute = Di, x.InstancedInterleavedBuffer = Th, x.InterleavedBuffer = Ii, x.InstancedBufferAttribute = Mh, x.Face3 = R, x.Object3D = N, x.Raycaster = au, x.Layers = U, x.EventDispatcher = a, x.Clock = xh, x.QuaternionLinearInterpolant = ir, x.LinearInterpolant = Ar, x.DiscreteInterpolant = bo, x.CubicInterpolant = Xa, x.Interpolant = Zn, x.Triangle = Oe, x.Math = fi, x.Spherical = Sh, x.Cylindrical = it, x.Plane = F, x.Frustum = E, x.Sphere = D, x.Ray = Li, x.Matrix4 = c, x.Matrix3 = m, x.Box3 = k, x.Box2 = Ks, x.Line3 = da, x.Euler = b, x.Vector4 = y, x.Vector3 = u, x.Vector2 = o, x.Quaternion = d, x.Color = L, x.ImmediateRenderObject = Vn, x.VertexNormalsHelper = _i, x.SpotLightHelper = ma, x.SkeletonHelper = ga, x.PointLightHelper = Pr, x.RectAreaLightHelper = va, x.HemisphereLightHelper = _a, x.GridHelper = il, x.PolarGridHelper = Vl, x.FaceNormalsHelper = nl, x.DirectionalLightHelper = lr, x.CameraHelper = rl, x.BoxHelper = Is, x.Box3Helper = sl, x.PlaneHelper = ol, x.ArrowHelper = Ds, x.AxesHelper = vr, x.Shape = $n, x.Path = ar, x.ShapePath = Ul, x.Font = yh, x.CurvePath = Rs, x.Curve = Ee, x.ImageUtils = Qs, x.ShapeUtils = gs, x.WebGLUtils = He, x.WireframeGeometry = Ko, x.ParametricGeometry = Fa, x.ParametricBufferGeometry = Qo, x.TetrahedronGeometry = Ua, x.TetrahedronBufferGeometry = ta, x.OctahedronGeometry = Ga, x.OctahedronBufferGeometry = fo, x.IcosahedronGeometry = Ha, x.IcosahedronBufferGeometry = ea, x.DodecahedronGeometry = ia, x.DodecahedronBufferGeometry = na, x.PolyhedronGeometry = Wi, x.PolyhedronBufferGeometry = yi, x.TubeGeometry = fn, x.TubeBufferGeometry = Hs, x.TorusKnotGeometry = Vr, x.TorusKnotBufferGeometry = po, x.TorusGeometry = mo, x.TorusBufferGeometry = Nn, x.TextGeometry = Wa, x.TextBufferGeometry = vo, x.SphereGeometry = Vs, x.SphereBufferGeometry = Er, x.RingGeometry = ja, x.RingBufferGeometry = _o, x.PlaneGeometry = ke, x.PlaneBufferGeometry = ce, x.LatheGeometry = oa, x.LatheBufferGeometry = Ws, x.ShapeGeometry = Cs, x.ShapeBufferGeometry = js, x.ExtrudeGeometry = As, x.ExtrudeBufferGeometry = ls, x.EdgesGeometry = Xs, x.ConeGeometry = aa, x.ConeBufferGeometry = Fn, x.CylinderGeometry = Ps, x.CylinderBufferGeometry = Ls, x.CircleGeometry = yo, x.CircleBufferGeometry = hs, x.BoxGeometry = Ot, x.BoxBufferGeometry = Bt, x.ShadowMaterial = qs, x.SpriteMaterial = Ui, x.RawShaderMaterial = xo, x.ShaderMaterial = $e, x.PointsMaterial = Bn, x.MeshPhysicalMaterial = wo, x.MeshStandardMaterial = us, x.MeshPhongMaterial = Wr, x.MeshToonMaterial = To, x.MeshNormalMaterial = Mo, x.MeshLambertMaterial = br, x.MeshDepthMaterial = oe, x.MeshDistanceMaterial = te, x.MeshBasicMaterial = Ge, x.MeshMatcapMaterial = So, x.LineDashedMaterial = Eo, x.LineBasicMaterial = zi, x.Material = Yt, x.Float64BufferAttribute = Ct, x.Float32BufferAttribute = Et, x.Uint32BufferAttribute = Pt, x.Int32BufferAttribute = G, x.Uint16BufferAttribute = yt, x.Int16BufferAttribute = et, x.Uint8ClampedBufferAttribute = It, x.Uint8BufferAttribute = ct, x.Int8BufferAttribute = K, x.BufferAttribute = J, x.ArcCurve = ua, x.CatmullRomCurve3 = Pn, x.CubicBezierCurve = rr, x.CubicBezierCurve3 = wi, x.EllipseCurve = Jn, x.LineCurve = sr, x.LineCurve3 = Cr, x.QuadraticBezierCurve = or, x.QuadraticBezierCurve3 = fs, x.SplineCurve = Xr, x.REVISION = "98", x.MOUSE = { LEFT: 0, MIDDLE: 1, RIGHT: 2 }, x.CullFaceNone = 0, x.CullFaceBack = 1, x.CullFaceFront = 2, x.CullFaceFrontBack = 3, x.FrontFaceDirectionCW = 0, x.FrontFaceDirectionCCW = 1, x.BasicShadowMap = 0, x.PCFShadowMap = 1, x.PCFSoftShadowMap = 2, x.FrontSide = 0, x.BackSide = 1, x.DoubleSide = 2, x.FlatShading = 1, x.SmoothShading = 2, x.NoColors = 0, x.FaceColors = 1, x.VertexColors = 2, x.NoBlending = 0, x.NormalBlending = 1, x.AdditiveBlending = 2, x.SubtractiveBlending = 3, x.MultiplyBlending = 4, x.CustomBlending = 5, x.AddEquation = 100, x.SubtractEquation = 101, x.ReverseSubtractEquation = 102, x.MinEquation = 103, x.MaxEquation = 104, x.ZeroFactor = 200, x.OneFactor = 201, x.SrcColorFactor = 202, x.OneMinusSrcColorFactor = 203, x.SrcAlphaFactor = 204, x.OneMinusSrcAlphaFactor = 205, x.DstAlphaFactor = 206, x.OneMinusDstAlphaFactor = 207, x.DstColorFactor = 208, x.OneMinusDstColorFactor = 209, x.SrcAlphaSaturateFactor = 210, x.NeverDepth = 0, x.AlwaysDepth = 1, x.LessDepth = 2, x.LessEqualDepth = 3, x.EqualDepth = 4, x.GreaterEqualDepth = 5, x.GreaterDepth = 6, x.NotEqualDepth = 7, x.MultiplyOperation = 0, x.MixOperation = 1, x.AddOperation = 2, x.NoToneMapping = 0, x.LinearToneMapping = 1, x.ReinhardToneMapping = 2, x.Uncharted2ToneMapping = 3, x.CineonToneMapping = 4, x.UVMapping = 300, x.CubeReflectionMapping = 301, x.CubeRefractionMapping = 302, x.EquirectangularReflectionMapping = 303, x.EquirectangularRefractionMapping = 304, x.SphericalReflectionMapping = 305, x.CubeUVReflectionMapping = 306, x.CubeUVRefractionMapping = 307, x.RepeatWrapping = 1e3, x.ClampToEdgeWrapping = 1001, x.MirroredRepeatWrapping = 1002, x.NearestFilter = 1003, x.NearestMipMapNearestFilter = 1004, x.NearestMipMapLinearFilter = 1005, x.LinearFilter = 1006, x.LinearMipMapNearestFilter = 1007, x.LinearMipMapLinearFilter = 1008, x.UnsignedByteType = 1009, x.ByteType = 1010, x.ShortType = 1011, x.UnsignedShortType = 1012, x.IntType = 1013, x.UnsignedIntType = 1014, x.FloatType = 1015, x.HalfFloatType = 1016, x.UnsignedShort4444Type = 1017, x.UnsignedShort5551Type = 1018, x.UnsignedShort565Type = 1019, x.UnsignedInt248Type = 1020, x.AlphaFormat = 1021, x.RGBFormat = 1022, x.RGBAFormat = 1023, x.LuminanceFormat = 1024, x.LuminanceAlphaFormat = 1025, x.RGBEFormat = 1023, x.DepthFormat = 1026, x.DepthStencilFormat = 1027, x.RedFormat = 1028, x.RGB_S3TC_DXT1_Format = 33776, x.RGBA_S3TC_DXT1_Format = 33777, x.RGBA_S3TC_DXT3_Format = 33778, x.RGBA_S3TC_DXT5_Format = 33779, x.RGB_PVRTC_4BPPV1_Format = 35840, x.RGB_PVRTC_2BPPV1_Format = 35841, x.RGBA_PVRTC_4BPPV1_Format = 35842, x.RGBA_PVRTC_2BPPV1_Format = 35843, x.RGB_ETC1_Format = 36196, x.RGBA_ASTC_4x4_Format = 37808, x.RGBA_ASTC_5x4_Format = 37809, x.RGBA_ASTC_5x5_Format = 37810, x.RGBA_ASTC_6x5_Format = 37811, x.RGBA_ASTC_6x6_Format = 37812, x.RGBA_ASTC_8x5_Format = 37813, x.RGBA_ASTC_8x6_Format = 37814, x.RGBA_ASTC_8x8_Format = 37815, x.RGBA_ASTC_10x5_Format = 37816, x.RGBA_ASTC_10x6_Format = 37817, x.RGBA_ASTC_10x8_Format = 37818, x.RGBA_ASTC_10x10_Format = 37819, x.RGBA_ASTC_12x10_Format = 37820, x.RGBA_ASTC_12x12_Format = 37821, x.LoopOnce = 2200, x.LoopRepeat = 2201, x.LoopPingPong = 2202, x.InterpolateDiscrete = 2300, x.InterpolateLinear = 2301, x.InterpolateSmooth = 2302, x.ZeroCurvatureEnding = 2400, x.ZeroSlopeEnding = 2401, x.WrapAroundEnding = 2402, x.TrianglesDrawMode = 0, x.TriangleStripDrawMode = 1, x.TriangleFanDrawMode = 2, x.LinearEncoding = 3e3, x.sRGBEncoding = 3001, x.GammaEncoding = 3007, x.RGBEEncoding = 3002, x.LogLuvEncoding = 3003, x.RGBM7Encoding = 3004, x.RGBM16Encoding = 3005, x.RGBDEncoding = 3006, x.BasicDepthPacking = 3200, x.RGBADepthPacking = 3201, x.TangentSpaceNormalMap = 0, x.ObjectSpaceNormalMap = 1, x.CubeGeometry = Ot, x.Face4 = function(t, e, i, n, s, l, f) {
|
|
19988
19988
|
return console.warn(
|
|
19989
19989
|
"THREE.Face4 has been removed. A THREE.Face3 will be created instead."
|
|
19990
19990
|
), new R(t, e, i, s, l, f);
|
|
@@ -20023,7 +20023,7 @@ void main() {
|
|
|
20023
20023
|
}, x.Int8Attribute = function(t, e) {
|
|
20024
20024
|
return console.warn(
|
|
20025
20025
|
"THREE.Int8Attribute has been removed. Use new THREE.Int8BufferAttribute() instead."
|
|
20026
|
-
), new
|
|
20026
|
+
), new K(t, e);
|
|
20027
20027
|
}, x.Uint8Attribute = function(t, e) {
|
|
20028
20028
|
return console.warn(
|
|
20029
20029
|
"THREE.Uint8Attribute has been removed. Use new THREE.Uint8BufferAttribute() instead."
|
|
@@ -20333,25 +20333,28 @@ class d1 {
|
|
|
20333
20333
|
* @param { Object } customAttributes 自定义属性
|
|
20334
20334
|
*/
|
|
20335
20335
|
add(a, o, c) {
|
|
20336
|
-
console.log("customAttributes", c);
|
|
20337
20336
|
let d = c == null ? void 0 : c.isClone;
|
|
20338
20337
|
const u = /* @__PURE__ */ new Map([
|
|
20339
20338
|
["click", mars3d.EventType.click],
|
|
20340
20339
|
["initialTilesLoaded", mars3d.EventType.initialTilesLoaded]
|
|
20341
20340
|
]);
|
|
20342
20341
|
return new Promise((m, _) => {
|
|
20343
|
-
let y, S, A, I, k, D, F, E, L
|
|
20342
|
+
let y, S, A, I, k, D, F, E, L, T = {
|
|
20343
|
+
enabled: !0,
|
|
20344
|
+
precise: !1,
|
|
20345
|
+
czm: !1
|
|
20346
|
+
// maxCanvasSize: 7000,
|
|
20347
|
+
}, M = { enabled: !0, precise: !1, czm: !1 };
|
|
20344
20348
|
if (typeof a != "object") {
|
|
20345
20349
|
let b = this.query(a);
|
|
20346
20350
|
b || _("缺少树结构");
|
|
20347
20351
|
let { id: U, bimModelExcavationDetails: N, bimModel: j } = b;
|
|
20348
20352
|
y = U, S = j.modelType, A = j.tender, I = j.releasedDistance, k = j.modelName, D = j.isDynamicReleased, F = {
|
|
20349
20353
|
bimModelExcavationDetails: N
|
|
20350
|
-
}, E = b.url, L = j.modelColor;
|
|
20354
|
+
}, E = b.url, L = j.modelColor, T.maxCanvasSize = j.gridResolution;
|
|
20351
20355
|
} else
|
|
20352
|
-
y = a.modelId, S = a.modelType, A = a.tender, I = a.releasedDistance, k = a.modelTitle, D = a.permission, F = a.customize, E = a.url, L = a.color;
|
|
20353
|
-
|
|
20354
|
-
c && (c.color && (L = c.color), c.clip && (T.area = c.clip.handleDataList), c.flat && (M.area = c.flat.handleDataList));
|
|
20356
|
+
y = a.modelId, S = a.modelType, A = a.tender, I = a.releasedDistance, k = a.modelTitle, D = a.permission, F = a.customize, E = a.url, L = a.color, T.maxCanvasSize = a.maxCanvasSize;
|
|
20357
|
+
c && (c.color && (L = c.color), c.clip && (T.area = c.clip.handleDataList), c.flat && (M.area = c.flat.handleDataList), c.maxCanvasSize && (T.maxCanvasSize = c.maxCanvasSize || 4080));
|
|
20355
20358
|
let R = window.map.getLayer(a, "modelId");
|
|
20356
20359
|
if (R)
|
|
20357
20360
|
return m(R), c.color && this.editColor(
|
|
@@ -20393,40 +20396,20 @@ class d1 {
|
|
|
20393
20396
|
clip: T,
|
|
20394
20397
|
flat: M,
|
|
20395
20398
|
maximumScreenSpaceError: 16
|
|
20396
|
-
/**
|
|
20397
|
-
* maximumMemoryUsage 移除
|
|
20398
|
-
*/
|
|
20399
|
-
// maximumMemoryUsage: 1024,
|
|
20400
|
-
// cacheBytes: 1073741824 * 2, // 1024MB = 1024*1024*1024
|
|
20401
|
-
// maximumCacheOverflowBytes: 2147483648 * 2, // 2048MB = 2048*1024*1024
|
|
20402
|
-
// 1.04版本
|
|
20403
20399
|
// customShader: new Cesium.CustomShader({
|
|
20404
20400
|
// lightingModel: Cesium.LightingModel.UNLIT,
|
|
20405
20401
|
// }),
|
|
20406
|
-
// customShader: new Cesium.CustomShader({
|
|
20407
|
-
// lightingModel: Cesium.LightingModel.PBR,
|
|
20408
|
-
// fragmentShaderText: `
|
|
20409
|
-
// void fragmentMain(FragmentInput fsInput, inout czm_modelMaterial material)
|
|
20410
|
-
// {
|
|
20411
|
-
// material.diffuse = vec3(0.0, 0.0, 1.0);
|
|
20412
|
-
// material.diffuse.g = -fsInput.attributes.positionEC.z / 1.0e4;
|
|
20413
|
-
// } `,
|
|
20414
|
-
// }),
|
|
20415
20402
|
}), this.tilesetLayer.bindPopup((j) => {
|
|
20416
20403
|
if (j.graphic) {
|
|
20417
20404
|
const J = j.graphic.attr;
|
|
20418
|
-
let
|
|
20419
|
-
return JSON.stringify(J) !== "{}" ? (J.name && (
|
|
20405
|
+
let K = null, ct = null;
|
|
20406
|
+
return JSON.stringify(J) !== "{}" ? (J.name && (K = J.name.lastIndexOf("@")), K && K > -1 && (ct = J.name.slice(0, K)), J.name ? ` <span>${ct || J.name}</span> ` : ` <span>${k}</span> `) : ` <span>${k}</span> `;
|
|
20420
20407
|
} else
|
|
20421
20408
|
return ` <span>${k}</span> `;
|
|
20422
20409
|
}), this.tilesetLayer.readyPromise.then((j) => {
|
|
20423
20410
|
m(j);
|
|
20424
|
-
let { modelId: J } = j.options;
|
|
20425
|
-
j.clip.options.area.forEach(($) => {
|
|
20426
|
-
window.bimClip.activeObj[J][$.id].id == null && (window.bimClip.activeObj[J][$.id].id = $.id);
|
|
20427
|
-
});
|
|
20428
20411
|
}).catch((j) => {
|
|
20429
|
-
m();
|
|
20412
|
+
console.log("加载失败", j), m();
|
|
20430
20413
|
}), this.tilesetLayer.on("click", (j) => {
|
|
20431
20414
|
j.layer.style == null && map.bimMapEdit == "0" && j.layer.openHighlight(
|
|
20432
20415
|
{
|
|
@@ -20714,13 +20697,13 @@ var Bu = { exports: {} };
|
|
|
20714
20697
|
Bu.exports;
|
|
20715
20698
|
(function(x, a) {
|
|
20716
20699
|
(function() {
|
|
20717
|
-
var o, c = "4.17.21", d = 200, u = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", m = "Expected a function", _ = "Invalid `variable` option passed into `_.template`", y = "__lodash_hash_undefined__", S = 500, A = "__lodash_placeholder__", I = 1, k = 2, D = 4, F = 1, E = 2, L = 1, T = 2, M = 4, R = 8, b = 16, U = 32, N = 64, j = 128, J = 256,
|
|
20700
|
+
var o, c = "4.17.21", d = 200, u = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", m = "Expected a function", _ = "Invalid `variable` option passed into `_.template`", y = "__lodash_hash_undefined__", S = 500, A = "__lodash_placeholder__", I = 1, k = 2, D = 4, F = 1, E = 2, L = 1, T = 2, M = 4, R = 8, b = 16, U = 32, N = 64, j = 128, J = 256, K = 512, ct = 30, It = "...", et = 800, yt = 16, G = 1, Pt = 2, Et = 3, Ct = 1 / 0, fe = 9007199254740991, re = 17976931348623157e292, Ft = 0 / 0, Ot = 4294967295, Bt = Ot - 1, ke = Ot >>> 1, ce = [
|
|
20718
20701
|
["ary", j],
|
|
20719
20702
|
["bind", L],
|
|
20720
20703
|
["bindKey", T],
|
|
20721
20704
|
["curry", R],
|
|
20722
20705
|
["curryRight", b],
|
|
20723
|
-
["flip",
|
|
20706
|
+
["flip", K],
|
|
20724
20707
|
["partial", U],
|
|
20725
20708
|
["partialRight", N],
|
|
20726
20709
|
["rearg", J]
|
|
@@ -21837,7 +21820,7 @@ Bu.exports;
|
|
|
21837
21820
|
wi.call(r, g) && g != "constructor" && h.push(g);
|
|
21838
21821
|
return h;
|
|
21839
21822
|
}
|
|
21840
|
-
function
|
|
21823
|
+
function $(r) {
|
|
21841
21824
|
if (!vn(r))
|
|
21842
21825
|
return em(r);
|
|
21843
21826
|
var h = kh(r), g = [];
|
|
@@ -22369,7 +22352,7 @@ Bu.exports;
|
|
|
22369
22352
|
});
|
|
22370
22353
|
}
|
|
22371
22354
|
function Zi(r, h, g, O, Y, ut, _t, bt, Nt, se) {
|
|
22372
|
-
var le = h & j, de = h & L, ze = h & T, Je = h & (R | b), li = h &
|
|
22355
|
+
var le = h & j, de = h & L, ze = h & T, Je = h & (R | b), li = h & K, Ti = ze ? o : Ve(r);
|
|
22373
22356
|
function hi() {
|
|
22374
22357
|
for (var Ci = arguments.length, Bi = Zt(Ci), Zr = Ci; Zr--; )
|
|
22375
22358
|
Bi[Zr] = arguments[Zr];
|
|
@@ -23479,7 +23462,7 @@ Bu.exports;
|
|
|
23479
23462
|
return gs(r, ws(h) || 0, g);
|
|
23480
23463
|
});
|
|
23481
23464
|
function Gg(r) {
|
|
23482
|
-
return tr(r,
|
|
23465
|
+
return tr(r, K);
|
|
23483
23466
|
}
|
|
23484
23467
|
function Eu(r, h) {
|
|
23485
23468
|
if (typeof r != "function" || h != null && typeof h != "function")
|
|
@@ -23836,7 +23819,7 @@ Bu.exports;
|
|
|
23836
23819
|
return Or(r) ? cu(r) : q(r);
|
|
23837
23820
|
}
|
|
23838
23821
|
function Ir(r) {
|
|
23839
|
-
return Or(r) ? cu(r, !0) :
|
|
23822
|
+
return Or(r) ? cu(r, !0) : $(r);
|
|
23840
23823
|
}
|
|
23841
23824
|
function V0(r, h) {
|
|
23842
23825
|
var g = {};
|
|
@@ -24449,7 +24432,7 @@ class m1 {
|
|
|
24449
24432
|
materialOptions: N,
|
|
24450
24433
|
clampToGround: j,
|
|
24451
24434
|
distanceDisplayCondition: J,
|
|
24452
|
-
distanceDisplayCondition_near:
|
|
24435
|
+
distanceDisplayCondition_near: K,
|
|
24453
24436
|
distanceDisplayCondition_far: ct,
|
|
24454
24437
|
zIndex: It,
|
|
24455
24438
|
label: et,
|
|
@@ -24487,7 +24470,7 @@ class m1 {
|
|
|
24487
24470
|
clampToGround: j,
|
|
24488
24471
|
distanceDisplayCondition: J,
|
|
24489
24472
|
distanceDisplayCondition_far: ct,
|
|
24490
|
-
distanceDisplayCondition_near:
|
|
24473
|
+
distanceDisplayCondition_near: K,
|
|
24491
24474
|
materialType: U,
|
|
24492
24475
|
materialOptions: N,
|
|
24493
24476
|
classificationType: Ot,
|
|
@@ -24520,7 +24503,7 @@ class m1 {
|
|
|
24520
24503
|
materialOptions: N,
|
|
24521
24504
|
distanceDisplayCondition: J,
|
|
24522
24505
|
distanceDisplayCondition_far: ct,
|
|
24523
|
-
distanceDisplayCondition_near:
|
|
24506
|
+
distanceDisplayCondition_near: K,
|
|
24524
24507
|
outlineStyle: Et,
|
|
24525
24508
|
outline: Pt,
|
|
24526
24509
|
classificationType: Ot,
|
|
@@ -25238,7 +25221,7 @@ class y1 {
|
|
|
25238
25221
|
this.on(a, c);
|
|
25239
25222
|
}
|
|
25240
25223
|
/**
|
|
25241
|
-
*
|
|
25224
|
+
* 添加标绘实例
|
|
25242
25225
|
* @param { String } modelParameter 标绘实例id 或者 标绘参数
|
|
25243
25226
|
*
|
|
25244
25227
|
*/
|
|
@@ -25267,7 +25250,7 @@ class y1 {
|
|
|
25267
25250
|
});
|
|
25268
25251
|
}
|
|
25269
25252
|
/**
|
|
25270
|
-
*
|
|
25253
|
+
* 查询标绘数据的对象
|
|
25271
25254
|
* @param { String } id 矢量id
|
|
25272
25255
|
* @returns { Object || Boolean } 查询出来的树对象 或者 false
|
|
25273
25256
|
*/
|
|
@@ -25713,7 +25696,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
25713
25696
|
return L;
|
|
25714
25697
|
}
|
|
25715
25698
|
function m(D, F, E, L, T, M) {
|
|
25716
|
-
var R, b, U = D.file, N = D.compression, j = M !== S.utf8encode, J = _.transformTo("string", M(U.name)),
|
|
25699
|
+
var R, b, U = D.file, N = D.compression, j = M !== S.utf8encode, J = _.transformTo("string", M(U.name)), K = _.transformTo("string", S.utf8encode(U.name)), ct = U.comment, It = _.transformTo("string", M(ct)), et = _.transformTo("string", S.utf8encode(ct)), yt = K.length !== U.name.length, G = et.length !== ct.length, Pt = "", Et = "", Ct = "", fe = U.dir, re = U.date, Ft = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
|
|
25717
25700
|
F && !E || (Ft.crc32 = D.crc32, Ft.compressedSize = D.compressedSize, Ft.uncompressedSize = D.uncompressedSize);
|
|
25718
25701
|
var Ot = 0;
|
|
25719
25702
|
F && (Ot |= 8), j || !yt && !G || (Ot |= 2048);
|
|
@@ -25723,7 +25706,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
25723
25706
|
return Yt || (Li = $e ? 16893 : 33204), (65535 & Li) << 16;
|
|
25724
25707
|
}(U.unixPermissions, fe)) : (ke = 20, Bt |= function(Yt) {
|
|
25725
25708
|
return 63 & (Yt || 0);
|
|
25726
|
-
}(U.dosPermissions)), R = re.getUTCHours(), R <<= 6, R |= re.getUTCMinutes(), R <<= 5, R |= re.getUTCSeconds() / 2, b = re.getUTCFullYear() - 1980, b <<= 4, b |= re.getUTCMonth() + 1, b <<= 5, b |= re.getUTCDate(), yt && (Et = u(1, 1) + u(A(J), 4) +
|
|
25709
|
+
}(U.dosPermissions)), R = re.getUTCHours(), R <<= 6, R |= re.getUTCMinutes(), R <<= 5, R |= re.getUTCSeconds() / 2, b = re.getUTCFullYear() - 1980, b <<= 4, b |= re.getUTCMonth() + 1, b <<= 5, b |= re.getUTCDate(), yt && (Et = u(1, 1) + u(A(J), 4) + K, Pt += "up" + u(Et.length, 2) + Et), G && (Ct = u(1, 1) + u(A(It), 4) + et, Pt += "uc" + u(Ct.length, 2) + Ct);
|
|
25727
25710
|
var ce = "";
|
|
25728
25711
|
return ce += `
|
|
25729
25712
|
\0`, ce += u(Ot, 2), ce += N.magic, ce += u(R, 2), ce += u(b, 2), ce += u(Ft.crc32, 4), ce += u(Ft.compressedSize, 4), ce += u(Ft.uncompressedSize, 4), ce += u(J.length, 2), ce += u(Pt.length, 2), { fileRecord: I.LOCAL_FILE_HEADER + ce + J + Pt, dirRecord: I.CENTRAL_FILE_HEADER + u(ke, 2) + ce + u(It.length, 2) + "\0\0\0\0" + u(Bt, 4) + u(L, 4) + J + Pt + It };
|
|
@@ -25912,10 +25895,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
25912
25895
|
} };
|
|
25913
25896
|
}, {}], 15: [function(o, c, d) {
|
|
25914
25897
|
function u(U, N, j) {
|
|
25915
|
-
var J,
|
|
25898
|
+
var J, K = _.getTypeOf(N), ct = _.extend(j || {}, A);
|
|
25916
25899
|
ct.date = ct.date || /* @__PURE__ */ new Date(), ct.compression !== null && (ct.compression = ct.compression.toUpperCase()), typeof ct.unixPermissions == "string" && (ct.unixPermissions = parseInt(ct.unixPermissions, 8)), ct.unixPermissions && 16384 & ct.unixPermissions && (ct.dir = !0), ct.dosPermissions && 16 & ct.dosPermissions && (ct.dir = !0), ct.dir && (U = T(U)), ct.createFolders && (J = L(U)) && M.call(this, J, !0);
|
|
25917
|
-
var It =
|
|
25918
|
-
j && j.binary !== void 0 || (ct.binary = !It), (N instanceof I && N.uncompressedSize === 0 || ct.dir || !N || N.length === 0) && (ct.base64 = !1, ct.binary = !0, N = "", ct.compression = "STORE",
|
|
25900
|
+
var It = K === "string" && ct.binary === !1 && ct.base64 === !1;
|
|
25901
|
+
j && j.binary !== void 0 || (ct.binary = !It), (N instanceof I && N.uncompressedSize === 0 || ct.dir || !N || N.length === 0) && (ct.base64 = !1, ct.binary = !0, N = "", ct.compression = "STORE", K = "string");
|
|
25919
25902
|
var et = null;
|
|
25920
25903
|
et = N instanceof I || N instanceof y ? N : F.isNode && F.isStream(N) ? new E(U, N) : _.prepareContent(U, N, ct.binary, ct.optimizedBinaryString, ct.base64);
|
|
25921
25904
|
var yt = new k(U, et, ct);
|
|
@@ -25953,14 +25936,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
25953
25936
|
return !It.dir && J.test(ct);
|
|
25954
25937
|
});
|
|
25955
25938
|
}
|
|
25956
|
-
var
|
|
25957
|
-
return
|
|
25939
|
+
var K = this.files[this.root + U];
|
|
25940
|
+
return K && !K.dir ? K : null;
|
|
25958
25941
|
}, folder: function(U) {
|
|
25959
25942
|
if (!U)
|
|
25960
25943
|
return this;
|
|
25961
25944
|
if (R(U))
|
|
25962
|
-
return this.filter(function(
|
|
25963
|
-
return ct.dir && U.test(
|
|
25945
|
+
return this.filter(function(K, ct) {
|
|
25946
|
+
return ct.dir && U.test(K);
|
|
25964
25947
|
});
|
|
25965
25948
|
var N = this.root + U, j = M.call(this, N), J = this.clone();
|
|
25966
25949
|
return J.root = j.name, J;
|
|
@@ -25970,7 +25953,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
25970
25953
|
if (N || (U.slice(-1) !== "/" && (U += "/"), N = this.files[U]), N && !N.dir)
|
|
25971
25954
|
delete this.files[U];
|
|
25972
25955
|
else
|
|
25973
|
-
for (var j = this.filter(function(
|
|
25956
|
+
for (var j = this.filter(function(K, ct) {
|
|
25974
25957
|
return ct.name.slice(0, U.length) === U;
|
|
25975
25958
|
}), J = 0; J < j.length; J++)
|
|
25976
25959
|
delete this.files[j[J].name];
|
|
@@ -25985,8 +25968,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
25985
25968
|
_.checkSupport(j.type), j.platform !== "darwin" && j.platform !== "freebsd" && j.platform !== "linux" && j.platform !== "sunos" || (j.platform = "UNIX"), j.platform === "win32" && (j.platform = "DOS");
|
|
25986
25969
|
var J = j.comment || this.comment || "";
|
|
25987
25970
|
N = D.generateWorker(this, j, J);
|
|
25988
|
-
} catch (
|
|
25989
|
-
(N = new y("error")).error(
|
|
25971
|
+
} catch (K) {
|
|
25972
|
+
(N = new y("error")).error(K);
|
|
25990
25973
|
}
|
|
25991
25974
|
return new S(N, j.type || "string", j.mimeType);
|
|
25992
25975
|
}, generateAsync: function(U, N) {
|
|
@@ -26237,27 +26220,27 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26237
26220
|
M = [], T(N);
|
|
26238
26221
|
}).on("end", function() {
|
|
26239
26222
|
try {
|
|
26240
|
-
var N = function(j, J,
|
|
26223
|
+
var N = function(j, J, K) {
|
|
26241
26224
|
switch (j) {
|
|
26242
26225
|
case "blob":
|
|
26243
|
-
return u.newBlob(u.transformTo("arraybuffer", J),
|
|
26226
|
+
return u.newBlob(u.transformTo("arraybuffer", J), K);
|
|
26244
26227
|
case "base64":
|
|
26245
26228
|
return y.encode(J);
|
|
26246
26229
|
default:
|
|
26247
26230
|
return u.transformTo(j, J);
|
|
26248
26231
|
}
|
|
26249
26232
|
}(b, function(j, J) {
|
|
26250
|
-
var
|
|
26251
|
-
for (
|
|
26252
|
-
et += J[
|
|
26233
|
+
var K, ct = 0, It = null, et = 0;
|
|
26234
|
+
for (K = 0; K < J.length; K++)
|
|
26235
|
+
et += J[K].length;
|
|
26253
26236
|
switch (j) {
|
|
26254
26237
|
case "string":
|
|
26255
26238
|
return J.join("");
|
|
26256
26239
|
case "array":
|
|
26257
26240
|
return Array.prototype.concat.apply([], J);
|
|
26258
26241
|
case "uint8array":
|
|
26259
|
-
for (It = new Uint8Array(et),
|
|
26260
|
-
It.set(J[
|
|
26242
|
+
for (It = new Uint8Array(et), K = 0; K < J.length; K++)
|
|
26243
|
+
It.set(J[K], ct), ct += J[K].length;
|
|
26261
26244
|
return It;
|
|
26262
26245
|
case "nodebuffer":
|
|
26263
26246
|
return Buffer.concat(J);
|
|
@@ -26859,9 +26842,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26859
26842
|
if (!R)
|
|
26860
26843
|
return this.resolve([]);
|
|
26861
26844
|
for (var U = new Array(R), N = 0, j = -1, J = new this(m); ++j < R; )
|
|
26862
|
-
|
|
26845
|
+
K(T[j], j);
|
|
26863
26846
|
return J;
|
|
26864
|
-
function
|
|
26847
|
+
function K(ct, It) {
|
|
26865
26848
|
M.resolve(ct).then(function(et) {
|
|
26866
26849
|
U[It] = et, ++N !== R || b || (b = !0, _.resolve(J, U));
|
|
26867
26850
|
}, function(et) {
|
|
@@ -26951,12 +26934,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26951
26934
|
return T.result;
|
|
26952
26935
|
}
|
|
26953
26936
|
D.prototype.push = function(E, L) {
|
|
26954
|
-
var T, M, R, b, U, N, j = this.strm, J = this.options.chunkSize,
|
|
26937
|
+
var T, M, R, b, U, N, j = this.strm, J = this.options.chunkSize, K = this.options.dictionary, ct = !1;
|
|
26955
26938
|
if (this.ended)
|
|
26956
26939
|
return !1;
|
|
26957
26940
|
M = L === ~~L ? L : L === !0 ? y.Z_FINISH : y.Z_NO_FLUSH, typeof E == "string" ? j.input = _.binstring2buf(E) : k.call(E) === "[object ArrayBuffer]" ? j.input = new Uint8Array(E) : j.input = E, j.next_in = 0, j.avail_in = j.input.length;
|
|
26958
26941
|
do {
|
|
26959
|
-
if (j.avail_out === 0 && (j.output = new m.Buf8(J), j.next_out = 0, j.avail_out = J), (T = u.inflate(j, y.Z_NO_FLUSH)) === y.Z_NEED_DICT &&
|
|
26942
|
+
if (j.avail_out === 0 && (j.output = new m.Buf8(J), j.next_out = 0, j.avail_out = J), (T = u.inflate(j, y.Z_NO_FLUSH)) === y.Z_NEED_DICT && K && (N = typeof K == "string" ? _.string2buf(K) : k.call(K) === "[object ArrayBuffer]" ? new Uint8Array(K) : K, T = u.inflateSetDictionary(this.strm, N)), T === y.Z_BUF_ERROR && ct === !0 && (T = y.Z_OK, ct = !1), T !== y.Z_STREAM_END && T !== y.Z_OK)
|
|
26960
26943
|
return this.onEnd(T), !(this.ended = !0);
|
|
26961
26944
|
j.next_out && (j.avail_out !== 0 && T !== y.Z_STREAM_END && (j.avail_in !== 0 || M !== y.Z_FINISH && M !== y.Z_SYNC_FLUSH) || (this.options.to === "string" ? (R = _.utf8border(j.output, j.next_out), b = j.next_out - R, U = _.buf2string(j.output, R), j.next_out = b, j.avail_out = J - b, b && m.arraySet(j.output, j.output, R, b, 0), this.onData(U)) : this.onData(m.shrinkBuf(j.output, j.next_out)))), j.avail_in === 0 && j.avail_out === 0 && (ct = !0);
|
|
26962
26945
|
} while ((0 < j.avail_in || j.avail_out === 0) && T !== y.Z_STREAM_END);
|
|
@@ -27088,7 +27071,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27088
27071
|
return -1 ^ m;
|
|
27089
27072
|
};
|
|
27090
27073
|
}, {}], 46: [function(o, c, d) {
|
|
27091
|
-
var u, m = o("../utils/common"), _ = o("./trees"), y = o("./adler32"), S = o("./crc32"), A = o("./messages"), I = 0, k = 4, D = 0, F = -2, E = -1, L = 4, T = 2, M = 8, R = 9, b = 286, U = 30, N = 19, j = 2 * b + 1, J = 15,
|
|
27074
|
+
var u, m = o("../utils/common"), _ = o("./trees"), y = o("./adler32"), S = o("./crc32"), A = o("./messages"), I = 0, k = 4, D = 0, F = -2, E = -1, L = 4, T = 2, M = 8, R = 9, b = 286, U = 30, N = 19, j = 2 * b + 1, J = 15, K = 3, ct = 258, It = ct + K + 1, et = 42, yt = 113, G = 1, Pt = 2, Et = 3, Ct = 4;
|
|
27092
27075
|
function fe(W, Jt) {
|
|
27093
27076
|
return W.msg = A[Jt], Jt;
|
|
27094
27077
|
}
|
|
@@ -27142,8 +27125,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27142
27125
|
}
|
|
27143
27126
|
if (W.strm.avail_in === 0)
|
|
27144
27127
|
break;
|
|
27145
|
-
if (ie = W.strm, Kt = W.window, z = W.strstart + W.lookahead, Q = dt, ot = void 0, ot = ie.avail_in, Q < ot && (ot = Q), Wt = ot === 0 ? 0 : (ie.avail_in -= ot, m.arraySet(Kt, ie.input, ie.next_in, ot, z), ie.state.wrap === 1 ? ie.adler = y(ie.adler, Kt, ot, z) : ie.state.wrap === 2 && (ie.adler = S(ie.adler, Kt, ot, z)), ie.next_in += ot, ie.total_in += ot, ot), W.lookahead += Wt, W.lookahead + W.insert >=
|
|
27146
|
-
for (Dt = W.strstart - W.insert, W.ins_h = W.window[Dt], W.ins_h = (W.ins_h << W.hash_shift ^ W.window[Dt + 1]) & W.hash_mask; W.insert && (W.ins_h = (W.ins_h << W.hash_shift ^ W.window[Dt +
|
|
27128
|
+
if (ie = W.strm, Kt = W.window, z = W.strstart + W.lookahead, Q = dt, ot = void 0, ot = ie.avail_in, Q < ot && (ot = Q), Wt = ot === 0 ? 0 : (ie.avail_in -= ot, m.arraySet(Kt, ie.input, ie.next_in, ot, z), ie.state.wrap === 1 ? ie.adler = y(ie.adler, Kt, ot, z) : ie.state.wrap === 2 && (ie.adler = S(ie.adler, Kt, ot, z)), ie.next_in += ot, ie.total_in += ot, ot), W.lookahead += Wt, W.lookahead + W.insert >= K)
|
|
27129
|
+
for (Dt = W.strstart - W.insert, W.ins_h = W.window[Dt], W.ins_h = (W.ins_h << W.hash_shift ^ W.window[Dt + 1]) & W.hash_mask; W.insert && (W.ins_h = (W.ins_h << W.hash_shift ^ W.window[Dt + K - 1]) & W.hash_mask, W.prev[Dt & W.w_mask] = W.head[W.ins_h], W.head[W.ins_h] = Dt, Dt++, W.insert--, !(W.lookahead + W.insert < K)); )
|
|
27147
27130
|
;
|
|
27148
27131
|
} while (W.lookahead < It && W.strm.avail_in !== 0);
|
|
27149
27132
|
}
|
|
@@ -27155,9 +27138,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27155
27138
|
if (W.lookahead === 0)
|
|
27156
27139
|
break;
|
|
27157
27140
|
}
|
|
27158
|
-
if (Wt = 0, W.lookahead >=
|
|
27159
|
-
if (pt = _._tr_tally(W, W.strstart - W.match_start, W.match_length -
|
|
27160
|
-
for (W.match_length--; W.strstart++, W.ins_h = (W.ins_h << W.hash_shift ^ W.window[W.strstart +
|
|
27141
|
+
if (Wt = 0, W.lookahead >= K && (W.ins_h = (W.ins_h << W.hash_shift ^ W.window[W.strstart + K - 1]) & W.hash_mask, Wt = W.prev[W.strstart & W.w_mask] = W.head[W.ins_h], W.head[W.ins_h] = W.strstart), Wt !== 0 && W.strstart - Wt <= W.w_size - It && (W.match_length = Yt(W, Wt)), W.match_length >= K)
|
|
27142
|
+
if (pt = _._tr_tally(W, W.strstart - W.match_start, W.match_length - K), W.lookahead -= W.match_length, W.match_length <= W.max_lazy_match && W.lookahead >= K) {
|
|
27143
|
+
for (W.match_length--; W.strstart++, W.ins_h = (W.ins_h << W.hash_shift ^ W.window[W.strstart + K - 1]) & W.hash_mask, Wt = W.prev[W.strstart & W.w_mask] = W.head[W.ins_h], W.head[W.ins_h] = W.strstart, --W.match_length != 0; )
|
|
27161
27144
|
;
|
|
27162
27145
|
W.strstart++;
|
|
27163
27146
|
} else
|
|
@@ -27167,7 +27150,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27167
27150
|
if (pt && (Bt(W, !1), W.strm.avail_out === 0))
|
|
27168
27151
|
return G;
|
|
27169
27152
|
}
|
|
27170
|
-
return W.insert = W.strstart <
|
|
27153
|
+
return W.insert = W.strstart < K - 1 ? W.strstart : K - 1, Jt === k ? (Bt(W, !0), W.strm.avail_out === 0 ? Et : Ct) : W.last_lit && (Bt(W, !1), W.strm.avail_out === 0) ? G : Pt;
|
|
27171
27154
|
}
|
|
27172
27155
|
function Oe(W, Jt) {
|
|
27173
27156
|
for (var Wt, pt, dt; ; ) {
|
|
@@ -27177,10 +27160,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27177
27160
|
if (W.lookahead === 0)
|
|
27178
27161
|
break;
|
|
27179
27162
|
}
|
|
27180
|
-
if (Wt = 0, W.lookahead >=
|
|
27181
|
-
for (dt = W.strstart + W.lookahead -
|
|
27163
|
+
if (Wt = 0, W.lookahead >= K && (W.ins_h = (W.ins_h << W.hash_shift ^ W.window[W.strstart + K - 1]) & W.hash_mask, Wt = W.prev[W.strstart & W.w_mask] = W.head[W.ins_h], W.head[W.ins_h] = W.strstart), W.prev_length = W.match_length, W.prev_match = W.match_start, W.match_length = K - 1, Wt !== 0 && W.prev_length < W.max_lazy_match && W.strstart - Wt <= W.w_size - It && (W.match_length = Yt(W, Wt), W.match_length <= 5 && (W.strategy === 1 || W.match_length === K && 4096 < W.strstart - W.match_start) && (W.match_length = K - 1)), W.prev_length >= K && W.match_length <= W.prev_length) {
|
|
27164
|
+
for (dt = W.strstart + W.lookahead - K, pt = _._tr_tally(W, W.strstart - 1 - W.prev_match, W.prev_length - K), W.lookahead -= W.prev_length - 1, W.prev_length -= 2; ++W.strstart <= dt && (W.ins_h = (W.ins_h << W.hash_shift ^ W.window[W.strstart + K - 1]) & W.hash_mask, Wt = W.prev[W.strstart & W.w_mask] = W.head[W.ins_h], W.head[W.ins_h] = W.strstart), --W.prev_length != 0; )
|
|
27182
27165
|
;
|
|
27183
|
-
if (W.match_available = 0, W.match_length =
|
|
27166
|
+
if (W.match_available = 0, W.match_length = K - 1, W.strstart++, pt && (Bt(W, !1), W.strm.avail_out === 0))
|
|
27184
27167
|
return G;
|
|
27185
27168
|
} else if (W.match_available) {
|
|
27186
27169
|
if ((pt = _._tr_tally(W, 0, W.window[W.strstart - 1])) && Bt(W, !1), W.strstart++, W.lookahead--, W.strm.avail_out === 0)
|
|
@@ -27188,7 +27171,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27188
27171
|
} else
|
|
27189
27172
|
W.match_available = 1, W.strstart++, W.lookahead--;
|
|
27190
27173
|
}
|
|
27191
|
-
return W.match_available && (pt = _._tr_tally(W, 0, W.window[W.strstart - 1]), W.match_available = 0), W.insert = W.strstart <
|
|
27174
|
+
return W.match_available && (pt = _._tr_tally(W, 0, W.window[W.strstart - 1]), W.match_available = 0), W.insert = W.strstart < K - 1 ? W.strstart : K - 1, Jt === k ? (Bt(W, !0), W.strm.avail_out === 0 ? Et : Ct) : W.last_lit && (Bt(W, !1), W.strm.avail_out === 0) ? G : Pt;
|
|
27192
27175
|
}
|
|
27193
27176
|
function Ge(W, Jt, Wt, pt, dt) {
|
|
27194
27177
|
this.good_length = W, this.max_lazy = Jt, this.nice_length = Wt, this.max_chain = pt, this.func = dt;
|
|
@@ -27203,7 +27186,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27203
27186
|
function cn(W) {
|
|
27204
27187
|
var Jt = Ri(W);
|
|
27205
27188
|
return Jt === D && function(Wt) {
|
|
27206
|
-
Wt.window_size = 2 * Wt.w_size, Ft(Wt.head), Wt.max_lazy_match = u[Wt.level].max_lazy, Wt.good_match = u[Wt.level].good_length, Wt.nice_match = u[Wt.level].nice_length, Wt.max_chain_length = u[Wt.level].max_chain, Wt.strstart = 0, Wt.block_start = 0, Wt.lookahead = 0, Wt.insert = 0, Wt.match_length = Wt.prev_length =
|
|
27189
|
+
Wt.window_size = 2 * Wt.w_size, Ft(Wt.head), Wt.max_lazy_match = u[Wt.level].max_lazy, Wt.good_match = u[Wt.level].good_length, Wt.nice_match = u[Wt.level].nice_length, Wt.max_chain_length = u[Wt.level].max_chain, Wt.strstart = 0, Wt.block_start = 0, Wt.lookahead = 0, Wt.insert = 0, Wt.match_length = Wt.prev_length = K - 1, Wt.match_available = 0, Wt.ins_h = 0;
|
|
27207
27190
|
}(W.state), Jt;
|
|
27208
27191
|
}
|
|
27209
27192
|
function Ji(W, Jt, Wt, pt, dt, Dt) {
|
|
@@ -27214,7 +27197,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27214
27197
|
return fe(W, F);
|
|
27215
27198
|
pt === 8 && (pt = 9);
|
|
27216
27199
|
var Kt = new pi();
|
|
27217
|
-
return (W.state = Kt).strm = W, Kt.wrap = ie, Kt.gzhead = null, Kt.w_bits = pt, Kt.w_size = 1 << Kt.w_bits, Kt.w_mask = Kt.w_size - 1, Kt.hash_bits = dt + 7, Kt.hash_size = 1 << Kt.hash_bits, Kt.hash_mask = Kt.hash_size - 1, Kt.hash_shift = ~~((Kt.hash_bits +
|
|
27200
|
+
return (W.state = Kt).strm = W, Kt.wrap = ie, Kt.gzhead = null, Kt.w_bits = pt, Kt.w_size = 1 << Kt.w_bits, Kt.w_mask = Kt.w_size - 1, Kt.hash_bits = dt + 7, Kt.hash_size = 1 << Kt.hash_bits, Kt.hash_mask = Kt.hash_size - 1, Kt.hash_shift = ~~((Kt.hash_bits + K - 1) / K), Kt.window = new m.Buf8(2 * Kt.w_size), Kt.head = new m.Buf16(Kt.hash_size), Kt.prev = new m.Buf16(Kt.w_size), Kt.lit_bufsize = 1 << dt + 6, Kt.pending_buf_size = 4 * Kt.lit_bufsize, Kt.pending_buf = new m.Buf8(Kt.pending_buf_size), Kt.d_buf = 1 * Kt.lit_bufsize, Kt.l_buf = 3 * Kt.lit_bufsize, Kt.level = Jt, Kt.strategy = Dt, Kt.method = Wt, cn(W);
|
|
27218
27201
|
}
|
|
27219
27202
|
u = [new Ge(0, 0, 0, 0, function(W, Jt) {
|
|
27220
27203
|
var Wt = 65535;
|
|
@@ -27308,14 +27291,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27308
27291
|
if (z.lookahead === 0)
|
|
27309
27292
|
break;
|
|
27310
27293
|
}
|
|
27311
|
-
if (z.match_length = 0, z.lookahead >=
|
|
27294
|
+
if (z.match_length = 0, z.lookahead >= K && 0 < z.strstart && (nt = Xt[vt = z.strstart - 1]) === Xt[++vt] && nt === Xt[++vt] && nt === Xt[++vt]) {
|
|
27312
27295
|
Gt = z.strstart + ct;
|
|
27313
27296
|
do
|
|
27314
27297
|
;
|
|
27315
27298
|
while (nt === Xt[++vt] && nt === Xt[++vt] && nt === Xt[++vt] && nt === Xt[++vt] && nt === Xt[++vt] && nt === Xt[++vt] && nt === Xt[++vt] && nt === Xt[++vt] && vt < Gt);
|
|
27316
27299
|
z.match_length = ct - (Gt - vt), z.match_length > z.lookahead && (z.match_length = z.lookahead);
|
|
27317
27300
|
}
|
|
27318
|
-
if (z.match_length >=
|
|
27301
|
+
if (z.match_length >= K ? (ot = _._tr_tally(z, 1, z.match_length - K), z.lookahead -= z.match_length, z.strstart += z.match_length, z.match_length = 0) : (ot = _._tr_tally(z, 0, z.window[z.strstart]), z.lookahead--, z.strstart++), ot && (Bt(z, !1), z.strm.avail_out === 0))
|
|
27319
27302
|
return G;
|
|
27320
27303
|
}
|
|
27321
27304
|
return z.insert = 0, Q === k ? (Bt(z, !0), z.strm.avail_out === 0 ? Et : Ct) : z.last_lit && (Bt(z, !1), z.strm.avail_out === 0) ? G : Pt;
|
|
@@ -27333,12 +27316,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27333
27316
|
var Wt, pt, dt, Dt, ie, Kt, z, Q, ot = Jt.length;
|
|
27334
27317
|
if (!W || !W.state || (Dt = (Wt = W.state).wrap) === 2 || Dt === 1 && Wt.status !== et || Wt.lookahead)
|
|
27335
27318
|
return F;
|
|
27336
|
-
for (Dt === 1 && (W.adler = y(W.adler, Jt, ot, 0)), Wt.wrap = 0, ot >= Wt.w_size && (Dt === 0 && (Ft(Wt.head), Wt.strstart = 0, Wt.block_start = 0, Wt.insert = 0), Q = new m.Buf8(Wt.w_size), m.arraySet(Q, Jt, ot - Wt.w_size, Wt.w_size, 0), Jt = Q, ot = Wt.w_size), ie = W.avail_in, Kt = W.next_in, z = W.input, W.avail_in = ot, W.next_in = 0, W.input = Jt, $e(Wt); Wt.lookahead >=
|
|
27337
|
-
for (pt = Wt.strstart, dt = Wt.lookahead - (
|
|
27319
|
+
for (Dt === 1 && (W.adler = y(W.adler, Jt, ot, 0)), Wt.wrap = 0, ot >= Wt.w_size && (Dt === 0 && (Ft(Wt.head), Wt.strstart = 0, Wt.block_start = 0, Wt.insert = 0), Q = new m.Buf8(Wt.w_size), m.arraySet(Q, Jt, ot - Wt.w_size, Wt.w_size, 0), Jt = Q, ot = Wt.w_size), ie = W.avail_in, Kt = W.next_in, z = W.input, W.avail_in = ot, W.next_in = 0, W.input = Jt, $e(Wt); Wt.lookahead >= K; ) {
|
|
27320
|
+
for (pt = Wt.strstart, dt = Wt.lookahead - (K - 1); Wt.ins_h = (Wt.ins_h << Wt.hash_shift ^ Wt.window[pt + K - 1]) & Wt.hash_mask, Wt.prev[pt & Wt.w_mask] = Wt.head[Wt.ins_h], Wt.head[Wt.ins_h] = pt, pt++, --dt; )
|
|
27338
27321
|
;
|
|
27339
|
-
Wt.strstart = pt, Wt.lookahead =
|
|
27322
|
+
Wt.strstart = pt, Wt.lookahead = K - 1, $e(Wt);
|
|
27340
27323
|
}
|
|
27341
|
-
return Wt.strstart += Wt.lookahead, Wt.block_start = Wt.strstart, Wt.insert = Wt.lookahead, Wt.lookahead = 0, Wt.match_length = Wt.prev_length =
|
|
27324
|
+
return Wt.strstart += Wt.lookahead, Wt.block_start = Wt.strstart, Wt.insert = Wt.lookahead, Wt.lookahead = 0, Wt.match_length = Wt.prev_length = K - 1, Wt.match_available = 0, W.next_in = Kt, W.input = z, W.avail_in = ie, Wt.wrap = Dt, D;
|
|
27342
27325
|
}, d.deflateInfo = "pako deflate (from Nodeca project)";
|
|
27343
27326
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(o, c, d) {
|
|
27344
27327
|
c.exports = function() {
|
|
@@ -27346,66 +27329,66 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27346
27329
|
};
|
|
27347
27330
|
}, {}], 48: [function(o, c, d) {
|
|
27348
27331
|
c.exports = function(u, m) {
|
|
27349
|
-
var _, y, S, A, I, k, D, F, E, L, T, M, R, b, U, N, j, J,
|
|
27332
|
+
var _, y, S, A, I, k, D, F, E, L, T, M, R, b, U, N, j, J, K, ct, It, et, yt, G, Pt;
|
|
27350
27333
|
_ = u.state, y = u.next_in, G = u.input, S = y + (u.avail_in - 5), A = u.next_out, Pt = u.output, I = A - (m - u.avail_out), k = A + (u.avail_out - 257), D = _.dmax, F = _.wsize, E = _.whave, L = _.wnext, T = _.window, M = _.hold, R = _.bits, b = _.lencode, U = _.distcode, N = (1 << _.lenbits) - 1, j = (1 << _.distbits) - 1;
|
|
27351
27334
|
t:
|
|
27352
27335
|
do {
|
|
27353
27336
|
R < 15 && (M += G[y++] << R, R += 8, M += G[y++] << R, R += 8), J = b[M & N];
|
|
27354
27337
|
e:
|
|
27355
27338
|
for (; ; ) {
|
|
27356
|
-
if (M >>>=
|
|
27339
|
+
if (M >>>= K = J >>> 24, R -= K, (K = J >>> 16 & 255) === 0)
|
|
27357
27340
|
Pt[A++] = 65535 & J;
|
|
27358
27341
|
else {
|
|
27359
|
-
if (!(16 &
|
|
27360
|
-
if (!(64 &
|
|
27361
|
-
J = b[(65535 & J) + (M & (1 <<
|
|
27342
|
+
if (!(16 & K)) {
|
|
27343
|
+
if (!(64 & K)) {
|
|
27344
|
+
J = b[(65535 & J) + (M & (1 << K) - 1)];
|
|
27362
27345
|
continue e;
|
|
27363
27346
|
}
|
|
27364
|
-
if (32 &
|
|
27347
|
+
if (32 & K) {
|
|
27365
27348
|
_.mode = 12;
|
|
27366
27349
|
break t;
|
|
27367
27350
|
}
|
|
27368
27351
|
u.msg = "invalid literal/length code", _.mode = 30;
|
|
27369
27352
|
break t;
|
|
27370
27353
|
}
|
|
27371
|
-
ct = 65535 & J, (
|
|
27354
|
+
ct = 65535 & J, (K &= 15) && (R < K && (M += G[y++] << R, R += 8), ct += M & (1 << K) - 1, M >>>= K, R -= K), R < 15 && (M += G[y++] << R, R += 8, M += G[y++] << R, R += 8), J = U[M & j];
|
|
27372
27355
|
i:
|
|
27373
27356
|
for (; ; ) {
|
|
27374
|
-
if (M >>>=
|
|
27375
|
-
if (!(64 &
|
|
27376
|
-
J = U[(65535 & J) + (M & (1 <<
|
|
27357
|
+
if (M >>>= K = J >>> 24, R -= K, !(16 & (K = J >>> 16 & 255))) {
|
|
27358
|
+
if (!(64 & K)) {
|
|
27359
|
+
J = U[(65535 & J) + (M & (1 << K) - 1)];
|
|
27377
27360
|
continue i;
|
|
27378
27361
|
}
|
|
27379
27362
|
u.msg = "invalid distance code", _.mode = 30;
|
|
27380
27363
|
break t;
|
|
27381
27364
|
}
|
|
27382
|
-
if (It = 65535 & J, R < (
|
|
27365
|
+
if (It = 65535 & J, R < (K &= 15) && (M += G[y++] << R, (R += 8) < K && (M += G[y++] << R, R += 8)), D < (It += M & (1 << K) - 1)) {
|
|
27383
27366
|
u.msg = "invalid distance too far back", _.mode = 30;
|
|
27384
27367
|
break t;
|
|
27385
27368
|
}
|
|
27386
|
-
if (M >>>=
|
|
27387
|
-
if (E < (
|
|
27369
|
+
if (M >>>= K, R -= K, (K = A - I) < It) {
|
|
27370
|
+
if (E < (K = It - K) && _.sane) {
|
|
27388
27371
|
u.msg = "invalid distance too far back", _.mode = 30;
|
|
27389
27372
|
break t;
|
|
27390
27373
|
}
|
|
27391
27374
|
if (yt = T, (et = 0) === L) {
|
|
27392
|
-
if (et += F -
|
|
27393
|
-
for (ct -=
|
|
27375
|
+
if (et += F - K, K < ct) {
|
|
27376
|
+
for (ct -= K; Pt[A++] = T[et++], --K; )
|
|
27394
27377
|
;
|
|
27395
27378
|
et = A - It, yt = Pt;
|
|
27396
27379
|
}
|
|
27397
|
-
} else if (L <
|
|
27398
|
-
if (et += F + L -
|
|
27399
|
-
for (ct -=
|
|
27380
|
+
} else if (L < K) {
|
|
27381
|
+
if (et += F + L - K, (K -= L) < ct) {
|
|
27382
|
+
for (ct -= K; Pt[A++] = T[et++], --K; )
|
|
27400
27383
|
;
|
|
27401
27384
|
if (et = 0, L < ct) {
|
|
27402
|
-
for (ct -=
|
|
27385
|
+
for (ct -= K = L; Pt[A++] = T[et++], --K; )
|
|
27403
27386
|
;
|
|
27404
27387
|
et = A - It, yt = Pt;
|
|
27405
27388
|
}
|
|
27406
27389
|
}
|
|
27407
|
-
} else if (et += L -
|
|
27408
|
-
for (ct -=
|
|
27390
|
+
} else if (et += L - K, K < ct) {
|
|
27391
|
+
for (ct -= K; Pt[A++] = T[et++], --K; )
|
|
27409
27392
|
;
|
|
27410
27393
|
et = A - It, yt = Pt;
|
|
27411
27394
|
}
|
|
@@ -27449,9 +27432,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27449
27432
|
var G, Pt;
|
|
27450
27433
|
return et ? (Pt = new M(), (et.state = Pt).window = null, (G = U(et, yt)) !== k && (et.state = null), G) : D;
|
|
27451
27434
|
}
|
|
27452
|
-
var j, J,
|
|
27435
|
+
var j, J, K = !0;
|
|
27453
27436
|
function ct(et) {
|
|
27454
|
-
if (
|
|
27437
|
+
if (K) {
|
|
27455
27438
|
var yt;
|
|
27456
27439
|
for (j = new u.Buf32(512), J = new u.Buf32(32), yt = 0; yt < 144; )
|
|
27457
27440
|
et.lens[yt++] = 8;
|
|
@@ -27463,7 +27446,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27463
27446
|
et.lens[yt++] = 8;
|
|
27464
27447
|
for (S(A, et.lens, 0, 288, j, 0, et.work, { bits: 9 }), yt = 0; yt < 32; )
|
|
27465
27448
|
et.lens[yt++] = 5;
|
|
27466
|
-
S(I, et.lens, 0, 32, J, 0, et.work, { bits: 5 }),
|
|
27449
|
+
S(I, et.lens, 0, 32, J, 0, et.work, { bits: 5 }), K = !1;
|
|
27467
27450
|
}
|
|
27468
27451
|
et.lencode = j, et.lenbits = 9, et.distcode = J, et.distbits = 5;
|
|
27469
27452
|
}
|
|
@@ -27895,7 +27878,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27895
27878
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(o, c, d) {
|
|
27896
27879
|
var u = o("../utils/common"), m = [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], _ = [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], y = [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], S = [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];
|
|
27897
27880
|
c.exports = function(A, I, k, D, F, E, L, T) {
|
|
27898
|
-
var M, R, b, U, N, j, J,
|
|
27881
|
+
var M, R, b, U, N, j, J, K, ct, It = T.bits, et = 0, yt = 0, G = 0, Pt = 0, Et = 0, Ct = 0, fe = 0, re = 0, Ft = 0, Ot = 0, Bt = null, ke = 0, ce = new u.Buf16(16), Yt = new u.Buf16(16), $e = null, Li = 0;
|
|
27899
27882
|
for (et = 0; et <= 15; et++)
|
|
27900
27883
|
ce[et] = 0;
|
|
27901
27884
|
for (yt = 0; yt < D; yt++)
|
|
@@ -27918,7 +27901,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27918
27901
|
if (j = A === 0 ? (Bt = $e = L, 19) : A === 1 ? (Bt = m, ke -= 257, $e = _, Li -= 257, 256) : (Bt = y, $e = S, -1), et = G, N = E, fe = yt = Ot = 0, b = -1, U = (Ft = 1 << (Ct = Et)) - 1, A === 1 && 852 < Ft || A === 2 && 592 < Ft)
|
|
27919
27902
|
return 1;
|
|
27920
27903
|
for (; ; ) {
|
|
27921
|
-
for (J = et - fe, ct = L[yt] < j ? (
|
|
27904
|
+
for (J = et - fe, ct = L[yt] < j ? (K = 0, L[yt]) : L[yt] > j ? (K = $e[Li + L[yt]], Bt[ke + L[yt]]) : (K = 96, 0), M = 1 << et - fe, G = R = 1 << Ct; F[N + (Ot >> fe) + (R -= M)] = J << 24 | K << 16 | ct | 0, R !== 0; )
|
|
27922
27905
|
;
|
|
27923
27906
|
for (M = 1 << et - 1; Ot & M; )
|
|
27924
27907
|
M >>= 1;
|
|
@@ -27945,7 +27928,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27945
27928
|
for (var Dt = dt.length; 0 <= --Dt; )
|
|
27946
27929
|
dt[Dt] = 0;
|
|
27947
27930
|
}
|
|
27948
|
-
var S = 0, A = 29, I = 256, k = I + 1 + A, D = 30, F = 19, E = 2 * k + 1, L = 15, T = 16, M = 7, R = 256, b = 16, U = 17, N = 18, j = [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], J = [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],
|
|
27931
|
+
var S = 0, A = 29, I = 256, k = I + 1 + A, D = 30, F = 19, E = 2 * k + 1, L = 15, T = 16, M = 7, R = 256, b = 16, U = 17, N = 18, j = [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], J = [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], K = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], ct = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], It = new Array(2 * (k + 2));
|
|
27949
27932
|
y(It);
|
|
27950
27933
|
var et = new Array(2 * D);
|
|
27951
27934
|
y(et);
|
|
@@ -28093,7 +28076,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
28093
28076
|
It[2 * Dt + 1] = 8, Dt++, ot[8]++;
|
|
28094
28077
|
for (Li(It, k + 1, ot), Dt = 0; Dt < D; Dt++)
|
|
28095
28078
|
et[2 * Dt + 1] = 5, et[2 * Dt] = $e(Dt, 5);
|
|
28096
|
-
Et = new Ft(It, j, I + 1, k, L), Ct = new Ft(et, J, 0, D, L), fe = new Ft(new Array(0),
|
|
28079
|
+
Et = new Ft(It, j, I + 1, k, L), Ct = new Ft(et, J, 0, D, L), fe = new Ft(new Array(0), K, 0, F, M);
|
|
28097
28080
|
}(), Wt = !0), dt.l_desc = new Ot(dt.dyn_ltree, Et), dt.d_desc = new Ot(dt.dyn_dtree, Ct), dt.bl_desc = new Ot(dt.bl_tree, fe), dt.bi_buf = 0, dt.bi_valid = 0, Oe(dt);
|
|
28098
28081
|
}, d._tr_stored_block = pt, d._tr_flush_block = function(dt, Dt, ie, Kt) {
|
|
28099
28082
|
var z, Q, ot = 0;
|
|
@@ -28758,16 +28741,16 @@ var ts = {
|
|
|
28758
28741
|
edges: 0.5,
|
|
28759
28742
|
end: 1
|
|
28760
28743
|
}[d] || 0 : !_ && y && (A = d[0], I = d[1]), function(k, D, F) {
|
|
28761
|
-
var E = (F || o).length, L = m[E], T, M, R, b, U, N, j, J,
|
|
28744
|
+
var E = (F || o).length, L = m[E], T, M, R, b, U, N, j, J, K;
|
|
28762
28745
|
if (!L) {
|
|
28763
|
-
if (
|
|
28764
|
-
for (j = -Ms; j < (j = F[
|
|
28746
|
+
if (K = o.grid === "auto" ? 0 : (o.grid || [1, Ms])[1], !K) {
|
|
28747
|
+
for (j = -Ms; j < (j = F[K++].getBoundingClientRect().left) && K < E; )
|
|
28765
28748
|
;
|
|
28766
|
-
|
|
28749
|
+
K < E && K--;
|
|
28767
28750
|
}
|
|
28768
|
-
for (L = m[E] = [], T = y ? Math.min(
|
|
28769
|
-
R = N %
|
|
28770
|
-
d === "random" && sd(L), L.max = j - J, L.min = J, L.v = E = (parseFloat(o.amount) || parseFloat(o.each) * (
|
|
28751
|
+
for (L = m[E] = [], T = y ? Math.min(K, E) * A - 0.5 : d % K, M = K === Ms ? 0 : y ? E * I / K - 0.5 : d / K | 0, j = 0, J = Ms, N = 0; N < E; N++)
|
|
28752
|
+
R = N % K - T, b = M - (N / K | 0), L[N] = U = S ? Math.abs(S === "y" ? b : R) : Gp(R * R + b * b), U > j && (j = U), U < J && (J = U);
|
|
28753
|
+
d === "random" && sd(L), L.max = j - J, L.min = J, L.v = E = (parseFloat(o.amount) || parseFloat(o.each) * (K > E ? E - 1 : S ? S === "y" ? E / K : K : Math.max(K, E / K)) || 0) * (d === "edges" ? -1 : 1), L.b = E < 0 ? u - E : u, L.u = cr(o.amount || o.each) || 0, c = c && E < 0 ? gd(c) : c;
|
|
28771
28754
|
}
|
|
28772
28755
|
return E = (L[k] - L.min) / L.max || 0, qn(L.b + (c ? c(E) : E) * L.v) + L.u;
|
|
28773
28756
|
};
|
|
@@ -29268,10 +29251,10 @@ var Tr = /* @__PURE__ */ function(x) {
|
|
|
29268
29251
|
if (N = this._yoyo, L = S + this._rDelay, this._repeat < -1 && d < 0)
|
|
29269
29252
|
return this.totalTime(L * 100 + d, u, m);
|
|
29270
29253
|
if (k = qn(A % L), A === y ? (E = this._repeat, k = S) : (E = ~~(A / L), E && E === A / L && (k = S, E--), k > S && (k = S)), U = ah(this._tTime, L), !_ && this._tTime && U !== E && this._tTime - U * L - this._dur <= 0 && (U = E), N && E & 1 && (k = S - k, j = 1), E !== U && !this._lock) {
|
|
29271
|
-
var J = N && U & 1,
|
|
29254
|
+
var J = N && U & 1, K = J === (N && E & 1);
|
|
29272
29255
|
if (E < U && (J = !J), _ = J ? 0 : A % S ? S : A, this._lock = 1, this.render(_ || (j ? 0 : qn(E * L)), u, !S)._lock = 0, this._tTime = A, !u && this.parent && Qr(this, "onRepeat"), this.vars.repeatRefresh && !j && (this.invalidate()._lock = 1), _ && _ !== this._time || T !== !this._ts || this.vars.onRepeat && !this.parent && !this._act)
|
|
29273
29256
|
return this;
|
|
29274
|
-
if (S = this._dur, y = this._tDur,
|
|
29257
|
+
if (S = this._dur, y = this._tDur, K && (this._lock = 2, _ = J ? S : -1e-4, this.render(_, !0), this.vars.repeatRefresh && !j && this.invalidate()), this._lock = 0, !this._ts && !T)
|
|
29275
29258
|
return this;
|
|
29276
29259
|
vd(this, j);
|
|
29277
29260
|
}
|
|
@@ -29464,7 +29447,7 @@ var Ay = function(a, o, c, d, u, m, _) {
|
|
|
29464
29447
|
S[_._props[A]] = y;
|
|
29465
29448
|
return _;
|
|
29466
29449
|
}, ba, qc, df = function x(a, o, c) {
|
|
29467
|
-
var d = a.vars, u = d.ease, m = d.startAt, _ = d.immediateRender, y = d.lazy, S = d.onUpdate, A = d.runBackwards, I = d.yoyoEase, k = d.keyframes, D = d.autoRevert, F = a._dur, E = a._startAt, L = a._targets, T = a.parent, M = T && T.data === "nested" ? T.vars.targets : L, R = a._overwrite === "auto" && !sf, b = a.timeline, U, N, j, J,
|
|
29450
|
+
var d = a.vars, u = d.ease, m = d.startAt, _ = d.immediateRender, y = d.lazy, S = d.onUpdate, A = d.runBackwards, I = d.yoyoEase, k = d.keyframes, D = d.autoRevert, F = a._dur, E = a._startAt, L = a._targets, T = a.parent, M = T && T.data === "nested" ? T.vars.targets : L, R = a._overwrite === "auto" && !sf, b = a.timeline, U, N, j, J, K, ct, It, et, yt, G, Pt, Et, Ct;
|
|
29468
29451
|
if (b && (!k || !u) && (u = "none"), a._ease = wl(u, oh.ease), a._yEase = I ? gd(wl(I === !0 ? u : I, oh.ease)) : 0, I && a._yoyo && !a._repeat && (I = a._yEase, a._yEase = a._ease, a._ease = I), a._from = !b && !!d.runBackwards, !b || k && !d.stagger) {
|
|
29469
29452
|
if (et = L[0] ? yl(L[0]).harness : 0, Et = et && d[et.prop], U = Uu(d, uf), E && (E._zTime < 0 && E.progress(1), o < 0 && A && _ && !D ? E.render(-1, !0) : E.revert(A && F ? Iu : iy), E._lazy = 0), m) {
|
|
29470
29453
|
if (Ra(a._startAt = kn.set(L, Es({
|
|
@@ -29500,12 +29483,12 @@ var Ay = function(a, o, c, d, u, m, _) {
|
|
|
29500
29483
|
return;
|
|
29501
29484
|
}
|
|
29502
29485
|
for (a._pt = a._ptCache = 0, y = F && kr(y) || y && !F, N = 0; N < L.length; N++) {
|
|
29503
|
-
if (
|
|
29486
|
+
if (K = L[N], It = K._gsap || ff(L)[N]._gsap, a._ptLookup[N] = G = {}, Gc[It.id] && Pa.length && Fu(), Pt = M === L ? N : M.indexOf(K), et && (yt = new et()).init(K, Et || U, a, Pt, M) !== !1 && (a._pt = J = new Nr(a._pt, K, yt.name, 0, 1, yt.render, yt, 0, yt.priority), yt._props.forEach(function(fe) {
|
|
29504
29487
|
G[fe] = J;
|
|
29505
29488
|
}), yt.priority && (ct = 1)), !et || Et)
|
|
29506
29489
|
for (j in U)
|
|
29507
|
-
$r[j] && (yt = xd(j, U, a, Pt,
|
|
29508
|
-
a._op && a._op[N] && a.kill(
|
|
29490
|
+
$r[j] && (yt = xd(j, U, a, Pt, K, M)) ? yt.priority && (ct = 1) : G[j] = J = pf.call(a, K, j, "get", U[j], Pt, M, 0, d.stringFilter);
|
|
29491
|
+
a._op && a._op[N] && a.kill(K, a._op[N]), R && a._pt && (ba = a, _n.killTweensOf(K, G, a.globalTime(o)), Ct = !a.parent, ba = 0), a._pt && y && (Gc[It.id] = 1);
|
|
29509
29492
|
}
|
|
29510
29493
|
ct && bd(a), a._onInit && a._onInit(a);
|
|
29511
29494
|
}
|
|
@@ -29561,7 +29544,7 @@ var kn = /* @__PURE__ */ function(x) {
|
|
|
29561
29544
|
function a(c, d, u, m) {
|
|
29562
29545
|
var _;
|
|
29563
29546
|
typeof d == "number" && (u.duration = d, d = u, u = null), _ = x.call(this, m ? d : Vh(d)) || this;
|
|
29564
|
-
var y = _.vars, S = y.duration, A = y.delay, I = y.immediateRender, k = y.stagger, D = y.overwrite, F = y.keyframes, E = y.defaults, L = y.scrollTrigger, T = y.yoyoEase, M = d.parent || _n, R = (pr(c) || Hp(c) ? Wo(c[0]) : "length" in d) ? [c] : Ss(c), b, U, N, j, J,
|
|
29547
|
+
var y = _.vars, S = y.duration, A = y.delay, I = y.immediateRender, k = y.stagger, D = y.overwrite, F = y.keyframes, E = y.defaults, L = y.scrollTrigger, T = y.yoyoEase, M = d.parent || _n, R = (pr(c) || Hp(c) ? Wo(c[0]) : "length" in d) ? [c] : Ss(c), b, U, N, j, J, K, ct, It;
|
|
29565
29548
|
if (_._targets = R.length ? ff(R) : Xh("GSAP target " + c + " not found. https://gsap.com", !ts.nullTargetWarn) || [], _._ptLookup = [], _._overwrite = D, F || k || Ou(S) || Ou(A)) {
|
|
29566
29549
|
if (d = _.vars, b = _.timeline = new Tr({
|
|
29567
29550
|
data: "nested",
|
|
@@ -29572,7 +29555,7 @@ var kn = /* @__PURE__ */ function(x) {
|
|
|
29572
29555
|
for (J in k)
|
|
29573
29556
|
~wd.indexOf(J) && (It || (It = {}), It[J] = k[J]);
|
|
29574
29557
|
for (U = 0; U < j; U++)
|
|
29575
|
-
N = Uu(d, Td), N.stagger = 0, T && (N.yoyoEase = T), It && Ml(N, It),
|
|
29558
|
+
N = Uu(d, Td), N.stagger = 0, T && (N.yoyoEase = T), It && Ml(N, It), K = R[U], N.duration = +jh(S, Ho(_), U, K, R), N.delay = (+jh(A, Ho(_), U, K, R) || 0) - _._delay, !k && j === 1 && N.delay && (_._delay = A = N.delay, _._start += A, N.delay = 0), b.to(K, N, ct ? ct(U, K, R) : 0), b._ease = Ni.none;
|
|
29576
29559
|
b.duration() ? S = A = 0 : _.timeline = 0;
|
|
29577
29560
|
} else if (F) {
|
|
29578
29561
|
Vh(Es(b.vars.defaults, {
|
|
@@ -30353,14 +30336,14 @@ var Ep, Aa, rh, _f, _l, bp, yf, Vy = function() {
|
|
|
30353
30336
|
var c = a._gsap || yl(a), d = a.style, u = Op(a), m, _, y, S;
|
|
30354
30337
|
return c.svg && a.getAttribute("transform") ? (y = a.transform.baseVal.consolidate().matrix, u = [y.a, y.b, y.c, y.d, y.e, y.f], u.join(",") === "1,0,0,1,0,0" ? $h : u) : (u === $h && !a.offsetParent && a !== rh && !c.svg && (y = d.display, d.display = "block", m = a.parentNode, (!m || !a.offsetParent) && (S = 1, _ = a.nextElementSibling, rh.appendChild(a)), u = Op(a), y ? d.display = y : Sl(a, "display"), S && (_ ? m.insertBefore(a, _) : m ? m.appendChild(a) : rh.removeChild(a))), o && u.length > 6 ? [u[0], u[1], u[4], u[5], u[12], u[13]] : u);
|
|
30355
30338
|
}, Kc = function(a, o, c, d, u, m) {
|
|
30356
|
-
var _ = a._gsap, y = u || wf(a, !0), S = _.xOrigin || 0, A = _.yOrigin || 0, I = _.xOffset || 0, k = _.yOffset || 0, D = y[0], F = y[1], E = y[2], L = y[3], T = y[4], M = y[5], R = o.split(" "), b = parseFloat(R[0]) || 0, U = parseFloat(R[1]) || 0, N, j, J,
|
|
30357
|
-
c ? y !== $h && (j = D * L - F * E) && (J = b * (L / j) + U * (-E / j) + (E * M - L * T) / j,
|
|
30339
|
+
var _ = a._gsap, y = u || wf(a, !0), S = _.xOrigin || 0, A = _.yOrigin || 0, I = _.xOffset || 0, k = _.yOffset || 0, D = y[0], F = y[1], E = y[2], L = y[3], T = y[4], M = y[5], R = o.split(" "), b = parseFloat(R[0]) || 0, U = parseFloat(R[1]) || 0, N, j, J, K;
|
|
30340
|
+
c ? y !== $h && (j = D * L - F * E) && (J = b * (L / j) + U * (-E / j) + (E * M - L * T) / j, K = b * (-F / j) + U * (D / j) - (D * M - F * T) / j, b = J, U = K) : (N = Id(a), b = N.x + (~R[0].indexOf("%") ? b / 100 * N.width : b), U = N.y + (~(R[1] || R[0]).indexOf("%") ? U / 100 * N.height : U)), d || d !== !1 && _.smooth ? (T = b - S, M = U - A, _.xOffset = I + (T * D + M * E) - T, _.yOffset = k + (T * F + M * L) - M) : _.xOffset = _.yOffset = 0, _.xOrigin = b, _.yOrigin = U, _.smooth = !!d, _.origin = o, _.originIsAbsolute = !!c, a.style[Fr] = "0px 0px", m && (Ca(m, _, "xOrigin", S, b), Ca(m, _, "yOrigin", A, U), Ca(m, _, "xOffset", I, _.xOffset), Ca(m, _, "yOffset", k, _.yOffset)), a.setAttribute("data-svg-origin", b + " " + U);
|
|
30358
30341
|
}, Kh = function(a, o) {
|
|
30359
30342
|
var c = a._gsap || new yd(a);
|
|
30360
30343
|
if ("x" in c && !o && !c.uncache)
|
|
30361
30344
|
return c;
|
|
30362
|
-
var d = a.style, u = c.scaleX < 0, m = "px", _ = "deg", y = getComputedStyle(a), S = ao(a, Fr) || "0", A, I, k, D, F, E, L, T, M, R, b, U, N, j, J,
|
|
30363
|
-
return A = I = k = E = L = T = M = R = b = 0, D = F = 1, c.svg = !!(a.getCTM && Dd(a)), y.translate && ((y.translate !== "none" || y.scale !== "none" || y.rotate !== "none") && (d[yn] = (y.translate !== "none" ? "translate3d(" + (y.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (y.rotate !== "none" ? "rotate(" + y.rotate + ") " : "") + (y.scale !== "none" ? "scale(" + y.scale.split(" ").join(",") + ") " : "") + (y[yn] !== "none" ? y[yn] : "")), d.scale = d.rotate = d.translate = "none"), j = wf(a, c.svg), c.svg && (c.uncache ? (fe = a.getBBox(), S = c.xOrigin - fe.x + "px " + (c.yOrigin - fe.y) + "px", Ct = "") : Ct = !o && a.getAttribute("data-svg-origin"), Kc(a, Ct || S, !!Ct || c.originIsAbsolute, c.smooth !== !1, j)), U = c.xOrigin || 0, N = c.yOrigin || 0, j !== $h && (It = j[0], et = j[1], yt = j[2], G = j[3], A = Pt = j[4], I = Et = j[5], j.length === 6 ? (D = Math.sqrt(It * It + et * et), F = Math.sqrt(G * G + yt * yt), E = It || et ? th(et, It) * vl : 0, M = yt || G ? th(yt, G) * vl + E : 0, M && (F *= Math.abs(Math.cos(M * sh))), c.svg && (A -= U - (U * It + N * yt), I -= N - (U * et + N * G))) : (Yt = j[6], ke = j[7], Ft = j[8], Ot = j[9], Bt = j[10], ce = j[11], A = j[12], I = j[13], k = j[14], J = th(Yt, Bt), L = J * vl, J && (
|
|
30345
|
+
var d = a.style, u = c.scaleX < 0, m = "px", _ = "deg", y = getComputedStyle(a), S = ao(a, Fr) || "0", A, I, k, D, F, E, L, T, M, R, b, U, N, j, J, K, ct, It, et, yt, G, Pt, Et, Ct, fe, re, Ft, Ot, Bt, ke, ce, Yt;
|
|
30346
|
+
return A = I = k = E = L = T = M = R = b = 0, D = F = 1, c.svg = !!(a.getCTM && Dd(a)), y.translate && ((y.translate !== "none" || y.scale !== "none" || y.rotate !== "none") && (d[yn] = (y.translate !== "none" ? "translate3d(" + (y.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (y.rotate !== "none" ? "rotate(" + y.rotate + ") " : "") + (y.scale !== "none" ? "scale(" + y.scale.split(" ").join(",") + ") " : "") + (y[yn] !== "none" ? y[yn] : "")), d.scale = d.rotate = d.translate = "none"), j = wf(a, c.svg), c.svg && (c.uncache ? (fe = a.getBBox(), S = c.xOrigin - fe.x + "px " + (c.yOrigin - fe.y) + "px", Ct = "") : Ct = !o && a.getAttribute("data-svg-origin"), Kc(a, Ct || S, !!Ct || c.originIsAbsolute, c.smooth !== !1, j)), U = c.xOrigin || 0, N = c.yOrigin || 0, j !== $h && (It = j[0], et = j[1], yt = j[2], G = j[3], A = Pt = j[4], I = Et = j[5], j.length === 6 ? (D = Math.sqrt(It * It + et * et), F = Math.sqrt(G * G + yt * yt), E = It || et ? th(et, It) * vl : 0, M = yt || G ? th(yt, G) * vl + E : 0, M && (F *= Math.abs(Math.cos(M * sh))), c.svg && (A -= U - (U * It + N * yt), I -= N - (U * et + N * G))) : (Yt = j[6], ke = j[7], Ft = j[8], Ot = j[9], Bt = j[10], ce = j[11], A = j[12], I = j[13], k = j[14], J = th(Yt, Bt), L = J * vl, J && (K = Math.cos(-J), ct = Math.sin(-J), Ct = Pt * K + Ft * ct, fe = Et * K + Ot * ct, re = Yt * K + Bt * ct, Ft = Pt * -ct + Ft * K, Ot = Et * -ct + Ot * K, Bt = Yt * -ct + Bt * K, ce = ke * -ct + ce * K, Pt = Ct, Et = fe, Yt = re), J = th(-yt, Bt), T = J * vl, J && (K = Math.cos(-J), ct = Math.sin(-J), Ct = It * K - Ft * ct, fe = et * K - Ot * ct, re = yt * K - Bt * ct, ce = G * ct + ce * K, It = Ct, et = fe, yt = re), J = th(et, It), E = J * vl, J && (K = Math.cos(J), ct = Math.sin(J), Ct = It * K + et * ct, fe = Pt * K + Et * ct, et = et * K - It * ct, Et = Et * K - Pt * ct, It = Ct, Pt = fe), L && Math.abs(L) + Math.abs(E) > 359.9 && (L = E = 0, T = 180 - T), D = In(Math.sqrt(It * It + et * et + yt * yt)), F = In(Math.sqrt(Et * Et + Yt * Yt)), J = th(Pt, Et), M = Math.abs(J) > 2e-4 ? J * vl : 0, b = ce ? 1 / (ce < 0 ? -ce : ce) : 0), c.svg && (Ct = a.getAttribute("transform"), c.forceCSS = a.setAttribute("transform", "") || !kd(ao(a, yn)), Ct && a.setAttribute("transform", Ct))), Math.abs(M) > 90 && Math.abs(M) < 270 && (u ? (D *= -1, M += E <= 0 ? 180 : -180, E += E <= 0 ? 180 : -180) : (F *= -1, M += M <= 0 ? 180 : -180)), o = o || c.uncache, c.x = A - ((c.xPercent = A && (!o && c.xPercent || (Math.round(a.offsetWidth / 2) === Math.round(-A) ? -50 : 0))) ? a.offsetWidth * c.xPercent / 100 : 0) + m, c.y = I - ((c.yPercent = I && (!o && c.yPercent || (Math.round(a.offsetHeight / 2) === Math.round(-I) ? -50 : 0))) ? a.offsetHeight * c.yPercent / 100 : 0) + m, c.z = k + m, c.scaleX = In(D), c.scaleY = In(F), c.rotation = In(E) + _, c.rotationX = In(L) + _, c.rotationY = In(T) + _, c.skewX = M + _, c.skewY = R + _, c.transformPerspective = b + m, (c.zOrigin = parseFloat(S.split(" ")[2]) || !o && c.zOrigin || 0) && (d[Fr] = Wu(S)), c.xOffset = c.yOffset = 0, c.force3D = ts.force3D, c.renderTransform = c.svg ? l1 : Od ? Bd : a1, c.uncache = 0, c;
|
|
30364
30347
|
}, Wu = function(a) {
|
|
30365
30348
|
return (a = a.split(" "))[0] + " " + a[1];
|
|
30366
30349
|
}, zc = function(a, o, c) {
|
|
@@ -30371,13 +30354,13 @@ var Ep, Aa, rh, _f, _l, bp, yf, Vy = function() {
|
|
|
30371
30354
|
}, ml = "0deg", Uh = "0px", gl = ") ", Bd = function(a, o) {
|
|
30372
30355
|
var c = o || this, d = c.xPercent, u = c.yPercent, m = c.x, _ = c.y, y = c.z, S = c.rotation, A = c.rotationY, I = c.rotationX, k = c.skewX, D = c.skewY, F = c.scaleX, E = c.scaleY, L = c.transformPerspective, T = c.force3D, M = c.target, R = c.zOrigin, b = "", U = T === "auto" && a && a !== 1 || T === !0;
|
|
30373
30356
|
if (R && (I !== ml || A !== ml)) {
|
|
30374
|
-
var N = parseFloat(A) * sh, j = Math.sin(N), J = Math.cos(N),
|
|
30375
|
-
N = parseFloat(I) * sh,
|
|
30357
|
+
var N = parseFloat(A) * sh, j = Math.sin(N), J = Math.cos(N), K;
|
|
30358
|
+
N = parseFloat(I) * sh, K = Math.cos(N), m = zc(M, m, j * K * -R), _ = zc(M, _, -Math.sin(N) * -R), y = zc(M, y, J * K * -R + R);
|
|
30376
30359
|
}
|
|
30377
30360
|
L !== Uh && (b += "perspective(" + L + gl), (d || u) && (b += "translate(" + d + "%, " + u + "%) "), (U || m !== Uh || _ !== Uh || y !== Uh) && (b += y !== Uh || U ? "translate3d(" + m + ", " + _ + ", " + y + ") " : "translate(" + m + ", " + _ + gl), S !== ml && (b += "rotate(" + S + gl), A !== ml && (b += "rotateY(" + A + gl), I !== ml && (b += "rotateX(" + I + gl), (k !== ml || D !== ml) && (b += "skew(" + k + ", " + D + gl), (F !== 1 || E !== 1) && (b += "scale(" + F + ", " + E + gl), M.style[yn] = b || "translate(0, 0)";
|
|
30378
30361
|
}, l1 = function(a, o) {
|
|
30379
|
-
var c = o || this, d = c.xPercent, u = c.yPercent, m = c.x, _ = c.y, y = c.rotation, S = c.skewX, A = c.skewY, I = c.scaleX, k = c.scaleY, D = c.target, F = c.xOrigin, E = c.yOrigin, L = c.xOffset, T = c.yOffset, M = c.forceCSS, R = parseFloat(m), b = parseFloat(_), U, N, j, J,
|
|
30380
|
-
y = parseFloat(y), S = parseFloat(S), A = parseFloat(A), A && (A = parseFloat(A), S += A, y += A), y || S ? (y *= sh, S *= sh, U = Math.cos(y) * I, N = Math.sin(y) * I, j = Math.sin(y - S) * -k, J = Math.cos(y - S) * k, S && (A *= sh,
|
|
30362
|
+
var c = o || this, d = c.xPercent, u = c.yPercent, m = c.x, _ = c.y, y = c.rotation, S = c.skewX, A = c.skewY, I = c.scaleX, k = c.scaleY, D = c.target, F = c.xOrigin, E = c.yOrigin, L = c.xOffset, T = c.yOffset, M = c.forceCSS, R = parseFloat(m), b = parseFloat(_), U, N, j, J, K;
|
|
30363
|
+
y = parseFloat(y), S = parseFloat(S), A = parseFloat(A), A && (A = parseFloat(A), S += A, y += A), y || S ? (y *= sh, S *= sh, U = Math.cos(y) * I, N = Math.sin(y) * I, j = Math.sin(y - S) * -k, J = Math.cos(y - S) * k, S && (A *= sh, K = Math.tan(S - A), K = Math.sqrt(1 + K * K), j *= K, J *= K, A && (K = Math.tan(A), K = Math.sqrt(1 + K * K), U *= K, N *= K)), U = In(U), N = In(N), j = In(j), J = In(J)) : (U = I, J = k, N = j = 0), (R && !~(m + "").indexOf("px") || b && !~(_ + "").indexOf("px")) && (R = Oa(D, "x", m, "px"), b = Oa(D, "y", _, "px")), (F || E || L || T) && (R = In(R + F - (F * U + E * j) + L), b = In(b + E - (F * N + E * J) + T)), (d || u) && (K = D.getBBox(), R = In(R + d / 100 * K.width), b = In(b + u / 100 * K.height)), K = "matrix(" + U + "," + N + "," + j + "," + J + "," + R + "," + b + ")", D.setAttribute("transform", K), M && (D.style[yn] = K);
|
|
30381
30364
|
}, h1 = function(a, o, c, d, u) {
|
|
30382
30365
|
var m = 360, _ = Yn(u), y = parseFloat(u) * (_ && ~u.indexOf("rad") ? vl : 1), S = y - d, A = d + S + "deg", I, k;
|
|
30383
30366
|
return _ && (I = u.split("_")[1], I === "short" && (S %= m, S !== S % (m / 2) && (S += S < 0 ? m : -m)), I === "cw" && S < 0 ? S = (S + m * Ap) % m - ~~(S / m) * m : I === "ccw" && S > 0 && (S = (S - m * Ap) % m - ~~(S / m) * m)), a._pt = k = new Nr(a._pt, o, c, d, S, Xy), k.e = A, k.u = "deg", a._props.push(c), k;
|