gralobe 1.0.16 → 1.0.17

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as S from "three";
2
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 = {
3
+ const Ki = { type: "change" }, Pi = { 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,
@@ -18,7 +18,7 @@ class Br extends kr {
18
18
  * @param {?HTMLElement} domElement - The HTML element used for event listeners.
19
19
  */
20
20
  constructor(e, t = null) {
21
- super(e, t), this.state = I.NONE, this.target = new se(), this.cursor = new se(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.keyRotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: tt.ROTATE, MIDDLE: tt.DOLLY, RIGHT: tt.PAN }, this.touches = { ONE: Qe.ROTATE, TWO: Qe.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new se(), this._lastQuaternion = new Yi(), this._lastTargetPosition = new se(), this._quat = new Yi().setFromUnitVectors(e.up, new se(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new Zi(), this._sphericalDelta = new Zi(), this._scale = 1, this._panOffset = new se(), this._rotateStart = new de(), this._rotateEnd = new de(), this._rotateDelta = new de(), this._panStart = new de(), this._panEnd = new de(), this._panDelta = new de(), this._dollyStart = new de(), this._dollyEnd = new de(), this._dollyDelta = new de(), this._dollyDirection = new se(), this._mouse = new de(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = Gr.bind(this), this._onPointerDown = Vr.bind(this), this._onPointerUp = Hr.bind(this), this._onContextMenu = qr.bind(this), this._onMouseWheel = Zr.bind(this), this._onKeyDown = Kr.bind(this), this._onTouchStart = Xr.bind(this), this._onTouchMove = Wr.bind(this), this._onMouseDown = jr.bind(this), this._onMouseMove = Yr.bind(this), this._interceptControlDown = Qr.bind(this), this._interceptControlUp = Jr.bind(this), this.domElement !== null && this.connect(this.domElement), this.update();
21
+ super(e, t), this.state = I.NONE, this.target = new se(), this.cursor = new se(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.keyRotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: tt.ROTATE, MIDDLE: tt.DOLLY, RIGHT: tt.PAN }, this.touches = { ONE: Qe.ROTATE, TWO: Qe.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new se(), this._lastQuaternion = new Yi(), this._lastTargetPosition = new se(), this._quat = new Yi().setFromUnitVectors(e.up, new se(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new Zi(), this._sphericalDelta = new Zi(), this._scale = 1, this._panOffset = new se(), this._rotateStart = new de(), this._rotateEnd = new de(), this._rotateDelta = new de(), this._panStart = new de(), this._panEnd = new de(), this._panDelta = new de(), this._dollyStart = new de(), this._dollyEnd = new de(), this._dollyDelta = new de(), this._dollyDirection = new se(), this._mouse = new de(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = Vr.bind(this), this._onPointerDown = Gr.bind(this), this._onPointerUp = Hr.bind(this), this._onContextMenu = qr.bind(this), this._onMouseWheel = Zr.bind(this), this._onKeyDown = Kr.bind(this), this._onTouchStart = Xr.bind(this), this._onTouchMove = Wr.bind(this), this._onMouseDown = jr.bind(this), this._onMouseMove = Yr.bind(this), this._interceptControlDown = Qr.bind(this), this._interceptControlUp = Jr.bind(this), this.domElement !== null && this.connect(this.domElement), this.update();
22
22
  }
23
23
  connect(e) {
24
24
  super.connect(e), this.domElement.addEventListener("pointerdown", this._onPointerDown), this.domElement.addEventListener("pointercancel", this._onPointerUp), this.domElement.addEventListener("contextmenu", this._onContextMenu), this.domElement.addEventListener("wheel", this._onMouseWheel, { passive: !1 }), this.domElement.getRootNode().addEventListener("keydown", this._interceptControlDown, { passive: !0, capture: !0 }), this.domElement.style.touchAction = "none";
@@ -306,10 +306,10 @@ class Br extends kr {
306
306
  return e.ctrlKey && !this._controlActive && (i.deltaY *= 10), i;
307
307
  }
308
308
  }
309
- function Vr(a) {
309
+ function Gr(a) {
310
310
  this.enabled !== !1 && (this._pointers.length === 0 && (this.domElement.setPointerCapture(a.pointerId), this.domElement.addEventListener("pointermove", this._onPointerMove), this.domElement.addEventListener("pointerup", this._onPointerUp)), !this._isTrackingPointer(a) && (this._addPointer(a), a.pointerType === "touch" ? this._onTouchStart(a) : this._onMouseDown(a)));
311
311
  }
312
- function Gr(a) {
312
+ function Vr(a) {
313
313
  this.enabled !== !1 && (a.pointerType === "touch" ? this._onTouchMove(a) : this._onMouseMove(a));
314
314
  }
315
315
  function Hr(a) {
@@ -364,7 +364,7 @@ function jr(a) {
364
364
  default:
365
365
  this.state = I.NONE;
366
366
  }
367
- this.state !== I.NONE && this.dispatchEvent(Ci);
367
+ this.state !== I.NONE && this.dispatchEvent(Pi);
368
368
  }
369
369
  function Yr(a) {
370
370
  switch (this.state) {
@@ -383,7 +383,7 @@ function Yr(a) {
383
383
  }
384
384
  }
385
385
  function Zr(a) {
386
- this.enabled === !1 || this.enableZoom === !1 || this.state !== I.NONE || (a.preventDefault(), this.dispatchEvent(Ci), this._handleMouseWheel(this._customWheelEvent(a)), this.dispatchEvent(Sn));
386
+ this.enabled === !1 || this.enableZoom === !1 || this.state !== I.NONE || (a.preventDefault(), this.dispatchEvent(Pi), this._handleMouseWheel(this._customWheelEvent(a)), this.dispatchEvent(Sn));
387
387
  }
388
388
  function Kr(a) {
389
389
  this.enabled !== !1 && this._handleKeyDown(a);
@@ -421,7 +421,7 @@ function Xr(a) {
421
421
  default:
422
422
  this.state = I.NONE;
423
423
  }
424
- this.state !== I.NONE && this.dispatchEvent(Ci);
424
+ this.state !== I.NONE && this.dispatchEvent(Pi);
425
425
  }
426
426
  function Wr(a) {
427
427
  switch (this._trackPointer(a), this.state) {
@@ -473,11 +473,11 @@ var he = {
473
473
  duration: 0.5,
474
474
  overwrite: !1,
475
475
  delay: 0
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) {
476
+ }, Ci, 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
- }, V = function(e) {
478
+ }, G = function(e) {
479
479
  return typeof e == "function";
480
- }, Pe = function(e) {
480
+ }, Ce = function(e) {
481
481
  return typeof e == "number";
482
482
  }, Ai = function(e) {
483
483
  return typeof e > "u";
@@ -488,7 +488,7 @@ var he = {
488
488
  }, Ti = function() {
489
489
  return typeof window < "u";
490
490
  }, Rt = function(e) {
491
- return V(e) || Z(e);
491
+ return G(e) || Z(e);
492
492
  }, Rn = typeof ArrayBuffer == "function" && ArrayBuffer.isView || function() {
493
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
494
  return (Nt = at(e, ce)) && re;
@@ -511,7 +511,7 @@ var he = {
511
511
  suppressEvents: !0
512
512
  }, Mi = {}, Re = [], ci = {}, zn, ae = {}, qt = {}, Wi = 30, Ut = [], Ri = "", Oi = function(e) {
513
513
  var t = e[0], i, n;
514
- if (ve(t) || V(t) || (e = [e]), !(i = (t._gsap || {}).harness)) {
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];
@@ -522,10 +522,10 @@ var he = {
522
522
  }, He = function(e) {
523
523
  return e._gsap || Oi(me(e))[0]._gsap;
524
524
  }, Nn = function(e, t, i) {
525
- return (i = e[t]) && V(i) ? e[t]() : Ai(i) && e.getAttribute && e.getAttribute(t) || i;
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;
528
- }, G = function(e) {
528
+ }, V = function(e) {
529
529
  return Math.round(e * 1e5) / 1e5 || 0;
530
530
  }, j = function(e) {
531
531
  return Math.round(e * 1e7) / 1e7 || 0;
@@ -547,7 +547,7 @@ var he = {
547
547
  }, Bn = function(e) {
548
548
  var t = parseFloat(e);
549
549
  return (t || t === 0) && (e + "").match(Ln).length < 2 ? t : Z(e) ? e.trim() : e;
550
- }, Vn = function(e) {
550
+ }, Gn = function(e) {
551
551
  return e;
552
552
  }, ue = function(e, t) {
553
553
  for (var i in t)
@@ -581,7 +581,7 @@ var he = {
581
581
  for (var i = e.length, n = i === t.length; n && i-- && e[i] === t[i]; )
582
582
  ;
583
583
  return i < 0;
584
- }, Gn = function(e, t, i, n, r) {
584
+ }, Vn = function(e, t, i, n, r) {
585
585
  var s = e[n], o;
586
586
  if (r)
587
587
  for (o = t[r]; s && s[r] > o; )
@@ -611,7 +611,7 @@ var he = {
611
611
  }, ot = function(e, t) {
612
612
  var i = Math.floor(e = j(e / t));
613
613
  return e && i === e ? i - 1 : i;
614
- }, Vt = function(e, t) {
614
+ }, Gt = function(e, t) {
615
615
  return (e - t._start) * t._ts + (t._ts >= 0 ? 0 : t._dirty ? t.totalDuration() : t._tDur);
616
616
  }, Zt = function(e) {
617
617
  return e._end = j(e._start + (e._tDur / Math.abs(e._ts || e._rts || k) || 0));
@@ -620,14 +620,14 @@ var he = {
620
620
  return i && i.smoothChildTiming && e._ts && (e._start = j(i._time - (e._ts > 0 ? t / e._ts : ((e._dirty ? e.totalDuration() : e._tDur) - t) / -e._ts)), Zt(e), i._dirty || je(i, e)), e;
621
621
  }, Hn = function(e, t) {
622
622
  var i;
623
- if ((t._time || !t._dur && t._initted || t._start < e._time && (t._dur || !t.add)) && (i = Vt(e.rawTime(), t), (!t._dur || Dt(0, t.totalDuration(), i) - t._tTime > k) && t.render(i, !0)), je(e, t)._dp && e._initted && e._time >= e._dur && e._ts) {
623
+ if ((t._time || !t._dur && t._initted || t._start < e._time && (t._dur || !t.add)) && (i = Gt(e.rawTime(), t), (!t._dur || Dt(0, t.totalDuration(), i) - t._tTime > k) && t.render(i, !0)), je(e, t)._dp && e._initted && e._time >= e._dur && e._ts) {
624
624
  if (e._dur < e.duration())
625
625
  for (i = e; i._dp; )
626
626
  i.rawTime() >= 0 && i.totalTime(i._tTime), i = i._dp;
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 !== N ? pe(e, i, t) : e._time) + t._delay), t._end = j(t._start + (t.totalDuration() / Math.abs(t.timeScale()) || 0)), Gn(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;
630
+ return t.parent && Ie(t), t._start = j((Ce(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) {
@@ -677,7 +677,7 @@ var he = {
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;
679
679
  }, xt = function(e, t, i) {
680
- var n = Pe(t[1]), r = (n ? 2 : 1) + (e < 2 ? 0 : 1), s = t[r], o, l;
680
+ var n = Ce(t[1]), r = (n ? 2 : 1) + (e < 2 ? 0 : 1), s = t[r], o, l;
681
681
  if (n && (s.duration = t[1]), s.parent = i, e) {
682
682
  for (o = s, l = i; l && !("immediateRender" in o); )
683
683
  o = l.vars.defaults || {}, l = ee(l.vars.inherit) && l.parent;
@@ -713,7 +713,7 @@ var he = {
713
713
  return 0.5 - Math.random();
714
714
  });
715
715
  }, Xn = function(e) {
716
- if (V(e))
716
+ if (G(e))
717
717
  return e;
718
718
  var t = ve(e) ? e : {
719
719
  each: e
@@ -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, v, b, C, E, P, w;
726
+ var d = (f || t).length, g = s[d], _, y, x, v, b, P, E, C, w;
727
727
  if (!g) {
728
728
  if (w = t.grid === "auto" ? 0 : (t.grid || [1, fe])[1], !w) {
729
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, 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;
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, C = fe, P = 0; P < d; P++)
734
+ x = P % w - _, v = y - (P / w | 0), g[P] = b = c ? Math.abs(c === "y" ? v : x) : Mn(x * x + v * v), b > E && (E = b), b < C && (C = b);
735
+ n === "random" && Kn(g), g.max = E - C, g.min = C, 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
  };
@@ -740,16 +740,16 @@ var he = {
740
740
  var t = Math.pow(10, ((e + "").split(".")[1] || "").length);
741
741
  return function(i) {
742
742
  var n = j(Math.round(parseFloat(i) / e) * e * t);
743
- return (n - n % 1) / t + (Pe(i) ? 0 : X(i));
743
+ return (n - n % 1) / t + (Ce(i) ? 0 : X(i));
744
744
  };
745
745
  }, Wn = function(e, t) {
746
746
  var i = W(e), n, r;
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 ? V(e) ? function(s) {
747
+ return !i && ve(e) && (n = i = e.radius || fe, e.values ? (e = me(e.values), (r = !Ce(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--; )
751
751
  r ? (p = e[u].x - o, m = e[u].y - l, p = p * p + m * m) : p = Math.abs(e[u] - o), p < c && (c = p, h = u);
752
- return h = !n || c <= n ? e[h] : s, r || h === s || Pe(s) ? h : h + X(s);
752
+ return h = !n || c <= n ? e[h] : s, r || h === s || Ce(s) ? h : h + X(s);
753
753
  } : mi(e));
754
754
  }, qn = function(e, t, i, n) {
755
755
  return ke(W(e) ? !t : i === !0 ? !!(i = 0) : !n, function() {
@@ -836,7 +836,7 @@ var he = {
836
836
  }, et, er = [], tr = function(e) {
837
837
  if (e)
838
838
  if (e = !e.name && e.default || e, Ti() || e.headless) {
839
- var t = e.name, i = V(e), n = t && !i && e.init ? function() {
839
+ var t = e.name, i = G(e), n = t && !i && e.init ? function() {
840
840
  this._props = [];
841
841
  } : e, r = {
842
842
  init: Et,
@@ -883,7 +883,7 @@ var he = {
883
883
  }, Qt = function(e, t, i) {
884
884
  return e += e < 0 ? 1 : e > 1 ? -1 : 0, (e * 6 < 1 ? t + (i - t) * e * 6 : e < 0.5 ? i : e * 3 < 2 ? t + (i - t) * (2 / 3 - e) * 6 : t) * L + 0.5 | 0;
885
885
  }, ir = function(e, t, i) {
886
- var n = e ? Pe(e) ? [e >> 16, e >> 8 & L, e & L] : 0 : gt.black, r, s, o, l, c, h, u, p, m, f;
886
+ var n = e ? Ce(e) ? [e >> 16, e >> 8 & L, e & L] : 0 : gt.black, r, s, o, l, c, h, u, p, m, f;
887
887
  if (!n) {
888
888
  if (e.substr(-1) === "," && (e = e.substr(0, e.length - 1)), gt[e])
889
889
  n = gt[e];
@@ -925,16 +925,16 @@ var he = {
925
925
  for (e in gt)
926
926
  a += "|" + e + "\\b";
927
927
  return new RegExp(a + ")", "gi");
928
- })(), Cs = /hsl[a]?\(/, rr = function(e) {
928
+ })(), Ps = /hsl[a]?\(/, rr = function(e) {
929
929
  var t = e.join(" "), i;
930
930
  if (Oe.lastIndex = 0, Oe.test(t))
931
- return i = Cs.test(t), e[1] = tn(e[1], i), e[0] = tn(e[0], i, nr(e[1])), !0;
932
- }, Ct, oe = (function() {
931
+ return i = Ps.test(t), e[1] = tn(e[1], i), e[0] = tn(e[0], i, nr(e[1])), !0;
932
+ }, Pt, 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, 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)
934
+ var _ = a() - n, y = g === !0, x, v, b, P;
935
+ if ((_ > e || _ < 0) && (i += _ - t), n += _, b = n - i, x = b - s, (x > 0 || y) && (P = ++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
- o[m](b, p, C, g);
937
+ o[m](b, p, P, g);
938
938
  };
939
939
  return u = {
940
940
  time: 0,
@@ -948,10 +948,10 @@ var he = {
948
948
  wake: function() {
949
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
- }, Ct = 1, f(2));
951
+ }, Pt = 1, f(2));
952
952
  },
953
953
  sleep: function() {
954
- (h ? cancelAnimationFrame : clearTimeout)(l), Ct = 0, c = Et;
954
+ (h ? cancelAnimationFrame : clearTimeout)(l), Pt = 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(v, b, C, E) {
964
- g(v, b, C, E), u.remove(x);
963
+ var x = _ ? function(v, b, P, E) {
964
+ g(v, b, P, E), u.remove(x);
965
965
  } : g;
966
966
  return u.remove(g), o[y ? "unshift" : "push"](x), ht(), x;
967
967
  },
@@ -971,8 +971,8 @@ var he = {
971
971
  _listeners: o
972
972
  }, u;
973
973
  })(), ht = function() {
974
- return !Ct && oe.wake();
975
- }, D = {}, Ps = /^[\d.\-M][\d.\-,\s]/, As = /["']/g, Ts = function(e) {
974
+ return !Pt && oe.wake();
975
+ }, D = {}, Cs = /^[\d.\-M][\d.\-,\s]/, As = /["']/g, Ts = function(e) {
976
976
  for (var t = {}, i = e.substr(1, e.length - 3).split(":"), n = i[0], r = 1, s = i.length, o, l, c; r < s; r++)
977
977
  l = i[r], o = r !== s - 1 ? l.lastIndexOf(",") : l.length, c = l.substr(0, o), t[n] = isNaN(c) ? c.replace(As, "").trim() : +c, n = l.substr(o + 1).trim();
978
978
  return t;
@@ -981,7 +981,7 @@ var he = {
981
981
  return e.substring(t, ~n && n < i ? e.indexOf(")", i + 1) : i);
982
982
  }, Ds = function(e) {
983
983
  var t = (e + "").split("("), i = D[t[0]];
984
- return i && t.length > 1 && i.config ? i.config.apply(null, ~e.indexOf("{") ? [Ts(t[1])] : Ss(e).split(",").map(Bn)) : D._CE && Ps.test(e) ? D._CE("", e) : i;
984
+ return i && t.length > 1 && i.config ? i.config.apply(null, ~e.indexOf("{") ? [Ts(t[1])] : Ss(e).split(",").map(Bn)) : D._CE && Cs.test(e) ? D._CE("", e) : i;
985
985
  }, sr = function(e) {
986
986
  return function(t) {
987
987
  return 1 - e(1 - t);
@@ -990,7 +990,7 @@ var he = {
990
990
  for (var i = e._first, n; i; )
991
991
  i instanceof q ? a(i, t) : i.vars.yoyoEase && (!i._yoyo || !i._repeat) && i._yoyo !== t && (i.timeline ? a(i.timeline, t) : (n = i._ease, i._ease = i._yEase, i._yEase = n, i._yoyo = t)), i = i._next;
992
992
  }, Ye = function(e, t) {
993
- return e && (V(e) ? e : D[e] || Ds(e)) || t;
993
+ return e && (G(e) ? e : D[e] || Ds(e)) || t;
994
994
  }, Xe = function(e, t, i, n) {
995
995
  i === void 0 && (i = function(l) {
996
996
  return 1 - t(1 - l);
@@ -1078,9 +1078,9 @@ te("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt", functio
1078
1078
  });
1079
1079
  var lr = function(e, t) {
1080
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
- }, Pt = /* @__PURE__ */ (function() {
1081
+ }, Ct = /* @__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, z && (this._ctx = z, z.data.push(this)), Ct || oe.wake();
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)), Pt || oe.wake();
1084
1084
  }
1085
1085
  var e = a.prototype;
1086
1086
  return e.delay = function(i) {
@@ -1113,7 +1113,7 @@ var lr = function(e, t) {
1113
1113
  return this._rts === -k ? 0 : this._rts;
1114
1114
  if (this._rts === i)
1115
1115
  return this;
1116
- var r = this.parent && this._ts ? Vt(this.parent._time, this) : this._tTime;
1116
+ var r = this.parent && this._ts ? Gt(this.parent._time, this) : this._tTime;
1117
1117
  return this._rts = +i || 0, this._ts = this._ps || i === -k ? 0 : this._rts, this.totalTime(Dt(-Math.abs(this._delay), this.totalDuration(), r), n !== !1), Zt(this), cs(this);
1118
1118
  }, e.paused = function(i) {
1119
1119
  return arguments.length ? (this._ps !== i && (this._ps = i, i ? (this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()), this._ts = this._act = 0) : (ht(), this._ts = this._rts, this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && Math.abs(this._zTime) !== k && (this._tTime -= k)))), this) : this._ps;
@@ -1128,7 +1128,7 @@ var lr = function(e, t) {
1128
1128
  return this._start + (ee(i) ? this.totalDuration() : this.duration()) / Math.abs(this._ts || 1);
1129
1129
  }, e.rawTime = function(i) {
1130
1130
  var n = this.parent || this._dp;
1131
- return n ? i && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ? Vt(n.rawTime(i), this) : this._tTime : this._tTime;
1131
+ return n ? i && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ? Gt(n.rawTime(i), this) : this._tTime : this._tTime;
1132
1132
  }, e.revert = function(i) {
1133
1133
  i === void 0 && (i = as);
1134
1134
  var n = K;
@@ -1172,9 +1172,9 @@ var lr = function(e, t) {
1172
1172
  }, e.then = function(i) {
1173
1173
  var n = this;
1174
1174
  return new Promise(function(r) {
1175
- var s = V(i) ? i : Vn, o = function() {
1175
+ var s = G(i) ? i : Gn, o = function() {
1176
1176
  var c = n.then;
1177
- n.then = null, V(s) && (s = s(n)) && (s.then || s === n) && (n.then = c), r(s), n.then = c;
1177
+ n.then = null, G(s) && (s = s(n)) && (s.then || s === n) && (n.then = c), r(s), n.then = c;
1178
1178
  };
1179
1179
  n._initted && n.totalProgress() === 1 && n._ts >= 0 || !n._tTime && n._ts < 0 ? o() : n._prom = o;
1180
1180
  });
@@ -1182,7 +1182,7 @@ var lr = function(e, t) {
1182
1182
  mt(this);
1183
1183
  }, a;
1184
1184
  })();
1185
- ue(Pt.prototype, {
1185
+ ue(Ct.prototype, {
1186
1186
  _time: 0,
1187
1187
  _start: 0,
1188
1188
  _end: 0,
@@ -1226,16 +1226,16 @@ 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, v, b, C, E;
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, P, E;
1230
1230
  if (this !== N && h > l && n >= 0 && (h = l), h !== this._tTime || s || u) {
1231
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
- if (C = this._yoyo, g = c + this._rDelay, this._repeat < -1 && n < 0)
1232
+ if (P = 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, E = 1), d !== b && !this._lock) {
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 || (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)
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), P && d & 1 && (p = c - p, E = 1), d !== b && !this._lock) {
1235
+ var C = P && b & 1, w = C === (P && d & 1);
1236
+ if (d < b && (C = !C), o = C ? 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 && !E && this.invalidate()), this._lock = 0, !this._ts && !_)
1238
+ if (c = this._dur, l = this._tDur, w && (this._lock = 2, o = C ? c : -1e-4, this.render(o, !0), this.vars.repeatRefresh && !E && this.invalidate()), this._lock = 0, !this._ts && !_)
1239
1239
  return this;
1240
1240
  ar(this, E);
1241
1241
  }
@@ -1275,14 +1275,14 @@ var q = /* @__PURE__ */ (function(a) {
1275
1275
  return this;
1276
1276
  }, t.add = function(n, r) {
1277
1277
  var s = this;
1278
- if (Pe(r) || (r = pe(this, r, n)), !(n instanceof Pt)) {
1278
+ if (Ce(r) || (r = pe(this, r, n)), !(n instanceof Ct)) {
1279
1279
  if (W(n))
1280
1280
  return n.forEach(function(o) {
1281
1281
  return s.add(o, r);
1282
1282
  }), this;
1283
1283
  if (Z(n))
1284
1284
  return this.addLabel(n, r);
1285
- if (V(n))
1285
+ if (G(n))
1286
1286
  n = H.delayedCall(0, n);
1287
1287
  else
1288
1288
  return this;
@@ -1298,7 +1298,7 @@ var q = /* @__PURE__ */ (function(a) {
1298
1298
  if (r[s].vars.id === n)
1299
1299
  return r[s];
1300
1300
  }, t.remove = function(n) {
1301
- return Z(n) ? this.removeLabel(n) : V(n) ? this.killTweensOf(n) : (n.parent === this && Yt(this, n), n === this._recent && (this._recent = this._last), je(this));
1301
+ return Z(n) ? this.removeLabel(n) : G(n) ? this.killTweensOf(n) : (n.parent === this && Yt(this, n), n === this._recent && (this._recent = this._last), je(this));
1302
1302
  }, t.totalTime = function(n, r) {
1303
1303
  return arguments.length ? (this._forcing = 1, !this._dp && this._ts && (this._start = j(oe.time - (this._ts > 0 ? n / this._ts : (this.totalDuration() - n) / -this._ts))), a.prototype.totalTime.call(this, n, r), this._forcing = 0, this) : this._tTime;
1304
1304
  }, t.addLabel = function(n, r) {
@@ -1317,7 +1317,7 @@ var q = /* @__PURE__ */ (function(a) {
1317
1317
  Te !== o[l] && o[l].kill(n, r);
1318
1318
  return this;
1319
1319
  }, t.getTweensOf = function(n, r) {
1320
- for (var s = [], o = me(n), l = this._first, c = Pe(r), h; l; )
1320
+ for (var s = [], o = me(n), l = this._first, c = Ce(r), h; l; )
1321
1321
  l instanceof H ? os(l._targets, o) && (c ? (!Te || l._initted && l._ts) && l.globalTime(0) <= r && l.globalTime(l.totalDuration()) > r : !r || l.isActive()) && s.push(l) : (h = l.getTweensOf(o, r)).length && s.push.apply(s, h), l = l._next;
1322
1322
  return s;
1323
1323
  }, t.tweenTo = function(n, r) {
@@ -1381,7 +1381,7 @@ var q = /* @__PURE__ */ (function(a) {
1381
1381
  }
1382
1382
  return s._tDur;
1383
1383
  }, e.updateRoot = function(n) {
1384
- if (N._ts && ($n(N, Vt(n, N)), zn = oe.frame), oe.frame >= Wi) {
1384
+ if (N._ts && ($n(N, Gt(n, N)), zn = oe.frame), oe.frame >= Wi) {
1385
1385
  Wi += he.autoSleep || 120;
1386
1386
  var r = N._first;
1387
1387
  if ((!r || !r._ts) && he.autoSleep && oe._listeners.length < 2) {
@@ -1391,7 +1391,7 @@ var q = /* @__PURE__ */ (function(a) {
1391
1391
  }
1392
1392
  }
1393
1393
  }, e;
1394
- })(Pt);
1394
+ })(Ct);
1395
1395
  ue(q.prototype, {
1396
1396
  _lock: 0,
1397
1397
  _hasPause: 0,
@@ -1410,12 +1410,12 @@ var Ms = function(e, t, i, n, r, s, o) {
1410
1410
  }, c = Wt.lastIndex);
1411
1411
  return l.c = c < n.length ? n.substring(c, n.length) : "", l.fp = o, (In.test(n) || _) && (l.e = 0), this._pt = l, l;
1412
1412
  }, Li = function(e, t, i, n, r, s, o, l, c, h) {
1413
- V(n) && (n = n(r || 0, e, s));
1414
- var u = e[t], p = i !== "get" ? i : V(u) ? c ? e[t.indexOf("set") || !V(e["get" + t.substr(3)]) ? t : "get" + t.substr(3)](c) : e[t]() : u, m = V(u) ? c ? ks : dr : Ui, f;
1413
+ G(n) && (n = n(r || 0, e, s));
1414
+ var u = e[t], p = i !== "get" ? i : G(u) ? c ? e[t.indexOf("set") || !G(e["get" + t.substr(3)]) ? t : "get" + t.substr(3)](c) : e[t]() : u, m = G(u) ? c ? ks : dr : Ui, f;
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 (V(e) && (e = bt(e, r, t, i, n)), !ve(e) || e.style && e.nodeType || W(e) || Rn(e))
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,7 +1428,7 @@ 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, v = e.timeline, b, C, E, P, w, T, M, A, R, O, B, F, U;
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" && !Ci, v = e.timeline, b, P, E, C, w, T, M, A, R, O, B, F, U;
1432
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({
@@ -1463,13 +1463,13 @@ var Ms = function(e, t, i, n, r, s, o) {
1463
1463
  else if (!t)
1464
1464
  return;
1465
1465
  }
1466
- for (e._pt = e._ptCache = 0, l = f && ee(l) || l && !f, C = 0; C < g.length; C++) {
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
- O[Q] = P;
1466
+ for (e._pt = e._ptCache = 0, l = f && ee(l) || l && !f, P = 0; P < g.length; P++) {
1467
+ if (w = g[P], M = w._gsap || Oi(g)[P]._gsap, e._ptLookup[P] = O = {}, ci[M.id] && Re.length && $t(), B = y === g ? P : y.indexOf(w), A && (R = new A()).init(w, F || b, e, B, y) !== !1 && (e._pt = C = new ie(e._pt, w, R.name, 0, 1, R.render, R, 0, R.priority), R._props.forEach(function(Q) {
1468
+ O[Q] = C;
1469
1469
  }), R.priority && (T = 1)), !A || F)
1470
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);
1471
+ ae[E] && (R = hr(E, b, e, B, w, y)) ? R.priority && (T = 1) : O[E] = C = Li.call(e, w, E, "get", b[E], B, y, 0, n.stringFilter);
1472
+ e._op && e._op[P] && e.kill(w, e._op[P]), 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
  }
@@ -1486,7 +1486,7 @@ var Ms = function(e, t, i, n, r, s, o) {
1486
1486
  c.push(h);
1487
1487
  }
1488
1488
  for (m = c.length; m--; )
1489
- u = c[m], h = u._pt || u, h.s = (n || n === 0) && !r ? n : h.s + (n || 0) + s * h.c, h.c = i - h.s, u.e && (u.e = G(i) + X(u.e)), u.b && (u.b = h.s + X(u.b));
1489
+ u = c[m], h = u._pt || u, h.s = (n || n === 0) && !r ? n : h.s + (n || 0) + s * h.c, h.c = i - h.s, u.e && (u.e = V(i) + X(u.e)), u.b && (u.b = h.s + X(u.b));
1490
1490
  }, Is = function(e, t) {
1491
1491
  var i = e[0] ? He(e[0]).harness : 0, n = i && i.aliases, r, s, o, l;
1492
1492
  if (!n)
@@ -1515,7 +1515,7 @@ var Ms = function(e, t, i, n, r, s, o) {
1515
1515
  e: r
1516
1516
  });
1517
1517
  }, bt = function(e, t, i, n, r) {
1518
- return V(e) ? e.call(t, i, n, r) : Z(e) && ~e.indexOf("random(") ? wt(e) : e;
1518
+ return G(e) ? e.call(t, i, n, r) : Z(e) && ~e.indexOf("random(") ? wt(e) : e;
1519
1519
  }, cr = Ri + "repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert", ur = {};
1520
1520
  te(cr + ",id,stagger,delay,duration,paused,scrollTrigger", function(a) {
1521
1521
  return ur[a] = 1;
@@ -1525,7 +1525,7 @@ 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 || N, x = (W(i) || Rn(i) ? Pe(i[0]) : "length" in n) ? [i] : me(i), v, b, C, E, P, w, T, M;
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) ? Ce(i[0]) : "length" in n) ? [i] : me(i), v, b, P, E, C, w, T, M;
1529
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
1530
  if (n = o.vars, v = o.timeline = new q({
1531
1531
  data: "nested",
@@ -1533,10 +1533,10 @@ var H = /* @__PURE__ */ (function(a) {
1533
1533
  targets: y && y.data === "nested" ? y.vars.targets : x
1534
1534
  }), v.kill(), v.parent = v._dp = we(o), v._start = 0, p || Rt(c) || Rt(h)) {
1535
1535
  if (E = x.length, T = p && Xn(p), ve(p))
1536
- for (P in p)
1537
- ~cr.indexOf(P) && (M || (M = {}), M[P] = p[P]);
1536
+ for (C in p)
1537
+ ~cr.indexOf(C) && (M || (M = {}), M[C] = p[C]);
1538
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;
1539
+ P = Bt(n, ur), P.stagger = 0, _ && (P.yoyoEase = _), M && at(P, M), w = x[b], P.duration = +bt(c, we(o), b, w, x), P.delay = (+bt(h, we(o), b, w, x) || 0) - o._delay, !p && E === 1 && P.delay && (o._delay = h = P.delay, o._start += h, P.delay = 0), v.to(w, P, T ? T(b, w, x) : 0), v._ease = D.none;
1540
1540
  v.duration() ? c = h = 0 : o.timeline = 0;
1541
1541
  } else if (f) {
1542
1542
  yt(ue(v.vars.defaults, {
@@ -1548,17 +1548,17 @@ var H = /* @__PURE__ */ (function(a) {
1548
1548
  return v.to(x, F, ">");
1549
1549
  }), v.duration();
1550
1550
  else {
1551
- C = {};
1552
- for (P in f)
1553
- P === "ease" || P === "easeEach" || Ls(P, f[P], C, f.easeEach);
1554
- for (P in C)
1555
- for (R = C[P].sort(function(F, U) {
1551
+ P = {};
1552
+ for (C in f)
1553
+ C === "ease" || C === "easeEach" || Ls(C, f[C], P, f.easeEach);
1554
+ for (C in P)
1555
+ for (R = P[C].sort(function(F, U) {
1556
1556
  return F.t - U.t;
1557
1557
  }), A = 0, b = 0; b < R.length; b++)
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, v.to(x, B, A), A += B.duration;
1561
+ }, B[C] = O.v, v.to(x, B, A), A += B.duration;
1562
1562
  v.duration() < c && v.to({}, {
1563
1563
  duration: c - v.duration()
1564
1564
  });
@@ -1567,7 +1567,7 @@ var H = /* @__PURE__ */ (function(a) {
1567
1567
  c || o.duration(c = v.duration());
1568
1568
  } else
1569
1569
  o.timeline = 0;
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;
1570
+ return m === !0 && !Ci && (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) {
@@ -1602,9 +1602,9 @@ var H = /* @__PURE__ */ (function(a) {
1602
1602
  }, t.invalidate = function(n) {
1603
1603
  return (!n || !this.vars.runBackwards) && (this._startAt = 0), this._pt = this._op = this._onUpdate = this._lazy = this.ratio = 0, this._ptLookup = [], this.timeline && this.timeline.invalidate(n), a.prototype.invalidate.call(this, n);
1604
1604
  }, t.resetTo = function(n, r, s, o, l) {
1605
- Ct || oe.wake(), this._ts || this.play();
1605
+ Pt || oe.wake(), this._ts || this.play();
1606
1606
  var c = Math.min(this._dur, (this._dp._time - this._start) * this._ts), h;
1607
- return this._initted || ki(this, c), h = this._ease(c / this._dur), Os(this, n, r, s, o, h, c, l) ? this.resetTo(n, r, s, o, 1) : (Kt(this, 0), this.parent || Gn(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
1607
+ return this._initted || ki(this, c), h = this._ease(c / this._dur), Os(this, n, r, s, o, h, c, l) ? this.resetTo(n, r, s, o, 1) : (Kt(this, 0), this.parent || Vn(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
1608
1608
  }, t.kill = function(n, r) {
1609
1609
  if (r === void 0 && (r = "all"), !n && (!r || r === "all"))
1610
1610
  return this._lazy = this._pt = 0, this.parent ? mt(this) : this.scrollTrigger && this.scrollTrigger.kill(!!K), this;
@@ -1647,7 +1647,7 @@ var H = /* @__PURE__ */ (function(a) {
1647
1647
  }, e.killTweensOf = function(n, r, s) {
1648
1648
  return N.killTweensOf(n, r, s);
1649
1649
  }, e;
1650
- })(Pt);
1650
+ })(Ct);
1651
1651
  ue(H.prototype, {
1652
1652
  _targets: [],
1653
1653
  _lazy: 0,
@@ -1670,7 +1670,7 @@ var Ui = function(e, t, i) {
1670
1670
  }, Us = function(e, t, i) {
1671
1671
  return e.setAttribute(t, i);
1672
1672
  }, Fi = function(e, t) {
1673
- return V(e[t]) ? dr : Ai(e[t]) && e.setAttribute ? Us : Ui;
1673
+ return G(e[t]) ? dr : Ai(e[t]) && e.setAttribute ? Us : Ui;
1674
1674
  }, pr = function(e, t) {
1675
1675
  return t.set(t.t, t.p, Math.round((t.s + t.c * e) * 1e6) / 1e6, t);
1676
1676
  }, Fs = function(e, t) {
@@ -1728,7 +1728,7 @@ N = new q({
1728
1728
  smoothChildTiming: !0
1729
1729
  });
1730
1730
  he.stringFilter = rr;
1731
- var Ze = [], Ft = {}, Bs = [], nn = 0, Vs = 0, ti = function(e) {
1731
+ var Ze = [], Ft = {}, Bs = [], nn = 0, Gs = 0, ti = function(e) {
1732
1732
  return (Ft[e] || Bs).map(function(t) {
1733
1733
  return t();
1734
1734
  });
@@ -1746,16 +1746,16 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Vs = 0, ti = function(e) {
1746
1746
  }), nn = e, ti("matchMedia"));
1747
1747
  }, gr = /* @__PURE__ */ (function() {
1748
1748
  function a(t, i) {
1749
- this.selector = i && fi(i), this.data = [], this._r = [], this.isReverted = !1, this.id = Vs++, t && this.add(t);
1749
+ this.selector = i && fi(i), this.data = [], this._r = [], this.isReverted = !1, this.id = Gs++, t && this.add(t);
1750
1750
  }
1751
1751
  var e = a.prototype;
1752
1752
  return e.add = function(i, n, r) {
1753
- V(i) && (r = n, n = i, i = V);
1753
+ G(i) && (r = n, n = i, i = G);
1754
1754
  var s = this, o = function() {
1755
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), V(u) && s._r.push(u), z = c, s.selector = h, s.isReverted = !1, 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
- return s.last = o, i === V ? o(s, function(l) {
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) {
@@ -1797,7 +1797,7 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Vs = 0, ti = function(e) {
1797
1797
  }, e.revert = function(i) {
1798
1798
  this.kill(i || {});
1799
1799
  }, a;
1800
- })(), Gs = /* @__PURE__ */ (function() {
1800
+ })(), Vs = /* @__PURE__ */ (function() {
1801
1801
  function a(t) {
1802
1802
  this.contexts = [], this.scope = t, z && z.data.push(this);
1803
1803
  }
@@ -1820,7 +1820,7 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Vs = 0, ti = function(e) {
1820
1820
  return n.kill(i, !0);
1821
1821
  });
1822
1822
  }, a;
1823
- })(), Gt = {
1823
+ })(), Vt = {
1824
1824
  registerPlugin: function() {
1825
1825
  for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
1826
1826
  t[i] = arguments[i];
@@ -1836,7 +1836,7 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Vs = 0, ti = function(e) {
1836
1836
  },
1837
1837
  getProperty: function(e, t, i, n) {
1838
1838
  Z(e) && (e = me(e)[0]);
1839
- var r = He(e || {}).get, s = i ? Vn : Bn;
1839
+ var r = He(e || {}).get, s = i ? Gn : Bn;
1840
1840
  return i === "native" && (i = ""), e && (t ? s((ae[t] && ae[t].get || r)(e, t, i, n)) : function(o, l, c) {
1841
1841
  return s((ae[o] && ae[o].get || r)(e, o, l, c));
1842
1842
  });
@@ -1905,7 +1905,7 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Vs = 0, ti = function(e) {
1905
1905
  return e ? new gr(e, t) : z;
1906
1906
  },
1907
1907
  matchMedia: function(e) {
1908
- return new Gs(e);
1908
+ return new Vs(e);
1909
1909
  },
1910
1910
  matchMediaRefresh: function() {
1911
1911
  return Ze.forEach(function(e) {
@@ -1952,7 +1952,7 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Vs = 0, ti = function(e) {
1952
1952
  globals: Fn,
1953
1953
  Tween: H,
1954
1954
  Timeline: q,
1955
- Animation: Pt,
1955
+ Animation: Ct,
1956
1956
  getCache: He,
1957
1957
  _removeLinkedListItem: Yt,
1958
1958
  reverting: function() {
@@ -1962,15 +1962,15 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Vs = 0, ti = function(e) {
1962
1962
  return e && z && (z.data.push(e), e._ctx = z), z;
1963
1963
  },
1964
1964
  suppressOverwrites: function(e) {
1965
- return Pi = e;
1965
+ return Ci = e;
1966
1966
  }
1967
1967
  }
1968
1968
  };
1969
1969
  te("to,from,fromTo,delayedCall,set,killTweensOf", function(a) {
1970
- return Gt[a] = H[a];
1970
+ return Vt[a] = H[a];
1971
1971
  });
1972
1972
  oe.add(q.updateRoot);
1973
- et = Gt.to({}, {
1973
+ et = Vt.to({}, {
1974
1974
  duration: 0
1975
1975
  });
1976
1976
  var Hs = function(e, t) {
@@ -2003,7 +2003,7 @@ var Hs = function(e, t) {
2003
2003
  };
2004
2004
  }
2005
2005
  };
2006
- }, re = Gt.registerPlugin({
2006
+ }, re = Vt.registerPlugin({
2007
2007
  name: "attr",
2008
2008
  init: function(e, t, i, n, r) {
2009
2009
  var s, o, l;
@@ -2022,7 +2022,7 @@ var Hs = function(e, t) {
2022
2022
  for (var i = t.length; i--; )
2023
2023
  this.add(e, i, e[i] || 0, t[i], 0, 0, 0, 0, 0, 1);
2024
2024
  }
2025
- }, ii("roundProps", mi), ii("modifiers"), ii("snap", Wn)) || Gt;
2025
+ }, ii("roundProps", mi), ii("modifiers"), ii("snap", Wn)) || Vt;
2026
2026
  H.version = q.version = re.version = "3.13.0";
2027
2027
  kn = 1;
2028
2028
  Ti() && ht();
@@ -2044,7 +2044,7 @@ D.Bounce;
2044
2044
  D.Sine;
2045
2045
  D.Expo;
2046
2046
  D.Circ;
2047
- var rn, Se, nt, Ni, Ve, sn, $i, Ys = function() {
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",
@@ -2082,8 +2082,8 @@ var rn, Se, nt, Ni, Ve, sn, $i, Ys = function() {
2082
2082
  if (e in Ae && r) {
2083
2083
  if (this.tfm = this.tfm || {}, e !== "transform")
2084
2084
  e = xe[e] || e, ~e.indexOf(",") ? e.split(",").forEach(function(o) {
2085
- return i.tfm[o] = Ce(n, o);
2086
- }) : this.tfm[e] = s.x ? s[e] : Ce(n, e), e === ne && (this.tfm.zOrigin = s.zOrigin);
2085
+ return i.tfm[o] = Pe(n, o);
2086
+ }) : this.tfm[e] = s.x ? s[e] : Pe(n, e), e === ne && (this.tfm.zOrigin = s.zOrigin);
2087
2087
  else
2088
2088
  return xe.transform.split(",").forEach(function(o) {
2089
2089
  return a.call(i, o, t);
@@ -2121,16 +2121,16 @@ var rn, Se, nt, Ni, Ve, sn, $i, Ys = function() {
2121
2121
  var n = getComputedStyle(e);
2122
2122
  return n[t] || n.getPropertyValue(t.replace(Bi, "-$1").toLowerCase()) || n.getPropertyValue(t) || !i && a(e, ct(t) || t, 1) || "";
2123
2123
  }, on = "O,Moz,ms,Ms,Webkit".split(","), ct = function(e, t, i) {
2124
- var n = t || Ve, r = n.style, s = 5;
2124
+ var n = t || Ge, r = n.style, s = 5;
2125
2125
  if (e in r && !i)
2126
2126
  return e;
2127
2127
  for (e = e.charAt(0).toUpperCase() + e.substr(1); s-- && !(on[s] + e in r); )
2128
2128
  ;
2129
2129
  return s < 0 ? null : (s === 3 ? "ms" : s >= 0 ? on[s] : "") + e;
2130
2130
  }, bi = function() {
2131
- Ys() && window.document && (rn = window, Se = rn.document, nt = Se.documentElement, Ve = xi("div") || {
2131
+ Ys() && window.document && (rn = window, Se = rn.document, nt = Se.documentElement, Ge = xi("div") || {
2132
2132
  style: {}
2133
- }, xi("div"), $ = ct($), ne = $ + "Origin", Ve.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", vr = !!ct("perspective"), $i = re.core.reverting, Ni = 1);
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);
@@ -2174,20 +2174,20 @@ var rn, Se, nt, Ni, Ve, sn, $i, Ys = function() {
2174
2174
  grid: 1,
2175
2175
  flex: 1
2176
2176
  }, Le = function a(e, t, i, n) {
2177
- var r = parseFloat(i) || 0, s = (i + "").trim().substr((r + "").length) || "px", o = Ve.style, l = Zs.test(t), c = e.tagName.toLowerCase() === "svg", h = (c ? "client" : "offset") + (l ? "Width" : "Height"), u = 100, p = n === "px", m = n === "%", f, d, g, _;
2177
+ var r = parseFloat(i) || 0, s = (i + "").trim().substr((r + "").length) || "px", o = Ge.style, l = Zs.test(t), c = e.tagName.toLowerCase() === "svg", h = (c ? "client" : "offset") + (l ? "Width" : "Height"), u = 100, p = n === "px", m = n === "%", f, d, g, _;
2178
2178
  if (n === s || !r || cn[n] || cn[s])
2179
2179
  return r;
2180
2180
  if (s !== "px" && !p && (r = a(e, t, i, "px")), _ = e.getCTM && wr(e), (m || s === "%") && (Ae[t] || ~t.indexOf("adius")))
2181
- return f = _ ? e.getBBox()[l ? "width" : "height"] : e[h], G(m ? r / f * u : r / 100 * f);
2181
+ return f = _ ? e.getBBox()[l ? "width" : "height"] : e[h], V(m ? r / f * u : r / 100 * f);
2182
2182
  if (o[l ? "width" : "height"] = u + (p ? s : n), d = n !== "rem" && ~t.indexOf("adius") || n === "em" && e.appendChild && !c ? e : e.parentNode, _ && (d = (e.ownerSVGElement || {}).parentNode), (!d || d === Se || !d.appendChild) && (d = Se.body), g = d._gsap, g && m && g.width && l && g.time === oe.time && !g.uncache)
2183
- return G(r / g.width * u);
2183
+ return V(r / g.width * u);
2184
2184
  if (m && (t === "height" || t === "width")) {
2185
2185
  var y = e.style[t];
2186
2186
  e.style[t] = u + n, f = e[h], y ? e.style[t] = y : Ke(e, t);
2187
2187
  } else
2188
- (m || s === "%") && !aa[ge(d, "display")] && (o.position = ge(e, "position")), d === e && (o.position = "static"), d.appendChild(Ve), f = Ve[h], d.removeChild(Ve), o.position = "absolute";
2189
- return l && m && (g = He(d), g.time = oe.time, g.width = d[h]), G(p ? f * r / u : f && r ? u / f * r : 0);
2190
- }, Ce = function(e, t, i, n) {
2188
+ (m || s === "%") && !aa[ge(d, "display")] && (o.position = ge(e, "position")), d === e && (o.position = "static"), d.appendChild(Ge), f = Ge[h], d.removeChild(Ge), o.position = "absolute";
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
+ }, Pe = function(e, t, i, n) {
2191
2191
  var r;
2192
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) {
@@ -2299,40 +2299,40 @@ var rn, Se, nt, Ni, Ve, sn, $i, Ys = function() {
2299
2299
  return 1;
2300
2300
  }
2301
2301
  */
2302
- }, At = [1, 0, 0, 1, 0, 0], Cr = {}, Pr = function(e) {
2302
+ }, At = [1, 0, 0, 1, 0, 0], Pr = {}, Cr = function(e) {
2303
2303
  return e === "matrix(1, 0, 0, 1, 0, 0)" || e === "none" || !e;
2304
2304
  }, dn = function(e) {
2305
2305
  var t = ge(e, $);
2306
- return Pr(t) ? At : t.substr(7).match(On).map(G);
2307
- }, Vi = function(e, t) {
2306
+ return Cr(t) ? At : t.substr(7).match(On).map(V);
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
2310
  }, vi = function(e, t, i, n, r, s) {
2311
- var o = e._gsap, l = r || Vi(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);
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, P, E, C, w;
2312
+ i ? l !== At && (E = m * g - f * d) && (C = v * (g / E) + b * (-d / E) + (d * y - g * _) / E, w = v * (-f / E) + b * (m / E) - (m * y - f * _) / E, v = C, b = w) : (P = Er(e), v = P.x + (~x[0].indexOf("%") ? v / 100 * P.width : v), b = P.y + (~(x[1] || x[0]).indexOf("%") ? b / 100 * P.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, 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 = Vi(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 = G(Math.sqrt(M * M + A * A + R * R)), f = G(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 = G(m), i.scaleY = G(f), i.rotation = G(d) + o, i.rotationX = G(g) + o, i.rotationY = G(_) + 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;
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, P, E, C, 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, P = 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 + P * R), u -= P - (b * A + P * 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], C = We(Fe, Ue), g = C * $e, C && (w = Math.cos(-C), T = Math.sin(-C), 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), C = We(-R, Ue), _ = C * $e, C && (w = Math.cos(-C), T = Math.sin(-C), 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), C = We(A, M), d = C * $e, C && (w = Math.cos(C), T = Math.sin(C), 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)), C = We(B, F), y = Math.abs(C) > 2e-4 ? C * $e : 0, v = Ee ? 1 / (Ee < 0 ? -Ee : Ee) : 0), i.svg && (U = e.getAttribute("transform"), i.forceCSS = e.setAttribute("transform", "") || !Cr(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) {
2322
2322
  var n = X(t);
2323
- return G(parseFloat(t) + parseFloat(Le(e, "x", i + "px", n))) + n;
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
2326
  }, ze = "0deg", ft = "0px", Ne = ") ", Ar = function(e, t) {
2327
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
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);
2329
+ var P = parseFloat(h) * rt, E = Math.sin(P), C = Math.cos(P), w;
2330
+ P = parseFloat(u) * rt, w = Math.cos(P), s = ni(y, s, E * w * -x), o = ni(y, o, -Math.sin(P) * -x), l = ni(y, l, C * w * -x + x);
2331
2331
  }
2332
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), 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 = G(b), C = G(C), E = G(E), P = G(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 = G(x + f - (f * b + d * E) + g), v = G(v + d - (f * C + d * P) + _)), (n || r) && (w = m.getBBox(), x = G(x + n / 100 * w.width), v = G(v + r / 100 * w.height)), w = "matrix(" + b + "," + C + "," + E + "," + P + "," + x + "," + v + ")", m.setAttribute("transform", w), y && (m.style[$] = w);
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, P, E, C, 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, P = Math.sin(l) * u, E = Math.sin(l - c) * -p, C = Math.cos(l - c) * p, c && (h *= rt, w = Math.tan(c - h), w = Math.sqrt(1 + w * w), E *= w, C *= w, h && (w = Math.tan(h), w = Math.sqrt(1 + w * w), b *= w, P *= w)), b = V(b), P = V(P), E = V(E), C = V(C)) : (b = u, C = p, P = 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 * P + d * C) + _)), (n || r) && (w = m.getBBox(), x = V(x + n / 100 * w.width), v = V(v + r / 100 * w.height)), w = "matrix(" + b + "," + P + "," + E + "," + C + "," + 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;
@@ -2355,7 +2355,7 @@ te("padding,margin,Width,Radius", function(a, e) {
2355
2355
  var p, m;
2356
2356
  if (arguments.length < 4)
2357
2357
  return p = s.map(function(f) {
2358
- return Ce(o, f, c);
2358
+ return Pe(o, f, c);
2359
2359
  }), m = p.join(" "), m.split(p[0]).length === 5 ? p[0] : m;
2360
2360
  p = (h + "").split(" "), m = {}, s.forEach(function(f, d) {
2361
2361
  return m[f] = p[d] = p[d] || p[(d - 1) / 2 | 0];
@@ -2369,25 +2369,25 @@ 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, v, b, C, E, P;
2373
- Ni || bi(), this.styles = this.styles || br(e), P = this.styles.props, this.tween = i;
2372
+ var s = this._props, o = e.style, l = i.vars.startAt, c, h, u, p, m, f, d, g, _, y, x, v, b, P, E, C;
2373
+ Ni || bi(), this.styles = this.styles || br(e), C = 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
2377
  f(this, e, d, h, i) && (E = 1);
2378
2378
  else if (d.substr(0, 2) === "--")
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]);
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), C.push(d, 0, o[d]);
2380
2380
  else if (m !== "undefined") {
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)), 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")
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(Pe(e, d)) || ""), (c + "").charAt(1) === "=" && (c = Pe(e, d))) : c = Pe(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 && Pe(e, "visibility") === "hidden" && u && (p = 0), C.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)), v || (b = e._gsap, b.renderTransform && !t.parseTransform || Tt(e, t.parseTransform), P = 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 ? 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)));
2385
+ C.push(ne, 0, o[ne]), h = la(h), b.svg ? vi(e, h, 0, P, 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
- vi(e, h, 1, C, 0, this);
2388
+ vi(e, h, 1, P, 0, this);
2389
2389
  continue;
2390
- } else if (d in Cr) {
2390
+ } else if (d in Pr) {
2391
2391
  da(this, b, d, p, y ? it(p, y + h) : h);
2392
2392
  continue;
2393
2393
  } else if (d === "smoothOrigin") {
@@ -2411,7 +2411,7 @@ var Tr = {
2411
2411
  Di(d, h);
2412
2412
  continue;
2413
2413
  }
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);
2414
+ x || (d in o ? C.push(d, 0, o[d]) : typeof e[d] == "function" ? C.push(d, 2, e[d]()) : C.push(d, 1, c || e[d])), s.push(d);
2415
2415
  }
2416
2416
  }
2417
2417
  E && mr(this);
@@ -2423,15 +2423,15 @@ var Tr = {
2423
2423
  else
2424
2424
  t.styles.revert();
2425
2425
  },
2426
- get: Ce,
2426
+ get: Pe,
2427
2427
  aliases: xe,
2428
2428
  getSetter: function(e, t, i) {
2429
2429
  var n = xe[t];
2430
- return n && n.indexOf(",") < 0 && (t = n), t in Ae && t !== ne && (e._gsap.x || Ce(e, "x")) ? i && sn === i ? t === "scale" ? ta : ea : (sn = i || {}) && (t === "scale" ? ia : na) : e.style && !Ai(e.style[t]) ? Qs : ~t.indexOf("-") ? Js : Fi(e, t);
2430
+ return n && n.indexOf(",") < 0 && (t = n), t in Ae && t !== ne && (e._gsap.x || Pe(e, "x")) ? i && sn === i ? t === "scale" ? ta : ea : (sn = i || {}) && (t === "scale" ? ia : na) : e.style && !Ai(e.style[t]) ? Qs : ~t.indexOf("-") ? Js : Fi(e, t);
2431
2431
  },
2432
2432
  core: {
2433
2433
  _removeProperty: Ke,
2434
- _getMatrix: Vi
2434
+ _getMatrix: Gi
2435
2435
  }
2436
2436
  };
2437
2437
  re.utils.checkPrefix = ct;
@@ -2441,7 +2441,7 @@ re.core.getStyleSaver = br;
2441
2441
  Ae[r] = 1;
2442
2442
  });
2443
2443
  te(e, function(r) {
2444
- he.units[r] = "deg", Cr[r] = 1;
2444
+ he.units[r] = "deg", Pr[r] = 1;
2445
2445
  }), xe[n[13]] = a + "," + e, te(i, function(r) {
2446
2446
  var s = r.split(":");
2447
2447
  xe[s[1]] = n[s[0]];
@@ -2944,7 +2944,7 @@ class wa extends be {
2944
2944
  return this.$input.value = this.getValue(), this;
2945
2945
  }
2946
2946
  }
2947
- var Ca = `.lil-gui {
2947
+ var Pa = `.lil-gui {
2948
2948
  font-family: var(--font-family);
2949
2949
  font-size: var(--font-size);
2950
2950
  line-height: 1;
@@ -3366,14 +3366,14 @@ var Ca = `.lil-gui {
3366
3366
  font-family: "lil-gui";
3367
3367
  src: url("data:application/font-woff2;charset=utf-8;base64,d09GMgABAAAAAALkAAsAAAAABtQAAAKVAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHFQGYACDMgqBBIEbATYCJAMUCwwABCAFhAoHgQQbHAbIDiUFEYVARAAAYQTVWNmz9MxhEgodq49wYRUFKE8GWNiUBxI2LBRaVnc51U83Gmhs0Q7JXWMiz5eteLwrKwuxHO8VFxUX9UpZBs6pa5ABRwHA+t3UxUnH20EvVknRerzQgX6xC/GH6ZUvTcAjAv122dF28OTqCXrPuyaDER30YBA1xnkVutDDo4oCi71Ca7rrV9xS8dZHbPHefsuwIyCpmT7j+MnjAH5X3984UZoFFuJ0yiZ4XEJFxjagEBeqs+e1iyK8Xf/nOuwF+vVK0ur765+vf7txotUi0m3N0m/84RGSrBCNrh8Ee5GjODjF4gnWP+dJrH/Lk9k4oT6d+gr6g/wssA2j64JJGP6cmx554vUZnpZfn6ZfX2bMwPPrlANsB86/DiHjhl0OP+c87+gaJo/gY084s3HoYL/ZkWHTRfBXvvoHnnkHvngKun4KBE/ede7tvq3/vQOxDXB1/fdNz6XbPdcr0Vhpojj9dG+owuSKFsslCi1tgEjirjXdwMiov2EioadxmqTHUCIwo8NgQaeIasAi0fTYSPTbSmwbMOFduyh9wvBrESGY0MtgRjtgQR8Q1bRPohn2UoCRZf9wyYANMXFeJTysqAe0I4mrherOekFdKMrYvJjLvOIUM9SuwYB5DVZUwwVjJJOaUnZCmcEkIZZrKqNvRGRMvmFZsmhP4VMKCSXBhSqUBxgMS7h0cZvEd71AWkEhGWaeMFcNnpqyJkyXgYL7PQ1MoSq0wDAkRtJIijkZSmqYTiSImfLiSWXIZwhRh3Rug2X0kk1Dgj+Iu43u5p98ghopcpSo0Uyc8SnjlYX59WUeaMoDqmVD2TOWD9a4pCRAzf2ECgwGcrHjPOWY9bNxq/OL3I/QjwEAAAA=") format("woff2");
3368
3368
  }`;
3369
- function Pa(a) {
3369
+ function Ca(a) {
3370
3370
  const e = document.createElement("style");
3371
3371
  e.innerHTML = a;
3372
3372
  const t = document.querySelector("head link[rel=stylesheet], head style");
3373
3373
  t ? document.head.insertBefore(e, t) : document.head.appendChild(e);
3374
3374
  }
3375
3375
  let fn = !1;
3376
- class Gi {
3376
+ class Vi {
3377
3377
  /**
3378
3378
  * Creates a panel that holds controllers.
3379
3379
  * @example
@@ -3422,7 +3422,7 @@ class Gi {
3422
3422
  this.parent.children.push(this), this.parent.folders.push(this), this.parent.$children.appendChild(this.domElement);
3423
3423
  return;
3424
3424
  }
3425
- this.domElement.classList.add("lil-root"), l && this.domElement.classList.add("lil-allow-touch-styles"), !fn && o && (Pa(Ca), fn = !0), i ? i.appendChild(this.domElement) : t && (this.domElement.classList.add("lil-auto-place", "autoPlace"), document.body.appendChild(this.domElement)), n && this.domElement.style.setProperty("--width", n + "px"), this._closeFolders = s;
3425
+ this.domElement.classList.add("lil-root"), l && this.domElement.classList.add("lil-allow-touch-styles"), !fn && o && (Ca(Pa), fn = !0), i ? i.appendChild(this.domElement) : t && (this.domElement.classList.add("lil-auto-place", "autoPlace"), document.body.appendChild(this.domElement)), n && this.domElement.style.setProperty("--width", n + "px"), this._closeFolders = s;
3426
3426
  }
3427
3427
  /**
3428
3428
  * Adds a controller to the GUI, inferring controller type using the `typeof` operator.
@@ -3493,7 +3493,7 @@ class Gi {
3493
3493
  * @returns {GUI}
3494
3494
  */
3495
3495
  addFolder(e) {
3496
- const t = new Gi({ parent: this, title: e });
3496
+ const t = new Vi({ parent: this, title: e });
3497
3497
  return this.root._closeFolders && t.close(), t;
3498
3498
  }
3499
3499
  /**
@@ -4533,13 +4533,13 @@ var si = 12, yn = 5003, Na = [0, 1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047,
4533
4533
  function $a(a, e, t, i, n = Mr(512), r = new Uint8Array(256), s = new Int32Array(yn), o = new Int32Array(yn)) {
4534
4534
  let l = s.length, c = Math.max(2, i);
4535
4535
  r.fill(0), o.fill(0), s.fill(-1);
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;
4537
- for (let w = l; w < 65536; w *= 2) ++C;
4538
- C = 8 - C, n.writeByte(c), P(_);
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], P = 0;
4537
+ for (let w = l; w < 65536; w *= 2) ++P;
4538
+ P = 8 - P, n.writeByte(c), C(_);
4539
4539
  let E = t.length;
4540
4540
  for (let w = 1; w < E; w++)
4541
4541
  e: {
4542
- let T = t[w], M = (T << si) + b, A = T << C ^ b;
4542
+ let T = t[w], M = (T << si) + b, A = T << P ^ b;
4543
4543
  if (s[A] === M) {
4544
4544
  b = o[A];
4545
4545
  break e;
@@ -4549,10 +4549,10 @@ function $a(a, e, t, i, n = Mr(512), r = new Uint8Array(256), s = new Int32Array
4549
4549
  b = o[A];
4550
4550
  break e;
4551
4551
  }
4552
- P(b), b = T, x < 1 << si ? (o[A] = x++, s[A] = M) : (s.fill(-1), x = _ + 2, f = !0, P(_));
4552
+ C(b), b = T, x < 1 << si ? (o[A] = x++, s[A] = M) : (s.fill(-1), x = _ + 2, f = !0, C(_));
4553
4553
  }
4554
- return P(b), P(y), n.writeByte(0), n.bytesView();
4555
- function P(w) {
4554
+ return C(b), C(y), n.writeByte(0), n.bytesView();
4555
+ function C(w) {
4556
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;
4557
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) {
4558
4558
  for (; u > 0; ) r[v++] = h & 255, v >= 254 && (n.writeByte(v), n.writeBytesView(r, 0, v), v = 0), h >>= 8, u -= 8;
@@ -4593,7 +4593,7 @@ function xn(a, e, t) {
4593
4593
  function ai() {
4594
4594
  return { ac: 0, rc: 0, gc: 0, bc: 0, cnt: 0, nn: 0, fw: 0, bk: 0, tm: 0, mtm: 0, err: 0 };
4595
4595
  }
4596
- function Va(a, e) {
4596
+ function Ga(a, e) {
4597
4597
  let t = e === "rgb444" ? 4096 : 65536, i = new Array(t), n = a.length;
4598
4598
  if (e === "rgba4444") for (let r = 0; r < n; ++r) {
4599
4599
  let s = a[r], o = s >> 24 & 255, l = s >> 16 & 255, c = s >> 8 & 255, h = s & 255, u = Or(h, c, l, o), p = u in i ? i[u] : i[u] = ai();
@@ -4609,11 +4609,11 @@ function Va(a, e) {
4609
4609
  }
4610
4610
  return i;
4611
4611
  }
4612
- function Ga(a, e, t = {}) {
4612
+ function Va(a, e, t = {}) {
4613
4613
  let { format: i = "rgb565", clearAlpha: n = !0, clearAlphaColor: r = 0, clearAlphaThreshold: s = 0, oneBitAlpha: o = !1 } = t;
4614
4614
  if (!a || !a.buffer) throw new Error("quantize() expected RGBA Uint8Array data");
4615
4615
  if (!(a instanceof Uint8Array) && !(a instanceof Uint8ClampedArray)) throw new Error("quantize() expected RGBA Uint8Array data");
4616
- let l = new Uint32Array(a.buffer), c = t.useSqrt !== !1, h = i === "rgba4444", u = Va(l, i), p = u.length, m = p - 1, f = new Uint32Array(p + 1);
4616
+ let l = new Uint32Array(a.buffer), c = t.useSqrt !== !1, h = i === "rgba4444", u = Ga(l, i), p = u.length, m = p - 1, f = new Uint32Array(p + 1);
4617
4617
  for (var d = 0, g = 0; g < p; ++g) {
4618
4618
  let O = u[g];
4619
4619
  if (O != null) {
@@ -4631,15 +4631,15 @@ function Ga(a, e, t = {}) {
4631
4631
  for (x = ++f[0]; x > 1 && (v = x >> 1, !(u[y = f[v]].err <= b)); x = v) f[x] = y;
4632
4632
  f[x] = g;
4633
4633
  }
4634
- var C = d - e;
4635
- for (g = 0; g < C; ) {
4634
+ var P = d - e;
4635
+ for (g = 0; g < P; ) {
4636
4636
  for (var E; ; ) {
4637
- var P = f[1];
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);
4640
- var b = u[P].err;
4637
+ var C = f[1];
4638
+ if (E = u[C], E.tm >= E.mtm && u[E.nn].mtm <= E.tm) break;
4639
+ E.mtm == m ? C = f[1] = f[f[0]--] : (xn(u, C), E.tm = g);
4640
+ var b = u[C].err;
4641
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;
4642
- f[x] = P;
4642
+ f[x] = C;
4643
4643
  }
4644
4644
  var w = u[E.nn], T = E.cnt, M = w.cnt, _ = 1 / (T + M);
4645
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;
@@ -4682,30 +4682,30 @@ function ja(a, e, t = "rgb565") {
4682
4682
  function Ya(a, e, t, i, n) {
4683
4683
  let r = 0, s = 1e100;
4684
4684
  for (let o = 0; o < n.length; o++) {
4685
- let l = n[o], c = l[3], h = Ge(c - i);
4685
+ let l = n[o], c = l[3], h = Ve(c - i);
4686
4686
  if (h > s) continue;
4687
4687
  let u = l[0];
4688
- if (h += Ge(u - a), h > s) continue;
4688
+ if (h += Ve(u - a), h > s) continue;
4689
4689
  let p = l[1];
4690
- if (h += Ge(p - e), h > s) continue;
4690
+ if (h += Ve(p - e), h > s) continue;
4691
4691
  let m = l[2];
4692
- h += Ge(m - t), !(h > s) && (s = h, r = o);
4692
+ h += Ve(m - t), !(h > s) && (s = h, r = o);
4693
4693
  }
4694
4694
  return r;
4695
4695
  }
4696
4696
  function Za(a, e, t, i) {
4697
4697
  let n = 0, r = 1e100;
4698
4698
  for (let s = 0; s < i.length; s++) {
4699
- let o = i[s], l = o[0], c = Ge(l - a);
4699
+ let o = i[s], l = o[0], c = Ve(l - a);
4700
4700
  if (c > r) continue;
4701
4701
  let h = o[1];
4702
- if (c += Ge(h - e), c > r) continue;
4702
+ if (c += Ve(h - e), c > r) continue;
4703
4703
  let u = o[2];
4704
- c += Ge(u - t), !(c > r) && (r = c, n = s);
4704
+ c += Ve(u - t), !(c > r) && (r = c, n = s);
4705
4705
  }
4706
4706
  return n;
4707
4707
  }
4708
- function Ge(a) {
4708
+ function Ve(a) {
4709
4709
  return a * a;
4710
4710
  }
4711
4711
  function Ka(a = {}) {
@@ -4728,8 +4728,8 @@ function Ka(a = {}) {
4728
4728
  if (!_) throw new Error("First frame must include a { palette } option");
4729
4729
  Wa(i, u, p, _, x), bn(i, _), y >= 0 && qa(i, y);
4730
4730
  }
4731
- let C = Math.round(g / 10);
4732
- Xa(i, v, C, f, d);
4731
+ let P = Math.round(g / 10);
4732
+ Xa(i, v, P, f, d);
4733
4733
  let E = !!_ && !b;
4734
4734
  Qa(i, u, p, E ? _ : null), E && bn(i, _), Ja(i, h, u, p, x, r, s, o);
4735
4735
  } };
@@ -4836,9 +4836,9 @@ class eo {
4836
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);
4837
4837
  const g = m + 16, _ = f + 40, y = h - 32, x = 20, v = s.style.background || "";
4838
4838
  let b = [];
4839
- const C = v.match(/rgba?\([^)]+\)/g);
4840
- if (C && C.length >= 2)
4841
- b = C;
4839
+ const P = v.match(/rgba?\([^)]+\)/g);
4840
+ if (P && P.length >= 2)
4841
+ b = P;
4842
4842
  else {
4843
4843
  const E = v.match(/#[0-9a-fA-F]{3,8}/g);
4844
4844
  E && E.length >= 2 && (b = E);
@@ -4851,8 +4851,8 @@ class eo {
4851
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);
4852
4852
  }
4853
4853
  if (e.fillStyle = "#cccccc", e.font = "14px Arial, sans-serif", o && e.fillText(o.textContent || "", g, f + 78), l) {
4854
- const E = l.textContent || "", P = e.measureText(E).width;
4855
- e.fillText(E, g + y - P, f + 78);
4854
+ const E = l.textContent || "", C = e.measureText(E).width;
4855
+ e.fillText(E, g + y - C, f + 78);
4856
4856
  }
4857
4857
  c && c.textContent && (e.fillStyle = "#888888", e.font = "italic 12px Arial, sans-serif", e.fillText(c.textContent, g, f + 95));
4858
4858
  } catch (n) {
@@ -4963,7 +4963,7 @@ class eo {
4963
4963
  const { fps: t = 20, filename: i } = e, n = Math.round(1e3 / t);
4964
4964
  console.log(`Generating GIF with ${this.frames.length} frames at ${t} fps...`);
4965
4965
  try {
4966
- const r = this.frames[0], s = r.width, o = r.height, l = Ga(r.data, 256), c = Ka();
4966
+ const r = this.frames[0], s = r.width, o = r.height, l = Va(r.data, 256), c = Ka();
4967
4967
  for (let f = 0; f < this.frames.length; f++) {
4968
4968
  const d = this.frames[f], g = ja(d.data, l);
4969
4969
  c.writeFrame(g, s, o, {
@@ -5016,7 +5016,7 @@ class to extends Nr {
5016
5016
  return super.copy(e, t), this.element = e.element.cloneNode(!0), this.center = e.center, this;
5017
5017
  }
5018
5018
  }
5019
- const qe = new se(), vn = new Tn(), En = new Tn(), wn = new se(), Cn = new se();
5019
+ const qe = new se(), vn = new Tn(), En = new Tn(), wn = new se(), Pn = new se();
5020
5020
  class io {
5021
5021
  /**
5022
5022
  * Constructs a new CSS2D renderer.
@@ -5062,7 +5062,7 @@ class io {
5062
5062
  h(f.children[_], d, g);
5063
5063
  }
5064
5064
  function u(f, d) {
5065
- return wn.setFromMatrixPosition(f.matrixWorld), Cn.setFromMatrixPosition(d.matrixWorld), wn.distanceToSquared(Cn);
5065
+ return wn.setFromMatrixPosition(f.matrixWorld), Pn.setFromMatrixPosition(d.matrixWorld), wn.distanceToSquared(Pn);
5066
5066
  }
5067
5067
  function p(f) {
5068
5068
  const d = [];
@@ -5416,28 +5416,25 @@ class ho {
5416
5416
  this.labelGroup.add(o), this.labels.push(l), this.updateLabelPosition(o, l, this.currentMorph);
5417
5417
  });
5418
5418
  }
5419
- tempVector = new S.Vector3();
5419
+ localPos = new S.Vector3();
5420
+ worldPos = new S.Vector3();
5420
5421
  cameraDirection = new S.Vector3();
5421
- tempFlatVector = new S.Vector3();
5422
+ labelNormal = new S.Vector3();
5422
5423
  updateLabelPosition(e, t, i) {
5423
- const { lat: n, lon: r, element: s } = t, o = n * Math.PI / 180, l = r * Math.PI / 180, c = this.sphereRadius + 0.5, h = c * Math.cos(o) * Math.sin(l), u = c * Math.sin(o), p = c * Math.cos(o) * Math.cos(l), m = 2 * Math.PI * this.sphereRadius, f = Math.PI * this.sphereRadius, d = (r + 180) / 360, g = (n + 90) / 180, _ = (d - 0.5) * m, y = (g - 0.5) * f, x = 0.5;
5424
- if (this.globe)
5425
- if (this.tempVector.set(h, u, p), this.tempVector.applyEuler(this.globe.rotation), this.tempFlatVector.set(_, y, x), this.tempFlatVector.applyEuler(this.globe.rotation), e.position.set(
5426
- this.tempVector.x * i + this.tempFlatVector.x * (1 - i),
5427
- this.tempVector.y * i + this.tempFlatVector.y * (1 - i),
5428
- this.tempVector.z * i + this.tempFlatVector.z * (1 - i)
5429
- ), this.camera && i > 0.5) {
5430
- this.cameraDirection.copy(this.camera.position).normalize();
5431
- const C = this.tempVector.clone().normalize().dot(this.cameraDirection) > 0.15;
5432
- s.style.opacity = C ? "" : "0";
5424
+ const { lat: n, lon: r, element: s } = t, o = (r + 180) / 360, l = (n + 90) / 180, c = (o - 0.5) * 2 * Math.PI, h = (l - 0.5) * Math.PI, u = this.sphereRadius + 0.3, p = u * Math.cos(h) * Math.sin(c), m = u * Math.sin(h), f = u * Math.cos(h) * Math.cos(c), d = 2 * Math.PI * this.sphereRadius, g = Math.PI * this.sphereRadius, _ = (o - 0.5) * d, y = (l - 0.5) * g, x = 0.3, v = i * i * (3 - 2 * i);
5425
+ if (this.localPos.set(
5426
+ _ + v * (p - _),
5427
+ y + v * (m - y),
5428
+ x + v * (f - x)
5429
+ ), this.globe)
5430
+ if (this.worldPos.copy(this.localPos), this.worldPos.applyMatrix4(this.globe.matrixWorld), e.position.copy(this.worldPos), this.camera && v > 0.5) {
5431
+ this.cameraDirection.copy(this.camera.position).normalize(), this.labelNormal.set(p, m, f).normalize(), this.labelNormal.applyMatrix4(this.globe.matrixWorld).normalize();
5432
+ const b = this.labelNormal.dot(this.cameraDirection);
5433
+ s.style.opacity = b > 0.15 ? "" : "0";
5433
5434
  } else
5434
5435
  s.style.opacity = "";
5435
5436
  else
5436
- e.position.set(
5437
- h * i + _ * (1 - i),
5438
- u * i + y * (1 - i),
5439
- p * i + x * (1 - i)
5440
- ), s.style.opacity = "";
5437
+ e.position.copy(this.localPos), s.style.opacity = "";
5441
5438
  }
5442
5439
  /**
5443
5440
  * Get the label group to add to scene
@@ -6190,7 +6187,7 @@ void main() {
6190
6187
 
6191
6188
  gl_FragColor = vec4(1.0, 1.0, 1.0, alpha * vOpacity * 0.9);
6192
6189
  }
6193
- `, Pn = {
6190
+ `, Cn = {
6194
6191
  satellite: "https://raw.githubusercontent.com/mrdoob/three.js/dev/examples/textures/planets/earth_atmos_2048.jpg",
6195
6192
  natural: "https://raw.githubusercontent.com/mrdoob/three.js/dev/examples/textures/planets/earth_day_4096.jpg",
6196
6193
  dark: "https://raw.githubusercontent.com/mrdoob/three.js/dev/examples/textures/planets/earth_lights_2048.png",
@@ -6268,7 +6265,7 @@ class xo {
6268
6265
  }
6269
6266
  async createGlobe() {
6270
6267
  const e = await this.textureLoader.loadAsync(
6271
- Pn[this.config.texture]
6268
+ Cn[this.config.texture]
6272
6269
  );
6273
6270
  e.anisotropy = this.renderer.capabilities.getMaxAnisotropy(), e.minFilter = S.LinearMipmapLinearFilter, e.magFilter = S.LinearFilter;
6274
6271
  const t = document.createElement("canvas");
@@ -6364,7 +6361,7 @@ class xo {
6364
6361
  this.stars = new S.Points(t, s), this.scene.add(this.stars);
6365
6362
  }
6366
6363
  createGUI() {
6367
- getComputedStyle(this.container).position === "static" && (this.container.style.position = "relative"), this.gui = new Gi({
6364
+ getComputedStyle(this.container).position === "static" && (this.container.style.position = "relative"), this.gui = new Vi({
6368
6365
  container: this.container,
6369
6366
  title: "⚙ Controls",
6370
6367
  width: 220,
@@ -6467,7 +6464,7 @@ class xo {
6467
6464
  this.countryLabels?.setStyle(e);
6468
6465
  }
6469
6466
  async setTexture(e) {
6470
- const t = Pn[e];
6467
+ const t = Cn[e];
6471
6468
  if (!(!t || !this.material))
6472
6469
  try {
6473
6470
  const i = await this.textureLoader.loadAsync(t);