gralobe 1.0.10 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/gralobe.js +330 -226
- package/dist/gralobe.js.map +1 -1
- package/dist/gralobe.umd.cjs +132 -37
- package/dist/gralobe.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/gralobe.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as S from "three";
|
|
2
|
-
import { Controls as kr, Vector3 as se, MOUSE as tt, TOUCH as Qe, Quaternion as Yi, Spherical as Zi, Vector2 as de, Ray as Ur, Plane as Fr, MathUtils as
|
|
3
|
-
const Ki = { type: "change" }, Ci = { type: "start" }, Sn = { type: "end" }, Mt = new Ur(), Xi = new Fr(), $r = Math.cos(70 *
|
|
2
|
+
import { Controls as kr, Vector3 as se, MOUSE as tt, TOUCH as Qe, Quaternion as Yi, Spherical as Zi, Vector2 as de, Ray as Ur, Plane as Fr, MathUtils as zr, Matrix4 as Tn, Object3D as Nr } from "three";
|
|
3
|
+
const Ki = { type: "change" }, Ci = { type: "start" }, Sn = { type: "end" }, Mt = new Ur(), Xi = new Fr(), $r = Math.cos(70 * zr.DEG2RAD), Y = new se(), J = 2 * Math.PI, I = {
|
|
4
4
|
NONE: -1,
|
|
5
5
|
ROTATE: 0,
|
|
6
6
|
DOLLY: 1,
|
|
@@ -473,7 +473,7 @@ var he = {
|
|
|
473
473
|
duration: 0.5,
|
|
474
474
|
overwrite: !1,
|
|
475
475
|
delay: 0
|
|
476
|
-
}, Pi, K,
|
|
476
|
+
}, Pi, K, z, fe = 1e8, k = 1 / fe, oi = Math.PI * 2, es = oi / 4, ts = 0, Mn = Math.sqrt, is = Math.cos, ns = Math.sin, Z = function(e) {
|
|
477
477
|
return typeof e == "string";
|
|
478
478
|
}, G = function(e) {
|
|
479
479
|
return typeof e == "function";
|
|
@@ -481,7 +481,7 @@ var he = {
|
|
|
481
481
|
return typeof e == "number";
|
|
482
482
|
}, Ai = function(e) {
|
|
483
483
|
return typeof e > "u";
|
|
484
|
-
},
|
|
484
|
+
}, ve = function(e) {
|
|
485
485
|
return typeof e == "object";
|
|
486
486
|
}, ee = function(e) {
|
|
487
487
|
return e !== !1;
|
|
@@ -490,15 +490,15 @@ var he = {
|
|
|
490
490
|
}, Rt = function(e) {
|
|
491
491
|
return G(e) || Z(e);
|
|
492
492
|
}, Rn = typeof ArrayBuffer == "function" && ArrayBuffer.isView || function() {
|
|
493
|
-
}, W = Array.isArray, li = /(?:-?\.?\d|\.)+/gi, On = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, Je = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, Wt = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, In = /[+-]=-?[.\d]+/, Ln = /[^,'"\[\]\s]+/gi, rs = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,
|
|
494
|
-
return (
|
|
493
|
+
}, W = Array.isArray, li = /(?:-?\.?\d|\.)+/gi, On = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, Je = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, Wt = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, In = /[+-]=-?[.\d]+/, Ln = /[^,'"\[\]\s]+/gi, rs = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, N, _e, hi, Si, ce = {}, Nt = {}, kn, Un = function(e) {
|
|
494
|
+
return (Nt = at(e, ce)) && re;
|
|
495
495
|
}, Di = function(e, t) {
|
|
496
496
|
return console.warn("Invalid property", e, "set to", t, "Missing plugin? gsap.registerPlugin()");
|
|
497
|
-
},
|
|
497
|
+
}, vt = function(e, t) {
|
|
498
498
|
return !t && console.warn(e);
|
|
499
499
|
}, Fn = function(e, t) {
|
|
500
|
-
return e && (ce[e] = t) &&
|
|
501
|
-
},
|
|
500
|
+
return e && (ce[e] = t) && Nt && (Nt[e] = t) || ce;
|
|
501
|
+
}, Et = function() {
|
|
502
502
|
return 0;
|
|
503
503
|
}, ss = {
|
|
504
504
|
suppressEvents: !0,
|
|
@@ -509,9 +509,9 @@ var he = {
|
|
|
509
509
|
kill: !1
|
|
510
510
|
}, as = {
|
|
511
511
|
suppressEvents: !0
|
|
512
|
-
}, Mi = {}, Re = [], ci = {},
|
|
512
|
+
}, Mi = {}, Re = [], ci = {}, zn, ae = {}, qt = {}, Wi = 30, Ut = [], Ri = "", Oi = function(e) {
|
|
513
513
|
var t = e[0], i, n;
|
|
514
|
-
if (
|
|
514
|
+
if (ve(t) || G(t) || (e = [e]), !(i = (t._gsap || {}).harness)) {
|
|
515
515
|
for (n = Ut.length; n-- && !Ut[n].targetTest(t); )
|
|
516
516
|
;
|
|
517
517
|
i = Ut[n];
|
|
@@ -521,7 +521,7 @@ var he = {
|
|
|
521
521
|
return e;
|
|
522
522
|
}, He = function(e) {
|
|
523
523
|
return e._gsap || Oi(me(e))[0]._gsap;
|
|
524
|
-
},
|
|
524
|
+
}, Nn = function(e, t, i) {
|
|
525
525
|
return (i = e[t]) && G(i) ? e[t]() : Ai(i) && e.getAttribute && e.getAttribute(t) || i;
|
|
526
526
|
}, te = function(e, t) {
|
|
527
527
|
return (e = e.split(",")).forEach(t) || e;
|
|
@@ -564,7 +564,7 @@ var he = {
|
|
|
564
564
|
return e;
|
|
565
565
|
}, qi = function a(e, t) {
|
|
566
566
|
for (var i in t)
|
|
567
|
-
i !== "__proto__" && i !== "constructor" && i !== "prototype" && (e[i] =
|
|
567
|
+
i !== "__proto__" && i !== "constructor" && i !== "prototype" && (e[i] = ve(t[i]) ? a(e[i] || (e[i] = {}), t[i]) : t[i]);
|
|
568
568
|
return e;
|
|
569
569
|
}, Bt = function(e, t) {
|
|
570
570
|
var i = {}, n;
|
|
@@ -572,7 +572,7 @@ var he = {
|
|
|
572
572
|
n in t || (i[n] = e[n]);
|
|
573
573
|
return i;
|
|
574
574
|
}, yt = function(e) {
|
|
575
|
-
var t = e.parent ||
|
|
575
|
+
var t = e.parent || N, i = e.keyframes ? ls(W(e.keyframes)) : ue;
|
|
576
576
|
if (ee(e.inherit))
|
|
577
577
|
for (; t; )
|
|
578
578
|
i(e, t.vars.defaults), t = t.parent || t._dp;
|
|
@@ -627,13 +627,13 @@ var he = {
|
|
|
627
627
|
e._zTime = -k;
|
|
628
628
|
}
|
|
629
629
|
}, ye = function(e, t, i, n) {
|
|
630
|
-
return t.parent && Ie(t), t._start = j((Pe(i) ? i : i || e !==
|
|
630
|
+
return t.parent && Ie(t), t._start = j((Pe(i) ? i : i || e !== N ? pe(e, i, t) : e._time) + t._delay), t._end = j(t._start + (t.totalDuration() / Math.abs(t.timeScale()) || 0)), Vn(e, t, "_first", "_last", e._sort ? "_start" : 0), di(t) || (e._recent = t), n || Hn(e, t), e._ts < 0 && Kt(e, e._tTime), e;
|
|
631
631
|
}, jn = function(e, t) {
|
|
632
632
|
return (ce.ScrollTrigger || Di("scrollTrigger", t)) && ce.ScrollTrigger.create(t, e);
|
|
633
633
|
}, Yn = function(e, t, i, n, r) {
|
|
634
634
|
if (ki(e, t, r), !e._initted)
|
|
635
635
|
return 1;
|
|
636
|
-
if (!i && e._pt && !K && (e._dur && e.vars.lazy !== !1 || !e._dur && e.vars.lazy) &&
|
|
636
|
+
if (!i && e._pt && !K && (e._dur && e.vars.lazy !== !1 || !e._dur && e.vars.lazy) && zn !== oe.frame)
|
|
637
637
|
return Re.push(e), e._lazy = [r, n], 1;
|
|
638
638
|
}, ds = function a(e) {
|
|
639
639
|
var t = e.parent;
|
|
@@ -671,8 +671,8 @@ var he = {
|
|
|
671
671
|
return e instanceof q ? je(e) : lt(e, e._dur);
|
|
672
672
|
}, ms = {
|
|
673
673
|
_start: 0,
|
|
674
|
-
endTime:
|
|
675
|
-
totalDuration:
|
|
674
|
+
endTime: Et,
|
|
675
|
+
totalDuration: Et
|
|
676
676
|
}, pe = function a(e, t, i) {
|
|
677
677
|
var n = e.labels, r = e._recent || ms, s = e.duration() >= fe ? r.endTime(!1) : e._dur, o, l, c;
|
|
678
678
|
return Z(t) && (isNaN(t) || t in n) ? (l = t.charAt(0), c = t.substr(-1) === "%", o = t.indexOf("="), l === "<" || l === ">" ? (o >= 0 && (t = t.replace(/=/, "")), (l === "<" ? r._start : r.endTime(r._repeat >= 0)) + (parseFloat(t.substr(1)) || 0) * (c ? (o < 0 ? r : i).totalDuration() / 100 : 1)) : o < 0 ? (t in n || (n[t] = s), n[t]) : (l = parseFloat(t.charAt(o - 1) + t.substr(o + 1)), c && i && (l = l / 100 * (W(i) ? i[0] : i).totalDuration()), o > 1 ? a(e, t.substr(0, o - 1), i) + l : s + l)) : t == null ? s : +t;
|
|
@@ -695,18 +695,18 @@ var he = {
|
|
|
695
695
|
return Dt(e, t, n);
|
|
696
696
|
});
|
|
697
697
|
}, pi = [].slice, Zn = function(e, t) {
|
|
698
|
-
return e &&
|
|
698
|
+
return e && ve(e) && "length" in e && (!t && !e.length || e.length - 1 in e && ve(e[0])) && !e.nodeType && e !== _e;
|
|
699
699
|
}, _s = function(e, t, i) {
|
|
700
700
|
return i === void 0 && (i = []), e.forEach(function(n) {
|
|
701
701
|
var r;
|
|
702
702
|
return Z(n) && !t || Zn(n, 1) ? (r = i).push.apply(r, me(n)) : i.push(n);
|
|
703
703
|
}) || i;
|
|
704
704
|
}, me = function(e, t, i) {
|
|
705
|
-
return
|
|
705
|
+
return z && !t && z.selector ? z.selector(e) : Z(e) && !i && (hi || !ht()) ? pi.call((t || Si).querySelectorAll(e), 0) : W(e) ? _s(e, i) : Zn(e) ? pi.call(e, 0) : e ? [e] : [];
|
|
706
706
|
}, fi = function(e) {
|
|
707
|
-
return e = me(e)[0] ||
|
|
707
|
+
return e = me(e)[0] || vt("Invalid scope") || {}, function(t) {
|
|
708
708
|
var i = e.current || e.nativeElement || e;
|
|
709
|
-
return me(t, i.querySelectorAll ? i : i === e ?
|
|
709
|
+
return me(t, i.querySelectorAll ? i : i === e ? vt("Invalid scope") || Si.createElement("div") : e);
|
|
710
710
|
};
|
|
711
711
|
}, Kn = function(e) {
|
|
712
712
|
return e.sort(function() {
|
|
@@ -715,7 +715,7 @@ var he = {
|
|
|
715
715
|
}, Xn = function(e) {
|
|
716
716
|
if (G(e))
|
|
717
717
|
return e;
|
|
718
|
-
var t =
|
|
718
|
+
var t = ve(e) ? e : {
|
|
719
719
|
each: e
|
|
720
720
|
}, i = Ye(t.ease), n = t.from || 0, r = parseFloat(t.base) || 0, s = {}, o = n > 0 && n < 1, l = isNaN(n) || o, c = t.axis, h = n, u = n;
|
|
721
721
|
return Z(n) ? h = u = {
|
|
@@ -723,16 +723,16 @@ var he = {
|
|
|
723
723
|
edges: 0.5,
|
|
724
724
|
end: 1
|
|
725
725
|
}[n] || 0 : !o && l && (h = n[0], u = n[1]), function(p, m, f) {
|
|
726
|
-
var d = (f || t).length, g = s[d], _, y, x,
|
|
726
|
+
var d = (f || t).length, g = s[d], _, y, x, v, b, C, E, P, w;
|
|
727
727
|
if (!g) {
|
|
728
728
|
if (w = t.grid === "auto" ? 0 : (t.grid || [1, fe])[1], !w) {
|
|
729
|
-
for (
|
|
729
|
+
for (E = -fe; E < (E = f[w++].getBoundingClientRect().left) && w < d; )
|
|
730
730
|
;
|
|
731
731
|
w < d && w--;
|
|
732
732
|
}
|
|
733
|
-
for (g = s[d] = [], _ = l ? Math.min(w, d) * h - 0.5 : n % w, y = w === fe ? 0 : l ? d * u / w - 0.5 : n / w | 0,
|
|
734
|
-
x = C % w - _,
|
|
735
|
-
n === "random" && Kn(g), g.max =
|
|
733
|
+
for (g = s[d] = [], _ = l ? Math.min(w, d) * h - 0.5 : n % w, y = w === fe ? 0 : l ? d * u / w - 0.5 : n / w | 0, E = 0, P = fe, C = 0; C < d; C++)
|
|
734
|
+
x = C % w - _, v = y - (C / w | 0), g[C] = b = c ? Math.abs(c === "y" ? v : x) : Mn(x * x + v * v), b > E && (E = b), b < P && (P = b);
|
|
735
|
+
n === "random" && Kn(g), g.max = E - P, g.min = P, g.v = d = (parseFloat(t.amount) || parseFloat(t.each) * (w > d ? d - 1 : c ? c === "y" ? d / w : w : Math.max(w, d / w)) || 0) * (n === "edges" ? -1 : 1), g.b = d < 0 ? r - d : r, g.u = X(t.amount || t.each) || 0, i = i && d < 0 ? sr(i) : i;
|
|
736
736
|
}
|
|
737
737
|
return d = (g[p] - g.min) / g.max || 0, j(g.b + (i ? i(d) : d) * g.v) + g.u;
|
|
738
738
|
};
|
|
@@ -744,7 +744,7 @@ var he = {
|
|
|
744
744
|
};
|
|
745
745
|
}, Wn = function(e, t) {
|
|
746
746
|
var i = W(e), n, r;
|
|
747
|
-
return !i &&
|
|
747
|
+
return !i && ve(e) && (n = i = e.radius || fe, e.values ? (e = me(e.values), (r = !Pe(e[0])) && (n *= n)) : e = mi(e.increment)), ke(t, i ? G(e) ? function(s) {
|
|
748
748
|
return r = e(s), Math.abs(r - s) <= n ? r : s;
|
|
749
749
|
} : function(s) {
|
|
750
750
|
for (var o = parseFloat(r ? s.x : s), l = parseFloat(r ? s.y : 0), c = fe, h = 0, u = e.length, p, m; u--; )
|
|
@@ -773,12 +773,12 @@ var he = {
|
|
|
773
773
|
return ke(i, function(n) {
|
|
774
774
|
return e[~~t(n)];
|
|
775
775
|
});
|
|
776
|
-
},
|
|
776
|
+
}, vs = function a(e, t, i) {
|
|
777
777
|
var n = t - e;
|
|
778
778
|
return W(e) ? Qn(e, a(0, e.length), t) : ke(i, function(r) {
|
|
779
779
|
return (n + (r - e) % n) % n + e;
|
|
780
780
|
});
|
|
781
|
-
},
|
|
781
|
+
}, Es = function a(e, t, i) {
|
|
782
782
|
var n = t - e, r = n * 2;
|
|
783
783
|
return W(e) ? Qn(e, a(0, e.length - 1), t) : ke(i, function(s) {
|
|
784
784
|
return s = (r + (s - e) % r) % r || 0, e + (s > n ? r - s : s);
|
|
@@ -817,7 +817,7 @@ var he = {
|
|
|
817
817
|
for (l in t)
|
|
818
818
|
Li.call(o, e, l, "get", t[l]);
|
|
819
819
|
r = function(f) {
|
|
820
|
-
return
|
|
820
|
+
return zi(f, o) || (s ? e.p : e);
|
|
821
821
|
};
|
|
822
822
|
}
|
|
823
823
|
}
|
|
@@ -828,9 +828,9 @@ var he = {
|
|
|
828
828
|
o = n[s] - t, o < 0 == !!i && o && r > (o = Math.abs(o)) && (l = s, r = o);
|
|
829
829
|
return l;
|
|
830
830
|
}, le = function(e, t, i) {
|
|
831
|
-
var n = e.vars, r = n[t], s =
|
|
831
|
+
var n = e.vars, r = n[t], s = z, o = e._ctx, l, c, h;
|
|
832
832
|
if (r)
|
|
833
|
-
return l = n[t + "Params"], c = n.callbackScope || e, i && Re.length && $t(), o && (
|
|
833
|
+
return l = n[t + "Params"], c = n.callbackScope || e, i && Re.length && $t(), o && (z = o), h = l ? r.apply(c, l) : r.call(c), z = s, h;
|
|
834
834
|
}, mt = function(e) {
|
|
835
835
|
return Ie(e), e.scrollTrigger && e.scrollTrigger.kill(!!K), e.progress() < 1 && le(e, "onInterrupt"), e;
|
|
836
836
|
}, et, er = [], tr = function(e) {
|
|
@@ -839,11 +839,11 @@ var he = {
|
|
|
839
839
|
var t = e.name, i = G(e), n = t && !i && e.init ? function() {
|
|
840
840
|
this._props = [];
|
|
841
841
|
} : e, r = {
|
|
842
|
-
init:
|
|
843
|
-
render:
|
|
842
|
+
init: Et,
|
|
843
|
+
render: zi,
|
|
844
844
|
add: Li,
|
|
845
|
-
kill:
|
|
846
|
-
modifier:
|
|
845
|
+
kill: Ns,
|
|
846
|
+
modifier: zs,
|
|
847
847
|
rawVars: 0
|
|
848
848
|
}, s = {
|
|
849
849
|
targetTest: 0,
|
|
@@ -931,8 +931,8 @@ var he = {
|
|
|
931
931
|
return i = Cs.test(t), e[1] = tn(e[1], i), e[0] = tn(e[0], i, nr(e[1])), !0;
|
|
932
932
|
}, Ct, oe = (function() {
|
|
933
933
|
var a = Date.now, e = 500, t = 33, i = a(), n = i, r = 1e3 / 240, s = r, o = [], l, c, h, u, p, m, f = function d(g) {
|
|
934
|
-
var _ = a() - n, y = g === !0, x,
|
|
935
|
-
if ((_ > e || _ < 0) && (i += _ - t), n += _, b = n - i, x = b - s, (x > 0 || y) && (C = ++u.frame, p = b - u.time * 1e3, u.time = b = b / 1e3, s += x + (x >= r ? 4 : r - x),
|
|
934
|
+
var _ = a() - n, y = g === !0, x, v, b, C;
|
|
935
|
+
if ((_ > e || _ < 0) && (i += _ - t), n += _, b = n - i, x = b - s, (x > 0 || y) && (C = ++u.frame, p = b - u.time * 1e3, u.time = b = b / 1e3, s += x + (x >= r ? 4 : r - x), v = 1), y || (l = c(d)), v)
|
|
936
936
|
for (m = 0; m < o.length; m++)
|
|
937
937
|
o[m](b, p, C, g);
|
|
938
938
|
};
|
|
@@ -946,12 +946,12 @@ var he = {
|
|
|
946
946
|
return p / (1e3 / (g || 60));
|
|
947
947
|
},
|
|
948
948
|
wake: function() {
|
|
949
|
-
kn && (!hi && Ti() && (_e = hi = window, Si = _e.document || {}, ce.gsap = re, (_e.gsapVersions || (_e.gsapVersions = [])).push(re.version), Un(
|
|
949
|
+
kn && (!hi && Ti() && (_e = hi = window, Si = _e.document || {}, ce.gsap = re, (_e.gsapVersions || (_e.gsapVersions = [])).push(re.version), Un(Nt || _e.GreenSockGlobals || !_e.gsap && _e || {}), er.forEach(tr)), h = typeof requestAnimationFrame < "u" && requestAnimationFrame, l && u.sleep(), c = h || function(g) {
|
|
950
950
|
return setTimeout(g, s - u.time * 1e3 + 1 | 0);
|
|
951
951
|
}, Ct = 1, f(2));
|
|
952
952
|
},
|
|
953
953
|
sleep: function() {
|
|
954
|
-
(h ? cancelAnimationFrame : clearTimeout)(l), Ct = 0, c =
|
|
954
|
+
(h ? cancelAnimationFrame : clearTimeout)(l), Ct = 0, c = Et;
|
|
955
955
|
},
|
|
956
956
|
lagSmoothing: function(g, _) {
|
|
957
957
|
e = g || 1 / 0, t = Math.min(_ || 33, e);
|
|
@@ -960,8 +960,8 @@ var he = {
|
|
|
960
960
|
r = 1e3 / (g || 240), s = u.time * 1e3 + r;
|
|
961
961
|
},
|
|
962
962
|
add: function(g, _, y) {
|
|
963
|
-
var x = _ ? function(
|
|
964
|
-
g(
|
|
963
|
+
var x = _ ? function(v, b, C, E) {
|
|
964
|
+
g(v, b, C, E), u.remove(x);
|
|
965
965
|
} : g;
|
|
966
966
|
return u.remove(g), o[y ? "unshift" : "push"](x), ht(), x;
|
|
967
967
|
},
|
|
@@ -1077,10 +1077,10 @@ te("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt", functio
|
|
|
1077
1077
|
return Ri += a + "," + a + "Params,";
|
|
1078
1078
|
});
|
|
1079
1079
|
var lr = function(e, t) {
|
|
1080
|
-
this.id = ts++, e._gsap = this, this.target = e, this.harness = t, this.get = t ? t.get :
|
|
1080
|
+
this.id = ts++, e._gsap = this, this.target = e, this.harness = t, this.get = t ? t.get : Nn, this.set = t ? t.getSetter : Fi;
|
|
1081
1081
|
}, Pt = /* @__PURE__ */ (function() {
|
|
1082
1082
|
function a(t) {
|
|
1083
|
-
this.vars = t, this._delay = +t.delay || 0, (this._repeat = t.repeat === 1 / 0 ? -2 : t.repeat || 0) && (this._rDelay = t.repeatDelay || 0, this._yoyo = !!t.yoyo || !!t.yoyoEase), this._ts = 1, lt(this, +t.duration, 1, 1), this.data = t.data,
|
|
1083
|
+
this.vars = t, this._delay = +t.delay || 0, (this._repeat = t.repeat === 1 / 0 ? -2 : t.repeat || 0) && (this._rDelay = t.repeatDelay || 0, this._yoyo = !!t.yoyo || !!t.yoyoEase), this._ts = 1, lt(this, +t.duration, 1, 1), this.data = t.data, z && (this._ctx = z, z.data.push(this)), Ct || oe.wake();
|
|
1084
1084
|
}
|
|
1085
1085
|
var e = a.prototype;
|
|
1086
1086
|
return e.delay = function(i) {
|
|
@@ -1206,7 +1206,7 @@ var q = /* @__PURE__ */ (function(a) {
|
|
|
1206
1206
|
Dn(e, a);
|
|
1207
1207
|
function e(i, n) {
|
|
1208
1208
|
var r;
|
|
1209
|
-
return i === void 0 && (i = {}), r = a.call(this, i) || this, r.labels = {}, r.smoothChildTiming = !!i.smoothChildTiming, r.autoRemoveChildren = !!i.autoRemoveChildren, r._sort = ee(i.sortChildren),
|
|
1209
|
+
return i === void 0 && (i = {}), r = a.call(this, i) || this, r.labels = {}, r.smoothChildTiming = !!i.smoothChildTiming, r.autoRemoveChildren = !!i.autoRemoveChildren, r._sort = ee(i.sortChildren), N && ye(i.parent || N, we(r), n), i.reversed && r.reverse(), i.paused && r.paused(!0), i.scrollTrigger && jn(we(r), i.scrollTrigger), r;
|
|
1210
1210
|
}
|
|
1211
1211
|
var t = e.prototype;
|
|
1212
1212
|
return t.to = function(n, r, s) {
|
|
@@ -1226,18 +1226,18 @@ var q = /* @__PURE__ */ (function(a) {
|
|
|
1226
1226
|
}, t.staggerFromTo = function(n, r, s, o, l, c, h, u) {
|
|
1227
1227
|
return o.startAt = s, yt(o).immediateRender = ee(o.immediateRender), this.staggerTo(n, r, o, l, c, h, u);
|
|
1228
1228
|
}, t.render = function(n, r, s) {
|
|
1229
|
-
var o = this._time, l = this._dirty ? this.totalDuration() : this._tDur, c = this._dur, h = n <= 0 ? 0 : j(n), u = this._zTime < 0 != n < 0 && (this._initted || !c), p, m, f, d, g, _, y, x,
|
|
1230
|
-
if (this !==
|
|
1231
|
-
if (o !== this._time && c && (h += this._time - o, n += this._time - o), p = h,
|
|
1229
|
+
var o = this._time, l = this._dirty ? this.totalDuration() : this._tDur, c = this._dur, h = n <= 0 ? 0 : j(n), u = this._zTime < 0 != n < 0 && (this._initted || !c), p, m, f, d, g, _, y, x, v, b, C, E;
|
|
1230
|
+
if (this !== N && h > l && n >= 0 && (h = l), h !== this._tTime || s || u) {
|
|
1231
|
+
if (o !== this._time && c && (h += this._time - o, n += this._time - o), p = h, v = this._start, x = this._ts, _ = !x, u && (c || (o = this._zTime), (n || !r) && (this._zTime = n)), this._repeat) {
|
|
1232
1232
|
if (C = this._yoyo, g = c + this._rDelay, this._repeat < -1 && n < 0)
|
|
1233
1233
|
return this.totalTime(g * 100 + n, r, s);
|
|
1234
|
-
if (p = j(h % g), h === l ? (d = this._repeat, p = c) : (b = j(h / g), d = ~~b, d && d === b && (p = c, d--), p > c && (p = c)), b = ot(this._tTime, g), !o && this._tTime && b !== d && this._tTime - b * g - this._dur <= 0 && (b = d), C && d & 1 && (p = c - p,
|
|
1234
|
+
if (p = j(h % g), h === l ? (d = this._repeat, p = c) : (b = j(h / g), d = ~~b, d && d === b && (p = c, d--), p > c && (p = c)), b = ot(this._tTime, g), !o && this._tTime && b !== d && this._tTime - b * g - this._dur <= 0 && (b = d), C && d & 1 && (p = c - p, E = 1), d !== b && !this._lock) {
|
|
1235
1235
|
var P = C && b & 1, w = P === (C && d & 1);
|
|
1236
|
-
if (d < b && (P = !P), o = P ? 0 : h % c ? c : h, this._lock = 1, this.render(o || (
|
|
1236
|
+
if (d < b && (P = !P), o = P ? 0 : h % c ? c : h, this._lock = 1, this.render(o || (E ? 0 : j(d * g)), r, !c)._lock = 0, this._tTime = h, !r && this.parent && le(this, "onRepeat"), this.vars.repeatRefresh && !E && (this.invalidate()._lock = 1), o && o !== this._time || _ !== !this._ts || this.vars.onRepeat && !this.parent && !this._act)
|
|
1237
1237
|
return this;
|
|
1238
|
-
if (c = this._dur, l = this._tDur, w && (this._lock = 2, o = P ? c : -1e-4, this.render(o, !0), this.vars.repeatRefresh && !
|
|
1238
|
+
if (c = this._dur, l = this._tDur, w && (this._lock = 2, o = P ? c : -1e-4, this.render(o, !0), this.vars.repeatRefresh && !E && this.invalidate()), this._lock = 0, !this._ts && !_)
|
|
1239
1239
|
return this;
|
|
1240
|
-
ar(this,
|
|
1240
|
+
ar(this, E);
|
|
1241
1241
|
}
|
|
1242
1242
|
}
|
|
1243
1243
|
if (this._hasPause && !this._forcing && this._lock < 2 && (y = fs(this, j(o), j(p)), y && (h -= p - (p = y._start))), this._tTime = h, this._time = p, this._act = !x, this._initted || (this._onUpdate = this.vars.onUpdate, this._initted = 1, this._zTime = n, o = 0), !o && h && !r && !b && (le(this, "onStart"), this._tTime !== h))
|
|
@@ -1269,8 +1269,8 @@ var q = /* @__PURE__ */ (function(a) {
|
|
|
1269
1269
|
}
|
|
1270
1270
|
}
|
|
1271
1271
|
if (y && !r && (this.pause(), y.render(p >= o ? 0 : -k)._zTime = p >= o ? 1 : -1, this._ts))
|
|
1272
|
-
return this._start =
|
|
1273
|
-
this._onUpdate && !r && le(this, "onUpdate", !0), (h === l && this._tTime >= this.totalDuration() || !h && o) && (
|
|
1272
|
+
return this._start = v, Zt(this), this.render(n, r, s);
|
|
1273
|
+
this._onUpdate && !r && le(this, "onUpdate", !0), (h === l && this._tTime >= this.totalDuration() || !h && o) && (v === this._start || Math.abs(x) !== Math.abs(this._ts)) && (this._lock || ((n || !c) && (h === l && this._ts > 0 || !h && this._ts < 0) && Ie(this, 1), !r && !(n < 0 && !o) && (h || o || !l) && (le(this, h === l && n >= 0 ? "onComplete" : "onReverseComplete", !0), this._prom && !(h < l && this.timeScale() > 0) && this._prom())));
|
|
1274
1274
|
}
|
|
1275
1275
|
return this;
|
|
1276
1276
|
}, t.add = function(n, r) {
|
|
@@ -1306,7 +1306,7 @@ var q = /* @__PURE__ */ (function(a) {
|
|
|
1306
1306
|
}, t.removeLabel = function(n) {
|
|
1307
1307
|
return delete this.labels[n], this;
|
|
1308
1308
|
}, t.addPause = function(n, r, s) {
|
|
1309
|
-
var o = H.delayedCall(0, r ||
|
|
1309
|
+
var o = H.delayedCall(0, r || Et, s);
|
|
1310
1310
|
return o.data = "isPause", this._hasPause = 1, ye(this, o, pe(this, n));
|
|
1311
1311
|
}, t.removePause = function(n) {
|
|
1312
1312
|
var r = this._first;
|
|
@@ -1377,13 +1377,13 @@ var q = /* @__PURE__ */ (function(a) {
|
|
|
1377
1377
|
if (s._dirty) {
|
|
1378
1378
|
for (u = s.parent; o; )
|
|
1379
1379
|
c = o._prev, o._dirty && o.totalDuration(), h = o._start, h > l && s._sort && o._ts && !s._lock ? (s._lock = 1, ye(s, o, h - o._delay, 1)._lock = 0) : l = h, h < 0 && o._ts && (r -= h, (!u && !s._dp || u && u.smoothChildTiming) && (s._start += h / s._ts, s._time -= h, s._tTime -= h), s.shiftChildren(-h, !1, -1 / 0), l = 0), o._end > r && o._ts && (r = o._end), o = c;
|
|
1380
|
-
lt(s, s ===
|
|
1380
|
+
lt(s, s === N && s._time > r ? s._time : r, 1, 1), s._dirty = 0;
|
|
1381
1381
|
}
|
|
1382
1382
|
return s._tDur;
|
|
1383
1383
|
}, e.updateRoot = function(n) {
|
|
1384
|
-
if (
|
|
1384
|
+
if (N._ts && ($n(N, Gt(n, N)), zn = oe.frame), oe.frame >= Wi) {
|
|
1385
1385
|
Wi += he.autoSleep || 120;
|
|
1386
|
-
var r =
|
|
1386
|
+
var r = N._first;
|
|
1387
1387
|
if ((!r || !r._ts) && he.autoSleep && oe._listeners.length < 2) {
|
|
1388
1388
|
for (; r && !r._ts; )
|
|
1389
1389
|
r = r._next;
|
|
@@ -1415,7 +1415,7 @@ var Ms = function(e, t, i, n, r, s, o) {
|
|
|
1415
1415
|
if (Z(n) && (~n.indexOf("random(") && (n = wt(n)), n.charAt(1) === "=" && (f = it(p, n) + (X(p) || 0), (f || f === 0) && (n = f))), !h || p !== n || gi)
|
|
1416
1416
|
return !isNaN(p * n) && n !== "" ? (f = new ie(this._pt, e, t, +p || 0, n - (p || 0), typeof u == "boolean" ? Fs : pr, 0, m), c && (f.fp = c), o && f.modifier(o, this, e), this._pt = f) : (!u && !(t in e) && Di(t, n), Ms.call(this, e, t, p, n, m, l || he.stringFilter, c));
|
|
1417
1417
|
}, Rs = function(e, t, i, n, r) {
|
|
1418
|
-
if (G(e) && (e = bt(e, r, t, i, n)), !
|
|
1418
|
+
if (G(e) && (e = bt(e, r, t, i, n)), !ve(e) || e.style && e.nodeType || W(e) || Rn(e))
|
|
1419
1419
|
return Z(e) ? bt(e, r, t, i, n) : e;
|
|
1420
1420
|
var s = {}, o;
|
|
1421
1421
|
for (o in e)
|
|
@@ -1428,8 +1428,8 @@ var Ms = function(e, t, i, n, r, s, o) {
|
|
|
1428
1428
|
c[o._props[h]] = l;
|
|
1429
1429
|
return o;
|
|
1430
1430
|
}, Te, gi, ki = function a(e, t, i) {
|
|
1431
|
-
var n = e.vars, r = n.ease, s = n.startAt, o = n.immediateRender, l = n.lazy, c = n.onUpdate, h = n.runBackwards, u = n.yoyoEase, p = n.keyframes, m = n.autoRevert, f = e._dur, d = e._startAt, g = e._targets, _ = e.parent, y = _ && _.data === "nested" ? _.vars.targets : g, x = e._overwrite === "auto" && !Pi,
|
|
1432
|
-
if (
|
|
1431
|
+
var n = e.vars, r = n.ease, s = n.startAt, o = n.immediateRender, l = n.lazy, c = n.onUpdate, h = n.runBackwards, u = n.yoyoEase, p = n.keyframes, m = n.autoRevert, f = e._dur, d = e._startAt, g = e._targets, _ = e.parent, y = _ && _.data === "nested" ? _.vars.targets : g, x = e._overwrite === "auto" && !Pi, v = e.timeline, b, C, E, P, w, T, M, A, R, O, B, F, U;
|
|
1432
|
+
if (v && (!p || !r) && (r = "none"), e._ease = Ye(r, st.ease), e._yEase = u ? sr(Ye(u === !0 ? r : u, st.ease)) : 0, u && e._yoyo && !e._repeat && (u = e._yEase, e._yEase = e._ease, e._ease = u), e._from = !v && !!n.runBackwards, !v || p && !n.stagger) {
|
|
1433
1433
|
if (A = g[0] ? He(g[0]).harness : 0, F = A && n[A.prop], b = Bt(n, Mi), d && (d._zTime < 0 && d.progress(1), t < 0 && h && o && !m ? d.render(-1, !0) : d.revert(h && f ? kt : ss), d._lazy = 0), s) {
|
|
1434
1434
|
if (Ie(e._startAt = H.set(g, ue({
|
|
1435
1435
|
data: "isStart",
|
|
@@ -1448,7 +1448,7 @@ var Ms = function(e, t, i, n, r, s, o) {
|
|
|
1448
1448
|
return;
|
|
1449
1449
|
}
|
|
1450
1450
|
} else if (h && f && !d) {
|
|
1451
|
-
if (t && (o = !1),
|
|
1451
|
+
if (t && (o = !1), E = ue({
|
|
1452
1452
|
overwrite: !1,
|
|
1453
1453
|
data: "isFromStart",
|
|
1454
1454
|
//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.
|
|
@@ -1458,7 +1458,7 @@ var Ms = function(e, t, i, n, r, s, o) {
|
|
|
1458
1458
|
stagger: 0,
|
|
1459
1459
|
parent: _
|
|
1460
1460
|
//ensures that nested tweens that had a stagger are handled properly, like gsap.from(".class", {y: gsap.utils.wrap([-100,100]), stagger: 0.5})
|
|
1461
|
-
}, b), F && (
|
|
1461
|
+
}, b), F && (E[A.prop] = F), Ie(e._startAt = H.set(g, E)), e._startAt._dp = 0, e._startAt._sat = e, t < 0 && (K ? e._startAt.revert(kt) : e._startAt.render(-1, !0)), e._zTime = t, !o)
|
|
1462
1462
|
a(e._startAt, k, k);
|
|
1463
1463
|
else if (!t)
|
|
1464
1464
|
return;
|
|
@@ -1467,13 +1467,13 @@ var Ms = function(e, t, i, n, r, s, o) {
|
|
|
1467
1467
|
if (w = g[C], M = w._gsap || Oi(g)[C]._gsap, e._ptLookup[C] = O = {}, ci[M.id] && Re.length && $t(), B = y === g ? C : y.indexOf(w), A && (R = new A()).init(w, F || b, e, B, y) !== !1 && (e._pt = P = new ie(e._pt, w, R.name, 0, 1, R.render, R, 0, R.priority), R._props.forEach(function(Q) {
|
|
1468
1468
|
O[Q] = P;
|
|
1469
1469
|
}), R.priority && (T = 1)), !A || F)
|
|
1470
|
-
for (
|
|
1471
|
-
ae[
|
|
1472
|
-
e._op && e._op[C] && e.kill(w, e._op[C]), x && e._pt && (Te = e,
|
|
1470
|
+
for (E in b)
|
|
1471
|
+
ae[E] && (R = hr(E, b, e, B, w, y)) ? R.priority && (T = 1) : O[E] = P = Li.call(e, w, E, "get", b[E], B, y, 0, n.stringFilter);
|
|
1472
|
+
e._op && e._op[C] && e.kill(w, e._op[C]), x && e._pt && (Te = e, N.killTweensOf(w, O, e.globalTime(t)), U = !e.parent, Te = 0), e._pt && l && (ci[M.id] = 1);
|
|
1473
1473
|
}
|
|
1474
1474
|
T && mr(e), e._onInit && e._onInit(e);
|
|
1475
1475
|
}
|
|
1476
|
-
e._onUpdate = c, e._initted = (!e._op || e._pt) && !U, p && t <= 0 &&
|
|
1476
|
+
e._onUpdate = c, e._initted = (!e._op || e._pt) && !U, p && t <= 0 && v.render(fe, !0, !0);
|
|
1477
1477
|
}, Os = function(e, t, i, n, r, s, o, l) {
|
|
1478
1478
|
var c = (e._pt && e._ptCache || (e._ptCache = {}))[t], h, u, p, m;
|
|
1479
1479
|
if (!c)
|
|
@@ -1482,7 +1482,7 @@ var Ms = function(e, t, i, n, r, s, o) {
|
|
|
1482
1482
|
for (h = h.d._pt; h && h.p !== t && h.fp !== t; )
|
|
1483
1483
|
h = h._next;
|
|
1484
1484
|
if (!h)
|
|
1485
|
-
return gi = 1, e.vars[t] = "+=0", ki(e, o), gi = 0, l ?
|
|
1485
|
+
return gi = 1, e.vars[t] = "+=0", ki(e, o), gi = 0, l ? vt(t + " not eligible for reset") : 1;
|
|
1486
1486
|
c.push(h);
|
|
1487
1487
|
}
|
|
1488
1488
|
for (m = c.length; m--; )
|
|
@@ -1525,28 +1525,28 @@ var H = /* @__PURE__ */ (function(a) {
|
|
|
1525
1525
|
function e(i, n, r, s) {
|
|
1526
1526
|
var o;
|
|
1527
1527
|
typeof n == "number" && (r.duration = n, n = r, r = null), o = a.call(this, s ? n : yt(n)) || this;
|
|
1528
|
-
var l = o.vars, c = l.duration, h = l.delay, u = l.immediateRender, p = l.stagger, m = l.overwrite, f = l.keyframes, d = l.defaults, g = l.scrollTrigger, _ = l.yoyoEase, y = n.parent ||
|
|
1529
|
-
if (o._targets = x.length ? Oi(x) :
|
|
1530
|
-
if (n = o.vars,
|
|
1528
|
+
var l = o.vars, c = l.duration, h = l.delay, u = l.immediateRender, p = l.stagger, m = l.overwrite, f = l.keyframes, d = l.defaults, g = l.scrollTrigger, _ = l.yoyoEase, y = n.parent || N, x = (W(i) || Rn(i) ? Pe(i[0]) : "length" in n) ? [i] : me(i), v, b, C, E, P, w, T, M;
|
|
1529
|
+
if (o._targets = x.length ? Oi(x) : vt("GSAP target " + i + " not found. https://gsap.com", !he.nullTargetWarn) || [], o._ptLookup = [], o._overwrite = m, f || p || Rt(c) || Rt(h)) {
|
|
1530
|
+
if (n = o.vars, v = o.timeline = new q({
|
|
1531
1531
|
data: "nested",
|
|
1532
1532
|
defaults: d || {},
|
|
1533
1533
|
targets: y && y.data === "nested" ? y.vars.targets : x
|
|
1534
|
-
}),
|
|
1535
|
-
if (
|
|
1534
|
+
}), v.kill(), v.parent = v._dp = we(o), v._start = 0, p || Rt(c) || Rt(h)) {
|
|
1535
|
+
if (E = x.length, T = p && Xn(p), ve(p))
|
|
1536
1536
|
for (P in p)
|
|
1537
1537
|
~cr.indexOf(P) && (M || (M = {}), M[P] = p[P]);
|
|
1538
|
-
for (b = 0; b <
|
|
1539
|
-
C = Bt(n, ur), C.stagger = 0, _ && (C.yoyoEase = _), M && at(C, M), w = x[b], C.duration = +bt(c, we(o), b, w, x), C.delay = (+bt(h, we(o), b, w, x) || 0) - o._delay, !p &&
|
|
1540
|
-
|
|
1538
|
+
for (b = 0; b < E; b++)
|
|
1539
|
+
C = Bt(n, ur), C.stagger = 0, _ && (C.yoyoEase = _), M && at(C, M), w = x[b], C.duration = +bt(c, we(o), b, w, x), C.delay = (+bt(h, we(o), b, w, x) || 0) - o._delay, !p && E === 1 && C.delay && (o._delay = h = C.delay, o._start += h, C.delay = 0), v.to(w, C, T ? T(b, w, x) : 0), v._ease = D.none;
|
|
1540
|
+
v.duration() ? c = h = 0 : o.timeline = 0;
|
|
1541
1541
|
} else if (f) {
|
|
1542
|
-
yt(ue(
|
|
1542
|
+
yt(ue(v.vars.defaults, {
|
|
1543
1543
|
ease: "none"
|
|
1544
|
-
})),
|
|
1544
|
+
})), v._ease = Ye(f.ease || n.ease || "none");
|
|
1545
1545
|
var A = 0, R, O, B;
|
|
1546
1546
|
if (W(f))
|
|
1547
1547
|
f.forEach(function(F) {
|
|
1548
|
-
return
|
|
1549
|
-
}),
|
|
1548
|
+
return v.to(x, F, ">");
|
|
1549
|
+
}), v.duration();
|
|
1550
1550
|
else {
|
|
1551
1551
|
C = {};
|
|
1552
1552
|
for (P in f)
|
|
@@ -1558,27 +1558,27 @@ var H = /* @__PURE__ */ (function(a) {
|
|
|
1558
1558
|
O = R[b], B = {
|
|
1559
1559
|
ease: O.e,
|
|
1560
1560
|
duration: (O.t - (b ? R[b - 1].t : 0)) / 100 * c
|
|
1561
|
-
}, B[P] = O.v,
|
|
1562
|
-
|
|
1563
|
-
duration: c -
|
|
1561
|
+
}, B[P] = O.v, v.to(x, B, A), A += B.duration;
|
|
1562
|
+
v.duration() < c && v.to({}, {
|
|
1563
|
+
duration: c - v.duration()
|
|
1564
1564
|
});
|
|
1565
1565
|
}
|
|
1566
1566
|
}
|
|
1567
|
-
c || o.duration(c =
|
|
1567
|
+
c || o.duration(c = v.duration());
|
|
1568
1568
|
} else
|
|
1569
1569
|
o.timeline = 0;
|
|
1570
|
-
return m === !0 && !Pi && (Te = we(o),
|
|
1570
|
+
return m === !0 && !Pi && (Te = we(o), N.killTweensOf(x), Te = 0), ye(y, we(o), r), n.reversed && o.reverse(), n.paused && o.paused(!0), (u || !c && !f && o._start === j(y._time) && ee(u) && us(we(o)) && y.data !== "nested") && (o._tTime = -k, o.render(Math.max(0, -h) || 0)), g && jn(we(o), g), o;
|
|
1571
1571
|
}
|
|
1572
1572
|
var t = e.prototype;
|
|
1573
1573
|
return t.render = function(n, r, s) {
|
|
1574
|
-
var o = this._time, l = this._tDur, c = this._dur, h = n < 0, u = n > l - k && !h ? l : n < k ? 0 : n, p, m, f, d, g, _, y, x,
|
|
1574
|
+
var o = this._time, l = this._tDur, c = this._dur, h = n < 0, u = n > l - k && !h ? l : n < k ? 0 : n, p, m, f, d, g, _, y, x, v;
|
|
1575
1575
|
if (!c)
|
|
1576
1576
|
ps(this, n, r, s);
|
|
1577
1577
|
else if (u !== this._tTime || !n || s || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== h || this._lazy) {
|
|
1578
1578
|
if (p = u, x = this.timeline, this._repeat) {
|
|
1579
1579
|
if (d = c + this._rDelay, this._repeat < -1 && h)
|
|
1580
1580
|
return this.totalTime(d * 100 + n, r, s);
|
|
1581
|
-
if (p = j(u % d), u === l ? (f = this._repeat, p = c) : (g = j(u / d), f = ~~g, f && f === g ? (p = c, f--) : p > c && (p = c)), _ = this._yoyo && f & 1, _ && (
|
|
1581
|
+
if (p = j(u % d), u === l ? (f = this._repeat, p = c) : (g = j(u / d), f = ~~g, f && f === g ? (p = c, f--) : p > c && (p = c)), _ = this._yoyo && f & 1, _ && (v = this._yEase, p = c - p), g = ot(this._tTime, d), p === o && !s && this._initted && f === g)
|
|
1582
1582
|
return this._tTime = u, this;
|
|
1583
1583
|
f !== g && (x && this._yEase && ar(x, _), this.vars.repeatRefresh && !_ && !this._lock && p !== d && this._initted && (this._lock = s = 1, this.render(j(d * f), !0).invalidate()._lock = 0));
|
|
1584
1584
|
}
|
|
@@ -1590,7 +1590,7 @@ var H = /* @__PURE__ */ (function(a) {
|
|
|
1590
1590
|
if (c !== this._dur)
|
|
1591
1591
|
return this.render(n, r, s);
|
|
1592
1592
|
}
|
|
1593
|
-
if (this._tTime = u, this._time = p, !this._act && this._ts && (this._act = 1, this._lazy = 0), this.ratio = y = (
|
|
1593
|
+
if (this._tTime = u, this._time = p, !this._act && this._ts && (this._act = 1, this._lazy = 0), this.ratio = y = (v || this._ease)(p / c), this._from && (this.ratio = y = 1 - y), !o && u && !r && !g && (le(this, "onStart"), this._tTime !== u))
|
|
1594
1594
|
return this;
|
|
1595
1595
|
for (m = this._pt; m; )
|
|
1596
1596
|
m.r(y, m.d), m = m._next;
|
|
@@ -1645,7 +1645,7 @@ var H = /* @__PURE__ */ (function(a) {
|
|
|
1645
1645
|
}, e.set = function(n, r) {
|
|
1646
1646
|
return r.duration = 0, r.repeatDelay || (r.repeat = 0), new e(n, r);
|
|
1647
1647
|
}, e.killTweensOf = function(n, r, s) {
|
|
1648
|
-
return
|
|
1648
|
+
return N.killTweensOf(n, r, s);
|
|
1649
1649
|
}, e;
|
|
1650
1650
|
})(Pt);
|
|
1651
1651
|
ue(H.prototype, {
|
|
@@ -1687,13 +1687,13 @@ var Ui = function(e, t, i) {
|
|
|
1687
1687
|
n += t.c;
|
|
1688
1688
|
}
|
|
1689
1689
|
t.set(t.t, t.p, n, t);
|
|
1690
|
-
},
|
|
1690
|
+
}, zi = function(e, t) {
|
|
1691
1691
|
for (var i = t._pt; i; )
|
|
1692
1692
|
i.r(e, i.d), i = i._next;
|
|
1693
|
-
},
|
|
1693
|
+
}, zs = function(e, t, i, n) {
|
|
1694
1694
|
for (var r = this._pt, s; r; )
|
|
1695
1695
|
s = r._next, r.p === n && r.modifier(e, t, i), r = s;
|
|
1696
|
-
},
|
|
1696
|
+
}, Ns = function(e) {
|
|
1697
1697
|
for (var t = this._pt, i, n; t; )
|
|
1698
1698
|
n = t._next, t.p === e && !t.op || t.op === e ? Yt(this, t, "_pt") : t.dep || (i = 1), t = n;
|
|
1699
1699
|
return !i;
|
|
@@ -1720,7 +1720,7 @@ te(Ri + "parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediat
|
|
|
1720
1720
|
});
|
|
1721
1721
|
ce.TweenMax = ce.TweenLite = H;
|
|
1722
1722
|
ce.TimelineLite = ce.TimelineMax = q;
|
|
1723
|
-
|
|
1723
|
+
N = new q({
|
|
1724
1724
|
sortChildren: !1,
|
|
1725
1725
|
defaults: st,
|
|
1726
1726
|
autoRemoveChildren: !0,
|
|
@@ -1752,15 +1752,15 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Gs = 0, ti = function(e) {
|
|
|
1752
1752
|
return e.add = function(i, n, r) {
|
|
1753
1753
|
G(i) && (r = n, n = i, i = G);
|
|
1754
1754
|
var s = this, o = function() {
|
|
1755
|
-
var c =
|
|
1756
|
-
return c && c !== s && c.data.push(s), r && (s.selector = fi(r)),
|
|
1755
|
+
var c = z, h = s.selector, u;
|
|
1756
|
+
return c && c !== s && c.data.push(s), r && (s.selector = fi(r)), z = s, u = n.apply(s, arguments), G(u) && s._r.push(u), z = c, s.selector = h, s.isReverted = !1, u;
|
|
1757
1757
|
};
|
|
1758
1758
|
return s.last = o, i === G ? o(s, function(l) {
|
|
1759
1759
|
return s.add(null, l);
|
|
1760
1760
|
}) : i ? s[i] = o : o;
|
|
1761
1761
|
}, e.ignore = function(i) {
|
|
1762
|
-
var n =
|
|
1763
|
-
|
|
1762
|
+
var n = z;
|
|
1763
|
+
z = null, i(this), z = n;
|
|
1764
1764
|
}, e.getTweens = function() {
|
|
1765
1765
|
var i = [];
|
|
1766
1766
|
return this.data.forEach(function(n) {
|
|
@@ -1799,15 +1799,15 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Gs = 0, ti = function(e) {
|
|
|
1799
1799
|
}, a;
|
|
1800
1800
|
})(), Vs = /* @__PURE__ */ (function() {
|
|
1801
1801
|
function a(t) {
|
|
1802
|
-
this.contexts = [], this.scope = t,
|
|
1802
|
+
this.contexts = [], this.scope = t, z && z.data.push(this);
|
|
1803
1803
|
}
|
|
1804
1804
|
var e = a.prototype;
|
|
1805
1805
|
return e.add = function(i, n, r) {
|
|
1806
|
-
|
|
1806
|
+
ve(i) || (i = {
|
|
1807
1807
|
matches: i
|
|
1808
1808
|
});
|
|
1809
1809
|
var s = new gr(0, r || this.scope), o = s.conditions = {}, l, c, h;
|
|
1810
|
-
|
|
1810
|
+
z && !s.selector && (s.selector = z.selector), this.contexts.push(s), n = s.add("onMatch", n), s.queries = i;
|
|
1811
1811
|
for (c in i)
|
|
1812
1812
|
c === "all" ? h = 1 : (l = _e.matchMedia(i[c]), l && (Ze.indexOf(s) < 0 && Ze.push(s), (o[c] = l.matches) && (h = 1), l.addListener ? l.addListener(_i) : l.addEventListener("change", _i)));
|
|
1813
1813
|
return h && n(s, function(u) {
|
|
@@ -1832,7 +1832,7 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Gs = 0, ti = function(e) {
|
|
|
1832
1832
|
return new q(e);
|
|
1833
1833
|
},
|
|
1834
1834
|
getTweensOf: function(e, t) {
|
|
1835
|
-
return
|
|
1835
|
+
return N.getTweensOf(e, t);
|
|
1836
1836
|
},
|
|
1837
1837
|
getProperty: function(e, t, i, n) {
|
|
1838
1838
|
Z(e) && (e = me(e)[0]);
|
|
@@ -1854,7 +1854,7 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Gs = 0, ti = function(e) {
|
|
|
1854
1854
|
e = e[0] || {};
|
|
1855
1855
|
var s = ae[t], o = He(e), l = o.harness && (o.harness.aliases || {})[t] || t, c = s ? function(h) {
|
|
1856
1856
|
var u = new s();
|
|
1857
|
-
et._pt = 0, u.init(e, i ? h + i : h, et, 0, [e]), u.render(1, u), et._pt &&
|
|
1857
|
+
et._pt = 0, u.init(e, i ? h + i : h, et, 0, [e]), u.render(1, u), et._pt && zi(1, et);
|
|
1858
1858
|
} : o.set(e, l);
|
|
1859
1859
|
return s ? c : function(h) {
|
|
1860
1860
|
return c(e, l, i ? h + i : h, o, 1);
|
|
@@ -1867,7 +1867,7 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Gs = 0, ti = function(e) {
|
|
|
1867
1867
|
return s.tween = r, s;
|
|
1868
1868
|
},
|
|
1869
1869
|
isTweening: function(e) {
|
|
1870
|
-
return
|
|
1870
|
+
return N.getTweensOf(e, !0).length > 0;
|
|
1871
1871
|
},
|
|
1872
1872
|
defaults: function(e) {
|
|
1873
1873
|
return e && e.ease && (e.ease = Ye(e.ease, st.ease)), qi(st, e || {});
|
|
@@ -1878,11 +1878,11 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Gs = 0, ti = function(e) {
|
|
|
1878
1878
|
registerEffect: function(e) {
|
|
1879
1879
|
var t = e.name, i = e.effect, n = e.plugins, r = e.defaults, s = e.extendTimeline;
|
|
1880
1880
|
(n || "").split(",").forEach(function(o) {
|
|
1881
|
-
return o && !ae[o] && !ce[o] &&
|
|
1881
|
+
return o && !ae[o] && !ce[o] && vt(t + " effect requires " + o + " plugin.");
|
|
1882
1882
|
}), qt[t] = function(o, l, c) {
|
|
1883
1883
|
return i(me(o), ue(l || {}, r), c);
|
|
1884
1884
|
}, s && (q.prototype[t] = function(o, l, c) {
|
|
1885
|
-
return this.add(qt[t](o,
|
|
1885
|
+
return this.add(qt[t](o, ve(l) ? l : (c = l) && {}, this), c);
|
|
1886
1886
|
});
|
|
1887
1887
|
},
|
|
1888
1888
|
registerEase: function(e, t) {
|
|
@@ -1892,17 +1892,17 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Gs = 0, ti = function(e) {
|
|
|
1892
1892
|
return arguments.length ? Ye(e, t) : D;
|
|
1893
1893
|
},
|
|
1894
1894
|
getById: function(e) {
|
|
1895
|
-
return
|
|
1895
|
+
return N.getById(e);
|
|
1896
1896
|
},
|
|
1897
1897
|
exportRoot: function(e, t) {
|
|
1898
1898
|
e === void 0 && (e = {});
|
|
1899
1899
|
var i = new q(e), n, r;
|
|
1900
|
-
for (i.smoothChildTiming = ee(e.smoothChildTiming),
|
|
1900
|
+
for (i.smoothChildTiming = ee(e.smoothChildTiming), N.remove(i), i._dp = 0, i._time = i._tTime = N._time, n = N._first; n; )
|
|
1901
1901
|
r = n._next, (t || !(!n._dur && n instanceof H && n.vars.onComplete === n._targets[0])) && ye(i, n, n._start - n._delay), n = r;
|
|
1902
|
-
return ye(
|
|
1902
|
+
return ye(N, i, 0), i;
|
|
1903
1903
|
},
|
|
1904
1904
|
context: function(e, t) {
|
|
1905
|
-
return e ? new gr(e, t) :
|
|
1905
|
+
return e ? new gr(e, t) : z;
|
|
1906
1906
|
},
|
|
1907
1907
|
matchMedia: function(e) {
|
|
1908
1908
|
return new Vs(e);
|
|
@@ -1924,8 +1924,8 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Gs = 0, ti = function(e) {
|
|
|
1924
1924
|
n >= 0 && i.splice(n, 1);
|
|
1925
1925
|
},
|
|
1926
1926
|
utils: {
|
|
1927
|
-
wrap:
|
|
1928
|
-
wrapYoyo:
|
|
1927
|
+
wrap: vs,
|
|
1928
|
+
wrapYoyo: Es,
|
|
1929
1929
|
distribute: Xn,
|
|
1930
1930
|
random: qn,
|
|
1931
1931
|
snap: Wn,
|
|
@@ -1946,7 +1946,7 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Gs = 0, ti = function(e) {
|
|
|
1946
1946
|
ticker: oe,
|
|
1947
1947
|
updateRoot: q.updateRoot,
|
|
1948
1948
|
plugins: ae,
|
|
1949
|
-
globalTimeline:
|
|
1949
|
+
globalTimeline: N,
|
|
1950
1950
|
core: {
|
|
1951
1951
|
PropTween: ie,
|
|
1952
1952
|
globals: Fn,
|
|
@@ -1959,7 +1959,7 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Gs = 0, ti = function(e) {
|
|
|
1959
1959
|
return K;
|
|
1960
1960
|
},
|
|
1961
1961
|
context: function(e) {
|
|
1962
|
-
return e &&
|
|
1962
|
+
return e && z && (z.data.push(e), e._ctx = z), z;
|
|
1963
1963
|
},
|
|
1964
1964
|
suppressOverwrites: function(e) {
|
|
1965
1965
|
return Pi = e;
|
|
@@ -2044,7 +2044,7 @@ D.Bounce;
|
|
|
2044
2044
|
D.Sine;
|
|
2045
2045
|
D.Expo;
|
|
2046
2046
|
D.Circ;
|
|
2047
|
-
var rn, Se, nt,
|
|
2047
|
+
var rn, Se, nt, Ni, Ge, sn, $i, Ys = function() {
|
|
2048
2048
|
return typeof window < "u";
|
|
2049
2049
|
}, Ae = {}, $e = 180 / Math.PI, rt = Math.PI / 180, We = Math.atan2, an = 1e8, Bi = /([A-Z])/g, Zs = /(left|right|width|margin|padding|x)/i, Ks = /[\s,\(]\S/, xe = {
|
|
2050
2050
|
autoAlpha: "opacity,visibility",
|
|
@@ -2114,7 +2114,7 @@ var rn, Se, nt, zi, Ge, sn, $i, Ys = function() {
|
|
|
2114
2114
|
return e._gsap || re.core.getCache(e), t && e.style && e.nodeType && t.split(",").forEach(function(n) {
|
|
2115
2115
|
return i.save(n);
|
|
2116
2116
|
}), i;
|
|
2117
|
-
},
|
|
2117
|
+
}, vr, xi = function(e, t) {
|
|
2118
2118
|
var i = Se.createElementNS ? Se.createElementNS((t || "http://www.w3.org/1999/xhtml").replace(/^https/, "http"), e) : Se.createElement(e);
|
|
2119
2119
|
return i && i.style ? i : Se.createElement(e);
|
|
2120
2120
|
}, ge = function a(e, t, i) {
|
|
@@ -2130,7 +2130,7 @@ var rn, Se, nt, zi, Ge, sn, $i, Ys = function() {
|
|
|
2130
2130
|
}, bi = function() {
|
|
2131
2131
|
Ys() && window.document && (rn = window, Se = rn.document, nt = Se.documentElement, Ge = xi("div") || {
|
|
2132
2132
|
style: {}
|
|
2133
|
-
}, xi("div"), $ = ct($), ne = $ + "Origin", Ge.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0",
|
|
2133
|
+
}, xi("div"), $ = ct($), ne = $ + "Origin", Ge.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", vr = !!ct("perspective"), $i = re.core.reverting, Ni = 1);
|
|
2134
2134
|
}, ln = function(e) {
|
|
2135
2135
|
var t = e.ownerSVGElement, i = xi("svg", t && t.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), n = e.cloneNode(!0), r;
|
|
2136
2136
|
n.style.display = "block", i.appendChild(n), nt.appendChild(i);
|
|
@@ -2143,7 +2143,7 @@ var rn, Se, nt, zi, Ge, sn, $i, Ys = function() {
|
|
|
2143
2143
|
for (var i = t.length; i--; )
|
|
2144
2144
|
if (e.hasAttribute(t[i]))
|
|
2145
2145
|
return e.getAttribute(t[i]);
|
|
2146
|
-
},
|
|
2146
|
+
}, Er = function(e) {
|
|
2147
2147
|
var t, i;
|
|
2148
2148
|
try {
|
|
2149
2149
|
t = e.getBBox();
|
|
@@ -2157,7 +2157,7 @@ var rn, Se, nt, zi, Ge, sn, $i, Ys = function() {
|
|
|
2157
2157
|
height: 0
|
|
2158
2158
|
} : t;
|
|
2159
2159
|
}, wr = function(e) {
|
|
2160
|
-
return !!(e.getCTM && (!e.parentNode || e.ownerSVGElement) &&
|
|
2160
|
+
return !!(e.getCTM && (!e.parentNode || e.ownerSVGElement) && Er(e));
|
|
2161
2161
|
}, Ke = function(e, t) {
|
|
2162
2162
|
if (t) {
|
|
2163
2163
|
var i = e.style, n;
|
|
@@ -2189,16 +2189,16 @@ var rn, Se, nt, zi, Ge, sn, $i, Ys = function() {
|
|
|
2189
2189
|
return l && m && (g = He(d), g.time = oe.time, g.width = d[h]), V(p ? f * r / u : f && r ? u / f * r : 0);
|
|
2190
2190
|
}, Ce = function(e, t, i, n) {
|
|
2191
2191
|
var r;
|
|
2192
|
-
return
|
|
2192
|
+
return Ni || bi(), t in xe && t !== "transform" && (t = xe[t], ~t.indexOf(",") && (t = t.split(",")[0])), Ae[t] && t !== "transform" ? (r = Tt(e, n), r = t !== "transformOrigin" ? r[t] : r.svg ? r.origin : jt(ge(e, ne)) + " " + r.zOrigin + "px") : (r = e.style[t], (!r || r === "auto" || n || ~(r + "").indexOf("calc(")) && (r = Ht[t] && Ht[t](e, t, i) || ge(e, t) || Nn(e, t) || (t === "opacity" ? 1 : 0))), i && !~(r + "").trim().indexOf(" ") ? Le(e, t, r, i) + i : r;
|
|
2193
2193
|
}, oa = function(e, t, i, n) {
|
|
2194
2194
|
if (!i || i === "none") {
|
|
2195
2195
|
var r = ct(t, e, 1), s = r && ge(e, r, 1);
|
|
2196
2196
|
s && s !== i ? (t = r, i = s) : t === "borderColor" && (i = ge(e, "borderTopColor"));
|
|
2197
2197
|
}
|
|
2198
|
-
var o = new ie(this._pt, e.style, t, 0, 1, fr), l = 0, c = 0, h, u, p, m, f, d, g, _, y, x,
|
|
2198
|
+
var o = new ie(this._pt, e.style, t, 0, 1, fr), l = 0, c = 0, h, u, p, m, f, d, g, _, y, x, v, b;
|
|
2199
2199
|
if (o.b = i, o.e = n, i += "", n += "", n.substring(0, 6) === "var(--" && (n = ge(e, n.substring(4, n.indexOf(")")))), n === "auto" && (d = e.style[t], e.style[t] = n, n = ge(e, t) || n, d ? e.style[t] = d : Ke(e, t)), h = [i, n], rr(h), i = h[0], n = h[1], p = i.match(Je) || [], b = n.match(Je) || [], b.length) {
|
|
2200
2200
|
for (; u = Je.exec(n); )
|
|
2201
|
-
g = u[0], y = n.substring(l, u.index), f ? f = (f + 1) % 5 : (y.substr(-5) === "rgba(" || y.substr(-5) === "hsla(") && (f = 1), g !== (d = p[c++] || "") && (m = parseFloat(d) || 0,
|
|
2201
|
+
g = u[0], y = n.substring(l, u.index), f ? f = (f + 1) % 5 : (y.substr(-5) === "rgba(" || y.substr(-5) === "hsla(") && (f = 1), g !== (d = p[c++] || "") && (m = parseFloat(d) || 0, v = d.substr((m + "").length), g.charAt(1) === "=" && (g = it(m, g) + v), _ = parseFloat(g), x = g.substr((_ + "").length), l = Je.lastIndex - x.length, x || (x = x || he.units[t] || v, l === n.length && (n += x, o.e += x)), v !== x && (m = Le(e, t, d, x) || 0), o._pt = {
|
|
2202
2202
|
_next: o._pt,
|
|
2203
2203
|
p: y || c === 1 ? y : ",",
|
|
2204
2204
|
//note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.
|
|
@@ -2307,15 +2307,15 @@ var rn, Se, nt, zi, Ge, sn, $i, Ys = function() {
|
|
|
2307
2307
|
}, Gi = function(e, t) {
|
|
2308
2308
|
var i = e._gsap || He(e), n = e.style, r = dn(e), s, o, l, c;
|
|
2309
2309
|
return i.svg && e.getAttribute("transform") ? (l = e.transform.baseVal.consolidate().matrix, r = [l.a, l.b, l.c, l.d, l.e, l.f], r.join(",") === "1,0,0,1,0,0" ? At : r) : (r === At && !e.offsetParent && e !== nt && !i.svg && (l = n.display, n.display = "block", s = e.parentNode, (!s || !e.offsetParent && !e.getBoundingClientRect().width) && (c = 1, o = e.nextElementSibling, nt.appendChild(e)), r = dn(e), l ? n.display = l : Ke(e, "display"), c && (o ? s.insertBefore(e, o) : s ? s.appendChild(e) : nt.removeChild(e))), t && r.length > 6 ? [r[0], r[1], r[4], r[5], r[12], r[13]] : r);
|
|
2310
|
-
},
|
|
2311
|
-
var o = e._gsap, l = r || Gi(e, !0), c = o.xOrigin || 0, h = o.yOrigin || 0, u = o.xOffset || 0, p = o.yOffset || 0, m = l[0], f = l[1], d = l[2], g = l[3], _ = l[4], y = l[5], x = t.split(" "),
|
|
2312
|
-
i ? l !== At && (
|
|
2310
|
+
}, vi = function(e, t, i, n, r, s) {
|
|
2311
|
+
var o = e._gsap, l = r || Gi(e, !0), c = o.xOrigin || 0, h = o.yOrigin || 0, u = o.xOffset || 0, p = o.yOffset || 0, m = l[0], f = l[1], d = l[2], g = l[3], _ = l[4], y = l[5], x = t.split(" "), v = parseFloat(x[0]) || 0, b = parseFloat(x[1]) || 0, C, E, P, w;
|
|
2312
|
+
i ? l !== At && (E = m * g - f * d) && (P = v * (g / E) + b * (-d / E) + (d * y - g * _) / E, w = v * (-f / E) + b * (m / E) - (m * y - f * _) / E, v = P, b = w) : (C = Er(e), v = C.x + (~x[0].indexOf("%") ? v / 100 * C.width : v), b = C.y + (~(x[1] || x[0]).indexOf("%") ? b / 100 * C.height : b)), n || n !== !1 && o.smooth ? (_ = v - c, y = b - h, o.xOffset = u + (_ * m + y * d) - _, o.yOffset = p + (_ * f + y * g) - y) : o.xOffset = o.yOffset = 0, o.xOrigin = v, o.yOrigin = b, o.smooth = !!n, o.origin = t, o.originIsAbsolute = !!i, e.style[ne] = "0px 0px", s && (De(s, o, "xOrigin", c, v), De(s, o, "yOrigin", h, b), De(s, o, "xOffset", u, o.xOffset), De(s, o, "yOffset", p, o.yOffset)), e.setAttribute("data-svg-origin", v + " " + b);
|
|
2313
2313
|
}, Tt = function(e, t) {
|
|
2314
2314
|
var i = e._gsap || new lr(e);
|
|
2315
2315
|
if ("x" in i && !t && !i.uncache)
|
|
2316
2316
|
return i;
|
|
2317
|
-
var n = e.style, r = i.scaleX < 0, s = "px", o = "deg", l = getComputedStyle(e), c = ge(e, ne) || "0", h, u, p, m, f, d, g, _, y, x,
|
|
2318
|
-
return h = u = p = d = g = _ = y = x =
|
|
2317
|
+
var n = e.style, r = i.scaleX < 0, s = "px", o = "deg", l = getComputedStyle(e), c = ge(e, ne) || "0", h, u, p, m, f, d, g, _, y, x, v, b, C, E, P, w, T, M, A, R, O, B, F, U, Q, ut, dt, pt, Ue, ji, Ee, Fe;
|
|
2318
|
+
return h = u = p = d = g = _ = y = x = v = 0, m = f = 1, i.svg = !!(e.getCTM && wr(e)), l.translate && ((l.translate !== "none" || l.scale !== "none" || l.rotate !== "none") && (n[$] = (l.translate !== "none" ? "translate3d(" + (l.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (l.rotate !== "none" ? "rotate(" + l.rotate + ") " : "") + (l.scale !== "none" ? "scale(" + l.scale.split(" ").join(",") + ") " : "") + (l[$] !== "none" ? l[$] : "")), n.scale = n.rotate = n.translate = "none"), E = Gi(e, i.svg), i.svg && (i.uncache ? (Q = e.getBBox(), c = i.xOrigin - Q.x + "px " + (i.yOrigin - Q.y) + "px", U = "") : U = !t && e.getAttribute("data-svg-origin"), vi(e, U || c, !!U || i.originIsAbsolute, i.smooth !== !1, E)), b = i.xOrigin || 0, C = i.yOrigin || 0, E !== At && (M = E[0], A = E[1], R = E[2], O = E[3], h = B = E[4], u = F = E[5], E.length === 6 ? (m = Math.sqrt(M * M + A * A), f = Math.sqrt(O * O + R * R), d = M || A ? We(A, M) * $e : 0, y = R || O ? We(R, O) * $e + d : 0, y && (f *= Math.abs(Math.cos(y * rt))), i.svg && (h -= b - (b * M + C * R), u -= C - (b * A + C * O))) : (Fe = E[6], ji = E[7], dt = E[8], pt = E[9], Ue = E[10], Ee = E[11], h = E[12], u = E[13], p = E[14], P = We(Fe, Ue), g = P * $e, P && (w = Math.cos(-P), T = Math.sin(-P), U = B * w + dt * T, Q = F * w + pt * T, ut = Fe * w + Ue * T, dt = B * -T + dt * w, pt = F * -T + pt * w, Ue = Fe * -T + Ue * w, Ee = ji * -T + Ee * w, B = U, F = Q, Fe = ut), P = We(-R, Ue), _ = P * $e, P && (w = Math.cos(-P), T = Math.sin(-P), U = M * w - dt * T, Q = A * w - pt * T, ut = R * w - Ue * T, Ee = O * T + Ee * w, M = U, A = Q, R = ut), P = We(A, M), d = P * $e, P && (w = Math.cos(P), T = Math.sin(P), U = M * w + A * T, Q = B * w + F * T, A = A * w - M * T, F = F * w - B * T, M = U, B = Q), g && Math.abs(g) + Math.abs(d) > 359.9 && (g = d = 0, _ = 180 - _), m = V(Math.sqrt(M * M + A * A + R * R)), f = V(Math.sqrt(F * F + Fe * Fe)), P = We(B, F), y = Math.abs(P) > 2e-4 ? P * $e : 0, v = Ee ? 1 / (Ee < 0 ? -Ee : Ee) : 0), i.svg && (U = e.getAttribute("transform"), i.forceCSS = e.setAttribute("transform", "") || !Pr(ge(e, $)), U && e.setAttribute("transform", U))), Math.abs(y) > 90 && Math.abs(y) < 270 && (r ? (m *= -1, y += d <= 0 ? 180 : -180, d += d <= 0 ? 180 : -180) : (f *= -1, y += y <= 0 ? 180 : -180)), t = t || i.uncache, i.x = h - ((i.xPercent = h && (!t && i.xPercent || (Math.round(e.offsetWidth / 2) === Math.round(-h) ? -50 : 0))) ? e.offsetWidth * i.xPercent / 100 : 0) + s, i.y = u - ((i.yPercent = u && (!t && i.yPercent || (Math.round(e.offsetHeight / 2) === Math.round(-u) ? -50 : 0))) ? e.offsetHeight * i.yPercent / 100 : 0) + s, i.z = p + s, i.scaleX = V(m), i.scaleY = V(f), i.rotation = V(d) + o, i.rotationX = V(g) + o, i.rotationY = V(_) + o, i.skewX = y + o, i.skewY = x + o, i.transformPerspective = v + s, (i.zOrigin = parseFloat(c.split(" ")[2]) || !t && i.zOrigin || 0) && (n[ne] = jt(c)), i.xOffset = i.yOffset = 0, i.force3D = he.force3D, i.renderTransform = i.svg ? ua : vr ? Ar : ca, i.uncache = 0, i;
|
|
2319
2319
|
}, jt = function(e) {
|
|
2320
2320
|
return (e = e.split(" "))[0] + " " + e[1];
|
|
2321
2321
|
}, ni = function(e, t, i) {
|
|
@@ -2323,16 +2323,16 @@ var rn, Se, nt, zi, Ge, sn, $i, Ys = function() {
|
|
|
2323
2323
|
return V(parseFloat(t) + parseFloat(Le(e, "x", i + "px", n))) + n;
|
|
2324
2324
|
}, ca = function(e, t) {
|
|
2325
2325
|
t.z = "0px", t.rotationY = t.rotationX = "0deg", t.force3D = 0, Ar(e, t);
|
|
2326
|
-
},
|
|
2327
|
-
var i = t || this, n = i.xPercent, r = i.yPercent, s = i.x, o = i.y, l = i.z, c = i.rotation, h = i.rotationY, u = i.rotationX, p = i.skewX, m = i.skewY, f = i.scaleX, d = i.scaleY, g = i.transformPerspective, _ = i.force3D, y = i.target, x = i.zOrigin,
|
|
2328
|
-
if (x && (u !==
|
|
2329
|
-
var C = parseFloat(h) * rt,
|
|
2330
|
-
C = parseFloat(u) * rt, w = Math.cos(C), s = ni(y, s,
|
|
2326
|
+
}, ze = "0deg", ft = "0px", Ne = ") ", Ar = function(e, t) {
|
|
2327
|
+
var i = t || this, n = i.xPercent, r = i.yPercent, s = i.x, o = i.y, l = i.z, c = i.rotation, h = i.rotationY, u = i.rotationX, p = i.skewX, m = i.skewY, f = i.scaleX, d = i.scaleY, g = i.transformPerspective, _ = i.force3D, y = i.target, x = i.zOrigin, v = "", b = _ === "auto" && e && e !== 1 || _ === !0;
|
|
2328
|
+
if (x && (u !== ze || h !== ze)) {
|
|
2329
|
+
var C = parseFloat(h) * rt, E = Math.sin(C), P = Math.cos(C), w;
|
|
2330
|
+
C = parseFloat(u) * rt, w = Math.cos(C), s = ni(y, s, E * w * -x), o = ni(y, o, -Math.sin(C) * -x), l = ni(y, l, P * w * -x + x);
|
|
2331
2331
|
}
|
|
2332
|
-
g !== ft && (
|
|
2332
|
+
g !== ft && (v += "perspective(" + g + Ne), (n || r) && (v += "translate(" + n + "%, " + r + "%) "), (b || s !== ft || o !== ft || l !== ft) && (v += l !== ft || b ? "translate3d(" + s + ", " + o + ", " + l + ") " : "translate(" + s + ", " + o + Ne), c !== ze && (v += "rotate(" + c + Ne), h !== ze && (v += "rotateY(" + h + Ne), u !== ze && (v += "rotateX(" + u + Ne), (p !== ze || m !== ze) && (v += "skew(" + p + ", " + m + Ne), (f !== 1 || d !== 1) && (v += "scale(" + f + ", " + d + Ne), y.style[$] = v || "translate(0, 0)";
|
|
2333
2333
|
}, ua = function(e, t) {
|
|
2334
|
-
var i = t || this, n = i.xPercent, r = i.yPercent, s = i.x, o = i.y, l = i.rotation, c = i.skewX, h = i.skewY, u = i.scaleX, p = i.scaleY, m = i.target, f = i.xOrigin, d = i.yOrigin, g = i.xOffset, _ = i.yOffset, y = i.forceCSS, x = parseFloat(s),
|
|
2335
|
-
l = parseFloat(l), c = parseFloat(c), h = parseFloat(h), h && (h = parseFloat(h), c += h, l += h), l || c ? (l *= rt, c *= rt, b = Math.cos(l) * u, C = Math.sin(l) * u,
|
|
2334
|
+
var i = t || this, n = i.xPercent, r = i.yPercent, s = i.x, o = i.y, l = i.rotation, c = i.skewX, h = i.skewY, u = i.scaleX, p = i.scaleY, m = i.target, f = i.xOrigin, d = i.yOrigin, g = i.xOffset, _ = i.yOffset, y = i.forceCSS, x = parseFloat(s), v = parseFloat(o), b, C, E, P, w;
|
|
2335
|
+
l = parseFloat(l), c = parseFloat(c), h = parseFloat(h), h && (h = parseFloat(h), c += h, l += h), l || c ? (l *= rt, c *= rt, b = Math.cos(l) * u, C = Math.sin(l) * u, E = Math.sin(l - c) * -p, P = Math.cos(l - c) * p, c && (h *= rt, w = Math.tan(c - h), w = Math.sqrt(1 + w * w), E *= w, P *= w, h && (w = Math.tan(h), w = Math.sqrt(1 + w * w), b *= w, C *= w)), b = V(b), C = V(C), E = V(E), P = V(P)) : (b = u, P = p, C = E = 0), (x && !~(s + "").indexOf("px") || v && !~(o + "").indexOf("px")) && (x = Le(m, "x", s, "px"), v = Le(m, "y", o, "px")), (f || d || g || _) && (x = V(x + f - (f * b + d * E) + g), v = V(v + d - (f * C + d * P) + _)), (n || r) && (w = m.getBBox(), x = V(x + n / 100 * w.width), v = V(v + r / 100 * w.height)), w = "matrix(" + b + "," + C + "," + E + "," + P + "," + x + "," + v + ")", m.setAttribute("transform", w), y && (m.style[$] = w);
|
|
2336
2336
|
}, da = function(e, t, i, n, r) {
|
|
2337
2337
|
var s = 360, o = Z(r), l = parseFloat(r) * (o && ~r.indexOf("rad") ? $e : 1), c = l - n, h = n + c + "deg", u, p;
|
|
2338
2338
|
return o && (u = r.split("_")[1], u === "short" && (c %= s, c !== c % (s / 2) && (c += c < 0 ? s : -s)), u === "cw" && c < 0 ? c = (c + s * an) % s - ~~(c / s) * s : u === "ccw" && c > 0 && (c = (c - s * an) % s - ~~(c / s) * s)), e._pt = p = new ie(e._pt, t, i, n, c, Xs), p.e = h, p.u = "deg", e._props.push(i), p;
|
|
@@ -2369,23 +2369,23 @@ var Tr = {
|
|
|
2369
2369
|
return e.style && e.nodeType;
|
|
2370
2370
|
},
|
|
2371
2371
|
init: function(e, t, i, n, r) {
|
|
2372
|
-
var s = this._props, o = e.style, l = i.vars.startAt, c, h, u, p, m, f, d, g, _, y, x,
|
|
2373
|
-
|
|
2372
|
+
var s = this._props, o = e.style, l = i.vars.startAt, c, h, u, p, m, f, d, g, _, y, x, v, b, C, E, P;
|
|
2373
|
+
Ni || bi(), this.styles = this.styles || br(e), P = this.styles.props, this.tween = i;
|
|
2374
2374
|
for (d in t)
|
|
2375
2375
|
if (d !== "autoRound" && (h = t[d], !(ae[d] && hr(d, t, i, n, e, r)))) {
|
|
2376
2376
|
if (m = typeof h, f = Ht[d], m === "function" && (h = h.call(i, n, e, r), m = typeof h), m === "string" && ~h.indexOf("random(") && (h = wt(h)), f)
|
|
2377
|
-
f(this, e, d, h, i) && (
|
|
2377
|
+
f(this, e, d, h, i) && (E = 1);
|
|
2378
2378
|
else if (d.substr(0, 2) === "--")
|
|
2379
2379
|
c = (getComputedStyle(e).getPropertyValue(d) + "").trim(), h += "", Oe.lastIndex = 0, Oe.test(c) || (g = X(c), _ = X(h)), _ ? g !== _ && (c = Le(e, d, c, _) + _) : g && (h += g), this.add(o, "setProperty", c, h, n, r, 0, 0, d), s.push(d), P.push(d, 0, o[d]);
|
|
2380
2380
|
else if (m !== "undefined") {
|
|
2381
2381
|
if (l && d in l ? (c = typeof l[d] == "function" ? l[d].call(i, n, e, r) : l[d], Z(c) && ~c.indexOf("random(") && (c = wt(c)), X(c + "") || c === "auto" || (c += he.units[d] || X(Ce(e, d)) || ""), (c + "").charAt(1) === "=" && (c = Ce(e, d))) : c = Ce(e, d), p = parseFloat(c), y = m === "string" && h.charAt(1) === "=" && h.substr(0, 2), y && (h = h.substr(2)), u = parseFloat(h), d in xe && (d === "autoAlpha" && (p === 1 && Ce(e, "visibility") === "hidden" && u && (p = 0), P.push("visibility", 0, o.visibility), De(this, o, "visibility", p ? "inherit" : "hidden", u ? "inherit" : "hidden", !u)), d !== "scale" && d !== "transform" && (d = xe[d], ~d.indexOf(",") && (d = d.split(",")[0]))), x = d in Ae, x) {
|
|
2382
|
-
if (this.styles.save(d), m === "string" && h.substring(0, 6) === "var(--" && (h = ge(e, h.substring(4, h.indexOf(")"))), u = parseFloat(h)),
|
|
2382
|
+
if (this.styles.save(d), m === "string" && h.substring(0, 6) === "var(--" && (h = ge(e, h.substring(4, h.indexOf(")"))), u = parseFloat(h)), v || (b = e._gsap, b.renderTransform && !t.parseTransform || Tt(e, t.parseTransform), C = t.smoothOrigin !== !1 && b.smooth, v = this._pt = new ie(this._pt, o, $, 0, 1, b.renderTransform, b, 0, -1), v.dep = 1), d === "scale")
|
|
2383
2383
|
this._pt = new ie(this._pt, b, "scaleY", b.scaleY, (y ? it(b.scaleY, y + u) : u) - b.scaleY || 0, yi), this._pt.u = 0, s.push("scaleY", d), d += "X";
|
|
2384
2384
|
else if (d === "transformOrigin") {
|
|
2385
|
-
P.push(ne, 0, o[ne]), h = la(h), b.svg ?
|
|
2385
|
+
P.push(ne, 0, o[ne]), h = la(h), b.svg ? vi(e, h, 0, C, 0, this) : (_ = parseFloat(h.split(" ")[2]) || 0, _ !== b.zOrigin && De(this, b, "zOrigin", b.zOrigin, _), De(this, o, d, jt(c), jt(h)));
|
|
2386
2386
|
continue;
|
|
2387
2387
|
} else if (d === "svgOrigin") {
|
|
2388
|
-
|
|
2388
|
+
vi(e, h, 1, C, 0, this);
|
|
2389
2389
|
continue;
|
|
2390
2390
|
} else if (d in Cr) {
|
|
2391
2391
|
da(this, b, d, p, y ? it(p, y + h) : h);
|
|
@@ -2414,7 +2414,7 @@ var Tr = {
|
|
|
2414
2414
|
x || (d in o ? P.push(d, 0, o[d]) : typeof e[d] == "function" ? P.push(d, 2, e[d]()) : P.push(d, 1, c || e[d])), s.push(d);
|
|
2415
2415
|
}
|
|
2416
2416
|
}
|
|
2417
|
-
|
|
2417
|
+
E && mr(this);
|
|
2418
2418
|
},
|
|
2419
2419
|
render: function(e, t) {
|
|
2420
2420
|
if (t.tween._time || !$i())
|
|
@@ -2689,15 +2689,15 @@ class fa extends be {
|
|
|
2689
2689
|
return this.$input.checked = this.getValue(), this;
|
|
2690
2690
|
}
|
|
2691
2691
|
}
|
|
2692
|
-
function
|
|
2692
|
+
function Ei(a) {
|
|
2693
2693
|
let e, t;
|
|
2694
2694
|
return (e = a.match(/(#|0x)?([a-f0-9]{6})/i)) ? t = e[2] : (e = a.match(/rgb\(\s*(\d*)\s*,\s*(\d*)\s*,\s*(\d*)\s*\)/)) ? t = parseInt(e[1]).toString(16).padStart(2, 0) + parseInt(e[2]).toString(16).padStart(2, 0) + parseInt(e[3]).toString(16).padStart(2, 0) : (e = a.match(/^#?([a-f0-9])([a-f0-9])([a-f0-9])$/i)) && (t = e[1] + e[1] + e[2] + e[2] + e[3] + e[3]), t ? "#" + t : !1;
|
|
2695
2695
|
}
|
|
2696
2696
|
const ma = {
|
|
2697
2697
|
isPrimitive: !0,
|
|
2698
2698
|
match: (a) => typeof a == "string",
|
|
2699
|
-
fromHexString:
|
|
2700
|
-
toHexString:
|
|
2699
|
+
fromHexString: Ei,
|
|
2700
|
+
toHexString: Ei
|
|
2701
2701
|
}, St = {
|
|
2702
2702
|
isPrimitive: !0,
|
|
2703
2703
|
match: (a) => typeof a == "number",
|
|
@@ -2738,7 +2738,7 @@ class ba extends be {
|
|
|
2738
2738
|
}), this.$input.addEventListener("blur", () => {
|
|
2739
2739
|
this._callOnFinishChange();
|
|
2740
2740
|
}), this.$text.addEventListener("input", () => {
|
|
2741
|
-
const r =
|
|
2741
|
+
const r = Ei(this.$text.value);
|
|
2742
2742
|
r && this._setValueFromHexString(r);
|
|
2743
2743
|
}), this.$text.addEventListener("focus", () => {
|
|
2744
2744
|
this._textFocused = !0, this.$text.select();
|
|
@@ -2774,7 +2774,7 @@ class ri extends be {
|
|
|
2774
2774
|
}, { passive: !0 }), this.$disable = this.$button;
|
|
2775
2775
|
}
|
|
2776
2776
|
}
|
|
2777
|
-
class
|
|
2777
|
+
class va extends be {
|
|
2778
2778
|
constructor(e, t, i, n, r, s) {
|
|
2779
2779
|
super(e, t, i, "lil-number"), this._initInput(), this.min(n), this.max(r);
|
|
2780
2780
|
const o = s !== void 0;
|
|
@@ -2818,8 +2818,8 @@ class Ea extends be {
|
|
|
2818
2818
|
o = y.clientX, l = c = y.clientY, s = !0, h = this.getValue(), u = 0, window.addEventListener("mousemove", f), window.addEventListener("mouseup", d);
|
|
2819
2819
|
}, f = (y) => {
|
|
2820
2820
|
if (s) {
|
|
2821
|
-
const x = y.clientX - o,
|
|
2822
|
-
Math.abs(
|
|
2821
|
+
const x = y.clientX - o, v = y.clientY - l;
|
|
2822
|
+
Math.abs(v) > p ? (y.preventDefault(), this.$input.blur(), s = !1, this._setDraggingStyle(!0, "vertical")) : Math.abs(x) > p && d();
|
|
2823
2823
|
}
|
|
2824
2824
|
if (!s) {
|
|
2825
2825
|
const x = y.clientY - c;
|
|
@@ -2837,7 +2837,7 @@ class Ea extends be {
|
|
|
2837
2837
|
}
|
|
2838
2838
|
_initSlider() {
|
|
2839
2839
|
this._hasSlider = !0, this.$slider = document.createElement("div"), this.$slider.classList.add("lil-slider"), this.$fill = document.createElement("div"), this.$fill.classList.add("lil-fill"), this.$slider.appendChild(this.$fill), this.$widget.insertBefore(this.$slider, this.$input), this.domElement.classList.add("lil-has-slider");
|
|
2840
|
-
const e = (_, y, x,
|
|
2840
|
+
const e = (_, y, x, v, b) => (_ - y) / (x - y) * (b - v) + v, t = (_) => {
|
|
2841
2841
|
const y = this.$slider.getBoundingClientRect();
|
|
2842
2842
|
let x = e(_, y.left, y.right, this._min, this._max);
|
|
2843
2843
|
this._snapClampSetValue(x);
|
|
@@ -2909,7 +2909,7 @@ class Ea extends be {
|
|
|
2909
2909
|
return this._max !== void 0;
|
|
2910
2910
|
}
|
|
2911
2911
|
}
|
|
2912
|
-
class
|
|
2912
|
+
class Ea extends be {
|
|
2913
2913
|
constructor(e, t, i, n) {
|
|
2914
2914
|
super(e, t, i, "lil-option"), this.$select = document.createElement("select"), this.$select.setAttribute("aria-labelledby", this.$name.id), this.$display = document.createElement("div"), this.$display.classList.add("lil-display"), this.$select.addEventListener("change", () => {
|
|
2915
2915
|
this.setValue(this._values[this.$select.selectedIndex]), this._callOnFinishChange();
|
|
@@ -3441,11 +3441,11 @@ class Vi {
|
|
|
3441
3441
|
*/
|
|
3442
3442
|
add(e, t, i, n, r) {
|
|
3443
3443
|
if (Object(i) === i)
|
|
3444
|
-
return new
|
|
3444
|
+
return new Ea(this, e, t, i);
|
|
3445
3445
|
const s = e[t];
|
|
3446
3446
|
switch (typeof s) {
|
|
3447
3447
|
case "number":
|
|
3448
|
-
return new
|
|
3448
|
+
return new va(this, e, t, i, n, r);
|
|
3449
3449
|
case "boolean":
|
|
3450
3450
|
return new fa(this, e, t);
|
|
3451
3451
|
case "string":
|
|
@@ -4349,63 +4349,108 @@ function Ua() {
|
|
|
4349
4349
|
a.setAttribute("data-gralobe-legend", "true"), a.textContent = `
|
|
4350
4350
|
.gralobe-legend {
|
|
4351
4351
|
position: absolute;
|
|
4352
|
-
bottom:
|
|
4353
|
-
left:
|
|
4352
|
+
bottom: 10px;
|
|
4353
|
+
left: 10px;
|
|
4354
4354
|
background: rgba(0, 10, 20, 0.92);
|
|
4355
4355
|
border: 1px solid rgba(100, 150, 200, 0.3);
|
|
4356
|
-
border-radius:
|
|
4357
|
-
padding:
|
|
4358
|
-
min-width: 160px;
|
|
4359
|
-
max-width: 280px;
|
|
4356
|
+
border-radius: 6px;
|
|
4357
|
+
padding: 8px 12px;
|
|
4360
4358
|
font-family: system-ui, -apple-system, sans-serif;
|
|
4361
4359
|
color: #ddd;
|
|
4362
4360
|
opacity: 0;
|
|
4363
|
-
transform: translateY(8px);
|
|
4361
|
+
transform: translateY(8px) scale(0.95);
|
|
4364
4362
|
transition: opacity 0.3s ease, transform 0.3s ease;
|
|
4365
4363
|
pointer-events: none;
|
|
4366
4364
|
z-index: 50;
|
|
4365
|
+
transform-origin: bottom left;
|
|
4367
4366
|
}
|
|
4368
4367
|
|
|
4369
4368
|
.gralobe-legend.visible {
|
|
4370
4369
|
opacity: 1;
|
|
4371
|
-
transform: translateY(0);
|
|
4370
|
+
transform: translateY(0) scale(1);
|
|
4372
4371
|
pointer-events: auto;
|
|
4373
4372
|
}
|
|
4374
4373
|
|
|
4374
|
+
/* Size variants based on container size */
|
|
4375
|
+
.gralobe-legend.size-lg {
|
|
4376
|
+
padding: 10px 14px;
|
|
4377
|
+
min-width: 180px;
|
|
4378
|
+
max-width: 280px;
|
|
4379
|
+
border-radius: 8px;
|
|
4380
|
+
bottom: 15px;
|
|
4381
|
+
left: 15px;
|
|
4382
|
+
}
|
|
4383
|
+
.gralobe-legend.size-lg .gralobe-legend-title { font-size: 13px; margin-bottom: 6px; }
|
|
4384
|
+
.gralobe-legend.size-lg .gralobe-legend-gradient { height: 10px; margin-bottom: 4px; }
|
|
4385
|
+
.gralobe-legend.size-lg .gralobe-legend-labels { font-size: 10px; margin-bottom: 6px; }
|
|
4386
|
+
.gralobe-legend.size-lg .gralobe-legend-description { font-size: 10px; }
|
|
4387
|
+
.gralobe-legend.size-lg .gralobe-legend-hint { font-size: 9px; margin-bottom: 6px; padding-bottom: 5px; }
|
|
4388
|
+
|
|
4389
|
+
.gralobe-legend.size-md {
|
|
4390
|
+
padding: 7px 10px;
|
|
4391
|
+
min-width: 140px;
|
|
4392
|
+
max-width: 220px;
|
|
4393
|
+
bottom: 10px;
|
|
4394
|
+
left: 10px;
|
|
4395
|
+
}
|
|
4396
|
+
.gralobe-legend.size-md .gralobe-legend-title { font-size: 11px; margin-bottom: 4px; }
|
|
4397
|
+
.gralobe-legend.size-md .gralobe-legend-gradient { height: 8px; margin-bottom: 3px; }
|
|
4398
|
+
.gralobe-legend.size-md .gralobe-legend-labels { font-size: 9px; margin-bottom: 4px; }
|
|
4399
|
+
.gralobe-legend.size-md .gralobe-legend-description { font-size: 9px; }
|
|
4400
|
+
.gralobe-legend.size-md .gralobe-legend-hint { font-size: 8px; margin-bottom: 4px; padding-bottom: 4px; }
|
|
4401
|
+
|
|
4402
|
+
.gralobe-legend.size-sm {
|
|
4403
|
+
padding: 5px 8px;
|
|
4404
|
+
min-width: 100px;
|
|
4405
|
+
max-width: 160px;
|
|
4406
|
+
border-radius: 4px;
|
|
4407
|
+
bottom: 6px;
|
|
4408
|
+
left: 6px;
|
|
4409
|
+
}
|
|
4410
|
+
.gralobe-legend.size-sm .gralobe-legend-title { font-size: 10px; margin-bottom: 3px; }
|
|
4411
|
+
.gralobe-legend.size-sm .gralobe-legend-gradient { height: 6px; margin-bottom: 2px; border-radius: 2px; }
|
|
4412
|
+
.gralobe-legend.size-sm .gralobe-legend-labels { font-size: 8px; margin-bottom: 0; }
|
|
4413
|
+
.gralobe-legend.size-sm .gralobe-legend-description { display: none; }
|
|
4414
|
+
.gralobe-legend.size-sm .gralobe-legend-hint { display: none; }
|
|
4415
|
+
|
|
4416
|
+
.gralobe-legend.size-xs {
|
|
4417
|
+
padding: 4px 6px;
|
|
4418
|
+
min-width: 70px;
|
|
4419
|
+
max-width: 120px;
|
|
4420
|
+
border-radius: 3px;
|
|
4421
|
+
bottom: 4px;
|
|
4422
|
+
left: 4px;
|
|
4423
|
+
}
|
|
4424
|
+
.gralobe-legend.size-xs .gralobe-legend-title { font-size: 8px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
4425
|
+
.gralobe-legend.size-xs .gralobe-legend-gradient { height: 4px; margin-bottom: 2px; border-radius: 1px; }
|
|
4426
|
+
.gralobe-legend.size-xs .gralobe-legend-labels { font-size: 7px; margin-bottom: 0; }
|
|
4427
|
+
.gralobe-legend.size-xs .gralobe-legend-description { display: none; }
|
|
4428
|
+
.gralobe-legend.size-xs .gralobe-legend-hint { display: none; }
|
|
4429
|
+
|
|
4375
4430
|
.gralobe-legend-title {
|
|
4376
|
-
font-size: 13px;
|
|
4377
4431
|
font-weight: 600;
|
|
4378
|
-
margin-bottom: 6px;
|
|
4379
4432
|
color: #4af;
|
|
4380
4433
|
line-height: 1.3;
|
|
4381
4434
|
}
|
|
4382
4435
|
|
|
4383
4436
|
.gralobe-legend-gradient {
|
|
4384
|
-
height: 10px;
|
|
4385
4437
|
border-radius: 3px;
|
|
4386
|
-
margin-bottom: 4px;
|
|
4387
4438
|
}
|
|
4388
4439
|
|
|
4389
4440
|
.gralobe-legend-labels {
|
|
4390
4441
|
display: flex;
|
|
4391
4442
|
justify-content: space-between;
|
|
4392
|
-
font-size: 10px;
|
|
4393
4443
|
color: #aaa;
|
|
4394
|
-
margin-bottom: 6px;
|
|
4395
4444
|
}
|
|
4396
4445
|
|
|
4397
4446
|
.gralobe-legend-description {
|
|
4398
|
-
|
|
4399
|
-
color: #777;
|
|
4447
|
+
color: #666;
|
|
4400
4448
|
font-style: italic;
|
|
4401
|
-
line-height: 1.
|
|
4449
|
+
line-height: 1.3;
|
|
4402
4450
|
}
|
|
4403
4451
|
|
|
4404
4452
|
.gralobe-legend-hint {
|
|
4405
|
-
|
|
4406
|
-
color: #555;
|
|
4407
|
-
margin-bottom: 6px;
|
|
4408
|
-
padding-bottom: 5px;
|
|
4453
|
+
color: #444;
|
|
4409
4454
|
border-bottom: 1px solid rgba(100, 150, 200, 0.15);
|
|
4410
4455
|
}
|
|
4411
4456
|
`, document.head.appendChild(a);
|
|
@@ -4414,9 +4459,10 @@ class Fa {
|
|
|
4414
4459
|
element;
|
|
4415
4460
|
parentContainer;
|
|
4416
4461
|
visible = !1;
|
|
4462
|
+
resizeObserver = null;
|
|
4417
4463
|
constructor(e) {
|
|
4418
4464
|
Ua(), this.parentContainer = e, getComputedStyle(e).position === "static" && (e.style.position = "relative"), this.element = document.createElement("div"), this.element.className = "gralobe-legend", this.element.setAttribute("data-testid", "globe-legend"), this.element.innerHTML = `
|
|
4419
|
-
<div class="gralobe-legend-hint">G:
|
|
4465
|
+
<div class="gralobe-legend-hint">G: view · F: fullscreen</div>
|
|
4420
4466
|
<div class="gralobe-legend-title" data-testid="legend-title"></div>
|
|
4421
4467
|
<div class="gralobe-legend-gradient"></div>
|
|
4422
4468
|
<div class="gralobe-legend-labels">
|
|
@@ -4424,7 +4470,15 @@ class Fa {
|
|
|
4424
4470
|
<span class="gralobe-legend-max" data-testid="legend-max"></span>
|
|
4425
4471
|
</div>
|
|
4426
4472
|
<div class="gralobe-legend-description" data-testid="legend-description"></div>
|
|
4427
|
-
`, e.appendChild(this.element);
|
|
4473
|
+
`, e.appendChild(this.element), this.updateSize(), this.resizeObserver = new ResizeObserver(() => this.updateSize()), this.resizeObserver.observe(e);
|
|
4474
|
+
}
|
|
4475
|
+
getSizeClass(e, t) {
|
|
4476
|
+
const i = Math.min(e, t);
|
|
4477
|
+
return i < 200 ? "xs" : i < 300 ? "sm" : i < 450 ? "md" : "lg";
|
|
4478
|
+
}
|
|
4479
|
+
updateSize() {
|
|
4480
|
+
const e = this.parentContainer.clientWidth, t = this.parentContainer.clientHeight, i = this.getSizeClass(e, t);
|
|
4481
|
+
this.element.classList.remove("size-xs", "size-sm", "size-md", "size-lg"), this.element.classList.add(`size-${i}`);
|
|
4428
4482
|
}
|
|
4429
4483
|
show(e) {
|
|
4430
4484
|
const t = this.element.querySelector(".gralobe-legend-title"), i = this.element.querySelector(".gralobe-legend-gradient"), n = this.element.querySelector(".gralobe-legend-min"), r = this.element.querySelector(".gralobe-legend-max"), s = this.element.querySelector(".gralobe-legend-description");
|
|
@@ -4444,10 +4498,10 @@ class Fa {
|
|
|
4444
4498
|
return this.element;
|
|
4445
4499
|
}
|
|
4446
4500
|
dispose() {
|
|
4447
|
-
this.element.remove();
|
|
4501
|
+
this.resizeObserver?.disconnect(), this.element.remove();
|
|
4448
4502
|
}
|
|
4449
4503
|
}
|
|
4450
|
-
var
|
|
4504
|
+
var za = { trailer: 59 };
|
|
4451
4505
|
function Mr(a = 256) {
|
|
4452
4506
|
let e = 0, t = new Uint8Array(a);
|
|
4453
4507
|
return { get buffer() {
|
|
@@ -4475,15 +4529,15 @@ function Mr(a = 256) {
|
|
|
4475
4529
|
t = new Uint8Array(n), e > 0 && t.set(o.subarray(0, e), 0);
|
|
4476
4530
|
}
|
|
4477
4531
|
}
|
|
4478
|
-
var si = 12, yn = 5003,
|
|
4532
|
+
var si = 12, yn = 5003, Na = [0, 1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047, 4095, 8191, 16383, 32767, 65535];
|
|
4479
4533
|
function $a(a, e, t, i, n = Mr(512), r = new Uint8Array(256), s = new Int32Array(yn), o = new Int32Array(yn)) {
|
|
4480
4534
|
let l = s.length, c = Math.max(2, i);
|
|
4481
4535
|
r.fill(0), o.fill(0), s.fill(-1);
|
|
4482
|
-
let h = 0, u = 0, p = c + 1, m = p, f = !1, d = m, g = (1 << d) - 1, _ = 1 << p - 1, y = _ + 1, x = _ + 2,
|
|
4536
|
+
let h = 0, u = 0, p = c + 1, m = p, f = !1, d = m, g = (1 << d) - 1, _ = 1 << p - 1, y = _ + 1, x = _ + 2, v = 0, b = t[0], C = 0;
|
|
4483
4537
|
for (let w = l; w < 65536; w *= 2) ++C;
|
|
4484
4538
|
C = 8 - C, n.writeByte(c), P(_);
|
|
4485
|
-
let
|
|
4486
|
-
for (let w = 1; w <
|
|
4539
|
+
let E = t.length;
|
|
4540
|
+
for (let w = 1; w < E; w++)
|
|
4487
4541
|
e: {
|
|
4488
4542
|
let T = t[w], M = (T << si) + b, A = T << C ^ b;
|
|
4489
4543
|
if (s[A] === M) {
|
|
@@ -4499,10 +4553,10 @@ function $a(a, e, t, i, n = Mr(512), r = new Uint8Array(256), s = new Int32Array
|
|
|
4499
4553
|
}
|
|
4500
4554
|
return P(b), P(y), n.writeByte(0), n.bytesView();
|
|
4501
4555
|
function P(w) {
|
|
4502
|
-
for (h &=
|
|
4556
|
+
for (h &= Na[u], u > 0 ? h |= w << u : h = w, u += d; u >= 8; ) r[v++] = h & 255, v >= 254 && (n.writeByte(v), n.writeBytesView(r, 0, v), v = 0), h >>= 8, u -= 8;
|
|
4503
4557
|
if ((x > g || f) && (f ? (d = m, g = (1 << d) - 1, f = !1) : (++d, g = d === si ? 1 << d : (1 << d) - 1)), w == y) {
|
|
4504
|
-
for (; u > 0; ) r[
|
|
4505
|
-
|
|
4558
|
+
for (; u > 0; ) r[v++] = h & 255, v >= 254 && (n.writeByte(v), n.writeBytesView(r, 0, v), v = 0), h >>= 8, u -= 8;
|
|
4559
|
+
v > 0 && (n.writeByte(v), n.writeBytesView(r, 0, v), v = 0);
|
|
4506
4560
|
}
|
|
4507
4561
|
}
|
|
4508
4562
|
}
|
|
@@ -4519,7 +4573,7 @@ function Ir(a, e, t) {
|
|
|
4519
4573
|
function Lt(a, e, t) {
|
|
4520
4574
|
return a < e ? e : a > t ? t : a;
|
|
4521
4575
|
}
|
|
4522
|
-
function
|
|
4576
|
+
function zt(a) {
|
|
4523
4577
|
return a * a;
|
|
4524
4578
|
}
|
|
4525
4579
|
function xn(a, e, t) {
|
|
@@ -4531,7 +4585,7 @@ function xn(a, e, t) {
|
|
|
4531
4585
|
let p = a[h], m = p.cnt, f = s * m / (s + m);
|
|
4532
4586
|
if (!(f >= n)) {
|
|
4533
4587
|
var u = 0;
|
|
4534
|
-
u += f *
|
|
4588
|
+
u += f * zt(p.rc - o), !(u >= n) && (u += f * zt(p.gc - l), !(u >= n) && (u += f * zt(p.bc - c), !(u >= n) && (n = u, i = h)));
|
|
4535
4589
|
}
|
|
4536
4590
|
}
|
|
4537
4591
|
r.err = n, r.nn = i;
|
|
@@ -4567,28 +4621,28 @@ function Va(a, e, t = {}) {
|
|
|
4567
4621
|
h && (O.ac *= _), O.rc *= _, O.gc *= _, O.bc *= _, u[d++] = O;
|
|
4568
4622
|
}
|
|
4569
4623
|
}
|
|
4570
|
-
|
|
4624
|
+
zt(e) / d < 0.022 && (c = !1);
|
|
4571
4625
|
for (var g = 0; g < d - 1; ++g) u[g].fw = g + 1, u[g + 1].bk = g, c && (u[g].cnt = Math.sqrt(u[g].cnt));
|
|
4572
4626
|
c && (u[g].cnt = Math.sqrt(u[g].cnt));
|
|
4573
|
-
var y, x,
|
|
4627
|
+
var y, x, v;
|
|
4574
4628
|
for (g = 0; g < d; ++g) {
|
|
4575
4629
|
xn(u, g);
|
|
4576
4630
|
var b = u[g].err;
|
|
4577
|
-
for (x = ++f[0]; x > 1 && (
|
|
4631
|
+
for (x = ++f[0]; x > 1 && (v = x >> 1, !(u[y = f[v]].err <= b)); x = v) f[x] = y;
|
|
4578
4632
|
f[x] = g;
|
|
4579
4633
|
}
|
|
4580
4634
|
var C = d - e;
|
|
4581
4635
|
for (g = 0; g < C; ) {
|
|
4582
|
-
for (var
|
|
4636
|
+
for (var E; ; ) {
|
|
4583
4637
|
var P = f[1];
|
|
4584
|
-
if (
|
|
4585
|
-
|
|
4638
|
+
if (E = u[P], E.tm >= E.mtm && u[E.nn].mtm <= E.tm) break;
|
|
4639
|
+
E.mtm == m ? P = f[1] = f[f[0]--] : (xn(u, P), E.tm = g);
|
|
4586
4640
|
var b = u[P].err;
|
|
4587
|
-
for (x = 1; (
|
|
4641
|
+
for (x = 1; (v = x + x) <= f[0] && (v < f[0] && u[f[v]].err > u[f[v + 1]].err && v++, !(b <= u[y = f[v]].err)); x = v) f[x] = y;
|
|
4588
4642
|
f[x] = P;
|
|
4589
4643
|
}
|
|
4590
|
-
var w = u[
|
|
4591
|
-
h && (
|
|
4644
|
+
var w = u[E.nn], T = E.cnt, M = w.cnt, _ = 1 / (T + M);
|
|
4645
|
+
h && (E.ac = _ * (T * E.ac + M * w.ac)), E.rc = _ * (T * E.rc + M * w.rc), E.gc = _ * (T * E.gc + M * w.gc), E.bc = _ * (T * E.bc + M * w.bc), E.cnt += w.cnt, E.mtm = ++g, u[w.bk].fw = w.fw, u[w.fw].bk = w.bk, w.mtm = m;
|
|
4592
4646
|
}
|
|
4593
4647
|
let A = [];
|
|
4594
4648
|
var R = 0;
|
|
@@ -4659,7 +4713,7 @@ function Ka(a = {}) {
|
|
|
4659
4713
|
return { reset() {
|
|
4660
4714
|
i.reset(), l = !1;
|
|
4661
4715
|
}, finish() {
|
|
4662
|
-
i.writeByte(
|
|
4716
|
+
i.writeByte(za.trailer);
|
|
4663
4717
|
}, bytes() {
|
|
4664
4718
|
return i.bytes();
|
|
4665
4719
|
}, bytesView() {
|
|
@@ -4669,15 +4723,15 @@ function Ka(a = {}) {
|
|
|
4669
4723
|
}, get stream() {
|
|
4670
4724
|
return i;
|
|
4671
4725
|
}, writeHeader: c, writeFrame(h, u, p, m = {}) {
|
|
4672
|
-
let { transparent: f = !1, transparentIndex: d = 0, delay: g = 0, palette: _ = null, repeat: y = 0, colorDepth: x = 8, dispose:
|
|
4726
|
+
let { transparent: f = !1, transparentIndex: d = 0, delay: g = 0, palette: _ = null, repeat: y = 0, colorDepth: x = 8, dispose: v = -1 } = m, b = !1;
|
|
4673
4727
|
if (t ? l || (b = !0, c(), l = !0) : b = !!m.first, u = Math.max(0, Math.floor(u)), p = Math.max(0, Math.floor(p)), b) {
|
|
4674
4728
|
if (!_) throw new Error("First frame must include a { palette } option");
|
|
4675
4729
|
Wa(i, u, p, _, x), bn(i, _), y >= 0 && qa(i, y);
|
|
4676
4730
|
}
|
|
4677
4731
|
let C = Math.round(g / 10);
|
|
4678
|
-
Xa(i,
|
|
4679
|
-
let
|
|
4680
|
-
Qa(i, u, p,
|
|
4732
|
+
Xa(i, v, C, f, d);
|
|
4733
|
+
let E = !!_ && !b;
|
|
4734
|
+
Qa(i, u, p, E ? _ : null), E && bn(i, _), Ja(i, h, u, p, x, r, s, o);
|
|
4681
4735
|
} };
|
|
4682
4736
|
function c() {
|
|
4683
4737
|
Lr(i, "GIF89a");
|
|
@@ -4780,25 +4834,25 @@ class eo {
|
|
|
4780
4834
|
if (!r || !s) return;
|
|
4781
4835
|
const h = 280, u = 100, p = 20, m = t - h - p, f = i - u - p, d = 12;
|
|
4782
4836
|
e.fillStyle = "rgba(0, 10, 20, 0.9)", e.strokeStyle = "rgba(100, 170, 255, 0.5)", e.lineWidth = 2, e.beginPath(), e.roundRect ? e.roundRect(m, f, h, u, d) : e.rect(m, f, h, u), e.fill(), e.stroke(), e.fillStyle = "#44aaff", e.font = "bold 18px Arial, sans-serif", e.fillText(r.textContent || "", m + 16, f + 28);
|
|
4783
|
-
const g = m + 16, _ = f + 40, y = h - 32, x = 20,
|
|
4837
|
+
const g = m + 16, _ = f + 40, y = h - 32, x = 20, v = s.style.background || "";
|
|
4784
4838
|
let b = [];
|
|
4785
|
-
const C =
|
|
4839
|
+
const C = v.match(/rgba?\([^)]+\)/g);
|
|
4786
4840
|
if (C && C.length >= 2)
|
|
4787
4841
|
b = C;
|
|
4788
4842
|
else {
|
|
4789
|
-
const
|
|
4790
|
-
|
|
4843
|
+
const E = v.match(/#[0-9a-fA-F]{3,8}/g);
|
|
4844
|
+
E && E.length >= 2 && (b = E);
|
|
4791
4845
|
}
|
|
4792
4846
|
if (b.length >= 2) {
|
|
4793
|
-
const
|
|
4794
|
-
|
|
4847
|
+
const E = e.createLinearGradient(g, 0, g + y, 0);
|
|
4848
|
+
E.addColorStop(0, b[0]), b.length >= 3 ? (E.addColorStop(0.5, b[1]), E.addColorStop(1, b[2])) : E.addColorStop(1, b[1]), e.fillStyle = E, e.beginPath(), e.roundRect ? e.roundRect(g, _, y, x, 4) : e.rect(g, _, y, x), e.fill();
|
|
4795
4849
|
} else {
|
|
4796
|
-
const
|
|
4797
|
-
|
|
4850
|
+
const E = e.createLinearGradient(g, 0, g + y, 0);
|
|
4851
|
+
E.addColorStop(0, "#cc6600"), E.addColorStop(0.5, "#ffaa44"), E.addColorStop(1, "#ffeecc"), e.fillStyle = E, e.beginPath(), e.roundRect ? e.roundRect(g, _, y, x, 4) : e.rect(g, _, y, x), e.fill(), console.log("Legend gradient style:", v);
|
|
4798
4852
|
}
|
|
4799
4853
|
if (e.fillStyle = "#cccccc", e.font = "14px Arial, sans-serif", o && e.fillText(o.textContent || "", g, f + 78), l) {
|
|
4800
|
-
const
|
|
4801
|
-
e.fillText(
|
|
4854
|
+
const E = l.textContent || "", P = e.measureText(E).width;
|
|
4855
|
+
e.fillText(E, g + y - P, f + 78);
|
|
4802
4856
|
}
|
|
4803
4857
|
c && c.textContent && (e.fillStyle = "#888888", e.font = "italic 12px Arial, sans-serif", e.fillText(c.textContent, g, f + 95));
|
|
4804
4858
|
} catch (n) {
|
|
@@ -4945,7 +4999,7 @@ class eo {
|
|
|
4945
4999
|
i.href = e, i.download = t, i.style.display = "none", document.body.appendChild(i), i.click(), document.body.removeChild(i);
|
|
4946
5000
|
}
|
|
4947
5001
|
}
|
|
4948
|
-
class to extends
|
|
5002
|
+
class to extends Nr {
|
|
4949
5003
|
/**
|
|
4950
5004
|
* Constructs a new CSS2D object.
|
|
4951
5005
|
*
|
|
@@ -4962,7 +5016,7 @@ class to extends zr {
|
|
|
4962
5016
|
return super.copy(e, t), this.element = e.element.cloneNode(!0), this.center = e.center, this;
|
|
4963
5017
|
}
|
|
4964
5018
|
}
|
|
4965
|
-
const qe = new se(),
|
|
5019
|
+
const qe = new se(), vn = new Tn(), En = new Tn(), wn = new se(), Cn = new se();
|
|
4966
5020
|
class io {
|
|
4967
5021
|
/**
|
|
4968
5022
|
* Constructs a new CSS2D renderer.
|
|
@@ -4981,7 +5035,7 @@ class io {
|
|
|
4981
5035
|
height: n
|
|
4982
5036
|
};
|
|
4983
5037
|
}, this.render = function(f, d) {
|
|
4984
|
-
f.matrixWorldAutoUpdate === !0 && f.updateMatrixWorld(), d.parent === null && d.matrixWorldAutoUpdate === !0 && d.updateMatrixWorld(),
|
|
5038
|
+
f.matrixWorldAutoUpdate === !0 && f.updateMatrixWorld(), d.parent === null && d.matrixWorldAutoUpdate === !0 && d.updateMatrixWorld(), vn.copy(d.matrixWorldInverse), En.multiplyMatrices(d.projectionMatrix, vn), h(f, f, d), this.sortObjects && m(f);
|
|
4985
5039
|
}, this.setSize = function(f, d) {
|
|
4986
5040
|
i = f, n = d, r = i / 2, s = n / 2, l.style.width = f + "px", l.style.height = d + "px";
|
|
4987
5041
|
};
|
|
@@ -4996,7 +5050,7 @@ class io {
|
|
|
4996
5050
|
return;
|
|
4997
5051
|
}
|
|
4998
5052
|
if (f.isCSS2DObject) {
|
|
4999
|
-
qe.setFromMatrixPosition(f.matrixWorld), qe.applyMatrix4(
|
|
5053
|
+
qe.setFromMatrixPosition(f.matrixWorld), qe.applyMatrix4(En);
|
|
5000
5054
|
const _ = qe.z >= -1 && qe.z <= 1 && f.layers.test(g.layers) === !0, y = f.element;
|
|
5001
5055
|
y.style.display = _ === !0 ? "" : "none", _ === !0 && (f.onBeforeRender(t, d, g), y.style.transform = "translate(" + -100 * f.center.x + "%," + -100 * f.center.y + "%)translate(" + (qe.x * r + r) + "px," + (-qe.y * s + s) + "px)", y.parentNode !== l && l.appendChild(y), f.onAfterRender(t, d, g));
|
|
5002
5056
|
const x = {
|
|
@@ -5020,8 +5074,8 @@ class io {
|
|
|
5020
5074
|
const d = p(f).sort(function(_, y) {
|
|
5021
5075
|
if (_.renderOrder !== y.renderOrder)
|
|
5022
5076
|
return y.renderOrder - _.renderOrder;
|
|
5023
|
-
const x = o.objects.get(_).distanceToCameraSquared,
|
|
5024
|
-
return x -
|
|
5077
|
+
const x = o.objects.get(_).distanceToCameraSquared, v = o.objects.get(y).distanceToCameraSquared;
|
|
5078
|
+
return x - v;
|
|
5025
5079
|
}), g = d.length;
|
|
5026
5080
|
for (let _ = 0, y = d.length; _ < y; _++)
|
|
5027
5081
|
d[_].element.style.zIndex = g - _;
|
|
@@ -5636,6 +5690,44 @@ float noise(vec2 p) {
|
|
|
5636
5690
|
return mix(mix(a, b, f.x), mix(c, d, f.x), f.y);
|
|
5637
5691
|
}
|
|
5638
5692
|
|
|
5693
|
+
// 3D noise for seamless spherical sampling
|
|
5694
|
+
float noise3D(vec3 p) {
|
|
5695
|
+
vec3 i = floor(p);
|
|
5696
|
+
vec3 f = fract(p);
|
|
5697
|
+
f = f * f * (3.0 - 2.0 * f);
|
|
5698
|
+
|
|
5699
|
+
float n000 = hash3(i);
|
|
5700
|
+
float n100 = hash3(i + vec3(1.0, 0.0, 0.0));
|
|
5701
|
+
float n010 = hash3(i + vec3(0.0, 1.0, 0.0));
|
|
5702
|
+
float n110 = hash3(i + vec3(1.0, 1.0, 0.0));
|
|
5703
|
+
float n001 = hash3(i + vec3(0.0, 0.0, 1.0));
|
|
5704
|
+
float n101 = hash3(i + vec3(1.0, 0.0, 1.0));
|
|
5705
|
+
float n011 = hash3(i + vec3(0.0, 1.0, 1.0));
|
|
5706
|
+
float n111 = hash3(i + vec3(1.0, 1.0, 1.0));
|
|
5707
|
+
|
|
5708
|
+
float nx00 = mix(n000, n100, f.x);
|
|
5709
|
+
float nx10 = mix(n010, n110, f.x);
|
|
5710
|
+
float nx01 = mix(n001, n101, f.x);
|
|
5711
|
+
float nx11 = mix(n011, n111, f.x);
|
|
5712
|
+
|
|
5713
|
+
float nxy0 = mix(nx00, nx10, f.y);
|
|
5714
|
+
float nxy1 = mix(nx01, nx11, f.y);
|
|
5715
|
+
|
|
5716
|
+
return mix(nxy0, nxy1, f.z);
|
|
5717
|
+
}
|
|
5718
|
+
|
|
5719
|
+
// FBM using 3D noise for seamless spherical clouds
|
|
5720
|
+
float fbm3D(vec3 p) {
|
|
5721
|
+
float value = 0.0;
|
|
5722
|
+
float amplitude = 0.5;
|
|
5723
|
+
for (int i = 0; i < 4; i++) {
|
|
5724
|
+
value += amplitude * noise3D(p);
|
|
5725
|
+
p *= 2.0;
|
|
5726
|
+
amplitude *= 0.5;
|
|
5727
|
+
}
|
|
5728
|
+
return value;
|
|
5729
|
+
}
|
|
5730
|
+
|
|
5639
5731
|
// Fractal Brownian Motion for natural-looking tears
|
|
5640
5732
|
float fbm(vec2 p) {
|
|
5641
5733
|
float value = 0.0;
|
|
@@ -5918,17 +6010,29 @@ void main() {
|
|
|
5918
6010
|
color += vec3(1.0, 0.9, 0.7) * scatter * 0.15;
|
|
5919
6011
|
}
|
|
5920
6012
|
|
|
5921
|
-
// Cloud layer
|
|
6013
|
+
// Cloud layer - use spherical 3D coordinates for seamless wrapping
|
|
5922
6014
|
if (uClouds > 0.01) {
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
float
|
|
6015
|
+
// Convert UV to spherical 3D coordinates (naturally wraps without seams)
|
|
6016
|
+
float lon = vUv.x * 2.0 * 3.14159;
|
|
6017
|
+
float lat = (vUv.y - 0.5) * 3.14159;
|
|
6018
|
+
|
|
6019
|
+
// Add time-based rotation for cloud movement
|
|
6020
|
+
float cloudLon = lon + uTime * uCloudSpeed * 0.02;
|
|
6021
|
+
|
|
6022
|
+
// Create 3D point on sphere surface
|
|
6023
|
+
vec3 spherePoint = vec3(
|
|
6024
|
+
cos(lat) * cos(cloudLon),
|
|
6025
|
+
sin(lat),
|
|
6026
|
+
cos(lat) * sin(cloudLon)
|
|
6027
|
+
);
|
|
6028
|
+
|
|
6029
|
+
// Sample noise at different scales using 3D coordinates
|
|
6030
|
+
float cloud1 = fbm3D(spherePoint * 3.0 + uTime * uCloudSpeed * 0.01);
|
|
6031
|
+
float cloud2 = fbm3D(spherePoint * 6.0 - uTime * uCloudSpeed * 0.005);
|
|
6032
|
+
float cloud3 = fbm3D(spherePoint * 1.5 + uTime * uCloudSpeed * 0.003);
|
|
5929
6033
|
|
|
5930
6034
|
float clouds = cloud1 * 0.5 + cloud2 * 0.3 + cloud3 * 0.2;
|
|
5931
|
-
clouds = smoothstep(0.35, 0.
|
|
6035
|
+
clouds = smoothstep(0.35, 0.65, clouds);
|
|
5932
6036
|
|
|
5933
6037
|
vec3 cloudColor = vec3(1.0, 1.0, 1.0);
|
|
5934
6038
|
float cloudLight = 0.7 + 0.3 * dayFactor;
|