@devstgo/stgo-salta-components-react 0.1.7 → 0.1.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.
@@ -1,15 +1,15 @@
1
1
  import * as g from "react";
2
2
  import Au, { createContext as Ke, useRef as Te, useLayoutEffect as Lu, useEffect as ne, useId as Ti, useContext as ye, useInsertionEffect as Si, useMemo as jt, useCallback as dn, Children as Vu, isValidElement as Ou, useState as O, Fragment as va, createElement as Du, forwardRef as _u, Component as Fu } from "react";
3
3
  import * as Ni from "lucide-react";
4
- import { Grid2x2 as wa, ChevronUp as Ta, ChevronDown as ki, X as dt, Mail as $u, Calendar as Bu, Camera as zu, Music as Wu, Map as Yu, Settings as Uu, Cloud as Hu, Phone as Xu, MessageSquare as Gu, AppWindow as Ku, FileText as Zu, ImageIcon as qu, ChevronLeft as hn, ChevronRight as fn, Check as Sa, Layers as Pt, Play as Ju, Plus as Qu, Minus as ed, LinkIcon as xs, Languages as td, Presentation as nd, Zap as So, Ship as sd, Network as id, BookOpen as od, Globe as rd, Cpu as ad, GitMerge as ld, Box as cd, Gauge as ud, Flame as dd, Scale as hd, ArrowLeft as Gn, Home as fd, Video as md, ExternalLink as pd } from "lucide-react";
4
+ import { Grid2x2 as wa, ChevronUp as Ta, ChevronDown as Ei, X as dt, Mail as $u, Calendar as Bu, Camera as zu, Music as Wu, Map as Yu, Settings as Uu, Cloud as Hu, Phone as Xu, MessageSquare as Gu, AppWindow as Ku, FileText as Zu, ImageIcon as qu, ChevronLeft as hn, ChevronRight as fn, Check as Sa, Layers as Pt, Play as Ju, Plus as Qu, Minus as ed, LinkIcon as xs, Languages as td, Presentation as nd, Zap as So, Ship as sd, Network as id, BookOpen as od, Globe as rd, Cpu as ad, GitMerge as ld, Box as cd, Gauge as ud, Flame as dd, Scale as hd, ArrowLeft as Gn, Home as fd, Video as md, ExternalLink as pd } from "lucide-react";
5
5
  import { useNavigate as nt, useLocation as wn, useSearchParams as gd, Outlet as is, useParams as Na } from "react-router-dom";
6
6
  import { useTranslation as Xt } from "react-i18next";
7
- import { createPortal as ka } from "react-dom";
7
+ import { createPortal as Ea } from "react-dom";
8
8
  import { t as bd } from "i18next";
9
- let Ea;
9
+ let ka;
10
10
  const Cy = (e) => {
11
- Ea = e;
12
- }, we = () => Ea;
11
+ ka = e;
12
+ }, we = () => ka;
13
13
  var Mn = { exports: {} }, nn = {};
14
14
  var No;
