@devstgo/stgo-salta-components-react 0.1.0 → 0.1.1

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,18 +1,18 @@
1
1
  import * as g from "react";
2
2
  import Au, { createContext as Ke, useRef as we, useLayoutEffect as Lu, useEffect as ie, useId as Ti, useContext as be, 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 ht, 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 dt, Play as Ju, Plus as Qu, Minus as ed, LinkIcon as ys, 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 ki, X as ht, 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 dt, 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 tt, 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
7
  import { createPortal as ka } from "react-dom";
8
8
  import { t as bd } from "i18next";
9
- let Ca;
10
- const Ex = (e) => {
11
- Ca = e;
12
- }, Me = () => Ca;
9
+ let Ea;
10
+ const Cy = (e) => {
11
+ Ea = e;
12
+ }, ke = () => Ea;
13
13
  var Mn = { exports: {} }, nn = {};
14
14
  var No;
15
- function xd() {
15
+ function yd() {
16
16
  if (No) return nn;
17
17
  No = 1;
18
18
  var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
@@ -35,7 +35,7 @@ function xd() {
35
35
  }
36
36
  var sn = {};
37
37
  var ko;
38
- function yd() {
38
+ function xd() {
39
39
  return ko || (ko = 1, process.env.NODE_ENV !== "production" && (function() {
40
40
  function e(T) {
41
41
  if (T == null) return null;
@@ -43,13 +43,13 @@ function yd() {
43
43
  return T.$$typeof === B ? null : T.displayName || T.name || null;
44
44
  if (typeof T == "string") return T;
45
45
  switch (T) {
46
- case y:
46
+ case x:
47
47
  return "Fragment";
48
48
  case N:
49
49
  return "Profiler";
50
- case x:
50
+ case y:
51
51
  return "StrictMode";
52
- case C:
52
+ case E:
53
53
  return "Suspense";
54
54
  case S:
55
55
  return "SuspenseList";
@@ -101,7 +101,7 @@ function yd() {
101
101
  }
102
102
  }
103
103
  function s(T) {
104
- if (T === y) return "<>";
104
+ if (T === x) return "<>";
105
105
  if (typeof T == "object" && T !== null && T.$$typeof === I)
106
106
  return "<...>";
107
107
  try {
@@ -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"), y = /* @__PURE__ */ Symbol.for("react.fragment"), x = /* @__PURE__ */ Symbol.for("react.strict_mode"), N = /* @__PURE__ */ Symbol.for("react.profiler"), k = /* @__PURE__ */ Symbol.for("react.consumer"), P = /* @__PURE__ */ Symbol.for("react.context"), j = /* @__PURE__ */ Symbol.for("react.forward_ref"), C = /* @__PURE__ */ Symbol.for("react.suspense"), S = /* @__PURE__ */ Symbol.for("react.suspense_list"), v = /* @__PURE__ */ Symbol.for("react.memo"), I = /* @__PURE__ */ Symbol.for("react.lazy"), F = /* @__PURE__ */ Symbol.for("react.activity"), B = /* @__PURE__ */ Symbol.for("react.client.reference"), Z = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, te = Array.isArray, H = 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"), k = /* @__PURE__ */ Symbol.for("react.consumer"), P = /* @__PURE__ */ Symbol.for("react.context"), j = /* @__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"), I = /* @__PURE__ */ Symbol.for("react.lazy"), F = /* @__PURE__ */ Symbol.for("react.activity"), B = /* @__PURE__ */ Symbol.for("react.client.reference"), Z = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, te = Array.isArray, H = console.createTask ? console.createTask : function() {
234
234
  return null;
235
235
  };
236
236
  m = {
@@ -238,18 +238,18 @@ React keys must be passed directly to JSX without using spread:
238
238
  return T();
239
239
  }
240
240
  };
241
- var Q, R = {}, E = m.react_stack_bottom_frame.bind(
241
+ var Q, R = {}, C = m.react_stack_bottom_frame.bind(
242
242
  m,
243
243
  r
244
244
  )(), _ = H(s(r)), M = {};
245
- sn.Fragment = y, sn.jsx = function(T, A, ee) {
245
+ sn.Fragment = x, sn.jsx = function(T, A, ee) {
246
246
  var ne = 1e4 > Z.recentlyCreatedOwnerStacks++;
247
247
  return d(
248
248
  T,
249
249
  A,
250
250
  ee,
251
251
  !1,
252
- ne ? Error("react-stack-top-frame") : E,
252
+ ne ? Error("react-stack-top-frame") : C,
253
253
  ne ? H(s(T)) : _
254
254
  );
255
255
  }, sn.jsxs = function(T, A, ee) {
@@ -259,24 +259,24 @@ React keys must be passed directly to JSX without using spread:
259
259
  A,
260
260
  ee,
261
261
  !0,
262
- ne ? Error("react-stack-top-frame") : E,
262
+ ne ? Error("react-stack-top-frame") : C,
263
263
  ne ? H(s(T)) : _
264
264
  );
265
265
  };
266
266
  })()), sn;
267
267
  }
268
- var Co;
268
+ var Eo;
269
269
  function vd() {
270
- return Co || (Co = 1, process.env.NODE_ENV === "production" ? Mn.exports = xd() : Mn.exports = yd()), Mn.exports;
270
+ return Eo || (Eo = 1, process.env.NODE_ENV === "production" ? Mn.exports = yd() : Mn.exports = xd()), Mn.exports;
271
271
  }
272
272
  var a = vd();
273
- const Ci = Ke({});
273
+ const Ei = Ke({});
274
274
  function os(e) {
275
275
  const t = we(null);
276
276
  return t.current === null && (t.current = e()), t.current;
277
277
  }
278
- const Ea = typeof window < "u", Pa = Ea ? Lu : ie, Tn = /* @__PURE__ */ Ke(null);
279
- function Ei(e, t) {
278
+ const Ca = typeof window < "u", Pa = Ca ? Lu : ie, Tn = /* @__PURE__ */ Ke(null);
279
+ function Ci(e, t) {
280
280
  e.indexOf(t) === -1 && e.push(t);
281
281
  }
282
282
  function zt(e, t) {
@@ -315,7 +315,7 @@ class Pi {
315
315
  this.subscriptions = [];
316
316
  }
317
317
  add(t) {
318
- return Ei(this.subscriptions, t), () => zt(this.subscriptions, t);
318
+ return Ci(this.subscriptions, t), () => zt(this.subscriptions, t);
319
319
  }
320
320
  notify(t, n, s) {
321
321
  const i = this.subscriptions.length;
@@ -339,9 +339,9 @@ const Fe = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, Be = /* @__NO_SIDE_EFFECTS
339
339
  function Aa(e, t) {
340
340
  return t ? e * (1e3 / t) : 0;
341
341
  }
342
- const Eo = /* @__PURE__ */ new Set();
342
+ const Co = /* @__PURE__ */ new Set();
343
343
  function Ii(e, t, n) {
344
- e || Eo.has(t) || (console.warn(Us(t, n)), Eo.add(t));
344
+ e || Co.has(t) || (console.warn(Us(t, n)), Co.add(t));
345
345
  }
346
346
  const Td = (e, t, n) => {
347
347
  const s = t - e;
@@ -360,15 +360,15 @@ function Nn(e, t, n, s) {
360
360
  const i = (r) => kd(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), Cd = /* @__PURE__ */ Nn(0.42, 0, 1, 1), Ed = /* @__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), 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";
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: Cd,
369
+ easeIn: Ed,
370
370
  easeInOut: za,
371
- easeOut: Ed,
371
+ easeOut: Cd,
372
372
  circIn: Mi,
373
373
  circInOut: Ba,
374
374
  circOut: $a,
@@ -450,24 +450,24 @@ function Ha(e, t) {
450
450
  }, r = () => n = !0, o = Rn.reduce((k, P) => (k[P] = Id(r), k), {}), { setup: l, read: c, resolveKeyframes: u, preUpdate: d, update: h, preRender: f, render: m, postRender: p } = o, b = () => {
451
451
  const k = st.useManualTiming ? i.timestamp : performance.now();
452
452
  n = !1, st.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));
453
- }, y = () => {
453
+ }, x = () => {
454
454
  n = !0, s = !0, i.isProcessing || e(b);
455
455
  };
456
456
  return { schedule: Rn.reduce((k, P) => {
457
457
  const j = o[P];
458
- return k[P] = (C, S = !1, v = !1) => (n || y(), j.schedule(C, S, v)), k;
458
+ return k[P] = (E, S = !1, v = !1) => (n || x(), j.schedule(E, S, v)), k;
459
459
  }, {}), cancel: (k) => {
460
460
  for (let P = 0; P < Rn.length; P++)
461
461
  o[Rn[P]].cancel(k);
462
462
  }, state: i, steps: o };
463
463
  }
464
- const { schedule: pe, cancel: ft, state: je, steps: vs } = /* @__PURE__ */ Ha(typeof requestAnimationFrame < "u" ? requestAnimationFrame : ze, !0);
464
+ const { schedule: pe, cancel: ft, state: Me, steps: vs } = /* @__PURE__ */ Ha(typeof requestAnimationFrame < "u" ? requestAnimationFrame : ze, !0);
465
465
  let $n;
466
466
  function Md() {
467
467
  $n = void 0;
468
468
  }
469
469
  const Le = {
470
- now: () => ($n === void 0 && Le.set(je.isProcessing || st.useManualTiming ? je.timestamp : performance.now()), $n),
470
+ now: () => ($n === void 0 && Le.set(Me.isProcessing || st.useManualTiming ? Me.timestamp : performance.now()), $n),
471
471
  set: (e) => {
472
472
  $n = e, queueMicrotask(Md);
473
473
  }
@@ -502,7 +502,7 @@ const Vd = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
502
502
  }, Od = (e) => Qe(0, 255, e), ws = {
503
503
  ...Kt,
504
504
  transform: (e) => Math.round(Od(e))
505
- }, Et = {
505
+ }, Ct = {
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,7 +519,7 @@ function Dd(e) {
519
519
  const Hs = {
520
520
  test: /* @__PURE__ */ Li("#"),
521
521
  parse: Dd,
522
- transform: Et.transform
522
+ transform: Ct.transform
523
523
  }, kn = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
524
524
  test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
525
525
  parse: parseFloat,
@@ -533,9 +533,9 @@ const Hs = {
533
533
  parse: /* @__PURE__ */ Ka("hue", "saturation", "lightness"),
534
534
  transform: ({ hue: e, saturation: t, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(e) + ", " + qe.transform(ln(t)) + ", " + qe.transform(ln(n)) + ", " + ln(mn.transform(s)) + ")"
535
535
  }, Se = {
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),
536
+ test: (e) => Ct.test(e) || Hs.test(e) || Vt.test(e),
537
+ parse: (e) => Ct.test(e) ? Ct.parse(e) : Vt.test(e) ? Vt.parse(e) : Hs.parse(e),
538
+ transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? Ct.transform(e) : Vt.transform(e),
539
539
  getAnimatableNone: (e) => {
540
540
  const t = Se.parse(e);
541
541
  return t.alpha = 0, Se.transform(t);
@@ -603,10 +603,10 @@ function Xd({ hue: e, saturation: t, lightness: n, alpha: s }) {
603
603
  function Kn(e, t) {
604
604
  return (n) => n > 0 ? t : e;
605
605
  }
606
- const xe = (e, t, n) => e + (t - e) * n, Ss = (e, t, n) => {
606
+ const ye = (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, Ct, 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,13 +619,13 @@ 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 = ye(n.alpha, s.alpha, r), Ct.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;
626
626
  }
627
627
  function qd(e, t) {
628
- return (n) => xe(e, t, n);
628
+ return (n) => ye(e, t, n);
629
629
  }
630
630
  function Vi(e) {
631
631
  return typeof e == "number" ? qd : typeof e == "string" ? Ri(e) ? Kn : Se.test(e) ? Lo : eh : Array.isArray(e) ? el : typeof e == "object" ? Se.test(e) ? Lo : Jd : Kn;
@@ -661,7 +661,7 @@ const eh = (e, t) => {
661
661
  return s.indexes.var.length === i.indexes.var.length && s.indexes.color.length === i.indexes.color.length && s.indexes.number.length >= i.indexes.number.length ? Xs.has(e) && !i.values.length || Xs.has(t) && !s.values.length ? Zd(e, t) : Sn(el(Qd(s, i), i.values), n) : (Gt(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), Kn(e, t));
662
662
  };
663
663
  function tl(e, t, n) {
664
- return typeof e == "number" && typeof t == "number" && typeof n == "number" ? xe(e, t, n) : Vi(e)(e, t);
664
+ return typeof e == "number" && typeof t == "number" && typeof n == "number" ? ye(e, t, n) : Vi(e)(e, t);
665
665
  }
666
666
  const th = (e) => {
667
667
  const t = ({ timestamp: n }) => e(n);
@@ -672,7 +672,7 @@ const th = (e) => {
672
672
  * If we're processing this frame we can use the
673
673
  * framelocked timestamp to keep things in sync.
674
674
  */
675
- now: () => je.isProcessing ? je.timestamp : Le.now()
675
+ now: () => Me.isProcessing ? Me.timestamp : Le.now()
676
676
  };
677
677
  }, nl = (e, t, n = 10) => {
678
678
  let s = "";
@@ -816,41 +816,41 @@ function gn(e = ve.visualDuration, t = ve.bounce) {
816
816
  const r = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], l = { done: !1, value: r }, { stiffness: c, damping: u, mass: d, duration: h, velocity: f, isResolvedFromDuration: m } = lh({
817
817
  ...n,
818
818
  velocity: -/* @__PURE__ */ Be(n.velocity || 0)
819
- }), p = f || 0, b = u / (2 * Math.sqrt(c * d)), y = o - r, x = /* @__PURE__ */ Be(Math.sqrt(c / d)), N = Math.abs(y) < 5;
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
821
  let k;
822
822
  if (b < 1) {
823
- const j = Gs(x, b);
824
- k = (C) => {
825
- const S = Math.exp(-b * x * C);
826
- return o - S * ((p + b * x * y) / j * Math.sin(j * C) + y * Math.cos(j * C));
823
+ const j = Gs(y, b);
824
+ k = (E) => {
825
+ const S = Math.exp(-b * y * E);
826
+ return o - S * ((p + b * y * x) / j * Math.sin(j * E) + x * Math.cos(j * E));
827
827
  };
828
828
  } else if (b === 1)
829
- k = (j) => o - Math.exp(-x * j) * (y + (p + x * y) * j);
829
+ k = (j) => o - Math.exp(-y * j) * (x + (p + y * x) * j);
830
830
  else {
831
- const j = x * Math.sqrt(b * b - 1);
832
- k = (C) => {
833
- const S = Math.exp(-b * x * C), v = Math.min(j * C, 300);
834
- return o - S * ((p + b * x * y) * Math.sinh(v) + j * y * Math.cosh(v)) / j;
831
+ const j = y * Math.sqrt(b * b - 1);
832
+ k = (E) => {
833
+ const S = Math.exp(-b * y * E), v = Math.min(j * E, 300);
834
+ return o - S * ((p + b * y * x) * Math.sinh(v) + j * x * Math.cosh(v)) / j;
835
835
  };
836
836
  }
837
837
  const P = {
838
838
  calculatedDuration: m && h || null,
839
839
  next: (j) => {
840
- const C = k(j);
840
+ const E = k(j);
841
841
  if (m)
842
842
  l.done = j >= h;
843
843
  else {
844
844
  let S = j === 0 ? p : 0;
845
- b < 1 && (S = j === 0 ? /* @__PURE__ */ Fe(p) : il(k, j, C));
846
- const v = Math.abs(S) <= s, I = Math.abs(o - C) <= i;
845
+ b < 1 && (S = j === 0 ? /* @__PURE__ */ Fe(p) : il(k, j, E));
846
+ const v = Math.abs(S) <= s, I = Math.abs(o - E) <= i;
847
847
  l.done = v && I;
848
848
  }
849
- return l.value = l.done ? o : C, l;
849
+ return l.value = l.done ? o : E, l;
850
850
  },
851
851
  toString: () => {
852
- const j = Math.min(Oi(P), Zn), C = nl((S) => P.next(j * S).value, j, 30);
853
- return j + "ms " + C;
852
+ const j = Math.min(Oi(P), Zn), E = nl((S) => P.next(j * S).value, j, 30);
853
+ return j + "ms " + E;
854
854
  },
855
855
  toTransition: () => {
856
856
  }
@@ -867,15 +867,15 @@ function Ks({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 3
867
867
  value: h
868
868
  }, m = (v) => l !== void 0 && v < l || c !== void 0 && v > c, p = (v) => l === void 0 ? c : c === void 0 || Math.abs(l - v) < Math.abs(c - v) ? l : c;
869
869
  let b = n * t;
870
- const y = h + b, x = o === void 0 ? y : o(y);
871
- x !== y && (b = x - h);
872
- const N = (v) => -b * Math.exp(-v / s), k = (v) => x + N(v), P = (v) => {
870
+ const x = h + b, y = o === void 0 ? x : o(x);
871
+ y !== x && (b = y - h);
872
+ const N = (v) => -b * Math.exp(-v / s), k = (v) => y + N(v), P = (v) => {
873
873
  const I = N(v), F = k(v);
874
- f.done = Math.abs(I) <= u, f.value = f.done ? x : F;
874
+ f.done = Math.abs(I) <= u, f.value = f.done ? y : F;
875
875
  };
876
- let j, C;
876
+ let j, E;
877
877
  const S = (v) => {
878
- m(f.value) && (j = v, C = gn({
878
+ m(f.value) && (j = v, E = gn({
879
879
  keyframes: [f.value, p(f.value)],
880
880
  velocity: il(k, v, f.value),
881
881
  // TODO: This should be passing * 1000
@@ -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 I = !1;
892
- return !C && j === void 0 && (I = !0, P(v), S(v)), j !== void 0 && v >= j ? C.next(v - j) : (!I && P(v), f);
892
+ return !E && j === void 0 && (I = !0, P(v), S(v)), j !== void 0 && v >= j ? E.next(v - j) : (!I && P(v), f);
893
893
  }
894
894
  };
895
895
  }
@@ -929,7 +929,7 @@ function ol(e, t) {
929
929
  const n = e[e.length - 1];
930
930
  for (let s = 1; s <= t; s++) {
931
931
  const i = /* @__PURE__ */ Wt(0, t, s);
932
- e.push(xe(n, 1, i));
932
+ e.push(ye(n, 1, i));
933
933
  }
934
934
  }
935
935
  function rl(e) {
@@ -1030,10 +1030,10 @@ class Fi extends _i {
1030
1030
  const { generator: s, totalDuration: i, mixKeyframes: r, mirroredGenerator: o, resolvedDuration: l, calculatedDuration: c } = this;
1031
1031
  if (this.startTime === null)
1032
1032
  return s.next(0);
1033
- const { delay: u = 0, keyframes: d, repeat: h, repeatType: f, repeatDelay: m, type: p, onUpdate: b, finalKeyframe: y } = this.options;
1033
+ const { delay: u = 0, keyframes: d, repeat: h, repeatType: f, repeatDelay: m, type: p, onUpdate: b, finalKeyframe: x } = this.options;
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
- const x = this.currentTime - u * (this.playbackSpeed >= 0 ? 1 : -1), N = this.playbackSpeed >= 0 ? x < 0 : x > i;
1036
- this.currentTime = Math.max(x, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = i);
1035
+ const y = this.currentTime - u * (this.playbackSpeed >= 0 ? 1 : -1), N = this.playbackSpeed >= 0 ? y < 0 : y > i;
1036
+ this.currentTime = Math.max(y, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = i);
1037
1037
  let k = this.currentTime, P = s;
1038
1038
  if (h) {
1039
1039
  const v = Math.min(this.currentTime, i) / l;
@@ -1042,10 +1042,10 @@ class Fi extends _i {
1042
1042
  }
1043
1043
  const j = N ? { done: !1, value: d[0] } : P.next(k);
1044
1044
  r && (j.value = r(j.value));
1045
- let { done: C } = j;
1046
- !N && c !== null && (C = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
1047
- const S = this.holdTime === null && (this.state === "finished" || this.state === "running" && C);
1048
- return S && p !== Ks && (j.value = Di(d, this.options, y, this.speed)), b && b(j.value), S && this.finish(), j;
1045
+ let { done: E } = j;
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);
1048
+ return S && p !== Ks && (j.value = Di(d, this.options, x, this.speed)), b && b(j.value), S && this.finish(), j;
1049
1049
  }
1050
1050
  /**
1051
1051
  * Allows the returned animation to be awaited or promise-chained. Currently
@@ -1129,7 +1129,7 @@ const Pt = (e) => e * 180 / Math.PI, Zs = (e) => {
1129
1129
  skewX: (e) => Pt(Math.atan(e[1])),
1130
1130
  skewY: (e) => Pt(Math.atan(e[2])),
1131
1131
  skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
1132
- }, qs = (e) => (e = e % 360, e < 0 && (e += 360), e), Oo = Zs, Do = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), _o = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), xh = {
1132
+ }, qs = (e) => (e = e % 360, e < 0 && (e += 360), e), Oo = Zs, Do = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), _o = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), yh = {
1133
1133
  x: 12,
1134
1134
  y: 13,
1135
1135
  z: 14,
@@ -1156,7 +1156,7 @@ function Qs(e, t) {
1156
1156
  const n = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
1157
1157
  let s, i;
1158
1158
  if (n)
1159
- s = xh, i = n;
1159
+ s = yh, i = n;
1160
1160
  else {
1161
1161
  const l = e.match(/^matrix\(([-\d.e\s,]+)\)$/u);
1162
1162
  s = bh, i = l;
@@ -1166,7 +1166,7 @@ function Qs(e, t) {
1166
1166
  const r = s[t], o = i[1].split(",").map(vh);
1167
1167
  return typeof r == "function" ? r(o) : o[r];
1168
1168
  }
1169
- const yh = (e, t) => {
1169
+ const xh = (e, t) => {
1170
1170
  const { transform: n = "none" } = getComputedStyle(e);
1171
1171
  return Qs(n, t);
1172
1172
  };
@@ -1281,13 +1281,13 @@ class $i {
1281
1281
  }
1282
1282
  }
1283
1283
  const kh = (e) => e.startsWith("--");
1284
- function Ch(e, t, n) {
1284
+ function Eh(e, t, n) {
1285
1285
  kh(t) ? e.style.setProperty(t, n) : e.style[t] = n;
1286
1286
  }
1287
- const Eh = {};
1287
+ const Ch = {};
1288
1288
  function ul(e, t) {
1289
1289
  const n = /* @__PURE__ */ Ra(e);
1290
- return () => Eh[t] ?? n();
1290
+ return () => Ch[t] ?? n();
1291
1291
  }
1292
1292
  const Ph = /* @__PURE__ */ ul(() => window.ScrollTimeline !== void 0, "scrollTimeline"), dl = /* @__PURE__ */ ul(() => {
1293
1293
  try {
@@ -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) : Ch(n, s, d), this.animation.cancel();
1347
+ this.updateMotionValue ? this.updateMotionValue(d) : Eh(n, s, d), this.animation.cancel();
1348
1348
  }
1349
1349
  c?.(), this.notifyFinished();
1350
1350
  };
@@ -1526,7 +1526,7 @@ class $h extends _i {
1526
1526
  element: d,
1527
1527
  ...h
1528
1528
  }, m = d?.KeyframeResolver || $i;
1529
- this.keyframeResolver = new m(l, (p, b, y) => this.onKeyframesResolved(p, b, f, !y), c, u, d), this.keyframeResolver?.scheduleResolve();
1529
+ this.keyframeResolver = new m(l, (p, b, x) => this.onKeyframesResolved(p, b, f, !x), c, u, d), this.keyframeResolver?.scheduleResolve();
1530
1530
  }
1531
1531
  onKeyframesResolved(t, n, s, i) {
1532
1532
  this.keyframeResolver = void 0;
@@ -1792,7 +1792,7 @@ function Bt(e, t, n) {
1792
1792
  const s = e.getProps();
1793
1793
  return Yi(s, t, n !== void 0 ? n : s.custom, e);
1794
1794
  }
1795
- const xl = /* @__PURE__ */ new Set([
1795
+ const yl = /* @__PURE__ */ new Set([
1796
1796
  "width",
1797
1797
  "height",
1798
1798
  "top",
@@ -2019,9 +2019,9 @@ function of(e, t) {
2019
2019
  nf(e, o, l);
2020
2020
  }
2021
2021
  }
2022
- const Ie = (e) => !!(e && e.getVelocity);
2022
+ const je = (e) => !!(e && e.getVelocity);
2023
2023
  function rf(e) {
2024
- return !!(Ie(e) && e.add);
2024
+ return !!(je(e) && e.add);
2025
2025
  }
2026
2026
  function oi(e, t) {
2027
2027
  const n = e.getValue("willChange");
@@ -2035,9 +2035,9 @@ function oi(e, t) {
2035
2035
  function Ui(e) {
2036
2036
  return e.replace(/([A-Z])/g, (t) => `-${t.toLowerCase()}`);
2037
2037
  }
2038
- const af = "framerAppearId", yl = "data-" + Ui(af);
2038
+ const af = "framerAppearId", xl = "data-" + Ui(af);
2039
2039
  function vl(e) {
2040
- return e.props[yl];
2040
+ return e.props[xl];
2041
2041
  }
2042
2042
  function lf({ protectedKeys: e, needsAnimating: t }, n) {
2043
2043
  const s = e.hasOwnProperty(n) && t[n] !== !0;
@@ -2057,20 +2057,20 @@ function Hi(e, t, { delay: n = 0, transitionOverride: s, type: i } = {}) {
2057
2057
  const b = {
2058
2058
  delay: n,
2059
2059
  ...zi(r || {}, f)
2060
- }, y = m.get();
2061
- if (y !== void 0 && !m.isAnimating && !Array.isArray(p) && p === y && !b.velocity)
2060
+ }, x = m.get();
2061
+ if (x !== void 0 && !m.isAnimating && !Array.isArray(p) && p === x && !b.velocity)
2062
2062
  continue;
2063
- let x = !1;
2063
+ let y = !1;
2064
2064
  if (window.MotionHandoffAnimation) {
2065
2065
  const P = vl(e);
2066
2066
  if (P) {
2067
2067
  const j = window.MotionHandoffAnimation(P, f, pe);
2068
- j !== null && (b.startTime = j, x = !0);
2068
+ j !== null && (b.startTime = j, y = !0);
2069
2069
  }
2070
2070
  }
2071
2071
  oi(e, f);
2072
2072
  const N = u ?? e.shouldReduceMotion;
2073
- m.start(Wi(f, m, p, N && xl.has(f) ? { type: !1 } : b, e, x));
2073
+ m.start(Wi(f, m, p, N && yl.has(f) ? { type: !1 } : b, e, y));
2074
2074
  const k = m.animation;
2075
2075
  k && d.push(k);
2076
2076
  }
@@ -2260,17 +2260,17 @@ const pf = /\b([a-z-]*)\(.*?\)/gu, ai = {
2260
2260
  WebkitFilter: ai,
2261
2261
  mask: li,
2262
2262
  WebkitMask: li
2263
- }, Sl = (e) => bf[e], xf = /* @__PURE__ */ new Set([ai, li]);
2263
+ }, Sl = (e) => bf[e], yf = /* @__PURE__ */ new Set([ai, li]);
2264
2264
  function Nl(e, t) {
2265
2265
  let n = Sl(e);
2266
- return xf.has(n) || (n = Xe), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
2266
+ return yf.has(n) || (n = Xe), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
2267
2267
  }
2268
- const yf = /* @__PURE__ */ new Set(["auto", "none", "0"]);
2268
+ const xf = /* @__PURE__ */ new Set(["auto", "none", "0"]);
2269
2269
  function vf(e, t, n) {
2270
2270
  let s = 0, i;
2271
2271
  for (; s < e.length && !i; ) {
2272
2272
  const r = e[s];
2273
- typeof r == "string" && !yf.has(r) && pn(r).values.length && (i = e[s]), s++;
2273
+ typeof r == "string" && !xf.has(r) && pn(r).values.length && (i = e[s]), s++;
2274
2274
  }
2275
2275
  if (i && n)
2276
2276
  for (const r of t)
@@ -2292,7 +2292,7 @@ class wf extends $i {
2292
2292
  f !== void 0 && (t[d] = f), d === t.length - 1 && (this.finalKeyframe = h);
2293
2293
  }
2294
2294
  }
2295
- if (this.resolveNoneKeyframes(), !xl.has(s) || t.length !== 2)
2295
+ if (this.resolveNoneKeyframes(), !yl.has(s) || t.length !== 2)
2296
2296
  return;
2297
2297
  const [i, r] = t, o = Uo(i), l = Uo(r), c = jo(i), u = jo(r);
2298
2298
  if (c !== u && ut[s]) {
@@ -2363,7 +2363,7 @@ const { schedule: Ki } = /* @__PURE__ */ Ha(queueMicrotask, !1), Ue = {
2363
2363
  x: !1,
2364
2364
  y: !1
2365
2365
  };
2366
- function Cl() {
2366
+ function El() {
2367
2367
  return Ue.x || Ue.y;
2368
2368
  }
2369
2369
  function Sf(e) {
@@ -2373,7 +2373,7 @@ function Sf(e) {
2373
2373
  Ue.x = Ue.y = !1;
2374
2374
  });
2375
2375
  }
2376
- function El(e, t) {
2376
+ function Cl(e, t) {
2377
2377
  const n = Gi(e), s = new AbortController(), i = {
2378
2378
  passive: !0,
2379
2379
  ...t,
@@ -2382,47 +2382,47 @@ function El(e, t) {
2382
2382
  return [n, i, () => s.abort()];
2383
2383
  }
2384
2384
  function Nf(e) {
2385
- return !(e.pointerType === "touch" || Cl());
2385
+ return !(e.pointerType === "touch" || El());
2386
2386
  }
2387
2387
  function kf(e, t, n = {}) {
2388
- const [s, i, r] = El(e, n);
2388
+ const [s, i, r] = Cl(e, n);
2389
2389
  return s.forEach((o) => {
2390
2390
  let l = !1, c = !1, u;
2391
2391
  const d = () => {
2392
2392
  o.removeEventListener("pointerleave", p);
2393
- }, h = (y) => {
2394
- u && (u(y), u = void 0), d();
2395
- }, f = (y) => {
2396
- l = !1, window.removeEventListener("pointerup", f), window.removeEventListener("pointercancel", f), c && (c = !1, h(y));
2393
+ }, h = (x) => {
2394
+ u && (u(x), u = void 0), d();
2395
+ }, f = (x) => {
2396
+ l = !1, window.removeEventListener("pointerup", f), window.removeEventListener("pointercancel", f), c && (c = !1, h(x));
2397
2397
  }, m = () => {
2398
2398
  l = !0, window.addEventListener("pointerup", f, i), window.addEventListener("pointercancel", f, i);
2399
- }, p = (y) => {
2400
- if (y.pointerType !== "touch") {
2399
+ }, p = (x) => {
2400
+ if (x.pointerType !== "touch") {
2401
2401
  if (l) {
2402
2402
  c = !0;
2403
2403
  return;
2404
2404
  }
2405
- h(y);
2405
+ h(x);
2406
2406
  }
2407
- }, b = (y) => {
2408
- if (!Nf(y))
2407
+ }, b = (x) => {
2408
+ if (!Nf(x))
2409
2409
  return;
2410
2410
  c = !1;
2411
- const x = t(o, y);
2412
- typeof x == "function" && (u = x, o.addEventListener("pointerleave", p, i));
2411
+ const y = t(o, x);
2412
+ typeof y == "function" && (u = y, o.addEventListener("pointerleave", p, i));
2413
2413
  };
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, Cf = /* @__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, Ef = /* @__PURE__ */ new Set([
2418
2418
  "BUTTON",
2419
2419
  "INPUT",
2420
2420
  "SELECT",
2421
2421
  "TEXTAREA",
2422
2422
  "A"
2423
2423
  ]);
2424
- function Ef(e) {
2425
- return Cf.has(e.tagName) || e.isContentEditable === !0;
2424
+ function Cf(e) {
2425
+ return Ef.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 Cs(e, t) {
2437
+ function Es(e, t) {
2438
2438
  e.dispatchEvent(new PointerEvent("pointer" + t, { isPrimary: !0, bubbles: !0 }));
2439
2439
  }
2440
2440
  const jf = (e, t) => {
@@ -2444,20 +2444,20 @@ const jf = (e, t) => {
2444
2444
  const s = Xo(() => {
2445
2445
  if (Bn.has(n))
2446
2446
  return;
2447
- Cs(n, "down");
2447
+ Es(n, "down");
2448
2448
  const i = Xo(() => {
2449
- Cs(n, "up");
2450
- }), r = () => Cs(n, "cancel");
2449
+ Es(n, "up");
2450
+ }), r = () => Es(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) && !Cl();
2456
+ return Zi(e) && !El();
2457
2457
  }
2458
2458
  const Ko = /* @__PURE__ */ new WeakSet();
2459
2459
  function Mf(e, t, n = {}) {
2460
- const [s, i, r] = El(e, n), o = (l) => {
2460
+ const [s, i, r] = Cl(e, n), o = (l) => {
2461
2461
  const c = l.currentTarget;
2462
2462
  if (!Go(l) || Ko.has(l))
2463
2463
  return;
@@ -2472,7 +2472,7 @@ function Mf(e, t, n = {}) {
2472
2472
  window.addEventListener("pointerup", h, i), window.addEventListener("pointercancel", f, i);
2473
2473
  };
2474
2474
  return s.forEach((l) => {
2475
- (n.useGlobalTarget ? window : l).addEventListener("pointerdown", o, i), ci(l) && (l.addEventListener("focus", (u) => jf(u, i)), !Ef(l) && !l.hasAttribute("tabindex") && (l.tabIndex = 0));
2475
+ (n.useGlobalTarget ? window : l).addEventListener("pointerdown", o, i), ci(l) && (l.addEventListener("focus", (u) => jf(u, i)), !Cf(l) && !l.hasAttribute("tabindex") && (l.tabIndex = 0));
2476
2476
  }), r;
2477
2477
  }
2478
2478
  function rs(e) {
@@ -2553,7 +2553,7 @@ const $f = [...Tl, Se, Xe], Bf = (e) => $f.find(wl(e)), qo = () => ({
2553
2553
  function as(e) {
2554
2554
  return e !== null && typeof e == "object" && typeof e.start == "function";
2555
2555
  }
2556
- function xn(e) {
2556
+ function yn(e) {
2557
2557
  return typeof e == "string" || Array.isArray(e);
2558
2558
  }
2559
2559
  const qi = [
@@ -2566,7 +2566,7 @@ const qi = [
2566
2566
  "exit"
2567
2567
  ], Ji = ["initial", ...qi];
2568
2568
  function ls(e) {
2569
- return as(e.animate) || Ji.some((t) => xn(e[t]));
2569
+ return as(e.animate) || Ji.some((t) => yn(e[t]));
2570
2570
  }
2571
2571
  function Ml(e) {
2572
2572
  return !!(ls(e) || e.variants);
@@ -2574,9 +2574,9 @@ function Ml(e) {
2574
2574
  function zf(e, t, n) {
2575
2575
  for (const s in t) {
2576
2576
  const i = t[s], r = n[s];
2577
- if (Ie(i))
2577
+ if (je(i))
2578
2578
  e.addValue(s, i);
2579
- else if (Ie(r))
2579
+ else if (je(r))
2580
2580
  e.addValue(s, mt(i, { owner: e }));
2581
2581
  else if (r !== i)
2582
2582
  if (e.hasValue(s)) {
@@ -2639,7 +2639,7 @@ class Ll {
2639
2639
  const { willChange: h, ...f } = this.scrapeMotionValuesFromProps(n, {}, this);
2640
2640
  for (const m in f) {
2641
2641
  const p = f[m];
2642
- u[m] !== void 0 && Ie(p) && p.set(u[m]);
2642
+ u[m] !== void 0 && je(p) && p.set(u[m]);
2643
2643
  }
2644
2644
  }
2645
2645
  mount(t) {
@@ -2799,7 +2799,7 @@ class Ll {
2799
2799
  */
2800
2800
  readValue(t, n) {
2801
2801
  let s = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : this.getBaseTargetFromProps(this.props, t) ?? this.readValueFromInstance(this.current, t, this.options);
2802
- return s != null && (typeof s == "string" && (Ia(s) || Ma(s)) ? s = parseFloat(s) : !Bf(s) && Xe.test(n) && (s = Nl(t, n)), this.setBaseTarget(t, Ie(s) ? s.get() : s)), Ie(s) ? s.get() : s;
2802
+ return s != null && (typeof s == "string" && (Ia(s) || Ma(s)) ? s = parseFloat(s) : !Bf(s) && Xe.test(n) && (s = Nl(t, n)), this.setBaseTarget(t, je(s) ? s.get() : s)), je(s) ? s.get() : s;
2803
2803
  }
2804
2804
  /**
2805
2805
  * Set the base target to later animate back to. This is currently
@@ -2822,7 +2822,7 @@ class Ll {
2822
2822
  if (n && s !== void 0)
2823
2823
  return s;
2824
2824
  const i = this.getBaseTargetFromProps(this.props, t);
2825
- return i !== void 0 && !Ie(i) ? i : this.initialValues[t] !== void 0 && s === void 0 ? void 0 : this.baseTarget[t];
2825
+ return i !== void 0 && !je(i) ? i : this.initialValues[t] !== void 0 && s === void 0 ? void 0 : this.baseTarget[t];
2826
2826
  }
2827
2827
  on(t, n) {
2828
2828
  return this.events[t] || (this.events[t] = new Pi()), this.events[t].add(n);
@@ -2851,7 +2851,7 @@ class Vl extends Ll {
2851
2851
  handleChildMotionValue() {
2852
2852
  this.childSubscription && (this.childSubscription(), delete this.childSubscription);
2853
2853
  const { children: t } = this.props;
2854
- Ie(t) && (this.childSubscription = t.on("change", (n) => {
2854
+ je(t) && (this.childSubscription = t.on("change", (n) => {
2855
2855
  this.current && (this.current.textContent = `${n}`);
2856
2856
  }));
2857
2857
  }
@@ -2883,11 +2883,11 @@ function Xf(e, t) {
2883
2883
  right: s.x
2884
2884
  };
2885
2885
  }
2886
- function Es(e) {
2886
+ function Cs(e) {
2887
2887
  return e === void 0 || e === 1;
2888
2888
  }
2889
2889
  function di({ scale: e, scaleX: t, scaleY: n }) {
2890
- return !Es(e) || !Es(t) || !Es(n);
2890
+ return !Cs(e) || !Cs(t) || !Cs(n);
2891
2891
  }
2892
2892
  function Nt(e) {
2893
2893
  return di(e) || Dl(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
@@ -2932,7 +2932,7 @@ function Ft(e, t) {
2932
2932
  e.min = e.min + t, e.max = e.max + t;
2933
2933
  }
2934
2934
  function ir(e, t, n, s, i = 0.5) {
2935
- const r = xe(e.min, e.max, i);
2935
+ const r = ye(e.min, e.max, i);
2936
2936
  hi(e, t, n, r, s);
2937
2937
  }
2938
2938
  function $t(e, t) {
@@ -3028,7 +3028,7 @@ const on = {
3028
3028
  return s;
3029
3029
  const r = Xe.createTransformer(e), o = typeof i[0] != "number" ? 1 : 0, l = n.x.scale * t.x, c = n.y.scale * t.y;
3030
3030
  i[0 + o] /= l, i[1 + o] /= c;
3031
- const u = xe(l, c, 0.5);
3031
+ const u = ye(l, c, 0.5);
3032
3032
  return typeof i[2 + o] == "number" && (i[2 + o] /= u), typeof i[3 + o] == "number" && (i[3 + o] /= u), r(i);
3033
3033
  }
3034
3034
  }, fi = {
@@ -3055,7 +3055,7 @@ function eo(e, t, n) {
3055
3055
  if (!s)
3056
3056
  return r;
3057
3057
  for (const o in s)
3058
- (Ie(s[o]) || i && Ie(i[o]) || Bl(o, e) || n?.getValue(o)?.liveStyle !== void 0) && (r[o] = s[o]);
3058
+ (je(s[o]) || i && je(i[o]) || Bl(o, e) || n?.getValue(o)?.liveStyle !== void 0) && (r[o] = s[o]);
3059
3059
  return r;
3060
3060
  }
3061
3061
  function e0(e) {
@@ -3067,7 +3067,7 @@ class zl extends Vl {
3067
3067
  }
3068
3068
  readValueFromInstance(t, n) {
3069
3069
  if (qt.has(n))
3070
- return this.projection?.isProjecting ? Js(n) : yh(t, n);
3070
+ return this.projection?.isProjecting ? Js(n) : xh(t, n);
3071
3071
  {
3072
3072
  const s = e0(t), i = (Ga(n) ? s.getPropertyValue(n) : s[n]) || 0;
3073
3073
  return typeof i == "string" ? i.trim() : i;
@@ -3187,7 +3187,7 @@ function a0(e, t, n, s) {
3187
3187
  function Hl(e, t, n) {
3188
3188
  const s = eo(e, t, n);
3189
3189
  for (const i in e)
3190
- if (Ie(e[i]) || Ie(t[i])) {
3190
+ if (je(e[i]) || je(t[i])) {
3191
3191
  const r = Zt.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
3192
3192
  s[r] = e[i];
3193
3193
  }
@@ -3231,7 +3231,7 @@ function Gl(e) {
3231
3231
  const t = {};
3232
3232
  for (let n = 0; n < l0; n++) {
3233
3233
  const s = Ji[n], i = e.props[s];
3234
- (xn(i) || i === !1) && (t[s] = i);
3234
+ (yn(i) || i === !1) && (t[s] = i);
3235
3235
  }
3236
3236
  return t;
3237
3237
  }
@@ -3266,16 +3266,16 @@ function h0(e) {
3266
3266
  function o(c) {
3267
3267
  const { props: u } = e, d = Gl(e.parent) || {}, h = [], f = /* @__PURE__ */ new Set();
3268
3268
  let m = {}, p = 1 / 0;
3269
- for (let y = 0; y < u0; y++) {
3270
- const x = c0[y], N = n[x], k = u[x] !== void 0 ? u[x] : d[x], P = xn(k), j = x === c ? N.isActive : null;
3271
- j === !1 && (p = y);
3272
- let C = k === d[x] && k !== u[x] && P;
3273
- if (C && s && e.manuallyAnimateOnMount && (C = !1), N.protectedKeys = { ...m }, // If it isn't active and hasn't *just* been set as inactive
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], P = yn(k), j = y === c ? N.isActive : null;
3271
+ j === !1 && (p = x);
3272
+ let E = k === d[y] && k !== u[y] && P;
3273
+ if (E && s && e.manuallyAnimateOnMount && (E = !1), N.protectedKeys = { ...m }, // If it isn't active and hasn't *just* been set as inactive
3274
3274
  !N.isActive && j === null || // If we didn't and don't have any defined prop for this animation type
3275
3275
  !k && !N.prevProp || // Or if the prop doesn't define an animation
3276
3276
  as(k) || typeof k == "boolean")
3277
3277
  continue;
3278
- if (x === "exit" && N.isActive && j !== !0) {
3278
+ if (y === "exit" && N.isActive && j !== !0) {
3279
3279
  N.prevResolvedValues && (m = {
3280
3280
  ...m,
3281
3281
  ...N.prevResolvedValues
@@ -3284,53 +3284,53 @@ function h0(e) {
3284
3284
  }
3285
3285
  const S = f0(N.prevProp, k);
3286
3286
  let v = S || // If we're making this variant active, we want to always make it active
3287
- x === c && N.isActive && !C && P || // If we removed a higher-priority variant (i is in reverse order)
3288
- y > p && P, I = !1;
3287
+ y === c && N.isActive && !E && P || // If we removed a higher-priority variant (i is in reverse order)
3288
+ x > p && P, I = !1;
3289
3289
  const F = Array.isArray(k) ? k : [k];
3290
- let B = F.reduce(i(x), {});
3290
+ let B = F.reduce(i(y), {});
3291
3291
  j === !1 && (B = {});
3292
3292
  const { prevResolvedValues: Z = {} } = N, D = {
3293
3293
  ...Z,
3294
3294
  ...B
3295
3295
  }, te = (R) => {
3296
3296
  v = !0, f.has(R) && (I = !0, f.delete(R)), N.needsAnimating[R] = !0;
3297
- const E = e.getValue(R);
3298
- E && (E.liveStyle = !1);
3297
+ const C = e.getValue(R);
3298
+ C && (C.liveStyle = !1);
3299
3299
  };
3300
3300
  for (const R in D) {
3301
- const E = B[R], _ = Z[R];
3301
+ const C = B[R], _ = Z[R];
3302
3302
  if (m.hasOwnProperty(R))
3303
3303
  continue;
3304
3304
  let M = !1;
3305
- ii(E) && ii(_) ? M = !Kl(E, _) : M = E !== _, M ? E != null ? te(R) : f.add(R) : E !== void 0 && f.has(R) ? te(R) : N.protectedKeys[R] = !0;
3305
+ ii(C) && ii(_) ? M = !Kl(C, _) : M = C !== _, M ? C != null ? te(R) : f.add(R) : C !== void 0 && f.has(R) ? te(R) : N.protectedKeys[R] = !0;
3306
3306
  }
3307
3307
  N.prevProp = k, N.prevResolvedValues = B, N.isActive && (m = { ...m, ...B }), s && e.blockInitialAnimation && (v = !1);
3308
- const H = C && S;
3308
+ const H = E && S;
3309
3309
  v && (!H || I) && h.push(...F.map((R) => {
3310
- const E = { type: x };
3310
+ const C = { type: y };
3311
3311
  if (typeof R == "string" && s && !H && e.manuallyAnimateOnMount && e.parent) {
3312
3312
  const { parent: _ } = e, M = Bt(_, R);
3313
3313
  if (_.enteringChildren && M) {
3314
3314
  const { delayChildren: T } = M.transition || {};
3315
- E.delay = pl(_.enteringChildren, e, T);
3315
+ C.delay = pl(_.enteringChildren, e, T);
3316
3316
  }
3317
3317
  }
3318
3318
  return {
3319
3319
  animation: R,
3320
- options: E
3320
+ options: C
3321
3321
  };
3322
3322
  }));
3323
3323
  }
3324
3324
  if (f.size) {
3325
- const y = {};
3325
+ const x = {};
3326
3326
  if (typeof u.initial != "boolean") {
3327
- const x = Bt(e, Array.isArray(u.initial) ? u.initial[0] : u.initial);
3328
- x && x.transition && (y.transition = x.transition);
3327
+ const y = Bt(e, Array.isArray(u.initial) ? u.initial[0] : u.initial);
3328
+ y && y.transition && (x.transition = y.transition);
3329
3329
  }
3330
- f.forEach((x) => {
3331
- const N = e.getBaseTarget(x), k = e.getValue(x);
3332
- k && (k.liveStyle = !0), y[x] = N ?? null;
3333
- }), h.push({ animation: y });
3330
+ f.forEach((y) => {
3331
+ const N = e.getBaseTarget(y), k = e.getValue(y);
3332
+ k && (k.liveStyle = !0), x[y] = N ?? null;
3333
+ }), h.push({ animation: x });
3334
3334
  }
3335
3335
  let b = !!h.length;
3336
3336
  return s && (u.initial === !1 || u.initial === u.animate) && !e.manuallyAnimateOnMount && (b = !1), s = !1, b ? t(h) : Promise.resolve();
@@ -3389,11 +3389,11 @@ const Zl = 1e-4, m0 = 1 - Zl, p0 = 1 + Zl, ql = 0.01, g0 = 0 - ql, b0 = 0 + ql;
3389
3389
  function Ve(e) {
3390
3390
  return e.max - e.min;
3391
3391
  }
3392
- function x0(e, t, n) {
3392
+ function y0(e, t, n) {
3393
3393
  return Math.abs(e - t) <= n;
3394
3394
  }
3395
3395
  function cr(e, t, n, s = 0.5) {
3396
- e.origin = s, e.originPoint = xe(t.min, t.max, e.origin), e.scale = Ve(n) / Ve(t), e.translate = xe(n.min, n.max, e.origin) - e.originPoint, (e.scale >= m0 && e.scale <= p0 || isNaN(e.scale)) && (e.scale = 1), (e.translate >= g0 && e.translate <= b0 || isNaN(e.translate)) && (e.translate = 0);
3396
+ e.origin = s, e.originPoint = ye(t.min, t.max, e.origin), e.scale = Ve(n) / Ve(t), e.translate = ye(n.min, n.max, e.origin) - e.originPoint, (e.scale >= m0 && e.scale <= p0 || isNaN(e.scale)) && (e.scale = 1), (e.translate >= g0 && e.translate <= b0 || isNaN(e.translate)) && (e.translate = 0);
3397
3397
  }
3398
3398
  function cn(e, t, n, s) {
3399
3399
  cr(e.x, t.x, n.x, s ? s.originX : void 0), cr(e.y, t.y, n.y, s ? s.originY : void 0);
@@ -3401,7 +3401,7 @@ function cn(e, t, n, s) {
3401
3401
  function ur(e, t, n) {
3402
3402
  e.min = n.min + t.min, e.max = e.min + Ve(t);
3403
3403
  }
3404
- function y0(e, t, n) {
3404
+ function x0(e, t, n) {
3405
3405
  ur(e.x, t.x, n.x), ur(e.y, t.y, n.y);
3406
3406
  }
3407
3407
  function dr(e, t, n) {
@@ -3414,9 +3414,9 @@ function hr(e, t, n, s, i) {
3414
3414
  return e -= t, e = Jn(e, 1 / n, s), i !== void 0 && (e = Jn(e, 1 / i, s)), e;
3415
3415
  }
3416
3416
  function v0(e, t = 0, n = 1, s = 0.5, i, r = e, o = e) {
3417
- if (qe.test(t) && (t = parseFloat(t), t = xe(o.min, o.max, t / 100) - o.min), typeof t != "number")
3417
+ if (qe.test(t) && (t = parseFloat(t), t = ye(o.min, o.max, t / 100) - o.min), typeof t != "number")
3418
3418
  return;
3419
- let l = xe(r.min, r.max, s);
3419
+ let l = ye(r.min, r.max, s);
3420
3420
  e === r && (l -= t), e.min = hr(e.min, t, n, l, i), e.max = hr(e.max, t, n, l, i);
3421
3421
  }
3422
3422
  function fr(e, t, [n, s, i], r, o) {
@@ -3444,10 +3444,10 @@ function br(e, t) {
3444
3444
  function Ql(e, t) {
3445
3445
  return br(e.x, t.x) && br(e.y, t.y);
3446
3446
  }
3447
- function xr(e) {
3447
+ function yr(e) {
3448
3448
  return Ve(e.x) / Ve(e.y);
3449
3449
  }
3450
- function yr(e, t) {
3450
+ function xr(e, t) {
3451
3451
  return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
3452
3452
  }
3453
3453
  function Ze(e) {
@@ -3464,29 +3464,29 @@ function N0(e, t, n) {
3464
3464
  return (l !== 1 || c !== 1) && (s += `scale(${l}, ${c})`), s || "none";
3465
3465
  }
3466
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 C0(e, t, n, s, i, r) {
3468
- i ? (e.opacity = xe(0, n.opacity ?? 1, E0(s)), e.opacityExit = xe(t.opacity ?? 1, 0, P0(s))) : r && (e.opacity = xe(t.opacity ?? 1, n.opacity ?? 1, s));
3467
+ function E0(e, t, n, s, i, r) {
3468
+ i ? (e.opacity = ye(0, n.opacity ?? 1, C0(s)), e.opacityExit = ye(t.opacity ?? 1, 0, P0(s))) : r && (e.opacity = ye(t.opacity ?? 1, n.opacity ?? 1, s));
3469
3469
  for (let o = 0; o < k0; 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)
3473
3473
  continue;
3474
- c || (c = 0), u || (u = 0), c === 0 || u === 0 || wr(c) === wr(u) ? (e[l] = Math.max(xe(vr(c), vr(u), s), 0), (qe.test(u) || qe.test(c)) && (e[l] += "%")) : e[l] = u;
3474
+ c || (c = 0), u || (u = 0), c === 0 || u === 0 || wr(c) === wr(u) ? (e[l] = Math.max(ye(vr(c), vr(u), s), 0), (qe.test(u) || qe.test(c)) && (e[l] += "%")) : e[l] = u;
3475
3475
  }
3476
- (t.rotate || n.rotate) && (e.rotate = xe(t.rotate || 0, n.rotate || 0, s));
3476
+ (t.rotate || n.rotate) && (e.rotate = ye(t.rotate || 0, n.rotate || 0, s));
3477
3477
  }
3478
3478
  function Tr(e, t) {
3479
3479
  return e[t] !== void 0 ? e[t] : e.borderRadius;
3480
3480
  }
3481
- const E0 = /* @__PURE__ */ tc(0, 0.5, $a), P0 = /* @__PURE__ */ tc(0.5, 0.95, ze);
3481
+ const C0 = /* @__PURE__ */ tc(0, 0.5, $a), P0 = /* @__PURE__ */ tc(0.5, 0.95, ze);
3482
3482
  function tc(e, t, n) {
3483
3483
  return (s) => s < e ? 0 : s > t ? 1 : n(/* @__PURE__ */ Wt(e, t, s));
3484
3484
  }
3485
3485
  function nc(e, t, n) {
3486
- const s = Ie(e) ? e : mt(e);
3486
+ const s = je(e) ? e : mt(e);
3487
3487
  return s.start(Wi("", s, t, n)), s.animation;
3488
3488
  }
3489
- function yn(e, t, n, s = { passive: !0 }) {
3489
+ function xn(e, t, n, s = { passive: !0 }) {
3490
3490
  return e.addEventListener(t, n, s), () => e.removeEventListener(t, n);
3491
3491
  }
3492
3492
  const I0 = (e, t) => e.depth - t.depth;
@@ -3495,7 +3495,7 @@ class j0 {
3495
3495
  this.children = [], this.isDirty = !1;
3496
3496
  }
3497
3497
  add(t) {
3498
- Ei(this.children, t), this.isDirty = !0;
3498
+ Ci(this.children, t), this.isDirty = !0;
3499
3499
  }
3500
3500
  remove(t) {
3501
3501
  zt(this.children, t), this.isDirty = !0;
@@ -3512,14 +3512,14 @@ function M0(e, t) {
3512
3512
  return pe.setup(s, !0), () => ft(s);
3513
3513
  }
3514
3514
  function Un(e) {
3515
- return Ie(e) ? e.get() : e;
3515
+ return je(e) ? e.get() : e;
3516
3516
  }
3517
3517
  class R0 {
3518
3518
  constructor() {
3519
3519
  this.members = [];
3520
3520
  }
3521
3521
  add(t) {
3522
- Ei(this.members, t);
3522
+ Ci(this.members, t);
3523
3523
  for (let n = this.members.length - 1; n >= 0; n--) {
3524
3524
  const s = this.members[n];
3525
3525
  if (s === t || s === this.lead || s === this.prevLead)
@@ -3657,13 +3657,13 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
3657
3657
  this.target = void 0, this.relativeTarget = void 0;
3658
3658
  return;
3659
3659
  }
3660
- const p = this.options.transition || u.getDefaultTransition() || X0, { onLayoutAnimationStart: b, onLayoutAnimationComplete: y } = u.getProps(), x = !this.targetLayout || !Ql(this.targetLayout, m), N = !h && f;
3661
- if (this.options.layoutRoot || this.resumeFrom || N || h && (x || !this.currentAnimation)) {
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
+ 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
3663
  const k = {
3664
3664
  ...zi(p, "layout"),
3665
3665
  onPlay: b,
3666
- onComplete: y
3666
+ onComplete: x
3667
3667
  };
3668
3668
  (u.shouldReduceMotion || this.options.layoutRoot) && (k.delay = 0, k.type = !1), this.startAnimation(k), this.setAnimationOrigin(d, N);
3669
3669
  } else
@@ -3726,7 +3726,7 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
3726
3726
  }
3727
3727
  this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach($0), this.nodes.forEach(V0), this.nodes.forEach(O0)) : this.nodes.forEach(Nr), this.clearAllSnapshots();
3728
3728
  const l = Le.now();
3729
- je.delta = Qe(0, 1e3 / 60, l - je.timestamp), je.timestamp = l, je.isProcessing = !0, vs.update.process(je), vs.preRender.process(je), vs.render.process(je), je.isProcessing = !1;
3729
+ Me.delta = Qe(0, 1e3 / 60, l - Me.timestamp), Me.timestamp = l, Me.isProcessing = !0, vs.update.process(Me), vs.preRender.process(Me), vs.render.process(Me), Me.isProcessing = !1;
3730
3730
  }
3731
3731
  didUpdate() {
3732
3732
  this.updateScheduled || (this.updateScheduled = !0, Ki.read(this.scheduleUpdate));
@@ -3849,7 +3849,7 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
3849
3849
  this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
3850
3850
  }
3851
3851
  forceRelativeParentToResolveTarget() {
3852
- this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== je.timestamp && this.relativeParent.resolveTargetDelta(!0);
3852
+ this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== Me.timestamp && this.relativeParent.resolveTargetDelta(!0);
3853
3853
  }
3854
3854
  resolveTargetDelta(o = !1) {
3855
3855
  const l = this.getLead();
@@ -3860,9 +3860,9 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
3860
3860
  const { layout: d, layoutId: h } = this.options;
3861
3861
  if (!this.layout || !(d || h))
3862
3862
  return;
3863
- this.resolvedRelativeTargetAt = je.timestamp;
3863
+ this.resolvedRelativeTargetAt = Me.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 = Te(), this.targetWithTransforms = Te()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), y0(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 = Te(), this.targetWithTransforms = Te()), 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)))
@@ -3880,7 +3880,7 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
3880
3880
  calcProjection() {
3881
3881
  const o = this.getLead(), l = !!this.resumingFrom || this !== o;
3882
3882
  let c = !0;
3883
- if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (c = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (c = !1), this.resolvedRelativeTargetAt === je.timestamp && (c = !1), c)
3883
+ if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (c = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (c = !1), this.resolvedRelativeTargetAt === Me.timestamp && (c = !1), c)
3884
3884
  return;
3885
3885
  const { layout: u, layoutId: d } = this.options;
3886
3886
  if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(u || d))
@@ -3893,7 +3893,7 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
3893
3893
  this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
3894
3894
  return;
3895
3895
  }
3896
- !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (lr(this.prevProjectionDelta.x, this.projectionDelta.x), lr(this.prevProjectionDelta.y, this.projectionDelta.y)), cn(this.projectionDelta, this.layoutCorrected, m, this.latestValues), (this.treeScale.x !== h || this.treeScale.y !== f || !yr(this.projectionDelta.x, this.prevProjectionDelta.x) || !yr(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", m));
3896
+ !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (lr(this.prevProjectionDelta.x, this.projectionDelta.x), lr(this.prevProjectionDelta.y, this.projectionDelta.y)), cn(this.projectionDelta, this.layoutCorrected, m, this.latestValues), (this.treeScale.x !== h || this.treeScale.y !== f || !xr(this.projectionDelta.x, this.prevProjectionDelta.x) || !xr(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", m));
3897
3897
  }
3898
3898
  hide() {
3899
3899
  this.isVisible = !1;
@@ -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 = Te(), m = c ? c.source : void 0, p = this.layout ? this.layout.source : void 0, b = m !== p, y = this.getStack(), x = !y || y.members.length <= 1, N = !!(b && !x && this.options.crossfade === !0 && !this.path.some(H0));
3917
+ const f = Te(), 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
3919
  let k;
3920
3920
  this.mixTargetDelta = (P) => {
3921
3921
  const j = P / 1e3;
3922
- Cr(h.x, o.x, j), Cr(h.y, o.y, j), 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, j), k && S0(this.relativeTarget, k) && (this.isProjectionDirty = !1), k || (k = Te()), Ye(k, this.relativeTarget)), b && (this.animationValues = d, C0(d, u, this.latestValues, j, N, x)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = j;
3922
+ Er(h.x, o.x, j), Er(h.y, o.y, j), 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, j), k && S0(this.relativeTarget, k) && (this.isProjectionDirty = !1), k || (k = Te()), Ye(k, this.relativeTarget)), b && (this.animationValues = d, E0(d, u, this.latestValues, j, N, y)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = j;
3923
3923
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
3924
3924
  }
3925
3925
  startAnimation(o) {
@@ -4038,13 +4038,13 @@ function ic({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4038
4038
  for (const p in fi) {
4039
4039
  if (d[p] === void 0)
4040
4040
  continue;
4041
- const { correct: b, applyTo: y, isCSSVariable: x } = fi[p], N = h === "none" ? d[p] : b(d[p], u);
4042
- if (y) {
4043
- const k = y.length;
4041
+ const { correct: b, applyTo: x, isCSSVariable: y } = fi[p], N = h === "none" ? d[p] : b(d[p], u);
4042
+ if (x) {
4043
+ const k = x.length;
4044
4044
  for (let P = 0; P < k; P++)
4045
- o[y[P]] = N;
4045
+ o[x[P]] = N;
4046
4046
  } else
4047
- x ? this.options.visualElement.renderState.vars[p] = N : o[p] = N;
4047
+ y ? this.options.visualElement.renderState.vars[p] = N : o[p] = N;
4048
4048
  }
4049
4049
  this.options.layoutId && (o.pointerEvents = u === this ? Un(l?.pointerEvents) || "" : "none");
4050
4050
  }
@@ -4137,14 +4137,14 @@ function W0(e) {
4137
4137
  function Y0(e) {
4138
4138
  e.removeLeadSnapshot();
4139
4139
  }
4140
- function Cr(e, t, n) {
4141
- e.translate = xe(t.translate, 0, n), e.scale = xe(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
4140
+ function Er(e, t, n) {
4141
+ e.translate = ye(t.translate, 0, n), e.scale = ye(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
4142
4142
  }
4143
- function Er(e, t, n, s) {
4144
- e.min = xe(t.min, n.min, s), e.max = xe(t.max, n.max, s);
4143
+ function Cr(e, t, n, s) {
4144
+ e.min = ye(t.min, n.min, s), e.max = ye(t.max, n.max, s);
4145
4145
  }
4146
4146
  function U0(e, t, n, s) {
4147
- Er(e.x, t.x, n.x, s), Er(e.y, t.y, n.y, s);
4147
+ Cr(e.x, t.x, n.x, s), Cr(e.y, t.y, n.y, s);
4148
4148
  }
4149
4149
  function H0(e) {
4150
4150
  return e.animationValues && e.animationValues.opacityExit !== void 0;
@@ -4160,13 +4160,13 @@ function G0(e) {
4160
4160
  jr(e.x), jr(e.y);
4161
4161
  }
4162
4162
  function oc(e, t, n) {
4163
- return e === "position" || e === "preserve-aspect" && !x0(xr(t), xr(n), 0.2);
4163
+ return e === "position" || e === "preserve-aspect" && !y0(yr(t), yr(n), 0.2);
4164
4164
  }
4165
4165
  function K0(e) {
4166
4166
  return e !== e.root && e.scroll?.wasRoot;
4167
4167
  }
4168
4168
  const Z0 = ic({
4169
- attachResizeListener: (e, t) => yn(e, "resize", t),
4169
+ attachResizeListener: (e, t) => xn(e, "resize", t),
4170
4170
  measureScroll: () => ({
4171
4171
  x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
4172
4172
  y: document.documentElement.scrollTop || document.body?.scrollTop || 0
@@ -4247,10 +4247,10 @@ function em({ children: e, isPresent: t, anchorX: n, anchorY: s, root: i, pop: r
4247
4247
  bottom: 0
4248
4248
  }), { nonce: u } = be(cs), d = e.props?.ref ?? e?.ref, h = J0(l, d);
4249
4249
  return Si(() => {
4250
- const { width: f, height: m, top: p, left: b, right: y, bottom: x } = c.current;
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: ${y}`, k = s === "bottom" ? `bottom: ${x}` : `top: ${p}`;
4253
+ const N = n === "left" ? `left: ${b}` : `right: ${x}`, k = s === "bottom" ? `bottom: ${y}` : `top: ${p}`;
4254
4254
  l.current.dataset.motionPopId = o;
4255
4255
  const P = document.createElement("style");
4256
4256
  u && (P.nonce = u);
@@ -4319,35 +4319,35 @@ function Rr(e) {
4319
4319
  }), t;
4320
4320
  }
4321
4321
  const Ne = ({ 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 = we(!0), b = we(f), y = os(() => /* @__PURE__ */ new Map()), x = we(/* @__PURE__ */ new Set()), [N, k] = O(f), [P, j] = O(f);
4322
+ const [d, h] = ac(o), f = jt(() => Rr(e), [e]), m = o && !d ? [] : f.map(Ln), p = we(!0), b = we(f), x = os(() => /* @__PURE__ */ new Map()), y = we(/* @__PURE__ */ new Set()), [N, k] = O(f), [P, j] = O(f);
4323
4323
  Pa(() => {
4324
4324
  p.current = !1, b.current = f;
4325
4325
  for (let v = 0; v < P.length; v++) {
4326
4326
  const I = Ln(P[v]);
4327
- m.includes(I) ? (y.delete(I), x.current.delete(I)) : y.get(I) !== !0 && y.set(I, !1);
4327
+ m.includes(I) ? (x.delete(I), y.current.delete(I)) : x.get(I) !== !0 && x.set(I, !1);
4328
4328
  }
4329
4329
  }, [P, m.length, m.join("-")]);
4330
- const C = [];
4330
+ const E = [];
4331
4331
  if (f !== N) {
4332
4332
  let v = [...f];
4333
4333
  for (let I = 0; I < P.length; I++) {
4334
4334
  const F = P[I], B = Ln(F);
4335
- m.includes(B) || (v.splice(I, 0, F), C.push(F));
4335
+ m.includes(B) || (v.splice(I, 0, F), E.push(F));
4336
4336
  }
4337
- return r === "wait" && C.length && (v = C), j(Rr(v)), k(f), null;
4337
+ return r === "wait" && E.length && (v = E), j(Rr(v)), k(f), null;
4338
4338
  }
4339
4339
  process.env.NODE_ENV !== "production" && r === "wait" && P.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 } = be(Ci);
4340
+ const { forceRender: S } = be(Ei);
4341
4341
  return a.jsx(a.Fragment, { children: P.map((v) => {
4342
4342
  const I = Ln(v), F = o && !d ? !1 : f === P || m.includes(I), B = () => {
4343
- if (x.current.has(I))
4343
+ if (y.current.has(I))
4344
4344
  return;
4345
- if (x.current.add(I), y.has(I))
4346
- y.set(I, !0);
4345
+ if (y.current.add(I), x.has(I))
4346
+ x.set(I, !0);
4347
4347
  else
4348
4348
  return;
4349
4349
  let Z = !0;
4350
- y.forEach((D) => {
4350
+ x.forEach((D) => {
4351
4351
  D || (Z = !1);
4352
4352
  }), Z && (S?.(), j(b.current), o && h?.(), s && s());
4353
4353
  };
@@ -4452,8 +4452,8 @@ function um(e, t) {
4452
4452
  if (ls(e)) {
4453
4453
  const { initial: n, animate: s } = e;
4454
4454
  return {
4455
- initial: n === !1 || xn(n) ? n : void 0,
4456
- animate: xn(s) ? s : void 0
4455
+ initial: n === !1 || yn(n) ? n : void 0,
4456
+ animate: yn(s) ? s : void 0
4457
4457
  };
4458
4458
  }
4459
4459
  return e.inherit !== !1 ? t : {};
@@ -4473,7 +4473,7 @@ const to = () => ({
4473
4473
  });
4474
4474
  function dc(e, t, n) {
4475
4475
  for (const s in t)
4476
- !Ie(t[s]) && !Bl(s, n) && (e[s] = t[s]);
4476
+ !je(t[s]) && !Bl(s, n) && (e[s] = t[s]);
4477
4477
  }
4478
4478
  function hm({ transformTemplate: e }, t) {
4479
4479
  return jt(() => {
@@ -4555,19 +4555,19 @@ function no(e) {
4555
4555
  );
4556
4556
  }
4557
4557
  function bm(e, t, n, { latestValues: s }, i, r = !1, o) {
4558
- const c = (o ?? no(e) ? pm : mm)(t, s, i, e), u = cm(t, typeof e == "string", r), d = e !== va ? { ...u, ...c, ref: n } : {}, { children: h } = t, f = jt(() => Ie(h) ? h.get() : h, [h]);
4558
+ const c = (o ?? no(e) ? pm : mm)(t, s, i, e), u = cm(t, typeof e == "string", r), d = e !== va ? { ...u, ...c, ref: n } : {}, { children: h } = t, f = jt(() => je(h) ? h.get() : h, [h]);
4559
4559
  return Du(e, {
4560
4560
  ...d,
4561
4561
  children: f
4562
4562
  });
4563
4563
  }
4564
- function xm({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, s, i) {
4564
+ function ym({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, s, i) {
4565
4565
  return {
4566
- latestValues: ym(n, s, i, e),
4566
+ latestValues: xm(n, s, i, e),
4567
4567
  renderState: t()
4568
4568
  };
4569
4569
  }
4570
- function ym(e, t, n, s) {
4570
+ function xm(e, t, n, s) {
4571
4571
  const i = {}, r = s(e, {});
4572
4572
  for (const f in r)
4573
4573
  i[f] = Un(r[f]);
@@ -4582,9 +4582,9 @@ function ym(e, t, n, s) {
4582
4582
  for (let m = 0; m < f.length; m++) {
4583
4583
  const p = Yi(e, f[m]);
4584
4584
  if (p) {
4585
- const { transitionEnd: b, transition: y, ...x } = p;
4586
- for (const N in x) {
4587
- let k = x[N];
4585
+ const { transitionEnd: b, transition: x, ...y } = p;
4586
+ for (const N in y) {
4587
+ let k = y[N];
4588
4588
  if (Array.isArray(k)) {
4589
4589
  const P = d ? k.length - 1 : 0;
4590
4590
  k = k[P];
@@ -4599,7 +4599,7 @@ function ym(e, t, n, s) {
4599
4599
  return i;
4600
4600
  }
4601
4601
  const fc = (e) => (t, n) => {
4602
- const s = be(us), i = be(Tn), r = () => xm(e, t, s, i);
4602
+ const s = be(us), i = be(Tn), r = () => ym(e, t, s, i);
4603
4603
  return n ? r() : os(r);
4604
4604
  }, vm = /* @__PURE__ */ fc({
4605
4605
  scrapeMotionValuesFromProps: eo,
@@ -4643,16 +4643,16 @@ function Nm(e, t, n, s, i, r) {
4643
4643
  }), m.current && f.current && (f.current.manuallyAnimateOnMount = !0));
4644
4644
  const p = f.current, b = be(mc);
4645
4645
  p && !p.projection && i && (p.type === "html" || p.type === "svg") && km(f.current, n, i, b);
4646
- const y = we(!1);
4646
+ const x = we(!1);
4647
4647
  Si(() => {
4648
- p && y.current && p.update(n, c);
4648
+ p && x.current && p.update(n, c);
4649
4649
  });
4650
- const x = n[yl], N = we(!!x && !window.MotionHandoffIsComplete?.(x) && window.MotionHasOptimisedAnimation?.(x));
4650
+ const y = n[xl], N = we(!!y && !window.MotionHandoffIsComplete?.(y) && window.MotionHasOptimisedAnimation?.(y));
4651
4651
  return Pa(() => {
4652
- m.current = !0, p && (y.current = !0, window.MotionIsMounted = !0, p.updateFeatures(), p.scheduleRenderMicrotask(), N.current && p.animationState && p.animationState.animateChanges());
4652
+ m.current = !0, p && (x.current = !0, window.MotionIsMounted = !0, p.updateFeatures(), p.scheduleRenderMicrotask(), N.current && p.animationState && p.animationState.animateChanges());
4653
4653
  }), ie(() => {
4654
4654
  p && (!N.current && p.animationState && p.animationState.animateChanges(), N.current && (queueMicrotask(() => {
4655
- window.MotionHandoffMarkAsComplete?.(x);
4655
+ window.MotionHandoffMarkAsComplete?.(y);
4656
4656
  }), N.current = !1), p.enteringChildren = void 0);
4657
4657
  }), p;
4658
4658
  }
@@ -4689,12 +4689,12 @@ function Ms(e, { forwardMotionProps: t = !1, type: n } = {}, s, i) {
4689
4689
  const f = {
4690
4690
  ...be(cs),
4691
4691
  ...u,
4692
- layoutId: Cm(u)
4692
+ layoutId: Em(u)
4693
4693
  }, { isStatic: m } = f, p = dm(u), b = o(u, m);
4694
- if (!m && Ea) {
4695
- Em(f, s);
4696
- const y = Pm(f);
4697
- h = y.MeasureLayout, p.visualElement = Nm(e, b, f, i, y.ProjectionNode, r);
4694
+ if (!m && Ca) {
4695
+ Cm(f, s);
4696
+ const x = Pm(f);
4697
+ h = x.MeasureLayout, p.visualElement = Nm(e, b, f, i, x.ProjectionNode, r);
4698
4698
  }
4699
4699
  return a.jsxs(us.Provider, { value: p, children: [h && p.visualElement ? a.jsx(h, { visualElement: p.visualElement, ...f }) : null, bm(e, u, Sm(b, p.visualElement, d), b, m, t, r)] });
4700
4700
  }
@@ -4702,11 +4702,11 @@ 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 Cm({ layoutId: e }) {
4706
- const t = be(Ci).id;
4705
+ function Em({ layoutId: e }) {
4706
+ const t = be(Ei).id;
4707
4707
  return t && e !== void 0 ? t + "-" + e : e;
4708
4708
  }
4709
- function Em(e, t) {
4709
+ function Cm(e, t) {
4710
4710
  const n = be(lc).strict;
4711
4711
  if (process.env.NODE_ENV !== "production" && t && n) {
4712
4712
  const s = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
@@ -4797,7 +4797,7 @@ const Lm = {
4797
4797
  Feature: Am
4798
4798
  }
4799
4799
  };
4800
- function Cn(e) {
4800
+ function En(e) {
4801
4801
  return {
4802
4802
  point: {
4803
4803
  x: e.pageX,
@@ -4805,9 +4805,9 @@ function Cn(e) {
4805
4805
  }
4806
4806
  };
4807
4807
  }
4808
- const Vm = (e) => (t) => Zi(t) && e(t, Cn(t));
4808
+ const Vm = (e) => (t) => Zi(t) && e(t, En(t));
4809
4809
  function un(e, t, n, s) {
4810
- return yn(e, t, Vm(n), s);
4810
+ return xn(e, t, Vm(n), s);
4811
4811
  }
4812
4812
  const gc = ({ current: e }) => e ? e.ownerDocument.defaultView : null, Or = (e, t) => Math.abs(e - t);
4813
4813
  function Om(e, t) {
@@ -4827,23 +4827,23 @@ class bc {
4827
4827
  const m = As(this.lastMoveEventInfo, this.history), p = this.startEvent !== null, b = Om(m.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
4828
4828
  if (!p && !b)
4829
4829
  return;
4830
- const { point: y } = m, { timestamp: x } = je;
4831
- this.history.push({ ...y, timestamp: x });
4830
+ const { point: x } = m, { timestamp: y } = Me;
4831
+ this.history.push({ ...x, timestamp: y });
4832
4832
  const { onStart: N, onMove: k } = this.handlers;
4833
4833
  p || (N && N(this.lastMoveEvent, m), this.startEvent = this.lastMoveEvent), k && k(this.lastMoveEvent, m);
4834
4834
  }, this.handlePointerMove = (m, p) => {
4835
4835
  this.lastMoveEvent = m, this.lastMoveEventInfo = Rs(p, this.transformPagePoint), pe.update(this.updatePoint, !0);
4836
4836
  }, this.handlePointerUp = (m, p) => {
4837
4837
  this.end();
4838
- const { onEnd: b, onSessionEnd: y, resumeAnimation: x } = this.handlers;
4839
- if ((this.dragSnapToOrigin || !this.startEvent) && x && x(), !(this.lastMoveEvent && this.lastMoveEventInfo))
4838
+ const { onEnd: b, onSessionEnd: x, resumeAnimation: y } = this.handlers;
4839
+ if ((this.dragSnapToOrigin || !this.startEvent) && y && y(), !(this.lastMoveEvent && this.lastMoveEventInfo))
4840
4840
  return;
4841
4841
  const N = As(m.type === "pointercancel" ? this.lastMoveEventInfo : Rs(p, this.transformPagePoint), this.history);
4842
- this.startEvent && b && b(m, N), y && y(m, N);
4842
+ this.startEvent && b && b(m, N), x && x(m, N);
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 = Cn(t), u = Rs(c, this.transformPagePoint), { point: d } = u, { timestamp: h } = je;
4846
+ const c = En(t), u = Rs(c, this.transformPagePoint), { point: d } = u, { timestamp: h } = Me;
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);
@@ -4906,7 +4906,7 @@ function _r(e, t) {
4906
4906
  function As({ point: e }, t) {
4907
4907
  return {
4908
4908
  point: e,
4909
- delta: _r(e, xc(t)),
4909
+ delta: _r(e, yc(t)),
4910
4910
  offset: _r(e, Dm(t)),
4911
4911
  velocity: _m(t, 0.1)
4912
4912
  };
@@ -4914,14 +4914,14 @@ function As({ point: e }, t) {
4914
4914
  function Dm(e) {
4915
4915
  return e[0];
4916
4916
  }
4917
- function xc(e) {
4917
+ function yc(e) {
4918
4918
  return e[e.length - 1];
4919
4919
  }
4920
4920
  function _m(e, t) {
4921
4921
  if (e.length < 2)
4922
4922
  return { x: 0, y: 0 };
4923
4923
  let n = e.length - 1, s = null;
4924
- const i = xc(e);
4924
+ const i = yc(e);
4925
4925
  for (; n >= 0 && (s = e[n], !(i.timestamp - s.timestamp > /* @__PURE__ */ Fe(t))); )
4926
4926
  n--;
4927
4927
  if (!s)
@@ -4937,7 +4937,7 @@ function _m(e, t) {
4937
4937
  return o.x === 1 / 0 && (o.x = 0), o.y === 1 / 0 && (o.y = 0), o;
4938
4938
  }
4939
4939
  function Fm(e, { min: t, max: n }, s) {
4940
- return t !== void 0 && e < t ? e = s ? xe(t, e, s.min) : Math.max(e, t) : n !== void 0 && e > n && (e = s ? xe(n, e, s.max) : Math.min(e, n)), e;
4940
+ return t !== void 0 && e < t ? e = s ? ye(t, e, s.min) : Math.max(e, t) : n !== void 0 && e > n && (e = s ? ye(n, e, s.max) : Math.min(e, n)), e;
4941
4941
  }
4942
4942
  function Fr(e, t, n) {
4943
4943
  return {
@@ -4996,35 +4996,35 @@ class Hm {
4996
4996
  if (i && i.isPresent === !1)
4997
4997
  return;
4998
4998
  const r = (h) => {
4999
- n && this.snapToCursor(Cn(h).point), this.stopAnimation();
4999
+ n && this.snapToCursor(En(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))
5003
5003
  return;
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), Ze((x) => {
5005
- let N = this.getAxisMotionValue(x).get() || 0;
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), Ze((y) => {
5005
+ let N = this.getAxisMotionValue(y).get() || 0;
5006
5006
  if (qe.test(N)) {
5007
5007
  const { projection: k } = this.visualElement;
5008
5008
  if (k && k.layout) {
5009
- const P = k.layout.layoutBox[x];
5009
+ const P = k.layout.layoutBox[y];
5010
5010
  P && (N = Ve(P) * (parseFloat(N) / 100));
5011
5011
  }
5012
5012
  }
5013
- this.originPoint[x] = N;
5013
+ this.originPoint[y] = N;
5014
5014
  }), b && pe.update(() => b(h, f), !1, !0), oi(this.visualElement, "transform");
5015
- const { animationState: y } = this.visualElement;
5016
- y && y.setActive("whileDrag", !0);
5015
+ const { animationState: x } = this.visualElement;
5016
+ x && x.setActive("whileDrag", !0);
5017
5017
  }, l = (h, f) => {
5018
5018
  this.latestPointerEvent = h, this.latestPanInfo = f;
5019
- const { dragPropagation: m, dragDirectionLock: p, onDirectionLock: b, onDrag: y } = this.getProps();
5019
+ const { dragPropagation: m, dragDirectionLock: p, onDirectionLock: b, onDrag: x } = this.getProps();
5020
5020
  if (!m && !this.openDragLock)
5021
5021
  return;
5022
- const { offset: x } = f;
5022
+ const { offset: y } = f;
5023
5023
  if (p && this.currentDirection === null) {
5024
- this.currentDirection = Gm(x), this.currentDirection !== null && b && b(this.currentDirection);
5024
+ this.currentDirection = Gm(y), this.currentDirection !== null && b && b(this.currentDirection);
5025
5025
  return;
5026
5026
  }
5027
- this.updateAxis("x", f.point, x), this.updateAxis("y", f.point, x), this.visualElement.render(), y && pe.update(() => y(h, f), !1, !0);
5027
+ this.updateAxis("x", f.point, y), this.updateAxis("y", f.point, y), this.visualElement.render(), x && pe.update(() => x(h, f), !1, !0);
5028
5028
  }, c = (h, f) => {
5029
5029
  this.latestPointerEvent = h, this.latestPanInfo = f, this.stop(h, f), this.latestPointerEvent = null, this.latestPanInfo = null;
5030
5030
  }, u = () => {
@@ -5153,7 +5153,7 @@ class Hm {
5153
5153
  const { projection: i } = this.visualElement, r = this.getAxisMotionValue(n);
5154
5154
  if (i && i.layout) {
5155
5155
  const { min: o, max: l } = i.layout.layoutBox[n], c = r.get() || 0;
5156
- r.set(t[n] - xe(o, l, 0.5) + c);
5156
+ r.set(t[n] - ye(o, l, 0.5) + c);
5157
5157
  }
5158
5158
  });
5159
5159
  }
@@ -5182,7 +5182,7 @@ class Hm {
5182
5182
  if (!Vn(o, t, null))
5183
5183
  return;
5184
5184
  const l = this.getAxisMotionValue(o), { min: c, max: u } = this.constraints[o];
5185
- l.set(xe(c, u, i[o]));
5185
+ l.set(ye(c, u, i[o]));
5186
5186
  }), this.visualElement.render();
5187
5187
  }
5188
5188
  addListeners() {
@@ -5199,7 +5199,7 @@ class Hm {
5199
5199
  Lt(u) && u.current && (this.constraints = this.resolveRefConstraints(), s || (s = Xm(t, u.current, () => this.scalePositionWithinConstraints())));
5200
5200
  }, { projection: r } = this.visualElement, o = r.addEventListener("measure", i);
5201
5201
  r && !r.layout && (r.root && r.root.updateScroll(), r.updateLayout()), pe.read(i);
5202
- const l = yn(window, "resize", () => this.scalePositionWithinConstraints()), c = r.addEventListener("didUpdate", (({ delta: u, hasLayoutChanged: d }) => {
5202
+ const l = xn(window, "resize", () => this.scalePositionWithinConstraints()), c = r.addEventListener("didUpdate", (({ delta: u, hasLayoutChanged: d }) => {
5203
5203
  this.isDragging && d && (Ze((h) => {
5204
5204
  const f = this.getAxisMotionValue(h);
5205
5205
  f && (this.originPoint[h] += u[h].translate, f.set(f.get() + u[h].translate));
@@ -5340,8 +5340,8 @@ class qm extends Fu {
5340
5340
  return null;
5341
5341
  }
5342
5342
  }
5343
- function yc(e) {
5344
- const [t, n] = ac(), s = be(Ci);
5343
+ function xc(e) {
5344
+ const [t, n] = ac(), s = be(Ei);
5345
5345
  return a.jsx(qm, { ...e, layoutGroup: s, switchLayoutGroup: be(mc), isPresent: t, safeToRemove: n });
5346
5346
  }
5347
5347
  const Jm = {
@@ -5351,14 +5351,14 @@ const Jm = {
5351
5351
  drag: {
5352
5352
  Feature: Km,
5353
5353
  ProjectionNode: rc,
5354
- MeasureLayout: yc
5354
+ MeasureLayout: xc
5355
5355
  }
5356
5356
  };
5357
5357
  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 && pe.postRender(() => r(t, Cn(t)));
5361
+ r && pe.postRender(() => r(t, En(t)));
5362
5362
  }
5363
5363
  class Qm extends pt {
5364
5364
  mount() {
@@ -5385,7 +5385,7 @@ class ep extends pt {
5385
5385
  !this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
5386
5386
  }
5387
5387
  mount() {
5388
- this.unmount = Sn(yn(this.node.current, "focus", () => this.onFocus()), yn(this.node.current, "blur", () => this.onBlur()));
5388
+ this.unmount = Sn(xn(this.node.current, "focus", () => this.onFocus()), xn(this.node.current, "blur", () => this.onBlur()));
5389
5389
  }
5390
5390
  unmount() {
5391
5391
  }
@@ -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 && pe.postRender(() => r(t, Cn(t)));
5399
+ r && pe.postRender(() => r(t, En(t)));
5400
5400
  }
5401
5401
  class tp extends pt {
5402
5402
  mount() {
@@ -5485,7 +5485,7 @@ const cp = {
5485
5485
  }, up = {
5486
5486
  layout: {
5487
5487
  ProjectionNode: rc,
5488
- MeasureLayout: yc
5488
+ MeasureLayout: xc
5489
5489
  }
5490
5490
  }, dp = {
5491
5491
  ...Lm,
@@ -5524,7 +5524,7 @@ function pp(e, t, n, s, i, r) {
5524
5524
  for (let o = 0; o < t.length; o++)
5525
5525
  e.push({
5526
5526
  value: t[o],
5527
- at: xe(i, r, s[o]),
5527
+ at: ye(i, r, s[o]),
5528
5528
  easing: Ya(n, o)
5529
5529
  });
5530
5530
  }
@@ -5535,7 +5535,7 @@ function gp(e, t) {
5535
5535
  function bp(e, t) {
5536
5536
  return e.at === t.at ? e.value === null ? 1 : t.value === null ? -1 : 0 : e.at - t.at;
5537
5537
  }
5538
- const xp = "easeInOut", yp = 20;
5538
+ const yp = "easeInOut", xp = 20;
5539
5539
  function vp(e, { defaultTransition: t = {}, ...n } = {}, s, i) {
5540
5540
  const r = t.duration || 0.3, o = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), c = {}, u = /* @__PURE__ */ new Map();
5541
5541
  let d = 0, h = 0, f = 0;
@@ -5548,12 +5548,12 @@ function vp(e, { defaultTransition: t = {}, ...n } = {}, s, i) {
5548
5548
  u.set(p.name, Hr(h, p.at, d, u));
5549
5549
  continue;
5550
5550
  }
5551
- let [b, y, x = {}] = p;
5552
- x.at !== void 0 && (h = Hr(h, x.at, d, u));
5551
+ let [b, x, y = {}] = p;
5552
+ y.at !== void 0 && (h = Hr(h, y.at, d, u));
5553
5553
  let N = 0;
5554
- const k = (P, j, C, S = 0, v = 0) => {
5554
+ const k = (P, j, E, S = 0, v = 0) => {
5555
5555
  const I = wp(P), { delay: F = 0, times: B = rl(I), type: Z = t.type || "keyframes", repeat: D, repeatType: te, repeatDelay: H = 0, ...Q } = j;
5556
- let { ease: R = t.ease || "easeOut", duration: E } = j;
5556
+ let { ease: R = t.ease || "easeOut", duration: C } = j;
5557
5557
  const _ = typeof F == "function" ? F(S, v) : F, M = I.length, T = Bi(Z) ? Z : i?.[Z || "keyframes"];
5558
5558
  if (M <= 2 && T) {
5559
5559
  let oe = 100;
@@ -5565,16 +5565,16 @@ function vp(e, { defaultTransition: t = {}, ...n } = {}, s, i) {
5565
5565
  ...t,
5566
5566
  ...Q
5567
5567
  };
5568
- E !== void 0 && (re.duration = /* @__PURE__ */ Fe(E));
5568
+ C !== void 0 && (re.duration = /* @__PURE__ */ Fe(C));
5569
5569
  const ae = sl(re, oe, T);
5570
- R = ae.ease, E = ae.duration;
5570
+ R = ae.ease, C = ae.duration;
5571
5571
  }
5572
- E ?? (E = r);
5572
+ C ?? (C = r);
5573
5573
  const A = h + _;
5574
5574
  B.length === 1 && B[0] === 0 && (B[1] = 1);
5575
5575
  const ee = B.length - I.length;
5576
5576
  if (ee > 0 && ol(B, ee), I.length === 1 && I.unshift(null), D) {
5577
- Ge(D < yp, "Repeat count too high, must be less than 20", "repeat-count-high"), E = fp(E, D);
5577
+ Ge(D < xp, "Repeat count too high, must be less than 20", "repeat-count-high"), C = fp(C, D);
5578
5578
  const oe = [...I], re = [...B];
5579
5579
  R = Array.isArray(R) ? [...R] : [R];
5580
5580
  const ae = [...R];
@@ -5585,41 +5585,41 @@ function vp(e, { defaultTransition: t = {}, ...n } = {}, s, i) {
5585
5585
  }
5586
5586
  gp(B, D);
5587
5587
  }
5588
- const ne = A + E;
5589
- pp(C, I, R, B, A, ne), N = Math.max(_ + E, N), f = Math.max(ne, f);
5588
+ const ne = A + C;
5589
+ pp(E, I, R, B, A, ne), N = Math.max(_ + C, N), f = Math.max(ne, f);
5590
5590
  };
5591
- if (Ie(b)) {
5591
+ if (je(b)) {
5592
5592
  const P = Xr(b, l);
5593
- k(y, x, Gr("default", P));
5593
+ k(x, y, Gr("default", P));
5594
5594
  } else {
5595
- const P = vc(b, y, s, c), j = P.length;
5596
- for (let C = 0; C < j; C++) {
5597
- y = y, x = x;
5598
- const S = P[C], v = Xr(S, l);
5599
- for (const I in y)
5600
- k(y[I], Tp(x, I), Gr(I, v), C, j);
5595
+ const P = vc(b, x, s, c), j = P.length;
5596
+ for (let E = 0; E < j; E++) {
5597
+ x = x, y = y;
5598
+ const S = P[E], v = Xr(S, l);
5599
+ for (const I in x)
5600
+ k(x[I], Tp(y, I), Gr(I, v), E, j);
5601
5601
  }
5602
5602
  }
5603
5603
  d = h, h += N;
5604
5604
  }
5605
5605
  return l.forEach((m, p) => {
5606
5606
  for (const b in m) {
5607
- const y = m[b];
5608
- y.sort(bp);
5609
- const x = [], N = [], k = [];
5610
- for (let S = 0; S < y.length; S++) {
5611
- const { at: v, value: I, easing: F } = y[S];
5612
- x.push(I), N.push(/* @__PURE__ */ Wt(0, f, v)), k.push(F || "easeOut");
5607
+ const x = m[b];
5608
+ x.sort(bp);
5609
+ const y = [], N = [], k = [];
5610
+ for (let S = 0; S < x.length; S++) {
5611
+ const { at: v, value: I, easing: F } = x[S];
5612
+ y.push(I), N.push(/* @__PURE__ */ Wt(0, f, v)), k.push(F || "easeOut");
5613
5613
  }
5614
- N[0] !== 0 && (N.unshift(0), x.unshift(x[0]), k.unshift(xp)), N[N.length - 1] !== 1 && (N.push(1), x.push(null)), o.has(p) || o.set(p, {
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, {
5615
5615
  keyframes: {},
5616
5616
  transition: {}
5617
5617
  });
5618
5618
  const P = o.get(p);
5619
- P.keyframes[b] = x;
5620
- const { type: j, ...C } = t;
5619
+ P.keyframes[b] = y;
5620
+ const { type: j, ...E } = t;
5621
5621
  P.transition[b] = {
5622
- ...C,
5622
+ ...E,
5623
5623
  duration: f,
5624
5624
  ease: k,
5625
5625
  times: N,
@@ -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 Cp(e) {
5664
+ function Ep(e) {
5665
5665
  const t = {
5666
5666
  presenceContext: null,
5667
5667
  props: {},
@@ -5674,12 +5674,12 @@ function Cp(e) {
5674
5674
  }, n = new n0(t);
5675
5675
  n.mount(e), bn.set(e, n);
5676
5676
  }
5677
- function Ep(e, t) {
5678
- return Ie(e) || typeof e == "number" || typeof e == "string" && !so(t);
5677
+ function Cp(e, t) {
5678
+ return je(e) || typeof e == "number" || typeof e == "string" && !so(t);
5679
5679
  }
5680
5680
  function wc(e, t, n, s) {
5681
5681
  const i = [];
5682
- if (Ep(e, t))
5682
+ if (Cp(e, t))
5683
5683
  i.push(nc(e, so(t) && t.default || t, n && (n.default || n)));
5684
5684
  else {
5685
5685
  if (e == null)
@@ -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 : Cp;
5690
+ const c = r[l], u = c instanceof Element ? kp : Ep;
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 }, {}));
@@ -5781,14 +5781,14 @@ const gi = ({
5781
5781
  /* @__PURE__ */ a.jsx(Rp, { iconName: e.icon, className: "w-3 h-3 sm:w-4 sm:h-4" })
5782
5782
  ] })
5783
5783
  }
5784
- ) }), io = Ke(void 0), Ix = ({ children: e }) => {
5784
+ ) }), io = Ke(void 0), Iy = ({ children: e }) => {
5785
5785
  const [t, n] = O(!1), s = dn((r) => {
5786
5786
  n(r);
5787
5787
  }, []), i = dn(() => {
5788
5788
  n((r) => !r);
5789
5789
  }, []);
5790
5790
  return /* @__PURE__ */ a.jsx(io.Provider, { value: { isMinimized: t, setMinimized: s, toggleMinimized: i }, children: e });
5791
- }, jx = () => {
5791
+ }, jy = () => {
5792
5792
  const e = be(io);
5793
5793
  if (!e)
5794
5794
  throw new Error("useMinimize debe ser usado dentro de un MinimizeProvider");
@@ -5800,7 +5800,7 @@ const gi = ({
5800
5800
  internalEvent: null,
5801
5801
  setInternalEvent: () => {
5802
5802
  }
5803
- }), Mx = ({ children: e }) => {
5803
+ }), My = ({ children: e }) => {
5804
5804
  const [t, n] = O(null), [s, i] = O(null);
5805
5805
  return /* @__PURE__ */ a.jsx(Sc.Provider, { value: { lastEvent: t, setLastEvent: n, internalEvent: s, setInternalEvent: i }, children: e });
5806
5806
  }, Jt = () => be(Sc);
@@ -5827,7 +5827,7 @@ const Ap = (e, t) => {
5827
5827
  }, Lp = (e, t) => ({
5828
5828
  classGroupId: e,
5829
5829
  validator: t
5830
- }), Cc = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
5830
+ }), Ec = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
5831
5831
  nextPart: e,
5832
5832
  validators: t,
5833
5833
  classGroupId: n
@@ -5841,7 +5841,7 @@ const Ap = (e, t) => {
5841
5841
  if (o.startsWith("[") && o.endsWith("]"))
5842
5842
  return Dp(o);
5843
5843
  const l = o.split(ts), c = l[0] === "" && l.length > 1 ? 1 : 0;
5844
- return Ec(l, c, t);
5844
+ return Cc(l, c, t);
5845
5845
  },
5846
5846
  getConflictingClassGroupIds: (o, l) => {
5847
5847
  if (l) {
@@ -5851,12 +5851,12 @@ const Ap = (e, t) => {
5851
5851
  return n[o] || Zr;
5852
5852
  }
5853
5853
  };
5854
- }, Ec = (e, t, n) => {
5854
+ }, Cc = (e, t, n) => {
5855
5855
  if (e.length - t === 0)
5856
5856
  return n.classGroupId;
5857
5857
  const i = e[t], r = n.nextPart.get(i);
5858
5858
  if (r) {
5859
- const u = Ec(e, t + 1, r);
5859
+ const u = Cc(e, t + 1, r);
5860
5860
  if (u) return u;
5861
5861
  }
5862
5862
  const o = n.validators;
@@ -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 = Cc();
5881
+ const n = Ec();
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 = Cc(), n.nextPart.set(o, l)), n = l;
5924
+ l || (l = Ec(), 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) => {
@@ -5964,18 +5964,18 @@ const Ap = (e, t) => {
5964
5964
  let o = 0, l = 0, c = 0, u;
5965
5965
  const d = i.length;
5966
5966
  for (let b = 0; b < d; b++) {
5967
- const y = i[b];
5967
+ const x = i[b];
5968
5968
  if (o === 0 && l === 0) {
5969
- if (y === qr) {
5969
+ if (x === qr) {
5970
5970
  r.push(i.slice(c, b)), c = b + 1;
5971
5971
  continue;
5972
5972
  }
5973
- if (y === "/") {
5973
+ if (x === "/") {
5974
5974
  u = b;
5975
5975
  continue;
5976
5976
  }
5977
5977
  }
5978
- y === "[" ? o++ : y === "]" ? o-- : y === "(" ? l++ : y === ")" && l--;
5978
+ x === "[" ? o++ : x === "]" ? o-- : x === "(" ? l++ : x === ")" && l--;
5979
5979
  }
5980
5980
  const h = r.length === 0 ? i : i.slice(c);
5981
5981
  let f = h, m = !1;
@@ -6039,25 +6039,25 @@ const Ap = (e, t) => {
6039
6039
  c = d + (c.length > 0 ? " " + c : c);
6040
6040
  continue;
6041
6041
  }
6042
- let y = !!b, x = s(y ? p.substring(0, b) : p);
6043
- if (!x) {
6044
- if (!y) {
6042
+ let x = !!b, y = s(x ? p.substring(0, b) : p);
6043
+ if (!y) {
6044
+ if (!x) {
6045
6045
  c = d + (c.length > 0 ? " " + c : c);
6046
6046
  continue;
6047
6047
  }
6048
- if (x = s(p), !x) {
6048
+ if (y = s(p), !y) {
6049
6049
  c = d + (c.length > 0 ? " " + c : c);
6050
6050
  continue;
6051
6051
  }
6052
- y = !1;
6052
+ x = !1;
6053
6053
  }
6054
- const N = f.length === 0 ? "" : f.length === 1 ? f[0] : r(f).join(":"), k = m ? N + bi : N, P = k + x;
6054
+ const N = f.length === 0 ? "" : f.length === 1 ? f[0] : r(f).join(":"), k = m ? N + bi : N, P = k + y;
6055
6055
  if (o.indexOf(P) > -1)
6056
6056
  continue;
6057
6057
  o.push(P);
6058
- const j = i(x, y);
6059
- for (let C = 0; C < j.length; ++C) {
6060
- const S = j[C];
6058
+ const j = i(y, x);
6059
+ for (let E = 0; E < j.length; ++E) {
6060
+ const S = j[E];
6061
6061
  o.push(k + S);
6062
6062
  }
6063
6063
  c = d + (c.length > 0 ? " " + c : c);
@@ -6088,7 +6088,7 @@ const Ap = (e, t) => {
6088
6088
  return i(c, d), d;
6089
6089
  };
6090
6090
  return r = o, (...c) => r(Jp(...c));
6091
- }, eg = [], ke = (e) => {
6091
+ }, eg = [], Ee = (e) => {
6092
6092
  const t = (n) => n[e] || eg;
6093
6093
  return t.isThemeGetter = !0, t;
6094
6094
  }, jc = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Mc = /^\((?:(\w[\w-]*):)?(.+)\)$/i, tg = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, ng = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, sg = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ig = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, og = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, rg = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, at = (e) => tg.test(e), ce = (e) => !!e && !Number.isNaN(Number(e)), lt = (e) => !!e && Number.isInteger(Number(e)), _s = (e) => e.endsWith("%") && ce(e.slice(0, -1)), nt = (e) => ng.test(e), Rc = () => !0, ag = (e) => (
@@ -6096,14 +6096,14 @@ const Ap = (e, t) => {
6096
6096
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
6097
6097
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
6098
6098
  sg.test(e) && !ig.test(e)
6099
- ), ro = () => !1, lg = (e) => og.test(e), cg = (e) => rg.test(e), ug = (e) => !X(e) && !K(e), dg = (e) => gt(e, Vc, ro), X = (e) => jc.test(e), Tt = (e) => gt(e, Oc, ag), Qr = (e) => gt(e, yg, ce), hg = (e) => gt(e, _c, Rc), fg = (e) => gt(e, Dc, ro), ea = (e) => gt(e, Ac, ro), mg = (e) => gt(e, Lc, cg), On = (e) => gt(e, Fc, lg), K = (e) => Mc.test(e), rn = (e) => Mt(e, Oc), pg = (e) => Mt(e, Dc), ta = (e) => Mt(e, Ac), gg = (e) => Mt(e, Vc), bg = (e) => Mt(e, Lc), Dn = (e) => Mt(e, Fc, !0), xg = (e) => Mt(e, _c, !0), gt = (e, t, n) => {
6099
+ ), ro = () => !1, lg = (e) => og.test(e), cg = (e) => rg.test(e), ug = (e) => !X(e) && !K(e), dg = (e) => gt(e, Vc, ro), X = (e) => jc.test(e), Tt = (e) => gt(e, Oc, ag), Qr = (e) => gt(e, xg, ce), hg = (e) => gt(e, _c, Rc), fg = (e) => gt(e, Dc, ro), ea = (e) => gt(e, Ac, ro), mg = (e) => gt(e, Lc, cg), On = (e) => gt(e, Fc, lg), K = (e) => Mc.test(e), rn = (e) => Mt(e, Oc), pg = (e) => Mt(e, Dc), ta = (e) => Mt(e, Ac), gg = (e) => Mt(e, Vc), bg = (e) => Mt(e, Lc), Dn = (e) => Mt(e, Fc, !0), yg = (e) => Mt(e, _c, !0), gt = (e, t, n) => {
6100
6100
  const s = jc.exec(e);
6101
6101
  return s ? s[1] ? t(s[1]) : n(s[2]) : !1;
6102
6102
  }, Mt = (e, t, n = !1) => {
6103
6103
  const s = Mc.exec(e);
6104
6104
  return s ? s[1] ? t(s[1]) : n : !1;
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", yg = (e) => e === "number", Dc = (e) => e === "family-name", _c = (e) => e === "number" || e === "weight", Fc = (e) => e === "shadow", vg = () => {
6106
- const e = ke("color"), t = ke("font"), n = ke("text"), s = ke("font-weight"), i = ke("tracking"), r = ke("leading"), o = ke("breakpoint"), l = ke("container"), c = ke("spacing"), u = ke("radius"), d = ke("shadow"), h = ke("inset-shadow"), f = ke("text-shadow"), m = ke("drop-shadow"), p = ke("blur"), b = ke("perspective"), y = ke("aspect"), x = ke("ease"), N = ke("animate"), k = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], P = () => [
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 = Ee("color"), t = Ee("font"), n = Ee("text"), s = Ee("font-weight"), i = Ee("tracking"), r = Ee("leading"), o = Ee("breakpoint"), l = Ee("container"), c = Ee("spacing"), u = Ee("radius"), d = Ee("shadow"), h = Ee("inset-shadow"), f = Ee("text-shadow"), m = Ee("drop-shadow"), p = Ee("blur"), b = Ee("perspective"), x = Ee("aspect"), y = Ee("ease"), N = Ee("animate"), k = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], P = () => [
6107
6107
  "center",
6108
6108
  "top",
6109
6109
  "bottom",
@@ -6121,9 +6121,9 @@ 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
- ], j = () => [...P(), K, X], C = () => ["auto", "hidden", "clip", "visible", "scroll"], S = () => ["auto", "contain", "none"], v = () => [K, X, c], I = () => [at, "full", "auto", ...v()], F = () => [lt, "none", "subgrid", K, X], B = () => ["auto", {
6124
+ ], j = () => [...P(), K, X], E = () => ["auto", "hidden", "clip", "visible", "scroll"], S = () => ["auto", "contain", "none"], v = () => [K, X, c], I = () => [at, "full", "auto", ...v()], F = () => [lt, "none", "subgrid", K, X], B = () => ["auto", {
6125
6125
  span: ["full", lt, K, X]
6126
- }, lt, K, X], Z = () => [lt, "auto", K, X], D = () => ["auto", "min", "max", "fr", K, X], te = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], H = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], Q = () => ["auto", ...v()], R = () => [at, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...v()], E = () => [at, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...v()], _ = () => [at, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...v()], M = () => [e, K, X], T = () => [...P(), ta, ea, {
6126
+ }, lt, K, X], Z = () => [lt, "auto", K, X], D = () => ["auto", "min", "max", "fr", K, X], te = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], H = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], Q = () => ["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()], M = () => [e, K, X], T = () => [...P(), ta, ea, {
6127
6127
  position: [K, X]
6128
6128
  }], A = () => ["no-repeat", {
6129
6129
  repeat: ["", "x", "y", "space", "round"]
@@ -6144,7 +6144,7 @@ const Ap = (e, t) => {
6144
6144
  p,
6145
6145
  K,
6146
6146
  X
6147
- ], fe = () => ["none", ce, K, X], ye = () => ["none", ce, K, X], Ae = () => [ce, K, X], _e = () => [at, "full", ...v()];
6147
+ ], fe = () => ["none", ce, K, X], xe = () => ["none", ce, K, X], Ae = () => [ce, K, X], _e = () => [at, "full", ...v()];
6148
6148
  return {
6149
6149
  cacheSize: 500,
6150
6150
  theme: {
@@ -6177,7 +6177,7 @@ const Ap = (e, t) => {
6177
6177
  * @see https://tailwindcss.com/docs/aspect-ratio
6178
6178
  */
6179
6179
  aspect: [{
6180
- aspect: ["auto", "square", at, X, K, y]
6180
+ aspect: ["auto", "square", at, X, K, x]
6181
6181
  }],
6182
6182
  /**
6183
6183
  * Container
@@ -6275,21 +6275,21 @@ const Ap = (e, t) => {
6275
6275
  * @see https://tailwindcss.com/docs/overflow
6276
6276
  */
6277
6277
  overflow: [{
6278
- overflow: C()
6278
+ overflow: E()
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": C()
6285
+ "overflow-x": E()
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": C()
6292
+ "overflow-y": E()
6293
6293
  }],
6294
6294
  /**
6295
6295
  * Overscroll Behavior
@@ -6829,21 +6829,21 @@ const Ap = (e, t) => {
6829
6829
  * @see https://tailwindcss.com/docs/width
6830
6830
  */
6831
6831
  "inline-size": [{
6832
- inline: ["auto", ...E()]
6832
+ inline: ["auto", ...C()]
6833
6833
  }],
6834
6834
  /**
6835
6835
  * Min-Inline Size
6836
6836
  * @see https://tailwindcss.com/docs/min-width
6837
6837
  */
6838
6838
  "min-inline-size": [{
6839
- "min-inline": ["auto", ...E()]
6839
+ "min-inline": ["auto", ...C()]
6840
6840
  }],
6841
6841
  /**
6842
6842
  * Max-Inline Size
6843
6843
  * @see https://tailwindcss.com/docs/max-width
6844
6844
  */
6845
6845
  "max-inline-size": [{
6846
- "max-inline": ["none", ...E()]
6846
+ "max-inline": ["none", ...C()]
6847
6847
  }],
6848
6848
  /**
6849
6849
  * Block Size
@@ -6950,7 +6950,7 @@ const Ap = (e, t) => {
6950
6950
  * @see https://tailwindcss.com/docs/font-weight
6951
6951
  */
6952
6952
  "font-weight": [{
6953
- font: [s, xg, hg]
6953
+ font: [s, yg, hg]
6954
6954
  }],
6955
6955
  /**
6956
6956
  * Font Stretch
@@ -8177,7 +8177,7 @@ const Ap = (e, t) => {
8177
8177
  * @see https://tailwindcss.com/docs/transition-timing-function
8178
8178
  */
8179
8179
  ease: [{
8180
- ease: ["linear", "initial", x, K, X]
8180
+ ease: ["linear", "initial", y, K, X]
8181
8181
  }],
8182
8182
  /**
8183
8183
  * Transition Delay
@@ -8250,28 +8250,28 @@ const Ap = (e, t) => {
8250
8250
  * @see https://tailwindcss.com/docs/scale
8251
8251
  */
8252
8252
  scale: [{
8253
- scale: ye()
8253
+ scale: xe()
8254
8254
  }],
8255
8255
  /**
8256
8256
  * Scale X
8257
8257
  * @see https://tailwindcss.com/docs/scale
8258
8258
  */
8259
8259
  "scale-x": [{
8260
- "scale-x": ye()
8260
+ "scale-x": xe()
8261
8261
  }],
8262
8262
  /**
8263
8263
  * Scale Y
8264
8264
  * @see https://tailwindcss.com/docs/scale
8265
8265
  */
8266
8266
  "scale-y": [{
8267
- "scale-y": ye()
8267
+ "scale-y": xe()
8268
8268
  }],
8269
8269
  /**
8270
8270
  * Scale Z
8271
8271
  * @see https://tailwindcss.com/docs/scale
8272
8272
  */
8273
8273
  "scale-z": [{
8274
- "scale-z": ye()
8274
+ "scale-z": xe()
8275
8275
  }],
8276
8276
  /**
8277
8277
  * Scale 3D
@@ -8735,7 +8735,7 @@ const Ap = (e, t) => {
8735
8735
  function _n(...e) {
8736
8736
  return wg(kc(e));
8737
8737
  }
8738
- const Rx = /* @__PURE__ */ new Map([
8738
+ const Ry = /* @__PURE__ */ new Map([
8739
8739
  ["fragata-f110", "F110"],
8740
8740
  ["submarino-s80", "S80"],
8741
8741
  ["portaaeronaves-lhd", "L61"],
@@ -8765,7 +8765,7 @@ const Rx = /* @__PURE__ */ new Map([
8765
8765
  function Sg(e) {
8766
8766
  return e === "/" ? "global" : e.slice(1).replace(/\//g, "-");
8767
8767
  }
8768
- function Ax(e) {
8768
+ function Ay(e) {
8769
8769
  return e === "/" ? "general.mp4" : `${e.substring(1)}.mp4`;
8770
8770
  }
8771
8771
  const vn = {
@@ -8784,8 +8784,8 @@ const vn = {
8784
8784
  isConnected: !1,
8785
8785
  reconnect: () => {
8786
8786
  }
8787
- }), Lx = ({ children: e }) => {
8788
- const t = we(null), n = tt(), { setLastEvent: s } = Jt(), i = we(null), [r, o] = O(!1), l = Me().wsRoom, c = Me().wsUrl, u = dn(() => {
8787
+ }), Ly = ({ children: e }) => {
8788
+ const t = we(null), n = tt(), { setLastEvent: s } = Jt(), i = we(null), [r, o] = O(!1), l = ke().wsRoom, c = ke().wsUrl, u = dn(() => {
8789
8789
  t.current = new WebSocket(c), t.current.onopen = () => {
8790
8790
  console.log("✅ WS conectado"), t.current?.send(JSON.stringify({ type: "join", room: l })), o(!0), i.current = window.setInterval(() => {
8791
8791
  t.current?.readyState === WebSocket.OPEN && (t.current?.send(JSON.stringify({ type: "ping" })), console.log("📤 PING enviado"));
@@ -8812,11 +8812,11 @@ const vn = {
8812
8812
  u();
8813
8813
  };
8814
8814
  return /* @__PURE__ */ a.jsx($c.Provider, { value: { sendMessage: d, isConnected: r, reconnect: h }, children: e });
8815
- }, En = () => be($c);
8815
+ }, Cn = () => be($c);
8816
8816
  function kg() {
8817
8817
  const e = Tc();
8818
8818
  if (!e) return null;
8819
- const { isMinimized: t, toggleMinimized: n, setMinimized: s } = e, { sendMessage: i } = En(), { lastEvent: r } = Jt(), o = Me().wsRoom;
8819
+ const { isMinimized: t, toggleMinimized: n, setMinimized: s } = e, { sendMessage: i } = Cn(), { lastEvent: r } = Jt(), o = ke().wsRoom;
8820
8820
  return ie(() => {
8821
8821
  r?.payload?.type === "browser" && r?.payload?.status === "visible" && s(!1);
8822
8822
  }, [r]), /* @__PURE__ */ a.jsx(
@@ -8859,7 +8859,7 @@ function kg() {
8859
8859
  }
8860
8860
  );
8861
8861
  }
8862
- const Cg = ({ label: e, onClick: t }) => /* @__PURE__ */ a.jsxs(
8862
+ const Eg = ({ label: e, onClick: t }) => /* @__PURE__ */ a.jsxs(
8863
8863
  w.button,
8864
8864
  {
8865
8865
  onClick: t,
@@ -8884,15 +8884,15 @@ const Cg = ({ label: e, onClick: t }) => /* @__PURE__ */ a.jsxs(
8884
8884
  /* @__PURE__ */ a.jsx("ellipse", { cx: "12", cy: "12", rx: "8", ry: "4", stroke: "currentColor", strokeWidth: "0.5", fill: "none", opacity: "0.4" }),
8885
8885
  /* @__PURE__ */ a.jsx("ellipse", { cx: "12", cy: "12", rx: "8", ry: "4", stroke: "currentColor", strokeWidth: "0.5", fill: "none", opacity: "0.4", transform: "rotate(60 12 12)" }),
8886
8886
  /* @__PURE__ */ a.jsx("ellipse", { cx: "12", cy: "12", rx: "8", ry: "4", stroke: "currentColor", strokeWidth: "0.5", fill: "none", opacity: "0.4", transform: "rotate(120 12 12)" }),
8887
- /* @__PURE__ */ a.jsx(w.circle, { cx: "20", cy: "12", r: "1.5", fill: "currentColor", animate: { cx: [20, 12, 4, 12, 20], cy: [12, 16, 12, 8, 12] }, transition: { duration: 3, repeat: 1 / 0, ease: "linear" } }),
8888
- /* @__PURE__ */ a.jsx(w.circle, { cx: "12", cy: "8", r: "1.5", fill: "currentColor", animate: { cx: [12, 16.93, 7.07, 12], cy: [8, 14, 14, 8] }, transition: { duration: 3, repeat: 1 / 0, ease: "linear", delay: 1 } }),
8889
- /* @__PURE__ */ a.jsx(w.circle, { cx: "7.07", cy: "14", r: "1.5", fill: "currentColor", animate: { cx: [7.07, 12, 16.93, 7.07], cy: [14, 8, 14, 14] }, transition: { duration: 3, repeat: 1 / 0, ease: "linear", delay: 2 } })
8887
+ /* @__PURE__ */ a.jsx(w.circle, { cx: "20", cy: "12", r: "1.5", fill: "currentColor", initial: { cx: 20, cy: 12 }, animate: { cx: [20, 12, 4, 12, 20], cy: [12, 16, 12, 8, 12] }, transition: { duration: 3, repeat: 1 / 0, ease: "linear" } }),
8888
+ /* @__PURE__ */ a.jsx(w.circle, { cx: "12", cy: "8", r: "1.5", fill: "currentColor", initial: { cx: 12, cy: 8 }, animate: { cx: [12, 16.93, 7.07, 12], cy: [8, 14, 14, 8] }, transition: { duration: 3, repeat: 1 / 0, ease: "linear", delay: 1 } }),
8889
+ /* @__PURE__ */ a.jsx(w.circle, { cx: "7.07", cy: "14", r: "1.5", fill: "currentColor", initial: { cx: 7.07, cy: 14 }, animate: { cx: [7.07, 12, 16.93, 7.07], cy: [14, 8, 14, 14] }, transition: { duration: 3, repeat: 1 / 0, ease: "linear", delay: 2 } })
8890
8890
  ]
8891
8891
  }
8892
8892
  ) })
8893
8893
  ]
8894
8894
  }
8895
- ), Eg = ({ onClick: e }) => /* @__PURE__ */ a.jsxs(
8895
+ ), Cg = ({ onClick: e }) => /* @__PURE__ */ a.jsxs(
8896
8896
  w.button,
8897
8897
  {
8898
8898
  onClick: e,
@@ -9098,7 +9098,7 @@ const Cg = ({ label: e, onClick: t }) => /* @__PURE__ */ a.jsxs(
9098
9098
  }
9099
9099
  );
9100
9100
  function Yt({ src: e, transparent: t = !1, onClose: n }) {
9101
- const { t: s } = Xt(), { sendMessage: i } = En(), { lastEvent: r } = Jt(), o = Me().wsRoom;
9101
+ const { t: s } = Xt(), { sendMessage: i } = Cn(), { lastEvent: r } = Jt(), o = ke().wsRoom;
9102
9102
  return ie(() => {
9103
9103
  const l = setTimeout(() => {
9104
9104
  i({
@@ -9114,7 +9114,7 @@ function Yt({ src: e, transparent: t = !1, onClose: n }) {
9114
9114
  w.div,
9115
9115
  {
9116
9116
  className: kc(
9117
- "fixed inset-0 z-12000",
9117
+ "absolute inset-0 z-12000",
9118
9118
  !t && "bg-black/95"
9119
9119
  ),
9120
9120
  initial: { y: "100%" },
@@ -9129,7 +9129,7 @@ function Yt({ src: e, transparent: t = !1, onClose: n }) {
9129
9129
  w.button,
9130
9130
  {
9131
9131
  onClick: n,
9132
- className: "fixed top-8 left-1/2 -translate-x-1/2 z-60 px-6 py-3 bg-slate-800/90 hover:bg-slate-700/90 text-cyan-300 rounded-full transition-all duration-300 border-2 border-cyan-400/50 hover:border-cyan-400/80 shadow-lg hover:shadow-cyan-500/50 font-medium flex items-center gap-2",
9132
+ className: "absolute top-8 left-1/2 -translate-x-1/2 z-60 px-6 py-3 bg-slate-800/90 hover:bg-slate-700/90 text-cyan-300 rounded-full transition-all duration-300 border-2! border-cyan-400/50! hover:border-cyan-400/80! shadow-lg hover:shadow-cyan-500/50 font-medium flex items-center gap-2",
9133
9133
  initial: { opacity: 0, y: -20 },
9134
9134
  animate: { opacity: 1, y: 0 },
9135
9135
  exit: { opacity: 0, y: -20 },
@@ -9180,60 +9180,60 @@ function zc({ onClose: e, cards: t }) {
9180
9180
  const [n, s] = O(!1), [i, r] = O(!1), [o, l] = O(""), [c, u] = O(0), [d, h] = O(!1), { isMobile: f, isTablet: m } = Bc();
9181
9181
  let p = 4, b = 2;
9182
9182
  f ? (p = 1, b = 1) : m && (p = 2, b = 1);
9183
- const y = () => {
9183
+ const x = () => {
9184
9184
  s(!0), setTimeout(() => {
9185
9185
  e(), s(!1);
9186
9186
  }, 600);
9187
- }, x = (C) => {
9188
- C.webUrl?.trim() && (r(!0), l(C.webUrl.replace("https://www.navantia.es", Me().remoteUrl) + "?lightbox"));
9187
+ }, y = (E) => {
9188
+ E.webUrl?.trim() && (r(!0), l(E.webUrl.replace("https://www.navantia.es", ke().remoteUrl) + "?lightbox"));
9189
9189
  }, N = () => {
9190
9190
  r(!1);
9191
9191
  }, k = () => {
9192
9192
  if (d) return;
9193
9193
  h(!0);
9194
- const C = P.length;
9195
- if (C <= b) {
9194
+ const E = P.length;
9195
+ if (E <= b) {
9196
9196
  h(!1);
9197
9197
  return;
9198
9198
  }
9199
- u((S) => (S + 1) % C), setTimeout(() => h(!1), 1e3);
9199
+ u((S) => (S + 1) % E), setTimeout(() => h(!1), 1e3);
9200
9200
  }, P = [];
9201
- for (let C = 0; C < t.length; C += p)
9202
- P.push(t.slice(C, C + p));
9201
+ for (let E = 0; E < t.length; E += p)
9202
+ P.push(t.slice(E, E + p));
9203
9203
  const j = () => {
9204
- const C = P.length;
9205
- if (C <= b)
9204
+ const E = P.length;
9205
+ if (E <= b)
9206
9206
  return P;
9207
9207
  const S = [];
9208
9208
  for (let v = 0; v < b; v++) {
9209
- const I = (c + v) % C;
9209
+ const I = (c + v) % E;
9210
9210
  S.push(P[I]);
9211
9211
  }
9212
9212
  return S;
9213
9213
  };
9214
9214
  return ie(() => {
9215
- const C = (S) => {
9215
+ const E = (S) => {
9216
9216
  S.key === "Escape" && e();
9217
9217
  };
9218
- return window.addEventListener("keydown", C), () => {
9219
- window.removeEventListener("keydown", C);
9218
+ return window.addEventListener("keydown", E), () => {
9219
+ window.removeEventListener("keydown", E);
9220
9220
  };
9221
9221
  }, [e]), /* @__PURE__ */ a.jsx(
9222
9222
  w.div,
9223
9223
  {
9224
- className: "fixed inset-0 z-10000 flex items-center justify-center bg-black/80 backdrop-blur-sm p-4",
9224
+ className: "absolute inset-0 z-10000 flex items-center justify-center bg-black/80 backdrop-blur-sm p-4",
9225
9225
  initial: { opacity: 0 },
9226
9226
  animate: { opacity: 1 },
9227
9227
  exit: { opacity: 0 },
9228
- onClick: y,
9228
+ onClick: x,
9229
9229
  children: /* @__PURE__ */ a.jsxs(
9230
9230
  w.div,
9231
9231
  {
9232
- className: "relative w-full max-w-7xl max-h-[90vh] rounded-2xl overflow-hidden",
9232
+ className: "w-full max-w-7xl max-h-[90vh] rounded-2xl overflow-hidden",
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: (C) => C.stopPropagation(),
9236
+ onClick: (E) => E.stopPropagation(),
9237
9237
  children: [
9238
9238
  /* @__PURE__ */ a.jsx(
9239
9239
  w.div,
@@ -9248,11 +9248,11 @@ function zc({ onClose: e, cards: t }) {
9248
9248
  duration: 1,
9249
9249
  ease: [0.34, 1.56, 0.64, 1]
9250
9250
  },
9251
- children: /* @__PURE__ */ a.jsxs("div", { className: "flex flex-col justify-center gap-4 sm:gap-6 min-h-[calc(90vh-8rem)]", children: [
9251
+ children: /* @__PURE__ */ a.jsxs("div", { className: "flex flex-col items-center justify-center gap-4 sm:gap-6 min-h-[calc(90vh-8rem)]", children: [
9252
9252
  /* @__PURE__ */ a.jsx(
9253
9253
  w.button,
9254
9254
  {
9255
- onClick: y,
9255
+ onClick: x,
9256
9256
  className: "flex mt-5 mx-auto z-10 p-2 bg-slate-800/80 hover:bg-slate-700/80 text-cyan-300 rounded-full transition-all duration-300 border-cyan-400/30 hover:border-cyan-400/60 shadow-lg hover:shadow-cyan-500/50 disabled:opacity-30 disabled:cursor-not-allowed bg-[rgba(30,41,59,0)] border px-2 py-2",
9257
9257
  initial: { opacity: 0, scale: 0, rotate: -180 },
9258
9258
  animate: {
@@ -9294,7 +9294,7 @@ function zc({ onClose: e, cards: t }) {
9294
9294
  )
9295
9295
  }
9296
9296
  ),
9297
- /* @__PURE__ */ a.jsx(Ne, { mode: "popLayout", children: j().map((C, S) => /* @__PURE__ */ a.jsx(
9297
+ /* @__PURE__ */ a.jsx(Ne, { mode: "popLayout", children: j().map((E, 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: C.map((v, I) => /* @__PURE__ */ a.jsxs(
9324
+ children: E.map((v, I) => /* @__PURE__ */ a.jsxs(
9325
9325
  w.div,
9326
9326
  {
9327
9327
  className: "relative group cursor-pointer",
@@ -9354,7 +9354,7 @@ function zc({ onClose: e, cards: t }) {
9354
9354
  z: 50,
9355
9355
  transition: { duration: 0.3, ease: "easeOut" }
9356
9356
  },
9357
- onClick: () => x(v),
9357
+ onClick: () => y(v),
9358
9358
  children: [
9359
9359
  /* @__PURE__ */ a.jsx(
9360
9360
  w.img,
@@ -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", kt = "prev", Ct = "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", xi = "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", kt = "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 Je(...e) {
9516
9516
  return e.filter(Boolean).join(" ");
9517
9517
  }
@@ -9532,7 +9532,7 @@ function Ht(e, t) {
9532
9532
  return (n = e?.[t]) !== null && n !== void 0 ? n : t;
9533
9533
  }
9534
9534
  function Wg(e, t, n) {
9535
- return Ht(e, "{index} of {total}").replace(/\{index}/g, `${xo(n, t.length) + 1}`).replace(/\{total}/g, `${t.length}`);
9535
+ return Ht(e, "{index} of {total}").replace(/\{index}/g, `${yo(n, t.length) + 1}`).replace(/\{total}/g, `${t.length}`);
9536
9536
  }
9537
9537
  function mo(...e) {
9538
9538
  return () => {
@@ -9584,16 +9584,16 @@ function Yg(e, t) {
9584
9584
  function Ug() {
9585
9585
  return (po() ? window?.devicePixelRatio : void 0) || 1;
9586
9586
  }
9587
- function xo(e, t) {
9587
+ function yo(e, t) {
9588
9588
  return t > 0 ? (e % t + t) % t : 0;
9589
9589
  }
9590
9590
  function nu(e) {
9591
9591
  return e.length > 0;
9592
9592
  }
9593
9593
  function su(e, t) {
9594
- return e[xo(t, e.length)];
9594
+ return e[yo(t, e.length)];
9595
9595
  }
9596
- function yi(e, t) {
9596
+ function xi(e, t) {
9597
9597
  return nu(e) ? su(e, t) : void 0;
9598
9598
  }
9599
9599
  function Hg(e) {
@@ -9669,12 +9669,12 @@ const vi = {
9669
9669
  function bt(e, t) {
9670
9670
  return { name: e, component: t };
9671
9671
  }
9672
- function Pe(e, t) {
9672
+ function Ie(e, t) {
9673
9673
  return { module: e, children: t };
9674
9674
  }
9675
9675
  function iu(e, t, n) {
9676
9676
  return e.module.name === t ? n(e) : e.children ? [
9677
- Pe(e.module, e.children.flatMap((s) => {
9677
+ Ie(e.module, e.children.flatMap((s) => {
9678
9678
  var i;
9679
9679
  return (i = iu(s, t, n)) !== null && i !== void 0 ? i : [];
9680
9680
  }))
@@ -9699,33 +9699,33 @@ function Jg(e, t = [], n = []) {
9699
9699
  return !1;
9700
9700
  }, r = (m, p) => {
9701
9701
  if (m === "") {
9702
- s = [Pe(p, s)];
9702
+ s = [Ie(p, s)];
9703
9703
  return;
9704
9704
  }
9705
- s = At(s, m, (b) => [Pe(p, [b])]);
9705
+ s = At(s, m, (b) => [Ie(p, [b])]);
9706
9706
  }, o = (m, p) => {
9707
- s = At(s, m, (b) => [Pe(b.module, [Pe(p, b.children)])]);
9707
+ s = At(s, m, (b) => [Ie(b.module, [Ie(p, b.children)])]);
9708
9708
  }, l = (m, p, b) => {
9709
- s = At(s, m, (y) => {
9710
- var x;
9709
+ s = At(s, m, (x) => {
9710
+ var y;
9711
9711
  return [
9712
- Pe(y.module, [
9713
- ...b ? [Pe(p)] : [],
9714
- ...(x = y.children) !== null && x !== void 0 ? x : [],
9715
- ...b ? [] : [Pe(p)]
9712
+ Ie(x.module, [
9713
+ ...b ? [Ie(p)] : [],
9714
+ ...(y = x.children) !== null && y !== void 0 ? y : [],
9715
+ ...b ? [] : [Ie(p)]
9716
9716
  ])
9717
9717
  ];
9718
9718
  });
9719
9719
  }, c = (m, p, b) => {
9720
- s = At(s, m, (y) => [
9721
- ...b ? [Pe(p)] : [],
9722
- y,
9723
- ...b ? [] : [Pe(p)]
9720
+ s = At(s, m, (x) => [
9721
+ ...b ? [Ie(p)] : [],
9722
+ x,
9723
+ ...b ? [] : [Ie(p)]
9724
9724
  ]);
9725
9725
  }, u = (m) => {
9726
9726
  o(Yc, m);
9727
9727
  }, d = (m, p) => {
9728
- s = At(s, m, (b) => [Pe(p, b.children)]);
9728
+ s = At(s, m, (b) => [Ie(p, b.children)]);
9729
9729
  }, h = (m) => {
9730
9730
  s = At(s, m, (p) => p.children);
9731
9731
  }, f = (m) => {
@@ -9798,11 +9798,11 @@ const cu = g.createContext(null), We = it("useLightboxProps", "LightboxPropsCont
9798
9798
  function nb({ children: e, ...t }) {
9799
9799
  return g.createElement(cu.Provider, { value: t }, e);
9800
9800
  }
9801
- const uu = g.createContext(null), xt = it("useLightboxState", "LightboxStateContext", uu), du = g.createContext(null), sb = it("useLightboxDispatch", "LightboxDispatchContext", du);
9801
+ const uu = g.createContext(null), yt = it("useLightboxState", "LightboxStateContext", uu), du = g.createContext(null), sb = it("useLightboxDispatch", "LightboxDispatchContext", du);
9802
9802
  function ib(e, t) {
9803
9803
  switch (t.type) {
9804
9804
  case "swipe": {
9805
- const { slides: n } = e, s = t?.increment || 0, i = e.globalIndex + s, r = xo(i, n.length), o = yi(n, r), l = s || t.duration !== void 0 ? {
9805
+ const { slides: n } = e, s = t?.increment || 0, i = e.globalIndex + s, r = yo(i, n.length), o = xi(n, r), l = s || t.duration !== void 0 ? {
9806
9806
  increment: s,
9807
9807
  duration: t.duration,
9808
9808
  easing: t.easing
@@ -9814,7 +9814,7 @@ function ib(e, t) {
9814
9814
  slides: t.slides,
9815
9815
  currentIndex: t.index,
9816
9816
  globalIndex: t.index,
9817
- currentSlide: yi(t.slides, t.index)
9817
+ currentSlide: xi(t.slides, t.index)
9818
9818
  } : e;
9819
9819
  default:
9820
9820
  throw new Error(eu);
@@ -9825,7 +9825,7 @@ function ob({ slides: e, index: t, children: n }) {
9825
9825
  slides: e,
9826
9826
  currentIndex: t,
9827
9827
  globalIndex: t,
9828
- currentSlide: yi(e, t)
9828
+ currentSlide: xi(e, t)
9829
9829
  });
9830
9830
  g.useEffect(() => {
9831
9831
  i({ type: "update", slides: e, index: t });
@@ -9858,9 +9858,9 @@ function rb({ children: e }) {
9858
9858
  }, [t]);
9859
9859
  return g.createElement(hu.Provider, { value: n }, e);
9860
9860
  }
9861
- const yo = g.forwardRef(function({ label: t, className: n, icon: s, renderIcon: i, onClick: r, style: o, ...l }, c) {
9861
+ const xo = g.forwardRef(function({ label: t, className: n, icon: s, renderIcon: i, onClick: r, style: o, ...l }, c) {
9862
9862
  const { styles: u, labels: d } = We(), h = Ht(d, t);
9863
- return g.createElement("button", { ref: c, type: "button", title: h, "aria-label": h, className: Je(de(zg), n), onClick: r, style: { ...o, ...u.button }, ...l }, i ? i() : g.createElement(s, { className: de(xi), style: u.icon }));
9863
+ return g.createElement("button", { ref: c, type: "button", title: h, "aria-label": h, className: Je(de(zg), n), onClick: r, style: { ...o, ...u.button }, ...l }, i ? i() : g.createElement(s, { className: de(yi), style: u.icon }));
9864
9864
  });
9865
9865
  function ab(e, t) {
9866
9866
  const n = (s) => g.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", "aria-hidden": "true", focusable: "false", ...s }, t);
@@ -10017,8 +10017,8 @@ function aa(e, t) {
10017
10017
  }
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
- var d, h, f, m, p, b, y, x;
10021
- const [N, k] = g.useState(Fs), { publish: P } = fs(), { setTimeout: j } = ms(), C = g.useRef(null);
10020
+ var d, h, f, m, p, b, x, y;
10021
+ const [N, k] = g.useState(Fs), { publish: P } = fs(), { setTimeout: j } = ms(), E = g.useRef(null);
10022
10022
  g.useEffect(() => {
10023
10023
  t === 0 && P(Lg(N));
10024
10024
  }, [t, N, P]);
@@ -10030,27 +10030,27 @@ function ss({ slide: e, offset: t, render: n, rect: s, imageFit: i, imageProps:
10030
10030
  }, 0));
10031
10031
  });
10032
10032
  }), v = g.useCallback((A) => {
10033
- C.current = A, A?.complete && S(A);
10033
+ E.current = A, A?.complete && S(A);
10034
10034
  }, [S]), I = g.useCallback((A) => {
10035
10035
  S(A.currentTarget);
10036
10036
  }, [S]), F = he(() => {
10037
10037
  k($s), c?.();
10038
- }), B = bo(e, i), Z = (A, ee) => Number.isFinite(A) ? A : ee, D = Z(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 = C.current) === null || f === void 0 ? void 0 : f.naturalWidth) || 0), te = Z(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 = C.current) === null || b === void 0 ? void 0 : b.naturalHeight) || 0), H = D && te ? {
10038
+ }), B = bo(e, i), Z = (A, ee) => Number.isFinite(A) ? A : ee, D = Z(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 = Z(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), H = D && te ? {
10039
10039
  maxWidth: `min(${D}px, 100%)`,
10040
10040
  maxHeight: `min(${te}px, 100%)`
10041
10041
  } : {
10042
10042
  maxWidth: "100%",
10043
10043
  maxHeight: "100%"
10044
- }, Q = (y = e.srcSet) === null || y === void 0 ? void 0 : y.slice().sort((A, ee) => A.width - ee.width).map((A) => `${A.src} ${A.width}w`).join(", "), R = () => s && !B && e.width && e.height ? s.height / e.height * e.width : Number.MAX_VALUE, E = Q && s && po() ? `${Math.round(Math.min(R(), s.width))}px` : void 0, { style: _, className: M, ...T } = (typeof r == "function" ? r(e) : r) || {};
10044
+ }, Q = (x = e.srcSet) === null || x === void 0 ? void 0 : x.slice().sort((A, ee) => A.width - ee.width).map((A) => `${A.src} ${A.width}w`).join(", "), R = () => s && !B && e.width && e.height ? s.height / e.height * e.width : Number.MAX_VALUE, C = Q && s && po() ? `${Math.round(Math.min(R(), s.width))}px` : void 0, { style: _, className: M, ...T } = (typeof r == "function" ? r(e) : r) || {};
10045
10045
  return g.createElement(
10046
10046
  g.Fragment,
10047
10047
  null,
10048
- g.createElement("img", { ref: v, onLoad: I, onError: F, onClick: o, draggable: !1, className: Je(de(Ws()), B && de(Ws("cover")), N !== Bs && de(Ws("loading")), M), style: { ...H, ...u, ..._ }, ...T, alt: (x = e.alt) !== null && x !== void 0 ? x : "", sizes: E, srcSet: Q, src: e.src }),
10048
+ g.createElement("img", { ref: v, onLoad: I, onError: F, onClick: o, draggable: !1, className: Je(de(Ws()), B && de(Ws("cover")), N !== Bs && de(Ws("loading")), M), style: { ...H, ...u, ..._ }, ...T, alt: (y = e.alt) !== null && y !== void 0 ? y : "", sizes: C, srcSet: Q, src: e.src }),
10049
10049
  N !== Bs && g.createElement(
10050
10050
  "div",
10051
10051
  { className: de(zs(Ag)) },
10052
- N === Fs && (n?.iconLoading ? n.iconLoading() : g.createElement(db, { className: Je(de(xi), de(zs(Fs))) })),
10053
- N === $s && (n?.iconError ? n.iconError() : g.createElement(hb, { className: Je(de(xi), de(zs($s))) }))
10052
+ N === Fs && (n?.iconLoading ? n.iconLoading() : g.createElement(db, { className: Je(de(yi), de(zs(Fs))) })),
10053
+ N === $s && (n?.iconError ? n.iconError() : g.createElement(hb, { className: Je(de(yi), de(zs($s))) }))
10054
10054
  )
10055
10055
  );
10056
10056
  }
@@ -10075,46 +10075,46 @@ var He;
10075
10075
  e[e.NONE = 0] = "NONE", e[e.SWIPE = 1] = "SWIPE", e[e.PULL = 2] = "PULL";
10076
10076
  })(He || (He = {}));
10077
10077
  const Ys = 30;
10078
- function bb({ disableSwipeNavigation: e, closeOnBackdropClick: t }, n, s, i, r, o, l, c, u, d, h, f, m, p, b, y) {
10079
- const x = g.useRef(0), N = g.useRef([]), k = g.useRef(void 0), P = g.useRef(0), j = g.useRef(He.NONE), C = g.useCallback((D) => {
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), P = g.useRef(0), j = g.useRef(He.NONE), E = g.useCallback((D) => {
10080
10080
  k.current === D.pointerId && (k.current = void 0, j.current = He.NONE);
10081
10081
  const te = N.current;
10082
10082
  te.splice(0, te.length, ...te.filter((H) => H.pointerId !== D.pointerId));
10083
10083
  }, []), S = g.useCallback((D) => {
10084
- C(D), D.persist(), N.current.push(D);
10085
- }, [C]), v = g.useCallback((D) => N.current.find(({ pointerId: te }) => D.pointerId === te), []), I = he((D) => {
10084
+ E(D), D.persist(), N.current.push(D);
10085
+ }, [E]), v = g.useCallback((D) => N.current.find(({ pointerId: te }) => D.pointerId === te), []), I = he((D) => {
10086
10086
  S(D);
10087
10087
  }), F = (D, te) => h && D > te || d && D < -te, B = he((D) => {
10088
10088
  const te = v(D);
10089
10089
  if (te)
10090
10090
  if (k.current === D.pointerId) {
10091
- const H = Date.now() - P.current, Q = x.current;
10092
- j.current === He.SWIPE ? Math.abs(Q) > 0.3 * i || Math.abs(Q) > 5 && H < r ? c(Q, H) : u(Q) : j.current === He.PULL && (F(Q, 2 * Ys) ? p(Q, H) : b(Q)), x.current = 0, j.current = He.NONE;
10091
+ const H = Date.now() - P.current, Q = y.current;
10092
+ j.current === He.SWIPE ? Math.abs(Q) > 0.3 * i || Math.abs(Q) > 5 && H < r ? c(Q, H) : u(Q) : j.current === He.PULL && (F(Q, 2 * Ys) ? p(Q, H) : b(Q)), y.current = 0, j.current = He.NONE;
10093
10093
  } else {
10094
10094
  const { target: H } = D;
10095
- t && H instanceof HTMLElement && H === te.target && (H.classList.contains(de(co)) || H.classList.contains(de(Xc))) && y();
10095
+ t && H instanceof HTMLElement && H === te.target && (H.classList.contains(de(co)) || H.classList.contains(de(Xc))) && x();
10096
10096
  }
10097
- C(D);
10097
+ E(D);
10098
10098
  }), Z = he((D) => {
10099
10099
  const te = v(D);
10100
10100
  if (te) {
10101
10101
  const H = k.current === D.pointerId;
10102
10102
  if (D.buttons === 0) {
10103
- H && x.current !== 0 ? B(D) : C(te);
10103
+ H && y.current !== 0 ? B(D) : E(te);
10104
10104
  return;
10105
10105
  }
10106
10106
  const Q = D.clientX - te.clientX, R = D.clientY - te.clientY;
10107
10107
  if (k.current === void 0) {
10108
- const E = (_) => {
10108
+ const C = (_) => {
10109
10109
  S(D), k.current = D.pointerId, P.current = Date.now(), j.current = _;
10110
10110
  };
10111
- Math.abs(Q) > Math.abs(R) && Math.abs(Q) > Ys && s(Q) ? e || (E(He.SWIPE), o()) : Math.abs(R) > Math.abs(Q) && F(R, Ys) && (E(He.PULL), f());
10112
- } else H && (j.current === He.SWIPE ? (x.current = Q, l(Q)) : j.current === He.PULL && (x.current = R, m(R)));
10111
+ Math.abs(Q) > Math.abs(R) && Math.abs(Q) > Ys && s(Q) ? e || (C(He.SWIPE), o()) : Math.abs(R) > Math.abs(Q) && F(R, Ys) && (C(He.PULL), f());
10112
+ } else H && (j.current === He.SWIPE ? (y.current = Q, l(Q)) : j.current === He.PULL && (y.current = R, m(R)));
10113
10113
  }
10114
10114
  });
10115
10115
  mu(n, I, Z, B);
10116
10116
  }
10117
- function xb({ preventDefaultWheelX: e, preventDefaultWheelY: t }) {
10117
+ function yb({ preventDefaultWheelX: e, preventDefaultWheelY: t }) {
10118
10118
  const n = g.useRef(null), s = he((i) => {
10119
10119
  const r = Math.abs(i.deltaX) > Math.abs(i.deltaY);
10120
10120
  (r && e || !r && t || i.ctrlKey) && i.preventDefault();
@@ -10124,22 +10124,22 @@ function xb({ preventDefaultWheelX: e, preventDefaultWheelY: t }) {
10124
10124
  i ? i.addEventListener("wheel", s, { passive: !1 }) : (r = n.current) === null || r === void 0 || r.removeEventListener("wheel", s), n.current = i;
10125
10125
  }, [s]);
10126
10126
  }
10127
- function yb(e, t, n, s, i, r, o, l, c) {
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: y, clearTimeout: x } = ms(), N = g.useCallback(() => {
10129
- h.current && (x(h.current), h.current = void 0);
10130
- }, [x]), k = g.useCallback(() => {
10131
- f.current && (x(f.current), f.current = void 0);
10132
- }, [x]), P = he(() => {
10127
+ function xb(e, t, n, s, i, r, o, l, c) {
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
+ h.current && (y(h.current), h.current = void 0);
10130
+ }, [y]), k = g.useCallback(() => {
10131
+ f.current && (y(f.current), f.current = void 0);
10132
+ }, [y]), P = he(() => {
10133
10133
  e !== Re.SWIPE && (u.current = 0, b.current = 0, N(), k());
10134
10134
  });
10135
10135
  g.useEffect(P, [e, P]);
10136
10136
  const j = he((S) => {
10137
10137
  f.current = void 0, u.current === S && c(u.current);
10138
- }), C = he((S) => {
10138
+ }), E = he((S) => {
10139
10139
  if (S.ctrlKey || Math.abs(S.deltaY) > Math.abs(S.deltaX))
10140
10140
  return;
10141
10141
  const v = (I) => {
10142
- m.current = I, x(p.current), p.current = I > 0 ? y(() => {
10142
+ m.current = I, y(p.current), p.current = I > 0 ? x(() => {
10143
10143
  m.current = 0, p.current = void 0;
10144
10144
  }, 300) : void 0;
10145
10145
  };
@@ -10154,7 +10154,7 @@ function yb(e, t, n, s, i, r, o, l, c) {
10154
10154
  d.current = 0, v(0), b.current = Date.now(), r();
10155
10155
  else {
10156
10156
  const I = d.current;
10157
- h.current = y(() => {
10157
+ h.current = x(() => {
10158
10158
  h.current = void 0, I === d.current && (d.current = 0);
10159
10159
  }, i);
10160
10160
  }
@@ -10164,19 +10164,19 @@ function yb(e, t, n, s, i, r, o, l, c) {
10164
10164
  v(S.deltaX), l(I, Date.now() - b.current);
10165
10165
  return;
10166
10166
  }
10167
- f.current = y(() => j(I), 2 * i);
10167
+ f.current = x(() => j(I), 2 * i);
10168
10168
  } else
10169
10169
  v(S.deltaX);
10170
10170
  });
10171
- g.useEffect(() => t(ho, C), [t, C]);
10171
+ g.useEffect(() => t(ho, E), [t, E]);
10172
10172
  }
10173
10173
  const la = fo("container"), pu = g.createContext(null), ot = it("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 = xt(), y = sb(), [x, N] = g.useState(Re.NONE), k = g.useRef(0), P = g.useRef(0), j = g.useRef(1), { registerSensors: C, subscribeSensors: S } = pb(), { subscribe: v, publish: I } = fs(), F = Xn(), B = Xn(), Z = Xn(), { containerRef: D, setContainerRef: te, containerRect: H } = fu(), Q = wi(xb({ preventDefaultWheelX: h, preventDefaultWheelY: f }), te), R = g.useRef(null), E = wi(R, void 0), { getOwnerDocument: _ } = hs(), M = wo(), T = (Y) => (M ? -1 : 1) * (typeof Y == "number" ? Y : 1), A = he(() => {
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 = yt(), x = sb(), [y, N] = g.useState(Re.NONE), k = g.useRef(0), P = g.useRef(0), j = g.useRef(1), { registerSensors: E, subscribeSensors: S } = pb(), { subscribe: v, publish: I } = fs(), F = Xn(), B = Xn(), Z = Xn(), { containerRef: D, setContainerRef: te, containerRect: H } = fu(), Q = wi(yb({ preventDefaultWheelX: h, preventDefaultWheelY: f }), te), R = g.useRef(null), C = wi(R, void 0), { getOwnerDocument: _ } = hs(), M = wo(), T = (Y) => (M ? -1 : 1) * (typeof Y == "number" ? Y : 1), A = he(() => {
10177
10177
  var Y;
10178
10178
  return (Y = D.current) === null || Y === void 0 ? void 0 : Y.focus();
10179
- }), ee = he(() => t), ne = he(() => b), oe = g.useCallback((Y) => I(kt, Y), [I]), re = g.useCallback((Y) => I(Ct, Y), [I]), ae = g.useCallback(() => I(Ut), [I]), ge = (Y) => !(s.finite && (T(Y) > 0 && b.currentIndex === 0 || T(Y) < 0 && b.currentIndex === b.slides.length - 1)), le = (Y) => {
10179
+ }), ee = he(() => t), ne = he(() => b), oe = g.useCallback((Y) => I(kt, Y), [I]), re = g.useCallback((Y) => I(Et, Y), [I]), ae = g.useCallback(() => I(Ut), [I]), ge = (Y) => !(s.finite && (T(Y) > 0 && b.currentIndex === 0 || T(Y) < 0 && b.currentIndex === b.slides.length - 1)), le = (Y) => {
10180
10180
  var me;
10181
10181
  k.current = Y, (me = D.current) === null || me === void 0 || me.style.setProperty(De("swipe_offset"), `${Math.round(Y)}px`);
10182
10182
  }, z = (Y) => {
@@ -10198,7 +10198,7 @@ function vb({ children: e, ...t }) {
10198
10198
  duration: Y.duration,
10199
10199
  easing: i.easing.fade
10200
10200
  };
10201
- }), ye = (Y, me) => {
10201
+ }), xe = (Y, me) => {
10202
10202
  if (u || d) {
10203
10203
  z(Y);
10204
10204
  let Ce = 0;
@@ -10233,10 +10233,10 @@ function vb({ children: e, ...t }) {
10233
10233
  let W = Re.ANIMATION, V = Oe * U;
10234
10234
  if (!L) {
10235
10235
  const $ = H?.width, J = Y.duration || 0, ue = $ ? Oe / $ * Math.abs($e) : Oe;
10236
- U !== 0 ? (J < ue ? V = V / ue * Math.max(J, ue / 5) : $ && (V = Oe / $ * ($ - Math.abs($e))), L = T($e) > 0 ? kt : Ct) : V = Oe / 2;
10236
+ U !== 0 ? (J < ue ? V = V / ue * Math.max(J, ue / 5) : $ && (V = Oe / $ * ($ - Math.abs($e))), L = T($e) > 0 ? kt : Et) : V = Oe / 2;
10237
10237
  }
10238
10238
  let q = 0;
10239
- L === kt ? ge(T(1)) ? q = -U : (W = Re.NONE, V = Oe) : L === Ct && (ge(T(-1)) ? q = U : (W = Re.NONE, V = Oe)), V = Math.round(V), B(() => {
10239
+ L === kt ? ge(T(1)) ? q = -U : (W = Re.NONE, V = Oe) : L === Et && (ge(T(-1)) ? q = U : (W = Re.NONE, V = Oe)), V = Math.round(V), B(() => {
10240
10240
  le(0), N(Re.NONE);
10241
10241
  }, V), R.current && Ae({
10242
10242
  rect: R.current.getBoundingClientRect(),
@@ -10250,8 +10250,8 @@ function vb({ children: e, ...t }) {
10250
10250
  });
10251
10251
  g.useEffect(() => {
10252
10252
  var Y, me;
10253
- !((Y = b.animation) === null || Y === void 0) && Y.increment && (!((me = b.animation) === null || me === void 0) && me.duration) && F(() => y({ type: "swipe", increment: 0 }), b.animation.duration);
10254
- }, [b.animation, y, F]);
10253
+ !((Y = b.animation) === null || Y === void 0) && Y.increment && (!((me = b.animation) === null || me === void 0) && me.duration) && F(() => x({ type: "swipe", increment: 0 }), b.animation.duration);
10254
+ }, [b.animation, x, F]);
10255
10255
  const en = [
10256
10256
  S,
10257
10257
  ge,
@@ -10266,19 +10266,19 @@ function vb({ children: e, ...t }) {
10266
10266
  d && N(Re.PULL);
10267
10267
  },
10268
10268
  (Y) => z(Y),
10269
- (Y) => ye(Y),
10270
- (Y) => ye(Y, !0)
10269
+ (Y) => xe(Y),
10270
+ (Y) => xe(Y, !0)
10271
10271
  ];
10272
- bb(r, ...en, u, d, ...In, ae), yb(x, ...en);
10272
+ bb(r, ...en, u, d, ...In, ae), xb(y, ...en);
10273
10273
  const tn = he(() => {
10274
10274
  r.focus && _().querySelector(`.${de(ao)} .${de(la())}`) && A();
10275
10275
  });
10276
10276
  g.useEffect(tn, [tn]);
10277
- const yt = he(() => {
10277
+ const xt = he(() => {
10278
10278
  var Y;
10279
10279
  (Y = o.view) === null || Y === void 0 || Y.call(o, { index: b.currentIndex });
10280
10280
  });
10281
- g.useEffect(yt, [b.globalIndex, yt]), g.useEffect(() => mo(v(kt, (Y) => rt({ direction: kt, ...Y })), v(Ct, (Y) => rt({ direction: Ct, ...Y })), v(sa, (Y) => y(Y))), [v, rt, y]);
10281
+ g.useEffect(xt, [b.globalIndex, xt]), g.useEffect(() => mo(v(kt, (Y) => rt({ direction: kt, ...Y })), v(Et, (Y) => rt({ direction: Et, ...Y })), v(sa, (Y) => x(Y))), [v, rt, x]);
10282
10282
  const gs = g.useMemo(() => ({
10283
10283
  prev: oe,
10284
10284
  next: re,
@@ -10288,7 +10288,7 @@ function vb({ children: e, ...t }) {
10288
10288
  containerRect: H || { width: 0, height: 0 },
10289
10289
  subscribeSensors: S,
10290
10290
  containerRef: D,
10291
- setCarouselRef: E,
10291
+ setCarouselRef: C,
10292
10292
  toolbarWidth: m,
10293
10293
  setToolbarWidth: p
10294
10294
  }), [
@@ -10299,7 +10299,7 @@ function vb({ children: e, ...t }) {
10299
10299
  S,
10300
10300
  H,
10301
10301
  D,
10302
- E,
10302
+ C,
10303
10303
  m,
10304
10304
  p,
10305
10305
  s.padding
@@ -10312,14 +10312,14 @@ function vb({ children: e, ...t }) {
10312
10312
  getLightboxProps: ee,
10313
10313
  getLightboxState: ne
10314
10314
  }), [oe, re, ae, A, ee, ne]), g.createElement("div", { ref: Q, className: Je(de(la()), de(lo)), style: {
10315
- ...x === Re.SWIPE ? { [De("swipe_offset")]: `${Math.round(k.current)}px` } : null,
10316
- ...x === Re.PULL ? {
10315
+ ...y === Re.SWIPE ? { [De("swipe_offset")]: `${Math.round(k.current)}px` } : null,
10316
+ ...y === Re.PULL ? {
10317
10317
  [De("pull_offset")]: `${Math.round(P.current)}px`,
10318
10318
  [De("pull_opacity")]: `${j.current}`
10319
10319
  } : null,
10320
10320
  ...r.touchAction !== "none" ? { [De("controller_touch_action")]: r.touchAction } : null,
10321
10321
  ...l.container
10322
- }, tabIndex: -1, ...C }, H && g.createElement(
10322
+ }, tabIndex: -1, ...E }, H && g.createElement(
10323
10323
  pu.Provider,
10324
10324
  { value: gs },
10325
10325
  e,
@@ -10334,18 +10334,18 @@ function ca(e) {
10334
10334
  return Pn(co, e);
10335
10335
  }
10336
10336
  function Tb({ slide: e, offset: t }) {
10337
- const n = g.useRef(null), { currentIndex: s, slides: i } = xt(), { slideRect: r, focus: o } = ot(), { render: l, carousel: { imageFit: c, imageProps: u }, on: { click: d }, styles: { slide: h }, labels: f } = We(), { getOwnerDocument: m } = hs(), p = t !== 0;
10337
+ const n = g.useRef(null), { currentIndex: s, slides: i } = yt(), { slideRect: r, focus: o } = ot(), { render: l, carousel: { imageFit: c, imageProps: u }, on: { click: d }, styles: { slide: h }, labels: f } = We(), { getOwnerDocument: m } = hs(), p = t !== 0;
10338
10338
  g.useEffect(() => {
10339
- var y;
10340
- p && (!((y = n.current) === null || y === void 0) && y.contains(m().activeElement)) && o();
10339
+ var x;
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 y, x, N, k;
10344
- let P = (y = l.slide) === null || y === void 0 ? void 0 : y.call(l, { slide: e, offset: t, rect: r });
10343
+ var x, y, N, k;
10344
+ let P = (x = l.slide) === null || x === void 0 ? void 0 : x.call(l, { slide: e, offset: t, rect: r });
10345
10345
  return !P && Qt(e) && (P = g.createElement(ss, { slide: e, offset: t, render: l, rect: r, imageFit: c, imageProps: u, onClick: p ? void 0 : () => d?.({ index: s }) })), P ? g.createElement(
10346
10346
  g.Fragment,
10347
10347
  null,
10348
- (x = l.slideHeader) === null || x === void 0 ? void 0 : x.call(l, { slide: e }),
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: j }) => j))({ slide: e, children: P }),
10350
10350
  (k = l.slideFooter) === null || k === void 0 ? void 0 : k.call(l, { slide: e })
10351
10351
  ) : null;
@@ -10357,7 +10357,7 @@ function Sb() {
10357
10357
  return g.createElement("div", { className: de(co), style: e });
10358
10358
  }
10359
10359
  function Nb({ carousel: e, labels: t }) {
10360
- const { slides: n, currentIndex: s, globalIndex: i } = xt(), { setCarouselRef: r } = ot(), { autoPlaying: o, focusWithin: l } = ru(), c = ns(e.spacing), u = ns(e.padding), d = Gg(e, n, 1), h = [];
10360
+ const { slides: n, currentIndex: s, globalIndex: i } = yt(), { setCarouselRef: r } = ot(), { autoPlaying: o, focusWithin: l } = ru(), c = ns(e.spacing), u = ns(e.padding), d = Gg(e, n, 1), h = [];
10361
10361
  if (nu(n))
10362
10362
  for (let f = s - d; f <= s + d; f += 1) {
10363
10363
  const m = su(n, f), p = i - s + f, b = e.finite && (f < 0 || f > n.length - 1);
@@ -10377,12 +10377,12 @@ function Nb({ carousel: e, labels: t }) {
10377
10377
  }
10378
10378
  const kb = bt(Wc, Nb);
10379
10379
  function gu() {
10380
- const { carousel: e } = We(), { slides: t, currentIndex: n } = xt(), s = t.length === 0 || e.finite && n === 0, i = t.length === 0 || e.finite && n === t.length - 1;
10380
+ const { carousel: e } = We(), { slides: t, currentIndex: n } = yt(), 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 Cb(e) {
10383
+ function Eb(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(kt), l), u = aa(() => s(Ct), l), d = he((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(kt), l), u = aa(() => s(Et), l), d = he((h) => {
10386
10386
  switch (h.key) {
10387
10387
  case Fg:
10388
10388
  s(Ut);
@@ -10398,18 +10398,18 @@ function Cb(e) {
10398
10398
  g.useEffect(() => e(uo, d), [e, d]);
10399
10399
  }
10400
10400
  function ua({ label: e, icon: t, renderIcon: n, action: s, onClick: i, disabled: r, style: o }) {
10401
- return g.createElement(yo, { label: e, icon: t, renderIcon: n, className: de(`navigation_${s}`), disabled: r, onClick: i, style: o, ...mb(ot().focus, r) });
10401
+ return g.createElement(xo, { label: e, icon: t, renderIcon: n, className: de(`navigation_${s}`), disabled: r, onClick: i, style: o, ...mb(ot().focus, r) });
10402
10402
  }
10403
- function Eb({ render: { buttonPrev: e, buttonNext: t, iconPrev: n, iconNext: s }, styles: i }) {
10403
+ function Cb({ render: { buttonPrev: e, buttonNext: t, iconPrev: n, iconNext: s }, styles: i }) {
10404
10404
  const { prev: r, next: o, subscribeSensors: l } = ot(), { prevDisabled: c, nextDisabled: u } = gu();
10405
- return Cb(l), g.createElement(
10405
+ return Eb(l), g.createElement(
10406
10406
  g.Fragment,
10407
10407
  null,
10408
10408
  e ? e() : g.createElement(ua, { label: "Previous", action: kt, icon: cb, renderIcon: n, style: i.navigationPrev, disabled: c, onClick: r }),
10409
- t ? t() : g.createElement(ua, { label: "Next", action: Ct, 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
- const Pb = bt(jg, Eb), da = de(Og), Ib = de(Hc);
10412
+ const Pb = bt(jg, Cb), da = de(Og), Ib = de(Hc);
10413
10413
  function jb(e) {
10414
10414
  return "style" in e;
10415
10415
  }
@@ -10450,27 +10450,27 @@ function ma(e, t, n) {
10450
10450
  };
10451
10451
  }
10452
10452
  function Ab({ children: e, animation: t, styles: n, className: s, on: i, portal: r, close: o, labels: l }) {
10453
- const [c, u] = g.useState(!1), [d, h] = g.useState(!1), f = g.useRef([]), m = g.useRef(null), { setTimeout: p } = ms(), { subscribe: b } = fs(), x = vo() ? 0 : t.fade;
10453
+ const [c, u] = g.useState(!1), [d, h] = g.useState(!1), f = g.useRef([]), m = g.useRef(null), { setTimeout: p } = ms(), { subscribe: b } = fs(), y = vo() ? 0 : t.fade;
10454
10454
  g.useEffect(() => (u(!0), () => {
10455
10455
  u(!1), h(!1);
10456
10456
  }), []);
10457
10457
  const N = he(() => {
10458
- f.current.forEach((C) => C()), f.current = [];
10458
+ f.current.forEach((E) => E()), f.current = [];
10459
10459
  }), k = he(() => {
10460
- var C;
10461
- h(!1), N(), (C = i.exiting) === null || C === void 0 || C.call(i), p(() => {
10460
+ var E;
10461
+ h(!1), N(), (E = i.exiting) === null || E === void 0 || E.call(i), p(() => {
10462
10462
  var S;
10463
10463
  (S = i.exited) === null || S === void 0 || S.call(i), o();
10464
- }, x);
10464
+ }, y);
10465
10465
  });
10466
10466
  g.useEffect(() => b(Ut, k), [b, k]);
10467
- const P = he((C) => {
10467
+ const P = he((E) => {
10468
10468
  var S, v, I;
10469
- qg(C), h(!0), (S = i.entering) === null || S === void 0 || S.call(i);
10470
- const F = (I = (v = C.parentNode) === null || v === void 0 ? void 0 : v.children) !== null && I !== void 0 ? I : [];
10469
+ qg(E), h(!0), (S = i.entering) === null || S === void 0 || S.call(i);
10470
+ const F = (I = (v = E.parentNode) === null || v === void 0 ? void 0 : v.children) !== null && I !== void 0 ? I : [];
10471
10471
  for (let B = 0; B < F.length; B += 1) {
10472
10472
  const Z = F[B];
10473
- ["TEMPLATE", "SCRIPT", "STYLE"].indexOf(Z.tagName) === -1 && Z !== C && (f.current.push(ma(Z, "inert", "")), f.current.push(ma(Z, "aria-hidden", "true")));
10473
+ ["TEMPLATE", "SCRIPT", "STYLE"].indexOf(Z.tagName) === -1 && Z !== E && (f.current.push(ma(Z, "inert", "")), f.current.push(ma(Z, "aria-hidden", "true")));
10474
10474
  }
10475
10475
  f.current.push(() => {
10476
10476
  var B, Z;
@@ -10478,16 +10478,16 @@ function Ab({ children: e, animation: t, styles: n, className: s, on: i, portal:
10478
10478
  }), p(() => {
10479
10479
  var B;
10480
10480
  (B = i.entered) === null || B === void 0 || B.call(i);
10481
- }, x);
10482
- }), j = g.useCallback((C) => {
10483
- C ? P(C) : N();
10481
+ }, y);
10482
+ }), j = g.useCallback((E) => {
10483
+ E ? P(E) : N();
10484
10484
  }, [P, N]);
10485
10485
  return c ? ka(g.createElement(gb, { ref: j, className: Je(s, de(fa()), de(Hc), d && de(fa("open"))), "aria-modal": !0, role: "dialog", "aria-label": Ht(l, "Lightbox"), style: {
10486
- ...t.fade !== vi.animation.fade ? { [De("fade_animation_duration")]: `${x}ms` } : null,
10486
+ ...t.fade !== vi.animation.fade ? { [De("fade_animation_duration")]: `${y}ms` } : null,
10487
10487
  ...t.easing.fade !== vi.animation.easing.fade ? { [De("fade_animation_timing_function")]: t.easing.fade } : null,
10488
10488
  ...n.root
10489
- }, onFocus: (C) => {
10490
- m.current || (m.current = C.relatedTarget);
10489
+ }, onFocus: (E) => {
10490
+ m.current || (m.current = E.relatedTarget);
10491
10491
  } }, e), r.root || document.body) : null;
10492
10492
  }
10493
10493
  const Lb = bt(ao, Ab);
@@ -10503,7 +10503,7 @@ function _b({ toolbar: { buttons: e }, render: { buttonClose: t, iconClose: n },
10503
10503
  et(() => {
10504
10504
  r(l?.width);
10505
10505
  }, [r, l?.width]);
10506
- const c = () => t ? t() : g.createElement(yo, { key: Ut, label: "Close", icon: lb, renderIcon: n, onClick: i });
10506
+ const c = () => t ? t() : g.createElement(xo, { key: Ut, label: "Close", icon: lb, renderIcon: n, onClick: i });
10507
10507
  return g.createElement("div", { ref: o, style: s.toolbar, className: de(Db()) }, e?.map((u) => u === Ut ? c() : u));
10508
10508
  }
10509
10509
  const Fb = bt(Uc, _b);
@@ -10520,13 +10520,13 @@ 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: y, on: x, slides: N, index: k, plugins: P, ...j } = vi, { config: C, augmentation: S } = Jg([
10524
- Pe(Lb, [
10525
- Pe(Rb, [
10526
- Pe(wb, [
10527
- Pe(kb),
10528
- Pe(Fb),
10529
- Pe(Pb)
10523
+ const { animation: h, carousel: f, render: m, toolbar: p, controller: b, noScroll: x, on: y, slides: N, index: k, plugins: P, ...j } = vi, { config: E, augmentation: S } = Jg([
10524
+ Ie(Lb, [
10525
+ Ie(Rb, [
10526
+ Ie(wb, [
10527
+ Ie(kb),
10528
+ Ie(Fb),
10529
+ Ie(Pb)
10530
10530
  ])
10531
10531
  ])
10532
10532
  ])
@@ -10536,8 +10536,8 @@ function Bb({ carousel: e, animation: t, render: n, toolbar: s, controller: i, n
10536
10536
  render: { ...m, ...n },
10537
10537
  toolbar: { ...p, ...s },
10538
10538
  controller: { ...b, ...i },
10539
- noScroll: { ...y, ...r },
10540
- on: { ...x, ...o },
10539
+ noScroll: { ...x, ...r },
10540
+ on: { ...y, ...o },
10541
10541
  ...j,
10542
10542
  ...d
10543
10543
  });
@@ -10553,7 +10553,7 @@ function Bb({ carousel: e, animation: t, render: n, toolbar: s, controller: i, n
10553
10553
  g.createElement(
10554
10554
  tb,
10555
10555
  null,
10556
- g.createElement(Qg, null, bu(Pe(Ob, C), v))
10556
+ g.createElement(Qg, null, bu(Ie(Ob, E), v))
10557
10557
  )
10558
10558
  )
10559
10559
  )
@@ -10575,7 +10575,7 @@ const zb = {
10575
10575
  function Wb(e) {
10576
10576
  return Math.min(Math.max(e, Number.EPSILON), 1);
10577
10577
  }
10578
- function xu(e) {
10578
+ function yu(e) {
10579
10579
  const { minZoom: t, ...n } = { ...zb, ...e };
10580
10580
  return { minZoom: Wb(t), ...n };
10581
10581
  }
@@ -10612,12 +10612,12 @@ function Ub(e, t) {
10612
10612
  }
10613
10613
  function ps() {
10614
10614
  const { zoom: e } = We();
10615
- return xu(e);
10615
+ return yu(e);
10616
10616
  }
10617
10617
  function Hb(e, t) {
10618
10618
  var n, s;
10619
10619
  let i = { width: 0, height: 0 }, r = { width: 0, height: 0 };
10620
- const { currentSlide: o } = xt(), { imageFit: l } = We().carousel, { maxZoomPixelRatio: c } = ps();
10620
+ const { currentSlide: o } = yt(), { imageFit: l } = We().carousel, { maxZoomPixelRatio: c } = ps();
10621
10621
  if (e && o) {
10622
10622
  const d = { ...o, ...t };
10623
10623
  if (Qt(d)) {
@@ -10647,48 +10647,48 @@ 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 } = xt(), { getOwnerWindow: m } = hs(), { containerRef: p, subscribeSensors: b } = ot(), { keyboardMoveDistance: y, zoomInMultiplier: x, wheelZoomDistanceFactor: N, scrollToZoom: k, doubleTapDelay: P, doubleClickDelay: j, doubleClickMaxStops: C, pinchZoomDistanceFactor: S, pinchZoomV4: v } = ps(), I = g.useCallback((E) => {
10650
+ const u = g.useRef([]), d = g.useRef(0), h = g.useRef(void 0), { globalIndex: f } = yt(), { getOwnerWindow: m } = hs(), { containerRef: p, subscribeSensors: b } = ot(), { keyboardMoveDistance: x, zoomInMultiplier: y, wheelZoomDistanceFactor: N, scrollToZoom: k, doubleTapDelay: P, doubleClickDelay: j, doubleClickMaxStops: E, pinchZoomDistanceFactor: S, pinchZoomV4: v } = ps(), I = g.useCallback((C) => {
10651
10651
  if (p.current) {
10652
- const { pageX: _, pageY: M } = E, { scrollX: T, scrollY: A } = m(), { left: ee, top: ne, width: oe, height: re } = p.current.getBoundingClientRect();
10652
+ const { pageX: _, pageY: M } = C, { scrollX: T, scrollY: A } = m(), { left: ee, top: ne, width: oe, height: re } = p.current.getBoundingClientRect();
10653
10653
  return [_ - ee - T - oe / 2, M - ne - A - re / 2];
10654
10654
  }
10655
10655
  return [];
10656
- }, [p, m]), F = he((E) => {
10657
- const { key: _, metaKey: M, ctrlKey: T } = E, A = M || T, ee = () => {
10658
- E.preventDefault(), E.stopPropagation();
10656
+ }, [p, m]), F = he((C) => {
10657
+ const { key: _, metaKey: M, ctrlKey: T } = C, A = M || T, ee = () => {
10658
+ C.preventDefault(), C.stopPropagation();
10659
10659
  };
10660
10660
  if (e > 1) {
10661
10661
  const ne = (oe, re) => {
10662
10662
  ee(), l(oe, re);
10663
10663
  };
10664
- _ === "ArrowDown" ? ne(0, y) : _ === "ArrowUp" ? ne(0, -y) : _ === "ArrowLeft" ? ne(-y, 0) : _ === "ArrowRight" && ne(y, 0);
10664
+ _ === "ArrowDown" ? ne(0, x) : _ === "ArrowUp" ? ne(0, -x) : _ === "ArrowLeft" ? ne(-x, 0) : _ === "ArrowRight" && ne(x, 0);
10665
10665
  }
10666
10666
  _ === "+" || A && _ === "=" ? (ee(), i()) : _ === "-" || A && _ === "_" ? (ee(), r()) : A && _ === "0" && (ee(), o(1));
10667
- }), B = he((E) => {
10668
- if ((E.ctrlKey || k) && Math.abs(E.deltaY) > Math.abs(E.deltaX)) {
10669
- E.stopPropagation(), o(ga(e, -E.deltaY, N), !0, ...I(E));
10667
+ }), B = he((C) => {
10668
+ if ((C.ctrlKey || k) && Math.abs(C.deltaY) > Math.abs(C.deltaX)) {
10669
+ C.stopPropagation(), o(ga(e, -C.deltaY, N), !0, ...I(C));
10670
10670
  return;
10671
10671
  }
10672
- e > 1 && (E.stopPropagation(), k || l(E.deltaX, E.deltaY));
10673
- }), Z = g.useCallback((E) => {
10672
+ e > 1 && (C.stopPropagation(), k || l(C.deltaX, C.deltaY));
10673
+ }), Z = g.useCallback((C) => {
10674
10674
  const _ = u.current;
10675
- _.splice(0, _.length, ..._.filter((M) => M.pointerId !== E.pointerId));
10676
- }, []), D = g.useCallback((E) => {
10677
- Z(E), E.persist(), u.current.push(E);
10678
- }, [Z]), te = he((E) => {
10675
+ _.splice(0, _.length, ..._.filter((M) => M.pointerId !== C.pointerId));
10676
+ }, []), D = g.useCallback((C) => {
10677
+ Z(C), C.persist(), u.current.push(C);
10678
+ }, [Z]), te = he((C) => {
10679
10679
  var _;
10680
10680
  const M = u.current;
10681
- if (E.pointerType === "mouse" && E.buttons > 1 || !(!((_ = c?.current) === null || _ === void 0) && _.contains(E.target)))
10681
+ if (C.pointerType === "mouse" && C.buttons > 1 || !(!((_ = c?.current) === null || _ === void 0) && _.contains(C.target)))
10682
10682
  return;
10683
- e > 1 && E.stopPropagation();
10684
- const { timeStamp: T } = E;
10685
- if (M.length === 0 && T - d.current < (E.pointerType === "touch" ? P : j)) {
10683
+ e > 1 && C.stopPropagation();
10684
+ const { timeStamp: T } = C;
10685
+ if (M.length === 0 && T - d.current < (C.pointerType === "touch" ? P : j)) {
10686
10686
  d.current = 0;
10687
- const A = e >= 1 ? e !== n ? e * Math.max(n ** (1 / C), x) : 1 : e !== t ? e / Math.max(t ** (-1 / C), x) : 1;
10688
- o(A, !1, ...I(E));
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;
10688
+ o(A, !1, ...I(C));
10689
10689
  } else
10690
10690
  d.current = T;
10691
- if (D(E), M.length === 2) {
10691
+ if (D(C), M.length === 2) {
10692
10692
  const A = pa(M[0], M[1]);
10693
10693
  h.current = {
10694
10694
  previousDistance: A,
@@ -10696,30 +10696,30 @@ function Xb(e, t, n, s, i, r, o, l, c) {
10696
10696
  initialZoom: e
10697
10697
  };
10698
10698
  }
10699
- }), H = he((E) => {
10700
- const _ = u.current, M = _.find((T) => T.pointerId === E.pointerId);
10699
+ }), H = he((C) => {
10700
+ const _ = u.current, M = _.find((T) => T.pointerId === C.pointerId);
10701
10701
  if (_.length === 2 && h.current) {
10702
- E.stopPropagation(), D(E);
10702
+ C.stopPropagation(), D(C);
10703
10703
  const T = pa(_[0], _[1]), A = v ? h.current.initialZoom / h.current.initialDistance * T : ga(e, T - h.current.previousDistance, S);
10704
10704
  o(A, !0, ..._.map((ee) => I(ee)).reduce((ee, ne) => ne.map((oe, re) => ee[re] + oe / 2))), h.current.previousDistance = T;
10705
10705
  return;
10706
10706
  }
10707
- e > 1 && (E.stopPropagation(), M && (_.length === 1 && l((M.clientX - E.clientX) / e, (M.clientY - E.clientY) / e), D(E)));
10708
- }), Q = g.useCallback((E) => {
10707
+ e > 1 && (C.stopPropagation(), M && (_.length === 1 && l((M.clientX - C.clientX) / e, (M.clientY - C.clientY) / e), D(C)));
10708
+ }), Q = g.useCallback((C) => {
10709
10709
  const _ = u.current;
10710
- _.length === 2 && _.find((M) => M.pointerId === E.pointerId) && (h.current = void 0), Z(E);
10710
+ _.length === 2 && _.find((M) => M.pointerId === C.pointerId) && (h.current = void 0), Z(C);
10711
10711
  }, [Z]), R = g.useCallback(() => {
10712
- const E = u.current;
10713
- E.splice(0, E.length), d.current = 0, h.current = void 0;
10712
+ const C = u.current;
10713
+ C.splice(0, C.length), d.current = 0, h.current = void 0;
10714
10714
  }, []);
10715
10715
  mu(b, te, H, Q, s), g.useEffect(R, [f, R]), g.useEffect(() => s ? () => {
10716
10716
  } : mo(R, b(uo, F), b(ho, B)), [s, b, R, F, B]);
10717
10717
  }
10718
10718
  function Gb(e, t, n) {
10719
- const [s, i] = g.useState(1), [r, o] = g.useState(0), [l, c] = g.useState(0), u = Yb(s, r, l, n), { currentSlide: d, globalIndex: h } = xt(), { containerRect: f, slideRect: m } = ot(), { minZoom: p, zoomInMultiplier: b } = ps(), y = d && Qt(d) ? d.src : void 0, x = !y || !n?.current;
10719
+ const [s, i] = g.useState(1), [r, o] = g.useState(0), [l, c] = g.useState(0), u = Yb(s, r, l, n), { currentSlide: d, globalIndex: h } = yt(), { containerRect: f, slideRect: m } = ot(), { minZoom: p, zoomInMultiplier: b } = ps(), x = d && Qt(d) ? d.src : void 0, y = !x || !n?.current;
10720
10720
  et(() => {
10721
10721
  i(1), o(0), c(0);
10722
- }, [h, y]);
10722
+ }, [h, x]);
10723
10723
  const N = g.useCallback((S, v, I) => {
10724
10724
  const F = I || s, B = r - (S || 0), Z = 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(Z), Math.max(te, 0)) * Math.sign(Z));
@@ -10733,20 +10733,20 @@ function Gb(e, t, n) {
10733
10733
  const j = g.useCallback(() => {
10734
10734
  const S = s * b;
10735
10735
  k(s < 1 && S > 1 ? 1 : S);
10736
- }, [s, b, k]), C = g.useCallback(() => {
10736
+ }, [s, b, k]), E = g.useCallback(() => {
10737
10737
  const S = s / b;
10738
10738
  k(s > 1 && S < 1 ? 1 : S);
10739
10739
  }, [s, b, k]);
10740
- return { zoom: s, offsetX: r, offsetY: l, disabled: x, changeOffsets: N, changeZoom: k, zoomIn: j, zoomOut: C };
10740
+ return { zoom: s, offsetX: r, offsetY: l, disabled: y, changeOffsets: N, changeZoom: k, zoomIn: j, zoomOut: E };
10741
10741
  }
10742
- const yu = g.createContext(null), To = it("useZoom", "ZoomControllerContext", yu);
10742
+ const xu = g.createContext(null), To = it("useZoom", "ZoomControllerContext", xu);
10743
10743
  function Kb({ children: e }) {
10744
10744
  const [t, n] = g.useState(), { slideRect: s } = ot(), { ref: i, minZoom: r } = ps(), { imageRect: o, maxZoom: l } = Hb(s, t?.imageDimensions), { zoom: c, offsetX: u, offsetY: d, disabled: h, changeZoom: f, changeOffsets: m, zoomIn: p, zoomOut: b } = Gb(o, l, t?.zoomWrapperRef);
10745
10745
  Ub(c, h), Xb(c, r, l, h, p, b, f, m, t?.zoomWrapperRef);
10746
- const y = g.useMemo(() => ({ zoom: c, minZoom: r, maxZoom: l, offsetX: u, offsetY: d, disabled: h, zoomIn: p, zoomOut: b, changeZoom: f }), [c, r, l, u, d, h, p, b, f]);
10747
- g.useImperativeHandle(i, () => y, [y]);
10748
- const x = g.useMemo(() => ({ ...y, setZoomWrapper: n }), [y, n]);
10749
- return g.createElement(yu.Provider, { value: x }, e);
10746
+ const x = g.useMemo(() => ({ zoom: c, minZoom: r, maxZoom: l, offsetX: u, offsetY: d, disabled: h, zoomIn: p, zoomOut: b, changeZoom: f }), [c, r, l, u, d, h, p, b, f]);
10747
+ g.useImperativeHandle(i, () => x, [x]);
10748
+ const y = g.useMemo(() => ({ ...x, setZoomWrapper: n }), [x, n]);
10749
+ return g.createElement(xu.Provider, { value: y }, e);
10750
10750
  }
10751
10751
  const Zb = Rt("ZoomIn", g.createElement(
10752
10752
  g.Fragment,
@@ -10757,7 +10757,7 @@ const Zb = Rt("ZoomIn", g.createElement(
10757
10757
  const i = g.useRef(!1), r = g.useRef(!1), { zoom: o, minZoom: l, maxZoom: c, zoomIn: u, zoomOut: d, disabled: h } = To(), { render: f } = We(), m = h || (t ? o >= c : o <= l);
10758
10758
  return g.useEffect(() => {
10759
10759
  m && i.current && r.current && n(), m || (i.current = !0);
10760
- }, [m, n]), g.createElement(yo, { ref: s, disabled: m, label: t ? "Zoom in" : "Zoom out", icon: t ? Zb : qb, renderIcon: t ? f.iconZoomIn : f.iconZoomOut, onClick: t ? u : d, onFocus: () => {
10760
+ }, [m, n]), g.createElement(xo, { ref: s, disabled: m, label: t ? "Zoom in" : "Zoom out", icon: t ? Zb : qb, renderIcon: t ? f.iconZoomIn : f.iconZoomOut, onClick: t ? u : d, onFocus: () => {
10761
10761
  r.current = !0;
10762
10762
  }, onBlur: () => {
10763
10763
  r.current = !1;
@@ -10779,11 +10779,11 @@ function Qb() {
10779
10779
  const { render: e } = We(), t = To();
10780
10780
  return e.buttonZoom ? g.createElement(g.Fragment, null, e.buttonZoom(t)) : g.createElement(Jb, null);
10781
10781
  }
10782
- function ex(e) {
10782
+ function ey(e) {
10783
10783
  var t;
10784
10784
  return (((t = e.srcSet) === null || t === void 0 ? void 0 : t.length) || 0) > 0;
10785
10785
  }
10786
- function tx({ current: e, preload: t }, { type: n, source: s }) {
10786
+ function ty({ current: e, preload: t }, { type: n, source: s }) {
10787
10787
  switch (n) {
10788
10788
  case "fetch":
10789
10789
  return e ? { current: e, preload: s } : { current: s };
@@ -10793,14 +10793,14 @@ function tx({ current: e, preload: t }, { type: n, source: s }) {
10793
10793
  throw new Error(eu);
10794
10794
  }
10795
10795
  }
10796
- function nx(e) {
10796
+ function ny(e) {
10797
10797
  var t, n;
10798
- const [{ current: s, preload: i }, r] = g.useReducer(tx, {}), { slide: o, rect: l, imageFit: c, render: u, interactive: d } = e, h = o.srcSet.sort((j, C) => j.width - C.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((j) => j.width)), y = Math.min((p ? Math.max : Math.min)(l.width, f * (l.height / m)), b), x = Ug(), N = he(() => {
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((j, E) => j.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((j) => j.width)), x = Math.min((p ? Math.max : Math.min)(l.width, f * (l.height / m)), b), y = Ug(), N = he(() => {
10799
10799
  var j;
10800
- const C = (j = h.find((S) => S.width >= y * x)) !== null && j !== void 0 ? j : h[h.length - 1];
10801
- (!s || h.findIndex((S) => S.src === s) < h.findIndex((S) => S === C)) && r({ type: "fetch", source: C.src });
10800
+ const E = (j = h.find((S) => S.width >= x * y)) !== null && j !== void 0 ? j : h[h.length - 1];
10801
+ (!s || h.findIndex((S) => S.src === s) < h.findIndex((S) => S === E)) && r({ type: "fetch", source: E.src });
10802
10802
  });
10803
- et(N, [l.width, l.height, x, N]);
10803
+ et(N, [l.width, l.height, y, N]);
10804
10804
  const k = he((j) => r({ type: "done", source: j })), P = {
10805
10805
  WebkitTransform: d ? "initial" : "translateZ(0)"
10806
10806
  };
@@ -10815,13 +10815,13 @@ function nx(e) {
10815
10815
  s && g.createElement(ss, { key: "current", ...e, slide: { ...o, src: s, srcSet: void 0 }, style: P })
10816
10816
  );
10817
10817
  }
10818
- function sx({ render: e, slide: t, offset: n, rect: s }) {
10818
+ function sy({ render: e, slide: t, offset: n, rect: s }) {
10819
10819
  var i;
10820
- const [r, o] = g.useState(), l = g.useRef(null), { zoom: c, maxZoom: u, offsetX: d, offsetY: h, setZoomWrapper: f } = To(), m = c > 1, { carousel: p, on: b } = We(), { currentIndex: y } = xt();
10820
+ const [r, o] = g.useState(), l = g.useRef(null), { zoom: c, maxZoom: u, offsetX: d, offsetY: h, setZoomWrapper: f } = To(), m = c > 1, { carousel: p, on: b } = We(), { currentIndex: x } = yt();
10821
10821
  et(() => n === 0 ? (f({ zoomWrapperRef: l, imageDimensions: r }), () => f(void 0)) : () => {
10822
10822
  }, [n, r, f]);
10823
- let x = (i = e.slide) === null || i === void 0 ? void 0 : i.call(e, { slide: t, offset: n, rect: s, zoom: c, maxZoom: u });
10824
- if (!x && Qt(t)) {
10823
+ let y = (i = e.slide) === null || i === void 0 ? void 0 : i.call(e, { slide: t, offset: n, rect: s, zoom: c, maxZoom: u });
10824
+ if (!y && Qt(t)) {
10825
10825
  const N = {
10826
10826
  slide: t,
10827
10827
  offset: n,
@@ -10831,16 +10831,16 @@ function sx({ render: e, slide: t, offset: n, rect: s }) {
10831
10831
  imageProps: p.imageProps,
10832
10832
  onClick: n === 0 ? () => {
10833
10833
  var k;
10834
- return (k = b.click) === null || k === void 0 ? void 0 : k.call(b, { index: y });
10834
+ return (k = b.click) === null || k === void 0 ? void 0 : k.call(b, { index: x });
10835
10835
  } : void 0
10836
10836
  };
10837
- x = ex(t) ? g.createElement(nx, { ...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: (k) => o({ width: k.naturalWidth, height: k.naturalHeight }), ...N });
10838
10838
  }
10839
- return x ? g.createElement("div", { ref: l, className: Je(de(Vg), de(lo), de(Xc), m && de(Dg)), style: n === 0 ? { transform: `scale(${c}) translateX(${d}px) translateY(${h}px)` } : void 0 }, x) : null;
10839
+ return y ? g.createElement("div", { ref: l, className: Je(de(Vg), de(lo), de(Xc), m && de(Dg)), style: n === 0 ? { transform: `scale(${c}) translateX(${d}px) translateY(${h}px)` } : void 0 }, y) : null;
10840
10840
  }
10841
- const ix = ({ augment: e, addModule: t }) => {
10841
+ const iy = ({ augment: e, addModule: t }) => {
10842
10842
  e(({ zoom: n, toolbar: s, render: i, controller: r, ...o }) => {
10843
- const l = xu(n);
10843
+ const l = yu(n);
10844
10844
  return {
10845
10845
  zoom: l,
10846
10846
  toolbar: Xg(s, na, g.createElement(Qb, null)),
@@ -10848,7 +10848,7 @@ const ix = ({ augment: e, addModule: t }) => {
10848
10848
  ...i,
10849
10849
  slide: (c) => {
10850
10850
  var u;
10851
- return Qt(c.slide) ? g.createElement(sx, { render: i, ...c }) : (u = i.slide) === null || u === void 0 ? void 0 : u.call(i, c);
10851
+ return Qt(c.slide) ? g.createElement(sy, { render: i, ...c }) : (u = i.slide) === null || u === void 0 ? void 0 : u.call(i, c);
10852
10852
  }
10853
10853
  },
10854
10854
  controller: { ...r, preventDefaultWheelY: l.scrollToZoom },
@@ -10856,7 +10856,7 @@ const ix = ({ augment: e, addModule: t }) => {
10856
10856
  };
10857
10857
  }), t(bt(na, Kb));
10858
10858
  };
10859
- function ox({ onClose: e, images: t }) {
10859
+ function oy({ onClose: e, images: t }) {
10860
10860
  return ie(() => {
10861
10861
  const n = (s) => {
10862
10862
  s.key === "Escape" && e();
@@ -10869,7 +10869,7 @@ function ox({ onClose: e, images: t }) {
10869
10869
  {
10870
10870
  open: !0,
10871
10871
  close: e,
10872
- plugins: [ix],
10872
+ plugins: [iy],
10873
10873
  zoom: {
10874
10874
  zoomInMultiplier: 1.2
10875
10875
  },
@@ -10888,7 +10888,7 @@ function vu({ onClose: e, source: t }) {
10888
10888
  }, [e]), /* @__PURE__ */ a.jsxs(
10889
10889
  w.div,
10890
10890
  {
10891
- className: "fixed inset-0 z-[10000] bg-black flex items-center justify-center",
10891
+ className: "absolute inset-0 z-[10000] bg-black flex items-center justify-center",
10892
10892
  initial: { opacity: 0 },
10893
10893
  animate: { opacity: 1 },
10894
10894
  exit: { opacity: 0 },
@@ -10898,7 +10898,7 @@ function vu({ onClose: e, source: t }) {
10898
10898
  w.button,
10899
10899
  {
10900
10900
  onClick: e,
10901
- className: "fixed top-8 left-1/2 -translate-x-1/2 z-[110] px-6 py-3 bg-slate-800/90 hover:bg-slate-700/90 text-cyan-300 rounded-full transition-all duration-300 border-2 border-cyan-400/50 hover:border-cyan-400/80 shadow-lg hover:shadow-cyan-500/50 font-medium flex items-center gap-2",
10901
+ className: "absolute top-8 left-1/2 -translate-x-1/2 z-[110] px-6 py-3 bg-slate-800/90 hover:bg-slate-700/90 text-cyan-300 rounded-full transition-all duration-300 border-2 border-cyan-400/50 hover:border-cyan-400/80 shadow-lg hover:shadow-cyan-500/50 font-medium flex items-center gap-2",
10902
10902
  initial: { opacity: 0, y: -50, scale: 0.8 },
10903
10903
  animate: { opacity: 1, y: 0, scale: 1 },
10904
10904
  exit: { opacity: 0, y: -50, scale: 0.8 },
@@ -10929,13 +10929,13 @@ function vu({ onClose: e, source: t }) {
10929
10929
  }
10930
10930
  );
10931
10931
  }
10932
- const rx = {
10932
+ const ry = {
10933
10933
  type: "spring",
10934
10934
  stiffness: 300,
10935
10935
  damping: 30,
10936
10936
  mass: 1
10937
- }, ax = [0.22, 1, 0.36, 1];
10938
- function xa({
10937
+ }, ay = [0.22, 1, 0.36, 1];
10938
+ function ya({
10939
10939
  card: e,
10940
10940
  isExpanded: t,
10941
10941
  isOtherExpanded: n,
@@ -10946,9 +10946,9 @@ function xa({
10946
10946
  delay: l = 0,
10947
10947
  gridSpan: c = !0
10948
10948
  }) {
10949
- const [u, d] = O(null), h = we(null), [f, m] = O(!1), [p, b] = O(!1), y = (S) => {
10949
+ const [u, d] = O(null), h = we(null), [f, m] = O(!1), [p, b] = O(!1), x = (S) => {
10950
10950
  d(S);
10951
- }, x = () => {
10951
+ }, y = () => {
10952
10952
  d(null);
10953
10953
  }, N = () => {
10954
10954
  u !== null && e.images && d((u - 1 + e.images.length) % e.images.length);
@@ -10979,7 +10979,7 @@ function xa({
10979
10979
  }
10980
10980
  }, [e.images]), n)
10981
10981
  return null;
10982
- const C = () => t && c || e.width === "full" ? "col-span-full" : "";
10982
+ const E = () => 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,
@@ -10994,7 +10994,7 @@ function xa({
10994
10994
  exit: { opacity: 0, y: -8, scale: 0.995, transition: { duration: 0.14, ease: [0.4, 0, 1, 1] } },
10995
10995
  transition: {
10996
10996
  duration: 0.3,
10997
- ease: ax,
10997
+ ease: ay,
10998
10998
  delay: l * 0.03,
10999
10999
  layout: {
11000
11000
  type: "spring",
@@ -11003,7 +11003,7 @@ function xa({
11003
11003
  mass: 0.9
11004
11004
  }
11005
11005
  },
11006
- className: `group relative cursor-pointer ${s ? "h-full" : ""} ${C()}`,
11006
+ className: `group relative cursor-pointer ${s ? "h-full" : ""} ${E()}`,
11007
11007
  onClick: t ? void 0 : i,
11008
11008
  children: /* @__PURE__ */ a.jsxs(
11009
11009
  w.div,
@@ -11015,7 +11015,7 @@ function xa({
11015
11015
  transition-all duration-300 ease-out
11016
11016
  `,
11017
11017
  whileHover: t ? {} : { scale: 1.015, y: -3 },
11018
- transition: rx,
11018
+ transition: ry,
11019
11019
  children: [
11020
11020
  /* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-center mb-5 relative", children: [
11021
11021
  e.tagUrl ? /* @__PURE__ */ a.jsx(
@@ -11123,7 +11123,7 @@ function xa({
11123
11123
  animate: { opacity: 1, scale: 1 },
11124
11124
  transition: { delay: 0.15 + Math.min(v, 6) * 0.05, duration: 0.3 },
11125
11125
  onClick: (I) => {
11126
- I.stopPropagation(), y(v);
11126
+ I.stopPropagation(), x(v);
11127
11127
  },
11128
11128
  whileHover: { scale: 1.05 },
11129
11129
  children: [
@@ -11163,7 +11163,7 @@ function xa({
11163
11163
  animate: { opacity: 1, scale: 1 },
11164
11164
  transition: { delay: 0.15 + v * 0.05, duration: 0.3 },
11165
11165
  onClick: (I) => {
11166
- I.stopPropagation(), y(v);
11166
+ I.stopPropagation(), x(v);
11167
11167
  },
11168
11168
  whileHover: { scale: 1.05 },
11169
11169
  children: [
@@ -11234,18 +11234,18 @@ function xa({
11234
11234
  /* @__PURE__ */ a.jsx(Ne, { children: u !== null && e.images && /* @__PURE__ */ a.jsxs(
11235
11235
  w.div,
11236
11236
  {
11237
- className: "fixed inset-0 z-12000 flex items-center justify-center bg-black",
11237
+ className: "absolute inset-0 z-12000 flex items-center justify-center bg-black",
11238
11238
  initial: { opacity: 0 },
11239
11239
  animate: { opacity: 1 },
11240
11240
  exit: { opacity: 0 },
11241
- onClick: x,
11241
+ onClick: y,
11242
11242
  children: [
11243
11243
  /* @__PURE__ */ a.jsx(
11244
11244
  w.button,
11245
11245
  {
11246
11246
  className: "absolute top-4 right-4 p-2 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",
11247
11247
  onClick: (S) => {
11248
- S.stopPropagation(), x();
11248
+ S.stopPropagation(), y();
11249
11249
  },
11250
11250
  initial: { scale: 0 },
11251
11251
  animate: { scale: 1 },
@@ -11333,15 +11333,15 @@ function xa({
11333
11333
  )
11334
11334
  ] });
11335
11335
  }
11336
- function lx(e) {
11336
+ function ly(e) {
11337
11337
  return e ? Ni[e] || dt : dt;
11338
11338
  }
11339
- function cx(e, t, n, s) {
11339
+ function cy(e, t, n, s) {
11340
11340
  return {
11341
11341
  id: `tab-${n}-card-${s}`,
11342
11342
  title: e.title,
11343
11343
  description: e.subtitle,
11344
- icon: lx(t),
11344
+ icon: ly(t),
11345
11345
  tag: e.tagName || "Info",
11346
11346
  tagColor: e.tagName ? "bg-cyan-500/20 text-cyan-300 border-cyan-400/30" : void 0,
11347
11347
  tagUrl: e.tagUrl,
@@ -11350,10 +11350,10 @@ function cx(e, t, n, s) {
11350
11350
  width: e.width
11351
11351
  };
11352
11352
  }
11353
- function ux(e) {
11353
+ function uy(e) {
11354
11354
  return e.some((n) => n.width === "third") ? "grid-cols-1 md:grid-cols-3" : "grid-cols-1 md:grid-cols-2";
11355
11355
  }
11356
- function dx({ tab: e, tabIndex: t = 0, expandedCardId: n, setExpandedCardId: s }) {
11356
+ function dy({ tab: e, tabIndex: t = 0, expandedCardId: n, setExpandedCardId: s }) {
11357
11357
  const i = (u) => {
11358
11358
  s(n === u ? null : u);
11359
11359
  }, r = () => {
@@ -11370,7 +11370,7 @@ function dx({ tab: e, tabIndex: t = 0, expandedCardId: n, setExpandedCardId: s }
11370
11370
  children: /* @__PURE__ */ a.jsx("div", { className: "text-slate-400 text-lg", children: "No hay contenido disponible para esta vista" })
11371
11371
  }
11372
11372
  );
11373
- const o = e.cards.map((u, d) => cx(u, e.icon, t, d)), l = n ? o.find((u) => u.id === n) : void 0, c = `grid ${ux(e.cards)} gap-4 items-start`;
11373
+ const o = e.cards.map((u, d) => cy(u, e.icon, t, d)), l = n ? o.find((u) => u.id === n) : void 0, c = `grid ${uy(e.cards)} gap-4 items-start`;
11374
11374
  return /* @__PURE__ */ a.jsx(
11375
11375
  w.div,
11376
11376
  {
@@ -11387,7 +11387,7 @@ function dx({ tab: e, tabIndex: t = 0, expandedCardId: n, setExpandedCardId: s }
11387
11387
  exit: { opacity: 0, y: -10, scale: 0.995, transition: { duration: 0.16, ease: [0.4, 0, 1, 1] } },
11388
11388
  transition: { duration: 0.34, ease: [0.22, 1, 0.36, 1] },
11389
11389
  children: /* @__PURE__ */ a.jsx(
11390
- xa,
11390
+ ya,
11391
11391
  {
11392
11392
  card: l,
11393
11393
  delay: 0,
@@ -11411,7 +11411,7 @@ function dx({ tab: e, tabIndex: t = 0, expandedCardId: n, setExpandedCardId: s }
11411
11411
  exit: { opacity: 0, y: -8, scale: 0.998, transition: { duration: 0.14, ease: [0.4, 0, 1, 1] } },
11412
11412
  transition: { duration: 0.26, ease: [0.22, 1, 0.36, 1] },
11413
11413
  children: o.map((u, d) => /* @__PURE__ */ a.jsx(
11414
- xa,
11414
+ ya,
11415
11415
  {
11416
11416
  card: u,
11417
11417
  delay: d,
@@ -11431,14 +11431,14 @@ function dx({ 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), [y, x] = O(!1), [N, k] = O(), [P, j] = O(0.3), [C, S] = O(null), [v, I] = O(null), F = we(null), [B, Z] = O(!1), [D, te] = O(!1), H = 6, Q = Math.max(0, e?.items.length - H), R = 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, k] = O(), [P, j] = O(0.3), [E, S] = O(null), [v, I] = O(null), F = we(null), [B, Z] = O(!1), [D, te] = O(!1), H = 6, Q = Math.max(0, e?.items.length - H), R = e?.items[n]?.cards ?? [];
11435
11435
  ie(() => {
11436
11436
  const z = document.body.style.overflow, fe = document.documentElement.style.overflow;
11437
11437
  return document.body.style.overflow = "hidden", document.documentElement.style.overflow = "hidden", () => {
11438
11438
  document.body.style.overflow = z, document.documentElement.style.overflow = fe;
11439
11439
  };
11440
11440
  }, []);
11441
- const E = () => {
11441
+ const C = () => {
11442
11442
  i > 0 && r((z) => Math.max(0, z - H));
11443
11443
  }, _ = () => {
11444
11444
  i < Q && r((z) => Math.min(Q, z + H));
@@ -11449,14 +11449,14 @@ function wu({ item: e, onClose: t }) {
11449
11449
  }, ne = () => {
11450
11450
  const z = F.current;
11451
11451
  if (!z) return;
11452
- const { scrollLeft: fe, scrollWidth: ye, clientWidth: Ae } = z;
11453
- Z(fe > 0), te(fe < ye - Ae - 10);
11452
+ const { scrollLeft: fe, scrollWidth: xe, clientWidth: Ae } = z;
11453
+ Z(fe > 0), te(fe < xe - Ae - 10);
11454
11454
  }, oe = (z) => {
11455
11455
  const fe = F.current;
11456
11456
  if (!fe) return;
11457
- const ye = 300;
11457
+ const xe = 300;
11458
11458
  fe.scrollBy({
11459
- left: z === "left" ? -ye : ye,
11459
+ left: z === "left" ? -xe : xe,
11460
11460
  behavior: "smooth"
11461
11461
  });
11462
11462
  }, re = e?.items[n]?.tab || [];
@@ -11477,7 +11477,7 @@ function wu({ item: e, onClose: t }) {
11477
11477
  const ae = (z) => z ? Ni[z] || dt : dt, ge = (z) => {
11478
11478
  if (!(z < 0 || z >= re.length))
11479
11479
  return re[z];
11480
- }, le = C != null;
11480
+ }, le = E != null;
11481
11481
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
11482
11482
  /* @__PURE__ */ a.jsxs(
11483
11483
  w.div,
@@ -11541,7 +11541,7 @@ function wu({ item: e, onClose: t }) {
11541
11541
  children: [
11542
11542
  /* @__PURE__ */ a.jsx("div", { className: "w-11 h-11 shrink-0", "aria-hidden": "true" }),
11543
11543
  re.map((z, fe) => {
11544
- const ye = ae(z.icon), Ae = C === fe;
11544
+ const xe = ae(z.icon), Ae = E === fe;
11545
11545
  return /* @__PURE__ */ a.jsxs(
11546
11546
  w.button,
11547
11547
  {
@@ -11552,7 +11552,7 @@ function wu({ item: e, onClose: t }) {
11552
11552
  whileHover: { scale: 1.05 },
11553
11553
  whileTap: { scale: 0.95 },
11554
11554
  children: [
11555
- /* @__PURE__ */ a.jsx(ye, { className: "w-4 h-4" }),
11555
+ /* @__PURE__ */ a.jsx(xe, { className: "w-4 h-4" }),
11556
11556
  z.name,
11557
11557
  Ae && /* @__PURE__ */ a.jsx(
11558
11558
  w.div,
@@ -11571,7 +11571,7 @@ function wu({ item: e, onClose: t }) {
11571
11571
  w.button,
11572
11572
  {
11573
11573
  onClick: () => {
11574
- C !== null && (S(null), I(null));
11574
+ E !== null && (S(null), I(null));
11575
11575
  },
11576
11576
  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",
11577
11577
  initial: !1,
@@ -11652,7 +11652,7 @@ function wu({ item: e, onClose: t }) {
11652
11652
  },
11653
11653
  e.items[n].title
11654
11654
  ),
11655
- /* @__PURE__ */ a.jsx(Ne, { mode: "popLayout", initial: !1, children: C === null && /* @__PURE__ */ a.jsx(
11655
+ /* @__PURE__ */ a.jsx(Ne, { mode: "popLayout", initial: !1, children: E === null && /* @__PURE__ */ a.jsx(
11656
11656
  w.p,
11657
11657
  {
11658
11658
  layout: "position",
@@ -11723,14 +11723,14 @@ function wu({ item: e, onClose: t }) {
11723
11723
  "cards-icon"
11724
11724
  ),
11725
11725
  (e.items[n]?.ppts?.length ?? 0) > 0 && e.items[n].ppts.map((z, fe) => {
11726
- const ye = z.image.map((_e) => `https://atlas-cms.stgo.es${_e.url}`), Ae = {
11726
+ const xe = z.image.map((_e) => `https://atlas-cms.stgo.es${_e.url}`), Ae = {
11727
11727
  icon: z.icon ?? "Presentation",
11728
11728
  text: z.name,
11729
11729
  transparent: !1,
11730
11730
  url: ""
11731
11731
  };
11732
11732
  return /* @__PURE__ */ a.jsx(gi, { item: Ae, onClick: () => {
11733
- k(ye), x(!0);
11733
+ k(xe), y(!0);
11734
11734
  } }, `ppt-${z.name}-${fe}`);
11735
11735
  }),
11736
11736
  /* @__PURE__ */ a.jsxs(
@@ -11764,7 +11764,7 @@ function wu({ item: e, onClose: t }) {
11764
11764
  ]
11765
11765
  }
11766
11766
  ),
11767
- /* @__PURE__ */ a.jsx(Ne, { mode: "popLayout", initial: !1, children: C !== null && typeof C == "number" && /* @__PURE__ */ a.jsx(
11767
+ /* @__PURE__ */ a.jsx(Ne, { mode: "popLayout", initial: !1, children: E !== null && typeof E == "number" && /* @__PURE__ */ a.jsx(
11768
11768
  w.div,
11769
11769
  {
11770
11770
  layout: "position",
@@ -11779,16 +11779,16 @@ function wu({ item: e, onClose: t }) {
11779
11779
  layout: { type: "spring", stiffness: 200, damping: 30 }
11780
11780
  },
11781
11781
  children: /* @__PURE__ */ a.jsx(
11782
- dx,
11782
+ dy,
11783
11783
  {
11784
- tab: ge(C),
11785
- tabIndex: C,
11784
+ tab: ge(E),
11785
+ tabIndex: E,
11786
11786
  expandedCardId: v,
11787
11787
  setExpandedCardId: I
11788
11788
  }
11789
11789
  )
11790
11790
  },
11791
- `tab-${C}-view`
11791
+ `tab-${E}-view`
11792
11792
  ) })
11793
11793
  ]
11794
11794
  }
@@ -11825,7 +11825,7 @@ function wu({ item: e, onClose: t }) {
11825
11825
  /* @__PURE__ */ a.jsx(
11826
11826
  w.button,
11827
11827
  {
11828
- onClick: E,
11828
+ onClick: C,
11829
11829
  disabled: i === 0,
11830
11830
  className: "p-3 bg-slate-800/80 hover:bg-slate-700/80 text-cyan-300 rounded-full transition-all duration-300 border-2 border-cyan-400/30 hover:border-cyan-400/60 shadow-lg hover:shadow-cyan-500/50 disabled:opacity-30 disabled:cursor-not-allowed",
11831
11831
  whileHover: { scale: 1.1, x: -3 },
@@ -11850,14 +11850,14 @@ function wu({ item: e, onClose: t }) {
11850
11850
  mass: 0.8
11851
11851
  },
11852
11852
  children: e.items.map((z, fe) => {
11853
- const ye = n === fe;
11853
+ const xe = n === fe;
11854
11854
  return /* @__PURE__ */ a.jsxs(
11855
11855
  w.div,
11856
11856
  {
11857
11857
  onClick: () => {
11858
11858
  s(fe), S(null), I(null), b(!1), j(0.3);
11859
11859
  },
11860
- className: `relative flex-shrink-0 h-32 cursor-pointer rounded-xl overflow-hidden transition-all duration-300 ${ye ? "shadow-2xl shadow-cyan-500/50" : "shadow-lg hover:shadow-cyan-400/30"}`,
11860
+ className: `relative flex-shrink-0 h-32 cursor-pointer rounded-xl overflow-hidden transition-all duration-300 ${xe ? "shadow-2xl shadow-cyan-500/50" : "shadow-lg hover:shadow-cyan-400/30"}`,
11861
11861
  style: { width: "calc(16.666% - 13.33px)" },
11862
11862
  whileHover: { scale: 1.05, y: -5 },
11863
11863
  whileTap: { scale: 0.98 },
@@ -11875,7 +11875,7 @@ function wu({ item: e, onClose: t }) {
11875
11875
  ),
11876
11876
  /* @__PURE__ */ a.jsx("div", { className: "absolute inset-0 bg-gradient-to-t from-black/90 via-black/30 via-30% to-transparent" }),
11877
11877
  /* @__PURE__ */ a.jsx("div", { className: "absolute bottom-0 left-0 right-0 p-3", children: /* @__PURE__ */ a.jsx("h3", { className: "text-white font-semibold text-sm text-center drop-shadow-lg", children: z.title }) }),
11878
- ye && /* @__PURE__ */ a.jsx(
11878
+ xe && /* @__PURE__ */ a.jsx(
11879
11879
  w.div,
11880
11880
  {
11881
11881
  className: "absolute top-2 right-2 w-8 h-8 bg-cyan-400 rounded-full flex items-center justify-center shadow-lg",
@@ -11885,7 +11885,7 @@ function wu({ item: e, onClose: t }) {
11885
11885
  children: /* @__PURE__ */ a.jsx(Sa, { className: "w-5 h-5 text-slate-900 stroke-[3]" })
11886
11886
  }
11887
11887
  ),
11888
- ye && /* @__PURE__ */ a.jsx(
11888
+ xe && /* @__PURE__ */ a.jsx(
11889
11889
  w.div,
11890
11890
  {
11891
11891
  className: "absolute inset-0 border-4 border-cyan-400 rounded-xl pointer-events-none",
@@ -11932,10 +11932,10 @@ function wu({ item: e, onClose: t }) {
11932
11932
  h(!1), m("");
11933
11933
  } }),
11934
11934
  p && (R?.length ?? 0) > 0 && /* @__PURE__ */ a.jsx(zc, { cards: R, onClose: () => b(!1) }),
11935
- y && /* @__PURE__ */ a.jsx(ox, { images: N, onClose: () => x(!1) })
11935
+ x && /* @__PURE__ */ a.jsx(oy, { images: N, onClose: () => y(!1) })
11936
11936
  ] });
11937
11937
  }
11938
- function hx({
11938
+ function hy({
11939
11939
  showLinkModal: e,
11940
11940
  setShowLinkModal: t,
11941
11941
  modalUrl: n
@@ -11945,13 +11945,13 @@ function hx({
11945
11945
  };
11946
11946
  return /* @__PURE__ */ a.jsx(Ne, { children: e && /* @__PURE__ */ a.jsx(Yt, { onClose: s, src: n }) });
11947
11947
  }
11948
- function fx({ isOpen: e, onClose: t, type: n, itemName: s }) {
11948
+ function fy({ isOpen: e, onClose: t, type: n, itemName: s }) {
11949
11949
  if (!e) return null;
11950
11950
  const i = n === "inner" ? "Esta propuesta de valor todavía no está asociada a una familia o producto tractor" : "Este desarrollo tecnológico todavía no está asociado a una familia o producto tractor";
11951
11951
  return /* @__PURE__ */ a.jsx(
11952
11952
  "div",
11953
11953
  {
11954
- className: "fixed top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 z-50 w-full max-w-md overflow-y-auto rounded-xl",
11954
+ className: "absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 z-50 w-full max-w-md overflow-y-auto rounded-xl",
11955
11955
  style: {
11956
11956
  background: "rgba(13, 25, 48, 0.9)",
11957
11957
  backdropFilter: "blur(10px)",
@@ -12011,7 +12011,7 @@ function fx({ isOpen: e, onClose: t, type: n, itemName: s }) {
12011
12011
  }
12012
12012
  );
12013
12013
  }
12014
- const mx = `
12014
+ const my = `
12015
12015
 
12016
12016
  * {
12017
12017
  font-family: 'Manrope', sans-serif;
@@ -12393,13 +12393,13 @@ const mx = `
12393
12393
  transform: translateY(1px);
12394
12394
  }
12395
12395
  `;
12396
- function px({ hotspot: e, dataEs: t, dataEn: n }) {
12397
- const [s, i] = O(null), [, r] = O([]), [o, l] = O(null), [c, u] = O(null), [, d] = O(
12396
+ function py({ hotspot: e }) {
12397
+ const [t, n] = O(null), [, s] = O([]), [i, r] = O(null), [o, l] = O(null), [, c] = O(
12398
12398
  /* @__PURE__ */ new Set()
12399
- ), h = Me().remoteUrl, [f, m] = O(!1), [p] = O("inner"), [b] = O(""), { i18n: y } = Xt();
12399
+ ), u = ke().remoteUrl, d = ke().hotspots.dataEs, h = ke().hotspots.dataEn, [f, m] = O(!1), [p] = O("inner"), [b] = O(""), { i18n: x } = Xt();
12400
12400
  ie(() => {
12401
12401
  let L;
12402
- if (y.language === "en" ? L = n ?? { globalTags: [], innerRingNodes: [], outerRingNodes: [], products: [], relationships: {} } : L = t ?? { globalTags: [], innerRingNodes: [], outerRingNodes: [], products: [], relationships: {} }, i(L), L.outerRingNodes) {
12402
+ if (x.language === "en" ? L = h ?? { globalTags: [], innerRingNodes: [], outerRingNodes: [], products: [], relationships: {} } : L = d ?? { globalTags: [], innerRingNodes: [], outerRingNodes: [], products: [], relationships: {} }, n(L), L.outerRingNodes) {
12403
12403
  const U = L.outerRingNodes.map((W) => ({
12404
12404
  id: W.id,
12405
12405
  title: W.label,
@@ -12408,10 +12408,10 @@ function px({ hotspot: e, dataEs: t, dataEn: n }) {
12408
12408
  })).sort(
12409
12409
  (W, V) => W.title.localeCompare(V.title)
12410
12410
  );
12411
- r(U);
12411
+ s(U);
12412
12412
  }
12413
12413
  }, []), ie(() => A(e), [e]);
12414
- const [x, N] = O([]), [k, P] = O(0), [j, C] = O(!1), [S, v] = O(""), [I, F] = O(0), [B, Z] = O(0), [D, te] = O(0), H = we(null), Q = we(null), R = {
12414
+ const [y, N] = O([]), [k, P] = O(0), [j, E] = O(!1), [S, v] = O(""), [I, F] = O(0), [B, Z] = O(0), [D, te] = O(0), H = we(null), Q = we(null), R = {
12415
12415
  1: "fragata",
12416
12416
  2: "submarino",
12417
12417
  3: "buque-accion-maritima",
@@ -12424,23 +12424,23 @@ function px({ hotspot: e, dataEs: t, dataEn: n }) {
12424
12424
  10: "pdco",
12425
12425
  11: "pdmd",
12426
12426
  12: "lcm"
12427
- }, E = (L) => {
12428
- if (!s) return [];
12429
- const U = s.expandableNodes?.find((q) => q.parentId === L);
12427
+ }, C = (L) => {
12428
+ if (!t) return [];
12429
+ const U = t.expandableNodes?.find((q) => q.parentId === L);
12430
12430
  if (U) return U.childNodes;
12431
- const W = s.relationships.outerRing_to_expandableNodes?.find(
12431
+ const W = t.relationships.outerRing_to_expandableNodes?.find(
12432
12432
  (q) => q.outerRingId === L
12433
12433
  );
12434
12434
  if (W)
12435
- return s.expandableNodes?.flatMap(
12435
+ return t.expandableNodes?.flatMap(
12436
12436
  (q) => q.childNodes.filter(
12437
12437
  ($) => W.expandableNodeIds.includes($.id)
12438
12438
  )
12439
12439
  ) || [];
12440
- const V = s.relationships.innerRing_to_expandableNodes?.find(
12440
+ const V = t.relationships.innerRing_to_expandableNodes?.find(
12441
12441
  (q) => q.innerRingId === L
12442
12442
  );
12443
- return V ? s.expandableNodes?.flatMap(
12443
+ return V ? t.expandableNodes?.flatMap(
12444
12444
  (q) => q.childNodes.filter(
12445
12445
  ($) => V.expandableNodeIds.includes($.id)
12446
12446
  )
@@ -12448,26 +12448,26 @@ function px({ hotspot: e, dataEs: t, dataEn: n }) {
12448
12448
  };
12449
12449
  ie(() => {
12450
12450
  H.current && Q.current && (Z(H.current.clientWidth), te(Q.current.scrollWidth));
12451
- }, [s?.globalTags, x]);
12451
+ }, [t?.globalTags, y]);
12452
12452
  const _ = () => {
12453
12453
  F((L) => Math.max(L - 200, 0));
12454
12454
  }, M = () => {
12455
12455
  const L = Math.max(0, D - B + 140);
12456
12456
  F((U) => Math.min(U + 300, L));
12457
12457
  }, T = (L) => {
12458
- const U = E(L);
12458
+ const U = C(L);
12459
12459
  U.length > 0 && N((W) => W.map((V) => {
12460
12460
  const q = L === 39 || L === 40 || me(L, V.productId), $ = V.activeElement;
12461
12461
  let J = !1;
12462
12462
  if ($.type === "outer") {
12463
12463
  const ue = $.id;
12464
- J = s?.relationships.outerRing_to_expandableNodes?.find(
12464
+ J = t?.relationships.outerRing_to_expandableNodes?.find(
12465
12465
  (se) => se.outerRingId === ue
12466
12466
  )?.expandableNodeIds.includes(L) || !1;
12467
12467
  }
12468
12468
  if ($.type === "inner") {
12469
12469
  const ue = $.id;
12470
- J = s?.relationships.innerRing_to_expandableNodes?.find(
12470
+ J = t?.relationships.innerRing_to_expandableNodes?.find(
12471
12471
  (se) => se.innerRingId === ue
12472
12472
  )?.expandableNodeIds.includes(L) || !1;
12473
12473
  }
@@ -12492,18 +12492,18 @@ function px({ hotspot: e, dataEs: t, dataEn: n }) {
12492
12492
  if (console.log("handleHotspotClick ", L), L === 12 || L === 13)
12493
12493
  return;
12494
12494
  if (L === 10) {
12495
- v(h + "/es/producto/plataforma-digital/?lightbox=1"), C(!0);
12495
+ v(u + "/es/producto/plataforma-digital/?lightbox=1"), E(!0);
12496
12496
  return;
12497
12497
  } else if (L === 11) {
12498
12498
  v(
12499
- h + "/es/producto/plataforma-digital-en-tierra/?lightbox=1"
12500
- ), C(!0);
12499
+ u + "/es/producto/plataforma-digital-en-tierra/?lightbox=1"
12500
+ ), E(!0);
12501
12501
  return;
12502
12502
  }
12503
12503
  const U = R[L];
12504
12504
  if (!U) return;
12505
- const W = x.some((V) => V.hotspotId === L);
12506
- l(null), u(null), d(/* @__PURE__ */ new Set()), m(!1), rt({ x: 0, y: 0 }), W ? N(
12505
+ const W = y.some((V) => V.hotspotId === L);
12506
+ r(null), l(null), c(/* @__PURE__ */ new Set()), m(!1), rt({ x: 0, y: 0 }), W ? N(
12507
12507
  (V) => V.map((q) => q.hotspotId === L ? {
12508
12508
  ...q,
12509
12509
  activeElement: { type: "product", id: U },
@@ -12547,7 +12547,7 @@ function px({ hotspot: e, dataEs: t, dataEn: n }) {
12547
12547
  }, 300);
12548
12548
  }, 100));
12549
12549
  }, ee = (L, U) => {
12550
- l(null), u(null), d(/* @__PURE__ */ new Set()), N(
12550
+ r(null), l(null), c(/* @__PURE__ */ new Set()), N(
12551
12551
  (W) => W.map((V) => {
12552
12552
  if (V.hotspotId === L) {
12553
12553
  const q = U.type !== "third" && U.type !== "outer";
@@ -12566,78 +12566,78 @@ function px({ hotspot: e, dataEs: t, dataEn: n }) {
12566
12566
  ), P(U.id);
12567
12567
  }, ne = (L) => {
12568
12568
  const U = /* @__PURE__ */ new Set(), W = /* @__PURE__ */ new Set(), V = /* @__PURE__ */ new Set(), q = /* @__PURE__ */ new Set();
12569
- if (!s)
12569
+ if (!t)
12570
12570
  return { relatedProducts: U, relatedInner: W, relatedOuter: V, relatedExpandable: q };
12571
12571
  const { activeElement: $ } = L;
12572
12572
  if ($.type === "product") {
12573
- const J = s.products.find((ue) => ue.id === $.id);
12573
+ const J = t.products.find((ue) => ue.id === $.id);
12574
12574
  J && (J.innerRingIds.forEach((ue) => W.add(ue)), J.outerRingIds.forEach((ue) => V.add(ue)), J.expandableNodeIds && J.expandableNodeIds.forEach((ue) => {
12575
12575
  q.add(ue);
12576
12576
  }), U.add(J.id));
12577
12577
  } else if ($.type === "inner") {
12578
12578
  W.add($.id);
12579
- const J = s.relationships.innerRing_to_innerRing?.find(
12579
+ const J = t.relationships.innerRing_to_innerRing?.find(
12580
12580
  (se) => se.innerRingId === $.id
12581
12581
  );
12582
12582
  J && J.innerRingIds.forEach((se) => W.add(se));
12583
- const ue = s.relationships.innerRing_to_outerRing?.find(
12583
+ const ue = t.relationships.innerRing_to_outerRing?.find(
12584
12584
  (se) => se.innerRingId === $.id
12585
12585
  );
12586
12586
  ue && ue.outerRingIds.forEach((se) => V.add(se));
12587
- const Ee = s.relationships.innerRing_to_expandableNodes?.find(
12587
+ const Pe = t.relationships.innerRing_to_expandableNodes?.find(
12588
12588
  (se) => se.innerRingId === $.id
12589
12589
  );
12590
- Ee && Ee.expandableNodeIds && Ee.expandableNodeIds.forEach((se) => {
12590
+ Pe && Pe.expandableNodeIds && Pe.expandableNodeIds.forEach((se) => {
12591
12591
  q.add(se);
12592
12592
  });
12593
12593
  } else if ($.type === "outer") {
12594
12594
  V.add($.id);
12595
- const J = s.relationships.outerRing_to_outerRing?.find(
12595
+ const J = t.relationships.outerRing_to_outerRing?.find(
12596
12596
  (se) => se.outerRingId === $.id
12597
12597
  );
12598
12598
  J && J.outerRingIds.forEach((se) => V.add(se));
12599
- const ue = s.relationships.outerRing_to_innerRing?.find(
12599
+ const ue = t.relationships.outerRing_to_innerRing?.find(
12600
12600
  (se) => se.outerRingId === $.id
12601
12601
  );
12602
12602
  ue && ue.innerRingIds.forEach((se) => W.add(se));
12603
- const Ee = s.relationships.outerRing_to_expandableNodes?.find(
12603
+ const Pe = t.relationships.outerRing_to_expandableNodes?.find(
12604
12604
  (se) => se.outerRingId === $.id
12605
12605
  );
12606
- Ee && Ee.expandableNodeIds && Ee.expandableNodeIds.forEach((se) => {
12606
+ Pe && Pe.expandableNodeIds && Pe.expandableNodeIds.forEach((se) => {
12607
12607
  q.add(se);
12608
12608
  });
12609
12609
  } else if ($.type === "third") {
12610
12610
  q.add($.id);
12611
- const J = s.relationships.expandableNode_to_innerRing?.find(
12611
+ const J = t.relationships.expandableNode_to_innerRing?.find(
12612
12612
  (se) => se.expandableNodeId === $.id
12613
12613
  );
12614
12614
  J && J.innerRingIds.forEach((se) => W.add(se));
12615
- const ue = s.relationships.expandableNode_to_outerRing?.find(
12615
+ const ue = t.relationships.expandableNode_to_outerRing?.find(
12616
12616
  (se) => se.expandableNodeId === $.id
12617
12617
  );
12618
12618
  ue && ue.outerRingIds.forEach((se) => V.add(se));
12619
- const Ee = s.relationships.expandableNode_to_expandableNodes?.find(
12619
+ const Pe = t.relationships.expandableNode_to_expandableNodes?.find(
12620
12620
  (se) => se.expandableNodeId === $.id
12621
12621
  );
12622
- Ee && Ee.expandableNodeIds.forEach(
12622
+ Pe && Pe.expandableNodeIds.forEach(
12623
12623
  (se) => q.add(se)
12624
12624
  );
12625
12625
  }
12626
12626
  return { relatedProducts: U, relatedInner: W, relatedOuter: V, relatedExpandable: q };
12627
12627
  }, oe = (L, U) => {
12628
12628
  U.stopPropagation();
12629
- const W = L.startsWith("http://") || L.startsWith("https://") ? L : `${h}${L.startsWith("/") ? "" : "/"}${L}`;
12630
- v(W), C(!0);
12629
+ const W = L.startsWith("http://") || L.startsWith("https://") ? L : `${u}${L.startsWith("/") ? "" : "/"}${L}`;
12630
+ v(W), E(!0);
12631
12631
  }, re = we(!1), ae = we(0), ge = (L) => {
12632
12632
  Y((U) => {
12633
12633
  const W = U * L;
12634
12634
  return W < 0.6 || W > 1.3 ? U : W;
12635
12635
  });
12636
12636
  }, le = (L) => {
12637
- if (x.length === 0)
12637
+ if (y.length === 0)
12638
12638
  return;
12639
12639
  const U = document.querySelector(
12640
- "[class^='fixed top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 z-50']"
12640
+ "[class^='absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 z-50']"
12641
12641
  ), W = document.querySelector(".navigation-controls");
12642
12642
  if (U && U.contains(L.target) || W && W.contains(L.target) || re.current)
12643
12643
  return;
@@ -12650,60 +12650,60 @@ function px({ hotspot: e, dataEs: t, dataEn: n }) {
12650
12650
  ie(() => () => {
12651
12651
  ae.current && clearTimeout(ae.current);
12652
12652
  }, []);
12653
- const [z, fe] = O(!1), [ye, Ae] = O({ x: 0, y: 0 }), [_e, rt] = O({ x: 0, y: 0 }), en = (L) => {
12654
- if (x.length === 0)
12653
+ const [z, fe] = O(!1), [xe, Ae] = O({ x: 0, y: 0 }), [_e, rt] = O({ x: 0, y: 0 }), en = (L) => {
12654
+ if (y.length === 0)
12655
12655
  return;
12656
12656
  const U = L.target;
12657
12657
  U.closest(
12658
- "[class^='fixed top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 z-50']"
12658
+ "[class^='absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 z-50']"
12659
12659
  ) || U.closest(".navigation-controls") || U.closest("button") || U.closest(".side-panel") || U.closest(".hotspot-layer") || U.closest("img[alt*='Hotspot']") || (fe(!0), Ae({ x: L.clientX, y: L.clientY }));
12660
12660
  }, In = (L) => {
12661
- if (!z || x.length === 0) return;
12662
- const U = L.clientX - ye.x, W = L.clientY - ye.y, V = _e.x + U, q = _e.y + W, $ = window.innerWidth, J = window.innerHeight, ue = $ / 2, Ee = -$ / 2, se = J / 2, jn = -J / 2, bs = Math.min(
12663
- Math.max(V, Ee),
12661
+ if (!z || y.length === 0) return;
12662
+ const U = L.clientX - xe.x, W = L.clientY - xe.y, V = _e.x + U, q = _e.y + W, $ = window.innerWidth, J = window.innerHeight, ue = $ / 2, Pe = -$ / 2, se = J / 2, jn = -J / 2, bs = Math.min(
12663
+ Math.max(V, Pe),
12664
12664
  ue
12665
- ), xs = Math.min(
12665
+ ), ys = Math.min(
12666
12666
  Math.max(q, jn),
12667
12667
  se
12668
12668
  );
12669
12669
  rt({
12670
12670
  x: bs,
12671
- y: xs
12671
+ y: ys
12672
12672
  }), Ae({ x: L.clientX, y: L.clientY });
12673
12673
  }, tn = () => {
12674
- x.length > 0 && fe(!1);
12674
+ y.length > 0 && fe(!1);
12675
12675
  };
12676
- function yt(L, U) {
12677
- if (!s) return !1;
12678
- const W = x[0]?.activeElement;
12676
+ function xt(L, U) {
12677
+ if (!t) return !1;
12678
+ const W = y[0]?.activeElement;
12679
12679
  if (!W) return !1;
12680
12680
  if (W.type === "inner") {
12681
- const q = W.id, $ = s.relationships.innerRing_to_expandableNodes?.find(
12681
+ const q = W.id, $ = t.relationships.innerRing_to_expandableNodes?.find(
12682
12682
  (J) => J.innerRingId === q
12683
12683
  );
12684
12684
  if ($ && $.expandableNodeIds.includes(L))
12685
12685
  return !0;
12686
12686
  }
12687
12687
  if (W.type === "outer") {
12688
- const q = W.id, $ = s.relationships.outerRing_to_expandableNodes?.find(
12688
+ const q = W.id, $ = t.relationships.outerRing_to_expandableNodes?.find(
12689
12689
  (J) => J.outerRingId === q
12690
12690
  );
12691
12691
  if ($ && $.expandableNodeIds.includes(L))
12692
12692
  return !0;
12693
12693
  }
12694
12694
  if (W.type === "product") {
12695
- const q = s.products.find(
12695
+ const q = t.products.find(
12696
12696
  ($) => $.id === W.id
12697
12697
  );
12698
12698
  if (!q) return !1;
12699
12699
  if (q.expandableNodeIds?.includes(L))
12700
12700
  return !0;
12701
12701
  }
12702
- return !!s.relationships.outerRing_to_products?.find(
12702
+ return !!t.relationships.outerRing_to_products?.find(
12703
12703
  (q) => q.outerRingId === L && q.productIds.includes(U)
12704
12704
  );
12705
12705
  }
12706
- const [gs, Y] = O(window.innerWidth < 700 ? 0.6 : 0.85), me = (L, U) => s?.products.find((V) => V.id === U)?.expandableNodeIds?.includes(L) || !1, Ce = (L, U, W, V = 0) => {
12706
+ const [gs, Y] = O(window.innerWidth < 700 ? 0.6 : 0.85), me = (L, U) => t?.products.find((V) => V.id === U)?.expandableNodeIds?.includes(L) || !1, Ce = (L, U, W, V = 0) => {
12707
12707
  const q = 2 * Math.PI * L / U + V, $ = W * Math.cos(q), J = W * Math.sin(q);
12708
12708
  return { x: $, y: J };
12709
12709
  }, $e = (L) => {
@@ -12729,7 +12729,7 @@ function px({ hotspot: e, dataEs: t, dataEn: n }) {
12729
12729
  tn();
12730
12730
  };
12731
12731
  return /* @__PURE__ */ a.jsxs("div", { className: "relative w-full h-full overflow-hidden", children: [
12732
- /* @__PURE__ */ a.jsxs("div", { className: "fixed top-4 left-4 flex gap-1 md:hidden z-1000", children: [
12732
+ /* @__PURE__ */ a.jsxs("div", { className: "absolute top-4 left-4 flex gap-1 md:hidden z-1000", children: [
12733
12733
  /* @__PURE__ */ a.jsx(
12734
12734
  w.button,
12735
12735
  {
@@ -12757,9 +12757,9 @@ function px({ hotspot: e, dataEs: t, dataEn: n }) {
12757
12757
  }
12758
12758
  )
12759
12759
  ] }),
12760
- /* @__PURE__ */ a.jsx("style", { children: mx }),
12760
+ /* @__PURE__ */ a.jsx("style", { children: my }),
12761
12761
  /* @__PURE__ */ a.jsx(
12762
- fx,
12762
+ fy,
12763
12763
  {
12764
12764
  isOpen: f,
12765
12765
  onClose: () => m(!1),
@@ -12781,7 +12781,7 @@ function px({ hotspot: e, dataEs: t, dataEn: n }) {
12781
12781
  style: {
12782
12782
  paddingRight: "0",
12783
12783
  transition: "padding 0.3s ease-in-out",
12784
- cursor: x.length > 0 ? z ? "grabbing" : "grab" : "default"
12784
+ cursor: y.length > 0 ? z ? "grabbing" : "grab" : "default"
12785
12785
  },
12786
12786
  children: [
12787
12787
  /* @__PURE__ */ a.jsx("div", { className: "absolute inset-0", children: /* @__PURE__ */ a.jsx(
@@ -12796,7 +12796,7 @@ function px({ hotspot: e, dataEs: t, dataEn: n }) {
12796
12796
  children: /* @__PURE__ */ a.jsx("div", { className: "absolute inset-0 pointer-events-none" })
12797
12797
  }
12798
12798
  ) }),
12799
- x.length > 0 && /* @__PURE__ */ a.jsx(
12799
+ y.length > 0 && /* @__PURE__ */ a.jsx(
12800
12800
  "div",
12801
12801
  {
12802
12802
  className: "absolute inset-0 node-view-layer",
@@ -12806,8 +12806,8 @@ function px({ hotspot: e, dataEs: t, dataEn: n }) {
12806
12806
  transition: "transform 0.3s ease",
12807
12807
  pointerEvents: "auto"
12808
12808
  },
12809
- children: x.map((L) => {
12810
- const U = s?.products.find(
12809
+ children: y.map((L) => {
12810
+ const U = t?.products.find(
12811
12811
  (V) => V.id === L.productId
12812
12812
  ), W = ne(L);
12813
12813
  return U && L.centralPosition ? /* @__PURE__ */ a.jsxs(
@@ -12847,12 +12847,12 @@ function px({ hotspot: e, dataEs: t, dataEn: n }) {
12847
12847
  }
12848
12848
  }
12849
12849
  ),
12850
- (s?.innerRingNodes || []).map((V, q) => {
12850
+ (t?.innerRingNodes || []).map((V, q) => {
12851
12851
  const $ = Ce(
12852
12852
  q,
12853
- s?.innerRingNodes.length || 0,
12853
+ t?.innerRingNodes.length || 0,
12854
12854
  300
12855
- ), J = o === V.id;
12855
+ ), J = i === V.id;
12856
12856
  return /* @__PURE__ */ a.jsx(
12857
12857
  "div",
12858
12858
  {
@@ -12916,7 +12916,7 @@ function px({ hotspot: e, dataEs: t, dataEn: n }) {
12916
12916
  animation: "fadeIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards"
12917
12917
  },
12918
12918
  onClick: (ue) => oe(V.url, ue),
12919
- children: /* @__PURE__ */ a.jsx(ys, { className: "w-4 h-4" })
12919
+ children: /* @__PURE__ */ a.jsx(xs, { className: "w-4 h-4" })
12920
12920
  }
12921
12921
  )
12922
12922
  ] })
@@ -12954,13 +12954,13 @@ function px({ hotspot: e, dataEs: t, dataEn: n }) {
12954
12954
  }
12955
12955
  }
12956
12956
  ),
12957
- (s?.outerRingNodes || []).map((V, q) => {
12957
+ (t?.outerRingNodes || []).map((V, q) => {
12958
12958
  const $ = Ce(
12959
12959
  q,
12960
- s?.outerRingNodes.length ?? 0,
12960
+ t?.outerRingNodes.length ?? 0,
12961
12961
  400,
12962
- Math.PI / (s?.outerRingNodes.length ?? 1)
12963
- ), J = c === V.id;
12962
+ Math.PI / (t?.outerRingNodes.length ?? 1)
12963
+ ), J = o === V.id;
12964
12964
  return /* @__PURE__ */ a.jsx(
12965
12965
  "div",
12966
12966
  {
@@ -13002,7 +13002,7 @@ function px({ hotspot: e, dataEs: t, dataEn: n }) {
13002
13002
  border: J ? "3px solid #1037b9" : "3px solid #1D4ED8"
13003
13003
  } : {},
13004
13004
  children: [
13005
- (V.id === 39 || V.id === 40 && E(V.id).length > 0 || me(
13005
+ (V.id === 39 || V.id === 40 && C(V.id).length > 0 || me(
13006
13006
  V.id,
13007
13007
  L.productId
13008
13008
  )) && /* @__PURE__ */ a.jsx(
@@ -13047,7 +13047,7 @@ function px({ hotspot: e, dataEs: t, dataEn: n }) {
13047
13047
  animation: "fadeIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards"
13048
13048
  },
13049
13049
  onClick: (ue) => oe(V.url, ue),
13050
- children: /* @__PURE__ */ a.jsx(ys, { className: "w-4 h-4" })
13050
+ children: /* @__PURE__ */ a.jsx(xs, { className: "w-4 h-4" })
13051
13051
  }
13052
13052
  )
13053
13053
  ] })
@@ -13087,13 +13087,13 @@ function px({ hotspot: e, dataEs: t, dataEn: n }) {
13087
13087
  ),
13088
13088
  L.expandedNodes.map((V) => V.childNodes.map(
13089
13089
  ($, J) => {
13090
- const ue = V.childNodes.length, Ee = Math.PI * 0.6, se = 0 - Ee / 2 + Ee * J / (ue - 1 || 1), jn = 600, bs = jn * Math.cos(se), xs = jn * Math.sin(se);
13090
+ const ue = V.childNodes.length, Pe = Math.PI * 0.6, se = 0 - Pe / 2 + Pe * J / (ue - 1 || 1), jn = 600, bs = jn * Math.cos(se), ys = jn * Math.sin(se);
13091
13091
  return /* @__PURE__ */ a.jsx(
13092
13092
  "div",
13093
13093
  {
13094
13094
  className: "absolute pointer-events-auto",
13095
13095
  style: {
13096
- transform: `translate(${bs}px, ${xs}px)`
13096
+ transform: `translate(${bs}px, ${ys}px)`
13097
13097
  },
13098
13098
  children: /* @__PURE__ */ a.jsx(
13099
13099
  "div",
@@ -13116,13 +13116,13 @@ function px({ hotspot: e, dataEs: t, dataEn: n }) {
13116
13116
  }
13117
13117
  );
13118
13118
  },
13119
- 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(
13119
+ 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 ${xt(
13120
13120
  $.id,
13121
13121
  ""
13122
13122
  ) || W.relatedExpandable.has(
13123
13123
  $.id
13124
13124
  ) ? "bg-[#214fc580] hover:bg-[#214fc580]" : "bg-blue-900/20 opacity-40 hover:bg-blue-800/40"} cursor-pointer hover:scale-110 text-blue-100`,
13125
- style: yt(
13125
+ style: xt(
13126
13126
  $.id,
13127
13127
  ""
13128
13128
  ) || W.relatedExpandable.has(
@@ -13138,7 +13138,7 @@ function px({ hotspot: e, dataEs: t, dataEn: n }) {
13138
13138
  /* @__PURE__ */ a.jsx(
13139
13139
  "div",
13140
13140
  {
13141
- className: `absolute text-xs ${yt(
13141
+ className: `absolute text-xs ${xt(
13142
13142
  $.id,
13143
13143
  ""
13144
13144
  ) || W.relatedExpandable.has(
@@ -13154,7 +13154,7 @@ function px({ hotspot: e, dataEs: t, dataEn: n }) {
13154
13154
  children: $.label
13155
13155
  }
13156
13156
  ),
13157
- $.url && (yt(
13157
+ $.url && (xt(
13158
13158
  $.id,
13159
13159
  ""
13160
13160
  ) || W.relatedExpandable.has(
@@ -13174,7 +13174,7 @@ function px({ hotspot: e, dataEs: t, dataEn: n }) {
13174
13174
  $.url || "",
13175
13175
  Ru
13176
13176
  ),
13177
- children: /* @__PURE__ */ a.jsx(ys, { className: "w-4 h-4" })
13177
+ children: /* @__PURE__ */ a.jsx(xs, { className: "w-4 h-4" })
13178
13178
  }
13179
13179
  )
13180
13180
  ] })
@@ -13195,12 +13195,12 @@ function px({ hotspot: e, dataEs: t, dataEn: n }) {
13195
13195
  })
13196
13196
  }
13197
13197
  ),
13198
- x.length > 0 && /* @__PURE__ */ a.jsx(
13198
+ y.length > 0 && /* @__PURE__ */ a.jsx(
13199
13199
  "div",
13200
13200
  {
13201
13201
  className: "fixed bottom-16 left-0 right-0 flex justify-center items-center z-30 px-4 w-full",
13202
13202
  style: {
13203
- animation: x.length > 0 ? "fadeInUp 0.5s ease forwards" : "fadeOutDown 0.5s ease forwards",
13203
+ animation: y.length > 0 ? "fadeInUp 0.5s ease forwards" : "fadeOutDown 0.5s ease forwards",
13204
13204
  display: j ? "none" : "flex"
13205
13205
  // Ocultar cuando el modal está abierto o hay un detalle de producto
13206
13206
  },
@@ -13261,7 +13261,7 @@ function px({ hotspot: e, dataEs: t, dataEn: n }) {
13261
13261
  transform: `translateX(-${I}px)`,
13262
13262
  paddingRight: "50px"
13263
13263
  },
13264
- children: s?.globalTags && s.globalTags.map((L, U) => /* @__PURE__ */ a.jsx(
13264
+ children: t?.globalTags && t.globalTags.map((L, U) => /* @__PURE__ */ a.jsx(
13265
13265
  "span",
13266
13266
  {
13267
13267
  className: "whitespace-nowrap text-blue-100 rounded-full px-6 py-2 text-sm font-medium border border-blue-400/50 transition-all flex-shrink-0 opacity-70",
@@ -13322,16 +13322,16 @@ function px({ hotspot: e, dataEs: t, dataEn: n }) {
13322
13322
  }
13323
13323
  ),
13324
13324
  /* @__PURE__ */ a.jsx(
13325
- hx,
13325
+ hy,
13326
13326
  {
13327
13327
  showLinkModal: j,
13328
- setShowLinkModal: C,
13328
+ setShowLinkModal: E,
13329
13329
  modalUrl: S
13330
13330
  }
13331
13331
  )
13332
13332
  ] });
13333
13333
  }
13334
- function gx({ size: e }) {
13334
+ function gy({ size: e }) {
13335
13335
  const t = hp(0), n = sm();
13336
13336
  ie(() => {
13337
13337
  n || Ds(t, 0, { duration: 0.5, ease: "easeInOut" });
@@ -13467,7 +13467,7 @@ function gx({ size: e }) {
13467
13467
  ` })
13468
13468
  ] });
13469
13469
  }
13470
- function bx({ onClose: e, hotspot: t }) {
13470
+ function by({ onClose: e, hotspot: t }) {
13471
13471
  const n = {
13472
13472
  duration: 0.35,
13473
13473
  ease: [0.59, 0, 0.35, 1]
@@ -13500,7 +13500,7 @@ function bx({ onClose: e, hotspot: t }) {
13500
13500
  children: /* @__PURE__ */ a.jsxs(
13501
13501
  w.div,
13502
13502
  {
13503
- className: "modal-content fixed inset-0 overflow-hidden w-full h-full",
13503
+ className: "modal-content absolute inset-0 overflow-hidden w-full h-full",
13504
13504
  onClick: (l) => l.stopPropagation(),
13505
13505
  initial: i,
13506
13506
  animate: s,
@@ -13512,12 +13512,12 @@ function bx({ onClose: e, hotspot: t }) {
13512
13512
  originY: 0.5
13513
13513
  },
13514
13514
  children: [
13515
- /* @__PURE__ */ a.jsx(px, { hotspot: t }),
13515
+ /* @__PURE__ */ a.jsx(py, { hotspot: t }),
13516
13516
  /* @__PURE__ */ a.jsxs(
13517
13517
  w.button,
13518
13518
  {
13519
13519
  onClick: e,
13520
- className: "fixed top-8 left-1/2 -translate-x-1/2 z-60 px-6 py-3 bg-slate-800/90 hover:bg-slate-700/90 text-cyan-300 rounded-full transition-all duration-300 border-2 border-cyan-400/50 hover:border-cyan-400/80 shadow-lg hover:shadow-cyan-500/50 font-medium flex items-center gap-2",
13520
+ className: "absolute top-8 left-1/2 -translate-x-1/2 z-60 px-6 py-3 bg-slate-800/90 hover:bg-slate-700/90 text-cyan-300 rounded-full transition-all duration-300 border-2! border-cyan-400/50! hover:border-cyan-400/80! shadow-lg hover:shadow-cyan-500/50 font-medium flex items-center gap-2",
13521
13521
  initial: { opacity: 0, y: -20 },
13522
13522
  animate: { opacity: 1, y: 0 },
13523
13523
  exit: { opacity: 0, y: -20 },
@@ -13616,7 +13616,7 @@ function bx({ onClose: e, hotspot: t }) {
13616
13616
  ` })
13617
13617
  ] });
13618
13618
  }
13619
- function xx({ isOpen: e, onClose: t, size: n, hotspot: s }) {
13619
+ function yy({ isOpen: e, onClose: t, size: n, hotspot: s }) {
13620
13620
  return ie(() => {
13621
13621
  const i = (r) => {
13622
13622
  r.key === "Escape" && t();
@@ -13625,11 +13625,11 @@ function xx({ isOpen: e, onClose: t, size: n, hotspot: s }) {
13625
13625
  window.removeEventListener("keydown", i);
13626
13626
  };
13627
13627
  }, [t]), /* @__PURE__ */ a.jsx(Ne, { children: e && /* @__PURE__ */ a.jsxs("div", { className: "overlay-root", onClick: t, children: [
13628
- /* @__PURE__ */ a.jsx(gx, { size: n }),
13629
- /* @__PURE__ */ a.jsx(bx, { onClose: t, hotspot: s }),
13628
+ /* @__PURE__ */ a.jsx(gy, { size: n }),
13629
+ /* @__PURE__ */ a.jsx(by, { onClose: t, hotspot: s }),
13630
13630
  /* @__PURE__ */ a.jsx("style", { children: `
13631
13631
  .overlay-root {
13632
- position: fixed;
13632
+ position: absolute;
13633
13633
  top: 0;
13634
13634
  left: 0;
13635
13635
  right: 0;
@@ -13639,13 +13639,13 @@ function xx({ isOpen: e, onClose: t, size: n, hotspot: s }) {
13639
13639
  ` })
13640
13640
  ] }) });
13641
13641
  }
13642
- const ya = "app-font-size", yx = "100", Vx = () => {
13643
- const [e, t] = gd(), n = e.get("size"), s = localStorage.getItem(ya);
13644
- let i = yx;
13642
+ const xa = "app-font-size", xy = "100", Vy = () => {
13643
+ const [e, t] = gd(), n = e.get("size"), s = localStorage.getItem(xa);
13644
+ let i = xy;
13645
13645
  return n && !isNaN(parseInt(n)) ? i = n : s && !isNaN(parseInt(s)) && (i = s), ie(() => {
13646
- document.documentElement.style.fontSize = `${i}%`, n && localStorage.setItem(ya, n);
13646
+ document.documentElement.style.fontSize = `${i}%`, n && localStorage.setItem(xa, n);
13647
13647
  }, [i, n, e, t]), null;
13648
- }, Tu = Ke(void 0), Ox = ({ children: e }) => {
13648
+ }, Tu = Ke(void 0), Oy = ({ children: e }) => {
13649
13649
  const [t, n] = O(!1), s = () => n((i) => !i);
13650
13650
  return /* @__PURE__ */ a.jsx(Tu.Provider, { value: { isAutoMode: t, setIsAutoMode: n, toggleAutoMode: s }, children: e });
13651
13651
  }, Su = () => {
@@ -13655,24 +13655,24 @@ const ya = "app-font-size", yx = "100", Vx = () => {
13655
13655
  return e;
13656
13656
  };
13657
13657
  function Nu() {
13658
- 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 = Me().controlPanelLevels, b = ["physical", "hybrid", "digital"], y = ["high", "medium", "low"], { t: x, i18n: N } = Xt(), k = tt(), P = wn(), { sendMessage: j } = En(), C = Me().wsRoom, { isAutoMode: S, toggleAutoMode: v } = Su();
13658
+ 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 = ke().controlPanelLevels, b = ["physical", "hybrid", "digital"], x = ["high", "medium", "low"], { t: y, i18n: N } = Xt(), k = tt(), P = wn(), { sendMessage: j } = Cn(), E = ke().wsRoom, { isAutoMode: S, toggleAutoMode: v } = Su();
13659
13659
  ie(() => {
13660
13660
  N.changeLanguage(d);
13661
13661
  }, [d]), ie(() => {
13662
13662
  if (console.log("Location en control-panel: " + P.pathname), P.pathname !== "/") {
13663
- const E = p.filter((_) => _.slug.length > 1).find((_) => P.pathname.startsWith(_.slug));
13664
- E && (console.log("Se va a seleccionar " + E.title), l(E.title));
13663
+ const C = p.filter((_) => _.slug.length > 1).find((_) => P.pathname.startsWith(_.slug));
13664
+ C && (console.log("Se va a seleccionar " + C.title), l(C.title));
13665
13665
  }
13666
13666
  }, [P]), ie(() => {
13667
- j({ type: "publish", room: C, payload: { type: "layer", target: e } });
13667
+ j({ type: "publish", room: E, payload: { type: "layer", target: e } });
13668
13668
  }, [e]);
13669
13669
  const I = () => {
13670
- t((E) => {
13671
- const M = (b.indexOf(E) + 1) % b.length;
13670
+ t((C) => {
13671
+ const M = (b.indexOf(C) + 1) % b.length;
13672
13672
  return b[M];
13673
13673
  });
13674
13674
  }, F = () => {
13675
- h((E) => E === "es" ? "en" : "es");
13675
+ h((C) => C === "es" ? "en" : "es");
13676
13676
  }, B = () => {
13677
13677
  v();
13678
13678
  }, Z = () => {
@@ -13686,8 +13686,8 @@ function Nu() {
13686
13686
  default:
13687
13687
  return dt;
13688
13688
  }
13689
- }, D = (E) => {
13690
- switch (E) {
13689
+ }, D = (C) => {
13690
+ switch (C) {
13691
13691
  case "low":
13692
13692
  return So;
13693
13693
  case "medium":
@@ -13697,8 +13697,8 @@ function Nu() {
13697
13697
  default:
13698
13698
  return ud;
13699
13699
  }
13700
- }, te = (E) => {
13701
- switch (E) {
13700
+ }, te = (C) => {
13701
+ switch (C) {
13702
13702
  case "Navantia Global":
13703
13703
  return rd;
13704
13704
  case "Smart Catalogue":
@@ -13816,9 +13816,9 @@ function Nu() {
13816
13816
  }
13817
13817
  )
13818
13818
  ] }) }),
13819
- /* @__PURE__ */ a.jsx("div", { className: "p-4 space-y-3", children: y.map((E, _) => {
13820
- const M = c === E, T = D(E), A = (() => {
13821
- switch (E) {
13819
+ /* @__PURE__ */ a.jsx("div", { className: "p-4 space-y-3", children: x.map((C, _) => {
13820
+ const M = c === C, T = D(C), A = (() => {
13821
+ switch (C) {
13822
13822
  case "low":
13823
13823
  return {
13824
13824
  bg: M ? "bg-gradient-to-r from-green-500/30 via-emerald-500/30 to-green-500/30" : "bg-slate-800/60",
@@ -13858,7 +13858,7 @@ function Nu() {
13858
13858
  w.button,
13859
13859
  {
13860
13860
  onClick: () => {
13861
- u(E), r(!1);
13861
+ u(C), r(!1);
13862
13862
  },
13863
13863
  className: `w-full text-left relative group ${M ? "z-10" : "z-0"}`,
13864
13864
  initial: { opacity: 0, x: -50, rotateY: -20 },
@@ -13960,7 +13960,7 @@ function Nu() {
13960
13960
  repeat: Number.POSITIVE_INFINITY,
13961
13961
  ease: "easeInOut"
13962
13962
  },
13963
- children: E
13963
+ children: C
13964
13964
  }
13965
13965
  ),
13966
13966
  M && /* @__PURE__ */ a.jsx(
@@ -14015,7 +14015,7 @@ function Nu() {
14015
14015
  }
14016
14016
  )
14017
14017
  },
14018
- E
14018
+ C
14019
14019
  );
14020
14020
  }) }),
14021
14021
  /* @__PURE__ */ a.jsx(
@@ -14026,7 +14026,7 @@ function Nu() {
14026
14026
  animate: { opacity: 1 },
14027
14027
  transition: { delay: 0.4 },
14028
14028
  children: /* @__PURE__ */ a.jsxs("p", { className: "text-xs text-red-300/80 text-center", children: [
14029
- y.length,
14029
+ x.length,
14030
14030
  " modos disponibles"
14031
14031
  ] })
14032
14032
  }
@@ -14091,13 +14091,13 @@ function Nu() {
14091
14091
  transition: { duration: 0.8, ease: "easeOut" }
14092
14092
  }
14093
14093
  ),
14094
- p.map((E, _) => {
14095
- const M = o === E.title, T = te(E.title);
14094
+ p.map((C, _) => {
14095
+ const M = o === C.title, T = te(C.title);
14096
14096
  return /* @__PURE__ */ a.jsx(
14097
14097
  w.button,
14098
14098
  {
14099
14099
  onClick: () => {
14100
- k(E.slug), l(E.title), s(!1);
14100
+ k(C.slug), l(C.title), s(!1);
14101
14101
  },
14102
14102
  className: `w-full text-left relative group ${M ? "z-10" : "z-0"}`,
14103
14103
  initial: { opacity: 0, x: -50, rotateY: -20 },
@@ -14194,7 +14194,7 @@ function Nu() {
14194
14194
  repeat: Number.POSITIVE_INFINITY,
14195
14195
  ease: "easeInOut"
14196
14196
  },
14197
- children: E.title
14197
+ children: C.title
14198
14198
  }
14199
14199
  ),
14200
14200
  M && /* @__PURE__ */ a.jsx(
@@ -14249,7 +14249,7 @@ function Nu() {
14249
14249
  }
14250
14250
  )
14251
14251
  },
14252
- E.title
14252
+ C.title
14253
14253
  );
14254
14254
  })
14255
14255
  ] }),
@@ -14318,7 +14318,7 @@ function Nu() {
14318
14318
  },
14319
14319
  n ? "open" : "closed"
14320
14320
  ) }),
14321
- /* @__PURE__ */ a.jsx("span", { children: x("control-panel.nivel") }),
14321
+ /* @__PURE__ */ a.jsx("span", { children: y("control-panel.nivel") }),
14322
14322
  /* @__PURE__ */ a.jsx(
14323
14323
  w.span,
14324
14324
  {
@@ -14385,7 +14385,7 @@ function Nu() {
14385
14385
  initial: { opacity: 0, scale: 0.8, y: -10 },
14386
14386
  animate: { opacity: 1, scale: 1, y: 0 },
14387
14387
  transition: { duration: 0.4, ease: [0.34, 1.56, 0.64, 1] },
14388
- children: x(`control-panel.layer.${e}`)
14388
+ children: y(`control-panel.layer.${e}`)
14389
14389
  },
14390
14390
  `badge-${e}`
14391
14391
  )
@@ -14436,7 +14436,7 @@ function Nu() {
14436
14436
  },
14437
14437
  d
14438
14438
  ) }),
14439
- /* @__PURE__ */ a.jsx("span", { children: x("control-panel.idioma") }),
14439
+ /* @__PURE__ */ a.jsx("span", { children: y("control-panel.idioma") }),
14440
14440
  /* @__PURE__ */ a.jsx(
14441
14441
  w.span,
14442
14442
  {
@@ -14495,7 +14495,7 @@ function Nu() {
14495
14495
  },
14496
14496
  d
14497
14497
  ) }),
14498
- /* @__PURE__ */ a.jsx("span", { children: x("control-panel.showcasemode") }),
14498
+ /* @__PURE__ */ a.jsx("span", { children: y("control-panel.showcasemode") }),
14499
14499
  /* @__PURE__ */ a.jsx(
14500
14500
  w.span,
14501
14501
  {
@@ -14578,7 +14578,7 @@ function Nu() {
14578
14578
  ] });
14579
14579
  }
14580
14580
  function ku() {
14581
- const { isConnected: e, reconnect: t } = En(), s = {
14581
+ const { isConnected: e, reconnect: t } = Cn(), s = {
14582
14582
  connected: {
14583
14583
  color: "bg-emerald-500",
14584
14584
  ringColor: "ring-emerald-500/30",
@@ -14625,7 +14625,7 @@ function ku() {
14625
14625
  }
14626
14626
  );
14627
14627
  }
14628
- function Cu({ children: e }) {
14628
+ function Eu({ children: e }) {
14629
14629
  const t = Tc();
14630
14630
  if (!t)
14631
14631
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
@@ -14653,8 +14653,8 @@ function Cu({ children: e }) {
14653
14653
  /* @__PURE__ */ a.jsx(kg, {})
14654
14654
  ] });
14655
14655
  }
14656
- const Eu = (e = 15e3) => {
14657
- const { isAutoMode: t } = Su(), { pathname: n } = wn(), s = tt(), i = we(null), r = Me()?.showcasesUrl ?? [], o = () => {
14656
+ const Cu = (e = 15e3) => {
14657
+ const { isAutoMode: t } = Su(), { pathname: n } = wn(), s = tt(), i = we(null), r = ke()?.showcasesUrl ?? [], o = () => {
14658
14658
  const d = (r.indexOf(n) + 1) % r.length;
14659
14659
  s(r[d]);
14660
14660
  }, l = () => {
@@ -14666,19 +14666,19 @@ const Eu = (e = 15e3) => {
14666
14666
  t && l();
14667
14667
  }, [n, t]);
14668
14668
  };
14669
- function Dx({ showControlPanel: e = !0, iframeSrc: t = "" }) {
14670
- return Eu(3e5), /* @__PURE__ */ a.jsxs("div", { className: "relative w-full h-screen overflow-hidden bg-transparent", children: [
14669
+ function Dy({ showControlPanel: e = !0, iframeSrc: t = "" }) {
14670
+ return Cu(3e5), /* @__PURE__ */ a.jsxs("div", { className: "relative w-full h-screen overflow-hidden bg-transparent", children: [
14671
14671
  /* @__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 }) }),
14672
- /* @__PURE__ */ a.jsx(Cu, { children: /* @__PURE__ */ a.jsxs("div", { className: "relative z-10 h-full bg-transparent", children: [
14672
+ /* @__PURE__ */ a.jsx(Eu, { children: /* @__PURE__ */ a.jsxs("div", { className: "relative z-10 h-full bg-transparent", children: [
14673
14673
  /* @__PURE__ */ a.jsx(is, {}),
14674
14674
  e && /* @__PURE__ */ a.jsx(Nu, {})
14675
14675
  ] }) }),
14676
14676
  /* @__PURE__ */ a.jsx(ku, {})
14677
14677
  ] });
14678
14678
  }
14679
- function _x({ showControlPanel: e = !0 }) {
14680
- return Eu(3e5), /* @__PURE__ */ a.jsxs("div", { className: "relative w-full h-screen overflow-hidden bg-transparent", children: [
14681
- /* @__PURE__ */ a.jsx(Cu, { children: /* @__PURE__ */ a.jsxs("div", { className: "relative z-10 h-full bg-transparent", children: [
14679
+ function _y({ showControlPanel: e = !0 }) {
14680
+ return Cu(3e5), /* @__PURE__ */ a.jsxs("div", { className: "relative w-full h-screen overflow-hidden bg-transparent", children: [
14681
+ /* @__PURE__ */ a.jsx(Eu, { children: /* @__PURE__ */ a.jsxs("div", { className: "relative z-10 h-full bg-transparent", children: [
14682
14682
  /* @__PURE__ */ a.jsx(is, {}),
14683
14683
  e && /* @__PURE__ */ a.jsx(Nu, {})
14684
14684
  ] }) }),
@@ -14686,8 +14686,8 @@ function _x({ showControlPanel: e = !0 }) {
14686
14686
  ] });
14687
14687
  }
14688
14688
  function Pu({ items: e, parent: t, selectedShip: n, onShipSelect: s }) {
14689
- 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"), [y, x] = O(160), { t: N } = Xt(), { lastEvent: k, internalEvent: P, setInternalEvent: j } = Jt(), C = Me().cinematics ?? !1, S = Me().cinematicsOnChangeLocation ?? !1;
14690
- C && (ie(() => {
14689
+ 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: P, setInternalEvent: j } = Jt(), E = ke().cinematics ?? !1, S = ke().cinematicsOnChangeLocation ?? !1;
14690
+ E && (ie(() => {
14691
14691
  k?.payload?.type === "cinematics" && k?.payload?.action === "end" && h(!0);
14692
14692
  }, [k]), ie(() => {
14693
14693
  if (P?.payload?.type === "cinematics") {
@@ -14696,16 +14696,16 @@ function Pu({ items: e, parent: t, selectedShip: n, onShipSelect: s }) {
14696
14696
  }
14697
14697
  }, [P]));
14698
14698
  const v = (R) => {
14699
- const _ = (Math.ceil(D.length / c) - 1) * c * y;
14699
+ const _ = (Math.ceil(D.length / c) - 1) * c * x;
14700
14700
  return R > 0 ? 0 : Math.abs(R) > _ ? -_ : R;
14701
- }, I = (R) => -(R * c * y), F = (R) => {
14702
- const E = Math.floor(c / 2), _ = Math.floor(R / c), M = (R - _ * c - E) * y, T = -(_ * c * y + M);
14701
+ }, I = (R) => -(R * c * x), F = (R) => {
14702
+ const C = Math.floor(c / 2), _ = Math.floor(R / c), M = (R - _ * c - C) * x, T = -(_ * c * x + M);
14703
14703
  return v(T);
14704
- }, B = tt(), Z = Me().baseUrl ?? "", D = e;
14704
+ }, B = tt(), Z = ke().baseUrl ?? "", D = e;
14705
14705
  ie(() => {
14706
14706
  const R = () => {
14707
- let E;
14708
- window.innerWidth < 640 ? (u(2), E = 120) : window.innerWidth < 768 ? (u(3), E = 140) : window.innerWidth < 1024 ? (u(4), E = 160) : (u(6), E = 180), x(E);
14707
+ let C;
14708
+ window.innerWidth < 640 ? (u(2), C = 120) : window.innerWidth < 768 ? (u(3), C = 140) : window.innerWidth < 1024 ? (u(4), C = 160) : (u(6), C = 180), y(C);
14709
14709
  };
14710
14710
  return R(), window.addEventListener("resize", R), () => window.removeEventListener("resize", R);
14711
14711
  }, []), ie(() => {
@@ -14718,26 +14718,26 @@ function Pu({ items: e, parent: t, selectedShip: n, onShipSelect: s }) {
14718
14718
  r(0), b("center"), m(F(0));
14719
14719
  return;
14720
14720
  }
14721
- const E = Math.floor(R / c);
14722
- E !== i && r(E), b("center"), m(F(R));
14723
- }, [n, c, y, D]), ie(() => {
14721
+ const C = Math.floor(R / c);
14722
+ C !== i && r(C), b("center"), m(F(R));
14723
+ }, [n, c, x, D]), ie(() => {
14724
14724
  if (p === "slide")
14725
14725
  m(I(i));
14726
14726
  else {
14727
- const R = D.findIndex((E) => E.slug === n);
14727
+ const R = D.findIndex((C) => C.slug === n);
14728
14728
  R !== -1 && m(F(R));
14729
14729
  }
14730
- }, [c, y]);
14730
+ }, [c, x]);
14731
14731
  const te = (R) => {
14732
14732
  s(R), b("center");
14733
- const E = D.findIndex((_) => _.slug === R);
14734
- E !== -1 && m(F(E)), B(`${t ? `/${t}/` : "/"}${R}`), C && S && j({ ...vn });
14733
+ const C = D.findIndex((_) => _.slug === R);
14734
+ C !== -1 && m(F(C)), B(`${t ? `/${t}/` : "/"}${R}`), E && S && j({ ...vn });
14735
14735
  }, H = () => {
14736
- const R = Math.ceil(D.length / c), E = (i + 1) % R;
14737
- b("slide"), r(E), m(I(E));
14736
+ const R = Math.ceil(D.length / c), C = (i + 1) % R;
14737
+ b("slide"), r(C), m(I(C));
14738
14738
  }, Q = () => {
14739
- const R = Math.ceil(D.length / c), E = (i - 1 + R) % R;
14740
- b("slide"), r(E), m(I(E));
14739
+ const R = Math.ceil(D.length / c), C = (i - 1 + R) % R;
14740
+ b("slide"), r(C), m(I(C));
14741
14741
  };
14742
14742
  return /* @__PURE__ */ a.jsxs(Ne, { children: [
14743
14743
  d && /* @__PURE__ */ a.jsxs(
@@ -14787,7 +14787,7 @@ function Pu({ items: e, parent: t, selectedShip: n, onShipSelect: s }) {
14787
14787
  ease: [0.25, 0.46, 0.45, 0.94]
14788
14788
  // Custom easing for smooth animation
14789
14789
  },
14790
- children: D.map((R, E) => /* @__PURE__ */ a.jsxs(
14790
+ children: D.map((R, C) => /* @__PURE__ */ a.jsxs(
14791
14791
  w.div,
14792
14792
  {
14793
14793
  className: `flex flex-col gap-1 items-center cursor-pointer group min-w-[100px] sm:min-w-[120px] md:min-w-[144px] ${n === R.slug ? "scale-110" : ""}`,
@@ -14798,7 +14798,7 @@ function Pu({ items: e, parent: t, selectedShip: n, onShipSelect: s }) {
14798
14798
  animate: {
14799
14799
  opacity: 1,
14800
14800
  y: 0,
14801
- transition: { delay: E * 0.1 }
14801
+ transition: { delay: C * 0.1 }
14802
14802
  },
14803
14803
  children: [
14804
14804
  /* @__PURE__ */ a.jsxs(
@@ -14916,49 +14916,49 @@ function Pu({ items: e, parent: t, selectedShip: n, onShipSelect: s }) {
14916
14916
  )
14917
14917
  ] });
14918
14918
  }
14919
- const Fx = ({ items: e, world: t, worldSlug: n = t }) => {
14919
+ const Fy = ({ items: e, world: t, worldSlug: n = t }) => {
14920
14920
  const [s, i] = O(""), r = {
14921
14921
  initial: { opacity: 0 },
14922
14922
  animate: { opacity: 1 },
14923
14923
  exit: { opacity: 0 }
14924
- }, o = wn(), l = tt(), { t: c } = Xt(), { setInternalEvent: u } = Jt(), d = Me().cinematics ?? !1, h = Me().cinematicsOnChangeLocation ?? !1;
14924
+ }, o = wn(), l = tt(), { t: c } = Xt(), { setInternalEvent: u } = Jt(), d = ke().cinematics ?? !1, h = ke().cinematicsOnChangeLocation ?? !1;
14925
14925
  ie(() => {
14926
14926
  o.pathname === `/${n}` ? i("") : o.pathname.startsWith(n ? `/${n}/` : "/") && i(o.pathname.replace(n ? `/${n}/` : "/", ""));
14927
14927
  }, [o]), ie(() => {
14928
- const y = (x) => {
14929
- const N = ["INPUT", "TEXTAREA"].includes(x.target.tagName), k = document.querySelector(".yarl__container");
14930
- N || k || (x.key === "ArrowLeft" ? (x.preventDefault(), b()) : x.key === "ArrowRight" && (x.preventDefault(), p()));
14928
+ const x = (y) => {
14929
+ const N = ["INPUT", "TEXTAREA"].includes(y.target.tagName), k = document.querySelector(".yarl__container");
14930
+ N || k || (y.key === "ArrowLeft" ? (y.preventDefault(), b()) : y.key === "ArrowRight" && (y.preventDefault(), p()));
14931
14931
  };
14932
- return window.addEventListener("keydown", y), () => {
14933
- window.removeEventListener("keydown", y);
14932
+ return window.addEventListener("keydown", x), () => {
14933
+ window.removeEventListener("keydown", x);
14934
14934
  };
14935
14935
  }, [s]), ie(() => {
14936
- let y = 0, x = 0, N = !1;
14937
- const k = (C) => {
14938
- const S = C.target, v = document.getElementById("ItemPage");
14939
- N = S === v, N && (y = C.changedTouches[0].screenX);
14940
- }, P = (C) => {
14941
- N && (x = C.changedTouches[0].screenX, j());
14936
+ let x = 0, y = 0, N = !1;
14937
+ const k = (E) => {
14938
+ const S = E.target, v = document.getElementById("ItemPage");
14939
+ N = S === v, N && (x = E.changedTouches[0].screenX);
14940
+ }, P = (E) => {
14941
+ N && (y = E.changedTouches[0].screenX, j());
14942
14942
  }, j = () => {
14943
- const C = x - y;
14944
- Math.abs(C) < 50 || (C > 0 ? b() : p());
14943
+ const E = y - x;
14944
+ Math.abs(E) < 50 || (E > 0 ? b() : p());
14945
14945
  };
14946
14946
  return window.addEventListener("touchstart", k), window.addEventListener("touchend", P), () => {
14947
14947
  window.removeEventListener("touchstart", k), window.removeEventListener("touchend", P);
14948
14948
  };
14949
14949
  }, [s]);
14950
14950
  const f = () => {
14951
- const x = (e.findIndex((N) => N.slug === s) + 1) % e.length;
14952
- return e[x];
14951
+ const y = (e.findIndex((N) => N.slug === s) + 1) % e.length;
14952
+ return e[y];
14953
14953
  }, m = () => {
14954
- const x = (e.findIndex((N) => N.slug === s) - 1 + e.length) % e.length;
14955
- return e[x];
14954
+ const y = (e.findIndex((N) => N.slug === s) - 1 + e.length) % e.length;
14955
+ return e[y];
14956
14956
  }, p = () => {
14957
- const y = f();
14958
- i(y.slug), l(`${n}/${y.slug}`), d && h && u({ ...vn });
14957
+ const x = f();
14958
+ i(x.slug), l(`${n}/${x.slug}`), d && h && u({ ...vn });
14959
14959
  }, b = () => {
14960
- const y = m();
14961
- i(y.slug), l(`${n}/${y.slug}`), d && h && u({ ...vn });
14960
+ const x = m();
14961
+ i(x.slug), l(`${n}/${x.slug}`), d && h && u({ ...vn });
14962
14962
  };
14963
14963
  return /* @__PURE__ */ a.jsxs(
14964
14964
  w.div,
@@ -15016,8 +15016,8 @@ const Fx = ({ items: e, world: t, worldSlug: n = t }) => {
15016
15016
  }
15017
15017
  );
15018
15018
  }, Iu = Ke(void 0);
15019
- function $x({ children: e }) {
15020
- const { isMobile: t } = Bc(), n = "https://www.navantia.es/media2/catalogo-nodos", s = t ? "videos/movil" : "videos", [i, r] = O(""), [o, l] = O(!1), c = (u, d = !0) => {
15019
+ function $y({ children: e }) {
15020
+ const { isMobile: t } = Bc(), n = ke().videosBaseUrl, s = t ? "videos/movil" : "videos", [i, r] = O(""), [o, l] = O(!1), c = (u, d = !0) => {
15021
15021
  const h = `${n.replace(/\/$/, "")}/${s}/${u}`;
15022
15022
  h !== i && (d ? (l(!0), setTimeout(() => {
15023
15023
  r(h), setTimeout(() => l(!1), 300);
@@ -15025,7 +15025,7 @@ function $x({ children: e }) {
15025
15025
  };
15026
15026
  return /* @__PURE__ */ a.jsx(Iu.Provider, { value: { currentVideo: i, setVideo: c, isTransitioning: o }, children: e });
15027
15027
  }
15028
- function vx() {
15028
+ function vy() {
15029
15029
  const e = be(Iu);
15030
15030
  return e === void 0 ? {
15031
15031
  currentVideo: "",
@@ -15035,7 +15035,7 @@ function vx() {
15035
15035
  } : e;
15036
15036
  }
15037
15037
  const ju = ({ returnUrlOnEnded: e }) => {
15038
- const { currentVideo: t, isTransitioning: n } = vx(), s = tt(), i = we(null), [r, o] = O(t), l = () => {
15038
+ const { currentVideo: t, isTransitioning: n } = vy(), s = tt(), i = we(null), [r, o] = O(t), l = () => {
15039
15039
  e && s(e);
15040
15040
  }, c = (u) => u.replace(/\.mp4$/i, ".webp");
15041
15041
  return ie(() => {
@@ -15075,14 +15075,14 @@ const ju = ({ returnUrlOnEnded: e }) => {
15075
15075
  )
15076
15076
  ] });
15077
15077
  };
15078
- function Bx({ className: e }) {
15078
+ function By({ className: e }) {
15079
15079
  const n = e !== void 0 ? e : "fixed inset-0 overflow-hidden bg-slate-900";
15080
15080
  return /* @__PURE__ */ a.jsxs("div", { className: n, children: [
15081
15081
  /* @__PURE__ */ a.jsx(ju, {}),
15082
15082
  /* @__PURE__ */ a.jsx("div", { className: "relative z-10 h-full", children: /* @__PURE__ */ a.jsx(is, {}) })
15083
15083
  ] });
15084
15084
  }
15085
- function zx({ x: e, y: t, dest: n }) {
15085
+ function zy({ x: e, y: t, dest: n }) {
15086
15086
  const s = tt(), i = (r) => {
15087
15087
  s(`/product/${r}`);
15088
15088
  };
@@ -15128,7 +15128,7 @@ function zx({ x: e, y: t, dest: n }) {
15128
15128
  );
15129
15129
  }
15130
15130
  function Mu({ home: e, item: t }) {
15131
- 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), [y, x] = O(!1), [N, k] = O(!1), [P, j] = O(!1), [C, S] = O(""), [v, I] = O(!1), F = tt(), { lastEvent: B, internalEvent: Z, setInternalEvent: D } = Jt(), te = Me().cinematics ?? !1, H = Me().cinematicsOnChangeLocation ?? !1;
15131
+ 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), [P, j] = O(!1), [E, S] = O(""), [v, I] = O(!1), F = tt(), { lastEvent: B, internalEvent: Z, setInternalEvent: D } = Jt(), te = ke().cinematics ?? !1, H = ke().cinematicsOnChangeLocation ?? !1;
15132
15132
  te && (ie(() => {
15133
15133
  B?.payload?.type === "cinematics" && B?.payload?.action === "end" && r(!0);
15134
15134
  }, [B]), ie(() => {
@@ -15149,7 +15149,7 @@ function Mu({ home: e, item: t }) {
15149
15149
  l(!0), r(!1);
15150
15150
  }, R = () => {
15151
15151
  l(!1), r(!0);
15152
- }, E = (T) => {
15152
+ }, C = (T) => {
15153
15153
  F(T), te && H && D({ ...vn });
15154
15154
  }, _ = (T) => !!T?.trim(), M = (T) => T.endsWith(".webm") || T.endsWith(".mp4");
15155
15155
  return /* @__PURE__ */ a.jsxs(Ne, { children: [
@@ -15161,7 +15161,7 @@ function Mu({ home: e, item: t }) {
15161
15161
  animate: { opacity: 1, y: 0 },
15162
15162
  transition: { delay: 0.8, duration: 0.6 },
15163
15163
  exit: { opacity: 0, y: 50, scale: 0.8, transition: { delay: 0, duration: 0.6 } },
15164
- children: /* @__PURE__ */ a.jsxs("div", { className: "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: [
15164
+ 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: [
15165
15165
  /* @__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 }),
15166
15166
  /* @__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 }),
15167
15167
  /* @__PURE__ */ a.jsxs("div", { className: "flex flex-wrap items-center justify-center gap-2 sm:gap-3 md:gap-4", children: [
@@ -15177,39 +15177,39 @@ function Mu({ home: e, item: t }) {
15177
15177
  animate: { opacity: 1 },
15178
15178
  transition: { delay: 0, duration: 0.6 },
15179
15179
  onClick: () => {
15180
- E(e);
15180
+ C(e);
15181
15181
  },
15182
15182
  children: /* @__PURE__ */ a.jsx(fd, { className: "w-3 h-3 sm:w-4 sm:h-4" })
15183
15183
  }
15184
15184
  ),
15185
- t?.simulation && /* @__PURE__ */ a.jsx(Eg, { onClick: () => m(!0) }),
15185
+ t?.simulation && /* @__PURE__ */ a.jsx(Cg, { onClick: () => m(!0) }),
15186
15186
  _(t?.playButton) && /* @__PURE__ */ a.jsx(Kr, { Icon: md, onClick: () => {
15187
15187
  h(t.playButton.trim()), u(!0);
15188
15188
  } }),
15189
- t?.webUrl && /* @__PURE__ */ a.jsx(Kr, { Icon: pd, onClick: () => x(!0) }),
15189
+ t?.webUrl && /* @__PURE__ */ a.jsx(Kr, { Icon: pd, onClick: () => y(!0) }),
15190
15190
  (t?.links?.length ?? 0) > 0 && t?.links?.map((T) => /* @__PURE__ */ a.jsx(gi, { item: T, onClick: () => {
15191
15191
  M(T.url) ? (h(T.url.trim()), u(!0)) : (S(T.url), j(T.transparent), k(!0)), T.transparent === !0 && te && D({ ...vn });
15192
15192
  } })),
15193
15193
  (t?.cards?.length ?? 0) > 0 && /* @__PURE__ */ a.jsx(Mp, { onClick: () => b(!0) }),
15194
- (t?.nodesId ?? 0) > 0 && /* @__PURE__ */ a.jsx(Cg, { label: t?.shortName ?? t.title, onClick: Q })
15194
+ (t?.nodesId ?? 0) > 0 && /* @__PURE__ */ a.jsx(Eg, { label: t?.shortName ?? t.title, onClick: Q })
15195
15195
  ] })
15196
15196
  ] })
15197
15197
  ] })
15198
15198
  }
15199
15199
  ),
15200
- o && t?.nodesId && /* @__PURE__ */ a.jsx(xx, { isOpen: o, onClose: R, size: n, hotspot: t.nodesId }),
15200
+ o && t?.nodesId && /* @__PURE__ */ a.jsx(yy, { isOpen: o, onClose: R, size: n, hotspot: t.nodesId }),
15201
15201
  c && /* @__PURE__ */ a.jsx(vu, { source: d, onClose: () => u(!1) }),
15202
15202
  f && /* @__PURE__ */ a.jsx(wu, { item: t.simulation, onClose: () => m(!1) }, t?.slug),
15203
15203
  p && /* @__PURE__ */ a.jsx(zc, { cards: t.cards, onClose: () => b(!1) }),
15204
- y && /* @__PURE__ */ a.jsx(Yt, { src: t.webUrl, onClose: () => x(!1) }),
15205
- N && /* @__PURE__ */ a.jsx(Yt, { src: C, transparent: P, onClose: () => {
15204
+ x && /* @__PURE__ */ a.jsx(Yt, { src: t.webUrl, onClose: () => y(!1) }),
15205
+ N && /* @__PURE__ */ a.jsx(Yt, { src: E, transparent: P, onClose: () => {
15206
15206
  const T = P;
15207
15207
  k(!1), S(""), j(!1), T === !0 && te && D({ ...Ng });
15208
15208
  } }),
15209
15209
  v && /* @__PURE__ */ a.jsx(Ig, { onClose: () => I(!1) })
15210
15210
  ] });
15211
15211
  }
15212
- const Wx = ({ video: e, returnUrl: t }) => {
15212
+ const Wy = ({ video: e, returnUrl: t }) => {
15213
15213
  console.log(e);
15214
15214
  const n = tt(), s = {
15215
15215
  initial: { opacity: 0 },
@@ -15254,7 +15254,7 @@ const Wx = ({ video: e, returnUrl: t }) => {
15254
15254
  }
15255
15255
  ) })
15256
15256
  ] }) });
15257
- }, Yx = ({ world: e, worldSlug: t = e, overlay: n = !1, itemsData: s }) => {
15257
+ }, Yy = ({ world: e, worldSlug: t = e, overlay: n = !1, itemsData: s }) => {
15258
15258
  const [i, r] = O(null), { itemSlug: o } = Na();
15259
15259
  ie(() => {
15260
15260
  if (o) {
@@ -15282,7 +15282,7 @@ const Wx = ({ video: e, returnUrl: t }) => {
15282
15282
  ]
15283
15283
  }
15284
15284
  ) }) : /* @__PURE__ */ a.jsx("div", { className: "relative w-full h-screen overflow-hidden bg-slate-900 flex items-center justify-center", children: /* @__PURE__ */ a.jsx("div", { className: "text-white text-2xl", children: "Producto no encontrado" }) });
15285
- }, Ux = ({ world: e, worldSlug: t = e, overlay: n = !1, itemsData: s }) => {
15285
+ }, Uy = ({ world: e, worldSlug: t = e, overlay: n = !1, itemsData: s }) => {
15286
15286
  const [i, r] = O(null), { itemSlug: o } = Na(), l = tt();
15287
15287
  ie(() => {
15288
15288
  if (o) {
@@ -15310,7 +15310,7 @@ const Wx = ({ video: e, returnUrl: t }) => {
15310
15310
  ]
15311
15311
  }
15312
15312
  ) }) : /* @__PURE__ */ a.jsx("div", { className: "relative w-full h-screen overflow-hidden bg-slate-900 flex items-center justify-center", children: /* @__PURE__ */ a.jsx("div", { className: "text-white text-2xl", children: "Producto no encontrado" }) });
15313
- }, Hx = ({ items: e, world: t, overlay: n = !1, title: s }) => {
15313
+ }, Hy = ({ items: e, world: t, overlay: n = !1, title: s }) => {
15314
15314
  const [i, r] = O(""), o = {
15315
15315
  initial: { opacity: 0 },
15316
15316
  animate: { opacity: 1 },
@@ -15332,8 +15332,8 @@ const Wx = ({ video: e, returnUrl: t }) => {
15332
15332
  ]
15333
15333
  }
15334
15334
  ) });
15335
- }, Xx = () => {
15336
- const e = wn(), { sendMessage: t } = En(), n = Me().wsRoom;
15335
+ }, Xy = () => {
15336
+ const e = wn(), { sendMessage: t } = Cn(), n = ke().wsRoom;
15337
15337
  return ie(() => {
15338
15338
  console.log("RouteListener: " + e.pathname + e.hash), t({ type: "publish", room: n, payload: { type: "camera", target: Sg(e.pathname) } });
15339
15339
  }, [e]), null;
@@ -15342,48 +15342,48 @@ export {
15342
15342
  Mp as CardsButton,
15343
15343
  Nu as ControlPanel,
15344
15344
  Rp as DynamicLucideIcon,
15345
- Mx as EventProvider,
15346
- Vx as FontSizeManager,
15347
- Wx as FullScreenPage,
15345
+ My as EventProvider,
15346
+ Vy as FontSizeManager,
15347
+ Wy as FullScreenPage,
15348
15348
  Kr as IconButton,
15349
- xa as InfoCard,
15350
- Yx as ItemPage,
15351
- Bx as Layout,
15352
- Dx as LayoutIframe,
15353
- _x as LayoutTransparent,
15354
- Fx as LayoutWorld,
15349
+ ya as InfoCard,
15350
+ Yy as ItemPage,
15351
+ By as Layout,
15352
+ Dy as LayoutIframe,
15353
+ _y as LayoutTransparent,
15354
+ Fy as LayoutWorld,
15355
15355
  gi as LinkItemButton,
15356
- Ix as MinimizeProvider,
15357
- Cu as MinimizeWrapper,
15358
- Cg as NodosButton,
15359
- zx as PointButton,
15360
- Xx as RouteListener,
15356
+ Iy as MinimizeProvider,
15357
+ Eu as MinimizeWrapper,
15358
+ Eg as NodosButton,
15359
+ zy as PointButton,
15360
+ Xy as RouteListener,
15361
15361
  Pu as ShipNavigation,
15362
- Ox as ShowcaseProvider,
15363
- Eg as SimulacionButton,
15364
- Ux as SlidePage,
15365
- dx as TabView,
15362
+ Oy as ShowcaseProvider,
15363
+ Cg as SimulacionButton,
15364
+ Uy as SlidePage,
15365
+ dy as TabView,
15366
15366
  Mu as TitleSection,
15367
15367
  ju as VideoBackground,
15368
- $x as VideoProvider,
15369
- Lx as WebSocketProvider,
15368
+ $y as VideoProvider,
15369
+ Ly as WebSocketProvider,
15370
15370
  ku as WebSocketStatusWidget,
15371
- Hx as WorldPage,
15371
+ Hy as WorldPage,
15372
15372
  Ng as cinematicsEndEvent,
15373
15373
  vn as cinematicsStartEvent,
15374
15374
  _n as cn,
15375
- Rx as codigoANombre,
15376
- Me as getConfig,
15377
- Ex as initLibConfig,
15375
+ Ry as codigoANombre,
15376
+ ke as getConfig,
15377
+ Cy as initLibConfig,
15378
15378
  Tg as nombreACodigo,
15379
15379
  Sg as toTarget,
15380
- Ax as toVideo,
15381
- Eu as useAutoModeTimer,
15380
+ Ay as toVideo,
15381
+ Cu as useAutoModeTimer,
15382
15382
  Jt as useEvent,
15383
- jx as useMinimize,
15383
+ jy as useMinimize,
15384
15384
  Tc as useOptionalMinimize,
15385
15385
  Bc as useScreenSize,
15386
15386
  Su as useShowcase,
15387
- vx as useVideo,
15388
- En as useWebSocket
15387
+ vy as useVideo,
15388
+ Cn as useWebSocket
15389
15389
  };