@ukpc-lib/react 0.1.1 → 0.1.3

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,4 +1,4 @@
1
- import { r as w, R as Ia, g as Wa, e as ws, a as Ua, j as R, p as I, S as za, L as Ha, s as $a } from "../index-6fdc89ad.js";
1
+ import { r as w, R as Ia, g as Wa, e as ws, a as Ua, j as R, p as W, S as za, L as Ha, s as $a } from "../index-6ba7e1d4.js";
2
2
  /**
3
3
  * @remix-run/router v1.14.2
4
4
  *
@@ -125,9 +125,9 @@ function Xa(e, t, n, r) {
125
125
  let y = Ir(x, u), S = m.createHref(x);
126
126
  try {
127
127
  s.pushState(y, "", S);
128
- } catch (E) {
129
- if (E instanceof DOMException && E.name === "DataCloneError")
130
- throw E;
128
+ } catch (T) {
129
+ if (T instanceof DOMException && T.name === "DataCloneError")
130
+ throw T;
131
131
  i.location.assign(S);
132
132
  }
133
133
  o && l && l({
@@ -505,8 +505,8 @@ const ml = typeof window < "u" && typeof window.document < "u" && typeof window.
505
505
  } = w.useContext(Qe), p, m = !1;
506
506
  if (typeof u == "string" && gl.test(u) && (p = u, ml))
507
507
  try {
508
- let y = new URL(window.location.href), S = u.startsWith("//") ? new URL(y.protocol + u) : new URL(u), E = Ss(S.pathname, d);
509
- S.origin === y.origin && E != null ? u = E + S.search + S.hash : m = !0;
508
+ let y = new URL(window.location.href), S = u.startsWith("//") ? new URL(y.protocol + u) : new URL(u), T = Ss(S.pathname, d);
509
+ S.origin === y.origin && T != null ? u = T + S.search + S.hash : m = !0;
510
510
  } catch {
511
511
  }
512
512
  let g = tl(u, {
@@ -637,29 +637,29 @@ function Mt(e, t, n) {
637
637
  if (typeof e != "function")
638
638
  throw new TypeError($l);
639
639
  t = Gr(t) || 0, Wt(n) && (f = !!n.leading, c = "maxWait" in n, o = c ? ql(Gr(n.maxWait) || 0, t) : o, h = "trailing" in n ? !!n.trailing : h);
640
- function d(T) {
640
+ function d(E) {
641
641
  var A = r, P = i;
642
- return r = i = void 0, u = T, s = e.apply(P, A), s;
642
+ return r = i = void 0, u = E, s = e.apply(P, A), s;
643
643
  }
644
- function p(T) {
645
- return u = T, a = setTimeout(b, t), f ? d(T) : s;
644
+ function p(E) {
645
+ return u = E, a = setTimeout(b, t), f ? d(E) : s;
646
646
  }
647
- function m(T) {
648
- var A = T - l, P = T - u, O = t - A;
647
+ function m(E) {
648
+ var A = E - l, P = E - u, O = t - A;
649
649
  return c ? Gl(O, o - P) : O;
650
650
  }
651
- function g(T) {
652
- var A = T - l, P = T - u;
651
+ function g(E) {
652
+ var A = E - l, P = E - u;
653
653
  return l === void 0 || A >= t || A < 0 || c && P >= o;
654
654
  }
655
655
  function b() {
656
- var T = bn();
657
- if (g(T))
658
- return x(T);
659
- a = setTimeout(b, m(T));
656
+ var E = bn();
657
+ if (g(E))
658
+ return x(E);
659
+ a = setTimeout(b, m(E));
660
660
  }
661
- function x(T) {
662
- return a = void 0, h && r ? d(T) : (r = i = void 0, s);
661
+ function x(E) {
662
+ return a = void 0, h && r ? d(E) : (r = i = void 0, s);
663
663
  }
664
664
  function y() {
665
665
  a !== void 0 && clearTimeout(a), u = 0, r = l = i = a = void 0;
@@ -667,9 +667,9 @@ function Mt(e, t, n) {
667
667
  function S() {
668
668
  return a === void 0 ? s : x(bn());
669
669
  }
670
- function E() {
671
- var T = bn(), A = g(T);
672
- if (r = arguments, i = this, l = T, A) {
670
+ function T() {
671
+ var E = bn(), A = g(E);
672
+ if (r = arguments, i = this, l = E, A) {
673
673
  if (a === void 0)
674
674
  return p(l);
675
675
  if (c)
@@ -677,7 +677,7 @@ function Mt(e, t, n) {
677
677
  }
678
678
  return a === void 0 && (a = setTimeout(b, t)), s;
679
679
  }
680
- return E.cancel = y, E.flush = S, E;
680
+ return T.cancel = y, T.flush = S, T;
681
681
  }
682
682
  var Xl = "Expected a function";
683
683
  function Kl(e, t, n) {
@@ -767,7 +767,7 @@ var Zl = /* @__PURE__ */ Object.freeze({
767
767
  addClasses: Ns,
768
768
  removeClasses: Bs,
769
769
  classNamesToQuery: Is
770
- }), ye = js, xn = _s, Ql = Fs, ve = Ns, be = Bs, G = Is, At = (
770
+ }), ye = js, xn = _s, Ql = Fs, ve = Ns, be = Bs, X = Is, At = (
771
771
  /** @class */
772
772
  function() {
773
773
  function e(t, n) {
@@ -804,11 +804,11 @@ var Zl = /* @__PURE__ */ Object.freeze({
804
804
  }, this.drag = function(i) {
805
805
  var o, s, a, l, u, f, c, h, d, p, m;
806
806
  if (!(!r.draggedAxis || !r.contentWrapperEl)) {
807
- var g, b = r.axis[r.draggedAxis].track, x = (s = (o = b.rect) === null || o === void 0 ? void 0 : o[r.axis[r.draggedAxis].sizeAttr]) !== null && s !== void 0 ? s : 0, y = r.axis[r.draggedAxis].scrollbar, S = (l = (a = r.contentWrapperEl) === null || a === void 0 ? void 0 : a[r.axis[r.draggedAxis].scrollSizeAttr]) !== null && l !== void 0 ? l : 0, E = parseInt((f = (u = r.elStyles) === null || u === void 0 ? void 0 : u[r.axis[r.draggedAxis].sizeAttr]) !== null && f !== void 0 ? f : "0px", 10);
807
+ var g, b = r.axis[r.draggedAxis].track, x = (s = (o = b.rect) === null || o === void 0 ? void 0 : o[r.axis[r.draggedAxis].sizeAttr]) !== null && s !== void 0 ? s : 0, y = r.axis[r.draggedAxis].scrollbar, S = (l = (a = r.contentWrapperEl) === null || a === void 0 ? void 0 : a[r.axis[r.draggedAxis].scrollSizeAttr]) !== null && l !== void 0 ? l : 0, T = parseInt((f = (u = r.elStyles) === null || u === void 0 ? void 0 : u[r.axis[r.draggedAxis].sizeAttr]) !== null && f !== void 0 ? f : "0px", 10);
808
808
  i.preventDefault(), i.stopPropagation(), r.draggedAxis === "y" ? g = i.pageY : g = i.pageX;
809
- var T = g - ((h = (c = b.rect) === null || c === void 0 ? void 0 : c[r.axis[r.draggedAxis].offsetAttr]) !== null && h !== void 0 ? h : 0) - r.axis[r.draggedAxis].dragOffset;
810
- T = r.draggedAxis === "x" && r.isRtl ? ((p = (d = b.rect) === null || d === void 0 ? void 0 : d[r.axis[r.draggedAxis].sizeAttr]) !== null && p !== void 0 ? p : 0) - y.size - T : T;
811
- var A = T / (x - y.size), P = A * (S - E);
809
+ var E = g - ((h = (c = b.rect) === null || c === void 0 ? void 0 : c[r.axis[r.draggedAxis].offsetAttr]) !== null && h !== void 0 ? h : 0) - r.axis[r.draggedAxis].dragOffset;
810
+ E = r.draggedAxis === "x" && r.isRtl ? ((p = (d = b.rect) === null || d === void 0 ? void 0 : d[r.axis[r.draggedAxis].sizeAttr]) !== null && p !== void 0 ? p : 0) - y.size - E : E;
811
+ var A = E / (x - y.size), P = A * (S - T);
812
812
  r.draggedAxis === "x" && r.isRtl && (P = !((m = e.getRtlHelpers()) === null || m === void 0) && m.isScrollingToNegative ? -P : P), r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr] = P;
813
813
  }
814
814
  }, this.onEndDrag = function(i) {
@@ -883,7 +883,7 @@ var Zl = /* @__PURE__ */ Object.freeze({
883
883
  Ds && (this.initDOM(), this.rtlHelpers = e.getRtlHelpers(), this.scrollbarWidth = this.getScrollbarWidth(), this.recalculate(), this.initListeners());
884
884
  }, e.prototype.initDOM = function() {
885
885
  var t, n;
886
- this.wrapperEl = this.el.querySelector(G(this.classNames.wrapper)), this.contentWrapperEl = this.options.scrollableNode || this.el.querySelector(G(this.classNames.contentWrapper)), this.contentEl = this.options.contentNode || this.el.querySelector(G(this.classNames.contentEl)), this.offsetEl = this.el.querySelector(G(this.classNames.offset)), this.maskEl = this.el.querySelector(G(this.classNames.mask)), this.placeholderEl = this.findChild(this.wrapperEl, G(this.classNames.placeholder)), this.heightAutoObserverWrapperEl = this.el.querySelector(G(this.classNames.heightAutoObserverWrapperEl)), this.heightAutoObserverEl = this.el.querySelector(G(this.classNames.heightAutoObserverEl)), this.axis.x.track.el = this.findChild(this.el, "".concat(G(this.classNames.track)).concat(G(this.classNames.horizontal))), this.axis.y.track.el = this.findChild(this.el, "".concat(G(this.classNames.track)).concat(G(this.classNames.vertical))), this.axis.x.scrollbar.el = ((t = this.axis.x.track.el) === null || t === void 0 ? void 0 : t.querySelector(G(this.classNames.scrollbar))) || null, this.axis.y.scrollbar.el = ((n = this.axis.y.track.el) === null || n === void 0 ? void 0 : n.querySelector(G(this.classNames.scrollbar))) || null, this.options.autoHide || (ve(this.axis.x.scrollbar.el, this.classNames.visible), ve(this.axis.y.scrollbar.el, this.classNames.visible));
886
+ this.wrapperEl = this.el.querySelector(X(this.classNames.wrapper)), this.contentWrapperEl = this.options.scrollableNode || this.el.querySelector(X(this.classNames.contentWrapper)), this.contentEl = this.options.contentNode || this.el.querySelector(X(this.classNames.contentEl)), this.offsetEl = this.el.querySelector(X(this.classNames.offset)), this.maskEl = this.el.querySelector(X(this.classNames.mask)), this.placeholderEl = this.findChild(this.wrapperEl, X(this.classNames.placeholder)), this.heightAutoObserverWrapperEl = this.el.querySelector(X(this.classNames.heightAutoObserverWrapperEl)), this.heightAutoObserverEl = this.el.querySelector(X(this.classNames.heightAutoObserverEl)), this.axis.x.track.el = this.findChild(this.el, "".concat(X(this.classNames.track)).concat(X(this.classNames.horizontal))), this.axis.y.track.el = this.findChild(this.el, "".concat(X(this.classNames.track)).concat(X(this.classNames.vertical))), this.axis.x.scrollbar.el = ((t = this.axis.x.track.el) === null || t === void 0 ? void 0 : t.querySelector(X(this.classNames.scrollbar))) || null, this.axis.y.scrollbar.el = ((n = this.axis.y.track.el) === null || n === void 0 ? void 0 : n.querySelector(X(this.classNames.scrollbar))) || null, this.options.autoHide || (ve(this.axis.x.scrollbar.el, this.classNames.visible), ve(this.axis.y.scrollbar.el, this.classNames.visible));
887
887
  }, e.prototype.initListeners = function() {
888
888
  var t = this, n, r = ye(this.el);
889
889
  if (this.el.addEventListener("mouseenter", this.onMouseEnter), this.el.addEventListener("pointerdown", this.onPointerEvent, !0), this.el.addEventListener("mousemove", this.onMouseMove), this.el.addEventListener("mouseleave", this.onMouseLeave), (n = this.contentWrapperEl) === null || n === void 0 || n.addEventListener("scroll", this.onScroll), r.addEventListener("resize", this.onWindowResize), !!this.contentEl) {
@@ -1329,7 +1329,7 @@ const vt = [
1329
1329
  function Xs(e, { layout: t, layoutId: n }) {
1330
1330
  return _e.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!Ut[e] || e === "opacity");
1331
1331
  }
1332
- const X = (e) => !!(e && e.getVelocity), pc = {
1332
+ const K = (e) => !!(e && e.getVelocity), pc = {
1333
1333
  x: "translateX",
1334
1334
  y: "translateY",
1335
1335
  z: "translateZ",
@@ -1467,7 +1467,7 @@ const pr = () => ({
1467
1467
  });
1468
1468
  function Qs(e, t, n) {
1469
1469
  for (const r in t)
1470
- !X(t[r]) && !Xs(r, n) && (e[r] = t[r]);
1470
+ !K(t[r]) && !Xs(r, n) && (e[r] = t[r]);
1471
1471
  }
1472
1472
  function Sc({ transformTemplate: e }, t, n) {
1473
1473
  return w.useMemo(() => {
@@ -1599,7 +1599,7 @@ function Lc(e = !1) {
1599
1599
  ...Cc(r, typeof n == "string", e),
1600
1600
  ...l,
1601
1601
  ref: i
1602
- }, { children: c } = r, h = w.useMemo(() => X(c) ? c.get() : c, [c]);
1602
+ }, { children: c } = r, h = w.useMemo(() => K(c) ? c.get() : c, [c]);
1603
1603
  return w.createElement(n, {
1604
1604
  ...f,
1605
1605
  children: h
@@ -1644,13 +1644,13 @@ function io(e, t, n, r) {
1644
1644
  function yr(e, t) {
1645
1645
  const { style: n } = e, r = {};
1646
1646
  for (const i in n)
1647
- (X(n[i]) || t.style && X(t.style[i]) || Xs(i, e)) && (r[i] = n[i]);
1647
+ (K(n[i]) || t.style && K(t.style[i]) || Xs(i, e)) && (r[i] = n[i]);
1648
1648
  return r;
1649
1649
  }
1650
1650
  function so(e, t) {
1651
1651
  const n = yr(e, t);
1652
1652
  for (const r in e)
1653
- if (X(e[r]) || X(t[r])) {
1653
+ if (K(e[r]) || K(t[r])) {
1654
1654
  const i = vt.indexOf(r) !== -1 ? "attr" + r.charAt(0).toUpperCase() + r.substring(1) : r;
1655
1655
  n[i] = e[r];
1656
1656
  }
@@ -1665,7 +1665,7 @@ function Dc(e) {
1665
1665
  }
1666
1666
  const Ht = (e) => Array.isArray(e), jc = (e) => !!(e && typeof e == "object" && e.mix && e.toValue), _c = (e) => Ht(e) ? e[e.length - 1] || 0 : e;
1667
1667
  function Lt(e) {
1668
- const t = X(e) ? e.get() : e;
1668
+ const t = K(e) ? e.get() : e;
1669
1669
  return jc(t) ? t.toValue() : t;
1670
1670
  }
1671
1671
  function Fc({ scrapeMotionValuesFromProps: e, createRenderState: t, onMount: n }, r, i, o) {
@@ -1782,7 +1782,7 @@ function Wc(e, t) {
1782
1782
  return c[h] = (p, m = !1, g = !1) => (n || l(), d.schedule(p, m, g)), c;
1783
1783
  }, {}), cancel: (c) => Ct.forEach((h) => o[h].cancel(c)), state: i, steps: o };
1784
1784
  }
1785
- const { schedule: M, cancel: me, state: $, steps: wn } = Wc(typeof requestAnimationFrame < "u" ? requestAnimationFrame : j, !0), Uc = {
1785
+ const { schedule: M, cancel: me, state: q, steps: wn } = Wc(typeof requestAnimationFrame < "u" ? requestAnimationFrame : j, !0), Uc = {
1786
1786
  useVisualState: oo({
1787
1787
  scrapeMotionValuesFromProps: so,
1788
1788
  createRenderState: to,
@@ -2175,7 +2175,7 @@ const zn = {
2175
2175
  test: Sr("hsl", "hue"),
2176
2176
  parse: To("hue", "saturation", "lightness"),
2177
2177
  transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + le.transform(lt(t)) + ", " + le.transform(lt(n)) + ", " + lt(at.transform(r)) + ")"
2178
- }, q = {
2178
+ }, G = {
2179
2179
  test: (e) => je.test(e) || zn.test(e) || Ge.test(e),
2180
2180
  parse: (e) => je.test(e) ? je.parse(e) : Ge.test(e) ? Ge.parse(e) : zn.parse(e),
2181
2181
  transform: (e) => bt(e) ? e : e.hasOwnProperty("red") ? je.transform(e) : Ge.transform(e)
@@ -2225,7 +2225,7 @@ const Po = {
2225
2225
  regex: Js,
2226
2226
  countKey: "Colors",
2227
2227
  token: "${c}",
2228
- parse: q.parse
2228
+ parse: G.parse
2229
2229
  }, Ro = {
2230
2230
  regex: ln,
2231
2231
  countKey: "Numbers",
@@ -2255,7 +2255,7 @@ function Vo(e) {
2255
2255
  return (s) => {
2256
2256
  let a = i;
2257
2257
  for (let l = 0; l < o; l++)
2258
- l < r ? a = a.replace(Po.token, s[l]) : l < r + n ? a = a.replace(Co.token, q.transform(s[l])) : a = a.replace(Ro.token, lt(s[l]));
2258
+ l < r ? a = a.replace(Po.token, s[l]) : l < r + n ? a = a.replace(Co.token, G.transform(s[l])) : a = a.replace(Ro.token, lt(s[l]));
2259
2259
  return a;
2260
2260
  };
2261
2261
  }
@@ -2271,7 +2271,7 @@ const Ce = {
2271
2271
  getAnimatableNone: Cu
2272
2272
  }, ko = (e, t) => (n) => `${n > 0 ? t : e}`;
2273
2273
  function Mo(e, t) {
2274
- return typeof e == "number" ? (n) => D(e, t, n) : q.test(e) ? Ao(e, t) : e.startsWith("var(") ? ko(e, t) : Do(e, t);
2274
+ return typeof e == "number" ? (n) => D(e, t, n) : G.test(e) ? Ao(e, t) : e.startsWith("var(") ? ko(e, t) : Do(e, t);
2275
2275
  }
2276
2276
  const Lo = (e, t) => {
2277
2277
  const n = [...e], r = n.length, i = e.map((o, s) => Mo(o, t[s]));
@@ -2297,7 +2297,7 @@ const Lo = (e, t) => {
2297
2297
  return r === 0 ? 1 : (n - e) / r;
2298
2298
  }, ai = (e, t) => (n) => D(e, t, n);
2299
2299
  function Ou(e) {
2300
- return typeof e == "number" ? ai : typeof e == "string" ? q.test(e) ? Ao : Do : Array.isArray(e) ? Lo : typeof e == "object" ? Ru : ai;
2300
+ return typeof e == "number" ? ai : typeof e == "string" ? G.test(e) ? Ao : Do : Array.isArray(e) ? Lo : typeof e == "object" ? Ru : ai;
2301
2301
  }
2302
2302
  function Vu(e, t, n) {
2303
2303
  const r = [], i = n || Ou(e[0]), o = e.length - 1;
@@ -2445,16 +2445,16 @@ function No({ keyframes: e, restDelta: t, restSpeed: n, ...r }) {
2445
2445
  if (p < 1) {
2446
2446
  const y = Hn(g, p);
2447
2447
  x = (S) => {
2448
- const E = Math.exp(-p * g * S);
2449
- return o - E * ((d + p * g * m) / y * Math.sin(y * S) + m * Math.cos(y * S));
2448
+ const T = Math.exp(-p * g * S);
2449
+ return o - T * ((d + p * g * m) / y * Math.sin(y * S) + m * Math.cos(y * S));
2450
2450
  };
2451
2451
  } else if (p === 1)
2452
2452
  x = (y) => o - Math.exp(-g * y) * (m + (d + g * m) * y);
2453
2453
  else {
2454
2454
  const y = g * Math.sqrt(p * p - 1);
2455
2455
  x = (S) => {
2456
- const E = Math.exp(-p * g * S), T = Math.min(y * S, 300);
2457
- return o - E * ((d + p * g * m) * Math.sinh(T) + y * m * Math.cosh(T)) / y;
2456
+ const T = Math.exp(-p * g * S), E = Math.min(y * S, 300);
2457
+ return o - T * ((d + p * g * m) * Math.sinh(E) + y * m * Math.cosh(E)) / y;
2458
2458
  };
2459
2459
  }
2460
2460
  return {
@@ -2464,10 +2464,10 @@ function No({ keyframes: e, restDelta: t, restSpeed: n, ...r }) {
2464
2464
  if (h)
2465
2465
  s.done = y >= f;
2466
2466
  else {
2467
- let E = d;
2468
- y !== 0 && (p < 1 ? E = Fo(x, y, S) : E = 0);
2469
- const T = Math.abs(E) <= n, A = Math.abs(o - S) <= t;
2470
- s.done = T && A;
2467
+ let T = d;
2468
+ y !== 0 && (p < 1 ? T = Fo(x, y, S) : T = 0);
2469
+ const E = Math.abs(T) <= n, A = Math.abs(o - S) <= t;
2470
+ s.done = E && A;
2471
2471
  }
2472
2472
  return s.value = s.done ? o : S, s;
2473
2473
  }
@@ -2482,12 +2482,12 @@ function ui({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
2482
2482
  const g = c + m, b = s === void 0 ? g : s(g);
2483
2483
  b !== g && (m = b - c);
2484
2484
  const x = (P) => -m * Math.exp(-P / r), y = (P) => b + x(P), S = (P) => {
2485
- const O = x(P), W = y(P);
2486
- h.done = Math.abs(O) <= u, h.value = h.done ? b : W;
2485
+ const O = x(P), _ = y(P);
2486
+ h.done = Math.abs(O) <= u, h.value = h.done ? b : _;
2487
2487
  };
2488
- let E, T;
2488
+ let T, E;
2489
2489
  const A = (P) => {
2490
- d(h.value) && (E = P, T = No({
2490
+ d(h.value) && (T = P, E = No({
2491
2491
  keyframes: [h.value, p(h.value)],
2492
2492
  velocity: Fo(y, P, h.value),
2493
2493
  damping: i,
@@ -2500,7 +2500,7 @@ function ui({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
2500
2500
  calculatedDuration: null,
2501
2501
  next: (P) => {
2502
2502
  let O = !1;
2503
- return !T && E === void 0 && (O = !0, S(P), A(P)), E !== void 0 && P > E ? T.next(P - E) : (!O && S(P), h);
2503
+ return !E && T === void 0 && (O = !0, S(P), A(P)), T !== void 0 && P > T ? E.next(P - T) : (!O && S(P), h);
2504
2504
  }
2505
2505
  };
2506
2506
  }
@@ -2513,7 +2513,7 @@ const $u = (e) => {
2513
2513
  * If we're processing this frame we can use the
2514
2514
  * framelocked timestamp to keep things in sync.
2515
2515
  */
2516
- now: () => $.isProcessing ? $.timestamp : performance.now()
2516
+ now: () => q.isProcessing ? q.timestamp : performance.now()
2517
2517
  };
2518
2518
  }, fi = 2e4;
2519
2519
  function hi(e) {
@@ -2545,49 +2545,49 @@ function Gt({ autoplay: e = !0, delay: t = 0, driver: n = $u, keyframes: r, type
2545
2545
  y !== qt && typeof r[0] != "number" && (S = jo([0, 100], r, {
2546
2546
  clamp: !1
2547
2547
  }), r = [0, 100]);
2548
- const E = y({ ...h, keyframes: r });
2549
- let T;
2550
- a === "mirror" && (T = y({
2548
+ const T = y({ ...h, keyframes: r });
2549
+ let E;
2550
+ a === "mirror" && (E = y({
2551
2551
  ...h,
2552
2552
  keyframes: [...r].reverse(),
2553
2553
  velocity: -(h.velocity || 0)
2554
2554
  }));
2555
- let A = "idle", P = null, O = null, W = null;
2556
- E.calculatedDuration === null && o && (E.calculatedDuration = hi(E));
2557
- const { calculatedDuration: K } = E;
2558
- let N = 1 / 0, H = 1 / 0;
2559
- K !== null && (N = K + s, H = N * (o + 1) - s);
2555
+ let A = "idle", P = null, O = null, _ = null;
2556
+ T.calculatedDuration === null && o && (T.calculatedDuration = hi(T));
2557
+ const { calculatedDuration: H } = T;
2558
+ let B = 1 / 0, $ = 1 / 0;
2559
+ H !== null && (B = H + s, $ = B * (o + 1) - s);
2560
2560
  let U = 0;
2561
2561
  const re = (k) => {
2562
2562
  if (O === null)
2563
2563
  return;
2564
- d > 0 && (O = Math.min(O, k)), d < 0 && (O = Math.min(k - H / d, O)), P !== null ? U = P : U = Math.round(k - O) * d;
2565
- const Be = U - t * (d >= 0 ? 1 : -1), Ie = d >= 0 ? Be < 0 : Be > H;
2566
- U = Math.max(Be, 0), A === "finished" && P === null && (U = H);
2567
- let gn = U, Oe = E;
2564
+ d > 0 && (O = Math.min(O, k)), d < 0 && (O = Math.min(k - $ / d, O)), P !== null ? U = P : U = Math.round(k - O) * d;
2565
+ const Be = U - t * (d >= 0 ? 1 : -1), Ie = d >= 0 ? Be < 0 : Be > $;
2566
+ U = Math.max(Be, 0), A === "finished" && P === null && (U = $);
2567
+ let gn = U, Oe = T;
2568
2568
  if (o) {
2569
- const tt = Math.min(U, H) / N;
2569
+ const tt = Math.min(U, $) / B;
2570
2570
  let Ve = Math.floor(tt), te = tt % 1;
2571
- !te && tt >= 1 && (te = 1), te === 1 && Ve--, Ve = Math.min(Ve, o + 1), !!(Ve % 2) && (a === "reverse" ? (te = 1 - te, s && (te -= s / N)) : a === "mirror" && (Oe = T)), gn = Pe(0, 1, te) * N;
2571
+ !te && tt >= 1 && (te = 1), te === 1 && Ve--, Ve = Math.min(Ve, o + 1), !!(Ve % 2) && (a === "reverse" ? (te = 1 - te, s && (te -= s / B)) : a === "mirror" && (Oe = E)), gn = Pe(0, 1, te) * B;
2572
2572
  }
2573
2573
  const ue = Ie ? { done: !1, value: r[0] } : Oe.next(gn);
2574
2574
  S && (ue.value = S(ue.value));
2575
2575
  let { done: We } = ue;
2576
- !Ie && K !== null && (We = d >= 0 ? U >= H : U <= 0);
2576
+ !Ie && H !== null && (We = d >= 0 ? U >= $ : U <= 0);
2577
2577
  const Ue = P === null && (A === "finished" || A === "running" && We);
2578
2578
  return c && c(ue.value), Ue && z(), ue;
2579
- }, B = () => {
2579
+ }, I = () => {
2580
2580
  x && x.stop(), x = void 0;
2581
2581
  }, ie = () => {
2582
- A = "idle", B(), m(), b(), O = W = null;
2582
+ A = "idle", I(), m(), b(), O = _ = null;
2583
2583
  }, z = () => {
2584
- A = "finished", f && f(), B(), m();
2584
+ A = "finished", f && f(), I(), m();
2585
2585
  }, ge = () => {
2586
2586
  if (p)
2587
2587
  return;
2588
2588
  x || (x = n(re));
2589
2589
  const k = x.now();
2590
- l && l(), P !== null ? O = k - P : (!O || A === "finished") && (O = k), A === "finished" && b(), W = O, P = null, A = "running", x.start();
2590
+ l && l(), P !== null ? O = k - P : (!O || A === "finished") && (O = k), A === "finished" && b(), _ = O, P = null, A = "running", x.start();
2591
2591
  };
2592
2592
  e && ge();
2593
2593
  const Ne = {
@@ -2601,7 +2601,7 @@ function Gt({ autoplay: e = !0, delay: t = 0, driver: n = $u, keyframes: r, type
2601
2601
  k = Ae(k), U = k, P !== null || !x || d === 0 ? P = k : O = x.now() - k / d;
2602
2602
  },
2603
2603
  get duration() {
2604
- const k = E.calculatedDuration === null ? hi(E) : E.calculatedDuration;
2604
+ const k = T.calculatedDuration === null ? hi(T) : T.calculatedDuration;
2605
2605
  return de(k);
2606
2606
  },
2607
2607
  get speed() {
@@ -2621,7 +2621,7 @@ function Gt({ autoplay: e = !0, delay: t = 0, driver: n = $u, keyframes: r, type
2621
2621
  p = !0, A !== "idle" && (A = "idle", u && u(), ie());
2622
2622
  },
2623
2623
  cancel: () => {
2624
- W !== null && re(W), ie();
2624
+ _ !== null && re(_), ie();
2625
2625
  },
2626
2626
  complete: () => {
2627
2627
  A = "finished";
@@ -2659,11 +2659,11 @@ function Zu(e, t, { onUpdate: n, onComplete: r, ...i }) {
2659
2659
  delay: 0
2660
2660
  });
2661
2661
  let S = { done: !1, value: c[0] };
2662
- const E = [];
2663
- let T = 0;
2664
- for (; !S.done && T < Yu; )
2665
- S = y.sample(T), E.push(S.value), T += Rt;
2666
- p = void 0, c = E, h = T - Rt, d = "linear";
2662
+ const T = [];
2663
+ let E = 0;
2664
+ for (; !S.done && E < Yu; )
2665
+ S = y.sample(E), T.push(S.value), E += Rt;
2666
+ p = void 0, c = T, h = E - Rt, d = "linear";
2667
2667
  }
2668
2668
  const m = lu(e.owner.current, t, c, {
2669
2669
  ...i,
@@ -2789,17 +2789,17 @@ const lf = /([a-z-]*)\(.*?\)/g, qn = {
2789
2789
  }, cf = {
2790
2790
  ...Zs,
2791
2791
  // Color props
2792
- color: q,
2793
- backgroundColor: q,
2794
- outlineColor: q,
2795
- fill: q,
2796
- stroke: q,
2792
+ color: G,
2793
+ backgroundColor: G,
2794
+ outlineColor: G,
2795
+ fill: G,
2796
+ stroke: G,
2797
2797
  // Border props
2798
- borderColor: q,
2799
- borderTopColor: q,
2800
- borderRightColor: q,
2801
- borderBottomColor: q,
2802
- borderLeftColor: q,
2798
+ borderColor: G,
2799
+ borderTopColor: G,
2800
+ borderRightColor: G,
2801
+ borderBottomColor: G,
2802
+ borderLeftColor: G,
2803
2803
  filter: qn,
2804
2804
  WebkitFilter: qn
2805
2805
  }, Er = (e) => cf[e];
@@ -2880,7 +2880,7 @@ const df = {
2880
2880
  return Gt(d);
2881
2881
  };
2882
2882
  function Xt(e) {
2883
- return !!(X(e) && e.add);
2883
+ return !!(K(e) && e.add);
2884
2884
  }
2885
2885
  const Wo = (e) => /^\-?\d*\.?\d+$/.test(e);
2886
2886
  function Pr(e, t) {
@@ -2928,7 +2928,7 @@ class mf {
2928
2928
  constructor(t, n = {}) {
2929
2929
  this.version = "10.18.0", this.timeDelta = 0, this.lastUpdated = 0, this.canTrackVelocity = !1, this.events = {}, this.updateAndNotify = (r, i = !0) => {
2930
2930
  this.prev = this.current, this.current = r;
2931
- const { delta: o, timestamp: s } = $;
2931
+ const { delta: o, timestamp: s } = q;
2932
2932
  this.lastUpdated !== s && (this.timeDelta = o, this.lastUpdated = s, M.postRender(this.scheduleVelocityCheck)), this.prev !== this.current && this.events.change && this.events.change.notify(this.current), this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity()), i && this.events.renderRequest && this.events.renderRequest.notify(this.current);
2933
2933
  }, this.scheduleVelocityCheck = () => M.postRender(this.velocityCheck), this.velocityCheck = ({ timestamp: r }) => {
2934
2934
  r !== this.lastUpdated && (this.prev = this.current, this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity()));
@@ -3112,7 +3112,7 @@ function Ye(e, t) {
3112
3112
  const Uo = (e) => (t) => t.test(e), gf = {
3113
3113
  test: (e) => e === "auto",
3114
3114
  parse: (e) => e
3115
- }, zo = [Fe, C, le, we, wc, xc, gf], rt = (e) => zo.find(Uo(e)), yf = [...zo, q, Ce], vf = (e) => yf.find(Uo(e));
3115
+ }, zo = [Fe, C, le, we, wc, xc, gf], rt = (e) => zo.find(Uo(e)), yf = [...zo, G, Ce], vf = (e) => yf.find(Uo(e));
3116
3116
  function bf(e, t, n) {
3117
3117
  e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Ye(n));
3118
3118
  }
@@ -3259,35 +3259,35 @@ function Mf(e) {
3259
3259
  const f = e.getProps(), c = e.getVariantContext(!0) || {}, h = [], d = /* @__PURE__ */ new Set();
3260
3260
  let p = {}, m = 1 / 0;
3261
3261
  for (let b = 0; b < Vf; b++) {
3262
- const x = Of[b], y = n[x], S = f[x] !== void 0 ? f[x] : c[x], E = pt(S), T = x === u ? y.isActive : null;
3263
- T === !1 && (m = b);
3264
- let A = S === c[x] && S !== f[x] && E;
3262
+ const x = Of[b], y = n[x], S = f[x] !== void 0 ? f[x] : c[x], T = pt(S), E = x === u ? y.isActive : null;
3263
+ E === !1 && (m = b);
3264
+ let A = S === c[x] && S !== f[x] && T;
3265
3265
  if (A && r && e.manuallyAnimateOnMount && (A = !1), y.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
3266
- !y.isActive && T === null || // If we didn't and don't have any defined prop for this animation type
3266
+ !y.isActive && E === null || // If we didn't and don't have any defined prop for this animation type
3267
3267
  !S && !y.prevProp || // Or if the prop doesn't define an animation
3268
3268
  on(S) || typeof S == "boolean")
3269
3269
  continue;
3270
3270
  let O = Lf(y.prevProp, S) || // If we're making this variant active, we want to always make it active
3271
- x === u && y.isActive && !A && E || // If we removed a higher-priority variant (i is in reverse order)
3272
- b > m && E, W = !1;
3273
- const K = Array.isArray(S) ? S : [S];
3274
- let N = K.reduce(i, {});
3275
- T === !1 && (N = {});
3276
- const { prevResolvedValues: H = {} } = y, U = {
3277
- ...H,
3278
- ...N
3279
- }, re = (B) => {
3280
- O = !0, d.has(B) && (W = !0, d.delete(B)), y.needsAnimating[B] = !0;
3271
+ x === u && y.isActive && !A && T || // If we removed a higher-priority variant (i is in reverse order)
3272
+ b > m && T, _ = !1;
3273
+ const H = Array.isArray(S) ? S : [S];
3274
+ let B = H.reduce(i, {});
3275
+ E === !1 && (B = {});
3276
+ const { prevResolvedValues: $ = {} } = y, U = {
3277
+ ...$,
3278
+ ...B
3279
+ }, re = (I) => {
3280
+ O = !0, d.has(I) && (_ = !0, d.delete(I)), y.needsAnimating[I] = !0;
3281
3281
  };
3282
- for (const B in U) {
3283
- const ie = N[B], z = H[B];
3284
- if (p.hasOwnProperty(B))
3282
+ for (const I in U) {
3283
+ const ie = B[I], z = $[I];
3284
+ if (p.hasOwnProperty(I))
3285
3285
  continue;
3286
3286
  let ge = !1;
3287
- Ht(ie) && Ht(z) ? ge = !ho(ie, z) : ge = ie !== z, ge ? ie !== void 0 ? re(B) : d.add(B) : ie !== void 0 && d.has(B) ? re(B) : y.protectedKeys[B] = !0;
3287
+ Ht(ie) && Ht(z) ? ge = !ho(ie, z) : ge = ie !== z, ge ? ie !== void 0 ? re(I) : d.add(I) : ie !== void 0 && d.has(I) ? re(I) : y.protectedKeys[I] = !0;
3288
3288
  }
3289
- y.prevProp = S, y.prevResolvedValues = N, y.isActive && (p = { ...p, ...N }), r && e.blockInitialAnimation && (O = !1), O && (!A || W) && h.push(...K.map((B) => ({
3290
- animation: B,
3289
+ y.prevProp = S, y.prevResolvedValues = B, y.isActive && (p = { ...p, ...B }), r && e.blockInitialAnimation && (O = !1), O && (!A || _) && h.push(...H.map((I) => ({
3290
+ animation: I,
3291
3291
  options: { type: x, ...l }
3292
3292
  })));
3293
3293
  }
@@ -3410,7 +3410,7 @@ class $o {
3410
3410
  const c = Vn(this.lastMoveEventInfo, this.history), h = this.startEvent !== null, d = Bf(c.offset, { x: 0, y: 0 }) >= 3;
3411
3411
  if (!h && !d)
3412
3412
  return;
3413
- const { point: p } = c, { timestamp: m } = $;
3413
+ const { point: p } = c, { timestamp: m } = q;
3414
3414
  this.history.push({ ...p, timestamp: m });
3415
3415
  const { onStart: g, onMove: b } = this.handlers;
3416
3416
  h || (g && g(this.lastMoveEvent, c), this.startEvent = this.lastMoveEvent), b && b(this.lastMoveEvent, c);
@@ -3426,7 +3426,7 @@ class $o {
3426
3426
  }, !ao(t))
3427
3427
  return;
3428
3428
  this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = r, this.contextWindow = i || window;
3429
- const s = cn(t), a = On(s, this.transformPagePoint), { point: l } = a, { timestamp: u } = $;
3429
+ const s = cn(t), a = On(s, this.transformPagePoint), { point: l } = a, { timestamp: u } = q;
3430
3430
  this.history = [{ ...l, timestamp: u }];
3431
3431
  const { onSessionStart: f } = n;
3432
3432
  f && f(t, Vn(a, this.history)), this.removeListeners = Te(he(this.contextWindow, "pointermove", this.handlePointerMove), he(this.contextWindow, "pointerup", this.handlePointerUp), he(this.contextWindow, "pointercancel", this.handlePointerUp));
@@ -3558,7 +3558,7 @@ const Si = () => ({
3558
3558
  }), Xe = () => ({
3559
3559
  x: Si(),
3560
3560
  y: Si()
3561
- }), Ei = () => ({ min: 0, max: 0 }), _ = () => ({
3561
+ }), Ei = () => ({ min: 0, max: 0 }), F = () => ({
3562
3562
  x: Ei(),
3563
3563
  y: Ei()
3564
3564
  });
@@ -3653,7 +3653,7 @@ function eh(e, t, n) {
3653
3653
  const Jo = ({ current: e }) => e ? e.ownerDocument.defaultView : null, th = /* @__PURE__ */ new WeakMap();
3654
3654
  class nh {
3655
3655
  constructor(t) {
3656
- this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = _(), this.visualElement = t;
3656
+ this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = F(), this.visualElement = t;
3657
3657
  }
3658
3658
  start(t, { snapToCursor: n = !1 } = {}) {
3659
3659
  const { presenceContext: r } = this.visualElement;
@@ -4185,7 +4185,7 @@ function Eh(e) {
4185
4185
  return e instanceof SVGElement && e.tagName !== "svg";
4186
4186
  }
4187
4187
  function Th(e, t, n) {
4188
- const r = X(e) ? e : Ye(e);
4188
+ const r = K(e) ? e : Ye(e);
4189
4189
  return r.start(Ar("", r, t, n)), r.animation;
4190
4190
  }
4191
4191
  const Ii = ["", "X", "Y", "Z"], Ah = { visibility: "hidden" }, Wi = 1e3;
@@ -4303,7 +4303,7 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4303
4303
  }
4304
4304
  this.isUpdating || this.nodes.forEach(Mh), this.isUpdating = !1, this.nodes.forEach(Lh), this.nodes.forEach(Ch), this.nodes.forEach(Rh), this.clearAllSnapshots();
4305
4305
  const a = performance.now();
4306
- $.delta = Pe(0, 1e3 / 60, a - $.timestamp), $.timestamp = a, $.isProcessing = !0, wn.update.process($), wn.preRender.process($), wn.render.process($), $.isProcessing = !1;
4306
+ q.delta = Pe(0, 1e3 / 60, a - q.timestamp), q.timestamp = a, q.isProcessing = !0, wn.update.process(q), wn.preRender.process(q), wn.render.process(q), q.isProcessing = !1;
4307
4307
  }
4308
4308
  didUpdate() {
4309
4309
  this.updateScheduled || (this.updateScheduled = !0, queueMicrotask(() => this.update()));
@@ -4332,7 +4332,7 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4332
4332
  for (let l = 0; l < this.path.length; l++)
4333
4333
  this.path[l].updateScroll();
4334
4334
  const s = this.layout;
4335
- this.layout = this.measure(!1), this.layoutCorrected = _(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
4335
+ this.layout = this.measure(!1), this.layoutCorrected = F(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
4336
4336
  const { visualElement: a } = this.options;
4337
4337
  a && a.notify("LayoutMeasure", this.layout.layoutBox, s ? s.layoutBox : void 0);
4338
4338
  }
@@ -4365,12 +4365,12 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4365
4365
  measurePageBox() {
4366
4366
  const { visualElement: s } = this.options;
4367
4367
  if (!s)
4368
- return _();
4368
+ return F();
4369
4369
  const a = s.measureViewportBox(), { scroll: l } = this.root;
4370
4370
  return l && (Se(a.x, l.offset.x), Se(a.y, l.offset.y)), a;
4371
4371
  }
4372
4372
  removeElementScroll(s) {
4373
- const a = _();
4373
+ const a = F();
4374
4374
  Z(a, s);
4375
4375
  for (let l = 0; l < this.path.length; l++) {
4376
4376
  const u = this.path[l], { scroll: f, options: c } = u;
@@ -4386,7 +4386,7 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4386
4386
  return a;
4387
4387
  }
4388
4388
  applyTransform(s, a = !1) {
4389
- const l = _();
4389
+ const l = F();
4390
4390
  Z(l, s);
4391
4391
  for (let u = 0; u < this.path.length; u++) {
4392
4392
  const f = this.path[u];
@@ -4398,14 +4398,14 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4398
4398
  return Me(this.latestValues) && Ke(l, this.latestValues), l;
4399
4399
  }
4400
4400
  removeTransform(s) {
4401
- const a = _();
4401
+ const a = F();
4402
4402
  Z(a, s);
4403
4403
  for (let l = 0; l < this.path.length; l++) {
4404
4404
  const u = this.path[l];
4405
4405
  if (!u.instance || !Me(u.latestValues))
4406
4406
  continue;
4407
4407
  Yn(u.latestValues) && u.updateSnapshot();
4408
- const f = _(), c = u.measurePageBox();
4408
+ const f = F(), c = u.measurePageBox();
4409
4409
  Z(f, c), _i(a, u.latestValues, u.snapshot ? u.snapshot.layoutBox : void 0, f);
4410
4410
  }
4411
4411
  return Me(this.latestValues) && _i(a, this.latestValues), a;
@@ -4424,7 +4424,7 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4424
4424
  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;
4425
4425
  }
4426
4426
  forceRelativeParentToResolveTarget() {
4427
- this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== $.timestamp && this.relativeParent.resolveTargetDelta(!0);
4427
+ this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== q.timestamp && this.relativeParent.resolveTargetDelta(!0);
4428
4428
  }
4429
4429
  resolveTargetDelta(s = !1) {
4430
4430
  var a;
@@ -4435,15 +4435,15 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4435
4435
  return;
4436
4436
  const { layout: c, layoutId: h } = this.options;
4437
4437
  if (!(!this.layout || !(c || h))) {
4438
- if (this.resolvedRelativeTargetAt = $.timestamp, !this.targetDelta && !this.relativeTarget) {
4438
+ if (this.resolvedRelativeTargetAt = q.timestamp, !this.targetDelta && !this.relativeTarget) {
4439
4439
  const d = this.getClosestProjectingParent();
4440
- d && d.layout && this.animationProgress !== 1 ? (this.relativeParent = d, this.forceRelativeParentToResolveTarget(), this.relativeTarget = _(), this.relativeTargetOrigin = _(), ut(this.relativeTargetOrigin, this.layout.layoutBox, d.layout.layoutBox), Z(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4440
+ d && d.layout && this.animationProgress !== 1 ? (this.relativeParent = d, this.forceRelativeParentToResolveTarget(), this.relativeTarget = F(), this.relativeTargetOrigin = F(), ut(this.relativeTargetOrigin, this.layout.layoutBox, d.layout.layoutBox), Z(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4441
4441
  }
4442
4442
  if (!(!this.relativeTarget && !this.targetDelta)) {
4443
- if (this.target || (this.target = _(), this.targetWithTransforms = _()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Uf(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : Z(this.target, this.layout.layoutBox), Ko(this.target, this.targetDelta)) : Z(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
4443
+ if (this.target || (this.target = F(), this.targetWithTransforms = F()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Uf(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : Z(this.target, this.layout.layoutBox), Ko(this.target, this.targetDelta)) : Z(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
4444
4444
  this.attemptToResolveRelativeTarget = !1;
4445
4445
  const d = this.getClosestProjectingParent();
4446
- d && !!d.resumingFrom == !!this.resumingFrom && !d.options.layoutScroll && d.target && this.animationProgress !== 1 ? (this.relativeParent = d, this.forceRelativeParentToResolveTarget(), this.relativeTarget = _(), this.relativeTargetOrigin = _(), ut(this.relativeTargetOrigin, this.target, d.target), Z(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4446
+ d && !!d.resumingFrom == !!this.resumingFrom && !d.options.layoutScroll && d.target && this.animationProgress !== 1 ? (this.relativeParent = d, this.forceRelativeParentToResolveTarget(), this.relativeTarget = F(), this.relativeTargetOrigin = F(), ut(this.relativeTargetOrigin, this.target, d.target), Z(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4447
4447
  }
4448
4448
  Le.resolvedTargetDeltas++;
4449
4449
  }
@@ -4460,7 +4460,7 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4460
4460
  var s;
4461
4461
  const a = this.getLead(), l = !!this.resumingFrom || this !== a;
4462
4462
  let u = !0;
4463
- if ((this.isProjectionDirty || !((s = this.parent) === null || s === void 0) && s.isProjectionDirty) && (u = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (u = !1), this.resolvedRelativeTargetAt === $.timestamp && (u = !1), u)
4463
+ if ((this.isProjectionDirty || !((s = this.parent) === null || s === void 0) && s.isProjectionDirty) && (u = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (u = !1), this.resolvedRelativeTargetAt === q.timestamp && (u = !1), u)
4464
4464
  return;
4465
4465
  const { layout: f, layoutId: c } = this.options;
4466
4466
  if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(f || c))
@@ -4493,12 +4493,12 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4493
4493
  setAnimationOrigin(s, a = !1) {
4494
4494
  const l = this.snapshot, u = l ? l.latestValues : {}, f = { ...this.latestValues }, c = Xe();
4495
4495
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
4496
- const h = _(), d = l ? l.source : void 0, p = this.layout ? this.layout.source : void 0, m = d !== p, g = this.getStack(), b = !g || g.members.length <= 1, x = !!(m && !b && this.options.crossfade === !0 && !this.path.some(Bh));
4496
+ const h = F(), d = l ? l.source : void 0, p = this.layout ? this.layout.source : void 0, m = d !== p, g = this.getStack(), b = !g || g.members.length <= 1, x = !!(m && !b && this.options.crossfade === !0 && !this.path.some(Bh));
4497
4497
  this.animationProgress = 0;
4498
4498
  let y;
4499
4499
  this.mixTargetDelta = (S) => {
4500
- const E = S / 1e3;
4501
- Hi(c.x, s.x, E), Hi(c.y, s.y, E), this.setTargetDelta(c), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ut(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Nh(this.relativeTarget, this.relativeTargetOrigin, h, E), y && yh(this.relativeTarget, y) && (this.isProjectionDirty = !1), y || (y = _()), Z(y, this.relativeTarget)), m && (this.animationValues = f, fh(f, u, this.latestValues, E, x, b)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = E;
4500
+ const T = S / 1e3;
4501
+ Hi(c.x, s.x, T), Hi(c.y, s.y, T), this.setTargetDelta(c), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ut(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Nh(this.relativeTarget, this.relativeTargetOrigin, h, T), y && yh(this.relativeTarget, y) && (this.isProjectionDirty = !1), y || (y = F()), Z(y, this.relativeTarget)), m && (this.animationValues = f, fh(f, u, this.latestValues, T, x, b)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = T;
4502
4502
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
4503
4503
  }
4504
4504
  startAnimation(s) {
@@ -4527,7 +4527,7 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4527
4527
  let { targetWithTransforms: a, target: l, layout: u, latestValues: f } = s;
4528
4528
  if (!(!a || !l || !u)) {
4529
4529
  if (this !== s && this.layout && u && ia(this.options.animationType, this.layout.layoutBox, u.layoutBox)) {
4530
- l = this.target || _();
4530
+ l = this.target || F();
4531
4531
  const c = J(this.layout.layoutBox.x);
4532
4532
  l.x.min = s.target.x.min, l.x.max = l.x.min + c;
4533
4533
  const h = J(this.layout.layoutBox.y);
@@ -4660,9 +4660,9 @@ function Rh(e) {
4660
4660
  if (c && !c.resumeFrom) {
4661
4661
  const { snapshot: h, layout: d } = c;
4662
4662
  if (h && d) {
4663
- const p = _();
4663
+ const p = F();
4664
4664
  ut(p, n.layoutBox, h.layoutBox);
4665
- const m = _();
4665
+ const m = F();
4666
4666
  ut(m, r, d.layoutBox), na(p, m) || (f = !0), c.options.layoutRoot && (e.relativeTarget = m, e.relativeTargetOrigin = p, e.relativeParent = c);
4667
4667
  }
4668
4668
  }
@@ -4918,9 +4918,9 @@ function rd(e, t, n) {
4918
4918
  const { willChange: r } = t;
4919
4919
  for (const i in t) {
4920
4920
  const o = t[i], s = n[i];
4921
- if (X(o))
4921
+ if (K(o))
4922
4922
  e.addValue(i, o), Xt(r) && r.add(i);
4923
- else if (X(s))
4923
+ else if (K(s))
4924
4924
  e.addValue(i, Ye(o, { owner: e })), Xt(r) && r.remove(i);
4925
4925
  else if (s !== o)
4926
4926
  if (e.hasValue(i)) {
@@ -4954,7 +4954,7 @@ class od {
4954
4954
  const { willChange: u, ...f } = this.scrapeMotionValuesFromProps(n, {});
4955
4955
  for (const c in f) {
4956
4956
  const h = f[c];
4957
- a[c] !== void 0 && X(h) && (h.set(a[c], !1), Xt(u) && u.add(c));
4957
+ a[c] !== void 0 && K(h) && (h.set(a[c], !1), Xt(u) && u.add(c));
4958
4958
  }
4959
4959
  }
4960
4960
  /**
@@ -5034,7 +5034,7 @@ class od {
5034
5034
  * removed with a re-render to work.
5035
5035
  */
5036
5036
  measureViewportBox() {
5037
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : _();
5037
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : F();
5038
5038
  }
5039
5039
  getStaticValue(t) {
5040
5040
  return this.latestValues[t];
@@ -5161,7 +5161,7 @@ class od {
5161
5161
  if (r && i !== void 0)
5162
5162
  return i;
5163
5163
  const o = this.getBaseTargetFromProps(this.props, t);
5164
- return o !== void 0 && !X(o) ? o : this.initialValues[t] !== void 0 && i === void 0 ? void 0 : this.baseTarget[t];
5164
+ return o !== void 0 && !K(o) ? o : this.initialValues[t] !== void 0 && i === void 0 ? void 0 : this.baseTarget[t];
5165
5165
  }
5166
5166
  on(t, n) {
5167
5167
  return this.events[t] || (this.events[t] = new Rr()), this.events[t].add(n);
@@ -5222,7 +5222,7 @@ class ld extends ca {
5222
5222
  handleChildMotionValue() {
5223
5223
  this.childSubscription && (this.childSubscription(), delete this.childSubscription);
5224
5224
  const { children: t } = this.props;
5225
- X(t) && (this.childSubscription = t.on("change", (n) => {
5225
+ K(t) && (this.childSubscription = t.on("change", (n) => {
5226
5226
  this.current && (this.current.textContent = `${n}`);
5227
5227
  }));
5228
5228
  }
@@ -5245,7 +5245,7 @@ class cd extends ca {
5245
5245
  return n = ro.has(n) ? n : cr(n), t.getAttribute(n);
5246
5246
  }
5247
5247
  measureInstanceViewportBox() {
5248
- return _();
5248
+ return F();
5249
5249
  }
5250
5250
  scrapeMotionValuesFromProps(t, n) {
5251
5251
  return so(t, n);
@@ -5498,13 +5498,13 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
5498
5498
  path: [],
5499
5499
  pattern: ["fill", "stroke"],
5500
5500
  radialGradient: ["fill", "stroke"]
5501
- }, S, E, T, A, P;
5501
+ }, S, T, E, A, P;
5502
5502
  Object.keys(y).forEach(function(z) {
5503
- S = z, T = y[z], E = c.querySelectorAll(S + "[id]");
5503
+ S = z, E = y[z], T = c.querySelectorAll(S + "[id]");
5504
5504
  for (var ge = function(Ie, gn) {
5505
- A = E[Ie].id, P = A + "-" + Cd();
5505
+ A = T[Ie].id, P = A + "-" + Cd();
5506
5506
  var Oe;
5507
- Array.prototype.forEach.call(T, function(yn) {
5507
+ Array.prototype.forEach.call(E, function(yn) {
5508
5508
  Oe = c.querySelectorAll("[" + yn + '*="' + A + '"]');
5509
5509
  for (var Tt = 0, Ba = Oe.length; Tt < Ba; Tt++) {
5510
5510
  var Nr = Oe[Tt].getAttribute(yn);
@@ -5513,21 +5513,21 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
5513
5513
  });
5514
5514
  for (var ue = c.querySelectorAll("[*|href]"), We = [], Ue = 0, tt = ue.length; Ue < tt; Ue++) {
5515
5515
  var Ve = ue[Ue].getAttributeNS(Dn, "href");
5516
- Ve && Ve.toString() === "#" + E[Ie].id && We.push(ue[Ue]);
5516
+ Ve && Ve.toString() === "#" + T[Ie].id && We.push(ue[Ue]);
5517
5517
  }
5518
5518
  for (var te = 0, Fr = We.length; te < Fr; te++)
5519
5519
  We[te].setAttributeNS(Dn, "href", "#" + P);
5520
- E[Ie].id = P;
5521
- }, Ne = 0, k = E.length; Ne < k; Ne++)
5520
+ T[Ie].id = P;
5521
+ }, Ne = 0, k = T.length; Ne < k; Ne++)
5522
5522
  ge(Ne);
5523
5523
  });
5524
5524
  }
5525
5525
  c.removeAttribute("xmlns:a");
5526
- for (var O = c.querySelectorAll("script"), W = [], K, N, H = 0, U = O.length; H < U; H++)
5527
- N = O[H].getAttribute("type"), (!N || N === "application/ecmascript" || N === "application/javascript" || N === "text/javascript") && (K = O[H].innerText || O[H].textContent, K && W.push(K), c.removeChild(O[H]));
5528
- if (W.length > 0 && (n === "always" || n === "once" && !rs[l])) {
5529
- for (var re = 0, B = W.length; re < B; re++)
5530
- new Function(W[re])(window);
5526
+ for (var O = c.querySelectorAll("script"), _ = [], H, B, $ = 0, U = O.length; $ < U; $++)
5527
+ B = O[$].getAttribute("type"), (!B || B === "application/ecmascript" || B === "application/javascript" || B === "text/javascript") && (H = O[$].innerText || O[$].textContent, H && _.push(H), c.removeChild(O[$]));
5528
+ if (_.length > 0 && (n === "always" || n === "once" && !rs[l])) {
5529
+ for (var re = 0, I = _.length; re < I; re++)
5530
+ new Function(_[re])(window);
5531
5531
  rs[l] = !0;
5532
5532
  }
5533
5533
  var ie = c.querySelectorAll("style");
@@ -5546,12 +5546,12 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
5546
5546
  } : l, f = r.cacheRequests, c = f === void 0 ? !0 : f, h = r.evalScripts, d = h === void 0 ? "never" : h, p = r.httpRequestWithCredentials, m = p === void 0 ? !1 : p, g = r.renumerateIRIElements, b = g === void 0 ? !0 : g;
5547
5547
  if (t && "length" in t)
5548
5548
  for (var x = 0, y = 0, S = t.length; y < S; y++)
5549
- is(t[y], d, b, c, m, u, function(E, T) {
5550
- a(E, T), t && "length" in t && t.length === ++x && o(x);
5549
+ is(t[y], d, b, c, m, u, function(T, E) {
5550
+ a(T, E), t && "length" in t && t.length === ++x && o(x);
5551
5551
  });
5552
5552
  else
5553
- t ? is(t, d, b, c, m, u, function(E, T) {
5554
- a(E, T), o(1), t = null;
5553
+ t ? is(t, d, b, c, m, u, function(T, E) {
5554
+ a(T, E), o(1), t = null;
5555
5555
  }) : o(0);
5556
5556
  }, Vd = function(t) {
5557
5557
  var n = (t == null ? void 0 : t.ownerDocument) || document;
@@ -5611,7 +5611,7 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
5611
5611
  y(O);
5612
5612
  }
5613
5613
  });
5614
- }, E = function(A) {
5614
+ }, T = function(A) {
5615
5615
  if (A.setAttribute("role", "img"), s) {
5616
5616
  var P = A.querySelector(":scope > desc");
5617
5617
  P && A.removeChild(P);
@@ -5619,20 +5619,20 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
5619
5619
  O.innerHTML = s, A.prepend(O);
5620
5620
  }
5621
5621
  if (c) {
5622
- var W = A.querySelector(":scope > title");
5623
- W && A.removeChild(W);
5624
- var K = document.createElement("title");
5625
- K.innerHTML = c, A.prepend(K);
5622
+ var _ = A.querySelector(":scope > title");
5623
+ _ && A.removeChild(_);
5624
+ var H = document.createElement("title");
5625
+ H.innerHTML = c, A.prepend(H);
5626
5626
  }
5627
5627
  try {
5628
5628
  p(A);
5629
- } catch (N) {
5630
- y(N);
5629
+ } catch (B) {
5630
+ y(B);
5631
5631
  }
5632
5632
  };
5633
5633
  Od(x, {
5634
5634
  afterEach: S,
5635
- beforeEach: E,
5635
+ beforeEach: T,
5636
5636
  cacheRequests: h,
5637
5637
  evalScripts: a,
5638
5638
  httpRequestWithCredentials: l,
@@ -5687,48 +5687,48 @@ Or.defaultProps = {
5687
5687
  wrapper: "div"
5688
5688
  };
5689
5689
  Or.propTypes = {
5690
- afterInjection: I.func,
5691
- beforeInjection: I.func,
5692
- desc: I.string,
5693
- evalScripts: I.oneOf(["always", "once", "never"]),
5694
- fallback: I.oneOfType([I.func, I.object, I.string]),
5695
- httpRequestWithCredentials: I.bool,
5696
- loading: I.oneOfType([I.func, I.object, I.string]),
5697
- onError: I.func,
5698
- renumerateIRIElements: I.bool,
5699
- src: I.string.isRequired,
5700
- title: I.string,
5701
- useRequestCache: I.bool,
5702
- wrapper: I.oneOf(["div", "span", "svg"])
5690
+ afterInjection: W.func,
5691
+ beforeInjection: W.func,
5692
+ desc: W.string,
5693
+ evalScripts: W.oneOf(["always", "once", "never"]),
5694
+ fallback: W.oneOfType([W.func, W.object, W.string]),
5695
+ httpRequestWithCredentials: W.bool,
5696
+ loading: W.oneOfType([W.func, W.object, W.string]),
5697
+ onError: W.func,
5698
+ renumerateIRIElements: W.bool,
5699
+ src: W.string.isRequired,
5700
+ title: W.string,
5701
+ useRequestCache: W.bool,
5702
+ wrapper: W.oneOf(["div", "span", "svg"])
5703
5703
  };
5704
5704
  function da({ item: e, level: t = 0, ...n }) {
5705
- var b;
5706
- const { isActive: r, isCollapsed: i, expanded: o, toggleExpand: s } = n, a = `level-${t}`, l = i ? "collapsed" : "expanded", u = r(e.id) ? "active" : "", f = (x, y = a) => `${x} ${y} ${l} ${u}`, c = !!((b = e.children) != null && b.length), [h, d] = w.useState(!1), p = w.useRef();
5707
- function m(x) {
5708
- var T;
5709
- const { level: y, hovered: S, parentRef: E } = x;
5710
- return !c || i && y >= 2 && !S ? null : /* @__PURE__ */ R.jsx(
5705
+ var T;
5706
+ const { isActive: r, isCollapsed: i, expanded: o, toggleExpand: s } = n, a = `level-${t}`, l = i ? "collapsed" : "expanded", u = r(e.id) ? "active" : "", f = (E, A = a) => `${E} ${A} ${l} ${u}`, c = !!((T = e.children) != null && T.length), [h, d] = w.useState(!1), p = w.useRef();
5707
+ function m(E) {
5708
+ var _;
5709
+ const { level: A, hovered: P, parentRef: O } = E;
5710
+ return !c || i && A >= 2 && !P ? null : /* @__PURE__ */ R.jsx(
5711
5711
  dd,
5712
5712
  {
5713
- parentRef: E,
5714
- onlyChild: !i || i && y < 2,
5713
+ parentRef: O,
5714
+ onlyChild: !i || i && A < 2,
5715
5715
  children: /* @__PURE__ */ R.jsx(
5716
5716
  ua.div,
5717
5717
  {
5718
- className: f("menu-item__dropdown", `level-${y}`),
5718
+ className: f("menu-item__dropdown", `level-${A}`),
5719
5719
  initial: { height: i ? "auto" : 0 },
5720
5720
  animate: {
5721
5721
  height: i || o(e.id) ? "auto" : 0
5722
5722
  },
5723
5723
  transition: { duration: 0.2 },
5724
- children: (T = e.children) == null ? void 0 : T.map((A) => /* @__PURE__ */ w.createElement(da, { ...n, key: A.id, item: A, level: y }))
5724
+ children: (_ = e.children) == null ? void 0 : _.map((H) => /* @__PURE__ */ w.createElement(da, { ...n, key: H.id, item: H, level: A }))
5725
5725
  },
5726
5726
  +i
5727
5727
  )
5728
5728
  }
5729
5729
  );
5730
5730
  }
5731
- const g = c ? "div" : yl;
5731
+ const g = c ? "#" : e.path || "#", b = window.location.pathname.split("/")[1], x = g.split("/")[1], y = b !== x && g !== "#" ? window.location.origin + g : g, S = c ? "div" : y.includes("https") ? "a" : yl;
5732
5732
  return /* @__PURE__ */ R.jsxs(
5733
5733
  "div",
5734
5734
  {
@@ -5738,15 +5738,15 @@ function da({ item: e, level: t = 0, ...n }) {
5738
5738
  onMouseLeave: () => i && d(!1),
5739
5739
  children: [
5740
5740
  /* @__PURE__ */ R.jsxs(
5741
- g,
5741
+ S,
5742
5742
  {
5743
- to: c ? "#" : e.path || "#",
5743
+ to: y,
5744
5744
  style: {
5745
5745
  paddingLeft: `${i ? "0.5rem" : `${t * 1}rem`}`
5746
5746
  },
5747
5747
  className: f("menu-item__link"),
5748
- onClick: (x) => {
5749
- c && (x.preventDefault(), i || s(e.id));
5748
+ onClick: (E) => {
5749
+ c && (E.preventDefault(), i || s(e.id));
5750
5750
  },
5751
5751
  children: [
5752
5752
  t !== 0 && /* @__PURE__ */ R.jsx(Ld, { cls: f, item: e }),
@@ -7259,27 +7259,27 @@ function ja(e) {
7259
7259
  return ja(Ze(e, i));
7260
7260
  }, n;
7261
7261
  }
7262
- const F = ja(Lr);
7263
- F.Axios = Ft;
7264
- F.CanceledError = Et;
7265
- F.CancelToken = Xp;
7266
- F.isCancel = ka;
7267
- F.VERSION = Da;
7268
- F.toFormData = pn;
7269
- F.AxiosError = V;
7270
- F.Cancel = F.CanceledError;
7271
- F.all = function(t) {
7262
+ const N = ja(Lr);
7263
+ N.Axios = Ft;
7264
+ N.CanceledError = Et;
7265
+ N.CancelToken = Xp;
7266
+ N.isCancel = ka;
7267
+ N.VERSION = Da;
7268
+ N.toFormData = pn;
7269
+ N.AxiosError = V;
7270
+ N.Cancel = N.CanceledError;
7271
+ N.all = function(t) {
7272
7272
  return Promise.all(t);
7273
7273
  };
7274
- F.spread = Kp;
7275
- F.isAxiosError = Yp;
7276
- F.mergeConfig = Ze;
7277
- F.AxiosHeaders = pe;
7278
- F.formToJSON = (e) => Va(v.isHTMLForm(e) ? new FormData(e) : e);
7279
- F.getAdapter = La.getAdapter;
7280
- F.HttpStatusCode = Jp;
7281
- F.default = F;
7282
- const Zp = F, Qp = `[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
7274
+ N.spread = Kp;
7275
+ N.isAxiosError = Yp;
7276
+ N.mergeConfig = Ze;
7277
+ N.AxiosHeaders = pe;
7278
+ N.formToJSON = (e) => Va(v.isHTMLForm(e) ? new FormData(e) : e);
7279
+ N.getAdapter = La.getAdapter;
7280
+ N.HttpStatusCode = Jp;
7281
+ N.default = N;
7282
+ const Zp = N, Qp = `[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
7283
7283
  `;
7284
7284
  function em() {
7285
7285
  return /* @__PURE__ */ R.jsxs(
@@ -7542,15 +7542,15 @@ function hm(e) {
7542
7542
  (async () => {
7543
7543
  const y = t + (n || "/global-menu-config/api/v1/menu-items/user"), S = await Zp.get(y, {
7544
7544
  withCredentials: !0
7545
- }).then((T) => T.data).catch((T) => {
7545
+ }).then((E) => E.data).catch((E) => {
7546
7546
  var A, P;
7547
7547
  um(
7548
- ((P = (A = T.response) == null ? void 0 : A.data) == null ? void 0 : P.errorMessage) || "Have error when get menu items"
7548
+ ((P = (A = E.response) == null ? void 0 : A.data) == null ? void 0 : P.errorMessage) || "Have error when get menu items"
7549
7549
  );
7550
- }), E = {};
7551
- S.forEach((T) => {
7552
- T.children && (E[T.id] = !0);
7553
- }), c(E), s(S.map((T) => ({ ...T, parentKey: 0 })));
7550
+ }), T = {};
7551
+ S.forEach((E) => {
7552
+ E.children && (T[E.id] = !0);
7553
+ }), c(T), s(S.map((E) => ({ ...E, parentKey: 0 })));
7554
7554
  })();
7555
7555
  }, [t, n]);
7556
7556
  const [p, m] = w.useState(!1), g = a ? "collapsed" : "expanded", b = (x) => `${x} ${g}`;
@@ -7575,7 +7575,7 @@ function hm(e) {
7575
7575
  overflowX: "hidden"
7576
7576
  },
7577
7577
  children: o.map((x) => {
7578
- const y = (S) => u.some((E) => E.id === S);
7578
+ const y = (S) => u.some((T) => T.id === S);
7579
7579
  return /* @__PURE__ */ R.jsx(
7580
7580
  da,
7581
7581
  {