15
15
  function yd() {
@@ -34,9 +34,9 @@ function yd() {
34
34
  return nn.Fragment = t, nn.jsx = n, nn.jsxs = n, nn;
35
35
  }
36
36
  var sn = {};
37
- var ko;
37
+ var Eo;
38
38
  function xd() {
39
- return ko || (ko = 1, process.env.NODE_ENV !== "production" && (function() {
39
+ return Eo || (Eo = 1, process.env.NODE_ENV !== "production" && (function() {
40
40
  function e(T) {
41
41
  if (T == null) return null;
42
42
  if (typeof T == "function")
@@ -49,7 +49,7 @@ function xd() {
49
49
  return "Profiler";
50
50
  case y:
51
51
  return "StrictMode";
52
- case E:
52
+ case k:
53
53
  return "Suspense";
54
54
  case S:
55
55
  return "SuspenseList";
@@ -64,7 +64,7 @@ function xd() {
64
64
  return "Portal";
65
65
  case I:
66
66
  return T.displayName || "Context";
67
- case k:
67
+ case E:
68
68
  return (T._context.displayName || "Context") + ".Consumer";
69
69
  case M:
70
70
  var A = T.render;
@@ -230,7 +230,7 @@ React keys must be passed directly to JSX without using spread:
230
230
  function f(T) {
231
231
  return typeof T == "object" && T !== null && T.$$typeof === p;
232
232
  }
233
- var m = Au, p = /* @__PURE__ */ Symbol.for("react.transitional.element"), b = /* @__PURE__ */ Symbol.for("react.portal"), x = /* @__PURE__ */ Symbol.for("react.fragment"), y = /* @__PURE__ */ Symbol.for("react.strict_mode"), N = /* @__PURE__ */ Symbol.for("react.profiler"), k = /* @__PURE__ */ Symbol.for("react.consumer"), I = /* @__PURE__ */ Symbol.for("react.context"), M = /* @__PURE__ */ Symbol.for("react.forward_ref"), E = /* @__PURE__ */ Symbol.for("react.suspense"), S = /* @__PURE__ */ Symbol.for("react.suspense_list"), v = /* @__PURE__ */ Symbol.for("react.memo"), P = /* @__PURE__ */ Symbol.for("react.lazy"), F = /* @__PURE__ */ Symbol.for("react.activity"), B = /* @__PURE__ */ Symbol.for("react.client.reference"), q = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, te = Array.isArray, Y = console.createTask ? console.createTask : function() {
233
+ var m = Au, p = /* @__PURE__ */ Symbol.for("react.transitional.element"), b = /* @__PURE__ */ Symbol.for("react.portal"), x = /* @__PURE__ */ Symbol.for("react.fragment"), y = /* @__PURE__ */ Symbol.for("react.strict_mode"), N = /* @__PURE__ */ Symbol.for("react.profiler"), E = /* @__PURE__ */ Symbol.for("react.consumer"), I = /* @__PURE__ */ Symbol.for("react.context"), M = /* @__PURE__ */ Symbol.for("react.forward_ref"), k = /* @__PURE__ */ Symbol.for("react.suspense"), S = /* @__PURE__ */ Symbol.for("react.suspense_list"), v = /* @__PURE__ */ Symbol.for("react.memo"), P = /* @__PURE__ */ Symbol.for("react.lazy"), F = /* @__PURE__ */ Symbol.for("react.activity"), B = /* @__PURE__ */ Symbol.for("react.client.reference"), q = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, te = Array.isArray, Y = console.createTask ? console.createTask : function() {
234
234
  return null;
235
235
  };
236
236
  m = {
@@ -265,12 +265,12 @@ React keys must be passed directly to JSX without using spread:
265
265
  };
266
266
  })()), sn;
267
267
  }
268
- var Eo;
268
+ var ko;
269
269
  function vd() {
270
- return Eo || (Eo = 1, process.env.NODE_ENV === "production" ? Mn.exports = yd() : Mn.exports = xd()), Mn.exports;
270
+ return ko || (ko = 1, process.env.NODE_ENV === "production" ? Mn.exports = yd() : Mn.exports = xd()), Mn.exports;
271
271
  }
272
272
  var a = vd();
273
- const Ei = Ke({});
273
+ const ki = Ke({});
274
274
  function os(e) {
275
275
  const t = Te(null);
276
276
  return t.current === null && (t.current = e()), t.current;
@@ -347,7 +347,7 @@ const Td = (e, t, n) => {
347
347
  const s = t - e;
348
348
  return ((n - e) % s + s) % s + e;
349
349
  }, La = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, Sd = 1e-7, Nd = 12;
350
- function kd(e, t, n, s, i) {
350
+ function Ed(e, t, n, s, i) {
351
351
  let r, o, l = 0;
352
352
  do
353
353
  o = t + (n - t) / 2, r = La(o, s, i) - e, r > 0 ? n = o : t = o;
@@ -357,16 +357,16 @@ function kd(e, t, n, s, i) {
357
357
  function Nn(e, t, n, s) {
358
358
  if (e === t && n === s)
359
359
  return ze;
360
- const i = (r) => kd(r, 0, 1, e, n);
360
+ const i = (r) => Ed(r, 0, 1, e, n);
361
361
  return (r) => r === 0 || r === 1 ? r : La(i(r), t, s);
362
362
  }
363
- const Va = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Oa = (e) => (t) => 1 - e(1 - t), Da = /* @__PURE__ */ Nn(0.33, 1.53, 0.69, 0.99), ji = /* @__PURE__ */ Oa(Da), _a = /* @__PURE__ */ Va(ji), Fa = (e) => (e *= 2) < 1 ? 0.5 * ji(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Mi = (e) => 1 - Math.sin(Math.acos(e)), $a = Oa(Mi), Ba = Va(Mi), Ed = /* @__PURE__ */ Nn(0.42, 0, 1, 1), Cd = /* @__PURE__ */ Nn(0, 0, 0.58, 1), za = /* @__PURE__ */ Nn(0.42, 0, 0.58, 1), Wa = (e) => Array.isArray(e) && typeof e[0] != "number";
363
+ const Va = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Oa = (e) => (t) => 1 - e(1 - t), Da = /* @__PURE__ */ Nn(0.33, 1.53, 0.69, 0.99), ji = /* @__PURE__ */ Oa(Da), _a = /* @__PURE__ */ Va(ji), Fa = (e) => (e *= 2) < 1 ? 0.5 * ji(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Mi = (e) => 1 - Math.sin(Math.acos(e)), $a = Oa(Mi), Ba = Va(Mi), kd = /* @__PURE__ */ Nn(0.42, 0, 1, 1), Cd = /* @__PURE__ */ Nn(0, 0, 0.58, 1), za = /* @__PURE__ */ Nn(0.42, 0, 0.58, 1), Wa = (e) => Array.isArray(e) && typeof e[0] != "number";
364
364
  function Ya(e, t) {
365
365
  return Wa(e) ? e[Td(0, e.length, t)] : e;
366
366
  }
367
367
  const Ua = (e) => Array.isArray(e) && typeof e[0] == "number", Po = {
368
368
  linear: ze,
369
- easeIn: Ed,
369
+ easeIn: kd,
370
370
  easeInOut: za,
371
371
  easeOut: Cd,
372
372
  circIn: Mi,
@@ -447,18 +447,18 @@ function Ha(e, t) {
447
447
  delta: 0,
448
448
  timestamp: 0,
449
449
  isProcessing: !1
450
- }, r = () => n = !0, o = Rn.reduce((k, I) => (k[I] = Id(r), k), {}), { setup: l, read: c, resolveKeyframes: u, preUpdate: d, update: h, preRender: f, render: m, postRender: p } = o, b = () => {
451
- const k = it.useManualTiming ? i.timestamp : performance.now();
452
- n = !1, it.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(k - i.timestamp, jd), 1)), i.timestamp = k, i.isProcessing = !0, l.process(i), c.process(i), u.process(i), d.process(i), h.process(i), f.process(i), m.process(i), p.process(i), i.isProcessing = !1, n && t && (s = !1, e(b));
450
+ }, r = () => n = !0, o = Rn.reduce((E, I) => (E[I] = Id(r), E), {}), { setup: l, read: c, resolveKeyframes: u, preUpdate: d, update: h, preRender: f, render: m, postRender: p } = o, b = () => {
451
+ const E = it.useManualTiming ? i.timestamp : performance.now();
452
+ n = !1, it.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(E - i.timestamp, jd), 1)), i.timestamp = E, i.isProcessing = !0, l.process(i), c.process(i), u.process(i), d.process(i), h.process(i), f.process(i), m.process(i), p.process(i), i.isProcessing = !1, n && t && (s = !1, e(b));
453
453
  }, x = () => {
454
454
  n = !0, s = !0, i.isProcessing || e(b);
455
455
  };
456
- return { schedule: Rn.reduce((k, I) => {
456
+ return { schedule: Rn.reduce((E, I) => {
457
457
  const M = o[I];
458
- return k[I] = (E, S = !1, v = !1) => (n || x(), M.schedule(E, S, v)), k;
459
- }, {}), cancel: (k) => {
458
+ return E[I] = (k, S = !1, v = !1) => (n || x(), M.schedule(k, S, v)), E;
459
+ }, {}), cancel: (E) => {
460
460
  for (let I = 0; I < Rn.length; I++)
461
- o[Rn[I]].cancel(k);
461
+ o[Rn[I]].cancel(E);
462
462
  }, state: i, steps: o };
463
463
  }
464
464
  const { schedule: ge, cancel: ht, state: Ae, steps: vs } = /* @__PURE__ */ Ha(typeof requestAnimationFrame < "u" ? requestAnimationFrame : ze, !0);
@@ -502,7 +502,7 @@ const Vd = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
502
502
  }, Od = (e) => et(0, 255, e), ws = {
503
503
  ...Kt,
504
504
  transform: (e) => Math.round(Od(e))
505
- }, Et = {
505
+ }, kt = {
506
506
  test: /* @__PURE__ */ Li("rgb", "red"),
507
507
  parse: /* @__PURE__ */ Ka("red", "green", "blue"),
508
508
  transform: ({ red: e, green: t, blue: n, alpha: s = 1 }) => "rgba(" + ws.transform(e) + ", " + ws.transform(t) + ", " + ws.transform(n) + ", " + ln(mn.transform(s)) + ")"
@@ -519,12 +519,12 @@ function Dd(e) {
519
519
  const Hs = {
520
520
  test: /* @__PURE__ */ Li("#"),
521
521
  parse: Dd,
522
- transform: Et.transform
523
- }, kn = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
522
+ transform: kt.transform
523
+ }, En = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
524
524
  test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
525
525
  parse: parseFloat,
526
526
  transform: (t) => `${t}${e}`
527
- }), ct = /* @__PURE__ */ kn("deg"), Je = /* @__PURE__ */ kn("%"), G = /* @__PURE__ */ kn("px"), _d = /* @__PURE__ */ kn("vh"), Fd = /* @__PURE__ */ kn("vw"), Mo = {
527
+ }), ct = /* @__PURE__ */ En("deg"), Je = /* @__PURE__ */ En("%"), G = /* @__PURE__ */ En("px"), _d = /* @__PURE__ */ En("vh"), Fd = /* @__PURE__ */ En("vw"), Mo = {
528
528
  ...Je,
529
529
  parse: (e) => Je.parse(e) / 100,
530
530
  transform: (e) => Je.transform(e * 100)
@@ -532,13 +532,13 @@ const Hs = {
532
532
  test: /* @__PURE__ */ Li("hsl", "hue"),
533
533
  parse: /* @__PURE__ */ Ka("hue", "saturation", "lightness"),
534
534
  transform: ({ hue: e, saturation: t, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(e) + ", " + Je.transform(ln(t)) + ", " + Je.transform(ln(n)) + ", " + ln(mn.transform(s)) + ")"
535
- }, Ee = {
536
- test: (e) => Et.test(e) || Hs.test(e) || Vt.test(e),
537
- parse: (e) => Et.test(e) ? Et.parse(e) : Vt.test(e) ? Vt.parse(e) : Hs.parse(e),
538
- transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? Et.transform(e) : Vt.transform(e),
535
+ }, ke = {
536
+ test: (e) => kt.test(e) || Hs.test(e) || Vt.test(e),
537
+ parse: (e) => kt.test(e) ? kt.parse(e) : Vt.test(e) ? Vt.parse(e) : Hs.parse(e),
538
+ transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? kt.transform(e) : Vt.transform(e),
539
539
  getAnimatableNone: (e) => {
540
- const t = Ee.parse(e);
541
- return t.alpha = 0, Ee.transform(t);
540
+ const t = ke.parse(e);
541
+ return t.alpha = 0, ke.transform(t);
542
542
  }
543
543
  }, $d = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
544
544
  function Bd(e) {
@@ -552,7 +552,7 @@ function pn(e) {
552
552
  var: []
553
553
  }, i = [];
554
554
  let r = 0;
555
- const l = t.replace(Yd, (c) => (Ee.test(c) ? (s.color.push(r), i.push(qa), n.push(Ee.parse(c))) : c.startsWith(Wd) ? (s.var.push(r), i.push(zd), n.push(c)) : (s.number.push(r), i.push(Za), n.push(parseFloat(c))), ++r, Ro)).split(Ro);
555
+ const l = t.replace(Yd, (c) => (ke.test(c) ? (s.color.push(r), i.push(qa), n.push(ke.parse(c))) : c.startsWith(Wd) ? (s.var.push(r), i.push(zd), n.push(c)) : (s.number.push(r), i.push(Za), n.push(parseFloat(c))), ++r, Ro)).split(Ro);
556
556
  return { values: n, split: l, indexes: s, types: i };
557
557
  }
558
558
  function Ja(e) {
@@ -565,12 +565,12 @@ function Qa(e) {
565
565
  for (let o = 0; o < s; o++)
566
566
  if (r += t[o], i[o] !== void 0) {
567
567
  const l = n[o];
568
- l === Za ? r += ln(i[o]) : l === qa ? r += Ee.transform(i[o]) : r += i[o];
568
+ l === Za ? r += ln(i[o]) : l === qa ? r += ke.transform(i[o]) : r += i[o];
569
569
  }
570
570
  return r;
571
571
  };
572
572
  }
573
- const Ud = (e) => typeof e == "number" ? 0 : Ee.test(e) ? Ee.getAnimatableNone(e) : e;
573
+ const Ud = (e) => typeof e == "number" ? 0 : ke.test(e) ? ke.getAnimatableNone(e) : e;
574
574
  function Hd(e) {
575
575
  const t = Ja(e);
576
576
  return Qa(e)(t.map(Ud));
@@ -606,7 +606,7 @@ function Kn(e, t) {
606
606
  const xe = (e, t, n) => e + (t - e) * n, Ss = (e, t, n) => {
607
607
  const s = e * e, i = n * (t * t - s) + s;
608
608
  return i < 0 ? 0 : Math.sqrt(i);
609
- }, Gd = [Hs, Et, Vt], Kd = (e) => Gd.find((t) => t.test(e));
609
+ }, Gd = [Hs, kt, Vt], Kd = (e) => Gd.find((t) => t.test(e));
610
610
  function Ao(e) {
611
611
  const t = Kd(e);
612
612
  if (Gt(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !t)
@@ -619,7 +619,7 @@ const Lo = (e, t) => {
619
619
  if (!n || !s)
620
620
  return Kn(e, t);
621
621
  const i = { ...n };
622
- return (r) => (i.red = Ss(n.red, s.red, r), i.green = Ss(n.green, s.green, r), i.blue = Ss(n.blue, s.blue, r), i.alpha = xe(n.alpha, s.alpha, r), Et.transform(i));
622
+ return (r) => (i.red = Ss(n.red, s.red, r), i.green = Ss(n.green, s.green, r), i.blue = Ss(n.blue, s.blue, r), i.alpha = xe(n.alpha, s.alpha, r), kt.transform(i));
623
623
  }, Xs = /* @__PURE__ */ new Set(["none", "hidden"]);
624
624
  function Zd(e, t) {
625
625
  return Xs.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
@@ -628,7 +628,7 @@ function qd(e, t) {
628
628
  return (n) => xe(e, t, n);
629
629
  }
630
630
  function Vi(e) {
631
- return typeof e == "number" ? qd : typeof e == "string" ? Ri(e) ? Kn : Ee.test(e) ? Lo : eh : Array.isArray(e) ? el : typeof e == "object" ? Ee.test(e) ? Lo : Jd : Kn;
631
+ return typeof e == "number" ? qd : typeof e == "string" ? Ri(e) ? Kn : ke.test(e) ? Lo : eh : Array.isArray(e) ? el : typeof e == "object" ? ke.test(e) ? Lo : Jd : Kn;
632
632
  }
633
633
  function el(e, t) {
634
634
  const n = [...e], s = n.length, i = e.map((r, o) => Vi(r)(r, t[o]));
@@ -818,39 +818,39 @@ function gn(e = ve.visualDuration, t = ve.bounce) {
818
818
  velocity: -/* @__PURE__ */ Be(n.velocity || 0)
819
819
  }), p = f || 0, b = u / (2 * Math.sqrt(c * d)), x = o - r, y = /* @__PURE__ */ Be(Math.sqrt(c / d)), N = Math.abs(x) < 5;
820
820
  s || (s = N ? ve.restSpeed.granular : ve.restSpeed.default), i || (i = N ? ve.restDelta.granular : ve.restDelta.default);
821
- let k;
821
+ let E;
822
822
  if (b < 1) {
823
823
  const M = Gs(y, b);
824
- k = (E) => {
825
- const S = Math.exp(-b * y * E);
826
- return o - S * ((p + b * y * x) / M * Math.sin(M * E) + x * Math.cos(M * E));
824
+ E = (k) => {
825
+ const S = Math.exp(-b * y * k);
826
+ return o - S * ((p + b * y * x) / M * Math.sin(M * k) + x * Math.cos(M * k));
827
827
  };
828
828
  } else if (b === 1)
829
- k = (M) => o - Math.exp(-y * M) * (x + (p + y * x) * M);
829
+ E = (M) => o - Math.exp(-y * M) * (x + (p + y * x) * M);
830
830
  else {
831
831
  const M = y * Math.sqrt(b * b - 1);
832
- k = (E) => {
833
- const S = Math.exp(-b * y * E), v = Math.min(M * E, 300);
832
+ E = (k) => {
833
+ const S = Math.exp(-b * y * k), v = Math.min(M * k, 300);
834
834
  return o - S * ((p + b * y * x) * Math.sinh(v) + M * x * Math.cosh(v)) / M;
835
835
  };
836
836
  }
837
837
  const I = {
838
838
  calculatedDuration: m && h || null,
839
839
  next: (M) => {
840
- const E = k(M);
840
+ const k = E(M);
841
841
  if (m)
842
842
  l.done = M >= h;
843
843
  else {
844
844
  let S = M === 0 ? p : 0;
845
- b < 1 && (S = M === 0 ? /* @__PURE__ */ Fe(p) : il(k, M, E));
846
- const v = Math.abs(S) <= s, P = Math.abs(o - E) <= i;
845
+ b < 1 && (S = M === 0 ? /* @__PURE__ */ Fe(p) : il(E, M, k));
846
+ const v = Math.abs(S) <= s, P = Math.abs(o - k) <= i;
847
847
  l.done = v && P;
848
848
  }
849
- return l.value = l.done ? o : E, l;
849
+ return l.value = l.done ? o : k, l;
850
850
  },
851
851
  toString: () => {
852
- const M = Math.min(Oi(I), Zn), E = nl((S) => I.next(M * S).value, M, 30);
853
- return M + "ms " + E;
852
+ const M = Math.min(Oi(I), Zn), k = nl((S) => I.next(M * S).value, M, 30);
853
+ return M + "ms " + k;
854
854
  },
855
855
  toTransition: () => {
856
856
  }
@@ -869,15 +869,15 @@ function Ks({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 3
869
869
  let b = n * t;
870
870
  const x = h + b, y = o === void 0 ? x : o(x);
871
871
  y !== x && (b = y - h);
872
- const N = (v) => -b * Math.exp(-v / s), k = (v) => y + N(v), I = (v) => {
873
- const P = N(v), F = k(v);
872
+ const N = (v) => -b * Math.exp(-v / s), E = (v) => y + N(v), I = (v) => {
873
+ const P = N(v), F = E(v);
874
874
  f.done = Math.abs(P) <= u, f.value = f.done ? y : F;
875
875
  };
876
- let M, E;
876
+ let M, k;
877
877
  const S = (v) => {
878
- m(f.value) && (M = v, E = gn({
878
+ m(f.value) && (M = v, k = gn({
879
879
  keyframes: [f.value, p(f.value)],
880
- velocity: il(k, v, f.value),
880
+ velocity: il(E, v, f.value),
881
881
  // TODO: This should be passing * 1000
882
882
  damping: i,
883
883
  stiffness: r,
@@ -889,7 +889,7 @@ function Ks({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 3
889
889
  calculatedDuration: null,
890
890
  next: (v) => {
891
891
  let P = !1;
892
- return !E && M === void 0 && (P = !0, I(v), S(v)), M !== void 0 && v >= M ? E.next(v - M) : (!P && I(v), f);
892
+ return !k && M === void 0 && (P = !0, I(v), S(v)), M !== void 0 && v >= M ? k.next(v - M) : (!P && I(v), f);
893
893
  }
894
894
  };
895
895
  }
@@ -1034,17 +1034,17 @@ class Fi extends _i {
1034
1034
  this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - i / this.speed, this.startTime)), n ? this.currentTime = t : this.updateTime(t);
1035
1035
  const y = this.currentTime - u * (this.playbackSpeed >= 0 ? 1 : -1), N = this.playbackSpeed >= 0 ? y < 0 : y > i;
1036
1036
  this.currentTime = Math.max(y, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = i);
1037
- let k = this.currentTime, I = s;
1037
+ let E = this.currentTime, I = s;
1038
1038
  if (h) {
1039
1039
  const v = Math.min(this.currentTime, i) / l;
1040
1040
  let P = Math.floor(v), F = v % 1;
1041
- !F && v >= 1 && (F = 1), F === 1 && P--, P = Math.min(P, h + 1), P % 2 && (f === "reverse" ? (F = 1 - F, m && (F -= m / l)) : f === "mirror" && (I = o)), k = et(0, 1, F) * l;
1041
+ !F && v >= 1 && (F = 1), F === 1 && P--, P = Math.min(P, h + 1), P % 2 && (f === "reverse" ? (F = 1 - F, m && (F -= m / l)) : f === "mirror" && (I = o)), E = et(0, 1, F) * l;
1042
1042
  }
1043
- const M = N ? { done: !1, value: d[0] } : I.next(k);
1043
+ const M = N ? { done: !1, value: d[0] } : I.next(E);
1044
1044
  r && (M.value = r(M.value));
1045
- let { done: E } = M;
1046
- !N && c !== null && (E = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
1047
- const S = this.holdTime === null && (this.state === "finished" || this.state === "running" && E);
1045
+ let { done: k } = M;
1046
+ !N && c !== null && (k = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
1047
+ const S = this.holdTime === null && (this.state === "finished" || this.state === "running" && k);
1048
1048
  return S && p !== Ks && (M.value = Di(d, this.options, x, this.speed)), b && b(M.value), S && this.finish(), M;
1049
1049
  }
1050
1050
  /**
@@ -1280,9 +1280,9 @@ class $i {
1280
1280
  this.state === "pending" && this.scheduleResolve();
1281
1281
  }
1282
1282
  }
1283
- const kh = (e) => e.startsWith("--");
1284
- function Eh(e, t, n) {
1285
- kh(t) ? e.style.setProperty(t, n) : e.style[t] = n;
1283
+ const Eh = (e) => e.startsWith("--");
1284
+ function kh(e, t, n) {
1285
+ Eh(t) ? e.style.setProperty(t, n) : e.style[t] = n;
1286
1286
  }
1287
1287
  const Ch = {};
1288
1288
  function ul(e, t) {
@@ -1344,7 +1344,7 @@ class fl extends _i {
1344
1344
  this.animation = Ih(n, s, i, u, r), u.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1345
1345
  if (this.finishedTime = this.time, !r) {
1346
1346
  const d = Di(i, this.options, l, this.speed);
1347
- this.updateMotionValue ? this.updateMotionValue(d) : Eh(n, s, d), this.animation.cancel();
1347
+ this.updateMotionValue ? this.updateMotionValue(d) : kh(n, s, d), this.animation.cancel();
1348
1348
  }
1349
1349
  c?.(), this.notifyFinished();
1350
1350
  };
@@ -1438,7 +1438,7 @@ function Mh(e) {
1438
1438
  function Rh(e) {
1439
1439
  typeof e.ease == "string" && Mh(e.ease) && (e.ease = ml[e.ease]);
1440
1440
  }
1441
- const ks = 10;
1441
+ const Es = 10;
1442
1442
  class Ah extends fl {
1443
1443
  constructor(t) {
1444
1444
  Rh(t), al(t), super(t), t.startTime !== void 0 && (this.startTime = t.startTime), this.options = t;
@@ -1462,7 +1462,7 @@ class Ah extends fl {
1462
1462
  const l = new Fi({
1463
1463
  ...o,
1464
1464
  autoplay: !1
1465
- }), c = Math.max(ks, Ve.now() - this.startTime), u = et(0, ks, c - ks);
1465
+ }), c = Math.max(Es, Ve.now() - this.startTime), u = et(0, Es, c - Es);
1466
1466
  n.setWithVelocity(l.sample(Math.max(0, c - u)).value, l.sample(c).value, u), l.stop();
1467
1467
  }
1468
1468
  }
@@ -2071,8 +2071,8 @@ function Hi(e, t, { delay: n = 0, transitionOverride: s, type: i } = {}) {
2071
2071
  oi(e, f);
2072
2072
  const N = u ?? e.shouldReduceMotion;
2073
2073
  m.start(Wi(f, m, p, N && yl.has(f) ? { type: !1 } : b, e, y));
2074
- const k = m.animation;
2075
- k && d.push(k);
2074
+ const E = m.animation;
2075
+ E && d.push(E);
2076
2076
  }
2077
2077
  if (o) {
2078
2078
  const f = () => ge.update(() => {
@@ -2245,17 +2245,17 @@ const pf = /\b([a-z-]*)\(.*?\)/gu, ai = {
2245
2245
  }, bf = {
2246
2246
  ...Xi,
2247
2247
  // Color props
2248
- color: Ee,
2249
- backgroundColor: Ee,
2250
- outlineColor: Ee,
2251
- fill: Ee,
2252
- stroke: Ee,
2248
+ color: ke,
2249
+ backgroundColor: ke,
2250
+ outlineColor: ke,
2251
+ fill: ke,
2252
+ stroke: ke,
2253
2253
  // Border props
2254
- borderColor: Ee,
2255
- borderTopColor: Ee,
2256
- borderRightColor: Ee,
2257
- borderBottomColor: Ee,
2258
- borderLeftColor: Ee,
2254
+ borderColor: ke,
2255
+ borderTopColor: ke,
2256
+ borderRightColor: ke,
2257
+ borderBottomColor: ke,
2258
+ borderLeftColor: ke,
2259
2259
  filter: ai,
2260
2260
  WebkitFilter: ai,
2261
2261
  mask: li,
@@ -2355,7 +2355,7 @@ function Gi(e, t, n) {
2355
2355
  }
2356
2356
  return Array.from(e).filter((s) => s != null);
2357
2357
  }
2358
- const kl = (e, t) => t && typeof e == "number" ? t.transform(e) : e;
2358
+ const El = (e, t) => t && typeof e == "number" ? t.transform(e) : e;
2359
2359
  function ci(e) {
2360
2360
  return ja(e) && "offsetHeight" in e;
2361
2361
  }
@@ -2363,7 +2363,7 @@ const { schedule: Ki } = /* @__PURE__ */ Ha(queueMicrotask, !1), Ue = {
2363
2363
  x: !1,
2364
2364
  y: !1
2365
2365
  };
2366
- function El() {
2366
+ function kl() {
2367
2367
  return Ue.x || Ue.y;
2368
2368
  }
2369
2369
  function Sf(e) {
@@ -2382,9 +2382,9 @@ function Cl(e, t) {
2382
2382
  return [n, i, () => s.abort()];
2383
2383
  }
2384
2384
  function Nf(e) {
2385
- return !(e.pointerType === "touch" || El());
2385
+ return !(e.pointerType === "touch" || kl());
2386
2386
  }
2387
- function kf(e, t, n = {}) {
2387
+ function Ef(e, t, n = {}) {
2388
2388
  const [s, i, r] = Cl(e, n);
2389
2389
  return s.forEach((o) => {
2390
2390
  let l = !1, c = !1, u;
@@ -2414,7 +2414,7 @@ function kf(e, t, n = {}) {
2414
2414
  o.addEventListener("pointerenter", b, i), o.addEventListener("pointerdown", m, i);
2415
2415
  }), r;
2416
2416
  }
2417
- const Pl = (e, t) => t ? e === t ? !0 : Pl(e, t.parentElement) : !1, Zi = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, Ef = /* @__PURE__ */ new Set([
2417
+ const Pl = (e, t) => t ? e === t ? !0 : Pl(e, t.parentElement) : !1, Zi = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, kf = /* @__PURE__ */ new Set([
2418
2418
  "BUTTON",
2419
2419
  "INPUT",
2420
2420
  "SELECT",
@@ -2422,7 +2422,7 @@ const Pl = (e, t) => t ? e === t ? !0 : Pl(e, t.parentElement) : !1, Zi = (e) =>
2422
2422
  "A"
2423
2423
  ]);
2424
2424
  function Cf(e) {
2425
- return Ef.has(e.tagName) || e.isContentEditable === !0;
2425
+ return kf.has(e.tagName) || e.isContentEditable === !0;
2426
2426
  }
2427
2427
  const Pf = /* @__PURE__ */ new Set(["INPUT", "SELECT", "TEXTAREA"]);
2428
2428
  function If(e) {
@@ -2434,7 +2434,7 @@ function Xo(e) {
2434
2434
  t.key === "Enter" && e(t);
2435
2435
  };
2436
2436
  }
2437
- function Es(e, t) {
2437
+ function ks(e, t) {
2438
2438
  e.dispatchEvent(new PointerEvent("pointer" + t, { isPrimary: !0, bubbles: !0 }));
2439
2439
  }
2440
2440
  const jf = (e, t) => {
@@ -2444,16 +2444,16 @@ const jf = (e, t) => {
2444
2444
  const s = Xo(() => {
2445
2445
  if (Bn.has(n))
2446
2446
  return;
2447
- Es(n, "down");
2447
+ ks(n, "down");
2448
2448
  const i = Xo(() => {
2449
- Es(n, "up");
2450
- }), r = () => Es(n, "cancel");
2449
+ ks(n, "up");
2450
+ }), r = () => ks(n, "cancel");
2451
2451
  n.addEventListener("keyup", i, t), n.addEventListener("blur", r, t);
2452
2452
  });
2453
2453
  n.addEventListener("keydown", s, t), n.addEventListener("blur", () => n.removeEventListener("keydown", s), t);
2454
2454
  };
2455
2455
  function Go(e) {
2456
- return Zi(e) && !El();
2456
+ return Zi(e) && !kl();
2457
2457
  }
2458
2458
  const Ko = /* @__PURE__ */ new WeakSet();
2459
2459
  function Mf(e, t, n = {}) {
@@ -2538,7 +2538,7 @@ function Zo(e, t) {
2538
2538
  function jl(e) {
2539
2539
  return rs(e) && e.tagName === "svg";
2540
2540
  }
2541
- const $f = [...Tl, Ee, Xe], Bf = (e) => $f.find(wl(e)), qo = () => ({
2541
+ const $f = [...Tl, ke, Xe], Bf = (e) => $f.find(wl(e)), qo = () => ({
2542
2542
  translate: 0,
2543
2543
  scale: 1,
2544
2544
  origin: 0,
@@ -2546,7 +2546,7 @@ const $f = [...Tl, Ee, Xe], Bf = (e) => $f.find(wl(e)), qo = () => ({
2546
2546
  }), _t = () => ({
2547
2547
  x: qo(),
2548
2548
  y: qo()
2549
- }), Jo = () => ({ min: 0, max: 0 }), ke = () => ({
2549
+ }), Jo = () => ({ min: 0, max: 0 }), Ee = () => ({
2550
2550
  x: Jo(),
2551
2551
  y: Jo()
2552
2552
  }), bn = /* @__PURE__ */ new WeakMap();
@@ -2714,7 +2714,7 @@ class Ll {
2714
2714
  * removed with a re-render to work.
2715
2715
  */
2716
2716
  measureViewportBox() {
2717
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : ke();
2717
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : Ee();
2718
2718
  }
2719
2719
  getStaticValue(t) {
2720
2720
  return this.latestValues[t];
@@ -2965,7 +2965,7 @@ function Jf(e, t, n) {
2965
2965
  c = o.startsWith("scale") ? u === 1 : u === 0;
2966
2966
  }
2967
2967
  if (!c || n) {
2968
- const u = kl(l, Xi[o]);
2968
+ const u = El(l, Xi[o]);
2969
2969
  if (!c) {
2970
2970
  i = !1;
2971
2971
  const d = Zf[o] || o;
@@ -2988,7 +2988,7 @@ function Qi(e, t, n) {
2988
2988
  i[c] = u;
2989
2989
  continue;
2990
2990
  } else {
2991
- const d = kl(u, Xi[c]);
2991
+ const d = El(u, Xi[c]);
2992
2992
  c.startsWith("origin") ? (l = !0, r[c] = d) : s[c] = d;
2993
2993
  }
2994
2994
  }
@@ -3103,7 +3103,7 @@ class n0 extends Ll {
3103
3103
  delete n.output[t];
3104
3104
  }
3105
3105
  measureInstanceViewportBox() {
3106
- return ke();
3106
+ return Ee();
3107
3107
  }
3108
3108
  build(t, n) {
3109
3109
  Object.assign(t.output, n);
@@ -3195,7 +3195,7 @@ function Hl(e, t, n) {
3195
3195
  }
3196
3196
  class Xl extends Vl {
3197
3197
  constructor() {
3198
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = ke;
3198
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Ee;
3199
3199
  }
3200
3200
  getBaseTargetFromProps(t, n) {
3201
3201
  return t[n];
@@ -3267,13 +3267,13 @@ function h0(e) {
3267
3267
  const { props: u } = e, d = Gl(e.parent) || {}, h = [], f = /* @__PURE__ */ new Set();
3268
3268
  let m = {}, p = 1 / 0;
3269
3269
  for (let x = 0; x < u0; x++) {
3270
- const y = c0[x], N = n[y], k = u[y] !== void 0 ? u[y] : d[y], I = yn(k), M = y === c ? N.isActive : null;
3270
+ const y = c0[x], N = n[y], E = u[y] !== void 0 ? u[y] : d[y], I = yn(E), M = y === c ? N.isActive : null;
3271
3271
  M === !1 && (p = x);
3272
- let E = k === d[y] && k !== u[y] && I;
3273
- if (E && s && e.manuallyAnimateOnMount && (E = !1), N.protectedKeys = { ...m }, // If it isn't active and hasn't *just* been set as inactive
3272
+ let k = E === d[y] && E !== u[y] && I;
3273
+ if (k && s && e.manuallyAnimateOnMount && (k = !1), N.protectedKeys = { ...m }, // If it isn't active and hasn't *just* been set as inactive
3274
3274
  !N.isActive && M === null || // If we didn't and don't have any defined prop for this animation type
3275
- !k && !N.prevProp || // Or if the prop doesn't define an animation
3276
- as(k) || typeof k == "boolean")
3275
+ !E && !N.prevProp || // Or if the prop doesn't define an animation
3276
+ as(E) || typeof E == "boolean")
3277
3277
  continue;
3278
3278
  if (y === "exit" && N.isActive && M !== !0) {
3279
3279
  N.prevResolvedValues && (m = {
@@ -3282,11 +3282,11 @@ function h0(e) {
3282
3282
  });
3283
3283
  continue;
3284
3284
  }
3285
- const S = f0(N.prevProp, k);
3285
+ const S = f0(N.prevProp, E);
3286
3286
  let v = S || // If we're making this variant active, we want to always make it active
3287
- y === c && N.isActive && !E && I || // If we removed a higher-priority variant (i is in reverse order)
3287
+ y === c && N.isActive && !k && I || // If we removed a higher-priority variant (i is in reverse order)
3288
3288
  x > p && I, P = !1;
3289
- const F = Array.isArray(k) ? k : [k];
3289
+ const F = Array.isArray(E) ? E : [E];
3290
3290
  let B = F.reduce(i(y), {});
3291
3291
  M === !1 && (B = {});
3292
3292
  const { prevResolvedValues: q = {} } = N, D = {
@@ -3304,8 +3304,8 @@ function h0(e) {
3304
3304
  let j = !1;
3305
3305
  ii(C) && ii(_) ? j = !Kl(C, _) : j = C !== _, j ? C != null ? te(R) : f.add(R) : C !== void 0 && f.has(R) ? te(R) : N.protectedKeys[R] = !0;
3306
3306
  }
3307
- N.prevProp = k, N.prevResolvedValues = B, N.isActive && (m = { ...m, ...B }), s && e.blockInitialAnimation && (v = !1);
3308
- const Y = E && S;
3307
+ N.prevProp = E, N.prevResolvedValues = B, N.isActive && (m = { ...m, ...B }), s && e.blockInitialAnimation && (v = !1);
3308
+ const Y = k && S;
3309
3309
  v && (!Y || P) && h.push(...F.map((R) => {
3310
3310
  const C = { type: y };
3311
3311
  if (typeof R == "string" && s && !Y && e.manuallyAnimateOnMount && e.parent) {
@@ -3328,8 +3328,8 @@ function h0(e) {
3328
3328
  y && y.transition && (x.transition = y.transition);
3329
3329
  }
3330
3330
  f.forEach((y) => {
3331
- const N = e.getBaseTarget(y), k = e.getValue(y);
3332
- k && (k.liveStyle = !0), x[y] = N ?? null;
3331
+ const N = e.getBaseTarget(y), E = e.getValue(y);
3332
+ E && (E.liveStyle = !0), x[y] = N ?? null;
3333
3333
  }), h.push({ animation: x });
3334
3334
  }
3335
3335
  let b = !!h.length;
@@ -3463,10 +3463,10 @@ function N0(e, t, n) {
3463
3463
  const l = e.x.scale * t.x, c = e.y.scale * t.y;
3464
3464
  return (l !== 1 || c !== 1) && (s += `scale(${l}, ${c})`), s || "none";
3465
3465
  }
3466
- const ec = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], k0 = ec.length, vr = (e) => typeof e == "string" ? parseFloat(e) : e, wr = (e) => typeof e == "number" || G.test(e);
3467
- function E0(e, t, n, s, i, r) {
3466
+ const ec = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], E0 = ec.length, vr = (e) => typeof e == "string" ? parseFloat(e) : e, wr = (e) => typeof e == "number" || G.test(e);
3467
+ function k0(e, t, n, s, i, r) {
3468
3468
  i ? (e.opacity = xe(0, n.opacity ?? 1, C0(s)), e.opacityExit = xe(t.opacity ?? 1, 0, P0(s))) : r && (e.opacity = xe(t.opacity ?? 1, n.opacity ?? 1, s));
3469
- for (let o = 0; o < k0; o++) {
3469
+ for (let o = 0; o < E0; o++) {
3470
3470
  const l = `border${ec[o]}Radius`;
3471
3471
  let c = Tr(t, l), u = Tr(n, l);
3472
3472
  if (c === void 0 && u === void 0)
@@ -3649,7 +3649,7 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
3649
3649
  h = window.innerWidth;
3650
3650
  }), e(o, () => {
3651
3651
  const m = window.innerWidth;
3652
- m !== h && (h = m, this.root.updateBlockedByResize = !0, d && d(), d = M0(f, 250), Hn.hasAnimatedSinceResize && (Hn.hasAnimatedSinceResize = !1, this.nodes.forEach(kr)));
3652
+ m !== h && (h = m, this.root.updateBlockedByResize = !0, d && d(), d = M0(f, 250), Hn.hasAnimatedSinceResize && (Hn.hasAnimatedSinceResize = !1, this.nodes.forEach(Er)));
3653
3653
  });
3654
3654
  }
3655
3655
  l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || c) && this.addEventListener("didUpdate", ({ delta: d, hasLayoutChanged: h, hasRelativeLayoutChanged: f, layout: m }) => {
@@ -3660,14 +3660,14 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
3660
3660
  const p = this.options.transition || u.getDefaultTransition() || X0, { onLayoutAnimationStart: b, onLayoutAnimationComplete: x } = u.getProps(), y = !this.targetLayout || !Ql(this.targetLayout, m), N = !h && f;
3661
3661
  if (this.options.layoutRoot || this.resumeFrom || N || h && (y || !this.currentAnimation)) {
3662
3662
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
3663
- const k = {
3663
+ const E = {
3664
3664
  ...zi(p, "layout"),
3665
3665
  onPlay: b,
3666
3666
  onComplete: x
3667
3667
  };
3668
- (u.shouldReduceMotion || this.options.layoutRoot) && (k.delay = 0, k.type = !1), this.startAnimation(k), this.setAnimationOrigin(d, N);
3668
+ (u.shouldReduceMotion || this.options.layoutRoot) && (E.delay = 0, E.type = !1), this.startAnimation(E), this.setAnimationOrigin(d, N);
3669
3669
  } else
3670
- h || kr(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
3670
+ h || Er(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
3671
3671
  this.targetLayout = m;
3672
3672
  });
3673
3673
  }
@@ -3755,7 +3755,7 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
3755
3755
  for (let c = 0; c < this.path.length; c++)
3756
3756
  this.path[c].updateScroll();
3757
3757
  const o = this.layout;
3758
- this.layout = this.measure(!1), this.layoutVersion++, this.layoutCorrected = ke(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
3758
+ this.layout = this.measure(!1), this.layoutVersion++, this.layoutCorrected = Ee(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
3759
3759
  const { visualElement: l } = this.options;
3760
3760
  l && l.notify("LayoutMeasure", this.layout.layoutBox, o ? o.layoutBox : void 0);
3761
3761
  }
@@ -3792,7 +3792,7 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
3792
3792
  measurePageBox() {
3793
3793
  const { visualElement: o } = this.options;
3794
3794
  if (!o)
3795
- return ke();
3795
+ return Ee();
3796
3796
  const l = o.measureViewportBox();
3797
3797
  if (!(this.scroll?.wasRoot || this.path.some(K0))) {
3798
3798
  const { scroll: u } = this.root;
@@ -3801,7 +3801,7 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
3801
3801
  return l;
3802
3802
  }
3803
3803
  removeElementScroll(o) {
3804
- const l = ke();
3804
+ const l = Ee();
3805
3805
  if (Ye(l, o), this.scroll?.wasRoot)
3806
3806
  return l;
3807
3807
  for (let c = 0; c < this.path.length; c++) {
@@ -3811,7 +3811,7 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
3811
3811
  return l;
3812
3812
  }
3813
3813
  applyTransform(o, l = !1) {
3814
- const c = ke();
3814
+ const c = Ee();
3815
3815
  Ye(c, o);
3816
3816
  for (let u = 0; u < this.path.length; u++) {
3817
3817
  const d = this.path[u];
@@ -3823,14 +3823,14 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
3823
3823
  return St(this.latestValues) && $t(c, this.latestValues), c;
3824
3824
  }
3825
3825
  removeTransform(o) {
3826
- const l = ke();
3826
+ const l = Ee();
3827
3827
  Ye(l, o);
3828
3828
  for (let c = 0; c < this.path.length; c++) {
3829
3829
  const u = this.path[c];
3830
3830
  if (!u.instance || !St(u.latestValues))
3831
3831
  continue;
3832
3832
  di(u.latestValues) && u.updateSnapshot();
3833
- const d = ke(), h = u.measurePageBox();
3833
+ const d = Ee(), h = u.measurePageBox();
3834
3834
  Ye(d, h), mr(l, u.latestValues, u.snapshot ? u.snapshot.layoutBox : void 0, d);
3835
3835
  }
3836
3836
  return St(this.latestValues) && mr(l, this.latestValues), l;
@@ -3862,7 +3862,7 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
3862
3862
  return;
3863
3863
  this.resolvedRelativeTargetAt = Ae.timestamp;
3864
3864
  const f = this.getClosestProjectingParent();
3865
- f && this.linkedParentVersion !== f.layoutVersion && !f.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (f && f.layout ? this.createRelativeTarget(f, this.layout.layoutBox, f.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = ke(), this.targetWithTransforms = ke()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), x0(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : Ye(this.target, this.layout.layoutBox), _l(this.target, this.targetDelta)) : Ye(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, f && !!f.resumingFrom == !!this.resumingFrom && !f.options.layoutScroll && f.target && this.animationProgress !== 1 ? this.createRelativeTarget(f, this.target, f.target) : this.relativeParent = this.relativeTarget = void 0));
3865
+ f && this.linkedParentVersion !== f.layoutVersion && !f.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (f && f.layout ? this.createRelativeTarget(f, this.layout.layoutBox, f.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = Ee(), this.targetWithTransforms = Ee()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), x0(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : Ye(this.target, this.layout.layoutBox), _l(this.target, this.targetDelta)) : Ye(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, f && !!f.resumingFrom == !!this.resumingFrom && !f.options.layoutScroll && f.target && this.animationProgress !== 1 ? this.createRelativeTarget(f, this.target, f.target) : this.relativeParent = this.relativeTarget = void 0));
3866
3866
  }
3867
3867
  getClosestProjectingParent() {
3868
3868
  if (!(!this.parent || di(this.parent.latestValues) || Dl(this.parent.latestValues)))
@@ -3872,7 +3872,7 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
3872
3872
  return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
3873
3873
  }
3874
3874
  createRelativeTarget(o, l, c) {
3875
- this.relativeParent = o, this.linkedParentVersion = o.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = ke(), this.relativeTargetOrigin = ke(), Qn(this.relativeTargetOrigin, l, c), Ye(this.relativeTarget, this.relativeTargetOrigin);
3875
+ this.relativeParent = o, this.linkedParentVersion = o.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Ee(), this.relativeTargetOrigin = Ee(), Qn(this.relativeTargetOrigin, l, c), Ye(this.relativeTarget, this.relativeTargetOrigin);
3876
3876
  }
3877
3877
  removeRelativeTarget() {
3878
3878
  this.relativeParent = this.relativeTarget = void 0;
@@ -3887,7 +3887,7 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
3887
3887
  return;
3888
3888
  Ye(this.layoutCorrected, this.layout.layoutBox);
3889
3889
  const h = this.treeScale.x, f = this.treeScale.y;
3890
- Gf(this.layoutCorrected, this.treeScale, this.path, l), o.layout && !o.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (o.target = o.layout.layoutBox, o.targetWithTransforms = ke());
3890
+ Gf(this.layoutCorrected, this.treeScale, this.path, l), o.layout && !o.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (o.target = o.layout.layoutBox, o.targetWithTransforms = Ee());
3891
3891
  const { target: m } = o;
3892
3892
  if (!m) {
3893
3893
  this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
@@ -3914,12 +3914,12 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
3914
3914
  setAnimationOrigin(o, l = !1) {
3915
3915
  const c = this.snapshot, u = c ? c.latestValues : {}, d = { ...this.latestValues }, h = _t();
3916
3916
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !l;
3917
- const f = ke(), m = c ? c.source : void 0, p = this.layout ? this.layout.source : void 0, b = m !== p, x = this.getStack(), y = !x || x.members.length <= 1, N = !!(b && !y && this.options.crossfade === !0 && !this.path.some(H0));
3917
+ const f = Ee(), m = c ? c.source : void 0, p = this.layout ? this.layout.source : void 0, b = m !== p, x = this.getStack(), y = !x || x.members.length <= 1, N = !!(b && !y && this.options.crossfade === !0 && !this.path.some(H0));
3918
3918
  this.animationProgress = 0;
3919
- let k;
3919
+ let E;
3920
3920
  this.mixTargetDelta = (I) => {
3921
3921
  const M = I / 1e3;
3922
- Er(h.x, o.x, M), Er(h.y, o.y, M), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Qn(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), U0(this.relativeTarget, this.relativeTargetOrigin, f, M), k && S0(this.relativeTarget, k) && (this.isProjectionDirty = !1), k || (k = ke()), Ye(k, this.relativeTarget)), b && (this.animationValues = d, E0(d, u, this.latestValues, M, N, y)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = M;
3922
+ kr(h.x, o.x, M), kr(h.y, o.y, M), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Qn(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), U0(this.relativeTarget, this.relativeTargetOrigin, f, M), E && S0(this.relativeTarget, E) && (this.isProjectionDirty = !1), E || (E = Ee()), Ye(E, this.relativeTarget)), b && (this.animationValues = d, k0(d, u, this.latestValues, M, N, y)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = M;
3923
3923
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
3924
3924
  }
3925
3925
  startAnimation(o) {
@@ -3952,7 +3952,7 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
3952
3952
  let { targetWithTransforms: l, target: c, layout: u, latestValues: d } = o;
3953
3953
  if (!(!l || !c || !u)) {
3954
3954
  if (this !== o && this.layout && u && oc(this.options.animationType, this.layout.layoutBox, u.layoutBox)) {
3955
- c = this.target || ke();
3955
+ c = this.target || Ee();
3956
3956
  const h = Oe(this.layout.layoutBox.x);
3957
3957
  c.x.min = o.target.x.min, c.x.max = c.x.min + h;
3958
3958
  const f = Oe(this.layout.layoutBox.y);
@@ -4040,8 +4040,8 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4040
4040
  continue;
4041
4041
  const { correct: b, applyTo: x, isCSSVariable: y } = fi[p], N = h === "none" ? d[p] : b(d[p], u);
4042
4042
  if (x) {
4043
- const k = x.length;
4044
- for (let I = 0; I < k; I++)
4043
+ const E = x.length;
4044
+ for (let I = 0; I < E; I++)
4045
4045
  o[x[I]] = N;
4046
4046
  } else
4047
4047
  y ? this.options.visualElement.renderState.vars[p] = N : o[p] = N;
@@ -4082,9 +4082,9 @@ function O0(e) {
4082
4082
  if (d && !d.resumeFrom) {
4083
4083
  const { snapshot: h, layout: f } = d;
4084
4084
  if (h && f) {
4085
- const m = ke();
4085
+ const m = Ee();
4086
4086
  Qn(m, t.layoutBox, h.layoutBox);
4087
- const p = ke();
4087
+ const p = Ee();
4088
4088
  Qn(p, n, f.layoutBox), Ql(m, p) || (u = !0), d.options.layoutRoot && (e.relativeTarget = p, e.relativeTargetOrigin = m, e.relativeParent = d);
4089
4089
  }
4090
4090
  }
@@ -4122,7 +4122,7 @@ function $0(e) {
4122
4122
  const { visualElement: t } = e.options;
4123
4123
  t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
4124
4124
  }
4125
- function kr(e) {
4125
+ function Er(e) {
4126
4126
  e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
4127
4127
  }
4128
4128
  function B0(e) {
@@ -4137,7 +4137,7 @@ function W0(e) {
4137
4137
  function Y0(e) {
4138
4138
  e.removeLeadSnapshot();
4139
4139
  }
4140
- function Er(e, t, n) {
4140
+ function kr(e, t, n) {
4141
4141
  e.translate = xe(t.translate, 0, n), e.scale = xe(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
4142
4142
  }
4143
4143
  function Cr(e, t, n, s) {
@@ -4250,7 +4250,7 @@ function em({ children: e, isPresent: t, anchorX: n, anchorY: s, root: i, pop: r
4250
4250
  const { width: f, height: m, top: p, left: b, right: x, bottom: y } = c.current;
4251
4251
  if (t || r === !1 || !l.current || !f || !m)
4252
4252
  return;
4253
- const N = n === "left" ? `left: ${b}` : `right: ${x}`, k = s === "bottom" ? `bottom: ${y}` : `top: ${p}`;
4253
+ const N = n === "left" ? `left: ${b}` : `right: ${x}`, E = s === "bottom" ? `bottom: ${y}` : `top: ${p}`;
4254
4254
  l.current.dataset.motionPopId = o;
4255
4255
  const I = document.createElement("style");
4256
4256
  u && (I.nonce = u);
@@ -4261,7 +4261,7 @@ function em({ children: e, isPresent: t, anchorX: n, anchorY: s, root: i, pop: r
4261
4261
  width: ${f}px !important;
4262
4262
  height: ${m}px !important;
4263
4263
  ${N}px !important;
4264
- ${k}px !important;
4264
+ ${E}px !important;
4265
4265
  }
4266
4266
  `), () => {
4267
4267
  M.contains(I) && M.removeChild(I);
@@ -4319,7 +4319,7 @@ function Rr(e) {
4319
4319
  }), t;
4320
4320
  }
4321
4321
  const Ce = ({ children: e, custom: t, initial: n = !0, onExitComplete: s, presenceAffectsLayout: i = !0, mode: r = "sync", propagate: o = !1, anchorX: l = "left", anchorY: c = "top", root: u }) => {
4322
- const [d, h] = ac(o), f = jt(() => Rr(e), [e]), m = o && !d ? [] : f.map(Ln), p = Te(!0), b = Te(f), x = os(() => /* @__PURE__ */ new Map()), y = Te(/* @__PURE__ */ new Set()), [N, k] = O(f), [I, M] = O(f);
4322
+ const [d, h] = ac(o), f = jt(() => Rr(e), [e]), m = o && !d ? [] : f.map(Ln), p = Te(!0), b = Te(f), x = os(() => /* @__PURE__ */ new Map()), y = Te(/* @__PURE__ */ new Set()), [N, E] = O(f), [I, M] = O(f);
4323
4323
  Pa(() => {
4324
4324
  p.current = !1, b.current = f;
4325
4325
  for (let v = 0; v < I.length; v++) {
@@ -4327,17 +4327,17 @@ const Ce = ({ children: e, custom: t, initial: n = !0, onExitComplete: s, presen
4327
4327
  m.includes(P) ? (x.delete(P), y.current.delete(P)) : x.get(P) !== !0 && x.set(P, !1);
4328
4328
  }
4329
4329
  }, [I, m.length, m.join("-")]);
4330
- const E = [];
4330
+ const k = [];
4331
4331
  if (f !== N) {
4332
4332
  let v = [...f];
4333
4333
  for (let P = 0; P < I.length; P++) {
4334
4334
  const F = I[P], B = Ln(F);
4335
- m.includes(B) || (v.splice(P, 0, F), E.push(F));
4335
+ m.includes(B) || (v.splice(P, 0, F), k.push(F));
4336
4336
  }
4337
- return r === "wait" && E.length && (v = E), M(Rr(v)), k(f), null;
4337
+ return r === "wait" && k.length && (v = k), M(Rr(v)), E(f), null;
4338
4338
  }
4339
4339
  process.env.NODE_ENV !== "production" && r === "wait" && I.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
4340
- const { forceRender: S } = ye(Ei);
4340
+ const { forceRender: S } = ye(ki);
4341
4341
  return a.jsx(a.Fragment, { children: I.map((v) => {
4342
4342
  const P = Ln(v), F = o && !d ? !1 : f === I || m.includes(P), B = () => {
4343
4343
  if (y.current.has(P))
@@ -4584,12 +4584,12 @@ function xm(e, t, n, s) {
4584
4584
  if (p) {
4585
4585
  const { transitionEnd: b, transition: x, ...y } = p;
4586
4586
  for (const N in y) {
4587
- let k = y[N];
4588
- if (Array.isArray(k)) {
4589
- const I = d ? k.length - 1 : 0;
4590
- k = k[I];
4587
+ let E = y[N];
4588
+ if (Array.isArray(E)) {
4589
+ const I = d ? E.length - 1 : 0;
4590
+ E = E[I];
4591
4591
  }
4592
- k !== null && (i[N] = k);
4592
+ E !== null && (i[N] = E);
4593
4593
  }
4594
4594
  for (const N in b)
4595
4595
  i[N] = b[N];
@@ -4642,7 +4642,7 @@ function Nm(e, t, n, s, i, r) {
4642
4642
  isSVG: r
4643
4643
  }), m.current && f.current && (f.current.manuallyAnimateOnMount = !0));
4644
4644
  const p = f.current, b = ye(mc);
4645
- p && !p.projection && i && (p.type === "html" || p.type === "svg") && km(f.current, n, i, b);
4645
+ p && !p.projection && i && (p.type === "html" || p.type === "svg") && Em(f.current, n, i, b);
4646
4646
  const x = Te(!1);
4647
4647
  Si(() => {
4648
4648
  p && x.current && p.update(n, c);
@@ -4656,7 +4656,7 @@ function Nm(e, t, n, s, i, r) {
4656
4656
  }), N.current = !1), p.enteringChildren = void 0);
4657
4657
  }), p;
4658
4658
  }
4659
- function km(e, t, n, s) {
4659
+ function Em(e, t, n, s) {
4660
4660
  const { layoutId: i, layout: r, drag: o, dragConstraints: l, layoutScroll: c, layoutRoot: u, layoutCrossfade: d } = t;
4661
4661
  e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : pc(e.parent)), e.projection.setOptions({
4662
4662
  layoutId: i,
@@ -4689,7 +4689,7 @@ function Ms(e, { forwardMotionProps: t = !1, type: n } = {}, s, i) {
4689
4689
  const f = {
4690
4690
  ...ye(cs),
4691
4691
  ...u,
4692
- layoutId: Em(u)
4692
+ layoutId: km(u)
4693
4693
  }, { isStatic: m } = f, p = dm(u), b = o(u, m);
4694
4694
  if (!m && Ca) {
4695
4695
  Cm(f, s);
@@ -4702,8 +4702,8 @@ function Ms(e, { forwardMotionProps: t = !1, type: n } = {}, s, i) {
4702
4702
  const c = _u(l);
4703
4703
  return c[Tm] = e, c;
4704
4704
  }
4705
- function Em({ layoutId: e }) {
4706
- const t = ye(Ei).id;
4705
+ function km({ layoutId: e }) {
4706
+ const t = ye(ki).id;
4707
4707
  return t && e !== void 0 ? t + "-" + e : e;
4708
4708
  }
4709
4709
  function Cm(e, t) {
@@ -4797,7 +4797,7 @@ const Lm = {
4797
4797
  Feature: Am
4798
4798
  }
4799
4799
  };
4800
- function En(e) {
4800
+ function kn(e) {
4801
4801
  return {
4802
4802
  point: {
4803
4803
  x: e.pageX,
@@ -4805,7 +4805,7 @@ function En(e) {
4805
4805
  }
4806
4806
  };
4807
4807
  }
4808
- const Vm = (e) => (t) => Zi(t) && e(t, En(t));
4808
+ const Vm = (e) => (t) => Zi(t) && e(t, kn(t));
4809
4809
  function un(e, t, n, s) {
4810
4810
  return xn(e, t, Vm(n), s);
4811
4811
  }
@@ -4829,8 +4829,8 @@ class bc {
4829
4829
  return;
4830
4830
  const { point: x } = m, { timestamp: y } = Ae;
4831
4831
  this.history.push({ ...x, timestamp: y });
4832
- const { onStart: N, onMove: k } = this.handlers;
4833
- p || (N && N(this.lastMoveEvent, m), this.startEvent = this.lastMoveEvent), k && k(this.lastMoveEvent, m);
4832
+ const { onStart: N, onMove: E } = this.handlers;
4833
+ p || (N && N(this.lastMoveEvent, m), this.startEvent = this.lastMoveEvent), E && E(this.lastMoveEvent, m);
4834
4834
  }, this.handlePointerMove = (m, p) => {
4835
4835
  this.lastMoveEvent = m, this.lastMoveEventInfo = Rs(p, this.transformPagePoint), ge.update(this.updatePoint, !0);
4836
4836
  }, this.handlePointerUp = (m, p) => {
@@ -4843,7 +4843,7 @@ class bc {
4843
4843
  }, !Zi(t))
4844
4844
  return;
4845
4845
  this.dragSnapToOrigin = r, this.handlers = n, this.transformPagePoint = s, this.distanceThreshold = o, this.contextWindow = i || window;
4846
- const c = En(t), u = Rs(c, this.transformPagePoint), { point: d } = u, { timestamp: h } = Ae;
4846
+ const c = kn(t), u = Rs(c, this.transformPagePoint), { point: d } = u, { timestamp: h } = Ae;
4847
4847
  this.history = [{ ...d, timestamp: h }];
4848
4848
  const { onSessionStart: f } = n;
4849
4849
  f && f(t, As(u, this.history)), this.removeListeners = Sn(un(this.contextWindow, "pointermove", this.handlePointerMove), un(this.contextWindow, "pointerup", this.handlePointerUp), un(this.contextWindow, "pointercancel", this.handlePointerUp)), l && this.startScrollTracking(l);
@@ -4989,14 +4989,14 @@ function zr(e, t) {
4989
4989
  const Um = /* @__PURE__ */ new WeakMap();
4990
4990
  class Hm {
4991
4991
  constructor(t) {
4992
- this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = ke(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = t;
4992
+ this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = Ee(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = t;
4993
4993
  }
4994
4994
  start(t, { snapToCursor: n = !1, distanceThreshold: s } = {}) {
4995
4995
  const { presenceContext: i } = this.visualElement;
4996
4996
  if (i && i.isPresent === !1)
4997
4997
  return;
4998
4998
  const r = (h) => {
4999
- n && this.snapToCursor(En(h).point), this.stopAnimation();
4999
+ n && this.snapToCursor(kn(h).point), this.stopAnimation();
5000
5000
  }, o = (h, f) => {
5001
5001
  const { drag: m, dragPropagation: p, onDragStart: b } = this.getProps();
5002
5002
  if (m && !p && (this.openDragLock && this.openDragLock(), this.openDragLock = Sf(m), !this.openDragLock))
@@ -5004,9 +5004,9 @@ class Hm {
5004
5004
  this.latestPointerEvent = h, this.latestPanInfo = f, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), qe((y) => {
5005
5005
  let N = this.getAxisMotionValue(y).get() || 0;
5006
5006
  if (Je.test(N)) {
5007
- const { projection: k } = this.visualElement;
5008
- if (k && k.layout) {
5009
- const I = k.layout.layoutBox[y];
5007
+ const { projection: E } = this.visualElement;
5008
+ if (E && E.layout) {
5009
+ const I = E.layout.layoutBox[y];
5010
5010
  I && (N = Oe(I) * (parseFloat(N) / 100));
5011
5011
  }
5012
5012
  }
@@ -5341,7 +5341,7 @@ class qm extends Fu {
5341
5341
  }
5342
5342
  }
5343
5343
  function xc(e) {
5344
- const [t, n] = ac(), s = ye(Ei);
5344
+ const [t, n] = ac(), s = ye(ki);
5345
5345
  return a.jsx(qm, { ...e, layoutGroup: s, switchLayoutGroup: ye(mc), isPresent: t, safeToRemove: n });
5346
5346
  }
5347
5347
  const Jm = {
@@ -5358,12 +5358,12 @@ function Yr(e, t, n) {
5358
5358
  const { props: s } = e;
5359
5359
  e.animationState && s.whileHover && e.animationState.setActive("whileHover", n === "Start");
5360
5360
  const i = "onHover" + n, r = s[i];
5361
- r && ge.postRender(() => r(t, En(t)));
5361
+ r && ge.postRender(() => r(t, kn(t)));
5362
5362
  }
5363
5363
  class Qm extends mt {
5364
5364
  mount() {
5365
5365
  const { current: t } = this.node;
5366
- t && (this.unmount = kf(t, (n, s) => (Yr(this.node, s, "Start"), (i) => Yr(this.node, i, "End"))));
5366
+ t && (this.unmount = Ef(t, (n, s) => (Yr(this.node, s, "Start"), (i) => Yr(this.node, i, "End"))));
5367
5367
  }
5368
5368
  unmount() {
5369
5369
  }
@@ -5396,7 +5396,7 @@ function Ur(e, t, n) {
5396
5396
  return;
5397
5397
  e.animationState && s.whileTap && e.animationState.setActive("whileTap", n === "Start");
5398
5398
  const i = "onTap" + (n === "End" ? "" : n), r = s[i];
5399
- r && ge.postRender(() => r(t, En(t)));
5399
+ r && ge.postRender(() => r(t, kn(t)));
5400
5400
  }
5401
5401
  class tp extends mt {
5402
5402
  mount() {
@@ -5551,7 +5551,7 @@ function vp(e, { defaultTransition: t = {}, ...n } = {}, s, i) {
5551
5551
  let [b, x, y = {}] = p;
5552
5552
  y.at !== void 0 && (h = Hr(h, y.at, d, u));
5553
5553
  let N = 0;
5554
- const k = (I, M, E, S = 0, v = 0) => {
5554
+ const E = (I, M, k, S = 0, v = 0) => {
5555
5555
  const P = wp(I), { delay: F = 0, times: B = rl(P), type: q = t.type || "keyframes", repeat: D, repeatType: te, repeatDelay: Y = 0, ...Z } = M;
5556
5556
  let { ease: R = t.ease || "easeOut", duration: C } = M;
5557
5557
  const _ = typeof F == "function" ? F(S, v) : F, j = P.length, T = Bi(q) ? q : i?.[q || "keyframes"];
@@ -5586,18 +5586,18 @@ function vp(e, { defaultTransition: t = {}, ...n } = {}, s, i) {
5586
5586
  gp(B, D);
5587
5587
  }
5588
5588
  const se = A + C;
5589
- pp(E, P, R, B, A, se), N = Math.max(_ + C, N), f = Math.max(se, f);
5589
+ pp(k, P, R, B, A, se), N = Math.max(_ + C, N), f = Math.max(se, f);
5590
5590
  };
5591
5591
  if (Re(b)) {
5592
5592
  const I = Xr(b, l);
5593
- k(x, y, Gr("default", I));
5593
+ E(x, y, Gr("default", I));
5594
5594
  } else {
5595
5595
  const I = vc(b, x, s, c), M = I.length;
5596
- for (let E = 0; E < M; E++) {
5596
+ for (let k = 0; k < M; k++) {
5597
5597
  x = x, y = y;
5598
- const S = I[E], v = Xr(S, l);
5598
+ const S = I[k], v = Xr(S, l);
5599
5599
  for (const P in x)
5600
- k(x[P], Tp(y, P), Gr(P, v), E, M);
5600
+ E(x[P], Tp(y, P), Gr(P, v), k, M);
5601
5601
  }
5602
5602
  }
5603
5603
  d = h, h += N;
@@ -5606,22 +5606,22 @@ function vp(e, { defaultTransition: t = {}, ...n } = {}, s, i) {
5606
5606
  for (const b in m) {
5607
5607
  const x = m[b];
5608
5608
  x.sort(bp);
5609
- const y = [], N = [], k = [];
5609
+ const y = [], N = [], E = [];
5610
5610
  for (let S = 0; S < x.length; S++) {
5611
5611
  const { at: v, value: P, easing: F } = x[S];
5612
- y.push(P), N.push(/* @__PURE__ */ Wt(0, f, v)), k.push(F || "easeOut");
5612
+ y.push(P), N.push(/* @__PURE__ */ Wt(0, f, v)), E.push(F || "easeOut");
5613
5613
  }
5614
- N[0] !== 0 && (N.unshift(0), y.unshift(y[0]), k.unshift(yp)), N[N.length - 1] !== 1 && (N.push(1), y.push(null)), o.has(p) || o.set(p, {
5614
+ N[0] !== 0 && (N.unshift(0), y.unshift(y[0]), E.unshift(yp)), N[N.length - 1] !== 1 && (N.push(1), y.push(null)), o.has(p) || o.set(p, {
5615
5615
  keyframes: {},
5616
5616
  transition: {}
5617
5617
  });
5618
5618
  const I = o.get(p);
5619
5619
  I.keyframes[b] = y;
5620
- const { type: M, ...E } = t;
5620
+ const { type: M, ...k } = t;
5621
5621
  I.transition[b] = {
5622
- ...E,
5622
+ ...k,
5623
5623
  duration: f,
5624
- ease: k,
5624
+ ease: E,
5625
5625
  times: N,
5626
5626
  ...n
5627
5627
  };
@@ -5644,7 +5644,7 @@ function Tp(e, t) {
5644
5644
  } : { ...e };
5645
5645
  }
5646
5646
  const Sp = (e) => typeof e == "number", Np = (e) => e.every(Sp);
5647
- function kp(e) {
5647
+ function Ep(e) {
5648
5648
  const t = {
5649
5649
  presenceContext: null,
5650
5650
  props: {},
@@ -5661,7 +5661,7 @@ function kp(e) {
5661
5661
  }, n = rs(e) && !jl(e) ? new Xl(t) : new zl(t);
5662
5662
  n.mount(e), bn.set(e, n);
5663
5663
  }
5664
- function Ep(e) {
5664
+ function kp(e) {
5665
5665
  const t = {
5666
5666
  presenceContext: null,
5667
5667
  props: {},
@@ -5687,7 +5687,7 @@ function wc(e, t, n, s) {
5687
5687
  const r = vc(e, t, s), o = r.length;
5688
5688
  Ge(!!o, "No valid elements provided.", "no-valid-elements");
5689
5689
  for (let l = 0; l < o; l++) {
5690
- const c = r[l], u = c instanceof Element ? kp : Ep;
5690
+ const c = r[l], u = c instanceof Element ? Ep : kp;
5691
5691
  bn.has(c) || u(c);
5692
5692
  const d = bn.get(c), h = { ...n };
5693
5693
  "delay" in h && typeof h.delay == "function" && (h.delay = h.delay(l, o)), i.push(...Hi(d, { ...t, transition: h }, {}));
@@ -5813,7 +5813,7 @@ function Nc(e) {
5813
5813
  } else for (n in e) e[n] && (s && (s += " "), s += n);
5814
5814
  return s;
5815
5815
  }
5816
- function kc() {
5816
+ function Ec() {
5817
5817
  for (var e, t, n = 0, s = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Nc(e)) && (s && (s += " "), s += t);
5818
5818
  return s;
5819
5819
  }
@@ -5827,7 +5827,7 @@ const Ap = (e, t) => {
5827
5827
  }, Lp = (e, t) => ({
5828
5828
  classGroupId: e,
5829
5829
  validator: t
5830
- }), Ec = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
5830
+ }), kc = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
5831
5831
  nextPart: e,
5832
5832
  validators: t,
5833
5833
  classGroupId: n
@@ -5878,7 +5878,7 @@ const Ap = (e, t) => {
5878
5878
  } = e;
5879
5879
  return Fp(n, t);
5880
5880
  }, Fp = (e, t) => {
5881
- const n = Ec();
5881
+ const n = kc();
5882
5882
  for (const s in e) {
5883
5883
  const i = e[s];
5884
5884
  oo(i, n, s, t);
@@ -5921,7 +5921,7 @@ const Ap = (e, t) => {
5921
5921
  for (let r = 0; r < i; r++) {
5922
5922
  const o = s[r];
5923
5923
  let l = n.nextPart.get(o);
5924
- l || (l = Ec(), n.nextPart.set(o, l)), n = l;
5924
+ l || (l = kc(), n.nextPart.set(o, l)), n = l;
5925
5925
  }
5926
5926
  return n;
5927
5927
  }, Yp = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Up = (e) => {
@@ -6051,14 +6051,14 @@ const Ap = (e, t) => {
6051
6051
  }
6052
6052
  x = !1;
6053
6053
  }
6054
- const N = f.length === 0 ? "" : f.length === 1 ? f[0] : r(f).join(":"), k = m ? N + bi : N, I = k + y;
6054
+ const N = f.length === 0 ? "" : f.length === 1 ? f[0] : r(f).join(":"), E = m ? N + bi : N, I = E + y;
6055
6055
  if (o.indexOf(I) > -1)
6056
6056
  continue;
6057
6057
  o.push(I);
6058
6058
  const M = i(y, x);
6059
- for (let E = 0; E < M.length; ++E) {
6060
- const S = M[E];
6061
- o.push(k + S);
6059
+ for (let k = 0; k < M.length; ++k) {
6060
+ const S = M[k];
6061
+ o.push(E + S);
6062
6062
  }
6063
6063
  c = d + (c.length > 0 ? " " + c : c);
6064
6064
  }
@@ -6103,7 +6103,7 @@ const Ap = (e, t) => {
6103
6103
  const s = Mc.exec(e);
6104
6104
  return s ? s[1] ? t(s[1]) : n : !1;
6105
6105
  }, Ac = (e) => e === "position" || e === "percentage", Lc = (e) => e === "image" || e === "url", Vc = (e) => e === "length" || e === "size" || e === "bg-size", Oc = (e) => e === "length", xg = (e) => e === "number", Dc = (e) => e === "family-name", _c = (e) => e === "number" || e === "weight", Fc = (e) => e === "shadow", vg = () => {
6106
- const e = Pe("color"), t = Pe("font"), n = Pe("text"), s = Pe("font-weight"), i = Pe("tracking"), r = Pe("leading"), o = Pe("breakpoint"), l = Pe("container"), c = Pe("spacing"), u = Pe("radius"), d = Pe("shadow"), h = Pe("inset-shadow"), f = Pe("text-shadow"), m = Pe("drop-shadow"), p = Pe("blur"), b = Pe("perspective"), x = Pe("aspect"), y = Pe("ease"), N = Pe("animate"), k = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], I = () => [
6106
+ const e = Pe("color"), t = Pe("font"), n = Pe("text"), s = Pe("font-weight"), i = Pe("tracking"), r = Pe("leading"), o = Pe("breakpoint"), l = Pe("container"), c = Pe("spacing"), u = Pe("radius"), d = Pe("shadow"), h = Pe("inset-shadow"), f = Pe("text-shadow"), m = Pe("drop-shadow"), p = Pe("blur"), b = Pe("perspective"), x = Pe("aspect"), y = Pe("ease"), N = Pe("animate"), E = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], I = () => [
6107
6107
  "center",
6108
6108
  "top",
6109
6109
  "bottom",
@@ -6121,7 +6121,7 @@ const Ap = (e, t) => {
6121
6121
  "bottom-left",
6122
6122
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
6123
6123
  "left-bottom"
6124
- ], M = () => [...I(), K, X], E = () => ["auto", "hidden", "clip", "visible", "scroll"], S = () => ["auto", "contain", "none"], v = () => [K, X, c], P = () => [at, "full", "auto", ...v()], F = () => [lt, "none", "subgrid", K, X], B = () => ["auto", {
6124
+ ], M = () => [...I(), K, X], k = () => ["auto", "hidden", "clip", "visible", "scroll"], S = () => ["auto", "contain", "none"], v = () => [K, X, c], P = () => [at, "full", "auto", ...v()], F = () => [lt, "none", "subgrid", K, X], B = () => ["auto", {
6125
6125
  span: ["full", lt, K, X]
6126
6126
  }, lt, K, X], q = () => [lt, "auto", K, X], D = () => ["auto", "min", "max", "fr", K, X], te = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Y = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], Z = () => ["auto", ...v()], R = () => [at, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...v()], C = () => [at, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...v()], _ = () => [at, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...v()], j = () => [e, K, X], T = () => [...I(), ta, ea, {
6127
6127
  position: [K, X]
@@ -6197,14 +6197,14 @@ const Ap = (e, t) => {
6197
6197
  * @see https://tailwindcss.com/docs/break-after
6198
6198
  */
6199
6199
  "break-after": [{
6200
- "break-after": k()
6200
+ "break-after": E()
6201
6201
  }],
6202
6202
  /**
6203
6203
  * Break Before
6204
6204
  * @see https://tailwindcss.com/docs/break-before
6205
6205
  */
6206
6206
  "break-before": [{
6207
- "break-before": k()
6207
+ "break-before": E()
6208
6208
  }],
6209
6209
  /**
6210
6210
  * Break Inside
@@ -6275,21 +6275,21 @@ const Ap = (e, t) => {
6275
6275
  * @see https://tailwindcss.com/docs/overflow
6276
6276
  */
6277
6277
  overflow: [{
6278
- overflow: E()
6278
+ overflow: k()
6279
6279
  }],
6280
6280
  /**
6281
6281
  * Overflow X
6282
6282
  * @see https://tailwindcss.com/docs/overflow
6283
6283
  */
6284
6284
  "overflow-x": [{
6285
- "overflow-x": E()
6285
+ "overflow-x": k()
6286
6286
  }],
6287
6287
  /**
6288
6288
  * Overflow Y
6289
6289
  * @see https://tailwindcss.com/docs/overflow
6290
6290
  */
6291
6291
  "overflow-y": [{
6292
- "overflow-y": E()
6292
+ "overflow-y": k()
6293
6293
  }],
6294
6294
  /**
6295
6295
  * Overscroll Behavior
@@ -8733,7 +8733,7 @@ const Ap = (e, t) => {
8733
8733
  };
8734
8734
  }, wg = /* @__PURE__ */ Qp(vg);
8735
8735
  function _n(...e) {
8736
- return wg(kc(e));
8736
+ return wg(Ec(e));
8737
8737
  }
8738
8738
  const Ry = /* @__PURE__ */ new Map([
8739
8739
  ["fragata-f110", "F110"],
@@ -8813,7 +8813,7 @@ const vn = {
8813
8813
  };
8814
8814
  return /* @__PURE__ */ a.jsx($c.Provider, { value: { sendMessage: d, isConnected: r, reconnect: h }, children: e });
8815
8815
  }, Cn = () => ye($c);
8816
- function kg() {
8816
+ function Eg() {
8817
8817
  const e = Tc();
8818
8818
  if (!e) return null;
8819
8819
  const { isMinimized: t, toggleMinimized: n, setMinimized: s } = e, { sendMessage: i } = Cn(), { lastEvent: r } = Jt(), o = we().wsRoom;
@@ -8853,13 +8853,13 @@ function kg() {
8853
8853
  ease: "easeInOut"
8854
8854
  }
8855
8855
  },
8856
- children: /* @__PURE__ */ a.jsx(w.div, { animate: { rotate: 0 }, transition: { duration: 0.3 }, children: t ? /* @__PURE__ */ a.jsx(Ta, { className: "w-5 h-5 text-white" }) : /* @__PURE__ */ a.jsx(ki, { className: "w-5 h-5 text-white" }) })
8856
+ children: /* @__PURE__ */ a.jsx(w.div, { animate: { rotate: 0 }, transition: { duration: 0.3 }, children: t ? /* @__PURE__ */ a.jsx(Ta, { className: "w-5 h-5 text-white" }) : /* @__PURE__ */ a.jsx(Ei, { className: "w-5 h-5 text-white" }) })
8857
8857
  }
8858
8858
  )
8859
8859
  }
8860
8860
  );
8861
8861
  }
8862
- const Eg = ({ label: e, onClick: t }) => /* @__PURE__ */ a.jsxs(
8862
+ const kg = ({ label: e, onClick: t }) => /* @__PURE__ */ a.jsxs(
8863
8863
  w.button,
8864
8864
  {
8865
8865
  onClick: t,
@@ -9113,7 +9113,7 @@ function Yt({ src: e, transparent: t = !1, onClose: n }) {
9113
9113
  }, [r]), /* @__PURE__ */ a.jsxs(
9114
9114
  w.div,
9115
9115
  {
9116
- className: kc(
9116
+ className: Ec(
9117
9117
  "absolute inset-0 z-12000",
9118
9118
  !t && "bg-black/95"
9119
9119
  ),
@@ -9184,39 +9184,39 @@ function zc({ onClose: e, cards: t }) {
9184
9184
  s(!0), setTimeout(() => {
9185
9185
  e(), s(!1);
9186
9186
  }, 600);
9187
- }, y = (E) => {
9188
- E.webUrl?.trim() && (r(!0), l(E.webUrl.replace("https://www.navantia.es", we().remoteUrl) + "?lightbox"));
9187
+ }, y = (k) => {
9188
+ k.webUrl?.trim() && (r(!0), l(k.webUrl.replace("https://www.navantia.es", we().remoteUrl) + "?lightbox"));
9189
9189
  }, N = () => {
9190
9190
  r(!1);
9191
- }, k = () => {
9191
+ }, E = () => {
9192
9192
  if (d) return;
9193
9193
  h(!0);
9194
- const E = I.length;
9195
- if (E <= b) {
9194
+ const k = I.length;
9195
+ if (k <= b) {
9196
9196
  h(!1);
9197
9197
  return;
9198
9198
  }
9199
- u((S) => (S + 1) % E), setTimeout(() => h(!1), 1e3);
9199
+ u((S) => (S + 1) % k), setTimeout(() => h(!1), 1e3);
9200
9200
  }, I = [];
9201
- for (let E = 0; E < t.length; E += p)
9202
- I.push(t.slice(E, E + p));
9201
+ for (let k = 0; k < t.length; k += p)
9202
+ I.push(t.slice(k, k + p));
9203
9203
  const M = () => {
9204
- const E = I.length;
9205
- if (E <= b)
9204
+ const k = I.length;
9205
+ if (k <= b)
9206
9206
  return I;
9207
9207
  const S = [];
9208
9208
  for (let v = 0; v < b; v++) {
9209
- const P = (c + v) % E;
9209
+ const P = (c + v) % k;
9210
9210
  S.push(I[P]);
9211
9211
  }
9212
9212
  return S;
9213
9213
  };
9214
9214
  return ne(() => {
9215
- const E = (S) => {
9215
+ const k = (S) => {
9216
9216
  S.key === "Escape" && e();
9217
9217
  };
9218
- return window.addEventListener("keydown", E), () => {
9219
- window.removeEventListener("keydown", E);
9218
+ return window.addEventListener("keydown", k), () => {
9219
+ window.removeEventListener("keydown", k);
9220
9220
  };
9221
9221
  }, [e]), /* @__PURE__ */ a.jsx(
9222
9222
  w.div,
@@ -9233,7 +9233,7 @@ function zc({ onClose: e, cards: t }) {
9233
9233
  initial: { scale: 0.9, opacity: 0 },
9234
9234
  animate: { scale: 1, opacity: 1 },
9235
9235
  exit: { scale: 0.9, opacity: 0 },
9236
- onClick: (E) => E.stopPropagation(),
9236
+ onClick: (k) => k.stopPropagation(),
9237
9237
  children: [
9238
9238
  /* @__PURE__ */ a.jsx(
9239
9239
  w.div,
@@ -9294,7 +9294,7 @@ function zc({ onClose: e, cards: t }) {
9294
9294
  )
9295
9295
  }
9296
9296
  ),
9297
- /* @__PURE__ */ a.jsx(Ce, { mode: "popLayout", children: M().map((E, S) => /* @__PURE__ */ a.jsx(
9297
+ /* @__PURE__ */ a.jsx(Ce, { mode: "popLayout", children: M().map((k, S) => /* @__PURE__ */ a.jsx(
9298
9298
  w.div,
9299
9299
  {
9300
9300
  className: "grid justify-center grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 sm:gap-6",
@@ -9321,7 +9321,7 @@ function zc({ onClose: e, cards: t }) {
9321
9321
  ease: [0.34, 1.56, 0.64, 1],
9322
9322
  delay: S * 0.15
9323
9323
  },
9324
- children: E.map((v, P) => /* @__PURE__ */ a.jsxs(
9324
+ children: k.map((v, P) => /* @__PURE__ */ a.jsxs(
9325
9325
  w.div,
9326
9326
  {
9327
9327
  className: "relative group cursor-pointer",
@@ -9382,7 +9382,7 @@ function zc({ onClose: e, cards: t }) {
9382
9382
  !i && t.length > p * b && /* @__PURE__ */ a.jsx(
9383
9383
  w.button,
9384
9384
  {
9385
- onClick: k,
9385
+ onClick: E,
9386
9386
  disabled: d,
9387
9387
  className: "mx-auto flex z-10 p-3 hover:bg-slate-700/80 text-cyan-300 font-medium text-xs sm:text-sm rounded-full transition-all duration-300 border-cyan-400/30 hover:border-cyan-400/60 shadow-lg hover:shadow-cyan-500/50 disabled:opacity-50 disabled:cursor-not-allowed bg-[rgba(30,41,59,0)] border mt-0 px-2 py-2",
9388
9388
  whileHover: { scale: 1.05, y: 5 },
@@ -9401,7 +9401,7 @@ function zc({ onClose: e, cards: t }) {
9401
9401
  scale: { duration: 0.2 },
9402
9402
  rotate: { duration: 0.4, ease: "easeInOut" }
9403
9403
  },
9404
- children: /* @__PURE__ */ a.jsx(ki, { className: "w-6 h-6 mx-0 my-0 px-0" })
9404
+ children: /* @__PURE__ */ a.jsx(Ei, { className: "w-6 h-6 mx-0 my-0 px-0" })
9405
9405
  }
9406
9406
  )
9407
9407
  ] })
@@ -9511,7 +9511,7 @@ function Ig({ onClose: e }) {
9511
9511
  t && /* @__PURE__ */ a.jsx(Yt, { src: s, onClose: () => n(!1) })
9512
9512
  ] });
9513
9513
  }
9514
- const Wc = "carousel", Yc = "controller", jg = "navigation", Mg = "no-scroll", ao = "portal", Rg = "root", Uc = "toolbar", na = "zoom", Fs = "loading", $s = "error", Bs = "complete", Ag = "placeholder", Lg = (e) => `active-slide-${e}`, Vg = "fullsize", lo = "flex_center", Og = "no_scroll", Hc = "no_scroll_padding", co = "slide", Xc = "slide_wrapper", Dg = "slide_wrapper_interactive", Nt = "prev", kt = "next", sa = "swipe", Ut = "close", Gc = "onPointerDown", Kc = "onPointerMove", Zc = "onPointerUp", qc = "onPointerLeave", Jc = "onPointerCancel", uo = "onKeyDown", _g = "onKeyUp", ho = "onWheel", Fg = "Escape", $g = "ArrowLeft", Bg = "ArrowRight", zg = "button", yi = "icon", Qc = "contain", ia = "cover", eu = "Unknown action type", tu = "yarl__";
9514
+ const Wc = "carousel", Yc = "controller", jg = "navigation", Mg = "no-scroll", ao = "portal", Rg = "root", Uc = "toolbar", na = "zoom", Fs = "loading", $s = "error", Bs = "complete", Ag = "placeholder", Lg = (e) => `active-slide-${e}`, Vg = "fullsize", lo = "flex_center", Og = "no_scroll", Hc = "no_scroll_padding", co = "slide", Xc = "slide_wrapper", Dg = "slide_wrapper_interactive", Nt = "prev", Et = "next", sa = "swipe", Ut = "close", Gc = "onPointerDown", Kc = "onPointerMove", Zc = "onPointerUp", qc = "onPointerLeave", Jc = "onPointerCancel", uo = "onKeyDown", _g = "onKeyUp", ho = "onWheel", Fg = "Escape", $g = "ArrowLeft", Bg = "ArrowRight", zg = "button", yi = "icon", Qc = "contain", ia = "cover", eu = "Unknown action type", tu = "yarl__";
9515
9515
  function Qe(...e) {
9516
9516
  return e.filter(Boolean).join(" ");
9517
9517
  }
@@ -10018,24 +10018,24 @@ function aa(e, t) {
10018
10018
  const zs = fo("slide"), Ws = fo("slide_image");
10019
10019
  function ss({ slide: e, offset: t, render: n, rect: s, imageFit: i, imageProps: r, onClick: o, onLoad: l, onError: c, style: u }) {
10020
10020
  var d, h, f, m, p, b, x, y;
10021
- const [N, k] = g.useState(Fs), { publish: I } = fs(), { setTimeout: M } = ms(), E = g.useRef(null);
10021
+ const [N, E] = g.useState(Fs), { publish: I } = fs(), { setTimeout: M } = ms(), k = g.useRef(null);
10022
10022
  g.useEffect(() => {
10023
10023
  t === 0 && I(Lg(N));
10024
10024
  }, [t, N, I]);
10025
10025
  const S = fe((A) => {
10026
10026
  ("decode" in A ? A.decode() : Promise.resolve()).catch(() => {
10027
10027
  }).then(() => {
10028
- A.parentNode && (k(Bs), M(() => {
10028
+ A.parentNode && (E(Bs), M(() => {
10029
10029
  l?.(A);
10030
10030
  }, 0));
10031
10031
  });
10032
10032
  }), v = g.useCallback((A) => {
10033
- E.current = A, A?.complete && S(A);
10033
+ k.current = A, A?.complete && S(A);
10034
10034
  }, [S]), P = g.useCallback((A) => {
10035
10035
  S(A.currentTarget);
10036
10036
  }, [S]), F = fe(() => {
10037
- k($s), c?.();
10038
- }), B = bo(e, i), q = (A, ee) => Number.isFinite(A) ? A : ee, D = q(Math.max(...((h = (d = e.srcSet) === null || d === void 0 ? void 0 : d.map((A) => A.width)) !== null && h !== void 0 ? h : []).concat(e.width ? [e.width] : []).filter(Boolean)), ((f = E.current) === null || f === void 0 ? void 0 : f.naturalWidth) || 0), te = q(Math.max(...((p = (m = e.srcSet) === null || m === void 0 ? void 0 : m.map((A) => A.height)) !== null && p !== void 0 ? p : []).concat(e.height ? [e.height] : []).filter(Boolean)), ((b = E.current) === null || b === void 0 ? void 0 : b.naturalHeight) || 0), Y = D && te ? {
10037
+ E($s), c?.();
10038
+ }), B = bo(e, i), q = (A, ee) => Number.isFinite(A) ? A : ee, D = q(Math.max(...((h = (d = e.srcSet) === null || d === void 0 ? void 0 : d.map((A) => A.width)) !== null && h !== void 0 ? h : []).concat(e.width ? [e.width] : []).filter(Boolean)), ((f = k.current) === null || f === void 0 ? void 0 : f.naturalWidth) || 0), te = q(Math.max(...((p = (m = e.srcSet) === null || m === void 0 ? void 0 : m.map((A) => A.height)) !== null && p !== void 0 ? p : []).concat(e.height ? [e.height] : []).filter(Boolean)), ((b = k.current) === null || b === void 0 ? void 0 : b.naturalHeight) || 0), Y = D && te ? {
10039
10039
  maxWidth: `min(${D}px, 100%)`,
10040
10040
  maxHeight: `min(${te}px, 100%)`
10041
10041
  } : {
@@ -10076,37 +10076,37 @@ var He;
10076
10076
  })(He || (He = {}));
10077
10077
  const Ys = 30;
10078
10078
  function bb({ disableSwipeNavigation: e, closeOnBackdropClick: t }, n, s, i, r, o, l, c, u, d, h, f, m, p, b, x) {
10079
- const y = g.useRef(0), N = g.useRef([]), k = g.useRef(void 0), I = g.useRef(0), M = g.useRef(He.NONE), E = g.useCallback((D) => {
10080
- k.current === D.pointerId && (k.current = void 0, M.current = He.NONE);
10079
+ const y = g.useRef(0), N = g.useRef([]), E = g.useRef(void 0), I = g.useRef(0), M = g.useRef(He.NONE), k = g.useCallback((D) => {
10080
+ E.current === D.pointerId && (E.current = void 0, M.current = He.NONE);
10081
10081
  const te = N.current;
10082
10082
  te.splice(0, te.length, ...te.filter((Y) => Y.pointerId !== D.pointerId));
10083
10083
  }, []), S = g.useCallback((D) => {
10084
- E(D), D.persist(), N.current.push(D);
10085
- }, [E]), v = g.useCallback((D) => N.current.find(({ pointerId: te }) => D.pointerId === te), []), P = fe((D) => {
10084
+ k(D), D.persist(), N.current.push(D);
10085
+ }, [k]), v = g.useCallback((D) => N.current.find(({ pointerId: te }) => D.pointerId === te), []), P = fe((D) => {
10086
10086
  S(D);
10087
10087
  }), F = (D, te) => h && D > te || d && D < -te, B = fe((D) => {
10088
10088
  const te = v(D);
10089
10089
  if (te)
10090
- if (k.current === D.pointerId) {
10090
+ if (E.current === D.pointerId) {
10091
10091
  const Y = Date.now() - I.current, Z = y.current;
10092
10092
  M.current === He.SWIPE ? Math.abs(Z) > 0.3 * i || Math.abs(Z) > 5 && Y < r ? c(Z, Y) : u(Z) : M.current === He.PULL && (F(Z, 2 * Ys) ? p(Z, Y) : b(Z)), y.current = 0, M.current = He.NONE;
10093
10093
  } else {
10094
10094
  const { target: Y } = D;
10095
10095
  t && Y instanceof HTMLElement && Y === te.target && (Y.classList.contains(he(co)) || Y.classList.contains(he(Xc))) && x();
10096
10096
  }
10097
- E(D);
10097
+ k(D);
10098
10098
  }), q = fe((D) => {
10099
10099
  const te = v(D);
10100
10100
  if (te) {
10101
- const Y = k.current === D.pointerId;
10101
+ const Y = E.current === D.pointerId;
10102
10102
  if (D.buttons === 0) {
10103
- Y && y.current !== 0 ? B(D) : E(te);
10103
+ Y && y.current !== 0 ? B(D) : k(te);
10104
10104
  return;
10105
10105
  }
10106
10106
  const Z = D.clientX - te.clientX, R = D.clientY - te.clientY;
10107
- if (k.current === void 0) {
10107
+ if (E.current === void 0) {
10108
10108
  const C = (_) => {
10109
- S(D), k.current = D.pointerId, I.current = Date.now(), M.current = _;
10109
+ S(D), E.current = D.pointerId, I.current = Date.now(), M.current = _;
10110
10110
  };
10111
10111
  Math.abs(Z) > Math.abs(R) && Math.abs(Z) > Ys && s(Z) ? e || (C(He.SWIPE), o()) : Math.abs(R) > Math.abs(Z) && F(R, Ys) && (C(He.PULL), f());
10112
10112
  } else Y && (M.current === He.SWIPE ? (y.current = Z, l(Z)) : M.current === He.PULL && (y.current = R, m(R)));
@@ -10127,15 +10127,15 @@ function yb({ preventDefaultWheelX: e, preventDefaultWheelY: t }) {
10127
10127
  function xb(e, t, n, s, i, r, o, l, c) {
10128
10128
  const u = g.useRef(0), d = g.useRef(0), h = g.useRef(void 0), f = g.useRef(void 0), m = g.useRef(0), p = g.useRef(void 0), b = g.useRef(0), { setTimeout: x, clearTimeout: y } = ms(), N = g.useCallback(() => {
10129
10129
  h.current && (y(h.current), h.current = void 0);
10130
- }, [y]), k = g.useCallback(() => {
10130
+ }, [y]), E = g.useCallback(() => {
10131
10131
  f.current && (y(f.current), f.current = void 0);
10132
10132
  }, [y]), I = fe(() => {
10133
- e !== Le.SWIPE && (u.current = 0, b.current = 0, N(), k());
10133
+ e !== Le.SWIPE && (u.current = 0, b.current = 0, N(), E());
10134
10134
  });
10135
10135
  g.useEffect(I, [e, I]);
10136
10136
  const M = fe((S) => {
10137
10137
  f.current = void 0, u.current === S && c(u.current);
10138
- }), E = fe((S) => {
10138
+ }), k = fe((S) => {
10139
10139
  if (S.ctrlKey || Math.abs(S.deltaY) > Math.abs(S.deltaX))
10140
10140
  return;
10141
10141
  const v = (P) => {
@@ -10160,7 +10160,7 @@ function xb(e, t, n, s, i, r, o, l, c) {
10160
10160
  }
10161
10161
  } else if (e === Le.SWIPE) {
10162
10162
  let P = u.current - S.deltaX;
10163
- if (P = Math.min(Math.abs(P), s) * Math.sign(P), u.current = P, o(P), k(), Math.abs(P) > 0.2 * s) {
10163
+ if (P = Math.min(Math.abs(P), s) * Math.sign(P), u.current = P, o(P), E(), Math.abs(P) > 0.2 * s) {
10164
10164
  v(S.deltaX), l(P, Date.now() - b.current);
10165
10165
  return;
10166
10166
  }
@@ -10168,17 +10168,17 @@ function xb(e, t, n, s, i, r, o, l, c) {
10168
10168
  } else
10169
10169
  v(S.deltaX);
10170
10170
  });
10171
- g.useEffect(() => t(ho, E), [t, E]);
10171
+ g.useEffect(() => t(ho, k), [t, k]);
10172
10172
  }
10173
10173
  const la = fo("container"), pu = g.createContext(null), rt = ot("useController", "ControllerContext", pu);
10174
10174
  function vb({ children: e, ...t }) {
10175
10175
  var n;
10176
- const { carousel: s, animation: i, controller: r, on: o, styles: l, render: c } = t, { closeOnPullUp: u, closeOnPullDown: d, preventDefaultWheelX: h, preventDefaultWheelY: f } = r, [m, p] = g.useState(), b = bt(), x = sb(), [y, N] = g.useState(Le.NONE), k = g.useRef(0), I = g.useRef(0), M = g.useRef(1), { registerSensors: E, subscribeSensors: S } = pb(), { subscribe: v, publish: P } = fs(), F = Xn(), B = Xn(), q = Xn(), { containerRef: D, setContainerRef: te, containerRect: Y } = fu(), Z = wi(yb({ preventDefaultWheelX: h, preventDefaultWheelY: f }), te), R = g.useRef(null), C = wi(R, void 0), { getOwnerDocument: _ } = hs(), j = wo(), T = (U) => (j ? -1 : 1) * (typeof U == "number" ? U : 1), A = fe(() => {
10176
+ const { carousel: s, animation: i, controller: r, on: o, styles: l, render: c } = t, { closeOnPullUp: u, closeOnPullDown: d, preventDefaultWheelX: h, preventDefaultWheelY: f } = r, [m, p] = g.useState(), b = bt(), x = sb(), [y, N] = g.useState(Le.NONE), E = g.useRef(0), I = g.useRef(0), M = g.useRef(1), { registerSensors: k, subscribeSensors: S } = pb(), { subscribe: v, publish: P } = fs(), F = Xn(), B = Xn(), q = Xn(), { containerRef: D, setContainerRef: te, containerRect: Y } = fu(), Z = wi(yb({ preventDefaultWheelX: h, preventDefaultWheelY: f }), te), R = g.useRef(null), C = wi(R, void 0), { getOwnerDocument: _ } = hs(), j = wo(), T = (U) => (j ? -1 : 1) * (typeof U == "number" ? U : 1), A = fe(() => {
10177
10177
  var U;
10178
10178
  return (U = D.current) === null || U === void 0 ? void 0 : U.focus();
10179
- }), ee = fe(() => t), se = fe(() => b), oe = g.useCallback((U) => P(Nt, U), [P]), re = g.useCallback((U) => P(kt, U), [P]), ae = g.useCallback(() => P(Ut), [P]), be = (U) => !(s.finite && (T(U) > 0 && b.currentIndex === 0 || T(U) < 0 && b.currentIndex === b.slides.length - 1)), ce = (U) => {
10179
+ }), ee = fe(() => t), se = fe(() => b), oe = g.useCallback((U) => P(Nt, U), [P]), re = g.useCallback((U) => P(Et, U), [P]), ae = g.useCallback(() => P(Ut), [P]), be = (U) => !(s.finite && (T(U) > 0 && b.currentIndex === 0 || T(U) < 0 && b.currentIndex === b.slides.length - 1)), ce = (U) => {
10180
10180
  var me;
10181
- k.current = U, (me = D.current) === null || me === void 0 || me.style.setProperty(_e("swipe_offset"), `${Math.round(U)}px`);
10181
+ E.current = U, (me = D.current) === null || me === void 0 || me.style.setProperty(_e("swipe_offset"), `${Math.round(U)}px`);
10182
10182
  }, Se = (U) => {
10183
10183
  var me, Ie;
10184
10184
  I.current = U, M.current = (() => {
@@ -10233,10 +10233,10 @@ function vb({ children: e, ...t }) {
10233
10233
  let W = Le.ANIMATION, V = De * H;
10234
10234
  if (!L) {
10235
10235
  const $ = Y?.width, Q = U.duration || 0, ue = $ ? De / $ * Math.abs($e) : De;
10236
- H !== 0 ? (Q < ue ? V = V / ue * Math.max(Q, ue / 5) : $ && (V = De / $ * ($ - Math.abs($e))), L = T($e) > 0 ? Nt : kt) : V = De / 2;
10236
+ H !== 0 ? (Q < ue ? V = V / ue * Math.max(Q, ue / 5) : $ && (V = De / $ * ($ - Math.abs($e))), L = T($e) > 0 ? Nt : Et) : V = De / 2;
10237
10237
  }
10238
10238
  let J = 0;
10239
- L === Nt ? be(T(1)) ? J = -H : (W = Le.NONE, V = De) : L === kt && (be(T(-1)) ? J = H : (W = Le.NONE, V = De)), V = Math.round(V), B(() => {
10239
+ L === Nt ? be(T(1)) ? J = -H : (W = Le.NONE, V = De) : L === Et && (be(T(-1)) ? J = H : (W = Le.NONE, V = De)), V = Math.round(V), B(() => {
10240
10240
  ce(0), N(Le.NONE);
10241
10241
  }, V), R.current && pe({
10242
10242
  rect: R.current.getBoundingClientRect(),
@@ -10278,7 +10278,7 @@ function vb({ children: e, ...t }) {
10278
10278
  var U;
10279
10279
  (U = o.view) === null || U === void 0 || U.call(o, { index: b.currentIndex });
10280
10280
  });
10281
- g.useEffect(yt, [b.globalIndex, yt]), g.useEffect(() => mo(v(Nt, (U) => Ze({ direction: Nt, ...U })), v(kt, (U) => Ze({ direction: kt, ...U })), v(sa, (U) => x(U))), [v, Ze, x]);
10281
+ g.useEffect(yt, [b.globalIndex, yt]), g.useEffect(() => mo(v(Nt, (U) => Ze({ direction: Nt, ...U })), v(Et, (U) => Ze({ direction: Et, ...U })), v(sa, (U) => x(U))), [v, Ze, x]);
10282
10282
  const gs = g.useMemo(() => ({
10283
10283
  prev: oe,
10284
10284
  next: re,
@@ -10312,14 +10312,14 @@ function vb({ children: e, ...t }) {
10312
10312
  getLightboxProps: ee,
10313
10313
  getLightboxState: se
10314
10314
  }), [oe, re, ae, A, ee, se]), g.createElement("div", { ref: Z, className: Qe(he(la()), he(lo)), style: {
10315
- ...y === Le.SWIPE ? { [_e("swipe_offset")]: `${Math.round(k.current)}px` } : null,
10315
+ ...y === Le.SWIPE ? { [_e("swipe_offset")]: `${Math.round(E.current)}px` } : null,
10316
10316
  ...y === Le.PULL ? {
10317
10317
  [_e("pull_offset")]: `${Math.round(I.current)}px`,
10318
10318
  [_e("pull_opacity")]: `${M.current}`
10319
10319
  } : null,
10320
10320
  ...r.touchAction !== "none" ? { [_e("controller_touch_action")]: r.touchAction } : null,
10321
10321
  ...l.container
10322
- }, tabIndex: -1, ...E }, Y && g.createElement(
10322
+ }, tabIndex: -1, ...k }, Y && g.createElement(
10323
10323
  pu.Provider,
10324
10324
  { value: gs },
10325
10325
  e,
@@ -10340,14 +10340,14 @@ function Tb({ slide: e, offset: t }) {
10340
10340
  p && (!((x = n.current) === null || x === void 0) && x.contains(m().activeElement)) && o();
10341
10341
  }, [p, o, m]);
10342
10342
  const b = () => {
10343
- var x, y, N, k;
10343
+ var x, y, N, E;
10344
10344
  let I = (x = l.slide) === null || x === void 0 ? void 0 : x.call(l, { slide: e, offset: t, rect: r });
10345
10345
  return !I && Qt(e) && (I = g.createElement(ss, { slide: e, offset: t, render: l, rect: r, imageFit: c, imageProps: u, onClick: p ? void 0 : () => d?.({ index: s }) })), I ? g.createElement(
10346
10346
  g.Fragment,
10347
10347
  null,
10348
10348
  (y = l.slideHeader) === null || y === void 0 ? void 0 : y.call(l, { slide: e }),
10349
10349
  ((N = l.slideContainer) !== null && N !== void 0 ? N : (({ children: M }) => M))({ slide: e, children: I }),
10350
- (k = l.slideFooter) === null || k === void 0 ? void 0 : k.call(l, { slide: e })
10350
+ (E = l.slideFooter) === null || E === void 0 ? void 0 : E.call(l, { slide: e })
10351
10351
  ) : null;
10352
10352
  };
10353
10353
  return g.createElement("div", { ref: n, className: Qe(he(ca()), !p && he(ca("current")), he(lo)), ...Zg(p), style: h, role: "group", "aria-roledescription": Ht(f, "Slide"), "aria-label": Wg(f, i, s + t) }, b());
@@ -10375,14 +10375,14 @@ function Nb({ carousel: e, labels: t }) {
10375
10375
  [`${_e(Tt("padding_percent"))}`]: u.percent || 0
10376
10376
  }, role: "region", "aria-live": o && !l ? "off" : "polite", "aria-roledescription": Ht(t, "Carousel"), "aria-label": Ht(t, "Photo gallery") }, h.map(({ key: f, slide: m, offset: p }) => m ? g.createElement(Tb, { key: f, slide: m, offset: p }) : g.createElement(Sb, { key: f })));
10377
10377
  }
10378
- const kb = gt(Wc, Nb);
10378
+ const Eb = gt(Wc, Nb);
10379
10379
  function gu() {
10380
10380
  const { carousel: e } = We(), { slides: t, currentIndex: n } = bt(), s = t.length === 0 || e.finite && n === 0, i = t.length === 0 || e.finite && n === t.length - 1;
10381
10381
  return { prevDisabled: s, nextDisabled: i };
10382
10382
  }
10383
- function Eb(e) {
10383
+ function kb(e) {
10384
10384
  var t;
10385
- const n = wo(), { publish: s } = fs(), { animation: i } = We(), { prevDisabled: r, nextDisabled: o } = gu(), l = ((t = i.navigation) !== null && t !== void 0 ? t : i.swipe) / 2, c = aa(() => s(Nt), l), u = aa(() => s(kt), l), d = fe((h) => {
10385
+ const n = wo(), { publish: s } = fs(), { animation: i } = We(), { prevDisabled: r, nextDisabled: o } = gu(), l = ((t = i.navigation) !== null && t !== void 0 ? t : i.swipe) / 2, c = aa(() => s(Nt), l), u = aa(() => s(Et), l), d = fe((h) => {
10386
10386
  switch (h.key) {
10387
10387
  case Fg:
10388
10388
  s(Ut);
@@ -10402,11 +10402,11 @@ function ua({ label: e, icon: t, renderIcon: n, action: s, onClick: i, disabled:
10402
10402
  }
10403
10403
  function Cb({ render: { buttonPrev: e, buttonNext: t, iconPrev: n, iconNext: s }, styles: i }) {
10404
10404
  const { prev: r, next: o, subscribeSensors: l } = rt(), { prevDisabled: c, nextDisabled: u } = gu();
10405
- return Eb(l), g.createElement(
10405
+ return kb(l), g.createElement(
10406
10406
  g.Fragment,
10407
10407
  null,
10408
10408
  e ? e() : g.createElement(ua, { label: "Previous", action: Nt, icon: cb, renderIcon: n, style: i.navigationPrev, disabled: c, onClick: r }),
10409
- t ? t() : g.createElement(ua, { label: "Next", action: kt, icon: ub, renderIcon: s, style: i.navigationNext, disabled: u, onClick: o })
10409
+ t ? t() : g.createElement(ua, { label: "Next", action: Et, icon: ub, renderIcon: s, style: i.navigationNext, disabled: u, onClick: o })
10410
10410
  );
10411
10411
  }
10412
10412
  const Pb = gt(jg, Cb), da = he(Og), Ib = he(Hc);
@@ -10455,22 +10455,22 @@ function Ab({ children: e, animation: t, styles: n, className: s, on: i, portal:
10455
10455
  u(!1), h(!1);
10456
10456
  }), []);
10457
10457
  const N = fe(() => {
10458
- f.current.forEach((E) => E()), f.current = [];
10459
- }), k = fe(() => {
10460
- var E;
10461
- h(!1), N(), (E = i.exiting) === null || E === void 0 || E.call(i), p(() => {
10458
+ f.current.forEach((k) => k()), f.current = [];
10459
+ }), E = fe(() => {
10460
+ var k;
10461
+ h(!1), N(), (k = i.exiting) === null || k === void 0 || k.call(i), p(() => {
10462
10462
  var S;
10463
10463
  (S = i.exited) === null || S === void 0 || S.call(i), o();
10464
10464
  }, y);
10465
10465
  });
10466
- g.useEffect(() => b(Ut, k), [b, k]);
10467
- const I = fe((E) => {
10466
+ g.useEffect(() => b(Ut, E), [b, E]);
10467
+ const I = fe((k) => {
10468
10468
  var S, v, P;
10469
- qg(E), h(!0), (S = i.entering) === null || S === void 0 || S.call(i);
10470
- const F = (P = (v = E.parentNode) === null || v === void 0 ? void 0 : v.children) !== null && P !== void 0 ? P : [];
10469
+ qg(k), h(!0), (S = i.entering) === null || S === void 0 || S.call(i);
10470
+ const F = (P = (v = k.parentNode) === null || v === void 0 ? void 0 : v.children) !== null && P !== void 0 ? P : [];
10471
10471
  for (let B = 0; B < F.length; B += 1) {
10472
10472
  const q = F[B];
10473
- ["TEMPLATE", "SCRIPT", "STYLE"].indexOf(q.tagName) === -1 && q !== E && (f.current.push(ma(q, "inert", "")), f.current.push(ma(q, "aria-hidden", "true")));
10473
+ ["TEMPLATE", "SCRIPT", "STYLE"].indexOf(q.tagName) === -1 && q !== k && (f.current.push(ma(q, "inert", "")), f.current.push(ma(q, "aria-hidden", "true")));
10474
10474
  }
10475
10475
  f.current.push(() => {
10476
10476
  var B, q;
@@ -10479,15 +10479,15 @@ function Ab({ children: e, animation: t, styles: n, className: s, on: i, portal:
10479
10479
  var B;
10480
10480
  (B = i.entered) === null || B === void 0 || B.call(i);
10481
10481
  }, y);
10482
- }), M = g.useCallback((E) => {
10483
- E ? I(E) : N();
10482
+ }), M = g.useCallback((k) => {
10483
+ k ? I(k) : N();
10484
10484
  }, [I, N]);
10485
- return c ? ka(g.createElement(gb, { ref: M, className: Qe(s, he(fa()), he(Hc), d && he(fa("open"))), "aria-modal": !0, role: "dialog", "aria-label": Ht(l, "Lightbox"), style: {
10485
+ return c ? Ea(g.createElement(gb, { ref: M, className: Qe(s, he(fa()), he(Hc), d && he(fa("open"))), "aria-modal": !0, role: "dialog", "aria-label": Ht(l, "Lightbox"), style: {
10486
10486
  ...t.fade !== vi.animation.fade ? { [_e("fade_animation_duration")]: `${y}ms` } : null,
10487
10487
  ...t.easing.fade !== vi.animation.easing.fade ? { [_e("fade_animation_timing_function")]: t.easing.fade } : null,
10488
10488
  ...n.root
10489
- }, onFocus: (E) => {
10490
- m.current || (m.current = E.relatedTarget);
10489
+ }, onFocus: (k) => {
10490
+ m.current || (m.current = k.relatedTarget);
10491
10491
  } }, e), r.root || document.body) : null;
10492
10492
  }
10493
10493
  const Lb = gt(ao, Ab);
@@ -10520,11 +10520,11 @@ function $b(e, t = {}) {
10520
10520
  };
10521
10521
  }
10522
10522
  function Bb({ carousel: e, animation: t, render: n, toolbar: s, controller: i, noScroll: r, on: o, plugins: l, slides: c, index: u, ...d }) {
10523
- const { animation: h, carousel: f, render: m, toolbar: p, controller: b, noScroll: x, on: y, slides: N, index: k, plugins: I, ...M } = vi, { config: E, augmentation: S } = Jg([
10523
+ const { animation: h, carousel: f, render: m, toolbar: p, controller: b, noScroll: x, on: y, slides: N, index: E, plugins: I, ...M } = vi, { config: k, augmentation: S } = Jg([
10524
10524
  Me(Lb, [
10525
10525
  Me(Rb, [
10526
10526
  Me(wb, [
10527
- Me(kb),
10527
+ Me(Eb),
10528
10528
  Me(Fb),
10529
10529
  Me(Pb)
10530
10530
  ])
@@ -10546,14 +10546,14 @@ function Bb({ carousel: e, animation: t, render: n, toolbar: s, controller: i, n
10546
10546
  { ...v },
10547
10547
  g.createElement(
10548
10548
  ob,
10549
- { slides: c || N, index: ds(u || k) },
10549
+ { slides: c || N, index: ds(u || E) },
10550
10550
  g.createElement(
10551
10551
  rb,
10552
10552
  null,
10553
10553
  g.createElement(
10554
10554
  tb,
10555
10555
  null,
10556
- g.createElement(Qg, null, bu(Me(Ob, E), v))
10556
+ g.createElement(Qg, null, bu(Me(Ob, k), v))
10557
10557
  )
10558
10558
  )
10559
10559
  )
@@ -10647,7 +10647,7 @@ function ga(e, t, n = 100, s = 2) {
10647
10647
  return e * Math.min(1 + Math.abs(t / n), s) ** Math.sign(t);
10648
10648
  }
10649
10649
  function Xb(e, t, n, s, i, r, o, l, c) {
10650
- const u = g.useRef([]), d = g.useRef(0), h = g.useRef(void 0), { globalIndex: f } = bt(), { getOwnerWindow: m } = hs(), { containerRef: p, subscribeSensors: b } = rt(), { keyboardMoveDistance: x, zoomInMultiplier: y, wheelZoomDistanceFactor: N, scrollToZoom: k, doubleTapDelay: I, doubleClickDelay: M, doubleClickMaxStops: E, pinchZoomDistanceFactor: S, pinchZoomV4: v } = ps(), P = g.useCallback((C) => {
10650
+ const u = g.useRef([]), d = g.useRef(0), h = g.useRef(void 0), { globalIndex: f } = bt(), { getOwnerWindow: m } = hs(), { containerRef: p, subscribeSensors: b } = rt(), { keyboardMoveDistance: x, zoomInMultiplier: y, wheelZoomDistanceFactor: N, scrollToZoom: E, doubleTapDelay: I, doubleClickDelay: M, doubleClickMaxStops: k, pinchZoomDistanceFactor: S, pinchZoomV4: v } = ps(), P = g.useCallback((C) => {
10651
10651
  if (p.current) {
10652
10652
  const { pageX: _, pageY: j } = C, { scrollX: T, scrollY: A } = m(), { left: ee, top: se, width: oe, height: re } = p.current.getBoundingClientRect();
10653
10653
  return [_ - ee - T - oe / 2, j - se - A - re / 2];
@@ -10665,11 +10665,11 @@ function Xb(e, t, n, s, i, r, o, l, c) {
10665
10665
  }
10666
10666
  _ === "+" || A && _ === "=" ? (ee(), i()) : _ === "-" || A && _ === "_" ? (ee(), r()) : A && _ === "0" && (ee(), o(1));
10667
10667
  }), B = fe((C) => {
10668
- if ((C.ctrlKey || k) && Math.abs(C.deltaY) > Math.abs(C.deltaX)) {
10668
+ if ((C.ctrlKey || E) && Math.abs(C.deltaY) > Math.abs(C.deltaX)) {
10669
10669
  C.stopPropagation(), o(ga(e, -C.deltaY, N), !0, ...P(C));
10670
10670
  return;
10671
10671
  }
10672
- e > 1 && (C.stopPropagation(), k || l(C.deltaX, C.deltaY));
10672
+ e > 1 && (C.stopPropagation(), E || l(C.deltaX, C.deltaY));
10673
10673
  }), q = g.useCallback((C) => {
10674
10674
  const _ = u.current;
10675
10675
  _.splice(0, _.length, ..._.filter((j) => j.pointerId !== C.pointerId));
@@ -10684,7 +10684,7 @@ function Xb(e, t, n, s, i, r, o, l, c) {
10684
10684
  const { timeStamp: T } = C;
10685
10685
  if (j.length === 0 && T - d.current < (C.pointerType === "touch" ? I : M)) {
10686
10686
  d.current = 0;
10687
- const A = e >= 1 ? e !== n ? e * Math.max(n ** (1 / E), y) : 1 : e !== t ? e / Math.max(t ** (-1 / E), y) : 1;
10687
+ const A = e >= 1 ? e !== n ? e * Math.max(n ** (1 / k), y) : 1 : e !== t ? e / Math.max(t ** (-1 / k), y) : 1;
10688
10688
  o(A, !1, ...P(C));
10689
10689
  } else
10690
10690
  d.current = T;
@@ -10723,21 +10723,21 @@ function Gb(e, t, n) {
10723
10723
  const N = g.useCallback((S, v, P) => {
10724
10724
  const F = P || s, B = r - (S || 0), q = l - (v || 0), D = (e.width * F - m.width) / 2 / F, te = (e.height * F - m.height) / 2 / F;
10725
10725
  o(Math.min(Math.abs(B), Math.max(D, 0)) * Math.sign(B)), c(Math.min(Math.abs(q), Math.max(te, 0)) * Math.sign(q));
10726
- }, [s, r, l, m, e.width, e.height]), k = g.useCallback((S, v, P, F) => {
10726
+ }, [s, r, l, m, e.width, e.height]), E = g.useCallback((S, v, P, F) => {
10727
10727
  const B = go(S + 0.01 < t ? S - 0.01 > p ? S : p : t, 5);
10728
10728
  v || u(), N(P ? P * (1 / s - 1 / B) : 0, F ? F * (1 / s - 1 / B) : 0, B), i(B);
10729
10729
  }, [s, p, t, N, u]), I = fe(() => {
10730
- s > 1 && (s > t && k(t, !0), N());
10730
+ s > 1 && (s > t && E(t, !0), N());
10731
10731
  });
10732
10732
  tt(I, [f.width, f.height, I]);
10733
10733
  const M = g.useCallback(() => {
10734
10734
  const S = s * b;
10735
- k(s < 1 && S > 1 ? 1 : S);
10736
- }, [s, b, k]), E = g.useCallback(() => {
10735
+ E(s < 1 && S > 1 ? 1 : S);
10736
+ }, [s, b, E]), k = g.useCallback(() => {
10737
10737
  const S = s / b;
10738
- k(s > 1 && S < 1 ? 1 : S);
10739
- }, [s, b, k]);
10740
- return { zoom: s, offsetX: r, offsetY: l, disabled: y, changeOffsets: N, changeZoom: k, zoomIn: M, zoomOut: E };
10738
+ E(s > 1 && S < 1 ? 1 : S);
10739
+ }, [s, b, E]);
10740
+ return { zoom: s, offsetX: r, offsetY: l, disabled: y, changeOffsets: N, changeZoom: E, zoomIn: M, zoomOut: k };
10741
10741
  }
10742
10742
  const xu = g.createContext(null), To = ot("useZoom", "ZoomControllerContext", xu);
10743
10743
  function Kb({ children: e }) {
@@ -10795,19 +10795,19 @@ function ty({ current: e, preload: t }, { type: n, source: s }) {
10795
10795
  }
10796
10796
  function ny(e) {
10797
10797
  var t, n;
10798
- const [{ current: s, preload: i }, r] = g.useReducer(ty, {}), { slide: o, rect: l, imageFit: c, render: u, interactive: d } = e, h = o.srcSet.sort((M, E) => M.width - E.width), f = (t = o.width) !== null && t !== void 0 ? t : h[h.length - 1].width, m = (n = o.height) !== null && n !== void 0 ? n : h[h.length - 1].height, p = bo(o, c), b = Math.max(...h.map((M) => M.width)), x = Math.min((p ? Math.max : Math.min)(l.width, f * (l.height / m)), b), y = Ug(), N = fe(() => {
10798
+ const [{ current: s, preload: i }, r] = g.useReducer(ty, {}), { slide: o, rect: l, imageFit: c, render: u, interactive: d } = e, h = o.srcSet.sort((M, k) => M.width - k.width), f = (t = o.width) !== null && t !== void 0 ? t : h[h.length - 1].width, m = (n = o.height) !== null && n !== void 0 ? n : h[h.length - 1].height, p = bo(o, c), b = Math.max(...h.map((M) => M.width)), x = Math.min((p ? Math.max : Math.min)(l.width, f * (l.height / m)), b), y = Ug(), N = fe(() => {
10799
10799
  var M;
10800
- const E = (M = h.find((S) => S.width >= x * y)) !== null && M !== void 0 ? M : h[h.length - 1];
10801
- (!s || h.findIndex((S) => S.src === s) < h.findIndex((S) => S === E)) && r({ type: "fetch", source: E.src });
10800
+ const k = (M = h.find((S) => S.width >= x * y)) !== null && M !== void 0 ? M : h[h.length - 1];
10801
+ (!s || h.findIndex((S) => S.src === s) < h.findIndex((S) => S === k)) && r({ type: "fetch", source: k.src });
10802
10802
  });
10803
10803
  tt(N, [l.width, l.height, y, N]);
10804
- const k = fe((M) => r({ type: "done", source: M })), I = {
10804
+ const E = fe((M) => r({ type: "done", source: M })), I = {
10805
10805
  WebkitTransform: d ? "initial" : "translateZ(0)"
10806
10806
  };
10807
10807
  return p || Object.assign(I, l.width / l.height < f / m ? { width: "100%", height: "auto" } : { width: "auto", height: "100%" }), g.createElement(
10808
10808
  g.Fragment,
10809
10809
  null,
10810
- i && i !== s && g.createElement(ss, { key: "preload", ...e, offset: void 0, slide: { ...o, src: i, srcSet: void 0 }, style: { position: "absolute", visibility: "hidden", ...I }, onLoad: () => k(i), render: {
10810
+ i && i !== s && g.createElement(ss, { key: "preload", ...e, offset: void 0, slide: { ...o, src: i, srcSet: void 0 }, style: { position: "absolute", visibility: "hidden", ...I }, onLoad: () => E(i), render: {
10811
10811
  ...u,
10812
10812
  iconLoading: () => null,
10813
10813
  iconError: () => null
@@ -10830,11 +10830,11 @@ function sy({ render: e, slide: t, offset: n, rect: s }) {
10830
10830
  imageFit: p.imageFit,
10831
10831
  imageProps: p.imageProps,
10832
10832
  onClick: n === 0 ? () => {
10833
- var k;
10834
- return (k = b.click) === null || k === void 0 ? void 0 : k.call(b, { index: x });
10833
+ var E;
10834
+ return (E = b.click) === null || E === void 0 ? void 0 : E.call(b, { index: x });
10835
10835
  } : void 0
10836
10836
  };
10837
- y = ey(t) ? g.createElement(ny, { ...N, slide: t, interactive: m, rect: n === 0 ? { width: s.width * c, height: s.height * c } : s }) : g.createElement(ss, { onLoad: (k) => o({ width: k.naturalWidth, height: k.naturalHeight }), ...N });
10837
+ y = ey(t) ? g.createElement(ny, { ...N, slide: t, interactive: m, rect: n === 0 ? { width: s.width * c, height: s.height * c } : s }) : g.createElement(ss, { onLoad: (E) => o({ width: E.naturalWidth, height: E.naturalHeight }), ...N });
10838
10838
  }
10839
10839
  return y ? g.createElement("div", { ref: l, className: Qe(he(Vg), he(lo), he(Xc), m && he(Dg)), style: n === 0 ? { transform: `scale(${c}) translateX(${d}px) translateY(${h}px)` } : void 0 }, y) : null;
10840
10840
  }
@@ -10952,7 +10952,7 @@ function ya({
10952
10952
  d(null);
10953
10953
  }, N = () => {
10954
10954
  u !== null && e.images && d((u - 1 + e.images.length) % e.images.length);
10955
- }, k = () => {
10955
+ }, E = () => {
10956
10956
  u !== null && e.images && d((u + 1) % e.images.length);
10957
10957
  }, I = () => {
10958
10958
  const S = h.current;
@@ -10979,7 +10979,7 @@ function ya({
10979
10979
  }
10980
10980
  }, [e.images]), n)
10981
10981
  return null;
10982
- const E = () => t && c || e.width === "full" ? "col-span-full" : "";
10982
+ const k = () => t && c || e.width === "full" ? "col-span-full" : "";
10983
10983
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
10984
10984
  /* @__PURE__ */ a.jsx(
10985
10985
  w.div,
@@ -11003,7 +11003,7 @@ function ya({
11003
11003
  mass: 0.9
11004
11004
  }
11005
11005
  },
11006
- className: `group relative cursor-pointer ${s ? "h-full" : ""} ${E()}`,
11006
+ className: `group relative cursor-pointer ${s ? "h-full" : ""} ${k()}`,
11007
11007
  onClick: t ? void 0 : i,
11008
11008
  children: /* @__PURE__ */ a.jsxs(
11009
11009
  w.div,
@@ -11230,7 +11230,7 @@ function ya({
11230
11230
  )
11231
11231
  }
11232
11232
  ),
11233
- typeof document < "u" && ka(
11233
+ typeof document < "u" && Ea(
11234
11234
  /* @__PURE__ */ a.jsx(Ce, { children: u !== null && e.images && /* @__PURE__ */ a.jsxs(
11235
11235
  w.div,
11236
11236
  {
@@ -11272,7 +11272,7 @@ function ya({
11272
11272
  {
11273
11273
  className: "absolute right-4 p-3 rounded-full bg-slate-800/80 hover:bg-slate-700/80 border border-cyan-400/30 hover:border-cyan-400/60 transition-colors z-10",
11274
11274
  onClick: (S) => {
11275
- S.stopPropagation(), k();
11275
+ S.stopPropagation(), E();
11276
11276
  },
11277
11277
  initial: { x: 20, opacity: 0 },
11278
11278
  animate: { x: 0, opacity: 1 },
@@ -11431,7 +11431,7 @@ function dy({ tab: e, tabIndex: t = 0, expandedCardId: n, setExpandedCardId: s }
11431
11431
  );
11432
11432
  }
11433
11433
  function wu({ item: e, onClose: t }) {
11434
- const [n, s] = O(0), [i, r] = O(0), [o, l] = O(!1), [c, u] = O(""), [d, h] = O(!1), [f, m] = O(""), [p, b] = O(!1), [x, y] = O(!1), [N, k] = O(), [I, M] = O(0.3), [E, S] = O(null), [v, P] = O(null), F = Te(null), [B, q] = O(!1), [D, te] = O(!1), Y = we().pagination?.simulation ?? 6, Z = Y < e?.items.length, R = Math.max(0, e?.items.length - Y), C = e?.items[n]?.cards ?? [];
11434
+ const [n, s] = O(0), [i, r] = O(0), [o, l] = O(!1), [c, u] = O(""), [d, h] = O(!1), [f, m] = O(""), [p, b] = O(!1), [x, y] = O(!1), [N, E] = O(), [I, M] = O(0.3), [k, S] = O(null), [v, P] = O(null), F = Te(null), [B, q] = O(!1), [D, te] = O(!1), Y = we().pagination?.simulation ?? 6, Z = Y < e?.items.length, R = Math.max(0, e?.items.length - Y), C = e?.items[n]?.cards ?? [];
11435
11435
  ne(() => {
11436
11436
  const z = document.body.style.overflow, de = document.documentElement.style.overflow;
11437
11437
  return document.body.style.overflow = "hidden", document.documentElement.style.overflow = "hidden", () => {
@@ -11485,7 +11485,7 @@ function wu({ item: e, onClose: t }) {
11485
11485
  const be = (z) => z ? Ni[z] || Pt : Pt, ce = (z) => {
11486
11486
  if (!(z < 0 || z >= re.length))
11487
11487
  return re[z];
11488
- }, Se = E != null;
11488
+ }, Se = k != null;
11489
11489
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
11490
11490
  /* @__PURE__ */ a.jsxs(
11491
11491
  w.div,
@@ -11549,7 +11549,7 @@ function wu({ item: e, onClose: t }) {
11549
11549
  children: [
11550
11550
  /* @__PURE__ */ a.jsx("div", { className: "w-11 h-11 shrink-0", "aria-hidden": "true" }),
11551
11551
  re.map((z, de) => {
11552
- const pe = be(z.icon), Ne = E === de;
11552
+ const pe = be(z.icon), Ne = k === de;
11553
11553
  return /* @__PURE__ */ a.jsxs(
11554
11554
  w.button,
11555
11555
  {
@@ -11579,7 +11579,7 @@ function wu({ item: e, onClose: t }) {
11579
11579
  w.button,
11580
11580
  {
11581
11581
  onClick: () => {
11582
- E !== null && (S(null), P(null));
11582
+ k !== null && (S(null), P(null));
11583
11583
  },
11584
11584
  className: "relative p-3 rounded-full bg-slate-800/60 hover:bg-slate-700/80 text-cyan-300 hover:text-cyan-200 border border-slate-600/50 hover:border-cyan-400/60 transition-all duration-300 shadow-lg hover:shadow-cyan-500/30 disabled:pointer-events-none",
11585
11585
  initial: !1,
@@ -11660,7 +11660,7 @@ function wu({ item: e, onClose: t }) {
11660
11660
  },
11661
11661
  e.items[n].title
11662
11662
  ),
11663
- /* @__PURE__ */ a.jsx(Ce, { mode: "popLayout", initial: !1, children: E === null && /* @__PURE__ */ a.jsx(
11663
+ /* @__PURE__ */ a.jsx(Ce, { mode: "popLayout", initial: !1, children: k === null && /* @__PURE__ */ a.jsx(
11664
11664
  w.p,
11665
11665
  {
11666
11666
  layout: "position",
@@ -11738,7 +11738,7 @@ function wu({ item: e, onClose: t }) {
11738
11738
  url: ""
11739
11739
  };
11740
11740
  return /* @__PURE__ */ a.jsx(gi, { item: Ne, onClick: () => {
11741
- k(pe), y(!0);
11741
+ E(pe), y(!0);
11742
11742
  } }, `ppt-${z.name}-${de}`);
11743
11743
  }),
11744
11744
  !1
@@ -11749,7 +11749,7 @@ function wu({ item: e, onClose: t }) {
11749
11749
  ]
11750
11750
  }
11751
11751
  ),
11752
- /* @__PURE__ */ a.jsx(Ce, { mode: "popLayout", initial: !1, children: E !== null && typeof E == "number" && /* @__PURE__ */ a.jsx(
11752
+ /* @__PURE__ */ a.jsx(Ce, { mode: "popLayout", initial: !1, children: k !== null && typeof k == "number" && /* @__PURE__ */ a.jsx(
11753
11753
  w.div,
11754
11754
  {
11755
11755
  layout: "position",
@@ -11766,14 +11766,14 @@ function wu({ item: e, onClose: t }) {
11766
11766
  children: /* @__PURE__ */ a.jsx(
11767
11767
  dy,
11768
11768
  {
11769
- tab: ce(E),
11770
- tabIndex: E,
11769
+ tab: ce(k),
11770
+ tabIndex: k,
11771
11771
  expandedCardId: v,
11772
11772
  setExpandedCardId: P
11773
11773
  }
11774
11774
  )
11775
11775
  },
11776
- `tab-${E}-view`
11776
+ `tab-${k}-view`
11777
11777
  ) })
11778
11778
  ]
11779
11779
  }
@@ -12394,7 +12394,7 @@ function py({ hotspot: e }) {
12394
12394
  s(H);
12395
12395
  }
12396
12396
  }, []), ne(() => A(e), [e]);
12397
- const [y, N] = O([]), [k, I] = O(0), [M, E] = O(!1), [S, v] = O(""), [P, F] = O(0), [B, q] = O(0), [D, te] = O(0), Y = Te(null), Z = Te(null), R = {
12397
+ const [y, N] = O([]), [E, I] = O(0), [M, k] = O(!1), [S, v] = O(""), [P, F] = O(0), [B, q] = O(0), [D, te] = O(0), Y = Te(null), Z = Te(null), R = {
12398
12398
  1: "fragata",
12399
12399
  2: "submarino",
12400
12400
  3: "buque-accion-maritima",
@@ -12475,12 +12475,12 @@ function py({ hotspot: e }) {
12475
12475
  if (console.log("handleHotspotClick ", L), L === 12 || L === 13)
12476
12476
  return;
12477
12477
  if (L === 10) {
12478
- v(u + "/es/producto/plataforma-digital/?lightbox=1"), E(!0);
12478
+ v(u + "/es/producto/plataforma-digital/?lightbox=1"), k(!0);
12479
12479
  return;
12480
12480
  } else if (L === 11) {
12481
12481
  v(
12482
12482
  u + "/es/producto/plataforma-digital-en-tierra/?lightbox=1"
12483
- ), E(!0);
12483
+ ), k(!0);
12484
12484
  return;
12485
12485
  }
12486
12486
  const H = R[L];
@@ -12610,7 +12610,7 @@ function py({ hotspot: e }) {
12610
12610
  }, oe = (L, H) => {
12611
12611
  H.stopPropagation();
12612
12612
  const W = L.startsWith("http://") || L.startsWith("https://") ? L : `${u}${L.startsWith("/") ? "" : "/"}${L}`;
12613
- v(W), E(!0);
12613
+ v(W), k(!0);
12614
12614
  }, re = Te(!1), ae = Te(0), be = (L) => {
12615
12615
  U((H) => {
12616
12616
  const W = H * L;
@@ -12859,7 +12859,7 @@ function py({ hotspot: e }) {
12859
12859
  type: "inner",
12860
12860
  id: V.id
12861
12861
  }),
12862
- className: `absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 ${V.id === k ? "!bg-cyan-500 !border-blue-900" : ""} rounded-full flex items-center justify-center transition-all duration-300 w-14 h-14 ${W.relatedInner.has(
12862
+ className: `absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 ${V.id === E ? "!bg-cyan-500 !border-blue-900" : ""} rounded-full flex items-center justify-center transition-all duration-300 w-14 h-14 ${W.relatedInner.has(
12863
12863
  V.id
12864
12864
  ) || Q ? Q ? "bg-[#1037b9] hover:bg-[#1037b9]" : "bg-[#214fc580] hover:bg-[#214fc580]" : "bg-blue-900/20 hover:bg-blue-800/40 opacity-40"} cursor-pointer hover:scale-110 text-blue-100`,
12865
12865
  style: W.relatedInner.has(
@@ -12969,7 +12969,7 @@ function py({ hotspot: e }) {
12969
12969
  id: V.id
12970
12970
  });
12971
12971
  },
12972
- className: `absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 ${V.id === k ? "!bg-cyan-500 !border-blue-900" : ""} rounded-full flex items-center justify-center transition-all duration-300 w-12 h-12 ${W.relatedOuter.has(
12972
+ className: `absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 ${V.id === E ? "!bg-cyan-500 !border-blue-900" : ""} rounded-full flex items-center justify-center transition-all duration-300 w-12 h-12 ${W.relatedOuter.has(
12973
12973
  V.id
12974
12974
  ) || Q || L.activeElement.id === V.id ? Q ? "bg-[#1037b9] hover:bg-[#1037b9]" : "bg-[#214fc580] hover:bg-[#214fc580]" : "bg-blue-900/20 opacity-40"} ${W.relatedOuter.has(
12975
12975
  V.id
@@ -13099,7 +13099,7 @@ function py({ hotspot: e }) {
13099
13099
  }
13100
13100
  );
13101
13101
  },
13102
- className: `absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 ${$.id === k ? "!bg-cyan-500 !border-blue-900" : ""} rounded-full flex items-center justify-center transition-all duration-300 w-12 h-12 ${yt(
13102
+ className: `absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 ${$.id === E ? "!bg-cyan-500 !border-blue-900" : ""} rounded-full flex items-center justify-center transition-all duration-300 w-12 h-12 ${yt(
13103
13103
  $.id,
13104
13104
  ""
13105
13105
  ) || W.relatedExpandable.has(
@@ -13308,7 +13308,7 @@ function py({ hotspot: e }) {
13308
13308
  hy,
13309
13309
  {
13310
13310
  showLinkModal: M,
13311
- setShowLinkModal: E,
13311
+ setShowLinkModal: k,
13312
13312
  modalUrl: S
13313
13313
  }
13314
13314
  )
@@ -13638,7 +13638,7 @@ const xa = "app-font-size", xy = "100", Vy = () => {
13638
13638
  return e;
13639
13639
  };
13640
13640
  function Nu() {
13641
- const [e, t] = O("physical"), [n, s] = O(!1), [i, r] = O(!1), [o, l] = O("Navantia Global"), [c, u] = O("high"), [d, h] = O("es"), [f, m] = O(!0), p = we().controlPanelLevels, b = ["physical", "hybrid", "digital"], x = ["high", "medium", "low"], { t: y, i18n: N } = Xt(), k = nt(), I = wn(), { sendMessage: M } = Cn(), E = we().wsRoom, { isAutoMode: S, toggleAutoMode: v } = Su();
13641
+ const [e, t] = O("physical"), [n, s] = O(!1), [i, r] = O(!1), [o, l] = O("Navantia Global"), [c, u] = O("high"), [d, h] = O("es"), [f, m] = O(!0), p = we().controlPanelLevels, b = ["physical", "hybrid", "digital"], x = ["high", "medium", "low"], { t: y, i18n: N } = Xt(), E = nt(), I = wn(), { sendMessage: M } = Cn(), k = we().wsRoom, { isAutoMode: S, toggleAutoMode: v } = Su();
13642
13642
  ne(() => {
13643
13643
  N.changeLanguage(d);
13644
13644
  }, [d]), ne(() => {
@@ -13647,7 +13647,7 @@ function Nu() {
13647
13647
  C && (console.log("Se va a seleccionar " + C.title), l(C.title));
13648
13648
  }
13649
13649
  }, [I]), ne(() => {
13650
- M({ type: "publish", room: E, payload: { type: "layer", target: e } });
13650
+ M({ type: "publish", room: k, payload: { type: "layer", target: e } });
13651
13651
  }, [e]);
13652
13652
  const P = () => {
13653
13653
  t((C) => {
@@ -14080,7 +14080,7 @@ function Nu() {
14080
14080
  w.button,
14081
14081
  {
14082
14082
  onClick: () => {
14083
- k(C.slug), l(C.title), s(!1);
14083
+ E(C.slug), l(C.title), s(!1);
14084
14084
  },
14085
14085
  className: `w-full text-left relative group ${j ? "z-10" : "z-0"}`,
14086
14086
  initial: { opacity: 0, x: -50, rotateY: -20 },
@@ -14560,7 +14560,7 @@ function Nu() {
14560
14560
  ) })
14561
14561
  ] });
14562
14562
  }
14563
- function ku() {
14563
+ function Eu() {
14564
14564
  const { isConnected: e, reconnect: t } = Cn(), s = {
14565
14565
  connected: {
14566
14566
  color: "bg-emerald-500",
@@ -14608,7 +14608,7 @@ function ku() {
14608
14608
  }
14609
14609
  );
14610
14610
  }
14611
- function Eu({ children: e }) {
14611
+ function ku({ children: e }) {
14612
14612
  const t = Tc();
14613
14613
  if (!t)
14614
14614
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
@@ -14633,7 +14633,7 @@ function Eu({ children: e }) {
14633
14633
  children: e
14634
14634
  }
14635
14635
  ),
14636
- /* @__PURE__ */ a.jsx(kg, {})
14636
+ /* @__PURE__ */ a.jsx(Eg, {})
14637
14637
  ] });
14638
14638
  }
14639
14639
  const Cu = () => {
@@ -14652,29 +14652,28 @@ const Cu = () => {
14652
14652
  function Dy({ showControlPanel: e = !0, iframeSrc: t = "" }) {
14653
14653
  return Cu(), /* @__PURE__ */ a.jsxs("div", { className: "relative w-full h-screen overflow-hidden bg-transparent", children: [
14654
14654
  /* @__PURE__ */ a.jsx("div", { className: "z-1 fixed inset-0", children: /* @__PURE__ */ a.jsx("iframe", { id: "vagonFrame", allow: "microphone *; clipboard-read *; clipboard-write *; encrypted-media *; fullscreen *;", className: "z-1 w-full h-screen", src: t }) }),
14655
- /* @__PURE__ */ a.jsx(Eu, { children: /* @__PURE__ */ a.jsxs("div", { className: "relative z-10 h-full bg-transparent", children: [
14655
+ /* @__PURE__ */ a.jsx(ku, { children: /* @__PURE__ */ a.jsxs("div", { className: "relative z-10 h-full bg-transparent", children: [
14656
14656
  /* @__PURE__ */ a.jsx(is, {}),
14657
14657
  e && /* @__PURE__ */ a.jsx(Nu, {})
14658
14658
  ] }) }),
14659
- /* @__PURE__ */ a.jsx(ku, {})
14659
+ /* @__PURE__ */ a.jsx(Eu, {})
14660
14660
  ] });
14661
14661
  }
14662
14662
  function _y({ showControlPanel: e = !0 }) {
14663
14663
  return Cu(), /* @__PURE__ */ a.jsxs("div", { className: "relative w-full h-screen overflow-hidden bg-transparent", children: [
14664
- /* @__PURE__ */ a.jsx("div", { className: "pointer-events-none absolute top-0 left-0 w-full h-50 bg-gradient-to-b from-black/70 to-transparent" }),
14665
- /* @__PURE__ */ a.jsx("div", { className: "pointer-events-none absolute bottom-0 left-0 w-full h-80 bg-gradient-to-t from-black/70 to-transparent" }),
14666
- /* @__PURE__ */ a.jsx(Eu, { children: /* @__PURE__ */ a.jsxs("div", { className: "relative z-10 h-full bg-transparent", children: [
14664
+ /* @__PURE__ */ a.jsx("div", { className: "pointer-events-none absolute top-0 left-0 w-full h-50 bg-gradient-to-b from-[#17252c]/70 to-transparent" }),
14665
+ /* @__PURE__ */ a.jsx(ku, { children: /* @__PURE__ */ a.jsxs("div", { className: "relative z-10 h-full bg-transparent", children: [
14667
14666
  /* @__PURE__ */ a.jsx(is, {}),
14668
14667
  e && /* @__PURE__ */ a.jsx(Nu, {})
14669
14668
  ] }) }),
14670
- /* @__PURE__ */ a.jsx(ku, {})
14669
+ /* @__PURE__ */ a.jsx(Eu, {})
14671
14670
  ] });
14672
14671
  }
14673
14672
  function Pu({ items: e, parent: t, selectedShip: n, onShipSelect: s }) {
14674
- const [i, r] = O(0), [o, l] = O(!1), [c, u] = O(6), [d, h] = O(!0), [f, m] = O(0), [p, b] = O("slide"), [x, y] = O(160), { t: N } = Xt(), { lastEvent: k, internalEvent: I, setInternalEvent: M } = Jt(), E = we().cinematics ?? !1, S = we().cinematicsOnChangeLocation ?? !1;
14675
- E && (ne(() => {
14676
- k?.payload?.type === "cinematics" && k?.payload?.action === "end" && h(!0);
14677
- }, [k]), ne(() => {
14673
+ const [i, r] = O(0), [o, l] = O(!1), [c, u] = O(6), [d, h] = O(!0), [f, m] = O(0), [p, b] = O("slide"), [x, y] = O(160), { t: N } = Xt(), { lastEvent: E, internalEvent: I, setInternalEvent: M } = Jt(), k = we().cinematics ?? !1, S = we().cinematicsOnChangeLocation ?? !1;
14674
+ k && (ne(() => {
14675
+ E?.payload?.type === "cinematics" && E?.payload?.action === "end" && h(!0);
14676
+ }, [E]), ne(() => {
14678
14677
  if (I?.payload?.type === "cinematics") {
14679
14678
  const R = I?.payload?.action;
14680
14679
  R === "start" && h(!1), R === "end" && h(!0);
@@ -14716,7 +14715,7 @@ function Pu({ items: e, parent: t, selectedShip: n, onShipSelect: s }) {
14716
14715
  const te = (R) => {
14717
14716
  s(R), b("center");
14718
14717
  const C = D.findIndex((_) => _.slug === R);
14719
- C !== -1 && m(F(C)), B(`${t ? `/${t}/` : "/"}${R}`), E && S && M({ ...vn });
14718
+ C !== -1 && m(F(C)), B(`${t ? `/${t}/` : "/"}${R}`), k && S && M({ ...vn });
14720
14719
  }, Y = () => {
14721
14720
  const R = Math.ceil(D.length / c), C = (i + 1) % R;
14722
14721
  b("slide"), r(C), m(P(C));
@@ -14894,7 +14893,7 @@ function Pu({ items: e, parent: t, selectedShip: n, onShipSelect: s }) {
14894
14893
  duration: 1.5,
14895
14894
  ease: "easeInOut"
14896
14895
  },
14897
- children: /* @__PURE__ */ a.jsx(ki, { className: "w-6 h-6" })
14896
+ children: /* @__PURE__ */ a.jsx(Ei, { className: "w-6 h-6" })
14898
14897
  }
14899
14898
  )
14900
14899
  }
@@ -14911,25 +14910,25 @@ const Fy = ({ items: e, world: t, worldSlug: n = t }) => {
14911
14910
  o.pathname === `/${n}` ? i("") : o.pathname.startsWith(n ? `/${n}/` : "/") && i(o.pathname.replace(n ? `/${n}/` : "/", ""));
14912
14911
  }, [o]), ne(() => {
14913
14912
  const x = (y) => {
14914
- const N = ["INPUT", "TEXTAREA"].includes(y.target.tagName), k = document.querySelector(".yarl__container"), I = document.querySelector(".simulation-mode");
14915
- N || k || I || (y.key === "ArrowLeft" ? (y.preventDefault(), b()) : y.key === "ArrowRight" && (y.preventDefault(), p()));
14913
+ const N = ["INPUT", "TEXTAREA"].includes(y.target.tagName), E = document.querySelector(".yarl__container"), I = document.querySelector(".simulation-mode");
14914
+ N || E || I || (y.key === "ArrowLeft" ? (y.preventDefault(), b()) : y.key === "ArrowRight" && (y.preventDefault(), p()));
14916
14915
  };
14917
14916
  return window.addEventListener("keydown", x), () => {
14918
14917
  window.removeEventListener("keydown", x);
14919
14918
  };
14920
14919
  }, [s]), ne(() => {
14921
14920
  let x = 0, y = 0, N = !1;
14922
- const k = (E) => {
14923
- const S = E.target, v = document.getElementById("ItemPage");
14924
- N = S === v, N && (x = E.changedTouches[0].screenX);
14925
- }, I = (E) => {
14926
- N && (y = E.changedTouches[0].screenX, M());
14921
+ const E = (k) => {
14922
+ const S = k.target, v = document.getElementById("ItemPage");
14923
+ N = S === v, N && (x = k.changedTouches[0].screenX);
14924
+ }, I = (k) => {
14925
+ N && (y = k.changedTouches[0].screenX, M());
14927
14926
  }, M = () => {
14928
- const E = y - x;
14929
- Math.abs(E) < 50 || (E > 0 ? b() : p());
14927
+ const k = y - x;
14928
+ Math.abs(k) < 50 || (k > 0 ? b() : p());
14930
14929
  };
14931
- return window.addEventListener("touchstart", k), window.addEventListener("touchend", I), () => {
14932
- window.removeEventListener("touchstart", k), window.removeEventListener("touchend", I);
14930
+ return window.addEventListener("touchstart", E), window.addEventListener("touchend", I), () => {
14931
+ window.removeEventListener("touchstart", E), window.removeEventListener("touchend", I);
14933
14932
  };
14934
14933
  }, [s]);
14935
14934
  const f = () => {
@@ -15113,7 +15112,7 @@ function zy({ x: e, y: t, dest: n }) {
15113
15112
  );
15114
15113
  }
15115
15114
  function Mu({ home: e, item: t }) {
15116
- const [n, s] = O({ width: 0, height: 0 }), [i, r] = O(!0), [o, l] = O(!1), [c, u] = O(!1), [d, h] = O(""), [f, m] = O(!1), [p, b] = O(!1), [x, y] = O(!1), [N, k] = O(!1), [I, M] = O(!1), [E, S] = O(""), [v, P] = O(!1), F = nt(), { lastEvent: B, internalEvent: q, setInternalEvent: D } = Jt(), te = we().cinematics ?? !1, Y = we().cinematicsOnChangeLocation ?? !1;
15115
+ const [n, s] = O({ width: 0, height: 0 }), [i, r] = O(!0), [o, l] = O(!1), [c, u] = O(!1), [d, h] = O(""), [f, m] = O(!1), [p, b] = O(!1), [x, y] = O(!1), [N, E] = O(!1), [I, M] = O(!1), [k, S] = O(""), [v, P] = O(!1), F = nt(), { lastEvent: B, internalEvent: q, setInternalEvent: D } = Jt(), te = we().cinematics ?? !1, Y = we().cinematicsOnChangeLocation ?? !1;
15117
15116
  te && (ne(() => {
15118
15117
  B?.payload?.type === "cinematics" && B?.payload?.action === "end" && r(!0);
15119
15118
  }, [B]), ne(() => {
@@ -15146,7 +15145,7 @@ function Mu({ home: e, item: t }) {
15146
15145
  animate: { opacity: 1, y: 0 },
15147
15146
  transition: { delay: 0.8, duration: 0.6 },
15148
15147
  exit: { opacity: 0, y: 50, scale: 0.8, transition: { delay: 0, duration: 0.6 } },
15149
- children: /* @__PURE__ */ a.jsxs("div", { className: "flex flex-col gap-6 backdrop-blur-xs rounded-xl sm:rounded-2xl border p-3 sm:p-4 md:p-6 text-center border-transparent max-w-6xl mx-auto title-section", children: [
15148
+ children: /* @__PURE__ */ a.jsxs("div", { className: "flex flex-col gap-6 backdrop-blur-xs border p-3 sm:p-4 md:p-6 text-center border-transparent max-w-6xl mx-auto title-section bg-gradient-to-t from-[#17252c]/70 to-[#17252c]/5 rounded-xl sm:rounded-2xl", children: [
15150
15149
  /* @__PURE__ */ a.jsx("h1", { className: "text-xl sm:text-3xl md:text-4xl lg:text-5xl font-light text-white mb-2 sm:mb-4 tracking-wide", children: t?.title }),
15151
15150
  /* @__PURE__ */ a.jsx("p", { className: "text-xs sm:text-sm md:text-base text-blue-100/90 font-light leading-relaxed max-w-5xl mx-auto mb-3 sm:mb-4 md:mb-6", children: t?.subtitle }),
15152
15151
  /* @__PURE__ */ a.jsxs("div", { className: "flex flex-wrap items-center justify-center gap-2 sm:gap-3 md:gap-4", children: [
@@ -15173,10 +15172,10 @@ function Mu({ home: e, item: t }) {
15173
15172
  } }),
15174
15173
  t?.webUrl && /* @__PURE__ */ a.jsx(Kr, { Icon: pd, onClick: () => y(!0) }),
15175
15174
  (t?.links?.length ?? 0) > 0 && t?.links?.map((T) => /* @__PURE__ */ a.jsx(gi, { item: T, onClick: () => {
15176
- j(T.url) ? (h(T.url.trim()), u(!0)) : (S(T.url), M(T.transparent), k(!0)), T.transparent === !0 && te && D({ ...vn });
15175
+ j(T.url) ? (h(T.url.trim()), u(!0)) : (S(T.url), M(T.transparent), E(!0)), T.transparent === !0 && te && D({ ...vn });
15177
15176
  } })),
15178
15177
  (t?.cards?.length ?? 0) > 0 && /* @__PURE__ */ a.jsx(Mp, { onClick: () => b(!0) }),
15179
- (t?.nodesId ?? 0) > 0 && /* @__PURE__ */ a.jsx(Eg, { label: t?.shortName ?? t.title, onClick: Z })
15178
+ (t?.nodesId ?? 0) > 0 && /* @__PURE__ */ a.jsx(kg, { label: t?.shortName ?? t.title, onClick: Z })
15180
15179
  ] })
15181
15180
  ] })
15182
15181
  ] })
@@ -15187,9 +15186,9 @@ function Mu({ home: e, item: t }) {
15187
15186
  f && /* @__PURE__ */ a.jsx(wu, { item: t.simulation, onClose: () => m(!1) }, t?.slug),
15188
15187
  p && /* @__PURE__ */ a.jsx(zc, { cards: t.cards, onClose: () => b(!1) }),
15189
15188
  x && /* @__PURE__ */ a.jsx(Yt, { src: t.webUrl, onClose: () => y(!1) }),
15190
- N && /* @__PURE__ */ a.jsx(Yt, { src: E, transparent: I, onClose: () => {
15189
+ N && /* @__PURE__ */ a.jsx(Yt, { src: k, transparent: I, onClose: () => {
15191
15190
  const T = I;
15192
- k(!1), S(""), M(!1), T === !0 && te && D({ ...Ng });
15191
+ E(!1), S(""), M(!1), T === !0 && te && D({ ...Ng });
15193
15192
  } }),
15194
15193
  v && /* @__PURE__ */ a.jsx(Ig, { onClose: () => P(!1) })
15195
15194
  ] });
@@ -15339,8 +15338,8 @@ export {
15339
15338
  Fy as LayoutWorld,
15340
15339
  gi as LinkItemButton,
15341
15340
  Iy as MinimizeProvider,
15342
- Eu as MinimizeWrapper,
15343
- Eg as NodosButton,
15341
+ ku as MinimizeWrapper,
15342
+ kg as NodosButton,
15344
15343
  zy as PointButton,
15345
15344
  Xy as RouteListener,
15346
15345
  Pu as ShipNavigation,
@@ -15352,7 +15351,7 @@ export {
15352
15351
  ju as VideoBackground,
15353
15352
  $y as VideoProvider,
15354
15353
  Ly as WebSocketProvider,
15355
- ku as WebSocketStatusWidget,
15354
+ Eu as WebSocketStatusWidget,
15356
15355
  Hy as WorldPage,
15357
15356
  Ng as cinematicsEndEvent,
15358
15357
  vn as cinematicsStartEvent,