chbim-plugins 0.0.93 → 0.0.95
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 +784 -800
- package/chbim-plugins.umd.cjs +17 -17
- package/package.json +1 -1
package/chbim-plugins.js
CHANGED
|
@@ -237,14 +237,14 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
237
237
|
var b = this._totalTime;
|
|
238
238
|
this.render(0, !0, !1), this._initted = !1, this.render(b, !0, !1);
|
|
239
239
|
} else if (this._initted = !1, this._init(), this._time > 0 || R)
|
|
240
|
-
for (var U, N = 1 / (1 - M),
|
|
241
|
-
U =
|
|
240
|
+
for (var U, N = 1 / (1 - M), X = this._firstPT; X; )
|
|
241
|
+
U = X.s + X.c, X.c *= N, X.s = U - X.c, X = X._next;
|
|
242
242
|
}
|
|
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,
|
|
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, X, 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, X = this._easeType, J = this._easePower, (X === 1 || X === 3 && N >= 0.5) && (N = 1 - N), X === 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), X === 1 ? this.ratio = 1 - N : X === 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,20 +264,20 @@ 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,
|
|
267
|
+
var N, X, 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
|
-
|
|
272
|
-
for (
|
|
273
|
-
|
|
274
|
-
if (yt && (d(
|
|
275
|
-
G =
|
|
276
|
-
for (
|
|
277
|
-
G[
|
|
278
|
-
d(
|
|
271
|
+
X = {};
|
|
272
|
+
for (K in T)
|
|
273
|
+
X[K] = T[K];
|
|
274
|
+
if (yt && (d(X, E, J), X.duration != null && (L = X.duration, delete X.duration)), G) {
|
|
275
|
+
G = X.startAt = {};
|
|
276
|
+
for (K in T.startAt)
|
|
277
|
+
G[K] = T.startAt[K];
|
|
278
|
+
d(X.startAt, E, J);
|
|
279
279
|
}
|
|
280
|
-
|
|
280
|
+
X.delay = ct + (X.delay || 0), J === N && R && (X.onComplete = et), It[J] = new u(E[J], L, X), ct += M;
|
|
281
281
|
}
|
|
282
282
|
return It;
|
|
283
283
|
}, u.staggerFrom = u.allFrom = function(E, L, T, M, R, b, U) {
|
|
@@ -310,8 +310,8 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
310
310
|
};
|
|
311
311
|
u.killAll = function(E, L, T, M) {
|
|
312
312
|
L == null && (L = !0), T == null && (T = !0);
|
|
313
|
-
var R, b, U, N = D(M != 0),
|
|
314
|
-
for (U = 0;
|
|
313
|
+
var R, b, U, N = D(M != 0), X = N.length, J = L && T && M;
|
|
314
|
+
for (U = 0; X > U; U++)
|
|
315
315
|
b = N[U], (J || b instanceof a || (R = b.target === b.vars.onComplete) && T || L && !R) && (E ? b.totalTime(b._reversed ? 0 : b.totalDuration()) : b._enabled(!1, !1));
|
|
316
316
|
}, u.killChildTweensOf = function(E, L) {
|
|
317
317
|
if (E != null) {
|
|
@@ -331,8 +331,8 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
331
331
|
};
|
|
332
332
|
var F = function(E, L, T, M) {
|
|
333
333
|
L = L !== !1, T = T !== !1, M = M !== !1;
|
|
334
|
-
for (var R, b, U = D(M), N = L && T && M,
|
|
335
|
-
b = U[
|
|
334
|
+
for (var R, b, U = D(M), N = L && T && M, X = U.length; --X > -1; )
|
|
335
|
+
b = U[X], (N || b instanceof a || (R = b.target === b.vars.onComplete) && T || L && !R) && b.paused(E);
|
|
336
336
|
};
|
|
337
337
|
return u.pauseAll = function(E, L, T) {
|
|
338
338
|
F(!0, E, L, T);
|
|
@@ -400,36 +400,36 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
400
400
|
}, L.fromTo = function(T, M, R, b, U) {
|
|
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
|
-
}, L.staggerTo = function(T, M, R, b, U, N,
|
|
404
|
-
var
|
|
403
|
+
}, L.staggerTo = function(T, M, R, b, U, N, X, J) {
|
|
404
|
+
var K, ct, It = new c({
|
|
405
405
|
onComplete: N,
|
|
406
|
-
onCompleteParams:
|
|
406
|
+
onCompleteParams: X,
|
|
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
|
-
}, L.staggerFrom = function(T, M, R, b, U, N,
|
|
414
|
-
return R.immediateRender = R.immediateRender != 0, R.runBackwards = !0, this.staggerTo(T, M, R, b, U, N,
|
|
415
|
-
}, L.staggerFromTo = function(T, M, R, b, U, N,
|
|
416
|
-
return b.startAt = R, b.immediateRender = b.immediateRender != 0 && R.immediateRender != 0, this.staggerTo(T, M, b, U, N,
|
|
413
|
+
}, L.staggerFrom = function(T, M, R, b, U, N, X, J) {
|
|
414
|
+
return R.immediateRender = R.immediateRender != 0, R.runBackwards = !0, this.staggerTo(T, M, R, b, U, N, X, J);
|
|
415
|
+
}, L.staggerFromTo = function(T, M, R, b, U, N, X, J, K) {
|
|
416
|
+
return b.startAt = R, b.immediateRender = b.immediateRender != 0 && R.immediateRender != 0, this.staggerTo(T, M, b, U, N, X, 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) {
|
|
420
420
|
return R = this._parseTimeOrLabel(R, 0, !0), M.immediateRender == null && (M.immediateRender = R === this._time && !this._paused), this.add(new o(T, 0, M), R);
|
|
421
421
|
}, c.exportRoot = function(T, M) {
|
|
422
422
|
T = T || {}, T.smoothChildTiming == null && (T.smoothChildTiming = !0);
|
|
423
|
-
var R, b, U, N,
|
|
424
|
-
for (M == null && (M = !0), J._remove(
|
|
425
|
-
N = U._next, M && U instanceof o && U.target === U.vars.onComplete || (b = U._startTime - U._delay, 0 > b && (R = 1),
|
|
426
|
-
return J.add(
|
|
423
|
+
var R, b, U, N, X = new c(T), J = X._timeline;
|
|
424
|
+
for (M == null && (M = !0), J._remove(X, !0), X._startTime = 0, X._rawPrevTime = X._time = X._totalTime = J._time, U = J._first; U; )
|
|
425
|
+
N = U._next, M && U instanceof o && U.target === U.vars.onComplete || (b = U._startTime - U._delay, 0 > b && (R = 1), X.add(U, b)), U = N;
|
|
426
|
+
return J.add(X, 0), R && X.totalDuration(), X;
|
|
427
427
|
}, L.add = function(T, M, R, b) {
|
|
428
|
-
var U, N,
|
|
428
|
+
var U, N, X, 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
|
-
for (R = R || "normal", b = b || 0, U = M, N = T.length,
|
|
432
|
-
y(J = T[
|
|
431
|
+
for (R = R || "normal", b = b || 0, U = M, N = T.length, X = 0; N > X; X++)
|
|
432
|
+
y(J = T[X]) && (J = new c({ tweens: J })), this.add(J, U), typeof J != "string" && typeof J != "function" && (R === "sequence" ? U = J._startTime + J.totalDuration() / J._timeScale : R === "start" && (J._startTime -= J.delay())), U += b;
|
|
433
433
|
return this._uncache(!0);
|
|
434
434
|
}
|
|
435
435
|
if (typeof T == "string")
|
|
@@ -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,12 +513,12 @@ 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,
|
|
516
|
+
var b, U, N, X, 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
|
-
this._totalTime = this._time = et, this._reversed || this._hasPausedChild() || (U = !0,
|
|
518
|
+
this._totalTime = this._time = et, this._reversed || this._hasPausedChild() || (U = !0, X = "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 && (X = "onReverseComplete"))), this._rawPrevTime = this._duration || !M || T || this._rawPrevTime === T ? T : d, T = et + 1e-4;
|
|
519
519
|
else if (1e-7 > T)
|
|
520
|
-
if (this._totalTime = this._time = 0, (It !== 0 || this._duration === 0 && this._rawPrevTime !== d && (this._rawPrevTime > 0 || 0 > T && this._rawPrevTime >= 0)) && (
|
|
521
|
-
this._active = !1, this._timeline.autoRemoveChildren && this._reversed ? (J = U = !0,
|
|
520
|
+
if (this._totalTime = this._time = 0, (It !== 0 || this._duration === 0 && this._rawPrevTime !== d && (this._rawPrevTime > 0 || 0 > T && this._rawPrevTime >= 0)) && (X = "onReverseComplete", U = this._reversed), 0 > T)
|
|
521
|
+
this._active = !1, this._timeline.autoRemoveChildren && this._reversed ? (J = U = !0, X = "onReverseComplete") : this._rawPrevTime >= 0 && this._first && (J = !0), this._rawPrevTime = T;
|
|
522
522
|
else {
|
|
523
523
|
if (this._rawPrevTime = this._duration || !M || T || this._rawPrevTime === T ? T : d, T === 0 && U)
|
|
524
524
|
for (b = this._first; b && b._startTime === 0; )
|
|
@@ -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,
|
|
@@ -565,7 +565,7 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
565
565
|
}
|
|
566
566
|
b = N;
|
|
567
567
|
}
|
|
568
|
-
this._onUpdate && (M || (S.length && A(), this._callback("onUpdate"))),
|
|
568
|
+
this._onUpdate && (M || (S.length && A(), this._callback("onUpdate"))), X && (this._gc || (yt === this._startTime || G !== this._timeScale) && (this._time === 0 || et >= this.totalDuration()) && (U && (S.length && A(), this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !M && this.vars[X] && this._callback(X)));
|
|
569
569
|
}
|
|
570
570
|
}, L._hasPausedChild = function() {
|
|
571
571
|
for (var T = this._first; T; ) {
|
|
@@ -576,13 +576,13 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
576
576
|
return !1;
|
|
577
577
|
}, L.getChildren = function(T, M, R, b) {
|
|
578
578
|
b = b || -9999999999;
|
|
579
|
-
for (var U = [], N = this._first,
|
|
580
|
-
N._startTime < b || (N instanceof o ? M !== !1 && (U[
|
|
579
|
+
for (var U = [], N = this._first, X = 0; N; )
|
|
580
|
+
N._startTime < b || (N instanceof o ? M !== !1 && (U[X++] = N) : (R !== !1 && (U[X++] = N), T !== !1 && (U = U.concat(N.getChildren(!0, M, R)), X = U.length))), N = N._next;
|
|
581
581
|
return U;
|
|
582
582
|
}, L.getTweensOf = function(T, M) {
|
|
583
|
-
var R, b, U = this._gc, N = [],
|
|
583
|
+
var R, b, U = this._gc, N = [], X = 0;
|
|
584
584
|
for (U && this._enabled(!0, !0), R = o.getTweensOf(T), b = R.length; --b > -1; )
|
|
585
|
-
(R[b].timeline === this || M && this._contains(R[b])) && (N[
|
|
585
|
+
(R[b].timeline === this || M && this._contains(R[b])) && (N[X++] = R[b]);
|
|
586
586
|
return U && this._enabled(!1, !0), N;
|
|
587
587
|
}, L.recent = function() {
|
|
588
588
|
return this._recent;
|
|
@@ -700,9 +700,9 @@ 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,
|
|
704
|
-
if (N !== this._time && (I += this._time - N), I >=
|
|
705
|
-
this._locked || (this._totalTime =
|
|
703
|
+
var F, E, L, T, M, R, b, U, N = this._time, X = 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
|
+
if (N !== this._time && (I += this._time - N), I >= X - 1e-7 && I >= 0)
|
|
705
|
+
this._locked || (this._totalTime = X, 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)
|
|
707
707
|
if (this._locked || (this._totalTime = this._cycle = 0), this._time = 0, (N !== 0 || J === 0 && et !== d && (et > 0 || 0 > I && et >= 0) && !this._locked) && (T = "onReverseComplete", E = this._reversed), 0 > I)
|
|
708
708
|
this._active = !1, this._timeline.autoRemoveChildren && this._reversed ? (M = E = !0, T = "onReverseComplete") : et >= 0 && this._first && (M = !0), this._rawPrevTime = 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,
|
|
@@ -756,7 +756,7 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
756
756
|
}
|
|
757
757
|
F = L;
|
|
758
758
|
}
|
|
759
|
-
this._onUpdate && (k || (m.length && _(), this._callback("onUpdate"))), T && (this._locked || this._gc || (ct === this._startTime || It !== this._timeScale) && (this._time === 0 ||
|
|
759
|
+
this._onUpdate && (k || (m.length && _(), this._callback("onUpdate"))), T && (this._locked || this._gc || (ct === this._startTime || It !== this._timeScale) && (this._time === 0 || X >= this.totalDuration()) && (E && (m.length && _(), this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !k && this.vars[T] && this._callback(T)));
|
|
760
760
|
}, A.getActive = function(I, k, D) {
|
|
761
761
|
I == null && (I = !0), k == null && (k = !0), D == null && (D = !1);
|
|
762
762
|
var F, E, L = [], T = this.getChildren(I, k, D), M = 0, R = T.length;
|
|
@@ -811,77 +811,77 @@ 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 = {},
|
|
815
|
-
return U.b =
|
|
814
|
+
var U = { a: T }, N = {}, X = {}, 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 = X.a = (et + yt) / 2, X.b = yt - G, J.b = It + (b - It) / 4, X.c = J.a = (X.b + J.b) / 2, [U, N, X, J];
|
|
816
816
|
}, S = function(T, M, R, b, U) {
|
|
817
|
-
var N,
|
|
817
|
+
var N, X, 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],
|
|
819
|
+
ct = T[Ft], X = 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 - X) * (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 - X) * 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 - X, ct.ca = G - X, ct.ba = Ot - X, R ? (Pt = y(X, 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,
|
|
822
|
+
var U, N, X, 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
|
-
|
|
829
|
+
X = T[N][M], J = T[N + 1][M], It[N] = new m(X, 0, 0, J), R && (K = T[N + 2][M], a[N] = (a[N] || 0) + (J - X) * (J - X), 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
|
|
832
|
+
var X, 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);
|
|
836
836
|
if (T.length > 1) {
|
|
837
|
-
for (G = T[T.length - 1], yt = !0,
|
|
838
|
-
if (J = Et[
|
|
837
|
+
for (G = T[T.length - 1], yt = !0, X = Et.length; --X > -1; )
|
|
838
|
+
if (J = Et[X], Math.abs(Ct[J] - G[J]) > 0.05) {
|
|
839
839
|
yt = !1;
|
|
840
840
|
break;
|
|
841
841
|
}
|
|
842
842
|
yt && (T = T.concat(), N && T.unshift(N), T.push(T[1]), N = T[T.length - 3]);
|
|
843
843
|
}
|
|
844
|
-
for (a.length = o.length = c.length = 0,
|
|
845
|
-
J = Et[
|
|
846
|
-
for (
|
|
847
|
-
a[
|
|
844
|
+
for (a.length = o.length = c.length = 0, X = Et.length; --X > -1; )
|
|
845
|
+
J = Et[X], d[J] = U.indexOf("," + J + ",") !== -1, Pt[J] = A(T, J, d[J], N);
|
|
846
|
+
for (X = a.length; --X > -1; )
|
|
847
|
+
a[X] = Math.sqrt(a[X]), o[X] = Math.sqrt(o[X]);
|
|
848
848
|
if (!b) {
|
|
849
|
-
for (
|
|
849
|
+
for (X = Et.length; --X > -1; )
|
|
850
850
|
if (d[J])
|
|
851
|
-
for (
|
|
852
|
-
It =
|
|
853
|
-
for (
|
|
854
|
-
c[
|
|
851
|
+
for (K = Pt[Et[X]], 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
|
+
for (X = c.length; --X > -1; )
|
|
854
|
+
c[X] = Math.sqrt(c[X]);
|
|
855
855
|
}
|
|
856
|
-
for (
|
|
857
|
-
J = Et[
|
|
856
|
+
for (X = Et.length, ct = R ? 4 : 1; --X > -1; )
|
|
857
|
+
J = Et[X], 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,
|
|
861
|
+
var b, U, N, X, 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
|
-
b = J[ct], U = J[ct + 1], N = J[ct + 2],
|
|
870
|
+
b = J[ct], U = J[ct + 1], N = J[ct + 2], X = Et === 2 ? 0 : J[ct + 3], J[yt++] = G = Et === 3 ? new m(b, U, N, X) : new m(b, (2 * U + b) / 3, (2 * U + N) / 3, N);
|
|
871
871
|
J.length = yt;
|
|
872
872
|
}
|
|
873
873
|
return Pt;
|
|
874
874
|
}, D = function(T, M, R) {
|
|
875
|
-
for (var b, U, N,
|
|
876
|
-
for (yt = T[Et], N = yt.a,
|
|
877
|
-
ct = Pt * It, et = 1 - ct, b = U - (U = (ct * ct *
|
|
875
|
+
for (var b, U, N, X, J, K, ct, It, et, yt, G, Pt = 1 / R, Et = T.length; --Et > -1; )
|
|
876
|
+
for (yt = T[Et], N = yt.a, X = 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 * X + 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,
|
|
880
|
+
var R, b, U, N, X = [], J = [], K = 0, ct = 0, It = M - 1, et = [], yt = [];
|
|
881
881
|
for (R in T)
|
|
882
|
-
D(T[R],
|
|
883
|
-
for (U =
|
|
884
|
-
|
|
882
|
+
D(T[R], X, M);
|
|
883
|
+
for (U = X.length, b = 0; U > b; b++)
|
|
884
|
+
K += Math.sqrt(X[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,36 +891,36 @@ 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,
|
|
894
|
+
var b, U, N, X, 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
|
}
|
|
911
911
|
if (et = this._autoRotate)
|
|
912
912
|
for (this._initialRotations = [], et[0] instanceof Array || (this._autoRotate = et = [et]), N = et.length; --N > -1; ) {
|
|
913
|
-
for (
|
|
914
|
-
b = et[N][
|
|
913
|
+
for (X = 0; 3 > X; X++)
|
|
914
|
+
b = et[N][X], this._func[b] = typeof T[b] == "function" ? T[b.indexOf("set") || typeof T["get" + b.substr(3)] != "function" ? b : "get" + b.substr(3)] : !1;
|
|
915
915
|
b = et[N][2], this._initialRotations[N] = (this._func[b] ? this._func[b].call(this._target) : this._target[b]) || 0, this._overwriteProps.push(b);
|
|
916
916
|
}
|
|
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,
|
|
920
|
+
var M, R, b, U, N, X, 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) {
|
|
@@ -937,15 +937,15 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
937
937
|
;
|
|
938
938
|
b === 0 && T < this._s1 ? this._s1 = 0 : b++, this._s2 = It[b], this._si = b;
|
|
939
939
|
}
|
|
940
|
-
|
|
940
|
+
X = (b + (T - this._s1) / (this._s2 - this._s1)) * this._prec || 0;
|
|
941
941
|
} else
|
|
942
|
-
M = 0 > T ? 0 : T >= 1 ? et - 1 : et * T >> 0,
|
|
943
|
-
for (R = 1 -
|
|
944
|
-
U = this._props[b], N = this._beziers[U][M], J = (
|
|
942
|
+
M = 0 > T ? 0 : T >= 1 ? et - 1 : et * T >> 0, X = (T - M * (1 / et)) * et;
|
|
943
|
+
for (R = 1 - X, b = this._props.length; --b > -1; )
|
|
944
|
+
U = this._props[b], N = this._beziers[U][M], J = (X * X * N.da + 3 * R * (X * N.ca + R * N.ba)) * X + N.a, this._mod[U] && (J = this._mod[U](J, G)), yt[U] ? G[U](J) : G[U] = J;
|
|
945
945
|
if (this._autoRotate) {
|
|
946
946
|
var Et, Ct, fe, re, Ft, Ot, Bt, ke = this._autoRotate;
|
|
947
947
|
for (b = ke.length; --b > -1; )
|
|
948
|
-
U = ke[b][2], Ot = ke[b][3] || 0, Bt = ke[b][4] === !0 ? 1 : x, N = this._beziers[ke[b][0]], Et = this._beziers[ke[b][1]], N && Et && (N = N[M], Et = Et[M], Ct = N.a + (N.b - N.a) *
|
|
948
|
+
U = ke[b][2], Ot = ke[b][3] || 0, Bt = ke[b][4] === !0 ? 1 : x, N = this._beziers[ke[b][0]], Et = this._beziers[ke[b][1]], N && Et && (N = N[M], Et = Et[M], Ct = N.a + (N.b - N.a) * X, re = N.b + (N.c - N.b) * X, Ct += (re - Ct) * X, re += (N.c + (N.d - N.c) * X - re) * X, fe = Et.a + (Et.b - Et.a) * X, Ft = Et.b + (Et.c - Et.b) * X, fe += (Ft - fe) * X, Ft += (Et.c + (Et.d - Et.c) * X - Ft) * X, J = Pt ? Math.atan2(Ft - fe, re - Ct) * Bt + Ot : this._initialRotations[b], this._mod[U] && (J = this._mod[U](J, G)), yt[U] ? G[U](J) : G[U] = J);
|
|
949
949
|
}
|
|
950
950
|
}
|
|
951
951
|
}), L = E.prototype;
|
|
@@ -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,
|
|
960
|
-
|
|
961
|
-
var et, yt, G, Pt =
|
|
959
|
+
parser: function(N, X, J, K, ct, It) {
|
|
960
|
+
X instanceof Array && (X = { values: X }), It = new E();
|
|
961
|
+
var et, yt, G, Pt = X.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],
|
|
966
|
-
for (yt in
|
|
967
|
-
fe[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 && (
|
|
965
|
+
G = R(N, Pt[et], K, ct, It, Et !== et), Ct[et] = G.end;
|
|
966
|
+
for (yt in X)
|
|
967
|
+
fe[yt] = X[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 && (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,
|
|
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, X = /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() {
|
|
@@ -1015,24 +1015,24 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1015
1015
|
var V = Ge.indexOf("Android"), tt = Yt("a");
|
|
1016
1016
|
return k = Ge.indexOf("Safari") !== -1 && Ge.indexOf("Chrome") === -1 && (V === -1 || parseFloat(Ge.substr(V + 8, 2)) > 3), F = k && parseFloat(Ge.substr(Ge.indexOf("Version/") + 8, 2)) < 6, D = Ge.indexOf("Firefox") !== -1, (/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(Ge) || /Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(Ge)) && (E = parseFloat(RegExp.$1)), tt ? (tt.style.cssText = "top:1px;opacity:.55;", /^0.55/.test(tt.style.opacity)) : !1;
|
|
1017
1017
|
}(), Ri = function(V) {
|
|
1018
|
-
return
|
|
1018
|
+
return X.test(
|
|
1019
1019
|
typeof V == "string" ? V : (V.currentStyle ? V.currentStyle.filter : V.style.filter) || ""
|
|
1020
1020
|
) ? parseFloat(RegExp.$1) / 100 : 1;
|
|
1021
1021
|
}, cn = function(V) {
|
|
1022
1022
|
hn.console && console.log(V);
|
|
1023
1023
|
}, Ji = "", W = "", Jt = function(V, tt) {
|
|
1024
1024
|
tt = tt || $e;
|
|
1025
|
-
var lt, at,
|
|
1026
|
-
if (
|
|
1025
|
+
var lt, at, j = tt.style;
|
|
1026
|
+
if (j[V] !== void 0)
|
|
1027
1027
|
return V;
|
|
1028
|
-
for (V = V.charAt(0).toUpperCase() + V.substr(1), lt = ["O", "Moz", "ms", "Ms", "Webkit"], at = 5; --at > -1 &&
|
|
1028
|
+
for (V = V.charAt(0).toUpperCase() + V.substr(1), lt = ["O", "Moz", "ms", "Ms", "Webkit"], at = 5; --at > -1 && j[lt[at] + V] === void 0; )
|
|
1029
1029
|
;
|
|
1030
1030
|
return at >= 0 ? (W = at === 3 ? "ms" : lt[at], Ji = "-" + W.toLowerCase() + "-", W + V) : null;
|
|
1031
1031
|
}, Wt = (typeof window < "u" ? window : ce.defaultView || { getComputedStyle: function() {
|
|
1032
|
-
} }).getComputedStyle, pt = m.getStyle = function(V, tt, lt, at,
|
|
1032
|
+
} }).getComputedStyle, pt = m.getStyle = function(V, tt, lt, at, j) {
|
|
1033
1033
|
var St;
|
|
1034
|
-
return pi || tt !== "opacity" ? (!at && V.style[tt] ? St = V.style[tt] : (lt = lt || Wt(V)) ? St = lt[tt] || lt.getPropertyValue(tt) || lt.getPropertyValue(tt.replace(It, "-$1").toLowerCase()) : V.currentStyle && (St = V.currentStyle[tt]),
|
|
1035
|
-
}, dt = Oe.convertToPixels = function(V, tt, lt, at,
|
|
1034
|
+
return pi || tt !== "opacity" ? (!at && V.style[tt] ? St = V.style[tt] : (lt = lt || Wt(V)) ? St = lt[tt] || lt.getPropertyValue(tt) || lt.getPropertyValue(tt.replace(It, "-$1").toLowerCase()) : V.currentStyle && (St = V.currentStyle[tt]), j == null || St && St !== "none" && St !== "auto" && St !== "auto auto" ? St : j) : Ri(V);
|
|
1035
|
+
}, dt = Oe.convertToPixels = function(V, tt, lt, at, j) {
|
|
1036
1036
|
if (at === "px" || !at && tt !== "lineHeight")
|
|
1037
1037
|
return lt;
|
|
1038
1038
|
if (at === "auto" || !lt)
|
|
@@ -1049,7 +1049,7 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1049
1049
|
return ht.width * lt / 100;
|
|
1050
1050
|
Mt[Ht ? "width" : "height"] = lt + at;
|
|
1051
1051
|
}
|
|
1052
|
-
kt.appendChild($e), St = parseFloat($e[Ht ? "offsetWidth" : "offsetHeight"]), kt.removeChild($e), Ht && at === "%" && m.cacheWidths !== !1 && (ht = kt._gsCache = kt._gsCache || {}, ht.time = Rt, ht.width = St / lt * 100), St !== 0 ||
|
|
1052
|
+
kt.appendChild($e), St = parseFloat($e[Ht ? "offsetWidth" : "offsetHeight"]), kt.removeChild($e), Ht && at === "%" && m.cacheWidths !== !1 && (ht = kt._gsCache = kt._gsCache || {}, ht.time = Rt, ht.width = St / lt * 100), St !== 0 || j || (St = dt(V, tt, lt, at, !0));
|
|
1053
1053
|
}
|
|
1054
1054
|
else
|
|
1055
1055
|
ht = Wt(V).lineHeight, V.style.lineHeight = lt, St = parseFloat(Wt(V).lineHeight), V.style.lineHeight = ht;
|
|
@@ -1057,14 +1057,14 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1057
1057
|
}, Dt = Oe.calculateOffset = function(V, tt, lt) {
|
|
1058
1058
|
if (pt(V, "position", lt) !== "absolute")
|
|
1059
1059
|
return 0;
|
|
1060
|
-
var at = tt === "left" ? "Left" : "Top",
|
|
1061
|
-
return V["offset" + at] - (dt(V, tt, parseFloat(
|
|
1060
|
+
var at = tt === "left" ? "Left" : "Top", j = pt(V, "margin" + at, lt);
|
|
1061
|
+
return V["offset" + at] - (dt(V, tt, parseFloat(j), j.replace(N, "")) || 0);
|
|
1062
1062
|
}, ie = function(V, tt) {
|
|
1063
|
-
var lt, at,
|
|
1063
|
+
var lt, at, j, St = {};
|
|
1064
1064
|
if (tt = tt || Wt(V, null))
|
|
1065
1065
|
if (lt = tt.length)
|
|
1066
1066
|
for (; --lt > -1; )
|
|
1067
|
-
|
|
1067
|
+
j = tt[lt], (j.indexOf("-transform") === -1 || Xo === j) && (St[j.replace(et, G)] = tt.getPropertyValue(j));
|
|
1068
1068
|
else
|
|
1069
1069
|
for (lt in tt)
|
|
1070
1070
|
(lt.indexOf("Transform") === -1 || xn === lt) && (St[lt] = tt[lt]);
|
|
@@ -1072,10 +1072,10 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1072
1072
|
for (lt in tt)
|
|
1073
1073
|
typeof lt == "string" && St[lt] === void 0 && (St[lt.replace(et, G)] = tt[lt]);
|
|
1074
1074
|
return pi || (St.opacity = Ri(V)), at = ss(V, tt, !1), St.rotation = at.rotation, St.skewX = at.skewX, St.scaleX = at.scaleX, St.scaleY = at.scaleY, St.x = at.x, St.y = at.y, dr && (St.z = at.z, St.rotationX = at.rotationX, St.rotationY = at.rotationY, St.scaleZ = at.scaleZ), St.filters && delete St.filters, St;
|
|
1075
|
-
}, Kt = function(V, tt, lt, at,
|
|
1075
|
+
}, Kt = function(V, tt, lt, at, j) {
|
|
1076
1076
|
var St, ht, Rt, Ht = {}, kt = V.style;
|
|
1077
1077
|
for (ht in lt)
|
|
1078
|
-
ht !== "cssText" && ht !== "length" && isNaN(ht) && (tt[ht] !== (St = lt[ht]) ||
|
|
1078
|
+
ht !== "cssText" && ht !== "length" && isNaN(ht) && (tt[ht] !== (St = lt[ht]) || j && j[ht]) && ht.indexOf("Origin") === -1 && (typeof St == "number" || typeof St == "string") && (Ht[ht] = St !== "auto" || ht !== "left" && ht !== "top" ? St !== "" && St !== "auto" && St !== "none" || typeof tt[ht] != "string" || tt[ht].replace(U, "") === "" ? St : 0 : Dt(V, ht), kt[ht] !== void 0 && (Rt = new ni(kt, ht, kt[ht], Rt)));
|
|
1079
1079
|
if (at)
|
|
1080
1080
|
for (ht in at)
|
|
1081
1081
|
ht !== "className" && (Ht[ht] = at[ht]);
|
|
@@ -1085,21 +1085,21 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1085
1085
|
return (lt || Wt(V))[tt] || 0;
|
|
1086
1086
|
if (V.getCTM && ka(V))
|
|
1087
1087
|
return V.getBBox()[tt] || 0;
|
|
1088
|
-
var at = parseFloat(tt === "width" ? V.offsetWidth : V.offsetHeight),
|
|
1088
|
+
var at = parseFloat(tt === "width" ? V.offsetWidth : V.offsetHeight), j = z[tt], St = j.length;
|
|
1089
1089
|
for (lt = lt || Wt(V, null); --St > -1; )
|
|
1090
|
-
at -= parseFloat(pt(V, "padding" +
|
|
1090
|
+
at -= parseFloat(pt(V, "padding" + j[St], lt, !0)) || 0, at -= parseFloat(pt(V, "border" + j[St] + "Width", lt, !0)) || 0;
|
|
1091
1091
|
return at;
|
|
1092
1092
|
}, nt = function(V, tt) {
|
|
1093
1093
|
if (V === "contain" || V === "auto" || V === "auto auto")
|
|
1094
1094
|
return V + " ";
|
|
1095
1095
|
(V == null || V === "") && (V = "0 0");
|
|
1096
|
-
var lt, at = V.split(" "),
|
|
1096
|
+
var lt, at = V.split(" "), j = V.indexOf("left") !== -1 ? "0%" : V.indexOf("right") !== -1 ? "100%" : at[0], St = V.indexOf("top") !== -1 ? "0%" : V.indexOf("bottom") !== -1 ? "100%" : at[1];
|
|
1097
1097
|
if (at.length > 3 && !tt) {
|
|
1098
1098
|
for (at = V.split(", ").join(",").split(","), V = [], lt = 0; lt < at.length; lt++)
|
|
1099
1099
|
V.push(nt(at[lt]));
|
|
1100
1100
|
return V.join(",");
|
|
1101
1101
|
}
|
|
1102
|
-
return St == null ? St =
|
|
1102
|
+
return St == null ? St = j === "center" ? "50%" : "0" : St === "center" && (St = "50%"), (j === "center" || isNaN(parseFloat(j)) && (j + "").indexOf("=") === -1) && (j = "50%"), V = j + " " + St + (at.length > 2 ? " " + at[2] : ""), tt && (tt.oxp = j.indexOf("%") !== -1, tt.oyp = St.indexOf("%") !== -1, tt.oxr = j.charAt(1) === "=", tt.oyr = St.charAt(1) === "=", tt.ox = parseFloat(j.replace(U, "")), tt.oy = parseFloat(St.replace(U, "")), tt.v = V), tt || V;
|
|
1103
1103
|
}, vt = function(V, tt) {
|
|
1104
1104
|
return typeof V == "function" && (V = V(T, L)), typeof V == "string" && V.charAt(1) === "=" ? parseInt(V.charAt(0) + "1", 10) * parseFloat(V.substr(2)) : parseFloat(V) - parseFloat(tt) || 0;
|
|
1105
1105
|
}, Gt = function(V, tt) {
|
|
@@ -1107,8 +1107,8 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1107
1107
|
var lt = typeof V == "string" && V.charAt(1) === "=";
|
|
1108
1108
|
return typeof V == "string" && V.charAt(V.length - 2) === "v" && (V = (lt ? V.substr(0, 2) : 0) + window["inner" + (V.substr(-2) === "vh" ? "Height" : "Width")] * (parseFloat(lt ? V.substr(2) : V) / 100)), V == null ? tt : lt ? parseInt(V.charAt(0) + "1", 10) * parseFloat(V.substr(2)) + tt : parseFloat(V) || 0;
|
|
1109
1109
|
}, Xt = function(V, tt, lt, at) {
|
|
1110
|
-
var
|
|
1111
|
-
return typeof V == "function" && (V = V(T, L)), V == null ? Rt = tt : typeof V == "number" ? Rt = V : (
|
|
1110
|
+
var j, St, ht, Rt, Ht, kt = 1e-6;
|
|
1111
|
+
return typeof V == "function" && (V = V(T, L)), V == null ? Rt = tt : typeof V == "number" ? Rt = V : (j = 360, St = V.split("_"), Ht = V.charAt(1) === "=", ht = (Ht ? parseInt(V.charAt(0) + "1", 10) * parseFloat(St[0].substr(2)) : parseFloat(St[0])) * (V.indexOf("rad") === -1 ? 1 : Ot) - (Ht ? 0 : tt), St.length && (at && (at[lt] = tt + ht), V.indexOf("short") !== -1 && (ht %= j, ht !== ht % (j / 2) && (ht = 0 > ht ? ht + j : ht - j)), V.indexOf("_cw") !== -1 && 0 > ht ? ht = (ht + 9999999999 * j) % j - (ht / j | 0) * j : V.indexOf("ccw") !== -1 && ht > 0 && (ht = (ht - 9999999999 * j) % j - (ht / j | 0) * j)), Rt = tt + ht), kt > Rt && Rt > -kt && (Rt = 0), Rt;
|
|
1112
1112
|
}, jt = {
|
|
1113
1113
|
aqua: [0, 255, 255],
|
|
1114
1114
|
lime: [0, 255, 0],
|
|
@@ -1133,7 +1133,7 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1133
1133
|
}, Ne = function(V, tt, lt) {
|
|
1134
1134
|
return V = 0 > V ? V + 1 : V > 1 ? V - 1 : V, 255 * (1 > 6 * V ? tt + (lt - tt) * V * 6 : 0.5 > V ? lt : 2 > 3 * V ? tt + (lt - tt) * (2 / 3 - V) * 6 : tt) + 0.5 | 0;
|
|
1135
1135
|
}, Re = m.parseColor = function(V, tt) {
|
|
1136
|
-
var lt, at,
|
|
1136
|
+
var lt, at, j, St, ht, Rt, Ht, kt, Mt, he, oe;
|
|
1137
1137
|
if (V)
|
|
1138
1138
|
if (typeof V == "number")
|
|
1139
1139
|
lt = [V >> 16, V >> 8 & 255, 255 & V];
|
|
@@ -1141,26 +1141,26 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1141
1141
|
if (V.charAt(V.length - 1) === "," && (V = V.substr(0, V.length - 1)), jt[V])
|
|
1142
1142
|
lt = jt[V];
|
|
1143
1143
|
else if (V.charAt(0) === "#")
|
|
1144
|
-
V.length === 4 && (at = V.charAt(1),
|
|
1144
|
+
V.length === 4 && (at = V.charAt(1), j = V.charAt(2), St = V.charAt(3), V = "#" + at + at + j + j + St + St), V = parseInt(V.substr(1), 16), lt = [V >> 16, V >> 8 & 255, 255 & V];
|
|
1145
1145
|
else if (V.substr(0, 3) === "hsl")
|
|
1146
1146
|
if (lt = oe = V.match(M), tt) {
|
|
1147
1147
|
if (V.indexOf("=") !== -1)
|
|
1148
1148
|
return V.match(R);
|
|
1149
1149
|
} else
|
|
1150
|
-
ht = Number(lt[0]) % 360 / 360, Rt = Number(lt[1]) / 100, Ht = Number(lt[2]) / 100,
|
|
1150
|
+
ht = Number(lt[0]) % 360 / 360, Rt = Number(lt[1]) / 100, Ht = Number(lt[2]) / 100, j = 0.5 >= Ht ? Ht * (Rt + 1) : Ht + Rt - Ht * Rt, at = 2 * Ht - j, lt.length > 3 && (lt[3] = Number(lt[3])), lt[0] = Ne(ht + 1 / 3, at, j), lt[1] = Ne(ht, at, j), lt[2] = Ne(ht - 1 / 3, at, j);
|
|
1151
1151
|
else
|
|
1152
1152
|
lt = V.match(M) || jt.transparent;
|
|
1153
1153
|
lt[0] = Number(lt[0]), lt[1] = Number(lt[1]), lt[2] = Number(lt[2]), lt.length > 3 && (lt[3] = Number(lt[3]));
|
|
1154
1154
|
}
|
|
1155
1155
|
else
|
|
1156
1156
|
lt = jt.black;
|
|
1157
|
-
return tt && !oe && (at = lt[0] / 255,
|
|
1157
|
+
return tt && !oe && (at = lt[0] / 255, j = lt[1] / 255, St = lt[2] / 255, kt = Math.max(at, j, St), Mt = Math.min(at, j, St), Ht = (kt + Mt) / 2, kt === Mt ? ht = Rt = 0 : (he = kt - Mt, Rt = Ht > 0.5 ? he / (2 - kt - Mt) : he / (kt + Mt), ht = kt === at ? (j - St) / he + (St > j ? 6 : 0) : kt === j ? (St - at) / he + 2 : (at - j) / he + 4, ht *= 60), lt[0] = ht + 0.5 | 0, lt[1] = 100 * Rt + 0.5 | 0, lt[2] = 100 * Ht + 0.5 | 0), lt;
|
|
1158
1158
|
}, ge = function(V, tt) {
|
|
1159
|
-
var lt, at,
|
|
1159
|
+
var lt, at, j, St = V.match(we) || [], ht = 0, Rt = "";
|
|
1160
1160
|
if (!St.length)
|
|
1161
1161
|
return V;
|
|
1162
1162
|
for (lt = 0; lt < St.length; lt++)
|
|
1163
|
-
at = St[lt],
|
|
1163
|
+
at = St[lt], j = V.substr(ht, V.indexOf(at, ht) - ht), ht += j.length + at.length, at = Re(at, tt), at.length === 3 && at.push(1), Rt += j + (tt ? "hsla(" + at[0] + "," + at[1] + "%," + at[2] + "%," + at[3] : "rgba(" + at.join(",")) + ")";
|
|
1164
1164
|
return Rt + V.substr(ht);
|
|
1165
1165
|
}, we = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";
|
|
1166
1166
|
for (S in jt)
|
|
@@ -1174,14 +1174,14 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1174
1174
|
return function(oe) {
|
|
1175
1175
|
return oe;
|
|
1176
1176
|
};
|
|
1177
|
-
var
|
|
1178
|
-
return Mt ?
|
|
1177
|
+
var j, St = tt ? (V.match(we) || [""])[0] : "", ht = V.split(St).join("").match(b) || [], Rt = V.substr(0, V.indexOf(ht[0])), Ht = V.charAt(V.length - 1) === ")" ? ")" : "", kt = V.indexOf(" ") !== -1 ? " " : ",", Mt = ht.length, he = Mt > 0 ? ht[0].replace(M, "") : "";
|
|
1178
|
+
return Mt ? j = tt ? function(oe) {
|
|
1179
1179
|
var te, _e, ue, je;
|
|
1180
1180
|
if (typeof oe == "number")
|
|
1181
1181
|
oe += he;
|
|
1182
1182
|
else if (at && fe.test(oe)) {
|
|
1183
1183
|
for (je = oe.replace(fe, "|").split("|"), ue = 0; ue < je.length; ue++)
|
|
1184
|
-
je[ue] =
|
|
1184
|
+
je[ue] = j(je[ue]);
|
|
1185
1185
|
return je.join(",");
|
|
1186
1186
|
}
|
|
1187
1187
|
if (te = (oe.match(we) || [St])[0], _e = oe.split(te).join("").match(b) || [], ue = _e.length, Mt > ue--)
|
|
@@ -1194,7 +1194,7 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1194
1194
|
oe += he;
|
|
1195
1195
|
else if (at && fe.test(oe)) {
|
|
1196
1196
|
for (_e = oe.replace(fe, "|").split("|"), ue = 0; ue < _e.length; ue++)
|
|
1197
|
-
_e[ue] =
|
|
1197
|
+
_e[ue] = j(_e[ue]);
|
|
1198
1198
|
return _e.join(",");
|
|
1199
1199
|
}
|
|
1200
1200
|
if (te = oe.match(b) || [], ue = te.length, Mt > ue--)
|
|
@@ -1205,46 +1205,46 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1205
1205
|
return oe;
|
|
1206
1206
|
};
|
|
1207
1207
|
}, Mi = function(V) {
|
|
1208
|
-
return V = V.split(","), function(tt, lt, at,
|
|
1208
|
+
return V = V.split(","), function(tt, lt, at, j, St, ht, Rt) {
|
|
1209
1209
|
var Ht, kt = (lt + "").split(" ");
|
|
1210
1210
|
for (Rt = {}, Ht = 0; 4 > Ht; Ht++)
|
|
1211
1211
|
Rt[V[Ht]] = kt[Ht] = kt[Ht] || kt[(Ht - 1) / 2 >> 0];
|
|
1212
|
-
return
|
|
1212
|
+
return j.parse(tt, Rt, St, ht);
|
|
1213
1213
|
};
|
|
1214
1214
|
}, ni = (Oe._setPluginRatio = function(V) {
|
|
1215
1215
|
this.plugin.setRatio(V);
|
|
1216
|
-
for (var tt, lt, at,
|
|
1216
|
+
for (var tt, lt, at, j, St, ht = this.data, Rt = ht.proxy, Ht = ht.firstMPT, kt = 1e-6; Ht; )
|
|
1217
1217
|
tt = Rt[Ht.v], Ht.r ? tt = Ht.r(tt) : kt > tt && tt > -kt && (tt = 0), Ht.t[Ht.p] = tt, Ht = Ht._next;
|
|
1218
1218
|
if (ht.autoRotate && (ht.autoRotate.rotation = ht.mod ? ht.mod.call(this._tween, Rt.rotation, this.t, this._tween) : Rt.rotation), V === 1 || V === 0)
|
|
1219
1219
|
for (Ht = ht.firstMPT, St = V === 1 ? "e" : "b"; Ht; ) {
|
|
1220
1220
|
if (lt = Ht.t, lt.type) {
|
|
1221
1221
|
if (lt.type === 1) {
|
|
1222
|
-
for (
|
|
1223
|
-
|
|
1224
|
-
lt[St] =
|
|
1222
|
+
for (j = lt.xs0 + lt.s + lt.xs1, at = 1; at < lt.l; at++)
|
|
1223
|
+
j += lt["xn" + at] + lt["xs" + (at + 1)];
|
|
1224
|
+
lt[St] = j;
|
|
1225
1225
|
}
|
|
1226
1226
|
} else
|
|
1227
1227
|
lt[St] = lt.s + lt.xs0;
|
|
1228
1228
|
Ht = Ht._next;
|
|
1229
1229
|
}
|
|
1230
|
-
}, function(V, tt, lt, at,
|
|
1231
|
-
this.t = V, this.p = tt, this.v = lt, this.r =
|
|
1232
|
-
}), Si = (Oe._parseToProxy = function(V, tt, lt, at,
|
|
1230
|
+
}, function(V, tt, lt, at, j) {
|
|
1231
|
+
this.t = V, this.p = tt, this.v = lt, this.r = j, at && (at._prev = this, this._next = at);
|
|
1232
|
+
}), Si = (Oe._parseToProxy = function(V, tt, lt, at, j, St) {
|
|
1233
1233
|
var ht, Rt, Ht, kt, Mt, he = at, oe = {}, te = {}, _e = lt._transform, ue = Bt;
|
|
1234
|
-
for (lt._transform = null, Bt = tt, at = Mt = lt.parse(V, tt, at,
|
|
1234
|
+
for (lt._transform = null, Bt = tt, at = Mt = lt.parse(V, tt, at, j), Bt = ue, St && (lt._transform = _e, he && (he._prev = null, he._prev && (he._prev._next = null))); at && at !== he; ) {
|
|
1235
1235
|
if (at.type <= 1 && (Rt = at.p, te[Rt] = at.s + at.c, oe[Rt] = at.s, St || (kt = new ni(at, "s", Rt, kt, at.r), at.c = 0), at.type === 1))
|
|
1236
1236
|
for (ht = at.l; --ht > 0; )
|
|
1237
1237
|
Ht = "xn" + ht, Rt = at.p + "_" + Ht, te[Rt] = at.data[Ht], oe[Rt] = at[Ht], St || (kt = new ni(at, Ht, Rt, kt, at.rxp[Ht]));
|
|
1238
1238
|
at = at._next;
|
|
1239
1239
|
}
|
|
1240
1240
|
return { proxy: oe, end: te, firstMPT: kt, pt: Mt };
|
|
1241
|
-
}, Oe.CSSPropTween = function(V, tt, lt, at,
|
|
1242
|
-
this.t = V, this.p = tt, this.s = lt, this.c = at, this.n = ht || tt, V instanceof Si || u.push(this.n), this.r = Rt && (typeof Rt == "function" ? Rt : Math.round), this.type = St || 0, Ht && (this.pr = Ht, o = !0), this.b = kt === void 0 ? lt : kt, this.e = Mt === void 0 ? lt + at : Mt,
|
|
1243
|
-
}), Gr = function(V, tt, lt, at,
|
|
1244
|
-
var ht = new Si(V, tt, lt, at - lt,
|
|
1241
|
+
}, Oe.CSSPropTween = function(V, tt, lt, at, j, St, ht, Rt, Ht, kt, Mt) {
|
|
1242
|
+
this.t = V, this.p = tt, this.s = lt, this.c = at, this.n = ht || tt, V instanceof Si || u.push(this.n), this.r = Rt && (typeof Rt == "function" ? Rt : Math.round), this.type = St || 0, Ht && (this.pr = Ht, o = !0), this.b = kt === void 0 ? lt : kt, this.e = Mt === void 0 ? lt + at : Mt, j && (this._next = j, j._prev = this);
|
|
1243
|
+
}), Gr = function(V, tt, lt, at, j, St) {
|
|
1244
|
+
var ht = new Si(V, tt, lt, at - lt, j, -1, St);
|
|
1245
1245
|
return ht.b = lt, ht.e = ht.xs0 = at, ht;
|
|
1246
|
-
}, er = m.parseComplex = function(V, tt, lt, at,
|
|
1247
|
-
lt = lt || St || "", typeof at == "function" && (at = at(T, L)), ht = new Si(V, tt, 0, 0, ht, kt ? 2 : 1, null, !1, Rt, lt, at), at += "",
|
|
1246
|
+
}, er = m.parseComplex = function(V, tt, lt, at, j, St, ht, Rt, Ht, kt) {
|
|
1247
|
+
lt = lt || St || "", typeof at == "function" && (at = at(T, L)), ht = new Si(V, tt, 0, 0, ht, kt ? 2 : 1, null, !1, Rt, lt, at), at += "", j && we.test(at + lt) && (at = [lt, at], m.colorStringFilter(at), lt = at[0], at = at[1]);
|
|
1248
1248
|
var Mt, he, oe, te, _e, ue, je, He, ui, Be, ye, Fe, pe, di = lt.split(", ").join(",").split(" "), Pe = at.split(", ").join(",").split(" "), xe = di.length, Le = A !== !1;
|
|
1249
1249
|
for ((at.indexOf(",") !== -1 || lt.indexOf(",") !== -1) && ((at + lt).indexOf("rgb") !== -1 || (at + lt).indexOf("hsl") !== -1 ? (di = di.join(" ").replace(fe, ", ").split(" "), Pe = Pe.join(" ").replace(fe, ", ").split(" ")) : (di = di.join(" ").split(",").join(", ").split(" "), Pe = Pe.join(" ").split(",").join(", ").split(" ")), xe = di.length), xe !== Pe.length && (di = (St || "").split(" "), xe = di.length), ht.plugin = Ht, ht.setRatio = kt, we.lastIndex = 0, Mt = 0; xe > Mt; Mt++)
|
|
1250
1250
|
if (te = di[Mt], _e = Pe[Mt] + "", He = parseFloat(te), He || He === 0)
|
|
@@ -1256,7 +1256,7 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1256
1256
|
Le && _e.indexOf("px") !== -1 ? Math.round : !1,
|
|
1257
1257
|
!0
|
|
1258
1258
|
);
|
|
1259
|
-
else if (
|
|
1259
|
+
else if (j && we.test(te))
|
|
1260
1260
|
Fe = _e.indexOf(")") + 1, Fe = ")" + (Fe ? _e.substr(Fe) : ""), pe = _e.indexOf("hsl") !== -1 && pi, Be = _e, te = Re(te, pe), _e = Re(_e, pe), ui = te.length + _e.length > 6, ui && !pi && _e[3] === 0 ? (ht["xs" + ht.l] += ht.l ? " transparent" : "transparent", ht.e = ht.e.split(Pe[Mt]).join("transparent")) : (pi || (ui = !1), pe ? ht.appendXtra(
|
|
1261
1261
|
Be.substr(0, Be.indexOf("hsl")) + (ui ? "hsla(" : "hsl("),
|
|
1262
1262
|
te[0],
|
|
@@ -1314,9 +1314,9 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1314
1314
|
}, rn = 9;
|
|
1315
1315
|
for (S = Si.prototype, S.l = S.pr = 0; --rn > 0; )
|
|
1316
1316
|
S["xn" + rn] = 0, S["xs" + rn] = "";
|
|
1317
|
-
S.xs0 = "", S._next = S._prev = S.xfirst = S.data = S.plugin = S.setRatio = S.rxp = null, S.appendXtra = function(V, tt, lt, at,
|
|
1317
|
+
S.xs0 = "", S._next = S._prev = S.xfirst = S.data = S.plugin = S.setRatio = S.rxp = null, S.appendXtra = function(V, tt, lt, at, j, St) {
|
|
1318
1318
|
var ht = this, Rt = ht.l;
|
|
1319
|
-
return ht["xs" + Rt] += St && (Rt || ht["xs" + Rt]) ? " " + V : V || "", lt || Rt === 0 || ht.plugin ? (ht.l++, ht.type = ht.setRatio ? 2 : 1, ht["xs" + ht.l] = at || "", Rt > 0 ? (ht.data["xn" + Rt] = tt + lt, ht.rxp["xn" + Rt] =
|
|
1319
|
+
return ht["xs" + Rt] += St && (Rt || ht["xs" + Rt]) ? " " + V : V || "", lt || Rt === 0 || ht.plugin ? (ht.l++, ht.type = ht.setRatio ? 2 : 1, ht["xs" + ht.l] = at || "", Rt > 0 ? (ht.data["xn" + Rt] = tt + lt, ht.rxp["xn" + Rt] = j, ht["xn" + Rt] = tt, ht.plugin || (ht.xfirst = new Si(
|
|
1320
1320
|
ht,
|
|
1321
1321
|
"xn" + Rt,
|
|
1322
1322
|
tt,
|
|
@@ -1324,49 +1324,49 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1324
1324
|
ht.xfirst || ht,
|
|
1325
1325
|
0,
|
|
1326
1326
|
ht.n,
|
|
1327
|
-
|
|
1327
|
+
j,
|
|
1328
1328
|
ht.pr
|
|
1329
|
-
), ht.xfirst.xs0 = 0), ht) : (ht.data = { s: tt + lt }, ht.rxp = {}, ht.s = tt, ht.c = lt, ht.r =
|
|
1329
|
+
), ht.xfirst.xs0 = 0), ht) : (ht.data = { s: tt + lt }, ht.rxp = {}, ht.s = tt, ht.c = lt, ht.r = j, ht)) : (ht["xs" + Rt] += tt + (at || ""), ht);
|
|
1330
1330
|
};
|
|
1331
1331
|
var bs = function(V, tt) {
|
|
1332
1332
|
tt = tt || {}, this.p = tt.prefix && Jt(V) || V, y[V] = y[this.p] = this, this.format = tt.formatter || vi(tt.defaultValue, tt.color, tt.collapsible, tt.multi), tt.parser && (this.parse = tt.parser), this.clrs = tt.color, this.multi = tt.multi, this.keyword = tt.keyword, this.dflt = tt.defaultValue, this.pr = tt.priority || 0;
|
|
1333
1333
|
}, Oi = Oe._registerComplexSpecialProp = function(V, tt, lt) {
|
|
1334
1334
|
typeof tt != "object" && (tt = { parser: lt });
|
|
1335
|
-
var at,
|
|
1336
|
-
for (lt = lt || [St], at = 0; at <
|
|
1337
|
-
tt.prefix = at === 0 && tt.prefix, tt.defaultValue = lt[at] || St, new bs(
|
|
1335
|
+
var at, j = V.split(","), St = tt.defaultValue;
|
|
1336
|
+
for (lt = lt || [St], at = 0; at < j.length; at++)
|
|
1337
|
+
tt.prefix = at === 0 && tt.prefix, tt.defaultValue = lt[at] || St, new bs(j[at], tt);
|
|
1338
1338
|
}, Us = Oe._registerPluginProp = function(V) {
|
|
1339
1339
|
if (!y[V]) {
|
|
1340
1340
|
var tt = V.charAt(0).toUpperCase() + V.substr(1) + "Plugin";
|
|
1341
1341
|
Oi(V, {
|
|
1342
|
-
parser: function(lt, at,
|
|
1342
|
+
parser: function(lt, at, j, St, ht, Rt, Ht) {
|
|
1343
1343
|
var kt = _.com.greensock.plugins[tt];
|
|
1344
|
-
return kt ? (kt._cssRegister(), y[
|
|
1344
|
+
return kt ? (kt._cssRegister(), y[j].parse(lt, at, j, St, ht, Rt, Ht)) : (cn("Error: " + tt + " js file not loaded."), ht);
|
|
1345
1345
|
}
|
|
1346
1346
|
});
|
|
1347
1347
|
}
|
|
1348
1348
|
};
|
|
1349
|
-
S = bs.prototype, S.parseComplex = function(V, tt, lt, at,
|
|
1349
|
+
S = bs.prototype, S.parseComplex = function(V, tt, lt, at, j, St) {
|
|
1350
1350
|
var ht, Rt, Ht, kt, Mt, he, oe = this.keyword;
|
|
1351
1351
|
if (this.multi && (fe.test(lt) || fe.test(tt) ? (Rt = tt.replace(fe, "|").split("|"), Ht = lt.replace(fe, "|").split("|")) : oe && (Rt = [tt], Ht = [lt])), Ht) {
|
|
1352
1352
|
for (kt = Ht.length > Rt.length ? Ht.length : Rt.length, ht = 0; kt > ht; ht++)
|
|
1353
1353
|
tt = Rt[ht] = Rt[ht] || this.dflt, lt = Ht[ht] = Ht[ht] || this.dflt, oe && (Mt = tt.indexOf(oe), he = lt.indexOf(oe), Mt !== he && (he === -1 ? Rt[ht] = Rt[ht].split(oe).join("") : Mt === -1 && (Rt[ht] += " " + oe)));
|
|
1354
1354
|
tt = Rt.join(", "), lt = Ht.join(", ");
|
|
1355
1355
|
}
|
|
1356
|
-
return er(V, this.p, tt, lt, this.clrs, this.dflt, at, this.pr,
|
|
1357
|
-
}, S.parse = function(V, tt, lt, at,
|
|
1356
|
+
return er(V, this.p, tt, lt, this.clrs, this.dflt, at, this.pr, j, St);
|
|
1357
|
+
}, S.parse = function(V, tt, lt, at, j, St, ht) {
|
|
1358
1358
|
return this.parseComplex(
|
|
1359
1359
|
V.style,
|
|
1360
1360
|
this.format(pt(V, this.p, d, !1, this.dflt)),
|
|
1361
1361
|
this.format(tt),
|
|
1362
|
-
|
|
1362
|
+
j,
|
|
1363
1363
|
St
|
|
1364
1364
|
);
|
|
1365
1365
|
}, m.registerSpecialProp = function(V, tt, lt) {
|
|
1366
1366
|
Oi(V, {
|
|
1367
|
-
parser: function(at,
|
|
1367
|
+
parser: function(at, j, St, ht, Rt, Ht, kt) {
|
|
1368
1368
|
var Mt = new Si(at, St, 0, 0, Rt, 2, St, !1, lt);
|
|
1369
|
-
return Mt.plugin = Ht, Mt.setRatio = tt(at,
|
|
1369
|
+
return Mt.plugin = Ht, Mt.setRatio = tt(at, j, ht._tween, St), Mt;
|
|
1370
1370
|
},
|
|
1371
1371
|
priority: lt
|
|
1372
1372
|
});
|
|
@@ -1376,14 +1376,14 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1376
1376
|
), xn = Jt("transform"), Xo = Ji + "transform", ho = Jt("transformOrigin"), dr = Jt("perspective") !== null, qo = Oe.Transform = function() {
|
|
1377
1377
|
this.perspective = parseFloat(m.defaultTransformPerspective) || 0, this.force3D = m.defaultForce3D !== !1 && dr ? m.defaultForce3D || "auto" : !1;
|
|
1378
1378
|
}, Da = hn.SVGElement, Al = function(V, tt, lt) {
|
|
1379
|
-
var at,
|
|
1379
|
+
var at, j = ce.createElementNS("http://www.w3.org/2000/svg", V), St = /([a-z])([A-Z])/g;
|
|
1380
1380
|
for (at in lt)
|
|
1381
|
-
|
|
1382
|
-
return tt.appendChild(
|
|
1381
|
+
j.setAttributeNS(null, at.replace(St, "$1-$2").toLowerCase(), lt[at]);
|
|
1382
|
+
return tt.appendChild(j), j;
|
|
1383
1383
|
}, ns = ce.documentElement || {}, ch = function() {
|
|
1384
1384
|
var V, tt, lt, at = E || /Android/i.test(Ge) && !hn.chrome;
|
|
1385
1385
|
return ce.createElementNS && !at && (V = Al("svg", ns), tt = Al("rect", V, { width: 100, height: 50, x: 100 }), lt = tt.getBoundingClientRect().width, tt.style[ho] = "50% 50%", tt.style[xn] = "scaleX(0.5)", at = lt === tt.getBoundingClientRect().width && !(D && dr), ns.removeChild(V)), at;
|
|
1386
|
-
}(), Yo = function(V, tt, lt, at,
|
|
1386
|
+
}(), Yo = function(V, tt, lt, at, j, St) {
|
|
1387
1387
|
var ht, Rt, Ht, kt, Mt, he, oe, te, _e, ue, je, He, ui, Be, ye = V._gsTransform, Fe = Jo(V, !0);
|
|
1388
1388
|
ye && (ui = ye.xOrigin, Be = ye.yOrigin), (!at || (ht = at.split(" ")).length < 2) && (oe = V.getBBox(), oe.x === 0 && oe.y === 0 && oe.width + oe.height === 0 && (oe = {
|
|
1389
1389
|
x: parseFloat(
|
|
@@ -1397,12 +1397,12 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1397
1397
|
}), tt = nt(tt).split(" "), ht = [
|
|
1398
1398
|
(tt[0].indexOf("%") !== -1 ? parseFloat(tt[0]) / 100 * oe.width : parseFloat(tt[0])) + oe.x,
|
|
1399
1399
|
(tt[1].indexOf("%") !== -1 ? parseFloat(tt[1]) / 100 * oe.height : parseFloat(tt[1])) + oe.y
|
|
1400
|
-
]), lt.xOrigin = kt = parseFloat(ht[0]), lt.yOrigin = Mt = parseFloat(ht[1]), at && Fe !== Zo && (he = Fe[0], oe = Fe[1], te = Fe[2], _e = Fe[3], ue = Fe[4], je = Fe[5], He = he * _e - oe * te, He && (Rt = kt * (_e / He) + Mt * (-te / He) + (te * je - _e * ue) / He, Ht = kt * (-oe / He) + Mt * (he / He) - (he * je - oe * ue) / He, kt = lt.xOrigin = ht[0] = Rt, Mt = lt.yOrigin = ht[1] = Ht)), ye && (St && (lt.xOffset = ye.xOffset, lt.yOffset = ye.yOffset, ye = lt),
|
|
1400
|
+
]), lt.xOrigin = kt = parseFloat(ht[0]), lt.yOrigin = Mt = parseFloat(ht[1]), at && Fe !== Zo && (he = Fe[0], oe = Fe[1], te = Fe[2], _e = Fe[3], ue = Fe[4], je = Fe[5], He = he * _e - oe * te, He && (Rt = kt * (_e / He) + Mt * (-te / He) + (te * je - _e * ue) / He, Ht = kt * (-oe / He) + Mt * (he / He) - (he * je - oe * ue) / He, kt = lt.xOrigin = ht[0] = Rt, Mt = lt.yOrigin = ht[1] = Ht)), ye && (St && (lt.xOffset = ye.xOffset, lt.yOffset = ye.yOffset, ye = lt), j || j !== !1 && m.defaultSmoothOrigin !== !1 ? (Rt = kt - ui, Ht = Mt - Be, ye.xOffset += Rt * Fe[0] + Ht * Fe[2] - Rt, ye.yOffset += Rt * Fe[1] + Ht * Fe[3] - Ht) : ye.xOffset = ye.yOffset = 0), St || V.setAttribute("data-svg-origin", ht.join(" "));
|
|
1401
1401
|
}, za = function(V) {
|
|
1402
1402
|
var tt, lt = Yt(
|
|
1403
1403
|
"svg",
|
|
1404
1404
|
this.ownerSVGElement && this.ownerSVGElement.getAttribute("xmlns") || "http://www.w3.org/2000/svg"
|
|
1405
|
-
), at = this.parentNode,
|
|
1405
|
+
), at = this.parentNode, j = this.nextSibling, St = this.style.cssText;
|
|
1406
1406
|
if (ns.appendChild(lt), lt.appendChild(this), this.style.display = "block", V)
|
|
1407
1407
|
try {
|
|
1408
1408
|
tt = this.getBBox(), this._originalGetBBox = this.getBBox, this.getBBox = za;
|
|
@@ -1410,7 +1410,7 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1410
1410
|
}
|
|
1411
1411
|
else
|
|
1412
1412
|
this._originalGetBBox && (tt = this._originalGetBBox());
|
|
1413
|
-
return
|
|
1413
|
+
return j ? at.insertBefore(this, j) : at.appendChild(this), ns.removeChild(lt), this.style.cssText = St, tt;
|
|
1414
1414
|
}, rs = function(V) {
|
|
1415
1415
|
try {
|
|
1416
1416
|
return V.getBBox();
|
|
@@ -1420,7 +1420,7 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1420
1420
|
}, ka = function(V) {
|
|
1421
1421
|
return !(!Da || !V.getCTM || V.parentNode && !V.ownerSVGElement || !rs(V));
|
|
1422
1422
|
}, Zo = [1, 0, 0, 1, 0, 0], Jo = function(V, tt) {
|
|
1423
|
-
var lt, at,
|
|
1423
|
+
var lt, at, j, St, ht, Rt, Ht = V._gsTransform || new qo(), kt = 1e5, Mt = V.style;
|
|
1424
1424
|
if (xn ? at = pt(V, Xo, null, !0) : V.currentStyle && (at = V.currentStyle.filter.match(Et), at = at && at.length === 4 ? [
|
|
1425
1425
|
at[0].substr(4),
|
|
1426
1426
|
Number(at[2].substr(4)),
|
|
@@ -1428,27 +1428,27 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1428
1428
|
at[3].substr(4),
|
|
1429
1429
|
Ht.x || 0,
|
|
1430
1430
|
Ht.y || 0
|
|
1431
|
-
].join(",") : ""), lt = !at || at === "none" || at === "matrix(1, 0, 0, 1, 0, 0)", !xn || !(Rt = !Wt(V) || Wt(V).display === "none") && V.parentNode || (Rt && (St = Mt.display, Mt.display = "block"), V.parentNode || (ht = 1, ns.appendChild(V)), at = pt(V, Xo, null, !0), lt = !at || at === "none" || at === "matrix(1, 0, 0, 1, 0, 0)", St ? Mt.display = St : Rt && uo(Mt, "display"), ht && ns.removeChild(V)), (Ht.svg || V.getCTM && ka(V)) && (lt && (Mt[xn] + "").indexOf("matrix") !== -1 && (at = Mt[xn], lt = 0),
|
|
1431
|
+
].join(",") : ""), lt = !at || at === "none" || at === "matrix(1, 0, 0, 1, 0, 0)", !xn || !(Rt = !Wt(V) || Wt(V).display === "none") && V.parentNode || (Rt && (St = Mt.display, Mt.display = "block"), V.parentNode || (ht = 1, ns.appendChild(V)), at = pt(V, Xo, null, !0), lt = !at || at === "none" || at === "matrix(1, 0, 0, 1, 0, 0)", St ? Mt.display = St : Rt && uo(Mt, "display"), ht && ns.removeChild(V)), (Ht.svg || V.getCTM && ka(V)) && (lt && (Mt[xn] + "").indexOf("matrix") !== -1 && (at = Mt[xn], lt = 0), j = V.getAttribute("transform"), lt && j && (j = V.transform.baseVal.consolidate().matrix, at = "matrix(" + j.a + "," + j.b + "," + j.c + "," + j.d + "," + j.e + "," + j.f + ")", lt = 0)), lt)
|
|
1432
1432
|
return Zo;
|
|
1433
|
-
for (
|
|
1434
|
-
St = Number(
|
|
1435
|
-
return tt &&
|
|
1433
|
+
for (j = (at || "").match(M) || [], rn = j.length; --rn > -1; )
|
|
1434
|
+
St = Number(j[rn]), j[rn] = (ht = St - (St |= 0)) ? (ht * kt + (0 > ht ? -0.5 : 0.5) | 0) / kt + St : St;
|
|
1435
|
+
return tt && j.length > 6 ? [j[0], j[1], j[4], j[5], j[12], j[13]] : j;
|
|
1436
1436
|
}, ss = Oe.getTransform = function(V, tt, lt, at) {
|
|
1437
1437
|
if (V._gsTransform && lt && !at)
|
|
1438
1438
|
return V._gsTransform;
|
|
1439
|
-
var
|
|
1439
|
+
var j, St, ht, Rt, Ht, kt, Mt = lt ? V._gsTransform || new qo() : new qo(), he = Mt.scaleX < 0, oe = 2e-5, te = 1e5, _e = dr && (parseFloat(pt(V, ho, tt, !1, "0 0 0").split(" ")[2]) || Mt.zOrigin) || 0, ue = parseFloat(m.defaultTransformPerspective) || 0;
|
|
1440
1440
|
if (Mt.svg = !(!V.getCTM || !ka(V)), Mt.svg && (Yo(
|
|
1441
1441
|
V,
|
|
1442
1442
|
pt(V, ho, tt, !1, "50% 50%") + "",
|
|
1443
1443
|
Mt,
|
|
1444
1444
|
V.getAttribute("data-svg-origin")
|
|
1445
|
-
), is = m.useSVGTransformAttr || ch),
|
|
1446
|
-
if (
|
|
1447
|
-
var je, He, ui, Be, ye, Fe =
|
|
1448
|
-
Mt.zOrigin && (on = -Mt.zOrigin, Qi = Ii * on -
|
|
1449
|
-
} else if (!dr || at || !
|
|
1450
|
-
var zi =
|
|
1451
|
-
Mt.x =
|
|
1445
|
+
), is = m.useSVGTransformAttr || ch), j = Jo(V), j !== Zo) {
|
|
1446
|
+
if (j.length === 16) {
|
|
1447
|
+
var je, He, ui, Be, ye, Fe = j[0], pe = j[1], di = j[2], Pe = j[3], xe = j[4], Le = j[5], wn = j[6], Hn = j[7], Ii = j[8], Di = j[9], Ui = j[10], Qi = j[12], tn = j[13], on = j[14], an = j[11], Fi = Math.atan2(wn, Ui);
|
|
1448
|
+
Mt.zOrigin && (on = -Mt.zOrigin, Qi = Ii * on - j[12], tn = Di * on - j[13], on = Ui * on + Mt.zOrigin - j[14]), Mt.rotationX = Fi * Ot, Fi && (Be = Math.cos(-Fi), ye = Math.sin(-Fi), je = xe * Be + Ii * ye, He = Le * Be + Di * ye, ui = wn * Be + Ui * ye, Ii = xe * -ye + Ii * Be, Di = Le * -ye + Di * Be, Ui = wn * -ye + Ui * Be, an = Hn * -ye + an * Be, xe = je, Le = He, wn = ui), Fi = Math.atan2(-di, Ui), Mt.rotationY = Fi * Ot, Fi && (Be = Math.cos(-Fi), ye = Math.sin(-Fi), je = Fe * Be - Ii * ye, He = pe * Be - Di * ye, ui = di * Be - Ui * ye, Di = pe * ye + Di * Be, Ui = di * ye + Ui * Be, an = Pe * ye + an * Be, Fe = je, pe = He, di = ui), Fi = Math.atan2(pe, Fe), Mt.rotation = Fi * Ot, Fi && (Be = Math.cos(Fi), ye = Math.sin(Fi), je = Fe * Be + pe * ye, He = xe * Be + Le * ye, ui = Ii * Be + Di * ye, pe = pe * Be - Fe * ye, Le = Le * Be - xe * ye, Di = Di * Be - Ii * ye, Fe = je, xe = He, Ii = ui), Mt.rotationX && Math.abs(Mt.rotationX) + Math.abs(Mt.rotation) > 359.9 && (Mt.rotationX = Mt.rotation = 0, Mt.rotationY = 180 - Mt.rotationY), Fi = Math.atan2(xe, Le), Mt.scaleX = (Math.sqrt(Fe * Fe + pe * pe + di * di) * te + 0.5 | 0) / te, Mt.scaleY = (Math.sqrt(Le * Le + wn * wn) * te + 0.5 | 0) / te, Mt.scaleZ = (Math.sqrt(Ii * Ii + Di * Di + Ui * Ui) * te + 0.5 | 0) / te, Fe /= Mt.scaleX, xe /= Mt.scaleY, pe /= Mt.scaleX, Le /= Mt.scaleY, Math.abs(Fi) > oe ? (Mt.skewX = Fi * Ot, xe = 0, Mt.skewType !== "simple" && (Mt.scaleY *= 1 / Math.cos(Fi))) : Mt.skewX = 0, Mt.perspective = an ? 1 / (0 > an ? -an : an) : 0, Mt.x = Qi, Mt.y = tn, Mt.z = on, Mt.svg && (Mt.x -= Mt.xOrigin - (Mt.xOrigin * Fe - Mt.yOrigin * xe), Mt.y -= Mt.yOrigin - (Mt.yOrigin * pe - Mt.xOrigin * Le));
|
|
1449
|
+
} else if (!dr || at || !j.length || Mt.x !== j[4] || Mt.y !== j[5] || !Mt.rotationX && !Mt.rotationY) {
|
|
1450
|
+
var zi = j.length >= 6, Vi = zi ? j[0] : 1, mi = j[1] || 0, os = j[2] || 0, Bn = zi ? j[3] : 1;
|
|
1451
|
+
Mt.x = j[4] || 0, Mt.y = j[5] || 0, ht = Math.sqrt(Vi * Vi + mi * mi), Rt = Math.sqrt(Bn * Bn + os * os), Ht = Vi || mi ? Math.atan2(mi, Vi) * Ot : Mt.rotation || 0, kt = os || Bn ? Math.atan2(os, Bn) * Ot + Ht : Mt.skewX || 0, Mt.scaleX = ht, Mt.scaleY = Rt, Mt.rotation = Ht, Mt.skewX = kt, dr && (Mt.rotationX = Mt.rotationY = Mt.z = 0, Mt.perspective = ue, Mt.scaleZ = 1), Mt.svg && (Mt.x -= Mt.xOrigin - (Mt.xOrigin * Vi + Mt.yOrigin * os), Mt.y -= Mt.yOrigin - (Mt.xOrigin * mi + Mt.yOrigin * Bn));
|
|
1452
1452
|
}
|
|
1453
1453
|
Math.abs(Mt.skewX) > 90 && Math.abs(Mt.skewX) < 270 && (he ? (Mt.scaleX *= -1, Mt.skewX += Mt.rotation <= 0 ? 180 : -180, Mt.rotation += Mt.rotation <= 0 ? 180 : -180) : (Mt.scaleY *= -1, Mt.skewX += Mt.skewX <= 0 ? 180 : -180)), Mt.zOrigin = _e;
|
|
1454
1454
|
for (St in Mt)
|
|
@@ -1460,11 +1460,11 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1460
1460
|
V.removeAttribute("transform");
|
|
1461
1461
|
}))), Mt;
|
|
1462
1462
|
}, Cl = function(V) {
|
|
1463
|
-
var tt, lt, at = this.data,
|
|
1463
|
+
var tt, lt, at = this.data, j = -at.rotation * Ft, St = j + at.skewX * Ft, ht = 1e5, Rt = (Math.cos(j) * at.scaleX * ht | 0) / ht, Ht = (Math.sin(j) * at.scaleX * ht | 0) / ht, kt = (Math.sin(St) * -at.scaleY * ht | 0) / ht, Mt = (Math.cos(St) * at.scaleY * ht | 0) / ht, he = this.t.style, oe = this.t.currentStyle;
|
|
1464
1464
|
if (oe) {
|
|
1465
1465
|
lt = Ht, Ht = -kt, kt = -lt, tt = oe.filter, he.filter = "";
|
|
1466
1466
|
var te, _e, ue = this.t.offsetWidth, je = this.t.offsetHeight, He = oe.position !== "absolute", ui = "progid:DXImageTransform.Microsoft.Matrix(M11=" + Rt + ", M12=" + Ht + ", M21=" + kt + ", M22=" + Mt, Be = at.x + ue * at.xPercent / 100, ye = at.y + je * at.yPercent / 100;
|
|
1467
|
-
if (at.ox != null && (te = (at.oxp ? ue * at.ox * 0.01 : at.ox) - ue / 2, _e = (at.oyp ? je * at.oy * 0.01 : at.oy) - je / 2, Be += te - (te * Rt + _e * Ht), ye += _e - (te * kt + _e * Mt)), He ? (te = ue / 2, _e = je / 2, ui += ", Dx=" + (te - (te * Rt + _e * Ht) + Be) + ", Dy=" + (_e - (te * kt + _e * Mt) + ye) + ")") : ui += ", sizingMethod='auto expand')", tt.indexOf("DXImageTransform.Microsoft.Matrix(") !== -1 ? he.filter = tt.replace(Ct, ui) : he.filter = ui + " " + tt, (V === 0 || V === 1) && Rt === 1 && Ht === 0 && kt === 0 && Mt === 1 && (He && ui.indexOf("Dx=0, Dy=0") === -1 ||
|
|
1467
|
+
if (at.ox != null && (te = (at.oxp ? ue * at.ox * 0.01 : at.ox) - ue / 2, _e = (at.oyp ? je * at.oy * 0.01 : at.oy) - je / 2, Be += te - (te * Rt + _e * Ht), ye += _e - (te * kt + _e * Mt)), He ? (te = ue / 2, _e = je / 2, ui += ", Dx=" + (te - (te * Rt + _e * Ht) + Be) + ", Dy=" + (_e - (te * kt + _e * Mt) + ye) + ")") : ui += ", sizingMethod='auto expand')", tt.indexOf("DXImageTransform.Microsoft.Matrix(") !== -1 ? he.filter = tt.replace(Ct, ui) : he.filter = ui + " " + tt, (V === 0 || V === 1) && Rt === 1 && Ht === 0 && kt === 0 && Mt === 1 && (He && ui.indexOf("Dx=0, Dy=0") === -1 || X.test(tt) && parseFloat(RegExp.$1) !== 100 || tt.indexOf(tt.indexOf("Alpha")) === -1 && he.removeAttribute("filter")), !He) {
|
|
1468
1468
|
var Fe, pe, di, Pe = 8 > E ? 1 : -1;
|
|
1469
1469
|
for (te = at.ieOffsetX || 0, _e = at.ieOffsetY || 0, at.ieOffsetX = Math.round(
|
|
1470
1470
|
(ue - ((0 > Rt ? -Rt : Rt) * ue + (0 > Ht ? -Ht : Ht) * je)) / 2 + Be
|
|
@@ -1477,7 +1477,7 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1477
1477
|
}
|
|
1478
1478
|
}
|
|
1479
1479
|
}, fh = Oe.set3DTransformRatio = Oe.setTransformRatio = function(V) {
|
|
1480
|
-
var tt, lt, at,
|
|
1480
|
+
var tt, lt, at, j, St, ht, Rt, Ht, kt, Mt, he, oe, te, _e, ue, je, He, ui, Be, ye, Fe, pe, di, Pe = this.data, xe = this.t.style, Le = Pe.rotation, wn = Pe.rotationX, Hn = Pe.rotationY, Ii = Pe.scaleX, Di = Pe.scaleY, Ui = Pe.scaleZ, Qi = Pe.x, tn = Pe.y, on = Pe.z, an = Pe.svg, Fi = Pe.perspective, zi = Pe.force3D, Vi = Pe.skewY, mi = Pe.skewX;
|
|
1481
1481
|
if (Vi && (mi += Vi, Le += Vi), ((V === 1 || V === 0) && zi === "auto" && (this.tween._totalTime === this.tween._totalDuration || !this.tween._totalTime) || !zi) && !on && !Fi && !Hn && !wn && Ui === 1 || is && an || !dr)
|
|
1482
1482
|
return void (Le || mi || an ? (Le *= Ft, pe = mi * Ft, di = 1e5, lt = Math.cos(Le) * Ii, St = Math.sin(Le) * Ii, at = Math.sin(Le - pe) * -Di, ht = Math.cos(Le - pe) * Di, pe && Pe.skewType === "simple" && (tt = Math.tan(pe - Vi * Ft), tt = Math.sqrt(1 + tt * tt), at *= tt, ht *= tt, Vi && (tt = Math.tan(Vi * Ft), tt = Math.sqrt(1 + tt * tt), lt *= tt, St *= tt)), an && (Qi += Pe.xOrigin - (Pe.xOrigin * lt + Pe.yOrigin * at) + Pe.xOffset, tn += Pe.yOrigin - (Pe.xOrigin * St + Pe.yOrigin * ht) + Pe.yOffset, is && (Pe.xPercent || Pe.yPercent) && (ue = this.t.getBBox(), Qi += 0.01 * Pe.xPercent * ue.width, tn += 0.01 * Pe.yPercent * ue.height), ue = 1e-6, ue > Qi && Qi > -ue && (Qi = 0), ue > tn && tn > -ue && (tn = 0)), Be = (lt * di | 0) / di + "," + (St * di | 0) / di + "," + (at * di | 0) / di + "," + (ht * di | 0) / di + "," + Qi + "," + tn + ")", an && is ? this.t.setAttribute("transform", "matrix(" + Be) : xe[xn] = (Pe.xPercent || Pe.yPercent ? "translate(" + Pe.xPercent + "%," + Pe.yPercent + "%) matrix(" : "matrix(") + Be) : xe[xn] = (Pe.xPercent || Pe.yPercent ? "translate(" + Pe.xPercent + "%," + Pe.yPercent + "%) matrix(" : "matrix(") + Ii + ",0,0," + Di + "," + Qi + "," + tn + ")");
|
|
1483
1483
|
if (D && (ue = 1e-4, ue > Ii && Ii > -ue && (Ii = Ui = 2e-5), ue > Di && Di > -ue && (Di = Ui = 2e-5), !Fi || Pe.z || Pe.rotationX || Pe.rotationY || (Fi = 0)), Le || mi)
|
|
@@ -1487,14 +1487,14 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1487
1487
|
return void (xe[xn] = (Pe.xPercent || Pe.yPercent ? "translate(" + Pe.xPercent + "%," + Pe.yPercent + "%) translate3d(" : "translate3d(") + Qi + "px," + tn + "px," + on + "px)" + (Ii !== 1 || Di !== 1 ? " scale(" + Ii + "," + Di + ")" : ""));
|
|
1488
1488
|
lt = ht = 1, at = St = 0;
|
|
1489
1489
|
}
|
|
1490
|
-
Mt = 1,
|
|
1490
|
+
Mt = 1, j = Rt = Ht = kt = he = oe = 0, te = Fi ? -1 / Fi : 0, _e = Pe.zOrigin, ue = 1e-6, ye = ",", Fe = "0", Le = Hn * Ft, Le && (je = Math.cos(Le), He = Math.sin(Le), Ht = -He, he = te * -He, j = lt * He, Rt = St * He, Mt = je, te *= je, lt *= je, St *= je), Le = wn * Ft, Le && (je = Math.cos(Le), He = Math.sin(Le), tt = at * je + j * He, ui = ht * je + Rt * He, kt = Mt * He, oe = te * He, j = at * -He + j * je, Rt = ht * -He + Rt * je, Mt *= je, te *= je, at = tt, ht = ui), Ui !== 1 && (j *= Ui, Rt *= Ui, Mt *= Ui, te *= Ui), Di !== 1 && (at *= Di, ht *= Di, kt *= Di, oe *= Di), Ii !== 1 && (lt *= Ii, St *= Ii, Ht *= Ii, he *= Ii), (_e || an) && (_e && (Qi += j * -_e, tn += Rt * -_e, on += Mt * -_e + _e), an && (Qi += Pe.xOrigin - (Pe.xOrigin * lt + Pe.yOrigin * at) + Pe.xOffset, tn += Pe.yOrigin - (Pe.xOrigin * St + Pe.yOrigin * ht) + Pe.yOffset), ue > Qi && Qi > -ue && (Qi = Fe), ue > tn && tn > -ue && (tn = Fe), ue > on && on > -ue && (on = 0)), Be = Pe.xPercent || Pe.yPercent ? "translate(" + Pe.xPercent + "%," + Pe.yPercent + "%) matrix3d(" : "matrix3d(", Be += (ue > lt && lt > -ue ? Fe : lt) + ye + (ue > St && St > -ue ? Fe : St) + ye + (ue > Ht && Ht > -ue ? Fe : Ht), Be += ye + (ue > he && he > -ue ? Fe : he) + ye + (ue > at && at > -ue ? Fe : at) + ye + (ue > ht && ht > -ue ? Fe : ht), wn || Hn || Ui !== 1 ? (Be += ye + (ue > kt && kt > -ue ? Fe : kt) + ye + (ue > oe && oe > -ue ? Fe : oe) + ye + (ue > j && j > -ue ? Fe : j), Be += ye + (ue > Rt && Rt > -ue ? Fe : Rt) + ye + (ue > Mt && Mt > -ue ? Fe : Mt) + ye + (ue > te && te > -ue ? Fe : te) + ye) : Be += ",0,0,0,0,1,0,", Be += Qi + ye + tn + ye + on + ye + (Fi ? 1 + -on / Fi : 1) + ")", xe[xn] = Be;
|
|
1491
1491
|
};
|
|
1492
1492
|
S = qo.prototype, S.x = S.y = S.z = S.skewX = S.skewY = S.rotation = S.rotationX = S.rotationY = S.zOrigin = S.xPercent = S.yPercent = S.xOffset = S.yOffset = 0, S.scaleX = S.scaleY = S.scaleZ = 1, Oi(
|
|
1493
1493
|
"transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",
|
|
1494
1494
|
{
|
|
1495
|
-
parser: function(V, tt, lt, at,
|
|
1495
|
+
parser: function(V, tt, lt, at, j, St, ht) {
|
|
1496
1496
|
if (at._lastParsedTransform === ht)
|
|
1497
|
-
return
|
|
1497
|
+
return j;
|
|
1498
1498
|
at._lastParsedTransform = ht;
|
|
1499
1499
|
var Rt, Ht = ht.scale && typeof ht.scale == "function" ? ht.scale : 0;
|
|
1500
1500
|
typeof ht[lt] == "function" && (Rt = ht[lt], ht[lt] = tt), Ht && (ht.scale = Ht(T, V));
|
|
@@ -1549,36 +1549,36 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1549
1549
|
)), kt.skewX = Xt(pe.skewX, xe.skewX), kt.skewY = Xt(pe.skewY, xe.skewY);
|
|
1550
1550
|
}
|
|
1551
1551
|
for (dr && pe.force3D != null && (xe.force3D = pe.force3D, oe = !0), he = xe.force3D || xe.z || xe.rotationX || xe.rotationY || kt.z || kt.rotationX || kt.rotationY || kt.perspective, he || pe.scale == null || (kt.scaleZ = 1); --Fe > -1; )
|
|
1552
|
-
He = bl[Fe], Le = kt[He] - xe[He], (Le > ye || -ye > Le || pe[He] != null || Bt[He] != null) && (oe = !0,
|
|
1553
|
-
return Le = pe.transformOrigin, xe.svg && (Le || pe.svgOrigin) && (_e = xe.xOffset, ue = xe.yOffset, Yo(V, nt(Le), kt, pe.svgOrigin, pe.smoothOrigin),
|
|
1552
|
+
He = bl[Fe], Le = kt[He] - xe[He], (Le > ye || -ye > Le || pe[He] != null || Bt[He] != null) && (oe = !0, j = new Si(xe, He, xe[He], Le, j), He in di && (j.e = di[He]), j.xs0 = 0, j.plugin = St, at._overwriteProps.push(j.n));
|
|
1553
|
+
return Le = pe.transformOrigin, xe.svg && (Le || pe.svgOrigin) && (_e = xe.xOffset, ue = xe.yOffset, Yo(V, nt(Le), kt, pe.svgOrigin, pe.smoothOrigin), j = Gr(
|
|
1554
1554
|
xe,
|
|
1555
1555
|
"xOrigin",
|
|
1556
1556
|
(ui ? xe : kt).xOrigin,
|
|
1557
1557
|
kt.xOrigin,
|
|
1558
|
-
|
|
1558
|
+
j,
|
|
1559
1559
|
Pe
|
|
1560
|
-
),
|
|
1560
|
+
), j = Gr(
|
|
1561
1561
|
xe,
|
|
1562
1562
|
"yOrigin",
|
|
1563
1563
|
(ui ? xe : kt).yOrigin,
|
|
1564
1564
|
kt.yOrigin,
|
|
1565
|
-
|
|
1565
|
+
j,
|
|
1566
1566
|
Pe
|
|
1567
|
-
), (_e !== xe.xOffset || ue !== xe.yOffset) && (
|
|
1567
|
+
), (_e !== xe.xOffset || ue !== xe.yOffset) && (j = Gr(
|
|
1568
1568
|
xe,
|
|
1569
1569
|
"xOffset",
|
|
1570
1570
|
ui ? _e : xe.xOffset,
|
|
1571
1571
|
xe.xOffset,
|
|
1572
|
-
|
|
1572
|
+
j,
|
|
1573
1573
|
Pe
|
|
1574
|
-
),
|
|
1574
|
+
), j = Gr(
|
|
1575
1575
|
xe,
|
|
1576
1576
|
"yOffset",
|
|
1577
1577
|
ui ? ue : xe.yOffset,
|
|
1578
1578
|
xe.yOffset,
|
|
1579
|
-
|
|
1579
|
+
j,
|
|
1580
1580
|
Pe
|
|
1581
|
-
)), Le = "0px 0px"), (Le || dr && he && xe.zOrigin) && (xn ? (oe = !0, He = ho, Le = (Le || pt(V, He, d, !1, "50% 50%")) + "",
|
|
1581
|
+
)), Le = "0px 0px"), (Le || dr && he && xe.zOrigin) && (xn ? (oe = !0, He = ho, Le = (Le || pt(V, He, d, !1, "50% 50%")) + "", j = new Si(Be, He, 0, 0, j, -1, Pe), j.b = Be[He], j.plugin = St, dr ? (Mt = xe.zOrigin, Le = Le.split(" "), xe.zOrigin = (Le.length > 2 && (Mt === 0 || Le[2] !== "0px") ? parseFloat(Le[2]) : Mt) || 0, j.xs0 = j.e = Le[0] + " " + (Le[1] || "50%") + " 0px", j = new Si(xe, "zOrigin", 0, 0, j, -1, j.n), j.b = Mt, j.xs0 = j.e = xe.zOrigin) : j.xs0 = j.e = Le) : nt(Le + "", xe)), oe && (at._transformType = xe.svg && is || !he && this._transformType !== 3 ? 2 : 3), Rt && (ht[lt] = Rt), Ht && (ht.scale = Ht), j;
|
|
1582
1582
|
},
|
|
1583
1583
|
prefix: !0
|
|
1584
1584
|
}
|
|
@@ -1590,7 +1590,7 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1590
1590
|
keyword: "inset"
|
|
1591
1591
|
}), Oi("borderRadius", {
|
|
1592
1592
|
defaultValue: "0px",
|
|
1593
|
-
parser: function(V, tt, lt, at,
|
|
1593
|
+
parser: function(V, tt, lt, at, j, St) {
|
|
1594
1594
|
tt = this.format(tt);
|
|
1595
1595
|
var ht, Rt, Ht, kt, Mt, he, oe, te, _e, ue, je, He, ui, Be, ye, Fe, pe = [
|
|
1596
1596
|
"borderTopLeftRadius",
|
|
@@ -1599,8 +1599,8 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1599
1599
|
"borderBottomLeftRadius"
|
|
1600
1600
|
], di = V.style;
|
|
1601
1601
|
for (_e = parseFloat(V.offsetWidth), ue = parseFloat(V.offsetHeight), ht = tt.split(" "), Rt = 0; Rt < pe.length; Rt++)
|
|
1602
|
-
this.p.indexOf("border") && (pe[Rt] = Jt(pe[Rt])), Mt = kt = pt(V, pe[Rt], d, !1, "0px"), Mt.indexOf(" ") !== -1 && (kt = Mt.split(" "), Mt = kt[0], kt = kt[1]), he = Ht = ht[Rt], oe = parseFloat(Mt), He = Mt.substr((oe + "").length), ui = he.charAt(1) === "=", ui ? (te = parseInt(he.charAt(0) + "1", 10), he = he.substr(2), te *= parseFloat(he), je = he.substr((te + "").length - (0 > te ? 1 : 0)) || "") : (te = parseFloat(he), je = he.substr((te + "").length)), je === "" && (je = c[lt] || He), je !== He && (Be = dt(V, "borderLeft", oe, He), ye = dt(V, "borderTop", oe, He), je === "%" ? (Mt = Be / _e * 100 + "%", kt = ye / ue * 100 + "%") : je === "em" ? (Fe = dt(V, "borderLeft", 1, "em"), Mt = Be / Fe + "em", kt = ye / Fe + "em") : (Mt = Be + "px", kt = ye + "px"), ui && (he = parseFloat(Mt) + te + je, Ht = parseFloat(kt) + te + je)),
|
|
1603
|
-
return
|
|
1602
|
+
this.p.indexOf("border") && (pe[Rt] = Jt(pe[Rt])), Mt = kt = pt(V, pe[Rt], d, !1, "0px"), Mt.indexOf(" ") !== -1 && (kt = Mt.split(" "), Mt = kt[0], kt = kt[1]), he = Ht = ht[Rt], oe = parseFloat(Mt), He = Mt.substr((oe + "").length), ui = he.charAt(1) === "=", ui ? (te = parseInt(he.charAt(0) + "1", 10), he = he.substr(2), te *= parseFloat(he), je = he.substr((te + "").length - (0 > te ? 1 : 0)) || "") : (te = parseFloat(he), je = he.substr((te + "").length)), je === "" && (je = c[lt] || He), je !== He && (Be = dt(V, "borderLeft", oe, He), ye = dt(V, "borderTop", oe, He), je === "%" ? (Mt = Be / _e * 100 + "%", kt = ye / ue * 100 + "%") : je === "em" ? (Fe = dt(V, "borderLeft", 1, "em"), Mt = Be / Fe + "em", kt = ye / Fe + "em") : (Mt = Be + "px", kt = ye + "px"), ui && (he = parseFloat(Mt) + te + je, Ht = parseFloat(kt) + te + je)), j = er(di, pe[Rt], Mt + " " + kt, he + " " + Ht, !1, "0px", j);
|
|
1603
|
+
return j;
|
|
1604
1604
|
},
|
|
1605
1605
|
prefix: !0,
|
|
1606
1606
|
formatter: vi("0px 0px 0px 0px", !1, !0)
|
|
@@ -1608,7 +1608,7 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1608
1608
|
"borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",
|
|
1609
1609
|
{
|
|
1610
1610
|
defaultValue: "0px",
|
|
1611
|
-
parser: function(V, tt, lt, at,
|
|
1611
|
+
parser: function(V, tt, lt, at, j, St) {
|
|
1612
1612
|
return er(
|
|
1613
1613
|
V.style,
|
|
1614
1614
|
lt,
|
|
@@ -1616,7 +1616,7 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1616
1616
|
this.format(tt),
|
|
1617
1617
|
!1,
|
|
1618
1618
|
"0px",
|
|
1619
|
-
|
|
1619
|
+
j
|
|
1620
1620
|
);
|
|
1621
1621
|
},
|
|
1622
1622
|
prefix: !0,
|
|
@@ -1624,7 +1624,7 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1624
1624
|
}
|
|
1625
1625
|
), Oi("backgroundPosition", {
|
|
1626
1626
|
defaultValue: "0 0",
|
|
1627
|
-
parser: function(V, tt, lt, at,
|
|
1627
|
+
parser: function(V, tt, lt, at, j, St) {
|
|
1628
1628
|
var ht, Rt, Ht, kt, Mt, he, oe = "background-position", te = d || Wt(V, null), _e = this.format(
|
|
1629
1629
|
(te ? E ? te.getPropertyValue(oe + "-x") + " " + te.getPropertyValue(oe + "-y") : te.getPropertyValue(oe) : V.currentStyle.backgroundPositionX + " " + V.currentStyle.backgroundPositionY) || "0 0"
|
|
1630
1630
|
), ue = this.format(tt);
|
|
@@ -1633,7 +1633,7 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1633
1633
|
_e = ht[Ht], kt = _e.indexOf("%") !== -1, kt !== (Rt[Ht].indexOf("%") !== -1) && (Mt = Ht === 0 ? V.offsetWidth - Li.width : V.offsetHeight - Li.height, ht[Ht] = kt ? parseFloat(_e) / 100 * Mt + "px" : parseFloat(_e) / Mt * 100 + "%");
|
|
1634
1634
|
_e = ht.join(" ");
|
|
1635
1635
|
}
|
|
1636
|
-
return this.parseComplex(V.style, _e, ue,
|
|
1636
|
+
return this.parseComplex(V.style, _e, ue, j, St);
|
|
1637
1637
|
},
|
|
1638
1638
|
formatter: nt
|
|
1639
1639
|
}), Oi("backgroundSize", {
|
|
@@ -1647,21 +1647,21 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1647
1647
|
parser: Mi("paddingTop,paddingRight,paddingBottom,paddingLeft")
|
|
1648
1648
|
}), Oi("clip", {
|
|
1649
1649
|
defaultValue: "rect(0px,0px,0px,0px)",
|
|
1650
|
-
parser: function(V, tt, lt, at,
|
|
1650
|
+
parser: function(V, tt, lt, at, j, St) {
|
|
1651
1651
|
var ht, Rt, Ht;
|
|
1652
|
-
return 9 > E ? (Rt = V.currentStyle, Ht = 8 > E ? " " : ",", ht = "rect(" + Rt.clipTop + Ht + Rt.clipRight + Ht + Rt.clipBottom + Ht + Rt.clipLeft + ")", tt = this.format(tt).split(",").join(Ht)) : (ht = this.format(pt(V, this.p, d, !1, this.dflt)), tt = this.format(tt)), this.parseComplex(V.style, ht, tt,
|
|
1652
|
+
return 9 > E ? (Rt = V.currentStyle, Ht = 8 > E ? " " : ",", ht = "rect(" + Rt.clipTop + Ht + Rt.clipRight + Ht + Rt.clipBottom + Ht + Rt.clipLeft + ")", tt = this.format(tt).split(",").join(Ht)) : (ht = this.format(pt(V, this.p, d, !1, this.dflt)), tt = this.format(tt)), this.parseComplex(V.style, ht, tt, j, St);
|
|
1653
1653
|
}
|
|
1654
1654
|
}), Oi("textShadow", {
|
|
1655
1655
|
defaultValue: "0px 0px 0px #999",
|
|
1656
1656
|
color: !0,
|
|
1657
1657
|
multi: !0
|
|
1658
1658
|
}), Oi("autoRound,strictUnits", {
|
|
1659
|
-
parser: function(V, tt, lt, at,
|
|
1660
|
-
return
|
|
1659
|
+
parser: function(V, tt, lt, at, j) {
|
|
1660
|
+
return j;
|
|
1661
1661
|
}
|
|
1662
1662
|
}), Oi("border", {
|
|
1663
1663
|
defaultValue: "0px solid #000",
|
|
1664
|
-
parser: function(V, tt, lt, at,
|
|
1664
|
+
parser: function(V, tt, lt, at, j, St) {
|
|
1665
1665
|
var ht = pt(V, "borderTopWidth", d, !1, "0px"), Rt = this.format(tt).split(" "), Ht = Rt[0].replace(N, "");
|
|
1666
1666
|
return Ht !== "px" && (ht = parseFloat(ht) / dt(V, "borderTopWidth", 1, Ht) + Ht), this.parseComplex(
|
|
1667
1667
|
V.style,
|
|
@@ -1669,7 +1669,7 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1669
1669
|
ht + " " + pt(V, "borderTopStyle", d, !1, "solid") + " " + pt(V, "borderTopColor", d, !1, "#000")
|
|
1670
1670
|
),
|
|
1671
1671
|
Rt.join(" "),
|
|
1672
|
-
|
|
1672
|
+
j,
|
|
1673
1673
|
St
|
|
1674
1674
|
);
|
|
1675
1675
|
},
|
|
@@ -1683,32 +1683,32 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1683
1683
|
"borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth"
|
|
1684
1684
|
)
|
|
1685
1685
|
}), Oi("float,cssFloat,styleFloat", {
|
|
1686
|
-
parser: function(V, tt, lt, at,
|
|
1686
|
+
parser: function(V, tt, lt, at, j, St) {
|
|
1687
1687
|
var ht = V.style, Rt = "cssFloat" in ht ? "cssFloat" : "styleFloat";
|
|
1688
|
-
return new Si(ht, Rt, 0, 0,
|
|
1688
|
+
return new Si(ht, Rt, 0, 0, j, -1, lt, !1, 0, ht[Rt], tt);
|
|
1689
1689
|
}
|
|
1690
1690
|
});
|
|
1691
1691
|
var ph = function(V) {
|
|
1692
|
-
var tt, lt = this.t, at = lt.filter || pt(this.data, "filter") || "",
|
|
1693
|
-
|
|
1692
|
+
var tt, lt = this.t, at = lt.filter || pt(this.data, "filter") || "", j = this.s + this.c * V | 0;
|
|
1693
|
+
j === 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=" + j + ")"), at.indexOf("pacity") === -1 ? j === 0 && this.xn1 || (lt.filter = at + " alpha(opacity=" + j + ")") : lt.filter = at.replace(X, "opacity=" + j));
|
|
1694
1694
|
};
|
|
1695
1695
|
Oi("opacity,alpha,autoAlpha", {
|
|
1696
1696
|
defaultValue: "1",
|
|
1697
|
-
parser: function(V, tt, lt, at,
|
|
1697
|
+
parser: function(V, tt, lt, at, j, St) {
|
|
1698
1698
|
var ht = parseFloat(pt(V, "opacity", d, !1, "1")), Rt = V.style, Ht = lt === "autoAlpha";
|
|
1699
|
-
return typeof tt == "string" && tt.charAt(1) === "=" && (tt = (tt.charAt(0) === "-" ? -1 : 1) * parseFloat(tt.substr(2)) + ht), Ht && ht === 1 && pt(V, "visibility", d) === "hidden" && tt !== 0 && (ht = 0), pi ?
|
|
1699
|
+
return typeof tt == "string" && tt.charAt(1) === "=" && (tt = (tt.charAt(0) === "-" ? -1 : 1) * parseFloat(tt.substr(2)) + ht), Ht && ht === 1 && pt(V, "visibility", d) === "hidden" && tt !== 0 && (ht = 0), pi ? j = new Si(Rt, "opacity", ht, tt - ht, j) : (j = new Si(Rt, "opacity", 100 * ht, 100 * (tt - ht), j), j.xn1 = Ht ? 1 : 0, Rt.zoom = 1, j.type = 2, j.b = "alpha(opacity=" + j.s + ")", j.e = "alpha(opacity=" + (j.s + j.c) + ")", j.data = V, j.plugin = St, j.setRatio = ph), Ht && (j = new Si(
|
|
1700
1700
|
Rt,
|
|
1701
1701
|
"visibility",
|
|
1702
1702
|
0,
|
|
1703
1703
|
0,
|
|
1704
|
-
|
|
1704
|
+
j,
|
|
1705
1705
|
-1,
|
|
1706
1706
|
null,
|
|
1707
1707
|
!1,
|
|
1708
1708
|
0,
|
|
1709
1709
|
ht !== 0 ? "inherit" : "hidden",
|
|
1710
1710
|
tt === 0 ? "hidden" : "inherit"
|
|
1711
|
-
),
|
|
1711
|
+
), j.xs0 = "inherit", at._overwriteProps.push(j.n), at._overwriteProps.push(lt)), j;
|
|
1712
1712
|
}
|
|
1713
1713
|
});
|
|
1714
1714
|
var uo = function(V, tt) {
|
|
@@ -1723,33 +1723,33 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1723
1723
|
this.t.getAttribute("class") !== this.e && this.t.setAttribute("class", this.e);
|
|
1724
1724
|
};
|
|
1725
1725
|
Oi("className", {
|
|
1726
|
-
parser: function(V, tt, lt, at,
|
|
1726
|
+
parser: function(V, tt, lt, at, j, St, ht) {
|
|
1727
1727
|
var Rt, Ht, kt, Mt, he, oe = V.getAttribute("class") || "", te = V.style.cssText;
|
|
1728
|
-
if (
|
|
1728
|
+
if (j = at._classNamePT = new Si(V, lt, 0, 0, j, 2), j.setRatio = co, j.pr = -11, o = !0, j.b = oe, Ht = ie(V, d), kt = V._gsClassPT) {
|
|
1729
1729
|
for (Mt = {}, he = kt.data; he; )
|
|
1730
1730
|
Mt[he.p] = 1, he = he._next;
|
|
1731
1731
|
kt.setRatio(1);
|
|
1732
1732
|
}
|
|
1733
|
-
return V._gsClassPT =
|
|
1733
|
+
return V._gsClassPT = j, j.e = tt.charAt(1) !== "=" ? tt : oe.replace(
|
|
1734
1734
|
new RegExp("(?:\\s|^)" + tt.substr(2) + "(?![\\w-])"),
|
|
1735
1735
|
""
|
|
1736
|
-
) + (tt.charAt(0) === "+" ? " " + tt.substr(2) : ""), V.setAttribute("class",
|
|
1736
|
+
) + (tt.charAt(0) === "+" ? " " + tt.substr(2) : ""), V.setAttribute("class", j.e), Rt = Kt(V, Ht, ie(V), ht, Mt), V.setAttribute("class", oe), j.data = Rt.firstMPT, V.style.cssText = te, j = j.xfirst = at.parse(V, Rt.difs, j, St);
|
|
1737
1737
|
}
|
|
1738
1738
|
});
|
|
1739
1739
|
var Pl = function(V) {
|
|
1740
1740
|
if ((V === 1 || V === 0) && this.data._totalTime === this.data._totalDuration && this.data.data !== "isFromStart") {
|
|
1741
|
-
var tt, lt, at,
|
|
1741
|
+
var tt, lt, at, j, St, ht = this.t.style, Rt = y.transform.parse;
|
|
1742
1742
|
if (this.e === "all")
|
|
1743
|
-
ht.cssText = "",
|
|
1743
|
+
ht.cssText = "", j = !0;
|
|
1744
1744
|
else
|
|
1745
1745
|
for (tt = this.e.split(" ").join("").split(","), at = tt.length; --at > -1; )
|
|
1746
|
-
lt = tt[at], y[lt] && (y[lt].parse === Rt ?
|
|
1747
|
-
|
|
1746
|
+
lt = tt[at], y[lt] && (y[lt].parse === Rt ? j = !0 : lt = lt === "transformOrigin" ? ho : y[lt].p), uo(ht, lt);
|
|
1747
|
+
j && (uo(ht, xn), St = this.t._gsTransform, St && (St.svg && (this.t.removeAttribute("data-svg-origin"), this.t.removeAttribute("transform")), delete this.t._gsTransform));
|
|
1748
1748
|
}
|
|
1749
1749
|
};
|
|
1750
1750
|
for (Oi("clearProps", {
|
|
1751
|
-
parser: function(V, tt, lt, at,
|
|
1752
|
-
return
|
|
1751
|
+
parser: function(V, tt, lt, at, j) {
|
|
1752
|
+
return j = new Si(V, lt, 0, 0, j, 2), j.setRatio = Pl, j.e = tt, j.pr = -10, j.data = at._tween, o = !0, j;
|
|
1753
1753
|
}
|
|
1754
1754
|
}), S = "bezier,throwProps,physicsProps,physics2D".split(","), rn = S.length; rn--; )
|
|
1755
1755
|
Us(S[rn]);
|
|
@@ -1757,8 +1757,8 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1757
1757
|
if (!V.nodeType)
|
|
1758
1758
|
return !1;
|
|
1759
1759
|
this._target = L = V, this._tween = lt, this._vars = tt, T = at, A = tt.autoRound, o = !1, c = tt.suffixMap || m.suffixMap, d = Wt(V, ""), u = this._overwriteProps;
|
|
1760
|
-
var
|
|
1761
|
-
if (I && te.zIndex === "" && (
|
|
1760
|
+
var j, St, ht, Rt, Ht, kt, Mt, he, oe, te = V.style;
|
|
1761
|
+
if (I && te.zIndex === "" && (j = pt(V, "zIndex", d), (j === "auto" || j === "") && this._addLazySet(te, "zIndex", 0)), typeof tt == "string" && (Rt = te.cssText, j = ie(V, d), te.cssText = Rt + ";" + tt, j = Kt(V, j, ie(V)).difs, !pi && J.test(tt) && (j.opacity = parseFloat(RegExp.$1)), tt = j, te.cssText = Rt), tt.className ? this._firstPT = St = y.className.parse(
|
|
1762
1762
|
V,
|
|
1763
1763
|
tt.className,
|
|
1764
1764
|
"className",
|
|
@@ -1785,45 +1785,45 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1785
1785
|
}
|
|
1786
1786
|
return !0;
|
|
1787
1787
|
}, S.parse = function(V, tt, lt, at) {
|
|
1788
|
-
var
|
|
1789
|
-
for (
|
|
1790
|
-
if (kt = tt[
|
|
1791
|
-
lt = St.parse(V, kt,
|
|
1788
|
+
var j, St, ht, Rt, Ht, kt, Mt, he, oe, te, _e = V.style;
|
|
1789
|
+
for (j in tt) {
|
|
1790
|
+
if (kt = tt[j], typeof kt == "function" && (kt = kt(T, L)), St = y[j])
|
|
1791
|
+
lt = St.parse(V, kt, j, this, lt, at, tt);
|
|
1792
1792
|
else {
|
|
1793
|
-
if (
|
|
1794
|
-
this._tween._propLookup[
|
|
1793
|
+
if (j.substr(0, 2) === "--") {
|
|
1794
|
+
this._tween._propLookup[j] = this._addTween.call(
|
|
1795
1795
|
this._tween,
|
|
1796
1796
|
V.style,
|
|
1797
1797
|
"setProperty",
|
|
1798
|
-
Wt(V).getPropertyValue(
|
|
1798
|
+
Wt(V).getPropertyValue(j) + "",
|
|
1799
1799
|
kt + "",
|
|
1800
|
-
|
|
1800
|
+
j,
|
|
1801
1801
|
!1,
|
|
1802
|
-
|
|
1802
|
+
j
|
|
1803
1803
|
);
|
|
1804
1804
|
continue;
|
|
1805
1805
|
}
|
|
1806
|
-
Ht = pt(V,
|
|
1806
|
+
Ht = pt(V, j, d) + "", oe = typeof kt == "string", j === "color" || j === "fill" || j === "stroke" || j.indexOf("Color") !== -1 || oe && ct.test(kt) ? (oe || (kt = Re(kt), kt = (kt.length > 3 ? "rgba(" : "rgb(") + kt.join(",") + ")"), lt = er(_e, j, Ht, kt, !0, "transparent", lt, 0, at)) : oe && re.test(kt) ? lt = er(_e, j, Ht, kt, !0, null, lt, 0, at) : (ht = parseFloat(Ht), Mt = ht || ht === 0 ? Ht.substr((ht + "").length) : "", (Ht === "" || Ht === "auto") && (j === "width" || j === "height" ? (ht = ot(V, j, d), Mt = "px") : j === "left" || j === "top" ? (ht = Dt(V, j, d), Mt = "px") : (ht = j !== "opacity" ? 0 : 1, Mt = "")), te = oe && kt.charAt(1) === "=", te ? (Rt = parseInt(kt.charAt(0) + "1", 10), kt = kt.substr(2), Rt *= parseFloat(kt), he = kt.replace(N, "")) : (Rt = parseFloat(kt), he = oe ? kt.replace(N, "") : ""), he === "" && (he = j in c ? c[j] : Mt), kt = Rt || Rt === 0 ? (te ? Rt + ht : Rt) + he : tt[j], Mt !== he && (he !== "" || j === "lineHeight") && (Rt || Rt === 0) && ht && (ht = dt(V, j, ht, Mt), he === "%" ? (ht /= dt(V, j, 100, "%") / 100, tt.strictUnits !== !0 && (Ht = ht + "%")) : he === "em" || he === "rem" || he === "vw" || he === "vh" ? ht /= dt(V, j, 1, he) : he !== "px" && (Rt = dt(V, j, Rt, he), he = "px"), te && (Rt || Rt === 0) && (kt = Rt + ht + he)), te && (Rt += ht), !ht && ht !== 0 || !Rt && Rt !== 0 ? _e[j] !== void 0 && (kt || kt + "" != "NaN" && kt != null) ? (lt = new Si(
|
|
1807
1807
|
_e,
|
|
1808
|
-
|
|
1808
|
+
j,
|
|
1809
1809
|
Rt || ht || 0,
|
|
1810
1810
|
0,
|
|
1811
1811
|
lt,
|
|
1812
1812
|
-1,
|
|
1813
|
-
|
|
1813
|
+
j,
|
|
1814
1814
|
!1,
|
|
1815
1815
|
0,
|
|
1816
1816
|
Ht,
|
|
1817
1817
|
kt
|
|
1818
|
-
), lt.xs0 = kt !== "none" ||
|
|
1818
|
+
), lt.xs0 = kt !== "none" || j !== "display" && j.indexOf("Style") === -1 ? kt : Ht) : cn("invalid " + j + " tween value: " + tt[j]) : (lt = new Si(
|
|
1819
1819
|
_e,
|
|
1820
|
-
|
|
1820
|
+
j,
|
|
1821
1821
|
ht,
|
|
1822
1822
|
Rt - ht,
|
|
1823
1823
|
lt,
|
|
1824
1824
|
0,
|
|
1825
|
-
|
|
1826
|
-
A !== !1 && (he === "px" ||
|
|
1825
|
+
j,
|
|
1826
|
+
A !== !1 && (he === "px" || j === "zIndex"),
|
|
1827
1827
|
0,
|
|
1828
1828
|
Ht,
|
|
1829
1829
|
kt
|
|
@@ -1833,51 +1833,51 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1833
1833
|
}
|
|
1834
1834
|
return lt;
|
|
1835
1835
|
}, S.setRatio = function(V) {
|
|
1836
|
-
var tt, lt, at,
|
|
1836
|
+
var tt, lt, at, j = this._firstPT, St = 1e-6;
|
|
1837
1837
|
if (V !== 1 || this._tween._time !== this._tween._duration && this._tween._time !== 0)
|
|
1838
1838
|
if (V || this._tween._time !== this._tween._duration && this._tween._time !== 0 || this._tween._rawPrevTime === -1e-6)
|
|
1839
|
-
for (;
|
|
1840
|
-
if (tt =
|
|
1841
|
-
if (
|
|
1842
|
-
if (at =
|
|
1843
|
-
|
|
1839
|
+
for (; j; ) {
|
|
1840
|
+
if (tt = j.c * V + j.s, j.r ? tt = j.r(tt) : St > tt && tt > -St && (tt = 0), j.type)
|
|
1841
|
+
if (j.type === 1)
|
|
1842
|
+
if (at = j.l, at === 2)
|
|
1843
|
+
j.t[j.p] = j.xs0 + tt + j.xs1 + j.xn1 + j.xs2;
|
|
1844
1844
|
else if (at === 3)
|
|
1845
|
-
|
|
1845
|
+
j.t[j.p] = j.xs0 + tt + j.xs1 + j.xn1 + j.xs2 + j.xn2 + j.xs3;
|
|
1846
1846
|
else if (at === 4)
|
|
1847
|
-
|
|
1847
|
+
j.t[j.p] = j.xs0 + tt + j.xs1 + j.xn1 + j.xs2 + j.xn2 + j.xs3 + j.xn3 + j.xs4;
|
|
1848
1848
|
else if (at === 5)
|
|
1849
|
-
|
|
1849
|
+
j.t[j.p] = j.xs0 + tt + j.xs1 + j.xn1 + j.xs2 + j.xn2 + j.xs3 + j.xn3 + j.xs4 + j.xn4 + j.xs5;
|
|
1850
1850
|
else {
|
|
1851
|
-
for (lt =
|
|
1852
|
-
lt +=
|
|
1853
|
-
|
|
1851
|
+
for (lt = j.xs0 + tt + j.xs1, at = 1; at < j.l; at++)
|
|
1852
|
+
lt += j["xn" + at] + j["xs" + (at + 1)];
|
|
1853
|
+
j.t[j.p] = lt;
|
|
1854
1854
|
}
|
|
1855
1855
|
else
|
|
1856
|
-
|
|
1856
|
+
j.type === -1 ? j.t[j.p] = j.xs0 : j.setRatio && j.setRatio(V);
|
|
1857
1857
|
else
|
|
1858
|
-
|
|
1859
|
-
|
|
1858
|
+
j.t[j.p] = tt + j.xs0;
|
|
1859
|
+
j = j._next;
|
|
1860
1860
|
}
|
|
1861
1861
|
else
|
|
1862
|
-
for (;
|
|
1863
|
-
|
|
1862
|
+
for (; j; )
|
|
1863
|
+
j.type !== 2 ? j.t[j.p] = j.b : j.setRatio(V), j = j._next;
|
|
1864
1864
|
else
|
|
1865
|
-
for (;
|
|
1866
|
-
if (
|
|
1867
|
-
if (
|
|
1868
|
-
if (tt =
|
|
1869
|
-
if (
|
|
1870
|
-
for (at =
|
|
1871
|
-
lt +=
|
|
1872
|
-
|
|
1865
|
+
for (; j; ) {
|
|
1866
|
+
if (j.type !== 2)
|
|
1867
|
+
if (j.r && j.type !== -1)
|
|
1868
|
+
if (tt = j.r(j.s + j.c), j.type) {
|
|
1869
|
+
if (j.type === 1) {
|
|
1870
|
+
for (at = j.l, lt = j.xs0 + tt + j.xs1, at = 1; at < j.l; at++)
|
|
1871
|
+
lt += j["xn" + at] + j["xs" + (at + 1)];
|
|
1872
|
+
j.t[j.p] = lt;
|
|
1873
1873
|
}
|
|
1874
1874
|
} else
|
|
1875
|
-
|
|
1875
|
+
j.t[j.p] = tt + j.xs0;
|
|
1876
1876
|
else
|
|
1877
|
-
|
|
1877
|
+
j.t[j.p] = j.e;
|
|
1878
1878
|
else
|
|
1879
|
-
|
|
1880
|
-
|
|
1879
|
+
j.setRatio(V);
|
|
1880
|
+
j = j._next;
|
|
1881
1881
|
}
|
|
1882
1882
|
}, S._enableTransforms = function(V) {
|
|
1883
1883
|
this._transform = this._transform || ss(this._target, d, !0), this._transformType = this._transform.svg && is || !V && this._transformType !== 3 ? 2 : 3;
|
|
@@ -1894,37 +1894,37 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1894
1894
|
for (var tt = this._firstPT; tt; )
|
|
1895
1895
|
typeof V[tt.p] == "function" && (tt.r = V[tt.p]), tt = tt._next;
|
|
1896
1896
|
}, S._kill = function(V) {
|
|
1897
|
-
var tt, lt, at,
|
|
1897
|
+
var tt, lt, at, j = V;
|
|
1898
1898
|
if (V.autoAlpha || V.alpha) {
|
|
1899
|
-
|
|
1899
|
+
j = {};
|
|
1900
1900
|
for (lt in V)
|
|
1901
|
-
|
|
1902
|
-
|
|
1901
|
+
j[lt] = V[lt];
|
|
1902
|
+
j.opacity = 1, j.autoAlpha && (j.visibility = 1);
|
|
1903
1903
|
}
|
|
1904
1904
|
for (V.className && (tt = this._classNamePT) && (at = tt.xfirst, at && at._prev ? this._linkCSSP(at._prev, tt._next, at._prev._prev) : at === this._firstPT && (this._firstPT = tt._next), tt._next && this._linkCSSP(tt._next, tt._next._next, at._prev), this._classNamePT = null), tt = this._firstPT; tt; )
|
|
1905
1905
|
tt.plugin && tt.plugin !== lt && tt.plugin._kill && (tt.plugin._kill(V), lt = tt.plugin), tt = tt._next;
|
|
1906
|
-
return x.prototype._kill.call(this,
|
|
1906
|
+
return x.prototype._kill.call(this, j);
|
|
1907
1907
|
};
|
|
1908
1908
|
var Hr = function(V, tt, lt) {
|
|
1909
|
-
var at,
|
|
1909
|
+
var at, j, St, ht;
|
|
1910
1910
|
if (V.slice)
|
|
1911
|
-
for (
|
|
1912
|
-
Hr(V[
|
|
1911
|
+
for (j = V.length; --j > -1; )
|
|
1912
|
+
Hr(V[j], tt, lt);
|
|
1913
1913
|
else
|
|
1914
|
-
for (at = V.childNodes,
|
|
1915
|
-
St = at[
|
|
1914
|
+
for (at = V.childNodes, j = at.length; --j > -1; )
|
|
1915
|
+
St = at[j], ht = St.type, St.style && (tt.push(ie(St)), lt && lt.push(St)), ht !== 1 && ht !== 9 && ht !== 11 || !St.childNodes.length || Hr(St, tt, lt);
|
|
1916
1916
|
};
|
|
1917
1917
|
return m.cascadeTo = function(V, tt, lt) {
|
|
1918
|
-
var at,
|
|
1918
|
+
var at, j, St, ht, Rt = a.to(V, tt, lt), Ht = [Rt], kt = [], Mt = [], he = [], oe = a._internals.reservedProps;
|
|
1919
1919
|
for (V = Rt._targets || Rt.target, Hr(V, kt, he), Rt.render(tt, !0, !0), Hr(V, Mt), Rt.render(0, !0, !0), Rt._enabled(!0), at = he.length; --at > -1; )
|
|
1920
|
-
if (
|
|
1921
|
-
|
|
1920
|
+
if (j = Kt(he[at], kt[at], Mt[at]), j.firstMPT) {
|
|
1921
|
+
j = j.difs;
|
|
1922
1922
|
for (St in lt)
|
|
1923
|
-
oe[St] && (
|
|
1923
|
+
oe[St] && (j[St] = lt[St]);
|
|
1924
1924
|
ht = {};
|
|
1925
|
-
for (St in
|
|
1925
|
+
for (St in j)
|
|
1926
1926
|
ht[St] = kt[at][St];
|
|
1927
|
-
Ht.push(a.fromTo(he[at], tt, ht,
|
|
1927
|
+
Ht.push(a.fromTo(he[at], tt, ht, j));
|
|
1928
1928
|
}
|
|
1929
1929
|
return Ht;
|
|
1930
1930
|
}, x.activate([m]), m;
|
|
@@ -2016,12 +2016,12 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2016
2016
|
return U.constructor = b, U.getRatio = R, b;
|
|
2017
2017
|
}, I = x.register || function() {
|
|
2018
2018
|
}, k = function(M, R, b, U, N) {
|
|
2019
|
-
var
|
|
2019
|
+
var X = S(
|
|
2020
2020
|
"easing." + M,
|
|
2021
2021
|
{ easeOut: new R(), easeIn: new b(), easeInOut: new U() },
|
|
2022
2022
|
!0
|
|
2023
2023
|
);
|
|
2024
|
-
return I(
|
|
2024
|
+
return I(X, M), X;
|
|
2025
2025
|
}, D = function(M, R, b) {
|
|
2026
2026
|
this.t = M, this.v = R, b && (this.next = b, b.prev = this, this.c = b.v - R, this.gap = b.t - M);
|
|
2027
2027
|
}, F = function(M, R) {
|
|
@@ -2082,12 +2082,12 @@ 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,
|
|
2086
|
-
R = G ? Math.random() : 1 / et * yt, b = Et ? Et.getRatio(R) : R,
|
|
2085
|
+
for (var R, b, U, N, X, 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; )
|
|
2090
|
-
|
|
2090
|
+
X = ct[yt], J = new D(X.x, X.y, J);
|
|
2091
2091
|
this._prev = new D(0, 0, J.t !== 0 ? J : J.next);
|
|
2092
2092
|
},
|
|
2093
2093
|
!0
|
|
@@ -2129,13 +2129,13 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2129
2129
|
), d = function(M, R, b) {
|
|
2130
2130
|
var U = S(
|
|
2131
2131
|
"easing." + M,
|
|
2132
|
-
function(
|
|
2133
|
-
this._p1 =
|
|
2132
|
+
function(X, J) {
|
|
2133
|
+
this._p1 = X >= 1 ? X : 1, this._p2 = (J || b) / (1 > X ? X : 1), this._p3 = this._p2 / _ * (Math.asin(1 / this._p1) || 0), this._p2 = _ / this._p2;
|
|
2134
2134
|
},
|
|
2135
2135
|
!0
|
|
2136
2136
|
), N = U.prototype = new x();
|
|
2137
|
-
return N.constructor = U, N.getRatio = R, N.config = function(
|
|
2138
|
-
return new U(
|
|
2137
|
+
return N.constructor = U, N.getRatio = R, N.config = function(X, J) {
|
|
2138
|
+
return new U(X, J);
|
|
2139
2139
|
}, U;
|
|
2140
2140
|
}, k(
|
|
2141
2141
|
"Elastic",
|
|
@@ -2261,10 +2261,10 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2261
2261
|
this._func = z, this._type = ot || 0, this._power = nt || 0, this._params = Q ? U.concat(Q) : U;
|
|
2262
2262
|
},
|
|
2263
2263
|
!0
|
|
2264
|
-
),
|
|
2264
|
+
), X = N.map = {}, J = N.register = function(z, Q, ot, nt) {
|
|
2265
2265
|
for (var vt, Gt, Xt, jt, Ne = Q.split(","), Re = Ne.length, ge = (ot || "easeIn,easeOut,easeInOut").split(","); --Re > -1; )
|
|
2266
2266
|
for (Gt = Ne[Re], vt = nt ? b("easing." + Gt, null, !0) : k.easing[Gt] || {}, Xt = ge.length; --Xt > -1; )
|
|
2267
|
-
jt = ge[Xt],
|
|
2267
|
+
jt = ge[Xt], X[Gt + "." + jt] = X[jt + Gt] = vt[jt] = z.getRatio ? z : z[jt] || new z();
|
|
2268
2268
|
};
|
|
2269
2269
|
for (y = N.prototype, y._calcEnd = !1, y.getRatio = function(z) {
|
|
2270
2270
|
if (this._func)
|
|
@@ -2273,11 +2273,11 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2273
2273
|
return ot === 1 ? nt *= nt : ot === 2 ? nt *= nt * nt : ot === 3 ? nt *= nt * nt * nt : ot === 4 && (nt *= nt * nt * nt * nt), Q === 1 ? 1 - nt : Q === 2 ? nt : 0.5 > z ? nt / 2 : 1 - nt / 2;
|
|
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
|
-
|
|
2277
|
-
var
|
|
2276
|
+
X.linear = k.easing.Linear.easeIn, X.swing = k.easing.Quad.easeInOut;
|
|
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;
|
|
@@ -2670,7 +2670,7 @@ var hn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2670
2670
|
} else
|
|
2671
2671
|
this._startAt._init(), this._startAt._enabled(!1), this.vars.immediateRender && (this._startAt = null);
|
|
2672
2672
|
}
|
|
2673
|
-
if (this._ease = ge = ge ? ge instanceof N ? ge : typeof ge == "function" ? new N(ge, Xt.easeParams) :
|
|
2673
|
+
if (this._ease = ge = ge ? ge instanceof N ? ge : typeof ge == "function" ? new N(ge, Xt.easeParams) : X[ge] || Ct.defaultEase : Ct.defaultEase, Xt.easeParams instanceof Array && ge.config && (this._ease = ge.config.apply(ge, Xt.easeParams)), this._easeType = this._ease._type, this._easePower = this._ease._power, this._firstPT = null, this._targets)
|
|
2674
2674
|
for (Gt = this._targets.length, z = 0; Gt > z; z++)
|
|
2675
2675
|
this._initProps(
|
|
2676
2676
|
this._targets[z],
|
|
@@ -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,47 +3228,47 @@ 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 + X(D.yDamped, 0, y, 0, 4), k.material.uniforms.distortCenter.value = Math.sin(K) * 0.1, k.material.uniforms.roadWidth.value = X(
|
|
3260
3260
|
D.xDamped,
|
|
3261
3261
|
0,
|
|
3262
3262
|
_,
|
|
3263
3263
|
1,
|
|
3264
3264
|
4.5
|
|
3265
|
-
), I.position.y =
|
|
3265
|
+
), I.position.y = X(D.yDamped, 0, y, 4, 11), A.render(S, I);
|
|
3266
3266
|
}
|
|
3267
|
-
function
|
|
3268
|
-
return et + (yt - et) * ((
|
|
3267
|
+
function X(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");
|
|
@@ -3462,7 +3462,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
3462
3462
|
normalMatrix: { value: new m() }
|
|
3463
3463
|
}), this.matrix = new c(), this.matrixWorld = new c(), this.matrixAutoUpdate = N.DefaultMatrixAutoUpdate, this.matrixWorldNeedsUpdate = !1, this.layers = new U(), this.visible = !0, this.receiveShadow = this.castShadow = !1, this.frustumCulled = !0, this.renderOrder = 0, this.userData = {};
|
|
3464
3464
|
}
|
|
3465
|
-
function
|
|
3465
|
+
function X() {
|
|
3466
3466
|
Object.defineProperty(this, "id", { value: Qu += 2 }), this.uuid = fi.generateUUID(), this.name = "", this.type = "Geometry", this.vertices = [], this.colors = [], this.faces = [], this.faceVertexUvs = [[]], this.morphTargets = [], this.morphNormals = [], this.skinWeights = [], this.skinIndices = [], this.lineDistances = [], this.boundingSphere = this.boundingBox = null, this.groupsNeedUpdate = this.lineDistancesNeedUpdate = this.colorsNeedUpdate = this.normalsNeedUpdate = this.uvsNeedUpdate = this.verticesNeedUpdate = this.elementsNeedUpdate = !1;
|
|
3467
3467
|
}
|
|
3468
3468
|
function J(t, e, i) {
|
|
@@ -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) {
|
|
@@ -3513,7 +3513,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
3513
3513
|
Object.defineProperty(this, "id", { value: tc += 2 }), this.uuid = fi.generateUUID(), this.name = "", this.type = "BufferGeometry", this.index = null, this.attributes = {}, this.morphAttributes = {}, this.groups = [], this.boundingSphere = this.boundingBox = null, this.drawRange = { start: 0, count: 1 / 0 }, this.userData = {};
|
|
3514
3514
|
}
|
|
3515
3515
|
function Ot(t, e, i, n, s, l) {
|
|
3516
|
-
|
|
3516
|
+
X.call(this), this.type = "BoxGeometry", this.parameters = {
|
|
3517
3517
|
width: t,
|
|
3518
3518
|
height: e,
|
|
3519
3519
|
depth: 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 = {
|
|
@@ -3551,7 +3551,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
3551
3551
|
f("z", "y", "x", -1, -1, i, e, t, l, s, 0), f("z", "y", "x", 1, -1, i, e, -t, l, s, 1), f("x", "z", "y", 1, 1, t, i, e, n, l, 2), f("x", "z", "y", 1, -1, t, i, -e, n, l, 3), f("x", "y", "z", 1, -1, t, e, i, n, s, 4), f("x", "y", "z", -1, -1, t, e, -i, n, s, 5), this.setIndex(v), this.addAttribute("position", new Et(w, 3)), this.addAttribute("normal", new Et(C, 3)), this.addAttribute("uv", new Et(P, 2));
|
|
3552
3552
|
}
|
|
3553
3553
|
function ke(t, e, i, n) {
|
|
3554
|
-
|
|
3554
|
+
X.call(this), this.type = "PlaneGeometry", this.parameters = {
|
|
3555
3555
|
width: t,
|
|
3556
3556
|
height: e,
|
|
3557
3557
|
widthSegments: i,
|
|
@@ -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,
|
|
@@ -4664,7 +4664,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
4664
4664
|
}
|
|
4665
4665
|
};
|
|
4666
4666
|
}
|
|
4667
|
-
function
|
|
4667
|
+
function j(t, e) {
|
|
4668
4668
|
return t.renderOrder !== e.renderOrder ? t.renderOrder - e.renderOrder : t.program && e.program && t.program !== e.program ? t.program.id - e.program.id : t.material.id !== e.material.id ? t.material.id - e.material.id : t.z !== e.z ? t.z - e.z : t.id - e.id;
|
|
4669
4669
|
}
|
|
4670
4670
|
function St(t, e) {
|
|
@@ -4692,7 +4692,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
4692
4692
|
}, t[e] = w) : (w.id = s.id, w.object = s, w.geometry = l, w.material = f, w.program = f.program, w.renderOrder = s.renderOrder, w.z = p, w.group = v), (f.transparent === !0 ? n : i).push(w), e++;
|
|
4693
4693
|
},
|
|
4694
4694
|
sort: function() {
|
|
4695
|
-
1 < i.length && i.sort(
|
|
4695
|
+
1 < i.length && i.sort(j), 1 < n.length && n.sort(St);
|
|
4696
4696
|
}
|
|
4697
4697
|
};
|
|
4698
4698
|
}
|
|
@@ -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 || {};
|
|
@@ -6398,7 +6398,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
6398
6398
|
this.addAttribute("position", new Et(e, 3));
|
|
6399
6399
|
}
|
|
6400
6400
|
function Fa(t, e, i) {
|
|
6401
|
-
|
|
6401
|
+
X.call(this), this.type = "ParametricGeometry", this.parameters = { func: t, slices: e, stacks: i }, this.fromBufferGeometry(new Qo(t, e, i)), this.mergeVertices();
|
|
6402
6402
|
}
|
|
6403
6403
|
function Qo(t, e, i) {
|
|
6404
6404
|
Ft.call(this), this.type = "ParametricBufferGeometry", this.parameters = { func: t, slices: e, stacks: i };
|
|
@@ -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++)
|
|
@@ -6420,7 +6420,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
6420
6420
|
this.setIndex(n), this.addAttribute("position", new Et(s, 3)), this.addAttribute("normal", new Et(l, 3)), this.addAttribute("uv", new Et(f, 2));
|
|
6421
6421
|
}
|
|
6422
6422
|
function Wi(t, e, i, n) {
|
|
6423
|
-
|
|
6423
|
+
X.call(this), this.type = "PolyhedronGeometry", this.parameters = { vertices: t, indices: e, radius: i, detail: n }, this.fromBufferGeometry(new yi(t, e, i, n)), this.mergeVertices();
|
|
6424
6424
|
}
|
|
6425
6425
|
function yi(t, e, i, n) {
|
|
6426
6426
|
function s(w) {
|
|
@@ -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,17 +6458,17 @@ 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));
|
|
6468
6468
|
}(), this.addAttribute("position", new Et(p, 3)), this.addAttribute("normal", new Et(p.slice(), 3)), this.addAttribute("uv", new Et(v, 2)), n === 0 ? this.computeVertexNormals() : this.normalizeNormals();
|
|
6469
6469
|
}
|
|
6470
6470
|
function Ua(t, e) {
|
|
6471
|
-
|
|
6471
|
+
X.call(this), this.type = "TetrahedronGeometry", this.parameters = { radius: t, detail: e }, this.fromBufferGeometry(new ta(t, e)), this.mergeVertices();
|
|
6472
6472
|
}
|
|
6473
6473
|
function ta(t, e) {
|
|
6474
6474
|
yi.call(
|
|
@@ -6480,7 +6480,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
6480
6480
|
), this.type = "TetrahedronBufferGeometry", this.parameters = { radius: t, detail: e };
|
|
6481
6481
|
}
|
|
6482
6482
|
function Ga(t, e) {
|
|
6483
|
-
|
|
6483
|
+
X.call(this), this.type = "OctahedronGeometry", this.parameters = { radius: t, detail: e }, this.fromBufferGeometry(new fo(t, e)), this.mergeVertices();
|
|
6484
6484
|
}
|
|
6485
6485
|
function fo(t, e) {
|
|
6486
6486
|
yi.call(
|
|
@@ -6492,7 +6492,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
6492
6492
|
), this.type = "OctahedronBufferGeometry", this.parameters = { radius: t, detail: e };
|
|
6493
6493
|
}
|
|
6494
6494
|
function Ha(t, e) {
|
|
6495
|
-
|
|
6495
|
+
X.call(this), this.type = "IcosahedronGeometry", this.parameters = { radius: t, detail: e }, this.fromBufferGeometry(new ea(t, e)), this.mergeVertices();
|
|
6496
6496
|
}
|
|
6497
6497
|
function ea(t, e) {
|
|
6498
6498
|
var i = (1 + Math.sqrt(5)) / 2;
|
|
@@ -6603,7 +6603,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
6603
6603
|
), this.type = "IcosahedronBufferGeometry", this.parameters = { radius: t, detail: e };
|
|
6604
6604
|
}
|
|
6605
6605
|
function ia(t, e) {
|
|
6606
|
-
|
|
6606
|
+
X.call(this), this.type = "DodecahedronGeometry", this.parameters = { radius: t, detail: e }, this.fromBufferGeometry(new na(t, e)), this.mergeVertices();
|
|
6607
6607
|
}
|
|
6608
6608
|
function na(t, e) {
|
|
6609
6609
|
var i = (1 + Math.sqrt(5)) / 2, n = 1 / i;
|
|
@@ -6786,7 +6786,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
6786
6786
|
), this.type = "DodecahedronBufferGeometry", this.parameters = { radius: t, detail: e };
|
|
6787
6787
|
}
|
|
6788
6788
|
function fn(t, e, i, n, s, l) {
|
|
6789
|
-
|
|
6789
|
+
X.call(this), this.type = "TubeGeometry", this.parameters = {
|
|
6790
6790
|
path: t,
|
|
6791
6791
|
tubularSegments: e,
|
|
6792
6792
|
radius: i,
|
|
@@ -6812,22 +6812,22 @@ 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
|
+
X.call(this), this.type = "TorusKnotGeometry", this.parameters = {
|
|
6831
6831
|
radius: t,
|
|
6832
6832
|
tube: e,
|
|
6833
6833
|
tubularSegments: i,
|
|
@@ -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
|
}
|
|
@@ -6865,7 +6865,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
6865
6865
|
this.setIndex(p), this.addAttribute("position", new Et(v, 3)), this.addAttribute("normal", new Et(w, 3)), this.addAttribute("uv", new Et(C, 2));
|
|
6866
6866
|
}
|
|
6867
6867
|
function mo(t, e, i, n, s) {
|
|
6868
|
-
|
|
6868
|
+
X.call(this), this.type = "TorusGeometry", this.parameters = {
|
|
6869
6869
|
radius: t,
|
|
6870
6870
|
tube: e,
|
|
6871
6871
|
radialSegments: i,
|
|
@@ -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
|
}
|
|
@@ -7125,7 +7125,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
7125
7125
|
t.push(e[i].x), t.push(e[i].y);
|
|
7126
7126
|
}
|
|
7127
7127
|
function As(t, e) {
|
|
7128
|
-
|
|
7128
|
+
X.call(this), this.type = "ExtrudeGeometry", this.parameters = { shapes: t, options: e }, this.fromBufferGeometry(new ls(t, e)), this.mergeVertices();
|
|
7129
7129
|
}
|
|
7130
7130
|
function ls(t, e) {
|
|
7131
7131
|
function i(v) {
|
|
@@ -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;
|
|
@@ -7264,7 +7264,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
7264
7264
|
return e.extrudePath !== void 0 && (i.options.extrudePath = e.extrudePath.toJSON()), i;
|
|
7265
7265
|
}
|
|
7266
7266
|
function Wa(t, e) {
|
|
7267
|
-
|
|
7267
|
+
X.call(this), this.type = "TextGeometry", this.parameters = { text: t, parameters: e }, this.fromBufferGeometry(new vo(t, e)), this.mergeVertices();
|
|
7268
7268
|
}
|
|
7269
7269
|
function vo(t, e) {
|
|
7270
7270
|
e = e || {};
|
|
@@ -7272,11 +7272,11 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
7272
7272
|
if (!i || !i.isFont)
|
|
7273
7273
|
return console.error(
|
|
7274
7274
|
"THREE.TextGeometry: font parameter is not an instance of THREE.Font."
|
|
7275
|
-
), new
|
|
7275
|
+
), new X();
|
|
7276
7276
|
t = i.generateShapes(t, e.size), e.depth = e.height !== void 0 ? e.height : 50, e.bevelThickness === void 0 && (e.bevelThickness = 10), e.bevelSize === void 0 && (e.bevelSize = 8), e.bevelEnabled === void 0 && (e.bevelEnabled = !1), ls.call(this, t, e), this.type = "TextBufferGeometry";
|
|
7277
7277
|
}
|
|
7278
7278
|
function Vs(t, e, i, n, s, l, f) {
|
|
7279
|
-
|
|
7279
|
+
X.call(this), this.type = "SphereGeometry", this.parameters = {
|
|
7280
7280
|
radius: t,
|
|
7281
7281
|
widthSegments: e,
|
|
7282
7282
|
heightSegments: i,
|
|
@@ -7296,22 +7296,22 @@ 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
|
+
X.call(this), this.type = "RingGeometry", this.parameters = {
|
|
7315
7315
|
innerRadius: t,
|
|
7316
7316
|
outerRadius: e,
|
|
7317
7317
|
thetaSegments: i,
|
|
@@ -7329,19 +7329,19 @@ 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) {
|
|
7344
|
-
|
|
7344
|
+
X.call(this), this.type = "LatheGeometry", this.parameters = { points: t, segments: e, phiStart: i, phiLength: n }, this.fromBufferGeometry(new Ws(t, e, i, n)), this.mergeVertices();
|
|
7345
7345
|
}
|
|
7346
7346
|
function Ws(t, e, i, n) {
|
|
7347
7347
|
Ft.call(this), this.type = "LatheBufferGeometry", this.parameters = { points: t, segments: e, phiStart: i, phiLength: n }, e = Math.floor(e) || 12, i = i || 0, n = n || 2 * Math.PI, n = fi.clamp(n, 0, 2 * Math.PI);
|
|
@@ -7359,7 +7359,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
7359
7359
|
s.x = n[P + 0], s.y = n[P + 1], s.z = n[P + 2], l.x = n[i + P + 0], l.y = n[i + P + 1], l.z = n[i + P + 2], f.addVectors(s, l).normalize(), n[P + 0] = n[i + P + 0] = f.x, n[P + 1] = n[i + P + 1] = f.y, n[P + 2] = n[i + P + 2] = f.z;
|
|
7360
7360
|
}
|
|
7361
7361
|
function Cs(t, e) {
|
|
7362
|
-
|
|
7362
|
+
X.call(this), this.type = "ShapeGeometry", typeof e == "object" && (console.warn("THREE.ShapeGeometry: Options parameter has been removed."), e = e.curveSegments), this.parameters = { shapes: t, curveSegments: e }, this.fromBufferGeometry(new js(t, e)), this.mergeVertices();
|
|
7363
7363
|
}
|
|
7364
7364
|
function js(t, e) {
|
|
7365
7365
|
function i(C) {
|
|
@@ -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
|
}
|
|
@@ -7402,7 +7402,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
7402
7402
|
e = Math.cos(fi.DEG2RAD * (e !== void 0 ? e : 1));
|
|
7403
7403
|
var n = [0, 0], s = {}, l = ["a", "b", "c"];
|
|
7404
7404
|
if (t.isBufferGeometry) {
|
|
7405
|
-
var f = new
|
|
7405
|
+
var f = new X();
|
|
7406
7406
|
f.fromBufferGeometry(t);
|
|
7407
7407
|
} else
|
|
7408
7408
|
f = t.clone();
|
|
@@ -7417,7 +7417,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
7417
7417
|
this.addAttribute("position", new Et(i, 3));
|
|
7418
7418
|
}
|
|
7419
7419
|
function Ps(t, e, i, n, s, l, f, p) {
|
|
7420
|
-
|
|
7420
|
+
X.call(this), this.type = "CylinderGeometry", this.parameters = {
|
|
7421
7421
|
radiusTop: t,
|
|
7422
7422
|
radiusBottom: e,
|
|
7423
7423
|
height: i,
|
|
@@ -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
|
}
|
|
@@ -7494,7 +7494,7 @@ const F_ = { class: "bim_background_plate" }, U_ = { class: "content" }, G_ = /*
|
|
|
7494
7494
|
};
|
|
7495
7495
|
}
|
|
7496
7496
|
function yo(t, e, i, n) {
|
|
7497
|
-
|
|
7497
|
+
X.call(this), this.type = "CircleGeometry", this.parameters = { radius: t, segments: e, thetaStart: i, thetaLength: n }, this.fromBufferGeometry(new hs(t, e, i, n)), this.mergeVertices();
|
|
7498
7498
|
}
|
|
7499
7499
|
function hs(t, e, i, n) {
|
|
7500
7500
|
Ft.call(this), this.type = "CircleBufferGeometry", this.parameters = { radius: t, segments: e, thetaStart: i, thetaLength: n }, t = t || 1, e = e !== void 0 ? Math.max(3, e) : 8, i = i !== void 0 ? i : 0, n = n !== void 0 ? n : 2 * Math.PI;
|
|
@@ -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();
|
|
@@ -13454,8 +13454,8 @@ void main() {
|
|
|
13454
13454
|
}
|
|
13455
13455
|
});
|
|
13456
13456
|
var Qu = 0;
|
|
13457
|
-
|
|
13458
|
-
constructor:
|
|
13457
|
+
X.prototype = Object.assign(Object.create(a.prototype), {
|
|
13458
|
+
constructor: X,
|
|
13459
13459
|
isGeometry: !0,
|
|
13460
13460
|
applyMatrix: function(t) {
|
|
13461
13461
|
for (var e = new m().getNormalMatrix(t), i = 0, n = this.vertices.length; i < n; i++)
|
|
@@ -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
|
}
|
|
@@ -13616,7 +13616,7 @@ void main() {
|
|
|
13616
13616
|
for (t = n.vertexNormals.length; s < t; s++)
|
|
13617
13617
|
n.__originalVertexNormals[s] ? n.__originalVertexNormals[s].copy(n.vertexNormals[s]) : n.__originalVertexNormals[s] = n.vertexNormals[s].clone();
|
|
13618
13618
|
}
|
|
13619
|
-
var l = new
|
|
13619
|
+
var l = new X();
|
|
13620
13620
|
for (l.faces = this.faces, s = 0, t = this.morphTargets.length; s < t; s++) {
|
|
13621
13621
|
if (!this.morphNormals[s]) {
|
|
13622
13622
|
this.morphNormals[s] = {}, this.morphNormals[s].faceNormals = [], this.morphNormals[s].vertexNormals = [], n = this.morphNormals[s].faceNormals;
|
|
@@ -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,13 +13749,13 @@ 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
|
},
|
|
13757
13757
|
clone: function() {
|
|
13758
|
-
return new
|
|
13758
|
+
return new X().copy(this);
|
|
13759
13759
|
},
|
|
13760
13760
|
copy: function(t) {
|
|
13761
13761
|
var e, i, n;
|
|
@@ -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
|
}
|
|
@@ -14245,7 +14245,7 @@ void main() {
|
|
|
14245
14245
|
dispose: function() {
|
|
14246
14246
|
this.dispatchEvent({ type: "dispose" });
|
|
14247
14247
|
}
|
|
14248
|
-
}), Ot.prototype = Object.create(
|
|
14248
|
+
}), Ot.prototype = Object.create(X.prototype), Ot.prototype.constructor = Ot, Bt.prototype = Object.create(Ft.prototype), Bt.prototype.constructor = Bt, ke.prototype = Object.create(X.prototype), ke.prototype.constructor = ke, ce.prototype = Object.create(Ft.prototype), ce.prototype.constructor = ce;
|
|
14249
14249
|
var cu = 0;
|
|
14250
14250
|
Yt.prototype = Object.assign(Object.create(a.prototype), {
|
|
14251
14251
|
constructor: Yt,
|
|
@@ -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++)
|
|
@@ -15163,7 +15163,7 @@ void main() {
|
|
|
15163
15163
|
var t = this.image;
|
|
15164
15164
|
t.readyState >= t.HAVE_CURRENT_DATA && (this.needsUpdate = !0);
|
|
15165
15165
|
}
|
|
15166
|
-
}), Gs.prototype = Object.create(_.prototype), Gs.prototype.constructor = Gs, Gs.prototype.isCompressedTexture = !0, Ba.prototype = Object.create(_.prototype), Ba.prototype.constructor = Ba, Ba.prototype.isCanvasTexture = !0, Na.prototype = Object.create(_.prototype), Na.prototype.constructor = Na, Na.prototype.isDepthTexture = !0, Ko.prototype = Object.create(Ft.prototype), Ko.prototype.constructor = Ko, Fa.prototype = Object.create(
|
|
15166
|
+
}), Gs.prototype = Object.create(_.prototype), Gs.prototype.constructor = Gs, Gs.prototype.isCompressedTexture = !0, Ba.prototype = Object.create(_.prototype), Ba.prototype.constructor = Ba, Ba.prototype.isCanvasTexture = !0, Na.prototype = Object.create(_.prototype), Na.prototype.constructor = Na, Na.prototype.isDepthTexture = !0, Ko.prototype = Object.create(Ft.prototype), Ko.prototype.constructor = Ko, Fa.prototype = Object.create(X.prototype), Fa.prototype.constructor = Fa, Qo.prototype = Object.create(Ft.prototype), Qo.prototype.constructor = Qo, Wi.prototype = Object.create(X.prototype), Wi.prototype.constructor = Wi, yi.prototype = Object.create(Ft.prototype), yi.prototype.constructor = yi, Ua.prototype = Object.create(X.prototype), Ua.prototype.constructor = Ua, ta.prototype = Object.create(yi.prototype), ta.prototype.constructor = ta, Ga.prototype = Object.create(X.prototype), Ga.prototype.constructor = Ga, fo.prototype = Object.create(yi.prototype), fo.prototype.constructor = fo, Ha.prototype = Object.create(X.prototype), Ha.prototype.constructor = Ha, ea.prototype = Object.create(yi.prototype), ea.prototype.constructor = ea, ia.prototype = Object.create(X.prototype), ia.prototype.constructor = ia, na.prototype = Object.create(yi.prototype), na.prototype.constructor = na, fn.prototype = Object.create(X.prototype), fn.prototype.constructor = fn, Hs.prototype = Object.create(Ft.prototype), Hs.prototype.constructor = Hs, Vr.prototype = Object.create(X.prototype), Vr.prototype.constructor = Vr, po.prototype = Object.create(Ft.prototype), po.prototype.constructor = po, mo.prototype = Object.create(X.prototype), mo.prototype.constructor = mo, Nn.prototype = Object.create(Ft.prototype), Nn.prototype.constructor = Nn;
|
|
15167
15167
|
var du = {
|
|
15168
15168
|
triangulate: function(t, e, i) {
|
|
15169
15169
|
i = i || 2;
|
|
@@ -15210,8 +15210,8 @@ void main() {
|
|
|
15210
15210
|
return s;
|
|
15211
15211
|
}
|
|
15212
15212
|
};
|
|
15213
|
-
As.prototype = Object.create(
|
|
15214
|
-
var t =
|
|
15213
|
+
As.prototype = Object.create(X.prototype), As.prototype.constructor = As, As.prototype.toJSON = function() {
|
|
15214
|
+
var t = X.prototype.toJSON.call(this);
|
|
15215
15215
|
return nu(this.parameters.shapes, this.parameters.options, t);
|
|
15216
15216
|
}, ls.prototype = Object.create(Ft.prototype), ls.prototype.constructor = ls, ls.prototype.toJSON = function() {
|
|
15217
15217
|
var t = Ft.prototype.toJSON.call(this);
|
|
@@ -15235,13 +15235,13 @@ void main() {
|
|
|
15235
15235
|
return e = e[3 * l + 2], 0.01 > Math.abs(f - v) ? [new o(t, 1 - i), new o(p, 1 - n), new o(w, 1 - s), new o(P, 1 - e)] : [new o(f, 1 - i), new o(v, 1 - n), new o(C, 1 - s), new o(B, 1 - e)];
|
|
15236
15236
|
}
|
|
15237
15237
|
};
|
|
15238
|
-
Wa.prototype = Object.create(
|
|
15239
|
-
var t =
|
|
15238
|
+
Wa.prototype = Object.create(X.prototype), Wa.prototype.constructor = Wa, vo.prototype = Object.create(ls.prototype), vo.prototype.constructor = vo, Vs.prototype = Object.create(X.prototype), Vs.prototype.constructor = Vs, Er.prototype = Object.create(Ft.prototype), Er.prototype.constructor = Er, ja.prototype = Object.create(X.prototype), ja.prototype.constructor = ja, _o.prototype = Object.create(Ft.prototype), _o.prototype.constructor = _o, oa.prototype = Object.create(X.prototype), oa.prototype.constructor = oa, Ws.prototype = Object.create(Ft.prototype), Ws.prototype.constructor = Ws, Cs.prototype = Object.create(X.prototype), Cs.prototype.constructor = Cs, Cs.prototype.toJSON = function() {
|
|
15239
|
+
var t = X.prototype.toJSON.call(this);
|
|
15240
15240
|
return ru(this.parameters.shapes, t);
|
|
15241
15241
|
}, js.prototype = Object.create(Ft.prototype), js.prototype.constructor = js, js.prototype.toJSON = function() {
|
|
15242
15242
|
var t = Ft.prototype.toJSON.call(this);
|
|
15243
15243
|
return ru(this.parameters.shapes, t);
|
|
15244
|
-
}, Xs.prototype = Object.create(Ft.prototype), Xs.prototype.constructor = Xs, Ps.prototype = Object.create(
|
|
15244
|
+
}, Xs.prototype = Object.create(Ft.prototype), Xs.prototype.constructor = Xs, Ps.prototype = Object.create(X.prototype), Ps.prototype.constructor = Ps, Ls.prototype = Object.create(Ft.prototype), Ls.prototype.constructor = Ls, aa.prototype = Object.create(Ps.prototype), aa.prototype.constructor = aa, Fn.prototype = Object.create(Ls.prototype), Fn.prototype.constructor = Fn, yo.prototype = Object.create(X.prototype), yo.prototype.constructor = yo, hs.prototype = Object.create(Ft.prototype), hs.prototype.constructor = hs;
|
|
15245
15245
|
var dn = Object.freeze({
|
|
15246
15246
|
WireframeGeometry: Ko,
|
|
15247
15247
|
ParametricGeometry: Fa,
|
|
@@ -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) {
|
|
@@ -16984,7 +16984,7 @@ void main() {
|
|
|
16984
16984
|
parse: function() {
|
|
16985
16985
|
return function(t, e) {
|
|
16986
16986
|
t.data !== void 0 && (t = t.data), t.scale = t.scale !== void 0 ? 1 / t.scale : 1;
|
|
16987
|
-
var i = new
|
|
16987
|
+
var i = new X(), n = t, s, l, f, p = n.faces, v = n.vertices, w = n.normals, C = n.colors, P = n.scale, B = 0;
|
|
16988
16988
|
if (n.uvs !== void 0) {
|
|
16989
16989
|
for (s = 0; s < n.uvs.length; s++)
|
|
16990
16990
|
n.uvs[s].length && B++;
|
|
@@ -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(
|
|
@@ -19014,7 +19014,7 @@ void main() {
|
|
|
19014
19014
|
console.warn(
|
|
19015
19015
|
"THREE.CurvePath: .createGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead."
|
|
19016
19016
|
);
|
|
19017
|
-
for (var e = new
|
|
19017
|
+
for (var e = new X(), i = 0, n = t.length; i < n; i++) {
|
|
19018
19018
|
var s = t[i];
|
|
19019
19019
|
e.vertices.push(new u(s.x, s.y, s.z || 0));
|
|
19020
19020
|
}
|
|
@@ -19363,7 +19363,7 @@ void main() {
|
|
|
19363
19363
|
"THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength()."
|
|
19364
19364
|
), this.manhattanLength();
|
|
19365
19365
|
}
|
|
19366
|
-
}), Object.assign(
|
|
19366
|
+
}), Object.assign(X.prototype, {
|
|
19367
19367
|
computeTangents: function() {
|
|
19368
19368
|
console.error("THREE.Geometry: .computeTangents() has been removed.");
|
|
19369
19369
|
},
|
|
@@ -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 =
|
|
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 = X, 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,7 +20333,6 @@ 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],
|
|
@@ -20344,13 +20343,18 @@ class d1 {
|
|
|
20344
20343
|
if (typeof a != "object") {
|
|
20345
20344
|
let b = this.query(a);
|
|
20346
20345
|
b || _("缺少树结构");
|
|
20347
|
-
let { id: U, bimModelExcavationDetails: N, bimModel:
|
|
20348
|
-
y = U, S =
|
|
20346
|
+
let { id: U, bimModelExcavationDetails: N, bimModel: X } = b;
|
|
20347
|
+
y = U, S = X.modelType, A = X.tender, I = X.releasedDistance, k = X.modelName, D = X.isDynamicReleased, F = {
|
|
20349
20348
|
bimModelExcavationDetails: N
|
|
20350
|
-
}, E = b.url, L =
|
|
20349
|
+
}, E = b.url, L = X.modelColor;
|
|
20351
20350
|
} else
|
|
20352
20351
|
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
|
-
let T = {
|
|
20352
|
+
let T = {
|
|
20353
|
+
enabled: !0,
|
|
20354
|
+
precise: !1,
|
|
20355
|
+
czm: !1,
|
|
20356
|
+
maxCanvasSize: 1e4
|
|
20357
|
+
}, M = { enabled: !0, precise: !1, czm: !1 };
|
|
20354
20358
|
c && (c.color && (L = c.color), c.clip && (T.area = c.clip.handleDataList), c.flat && (M.area = c.flat.handleDataList));
|
|
20355
20359
|
let R = window.map.getLayer(a, "modelId");
|
|
20356
20360
|
if (R)
|
|
@@ -20392,51 +20396,31 @@ class d1 {
|
|
|
20392
20396
|
style: N,
|
|
20393
20397
|
clip: T,
|
|
20394
20398
|
flat: M,
|
|
20395
|
-
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版本
|
|
20399
|
+
maximumScreenSpaceError: 16
|
|
20403
20400
|
// customShader: new Cesium.CustomShader({
|
|
20404
20401
|
// lightingModel: Cesium.LightingModel.UNLIT,
|
|
20405
20402
|
// }),
|
|
20406
|
-
|
|
20407
|
-
|
|
20408
|
-
|
|
20409
|
-
|
|
20410
|
-
|
|
20411
|
-
// material.diffuse = vec3(0.0, 0.0, 1.0);
|
|
20412
|
-
// material.diffuse.g = -fsInput.attributes.positionEC.z / 1.0e4;
|
|
20413
|
-
// } `,
|
|
20414
|
-
// }),
|
|
20415
|
-
}), this.tilesetLayer.bindPopup((j) => {
|
|
20416
|
-
if (j.graphic) {
|
|
20417
|
-
const J = j.graphic.attr;
|
|
20418
|
-
let $ = null, ct = null;
|
|
20419
|
-
return JSON.stringify(J) !== "{}" ? (J.name && ($ = J.name.lastIndexOf("@")), $ && $ > -1 && (ct = J.name.slice(0, $)), J.name ? ` <span>${ct || J.name}</span> ` : ` <span>${k}</span> `) : ` <span>${k}</span> `;
|
|
20403
|
+
}), this.tilesetLayer.bindPopup((X) => {
|
|
20404
|
+
if (X.graphic) {
|
|
20405
|
+
const J = X.graphic.attr;
|
|
20406
|
+
let K = null, ct = null;
|
|
20407
|
+
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
20408
|
} else
|
|
20421
20409
|
return ` <span>${k}</span> `;
|
|
20422
|
-
}), this.tilesetLayer.readyPromise.then((
|
|
20423
|
-
m(
|
|
20424
|
-
|
|
20425
|
-
j.clip.options.area.forEach(($) => {
|
|
20426
|
-
window.bimClip.activeObj[J][$.id].id == null && (window.bimClip.activeObj[J][$.id].id = $.id);
|
|
20427
|
-
});
|
|
20428
|
-
}).catch((j) => {
|
|
20410
|
+
}), this.tilesetLayer.readyPromise.then((X) => {
|
|
20411
|
+
m(X);
|
|
20412
|
+
}).catch((X) => {
|
|
20429
20413
|
m();
|
|
20430
|
-
}), this.tilesetLayer.on("click", (
|
|
20431
|
-
|
|
20414
|
+
}), this.tilesetLayer.on("click", (X) => {
|
|
20415
|
+
X.layer.style == null && map.bimMapEdit == "0" && X.layer.openHighlight(
|
|
20432
20416
|
{
|
|
20433
20417
|
color: "rgba(255,0,0,1)"
|
|
20434
20418
|
},
|
|
20435
20419
|
!0
|
|
20436
20420
|
);
|
|
20437
|
-
}), o && Object.keys(o).forEach((
|
|
20438
|
-
this.tilesetLayer.on(u.get(
|
|
20439
|
-
o[
|
|
20421
|
+
}), o && Object.keys(o).forEach((X) => {
|
|
20422
|
+
this.tilesetLayer.on(u.get(X), (J) => {
|
|
20423
|
+
o[X](J);
|
|
20440
20424
|
});
|
|
20441
20425
|
}), S == 0 && this.bimObliquePhotographyId.push(y), d ? window.mapClone && window.mapClone.mapEx.addLayer(this.tilesetLayer) : window.map.addLayer(this.tilesetLayer);
|
|
20442
20426
|
}).catch((U) => {
|
|
@@ -20714,17 +20698,17 @@ var Bu = { exports: {} };
|
|
|
20714
20698
|
Bu.exports;
|
|
20715
20699
|
(function(x, a) {
|
|
20716
20700
|
(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,
|
|
20718
|
-
["ary",
|
|
20701
|
+
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, X = 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 = [
|
|
20702
|
+
["ary", X],
|
|
20719
20703
|
["bind", L],
|
|
20720
20704
|
["bindKey", T],
|
|
20721
20705
|
["curry", R],
|
|
20722
20706
|
["curryRight", b],
|
|
20723
|
-
["flip",
|
|
20707
|
+
["flip", K],
|
|
20724
20708
|
["partial", U],
|
|
20725
20709
|
["partialRight", N],
|
|
20726
20710
|
["rearg", J]
|
|
20727
|
-
], Yt = "[object Arguments]", $e = "[object Array]", Li = "[object AsyncFunction]", Oe = "[object Boolean]", Ge = "[object Date]", pi = "[object DOMException]", Ri = "[object Error]", cn = "[object Function]", Ji = "[object GeneratorFunction]", W = "[object Map]", Jt = "[object Number]", Wt = "[object Null]", pt = "[object Object]", dt = "[object Promise]", Dt = "[object Proxy]", ie = "[object RegExp]", Kt = "[object Set]", z = "[object String]", Q = "[object Symbol]", ot = "[object Undefined]", nt = "[object WeakMap]", vt = "[object WeakSet]", Gt = "[object ArrayBuffer]", Xt = "[object DataView]", jt = "[object Float32Array]", Ne = "[object Float64Array]", Re = "[object Int8Array]", ge = "[object Int16Array]", we = "[object Int32Array]", vi = "[object Uint8Array]", Mi = "[object Uint8ClampedArray]", ni = "[object Uint16Array]", Si = "[object Uint32Array]", Gr = /\b__p \+= '';/g, er = /\b(__p \+=) '' \+/g, rn = /(__e\(.*?\)|\b__t\)) \+\n'';/g, bs = /&(?:amp|lt|gt|quot|#39);/g, Oi = /[&<>"']/g, Us = RegExp(bs.source), is = RegExp(Oi.source), bl = /<%-([\s\S]+?)%>/g, xn = /<%([\s\S]+?)%>/g, Xo = /<%=([\s\S]+?)%>/g, ho = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, dr = /^\w*$/, qo = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Da = /[\\^$.*+?()[\]{}|]/g, Al = RegExp(Da.source), ns = /^\s+/, ch = /\s/, Yo = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, za = /\{\n\/\* \[wrapped with (.+)\] \*/, rs = /,? & /, ka = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Zo = /[()=,{}\[\]\/\s]/, Jo = /\\(\\)?/g, ss = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Cl = /\w*$/, fh = /^[-+]0x[0-9a-f]+$/i, ph = /^0b[01]+$/i, uo = /^\[object .+?Constructor\]$/, co = /^0o[0-7]+$/i, Pl = /^(?:0|[1-9]\d*)$/, Ll = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Hr = /($^)/, V = /['\n\r\u2028\u2029\\]/g, tt = "\\ud800-\\udfff", lt = "\\u0300-\\u036f", at = "\\ufe20-\\ufe2f",
|
|
20711
|
+
], Yt = "[object Arguments]", $e = "[object Array]", Li = "[object AsyncFunction]", Oe = "[object Boolean]", Ge = "[object Date]", pi = "[object DOMException]", Ri = "[object Error]", cn = "[object Function]", Ji = "[object GeneratorFunction]", W = "[object Map]", Jt = "[object Number]", Wt = "[object Null]", pt = "[object Object]", dt = "[object Promise]", Dt = "[object Proxy]", ie = "[object RegExp]", Kt = "[object Set]", z = "[object String]", Q = "[object Symbol]", ot = "[object Undefined]", nt = "[object WeakMap]", vt = "[object WeakSet]", Gt = "[object ArrayBuffer]", Xt = "[object DataView]", jt = "[object Float32Array]", Ne = "[object Float64Array]", Re = "[object Int8Array]", ge = "[object Int16Array]", we = "[object Int32Array]", vi = "[object Uint8Array]", Mi = "[object Uint8ClampedArray]", ni = "[object Uint16Array]", Si = "[object Uint32Array]", Gr = /\b__p \+= '';/g, er = /\b(__p \+=) '' \+/g, rn = /(__e\(.*?\)|\b__t\)) \+\n'';/g, bs = /&(?:amp|lt|gt|quot|#39);/g, Oi = /[&<>"']/g, Us = RegExp(bs.source), is = RegExp(Oi.source), bl = /<%-([\s\S]+?)%>/g, xn = /<%([\s\S]+?)%>/g, Xo = /<%=([\s\S]+?)%>/g, ho = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, dr = /^\w*$/, qo = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Da = /[\\^$.*+?()[\]{}|]/g, Al = RegExp(Da.source), ns = /^\s+/, ch = /\s/, Yo = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, za = /\{\n\/\* \[wrapped with (.+)\] \*/, rs = /,? & /, ka = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Zo = /[()=,{}\[\]\/\s]/, Jo = /\\(\\)?/g, ss = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Cl = /\w*$/, fh = /^[-+]0x[0-9a-f]+$/i, ph = /^0b[01]+$/i, uo = /^\[object .+?Constructor\]$/, co = /^0o[0-7]+$/i, Pl = /^(?:0|[1-9]\d*)$/, Ll = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Hr = /($^)/, V = /['\n\r\u2028\u2029\\]/g, tt = "\\ud800-\\udfff", lt = "\\u0300-\\u036f", at = "\\ufe20-\\ufe2f", j = "\\u20d0-\\u20ff", St = lt + at + j, ht = "\\u2700-\\u27bf", Rt = "a-z\\xdf-\\xf6\\xf8-\\xff", Ht = "\\xac\\xb1\\xd7\\xf7", kt = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Mt = "\\u2000-\\u206f", he = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", oe = "A-Z\\xc0-\\xd6\\xd8-\\xde", te = "\\ufe0e\\ufe0f", _e = Ht + kt + Mt + he, ue = "['’]", je = "[" + tt + "]", He = "[" + _e + "]", ui = "[" + St + "]", Be = "\\d+", ye = "[" + ht + "]", Fe = "[" + Rt + "]", pe = "[^" + tt + _e + Be + ht + Rt + oe + "]", di = "\\ud83c[\\udffb-\\udfff]", Pe = "(?:" + ui + "|" + di + ")", xe = "[^" + tt + "]", Le = "(?:\\ud83c[\\udde6-\\uddff]){2}", wn = "[\\ud800-\\udbff][\\udc00-\\udfff]", Hn = "[" + oe + "]", Ii = "\\u200d", Di = "(?:" + Fe + "|" + pe + ")", Ui = "(?:" + Hn + "|" + pe + ")", Qi = "(?:" + ue + "(?:d|ll|m|re|s|t|ve))?", tn = "(?:" + ue + "(?:D|LL|M|RE|S|T|VE))?", on = Pe + "?", an = "[" + te + "]?", Fi = "(?:" + Ii + "(?:" + [xe, Le, wn].join("|") + ")" + an + on + ")*", zi = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Vi = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", mi = an + on + Fi, os = "(?:" + [ye, Le, wn].join("|") + ")" + mi, Bn = "(?:" + [xe + ui + "?", ui, Le, wn, je].join("|") + ")", $o = RegExp(ue, "g"), dh = RegExp(ui, "g"), Gs = RegExp(di + "(?=" + di + ")|" + Bn + mi, "g"), Ba = RegExp([
|
|
20728
20712
|
Hn + "?" + Fe + "+" + Qi + "(?=" + [He, Hn, "$"].join("|") + ")",
|
|
20729
20713
|
Ui + "+" + tn + "(?=" + [He, Hn + Di, "$"].join("|") + ")",
|
|
20730
20714
|
Hn + "?" + Di + "+" + Qi,
|
|
@@ -21837,7 +21821,7 @@ Bu.exports;
|
|
|
21837
21821
|
wi.call(r, g) && g != "constructor" && h.push(g);
|
|
21838
21822
|
return h;
|
|
21839
21823
|
}
|
|
21840
|
-
function
|
|
21824
|
+
function $(r) {
|
|
21841
21825
|
if (!vn(r))
|
|
21842
21826
|
return em(r);
|
|
21843
21827
|
var h = kh(r), g = [];
|
|
@@ -22356,7 +22340,7 @@ Bu.exports;
|
|
|
22356
22340
|
for (O = _t ? O : g; ++O < g; ) {
|
|
22357
22341
|
ut = h[O];
|
|
22358
22342
|
var bt = yu(ut), Nt = bt == "wrapper" ? rc(ut) : o;
|
|
22359
|
-
Nt && lc(Nt[0]) && Nt[1] == (
|
|
22343
|
+
Nt && lc(Nt[0]) && Nt[1] == (X | R | U | J) && !Nt[4].length && Nt[9] == 1 ? _t = _t[yu(Nt[0])].apply(_t, Nt[3]) : _t = ut.length == 1 && lc(ut) ? _t[bt]() : _t.thru(ut);
|
|
22360
22344
|
}
|
|
22361
22345
|
return function() {
|
|
22362
22346
|
var se = arguments, le = se[0];
|
|
@@ -22369,7 +22353,7 @@ Bu.exports;
|
|
|
22369
22353
|
});
|
|
22370
22354
|
}
|
|
22371
22355
|
function Zi(r, h, g, O, Y, ut, _t, bt, Nt, se) {
|
|
22372
|
-
var le = h &
|
|
22356
|
+
var le = h & X, de = h & L, ze = h & T, Je = h & (R | b), li = h & K, Ti = ze ? o : Ve(r);
|
|
22373
22357
|
function hi() {
|
|
22374
22358
|
for (var Ci = arguments.length, Bi = Zt(Ci), Zr = Ci; Zr--; )
|
|
22375
22359
|
Bi[Zr] = arguments[Zr];
|
|
@@ -22841,7 +22825,7 @@ Bu.exports;
|
|
|
22841
22825
|
return h;
|
|
22842
22826
|
}
|
|
22843
22827
|
function tm(r, h) {
|
|
22844
|
-
var g = r[1], O = h[1], Y = g | O, ut = Y < (L | T |
|
|
22828
|
+
var g = r[1], O = h[1], Y = g | O, ut = Y < (L | T | X), _t = O == X && g == R || O == X && g == J && r[7].length <= h[8] || O == (X | J) && h[7].length <= h[8] && g == R;
|
|
22845
22829
|
if (!(ut || _t))
|
|
22846
22830
|
return r;
|
|
22847
22831
|
O & L && (r[2] = h[2], Y |= g & L ? 0 : M);
|
|
@@ -22850,7 +22834,7 @@ Bu.exports;
|
|
|
22850
22834
|
var Nt = r[3];
|
|
22851
22835
|
r[3] = Nt ? Oh(Nt, bt, h[4]) : bt, r[4] = Nt ? Ar(r[3], A) : h[4];
|
|
22852
22836
|
}
|
|
22853
|
-
return bt = h[5], bt && (Nt = r[5], r[5] = Nt ? Ih(Nt, bt, h[6]) : bt, r[6] = Nt ? Ar(r[5], A) : h[6]), bt = h[7], bt && (r[7] = bt), O &
|
|
22837
|
+
return bt = h[5], bt && (Nt = r[5], r[5] = Nt ? Ih(Nt, bt, h[6]) : bt, r[6] = Nt ? Ar(r[5], A) : h[6]), bt = h[7], bt && (r[7] = bt), O & X && (r[8] = r[8] == null ? h[8] : Gn(r[8], h[8])), r[9] == null && (r[9] = h[9]), r[0] = h[0], r[1] = Y, r;
|
|
22854
22838
|
}
|
|
22855
22839
|
function em(r) {
|
|
22856
22840
|
var h = [];
|
|
@@ -23391,7 +23375,7 @@ Bu.exports;
|
|
|
23391
23375
|
};
|
|
23392
23376
|
}
|
|
23393
23377
|
function Xf(r, h, g) {
|
|
23394
|
-
return h = g ? o : h, h = r && h == null ? r.length : h, tr(r,
|
|
23378
|
+
return h = g ? o : h, h = r && h == null ? r.length : h, tr(r, X, o, o, o, o, h);
|
|
23395
23379
|
}
|
|
23396
23380
|
function qf(r, h) {
|
|
23397
23381
|
var g;
|
|
@@ -23479,7 +23463,7 @@ Bu.exports;
|
|
|
23479
23463
|
return gs(r, ws(h) || 0, g);
|
|
23480
23464
|
});
|
|
23481
23465
|
function Gg(r) {
|
|
23482
|
-
return tr(r,
|
|
23466
|
+
return tr(r, K);
|
|
23483
23467
|
}
|
|
23484
23468
|
function Eu(r, h) {
|
|
23485
23469
|
if (typeof r != "function" || h != null && typeof h != "function")
|
|
@@ -23836,7 +23820,7 @@ Bu.exports;
|
|
|
23836
23820
|
return Or(r) ? cu(r) : q(r);
|
|
23837
23821
|
}
|
|
23838
23822
|
function Ir(r) {
|
|
23839
|
-
return Or(r) ? cu(r, !0) :
|
|
23823
|
+
return Or(r) ? cu(r, !0) : $(r);
|
|
23840
23824
|
}
|
|
23841
23825
|
function V0(r, h) {
|
|
23842
23826
|
var g = {};
|
|
@@ -24447,9 +24431,9 @@ class m1 {
|
|
|
24447
24431
|
width: b,
|
|
24448
24432
|
materialType: U,
|
|
24449
24433
|
materialOptions: N,
|
|
24450
|
-
clampToGround:
|
|
24434
|
+
clampToGround: X,
|
|
24451
24435
|
distanceDisplayCondition: J,
|
|
24452
|
-
distanceDisplayCondition_near:
|
|
24436
|
+
distanceDisplayCondition_near: K,
|
|
24453
24437
|
distanceDisplayCondition_far: ct,
|
|
24454
24438
|
zIndex: It,
|
|
24455
24439
|
label: et,
|
|
@@ -24484,10 +24468,10 @@ class m1 {
|
|
|
24484
24468
|
type: "polylineC",
|
|
24485
24469
|
styleOptions: {
|
|
24486
24470
|
width: b,
|
|
24487
|
-
clampToGround:
|
|
24471
|
+
clampToGround: X,
|
|
24488
24472
|
distanceDisplayCondition: J,
|
|
24489
24473
|
distanceDisplayCondition_far: ct,
|
|
24490
|
-
distanceDisplayCondition_near:
|
|
24474
|
+
distanceDisplayCondition_near: K,
|
|
24491
24475
|
materialType: U,
|
|
24492
24476
|
materialOptions: N,
|
|
24493
24477
|
classificationType: Ot,
|
|
@@ -24515,12 +24499,12 @@ class m1 {
|
|
|
24515
24499
|
styleOptions: {
|
|
24516
24500
|
fill: yt,
|
|
24517
24501
|
diffHeight: G,
|
|
24518
|
-
clampToGround:
|
|
24502
|
+
clampToGround: X,
|
|
24519
24503
|
materialType: U,
|
|
24520
24504
|
materialOptions: N,
|
|
24521
24505
|
distanceDisplayCondition: J,
|
|
24522
24506
|
distanceDisplayCondition_far: ct,
|
|
24523
|
-
distanceDisplayCondition_near:
|
|
24507
|
+
distanceDisplayCondition_near: K,
|
|
24524
24508
|
outlineStyle: Et,
|
|
24525
24509
|
outline: Pt,
|
|
24526
24510
|
classificationType: Ot,
|
|
@@ -25238,7 +25222,7 @@ class y1 {
|
|
|
25238
25222
|
this.on(a, c);
|
|
25239
25223
|
}
|
|
25240
25224
|
/**
|
|
25241
|
-
*
|
|
25225
|
+
* 添加标绘实例
|
|
25242
25226
|
* @param { String } modelParameter 标绘实例id 或者 标绘参数
|
|
25243
25227
|
*
|
|
25244
25228
|
*/
|
|
@@ -25267,7 +25251,7 @@ class y1 {
|
|
|
25267
25251
|
});
|
|
25268
25252
|
}
|
|
25269
25253
|
/**
|
|
25270
|
-
*
|
|
25254
|
+
* 查询标绘数据的对象
|
|
25271
25255
|
* @param { String } id 矢量id
|
|
25272
25256
|
* @returns { Object || Boolean } 查询出来的树对象 或者 false
|
|
25273
25257
|
*/
|
|
@@ -25713,17 +25697,17 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
25713
25697
|
return L;
|
|
25714
25698
|
}
|
|
25715
25699
|
function m(D, F, E, L, T, M) {
|
|
25716
|
-
var R, b, U = D.file, N = D.compression,
|
|
25700
|
+
var R, b, U = D.file, N = D.compression, X = 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
25701
|
F && !E || (Ft.crc32 = D.crc32, Ft.compressedSize = D.compressedSize, Ft.uncompressedSize = D.uncompressedSize);
|
|
25718
25702
|
var Ot = 0;
|
|
25719
|
-
F && (Ot |= 8),
|
|
25703
|
+
F && (Ot |= 8), X || !yt && !G || (Ot |= 2048);
|
|
25720
25704
|
var Bt = 0, ke = 0;
|
|
25721
25705
|
fe && (Bt |= 16), T === "UNIX" ? (ke = 798, Bt |= function(Yt, $e) {
|
|
25722
25706
|
var Li = Yt;
|
|
25723
25707
|
return Yt || (Li = $e ? 16893 : 33204), (65535 & Li) << 16;
|
|
25724
25708
|
}(U.unixPermissions, fe)) : (ke = 20, Bt |= function(Yt) {
|
|
25725
25709
|
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) +
|
|
25710
|
+
}(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
25711
|
var ce = "";
|
|
25728
25712
|
return ce += `
|
|
25729
25713
|
\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 };
|
|
@@ -25911,11 +25895,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
25911
25895
|
return u && typeof u.on == "function" && typeof u.pause == "function" && typeof u.resume == "function";
|
|
25912
25896
|
} };
|
|
25913
25897
|
}, {}], 15: [function(o, c, d) {
|
|
25914
|
-
function u(U, N,
|
|
25915
|
-
var J,
|
|
25898
|
+
function u(U, N, X) {
|
|
25899
|
+
var J, K = _.getTypeOf(N), ct = _.extend(X || {}, A);
|
|
25916
25900
|
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
|
-
|
|
25901
|
+
var It = K === "string" && ct.binary === !1 && ct.base64 === !1;
|
|
25902
|
+
X && X.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
25903
|
var et = null;
|
|
25920
25904
|
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
25905
|
var yt = new k(U, et, ct);
|
|
@@ -25936,59 +25920,59 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
25936
25920
|
var b = { load: function() {
|
|
25937
25921
|
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
25938
25922
|
}, forEach: function(U) {
|
|
25939
|
-
var N,
|
|
25923
|
+
var N, X, J;
|
|
25940
25924
|
for (N in this.files)
|
|
25941
|
-
J = this.files[N], (
|
|
25925
|
+
J = this.files[N], (X = N.slice(this.root.length, N.length)) && N.slice(0, this.root.length) === this.root && U(X, J);
|
|
25942
25926
|
}, filter: function(U) {
|
|
25943
25927
|
var N = [];
|
|
25944
|
-
return this.forEach(function(
|
|
25945
|
-
U(
|
|
25928
|
+
return this.forEach(function(X, J) {
|
|
25929
|
+
U(X, J) && N.push(J);
|
|
25946
25930
|
}), N;
|
|
25947
|
-
}, file: function(U, N,
|
|
25931
|
+
}, file: function(U, N, X) {
|
|
25948
25932
|
if (arguments.length !== 1)
|
|
25949
|
-
return U = this.root + U, u.call(this, U, N,
|
|
25933
|
+
return U = this.root + U, u.call(this, U, N, X), this;
|
|
25950
25934
|
if (R(U)) {
|
|
25951
25935
|
var J = U;
|
|
25952
25936
|
return this.filter(function(ct, It) {
|
|
25953
25937
|
return !It.dir && J.test(ct);
|
|
25954
25938
|
});
|
|
25955
25939
|
}
|
|
25956
|
-
var
|
|
25957
|
-
return
|
|
25940
|
+
var K = this.files[this.root + U];
|
|
25941
|
+
return K && !K.dir ? K : null;
|
|
25958
25942
|
}, folder: function(U) {
|
|
25959
25943
|
if (!U)
|
|
25960
25944
|
return this;
|
|
25961
25945
|
if (R(U))
|
|
25962
|
-
return this.filter(function(
|
|
25963
|
-
return ct.dir && U.test(
|
|
25946
|
+
return this.filter(function(K, ct) {
|
|
25947
|
+
return ct.dir && U.test(K);
|
|
25964
25948
|
});
|
|
25965
|
-
var N = this.root + U,
|
|
25966
|
-
return J.root =
|
|
25949
|
+
var N = this.root + U, X = M.call(this, N), J = this.clone();
|
|
25950
|
+
return J.root = X.name, J;
|
|
25967
25951
|
}, remove: function(U) {
|
|
25968
25952
|
U = this.root + U;
|
|
25969
25953
|
var N = this.files[U];
|
|
25970
25954
|
if (N || (U.slice(-1) !== "/" && (U += "/"), N = this.files[U]), N && !N.dir)
|
|
25971
25955
|
delete this.files[U];
|
|
25972
25956
|
else
|
|
25973
|
-
for (var
|
|
25957
|
+
for (var X = this.filter(function(K, ct) {
|
|
25974
25958
|
return ct.name.slice(0, U.length) === U;
|
|
25975
|
-
}), J = 0; J <
|
|
25976
|
-
delete this.files[
|
|
25959
|
+
}), J = 0; J < X.length; J++)
|
|
25960
|
+
delete this.files[X[J].name];
|
|
25977
25961
|
return this;
|
|
25978
25962
|
}, generate: function() {
|
|
25979
25963
|
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
25980
25964
|
}, generateInternalStream: function(U) {
|
|
25981
|
-
var N,
|
|
25965
|
+
var N, X = {};
|
|
25982
25966
|
try {
|
|
25983
|
-
if ((
|
|
25967
|
+
if ((X = _.extend(U || {}, { streamFiles: !1, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName: m.utf8encode })).type = X.type.toLowerCase(), X.compression = X.compression.toUpperCase(), X.type === "binarystring" && (X.type = "string"), !X.type)
|
|
25984
25968
|
throw new Error("No output type specified.");
|
|
25985
|
-
_.checkSupport(
|
|
25986
|
-
var J =
|
|
25987
|
-
N = D.generateWorker(this,
|
|
25988
|
-
} catch (
|
|
25989
|
-
(N = new y("error")).error(
|
|
25969
|
+
_.checkSupport(X.type), X.platform !== "darwin" && X.platform !== "freebsd" && X.platform !== "linux" && X.platform !== "sunos" || (X.platform = "UNIX"), X.platform === "win32" && (X.platform = "DOS");
|
|
25970
|
+
var J = X.comment || this.comment || "";
|
|
25971
|
+
N = D.generateWorker(this, X, J);
|
|
25972
|
+
} catch (K) {
|
|
25973
|
+
(N = new y("error")).error(K);
|
|
25990
25974
|
}
|
|
25991
|
-
return new S(N,
|
|
25975
|
+
return new S(N, X.type || "string", X.mimeType);
|
|
25992
25976
|
}, generateAsync: function(U, N) {
|
|
25993
25977
|
return this.generateInternalStream(U).accumulate(N);
|
|
25994
25978
|
}, generateNodeStream: function(U, N) {
|
|
@@ -26231,43 +26215,43 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26231
26215
|
function k(F, E) {
|
|
26232
26216
|
return new A.Promise(function(L, T) {
|
|
26233
26217
|
var M = [], R = F._internalType, b = F._outputType, U = F._mimeType;
|
|
26234
|
-
F.on("data", function(N,
|
|
26235
|
-
M.push(N), E && E(
|
|
26218
|
+
F.on("data", function(N, X) {
|
|
26219
|
+
M.push(N), E && E(X);
|
|
26236
26220
|
}).on("error", function(N) {
|
|
26237
26221
|
M = [], T(N);
|
|
26238
26222
|
}).on("end", function() {
|
|
26239
26223
|
try {
|
|
26240
|
-
var N = function(
|
|
26241
|
-
switch (
|
|
26224
|
+
var N = function(X, J, K) {
|
|
26225
|
+
switch (X) {
|
|
26242
26226
|
case "blob":
|
|
26243
|
-
return u.newBlob(u.transformTo("arraybuffer", J),
|
|
26227
|
+
return u.newBlob(u.transformTo("arraybuffer", J), K);
|
|
26244
26228
|
case "base64":
|
|
26245
26229
|
return y.encode(J);
|
|
26246
26230
|
default:
|
|
26247
|
-
return u.transformTo(
|
|
26231
|
+
return u.transformTo(X, J);
|
|
26248
26232
|
}
|
|
26249
|
-
}(b, function(
|
|
26250
|
-
var
|
|
26251
|
-
for (
|
|
26252
|
-
et += J[
|
|
26253
|
-
switch (
|
|
26233
|
+
}(b, function(X, J) {
|
|
26234
|
+
var K, ct = 0, It = null, et = 0;
|
|
26235
|
+
for (K = 0; K < J.length; K++)
|
|
26236
|
+
et += J[K].length;
|
|
26237
|
+
switch (X) {
|
|
26254
26238
|
case "string":
|
|
26255
26239
|
return J.join("");
|
|
26256
26240
|
case "array":
|
|
26257
26241
|
return Array.prototype.concat.apply([], J);
|
|
26258
26242
|
case "uint8array":
|
|
26259
|
-
for (It = new Uint8Array(et),
|
|
26260
|
-
It.set(J[
|
|
26243
|
+
for (It = new Uint8Array(et), K = 0; K < J.length; K++)
|
|
26244
|
+
It.set(J[K], ct), ct += J[K].length;
|
|
26261
26245
|
return It;
|
|
26262
26246
|
case "nodebuffer":
|
|
26263
26247
|
return Buffer.concat(J);
|
|
26264
26248
|
default:
|
|
26265
|
-
throw new Error("concat : unsupported type '" +
|
|
26249
|
+
throw new Error("concat : unsupported type '" + X + "'");
|
|
26266
26250
|
}
|
|
26267
26251
|
}(R, M), U);
|
|
26268
26252
|
L(N);
|
|
26269
|
-
} catch (
|
|
26270
|
-
T(
|
|
26253
|
+
} catch (X) {
|
|
26254
|
+
T(X);
|
|
26271
26255
|
}
|
|
26272
26256
|
M = [];
|
|
26273
26257
|
}).resume();
|
|
@@ -26522,12 +26506,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26522
26506
|
}, d.prepareContent = function(E, L, T, M, R) {
|
|
26523
26507
|
return y.Promise.resolve(L).then(function(b) {
|
|
26524
26508
|
return u.blob && (b instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(b)) !== -1) && typeof FileReader < "u" ? new y.Promise(function(U, N) {
|
|
26525
|
-
var
|
|
26526
|
-
|
|
26509
|
+
var X = new FileReader();
|
|
26510
|
+
X.onload = function(J) {
|
|
26527
26511
|
U(J.target.result);
|
|
26528
|
-
},
|
|
26512
|
+
}, X.onerror = function(J) {
|
|
26529
26513
|
N(J.target.error);
|
|
26530
|
-
},
|
|
26514
|
+
}, X.readAsArrayBuffer(b);
|
|
26531
26515
|
}) : b;
|
|
26532
26516
|
}).then(function(b) {
|
|
26533
26517
|
var U = d.getTypeOf(b);
|
|
@@ -26780,11 +26764,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26780
26764
|
}
|
|
26781
26765
|
function E(T, M) {
|
|
26782
26766
|
var R = !1;
|
|
26783
|
-
function b(
|
|
26784
|
-
R || (R = !0, _.reject(T,
|
|
26767
|
+
function b(X) {
|
|
26768
|
+
R || (R = !0, _.reject(T, X));
|
|
26785
26769
|
}
|
|
26786
|
-
function U(
|
|
26787
|
-
R || (R = !0, _.resolve(T,
|
|
26770
|
+
function U(X) {
|
|
26771
|
+
R || (R = !0, _.resolve(T, X));
|
|
26788
26772
|
}
|
|
26789
26773
|
var N = L(function() {
|
|
26790
26774
|
M(U, b);
|
|
@@ -26858,10 +26842,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26858
26842
|
var R = T.length, b = !1;
|
|
26859
26843
|
if (!R)
|
|
26860
26844
|
return this.resolve([]);
|
|
26861
|
-
for (var U = new Array(R), N = 0,
|
|
26862
|
-
|
|
26845
|
+
for (var U = new Array(R), N = 0, X = -1, J = new this(m); ++X < R; )
|
|
26846
|
+
K(T[X], X);
|
|
26863
26847
|
return J;
|
|
26864
|
-
function
|
|
26848
|
+
function K(ct, It) {
|
|
26865
26849
|
M.resolve(ct).then(function(et) {
|
|
26866
26850
|
U[It] = et, ++N !== R || b || (b = !0, _.resolve(J, U));
|
|
26867
26851
|
}, function(et) {
|
|
@@ -26876,12 +26860,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26876
26860
|
if (!R)
|
|
26877
26861
|
return this.resolve([]);
|
|
26878
26862
|
for (var U = -1, N = new this(m); ++U < R; )
|
|
26879
|
-
|
|
26863
|
+
X = T[U], M.resolve(X).then(function(J) {
|
|
26880
26864
|
b || (b = !0, _.resolve(N, J));
|
|
26881
26865
|
}, function(J) {
|
|
26882
26866
|
b || (b = !0, _.reject(N, J));
|
|
26883
26867
|
});
|
|
26884
|
-
var
|
|
26868
|
+
var X;
|
|
26885
26869
|
return N;
|
|
26886
26870
|
};
|
|
26887
26871
|
}, { immediate: 36 }], 38: [function(o, c, d) {
|
|
@@ -26951,16 +26935,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26951
26935
|
return T.result;
|
|
26952
26936
|
}
|
|
26953
26937
|
D.prototype.push = function(E, L) {
|
|
26954
|
-
var T, M, R, b, U, N,
|
|
26938
|
+
var T, M, R, b, U, N, X = this.strm, J = this.options.chunkSize, K = this.options.dictionary, ct = !1;
|
|
26955
26939
|
if (this.ended)
|
|
26956
26940
|
return !1;
|
|
26957
|
-
M = L === ~~L ? L : L === !0 ? y.Z_FINISH : y.Z_NO_FLUSH, typeof E == "string" ?
|
|
26941
|
+
M = L === ~~L ? L : L === !0 ? y.Z_FINISH : y.Z_NO_FLUSH, typeof E == "string" ? X.input = _.binstring2buf(E) : k.call(E) === "[object ArrayBuffer]" ? X.input = new Uint8Array(E) : X.input = E, X.next_in = 0, X.avail_in = X.input.length;
|
|
26958
26942
|
do {
|
|
26959
|
-
if (
|
|
26943
|
+
if (X.avail_out === 0 && (X.output = new m.Buf8(J), X.next_out = 0, X.avail_out = J), (T = u.inflate(X, 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
26944
|
return this.onEnd(T), !(this.ended = !0);
|
|
26961
|
-
|
|
26962
|
-
} while ((0 <
|
|
26963
|
-
return T === y.Z_STREAM_END && (M = y.Z_FINISH), M === y.Z_FINISH ? (T = u.inflateEnd(this.strm), this.onEnd(T), this.ended = !0, T === y.Z_OK) : M !== y.Z_SYNC_FLUSH || (this.onEnd(y.Z_OK), !(
|
|
26945
|
+
X.next_out && (X.avail_out !== 0 && T !== y.Z_STREAM_END && (X.avail_in !== 0 || M !== y.Z_FINISH && M !== y.Z_SYNC_FLUSH) || (this.options.to === "string" ? (R = _.utf8border(X.output, X.next_out), b = X.next_out - R, U = _.buf2string(X.output, R), X.next_out = b, X.avail_out = J - b, b && m.arraySet(X.output, X.output, R, b, 0), this.onData(U)) : this.onData(m.shrinkBuf(X.output, X.next_out)))), X.avail_in === 0 && X.avail_out === 0 && (ct = !0);
|
|
26946
|
+
} while ((0 < X.avail_in || X.avail_out === 0) && T !== y.Z_STREAM_END);
|
|
26947
|
+
return T === y.Z_STREAM_END && (M = y.Z_FINISH), M === y.Z_FINISH ? (T = u.inflateEnd(this.strm), this.onEnd(T), this.ended = !0, T === y.Z_OK) : M !== y.Z_SYNC_FLUSH || (this.onEnd(y.Z_OK), !(X.avail_out = 0));
|
|
26964
26948
|
}, D.prototype.onData = function(E) {
|
|
26965
26949
|
this.chunks.push(E);
|
|
26966
26950
|
}, D.prototype.onEnd = function(E) {
|
|
@@ -27088,7 +27072,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27088
27072
|
return -1 ^ m;
|
|
27089
27073
|
};
|
|
27090
27074
|
}, {}], 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,
|
|
27075
|
+
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, X = 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
27076
|
function fe(W, Jt) {
|
|
27093
27077
|
return W.msg = A[Jt], Jt;
|
|
27094
27078
|
}
|
|
@@ -27142,8 +27126,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27142
27126
|
}
|
|
27143
27127
|
if (W.strm.avail_in === 0)
|
|
27144
27128
|
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 +
|
|
27129
|
+
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)
|
|
27130
|
+
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
27131
|
;
|
|
27148
27132
|
} while (W.lookahead < It && W.strm.avail_in !== 0);
|
|
27149
27133
|
}
|
|
@@ -27155,9 +27139,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27155
27139
|
if (W.lookahead === 0)
|
|
27156
27140
|
break;
|
|
27157
27141
|
}
|
|
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 +
|
|
27142
|
+
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)
|
|
27143
|
+
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) {
|
|
27144
|
+
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
27145
|
;
|
|
27162
27146
|
W.strstart++;
|
|
27163
27147
|
} else
|
|
@@ -27167,7 +27151,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27167
27151
|
if (pt && (Bt(W, !1), W.strm.avail_out === 0))
|
|
27168
27152
|
return G;
|
|
27169
27153
|
}
|
|
27170
|
-
return W.insert = W.strstart <
|
|
27154
|
+
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
27155
|
}
|
|
27172
27156
|
function Oe(W, Jt) {
|
|
27173
27157
|
for (var Wt, pt, dt; ; ) {
|
|
@@ -27177,10 +27161,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27177
27161
|
if (W.lookahead === 0)
|
|
27178
27162
|
break;
|
|
27179
27163
|
}
|
|
27180
|
-
if (Wt = 0, W.lookahead >=
|
|
27181
|
-
for (dt = W.strstart + W.lookahead -
|
|
27164
|
+
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) {
|
|
27165
|
+
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
27166
|
;
|
|
27183
|
-
if (W.match_available = 0, W.match_length =
|
|
27167
|
+
if (W.match_available = 0, W.match_length = K - 1, W.strstart++, pt && (Bt(W, !1), W.strm.avail_out === 0))
|
|
27184
27168
|
return G;
|
|
27185
27169
|
} else if (W.match_available) {
|
|
27186
27170
|
if ((pt = _._tr_tally(W, 0, W.window[W.strstart - 1])) && Bt(W, !1), W.strstart++, W.lookahead--, W.strm.avail_out === 0)
|
|
@@ -27188,13 +27172,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27188
27172
|
} else
|
|
27189
27173
|
W.match_available = 1, W.strstart++, W.lookahead--;
|
|
27190
27174
|
}
|
|
27191
|
-
return W.match_available && (pt = _._tr_tally(W, 0, W.window[W.strstart - 1]), W.match_available = 0), W.insert = W.strstart <
|
|
27175
|
+
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
27176
|
}
|
|
27193
27177
|
function Ge(W, Jt, Wt, pt, dt) {
|
|
27194
27178
|
this.good_length = W, this.max_lazy = Jt, this.nice_length = Wt, this.max_chain = pt, this.func = dt;
|
|
27195
27179
|
}
|
|
27196
27180
|
function pi() {
|
|
27197
|
-
this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = M, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new m.Buf16(2 *
|
|
27181
|
+
this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = M, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new m.Buf16(2 * X), this.dyn_dtree = new m.Buf16(2 * (2 * U + 1)), this.bl_tree = new m.Buf16(2 * (2 * N + 1)), Ft(this.dyn_ltree), Ft(this.dyn_dtree), Ft(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new m.Buf16(J + 1), this.heap = new m.Buf16(2 * b + 1), Ft(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new m.Buf16(2 * b + 1), Ft(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
|
|
27198
27182
|
}
|
|
27199
27183
|
function Ri(W) {
|
|
27200
27184
|
var Jt;
|
|
@@ -27203,7 +27187,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27203
27187
|
function cn(W) {
|
|
27204
27188
|
var Jt = Ri(W);
|
|
27205
27189
|
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 =
|
|
27190
|
+
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
27191
|
}(W.state), Jt;
|
|
27208
27192
|
}
|
|
27209
27193
|
function Ji(W, Jt, Wt, pt, dt, Dt) {
|
|
@@ -27214,7 +27198,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27214
27198
|
return fe(W, F);
|
|
27215
27199
|
pt === 8 && (pt = 9);
|
|
27216
27200
|
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 +
|
|
27201
|
+
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
27202
|
}
|
|
27219
27203
|
u = [new Ge(0, 0, 0, 0, function(W, Jt) {
|
|
27220
27204
|
var Wt = 65535;
|
|
@@ -27308,14 +27292,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27308
27292
|
if (z.lookahead === 0)
|
|
27309
27293
|
break;
|
|
27310
27294
|
}
|
|
27311
|
-
if (z.match_length = 0, z.lookahead >=
|
|
27295
|
+
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
27296
|
Gt = z.strstart + ct;
|
|
27313
27297
|
do
|
|
27314
27298
|
;
|
|
27315
27299
|
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
27300
|
z.match_length = ct - (Gt - vt), z.match_length > z.lookahead && (z.match_length = z.lookahead);
|
|
27317
27301
|
}
|
|
27318
|
-
if (z.match_length >=
|
|
27302
|
+
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
27303
|
return G;
|
|
27320
27304
|
}
|
|
27321
27305
|
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 +27317,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27333
27317
|
var Wt, pt, dt, Dt, ie, Kt, z, Q, ot = Jt.length;
|
|
27334
27318
|
if (!W || !W.state || (Dt = (Wt = W.state).wrap) === 2 || Dt === 1 && Wt.status !== et || Wt.lookahead)
|
|
27335
27319
|
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 - (
|
|
27320
|
+
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; ) {
|
|
27321
|
+
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
27322
|
;
|
|
27339
|
-
Wt.strstart = pt, Wt.lookahead =
|
|
27323
|
+
Wt.strstart = pt, Wt.lookahead = K - 1, $e(Wt);
|
|
27340
27324
|
}
|
|
27341
|
-
return Wt.strstart += Wt.lookahead, Wt.block_start = Wt.strstart, Wt.insert = Wt.lookahead, Wt.lookahead = 0, Wt.match_length = Wt.prev_length =
|
|
27325
|
+
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
27326
|
}, d.deflateInfo = "pako deflate (from Nodeca project)";
|
|
27343
27327
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(o, c, d) {
|
|
27344
27328
|
c.exports = function() {
|
|
@@ -27346,66 +27330,66 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27346
27330
|
};
|
|
27347
27331
|
}, {}], 48: [function(o, c, d) {
|
|
27348
27332
|
c.exports = function(u, m) {
|
|
27349
|
-
var _, y, S, A, I, k, D, F, E, L, T, M, R, b, U, N,
|
|
27350
|
-
_ = 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,
|
|
27333
|
+
var _, y, S, A, I, k, D, F, E, L, T, M, R, b, U, N, X, J, K, ct, It, et, yt, G, Pt;
|
|
27334
|
+
_ = 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, X = (1 << _.distbits) - 1;
|
|
27351
27335
|
t:
|
|
27352
27336
|
do {
|
|
27353
27337
|
R < 15 && (M += G[y++] << R, R += 8, M += G[y++] << R, R += 8), J = b[M & N];
|
|
27354
27338
|
e:
|
|
27355
27339
|
for (; ; ) {
|
|
27356
|
-
if (M >>>=
|
|
27340
|
+
if (M >>>= K = J >>> 24, R -= K, (K = J >>> 16 & 255) === 0)
|
|
27357
27341
|
Pt[A++] = 65535 & J;
|
|
27358
27342
|
else {
|
|
27359
|
-
if (!(16 &
|
|
27360
|
-
if (!(64 &
|
|
27361
|
-
J = b[(65535 & J) + (M & (1 <<
|
|
27343
|
+
if (!(16 & K)) {
|
|
27344
|
+
if (!(64 & K)) {
|
|
27345
|
+
J = b[(65535 & J) + (M & (1 << K) - 1)];
|
|
27362
27346
|
continue e;
|
|
27363
27347
|
}
|
|
27364
|
-
if (32 &
|
|
27348
|
+
if (32 & K) {
|
|
27365
27349
|
_.mode = 12;
|
|
27366
27350
|
break t;
|
|
27367
27351
|
}
|
|
27368
27352
|
u.msg = "invalid literal/length code", _.mode = 30;
|
|
27369
27353
|
break t;
|
|
27370
27354
|
}
|
|
27371
|
-
ct = 65535 & J, (
|
|
27355
|
+
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 & X];
|
|
27372
27356
|
i:
|
|
27373
27357
|
for (; ; ) {
|
|
27374
|
-
if (M >>>=
|
|
27375
|
-
if (!(64 &
|
|
27376
|
-
J = U[(65535 & J) + (M & (1 <<
|
|
27358
|
+
if (M >>>= K = J >>> 24, R -= K, !(16 & (K = J >>> 16 & 255))) {
|
|
27359
|
+
if (!(64 & K)) {
|
|
27360
|
+
J = U[(65535 & J) + (M & (1 << K) - 1)];
|
|
27377
27361
|
continue i;
|
|
27378
27362
|
}
|
|
27379
27363
|
u.msg = "invalid distance code", _.mode = 30;
|
|
27380
27364
|
break t;
|
|
27381
27365
|
}
|
|
27382
|
-
if (It = 65535 & J, R < (
|
|
27366
|
+
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
27367
|
u.msg = "invalid distance too far back", _.mode = 30;
|
|
27384
27368
|
break t;
|
|
27385
27369
|
}
|
|
27386
|
-
if (M >>>=
|
|
27387
|
-
if (E < (
|
|
27370
|
+
if (M >>>= K, R -= K, (K = A - I) < It) {
|
|
27371
|
+
if (E < (K = It - K) && _.sane) {
|
|
27388
27372
|
u.msg = "invalid distance too far back", _.mode = 30;
|
|
27389
27373
|
break t;
|
|
27390
27374
|
}
|
|
27391
27375
|
if (yt = T, (et = 0) === L) {
|
|
27392
|
-
if (et += F -
|
|
27393
|
-
for (ct -=
|
|
27376
|
+
if (et += F - K, K < ct) {
|
|
27377
|
+
for (ct -= K; Pt[A++] = T[et++], --K; )
|
|
27394
27378
|
;
|
|
27395
27379
|
et = A - It, yt = Pt;
|
|
27396
27380
|
}
|
|
27397
|
-
} else if (L <
|
|
27398
|
-
if (et += F + L -
|
|
27399
|
-
for (ct -=
|
|
27381
|
+
} else if (L < K) {
|
|
27382
|
+
if (et += F + L - K, (K -= L) < ct) {
|
|
27383
|
+
for (ct -= K; Pt[A++] = T[et++], --K; )
|
|
27400
27384
|
;
|
|
27401
27385
|
if (et = 0, L < ct) {
|
|
27402
|
-
for (ct -=
|
|
27386
|
+
for (ct -= K = L; Pt[A++] = T[et++], --K; )
|
|
27403
27387
|
;
|
|
27404
27388
|
et = A - It, yt = Pt;
|
|
27405
27389
|
}
|
|
27406
27390
|
}
|
|
27407
|
-
} else if (et += L -
|
|
27408
|
-
for (ct -=
|
|
27391
|
+
} else if (et += L - K, K < ct) {
|
|
27392
|
+
for (ct -= K; Pt[A++] = T[et++], --K; )
|
|
27409
27393
|
;
|
|
27410
27394
|
et = A - It, yt = Pt;
|
|
27411
27395
|
}
|
|
@@ -27449,11 +27433,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27449
27433
|
var G, Pt;
|
|
27450
27434
|
return et ? (Pt = new M(), (et.state = Pt).window = null, (G = U(et, yt)) !== k && (et.state = null), G) : D;
|
|
27451
27435
|
}
|
|
27452
|
-
var
|
|
27436
|
+
var X, J, K = !0;
|
|
27453
27437
|
function ct(et) {
|
|
27454
|
-
if (
|
|
27438
|
+
if (K) {
|
|
27455
27439
|
var yt;
|
|
27456
|
-
for (
|
|
27440
|
+
for (X = new u.Buf32(512), J = new u.Buf32(32), yt = 0; yt < 144; )
|
|
27457
27441
|
et.lens[yt++] = 8;
|
|
27458
27442
|
for (; yt < 256; )
|
|
27459
27443
|
et.lens[yt++] = 9;
|
|
@@ -27461,11 +27445,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27461
27445
|
et.lens[yt++] = 7;
|
|
27462
27446
|
for (; yt < 288; )
|
|
27463
27447
|
et.lens[yt++] = 8;
|
|
27464
|
-
for (S(A, et.lens, 0, 288,
|
|
27448
|
+
for (S(A, et.lens, 0, 288, X, 0, et.work, { bits: 9 }), yt = 0; yt < 32; )
|
|
27465
27449
|
et.lens[yt++] = 5;
|
|
27466
|
-
S(I, et.lens, 0, 32, J, 0, et.work, { bits: 5 }),
|
|
27450
|
+
S(I, et.lens, 0, 32, J, 0, et.work, { bits: 5 }), K = !1;
|
|
27467
27451
|
}
|
|
27468
|
-
et.lencode =
|
|
27452
|
+
et.lencode = X, et.lenbits = 9, et.distcode = J, et.distbits = 5;
|
|
27469
27453
|
}
|
|
27470
27454
|
function It(et, yt, G, Pt) {
|
|
27471
27455
|
var Et, Ct = et.state;
|
|
@@ -27895,7 +27879,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27895
27879
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(o, c, d) {
|
|
27896
27880
|
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
27881
|
c.exports = function(A, I, k, D, F, E, L, T) {
|
|
27898
|
-
var M, R, b, U, N,
|
|
27882
|
+
var M, R, b, U, N, X, 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
27883
|
for (et = 0; et <= 15; et++)
|
|
27900
27884
|
ce[et] = 0;
|
|
27901
27885
|
for (yt = 0; yt < D; yt++)
|
|
@@ -27915,10 +27899,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27915
27899
|
Yt[et + 1] = Yt[et] + ce[et];
|
|
27916
27900
|
for (yt = 0; yt < D; yt++)
|
|
27917
27901
|
I[k + yt] !== 0 && (L[Yt[I[k + yt]]++] = yt);
|
|
27918
|
-
if (
|
|
27902
|
+
if (X = 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
27903
|
return 1;
|
|
27920
27904
|
for (; ; ) {
|
|
27921
|
-
for (J = et - fe, ct = L[yt] <
|
|
27905
|
+
for (J = et - fe, ct = L[yt] < X ? (K = 0, L[yt]) : L[yt] > X ? (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
27906
|
;
|
|
27923
27907
|
for (M = 1 << et - 1; Ot & M; )
|
|
27924
27908
|
M >>= 1;
|
|
@@ -27945,7 +27929,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27945
27929
|
for (var Dt = dt.length; 0 <= --Dt; )
|
|
27946
27930
|
dt[Dt] = 0;
|
|
27947
27931
|
}
|
|
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,
|
|
27932
|
+
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, X = [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
27933
|
y(It);
|
|
27950
27934
|
var et = new Array(2 * D);
|
|
27951
27935
|
y(et);
|
|
@@ -28013,7 +27997,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
28013
27997
|
function cn(dt, Dt, ie) {
|
|
28014
27998
|
var Kt, z, Q, ot, nt = 0;
|
|
28015
27999
|
if (dt.last_lit !== 0)
|
|
28016
|
-
for (; Kt = dt.pending_buf[dt.d_buf + 2 * nt] << 8 | dt.pending_buf[dt.d_buf + 2 * nt + 1], z = dt.pending_buf[dt.l_buf + nt], nt++, Kt === 0 ? Yt(dt, z, Dt) : (Yt(dt, (Q = G[z]) + I + 1, Dt), (ot =
|
|
28000
|
+
for (; Kt = dt.pending_buf[dt.d_buf + 2 * nt] << 8 | dt.pending_buf[dt.d_buf + 2 * nt + 1], z = dt.pending_buf[dt.l_buf + nt], nt++, Kt === 0 ? Yt(dt, z, Dt) : (Yt(dt, (Q = G[z]) + I + 1, Dt), (ot = X[Q]) !== 0 && ce(dt, z -= Pt[Q], ot), Yt(dt, Q = Bt(--Kt), ie), (ot = J[Q]) !== 0 && ce(dt, Kt -= re[Q], ot)), nt < dt.last_lit; )
|
|
28017
28001
|
;
|
|
28018
28002
|
Yt(dt, R, Dt);
|
|
28019
28003
|
}
|
|
@@ -28073,7 +28057,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
28073
28057
|
Wt || (function() {
|
|
28074
28058
|
var Dt, ie, Kt, z, Q, ot = new Array(L + 1);
|
|
28075
28059
|
for (z = Kt = 0; z < A - 1; z++)
|
|
28076
|
-
for (Pt[z] = Kt, Dt = 0; Dt < 1 <<
|
|
28060
|
+
for (Pt[z] = Kt, Dt = 0; Dt < 1 << X[z]; Dt++)
|
|
28077
28061
|
G[Kt++] = z;
|
|
28078
28062
|
for (G[Kt - 1] = z, z = Q = 0; z < 16; z++)
|
|
28079
28063
|
for (re[z] = Q, Dt = 0; Dt < 1 << J[z]; Dt++)
|
|
@@ -28093,7 +28077,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
28093
28077
|
It[2 * Dt + 1] = 8, Dt++, ot[8]++;
|
|
28094
28078
|
for (Li(It, k + 1, ot), Dt = 0; Dt < D; Dt++)
|
|
28095
28079
|
et[2 * Dt + 1] = 5, et[2 * Dt] = $e(Dt, 5);
|
|
28096
|
-
Et = new Ft(It,
|
|
28080
|
+
Et = new Ft(It, X, I + 1, k, L), Ct = new Ft(et, J, 0, D, L), fe = new Ft(new Array(0), K, 0, F, M);
|
|
28097
28081
|
}(), 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
28082
|
}, d._tr_stored_block = pt, d._tr_flush_block = function(dt, Dt, ie, Kt) {
|
|
28099
28083
|
var z, Q, ot = 0;
|
|
@@ -28163,8 +28147,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
28163
28147
|
typeof b != "function" && (b = new Function("" + b));
|
|
28164
28148
|
for (var U = new Array(arguments.length - 1), N = 0; N < U.length; N++)
|
|
28165
28149
|
U[N] = arguments[N + 1];
|
|
28166
|
-
var
|
|
28167
|
-
return D[k] =
|
|
28150
|
+
var X = { callback: b, args: U };
|
|
28151
|
+
return D[k] = X, y(k), k++;
|
|
28168
28152
|
}, L.clearImmediate = T;
|
|
28169
28153
|
}
|
|
28170
28154
|
function T(b) {
|
|
@@ -28179,22 +28163,22 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
28179
28163
|
F = !0;
|
|
28180
28164
|
try {
|
|
28181
28165
|
(function(N) {
|
|
28182
|
-
var
|
|
28166
|
+
var X = N.callback, J = N.args;
|
|
28183
28167
|
switch (J.length) {
|
|
28184
28168
|
case 0:
|
|
28185
|
-
|
|
28169
|
+
X();
|
|
28186
28170
|
break;
|
|
28187
28171
|
case 1:
|
|
28188
|
-
|
|
28172
|
+
X(J[0]);
|
|
28189
28173
|
break;
|
|
28190
28174
|
case 2:
|
|
28191
|
-
|
|
28175
|
+
X(J[0], J[1]);
|
|
28192
28176
|
break;
|
|
28193
28177
|
case 3:
|
|
28194
|
-
|
|
28178
|
+
X(J[0], J[1], J[2]);
|
|
28195
28179
|
break;
|
|
28196
28180
|
default:
|
|
28197
|
-
|
|
28181
|
+
X.apply(_, J);
|
|
28198
28182
|
}
|
|
28199
28183
|
})(U);
|
|
28200
28184
|
} finally {
|
|
@@ -28758,16 +28742,16 @@ var ts = {
|
|
|
28758
28742
|
edges: 0.5,
|
|
28759
28743
|
end: 1
|
|
28760
28744
|
}[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,
|
|
28745
|
+
var E = (F || o).length, L = m[E], T, M, R, b, U, N, X, J, K;
|
|
28762
28746
|
if (!L) {
|
|
28763
|
-
if (
|
|
28764
|
-
for (
|
|
28747
|
+
if (K = o.grid === "auto" ? 0 : (o.grid || [1, Ms])[1], !K) {
|
|
28748
|
+
for (X = -Ms; X < (X = F[K++].getBoundingClientRect().left) && K < E; )
|
|
28765
28749
|
;
|
|
28766
|
-
|
|
28750
|
+
K < E && K--;
|
|
28767
28751
|
}
|
|
28768
|
-
for (L = m[E] = [], T = y ? Math.min(
|
|
28769
|
-
R = N %
|
|
28770
|
-
d === "random" && sd(L), L.max =
|
|
28752
|
+
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, X = 0, J = Ms, N = 0; N < E; N++)
|
|
28753
|
+
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 > X && (X = U), U < J && (J = U);
|
|
28754
|
+
d === "random" && sd(L), L.max = X - 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
28755
|
}
|
|
28772
28756
|
return E = (L[k] - L.min) / L.max || 0, qn(L.b + (c ? c(E) : E) * L.v) + L.u;
|
|
28773
28757
|
};
|
|
@@ -28996,8 +28980,8 @@ var ts = {
|
|
|
28996
28980
|
u = 1e3 / (L || 240), m = I.time * 1e3 + u;
|
|
28997
28981
|
},
|
|
28998
28982
|
add: function(L, T, M) {
|
|
28999
|
-
var R = T ? function(b, U, N,
|
|
29000
|
-
L(b, U, N,
|
|
28983
|
+
var R = T ? function(b, U, N, X) {
|
|
28984
|
+
L(b, U, N, X), I.remove(R);
|
|
29001
28985
|
} : L;
|
|
29002
28986
|
return I.remove(L), _[M ? "unshift" : "push"](R), hh(), R;
|
|
29003
28987
|
},
|
|
@@ -29262,18 +29246,18 @@ var Tr = /* @__PURE__ */ function(x) {
|
|
|
29262
29246
|
}, o.staggerFromTo = function(d, u, m, _, y, S, A, I) {
|
|
29263
29247
|
return _.startAt = m, Vh(_).immediateRender = kr(_.immediateRender), this.staggerTo(d, u, _, y, S, A, I);
|
|
29264
29248
|
}, o.render = function(d, u, m) {
|
|
29265
|
-
var _ = this._time, y = this._dirty ? this.totalDuration() : this._tDur, S = this._dur, A = d <= 0 ? 0 : qn(d), I = this._zTime < 0 != d < 0 && (this._initted || !S), k, D, F, E, L, T, M, R, b, U, N,
|
|
29249
|
+
var _ = this._time, y = this._dirty ? this.totalDuration() : this._tDur, S = this._dur, A = d <= 0 ? 0 : qn(d), I = this._zTime < 0 != d < 0 && (this._initted || !S), k, D, F, E, L, T, M, R, b, U, N, X;
|
|
29266
29250
|
if (this !== _n && A > y && d >= 0 && (A = y), A !== this._tTime || m || I) {
|
|
29267
29251
|
if (_ !== this._time && S && (A += this._time - _, d += this._time - _), k = A, b = this._start, R = this._ts, T = !R, I && (S || (_ = this._zTime), (d || !u) && (this._zTime = d)), this._repeat) {
|
|
29268
29252
|
if (N = this._yoyo, L = S + this._rDelay, this._repeat < -1 && d < 0)
|
|
29269
29253
|
return this.totalTime(L * 100 + d, u, m);
|
|
29270
|
-
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,
|
|
29271
|
-
var J = N && U & 1,
|
|
29272
|
-
if (E < U && (J = !J), _ = J ? 0 : A % S ? S : A, this._lock = 1, this.render(_ || (
|
|
29254
|
+
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, X = 1), E !== U && !this._lock) {
|
|
29255
|
+
var J = N && U & 1, K = J === (N && E & 1);
|
|
29256
|
+
if (E < U && (J = !J), _ = J ? 0 : A % S ? S : A, this._lock = 1, this.render(_ || (X ? 0 : qn(E * L)), u, !S)._lock = 0, this._tTime = A, !u && this.parent && Qr(this, "onRepeat"), this.vars.repeatRefresh && !X && (this.invalidate()._lock = 1), _ && _ !== this._time || T !== !this._ts || this.vars.onRepeat && !this.parent && !this._act)
|
|
29273
29257
|
return this;
|
|
29274
|
-
if (S = this._dur, y = this._tDur,
|
|
29258
|
+
if (S = this._dur, y = this._tDur, K && (this._lock = 2, _ = J ? S : -1e-4, this.render(_, !0), this.vars.repeatRefresh && !X && this.invalidate()), this._lock = 0, !this._ts && !T)
|
|
29275
29259
|
return this;
|
|
29276
|
-
vd(this,
|
|
29260
|
+
vd(this, X);
|
|
29277
29261
|
}
|
|
29278
29262
|
}
|
|
29279
29263
|
if (this._hasPause && !this._forcing && this._lock < 2 && (M = cy(this, qn(_), qn(k)), M && (A -= k - (k = M._start))), this._tTime = A, this._time = k, this._act = !R, this._initted || (this._onUpdate = this.vars.onUpdate, this._initted = 1, this._zTime = d, _ = 0), !_ && k && !u && !E && (Qr(this, "onStart"), this._tTime !== A))
|
|
@@ -29464,7 +29448,7 @@ var Ay = function(a, o, c, d, u, m, _) {
|
|
|
29464
29448
|
S[_._props[A]] = y;
|
|
29465
29449
|
return _;
|
|
29466
29450
|
}, 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,
|
|
29451
|
+
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, X, J, K, ct, It, et, yt, G, Pt, Et, Ct;
|
|
29468
29452
|
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
29453
|
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
29454
|
if (Ra(a._startAt = kn.set(L, Es({
|
|
@@ -29484,7 +29468,7 @@ var Ay = function(a, o, c, d, u, m, _) {
|
|
|
29484
29468
|
return;
|
|
29485
29469
|
}
|
|
29486
29470
|
} else if (A && F && !E) {
|
|
29487
|
-
if (o && (_ = !1),
|
|
29471
|
+
if (o && (_ = !1), X = Es({
|
|
29488
29472
|
overwrite: !1,
|
|
29489
29473
|
data: "isFromStart",
|
|
29490
29474
|
//we tag the tween with as "isFromStart" so that if [inside a plugin] we need to only do something at the very END of a tween, we have a way of identifying this tween as merely the one that's setting the beginning values for a "from()" tween. For example, clearProps in CSSPlugin should only get applied at the very END of a tween and without this tag, from(...{height:100, clearProps:"height", delay:1}) would wipe the height at the beginning of the tween and after 1 second, it'd kick back in.
|
|
@@ -29494,18 +29478,18 @@ var Ay = function(a, o, c, d, u, m, _) {
|
|
|
29494
29478
|
stagger: 0,
|
|
29495
29479
|
parent: T
|
|
29496
29480
|
//ensures that nested tweens that had a stagger are handled properly, like gsap.from(".class", {y: gsap.utils.wrap([-100,100]), stagger: 0.5})
|
|
29497
|
-
}, U), Et && (
|
|
29481
|
+
}, U), Et && (X[et.prop] = Et), Ra(a._startAt = kn.set(L, X)), a._startAt._dp = 0, a._startAt._sat = a, o < 0 && (fr ? a._startAt.revert(Iu) : a._startAt.render(-1, !0)), a._zTime = o, !_)
|
|
29498
29482
|
x(a._startAt, nn, nn);
|
|
29499
29483
|
else if (!o)
|
|
29500
29484
|
return;
|
|
29501
29485
|
}
|
|
29502
29486
|
for (a._pt = a._ptCache = 0, y = F && kr(y) || y && !F, N = 0; N < L.length; N++) {
|
|
29503
|
-
if (
|
|
29487
|
+
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
29488
|
G[fe] = J;
|
|
29505
29489
|
}), yt.priority && (ct = 1)), !et || Et)
|
|
29506
|
-
for (
|
|
29507
|
-
$r[
|
|
29508
|
-
a._op && a._op[N] && a.kill(
|
|
29490
|
+
for (X in U)
|
|
29491
|
+
$r[X] && (yt = xd(X, U, a, Pt, K, M)) ? yt.priority && (ct = 1) : G[X] = J = pf.call(a, K, X, "get", U[X], Pt, M, 0, d.stringFilter);
|
|
29492
|
+
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
29493
|
}
|
|
29510
29494
|
ct && bd(a), a._onInit && a._onInit(a);
|
|
29511
29495
|
}
|
|
@@ -29561,18 +29545,18 @@ var kn = /* @__PURE__ */ function(x) {
|
|
|
29561
29545
|
function a(c, d, u, m) {
|
|
29562
29546
|
var _;
|
|
29563
29547
|
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,
|
|
29548
|
+
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, X, J, K, ct, It;
|
|
29565
29549
|
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
29550
|
if (d = _.vars, b = _.timeline = new Tr({
|
|
29567
29551
|
data: "nested",
|
|
29568
29552
|
defaults: E || {},
|
|
29569
29553
|
targets: M && M.data === "nested" ? M.vars.targets : R
|
|
29570
29554
|
}), b.kill(), b.parent = b._dp = Ho(_), b._start = 0, k || Ou(S) || Ou(A)) {
|
|
29571
|
-
if (
|
|
29555
|
+
if (X = R.length, ct = k && od(k), lo(k))
|
|
29572
29556
|
for (J in k)
|
|
29573
29557
|
~wd.indexOf(J) && (It || (It = {}), It[J] = k[J]);
|
|
29574
|
-
for (U = 0; U <
|
|
29575
|
-
N = Uu(d, Td), N.stagger = 0, T && (N.yoyoEase = T), It && Ml(N, It),
|
|
29558
|
+
for (U = 0; U < X; U++)
|
|
29559
|
+
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 && X === 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
29560
|
b.duration() ? S = A = 0 : _.timeline = 0;
|
|
29577
29561
|
} else if (F) {
|
|
29578
29562
|
Vh(Es(b.vars.defaults, {
|
|
@@ -30353,14 +30337,14 @@ var Ep, Aa, rh, _f, _l, bp, yf, Vy = function() {
|
|
|
30353
30337
|
var c = a._gsap || yl(a), d = a.style, u = Op(a), m, _, y, S;
|
|
30354
30338
|
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
30339
|
}, 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,
|
|
30357
|
-
c ? y !== $h && (
|
|
30340
|
+
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, X, J, K;
|
|
30341
|
+
c ? y !== $h && (X = D * L - F * E) && (J = b * (L / X) + U * (-E / X) + (E * M - L * T) / X, K = b * (-F / X) + U * (D / X) - (D * M - F * T) / X, 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
30342
|
}, Kh = function(a, o) {
|
|
30359
30343
|
var c = a._gsap || new yd(a);
|
|
30360
30344
|
if ("x" in c && !o && !c.uncache)
|
|
30361
30345
|
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,
|
|
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"),
|
|
30346
|
+
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, X, J, K, ct, It, et, yt, G, Pt, Et, Ct, fe, re, Ft, Ot, Bt, ke, ce, Yt;
|
|
30347
|
+
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"), X = 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, X)), U = c.xOrigin || 0, N = c.yOrigin || 0, X !== $h && (It = X[0], et = X[1], yt = X[2], G = X[3], A = Pt = X[4], I = Et = X[5], X.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 = X[6], ke = X[7], Ft = X[8], Ot = X[9], Bt = X[10], ce = X[11], A = X[12], I = X[13], k = X[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
30348
|
}, Wu = function(a) {
|
|
30365
30349
|
return (a = a.split(" "))[0] + " " + a[1];
|
|
30366
30350
|
}, zc = function(a, o, c) {
|
|
@@ -30371,13 +30355,13 @@ var Ep, Aa, rh, _f, _l, bp, yf, Vy = function() {
|
|
|
30371
30355
|
}, ml = "0deg", Uh = "0px", gl = ") ", Bd = function(a, o) {
|
|
30372
30356
|
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
30357
|
if (R && (I !== ml || A !== ml)) {
|
|
30374
|
-
var N = parseFloat(A) * sh,
|
|
30375
|
-
N = parseFloat(I) * sh,
|
|
30358
|
+
var N = parseFloat(A) * sh, X = Math.sin(N), J = Math.cos(N), K;
|
|
30359
|
+
N = parseFloat(I) * sh, K = Math.cos(N), m = zc(M, m, X * K * -R), _ = zc(M, _, -Math.sin(N) * -R), y = zc(M, y, J * K * -R + R);
|
|
30376
30360
|
}
|
|
30377
30361
|
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
30362
|
}, 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,
|
|
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,
|
|
30363
|
+
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, X, J, K;
|
|
30364
|
+
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, X = 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), X *= K, J *= K, A && (K = Math.tan(A), K = Math.sqrt(1 + K * K), U *= K, N *= K)), U = In(U), N = In(N), X = In(X), J = In(J)) : (U = I, J = k, N = X = 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 * X) + 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 + "," + X + "," + J + "," + R + "," + b + ")", D.setAttribute("transform", K), M && (D.style[yn] = K);
|
|
30381
30365
|
}, h1 = function(a, o, c, d, u) {
|
|
30382
30366
|
var m = 360, _ = Yn(u), y = parseFloat(u) * (_ && ~u.indexOf("rad") ? vl : 1), S = y - d, A = d + S + "deg", I, k;
|
|
30383
30367
|
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;
|
|
@@ -30414,12 +30398,12 @@ var Nd = {
|
|
|
30414
30398
|
return a.style && a.nodeType;
|
|
30415
30399
|
},
|
|
30416
30400
|
init: function(a, o, c, d, u) {
|
|
30417
|
-
var m = this._props, _ = a.style, y = c.vars.startAt, S, A, I, k, D, F, E, L, T, M, R, b, U, N,
|
|
30401
|
+
var m = this._props, _ = a.style, y = c.vars.startAt, S, A, I, k, D, F, E, L, T, M, R, b, U, N, X, J;
|
|
30418
30402
|
_f || $c(), this.styles = this.styles || Rd(a), J = this.styles.props, this.tween = c;
|
|
30419
30403
|
for (E in o)
|
|
30420
30404
|
if (E !== "autoRound" && (A = o[E], !($r[E] && xd(E, o, c, d, a, u)))) {
|
|
30421
30405
|
if (D = typeof A, F = Vu[E], D === "function" && (A = A.call(c, d, a, u), D = typeof A), D === "string" && ~A.indexOf("random(") && (A = Yh(A)), F)
|
|
30422
|
-
F(this, a, E, A, c) && (
|
|
30406
|
+
F(this, a, E, A, c) && (X = 1);
|
|
30423
30407
|
else if (E.substr(0, 2) === "--")
|
|
30424
30408
|
S = (getComputedStyle(a).getPropertyValue(E) + "").trim(), A += "", La.lastIndex = 0, La.test(S) || (L = cr(S), T = cr(A)), T ? L !== T && (S = Oa(a, E, S, T) + T) : L && (A += L), this.add(_, "setProperty", S, A, d, u, 0, 0, E), m.push(E), J.push(E, 0, _[E]);
|
|
30425
30409
|
else if (D !== "undefined") {
|
|
@@ -30460,7 +30444,7 @@ var Nd = {
|
|
|
30460
30444
|
R || (E in _ ? J.push(E, 0, _[E]) : J.push(E, 1, S || a[E])), m.push(E);
|
|
30461
30445
|
}
|
|
30462
30446
|
}
|
|
30463
|
-
|
|
30447
|
+
X && bd(this);
|
|
30464
30448
|
},
|
|
30465
30449
|
render: function(a, o) {
|
|
30466
30450
|
if (o.tween._time || !yf())
|