gralobe 1.0.63 → 1.0.64

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
- import * as S from "three";
1
+ import * as A from "three";
2
2
  import { OrbitControls as En } from "three/examples/jsm/controls/OrbitControls.js";
3
- import { CSS2DRenderer as wn, CSS2DObject as Bi } from "three/examples/jsm/renderers/CSS2DRenderer.js";
3
+ import { CSS2DRenderer as wn, CSS2DObject as $i } from "three/examples/jsm/renderers/CSS2DRenderer.js";
4
4
  const Je = [
5
5
  // Major economies and populous nations
6
6
  {
@@ -1877,19 +1877,19 @@ const Pn = {
1877
1877
  GHA: "288",
1878
1878
  GHANA: "288"
1879
1879
  };
1880
- function $i(s) {
1880
+ function Gi(s) {
1881
1881
  const e = s.toUpperCase().trim();
1882
1882
  return /^\d{1,3}$/.test(s) ? s.padStart(3, "0") : Pn[e] || s;
1883
1883
  }
1884
1884
  function An(s) {
1885
1885
  const e = {};
1886
1886
  return s instanceof Map ? s.forEach((t, i) => {
1887
- e[$i(i)] = t;
1887
+ e[Gi(i)] = t;
1888
1888
  }) : Object.entries(s).forEach(([t, i]) => {
1889
- e[$i(t)] = i;
1889
+ e[Gi(t)] = i;
1890
1890
  }), e;
1891
1891
  }
1892
- const Gi = {
1892
+ const Vi = {
1893
1893
  "%": (s) => `${s.toFixed(1)}%`,
1894
1894
  $: (s) => `$${s.toLocaleString()}`,
1895
1895
  years: (s) => `${s.toFixed(1)} yrs`,
@@ -1899,7 +1899,7 @@ const Gi = {
1899
1899
  "": (s) => s.toFixed(3)
1900
1900
  }, Sn = ["per capita", "per 100", "per 1000"];
1901
1901
  function gr(s) {
1902
- return Gi[s] ? Gi[s] : Sn.some((e) => s.includes(e)) ? (e) => `${e.toFixed(1)}` : (e) => {
1902
+ return Vi[s] ? Vi[s] : Sn.some((e) => s.includes(e)) ? (e) => `${e.toFixed(1)}` : (e) => {
1903
1903
  const t = Number.isInteger(e) ? e.toLocaleString() : e.toFixed(1);
1904
1904
  return s ? `${t} ${s}` : t;
1905
1905
  };
@@ -1926,26 +1926,26 @@ var he = {
1926
1926
  duration: 0.5,
1927
1927
  overwrite: !1,
1928
1928
  delay: 0
1929
- }, _i, q, N, be = 1e8, z = 1 / be, ni = Math.PI * 2, Tn = ni / 4, Mn = 0, yr = Math.sqrt, Ln = Math.cos, Dn = Math.sin, W = function(e) {
1929
+ }, vi, q, N, be = 1e8, z = 1 / be, ai = Math.PI * 2, Tn = ai / 4, Mn = 0, yr = Math.sqrt, Ln = Math.cos, Dn = Math.sin, W = function(e) {
1930
1930
  return typeof e == "string";
1931
1931
  }, G = function(e) {
1932
1932
  return typeof e == "function";
1933
1933
  }, Te = function(e) {
1934
1934
  return typeof e == "number";
1935
- }, vi = function(e) {
1935
+ }, Ei = function(e) {
1936
1936
  return typeof e > "u";
1937
1937
  }, Pe = function(e) {
1938
1938
  return typeof e == "object";
1939
1939
  }, ie = function(e) {
1940
1940
  return e !== !1;
1941
- }, Ei = function() {
1941
+ }, wi = function() {
1942
1942
  return typeof window < "u";
1943
1943
  }, St = function(e) {
1944
1944
  return G(e) || W(e);
1945
1945
  }, xr = typeof ArrayBuffer == "function" && ArrayBuffer.isView || function() {
1946
- }, J = Array.isArray, ai = /(?:-?\.?\d|\.)+/gi, _r = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, Qe = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, Wt = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, vr = /[+-]=-?[.\d]+/, Er = /[^,'"\[\]\s]+/gi, In = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, B, ve, oi, wi, de = {}, Ft = {}, wr, Cr = function(e) {
1946
+ }, J = Array.isArray, oi = /(?:-?\.?\d|\.)+/gi, _r = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, Qe = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, Wt = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, vr = /[+-]=-?[.\d]+/, Er = /[^,'"\[\]\s]+/gi, In = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, B, ve, si, Ci, de = {}, Ft = {}, wr, Cr = function(e) {
1947
1947
  return (Ft = ot(e, de)) && oe;
1948
- }, Ci = function(e, t) {
1948
+ }, Pi = function(e, t) {
1949
1949
  return console.warn("Invalid property", e, "set to", t, "Missing plugin? gsap.registerPlugin()");
1950
1950
  }, yt = function(e, t) {
1951
1951
  return !t && console.warn(e);
@@ -1962,7 +1962,7 @@ var he = {
1962
1962
  kill: !1
1963
1963
  }, kn = {
1964
1964
  suppressEvents: !0
1965
- }, Pi = {}, ke = [], si = {}, Ar, le = {}, Xt = {}, Vi = 30, It = [], Ai = "", Si = function(e) {
1965
+ }, Ai = {}, ke = [], li = {}, Ar, le = {}, Xt = {}, ji = 30, It = [], Si = "", Ti = function(e) {
1966
1966
  var t = e[0], i, r;
1967
1967
  if (Pe(t) || G(t) || (e = [e]), !(i = (t._gsap || {}).harness)) {
1968
1968
  for (r = It.length; r-- && !It[r].targetTest(t); )
@@ -1973,9 +1973,9 @@ var he = {
1973
1973
  e[r] && (e[r]._gsap || (e[r]._gsap = new Zr(e[r], i))) || e.splice(r, 1);
1974
1974
  return e;
1975
1975
  }, He = function(e) {
1976
- return e._gsap || Si(ye(e))[0]._gsap;
1976
+ return e._gsap || Ti(ye(e))[0]._gsap;
1977
1977
  }, Sr = function(e, t, i) {
1978
- return (i = e[t]) && G(i) ? e[t]() : vi(i) && e.getAttribute && e.getAttribute(t) || i;
1978
+ return (i = e[t]) && G(i) ? e[t]() : Ei(i) && e.getAttribute && e.getAttribute(t) || i;
1979
1979
  }, re = function(e, t) {
1980
1980
  return (e = e.split(",")).forEach(t) || e;
1981
1981
  }, V = function(e) {
@@ -1991,12 +1991,12 @@ var he = {
1991
1991
  return r < i;
1992
1992
  }, zt = function() {
1993
1993
  var e = ke.length, t = ke.slice(0), i, r;
1994
- for (si = {}, ke.length = 0, i = 0; i < e; i++)
1994
+ for (li = {}, ke.length = 0, i = 0; i < e; i++)
1995
1995
  r = t[i], r && r._lazy && (r.render(r._lazy[0], r._lazy[1], !0)._lazy = 0);
1996
- }, Ti = function(e) {
1996
+ }, Mi = function(e) {
1997
1997
  return !!(e._initted || e._startAt || e.add);
1998
1998
  }, Tr = function(e, t, i, r) {
1999
- ke.length && !q && zt(), e.render(t, i, !!(q && t < 0 && Ti(e))), ke.length && !q && zt();
1999
+ ke.length && !q && zt(), e.render(t, i, !!(q && t < 0 && Mi(e))), ke.length && !q && zt();
2000
2000
  }, Mr = function(e) {
2001
2001
  var t = parseFloat(e);
2002
2002
  return (t || t === 0) && (e + "").match(Er).length < 2 ? t : W(e) ? e.trim() : e;
@@ -2015,7 +2015,7 @@ var he = {
2015
2015
  for (var i in t)
2016
2016
  e[i] = t[i];
2017
2017
  return e;
2018
- }, ji = function s(e, t) {
2018
+ }, Hi = function s(e, t) {
2019
2019
  for (var i in t)
2020
2020
  i !== "__proto__" && i !== "constructor" && i !== "prototype" && (e[i] = Pe(t[i]) ? s(e[i] || (e[i] = {}), t[i]) : t[i]);
2021
2021
  return e;
@@ -2055,11 +2055,11 @@ var he = {
2055
2055
  for (var t = e.parent; t && t.parent; )
2056
2056
  t._dirty = 1, t.totalDuration(), t = t.parent;
2057
2057
  return e;
2058
- }, li = function(e, t, i, r) {
2058
+ }, ci = function(e, t, i, r) {
2059
2059
  return e._startAt && (q ? e._startAt.revert(Dt) : e.vars.immediateRender && !e.vars.autoRevert || e._startAt.render(t, !0, r));
2060
2060
  }, Nn = function s(e) {
2061
2061
  return !e || e._ts && s(e.parent);
2062
- }, Hi = function(e) {
2062
+ }, Yi = function(e) {
2063
2063
  return e._repeat ? st(e._tTime, e = e.duration() + e._rDelay) * e : 0;
2064
2064
  }, st = function(e, t) {
2065
2065
  var i = Math.floor(e = H(e / t));
@@ -2080,28 +2080,28 @@ var he = {
2080
2080
  e._zTime = -z;
2081
2081
  }
2082
2082
  }, Ee = function(e, t, i, r) {
2083
- return t.parent && Fe(t), t._start = H((Te(i) ? i : i || e !== B ? ge(e, i, t) : e._time) + t._delay), t._end = H(t._start + (t.totalDuration() / Math.abs(t.timeScale()) || 0)), Dr(e, t, "_first", "_last", e._sort ? "_start" : 0), ci(t) || (e._recent = t), r || Ir(e, t), e._ts < 0 && Ht(e, e._tTime), e;
2083
+ return t.parent && Fe(t), t._start = H((Te(i) ? i : i || e !== B ? ge(e, i, t) : e._time) + t._delay), t._end = H(t._start + (t.totalDuration() / Math.abs(t.timeScale()) || 0)), Dr(e, t, "_first", "_last", e._sort ? "_start" : 0), ui(t) || (e._recent = t), r || Ir(e, t), e._ts < 0 && Ht(e, e._tTime), e;
2084
2084
  }, Rr = function(e, t) {
2085
- return (de.ScrollTrigger || Ci("scrollTrigger", t)) && de.ScrollTrigger.create(t, e);
2085
+ return (de.ScrollTrigger || Pi("scrollTrigger", t)) && de.ScrollTrigger.create(t, e);
2086
2086
  }, kr = function(e, t, i, r, n) {
2087
- if (Li(e, t, n), !e._initted)
2087
+ if (Di(e, t, n), !e._initted)
2088
2088
  return 1;
2089
2089
  if (!i && e._pt && !q && (e._dur && e.vars.lazy !== !1 || !e._dur && e.vars.lazy) && Ar !== ce.frame)
2090
2090
  return ke.push(e), e._lazy = [n, r], 1;
2091
2091
  }, Bn = function s(e) {
2092
2092
  var t = e.parent;
2093
2093
  return t && t._ts && t._initted && !t._lock && (t.rawTime() < 0 || s(t));
2094
- }, ci = function(e) {
2094
+ }, ui = function(e) {
2095
2095
  var t = e.data;
2096
2096
  return t === "isFromStart" || t === "isStart";
2097
2097
  }, $n = function(e, t, i, r) {
2098
- var n = e.ratio, a = t < 0 || !t && (!e._start && Bn(e) && !(!e._initted && ci(e)) || (e._ts < 0 || e._dp._ts < 0) && !ci(e)) ? 0 : 1, o = e._rDelay, l = 0, u, c, h;
2098
+ var n = e.ratio, a = t < 0 || !t && (!e._start && Bn(e) && !(!e._initted && ui(e)) || (e._ts < 0 || e._dp._ts < 0) && !ui(e)) ? 0 : 1, o = e._rDelay, l = 0, u, c, h;
2099
2099
  if (o && e._repeat && (l = At(0, e._tDur, t), c = st(l, o), e._yoyo && c & 1 && (a = 1 - a), c !== st(e._tTime, o) && (n = 1 - a, e.vars.repeatRefresh && e._initted && e.invalidate())), a !== n || q || r || e._zTime === z || !t && e._zTime) {
2100
2100
  if (!e._initted && kr(e, t, r, i, l))
2101
2101
  return;
2102
2102
  for (h = e._zTime, e._zTime = t || (i ? z : 0), i || (i = t && !h), e.ratio = a, e._from && (a = 1 - a), e._time = 0, e._tTime = l, u = e._pt; u; )
2103
2103
  u.r(a, u.d), u = u._next;
2104
- t < 0 && li(e, t, i, !0), e._onUpdate && !i && ue(e, "onUpdate"), l && e._repeat && !i && e.parent && ue(e, "onRepeat"), (t >= e._tDur || t < 0) && e.ratio === a && (a && Fe(e, 1), !i && !q && (ue(e, a ? "onComplete" : "onReverseComplete", !0), e._prom && e._prom()));
2104
+ t < 0 && ci(e, t, i, !0), e._onUpdate && !i && ue(e, "onUpdate"), l && e._repeat && !i && e.parent && ue(e, "onRepeat"), (t >= e._tDur || t < 0) && e.ratio === a && (a && Fe(e, 1), !i && !q && (ue(e, a ? "onComplete" : "onReverseComplete", !0), e._prom && e._prom()));
2105
2105
  } else e._zTime || (e._zTime = t);
2106
2106
  }, Gn = function(e, t, i) {
2107
2107
  var r;
@@ -2120,7 +2120,7 @@ var he = {
2120
2120
  }, lt = function(e, t, i, r) {
2121
2121
  var n = e._repeat, a = H(t) || 0, o = e._tTime / e._tDur;
2122
2122
  return o && !r && (e._time *= a / e._dur), e._dur = a, e._tDur = n ? n < 0 ? 1e10 : H(a * (n + 1) + e._rDelay * n) : a, o > 0 && !r && Ht(e, e._tTime = e._tDur * o), e.parent && jt(e), i || Ye(e.parent, e), e;
2123
- }, Yi = function(e) {
2123
+ }, Wi = function(e) {
2124
2124
  return e instanceof te ? Ye(e) : lt(e, e._dur);
2125
2125
  }, Vn = {
2126
2126
  _start: 0,
@@ -2147,7 +2147,7 @@ var he = {
2147
2147
  return Ue(i, function(r) {
2148
2148
  return At(e, t, r);
2149
2149
  });
2150
- }, ui = [].slice, Or = function(e, t) {
2150
+ }, hi = [].slice, Or = function(e, t) {
2151
2151
  return e && Pe(e) && "length" in e && (!t && !e.length || e.length - 1 in e && Pe(e[0])) && !e.nodeType && e !== ve;
2152
2152
  }, Hn = function(e, t, i) {
2153
2153
  return i === void 0 && (i = []), e.forEach(function(r) {
@@ -2155,11 +2155,11 @@ var he = {
2155
2155
  return W(r) && !t || Or(r, 1) ? (n = i).push.apply(n, ye(r)) : i.push(r);
2156
2156
  }) || i;
2157
2157
  }, ye = function(e, t, i) {
2158
- return N && !t && N.selector ? N.selector(e) : W(e) && !i && (oi || !ct()) ? ui.call((t || wi).querySelectorAll(e), 0) : J(e) ? Hn(e, i) : Or(e) ? ui.call(e, 0) : e ? [e] : [];
2159
- }, hi = function(e) {
2158
+ return N && !t && N.selector ? N.selector(e) : W(e) && !i && (si || !ct()) ? hi.call((t || Ci).querySelectorAll(e), 0) : J(e) ? Hn(e, i) : Or(e) ? hi.call(e, 0) : e ? [e] : [];
2159
+ }, di = function(e) {
2160
2160
  return e = ye(e)[0] || yt("Invalid scope") || {}, function(t) {
2161
2161
  var i = e.current || e.nativeElement || e;
2162
- return ye(t, i.querySelectorAll ? i : i === e ? yt("Invalid scope") || wi.createElement("div") : e);
2162
+ return ye(t, i.querySelectorAll ? i : i === e ? yt("Invalid scope") || Ci.createElement("div") : e);
2163
2163
  };
2164
2164
  }, Fr = function(e) {
2165
2165
  return e.sort(function() {
@@ -2189,7 +2189,7 @@ var he = {
2189
2189
  }
2190
2190
  return d = (g[p] - g.min) / g.max || 0, H(g.b + (i ? i(d) : d) * g.v) + g.u;
2191
2191
  };
2192
- }, di = function(e) {
2192
+ }, pi = function(e) {
2193
2193
  var t = Math.pow(10, ((e + "").split(".")[1] || "").length);
2194
2194
  return function(i) {
2195
2195
  var r = H(Math.round(parseFloat(i) / e) * e * t);
@@ -2197,13 +2197,13 @@ var he = {
2197
2197
  };
2198
2198
  }, Ur = function(e, t) {
2199
2199
  var i = J(e), r, n;
2200
- return !i && Pe(e) && (r = i = e.radius || be, e.values ? (e = ye(e.values), (n = !Te(e[0])) && (r *= r)) : e = di(e.increment)), Ue(t, i ? G(e) ? function(a) {
2200
+ return !i && Pe(e) && (r = i = e.radius || be, e.values ? (e = ye(e.values), (n = !Te(e[0])) && (r *= r)) : e = pi(e.increment)), Ue(t, i ? G(e) ? function(a) {
2201
2201
  return n = e(a), Math.abs(n - a) <= r ? n : a;
2202
2202
  } : function(a) {
2203
2203
  for (var o = parseFloat(n ? a.x : a), l = parseFloat(n ? a.y : 0), u = be, c = 0, h = e.length, p, f; h--; )
2204
2204
  n ? (p = e[h].x - o, f = e[h].y - l, p = p * p + f * f) : p = Math.abs(e[h] - o), p < u && (u = p, c = h);
2205
2205
  return c = !r || u <= r ? e[c] : a, n || c === a || Te(a) ? c : c + K(a);
2206
- } : di(e));
2206
+ } : pi(e));
2207
2207
  }, Nr = function(e, t, i, r) {
2208
2208
  return Ue(J(e) ? !t : i === !0 ? !!(i = 0) : !r, function() {
2209
2209
  return J(e) ? e[~~(Math.random() * e.length)] : (i = i || 1e-5) && (r = i < 1 ? Math.pow(10, (i + "").length - 2) : 1) && Math.floor(Math.round((e - i / 2 + Math.random() * (t - e + i * 0.99)) / i) * i * r) / r;
@@ -2238,7 +2238,7 @@ var he = {
2238
2238
  });
2239
2239
  }, _t = function(e) {
2240
2240
  for (var t = 0, i = "", r, n, a, o; ~(r = e.indexOf("random(", t)); )
2241
- a = e.indexOf(")", r), o = e.charAt(r + 7) === "[", n = e.substr(r + 7, a - r - 7).match(o ? Er : ai), i += e.substr(t, r - t) + Nr(o ? n : +n[0], o ? 0 : +n[1], +n[2] || 1e-5), t = a + 1;
2241
+ a = e.indexOf(")", r), o = e.charAt(r + 7) === "[", n = e.substr(r + 7, a - r - 7).match(o ? Er : oi), i += e.substr(t, r - t) + Nr(o ? n : +n[0], o ? 0 : +n[1], +n[2] || 1e-5), t = a + 1;
2242
2242
  return i + e.substr(t, e.length - t);
2243
2243
  }, $r = function(e, t, i, r, n) {
2244
2244
  var a = t - e, o = r - i;
@@ -2268,14 +2268,14 @@ var he = {
2268
2268
  } else r || (e = ot(J(e) ? [] : {}, e));
2269
2269
  if (!c) {
2270
2270
  for (l in t)
2271
- Mi.call(o, e, l, "get", t[l]);
2271
+ Li.call(o, e, l, "get", t[l]);
2272
2272
  n = function(m) {
2273
- return Ri(m, o) || (a ? e.p : e);
2273
+ return ki(m, o) || (a ? e.p : e);
2274
2274
  };
2275
2275
  }
2276
2276
  }
2277
2277
  return Ue(i, n);
2278
- }, Wi = function(e, t, i) {
2278
+ }, Xi = function(e, t, i) {
2279
2279
  var r = e.labels, n = be, a, o, l;
2280
2280
  for (a in r)
2281
2281
  o = r[a] - t, o < 0 == !!i && o && n > (o = Math.abs(o)) && (l = a, n = o);
@@ -2288,27 +2288,27 @@ var he = {
2288
2288
  return Fe(e), e.scrollTrigger && e.scrollTrigger.kill(!!q), e.progress() < 1 && ue(e, "onInterrupt"), e;
2289
2289
  }, et, Gr = [], Vr = function(e) {
2290
2290
  if (e)
2291
- if (e = !e.name && e.default || e, Ei() || e.headless) {
2291
+ if (e = !e.name && e.default || e, wi() || e.headless) {
2292
2292
  var t = e.name, i = G(e), r = t && !i && e.init ? function() {
2293
2293
  this._props = [];
2294
2294
  } : e, n = {
2295
2295
  init: xt,
2296
- render: Ri,
2297
- add: Mi,
2296
+ render: ki,
2297
+ add: Li,
2298
2298
  kill: pa,
2299
2299
  modifier: da,
2300
2300
  rawVars: 0
2301
2301
  }, a = {
2302
2302
  targetTest: 0,
2303
2303
  get: 0,
2304
- getSetter: Ii,
2304
+ getSetter: Ri,
2305
2305
  aliases: {},
2306
2306
  register: 0
2307
2307
  };
2308
2308
  if (ct(), e !== r) {
2309
2309
  if (le[t])
2310
2310
  return;
2311
- pe(r, pe(Ut(e, n), a)), ot(r.prototype, ot(n, Ut(e, a))), le[r.prop = t] = r, e.targetTest && (It.push(r), Pi[t] = 1), t = (t === "css" ? "CSS" : t.charAt(0).toUpperCase() + t.substr(1)) + "Plugin";
2311
+ pe(r, pe(Ut(e, n), a)), ot(r.prototype, ot(n, Ut(e, a))), le[r.prop = t] = r, e.targetTest && (It.push(r), Ai[t] = 1), t = (t === "css" ? "CSS" : t.charAt(0).toUpperCase() + t.substr(1)) + "Plugin";
2312
2312
  }
2313
2313
  Pr(t, r), e.register && e.register(oe, r, ne);
2314
2314
  } else
@@ -2345,12 +2345,12 @@ var he = {
2345
2345
  return r = parseInt(e.substr(1, 6), 16), [r >> 16, r >> 8 & F, r & F, parseInt(e.substr(7), 16) / 255];
2346
2346
  e = parseInt(e.substr(1), 16), r = [e >> 16, e >> 8 & F, e & F];
2347
2347
  } else if (e.substr(0, 3) === "hsl") {
2348
- if (r = m = e.match(ai), !t)
2348
+ if (r = m = e.match(oi), !t)
2349
2349
  l = +r[0] % 360 / 360, u = +r[1] / 100, c = +r[2] / 100, a = c <= 0.5 ? c * (u + 1) : c + u - c * u, n = c * 2 - a, r.length > 3 && (r[3] *= 1), r[0] = qt(l + 1 / 3, n, a), r[1] = qt(l, n, a), r[2] = qt(l - 1 / 3, n, a);
2350
2350
  else if (~e.indexOf("="))
2351
2351
  return r = e.match(_r), i && r.length < 4 && (r[3] = 1), r;
2352
2352
  } else
2353
- r = e.match(ai) || pt.transparent;
2353
+ r = e.match(oi) || pt.transparent;
2354
2354
  r = r.map(Number);
2355
2355
  }
2356
2356
  return t && !m && (n = r[0] / F, a = r[1] / F, o = r[2] / F, h = Math.max(n, a, o), p = Math.min(n, a, o), c = (h + p) / 2, h === p ? l = u = 0 : (f = h - p, u = c > 0.5 ? f / (2 - h - p) : f / (h + p), l = h === n ? (a - o) / f + (a < o ? 6 : 0) : h === a ? (o - n) / f + 2 : (n - a) / f + 4, l *= 60), r[0] = ~~(l + 0.5), r[1] = ~~(u * 100 + 0.5), r[2] = ~~(c * 100 + 0.5)), i && r.length < 4 && (r[3] = 1), r;
@@ -2360,7 +2360,7 @@ var he = {
2360
2360
  var a = n.match(Qe) || [];
2361
2361
  t.push.apply(t, a), i.push(r += a.length + 1);
2362
2362
  }), t.c = i, t;
2363
- }, Xi = function(e, t, i) {
2363
+ }, qi = function(e, t, i) {
2364
2364
  var r = "", n = (e + r).match(Oe), a = t ? "hsla(" : "rgba(", o = 0, l, u, c, h;
2365
2365
  if (!n)
2366
2366
  return e;
@@ -2381,7 +2381,7 @@ var he = {
2381
2381
  })(), Jn = /hsl[a]?\(/, Yr = function(e) {
2382
2382
  var t = e.join(" "), i;
2383
2383
  if (Oe.lastIndex = 0, Oe.test(t))
2384
- return i = Jn.test(t), e[1] = Xi(e[1], i), e[0] = Xi(e[0], i, Hr(e[1])), !0;
2384
+ return i = Jn.test(t), e[1] = qi(e[1], i), e[0] = qi(e[0], i, Hr(e[1])), !0;
2385
2385
  }, vt, ce = (function() {
2386
2386
  var s = Date.now, e = 500, t = 33, i = s(), r = i, n = 1e3 / 240, a = n, o = [], l, u, c, h, p, f, m = function d(g) {
2387
2387
  var b = s() - r, y = g === !0, x, v, _, C;
@@ -2399,7 +2399,7 @@ var he = {
2399
2399
  return p / (1e3 / (g || 60));
2400
2400
  },
2401
2401
  wake: function() {
2402
- wr && (!oi && Ei() && (ve = oi = window, wi = ve.document || {}, de.gsap = oe, (ve.gsapVersions || (ve.gsapVersions = [])).push(oe.version), Cr(Ft || ve.GreenSockGlobals || !ve.gsap && ve || {}), Gr.forEach(Vr)), c = typeof requestAnimationFrame < "u" && requestAnimationFrame, l && h.sleep(), u = c || function(g) {
2402
+ wr && (!si && wi() && (ve = si = window, Ci = ve.document || {}, de.gsap = oe, (ve.gsapVersions || (ve.gsapVersions = [])).push(oe.version), Cr(Ft || ve.GreenSockGlobals || !ve.gsap && ve || {}), Gr.forEach(Vr)), c = typeof requestAnimationFrame < "u" && requestAnimationFrame, l && h.sleep(), u = c || function(g) {
2403
2403
  return setTimeout(g, a - h.time * 1e3 + 1 | 0);
2404
2404
  }, vt = 1, m(2));
2405
2405
  },
@@ -2465,12 +2465,12 @@ var he = {
2465
2465
  return t < 0.5 ? (1 - e(1 - t * 2)) / 2 : 0.5 + e((t - 0.5) * 2) / 2;
2466
2466
  };
2467
2467
  }, Zt = function s(e, t, i) {
2468
- var r = t >= 1 ? t : 1, n = (i || (e ? 0.3 : 0.45)) / (t < 1 ? t : 1), a = n / ni * (Math.asin(1 / r) || 0), o = function(c) {
2468
+ var r = t >= 1 ? t : 1, n = (i || (e ? 0.3 : 0.45)) / (t < 1 ? t : 1), a = n / ai * (Math.asin(1 / r) || 0), o = function(c) {
2469
2469
  return c === 1 ? 1 : r * Math.pow(2, -10 * c) * Dn((c - a) * n) + 1;
2470
2470
  }, l = e === "out" ? o : e === "in" ? function(u) {
2471
2471
  return 1 - o(1 - u);
2472
2472
  } : qr(o);
2473
- return n = ni / n, l.config = function(u, c) {
2473
+ return n = ai / n, l.config = function(u, c) {
2474
2474
  return s(e, u, c);
2475
2475
  }, l;
2476
2476
  }, Kt = function s(e, t) {
@@ -2527,10 +2527,10 @@ I.SteppedEase = I.steps = de.SteppedEase = {
2527
2527
  };
2528
2528
  at.ease = I["quad.out"];
2529
2529
  re("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt", function(s) {
2530
- return Ai += s + "," + s + "Params,";
2530
+ return Si += s + "," + s + "Params,";
2531
2531
  });
2532
2532
  var Zr = function(e, t) {
2533
- this.id = Mn++, e._gsap = this, this.target = e, this.harness = t, this.get = t ? t.get : Sr, this.set = t ? t.getSetter : Ii;
2533
+ this.id = Mn++, e._gsap = this, this.target = e, this.harness = t, this.get = t ? t.get : Sr, this.set = t ? t.getSetter : Ri;
2534
2534
  }, Et = /* @__PURE__ */ (function() {
2535
2535
  function s(t) {
2536
2536
  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, N && (this._ctx = N, N.data.push(this)), vt || ce.wake();
@@ -2553,11 +2553,11 @@ var Zr = function(e, t) {
2553
2553
  }
2554
2554
  return (this._tTime !== i || !this._dur && !r || this._initted && Math.abs(this._zTime) === z || !i && !this._initted && (this.add || this._ptLookup)) && (this._ts || (this._pTime = i), Tr(this, i, r)), this;
2555
2555
  }, e.time = function(i, r) {
2556
- return arguments.length ? this.totalTime(Math.min(this.totalDuration(), i + Hi(this)) % (this._dur + this._rDelay) || (i ? this._dur : 0), r) : this._time;
2556
+ return arguments.length ? this.totalTime(Math.min(this.totalDuration(), i + Yi(this)) % (this._dur + this._rDelay) || (i ? this._dur : 0), r) : this._time;
2557
2557
  }, e.totalProgress = function(i, r) {
2558
2558
  return arguments.length ? this.totalTime(this.totalDuration() * i, r) : this.totalDuration() ? Math.min(1, this._tTime / this._tDur) : this.rawTime() >= 0 && this._initted ? 1 : 0;
2559
2559
  }, e.progress = function(i, r) {
2560
- return arguments.length ? this.totalTime(this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - i : i) + Hi(this), r) : this.duration() ? Math.min(1, this._time / this._dur) : this.rawTime() > 0 ? 1 : 0;
2560
+ return arguments.length ? this.totalTime(this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - i : i) + Yi(this), r) : this.duration() ? Math.min(1, this._time / this._dur) : this.rawTime() > 0 ? 1 : 0;
2561
2561
  }, e.iteration = function(i, r) {
2562
2562
  var n = this.duration() + this._rDelay;
2563
2563
  return arguments.length ? this.totalTime(this._time + (i - 1) * n, r) : this._repeat ? st(this._tTime, n) + 1 : 1;
@@ -2585,17 +2585,17 @@ var Zr = function(e, t) {
2585
2585
  }, e.revert = function(i) {
2586
2586
  i === void 0 && (i = kn);
2587
2587
  var r = q;
2588
- return q = i, Ti(this) && (this.timeline && this.timeline.revert(i), this.totalTime(-0.01, i.suppressEvents)), this.data !== "nested" && i.kill !== !1 && this.kill(), q = r, this;
2588
+ return q = i, Mi(this) && (this.timeline && this.timeline.revert(i), this.totalTime(-0.01, i.suppressEvents)), this.data !== "nested" && i.kill !== !1 && this.kill(), q = r, this;
2589
2589
  }, e.globalTime = function(i) {
2590
2590
  for (var r = this, n = arguments.length ? i : r.rawTime(); r; )
2591
2591
  n = r._start + n / (Math.abs(r._ts) || 1), r = r._dp;
2592
2592
  return !this.parent && this._sat ? this._sat.globalTime(i) : n;
2593
2593
  }, e.repeat = function(i) {
2594
- return arguments.length ? (this._repeat = i === 1 / 0 ? -2 : i, Yi(this)) : this._repeat === -2 ? 1 / 0 : this._repeat;
2594
+ return arguments.length ? (this._repeat = i === 1 / 0 ? -2 : i, Wi(this)) : this._repeat === -2 ? 1 / 0 : this._repeat;
2595
2595
  }, e.repeatDelay = function(i) {
2596
2596
  if (arguments.length) {
2597
2597
  var r = this._time;
2598
- return this._rDelay = i, Yi(this), r ? this.time(r) : this;
2598
+ return this._rDelay = i, Wi(this), r ? this.time(r) : this;
2599
2599
  }
2600
2600
  return this._rDelay;
2601
2601
  }, e.yoyo = function(i) {
@@ -2713,7 +2713,7 @@ var te = /* @__PURE__ */ (function(s) {
2713
2713
  if (m = f._prev, (f._act || T <= f._end) && f._ts && y !== f) {
2714
2714
  if (f.parent !== this)
2715
2715
  return this.render(r, n, a);
2716
- if (f.render(f._ts > 0 ? (T - f._start) * f._ts : (f._dirty ? f.totalDuration() : f._tDur) + (T - f._start) * f._ts, n, a || q && Ti(f)), p !== this._time || !this._ts && !b) {
2716
+ if (f.render(f._ts > 0 ? (T - f._start) * f._ts : (f._dirty ? f.totalDuration() : f._tDur) + (T - f._start) * f._ts, n, a || q && Mi(f)), p !== this._time || !this._ts && !b) {
2717
2717
  y = 0, m && (c += this._zTime = T ? -z : z);
2718
2718
  break;
2719
2719
  }
@@ -2800,9 +2800,9 @@ var te = /* @__PURE__ */ (function(s) {
2800
2800
  }, t.recent = function() {
2801
2801
  return this._recent;
2802
2802
  }, t.nextLabel = function(r) {
2803
- return r === void 0 && (r = this._time), Wi(this, ge(this, r));
2803
+ return r === void 0 && (r = this._time), Xi(this, ge(this, r));
2804
2804
  }, t.previousLabel = function(r) {
2805
- return r === void 0 && (r = this._time), Wi(this, ge(this, r), 1);
2805
+ return r === void 0 && (r = this._time), Xi(this, ge(this, r), 1);
2806
2806
  }, t.currentLabel = function(r) {
2807
2807
  return arguments.length ? this.seek(r, !0) : this.previousLabel(this._time + z);
2808
2808
  }, t.shiftChildren = function(r, n, a) {
@@ -2834,8 +2834,8 @@ var te = /* @__PURE__ */ (function(s) {
2834
2834
  }
2835
2835
  return a._tDur;
2836
2836
  }, e.updateRoot = function(r) {
2837
- if (B._ts && (Tr(B, Nt(r, B)), Ar = ce.frame), ce.frame >= Vi) {
2838
- Vi += he.autoSleep || 120;
2837
+ if (B._ts && (Tr(B, Nt(r, B)), Ar = ce.frame), ce.frame >= ji) {
2838
+ ji += he.autoSleep || 120;
2839
2839
  var n = B._first;
2840
2840
  if ((!n || !n._ts) && he.autoSleep && ce._listeners.length < 2) {
2841
2841
  for (; n && !n._ts; )
@@ -2862,11 +2862,11 @@ var na = function(e, t, i, r, n, a, o) {
2862
2862
  m: f && f < 4 ? Math.round : 0
2863
2863
  }, u = Wt.lastIndex);
2864
2864
  return l.c = u < r.length ? r.substring(u, r.length) : "", l.fp = o, (vr.test(r) || b) && (l.e = 0), this._pt = l, l;
2865
- }, Mi = function(e, t, i, r, n, a, o, l, u, c) {
2865
+ }, Li = function(e, t, i, r, n, a, o, l, u, c) {
2866
2866
  G(r) && (r = r(n || 0, e, a));
2867
- var h = e[t], p = i !== "get" ? i : G(h) ? u ? e[t.indexOf("set") || !G(e["get" + t.substr(3)]) ? t : "get" + t.substr(3)](u) : e[t]() : h, f = G(h) ? u ? ca : en : Di, m;
2868
- if (W(r) && (~r.indexOf("random(") && (r = _t(r)), r.charAt(1) === "=" && (m = it(p, r) + (K(p) || 0), (m || m === 0) && (r = m))), !c || p !== r || pi)
2869
- return !isNaN(p * r) && r !== "" ? (m = new ne(this._pt, e, t, +p || 0, r - (p || 0), typeof h == "boolean" ? ha : tn, 0, f), u && (m.fp = u), o && m.modifier(o, this, e), this._pt = m) : (!h && !(t in e) && Ci(t, r), na.call(this, e, t, p, r, f, l || he.stringFilter, u));
2867
+ var h = e[t], p = i !== "get" ? i : G(h) ? u ? e[t.indexOf("set") || !G(e["get" + t.substr(3)]) ? t : "get" + t.substr(3)](u) : e[t]() : h, f = G(h) ? u ? ca : en : Ii, m;
2868
+ if (W(r) && (~r.indexOf("random(") && (r = _t(r)), r.charAt(1) === "=" && (m = it(p, r) + (K(p) || 0), (m || m === 0) && (r = m))), !c || p !== r || fi)
2869
+ return !isNaN(p * r) && r !== "" ? (m = new ne(this._pt, e, t, +p || 0, r - (p || 0), typeof h == "boolean" ? ha : tn, 0, f), u && (m.fp = u), o && m.modifier(o, this, e), this._pt = m) : (!h && !(t in e) && Pi(t, r), na.call(this, e, t, p, r, f, l || he.stringFilter, u));
2870
2870
  }, aa = function(e, t, i, r, n) {
2871
2871
  if (G(e) && (e = gt(e, n, t, i, r)), !Pe(e) || e.style && e.nodeType || J(e) || xr(e))
2872
2872
  return W(e) ? gt(e, n, t, i, r) : e;
@@ -2880,10 +2880,10 @@ var na = function(e, t, i, r, n, a, o) {
2880
2880
  for (u = i._ptLookup[i._targets.indexOf(n)], c = o._props.length; c--; )
2881
2881
  u[o._props[c]] = l;
2882
2882
  return o;
2883
- }, Le, pi, Li = function s(e, t, i) {
2884
- var r = e.vars, n = r.ease, a = r.startAt, o = r.immediateRender, l = r.lazy, u = r.onUpdate, c = r.runBackwards, h = r.yoyoEase, p = r.keyframes, f = r.autoRevert, m = e._dur, d = e._startAt, g = e._targets, b = e.parent, y = b && b.data === "nested" ? b.vars.targets : g, x = e._overwrite === "auto" && !_i, v = e.timeline, _, C, w, P, E, T, L, M, D, R, U, k, O;
2883
+ }, Le, fi, Di = function s(e, t, i) {
2884
+ var r = e.vars, n = r.ease, a = r.startAt, o = r.immediateRender, l = r.lazy, u = r.onUpdate, c = r.runBackwards, h = r.yoyoEase, p = r.keyframes, f = r.autoRevert, m = e._dur, d = e._startAt, g = e._targets, b = e.parent, y = b && b.data === "nested" ? b.vars.targets : g, x = e._overwrite === "auto" && !vi, v = e.timeline, _, C, w, P, E, T, L, M, D, R, U, k, O;
2885
2885
  if (v && (!p || !n) && (n = "none"), e._ease = We(n, at.ease), e._yEase = h ? Wr(We(h === !0 ? n : h, at.ease)) : 0, h && e._yoyo && !e._repeat && (h = e._yEase, e._yEase = e._ease, e._ease = h), e._from = !v && !!r.runBackwards, !v || p && !r.stagger) {
2886
- if (M = g[0] ? He(g[0]).harness : 0, k = M && r[M.prop], _ = Ut(r, Pi), d && (d._zTime < 0 && d.progress(1), t < 0 && c && o && !f ? d.render(-1, !0) : d.revert(c && m ? Dt : Rn), d._lazy = 0), a) {
2886
+ if (M = g[0] ? He(g[0]).harness : 0, k = M && r[M.prop], _ = Ut(r, Ai), d && (d._zTime < 0 && d.progress(1), t < 0 && c && o && !f ? d.render(-1, !0) : d.revert(c && m ? Dt : Rn), d._lazy = 0), a) {
2887
2887
  if (Fe(e._startAt = j.set(g, pe({
2888
2888
  data: "isStart",
2889
2889
  overwrite: !1,
@@ -2917,12 +2917,12 @@ var na = function(e, t, i, r, n, a, o) {
2917
2917
  return;
2918
2918
  }
2919
2919
  for (e._pt = e._ptCache = 0, l = m && ie(l) || l && !m, C = 0; C < g.length; C++) {
2920
- if (E = g[C], L = E._gsap || Si(g)[C]._gsap, e._ptLookup[C] = R = {}, si[L.id] && ke.length && zt(), U = y === g ? C : y.indexOf(E), M && (D = new M()).init(E, k || _, e, U, y) !== !1 && (e._pt = P = new ne(e._pt, E, D.name, 0, 1, D.render, D, 0, D.priority), D._props.forEach(function(Z) {
2920
+ if (E = g[C], L = E._gsap || Ti(g)[C]._gsap, e._ptLookup[C] = R = {}, li[L.id] && ke.length && zt(), U = y === g ? C : y.indexOf(E), M && (D = new M()).init(E, k || _, e, U, y) !== !1 && (e._pt = P = new ne(e._pt, E, D.name, 0, 1, D.render, D, 0, D.priority), D._props.forEach(function(Z) {
2921
2921
  R[Z] = P;
2922
2922
  }), D.priority && (T = 1)), !M || k)
2923
2923
  for (w in _)
2924
- le[w] && (D = Kr(w, _, e, U, E, y)) ? D.priority && (T = 1) : R[w] = P = Mi.call(e, E, w, "get", _[w], U, y, 0, r.stringFilter);
2925
- e._op && e._op[C] && e.kill(E, e._op[C]), x && e._pt && (Le = e, B.killTweensOf(E, R, e.globalTime(t)), O = !e.parent, Le = 0), e._pt && l && (si[L.id] = 1);
2924
+ le[w] && (D = Kr(w, _, e, U, E, y)) ? D.priority && (T = 1) : R[w] = P = Li.call(e, E, w, "get", _[w], U, y, 0, r.stringFilter);
2925
+ e._op && e._op[C] && e.kill(E, e._op[C]), x && e._pt && (Le = e, B.killTweensOf(E, R, e.globalTime(t)), O = !e.parent, Le = 0), e._pt && l && (li[L.id] = 1);
2926
2926
  }
2927
2927
  T && nn(e), e._onInit && e._onInit(e);
2928
2928
  }
@@ -2935,7 +2935,7 @@ var na = function(e, t, i, r, n, a, o) {
2935
2935
  for (c = c.d._pt; c && c.p !== t && c.fp !== t; )
2936
2936
  c = c._next;
2937
2937
  if (!c)
2938
- return pi = 1, e.vars[t] = "+=0", Li(e, o), pi = 0, l ? yt(t + " not eligible for reset") : 1;
2938
+ return fi = 1, e.vars[t] = "+=0", Di(e, o), fi = 0, l ? yt(t + " not eligible for reset") : 1;
2939
2939
  u.push(c);
2940
2940
  }
2941
2941
  for (f = u.length; f--; )
@@ -2969,7 +2969,7 @@ var na = function(e, t, i, r, n, a, o) {
2969
2969
  });
2970
2970
  }, gt = function(e, t, i, r, n) {
2971
2971
  return G(e) ? e.call(t, i, r, n) : W(e) && ~e.indexOf("random(") ? _t(e) : e;
2972
- }, Jr = Ai + "repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert", Qr = {};
2972
+ }, Jr = Si + "repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert", Qr = {};
2973
2973
  re(Jr + ",id,stagger,delay,duration,paused,scrollTrigger", function(s) {
2974
2974
  return Qr[s] = 1;
2975
2975
  });
@@ -2979,7 +2979,7 @@ var j = /* @__PURE__ */ (function(s) {
2979
2979
  var o;
2980
2980
  typeof r == "number" && (n.duration = r, r = n, n = null), o = s.call(this, a ? r : ft(r)) || this;
2981
2981
  var l = o.vars, u = l.duration, c = l.delay, h = l.immediateRender, p = l.stagger, f = l.overwrite, m = l.keyframes, d = l.defaults, g = l.scrollTrigger, b = l.yoyoEase, y = r.parent || B, x = (J(i) || xr(i) ? Te(i[0]) : "length" in r) ? [i] : ye(i), v, _, C, w, P, E, T, L;
2982
- if (o._targets = x.length ? Si(x) : yt("GSAP target " + i + " not found. https://gsap.com", !he.nullTargetWarn) || [], o._ptLookup = [], o._overwrite = f, m || p || St(u) || St(c)) {
2982
+ if (o._targets = x.length ? Ti(x) : yt("GSAP target " + i + " not found. https://gsap.com", !he.nullTargetWarn) || [], o._ptLookup = [], o._overwrite = f, m || p || St(u) || St(c)) {
2983
2983
  if (r = o.vars, v = o.timeline = new te({
2984
2984
  data: "nested",
2985
2985
  defaults: d || {},
@@ -3020,7 +3020,7 @@ var j = /* @__PURE__ */ (function(s) {
3020
3020
  u || o.duration(u = v.duration());
3021
3021
  } else
3022
3022
  o.timeline = 0;
3023
- return f === !0 && !_i && (Le = Ae(o), B.killTweensOf(x), Le = 0), Ee(y, Ae(o), n), r.reversed && o.reverse(), r.paused && o.paused(!0), (h || !u && !m && o._start === H(y._time) && ie(h) && Nn(Ae(o)) && y.data !== "nested") && (o._tTime = -z, o.render(Math.max(0, -c) || 0)), g && Rr(Ae(o), g), o;
3023
+ return f === !0 && !vi && (Le = Ae(o), B.killTweensOf(x), Le = 0), Ee(y, Ae(o), n), r.reversed && o.reverse(), r.paused && o.paused(!0), (h || !u && !m && o._start === H(y._time) && ie(h) && Nn(Ae(o)) && y.data !== "nested") && (o._tTime = -z, o.render(Math.max(0, -c) || 0)), g && Rr(Ae(o), g), o;
3024
3024
  }
3025
3025
  var t = e.prototype;
3026
3026
  return t.render = function(r, n, a) {
@@ -3047,7 +3047,7 @@ var j = /* @__PURE__ */ (function(s) {
3047
3047
  return this;
3048
3048
  for (f = this._pt; f; )
3049
3049
  f.r(y, f.d), f = f._next;
3050
- x && x.render(r < 0 ? r : x._dur * x._ease(p / this._dur), n, a) || this._startAt && (this._zTime = r), this._onUpdate && !n && (c && li(this, r, n, a), ue(this, "onUpdate")), this._repeat && m !== g && this.vars.onRepeat && !n && this.parent && ue(this, "onRepeat"), (h === this._tDur || !h) && this._tTime === h && (c && !this._onUpdate && li(this, r, !0, !0), (r || !u) && (h === this._tDur && this._ts > 0 || !h && this._ts < 0) && Fe(this, 1), !n && !(c && !o) && (h || o || b) && (ue(this, h === l ? "onComplete" : "onReverseComplete", !0), this._prom && !(h < l && this.timeScale() > 0) && this._prom()));
3050
+ x && x.render(r < 0 ? r : x._dur * x._ease(p / this._dur), n, a) || this._startAt && (this._zTime = r), this._onUpdate && !n && (c && ci(this, r, n, a), ue(this, "onUpdate")), this._repeat && m !== g && this.vars.onRepeat && !n && this.parent && ue(this, "onRepeat"), (h === this._tDur || !h) && this._tTime === h && (c && !this._onUpdate && ci(this, r, !0, !0), (r || !u) && (h === this._tDur && this._ts > 0 || !h && this._ts < 0) && Fe(this, 1), !n && !(c && !o) && (h || o || b) && (ue(this, h === l ? "onComplete" : "onReverseComplete", !0), this._prom && !(h < l && this.timeScale() > 0) && this._prom()));
3051
3051
  }
3052
3052
  return this;
3053
3053
  }, t.targets = function() {
@@ -3057,7 +3057,7 @@ var j = /* @__PURE__ */ (function(s) {
3057
3057
  }, t.resetTo = function(r, n, a, o, l) {
3058
3058
  vt || ce.wake(), this._ts || this.play();
3059
3059
  var u = Math.min(this._dur, (this._dp._time - this._start) * this._ts), c;
3060
- return this._initted || Li(this, u), c = this._ease(u / this._dur), oa(this, r, n, a, o, c, u, l) ? this.resetTo(r, n, a, o, 1) : (Ht(this, 0), this.parent || Dr(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
3060
+ return this._initted || Di(this, u), c = this._ease(u / this._dur), oa(this, r, n, a, o, c, u, l) ? this.resetTo(r, n, a, o, 1) : (Ht(this, 0), this.parent || Dr(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
3061
3061
  }, t.kill = function(r, n) {
3062
3062
  if (n === void 0 && (n = "all"), !r && (!n || n === "all"))
3063
3063
  return this._lazy = this._pt = 0, this.parent ? dt(this) : this.scrollTrigger && this.scrollTrigger.kill(!!q), this;
@@ -3110,11 +3110,11 @@ pe(j.prototype, {
3110
3110
  });
3111
3111
  re("staggerTo,staggerFrom,staggerFromTo", function(s) {
3112
3112
  j[s] = function() {
3113
- var e = new te(), t = ui.call(arguments, 0);
3113
+ var e = new te(), t = hi.call(arguments, 0);
3114
3114
  return t.splice(s === "staggerFromTo" ? 5 : 4, 0, 0), e[s].apply(e, t);
3115
3115
  };
3116
3116
  });
3117
- var Di = function(e, t, i) {
3117
+ var Ii = function(e, t, i) {
3118
3118
  return e[t] = i;
3119
3119
  }, en = function(e, t, i) {
3120
3120
  return e[t](i);
@@ -3122,8 +3122,8 @@ var Di = function(e, t, i) {
3122
3122
  return e[t](r.fp, i);
3123
3123
  }, ua = function(e, t, i) {
3124
3124
  return e.setAttribute(t, i);
3125
- }, Ii = function(e, t) {
3126
- return G(e[t]) ? en : vi(e[t]) && e.setAttribute ? ua : Di;
3125
+ }, Ri = function(e, t) {
3126
+ return G(e[t]) ? en : Ei(e[t]) && e.setAttribute ? ua : Ii;
3127
3127
  }, tn = function(e, t) {
3128
3128
  return t.set(t.t, t.p, Math.round((t.s + t.c * e) * 1e6) / 1e6, t);
3129
3129
  }, ha = function(e, t) {
@@ -3140,7 +3140,7 @@ var Di = function(e, t, i) {
3140
3140
  r += t.c;
3141
3141
  }
3142
3142
  t.set(t.t, t.p, r, t);
3143
- }, Ri = function(e, t) {
3143
+ }, ki = function(e, t) {
3144
3144
  for (var i = t._pt; i; )
3145
3145
  i.r(e, i.d), i = i._next;
3146
3146
  }, da = function(e, t, i, r) {
@@ -3161,15 +3161,15 @@ var Di = function(e, t, i) {
3161
3161
  e._pt = n;
3162
3162
  }, ne = /* @__PURE__ */ (function() {
3163
3163
  function s(t, i, r, n, a, o, l, u, c) {
3164
- this.t = i, this.s = n, this.c = a, this.p = r, this.r = o || tn, this.d = l || this, this.set = u || Di, this.pr = c || 0, this._next = t, t && (t._prev = this);
3164
+ this.t = i, this.s = n, this.c = a, this.p = r, this.r = o || tn, this.d = l || this, this.set = u || Ii, this.pr = c || 0, this._next = t, t && (t._prev = this);
3165
3165
  }
3166
3166
  var e = s.prototype;
3167
3167
  return e.modifier = function(i, r, n) {
3168
3168
  this.mSet = this.mSet || this.set, this.set = fa, this.m = i, this.mt = n, this.tween = r;
3169
3169
  }, s;
3170
3170
  })();
3171
- re(Ai + "parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger", function(s) {
3172
- return Pi[s] = 1;
3171
+ re(Si + "parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger", function(s) {
3172
+ return Ai[s] = 1;
3173
3173
  });
3174
3174
  de.TweenMax = de.TweenLite = j;
3175
3175
  de.TimelineLite = de.TimelineMax = te;
@@ -3181,13 +3181,13 @@ B = new te({
3181
3181
  smoothChildTiming: !0
3182
3182
  });
3183
3183
  he.stringFilter = Yr;
3184
- var Xe = [], Rt = {}, ma = [], qi = 0, ga = 0, Jt = function(e) {
3184
+ var Xe = [], Rt = {}, ma = [], Zi = 0, ga = 0, Jt = function(e) {
3185
3185
  return (Rt[e] || ma).map(function(t) {
3186
3186
  return t();
3187
3187
  });
3188
- }, fi = function() {
3188
+ }, mi = function() {
3189
3189
  var e = Date.now(), t = [];
3190
- e - qi > 2 && (Jt("matchMediaInit"), Xe.forEach(function(i) {
3190
+ e - Zi > 2 && (Jt("matchMediaInit"), Xe.forEach(function(i) {
3191
3191
  var r = i.queries, n = i.conditions, a, o, l, u;
3192
3192
  for (o in r)
3193
3193
  a = ve.matchMedia(r[o]).matches, a && (l = 1), a !== n[o] && (n[o] = a, u = 1);
@@ -3196,17 +3196,17 @@ var Xe = [], Rt = {}, ma = [], qi = 0, ga = 0, Jt = function(e) {
3196
3196
  return i.onMatch(i, function(r) {
3197
3197
  return i.add(null, r);
3198
3198
  });
3199
- }), qi = e, Jt("matchMedia"));
3199
+ }), Zi = e, Jt("matchMedia"));
3200
3200
  }, an = /* @__PURE__ */ (function() {
3201
3201
  function s(t, i) {
3202
- this.selector = i && hi(i), this.data = [], this._r = [], this.isReverted = !1, this.id = ga++, t && this.add(t);
3202
+ this.selector = i && di(i), this.data = [], this._r = [], this.isReverted = !1, this.id = ga++, t && this.add(t);
3203
3203
  }
3204
3204
  var e = s.prototype;
3205
3205
  return e.add = function(i, r, n) {
3206
3206
  G(i) && (n = r, r = i, i = G);
3207
3207
  var a = this, o = function() {
3208
3208
  var u = N, c = a.selector, h;
3209
- return u && u !== a && u.data.push(a), n && (a.selector = hi(n)), N = a, h = r.apply(a, arguments), G(h) && a._r.push(h), N = u, a.selector = c, a.isReverted = !1, h;
3209
+ return u && u !== a && u.data.push(a), n && (a.selector = di(n)), N = a, h = r.apply(a, arguments), G(h) && a._r.push(h), N = u, a.selector = c, a.isReverted = !1, h;
3210
3210
  };
3211
3211
  return a.last = o, i === G ? o(a, function(l) {
3212
3212
  return a.add(null, l);
@@ -3262,7 +3262,7 @@ var Xe = [], Rt = {}, ma = [], qi = 0, ga = 0, Jt = function(e) {
3262
3262
  var a = new an(0, n || this.scope), o = a.conditions = {}, l, u, c;
3263
3263
  N && !a.selector && (a.selector = N.selector), this.contexts.push(a), r = a.add("onMatch", r), a.queries = i;
3264
3264
  for (u in i)
3265
- u === "all" ? c = 1 : (l = ve.matchMedia(i[u]), l && (Xe.indexOf(a) < 0 && Xe.push(a), (o[u] = l.matches) && (c = 1), l.addListener ? l.addListener(fi) : l.addEventListener("change", fi)));
3265
+ u === "all" ? c = 1 : (l = ve.matchMedia(i[u]), l && (Xe.indexOf(a) < 0 && Xe.push(a), (o[u] = l.matches) && (c = 1), l.addListener ? l.addListener(mi) : l.addEventListener("change", mi)));
3266
3266
  return c && r(a, function(h) {
3267
3267
  return a.add(null, h);
3268
3268
  }), this;
@@ -3307,7 +3307,7 @@ var Xe = [], Rt = {}, ma = [], qi = 0, ga = 0, Jt = function(e) {
3307
3307
  e = e[0] || {};
3308
3308
  var a = le[t], o = He(e), l = o.harness && (o.harness.aliases || {})[t] || t, u = a ? function(c) {
3309
3309
  var h = new a();
3310
- et._pt = 0, h.init(e, i ? c + i : c, et, 0, [e]), h.render(1, h), et._pt && Ri(1, et);
3310
+ et._pt = 0, h.init(e, i ? c + i : c, et, 0, [e]), h.render(1, h), et._pt && ki(1, et);
3311
3311
  } : o.set(e, l);
3312
3312
  return a ? u : function(c) {
3313
3313
  return u(e, l, i ? c + i : c, o, 1);
@@ -3323,10 +3323,10 @@ var Xe = [], Rt = {}, ma = [], qi = 0, ga = 0, Jt = function(e) {
3323
3323
  return B.getTweensOf(e, !0).length > 0;
3324
3324
  },
3325
3325
  defaults: function(e) {
3326
- return e && e.ease && (e.ease = We(e.ease, at.ease)), ji(at, e || {});
3326
+ return e && e.ease && (e.ease = We(e.ease, at.ease)), Hi(at, e || {});
3327
3327
  },
3328
3328
  config: function(e) {
3329
- return ji(he, e || {});
3329
+ return Hi(he, e || {});
3330
3330
  },
3331
3331
  registerEffect: function(e) {
3332
3332
  var t = e.name, i = e.effect, r = e.plugins, n = e.defaults, a = e.extendTimeline;
@@ -3366,7 +3366,7 @@ var Xe = [], Rt = {}, ma = [], qi = 0, ga = 0, Jt = function(e) {
3366
3366
  for (r in t)
3367
3367
  t[r] && (t[r] = !1, i = 1);
3368
3368
  i && e.revert();
3369
- }) || fi();
3369
+ }) || mi();
3370
3370
  },
3371
3371
  addEventListener: function(e, t) {
3372
3372
  var i = Rt[e] || (Rt[e] = []);
@@ -3387,7 +3387,7 @@ var Xe = [], Rt = {}, ma = [], qi = 0, ga = 0, Jt = function(e) {
3387
3387
  clamp: jn,
3388
3388
  splitColor: jr,
3389
3389
  toArray: ye,
3390
- selector: hi,
3390
+ selector: di,
3391
3391
  mapRange: $r,
3392
3392
  pipe: Yn,
3393
3393
  unitize: Wn,
@@ -3415,7 +3415,7 @@ var Xe = [], Rt = {}, ma = [], qi = 0, ga = 0, Jt = function(e) {
3415
3415
  return e && N && (N.data.push(e), e._ctx = N), N;
3416
3416
  },
3417
3417
  suppressOverwrites: function(e) {
3418
- return _i = e;
3418
+ return vi = e;
3419
3419
  }
3420
3420
  }
3421
3421
  };
@@ -3475,10 +3475,10 @@ var ya = function(e, t) {
3475
3475
  for (var i = t.length; i--; )
3476
3476
  this.add(e, i, e[i] || 0, t[i], 0, 0, 0, 0, 0, 1);
3477
3477
  }
3478
- }, Qt("roundProps", di), Qt("modifiers"), Qt("snap", Ur)) || Bt;
3478
+ }, Qt("roundProps", pi), Qt("modifiers"), Qt("snap", Ur)) || Bt;
3479
3479
  j.version = te.version = oe.version = "3.13.0";
3480
3480
  wr = 1;
3481
- Ei() && ct();
3481
+ wi() && ct();
3482
3482
  I.Power0;
3483
3483
  I.Power1;
3484
3484
  I.Power2;
@@ -3497,13 +3497,13 @@ I.Bounce;
3497
3497
  I.Sine;
3498
3498
  I.Expo;
3499
3499
  I.Circ;
3500
- var Zi, De, rt, ki, Ve, Ki, Oi, _a = function() {
3500
+ var Ki, De, rt, Oi, Ve, Ji, Fi, _a = function() {
3501
3501
  return typeof window < "u";
3502
- }, Me = {}, Ge = 180 / Math.PI, nt = Math.PI / 180, Ke = Math.atan2, Ji = 1e8, Fi = /([A-Z])/g, va = /(left|right|width|margin|padding|x)/i, Ea = /[\s,\(]\S/, we = {
3502
+ }, Me = {}, Ge = 180 / Math.PI, nt = Math.PI / 180, Ke = Math.atan2, Qi = 1e8, zi = /([A-Z])/g, va = /(left|right|width|margin|padding|x)/i, Ea = /[\s,\(]\S/, we = {
3503
3503
  autoAlpha: "opacity,visibility",
3504
3504
  scale: "scaleX,scaleY",
3505
3505
  alpha: "opacity"
3506
- }, mi = function(e, t) {
3506
+ }, gi = function(e, t) {
3507
3507
  return t.set(t.t, t.p, Math.round((t.s + t.c * e) * 1e4) / 1e4 + t.u, t);
3508
3508
  }, wa = function(e, t) {
3509
3509
  return t.set(t.t, t.p, e === 1 ? t.e : Math.round((t.s + t.c * e) * 1e4) / 1e4 + t.u, t);
@@ -3551,11 +3551,11 @@ var Zi, De, rt, ki, Ve, Ki, Oi, _a = function() {
3551
3551
  }, Ra = function() {
3552
3552
  var e = this.props, t = this.target, i = t.style, r = t._gsap, n, a;
3553
3553
  for (n = 0; n < e.length; n += 3)
3554
- e[n + 1] ? e[n + 1] === 2 ? t[e[n]](e[n + 2]) : t[e[n]] = e[n + 2] : e[n + 2] ? i[e[n]] = e[n + 2] : i.removeProperty(e[n].substr(0, 2) === "--" ? e[n] : e[n].replace(Fi, "-$1").toLowerCase());
3554
+ e[n + 1] ? e[n + 1] === 2 ? t[e[n]](e[n + 2]) : t[e[n]] = e[n + 2] : e[n + 2] ? i[e[n]] = e[n + 2] : i.removeProperty(e[n].substr(0, 2) === "--" ? e[n] : e[n].replace(zi, "-$1").toLowerCase());
3555
3555
  if (this.tfm) {
3556
3556
  for (a in this.tfm)
3557
3557
  r[a] = this.tfm[a];
3558
- r.svg && (r.renderTransform(), t.setAttribute("data-svg-origin", this.svgo || "")), n = Oi(), (!n || !n.isStart) && !i[$] && (ln(i), r.zOrigin && i[ae] && (i[ae] += " " + r.zOrigin + "px", r.zOrigin = 0, r.renderTransform()), r.uncache = 1);
3558
+ r.svg && (r.renderTransform(), t.setAttribute("data-svg-origin", this.svgo || "")), n = Fi(), (!n || !n.isStart) && !i[$] && (ln(i), r.zOrigin && i[ae] && (i[ae] += " " + r.zOrigin + "px", r.zOrigin = 0, r.renderTransform()), r.uncache = 1);
3559
3559
  }
3560
3560
  }, cn = function(e, t) {
3561
3561
  var i = {
@@ -3567,32 +3567,32 @@ var Zi, De, rt, ki, Ve, Ki, Oi, _a = function() {
3567
3567
  return e._gsap || oe.core.getCache(e), t && e.style && e.nodeType && t.split(",").forEach(function(r) {
3568
3568
  return i.save(r);
3569
3569
  }), i;
3570
- }, un, gi = function(e, t) {
3570
+ }, un, bi = function(e, t) {
3571
3571
  var i = De.createElementNS ? De.createElementNS((t || "http://www.w3.org/1999/xhtml").replace(/^https/, "http"), e) : De.createElement(e);
3572
3572
  return i && i.style ? i : De.createElement(e);
3573
3573
  }, xe = function s(e, t, i) {
3574
3574
  var r = getComputedStyle(e);
3575
- return r[t] || r.getPropertyValue(t.replace(Fi, "-$1").toLowerCase()) || r.getPropertyValue(t) || !i && s(e, ut(t) || t, 1) || "";
3576
- }, Qi = "O,Moz,ms,Ms,Webkit".split(","), ut = function(e, t, i) {
3575
+ return r[t] || r.getPropertyValue(t.replace(zi, "-$1").toLowerCase()) || r.getPropertyValue(t) || !i && s(e, ut(t) || t, 1) || "";
3576
+ }, er = "O,Moz,ms,Ms,Webkit".split(","), ut = function(e, t, i) {
3577
3577
  var r = t || Ve, n = r.style, a = 5;
3578
3578
  if (e in n && !i)
3579
3579
  return e;
3580
- for (e = e.charAt(0).toUpperCase() + e.substr(1); a-- && !(Qi[a] + e in n); )
3580
+ for (e = e.charAt(0).toUpperCase() + e.substr(1); a-- && !(er[a] + e in n); )
3581
3581
  ;
3582
- return a < 0 ? null : (a === 3 ? "ms" : a >= 0 ? Qi[a] : "") + e;
3583
- }, bi = function() {
3584
- _a() && window.document && (Zi = window, De = Zi.document, rt = De.documentElement, Ve = gi("div") || {
3582
+ return a < 0 ? null : (a === 3 ? "ms" : a >= 0 ? er[a] : "") + e;
3583
+ }, yi = function() {
3584
+ _a() && window.document && (Ki = window, De = Ki.document, rt = De.documentElement, Ve = bi("div") || {
3585
3585
  style: {}
3586
- }, gi("div"), $ = ut($), ae = $ + "Origin", Ve.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", un = !!ut("perspective"), Oi = oe.core.reverting, ki = 1);
3587
- }, er = function(e) {
3588
- var t = e.ownerSVGElement, i = gi("svg", t && t.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), r = e.cloneNode(!0), n;
3586
+ }, bi("div"), $ = ut($), ae = $ + "Origin", Ve.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", un = !!ut("perspective"), Fi = oe.core.reverting, Oi = 1);
3587
+ }, tr = function(e) {
3588
+ var t = e.ownerSVGElement, i = bi("svg", t && t.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), r = e.cloneNode(!0), n;
3589
3589
  r.style.display = "block", i.appendChild(r), rt.appendChild(i);
3590
3590
  try {
3591
3591
  n = r.getBBox();
3592
3592
  } catch {
3593
3593
  }
3594
3594
  return i.removeChild(r), rt.removeChild(i), n;
3595
- }, tr = function(e, t) {
3595
+ }, ir = function(e, t) {
3596
3596
  for (var i = t.length; i--; )
3597
3597
  if (e.hasAttribute(t[i]))
3598
3598
  return e.getAttribute(t[i]);
@@ -3601,11 +3601,11 @@ var Zi, De, rt, ki, Ve, Ki, Oi, _a = function() {
3601
3601
  try {
3602
3602
  t = e.getBBox();
3603
3603
  } catch {
3604
- t = er(e), i = 1;
3604
+ t = tr(e), i = 1;
3605
3605
  }
3606
- return t && (t.width || t.height) || i || (t = er(e)), t && !t.width && !t.x && !t.y ? {
3607
- x: +tr(e, ["x", "cx", "x1"]) || 0,
3608
- y: +tr(e, ["y", "cy", "y1"]) || 0,
3606
+ return t && (t.width || t.height) || i || (t = tr(e)), t && !t.width && !t.x && !t.y ? {
3607
+ x: +ir(e, ["x", "cx", "x1"]) || 0,
3608
+ y: +ir(e, ["y", "cy", "y1"]) || 0,
3609
3609
  width: 0,
3610
3610
  height: 0
3611
3611
  } : t;
@@ -3614,12 +3614,12 @@ var Zi, De, rt, ki, Ve, Ki, Oi, _a = function() {
3614
3614
  }, qe = function(e, t) {
3615
3615
  if (t) {
3616
3616
  var i = e.style, r;
3617
- t in Me && t !== ae && (t = $), i.removeProperty ? (r = t.substr(0, 2), (r === "ms" || t.substr(0, 6) === "webkit") && (t = "-" + t), i.removeProperty(r === "--" ? t : t.replace(Fi, "-$1").toLowerCase())) : i.removeAttribute(t);
3617
+ t in Me && t !== ae && (t = $), i.removeProperty ? (r = t.substr(0, 2), (r === "ms" || t.substr(0, 6) === "webkit") && (t = "-" + t), i.removeProperty(r === "--" ? t : t.replace(zi, "-$1").toLowerCase())) : i.removeAttribute(t);
3618
3618
  }
3619
3619
  }, Ie = function(e, t, i, r, n, a) {
3620
3620
  var o = new ne(e._pt, t, i, 0, 1, a ? sn : on);
3621
3621
  return e._pt = o, o.b = r, o.e = n, e._props.push(i), o;
3622
- }, ir = {
3622
+ }, rr = {
3623
3623
  deg: 1,
3624
3624
  rad: 1,
3625
3625
  turn: 1
@@ -3628,7 +3628,7 @@ var Zi, De, rt, ki, Ve, Ki, Oi, _a = function() {
3628
3628
  flex: 1
3629
3629
  }, ze = function s(e, t, i, r) {
3630
3630
  var n = parseFloat(i) || 0, a = (i + "").trim().substr((n + "").length) || "px", o = Ve.style, l = va.test(t), u = e.tagName.toLowerCase() === "svg", c = (u ? "client" : "offset") + (l ? "Width" : "Height"), h = 100, p = r === "px", f = r === "%", m, d, g, b;
3631
- if (r === a || !n || ir[r] || ir[a])
3631
+ if (r === a || !n || rr[r] || rr[a])
3632
3632
  return n;
3633
3633
  if (a !== "px" && !p && (n = s(e, t, i, "px")), b = e.getCTM && dn(e), (f || a === "%") && (Me[t] || ~t.indexOf("adius")))
3634
3634
  return m = b ? e.getBBox()[l ? "width" : "height"] : e[c], V(f ? n / m * h : n / 100 * m);
@@ -3642,7 +3642,7 @@ var Zi, De, rt, ki, Ve, Ki, Oi, _a = function() {
3642
3642
  return l && f && (g = He(d), g.time = ce.time, g.width = d[c]), V(p ? m * n / h : m && n ? h / m * n : 0);
3643
3643
  }, Se = function(e, t, i, r) {
3644
3644
  var n;
3645
- return ki || bi(), t in we && t !== "transform" && (t = we[t], ~t.indexOf(",") && (t = t.split(",")[0])), Me[t] && t !== "transform" ? (n = Ct(e, r), n = t !== "transformOrigin" ? n[t] : n.svg ? n.origin : Gt(xe(e, ae)) + " " + n.zOrigin + "px") : (n = e.style[t], (!n || n === "auto" || r || ~(n + "").indexOf("calc(")) && (n = $t[t] && $t[t](e, t, i) || xe(e, t) || Sr(e, t) || (t === "opacity" ? 1 : 0))), i && !~(n + "").trim().indexOf(" ") ? ze(e, t, n, i) + i : n;
3645
+ return Oi || yi(), t in we && t !== "transform" && (t = we[t], ~t.indexOf(",") && (t = t.split(",")[0])), Me[t] && t !== "transform" ? (n = Ct(e, r), n = t !== "transformOrigin" ? n[t] : n.svg ? n.origin : Gt(xe(e, ae)) + " " + n.zOrigin + "px") : (n = e.style[t], (!n || n === "auto" || r || ~(n + "").indexOf("calc(")) && (n = $t[t] && $t[t](e, t, i) || xe(e, t) || Sr(e, t) || (t === "opacity" ? 1 : 0))), i && !~(n + "").trim().indexOf(" ") ? ze(e, t, n, i) + i : n;
3646
3646
  }, Oa = function(e, t, i, r) {
3647
3647
  if (!i || i === "none") {
3648
3648
  var n = ut(t, e, 1), a = n && xe(e, n, 1);
@@ -3663,7 +3663,7 @@ var Zi, De, rt, ki, Ve, Ki, Oi, _a = function() {
3663
3663
  } else
3664
3664
  o.r = t === "display" && r === "none" ? sn : on;
3665
3665
  return vr.test(r) && (o.e = 0), this._pt = o, o;
3666
- }, rr = {
3666
+ }, nr = {
3667
3667
  top: "0%",
3668
3668
  bottom: "100%",
3669
3669
  left: "0%",
@@ -3671,7 +3671,7 @@ var Zi, De, rt, ki, Ve, Ki, Oi, _a = function() {
3671
3671
  center: "50%"
3672
3672
  }, Fa = function(e) {
3673
3673
  var t = e.split(" "), i = t[0], r = t[1] || "50%";
3674
- return (i === "top" || i === "bottom" || r === "left" || r === "right") && (e = i, i = r, r = e), t[0] = rr[i] || i, t[1] = rr[r] || r, t.join(" ");
3674
+ return (i === "top" || i === "bottom" || r === "left" || r === "right") && (e = i, i = r, r = e), t[0] = nr[i] || i, t[1] = nr[r] || r, t.join(" ");
3675
3675
  }, za = function(e, t) {
3676
3676
  if (t.tween && t.tween._time === t.tween._dur) {
3677
3677
  var i = t.t, r = i.style, n = t.u, a = i._gsap, o, l, u;
@@ -3754,21 +3754,21 @@ var Zi, De, rt, ki, Ve, Ki, Oi, _a = function() {
3754
3754
  */
3755
3755
  }, wt = [1, 0, 0, 1, 0, 0], pn = {}, fn = function(e) {
3756
3756
  return e === "matrix(1, 0, 0, 1, 0, 0)" || e === "none" || !e;
3757
- }, nr = function(e) {
3757
+ }, ar = function(e) {
3758
3758
  var t = xe(e, $);
3759
3759
  return fn(t) ? wt : t.substr(7).match(_r).map(V);
3760
- }, zi = function(e, t) {
3761
- var i = e._gsap || He(e), r = e.style, n = nr(e), a, o, l, u;
3762
- return i.svg && e.getAttribute("transform") ? (l = e.transform.baseVal.consolidate().matrix, n = [l.a, l.b, l.c, l.d, l.e, l.f], n.join(",") === "1,0,0,1,0,0" ? wt : n) : (n === wt && !e.offsetParent && e !== rt && !i.svg && (l = r.display, r.display = "block", a = e.parentNode, (!a || !e.offsetParent && !e.getBoundingClientRect().width) && (u = 1, o = e.nextElementSibling, rt.appendChild(e)), n = nr(e), l ? r.display = l : qe(e, "display"), u && (o ? a.insertBefore(e, o) : a ? a.appendChild(e) : rt.removeChild(e))), t && n.length > 6 ? [n[0], n[1], n[4], n[5], n[12], n[13]] : n);
3763
- }, yi = function(e, t, i, r, n, a) {
3764
- var o = e._gsap, l = n || zi(e, !0), u = o.xOrigin || 0, c = o.yOrigin || 0, h = o.xOffset || 0, p = o.yOffset || 0, f = l[0], m = l[1], d = l[2], g = l[3], b = l[4], y = l[5], x = t.split(" "), v = parseFloat(x[0]) || 0, _ = parseFloat(x[1]) || 0, C, w, P, E;
3760
+ }, Ui = function(e, t) {
3761
+ var i = e._gsap || He(e), r = e.style, n = ar(e), a, o, l, u;
3762
+ return i.svg && e.getAttribute("transform") ? (l = e.transform.baseVal.consolidate().matrix, n = [l.a, l.b, l.c, l.d, l.e, l.f], n.join(",") === "1,0,0,1,0,0" ? wt : n) : (n === wt && !e.offsetParent && e !== rt && !i.svg && (l = r.display, r.display = "block", a = e.parentNode, (!a || !e.offsetParent && !e.getBoundingClientRect().width) && (u = 1, o = e.nextElementSibling, rt.appendChild(e)), n = ar(e), l ? r.display = l : qe(e, "display"), u && (o ? a.insertBefore(e, o) : a ? a.appendChild(e) : rt.removeChild(e))), t && n.length > 6 ? [n[0], n[1], n[4], n[5], n[12], n[13]] : n);
3763
+ }, xi = function(e, t, i, r, n, a) {
3764
+ var o = e._gsap, l = n || Ui(e, !0), u = o.xOrigin || 0, c = o.yOrigin || 0, h = o.xOffset || 0, p = o.yOffset || 0, f = l[0], m = l[1], d = l[2], g = l[3], b = l[4], y = l[5], x = t.split(" "), v = parseFloat(x[0]) || 0, _ = parseFloat(x[1]) || 0, C, w, P, E;
3765
3765
  i ? l !== wt && (w = f * g - m * d) && (P = v * (g / w) + _ * (-d / w) + (d * y - g * b) / w, E = v * (-m / w) + _ * (f / w) - (f * y - m * b) / w, v = P, _ = E) : (C = hn(e), v = C.x + (~x[0].indexOf("%") ? v / 100 * C.width : v), _ = C.y + (~(x[1] || x[0]).indexOf("%") ? _ / 100 * C.height : _)), r || r !== !1 && o.smooth ? (b = v - u, y = _ - c, o.xOffset = h + (b * f + y * d) - b, o.yOffset = p + (b * m + y * g) - y) : o.xOffset = o.yOffset = 0, o.xOrigin = v, o.yOrigin = _, o.smooth = !!r, o.origin = t, o.originIsAbsolute = !!i, e.style[ae] = "0px 0px", a && (Ie(a, o, "xOrigin", u, v), Ie(a, o, "yOrigin", c, _), Ie(a, o, "xOffset", h, o.xOffset), Ie(a, o, "yOffset", p, o.yOffset)), e.setAttribute("data-svg-origin", v + " " + _);
3766
3766
  }, Ct = function(e, t) {
3767
3767
  var i = e._gsap || new Zr(e);
3768
3768
  if ("x" in i && !t && !i.uncache)
3769
3769
  return i;
3770
- var r = e.style, n = i.scaleX < 0, a = "px", o = "deg", l = getComputedStyle(e), u = xe(e, ae) || "0", c, h, p, f, m, d, g, b, y, x, v, _, C, w, P, E, T, L, M, D, R, U, k, O, Z, Ne, A, _e, Q, se, fe, me;
3771
- return c = h = p = d = g = b = y = x = v = 0, f = m = 1, i.svg = !!(e.getCTM && dn(e)), l.translate && ((l.translate !== "none" || l.scale !== "none" || l.rotate !== "none") && (r[$] = (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[$] : "")), r.scale = r.rotate = r.translate = "none"), w = zi(e, i.svg), i.svg && (i.uncache ? (Z = e.getBBox(), u = i.xOrigin - Z.x + "px " + (i.yOrigin - Z.y) + "px", O = "") : O = !t && e.getAttribute("data-svg-origin"), yi(e, O || u, !!O || i.originIsAbsolute, i.smooth !== !1, w)), _ = i.xOrigin || 0, C = i.yOrigin || 0, w !== wt && (L = w[0], M = w[1], D = w[2], R = w[3], c = U = w[4], h = k = w[5], w.length === 6 ? (f = Math.sqrt(L * L + M * M), m = Math.sqrt(R * R + D * D), d = L || M ? Ke(M, L) * Ge : 0, y = D || R ? Ke(D, R) * Ge + d : 0, y && (m *= Math.abs(Math.cos(y * nt))), i.svg && (c -= _ - (_ * L + C * D), h -= C - (_ * M + C * R))) : (me = w[6], se = w[7], A = w[8], _e = w[9], Q = w[10], fe = w[11], c = w[12], h = w[13], p = w[14], P = Ke(me, Q), g = P * Ge, P && (E = Math.cos(-P), T = Math.sin(-P), O = U * E + A * T, Z = k * E + _e * T, Ne = me * E + Q * T, A = U * -T + A * E, _e = k * -T + _e * E, Q = me * -T + Q * E, fe = se * -T + fe * E, U = O, k = Z, me = Ne), P = Ke(-D, Q), b = P * Ge, P && (E = Math.cos(-P), T = Math.sin(-P), O = L * E - A * T, Z = M * E - _e * T, Ne = D * E - Q * T, fe = R * T + fe * E, L = O, M = Z, D = Ne), P = Ke(M, L), d = P * Ge, P && (E = Math.cos(P), T = Math.sin(P), O = L * E + M * T, Z = U * E + k * T, M = M * E - L * T, k = k * E - U * T, L = O, U = Z), g && Math.abs(g) + Math.abs(d) > 359.9 && (g = d = 0, b = 180 - b), f = V(Math.sqrt(L * L + M * M + D * D)), m = V(Math.sqrt(k * k + me * me)), P = Ke(U, k), y = Math.abs(P) > 2e-4 ? P * Ge : 0, v = fe ? 1 / (fe < 0 ? -fe : fe) : 0), i.svg && (O = e.getAttribute("transform"), i.forceCSS = e.setAttribute("transform", "") || !fn(xe(e, $)), O && e.setAttribute("transform", O))), Math.abs(y) > 90 && Math.abs(y) < 270 && (n ? (f *= -1, y += d <= 0 ? 180 : -180, d += d <= 0 ? 180 : -180) : (m *= -1, y += y <= 0 ? 180 : -180)), t = t || i.uncache, i.x = c - ((i.xPercent = c && (!t && i.xPercent || (Math.round(e.offsetWidth / 2) === Math.round(-c) ? -50 : 0))) ? e.offsetWidth * i.xPercent / 100 : 0) + a, i.y = h - ((i.yPercent = h && (!t && i.yPercent || (Math.round(e.offsetHeight / 2) === Math.round(-h) ? -50 : 0))) ? e.offsetHeight * i.yPercent / 100 : 0) + a, i.z = p + a, i.scaleX = V(f), i.scaleY = V(m), i.rotation = V(d) + o, i.rotationX = V(g) + o, i.rotationY = V(b) + o, i.skewX = y + o, i.skewY = x + o, i.transformPerspective = v + a, (i.zOrigin = parseFloat(u.split(" ")[2]) || !t && i.zOrigin || 0) && (r[ae] = Gt(u)), i.xOffset = i.yOffset = 0, i.force3D = he.force3D, i.renderTransform = i.svg ? Na : un ? mn : Ua, i.uncache = 0, i;
3770
+ var r = e.style, n = i.scaleX < 0, a = "px", o = "deg", l = getComputedStyle(e), u = xe(e, ae) || "0", c, h, p, f, m, d, g, b, y, x, v, _, C, w, P, E, T, L, M, D, R, U, k, O, Z, Ne, S, _e, Q, se, fe, me;
3771
+ return c = h = p = d = g = b = y = x = v = 0, f = m = 1, i.svg = !!(e.getCTM && dn(e)), l.translate && ((l.translate !== "none" || l.scale !== "none" || l.rotate !== "none") && (r[$] = (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[$] : "")), r.scale = r.rotate = r.translate = "none"), w = Ui(e, i.svg), i.svg && (i.uncache ? (Z = e.getBBox(), u = i.xOrigin - Z.x + "px " + (i.yOrigin - Z.y) + "px", O = "") : O = !t && e.getAttribute("data-svg-origin"), xi(e, O || u, !!O || i.originIsAbsolute, i.smooth !== !1, w)), _ = i.xOrigin || 0, C = i.yOrigin || 0, w !== wt && (L = w[0], M = w[1], D = w[2], R = w[3], c = U = w[4], h = k = w[5], w.length === 6 ? (f = Math.sqrt(L * L + M * M), m = Math.sqrt(R * R + D * D), d = L || M ? Ke(M, L) * Ge : 0, y = D || R ? Ke(D, R) * Ge + d : 0, y && (m *= Math.abs(Math.cos(y * nt))), i.svg && (c -= _ - (_ * L + C * D), h -= C - (_ * M + C * R))) : (me = w[6], se = w[7], S = w[8], _e = w[9], Q = w[10], fe = w[11], c = w[12], h = w[13], p = w[14], P = Ke(me, Q), g = P * Ge, P && (E = Math.cos(-P), T = Math.sin(-P), O = U * E + S * T, Z = k * E + _e * T, Ne = me * E + Q * T, S = U * -T + S * E, _e = k * -T + _e * E, Q = me * -T + Q * E, fe = se * -T + fe * E, U = O, k = Z, me = Ne), P = Ke(-D, Q), b = P * Ge, P && (E = Math.cos(-P), T = Math.sin(-P), O = L * E - S * T, Z = M * E - _e * T, Ne = D * E - Q * T, fe = R * T + fe * E, L = O, M = Z, D = Ne), P = Ke(M, L), d = P * Ge, P && (E = Math.cos(P), T = Math.sin(P), O = L * E + M * T, Z = U * E + k * T, M = M * E - L * T, k = k * E - U * T, L = O, U = Z), g && Math.abs(g) + Math.abs(d) > 359.9 && (g = d = 0, b = 180 - b), f = V(Math.sqrt(L * L + M * M + D * D)), m = V(Math.sqrt(k * k + me * me)), P = Ke(U, k), y = Math.abs(P) > 2e-4 ? P * Ge : 0, v = fe ? 1 / (fe < 0 ? -fe : fe) : 0), i.svg && (O = e.getAttribute("transform"), i.forceCSS = e.setAttribute("transform", "") || !fn(xe(e, $)), O && e.setAttribute("transform", O))), Math.abs(y) > 90 && Math.abs(y) < 270 && (n ? (f *= -1, y += d <= 0 ? 180 : -180, d += d <= 0 ? 180 : -180) : (m *= -1, y += y <= 0 ? 180 : -180)), t = t || i.uncache, i.x = c - ((i.xPercent = c && (!t && i.xPercent || (Math.round(e.offsetWidth / 2) === Math.round(-c) ? -50 : 0))) ? e.offsetWidth * i.xPercent / 100 : 0) + a, i.y = h - ((i.yPercent = h && (!t && i.yPercent || (Math.round(e.offsetHeight / 2) === Math.round(-h) ? -50 : 0))) ? e.offsetHeight * i.yPercent / 100 : 0) + a, i.z = p + a, i.scaleX = V(f), i.scaleY = V(m), i.rotation = V(d) + o, i.rotationX = V(g) + o, i.rotationY = V(b) + o, i.skewX = y + o, i.skewY = x + o, i.transformPerspective = v + a, (i.zOrigin = parseFloat(u.split(" ")[2]) || !t && i.zOrigin || 0) && (r[ae] = Gt(u)), i.xOffset = i.yOffset = 0, i.force3D = he.force3D, i.renderTransform = i.svg ? Na : un ? mn : Ua, i.uncache = 0, i;
3772
3772
  }, Gt = function(e) {
3773
3773
  return (e = e.split(" "))[0] + " " + e[1];
3774
3774
  }, ei = function(e, t, i) {
@@ -3788,17 +3788,17 @@ var Zi, De, rt, ki, Ve, Ki, Oi, _a = function() {
3788
3788
  l = parseFloat(l), u = parseFloat(u), c = parseFloat(c), c && (c = parseFloat(c), u += c, l += c), l || u ? (l *= nt, u *= nt, _ = Math.cos(l) * h, C = Math.sin(l) * h, w = Math.sin(l - u) * -p, P = Math.cos(l - u) * p, u && (c *= nt, E = Math.tan(u - c), E = Math.sqrt(1 + E * E), w *= E, P *= E, c && (E = Math.tan(c), E = Math.sqrt(1 + E * E), _ *= E, C *= E)), _ = V(_), C = V(C), w = V(w), P = V(P)) : (_ = h, P = p, C = w = 0), (x && !~(a + "").indexOf("px") || v && !~(o + "").indexOf("px")) && (x = ze(f, "x", a, "px"), v = ze(f, "y", o, "px")), (m || d || g || b) && (x = V(x + m - (m * _ + d * w) + g), v = V(v + d - (m * C + d * P) + b)), (r || n) && (E = f.getBBox(), x = V(x + r / 100 * E.width), v = V(v + n / 100 * E.height)), E = "matrix(" + _ + "," + C + "," + w + "," + P + "," + x + "," + v + ")", f.setAttribute("transform", E), y && (f.style[$] = E);
3789
3789
  }, Ba = function(e, t, i, r, n) {
3790
3790
  var a = 360, o = W(n), l = parseFloat(n) * (o && ~n.indexOf("rad") ? Ge : 1), u = l - r, c = r + u + "deg", h, p;
3791
- return o && (h = n.split("_")[1], h === "short" && (u %= a, u !== u % (a / 2) && (u += u < 0 ? a : -a)), h === "cw" && u < 0 ? u = (u + a * Ji) % a - ~~(u / a) * a : h === "ccw" && u > 0 && (u = (u - a * Ji) % a - ~~(u / a) * a)), e._pt = p = new ne(e._pt, t, i, r, u, wa), p.e = c, p.u = "deg", e._props.push(i), p;
3792
- }, ar = function(e, t) {
3791
+ return o && (h = n.split("_")[1], h === "short" && (u %= a, u !== u % (a / 2) && (u += u < 0 ? a : -a)), h === "cw" && u < 0 ? u = (u + a * Qi) % a - ~~(u / a) * a : h === "ccw" && u > 0 && (u = (u - a * Qi) % a - ~~(u / a) * a)), e._pt = p = new ne(e._pt, t, i, r, u, wa), p.e = c, p.u = "deg", e._props.push(i), p;
3792
+ }, or = function(e, t) {
3793
3793
  for (var i in t)
3794
3794
  e[i] = t[i];
3795
3795
  return e;
3796
3796
  }, $a = function(e, t, i) {
3797
- var r = ar({}, i._gsap), n = "perspective,force3D,transformOrigin,svgOrigin", a = i.style, o, l, u, c, h, p, f, m;
3797
+ var r = or({}, i._gsap), n = "perspective,force3D,transformOrigin,svgOrigin", a = i.style, o, l, u, c, h, p, f, m;
3798
3798
  r.svg ? (u = i.getAttribute("transform"), i.setAttribute("transform", ""), a[$] = t, o = Ct(i, 1), qe(i, $), i.setAttribute("transform", u)) : (u = getComputedStyle(i)[$], a[$] = t, o = Ct(i, 1), a[$] = u);
3799
3799
  for (l in Me)
3800
- u = r[l], c = o[l], u !== c && n.indexOf(l) < 0 && (f = K(u), m = K(c), h = f !== m ? ze(i, l, u, m) : parseFloat(u), p = parseFloat(c), e._pt = new ne(e._pt, o, l, h, p - h, mi), e._pt.u = m || 0, e._props.push(l));
3801
- ar(o, r);
3800
+ u = r[l], c = o[l], u !== c && n.indexOf(l) < 0 && (f = K(u), m = K(c), h = f !== m ? ze(i, l, u, m) : parseFloat(u), p = parseFloat(c), e._pt = new ne(e._pt, o, l, h, p - h, gi), e._pt.u = m || 0, e._props.push(l));
3801
+ or(o, r);
3802
3802
  };
3803
3803
  re("padding,margin,Width,Radius", function(s, e) {
3804
3804
  var t = "Top", i = "Right", r = "Bottom", n = "Left", a = (e < 3 ? [t, i, r, n] : [t + n, t + i, r + i, r + n]).map(function(o) {
@@ -3817,13 +3817,13 @@ re("padding,margin,Width,Radius", function(s, e) {
3817
3817
  });
3818
3818
  var gn = {
3819
3819
  name: "css",
3820
- register: bi,
3820
+ register: yi,
3821
3821
  targetTest: function(e) {
3822
3822
  return e.style && e.nodeType;
3823
3823
  },
3824
3824
  init: function(e, t, i, r, n) {
3825
3825
  var a = this._props, o = e.style, l = i.vars.startAt, u, c, h, p, f, m, d, g, b, y, x, v, _, C, w, P;
3826
- ki || bi(), this.styles = this.styles || cn(e), P = this.styles.props, this.tween = i;
3826
+ Oi || yi(), this.styles = this.styles || cn(e), P = this.styles.props, this.tween = i;
3827
3827
  for (d in t)
3828
3828
  if (d !== "autoRound" && (c = t[d], !(le[d] && Kr(d, t, i, r, e, n)))) {
3829
3829
  if (f = typeof c, m = $t[d], f === "function" && (c = c.call(i, r, e, n), f = typeof c), f === "string" && ~c.indexOf("random(") && (c = _t(c)), m)
@@ -3833,12 +3833,12 @@ var gn = {
3833
3833
  else if (f !== "undefined") {
3834
3834
  if (l && d in l ? (u = typeof l[d] == "function" ? l[d].call(i, r, e, n) : l[d], W(u) && ~u.indexOf("random(") && (u = _t(u)), K(u + "") || u === "auto" || (u += he.units[d] || K(Se(e, d)) || ""), (u + "").charAt(1) === "=" && (u = Se(e, d))) : u = Se(e, d), p = parseFloat(u), y = f === "string" && c.charAt(1) === "=" && c.substr(0, 2), y && (c = c.substr(2)), h = parseFloat(c), d in we && (d === "autoAlpha" && (p === 1 && Se(e, "visibility") === "hidden" && h && (p = 0), P.push("visibility", 0, o.visibility), Ie(this, o, "visibility", p ? "inherit" : "hidden", h ? "inherit" : "hidden", !h)), d !== "scale" && d !== "transform" && (d = we[d], ~d.indexOf(",") && (d = d.split(",")[0]))), x = d in Me, x) {
3835
3835
  if (this.styles.save(d), f === "string" && c.substring(0, 6) === "var(--" && (c = xe(e, c.substring(4, c.indexOf(")"))), h = parseFloat(c)), v || (_ = e._gsap, _.renderTransform && !t.parseTransform || Ct(e, t.parseTransform), C = t.smoothOrigin !== !1 && _.smooth, v = this._pt = new ne(this._pt, o, $, 0, 1, _.renderTransform, _, 0, -1), v.dep = 1), d === "scale")
3836
- this._pt = new ne(this._pt, _, "scaleY", _.scaleY, (y ? it(_.scaleY, y + h) : h) - _.scaleY || 0, mi), this._pt.u = 0, a.push("scaleY", d), d += "X";
3836
+ this._pt = new ne(this._pt, _, "scaleY", _.scaleY, (y ? it(_.scaleY, y + h) : h) - _.scaleY || 0, gi), this._pt.u = 0, a.push("scaleY", d), d += "X";
3837
3837
  else if (d === "transformOrigin") {
3838
- P.push(ae, 0, o[ae]), c = Fa(c), _.svg ? yi(e, c, 0, C, 0, this) : (b = parseFloat(c.split(" ")[2]) || 0, b !== _.zOrigin && Ie(this, _, "zOrigin", _.zOrigin, b), Ie(this, o, d, Gt(u), Gt(c)));
3838
+ P.push(ae, 0, o[ae]), c = Fa(c), _.svg ? xi(e, c, 0, C, 0, this) : (b = parseFloat(c.split(" ")[2]) || 0, b !== _.zOrigin && Ie(this, _, "zOrigin", _.zOrigin, b), Ie(this, o, d, Gt(u), Gt(c)));
3839
3839
  continue;
3840
3840
  } else if (d === "svgOrigin") {
3841
- yi(e, c, 1, C, 0, this);
3841
+ xi(e, c, 1, C, 0, this);
3842
3842
  continue;
3843
3843
  } else if (d in pn) {
3844
3844
  Ba(this, _, d, p, y ? it(p, y + c) : c);
@@ -3855,13 +3855,13 @@ var gn = {
3855
3855
  }
3856
3856
  } else d in o || (d = ut(d) || d);
3857
3857
  if (x || (h || h === 0) && (p || p === 0) && !Ea.test(c) && d in o)
3858
- g = (u + "").substr((p + "").length), h || (h = 0), b = K(c) || (d in he.units ? he.units[d] : g), g !== b && (p = ze(e, d, u, b)), this._pt = new ne(this._pt, x ? _ : o, d, p, (y ? it(p, y + h) : h) - p, !x && (b === "px" || d === "zIndex") && t.autoRound !== !1 ? Pa : mi), this._pt.u = b || 0, g !== b && b !== "%" && (this._pt.b = u, this._pt.r = Ca);
3858
+ g = (u + "").substr((p + "").length), h || (h = 0), b = K(c) || (d in he.units ? he.units[d] : g), g !== b && (p = ze(e, d, u, b)), this._pt = new ne(this._pt, x ? _ : o, d, p, (y ? it(p, y + h) : h) - p, !x && (b === "px" || d === "zIndex") && t.autoRound !== !1 ? Pa : gi), this._pt.u = b || 0, g !== b && b !== "%" && (this._pt.b = u, this._pt.r = Ca);
3859
3859
  else if (d in o)
3860
3860
  Oa.call(this, e, d, u, y ? y + c : c);
3861
3861
  else if (d in e)
3862
3862
  this.add(e, d, u || e[d], y ? y + c : c, r, n);
3863
3863
  else if (d !== "parseTransform") {
3864
- Ci(d, c);
3864
+ Pi(d, c);
3865
3865
  continue;
3866
3866
  }
3867
3867
  x || (d in o ? P.push(d, 0, o[d]) : typeof e[d] == "function" ? P.push(d, 2, e[d]()) : P.push(d, 1, u || e[d])), a.push(d);
@@ -3870,7 +3870,7 @@ var gn = {
3870
3870
  w && nn(this);
3871
3871
  },
3872
3872
  render: function(e, t) {
3873
- if (t.tween._time || !Oi())
3873
+ if (t.tween._time || !Fi())
3874
3874
  for (var i = t._pt; i; )
3875
3875
  i.r(e, i.d), i = i._next;
3876
3876
  else
@@ -3880,11 +3880,11 @@ var gn = {
3880
3880
  aliases: we,
3881
3881
  getSetter: function(e, t, i) {
3882
3882
  var r = we[t];
3883
- return r && r.indexOf(",") < 0 && (t = r), t in Me && t !== ae && (e._gsap.x || Se(e, "x")) ? i && Ki === i ? t === "scale" ? Ma : Ta : (Ki = i || {}) && (t === "scale" ? La : Da) : e.style && !vi(e.style[t]) ? Aa : ~t.indexOf("-") ? Sa : Ii(e, t);
3883
+ return r && r.indexOf(",") < 0 && (t = r), t in Me && t !== ae && (e._gsap.x || Se(e, "x")) ? i && Ji === i ? t === "scale" ? Ma : Ta : (Ji = i || {}) && (t === "scale" ? La : Da) : e.style && !Ei(e.style[t]) ? Aa : ~t.indexOf("-") ? Sa : Ri(e, t);
3884
3884
  },
3885
3885
  core: {
3886
3886
  _removeProperty: qe,
3887
- _getMatrix: zi
3887
+ _getMatrix: Ui
3888
3888
  }
3889
3889
  };
3890
3890
  oe.utils.checkPrefix = ut;
@@ -4142,15 +4142,15 @@ class Ga extends Ce {
4142
4142
  return this.$input.checked = this.getValue(), this;
4143
4143
  }
4144
4144
  }
4145
- function xi(s) {
4145
+ function _i(s) {
4146
4146
  let e, t;
4147
4147
  return (e = s.match(/(#|0x)?([a-f0-9]{6})/i)) ? t = e[2] : (e = s.match(/rgb\(\s*(\d*)\s*,\s*(\d*)\s*,\s*(\d*)\s*\)/)) ? t = parseInt(e[1]).toString(16).padStart(2, 0) + parseInt(e[2]).toString(16).padStart(2, 0) + parseInt(e[3]).toString(16).padStart(2, 0) : (e = s.match(/^#?([a-f0-9])([a-f0-9])([a-f0-9])$/i)) && (t = e[1] + e[1] + e[2] + e[2] + e[3] + e[3]), t ? "#" + t : !1;
4148
4148
  }
4149
4149
  const Va = {
4150
4150
  isPrimitive: !0,
4151
4151
  match: (s) => typeof s == "string",
4152
- fromHexString: xi,
4153
- toHexString: xi
4152
+ fromHexString: _i,
4153
+ toHexString: _i
4154
4154
  }, Pt = {
4155
4155
  isPrimitive: !0,
4156
4156
  match: (s) => typeof s == "number",
@@ -4191,7 +4191,7 @@ class Xa extends Ce {
4191
4191
  }), this.$input.addEventListener("blur", () => {
4192
4192
  this._callOnFinishChange();
4193
4193
  }), this.$text.addEventListener("input", () => {
4194
- const n = xi(this.$text.value);
4194
+ const n = _i(this.$text.value);
4195
4195
  n && this._setValueFromHexString(n);
4196
4196
  }), this.$text.addEventListener("focus", () => {
4197
4197
  this._textFocused = !0, this.$text.select();
@@ -4825,8 +4825,8 @@ function Qa(s) {
4825
4825
  const t = document.querySelector("head link[rel=stylesheet], head style");
4826
4826
  t ? document.head.insertBefore(e, t) : document.head.appendChild(e);
4827
4827
  }
4828
- let or = !1;
4829
- class Ui {
4828
+ let sr = !1;
4829
+ class Ni {
4830
4830
  /**
4831
4831
  * Creates a panel that holds controllers.
4832
4832
  * @example
@@ -4875,7 +4875,7 @@ class Ui {
4875
4875
  this.parent.children.push(this), this.parent.folders.push(this), this.parent.$children.appendChild(this.domElement);
4876
4876
  return;
4877
4877
  }
4878
- this.domElement.classList.add("lil-root"), l && this.domElement.classList.add("lil-allow-touch-styles"), !or && o && (Qa(Ja), or = !0), i ? i.appendChild(this.domElement) : t && (this.domElement.classList.add("lil-auto-place", "autoPlace"), document.body.appendChild(this.domElement)), r && this.domElement.style.setProperty("--width", r + "px"), this._closeFolders = a;
4878
+ this.domElement.classList.add("lil-root"), l && this.domElement.classList.add("lil-allow-touch-styles"), !sr && o && (Qa(Ja), sr = !0), i ? i.appendChild(this.domElement) : t && (this.domElement.classList.add("lil-auto-place", "autoPlace"), document.body.appendChild(this.domElement)), r && this.domElement.style.setProperty("--width", r + "px"), this._closeFolders = a;
4879
4879
  }
4880
4880
  /**
4881
4881
  * Adds a controller to the GUI, inferring controller type using the `typeof` operator.
@@ -4946,7 +4946,7 @@ class Ui {
4946
4946
  * @returns {GUI}
4947
4947
  */
4948
4948
  addFolder(e) {
4949
- const t = new Ui({ parent: this, title: e });
4949
+ const t = new Ni({ parent: this, title: e });
4950
4950
  return this.root._closeFolders && t.close(), t;
4951
4951
  }
4952
4952
  /**
@@ -5773,7 +5773,7 @@ class so {
5773
5773
  constructor(e, t) {
5774
5774
  this.sphereRadius = t, this.labelRenderer = new wn();
5775
5775
  const i = e.clientWidth || 800, r = e.clientHeight || 600;
5776
- this.labelRenderer.setSize(i, r), this.labelRenderer.domElement.style.position = "absolute", this.labelRenderer.domElement.style.top = "0", this.labelRenderer.domElement.style.left = "0", this.labelRenderer.domElement.style.pointerEvents = "none", this.labelRenderer.domElement.style.zIndex = "5", e.appendChild(this.labelRenderer.domElement), this.labelGroup = new S.Group(), this.injectStyles(), this.createLabels();
5776
+ this.labelRenderer.setSize(i, r), this.labelRenderer.domElement.style.position = "absolute", this.labelRenderer.domElement.style.top = "0", this.labelRenderer.domElement.style.left = "0", this.labelRenderer.domElement.style.pointerEvents = "none", this.labelRenderer.domElement.style.zIndex = "5", e.appendChild(this.labelRenderer.domElement), this.labelGroup = new A.Group(), this.injectStyles(), this.createLabels();
5777
5777
  }
5778
5778
  injectStyles() {
5779
5779
  const e = document.createElement("style");
@@ -5871,7 +5871,7 @@ class so {
5871
5871
  if (!t) return;
5872
5872
  const [i, r] = t, n = this.getSizeCategory(e.code), a = document.createElement("div");
5873
5873
  a.className = `country-label hidden size-${n}`, a.textContent = e.name;
5874
- const o = new Bi(a), l = {
5874
+ const o = new $i(a), l = {
5875
5875
  element: a,
5876
5876
  object: o,
5877
5877
  country: e,
@@ -5895,7 +5895,7 @@ class so {
5895
5895
  })) return;
5896
5896
  const l = t.size || "small", u = document.createElement("div");
5897
5897
  u.className = `country-label hidden size-${l} custom-label`, u.textContent = t.name;
5898
- const c = new Bi(u), h = {
5898
+ const c = new $i(u), h = {
5899
5899
  id: t.id,
5900
5900
  code: t.id,
5901
5901
  name: t.name
@@ -5918,10 +5918,10 @@ class so {
5918
5918
  this.labelGroup.remove(t.object), t.element.remove(), this.dataIds.delete(t.country.code);
5919
5919
  }), this.labels = this.labels.filter((t) => !t.element.classList.contains("custom-label"));
5920
5920
  }
5921
- localPos = new S.Vector3();
5922
- worldPos = new S.Vector3();
5923
- cameraDirection = new S.Vector3();
5924
- labelNormal = new S.Vector3();
5921
+ localPos = new A.Vector3();
5922
+ worldPos = new A.Vector3();
5923
+ cameraDirection = new A.Vector3();
5924
+ labelNormal = new A.Vector3();
5925
5925
  updateLabelPosition(e, t, i) {
5926
5926
  const { lat: r, lon: n, element: a } = t, o = (n + 180) / 360, l = (r + 90) / 180, u = (o - 0.5) * 2 * Math.PI, c = (l - 0.5) * Math.PI, h = this.sphereRadius + 0.3, p = h * Math.cos(c) * Math.sin(u), f = h * Math.sin(c), m = h * Math.cos(c) * Math.cos(u), d = 2 * Math.PI * this.sphereRadius, g = Math.PI * this.sphereRadius, b = (o - 0.5) * d, y = (l - 0.5) * g, x = 0.3, v = i * i * (3 - 2 * i);
5927
5927
  if (this.localPos.set(
@@ -6064,7 +6064,7 @@ class so {
6064
6064
  */
6065
6065
  getVisibleLabelsForCanvas(e, t, i) {
6066
6066
  if (this.currentStyle === "none") return [];
6067
- const r = [], n = new S.Vector3();
6067
+ const r = [], n = new A.Vector3();
6068
6068
  return this.labels.forEach((a) => {
6069
6069
  const o = a.element.style.opacity, l = o === "" ? 1 : parseFloat(o) || 0;
6070
6070
  if (l < 0.1 || a.element.classList.contains("hidden")) return;
@@ -6087,10 +6087,10 @@ class so {
6087
6087
  }), this.labels = [], this.labelRenderer.domElement.remove();
6088
6088
  }
6089
6089
  }
6090
- let sr = !1;
6090
+ let lr = !1;
6091
6091
  function lo() {
6092
- if (sr) return;
6093
- sr = !0;
6092
+ if (lr) return;
6093
+ lr = !0;
6094
6094
  const s = document.createElement("style");
6095
6095
  s.setAttribute("data-gralobe-datagrid", "true"), s.textContent = `
6096
6096
  .gralobe-datagrid-overlay {
@@ -6290,8 +6290,8 @@ function bn(s = 256) {
6290
6290
  t = new Uint8Array(r), e > 0 && t.set(o.subarray(0, e), 0);
6291
6291
  }
6292
6292
  }
6293
- var ii = 12, lr = 5003, ho = [0, 1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047, 4095, 8191, 16383, 32767, 65535];
6294
- function po(s, e, t, i, r = bn(512), n = new Uint8Array(256), a = new Int32Array(lr), o = new Int32Array(lr)) {
6293
+ var ii = 12, cr = 5003, ho = [0, 1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047, 4095, 8191, 16383, 32767, 65535];
6294
+ function po(s, e, t, i, r = bn(512), n = new Uint8Array(256), a = new Int32Array(cr), o = new Int32Array(cr)) {
6295
6295
  let l = a.length, u = Math.max(2, i);
6296
6296
  n.fill(0), o.fill(0), a.fill(-1);
6297
6297
  let c = 0, h = 0, p = u + 1, f = p, m = !1, d = f, g = (1 << d) - 1, b = 1 << p - 1, y = b + 1, x = b + 2, v = 0, _ = t[0], C = 0;
@@ -6337,7 +6337,7 @@ function Lt(s, e, t) {
6337
6337
  function kt(s) {
6338
6338
  return s * s;
6339
6339
  }
6340
- function cr(s, e, t) {
6340
+ function ur(s, e, t) {
6341
6341
  var i = 0, r = 1e100;
6342
6342
  let n = s[e], a = n.cnt;
6343
6343
  n.ac;
@@ -6387,7 +6387,7 @@ function go(s, e, t = {}) {
6387
6387
  u && (h[g].cnt = Math.sqrt(h[g].cnt));
6388
6388
  var y, x, v;
6389
6389
  for (g = 0; g < d; ++g) {
6390
- cr(h, g);
6390
+ ur(h, g);
6391
6391
  var _ = h[g].err;
6392
6392
  for (x = ++m[0]; x > 1 && (v = x >> 1, !(h[y = m[v]].err <= _)); x = v) m[x] = y;
6393
6393
  m[x] = g;
@@ -6397,7 +6397,7 @@ function go(s, e, t = {}) {
6397
6397
  for (var w; ; ) {
6398
6398
  var P = m[1];
6399
6399
  if (w = h[P], w.tm >= w.mtm && h[w.nn].mtm <= w.tm) break;
6400
- w.mtm == f ? P = m[1] = m[m[0]--] : (cr(h, P), w.tm = g);
6400
+ w.mtm == f ? P = m[1] = m[m[0]--] : (ur(h, P), w.tm = g);
6401
6401
  var _ = h[P].err;
6402
6402
  for (x = 1; (v = x + x) <= m[0] && (v < m[0] && h[m[v]].err > h[m[v + 1]].err && v++, !(_ <= h[y = m[v]].err)); x = v) m[x] = y;
6403
6403
  m[x] = P;
@@ -6487,12 +6487,12 @@ function vo(s = {}) {
6487
6487
  let { transparent: m = !1, transparentIndex: d = 0, delay: g = 0, palette: b = null, repeat: y = 0, colorDepth: x = 8, dispose: v = -1 } = f, _ = !1;
6488
6488
  if (t ? l || (_ = !0, u(), l = !0) : _ = !!f.first, h = Math.max(0, Math.floor(h)), p = Math.max(0, Math.floor(p)), _) {
6489
6489
  if (!b) throw new Error("First frame must include a { palette } option");
6490
- wo(i, h, p, b, x), ur(i, b), y >= 0 && Co(i, y);
6490
+ wo(i, h, p, b, x), hr(i, b), y >= 0 && Co(i, y);
6491
6491
  }
6492
6492
  let C = Math.round(g / 10);
6493
6493
  Eo(i, v, C, m, d);
6494
6494
  let w = !!b && !_;
6495
- Po(i, h, p, w ? b : null), w && ur(i, b), Ao(i, c, h, p, x, n, a, o);
6495
+ Po(i, h, p, w ? b : null), w && hr(i, b), Ao(i, c, h, p, x, n, a, o);
6496
6496
  } };
6497
6497
  function u() {
6498
6498
  vn(i, "GIF89a");
@@ -6504,14 +6504,14 @@ function Eo(s, e, t, i, r) {
6504
6504
  i ? (n = 1, a = 2) : (n = 0, a = 0), e >= 0 && (a = e & 7), a <<= 2, s.writeByte(0 | a | 0 | n), Re(s, t), s.writeByte(r || 0), s.writeByte(0);
6505
6505
  }
6506
6506
  function wo(s, e, t, i, r = 8) {
6507
- let n = 1, a = 0, o = Ni(i.length) - 1, l = n << 7 | r - 1 << 4 | a << 3 | o;
6507
+ let n = 1, a = 0, o = Bi(i.length) - 1, l = n << 7 | r - 1 << 4 | a << 3 | o;
6508
6508
  Re(s, e), Re(s, t), s.writeBytes([l, 0, 0]);
6509
6509
  }
6510
6510
  function Co(s, e) {
6511
6511
  s.writeByte(33), s.writeByte(255), s.writeByte(11), vn(s, "NETSCAPE2.0"), s.writeByte(3), s.writeByte(1), Re(s, e), s.writeByte(0);
6512
6512
  }
6513
- function ur(s, e) {
6514
- let t = 1 << Ni(e.length);
6513
+ function hr(s, e) {
6514
+ let t = 1 << Bi(e.length);
6515
6515
  for (let i = 0; i < t; i++) {
6516
6516
  let r = [0, 0, 0];
6517
6517
  i < e.length && (r = e[i]), s.writeByte(r[0]), s.writeByte(r[1]), s.writeByte(r[2]);
@@ -6519,7 +6519,7 @@ function ur(s, e) {
6519
6519
  }
6520
6520
  function Po(s, e, t, i) {
6521
6521
  if (s.writeByte(44), Re(s, 0), Re(s, 0), Re(s, e), Re(s, t), i) {
6522
- let r = 0, n = 0, a = Ni(i.length) - 1;
6522
+ let r = 0, n = 0, a = Bi(i.length) - 1;
6523
6523
  s.writeByte(128 | r | n | 0 | a);
6524
6524
  } else s.writeByte(0);
6525
6525
  }
@@ -6532,7 +6532,7 @@ function Re(s, e) {
6532
6532
  function vn(s, e) {
6533
6533
  for (var t = 0; t < e.length; t++) s.writeByte(e.charCodeAt(t));
6534
6534
  }
6535
- function Ni(s) {
6535
+ function Bi(s) {
6536
6536
  return Math.max(Math.ceil(Math.log2(s)), 1);
6537
6537
  }
6538
6538
  class So {
@@ -6631,7 +6631,7 @@ class So {
6631
6631
  * Uses an offscreen renderer to avoid disturbing the main display
6632
6632
  */
6633
6633
  screenshot(e = {}) {
6634
- const { width: t = 1920, height: i = 1080, filename: r } = e, n = new S.WebGLRenderer({
6634
+ const { width: t = 1920, height: i = 1080, filename: r } = e, n = new A.WebGLRenderer({
6635
6635
  antialias: !0,
6636
6636
  preserveDrawingBuffer: !0
6637
6637
  });
@@ -6780,10 +6780,10 @@ class So {
6780
6780
  i.href = e, i.download = t, i.style.display = "none", document.body.appendChild(i), i.click(), document.body.removeChild(i);
6781
6781
  }
6782
6782
  }
6783
- let hr = !1;
6783
+ let dr = !1;
6784
6784
  function To() {
6785
- if (hr) return;
6786
- hr = !0;
6785
+ if (dr) return;
6786
+ dr = !0;
6787
6787
  const s = document.createElement("style");
6788
6788
  s.setAttribute("data-gralobe-legend", "true"), s.textContent = `
6789
6789
  .gralobe-legend {
@@ -7503,10 +7503,10 @@ void main() {
7503
7503
 
7504
7504
  gl_FragColor = vec4(1.0, 1.0, 1.0, alpha * vOpacity * 0.9 * uOpacity);
7505
7505
  }
7506
- `, dr = Math.PI / 180;
7506
+ `, pr = Math.PI / 180;
7507
7507
  function Fo(s, e, t = ee) {
7508
- const i = (90 - s) * dr, r = (e + 180) * dr;
7509
- return new S.Vector3(
7508
+ const i = (90 - s) * pr, r = (e + 180) * pr;
7509
+ return new A.Vector3(
7510
7510
  -t * Math.sin(i) * Math.cos(r),
7511
7511
  t * Math.cos(i),
7512
7512
  t * Math.sin(i) * Math.sin(r)
@@ -7514,7 +7514,7 @@ function Fo(s, e, t = ee) {
7514
7514
  }
7515
7515
  function zo(s, e) {
7516
7516
  const t = 2 * Math.PI * ee, i = Math.PI * ee;
7517
- return new S.Vector3(e / 180 * (t / 2), s / 90 * (i / 2), 0);
7517
+ return new A.Vector3(e / 180 * (t / 2), s / 90 * (i / 2), 0);
7518
7518
  }
7519
7519
  const Uo = {
7520
7520
  style: "spike",
@@ -7536,13 +7536,13 @@ class No {
7536
7536
  markerMaterial;
7537
7537
  glowMaterial;
7538
7538
  constructor(e = {}) {
7539
- this.group = new S.Group(), this.config = { ...Uo, ...e }, this.markerMaterial = new S.MeshBasicMaterial({
7540
- color: new S.Color(this.config.color),
7539
+ this.group = new A.Group(), this.config = { ...Uo, ...e }, this.markerMaterial = new A.MeshBasicMaterial({
7540
+ color: new A.Color(this.config.color),
7541
7541
  transparent: !0,
7542
7542
  opacity: this.config.opacity
7543
- }), this.glowMaterial = new S.ShaderMaterial({
7543
+ }), this.glowMaterial = new A.ShaderMaterial({
7544
7544
  uniforms: {
7545
- uColor: { value: new S.Color(this.config.color) },
7545
+ uColor: { value: new A.Color(this.config.color) },
7546
7546
  uTime: { value: 0 },
7547
7547
  uPulse: { value: this.config.pulseAnimation ? 1 : 0 }
7548
7548
  },
@@ -7568,8 +7568,8 @@ class No {
7568
7568
  }
7569
7569
  `,
7570
7570
  transparent: !0,
7571
- blending: S.AdditiveBlending,
7572
- side: S.BackSide,
7571
+ blending: A.AdditiveBlending,
7572
+ side: A.BackSide,
7573
7573
  depthWrite: !1
7574
7574
  });
7575
7575
  }
@@ -7626,34 +7626,34 @@ class No {
7626
7626
  const r = 2 + t * this.config.maxHeight;
7627
7627
  switch (this.config.style) {
7628
7628
  case "dot":
7629
- i = new S.SphereGeometry(1 + t * 2, 16, 12);
7629
+ i = new A.SphereGeometry(1 + t * 2, 16, 12);
7630
7630
  break;
7631
7631
  case "pin":
7632
- i = new S.ConeGeometry(1.5, r, 8);
7632
+ i = new A.ConeGeometry(1.5, r, 8);
7633
7633
  break;
7634
7634
  case "spike":
7635
7635
  default:
7636
- i = new S.CylinderGeometry(0.3, 1.2, r, 8);
7636
+ i = new A.CylinderGeometry(0.3, 1.2, r, 8);
7637
7637
  break;
7638
7638
  }
7639
- const n = e.color ? new S.MeshBasicMaterial({
7640
- color: new S.Color(e.color),
7639
+ const n = e.color ? new A.MeshBasicMaterial({
7640
+ color: new A.Color(e.color),
7641
7641
  transparent: !0,
7642
7642
  opacity: this.config.opacity
7643
- }) : this.markerMaterial, a = new S.Mesh(i, n);
7643
+ }) : this.markerMaterial, a = new A.Mesh(i, n);
7644
7644
  return a.userData = { marker: e, height: r }, a;
7645
7645
  }
7646
7646
  /**
7647
7647
  * Create glow mesh for marker
7648
7648
  */
7649
7649
  createGlowMesh(e, t) {
7650
- const i = 2 + t * 3, r = new S.SphereGeometry(i, 16, 12), n = e.color ? new S.ShaderMaterial({
7650
+ const i = 2 + t * 3, r = new A.SphereGeometry(i, 16, 12), n = e.color ? new A.ShaderMaterial({
7651
7651
  ...this.glowMaterial,
7652
7652
  uniforms: {
7653
7653
  ...this.glowMaterial.uniforms,
7654
- uColor: { value: new S.Color(e.color) }
7654
+ uColor: { value: new A.Color(e.color) }
7655
7655
  }
7656
- }) : this.glowMaterial, a = new S.Mesh(r, n);
7656
+ }) : this.glowMaterial, a = new A.Mesh(r, n);
7657
7657
  return a.userData = { marker: e }, a;
7658
7658
  }
7659
7659
  /**
@@ -7693,10 +7693,10 @@ class No {
7693
7693
  this.markerMeshes = [], this.glowMeshes = [];
7694
7694
  }
7695
7695
  }
7696
- let pr = !1;
7696
+ let fr = !1;
7697
7697
  function Bo() {
7698
- if (pr) return;
7699
- pr = !0;
7698
+ if (fr) return;
7699
+ fr = !0;
7700
7700
  const s = document.createElement("style");
7701
7701
  s.setAttribute("data-gralobe-toolbar", "true"), s.textContent = `
7702
7702
  .gralobe-toolbar {
@@ -8045,13 +8045,16 @@ class X {
8045
8045
  return n;
8046
8046
  }
8047
8047
  }
8048
- const fr = {
8048
+ const ni = {
8049
8049
  satellite: "https://raw.githubusercontent.com/mrdoob/three.js/dev/examples/textures/planets/earth_atmos_2048.jpg",
8050
8050
  natural: "https://raw.githubusercontent.com/mrdoob/three.js/dev/examples/textures/planets/earth_day_4096.jpg",
8051
8051
  dark: "https://raw.githubusercontent.com/mrdoob/three.js/dev/examples/textures/planets/earth_lights_2048.png",
8052
8052
  light: "https://raw.githubusercontent.com/turban/webgl-earth/master/images/2_no_clouds_4k.jpg",
8053
8053
  night: "https://raw.githubusercontent.com/mrdoob/three.js/dev/examples/textures/planets/earth_lights_2048.png",
8054
- topographic: "https://eoimages.gsfc.nasa.gov/images/imagerecords/74000/74117/world.topo.200407.3x5400x2700.jpg"
8054
+ topographic: "https://raw.githubusercontent.com/batikanor/gralobe-assets/main/textures/world.topo.200407.3x5400x2700.jpg",
8055
+ day: "https://raw.githubusercontent.com/mrdoob/three.js/dev/examples/textures/planets/earth_day_4096.jpg",
8056
+ bathymetry: "https://eoimages.gsfc.nasa.gov/images/imagerecords/73000/73580/world.topo.bathy.200401.3x5400x2700.jpg"
8057
+ // NEW
8055
8058
  }, mr = {
8056
8059
  texture: "satellite",
8057
8060
  labels: "data",
@@ -8106,7 +8109,7 @@ class Ho {
8106
8109
  markerLayer = null;
8107
8110
  toolbar = null;
8108
8111
  dataGrid = null;
8109
- textureLoader = new S.TextureLoader();
8112
+ textureLoader = new A.TextureLoader();
8110
8113
  dataTexture = null;
8111
8114
  // State
8112
8115
  morph = 0;
@@ -8142,7 +8145,7 @@ class Ho {
8142
8145
  async init() {
8143
8146
  try {
8144
8147
  const e = this.config.width || this.container.clientWidth || 800, t = this.config.height || this.container.clientHeight || 600;
8145
- this.scene = new S.Scene(), this.scene.background = new S.Color(2066), this.camera = new S.PerspectiveCamera(50, e / t, 0.1, 1e3), this.camera.position.set(0, 0, this.config.initialView === "flat" ? 350 : 150), this.renderer = new S.WebGLRenderer({ antialias: !0 }), this.renderer.setSize(e, t), this.renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2)), this.container.appendChild(this.renderer.domElement), this.controls = new En(this.camera, this.renderer.domElement), this.controls.enableDamping = !0, this.controls.minDistance = 2, this.controls.maxDistance = 400, this.choropleth = new tt(
8148
+ this.scene = new A.Scene(), this.scene.background = new A.Color(2066), this.camera = new A.PerspectiveCamera(50, e / t, 0.1, 1e3), this.camera.position.set(0, 0, this.config.initialView === "flat" ? 350 : 150), this.renderer = new A.WebGLRenderer({ antialias: !0 }), this.renderer.setSize(e, t), this.renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2)), this.container.appendChild(this.renderer.domElement), this.controls = new En(this.camera, this.renderer.domElement), this.controls.enableDamping = !0, this.controls.minDistance = 2, this.controls.maxDistance = 400, this.choropleth = new tt(
8146
8149
  this.config.topology,
8147
8150
  (r, n) => {
8148
8151
  this.config.onLoadProgress?.(r, n);
@@ -8174,20 +8177,20 @@ class Ho {
8174
8177
  this.isDestroyed || document.activeElement === this.renderer.domElement && this.config.enableShortcuts && ((e.key === "g" || e.key === "G") && this.toggleProjection(), (e.key === "f" || e.key === "F") && this.toggleFullscreen());
8175
8178
  };
8176
8179
  async createGlobe() {
8177
- const e = this.textureLoader.loadAsync(fr[this.config.texture]), t = new Promise(
8180
+ const e = this.textureLoader.loadAsync(ni[this.config.texture]), t = new Promise(
8178
8181
  (a, o) => setTimeout(() => o(new Error("Texture load timed out after 10s")), 1e4)
8179
8182
  ), i = await Promise.race([e, t]);
8180
8183
  if (this.isDestroyed || !this.renderer) return;
8181
- i.anisotropy = this.renderer.capabilities.getMaxAnisotropy(), i.minFilter = S.LinearMipmapLinearFilter, i.magFilter = S.LinearFilter;
8184
+ i.anisotropy = this.renderer.capabilities.getMaxAnisotropy(), i.minFilter = A.LinearMipmapLinearFilter, i.magFilter = A.LinearFilter;
8182
8185
  const r = document.createElement("canvas");
8183
- r.width = 2048, r.height = 1024, this.dataTexture = new S.CanvasTexture(r);
8184
- const n = new S.PlaneGeometry(
8186
+ r.width = 2048, r.height = 1024, this.dataTexture = new A.CanvasTexture(r);
8187
+ const n = new A.PlaneGeometry(
8185
8188
  Math.PI * 2 * ee,
8186
8189
  Math.PI * ee,
8187
8190
  256,
8188
8191
  128
8189
8192
  );
8190
- this.material = new S.ShaderMaterial({
8193
+ this.material = new A.ShaderMaterial({
8191
8194
  vertexShader: Lo,
8192
8195
  fragmentShader: Do,
8193
8196
  uniforms: {
@@ -8204,7 +8207,7 @@ class Ho {
8204
8207
  uDataOpacity: { value: 0 },
8205
8208
  uDataOverlay: { value: 0 },
8206
8209
  uExtrudeHeight: { value: this.config.extrudeHeight ? 1 : 0 },
8207
- uSunDir: { value: new S.Vector3(1, 0.5, 1).normalize() },
8210
+ uSunDir: { value: new A.Vector3(1, 0.5, 1).normalize() },
8208
8211
  // Effect uniforms
8209
8212
  uClouds: { value: this.config.effects.clouds ? 1 : 0 },
8210
8213
  uCloudSpeed: { value: this.config.effects.cloudSpeed || 1 },
@@ -8224,44 +8227,44 @@ class Ho {
8224
8227
  uScanEffect: { value: 0 },
8225
8228
  uScanSpeed: { value: 1 },
8226
8229
  uHologram: { value: this.config.effects.hologramMode ? 1 : 0 },
8227
- uHologramColor: { value: new S.Color(65535) },
8230
+ uHologramColor: { value: new A.Color(65535) },
8228
8231
  uVintage: { value: this.config.effects.vintageMode ? 1 : 0 },
8229
8232
  uThermal: { value: this.config.effects.thermalMode ? 1 : 0 },
8230
8233
  uBlueprint: { value: this.config.effects.blueprintMode ? 1 : 0 },
8231
8234
  uGlowPulse: { value: this.config.effects.glowPulse ? 1 : 0 },
8232
- uGlowColor: { value: new S.Color(4491519) }
8235
+ uGlowColor: { value: new A.Color(4491519) }
8233
8236
  },
8234
- side: S.DoubleSide
8235
- }), this.globe = new S.Mesh(n, this.material), this.scene.add(this.globe);
8237
+ side: A.DoubleSide
8238
+ }), this.globe = new A.Mesh(n, this.material), this.scene.add(this.globe);
8236
8239
  }
8237
8240
  createAtmosphere() {
8238
- const e = new S.PlaneGeometry(
8241
+ const e = new A.PlaneGeometry(
8239
8242
  Math.PI * 2 * ee * 1.15,
8240
8243
  Math.PI * ee * 1.15,
8241
8244
  128,
8242
8245
  64
8243
- ), t = new S.ShaderMaterial({
8246
+ ), t = new A.ShaderMaterial({
8244
8247
  vertexShader: Io,
8245
8248
  fragmentShader: Ro,
8246
8249
  uniforms: {
8247
8250
  uMorph: { value: 0 },
8248
8251
  uOpacity: { value: 1 }
8249
8252
  },
8250
- side: S.BackSide,
8253
+ side: A.BackSide,
8251
8254
  transparent: !0,
8252
- blending: S.AdditiveBlending,
8255
+ blending: A.AdditiveBlending,
8253
8256
  depthWrite: !1
8254
8257
  });
8255
- this.atmosphere = new S.Mesh(e, t), this.scene.add(this.atmosphere);
8258
+ this.atmosphere = new A.Mesh(e, t), this.scene.add(this.atmosphere);
8256
8259
  }
8257
8260
  createStars() {
8258
- const t = new S.BufferGeometry(), i = new Float32Array(3e3 * 3), r = new Float32Array(3e3), n = new Float32Array(3e3);
8261
+ const t = new A.BufferGeometry(), i = new Float32Array(3e3 * 3), r = new Float32Array(3e3), n = new Float32Array(3e3);
8259
8262
  for (let o = 0; o < 3e3; o++) {
8260
8263
  const l = 300 + Math.random() * 300, u = Math.random() * Math.PI * 2, c = Math.acos(2 * Math.random() - 1);
8261
8264
  i[o * 3] = l * Math.sin(c) * Math.cos(u), i[o * 3 + 1] = l * Math.sin(c) * Math.sin(u), i[o * 3 + 2] = l * Math.cos(c), r[o] = 0.5 + Math.random() * 1.5, n[o] = Math.random() * Math.PI * 2;
8262
8265
  }
8263
- t.setAttribute("position", new S.BufferAttribute(i, 3)), t.setAttribute("aSize", new S.BufferAttribute(r, 1)), t.setAttribute("aPhase", new S.BufferAttribute(n, 1));
8264
- const a = new S.ShaderMaterial({
8266
+ t.setAttribute("position", new A.BufferAttribute(i, 3)), t.setAttribute("aSize", new A.BufferAttribute(r, 1)), t.setAttribute("aPhase", new A.BufferAttribute(n, 1));
8267
+ const a = new A.ShaderMaterial({
8265
8268
  vertexShader: ko,
8266
8269
  fragmentShader: Oo,
8267
8270
  uniforms: {
@@ -8270,10 +8273,10 @@ class Ho {
8270
8273
  uOpacity: { value: 1 }
8271
8274
  },
8272
8275
  transparent: !0,
8273
- blending: S.AdditiveBlending,
8276
+ blending: A.AdditiveBlending,
8274
8277
  depthWrite: !1
8275
8278
  });
8276
- this.stars = new S.Points(t, a), this.scene.add(this.stars);
8279
+ this.stars = new A.Points(t, a), this.scene.add(this.stars);
8277
8280
  }
8278
8281
  createGUI() {
8279
8282
  getComputedStyle(this.container).position === "static" && (this.container.style.position = "relative"), console.warn("Creating GUI v6 (Two-Stage Navigation)");
@@ -8522,7 +8525,7 @@ class Ho {
8522
8525
  font-size: 0.9em !important;
8523
8526
  margin-left: 0 !important;
8524
8527
  }
8525
- `, this.categoryGUIs.forEach((A) => A.destroy()), this.categoryGUIs = [];
8528
+ `, this.categoryGUIs.forEach((S) => S.destroy()), this.categoryGUIs = [];
8526
8529
  const i = this.container.querySelector(".gralobe-gui-toggle");
8527
8530
  i && i.remove();
8528
8531
  const r = this.container.querySelector(".gralobe-category-bar");
@@ -8537,23 +8540,23 @@ class Ho {
8537
8540
  a.className = "gralobe-category-bar", this.container.appendChild(a);
8538
8541
  let o = !1, l = null;
8539
8542
  const u = {}, c = {}, h = () => {
8540
- Object.keys(u).forEach((A) => {
8541
- u[A].domElement.classList.remove("active-panel"), c[A].classList.remove("active");
8543
+ Object.keys(u).forEach((S) => {
8544
+ u[S].domElement.classList.remove("active-panel"), c[S].classList.remove("active");
8542
8545
  }), l = null;
8543
- }, p = (A) => {
8544
- l === A ? h() : (h(), l = A, u[A].domElement.classList.add("active-panel"), c[A].classList.add("active"));
8545
- }, f = (A) => {
8546
- o = A, o ? (a.classList.add("visible"), n.classList.add("expanded")) : (a.classList.remove("visible"), n.classList.remove("expanded"), h());
8546
+ }, p = (S) => {
8547
+ l === S ? h() : (h(), l = S, u[S].domElement.classList.add("active-panel"), c[S].classList.add("active"));
8548
+ }, f = (S) => {
8549
+ o = S, o ? (a.classList.add("visible"), n.classList.add("expanded")) : (a.classList.remove("visible"), n.classList.remove("expanded"), h());
8547
8550
  };
8548
- n.onclick = (A) => {
8549
- A.stopPropagation(), f(!o);
8551
+ n.onclick = (S) => {
8552
+ S.stopPropagation(), f(!o);
8550
8553
  }, f(!1);
8551
- const m = (A, _e) => {
8554
+ const m = (S, _e) => {
8552
8555
  const Q = document.createElement("button");
8553
8556
  Q.className = "gralobe-category-btn", Q.innerText = _e, Q.onclick = (me) => {
8554
- me.stopPropagation(), p(A);
8555
- }, a.appendChild(Q), c[A] = Q;
8556
- const se = new Ui({ container: this.container, title: "" });
8557
+ me.stopPropagation(), p(S);
8558
+ }, a.appendChild(Q), c[S] = Q;
8559
+ const se = new Ni({ container: this.container, title: "" });
8557
8560
  this.categoryGUIs.push(se), se.domElement.classList.add("root");
8558
8561
  const fe = se.domElement.querySelector(".title");
8559
8562
  if (fe)
@@ -8562,13 +8565,13 @@ class Ho {
8562
8565
  const me = se.domElement.children[0];
8563
8566
  me.classList.contains("children") || me.remove();
8564
8567
  }
8565
- return u[A] = se, se;
8566
- }, g = m("texture", "Texture").add(this.config, "texture", Object.keys(fr)).name("Theme").onChange((A) => this.setTexture(A));
8568
+ return u[S] = se, se;
8569
+ }, g = m("texture", "Texture").add(this.config, "texture", Object.keys(ni)).name("Theme").onChange((S) => this.setTexture(S));
8567
8570
  this.addTooltip(
8568
8571
  g,
8569
8572
  "<b>Visual Theme</b><br><br>Change the base texture of the globe. Options include satellite imagery, natural earth, dark mode (lights), and more."
8570
8573
  );
8571
- const b = m("nav", "Navigation"), y = b.add({ toGlobe: () => this.toGlobe() }, "toGlobe").name("→ Globe"), x = b.add({ toFlat: () => this.toFlat() }, "toFlat").name("→ Flat"), v = b.add({ morph: this.morph }, "morph", 0, 1).name("Morph").listen().onChange((A) => this.setMorph(A));
8574
+ const b = m("nav", "Navigation"), y = b.add({ toGlobe: () => this.toGlobe() }, "toGlobe").name("→ Globe"), x = b.add({ toFlat: () => this.toFlat() }, "toFlat").name("→ Flat"), v = b.add({ morph: this.morph }, "morph", 0, 1).name("Morph").listen().onChange((S) => this.setMorph(S));
8572
8575
  this.addTooltip(
8573
8576
  y,
8574
8577
  "<b>Switch to Globe View</b><br><br>Smoothly animate to the 3D spherical view."
@@ -8579,60 +8582,60 @@ class Ho {
8579
8582
  v,
8580
8583
  "<b>Projection Morph</b><br><br>Manually control the transition between Globe (1) and Flat Map (0)."
8581
8584
  );
8582
- const _ = m("stats", "Data"), C = typeof this.config.statistic == "string" ? this.config.statistic : this.config.statistic.definition.id, w = _.add({ stat: C }, "stat", Object.keys(Ot)).name("Metric").onChange((A) => this.setStatistic(A));
8585
+ const _ = m("stats", "Data"), C = typeof this.config.statistic == "string" ? this.config.statistic : this.config.statistic.definition.id, w = _.add({ stat: C }, "stat", Object.keys(Ot)).name("Metric").onChange((S) => this.setStatistic(S));
8583
8586
  this.addTooltip(
8584
8587
  w,
8585
8588
  "<b>Data Metric</b><br><br>Select the statistical dataset to visualize on the globe."
8586
8589
  );
8587
- const P = m("fx", "Effects"), E = this.config.effects, T = P.addFolder("Atmosphere"), L = T.add(E, "atmosphere").onChange((A) => {
8588
- this.material && (this.material.uniforms.uAtmosphereIntensity.value = A ? 1 : 0);
8589
- }), M = T.add(E, "clouds").onChange((A) => {
8590
- this.material && (this.material.uniforms.uClouds.value = A ? 1 : 0);
8590
+ const P = m("fx", "Effects"), E = this.config.effects, T = P.addFolder("Atmosphere"), L = T.add(E, "atmosphere").onChange((S) => {
8591
+ this.material && (this.material.uniforms.uAtmosphereIntensity.value = S ? 1 : 0);
8592
+ }), M = T.add(E, "clouds").onChange((S) => {
8593
+ this.material && (this.material.uniforms.uClouds.value = S ? 1 : 0);
8591
8594
  });
8592
8595
  this.addTooltip(
8593
8596
  L,
8594
8597
  "<b>Atmosphere Glow</b><br><br>Toggle the outer atmospheric glow effect."
8595
- ), this.addTooltip(M, "<b>Cloud Layer</b><br><br>Toggle the moving cloud layer."), T.add(E, "cloudSpeed", 0, 5).name("Cloud Speed").onChange((A) => {
8596
- this.material && (this.material.uniforms.uCloudSpeed.value = A);
8597
- }), T.add(E, "cloudOpacity", 0, 1).name("Cloud Opacity").onChange((A) => {
8598
- this.material && (this.material.uniforms.uCloudOpacity.value = A);
8599
- }), T.add(E, "aurora").name("Aurora").onChange((A) => {
8600
- this.material && (this.material.uniforms.uAurora.value = A ? 1 : 0);
8598
+ ), this.addTooltip(M, "<b>Cloud Layer</b><br><br>Toggle the moving cloud layer."), T.add(E, "cloudSpeed", 0, 5).name("Cloud Speed").onChange((S) => {
8599
+ this.material && (this.material.uniforms.uCloudSpeed.value = S);
8600
+ }), T.add(E, "cloudOpacity", 0, 1).name("Cloud Opacity").onChange((S) => {
8601
+ this.material && (this.material.uniforms.uCloudOpacity.value = S);
8602
+ }), T.add(E, "aurora").name("Aurora").onChange((S) => {
8603
+ this.material && (this.material.uniforms.uAurora.value = S ? 1 : 0);
8601
8604
  }), T.add(E, "starTwinkle").name("Star Twinkle"), T.close();
8602
8605
  const D = P.addFolder("Lighting");
8603
- D.add(E, "cityLights").name("City Lights").onChange((A) => {
8604
- this.material && (this.material.uniforms.uCityLights.value = A ? 1 : 0);
8605
- }), D.add(E, "oceanSpecular").name("Ocean Specular").onChange((A) => {
8606
- this.material && (this.material.uniforms.uOceanSpecular.value = A ? 1 : 0);
8606
+ D.add(E, "cityLights").name("City Lights").onChange((S) => {
8607
+ this.material && (this.material.uniforms.uCityLights.value = S ? 1 : 0);
8608
+ }), D.add(E, "oceanSpecular").name("Ocean Specular").onChange((S) => {
8609
+ this.material && (this.material.uniforms.uOceanSpecular.value = S ? 1 : 0);
8607
8610
  }), D.close();
8608
8611
  const R = P.addFolder("Grid System");
8609
- R.add(E, "gridLines").name("Enable Grid").onChange((A) => {
8610
- this.material && (this.material.uniforms.uGridLines.value = A ? 1 : 0);
8611
- }), R.add(E, "gridOpacity", 0, 1).name("Opacity").onChange((A) => {
8612
- this.material && (this.material.uniforms.uGridOpacity.value = A);
8612
+ R.add(E, "gridLines").name("Enable Grid").onChange((S) => {
8613
+ this.material && (this.material.uniforms.uGridLines.value = S ? 1 : 0);
8614
+ }), R.add(E, "gridOpacity", 0, 1).name("Opacity").onChange((S) => {
8615
+ this.material && (this.material.uniforms.uGridOpacity.value = S);
8613
8616
  }), R.close();
8614
- const U = (A) => {
8615
- A.forEach((_e) => {
8617
+ const U = (S) => {
8618
+ S.forEach((_e) => {
8616
8619
  const Q = _e.open;
8617
8620
  _e.open = function() {
8618
- return Q.apply(this), A.forEach((se) => {
8621
+ return Q.apply(this), S.forEach((se) => {
8619
8622
  se !== this && se.close();
8620
8623
  }), this;
8621
8624
  };
8622
8625
  });
8623
8626
  }, k = P.addFolder("Special Modes");
8624
- k.add(E, "hologramMode").name("Hologram").onChange((A) => {
8625
- this.material && (this.material.uniforms.uHologram.value = A ? 1 : 0);
8626
- }), k.add(E, "vintageMode").name("Vintage").onChange((A) => {
8627
- this.material && (this.material.uniforms.uVintage.value = A ? 1 : 0);
8628
- }), k.add(E, "thermalMode").name("Thermal").onChange((A) => {
8629
- this.material && (this.material.uniforms.uThermal.value = A ? 1 : 0);
8630
- }), k.add(E, "blueprintMode").name("Blueprint").onChange((A) => {
8631
- this.material && (this.material.uniforms.uBlueprint.value = A ? 1 : 0);
8632
- }), k.add(E, "glowPulse").name("Glow Pulse").onChange((A) => {
8633
- this.material && (this.material.uniforms.uGlowPulse.value = A ? 1 : 0);
8627
+ k.add(E, "hologramMode").name("Hologram").onChange((S) => {
8628
+ this.material && (this.material.uniforms.uHologram.value = S ? 1 : 0);
8629
+ }), k.add(E, "vintageMode").name("Vintage").onChange((S) => {
8630
+ this.material && (this.material.uniforms.uVintage.value = S ? 1 : 0);
8631
+ }), k.add(E, "thermalMode").name("Thermal").onChange((S) => {
8632
+ this.material && (this.material.uniforms.uThermal.value = S ? 1 : 0);
8633
+ }), k.add(E, "blueprintMode").name("Blueprint").onChange((S) => {
8634
+ this.material && (this.material.uniforms.uBlueprint.value = S ? 1 : 0);
8635
+ }), k.add(E, "glowPulse").name("Glow Pulse").onChange((S) => {
8636
+ this.material && (this.material.uniforms.uGlowPulse.value = S ? 1 : 0);
8634
8637
  }), k.close(), U([T, D, R, k]);
8635
- const O = m("settings", "Settings"), Z = O.add(this.config, "labels", ["none", "minimal", "all", "data"]).onChange((A) => this.setLabels(A));
8638
+ const O = m("settings", "Settings"), Z = O.add(this.config, "labels", ["none", "minimal", "all", "data"]).onChange((S) => this.setLabels(S));
8636
8639
  this.addTooltip(
8637
8640
  Z,
8638
8641
  "<b>Label Visibility</b><br><br>Control which labels are shown.<br>• <b>none</b>: No labels<br>• <b>minimal</b>: Top 7 major countries<br>• <b>all</b>: All countries<br>• <b>data</b>: Only entities with active data"
@@ -8643,10 +8646,10 @@ class Ho {
8643
8646
  this.addTooltip(
8644
8647
  Ne,
8645
8648
  "<b>Synthetic Geometry Radius</b><br><br>If our data consists of point locations (like cities) without defined 2D borders, we generate synthetic circular boundaries for them.<br><br>This control scales the size (in km) of these generated circles. Larger values make small cities more visible on the global map."
8646
- ), O.add(this.config, "extrudeHeight", 0, 2).name("Extrude").onChange((A) => {
8647
- this.material && (this.material.uniforms.uExtrudeRaw.value = A);
8648
- }), O.add(this.config, "autoRotate").name("Auto Rotate"), O.add({ screenshot: () => this.screenshot({ width: 1920, height: 1080 }) }, "screenshot").name("Screenshot"), O.add(this.config, "enableShortcuts").name("Keyboard Shortcuts").onChange((A) => {
8649
- this.toolbar?.setShortcutsEnabled(A);
8649
+ ), O.add(this.config, "extrudeHeight", 0, 2).name("Extrude").onChange((S) => {
8650
+ this.material && (this.material.uniforms.uExtrudeRaw.value = S);
8651
+ }), O.add(this.config, "autoRotate").name("Auto Rotate"), O.add({ screenshot: () => this.screenshot({ width: 1920, height: 1080 }) }, "screenshot").name("Screenshot"), O.add(this.config, "enableShortcuts").name("Keyboard Shortcuts").onChange((S) => {
8652
+ this.toolbar?.setShortcutsEnabled(S);
8650
8653
  });
8651
8654
  }
8652
8655
  handleResize = () => {
@@ -8666,9 +8669,9 @@ class Ho {
8666
8669
  // Public API Implementation
8667
8670
  toGlobe() {
8668
8671
  this.controls.enableRotate = !0, this.controls.minAzimuthAngle = -1 / 0, this.controls.maxAzimuthAngle = 1 / 0, this.controls.minPolarAngle = 0, this.controls.maxPolarAngle = Math.PI, this.controls.screenSpacePanning = !1, this.controls.mouseButtons = {
8669
- LEFT: S.MOUSE.ROTATE,
8670
- MIDDLE: S.MOUSE.DOLLY,
8671
- RIGHT: S.MOUSE.PAN
8672
+ LEFT: A.MOUSE.ROTATE,
8673
+ MIDDLE: A.MOUSE.DOLLY,
8674
+ RIGHT: A.MOUSE.PAN
8672
8675
  };
8673
8676
  let e = 0;
8674
8677
  const t = this.choropleth?.getBounds();
@@ -8761,9 +8764,9 @@ class Ho {
8761
8764
  duration: 2,
8762
8765
  ease: "power3.inOut"
8763
8766
  }), this.controls.screenSpacePanning = !0, this.controls.mouseButtons = {
8764
- LEFT: S.MOUSE.PAN,
8765
- MIDDLE: S.MOUSE.DOLLY,
8766
- RIGHT: S.MOUSE.ROTATE
8767
+ LEFT: A.MOUSE.PAN,
8768
+ MIDDLE: A.MOUSE.DOLLY,
8769
+ RIGHT: A.MOUSE.ROTATE
8767
8770
  }, this.stars && Y.to(this.stars.material.uniforms.uOpacity, {
8768
8771
  value: 0,
8769
8772
  duration: 1
@@ -8776,7 +8779,7 @@ class Ho {
8776
8779
  * Setup mouse interactions (Click to Zoom, etc.)
8777
8780
  */
8778
8781
  setupInteraction() {
8779
- const e = new S.Raycaster(), t = new S.Vector2(), i = new S.Plane(new S.Vector3(0, 0, 1), 0), r = new S.Vector3();
8782
+ const e = new A.Raycaster(), t = new A.Vector2(), i = new A.Plane(new A.Vector3(0, 0, 1), 0), r = new A.Vector3();
8780
8783
  let n = !1, a = (/* @__PURE__ */ new Date()).getTime();
8781
8784
  this.renderer.domElement.addEventListener("mousedown", () => {
8782
8785
  n = !1, a = (/* @__PURE__ */ new Date()).getTime();
@@ -8834,7 +8837,7 @@ class Ho {
8834
8837
  t.definition.domain
8835
8838
  );
8836
8839
  if (this.material && i) {
8837
- const r = new S.CanvasTexture(i);
8840
+ const r = new A.CanvasTexture(i);
8838
8841
  r.anisotropy = this.renderer.capabilities.getMaxAnisotropy(), r.needsUpdate = !0, this.material.uniforms.uDataTexture.value = r, this.material.uniforms.uDataOverlay.value = 1, this.material.uniforms.uDataOpacity.value === 0 && Y.to(this.material.uniforms.uDataOpacity, {
8839
8842
  value: 0.7,
8840
8843
  duration: 1
@@ -8860,6 +8863,18 @@ class Ho {
8860
8863
  this.countryLabels?.clearCustomLabels();
8861
8864
  }
8862
8865
  async setTexture(e) {
8866
+ if (!(!this.renderer || !this.material)) {
8867
+ this.config.texture = e;
8868
+ try {
8869
+ const t = this.textureLoader.loadAsync(ni[e]), i = new Promise(
8870
+ (n, a) => setTimeout(() => a(new Error("Texture load timed out after 10s")), 1e4)
8871
+ ), r = await Promise.race([t, i]);
8872
+ if (this.isDestroyed || !this.material || !this.material.uniforms.uTexture) return;
8873
+ r.anisotropy = this.renderer.capabilities.getMaxAnisotropy(), r.minFilter = A.LinearMipmapLinearFilter, r.magFilter = A.LinearFilter, this.material.uniforms.uTexture.value = r, this.material.needsUpdate = !0;
8874
+ } catch (t) {
8875
+ console.error(`Failed to set texture ${e}:`, t);
8876
+ }
8877
+ }
8863
8878
  }
8864
8879
  setAutoRotate(e) {
8865
8880
  this.config.autoRotate = e;
@@ -9073,6 +9088,6 @@ export {
9073
9088
  gr as createFormatter,
9074
9089
  jo as formatValue,
9075
9090
  An as normalizeCountryValues,
9076
- $i as toNumericCode
9091
+ Gi as toNumericCode
9077
9092
  };
9078
9093
  //# sourceMappingURL=gralobe.js.map