gralobe 1.0.32 → 1.0.34

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,11 +1,11 @@
1
1
  import * as A from "three";
2
- import { Controls as Ur, Vector3 as oe, MOUSE as nt, TOUCH as Je, Quaternion as Zi, Spherical as Ki, Vector2 as fe, Ray as Fr, Plane as zr, MathUtils as Nr, Matrix4 as Sn, Object3D as Br } from "three";
2
+ import { Controls as Ur, Vector3 as oe, MOUSE as nt, TOUCH as Je, Quaternion as Zi, Spherical as Ki, Vector2 as fe, Ray as zr, Plane as Nr, MathUtils as Br, Matrix4 as Mn, Object3D as $r } from "three";
3
3
  function Ce(a) {
4
4
  if (a === void 0)
5
5
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6
6
  return a;
7
7
  }
8
- function Mn(a, e) {
8
+ function Dn(a, e) {
9
9
  a.prototype = Object.create(e.prototype), a.prototype.constructor = a, a.__proto__ = e;
10
10
  }
11
11
  var ue = {
@@ -19,7 +19,7 @@ var ue = {
19
19
  duration: 0.5,
20
20
  overwrite: !1,
21
21
  delay: 0
22
- }, Ci, W, z, ge = 1e8, k = 1 / ge, li = Math.PI * 2, $r = li / 4, Gr = 0, Dn = Math.sqrt, Vr = Math.cos, jr = Math.sin, K = function(e) {
22
+ }, Ci, W, z, ge = 1e8, k = 1 / ge, li = Math.PI * 2, Gr = li / 4, Vr = 0, Rn = Math.sqrt, jr = Math.cos, Hr = Math.sin, K = function(e) {
23
23
  return typeof e == "string";
24
24
  }, G = function(e) {
25
25
  return typeof e == "function";
@@ -35,39 +35,39 @@ var ue = {
35
35
  return typeof window < "u";
36
36
  }, Rt = function(e) {
37
37
  return G(e) || K(e);
38
- }, Rn = typeof ArrayBuffer == "function" && ArrayBuffer.isView || function() {
39
- }, q = Array.isArray, hi = /(?:-?\.?\d|\.)+/gi, On = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, et = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, Xt = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, In = /[+-]=-?[.\d]+/, Ln = /[^,'"\[\]\s]+/gi, Hr = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, N, xe, ci, Si, de = {}, Bt = {}, kn, Un = function(e) {
38
+ }, In = typeof ArrayBuffer == "function" && ArrayBuffer.isView || function() {
39
+ }, q = Array.isArray, hi = /(?:-?\.?\d|\.)+/gi, Ln = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, et = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, Xt = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, On = /[+-]=-?[.\d]+/, kn = /[^,'"\[\]\s]+/gi, Yr = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, N, xe, ci, Si, de = {}, Bt = {}, Fn, Un = function(e) {
40
40
  return (Bt = lt(e, de)) && ae;
41
41
  }, Mi = function(e, t) {
42
42
  return console.warn("Invalid property", e, "set to", t, "Missing plugin? gsap.registerPlugin()");
43
43
  }, Et = function(e, t) {
44
44
  return !t && console.warn(e);
45
- }, Fn = function(e, t) {
45
+ }, zn = function(e, t) {
46
46
  return e && (de[e] = t) && Bt && (Bt[e] = t) || de;
47
47
  }, wt = function() {
48
48
  return 0;
49
- }, Yr = {
49
+ }, Zr = {
50
50
  suppressEvents: !0,
51
51
  isStart: !0,
52
52
  kill: !1
53
- }, Ut = {
53
+ }, Ft = {
54
54
  suppressEvents: !0,
55
55
  kill: !1
56
- }, Zr = {
56
+ }, Kr = {
57
57
  suppressEvents: !0
58
- }, Di = {}, Ie = [], ui = {}, zn, le = {}, qt = {}, Wi = 30, Ft = [], Ri = "", Oi = function(e) {
58
+ }, Di = {}, Le = [], ui = {}, Nn, le = {}, qt = {}, Wi = 30, Ut = [], Ri = "", Ii = function(e) {
59
59
  var t = e[0], i, n;
60
60
  if (we(t) || G(t) || (e = [e]), !(i = (t._gsap || {}).harness)) {
61
- for (n = Ft.length; n-- && !Ft[n].targetTest(t); )
61
+ for (n = Ut.length; n-- && !Ut[n].targetTest(t); )
62
62
  ;
63
- i = Ft[n];
63
+ i = Ut[n];
64
64
  }
65
65
  for (n = e.length; n--; )
66
- e[n] && (e[n]._gsap || (e[n]._gsap = new lr(e[n], i))) || e.splice(n, 1);
66
+ e[n] && (e[n]._gsap || (e[n]._gsap = new hr(e[n], i))) || e.splice(n, 1);
67
67
  return e;
68
68
  }, He = function(e) {
69
- return e._gsap || Oi(_e(e))[0]._gsap;
70
- }, Nn = function(e, t, i) {
69
+ return e._gsap || Ii(_e(e))[0]._gsap;
70
+ }, Bn = function(e, t, i) {
71
71
  return (i = e[t]) && G(i) ? e[t]() : Ai(i) && e.getAttribute && e.getAttribute(t) || i;
72
72
  }, ne = function(e, t) {
73
73
  return (e = e.split(",")).forEach(t) || e;
@@ -78,28 +78,28 @@ var ue = {
78
78
  }, rt = function(e, t) {
79
79
  var i = t.charAt(0), n = parseFloat(t.substr(2));
80
80
  return e = parseFloat(e), i === "+" ? e + n : i === "-" ? e - n : i === "*" ? e * n : e / n;
81
- }, Kr = function(e, t) {
81
+ }, Wr = function(e, t) {
82
82
  for (var i = t.length, n = 0; e.indexOf(t[n]) < 0 && ++n < i; )
83
83
  ;
84
84
  return n < i;
85
85
  }, $t = function() {
86
- var e = Ie.length, t = Ie.slice(0), i, n;
87
- for (ui = {}, Ie.length = 0, i = 0; i < e; i++)
86
+ var e = Le.length, t = Le.slice(0), i, n;
87
+ for (ui = {}, Le.length = 0, i = 0; i < e; i++)
88
88
  n = t[i], n && n._lazy && (n.render(n._lazy[0], n._lazy[1], !0)._lazy = 0);
89
- }, Ii = function(e) {
89
+ }, Li = function(e) {
90
90
  return !!(e._initted || e._startAt || e.add);
91
- }, Bn = function(e, t, i, n) {
92
- Ie.length && !W && $t(), e.render(t, i, !!(W && t < 0 && Ii(e))), Ie.length && !W && $t();
93
- }, $n = function(e) {
94
- var t = parseFloat(e);
95
- return (t || t === 0) && (e + "").match(Ln).length < 2 ? t : K(e) ? e.trim() : e;
91
+ }, $n = function(e, t, i, n) {
92
+ Le.length && !W && $t(), e.render(t, i, !!(W && t < 0 && Li(e))), Le.length && !W && $t();
96
93
  }, Gn = function(e) {
94
+ var t = parseFloat(e);
95
+ return (t || t === 0) && (e + "").match(kn).length < 2 ? t : K(e) ? e.trim() : e;
96
+ }, Vn = function(e) {
97
97
  return e;
98
98
  }, pe = function(e, t) {
99
99
  for (var i in t)
100
100
  i in e || (e[i] = t[i]);
101
101
  return e;
102
- }, Wr = function(e) {
102
+ }, Xr = function(e) {
103
103
  return function(t, i) {
104
104
  for (var n in i)
105
105
  n in t || n === "duration" && e || n === "ease" || (t[n] = i[n]);
@@ -118,16 +118,16 @@ var ue = {
118
118
  n in t || (i[n] = e[n]);
119
119
  return i;
120
120
  }, xt = function(e) {
121
- var t = e.parent || N, i = e.keyframes ? Wr(q(e.keyframes)) : pe;
121
+ var t = e.parent || N, i = e.keyframes ? Xr(q(e.keyframes)) : pe;
122
122
  if (ie(e.inherit))
123
123
  for (; t; )
124
124
  i(e, t.vars.defaults), t = t.parent || t._dp;
125
125
  return e;
126
- }, Xr = function(e, t) {
126
+ }, qr = function(e, t) {
127
127
  for (var i = e.length, n = i === t.length; n && i-- && e[i] === t[i]; )
128
128
  ;
129
129
  return i < 0;
130
- }, Vn = function(e, t, i, n, r) {
130
+ }, jn = function(e, t, i, n, r) {
131
131
  var s = e[n], o;
132
132
  if (r)
133
133
  for (o = t[r]; s && s[r] > o; )
@@ -144,13 +144,13 @@ var ue = {
144
144
  for (var i = e; i; )
145
145
  i._dirty = 1, i = i.parent;
146
146
  return e;
147
- }, qr = function(e) {
147
+ }, Qr = function(e) {
148
148
  for (var t = e.parent; t && t.parent; )
149
149
  t._dirty = 1, t.totalDuration(), t = t.parent;
150
150
  return e;
151
151
  }, di = function(e, t, i, n) {
152
- return e._startAt && (W ? e._startAt.revert(Ut) : e.vars.immediateRender && !e.vars.autoRevert || e._startAt.render(t, !0, n));
153
- }, Qr = function a(e) {
152
+ return e._startAt && (W ? e._startAt.revert(Ft) : e.vars.immediateRender && !e.vars.autoRevert || e._startAt.render(t, !0, n));
153
+ }, Jr = function a(e) {
154
154
  return !e || e._ts && a(e.parent);
155
155
  }, qi = function(e) {
156
156
  return e._repeat ? ht(e._tTime, e = e.duration() + e._rDelay) * e : 0;
@@ -164,7 +164,7 @@ var ue = {
164
164
  }, Wt = function(e, t) {
165
165
  var i = e._dp;
166
166
  return i && i.smoothChildTiming && e._ts && (e._start = H(i._time - (e._ts > 0 ? t / e._ts : ((e._dirty ? e.totalDuration() : e._tDur) - t) / -e._ts)), Kt(e), i._dirty || Ye(i, e)), e;
167
- }, jn = function(e, t) {
167
+ }, Hn = function(e, t) {
168
168
  var i;
169
169
  if ((t._time || !t._dur && t._initted || t._start < e._time && (t._dur || !t.add)) && (i = Vt(e.rawTime(), t), (!t._dur || Dt(0, t.totalDuration(), i) - t._tTime > k) && t.render(i, !0)), Ye(e, t)._dp && e._initted && e._time >= e._dur && e._ts) {
170
170
  if (e._dur < e.duration())
@@ -173,30 +173,30 @@ var ue = {
173
173
  e._zTime = -k;
174
174
  }
175
175
  }, be = function(e, t, i, n) {
176
- return t.parent && ke(t), t._start = H((Te(i) ? i : i || e !== N ? me(e, i, t) : e._time) + t._delay), t._end = H(t._start + (t.totalDuration() / Math.abs(t.timeScale()) || 0)), Vn(e, t, "_first", "_last", e._sort ? "_start" : 0), pi(t) || (e._recent = t), n || jn(e, t), e._ts < 0 && Wt(e, e._tTime), e;
177
- }, Hn = function(e, t) {
176
+ return t.parent && ke(t), t._start = H((Te(i) ? i : i || e !== N ? me(e, i, t) : e._time) + t._delay), t._end = H(t._start + (t.totalDuration() / Math.abs(t.timeScale()) || 0)), jn(e, t, "_first", "_last", e._sort ? "_start" : 0), pi(t) || (e._recent = t), n || Hn(e, t), e._ts < 0 && Wt(e, e._tTime), e;
177
+ }, Yn = function(e, t) {
178
178
  return (de.ScrollTrigger || Mi("scrollTrigger", t)) && de.ScrollTrigger.create(t, e);
179
- }, Yn = function(e, t, i, n, r) {
179
+ }, Zn = function(e, t, i, n, r) {
180
180
  if (ki(e, t, r), !e._initted)
181
181
  return 1;
182
- if (!i && e._pt && !W && (e._dur && e.vars.lazy !== !1 || !e._dur && e.vars.lazy) && zn !== he.frame)
183
- return Ie.push(e), e._lazy = [r, n], 1;
184
- }, Jr = function a(e) {
182
+ if (!i && e._pt && !W && (e._dur && e.vars.lazy !== !1 || !e._dur && e.vars.lazy) && Nn !== he.frame)
183
+ return Le.push(e), e._lazy = [r, n], 1;
184
+ }, es = function a(e) {
185
185
  var t = e.parent;
186
186
  return t && t._ts && t._initted && !t._lock && (t.rawTime() < 0 || a(t));
187
187
  }, pi = function(e) {
188
188
  var t = e.data;
189
189
  return t === "isFromStart" || t === "isStart";
190
- }, es = function(e, t, i, n) {
191
- var r = e.ratio, s = t < 0 || !t && (!e._start && Jr(e) && !(!e._initted && pi(e)) || (e._ts < 0 || e._dp._ts < 0) && !pi(e)) ? 0 : 1, o = e._rDelay, l = 0, h, c, u;
190
+ }, ts = function(e, t, i, n) {
191
+ var r = e.ratio, s = t < 0 || !t && (!e._start && es(e) && !(!e._initted && pi(e)) || (e._ts < 0 || e._dp._ts < 0) && !pi(e)) ? 0 : 1, o = e._rDelay, l = 0, h, c, u;
192
192
  if (o && e._repeat && (l = Dt(0, e._tDur, t), c = ht(l, o), e._yoyo && c & 1 && (s = 1 - s), c !== ht(e._tTime, o) && (r = 1 - s, e.vars.repeatRefresh && e._initted && e.invalidate())), s !== r || W || n || e._zTime === k || !t && e._zTime) {
193
- if (!e._initted && Yn(e, t, n, i, l))
193
+ if (!e._initted && Zn(e, t, n, i, l))
194
194
  return;
195
195
  for (u = e._zTime, e._zTime = t || (i ? k : 0), i || (i = t && !u), e.ratio = s, e._from && (s = 1 - s), e._time = 0, e._tTime = l, h = e._pt; h; )
196
196
  h.r(s, h.d), h = h._next;
197
197
  t < 0 && di(e, t, i, !0), e._onUpdate && !i && ce(e, "onUpdate"), l && e._repeat && !i && e.parent && ce(e, "onRepeat"), (t >= e._tDur || t < 0) && e.ratio === s && (s && ke(e, 1), !i && !W && (ce(e, s ? "onComplete" : "onReverseComplete", !0), e._prom && e._prom()));
198
198
  } else e._zTime || (e._zTime = t);
199
- }, ts = function(e, t, i) {
199
+ }, is = function(e, t, i) {
200
200
  var n;
201
201
  if (i > t)
202
202
  for (n = e._first; n && n._start <= i; ) {
@@ -215,12 +215,12 @@ var ue = {
215
215
  return o && !n && (e._time *= s / e._dur), e._dur = s, e._tDur = r ? r < 0 ? 1e10 : H(s * (r + 1) + e._rDelay * r) : s, o > 0 && !n && Wt(e, e._tTime = e._tDur * o), e.parent && Kt(e), i || Ye(e.parent, e), e;
216
216
  }, Qi = function(e) {
217
217
  return e instanceof J ? Ye(e) : ct(e, e._dur);
218
- }, is = {
218
+ }, ns = {
219
219
  _start: 0,
220
220
  endTime: wt,
221
221
  totalDuration: wt
222
222
  }, me = function a(e, t, i) {
223
- var n = e.labels, r = e._recent || is, s = e.duration() >= ge ? r.endTime(!1) : e._dur, o, l, h;
223
+ var n = e.labels, r = e._recent || ns, s = e.duration() >= ge ? r.endTime(!1) : e._dur, o, l, h;
224
224
  return K(t) && (isNaN(t) || t in n) ? (l = t.charAt(0), h = t.substr(-1) === "%", o = t.indexOf("="), l === "<" || l === ">" ? (o >= 0 && (t = t.replace(/=/, "")), (l === "<" ? r._start : r.endTime(r._repeat >= 0)) + (parseFloat(t.substr(1)) || 0) * (h ? (o < 0 ? r : i).totalDuration() / 100 : 1)) : o < 0 ? (t in n || (n[t] = s), n[t]) : (l = parseFloat(t.charAt(o - 1) + t.substr(o + 1)), h && i && (l = l / 100 * (q(i) ? i[0] : i).totalDuration()), o > 1 ? a(e, t.substr(0, o - 1), i) + l : s + l)) : t == null ? s : +t;
225
225
  }, bt = function(e, t, i) {
226
226
  var n = Te(t[1]), r = (n ? 2 : 1) + (e < 2 ? 0 : 1), s = t[r], o, l;
@@ -230,35 +230,35 @@ var ue = {
230
230
  s.immediateRender = ie(o.immediateRender), e < 2 ? s.runBackwards = 1 : s.startAt = t[r - 1];
231
231
  }
232
232
  return new j(t[0], s, t[r + 1]);
233
- }, Fe = function(e, t) {
233
+ }, Ue = function(e, t) {
234
234
  return e || e === 0 ? t(e) : t;
235
235
  }, Dt = function(e, t, i) {
236
236
  return i < e ? e : i > t ? t : i;
237
237
  }, X = function(e, t) {
238
- return !K(e) || !(t = Hr.exec(e)) ? "" : t[1];
239
- }, ns = function(e, t, i) {
240
- return Fe(i, function(n) {
238
+ return !K(e) || !(t = Yr.exec(e)) ? "" : t[1];
239
+ }, rs = function(e, t, i) {
240
+ return Ue(i, function(n) {
241
241
  return Dt(e, t, n);
242
242
  });
243
- }, fi = [].slice, Zn = function(e, t) {
243
+ }, fi = [].slice, Kn = function(e, t) {
244
244
  return e && we(e) && "length" in e && (!t && !e.length || e.length - 1 in e && we(e[0])) && !e.nodeType && e !== xe;
245
- }, rs = function(e, t, i) {
245
+ }, ss = function(e, t, i) {
246
246
  return i === void 0 && (i = []), e.forEach(function(n) {
247
247
  var r;
248
- return K(n) && !t || Zn(n, 1) ? (r = i).push.apply(r, _e(n)) : i.push(n);
248
+ return K(n) && !t || Kn(n, 1) ? (r = i).push.apply(r, _e(n)) : i.push(n);
249
249
  }) || i;
250
250
  }, _e = function(e, t, i) {
251
- return z && !t && z.selector ? z.selector(e) : K(e) && !i && (ci || !ut()) ? fi.call((t || Si).querySelectorAll(e), 0) : q(e) ? rs(e, i) : Zn(e) ? fi.call(e, 0) : e ? [e] : [];
251
+ return z && !t && z.selector ? z.selector(e) : K(e) && !i && (ci || !ut()) ? fi.call((t || Si).querySelectorAll(e), 0) : q(e) ? ss(e, i) : Kn(e) ? fi.call(e, 0) : e ? [e] : [];
252
252
  }, mi = function(e) {
253
253
  return e = _e(e)[0] || Et("Invalid scope") || {}, function(t) {
254
254
  var i = e.current || e.nativeElement || e;
255
255
  return _e(t, i.querySelectorAll ? i : i === e ? Et("Invalid scope") || Si.createElement("div") : e);
256
256
  };
257
- }, Kn = function(e) {
257
+ }, Wn = function(e) {
258
258
  return e.sort(function() {
259
259
  return 0.5 - Math.random();
260
260
  });
261
- }, Wn = function(e) {
261
+ }, Xn = function(e) {
262
262
  if (G(e))
263
263
  return e;
264
264
  var t = we(e) ? e : {
@@ -277,8 +277,8 @@ var ue = {
277
277
  w < d && w--;
278
278
  }
279
279
  for (m = s[d] = [], _ = l ? Math.min(w, d) * c - 0.5 : n % w, y = w === ge ? 0 : l ? d * u / w - 0.5 : n / w | 0, E = 0, C = ge, P = 0; P < d; P++)
280
- x = P % w - _, b = y - (P / w | 0), m[P] = v = h ? Math.abs(h === "y" ? b : x) : Dn(x * x + b * b), v > E && (E = v), v < C && (C = v);
281
- n === "random" && Kn(m), m.max = E - C, m.min = C, m.v = d = (parseFloat(t.amount) || parseFloat(t.each) * (w > d ? d - 1 : h ? h === "y" ? d / w : w : Math.max(w, d / w)) || 0) * (n === "edges" ? -1 : 1), m.b = d < 0 ? r - d : r, m.u = X(t.amount || t.each) || 0, i = i && d < 0 ? sr(i) : i;
280
+ x = P % w - _, b = y - (P / w | 0), m[P] = v = h ? Math.abs(h === "y" ? b : x) : Rn(x * x + b * b), v > E && (E = v), v < C && (C = v);
281
+ n === "random" && Wn(m), m.max = E - C, m.min = C, m.v = d = (parseFloat(t.amount) || parseFloat(t.each) * (w > d ? d - 1 : h ? h === "y" ? d / w : w : Math.max(w, d / w)) || 0) * (n === "edges" ? -1 : 1), m.b = d < 0 ? r - d : r, m.u = X(t.amount || t.each) || 0, i = i && d < 0 ? ar(i) : i;
282
282
  }
283
283
  return d = (m[f] - m.min) / m.max || 0, H(m.b + (i ? i(d) : d) * m.v) + m.u;
284
284
  };
@@ -288,20 +288,20 @@ var ue = {
288
288
  var n = H(Math.round(parseFloat(i) / e) * e * t);
289
289
  return (n - n % 1) / t + (Te(i) ? 0 : X(i));
290
290
  };
291
- }, Xn = function(e, t) {
291
+ }, qn = function(e, t) {
292
292
  var i = q(e), n, r;
293
- return !i && we(e) && (n = i = e.radius || ge, e.values ? (e = _e(e.values), (r = !Te(e[0])) && (n *= n)) : e = gi(e.increment)), Fe(t, i ? G(e) ? function(s) {
293
+ return !i && we(e) && (n = i = e.radius || ge, e.values ? (e = _e(e.values), (r = !Te(e[0])) && (n *= n)) : e = gi(e.increment)), Ue(t, i ? G(e) ? function(s) {
294
294
  return r = e(s), Math.abs(r - s) <= n ? r : s;
295
295
  } : function(s) {
296
296
  for (var o = parseFloat(r ? s.x : s), l = parseFloat(r ? s.y : 0), h = ge, c = 0, u = e.length, f, g; u--; )
297
297
  r ? (f = e[u].x - o, g = e[u].y - l, f = f * f + g * g) : f = Math.abs(e[u] - o), f < h && (h = f, c = u);
298
298
  return c = !n || h <= n ? e[c] : s, r || c === s || Te(s) ? c : c + X(s);
299
299
  } : gi(e));
300
- }, qn = function(e, t, i, n) {
301
- return Fe(q(e) ? !t : i === !0 ? !!(i = 0) : !n, function() {
300
+ }, Qn = function(e, t, i, n) {
301
+ return Ue(q(e) ? !t : i === !0 ? !!(i = 0) : !n, function() {
302
302
  return q(e) ? e[~~(Math.random() * e.length)] : (i = i || 1e-5) && (n = 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 * n) / n;
303
303
  });
304
- }, ss = function() {
304
+ }, as = function() {
305
305
  for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
306
306
  t[i] = arguments[i];
307
307
  return function(n) {
@@ -309,36 +309,36 @@ var ue = {
309
309
  return s(r);
310
310
  }, n);
311
311
  };
312
- }, as = function(e, t) {
312
+ }, os = function(e, t) {
313
313
  return function(i) {
314
314
  return e(parseFloat(i)) + (t || X(i));
315
315
  };
316
- }, os = function(e, t, i) {
317
- return Jn(e, t, 0, 1, i);
318
- }, Qn = function(e, t, i) {
319
- return Fe(i, function(n) {
316
+ }, ls = function(e, t, i) {
317
+ return er(e, t, 0, 1, i);
318
+ }, Jn = function(e, t, i) {
319
+ return Ue(i, function(n) {
320
320
  return e[~~t(n)];
321
321
  });
322
- }, ls = function a(e, t, i) {
322
+ }, hs = function a(e, t, i) {
323
323
  var n = t - e;
324
- return q(e) ? Qn(e, a(0, e.length), t) : Fe(i, function(r) {
324
+ return q(e) ? Jn(e, a(0, e.length), t) : Ue(i, function(r) {
325
325
  return (n + (r - e) % n) % n + e;
326
326
  });
327
- }, hs = function a(e, t, i) {
327
+ }, cs = function a(e, t, i) {
328
328
  var n = t - e, r = n * 2;
329
- return q(e) ? Qn(e, a(0, e.length - 1), t) : Fe(i, function(s) {
329
+ return q(e) ? Jn(e, a(0, e.length - 1), t) : Ue(i, function(s) {
330
330
  return s = (r + (s - e) % r) % r || 0, e + (s > n ? r - s : s);
331
331
  });
332
332
  }, Pt = function(e) {
333
333
  for (var t = 0, i = "", n, r, s, o; ~(n = e.indexOf("random(", t)); )
334
- s = e.indexOf(")", n), o = e.charAt(n + 7) === "[", r = e.substr(n + 7, s - n - 7).match(o ? Ln : hi), i += e.substr(t, n - t) + qn(o ? r : +r[0], o ? 0 : +r[1], +r[2] || 1e-5), t = s + 1;
334
+ s = e.indexOf(")", n), o = e.charAt(n + 7) === "[", r = e.substr(n + 7, s - n - 7).match(o ? kn : hi), i += e.substr(t, n - t) + Qn(o ? r : +r[0], o ? 0 : +r[1], +r[2] || 1e-5), t = s + 1;
335
335
  return i + e.substr(t, e.length - t);
336
- }, Jn = function(e, t, i, n, r) {
336
+ }, er = function(e, t, i, n, r) {
337
337
  var s = t - e, o = n - i;
338
- return Fe(r, function(l) {
338
+ return Ue(r, function(l) {
339
339
  return i + ((l - e) / s * o || 0);
340
340
  });
341
- }, cs = function a(e, t, i, n) {
341
+ }, us = function a(e, t, i, n) {
342
342
  var r = isNaN(e + t) ? 0 : function(g) {
343
343
  return (1 - g) * e + g * t;
344
344
  };
@@ -361,13 +361,13 @@ var ue = {
361
361
  } else n || (e = lt(q(e) ? [] : {}, e));
362
362
  if (!c) {
363
363
  for (l in t)
364
- Li.call(o, e, l, "get", t[l]);
364
+ Oi.call(o, e, l, "get", t[l]);
365
365
  r = function(p) {
366
366
  return zi(p, o) || (s ? e.p : e);
367
367
  };
368
368
  }
369
369
  }
370
- return Fe(i, r);
370
+ return Ue(i, r);
371
371
  }, Ji = function(e, t, i) {
372
372
  var n = e.labels, r = ge, s, o, l;
373
373
  for (s in n)
@@ -376,10 +376,10 @@ var ue = {
376
376
  }, ce = function(e, t, i) {
377
377
  var n = e.vars, r = n[t], s = z, o = e._ctx, l, h, c;
378
378
  if (r)
379
- return l = n[t + "Params"], h = n.callbackScope || e, i && Ie.length && $t(), o && (z = o), c = l ? r.apply(h, l) : r.call(h), z = s, c;
379
+ return l = n[t + "Params"], h = n.callbackScope || e, i && Le.length && $t(), o && (z = o), c = l ? r.apply(h, l) : r.call(h), z = s, c;
380
380
  }, _t = function(e) {
381
381
  return ke(e), e.scrollTrigger && e.scrollTrigger.kill(!!W), e.progress() < 1 && ce(e, "onInterrupt"), e;
382
- }, tt, er = [], tr = function(e) {
382
+ }, tt, tr = [], ir = function(e) {
383
383
  if (e)
384
384
  if (e = !e.name && e.default || e, Ti() || e.headless) {
385
385
  var t = e.name, i = G(e), n = t && !i && e.init ? function() {
@@ -387,94 +387,94 @@ var ue = {
387
387
  } : e, r = {
388
388
  init: wt,
389
389
  render: zi,
390
- add: Li,
391
- kill: As,
392
- modifier: Cs,
390
+ add: Oi,
391
+ kill: Ts,
392
+ modifier: As,
393
393
  rawVars: 0
394
394
  }, s = {
395
395
  targetTest: 0,
396
396
  get: 0,
397
- getSetter: Fi,
397
+ getSetter: Ui,
398
398
  aliases: {},
399
399
  register: 0
400
400
  };
401
401
  if (ut(), e !== n) {
402
402
  if (le[t])
403
403
  return;
404
- pe(n, pe(Gt(e, r), s)), lt(n.prototype, lt(r, Gt(e, s))), le[n.prop = t] = n, e.targetTest && (Ft.push(n), Di[t] = 1), t = (t === "css" ? "CSS" : t.charAt(0).toUpperCase() + t.substr(1)) + "Plugin";
404
+ pe(n, pe(Gt(e, r), s)), lt(n.prototype, lt(r, Gt(e, s))), le[n.prop = t] = n, e.targetTest && (Ut.push(n), Di[t] = 1), t = (t === "css" ? "CSS" : t.charAt(0).toUpperCase() + t.substr(1)) + "Plugin";
405
405
  }
406
- Fn(t, n), e.register && e.register(ae, n, re);
406
+ zn(t, n), e.register && e.register(ae, n, re);
407
407
  } else
408
- er.push(e);
409
- }, L = 255, yt = {
410
- aqua: [0, L, L],
411
- lime: [0, L, 0],
408
+ tr.push(e);
409
+ }, O = 255, yt = {
410
+ aqua: [0, O, O],
411
+ lime: [0, O, 0],
412
412
  silver: [192, 192, 192],
413
413
  black: [0, 0, 0],
414
414
  maroon: [128, 0, 0],
415
415
  teal: [0, 128, 128],
416
- blue: [0, 0, L],
416
+ blue: [0, 0, O],
417
417
  navy: [0, 0, 128],
418
- white: [L, L, L],
418
+ white: [O, O, O],
419
419
  olive: [128, 128, 0],
420
- yellow: [L, L, 0],
421
- orange: [L, 165, 0],
420
+ yellow: [O, O, 0],
421
+ orange: [O, 165, 0],
422
422
  gray: [128, 128, 128],
423
423
  purple: [128, 0, 128],
424
424
  green: [0, 128, 0],
425
- red: [L, 0, 0],
426
- pink: [L, 192, 203],
427
- cyan: [0, L, L],
428
- transparent: [L, L, L, 0]
425
+ red: [O, 0, 0],
426
+ pink: [O, 192, 203],
427
+ cyan: [0, O, O],
428
+ transparent: [O, O, O, 0]
429
429
  }, Qt = function(e, t, i) {
430
- return e += e < 0 ? 1 : e > 1 ? -1 : 0, (e * 6 < 1 ? t + (i - t) * e * 6 : e < 0.5 ? i : e * 3 < 2 ? t + (i - t) * (2 / 3 - e) * 6 : t) * L + 0.5 | 0;
431
- }, ir = function(e, t, i) {
432
- var n = e ? Te(e) ? [e >> 16, e >> 8 & L, e & L] : 0 : yt.black, r, s, o, l, h, c, u, f, g, p;
430
+ return e += e < 0 ? 1 : e > 1 ? -1 : 0, (e * 6 < 1 ? t + (i - t) * e * 6 : e < 0.5 ? i : e * 3 < 2 ? t + (i - t) * (2 / 3 - e) * 6 : t) * O + 0.5 | 0;
431
+ }, nr = function(e, t, i) {
432
+ var n = e ? Te(e) ? [e >> 16, e >> 8 & O, e & O] : 0 : yt.black, r, s, o, l, h, c, u, f, g, p;
433
433
  if (!n) {
434
434
  if (e.substr(-1) === "," && (e = e.substr(0, e.length - 1)), yt[e])
435
435
  n = yt[e];
436
436
  else if (e.charAt(0) === "#") {
437
437
  if (e.length < 6 && (r = e.charAt(1), s = e.charAt(2), o = e.charAt(3), e = "#" + r + r + s + s + o + o + (e.length === 5 ? e.charAt(4) + e.charAt(4) : "")), e.length === 9)
438
- return n = parseInt(e.substr(1, 6), 16), [n >> 16, n >> 8 & L, n & L, parseInt(e.substr(7), 16) / 255];
439
- e = parseInt(e.substr(1), 16), n = [e >> 16, e >> 8 & L, e & L];
438
+ return n = parseInt(e.substr(1, 6), 16), [n >> 16, n >> 8 & O, n & O, parseInt(e.substr(7), 16) / 255];
439
+ e = parseInt(e.substr(1), 16), n = [e >> 16, e >> 8 & O, e & O];
440
440
  } else if (e.substr(0, 3) === "hsl") {
441
441
  if (n = p = e.match(hi), !t)
442
442
  l = +n[0] % 360 / 360, h = +n[1] / 100, c = +n[2] / 100, s = c <= 0.5 ? c * (h + 1) : c + h - c * h, r = c * 2 - s, n.length > 3 && (n[3] *= 1), n[0] = Qt(l + 1 / 3, r, s), n[1] = Qt(l, r, s), n[2] = Qt(l - 1 / 3, r, s);
443
443
  else if (~e.indexOf("="))
444
- return n = e.match(On), i && n.length < 4 && (n[3] = 1), n;
444
+ return n = e.match(Ln), i && n.length < 4 && (n[3] = 1), n;
445
445
  } else
446
446
  n = e.match(hi) || yt.transparent;
447
447
  n = n.map(Number);
448
448
  }
449
- return t && !p && (r = n[0] / L, s = n[1] / L, o = n[2] / L, u = Math.max(r, s, o), f = Math.min(r, s, o), c = (u + f) / 2, u === f ? l = h = 0 : (g = u - f, h = c > 0.5 ? g / (2 - u - f) : g / (u + f), l = u === r ? (s - o) / g + (s < o ? 6 : 0) : u === s ? (o - r) / g + 2 : (r - s) / g + 4, l *= 60), n[0] = ~~(l + 0.5), n[1] = ~~(h * 100 + 0.5), n[2] = ~~(c * 100 + 0.5)), i && n.length < 4 && (n[3] = 1), n;
450
- }, nr = function(e) {
449
+ return t && !p && (r = n[0] / O, s = n[1] / O, o = n[2] / O, u = Math.max(r, s, o), f = Math.min(r, s, o), c = (u + f) / 2, u === f ? l = h = 0 : (g = u - f, h = c > 0.5 ? g / (2 - u - f) : g / (u + f), l = u === r ? (s - o) / g + (s < o ? 6 : 0) : u === s ? (o - r) / g + 2 : (r - s) / g + 4, l *= 60), n[0] = ~~(l + 0.5), n[1] = ~~(h * 100 + 0.5), n[2] = ~~(c * 100 + 0.5)), i && n.length < 4 && (n[3] = 1), n;
450
+ }, rr = function(e) {
451
451
  var t = [], i = [], n = -1;
452
- return e.split(Le).forEach(function(r) {
452
+ return e.split(Oe).forEach(function(r) {
453
453
  var s = r.match(et) || [];
454
454
  t.push.apply(t, s), i.push(n += s.length + 1);
455
455
  }), t.c = i, t;
456
456
  }, en = function(e, t, i) {
457
- var n = "", r = (e + n).match(Le), s = t ? "hsla(" : "rgba(", o = 0, l, h, c, u;
457
+ var n = "", r = (e + n).match(Oe), s = t ? "hsla(" : "rgba(", o = 0, l, h, c, u;
458
458
  if (!r)
459
459
  return e;
460
460
  if (r = r.map(function(f) {
461
- return (f = ir(f, t, 1)) && s + (t ? f[0] + "," + f[1] + "%," + f[2] + "%," + f[3] : f.join(",")) + ")";
462
- }), i && (c = nr(e), l = i.c, l.join(n) !== c.c.join(n)))
463
- for (h = e.replace(Le, "1").split(et), u = h.length - 1; o < u; o++)
461
+ return (f = nr(f, t, 1)) && s + (t ? f[0] + "," + f[1] + "%," + f[2] + "%," + f[3] : f.join(",")) + ")";
462
+ }), i && (c = rr(e), l = i.c, l.join(n) !== c.c.join(n)))
463
+ for (h = e.replace(Oe, "1").split(et), u = h.length - 1; o < u; o++)
464
464
  n += h[o] + (~l.indexOf(o) ? r.shift() || s + "0,0,0,0)" : (c.length ? c : r.length ? r : i).shift());
465
465
  if (!h)
466
- for (h = e.split(Le), u = h.length - 1; o < u; o++)
466
+ for (h = e.split(Oe), u = h.length - 1; o < u; o++)
467
467
  n += h[o] + r[o];
468
468
  return n + h[u];
469
- }, Le = (function() {
469
+ }, Oe = (function() {
470
470
  var a = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b", e;
471
471
  for (e in yt)
472
472
  a += "|" + e + "\\b";
473
473
  return new RegExp(a + ")", "gi");
474
- })(), us = /hsl[a]?\(/, rr = function(e) {
474
+ })(), ds = /hsl[a]?\(/, sr = function(e) {
475
475
  var t = e.join(" "), i;
476
- if (Le.lastIndex = 0, Le.test(t))
477
- return i = us.test(t), e[1] = en(e[1], i), e[0] = en(e[0], i, nr(e[1])), !0;
476
+ if (Oe.lastIndex = 0, Oe.test(t))
477
+ return i = ds.test(t), e[1] = en(e[1], i), e[0] = en(e[0], i, rr(e[1])), !0;
478
478
  }, Ct, he = (function() {
479
479
  var a = Date.now, e = 500, t = 33, i = a(), n = i, r = 1e3 / 240, s = r, o = [], l, h, c, u, f, g, p = function d(m) {
480
480
  var _ = a() - n, y = m === !0, x, b, v, P;
@@ -492,7 +492,7 @@ var ue = {
492
492
  return f / (1e3 / (m || 60));
493
493
  },
494
494
  wake: function() {
495
- kn && (!ci && Ti() && (xe = ci = window, Si = xe.document || {}, de.gsap = ae, (xe.gsapVersions || (xe.gsapVersions = [])).push(ae.version), Un(Bt || xe.GreenSockGlobals || !xe.gsap && xe || {}), er.forEach(tr)), c = typeof requestAnimationFrame < "u" && requestAnimationFrame, l && u.sleep(), h = c || function(m) {
495
+ Fn && (!ci && Ti() && (xe = ci = window, Si = xe.document || {}, de.gsap = ae, (xe.gsapVersions || (xe.gsapVersions = [])).push(ae.version), Un(Bt || xe.GreenSockGlobals || !xe.gsap && xe || {}), tr.forEach(ir)), c = typeof requestAnimationFrame < "u" && requestAnimationFrame, l && u.sleep(), h = c || function(m) {
496
496
  return setTimeout(m, s - u.time * 1e3 + 1 | 0);
497
497
  }, Ct = 1, p(2));
498
498
  },
@@ -518,25 +518,25 @@ var ue = {
518
518
  }, u;
519
519
  })(), ut = function() {
520
520
  return !Ct && he.wake();
521
- }, M = {}, ds = /^[\d.\-M][\d.\-,\s]/, ps = /["']/g, fs = function(e) {
521
+ }, M = {}, ps = /^[\d.\-M][\d.\-,\s]/, fs = /["']/g, ms = function(e) {
522
522
  for (var t = {}, i = e.substr(1, e.length - 3).split(":"), n = i[0], r = 1, s = i.length, o, l, h; r < s; r++)
523
- l = i[r], o = r !== s - 1 ? l.lastIndexOf(",") : l.length, h = l.substr(0, o), t[n] = isNaN(h) ? h.replace(ps, "").trim() : +h, n = l.substr(o + 1).trim();
523
+ l = i[r], o = r !== s - 1 ? l.lastIndexOf(",") : l.length, h = l.substr(0, o), t[n] = isNaN(h) ? h.replace(fs, "").trim() : +h, n = l.substr(o + 1).trim();
524
524
  return t;
525
- }, ms = function(e) {
525
+ }, gs = function(e) {
526
526
  var t = e.indexOf("(") + 1, i = e.indexOf(")"), n = e.indexOf("(", t);
527
527
  return e.substring(t, ~n && n < i ? e.indexOf(")", i + 1) : i);
528
- }, gs = function(e) {
528
+ }, _s = function(e) {
529
529
  var t = (e + "").split("("), i = M[t[0]];
530
- return i && t.length > 1 && i.config ? i.config.apply(null, ~e.indexOf("{") ? [fs(t[1])] : ms(e).split(",").map($n)) : M._CE && ds.test(e) ? M._CE("", e) : i;
531
- }, sr = function(e) {
530
+ return i && t.length > 1 && i.config ? i.config.apply(null, ~e.indexOf("{") ? [ms(t[1])] : gs(e).split(",").map(Gn)) : M._CE && ps.test(e) ? M._CE("", e) : i;
531
+ }, ar = function(e) {
532
532
  return function(t) {
533
533
  return 1 - e(1 - t);
534
534
  };
535
- }, ar = function a(e, t) {
535
+ }, or = function a(e, t) {
536
536
  for (var i = e._first, n; i; )
537
537
  i instanceof J ? a(i, t) : i.vars.yoyoEase && (!i._yoyo || !i._repeat) && i._yoyo !== t && (i.timeline ? a(i.timeline, t) : (n = i._ease, i._ease = i._yEase, i._yEase = n, i._yoyo = t)), i = i._next;
538
538
  }, Ze = function(e, t) {
539
- return e && (G(e) ? e : M[e] || gs(e)) || t;
539
+ return e && (G(e) ? e : M[e] || _s(e)) || t;
540
540
  }, Xe = function(e, t, i, n) {
541
541
  i === void 0 && (i = function(l) {
542
542
  return 1 - t(1 - l);
@@ -553,16 +553,16 @@ var ue = {
553
553
  for (var l in r)
554
554
  M[s + (l === "easeIn" ? ".in" : l === "easeOut" ? ".out" : ".inOut")] = M[o + "." + l] = r[l];
555
555
  }), r;
556
- }, or = function(e) {
556
+ }, lr = function(e) {
557
557
  return function(t) {
558
558
  return t < 0.5 ? (1 - e(1 - t * 2)) / 2 : 0.5 + e((t - 0.5) * 2) / 2;
559
559
  };
560
560
  }, Jt = function a(e, t, i) {
561
561
  var n = t >= 1 ? t : 1, r = (i || (e ? 0.3 : 0.45)) / (t < 1 ? t : 1), s = r / li * (Math.asin(1 / n) || 0), o = function(c) {
562
- return c === 1 ? 1 : n * Math.pow(2, -10 * c) * jr((c - s) * r) + 1;
562
+ return c === 1 ? 1 : n * Math.pow(2, -10 * c) * Hr((c - s) * r) + 1;
563
563
  }, l = e === "out" ? o : e === "in" ? function(h) {
564
564
  return 1 - o(1 - h);
565
- } : or(o);
565
+ } : lr(o);
566
566
  return r = li / r, l.config = function(h, c) {
567
567
  return a(e, h, c);
568
568
  }, l;
@@ -572,7 +572,7 @@ var ue = {
572
572
  return s ? --s * s * ((t + 1) * s + t) + 1 : 0;
573
573
  }, n = e === "out" ? i : e === "in" ? function(r) {
574
574
  return 1 - i(1 - r);
575
- } : or(i);
575
+ } : lr(i);
576
576
  return n.config = function(r) {
577
577
  return a(e, r);
578
578
  }, n;
@@ -603,10 +603,10 @@ Xe("Expo", function(a) {
603
603
  return Math.pow(2, 10 * (a - 1)) * a + a * a * a * a * a * a * (1 - a);
604
604
  });
605
605
  Xe("Circ", function(a) {
606
- return -(Dn(1 - a * a) - 1);
606
+ return -(Rn(1 - a * a) - 1);
607
607
  });
608
608
  Xe("Sine", function(a) {
609
- return a === 1 ? 1 : -Vr(a * $r) + 1;
609
+ return a === 1 ? 1 : -jr(a * Gr) + 1;
610
610
  });
611
611
  Xe("Back", ei("in"), ei("out"), ei());
612
612
  M.SteppedEase = M.steps = de.SteppedEase = {
@@ -622,8 +622,8 @@ ot.ease = M["quad.out"];
622
622
  ne("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt", function(a) {
623
623
  return Ri += a + "," + a + "Params,";
624
624
  });
625
- var lr = function(e, t) {
626
- this.id = Gr++, e._gsap = this, this.target = e, this.harness = t, this.get = t ? t.get : Nn, this.set = t ? t.getSetter : Fi;
625
+ var hr = function(e, t) {
626
+ this.id = Vr++, e._gsap = this, this.target = e, this.harness = t, this.get = t ? t.get : Bn, this.set = t ? t.getSetter : Ui;
627
627
  }, At = /* @__PURE__ */ (function() {
628
628
  function a(t) {
629
629
  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, ct(this, +t.duration, 1, 1), this.data = t.data, z && (this._ctx = z, z.data.push(this)), Ct || he.wake();
@@ -640,11 +640,11 @@ var lr = function(e, t) {
640
640
  return this._tTime;
641
641
  var r = this._dp;
642
642
  if (r && r.smoothChildTiming && this._ts) {
643
- for (Wt(this, i), !r._dp || r.parent || jn(r, this); r && r.parent; )
643
+ for (Wt(this, i), !r._dp || r.parent || Hn(r, this); r && r.parent; )
644
644
  r.parent._time !== r._start + (r._ts >= 0 ? r._tTime / r._ts : (r.totalDuration() - r._tTime) / -r._ts) && r.totalTime(r._tTime, !0), r = r.parent;
645
645
  !this.parent && this._dp.autoRemoveChildren && (this._ts > 0 && i < this._tDur || this._ts < 0 && i > 0 || !this._tDur && !i) && be(this._dp, this, this._start - this._delay);
646
646
  }
647
- return (this._tTime !== i || !this._dur && !n || this._initted && Math.abs(this._zTime) === k || !i && !this._initted && (this.add || this._ptLookup)) && (this._ts || (this._pTime = i), Bn(this, i, n)), this;
647
+ return (this._tTime !== i || !this._dur && !n || this._initted && Math.abs(this._zTime) === k || !i && !this._initted && (this.add || this._ptLookup)) && (this._ts || (this._pTime = i), $n(this, i, n)), this;
648
648
  }, e.time = function(i, n) {
649
649
  return arguments.length ? this.totalTime(Math.min(this.totalDuration(), i + qi(this)) % (this._dur + this._rDelay) || (i ? this._dur : 0), n) : this._time;
650
650
  }, e.totalProgress = function(i, n) {
@@ -660,7 +660,7 @@ var lr = function(e, t) {
660
660
  if (this._rts === i)
661
661
  return this;
662
662
  var r = this.parent && this._ts ? Vt(this.parent._time, this) : this._tTime;
663
- return this._rts = +i || 0, this._ts = this._ps || i === -k ? 0 : this._rts, this.totalTime(Dt(-Math.abs(this._delay), this.totalDuration(), r), n !== !1), Kt(this), qr(this);
663
+ return this._rts = +i || 0, this._ts = this._ps || i === -k ? 0 : this._rts, this.totalTime(Dt(-Math.abs(this._delay), this.totalDuration(), r), n !== !1), Kt(this), Qr(this);
664
664
  }, e.paused = function(i) {
665
665
  return arguments.length ? (this._ps !== i && (this._ps = i, i ? (this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()), this._ts = this._act = 0) : (ut(), this._ts = this._rts, this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && Math.abs(this._zTime) !== k && (this._tTime -= k)))), this) : this._ps;
666
666
  }, e.startTime = function(i) {
@@ -676,9 +676,9 @@ var lr = function(e, t) {
676
676
  var n = this.parent || this._dp;
677
677
  return n ? i && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ? Vt(n.rawTime(i), this) : this._tTime : this._tTime;
678
678
  }, e.revert = function(i) {
679
- i === void 0 && (i = Zr);
679
+ i === void 0 && (i = Kr);
680
680
  var n = W;
681
- return W = i, Ii(this) && (this.timeline && this.timeline.revert(i), this.totalTime(-0.01, i.suppressEvents)), this.data !== "nested" && i.kill !== !1 && this.kill(), W = n, this;
681
+ return W = i, Li(this) && (this.timeline && this.timeline.revert(i), this.totalTime(-0.01, i.suppressEvents)), this.data !== "nested" && i.kill !== !1 && this.kill(), W = n, this;
682
682
  }, e.globalTime = function(i) {
683
683
  for (var n = this, r = arguments.length ? i : n.rawTime(); n; )
684
684
  r = n._start + r / (Math.abs(n._ts) || 1), n = n._dp;
@@ -718,7 +718,7 @@ var lr = function(e, t) {
718
718
  }, e.then = function(i) {
719
719
  var n = this;
720
720
  return new Promise(function(r) {
721
- var s = G(i) ? i : Gn, o = function() {
721
+ var s = G(i) ? i : Vn, o = function() {
722
722
  var h = n.then;
723
723
  n.then = null, G(s) && (s = s(n)) && (s.then || s === n) && (n.then = h), r(s), n.then = h;
724
724
  };
@@ -749,10 +749,10 @@ pe(At.prototype, {
749
749
  _rts: 1
750
750
  });
751
751
  var J = /* @__PURE__ */ (function(a) {
752
- Mn(e, a);
752
+ Dn(e, a);
753
753
  function e(i, n) {
754
754
  var r;
755
- return i === void 0 && (i = {}), r = a.call(this, i) || this, r.labels = {}, r.smoothChildTiming = !!i.smoothChildTiming, r.autoRemoveChildren = !!i.autoRemoveChildren, r._sort = ie(i.sortChildren), N && be(i.parent || N, Ce(r), n), i.reversed && r.reverse(), i.paused && r.paused(!0), i.scrollTrigger && Hn(Ce(r), i.scrollTrigger), r;
755
+ return i === void 0 && (i = {}), r = a.call(this, i) || this, r.labels = {}, r.smoothChildTiming = !!i.smoothChildTiming, r.autoRemoveChildren = !!i.autoRemoveChildren, r._sort = ie(i.sortChildren), N && be(i.parent || N, Ce(r), n), i.reversed && r.reverse(), i.paused && r.paused(!0), i.scrollTrigger && Yn(Ce(r), i.scrollTrigger), r;
756
756
  }
757
757
  var t = e.prototype;
758
758
  return t.to = function(n, r, s) {
@@ -783,10 +783,10 @@ var J = /* @__PURE__ */ (function(a) {
783
783
  return this;
784
784
  if (h = this._dur, l = this._tDur, w && (this._lock = 2, o = C ? h : -1e-4, this.render(o, !0), this.vars.repeatRefresh && !E && this.invalidate()), this._lock = 0, !this._ts && !_)
785
785
  return this;
786
- ar(this, E);
786
+ or(this, E);
787
787
  }
788
788
  }
789
- if (this._hasPause && !this._forcing && this._lock < 2 && (y = ts(this, H(o), H(f)), y && (c -= f - (f = y._start))), this._tTime = c, this._time = f, this._act = !x, this._initted || (this._onUpdate = this.vars.onUpdate, this._initted = 1, this._zTime = n, o = 0), !o && c && !r && !v && (ce(this, "onStart"), this._tTime !== c))
789
+ if (this._hasPause && !this._forcing && this._lock < 2 && (y = is(this, H(o), H(f)), y && (c -= f - (f = y._start))), this._tTime = c, this._time = f, this._act = !x, this._initted || (this._onUpdate = this.vars.onUpdate, this._initted = 1, this._zTime = n, o = 0), !o && c && !r && !v && (ce(this, "onStart"), this._tTime !== c))
790
790
  return this;
791
791
  if (f >= o && n >= 0)
792
792
  for (g = this._first; g; ) {
@@ -806,7 +806,7 @@ var J = /* @__PURE__ */ (function(a) {
806
806
  if (p = g._prev, (g._act || S <= g._end) && g._ts && y !== g) {
807
807
  if (g.parent !== this)
808
808
  return this.render(n, r, s);
809
- if (g.render(g._ts > 0 ? (S - g._start) * g._ts : (g._dirty ? g.totalDuration() : g._tDur) + (S - g._start) * g._ts, r, s || W && Ii(g)), f !== this._time || !this._ts && !_) {
809
+ if (g.render(g._ts > 0 ? (S - g._start) * g._ts : (g._dirty ? g.totalDuration() : g._tDur) + (S - g._start) * g._ts, r, s || W && Li(g)), f !== this._time || !this._ts && !_) {
810
810
  y = 0, p && (c += this._zTime = S ? -k : k);
811
811
  break;
812
812
  }
@@ -864,7 +864,7 @@ var J = /* @__PURE__ */ (function(a) {
864
864
  return this;
865
865
  }, t.getTweensOf = function(n, r) {
866
866
  for (var s = [], o = _e(n), l = this._first, h = Te(r), c; l; )
867
- l instanceof j ? Kr(l._targets, o) && (h ? (!Me || l._initted && l._ts) && l.globalTime(0) <= r && l.globalTime(l.totalDuration()) > r : !r || l.isActive()) && s.push(l) : (c = l.getTweensOf(o, r)).length && s.push.apply(s, c), l = l._next;
867
+ l instanceof j ? Wr(l._targets, o) && (h ? (!Me || l._initted && l._ts) && l.globalTime(0) <= r && l.globalTime(l.totalDuration()) > r : !r || l.isActive()) && s.push(l) : (c = l.getTweensOf(o, r)).length && s.push.apply(s, c), l = l._next;
868
868
  return s;
869
869
  }, t.tweenTo = function(n, r) {
870
870
  r = r || {};
@@ -927,7 +927,7 @@ var J = /* @__PURE__ */ (function(a) {
927
927
  }
928
928
  return s._tDur;
929
929
  }, e.updateRoot = function(n) {
930
- if (N._ts && (Bn(N, Vt(n, N)), zn = he.frame), he.frame >= Wi) {
930
+ if (N._ts && ($n(N, Vt(n, N)), Nn = he.frame), he.frame >= Wi) {
931
931
  Wi += ue.autoSleep || 120;
932
932
  var r = N._first;
933
933
  if ((!r || !r._ts) && ue.autoSleep && he._listeners.length < 2) {
@@ -943,8 +943,8 @@ pe(J.prototype, {
943
943
  _hasPause: 0,
944
944
  _forcing: 0
945
945
  });
946
- var _s = function(e, t, i, n, r, s, o) {
947
- var l = new re(this._pt, e, t, 0, 1, fr, null, r), h = 0, c = 0, u, f, g, p, d, m, _, y;
946
+ var ys = function(e, t, i, n, r, s, o) {
947
+ var l = new re(this._pt, e, t, 0, 1, mr, null, r), h = 0, c = 0, u, f, g, p, d, m, _, y;
948
948
  for (l.b = i, l.e = n, i += "", n += "", (_ = ~n.indexOf("random(")) && (n = Pt(n)), s && (y = [i, n], s(y, e, t), i = y[0], n = y[1]), f = i.match(Xt) || []; u = Xt.exec(n); )
949
949
  p = u[0], d = n.substring(h, u.index), g ? g = (g + 1) % 5 : d.substr(-5) === "rgba(" && (g = 1), p !== f[c++] && (m = parseFloat(f[c - 1]) || 0, l._pt = {
950
950
  _next: l._pt,
@@ -954,29 +954,29 @@ var _s = function(e, t, i, n, r, s, o) {
954
954
  c: p.charAt(1) === "=" ? rt(m, p) - m : parseFloat(p) - m,
955
955
  m: g && g < 4 ? Math.round : 0
956
956
  }, h = Xt.lastIndex);
957
- return l.c = h < n.length ? n.substring(h, n.length) : "", l.fp = o, (In.test(n) || _) && (l.e = 0), this._pt = l, l;
958
- }, Li = function(e, t, i, n, r, s, o, l, h, c) {
957
+ return l.c = h < n.length ? n.substring(h, n.length) : "", l.fp = o, (On.test(n) || _) && (l.e = 0), this._pt = l, l;
958
+ }, Oi = function(e, t, i, n, r, s, o, l, h, c) {
959
959
  G(n) && (n = n(r || 0, e, s));
960
- var u = e[t], f = i !== "get" ? i : G(u) ? h ? e[t.indexOf("set") || !G(e["get" + t.substr(3)]) ? t : "get" + t.substr(3)](h) : e[t]() : u, g = G(u) ? h ? Es : dr : Ui, p;
960
+ var u = e[t], f = i !== "get" ? i : G(u) ? h ? e[t.indexOf("set") || !G(e["get" + t.substr(3)]) ? t : "get" + t.substr(3)](h) : e[t]() : u, g = G(u) ? h ? ws : pr : Fi, p;
961
961
  if (K(n) && (~n.indexOf("random(") && (n = Pt(n)), n.charAt(1) === "=" && (p = rt(f, n) + (X(f) || 0), (p || p === 0) && (n = p))), !c || f !== n || _i)
962
- return !isNaN(f * n) && n !== "" ? (p = new re(this._pt, e, t, +f || 0, n - (f || 0), typeof u == "boolean" ? Ps : pr, 0, g), h && (p.fp = h), o && p.modifier(o, this, e), this._pt = p) : (!u && !(t in e) && Mi(t, n), _s.call(this, e, t, f, n, g, l || ue.stringFilter, h));
963
- }, ys = function(e, t, i, n, r) {
964
- if (G(e) && (e = vt(e, r, t, i, n)), !we(e) || e.style && e.nodeType || q(e) || Rn(e))
962
+ return !isNaN(f * n) && n !== "" ? (p = new re(this._pt, e, t, +f || 0, n - (f || 0), typeof u == "boolean" ? Cs : fr, 0, g), h && (p.fp = h), o && p.modifier(o, this, e), this._pt = p) : (!u && !(t in e) && Mi(t, n), ys.call(this, e, t, f, n, g, l || ue.stringFilter, h));
963
+ }, xs = function(e, t, i, n, r) {
964
+ if (G(e) && (e = vt(e, r, t, i, n)), !we(e) || e.style && e.nodeType || q(e) || In(e))
965
965
  return K(e) ? vt(e, r, t, i, n) : e;
966
966
  var s = {}, o;
967
967
  for (o in e)
968
968
  s[o] = vt(e[o], r, t, i, n);
969
969
  return s;
970
- }, hr = function(e, t, i, n, r, s) {
970
+ }, cr = function(e, t, i, n, r, s) {
971
971
  var o, l, h, c;
972
- if (le[e] && (o = new le[e]()).init(r, o.rawVars ? t[e] : ys(t[e], n, r, s, i), i, n, s) !== !1 && (i._pt = l = new re(i._pt, r, e, 0, 1, o.render, o, 0, o.priority), i !== tt))
972
+ if (le[e] && (o = new le[e]()).init(r, o.rawVars ? t[e] : xs(t[e], n, r, s, i), i, n, s) !== !1 && (i._pt = l = new re(i._pt, r, e, 0, 1, o.render, o, 0, o.priority), i !== tt))
973
973
  for (h = i._ptLookup[i._targets.indexOf(r)], c = o._props.length; c--; )
974
974
  h[o._props[c]] = l;
975
975
  return o;
976
976
  }, Me, _i, ki = function a(e, t, i) {
977
- var n = e.vars, r = n.ease, s = n.startAt, o = n.immediateRender, l = n.lazy, h = n.onUpdate, c = n.runBackwards, u = n.yoyoEase, f = n.keyframes, g = n.autoRevert, p = e._dur, d = e._startAt, m = e._targets, _ = e.parent, y = _ && _.data === "nested" ? _.vars.targets : m, x = e._overwrite === "auto" && !Ci, b = e.timeline, v, P, E, C, w, S, D, T, R, O, $, F, U;
978
- if (b && (!f || !r) && (r = "none"), e._ease = Ze(r, ot.ease), e._yEase = u ? sr(Ze(u === !0 ? r : u, ot.ease)) : 0, u && e._yoyo && !e._repeat && (u = e._yEase, e._yEase = e._ease, e._ease = u), e._from = !b && !!n.runBackwards, !b || f && !n.stagger) {
979
- if (T = m[0] ? He(m[0]).harness : 0, F = T && n[T.prop], v = Gt(n, Di), d && (d._zTime < 0 && d.progress(1), t < 0 && c && o && !g ? d.render(-1, !0) : d.revert(c && p ? Ut : Yr), d._lazy = 0), s) {
977
+ var n = e.vars, r = n.ease, s = n.startAt, o = n.immediateRender, l = n.lazy, h = n.onUpdate, c = n.runBackwards, u = n.yoyoEase, f = n.keyframes, g = n.autoRevert, p = e._dur, d = e._startAt, m = e._targets, _ = e.parent, y = _ && _.data === "nested" ? _.vars.targets : m, x = e._overwrite === "auto" && !Ci, b = e.timeline, v, P, E, C, w, S, D, T, R, I, $, U, F;
978
+ if (b && (!f || !r) && (r = "none"), e._ease = Ze(r, ot.ease), e._yEase = u ? ar(Ze(u === !0 ? r : u, ot.ease)) : 0, u && e._yoyo && !e._repeat && (u = e._yEase, e._yEase = e._ease, e._ease = u), e._from = !b && !!n.runBackwards, !b || f && !n.stagger) {
979
+ if (T = m[0] ? He(m[0]).harness : 0, U = T && n[T.prop], v = Gt(n, Di), d && (d._zTime < 0 && d.progress(1), t < 0 && c && o && !g ? d.render(-1, !0) : d.revert(c && p ? Ft : Zr), d._lazy = 0), s) {
980
980
  if (ke(e._startAt = j.set(m, pe({
981
981
  data: "isStart",
982
982
  overwrite: !1,
@@ -989,7 +989,7 @@ var _s = function(e, t, i, n, r, s, o) {
989
989
  return ce(e, "onUpdate");
990
990
  },
991
991
  stagger: 0
992
- }, s))), e._startAt._dp = 0, e._startAt._sat = e, t < 0 && (W || !o && !g) && e._startAt.revert(Ut), o && p && t <= 0 && i <= 0) {
992
+ }, s))), e._startAt._dp = 0, e._startAt._sat = e, t < 0 && (W || !o && !g) && e._startAt.revert(Ft), o && p && t <= 0 && i <= 0) {
993
993
  t && (e._zTime = t);
994
994
  return;
995
995
  }
@@ -1004,23 +1004,23 @@ var _s = function(e, t, i, n, r, s, o) {
1004
1004
  stagger: 0,
1005
1005
  parent: _
1006
1006
  //ensures that nested tweens that had a stagger are handled properly, like gsap.from(".class", {y: gsap.utils.wrap([-100,100]), stagger: 0.5})
1007
- }, v), F && (E[T.prop] = F), ke(e._startAt = j.set(m, E)), e._startAt._dp = 0, e._startAt._sat = e, t < 0 && (W ? e._startAt.revert(Ut) : e._startAt.render(-1, !0)), e._zTime = t, !o)
1007
+ }, v), U && (E[T.prop] = U), ke(e._startAt = j.set(m, E)), e._startAt._dp = 0, e._startAt._sat = e, t < 0 && (W ? e._startAt.revert(Ft) : e._startAt.render(-1, !0)), e._zTime = t, !o)
1008
1008
  a(e._startAt, k, k);
1009
1009
  else if (!t)
1010
1010
  return;
1011
1011
  }
1012
1012
  for (e._pt = e._ptCache = 0, l = p && ie(l) || l && !p, P = 0; P < m.length; P++) {
1013
- if (w = m[P], D = w._gsap || Oi(m)[P]._gsap, e._ptLookup[P] = O = {}, ui[D.id] && Ie.length && $t(), $ = y === m ? P : y.indexOf(w), T && (R = new T()).init(w, F || v, e, $, y) !== !1 && (e._pt = C = new re(e._pt, w, R.name, 0, 1, R.render, R, 0, R.priority), R._props.forEach(function(ee) {
1014
- O[ee] = C;
1015
- }), R.priority && (S = 1)), !T || F)
1013
+ if (w = m[P], D = w._gsap || Ii(m)[P]._gsap, e._ptLookup[P] = I = {}, ui[D.id] && Le.length && $t(), $ = y === m ? P : y.indexOf(w), T && (R = new T()).init(w, U || v, e, $, y) !== !1 && (e._pt = C = new re(e._pt, w, R.name, 0, 1, R.render, R, 0, R.priority), R._props.forEach(function(ee) {
1014
+ I[ee] = C;
1015
+ }), R.priority && (S = 1)), !T || U)
1016
1016
  for (E in v)
1017
- le[E] && (R = hr(E, v, e, $, w, y)) ? R.priority && (S = 1) : O[E] = C = Li.call(e, w, E, "get", v[E], $, y, 0, n.stringFilter);
1018
- e._op && e._op[P] && e.kill(w, e._op[P]), x && e._pt && (Me = e, N.killTweensOf(w, O, e.globalTime(t)), U = !e.parent, Me = 0), e._pt && l && (ui[D.id] = 1);
1017
+ le[E] && (R = cr(E, v, e, $, w, y)) ? R.priority && (S = 1) : I[E] = C = Oi.call(e, w, E, "get", v[E], $, y, 0, n.stringFilter);
1018
+ e._op && e._op[P] && e.kill(w, e._op[P]), x && e._pt && (Me = e, N.killTweensOf(w, I, e.globalTime(t)), F = !e.parent, Me = 0), e._pt && l && (ui[D.id] = 1);
1019
1019
  }
1020
- S && mr(e), e._onInit && e._onInit(e);
1020
+ S && gr(e), e._onInit && e._onInit(e);
1021
1021
  }
1022
- e._onUpdate = h, e._initted = (!e._op || e._pt) && !U, f && t <= 0 && b.render(ge, !0, !0);
1023
- }, xs = function(e, t, i, n, r, s, o, l) {
1022
+ e._onUpdate = h, e._initted = (!e._op || e._pt) && !F, f && t <= 0 && b.render(ge, !0, !0);
1023
+ }, bs = function(e, t, i, n, r, s, o, l) {
1024
1024
  var h = (e._pt && e._ptCache || (e._ptCache = {}))[t], c, u, f, g;
1025
1025
  if (!h)
1026
1026
  for (h = e._ptCache[t] = [], f = e._ptLookup, g = e._targets.length; g--; ) {
@@ -1033,7 +1033,7 @@ var _s = function(e, t, i, n, r, s, o) {
1033
1033
  }
1034
1034
  for (g = h.length; g--; )
1035
1035
  u = h[g], c = u._pt || u, c.s = (n || n === 0) && !r ? n : c.s + (n || 0) + s * c.c, c.c = i - c.s, u.e && (u.e = V(i) + X(u.e)), u.b && (u.b = c.s + X(u.b));
1036
- }, bs = function(e, t) {
1036
+ }, vs = function(e, t) {
1037
1037
  var i = e[0] ? He(e[0]).harness : 0, n = i && i.aliases, r, s, o, l;
1038
1038
  if (!n)
1039
1039
  return t;
@@ -1043,7 +1043,7 @@ var _s = function(e, t, i, n, r, s, o) {
1043
1043
  for (l = n[s].split(","), o = l.length; o--; )
1044
1044
  r[l[o]] = r[s];
1045
1045
  return r;
1046
- }, vs = function(e, t, i, n) {
1046
+ }, Es = function(e, t, i, n) {
1047
1047
  var r = t.ease || n || "power1.inOut", s, o;
1048
1048
  if (q(t))
1049
1049
  o = i[e] || (i[e] = []), t.forEach(function(l, h) {
@@ -1062,49 +1062,49 @@ var _s = function(e, t, i, n, r, s, o) {
1062
1062
  });
1063
1063
  }, vt = function(e, t, i, n, r) {
1064
1064
  return G(e) ? e.call(t, i, n, r) : K(e) && ~e.indexOf("random(") ? Pt(e) : e;
1065
- }, cr = Ri + "repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert", ur = {};
1066
- ne(cr + ",id,stagger,delay,duration,paused,scrollTrigger", function(a) {
1067
- return ur[a] = 1;
1065
+ }, ur = Ri + "repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert", dr = {};
1066
+ ne(ur + ",id,stagger,delay,duration,paused,scrollTrigger", function(a) {
1067
+ return dr[a] = 1;
1068
1068
  });
1069
1069
  var j = /* @__PURE__ */ (function(a) {
1070
- Mn(e, a);
1070
+ Dn(e, a);
1071
1071
  function e(i, n, r, s) {
1072
1072
  var o;
1073
1073
  typeof n == "number" && (r.duration = n, n = r, r = null), o = a.call(this, s ? n : xt(n)) || this;
1074
- var l = o.vars, h = l.duration, c = l.delay, u = l.immediateRender, f = l.stagger, g = l.overwrite, p = l.keyframes, d = l.defaults, m = l.scrollTrigger, _ = l.yoyoEase, y = n.parent || N, x = (q(i) || Rn(i) ? Te(i[0]) : "length" in n) ? [i] : _e(i), b, v, P, E, C, w, S, D;
1075
- if (o._targets = x.length ? Oi(x) : Et("GSAP target " + i + " not found. https://gsap.com", !ue.nullTargetWarn) || [], o._ptLookup = [], o._overwrite = g, p || f || Rt(h) || Rt(c)) {
1074
+ var l = o.vars, h = l.duration, c = l.delay, u = l.immediateRender, f = l.stagger, g = l.overwrite, p = l.keyframes, d = l.defaults, m = l.scrollTrigger, _ = l.yoyoEase, y = n.parent || N, x = (q(i) || In(i) ? Te(i[0]) : "length" in n) ? [i] : _e(i), b, v, P, E, C, w, S, D;
1075
+ if (o._targets = x.length ? Ii(x) : Et("GSAP target " + i + " not found. https://gsap.com", !ue.nullTargetWarn) || [], o._ptLookup = [], o._overwrite = g, p || f || Rt(h) || Rt(c)) {
1076
1076
  if (n = o.vars, b = o.timeline = new J({
1077
1077
  data: "nested",
1078
1078
  defaults: d || {},
1079
1079
  targets: y && y.data === "nested" ? y.vars.targets : x
1080
1080
  }), b.kill(), b.parent = b._dp = Ce(o), b._start = 0, f || Rt(h) || Rt(c)) {
1081
- if (E = x.length, S = f && Wn(f), we(f))
1081
+ if (E = x.length, S = f && Xn(f), we(f))
1082
1082
  for (C in f)
1083
- ~cr.indexOf(C) && (D || (D = {}), D[C] = f[C]);
1083
+ ~ur.indexOf(C) && (D || (D = {}), D[C] = f[C]);
1084
1084
  for (v = 0; v < E; v++)
1085
- P = Gt(n, ur), P.stagger = 0, _ && (P.yoyoEase = _), D && lt(P, D), w = x[v], P.duration = +vt(h, Ce(o), v, w, x), P.delay = (+vt(c, Ce(o), v, w, x) || 0) - o._delay, !f && E === 1 && P.delay && (o._delay = c = P.delay, o._start += c, P.delay = 0), b.to(w, P, S ? S(v, w, x) : 0), b._ease = M.none;
1085
+ P = Gt(n, dr), P.stagger = 0, _ && (P.yoyoEase = _), D && lt(P, D), w = x[v], P.duration = +vt(h, Ce(o), v, w, x), P.delay = (+vt(c, Ce(o), v, w, x) || 0) - o._delay, !f && E === 1 && P.delay && (o._delay = c = P.delay, o._start += c, P.delay = 0), b.to(w, P, S ? S(v, w, x) : 0), b._ease = M.none;
1086
1086
  b.duration() ? h = c = 0 : o.timeline = 0;
1087
1087
  } else if (p) {
1088
1088
  xt(pe(b.vars.defaults, {
1089
1089
  ease: "none"
1090
1090
  })), b._ease = Ze(p.ease || n.ease || "none");
1091
- var T = 0, R, O, $;
1091
+ var T = 0, R, I, $;
1092
1092
  if (q(p))
1093
- p.forEach(function(F) {
1094
- return b.to(x, F, ">");
1093
+ p.forEach(function(U) {
1094
+ return b.to(x, U, ">");
1095
1095
  }), b.duration();
1096
1096
  else {
1097
1097
  P = {};
1098
1098
  for (C in p)
1099
- C === "ease" || C === "easeEach" || vs(C, p[C], P, p.easeEach);
1099
+ C === "ease" || C === "easeEach" || Es(C, p[C], P, p.easeEach);
1100
1100
  for (C in P)
1101
- for (R = P[C].sort(function(F, U) {
1102
- return F.t - U.t;
1101
+ for (R = P[C].sort(function(U, F) {
1102
+ return U.t - F.t;
1103
1103
  }), T = 0, v = 0; v < R.length; v++)
1104
- O = R[v], $ = {
1105
- ease: O.e,
1106
- duration: (O.t - (v ? R[v - 1].t : 0)) / 100 * h
1107
- }, $[C] = O.v, b.to(x, $, T), T += $.duration;
1104
+ I = R[v], $ = {
1105
+ ease: I.e,
1106
+ duration: (I.t - (v ? R[v - 1].t : 0)) / 100 * h
1107
+ }, $[C] = I.v, b.to(x, $, T), T += $.duration;
1108
1108
  b.duration() < h && b.to({}, {
1109
1109
  duration: h - b.duration()
1110
1110
  });
@@ -1113,23 +1113,23 @@ var j = /* @__PURE__ */ (function(a) {
1113
1113
  h || o.duration(h = b.duration());
1114
1114
  } else
1115
1115
  o.timeline = 0;
1116
- return g === !0 && !Ci && (Me = Ce(o), N.killTweensOf(x), Me = 0), be(y, Ce(o), r), n.reversed && o.reverse(), n.paused && o.paused(!0), (u || !h && !p && o._start === H(y._time) && ie(u) && Qr(Ce(o)) && y.data !== "nested") && (o._tTime = -k, o.render(Math.max(0, -c) || 0)), m && Hn(Ce(o), m), o;
1116
+ return g === !0 && !Ci && (Me = Ce(o), N.killTweensOf(x), Me = 0), be(y, Ce(o), r), n.reversed && o.reverse(), n.paused && o.paused(!0), (u || !h && !p && o._start === H(y._time) && ie(u) && Jr(Ce(o)) && y.data !== "nested") && (o._tTime = -k, o.render(Math.max(0, -c) || 0)), m && Yn(Ce(o), m), o;
1117
1117
  }
1118
1118
  var t = e.prototype;
1119
1119
  return t.render = function(n, r, s) {
1120
1120
  var o = this._time, l = this._tDur, h = this._dur, c = n < 0, u = n > l - k && !c ? l : n < k ? 0 : n, f, g, p, d, m, _, y, x, b;
1121
1121
  if (!h)
1122
- es(this, n, r, s);
1122
+ ts(this, n, r, s);
1123
1123
  else if (u !== this._tTime || !n || s || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== c || this._lazy) {
1124
1124
  if (f = u, x = this.timeline, this._repeat) {
1125
1125
  if (d = h + this._rDelay, this._repeat < -1 && c)
1126
1126
  return this.totalTime(d * 100 + n, r, s);
1127
1127
  if (f = H(u % d), u === l ? (p = this._repeat, f = h) : (m = H(u / d), p = ~~m, p && p === m ? (f = h, p--) : f > h && (f = h)), _ = this._yoyo && p & 1, _ && (b = this._yEase, f = h - f), m = ht(this._tTime, d), f === o && !s && this._initted && p === m)
1128
1128
  return this._tTime = u, this;
1129
- p !== m && (x && this._yEase && ar(x, _), this.vars.repeatRefresh && !_ && !this._lock && f !== d && this._initted && (this._lock = s = 1, this.render(H(d * p), !0).invalidate()._lock = 0));
1129
+ p !== m && (x && this._yEase && or(x, _), this.vars.repeatRefresh && !_ && !this._lock && f !== d && this._initted && (this._lock = s = 1, this.render(H(d * p), !0).invalidate()._lock = 0));
1130
1130
  }
1131
1131
  if (!this._initted) {
1132
- if (Yn(this, c ? n : f, s, r, u))
1132
+ if (Zn(this, c ? n : f, s, r, u))
1133
1133
  return this._tTime = 0, this;
1134
1134
  if (o !== this._time && !(s && this.vars.repeatRefresh && p !== m))
1135
1135
  return this;
@@ -1150,7 +1150,7 @@ var j = /* @__PURE__ */ (function(a) {
1150
1150
  }, t.resetTo = function(n, r, s, o, l) {
1151
1151
  Ct || he.wake(), this._ts || this.play();
1152
1152
  var h = Math.min(this._dur, (this._dp._time - this._start) * this._ts), c;
1153
- return this._initted || ki(this, h), c = this._ease(h / this._dur), xs(this, n, r, s, o, c, h, l) ? this.resetTo(n, r, s, o, 1) : (Wt(this, 0), this.parent || Vn(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
1153
+ return this._initted || ki(this, h), c = this._ease(h / this._dur), bs(this, n, r, s, o, c, h, l) ? this.resetTo(n, r, s, o, 1) : (Wt(this, 0), this.parent || jn(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
1154
1154
  }, t.kill = function(n, r) {
1155
1155
  if (r === void 0 && (r = "all"), !n && (!r || r === "all"))
1156
1156
  return this._lazy = this._pt = 0, this.parent ? _t(this) : this.scrollTrigger && this.scrollTrigger.kill(!!W), this;
@@ -1159,11 +1159,11 @@ var j = /* @__PURE__ */ (function(a) {
1159
1159
  return this.timeline.killTweensOf(n, r, Me && Me.vars.overwrite !== !0)._first || _t(this), this.parent && s !== this.timeline.totalDuration() && ct(this, this._dur * this.timeline._tDur / s, 0, 1), this;
1160
1160
  }
1161
1161
  var o = this._targets, l = n ? _e(n) : o, h = this._ptLookup, c = this._pt, u, f, g, p, d, m, _;
1162
- if ((!r || r === "all") && Xr(o, l))
1162
+ if ((!r || r === "all") && qr(o, l))
1163
1163
  return r === "all" && (this._pt = 0), _t(this);
1164
1164
  for (u = this._op = this._op || [], r !== "all" && (K(r) && (d = {}, ne(r, function(y) {
1165
1165
  return d[y] = 1;
1166
- }), r = d), r = bs(o, r)), _ = o.length; _--; )
1166
+ }), r = d), r = vs(o, r)), _ = o.length; _--; )
1167
1167
  if (~l.indexOf(o[_])) {
1168
1168
  f = h[_], r === "all" ? (u[_] = r, p = f, g = {}) : (g = u[_] = u[_] || {}, p = r);
1169
1169
  for (d in p)
@@ -1207,21 +1207,21 @@ ne("staggerTo,staggerFrom,staggerFromTo", function(a) {
1207
1207
  return t.splice(a === "staggerFromTo" ? 5 : 4, 0, 0), e[a].apply(e, t);
1208
1208
  };
1209
1209
  });
1210
- var Ui = function(e, t, i) {
1210
+ var Fi = function(e, t, i) {
1211
1211
  return e[t] = i;
1212
- }, dr = function(e, t, i) {
1212
+ }, pr = function(e, t, i) {
1213
1213
  return e[t](i);
1214
- }, Es = function(e, t, i, n) {
1214
+ }, ws = function(e, t, i, n) {
1215
1215
  return e[t](n.fp, i);
1216
- }, ws = function(e, t, i) {
1216
+ }, Ps = function(e, t, i) {
1217
1217
  return e.setAttribute(t, i);
1218
- }, Fi = function(e, t) {
1219
- return G(e[t]) ? dr : Ai(e[t]) && e.setAttribute ? ws : Ui;
1220
- }, pr = function(e, t) {
1218
+ }, Ui = function(e, t) {
1219
+ return G(e[t]) ? pr : Ai(e[t]) && e.setAttribute ? Ps : Fi;
1220
+ }, fr = function(e, t) {
1221
1221
  return t.set(t.t, t.p, Math.round((t.s + t.c * e) * 1e6) / 1e6, t);
1222
- }, Ps = function(e, t) {
1222
+ }, Cs = function(e, t) {
1223
1223
  return t.set(t.t, t.p, !!(t.s + t.c * e), t);
1224
- }, fr = function(e, t) {
1224
+ }, mr = function(e, t) {
1225
1225
  var i = t._pt, n = "";
1226
1226
  if (!e && t.b)
1227
1227
  n = t.b;
@@ -1236,16 +1236,16 @@ var Ui = function(e, t, i) {
1236
1236
  }, zi = function(e, t) {
1237
1237
  for (var i = t._pt; i; )
1238
1238
  i.r(e, i.d), i = i._next;
1239
- }, Cs = function(e, t, i, n) {
1239
+ }, As = function(e, t, i, n) {
1240
1240
  for (var r = this._pt, s; r; )
1241
1241
  s = r._next, r.p === n && r.modifier(e, t, i), r = s;
1242
- }, As = function(e) {
1242
+ }, Ts = function(e) {
1243
1243
  for (var t = this._pt, i, n; t; )
1244
1244
  n = t._next, t.p === e && !t.op || t.op === e ? Zt(this, t, "_pt") : t.dep || (i = 1), t = n;
1245
1245
  return !i;
1246
- }, Ts = function(e, t, i, n) {
1246
+ }, Ss = function(e, t, i, n) {
1247
1247
  n.mSet(e, t, n.m.call(n.tween, i, n.mt), n);
1248
- }, mr = function(e) {
1248
+ }, gr = function(e) {
1249
1249
  for (var t = e._pt, i, n, r, s; t; ) {
1250
1250
  for (i = t._next, n = r; n && n.pr > t.pr; )
1251
1251
  n = n._next;
@@ -1254,11 +1254,11 @@ var Ui = function(e, t, i) {
1254
1254
  e._pt = r;
1255
1255
  }, re = /* @__PURE__ */ (function() {
1256
1256
  function a(t, i, n, r, s, o, l, h, c) {
1257
- this.t = i, this.s = r, this.c = s, this.p = n, this.r = o || pr, this.d = l || this, this.set = h || Ui, this.pr = c || 0, this._next = t, t && (t._prev = this);
1257
+ this.t = i, this.s = r, this.c = s, this.p = n, this.r = o || fr, this.d = l || this, this.set = h || Fi, this.pr = c || 0, this._next = t, t && (t._prev = this);
1258
1258
  }
1259
1259
  var e = a.prototype;
1260
1260
  return e.modifier = function(i, n, r) {
1261
- this.mSet = this.mSet || this.set, this.set = Ts, this.m = i, this.mt = r, this.tween = n;
1261
+ this.mSet = this.mSet || this.set, this.set = Ss, this.m = i, this.mt = r, this.tween = n;
1262
1262
  }, a;
1263
1263
  })();
1264
1264
  ne(Ri + "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(a) {
@@ -1273,9 +1273,9 @@ N = new J({
1273
1273
  id: "root",
1274
1274
  smoothChildTiming: !0
1275
1275
  });
1276
- ue.stringFilter = rr;
1277
- var Ke = [], zt = {}, Ss = [], tn = 0, Ms = 0, ti = function(e) {
1278
- return (zt[e] || Ss).map(function(t) {
1276
+ ue.stringFilter = sr;
1277
+ var Ke = [], zt = {}, Ms = [], tn = 0, Ds = 0, ti = function(e) {
1278
+ return (zt[e] || Ms).map(function(t) {
1279
1279
  return t();
1280
1280
  });
1281
1281
  }, yi = function() {
@@ -1290,9 +1290,9 @@ var Ke = [], zt = {}, Ss = [], tn = 0, Ms = 0, ti = function(e) {
1290
1290
  return i.add(null, n);
1291
1291
  });
1292
1292
  }), tn = e, ti("matchMedia"));
1293
- }, gr = /* @__PURE__ */ (function() {
1293
+ }, _r = /* @__PURE__ */ (function() {
1294
1294
  function a(t, i) {
1295
- this.selector = i && mi(i), this.data = [], this._r = [], this.isReverted = !1, this.id = Ms++, t && this.add(t);
1295
+ this.selector = i && mi(i), this.data = [], this._r = [], this.isReverted = !1, this.id = Ds++, t && this.add(t);
1296
1296
  }
1297
1297
  var e = a.prototype;
1298
1298
  return e.add = function(i, n, r) {
@@ -1343,7 +1343,7 @@ var Ke = [], zt = {}, Ss = [], tn = 0, Ms = 0, ti = function(e) {
1343
1343
  }, e.revert = function(i) {
1344
1344
  this.kill(i || {});
1345
1345
  }, a;
1346
- })(), Ds = /* @__PURE__ */ (function() {
1346
+ })(), Rs = /* @__PURE__ */ (function() {
1347
1347
  function a(t) {
1348
1348
  this.contexts = [], this.scope = t, z && z.data.push(this);
1349
1349
  }
@@ -1352,7 +1352,7 @@ var Ke = [], zt = {}, Ss = [], tn = 0, Ms = 0, ti = function(e) {
1352
1352
  we(i) || (i = {
1353
1353
  matches: i
1354
1354
  });
1355
- var s = new gr(0, r || this.scope), o = s.conditions = {}, l, h, c;
1355
+ var s = new _r(0, r || this.scope), o = s.conditions = {}, l, h, c;
1356
1356
  z && !s.selector && (s.selector = z.selector), this.contexts.push(s), n = s.add("onMatch", n), s.queries = i;
1357
1357
  for (h in i)
1358
1358
  h === "all" ? c = 1 : (l = xe.matchMedia(i[h]), l && (Ke.indexOf(s) < 0 && Ke.push(s), (o[h] = l.matches) && (c = 1), l.addListener ? l.addListener(yi) : l.addEventListener("change", yi)));
@@ -1371,7 +1371,7 @@ var Ke = [], zt = {}, Ss = [], tn = 0, Ms = 0, ti = function(e) {
1371
1371
  for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
1372
1372
  t[i] = arguments[i];
1373
1373
  t.forEach(function(n) {
1374
- return tr(n);
1374
+ return ir(n);
1375
1375
  });
1376
1376
  },
1377
1377
  timeline: function(e) {
@@ -1382,7 +1382,7 @@ var Ke = [], zt = {}, Ss = [], tn = 0, Ms = 0, ti = function(e) {
1382
1382
  },
1383
1383
  getProperty: function(e, t, i, n) {
1384
1384
  K(e) && (e = _e(e)[0]);
1385
- var r = He(e || {}).get, s = i ? Gn : $n;
1385
+ var r = He(e || {}).get, s = i ? Vn : Gn;
1386
1386
  return i === "native" && (i = ""), e && (t ? s((le[t] && le[t].get || r)(e, t, i, n)) : function(o, l, h) {
1387
1387
  return s((le[o] && le[o].get || r)(e, o, l, h));
1388
1388
  });
@@ -1448,10 +1448,10 @@ var Ke = [], zt = {}, Ss = [], tn = 0, Ms = 0, ti = function(e) {
1448
1448
  return be(N, i, 0), i;
1449
1449
  },
1450
1450
  context: function(e, t) {
1451
- return e ? new gr(e, t) : z;
1451
+ return e ? new _r(e, t) : z;
1452
1452
  },
1453
1453
  matchMedia: function(e) {
1454
- return new Ds(e);
1454
+ return new Rs(e);
1455
1455
  },
1456
1456
  matchMediaRefresh: function() {
1457
1457
  return Ke.forEach(function(e) {
@@ -1470,22 +1470,22 @@ var Ke = [], zt = {}, Ss = [], tn = 0, Ms = 0, ti = function(e) {
1470
1470
  n >= 0 && i.splice(n, 1);
1471
1471
  },
1472
1472
  utils: {
1473
- wrap: ls,
1474
- wrapYoyo: hs,
1475
- distribute: Wn,
1476
- random: qn,
1477
- snap: Xn,
1478
- normalize: os,
1473
+ wrap: hs,
1474
+ wrapYoyo: cs,
1475
+ distribute: Xn,
1476
+ random: Qn,
1477
+ snap: qn,
1478
+ normalize: ls,
1479
1479
  getUnit: X,
1480
- clamp: ns,
1481
- splitColor: ir,
1480
+ clamp: rs,
1481
+ splitColor: nr,
1482
1482
  toArray: _e,
1483
1483
  selector: mi,
1484
- mapRange: Jn,
1485
- pipe: ss,
1486
- unitize: as,
1487
- interpolate: cs,
1488
- shuffle: Kn
1484
+ mapRange: er,
1485
+ pipe: as,
1486
+ unitize: os,
1487
+ interpolate: us,
1488
+ shuffle: Wn
1489
1489
  },
1490
1490
  install: Un,
1491
1491
  effects: qt,
@@ -1495,7 +1495,7 @@ var Ke = [], zt = {}, Ss = [], tn = 0, Ms = 0, ti = function(e) {
1495
1495
  globalTimeline: N,
1496
1496
  core: {
1497
1497
  PropTween: re,
1498
- globals: Fn,
1498
+ globals: zn,
1499
1499
  Tween: j,
1500
1500
  Timeline: J,
1501
1501
  Animation: At,
@@ -1519,15 +1519,15 @@ he.add(J.updateRoot);
1519
1519
  tt = jt.to({}, {
1520
1520
  duration: 0
1521
1521
  });
1522
- var Rs = function(e, t) {
1522
+ var Is = function(e, t) {
1523
1523
  for (var i = e._pt; i && i.p !== t && i.op !== t && i.fp !== t; )
1524
1524
  i = i._next;
1525
1525
  return i;
1526
- }, Os = function(e, t) {
1526
+ }, Ls = function(e, t) {
1527
1527
  var i = e._targets, n, r, s;
1528
1528
  for (n in t)
1529
1529
  for (r = i.length; r--; )
1530
- s = e._ptLookup[r][n], s && (s = s.d) && (s._pt && (s = Rs(s, n)), s && s.modifier && s.modifier(t[n], e, i[r], n));
1530
+ s = e._ptLookup[r][n], s && (s = s.d) && (s._pt && (s = Is(s, n)), s && s.modifier && s.modifier(t[n], e, i[r], n));
1531
1531
  }, ii = function(e, t) {
1532
1532
  return {
1533
1533
  name: e,
@@ -1545,7 +1545,7 @@ var Rs = function(e, t) {
1545
1545
  l[h] = t(r[h]);
1546
1546
  r = l;
1547
1547
  }
1548
- Os(o, r);
1548
+ Ls(o, r);
1549
1549
  };
1550
1550
  }
1551
1551
  };
@@ -1568,9 +1568,9 @@ var Rs = function(e, t) {
1568
1568
  for (var i = t.length; i--; )
1569
1569
  this.add(e, i, e[i] || 0, t[i], 0, 0, 0, 0, 0, 1);
1570
1570
  }
1571
- }, ii("roundProps", gi), ii("modifiers"), ii("snap", Xn)) || jt;
1571
+ }, ii("roundProps", gi), ii("modifiers"), ii("snap", qn)) || jt;
1572
1572
  j.version = J.version = ae.version = "3.13.0";
1573
- kn = 1;
1573
+ Fn = 1;
1574
1574
  Ti() && ut();
1575
1575
  M.Power0;
1576
1576
  M.Power1;
@@ -1590,9 +1590,9 @@ M.Bounce;
1590
1590
  M.Sine;
1591
1591
  M.Expo;
1592
1592
  M.Circ;
1593
- var nn, De, st, Ni, Ve, rn, Bi, Is = function() {
1593
+ var nn, De, st, Ni, Ve, rn, Bi, Os = function() {
1594
1594
  return typeof window < "u";
1595
- }, Se = {}, Ge = 180 / Math.PI, at = Math.PI / 180, qe = Math.atan2, sn = 1e8, $i = /([A-Z])/g, Ls = /(left|right|width|margin|padding|x)/i, ks = /[\s,\(]\S/, ve = {
1595
+ }, Se = {}, Ge = 180 / Math.PI, at = Math.PI / 180, qe = Math.atan2, sn = 1e8, $i = /([A-Z])/g, ks = /(left|right|width|margin|padding|x)/i, Fs = /[\s,\(]\S/, ve = {
1596
1596
  autoAlpha: "opacity,visibility",
1597
1597
  scale: "scaleX,scaleY",
1598
1598
  alpha: "opacity"
@@ -1600,30 +1600,30 @@ var nn, De, st, Ni, Ve, rn, Bi, Is = function() {
1600
1600
  return t.set(t.t, t.p, Math.round((t.s + t.c * e) * 1e4) / 1e4 + t.u, t);
1601
1601
  }, Us = function(e, t) {
1602
1602
  return t.set(t.t, t.p, e === 1 ? t.e : Math.round((t.s + t.c * e) * 1e4) / 1e4 + t.u, t);
1603
- }, Fs = function(e, t) {
1604
- return t.set(t.t, t.p, e ? Math.round((t.s + t.c * e) * 1e4) / 1e4 + t.u : t.b, t);
1605
1603
  }, zs = function(e, t) {
1604
+ return t.set(t.t, t.p, e ? Math.round((t.s + t.c * e) * 1e4) / 1e4 + t.u : t.b, t);
1605
+ }, Ns = function(e, t) {
1606
1606
  var i = t.s + t.c * e;
1607
1607
  t.set(t.t, t.p, ~~(i + (i < 0 ? -0.5 : 0.5)) + t.u, t);
1608
- }, _r = function(e, t) {
1609
- return t.set(t.t, t.p, e ? t.e : t.b, t);
1610
1608
  }, yr = function(e, t) {
1609
+ return t.set(t.t, t.p, e ? t.e : t.b, t);
1610
+ }, xr = function(e, t) {
1611
1611
  return t.set(t.t, t.p, e !== 1 ? t.b : t.e, t);
1612
- }, Ns = function(e, t, i) {
1613
- return e.style[t] = i;
1614
1612
  }, Bs = function(e, t, i) {
1615
- return e.style.setProperty(t, i);
1613
+ return e.style[t] = i;
1616
1614
  }, $s = function(e, t, i) {
1617
- return e._gsap[t] = i;
1615
+ return e.style.setProperty(t, i);
1618
1616
  }, Gs = function(e, t, i) {
1617
+ return e._gsap[t] = i;
1618
+ }, Vs = function(e, t, i) {
1619
1619
  return e._gsap.scaleX = e._gsap.scaleY = i;
1620
- }, Vs = function(e, t, i, n, r) {
1620
+ }, js = function(e, t, i, n, r) {
1621
1621
  var s = e._gsap;
1622
1622
  s.scaleX = s.scaleY = i, s.renderTransform(r, s);
1623
- }, js = function(e, t, i, n, r) {
1623
+ }, Hs = function(e, t, i, n, r) {
1624
1624
  var s = e._gsap;
1625
1625
  s[t] = i, s.renderTransform(r, s);
1626
- }, B = "transform", se = B + "Origin", Hs = function a(e, t) {
1626
+ }, B = "transform", se = B + "Origin", Ys = function a(e, t) {
1627
1627
  var i = this, n = this.target, r = n.style, s = n._gsap;
1628
1628
  if (e in Se && r) {
1629
1629
  if (this.tfm = this.tfm || {}, e !== "transform")
@@ -1639,28 +1639,28 @@ var nn, De, st, Ni, Ve, rn, Bi, Is = function() {
1639
1639
  s.svg && (this.svgo = n.getAttribute("data-svg-origin"), this.props.push(se, t, "")), e = B;
1640
1640
  }
1641
1641
  (r || t) && this.props.push(e, t, r[e]);
1642
- }, xr = function(e) {
1642
+ }, br = function(e) {
1643
1643
  e.translate && (e.removeProperty("translate"), e.removeProperty("scale"), e.removeProperty("rotate"));
1644
- }, Ys = function() {
1644
+ }, Zs = function() {
1645
1645
  var e = this.props, t = this.target, i = t.style, n = t._gsap, r, s;
1646
1646
  for (r = 0; r < e.length; r += 3)
1647
1647
  e[r + 1] ? e[r + 1] === 2 ? t[e[r]](e[r + 2]) : t[e[r]] = e[r + 2] : e[r + 2] ? i[e[r]] = e[r + 2] : i.removeProperty(e[r].substr(0, 2) === "--" ? e[r] : e[r].replace($i, "-$1").toLowerCase());
1648
1648
  if (this.tfm) {
1649
1649
  for (s in this.tfm)
1650
1650
  n[s] = this.tfm[s];
1651
- n.svg && (n.renderTransform(), t.setAttribute("data-svg-origin", this.svgo || "")), r = Bi(), (!r || !r.isStart) && !i[B] && (xr(i), n.zOrigin && i[se] && (i[se] += " " + n.zOrigin + "px", n.zOrigin = 0, n.renderTransform()), n.uncache = 1);
1651
+ n.svg && (n.renderTransform(), t.setAttribute("data-svg-origin", this.svgo || "")), r = Bi(), (!r || !r.isStart) && !i[B] && (br(i), n.zOrigin && i[se] && (i[se] += " " + n.zOrigin + "px", n.zOrigin = 0, n.renderTransform()), n.uncache = 1);
1652
1652
  }
1653
- }, br = function(e, t) {
1653
+ }, vr = function(e, t) {
1654
1654
  var i = {
1655
1655
  target: e,
1656
1656
  props: [],
1657
- revert: Ys,
1658
- save: Hs
1657
+ revert: Zs,
1658
+ save: Ys
1659
1659
  };
1660
1660
  return e._gsap || ae.core.getCache(e), t && e.style && e.nodeType && t.split(",").forEach(function(n) {
1661
1661
  return i.save(n);
1662
1662
  }), i;
1663
- }, vr, bi = function(e, t) {
1663
+ }, Er, bi = function(e, t) {
1664
1664
  var i = De.createElementNS ? De.createElementNS((t || "http://www.w3.org/1999/xhtml").replace(/^https/, "http"), e) : De.createElement(e);
1665
1665
  return i && i.style ? i : De.createElement(e);
1666
1666
  }, ye = function a(e, t, i) {
@@ -1674,9 +1674,9 @@ var nn, De, st, Ni, Ve, rn, Bi, Is = function() {
1674
1674
  ;
1675
1675
  return s < 0 ? null : (s === 3 ? "ms" : s >= 0 ? an[s] : "") + e;
1676
1676
  }, vi = function() {
1677
- Is() && window.document && (nn = window, De = nn.document, st = De.documentElement, Ve = bi("div") || {
1677
+ Os() && window.document && (nn = window, De = nn.document, st = De.documentElement, Ve = bi("div") || {
1678
1678
  style: {}
1679
- }, bi("div"), B = dt(B), se = B + "Origin", Ve.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", vr = !!dt("perspective"), Bi = ae.core.reverting, Ni = 1);
1679
+ }, bi("div"), B = dt(B), se = B + "Origin", Ve.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", Er = !!dt("perspective"), Bi = ae.core.reverting, Ni = 1);
1680
1680
  }, on = function(e) {
1681
1681
  var t = e.ownerSVGElement, i = bi("svg", t && t.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), n = e.cloneNode(!0), r;
1682
1682
  n.style.display = "block", i.appendChild(n), st.appendChild(i);
@@ -1689,7 +1689,7 @@ var nn, De, st, Ni, Ve, rn, Bi, Is = function() {
1689
1689
  for (var i = t.length; i--; )
1690
1690
  if (e.hasAttribute(t[i]))
1691
1691
  return e.getAttribute(t[i]);
1692
- }, Er = function(e) {
1692
+ }, wr = function(e) {
1693
1693
  var t, i;
1694
1694
  try {
1695
1695
  t = e.getBBox();
@@ -1702,28 +1702,28 @@ var nn, De, st, Ni, Ve, rn, Bi, Is = function() {
1702
1702
  width: 0,
1703
1703
  height: 0
1704
1704
  } : t;
1705
- }, wr = function(e) {
1706
- return !!(e.getCTM && (!e.parentNode || e.ownerSVGElement) && Er(e));
1705
+ }, Pr = function(e) {
1706
+ return !!(e.getCTM && (!e.parentNode || e.ownerSVGElement) && wr(e));
1707
1707
  }, We = function(e, t) {
1708
1708
  if (t) {
1709
1709
  var i = e.style, n;
1710
1710
  t in Se && t !== se && (t = B), i.removeProperty ? (n = t.substr(0, 2), (n === "ms" || t.substr(0, 6) === "webkit") && (t = "-" + t), i.removeProperty(n === "--" ? t : t.replace($i, "-$1").toLowerCase())) : i.removeAttribute(t);
1711
1711
  }
1712
1712
  }, Re = function(e, t, i, n, r, s) {
1713
- var o = new re(e._pt, t, i, 0, 1, s ? yr : _r);
1713
+ var o = new re(e._pt, t, i, 0, 1, s ? xr : yr);
1714
1714
  return e._pt = o, o.b = n, o.e = r, e._props.push(i), o;
1715
1715
  }, hn = {
1716
1716
  deg: 1,
1717
1717
  rad: 1,
1718
1718
  turn: 1
1719
- }, Zs = {
1719
+ }, Ks = {
1720
1720
  grid: 1,
1721
1721
  flex: 1
1722
- }, Ue = function a(e, t, i, n) {
1723
- var r = parseFloat(i) || 0, s = (i + "").trim().substr((r + "").length) || "px", o = Ve.style, l = Ls.test(t), h = e.tagName.toLowerCase() === "svg", c = (h ? "client" : "offset") + (l ? "Width" : "Height"), u = 100, f = n === "px", g = n === "%", p, d, m, _;
1722
+ }, Fe = function a(e, t, i, n) {
1723
+ var r = parseFloat(i) || 0, s = (i + "").trim().substr((r + "").length) || "px", o = Ve.style, l = ks.test(t), h = e.tagName.toLowerCase() === "svg", c = (h ? "client" : "offset") + (l ? "Width" : "Height"), u = 100, f = n === "px", g = n === "%", p, d, m, _;
1724
1724
  if (n === s || !r || hn[n] || hn[s])
1725
1725
  return r;
1726
- if (s !== "px" && !f && (r = a(e, t, i, "px")), _ = e.getCTM && wr(e), (g || s === "%") && (Se[t] || ~t.indexOf("adius")))
1726
+ if (s !== "px" && !f && (r = a(e, t, i, "px")), _ = e.getCTM && Pr(e), (g || s === "%") && (Se[t] || ~t.indexOf("adius")))
1727
1727
  return p = _ ? e.getBBox()[l ? "width" : "height"] : e[c], V(g ? r / p * u : r / 100 * p);
1728
1728
  if (o[l ? "width" : "height"] = u + (f ? s : n), d = n !== "rem" && ~t.indexOf("adius") || n === "em" && e.appendChild && !h ? e : e.parentNode, _ && (d = (e.ownerSVGElement || {}).parentNode), (!d || d === De || !d.appendChild) && (d = De.body), m = d._gsap, m && g && m.width && l && m.time === he.time && !m.uncache)
1729
1729
  return V(r / m.width * u);
@@ -1731,20 +1731,20 @@ var nn, De, st, Ni, Ve, rn, Bi, Is = function() {
1731
1731
  var y = e.style[t];
1732
1732
  e.style[t] = u + n, p = e[c], y ? e.style[t] = y : We(e, t);
1733
1733
  } else
1734
- (g || s === "%") && !Zs[ye(d, "display")] && (o.position = ye(e, "position")), d === e && (o.position = "static"), d.appendChild(Ve), p = Ve[c], d.removeChild(Ve), o.position = "absolute";
1734
+ (g || s === "%") && !Ks[ye(d, "display")] && (o.position = ye(e, "position")), d === e && (o.position = "static"), d.appendChild(Ve), p = Ve[c], d.removeChild(Ve), o.position = "absolute";
1735
1735
  return l && g && (m = He(d), m.time = he.time, m.width = d[c]), V(f ? p * r / u : p && r ? u / p * r : 0);
1736
1736
  }, Ae = function(e, t, i, n) {
1737
1737
  var r;
1738
- return Ni || vi(), t in ve && t !== "transform" && (t = ve[t], ~t.indexOf(",") && (t = t.split(",")[0])), Se[t] && t !== "transform" ? (r = St(e, n), r = t !== "transformOrigin" ? r[t] : r.svg ? r.origin : Yt(ye(e, se)) + " " + r.zOrigin + "px") : (r = e.style[t], (!r || r === "auto" || n || ~(r + "").indexOf("calc(")) && (r = Ht[t] && Ht[t](e, t, i) || ye(e, t) || Nn(e, t) || (t === "opacity" ? 1 : 0))), i && !~(r + "").trim().indexOf(" ") ? Ue(e, t, r, i) + i : r;
1739
- }, Ks = function(e, t, i, n) {
1738
+ return Ni || vi(), t in ve && t !== "transform" && (t = ve[t], ~t.indexOf(",") && (t = t.split(",")[0])), Se[t] && t !== "transform" ? (r = St(e, n), r = t !== "transformOrigin" ? r[t] : r.svg ? r.origin : Yt(ye(e, se)) + " " + r.zOrigin + "px") : (r = e.style[t], (!r || r === "auto" || n || ~(r + "").indexOf("calc(")) && (r = Ht[t] && Ht[t](e, t, i) || ye(e, t) || Bn(e, t) || (t === "opacity" ? 1 : 0))), i && !~(r + "").trim().indexOf(" ") ? Fe(e, t, r, i) + i : r;
1739
+ }, Ws = function(e, t, i, n) {
1740
1740
  if (!i || i === "none") {
1741
1741
  var r = dt(t, e, 1), s = r && ye(e, r, 1);
1742
1742
  s && s !== i ? (t = r, i = s) : t === "borderColor" && (i = ye(e, "borderTopColor"));
1743
1743
  }
1744
- var o = new re(this._pt, e.style, t, 0, 1, fr), l = 0, h = 0, c, u, f, g, p, d, m, _, y, x, b, v;
1745
- if (o.b = i, o.e = n, i += "", n += "", n.substring(0, 6) === "var(--" && (n = ye(e, n.substring(4, n.indexOf(")")))), n === "auto" && (d = e.style[t], e.style[t] = n, n = ye(e, t) || n, d ? e.style[t] = d : We(e, t)), c = [i, n], rr(c), i = c[0], n = c[1], f = i.match(et) || [], v = n.match(et) || [], v.length) {
1744
+ var o = new re(this._pt, e.style, t, 0, 1, mr), l = 0, h = 0, c, u, f, g, p, d, m, _, y, x, b, v;
1745
+ if (o.b = i, o.e = n, i += "", n += "", n.substring(0, 6) === "var(--" && (n = ye(e, n.substring(4, n.indexOf(")")))), n === "auto" && (d = e.style[t], e.style[t] = n, n = ye(e, t) || n, d ? e.style[t] = d : We(e, t)), c = [i, n], sr(c), i = c[0], n = c[1], f = i.match(et) || [], v = n.match(et) || [], v.length) {
1746
1746
  for (; u = et.exec(n); )
1747
- m = u[0], y = n.substring(l, u.index), p ? p = (p + 1) % 5 : (y.substr(-5) === "rgba(" || y.substr(-5) === "hsla(") && (p = 1), m !== (d = f[h++] || "") && (g = parseFloat(d) || 0, b = d.substr((g + "").length), m.charAt(1) === "=" && (m = rt(g, m) + b), _ = parseFloat(m), x = m.substr((_ + "").length), l = et.lastIndex - x.length, x || (x = x || ue.units[t] || b, l === n.length && (n += x, o.e += x)), b !== x && (g = Ue(e, t, d, x) || 0), o._pt = {
1747
+ m = u[0], y = n.substring(l, u.index), p ? p = (p + 1) % 5 : (y.substr(-5) === "rgba(" || y.substr(-5) === "hsla(") && (p = 1), m !== (d = f[h++] || "") && (g = parseFloat(d) || 0, b = d.substr((g + "").length), m.charAt(1) === "=" && (m = rt(g, m) + b), _ = parseFloat(m), x = m.substr((_ + "").length), l = et.lastIndex - x.length, x || (x = x || ue.units[t] || b, l === n.length && (n += x, o.e += x)), b !== x && (g = Fe(e, t, d, x) || 0), o._pt = {
1748
1748
  _next: o._pt,
1749
1749
  p: y || h === 1 ? y : ",",
1750
1750
  //note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.
@@ -1754,18 +1754,18 @@ var nn, De, st, Ni, Ve, rn, Bi, Is = function() {
1754
1754
  });
1755
1755
  o.c = l < n.length ? n.substring(l, n.length) : "";
1756
1756
  } else
1757
- o.r = t === "display" && n === "none" ? yr : _r;
1758
- return In.test(n) && (o.e = 0), this._pt = o, o;
1757
+ o.r = t === "display" && n === "none" ? xr : yr;
1758
+ return On.test(n) && (o.e = 0), this._pt = o, o;
1759
1759
  }, cn = {
1760
1760
  top: "0%",
1761
1761
  bottom: "100%",
1762
1762
  left: "0%",
1763
1763
  right: "100%",
1764
1764
  center: "50%"
1765
- }, Ws = function(e) {
1765
+ }, Xs = function(e) {
1766
1766
  var t = e.split(" "), i = t[0], n = t[1] || "50%";
1767
1767
  return (i === "top" || i === "bottom" || n === "left" || n === "right") && (e = i, i = n, n = e), t[0] = cn[i] || i, t[1] = cn[n] || n, t.join(" ");
1768
- }, Xs = function(e, t) {
1768
+ }, qs = function(e, t) {
1769
1769
  if (t.tween && t.tween._time === t.tween._dur) {
1770
1770
  var i = t.t, n = i.style, r = t.u, s = i._gsap, o, l, h;
1771
1771
  if (r === "all" || r === !0)
@@ -1773,12 +1773,12 @@ var nn, De, st, Ni, Ve, rn, Bi, Is = function() {
1773
1773
  else
1774
1774
  for (r = r.split(","), h = r.length; --h > -1; )
1775
1775
  o = r[h], Se[o] && (l = 1, o = o === "transformOrigin" ? se : B), We(i, o);
1776
- l && (We(i, B), s && (s.svg && i.removeAttribute("transform"), n.scale = n.rotate = n.translate = "none", St(i, 1), s.uncache = 1, xr(n)));
1776
+ l && (We(i, B), s && (s.svg && i.removeAttribute("transform"), n.scale = n.rotate = n.translate = "none", St(i, 1), s.uncache = 1, br(n)));
1777
1777
  }
1778
1778
  }, Ht = {
1779
1779
  clearProps: function(e, t, i, n, r) {
1780
1780
  if (r.data !== "isFromStart") {
1781
- var s = e._pt = new re(e._pt, t, i, 0, 0, Xs);
1781
+ var s = e._pt = new re(e._pt, t, i, 0, 0, qs);
1782
1782
  return s.u = n, s.pr = -10, s.tween = r, e._props.push(i), 1;
1783
1783
  }
1784
1784
  }
@@ -1845,52 +1845,52 @@ var nn, De, st, Ni, Ve, rn, Bi, Is = function() {
1845
1845
  return 1;
1846
1846
  }
1847
1847
  */
1848
- }, Tt = [1, 0, 0, 1, 0, 0], Pr = {}, Cr = function(e) {
1848
+ }, Tt = [1, 0, 0, 1, 0, 0], Cr = {}, Ar = function(e) {
1849
1849
  return e === "matrix(1, 0, 0, 1, 0, 0)" || e === "none" || !e;
1850
1850
  }, un = function(e) {
1851
1851
  var t = ye(e, B);
1852
- return Cr(t) ? Tt : t.substr(7).match(On).map(V);
1852
+ return Ar(t) ? Tt : t.substr(7).match(Ln).map(V);
1853
1853
  }, Gi = function(e, t) {
1854
1854
  var i = e._gsap || He(e), n = e.style, r = un(e), s, o, l, h;
1855
1855
  return i.svg && e.getAttribute("transform") ? (l = e.transform.baseVal.consolidate().matrix, r = [l.a, l.b, l.c, l.d, l.e, l.f], r.join(",") === "1,0,0,1,0,0" ? Tt : r) : (r === Tt && !e.offsetParent && e !== st && !i.svg && (l = n.display, n.display = "block", s = e.parentNode, (!s || !e.offsetParent && !e.getBoundingClientRect().width) && (h = 1, o = e.nextElementSibling, st.appendChild(e)), r = un(e), l ? n.display = l : We(e, "display"), h && (o ? s.insertBefore(e, o) : s ? s.appendChild(e) : st.removeChild(e))), t && r.length > 6 ? [r[0], r[1], r[4], r[5], r[12], r[13]] : r);
1856
1856
  }, Ei = function(e, t, i, n, r, s) {
1857
1857
  var o = e._gsap, l = r || Gi(e, !0), h = o.xOrigin || 0, c = o.yOrigin || 0, u = o.xOffset || 0, f = o.yOffset || 0, g = l[0], p = l[1], d = l[2], m = l[3], _ = l[4], y = l[5], x = t.split(" "), b = parseFloat(x[0]) || 0, v = parseFloat(x[1]) || 0, P, E, C, w;
1858
- i ? l !== Tt && (E = g * m - p * d) && (C = b * (m / E) + v * (-d / E) + (d * y - m * _) / E, w = b * (-p / E) + v * (g / E) - (g * y - p * _) / E, b = C, v = w) : (P = Er(e), b = P.x + (~x[0].indexOf("%") ? b / 100 * P.width : b), v = P.y + (~(x[1] || x[0]).indexOf("%") ? v / 100 * P.height : v)), n || n !== !1 && o.smooth ? (_ = b - h, y = v - c, o.xOffset = u + (_ * g + y * d) - _, o.yOffset = f + (_ * p + y * m) - y) : o.xOffset = o.yOffset = 0, o.xOrigin = b, o.yOrigin = v, o.smooth = !!n, o.origin = t, o.originIsAbsolute = !!i, e.style[se] = "0px 0px", s && (Re(s, o, "xOrigin", h, b), Re(s, o, "yOrigin", c, v), Re(s, o, "xOffset", u, o.xOffset), Re(s, o, "yOffset", f, o.yOffset)), e.setAttribute("data-svg-origin", b + " " + v);
1858
+ i ? l !== Tt && (E = g * m - p * d) && (C = b * (m / E) + v * (-d / E) + (d * y - m * _) / E, w = b * (-p / E) + v * (g / E) - (g * y - p * _) / E, b = C, v = w) : (P = wr(e), b = P.x + (~x[0].indexOf("%") ? b / 100 * P.width : b), v = P.y + (~(x[1] || x[0]).indexOf("%") ? v / 100 * P.height : v)), n || n !== !1 && o.smooth ? (_ = b - h, y = v - c, o.xOffset = u + (_ * g + y * d) - _, o.yOffset = f + (_ * p + y * m) - y) : o.xOffset = o.yOffset = 0, o.xOrigin = b, o.yOrigin = v, o.smooth = !!n, o.origin = t, o.originIsAbsolute = !!i, e.style[se] = "0px 0px", s && (Re(s, o, "xOrigin", h, b), Re(s, o, "yOrigin", c, v), Re(s, o, "xOffset", u, o.xOffset), Re(s, o, "yOffset", f, o.yOffset)), e.setAttribute("data-svg-origin", b + " " + v);
1859
1859
  }, St = function(e, t) {
1860
- var i = e._gsap || new lr(e);
1860
+ var i = e._gsap || new hr(e);
1861
1861
  if ("x" in i && !t && !i.uncache)
1862
1862
  return i;
1863
- var n = e.style, r = i.scaleX < 0, s = "px", o = "deg", l = getComputedStyle(e), h = ye(e, se) || "0", c, u, f, g, p, d, m, _, y, x, b, v, P, E, C, w, S, D, T, R, O, $, F, U, ee, pt, ft, mt, ze, Yi, Pe, Ne;
1864
- return c = u = f = d = m = _ = y = x = b = 0, g = p = 1, i.svg = !!(e.getCTM && wr(e)), l.translate && ((l.translate !== "none" || l.scale !== "none" || l.rotate !== "none") && (n[B] = (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[B] !== "none" ? l[B] : "")), n.scale = n.rotate = n.translate = "none"), E = Gi(e, i.svg), i.svg && (i.uncache ? (ee = e.getBBox(), h = i.xOrigin - ee.x + "px " + (i.yOrigin - ee.y) + "px", U = "") : U = !t && e.getAttribute("data-svg-origin"), Ei(e, U || h, !!U || i.originIsAbsolute, i.smooth !== !1, E)), v = i.xOrigin || 0, P = i.yOrigin || 0, E !== Tt && (D = E[0], T = E[1], R = E[2], O = E[3], c = $ = E[4], u = F = E[5], E.length === 6 ? (g = Math.sqrt(D * D + T * T), p = Math.sqrt(O * O + R * R), d = D || T ? qe(T, D) * Ge : 0, y = R || O ? qe(R, O) * Ge + d : 0, y && (p *= Math.abs(Math.cos(y * at))), i.svg && (c -= v - (v * D + P * R), u -= P - (v * T + P * O))) : (Ne = E[6], Yi = E[7], ft = E[8], mt = E[9], ze = E[10], Pe = E[11], c = E[12], u = E[13], f = E[14], C = qe(Ne, ze), m = C * Ge, C && (w = Math.cos(-C), S = Math.sin(-C), U = $ * w + ft * S, ee = F * w + mt * S, pt = Ne * w + ze * S, ft = $ * -S + ft * w, mt = F * -S + mt * w, ze = Ne * -S + ze * w, Pe = Yi * -S + Pe * w, $ = U, F = ee, Ne = pt), C = qe(-R, ze), _ = C * Ge, C && (w = Math.cos(-C), S = Math.sin(-C), U = D * w - ft * S, ee = T * w - mt * S, pt = R * w - ze * S, Pe = O * S + Pe * w, D = U, T = ee, R = pt), C = qe(T, D), d = C * Ge, C && (w = Math.cos(C), S = Math.sin(C), U = D * w + T * S, ee = $ * w + F * S, T = T * w - D * S, F = F * w - $ * S, D = U, $ = ee), m && Math.abs(m) + Math.abs(d) > 359.9 && (m = d = 0, _ = 180 - _), g = V(Math.sqrt(D * D + T * T + R * R)), p = V(Math.sqrt(F * F + Ne * Ne)), C = qe($, F), y = Math.abs(C) > 2e-4 ? C * Ge : 0, b = Pe ? 1 / (Pe < 0 ? -Pe : Pe) : 0), i.svg && (U = e.getAttribute("transform"), i.forceCSS = e.setAttribute("transform", "") || !Cr(ye(e, B)), U && e.setAttribute("transform", U))), Math.abs(y) > 90 && Math.abs(y) < 270 && (r ? (g *= -1, y += d <= 0 ? 180 : -180, d += d <= 0 ? 180 : -180) : (p *= -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) + s, i.y = u - ((i.yPercent = u && (!t && i.yPercent || (Math.round(e.offsetHeight / 2) === Math.round(-u) ? -50 : 0))) ? e.offsetHeight * i.yPercent / 100 : 0) + s, i.z = f + s, i.scaleX = V(g), i.scaleY = V(p), i.rotation = V(d) + o, i.rotationX = V(m) + o, i.rotationY = V(_) + o, i.skewX = y + o, i.skewY = x + o, i.transformPerspective = b + s, (i.zOrigin = parseFloat(h.split(" ")[2]) || !t && i.zOrigin || 0) && (n[se] = Yt(h)), i.xOffset = i.yOffset = 0, i.force3D = ue.force3D, i.renderTransform = i.svg ? Qs : vr ? Ar : qs, i.uncache = 0, i;
1863
+ var n = e.style, r = i.scaleX < 0, s = "px", o = "deg", l = getComputedStyle(e), h = ye(e, se) || "0", c, u, f, g, p, d, m, _, y, x, b, v, P, E, C, w, S, D, T, R, I, $, U, F, ee, pt, ft, mt, ze, Yi, Pe, Ne;
1864
+ return c = u = f = d = m = _ = y = x = b = 0, g = p = 1, i.svg = !!(e.getCTM && Pr(e)), l.translate && ((l.translate !== "none" || l.scale !== "none" || l.rotate !== "none") && (n[B] = (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[B] !== "none" ? l[B] : "")), n.scale = n.rotate = n.translate = "none"), E = Gi(e, i.svg), i.svg && (i.uncache ? (ee = e.getBBox(), h = i.xOrigin - ee.x + "px " + (i.yOrigin - ee.y) + "px", F = "") : F = !t && e.getAttribute("data-svg-origin"), Ei(e, F || h, !!F || i.originIsAbsolute, i.smooth !== !1, E)), v = i.xOrigin || 0, P = i.yOrigin || 0, E !== Tt && (D = E[0], T = E[1], R = E[2], I = E[3], c = $ = E[4], u = U = E[5], E.length === 6 ? (g = Math.sqrt(D * D + T * T), p = Math.sqrt(I * I + R * R), d = D || T ? qe(T, D) * Ge : 0, y = R || I ? qe(R, I) * Ge + d : 0, y && (p *= Math.abs(Math.cos(y * at))), i.svg && (c -= v - (v * D + P * R), u -= P - (v * T + P * I))) : (Ne = E[6], Yi = E[7], ft = E[8], mt = E[9], ze = E[10], Pe = E[11], c = E[12], u = E[13], f = E[14], C = qe(Ne, ze), m = C * Ge, C && (w = Math.cos(-C), S = Math.sin(-C), F = $ * w + ft * S, ee = U * w + mt * S, pt = Ne * w + ze * S, ft = $ * -S + ft * w, mt = U * -S + mt * w, ze = Ne * -S + ze * w, Pe = Yi * -S + Pe * w, $ = F, U = ee, Ne = pt), C = qe(-R, ze), _ = C * Ge, C && (w = Math.cos(-C), S = Math.sin(-C), F = D * w - ft * S, ee = T * w - mt * S, pt = R * w - ze * S, Pe = I * S + Pe * w, D = F, T = ee, R = pt), C = qe(T, D), d = C * Ge, C && (w = Math.cos(C), S = Math.sin(C), F = D * w + T * S, ee = $ * w + U * S, T = T * w - D * S, U = U * w - $ * S, D = F, $ = ee), m && Math.abs(m) + Math.abs(d) > 359.9 && (m = d = 0, _ = 180 - _), g = V(Math.sqrt(D * D + T * T + R * R)), p = V(Math.sqrt(U * U + Ne * Ne)), C = qe($, U), y = Math.abs(C) > 2e-4 ? C * Ge : 0, b = Pe ? 1 / (Pe < 0 ? -Pe : Pe) : 0), i.svg && (F = e.getAttribute("transform"), i.forceCSS = e.setAttribute("transform", "") || !Ar(ye(e, B)), F && e.setAttribute("transform", F))), Math.abs(y) > 90 && Math.abs(y) < 270 && (r ? (g *= -1, y += d <= 0 ? 180 : -180, d += d <= 0 ? 180 : -180) : (p *= -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) + s, i.y = u - ((i.yPercent = u && (!t && i.yPercent || (Math.round(e.offsetHeight / 2) === Math.round(-u) ? -50 : 0))) ? e.offsetHeight * i.yPercent / 100 : 0) + s, i.z = f + s, i.scaleX = V(g), i.scaleY = V(p), i.rotation = V(d) + o, i.rotationX = V(m) + o, i.rotationY = V(_) + o, i.skewX = y + o, i.skewY = x + o, i.transformPerspective = b + s, (i.zOrigin = parseFloat(h.split(" ")[2]) || !t && i.zOrigin || 0) && (n[se] = Yt(h)), i.xOffset = i.yOffset = 0, i.force3D = ue.force3D, i.renderTransform = i.svg ? Js : Er ? Tr : Qs, i.uncache = 0, i;
1865
1865
  }, Yt = function(e) {
1866
1866
  return (e = e.split(" "))[0] + " " + e[1];
1867
1867
  }, ni = function(e, t, i) {
1868
1868
  var n = X(t);
1869
- return V(parseFloat(t) + parseFloat(Ue(e, "x", i + "px", n))) + n;
1870
- }, qs = function(e, t) {
1871
- t.z = "0px", t.rotationY = t.rotationX = "0deg", t.force3D = 0, Ar(e, t);
1872
- }, Be = "0deg", gt = "0px", $e = ") ", Ar = function(e, t) {
1869
+ return V(parseFloat(t) + parseFloat(Fe(e, "x", i + "px", n))) + n;
1870
+ }, Qs = function(e, t) {
1871
+ t.z = "0px", t.rotationY = t.rotationX = "0deg", t.force3D = 0, Tr(e, t);
1872
+ }, Be = "0deg", gt = "0px", $e = ") ", Tr = function(e, t) {
1873
1873
  var i = t || this, n = i.xPercent, r = i.yPercent, s = i.x, o = i.y, l = i.z, h = i.rotation, c = i.rotationY, u = i.rotationX, f = i.skewX, g = i.skewY, p = i.scaleX, d = i.scaleY, m = i.transformPerspective, _ = i.force3D, y = i.target, x = i.zOrigin, b = "", v = _ === "auto" && e && e !== 1 || _ === !0;
1874
1874
  if (x && (u !== Be || c !== Be)) {
1875
1875
  var P = parseFloat(c) * at, E = Math.sin(P), C = Math.cos(P), w;
1876
1876
  P = parseFloat(u) * at, w = Math.cos(P), s = ni(y, s, E * w * -x), o = ni(y, o, -Math.sin(P) * -x), l = ni(y, l, C * w * -x + x);
1877
1877
  }
1878
1878
  m !== gt && (b += "perspective(" + m + $e), (n || r) && (b += "translate(" + n + "%, " + r + "%) "), (v || s !== gt || o !== gt || l !== gt) && (b += l !== gt || v ? "translate3d(" + s + ", " + o + ", " + l + ") " : "translate(" + s + ", " + o + $e), h !== Be && (b += "rotate(" + h + $e), c !== Be && (b += "rotateY(" + c + $e), u !== Be && (b += "rotateX(" + u + $e), (f !== Be || g !== Be) && (b += "skew(" + f + ", " + g + $e), (p !== 1 || d !== 1) && (b += "scale(" + p + ", " + d + $e), y.style[B] = b || "translate(0, 0)";
1879
- }, Qs = function(e, t) {
1879
+ }, Js = function(e, t) {
1880
1880
  var i = t || this, n = i.xPercent, r = i.yPercent, s = i.x, o = i.y, l = i.rotation, h = i.skewX, c = i.skewY, u = i.scaleX, f = i.scaleY, g = i.target, p = i.xOrigin, d = i.yOrigin, m = i.xOffset, _ = i.yOffset, y = i.forceCSS, x = parseFloat(s), b = parseFloat(o), v, P, E, C, w;
1881
- l = parseFloat(l), h = parseFloat(h), c = parseFloat(c), c && (c = parseFloat(c), h += c, l += c), l || h ? (l *= at, h *= at, v = Math.cos(l) * u, P = Math.sin(l) * u, E = Math.sin(l - h) * -f, C = Math.cos(l - h) * f, h && (c *= at, w = Math.tan(h - c), w = Math.sqrt(1 + w * w), E *= w, C *= w, c && (w = Math.tan(c), w = Math.sqrt(1 + w * w), v *= w, P *= w)), v = V(v), P = V(P), E = V(E), C = V(C)) : (v = u, C = f, P = E = 0), (x && !~(s + "").indexOf("px") || b && !~(o + "").indexOf("px")) && (x = Ue(g, "x", s, "px"), b = Ue(g, "y", o, "px")), (p || d || m || _) && (x = V(x + p - (p * v + d * E) + m), b = V(b + d - (p * P + d * C) + _)), (n || r) && (w = g.getBBox(), x = V(x + n / 100 * w.width), b = V(b + r / 100 * w.height)), w = "matrix(" + v + "," + P + "," + E + "," + C + "," + x + "," + b + ")", g.setAttribute("transform", w), y && (g.style[B] = w);
1882
- }, Js = function(e, t, i, n, r) {
1881
+ l = parseFloat(l), h = parseFloat(h), c = parseFloat(c), c && (c = parseFloat(c), h += c, l += c), l || h ? (l *= at, h *= at, v = Math.cos(l) * u, P = Math.sin(l) * u, E = Math.sin(l - h) * -f, C = Math.cos(l - h) * f, h && (c *= at, w = Math.tan(h - c), w = Math.sqrt(1 + w * w), E *= w, C *= w, c && (w = Math.tan(c), w = Math.sqrt(1 + w * w), v *= w, P *= w)), v = V(v), P = V(P), E = V(E), C = V(C)) : (v = u, C = f, P = E = 0), (x && !~(s + "").indexOf("px") || b && !~(o + "").indexOf("px")) && (x = Fe(g, "x", s, "px"), b = Fe(g, "y", o, "px")), (p || d || m || _) && (x = V(x + p - (p * v + d * E) + m), b = V(b + d - (p * P + d * C) + _)), (n || r) && (w = g.getBBox(), x = V(x + n / 100 * w.width), b = V(b + r / 100 * w.height)), w = "matrix(" + v + "," + P + "," + E + "," + C + "," + x + "," + b + ")", g.setAttribute("transform", w), y && (g.style[B] = w);
1882
+ }, ea = function(e, t, i, n, r) {
1883
1883
  var s = 360, o = K(r), l = parseFloat(r) * (o && ~r.indexOf("rad") ? Ge : 1), h = l - n, c = n + h + "deg", u, f;
1884
1884
  return o && (u = r.split("_")[1], u === "short" && (h %= s, h !== h % (s / 2) && (h += h < 0 ? s : -s)), u === "cw" && h < 0 ? h = (h + s * sn) % s - ~~(h / s) * s : u === "ccw" && h > 0 && (h = (h - s * sn) % s - ~~(h / s) * s)), e._pt = f = new re(e._pt, t, i, n, h, Us), f.e = c, f.u = "deg", e._props.push(i), f;
1885
1885
  }, dn = function(e, t) {
1886
1886
  for (var i in t)
1887
1887
  e[i] = t[i];
1888
1888
  return e;
1889
- }, ea = function(e, t, i) {
1889
+ }, ta = function(e, t, i) {
1890
1890
  var n = dn({}, i._gsap), r = "perspective,force3D,transformOrigin,svgOrigin", s = i.style, o, l, h, c, u, f, g, p;
1891
1891
  n.svg ? (h = i.getAttribute("transform"), i.setAttribute("transform", ""), s[B] = t, o = St(i, 1), We(i, B), i.setAttribute("transform", h)) : (h = getComputedStyle(i)[B], s[B] = t, o = St(i, 1), s[B] = h);
1892
1892
  for (l in Se)
1893
- h = n[l], c = o[l], h !== c && r.indexOf(l) < 0 && (g = X(h), p = X(c), u = g !== p ? Ue(i, l, h, p) : parseFloat(h), f = parseFloat(c), e._pt = new re(e._pt, o, l, u, f - u, xi), e._pt.u = p || 0, e._props.push(l));
1893
+ h = n[l], c = o[l], h !== c && r.indexOf(l) < 0 && (g = X(h), p = X(c), u = g !== p ? Fe(i, l, h, p) : parseFloat(h), f = parseFloat(c), e._pt = new re(e._pt, o, l, u, f - u, xi), e._pt.u = p || 0, e._props.push(l));
1894
1894
  dn(o, n);
1895
1895
  };
1896
1896
  ne("padding,margin,Width,Radius", function(a, e) {
@@ -1908,7 +1908,7 @@ ne("padding,margin,Width,Radius", function(a, e) {
1908
1908
  }), o.init(l, g, u);
1909
1909
  };
1910
1910
  });
1911
- var Tr = {
1911
+ var Sr = {
1912
1912
  name: "css",
1913
1913
  register: vi,
1914
1914
  targetTest: function(e) {
@@ -1916,25 +1916,25 @@ var Tr = {
1916
1916
  },
1917
1917
  init: function(e, t, i, n, r) {
1918
1918
  var s = this._props, o = e.style, l = i.vars.startAt, h, c, u, f, g, p, d, m, _, y, x, b, v, P, E, C;
1919
- Ni || vi(), this.styles = this.styles || br(e), C = this.styles.props, this.tween = i;
1919
+ Ni || vi(), this.styles = this.styles || vr(e), C = this.styles.props, this.tween = i;
1920
1920
  for (d in t)
1921
- if (d !== "autoRound" && (c = t[d], !(le[d] && hr(d, t, i, n, e, r)))) {
1921
+ if (d !== "autoRound" && (c = t[d], !(le[d] && cr(d, t, i, n, e, r)))) {
1922
1922
  if (g = typeof c, p = Ht[d], g === "function" && (c = c.call(i, n, e, r), g = typeof c), g === "string" && ~c.indexOf("random(") && (c = Pt(c)), p)
1923
1923
  p(this, e, d, c, i) && (E = 1);
1924
1924
  else if (d.substr(0, 2) === "--")
1925
- h = (getComputedStyle(e).getPropertyValue(d) + "").trim(), c += "", Le.lastIndex = 0, Le.test(h) || (m = X(h), _ = X(c)), _ ? m !== _ && (h = Ue(e, d, h, _) + _) : m && (c += m), this.add(o, "setProperty", h, c, n, r, 0, 0, d), s.push(d), C.push(d, 0, o[d]);
1925
+ h = (getComputedStyle(e).getPropertyValue(d) + "").trim(), c += "", Oe.lastIndex = 0, Oe.test(h) || (m = X(h), _ = X(c)), _ ? m !== _ && (h = Fe(e, d, h, _) + _) : m && (c += m), this.add(o, "setProperty", h, c, n, r, 0, 0, d), s.push(d), C.push(d, 0, o[d]);
1926
1926
  else if (g !== "undefined") {
1927
1927
  if (l && d in l ? (h = typeof l[d] == "function" ? l[d].call(i, n, e, r) : l[d], K(h) && ~h.indexOf("random(") && (h = Pt(h)), X(h + "") || h === "auto" || (h += ue.units[d] || X(Ae(e, d)) || ""), (h + "").charAt(1) === "=" && (h = Ae(e, d))) : h = Ae(e, d), f = parseFloat(h), y = g === "string" && c.charAt(1) === "=" && c.substr(0, 2), y && (c = c.substr(2)), u = parseFloat(c), d in ve && (d === "autoAlpha" && (f === 1 && Ae(e, "visibility") === "hidden" && u && (f = 0), C.push("visibility", 0, o.visibility), Re(this, o, "visibility", f ? "inherit" : "hidden", u ? "inherit" : "hidden", !u)), d !== "scale" && d !== "transform" && (d = ve[d], ~d.indexOf(",") && (d = d.split(",")[0]))), x = d in Se, x) {
1928
1928
  if (this.styles.save(d), g === "string" && c.substring(0, 6) === "var(--" && (c = ye(e, c.substring(4, c.indexOf(")"))), u = parseFloat(c)), b || (v = e._gsap, v.renderTransform && !t.parseTransform || St(e, t.parseTransform), P = t.smoothOrigin !== !1 && v.smooth, b = this._pt = new re(this._pt, o, B, 0, 1, v.renderTransform, v, 0, -1), b.dep = 1), d === "scale")
1929
1929
  this._pt = new re(this._pt, v, "scaleY", v.scaleY, (y ? rt(v.scaleY, y + u) : u) - v.scaleY || 0, xi), this._pt.u = 0, s.push("scaleY", d), d += "X";
1930
1930
  else if (d === "transformOrigin") {
1931
- C.push(se, 0, o[se]), c = Ws(c), v.svg ? Ei(e, c, 0, P, 0, this) : (_ = parseFloat(c.split(" ")[2]) || 0, _ !== v.zOrigin && Re(this, v, "zOrigin", v.zOrigin, _), Re(this, o, d, Yt(h), Yt(c)));
1931
+ C.push(se, 0, o[se]), c = Xs(c), v.svg ? Ei(e, c, 0, P, 0, this) : (_ = parseFloat(c.split(" ")[2]) || 0, _ !== v.zOrigin && Re(this, v, "zOrigin", v.zOrigin, _), Re(this, o, d, Yt(h), Yt(c)));
1932
1932
  continue;
1933
1933
  } else if (d === "svgOrigin") {
1934
1934
  Ei(e, c, 1, P, 0, this);
1935
1935
  continue;
1936
- } else if (d in Pr) {
1937
- Js(this, v, d, f, y ? rt(f, y + c) : c);
1936
+ } else if (d in Cr) {
1937
+ ea(this, v, d, f, y ? rt(f, y + c) : c);
1938
1938
  continue;
1939
1939
  } else if (d === "smoothOrigin") {
1940
1940
  Re(this, v, "smooth", v.smooth, c);
@@ -1943,14 +1943,14 @@ var Tr = {
1943
1943
  v[d] = c;
1944
1944
  continue;
1945
1945
  } else if (d === "transform") {
1946
- ea(this, c, e);
1946
+ ta(this, c, e);
1947
1947
  continue;
1948
1948
  }
1949
1949
  } else d in o || (d = dt(d) || d);
1950
- if (x || (u || u === 0) && (f || f === 0) && !ks.test(c) && d in o)
1951
- m = (h + "").substr((f + "").length), u || (u = 0), _ = X(c) || (d in ue.units ? ue.units[d] : m), m !== _ && (f = Ue(e, d, h, _)), this._pt = new re(this._pt, x ? v : o, d, f, (y ? rt(f, y + u) : u) - f, !x && (_ === "px" || d === "zIndex") && t.autoRound !== !1 ? zs : xi), this._pt.u = _ || 0, m !== _ && _ !== "%" && (this._pt.b = h, this._pt.r = Fs);
1950
+ if (x || (u || u === 0) && (f || f === 0) && !Fs.test(c) && d in o)
1951
+ m = (h + "").substr((f + "").length), u || (u = 0), _ = X(c) || (d in ue.units ? ue.units[d] : m), m !== _ && (f = Fe(e, d, h, _)), this._pt = new re(this._pt, x ? v : o, d, f, (y ? rt(f, y + u) : u) - f, !x && (_ === "px" || d === "zIndex") && t.autoRound !== !1 ? Ns : xi), this._pt.u = _ || 0, m !== _ && _ !== "%" && (this._pt.b = h, this._pt.r = zs);
1952
1952
  else if (d in o)
1953
- Ks.call(this, e, d, h, y ? y + c : c);
1953
+ Ws.call(this, e, d, h, y ? y + c : c);
1954
1954
  else if (d in e)
1955
1955
  this.add(e, d, h || e[d], y ? y + c : c, n, r);
1956
1956
  else if (d !== "parseTransform") {
@@ -1960,7 +1960,7 @@ var Tr = {
1960
1960
  x || (d in o ? C.push(d, 0, o[d]) : typeof e[d] == "function" ? C.push(d, 2, e[d]()) : C.push(d, 1, h || e[d])), s.push(d);
1961
1961
  }
1962
1962
  }
1963
- E && mr(this);
1963
+ E && gr(this);
1964
1964
  },
1965
1965
  render: function(e, t) {
1966
1966
  if (t.tween._time || !Bi())
@@ -1973,7 +1973,7 @@ var Tr = {
1973
1973
  aliases: ve,
1974
1974
  getSetter: function(e, t, i) {
1975
1975
  var n = ve[t];
1976
- return n && n.indexOf(",") < 0 && (t = n), t in Se && t !== se && (e._gsap.x || Ae(e, "x")) ? i && rn === i ? t === "scale" ? Gs : $s : (rn = i || {}) && (t === "scale" ? Vs : js) : e.style && !Ai(e.style[t]) ? Ns : ~t.indexOf("-") ? Bs : Fi(e, t);
1976
+ return n && n.indexOf(",") < 0 && (t = n), t in Se && t !== se && (e._gsap.x || Ae(e, "x")) ? i && rn === i ? t === "scale" ? Vs : Gs : (rn = i || {}) && (t === "scale" ? js : Hs) : e.style && !Ai(e.style[t]) ? Bs : ~t.indexOf("-") ? $s : Ui(e, t);
1977
1977
  },
1978
1978
  core: {
1979
1979
  _removeProperty: We,
@@ -1981,13 +1981,13 @@ var Tr = {
1981
1981
  }
1982
1982
  };
1983
1983
  ae.utils.checkPrefix = dt;
1984
- ae.core.getStyleSaver = br;
1984
+ ae.core.getStyleSaver = vr;
1985
1985
  (function(a, e, t, i) {
1986
1986
  var n = ne(a + "," + e + "," + t, function(r) {
1987
1987
  Se[r] = 1;
1988
1988
  });
1989
1989
  ne(e, function(r) {
1990
- ue.units[r] = "deg", Pr[r] = 1;
1990
+ ue.units[r] = "deg", Cr[r] = 1;
1991
1991
  }), ve[n[13]] = a + "," + e, ne(i, function(r) {
1992
1992
  var s = r.split(":");
1993
1993
  ve[s[1]] = n[s[0]];
@@ -1996,8 +1996,8 @@ ae.core.getStyleSaver = br;
1996
1996
  ne("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective", function(a) {
1997
1997
  ue.units[a] = "px";
1998
1998
  });
1999
- ae.registerPlugin(Tr);
2000
- var Z = ae.registerPlugin(Tr) || ae;
1999
+ ae.registerPlugin(Sr);
2000
+ var Z = ae.registerPlugin(Sr) || ae;
2001
2001
  Z.core.Tween;
2002
2002
  class Ee {
2003
2003
  constructor(e, t, i, n, r = "div") {
@@ -2225,7 +2225,7 @@ class Ee {
2225
2225
  this.listen(!1), this.parent.children.splice(this.parent.children.indexOf(this), 1), this.parent.controllers.splice(this.parent.controllers.indexOf(this), 1), this.parent.$children.removeChild(this.domElement);
2226
2226
  }
2227
2227
  }
2228
- class ta extends Ee {
2228
+ class ia extends Ee {
2229
2229
  constructor(e, t, i) {
2230
2230
  super(e, t, i, "lil-boolean", "label"), this.$input = document.createElement("input"), this.$input.setAttribute("type", "checkbox"), this.$input.setAttribute("aria-labelledby", this.$name.id), this.$widget.appendChild(this.$input), this.$input.addEventListener("change", () => {
2231
2231
  this.setValue(this.$input.checked), this._callOnFinishChange();
@@ -2239,7 +2239,7 @@ function wi(a) {
2239
2239
  let e, t;
2240
2240
  return (e = a.match(/(#|0x)?([a-f0-9]{6})/i)) ? t = e[2] : (e = a.match(/rgb\(\s*(\d*)\s*,\s*(\d*)\s*,\s*(\d*)\s*\)/)) ? t = parseInt(e[1]).toString(16).padStart(2, 0) + parseInt(e[2]).toString(16).padStart(2, 0) + parseInt(e[3]).toString(16).padStart(2, 0) : (e = a.match(/^#?([a-f0-9])([a-f0-9])([a-f0-9])$/i)) && (t = e[1] + e[1] + e[2] + e[2] + e[3] + e[3]), t ? "#" + t : !1;
2241
2241
  }
2242
- const ia = {
2242
+ const na = {
2243
2243
  isPrimitive: !0,
2244
2244
  match: (a) => typeof a == "string",
2245
2245
  fromHexString: wi,
@@ -2249,7 +2249,7 @@ const ia = {
2249
2249
  match: (a) => typeof a == "number",
2250
2250
  fromHexString: (a) => parseInt(a.substring(1), 16),
2251
2251
  toHexString: (a) => "#" + a.toString(16).padStart(6, 0)
2252
- }, na = {
2252
+ }, ra = {
2253
2253
  isPrimitive: !1,
2254
2254
  match: (a) => Array.isArray(a) || ArrayBuffer.isView(a),
2255
2255
  fromHexString(a, e, t = 1) {
@@ -2261,7 +2261,7 @@ const ia = {
2261
2261
  const n = a * i << 16 ^ e * i << 8 ^ t * i << 0;
2262
2262
  return Mt.toHexString(n);
2263
2263
  }
2264
- }, ra = {
2264
+ }, sa = {
2265
2265
  isPrimitive: !1,
2266
2266
  match: (a) => Object(a) === a,
2267
2267
  fromHexString(a, e, t = 1) {
@@ -2273,13 +2273,13 @@ const ia = {
2273
2273
  const n = a * i << 16 ^ e * i << 8 ^ t * i << 0;
2274
2274
  return Mt.toHexString(n);
2275
2275
  }
2276
- }, sa = [ia, Mt, na, ra];
2277
- function aa(a) {
2278
- return sa.find((e) => e.match(a));
2276
+ }, aa = [na, Mt, ra, sa];
2277
+ function oa(a) {
2278
+ return aa.find((e) => e.match(a));
2279
2279
  }
2280
- class oa extends Ee {
2280
+ class la extends Ee {
2281
2281
  constructor(e, t, i, n) {
2282
- super(e, t, i, "lil-color"), this.$input = document.createElement("input"), this.$input.setAttribute("type", "color"), this.$input.setAttribute("tabindex", -1), this.$input.setAttribute("aria-labelledby", this.$name.id), this.$text = document.createElement("input"), this.$text.setAttribute("type", "text"), this.$text.setAttribute("spellcheck", "false"), this.$text.setAttribute("aria-labelledby", this.$name.id), this.$display = document.createElement("div"), this.$display.classList.add("lil-display"), this.$display.appendChild(this.$input), this.$widget.appendChild(this.$display), this.$widget.appendChild(this.$text), this._format = aa(this.initialValue), this._rgbScale = n, this._initialValueHexString = this.save(), this._textFocused = !1, this.$input.addEventListener("input", () => {
2282
+ super(e, t, i, "lil-color"), this.$input = document.createElement("input"), this.$input.setAttribute("type", "color"), this.$input.setAttribute("tabindex", -1), this.$input.setAttribute("aria-labelledby", this.$name.id), this.$text = document.createElement("input"), this.$text.setAttribute("type", "text"), this.$text.setAttribute("spellcheck", "false"), this.$text.setAttribute("aria-labelledby", this.$name.id), this.$display = document.createElement("div"), this.$display.classList.add("lil-display"), this.$display.appendChild(this.$input), this.$widget.appendChild(this.$display), this.$widget.appendChild(this.$text), this._format = oa(this.initialValue), this._rgbScale = n, this._initialValueHexString = this.save(), this._textFocused = !1, this.$input.addEventListener("input", () => {
2283
2283
  this._setValueFromHexString(this.$input.value);
2284
2284
  }), this.$input.addEventListener("blur", () => {
2285
2285
  this._callOnFinishChange();
@@ -2320,7 +2320,7 @@ class ri extends Ee {
2320
2320
  }, { passive: !0 }), this.$disable = this.$button;
2321
2321
  }
2322
2322
  }
2323
- class la extends Ee {
2323
+ class ha extends Ee {
2324
2324
  constructor(e, t, i, n, r, s) {
2325
2325
  super(e, t, i, "lil-number"), this._initInput(), this.min(n), this.max(r);
2326
2326
  const o = s !== void 0;
@@ -2455,7 +2455,7 @@ class la extends Ee {
2455
2455
  return this._max !== void 0;
2456
2456
  }
2457
2457
  }
2458
- class ha extends Ee {
2458
+ class ca extends Ee {
2459
2459
  constructor(e, t, i, n) {
2460
2460
  super(e, t, i, "lil-option"), this.$select = document.createElement("select"), this.$select.setAttribute("aria-labelledby", this.$name.id), this.$display = document.createElement("div"), this.$display.classList.add("lil-display"), this.$select.addEventListener("change", () => {
2461
2461
  this.setValue(this._values[this.$select.selectedIndex]), this._callOnFinishChange();
@@ -2476,7 +2476,7 @@ class ha extends Ee {
2476
2476
  return this.$select.selectedIndex = t, this.$display.textContent = t === -1 ? e : this._names[t], this;
2477
2477
  }
2478
2478
  }
2479
- class ca extends Ee {
2479
+ class ua extends Ee {
2480
2480
  constructor(e, t, i) {
2481
2481
  super(e, t, i, "lil-string"), this.$input = document.createElement("input"), this.$input.setAttribute("type", "text"), this.$input.setAttribute("spellcheck", "false"), this.$input.setAttribute("aria-labelledby", this.$name.id), this.$input.addEventListener("input", () => {
2482
2482
  this.setValue(this.$input.value);
@@ -2490,7 +2490,7 @@ class ca extends Ee {
2490
2490
  return this.$input.value = this.getValue(), this;
2491
2491
  }
2492
2492
  }
2493
- var ua = `.lil-gui {
2493
+ var da = `.lil-gui {
2494
2494
  font-family: var(--font-family);
2495
2495
  font-size: var(--font-size);
2496
2496
  line-height: 1;
@@ -2912,7 +2912,7 @@ var ua = `.lil-gui {
2912
2912
  font-family: "lil-gui";
2913
2913
  src: url("data:application/font-woff2;charset=utf-8;base64,d09GMgABAAAAAALkAAsAAAAABtQAAAKVAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHFQGYACDMgqBBIEbATYCJAMUCwwABCAFhAoHgQQbHAbIDiUFEYVARAAAYQTVWNmz9MxhEgodq49wYRUFKE8GWNiUBxI2LBRaVnc51U83Gmhs0Q7JXWMiz5eteLwrKwuxHO8VFxUX9UpZBs6pa5ABRwHA+t3UxUnH20EvVknRerzQgX6xC/GH6ZUvTcAjAv122dF28OTqCXrPuyaDER30YBA1xnkVutDDo4oCi71Ca7rrV9xS8dZHbPHefsuwIyCpmT7j+MnjAH5X3984UZoFFuJ0yiZ4XEJFxjagEBeqs+e1iyK8Xf/nOuwF+vVK0ur765+vf7txotUi0m3N0m/84RGSrBCNrh8Ee5GjODjF4gnWP+dJrH/Lk9k4oT6d+gr6g/wssA2j64JJGP6cmx554vUZnpZfn6ZfX2bMwPPrlANsB86/DiHjhl0OP+c87+gaJo/gY084s3HoYL/ZkWHTRfBXvvoHnnkHvngKun4KBE/ede7tvq3/vQOxDXB1/fdNz6XbPdcr0Vhpojj9dG+owuSKFsslCi1tgEjirjXdwMiov2EioadxmqTHUCIwo8NgQaeIasAi0fTYSPTbSmwbMOFduyh9wvBrESGY0MtgRjtgQR8Q1bRPohn2UoCRZf9wyYANMXFeJTysqAe0I4mrherOekFdKMrYvJjLvOIUM9SuwYB5DVZUwwVjJJOaUnZCmcEkIZZrKqNvRGRMvmFZsmhP4VMKCSXBhSqUBxgMS7h0cZvEd71AWkEhGWaeMFcNnpqyJkyXgYL7PQ1MoSq0wDAkRtJIijkZSmqYTiSImfLiSWXIZwhRh3Rug2X0kk1Dgj+Iu43u5p98ghopcpSo0Uyc8SnjlYX59WUeaMoDqmVD2TOWD9a4pCRAzf2ECgwGcrHjPOWY9bNxq/OL3I/QjwEAAAA=") format("woff2");
2914
2914
  }`;
2915
- function da(a) {
2915
+ function pa(a) {
2916
2916
  const e = document.createElement("style");
2917
2917
  e.innerHTML = a;
2918
2918
  const t = document.querySelector("head link[rel=stylesheet], head style");
@@ -2968,7 +2968,7 @@ class Vi {
2968
2968
  this.parent.children.push(this), this.parent.folders.push(this), this.parent.$children.appendChild(this.domElement);
2969
2969
  return;
2970
2970
  }
2971
- this.domElement.classList.add("lil-root"), l && this.domElement.classList.add("lil-allow-touch-styles"), !pn && o && (da(ua), pn = !0), i ? i.appendChild(this.domElement) : t && (this.domElement.classList.add("lil-auto-place", "autoPlace"), document.body.appendChild(this.domElement)), n && this.domElement.style.setProperty("--width", n + "px"), this._closeFolders = s;
2971
+ this.domElement.classList.add("lil-root"), l && this.domElement.classList.add("lil-allow-touch-styles"), !pn && o && (pa(da), pn = !0), i ? i.appendChild(this.domElement) : t && (this.domElement.classList.add("lil-auto-place", "autoPlace"), document.body.appendChild(this.domElement)), n && this.domElement.style.setProperty("--width", n + "px"), this._closeFolders = s;
2972
2972
  }
2973
2973
  /**
2974
2974
  * Adds a controller to the GUI, inferring controller type using the `typeof` operator.
@@ -2987,15 +2987,15 @@ class Vi {
2987
2987
  */
2988
2988
  add(e, t, i, n, r) {
2989
2989
  if (Object(i) === i)
2990
- return new ha(this, e, t, i);
2990
+ return new ca(this, e, t, i);
2991
2991
  const s = e[t];
2992
2992
  switch (typeof s) {
2993
2993
  case "number":
2994
- return new la(this, e, t, i, n, r);
2994
+ return new ha(this, e, t, i, n, r);
2995
2995
  case "boolean":
2996
- return new ta(this, e, t);
2996
+ return new ia(this, e, t);
2997
2997
  case "string":
2998
- return new ca(this, e, t);
2998
+ return new ua(this, e, t);
2999
2999
  case "function":
3000
3000
  return new ri(this, e, t);
3001
3001
  }
@@ -3024,7 +3024,7 @@ class Vi {
3024
3024
  * @returns {Controller}
3025
3025
  */
3026
3026
  addColor(e, t, i = 1) {
3027
- return new oa(this, e, t, i);
3027
+ return new la(this, e, t, i);
3028
3028
  }
3029
3029
  /**
3030
3030
  * Adds a folder to the GUI, which is just another GUI. This method returns
@@ -3251,7 +3251,7 @@ class Vi {
3251
3251
  }), e;
3252
3252
  }
3253
3253
  }
3254
- const fn = { type: "change" }, ji = { type: "start" }, Sr = { type: "end" }, Ot = new Fr(), mn = new zr(), pa = Math.cos(70 * Nr.DEG2RAD), Y = new oe(), te = 2 * Math.PI, I = {
3254
+ const fn = { type: "change" }, ji = { type: "start" }, Mr = { type: "end" }, It = new zr(), mn = new Nr(), fa = Math.cos(70 * Br.DEG2RAD), Y = new oe(), te = 2 * Math.PI, L = {
3255
3255
  NONE: -1,
3256
3256
  ROTATE: 0,
3257
3257
  DOLLY: 1,
@@ -3261,7 +3261,7 @@ const fn = { type: "change" }, ji = { type: "start" }, Sr = { type: "end" }, Ot
3261
3261
  TOUCH_DOLLY_PAN: 5,
3262
3262
  TOUCH_DOLLY_ROTATE: 6
3263
3263
  }, si = 1e-6;
3264
- class fa extends Ur {
3264
+ class ma extends Ur {
3265
3265
  /**
3266
3266
  * Constructs a new controls instance.
3267
3267
  *
@@ -3269,7 +3269,7 @@ class fa extends Ur {
3269
3269
  * @param {?HTMLElement} domElement - The HTML element used for event listeners.
3270
3270
  */
3271
3271
  constructor(e, t = null) {
3272
- super(e, t), this.state = I.NONE, this.target = new oe(), this.cursor = new oe(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.keyRotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: nt.ROTATE, MIDDLE: nt.DOLLY, RIGHT: nt.PAN }, this.touches = { ONE: Je.ROTATE, TWO: Je.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new oe(), this._lastQuaternion = new Zi(), this._lastTargetPosition = new oe(), this._quat = new Zi().setFromUnitVectors(e.up, new oe(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new Ki(), this._sphericalDelta = new Ki(), this._scale = 1, this._panOffset = new oe(), this._rotateStart = new fe(), this._rotateEnd = new fe(), this._rotateDelta = new fe(), this._panStart = new fe(), this._panEnd = new fe(), this._panDelta = new fe(), this._dollyStart = new fe(), this._dollyEnd = new fe(), this._dollyDelta = new fe(), this._dollyDirection = new oe(), this._mouse = new fe(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = ga.bind(this), this._onPointerDown = ma.bind(this), this._onPointerUp = _a.bind(this), this._onContextMenu = Pa.bind(this), this._onMouseWheel = ba.bind(this), this._onKeyDown = va.bind(this), this._onTouchStart = Ea.bind(this), this._onTouchMove = wa.bind(this), this._onMouseDown = ya.bind(this), this._onMouseMove = xa.bind(this), this._interceptControlDown = Ca.bind(this), this._interceptControlUp = Aa.bind(this), this.domElement !== null && this.connect(this.domElement), this.update();
3272
+ super(e, t), this.state = L.NONE, this.target = new oe(), this.cursor = new oe(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.keyRotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: nt.ROTATE, MIDDLE: nt.DOLLY, RIGHT: nt.PAN }, this.touches = { ONE: Je.ROTATE, TWO: Je.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new oe(), this._lastQuaternion = new Zi(), this._lastTargetPosition = new oe(), this._quat = new Zi().setFromUnitVectors(e.up, new oe(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new Ki(), this._sphericalDelta = new Ki(), this._scale = 1, this._panOffset = new oe(), this._rotateStart = new fe(), this._rotateEnd = new fe(), this._rotateDelta = new fe(), this._panStart = new fe(), this._panEnd = new fe(), this._panDelta = new fe(), this._dollyStart = new fe(), this._dollyEnd = new fe(), this._dollyDelta = new fe(), this._dollyDirection = new oe(), this._mouse = new fe(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = _a.bind(this), this._onPointerDown = ga.bind(this), this._onPointerUp = ya.bind(this), this._onContextMenu = Ca.bind(this), this._onMouseWheel = va.bind(this), this._onKeyDown = Ea.bind(this), this._onTouchStart = wa.bind(this), this._onTouchMove = Pa.bind(this), this._onMouseDown = xa.bind(this), this._onMouseMove = ba.bind(this), this._interceptControlDown = Aa.bind(this), this._interceptControlUp = Ta.bind(this), this.domElement !== null && this.connect(this.domElement), this.update();
3273
3273
  }
3274
3274
  connect(e) {
3275
3275
  super.connect(e), this.domElement.addEventListener("pointerdown", this._onPointerDown), this.domElement.addEventListener("pointercancel", this._onPointerUp), this.domElement.addEventListener("contextmenu", this._onContextMenu), this.domElement.addEventListener("wheel", this._onMouseWheel, { passive: !1 }), this.domElement.getRootNode().addEventListener("keydown", this._interceptControlDown, { passive: !0, capture: !0 }), this.domElement.style.touchAction = "none";
@@ -3330,11 +3330,11 @@ class fa extends Ur {
3330
3330
  * was called, or the initial state.
3331
3331
  */
3332
3332
  reset() {
3333
- this.target.copy(this.target0), this.object.position.copy(this.position0), this.object.zoom = this.zoom0, this.object.updateProjectionMatrix(), this.dispatchEvent(fn), this.update(), this.state = I.NONE;
3333
+ this.target.copy(this.target0), this.object.position.copy(this.position0), this.object.zoom = this.zoom0, this.object.updateProjectionMatrix(), this.dispatchEvent(fn), this.update(), this.state = L.NONE;
3334
3334
  }
3335
3335
  update(e = null) {
3336
3336
  const t = this.object.position;
3337
- Y.copy(t).sub(this.target), Y.applyQuaternion(this._quat), this._spherical.setFromVector3(Y), this.autoRotate && this.state === I.NONE && this._rotateLeft(this._getAutoRotationAngle(e)), this.enableDamping ? (this._spherical.theta += this._sphericalDelta.theta * this.dampingFactor, this._spherical.phi += this._sphericalDelta.phi * this.dampingFactor) : (this._spherical.theta += this._sphericalDelta.theta, this._spherical.phi += this._sphericalDelta.phi);
3337
+ Y.copy(t).sub(this.target), Y.applyQuaternion(this._quat), this._spherical.setFromVector3(Y), this.autoRotate && this.state === L.NONE && this._rotateLeft(this._getAutoRotationAngle(e)), this.enableDamping ? (this._spherical.theta += this._sphericalDelta.theta * this.dampingFactor, this._spherical.phi += this._sphericalDelta.phi * this.dampingFactor) : (this._spherical.theta += this._sphericalDelta.theta, this._spherical.phi += this._sphericalDelta.phi);
3338
3338
  let i = this.minAzimuthAngle, n = this.maxAzimuthAngle;
3339
3339
  isFinite(i) && isFinite(n) && (i < -Math.PI ? i += te : i > Math.PI && (i -= te), n < -Math.PI ? n += te : n > Math.PI && (n -= te), i <= n ? this._spherical.theta = Math.max(i, Math.min(n, this._spherical.theta)) : this._spherical.theta = this._spherical.theta > (i + n) / 2 ? Math.max(i, this._spherical.theta) : Math.min(n, this._spherical.theta)), this._spherical.phi = Math.max(this.minPolarAngle, Math.min(this.maxPolarAngle, this._spherical.phi)), this._spherical.makeSafe(), this.enableDamping === !0 ? this.target.addScaledVector(this._panOffset, this.dampingFactor) : this.target.add(this._panOffset), this.target.sub(this.cursor), this.target.clampLength(this.minTargetRadius, this.maxTargetRadius), this.target.add(this.cursor);
3340
3340
  let r = !1;
@@ -3360,7 +3360,7 @@ class fa extends Ur {
3360
3360
  h.unproject(this.object), this.object.position.sub(h).add(o), this.object.updateMatrixWorld(), s = Y.length();
3361
3361
  } else
3362
3362
  console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."), this.zoomToCursor = !1;
3363
- s !== null && (this.screenSpacePanning ? this.target.set(0, 0, -1).transformDirection(this.object.matrix).multiplyScalar(s).add(this.object.position) : (Ot.origin.copy(this.object.position), Ot.direction.set(0, 0, -1).transformDirection(this.object.matrix), Math.abs(this.object.up.dot(Ot.direction)) < pa ? this.object.lookAt(this.target) : (mn.setFromNormalAndCoplanarPoint(this.object.up, this.target), Ot.intersectPlane(mn, this.target))));
3363
+ s !== null && (this.screenSpacePanning ? this.target.set(0, 0, -1).transformDirection(this.object.matrix).multiplyScalar(s).add(this.object.position) : (It.origin.copy(this.object.position), It.direction.set(0, 0, -1).transformDirection(this.object.matrix), Math.abs(this.object.up.dot(It.direction)) < fa ? this.object.lookAt(this.target) : (mn.setFromNormalAndCoplanarPoint(this.object.up, this.target), It.intersectPlane(mn, this.target))));
3364
3364
  } else if (this.object.isOrthographicCamera) {
3365
3365
  const s = this.object.zoom;
3366
3366
  this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale)), s !== this.object.zoom && (this.object.updateProjectionMatrix(), r = !0);
@@ -3557,16 +3557,16 @@ class fa extends Ur {
3557
3557
  return e.ctrlKey && !this._controlActive && (i.deltaY *= 10), i;
3558
3558
  }
3559
3559
  }
3560
- function ma(a) {
3560
+ function ga(a) {
3561
3561
  this.enabled !== !1 && (this._pointers.length === 0 && (this.domElement.setPointerCapture(a.pointerId), this.domElement.addEventListener("pointermove", this._onPointerMove), this.domElement.addEventListener("pointerup", this._onPointerUp)), !this._isTrackingPointer(a) && (this._addPointer(a), a.pointerType === "touch" ? this._onTouchStart(a) : this._onMouseDown(a)));
3562
3562
  }
3563
- function ga(a) {
3563
+ function _a(a) {
3564
3564
  this.enabled !== !1 && (a.pointerType === "touch" ? this._onTouchMove(a) : this._onMouseMove(a));
3565
3565
  }
3566
- function _a(a) {
3566
+ function ya(a) {
3567
3567
  switch (this._removePointer(a), this._pointers.length) {
3568
3568
  case 0:
3569
- this.domElement.releasePointerCapture(a.pointerId), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.domElement.removeEventListener("pointerup", this._onPointerUp), this.dispatchEvent(Sr), this.state = I.NONE;
3569
+ this.domElement.releasePointerCapture(a.pointerId), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.domElement.removeEventListener("pointerup", this._onPointerUp), this.dispatchEvent(Mr), this.state = L.NONE;
3570
3570
  break;
3571
3571
  case 1:
3572
3572
  const e = this._pointers[0], t = this._pointerPositions[e];
@@ -3574,7 +3574,7 @@ function _a(a) {
3574
3574
  break;
3575
3575
  }
3576
3576
  }
3577
- function ya(a) {
3577
+ function xa(a) {
3578
3578
  let e;
3579
3579
  switch (a.button) {
3580
3580
  case 0:
@@ -3592,120 +3592,120 @@ function ya(a) {
3592
3592
  switch (e) {
3593
3593
  case nt.DOLLY:
3594
3594
  if (this.enableZoom === !1) return;
3595
- this._handleMouseDownDolly(a), this.state = I.DOLLY;
3595
+ this._handleMouseDownDolly(a), this.state = L.DOLLY;
3596
3596
  break;
3597
3597
  case nt.ROTATE:
3598
3598
  if (a.ctrlKey || a.metaKey || a.shiftKey) {
3599
3599
  if (this.enablePan === !1) return;
3600
- this._handleMouseDownPan(a), this.state = I.PAN;
3600
+ this._handleMouseDownPan(a), this.state = L.PAN;
3601
3601
  } else {
3602
3602
  if (this.enableRotate === !1) return;
3603
- this._handleMouseDownRotate(a), this.state = I.ROTATE;
3603
+ this._handleMouseDownRotate(a), this.state = L.ROTATE;
3604
3604
  }
3605
3605
  break;
3606
3606
  case nt.PAN:
3607
3607
  if (a.ctrlKey || a.metaKey || a.shiftKey) {
3608
3608
  if (this.enableRotate === !1) return;
3609
- this._handleMouseDownRotate(a), this.state = I.ROTATE;
3609
+ this._handleMouseDownRotate(a), this.state = L.ROTATE;
3610
3610
  } else {
3611
3611
  if (this.enablePan === !1) return;
3612
- this._handleMouseDownPan(a), this.state = I.PAN;
3612
+ this._handleMouseDownPan(a), this.state = L.PAN;
3613
3613
  }
3614
3614
  break;
3615
3615
  default:
3616
- this.state = I.NONE;
3616
+ this.state = L.NONE;
3617
3617
  }
3618
- this.state !== I.NONE && this.dispatchEvent(ji);
3618
+ this.state !== L.NONE && this.dispatchEvent(ji);
3619
3619
  }
3620
- function xa(a) {
3620
+ function ba(a) {
3621
3621
  switch (this.state) {
3622
- case I.ROTATE:
3622
+ case L.ROTATE:
3623
3623
  if (this.enableRotate === !1) return;
3624
3624
  this._handleMouseMoveRotate(a);
3625
3625
  break;
3626
- case I.DOLLY:
3626
+ case L.DOLLY:
3627
3627
  if (this.enableZoom === !1) return;
3628
3628
  this._handleMouseMoveDolly(a);
3629
3629
  break;
3630
- case I.PAN:
3630
+ case L.PAN:
3631
3631
  if (this.enablePan === !1) return;
3632
3632
  this._handleMouseMovePan(a);
3633
3633
  break;
3634
3634
  }
3635
3635
  }
3636
- function ba(a) {
3637
- this.enabled === !1 || this.enableZoom === !1 || this.state !== I.NONE || (a.preventDefault(), this.dispatchEvent(ji), this._handleMouseWheel(this._customWheelEvent(a)), this.dispatchEvent(Sr));
3638
- }
3639
3636
  function va(a) {
3640
- this.enabled !== !1 && this._handleKeyDown(a);
3637
+ this.enabled === !1 || this.enableZoom === !1 || this.state !== L.NONE || (a.preventDefault(), this.dispatchEvent(ji), this._handleMouseWheel(this._customWheelEvent(a)), this.dispatchEvent(Mr));
3641
3638
  }
3642
3639
  function Ea(a) {
3640
+ this.enabled !== !1 && this._handleKeyDown(a);
3641
+ }
3642
+ function wa(a) {
3643
3643
  switch (this._trackPointer(a), this._pointers.length) {
3644
3644
  case 1:
3645
3645
  switch (this.touches.ONE) {
3646
3646
  case Je.ROTATE:
3647
3647
  if (this.enableRotate === !1) return;
3648
- this._handleTouchStartRotate(a), this.state = I.TOUCH_ROTATE;
3648
+ this._handleTouchStartRotate(a), this.state = L.TOUCH_ROTATE;
3649
3649
  break;
3650
3650
  case Je.PAN:
3651
3651
  if (this.enablePan === !1) return;
3652
- this._handleTouchStartPan(a), this.state = I.TOUCH_PAN;
3652
+ this._handleTouchStartPan(a), this.state = L.TOUCH_PAN;
3653
3653
  break;
3654
3654
  default:
3655
- this.state = I.NONE;
3655
+ this.state = L.NONE;
3656
3656
  }
3657
3657
  break;
3658
3658
  case 2:
3659
3659
  switch (this.touches.TWO) {
3660
3660
  case Je.DOLLY_PAN:
3661
3661
  if (this.enableZoom === !1 && this.enablePan === !1) return;
3662
- this._handleTouchStartDollyPan(a), this.state = I.TOUCH_DOLLY_PAN;
3662
+ this._handleTouchStartDollyPan(a), this.state = L.TOUCH_DOLLY_PAN;
3663
3663
  break;
3664
3664
  case Je.DOLLY_ROTATE:
3665
3665
  if (this.enableZoom === !1 && this.enableRotate === !1) return;
3666
- this._handleTouchStartDollyRotate(a), this.state = I.TOUCH_DOLLY_ROTATE;
3666
+ this._handleTouchStartDollyRotate(a), this.state = L.TOUCH_DOLLY_ROTATE;
3667
3667
  break;
3668
3668
  default:
3669
- this.state = I.NONE;
3669
+ this.state = L.NONE;
3670
3670
  }
3671
3671
  break;
3672
3672
  default:
3673
- this.state = I.NONE;
3673
+ this.state = L.NONE;
3674
3674
  }
3675
- this.state !== I.NONE && this.dispatchEvent(ji);
3675
+ this.state !== L.NONE && this.dispatchEvent(ji);
3676
3676
  }
3677
- function wa(a) {
3677
+ function Pa(a) {
3678
3678
  switch (this._trackPointer(a), this.state) {
3679
- case I.TOUCH_ROTATE:
3679
+ case L.TOUCH_ROTATE:
3680
3680
  if (this.enableRotate === !1) return;
3681
3681
  this._handleTouchMoveRotate(a), this.update();
3682
3682
  break;
3683
- case I.TOUCH_PAN:
3683
+ case L.TOUCH_PAN:
3684
3684
  if (this.enablePan === !1) return;
3685
3685
  this._handleTouchMovePan(a), this.update();
3686
3686
  break;
3687
- case I.TOUCH_DOLLY_PAN:
3687
+ case L.TOUCH_DOLLY_PAN:
3688
3688
  if (this.enableZoom === !1 && this.enablePan === !1) return;
3689
3689
  this._handleTouchMoveDollyPan(a), this.update();
3690
3690
  break;
3691
- case I.TOUCH_DOLLY_ROTATE:
3691
+ case L.TOUCH_DOLLY_ROTATE:
3692
3692
  if (this.enableZoom === !1 && this.enableRotate === !1) return;
3693
3693
  this._handleTouchMoveDollyRotate(a), this.update();
3694
3694
  break;
3695
3695
  default:
3696
- this.state = I.NONE;
3696
+ this.state = L.NONE;
3697
3697
  }
3698
3698
  }
3699
- function Pa(a) {
3699
+ function Ca(a) {
3700
3700
  this.enabled !== !1 && a.preventDefault();
3701
3701
  }
3702
- function Ca(a) {
3702
+ function Aa(a) {
3703
3703
  a.key === "Control" && (this._controlActive = !0, this.domElement.getRootNode().addEventListener("keyup", this._interceptControlUp, { passive: !0, capture: !0 }));
3704
3704
  }
3705
- function Aa(a) {
3705
+ function Ta(a) {
3706
3706
  a.key === "Control" && (this._controlActive = !1, this.domElement.getRootNode().removeEventListener("keyup", this._interceptControlUp, { passive: !0, capture: !0 }));
3707
3707
  }
3708
- const Mr = [
3708
+ const Dr = [
3709
3709
  // Major economies and populous nations
3710
3710
  { id: "156", code: "CN", name: "China", population: 1412, gdpPerCapita: 21476, co2Emissions: 8, lifeExpectancy: 78.2, humanDevIndex: 0.768, internetUsers: 73, renewableEnergy: 15, urbanPopulation: 64.7, healthExpenditure: 5.4, educationExpenditure: 3.6, forestArea: 23.3, accessElectricity: 100 },
3711
3711
  { id: "356", code: "IN", name: "India", population: 1408, gdpPerCapita: 8379, co2Emissions: 1.9, lifeExpectancy: 70.8, humanDevIndex: 0.633, internetUsers: 47, renewableEnergy: 38, urbanPopulation: 35.9, healthExpenditure: 3, educationExpenditure: 4.5, forestArea: 24.3, accessElectricity: 99.6 },
@@ -3804,7 +3804,7 @@ const Mr = [
3804
3804
  { id: "858", code: "UY", name: "Uruguay", population: 3.5, gdpPerCapita: 25041, co2Emissions: 2, lifeExpectancy: 78.4, humanDevIndex: 0.83, internetUsers: 87, renewableEnergy: 55, urbanPopulation: 95.6, healthExpenditure: 9.3, educationExpenditure: 5, forestArea: 10.5, accessElectricity: 100 },
3805
3805
  { id: "188", code: "CR", name: "Costa Rica", population: 5, gdpPerCapita: 23101, co2Emissions: 1.5, lifeExpectancy: 80.8, humanDevIndex: 0.809, internetUsers: 81, renewableEnergy: 73, urbanPopulation: 81.4, healthExpenditure: 7.3, educationExpenditure: 6.7, forestArea: 59, accessElectricity: 100 },
3806
3806
  { id: "591", code: "PA", name: "Panama", population: 4.4, gdpPerCapita: 35317, co2Emissions: 2.5, lifeExpectancy: 79.2, humanDevIndex: 0.805, internetUsers: 68, renewableEnergy: 35, urbanPopulation: 68.4, healthExpenditure: 7.3, educationExpenditure: 3.2, forestArea: 62.1, accessElectricity: 95 }
3807
- ], Ta = [
3807
+ ], Sa = [
3808
3808
  {
3809
3809
  id: "humanDevIndex",
3810
3810
  name: "Human Development Index",
@@ -3906,11 +3906,11 @@ const Mr = [
3906
3906
  format: (a) => `${a.toFixed(0)}%`
3907
3907
  }
3908
3908
  ];
3909
- function Sa(a, e) {
3909
+ function Ma(a, e) {
3910
3910
  const [t, i] = a.domain;
3911
3911
  return Math.max(0, Math.min(1, (e - t) / (i - t)));
3912
3912
  }
3913
- const Ma = {
3913
+ const Da = {
3914
3914
  // North America
3915
3915
  US: "840",
3916
3916
  USA: "840",
@@ -4111,9 +4111,9 @@ const Ma = {
4111
4111
  };
4112
4112
  function gn(a) {
4113
4113
  const e = a.toUpperCase().trim();
4114
- return /^\d{1,3}$/.test(a) ? a.padStart(3, "0") : Ma[e] || a;
4114
+ return /^\d{1,3}$/.test(a) ? a.padStart(3, "0") : Da[e] || a;
4115
4115
  }
4116
- function Da(a) {
4116
+ function Ra(a) {
4117
4117
  const e = {};
4118
4118
  return a instanceof Map ? a.forEach((t, i) => {
4119
4119
  e[gn(i)] = t;
@@ -4121,7 +4121,7 @@ function Da(a) {
4121
4121
  e[gn(t)] = i;
4122
4122
  }), e;
4123
4123
  }
4124
- const It = 4096, Lt = 2048, Ra = `
4124
+ const Lt = 4096, Ot = 2048, Ia = `
4125
4125
  importScripts('https://unpkg.com/topojson-client@3.1.0/dist/topojson-client.min.js');
4126
4126
 
4127
4127
  self.onmessage = async (e) => {
@@ -4196,12 +4196,12 @@ class it {
4196
4196
  // Static cache to share loaded topology data across instances
4197
4197
  static cache = /* @__PURE__ */ new Map();
4198
4198
  constructor(e, t, i) {
4199
- this.canvas = document.createElement("canvas"), this.canvas.width = It, this.canvas.height = Lt, this.ctx = this.canvas.getContext("2d", { willReadFrequently: !0 }), this.onProgress = t, this.onTextureUpdate = i, this.topologyConfig = {
4199
+ this.canvas = document.createElement("canvas"), this.canvas.width = Lt, this.canvas.height = Ot, this.ctx = this.canvas.getContext("2d", { willReadFrequently: !0 }), this.onProgress = t, this.onTextureUpdate = i, this.topologyConfig = {
4200
4200
  url: e?.url || "https://cdn.jsdelivr.net/npm/world-atlas@2/countries-110m.json",
4201
4201
  objectName: e?.objectName || "countries",
4202
4202
  disableNormalization: e?.disableNormalization || !1,
4203
4203
  idProperty: e?.idProperty
4204
- }, this.statsMap = /* @__PURE__ */ new Map(), Mr.forEach((n) => {
4204
+ }, this.statsMap = /* @__PURE__ */ new Map(), Dr.forEach((n) => {
4205
4205
  this.statsMap.set(n.id, n);
4206
4206
  }), this.loadCountries();
4207
4207
  }
@@ -4244,7 +4244,7 @@ class it {
4244
4244
  */
4245
4245
  loadInWorker(e, t, i) {
4246
4246
  return new Promise((n, r) => {
4247
- const s = new Blob([Ra], { type: "application/javascript" }), o = URL.createObjectURL(s), l = new Worker(o);
4247
+ const s = new Blob([Ia], { type: "application/javascript" }), o = URL.createObjectURL(s), l = new Worker(o);
4248
4248
  l.onmessage = (h) => {
4249
4249
  URL.revokeObjectURL(o), l.terminate(), h.data.success ? n(h.data.features) : r(new Error(h.data.error));
4250
4250
  }, l.onerror = (h) => {
@@ -4259,6 +4259,14 @@ class it {
4259
4259
  for (; !this.loaded; )
4260
4260
  await new Promise((e) => setTimeout(e, 100));
4261
4261
  }
4262
+ /**
4263
+ * manually set features (e.g. for Urban Mapper)
4264
+ */
4265
+ setFeatures(e) {
4266
+ e.forEach((t) => {
4267
+ t.path || (t.path = this.createPath(t));
4268
+ }), this.countries = e, this.loaded = !0;
4269
+ }
4262
4270
  /**
4263
4271
  * Render a choropleth texture for the given statistic
4264
4272
  * Now supporting Progressive Rendering to prevent UI freezes
@@ -4266,7 +4274,7 @@ class it {
4266
4274
  renderTexture(e) {
4267
4275
  this.currentRenderId++;
4268
4276
  const t = this.currentRenderId;
4269
- if (this.ctx.fillStyle = "rgba(10, 20, 30, 0.9)", this.ctx.fillRect(0, 0, It, Lt), this.onTextureUpdate?.(), !this.loaded)
4277
+ if (this.ctx.fillStyle = "rgba(10, 20, 30, 0.9)", this.ctx.fillRect(0, 0, Lt, Ot), this.onTextureUpdate?.(), !this.loaded)
4270
4278
  return this.canvas;
4271
4279
  const i = this.countries.length < 1500;
4272
4280
  this.ctx.lineWidth = 0.5, this.ctx.strokeStyle = "rgba(0, 0, 0, 0.3)";
@@ -4279,7 +4287,7 @@ class it {
4279
4287
  const c = this.countries[h], u = this.statsMap.get(c.id);
4280
4288
  let f = "#2a2a2a";
4281
4289
  if (u) {
4282
- const g = e.accessor(u), p = Sa(e, g);
4290
+ const g = e.accessor(u), p = Ma(e, g);
4283
4291
  f = this.interpolateColor(e.colorScale, p);
4284
4292
  }
4285
4293
  this.drawFeature(c, f, i);
@@ -4318,7 +4326,7 @@ class it {
4318
4326
  });
4319
4327
  }
4320
4328
  projectPoint(e, t) {
4321
- const i = (e + 180) / 360 * It, n = (90 - t) / 180 * Lt;
4329
+ const i = (e + 180) / 360 * Lt, n = (90 - t) / 180 * Ot;
4322
4330
  return [i, n];
4323
4331
  }
4324
4332
  interpolateColor(e, t) {
@@ -4343,9 +4351,9 @@ class it {
4343
4351
  renderCustomTexture(e, t, i) {
4344
4352
  this.currentRenderId++;
4345
4353
  const n = this.currentRenderId;
4346
- if (this.ctx.fillStyle = "rgba(10, 20, 30, 0.9)", this.ctx.fillRect(0, 0, It, Lt), this.onTextureUpdate?.(), !this.loaded)
4354
+ if (this.ctx.fillStyle = "rgba(10, 20, 30, 0.9)", this.ctx.fillRect(0, 0, Lt, Ot), this.onTextureUpdate?.(), !this.loaded)
4347
4355
  return this.canvas;
4348
- const r = this.topologyConfig?.disableNormalization ? e instanceof Map ? Object.fromEntries(e) : e : Da(e), s = this.countries.length < 1500;
4356
+ const r = this.topologyConfig?.disableNormalization ? e instanceof Map ? Object.fromEntries(e) : e : Ra(e), s = this.countries.length < 1500;
4349
4357
  this.ctx.lineWidth = 0.5, this.ctx.strokeStyle = "rgba(0, 0, 0, 0.3)";
4350
4358
  const o = 500, l = this.countries.length;
4351
4359
  let h = 0;
@@ -4400,7 +4408,7 @@ class it {
4400
4408
  return [f, d, g, m];
4401
4409
  }
4402
4410
  }
4403
- class Oa extends Br {
4411
+ class La extends $r {
4404
4412
  /**
4405
4413
  * Constructs a new CSS2D object.
4406
4414
  *
@@ -4417,8 +4425,8 @@ class Oa extends Br {
4417
4425
  return super.copy(e, t), this.element = e.element.cloneNode(!0), this.center = e.center, this;
4418
4426
  }
4419
4427
  }
4420
- const Qe = new oe(), _n = new Sn(), yn = new Sn(), xn = new oe(), bn = new oe();
4421
- class Ia {
4428
+ const Qe = new oe(), _n = new Mn(), yn = new Mn(), xn = new oe(), bn = new oe();
4429
+ class Oa {
4422
4430
  /**
4423
4431
  * Constructs a new CSS2D renderer.
4424
4432
  *
@@ -4483,7 +4491,7 @@ class Ia {
4483
4491
  }
4484
4492
  }
4485
4493
  }
4486
- const La = {
4494
+ const ka = {
4487
4495
  // Major economies
4488
4496
  CN: [35, 105],
4489
4497
  IN: [22, 78],
@@ -4582,7 +4590,7 @@ const La = {
4582
4590
  UY: [-33, -56],
4583
4591
  CR: [10, -84],
4584
4592
  PA: [9, -80]
4585
- }, ka = /* @__PURE__ */ new Set([
4593
+ }, Fa = /* @__PURE__ */ new Set([
4586
4594
  "CN",
4587
4595
  "IN",
4588
4596
  "US",
@@ -4613,7 +4621,7 @@ const La = {
4613
4621
  "PK",
4614
4622
  "BD",
4615
4623
  "VN"
4616
- ]), Ua = /* @__PURE__ */ new Set(["CN", "IN", "US", "BR", "RU", "AU", "CA"]), Fa = /* @__PURE__ */ new Set(["RU", "CA", "US", "CN", "BR", "AU"]), za = /* @__PURE__ */ new Set([
4624
+ ]), Ua = /* @__PURE__ */ new Set(["CN", "IN", "US", "BR", "RU", "AU", "CA"]), za = /* @__PURE__ */ new Set(["RU", "CA", "US", "CN", "BR", "AU"]), Na = /* @__PURE__ */ new Set([
4617
4625
  "IN",
4618
4626
  "AR",
4619
4627
  "KZ",
@@ -4644,7 +4652,7 @@ const La = {
4644
4652
  "TR",
4645
4653
  "CL",
4646
4654
  "MM"
4647
- ]), Na = /* @__PURE__ */ new Set([
4655
+ ]), Ba = /* @__PURE__ */ new Set([
4648
4656
  "AF",
4649
4657
  "UA",
4650
4658
  "MG",
@@ -4686,7 +4694,7 @@ const La = {
4686
4694
  "IQ",
4687
4695
  "BD"
4688
4696
  ]);
4689
- class Ba {
4697
+ class $a {
4690
4698
  labelRenderer;
4691
4699
  labels = [];
4692
4700
  labelGroup;
@@ -4696,7 +4704,7 @@ class Ba {
4696
4704
  globe = null;
4697
4705
  camera = null;
4698
4706
  constructor(e, t) {
4699
- this.sphereRadius = t, this.labelRenderer = new Ia();
4707
+ this.sphereRadius = t, this.labelRenderer = new Oa();
4700
4708
  const i = e.clientWidth || 800, n = e.clientHeight || 600;
4701
4709
  this.labelRenderer.setSize(i, n), 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();
4702
4710
  }
@@ -4790,15 +4798,15 @@ class Ba {
4790
4798
  `, document.head.appendChild(e);
4791
4799
  }
4792
4800
  getSizeCategory(e) {
4793
- return Fa.has(e) ? "large" : za.has(e) ? "medium" : Na.has(e) ? "small" : "tiny";
4801
+ return za.has(e) ? "large" : Na.has(e) ? "medium" : Ba.has(e) ? "small" : "tiny";
4794
4802
  }
4795
4803
  createLabels() {
4796
- Mr.forEach((e) => {
4797
- const t = La[e.code];
4804
+ Dr.forEach((e) => {
4805
+ const t = ka[e.code];
4798
4806
  if (!t) return;
4799
4807
  const [i, n] = t, r = this.getSizeCategory(e.code), s = document.createElement("div");
4800
4808
  s.className = `country-label hidden size-${r}`, s.textContent = e.name;
4801
- const o = new Oa(s), l = {
4809
+ const o = new La(s), l = {
4802
4810
  element: s,
4803
4811
  object: o,
4804
4812
  country: e,
@@ -4850,7 +4858,7 @@ class Ba {
4850
4858
  n = Ua.has(i);
4851
4859
  break;
4852
4860
  case "major":
4853
- n = ka.has(i);
4861
+ n = Fa.has(i);
4854
4862
  break;
4855
4863
  case "all":
4856
4864
  case "capitals":
@@ -4932,8 +4940,8 @@ class Ba {
4932
4940
  }), this.labels = [], this.labelRenderer.domElement.remove();
4933
4941
  }
4934
4942
  }
4935
- var $a = { trailer: 59 };
4936
- function Dr(a = 256) {
4943
+ var Ga = { trailer: 59 };
4944
+ function Rr(a = 256) {
4937
4945
  let e = 0, t = new Uint8Array(a);
4938
4946
  return { get buffer() {
4939
4947
  return t.buffer;
@@ -4960,8 +4968,8 @@ function Dr(a = 256) {
4960
4968
  t = new Uint8Array(n), e > 0 && t.set(o.subarray(0, e), 0);
4961
4969
  }
4962
4970
  }
4963
- var ai = 12, vn = 5003, Ga = [0, 1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047, 4095, 8191, 16383, 32767, 65535];
4964
- function Va(a, e, t, i, n = Dr(512), r = new Uint8Array(256), s = new Int32Array(vn), o = new Int32Array(vn)) {
4971
+ var ai = 12, vn = 5003, Va = [0, 1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047, 4095, 8191, 16383, 32767, 65535];
4972
+ function ja(a, e, t, i, n = Rr(512), r = new Uint8Array(256), s = new Int32Array(vn), o = new Int32Array(vn)) {
4965
4973
  let l = s.length, h = Math.max(2, i);
4966
4974
  r.fill(0), o.fill(0), s.fill(-1);
4967
4975
  let c = 0, u = 0, f = h + 1, g = f, p = !1, d = g, m = (1 << d) - 1, _ = 1 << f - 1, y = _ + 1, x = _ + 2, b = 0, v = t[0], P = 0;
@@ -4984,21 +4992,21 @@ function Va(a, e, t, i, n = Dr(512), r = new Uint8Array(256), s = new Int32Array
4984
4992
  }
4985
4993
  return C(v), C(y), n.writeByte(0), n.bytesView();
4986
4994
  function C(w) {
4987
- for (c &= Ga[u], u > 0 ? c |= w << u : c = w, u += d; u >= 8; ) r[b++] = c & 255, b >= 254 && (n.writeByte(b), n.writeBytesView(r, 0, b), b = 0), c >>= 8, u -= 8;
4995
+ for (c &= Va[u], u > 0 ? c |= w << u : c = w, u += d; u >= 8; ) r[b++] = c & 255, b >= 254 && (n.writeByte(b), n.writeBytesView(r, 0, b), b = 0), c >>= 8, u -= 8;
4988
4996
  if ((x > m || p) && (p ? (d = g, m = (1 << d) - 1, p = !1) : (++d, m = d === ai ? 1 << d : (1 << d) - 1)), w == y) {
4989
4997
  for (; u > 0; ) r[b++] = c & 255, b >= 254 && (n.writeByte(b), n.writeBytesView(r, 0, b), b = 0), c >>= 8, u -= 8;
4990
4998
  b > 0 && (n.writeByte(b), n.writeBytesView(r, 0, b), b = 0);
4991
4999
  }
4992
5000
  }
4993
5001
  }
4994
- var ja = Va;
4995
- function Rr(a, e, t) {
5002
+ var Ha = ja;
5003
+ function Ir(a, e, t) {
4996
5004
  return a << 8 & 63488 | e << 2 & 992 | t >> 3;
4997
5005
  }
4998
- function Or(a, e, t, i) {
5006
+ function Lr(a, e, t, i) {
4999
5007
  return a >> 4 | e & 240 | (t & 240) << 4 | (i & 240) << 8;
5000
5008
  }
5001
- function Ir(a, e, t) {
5009
+ function Or(a, e, t) {
5002
5010
  return a >> 4 << 8 | e & 240 | t >> 4;
5003
5011
  }
5004
5012
  function kt(a, e, t) {
@@ -5024,32 +5032,32 @@ function En(a, e, t) {
5024
5032
  function oi() {
5025
5033
  return { ac: 0, rc: 0, gc: 0, bc: 0, cnt: 0, nn: 0, fw: 0, bk: 0, tm: 0, mtm: 0, err: 0 };
5026
5034
  }
5027
- function Ha(a, e) {
5035
+ function Ya(a, e) {
5028
5036
  let t = e === "rgb444" ? 4096 : 65536, i = new Array(t), n = a.length;
5029
5037
  if (e === "rgba4444") for (let r = 0; r < n; ++r) {
5030
- let s = a[r], o = s >> 24 & 255, l = s >> 16 & 255, h = s >> 8 & 255, c = s & 255, u = Or(c, h, l, o), f = u in i ? i[u] : i[u] = oi();
5038
+ let s = a[r], o = s >> 24 & 255, l = s >> 16 & 255, h = s >> 8 & 255, c = s & 255, u = Lr(c, h, l, o), f = u in i ? i[u] : i[u] = oi();
5031
5039
  f.rc += c, f.gc += h, f.bc += l, f.ac += o, f.cnt++;
5032
5040
  }
5033
5041
  else if (e === "rgb444") for (let r = 0; r < n; ++r) {
5034
- let s = a[r], o = s >> 16 & 255, l = s >> 8 & 255, h = s & 255, c = Ir(h, l, o), u = c in i ? i[c] : i[c] = oi();
5042
+ let s = a[r], o = s >> 16 & 255, l = s >> 8 & 255, h = s & 255, c = Or(h, l, o), u = c in i ? i[c] : i[c] = oi();
5035
5043
  u.rc += h, u.gc += l, u.bc += o, u.cnt++;
5036
5044
  }
5037
5045
  else for (let r = 0; r < n; ++r) {
5038
- let s = a[r], o = s >> 16 & 255, l = s >> 8 & 255, h = s & 255, c = Rr(h, l, o), u = c in i ? i[c] : i[c] = oi();
5046
+ let s = a[r], o = s >> 16 & 255, l = s >> 8 & 255, h = s & 255, c = Ir(h, l, o), u = c in i ? i[c] : i[c] = oi();
5039
5047
  u.rc += h, u.gc += l, u.bc += o, u.cnt++;
5040
5048
  }
5041
5049
  return i;
5042
5050
  }
5043
- function Ya(a, e, t = {}) {
5051
+ function Za(a, e, t = {}) {
5044
5052
  let { format: i = "rgb565", clearAlpha: n = !0, clearAlphaColor: r = 0, clearAlphaThreshold: s = 0, oneBitAlpha: o = !1 } = t;
5045
5053
  if (!a || !a.buffer) throw new Error("quantize() expected RGBA Uint8Array data");
5046
5054
  if (!(a instanceof Uint8Array) && !(a instanceof Uint8ClampedArray)) throw new Error("quantize() expected RGBA Uint8Array data");
5047
- let l = new Uint32Array(a.buffer), h = t.useSqrt !== !1, c = i === "rgba4444", u = Ha(l, i), f = u.length, g = f - 1, p = new Uint32Array(f + 1);
5055
+ let l = new Uint32Array(a.buffer), h = t.useSqrt !== !1, c = i === "rgba4444", u = Ya(l, i), f = u.length, g = f - 1, p = new Uint32Array(f + 1);
5048
5056
  for (var d = 0, m = 0; m < f; ++m) {
5049
- let O = u[m];
5050
- if (O != null) {
5051
- var _ = 1 / O.cnt;
5052
- c && (O.ac *= _), O.rc *= _, O.gc *= _, O.bc *= _, u[d++] = O;
5057
+ let I = u[m];
5058
+ if (I != null) {
5059
+ var _ = 1 / I.cnt;
5060
+ c && (I.ac *= _), I.rc *= _, I.gc *= _, I.bc *= _, u[d++] = I;
5053
5061
  }
5054
5062
  }
5055
5063
  Nt(e) / d < 0.022 && (h = !1);
@@ -5078,39 +5086,39 @@ function Ya(a, e, t = {}) {
5078
5086
  let T = [];
5079
5087
  var R = 0;
5080
5088
  for (m = 0; ; ++R) {
5081
- let O = kt(Math.round(u[m].rc), 0, 255), $ = kt(Math.round(u[m].gc), 0, 255), F = kt(Math.round(u[m].bc), 0, 255), U = 255;
5082
- c && (U = kt(Math.round(u[m].ac), 0, 255), o && (U = U <= (typeof o == "number" ? o : 127) ? 0 : 255), n && U <= s && (O = $ = F = r, U = 0));
5083
- let ee = c ? [O, $, F, U] : [O, $, F];
5084
- if (Za(T, ee) || T.push(ee), (m = u[m].fw) == 0) break;
5089
+ let I = kt(Math.round(u[m].rc), 0, 255), $ = kt(Math.round(u[m].gc), 0, 255), U = kt(Math.round(u[m].bc), 0, 255), F = 255;
5090
+ c && (F = kt(Math.round(u[m].ac), 0, 255), o && (F = F <= (typeof o == "number" ? o : 127) ? 0 : 255), n && F <= s && (I = $ = U = r, F = 0));
5091
+ let ee = c ? [I, $, U, F] : [I, $, U];
5092
+ if (Ka(T, ee) || T.push(ee), (m = u[m].fw) == 0) break;
5085
5093
  }
5086
5094
  return T;
5087
5095
  }
5088
- function Za(a, e) {
5096
+ function Ka(a, e) {
5089
5097
  for (let t = 0; t < a.length; t++) {
5090
5098
  let i = a[t], n = i[0] === e[0] && i[1] === e[1] && i[2] === e[2], r = i.length >= 4 && e.length >= 4 ? i[3] === e[3] : !0;
5091
5099
  if (n && r) return !0;
5092
5100
  }
5093
5101
  return !1;
5094
5102
  }
5095
- function Ka(a, e, t = "rgb565") {
5103
+ function Wa(a, e, t = "rgb565") {
5096
5104
  if (!a || !a.buffer) throw new Error("quantize() expected RGBA Uint8Array data");
5097
5105
  if (!(a instanceof Uint8Array) && !(a instanceof Uint8ClampedArray)) throw new Error("quantize() expected RGBA Uint8Array data");
5098
5106
  if (e.length > 256) throw new Error("applyPalette() only works with 256 colors or less");
5099
5107
  let i = new Uint32Array(a.buffer), n = i.length, r = t === "rgb444" ? 4096 : 65536, s = new Uint8Array(n), o = new Array(r);
5100
5108
  if (t === "rgba4444") for (let l = 0; l < n; l++) {
5101
- let h = i[l], c = h >> 24 & 255, u = h >> 16 & 255, f = h >> 8 & 255, g = h & 255, p = Or(g, f, u, c), d = p in o ? o[p] : o[p] = Wa(g, f, u, c, e);
5109
+ let h = i[l], c = h >> 24 & 255, u = h >> 16 & 255, f = h >> 8 & 255, g = h & 255, p = Lr(g, f, u, c), d = p in o ? o[p] : o[p] = Xa(g, f, u, c, e);
5102
5110
  s[l] = d;
5103
5111
  }
5104
5112
  else {
5105
- let l = t === "rgb444" ? Ir : Rr;
5113
+ let l = t === "rgb444" ? Or : Ir;
5106
5114
  for (let h = 0; h < n; h++) {
5107
- let c = i[h], u = c >> 16 & 255, f = c >> 8 & 255, g = c & 255, p = l(g, f, u), d = p in o ? o[p] : o[p] = Xa(g, f, u, e);
5115
+ let c = i[h], u = c >> 16 & 255, f = c >> 8 & 255, g = c & 255, p = l(g, f, u), d = p in o ? o[p] : o[p] = qa(g, f, u, e);
5108
5116
  s[h] = d;
5109
5117
  }
5110
5118
  }
5111
5119
  return s;
5112
5120
  }
5113
- function Wa(a, e, t, i, n) {
5121
+ function Xa(a, e, t, i, n) {
5114
5122
  let r = 0, s = 1e100;
5115
5123
  for (let o = 0; o < n.length; o++) {
5116
5124
  let l = n[o], h = l[3], c = je(h - i);
@@ -5124,7 +5132,7 @@ function Wa(a, e, t, i, n) {
5124
5132
  }
5125
5133
  return r;
5126
5134
  }
5127
- function Xa(a, e, t, i) {
5135
+ function qa(a, e, t, i) {
5128
5136
  let n = 0, r = 1e100;
5129
5137
  for (let s = 0; s < i.length; s++) {
5130
5138
  let o = i[s], l = o[0], h = je(l - a);
@@ -5139,12 +5147,12 @@ function Xa(a, e, t, i) {
5139
5147
  function je(a) {
5140
5148
  return a * a;
5141
5149
  }
5142
- function qa(a = {}) {
5143
- let { initialCapacity: e = 4096, auto: t = !0 } = a, i = Dr(e), n = 5003, r = new Uint8Array(256), s = new Int32Array(n), o = new Int32Array(n), l = !1;
5150
+ function Qa(a = {}) {
5151
+ let { initialCapacity: e = 4096, auto: t = !0 } = a, i = Rr(e), n = 5003, r = new Uint8Array(256), s = new Int32Array(n), o = new Int32Array(n), l = !1;
5144
5152
  return { reset() {
5145
5153
  i.reset(), l = !1;
5146
5154
  }, finish() {
5147
- i.writeByte($a.trailer);
5155
+ i.writeByte(Ga.trailer);
5148
5156
  }, bytes() {
5149
5157
  return i.bytes();
5150
5158
  }, bytesView() {
@@ -5157,28 +5165,28 @@ function qa(a = {}) {
5157
5165
  let { transparent: p = !1, transparentIndex: d = 0, delay: m = 0, palette: _ = null, repeat: y = 0, colorDepth: x = 8, dispose: b = -1 } = g, v = !1;
5158
5166
  if (t ? l || (v = !0, h(), l = !0) : v = !!g.first, u = Math.max(0, Math.floor(u)), f = Math.max(0, Math.floor(f)), v) {
5159
5167
  if (!_) throw new Error("First frame must include a { palette } option");
5160
- Ja(i, u, f, _, x), wn(i, _), y >= 0 && eo(i, y);
5168
+ eo(i, u, f, _, x), wn(i, _), y >= 0 && to(i, y);
5161
5169
  }
5162
5170
  let P = Math.round(m / 10);
5163
- Qa(i, b, P, p, d);
5171
+ Ja(i, b, P, p, d);
5164
5172
  let E = !!_ && !v;
5165
- to(i, u, f, E ? _ : null), E && wn(i, _), io(i, c, u, f, x, r, s, o);
5173
+ io(i, u, f, E ? _ : null), E && wn(i, _), no(i, c, u, f, x, r, s, o);
5166
5174
  } };
5167
5175
  function h() {
5168
- Lr(i, "GIF89a");
5176
+ kr(i, "GIF89a");
5169
5177
  }
5170
5178
  }
5171
- function Qa(a, e, t, i, n) {
5179
+ function Ja(a, e, t, i, n) {
5172
5180
  a.writeByte(33), a.writeByte(249), a.writeByte(4), n < 0 && (n = 0, i = !1);
5173
5181
  var r, s;
5174
- i ? (r = 1, s = 2) : (r = 0, s = 0), e >= 0 && (s = e & 7), s <<= 2, a.writeByte(0 | s | 0 | r), Oe(a, t), a.writeByte(n || 0), a.writeByte(0);
5182
+ i ? (r = 1, s = 2) : (r = 0, s = 0), e >= 0 && (s = e & 7), s <<= 2, a.writeByte(0 | s | 0 | r), Ie(a, t), a.writeByte(n || 0), a.writeByte(0);
5175
5183
  }
5176
- function Ja(a, e, t, i, n = 8) {
5184
+ function eo(a, e, t, i, n = 8) {
5177
5185
  let r = 1, s = 0, o = Hi(i.length) - 1, l = r << 7 | n - 1 << 4 | s << 3 | o;
5178
- Oe(a, e), Oe(a, t), a.writeBytes([l, 0, 0]);
5186
+ Ie(a, e), Ie(a, t), a.writeBytes([l, 0, 0]);
5179
5187
  }
5180
- function eo(a, e) {
5181
- a.writeByte(33), a.writeByte(255), a.writeByte(11), Lr(a, "NETSCAPE2.0"), a.writeByte(3), a.writeByte(1), Oe(a, e), a.writeByte(0);
5188
+ function to(a, e) {
5189
+ a.writeByte(33), a.writeByte(255), a.writeByte(11), kr(a, "NETSCAPE2.0"), a.writeByte(3), a.writeByte(1), Ie(a, e), a.writeByte(0);
5182
5190
  }
5183
5191
  function wn(a, e) {
5184
5192
  let t = 1 << Hi(e.length);
@@ -5187,25 +5195,25 @@ function wn(a, e) {
5187
5195
  i < e.length && (n = e[i]), a.writeByte(n[0]), a.writeByte(n[1]), a.writeByte(n[2]);
5188
5196
  }
5189
5197
  }
5190
- function to(a, e, t, i) {
5191
- if (a.writeByte(44), Oe(a, 0), Oe(a, 0), Oe(a, e), Oe(a, t), i) {
5198
+ function io(a, e, t, i) {
5199
+ if (a.writeByte(44), Ie(a, 0), Ie(a, 0), Ie(a, e), Ie(a, t), i) {
5192
5200
  let n = 0, r = 0, s = Hi(i.length) - 1;
5193
5201
  a.writeByte(128 | n | r | 0 | s);
5194
5202
  } else a.writeByte(0);
5195
5203
  }
5196
- function io(a, e, t, i, n = 8, r, s, o) {
5197
- ja(t, i, e, n, a, r, s, o);
5204
+ function no(a, e, t, i, n = 8, r, s, o) {
5205
+ Ha(t, i, e, n, a, r, s, o);
5198
5206
  }
5199
- function Oe(a, e) {
5207
+ function Ie(a, e) {
5200
5208
  a.writeByte(e & 255), a.writeByte(e >> 8 & 255);
5201
5209
  }
5202
- function Lr(a, e) {
5210
+ function kr(a, e) {
5203
5211
  for (var t = 0; t < e.length; t++) a.writeByte(e.charCodeAt(t));
5204
5212
  }
5205
5213
  function Hi(a) {
5206
5214
  return Math.max(Math.ceil(Math.log2(a)), 1);
5207
5215
  }
5208
- class no {
5216
+ class ro {
5209
5217
  renderer;
5210
5218
  scene;
5211
5219
  camera;
@@ -5404,9 +5412,9 @@ class no {
5404
5412
  const { fps: t = 20, filename: i } = e, n = Math.round(1e3 / t);
5405
5413
  console.log(`Generating GIF with ${this.frames.length} frames at ${t} fps...`);
5406
5414
  try {
5407
- const r = this.frames[0], s = r.width, o = r.height, l = Ya(r.data, 256), h = qa();
5415
+ const r = this.frames[0], s = r.width, o = r.height, l = Za(r.data, 256), h = Qa();
5408
5416
  for (let p = 0; p < this.frames.length; p++) {
5409
- const d = this.frames[p], m = Ka(d.data, l);
5417
+ const d = this.frames[p], m = Wa(d.data, l);
5410
5418
  h.writeFrame(m, s, o, {
5411
5419
  palette: p === 0 ? l : void 0,
5412
5420
  // Only first frame needs palette
@@ -5440,19 +5448,28 @@ class no {
5440
5448
  i.href = e, i.download = t, i.style.display = "none", document.body.appendChild(i), i.click(), document.body.removeChild(i);
5441
5449
  }
5442
5450
  }
5443
- function kr(a) {
5444
- return a === "%" ? (e) => `${e.toFixed(1)}%` : a === "$" ? (e) => `$${e.toLocaleString()}` : a === "years" ? (e) => `${e.toFixed(1)} yrs` : a.includes("per capita") || a.includes("per 100") || a.includes("per 1000") ? (e) => `${e.toFixed(1)}` : a === "% GDP" || a === "% of GDP" ? (e) => `${e.toFixed(1)}%` : a === "" || a === "index" ? (e) => e.toFixed(3) : (e) => {
5451
+ const Pn = {
5452
+ "%": (a) => `${a.toFixed(1)}%`,
5453
+ $: (a) => `$${a.toLocaleString()}`,
5454
+ years: (a) => `${a.toFixed(1)} yrs`,
5455
+ "% GDP": (a) => `${a.toFixed(1)}%`,
5456
+ "% of GDP": (a) => `${a.toFixed(1)}%`,
5457
+ index: (a) => a.toFixed(3),
5458
+ "": (a) => a.toFixed(3)
5459
+ }, so = ["per capita", "per 100", "per 1000"];
5460
+ function Fr(a) {
5461
+ return Pn[a] ? Pn[a] : so.some((e) => a.includes(e)) ? (e) => `${e.toFixed(1)}` : (e) => {
5445
5462
  const t = Number.isInteger(e) ? e.toLocaleString() : e.toFixed(1);
5446
5463
  return a ? `${t} ${a}` : t;
5447
5464
  };
5448
5465
  }
5449
- function yo(a, e, t) {
5450
- return (t ?? kr(e))(a);
5466
+ function Eo(a, e, t) {
5467
+ return (t ?? Fr(e))(a);
5451
5468
  }
5452
- let Pn = !1;
5453
- function ro() {
5454
- if (Pn) return;
5455
- Pn = !0;
5469
+ let Cn = !1;
5470
+ function ao() {
5471
+ if (Cn) return;
5472
+ Cn = !0;
5456
5473
  const a = document.createElement("style");
5457
5474
  a.setAttribute("data-gralobe-legend", "true"), a.textContent = `
5458
5475
  .gralobe-legend {
@@ -5588,13 +5605,13 @@ function ro() {
5588
5605
  }
5589
5606
  `, document.head.appendChild(a);
5590
5607
  }
5591
- class so {
5608
+ class oo {
5592
5609
  element;
5593
5610
  parentContainer;
5594
5611
  visible = !1;
5595
5612
  resizeObserver = null;
5596
5613
  constructor(e) {
5597
- ro(), this.parentContainer = e, getComputedStyle(e).position === "static" && (e.style.position = "relative"), this.element = document.createElement("div"), this.element.className = "gralobe-legend", this.element.setAttribute("data-testid", "globe-legend"), this.element.innerHTML = `
5614
+ ao(), this.parentContainer = e, getComputedStyle(e).position === "static" && (e.style.position = "relative"), this.element = document.createElement("div"), this.element.className = "gralobe-legend", this.element.setAttribute("data-testid", "globe-legend"), this.element.innerHTML = `
5598
5615
  <div class="gralobe-legend-hint">G: view · F: fullscreen</div>
5599
5616
  <div class="gralobe-legend-title" data-testid="legend-title"></div>
5600
5617
  <div class="gralobe-legend-gradient"></div>
@@ -5618,7 +5635,7 @@ class so {
5618
5635
  t.textContent = e.name, s.textContent = e.description;
5619
5636
  const [o, l, h] = e.colorScale;
5620
5637
  i.style.background = `linear-gradient(to right, ${o}, ${l}, ${h})`;
5621
- const c = e.format ?? kr(e.unit);
5638
+ const c = e.format ?? Fr(e.unit);
5622
5639
  n.textContent = c(e.domain[0]), r.textContent = c(e.domain[1]), this.element.classList.add("visible"), this.visible = !0;
5623
5640
  }
5624
5641
  hide() {
@@ -5634,7 +5651,7 @@ class so {
5634
5651
  this.resizeObserver?.disconnect(), this.element.remove();
5635
5652
  }
5636
5653
  }
5637
- const Q = 50, ao = `
5654
+ const Q = 50, lo = `
5638
5655
  uniform float uMorph;
5639
5656
  uniform float uTime;
5640
5657
  uniform float uParchment;
@@ -5882,7 +5899,7 @@ void main() {
5882
5899
 
5883
5900
  gl_Position = projectionMatrix * modelViewMatrix * vec4(pos, 1.0);
5884
5901
  }
5885
- `, oo = `
5902
+ `, ho = `
5886
5903
  uniform sampler2D uTexture;
5887
5904
  uniform sampler2D uDataTexture;
5888
5905
  uniform sampler2D uCloudTexture;
@@ -6094,7 +6111,7 @@ void main() {
6094
6111
 
6095
6112
  gl_FragColor = vec4(color, 1.0);
6096
6113
  }
6097
- `, lo = `
6114
+ `, co = `
6098
6115
  varying vec3 vNormal;
6099
6116
  varying vec3 vPosition;
6100
6117
  uniform float uMorph;
@@ -6129,7 +6146,7 @@ void main() {
6129
6146
  vPosition = pos;
6130
6147
  gl_Position = projectionMatrix * modelViewMatrix * vec4(pos, 1.0);
6131
6148
  }
6132
- `, ho = `
6149
+ `, uo = `
6133
6150
  varying vec3 vNormal;
6134
6151
  varying vec3 vPosition;
6135
6152
  uniform float uOpacity;
@@ -6145,7 +6162,7 @@ void main() {
6145
6162
 
6146
6163
  gl_FragColor = vec4(color, intensity * 0.6 * uOpacity);
6147
6164
  }
6148
- `, co = `
6165
+ `, po = `
6149
6166
  attribute float aSize;
6150
6167
  attribute float aPhase;
6151
6168
  uniform float uTime;
@@ -6162,7 +6179,7 @@ void main() {
6162
6179
  gl_PointSize = aSize * (300.0 / -mvPosition.z) * twinkle;
6163
6180
  gl_Position = projectionMatrix * mvPosition;
6164
6181
  }
6165
- `, uo = `
6182
+ `, fo = `
6166
6183
  uniform float uOpacity;
6167
6184
  varying float vOpacity;
6168
6185
 
@@ -6173,16 +6190,16 @@ void main() {
6173
6190
 
6174
6191
  gl_FragColor = vec4(1.0, 1.0, 1.0, alpha * vOpacity * 0.9 * uOpacity);
6175
6192
  }
6176
- `, Cn = Math.PI / 180;
6177
- function po(a, e, t = Q) {
6178
- const i = (90 - a) * Cn, n = (e + 180) * Cn;
6193
+ `, An = Math.PI / 180;
6194
+ function mo(a, e, t = Q) {
6195
+ const i = (90 - a) * An, n = (e + 180) * An;
6179
6196
  return new A.Vector3(
6180
6197
  -t * Math.sin(i) * Math.cos(n),
6181
6198
  t * Math.cos(i),
6182
6199
  t * Math.sin(i) * Math.sin(n)
6183
6200
  );
6184
6201
  }
6185
- function fo(a, e) {
6202
+ function go(a, e) {
6186
6203
  const t = 2 * Math.PI * Q, i = Math.PI * Q;
6187
6204
  return new A.Vector3(
6188
6205
  e / 180 * (t / 2),
@@ -6190,7 +6207,7 @@ function fo(a, e) {
6190
6207
  0
6191
6208
  );
6192
6209
  }
6193
- const mo = {
6210
+ const _o = {
6194
6211
  style: "spike",
6195
6212
  color: "#0ea5e9",
6196
6213
  // Cyan/teal
@@ -6198,7 +6215,7 @@ const mo = {
6198
6215
  pulseAnimation: !0,
6199
6216
  opacity: 0.9
6200
6217
  };
6201
- class go {
6218
+ class yo {
6202
6219
  group;
6203
6220
  markers = [];
6204
6221
  config;
@@ -6210,7 +6227,7 @@ class go {
6210
6227
  markerMaterial;
6211
6228
  glowMaterial;
6212
6229
  constructor(e = {}) {
6213
- this.group = new A.Group(), this.config = { ...mo, ...e }, this.markerMaterial = new A.MeshBasicMaterial({
6230
+ this.group = new A.Group(), this.config = { ..._o, ...e }, this.markerMaterial = new A.MeshBasicMaterial({
6214
6231
  color: new A.Color(this.config.color),
6215
6232
  transparent: !0,
6216
6233
  opacity: this.config.opacity
@@ -6335,7 +6352,7 @@ class go {
6335
6352
  */
6336
6353
  updatePositions() {
6337
6354
  for (let e = 0; e < this.markerMeshes.length; e++) {
6338
- const t = this.markerMeshes[e], i = t.userData.marker, n = t.userData.height, r = po(i.lat, i.lng, Q), s = fo(i.lat, i.lng), o = this.morph * this.morph * (3 - 2 * this.morph);
6355
+ const t = this.markerMeshes[e], i = t.userData.marker, n = t.userData.height, r = mo(i.lat, i.lng, Q), s = go(i.lat, i.lng), o = this.morph * this.morph * (3 - 2 * this.morph);
6339
6356
  if (t.position.lerpVectors(s, r, o), o > 0.01) {
6340
6357
  if (t.lookAt(t.position.clone().multiplyScalar(2)), this.config.style === "spike" || this.config.style === "pin") {
6341
6358
  t.rotateX(Math.PI / 2);
@@ -6478,14 +6495,110 @@ const Pi = {
6478
6495
  }
6479
6496
  };
6480
6497
  Pi.lifeExpectancy;
6481
- const An = {
6498
+ const xo = "https://raw.githubusercontent.com/nvkelso/natural-earth-vector/master/geojson/ne_10m_urban_areas.geojson";
6499
+ class bo {
6500
+ static urbanFeatures = null;
6501
+ static isLoading = !1;
6502
+ static loadPromise = null;
6503
+ /**
6504
+ * Load the base urban areas topology
6505
+ */
6506
+ static async loadBaseTopology() {
6507
+ return this.urbanFeatures ? this.urbanFeatures : this.loadPromise ? this.loadPromise : (this.isLoading = !0, this.loadPromise = (async () => {
6508
+ try {
6509
+ const e = await fetch(xo);
6510
+ if (!e.ok) throw new Error("Failed to load urban areas");
6511
+ const t = await e.json();
6512
+ return this.urbanFeatures = t.features, this.urbanFeatures || [];
6513
+ } catch (e) {
6514
+ return console.error("UrbanMapper load error:", e), [];
6515
+ } finally {
6516
+ this.isLoading = !1;
6517
+ }
6518
+ })(), this.loadPromise);
6519
+ }
6520
+ /**
6521
+ * Generate a synthetic circular polygon (approximate) for a point
6522
+ * @param lat Latitude
6523
+ * @param lon Longitude
6524
+ * @param radiusKm Radius in km (default 5km)
6525
+ */
6526
+ static generateSyntheticBoundary(e, t, i = 5) {
6527
+ const r = [], o = i / 6371 * (180 / Math.PI), l = o / Math.cos(e * Math.PI / 180);
6528
+ for (let h = 0; h <= 16; h++) {
6529
+ const c = h / 16 * 2 * Math.PI, u = e + o * Math.sin(c), f = t + l * Math.cos(c);
6530
+ r.push([f, u]);
6531
+ }
6532
+ return {
6533
+ type: "Feature",
6534
+ id: `synthetic_${e.toFixed(4)}_${t.toFixed(4)}`,
6535
+ properties: {
6536
+ name: "Unknown City",
6537
+ featurecla: "Synthetic Urban Area"
6538
+ },
6539
+ geometry: {
6540
+ type: "Polygon",
6541
+ coordinates: [r]
6542
+ }
6543
+ };
6544
+ }
6545
+ /**
6546
+ * Map points to urban areas or generate synthetic ones
6547
+ */
6548
+ static async mapPointsToTopology(e) {
6549
+ const t = await this.loadBaseTopology(), i = [], n = {}, r = /* @__PURE__ */ new Set();
6550
+ for (const s of e) {
6551
+ let o = null;
6552
+ for (const l of t)
6553
+ if (this.isPointInFeature(s, l)) {
6554
+ o = l;
6555
+ break;
6556
+ }
6557
+ if (o) {
6558
+ const l = o.properties.name_conve || o.properties.name || `ua_${Math.random()}`, h = r.has(l) ? null : JSON.parse(JSON.stringify(o));
6559
+ h && (h.id = l, i.push(h), r.add(l)), n[l] = (n[l] || 0) + s.value;
6560
+ } else {
6561
+ const l = this.generateSyntheticBoundary(s.lat, s.lon);
6562
+ s.id && (l.id = s.id), i.push(l), n[l.id] = s.value;
6563
+ }
6564
+ }
6565
+ return {
6566
+ features: i,
6567
+ statistics: n
6568
+ };
6569
+ }
6570
+ // Minimal Ray-Casting algorithm for Polygon/MultiPolygon
6571
+ static isPointInFeature(e, t) {
6572
+ const { lat: i, lon: n } = e, r = t.geometry;
6573
+ if (!r) return !1;
6574
+ const s = r.coordinates;
6575
+ if (r.type === "Polygon")
6576
+ return this.pointInPolygon([n, i], s);
6577
+ if (r.type === "MultiPolygon") {
6578
+ for (const o of s)
6579
+ if (this.pointInPolygon([n, i], o)) return !0;
6580
+ }
6581
+ return !1;
6582
+ }
6583
+ static pointInPolygon(e, t) {
6584
+ const i = e[0], n = e[1];
6585
+ let r = !1;
6586
+ const s = t[0];
6587
+ for (let o = 0, l = s.length - 1; o < s.length; l = o++) {
6588
+ const h = s[o][0], c = s[o][1], u = s[l][0], f = s[l][1];
6589
+ c > n != f > n && i < (u - h) * (n - c) / (f - c) + h && (r = !r);
6590
+ }
6591
+ return r;
6592
+ }
6593
+ }
6594
+ const Tn = {
6482
6595
  satellite: "https://raw.githubusercontent.com/mrdoob/three.js/dev/examples/textures/planets/earth_atmos_2048.jpg",
6483
6596
  natural: "https://raw.githubusercontent.com/mrdoob/three.js/dev/examples/textures/planets/earth_day_4096.jpg",
6484
6597
  dark: "https://raw.githubusercontent.com/mrdoob/three.js/dev/examples/textures/planets/earth_lights_2048.png",
6485
6598
  light: "https://raw.githubusercontent.com/turban/webgl-earth/master/images/2_no_clouds_4k.jpg",
6486
6599
  night: "https://raw.githubusercontent.com/mrdoob/three.js/dev/examples/textures/planets/earth_lights_2048.png",
6487
6600
  topographic: "https://eoimages.gsfc.nasa.gov/images/imagerecords/74000/74117/world.topo.200407.3x5400x2700.jpg"
6488
- }, Tn = {
6601
+ }, Sn = {
6489
6602
  texture: "satellite",
6490
6603
  labels: "all",
6491
6604
  statistic: "lifeExpectancy",
@@ -6501,7 +6614,7 @@ const An = {
6501
6614
  },
6502
6615
  extrudeHeight: !1
6503
6616
  };
6504
- class xo {
6617
+ class wo {
6505
6618
  container;
6506
6619
  config;
6507
6620
  // Three.js core
@@ -6544,9 +6657,9 @@ class xo {
6544
6657
  } else
6545
6658
  this.container = e;
6546
6659
  this.config = {
6547
- ...Tn,
6660
+ ...Sn,
6548
6661
  ...t,
6549
- effects: { ...Tn.effects, ...t.effects }
6662
+ effects: { ...Sn.effects, ...t.effects }
6550
6663
  }, this.ready = new Promise((i) => {
6551
6664
  this.resolveReady = i;
6552
6665
  }), this.init();
@@ -6557,7 +6670,7 @@ class xo {
6557
6670
  0,
6558
6671
  0,
6559
6672
  this.config.initialView === "flat" ? 350 : 150
6560
- ), 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 fa(this.camera, this.renderer.domElement), this.controls.enableDamping = !0, this.controls.minDistance = 10, this.controls.maxDistance = 400;
6673
+ ), 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 ma(this.camera, this.renderer.domElement), this.controls.enableDamping = !0, this.controls.minDistance = 10, this.controls.maxDistance = 400;
6561
6674
  try {
6562
6675
  this.choropleth = new it(
6563
6676
  this.config.topology,
@@ -6568,7 +6681,7 @@ class xo {
6568
6681
  duration: 1
6569
6682
  }));
6570
6683
  }
6571
- ), this.config.showLegend && (this.legend = new so(this.container)), await this.createGlobe(), this.createStars(), this.config.effects.atmosphere && this.createAtmosphere(), this.countryLabels = new Ba(this.container, Q), this.scene.add(this.countryLabels.getGroup()), this.globe && this.countryLabels.setGlobe(this.globe), this.countryLabels.setCamera(this.camera), this.countryLabels.setStyle(this.config.labels), this.exporter = new no(this.renderer, this.scene, this.camera), this.legend && this.exporter.setLegendElement(this.legend.getElement()), this.countryLabels && this.exporter.setCountryLabels(this.countryLabels), this.config.showControls && this.createGUI(), this.setupInteraction(), await this.choropleth.waitForLoad(), this.setStatistic(this.config.statistic);
6684
+ ), this.config.showLegend && (this.legend = new oo(this.container)), await this.createGlobe(), this.createStars(), this.config.effects.atmosphere && this.createAtmosphere(), this.countryLabels = new $a(this.container, Q), this.scene.add(this.countryLabels.getGroup()), this.globe && this.countryLabels.setGlobe(this.globe), this.countryLabels.setCamera(this.camera), this.countryLabels.setStyle(this.config.labels), this.exporter = new ro(this.renderer, this.scene, this.camera), this.legend && this.exporter.setLegendElement(this.legend.getElement()), this.countryLabels && this.exporter.setCountryLabels(this.countryLabels), this.config.showControls && this.createGUI(), this.setupInteraction(), await this.choropleth.waitForLoad(), this.setStatistic(this.config.statistic);
6572
6685
  } catch (i) {
6573
6686
  console.error("GlobeViz init failed:", i);
6574
6687
  }
@@ -6582,7 +6695,7 @@ class xo {
6582
6695
  };
6583
6696
  async createGlobe() {
6584
6697
  const e = await this.textureLoader.loadAsync(
6585
- An[this.config.texture]
6698
+ Tn[this.config.texture]
6586
6699
  );
6587
6700
  e.anisotropy = this.renderer.capabilities.getMaxAnisotropy(), e.minFilter = A.LinearMipmapLinearFilter, e.magFilter = A.LinearFilter;
6588
6701
  const t = document.createElement("canvas");
@@ -6594,8 +6707,8 @@ class xo {
6594
6707
  128
6595
6708
  );
6596
6709
  this.material = new A.ShaderMaterial({
6597
- vertexShader: ao,
6598
- fragmentShader: oo,
6710
+ vertexShader: lo,
6711
+ fragmentShader: ho,
6599
6712
  uniforms: {
6600
6713
  // Core uniforms
6601
6714
  uMorph: { value: 0 },
@@ -6647,8 +6760,8 @@ class xo {
6647
6760
  128,
6648
6761
  64
6649
6762
  ), t = new A.ShaderMaterial({
6650
- vertexShader: lo,
6651
- fragmentShader: ho,
6763
+ vertexShader: co,
6764
+ fragmentShader: uo,
6652
6765
  uniforms: {
6653
6766
  uMorph: { value: 0 },
6654
6767
  uOpacity: { value: 1 }
@@ -6668,8 +6781,8 @@ class xo {
6668
6781
  }
6669
6782
  t.setAttribute("position", new A.BufferAttribute(i, 3)), t.setAttribute("aSize", new A.BufferAttribute(n, 1)), t.setAttribute("aPhase", new A.BufferAttribute(r, 1));
6670
6783
  const s = new A.ShaderMaterial({
6671
- vertexShader: co,
6672
- fragmentShader: uo,
6784
+ vertexShader: po,
6785
+ fragmentShader: fo,
6673
6786
  uniforms: {
6674
6787
  uTime: { value: 0 },
6675
6788
  uTwinkle: { value: this.config.effects.starTwinkle ? 1 : 0 },
@@ -6875,7 +6988,7 @@ class xo {
6875
6988
  return;
6876
6989
  }
6877
6990
  this.currentStatistic = e;
6878
- const i = Ta.find((n) => n.id === e);
6991
+ const i = Sa.find((n) => n.id === e);
6879
6992
  if (i && this.choropleth) {
6880
6993
  const n = this.choropleth.renderTexture(i);
6881
6994
  if (this.material && n) {
@@ -6904,7 +7017,7 @@ class xo {
6904
7017
  this.countryLabels?.setStyle(e);
6905
7018
  }
6906
7019
  async setTexture(e) {
6907
- const t = An[e];
7020
+ const t = Tn[e];
6908
7021
  if (!(!t || !this.material))
6909
7022
  try {
6910
7023
  const i = await this.textureLoader.loadAsync(t);
@@ -6935,7 +7048,21 @@ class xo {
6935
7048
  Object.assign(this.config.effects, e), this.material && (e.atmosphere !== void 0 && (e.atmosphere && !this.atmosphere ? this.createAtmosphere() : !e.atmosphere && this.atmosphere && (this.scene.remove(this.atmosphere), this.atmosphere.geometry.dispose(), this.atmosphere.material.dispose(), this.atmosphere = null)), e.clouds !== void 0 && (this.material.uniforms.uClouds.value = e.clouds ? 1 : 0), e.cloudSpeed !== void 0 && (this.material.uniforms.uCloudSpeed.value = e.cloudSpeed), e.cloudOpacity !== void 0 && (this.material.uniforms.uCloudOpacity.value = e.cloudOpacity), e.atmosphereIntensity !== void 0 && (this.material.uniforms.uAtmosphereIntensity.value = e.atmosphereIntensity), e.gridLines !== void 0 && (this.material.uniforms.uGridLines.value = e.gridLines ? 1 : 0), e.gridOpacity !== void 0 && (this.material.uniforms.uGridOpacity.value = e.gridOpacity), e.glowPulse !== void 0 && (this.material.uniforms.uGlowPulse.value = e.glowPulse ? 1 : 0), e.starTwinkle !== void 0 && this.stars && (this.stars.material.uniforms.uTwinkle.value = e.starTwinkle ? 1 : 0));
6936
7049
  }
6937
7050
  setMarkers(e, t) {
6938
- this.markerLayer ? t && this.markerLayer.setConfig(t) : (this.markerLayer = new go(t), this.scene.add(this.markerLayer.getGroup()), this.markerLayer.setMorph(this.morph)), this.markerLayer.setMarkers(e);
7051
+ this.markerLayer ? t && this.markerLayer.setConfig(t) : (this.markerLayer = new yo(t), this.scene.add(this.markerLayer.getGroup()), this.markerLayer.setMorph(this.morph)), this.markerLayer.setMarkers(e);
7052
+ }
7053
+ async setUrbanData(e) {
7054
+ if (!this.choropleth) return;
7055
+ const t = await bo.mapPointsToTopology(e);
7056
+ this.choropleth.setFeatures(t.features);
7057
+ const i = [
7058
+ "#ffffb2",
7059
+ "#fd8d3c",
7060
+ "#bd0026"
7061
+ ], n = Object.values(t.statistics), r = Math.max(...n, 1);
7062
+ this.choropleth.renderCustomTexture(t.statistics, i, [
7063
+ 0,
7064
+ r
7065
+ ]), this.material && (this.material.uniforms.uCityLights.value = 1, this.config.effects.cityLights = !0);
6939
7066
  }
6940
7067
  resize(e, t) {
6941
7068
  this.config.width = e, this.config.height = t, this.handleResize();
@@ -6955,11 +7082,11 @@ class xo {
6955
7082
  }
6956
7083
  export {
6957
7084
  Pi as BUILT_IN_STATISTICS,
6958
- xo as GlobeViz,
6959
- Mr as WORLD_STATISTICS,
6960
- kr as createFormatter,
6961
- yo as formatValue,
6962
- Da as normalizeCountryValues,
7085
+ wo as GlobeViz,
7086
+ Dr as WORLD_STATISTICS,
7087
+ Fr as createFormatter,
7088
+ Eo as formatValue,
7089
+ Ra as normalizeCountryValues,
6963
7090
  gn as toNumericCode
6964
7091
  };
6965
7092
  //# sourceMappingURL=gralobe.js.map