gralobe 1.0.5 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/gralobe.js CHANGED
@@ -1,6 +1,6 @@
1
- import * as M from "three";
2
- import { Controls as Or, Vector3 as se, MOUSE as tt, TOUCH as Qe, Quaternion as Yi, Spherical as Zi, Vector2 as de, Ray as kr, Plane as Lr, MathUtils as Ir, Matrix4 as Cn, Object3D as Ur } from "three";
3
- const Xi = { type: "change" }, Pi = { type: "start" }, Tn = { type: "end" }, Mt = new kr(), Wi = new Lr(), Fr = Math.cos(70 * Ir.DEG2RAD), Y = new se(), J = 2 * Math.PI, k = {
1
+ import * as S from "three";
2
+ import { Controls as Lr, Vector3 as se, MOUSE as tt, TOUCH as Qe, Quaternion as Yi, Spherical as Zi, Vector2 as de, Ray as kr, Plane as Ur, MathUtils as Fr, Matrix4 as An, Object3D as Nr } from "three";
3
+ const Ki = { type: "change" }, Ci = { type: "start" }, Tn = { type: "end" }, Mt = new kr(), Xi = new Ur(), zr = Math.cos(70 * Fr.DEG2RAD), Y = new se(), J = 2 * Math.PI, I = {
4
4
  NONE: -1,
5
5
  ROTATE: 0,
6
6
  DOLLY: 1,
@@ -9,8 +9,8 @@ const Xi = { type: "change" }, Pi = { type: "start" }, Tn = { type: "end" }, Mt
9
9
  TOUCH_PAN: 4,
10
10
  TOUCH_DOLLY_PAN: 5,
11
11
  TOUCH_DOLLY_ROTATE: 6
12
- }, Wt = 1e-6;
13
- class zr extends Or {
12
+ }, Xt = 1e-6;
13
+ class $r extends Lr {
14
14
  /**
15
15
  * Constructs a new controls instance.
16
16
  *
@@ -18,7 +18,7 @@ class zr extends Or {
18
18
  * @param {?HTMLElement} domElement - The HTML element used for event listeners.
19
19
  */
20
20
  constructor(e, t = null) {
21
- super(e, t), this.state = k.NONE, this.target = new se(), this.cursor = new se(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.keyRotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: tt.ROTATE, MIDDLE: tt.DOLLY, RIGHT: tt.PAN }, this.touches = { ONE: Qe.ROTATE, TWO: Qe.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new se(), this._lastQuaternion = new Yi(), this._lastTargetPosition = new se(), this._quat = new Yi().setFromUnitVectors(e.up, new se(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new Zi(), this._sphericalDelta = new Zi(), this._scale = 1, this._panOffset = new se(), this._rotateStart = new de(), this._rotateEnd = new de(), this._rotateDelta = new de(), this._panStart = new de(), this._panEnd = new de(), this._panDelta = new de(), this._dollyStart = new de(), this._dollyEnd = new de(), this._dollyDelta = new de(), this._dollyDirection = new se(), this._mouse = new de(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = $r.bind(this), this._onPointerDown = Nr.bind(this), this._onPointerUp = Br.bind(this), this._onContextMenu = Xr.bind(this), this._onMouseWheel = jr.bind(this), this._onKeyDown = Hr.bind(this), this._onTouchStart = Yr.bind(this), this._onTouchMove = Zr.bind(this), this._onMouseDown = Vr.bind(this), this._onMouseMove = Gr.bind(this), this._interceptControlDown = Wr.bind(this), this._interceptControlUp = Kr.bind(this), this.domElement !== null && this.connect(this.domElement), this.update();
21
+ super(e, t), this.state = I.NONE, this.target = new se(), this.cursor = new se(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.keyRotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: tt.ROTATE, MIDDLE: tt.DOLLY, RIGHT: tt.PAN }, this.touches = { ONE: Qe.ROTATE, TWO: Qe.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new se(), this._lastQuaternion = new Yi(), this._lastTargetPosition = new se(), this._quat = new Yi().setFromUnitVectors(e.up, new se(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new Zi(), this._sphericalDelta = new Zi(), this._scale = 1, this._panOffset = new se(), this._rotateStart = new de(), this._rotateEnd = new de(), this._rotateDelta = new de(), this._panStart = new de(), this._panEnd = new de(), this._panDelta = new de(), this._dollyStart = new de(), this._dollyEnd = new de(), this._dollyDelta = new de(), this._dollyDirection = new se(), this._mouse = new de(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = Gr.bind(this), this._onPointerDown = Br.bind(this), this._onPointerUp = Vr.bind(this), this._onContextMenu = Wr.bind(this), this._onMouseWheel = Yr.bind(this), this._onKeyDown = Zr.bind(this), this._onTouchStart = Kr.bind(this), this._onTouchMove = Xr.bind(this), this._onMouseDown = Hr.bind(this), this._onMouseMove = jr.bind(this), this._interceptControlDown = qr.bind(this), this._interceptControlUp = Qr.bind(this), this.domElement !== null && this.connect(this.domElement), this.update();
22
22
  }
23
23
  connect(e) {
24
24
  super.connect(e), this.domElement.addEventListener("pointerdown", this._onPointerDown), this.domElement.addEventListener("pointercancel", this._onPointerUp), this.domElement.addEventListener("contextmenu", this._onContextMenu), this.domElement.addEventListener("wheel", this._onMouseWheel, { passive: !1 }), this.domElement.getRootNode().addEventListener("keydown", this._interceptControlDown, { passive: !0, capture: !0 }), this.domElement.style.touchAction = "none";
@@ -79,11 +79,11 @@ class zr extends Or {
79
79
  * was called, or the initial state.
80
80
  */
81
81
  reset() {
82
- this.target.copy(this.target0), this.object.position.copy(this.position0), this.object.zoom = this.zoom0, this.object.updateProjectionMatrix(), this.dispatchEvent(Xi), this.update(), this.state = k.NONE;
82
+ this.target.copy(this.target0), this.object.position.copy(this.position0), this.object.zoom = this.zoom0, this.object.updateProjectionMatrix(), this.dispatchEvent(Ki), this.update(), this.state = I.NONE;
83
83
  }
84
84
  update(e = null) {
85
85
  const t = this.object.position;
86
- Y.copy(t).sub(this.target), Y.applyQuaternion(this._quat), this._spherical.setFromVector3(Y), this.autoRotate && this.state === k.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);
86
+ 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);
87
87
  let i = this.minAzimuthAngle, n = this.maxAzimuthAngle;
88
88
  isFinite(i) && isFinite(n) && (i < -Math.PI ? i += J : i > Math.PI && (i -= J), n < -Math.PI ? n += J : n > Math.PI && (n -= J), 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);
89
89
  let r = !1;
@@ -109,12 +109,12 @@ class zr extends Or {
109
109
  c.unproject(this.object), this.object.position.sub(c).add(o), this.object.updateMatrixWorld(), s = Y.length();
110
110
  } else
111
111
  console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."), this.zoomToCursor = !1;
112
- s !== null && (this.screenSpacePanning ? this.target.set(0, 0, -1).transformDirection(this.object.matrix).multiplyScalar(s).add(this.object.position) : (Mt.origin.copy(this.object.position), Mt.direction.set(0, 0, -1).transformDirection(this.object.matrix), Math.abs(this.object.up.dot(Mt.direction)) < Fr ? this.object.lookAt(this.target) : (Wi.setFromNormalAndCoplanarPoint(this.object.up, this.target), Mt.intersectPlane(Wi, this.target))));
112
+ s !== null && (this.screenSpacePanning ? this.target.set(0, 0, -1).transformDirection(this.object.matrix).multiplyScalar(s).add(this.object.position) : (Mt.origin.copy(this.object.position), Mt.direction.set(0, 0, -1).transformDirection(this.object.matrix), Math.abs(this.object.up.dot(Mt.direction)) < zr ? this.object.lookAt(this.target) : (Xi.setFromNormalAndCoplanarPoint(this.object.up, this.target), Mt.intersectPlane(Xi, this.target))));
113
113
  } else if (this.object.isOrthographicCamera) {
114
114
  const s = this.object.zoom;
115
115
  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);
116
116
  }
117
- return this._scale = 1, this._performCursorZoom = !1, r || this._lastPosition.distanceToSquared(this.object.position) > Wt || 8 * (1 - this._lastQuaternion.dot(this.object.quaternion)) > Wt || this._lastTargetPosition.distanceToSquared(this.target) > Wt ? (this.dispatchEvent(Xi), this._lastPosition.copy(this.object.position), this._lastQuaternion.copy(this.object.quaternion), this._lastTargetPosition.copy(this.target), !0) : !1;
117
+ return this._scale = 1, this._performCursorZoom = !1, r || this._lastPosition.distanceToSquared(this.object.position) > Xt || 8 * (1 - this._lastQuaternion.dot(this.object.quaternion)) > Xt || this._lastTargetPosition.distanceToSquared(this.target) > Xt ? (this.dispatchEvent(Ki), this._lastPosition.copy(this.object.position), this._lastQuaternion.copy(this.object.quaternion), this._lastTargetPosition.copy(this.target), !0) : !1;
118
118
  }
119
119
  _getAutoRotationAngle(e) {
120
120
  return e !== null ? J / 60 * this.autoRotateSpeed * e : J / 60 / 60 * this.autoRotateSpeed;
@@ -306,16 +306,16 @@ class zr extends Or {
306
306
  return e.ctrlKey && !this._controlActive && (i.deltaY *= 10), i;
307
307
  }
308
308
  }
309
- function Nr(a) {
309
+ function Br(a) {
310
310
  this.enabled !== !1 && (this._pointers.length === 0 && (this.domElement.setPointerCapture(a.pointerId), this.domElement.addEventListener("pointermove", this._onPointerMove), this.domElement.addEventListener("pointerup", this._onPointerUp)), !this._isTrackingPointer(a) && (this._addPointer(a), a.pointerType === "touch" ? this._onTouchStart(a) : this._onMouseDown(a)));
311
311
  }
312
- function $r(a) {
312
+ function Gr(a) {
313
313
  this.enabled !== !1 && (a.pointerType === "touch" ? this._onTouchMove(a) : this._onMouseMove(a));
314
314
  }
315
- function Br(a) {
315
+ function Vr(a) {
316
316
  switch (this._removePointer(a), this._pointers.length) {
317
317
  case 0:
318
- this.domElement.releasePointerCapture(a.pointerId), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.domElement.removeEventListener("pointerup", this._onPointerUp), this.dispatchEvent(Tn), this.state = k.NONE;
318
+ this.domElement.releasePointerCapture(a.pointerId), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.domElement.removeEventListener("pointerup", this._onPointerUp), this.dispatchEvent(Tn), this.state = I.NONE;
319
319
  break;
320
320
  case 1:
321
321
  const e = this._pointers[0], t = this._pointerPositions[e];
@@ -323,7 +323,7 @@ function Br(a) {
323
323
  break;
324
324
  }
325
325
  }
326
- function Vr(a) {
326
+ function Hr(a) {
327
327
  let e;
328
328
  switch (a.button) {
329
329
  case 0:
@@ -341,117 +341,117 @@ function Vr(a) {
341
341
  switch (e) {
342
342
  case tt.DOLLY:
343
343
  if (this.enableZoom === !1) return;
344
- this._handleMouseDownDolly(a), this.state = k.DOLLY;
344
+ this._handleMouseDownDolly(a), this.state = I.DOLLY;
345
345
  break;
346
346
  case tt.ROTATE:
347
347
  if (a.ctrlKey || a.metaKey || a.shiftKey) {
348
348
  if (this.enablePan === !1) return;
349
- this._handleMouseDownPan(a), this.state = k.PAN;
349
+ this._handleMouseDownPan(a), this.state = I.PAN;
350
350
  } else {
351
351
  if (this.enableRotate === !1) return;
352
- this._handleMouseDownRotate(a), this.state = k.ROTATE;
352
+ this._handleMouseDownRotate(a), this.state = I.ROTATE;
353
353
  }
354
354
  break;
355
355
  case tt.PAN:
356
356
  if (a.ctrlKey || a.metaKey || a.shiftKey) {
357
357
  if (this.enableRotate === !1) return;
358
- this._handleMouseDownRotate(a), this.state = k.ROTATE;
358
+ this._handleMouseDownRotate(a), this.state = I.ROTATE;
359
359
  } else {
360
360
  if (this.enablePan === !1) return;
361
- this._handleMouseDownPan(a), this.state = k.PAN;
361
+ this._handleMouseDownPan(a), this.state = I.PAN;
362
362
  }
363
363
  break;
364
364
  default:
365
- this.state = k.NONE;
365
+ this.state = I.NONE;
366
366
  }
367
- this.state !== k.NONE && this.dispatchEvent(Pi);
367
+ this.state !== I.NONE && this.dispatchEvent(Ci);
368
368
  }
369
- function Gr(a) {
369
+ function jr(a) {
370
370
  switch (this.state) {
371
- case k.ROTATE:
371
+ case I.ROTATE:
372
372
  if (this.enableRotate === !1) return;
373
373
  this._handleMouseMoveRotate(a);
374
374
  break;
375
- case k.DOLLY:
375
+ case I.DOLLY:
376
376
  if (this.enableZoom === !1) return;
377
377
  this._handleMouseMoveDolly(a);
378
378
  break;
379
- case k.PAN:
379
+ case I.PAN:
380
380
  if (this.enablePan === !1) return;
381
381
  this._handleMouseMovePan(a);
382
382
  break;
383
383
  }
384
384
  }
385
- function jr(a) {
386
- this.enabled === !1 || this.enableZoom === !1 || this.state !== k.NONE || (a.preventDefault(), this.dispatchEvent(Pi), this._handleMouseWheel(this._customWheelEvent(a)), this.dispatchEvent(Tn));
385
+ function Yr(a) {
386
+ this.enabled === !1 || this.enableZoom === !1 || this.state !== I.NONE || (a.preventDefault(), this.dispatchEvent(Ci), this._handleMouseWheel(this._customWheelEvent(a)), this.dispatchEvent(Tn));
387
387
  }
388
- function Hr(a) {
388
+ function Zr(a) {
389
389
  this.enabled !== !1 && this._handleKeyDown(a);
390
390
  }
391
- function Yr(a) {
391
+ function Kr(a) {
392
392
  switch (this._trackPointer(a), this._pointers.length) {
393
393
  case 1:
394
394
  switch (this.touches.ONE) {
395
395
  case Qe.ROTATE:
396
396
  if (this.enableRotate === !1) return;
397
- this._handleTouchStartRotate(a), this.state = k.TOUCH_ROTATE;
397
+ this._handleTouchStartRotate(a), this.state = I.TOUCH_ROTATE;
398
398
  break;
399
399
  case Qe.PAN:
400
400
  if (this.enablePan === !1) return;
401
- this._handleTouchStartPan(a), this.state = k.TOUCH_PAN;
401
+ this._handleTouchStartPan(a), this.state = I.TOUCH_PAN;
402
402
  break;
403
403
  default:
404
- this.state = k.NONE;
404
+ this.state = I.NONE;
405
405
  }
406
406
  break;
407
407
  case 2:
408
408
  switch (this.touches.TWO) {
409
409
  case Qe.DOLLY_PAN:
410
410
  if (this.enableZoom === !1 && this.enablePan === !1) return;
411
- this._handleTouchStartDollyPan(a), this.state = k.TOUCH_DOLLY_PAN;
411
+ this._handleTouchStartDollyPan(a), this.state = I.TOUCH_DOLLY_PAN;
412
412
  break;
413
413
  case Qe.DOLLY_ROTATE:
414
414
  if (this.enableZoom === !1 && this.enableRotate === !1) return;
415
- this._handleTouchStartDollyRotate(a), this.state = k.TOUCH_DOLLY_ROTATE;
415
+ this._handleTouchStartDollyRotate(a), this.state = I.TOUCH_DOLLY_ROTATE;
416
416
  break;
417
417
  default:
418
- this.state = k.NONE;
418
+ this.state = I.NONE;
419
419
  }
420
420
  break;
421
421
  default:
422
- this.state = k.NONE;
422
+ this.state = I.NONE;
423
423
  }
424
- this.state !== k.NONE && this.dispatchEvent(Pi);
424
+ this.state !== I.NONE && this.dispatchEvent(Ci);
425
425
  }
426
- function Zr(a) {
426
+ function Xr(a) {
427
427
  switch (this._trackPointer(a), this.state) {
428
- case k.TOUCH_ROTATE:
428
+ case I.TOUCH_ROTATE:
429
429
  if (this.enableRotate === !1) return;
430
430
  this._handleTouchMoveRotate(a), this.update();
431
431
  break;
432
- case k.TOUCH_PAN:
432
+ case I.TOUCH_PAN:
433
433
  if (this.enablePan === !1) return;
434
434
  this._handleTouchMovePan(a), this.update();
435
435
  break;
436
- case k.TOUCH_DOLLY_PAN:
436
+ case I.TOUCH_DOLLY_PAN:
437
437
  if (this.enableZoom === !1 && this.enablePan === !1) return;
438
438
  this._handleTouchMoveDollyPan(a), this.update();
439
439
  break;
440
- case k.TOUCH_DOLLY_ROTATE:
440
+ case I.TOUCH_DOLLY_ROTATE:
441
441
  if (this.enableZoom === !1 && this.enableRotate === !1) return;
442
442
  this._handleTouchMoveDollyRotate(a), this.update();
443
443
  break;
444
444
  default:
445
- this.state = k.NONE;
445
+ this.state = I.NONE;
446
446
  }
447
447
  }
448
- function Xr(a) {
448
+ function Wr(a) {
449
449
  this.enabled !== !1 && a.preventDefault();
450
450
  }
451
- function Wr(a) {
451
+ function qr(a) {
452
452
  a.key === "Control" && (this._controlActive = !0, this.domElement.getRootNode().addEventListener("keyup", this._interceptControlUp, { passive: !0, capture: !0 }));
453
453
  }
454
- function Kr(a) {
454
+ function Qr(a) {
455
455
  a.key === "Control" && (this._controlActive = !1, this.domElement.getRootNode().removeEventListener("keyup", this._interceptControlUp, { passive: !0, capture: !0 }));
456
456
  }
457
457
  function we(a) {
@@ -473,66 +473,66 @@ var he = {
473
473
  duration: 0.5,
474
474
  overwrite: !1,
475
475
  delay: 0
476
- }, Ci, X, z, fe = 1e8, I = 1 / fe, oi = Math.PI * 2, qr = oi / 4, Qr = 0, An = Math.sqrt, Jr = Math.cos, es = Math.sin, Z = function(e) {
476
+ }, Pi, K, N, fe = 1e8, k = 1 / fe, oi = Math.PI * 2, Jr = oi / 4, es = 0, Dn = Math.sqrt, ts = Math.cos, is = Math.sin, Z = function(e) {
477
477
  return typeof e == "string";
478
- }, V = function(e) {
478
+ }, G = function(e) {
479
479
  return typeof e == "function";
480
- }, Ce = function(e) {
480
+ }, Pe = function(e) {
481
481
  return typeof e == "number";
482
- }, Ti = function(e) {
482
+ }, Ai = function(e) {
483
483
  return typeof e > "u";
484
- }, ve = function(e) {
484
+ }, Ee = function(e) {
485
485
  return typeof e == "object";
486
486
  }, ee = function(e) {
487
487
  return e !== !1;
488
- }, Si = function() {
488
+ }, Ti = function() {
489
489
  return typeof window < "u";
490
490
  }, Rt = function(e) {
491
- return V(e) || Z(e);
492
- }, Dn = typeof ArrayBuffer == "function" && ArrayBuffer.isView || function() {
493
- }, K = Array.isArray, li = /(?:-?\.?\d|\.)+/gi, Mn = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, Je = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, Kt = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, Rn = /[+-]=-?[.\d]+/, On = /[^,'"\[\]\s]+/gi, ts = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, N, _e, hi, Ai, ce = {}, Nt = {}, kn, Ln = function(e) {
494
- return (Nt = at(e, ce)) && re;
491
+ return G(e) || Z(e);
492
+ }, Mn = typeof ArrayBuffer == "function" && ArrayBuffer.isView || function() {
493
+ }, W = Array.isArray, li = /(?:-?\.?\d|\.)+/gi, Rn = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, Je = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, Wt = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, On = /[+-]=-?[.\d]+/, In = /[^,'"\[\]\s]+/gi, ns = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, z, _e, hi, Si, ce = {}, zt = {}, Ln, kn = function(e) {
494
+ return (zt = at(e, ce)) && re;
495
495
  }, Di = function(e, t) {
496
496
  return console.warn("Invalid property", e, "set to", t, "Missing plugin? gsap.registerPlugin()");
497
- }, vt = function(e, t) {
497
+ }, Et = function(e, t) {
498
498
  return !t && console.warn(e);
499
- }, In = function(e, t) {
500
- return e && (ce[e] = t) && Nt && (Nt[e] = t) || ce;
501
- }, Et = function() {
499
+ }, Un = function(e, t) {
500
+ return e && (ce[e] = t) && zt && (zt[e] = t) || ce;
501
+ }, vt = function() {
502
502
  return 0;
503
- }, is = {
503
+ }, rs = {
504
504
  suppressEvents: !0,
505
505
  isStart: !0,
506
506
  kill: !1
507
- }, It = {
507
+ }, kt = {
508
508
  suppressEvents: !0,
509
509
  kill: !1
510
- }, ns = {
510
+ }, ss = {
511
511
  suppressEvents: !0
512
- }, Mi = {}, Re = [], ci = {}, Un, ae = {}, qt = {}, Ki = 30, Ut = [], Ri = "", Oi = function(e) {
512
+ }, Mi = {}, Re = [], ci = {}, Fn, ae = {}, qt = {}, Wi = 30, Ut = [], Ri = "", Oi = function(e) {
513
513
  var t = e[0], i, n;
514
- if (ve(t) || V(t) || (e = [e]), !(i = (t._gsap || {}).harness)) {
514
+ if (Ee(t) || G(t) || (e = [e]), !(i = (t._gsap || {}).harness)) {
515
515
  for (n = Ut.length; n-- && !Ut[n].targetTest(t); )
516
516
  ;
517
517
  i = Ut[n];
518
518
  }
519
519
  for (n = e.length; n--; )
520
- e[n] && (e[n]._gsap || (e[n]._gsap = new ar(e[n], i))) || e.splice(n, 1);
520
+ e[n] && (e[n]._gsap || (e[n]._gsap = new or(e[n], i))) || e.splice(n, 1);
521
521
  return e;
522
- }, je = function(e) {
522
+ }, He = function(e) {
523
523
  return e._gsap || Oi(me(e))[0]._gsap;
524
- }, Fn = function(e, t, i) {
525
- return (i = e[t]) && V(i) ? e[t]() : Ti(i) && e.getAttribute && e.getAttribute(t) || i;
524
+ }, Nn = function(e, t, i) {
525
+ return (i = e[t]) && G(i) ? e[t]() : Ai(i) && e.getAttribute && e.getAttribute(t) || i;
526
526
  }, te = function(e, t) {
527
527
  return (e = e.split(",")).forEach(t) || e;
528
- }, G = function(e) {
528
+ }, V = function(e) {
529
529
  return Math.round(e * 1e5) / 1e5 || 0;
530
- }, H = function(e) {
530
+ }, j = function(e) {
531
531
  return Math.round(e * 1e7) / 1e7 || 0;
532
532
  }, it = function(e, t) {
533
533
  var i = t.charAt(0), n = parseFloat(t.substr(2));
534
534
  return e = parseFloat(e), i === "+" ? e + n : i === "-" ? e - n : i === "*" ? e * n : e / n;
535
- }, rs = function(e, t) {
535
+ }, as = function(e, t) {
536
536
  for (var i = t.length, n = 0; e.indexOf(t[n]) < 0 && ++n < i; )
537
537
  ;
538
538
  return n < i;
@@ -540,20 +540,20 @@ var he = {
540
540
  var e = Re.length, t = Re.slice(0), i, n;
541
541
  for (ci = {}, Re.length = 0, i = 0; i < e; i++)
542
542
  n = t[i], n && n._lazy && (n.render(n._lazy[0], n._lazy[1], !0)._lazy = 0);
543
- }, ki = function(e) {
543
+ }, Ii = function(e) {
544
544
  return !!(e._initted || e._startAt || e.add);
545
545
  }, zn = function(e, t, i, n) {
546
- Re.length && !X && $t(), e.render(t, i, !!(X && t < 0 && ki(e))), Re.length && !X && $t();
547
- }, Nn = function(e) {
548
- var t = parseFloat(e);
549
- return (t || t === 0) && (e + "").match(On).length < 2 ? t : Z(e) ? e.trim() : e;
546
+ Re.length && !K && $t(), e.render(t, i, !!(K && t < 0 && Ii(e))), Re.length && !K && $t();
550
547
  }, $n = function(e) {
548
+ var t = parseFloat(e);
549
+ return (t || t === 0) && (e + "").match(In).length < 2 ? t : Z(e) ? e.trim() : e;
550
+ }, Bn = function(e) {
551
551
  return e;
552
552
  }, ue = function(e, t) {
553
553
  for (var i in t)
554
554
  i in e || (e[i] = t[i]);
555
555
  return e;
556
- }, ss = function(e) {
556
+ }, os = function(e) {
557
557
  return function(t, i) {
558
558
  for (var n in i)
559
559
  n in t || n === "duration" && e || n === "ease" || (t[n] = i[n]);
@@ -564,7 +564,7 @@ var he = {
564
564
  return e;
565
565
  }, qi = function a(e, t) {
566
566
  for (var i in t)
567
- i !== "__proto__" && i !== "constructor" && i !== "prototype" && (e[i] = ve(t[i]) ? a(e[i] || (e[i] = {}), t[i]) : t[i]);
567
+ i !== "__proto__" && i !== "constructor" && i !== "prototype" && (e[i] = Ee(t[i]) ? a(e[i] || (e[i] = {}), t[i]) : t[i]);
568
568
  return e;
569
569
  }, Bt = function(e, t) {
570
570
  var i = {}, n;
@@ -572,16 +572,16 @@ var he = {
572
572
  n in t || (i[n] = e[n]);
573
573
  return i;
574
574
  }, yt = function(e) {
575
- var t = e.parent || N, i = e.keyframes ? ss(K(e.keyframes)) : ue;
575
+ var t = e.parent || z, i = e.keyframes ? os(W(e.keyframes)) : ue;
576
576
  if (ee(e.inherit))
577
577
  for (; t; )
578
578
  i(e, t.vars.defaults), t = t.parent || t._dp;
579
579
  return e;
580
- }, as = function(e, t) {
580
+ }, ls = function(e, t) {
581
581
  for (var i = e.length, n = i === t.length; n && i-- && e[i] === t[i]; )
582
582
  ;
583
583
  return i < 0;
584
- }, Bn = function(e, t, i, n, r) {
584
+ }, Gn = function(e, t, i, n, r) {
585
585
  var s = e[n], o;
586
586
  if (r)
587
587
  for (o = t[r]; s && s[r] > o; )
@@ -591,66 +591,66 @@ var he = {
591
591
  i === void 0 && (i = "_first"), n === void 0 && (n = "_last");
592
592
  var r = t._prev, s = t._next;
593
593
  r ? r._next = s : e[i] === t && (e[i] = s), s ? s._prev = r : e[n] === t && (e[n] = r), t._next = t._prev = t.parent = null;
594
- }, ke = function(e, t) {
594
+ }, Ie = function(e, t) {
595
595
  e.parent && (!t || e.parent.autoRemoveChildren) && e.parent.remove && e.parent.remove(e), e._act = 0;
596
- }, He = function(e, t) {
596
+ }, je = function(e, t) {
597
597
  if (e && (!t || t._end > e._dur || t._start < 0))
598
598
  for (var i = e; i; )
599
599
  i._dirty = 1, i = i.parent;
600
600
  return e;
601
- }, os = function(e) {
601
+ }, hs = function(e) {
602
602
  for (var t = e.parent; t && t.parent; )
603
603
  t._dirty = 1, t.totalDuration(), t = t.parent;
604
604
  return e;
605
605
  }, ui = function(e, t, i, n) {
606
- return e._startAt && (X ? e._startAt.revert(It) : e.vars.immediateRender && !e.vars.autoRevert || e._startAt.render(t, !0, n));
607
- }, ls = function a(e) {
606
+ return e._startAt && (K ? e._startAt.revert(kt) : e.vars.immediateRender && !e.vars.autoRevert || e._startAt.render(t, !0, n));
607
+ }, cs = function a(e) {
608
608
  return !e || e._ts && a(e.parent);
609
609
  }, Qi = function(e) {
610
610
  return e._repeat ? ot(e._tTime, e = e.duration() + e._rDelay) * e : 0;
611
611
  }, ot = function(e, t) {
612
- var i = Math.floor(e = H(e / t));
612
+ var i = Math.floor(e = j(e / t));
613
613
  return e && i === e ? i - 1 : i;
614
- }, Vt = function(e, t) {
614
+ }, Gt = function(e, t) {
615
615
  return (e - t._start) * t._ts + (t._ts >= 0 ? 0 : t._dirty ? t.totalDuration() : t._tDur);
616
616
  }, Zt = function(e) {
617
- return e._end = H(e._start + (e._tDur / Math.abs(e._ts || e._rts || I) || 0));
618
- }, Xt = function(e, t) {
617
+ return e._end = j(e._start + (e._tDur / Math.abs(e._ts || e._rts || k) || 0));
618
+ }, Kt = function(e, t) {
619
619
  var i = e._dp;
620
- 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)), Zt(e), i._dirty || He(i, e)), e;
620
+ return i && i.smoothChildTiming && e._ts && (e._start = j(i._time - (e._ts > 0 ? t / e._ts : ((e._dirty ? e.totalDuration() : e._tDur) - t) / -e._ts)), Zt(e), i._dirty || je(i, e)), e;
621
621
  }, Vn = function(e, t) {
622
622
  var i;
623
- if ((t._time || !t._dur && t._initted || t._start < e._time && (t._dur || !t.add)) && (i = Vt(e.rawTime(), t), (!t._dur || Dt(0, t.totalDuration(), i) - t._tTime > I) && t.render(i, !0)), He(e, t)._dp && e._initted && e._time >= e._dur && e._ts) {
623
+ if ((t._time || !t._dur && t._initted || t._start < e._time && (t._dur || !t.add)) && (i = Gt(e.rawTime(), t), (!t._dur || Dt(0, t.totalDuration(), i) - t._tTime > k) && t.render(i, !0)), je(e, t)._dp && e._initted && e._time >= e._dur && e._ts) {
624
624
  if (e._dur < e.duration())
625
625
  for (i = e; i._dp; )
626
626
  i.rawTime() >= 0 && i.totalTime(i._tTime), i = i._dp;
627
- e._zTime = -I;
627
+ e._zTime = -k;
628
628
  }
629
629
  }, ye = function(e, t, i, n) {
630
- return t.parent && ke(t), t._start = H((Ce(i) ? i : i || e !== N ? pe(e, i, t) : e._time) + t._delay), t._end = H(t._start + (t.totalDuration() / Math.abs(t.timeScale()) || 0)), Bn(e, t, "_first", "_last", e._sort ? "_start" : 0), di(t) || (e._recent = t), n || Vn(e, t), e._ts < 0 && Xt(e, e._tTime), e;
631
- }, Gn = function(e, t) {
630
+ return t.parent && Ie(t), t._start = j((Pe(i) ? i : i || e !== z ? pe(e, i, t) : e._time) + t._delay), t._end = j(t._start + (t.totalDuration() / Math.abs(t.timeScale()) || 0)), Gn(e, t, "_first", "_last", e._sort ? "_start" : 0), di(t) || (e._recent = t), n || Vn(e, t), e._ts < 0 && Kt(e, e._tTime), e;
631
+ }, Hn = function(e, t) {
632
632
  return (ce.ScrollTrigger || Di("scrollTrigger", t)) && ce.ScrollTrigger.create(t, e);
633
633
  }, jn = function(e, t, i, n, r) {
634
- if (Ii(e, t, r), !e._initted)
634
+ if (ki(e, t, r), !e._initted)
635
635
  return 1;
636
- if (!i && e._pt && !X && (e._dur && e.vars.lazy !== !1 || !e._dur && e.vars.lazy) && Un !== oe.frame)
636
+ if (!i && e._pt && !K && (e._dur && e.vars.lazy !== !1 || !e._dur && e.vars.lazy) && Fn !== oe.frame)
637
637
  return Re.push(e), e._lazy = [r, n], 1;
638
- }, hs = function a(e) {
638
+ }, us = function a(e) {
639
639
  var t = e.parent;
640
640
  return t && t._ts && t._initted && !t._lock && (t.rawTime() < 0 || a(t));
641
641
  }, di = function(e) {
642
642
  var t = e.data;
643
643
  return t === "isFromStart" || t === "isStart";
644
- }, cs = function(e, t, i, n) {
645
- var r = e.ratio, s = t < 0 || !t && (!e._start && hs(e) && !(!e._initted && di(e)) || (e._ts < 0 || e._dp._ts < 0) && !di(e)) ? 0 : 1, o = e._rDelay, l = 0, c, h, u;
646
- if (o && e._repeat && (l = Dt(0, e._tDur, t), h = ot(l, o), e._yoyo && h & 1 && (s = 1 - s), h !== ot(e._tTime, o) && (r = 1 - s, e.vars.repeatRefresh && e._initted && e.invalidate())), s !== r || X || n || e._zTime === I || !t && e._zTime) {
644
+ }, ds = function(e, t, i, n) {
645
+ var r = e.ratio, s = t < 0 || !t && (!e._start && us(e) && !(!e._initted && di(e)) || (e._ts < 0 || e._dp._ts < 0) && !di(e)) ? 0 : 1, o = e._rDelay, l = 0, c, h, u;
646
+ if (o && e._repeat && (l = Dt(0, e._tDur, t), h = ot(l, o), e._yoyo && h & 1 && (s = 1 - s), h !== ot(e._tTime, o) && (r = 1 - s, e.vars.repeatRefresh && e._initted && e.invalidate())), s !== r || K || n || e._zTime === k || !t && e._zTime) {
647
647
  if (!e._initted && jn(e, t, n, i, l))
648
648
  return;
649
- for (u = e._zTime, e._zTime = t || (i ? I : 0), i || (i = t && !u), e.ratio = s, e._from && (s = 1 - s), e._time = 0, e._tTime = l, c = e._pt; c; )
649
+ 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, c = e._pt; c; )
650
650
  c.r(s, c.d), c = c._next;
651
- t < 0 && ui(e, t, i, !0), e._onUpdate && !i && le(e, "onUpdate"), l && e._repeat && !i && e.parent && le(e, "onRepeat"), (t >= e._tDur || t < 0) && e.ratio === s && (s && ke(e, 1), !i && !X && (le(e, s ? "onComplete" : "onReverseComplete", !0), e._prom && e._prom()));
651
+ t < 0 && ui(e, t, i, !0), e._onUpdate && !i && le(e, "onUpdate"), l && e._repeat && !i && e.parent && le(e, "onRepeat"), (t >= e._tDur || t < 0) && e.ratio === s && (s && Ie(e, 1), !i && !K && (le(e, s ? "onComplete" : "onReverseComplete", !0), e._prom && e._prom()));
652
652
  } else e._zTime || (e._zTime = t);
653
- }, us = function(e, t, i) {
653
+ }, ps = function(e, t, i) {
654
654
  var n;
655
655
  if (i > t)
656
656
  for (n = e._first; n && n._start <= i; ) {
@@ -665,57 +665,57 @@ var he = {
665
665
  n = n._prev;
666
666
  }
667
667
  }, lt = function(e, t, i, n) {
668
- var r = e._repeat, s = H(t) || 0, o = e._tTime / e._tDur;
669
- 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 && Xt(e, e._tTime = e._tDur * o), e.parent && Zt(e), i || He(e.parent, e), e;
668
+ var r = e._repeat, s = j(t) || 0, o = e._tTime / e._tDur;
669
+ return o && !n && (e._time *= s / e._dur), e._dur = s, e._tDur = r ? r < 0 ? 1e10 : j(s * (r + 1) + e._rDelay * r) : s, o > 0 && !n && Kt(e, e._tTime = e._tDur * o), e.parent && Zt(e), i || je(e.parent, e), e;
670
670
  }, Ji = function(e) {
671
- return e instanceof q ? He(e) : lt(e, e._dur);
672
- }, ds = {
671
+ return e instanceof q ? je(e) : lt(e, e._dur);
672
+ }, fs = {
673
673
  _start: 0,
674
- endTime: Et,
675
- totalDuration: Et
674
+ endTime: vt,
675
+ totalDuration: vt
676
676
  }, pe = function a(e, t, i) {
677
- var n = e.labels, r = e._recent || ds, s = e.duration() >= fe ? r.endTime(!1) : e._dur, o, l, c;
678
- return Z(t) && (isNaN(t) || t in n) ? (l = t.charAt(0), c = t.substr(-1) === "%", o = t.indexOf("="), l === "<" || l === ">" ? (o >= 0 && (t = t.replace(/=/, "")), (l === "<" ? r._start : r.endTime(r._repeat >= 0)) + (parseFloat(t.substr(1)) || 0) * (c ? (o < 0 ? r : i).totalDuration() / 100 : 1)) : o < 0 ? (t in n || (n[t] = s), n[t]) : (l = parseFloat(t.charAt(o - 1) + t.substr(o + 1)), c && i && (l = l / 100 * (K(i) ? i[0] : i).totalDuration()), o > 1 ? a(e, t.substr(0, o - 1), i) + l : s + l)) : t == null ? s : +t;
677
+ var n = e.labels, r = e._recent || fs, s = e.duration() >= fe ? r.endTime(!1) : e._dur, o, l, c;
678
+ return Z(t) && (isNaN(t) || t in n) ? (l = t.charAt(0), c = t.substr(-1) === "%", o = t.indexOf("="), l === "<" || l === ">" ? (o >= 0 && (t = t.replace(/=/, "")), (l === "<" ? r._start : r.endTime(r._repeat >= 0)) + (parseFloat(t.substr(1)) || 0) * (c ? (o < 0 ? r : i).totalDuration() / 100 : 1)) : o < 0 ? (t in n || (n[t] = s), n[t]) : (l = parseFloat(t.charAt(o - 1) + t.substr(o + 1)), c && i && (l = l / 100 * (W(i) ? i[0] : i).totalDuration()), o > 1 ? a(e, t.substr(0, o - 1), i) + l : s + l)) : t == null ? s : +t;
679
679
  }, xt = function(e, t, i) {
680
- var n = Ce(t[1]), r = (n ? 2 : 1) + (e < 2 ? 0 : 1), s = t[r], o, l;
680
+ var n = Pe(t[1]), r = (n ? 2 : 1) + (e < 2 ? 0 : 1), s = t[r], o, l;
681
681
  if (n && (s.duration = t[1]), s.parent = i, e) {
682
682
  for (o = s, l = i; l && !("immediateRender" in o); )
683
683
  o = l.vars.defaults || {}, l = ee(l.vars.inherit) && l.parent;
684
684
  s.immediateRender = ee(o.immediateRender), e < 2 ? s.runBackwards = 1 : s.startAt = t[r - 1];
685
685
  }
686
- return new j(t[0], s, t[r + 1]);
687
- }, Ie = function(e, t) {
686
+ return new H(t[0], s, t[r + 1]);
687
+ }, ke = function(e, t) {
688
688
  return e || e === 0 ? t(e) : t;
689
689
  }, Dt = function(e, t, i) {
690
690
  return i < e ? e : i > t ? t : i;
691
- }, W = function(e, t) {
692
- return !Z(e) || !(t = ts.exec(e)) ? "" : t[1];
693
- }, ps = function(e, t, i) {
694
- return Ie(i, function(n) {
691
+ }, X = function(e, t) {
692
+ return !Z(e) || !(t = ns.exec(e)) ? "" : t[1];
693
+ }, ms = function(e, t, i) {
694
+ return ke(i, function(n) {
695
695
  return Dt(e, t, n);
696
696
  });
697
- }, pi = [].slice, Hn = function(e, t) {
698
- return e && ve(e) && "length" in e && (!t && !e.length || e.length - 1 in e && ve(e[0])) && !e.nodeType && e !== _e;
699
- }, fs = function(e, t, i) {
697
+ }, pi = [].slice, Yn = function(e, t) {
698
+ return e && Ee(e) && "length" in e && (!t && !e.length || e.length - 1 in e && Ee(e[0])) && !e.nodeType && e !== _e;
699
+ }, gs = function(e, t, i) {
700
700
  return i === void 0 && (i = []), e.forEach(function(n) {
701
701
  var r;
702
- return Z(n) && !t || Hn(n, 1) ? (r = i).push.apply(r, me(n)) : i.push(n);
702
+ return Z(n) && !t || Yn(n, 1) ? (r = i).push.apply(r, me(n)) : i.push(n);
703
703
  }) || i;
704
704
  }, me = function(e, t, i) {
705
- return z && !t && z.selector ? z.selector(e) : Z(e) && !i && (hi || !ht()) ? pi.call((t || Ai).querySelectorAll(e), 0) : K(e) ? fs(e, i) : Hn(e) ? pi.call(e, 0) : e ? [e] : [];
705
+ return N && !t && N.selector ? N.selector(e) : Z(e) && !i && (hi || !ht()) ? pi.call((t || Si).querySelectorAll(e), 0) : W(e) ? gs(e, i) : Yn(e) ? pi.call(e, 0) : e ? [e] : [];
706
706
  }, fi = function(e) {
707
- return e = me(e)[0] || vt("Invalid scope") || {}, function(t) {
707
+ return e = me(e)[0] || Et("Invalid scope") || {}, function(t) {
708
708
  var i = e.current || e.nativeElement || e;
709
- return me(t, i.querySelectorAll ? i : i === e ? vt("Invalid scope") || Ai.createElement("div") : e);
709
+ return me(t, i.querySelectorAll ? i : i === e ? Et("Invalid scope") || Si.createElement("div") : e);
710
710
  };
711
- }, Yn = function(e) {
711
+ }, Zn = function(e) {
712
712
  return e.sort(function() {
713
713
  return 0.5 - Math.random();
714
714
  });
715
- }, Zn = function(e) {
716
- if (V(e))
715
+ }, Kn = function(e) {
716
+ if (G(e))
717
717
  return e;
718
- var t = ve(e) ? e : {
718
+ var t = Ee(e) ? e : {
719
719
  each: e
720
720
  }, i = Ye(t.ease), n = t.from || 0, r = parseFloat(t.base) || 0, s = {}, o = n > 0 && n < 1, l = isNaN(n) || o, c = t.axis, h = n, u = n;
721
721
  return Z(n) ? h = u = {
@@ -723,39 +723,39 @@ var he = {
723
723
  edges: 0.5,
724
724
  end: 1
725
725
  }[n] || 0 : !o && l && (h = n[0], u = n[1]), function(p, m, f) {
726
- var d = (f || t).length, g = s[d], _, y, x, b, v, P, w, C, E;
726
+ var d = (f || t).length, g = s[d], _, y, x, E, b, C, v, P, w;
727
727
  if (!g) {
728
- if (E = t.grid === "auto" ? 0 : (t.grid || [1, fe])[1], !E) {
729
- for (w = -fe; w < (w = f[E++].getBoundingClientRect().left) && E < d; )
728
+ if (w = t.grid === "auto" ? 0 : (t.grid || [1, fe])[1], !w) {
729
+ for (v = -fe; v < (v = f[w++].getBoundingClientRect().left) && w < d; )
730
730
  ;
731
- E < d && E--;
731
+ w < d && w--;
732
732
  }
733
- for (g = s[d] = [], _ = l ? Math.min(E, d) * h - 0.5 : n % E, y = E === fe ? 0 : l ? d * u / E - 0.5 : n / E | 0, w = 0, C = fe, P = 0; P < d; P++)
734
- x = P % E - _, b = y - (P / E | 0), g[P] = v = c ? Math.abs(c === "y" ? b : x) : An(x * x + b * b), v > w && (w = v), v < C && (C = v);
735
- n === "random" && Yn(g), g.max = w - C, g.min = C, g.v = d = (parseFloat(t.amount) || parseFloat(t.each) * (E > d ? d - 1 : c ? c === "y" ? d / E : E : Math.max(E, d / E)) || 0) * (n === "edges" ? -1 : 1), g.b = d < 0 ? r - d : r, g.u = W(t.amount || t.each) || 0, i = i && d < 0 ? nr(i) : i;
733
+ for (g = s[d] = [], _ = l ? Math.min(w, d) * h - 0.5 : n % w, y = w === fe ? 0 : l ? d * u / w - 0.5 : n / w | 0, v = 0, P = fe, C = 0; C < d; C++)
734
+ x = C % w - _, E = y - (C / w | 0), g[C] = b = c ? Math.abs(c === "y" ? E : x) : Dn(x * x + E * E), b > v && (v = b), b < P && (P = b);
735
+ n === "random" && Zn(g), g.max = v - P, g.min = P, g.v = d = (parseFloat(t.amount) || parseFloat(t.each) * (w > d ? d - 1 : c ? c === "y" ? d / w : w : Math.max(w, d / w)) || 0) * (n === "edges" ? -1 : 1), g.b = d < 0 ? r - d : r, g.u = X(t.amount || t.each) || 0, i = i && d < 0 ? rr(i) : i;
736
736
  }
737
- return d = (g[p] - g.min) / g.max || 0, H(g.b + (i ? i(d) : d) * g.v) + g.u;
737
+ return d = (g[p] - g.min) / g.max || 0, j(g.b + (i ? i(d) : d) * g.v) + g.u;
738
738
  };
739
739
  }, mi = function(e) {
740
740
  var t = Math.pow(10, ((e + "").split(".")[1] || "").length);
741
741
  return function(i) {
742
- var n = H(Math.round(parseFloat(i) / e) * e * t);
743
- return (n - n % 1) / t + (Ce(i) ? 0 : W(i));
742
+ var n = j(Math.round(parseFloat(i) / e) * e * t);
743
+ return (n - n % 1) / t + (Pe(i) ? 0 : X(i));
744
744
  };
745
745
  }, Xn = function(e, t) {
746
- var i = K(e), n, r;
747
- return !i && ve(e) && (n = i = e.radius || fe, e.values ? (e = me(e.values), (r = !Ce(e[0])) && (n *= n)) : e = mi(e.increment)), Ie(t, i ? V(e) ? function(s) {
746
+ var i = W(e), n, r;
747
+ return !i && Ee(e) && (n = i = e.radius || fe, e.values ? (e = me(e.values), (r = !Pe(e[0])) && (n *= n)) : e = mi(e.increment)), ke(t, i ? G(e) ? function(s) {
748
748
  return r = e(s), Math.abs(r - s) <= n ? r : s;
749
749
  } : function(s) {
750
750
  for (var o = parseFloat(r ? s.x : s), l = parseFloat(r ? s.y : 0), c = fe, h = 0, u = e.length, p, m; u--; )
751
751
  r ? (p = e[u].x - o, m = e[u].y - l, p = p * p + m * m) : p = Math.abs(e[u] - o), p < c && (c = p, h = u);
752
- return h = !n || c <= n ? e[h] : s, r || h === s || Ce(s) ? h : h + W(s);
752
+ return h = !n || c <= n ? e[h] : s, r || h === s || Pe(s) ? h : h + X(s);
753
753
  } : mi(e));
754
754
  }, Wn = function(e, t, i, n) {
755
- return Ie(K(e) ? !t : i === !0 ? !!(i = 0) : !n, function() {
756
- return K(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;
755
+ return ke(W(e) ? !t : i === !0 ? !!(i = 0) : !n, function() {
756
+ return W(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;
757
757
  });
758
- }, ms = function() {
758
+ }, _s = function() {
759
759
  for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
760
760
  t[i] = arguments[i];
761
761
  return function(n) {
@@ -763,36 +763,36 @@ var he = {
763
763
  return s(r);
764
764
  }, n);
765
765
  };
766
- }, gs = function(e, t) {
766
+ }, ys = function(e, t) {
767
767
  return function(i) {
768
- return e(parseFloat(i)) + (t || W(i));
768
+ return e(parseFloat(i)) + (t || X(i));
769
769
  };
770
- }, _s = function(e, t, i) {
771
- return qn(e, t, 0, 1, i);
772
- }, Kn = function(e, t, i) {
773
- return Ie(i, function(n) {
770
+ }, xs = function(e, t, i) {
771
+ return Qn(e, t, 0, 1, i);
772
+ }, qn = function(e, t, i) {
773
+ return ke(i, function(n) {
774
774
  return e[~~t(n)];
775
775
  });
776
- }, ys = function a(e, t, i) {
776
+ }, bs = function a(e, t, i) {
777
777
  var n = t - e;
778
- return K(e) ? Kn(e, a(0, e.length), t) : Ie(i, function(r) {
778
+ return W(e) ? qn(e, a(0, e.length), t) : ke(i, function(r) {
779
779
  return (n + (r - e) % n) % n + e;
780
780
  });
781
- }, xs = function a(e, t, i) {
781
+ }, Es = function a(e, t, i) {
782
782
  var n = t - e, r = n * 2;
783
- return K(e) ? Kn(e, a(0, e.length - 1), t) : Ie(i, function(s) {
783
+ return W(e) ? qn(e, a(0, e.length - 1), t) : ke(i, function(s) {
784
784
  return s = (r + (s - e) % r) % r || 0, e + (s > n ? r - s : s);
785
785
  });
786
786
  }, wt = function(e) {
787
787
  for (var t = 0, i = "", n, r, s, o; ~(n = e.indexOf("random(", t)); )
788
- s = e.indexOf(")", n), o = e.charAt(n + 7) === "[", r = e.substr(n + 7, s - n - 7).match(o ? On : li), i += e.substr(t, n - t) + Wn(o ? r : +r[0], o ? 0 : +r[1], +r[2] || 1e-5), t = s + 1;
788
+ s = e.indexOf(")", n), o = e.charAt(n + 7) === "[", r = e.substr(n + 7, s - n - 7).match(o ? In : li), i += e.substr(t, n - t) + Wn(o ? r : +r[0], o ? 0 : +r[1], +r[2] || 1e-5), t = s + 1;
789
789
  return i + e.substr(t, e.length - t);
790
- }, qn = function(e, t, i, n, r) {
790
+ }, Qn = function(e, t, i, n, r) {
791
791
  var s = t - e, o = n - i;
792
- return Ie(r, function(l) {
792
+ return ke(r, function(l) {
793
793
  return i + ((l - e) / s * o || 0);
794
794
  });
795
- }, bs = function a(e, t, i, n) {
795
+ }, vs = function a(e, t, i, n) {
796
796
  var r = isNaN(e + t) ? 0 : function(m) {
797
797
  return (1 - m) * e + m * t;
798
798
  };
@@ -804,7 +804,7 @@ var he = {
804
804
  }, t = {
805
805
  p: t
806
806
  };
807
- else if (K(e) && !K(t)) {
807
+ else if (W(e) && !W(t)) {
808
808
  for (h = [], u = e.length, p = u - 2, c = 1; c < u; c++)
809
809
  h.push(a(e[c - 1], e[c]));
810
810
  u--, r = function(f) {
@@ -812,38 +812,38 @@ var he = {
812
812
  var d = Math.min(p, ~~f);
813
813
  return h[d](f - d);
814
814
  }, i = t;
815
- } else n || (e = at(K(e) ? [] : {}, e));
815
+ } else n || (e = at(W(e) ? [] : {}, e));
816
816
  if (!h) {
817
817
  for (l in t)
818
818
  Li.call(o, e, l, "get", t[l]);
819
819
  r = function(f) {
820
- return zi(f, o) || (s ? e.p : e);
820
+ return Ni(f, o) || (s ? e.p : e);
821
821
  };
822
822
  }
823
823
  }
824
- return Ie(i, r);
824
+ return ke(i, r);
825
825
  }, en = function(e, t, i) {
826
826
  var n = e.labels, r = fe, s, o, l;
827
827
  for (s in n)
828
828
  o = n[s] - t, o < 0 == !!i && o && r > (o = Math.abs(o)) && (l = s, r = o);
829
829
  return l;
830
830
  }, le = function(e, t, i) {
831
- var n = e.vars, r = n[t], s = z, o = e._ctx, l, c, h;
831
+ var n = e.vars, r = n[t], s = N, o = e._ctx, l, c, h;
832
832
  if (r)
833
- return l = n[t + "Params"], c = n.callbackScope || e, i && Re.length && $t(), o && (z = o), h = l ? r.apply(c, l) : r.call(c), z = s, h;
833
+ return l = n[t + "Params"], c = n.callbackScope || e, i && Re.length && $t(), o && (N = o), h = l ? r.apply(c, l) : r.call(c), N = s, h;
834
834
  }, mt = function(e) {
835
- return ke(e), e.scrollTrigger && e.scrollTrigger.kill(!!X), e.progress() < 1 && le(e, "onInterrupt"), e;
836
- }, et, Qn = [], Jn = function(e) {
835
+ return Ie(e), e.scrollTrigger && e.scrollTrigger.kill(!!K), e.progress() < 1 && le(e, "onInterrupt"), e;
836
+ }, et, Jn = [], er = function(e) {
837
837
  if (e)
838
- if (e = !e.name && e.default || e, Si() || e.headless) {
839
- var t = e.name, i = V(e), n = t && !i && e.init ? function() {
838
+ if (e = !e.name && e.default || e, Ti() || e.headless) {
839
+ var t = e.name, i = G(e), n = t && !i && e.init ? function() {
840
840
  this._props = [];
841
841
  } : e, r = {
842
- init: Et,
843
- render: zi,
842
+ init: vt,
843
+ render: Ni,
844
844
  add: Li,
845
- kill: Us,
846
- modifier: Is,
845
+ kill: Ns,
846
+ modifier: Fs,
847
847
  rawVars: 0
848
848
  }, s = {
849
849
  targetTest: 0,
@@ -857,9 +857,9 @@ var he = {
857
857
  return;
858
858
  ue(n, ue(Bt(e, r), s)), at(n.prototype, at(r, Bt(e, s))), ae[n.prop = t] = n, e.targetTest && (Ut.push(n), Mi[t] = 1), t = (t === "css" ? "CSS" : t.charAt(0).toUpperCase() + t.substr(1)) + "Plugin";
859
859
  }
860
- In(t, n), e.register && e.register(re, n, ie);
860
+ Un(t, n), e.register && e.register(re, n, ie);
861
861
  } else
862
- Qn.push(e);
862
+ Jn.push(e);
863
863
  }, L = 255, gt = {
864
864
  aqua: [0, L, L],
865
865
  lime: [0, L, 0],
@@ -882,8 +882,8 @@ var he = {
882
882
  transparent: [L, L, L, 0]
883
883
  }, Qt = function(e, t, i) {
884
884
  return e += e < 0 ? 1 : e > 1 ? -1 : 0, (e * 6 < 1 ? t + (i - t) * e * 6 : e < 0.5 ? i : e * 3 < 2 ? t + (i - t) * (2 / 3 - e) * 6 : t) * L + 0.5 | 0;
885
- }, er = function(e, t, i) {
886
- var n = e ? Ce(e) ? [e >> 16, e >> 8 & L, e & L] : 0 : gt.black, r, s, o, l, c, h, u, p, m, f;
885
+ }, tr = function(e, t, i) {
886
+ var n = e ? Pe(e) ? [e >> 16, e >> 8 & L, e & L] : 0 : gt.black, r, s, o, l, c, h, u, p, m, f;
887
887
  if (!n) {
888
888
  if (e.substr(-1) === "," && (e = e.substr(0, e.length - 1)), gt[e])
889
889
  n = gt[e];
@@ -895,13 +895,13 @@ var he = {
895
895
  if (n = f = e.match(li), !t)
896
896
  l = +n[0] % 360 / 360, c = +n[1] / 100, h = +n[2] / 100, s = h <= 0.5 ? h * (c + 1) : h + c - h * c, r = h * 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);
897
897
  else if (~e.indexOf("="))
898
- return n = e.match(Mn), i && n.length < 4 && (n[3] = 1), n;
898
+ return n = e.match(Rn), i && n.length < 4 && (n[3] = 1), n;
899
899
  } else
900
900
  n = e.match(li) || gt.transparent;
901
901
  n = n.map(Number);
902
902
  }
903
903
  return t && !f && (r = n[0] / L, s = n[1] / L, o = n[2] / L, u = Math.max(r, s, o), p = Math.min(r, s, o), h = (u + p) / 2, u === p ? l = c = 0 : (m = u - p, c = h > 0.5 ? m / (2 - u - p) : m / (u + p), l = u === r ? (s - o) / m + (s < o ? 6 : 0) : u === s ? (o - r) / m + 2 : (r - s) / m + 4, l *= 60), n[0] = ~~(l + 0.5), n[1] = ~~(c * 100 + 0.5), n[2] = ~~(h * 100 + 0.5)), i && n.length < 4 && (n[3] = 1), n;
904
- }, tr = function(e) {
904
+ }, ir = function(e) {
905
905
  var t = [], i = [], n = -1;
906
906
  return e.split(Oe).forEach(function(r) {
907
907
  var s = r.match(Je) || [];
@@ -912,8 +912,8 @@ var he = {
912
912
  if (!r)
913
913
  return e;
914
914
  if (r = r.map(function(p) {
915
- return (p = er(p, t, 1)) && s + (t ? p[0] + "," + p[1] + "%," + p[2] + "%," + p[3] : p.join(",")) + ")";
916
- }), i && (h = tr(e), l = i.c, l.join(n) !== h.c.join(n)))
915
+ return (p = tr(p, t, 1)) && s + (t ? p[0] + "," + p[1] + "%," + p[2] + "%," + p[3] : p.join(",")) + ")";
916
+ }), i && (h = ir(e), l = i.c, l.join(n) !== h.c.join(n)))
917
917
  for (c = e.replace(Oe, "1").split(Je), u = c.length - 1; o < u; o++)
918
918
  n += c[o] + (~l.indexOf(o) ? r.shift() || s + "0,0,0,0)" : (h.length ? h : r.length ? r : i).shift());
919
919
  if (!c)
@@ -925,16 +925,16 @@ var he = {
925
925
  for (e in gt)
926
926
  a += "|" + e + "\\b";
927
927
  return new RegExp(a + ")", "gi");
928
- })(), vs = /hsl[a]?\(/, ir = function(e) {
928
+ })(), ws = /hsl[a]?\(/, nr = function(e) {
929
929
  var t = e.join(" "), i;
930
930
  if (Oe.lastIndex = 0, Oe.test(t))
931
- return i = vs.test(t), e[1] = tn(e[1], i), e[0] = tn(e[0], i, tr(e[1])), !0;
932
- }, Pt, oe = (function() {
931
+ return i = ws.test(t), e[1] = tn(e[1], i), e[0] = tn(e[0], i, ir(e[1])), !0;
932
+ }, Ct, oe = (function() {
933
933
  var a = Date.now, e = 500, t = 33, i = a(), n = i, r = 1e3 / 240, s = r, o = [], l, c, h, u, p, m, f = function d(g) {
934
- var _ = a() - n, y = g === !0, x, b, v, P;
935
- if ((_ > e || _ < 0) && (i += _ - t), n += _, v = n - i, x = v - s, (x > 0 || y) && (P = ++u.frame, p = v - u.time * 1e3, u.time = v = v / 1e3, s += x + (x >= r ? 4 : r - x), b = 1), y || (l = c(d)), b)
934
+ var _ = a() - n, y = g === !0, x, E, b, C;
935
+ if ((_ > e || _ < 0) && (i += _ - t), n += _, b = n - i, x = b - s, (x > 0 || y) && (C = ++u.frame, p = b - u.time * 1e3, u.time = b = b / 1e3, s += x + (x >= r ? 4 : r - x), E = 1), y || (l = c(d)), E)
936
936
  for (m = 0; m < o.length; m++)
937
- o[m](v, p, P, g);
937
+ o[m](b, p, C, g);
938
938
  };
939
939
  return u = {
940
940
  time: 0,
@@ -946,12 +946,12 @@ var he = {
946
946
  return p / (1e3 / (g || 60));
947
947
  },
948
948
  wake: function() {
949
- kn && (!hi && Si() && (_e = hi = window, Ai = _e.document || {}, ce.gsap = re, (_e.gsapVersions || (_e.gsapVersions = [])).push(re.version), Ln(Nt || _e.GreenSockGlobals || !_e.gsap && _e || {}), Qn.forEach(Jn)), h = typeof requestAnimationFrame < "u" && requestAnimationFrame, l && u.sleep(), c = h || function(g) {
949
+ Ln && (!hi && Ti() && (_e = hi = window, Si = _e.document || {}, ce.gsap = re, (_e.gsapVersions || (_e.gsapVersions = [])).push(re.version), kn(zt || _e.GreenSockGlobals || !_e.gsap && _e || {}), Jn.forEach(er)), h = typeof requestAnimationFrame < "u" && requestAnimationFrame, l && u.sleep(), c = h || function(g) {
950
950
  return setTimeout(g, s - u.time * 1e3 + 1 | 0);
951
- }, Pt = 1, f(2));
951
+ }, Ct = 1, f(2));
952
952
  },
953
953
  sleep: function() {
954
- (h ? cancelAnimationFrame : clearTimeout)(l), Pt = 0, c = Et;
954
+ (h ? cancelAnimationFrame : clearTimeout)(l), Ct = 0, c = vt;
955
955
  },
956
956
  lagSmoothing: function(g, _) {
957
957
  e = g || 1 / 0, t = Math.min(_ || 33, e);
@@ -960,8 +960,8 @@ var he = {
960
960
  r = 1e3 / (g || 240), s = u.time * 1e3 + r;
961
961
  },
962
962
  add: function(g, _, y) {
963
- var x = _ ? function(b, v, P, w) {
964
- g(b, v, P, w), u.remove(x);
963
+ var x = _ ? function(E, b, C, v) {
964
+ g(E, b, C, v), u.remove(x);
965
965
  } : g;
966
966
  return u.remove(g), o[y ? "unshift" : "push"](x), ht(), x;
967
967
  },
@@ -971,27 +971,27 @@ var he = {
971
971
  _listeners: o
972
972
  }, u;
973
973
  })(), ht = function() {
974
- return !Pt && oe.wake();
975
- }, A = {}, Es = /^[\d.\-M][\d.\-,\s]/, ws = /["']/g, Ps = function(e) {
974
+ return !Ct && oe.wake();
975
+ }, D = {}, Cs = /^[\d.\-M][\d.\-,\s]/, Ps = /["']/g, As = function(e) {
976
976
  for (var t = {}, i = e.substr(1, e.length - 3).split(":"), n = i[0], r = 1, s = i.length, o, l, c; r < s; r++)
977
- l = i[r], o = r !== s - 1 ? l.lastIndexOf(",") : l.length, c = l.substr(0, o), t[n] = isNaN(c) ? c.replace(ws, "").trim() : +c, n = l.substr(o + 1).trim();
977
+ l = i[r], o = r !== s - 1 ? l.lastIndexOf(",") : l.length, c = l.substr(0, o), t[n] = isNaN(c) ? c.replace(Ps, "").trim() : +c, n = l.substr(o + 1).trim();
978
978
  return t;
979
- }, Cs = function(e) {
979
+ }, Ts = function(e) {
980
980
  var t = e.indexOf("(") + 1, i = e.indexOf(")"), n = e.indexOf("(", t);
981
981
  return e.substring(t, ~n && n < i ? e.indexOf(")", i + 1) : i);
982
- }, Ts = function(e) {
983
- var t = (e + "").split("("), i = A[t[0]];
984
- return i && t.length > 1 && i.config ? i.config.apply(null, ~e.indexOf("{") ? [Ps(t[1])] : Cs(e).split(",").map(Nn)) : A._CE && Es.test(e) ? A._CE("", e) : i;
985
- }, nr = function(e) {
982
+ }, Ss = function(e) {
983
+ var t = (e + "").split("("), i = D[t[0]];
984
+ return i && t.length > 1 && i.config ? i.config.apply(null, ~e.indexOf("{") ? [As(t[1])] : Ts(e).split(",").map($n)) : D._CE && Cs.test(e) ? D._CE("", e) : i;
985
+ }, rr = function(e) {
986
986
  return function(t) {
987
987
  return 1 - e(1 - t);
988
988
  };
989
- }, rr = function a(e, t) {
989
+ }, sr = function a(e, t) {
990
990
  for (var i = e._first, n; i; )
991
991
  i instanceof q ? a(i, t) : i.vars.yoyoEase && (!i._yoyo || !i._repeat) && i._yoyo !== t && (i.timeline ? a(i.timeline, t) : (n = i._ease, i._ease = i._yEase, i._yEase = n, i._yoyo = t)), i = i._next;
992
992
  }, Ye = function(e, t) {
993
- return e && (V(e) ? e : A[e] || Ts(e)) || t;
994
- }, We = function(e, t, i, n) {
993
+ return e && (G(e) ? e : D[e] || Ss(e)) || t;
994
+ }, Xe = function(e, t, i, n) {
995
995
  i === void 0 && (i = function(l) {
996
996
  return 1 - t(1 - l);
997
997
  }), n === void 0 && (n = function(l) {
@@ -1003,20 +1003,20 @@ var he = {
1003
1003
  easeInOut: n
1004
1004
  }, s;
1005
1005
  return te(e, function(o) {
1006
- A[o] = ce[o] = r, A[s = o.toLowerCase()] = i;
1006
+ D[o] = ce[o] = r, D[s = o.toLowerCase()] = i;
1007
1007
  for (var l in r)
1008
- A[s + (l === "easeIn" ? ".in" : l === "easeOut" ? ".out" : ".inOut")] = A[o + "." + l] = r[l];
1008
+ D[s + (l === "easeIn" ? ".in" : l === "easeOut" ? ".out" : ".inOut")] = D[o + "." + l] = r[l];
1009
1009
  }), r;
1010
- }, sr = function(e) {
1010
+ }, ar = function(e) {
1011
1011
  return function(t) {
1012
1012
  return t < 0.5 ? (1 - e(1 - t * 2)) / 2 : 0.5 + e((t - 0.5) * 2) / 2;
1013
1013
  };
1014
1014
  }, Jt = function a(e, t, i) {
1015
1015
  var n = t >= 1 ? t : 1, r = (i || (e ? 0.3 : 0.45)) / (t < 1 ? t : 1), s = r / oi * (Math.asin(1 / n) || 0), o = function(h) {
1016
- return h === 1 ? 1 : n * Math.pow(2, -10 * h) * es((h - s) * r) + 1;
1016
+ return h === 1 ? 1 : n * Math.pow(2, -10 * h) * is((h - s) * r) + 1;
1017
1017
  }, l = e === "out" ? o : e === "in" ? function(c) {
1018
1018
  return 1 - o(1 - c);
1019
- } : sr(o);
1019
+ } : ar(o);
1020
1020
  return r = oi / r, l.config = function(c, h) {
1021
1021
  return a(e, c, h);
1022
1022
  }, l;
@@ -1026,14 +1026,14 @@ var he = {
1026
1026
  return s ? --s * s * ((t + 1) * s + t) + 1 : 0;
1027
1027
  }, n = e === "out" ? i : e === "in" ? function(r) {
1028
1028
  return 1 - i(1 - r);
1029
- } : sr(i);
1029
+ } : ar(i);
1030
1030
  return n.config = function(r) {
1031
1031
  return a(e, r);
1032
1032
  }, n;
1033
1033
  };
1034
1034
  te("Linear,Quad,Cubic,Quart,Quint,Strong", function(a, e) {
1035
1035
  var t = e < 5 ? e + 1 : e;
1036
- We(a + ",Power" + (t - 1), e ? function(i) {
1036
+ Xe(a + ",Power" + (t - 1), e ? function(i) {
1037
1037
  return Math.pow(i, t);
1038
1038
  } : function(i) {
1039
1039
  return i;
@@ -1043,44 +1043,44 @@ te("Linear,Quad,Cubic,Quart,Quint,Strong", function(a, e) {
1043
1043
  return i < 0.5 ? Math.pow(i * 2, t) / 2 : 1 - Math.pow((1 - i) * 2, t) / 2;
1044
1044
  });
1045
1045
  });
1046
- A.Linear.easeNone = A.none = A.Linear.easeIn;
1047
- We("Elastic", Jt("in"), Jt("out"), Jt());
1046
+ D.Linear.easeNone = D.none = D.Linear.easeIn;
1047
+ Xe("Elastic", Jt("in"), Jt("out"), Jt());
1048
1048
  (function(a, e) {
1049
1049
  var t = 1 / e, i = 2 * t, n = 2.5 * t, r = function(o) {
1050
1050
  return o < t ? a * o * o : o < i ? a * Math.pow(o - 1.5 / e, 2) + 0.75 : o < n ? a * (o -= 2.25 / e) * o + 0.9375 : a * Math.pow(o - 2.625 / e, 2) + 0.984375;
1051
1051
  };
1052
- We("Bounce", function(s) {
1052
+ Xe("Bounce", function(s) {
1053
1053
  return 1 - r(1 - s);
1054
1054
  }, r);
1055
1055
  })(7.5625, 2.75);
1056
- We("Expo", function(a) {
1056
+ Xe("Expo", function(a) {
1057
1057
  return Math.pow(2, 10 * (a - 1)) * a + a * a * a * a * a * a * (1 - a);
1058
1058
  });
1059
- We("Circ", function(a) {
1060
- return -(An(1 - a * a) - 1);
1059
+ Xe("Circ", function(a) {
1060
+ return -(Dn(1 - a * a) - 1);
1061
1061
  });
1062
- We("Sine", function(a) {
1063
- return a === 1 ? 1 : -Jr(a * qr) + 1;
1062
+ Xe("Sine", function(a) {
1063
+ return a === 1 ? 1 : -ts(a * Jr) + 1;
1064
1064
  });
1065
- We("Back", ei("in"), ei("out"), ei());
1066
- A.SteppedEase = A.steps = ce.SteppedEase = {
1065
+ Xe("Back", ei("in"), ei("out"), ei());
1066
+ D.SteppedEase = D.steps = ce.SteppedEase = {
1067
1067
  config: function(e, t) {
1068
1068
  e === void 0 && (e = 1);
1069
- var i = 1 / e, n = e + (t ? 0 : 1), r = t ? 1 : 0, s = 1 - I;
1069
+ var i = 1 / e, n = e + (t ? 0 : 1), r = t ? 1 : 0, s = 1 - k;
1070
1070
  return function(o) {
1071
1071
  return ((n * Dt(0, s, o) | 0) + r) * i;
1072
1072
  };
1073
1073
  }
1074
1074
  };
1075
- st.ease = A["quad.out"];
1075
+ st.ease = D["quad.out"];
1076
1076
  te("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt", function(a) {
1077
1077
  return Ri += a + "," + a + "Params,";
1078
1078
  });
1079
- var ar = function(e, t) {
1080
- this.id = Qr++, e._gsap = this, this.target = e, this.harness = t, this.get = t ? t.get : Fn, this.set = t ? t.getSetter : Fi;
1081
- }, Ct = /* @__PURE__ */ (function() {
1079
+ var or = function(e, t) {
1080
+ this.id = es++, e._gsap = this, this.target = e, this.harness = t, this.get = t ? t.get : Nn, this.set = t ? t.getSetter : Fi;
1081
+ }, Pt = /* @__PURE__ */ (function() {
1082
1082
  function a(t) {
1083
- this.vars = t, this._delay = +t.delay || 0, (this._repeat = t.repeat === 1 / 0 ? -2 : t.repeat || 0) && (this._rDelay = t.repeatDelay || 0, this._yoyo = !!t.yoyo || !!t.yoyoEase), this._ts = 1, lt(this, +t.duration, 1, 1), this.data = t.data, z && (this._ctx = z, z.data.push(this)), Pt || oe.wake();
1083
+ this.vars = t, this._delay = +t.delay || 0, (this._repeat = t.repeat === 1 / 0 ? -2 : t.repeat || 0) && (this._rDelay = t.repeatDelay || 0, this._yoyo = !!t.yoyo || !!t.yoyoEase), this._ts = 1, lt(this, +t.duration, 1, 1), this.data = t.data, N && (this._ctx = N, N.data.push(this)), Ct || oe.wake();
1084
1084
  }
1085
1085
  var e = a.prototype;
1086
1086
  return e.delay = function(i) {
@@ -1094,11 +1094,11 @@ var ar = function(e, t) {
1094
1094
  return this._tTime;
1095
1095
  var r = this._dp;
1096
1096
  if (r && r.smoothChildTiming && this._ts) {
1097
- for (Xt(this, i), !r._dp || r.parent || Vn(r, this); r && r.parent; )
1097
+ for (Kt(this, i), !r._dp || r.parent || Vn(r, this); r && r.parent; )
1098
1098
  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;
1099
1099
  !this.parent && this._dp.autoRemoveChildren && (this._ts > 0 && i < this._tDur || this._ts < 0 && i > 0 || !this._tDur && !i) && ye(this._dp, this, this._start - this._delay);
1100
1100
  }
1101
- return (this._tTime !== i || !this._dur && !n || this._initted && Math.abs(this._zTime) === I || !i && !this._initted && (this.add || this._ptLookup)) && (this._ts || (this._pTime = i), zn(this, i, n)), this;
1101
+ 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), zn(this, i, n)), this;
1102
1102
  }, e.time = function(i, n) {
1103
1103
  return arguments.length ? this.totalTime(Math.min(this.totalDuration(), i + Qi(this)) % (this._dur + this._rDelay) || (i ? this._dur : 0), n) : this._time;
1104
1104
  }, e.totalProgress = function(i, n) {
@@ -1110,13 +1110,13 @@ var ar = function(e, t) {
1110
1110
  return arguments.length ? this.totalTime(this._time + (i - 1) * r, n) : this._repeat ? ot(this._tTime, r) + 1 : 1;
1111
1111
  }, e.timeScale = function(i, n) {
1112
1112
  if (!arguments.length)
1113
- return this._rts === -I ? 0 : this._rts;
1113
+ return this._rts === -k ? 0 : this._rts;
1114
1114
  if (this._rts === i)
1115
1115
  return this;
1116
- var r = this.parent && this._ts ? Vt(this.parent._time, this) : this._tTime;
1117
- return this._rts = +i || 0, this._ts = this._ps || i === -I ? 0 : this._rts, this.totalTime(Dt(-Math.abs(this._delay), this.totalDuration(), r), n !== !1), Zt(this), os(this);
1116
+ var r = this.parent && this._ts ? Gt(this.parent._time, this) : this._tTime;
1117
+ return this._rts = +i || 0, this._ts = this._ps || i === -k ? 0 : this._rts, this.totalTime(Dt(-Math.abs(this._delay), this.totalDuration(), r), n !== !1), Zt(this), hs(this);
1118
1118
  }, e.paused = function(i) {
1119
- return arguments.length ? (this._ps !== i && (this._ps = i, i ? (this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()), this._ts = this._act = 0) : (ht(), this._ts = this._rts, this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && Math.abs(this._zTime) !== I && (this._tTime -= I)))), this) : this._ps;
1119
+ return arguments.length ? (this._ps !== i && (this._ps = i, i ? (this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()), this._ts = this._act = 0) : (ht(), this._ts = this._rts, this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && Math.abs(this._zTime) !== k && (this._tTime -= k)))), this) : this._ps;
1120
1120
  }, e.startTime = function(i) {
1121
1121
  if (arguments.length) {
1122
1122
  this._start = i;
@@ -1128,11 +1128,11 @@ var ar = function(e, t) {
1128
1128
  return this._start + (ee(i) ? this.totalDuration() : this.duration()) / Math.abs(this._ts || 1);
1129
1129
  }, e.rawTime = function(i) {
1130
1130
  var n = this.parent || this._dp;
1131
- return n ? i && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ? Vt(n.rawTime(i), this) : this._tTime : this._tTime;
1131
+ return n ? i && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ? Gt(n.rawTime(i), this) : this._tTime : this._tTime;
1132
1132
  }, e.revert = function(i) {
1133
- i === void 0 && (i = ns);
1134
- var n = X;
1135
- return X = i, ki(this) && (this.timeline && this.timeline.revert(i), this.totalTime(-0.01, i.suppressEvents)), this.data !== "nested" && i.kill !== !1 && this.kill(), X = n, this;
1133
+ i === void 0 && (i = ss);
1134
+ var n = K;
1135
+ return K = i, Ii(this) && (this.timeline && this.timeline.revert(i), this.totalTime(-0.01, i.suppressEvents)), this.data !== "nested" && i.kill !== !1 && this.kill(), K = n, this;
1136
1136
  }, e.globalTime = function(i) {
1137
1137
  for (var n = this, r = arguments.length ? i : n.rawTime(); n; )
1138
1138
  r = n._start + r / (Math.abs(n._ts) || 1), n = n._dp;
@@ -1150,7 +1150,7 @@ var ar = function(e, t) {
1150
1150
  }, e.seek = function(i, n) {
1151
1151
  return this.totalTime(pe(this, i), ee(n));
1152
1152
  }, e.restart = function(i, n) {
1153
- return this.play().totalTime(i ? -this._delay : 0, ee(n)), this._dur || (this._zTime = -I), this;
1153
+ return this.play().totalTime(i ? -this._delay : 0, ee(n)), this._dur || (this._zTime = -k), this;
1154
1154
  }, e.play = function(i, n) {
1155
1155
  return i != null && this.seek(i, n), this.reversed(!1).paused(!1);
1156
1156
  }, e.reverse = function(i, n) {
@@ -1160,21 +1160,21 @@ var ar = function(e, t) {
1160
1160
  }, e.resume = function() {
1161
1161
  return this.paused(!1);
1162
1162
  }, e.reversed = function(i) {
1163
- return arguments.length ? (!!i !== this.reversed() && this.timeScale(-this._rts || (i ? -I : 0)), this) : this._rts < 0;
1163
+ return arguments.length ? (!!i !== this.reversed() && this.timeScale(-this._rts || (i ? -k : 0)), this) : this._rts < 0;
1164
1164
  }, e.invalidate = function() {
1165
- return this._initted = this._act = 0, this._zTime = -I, this;
1165
+ return this._initted = this._act = 0, this._zTime = -k, this;
1166
1166
  }, e.isActive = function() {
1167
1167
  var i = this.parent || this._dp, n = this._start, r;
1168
- return !!(!i || this._ts && this._initted && i.isActive() && (r = i.rawTime(!0)) >= n && r < this.endTime(!0) - I);
1168
+ return !!(!i || this._ts && this._initted && i.isActive() && (r = i.rawTime(!0)) >= n && r < this.endTime(!0) - k);
1169
1169
  }, e.eventCallback = function(i, n, r) {
1170
1170
  var s = this.vars;
1171
1171
  return arguments.length > 1 ? (n ? (s[i] = n, r && (s[i + "Params"] = r), i === "onUpdate" && (this._onUpdate = n)) : delete s[i], this) : s[i];
1172
1172
  }, e.then = function(i) {
1173
1173
  var n = this;
1174
1174
  return new Promise(function(r) {
1175
- var s = V(i) ? i : $n, o = function() {
1175
+ var s = G(i) ? i : Bn, o = function() {
1176
1176
  var c = n.then;
1177
- n.then = null, V(s) && (s = s(n)) && (s.then || s === n) && (n.then = c), r(s), n.then = c;
1177
+ n.then = null, G(s) && (s = s(n)) && (s.then || s === n) && (n.then = c), r(s), n.then = c;
1178
1178
  };
1179
1179
  n._initted && n.totalProgress() === 1 && n._ts >= 0 || !n._tTime && n._ts < 0 ? o() : n._prom = o;
1180
1180
  });
@@ -1182,7 +1182,7 @@ var ar = function(e, t) {
1182
1182
  mt(this);
1183
1183
  }, a;
1184
1184
  })();
1185
- ue(Ct.prototype, {
1185
+ ue(Pt.prototype, {
1186
1186
  _time: 0,
1187
1187
  _start: 0,
1188
1188
  _end: 0,
@@ -1197,7 +1197,7 @@ ue(Ct.prototype, {
1197
1197
  _ts: 1,
1198
1198
  _dp: 0,
1199
1199
  ratio: 0,
1200
- _zTime: -I,
1200
+ _zTime: -k,
1201
1201
  _prom: 0,
1202
1202
  _ps: !1,
1203
1203
  _rts: 1
@@ -1206,7 +1206,7 @@ var q = /* @__PURE__ */ (function(a) {
1206
1206
  Sn(e, a);
1207
1207
  function e(i, n) {
1208
1208
  var r;
1209
- return i === void 0 && (i = {}), r = a.call(this, i) || this, r.labels = {}, r.smoothChildTiming = !!i.smoothChildTiming, r.autoRemoveChildren = !!i.autoRemoveChildren, r._sort = ee(i.sortChildren), N && ye(i.parent || N, we(r), n), i.reversed && r.reverse(), i.paused && r.paused(!0), i.scrollTrigger && Gn(we(r), i.scrollTrigger), r;
1209
+ return i === void 0 && (i = {}), r = a.call(this, i) || this, r.labels = {}, r.smoothChildTiming = !!i.smoothChildTiming, r.autoRemoveChildren = !!i.autoRemoveChildren, r._sort = ee(i.sortChildren), z && ye(i.parent || z, we(r), n), i.reversed && r.reverse(), i.paused && r.paused(!0), i.scrollTrigger && Hn(we(r), i.scrollTrigger), r;
1210
1210
  }
1211
1211
  var t = e.prototype;
1212
1212
  return t.to = function(n, r, s) {
@@ -1216,31 +1216,31 @@ var q = /* @__PURE__ */ (function(a) {
1216
1216
  }, t.fromTo = function(n, r, s, o) {
1217
1217
  return xt(2, arguments, this), this;
1218
1218
  }, t.set = function(n, r, s) {
1219
- return r.duration = 0, r.parent = this, yt(r).repeatDelay || (r.repeat = 0), r.immediateRender = !!r.immediateRender, new j(n, r, pe(this, s), 1), this;
1219
+ return r.duration = 0, r.parent = this, yt(r).repeatDelay || (r.repeat = 0), r.immediateRender = !!r.immediateRender, new H(n, r, pe(this, s), 1), this;
1220
1220
  }, t.call = function(n, r, s) {
1221
- return ye(this, j.delayedCall(0, n, r), s);
1221
+ return ye(this, H.delayedCall(0, n, r), s);
1222
1222
  }, t.staggerTo = function(n, r, s, o, l, c, h) {
1223
- return s.duration = r, s.stagger = s.stagger || o, s.onComplete = c, s.onCompleteParams = h, s.parent = this, new j(n, s, pe(this, l)), this;
1223
+ return s.duration = r, s.stagger = s.stagger || o, s.onComplete = c, s.onCompleteParams = h, s.parent = this, new H(n, s, pe(this, l)), this;
1224
1224
  }, t.staggerFrom = function(n, r, s, o, l, c, h) {
1225
1225
  return s.runBackwards = 1, yt(s).immediateRender = ee(s.immediateRender), this.staggerTo(n, r, s, o, l, c, h);
1226
1226
  }, t.staggerFromTo = function(n, r, s, o, l, c, h, u) {
1227
1227
  return o.startAt = s, yt(o).immediateRender = ee(o.immediateRender), this.staggerTo(n, r, o, l, c, h, u);
1228
1228
  }, t.render = function(n, r, s) {
1229
- var o = this._time, l = this._dirty ? this.totalDuration() : this._tDur, c = this._dur, h = n <= 0 ? 0 : H(n), u = this._zTime < 0 != n < 0 && (this._initted || !c), p, m, f, d, g, _, y, x, b, v, P, w;
1230
- if (this !== N && h > l && n >= 0 && (h = l), h !== this._tTime || s || u) {
1231
- if (o !== this._time && c && (h += this._time - o, n += this._time - o), p = h, b = this._start, x = this._ts, _ = !x, u && (c || (o = this._zTime), (n || !r) && (this._zTime = n)), this._repeat) {
1232
- if (P = this._yoyo, g = c + this._rDelay, this._repeat < -1 && n < 0)
1229
+ var o = this._time, l = this._dirty ? this.totalDuration() : this._tDur, c = this._dur, h = n <= 0 ? 0 : j(n), u = this._zTime < 0 != n < 0 && (this._initted || !c), p, m, f, d, g, _, y, x, E, b, C, v;
1230
+ if (this !== z && h > l && n >= 0 && (h = l), h !== this._tTime || s || u) {
1231
+ if (o !== this._time && c && (h += this._time - o, n += this._time - o), p = h, E = this._start, x = this._ts, _ = !x, u && (c || (o = this._zTime), (n || !r) && (this._zTime = n)), this._repeat) {
1232
+ if (C = this._yoyo, g = c + this._rDelay, this._repeat < -1 && n < 0)
1233
1233
  return this.totalTime(g * 100 + n, r, s);
1234
- if (p = H(h % g), h === l ? (d = this._repeat, p = c) : (v = H(h / g), d = ~~v, d && d === v && (p = c, d--), p > c && (p = c)), v = ot(this._tTime, g), !o && this._tTime && v !== d && this._tTime - v * g - this._dur <= 0 && (v = d), P && d & 1 && (p = c - p, w = 1), d !== v && !this._lock) {
1235
- var C = P && v & 1, E = C === (P && d & 1);
1236
- if (d < v && (C = !C), o = C ? 0 : h % c ? c : h, this._lock = 1, this.render(o || (w ? 0 : H(d * g)), r, !c)._lock = 0, this._tTime = h, !r && this.parent && le(this, "onRepeat"), this.vars.repeatRefresh && !w && (this.invalidate()._lock = 1), o && o !== this._time || _ !== !this._ts || this.vars.onRepeat && !this.parent && !this._act)
1234
+ if (p = j(h % g), h === l ? (d = this._repeat, p = c) : (b = j(h / g), d = ~~b, d && d === b && (p = c, d--), p > c && (p = c)), b = ot(this._tTime, g), !o && this._tTime && b !== d && this._tTime - b * g - this._dur <= 0 && (b = d), C && d & 1 && (p = c - p, v = 1), d !== b && !this._lock) {
1235
+ var P = C && b & 1, w = P === (C && d & 1);
1236
+ if (d < b && (P = !P), o = P ? 0 : h % c ? c : h, this._lock = 1, this.render(o || (v ? 0 : j(d * g)), r, !c)._lock = 0, this._tTime = h, !r && this.parent && le(this, "onRepeat"), this.vars.repeatRefresh && !v && (this.invalidate()._lock = 1), o && o !== this._time || _ !== !this._ts || this.vars.onRepeat && !this.parent && !this._act)
1237
1237
  return this;
1238
- if (c = this._dur, l = this._tDur, E && (this._lock = 2, o = C ? c : -1e-4, this.render(o, !0), this.vars.repeatRefresh && !w && this.invalidate()), this._lock = 0, !this._ts && !_)
1238
+ if (c = this._dur, l = this._tDur, w && (this._lock = 2, o = P ? c : -1e-4, this.render(o, !0), this.vars.repeatRefresh && !v && this.invalidate()), this._lock = 0, !this._ts && !_)
1239
1239
  return this;
1240
- rr(this, w);
1240
+ sr(this, v);
1241
1241
  }
1242
1242
  }
1243
- if (this._hasPause && !this._forcing && this._lock < 2 && (y = us(this, H(o), H(p)), y && (h -= p - (p = y._start))), this._tTime = h, this._time = p, this._act = !x, this._initted || (this._onUpdate = this.vars.onUpdate, this._initted = 1, this._zTime = n, o = 0), !o && h && !r && !v && (le(this, "onStart"), this._tTime !== h))
1243
+ if (this._hasPause && !this._forcing && this._lock < 2 && (y = ps(this, j(o), j(p)), y && (h -= p - (p = y._start))), this._tTime = h, this._time = p, this._act = !x, this._initted || (this._onUpdate = this.vars.onUpdate, this._initted = 1, this._zTime = n, o = 0), !o && h && !r && !b && (le(this, "onStart"), this._tTime !== h))
1244
1244
  return this;
1245
1245
  if (p >= o && n >= 0)
1246
1246
  for (m = this._first; m; ) {
@@ -1248,7 +1248,7 @@ var q = /* @__PURE__ */ (function(a) {
1248
1248
  if (m.parent !== this)
1249
1249
  return this.render(n, r, s);
1250
1250
  if (m.render(m._ts > 0 ? (p - m._start) * m._ts : (m._dirty ? m.totalDuration() : m._tDur) + (p - m._start) * m._ts, r, s), p !== this._time || !this._ts && !_) {
1251
- y = 0, f && (h += this._zTime = -I);
1251
+ y = 0, f && (h += this._zTime = -k);
1252
1252
  break;
1253
1253
  }
1254
1254
  }
@@ -1256,34 +1256,34 @@ var q = /* @__PURE__ */ (function(a) {
1256
1256
  }
1257
1257
  else {
1258
1258
  m = this._last;
1259
- for (var S = n < 0 ? n : p; m; ) {
1260
- if (f = m._prev, (m._act || S <= m._end) && m._ts && y !== m) {
1259
+ for (var T = n < 0 ? n : p; m; ) {
1260
+ if (f = m._prev, (m._act || T <= m._end) && m._ts && y !== m) {
1261
1261
  if (m.parent !== this)
1262
1262
  return this.render(n, r, s);
1263
- if (m.render(m._ts > 0 ? (S - m._start) * m._ts : (m._dirty ? m.totalDuration() : m._tDur) + (S - m._start) * m._ts, r, s || X && ki(m)), p !== this._time || !this._ts && !_) {
1264
- y = 0, f && (h += this._zTime = S ? -I : I);
1263
+ if (m.render(m._ts > 0 ? (T - m._start) * m._ts : (m._dirty ? m.totalDuration() : m._tDur) + (T - m._start) * m._ts, r, s || K && Ii(m)), p !== this._time || !this._ts && !_) {
1264
+ y = 0, f && (h += this._zTime = T ? -k : k);
1265
1265
  break;
1266
1266
  }
1267
1267
  }
1268
1268
  m = f;
1269
1269
  }
1270
1270
  }
1271
- if (y && !r && (this.pause(), y.render(p >= o ? 0 : -I)._zTime = p >= o ? 1 : -1, this._ts))
1272
- return this._start = b, Zt(this), this.render(n, r, s);
1273
- this._onUpdate && !r && le(this, "onUpdate", !0), (h === l && this._tTime >= this.totalDuration() || !h && o) && (b === this._start || Math.abs(x) !== Math.abs(this._ts)) && (this._lock || ((n || !c) && (h === l && this._ts > 0 || !h && this._ts < 0) && ke(this, 1), !r && !(n < 0 && !o) && (h || o || !l) && (le(this, h === l && n >= 0 ? "onComplete" : "onReverseComplete", !0), this._prom && !(h < l && this.timeScale() > 0) && this._prom())));
1271
+ if (y && !r && (this.pause(), y.render(p >= o ? 0 : -k)._zTime = p >= o ? 1 : -1, this._ts))
1272
+ return this._start = E, Zt(this), this.render(n, r, s);
1273
+ this._onUpdate && !r && le(this, "onUpdate", !0), (h === l && this._tTime >= this.totalDuration() || !h && o) && (E === this._start || Math.abs(x) !== Math.abs(this._ts)) && (this._lock || ((n || !c) && (h === l && this._ts > 0 || !h && this._ts < 0) && Ie(this, 1), !r && !(n < 0 && !o) && (h || o || !l) && (le(this, h === l && n >= 0 ? "onComplete" : "onReverseComplete", !0), this._prom && !(h < l && this.timeScale() > 0) && this._prom())));
1274
1274
  }
1275
1275
  return this;
1276
1276
  }, t.add = function(n, r) {
1277
1277
  var s = this;
1278
- if (Ce(r) || (r = pe(this, r, n)), !(n instanceof Ct)) {
1279
- if (K(n))
1278
+ if (Pe(r) || (r = pe(this, r, n)), !(n instanceof Pt)) {
1279
+ if (W(n))
1280
1280
  return n.forEach(function(o) {
1281
1281
  return s.add(o, r);
1282
1282
  }), this;
1283
1283
  if (Z(n))
1284
1284
  return this.addLabel(n, r);
1285
- if (V(n))
1286
- n = j.delayedCall(0, n);
1285
+ if (G(n))
1286
+ n = H.delayedCall(0, n);
1287
1287
  else
1288
1288
  return this;
1289
1289
  }
@@ -1291,44 +1291,44 @@ var q = /* @__PURE__ */ (function(a) {
1291
1291
  }, t.getChildren = function(n, r, s, o) {
1292
1292
  n === void 0 && (n = !0), r === void 0 && (r = !0), s === void 0 && (s = !0), o === void 0 && (o = -fe);
1293
1293
  for (var l = [], c = this._first; c; )
1294
- c._start >= o && (c instanceof j ? r && l.push(c) : (s && l.push(c), n && l.push.apply(l, c.getChildren(!0, r, s)))), c = c._next;
1294
+ c._start >= o && (c instanceof H ? r && l.push(c) : (s && l.push(c), n && l.push.apply(l, c.getChildren(!0, r, s)))), c = c._next;
1295
1295
  return l;
1296
1296
  }, t.getById = function(n) {
1297
1297
  for (var r = this.getChildren(1, 1, 1), s = r.length; s--; )
1298
1298
  if (r[s].vars.id === n)
1299
1299
  return r[s];
1300
1300
  }, t.remove = function(n) {
1301
- return Z(n) ? this.removeLabel(n) : V(n) ? this.killTweensOf(n) : (n.parent === this && Yt(this, n), n === this._recent && (this._recent = this._last), He(this));
1301
+ return Z(n) ? this.removeLabel(n) : G(n) ? this.killTweensOf(n) : (n.parent === this && Yt(this, n), n === this._recent && (this._recent = this._last), je(this));
1302
1302
  }, t.totalTime = function(n, r) {
1303
- return arguments.length ? (this._forcing = 1, !this._dp && this._ts && (this._start = H(oe.time - (this._ts > 0 ? n / this._ts : (this.totalDuration() - n) / -this._ts))), a.prototype.totalTime.call(this, n, r), this._forcing = 0, this) : this._tTime;
1303
+ return arguments.length ? (this._forcing = 1, !this._dp && this._ts && (this._start = j(oe.time - (this._ts > 0 ? n / this._ts : (this.totalDuration() - n) / -this._ts))), a.prototype.totalTime.call(this, n, r), this._forcing = 0, this) : this._tTime;
1304
1304
  }, t.addLabel = function(n, r) {
1305
1305
  return this.labels[n] = pe(this, r), this;
1306
1306
  }, t.removeLabel = function(n) {
1307
1307
  return delete this.labels[n], this;
1308
1308
  }, t.addPause = function(n, r, s) {
1309
- var o = j.delayedCall(0, r || Et, s);
1309
+ var o = H.delayedCall(0, r || vt, s);
1310
1310
  return o.data = "isPause", this._hasPause = 1, ye(this, o, pe(this, n));
1311
1311
  }, t.removePause = function(n) {
1312
1312
  var r = this._first;
1313
1313
  for (n = pe(this, n); r; )
1314
- r._start === n && r.data === "isPause" && ke(r), r = r._next;
1314
+ r._start === n && r.data === "isPause" && Ie(r), r = r._next;
1315
1315
  }, t.killTweensOf = function(n, r, s) {
1316
1316
  for (var o = this.getTweensOf(n, s), l = o.length; l--; )
1317
- Se !== o[l] && o[l].kill(n, r);
1317
+ Te !== o[l] && o[l].kill(n, r);
1318
1318
  return this;
1319
1319
  }, t.getTweensOf = function(n, r) {
1320
- for (var s = [], o = me(n), l = this._first, c = Ce(r), h; l; )
1321
- l instanceof j ? rs(l._targets, o) && (c ? (!Se || l._initted && l._ts) && l.globalTime(0) <= r && l.globalTime(l.totalDuration()) > r : !r || l.isActive()) && s.push(l) : (h = l.getTweensOf(o, r)).length && s.push.apply(s, h), l = l._next;
1320
+ for (var s = [], o = me(n), l = this._first, c = Pe(r), h; l; )
1321
+ l instanceof H ? as(l._targets, o) && (c ? (!Te || l._initted && l._ts) && l.globalTime(0) <= r && l.globalTime(l.totalDuration()) > r : !r || l.isActive()) && s.push(l) : (h = l.getTweensOf(o, r)).length && s.push.apply(s, h), l = l._next;
1322
1322
  return s;
1323
1323
  }, t.tweenTo = function(n, r) {
1324
1324
  r = r || {};
1325
- var s = this, o = pe(s, n), l = r, c = l.startAt, h = l.onStart, u = l.onStartParams, p = l.immediateRender, m, f = j.to(s, ue({
1325
+ var s = this, o = pe(s, n), l = r, c = l.startAt, h = l.onStart, u = l.onStartParams, p = l.immediateRender, m, f = H.to(s, ue({
1326
1326
  ease: r.ease || "none",
1327
1327
  lazy: !1,
1328
1328
  immediateRender: !1,
1329
1329
  time: o,
1330
1330
  overwrite: "auto",
1331
- duration: r.duration || Math.abs((o - (c && "time" in c ? c.time : s._time)) / s.timeScale()) || I,
1331
+ duration: r.duration || Math.abs((o - (c && "time" in c ? c.time : s._time)) / s.timeScale()) || k,
1332
1332
  onStart: function() {
1333
1333
  if (s.pause(), !m) {
1334
1334
  var g = r.duration || Math.abs((o - (c && "time" in c ? c.time : s._time)) / s.timeScale());
@@ -1351,7 +1351,7 @@ var q = /* @__PURE__ */ (function(a) {
1351
1351
  }, t.previousLabel = function(n) {
1352
1352
  return n === void 0 && (n = this._time), en(this, pe(this, n), 1);
1353
1353
  }, t.currentLabel = function(n) {
1354
- return arguments.length ? this.seek(n, !0) : this.previousLabel(this._time + I);
1354
+ return arguments.length ? this.seek(n, !0) : this.previousLabel(this._time + k);
1355
1355
  }, t.shiftChildren = function(n, r, s) {
1356
1356
  s === void 0 && (s = 0);
1357
1357
  for (var o = this._first, l = this.labels, c; o; )
@@ -1359,7 +1359,7 @@ var q = /* @__PURE__ */ (function(a) {
1359
1359
  if (r)
1360
1360
  for (c in l)
1361
1361
  l[c] >= s && (l[c] += n);
1362
- return He(this);
1362
+ return je(this);
1363
1363
  }, t.invalidate = function(n) {
1364
1364
  var r = this._first;
1365
1365
  for (this._lock = 0; r; )
@@ -1369,7 +1369,7 @@ var q = /* @__PURE__ */ (function(a) {
1369
1369
  n === void 0 && (n = !0);
1370
1370
  for (var r = this._first, s; r; )
1371
1371
  s = r._next, this.remove(r), r = s;
1372
- return this._dp && (this._time = this._tTime = this._pTime = 0), n && (this.labels = {}), He(this);
1372
+ return this._dp && (this._time = this._tTime = this._pTime = 0), n && (this.labels = {}), je(this);
1373
1373
  }, t.totalDuration = function(n) {
1374
1374
  var r = 0, s = this, o = s._last, l = fe, c, h, u;
1375
1375
  if (arguments.length)
@@ -1377,13 +1377,13 @@ var q = /* @__PURE__ */ (function(a) {
1377
1377
  if (s._dirty) {
1378
1378
  for (u = s.parent; o; )
1379
1379
  c = o._prev, o._dirty && o.totalDuration(), h = o._start, h > l && s._sort && o._ts && !s._lock ? (s._lock = 1, ye(s, o, h - o._delay, 1)._lock = 0) : l = h, h < 0 && o._ts && (r -= h, (!u && !s._dp || u && u.smoothChildTiming) && (s._start += h / s._ts, s._time -= h, s._tTime -= h), s.shiftChildren(-h, !1, -1 / 0), l = 0), o._end > r && o._ts && (r = o._end), o = c;
1380
- lt(s, s === N && s._time > r ? s._time : r, 1, 1), s._dirty = 0;
1380
+ lt(s, s === z && s._time > r ? s._time : r, 1, 1), s._dirty = 0;
1381
1381
  }
1382
1382
  return s._tDur;
1383
1383
  }, e.updateRoot = function(n) {
1384
- if (N._ts && (zn(N, Vt(n, N)), Un = oe.frame), oe.frame >= Ki) {
1385
- Ki += he.autoSleep || 120;
1386
- var r = N._first;
1384
+ if (z._ts && (zn(z, Gt(n, z)), Fn = oe.frame), oe.frame >= Wi) {
1385
+ Wi += he.autoSleep || 120;
1386
+ var r = z._first;
1387
1387
  if ((!r || !r._ts) && he.autoSleep && oe._listeners.length < 2) {
1388
1388
  for (; r && !r._ts; )
1389
1389
  r = r._next;
@@ -1391,15 +1391,15 @@ var q = /* @__PURE__ */ (function(a) {
1391
1391
  }
1392
1392
  }
1393
1393
  }, e;
1394
- })(Ct);
1394
+ })(Pt);
1395
1395
  ue(q.prototype, {
1396
1396
  _lock: 0,
1397
1397
  _hasPause: 0,
1398
1398
  _forcing: 0
1399
1399
  });
1400
- var Ss = function(e, t, i, n, r, s, o) {
1401
- var l = new ie(this._pt, e, t, 0, 1, dr, null, r), c = 0, h = 0, u, p, m, f, d, g, _, y;
1402
- for (l.b = i, l.e = n, i += "", n += "", (_ = ~n.indexOf("random(")) && (n = wt(n)), s && (y = [i, n], s(y, e, t), i = y[0], n = y[1]), p = i.match(Kt) || []; u = Kt.exec(n); )
1400
+ var Ds = function(e, t, i, n, r, s, o) {
1401
+ var l = new ie(this._pt, e, t, 0, 1, pr, null, r), c = 0, h = 0, u, p, m, f, d, g, _, y;
1402
+ for (l.b = i, l.e = n, i += "", n += "", (_ = ~n.indexOf("random(")) && (n = wt(n)), s && (y = [i, n], s(y, e, t), i = y[0], n = y[1]), p = i.match(Wt) || []; u = Wt.exec(n); )
1403
1403
  f = u[0], d = n.substring(c, u.index), m ? m = (m + 1) % 5 : d.substr(-5) === "rgba(" && (m = 1), f !== p[h++] && (g = parseFloat(p[h - 1]) || 0, l._pt = {
1404
1404
  _next: l._pt,
1405
1405
  p: d || h === 1 ? d : ",",
@@ -1407,31 +1407,31 @@ var Ss = function(e, t, i, n, r, s, o) {
1407
1407
  s: g,
1408
1408
  c: f.charAt(1) === "=" ? it(g, f) - g : parseFloat(f) - g,
1409
1409
  m: m && m < 4 ? Math.round : 0
1410
- }, c = Kt.lastIndex);
1411
- return l.c = c < n.length ? n.substring(c, n.length) : "", l.fp = o, (Rn.test(n) || _) && (l.e = 0), this._pt = l, l;
1410
+ }, c = Wt.lastIndex);
1411
+ return l.c = c < n.length ? n.substring(c, n.length) : "", l.fp = o, (On.test(n) || _) && (l.e = 0), this._pt = l, l;
1412
1412
  }, Li = function(e, t, i, n, r, s, o, l, c, h) {
1413
- V(n) && (n = n(r || 0, e, s));
1414
- var u = e[t], p = i !== "get" ? i : V(u) ? c ? e[t.indexOf("set") || !V(e["get" + t.substr(3)]) ? t : "get" + t.substr(3)](c) : e[t]() : u, m = V(u) ? c ? Os : cr : Ui, f;
1415
- if (Z(n) && (~n.indexOf("random(") && (n = wt(n)), n.charAt(1) === "=" && (f = it(p, n) + (W(p) || 0), (f || f === 0) && (n = f))), !h || p !== n || gi)
1416
- return !isNaN(p * n) && n !== "" ? (f = new ie(this._pt, e, t, +p || 0, n - (p || 0), typeof u == "boolean" ? Ls : ur, 0, m), c && (f.fp = c), o && f.modifier(o, this, e), this._pt = f) : (!u && !(t in e) && Di(t, n), Ss.call(this, e, t, p, n, m, l || he.stringFilter, c));
1417
- }, As = function(e, t, i, n, r) {
1418
- if (V(e) && (e = bt(e, r, t, i, n)), !ve(e) || e.style && e.nodeType || K(e) || Dn(e))
1413
+ G(n) && (n = n(r || 0, e, s));
1414
+ var u = e[t], p = i !== "get" ? i : G(u) ? c ? e[t.indexOf("set") || !G(e["get" + t.substr(3)]) ? t : "get" + t.substr(3)](c) : e[t]() : u, m = G(u) ? c ? Ls : ur : Ui, f;
1415
+ if (Z(n) && (~n.indexOf("random(") && (n = wt(n)), n.charAt(1) === "=" && (f = it(p, n) + (X(p) || 0), (f || f === 0) && (n = f))), !h || p !== n || gi)
1416
+ return !isNaN(p * n) && n !== "" ? (f = new ie(this._pt, e, t, +p || 0, n - (p || 0), typeof u == "boolean" ? Us : dr, 0, m), c && (f.fp = c), o && f.modifier(o, this, e), this._pt = f) : (!u && !(t in e) && Di(t, n), Ds.call(this, e, t, p, n, m, l || he.stringFilter, c));
1417
+ }, Ms = function(e, t, i, n, r) {
1418
+ if (G(e) && (e = bt(e, r, t, i, n)), !Ee(e) || e.style && e.nodeType || W(e) || Mn(e))
1419
1419
  return Z(e) ? bt(e, r, t, i, n) : e;
1420
1420
  var s = {}, o;
1421
1421
  for (o in e)
1422
1422
  s[o] = bt(e[o], r, t, i, n);
1423
1423
  return s;
1424
- }, or = function(e, t, i, n, r, s) {
1424
+ }, lr = function(e, t, i, n, r, s) {
1425
1425
  var o, l, c, h;
1426
- if (ae[e] && (o = new ae[e]()).init(r, o.rawVars ? t[e] : As(t[e], n, r, s, i), i, n, s) !== !1 && (i._pt = l = new ie(i._pt, r, e, 0, 1, o.render, o, 0, o.priority), i !== et))
1426
+ if (ae[e] && (o = new ae[e]()).init(r, o.rawVars ? t[e] : Ms(t[e], n, r, s, i), i, n, s) !== !1 && (i._pt = l = new ie(i._pt, r, e, 0, 1, o.render, o, 0, o.priority), i !== et))
1427
1427
  for (c = i._ptLookup[i._targets.indexOf(r)], h = o._props.length; h--; )
1428
1428
  c[o._props[h]] = l;
1429
1429
  return o;
1430
- }, Se, gi, Ii = function a(e, t, i) {
1431
- var n = e.vars, r = n.ease, s = n.startAt, o = n.immediateRender, l = n.lazy, c = n.onUpdate, h = n.runBackwards, u = n.yoyoEase, p = n.keyframes, m = n.autoRevert, f = e._dur, d = e._startAt, g = e._targets, _ = e.parent, y = _ && _.data === "nested" ? _.vars.targets : g, x = e._overwrite === "auto" && !Ci, b = e.timeline, v, P, w, C, E, S, D, T, R, O, B, F, U;
1432
- if (b && (!p || !r) && (r = "none"), e._ease = Ye(r, st.ease), e._yEase = u ? nr(Ye(u === !0 ? r : u, st.ease)) : 0, u && e._yoyo && !e._repeat && (u = e._yEase, e._yEase = e._ease, e._ease = u), e._from = !b && !!n.runBackwards, !b || p && !n.stagger) {
1433
- if (T = g[0] ? je(g[0]).harness : 0, F = T && n[T.prop], v = Bt(n, Mi), d && (d._zTime < 0 && d.progress(1), t < 0 && h && o && !m ? d.render(-1, !0) : d.revert(h && f ? It : is), d._lazy = 0), s) {
1434
- if (ke(e._startAt = j.set(g, ue({
1430
+ }, Te, gi, ki = function a(e, t, i) {
1431
+ var n = e.vars, r = n.ease, s = n.startAt, o = n.immediateRender, l = n.lazy, c = n.onUpdate, h = n.runBackwards, u = n.yoyoEase, p = n.keyframes, m = n.autoRevert, f = e._dur, d = e._startAt, g = e._targets, _ = e.parent, y = _ && _.data === "nested" ? _.vars.targets : g, x = e._overwrite === "auto" && !Pi, E = e.timeline, b, C, v, P, w, T, M, A, R, O, B, F, U;
1432
+ if (E && (!p || !r) && (r = "none"), e._ease = Ye(r, st.ease), e._yEase = u ? rr(Ye(u === !0 ? r : u, st.ease)) : 0, u && e._yoyo && !e._repeat && (u = e._yEase, e._yEase = e._ease, e._ease = u), e._from = !E && !!n.runBackwards, !E || p && !n.stagger) {
1433
+ if (A = g[0] ? He(g[0]).harness : 0, F = A && n[A.prop], b = Bt(n, Mi), d && (d._zTime < 0 && d.progress(1), t < 0 && h && o && !m ? d.render(-1, !0) : d.revert(h && f ? kt : rs), d._lazy = 0), s) {
1434
+ if (Ie(e._startAt = H.set(g, ue({
1435
1435
  data: "isStart",
1436
1436
  overwrite: !1,
1437
1437
  parent: _,
@@ -1443,12 +1443,12 @@ var Ss = function(e, t, i, n, r, s, o) {
1443
1443
  return le(e, "onUpdate");
1444
1444
  },
1445
1445
  stagger: 0
1446
- }, s))), e._startAt._dp = 0, e._startAt._sat = e, t < 0 && (X || !o && !m) && e._startAt.revert(It), o && f && t <= 0 && i <= 0) {
1446
+ }, s))), e._startAt._dp = 0, e._startAt._sat = e, t < 0 && (K || !o && !m) && e._startAt.revert(kt), o && f && t <= 0 && i <= 0) {
1447
1447
  t && (e._zTime = t);
1448
1448
  return;
1449
1449
  }
1450
1450
  } else if (h && f && !d) {
1451
- if (t && (o = !1), w = ue({
1451
+ if (t && (o = !1), v = ue({
1452
1452
  overwrite: !1,
1453
1453
  data: "isFromStart",
1454
1454
  //we tag the tween with as "isFromStart" so that if [inside a plugin] we need to only do something at the very END of a tween, we have a way of identifying this tween as merely the one that's setting the beginning values for a "from()" tween. For example, clearProps in CSSPlugin should only get applied at the very END of a tween and without this tag, from(...{height:100, clearProps:"height", delay:1}) would wipe the height at the beginning of the tween and after 1 second, it'd kick back in.
@@ -1458,23 +1458,23 @@ var Ss = function(e, t, i, n, r, s, o) {
1458
1458
  stagger: 0,
1459
1459
  parent: _
1460
1460
  //ensures that nested tweens that had a stagger are handled properly, like gsap.from(".class", {y: gsap.utils.wrap([-100,100]), stagger: 0.5})
1461
- }, v), F && (w[T.prop] = F), ke(e._startAt = j.set(g, w)), e._startAt._dp = 0, e._startAt._sat = e, t < 0 && (X ? e._startAt.revert(It) : e._startAt.render(-1, !0)), e._zTime = t, !o)
1462
- a(e._startAt, I, I);
1461
+ }, b), F && (v[A.prop] = F), Ie(e._startAt = H.set(g, v)), e._startAt._dp = 0, e._startAt._sat = e, t < 0 && (K ? e._startAt.revert(kt) : e._startAt.render(-1, !0)), e._zTime = t, !o)
1462
+ a(e._startAt, k, k);
1463
1463
  else if (!t)
1464
1464
  return;
1465
1465
  }
1466
- for (e._pt = e._ptCache = 0, l = f && ee(l) || l && !f, P = 0; P < g.length; P++) {
1467
- if (E = g[P], D = E._gsap || Oi(g)[P]._gsap, e._ptLookup[P] = O = {}, ci[D.id] && Re.length && $t(), B = y === g ? P : y.indexOf(E), T && (R = new T()).init(E, F || v, e, B, y) !== !1 && (e._pt = C = new ie(e._pt, E, R.name, 0, 1, R.render, R, 0, R.priority), R._props.forEach(function(Q) {
1468
- O[Q] = C;
1469
- }), R.priority && (S = 1)), !T || F)
1470
- for (w in v)
1471
- ae[w] && (R = or(w, v, e, B, E, y)) ? R.priority && (S = 1) : O[w] = C = Li.call(e, E, w, "get", v[w], B, y, 0, n.stringFilter);
1472
- e._op && e._op[P] && e.kill(E, e._op[P]), x && e._pt && (Se = e, N.killTweensOf(E, O, e.globalTime(t)), U = !e.parent, Se = 0), e._pt && l && (ci[D.id] = 1);
1466
+ for (e._pt = e._ptCache = 0, l = f && ee(l) || l && !f, C = 0; C < g.length; C++) {
1467
+ if (w = g[C], M = w._gsap || Oi(g)[C]._gsap, e._ptLookup[C] = O = {}, ci[M.id] && Re.length && $t(), B = y === g ? C : y.indexOf(w), A && (R = new A()).init(w, F || b, e, B, y) !== !1 && (e._pt = P = new ie(e._pt, w, R.name, 0, 1, R.render, R, 0, R.priority), R._props.forEach(function(Q) {
1468
+ O[Q] = P;
1469
+ }), R.priority && (T = 1)), !A || F)
1470
+ for (v in b)
1471
+ ae[v] && (R = lr(v, b, e, B, w, y)) ? R.priority && (T = 1) : O[v] = P = Li.call(e, w, v, "get", b[v], B, y, 0, n.stringFilter);
1472
+ e._op && e._op[C] && e.kill(w, e._op[C]), x && e._pt && (Te = e, z.killTweensOf(w, O, e.globalTime(t)), U = !e.parent, Te = 0), e._pt && l && (ci[M.id] = 1);
1473
1473
  }
1474
- S && pr(e), e._onInit && e._onInit(e);
1474
+ T && fr(e), e._onInit && e._onInit(e);
1475
1475
  }
1476
- e._onUpdate = c, e._initted = (!e._op || e._pt) && !U, p && t <= 0 && b.render(fe, !0, !0);
1477
- }, Ds = function(e, t, i, n, r, s, o, l) {
1476
+ e._onUpdate = c, e._initted = (!e._op || e._pt) && !U, p && t <= 0 && E.render(fe, !0, !0);
1477
+ }, Rs = function(e, t, i, n, r, s, o, l) {
1478
1478
  var c = (e._pt && e._ptCache || (e._ptCache = {}))[t], h, u, p, m;
1479
1479
  if (!c)
1480
1480
  for (c = e._ptCache[t] = [], p = e._ptLookup, m = e._targets.length; m--; ) {
@@ -1482,13 +1482,13 @@ var Ss = function(e, t, i, n, r, s, o) {
1482
1482
  for (h = h.d._pt; h && h.p !== t && h.fp !== t; )
1483
1483
  h = h._next;
1484
1484
  if (!h)
1485
- return gi = 1, e.vars[t] = "+=0", Ii(e, o), gi = 0, l ? vt(t + " not eligible for reset") : 1;
1485
+ return gi = 1, e.vars[t] = "+=0", ki(e, o), gi = 0, l ? Et(t + " not eligible for reset") : 1;
1486
1486
  c.push(h);
1487
1487
  }
1488
1488
  for (m = c.length; m--; )
1489
- u = c[m], h = u._pt || u, h.s = (n || n === 0) && !r ? n : h.s + (n || 0) + s * h.c, h.c = i - h.s, u.e && (u.e = G(i) + W(u.e)), u.b && (u.b = h.s + W(u.b));
1490
- }, Ms = function(e, t) {
1491
- var i = e[0] ? je(e[0]).harness : 0, n = i && i.aliases, r, s, o, l;
1489
+ u = c[m], h = u._pt || u, h.s = (n || n === 0) && !r ? n : h.s + (n || 0) + s * h.c, h.c = i - h.s, u.e && (u.e = V(i) + X(u.e)), u.b && (u.b = h.s + X(u.b));
1490
+ }, Os = function(e, t) {
1491
+ var i = e[0] ? He(e[0]).harness : 0, n = i && i.aliases, r, s, o, l;
1492
1492
  if (!n)
1493
1493
  return t;
1494
1494
  r = at({}, t);
@@ -1497,9 +1497,9 @@ var Ss = function(e, t, i, n, r, s, o) {
1497
1497
  for (l = n[s].split(","), o = l.length; o--; )
1498
1498
  r[l[o]] = r[s];
1499
1499
  return r;
1500
- }, Rs = function(e, t, i, n) {
1500
+ }, Is = function(e, t, i, n) {
1501
1501
  var r = t.ease || n || "power1.inOut", s, o;
1502
- if (K(t))
1502
+ if (W(t))
1503
1503
  o = i[e] || (i[e] = []), t.forEach(function(l, c) {
1504
1504
  return o.push({
1505
1505
  t: c / (t.length - 1) * 100,
@@ -1515,72 +1515,72 @@ var Ss = function(e, t, i, n, r, s, o) {
1515
1515
  e: r
1516
1516
  });
1517
1517
  }, bt = function(e, t, i, n, r) {
1518
- return V(e) ? e.call(t, i, n, r) : Z(e) && ~e.indexOf("random(") ? wt(e) : e;
1519
- }, lr = Ri + "repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert", hr = {};
1520
- te(lr + ",id,stagger,delay,duration,paused,scrollTrigger", function(a) {
1521
- return hr[a] = 1;
1518
+ return G(e) ? e.call(t, i, n, r) : Z(e) && ~e.indexOf("random(") ? wt(e) : e;
1519
+ }, hr = Ri + "repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert", cr = {};
1520
+ te(hr + ",id,stagger,delay,duration,paused,scrollTrigger", function(a) {
1521
+ return cr[a] = 1;
1522
1522
  });
1523
- var j = /* @__PURE__ */ (function(a) {
1523
+ var H = /* @__PURE__ */ (function(a) {
1524
1524
  Sn(e, a);
1525
1525
  function e(i, n, r, s) {
1526
1526
  var o;
1527
1527
  typeof n == "number" && (r.duration = n, n = r, r = null), o = a.call(this, s ? n : yt(n)) || this;
1528
- var l = o.vars, c = l.duration, h = l.delay, u = l.immediateRender, p = l.stagger, m = l.overwrite, f = l.keyframes, d = l.defaults, g = l.scrollTrigger, _ = l.yoyoEase, y = n.parent || N, x = (K(i) || Dn(i) ? Ce(i[0]) : "length" in n) ? [i] : me(i), b, v, P, w, C, E, S, D;
1529
- if (o._targets = x.length ? Oi(x) : vt("GSAP target " + i + " not found. https://gsap.com", !he.nullTargetWarn) || [], o._ptLookup = [], o._overwrite = m, f || p || Rt(c) || Rt(h)) {
1530
- if (n = o.vars, b = o.timeline = new q({
1528
+ var l = o.vars, c = l.duration, h = l.delay, u = l.immediateRender, p = l.stagger, m = l.overwrite, f = l.keyframes, d = l.defaults, g = l.scrollTrigger, _ = l.yoyoEase, y = n.parent || z, x = (W(i) || Mn(i) ? Pe(i[0]) : "length" in n) ? [i] : me(i), E, b, C, v, P, w, T, M;
1529
+ if (o._targets = x.length ? Oi(x) : Et("GSAP target " + i + " not found. https://gsap.com", !he.nullTargetWarn) || [], o._ptLookup = [], o._overwrite = m, f || p || Rt(c) || Rt(h)) {
1530
+ if (n = o.vars, E = o.timeline = new q({
1531
1531
  data: "nested",
1532
1532
  defaults: d || {},
1533
1533
  targets: y && y.data === "nested" ? y.vars.targets : x
1534
- }), b.kill(), b.parent = b._dp = we(o), b._start = 0, p || Rt(c) || Rt(h)) {
1535
- if (w = x.length, S = p && Zn(p), ve(p))
1536
- for (C in p)
1537
- ~lr.indexOf(C) && (D || (D = {}), D[C] = p[C]);
1538
- for (v = 0; v < w; v++)
1539
- P = Bt(n, hr), P.stagger = 0, _ && (P.yoyoEase = _), D && at(P, D), E = x[v], P.duration = +bt(c, we(o), v, E, x), P.delay = (+bt(h, we(o), v, E, x) || 0) - o._delay, !p && w === 1 && P.delay && (o._delay = h = P.delay, o._start += h, P.delay = 0), b.to(E, P, S ? S(v, E, x) : 0), b._ease = A.none;
1540
- b.duration() ? c = h = 0 : o.timeline = 0;
1534
+ }), E.kill(), E.parent = E._dp = we(o), E._start = 0, p || Rt(c) || Rt(h)) {
1535
+ if (v = x.length, T = p && Kn(p), Ee(p))
1536
+ for (P in p)
1537
+ ~hr.indexOf(P) && (M || (M = {}), M[P] = p[P]);
1538
+ for (b = 0; b < v; b++)
1539
+ C = Bt(n, cr), C.stagger = 0, _ && (C.yoyoEase = _), M && at(C, M), w = x[b], C.duration = +bt(c, we(o), b, w, x), C.delay = (+bt(h, we(o), b, w, x) || 0) - o._delay, !p && v === 1 && C.delay && (o._delay = h = C.delay, o._start += h, C.delay = 0), E.to(w, C, T ? T(b, w, x) : 0), E._ease = D.none;
1540
+ E.duration() ? c = h = 0 : o.timeline = 0;
1541
1541
  } else if (f) {
1542
- yt(ue(b.vars.defaults, {
1542
+ yt(ue(E.vars.defaults, {
1543
1543
  ease: "none"
1544
- })), b._ease = Ye(f.ease || n.ease || "none");
1545
- var T = 0, R, O, B;
1546
- if (K(f))
1544
+ })), E._ease = Ye(f.ease || n.ease || "none");
1545
+ var A = 0, R, O, B;
1546
+ if (W(f))
1547
1547
  f.forEach(function(F) {
1548
- return b.to(x, F, ">");
1549
- }), b.duration();
1548
+ return E.to(x, F, ">");
1549
+ }), E.duration();
1550
1550
  else {
1551
- P = {};
1552
- for (C in f)
1553
- C === "ease" || C === "easeEach" || Rs(C, f[C], P, f.easeEach);
1554
- for (C in P)
1555
- for (R = P[C].sort(function(F, U) {
1551
+ C = {};
1552
+ for (P in f)
1553
+ P === "ease" || P === "easeEach" || Is(P, f[P], C, f.easeEach);
1554
+ for (P in C)
1555
+ for (R = C[P].sort(function(F, U) {
1556
1556
  return F.t - U.t;
1557
- }), T = 0, v = 0; v < R.length; v++)
1558
- O = R[v], B = {
1557
+ }), A = 0, b = 0; b < R.length; b++)
1558
+ O = R[b], B = {
1559
1559
  ease: O.e,
1560
- duration: (O.t - (v ? R[v - 1].t : 0)) / 100 * c
1561
- }, B[C] = O.v, b.to(x, B, T), T += B.duration;
1562
- b.duration() < c && b.to({}, {
1563
- duration: c - b.duration()
1560
+ duration: (O.t - (b ? R[b - 1].t : 0)) / 100 * c
1561
+ }, B[P] = O.v, E.to(x, B, A), A += B.duration;
1562
+ E.duration() < c && E.to({}, {
1563
+ duration: c - E.duration()
1564
1564
  });
1565
1565
  }
1566
1566
  }
1567
- c || o.duration(c = b.duration());
1567
+ c || o.duration(c = E.duration());
1568
1568
  } else
1569
1569
  o.timeline = 0;
1570
- return m === !0 && !Ci && (Se = we(o), N.killTweensOf(x), Se = 0), ye(y, we(o), r), n.reversed && o.reverse(), n.paused && o.paused(!0), (u || !c && !f && o._start === H(y._time) && ee(u) && ls(we(o)) && y.data !== "nested") && (o._tTime = -I, o.render(Math.max(0, -h) || 0)), g && Gn(we(o), g), o;
1570
+ return m === !0 && !Pi && (Te = we(o), z.killTweensOf(x), Te = 0), ye(y, we(o), r), n.reversed && o.reverse(), n.paused && o.paused(!0), (u || !c && !f && o._start === j(y._time) && ee(u) && cs(we(o)) && y.data !== "nested") && (o._tTime = -k, o.render(Math.max(0, -h) || 0)), g && Hn(we(o), g), o;
1571
1571
  }
1572
1572
  var t = e.prototype;
1573
1573
  return t.render = function(n, r, s) {
1574
- var o = this._time, l = this._tDur, c = this._dur, h = n < 0, u = n > l - I && !h ? l : n < I ? 0 : n, p, m, f, d, g, _, y, x, b;
1574
+ var o = this._time, l = this._tDur, c = this._dur, h = n < 0, u = n > l - k && !h ? l : n < k ? 0 : n, p, m, f, d, g, _, y, x, E;
1575
1575
  if (!c)
1576
- cs(this, n, r, s);
1576
+ ds(this, n, r, s);
1577
1577
  else if (u !== this._tTime || !n || s || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== h || this._lazy) {
1578
1578
  if (p = u, x = this.timeline, this._repeat) {
1579
1579
  if (d = c + this._rDelay, this._repeat < -1 && h)
1580
1580
  return this.totalTime(d * 100 + n, r, s);
1581
- if (p = H(u % d), u === l ? (f = this._repeat, p = c) : (g = H(u / d), f = ~~g, f && f === g ? (p = c, f--) : p > c && (p = c)), _ = this._yoyo && f & 1, _ && (b = this._yEase, p = c - p), g = ot(this._tTime, d), p === o && !s && this._initted && f === g)
1581
+ if (p = j(u % d), u === l ? (f = this._repeat, p = c) : (g = j(u / d), f = ~~g, f && f === g ? (p = c, f--) : p > c && (p = c)), _ = this._yoyo && f & 1, _ && (E = this._yEase, p = c - p), g = ot(this._tTime, d), p === o && !s && this._initted && f === g)
1582
1582
  return this._tTime = u, this;
1583
- f !== g && (x && this._yEase && rr(x, _), this.vars.repeatRefresh && !_ && !this._lock && p !== d && this._initted && (this._lock = s = 1, this.render(H(d * f), !0).invalidate()._lock = 0));
1583
+ f !== g && (x && this._yEase && sr(x, _), this.vars.repeatRefresh && !_ && !this._lock && p !== d && this._initted && (this._lock = s = 1, this.render(j(d * f), !0).invalidate()._lock = 0));
1584
1584
  }
1585
1585
  if (!this._initted) {
1586
1586
  if (jn(this, h ? n : p, s, r, u))
@@ -1590,11 +1590,11 @@ var j = /* @__PURE__ */ (function(a) {
1590
1590
  if (c !== this._dur)
1591
1591
  return this.render(n, r, s);
1592
1592
  }
1593
- if (this._tTime = u, this._time = p, !this._act && this._ts && (this._act = 1, this._lazy = 0), this.ratio = y = (b || this._ease)(p / c), this._from && (this.ratio = y = 1 - y), !o && u && !r && !g && (le(this, "onStart"), this._tTime !== u))
1593
+ if (this._tTime = u, this._time = p, !this._act && this._ts && (this._act = 1, this._lazy = 0), this.ratio = y = (E || this._ease)(p / c), this._from && (this.ratio = y = 1 - y), !o && u && !r && !g && (le(this, "onStart"), this._tTime !== u))
1594
1594
  return this;
1595
1595
  for (m = this._pt; m; )
1596
1596
  m.r(y, m.d), m = m._next;
1597
- x && x.render(n < 0 ? n : x._dur * x._ease(p / this._dur), r, s) || this._startAt && (this._zTime = n), this._onUpdate && !r && (h && ui(this, n, r, s), le(this, "onUpdate")), this._repeat && f !== g && this.vars.onRepeat && !r && this.parent && le(this, "onRepeat"), (u === this._tDur || !u) && this._tTime === u && (h && !this._onUpdate && ui(this, n, !0, !0), (n || !c) && (u === this._tDur && this._ts > 0 || !u && this._ts < 0) && ke(this, 1), !r && !(h && !o) && (u || o || _) && (le(this, u === l ? "onComplete" : "onReverseComplete", !0), this._prom && !(u < l && this.timeScale() > 0) && this._prom()));
1597
+ x && x.render(n < 0 ? n : x._dur * x._ease(p / this._dur), r, s) || this._startAt && (this._zTime = n), this._onUpdate && !r && (h && ui(this, n, r, s), le(this, "onUpdate")), this._repeat && f !== g && this.vars.onRepeat && !r && this.parent && le(this, "onRepeat"), (u === this._tDur || !u) && this._tTime === u && (h && !this._onUpdate && ui(this, n, !0, !0), (n || !c) && (u === this._tDur && this._ts > 0 || !u && this._ts < 0) && Ie(this, 1), !r && !(h && !o) && (u || o || _) && (le(this, u === l ? "onComplete" : "onReverseComplete", !0), this._prom && !(u < l && this.timeScale() > 0) && this._prom()));
1598
1598
  }
1599
1599
  return this;
1600
1600
  }, t.targets = function() {
@@ -1602,22 +1602,22 @@ var j = /* @__PURE__ */ (function(a) {
1602
1602
  }, t.invalidate = function(n) {
1603
1603
  return (!n || !this.vars.runBackwards) && (this._startAt = 0), this._pt = this._op = this._onUpdate = this._lazy = this.ratio = 0, this._ptLookup = [], this.timeline && this.timeline.invalidate(n), a.prototype.invalidate.call(this, n);
1604
1604
  }, t.resetTo = function(n, r, s, o, l) {
1605
- Pt || oe.wake(), this._ts || this.play();
1605
+ Ct || oe.wake(), this._ts || this.play();
1606
1606
  var c = Math.min(this._dur, (this._dp._time - this._start) * this._ts), h;
1607
- return this._initted || Ii(this, c), h = this._ease(c / this._dur), Ds(this, n, r, s, o, h, c, l) ? this.resetTo(n, r, s, o, 1) : (Xt(this, 0), this.parent || Bn(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
1607
+ return this._initted || ki(this, c), h = this._ease(c / this._dur), Rs(this, n, r, s, o, h, c, l) ? this.resetTo(n, r, s, o, 1) : (Kt(this, 0), this.parent || Gn(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
1608
1608
  }, t.kill = function(n, r) {
1609
1609
  if (r === void 0 && (r = "all"), !n && (!r || r === "all"))
1610
- return this._lazy = this._pt = 0, this.parent ? mt(this) : this.scrollTrigger && this.scrollTrigger.kill(!!X), this;
1610
+ return this._lazy = this._pt = 0, this.parent ? mt(this) : this.scrollTrigger && this.scrollTrigger.kill(!!K), this;
1611
1611
  if (this.timeline) {
1612
1612
  var s = this.timeline.totalDuration();
1613
- return this.timeline.killTweensOf(n, r, Se && Se.vars.overwrite !== !0)._first || mt(this), this.parent && s !== this.timeline.totalDuration() && lt(this, this._dur * this.timeline._tDur / s, 0, 1), this;
1613
+ return this.timeline.killTweensOf(n, r, Te && Te.vars.overwrite !== !0)._first || mt(this), this.parent && s !== this.timeline.totalDuration() && lt(this, this._dur * this.timeline._tDur / s, 0, 1), this;
1614
1614
  }
1615
1615
  var o = this._targets, l = n ? me(n) : o, c = this._ptLookup, h = this._pt, u, p, m, f, d, g, _;
1616
- if ((!r || r === "all") && as(o, l))
1616
+ if ((!r || r === "all") && ls(o, l))
1617
1617
  return r === "all" && (this._pt = 0), mt(this);
1618
1618
  for (u = this._op = this._op || [], r !== "all" && (Z(r) && (d = {}, te(r, function(y) {
1619
1619
  return d[y] = 1;
1620
- }), r = d), r = Ms(o, r)), _ = o.length; _--; )
1620
+ }), r = d), r = Os(o, r)), _ = o.length; _--; )
1621
1621
  if (~l.indexOf(o[_])) {
1622
1622
  p = c[_], r === "all" ? (u[_] = r, f = p, m = {}) : (m = u[_] = u[_] || {}, f = r);
1623
1623
  for (d in f)
@@ -1645,10 +1645,10 @@ var j = /* @__PURE__ */ (function(a) {
1645
1645
  }, e.set = function(n, r) {
1646
1646
  return r.duration = 0, r.repeatDelay || (r.repeat = 0), new e(n, r);
1647
1647
  }, e.killTweensOf = function(n, r, s) {
1648
- return N.killTweensOf(n, r, s);
1648
+ return z.killTweensOf(n, r, s);
1649
1649
  }, e;
1650
- })(Ct);
1651
- ue(j.prototype, {
1650
+ })(Pt);
1651
+ ue(H.prototype, {
1652
1652
  _targets: [],
1653
1653
  _lazy: 0,
1654
1654
  _startAt: 0,
@@ -1656,26 +1656,26 @@ ue(j.prototype, {
1656
1656
  _onInit: 0
1657
1657
  });
1658
1658
  te("staggerTo,staggerFrom,staggerFromTo", function(a) {
1659
- j[a] = function() {
1659
+ H[a] = function() {
1660
1660
  var e = new q(), t = pi.call(arguments, 0);
1661
1661
  return t.splice(a === "staggerFromTo" ? 5 : 4, 0, 0), e[a].apply(e, t);
1662
1662
  };
1663
1663
  });
1664
1664
  var Ui = function(e, t, i) {
1665
1665
  return e[t] = i;
1666
- }, cr = function(e, t, i) {
1666
+ }, ur = function(e, t, i) {
1667
1667
  return e[t](i);
1668
- }, Os = function(e, t, i, n) {
1668
+ }, Ls = function(e, t, i, n) {
1669
1669
  return e[t](n.fp, i);
1670
1670
  }, ks = function(e, t, i) {
1671
1671
  return e.setAttribute(t, i);
1672
1672
  }, Fi = function(e, t) {
1673
- return V(e[t]) ? cr : Ti(e[t]) && e.setAttribute ? ks : Ui;
1674
- }, ur = function(e, t) {
1673
+ return G(e[t]) ? ur : Ai(e[t]) && e.setAttribute ? ks : Ui;
1674
+ }, dr = function(e, t) {
1675
1675
  return t.set(t.t, t.p, Math.round((t.s + t.c * e) * 1e6) / 1e6, t);
1676
- }, Ls = function(e, t) {
1676
+ }, Us = function(e, t) {
1677
1677
  return t.set(t.t, t.p, !!(t.s + t.c * e), t);
1678
- }, dr = function(e, t) {
1678
+ }, pr = function(e, t) {
1679
1679
  var i = t._pt, n = "";
1680
1680
  if (!e && t.b)
1681
1681
  n = t.b;
@@ -1687,19 +1687,19 @@ var Ui = function(e, t, i) {
1687
1687
  n += t.c;
1688
1688
  }
1689
1689
  t.set(t.t, t.p, n, t);
1690
- }, zi = function(e, t) {
1690
+ }, Ni = function(e, t) {
1691
1691
  for (var i = t._pt; i; )
1692
1692
  i.r(e, i.d), i = i._next;
1693
- }, Is = function(e, t, i, n) {
1693
+ }, Fs = function(e, t, i, n) {
1694
1694
  for (var r = this._pt, s; r; )
1695
1695
  s = r._next, r.p === n && r.modifier(e, t, i), r = s;
1696
- }, Us = function(e) {
1696
+ }, Ns = function(e) {
1697
1697
  for (var t = this._pt, i, n; t; )
1698
1698
  n = t._next, t.p === e && !t.op || t.op === e ? Yt(this, t, "_pt") : t.dep || (i = 1), t = n;
1699
1699
  return !i;
1700
- }, Fs = function(e, t, i, n) {
1700
+ }, zs = function(e, t, i, n) {
1701
1701
  n.mSet(e, t, n.m.call(n.tween, i, n.mt), n);
1702
- }, pr = function(e) {
1702
+ }, fr = function(e) {
1703
1703
  for (var t = e._pt, i, n, r, s; t; ) {
1704
1704
  for (i = t._next, n = r; n && n.pr > t.pr; )
1705
1705
  n = n._next;
@@ -1708,28 +1708,28 @@ var Ui = function(e, t, i) {
1708
1708
  e._pt = r;
1709
1709
  }, ie = /* @__PURE__ */ (function() {
1710
1710
  function a(t, i, n, r, s, o, l, c, h) {
1711
- this.t = i, this.s = r, this.c = s, this.p = n, this.r = o || ur, this.d = l || this, this.set = c || Ui, this.pr = h || 0, this._next = t, t && (t._prev = this);
1711
+ this.t = i, this.s = r, this.c = s, this.p = n, this.r = o || dr, this.d = l || this, this.set = c || Ui, this.pr = h || 0, this._next = t, t && (t._prev = this);
1712
1712
  }
1713
1713
  var e = a.prototype;
1714
1714
  return e.modifier = function(i, n, r) {
1715
- this.mSet = this.mSet || this.set, this.set = Fs, this.m = i, this.mt = r, this.tween = n;
1715
+ this.mSet = this.mSet || this.set, this.set = zs, this.m = i, this.mt = r, this.tween = n;
1716
1716
  }, a;
1717
1717
  })();
1718
1718
  te(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) {
1719
1719
  return Mi[a] = 1;
1720
1720
  });
1721
- ce.TweenMax = ce.TweenLite = j;
1721
+ ce.TweenMax = ce.TweenLite = H;
1722
1722
  ce.TimelineLite = ce.TimelineMax = q;
1723
- N = new q({
1723
+ z = new q({
1724
1724
  sortChildren: !1,
1725
1725
  defaults: st,
1726
1726
  autoRemoveChildren: !0,
1727
1727
  id: "root",
1728
1728
  smoothChildTiming: !0
1729
1729
  });
1730
- he.stringFilter = ir;
1731
- var Ze = [], Ft = {}, zs = [], nn = 0, Ns = 0, ti = function(e) {
1732
- return (Ft[e] || zs).map(function(t) {
1730
+ he.stringFilter = nr;
1731
+ var Ze = [], Ft = {}, $s = [], nn = 0, Bs = 0, ti = function(e) {
1732
+ return (Ft[e] || $s).map(function(t) {
1733
1733
  return t();
1734
1734
  });
1735
1735
  }, _i = function() {
@@ -1744,27 +1744,27 @@ var Ze = [], Ft = {}, zs = [], nn = 0, Ns = 0, ti = function(e) {
1744
1744
  return i.add(null, n);
1745
1745
  });
1746
1746
  }), nn = e, ti("matchMedia"));
1747
- }, fr = /* @__PURE__ */ (function() {
1747
+ }, mr = /* @__PURE__ */ (function() {
1748
1748
  function a(t, i) {
1749
- this.selector = i && fi(i), this.data = [], this._r = [], this.isReverted = !1, this.id = Ns++, t && this.add(t);
1749
+ this.selector = i && fi(i), this.data = [], this._r = [], this.isReverted = !1, this.id = Bs++, t && this.add(t);
1750
1750
  }
1751
1751
  var e = a.prototype;
1752
1752
  return e.add = function(i, n, r) {
1753
- V(i) && (r = n, n = i, i = V);
1753
+ G(i) && (r = n, n = i, i = G);
1754
1754
  var s = this, o = function() {
1755
- var c = z, h = s.selector, u;
1756
- return c && c !== s && c.data.push(s), r && (s.selector = fi(r)), z = s, u = n.apply(s, arguments), V(u) && s._r.push(u), z = c, s.selector = h, s.isReverted = !1, u;
1755
+ var c = N, h = s.selector, u;
1756
+ return c && c !== s && c.data.push(s), r && (s.selector = fi(r)), N = s, u = n.apply(s, arguments), G(u) && s._r.push(u), N = c, s.selector = h, s.isReverted = !1, u;
1757
1757
  };
1758
- return s.last = o, i === V ? o(s, function(l) {
1758
+ return s.last = o, i === G ? o(s, function(l) {
1759
1759
  return s.add(null, l);
1760
1760
  }) : i ? s[i] = o : o;
1761
1761
  }, e.ignore = function(i) {
1762
- var n = z;
1763
- z = null, i(this), z = n;
1762
+ var n = N;
1763
+ N = null, i(this), N = n;
1764
1764
  }, e.getTweens = function() {
1765
1765
  var i = [];
1766
1766
  return this.data.forEach(function(n) {
1767
- return n instanceof a ? i.push.apply(i, n.getTweens()) : n instanceof j && !(n.parent && n.parent.data === "nested") && i.push(n);
1767
+ return n instanceof a ? i.push.apply(i, n.getTweens()) : n instanceof H && !(n.parent && n.parent.data === "nested") && i.push(n);
1768
1768
  }), i;
1769
1769
  }, e.clear = function() {
1770
1770
  this._r.length = this.data.length = 0;
@@ -1785,7 +1785,7 @@ var Ze = [], Ft = {}, zs = [], nn = 0, Ns = 0, ti = function(e) {
1785
1785
  }).forEach(function(h) {
1786
1786
  return h.t.revert(i);
1787
1787
  }), l = r.data.length; l--; )
1788
- c = r.data[l], c instanceof q ? c.data !== "nested" && (c.scrollTrigger && c.scrollTrigger.revert(), c.kill()) : !(c instanceof j) && c.revert && c.revert(i);
1788
+ c = r.data[l], c instanceof q ? c.data !== "nested" && (c.scrollTrigger && c.scrollTrigger.revert(), c.kill()) : !(c instanceof H) && c.revert && c.revert(i);
1789
1789
  r._r.forEach(function(h) {
1790
1790
  return h(i, r);
1791
1791
  }), r.isReverted = !0;
@@ -1797,17 +1797,17 @@ var Ze = [], Ft = {}, zs = [], nn = 0, Ns = 0, ti = function(e) {
1797
1797
  }, e.revert = function(i) {
1798
1798
  this.kill(i || {});
1799
1799
  }, a;
1800
- })(), $s = /* @__PURE__ */ (function() {
1800
+ })(), Gs = /* @__PURE__ */ (function() {
1801
1801
  function a(t) {
1802
- this.contexts = [], this.scope = t, z && z.data.push(this);
1802
+ this.contexts = [], this.scope = t, N && N.data.push(this);
1803
1803
  }
1804
1804
  var e = a.prototype;
1805
1805
  return e.add = function(i, n, r) {
1806
- ve(i) || (i = {
1806
+ Ee(i) || (i = {
1807
1807
  matches: i
1808
1808
  });
1809
- var s = new fr(0, r || this.scope), o = s.conditions = {}, l, c, h;
1810
- z && !s.selector && (s.selector = z.selector), this.contexts.push(s), n = s.add("onMatch", n), s.queries = i;
1809
+ var s = new mr(0, r || this.scope), o = s.conditions = {}, l, c, h;
1810
+ N && !s.selector && (s.selector = N.selector), this.contexts.push(s), n = s.add("onMatch", n), s.queries = i;
1811
1811
  for (c in i)
1812
1812
  c === "all" ? h = 1 : (l = _e.matchMedia(i[c]), l && (Ze.indexOf(s) < 0 && Ze.push(s), (o[c] = l.matches) && (h = 1), l.addListener ? l.addListener(_i) : l.addEventListener("change", _i)));
1813
1813
  return h && n(s, function(u) {
@@ -1820,23 +1820,23 @@ var Ze = [], Ft = {}, zs = [], nn = 0, Ns = 0, ti = function(e) {
1820
1820
  return n.kill(i, !0);
1821
1821
  });
1822
1822
  }, a;
1823
- })(), Gt = {
1823
+ })(), Vt = {
1824
1824
  registerPlugin: function() {
1825
1825
  for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
1826
1826
  t[i] = arguments[i];
1827
1827
  t.forEach(function(n) {
1828
- return Jn(n);
1828
+ return er(n);
1829
1829
  });
1830
1830
  },
1831
1831
  timeline: function(e) {
1832
1832
  return new q(e);
1833
1833
  },
1834
1834
  getTweensOf: function(e, t) {
1835
- return N.getTweensOf(e, t);
1835
+ return z.getTweensOf(e, t);
1836
1836
  },
1837
1837
  getProperty: function(e, t, i, n) {
1838
1838
  Z(e) && (e = me(e)[0]);
1839
- var r = je(e || {}).get, s = i ? $n : Nn;
1839
+ var r = He(e || {}).get, s = i ? Bn : $n;
1840
1840
  return i === "native" && (i = ""), e && (t ? s((ae[t] && ae[t].get || r)(e, t, i, n)) : function(o, l, c) {
1841
1841
  return s((ae[o] && ae[o].get || r)(e, o, l, c));
1842
1842
  });
@@ -1852,9 +1852,9 @@ var Ze = [], Ft = {}, zs = [], nn = 0, Ns = 0, ti = function(e) {
1852
1852
  };
1853
1853
  }
1854
1854
  e = e[0] || {};
1855
- var s = ae[t], o = je(e), l = o.harness && (o.harness.aliases || {})[t] || t, c = s ? function(h) {
1855
+ var s = ae[t], o = He(e), l = o.harness && (o.harness.aliases || {})[t] || t, c = s ? function(h) {
1856
1856
  var u = new s();
1857
- et._pt = 0, u.init(e, i ? h + i : h, et, 0, [e]), u.render(1, u), et._pt && zi(1, et);
1857
+ et._pt = 0, u.init(e, i ? h + i : h, et, 0, [e]), u.render(1, u), et._pt && Ni(1, et);
1858
1858
  } : o.set(e, l);
1859
1859
  return s ? c : function(h) {
1860
1860
  return c(e, l, i ? h + i : h, o, 1);
@@ -1867,7 +1867,7 @@ var Ze = [], Ft = {}, zs = [], nn = 0, Ns = 0, ti = function(e) {
1867
1867
  return s.tween = r, s;
1868
1868
  },
1869
1869
  isTweening: function(e) {
1870
- return N.getTweensOf(e, !0).length > 0;
1870
+ return z.getTweensOf(e, !0).length > 0;
1871
1871
  },
1872
1872
  defaults: function(e) {
1873
1873
  return e && e.ease && (e.ease = Ye(e.ease, st.ease)), qi(st, e || {});
@@ -1878,34 +1878,34 @@ var Ze = [], Ft = {}, zs = [], nn = 0, Ns = 0, ti = function(e) {
1878
1878
  registerEffect: function(e) {
1879
1879
  var t = e.name, i = e.effect, n = e.plugins, r = e.defaults, s = e.extendTimeline;
1880
1880
  (n || "").split(",").forEach(function(o) {
1881
- return o && !ae[o] && !ce[o] && vt(t + " effect requires " + o + " plugin.");
1881
+ return o && !ae[o] && !ce[o] && Et(t + " effect requires " + o + " plugin.");
1882
1882
  }), qt[t] = function(o, l, c) {
1883
1883
  return i(me(o), ue(l || {}, r), c);
1884
1884
  }, s && (q.prototype[t] = function(o, l, c) {
1885
- return this.add(qt[t](o, ve(l) ? l : (c = l) && {}, this), c);
1885
+ return this.add(qt[t](o, Ee(l) ? l : (c = l) && {}, this), c);
1886
1886
  });
1887
1887
  },
1888
1888
  registerEase: function(e, t) {
1889
- A[e] = Ye(t);
1889
+ D[e] = Ye(t);
1890
1890
  },
1891
1891
  parseEase: function(e, t) {
1892
- return arguments.length ? Ye(e, t) : A;
1892
+ return arguments.length ? Ye(e, t) : D;
1893
1893
  },
1894
1894
  getById: function(e) {
1895
- return N.getById(e);
1895
+ return z.getById(e);
1896
1896
  },
1897
1897
  exportRoot: function(e, t) {
1898
1898
  e === void 0 && (e = {});
1899
1899
  var i = new q(e), n, r;
1900
- for (i.smoothChildTiming = ee(e.smoothChildTiming), N.remove(i), i._dp = 0, i._time = i._tTime = N._time, n = N._first; n; )
1901
- r = n._next, (t || !(!n._dur && n instanceof j && n.vars.onComplete === n._targets[0])) && ye(i, n, n._start - n._delay), n = r;
1902
- return ye(N, i, 0), i;
1900
+ for (i.smoothChildTiming = ee(e.smoothChildTiming), z.remove(i), i._dp = 0, i._time = i._tTime = z._time, n = z._first; n; )
1901
+ r = n._next, (t || !(!n._dur && n instanceof H && n.vars.onComplete === n._targets[0])) && ye(i, n, n._start - n._delay), n = r;
1902
+ return ye(z, i, 0), i;
1903
1903
  },
1904
1904
  context: function(e, t) {
1905
- return e ? new fr(e, t) : z;
1905
+ return e ? new mr(e, t) : N;
1906
1906
  },
1907
1907
  matchMedia: function(e) {
1908
- return new $s(e);
1908
+ return new Gs(e);
1909
1909
  },
1910
1910
  matchMediaRefresh: function() {
1911
1911
  return Ze.forEach(function(e) {
@@ -1924,64 +1924,64 @@ var Ze = [], Ft = {}, zs = [], nn = 0, Ns = 0, ti = function(e) {
1924
1924
  n >= 0 && i.splice(n, 1);
1925
1925
  },
1926
1926
  utils: {
1927
- wrap: ys,
1928
- wrapYoyo: xs,
1929
- distribute: Zn,
1927
+ wrap: bs,
1928
+ wrapYoyo: Es,
1929
+ distribute: Kn,
1930
1930
  random: Wn,
1931
1931
  snap: Xn,
1932
- normalize: _s,
1933
- getUnit: W,
1934
- clamp: ps,
1935
- splitColor: er,
1932
+ normalize: xs,
1933
+ getUnit: X,
1934
+ clamp: ms,
1935
+ splitColor: tr,
1936
1936
  toArray: me,
1937
1937
  selector: fi,
1938
- mapRange: qn,
1939
- pipe: ms,
1940
- unitize: gs,
1941
- interpolate: bs,
1942
- shuffle: Yn
1938
+ mapRange: Qn,
1939
+ pipe: _s,
1940
+ unitize: ys,
1941
+ interpolate: vs,
1942
+ shuffle: Zn
1943
1943
  },
1944
- install: Ln,
1944
+ install: kn,
1945
1945
  effects: qt,
1946
1946
  ticker: oe,
1947
1947
  updateRoot: q.updateRoot,
1948
1948
  plugins: ae,
1949
- globalTimeline: N,
1949
+ globalTimeline: z,
1950
1950
  core: {
1951
1951
  PropTween: ie,
1952
- globals: In,
1953
- Tween: j,
1952
+ globals: Un,
1953
+ Tween: H,
1954
1954
  Timeline: q,
1955
- Animation: Ct,
1956
- getCache: je,
1955
+ Animation: Pt,
1956
+ getCache: He,
1957
1957
  _removeLinkedListItem: Yt,
1958
1958
  reverting: function() {
1959
- return X;
1959
+ return K;
1960
1960
  },
1961
1961
  context: function(e) {
1962
- return e && z && (z.data.push(e), e._ctx = z), z;
1962
+ return e && N && (N.data.push(e), e._ctx = N), N;
1963
1963
  },
1964
1964
  suppressOverwrites: function(e) {
1965
- return Ci = e;
1965
+ return Pi = e;
1966
1966
  }
1967
1967
  }
1968
1968
  };
1969
1969
  te("to,from,fromTo,delayedCall,set,killTweensOf", function(a) {
1970
- return Gt[a] = j[a];
1970
+ return Vt[a] = H[a];
1971
1971
  });
1972
1972
  oe.add(q.updateRoot);
1973
- et = Gt.to({}, {
1973
+ et = Vt.to({}, {
1974
1974
  duration: 0
1975
1975
  });
1976
- var Bs = function(e, t) {
1976
+ var Vs = function(e, t) {
1977
1977
  for (var i = e._pt; i && i.p !== t && i.op !== t && i.fp !== t; )
1978
1978
  i = i._next;
1979
1979
  return i;
1980
- }, Vs = function(e, t) {
1980
+ }, Hs = function(e, t) {
1981
1981
  var i = e._targets, n, r, s;
1982
1982
  for (n in t)
1983
1983
  for (r = i.length; r--; )
1984
- s = e._ptLookup[r][n], s && (s = s.d) && (s._pt && (s = Bs(s, n)), s && s.modifier && s.modifier(t[n], e, i[r], n));
1984
+ s = e._ptLookup[r][n], s && (s = s.d) && (s._pt && (s = Vs(s, n)), s && s.modifier && s.modifier(t[n], e, i[r], n));
1985
1985
  }, ii = function(e, t) {
1986
1986
  return {
1987
1987
  name: e,
@@ -1999,11 +1999,11 @@ var Bs = function(e, t) {
1999
1999
  l[c] = t(r[c]);
2000
2000
  r = l;
2001
2001
  }
2002
- Vs(o, r);
2002
+ Hs(o, r);
2003
2003
  };
2004
2004
  }
2005
2005
  };
2006
- }, re = Gt.registerPlugin({
2006
+ }, re = Vt.registerPlugin({
2007
2007
  name: "attr",
2008
2008
  init: function(e, t, i, n, r) {
2009
2009
  var s, o, l;
@@ -2013,7 +2013,7 @@ var Bs = function(e, t) {
2013
2013
  },
2014
2014
  render: function(e, t) {
2015
2015
  for (var i = t._pt; i; )
2016
- X ? i.set(i.t, i.p, i.b, i) : i.r(e, i.d), i = i._next;
2016
+ K ? i.set(i.t, i.p, i.b, i) : i.r(e, i.d), i = i._next;
2017
2017
  }
2018
2018
  }, {
2019
2019
  name: "endArray",
@@ -2022,68 +2022,68 @@ var Bs = function(e, t) {
2022
2022
  for (var i = t.length; i--; )
2023
2023
  this.add(e, i, e[i] || 0, t[i], 0, 0, 0, 0, 0, 1);
2024
2024
  }
2025
- }, ii("roundProps", mi), ii("modifiers"), ii("snap", Xn)) || Gt;
2026
- j.version = q.version = re.version = "3.13.0";
2027
- kn = 1;
2028
- Si() && ht();
2029
- A.Power0;
2030
- A.Power1;
2031
- A.Power2;
2032
- A.Power3;
2033
- A.Power4;
2034
- A.Linear;
2035
- A.Quad;
2036
- A.Cubic;
2037
- A.Quart;
2038
- A.Quint;
2039
- A.Strong;
2040
- A.Elastic;
2041
- A.Back;
2042
- A.SteppedEase;
2043
- A.Bounce;
2044
- A.Sine;
2045
- A.Expo;
2046
- A.Circ;
2047
- var rn, Ae, nt, Ni, Ve, sn, $i, Gs = function() {
2025
+ }, ii("roundProps", mi), ii("modifiers"), ii("snap", Xn)) || Vt;
2026
+ H.version = q.version = re.version = "3.13.0";
2027
+ Ln = 1;
2028
+ Ti() && ht();
2029
+ D.Power0;
2030
+ D.Power1;
2031
+ D.Power2;
2032
+ D.Power3;
2033
+ D.Power4;
2034
+ D.Linear;
2035
+ D.Quad;
2036
+ D.Cubic;
2037
+ D.Quart;
2038
+ D.Quint;
2039
+ D.Strong;
2040
+ D.Elastic;
2041
+ D.Back;
2042
+ D.SteppedEase;
2043
+ D.Bounce;
2044
+ D.Sine;
2045
+ D.Expo;
2046
+ D.Circ;
2047
+ var rn, Se, nt, zi, Ge, sn, $i, js = function() {
2048
2048
  return typeof window < "u";
2049
- }, Te = {}, $e = 180 / Math.PI, rt = Math.PI / 180, Ke = Math.atan2, an = 1e8, Bi = /([A-Z])/g, js = /(left|right|width|margin|padding|x)/i, Hs = /[\s,\(]\S/, xe = {
2049
+ }, Ae = {}, $e = 180 / Math.PI, rt = Math.PI / 180, We = Math.atan2, an = 1e8, Bi = /([A-Z])/g, Ys = /(left|right|width|margin|padding|x)/i, Zs = /[\s,\(]\S/, xe = {
2050
2050
  autoAlpha: "opacity,visibility",
2051
2051
  scale: "scaleX,scaleY",
2052
2052
  alpha: "opacity"
2053
2053
  }, yi = function(e, t) {
2054
2054
  return t.set(t.t, t.p, Math.round((t.s + t.c * e) * 1e4) / 1e4 + t.u, t);
2055
- }, Ys = function(e, t) {
2055
+ }, Ks = function(e, t) {
2056
2056
  return t.set(t.t, t.p, e === 1 ? t.e : Math.round((t.s + t.c * e) * 1e4) / 1e4 + t.u, t);
2057
- }, Zs = function(e, t) {
2058
- return t.set(t.t, t.p, e ? Math.round((t.s + t.c * e) * 1e4) / 1e4 + t.u : t.b, t);
2059
2057
  }, Xs = function(e, t) {
2058
+ return t.set(t.t, t.p, e ? Math.round((t.s + t.c * e) * 1e4) / 1e4 + t.u : t.b, t);
2059
+ }, Ws = function(e, t) {
2060
2060
  var i = t.s + t.c * e;
2061
2061
  t.set(t.t, t.p, ~~(i + (i < 0 ? -0.5 : 0.5)) + t.u, t);
2062
- }, mr = function(e, t) {
2063
- return t.set(t.t, t.p, e ? t.e : t.b, t);
2064
2062
  }, gr = function(e, t) {
2063
+ return t.set(t.t, t.p, e ? t.e : t.b, t);
2064
+ }, _r = function(e, t) {
2065
2065
  return t.set(t.t, t.p, e !== 1 ? t.b : t.e, t);
2066
- }, Ws = function(e, t, i) {
2066
+ }, qs = function(e, t, i) {
2067
2067
  return e.style[t] = i;
2068
- }, Ks = function(e, t, i) {
2068
+ }, Qs = function(e, t, i) {
2069
2069
  return e.style.setProperty(t, i);
2070
- }, qs = function(e, t, i) {
2070
+ }, Js = function(e, t, i) {
2071
2071
  return e._gsap[t] = i;
2072
- }, Qs = function(e, t, i) {
2072
+ }, ea = function(e, t, i) {
2073
2073
  return e._gsap.scaleX = e._gsap.scaleY = i;
2074
- }, Js = function(e, t, i, n, r) {
2074
+ }, ta = function(e, t, i, n, r) {
2075
2075
  var s = e._gsap;
2076
2076
  s.scaleX = s.scaleY = i, s.renderTransform(r, s);
2077
- }, ea = function(e, t, i, n, r) {
2077
+ }, ia = function(e, t, i, n, r) {
2078
2078
  var s = e._gsap;
2079
2079
  s[t] = i, s.renderTransform(r, s);
2080
- }, $ = "transform", ne = $ + "Origin", ta = function a(e, t) {
2080
+ }, $ = "transform", ne = $ + "Origin", na = function a(e, t) {
2081
2081
  var i = this, n = this.target, r = n.style, s = n._gsap;
2082
- if (e in Te && r) {
2082
+ if (e in Ae && r) {
2083
2083
  if (this.tfm = this.tfm || {}, e !== "transform")
2084
2084
  e = xe[e] || e, ~e.indexOf(",") ? e.split(",").forEach(function(o) {
2085
- return i.tfm[o] = Pe(n, o);
2086
- }) : this.tfm[e] = s.x ? s[e] : Pe(n, e), e === ne && (this.tfm.zOrigin = s.zOrigin);
2085
+ return i.tfm[o] = Ce(n, o);
2086
+ }) : this.tfm[e] = s.x ? s[e] : Ce(n, e), e === ne && (this.tfm.zOrigin = s.zOrigin);
2087
2087
  else
2088
2088
  return xe.transform.split(",").forEach(function(o) {
2089
2089
  return a.call(i, o, t);
@@ -2093,44 +2093,44 @@ var rn, Ae, nt, Ni, Ve, sn, $i, Gs = function() {
2093
2093
  s.svg && (this.svgo = n.getAttribute("data-svg-origin"), this.props.push(ne, t, "")), e = $;
2094
2094
  }
2095
2095
  (r || t) && this.props.push(e, t, r[e]);
2096
- }, _r = function(e) {
2096
+ }, yr = function(e) {
2097
2097
  e.translate && (e.removeProperty("translate"), e.removeProperty("scale"), e.removeProperty("rotate"));
2098
- }, ia = function() {
2098
+ }, ra = function() {
2099
2099
  var e = this.props, t = this.target, i = t.style, n = t._gsap, r, s;
2100
2100
  for (r = 0; r < e.length; r += 3)
2101
2101
  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(Bi, "-$1").toLowerCase());
2102
2102
  if (this.tfm) {
2103
2103
  for (s in this.tfm)
2104
2104
  n[s] = this.tfm[s];
2105
- n.svg && (n.renderTransform(), t.setAttribute("data-svg-origin", this.svgo || "")), r = $i(), (!r || !r.isStart) && !i[$] && (_r(i), n.zOrigin && i[ne] && (i[ne] += " " + n.zOrigin + "px", n.zOrigin = 0, n.renderTransform()), n.uncache = 1);
2105
+ n.svg && (n.renderTransform(), t.setAttribute("data-svg-origin", this.svgo || "")), r = $i(), (!r || !r.isStart) && !i[$] && (yr(i), n.zOrigin && i[ne] && (i[ne] += " " + n.zOrigin + "px", n.zOrigin = 0, n.renderTransform()), n.uncache = 1);
2106
2106
  }
2107
- }, yr = function(e, t) {
2107
+ }, xr = function(e, t) {
2108
2108
  var i = {
2109
2109
  target: e,
2110
2110
  props: [],
2111
- revert: ia,
2112
- save: ta
2111
+ revert: ra,
2112
+ save: na
2113
2113
  };
2114
2114
  return e._gsap || re.core.getCache(e), t && e.style && e.nodeType && t.split(",").forEach(function(n) {
2115
2115
  return i.save(n);
2116
2116
  }), i;
2117
- }, xr, xi = function(e, t) {
2118
- var i = Ae.createElementNS ? Ae.createElementNS((t || "http://www.w3.org/1999/xhtml").replace(/^https/, "http"), e) : Ae.createElement(e);
2119
- return i && i.style ? i : Ae.createElement(e);
2117
+ }, br, xi = function(e, t) {
2118
+ var i = Se.createElementNS ? Se.createElementNS((t || "http://www.w3.org/1999/xhtml").replace(/^https/, "http"), e) : Se.createElement(e);
2119
+ return i && i.style ? i : Se.createElement(e);
2120
2120
  }, ge = function a(e, t, i) {
2121
2121
  var n = getComputedStyle(e);
2122
2122
  return n[t] || n.getPropertyValue(t.replace(Bi, "-$1").toLowerCase()) || n.getPropertyValue(t) || !i && a(e, ct(t) || t, 1) || "";
2123
2123
  }, on = "O,Moz,ms,Ms,Webkit".split(","), ct = function(e, t, i) {
2124
- var n = t || Ve, r = n.style, s = 5;
2124
+ var n = t || Ge, r = n.style, s = 5;
2125
2125
  if (e in r && !i)
2126
2126
  return e;
2127
2127
  for (e = e.charAt(0).toUpperCase() + e.substr(1); s-- && !(on[s] + e in r); )
2128
2128
  ;
2129
2129
  return s < 0 ? null : (s === 3 ? "ms" : s >= 0 ? on[s] : "") + e;
2130
2130
  }, bi = function() {
2131
- Gs() && window.document && (rn = window, Ae = rn.document, nt = Ae.documentElement, Ve = xi("div") || {
2131
+ js() && window.document && (rn = window, Se = rn.document, nt = Se.documentElement, Ge = xi("div") || {
2132
2132
  style: {}
2133
- }, xi("div"), $ = ct($), ne = $ + "Origin", Ve.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", xr = !!ct("perspective"), $i = re.core.reverting, Ni = 1);
2133
+ }, xi("div"), $ = ct($), ne = $ + "Origin", Ge.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", br = !!ct("perspective"), $i = re.core.reverting, zi = 1);
2134
2134
  }, ln = function(e) {
2135
2135
  var t = e.ownerSVGElement, i = xi("svg", t && t.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), n = e.cloneNode(!0), r;
2136
2136
  n.style.display = "block", i.appendChild(n), nt.appendChild(i);
@@ -2143,7 +2143,7 @@ var rn, Ae, nt, Ni, Ve, sn, $i, Gs = function() {
2143
2143
  for (var i = t.length; i--; )
2144
2144
  if (e.hasAttribute(t[i]))
2145
2145
  return e.getAttribute(t[i]);
2146
- }, br = function(e) {
2146
+ }, Er = function(e) {
2147
2147
  var t, i;
2148
2148
  try {
2149
2149
  t = e.getBBox();
@@ -2157,48 +2157,48 @@ var rn, Ae, nt, Ni, Ve, sn, $i, Gs = function() {
2157
2157
  height: 0
2158
2158
  } : t;
2159
2159
  }, vr = function(e) {
2160
- return !!(e.getCTM && (!e.parentNode || e.ownerSVGElement) && br(e));
2161
- }, Xe = function(e, t) {
2160
+ return !!(e.getCTM && (!e.parentNode || e.ownerSVGElement) && Er(e));
2161
+ }, Ke = function(e, t) {
2162
2162
  if (t) {
2163
2163
  var i = e.style, n;
2164
- t in Te && t !== ne && (t = $), i.removeProperty ? (n = t.substr(0, 2), (n === "ms" || t.substr(0, 6) === "webkit") && (t = "-" + t), i.removeProperty(n === "--" ? t : t.replace(Bi, "-$1").toLowerCase())) : i.removeAttribute(t);
2164
+ t in Ae && t !== ne && (t = $), i.removeProperty ? (n = t.substr(0, 2), (n === "ms" || t.substr(0, 6) === "webkit") && (t = "-" + t), i.removeProperty(n === "--" ? t : t.replace(Bi, "-$1").toLowerCase())) : i.removeAttribute(t);
2165
2165
  }
2166
2166
  }, De = function(e, t, i, n, r, s) {
2167
- var o = new ie(e._pt, t, i, 0, 1, s ? gr : mr);
2167
+ var o = new ie(e._pt, t, i, 0, 1, s ? _r : gr);
2168
2168
  return e._pt = o, o.b = n, o.e = r, e._props.push(i), o;
2169
2169
  }, cn = {
2170
2170
  deg: 1,
2171
2171
  rad: 1,
2172
2172
  turn: 1
2173
- }, na = {
2173
+ }, sa = {
2174
2174
  grid: 1,
2175
2175
  flex: 1
2176
2176
  }, Le = function a(e, t, i, n) {
2177
- var r = parseFloat(i) || 0, s = (i + "").trim().substr((r + "").length) || "px", o = Ve.style, l = js.test(t), c = e.tagName.toLowerCase() === "svg", h = (c ? "client" : "offset") + (l ? "Width" : "Height"), u = 100, p = n === "px", m = n === "%", f, d, g, _;
2177
+ var r = parseFloat(i) || 0, s = (i + "").trim().substr((r + "").length) || "px", o = Ge.style, l = Ys.test(t), c = e.tagName.toLowerCase() === "svg", h = (c ? "client" : "offset") + (l ? "Width" : "Height"), u = 100, p = n === "px", m = n === "%", f, d, g, _;
2178
2178
  if (n === s || !r || cn[n] || cn[s])
2179
2179
  return r;
2180
- if (s !== "px" && !p && (r = a(e, t, i, "px")), _ = e.getCTM && vr(e), (m || s === "%") && (Te[t] || ~t.indexOf("adius")))
2181
- return f = _ ? e.getBBox()[l ? "width" : "height"] : e[h], G(m ? r / f * u : r / 100 * f);
2182
- if (o[l ? "width" : "height"] = u + (p ? s : n), d = n !== "rem" && ~t.indexOf("adius") || n === "em" && e.appendChild && !c ? e : e.parentNode, _ && (d = (e.ownerSVGElement || {}).parentNode), (!d || d === Ae || !d.appendChild) && (d = Ae.body), g = d._gsap, g && m && g.width && l && g.time === oe.time && !g.uncache)
2183
- return G(r / g.width * u);
2180
+ if (s !== "px" && !p && (r = a(e, t, i, "px")), _ = e.getCTM && vr(e), (m || s === "%") && (Ae[t] || ~t.indexOf("adius")))
2181
+ return f = _ ? e.getBBox()[l ? "width" : "height"] : e[h], V(m ? r / f * u : r / 100 * f);
2182
+ if (o[l ? "width" : "height"] = u + (p ? s : n), d = n !== "rem" && ~t.indexOf("adius") || n === "em" && e.appendChild && !c ? e : e.parentNode, _ && (d = (e.ownerSVGElement || {}).parentNode), (!d || d === Se || !d.appendChild) && (d = Se.body), g = d._gsap, g && m && g.width && l && g.time === oe.time && !g.uncache)
2183
+ return V(r / g.width * u);
2184
2184
  if (m && (t === "height" || t === "width")) {
2185
2185
  var y = e.style[t];
2186
- e.style[t] = u + n, f = e[h], y ? e.style[t] = y : Xe(e, t);
2186
+ e.style[t] = u + n, f = e[h], y ? e.style[t] = y : Ke(e, t);
2187
2187
  } else
2188
- (m || s === "%") && !na[ge(d, "display")] && (o.position = ge(e, "position")), d === e && (o.position = "static"), d.appendChild(Ve), f = Ve[h], d.removeChild(Ve), o.position = "absolute";
2189
- return l && m && (g = je(d), g.time = oe.time, g.width = d[h]), G(p ? f * r / u : f && r ? u / f * r : 0);
2190
- }, Pe = function(e, t, i, n) {
2188
+ (m || s === "%") && !sa[ge(d, "display")] && (o.position = ge(e, "position")), d === e && (o.position = "static"), d.appendChild(Ge), f = Ge[h], d.removeChild(Ge), o.position = "absolute";
2189
+ return l && m && (g = He(d), g.time = oe.time, g.width = d[h]), V(p ? f * r / u : f && r ? u / f * r : 0);
2190
+ }, Ce = function(e, t, i, n) {
2191
2191
  var r;
2192
- return Ni || bi(), t in xe && t !== "transform" && (t = xe[t], ~t.indexOf(",") && (t = t.split(",")[0])), Te[t] && t !== "transform" ? (r = St(e, n), r = t !== "transformOrigin" ? r[t] : r.svg ? r.origin : Ht(ge(e, ne)) + " " + r.zOrigin + "px") : (r = e.style[t], (!r || r === "auto" || n || ~(r + "").indexOf("calc(")) && (r = jt[t] && jt[t](e, t, i) || ge(e, t) || Fn(e, t) || (t === "opacity" ? 1 : 0))), i && !~(r + "").trim().indexOf(" ") ? Le(e, t, r, i) + i : r;
2193
- }, ra = function(e, t, i, n) {
2192
+ return zi || bi(), t in xe && t !== "transform" && (t = xe[t], ~t.indexOf(",") && (t = t.split(",")[0])), Ae[t] && t !== "transform" ? (r = Tt(e, n), r = t !== "transformOrigin" ? r[t] : r.svg ? r.origin : jt(ge(e, ne)) + " " + r.zOrigin + "px") : (r = e.style[t], (!r || r === "auto" || n || ~(r + "").indexOf("calc(")) && (r = Ht[t] && Ht[t](e, t, i) || ge(e, t) || Nn(e, t) || (t === "opacity" ? 1 : 0))), i && !~(r + "").trim().indexOf(" ") ? Le(e, t, r, i) + i : r;
2193
+ }, aa = function(e, t, i, n) {
2194
2194
  if (!i || i === "none") {
2195
2195
  var r = ct(t, e, 1), s = r && ge(e, r, 1);
2196
2196
  s && s !== i ? (t = r, i = s) : t === "borderColor" && (i = ge(e, "borderTopColor"));
2197
2197
  }
2198
- var o = new ie(this._pt, e.style, t, 0, 1, dr), l = 0, c = 0, h, u, p, m, f, d, g, _, y, x, b, v;
2199
- if (o.b = i, o.e = n, i += "", n += "", n.substring(0, 6) === "var(--" && (n = ge(e, n.substring(4, n.indexOf(")")))), n === "auto" && (d = e.style[t], e.style[t] = n, n = ge(e, t) || n, d ? e.style[t] = d : Xe(e, t)), h = [i, n], ir(h), i = h[0], n = h[1], p = i.match(Je) || [], v = n.match(Je) || [], v.length) {
2198
+ var o = new ie(this._pt, e.style, t, 0, 1, pr), l = 0, c = 0, h, u, p, m, f, d, g, _, y, x, E, b;
2199
+ if (o.b = i, o.e = n, i += "", n += "", n.substring(0, 6) === "var(--" && (n = ge(e, n.substring(4, n.indexOf(")")))), n === "auto" && (d = e.style[t], e.style[t] = n, n = ge(e, t) || n, d ? e.style[t] = d : Ke(e, t)), h = [i, n], nr(h), i = h[0], n = h[1], p = i.match(Je) || [], b = n.match(Je) || [], b.length) {
2200
2200
  for (; u = Je.exec(n); )
2201
- g = u[0], y = n.substring(l, u.index), f ? f = (f + 1) % 5 : (y.substr(-5) === "rgba(" || y.substr(-5) === "hsla(") && (f = 1), g !== (d = p[c++] || "") && (m = parseFloat(d) || 0, b = d.substr((m + "").length), g.charAt(1) === "=" && (g = it(m, g) + b), _ = parseFloat(g), x = g.substr((_ + "").length), l = Je.lastIndex - x.length, x || (x = x || he.units[t] || b, l === n.length && (n += x, o.e += x)), b !== x && (m = Le(e, t, d, x) || 0), o._pt = {
2201
+ g = u[0], y = n.substring(l, u.index), f ? f = (f + 1) % 5 : (y.substr(-5) === "rgba(" || y.substr(-5) === "hsla(") && (f = 1), g !== (d = p[c++] || "") && (m = parseFloat(d) || 0, E = d.substr((m + "").length), g.charAt(1) === "=" && (g = it(m, g) + E), _ = parseFloat(g), x = g.substr((_ + "").length), l = Je.lastIndex - x.length, x || (x = x || he.units[t] || E, l === n.length && (n += x, o.e += x)), E !== x && (m = Le(e, t, d, x) || 0), o._pt = {
2202
2202
  _next: o._pt,
2203
2203
  p: y || c === 1 ? y : ",",
2204
2204
  //note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.
@@ -2208,31 +2208,31 @@ var rn, Ae, nt, Ni, Ve, sn, $i, Gs = function() {
2208
2208
  });
2209
2209
  o.c = l < n.length ? n.substring(l, n.length) : "";
2210
2210
  } else
2211
- o.r = t === "display" && n === "none" ? gr : mr;
2212
- return Rn.test(n) && (o.e = 0), this._pt = o, o;
2211
+ o.r = t === "display" && n === "none" ? _r : gr;
2212
+ return On.test(n) && (o.e = 0), this._pt = o, o;
2213
2213
  }, un = {
2214
2214
  top: "0%",
2215
2215
  bottom: "100%",
2216
2216
  left: "0%",
2217
2217
  right: "100%",
2218
2218
  center: "50%"
2219
- }, sa = function(e) {
2219
+ }, oa = function(e) {
2220
2220
  var t = e.split(" "), i = t[0], n = t[1] || "50%";
2221
2221
  return (i === "top" || i === "bottom" || n === "left" || n === "right") && (e = i, i = n, n = e), t[0] = un[i] || i, t[1] = un[n] || n, t.join(" ");
2222
- }, aa = function(e, t) {
2222
+ }, la = function(e, t) {
2223
2223
  if (t.tween && t.tween._time === t.tween._dur) {
2224
2224
  var i = t.t, n = i.style, r = t.u, s = i._gsap, o, l, c;
2225
2225
  if (r === "all" || r === !0)
2226
2226
  n.cssText = "", l = 1;
2227
2227
  else
2228
2228
  for (r = r.split(","), c = r.length; --c > -1; )
2229
- o = r[c], Te[o] && (l = 1, o = o === "transformOrigin" ? ne : $), Xe(i, o);
2230
- l && (Xe(i, $), s && (s.svg && i.removeAttribute("transform"), n.scale = n.rotate = n.translate = "none", St(i, 1), s.uncache = 1, _r(n)));
2229
+ o = r[c], Ae[o] && (l = 1, o = o === "transformOrigin" ? ne : $), Ke(i, o);
2230
+ l && (Ke(i, $), s && (s.svg && i.removeAttribute("transform"), n.scale = n.rotate = n.translate = "none", Tt(i, 1), s.uncache = 1, yr(n)));
2231
2231
  }
2232
- }, jt = {
2232
+ }, Ht = {
2233
2233
  clearProps: function(e, t, i, n, r) {
2234
2234
  if (r.data !== "isFromStart") {
2235
- var s = e._pt = new ie(e._pt, t, i, 0, 0, aa);
2235
+ var s = e._pt = new ie(e._pt, t, i, 0, 0, la);
2236
2236
  return s.u = n, s.pr = -10, s.tween = r, e._props.push(i), 1;
2237
2237
  }
2238
2238
  }
@@ -2299,122 +2299,122 @@ var rn, Ae, nt, Ni, Ve, sn, $i, Gs = function() {
2299
2299
  return 1;
2300
2300
  }
2301
2301
  */
2302
- }, Tt = [1, 0, 0, 1, 0, 0], Er = {}, wr = function(e) {
2302
+ }, At = [1, 0, 0, 1, 0, 0], wr = {}, Cr = function(e) {
2303
2303
  return e === "matrix(1, 0, 0, 1, 0, 0)" || e === "none" || !e;
2304
2304
  }, dn = function(e) {
2305
2305
  var t = ge(e, $);
2306
- return wr(t) ? Tt : t.substr(7).match(Mn).map(G);
2307
- }, Vi = function(e, t) {
2308
- var i = e._gsap || je(e), n = e.style, r = dn(e), s, o, l, c;
2309
- return i.svg && e.getAttribute("transform") ? (l = e.transform.baseVal.consolidate().matrix, r = [l.a, l.b, l.c, l.d, l.e, l.f], r.join(",") === "1,0,0,1,0,0" ? Tt : r) : (r === Tt && !e.offsetParent && e !== nt && !i.svg && (l = n.display, n.display = "block", s = e.parentNode, (!s || !e.offsetParent && !e.getBoundingClientRect().width) && (c = 1, o = e.nextElementSibling, nt.appendChild(e)), r = dn(e), l ? n.display = l : Xe(e, "display"), c && (o ? s.insertBefore(e, o) : s ? s.appendChild(e) : nt.removeChild(e))), t && r.length > 6 ? [r[0], r[1], r[4], r[5], r[12], r[13]] : r);
2310
- }, vi = function(e, t, i, n, r, s) {
2311
- var o = e._gsap, l = r || Vi(e, !0), c = o.xOrigin || 0, h = o.yOrigin || 0, u = o.xOffset || 0, p = o.yOffset || 0, m = l[0], f = l[1], d = l[2], g = l[3], _ = l[4], y = l[5], x = t.split(" "), b = parseFloat(x[0]) || 0, v = parseFloat(x[1]) || 0, P, w, C, E;
2312
- i ? l !== Tt && (w = m * g - f * d) && (C = b * (g / w) + v * (-d / w) + (d * y - g * _) / w, E = b * (-f / w) + v * (m / w) - (m * y - f * _) / w, b = C, v = E) : (P = br(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 - c, y = v - h, o.xOffset = u + (_ * m + y * d) - _, o.yOffset = p + (_ * f + y * g) - y) : o.xOffset = o.yOffset = 0, o.xOrigin = b, o.yOrigin = v, o.smooth = !!n, o.origin = t, o.originIsAbsolute = !!i, e.style[ne] = "0px 0px", s && (De(s, o, "xOrigin", c, b), De(s, o, "yOrigin", h, v), De(s, o, "xOffset", u, o.xOffset), De(s, o, "yOffset", p, o.yOffset)), e.setAttribute("data-svg-origin", b + " " + v);
2313
- }, St = function(e, t) {
2314
- var i = e._gsap || new ar(e);
2306
+ return Cr(t) ? At : t.substr(7).match(Rn).map(V);
2307
+ }, Gi = function(e, t) {
2308
+ var i = e._gsap || He(e), n = e.style, r = dn(e), s, o, l, c;
2309
+ return i.svg && e.getAttribute("transform") ? (l = e.transform.baseVal.consolidate().matrix, r = [l.a, l.b, l.c, l.d, l.e, l.f], r.join(",") === "1,0,0,1,0,0" ? At : r) : (r === At && !e.offsetParent && e !== nt && !i.svg && (l = n.display, n.display = "block", s = e.parentNode, (!s || !e.offsetParent && !e.getBoundingClientRect().width) && (c = 1, o = e.nextElementSibling, nt.appendChild(e)), r = dn(e), l ? n.display = l : Ke(e, "display"), c && (o ? s.insertBefore(e, o) : s ? s.appendChild(e) : nt.removeChild(e))), t && r.length > 6 ? [r[0], r[1], r[4], r[5], r[12], r[13]] : r);
2310
+ }, Ei = function(e, t, i, n, r, s) {
2311
+ var o = e._gsap, l = r || Gi(e, !0), c = o.xOrigin || 0, h = o.yOrigin || 0, u = o.xOffset || 0, p = o.yOffset || 0, m = l[0], f = l[1], d = l[2], g = l[3], _ = l[4], y = l[5], x = t.split(" "), E = parseFloat(x[0]) || 0, b = parseFloat(x[1]) || 0, C, v, P, w;
2312
+ i ? l !== At && (v = m * g - f * d) && (P = E * (g / v) + b * (-d / v) + (d * y - g * _) / v, w = E * (-f / v) + b * (m / v) - (m * y - f * _) / v, E = P, b = w) : (C = Er(e), E = C.x + (~x[0].indexOf("%") ? E / 100 * C.width : E), b = C.y + (~(x[1] || x[0]).indexOf("%") ? b / 100 * C.height : b)), n || n !== !1 && o.smooth ? (_ = E - c, y = b - h, o.xOffset = u + (_ * m + y * d) - _, o.yOffset = p + (_ * f + y * g) - y) : o.xOffset = o.yOffset = 0, o.xOrigin = E, o.yOrigin = b, o.smooth = !!n, o.origin = t, o.originIsAbsolute = !!i, e.style[ne] = "0px 0px", s && (De(s, o, "xOrigin", c, E), De(s, o, "yOrigin", h, b), De(s, o, "xOffset", u, o.xOffset), De(s, o, "yOffset", p, o.yOffset)), e.setAttribute("data-svg-origin", E + " " + b);
2313
+ }, Tt = function(e, t) {
2314
+ var i = e._gsap || new or(e);
2315
2315
  if ("x" in i && !t && !i.uncache)
2316
2316
  return i;
2317
- var n = e.style, r = i.scaleX < 0, s = "px", o = "deg", l = getComputedStyle(e), c = ge(e, ne) || "0", h, u, p, m, f, d, g, _, y, x, b, v, P, w, C, E, S, D, T, R, O, B, F, U, Q, ut, dt, pt, Ue, Hi, Ee, Fe;
2318
- return h = u = p = d = g = _ = y = x = b = 0, m = f = 1, i.svg = !!(e.getCTM && vr(e)), l.translate && ((l.translate !== "none" || l.scale !== "none" || l.rotate !== "none") && (n[$] = (l.translate !== "none" ? "translate3d(" + (l.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (l.rotate !== "none" ? "rotate(" + l.rotate + ") " : "") + (l.scale !== "none" ? "scale(" + l.scale.split(" ").join(",") + ") " : "") + (l[$] !== "none" ? l[$] : "")), n.scale = n.rotate = n.translate = "none"), w = Vi(e, i.svg), i.svg && (i.uncache ? (Q = e.getBBox(), c = i.xOrigin - Q.x + "px " + (i.yOrigin - Q.y) + "px", U = "") : U = !t && e.getAttribute("data-svg-origin"), vi(e, U || c, !!U || i.originIsAbsolute, i.smooth !== !1, w)), v = i.xOrigin || 0, P = i.yOrigin || 0, w !== Tt && (D = w[0], T = w[1], R = w[2], O = w[3], h = B = w[4], u = F = w[5], w.length === 6 ? (m = Math.sqrt(D * D + T * T), f = Math.sqrt(O * O + R * R), d = D || T ? Ke(T, D) * $e : 0, y = R || O ? Ke(R, O) * $e + d : 0, y && (f *= Math.abs(Math.cos(y * rt))), i.svg && (h -= v - (v * D + P * R), u -= P - (v * T + P * O))) : (Fe = w[6], Hi = w[7], dt = w[8], pt = w[9], Ue = w[10], Ee = w[11], h = w[12], u = w[13], p = w[14], C = Ke(Fe, Ue), g = C * $e, C && (E = Math.cos(-C), S = Math.sin(-C), U = B * E + dt * S, Q = F * E + pt * S, ut = Fe * E + Ue * S, dt = B * -S + dt * E, pt = F * -S + pt * E, Ue = Fe * -S + Ue * E, Ee = Hi * -S + Ee * E, B = U, F = Q, Fe = ut), C = Ke(-R, Ue), _ = C * $e, C && (E = Math.cos(-C), S = Math.sin(-C), U = D * E - dt * S, Q = T * E - pt * S, ut = R * E - Ue * S, Ee = O * S + Ee * E, D = U, T = Q, R = ut), C = Ke(T, D), d = C * $e, C && (E = Math.cos(C), S = Math.sin(C), U = D * E + T * S, Q = B * E + F * S, T = T * E - D * S, F = F * E - B * S, D = U, B = Q), g && Math.abs(g) + Math.abs(d) > 359.9 && (g = d = 0, _ = 180 - _), m = G(Math.sqrt(D * D + T * T + R * R)), f = G(Math.sqrt(F * F + Fe * Fe)), C = Ke(B, F), y = Math.abs(C) > 2e-4 ? C * $e : 0, b = Ee ? 1 / (Ee < 0 ? -Ee : Ee) : 0), i.svg && (U = e.getAttribute("transform"), i.forceCSS = e.setAttribute("transform", "") || !wr(ge(e, $)), U && e.setAttribute("transform", U))), Math.abs(y) > 90 && Math.abs(y) < 270 && (r ? (m *= -1, y += d <= 0 ? 180 : -180, d += d <= 0 ? 180 : -180) : (f *= -1, y += y <= 0 ? 180 : -180)), t = t || i.uncache, i.x = h - ((i.xPercent = h && (!t && i.xPercent || (Math.round(e.offsetWidth / 2) === Math.round(-h) ? -50 : 0))) ? e.offsetWidth * i.xPercent / 100 : 0) + s, i.y = u - ((i.yPercent = u && (!t && i.yPercent || (Math.round(e.offsetHeight / 2) === Math.round(-u) ? -50 : 0))) ? e.offsetHeight * i.yPercent / 100 : 0) + s, i.z = p + s, i.scaleX = G(m), i.scaleY = G(f), i.rotation = G(d) + o, i.rotationX = G(g) + o, i.rotationY = G(_) + o, i.skewX = y + o, i.skewY = x + o, i.transformPerspective = b + s, (i.zOrigin = parseFloat(c.split(" ")[2]) || !t && i.zOrigin || 0) && (n[ne] = Ht(c)), i.xOffset = i.yOffset = 0, i.force3D = he.force3D, i.renderTransform = i.svg ? la : xr ? Pr : oa, i.uncache = 0, i;
2319
- }, Ht = function(e) {
2317
+ var n = e.style, r = i.scaleX < 0, s = "px", o = "deg", l = getComputedStyle(e), c = ge(e, ne) || "0", h, u, p, m, f, d, g, _, y, x, E, b, C, v, P, w, T, M, A, R, O, B, F, U, Q, ut, dt, pt, Ue, ji, ve, Fe;
2318
+ return h = u = p = d = g = _ = y = x = E = 0, m = f = 1, i.svg = !!(e.getCTM && vr(e)), l.translate && ((l.translate !== "none" || l.scale !== "none" || l.rotate !== "none") && (n[$] = (l.translate !== "none" ? "translate3d(" + (l.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (l.rotate !== "none" ? "rotate(" + l.rotate + ") " : "") + (l.scale !== "none" ? "scale(" + l.scale.split(" ").join(",") + ") " : "") + (l[$] !== "none" ? l[$] : "")), n.scale = n.rotate = n.translate = "none"), v = Gi(e, i.svg), i.svg && (i.uncache ? (Q = e.getBBox(), c = i.xOrigin - Q.x + "px " + (i.yOrigin - Q.y) + "px", U = "") : U = !t && e.getAttribute("data-svg-origin"), Ei(e, U || c, !!U || i.originIsAbsolute, i.smooth !== !1, v)), b = i.xOrigin || 0, C = i.yOrigin || 0, v !== At && (M = v[0], A = v[1], R = v[2], O = v[3], h = B = v[4], u = F = v[5], v.length === 6 ? (m = Math.sqrt(M * M + A * A), f = Math.sqrt(O * O + R * R), d = M || A ? We(A, M) * $e : 0, y = R || O ? We(R, O) * $e + d : 0, y && (f *= Math.abs(Math.cos(y * rt))), i.svg && (h -= b - (b * M + C * R), u -= C - (b * A + C * O))) : (Fe = v[6], ji = v[7], dt = v[8], pt = v[9], Ue = v[10], ve = v[11], h = v[12], u = v[13], p = v[14], P = We(Fe, Ue), g = P * $e, P && (w = Math.cos(-P), T = Math.sin(-P), U = B * w + dt * T, Q = F * w + pt * T, ut = Fe * w + Ue * T, dt = B * -T + dt * w, pt = F * -T + pt * w, Ue = Fe * -T + Ue * w, ve = ji * -T + ve * w, B = U, F = Q, Fe = ut), P = We(-R, Ue), _ = P * $e, P && (w = Math.cos(-P), T = Math.sin(-P), U = M * w - dt * T, Q = A * w - pt * T, ut = R * w - Ue * T, ve = O * T + ve * w, M = U, A = Q, R = ut), P = We(A, M), d = P * $e, P && (w = Math.cos(P), T = Math.sin(P), U = M * w + A * T, Q = B * w + F * T, A = A * w - M * T, F = F * w - B * T, M = U, B = Q), g && Math.abs(g) + Math.abs(d) > 359.9 && (g = d = 0, _ = 180 - _), m = V(Math.sqrt(M * M + A * A + R * R)), f = V(Math.sqrt(F * F + Fe * Fe)), P = We(B, F), y = Math.abs(P) > 2e-4 ? P * $e : 0, E = ve ? 1 / (ve < 0 ? -ve : ve) : 0), i.svg && (U = e.getAttribute("transform"), i.forceCSS = e.setAttribute("transform", "") || !Cr(ge(e, $)), U && e.setAttribute("transform", U))), Math.abs(y) > 90 && Math.abs(y) < 270 && (r ? (m *= -1, y += d <= 0 ? 180 : -180, d += d <= 0 ? 180 : -180) : (f *= -1, y += y <= 0 ? 180 : -180)), t = t || i.uncache, i.x = h - ((i.xPercent = h && (!t && i.xPercent || (Math.round(e.offsetWidth / 2) === Math.round(-h) ? -50 : 0))) ? e.offsetWidth * i.xPercent / 100 : 0) + s, i.y = u - ((i.yPercent = u && (!t && i.yPercent || (Math.round(e.offsetHeight / 2) === Math.round(-u) ? -50 : 0))) ? e.offsetHeight * i.yPercent / 100 : 0) + s, i.z = p + s, i.scaleX = V(m), i.scaleY = V(f), i.rotation = V(d) + o, i.rotationX = V(g) + o, i.rotationY = V(_) + o, i.skewX = y + o, i.skewY = x + o, i.transformPerspective = E + s, (i.zOrigin = parseFloat(c.split(" ")[2]) || !t && i.zOrigin || 0) && (n[ne] = jt(c)), i.xOffset = i.yOffset = 0, i.force3D = he.force3D, i.renderTransform = i.svg ? ca : br ? Pr : ha, i.uncache = 0, i;
2319
+ }, jt = function(e) {
2320
2320
  return (e = e.split(" "))[0] + " " + e[1];
2321
2321
  }, ni = function(e, t, i) {
2322
- var n = W(t);
2323
- return G(parseFloat(t) + parseFloat(Le(e, "x", i + "px", n))) + n;
2324
- }, oa = function(e, t) {
2322
+ var n = X(t);
2323
+ return V(parseFloat(t) + parseFloat(Le(e, "x", i + "px", n))) + n;
2324
+ }, ha = function(e, t) {
2325
2325
  t.z = "0px", t.rotationY = t.rotationX = "0deg", t.force3D = 0, Pr(e, t);
2326
- }, ze = "0deg", ft = "0px", Ne = ") ", Pr = function(e, t) {
2327
- var i = t || this, n = i.xPercent, r = i.yPercent, s = i.x, o = i.y, l = i.z, c = i.rotation, h = i.rotationY, u = i.rotationX, p = i.skewX, m = i.skewY, f = i.scaleX, d = i.scaleY, g = i.transformPerspective, _ = i.force3D, y = i.target, x = i.zOrigin, b = "", v = _ === "auto" && e && e !== 1 || _ === !0;
2328
- if (x && (u !== ze || h !== ze)) {
2329
- var P = parseFloat(h) * rt, w = Math.sin(P), C = Math.cos(P), E;
2330
- P = parseFloat(u) * rt, E = Math.cos(P), s = ni(y, s, w * E * -x), o = ni(y, o, -Math.sin(P) * -x), l = ni(y, l, C * E * -x + x);
2331
- }
2332
- g !== ft && (b += "perspective(" + g + Ne), (n || r) && (b += "translate(" + n + "%, " + r + "%) "), (v || s !== ft || o !== ft || l !== ft) && (b += l !== ft || v ? "translate3d(" + s + ", " + o + ", " + l + ") " : "translate(" + s + ", " + o + Ne), c !== ze && (b += "rotate(" + c + Ne), h !== ze && (b += "rotateY(" + h + Ne), u !== ze && (b += "rotateX(" + u + Ne), (p !== ze || m !== ze) && (b += "skew(" + p + ", " + m + Ne), (f !== 1 || d !== 1) && (b += "scale(" + f + ", " + d + Ne), y.style[$] = b || "translate(0, 0)";
2333
- }, la = function(e, t) {
2334
- var i = t || this, n = i.xPercent, r = i.yPercent, s = i.x, o = i.y, l = i.rotation, c = i.skewX, h = i.skewY, u = i.scaleX, p = i.scaleY, m = i.target, f = i.xOrigin, d = i.yOrigin, g = i.xOffset, _ = i.yOffset, y = i.forceCSS, x = parseFloat(s), b = parseFloat(o), v, P, w, C, E;
2335
- l = parseFloat(l), c = parseFloat(c), h = parseFloat(h), h && (h = parseFloat(h), c += h, l += h), l || c ? (l *= rt, c *= rt, v = Math.cos(l) * u, P = Math.sin(l) * u, w = Math.sin(l - c) * -p, C = Math.cos(l - c) * p, c && (h *= rt, E = Math.tan(c - h), E = Math.sqrt(1 + E * E), w *= E, C *= E, h && (E = Math.tan(h), E = Math.sqrt(1 + E * E), v *= E, P *= E)), v = G(v), P = G(P), w = G(w), C = G(C)) : (v = u, C = p, P = w = 0), (x && !~(s + "").indexOf("px") || b && !~(o + "").indexOf("px")) && (x = Le(m, "x", s, "px"), b = Le(m, "y", o, "px")), (f || d || g || _) && (x = G(x + f - (f * v + d * w) + g), b = G(b + d - (f * P + d * C) + _)), (n || r) && (E = m.getBBox(), x = G(x + n / 100 * E.width), b = G(b + r / 100 * E.height)), E = "matrix(" + v + "," + P + "," + w + "," + C + "," + x + "," + b + ")", m.setAttribute("transform", E), y && (m.style[$] = E);
2336
- }, ha = function(e, t, i, n, r) {
2326
+ }, Ne = "0deg", ft = "0px", ze = ") ", Pr = function(e, t) {
2327
+ var i = t || this, n = i.xPercent, r = i.yPercent, s = i.x, o = i.y, l = i.z, c = i.rotation, h = i.rotationY, u = i.rotationX, p = i.skewX, m = i.skewY, f = i.scaleX, d = i.scaleY, g = i.transformPerspective, _ = i.force3D, y = i.target, x = i.zOrigin, E = "", b = _ === "auto" && e && e !== 1 || _ === !0;
2328
+ if (x && (u !== Ne || h !== Ne)) {
2329
+ var C = parseFloat(h) * rt, v = Math.sin(C), P = Math.cos(C), w;
2330
+ C = parseFloat(u) * rt, w = Math.cos(C), s = ni(y, s, v * w * -x), o = ni(y, o, -Math.sin(C) * -x), l = ni(y, l, P * w * -x + x);
2331
+ }
2332
+ g !== ft && (E += "perspective(" + g + ze), (n || r) && (E += "translate(" + n + "%, " + r + "%) "), (b || s !== ft || o !== ft || l !== ft) && (E += l !== ft || b ? "translate3d(" + s + ", " + o + ", " + l + ") " : "translate(" + s + ", " + o + ze), c !== Ne && (E += "rotate(" + c + ze), h !== Ne && (E += "rotateY(" + h + ze), u !== Ne && (E += "rotateX(" + u + ze), (p !== Ne || m !== Ne) && (E += "skew(" + p + ", " + m + ze), (f !== 1 || d !== 1) && (E += "scale(" + f + ", " + d + ze), y.style[$] = E || "translate(0, 0)";
2333
+ }, ca = function(e, t) {
2334
+ var i = t || this, n = i.xPercent, r = i.yPercent, s = i.x, o = i.y, l = i.rotation, c = i.skewX, h = i.skewY, u = i.scaleX, p = i.scaleY, m = i.target, f = i.xOrigin, d = i.yOrigin, g = i.xOffset, _ = i.yOffset, y = i.forceCSS, x = parseFloat(s), E = parseFloat(o), b, C, v, P, w;
2335
+ l = parseFloat(l), c = parseFloat(c), h = parseFloat(h), h && (h = parseFloat(h), c += h, l += h), l || c ? (l *= rt, c *= rt, b = Math.cos(l) * u, C = Math.sin(l) * u, v = Math.sin(l - c) * -p, P = Math.cos(l - c) * p, c && (h *= rt, w = Math.tan(c - h), w = Math.sqrt(1 + w * w), v *= w, P *= w, h && (w = Math.tan(h), w = Math.sqrt(1 + w * w), b *= w, C *= w)), b = V(b), C = V(C), v = V(v), P = V(P)) : (b = u, P = p, C = v = 0), (x && !~(s + "").indexOf("px") || E && !~(o + "").indexOf("px")) && (x = Le(m, "x", s, "px"), E = Le(m, "y", o, "px")), (f || d || g || _) && (x = V(x + f - (f * b + d * v) + g), E = V(E + d - (f * C + d * P) + _)), (n || r) && (w = m.getBBox(), x = V(x + n / 100 * w.width), E = V(E + r / 100 * w.height)), w = "matrix(" + b + "," + C + "," + v + "," + P + "," + x + "," + E + ")", m.setAttribute("transform", w), y && (m.style[$] = w);
2336
+ }, ua = function(e, t, i, n, r) {
2337
2337
  var s = 360, o = Z(r), l = parseFloat(r) * (o && ~r.indexOf("rad") ? $e : 1), c = l - n, h = n + c + "deg", u, p;
2338
- return o && (u = r.split("_")[1], u === "short" && (c %= s, c !== c % (s / 2) && (c += c < 0 ? s : -s)), u === "cw" && c < 0 ? c = (c + s * an) % s - ~~(c / s) * s : u === "ccw" && c > 0 && (c = (c - s * an) % s - ~~(c / s) * s)), e._pt = p = new ie(e._pt, t, i, n, c, Ys), p.e = h, p.u = "deg", e._props.push(i), p;
2338
+ return o && (u = r.split("_")[1], u === "short" && (c %= s, c !== c % (s / 2) && (c += c < 0 ? s : -s)), u === "cw" && c < 0 ? c = (c + s * an) % s - ~~(c / s) * s : u === "ccw" && c > 0 && (c = (c - s * an) % s - ~~(c / s) * s)), e._pt = p = new ie(e._pt, t, i, n, c, Ks), p.e = h, p.u = "deg", e._props.push(i), p;
2339
2339
  }, pn = function(e, t) {
2340
2340
  for (var i in t)
2341
2341
  e[i] = t[i];
2342
2342
  return e;
2343
- }, ca = function(e, t, i) {
2343
+ }, da = function(e, t, i) {
2344
2344
  var n = pn({}, i._gsap), r = "perspective,force3D,transformOrigin,svgOrigin", s = i.style, o, l, c, h, u, p, m, f;
2345
- n.svg ? (c = i.getAttribute("transform"), i.setAttribute("transform", ""), s[$] = t, o = St(i, 1), Xe(i, $), i.setAttribute("transform", c)) : (c = getComputedStyle(i)[$], s[$] = t, o = St(i, 1), s[$] = c);
2346
- for (l in Te)
2347
- c = n[l], h = o[l], c !== h && r.indexOf(l) < 0 && (m = W(c), f = W(h), u = m !== f ? Le(i, l, c, f) : parseFloat(c), p = parseFloat(h), e._pt = new ie(e._pt, o, l, u, p - u, yi), e._pt.u = f || 0, e._props.push(l));
2345
+ n.svg ? (c = i.getAttribute("transform"), i.setAttribute("transform", ""), s[$] = t, o = Tt(i, 1), Ke(i, $), i.setAttribute("transform", c)) : (c = getComputedStyle(i)[$], s[$] = t, o = Tt(i, 1), s[$] = c);
2346
+ for (l in Ae)
2347
+ c = n[l], h = o[l], c !== h && r.indexOf(l) < 0 && (m = X(c), f = X(h), u = m !== f ? Le(i, l, c, f) : parseFloat(c), p = parseFloat(h), e._pt = new ie(e._pt, o, l, u, p - u, yi), e._pt.u = f || 0, e._props.push(l));
2348
2348
  pn(o, n);
2349
2349
  };
2350
2350
  te("padding,margin,Width,Radius", function(a, e) {
2351
2351
  var t = "Top", i = "Right", n = "Bottom", r = "Left", s = (e < 3 ? [t, i, n, r] : [t + r, t + i, n + i, n + r]).map(function(o) {
2352
2352
  return e < 2 ? a + o : "border" + o + a;
2353
2353
  });
2354
- jt[e > 1 ? "border" + a : a] = function(o, l, c, h, u) {
2354
+ Ht[e > 1 ? "border" + a : a] = function(o, l, c, h, u) {
2355
2355
  var p, m;
2356
2356
  if (arguments.length < 4)
2357
2357
  return p = s.map(function(f) {
2358
- return Pe(o, f, c);
2358
+ return Ce(o, f, c);
2359
2359
  }), m = p.join(" "), m.split(p[0]).length === 5 ? p[0] : m;
2360
2360
  p = (h + "").split(" "), m = {}, s.forEach(function(f, d) {
2361
2361
  return m[f] = p[d] = p[d] || p[(d - 1) / 2 | 0];
2362
2362
  }), o.init(l, m, u);
2363
2363
  };
2364
2364
  });
2365
- var Cr = {
2365
+ var Ar = {
2366
2366
  name: "css",
2367
2367
  register: bi,
2368
2368
  targetTest: function(e) {
2369
2369
  return e.style && e.nodeType;
2370
2370
  },
2371
2371
  init: function(e, t, i, n, r) {
2372
- var s = this._props, o = e.style, l = i.vars.startAt, c, h, u, p, m, f, d, g, _, y, x, b, v, P, w, C;
2373
- Ni || bi(), this.styles = this.styles || yr(e), C = this.styles.props, this.tween = i;
2372
+ var s = this._props, o = e.style, l = i.vars.startAt, c, h, u, p, m, f, d, g, _, y, x, E, b, C, v, P;
2373
+ zi || bi(), this.styles = this.styles || xr(e), P = this.styles.props, this.tween = i;
2374
2374
  for (d in t)
2375
- if (d !== "autoRound" && (h = t[d], !(ae[d] && or(d, t, i, n, e, r)))) {
2376
- if (m = typeof h, f = jt[d], m === "function" && (h = h.call(i, n, e, r), m = typeof h), m === "string" && ~h.indexOf("random(") && (h = wt(h)), f)
2377
- f(this, e, d, h, i) && (w = 1);
2375
+ if (d !== "autoRound" && (h = t[d], !(ae[d] && lr(d, t, i, n, e, r)))) {
2376
+ if (m = typeof h, f = Ht[d], m === "function" && (h = h.call(i, n, e, r), m = typeof h), m === "string" && ~h.indexOf("random(") && (h = wt(h)), f)
2377
+ f(this, e, d, h, i) && (v = 1);
2378
2378
  else if (d.substr(0, 2) === "--")
2379
- c = (getComputedStyle(e).getPropertyValue(d) + "").trim(), h += "", Oe.lastIndex = 0, Oe.test(c) || (g = W(c), _ = W(h)), _ ? g !== _ && (c = Le(e, d, c, _) + _) : g && (h += g), this.add(o, "setProperty", c, h, n, r, 0, 0, d), s.push(d), C.push(d, 0, o[d]);
2379
+ c = (getComputedStyle(e).getPropertyValue(d) + "").trim(), h += "", Oe.lastIndex = 0, Oe.test(c) || (g = X(c), _ = X(h)), _ ? g !== _ && (c = Le(e, d, c, _) + _) : g && (h += g), this.add(o, "setProperty", c, h, n, r, 0, 0, d), s.push(d), P.push(d, 0, o[d]);
2380
2380
  else if (m !== "undefined") {
2381
- if (l && d in l ? (c = typeof l[d] == "function" ? l[d].call(i, n, e, r) : l[d], Z(c) && ~c.indexOf("random(") && (c = wt(c)), W(c + "") || c === "auto" || (c += he.units[d] || W(Pe(e, d)) || ""), (c + "").charAt(1) === "=" && (c = Pe(e, d))) : c = Pe(e, d), p = parseFloat(c), y = m === "string" && h.charAt(1) === "=" && h.substr(0, 2), y && (h = h.substr(2)), u = parseFloat(h), d in xe && (d === "autoAlpha" && (p === 1 && Pe(e, "visibility") === "hidden" && u && (p = 0), C.push("visibility", 0, o.visibility), De(this, o, "visibility", p ? "inherit" : "hidden", u ? "inherit" : "hidden", !u)), d !== "scale" && d !== "transform" && (d = xe[d], ~d.indexOf(",") && (d = d.split(",")[0]))), x = d in Te, x) {
2382
- if (this.styles.save(d), m === "string" && h.substring(0, 6) === "var(--" && (h = ge(e, h.substring(4, h.indexOf(")"))), u = parseFloat(h)), b || (v = e._gsap, v.renderTransform && !t.parseTransform || St(e, t.parseTransform), P = t.smoothOrigin !== !1 && v.smooth, b = this._pt = new ie(this._pt, o, $, 0, 1, v.renderTransform, v, 0, -1), b.dep = 1), d === "scale")
2383
- this._pt = new ie(this._pt, v, "scaleY", v.scaleY, (y ? it(v.scaleY, y + u) : u) - v.scaleY || 0, yi), this._pt.u = 0, s.push("scaleY", d), d += "X";
2381
+ if (l && d in l ? (c = typeof l[d] == "function" ? l[d].call(i, n, e, r) : l[d], Z(c) && ~c.indexOf("random(") && (c = wt(c)), X(c + "") || c === "auto" || (c += he.units[d] || X(Ce(e, d)) || ""), (c + "").charAt(1) === "=" && (c = Ce(e, d))) : c = Ce(e, d), p = parseFloat(c), y = m === "string" && h.charAt(1) === "=" && h.substr(0, 2), y && (h = h.substr(2)), u = parseFloat(h), d in xe && (d === "autoAlpha" && (p === 1 && Ce(e, "visibility") === "hidden" && u && (p = 0), P.push("visibility", 0, o.visibility), De(this, o, "visibility", p ? "inherit" : "hidden", u ? "inherit" : "hidden", !u)), d !== "scale" && d !== "transform" && (d = xe[d], ~d.indexOf(",") && (d = d.split(",")[0]))), x = d in Ae, x) {
2382
+ if (this.styles.save(d), m === "string" && h.substring(0, 6) === "var(--" && (h = ge(e, h.substring(4, h.indexOf(")"))), u = parseFloat(h)), E || (b = e._gsap, b.renderTransform && !t.parseTransform || Tt(e, t.parseTransform), C = t.smoothOrigin !== !1 && b.smooth, E = this._pt = new ie(this._pt, o, $, 0, 1, b.renderTransform, b, 0, -1), E.dep = 1), d === "scale")
2383
+ this._pt = new ie(this._pt, b, "scaleY", b.scaleY, (y ? it(b.scaleY, y + u) : u) - b.scaleY || 0, yi), this._pt.u = 0, s.push("scaleY", d), d += "X";
2384
2384
  else if (d === "transformOrigin") {
2385
- C.push(ne, 0, o[ne]), h = sa(h), v.svg ? vi(e, h, 0, P, 0, this) : (_ = parseFloat(h.split(" ")[2]) || 0, _ !== v.zOrigin && De(this, v, "zOrigin", v.zOrigin, _), De(this, o, d, Ht(c), Ht(h)));
2385
+ P.push(ne, 0, o[ne]), h = oa(h), b.svg ? Ei(e, h, 0, C, 0, this) : (_ = parseFloat(h.split(" ")[2]) || 0, _ !== b.zOrigin && De(this, b, "zOrigin", b.zOrigin, _), De(this, o, d, jt(c), jt(h)));
2386
2386
  continue;
2387
2387
  } else if (d === "svgOrigin") {
2388
- vi(e, h, 1, P, 0, this);
2388
+ Ei(e, h, 1, C, 0, this);
2389
2389
  continue;
2390
- } else if (d in Er) {
2391
- ha(this, v, d, p, y ? it(p, y + h) : h);
2390
+ } else if (d in wr) {
2391
+ ua(this, b, d, p, y ? it(p, y + h) : h);
2392
2392
  continue;
2393
2393
  } else if (d === "smoothOrigin") {
2394
- De(this, v, "smooth", v.smooth, h);
2394
+ De(this, b, "smooth", b.smooth, h);
2395
2395
  continue;
2396
2396
  } else if (d === "force3D") {
2397
- v[d] = h;
2397
+ b[d] = h;
2398
2398
  continue;
2399
2399
  } else if (d === "transform") {
2400
- ca(this, h, e);
2400
+ da(this, h, e);
2401
2401
  continue;
2402
2402
  }
2403
2403
  } else d in o || (d = ct(d) || d);
2404
- if (x || (u || u === 0) && (p || p === 0) && !Hs.test(h) && d in o)
2405
- g = (c + "").substr((p + "").length), u || (u = 0), _ = W(h) || (d in he.units ? he.units[d] : g), g !== _ && (p = Le(e, d, c, _)), this._pt = new ie(this._pt, x ? v : o, d, p, (y ? it(p, y + u) : u) - p, !x && (_ === "px" || d === "zIndex") && t.autoRound !== !1 ? Xs : yi), this._pt.u = _ || 0, g !== _ && _ !== "%" && (this._pt.b = c, this._pt.r = Zs);
2404
+ if (x || (u || u === 0) && (p || p === 0) && !Zs.test(h) && d in o)
2405
+ g = (c + "").substr((p + "").length), u || (u = 0), _ = X(h) || (d in he.units ? he.units[d] : g), g !== _ && (p = Le(e, d, c, _)), this._pt = new ie(this._pt, x ? b : o, d, p, (y ? it(p, y + u) : u) - p, !x && (_ === "px" || d === "zIndex") && t.autoRound !== !1 ? Ws : yi), this._pt.u = _ || 0, g !== _ && _ !== "%" && (this._pt.b = c, this._pt.r = Xs);
2406
2406
  else if (d in o)
2407
- ra.call(this, e, d, c, y ? y + h : h);
2407
+ aa.call(this, e, d, c, y ? y + h : h);
2408
2408
  else if (d in e)
2409
2409
  this.add(e, d, c || e[d], y ? y + h : h, n, r);
2410
2410
  else if (d !== "parseTransform") {
2411
2411
  Di(d, h);
2412
2412
  continue;
2413
2413
  }
2414
- x || (d in o ? C.push(d, 0, o[d]) : typeof e[d] == "function" ? C.push(d, 2, e[d]()) : C.push(d, 1, c || e[d])), s.push(d);
2414
+ x || (d in o ? P.push(d, 0, o[d]) : typeof e[d] == "function" ? P.push(d, 2, e[d]()) : P.push(d, 1, c || e[d])), s.push(d);
2415
2415
  }
2416
2416
  }
2417
- w && pr(this);
2417
+ v && fr(this);
2418
2418
  },
2419
2419
  render: function(e, t) {
2420
2420
  if (t.tween._time || !$i())
@@ -2423,25 +2423,25 @@ var Cr = {
2423
2423
  else
2424
2424
  t.styles.revert();
2425
2425
  },
2426
- get: Pe,
2426
+ get: Ce,
2427
2427
  aliases: xe,
2428
2428
  getSetter: function(e, t, i) {
2429
2429
  var n = xe[t];
2430
- return n && n.indexOf(",") < 0 && (t = n), t in Te && t !== ne && (e._gsap.x || Pe(e, "x")) ? i && sn === i ? t === "scale" ? Qs : qs : (sn = i || {}) && (t === "scale" ? Js : ea) : e.style && !Ti(e.style[t]) ? Ws : ~t.indexOf("-") ? Ks : Fi(e, t);
2430
+ return n && n.indexOf(",") < 0 && (t = n), t in Ae && t !== ne && (e._gsap.x || Ce(e, "x")) ? i && sn === i ? t === "scale" ? ea : Js : (sn = i || {}) && (t === "scale" ? ta : ia) : e.style && !Ai(e.style[t]) ? qs : ~t.indexOf("-") ? Qs : Fi(e, t);
2431
2431
  },
2432
2432
  core: {
2433
- _removeProperty: Xe,
2434
- _getMatrix: Vi
2433
+ _removeProperty: Ke,
2434
+ _getMatrix: Gi
2435
2435
  }
2436
2436
  };
2437
2437
  re.utils.checkPrefix = ct;
2438
- re.core.getStyleSaver = yr;
2438
+ re.core.getStyleSaver = xr;
2439
2439
  (function(a, e, t, i) {
2440
2440
  var n = te(a + "," + e + "," + t, function(r) {
2441
- Te[r] = 1;
2441
+ Ae[r] = 1;
2442
2442
  });
2443
2443
  te(e, function(r) {
2444
- he.units[r] = "deg", Er[r] = 1;
2444
+ he.units[r] = "deg", wr[r] = 1;
2445
2445
  }), xe[n[13]] = a + "," + e, te(i, function(r) {
2446
2446
  var s = r.split(":");
2447
2447
  xe[s[1]] = n[s[0]];
@@ -2450,8 +2450,8 @@ re.core.getStyleSaver = yr;
2450
2450
  te("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective", function(a) {
2451
2451
  he.units[a] = "px";
2452
2452
  });
2453
- re.registerPlugin(Cr);
2454
- var _t = re.registerPlugin(Cr) || re;
2453
+ re.registerPlugin(Ar);
2454
+ var _t = re.registerPlugin(Ar) || re;
2455
2455
  _t.core.Tween;
2456
2456
  class be {
2457
2457
  constructor(e, t, i, n, r = "div") {
@@ -2679,7 +2679,7 @@ class be {
2679
2679
  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);
2680
2680
  }
2681
2681
  }
2682
- class ua extends be {
2682
+ class pa extends be {
2683
2683
  constructor(e, t, i) {
2684
2684
  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", () => {
2685
2685
  this.setValue(this.$input.checked), this._callOnFinishChange();
@@ -2689,56 +2689,56 @@ class ua extends be {
2689
2689
  return this.$input.checked = this.getValue(), this;
2690
2690
  }
2691
2691
  }
2692
- function Ei(a) {
2692
+ function vi(a) {
2693
2693
  let e, t;
2694
2694
  return (e = a.match(/(#|0x)?([a-f0-9]{6})/i)) ? t = e[2] : (e = a.match(/rgb\(\s*(\d*)\s*,\s*(\d*)\s*,\s*(\d*)\s*\)/)) ? t = parseInt(e[1]).toString(16).padStart(2, 0) + parseInt(e[2]).toString(16).padStart(2, 0) + parseInt(e[3]).toString(16).padStart(2, 0) : (e = a.match(/^#?([a-f0-9])([a-f0-9])([a-f0-9])$/i)) && (t = e[1] + e[1] + e[2] + e[2] + e[3] + e[3]), t ? "#" + t : !1;
2695
2695
  }
2696
- const da = {
2696
+ const fa = {
2697
2697
  isPrimitive: !0,
2698
2698
  match: (a) => typeof a == "string",
2699
- fromHexString: Ei,
2700
- toHexString: Ei
2701
- }, At = {
2699
+ fromHexString: vi,
2700
+ toHexString: vi
2701
+ }, St = {
2702
2702
  isPrimitive: !0,
2703
2703
  match: (a) => typeof a == "number",
2704
2704
  fromHexString: (a) => parseInt(a.substring(1), 16),
2705
2705
  toHexString: (a) => "#" + a.toString(16).padStart(6, 0)
2706
- }, pa = {
2706
+ }, ma = {
2707
2707
  isPrimitive: !1,
2708
2708
  match: (a) => Array.isArray(a) || ArrayBuffer.isView(a),
2709
2709
  fromHexString(a, e, t = 1) {
2710
- const i = At.fromHexString(a);
2710
+ const i = St.fromHexString(a);
2711
2711
  e[0] = (i >> 16 & 255) / 255 * t, e[1] = (i >> 8 & 255) / 255 * t, e[2] = (i & 255) / 255 * t;
2712
2712
  },
2713
2713
  toHexString([a, e, t], i = 1) {
2714
2714
  i = 255 / i;
2715
2715
  const n = a * i << 16 ^ e * i << 8 ^ t * i << 0;
2716
- return At.toHexString(n);
2716
+ return St.toHexString(n);
2717
2717
  }
2718
- }, fa = {
2718
+ }, ga = {
2719
2719
  isPrimitive: !1,
2720
2720
  match: (a) => Object(a) === a,
2721
2721
  fromHexString(a, e, t = 1) {
2722
- const i = At.fromHexString(a);
2722
+ const i = St.fromHexString(a);
2723
2723
  e.r = (i >> 16 & 255) / 255 * t, e.g = (i >> 8 & 255) / 255 * t, e.b = (i & 255) / 255 * t;
2724
2724
  },
2725
2725
  toHexString({ r: a, g: e, b: t }, i = 1) {
2726
2726
  i = 255 / i;
2727
2727
  const n = a * i << 16 ^ e * i << 8 ^ t * i << 0;
2728
- return At.toHexString(n);
2728
+ return St.toHexString(n);
2729
2729
  }
2730
- }, ma = [da, At, pa, fa];
2731
- function ga(a) {
2732
- return ma.find((e) => e.match(a));
2730
+ }, _a = [fa, St, ma, ga];
2731
+ function ya(a) {
2732
+ return _a.find((e) => e.match(a));
2733
2733
  }
2734
- class _a extends be {
2734
+ class xa extends be {
2735
2735
  constructor(e, t, i, n) {
2736
- 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 = ga(this.initialValue), this._rgbScale = n, this._initialValueHexString = this.save(), this._textFocused = !1, this.$input.addEventListener("input", () => {
2736
+ 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 = ya(this.initialValue), this._rgbScale = n, this._initialValueHexString = this.save(), this._textFocused = !1, this.$input.addEventListener("input", () => {
2737
2737
  this._setValueFromHexString(this.$input.value);
2738
2738
  }), this.$input.addEventListener("blur", () => {
2739
2739
  this._callOnFinishChange();
2740
2740
  }), this.$text.addEventListener("input", () => {
2741
- const r = Ei(this.$text.value);
2741
+ const r = vi(this.$text.value);
2742
2742
  r && this._setValueFromHexString(r);
2743
2743
  }), this.$text.addEventListener("focus", () => {
2744
2744
  this._textFocused = !0, this.$text.select();
@@ -2774,7 +2774,7 @@ class ri extends be {
2774
2774
  }, { passive: !0 }), this.$disable = this.$button;
2775
2775
  }
2776
2776
  }
2777
- class ya extends be {
2777
+ class ba extends be {
2778
2778
  constructor(e, t, i, n, r, s) {
2779
2779
  super(e, t, i, "lil-number"), this._initInput(), this.min(n), this.max(r);
2780
2780
  const o = s !== void 0;
@@ -2818,8 +2818,8 @@ class ya extends be {
2818
2818
  o = y.clientX, l = c = y.clientY, s = !0, h = this.getValue(), u = 0, window.addEventListener("mousemove", f), window.addEventListener("mouseup", d);
2819
2819
  }, f = (y) => {
2820
2820
  if (s) {
2821
- const x = y.clientX - o, b = y.clientY - l;
2822
- Math.abs(b) > p ? (y.preventDefault(), this.$input.blur(), s = !1, this._setDraggingStyle(!0, "vertical")) : Math.abs(x) > p && d();
2821
+ const x = y.clientX - o, E = y.clientY - l;
2822
+ Math.abs(E) > p ? (y.preventDefault(), this.$input.blur(), s = !1, this._setDraggingStyle(!0, "vertical")) : Math.abs(x) > p && d();
2823
2823
  }
2824
2824
  if (!s) {
2825
2825
  const x = y.clientY - c;
@@ -2837,7 +2837,7 @@ class ya extends be {
2837
2837
  }
2838
2838
  _initSlider() {
2839
2839
  this._hasSlider = !0, this.$slider = document.createElement("div"), this.$slider.classList.add("lil-slider"), this.$fill = document.createElement("div"), this.$fill.classList.add("lil-fill"), this.$slider.appendChild(this.$fill), this.$widget.insertBefore(this.$slider, this.$input), this.domElement.classList.add("lil-has-slider");
2840
- const e = (_, y, x, b, v) => (_ - y) / (x - y) * (v - b) + b, t = (_) => {
2840
+ const e = (_, y, x, E, b) => (_ - y) / (x - y) * (b - E) + E, t = (_) => {
2841
2841
  const y = this.$slider.getBoundingClientRect();
2842
2842
  let x = e(_, y.left, y.right, this._min, this._max);
2843
2843
  this._snapClampSetValue(x);
@@ -2909,7 +2909,7 @@ class ya extends be {
2909
2909
  return this._max !== void 0;
2910
2910
  }
2911
2911
  }
2912
- class xa extends be {
2912
+ class Ea extends be {
2913
2913
  constructor(e, t, i, n) {
2914
2914
  super(e, t, i, "lil-option"), this.$select = document.createElement("select"), this.$select.setAttribute("aria-labelledby", this.$name.id), this.$display = document.createElement("div"), this.$display.classList.add("lil-display"), this.$select.addEventListener("change", () => {
2915
2915
  this.setValue(this._values[this.$select.selectedIndex]), this._callOnFinishChange();
@@ -2930,7 +2930,7 @@ class xa extends be {
2930
2930
  return this.$select.selectedIndex = t, this.$display.textContent = t === -1 ? e : this._names[t], this;
2931
2931
  }
2932
2932
  }
2933
- class ba extends be {
2933
+ class va extends be {
2934
2934
  constructor(e, t, i) {
2935
2935
  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", () => {
2936
2936
  this.setValue(this.$input.value);
@@ -2944,7 +2944,7 @@ class ba extends be {
2944
2944
  return this.$input.value = this.getValue(), this;
2945
2945
  }
2946
2946
  }
2947
- var va = `.lil-gui {
2947
+ var wa = `.lil-gui {
2948
2948
  font-family: var(--font-family);
2949
2949
  font-size: var(--font-size);
2950
2950
  line-height: 1;
@@ -3366,14 +3366,14 @@ var va = `.lil-gui {
3366
3366
  font-family: "lil-gui";
3367
3367
  src: url("data:application/font-woff2;charset=utf-8;base64,d09GMgABAAAAAALkAAsAAAAABtQAAAKVAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHFQGYACDMgqBBIEbATYCJAMUCwwABCAFhAoHgQQbHAbIDiUFEYVARAAAYQTVWNmz9MxhEgodq49wYRUFKE8GWNiUBxI2LBRaVnc51U83Gmhs0Q7JXWMiz5eteLwrKwuxHO8VFxUX9UpZBs6pa5ABRwHA+t3UxUnH20EvVknRerzQgX6xC/GH6ZUvTcAjAv122dF28OTqCXrPuyaDER30YBA1xnkVutDDo4oCi71Ca7rrV9xS8dZHbPHefsuwIyCpmT7j+MnjAH5X3984UZoFFuJ0yiZ4XEJFxjagEBeqs+e1iyK8Xf/nOuwF+vVK0ur765+vf7txotUi0m3N0m/84RGSrBCNrh8Ee5GjODjF4gnWP+dJrH/Lk9k4oT6d+gr6g/wssA2j64JJGP6cmx554vUZnpZfn6ZfX2bMwPPrlANsB86/DiHjhl0OP+c87+gaJo/gY084s3HoYL/ZkWHTRfBXvvoHnnkHvngKun4KBE/ede7tvq3/vQOxDXB1/fdNz6XbPdcr0Vhpojj9dG+owuSKFsslCi1tgEjirjXdwMiov2EioadxmqTHUCIwo8NgQaeIasAi0fTYSPTbSmwbMOFduyh9wvBrESGY0MtgRjtgQR8Q1bRPohn2UoCRZf9wyYANMXFeJTysqAe0I4mrherOekFdKMrYvJjLvOIUM9SuwYB5DVZUwwVjJJOaUnZCmcEkIZZrKqNvRGRMvmFZsmhP4VMKCSXBhSqUBxgMS7h0cZvEd71AWkEhGWaeMFcNnpqyJkyXgYL7PQ1MoSq0wDAkRtJIijkZSmqYTiSImfLiSWXIZwhRh3Rug2X0kk1Dgj+Iu43u5p98ghopcpSo0Uyc8SnjlYX59WUeaMoDqmVD2TOWD9a4pCRAzf2ECgwGcrHjPOWY9bNxq/OL3I/QjwEAAAA=") format("woff2");
3368
3368
  }`;
3369
- function Ea(a) {
3369
+ function Ca(a) {
3370
3370
  const e = document.createElement("style");
3371
3371
  e.innerHTML = a;
3372
3372
  const t = document.querySelector("head link[rel=stylesheet], head style");
3373
3373
  t ? document.head.insertBefore(e, t) : document.head.appendChild(e);
3374
3374
  }
3375
3375
  let fn = !1;
3376
- class Gi {
3376
+ class Vi {
3377
3377
  /**
3378
3378
  * Creates a panel that holds controllers.
3379
3379
  * @example
@@ -3422,7 +3422,7 @@ class Gi {
3422
3422
  this.parent.children.push(this), this.parent.folders.push(this), this.parent.$children.appendChild(this.domElement);
3423
3423
  return;
3424
3424
  }
3425
- this.domElement.classList.add("lil-root"), l && this.domElement.classList.add("lil-allow-touch-styles"), !fn && o && (Ea(va), fn = !0), i ? i.appendChild(this.domElement) : t && (this.domElement.classList.add("lil-auto-place", "autoPlace"), document.body.appendChild(this.domElement)), n && this.domElement.style.setProperty("--width", n + "px"), this._closeFolders = s;
3425
+ this.domElement.classList.add("lil-root"), l && this.domElement.classList.add("lil-allow-touch-styles"), !fn && o && (Ca(wa), fn = !0), i ? i.appendChild(this.domElement) : t && (this.domElement.classList.add("lil-auto-place", "autoPlace"), document.body.appendChild(this.domElement)), n && this.domElement.style.setProperty("--width", n + "px"), this._closeFolders = s;
3426
3426
  }
3427
3427
  /**
3428
3428
  * Adds a controller to the GUI, inferring controller type using the `typeof` operator.
@@ -3441,15 +3441,15 @@ class Gi {
3441
3441
  */
3442
3442
  add(e, t, i, n, r) {
3443
3443
  if (Object(i) === i)
3444
- return new xa(this, e, t, i);
3444
+ return new Ea(this, e, t, i);
3445
3445
  const s = e[t];
3446
3446
  switch (typeof s) {
3447
3447
  case "number":
3448
- return new ya(this, e, t, i, n, r);
3448
+ return new ba(this, e, t, i, n, r);
3449
3449
  case "boolean":
3450
- return new ua(this, e, t);
3450
+ return new pa(this, e, t);
3451
3451
  case "string":
3452
- return new ba(this, e, t);
3452
+ return new va(this, e, t);
3453
3453
  case "function":
3454
3454
  return new ri(this, e, t);
3455
3455
  }
@@ -3478,7 +3478,7 @@ class Gi {
3478
3478
  * @returns {Controller}
3479
3479
  */
3480
3480
  addColor(e, t, i = 1) {
3481
- return new _a(this, e, t, i);
3481
+ return new xa(this, e, t, i);
3482
3482
  }
3483
3483
  /**
3484
3484
  * Adds a folder to the GUI, which is just another GUI. This method returns
@@ -3493,7 +3493,7 @@ class Gi {
3493
3493
  * @returns {GUI}
3494
3494
  */
3495
3495
  addFolder(e) {
3496
- const t = new Gi({ parent: this, title: e });
3496
+ const t = new Vi({ parent: this, title: e });
3497
3497
  return this.root._closeFolders && t.close(), t;
3498
3498
  }
3499
3499
  /**
@@ -3705,11 +3705,11 @@ class Gi {
3705
3705
  }), e;
3706
3706
  }
3707
3707
  }
3708
- function wa(a) {
3708
+ function Pa(a) {
3709
3709
  return a;
3710
3710
  }
3711
- function Pa(a) {
3712
- if (a == null) return wa;
3711
+ function Aa(a) {
3712
+ if (a == null) return Pa;
3713
3713
  var e, t, i = a.scale[0], n = a.scale[1], r = a.translate[0], s = a.translate[1];
3714
3714
  return function(o, l) {
3715
3715
  l || (e = t = 0);
@@ -3718,25 +3718,25 @@ function Pa(a) {
3718
3718
  return u;
3719
3719
  };
3720
3720
  }
3721
- function Ca(a, e) {
3721
+ function Ta(a, e) {
3722
3722
  for (var t, i = a.length, n = i - e; n < --i; ) t = a[n], a[n++] = a[i], a[i] = t;
3723
3723
  }
3724
- function Ta(a, e) {
3724
+ function Sa(a, e) {
3725
3725
  return typeof e == "string" && (e = a.objects[e]), e.type === "GeometryCollection" ? { type: "FeatureCollection", features: e.geometries.map(function(t) {
3726
3726
  return mn(a, t);
3727
3727
  }) } : mn(a, e);
3728
3728
  }
3729
3729
  function mn(a, e) {
3730
- var t = e.id, i = e.bbox, n = e.properties == null ? {} : e.properties, r = Sa(a, e);
3730
+ var t = e.id, i = e.bbox, n = e.properties == null ? {} : e.properties, r = Da(a, e);
3731
3731
  return t == null && i == null ? { type: "Feature", properties: n, geometry: r } : i == null ? { type: "Feature", id: t, properties: n, geometry: r } : { type: "Feature", id: t, bbox: i, properties: n, geometry: r };
3732
3732
  }
3733
- function Sa(a, e) {
3734
- var t = Pa(a.transform), i = a.arcs;
3733
+ function Da(a, e) {
3734
+ var t = Aa(a.transform), i = a.arcs;
3735
3735
  function n(h, u) {
3736
3736
  u.length && u.pop();
3737
3737
  for (var p = i[h < 0 ? ~h : h], m = 0, f = p.length; m < f; ++m)
3738
3738
  u.push(t(p[m], m));
3739
- h < 0 && Ca(u, f);
3739
+ h < 0 && Ta(u, f);
3740
3740
  }
3741
3741
  function r(h) {
3742
3742
  return t(h);
@@ -3881,7 +3881,7 @@ const Tr = [
3881
3881
  { 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 },
3882
3882
  { 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 },
3883
3883
  { 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 }
3884
- ], Aa = [
3884
+ ], Ma = [
3885
3885
  {
3886
3886
  id: "humanDevIndex",
3887
3887
  name: "Human Development Index",
@@ -3983,19 +3983,230 @@ const Tr = [
3983
3983
  format: (a) => `${a.toFixed(0)}%`
3984
3984
  }
3985
3985
  ];
3986
- function Da(a, e) {
3986
+ function Ra(a, e) {
3987
3987
  const [t, i] = a.domain;
3988
3988
  return Math.max(0, Math.min(1, (e - t) / (i - t)));
3989
3989
  }
3990
- const Ot = 2048, kt = 1024;
3991
- class Ma {
3990
+ const Oa = {
3991
+ // North America
3992
+ US: "840",
3993
+ USA: "840",
3994
+ "UNITED STATES": "840",
3995
+ AMERICA: "840",
3996
+ CA: "124",
3997
+ CAN: "124",
3998
+ CANADA: "124",
3999
+ MX: "484",
4000
+ MEX: "484",
4001
+ MEXICO: "484",
4002
+ // Europe
4003
+ DE: "276",
4004
+ DEU: "276",
4005
+ GERMANY: "276",
4006
+ DEUTSCHLAND: "276",
4007
+ FR: "250",
4008
+ FRA: "250",
4009
+ FRANCE: "250",
4010
+ GB: "826",
4011
+ GBR: "826",
4012
+ UK: "826",
4013
+ "UNITED KINGDOM": "826",
4014
+ BRITAIN: "826",
4015
+ ENGLAND: "826",
4016
+ IT: "380",
4017
+ ITA: "380",
4018
+ ITALY: "380",
4019
+ ES: "724",
4020
+ ESP: "724",
4021
+ SPAIN: "724",
4022
+ PT: "620",
4023
+ PRT: "620",
4024
+ PORTUGAL: "620",
4025
+ NL: "528",
4026
+ NLD: "528",
4027
+ NETHERLANDS: "528",
4028
+ HOLLAND: "528",
4029
+ BE: "056",
4030
+ BEL: "056",
4031
+ BELGIUM: "056",
4032
+ AT: "040",
4033
+ AUT: "040",
4034
+ AUSTRIA: "040",
4035
+ CH: "756",
4036
+ CHE: "756",
4037
+ SWITZERLAND: "756",
4038
+ PL: "616",
4039
+ POL: "616",
4040
+ POLAND: "616",
4041
+ SE: "752",
4042
+ SWE: "752",
4043
+ SWEDEN: "752",
4044
+ NO: "578",
4045
+ NOR: "578",
4046
+ NORWAY: "578",
4047
+ DK: "208",
4048
+ DNK: "208",
4049
+ DENMARK: "208",
4050
+ FI: "246",
4051
+ FIN: "246",
4052
+ FINLAND: "246",
4053
+ IE: "372",
4054
+ IRL: "372",
4055
+ IRELAND: "372",
4056
+ GR: "300",
4057
+ GRC: "300",
4058
+ GREECE: "300",
4059
+ CZ: "203",
4060
+ CZE: "203",
4061
+ "CZECH REPUBLIC": "203",
4062
+ CZECHIA: "203",
4063
+ RO: "642",
4064
+ ROU: "642",
4065
+ ROMANIA: "642",
4066
+ HU: "348",
4067
+ HUN: "348",
4068
+ HUNGARY: "348",
4069
+ UA: "804",
4070
+ UKR: "804",
4071
+ UKRAINE: "804",
4072
+ RU: "643",
4073
+ RUS: "643",
4074
+ RUSSIA: "643",
4075
+ "RUSSIAN FEDERATION": "643",
4076
+ // Asia
4077
+ CN: "156",
4078
+ CHN: "156",
4079
+ CHINA: "156",
4080
+ JP: "392",
4081
+ JPN: "392",
4082
+ JAPAN: "392",
4083
+ KR: "410",
4084
+ KOR: "410",
4085
+ "SOUTH KOREA": "410",
4086
+ KOREA: "410",
4087
+ IN: "356",
4088
+ IND: "356",
4089
+ INDIA: "356",
4090
+ ID: "360",
4091
+ IDN: "360",
4092
+ INDONESIA: "360",
4093
+ TH: "764",
4094
+ THA: "764",
4095
+ THAILAND: "764",
4096
+ VN: "704",
4097
+ VNM: "704",
4098
+ VIETNAM: "704",
4099
+ PH: "608",
4100
+ PHL: "608",
4101
+ PHILIPPINES: "608",
4102
+ MY: "458",
4103
+ MYS: "458",
4104
+ MALAYSIA: "458",
4105
+ SG: "702",
4106
+ SGP: "702",
4107
+ SINGAPORE: "702",
4108
+ PK: "586",
4109
+ PAK: "586",
4110
+ PAKISTAN: "586",
4111
+ BD: "050",
4112
+ BGD: "050",
4113
+ BANGLADESH: "050",
4114
+ TR: "792",
4115
+ TUR: "792",
4116
+ TURKEY: "792",
4117
+ TURKIYE: "792",
4118
+ SA: "682",
4119
+ SAU: "682",
4120
+ "SAUDI ARABIA": "682",
4121
+ AE: "784",
4122
+ ARE: "784",
4123
+ UAE: "784",
4124
+ "UNITED ARAB EMIRATES": "784",
4125
+ IL: "376",
4126
+ ISR: "376",
4127
+ ISRAEL: "376",
4128
+ IR: "364",
4129
+ IRN: "364",
4130
+ IRAN: "364",
4131
+ IQ: "368",
4132
+ IRQ: "368",
4133
+ IRAQ: "368",
4134
+ // Oceania
4135
+ AU: "036",
4136
+ AUS: "036",
4137
+ AUSTRALIA: "036",
4138
+ NZ: "554",
4139
+ NZL: "554",
4140
+ "NEW ZEALAND": "554",
4141
+ // South America
4142
+ BR: "076",
4143
+ BRA: "076",
4144
+ BRAZIL: "076",
4145
+ AR: "032",
4146
+ ARG: "032",
4147
+ ARGENTINA: "032",
4148
+ CL: "152",
4149
+ CHL: "152",
4150
+ CHILE: "152",
4151
+ CO: "170",
4152
+ COL: "170",
4153
+ COLOMBIA: "170",
4154
+ PE: "604",
4155
+ PER: "604",
4156
+ PERU: "604",
4157
+ VE: "862",
4158
+ VEN: "862",
4159
+ VENEZUELA: "862",
4160
+ // Africa
4161
+ ZA: "710",
4162
+ ZAF: "710",
4163
+ "SOUTH AFRICA": "710",
4164
+ EG: "818",
4165
+ EGY: "818",
4166
+ EGYPT: "818",
4167
+ NG: "566",
4168
+ NGA: "566",
4169
+ NIGERIA: "566",
4170
+ KE: "404",
4171
+ KEN: "404",
4172
+ KENYA: "404",
4173
+ ET: "231",
4174
+ ETH: "231",
4175
+ ETHIOPIA: "231",
4176
+ MA: "504",
4177
+ MAR: "504",
4178
+ MOROCCO: "504",
4179
+ DZ: "012",
4180
+ DZA: "012",
4181
+ ALGERIA: "012",
4182
+ TN: "788",
4183
+ TUN: "788",
4184
+ TUNISIA: "788",
4185
+ GH: "288",
4186
+ GHA: "288",
4187
+ GHANA: "288"
4188
+ };
4189
+ function gn(a) {
4190
+ const e = a.toUpperCase().trim();
4191
+ return /^\d{1,3}$/.test(a) ? a.padStart(3, "0") : Oa[e] || a;
4192
+ }
4193
+ function Ia(a) {
4194
+ const e = {};
4195
+ return a instanceof Map ? a.forEach((t, i) => {
4196
+ e[gn(i)] = t;
4197
+ }) : Object.entries(a).forEach(([t, i]) => {
4198
+ e[gn(t)] = i;
4199
+ }), e;
4200
+ }
4201
+ const Ot = 2048, It = 1024;
4202
+ class La {
3992
4203
  canvas;
3993
4204
  ctx;
3994
4205
  countries = [];
3995
4206
  loaded = !1;
3996
4207
  statsMap;
3997
4208
  constructor() {
3998
- this.canvas = document.createElement("canvas"), this.canvas.width = Ot, this.canvas.height = kt, this.ctx = this.canvas.getContext("2d"), this.statsMap = /* @__PURE__ */ new Map(), Tr.forEach((e) => {
4209
+ this.canvas = document.createElement("canvas"), this.canvas.width = Ot, this.canvas.height = It, this.ctx = this.canvas.getContext("2d"), this.statsMap = /* @__PURE__ */ new Map(), Tr.forEach((e) => {
3999
4210
  this.statsMap.set(e.id, e);
4000
4211
  }), this.loadCountries();
4001
4212
  }
@@ -4003,7 +4214,7 @@ class Ma {
4003
4214
  try {
4004
4215
  const t = await (await fetch(
4005
4216
  "https://cdn.jsdelivr.net/npm/world-atlas@2/countries-110m.json"
4006
- )).json(), i = Ta(t, t.objects.countries);
4217
+ )).json(), i = Sa(t, t.objects.countries);
4007
4218
  this.countries = i.features, this.loaded = !0, console.log(`Loaded ${this.countries.length} country boundaries`);
4008
4219
  } catch (e) {
4009
4220
  console.error("Failed to load country boundaries:", e);
@@ -4020,10 +4231,10 @@ class Ma {
4020
4231
  * Render a choropleth texture for the given statistic
4021
4232
  */
4022
4233
  renderTexture(e) {
4023
- return this.ctx.fillStyle = "#1a3a5c", this.ctx.fillRect(0, 0, Ot, kt), this.loaded ? (this.countries.forEach((t) => {
4234
+ return this.ctx.fillStyle = "#1a3a5c", this.ctx.fillRect(0, 0, Ot, It), this.loaded ? (this.countries.forEach((t) => {
4024
4235
  const i = this.statsMap.get(t.id);
4025
4236
  if (i) {
4026
- const n = e.accessor(i), r = Da(e, n), s = this.interpolateColor(e.colorScale, r);
4237
+ const n = e.accessor(i), r = Ra(e, n), s = this.interpolateColor(e.colorScale, r);
4027
4238
  this.ctx.fillStyle = s;
4028
4239
  } else
4029
4240
  this.ctx.fillStyle = "#2a2a2a";
@@ -4067,7 +4278,7 @@ class Ma {
4067
4278
  * Project lat/lon to canvas coordinates (equirectangular projection)
4068
4279
  */
4069
4280
  projectPoint(e, t) {
4070
- const i = (e + 180) / 360 * Ot, n = (90 - t) / 180 * kt;
4281
+ const i = (e + 180) / 360 * Ot, n = (90 - t) / 180 * It;
4071
4282
  return [i, n];
4072
4283
  }
4073
4284
  interpolateColor(e, t) {
@@ -4090,9 +4301,9 @@ class Ma {
4090
4301
  * Render a choropleth texture with custom values
4091
4302
  */
4092
4303
  renderCustomTexture(e, t, i) {
4093
- if (this.ctx.fillStyle = "#1a3a5c", this.ctx.fillRect(0, 0, Ot, kt), !this.loaded)
4304
+ if (this.ctx.fillStyle = "#1a3a5c", this.ctx.fillRect(0, 0, Ot, It), !this.loaded)
4094
4305
  return this.canvas;
4095
- const n = e instanceof Map ? Object.fromEntries(e) : e;
4306
+ const n = Ia(e);
4096
4307
  return this.countries.forEach((r) => {
4097
4308
  const s = n[r.id];
4098
4309
  if (s !== void 0) {
@@ -4121,19 +4332,28 @@ class Ma {
4121
4332
  return this.canvas.toDataURL("image/png");
4122
4333
  }
4123
4334
  }
4124
- class Ra {
4335
+ function Sr(a) {
4336
+ 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) => {
4337
+ const t = Number.isInteger(e) ? e.toLocaleString() : e.toFixed(1);
4338
+ return a ? `${t} ${a}` : t;
4339
+ };
4340
+ }
4341
+ function go(a, e, t) {
4342
+ return (t ?? Sr(e))(a);
4343
+ }
4344
+ class ka {
4125
4345
  container;
4126
4346
  visible = !1;
4127
4347
  constructor() {
4128
- this.container = document.createElement("div"), this.container.id = "legend", this.container.innerHTML = `
4348
+ this.container = document.createElement("div"), this.container.id = "legend", this.container.setAttribute("data-testid", "globe-legend"), this.container.innerHTML = `
4129
4349
  <div class="legend-hint">Press G to toggle globe/flat</div>
4130
- <div class="legend-title"></div>
4350
+ <div class="legend-title" data-testid="legend-title"></div>
4131
4351
  <div class="legend-gradient"></div>
4132
4352
  <div class="legend-labels">
4133
- <span class="legend-min"></span>
4134
- <span class="legend-max"></span>
4353
+ <span class="legend-min" data-testid="legend-min"></span>
4354
+ <span class="legend-max" data-testid="legend-max"></span>
4135
4355
  </div>
4136
- <div class="legend-description"></div>
4356
+ <div class="legend-description" data-testid="legend-description"></div>
4137
4357
  `, this.applyStyles(), document.body.appendChild(this.container);
4138
4358
  }
4139
4359
  applyStyles() {
@@ -4199,11 +4419,19 @@ class Ra {
4199
4419
  }
4200
4420
  `, document.head.appendChild(e);
4201
4421
  }
4422
+ /**
4423
+ * Show the legend with the given statistic definition.
4424
+ *
4425
+ * If the statistic doesn't have a format function (e.g., when loaded from JSON),
4426
+ * a default formatter is created based on the unit.
4427
+ */
4202
4428
  show(e) {
4203
4429
  const t = this.container.querySelector(".legend-title"), i = this.container.querySelector(".legend-gradient"), n = this.container.querySelector(".legend-min"), r = this.container.querySelector(".legend-max"), s = this.container.querySelector(".legend-description");
4204
4430
  t.textContent = e.name, s.textContent = e.description;
4205
4431
  const [o, l, c] = e.colorScale;
4206
- i.style.background = `linear-gradient(to right, ${o}, ${l}, ${c})`, n.textContent = e.format(e.domain[0]), r.textContent = e.format(e.domain[1]), this.container.classList.add("visible"), this.visible = !0;
4432
+ i.style.background = `linear-gradient(to right, ${o}, ${l}, ${c})`;
4433
+ const h = e.format ?? Sr(e.unit);
4434
+ n.textContent = h(e.domain[0]), r.textContent = h(e.domain[1]), this.container.classList.add("visible"), this.visible = !0;
4207
4435
  }
4208
4436
  hide() {
4209
4437
  this.container.classList.remove("visible"), this.visible = !1;
@@ -4211,12 +4439,15 @@ class Ra {
4211
4439
  isVisible() {
4212
4440
  return this.visible;
4213
4441
  }
4442
+ getContainer() {
4443
+ return this.container;
4444
+ }
4214
4445
  dispose() {
4215
4446
  this.container.remove();
4216
4447
  }
4217
4448
  }
4218
- var Oa = { trailer: 59 };
4219
- function Sr(a = 256) {
4449
+ var Ua = { trailer: 59 };
4450
+ function Dr(a = 256) {
4220
4451
  let e = 0, t = new Uint8Array(a);
4221
4452
  return { get buffer() {
4222
4453
  return t.buffer;
@@ -4243,54 +4474,54 @@ function Sr(a = 256) {
4243
4474
  t = new Uint8Array(n), e > 0 && t.set(o.subarray(0, e), 0);
4244
4475
  }
4245
4476
  }
4246
- var si = 12, gn = 5003, ka = [0, 1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047, 4095, 8191, 16383, 32767, 65535];
4247
- function La(a, e, t, i, n = Sr(512), r = new Uint8Array(256), s = new Int32Array(gn), o = new Int32Array(gn)) {
4477
+ var si = 12, _n = 5003, Fa = [0, 1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047, 4095, 8191, 16383, 32767, 65535];
4478
+ function Na(a, e, t, i, n = Dr(512), r = new Uint8Array(256), s = new Int32Array(_n), o = new Int32Array(_n)) {
4248
4479
  let l = s.length, c = Math.max(2, i);
4249
4480
  r.fill(0), o.fill(0), s.fill(-1);
4250
- let h = 0, u = 0, p = c + 1, m = p, f = !1, d = m, g = (1 << d) - 1, _ = 1 << p - 1, y = _ + 1, x = _ + 2, b = 0, v = t[0], P = 0;
4251
- for (let E = l; E < 65536; E *= 2) ++P;
4252
- P = 8 - P, n.writeByte(c), C(_);
4253
- let w = t.length;
4254
- for (let E = 1; E < w; E++)
4481
+ let h = 0, u = 0, p = c + 1, m = p, f = !1, d = m, g = (1 << d) - 1, _ = 1 << p - 1, y = _ + 1, x = _ + 2, E = 0, b = t[0], C = 0;
4482
+ for (let w = l; w < 65536; w *= 2) ++C;
4483
+ C = 8 - C, n.writeByte(c), P(_);
4484
+ let v = t.length;
4485
+ for (let w = 1; w < v; w++)
4255
4486
  e: {
4256
- let S = t[E], D = (S << si) + v, T = S << P ^ v;
4257
- if (s[T] === D) {
4258
- v = o[T];
4487
+ let T = t[w], M = (T << si) + b, A = T << C ^ b;
4488
+ if (s[A] === M) {
4489
+ b = o[A];
4259
4490
  break e;
4260
4491
  }
4261
- let R = T === 0 ? 1 : l - T;
4262
- for (; s[T] >= 0; ) if (T -= R, T < 0 && (T += l), s[T] === D) {
4263
- v = o[T];
4492
+ let R = A === 0 ? 1 : l - A;
4493
+ for (; s[A] >= 0; ) if (A -= R, A < 0 && (A += l), s[A] === M) {
4494
+ b = o[A];
4264
4495
  break e;
4265
4496
  }
4266
- C(v), v = S, x < 1 << si ? (o[T] = x++, s[T] = D) : (s.fill(-1), x = _ + 2, f = !0, C(_));
4497
+ P(b), b = T, x < 1 << si ? (o[A] = x++, s[A] = M) : (s.fill(-1), x = _ + 2, f = !0, P(_));
4267
4498
  }
4268
- return C(v), C(y), n.writeByte(0), n.bytesView();
4269
- function C(E) {
4270
- for (h &= ka[u], u > 0 ? h |= E << u : h = E, u += d; u >= 8; ) r[b++] = h & 255, b >= 254 && (n.writeByte(b), n.writeBytesView(r, 0, b), b = 0), h >>= 8, u -= 8;
4271
- if ((x > g || f) && (f ? (d = m, g = (1 << d) - 1, f = !1) : (++d, g = d === si ? 1 << d : (1 << d) - 1)), E == y) {
4272
- for (; u > 0; ) r[b++] = h & 255, b >= 254 && (n.writeByte(b), n.writeBytesView(r, 0, b), b = 0), h >>= 8, u -= 8;
4273
- b > 0 && (n.writeByte(b), n.writeBytesView(r, 0, b), b = 0);
4499
+ return P(b), P(y), n.writeByte(0), n.bytesView();
4500
+ function P(w) {
4501
+ for (h &= Fa[u], u > 0 ? h |= w << u : h = w, u += d; u >= 8; ) r[E++] = h & 255, E >= 254 && (n.writeByte(E), n.writeBytesView(r, 0, E), E = 0), h >>= 8, u -= 8;
4502
+ if ((x > g || f) && (f ? (d = m, g = (1 << d) - 1, f = !1) : (++d, g = d === si ? 1 << d : (1 << d) - 1)), w == y) {
4503
+ for (; u > 0; ) r[E++] = h & 255, E >= 254 && (n.writeByte(E), n.writeBytesView(r, 0, E), E = 0), h >>= 8, u -= 8;
4504
+ E > 0 && (n.writeByte(E), n.writeBytesView(r, 0, E), E = 0);
4274
4505
  }
4275
4506
  }
4276
4507
  }
4277
- var Ia = La;
4278
- function Ar(a, e, t) {
4508
+ var za = Na;
4509
+ function Mr(a, e, t) {
4279
4510
  return a << 8 & 63488 | e << 2 & 992 | t >> 3;
4280
4511
  }
4281
- function Dr(a, e, t, i) {
4512
+ function Rr(a, e, t, i) {
4282
4513
  return a >> 4 | e & 240 | (t & 240) << 4 | (i & 240) << 8;
4283
4514
  }
4284
- function Mr(a, e, t) {
4515
+ function Or(a, e, t) {
4285
4516
  return a >> 4 << 8 | e & 240 | t >> 4;
4286
4517
  }
4287
4518
  function Lt(a, e, t) {
4288
4519
  return a < e ? e : a > t ? t : a;
4289
4520
  }
4290
- function zt(a) {
4521
+ function Nt(a) {
4291
4522
  return a * a;
4292
4523
  }
4293
- function _n(a, e, t) {
4524
+ function yn(a, e, t) {
4294
4525
  var i = 0, n = 1e100;
4295
4526
  let r = a[e], s = r.cnt;
4296
4527
  r.ac;
@@ -4299,7 +4530,7 @@ function _n(a, e, t) {
4299
4530
  let p = a[h], m = p.cnt, f = s * m / (s + m);
4300
4531
  if (!(f >= n)) {
4301
4532
  var u = 0;
4302
- u += f * zt(p.rc - o), !(u >= n) && (u += f * zt(p.gc - l), !(u >= n) && (u += f * zt(p.bc - c), !(u >= n) && (n = u, i = h)));
4533
+ u += f * Nt(p.rc - o), !(u >= n) && (u += f * Nt(p.gc - l), !(u >= n) && (u += f * Nt(p.bc - c), !(u >= n) && (n = u, i = h)));
4303
4534
  }
4304
4535
  }
4305
4536
  r.err = n, r.nn = i;
@@ -4307,27 +4538,27 @@ function _n(a, e, t) {
4307
4538
  function ai() {
4308
4539
  return { ac: 0, rc: 0, gc: 0, bc: 0, cnt: 0, nn: 0, fw: 0, bk: 0, tm: 0, mtm: 0, err: 0 };
4309
4540
  }
4310
- function Ua(a, e) {
4541
+ function $a(a, e) {
4311
4542
  let t = e === "rgb444" ? 4096 : 65536, i = new Array(t), n = a.length;
4312
4543
  if (e === "rgba4444") for (let r = 0; r < n; ++r) {
4313
- let s = a[r], o = s >> 24 & 255, l = s >> 16 & 255, c = s >> 8 & 255, h = s & 255, u = Dr(h, c, l, o), p = u in i ? i[u] : i[u] = ai();
4544
+ let s = a[r], o = s >> 24 & 255, l = s >> 16 & 255, c = s >> 8 & 255, h = s & 255, u = Rr(h, c, l, o), p = u in i ? i[u] : i[u] = ai();
4314
4545
  p.rc += h, p.gc += c, p.bc += l, p.ac += o, p.cnt++;
4315
4546
  }
4316
4547
  else if (e === "rgb444") for (let r = 0; r < n; ++r) {
4317
- let s = a[r], o = s >> 16 & 255, l = s >> 8 & 255, c = s & 255, h = Mr(c, l, o), u = h in i ? i[h] : i[h] = ai();
4548
+ let s = a[r], o = s >> 16 & 255, l = s >> 8 & 255, c = s & 255, h = Or(c, l, o), u = h in i ? i[h] : i[h] = ai();
4318
4549
  u.rc += c, u.gc += l, u.bc += o, u.cnt++;
4319
4550
  }
4320
4551
  else for (let r = 0; r < n; ++r) {
4321
- let s = a[r], o = s >> 16 & 255, l = s >> 8 & 255, c = s & 255, h = Ar(c, l, o), u = h in i ? i[h] : i[h] = ai();
4552
+ let s = a[r], o = s >> 16 & 255, l = s >> 8 & 255, c = s & 255, h = Mr(c, l, o), u = h in i ? i[h] : i[h] = ai();
4322
4553
  u.rc += c, u.gc += l, u.bc += o, u.cnt++;
4323
4554
  }
4324
4555
  return i;
4325
4556
  }
4326
- function Fa(a, e, t = {}) {
4557
+ function Ba(a, e, t = {}) {
4327
4558
  let { format: i = "rgb565", clearAlpha: n = !0, clearAlphaColor: r = 0, clearAlphaThreshold: s = 0, oneBitAlpha: o = !1 } = t;
4328
4559
  if (!a || !a.buffer) throw new Error("quantize() expected RGBA Uint8Array data");
4329
4560
  if (!(a instanceof Uint8Array) && !(a instanceof Uint8ClampedArray)) throw new Error("quantize() expected RGBA Uint8Array data");
4330
- let l = new Uint32Array(a.buffer), c = t.useSqrt !== !1, h = i === "rgba4444", u = Ua(l, i), p = u.length, m = p - 1, f = new Uint32Array(p + 1);
4561
+ let l = new Uint32Array(a.buffer), c = t.useSqrt !== !1, h = i === "rgba4444", u = $a(l, i), p = u.length, m = p - 1, f = new Uint32Array(p + 1);
4331
4562
  for (var d = 0, g = 0; g < p; ++g) {
4332
4563
  let O = u[g];
4333
4564
  if (O != null) {
@@ -4335,99 +4566,99 @@ function Fa(a, e, t = {}) {
4335
4566
  h && (O.ac *= _), O.rc *= _, O.gc *= _, O.bc *= _, u[d++] = O;
4336
4567
  }
4337
4568
  }
4338
- zt(e) / d < 0.022 && (c = !1);
4569
+ Nt(e) / d < 0.022 && (c = !1);
4339
4570
  for (var g = 0; g < d - 1; ++g) u[g].fw = g + 1, u[g + 1].bk = g, c && (u[g].cnt = Math.sqrt(u[g].cnt));
4340
4571
  c && (u[g].cnt = Math.sqrt(u[g].cnt));
4341
- var y, x, b;
4572
+ var y, x, E;
4342
4573
  for (g = 0; g < d; ++g) {
4343
- _n(u, g);
4344
- var v = u[g].err;
4345
- for (x = ++f[0]; x > 1 && (b = x >> 1, !(u[y = f[b]].err <= v)); x = b) f[x] = y;
4574
+ yn(u, g);
4575
+ var b = u[g].err;
4576
+ for (x = ++f[0]; x > 1 && (E = x >> 1, !(u[y = f[E]].err <= b)); x = E) f[x] = y;
4346
4577
  f[x] = g;
4347
4578
  }
4348
- var P = d - e;
4349
- for (g = 0; g < P; ) {
4350
- for (var w; ; ) {
4351
- var C = f[1];
4352
- if (w = u[C], w.tm >= w.mtm && u[w.nn].mtm <= w.tm) break;
4353
- w.mtm == m ? C = f[1] = f[f[0]--] : (_n(u, C), w.tm = g);
4354
- var v = u[C].err;
4355
- for (x = 1; (b = x + x) <= f[0] && (b < f[0] && u[f[b]].err > u[f[b + 1]].err && b++, !(v <= u[y = f[b]].err)); x = b) f[x] = y;
4356
- f[x] = C;
4579
+ var C = d - e;
4580
+ for (g = 0; g < C; ) {
4581
+ for (var v; ; ) {
4582
+ var P = f[1];
4583
+ if (v = u[P], v.tm >= v.mtm && u[v.nn].mtm <= v.tm) break;
4584
+ v.mtm == m ? P = f[1] = f[f[0]--] : (yn(u, P), v.tm = g);
4585
+ var b = u[P].err;
4586
+ for (x = 1; (E = x + x) <= f[0] && (E < f[0] && u[f[E]].err > u[f[E + 1]].err && E++, !(b <= u[y = f[E]].err)); x = E) f[x] = y;
4587
+ f[x] = P;
4357
4588
  }
4358
- var E = u[w.nn], S = w.cnt, D = E.cnt, _ = 1 / (S + D);
4359
- h && (w.ac = _ * (S * w.ac + D * E.ac)), w.rc = _ * (S * w.rc + D * E.rc), w.gc = _ * (S * w.gc + D * E.gc), w.bc = _ * (S * w.bc + D * E.bc), w.cnt += E.cnt, w.mtm = ++g, u[E.bk].fw = E.fw, u[E.fw].bk = E.bk, E.mtm = m;
4589
+ var w = u[v.nn], T = v.cnt, M = w.cnt, _ = 1 / (T + M);
4590
+ h && (v.ac = _ * (T * v.ac + M * w.ac)), v.rc = _ * (T * v.rc + M * w.rc), v.gc = _ * (T * v.gc + M * w.gc), v.bc = _ * (T * v.bc + M * w.bc), v.cnt += w.cnt, v.mtm = ++g, u[w.bk].fw = w.fw, u[w.fw].bk = w.bk, w.mtm = m;
4360
4591
  }
4361
- let T = [];
4592
+ let A = [];
4362
4593
  var R = 0;
4363
4594
  for (g = 0; ; ++R) {
4364
4595
  let O = Lt(Math.round(u[g].rc), 0, 255), B = Lt(Math.round(u[g].gc), 0, 255), F = Lt(Math.round(u[g].bc), 0, 255), U = 255;
4365
4596
  h && (U = Lt(Math.round(u[g].ac), 0, 255), o && (U = U <= (typeof o == "number" ? o : 127) ? 0 : 255), n && U <= s && (O = B = F = r, U = 0));
4366
4597
  let Q = h ? [O, B, F, U] : [O, B, F];
4367
- if (za(T, Q) || T.push(Q), (g = u[g].fw) == 0) break;
4598
+ if (Ga(A, Q) || A.push(Q), (g = u[g].fw) == 0) break;
4368
4599
  }
4369
- return T;
4600
+ return A;
4370
4601
  }
4371
- function za(a, e) {
4602
+ function Ga(a, e) {
4372
4603
  for (let t = 0; t < a.length; t++) {
4373
4604
  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;
4374
4605
  if (n && r) return !0;
4375
4606
  }
4376
4607
  return !1;
4377
4608
  }
4378
- function Na(a, e, t = "rgb565") {
4609
+ function Va(a, e, t = "rgb565") {
4379
4610
  if (!a || !a.buffer) throw new Error("quantize() expected RGBA Uint8Array data");
4380
4611
  if (!(a instanceof Uint8Array) && !(a instanceof Uint8ClampedArray)) throw new Error("quantize() expected RGBA Uint8Array data");
4381
4612
  if (e.length > 256) throw new Error("applyPalette() only works with 256 colors or less");
4382
4613
  let i = new Uint32Array(a.buffer), n = i.length, r = t === "rgb444" ? 4096 : 65536, s = new Uint8Array(n), o = new Array(r);
4383
4614
  if (t === "rgba4444") for (let l = 0; l < n; l++) {
4384
- let c = i[l], h = c >> 24 & 255, u = c >> 16 & 255, p = c >> 8 & 255, m = c & 255, f = Dr(m, p, u, h), d = f in o ? o[f] : o[f] = $a(m, p, u, h, e);
4615
+ let c = i[l], h = c >> 24 & 255, u = c >> 16 & 255, p = c >> 8 & 255, m = c & 255, f = Rr(m, p, u, h), d = f in o ? o[f] : o[f] = Ha(m, p, u, h, e);
4385
4616
  s[l] = d;
4386
4617
  }
4387
4618
  else {
4388
- let l = t === "rgb444" ? Mr : Ar;
4619
+ let l = t === "rgb444" ? Or : Mr;
4389
4620
  for (let c = 0; c < n; c++) {
4390
- let h = i[c], u = h >> 16 & 255, p = h >> 8 & 255, m = h & 255, f = l(m, p, u), d = f in o ? o[f] : o[f] = Ba(m, p, u, e);
4621
+ let h = i[c], u = h >> 16 & 255, p = h >> 8 & 255, m = h & 255, f = l(m, p, u), d = f in o ? o[f] : o[f] = ja(m, p, u, e);
4391
4622
  s[c] = d;
4392
4623
  }
4393
4624
  }
4394
4625
  return s;
4395
4626
  }
4396
- function $a(a, e, t, i, n) {
4627
+ function Ha(a, e, t, i, n) {
4397
4628
  let r = 0, s = 1e100;
4398
4629
  for (let o = 0; o < n.length; o++) {
4399
- let l = n[o], c = l[3], h = Ge(c - i);
4630
+ let l = n[o], c = l[3], h = Ve(c - i);
4400
4631
  if (h > s) continue;
4401
4632
  let u = l[0];
4402
- if (h += Ge(u - a), h > s) continue;
4633
+ if (h += Ve(u - a), h > s) continue;
4403
4634
  let p = l[1];
4404
- if (h += Ge(p - e), h > s) continue;
4635
+ if (h += Ve(p - e), h > s) continue;
4405
4636
  let m = l[2];
4406
- h += Ge(m - t), !(h > s) && (s = h, r = o);
4637
+ h += Ve(m - t), !(h > s) && (s = h, r = o);
4407
4638
  }
4408
4639
  return r;
4409
4640
  }
4410
- function Ba(a, e, t, i) {
4641
+ function ja(a, e, t, i) {
4411
4642
  let n = 0, r = 1e100;
4412
4643
  for (let s = 0; s < i.length; s++) {
4413
- let o = i[s], l = o[0], c = Ge(l - a);
4644
+ let o = i[s], l = o[0], c = Ve(l - a);
4414
4645
  if (c > r) continue;
4415
4646
  let h = o[1];
4416
- if (c += Ge(h - e), c > r) continue;
4647
+ if (c += Ve(h - e), c > r) continue;
4417
4648
  let u = o[2];
4418
- c += Ge(u - t), !(c > r) && (r = c, n = s);
4649
+ c += Ve(u - t), !(c > r) && (r = c, n = s);
4419
4650
  }
4420
4651
  return n;
4421
4652
  }
4422
- function Ge(a) {
4653
+ function Ve(a) {
4423
4654
  return a * a;
4424
4655
  }
4425
- function Va(a = {}) {
4426
- let { initialCapacity: e = 4096, auto: t = !0 } = a, i = Sr(e), n = 5003, r = new Uint8Array(256), s = new Int32Array(n), o = new Int32Array(n), l = !1;
4656
+ function Ya(a = {}) {
4657
+ 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;
4427
4658
  return { reset() {
4428
4659
  i.reset(), l = !1;
4429
4660
  }, finish() {
4430
- i.writeByte(Oa.trailer);
4661
+ i.writeByte(Ua.trailer);
4431
4662
  }, bytes() {
4432
4663
  return i.bytes();
4433
4664
  }, bytesView() {
@@ -4437,58 +4668,58 @@ function Va(a = {}) {
4437
4668
  }, get stream() {
4438
4669
  return i;
4439
4670
  }, writeHeader: c, writeFrame(h, u, p, m = {}) {
4440
- let { transparent: f = !1, transparentIndex: d = 0, delay: g = 0, palette: _ = null, repeat: y = 0, colorDepth: x = 8, dispose: b = -1 } = m, v = !1;
4441
- if (t ? l || (v = !0, c(), l = !0) : v = !!m.first, u = Math.max(0, Math.floor(u)), p = Math.max(0, Math.floor(p)), v) {
4671
+ let { transparent: f = !1, transparentIndex: d = 0, delay: g = 0, palette: _ = null, repeat: y = 0, colorDepth: x = 8, dispose: E = -1 } = m, b = !1;
4672
+ if (t ? l || (b = !0, c(), l = !0) : b = !!m.first, u = Math.max(0, Math.floor(u)), p = Math.max(0, Math.floor(p)), b) {
4442
4673
  if (!_) throw new Error("First frame must include a { palette } option");
4443
- ja(i, u, p, _, x), yn(i, _), y >= 0 && Ha(i, y);
4674
+ Ka(i, u, p, _, x), xn(i, _), y >= 0 && Xa(i, y);
4444
4675
  }
4445
- let P = Math.round(g / 10);
4446
- Ga(i, b, P, f, d);
4447
- let w = !!_ && !v;
4448
- Ya(i, u, p, w ? _ : null), w && yn(i, _), Za(i, h, u, p, x, r, s, o);
4676
+ let C = Math.round(g / 10);
4677
+ Za(i, E, C, f, d);
4678
+ let v = !!_ && !b;
4679
+ Wa(i, u, p, v ? _ : null), v && xn(i, _), qa(i, h, u, p, x, r, s, o);
4449
4680
  } };
4450
4681
  function c() {
4451
- Rr(i, "GIF89a");
4682
+ Ir(i, "GIF89a");
4452
4683
  }
4453
4684
  }
4454
- function Ga(a, e, t, i, n) {
4685
+ function Za(a, e, t, i, n) {
4455
4686
  a.writeByte(33), a.writeByte(249), a.writeByte(4), n < 0 && (n = 0, i = !1);
4456
4687
  var r, s;
4457
4688
  i ? (r = 1, s = 2) : (r = 0, s = 0), e >= 0 && (s = e & 7), s <<= 2, a.writeByte(0 | s | 0 | r), Me(a, t), a.writeByte(n || 0), a.writeByte(0);
4458
4689
  }
4459
- function ja(a, e, t, i, n = 8) {
4460
- let r = 1, s = 0, o = ji(i.length) - 1, l = r << 7 | n - 1 << 4 | s << 3 | o;
4690
+ function Ka(a, e, t, i, n = 8) {
4691
+ let r = 1, s = 0, o = Hi(i.length) - 1, l = r << 7 | n - 1 << 4 | s << 3 | o;
4461
4692
  Me(a, e), Me(a, t), a.writeBytes([l, 0, 0]);
4462
4693
  }
4463
- function Ha(a, e) {
4464
- a.writeByte(33), a.writeByte(255), a.writeByte(11), Rr(a, "NETSCAPE2.0"), a.writeByte(3), a.writeByte(1), Me(a, e), a.writeByte(0);
4694
+ function Xa(a, e) {
4695
+ a.writeByte(33), a.writeByte(255), a.writeByte(11), Ir(a, "NETSCAPE2.0"), a.writeByte(3), a.writeByte(1), Me(a, e), a.writeByte(0);
4465
4696
  }
4466
- function yn(a, e) {
4467
- let t = 1 << ji(e.length);
4697
+ function xn(a, e) {
4698
+ let t = 1 << Hi(e.length);
4468
4699
  for (let i = 0; i < t; i++) {
4469
4700
  let n = [0, 0, 0];
4470
4701
  i < e.length && (n = e[i]), a.writeByte(n[0]), a.writeByte(n[1]), a.writeByte(n[2]);
4471
4702
  }
4472
4703
  }
4473
- function Ya(a, e, t, i) {
4704
+ function Wa(a, e, t, i) {
4474
4705
  if (a.writeByte(44), Me(a, 0), Me(a, 0), Me(a, e), Me(a, t), i) {
4475
- let n = 0, r = 0, s = ji(i.length) - 1;
4706
+ let n = 0, r = 0, s = Hi(i.length) - 1;
4476
4707
  a.writeByte(128 | n | r | 0 | s);
4477
4708
  } else a.writeByte(0);
4478
4709
  }
4479
- function Za(a, e, t, i, n = 8, r, s, o) {
4480
- Ia(t, i, e, n, a, r, s, o);
4710
+ function qa(a, e, t, i, n = 8, r, s, o) {
4711
+ za(t, i, e, n, a, r, s, o);
4481
4712
  }
4482
4713
  function Me(a, e) {
4483
4714
  a.writeByte(e & 255), a.writeByte(e >> 8 & 255);
4484
4715
  }
4485
- function Rr(a, e) {
4716
+ function Ir(a, e) {
4486
4717
  for (var t = 0; t < e.length; t++) a.writeByte(e.charCodeAt(t));
4487
4718
  }
4488
- function ji(a) {
4719
+ function Hi(a) {
4489
4720
  return Math.max(Math.ceil(Math.log2(a)), 1);
4490
4721
  }
4491
- class Xa {
4722
+ class Qa {
4492
4723
  renderer;
4493
4724
  scene;
4494
4725
  camera;
@@ -4498,22 +4729,94 @@ class Xa {
4498
4729
  recordedChunks = [];
4499
4730
  captureCanvas;
4500
4731
  captureCtx;
4732
+ compositeCanvas;
4733
+ compositeCtx;
4501
4734
  gifWidth = 480;
4502
4735
  gifHeight = 270;
4736
+ legendElement = null;
4737
+ countryLabels = null;
4503
4738
  constructor(e, t, i) {
4504
- this.renderer = e, this.scene = t, this.camera = i, this.captureCanvas = document.createElement("canvas"), this.captureCtx = this.captureCanvas.getContext("2d", { willReadFrequently: !0 });
4739
+ this.renderer = e, this.scene = t, this.camera = i, this.captureCanvas = document.createElement("canvas"), this.captureCtx = this.captureCanvas.getContext("2d", { willReadFrequently: !0 }), this.compositeCanvas = document.createElement("canvas"), this.compositeCtx = this.compositeCanvas.getContext("2d");
4740
+ }
4741
+ /**
4742
+ * Set the legend element to include in exports
4743
+ */
4744
+ setLegendElement(e) {
4745
+ this.legendElement = e;
4746
+ }
4747
+ /**
4748
+ * Set the country labels component to include in exports
4749
+ */
4750
+ setCountryLabels(e) {
4751
+ this.countryLabels = e;
4752
+ }
4753
+ /**
4754
+ * Draw country labels onto canvas
4755
+ */
4756
+ drawCountryLabelsOnCanvas(e, t, i) {
4757
+ if (this.countryLabels)
4758
+ try {
4759
+ this.countryLabels.getVisibleLabelsForCanvas(this.camera, t, i).forEach((r) => {
4760
+ e.save(), e.globalAlpha = r.opacity, e.font = "bold 12px Arial, sans-serif", e.textAlign = "center", e.textBaseline = "middle", e.strokeStyle = "rgba(0, 0, 0, 0.8)", e.lineWidth = 3, e.strokeText(r.text, r.x, r.y), e.fillStyle = "#ffffff", e.fillText(r.text, r.x, r.y), e.restore();
4761
+ });
4762
+ } catch (n) {
4763
+ console.warn("Failed to draw country labels:", n);
4764
+ }
4765
+ }
4766
+ /**
4767
+ * Draw all overlays (legend + country labels) onto canvas
4768
+ */
4769
+ drawOverlaysOnCanvas(e, t, i) {
4770
+ this.drawCountryLabelsOnCanvas(e, t, i), this.drawLegendOnCanvas(e, t, i);
4771
+ }
4772
+ /**
4773
+ * Draw legend onto canvas at specified position
4774
+ */
4775
+ drawLegendOnCanvas(e, t, i) {
4776
+ try {
4777
+ if (!this.legendElement || !this.legendElement.classList.contains("visible")) return;
4778
+ const n = this.legendElement, r = n.querySelector(".legend-title"), s = n.querySelector(".legend-gradient"), o = n.querySelector(".legend-min"), l = n.querySelector(".legend-max"), c = n.querySelector(".legend-description");
4779
+ if (!r || !s) return;
4780
+ const h = 280, u = 100, p = 20, m = t - h - p, f = i - u - p, d = 12;
4781
+ e.fillStyle = "rgba(0, 10, 20, 0.9)", e.strokeStyle = "rgba(100, 170, 255, 0.5)", e.lineWidth = 2, e.beginPath(), e.roundRect ? e.roundRect(m, f, h, u, d) : e.rect(m, f, h, u), e.fill(), e.stroke(), e.fillStyle = "#44aaff", e.font = "bold 18px Arial, sans-serif", e.fillText(r.textContent || "", m + 16, f + 28);
4782
+ const g = m + 16, _ = f + 40, y = h - 32, x = 20, E = s.style.background || "";
4783
+ let b = [];
4784
+ const C = E.match(/rgba?\([^)]+\)/g);
4785
+ if (C && C.length >= 2)
4786
+ b = C;
4787
+ else {
4788
+ const v = E.match(/#[0-9a-fA-F]{3,8}/g);
4789
+ v && v.length >= 2 && (b = v);
4790
+ }
4791
+ if (b.length >= 2) {
4792
+ const v = e.createLinearGradient(g, 0, g + y, 0);
4793
+ v.addColorStop(0, b[0]), b.length >= 3 ? (v.addColorStop(0.5, b[1]), v.addColorStop(1, b[2])) : v.addColorStop(1, b[1]), e.fillStyle = v, e.beginPath(), e.roundRect ? e.roundRect(g, _, y, x, 4) : e.rect(g, _, y, x), e.fill();
4794
+ } else {
4795
+ const v = e.createLinearGradient(g, 0, g + y, 0);
4796
+ v.addColorStop(0, "#cc6600"), v.addColorStop(0.5, "#ffaa44"), v.addColorStop(1, "#ffeecc"), e.fillStyle = v, e.beginPath(), e.roundRect ? e.roundRect(g, _, y, x, 4) : e.rect(g, _, y, x), e.fill(), console.log("Legend gradient style:", E);
4797
+ }
4798
+ if (e.fillStyle = "#cccccc", e.font = "14px Arial, sans-serif", o && e.fillText(o.textContent || "", g, f + 78), l) {
4799
+ const v = l.textContent || "", P = e.measureText(v).width;
4800
+ e.fillText(v, g + y - P, f + 78);
4801
+ }
4802
+ c && c.textContent && (e.fillStyle = "#888888", e.font = "italic 12px Arial, sans-serif", e.fillText(c.textContent, g, f + 95));
4803
+ } catch (n) {
4804
+ console.warn("Failed to draw legend on canvas:", n);
4805
+ }
4505
4806
  }
4506
4807
  /**
4507
- * Capture a single screenshot
4808
+ * Capture a single screenshot (includes legend if visible)
4508
4809
  */
4509
4810
  screenshot(e = {}) {
4510
4811
  const { width: t = 1920, height: i = 1080 } = e, n = this.renderer.domElement.width, r = this.renderer.domElement.height;
4511
- this.renderer.setSize(t, i), this.camera.aspect = t / i, this.camera.updateProjectionMatrix(), this.renderer.render(this.scene, this.camera);
4512
- const s = this.renderer.domElement.toDataURL("image/png");
4812
+ this.renderer.setSize(t, i), this.camera.aspect = t / i, this.camera.updateProjectionMatrix(), this.renderer.render(this.scene, this.camera), this.compositeCanvas.width = t, this.compositeCanvas.height = i, this.compositeCtx.drawImage(this.renderer.domElement, 0, 0), this.drawOverlaysOnCanvas(this.compositeCtx, t, i);
4813
+ const s = this.compositeCanvas.toDataURL("image/png");
4513
4814
  this.renderer.setSize(n, r), this.camera.aspect = n / r, this.camera.updateProjectionMatrix(), this.downloadFile(s, `globe-${Date.now()}.png`);
4514
4815
  }
4515
4816
  /**
4516
4817
  * Start recording video using MediaRecorder
4818
+ * Prefers MP4 format when available, falls back to WebM
4819
+ * Includes legend overlay if visible
4517
4820
  * Returns a promise that resolves when recording has started
4518
4821
  */
4519
4822
  startVideoRecording(e = {}) {
@@ -4522,20 +4825,46 @@ class Xa {
4522
4825
  t();
4523
4826
  return;
4524
4827
  }
4525
- const n = this.renderer.domElement.captureStream(60);
4828
+ const i = this.renderer.domElement;
4829
+ this.compositeCanvas.width = i.width, this.compositeCanvas.height = i.height, this.compositeCtx.drawImage(i, 0, 0), this.drawOverlaysOnCanvas(this.compositeCtx, this.compositeCanvas.width, this.compositeCanvas.height);
4830
+ const n = this.compositeCanvas.captureStream(60), r = [
4831
+ { mime: "video/mp4;codecs=avc1", ext: "mp4" },
4832
+ { mime: "video/mp4", ext: "mp4" },
4833
+ { mime: "video/webm;codecs=h264", ext: "webm" },
4834
+ { mime: "video/webm;codecs=vp9", ext: "webm" },
4835
+ { mime: "video/webm;codecs=vp8", ext: "webm" },
4836
+ { mime: "video/webm", ext: "webm" }
4837
+ ];
4838
+ let s = "video/webm", o = "webm";
4839
+ for (const { mime: c, ext: h } of r)
4840
+ if (MediaRecorder.isTypeSupported(c)) {
4841
+ s = c, o = h, console.log(`Video recording using: ${c}`);
4842
+ break;
4843
+ }
4526
4844
  this.mediaRecorder = new MediaRecorder(n, {
4527
- mimeType: "video/webm;codecs=vp9",
4845
+ mimeType: s,
4528
4846
  videoBitsPerSecond: 8e6
4529
- }), this.recordedChunks = [], this.mediaRecorder.ondataavailable = (r) => {
4530
- r.data.size > 0 && this.recordedChunks.push(r.data);
4847
+ }), this.recordedChunks = [];
4848
+ const l = o;
4849
+ this.mediaRecorder.ondataavailable = (c) => {
4850
+ c.data.size > 0 && this.recordedChunks.push(c.data);
4531
4851
  }, this.mediaRecorder.onstop = () => {
4532
- const r = new Blob(this.recordedChunks, { type: "video/webm" }), s = URL.createObjectURL(r);
4533
- this.downloadFile(s, `globe-${Date.now()}.webm`), URL.revokeObjectURL(s);
4852
+ const c = s.split(";")[0], h = new Blob(this.recordedChunks, { type: c }), u = URL.createObjectURL(h);
4853
+ this.downloadFile(u, `globe-${Date.now()}.${l}`), URL.revokeObjectURL(u);
4534
4854
  }, this.mediaRecorder.onstart = () => {
4535
- this.isRecording = !0, t();
4855
+ this.isRecording = !0, setTimeout(() => t(), 50);
4536
4856
  }, this.mediaRecorder.start(100);
4537
4857
  });
4538
4858
  }
4859
+ /**
4860
+ * Update video frame - call this in animation loop while recording video
4861
+ * Composites the renderer output with the legend overlay
4862
+ */
4863
+ updateVideoFrame() {
4864
+ if (!this.isRecording || !this.mediaRecorder) return;
4865
+ const e = this.compositeCanvas.width, t = this.compositeCanvas.height;
4866
+ this.compositeCtx.drawImage(this.renderer.domElement, 0, 0, e, t), this.drawOverlaysOnCanvas(this.compositeCtx, e, t);
4867
+ }
4539
4868
  /**
4540
4869
  * Stop video recording
4541
4870
  */
@@ -4553,12 +4882,12 @@ class Xa {
4553
4882
  }
4554
4883
  /**
4555
4884
  * Capture a single GIF frame (call this in animation loop)
4556
- * Captures RGBA data directly from canvas
4885
+ * Captures RGBA data directly from canvas, includes legend if visible
4557
4886
  */
4558
4887
  captureGifFrame() {
4559
4888
  if (!this.isRecording) return;
4560
4889
  const e = this.renderer.domElement, t = this.gifWidth, i = this.gifHeight;
4561
- this.captureCtx.drawImage(e, 0, 0, t, i);
4890
+ this.captureCtx.drawImage(e, 0, 0, t, i), this.drawOverlaysOnCanvas(this.captureCtx, t, i);
4562
4891
  const n = this.captureCtx.getImageData(0, 0, t, i);
4563
4892
  this.frames.push({
4564
4893
  data: new Uint8ClampedArray(n.data),
@@ -4579,9 +4908,9 @@ class Xa {
4579
4908
  const { fps: t = 20, filename: i } = e, n = Math.round(1e3 / t);
4580
4909
  console.log(`Generating GIF with ${this.frames.length} frames at ${t} fps...`);
4581
4910
  try {
4582
- const r = this.frames[0], s = r.width, o = r.height, l = Fa(r.data, 256), c = Va();
4911
+ const r = this.frames[0], s = r.width, o = r.height, l = Ba(r.data, 256), c = Ya();
4583
4912
  for (let f = 0; f < this.frames.length; f++) {
4584
- const d = this.frames[f], g = Na(d.data, l);
4913
+ const d = this.frames[f], g = Va(d.data, l);
4585
4914
  c.writeFrame(g, s, o, {
4586
4915
  palette: f === 0 ? l : void 0,
4587
4916
  // Only first frame needs palette
@@ -4615,7 +4944,7 @@ class Xa {
4615
4944
  i.href = e, i.download = t, i.style.display = "none", document.body.appendChild(i), i.click(), document.body.removeChild(i);
4616
4945
  }
4617
4946
  }
4618
- class Wa extends Ur {
4947
+ class Ja extends Nr {
4619
4948
  /**
4620
4949
  * Constructs a new CSS2D object.
4621
4950
  *
@@ -4632,8 +4961,8 @@ class Wa extends Ur {
4632
4961
  return super.copy(e, t), this.element = e.element.cloneNode(!0), this.center = e.center, this;
4633
4962
  }
4634
4963
  }
4635
- const qe = new se(), xn = new Cn(), bn = new Cn(), vn = new se(), En = new se();
4636
- class Ka {
4964
+ const qe = new se(), bn = new An(), En = new An(), vn = new se(), wn = new se();
4965
+ class eo {
4637
4966
  /**
4638
4967
  * Constructs a new CSS2D renderer.
4639
4968
  *
@@ -4651,7 +4980,7 @@ class Ka {
4651
4980
  height: n
4652
4981
  };
4653
4982
  }, this.render = function(f, d) {
4654
- f.matrixWorldAutoUpdate === !0 && f.updateMatrixWorld(), d.parent === null && d.matrixWorldAutoUpdate === !0 && d.updateMatrixWorld(), xn.copy(d.matrixWorldInverse), bn.multiplyMatrices(d.projectionMatrix, xn), h(f, f, d), this.sortObjects && m(f);
4983
+ f.matrixWorldAutoUpdate === !0 && f.updateMatrixWorld(), d.parent === null && d.matrixWorldAutoUpdate === !0 && d.updateMatrixWorld(), bn.copy(d.matrixWorldInverse), En.multiplyMatrices(d.projectionMatrix, bn), h(f, f, d), this.sortObjects && m(f);
4655
4984
  }, this.setSize = function(f, d) {
4656
4985
  i = f, n = d, r = i / 2, s = n / 2, l.style.width = f + "px", l.style.height = d + "px";
4657
4986
  };
@@ -4666,7 +4995,7 @@ class Ka {
4666
4995
  return;
4667
4996
  }
4668
4997
  if (f.isCSS2DObject) {
4669
- qe.setFromMatrixPosition(f.matrixWorld), qe.applyMatrix4(bn);
4998
+ qe.setFromMatrixPosition(f.matrixWorld), qe.applyMatrix4(En);
4670
4999
  const _ = qe.z >= -1 && qe.z <= 1 && f.layers.test(g.layers) === !0, y = f.element;
4671
5000
  y.style.display = _ === !0 ? "" : "none", _ === !0 && (f.onBeforeRender(t, d, g), y.style.transform = "translate(" + -100 * f.center.x + "%," + -100 * f.center.y + "%)translate(" + (qe.x * r + r) + "px," + (-qe.y * s + s) + "px)", y.parentNode !== l && l.appendChild(y), f.onAfterRender(t, d, g));
4672
5001
  const x = {
@@ -4678,7 +5007,7 @@ class Ka {
4678
5007
  h(f.children[_], d, g);
4679
5008
  }
4680
5009
  function u(f, d) {
4681
- return vn.setFromMatrixPosition(f.matrixWorld), En.setFromMatrixPosition(d.matrixWorld), vn.distanceToSquared(En);
5010
+ return vn.setFromMatrixPosition(f.matrixWorld), wn.setFromMatrixPosition(d.matrixWorld), vn.distanceToSquared(wn);
4682
5011
  }
4683
5012
  function p(f) {
4684
5013
  const d = [];
@@ -4690,15 +5019,15 @@ class Ka {
4690
5019
  const d = p(f).sort(function(_, y) {
4691
5020
  if (_.renderOrder !== y.renderOrder)
4692
5021
  return y.renderOrder - _.renderOrder;
4693
- const x = o.objects.get(_).distanceToCameraSquared, b = o.objects.get(y).distanceToCameraSquared;
4694
- return x - b;
5022
+ const x = o.objects.get(_).distanceToCameraSquared, E = o.objects.get(y).distanceToCameraSquared;
5023
+ return x - E;
4695
5024
  }), g = d.length;
4696
5025
  for (let _ = 0, y = d.length; _ < y; _++)
4697
5026
  d[_].element.style.zIndex = g - _;
4698
5027
  }
4699
5028
  }
4700
5029
  }
4701
- const qa = {
5030
+ const to = {
4702
5031
  // Major economies
4703
5032
  CN: [35, 105],
4704
5033
  IN: [22, 78],
@@ -4797,7 +5126,7 @@ const qa = {
4797
5126
  UY: [-33, -56],
4798
5127
  CR: [10, -84],
4799
5128
  PA: [9, -80]
4800
- }, Qa = /* @__PURE__ */ new Set([
5129
+ }, io = /* @__PURE__ */ new Set([
4801
5130
  "CN",
4802
5131
  "IN",
4803
5132
  "US",
@@ -4828,7 +5157,7 @@ const qa = {
4828
5157
  "PK",
4829
5158
  "BD",
4830
5159
  "VN"
4831
- ]), Ja = /* @__PURE__ */ new Set([
5160
+ ]), no = /* @__PURE__ */ new Set([
4832
5161
  "CN",
4833
5162
  "IN",
4834
5163
  "US",
@@ -4836,7 +5165,7 @@ const qa = {
4836
5165
  "RU",
4837
5166
  "AU",
4838
5167
  "CA"
4839
- ]), eo = /* @__PURE__ */ new Set(["RU", "CA", "US", "CN", "BR", "AU"]), to = /* @__PURE__ */ new Set([
5168
+ ]), ro = /* @__PURE__ */ new Set(["RU", "CA", "US", "CN", "BR", "AU"]), so = /* @__PURE__ */ new Set([
4840
5169
  "IN",
4841
5170
  "AR",
4842
5171
  "KZ",
@@ -4867,7 +5196,7 @@ const qa = {
4867
5196
  "TR",
4868
5197
  "CL",
4869
5198
  "MM"
4870
- ]), io = /* @__PURE__ */ new Set([
5199
+ ]), ao = /* @__PURE__ */ new Set([
4871
5200
  "AF",
4872
5201
  "UA",
4873
5202
  "MG",
@@ -4909,7 +5238,7 @@ const qa = {
4909
5238
  "IQ",
4910
5239
  "BD"
4911
5240
  ]);
4912
- class no {
5241
+ class oo {
4913
5242
  labelRenderer;
4914
5243
  labels = [];
4915
5244
  labelGroup;
@@ -4919,7 +5248,7 @@ class no {
4919
5248
  globe = null;
4920
5249
  camera = null;
4921
5250
  constructor(e, t) {
4922
- this.sphereRadius = t, this.labelRenderer = new Ka(), this.labelRenderer.setSize(window.innerWidth, window.innerHeight), this.labelRenderer.domElement.style.position = "absolute", this.labelRenderer.domElement.style.top = "0", this.labelRenderer.domElement.style.left = "0", this.labelRenderer.domElement.style.pointerEvents = "none", e.appendChild(this.labelRenderer.domElement), this.labelGroup = new M.Group(), this.injectStyles(), this.createLabels();
5251
+ this.sphereRadius = t, this.labelRenderer = new eo(), this.labelRenderer.setSize(window.innerWidth, window.innerHeight), this.labelRenderer.domElement.style.position = "absolute", this.labelRenderer.domElement.style.top = "0", this.labelRenderer.domElement.style.left = "0", this.labelRenderer.domElement.style.pointerEvents = "none", e.appendChild(this.labelRenderer.domElement), this.labelGroup = new S.Group(), this.injectStyles(), this.createLabels();
4923
5252
  }
4924
5253
  injectStyles() {
4925
5254
  const e = document.createElement("style");
@@ -5006,15 +5335,15 @@ class no {
5006
5335
  `, document.head.appendChild(e);
5007
5336
  }
5008
5337
  getSizeCategory(e) {
5009
- return eo.has(e) ? "large" : to.has(e) ? "medium" : io.has(e) ? "small" : "tiny";
5338
+ return ro.has(e) ? "large" : so.has(e) ? "medium" : ao.has(e) ? "small" : "tiny";
5010
5339
  }
5011
5340
  createLabels() {
5012
5341
  Tr.forEach((e) => {
5013
- const t = qa[e.code];
5342
+ const t = to[e.code];
5014
5343
  if (!t) return;
5015
5344
  const [i, n] = t, r = this.getSizeCategory(e.code), s = document.createElement("div");
5016
5345
  s.className = `country-label hidden size-${r}`, s.textContent = e.name;
5017
- const o = new Wa(s), l = {
5346
+ const o = new Ja(s), l = {
5018
5347
  element: s,
5019
5348
  object: o,
5020
5349
  country: e,
@@ -5025,8 +5354,8 @@ class no {
5025
5354
  this.labelGroup.add(o), this.labels.push(l), this.updateLabelPosition(o, l, this.currentMorph);
5026
5355
  });
5027
5356
  }
5028
- tempVector = new M.Vector3();
5029
- cameraDirection = new M.Vector3();
5357
+ tempVector = new S.Vector3();
5358
+ cameraDirection = new S.Vector3();
5030
5359
  updateLabelPosition(e, t, i) {
5031
5360
  const { lat: n, lon: r, element: s } = t, o = n * Math.PI / 180, l = r * Math.PI / 180, c = this.sphereRadius + 0.5, h = c * Math.cos(o) * Math.sin(l), u = c * Math.sin(o), p = c * Math.cos(o) * Math.cos(l), m = 2 * Math.PI * this.sphereRadius, f = Math.PI * this.sphereRadius, d = (r + 180) / 360, g = (n + 90) / 180, _ = (d - 0.5) * m, y = (g - 0.5) * f, x = 0.5;
5032
5361
  if (this.globe && i > 0.01)
@@ -5036,8 +5365,8 @@ class no {
5036
5365
  this.tempVector.z * i + x * (1 - i)
5037
5366
  ), this.camera && i > 0.5) {
5038
5367
  this.cameraDirection.copy(this.camera.position).normalize();
5039
- const P = this.tempVector.clone().normalize().dot(this.cameraDirection) > -0.1;
5040
- s.style.opacity = P ? "" : "0";
5368
+ const C = this.tempVector.clone().normalize().dot(this.cameraDirection) > 0.15;
5369
+ s.style.opacity = C ? "" : "0";
5041
5370
  } else
5042
5371
  s.style.opacity = "";
5043
5372
  else
@@ -5065,10 +5394,10 @@ class no {
5065
5394
  n = !1;
5066
5395
  break;
5067
5396
  case "minimal":
5068
- n = Ja.has(i);
5397
+ n = no.has(i);
5069
5398
  break;
5070
5399
  case "major":
5071
- n = Qa.has(i);
5400
+ n = io.has(i);
5072
5401
  break;
5073
5402
  case "all":
5074
5403
  case "capitals":
@@ -5122,6 +5451,25 @@ class no {
5122
5451
  getStyle() {
5123
5452
  return this.currentStyle;
5124
5453
  }
5454
+ /**
5455
+ * Get visible labels with their screen positions for canvas rendering
5456
+ */
5457
+ getVisibleLabelsForCanvas(e, t, i) {
5458
+ if (this.currentStyle === "none") return [];
5459
+ const n = [], r = new S.Vector3();
5460
+ return this.labels.forEach((s) => {
5461
+ const o = s.element.style.opacity, l = o === "" ? 1 : parseFloat(o) || 0;
5462
+ if (l < 0.1 || s.element.classList.contains("hidden")) return;
5463
+ s.object.getWorldPosition(r), r.project(e);
5464
+ const c = (r.x * 0.5 + 0.5) * t, h = (-r.y * 0.5 + 0.5) * i;
5465
+ c >= 0 && c <= t && h >= 0 && h <= i && r.z < 1 && n.push({
5466
+ text: s.country.name,
5467
+ x: c,
5468
+ y: h,
5469
+ opacity: l
5470
+ });
5471
+ }), n;
5472
+ }
5125
5473
  /**
5126
5474
  * Dispose resources
5127
5475
  */
@@ -5242,7 +5590,7 @@ const wi = {
5242
5590
  }
5243
5591
  };
5244
5592
  wi.lifeExpectancy;
5245
- const Be = 50, ro = `
5593
+ const Be = 50, lo = `
5246
5594
  uniform float uMorph;
5247
5595
  uniform float uTime;
5248
5596
  uniform float uParchment;
@@ -5452,7 +5800,7 @@ void main() {
5452
5800
 
5453
5801
  gl_Position = projectionMatrix * modelViewMatrix * vec4(pos, 1.0);
5454
5802
  }
5455
- `, so = `
5803
+ `, ho = `
5456
5804
  uniform sampler2D uTexture;
5457
5805
  uniform sampler2D uDataTexture;
5458
5806
  uniform sampler2D uCloudTexture;
@@ -5609,7 +5957,7 @@ void main() {
5609
5957
 
5610
5958
  gl_FragColor = vec4(color, 1.0);
5611
5959
  }
5612
- `, ao = `
5960
+ `, co = `
5613
5961
  varying vec3 vNormal;
5614
5962
  varying vec3 vPosition;
5615
5963
  uniform float uMorph;
@@ -5644,7 +5992,7 @@ void main() {
5644
5992
  vPosition = pos;
5645
5993
  gl_Position = projectionMatrix * modelViewMatrix * vec4(pos, 1.0);
5646
5994
  }
5647
- `, oo = `
5995
+ `, uo = `
5648
5996
  varying vec3 vNormal;
5649
5997
  varying vec3 vPosition;
5650
5998
  uniform float uMorph;
@@ -5659,7 +6007,7 @@ void main() {
5659
6007
 
5660
6008
  gl_FragColor = vec4(color, intensity * 0.6);
5661
6009
  }
5662
- `, lo = `
6010
+ `, po = `
5663
6011
  attribute float aSize;
5664
6012
  attribute float aPhase;
5665
6013
  uniform float uTime;
@@ -5676,7 +6024,7 @@ void main() {
5676
6024
  gl_PointSize = aSize * (300.0 / -mvPosition.z) * twinkle;
5677
6025
  gl_Position = projectionMatrix * mvPosition;
5678
6026
  }
5679
- `, ho = `
6027
+ `, fo = `
5680
6028
  varying float vOpacity;
5681
6029
 
5682
6030
  void main() {
@@ -5686,7 +6034,7 @@ void main() {
5686
6034
 
5687
6035
  gl_FragColor = vec4(1.0, 1.0, 1.0, alpha * vOpacity * 0.9);
5688
6036
  }
5689
- `, wn = {
6037
+ `, Cn = {
5690
6038
  satellite: "https://raw.githubusercontent.com/mrdoob/three.js/dev/examples/textures/planets/earth_atmos_2048.jpg",
5691
6039
  natural: "https://raw.githubusercontent.com/mrdoob/three.js/dev/examples/textures/planets/earth_day_4096.jpg",
5692
6040
  dark: "https://raw.githubusercontent.com/mrdoob/three.js/dev/examples/textures/planets/earth_lights_2048.png",
@@ -5709,7 +6057,7 @@ void main() {
5709
6057
  },
5710
6058
  extrudeHeight: !1
5711
6059
  };
5712
- class uo {
6060
+ class _o {
5713
6061
  container;
5714
6062
  config;
5715
6063
  // Three.js core
@@ -5728,7 +6076,7 @@ class uo {
5728
6076
  legend = null;
5729
6077
  exporter = null;
5730
6078
  countryLabels = null;
5731
- textureLoader = new M.TextureLoader();
6079
+ textureLoader = new S.TextureLoader();
5732
6080
  dataTexture = null;
5733
6081
  // State
5734
6082
  morph = 0;
@@ -5755,24 +6103,24 @@ class uo {
5755
6103
  }
5756
6104
  async init() {
5757
6105
  const e = this.config.width || this.container.clientWidth || 800, t = this.config.height || this.container.clientHeight || 600;
5758
- this.scene = new M.Scene(), this.scene.background = new M.Color(2066), this.camera = new M.PerspectiveCamera(50, e / t, 1, 1e3), this.camera.position.set(0, 0, this.config.initialView === "flat" ? 350 : 150), this.renderer = new M.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 zr(this.camera, this.renderer.domElement), this.controls.enableDamping = !0, this.controls.minDistance = 80, this.controls.maxDistance = 400, this.choropleth = new Ma(), this.config.showLegend && (this.legend = new Ra()), await this.createGlobe(), this.createStars(), this.config.effects.atmosphere && this.createAtmosphere(), this.countryLabels = new no(this.container, Be), 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 Xa(this.renderer, this.scene, this.camera), this.config.showControls && this.createGUI(), await this.choropleth.waitForLoad(), this.setStatistic(this.config.statistic), this.morph = this.config.initialView === "globe" ? 1 : 0, this.material && (this.material.uniforms.uMorph.value = this.morph), this.countryLabels?.setMorph(this.morph), window.addEventListener("resize", this.handleResize), window.addEventListener("keydown", this.handleKeydown), this.animate();
6106
+ this.scene = new S.Scene(), this.scene.background = new S.Color(2066), this.camera = new S.PerspectiveCamera(50, e / t, 1, 1e3), this.camera.position.set(0, 0, this.config.initialView === "flat" ? 350 : 150), this.renderer = new S.WebGLRenderer({ antialias: !0 }), this.renderer.setSize(e, t), this.renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2)), this.container.appendChild(this.renderer.domElement), this.controls = new $r(this.camera, this.renderer.domElement), this.controls.enableDamping = !0, this.controls.minDistance = 80, this.controls.maxDistance = 400, this.choropleth = new La(), this.config.showLegend && (this.legend = new ka()), await this.createGlobe(), this.createStars(), this.config.effects.atmosphere && this.createAtmosphere(), this.countryLabels = new oo(this.container, Be), 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 Qa(this.renderer, this.scene, this.camera), this.config.showControls && this.createGUI(), await this.choropleth.waitForLoad(), this.setStatistic(this.config.statistic), this.morph = this.config.initialView === "globe" ? 1 : 0, this.material && (this.material.uniforms.uMorph.value = this.morph), this.countryLabels?.setMorph(this.morph), window.addEventListener("resize", this.handleResize), window.addEventListener("keydown", this.handleKeydown), this.animate();
5759
6107
  }
5760
6108
  async createGlobe() {
5761
6109
  const e = await this.textureLoader.loadAsync(
5762
- wn[this.config.texture]
6110
+ Cn[this.config.texture]
5763
6111
  );
5764
- e.anisotropy = this.renderer.capabilities.getMaxAnisotropy(), e.minFilter = M.LinearMipmapLinearFilter, e.magFilter = M.LinearFilter;
6112
+ e.anisotropy = this.renderer.capabilities.getMaxAnisotropy(), e.minFilter = S.LinearMipmapLinearFilter, e.magFilter = S.LinearFilter;
5765
6113
  const t = document.createElement("canvas");
5766
- t.width = 2048, t.height = 1024, this.dataTexture = new M.CanvasTexture(t);
5767
- const i = new M.PlaneGeometry(
6114
+ t.width = 2048, t.height = 1024, this.dataTexture = new S.CanvasTexture(t);
6115
+ const i = new S.PlaneGeometry(
5768
6116
  Math.PI * 2 * Be,
5769
6117
  Math.PI * Be,
5770
6118
  256,
5771
6119
  128
5772
6120
  );
5773
- this.material = new M.ShaderMaterial({
5774
- vertexShader: ro,
5775
- fragmentShader: so,
6121
+ this.material = new S.ShaderMaterial({
6122
+ vertexShader: lo,
6123
+ fragmentShader: ho,
5776
6124
  uniforms: {
5777
6125
  // Core uniforms
5778
6126
  uMorph: { value: 0 },
@@ -5787,7 +6135,7 @@ class uo {
5787
6135
  uDataOpacity: { value: 0 },
5788
6136
  uDataOverlay: { value: 0 },
5789
6137
  uExtrudeHeight: { value: this.config.extrudeHeight ? 1 : 0 },
5790
- uSunDir: { value: new M.Vector3(1, 0.5, 1).normalize() },
6138
+ uSunDir: { value: new S.Vector3(1, 0.5, 1).normalize() },
5791
6139
  // Effect uniforms
5792
6140
  uClouds: { value: this.config.effects.clouds ? 1 : 0 },
5793
6141
  uCloudSpeed: { value: this.config.effects.cloudSpeed || 1 },
@@ -5805,57 +6153,57 @@ class uo {
5805
6153
  uScanEffect: { value: 0 },
5806
6154
  uScanSpeed: { value: 1 },
5807
6155
  uHologram: { value: this.config.effects.hologramMode ? 1 : 0 },
5808
- uHologramColor: { value: new M.Color(65535) },
6156
+ uHologramColor: { value: new S.Color(65535) },
5809
6157
  uVintage: { value: this.config.effects.vintageMode ? 1 : 0 },
5810
6158
  uThermal: { value: this.config.effects.thermalMode ? 1 : 0 },
5811
6159
  uBlueprint: { value: this.config.effects.blueprintMode ? 1 : 0 },
5812
6160
  uGlowPulse: { value: this.config.effects.glowPulse ? 1 : 0 },
5813
- uGlowColor: { value: new M.Color(4491519) }
6161
+ uGlowColor: { value: new S.Color(4491519) }
5814
6162
  },
5815
- side: M.DoubleSide
5816
- }), this.globe = new M.Mesh(i, this.material), this.scene.add(this.globe);
6163
+ side: S.DoubleSide
6164
+ }), this.globe = new S.Mesh(i, this.material), this.scene.add(this.globe);
5817
6165
  }
5818
6166
  createAtmosphere() {
5819
- const e = new M.PlaneGeometry(
6167
+ const e = new S.PlaneGeometry(
5820
6168
  Math.PI * 2 * Be * 1.15,
5821
6169
  Math.PI * Be * 1.15,
5822
6170
  128,
5823
6171
  64
5824
- ), t = new M.ShaderMaterial({
5825
- vertexShader: ao,
5826
- fragmentShader: oo,
6172
+ ), t = new S.ShaderMaterial({
6173
+ vertexShader: co,
6174
+ fragmentShader: uo,
5827
6175
  uniforms: {
5828
6176
  uMorph: { value: 0 }
5829
6177
  },
5830
- side: M.BackSide,
6178
+ side: S.BackSide,
5831
6179
  transparent: !0,
5832
- blending: M.AdditiveBlending,
6180
+ blending: S.AdditiveBlending,
5833
6181
  depthWrite: !1
5834
6182
  });
5835
- this.atmosphere = new M.Mesh(e, t), this.scene.add(this.atmosphere);
6183
+ this.atmosphere = new S.Mesh(e, t), this.scene.add(this.atmosphere);
5836
6184
  }
5837
6185
  createStars() {
5838
- const t = new M.BufferGeometry(), i = new Float32Array(3e3 * 3), n = new Float32Array(3e3), r = new Float32Array(3e3);
6186
+ const t = new S.BufferGeometry(), i = new Float32Array(3e3 * 3), n = new Float32Array(3e3), r = new Float32Array(3e3);
5839
6187
  for (let o = 0; o < 3e3; o++) {
5840
6188
  const l = 300 + Math.random() * 300, c = Math.random() * Math.PI * 2, h = Math.acos(2 * Math.random() - 1);
5841
6189
  i[o * 3] = l * Math.sin(h) * Math.cos(c), i[o * 3 + 1] = l * Math.sin(h) * Math.sin(c), i[o * 3 + 2] = l * Math.cos(h), n[o] = 0.5 + Math.random() * 1.5, r[o] = Math.random() * Math.PI * 2;
5842
6190
  }
5843
- t.setAttribute("position", new M.BufferAttribute(i, 3)), t.setAttribute("aSize", new M.BufferAttribute(n, 1)), t.setAttribute("aPhase", new M.BufferAttribute(r, 1));
5844
- const s = new M.ShaderMaterial({
5845
- vertexShader: lo,
5846
- fragmentShader: ho,
6191
+ t.setAttribute("position", new S.BufferAttribute(i, 3)), t.setAttribute("aSize", new S.BufferAttribute(n, 1)), t.setAttribute("aPhase", new S.BufferAttribute(r, 1));
6192
+ const s = new S.ShaderMaterial({
6193
+ vertexShader: po,
6194
+ fragmentShader: fo,
5847
6195
  uniforms: {
5848
6196
  uTime: { value: 0 },
5849
6197
  uTwinkle: { value: this.config.effects.starTwinkle ? 1 : 0 }
5850
6198
  },
5851
6199
  transparent: !0,
5852
- blending: M.AdditiveBlending,
6200
+ blending: S.AdditiveBlending,
5853
6201
  depthWrite: !1
5854
6202
  });
5855
- this.stars = new M.Points(t, s), this.scene.add(this.stars);
6203
+ this.stars = new S.Points(t, s), this.scene.add(this.stars);
5856
6204
  }
5857
6205
  createGUI() {
5858
- this.gui = new Gi({ title: "Globe Controls", width: 300 });
6206
+ this.gui = new Vi({ title: "Globe Controls", width: 300 });
5859
6207
  const e = this.gui.addFolder("View");
5860
6208
  e.add({ toGlobe: () => this.toGlobe() }, "toGlobe").name("→ Globe"), e.add({ toFlat: () => this.toFlat() }, "toFlat").name("→ Flat Map"), e.add({ morph: this.morph }, "morph", 0, 1).name("Morph").onChange((r) => this.setMorph(r)), e.open();
5861
6209
  const t = this.gui.addFolder("Statistics"), i = Object.keys(wi);
@@ -5919,11 +6267,11 @@ class uo {
5919
6267
  return;
5920
6268
  }
5921
6269
  this.currentStatistic = e;
5922
- const i = Aa.find((n) => n.id === e);
6270
+ const i = Ma.find((n) => n.id === e);
5923
6271
  if (i && this.choropleth) {
5924
6272
  const n = this.choropleth.renderTexture(i);
5925
6273
  if (this.material && n) {
5926
- const r = new M.CanvasTexture(n);
6274
+ const r = new S.CanvasTexture(n);
5927
6275
  r.needsUpdate = !0, this.material.uniforms.uDataTexture.value = r, this.material.uniforms.uDataOverlay.value = 1, this.material.uniforms.uDataOpacity.value = 0.7;
5928
6276
  }
5929
6277
  }
@@ -5937,7 +6285,7 @@ class uo {
5937
6285
  t.definition.domain
5938
6286
  );
5939
6287
  if (this.material && i) {
5940
- const n = new M.CanvasTexture(i);
6288
+ const n = new S.CanvasTexture(i);
5941
6289
  n.needsUpdate = !0, this.material.uniforms.uDataTexture.value = n, this.material.uniforms.uDataOverlay.value = 1, this.material.uniforms.uDataOpacity.value = 0.7;
5942
6290
  }
5943
6291
  }
@@ -5948,11 +6296,11 @@ class uo {
5948
6296
  this.countryLabels?.setStyle(e);
5949
6297
  }
5950
6298
  async setTexture(e) {
5951
- const t = wn[e];
6299
+ const t = Cn[e];
5952
6300
  if (!(!t || !this.material))
5953
6301
  try {
5954
6302
  const i = await this.textureLoader.loadAsync(t);
5955
- i.anisotropy = this.renderer.capabilities.getMaxAnisotropy(), i.minFilter = M.LinearMipmapLinearFilter, i.magFilter = M.LinearFilter, this.material.uniforms.uTexture.value = i;
6303
+ i.anisotropy = this.renderer.capabilities.getMaxAnisotropy(), i.minFilter = S.LinearMipmapLinearFilter, i.magFilter = S.LinearFilter, this.material.uniforms.uTexture.value = i;
5956
6304
  } catch (i) {
5957
6305
  console.error("Failed to load texture:", e, i);
5958
6306
  }
@@ -5988,7 +6336,11 @@ class uo {
5988
6336
  }
5989
6337
  export {
5990
6338
  wi as BUILT_IN_STATISTICS,
5991
- uo as GlobeViz,
5992
- Tr as WORLD_STATISTICS
6339
+ _o as GlobeViz,
6340
+ Tr as WORLD_STATISTICS,
6341
+ Sr as createFormatter,
6342
+ go as formatValue,
6343
+ Ia as normalizeCountryValues,
6344
+ gn as toNumericCode
5993
6345
  };
5994
6346
  //# sourceMappingURL=gralobe.js.map