strapi-plugin-navigation 3.2.0 → 3.2.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.
@@ -107,9 +107,9 @@ const mx = {
107
107
  };
108
108
  class Xi {
109
109
  fromJulianDay(e) {
110
- let n = e, r = n - hm, i = Math.floor(r / 146097), o = Yc(r, 146097), s = Math.floor(o / 36524), a = Yc(o, 36524), l = Math.floor(a / 1461), c = Yc(a, 1461), d = Math.floor(c / 365), u = i * 400 + s * 100 + l * 4 + d + (s !== 4 && d !== 4 ? 1 : 0), [f, p] = gx(u), m = n - Zs(f, p, 1, 1), g = 2;
111
- n < Zs(f, p, 3, 1) ? g = 0 : _a(p) && (g = 1);
112
- let b = Math.floor(((m + g) * 12 + 373) / 367), v = n - Zs(f, p, b, 1) + 1;
110
+ let n = e, r = n - hm, i = Math.floor(r / 146097), o = Yc(r, 146097), s = Math.floor(o / 36524), a = Yc(o, 36524), l = Math.floor(a / 1461), c = Yc(a, 1461), d = Math.floor(c / 365), u = i * 400 + s * 100 + l * 4 + d + (s !== 4 && d !== 4 ? 1 : 0), [f, p] = gx(u), g = n - Zs(f, p, 1, 1), m = 2;
111
+ n < Zs(f, p, 3, 1) ? m = 0 : _a(p) && (m = 1);
112
+ let b = Math.floor(((g + m) * 12 + 373) / 367), v = n - Zs(f, p, b, 1) + 1;
113
113
  return new ns(f, p, b, v);
114
114
  }
115
115
  toJulianDay(e) {
@@ -572,20 +572,20 @@ function Ox(t, e, n, r) {
572
572
  case "hour": {
573
573
  let i = 0, o = 23;
574
574
  if (r?.hourCycle === 12) {
575
- let m = t.hour >= 12;
576
- i = m ? 12 : 0, o = m ? 23 : 11;
575
+ let g = t.hour >= 12;
576
+ i = g ? 12 : 0, o = g ? 23 : 11;
577
577
  }
578
578
  let s = ni(t), a = on(rl(s, {
579
579
  hour: i
580
580
  }), new Xi()), l = [
581
581
  Xn(a, t.timeZone, "earlier"),
582
582
  Xn(a, t.timeZone, "later")
583
- ].filter((m) => Zn(m, t.timeZone).day === a.day)[0], c = on(rl(s, {
583
+ ].filter((g) => Zn(g, t.timeZone).day === a.day)[0], c = on(rl(s, {
584
584
  hour: o
585
585
  }), new Xi()), d = [
586
586
  Xn(c, t.timeZone, "earlier"),
587
587
  Xn(c, t.timeZone, "later")
588
- ].filter((m) => Zn(m, t.timeZone).day === c.day).pop(), u = Zi(t) - t.offset, f = Math.floor(u / Do), p = u % Do;
588
+ ].filter((g) => Zn(g, t.timeZone).day === c.day).pop(), u = Zi(t) - t.offset, f = Math.floor(u / Do), p = u % Do;
589
589
  return u = Jn(f, n, Math.floor(l / Do), Math.floor(d / Do), r?.round) * Do + p, on(Zn(u, t.timeZone), t.calendar);
590
590
  }
591
591
  case "minute":
@@ -971,17 +971,17 @@ function Je(t, e = []) {
971
971
  s
972
972
  ];
973
973
  function c(u) {
974
- const { scope: f, children: p, ...m } = u, g = f?.[t][l] || a, b = Pe(
975
- () => m,
976
- Object.values(m)
974
+ const { scope: f, children: p, ...g } = u, m = f?.[t][l] || a, b = Pe(
975
+ () => g,
976
+ Object.values(g)
977
977
  );
978
- return /* @__PURE__ */ M(g.Provider, {
978
+ return /* @__PURE__ */ M(m.Provider, {
979
979
  value: b
980
980
  }, p);
981
981
  }
982
982
  function d(u, f) {
983
- const p = f?.[t][l] || a, m = go(p);
984
- if (m) return m;
983
+ const p = f?.[t][l] || a, g = go(p);
984
+ if (g) return g;
985
985
  if (s !== void 0) return s;
986
986
  throw new Error(`\`${u}\` must be used within \`${o}\``);
987
987
  }
@@ -1145,7 +1145,7 @@ const i6 = /* @__PURE__ */ ti({
1145
1145
  branches: /* @__PURE__ */ new Set()
1146
1146
  }), fi = /* @__PURE__ */ A((t, e) => {
1147
1147
  var n;
1148
- const { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: i, onPointerDownOutside: o, onFocusOutside: s, onInteractOutside: a, onDismiss: l, ...c } = t, d = go(i6), [u, f] = Z(null), p = (n = u?.ownerDocument) !== null && n !== void 0 ? n : globalThis?.document, [, m] = Z({}), g = pe(
1148
+ const { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: i, onPointerDownOutside: o, onFocusOutside: s, onInteractOutside: a, onDismiss: l, ...c } = t, d = go(i6), [u, f] = Z(null), p = (n = u?.ownerDocument) !== null && n !== void 0 ? n : globalThis?.document, [, g] = Z({}), m = pe(
1149
1149
  e,
1150
1150
  (D) => f(D)
1151
1151
  ), b = Array.from(d.layers), [v] = [
@@ -1183,10 +1183,10 @@ const i6 = /* @__PURE__ */ ti({
1183
1183
  u,
1184
1184
  d
1185
1185
  ]), J(() => {
1186
- const D = () => m({});
1186
+ const D = () => g({});
1187
1187
  return document.addEventListener(rh, D), () => document.removeEventListener(rh, D);
1188
1188
  }, []), /* @__PURE__ */ M(de.div, H({}, c, {
1189
- ref: g,
1189
+ ref: m,
1190
1190
  style: {
1191
1191
  pointerEvents: C ? $ ? "auto" : "none" : void 0,
1192
1192
  ...t.style
@@ -1445,12 +1445,12 @@ const x6 = async (t, e, n) => {
1445
1445
  }), {
1446
1446
  x: d,
1447
1447
  y: u
1448
- } = X0(c, r, l), f = r, p = {}, m = 0;
1449
- for (let g = 0; g < a.length; g++) {
1448
+ } = X0(c, r, l), f = r, p = {}, g = 0;
1449
+ for (let m = 0; m < a.length; m++) {
1450
1450
  const {
1451
1451
  name: b,
1452
1452
  fn: v
1453
- } = a[g], {
1453
+ } = a[m], {
1454
1454
  x: w,
1455
1455
  y: x,
1456
1456
  data: C,
@@ -1475,14 +1475,14 @@ const x6 = async (t, e, n) => {
1475
1475
  ...p[b],
1476
1476
  ...C
1477
1477
  }
1478
- }, $ && m <= 50 && (m++, typeof $ == "object" && ($.placement && (f = $.placement), $.rects && (c = $.rects === !0 ? await s.getElementRects({
1478
+ }, $ && g <= 50 && (g++, typeof $ == "object" && ($.placement && (f = $.placement), $.rects && (c = $.rects === !0 ? await s.getElementRects({
1479
1479
  reference: t,
1480
1480
  floating: e,
1481
1481
  strategy: i
1482
1482
  }) : $.rects), {
1483
1483
  x: d,
1484
1484
  y: u
1485
- } = X0(c, f, l)), g = -1);
1485
+ } = X0(c, f, l)), m = -1);
1486
1486
  }
1487
1487
  return {
1488
1488
  x: d,
@@ -1508,7 +1508,7 @@ async function rs(t, e) {
1508
1508
  elementContext: u = "floating",
1509
1509
  altBoundary: f = !1,
1510
1510
  padding: p = 0
1511
- } = nr(e, t), m = Em(p), b = a[f ? u === "floating" ? "reference" : "floating" : u], v = al(await o.getClippingRect({
1511
+ } = nr(e, t), g = Em(p), b = a[f ? u === "floating" ? "reference" : "floating" : u], v = al(await o.getClippingRect({
1512
1512
  element: (n = await (o.isElement == null ? void 0 : o.isElement(b))) == null || n ? b : b.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(a.floating)),
1513
1513
  boundary: c,
1514
1514
  rootBoundary: d,
@@ -1531,10 +1531,10 @@ async function rs(t, e) {
1531
1531
  strategy: l
1532
1532
  }) : w);
1533
1533
  return {
1534
- top: (v.top - $.top + m.top) / C.y,
1535
- bottom: ($.bottom - v.bottom + m.bottom) / C.y,
1536
- left: (v.left - $.left + m.left) / C.x,
1537
- right: ($.right - v.right + m.right) / C.x
1534
+ top: (v.top - $.top + g.top) / C.y,
1535
+ bottom: ($.bottom - v.bottom + g.bottom) / C.y,
1536
+ left: (v.left - $.left + g.left) / C.x,
1537
+ right: ($.right - v.right + g.right) / C.x
1538
1538
  };
1539
1539
  }
1540
1540
  const C6 = (t) => ({
@@ -1558,10 +1558,10 @@ const C6 = (t) => ({
1558
1558
  const u = Em(d), f = {
1559
1559
  x: n,
1560
1560
  y: r
1561
- }, p = Vu(i), m = Fu(p), g = await s.getDimensions(c), b = p === "y", v = b ? "top" : "left", w = b ? "bottom" : "right", x = b ? "clientHeight" : "clientWidth", C = o.reference[m] + o.reference[p] - f[p] - o.floating[m], $ = f[p] - o.reference[p], S = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
1561
+ }, p = Vu(i), g = Fu(p), m = await s.getDimensions(c), b = p === "y", v = b ? "top" : "left", w = b ? "bottom" : "right", x = b ? "clientHeight" : "clientWidth", C = o.reference[g] + o.reference[p] - f[p] - o.floating[g], $ = f[p] - o.reference[p], S = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
1562
1562
  let k = S ? S[x] : 0;
1563
- (!k || !await (s.isElement == null ? void 0 : s.isElement(S))) && (k = a.floating[x] || o.floating[m]);
1564
- const D = C / 2 - $ / 2, E = k / 2 - g[m] / 2 - 1, O = Sr(u[v], E), V = Sr(u[w], E), B = O, q = k - g[m] - V, z = k / 2 - g[m] / 2 + D, K = ih(B, z, q), Q = !l.arrow && vo(i) != null && z !== K && o.reference[m] / 2 - (z < B ? O : V) - g[m] / 2 < 0, j = Q ? z < B ? z - B : z - q : 0;
1563
+ (!k || !await (s.isElement == null ? void 0 : s.isElement(S))) && (k = a.floating[x] || o.floating[g]);
1564
+ const D = C / 2 - $ / 2, E = k / 2 - m[g] / 2 - 1, O = Sr(u[v], E), V = Sr(u[w], E), B = O, q = k - m[g] - V, z = k / 2 - m[g] / 2 + D, K = ih(B, z, q), Q = !l.arrow && vo(i) != null && z !== K && o.reference[g] / 2 - (z < B ? O : V) - m[g] / 2 < 0, j = Q ? z < B ? z - B : z - q : 0;
1565
1565
  return {
1566
1566
  [p]: f[p] + j,
1567
1567
  data: {
@@ -1592,14 +1592,14 @@ const C6 = (t) => ({
1592
1592
  crossAxis: u = !0,
1593
1593
  fallbackPlacements: f,
1594
1594
  fallbackStrategy: p = "bestFit",
1595
- fallbackAxisSideDirection: m = "none",
1596
- flipAlignment: g = !0,
1595
+ fallbackAxisSideDirection: g = "none",
1596
+ flipAlignment: m = !0,
1597
1597
  ...b
1598
1598
  } = nr(t, e);
1599
1599
  if ((n = o.arrow) != null && n.alignmentOffset)
1600
1600
  return {};
1601
- const v = rr(i), w = An(a), x = rr(a) === a, C = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), $ = f || (x || !g ? [sl(a)] : g6(a)), S = m !== "none";
1602
- !f && S && $.push(...w6(a, g, m, C));
1601
+ const v = rr(i), w = An(a), x = rr(a) === a, C = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), $ = f || (x || !m ? [sl(a)] : g6(a)), S = g !== "none";
1602
+ !f && S && $.push(...w6(a, m, g, C));
1603
1603
  const k = [a, ...$], D = await rs(e, b), E = [];
1604
1604
  let O = ((r = o.flip) == null ? void 0 : r.overflows) || [];
1605
1605
  if (d && E.push(D[v]), u) {
@@ -1718,7 +1718,7 @@ async function A6(t, e) {
1718
1718
  let {
1719
1719
  mainAxis: f,
1720
1720
  crossAxis: p,
1721
- alignmentAxis: m
1721
+ alignmentAxis: g
1722
1722
  } = typeof u == "number" ? {
1723
1723
  mainAxis: u,
1724
1724
  crossAxis: 0,
@@ -1728,7 +1728,7 @@ async function A6(t, e) {
1728
1728
  crossAxis: u.crossAxis || 0,
1729
1729
  alignmentAxis: u.alignmentAxis
1730
1730
  };
1731
- return a && typeof m == "number" && (p = a === "end" ? m * -1 : m), l ? {
1731
+ return a && typeof g == "number" && (p = a === "end" ? g * -1 : g), l ? {
1732
1732
  x: p * d,
1733
1733
  y: f * c
1734
1734
  } : {
@@ -1787,25 +1787,25 @@ const k6 = function(t) {
1787
1787
  x: n,
1788
1788
  y: r
1789
1789
  }, d = await rs(e, l), u = An(rr(i)), f = Bu(u);
1790
- let p = c[f], m = c[u];
1790
+ let p = c[f], g = c[u];
1791
1791
  if (o) {
1792
1792
  const b = f === "y" ? "top" : "left", v = f === "y" ? "bottom" : "right", w = p + d[b], x = p - d[v];
1793
1793
  p = ih(w, p, x);
1794
1794
  }
1795
1795
  if (s) {
1796
- const b = u === "y" ? "top" : "left", v = u === "y" ? "bottom" : "right", w = m + d[b], x = m - d[v];
1797
- m = ih(w, m, x);
1796
+ const b = u === "y" ? "top" : "left", v = u === "y" ? "bottom" : "right", w = g + d[b], x = g - d[v];
1797
+ g = ih(w, g, x);
1798
1798
  }
1799
- const g = a.fn({
1799
+ const m = a.fn({
1800
1800
  ...e,
1801
1801
  [f]: p,
1802
- [u]: m
1802
+ [u]: g
1803
1803
  });
1804
1804
  return {
1805
- ...g,
1805
+ ...m,
1806
1806
  data: {
1807
- x: g.x - n,
1808
- y: g.y - r,
1807
+ x: m.x - n,
1808
+ y: m.y - r,
1809
1809
  enabled: {
1810
1810
  [f]: o,
1811
1811
  [u]: s
@@ -1832,14 +1832,14 @@ const k6 = function(t) {
1832
1832
  x: n,
1833
1833
  y: r
1834
1834
  }, u = An(i), f = Bu(u);
1835
- let p = d[f], m = d[u];
1836
- const g = nr(a, e), b = typeof g == "number" ? {
1837
- mainAxis: g,
1835
+ let p = d[f], g = d[u];
1836
+ const m = nr(a, e), b = typeof m == "number" ? {
1837
+ mainAxis: m,
1838
1838
  crossAxis: 0
1839
1839
  } : {
1840
1840
  mainAxis: 0,
1841
1841
  crossAxis: 0,
1842
- ...g
1842
+ ...m
1843
1843
  };
1844
1844
  if (l) {
1845
1845
  const x = f === "y" ? "height" : "width", C = o.reference[f] - o.floating[x] + b.mainAxis, $ = o.reference[f] + o.reference[x] - b.mainAxis;
@@ -1848,11 +1848,11 @@ const k6 = function(t) {
1848
1848
  if (c) {
1849
1849
  var v, w;
1850
1850
  const x = f === "y" ? "width" : "height", C = Dm.has(rr(i)), $ = o.reference[u] - o.floating[x] + (C && ((v = s.offset) == null ? void 0 : v[u]) || 0) + (C ? 0 : b.crossAxis), S = o.reference[u] + o.reference[x] + (C ? 0 : ((w = s.offset) == null ? void 0 : w[u]) || 0) - (C ? b.crossAxis : 0);
1851
- m < $ ? m = $ : m > S && (m = S);
1851
+ g < $ ? g = $ : g > S && (g = S);
1852
1852
  }
1853
1853
  return {
1854
1854
  [f]: p,
1855
- [u]: m
1855
+ [u]: g
1856
1856
  };
1857
1857
  }
1858
1858
  };
@@ -1872,16 +1872,16 @@ const k6 = function(t) {
1872
1872
  },
1873
1873
  ...c
1874
1874
  } = nr(t, e), d = await rs(e, c), u = rr(i), f = vo(i), p = An(i) === "y", {
1875
- width: m,
1876
- height: g
1875
+ width: g,
1876
+ height: m
1877
1877
  } = o.floating;
1878
1878
  let b, v;
1879
1879
  u === "top" || u === "bottom" ? (b = u, v = f === (await (s.isRTL == null ? void 0 : s.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (v = u, b = f === "end" ? "top" : "bottom");
1880
- const w = g - d.top - d.bottom, x = m - d.left - d.right, C = Sr(g - d[b], w), $ = Sr(m - d[v], x), S = !e.middlewareData.shift;
1880
+ const w = m - d.top - d.bottom, x = g - d.left - d.right, C = Sr(m - d[b], w), $ = Sr(g - d[v], x), S = !e.middlewareData.shift;
1881
1881
  let k = C, D = $;
1882
1882
  if ((n = e.middlewareData.shift) != null && n.enabled.x && (D = x), (r = e.middlewareData.shift) != null && r.enabled.y && (k = w), S && !f) {
1883
1883
  const O = Ut(d.left, 0), V = Ut(d.right, 0), B = Ut(d.top, 0), q = Ut(d.bottom, 0);
1884
- p ? D = m - 2 * (O !== 0 || V !== 0 ? O + V : Ut(d.left, d.right)) : k = g - 2 * (B !== 0 || q !== 0 ? B + q : Ut(d.top, d.bottom));
1884
+ p ? D = g - 2 * (O !== 0 || V !== 0 ? O + V : Ut(d.left, d.right)) : k = m - 2 * (B !== 0 || q !== 0 ? B + q : Ut(d.top, d.bottom));
1885
1885
  }
1886
1886
  await l({
1887
1887
  ...e,
@@ -1889,7 +1889,7 @@ const k6 = function(t) {
1889
1889
  availableHeight: k
1890
1890
  });
1891
1891
  const E = await s.getDimensions(a.floating);
1892
- return m !== E.width || g !== E.height ? {
1892
+ return g !== E.width || m !== E.height ? {
1893
1893
  reset: {
1894
1894
  rects: !0
1895
1895
  }
@@ -2059,10 +2059,10 @@ function ii(t, e, n, r) {
2059
2059
  let l = (i.left + a.x) / s.x, c = (i.top + a.y) / s.y, d = i.width / s.x, u = i.height / s.y;
2060
2060
  if (o) {
2061
2061
  const f = Kt(o), p = r && cn(r) ? Kt(r) : r;
2062
- let m = f, g = sh(m);
2063
- for (; g && r && p !== m; ) {
2064
- const b = Fi(g), v = g.getBoundingClientRect(), w = dn(g), x = v.left + (g.clientLeft + parseFloat(w.paddingLeft)) * b.x, C = v.top + (g.clientTop + parseFloat(w.paddingTop)) * b.y;
2065
- l *= b.x, c *= b.y, d *= b.x, u *= b.y, l += x, c += C, m = Kt(g), g = sh(m);
2062
+ let g = f, m = sh(g);
2063
+ for (; m && r && p !== g; ) {
2064
+ const b = Fi(m), v = m.getBoundingClientRect(), w = dn(m), x = v.left + (m.clientLeft + parseFloat(w.paddingLeft)) * b.x, C = v.top + (m.clientTop + parseFloat(w.paddingTop)) * b.y;
2065
+ l *= b.x, c *= b.y, d *= b.x, u *= b.y, l += x, c += C, g = Kt(m), m = sh(g);
2066
2066
  }
2067
2067
  }
2068
2068
  return al({
@@ -2317,8 +2317,8 @@ function e4(t, e) {
2317
2317
  } = c;
2318
2318
  if (a || e(), !f || !p)
2319
2319
  return;
2320
- const m = ea(u), g = ea(i.clientWidth - (d + f)), b = ea(i.clientHeight - (u + p)), v = ea(d), x = {
2321
- rootMargin: -m + "px " + -g + "px " + -b + "px " + -v + "px",
2320
+ const g = ea(u), m = ea(i.clientWidth - (d + f)), b = ea(i.clientHeight - (u + p)), v = ea(d), x = {
2321
+ rootMargin: -g + "px " + -m + "px " + -b + "px " + -v + "px",
2322
2322
  threshold: Ut(0, Sr(1, l)) || 1
2323
2323
  };
2324
2324
  let C = !0;
@@ -2369,17 +2369,17 @@ function Pm(t, e, n, r) {
2369
2369
  (x = p) == null || x.observe(e);
2370
2370
  })), n();
2371
2371
  }), c && !l && p.observe(c), p.observe(e));
2372
- let m, g = l ? ii(t) : null;
2372
+ let g, m = l ? ii(t) : null;
2373
2373
  l && b();
2374
2374
  function b() {
2375
2375
  const v = ii(t);
2376
- g && !Hm(g, v) && n(), g = v, m = requestAnimationFrame(b);
2376
+ m && !Hm(m, v) && n(), m = v, g = requestAnimationFrame(b);
2377
2377
  }
2378
2378
  return n(), () => {
2379
2379
  var v;
2380
2380
  d.forEach((w) => {
2381
2381
  i && w.removeEventListener("scroll", n), o && w.removeEventListener("resize", n);
2382
- }), u?.(), (v = p) == null || v.disconnect(), p = null, l && cancelAnimationFrame(m);
2382
+ }), u?.(), (v = p) == null || v.disconnect(), p = null, l && cancelAnimationFrame(g);
2383
2383
  };
2384
2384
  }
2385
2385
  const zm = k6, Wm = T6, qm = $6, t4 = I6, n4 = S6, n1 = C6, r4 = M6, Um = (t, e, n) => {
@@ -2463,11 +2463,11 @@ function s4(t) {
2463
2463
  isPositioned: !1
2464
2464
  }), [f, p] = y.useState(r);
2465
2465
  ll(f, r) || p(r);
2466
- const [m, g] = y.useState(null), [b, v] = y.useState(null), w = y.useCallback((W) => {
2467
- W !== S.current && (S.current = W, g(W));
2466
+ const [g, m] = y.useState(null), [b, v] = y.useState(null), w = y.useCallback((W) => {
2467
+ W !== S.current && (S.current = W, m(W));
2468
2468
  }, []), x = y.useCallback((W) => {
2469
2469
  W !== k.current && (k.current = W, v(W));
2470
- }, []), C = o || m, $ = s || b, S = y.useRef(null), k = y.useRef(null), D = y.useRef(d), E = l != null, O = td(l), V = td(i), B = td(c), q = y.useCallback(() => {
2470
+ }, []), C = o || g, $ = s || b, S = y.useRef(null), k = y.useRef(null), D = y.useRef(d), E = l != null, O = td(l), V = td(i), B = td(c), q = y.useCallback(() => {
2471
2471
  if (!S.current || !k.current)
2472
2472
  return;
2473
2473
  const W = {
@@ -2643,7 +2643,7 @@ const Km = "Popper", [Gm, Or] = Je(Km), [b4, Ym] = Gm(Km), v4 = (t) => {
2643
2643
  }));
2644
2644
  }), Xm = "PopperContent", [x4, C4] = Gm(Xm), $4 = /* @__PURE__ */ A((t, e) => {
2645
2645
  var n, r, i, o, s, a, l, c;
2646
- const { __scopePopper: d, side: u = "bottom", sideOffset: f = 0, align: p = "center", alignOffset: m = 0, arrowPadding: g = 0, avoidCollisions: b = !0, collisionBoundary: v = [], collisionPadding: w = 0, sticky: x = "partial", hideWhenDetached: C = !1, updatePositionStrategy: $ = "optimized", onPlaced: S, ...k } = t, D = Ym(Xm, d), [E, O] = Z(null), V = pe(
2646
+ const { __scopePopper: d, side: u = "bottom", sideOffset: f = 0, align: p = "center", alignOffset: g = 0, arrowPadding: m = 0, avoidCollisions: b = !0, collisionBoundary: v = [], collisionPadding: w = 0, sticky: x = "partial", hideWhenDetached: C = !1, updatePositionStrategy: $ = "optimized", onPlaced: S, ...k } = t, D = Ym(Xm, d), [E, O] = Z(null), V = pe(
2647
2647
  e,
2648
2648
  (Me) => O(Me)
2649
2649
  ), [B, q] = Z(null), z = tc(B), K = (n = z?.width) !== null && n !== void 0 ? n : 0, Q = (r = z?.height) !== null && r !== void 0 ? r : 0, j = u + (p !== "center" ? "-" + p : ""), W = typeof w == "number" ? w : {
@@ -2672,7 +2672,7 @@ const Km = "Popper", [Gm, Or] = Je(Km), [b4, Ym] = Gm(Km), v4 = (t) => {
2672
2672
  middleware: [
2673
2673
  l4({
2674
2674
  mainAxis: f + Q,
2675
- alignmentAxis: m
2675
+ alignmentAxis: g
2676
2676
  }),
2677
2677
  b && c4({
2678
2678
  mainAxis: !0,
@@ -2692,7 +2692,7 @@ const Km = "Popper", [Gm, Or] = Je(Km), [b4, Ym] = Gm(Km), v4 = (t) => {
2692
2692
  }),
2693
2693
  B && p4({
2694
2694
  element: B,
2695
- padding: g
2695
+ padding: m
2696
2696
  }),
2697
2697
  M4({
2698
2698
  arrowWidth: K,
@@ -2801,13 +2801,13 @@ const M4 = (t) => ({
2801
2801
  options: t,
2802
2802
  fn(e) {
2803
2803
  var n, r, i, o, s;
2804
- const { placement: a, rects: l, middlewareData: c } = e, u = ((n = c.arrow) === null || n === void 0 ? void 0 : n.centerOffset) !== 0, f = u ? 0 : t.arrowWidth, p = u ? 0 : t.arrowHeight, [m, g] = Qm(a), b = {
2804
+ const { placement: a, rects: l, middlewareData: c } = e, u = ((n = c.arrow) === null || n === void 0 ? void 0 : n.centerOffset) !== 0, f = u ? 0 : t.arrowWidth, p = u ? 0 : t.arrowHeight, [g, m] = Qm(a), b = {
2805
2805
  start: "0%",
2806
2806
  center: "50%",
2807
2807
  end: "100%"
2808
- }[g], v = ((r = (i = c.arrow) === null || i === void 0 ? void 0 : i.x) !== null && r !== void 0 ? r : 0) + f / 2, w = ((o = (s = c.arrow) === null || s === void 0 ? void 0 : s.y) !== null && o !== void 0 ? o : 0) + p / 2;
2808
+ }[m], v = ((r = (i = c.arrow) === null || i === void 0 ? void 0 : i.x) !== null && r !== void 0 ? r : 0) + f / 2, w = ((o = (s = c.arrow) === null || s === void 0 ? void 0 : s.y) !== null && o !== void 0 ? o : 0) + p / 2;
2809
2809
  let x = "", C = "";
2810
- return m === "bottom" ? (x = u ? b : `${v}px`, C = `${-p}px`) : m === "top" ? (x = u ? b : `${v}px`, C = `${l.floating.height + p}px`) : m === "right" ? (x = `${-p}px`, C = u ? b : `${w}px`) : m === "left" && (x = `${l.floating.width + p}px`, C = u ? b : `${w}px`), {
2810
+ return g === "bottom" ? (x = u ? b : `${v}px`, C = `${-p}px`) : g === "top" ? (x = u ? b : `${v}px`, C = `${l.floating.height + p}px`) : g === "right" ? (x = `${-p}px`, C = u ? b : `${w}px`) : g === "left" && (x = `${l.floating.width + p}px`, C = u ? b : `${w}px`), {
2811
2811
  data: {
2812
2812
  x,
2813
2813
  y: C
@@ -2979,7 +2979,7 @@ const Zm = /* @__PURE__ */ A((t, e) => /* @__PURE__ */ M(de.span, H({}, t, {
2979
2979
  disableHoverableContent: i
2980
2980
  }, o);
2981
2981
  }, Uu = "Tooltip", [V4, Ds] = rc(Uu), _4 = (t) => {
2982
- const { __scopeTooltip: e, children: n, open: r, defaultOpen: i = !1, onOpenChange: o, disableHoverableContent: s, delayDuration: a } = t, l = qu(Uu, t.__scopeTooltip), c = Wu(e), [d, u] = Z(null), f = gt(), p = te(0), m = s ?? l.disableHoverableContent, g = a ?? l.delayDuration, b = te(!1), [v = !1, w] = ft({
2982
+ const { __scopeTooltip: e, children: n, open: r, defaultOpen: i = !1, onOpenChange: o, disableHoverableContent: s, delayDuration: a } = t, l = qu(Uu, t.__scopeTooltip), c = Wu(e), [d, u] = Z(null), f = gt(), p = te(0), g = s ?? l.disableHoverableContent, m = a ?? l.delayDuration, b = te(!1), [v = !1, w] = ft({
2983
2983
  prop: r,
2984
2984
  defaultProp: i,
2985
2985
  onChange: (k) => {
@@ -2998,9 +2998,9 @@ const Zm = /* @__PURE__ */ A((t, e) => /* @__PURE__ */ M(de.span, H({}, t, {
2998
2998
  ]), S = ue(() => {
2999
2999
  window.clearTimeout(p.current), p.current = window.setTimeout(() => {
3000
3000
  b.current = !0, w(!0);
3001
- }, g);
3001
+ }, m);
3002
3002
  }, [
3003
- g,
3003
+ m,
3004
3004
  w
3005
3005
  ]);
3006
3006
  return J(() => () => window.clearTimeout(p.current), []), /* @__PURE__ */ M(nc, c, /* @__PURE__ */ M(V4, {
@@ -3018,14 +3018,14 @@ const Zm = /* @__PURE__ */ A((t, e) => /* @__PURE__ */ M(de.span, H({}, t, {
3018
3018
  C
3019
3019
  ]),
3020
3020
  onTriggerLeave: ue(() => {
3021
- m ? $() : window.clearTimeout(p.current);
3021
+ g ? $() : window.clearTimeout(p.current);
3022
3022
  }, [
3023
3023
  $,
3024
- m
3024
+ g
3025
3025
  ]),
3026
3026
  onOpen: C,
3027
3027
  onClose: $,
3028
- disableHoverableContent: m
3028
+ disableHoverableContent: g
3029
3029
  }, n));
3030
3030
  }, i1 = "TooltipTrigger", H4 = /* @__PURE__ */ A((t, e) => {
3031
3031
  const { __scopeTooltip: n, ...r } = t, i = Ds(i1, n), o = qu(i1, n), s = Wu(n), a = te(null), l = pe(e, a, i.onTriggerChange), c = te(!1), d = te(!1), u = ue(
@@ -3091,11 +3091,11 @@ const Zm = /* @__PURE__ */ A((t, e) => /* @__PURE__ */ M(de.span, H({}, t, {
3091
3091
  a(null), u(!1);
3092
3092
  }, [
3093
3093
  u
3094
- ]), p = ue((m, g) => {
3095
- const b = m.currentTarget, v = {
3096
- x: m.clientX,
3097
- y: m.clientY
3098
- }, w = K4(v, b.getBoundingClientRect()), x = G4(v, w), C = Y4(g.getBoundingClientRect()), $ = Q4([
3094
+ ]), p = ue((g, m) => {
3095
+ const b = g.currentTarget, v = {
3096
+ x: g.clientX,
3097
+ y: g.clientY
3098
+ }, w = K4(v, b.getBoundingClientRect()), x = G4(v, w), C = Y4(m.getBoundingClientRect()), $ = Q4([
3099
3099
  ...x,
3100
3100
  ...C
3101
3101
  ]);
@@ -3107,9 +3107,9 @@ const Zm = /* @__PURE__ */ A((t, e) => /* @__PURE__ */ M(de.span, H({}, t, {
3107
3107
  f
3108
3108
  ]), J(() => {
3109
3109
  if (l && d) {
3110
- const m = (b) => p(b, d), g = (b) => p(b, l);
3111
- return l.addEventListener("pointerleave", m), d.addEventListener("pointerleave", g), () => {
3112
- l.removeEventListener("pointerleave", m), d.removeEventListener("pointerleave", g);
3110
+ const g = (b) => p(b, d), m = (b) => p(b, l);
3111
+ return l.addEventListener("pointerleave", g), d.addEventListener("pointerleave", m), () => {
3112
+ l.removeEventListener("pointerleave", g), d.removeEventListener("pointerleave", m);
3113
3113
  };
3114
3114
  }
3115
3115
  }, [
@@ -3119,14 +3119,14 @@ const Zm = /* @__PURE__ */ A((t, e) => /* @__PURE__ */ M(de.span, H({}, t, {
3119
3119
  f
3120
3120
  ]), J(() => {
3121
3121
  if (s) {
3122
- const m = (g) => {
3123
- const b = g.target, v = {
3124
- x: g.clientX,
3125
- y: g.clientY
3122
+ const g = (m) => {
3123
+ const b = m.target, v = {
3124
+ x: m.clientX,
3125
+ y: m.clientY
3126
3126
  }, w = l?.contains(b) || d?.contains(b), x = !X4(v, s);
3127
3127
  w ? f() : x && (f(), c());
3128
3128
  };
3129
- return document.addEventListener("pointermove", m), () => document.removeEventListener("pointermove", m);
3129
+ return document.addEventListener("pointermove", g), () => document.removeEventListener("pointermove", g);
3130
3130
  }
3131
3131
  }, [
3132
3132
  l,
@@ -3324,7 +3324,7 @@ const rd = "focusScope.autoFocusOnMount", id = "focusScope.autoFocusOnUnmount",
3324
3324
  }, Co = /* @__PURE__ */ A((t, e) => {
3325
3325
  const { loop: n = !1, trapped: r = !1, onMountAutoFocus: i, onUnmountAutoFocus: o, ...s } = t, [a, l] = Z(null), c = tt(i), d = tt(o), u = te(null), f = pe(
3326
3326
  e,
3327
- (g) => l(g)
3327
+ (m) => l(m)
3328
3328
  ), p = te({
3329
3329
  paused: !1,
3330
3330
  pause() {
@@ -3336,7 +3336,7 @@ const rd = "focusScope.autoFocusOnMount", id = "focusScope.autoFocusOnUnmount",
3336
3336
  }).current;
3337
3337
  J(() => {
3338
3338
  if (r) {
3339
- let g = function(x) {
3339
+ let m = function(x) {
3340
3340
  if (p.paused || !a) return;
3341
3341
  const C = x.target;
3342
3342
  a.contains(C) ? u.current = C : fr(u.current, {
@@ -3352,13 +3352,13 @@ const rd = "focusScope.autoFocusOnMount", id = "focusScope.autoFocusOnUnmount",
3352
3352
  if (document.activeElement === document.body)
3353
3353
  for (const $ of x) $.removedNodes.length > 0 && fr(a);
3354
3354
  };
3355
- document.addEventListener("focusin", g), document.addEventListener("focusout", b);
3355
+ document.addEventListener("focusin", m), document.addEventListener("focusout", b);
3356
3356
  const w = new MutationObserver(v);
3357
3357
  return a && w.observe(a, {
3358
3358
  childList: !0,
3359
3359
  subtree: !0
3360
3360
  }), () => {
3361
- document.removeEventListener("focusin", g), document.removeEventListener("focusout", b), w.disconnect();
3361
+ document.removeEventListener("focusin", m), document.removeEventListener("focusout", b), w.disconnect();
3362
3362
  };
3363
3363
  }
3364
3364
  }, [
@@ -3368,17 +3368,17 @@ const rd = "focusScope.autoFocusOnMount", id = "focusScope.autoFocusOnUnmount",
3368
3368
  ]), J(() => {
3369
3369
  if (a) {
3370
3370
  l1.add(p);
3371
- const g = document.activeElement;
3372
- if (!a.contains(g)) {
3371
+ const m = document.activeElement;
3372
+ if (!a.contains(m)) {
3373
3373
  const v = new CustomEvent(rd, s1);
3374
3374
  a.addEventListener(rd, c), a.dispatchEvent(v), v.defaultPrevented || (eC(oC(o2(a)), {
3375
3375
  select: !0
3376
- }), document.activeElement === g && fr(a));
3376
+ }), document.activeElement === m && fr(a));
3377
3377
  }
3378
3378
  return () => {
3379
3379
  a.removeEventListener(rd, c), setTimeout(() => {
3380
3380
  const v = new CustomEvent(id, s1);
3381
- a.addEventListener(id, d), a.dispatchEvent(v), v.defaultPrevented || fr(g ?? document.body, {
3381
+ a.addEventListener(id, d), a.dispatchEvent(v), v.defaultPrevented || fr(m ?? document.body, {
3382
3382
  select: !0
3383
3383
  }), a.removeEventListener(id, d), l1.remove(p);
3384
3384
  }, 0);
@@ -3390,16 +3390,16 @@ const rd = "focusScope.autoFocusOnMount", id = "focusScope.autoFocusOnUnmount",
3390
3390
  d,
3391
3391
  p
3392
3392
  ]);
3393
- const m = ue((g) => {
3393
+ const g = ue((m) => {
3394
3394
  if (!n && !r || p.paused) return;
3395
- const b = g.key === "Tab" && !g.altKey && !g.ctrlKey && !g.metaKey, v = document.activeElement;
3395
+ const b = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, v = document.activeElement;
3396
3396
  if (b && v) {
3397
- const w = g.currentTarget, [x, C] = tC(w);
3398
- x && C ? !g.shiftKey && v === C ? (g.preventDefault(), n && fr(x, {
3397
+ const w = m.currentTarget, [x, C] = tC(w);
3398
+ x && C ? !m.shiftKey && v === C ? (m.preventDefault(), n && fr(x, {
3399
3399
  select: !0
3400
- })) : g.shiftKey && v === x && (g.preventDefault(), n && fr(C, {
3400
+ })) : m.shiftKey && v === x && (m.preventDefault(), n && fr(C, {
3401
3401
  select: !0
3402
- })) : v === w && g.preventDefault();
3402
+ })) : v === w && m.preventDefault();
3403
3403
  }
3404
3404
  }, [
3405
3405
  n,
@@ -3410,7 +3410,7 @@ const rd = "focusScope.autoFocusOnMount", id = "focusScope.autoFocusOnUnmount",
3410
3410
  tabIndex: -1
3411
3411
  }, s, {
3412
3412
  ref: f,
3413
- onKeyDown: m
3413
+ onKeyDown: g
3414
3414
  }));
3415
3415
  });
3416
3416
  function eC(t, { select: e = !1 } = {}) {
@@ -3517,8 +3517,8 @@ var sC = function(t) {
3517
3517
  d(f);
3518
3518
  else
3519
3519
  try {
3520
- var p = f.getAttribute(r), m = p !== null && p !== "false", g = (yi.get(f) || 0) + 1, b = (o.get(f) || 0) + 1;
3521
- yi.set(f, g), o.set(f, b), s.push(f), g === 1 && m && na.set(f, !0), b === 1 && f.setAttribute(n, "true"), m || f.setAttribute(r, "true");
3520
+ var p = f.getAttribute(r), g = p !== null && p !== "false", m = (yi.get(f) || 0) + 1, b = (o.get(f) || 0) + 1;
3521
+ yi.set(f, m), o.set(f, b), s.push(f), m === 1 && g && na.set(f, !0), b === 1 && f.setAttribute(n, "true"), g || f.setAttribute(r, "true");
3522
3522
  } catch (v) {
3523
3523
  console.error("aria-hidden: cannot operate on ", f, v);
3524
3524
  }
@@ -3685,11 +3685,11 @@ var c2 = Gu(), ad = function() {
3685
3685
  onScrollCapture: ad,
3686
3686
  onWheelCapture: ad,
3687
3687
  onTouchMoveCapture: ad
3688
- }), i = r[0], o = r[1], s = t.forwardProps, a = t.children, l = t.className, c = t.removeScrollBar, d = t.enabled, u = t.shards, f = t.sideCar, p = t.noIsolation, m = t.inert, g = t.allowPinchZoom, b = t.as, v = b === void 0 ? "div" : b, w = t.gapMode, x = ic(t, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = f, $ = Ku([n, e]), S = Ge(Ge({}, x), i);
3688
+ }), i = r[0], o = r[1], s = t.forwardProps, a = t.children, l = t.className, c = t.removeScrollBar, d = t.enabled, u = t.shards, f = t.sideCar, p = t.noIsolation, g = t.inert, m = t.allowPinchZoom, b = t.as, v = b === void 0 ? "div" : b, w = t.gapMode, x = ic(t, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = f, $ = Ku([n, e]), S = Ge(Ge({}, x), i);
3689
3689
  return y.createElement(
3690
3690
  y.Fragment,
3691
3691
  null,
3692
- d && y.createElement(C, { sideCar: c2, removeScrollBar: c, shards: u, noIsolation: p, inert: m, setCallbacks: o, allowPinchZoom: !!g, lockRef: n, gapMode: w }),
3692
+ d && y.createElement(C, { sideCar: c2, removeScrollBar: c, shards: u, noIsolation: p, inert: g, setCallbacks: o, allowPinchZoom: !!m, lockRef: n, gapMode: w }),
3693
3693
  s ? y.cloneElement(y.Children.only(a), Ge(Ge({}, S), { ref: $ })) : y.createElement(v, Ge({}, S, { className: l, ref: $ }), a)
3694
3694
  );
3695
3695
  });
@@ -3890,8 +3890,8 @@ var xi = lh ? { passive: !1 } : !1, TC = function(t) {
3890
3890
  }, OC = function(t, e, n, r, i) {
3891
3891
  var o = DC(t, window.getComputedStyle(e).direction), s = o * r, a = n.target, l = e.contains(a), c = !1, d = s > 0, u = 0, f = 0;
3892
3892
  do {
3893
- var p = u2(t, a), m = p[0], g = p[1], b = p[2], v = g - b - o * m;
3894
- (m || v) && h2(t, a) && (u += v, f += m), a instanceof ShadowRoot ? a = a.host : a = a.parentNode;
3893
+ var p = u2(t, a), g = p[0], m = p[1], b = p[2], v = m - b - o * g;
3894
+ (g || v) && h2(t, a) && (u += v, f += g), a instanceof ShadowRoot ? a = a.host : a = a.parentNode;
3895
3895
  } while (
3896
3896
  // portaled content
3897
3897
  !l && a !== document.body || // self content
@@ -3919,33 +3919,33 @@ function FC(t) {
3919
3919
  }, [t]), y.useEffect(function() {
3920
3920
  if (t.inert) {
3921
3921
  document.body.classList.add("block-interactivity-".concat(i));
3922
- var g = ju([t.lockRef.current], (t.shards || []).map(p1), !0).filter(Boolean);
3923
- return g.forEach(function(b) {
3922
+ var m = ju([t.lockRef.current], (t.shards || []).map(p1), !0).filter(Boolean);
3923
+ return m.forEach(function(b) {
3924
3924
  return b.classList.add("allow-interactivity-".concat(i));
3925
3925
  }), function() {
3926
- document.body.classList.remove("block-interactivity-".concat(i)), g.forEach(function(b) {
3926
+ document.body.classList.remove("block-interactivity-".concat(i)), m.forEach(function(b) {
3927
3927
  return b.classList.remove("allow-interactivity-".concat(i));
3928
3928
  });
3929
3929
  };
3930
3930
  }
3931
3931
  }, [t.inert, t.lockRef.current, t.shards]);
3932
- var a = y.useCallback(function(g, b) {
3933
- if ("touches" in g && g.touches.length === 2)
3932
+ var a = y.useCallback(function(m, b) {
3933
+ if ("touches" in m && m.touches.length === 2)
3934
3934
  return !s.current.allowPinchZoom;
3935
- var v = oa(g), w = n.current, x = "deltaX" in g ? g.deltaX : w[0] - v[0], C = "deltaY" in g ? g.deltaY : w[1] - v[1], $, S = g.target, k = Math.abs(x) > Math.abs(C) ? "h" : "v";
3936
- if ("touches" in g && k === "h" && S.type === "range")
3935
+ var v = oa(m), w = n.current, x = "deltaX" in m ? m.deltaX : w[0] - v[0], C = "deltaY" in m ? m.deltaY : w[1] - v[1], $, S = m.target, k = Math.abs(x) > Math.abs(C) ? "h" : "v";
3936
+ if ("touches" in m && k === "h" && S.type === "range")
3937
3937
  return !1;
3938
3938
  var D = u1(k, S);
3939
3939
  if (!D)
3940
3940
  return !0;
3941
3941
  if (D ? $ = k : ($ = k === "v" ? "h" : "v", D = u1(k, S)), !D)
3942
3942
  return !1;
3943
- if (!r.current && "changedTouches" in g && (x || C) && (r.current = $), !$)
3943
+ if (!r.current && "changedTouches" in m && (x || C) && (r.current = $), !$)
3944
3944
  return !0;
3945
3945
  var E = r.current || $;
3946
- return OC(E, b, g, E === "h" ? x : C);
3947
- }, []), l = y.useCallback(function(g) {
3948
- var b = g;
3946
+ return OC(E, b, m, E === "h" ? x : C);
3947
+ }, []), l = y.useCallback(function(m) {
3948
+ var b = m;
3949
3949
  if (!(!Ci.length || Ci[Ci.length - 1] !== o)) {
3950
3950
  var v = "deltaY" in b ? f1(b) : oa(b), w = e.current.filter(function($) {
3951
3951
  return $.name === b.type && ($.target === b.target || b.target === $.shadowParent) && LC($.delta, v);
@@ -3961,19 +3961,19 @@ function FC(t) {
3961
3961
  C && b.cancelable && b.preventDefault();
3962
3962
  }
3963
3963
  }
3964
- }, []), c = y.useCallback(function(g, b, v, w) {
3965
- var x = { name: g, delta: b, target: v, should: w, shadowParent: VC(v) };
3964
+ }, []), c = y.useCallback(function(m, b, v, w) {
3965
+ var x = { name: m, delta: b, target: v, should: w, shadowParent: VC(v) };
3966
3966
  e.current.push(x), setTimeout(function() {
3967
3967
  e.current = e.current.filter(function(C) {
3968
3968
  return C !== x;
3969
3969
  });
3970
3970
  }, 1);
3971
- }, []), d = y.useCallback(function(g) {
3972
- n.current = oa(g), r.current = void 0;
3973
- }, []), u = y.useCallback(function(g) {
3974
- c(g.type, f1(g), g.target, a(g, t.lockRef.current));
3975
- }, []), f = y.useCallback(function(g) {
3976
- c(g.type, oa(g), g.target, a(g, t.lockRef.current));
3971
+ }, []), d = y.useCallback(function(m) {
3972
+ n.current = oa(m), r.current = void 0;
3973
+ }, []), u = y.useCallback(function(m) {
3974
+ c(m.type, f1(m), m.target, a(m, t.lockRef.current));
3975
+ }, []), f = y.useCallback(function(m) {
3976
+ c(m.type, oa(m), m.target, a(m, t.lockRef.current));
3977
3977
  }, []);
3978
3978
  y.useEffect(function() {
3979
3979
  return Ci.push(o), t.setCallbacks({
@@ -3981,16 +3981,16 @@ function FC(t) {
3981
3981
  onWheelCapture: u,
3982
3982
  onTouchMoveCapture: f
3983
3983
  }), document.addEventListener("wheel", l, xi), document.addEventListener("touchmove", l, xi), document.addEventListener("touchstart", d, xi), function() {
3984
- Ci = Ci.filter(function(g) {
3985
- return g !== o;
3984
+ Ci = Ci.filter(function(m) {
3985
+ return m !== o;
3986
3986
  }), document.removeEventListener("wheel", l, xi), document.removeEventListener("touchmove", l, xi), document.removeEventListener("touchstart", d, xi);
3987
3987
  };
3988
3988
  }, []);
3989
- var p = t.removeScrollBar, m = t.inert;
3989
+ var p = t.removeScrollBar, g = t.inert;
3990
3990
  return y.createElement(
3991
3991
  y.Fragment,
3992
3992
  null,
3993
- m ? y.createElement(o, { styles: NC(i) }) : null,
3993
+ g ? y.createElement(o, { styles: NC(i) }) : null,
3994
3994
  p ? y.createElement(Xu, { gapMode: t.gapMode }) : null
3995
3995
  );
3996
3996
  }
@@ -4014,19 +4014,19 @@ function ac(t) {
4014
4014
  },
4015
4015
  itemMap: /* @__PURE__ */ new Map()
4016
4016
  }), s = (p) => {
4017
- const { scope: m, children: g } = p, b = $e.useRef(null), v = $e.useRef(/* @__PURE__ */ new Map()).current;
4017
+ const { scope: g, children: m } = p, b = $e.useRef(null), v = $e.useRef(/* @__PURE__ */ new Map()).current;
4018
4018
  return /* @__PURE__ */ $e.createElement(i, {
4019
- scope: m,
4019
+ scope: g,
4020
4020
  itemMap: v,
4021
4021
  collectionRef: b
4022
- }, g);
4023
- }, a = t + "CollectionSlot", l = /* @__PURE__ */ $e.forwardRef((p, m) => {
4024
- const { scope: g, children: b } = p, v = o(a, g), w = pe(m, v.collectionRef);
4022
+ }, m);
4023
+ }, a = t + "CollectionSlot", l = /* @__PURE__ */ $e.forwardRef((p, g) => {
4024
+ const { scope: m, children: b } = p, v = o(a, m), w = pe(g, v.collectionRef);
4025
4025
  return /* @__PURE__ */ $e.createElement(On, {
4026
4026
  ref: w
4027
4027
  }, b);
4028
- }), c = t + "CollectionItemSlot", d = "data-radix-collection-item", u = /* @__PURE__ */ $e.forwardRef((p, m) => {
4029
- const { scope: g, children: b, ...v } = p, w = $e.useRef(null), x = pe(m, w), C = o(c, g);
4028
+ }), c = t + "CollectionItemSlot", d = "data-radix-collection-item", u = /* @__PURE__ */ $e.forwardRef((p, g) => {
4029
+ const { scope: m, children: b, ...v } = p, w = $e.useRef(null), x = pe(g, w), C = o(c, m);
4030
4030
  return $e.useEffect(() => (C.itemMap.set(w, {
4031
4031
  ref: w,
4032
4032
  ...v
@@ -4036,17 +4036,17 @@ function ac(t) {
4036
4036
  }, b);
4037
4037
  });
4038
4038
  function f(p) {
4039
- const m = o(t + "CollectionConsumer", p);
4039
+ const g = o(t + "CollectionConsumer", p);
4040
4040
  return $e.useCallback(() => {
4041
- const b = m.collectionRef.current;
4041
+ const b = g.collectionRef.current;
4042
4042
  if (!b) return [];
4043
4043
  const v = Array.from(b.querySelectorAll(`[${d}]`));
4044
- return Array.from(m.itemMap.values()).sort(
4044
+ return Array.from(g.itemMap.values()).sort(
4045
4045
  (C, $) => v.indexOf(C.ref.current) - v.indexOf($.ref.current)
4046
4046
  );
4047
4047
  }, [
4048
- m.collectionRef,
4049
- m.itemMap
4048
+ g.collectionRef,
4049
+ g.itemMap
4050
4050
  ]);
4051
4051
  }
4052
4052
  return [
@@ -4079,17 +4079,17 @@ function PC(t) {
4079
4079
  itemMap: /* @__PURE__ */ new Map(),
4080
4080
  listeners: /* @__PURE__ */ new Set()
4081
4081
  }), s = (p) => {
4082
- const { scope: m, children: g } = p, b = y.useRef(null), v = y.useRef(/* @__PURE__ */ new Map()).current, w = y.useRef(/* @__PURE__ */ new Set()).current;
4083
- return /* @__PURE__ */ h(i, { scope: m, itemMap: v, collectionRef: b, listeners: w, children: g });
4082
+ const { scope: g, children: m } = p, b = y.useRef(null), v = y.useRef(/* @__PURE__ */ new Map()).current, w = y.useRef(/* @__PURE__ */ new Set()).current;
4083
+ return /* @__PURE__ */ h(i, { scope: g, itemMap: v, collectionRef: b, listeners: w, children: m });
4084
4084
  };
4085
4085
  s.displayName = e;
4086
- const a = `${t}CollectionSlot`, l = y.forwardRef((p, m) => {
4087
- const { scope: g, children: b } = p, v = o(a, g), w = pe(m, v.collectionRef);
4086
+ const a = `${t}CollectionSlot`, l = y.forwardRef((p, g) => {
4087
+ const { scope: m, children: b } = p, v = o(a, m), w = pe(g, v.collectionRef);
4088
4088
  return /* @__PURE__ */ h(On, { ref: w, children: b });
4089
4089
  });
4090
4090
  l.displayName = a;
4091
- const c = `${t}CollectionItemSlot`, d = "data-radix-collection-item", u = y.forwardRef((p, m) => {
4092
- const { scope: g, children: b, ...v } = p, w = y.useRef(null), x = pe(m, w), C = o(c, g);
4091
+ const c = `${t}CollectionItemSlot`, d = "data-radix-collection-item", u = y.forwardRef((p, g) => {
4092
+ const { scope: m, children: b, ...v } = p, w = y.useRef(null), x = pe(g, w), C = o(c, m);
4093
4093
  return y.useEffect(() => {
4094
4094
  const $ = Array.from(C.itemMap.values());
4095
4095
  return C.itemMap.set(w, { ref: w, ...v }), C.listeners.forEach((S) => S(Array.from(C.itemMap.values()), $)), () => {
@@ -4100,19 +4100,19 @@ function PC(t) {
4100
4100
  });
4101
4101
  u.displayName = c;
4102
4102
  function f(p) {
4103
- const m = o(`${t}CollectionConsumer`, p), g = y.useCallback(() => {
4104
- const v = m.collectionRef.current;
4103
+ const g = o(`${t}CollectionConsumer`, p), m = y.useCallback(() => {
4104
+ const v = g.collectionRef.current;
4105
4105
  if (!v)
4106
4106
  return [];
4107
4107
  const w = Array.from(v.querySelectorAll(`[${d}]`));
4108
- return Array.from(m.itemMap.values()).sort(
4108
+ return Array.from(g.itemMap.values()).sort(
4109
4109
  ($, S) => w.indexOf($.ref.current) - w.indexOf(S.ref.current)
4110
4110
  );
4111
- }, [m.collectionRef, m.itemMap]), b = y.useCallback(
4112
- (v) => (m.listeners.add(v), () => m.listeners.delete(v)),
4113
- [m.listeners]
4111
+ }, [g.collectionRef, g.itemMap]), b = y.useCallback(
4112
+ (v) => (g.listeners.add(v), () => g.listeners.delete(v)),
4113
+ [g.listeners]
4114
4114
  );
4115
- return { getItems: g, subscribe: b };
4115
+ return { getItems: m, subscribe: b };
4116
4116
  }
4117
4117
  return [
4118
4118
  { Provider: s, Slot: l, ItemSlot: u },
@@ -4181,8 +4181,8 @@ const WC = (t) => {
4181
4181
  required: u = !1,
4182
4182
  locale: f = "en-EN",
4183
4183
  onTextValueChange: p,
4184
- textValue: m,
4185
- defaultTextValue: g,
4184
+ textValue: g,
4185
+ defaultTextValue: m,
4186
4186
  filterValue: b,
4187
4187
  defaultFilterValue: v,
4188
4188
  onFilterValueChange: w,
@@ -4197,8 +4197,8 @@ const WC = (t) => {
4197
4197
  defaultProp: l,
4198
4198
  onChange: c
4199
4199
  }), [j, W] = ft({
4200
- prop: m,
4201
- defaultProp: e && !g ? a : g,
4200
+ prop: g,
4201
+ defaultProp: e && !m ? a : m,
4202
4202
  onChange: p
4203
4203
  }), [F, ne] = ft({
4204
4204
  prop: b,
@@ -4333,15 +4333,15 @@ const m2 = "ComboboxInput", b2 = y.forwardRef((t, e) => {
4333
4333
  n.open || l(), setTimeout(() => {
4334
4334
  let f = i().filter((p) => !p.disabled && p.isVisible).map((p) => p.ref.current);
4335
4335
  if (["ArrowUp", "End"].includes(d.key) && (f = f.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(d.key)) {
4336
- const p = n.visuallyFocussedItem ?? i().find((m) => m.value === n.value)?.ref.current;
4336
+ const p = n.visuallyFocussedItem ?? i().find((g) => g.value === n.value)?.ref.current;
4337
4337
  if (p) {
4338
- let m = f.indexOf(p);
4339
- m === f.length - 1 && (m = -1), f = f.slice(m + 1);
4338
+ let g = f.indexOf(p);
4339
+ g === f.length - 1 && (g = -1), f = f.slice(g + 1);
4340
4340
  }
4341
4341
  }
4342
4342
  if (["ArrowDown"].includes(d.key) && n.autocomplete.type === "both" && f.length > 1) {
4343
- const [p, ...m] = f, g = i().find((b) => b.ref.current === p).textValue;
4344
- n.textValue === g && (f = m);
4343
+ const [p, ...g] = f, m = i().find((b) => b.ref.current === p).textValue;
4344
+ n.textValue === m && (f = g);
4345
4345
  }
4346
4346
  n.focusFirst(f, i());
4347
4347
  }), d.preventDefault();
@@ -4558,18 +4558,18 @@ const cc = "ComboboxItem", [g1, ef] = Lu(cc), tf = y.forwardRef((t, e) => {
4558
4558
  qe(() => {
4559
4559
  a(new DocumentFragment());
4560
4560
  }, []);
4561
- const { onTextValueChange: l, textValue: c, ...d } = Hn(cc), u = gt(), [f, p] = y.useState(i ?? ""), m = d.value === n, { startsWith: g, contains: b } = Zu(d.locale, { sensitivity: "base" }), v = y.useCallback((w) => {
4561
+ const { onTextValueChange: l, textValue: c, ...d } = Hn(cc), u = gt(), [f, p] = y.useState(i ?? ""), g = d.value === n, { startsWith: m, contains: b } = Zu(d.locale, { sensitivity: "base" }), v = y.useCallback((w) => {
4562
4562
  p((x) => x || (w?.textContent ?? "").trim());
4563
4563
  }, []);
4564
4564
  return y.useEffect(() => {
4565
- m && c === void 0 && f !== "" && l(f);
4566
- }, [f, m, c, l]), d.autocomplete.type === "both" && f && d.filterValue && !g(f, d.filterValue) || d.autocomplete.type === "list" && d.autocomplete.filter === "startsWith" && f && c && !g(f, c) || d.autocomplete.type === "list" && d.autocomplete.filter === "contains" && f && c && !b(f, c) ? s ? bo.createPortal(
4565
+ g && c === void 0 && f !== "" && l(f);
4566
+ }, [f, g, c, l]), d.autocomplete.type === "both" && f && d.filterValue && !m(f, d.filterValue) || d.autocomplete.type === "list" && d.autocomplete.filter === "startsWith" && f && c && !m(f, c) || d.autocomplete.type === "list" && d.autocomplete.filter === "contains" && f && c && !b(f, c) ? s ? bo.createPortal(
4567
4567
  /* @__PURE__ */ h(
4568
4568
  g1,
4569
4569
  {
4570
4570
  textId: u,
4571
4571
  onTextValueChange: v,
4572
- isSelected: m,
4572
+ isSelected: g,
4573
4573
  textValue: f,
4574
4574
  children: /* @__PURE__ */ h(
4575
4575
  to.ItemSlot,
@@ -4591,7 +4591,7 @@ const cc = "ComboboxItem", [g1, ef] = Lu(cc), tf = y.forwardRef((t, e) => {
4591
4591
  {
4592
4592
  textId: u,
4593
4593
  onTextValueChange: v,
4594
- isSelected: m,
4594
+ isSelected: g,
4595
4595
  textValue: f,
4596
4596
  children: /* @__PURE__ */ h(
4597
4597
  to.ItemSlot,
@@ -4610,16 +4610,16 @@ const cc = "ComboboxItem", [g1, ef] = Lu(cc), tf = y.forwardRef((t, e) => {
4610
4610
  });
4611
4611
  tf.displayName = cc;
4612
4612
  const A2 = "ComboboxItemImpl", dh = y.forwardRef((t, e) => {
4613
- const { value: n, disabled: r = !1, ...i } = t, o = y.useRef(null), s = pe(e, o), { getItems: a } = Os(void 0), { onTextValueChange: l, visuallyFocussedItem: c, ...d } = Hn(cc), { isSelected: u, textValue: f, textId: p } = ef(A2), m = () => {
4613
+ const { value: n, disabled: r = !1, ...i } = t, o = y.useRef(null), s = pe(e, o), { getItems: a } = Os(void 0), { onTextValueChange: l, visuallyFocussedItem: c, ...d } = Hn(cc), { isSelected: u, textValue: f, textId: p } = ef(A2), g = () => {
4614
4614
  r || (d.onValueChange(n), l(f), d.onOpenChange(!1), d.autocomplete.type === "both" && d.onFilterValueChange(f), d.trigger?.focus({ preventScroll: !0 }));
4615
- }, g = y.useMemo(() => c === a().find((v) => v.ref.current === o.current)?.ref.current, [a, c]), b = gt();
4615
+ }, m = y.useMemo(() => c === a().find((v) => v.ref.current === o.current)?.ref.current, [a, c]), b = gt();
4616
4616
  return /* @__PURE__ */ h(
4617
4617
  de.div,
4618
4618
  {
4619
4619
  role: "option",
4620
4620
  "aria-labelledby": p,
4621
- "data-highlighted": g ? "" : void 0,
4622
- "aria-selected": u && g,
4621
+ "data-highlighted": m ? "" : void 0,
4622
+ "aria-selected": u && m,
4623
4623
  "data-state": u ? "checked" : "unchecked",
4624
4624
  "aria-disabled": r || void 0,
4625
4625
  "data-disabled": r ? "" : void 0,
@@ -4627,7 +4627,7 @@ const A2 = "ComboboxItemImpl", dh = y.forwardRef((t, e) => {
4627
4627
  ...i,
4628
4628
  id: b,
4629
4629
  ref: s,
4630
- onPointerUp: Y(i.onPointerUp, m)
4630
+ onPointerUp: Y(i.onPointerUp, g)
4631
4631
  }
4632
4632
  );
4633
4633
  });
@@ -4653,8 +4653,8 @@ const nf = "ComboboxNoValueFound", R2 = y.forwardRef((t, e) => {
4653
4653
  return y.useEffect(() => {
4654
4654
  const f = c((p) => {
4655
4655
  if (i) {
4656
- const m = p.filter((g) => g.type !== "create");
4657
- l(m);
4656
+ const g = p.filter((m) => m.type !== "create");
4657
+ l(g);
4658
4658
  } else
4659
4659
  l(p);
4660
4660
  });
@@ -4665,7 +4665,7 @@ const nf = "ComboboxNoValueFound", R2 = y.forwardRef((t, e) => {
4665
4665
  });
4666
4666
  R2.displayName = nf;
4667
4667
  const E2 = y.forwardRef((t, e) => {
4668
- const { disabled: n = !1, ...r } = t, i = Hn(nf), { textValue: o, visuallyFocussedItem: s } = i, { getItems: a, subscribe: l } = Os(void 0), c = y.useRef(null), [d, u] = y.useState(!1), f = pe(e, c), p = y.useMemo(() => s === a().find((b) => b.ref.current === c.current)?.ref.current, [a, s]), m = gt(), g = () => {
4668
+ const { disabled: n = !1, ...r } = t, i = Hn(nf), { textValue: o, visuallyFocussedItem: s } = i, { getItems: a, subscribe: l } = Os(void 0), c = y.useRef(null), [d, u] = y.useState(!1), f = pe(e, c), p = y.useMemo(() => s === a().find((b) => b.ref.current === c.current)?.ref.current, [a, s]), g = gt(), m = () => {
4669
4669
  !n && o && (i.onValueChange(o), i.onTextValueChange(o), i.onOpenChange(!1), i.autocomplete.type === "both" && i.onFilterValueChange(o), i.trigger?.focus({ preventScroll: !0 }));
4670
4670
  };
4671
4671
  return qe(() => {
@@ -4693,9 +4693,9 @@ const E2 = y.forwardRef((t, e) => {
4693
4693
  "data-disabled": n ? "" : void 0,
4694
4694
  "data-highlighted": p ? "" : void 0,
4695
4695
  ...r,
4696
- id: m,
4696
+ id: g,
4697
4697
  ref: f,
4698
- onPointerUp: Y(r.onPointerUp, g)
4698
+ onPointerUp: Y(r.onPointerUp, m)
4699
4699
  }
4700
4700
  )
4701
4701
  }
@@ -4751,7 +4751,7 @@ const u$ = [" ", "Enter", "ArrowUp", "ArrowDown"], f$ = [" ", "Enter"], Ls = "Se
4751
4751
  disabled: d,
4752
4752
  required: u,
4753
4753
  multi: f = !1
4754
- } = t, p = hc(e), [m, g] = y.useState(null), [b, v] = y.useState(null), [w, x] = y.useState(!1), C = pi(c), [$ = !1, S] = ft({
4754
+ } = t, p = hc(e), [g, m] = y.useState(null), [b, v] = y.useState(null), [w, x] = y.useState(!1), C = pi(c), [$ = !1, S] = ft({
4755
4755
  prop: r,
4756
4756
  defaultProp: i,
4757
4757
  onChange: o
@@ -4767,8 +4767,8 @@ const u$ = [" ", "Enter", "ArrowUp", "ArrowDown"], f$ = [" ", "Enter"], Ls = "Se
4767
4767
  {
4768
4768
  required: u,
4769
4769
  scope: e,
4770
- trigger: m,
4771
- onTriggerChange: g,
4770
+ trigger: g,
4771
+ onTriggerChange: m,
4772
4772
  valueNode: b,
4773
4773
  onValueNodeChange: v,
4774
4774
  valueNodeHasChildren: w,
@@ -4805,7 +4805,7 @@ of.displayName = Ls;
4805
4805
  const D2 = "SelectTrigger", sf = y.forwardRef(
4806
4806
  (t, e) => {
4807
4807
  const { __scopeSelect: n, ...r } = t, i = hc(n), o = lr(D2, n), s = o.disabled, a = pe(e, o.onTriggerChange), l = Ns(n), [c, d, u] = P2((p) => {
4808
- const m = l().filter((v) => !v.disabled), g = m.find((v) => v.value === o.value), b = z2(m, p, g);
4808
+ const g = l().filter((v) => !v.disabled), m = g.find((v) => v.value === o.value), b = z2(g, p, m);
4809
4809
  if (b !== void 0 && !Array.isArray(b.value)) {
4810
4810
  const v = o.multi ? [b.value] : b.value;
4811
4811
  o.onValueChange(v);
@@ -4832,15 +4832,15 @@ const D2 = "SelectTrigger", sf = y.forwardRef(
4832
4832
  p.currentTarget.focus();
4833
4833
  }),
4834
4834
  onPointerDown: Y(r.onPointerDown, (p) => {
4835
- const m = p.target;
4836
- m.hasPointerCapture(p.pointerId) && m.releasePointerCapture(p.pointerId), (m.closest("button") ?? m.closest("div")) === p.currentTarget && p.button === 0 && p.ctrlKey === !1 && (f(), o.triggerPointerDownPosRef.current = {
4835
+ const g = p.target;
4836
+ g.hasPointerCapture(p.pointerId) && g.releasePointerCapture(p.pointerId), (g.closest("button") ?? g.closest("div")) === p.currentTarget && p.button === 0 && p.ctrlKey === !1 && (f(), o.triggerPointerDownPosRef.current = {
4837
4837
  x: Math.round(p.pageX),
4838
4838
  y: Math.round(p.pageY)
4839
4839
  }, p.preventDefault());
4840
4840
  }),
4841
4841
  onKeyDown: Y(r.onKeyDown, (p) => {
4842
- const m = c.current !== "", g = p.ctrlKey || p.altKey || p.metaKey, b = p.target;
4843
- (b.closest("button") ?? b.closest("div")) === p.currentTarget && (!g && p.key.length === 1 && d(p.key), !(m && p.key === " ") && u$.includes(p.key) && (f(), p.preventDefault()));
4842
+ const g = c.current !== "", m = p.ctrlKey || p.altKey || p.metaKey, b = p.target;
4843
+ (b.closest("button") ?? b.closest("div")) === p.currentTarget && (!m && p.key.length === 1 && d(p.key), !(g && p.key === " ") && u$.includes(p.key) && (f(), p.preventDefault()));
4844
4844
  })
4845
4845
  }
4846
4846
  ) });
@@ -4854,14 +4854,14 @@ const O2 = "SelectValue", af = y.forwardRef(
4854
4854
  a(l);
4855
4855
  }, [a, l]), y.useLayoutEffect(() => {
4856
4856
  if (Array.isArray(s.value) && d.length !== s.value.length) {
4857
- const m = setTimeout(() => {
4858
- const g = f().filter(
4857
+ const g = setTimeout(() => {
4858
+ const m = f().filter(
4859
4859
  (b) => Array.isArray(b.value) ? !1 : s.value?.includes(b.value)
4860
4860
  );
4861
- u(g);
4861
+ u(m);
4862
4862
  });
4863
4863
  return () => {
4864
- clearTimeout(m);
4864
+ clearTimeout(g);
4865
4865
  };
4866
4866
  }
4867
4867
  }, [s.value, f, d]);
@@ -4870,11 +4870,11 @@ const O2 = "SelectValue", af = y.forwardRef(
4870
4870
  p = /* @__PURE__ */ h("span", { children: i });
4871
4871
  else if (typeof r == "function")
4872
4872
  if (Array.isArray(s.value)) {
4873
- const m = s.value.map((g) => {
4874
- const b = d.find((v) => v.value === g);
4875
- return b ? r({ value: g, textValue: b?.textValue }) : null;
4873
+ const g = s.value.map((m) => {
4874
+ const b = d.find((v) => v.value === m);
4875
+ return b ? r({ value: m, textValue: b?.textValue }) : null;
4876
4876
  });
4877
- p = m.every((g) => g === null) ? i : m;
4877
+ p = g.every((m) => m === null) ? i : g;
4878
4878
  } else
4879
4879
  p = r(s.value);
4880
4880
  else
@@ -4925,8 +4925,8 @@ const Kn = 10, [L2, Lr] = $o(oi), x$ = "SelectContentImpl", N2 = y.forwardRef(
4925
4925
  arrowPadding: u,
4926
4926
  collisionBoundary: f,
4927
4927
  collisionPadding: p,
4928
- sticky: m,
4929
- hideWhenDetached: g,
4928
+ sticky: g,
4929
+ hideWhenDetached: m,
4930
4930
  avoidCollisions: b,
4931
4931
  //
4932
4932
  ...v
@@ -4995,8 +4995,8 @@ const Kn = 10, [L2, Lr] = $o(oi), x$ = "SelectContentImpl", N2 = y.forwardRef(
4995
4995
  arrowPadding: u,
4996
4996
  collisionBoundary: f,
4997
4997
  collisionPadding: p,
4998
- sticky: m,
4999
- hideWhenDetached: g,
4998
+ sticky: g,
4999
+ hideWhenDetached: m,
5000
5000
  avoidCollisions: b
5001
5001
  } : {};
5002
5002
  return /* @__PURE__ */ h(
@@ -5080,8 +5080,8 @@ const Kn = 10, [L2, Lr] = $o(oi), x$ = "SelectContentImpl", N2 = y.forwardRef(
5080
5080
  N2.displayName = x$;
5081
5081
  const C$ = "SelectItemAlignedPosition", B2 = y.forwardRef(
5082
5082
  (t, e) => {
5083
- const { __scopeSelect: n, onPlaced: r, ...i } = t, o = lr(oi, n), s = Lr(oi, n), [a, l] = y.useState(null), [c, d] = y.useState(null), u = pe(e, (k) => d(k)), f = Ns(n), p = y.useRef(!1), m = y.useRef(!0), { viewport: g, selectedItem: b, selectedItemText: v, focusSelectedItem: w } = s, x = y.useCallback(() => {
5084
- if (o.trigger && o.valueNode && a && c && g && b && v) {
5083
+ const { __scopeSelect: n, onPlaced: r, ...i } = t, o = lr(oi, n), s = Lr(oi, n), [a, l] = y.useState(null), [c, d] = y.useState(null), u = pe(e, (k) => d(k)), f = Ns(n), p = y.useRef(!1), g = y.useRef(!0), { viewport: m, selectedItem: b, selectedItemText: v, focusSelectedItem: w } = s, x = y.useCallback(() => {
5084
+ if (o.trigger && o.valueNode && a && c && m && b && v) {
5085
5085
  const k = o.trigger.getBoundingClientRect(), D = c.getBoundingClientRect(), E = o.valueNode.getBoundingClientRect(), O = v.getBoundingClientRect();
5086
5086
  if (o.dir !== "rtl") {
5087
5087
  const be = O.left - D.left, ge = E.left - be, Ve = k.left - ge, Oe = k.width + Ve, Me = Math.max(Oe, D.width), dt = window.innerWidth - Kn, At = ch(ge, [Kn, dt - Me]);
@@ -5090,11 +5090,11 @@ const C$ = "SelectItemAlignedPosition", B2 = y.forwardRef(
5090
5090
  const be = D.right - O.right, ge = window.innerWidth - E.right - be, Ve = window.innerWidth - k.right - ge, Oe = k.width + Ve, Me = Math.max(Oe, D.width), dt = window.innerWidth - Kn, At = ch(ge, [Kn, dt - Me]);
5091
5091
  a.style.minWidth = `${Oe}px`, a.style.right = `${At}px`;
5092
5092
  }
5093
- const V = f(), B = window.innerHeight - Kn * 2, q = g.scrollHeight, z = window.getComputedStyle(c), K = parseInt(z.borderTopWidth, 10), Q = parseInt(z.paddingTop, 10), j = parseInt(z.borderBottomWidth, 10), W = parseInt(z.paddingBottom, 10), F = K + Q + q + W + j, ne = Math.min(b.offsetHeight * 5, F), oe = window.getComputedStyle(g), ve = parseInt(oe.paddingTop, 10), he = parseInt(oe.paddingBottom, 10), Ce = k.top + k.height / 2 - Kn, Se = B - Ce, Re = b.offsetHeight / 2, ce = b.offsetTop + Re, ke = K + Q + ce, xe = F - ke;
5093
+ const V = f(), B = window.innerHeight - Kn * 2, q = m.scrollHeight, z = window.getComputedStyle(c), K = parseInt(z.borderTopWidth, 10), Q = parseInt(z.paddingTop, 10), j = parseInt(z.borderBottomWidth, 10), W = parseInt(z.paddingBottom, 10), F = K + Q + q + W + j, ne = Math.min(b.offsetHeight * 5, F), oe = window.getComputedStyle(m), ve = parseInt(oe.paddingTop, 10), he = parseInt(oe.paddingBottom, 10), Ce = k.top + k.height / 2 - Kn, Se = B - Ce, Re = b.offsetHeight / 2, ce = b.offsetTop + Re, ke = K + Q + ce, xe = F - ke;
5094
5094
  if (ke <= Ce) {
5095
5095
  const be = b === V[V.length - 1].ref.current;
5096
5096
  a.style.bottom = "0px";
5097
- const ge = c.clientHeight - g.offsetTop - g.offsetHeight, Ve = Math.max(
5097
+ const ge = c.clientHeight - m.offsetTop - m.offsetHeight, Ve = Math.max(
5098
5098
  Se,
5099
5099
  Re + // viewport might have padding bottom, include it to avoid a scrollable viewport
5100
5100
  (be ? he : 0) + ge + j
@@ -5105,10 +5105,10 @@ const C$ = "SelectItemAlignedPosition", B2 = y.forwardRef(
5105
5105
  a.style.top = "0px";
5106
5106
  const Ve = Math.max(
5107
5107
  Ce,
5108
- K + g.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
5108
+ K + m.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
5109
5109
  (be ? ve : 0) + Re
5110
5110
  ) + xe;
5111
- a.style.height = `${Ve}px`, g.scrollTop = ke - Ce + g.offsetTop;
5111
+ a.style.height = `${Ve}px`, m.scrollTop = ke - Ce + m.offsetTop;
5112
5112
  }
5113
5113
  a.style.margin = `${Kn}px 0`, a.style.minHeight = `${ne}px`, a.style.maxHeight = `${B}px`, r?.(), requestAnimationFrame(() => p.current = !0);
5114
5114
  }
@@ -5118,7 +5118,7 @@ const C$ = "SelectItemAlignedPosition", B2 = y.forwardRef(
5118
5118
  o.valueNode,
5119
5119
  a,
5120
5120
  c,
5121
- g,
5121
+ m,
5122
5122
  b,
5123
5123
  v,
5124
5124
  o.dir,
@@ -5131,7 +5131,7 @@ const C$ = "SelectItemAlignedPosition", B2 = y.forwardRef(
5131
5131
  }, [c]);
5132
5132
  const S = y.useCallback(
5133
5133
  (k) => {
5134
- k && m.current === !0 && (x(), w?.(), m.current = !1);
5134
+ k && g.current === !0 && (x(), w?.(), g.current = !1);
5135
5135
  },
5136
5136
  [x, w]
5137
5137
  );
@@ -5236,7 +5236,7 @@ const [S$, hf] = $o(
5236
5236
  if (u?.current && d) {
5237
5237
  const f = Math.abs(a.current - c.scrollTop);
5238
5238
  if (f > 0) {
5239
- const p = window.innerHeight - Kn * 2, m = parseFloat(d.style.minHeight), g = parseFloat(d.style.height), b = Math.max(m, g);
5239
+ const p = window.innerHeight - Kn * 2, g = parseFloat(d.style.minHeight), m = parseFloat(d.style.height), b = Math.max(g, m);
5240
5240
  if (b < p) {
5241
5241
  const v = b + f, w = Math.min(p, v), x = v - w;
5242
5242
  d.style.height = `${w}px`, d.style.bottom === "0px" && (c.scrollTop = x > 0 ? x : 0, d.style.justifyContent = "flex-end");
@@ -5267,7 +5267,7 @@ const V2 = "SelectLabel", pf = y.forwardRef(
5267
5267
  pf.displayName = V2;
5268
5268
  const cl = "SelectItem", [T$, _2] = $o(cl), gf = y.forwardRef(
5269
5269
  (t, e) => {
5270
- const { __scopeSelect: n, value: r, disabled: i = !1, textValue: o, ...s } = t, a = lr(cl, n), l = Lr(cl, n), c = typeof r == "string" ? Array.isArray(a.value) ? a.value.includes(r) : a.value === r : r.every((w) => a.value?.includes(w)), d = Array.isArray(a.value) && Array.isArray(r) && r.some((w) => a.value?.includes(w)), [u, f] = y.useState(o ?? ""), [p, m] = y.useState(!1), g = pe(
5270
+ const { __scopeSelect: n, value: r, disabled: i = !1, textValue: o, ...s } = t, a = lr(cl, n), l = Lr(cl, n), c = typeof r == "string" ? Array.isArray(a.value) ? a.value.includes(r) : a.value === r : r.every((w) => a.value?.includes(w)), d = Array.isArray(a.value) && Array.isArray(r) && r.some((w) => a.value?.includes(w)), [u, f] = y.useState(o ?? ""), [p, g] = y.useState(!1), m = pe(
5271
5271
  e,
5272
5272
  (w) => l.itemRefCallback?.(w, r, i)
5273
5273
  ), b = gt(), v = () => {
@@ -5303,9 +5303,9 @@ const cl = "SelectItem", [T$, _2] = $o(cl), gf = y.forwardRef(
5303
5303
  "data-disabled": i ? "" : void 0,
5304
5304
  tabIndex: i ? void 0 : -1,
5305
5305
  ...s,
5306
- ref: g,
5307
- onFocus: Y(s.onFocus, () => m(!0)),
5308
- onBlur: Y(s.onBlur, () => m(!1)),
5306
+ ref: m,
5307
+ onFocus: Y(s.onFocus, () => g(!0)),
5308
+ onBlur: Y(s.onBlur, () => g(!1)),
5309
5309
  onPointerUp: Y(s.onPointerUp, v),
5310
5310
  onPointerMove: Y(s.onPointerMove, (w) => {
5311
5311
  i ? l.onItemLeave?.() : w.currentTarget.focus({ preventScroll: !0 });
@@ -5330,7 +5330,7 @@ const qo = "SelectItemText", mf = y.forwardRef(
5330
5330
  (v) => u(v),
5331
5331
  l.onItemTextChange,
5332
5332
  (v) => a.itemTextRefCallback?.(v, l.value, l.disabled)
5333
- ), p = d?.textContent, m = y.useMemo(
5333
+ ), p = d?.textContent, g = y.useMemo(
5334
5334
  () => /* @__PURE__ */ h(
5335
5335
  "option",
5336
5336
  {
@@ -5341,8 +5341,8 @@ const qo = "SelectItemText", mf = y.forwardRef(
5341
5341
  Array.isArray(l.value) ? l.value.join(";") : l.value
5342
5342
  ),
5343
5343
  [l.disabled, l.value, p]
5344
- ), { onNativeOptionAdd: g, onNativeOptionRemove: b } = c;
5345
- return qe(() => (g(m), () => b(m)), [g, b, m]), /* @__PURE__ */ L(mt, { children: [
5344
+ ), { onNativeOptionAdd: m, onNativeOptionRemove: b } = c;
5345
+ return qe(() => (m(g), () => b(g)), [m, b, g]), /* @__PURE__ */ L(mt, { children: [
5346
5346
  /* @__PURE__ */ h(de.span, { id: l.textId, ...o, ref: f }),
5347
5347
  l.isSelected && s.valueNode && !s.valueNodeHasChildren ? bo.createPortal(o.children, s.valueNode) : null
5348
5348
  ] });
@@ -5593,7 +5593,7 @@ const q2 = "Collapsible", [G$, U2] = Je(q2), [Y$, $f] = G$(q2), X$ = /* @__PURE_
5593
5593
  }))
5594
5594
  );
5595
5595
  }), e8 = /* @__PURE__ */ A((t, e) => {
5596
- const { __scopeCollapsible: n, present: r, children: i, ...o } = t, s = $f(j2, n), [a, l] = Z(r), c = te(null), d = pe(e, c), u = te(0), f = u.current, p = te(0), m = p.current, g = s.open || a, b = te(g), v = te();
5596
+ const { __scopeCollapsible: n, present: r, children: i, ...o } = t, s = $f(j2, n), [a, l] = Z(r), c = te(null), d = pe(e, c), u = te(0), f = u.current, p = te(0), g = p.current, m = s.open || a, b = te(m), v = te();
5597
5597
  return J(() => {
5598
5598
  const w = requestAnimationFrame(
5599
5599
  () => b.current = !1
@@ -5616,15 +5616,15 @@ const q2 = "Collapsible", [G$, U2] = Je(q2), [Y$, $f] = G$(q2), X$ = /* @__PURE_
5616
5616
  "data-state": Sf(s.open),
5617
5617
  "data-disabled": s.disabled ? "" : void 0,
5618
5618
  id: s.contentId,
5619
- hidden: !g
5619
+ hidden: !m
5620
5620
  }, o, {
5621
5621
  ref: d,
5622
5622
  style: {
5623
5623
  "--radix-collapsible-content-height": f ? `${f}px` : void 0,
5624
- "--radix-collapsible-content-width": m ? `${m}px` : void 0,
5624
+ "--radix-collapsible-content-width": g ? `${g}px` : void 0,
5625
5625
  ...t.style
5626
5626
  }
5627
- }), g && i);
5627
+ }), m && i);
5628
5628
  });
5629
5629
  function Sf(t) {
5630
5630
  return t ? "open" : "closed";
@@ -5725,13 +5725,13 @@ const [G2, a8] = uc(Nr), [Y2, l8] = uc(Nr, {
5725
5725
  }))));
5726
5726
  }), [h8, fc] = uc(Nr), X2 = /* @__PURE__ */ $e.forwardRef((t, e) => {
5727
5727
  const { __scopeAccordion: n, disabled: r, dir: i, orientation: o = "vertical", ...s } = t, a = $e.useRef(null), l = pe(a, e), c = o8(n), u = pi(i) === "ltr", f = Y(t.onKeyDown, (p) => {
5728
- var m;
5728
+ var g;
5729
5729
  if (!i8.includes(p.key)) return;
5730
- const g = p.target, b = c().filter((E) => {
5730
+ const m = p.target, b = c().filter((E) => {
5731
5731
  var O;
5732
5732
  return !((O = E.ref.current) !== null && O !== void 0 && O.disabled);
5733
5733
  }), v = b.findIndex(
5734
- (E) => E.ref.current === g
5734
+ (E) => E.ref.current === m
5735
5735
  ), w = b.length;
5736
5736
  if (v === -1) return;
5737
5737
  p.preventDefault();
@@ -5762,7 +5762,7 @@ const [G2, a8] = uc(Nr), [Y2, l8] = uc(Nr, {
5762
5762
  break;
5763
5763
  }
5764
5764
  const D = x % w;
5765
- (m = b[D].ref.current) === null || m === void 0 || m.focus();
5765
+ (g = b[D].ref.current) === null || g === void 0 || g.focus();
5766
5766
  });
5767
5767
  return /* @__PURE__ */ $e.createElement(h8, {
5768
5768
  scope: n,
@@ -7804,7 +7804,7 @@ const zA = BA, WA = VA, qA = HA, dd = "rovingFocusGroup.onEntryFocus", UA = {
7804
7804
  }, /* @__PURE__ */ M(QA, H({}, t, {
7805
7805
  ref: e
7806
7806
  }))))), QA = /* @__PURE__ */ A((t, e) => {
7807
- const { __scopeRovingFocusGroup: n, orientation: r, loop: i = !1, dir: o, currentTabStopId: s, defaultCurrentTabStopId: a, onCurrentTabStopIdChange: l, onEntryFocus: c, ...d } = t, u = te(null), f = pe(e, u), p = pi(o), [m = null, g] = ft({
7807
+ const { __scopeRovingFocusGroup: n, orientation: r, loop: i = !1, dir: o, currentTabStopId: s, defaultCurrentTabStopId: a, onCurrentTabStopIdChange: l, onEntryFocus: c, ...d } = t, u = te(null), f = pe(e, u), p = pi(o), [g = null, m] = ft({
7808
7808
  prop: s,
7809
7809
  defaultProp: a,
7810
7810
  onChange: l
@@ -7820,11 +7820,11 @@ const zA = BA, WA = VA, qA = HA, dd = "rovingFocusGroup.onEntryFocus", UA = {
7820
7820
  orientation: r,
7821
7821
  dir: p,
7822
7822
  loop: i,
7823
- currentTabStopId: m,
7823
+ currentTabStopId: g,
7824
7824
  onItemFocus: ue(
7825
- (k) => g(k),
7825
+ (k) => m(k),
7826
7826
  [
7827
- g
7827
+ m
7828
7828
  ]
7829
7829
  ),
7830
7830
  onItemShiftTab: ue(
@@ -7865,7 +7865,7 @@ const zA = BA, WA = VA, qA = HA, dd = "rovingFocusGroup.onEntryFocus", UA = {
7865
7865
  ), V = O.find(
7866
7866
  (K) => K.active
7867
7867
  ), B = O.find(
7868
- (K) => K.id === m
7868
+ (K) => K.id === g
7869
7869
  ), z = [
7870
7870
  V,
7871
7871
  B,
@@ -7902,31 +7902,31 @@ const zA = BA, WA = VA, qA = HA, dd = "rovingFocusGroup.onEntryFocus", UA = {
7902
7902
  "data-orientation": c.orientation
7903
7903
  }, s, {
7904
7904
  ref: e,
7905
- onMouseDown: Y(t.onMouseDown, (m) => {
7906
- r ? c.onItemFocus(l) : m.preventDefault();
7905
+ onMouseDown: Y(t.onMouseDown, (g) => {
7906
+ r ? c.onItemFocus(l) : g.preventDefault();
7907
7907
  }),
7908
7908
  onFocus: Y(
7909
7909
  t.onFocus,
7910
7910
  () => c.onItemFocus(l)
7911
7911
  ),
7912
- onKeyDown: Y(t.onKeyDown, (m) => {
7913
- if (m.key === "Tab" && m.shiftKey) {
7912
+ onKeyDown: Y(t.onKeyDown, (g) => {
7913
+ if (g.key === "Tab" && g.shiftKey) {
7914
7914
  c.onItemShiftTab();
7915
7915
  return;
7916
7916
  }
7917
- if (m.target !== m.currentTarget) return;
7918
- const g = nk(m, c.orientation, c.dir);
7919
- if (g !== void 0) {
7920
- m.preventDefault();
7917
+ if (g.target !== g.currentTarget) return;
7918
+ const m = nk(g, c.orientation, c.dir);
7919
+ if (m !== void 0) {
7920
+ g.preventDefault();
7921
7921
  let v = u().filter(
7922
7922
  (w) => w.focusable
7923
7923
  ).map(
7924
7924
  (w) => w.ref.current
7925
7925
  );
7926
- if (g === "last") v.reverse();
7927
- else if (g === "prev" || g === "next") {
7928
- g === "prev" && v.reverse();
7929
- const w = v.indexOf(m.currentTarget);
7926
+ if (m === "last") v.reverse();
7927
+ else if (m === "prev" || m === "next") {
7928
+ m === "prev" && v.reverse();
7929
+ const w = v.indexOf(g.currentTarget);
7930
7930
  v = c.loop ? rk(v, w + 1) : v.slice(w + 1);
7931
7931
  }
7932
7932
  setTimeout(
@@ -7999,8 +7999,8 @@ var ik = function(t) {
7999
7999
  d(f);
8000
8000
  else
8001
8001
  try {
8002
- var p = f.getAttribute(r), m = p !== null && p !== "false", g = ($i.get(f) || 0) + 1, b = (o.get(f) || 0) + 1;
8003
- $i.set(f, g), o.set(f, b), s.push(f), g === 1 && m && sa.set(f, !0), b === 1 && f.setAttribute(n, "true"), m || f.setAttribute(r, "true");
8002
+ var p = f.getAttribute(r), g = p !== null && p !== "false", m = ($i.get(f) || 0) + 1, b = (o.get(f) || 0) + 1;
8003
+ $i.set(f, m), o.set(f, b), s.push(f), m === 1 && g && sa.set(f, !0), b === 1 && f.setAttribute(n, "true"), g || f.setAttribute(r, "true");
8004
8004
  } catch (v) {
8005
8005
  console.error("aria-hidden: cannot operate on ", f, v);
8006
8006
  }
@@ -8024,11 +8024,11 @@ var ik = function(t) {
8024
8024
  onScrollCapture: ud,
8025
8025
  onWheelCapture: ud,
8026
8026
  onTouchMoveCapture: ud
8027
- }), i = r[0], o = r[1], s = t.forwardProps, a = t.children, l = t.className, c = t.removeScrollBar, d = t.enabled, u = t.shards, f = t.sideCar, p = t.noIsolation, m = t.inert, g = t.allowPinchZoom, b = t.as, v = b === void 0 ? "div" : b, w = ic(t, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]), x = f, C = Ku([n, e]), $ = Ge(Ge({}, w), i);
8027
+ }), i = r[0], o = r[1], s = t.forwardProps, a = t.children, l = t.className, c = t.removeScrollBar, d = t.enabled, u = t.shards, f = t.sideCar, p = t.noIsolation, g = t.inert, m = t.allowPinchZoom, b = t.as, v = b === void 0 ? "div" : b, w = ic(t, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]), x = f, C = Ku([n, e]), $ = Ge(Ge({}, w), i);
8028
8028
  return y.createElement(
8029
8029
  y.Fragment,
8030
8030
  null,
8031
- d && y.createElement(x, { sideCar: db, removeScrollBar: c, shards: u, noIsolation: p, inert: m, setCallbacks: o, allowPinchZoom: !!g, lockRef: n }),
8031
+ d && y.createElement(x, { sideCar: db, removeScrollBar: c, shards: u, noIsolation: p, inert: g, setCallbacks: o, allowPinchZoom: !!m, lockRef: n }),
8032
8032
  s ? y.cloneElement(y.Children.only(a), Ge(Ge({}, $), { ref: C })) : y.createElement(v, Ge({}, $, { className: l, ref: C }), a)
8033
8033
  );
8034
8034
  });
@@ -8102,8 +8102,8 @@ var Si = vh ? { passive: !1 } : !1, ak = function(t) {
8102
8102
  }, fk = function(t, e, n, r, i) {
8103
8103
  var o = uk(t, window.getComputedStyle(e).direction), s = o * r, a = n.target, l = e.contains(a), c = !1, d = s > 0, u = 0, f = 0;
8104
8104
  do {
8105
- var p = fb(t, a), m = p[0], g = p[1], b = p[2], v = g - b - o * m;
8106
- (m || v) && ub(t, a) && (u += v, f += m), a = a.parentNode;
8105
+ var p = fb(t, a), g = p[0], m = p[1], b = p[2], v = m - b - o * g;
8106
+ (g || v) && ub(t, a) && (u += v, f += g), a = a.parentNode;
8107
8107
  } while (
8108
8108
  // portaled content
8109
8109
  !l && a !== document.body || // self content
@@ -8133,33 +8133,33 @@ function bk(t) {
8133
8133
  }, [t]), y.useEffect(function() {
8134
8134
  if (t.inert) {
8135
8135
  document.body.classList.add("block-interactivity-".concat(i));
8136
- var g = ju([t.lockRef.current], (t.shards || []).map(w1), !0).filter(Boolean);
8137
- return g.forEach(function(b) {
8136
+ var m = ju([t.lockRef.current], (t.shards || []).map(w1), !0).filter(Boolean);
8137
+ return m.forEach(function(b) {
8138
8138
  return b.classList.add("allow-interactivity-".concat(i));
8139
8139
  }), function() {
8140
- document.body.classList.remove("block-interactivity-".concat(i)), g.forEach(function(b) {
8140
+ document.body.classList.remove("block-interactivity-".concat(i)), m.forEach(function(b) {
8141
8141
  return b.classList.remove("allow-interactivity-".concat(i));
8142
8142
  });
8143
8143
  };
8144
8144
  }
8145
8145
  }, [t.inert, t.lockRef.current, t.shards]);
8146
- var a = y.useCallback(function(g, b) {
8147
- if ("touches" in g && g.touches.length === 2)
8146
+ var a = y.useCallback(function(m, b) {
8147
+ if ("touches" in m && m.touches.length === 2)
8148
8148
  return !s.current.allowPinchZoom;
8149
- var v = ca(g), w = n.current, x = "deltaX" in g ? g.deltaX : w[0] - v[0], C = "deltaY" in g ? g.deltaY : w[1] - v[1], $, S = g.target, k = Math.abs(x) > Math.abs(C) ? "h" : "v";
8150
- if ("touches" in g && k === "h" && S.type === "range")
8149
+ var v = ca(m), w = n.current, x = "deltaX" in m ? m.deltaX : w[0] - v[0], C = "deltaY" in m ? m.deltaY : w[1] - v[1], $, S = m.target, k = Math.abs(x) > Math.abs(C) ? "h" : "v";
8150
+ if ("touches" in m && k === "h" && S.type === "range")
8151
8151
  return !1;
8152
8152
  var D = b1(k, S);
8153
8153
  if (!D)
8154
8154
  return !0;
8155
8155
  if (D ? $ = k : ($ = k === "v" ? "h" : "v", D = b1(k, S)), !D)
8156
8156
  return !1;
8157
- if (!r.current && "changedTouches" in g && (x || C) && (r.current = $), !$)
8157
+ if (!r.current && "changedTouches" in m && (x || C) && (r.current = $), !$)
8158
8158
  return !0;
8159
8159
  var E = r.current || $;
8160
- return fk(E, b, g, E === "h" ? x : C);
8161
- }, []), l = y.useCallback(function(g) {
8162
- var b = g;
8160
+ return fk(E, b, m, E === "h" ? x : C);
8161
+ }, []), l = y.useCallback(function(m) {
8162
+ var b = m;
8163
8163
  if (!(!Ai.length || Ai[Ai.length - 1] !== o)) {
8164
8164
  var v = "deltaY" in b ? v1(b) : ca(b), w = e.current.filter(function($) {
8165
8165
  return $.name === b.type && $.target === b.target && pk($.delta, v);
@@ -8175,19 +8175,19 @@ function bk(t) {
8175
8175
  C && b.cancelable && b.preventDefault();
8176
8176
  }
8177
8177
  }
8178
- }, []), c = y.useCallback(function(g, b, v, w) {
8179
- var x = { name: g, delta: b, target: v, should: w };
8178
+ }, []), c = y.useCallback(function(m, b, v, w) {
8179
+ var x = { name: m, delta: b, target: v, should: w };
8180
8180
  e.current.push(x), setTimeout(function() {
8181
8181
  e.current = e.current.filter(function(C) {
8182
8182
  return C !== x;
8183
8183
  });
8184
8184
  }, 1);
8185
- }, []), d = y.useCallback(function(g) {
8186
- n.current = ca(g), r.current = void 0;
8187
- }, []), u = y.useCallback(function(g) {
8188
- c(g.type, v1(g), g.target, a(g, t.lockRef.current));
8189
- }, []), f = y.useCallback(function(g) {
8190
- c(g.type, ca(g), g.target, a(g, t.lockRef.current));
8185
+ }, []), d = y.useCallback(function(m) {
8186
+ n.current = ca(m), r.current = void 0;
8187
+ }, []), u = y.useCallback(function(m) {
8188
+ c(m.type, v1(m), m.target, a(m, t.lockRef.current));
8189
+ }, []), f = y.useCallback(function(m) {
8190
+ c(m.type, ca(m), m.target, a(m, t.lockRef.current));
8191
8191
  }, []);
8192
8192
  y.useEffect(function() {
8193
8193
  return Ai.push(o), t.setCallbacks({
@@ -8195,16 +8195,16 @@ function bk(t) {
8195
8195
  onWheelCapture: u,
8196
8196
  onTouchMoveCapture: f
8197
8197
  }), document.addEventListener("wheel", l, Si), document.addEventListener("touchmove", l, Si), document.addEventListener("touchstart", d, Si), function() {
8198
- Ai = Ai.filter(function(g) {
8199
- return g !== o;
8198
+ Ai = Ai.filter(function(m) {
8199
+ return m !== o;
8200
8200
  }), document.removeEventListener("wheel", l, Si), document.removeEventListener("touchmove", l, Si), document.removeEventListener("touchstart", d, Si);
8201
8201
  };
8202
8202
  }, []);
8203
- var p = t.removeScrollBar, m = t.inert;
8203
+ var p = t.removeScrollBar, g = t.inert;
8204
8204
  return y.createElement(
8205
8205
  y.Fragment,
8206
8206
  null,
8207
- m ? y.createElement(o, { styles: gk(i) }) : null,
8207
+ g ? y.createElement(o, { styles: gk(i) }) : null,
8208
8208
  p ? y.createElement(Xu, { gapMode: "margin" }) : null
8209
8209
  );
8210
8210
  }
@@ -8251,22 +8251,22 @@ const y1 = [
8251
8251
  const { __scopeMenu: e, open: n = !1, children: r, dir: i, onOpenChange: o, modal: s = !0 } = t, a = Bf(e), [l, c] = Z(null), d = te(!1), u = tt(o), f = pi(i);
8252
8252
  return J(() => {
8253
8253
  const p = () => {
8254
- d.current = !0, document.addEventListener("pointerdown", m, {
8254
+ d.current = !0, document.addEventListener("pointerdown", g, {
8255
8255
  capture: !0,
8256
8256
  once: !0
8257
- }), document.addEventListener("pointermove", m, {
8257
+ }), document.addEventListener("pointermove", g, {
8258
8258
  capture: !0,
8259
8259
  once: !0
8260
8260
  });
8261
- }, m = () => d.current = !1;
8261
+ }, g = () => d.current = !1;
8262
8262
  return document.addEventListener("keydown", p, {
8263
8263
  capture: !0
8264
8264
  }), () => {
8265
8265
  document.removeEventListener("keydown", p, {
8266
8266
  capture: !0
8267
- }), document.removeEventListener("pointerdown", m, {
8267
+ }), document.removeEventListener("pointerdown", g, {
8268
8268
  capture: !0
8269
- }), document.removeEventListener("pointermove", m, {
8269
+ }), document.removeEventListener("pointermove", g, {
8270
8270
  capture: !0
8271
8271
  });
8272
8272
  };
@@ -8348,7 +8348,7 @@ const y1 = [
8348
8348
  onDismiss: () => n.onOpenChange(!1)
8349
8349
  }));
8350
8350
  }), Ff = /* @__PURE__ */ A((t, e) => {
8351
- const { __scopeMenu: n, loop: r = !1, trapFocus: i, onOpenAutoFocus: o, onCloseAutoFocus: s, disableOutsidePointerEvents: a, onEntryFocus: l, onEscapeKeyDown: c, onPointerDownOutside: d, onFocusOutside: u, onInteractOutside: f, onDismiss: p, disableOutsideScroll: m, ...g } = t, b = bi(ln, n), v = bc(ln, n), w = Bf(n), x = mb(n), C = $k(n), [$, S] = Z(null), k = te(null), D = pe(e, k, b.onContentChange), E = te(0), O = te(""), V = te(0), B = te(null), q = te("right"), z = te(0), K = m ? gc : Ul, Q = m ? {
8351
+ const { __scopeMenu: n, loop: r = !1, trapFocus: i, onOpenAutoFocus: o, onCloseAutoFocus: s, disableOutsidePointerEvents: a, onEntryFocus: l, onEscapeKeyDown: c, onPointerDownOutside: d, onFocusOutside: u, onInteractOutside: f, onDismiss: p, disableOutsideScroll: g, ...m } = t, b = bi(ln, n), v = bc(ln, n), w = Bf(n), x = mb(n), C = $k(n), [$, S] = Z(null), k = te(null), D = pe(e, k, b.onContentChange), E = te(0), O = te(""), V = te(0), B = te(null), q = te("right"), z = te(0), K = g ? gc : Ul, Q = g ? {
8352
8352
  as: On,
8353
8353
  allowPinchZoom: !0
8354
8354
  } : void 0, j = (F) => {
@@ -8432,13 +8432,13 @@ const y1 = [
8432
8432
  "data-state": Cb(b.open),
8433
8433
  "data-radix-menu-content": "",
8434
8434
  dir: v.dir
8435
- }, w, g, {
8435
+ }, w, m, {
8436
8436
  ref: D,
8437
8437
  style: {
8438
8438
  outline: "none",
8439
- ...g.style
8439
+ ...m.style
8440
8440
  },
8441
- onKeyDown: Y(g.onKeyDown, (F) => {
8441
+ onKeyDown: Y(m.onKeyDown, (F) => {
8442
8442
  const oe = F.target.closest("[data-radix-menu-content]") === F.currentTarget, ve = F.ctrlKey || F.altKey || F.metaKey, he = F.key.length === 1;
8443
8443
  oe && (F.key === "Tab" && F.preventDefault(), !ve && he && j(F.key));
8444
8444
  const Ce = k.current;
@@ -8470,10 +8470,10 @@ const y1 = [
8470
8470
  }), Nk = "MenuItem", Bk = /* @__PURE__ */ A((t, e) => {
8471
8471
  const { __scopeMenu: n, disabled: r = !1, textValue: i, ...o } = t, s = yb(Nk, n), a = mb(n), l = te(null), c = pe(e, l), [d, u] = Z(!1), [f, p] = Z("");
8472
8472
  return J(() => {
8473
- const m = l.current;
8474
- if (m) {
8475
- var g;
8476
- p(((g = m.textContent) !== null && g !== void 0 ? g : "").trim());
8473
+ const g = l.current;
8474
+ if (g) {
8475
+ var m;
8476
+ p(((m = g.textContent) !== null && m !== void 0 ? m : "").trim());
8477
8477
  }
8478
8478
  }, [
8479
8479
  o.children
@@ -8492,11 +8492,11 @@ const y1 = [
8492
8492
  "data-disabled": r ? "" : void 0
8493
8493
  }, o, {
8494
8494
  ref: c,
8495
- onPointerMove: Y(t.onPointerMove, as((m) => {
8496
- r ? s.onItemLeave(m) : (s.onItemEnter(m), m.defaultPrevented || m.currentTarget.focus());
8495
+ onPointerMove: Y(t.onPointerMove, as((g) => {
8496
+ r ? s.onItemLeave(g) : (s.onItemEnter(g), g.defaultPrevented || g.currentTarget.focus());
8497
8497
  })),
8498
8498
  onPointerLeave: Y(t.onPointerLeave, as(
8499
- (m) => s.onItemLeave(m)
8499
+ (g) => s.onItemLeave(g)
8500
8500
  )),
8501
8501
  onFocus: Y(
8502
8502
  t.onFocus,
@@ -8564,8 +8564,8 @@ const y1 = [
8564
8564
  d();
8565
8565
  const p = (f = n.content) === null || f === void 0 ? void 0 : f.getBoundingClientRect();
8566
8566
  if (p) {
8567
- var m;
8568
- const g = (m = n.content) === null || m === void 0 ? void 0 : m.dataset.side, b = g === "right", v = b ? -5 : 5, w = p[b ? "left" : "right"], x = p[b ? "right" : "left"];
8567
+ var g;
8568
+ const m = (g = n.content) === null || g === void 0 ? void 0 : g.dataset.side, b = m === "right", v = b ? -5 : 5, w = p[b ? "left" : "right"], x = p[b ? "right" : "left"];
8569
8569
  o.onPointerGraceIntentChange({
8570
8570
  area: [
8571
8571
  // consistently within polygon bounds
@@ -8590,7 +8590,7 @@ const y1 = [
8590
8590
  y: p.bottom
8591
8591
  }
8592
8592
  ],
8593
- side: g
8593
+ side: m
8594
8594
  }), window.clearTimeout(a.current), a.current = window.setTimeout(
8595
8595
  () => o.onPointerGraceIntentChange(null),
8596
8596
  300
@@ -8810,7 +8810,7 @@ const Yk = Tk, Xk = bb, Qk = Ik, Zk = Ek, Jk = Lk, eT = _k, tT = Pk, nT = Wk, $b
8810
8810
  const { __scopeCheckbox: n, name: r, checked: i, defaultChecked: o, required: s, disabled: a, value: l = "on", onCheckedChange: c, ...d } = t, [u, f] = Z(null), p = pe(
8811
8811
  e,
8812
8812
  (x) => f(x)
8813
- ), m = te(!1), g = u ? !!u.closest("form") : !0, [b = !1, v] = ft({
8813
+ ), g = te(!1), m = u ? !!u.closest("form") : !0, [b = !1, v] = ft({
8814
8814
  prop: i,
8815
8815
  defaultProp: o,
8816
8816
  onChange: c
@@ -8845,11 +8845,11 @@ const Yk = Tk, Xk = bb, Qk = Ik, Zk = Ek, Jk = Lk, eT = _k, tT = Pk, nT = Wk, $b
8845
8845
  onClick: Y(t.onClick, (x) => {
8846
8846
  v(
8847
8847
  (C) => Xr(C) ? !0 : !C
8848
- ), g && (m.current = x.isPropagationStopped(), m.current || x.stopPropagation());
8848
+ ), m && (g.current = x.isPropagationStopped(), g.current || x.stopPropagation());
8849
8849
  })
8850
- })), g && /* @__PURE__ */ M(MT, {
8850
+ })), m && /* @__PURE__ */ M(MT, {
8851
8851
  control: u,
8852
- bubbles: !m.current,
8852
+ bubbles: !g.current,
8853
8853
  name: r,
8854
8854
  value: l,
8855
8855
  checked: b,
@@ -8918,7 +8918,7 @@ function ET(t, e) {
8918
8918
  }, t);
8919
8919
  }
8920
8920
  const Mb = "ScrollArea", [Ib, BU] = Je(Mb), [DT, Pn] = Ib(Mb), OT = /* @__PURE__ */ A((t, e) => {
8921
- const { __scopeScrollArea: n, type: r = "hover", dir: i, scrollHideDelay: o = 600, ...s } = t, [a, l] = Z(null), [c, d] = Z(null), [u, f] = Z(null), [p, m] = Z(null), [g, b] = Z(null), [v, w] = Z(0), [x, C] = Z(0), [$, S] = Z(!1), [k, D] = Z(!1), E = pe(
8921
+ const { __scopeScrollArea: n, type: r = "hover", dir: i, scrollHideDelay: o = 600, ...s } = t, [a, l] = Z(null), [c, d] = Z(null), [u, f] = Z(null), [p, g] = Z(null), [m, b] = Z(null), [v, w] = Z(0), [x, C] = Z(0), [$, S] = Z(!1), [k, D] = Z(!1), E = pe(
8922
8922
  e,
8923
8923
  (V) => l(V)
8924
8924
  ), O = pi(i);
@@ -8933,10 +8933,10 @@ const Mb = "ScrollArea", [Ib, BU] = Je(Mb), [DT, Pn] = Ib(Mb), OT = /* @__PURE__
8933
8933
  content: u,
8934
8934
  onContentChange: f,
8935
8935
  scrollbarX: p,
8936
- onScrollbarXChange: m,
8936
+ onScrollbarXChange: g,
8937
8937
  scrollbarXEnabled: $,
8938
8938
  onScrollbarXEnabledChange: S,
8939
- scrollbarY: g,
8939
+ scrollbarY: m,
8940
8940
  onScrollbarYChange: b,
8941
8941
  scrollbarYEnabled: k,
8942
8942
  onScrollbarYEnabledChange: D,
@@ -9241,9 +9241,9 @@ const Mb = "ScrollArea", [Ib, BU] = Je(Mb), [DT, Pn] = Ib(Mb), OT = /* @__PURE__
9241
9241
  }
9242
9242
  }));
9243
9243
  }), [PT, Eb] = Ib(cr), Db = /* @__PURE__ */ A((t, e) => {
9244
- const { __scopeScrollArea: n, sizes: r, hasThumb: i, onThumbChange: o, onThumbPointerUp: s, onThumbPointerDown: a, onThumbPositionChange: l, onDragScroll: c, onWheelScroll: d, onResize: u, ...f } = t, p = Pn(cr, n), [m, g] = Z(null), b = pe(
9244
+ const { __scopeScrollArea: n, sizes: r, hasThumb: i, onThumbChange: o, onThumbPointerUp: s, onThumbPointerDown: a, onThumbPositionChange: l, onDragScroll: c, onWheelScroll: d, onResize: u, ...f } = t, p = Pn(cr, n), [g, m] = Z(null), b = pe(
9245
9245
  e,
9246
- (E) => g(E)
9246
+ (E) => m(E)
9247
9247
  ), v = te(null), w = te(""), x = p.viewport, C = r.content - r.viewport, $ = tt(d), S = tt(l), k = wc(u, 10);
9248
9248
  function D(E) {
9249
9249
  if (v.current) {
@@ -9257,7 +9257,7 @@ const Mb = "ScrollArea", [Ib, BU] = Je(Mb), [DT, Pn] = Ib(Mb), OT = /* @__PURE__
9257
9257
  return J(() => {
9258
9258
  const E = (O) => {
9259
9259
  const V = O.target;
9260
- m?.contains(V) && $(O, C);
9260
+ g?.contains(V) && $(O, C);
9261
9261
  };
9262
9262
  return document.addEventListener("wheel", E, {
9263
9263
  passive: !1
@@ -9266,15 +9266,15 @@ const Mb = "ScrollArea", [Ib, BU] = Je(Mb), [DT, Pn] = Ib(Mb), OT = /* @__PURE__
9266
9266
  });
9267
9267
  }, [
9268
9268
  x,
9269
- m,
9269
+ g,
9270
9270
  C,
9271
9271
  $
9272
9272
  ]), J(S, [
9273
9273
  r,
9274
9274
  S
9275
- ]), hl(m, k), hl(p.content, k), /* @__PURE__ */ M(PT, {
9275
+ ]), hl(g, k), hl(p.content, k), /* @__PURE__ */ M(PT, {
9276
9276
  scope: n,
9277
- scrollbar: m,
9277
+ scrollbar: g,
9278
9278
  hasThumb: i,
9279
9279
  onThumbChange: tt(o),
9280
9280
  onThumbPointerUp: tt(s),
@@ -9287,7 +9287,7 @@ const Mb = "ScrollArea", [Ib, BU] = Je(Mb), [DT, Pn] = Ib(Mb), OT = /* @__PURE__
9287
9287
  ...f.style
9288
9288
  },
9289
9289
  onPointerDown: Y(t.onPointerDown, (E) => {
9290
- E.button === 0 && (E.target.setPointerCapture(E.pointerId), v.current = m.getBoundingClientRect(), w.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", p.viewport && (p.viewport.style.scrollBehavior = "auto"), D(E));
9290
+ E.button === 0 && (E.target.setPointerCapture(E.pointerId), v.current = g.getBoundingClientRect(), w.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", p.viewport && (p.viewport.style.scrollBehavior = "auto"), D(E));
9291
9291
  }),
9292
9292
  onPointerMove: Y(t.onPointerMove, D),
9293
9293
  onPointerUp: Y(t.onPointerUp, (E) => {
@@ -9334,10 +9334,10 @@ const Mb = "ScrollArea", [Ib, BU] = Je(Mb), [DT, Pn] = Ib(Mb), OT = /* @__PURE__
9334
9334
  ...r
9335
9335
  },
9336
9336
  onPointerDownCapture: Y(t.onPointerDownCapture, (u) => {
9337
- const p = u.target.getBoundingClientRect(), m = u.clientX - p.left, g = u.clientY - p.top;
9337
+ const p = u.target.getBoundingClientRect(), g = u.clientX - p.left, m = u.clientY - p.top;
9338
9338
  s.onThumbPointerDown({
9339
- x: m,
9340
- y: g
9339
+ x: g,
9340
+ y: m
9341
9341
  });
9342
9342
  }),
9343
9343
  onPointerUp: Y(t.onPointerUp, s.onThumbPointerUp)
@@ -9750,11 +9750,11 @@ function _M(t) {
9750
9750
  isPositioned: !1
9751
9751
  }), [f, p] = y.useState(r);
9752
9752
  ul(f, r) || p(r);
9753
- const [m, g] = y.useState(null), [b, v] = y.useState(null), w = y.useCallback((j) => {
9754
- j !== S.current && (S.current = j, g(j));
9753
+ const [g, m] = y.useState(null), [b, v] = y.useState(null), w = y.useCallback((j) => {
9754
+ j !== S.current && (S.current = j, m(j));
9755
9755
  }, []), x = y.useCallback((j) => {
9756
9756
  j !== k.current && (k.current = j, v(j));
9757
- }, []), C = o || m, $ = s || b, S = y.useRef(null), k = y.useRef(null), D = y.useRef(d), E = l != null, O = $1(l), V = $1(i), B = y.useCallback(() => {
9757
+ }, []), C = o || g, $ = s || b, S = y.useRef(null), k = y.useRef(null), D = y.useRef(d), E = l != null, O = $1(l), V = $1(i), B = y.useCallback(() => {
9758
9758
  if (!S.current || !k.current)
9759
9759
  return;
9760
9760
  const j = {
@@ -9841,11 +9841,11 @@ var Qb = Gu(), fd = function() {
9841
9841
  onScrollCapture: fd,
9842
9842
  onWheelCapture: fd,
9843
9843
  onTouchMoveCapture: fd
9844
- }), i = r[0], o = r[1], s = t.forwardProps, a = t.children, l = t.className, c = t.removeScrollBar, d = t.enabled, u = t.shards, f = t.sideCar, p = t.noIsolation, m = t.inert, g = t.allowPinchZoom, b = t.as, v = b === void 0 ? "div" : b, w = t.gapMode, x = ic(t, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = f, $ = Ku([n, e]), S = Ge(Ge({}, x), i);
9844
+ }), i = r[0], o = r[1], s = t.forwardProps, a = t.children, l = t.className, c = t.removeScrollBar, d = t.enabled, u = t.shards, f = t.sideCar, p = t.noIsolation, g = t.inert, m = t.allowPinchZoom, b = t.as, v = b === void 0 ? "div" : b, w = t.gapMode, x = ic(t, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = f, $ = Ku([n, e]), S = Ge(Ge({}, x), i);
9845
9845
  return y.createElement(
9846
9846
  y.Fragment,
9847
9847
  null,
9848
- d && y.createElement(C, { sideCar: Qb, removeScrollBar: c, shards: u, noIsolation: p, inert: m, setCallbacks: o, allowPinchZoom: !!g, lockRef: n, gapMode: w }),
9848
+ d && y.createElement(C, { sideCar: Qb, removeScrollBar: c, shards: u, noIsolation: p, inert: g, setCallbacks: o, allowPinchZoom: !!m, lockRef: n, gapMode: w }),
9849
9849
  s ? y.cloneElement(y.Children.only(a), Ge(Ge({}, S), { ref: $ })) : y.createElement(v, Ge({}, S, { className: l, ref: $ }), a)
9850
9850
  );
9851
9851
  });
@@ -9921,8 +9921,8 @@ var ki = xh ? { passive: !1 } : !1, WM = function(t) {
9921
9921
  }, YM = function(t, e, n, r, i) {
9922
9922
  var o = GM(t, window.getComputedStyle(e).direction), s = o * r, a = n.target, l = e.contains(a), c = !1, d = s > 0, u = 0, f = 0;
9923
9923
  do {
9924
- var p = e5(t, a), m = p[0], g = p[1], b = p[2], v = g - b - o * m;
9925
- (m || v) && Jb(t, a) && (u += v, f += m), a instanceof ShadowRoot ? a = a.host : a = a.parentNode;
9924
+ var p = e5(t, a), g = p[0], m = p[1], b = p[2], v = m - b - o * g;
9925
+ (g || v) && Jb(t, a) && (u += v, f += g), a instanceof ShadowRoot ? a = a.host : a = a.parentNode;
9926
9926
  } while (
9927
9927
  // portaled content
9928
9928
  !l && a !== document.body || // self content
@@ -9950,33 +9950,33 @@ function JM(t) {
9950
9950
  }, [t]), y.useEffect(function() {
9951
9951
  if (t.inert) {
9952
9952
  document.body.classList.add("block-interactivity-".concat(i));
9953
- var g = ju([t.lockRef.current], (t.shards || []).map(k1), !0).filter(Boolean);
9954
- return g.forEach(function(b) {
9953
+ var m = ju([t.lockRef.current], (t.shards || []).map(k1), !0).filter(Boolean);
9954
+ return m.forEach(function(b) {
9955
9955
  return b.classList.add("allow-interactivity-".concat(i));
9956
9956
  }), function() {
9957
- document.body.classList.remove("block-interactivity-".concat(i)), g.forEach(function(b) {
9957
+ document.body.classList.remove("block-interactivity-".concat(i)), m.forEach(function(b) {
9958
9958
  return b.classList.remove("allow-interactivity-".concat(i));
9959
9959
  });
9960
9960
  };
9961
9961
  }
9962
9962
  }, [t.inert, t.lockRef.current, t.shards]);
9963
- var a = y.useCallback(function(g, b) {
9964
- if ("touches" in g && g.touches.length === 2)
9963
+ var a = y.useCallback(function(m, b) {
9964
+ if ("touches" in m && m.touches.length === 2)
9965
9965
  return !s.current.allowPinchZoom;
9966
- var v = ua(g), w = n.current, x = "deltaX" in g ? g.deltaX : w[0] - v[0], C = "deltaY" in g ? g.deltaY : w[1] - v[1], $, S = g.target, k = Math.abs(x) > Math.abs(C) ? "h" : "v";
9967
- if ("touches" in g && k === "h" && S.type === "range")
9966
+ var v = ua(m), w = n.current, x = "deltaX" in m ? m.deltaX : w[0] - v[0], C = "deltaY" in m ? m.deltaY : w[1] - v[1], $, S = m.target, k = Math.abs(x) > Math.abs(C) ? "h" : "v";
9967
+ if ("touches" in m && k === "h" && S.type === "range")
9968
9968
  return !1;
9969
9969
  var D = S1(k, S);
9970
9970
  if (!D)
9971
9971
  return !0;
9972
9972
  if (D ? $ = k : ($ = k === "v" ? "h" : "v", D = S1(k, S)), !D)
9973
9973
  return !1;
9974
- if (!r.current && "changedTouches" in g && (x || C) && (r.current = $), !$)
9974
+ if (!r.current && "changedTouches" in m && (x || C) && (r.current = $), !$)
9975
9975
  return !0;
9976
9976
  var E = r.current || $;
9977
- return YM(E, b, g, E === "h" ? x : C);
9978
- }, []), l = y.useCallback(function(g) {
9979
- var b = g;
9977
+ return YM(E, b, m, E === "h" ? x : C);
9978
+ }, []), l = y.useCallback(function(m) {
9979
+ var b = m;
9980
9980
  if (!(!Ti.length || Ti[Ti.length - 1] !== o)) {
9981
9981
  var v = "deltaY" in b ? A1(b) : ua(b), w = e.current.filter(function($) {
9982
9982
  return $.name === b.type && ($.target === b.target || b.target === $.shadowParent) && XM($.delta, v);
@@ -9992,19 +9992,19 @@ function JM(t) {
9992
9992
  C && b.cancelable && b.preventDefault();
9993
9993
  }
9994
9994
  }
9995
- }, []), c = y.useCallback(function(g, b, v, w) {
9996
- var x = { name: g, delta: b, target: v, should: w, shadowParent: eI(v) };
9995
+ }, []), c = y.useCallback(function(m, b, v, w) {
9996
+ var x = { name: m, delta: b, target: v, should: w, shadowParent: eI(v) };
9997
9997
  e.current.push(x), setTimeout(function() {
9998
9998
  e.current = e.current.filter(function(C) {
9999
9999
  return C !== x;
10000
10000
  });
10001
10001
  }, 1);
10002
- }, []), d = y.useCallback(function(g) {
10003
- n.current = ua(g), r.current = void 0;
10004
- }, []), u = y.useCallback(function(g) {
10005
- c(g.type, A1(g), g.target, a(g, t.lockRef.current));
10006
- }, []), f = y.useCallback(function(g) {
10007
- c(g.type, ua(g), g.target, a(g, t.lockRef.current));
10002
+ }, []), d = y.useCallback(function(m) {
10003
+ n.current = ua(m), r.current = void 0;
10004
+ }, []), u = y.useCallback(function(m) {
10005
+ c(m.type, A1(m), m.target, a(m, t.lockRef.current));
10006
+ }, []), f = y.useCallback(function(m) {
10007
+ c(m.type, ua(m), m.target, a(m, t.lockRef.current));
10008
10008
  }, []);
10009
10009
  y.useEffect(function() {
10010
10010
  return Ti.push(o), t.setCallbacks({
@@ -10012,16 +10012,16 @@ function JM(t) {
10012
10012
  onWheelCapture: u,
10013
10013
  onTouchMoveCapture: f
10014
10014
  }), document.addEventListener("wheel", l, ki), document.addEventListener("touchmove", l, ki), document.addEventListener("touchstart", d, ki), function() {
10015
- Ti = Ti.filter(function(g) {
10016
- return g !== o;
10015
+ Ti = Ti.filter(function(m) {
10016
+ return m !== o;
10017
10017
  }), document.removeEventListener("wheel", l, ki), document.removeEventListener("touchmove", l, ki), document.removeEventListener("touchstart", d, ki);
10018
10018
  };
10019
10019
  }, []);
10020
- var p = t.removeScrollBar, m = t.inert;
10020
+ var p = t.removeScrollBar, g = t.inert;
10021
10021
  return y.createElement(
10022
10022
  y.Fragment,
10023
10023
  null,
10024
- m ? y.createElement(o, { styles: QM(i) }) : null,
10024
+ g ? y.createElement(o, { styles: QM(i) }) : null,
10025
10025
  p ? y.createElement(Xu, { gapMode: t.gapMode }) : null
10026
10026
  );
10027
10027
  }
@@ -11138,12 +11138,12 @@ function aI(t) {
11138
11138
  a.next();
11139
11139
  let ve = [], he = [], Ce = V >= s ? V : -1, Se = 0, Re = q;
11140
11140
  for (; a.pos > oe; )
11141
- Ce >= 0 && a.id == Ce && a.size >= 0 ? (a.end <= Re - i && (m(ve, he, B, Se, a.end, Re, Ce, K, Q), Se = ve.length, Re = a.end), a.next()) : O > 2500 ? f(B, oe, ve, he) : u(B, oe, ve, he, Ce, O + 1);
11142
- if (Ce >= 0 && Se > 0 && Se < ve.length && m(ve, he, B, Se, B, Re, Ce, K, Q), ve.reverse(), he.reverse(), Ce > -1 && Se > 0) {
11141
+ Ce >= 0 && a.id == Ce && a.size >= 0 ? (a.end <= Re - i && (g(ve, he, B, Se, a.end, Re, Ce, K, Q), Se = ve.length, Re = a.end), a.next()) : O > 2500 ? f(B, oe, ve, he) : u(B, oe, ve, he, Ce, O + 1);
11142
+ if (Ce >= 0 && Se > 0 && Se < ve.length && g(ve, he, B, Se, B, Re, Ce, K, Q), ve.reverse(), he.reverse(), Ce > -1 && Se > 0) {
11143
11143
  let ce = p(j, Q);
11144
11144
  W = qf(j, ve, he, 0, ve.length, 0, q - B, ce, ce);
11145
11145
  } else
11146
- W = g(j, ve, he, q - B, K - q, Q);
11146
+ W = m(j, ve, he, q - B, K - q, Q);
11147
11147
  }
11148
11148
  k.push(W), D.push(ne);
11149
11149
  }
@@ -11174,16 +11174,16 @@ function aI(t) {
11174
11174
  return B;
11175
11175
  (q = B.prop(Te.lookAhead)) && (O = D[V] + B.length + q);
11176
11176
  }
11177
- return g($, k, D, E, O, S);
11177
+ return m($, k, D, E, O, S);
11178
11178
  };
11179
11179
  }
11180
- function m($, S, k, D, E, O, V, B, q) {
11180
+ function g($, S, k, D, E, O, V, B, q) {
11181
11181
  let z = [], K = [];
11182
11182
  for (; $.length > D; )
11183
11183
  z.push($.pop()), K.push(S.pop() + k - E);
11184
- $.push(g(r.types[V], z, K, O - E, B - O, q)), S.push(E - k);
11184
+ $.push(m(r.types[V], z, K, O - E, B - O, q)), S.push(E - k);
11185
11185
  }
11186
- function g($, S, k, D, E, O, V) {
11186
+ function m($, S, k, D, E, O, V) {
11187
11187
  if (O) {
11188
11188
  let B = [Te.contextHash, O];
11189
11189
  V = V ? [B].concat(V) : [B];
@@ -11258,31 +11258,31 @@ function za(t, e) {
11258
11258
  }
11259
11259
  function qf(t, e, n, r, i, o, s, a, l) {
11260
11260
  let c = 0;
11261
- for (let m = r; m < i; m++)
11262
- c += za(t, e[m]);
11261
+ for (let g = r; g < i; g++)
11262
+ c += za(t, e[g]);
11263
11263
  let d = Math.ceil(
11264
11264
  c * 1.5 / 8
11265
11265
  /* Balance.BranchFactor */
11266
11266
  ), u = [], f = [];
11267
- function p(m, g, b, v, w) {
11267
+ function p(g, m, b, v, w) {
11268
11268
  for (let x = b; x < v; ) {
11269
- let C = x, $ = g[x], S = za(t, m[x]);
11269
+ let C = x, $ = m[x], S = za(t, g[x]);
11270
11270
  for (x++; x < v; x++) {
11271
- let k = za(t, m[x]);
11271
+ let k = za(t, g[x]);
11272
11272
  if (S + k >= d)
11273
11273
  break;
11274
11274
  S += k;
11275
11275
  }
11276
11276
  if (x == C + 1) {
11277
11277
  if (S > d) {
11278
- let k = m[C];
11279
- p(k.children, k.positions, 0, k.children.length, g[C] + w);
11278
+ let k = g[C];
11279
+ p(k.children, k.positions, 0, k.children.length, m[C] + w);
11280
11280
  continue;
11281
11281
  }
11282
- u.push(m[C]);
11282
+ u.push(g[C]);
11283
11283
  } else {
11284
- let k = g[x - 1] + m[x - 1].length - $;
11285
- u.push(qf(t, m, g, C, x, $, k, null, l));
11284
+ let k = m[x - 1] + g[x - 1].length - $;
11285
+ u.push(qf(t, g, m, C, x, $, k, null, l));
11286
11286
  }
11287
11287
  f.push($ + w - o);
11288
11288
  }
@@ -11344,8 +11344,8 @@ class Qr {
11344
11344
  for (; s && s.from < u; ) {
11345
11345
  let f = s;
11346
11346
  if (l >= f.from || u <= f.to || c) {
11347
- let p = Math.max(f.from, l) - c, m = Math.min(f.to, u) - c;
11348
- f = p >= m ? null : new Qr(p, m, f.tree, f.offset + c, a > 0, !!d);
11347
+ let p = Math.max(f.from, l) - c, g = Math.min(f.to, u) - c;
11348
+ f = p >= g ? null : new Qr(p, g, f.tree, f.offset + c, a > 0, !!d);
11349
11349
  }
11350
11350
  if (f && i.push(f), s.to > u)
11351
11351
  break;
@@ -12014,9 +12014,9 @@ function hI(t, e, n, r, i, o) {
12014
12014
  let c = t[s + 1];
12015
12015
  for (let p = s + 3; p < c; p += 2)
12016
12016
  if ((t[p + 1] & a) > 0) {
12017
- let m = t[p];
12018
- if (l.allows(m) && (e.token.value == -1 || e.token.value == m || uI(m, e.token.value, i, o))) {
12019
- e.acceptToken(m);
12017
+ let g = t[p];
12018
+ if (l.allows(g) && (e.token.value == -1 || e.token.value == g || uI(g, e.token.value, i, o))) {
12019
+ e.acceptToken(g);
12020
12020
  break;
12021
12021
  }
12022
12022
  }
@@ -12026,13 +12026,13 @@ function hI(t, e, n, r, i, o) {
12026
12026
  continue e;
12027
12027
  }
12028
12028
  for (; u < f; ) {
12029
- let p = u + f >> 1, m = c + p + (p << 1), g = t[m], b = t[m + 1] || 65536;
12030
- if (d < g)
12029
+ let p = u + f >> 1, g = c + p + (p << 1), m = t[g], b = t[g + 1] || 65536;
12030
+ if (d < m)
12031
12031
  f = p;
12032
12032
  else if (d >= b)
12033
12033
  u = p + 1;
12034
12034
  else {
12035
- s = t[m + 2], e.advance();
12035
+ s = t[g + 2], e.advance();
12036
12036
  continue e;
12037
12037
  }
12038
12038
  }
@@ -12320,13 +12320,13 @@ class gI {
12320
12320
  ;
12321
12321
  let l = this.tokens.getActions(e);
12322
12322
  for (let c = 0; c < l.length; ) {
12323
- let d = l[c++], u = l[c++], f = l[c++], p = c == l.length || !r, m = p ? e : e.split(), g = this.tokens.mainToken;
12324
- if (m.apply(d, u, g ? g.start : m.pos, f), Pt && console.log(s + this.stackID(m) + ` (via ${d & 65536 ? `reduce of ${o.getName(
12323
+ let d = l[c++], u = l[c++], f = l[c++], p = c == l.length || !r, g = p ? e : e.split(), m = this.tokens.mainToken;
12324
+ if (g.apply(d, u, m ? m.start : g.pos, f), Pt && console.log(s + this.stackID(g) + ` (via ${d & 65536 ? `reduce of ${o.getName(
12325
12325
  d & 65535
12326
12326
  /* Action.ValueMask */
12327
- )}` : "shift"} for ${o.getName(u)} @ ${i}${m == e ? "" : ", split"})`), p)
12327
+ )}` : "shift"} for ${o.getName(u)} @ ${i}${g == e ? "" : ", split"})`), p)
12328
12328
  return !0;
12329
- m.pos > i ? n.push(m) : r.push(m);
12329
+ g.pos > i ? n.push(g) : r.push(g);
12330
12330
  }
12331
12331
  return !1;
12332
12332
  }
@@ -12846,17 +12846,17 @@ class SI {
12846
12846
  return;
12847
12847
  let f = e.tree && e.tree.prop(Te.mounted);
12848
12848
  if (f && f.overlay) {
12849
- let p = e.node.enter(f.overlay[0].from + a, 1), m = this.highlighters.filter((b) => !b.scope || b.scope(f.tree.type)), g = e.firstChild();
12849
+ let p = e.node.enter(f.overlay[0].from + a, 1), g = this.highlighters.filter((b) => !b.scope || b.scope(f.tree.type)), m = e.firstChild();
12850
12850
  for (let b = 0, v = a; ; b++) {
12851
12851
  let w = b < f.overlay.length ? f.overlay[b] : null, x = w ? w.from + a : l, C = Math.max(n, v), $ = Math.min(r, x);
12852
- if (C < $ && g)
12852
+ if (C < $ && m)
12853
12853
  for (; e.from < $ && (this.highlightRange(e, C, $, i, o), this.startSpan(Math.min($, e.to), c), !(e.to >= x || !e.nextSibling())); )
12854
12854
  ;
12855
12855
  if (!w || x > r)
12856
12856
  break;
12857
- v = w.to + a, v > n && (this.highlightRange(p.cursor(), Math.max(n, w.from + a), Math.min(r, v), "", m), this.startSpan(Math.min(r, v), c));
12857
+ v = w.to + a, v > n && (this.highlightRange(p.cursor(), Math.max(n, w.from + a), Math.min(r, v), "", g), this.startSpan(Math.min(r, v), c));
12858
12858
  }
12859
- g && e.parent();
12859
+ m && e.parent();
12860
12860
  } else if (e.firstChild()) {
12861
12861
  f && (i = "");
12862
12862
  do
@@ -13642,8 +13642,8 @@ class Cn extends De {
13642
13642
  r += p.lines;
13643
13643
  if (r < 32) {
13644
13644
  let p = [];
13645
- for (let m of e)
13646
- m.flatten(p);
13645
+ for (let g of e)
13646
+ g.flatten(p);
13647
13647
  return new Xe(p, n);
13648
13648
  }
13649
13649
  let i = Math.max(
@@ -13652,11 +13652,11 @@ class Cn extends De {
13652
13652
  /* Tree.BranchShift */
13653
13653
  ), o = i << 1, s = i >> 1, a = [], l = 0, c = -1, d = [];
13654
13654
  function u(p) {
13655
- let m;
13655
+ let g;
13656
13656
  if (p.lines > o && p instanceof Cn)
13657
- for (let g of p.children)
13658
- u(g);
13659
- else p.lines > s && (l > s || !l) ? (f(), a.push(p)) : p instanceof Xe && l && (m = d[d.length - 1]) instanceof Xe && p.lines + m.lines <= 32 ? (l += p.lines, c += p.length + 1, d[d.length - 1] = new Xe(m.text.concat(p.text), m.length + 1 + p.length)) : (l + p.lines > i && f(), l += p.lines, c += p.length + 1, d.push(p));
13657
+ for (let m of p.children)
13658
+ u(m);
13659
+ else p.lines > s && (l > s || !l) ? (f(), a.push(p)) : p instanceof Xe && l && (g = d[d.length - 1]) instanceof Xe && p.lines + g.lines <= 32 ? (l += p.lines, c += p.length + 1, d[d.length - 1] = new Xe(g.text.concat(p.text), g.length + 1 + p.length)) : (l + p.lines > i && f(), l += p.lines, c += p.length + 1, d.push(p));
13660
13660
  }
13661
13661
  function f() {
13662
13662
  l != 0 && (a.push(d.length == 1 ? d[0] : Cn.from(d, c)), c = -1, l = d.length = 0);
@@ -14099,10 +14099,10 @@ class rt extends Rn {
14099
14099
  let { from: u, to: f = u, insert: p } = d;
14100
14100
  if (u > f || u < 0 || f > n)
14101
14101
  throw new RangeError(`Invalid change range ${u} to ${f} (in doc of length ${n})`);
14102
- let m = p ? typeof p == "string" ? De.of(p.split(r || Th)) : p : De.empty, g = m.length;
14103
- if (u == f && g == 0)
14102
+ let g = p ? typeof p == "string" ? De.of(p.split(r || Th)) : p : De.empty, m = g.length;
14103
+ if (u == f && m == 0)
14104
14104
  return;
14105
- u < s && l(), u > s && yt(i, u - s, -1), yt(i, f - u, g), wr(o, i, m), s = f;
14105
+ u < s && l(), u > s && yt(i, u - s, -1), yt(i, f - u, m), wr(o, i, g), s = f;
14106
14106
  }
14107
14107
  }
14108
14108
  return c(e), l(!a), a;
@@ -14560,11 +14560,11 @@ class Ua {
14560
14560
  return 0;
14561
14561
  },
14562
14562
  reconfigure: (u, f) => {
14563
- let p, m = f.config.address[o];
14564
- if (m != null) {
14565
- let g = yl(f, m);
14566
- if (this.dependencies.every((b) => b instanceof le ? f.facet(b) === u.facet(b) : b instanceof ct ? f.field(b, !1) == u.field(b, !1) : !0) || (a ? z1(p = r(u), g, i) : i(p = r(u), g)))
14567
- return u.values[s] = g, 0;
14563
+ let p, g = f.config.address[o];
14564
+ if (g != null) {
14565
+ let m = yl(f, g);
14566
+ if (this.dependencies.every((b) => b instanceof le ? f.facet(b) === u.facet(b) : b instanceof ct ? f.field(b, !1) == u.field(b, !1) : !0) || (a ? z1(p = r(u), m, i) : i(p = r(u), m)))
14567
+ return u.values[s] = m, 0;
14568
14568
  } else
14569
14569
  p = r(u);
14570
14570
  return u.values[s] = p, 1;
@@ -14755,21 +14755,21 @@ class wl {
14755
14755
  a[f.id] = c.length << 1, c.push((p) => f.slot(p));
14756
14756
  let d = r?.config.facets;
14757
14757
  for (let f in o) {
14758
- let p = o[f], m = p[0].facet, g = d && d[f] || [];
14758
+ let p = o[f], g = p[0].facet, m = d && d[f] || [];
14759
14759
  if (p.every(
14760
14760
  (b) => b.type == 0
14761
14761
  /* Provider.Static */
14762
14762
  ))
14763
- if (a[m.id] = l.length << 1 | 1, Kf(g, p))
14764
- l.push(r.facet(m));
14763
+ if (a[g.id] = l.length << 1 | 1, Kf(m, p))
14764
+ l.push(r.facet(g));
14765
14765
  else {
14766
- let b = m.combine(p.map((v) => v.value));
14767
- l.push(r && m.compare(b, r.facet(m)) ? r.facet(m) : b);
14766
+ let b = g.combine(p.map((v) => v.value));
14767
+ l.push(r && g.compare(b, r.facet(g)) ? r.facet(g) : b);
14768
14768
  }
14769
14769
  else {
14770
14770
  for (let b of p)
14771
14771
  b.type == 0 ? (a[b.id] = l.length << 1 | 1, l.push(b.value)) : (a[b.id] = c.length << 1, c.push((v) => b.dynamicSlot(v)));
14772
- a[m.id] = c.length << 1, c.push((b) => NI(b, m, p));
14772
+ a[g.id] = c.length << 1, c.push((b) => NI(b, g, p));
14773
14773
  }
14774
14774
  }
14775
14775
  let u = c.map((f) => f(a));
@@ -15475,8 +15475,8 @@ class Gf {
15475
15475
  for (let l = 0; l < this.value.length; l++) {
15476
15476
  let c = this.value[l], d = this.from[l] + e, u = this.to[l] + e, f, p;
15477
15477
  if (d == u) {
15478
- let m = n.mapPos(d, c.startSide, c.mapMode);
15479
- if (m == null || (f = p = m, c.startSide != c.endSide && (p = n.mapPos(d, c.endSide), p < f)))
15478
+ let g = n.mapPos(d, c.startSide, c.mapMode);
15479
+ if (g == null || (f = p = g, c.startSide != c.endSide && (p = n.mapPos(d, c.endSide), p < f)))
15480
15480
  continue;
15481
15481
  } else if (f = n.mapPos(d, c.startSide), p = n.mapPos(u, c.endSide), f > p || f == p && c.startSide > 0 && c.endSide <= 0)
15482
15482
  continue;
@@ -15996,17 +15996,17 @@ class Mr {
15996
15996
  let d = [], u = /^@(\w+)\b/.exec(s[0]), f = u && u[1] == "keyframes";
15997
15997
  if (u && a == null) return l.push(s[0] + ";");
15998
15998
  for (let p in a) {
15999
- let m = a[p];
15999
+ let g = a[p];
16000
16000
  if (/&/.test(p))
16001
16001
  o(
16002
- p.split(/,\s*/).map((g) => s.map((b) => g.replace(/&/, b))).reduce((g, b) => g.concat(b)),
16003
- m,
16002
+ p.split(/,\s*/).map((m) => s.map((b) => m.replace(/&/, b))).reduce((m, b) => m.concat(b)),
16003
+ g,
16004
16004
  l
16005
16005
  );
16006
- else if (m && typeof m == "object") {
16006
+ else if (g && typeof g == "object") {
16007
16007
  if (!u) throw new RangeError("The value of a property (" + p + ") should be a primitive value.");
16008
- o(i(p), m, d, f);
16009
- } else m != null && d.push(p.replace(/_.*/, "").replace(/[A-Z]/g, (g) => "-" + g.toLowerCase()) + ": " + m + ";");
16008
+ o(i(p), g, d, f);
16009
+ } else g != null && d.push(p.replace(/_.*/, "").replace(/[A-Z]/g, (m) => "-" + m.toLowerCase()) + ": " + g + ";");
16010
16010
  }
16011
16011
  (d.length || f) && l.push((r && !u && !c ? s.map(r) : s).join(", ") + " {" + d.join(" ") + "}");
16012
16012
  }
@@ -16275,7 +16275,7 @@ function ZI(t, e, n, r, i, o, s, a) {
16275
16275
  let l = t.ownerDocument, c = l.defaultView || window;
16276
16276
  for (let d = t, u = !1; d && !u; )
16277
16277
  if (d.nodeType == 1) {
16278
- let f, p = d == l.body, m = 1, g = 1;
16278
+ let f, p = d == l.body, g = 1, m = 1;
16279
16279
  if (p)
16280
16280
  f = QI(c);
16281
16281
  else {
@@ -16284,11 +16284,11 @@ function ZI(t, e, n, r, i, o, s, a) {
16284
16284
  continue;
16285
16285
  }
16286
16286
  let w = d.getBoundingClientRect();
16287
- ({ scaleX: m, scaleY: g } = I5(d, w)), f = {
16287
+ ({ scaleX: g, scaleY: m } = I5(d, w)), f = {
16288
16288
  left: w.left,
16289
- right: w.left + d.clientWidth * m,
16289
+ right: w.left + d.clientWidth * g,
16290
16290
  top: w.top,
16291
- bottom: w.top + d.clientHeight * g
16291
+ bottom: w.top + d.clientHeight * m
16292
16292
  };
16293
16293
  }
16294
16294
  let b = 0, v = 0;
@@ -16305,11 +16305,11 @@ function ZI(t, e, n, r, i, o, s, a) {
16305
16305
  let w = 0, x = 0;
16306
16306
  if (v) {
16307
16307
  let C = d.scrollTop;
16308
- d.scrollTop += v / g, x = (d.scrollTop - C) * g;
16308
+ d.scrollTop += v / m, x = (d.scrollTop - C) * m;
16309
16309
  }
16310
16310
  if (b) {
16311
16311
  let C = d.scrollLeft;
16312
- d.scrollLeft += b / m, w = (d.scrollLeft - C) * m;
16312
+ d.scrollLeft += b / g, w = (d.scrollLeft - C) * g;
16313
16313
  }
16314
16314
  e = {
16315
16315
  left: e.left - w,
@@ -16935,8 +16935,8 @@ function z5(t, e, n) {
16935
16935
  let r = null, i = -1, o = null, s = -1;
16936
16936
  function a(c, d) {
16937
16937
  for (let u = 0, f = 0; u < c.children.length && f <= d; u++) {
16938
- let p = c.children[u], m = f + p.length;
16939
- m >= d && (p.children.length ? a(p, d - f) : (!o || o.isHidden && (n > 0 || aR(o, p))) && (m > d || f == m && p.getSide() > 0) ? (o = p, s = d - f) : (f < d || f == m && p.getSide() < 0 && !p.isHidden) && (r = p, i = d - f)), f = m;
16938
+ let p = c.children[u], g = f + p.length;
16939
+ g >= d && (p.children.length ? a(p, d - f) : (!o || o.isHidden && (n > 0 || aR(o, p))) && (g > d || f == g && p.getSide() > 0) ? (o = p, s = d - f) : (f < d || f == g && p.getSide() < 0 && !p.isHidden) && (r = p, i = d - f)), f = g;
16940
16940
  }
16941
16941
  }
16942
16942
  a(t, e);
@@ -17574,9 +17574,9 @@ function fR(t, e, n, r, i) {
17574
17574
  let p = c + 1;
17575
17575
  for (; p < a && Be[p] == 64; )
17576
17576
  p++;
17577
- let m = c && d == 8 || p < n && Be[p] == 8 ? u == 1 ? 1 : 8 : 256;
17578
- for (let g = c; g < p; g++)
17579
- Be[g] = m;
17577
+ let g = c && d == 8 || p < n && Be[p] == 8 ? u == 1 ? 1 : 8 : 256;
17578
+ for (let m = c; m < p; m++)
17579
+ Be[m] = g;
17580
17580
  c = p - 1;
17581
17581
  } else f == 8 && u == 1 && (Be[c] = 1);
17582
17582
  d = f, f & 7 && (u = f);
@@ -17587,13 +17587,13 @@ function pR(t, e, n, r, i) {
17587
17587
  let o = i == 1 ? 2 : 1;
17588
17588
  for (let s = 0, a = 0, l = 0; s <= r.length; s++) {
17589
17589
  let c = s ? r[s - 1].to : e, d = s < r.length ? r[s].from : n;
17590
- for (let u = c, f, p, m; u < d; u++)
17590
+ for (let u = c, f, p, g; u < d; u++)
17591
17591
  if (p = Kh[f = t.charCodeAt(u)])
17592
17592
  if (p < 0) {
17593
- for (let g = a - 3; g >= 0; g -= 3)
17594
- if (yn[g + 1] == -p) {
17595
- let b = yn[g + 2], v = b & 2 ? i : b & 4 ? b & 1 ? o : i : 0;
17596
- v && (Be[u] = Be[yn[g]] = v), a = g;
17593
+ for (let m = a - 3; m >= 0; m -= 3)
17594
+ if (yn[m + 1] == -p) {
17595
+ let b = yn[m + 2], v = b & 2 ? i : b & 4 ? b & 1 ? o : i : 0;
17596
+ v && (Be[u] = Be[yn[m]] = v), a = m;
17597
17597
  break;
17598
17598
  }
17599
17599
  } else {
@@ -17601,14 +17601,14 @@ function pR(t, e, n, r, i) {
17601
17601
  break;
17602
17602
  yn[a++] = u, yn[a++] = f, yn[a++] = l;
17603
17603
  }
17604
- else if ((m = Be[u]) == 2 || m == 1) {
17605
- let g = m == i;
17606
- l = g ? 0 : 1;
17604
+ else if ((g = Be[u]) == 2 || g == 1) {
17605
+ let m = g == i;
17606
+ l = m ? 0 : 1;
17607
17607
  for (let b = a - 3; b >= 0; b -= 3) {
17608
17608
  let v = yn[b + 2];
17609
17609
  if (v & 2)
17610
17610
  break;
17611
- if (g)
17611
+ if (m)
17612
17612
  yn[b + 2] |= 2;
17613
17613
  else {
17614
17614
  if (v & 4)
@@ -17636,8 +17636,8 @@ function gR(t, e, n, r) {
17636
17636
  else
17637
17637
  break;
17638
17638
  let u = o == 1, f = (d < e ? Be[d] : r) == 1, p = u == f ? u ? 1 : 2 : r;
17639
- for (let m = d, g = i, b = g ? n[g - 1].to : t; m > l; )
17640
- m == b && (m = n[--g].from, b = g ? n[g - 1].to : t), Be[--m] = p;
17639
+ for (let g = d, m = i, b = m ? n[m - 1].to : t; g > l; )
17640
+ g == b && (g = n[--m].from, b = m ? n[m - 1].to : t), Be[--g] = p;
17641
17641
  l = d;
17642
17642
  } else
17643
17643
  o = c, l++;
@@ -17650,17 +17650,17 @@ function Gh(t, e, n, r, i, o, s) {
17650
17650
  for (let l = e, c = 0; l < n; ) {
17651
17651
  let d = !0, u = !1;
17652
17652
  if (c == o.length || l < o[c].from) {
17653
- let g = Be[l];
17654
- g != a && (d = !1, u = g == 16);
17653
+ let m = Be[l];
17654
+ m != a && (d = !1, u = m == 16);
17655
17655
  }
17656
- let f = !d && a == 1 ? [] : null, p = d ? r : r + 1, m = l;
17656
+ let f = !d && a == 1 ? [] : null, p = d ? r : r + 1, g = l;
17657
17657
  e: for (; ; )
17658
- if (c < o.length && m == o[c].from) {
17658
+ if (c < o.length && g == o[c].from) {
17659
17659
  if (u)
17660
17660
  break e;
17661
- let g = o[c];
17661
+ let m = o[c];
17662
17662
  if (!d)
17663
- for (let b = g.to, v = c + 1; ; ) {
17663
+ for (let b = m.to, v = c + 1; ; ) {
17664
17664
  if (b == n)
17665
17665
  break e;
17666
17666
  if (v < o.length && o[v].from == b)
@@ -17672,35 +17672,35 @@ function Gh(t, e, n, r, i, o, s) {
17672
17672
  }
17673
17673
  }
17674
17674
  if (c++, f)
17675
- f.push(g);
17675
+ f.push(m);
17676
17676
  else {
17677
- g.from > l && s.push(new xr(l, g.from, p));
17678
- let b = g.direction == ci != !(p % 2);
17679
- Yh(t, b ? r + 1 : r, i, g.inner, g.from, g.to, s), l = g.to;
17677
+ m.from > l && s.push(new xr(l, m.from, p));
17678
+ let b = m.direction == ci != !(p % 2);
17679
+ Yh(t, b ? r + 1 : r, i, m.inner, m.from, m.to, s), l = m.to;
17680
17680
  }
17681
- m = g.to;
17681
+ g = m.to;
17682
17682
  } else {
17683
- if (m == n || (d ? Be[m] != a : Be[m] == a))
17683
+ if (g == n || (d ? Be[g] != a : Be[g] == a))
17684
17684
  break;
17685
- m++;
17685
+ g++;
17686
17686
  }
17687
- f ? Gh(t, l, m, r + 1, i, f, s) : l < m && s.push(new xr(l, m, p)), l = m;
17687
+ f ? Gh(t, l, g, r + 1, i, f, s) : l < g && s.push(new xr(l, g, p)), l = g;
17688
17688
  }
17689
17689
  else
17690
17690
  for (let l = n, c = o.length; l > e; ) {
17691
17691
  let d = !0, u = !1;
17692
17692
  if (!c || l > o[c - 1].to) {
17693
- let g = Be[l - 1];
17694
- g != a && (d = !1, u = g == 16);
17693
+ let m = Be[l - 1];
17694
+ m != a && (d = !1, u = m == 16);
17695
17695
  }
17696
- let f = !d && a == 1 ? [] : null, p = d ? r : r + 1, m = l;
17696
+ let f = !d && a == 1 ? [] : null, p = d ? r : r + 1, g = l;
17697
17697
  e: for (; ; )
17698
- if (c && m == o[c - 1].to) {
17698
+ if (c && g == o[c - 1].to) {
17699
17699
  if (u)
17700
17700
  break e;
17701
- let g = o[--c];
17701
+ let m = o[--c];
17702
17702
  if (!d)
17703
- for (let b = g.from, v = c; ; ) {
17703
+ for (let b = m.from, v = c; ; ) {
17704
17704
  if (b == e)
17705
17705
  break e;
17706
17706
  if (v && o[v - 1].to == b)
@@ -17712,19 +17712,19 @@ function Gh(t, e, n, r, i, o, s) {
17712
17712
  }
17713
17713
  }
17714
17714
  if (f)
17715
- f.push(g);
17715
+ f.push(m);
17716
17716
  else {
17717
- g.to < l && s.push(new xr(g.to, l, p));
17718
- let b = g.direction == ci != !(p % 2);
17719
- Yh(t, b ? r + 1 : r, i, g.inner, g.from, g.to, s), l = g.from;
17717
+ m.to < l && s.push(new xr(m.to, l, p));
17718
+ let b = m.direction == ci != !(p % 2);
17719
+ Yh(t, b ? r + 1 : r, i, m.inner, m.from, m.to, s), l = m.from;
17720
17720
  }
17721
- m = g.from;
17721
+ g = m.from;
17722
17722
  } else {
17723
- if (m == e || (d ? Be[m - 1] != a : Be[m - 1] == a))
17723
+ if (g == e || (d ? Be[g - 1] != a : Be[g - 1] == a))
17724
17724
  break;
17725
- m--;
17725
+ g--;
17726
17726
  }
17727
- f ? Gh(t, m, l, r + 1, i, f, s) : m < l && s.push(new xr(m, l, p)), l = m;
17727
+ f ? Gh(t, g, l, r + 1, i, f, s) : g < l && s.push(new xr(g, l, p)), l = g;
17728
17728
  }
17729
17729
  }
17730
17730
  function Yh(t, e, n, r, i, o, s) {
@@ -17891,12 +17891,12 @@ function tp(t, e) {
17891
17891
  span(o, s, a, l) {
17892
17892
  let c = o - e.from, d = s - e.from, u = i;
17893
17893
  for (let f = a.length - 1; f >= 0; f--, l--) {
17894
- let p = a[f].spec.bidiIsolate, m;
17895
- if (p == null && (p = vR(e.text, c, d)), l > 0 && u.length && (m = u[u.length - 1]).to == c && m.direction == p)
17896
- m.to = d, u = m.inner;
17894
+ let p = a[f].spec.bidiIsolate, g;
17895
+ if (p == null && (p = vR(e.text, c, d)), l > 0 && u.length && (g = u[u.length - 1]).to == c && g.direction == p)
17896
+ g.to = d, u = g.inner;
17897
17897
  else {
17898
- let g = { from: c, to: d, direction: p, inner: [] };
17899
- u.push(g), u = g.inner;
17898
+ let m = { from: c, to: d, direction: p, inner: [] };
17899
+ u.push(m), u = m.inner;
17900
17900
  }
17901
17901
  }
17902
17902
  }
@@ -17938,8 +17938,8 @@ class Qt {
17938
17938
  for (let i = 0, o = 0, s = 0, a = 0; ; i++) {
17939
17939
  let l = i == e.length ? null : e[i], c = s - a, d = l ? l.fromB : 1e9;
17940
17940
  for (; o < n.length && n[o] < d; ) {
17941
- let u = n[o], f = n[o + 1], p = Math.max(a, u), m = Math.min(d, f);
17942
- if (p <= m && new Qt(p + c, m + c, p, m).addToSet(r), f > d)
17941
+ let u = n[o], f = n[o + 1], p = Math.max(a, u), g = Math.min(d, f);
17942
+ if (p <= g && new Qt(p + c, g + c, p, g).addToSet(r), f > d)
17943
17943
  break;
17944
17944
  o += 2;
17945
17945
  }
@@ -18068,16 +18068,16 @@ class np extends Fe {
18068
18068
  let a = s >= 0 ? i[s] : null;
18069
18069
  if (!a)
18070
18070
  break;
18071
- let { fromA: l, toA: c, fromB: d, toB: u } = a, f, p, m, g;
18071
+ let { fromA: l, toA: c, fromB: d, toB: u } = a, f, p, g, m;
18072
18072
  if (r && r.range.fromB < u && r.range.toB > d) {
18073
18073
  let C = Jo.build(this.view.state.doc, d, r.range.fromB, this.decorations, this.dynamicDecorationMap), $ = Jo.build(this.view.state.doc, r.range.toB, u, this.decorations, this.dynamicDecorationMap);
18074
- p = C.breakAtStart, m = C.openStart, g = $.openEnd;
18074
+ p = C.breakAtStart, g = C.openStart, m = $.openEnd;
18075
18075
  let S = this.compositionView(r);
18076
18076
  $.breakAtStart ? S.breakAfter = 1 : $.content.length && S.merge(S.length, S.length, $.content[0], !1, $.openStart, 0) && (S.breakAfter = $.content[0].breakAfter, $.content.shift()), C.content.length && S.merge(0, 0, C.content[C.content.length - 1], !0, 0, C.openEnd) && C.content.pop(), f = C.content.concat(S).concat($.content);
18077
18077
  } else
18078
- ({ content: f, breakAtStart: p, openStart: m, openEnd: g } = Jo.build(this.view.state.doc, d, u, this.decorations, this.dynamicDecorationMap));
18078
+ ({ content: f, breakAtStart: p, openStart: g, openEnd: m } = Jo.build(this.view.state.doc, d, u, this.decorations, this.dynamicDecorationMap));
18079
18079
  let { i: b, off: v } = o.findPos(c, 1), { i: w, off: x } = o.findPos(l, -1);
18080
- B5(this, w, x, b, v, f, p, m, g);
18080
+ B5(this, w, x, b, v, f, p, g, m);
18081
18081
  }
18082
18082
  r && this.fixCompositionDOM(r);
18083
18083
  }
@@ -18267,9 +18267,9 @@ class np extends Fe {
18267
18267
  if (c >= r) {
18268
18268
  let p = u.dom.getBoundingClientRect();
18269
18269
  if (n.push(p.height), s) {
18270
- let m = u.dom.lastChild, g = m ? io(m) : [];
18271
- if (g.length) {
18272
- let b = g[g.length - 1], v = l ? b.right - p.left : p.right - b.left;
18270
+ let g = u.dom.lastChild, m = g ? io(g) : [];
18271
+ if (m.length) {
18272
+ let b = m[m.length - 1], v = l ? b.right - p.left : p.right - b.left;
18273
18273
  v > a && (a = v, this.minWidth = o, this.minWidthFrom = c, this.minWidthTo = f);
18274
18274
  }
18275
18275
  }
@@ -18484,15 +18484,15 @@ function ip(t, e) {
18484
18484
  }
18485
18485
  function Qh(t, e, n) {
18486
18486
  let r, i, o, s, a = !1, l, c, d, u;
18487
- for (let m = t.firstChild; m; m = m.nextSibling) {
18488
- let g = io(m);
18489
- for (let b = 0; b < g.length; b++) {
18490
- let v = g[b];
18487
+ for (let g = t.firstChild; g; g = g.nextSibling) {
18488
+ let m = io(g);
18489
+ for (let b = 0; b < m.length; b++) {
18490
+ let v = m[b];
18491
18491
  i && Cd(i, v) && (v = rp(ip(v, i.bottom), i.top));
18492
18492
  let w = MR(e, v), x = IR(n, v);
18493
18493
  if (w == 0 && x == 0)
18494
- return m.nodeType == 3 ? op(m, e, n) : Qh(m, e, n);
18495
- (!r || s > x || s == x && o > w) && (r = m, i = v, o = w, s = x, a = w ? e < v.left ? b > 0 : b < g.length - 1 : !0), w == 0 ? n > v.bottom && (!d || d.bottom < v.bottom) ? (l = m, d = v) : n < v.top && (!u || u.top > v.top) && (c = m, u = v) : d && Cd(d, v) ? d = ip(d, v.bottom) : u && Cd(u, v) && (u = rp(u, v.top));
18494
+ return g.nodeType == 3 ? op(g, e, n) : Qh(g, e, n);
18495
+ (!r || s > x || s == x && o > w) && (r = g, i = v, o = w, s = x, a = w ? e < v.left ? b > 0 : b < m.length - 1 : !0), w == 0 ? n > v.bottom && (!d || d.bottom < v.bottom) ? (l = g, d = v) : n < v.top && (!u || u.top > v.top) && (c = g, u = v) : d && Cd(d, v) ? d = ip(d, v.bottom) : u && Cd(u, v) && (u = rp(u, v.top));
18496
18496
  }
18497
18497
  }
18498
18498
  if (d && d.bottom >= n ? (r = l, i = d) : u && u.top <= n && (r = c, i = u), !r)
@@ -18544,15 +18544,15 @@ function dv(t, e, n, r = -1) {
18544
18544
  return t.viewport.from == 0 ? 0 : n ? null : sp(t, s, l, d, u);
18545
18545
  if (p > t.viewport.to)
18546
18546
  return t.viewport.to == t.state.doc.length ? t.state.doc.length : n ? null : sp(t, s, l, d, u);
18547
- let m = t.dom.ownerDocument, g = t.root.elementFromPoint ? t.root : m, b = g.elementFromPoint(d, u);
18548
- b && !t.contentDOM.contains(b) && (b = null), b || (d = Math.max(s.left + 1, Math.min(s.right - 1, d)), b = g.elementFromPoint(d, u), b && !t.contentDOM.contains(b) && (b = null));
18547
+ let g = t.dom.ownerDocument, m = t.root.elementFromPoint ? t.root : g, b = m.elementFromPoint(d, u);
18548
+ b && !t.contentDOM.contains(b) && (b = null), b || (d = Math.max(s.left + 1, Math.min(s.right - 1, d)), b = m.elementFromPoint(d, u), b && !t.contentDOM.contains(b) && (b = null));
18549
18549
  let v, w = -1;
18550
18550
  if (b && ((i = t.docView.nearest(b)) === null || i === void 0 ? void 0 : i.isEditable) != !1) {
18551
- if (m.caretPositionFromPoint) {
18552
- let C = m.caretPositionFromPoint(d, u);
18551
+ if (g.caretPositionFromPoint) {
18552
+ let C = g.caretPositionFromPoint(d, u);
18553
18553
  C && ({ offsetNode: v, offset: w } = C);
18554
- } else if (m.caretRangeFromPoint) {
18555
- let C = m.caretRangeFromPoint(d, u);
18554
+ } else if (g.caretRangeFromPoint) {
18555
+ let C = g.caretRangeFromPoint(d, u);
18556
18556
  C && ({ startContainer: v, startOffset: w } = C, (!t.contentDOM.contains(v) || ae.safari && RR(v, w, d) || ae.chrome && ER(v, w, d)) && (v = void 0));
18557
18557
  }
18558
18558
  v && (w = Math.min(Nn(v), w));
@@ -18684,10 +18684,10 @@ function LR(t, e, n, r) {
18684
18684
  }
18685
18685
  let u = l.left + s, f = r ?? t.viewState.heightOracle.textHeight >> 1;
18686
18686
  for (let p = 0; ; p += 10) {
18687
- let m = a + (f + p) * o, g = dv(t, { x: u, y: m }, !1, o);
18688
- if (m < l.top || m > l.bottom || (o < 0 ? g < i : g > i)) {
18689
- let b = t.docView.coordsForChar(g), v = !b || m < b.top ? -1 : 1;
18690
- return U.cursor(g, v, void 0, s);
18687
+ let g = a + (f + p) * o, m = dv(t, { x: u, y: g }, !1, o);
18688
+ if (g < l.top || g > l.bottom || (o < 0 ? m < i : m > i)) {
18689
+ let b = t.docView.coordsForChar(m), v = !b || g < b.top ? -1 : 1;
18690
+ return U.cursor(m, v, void 0, s);
18691
18691
  }
18692
18692
  }
18693
18693
  }
@@ -18795,8 +18795,8 @@ class FR {
18795
18795
  } else {
18796
18796
  let a = e.observer.selectionRange, l = o && o.node == a.focusNode && o.offset == a.focusOffset || !Hh(e.contentDOM, a.focusNode) ? e.state.selection.main.head : e.docView.posFromDOM(a.focusNode, a.focusOffset), c = s && s.node == a.anchorNode && s.offset == a.anchorOffset || !Hh(e.contentDOM, a.anchorNode) ? e.state.selection.main.anchor : e.docView.posFromDOM(a.anchorNode, a.anchorOffset), d = e.viewport;
18797
18797
  if ((ae.ios || ae.chrome) && e.state.selection.main.empty && l != c && (d.from > 0 || d.to < e.state.doc.length)) {
18798
- let u = Math.min(l, c), f = Math.max(l, c), p = d.from - u, m = d.to - f;
18799
- (p == 0 || p == 1 || u == 0) && (m == 0 || m == -1 || f == e.state.doc.length) && (l = 0, c = e.state.doc.length);
18798
+ let u = Math.min(l, c), f = Math.max(l, c), p = d.from - u, g = d.to - f;
18799
+ (p == 0 || p == 1 || u == 0) && (g == 0 || g == -1 || f == e.state.doc.length) && (l = 0, c = e.state.doc.length);
18800
18800
  }
18801
18801
  this.newSel = U.single(c, l);
18802
18802
  }
@@ -18852,25 +18852,25 @@ function VR(t, e, n) {
18852
18852
  if (i.selection.ranges.length > 1 && t.inputState.composing >= 0 && e.to <= o.to && e.to >= o.to - 10) {
18853
18853
  let c = t.state.sliceDoc(e.from, e.to), d, u = n && cv(t, n.main.head);
18854
18854
  if (u) {
18855
- let m = e.insert.length - (e.to - e.from);
18856
- d = { from: u.from, to: u.to - m };
18855
+ let g = e.insert.length - (e.to - e.from);
18856
+ d = { from: u.from, to: u.to - g };
18857
18857
  } else
18858
18858
  d = t.state.doc.lineAt(o.head);
18859
18859
  let f = o.to - e.to, p = o.to - o.from;
18860
- r = i.changeByRange((m) => {
18861
- if (m.from == o.from && m.to == o.to)
18862
- return { changes: a, range: l || m.map(a) };
18863
- let g = m.to - f, b = g - c.length;
18864
- if (m.to - m.from != p || t.state.sliceDoc(b, g) != c || // Unfortunately, there's no way to make multiple
18860
+ r = i.changeByRange((g) => {
18861
+ if (g.from == o.from && g.to == o.to)
18862
+ return { changes: a, range: l || g.map(a) };
18863
+ let m = g.to - f, b = m - c.length;
18864
+ if (g.to - g.from != p || t.state.sliceDoc(b, m) != c || // Unfortunately, there's no way to make multiple
18865
18865
  // changes in the same node work without aborting
18866
18866
  // composition, so cursors in the composition range are
18867
18867
  // ignored.
18868
- m.to >= d.from && m.from <= d.to)
18869
- return { range: m };
18870
- let v = i.changes({ from: b, to: g, insert: e.insert }), w = m.to - o.to;
18868
+ g.to >= d.from && g.from <= d.to)
18869
+ return { range: g };
18870
+ let v = i.changes({ from: b, to: m, insert: e.insert }), w = g.to - o.to;
18871
18871
  return {
18872
18872
  changes: v,
18873
- range: l ? U.range(Math.max(0, l.anchor + w), Math.max(0, l.head + w)) : m.map(v)
18873
+ range: l ? U.range(Math.max(0, l.anchor + w), Math.max(0, l.head + w)) : g.map(v)
18874
18874
  };
18875
18875
  });
18876
18876
  } else
@@ -19537,8 +19537,8 @@ class It {
19537
19537
  for (u += p.to - c, c = p.to; a > 0 && f.from <= i[a - 1].toA; )
19538
19538
  l = i[a - 1].fromA, d = i[a - 1].fromB, a--, l < f.from && (f = o.lineAt(l, _e.ByPosNoHeight, r, 0, 0));
19539
19539
  d += f.from - l, l = f.from;
19540
- let m = r0.build(r.setDoc(s), e, d, u);
19541
- o = Sl(o, o.replace(l, c, m));
19540
+ let g = r0.build(r.setDoc(s), e, d, u);
19541
+ o = Sl(o, o.replace(l, c, g));
19542
19542
  }
19543
19543
  return o.updateHeight(r, 0);
19544
19544
  }
@@ -19643,8 +19643,8 @@ class ht extends It {
19643
19643
  if (n == _e.ByHeight)
19644
19644
  return this.blockAt(e, r, i, o);
19645
19645
  if (n == _e.ByPosNoHeight) {
19646
- let { from: p, to: m } = r.doc.lineAt(e);
19647
- return new Sn(p, m - p, 0, 0, 0);
19646
+ let { from: p, to: g } = r.doc.lineAt(e);
19647
+ return new Sn(p, g - p, 0, 0, 0);
19648
19648
  }
19649
19649
  let { firstLine: s, perLine: a, perChar: l } = this.heightMetrics(r, o), c = r.doc.lineAt(e), d = a + c.length * l, u = c.number - s, f = i + a * u + l * (c.from - o - u);
19650
19650
  return new Sn(c.from, c.length, Math.max(i, Math.min(f, i + this.height - d)), d, 0);
@@ -19655,8 +19655,8 @@ class ht extends It {
19655
19655
  for (let d = e, u = i; d <= n; ) {
19656
19656
  let f = r.doc.lineAt(d);
19657
19657
  if (d == e) {
19658
- let m = f.number - a;
19659
- u += l * m + c * (e - o - m);
19658
+ let g = f.number - a;
19659
+ u += l * g + c * (e - o - g);
19660
19660
  }
19661
19661
  let p = l + c * f.length;
19662
19662
  s(new Sn(f.from, f.length, u, p, 0)), u += p, d = f.to + 1;
@@ -19979,8 +19979,8 @@ class xp {
19979
19979
  (this.paddingTop != u || this.paddingBottom != f) && (this.paddingTop = u, this.paddingBottom = f, c |= 18), this.editorWidth != e.scrollDOM.clientWidth && (i.lineWrapping && (l = !0), this.editorWidth = e.scrollDOM.clientWidth, c |= 16);
19980
19980
  let p = e.scrollDOM.scrollTop * this.scaleY;
19981
19981
  this.scrollTop != p && (this.scrollAnchorHeight = -1, this.scrollTop = p), this.scrolledToBottom = D5(e.scrollDOM);
19982
- let m = (this.printing ? fE : hE)(n, this.paddingTop), g = m.top - this.pixelViewport.top, b = m.bottom - this.pixelViewport.bottom;
19983
- this.pixelViewport = m;
19982
+ let g = (this.printing ? fE : hE)(n, this.paddingTop), m = g.top - this.pixelViewport.top, b = g.bottom - this.pixelViewport.bottom;
19983
+ this.pixelViewport = g;
19984
19984
  let v = this.pixelViewport.bottom > this.pixelViewport.top && this.pixelViewport.right > this.pixelViewport.left;
19985
19985
  if (v != this.inView && (this.inView = v, v && (l = !0)), !this.inView && !this.scrollTarget && !uE(e.dom))
19986
19986
  return 0;
@@ -19991,7 +19991,7 @@ class xp {
19991
19991
  let { lineHeight: $, charWidth: S, textHeight: k } = e.docView.measureTextSize();
19992
19992
  s = $ > 0 && i.refresh(o, $, S, k, Math.max(5, w / S), C), s && (e.docView.minWidth = 0, c |= 16);
19993
19993
  }
19994
- g > 0 && b > 0 ? d = Math.max(g, b) : g < 0 && b < 0 && (d = Math.min(g, b)), wp();
19994
+ m > 0 && b > 0 ? d = Math.max(m, b) : m < 0 && b < 0 && (d = Math.min(m, b)), wp();
19995
19995
  for (let $ of this.viewports) {
19996
19996
  let S = $.from == this.viewport.from ? C : e.docView.measureVisibleLineHeights($);
19997
19997
  this.heightMap = (s ? It.empty().applyChanges(this.stateDeco, De.empty, this.heightOracle, [new Qt(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(i, 0, s, new sE($.from, S));
@@ -20060,14 +20060,14 @@ class xp {
20060
20060
  let a = [], l = (d, u, f, p) => {
20061
20061
  if (u - d < o)
20062
20062
  return;
20063
- let m = this.state.selection.main, g = [m.from];
20064
- m.empty || g.push(m.to);
20065
- for (let v of g)
20063
+ let g = this.state.selection.main, m = [g.from];
20064
+ g.empty || m.push(g.to);
20065
+ for (let v of m)
20066
20066
  if (v > d && v < u) {
20067
20067
  l(d, v - 10, f, p), l(v + 10, u, f, p);
20068
20068
  return;
20069
20069
  }
20070
- let b = mE(e, (v) => v.from >= f.from && v.to <= f.to && Math.abs(v.from - d) < o && Math.abs(v.to - u) < o && !g.some((w) => v.from < w && v.to > w));
20070
+ let b = mE(e, (v) => v.from >= f.from && v.to <= f.to && Math.abs(v.from - d) < o && Math.abs(v.to - u) < o && !m.some((w) => v.from < w && v.to > w));
20071
20071
  if (!b) {
20072
20072
  if (u < f.to && n && r && n.visibleRanges.some((x) => x.from <= u && x.to >= u)) {
20073
20073
  let x = n.moveToLineBoundary(U.cursor(u), !1, !0).head;
@@ -20083,29 +20083,29 @@ class xp {
20083
20083
  let u = gE(d.from, d.to, this.stateDeco);
20084
20084
  if (u.total < s)
20085
20085
  return;
20086
- let f = this.scrollTarget ? this.scrollTarget.range.head : null, p, m;
20086
+ let f = this.scrollTarget ? this.scrollTarget.range.head : null, p, g;
20087
20087
  if (r) {
20088
- let g = i / this.heightOracle.lineLength * this.heightOracle.lineHeight, b, v;
20088
+ let m = i / this.heightOracle.lineLength * this.heightOracle.lineHeight, b, v;
20089
20089
  if (f != null) {
20090
- let w = Ta(u, f), x = ((this.visibleBottom - this.visibleTop) / 2 + g) / d.height;
20090
+ let w = Ta(u, f), x = ((this.visibleBottom - this.visibleTop) / 2 + m) / d.height;
20091
20091
  b = w - x, v = w + x;
20092
20092
  } else
20093
- b = (this.visibleTop - d.top - g) / d.height, v = (this.visibleBottom - d.top + g) / d.height;
20094
- p = ka(u, b), m = ka(u, v);
20093
+ b = (this.visibleTop - d.top - m) / d.height, v = (this.visibleBottom - d.top + m) / d.height;
20094
+ p = ka(u, b), g = ka(u, v);
20095
20095
  } else {
20096
- let g = u.total * this.heightOracle.charWidth, b = i * this.heightOracle.charWidth, v = 0;
20097
- if (g > 2e6)
20096
+ let m = u.total * this.heightOracle.charWidth, b = i * this.heightOracle.charWidth, v = 0;
20097
+ if (m > 2e6)
20098
20098
  for (let S of e)
20099
20099
  S.from >= d.from && S.from < d.to && S.size != S.displaySize && S.from * this.heightOracle.charWidth + v < this.pixelViewport.left && (v = S.size - S.displaySize);
20100
20100
  let w = this.pixelViewport.left + v, x = this.pixelViewport.right + v, C, $;
20101
20101
  if (f != null) {
20102
- let S = Ta(u, f), k = ((x - w) / 2 + b) / g;
20102
+ let S = Ta(u, f), k = ((x - w) / 2 + b) / m;
20103
20103
  C = S - k, $ = S + k;
20104
20104
  } else
20105
- C = (w - b) / g, $ = (x + b) / g;
20106
- p = ka(u, C), m = ka(u, $);
20105
+ C = (w - b) / m, $ = (x + b) / m;
20106
+ p = ka(u, C), g = ka(u, $);
20107
20107
  }
20108
- p > d.from && l(d.from, p, d, u), m < d.to && l(m, d.to, d, u);
20108
+ p > d.from && l(d.from, p, d, u), g < d.to && l(g, d.to, d, u);
20109
20109
  };
20110
20110
  for (let d of this.viewportLines)
20111
20111
  Array.isArray(d.type) ? d.type.forEach(c) : c(d);
@@ -21148,18 +21148,18 @@ class re {
21148
21148
  let d = c.map((p) => {
21149
21149
  try {
21150
21150
  return p.read(this);
21151
- } catch (m) {
21152
- return Lt(this.state, m), Ap;
21151
+ } catch (g) {
21152
+ return Lt(this.state, g), Ap;
21153
21153
  }
21154
21154
  }), u = $l.create(this, this.state, []), f = !1;
21155
21155
  u.flags |= l, n ? n.flags |= l : n = u, this.updateState = 2, u.empty || (this.updatePlugins(u), this.inputState.update(u), this.updateAttrs(), f = this.docView.update(u), f && this.docViewUpdate());
21156
21156
  for (let p = 0; p < c.length; p++)
21157
21157
  if (d[p] != Ap)
21158
21158
  try {
21159
- let m = c[p];
21160
- m.write && m.write(d[p], this);
21161
- } catch (m) {
21162
- Lt(this.state, m);
21159
+ let g = c[p];
21160
+ g.write && g.write(d[p], this);
21161
+ } catch (g) {
21162
+ Lt(this.state, g);
21163
21163
  }
21164
21164
  if (f && this.docView.updateSelection(!0), !u.viewportChanged && this.measureRequests.length == 0) {
21165
21165
  if (this.viewState.editorHeight)
@@ -21167,9 +21167,9 @@ class re {
21167
21167
  this.docView.scrollIntoView(this.viewState.scrollTarget), this.viewState.scrollTarget = null, s = -1;
21168
21168
  continue;
21169
21169
  } else {
21170
- let m = (o < 0 ? this.viewState.heightMap.height : this.viewState.lineBlockAt(o).top) - s;
21171
- if (m > 1 || m < -1) {
21172
- i = i + m, r.scrollTop = i / this.scaleY, s = -1;
21170
+ let g = (o < 0 ? this.viewState.heightMap.height : this.viewState.lineBlockAt(o).top) - s;
21171
+ if (g > 1 || g < -1) {
21172
+ i = i + g, r.scrollTop = i / this.scaleY, s = -1;
21173
21173
  continue;
21174
21174
  }
21175
21175
  }
@@ -21745,9 +21745,9 @@ function ME(t, e = $E) {
21745
21745
  throw new Error("Key binding " + s + " is used both as a regular binding and as a multi-stroke prefix");
21746
21746
  }, o = (s, a, l, c, d) => {
21747
21747
  var u, f;
21748
- let p = n[s] || (n[s] = /* @__PURE__ */ Object.create(null)), m = a.split(/ (?!$)/).map((v) => SE(v, e));
21749
- for (let v = 1; v < m.length; v++) {
21750
- let w = m.slice(0, v).join(" ");
21748
+ let p = n[s] || (n[s] = /* @__PURE__ */ Object.create(null)), g = a.split(/ (?!$)/).map((v) => SE(v, e));
21749
+ for (let v = 1; v < g.length; v++) {
21750
+ let w = g.slice(0, v).join(" ");
21751
21751
  i(w, !0), p[w] || (p[w] = {
21752
21752
  preventDefault: !0,
21753
21753
  stopPropagation: !1,
@@ -21759,9 +21759,9 @@ function ME(t, e = $E) {
21759
21759
  }]
21760
21760
  });
21761
21761
  }
21762
- let g = m.join(" ");
21763
- i(g, !1);
21764
- let b = p[g] || (p[g] = {
21762
+ let m = g.join(" ");
21763
+ i(m, !1);
21764
+ let b = p[m] || (p[m] = {
21765
21765
  preventDefault: !1,
21766
21766
  stopPropagation: !1,
21767
21767
  run: ((f = (u = p._any) === null || u === void 0 ? void 0 : u.run) === null || f === void 0 ? void 0 : f.slice()) || []
@@ -21798,10 +21798,10 @@ function Av(t, e, n, r) {
21798
21798
  b.preventDefault && (b.stopPropagation && (d = !0), c = !0);
21799
21799
  }
21800
21800
  return !1;
21801
- }, p = t[r], m, g;
21801
+ }, p = t[r], g, m;
21802
21802
  return p && (f(p[a + Ia(i, e, !s)]) ? l = !0 : s && (e.altKey || e.metaKey || e.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
21803
21803
  !(ae.windows && e.ctrlKey && e.altKey) && // Alt-combinations on macOS tend to be typed characters
21804
- !(ae.mac && e.altKey && !e.ctrlKey) && (m = Ir[e.keyCode]) && m != i ? (f(p[a + Ia(m, e, !0)]) || e.shiftKey && (g = us[e.keyCode]) != i && g != m && f(p[a + Ia(g, e, !1)])) && (l = !0) : s && e.shiftKey && f(p[a + Ia(i, e, !0)]) && (l = !0), !l && f(p._any) && (l = !0)), c && (l = !0), l && d && e.stopPropagation(), ru = null, l;
21804
+ !(ae.mac && e.altKey && !e.ctrlKey) && (g = Ir[e.keyCode]) && g != i ? (f(p[a + Ia(g, e, !0)]) || e.shiftKey && (m = us[e.keyCode]) != i && m != g && f(p[a + Ia(m, e, !1)])) && (l = !0) : s && e.shiftKey && f(p[a + Ia(i, e, !0)]) && (l = !0), !l && f(p._any) && (l = !0)), c && (l = !0), l && d && e.stopPropagation(), ru = null, l;
21805
21805
  }
21806
21806
  class Hs {
21807
21807
  /**
@@ -21856,12 +21856,12 @@ function Mp(t, e, n, r) {
21856
21856
  function IE(t, e, n) {
21857
21857
  if (n.to <= t.viewport.from || n.from >= t.viewport.to)
21858
21858
  return [];
21859
- let r = Math.max(n.from, t.viewport.from), i = Math.min(n.to, t.viewport.to), o = t.textDirection == He.LTR, s = t.contentDOM, a = s.getBoundingClientRect(), l = kv(t), c = s.querySelector(".cm-line"), d = c && window.getComputedStyle(c), u = a.left + (d ? parseInt(d.paddingLeft) + Math.min(0, parseInt(d.textIndent)) : 0), f = a.right - (d ? parseInt(d.paddingRight) : 0), p = Zh(t, r, 1), m = Zh(t, i, -1), g = p.type == Mt.Text ? p : null, b = m.type == Mt.Text ? m : null;
21860
- if (g && (t.lineWrapping || p.widgetLineBreaks) && (g = Mp(t, r, 1, g)), b && (t.lineWrapping || m.widgetLineBreaks) && (b = Mp(t, i, -1, b)), g && b && g.from == b.from && g.to == b.to)
21861
- return w(x(n.from, n.to, g));
21859
+ let r = Math.max(n.from, t.viewport.from), i = Math.min(n.to, t.viewport.to), o = t.textDirection == He.LTR, s = t.contentDOM, a = s.getBoundingClientRect(), l = kv(t), c = s.querySelector(".cm-line"), d = c && window.getComputedStyle(c), u = a.left + (d ? parseInt(d.paddingLeft) + Math.min(0, parseInt(d.textIndent)) : 0), f = a.right - (d ? parseInt(d.paddingRight) : 0), p = Zh(t, r, 1), g = Zh(t, i, -1), m = p.type == Mt.Text ? p : null, b = g.type == Mt.Text ? g : null;
21860
+ if (m && (t.lineWrapping || p.widgetLineBreaks) && (m = Mp(t, r, 1, m)), b && (t.lineWrapping || g.widgetLineBreaks) && (b = Mp(t, i, -1, b)), m && b && m.from == b.from && m.to == b.to)
21861
+ return w(x(n.from, n.to, m));
21862
21862
  {
21863
- let $ = g ? x(n.from, null, g) : C(p, !1), S = b ? x(null, n.to, b) : C(m, !0), k = [];
21864
- return (g || p).to < (b || m).from - (g && b ? 1 : 0) || p.widgetLineBreaks > 1 && $.bottom + t.defaultLineHeight / 2 < S.top ? k.push(v(u, $.bottom, f, S.top)) : $.bottom < S.top && t.elementAtHeight(($.bottom + S.top) / 2).type == Mt.Text && ($.bottom = S.top = ($.bottom + S.top) / 2), w($).concat(k).concat(w(S));
21863
+ let $ = m ? x(n.from, null, m) : C(p, !1), S = b ? x(null, n.to, b) : C(g, !0), k = [];
21864
+ return (m || p).to < (b || g).from - (m && b ? 1 : 0) || p.widgetLineBreaks > 1 && $.bottom + t.defaultLineHeight / 2 < S.top ? k.push(v(u, $.bottom, f, S.top)) : $.bottom < S.top && t.elementAtHeight(($.bottom + S.top) / 2).type == Mt.Text && ($.bottom = S.top = ($.bottom + S.top) / 2), w($).concat(k).concat(w(S));
21865
21865
  }
21866
21866
  function v($, S, k, D) {
21867
21867
  return new Hs(e, $ - l.left, S - l.top, k - $, D - S);
@@ -22159,13 +22159,13 @@ class _E {
22159
22159
  break;
22160
22160
  }
22161
22161
  }
22162
- let f = [], p, m = (g, b, v) => f.push(v.range(g, b));
22162
+ let f = [], p, g = (m, b, v) => f.push(v.range(m, b));
22163
22163
  if (l == c)
22164
22164
  for (this.regexp.lastIndex = d - l.from; (p = this.regexp.exec(l.text)) && p.index < u - l.from; )
22165
- this.addMatch(p, e, p.index + l.from, m);
22165
+ this.addMatch(p, e, p.index + l.from, g);
22166
22166
  else
22167
- Rp(e.state.doc, this.regexp, d, u, (g, b) => this.addMatch(b, e, g, m));
22168
- n = n.update({ filterFrom: d, filterTo: u, filter: (g, b) => g < d || b > u, add: f });
22167
+ Rp(e.state.doc, this.regexp, d, u, (m, b) => this.addMatch(b, e, m, g));
22168
+ n = n.update({ filterFrom: d, filterTo: u, filter: (m, b) => m < d || b > u, add: f });
22169
22169
  }
22170
22170
  }
22171
22171
  return n;
@@ -22585,9 +22585,9 @@ const Td = /* @__PURE__ */ le.define({
22585
22585
  d.style.top = Bo;
22586
22586
  continue;
22587
22587
  }
22588
- let p = l.arrow ? c.dom.querySelector(".cm-tooltip-arrow") : null, m = p ? 7 : 0, g = f.right - f.left, b = (e = Op.get(c)) !== null && e !== void 0 ? e : f.bottom - f.top, v = c.offset || cD, w = this.view.textDirection == He.LTR, x = f.width > r.right - r.left ? w ? r.left : r.right - f.width : w ? Math.max(r.left, Math.min(u.left - (p ? 14 : 0) + v.x, r.right - g)) : Math.min(Math.max(r.left, u.left - g + (p ? 14 : 0) - v.x), r.right - g), C = this.above[a];
22589
- !l.strictSide && (C ? u.top - b - m - v.y < r.top : u.bottom + b + m + v.y > r.bottom) && C == r.bottom - u.bottom > u.top - r.top && (C = this.above[a] = !C);
22590
- let $ = (C ? u.top - r.top : r.bottom - u.bottom) - m;
22588
+ let p = l.arrow ? c.dom.querySelector(".cm-tooltip-arrow") : null, g = p ? 7 : 0, m = f.right - f.left, b = (e = Op.get(c)) !== null && e !== void 0 ? e : f.bottom - f.top, v = c.offset || cD, w = this.view.textDirection == He.LTR, x = f.width > r.right - r.left ? w ? r.left : r.right - f.width : w ? Math.max(r.left, Math.min(u.left - (p ? 14 : 0) + v.x, r.right - m)) : Math.min(Math.max(r.left, u.left - m + (p ? 14 : 0) - v.x), r.right - m), C = this.above[a];
22589
+ !l.strictSide && (C ? u.top - b - g - v.y < r.top : u.bottom + b + g + v.y > r.bottom) && C == r.bottom - u.bottom > u.top - r.top && (C = this.above[a] = !C);
22590
+ let $ = (C ? u.top - r.top : r.bottom - u.bottom) - g;
22591
22591
  if ($ < b && c.resize !== !1) {
22592
22592
  if ($ < this.view.defaultLineHeight) {
22593
22593
  d.style.top = Bo;
@@ -22595,10 +22595,10 @@ const Td = /* @__PURE__ */ le.define({
22595
22595
  }
22596
22596
  Op.set(c, b), d.style.height = (b = $) / o + "px";
22597
22597
  } else d.style.height && (d.style.height = "");
22598
- let S = C ? u.top - b - m - v.y : u.bottom + m + v.y, k = x + g;
22598
+ let S = C ? u.top - b - g - v.y : u.bottom + g + v.y, k = x + m;
22599
22599
  if (c.overlap !== !0)
22600
22600
  for (let D of s)
22601
- D.left < k && D.right > x && D.top < S + b && D.bottom > S && (S = C ? D.top - b - 2 - m : D.bottom + m + 2);
22601
+ D.left < k && D.right > x && D.top < S + b && D.bottom > S && (S = C ? D.top - b - 2 - g : D.bottom + g + 2);
22602
22602
  if (this.position == "absolute" ? (d.style.top = (S - t.parent.top) / o + "px", Lp(d, (x - t.parent.left) / i)) : (d.style.top = S / o + "px", Lp(d, x / i)), p) {
22603
22603
  let D = u.left + (w ? v.x : -v.x) - (x + 14 - 7);
22604
22604
  p.style.left = D / i + "px";
@@ -23353,8 +23353,8 @@ class an {
23353
23353
  let f = l.resolve(s - l.from, a);
23354
23354
  for (let p of u)
23355
23355
  if (p.test(f, o)) {
23356
- let m = o.facet(p.facet);
23357
- return p.type == "replace" ? m : m.concat(d);
23356
+ let g = o.facet(p.facet);
23357
+ return p.type == "replace" ? g : g.concat(d);
23358
23358
  }
23359
23359
  }
23360
23360
  return d;
@@ -24510,15 +24510,15 @@ function bO(t, e, n, r, i, o, s) {
24510
24510
  for (let f = 0; !d.next().done && f <= o; ) {
24511
24511
  let p = d.value;
24512
24512
  n < 0 && (f += p.length);
24513
- let m = e + f * n;
24514
- for (let g = n > 0 ? 0 : p.length - 1, b = n > 0 ? p.length : -1; g != b; g += n) {
24515
- let v = s.indexOf(p[g]);
24516
- if (!(v < 0 || r.resolveInner(m + g, 1).type != i))
24513
+ let g = e + f * n;
24514
+ for (let m = n > 0 ? 0 : p.length - 1, b = n > 0 ? p.length : -1; m != b; m += n) {
24515
+ let v = s.indexOf(p[m]);
24516
+ if (!(v < 0 || r.resolveInner(g + m, 1).type != i))
24517
24517
  if (v % 2 == 0 == n > 0)
24518
24518
  u++;
24519
24519
  else {
24520
24520
  if (u == 1)
24521
- return { start: c, end: { from: m + g, to: m + g + 1 }, matched: v >> 1 == l >> 1 };
24521
+ return { start: c, end: { from: g + m, to: g + m + 1 }, matched: v >> 1 == l >> 1 };
24522
24522
  u--;
24523
24523
  }
24524
24524
  }
@@ -24658,15 +24658,15 @@ function RO(t, { open: e, close: n }, r, i) {
24658
24658
  };
24659
24659
  let d, u;
24660
24660
  i - r <= 2 * Vo ? d = u = t.sliceDoc(r, i) : (d = t.sliceDoc(r, r + Vo), u = t.sliceDoc(i - Vo, i));
24661
- let f = /^\s*/.exec(d)[0].length, p = /\s*$/.exec(u)[0].length, m = u.length - p - n.length;
24662
- return d.slice(f, f + e.length) == e && u.slice(m, m + n.length) == n ? {
24661
+ let f = /^\s*/.exec(d)[0].length, p = /\s*$/.exec(u)[0].length, g = u.length - p - n.length;
24662
+ return d.slice(f, f + e.length) == e && u.slice(g, g + n.length) == n ? {
24663
24663
  open: {
24664
24664
  pos: r + f + e.length,
24665
24665
  margin: /\s/.test(d.charAt(f + e.length)) ? 1 : 0
24666
24666
  },
24667
24667
  close: {
24668
24668
  pos: i - p - n.length,
24669
- margin: /\s/.test(u.charAt(m - 1)) ? 1 : 0
24669
+ margin: /\s/.test(u.charAt(g - 1)) ? 1 : 0
24670
24670
  }
24671
24671
  } : null;
24672
24672
  }
@@ -24707,8 +24707,8 @@ function DO(t, e, n = e.selection.ranges) {
24707
24707
  let u = e.doc.lineAt(d);
24708
24708
  if (u.from > i && (o == s || s > u.from)) {
24709
24709
  i = u.from;
24710
- let f = /^\s*/.exec(u.text)[0].length, p = f == u.length, m = u.text.slice(f, f + c.length) == c ? f : -1;
24711
- f < u.text.length && f < l && (l = f), r.push({ line: u, comment: m, token: c, indent: f, empty: p, single: !1 });
24710
+ let f = /^\s*/.exec(u.text)[0].length, p = f == u.length, g = u.text.slice(f, f + c.length) == c ? f : -1;
24711
+ f < u.text.length && f < l && (l = f), r.push({ line: u, comment: g, token: c, indent: f, empty: p, single: !1 });
24712
24712
  }
24713
24713
  d = u.to + 1;
24714
24714
  }
@@ -25550,10 +25550,10 @@ function pu(t) {
25550
25550
  let b = p / 100;
25551
25551
  l && (b = b * (l == "-" ? -1 : 1) + a.number / s.doc.lines), p = Math.round(s.doc.lines * b);
25552
25552
  } else c && l && (p = p * (l == "-" ? -1 : 1) + a.number);
25553
- let m = s.doc.line(Math.max(1, Math.min(s.doc.lines, p))), g = U.cursor(m.from + Math.max(0, Math.min(f, m.length)));
25553
+ let g = s.doc.line(Math.max(1, Math.min(s.doc.lines, p))), m = U.cursor(g.from + Math.max(0, Math.min(f, g.length)));
25554
25554
  t.dispatch({
25555
- effects: [ts.of(!1), re.scrollIntoView(g.from, { y: "center" })],
25556
- selection: g
25555
+ effects: [ts.of(!1), re.scrollIntoView(m.from, { y: "center" })],
25556
+ selection: m
25557
25557
  }), t.focus();
25558
25558
  }
25559
25559
  return { dom: r };
@@ -26358,14 +26358,14 @@ class gN {
26358
26358
  if (c < l)
26359
26359
  return null;
26360
26360
  }
26361
- let d = 0, u = 0, f = !1, p = 0, m = -1, g = -1, b = /[a-z]/.test(e), v = !0;
26361
+ let d = 0, u = 0, f = !1, p = 0, g = -1, m = -1, b = /[a-z]/.test(e), v = !0;
26362
26362
  for (let w = 0, x = Math.min(e.length, 200), C = 0; w < x && u < l; ) {
26363
26363
  let $ = Et(e, w);
26364
- a < 0 && (d < l && $ == n[d] && (o[d++] = w), p < l && ($ == n[p] || $ == r[p] ? (p == 0 && (m = w), g = w + 1, p++) : p = 0));
26364
+ a < 0 && (d < l && $ == n[d] && (o[d++] = w), p < l && ($ == n[p] || $ == r[p] ? (p == 0 && (g = w), m = w + 1, p++) : p = 0));
26365
26365
  let S, k = $ < 255 ? $ >= 48 && $ <= 57 || $ >= 97 && $ <= 122 ? 2 : $ >= 65 && $ <= 90 ? 1 : 0 : (S = Uf($)) != S.toLowerCase() ? 1 : S != S.toUpperCase() ? 2 : 0;
26366
26366
  (!w || k == 1 && b || C == 0 && k != 0) && (n[u] == $ || r[u] == $ && (f = !0) ? s[u++] = w : s.length && (v = !1)), C = k, w += $n($);
26367
26367
  }
26368
- return u == l && s[0] == 0 && v ? this.result(-100 + (f ? -200 : 0), s, e) : p == l && m == 0 ? this.ret(-200 - e.length + (g == e.length ? 0 : -100), [0, g]) : a > -1 ? this.ret(-700 - e.length, [a, a + this.pattern.length]) : p == l ? this.ret(-900 - e.length, [m, g]) : u == l ? this.result(-100 + (f ? -200 : 0) + -700 + (v ? 0 : -1100), s, e) : n.length == 2 ? null : this.result((i[0] ? -700 : 0) + -200 + -1100, i, e);
26368
+ return u == l && s[0] == 0 && v ? this.result(-100 + (f ? -200 : 0), s, e) : p == l && g == 0 ? this.ret(-200 - e.length + (m == e.length ? 0 : -100), [0, m]) : a > -1 ? this.ret(-700 - e.length, [a, a + this.pattern.length]) : p == l ? this.ret(-900 - e.length, [g, m]) : u == l ? this.result(-100 + (f ? -200 : 0) + -700 + (v ? 0 : -1100), s, e) : n.length == 2 ? null : this.result((i[0] ? -700 : 0) + -200 + -1100, i, e);
26369
26369
  }
26370
26370
  result(e, n, r) {
26371
26371
  let i = [], o = 0;
@@ -26423,9 +26423,9 @@ function dg(t, e) {
26423
26423
  return t ? e ? t + " " + e : t : e;
26424
26424
  }
26425
26425
  function bN(t, e, n, r, i, o) {
26426
- let s = t.textDirection == He.RTL, a = s, l = !1, c = "top", d, u, f = e.left - i.left, p = i.right - e.right, m = r.right - r.left, g = r.bottom - r.top;
26427
- if (a && f < Math.min(m, p) ? a = !1 : !a && p < Math.min(m, f) && (a = !0), m <= (a ? f : p))
26428
- d = Math.max(i.top, Math.min(n.top, i.bottom - g)) - e.top, u = Math.min(400, a ? f : p);
26426
+ let s = t.textDirection == He.RTL, a = s, l = !1, c = "top", d, u, f = e.left - i.left, p = i.right - e.right, g = r.right - r.left, m = r.bottom - r.top;
26427
+ if (a && f < Math.min(g, p) ? a = !1 : !a && p < Math.min(g, f) && (a = !0), g <= (a ? f : p))
26428
+ d = Math.max(i.top, Math.min(n.top, i.bottom - m)) - e.top, u = Math.min(400, a ? f : p);
26429
26429
  else {
26430
26430
  l = !0, u = Math.min(
26431
26431
  400,
@@ -26433,7 +26433,7 @@ function bN(t, e, n, r, i, o) {
26433
26433
  /* Info.Margin */
26434
26434
  );
26435
26435
  let w = i.bottom - e.bottom;
26436
- w >= g || w > e.top ? d = n.bottom - e.top : (c = "bottom", d = e.bottom - n.top);
26436
+ w >= m || w > e.top ? d = n.bottom - e.top : (c = "bottom", d = e.bottom - n.top);
26437
26437
  }
26438
26438
  let b = (e.bottom - e.top) / o.offsetHeight, v = (e.right - e.left) / o.offsetWidth;
26439
26439
  return {
@@ -26642,17 +26642,17 @@ function CN(t, e) {
26642
26642
  i(new lg(u, c.source, d ? d(u) : [], 1e9 - n.length));
26643
26643
  else {
26644
26644
  let u = e.sliceDoc(c.from, c.to), f, p = o.filterStrict ? new mN(u) : new gN(u);
26645
- for (let m of c.result.options)
26646
- if (f = p.match(m.label)) {
26647
- let g = m.displayLabel ? d ? d(m, f.matched) : [] : f.matched;
26648
- i(new lg(m, c.source, g, f.score + (m.boost || 0)));
26645
+ for (let g of c.result.options)
26646
+ if (f = p.match(g.label)) {
26647
+ let m = g.displayLabel ? d ? d(g, f.matched) : [] : f.matched;
26648
+ i(new lg(g, c.source, m, f.score + (g.boost || 0)));
26649
26649
  }
26650
26650
  }
26651
26651
  }
26652
26652
  if (r) {
26653
26653
  let c = /* @__PURE__ */ Object.create(null), d = 0, u = (f, p) => {
26654
- var m, g;
26655
- return ((m = f.rank) !== null && m !== void 0 ? m : 1e9) - ((g = p.rank) !== null && g !== void 0 ? g : 1e9) || (f.name < p.name ? -1 : 1);
26654
+ var g, m;
26655
+ return ((g = f.rank) !== null && g !== void 0 ? g : 1e9) - ((m = p.rank) !== null && m !== void 0 ? m : 1e9) || (f.name < p.name ? -1 : 1);
26656
26656
  };
26657
26657
  for (let f of r.sort(u))
26658
26658
  d -= 1e5, c[f.name] = d;
@@ -27378,32 +27378,32 @@ class Ur {
27378
27378
  if (!u && !a.length)
27379
27379
  break;
27380
27380
  let f, p;
27381
- for (a.length ? (f = l, p = a.reduce((g, b) => Math.min(g, b.to), u && u.from > f ? u.from : 1e8)) : (f = u.from, p = u.to, a.push(u), d++); d < o.length; ) {
27382
- let g = o[d];
27383
- if (g.from == f && (g.to > g.from || g.to == f))
27384
- a.push(g), d++, p = Math.min(g.to, p);
27381
+ for (a.length ? (f = l, p = a.reduce((m, b) => Math.min(m, b.to), u && u.from > f ? u.from : 1e8)) : (f = u.from, p = u.to, a.push(u), d++); d < o.length; ) {
27382
+ let m = o[d];
27383
+ if (m.from == f && (m.to > m.from || m.to == f))
27384
+ a.push(m), d++, p = Math.min(m.to, p);
27385
27385
  else {
27386
- p = Math.min(g.from, p);
27386
+ p = Math.min(m.from, p);
27387
27387
  break;
27388
27388
  }
27389
27389
  }
27390
- let m = cB(a);
27391
- if (a.some((g) => g.from == g.to || g.from == g.to - 1 && r.doc.lineAt(g.from).to == g.from))
27390
+ let g = cB(a);
27391
+ if (a.some((m) => m.from == m.to || m.from == m.to - 1 && r.doc.lineAt(m.from).to == m.from))
27392
27392
  s.add(f, f, fe.widget({
27393
- widget: new oB(m),
27393
+ widget: new oB(g),
27394
27394
  diagnostics: a.slice()
27395
27395
  }));
27396
27396
  else {
27397
- let g = a.reduce((b, v) => v.markClass ? b + " " + v.markClass : b, "");
27397
+ let m = a.reduce((b, v) => v.markClass ? b + " " + v.markClass : b, "");
27398
27398
  s.add(f, p, fe.mark({
27399
- class: "cm-lintRange cm-lintRange-" + m + g,
27399
+ class: "cm-lintRange cm-lintRange-" + g + m,
27400
27400
  diagnostics: a.slice(),
27401
27401
  inclusiveEnd: a.some((b) => b.to > p)
27402
27402
  }));
27403
27403
  }
27404
27404
  l = p;
27405
- for (let g = 0; g < a.length; g++)
27406
- a[g].to <= l && a.splice(g--, 1);
27405
+ for (let m = 0; m < a.length; m++)
27406
+ a[m].to <= l && a.splice(m--, 1);
27407
27407
  }
27408
27408
  let c = s.finish();
27409
27409
  return new Ur(c, n, ho(c));
@@ -27987,8 +27987,8 @@ function Zw(t) {
27987
27987
  minHeight: u = null,
27988
27988
  maxHeight: f = null,
27989
27989
  width: p = null,
27990
- minWidth: m = null,
27991
- maxWidth: g = null,
27990
+ minWidth: g = null,
27991
+ maxWidth: m = null,
27992
27992
  placeholder: b = "",
27993
27993
  editable: v = !0,
27994
27994
  readOnly: w = !1,
@@ -28002,8 +28002,8 @@ function Zw(t) {
28002
28002
  minHeight: u,
28003
28003
  maxHeight: f,
28004
28004
  width: p,
28005
- minWidth: m,
28006
- maxWidth: g
28005
+ minWidth: g,
28006
+ maxWidth: m
28007
28007
  },
28008
28008
  "& .cm-scroller": {
28009
28009
  height: "100% !important"
@@ -28051,7 +28051,7 @@ function Zw(t) {
28051
28051
  E && E.dispatch({
28052
28052
  effects: ye.reconfigure.of(Q)
28053
28053
  });
28054
- }, [c, a, d, u, f, p, m, g, b, v, w, x, C, r, s]), J(() => {
28054
+ }, [c, a, d, u, f, p, g, m, b, v, w, x, C, r, s]), J(() => {
28055
28055
  if (e !== void 0) {
28056
28056
  var j = E ? E.state.doc.toString() : "";
28057
28057
  E && e !== j && E.dispatch({
@@ -28086,8 +28086,8 @@ var kB = ["className", "value", "selection", "extensions", "onChange", "onStatis
28086
28086
  theme: u = "light",
28087
28087
  height: f,
28088
28088
  minHeight: p,
28089
- maxHeight: m,
28090
- width: g,
28089
+ maxHeight: g,
28090
+ width: m,
28091
28091
  minWidth: b,
28092
28092
  maxWidth: v,
28093
28093
  basicSetup: w,
@@ -28109,8 +28109,8 @@ var kB = ["className", "value", "selection", "extensions", "onChange", "onStatis
28109
28109
  theme: u,
28110
28110
  height: f,
28111
28111
  minHeight: p,
28112
- maxHeight: m,
28113
- width: g,
28112
+ maxHeight: g,
28113
+ width: m,
28114
28114
  minWidth: b,
28115
28115
  maxWidth: v,
28116
28116
  basicSetup: w,
@@ -28368,8 +28368,8 @@ function LB(t, e, n, r) {
28368
28368
  maximumSignificantDigits: 21
28369
28369
  }), c = l.formatToParts(-10000.111), d = l.formatToParts(10000.111), u = OB.map((O) => l.formatToParts(O));
28370
28370
  var f;
28371
- let p = (f = (i = c.find((O) => O.type === "minusSign")) === null || i === void 0 ? void 0 : i.value) !== null && f !== void 0 ? f : "-", m = (o = d.find((O) => O.type === "plusSign")) === null || o === void 0 ? void 0 : o.value;
28372
- !m && (r?.signDisplay === "exceptZero" || r?.signDisplay === "always") && (m = "+");
28371
+ let p = (f = (i = c.find((O) => O.type === "minusSign")) === null || i === void 0 ? void 0 : i.value) !== null && f !== void 0 ? f : "-", g = (o = d.find((O) => O.type === "plusSign")) === null || o === void 0 ? void 0 : o.value;
28372
+ !g && (r?.signDisplay === "exceptZero" || r?.signDisplay === "always") && (g = "+");
28373
28373
  let b = (s = new Intl.NumberFormat(t, {
28374
28374
  ...n,
28375
28375
  minimumFractionDigits: 2,
@@ -28389,7 +28389,7 @@ function LB(t, e, n, r) {
28389
28389
  ])), D = new RegExp(`[${S.join("")}]`, "g");
28390
28390
  return {
28391
28391
  minusSign: p,
28392
- plusSign: m,
28392
+ plusSign: g,
28393
28393
  decimal: b,
28394
28394
  group: v,
28395
28395
  literals: $,
@@ -28596,8 +28596,8 @@ Defaulting to \`null\`.`;
28596
28596
  const eF = cy, tF = XB, uy = "Radio", [nF, fy] = Je(uy), [rF, iF] = nF(uy), oF = /* @__PURE__ */ A((t, e) => {
28597
28597
  const { __scopeRadio: n, name: r, checked: i = !1, required: o, disabled: s, value: a = "on", onCheck: l, ...c } = t, [d, u] = Z(null), f = pe(
28598
28598
  e,
28599
- (g) => u(g)
28600
- ), p = te(!1), m = d ? !!d.closest("form") : !0;
28599
+ (m) => u(m)
28600
+ ), p = te(!1), g = d ? !!d.closest("form") : !0;
28601
28601
  return /* @__PURE__ */ M(rF, {
28602
28602
  scope: n,
28603
28603
  checked: i,
@@ -28612,10 +28612,10 @@ const eF = cy, tF = XB, uy = "Radio", [nF, fy] = Je(uy), [rF, iF] = nF(uy), oF =
28612
28612
  value: a
28613
28613
  }, c, {
28614
28614
  ref: f,
28615
- onClick: Y(t.onClick, (g) => {
28616
- i || l?.(), m && (p.current = g.isPropagationStopped(), p.current || g.stopPropagation());
28615
+ onClick: Y(t.onClick, (m) => {
28616
+ i || l?.(), g && (p.current = m.isPropagationStopped(), p.current || m.stopPropagation());
28617
28617
  })
28618
- })), m && /* @__PURE__ */ M(lF, {
28618
+ })), g && /* @__PURE__ */ M(lF, {
28619
28619
  control: d,
28620
28620
  bubbles: !p.current,
28621
28621
  name: r,
@@ -28680,7 +28680,7 @@ const cF = [
28680
28680
  So,
28681
28681
  fy
28682
28682
  ]), my = So(), by = fy(), [hF, uF] = dF(gy), fF = /* @__PURE__ */ A((t, e) => {
28683
- const { __scopeRadioGroup: n, name: r, defaultValue: i, value: o, required: s = !1, disabled: a = !1, orientation: l, dir: c, loop: d = !0, onValueChange: u, ...f } = t, p = my(n), m = pi(c), [g, b] = ft({
28683
+ const { __scopeRadioGroup: n, name: r, defaultValue: i, value: o, required: s = !1, disabled: a = !1, orientation: l, dir: c, loop: d = !0, onValueChange: u, ...f } = t, p = my(n), g = pi(c), [m, b] = ft({
28684
28684
  prop: o,
28685
28685
  defaultProp: i,
28686
28686
  onChange: u
@@ -28690,31 +28690,31 @@ const cF = [
28690
28690
  name: r,
28691
28691
  required: s,
28692
28692
  disabled: a,
28693
- value: g,
28693
+ value: m,
28694
28694
  onValueChange: b
28695
28695
  }, /* @__PURE__ */ M(Of, H({
28696
28696
  asChild: !0
28697
28697
  }, p, {
28698
28698
  orientation: l,
28699
- dir: m,
28699
+ dir: g,
28700
28700
  loop: d
28701
28701
  }), /* @__PURE__ */ M(de.div, H({
28702
28702
  role: "radiogroup",
28703
28703
  "aria-required": s,
28704
28704
  "aria-orientation": l,
28705
28705
  "data-disabled": a ? "" : void 0,
28706
- dir: m
28706
+ dir: g
28707
28707
  }, f, {
28708
28708
  ref: e
28709
28709
  }))));
28710
28710
  }), pF = "RadioGroupItem", gF = /* @__PURE__ */ A((t, e) => {
28711
28711
  const { __scopeRadioGroup: n, disabled: r, ...i } = t, o = uF(pF, n), s = o.disabled || r, a = my(n), l = by(n), c = te(null), d = pe(e, c), u = o.value === i.value, f = te(!1);
28712
28712
  return J(() => {
28713
- const p = (g) => {
28714
- cF.includes(g.key) && (f.current = !0);
28715
- }, m = () => f.current = !1;
28716
- return document.addEventListener("keydown", p), document.addEventListener("keyup", m), () => {
28717
- document.removeEventListener("keydown", p), document.removeEventListener("keyup", m);
28713
+ const p = (m) => {
28714
+ cF.includes(m.key) && (f.current = !0);
28715
+ }, g = () => f.current = !1;
28716
+ return document.addEventListener("keydown", p), document.addEventListener("keyup", g), () => {
28717
+ document.removeEventListener("keydown", p), document.removeEventListener("keyup", g);
28718
28718
  };
28719
28719
  }, []), /* @__PURE__ */ M(Lf, H({
28720
28720
  asChild: !0
@@ -28746,7 +28746,7 @@ const cF = [
28746
28746
  const { __scopeSwitch: n, name: r, checked: i, defaultChecked: o, required: s, disabled: a, value: l = "on", onCheckedChange: c, ...d } = t, [u, f] = Z(null), p = pe(
28747
28747
  e,
28748
28748
  (w) => f(w)
28749
- ), m = te(!1), g = u ? !!u.closest("form") : !0, [b = !1, v] = ft({
28749
+ ), g = te(!1), m = u ? !!u.closest("form") : !0, [b = !1, v] = ft({
28750
28750
  prop: i,
28751
28751
  defaultProp: o,
28752
28752
  onChange: c
@@ -28769,11 +28769,11 @@ const cF = [
28769
28769
  onClick: Y(t.onClick, (w) => {
28770
28770
  v(
28771
28771
  (x) => !x
28772
- ), g && (m.current = w.isPropagationStopped(), m.current || w.stopPropagation());
28772
+ ), m && (g.current = w.isPropagationStopped(), g.current || w.stopPropagation());
28773
28773
  })
28774
- })), g && /* @__PURE__ */ M(kF, {
28774
+ })), m && /* @__PURE__ */ M(kF, {
28775
28775
  control: u,
28776
- bubbles: !m.current,
28776
+ bubbles: !g.current,
28777
28777
  name: r,
28778
28778
  value: l,
28779
28779
  checked: b,
@@ -29085,8 +29085,8 @@ const Nc = (t, e) => {
29085
29085
  paddingBottom: u,
29086
29086
  paddingLeft: f,
29087
29087
  paddingRight: p,
29088
- paddingTop: m,
29089
- margin: g,
29088
+ paddingTop: g,
29089
+ margin: m,
29090
29090
  marginLeft: b,
29091
29091
  marginBottom: v,
29092
29092
  marginRight: w,
@@ -29135,8 +29135,8 @@ const Nc = (t, e) => {
29135
29135
  $paddingBottom: u,
29136
29136
  $paddingLeft: f,
29137
29137
  $paddingRight: p,
29138
- $paddingTop: m,
29139
- $margin: g,
29138
+ $paddingTop: g,
29139
+ $margin: m,
29140
29140
  $marginLeft: b,
29141
29141
  $marginBottom: v,
29142
29142
  $marginRight: w,
@@ -29856,8 +29856,8 @@ y.forwardRef(
29856
29856
  const [l, c] = En({
29857
29857
  onChange: t
29858
29858
  }), [d, u] = y.useState(!1), f = o && l === "loaded";
29859
- return /* @__PURE__ */ L(t2, { onOpenChange: (m) => {
29860
- f && u(m);
29859
+ return /* @__PURE__ */ L(t2, { onOpenChange: (g) => {
29860
+ f && u(g);
29861
29861
  }, children: [
29862
29862
  /* @__PURE__ */ h(n2, { asChild: !0, children: /* @__PURE__ */ L(Cu, { ref: a, ...s, children: [
29863
29863
  f ? /* @__PURE__ */ h(
@@ -30559,9 +30559,9 @@ const e_ = jV, t_ = KV, n_ = GV, r_ = y.forwardRef(
30559
30559
  i && i(b);
30560
30560
  }, p = (b) => {
30561
30561
  b && typeof e == "function" ? e() : !b && typeof n == "function" && n(), u(b);
30562
- }, m = bn(), g = `intersection-${fo(m)}`;
30562
+ }, g = bn(), m = `intersection-${fo(g)}`;
30563
30563
  return Ks(c, f, {
30564
- selectorToWatch: `#${g}`,
30564
+ selectorToWatch: `#${m}`,
30565
30565
  /**
30566
30566
  * We need to know when the select is open because only then will viewportRef
30567
30567
  * not be null. Because it uses a portal that (sensibly) is not mounted 24/7.
@@ -30569,7 +30569,7 @@ const e_ = jV, t_ = KV, n_ = GV, r_ = y.forwardRef(
30569
30569
  skipWhen: !d
30570
30570
  }), /* @__PURE__ */ L(e_, { onOpenChange: p, children: [
30571
30571
  /* @__PURE__ */ h(t_, { ref: l, ...o, children: o.label }),
30572
- /* @__PURE__ */ h(n_, { ref: c, intersectionId: g, popoverPlacement: r, children: t })
30572
+ /* @__PURE__ */ h(n_, { ref: c, intersectionId: m, popoverPlacement: r, children: t })
30573
30573
  ] });
30574
30574
  }
30575
30575
  ), i_ = N(r_)`
@@ -30763,16 +30763,16 @@ const u_ = (t) => {
30763
30763
  ({ actions: t, children: e, label: n, nextLabel: r, onNext: i, onPrevious: o, previousLabel: s, secondaryLabel: a, selectedSlide: l, ...c }, d) => {
30764
30764
  const u = y.useRef(null), f = y.useRef(null), p = y.Children.map(
30765
30765
  e,
30766
- (g, b) => y.cloneElement(g, { selected: b === l })
30766
+ (m, b) => y.cloneElement(m, { selected: b === l })
30767
30767
  );
30768
- return /* @__PURE__ */ h(ie, { ref: d, ...c, onKeyDown: (g) => {
30769
- switch (g.key) {
30768
+ return /* @__PURE__ */ h(ie, { ref: d, ...c, onKeyDown: (m) => {
30769
+ switch (m.key) {
30770
30770
  case wt.RIGHT: {
30771
- g.preventDefault(), f?.current && f.current.focus(), i && i();
30771
+ m.preventDefault(), f?.current && f.current.focus(), i && i();
30772
30772
  break;
30773
30773
  }
30774
30774
  case wt.LEFT: {
30775
- g.preventDefault(), u?.current && u.current.focus(), o && o();
30775
+ m.preventDefault(), u?.current && u.current.focus(), o && o();
30776
30776
  break;
30777
30777
  }
30778
30778
  }
@@ -30964,9 +30964,9 @@ const u_ = (t) => {
30964
30964
  size: a = "M",
30965
30965
  ...l
30966
30966
  }, c) => {
30967
- const { id: d, error: u, hint: f, name: p, required: m } = Vt("Input");
30968
- let g;
30969
- u ? g = `${d}-error` : f && (g = `${d}-hint`);
30967
+ const { id: d, error: u, hint: f, name: p, required: g } = Vt("Input");
30968
+ let m;
30969
+ u ? m = `${d}-error` : f && (m = `${d}-hint`);
30970
30970
  const b = !!u, v = y.useRef(null), w = y.useRef(null), x = Ft(w, c), C = ($) => {
30971
30971
  !n && r && r($);
30972
30972
  };
@@ -30998,13 +30998,13 @@ const u_ = (t) => {
30998
30998
  name: p,
30999
30999
  ref: x,
31000
31000
  $size: a,
31001
- "aria-describedby": g,
31001
+ "aria-describedby": m,
31002
31002
  "aria-invalid": b || i,
31003
31003
  "aria-disabled": n,
31004
31004
  disabled: n,
31005
31005
  "data-disabled": n ? "" : void 0,
31006
31006
  onChange: C,
31007
- "aria-required": m || o,
31007
+ "aria-required": g || o,
31008
31008
  $hasLeftAction: !!e,
31009
31009
  $hasRightAction: !!t,
31010
31010
  ...l
@@ -31123,15 +31123,15 @@ y.forwardRef(
31123
31123
  secondaryLabel: u,
31124
31124
  selectedSlide: f,
31125
31125
  id: p,
31126
- ...m
31127
- }, g) => {
31126
+ ...g
31127
+ }, m) => {
31128
31128
  const b = bn(p);
31129
31129
  return /* @__PURE__ */ h(ui, { hint: r, error: n, id: b, required: d, children: /* @__PURE__ */ L(G, { direction: "column", alignItems: "stretch", gap: 1, children: [
31130
31130
  i && /* @__PURE__ */ h(k0, { action: o, children: i }),
31131
31131
  /* @__PURE__ */ h(
31132
31132
  g_,
31133
31133
  {
31134
- ref: g,
31134
+ ref: m,
31135
31135
  actions: t,
31136
31136
  label: i,
31137
31137
  nextLabel: s,
@@ -31141,7 +31141,7 @@ y.forwardRef(
31141
31141
  secondaryLabel: u,
31142
31142
  selectedSlide: f,
31143
31143
  id: b,
31144
- ...m,
31144
+ ...g,
31145
31145
  children: e
31146
31146
  }
31147
31147
  ),
@@ -31234,8 +31234,8 @@ const Hc = y.forwardRef(
31234
31234
  defaultOpen: u = !1,
31235
31235
  open: f,
31236
31236
  onOpenChange: p,
31237
- disabled: m = !1,
31238
- hasError: g,
31237
+ disabled: g = !1,
31238
+ hasError: m,
31239
31239
  id: b,
31240
31240
  filterValue: v,
31241
31241
  hasMoreItems: w = !1,
@@ -31272,7 +31272,7 @@ const Hc = y.forwardRef(
31272
31272
  defaultProp: c,
31273
31273
  onChange: V
31274
31274
  }), xe = y.useRef(null), Ae = y.useRef(null), be = Ft(Ae, ve), ge = y.useRef(null), Ve = (Ht) => {
31275
- E && !m && (Re(""), ke(""), E(Ht), Ae.current.focus());
31275
+ E && !g && (Re(""), ke(""), E(Ht), Ae.current.focus());
31276
31276
  }, Oe = (Ht) => {
31277
31277
  Ce(Ht);
31278
31278
  }, Me = (Ht) => {
@@ -31296,7 +31296,7 @@ const Hc = y.forwardRef(
31296
31296
  */
31297
31297
  skipWhen: !he
31298
31298
  });
31299
- const { error: jc, ...Qs } = Vt("Combobox"), q3 = !!jc || g, Kc = Qs.id ?? b, U3 = Qs.name ?? S, j3 = Qs.required || Q;
31299
+ const { error: jc, ...Qs } = Vt("Combobox"), q3 = !!jc || m, Kc = Qs.id ?? b, U3 = Qs.name ?? S, j3 = Qs.required || Q;
31300
31300
  let Gc;
31301
31301
  return jc ? Gc = `${Kc}-error` : Qs.hint && (Gc = `${Kc}-hint`), /* @__PURE__ */ L(
31302
31302
  sn.Root,
@@ -31307,7 +31307,7 @@ const Hc = y.forwardRef(
31307
31307
  onTextValueChange: Me,
31308
31308
  textValue: Se,
31309
31309
  allowCustomValue: !!o || t,
31310
- disabled: m,
31310
+ disabled: g,
31311
31311
  required: j3,
31312
31312
  value: ne,
31313
31313
  onValueChange: wi,
@@ -31340,7 +31340,7 @@ const Hc = y.forwardRef(
31340
31340
  size: "XS",
31341
31341
  variant: "ghost",
31342
31342
  onClick: Ve,
31343
- "aria-disabled": m,
31343
+ "aria-disabled": g,
31344
31344
  "aria-label": i,
31345
31345
  label: i,
31346
31346
  ref: ge,
@@ -31775,15 +31775,15 @@ ${we`
31775
31775
  t3.displayName = "Portal";
31776
31776
  const iH = y.forwardRef(
31777
31777
  ({ onClear: t, clearLabel: e = "Clear", startIcon: n, disabled: r, hasError: i, children: o, id: s, size: a = "M", withTags: l, ...c }, d) => {
31778
- const u = y.useRef(null), f = (g) => {
31779
- t && !r && (t(g), u.current.focus());
31780
- }, { labelNode: p } = Vt("SelectTrigger"), m = Ft(u, d);
31778
+ const u = y.useRef(null), f = (m) => {
31779
+ t && !r && (t(m), u.current.focus());
31780
+ }, { labelNode: p } = Vt("SelectTrigger"), g = Ft(u, d);
31781
31781
  return /* @__PURE__ */ h(pn.Trigger, { asChild: !0, children: /* @__PURE__ */ L(
31782
31782
  oH,
31783
31783
  {
31784
31784
  "aria-disabled": r,
31785
31785
  $hasError: i,
31786
- ref: m,
31786
+ ref: g,
31787
31787
  alignItems: "center",
31788
31788
  justifyContent: "space-between",
31789
31789
  position: "relative",
@@ -31935,8 +31935,8 @@ const iH = y.forwardRef(
31935
31935
  placeholder: u,
31936
31936
  required: f,
31937
31937
  size: p,
31938
- startIcon: m,
31939
- value: g,
31938
+ startIcon: g,
31939
+ value: m,
31940
31940
  ...b
31941
31941
  }, v) => {
31942
31942
  const [w, x] = y.useState(), [C, $] = y.useState(!1), S = (oe) => {
@@ -31944,7 +31944,7 @@ const iH = y.forwardRef(
31944
31944
  }, k = (oe) => {
31945
31945
  l && l(oe), a || x("");
31946
31946
  }, D = (oe) => {
31947
- a ? a(typeof g == "number" ? Number(oe) : oe) : x(oe);
31947
+ a ? a(typeof m == "number" ? Number(oe) : oe) : x(oe);
31948
31948
  }, E = y.useRef(null), O = bn(), V = `intersection-${fo(O)}`;
31949
31949
  Ks(E, (oe) => {
31950
31950
  d && d(oe);
@@ -31959,7 +31959,7 @@ const iH = y.forwardRef(
31959
31959
  const { error: q, required: z, ...K } = Vt("SingleSelect"), Q = !!q || i, j = K.id ?? o, W = K.name ?? s;
31960
31960
  let F;
31961
31961
  q ? F = `${j}-error` : K.hint && (F = `${j}-hint`);
31962
- const ne = (typeof g < "u" && g !== null ? g.toString() : w) ?? "";
31962
+ const ne = (typeof m < "u" && m !== null ? m.toString() : w) ?? "";
31963
31963
  return /* @__PURE__ */ L(
31964
31964
  n3,
31965
31965
  {
@@ -31976,7 +31976,7 @@ const iH = y.forwardRef(
31976
31976
  ref: v,
31977
31977
  id: j,
31978
31978
  name: W,
31979
- startIcon: m,
31979
+ startIcon: g,
31980
31980
  hasError: Q,
31981
31981
  disabled: r,
31982
31982
  clearLabel: e,
@@ -32022,8 +32022,8 @@ const iH = y.forwardRef(
32022
32022
  id: u,
32023
32023
  name: f,
32024
32024
  disabled: p = !1,
32025
- required: m = !1,
32026
- onClear: g,
32025
+ required: g = !1,
32026
+ onClear: m,
32027
32027
  clearLabel: b = "Clear",
32028
32028
  size: v = "M",
32029
32029
  ...w
@@ -32049,7 +32049,7 @@ const iH = y.forwardRef(
32049
32049
  maxDate: oe
32050
32050
  })
32051
32051
  ), Ce = bn(), Se = y.useRef(null), Re = (Me) => {
32052
- g && !p && (j(""), F(void 0), g(Me), B?.focus());
32052
+ m && !p && (j(""), F(void 0), m(Me), B?.focus());
32053
32053
  }, ce = y.useCallback(
32054
32054
  (Me) => {
32055
32055
  Me && W && he(W), E(Me);
@@ -32068,7 +32068,7 @@ const iH = y.forwardRef(
32068
32068
  j(k.format(Me.toDate(C)));
32069
32069
  }
32070
32070
  }, [n, Q, k, C]);
32071
- const { error: ke, ...xe } = Vt("Combobox"), Ae = !!ke || d, be = xe.id ?? u, ge = xe.name ?? f, Ve = xe.required || m;
32071
+ const { error: ke, ...xe } = Vt("Combobox"), Ae = !!ke || d, be = xe.id ?? u, ge = xe.name ?? f, Ve = xe.required || g;
32072
32072
  let Oe;
32073
32073
  return ke ? Oe = `${be}-error` : xe.hint && (Oe = `${be}-hint`), /* @__PURE__ */ L(
32074
32074
  vH,
@@ -32088,7 +32088,7 @@ const iH = y.forwardRef(
32088
32088
  onTextValueChange: j,
32089
32089
  onTriggerChange: V,
32090
32090
  onValueChange: F,
32091
- onClear: g,
32091
+ onClear: m,
32092
32092
  required: Ve,
32093
32093
  textInput: B,
32094
32094
  textValue: Q,
@@ -32099,7 +32099,7 @@ const iH = y.forwardRef(
32099
32099
  /* @__PURE__ */ L(CH, { className: e, hasError: Ae, size: v, children: [
32100
32100
  /* @__PURE__ */ h(j8, { fill: "neutral500", "aria-hidden": !0 }),
32101
32101
  /* @__PURE__ */ h(AH, { ref: x, "aria-describedby": Oe, id: be, name: ge, ...w }),
32102
- Q && g ? /* @__PURE__ */ h(
32102
+ Q && m ? /* @__PURE__ */ h(
32103
32103
  Ct,
32104
32104
  {
32105
32105
  size: "XS",
@@ -32203,7 +32203,7 @@ const iH = y.forwardRef(
32203
32203
  year: "numeric",
32204
32204
  month: "2-digit",
32205
32205
  day: "2-digit"
32206
- }), [p, m, g] = y.useMemo(() => {
32206
+ }), [p, g, m] = y.useMemo(() => {
32207
32207
  const v = f.formatToParts(/* @__PURE__ */ new Date()), w = v.filter(
32208
32208
  ($) => $.type === "year" || $.type === "month" || $.type === "day"
32209
32209
  ), x = w.map(($) => {
@@ -32219,7 +32219,7 @@ const iH = y.forwardRef(
32219
32219
  }
32220
32220
  }), C = v.find(($) => $.type === "literal")?.value ?? "";
32221
32221
  return [x, C, w];
32222
- }, [f]), b = p.map((v) => `\\d{${v.length}}`).join(`\\${m}`);
32222
+ }, [f]), b = p.map((v) => `\\d{${v.length}}`).join(`\\${g}`);
32223
32223
  return /* @__PURE__ */ h(
32224
32224
  TH,
32225
32225
  {
@@ -32237,7 +32237,7 @@ const iH = y.forwardRef(
32237
32237
  disabled: l,
32238
32238
  "data-disabled": l ? "" : void 0,
32239
32239
  pattern: b,
32240
- placeholder: t ?? p.join(m),
32240
+ placeholder: t ?? p.join(g),
32241
32241
  ...e,
32242
32242
  value: o ?? "",
32243
32243
  onBlur: Yr(e.onBlur, () => {
@@ -32249,7 +32249,7 @@ const iH = y.forwardRef(
32249
32249
  }),
32250
32250
  onChange: Yr(e.onChange, (v) => {
32251
32251
  if (Pg(v.target.value)) {
32252
- const w = v.target.value.split(m), [x, C, $] = g.map((q, z) => {
32252
+ const w = v.target.value.split(g), [x, C, $] = m.map((q, z) => {
32253
32253
  const K = w[z];
32254
32254
  return {
32255
32255
  ...q,
@@ -32440,13 +32440,13 @@ const TH = N.input`
32440
32440
  (x) => f.format(l.set({ month: x + 1 }).toDate(o))
32441
32441
  ),
32442
32442
  [l, f, o]
32443
- ), m = tr(i, { weekday: "short" }), g = y.useMemo(() => {
32443
+ ), g = tr(i, { weekday: "short" }), m = y.useMemo(() => {
32444
32444
  const x = gm(Iu(o), i);
32445
32445
  return [...new Array(7).keys()].map((C) => {
32446
32446
  const S = x.add({ days: C }).toDate(o);
32447
- return m.format(S);
32447
+ return g.format(S);
32448
32448
  });
32449
- }, [o, i, m]), b = (x) => {
32449
+ }, [o, i, g]), b = (x) => {
32450
32450
  if (typeof x == "number")
32451
32451
  return;
32452
32452
  const C = l.set({ month: p.indexOf(x) + 1 });
@@ -32471,7 +32471,7 @@ const TH = N.input`
32471
32471
  /* @__PURE__ */ h(ui, { children: /* @__PURE__ */ h(Bn, { value: l.year.toString(), "aria-label": e, onChange: v, children: u.map((x) => /* @__PURE__ */ h(Fn, { value: x, children: x }, x)) }) })
32472
32472
  ] }),
32473
32473
  /* @__PURE__ */ L("table", { role: "grid", children: [
32474
- /* @__PURE__ */ h("thead", { "aria-hidden": !0, children: /* @__PURE__ */ h("tr", { "aria-rowindex": 0, children: g.map((x, C) => /* @__PURE__ */ h(FH, { "aria-colindex": C, children: x }, x)) }) }),
32474
+ /* @__PURE__ */ h("thead", { "aria-hidden": !0, children: /* @__PURE__ */ h("tr", { "aria-rowindex": 0, children: m.map((x, C) => /* @__PURE__ */ h(FH, { "aria-colindex": C, children: x }, x)) }) }),
32475
32475
  /* @__PURE__ */ h("tbody", { children: [...new Array(6).keys()].map((x) => /* @__PURE__ */ h("tr", { "aria-rowindex": x + 2, children: w(x).map(
32476
32476
  (C, $) => C ? /* @__PURE__ */ h(
32477
32477
  HH,
@@ -32530,12 +32530,12 @@ const TH = N.input`
32530
32530
  day: "numeric",
32531
32531
  month: "long",
32532
32532
  year: "numeric"
32533
- }), m = y.useMemo(() => p.format(t.toDate(o)), [p, t, o]), g = tr(s, {
32533
+ }), g = y.useMemo(() => p.format(t.toDate(o)), [p, t, o]), m = tr(s, {
32534
32534
  day: "numeric",
32535
32535
  calendar: t.calendar.identifier
32536
32536
  }), b = y.useMemo(
32537
- () => g.formatToParts(t.toDate(o)).find(($) => $.type === "day").value,
32538
- [g, t, o]
32537
+ () => m.formatToParts(t.toDate(o)).find(($) => $.type === "day").value,
32538
+ [m, t, o]
32539
32539
  ), v = tr(s, {
32540
32540
  day: "2-digit",
32541
32541
  month: "2-digit",
@@ -32551,7 +32551,7 @@ const TH = N.input`
32551
32551
  "aria-selected": f,
32552
32552
  ...r,
32553
32553
  hasRadius: !0,
32554
- "aria-label": m,
32554
+ "aria-label": g,
32555
32555
  tabIndex: f ? 0 : -1,
32556
32556
  background: f ? "primary100" : "neutral0",
32557
32557
  cursor: "pointer",
@@ -32606,9 +32606,9 @@ const zH = fn(Yy)`
32606
32606
  return [...Array(24).keys()].flatMap(
32607
32607
  ($) => [...Array(C).keys()].map((S) => u.format(new Date(0, 0, 0, $, S * t)))
32608
32608
  );
32609
- }, [t, u]), m = (C) => {
32609
+ }, [t, u]), g = (C) => {
32610
32610
  (!C || qd(C)) && l(C);
32611
- }, g = (C) => {
32611
+ }, m = (C) => {
32612
32612
  const [$, S] = C.split(f);
32613
32613
  if (!$ && !S)
32614
32614
  return;
@@ -32616,11 +32616,11 @@ const zH = fn(Yy)`
32616
32616
  if (!(k > 23 || D > 59))
32617
32617
  return u.format(new Date(0, 0, 0, k, D));
32618
32618
  }, b = (C) => {
32619
- const $ = g(C.target.value);
32619
+ const $ = m(C.target.value);
32620
32620
  $ ? (l($), d($)) : l(c);
32621
32621
  }, v = (C) => {
32622
32622
  if (typeof C < "u") {
32623
- const $ = g(C);
32623
+ const $ = m(C);
32624
32624
  d($);
32625
32625
  } else
32626
32626
  d(C);
@@ -32645,7 +32645,7 @@ const zH = fn(Yy)`
32645
32645
  inputMode: "numeric",
32646
32646
  pattern: x,
32647
32647
  textValue: a,
32648
- onTextValueChange: m,
32648
+ onTextValueChange: g,
32649
32649
  onBlur: b,
32650
32650
  children: p.map((C) => /* @__PURE__ */ h(Xy, { value: C, children: C }, C))
32651
32651
  }
@@ -32668,7 +32668,7 @@ y.forwardRef(
32668
32668
  size: u,
32669
32669
  ...f
32670
32670
  }, p) => {
32671
- const m = y.useRef(null), [g, b] = En({
32671
+ const g = y.useRef(null), [m, b] = En({
32672
32672
  defaultProp: d ? Po(d, !1) : void 0,
32673
32673
  prop: c ? Po(c, !1) : c ?? void 0,
32674
32674
  onChange(q) {
@@ -32678,9 +32678,9 @@ y.forwardRef(
32678
32678
  hour: "2-digit",
32679
32679
  minute: "2-digit",
32680
32680
  hour12: !1
32681
- }), x = g ? w.format(g.toDate(Qi())) : "", C = (q) => {
32681
+ }), x = m ? w.format(m.toDate(Qi())) : "", C = (q) => {
32682
32682
  let z = q ? Po(q) : void 0;
32683
- if (!(z && g && z.compare(g) === 0)) {
32683
+ if (!(z && m && z.compare(m) === 0)) {
32684
32684
  if (x && z) {
32685
32685
  const [K, Q] = x.split(":");
32686
32686
  z = z.set({ hour: parseInt(K, 10), minute: parseInt(Q, 10) });
@@ -32690,7 +32690,7 @@ y.forwardRef(
32690
32690
  }, $ = (q) => {
32691
32691
  if (!q)
32692
32692
  return;
32693
- const [z, K] = q.split(":"), Q = g ? g.set({ hour: parseInt(z, 10), minute: parseInt(K, 10) }) : Po(/* @__PURE__ */ new Date()).set({
32693
+ const [z, K] = q.split(":"), Q = m ? m.set({ hour: parseInt(z, 10), minute: parseInt(K, 10) }) : Po(/* @__PURE__ */ new Date()).set({
32694
32694
  hour: parseInt(z, 10),
32695
32695
  minute: parseInt(K, 10)
32696
32696
  });
@@ -32698,16 +32698,16 @@ y.forwardRef(
32698
32698
  }, S = (q) => {
32699
32699
  b(void 0), s && s(q);
32700
32700
  }, k = () => {
32701
- const q = g ? g.set({ hour: 0, minute: 0 }) : Po(/* @__PURE__ */ new Date());
32701
+ const q = m ? m.set({ hour: 0, minute: 0 }) : Po(/* @__PURE__ */ new Date());
32702
32702
  b(q);
32703
- }, D = Ft(m, p), { error: E, id: O, labelNode: V } = Vt("DateTimePicker"), B = !!E || i;
32703
+ }, D = Ft(g, p), { error: E, id: O, labelNode: V } = Vt("DateTimePicker"), B = !!E || i;
32704
32704
  return /* @__PURE__ */ L(G, { "aria-labelledby": V ? `${O}-label` : void 0, role: "group", flex: "1", gap: 1, wrap: "wrap", children: [
32705
32705
  /* @__PURE__ */ h(ui, { flex: "1", children: /* @__PURE__ */ h(
32706
32706
  wH,
32707
32707
  {
32708
32708
  ...f,
32709
32709
  size: u,
32710
- value: g?.toDate("UTC"),
32710
+ value: m?.toDate("UTC"),
32711
32711
  onChange: C,
32712
32712
  required: a,
32713
32713
  onClear: s ? S : void 0,
@@ -32807,9 +32807,9 @@ y.forwardRef(
32807
32807
  onChange: o = () => null,
32808
32808
  ...s
32809
32809
  }, a) => {
32810
- const l = y.useRef(), c = y.useRef(), d = y.useRef(), { error: u, ...f } = Vt("JsonInput"), p = !!u || t, m = f.id ?? n, g = f.required || e;
32810
+ const l = y.useRef(), c = y.useRef(), d = y.useRef(), { error: u, ...f } = Vt("JsonInput"), p = !!u || t, g = f.id ?? n, m = f.required || e;
32811
32811
  let b;
32812
- u ? b = `${m}-error` : f.hint && (b = `${m}-hint`);
32812
+ u ? b = `${g}-error` : f.hint && (b = `${g}-hint`);
32813
32813
  const v = (E) => {
32814
32814
  const O = c.current?.doc;
32815
32815
  if (O) {
@@ -32873,8 +32873,8 @@ y.forwardRef(
32873
32873
  alignItems: "stretch",
32874
32874
  fontSize: 2,
32875
32875
  hasRadius: !0,
32876
- "aria-required": g,
32877
- id: m,
32876
+ "aria-required": m,
32877
+ id: g,
32878
32878
  "aria-describedby": b,
32879
32879
  ...s
32880
32880
  }
@@ -33062,27 +33062,27 @@ const YH = Wb, XH = y.forwardRef((t, e) => /* @__PURE__ */ h(qb, { ...t, asChild
33062
33062
  const k = d.current.parse(S ?? "");
33063
33063
  n(isNaN(k) ? void 0 : k);
33064
33064
  }
33065
- }), m = (S) => {
33065
+ }), g = (S) => {
33066
33066
  p(String(S));
33067
- }, g = ({ target: { value: S } }) => {
33068
- d.current.isValidPartialNumber(S) && m(S);
33067
+ }, m = ({ target: { value: S } }) => {
33068
+ d.current.isValidPartialNumber(S) && g(S);
33069
33069
  }, v = ((S) => {
33070
33070
  const k = S.toString();
33071
33071
  return k.includes(".") ? k.split(".")[1].length : 0;
33072
33072
  })(i), w = () => {
33073
33073
  if (!f) {
33074
- m(i);
33074
+ g(i);
33075
33075
  return;
33076
33076
  }
33077
33077
  const S = d.current.parse(f), k = isNaN(S) ? i : S + i, D = parseFloat(k.toFixed(v));
33078
- m(u.current.format(D));
33078
+ g(u.current.format(D));
33079
33079
  }, x = () => {
33080
33080
  if (!f) {
33081
- m(-i);
33081
+ g(-i);
33082
33082
  return;
33083
33083
  }
33084
33084
  const S = d.current.parse(f), k = isNaN(S) ? -i : S - i, D = parseFloat(k.toFixed(v));
33085
- m(u.current.format(D));
33085
+ g(u.current.format(D));
33086
33086
  };
33087
33087
  return /* @__PURE__ */ h(
33088
33088
  _c,
@@ -33092,7 +33092,7 @@ const YH = Wb, XH = y.forwardRef((t, e) => /* @__PURE__ */ h(qb, { ...t, asChild
33092
33092
  disabled: o,
33093
33093
  type: "text",
33094
33094
  inputMode: "decimal",
33095
- onChange: g,
33095
+ onChange: m,
33096
33096
  onKeyDown: (S) => {
33097
33097
  if (!o)
33098
33098
  switch (S.key) {
@@ -33109,7 +33109,7 @@ const YH = Wb, XH = y.forwardRef((t, e) => /* @__PURE__ */ h(qb, { ...t, asChild
33109
33109
  onBlur: () => {
33110
33110
  if (f) {
33111
33111
  const S = d.current.parse(f), k = isNaN(S) ? "" : u.current.format(S);
33112
- m(k);
33112
+ g(k);
33113
33113
  }
33114
33114
  },
33115
33115
  value: f,
@@ -33401,13 +33401,13 @@ const bP = N(vF)`
33401
33401
  }
33402
33402
  }), yP = () => y.useContext(m3), xP = y.forwardRef(
33403
33403
  ({ colCount: t, rowCount: e, jumpStep: n = 3, initialCol: r = 0, initialRow: i = 0, ...o }, s) => {
33404
- const a = y.useRef(null), l = y.useRef(!1), c = Ft(a, s), [d, u] = y.useState(i), [f, p] = y.useState(r), m = y.useCallback(({ colIndex: v, rowIndex: w }) => {
33404
+ const a = y.useRef(null), l = y.useRef(!1), c = Ft(a, s), [d, u] = y.useState(i), [f, p] = y.useState(r), g = y.useCallback(({ colIndex: v, rowIndex: w }) => {
33405
33405
  p(v), u(w);
33406
33406
  }, []);
33407
33407
  y.useEffect(() => {
33408
33408
  l.current && wP(a.current), l.current || (l.current = !0);
33409
33409
  }, [f, d]);
33410
- const g = (v) => {
33410
+ const m = (v) => {
33411
33411
  switch (v.key) {
33412
33412
  case wt.RIGHT: {
33413
33413
  v.preventDefault(), p((w) => w < t - 1 ? w + 1 : w);
@@ -33442,7 +33442,7 @@ const bP = N(vF)`
33442
33442
  break;
33443
33443
  }
33444
33444
  }
33445
- }, b = y.useMemo(() => ({ rowIndex: d, colIndex: f, setTableValues: m }), [f, d, m]);
33445
+ }, b = y.useMemo(() => ({ rowIndex: d, colIndex: f, setTableValues: g }), [f, d, g]);
33446
33446
  return /* @__PURE__ */ h(m3.Provider, { value: b, children: /* @__PURE__ */ h(
33447
33447
  "table",
33448
33448
  {
@@ -33450,7 +33450,7 @@ const bP = N(vF)`
33450
33450
  ref: c,
33451
33451
  "aria-rowcount": e,
33452
33452
  "aria-colcount": t,
33453
- onKeyDown: g,
33453
+ onKeyDown: m,
33454
33454
  ...o
33455
33455
  }
33456
33456
  ) });
@@ -33461,49 +33461,49 @@ const bP = N(vF)`
33461
33461
  )
33462
33462
  ].filter((i) => !i.hasAttribute("disabled")), Ud = (t) => t.filter((e) => e.tagName === "INPUT" ? e.type !== "checkbox" && e.type !== "radio" : !1), b3 = y.forwardRef(
33463
33463
  ({ coords: t = { col: 0, row: 0 }, tag: e = "td", ...n }, r) => {
33464
- const i = y.useRef(null), o = Ft(r, i), { rowIndex: s, colIndex: a, setTableValues: l } = yP(), [c, d] = y.useState(!1), u = (m) => {
33465
- const g = zo(i.current);
33466
- if (g.length === 0 || g.length === 1 && Ud(g).length === 0)
33464
+ const i = y.useRef(null), o = Ft(r, i), { rowIndex: s, colIndex: a, setTableValues: l } = yP(), [c, d] = y.useState(!1), u = (g) => {
33465
+ const m = zo(i.current);
33466
+ if (m.length === 0 || m.length === 1 && Ud(m).length === 0)
33467
33467
  return;
33468
- if (g.length > 1 && !g.find((v) => v.tagName !== "BUTTON")) {
33469
- m.preventDefault();
33470
- const v = g.findIndex((w) => w === document.activeElement);
33471
- if (m.key === wt.RIGHT) {
33472
- const w = g[v + 1];
33473
- w && (m.stopPropagation(), w.focus());
33474
- } else if (m.key === wt.LEFT) {
33475
- const w = g[v - 1];
33476
- w && (m.stopPropagation(), w.focus());
33468
+ if (m.length > 1 && !m.find((v) => v.tagName !== "BUTTON")) {
33469
+ g.preventDefault();
33470
+ const v = m.findIndex((w) => w === document.activeElement);
33471
+ if (g.key === wt.RIGHT) {
33472
+ const w = m[v + 1];
33473
+ w && (g.stopPropagation(), w.focus());
33474
+ } else if (g.key === wt.LEFT) {
33475
+ const w = m[v - 1];
33476
+ w && (g.stopPropagation(), w.focus());
33477
33477
  }
33478
33478
  return;
33479
33479
  }
33480
- const b = m.key === wt.ENTER;
33480
+ const b = g.key === wt.ENTER;
33481
33481
  if (b && !c)
33482
33482
  d(!0);
33483
- else if ((m.key === wt.ESCAPE || b) && c) {
33483
+ else if ((g.key === wt.ESCAPE || b) && c) {
33484
33484
  if (b && document.activeElement?.tagName === "A")
33485
33485
  return;
33486
33486
  d(!1), i.current.focus();
33487
- } else c && m.stopPropagation();
33487
+ } else c && g.stopPropagation();
33488
33488
  }, f = s === t.row - 1 && a === t.col - 1;
33489
33489
  hi(() => {
33490
- const m = zo(i.current);
33491
- m.length === 0 || m.length === 1 && Ud(m).length !== 0 || m.length > 1 && m.find((g) => g.tagName !== "BUTTON") ? (i.current.setAttribute("tabIndex", !c && f ? "0" : "-1"), m.forEach((g, b) => {
33492
- g.setAttribute("tabIndex", c ? "0" : "-1"), c && b === 0 && g.focus();
33493
- })) : m.forEach((g) => {
33494
- g.setAttribute("tabIndex", f ? "0" : "-1");
33490
+ const g = zo(i.current);
33491
+ g.length === 0 || g.length === 1 && Ud(g).length !== 0 || g.length > 1 && g.find((m) => m.tagName !== "BUTTON") ? (i.current.setAttribute("tabIndex", !c && f ? "0" : "-1"), g.forEach((m, b) => {
33492
+ m.setAttribute("tabIndex", c ? "0" : "-1"), c && b === 0 && m.focus();
33493
+ })) : g.forEach((m) => {
33494
+ m.setAttribute("tabIndex", f ? "0" : "-1");
33495
33495
  });
33496
33496
  }, [c, f]);
33497
33497
  const p = y.useCallback(() => {
33498
- const m = zo(i.current);
33499
- m.length >= 1 && (Ud(m).length !== 0 || !m.find((g) => g.tagName !== "BUTTON")) && d(!0), l({ rowIndex: t.row - 1, colIndex: t.col - 1 });
33498
+ const g = zo(i.current);
33499
+ g.length >= 1 && (Ud(g).length !== 0 || !g.find((m) => m.tagName !== "BUTTON")) && d(!0), l({ rowIndex: t.row - 1, colIndex: t.col - 1 });
33500
33500
  }, [t, l]);
33501
33501
  return hi(() => {
33502
- const m = i.current;
33503
- return zo(m).forEach((b) => {
33502
+ const g = i.current;
33503
+ return zo(g).forEach((b) => {
33504
33504
  b.addEventListener("focus", p);
33505
33505
  }), () => {
33506
- zo(m).forEach((v) => {
33506
+ zo(g).forEach((v) => {
33507
33507
  v.removeEventListener("focus", p);
33508
33508
  });
33509
33509
  };
@@ -33653,15 +33653,15 @@ const bP = N(vF)`
33653
33653
  placeholder: u,
33654
33654
  required: f,
33655
33655
  size: p,
33656
- startIcon: m,
33657
- value: g,
33656
+ startIcon: g,
33657
+ value: m,
33658
33658
  withTags: b,
33659
33659
  ...v
33660
33660
  }, w) => {
33661
33661
  const x = y.useRef(null), [C, $] = y.useState(), [S, k] = y.useState(!1), D = (he) => {
33662
33662
  a ? a(he) : $(he);
33663
33663
  }, E = (he) => () => {
33664
- const Ce = Array.isArray(g) ? g.filter((Se) => Se !== he) : (C ?? []).filter((Se) => Se !== he);
33664
+ const Ce = Array.isArray(m) ? m.filter((Se) => Se !== he) : (C ?? []).filter((Se) => Se !== he);
33665
33665
  a ? a(Ce) : $(Ce);
33666
33666
  }, O = (he) => {
33667
33667
  k(he);
@@ -33676,7 +33676,7 @@ const bP = N(vF)`
33676
33676
  */
33677
33677
  skipWhen: !S
33678
33678
  });
33679
- const z = typeof g < "u" && g !== null ? g : C, K = (he) => he && typeof he == "object" && he.value ? /* @__PURE__ */ h(
33679
+ const z = typeof m < "u" && m !== null ? m : C, K = (he) => he && typeof he == "object" && he.value ? /* @__PURE__ */ h(
33680
33680
  w3,
33681
33681
  {
33682
33682
  tabIndex: -1,
@@ -33707,7 +33707,7 @@ const bP = N(vF)`
33707
33707
  name: ne,
33708
33708
  "aria-label": v["aria-label"],
33709
33709
  "aria-describedby": ve ?? v["aria-describedby"],
33710
- startIcon: m,
33710
+ startIcon: g,
33711
33711
  hasError: W,
33712
33712
  disabled: r,
33713
33713
  clearLabel: e,
@@ -34230,9 +34230,9 @@ const iz = N(ie)`
34230
34230
  }, d) => {
34231
34231
  const [u = !1, f] = En({
34232
34232
  prop: a
34233
- }), p = u !== null && !u, { error: m, ...g } = Vt("Toggle"), b = !!m || r, v = g.id ?? o, w = g.name ?? s, x = g.required || i;
34233
+ }), p = u !== null && !u, { error: g, ...m } = Vt("Toggle"), b = !!g || r, v = m.id ?? o, w = m.name ?? s, x = m.required || i;
34234
34234
  let C;
34235
- return m ? C = `${v}-error` : g.hint && (C = `${v}-hint`), /* @__PURE__ */ L(
34235
+ return g ? C = `${v}-error` : m.hint && (C = `${v}-hint`), /* @__PURE__ */ L(
34236
34236
  sz,
34237
34237
  {
34238
34238
  position: "relative",
@@ -35013,15 +35013,15 @@ const Hz = I.object({
35013
35013
  ), s = ue(() => {
35014
35014
  o(!1);
35015
35015
  }, [o]), a = ue(
35016
- (c, d, u = !0, f = "", p = !0, m = "0", g = 0) => {
35016
+ (c, d, u = !0, f = "", p = !0, g = "0", m = 0) => {
35017
35017
  t && (c.preventDefault(), c.stopPropagation(), o(!0, {
35018
35018
  viewParentId: d,
35019
35019
  isMenuAllowedLevel: u,
35020
35020
  levelPath: f,
35021
35021
  parentAttachedToMenu: p,
35022
- structureId: m,
35022
+ structureId: g,
35023
35023
  viewId: void 0,
35024
- order: g + 1
35024
+ order: m + 1
35025
35025
  }));
35026
35026
  },
35027
35027
  [o, t]
@@ -35306,29 +35306,29 @@ const Hz = I.object({
35306
35306
  alreadyUsedNames: n = [],
35307
35307
  isLoading: r
35308
35308
  }) => {
35309
- const [i, o] = Z({}), [s, a] = Z(), { formatMessage: l } = me(), { name: c, visible: d } = i, u = (m, g, b) => {
35309
+ const [i, o] = Z({}), [s, a] = Z(), { formatMessage: l } = me(), { name: c, visible: d } = i, u = (g, m, b) => {
35310
35310
  if (b) {
35311
- let v = m, w = g;
35312
- if (Ts(m)) {
35313
- const { name: x, value: C } = m.target;
35311
+ let v = g, w = m;
35312
+ if (Ts(g)) {
35313
+ const { name: x, value: C } = g.target;
35314
35314
  v = x, w = Yi(w) ? C : w;
35315
35315
  }
35316
- return Gl(v) && f(v, w), b(m, w);
35316
+ return Gl(v) && f(v, w), b(g, w);
35317
35317
  }
35318
- }, f = (m, g) => {
35318
+ }, f = (g, m) => {
35319
35319
  o(
35320
35320
  Yl(
35321
35321
  {
35322
35322
  ...i
35323
35323
  },
35324
- m,
35325
- g
35324
+ g,
35325
+ m
35326
35326
  )
35327
35327
  );
35328
- }, p = (m) => {
35329
- const g = vt(s, m);
35330
- if (g)
35331
- return g;
35328
+ }, p = (g) => {
35329
+ const m = vt(s, g);
35330
+ if (m)
35331
+ return m;
35332
35332
  };
35333
35333
  return J(() => {
35334
35334
  t && (t.name ? o({
@@ -35343,20 +35343,20 @@ const Hz = I.object({
35343
35343
  })));
35344
35344
  }, []), J(() => {
35345
35345
  if (`${c}-${d}` != `${t.name}-${t.visible}`) {
35346
- const { error: m } = dW({ alreadyUsedNames: n }).safeParse(i);
35346
+ const { error: g } = dW({ alreadyUsedNames: n }).safeParse(i);
35347
35347
  e({
35348
35348
  ...t,
35349
35349
  name: c,
35350
35350
  visible: d,
35351
- disabled: !Tt(m?.issues)
35351
+ disabled: !Tt(g?.issues)
35352
35352
  }), a(
35353
- m ? m.issues.reduce((g, b) => ({
35354
- ...g,
35353
+ g ? g.issues.reduce((m, b) => ({
35354
+ ...m,
35355
35355
  [b.path.join(".")]: b.message
35356
35356
  }), {}) : void 0
35357
35357
  );
35358
35358
  }
35359
- }, [c, d]), /* @__PURE__ */ h(Kl, { width: "auto", height: "auto", method: "POST", initialValues: i, children: ({ values: m, onChange: g }) => /* @__PURE__ */ L(se.Root, { gap: 5, children: [
35359
+ }, [c, d]), /* @__PURE__ */ h(Kl, { width: "auto", height: "auto", method: "POST", initialValues: i, children: ({ values: g, onChange: m }) => /* @__PURE__ */ L(se.Root, { gap: 5, children: [
35360
35360
  /* @__PURE__ */ h(se.Item, { col: 6, children: /* @__PURE__ */ h(
35361
35361
  Le,
35362
35362
  {
@@ -35371,8 +35371,8 @@ const Hz = I.object({
35371
35371
  placeholder: l(
35372
35372
  T("popup.navigation.form.name.placeholder", "Navigations's name")
35373
35373
  ),
35374
- onChange: (b, v) => u(b, v, g),
35375
- value: m.name,
35374
+ onChange: (b, v) => u(b, v, m),
35375
+ value: g.name,
35376
35376
  disabled: r
35377
35377
  }
35378
35378
  )
@@ -35388,8 +35388,8 @@ const Hz = I.object({
35388
35388
  Dn,
35389
35389
  {
35390
35390
  name: "visible",
35391
- checked: m.visible,
35392
- onChange: (b) => u(b, !m.visible, g),
35391
+ checked: g.visible,
35392
+ onChange: (b) => u(b, !g.visible, m),
35393
35393
  onLabel: l(T("popup.navigation.form.visible.toggle.visible")),
35394
35394
  offLabel: l(T("popup.navigation.form.visible.toggle.hidden")),
35395
35395
  disabled: r,
@@ -35477,7 +35477,7 @@ const Hz = I.object({
35477
35477
  view: "CACHE_PURGE",
35478
35478
  navigations: b
35479
35479
  });
35480
- }, p = ue(u(e), [u]), m = ue(f(e), [f]), g = (b) => [b].concat(
35480
+ }, p = ue(u(e), [u]), g = ue(f(e), [f]), m = (b) => [b].concat(
35481
35481
  t.filter(
35482
35482
  (v) => v.documentId === b.documentId && v.locale !== b.locale
35483
35483
  )
@@ -35488,7 +35488,7 @@ const Hz = I.object({
35488
35488
  count: e.length
35489
35489
  }) }),
35490
35490
  /* @__PURE__ */ h(Ye, { onClick: p, variant: "tertiary", children: o(T("popup.navigation.manage.button.delete")) }),
35491
- r.data?.isCacheEnabled ? /* @__PURE__ */ h(Ye, { onClick: m, variant: "tertiary", children: o(T("popup.navigation.manage.button.purge")) }) : null
35491
+ r.data?.isCacheEnabled ? /* @__PURE__ */ h(Ye, { onClick: g, variant: "tertiary", children: o(T("popup.navigation.manage.button.purge")) }) : null
35492
35492
  ] }) : null }) }),
35493
35493
  /* @__PURE__ */ L(C3, { rowCount: t.length, colCount: 6, children: [
35494
35494
  /* @__PURE__ */ h(S3, { children: /* @__PURE__ */ L(ql, { children: [
@@ -35520,7 +35520,7 @@ const Hz = I.object({
35520
35520
  ) }),
35521
35521
  /* @__PURE__ */ h(nn, { children: /* @__PURE__ */ h(X, { textColor: "neutral800", children: b.documentId }) }),
35522
35522
  /* @__PURE__ */ h(nn, { children: /* @__PURE__ */ h(X, { textColor: "neutral800", children: b.name }) }),
35523
- /* @__PURE__ */ h(nn, { children: /* @__PURE__ */ h(X, { textColor: "neutral800", children: g(b).map(nl("locale")).join(", ") }) }),
35523
+ /* @__PURE__ */ h(nn, { children: /* @__PURE__ */ h(X, { textColor: "neutral800", children: m(b).map(nl("locale")).join(", ") }) }),
35524
35524
  /* @__PURE__ */ h(nn, { children: /* @__PURE__ */ h(X, { textColor: "neutral800", children: b.visible ? o(T("popup.navigation.manage.navigation.visible")) : o(T("popup.navigation.manage.navigation.hidden")) }) }),
35525
35525
  /* @__PURE__ */ h(nn, { children: /* @__PURE__ */ L(G, { width: "100%", direction: "row", alignItems: "center", justifyContent: "flex-end", children: [
35526
35526
  /* @__PURE__ */ h(ie, { paddingLeft: 1, children: /* @__PURE__ */ h(
@@ -35703,10 +35703,10 @@ const Hz = I.object({
35703
35703
  }
35704
35704
  );
35705
35705
  }, TW = (t) => t.map(nl("name")).join(", "), MW = ({ initialState: t, isOpened: e, onClose: n }) => {
35706
- const { formatMessage: r } = me(), [i, o] = Z(t), { toggleNotification: s } = mo(), a = Yz(), l = Xz(), c = Jz(), d = E3({}), u = D3(), f = O0(), p = D0(), m = Pe(
35706
+ const { formatMessage: r } = me(), [i, o] = Z(t), { toggleNotification: s } = mo(), a = Yz(), l = Xz(), c = Jz(), d = E3({}), u = D3(), f = O0(), p = D0(), g = Pe(
35707
35707
  () => Ms(f.data ?? [], "id"),
35708
35708
  [f.data]
35709
- ), g = L3([
35709
+ ), m = L3([
35710
35710
  l,
35711
35711
  f,
35712
35712
  c,
@@ -35787,18 +35787,18 @@ const Hz = I.object({
35787
35787
  J(() => {
35788
35788
  (i.view === "INITIAL" || i.view === "LIST") && o({
35789
35789
  view: "LIST",
35790
- navigations: m,
35790
+ navigations: g,
35791
35791
  selected: []
35792
35792
  });
35793
- }, [i.view, m]);
35794
- const w = IW(i, r, !!g), x = RW(i, o, !!g), C = EW({
35793
+ }, [i.view, g]);
35794
+ const w = IW(i, r, !!m), x = RW(i, o, !!m), C = EW({
35795
35795
  state: i,
35796
35796
  setState: o,
35797
35797
  onClose: n,
35798
35798
  onSubmit: v,
35799
35799
  onReset: b,
35800
- navigations: m,
35801
- isLoading: !!g
35800
+ navigations: g,
35801
+ isLoading: !!m
35802
35802
  });
35803
35803
  return /* @__PURE__ */ h(
35804
35804
  lt.Root,
@@ -35907,7 +35907,7 @@ const Hz = I.object({
35907
35907
  locale: d,
35908
35908
  currentLocale: u
35909
35909
  }) => {
35910
- const { formatMessage: f } = me(), { openNavigationManagerModal: p, navigationManagerModal: m } = DW(), g = !!d.restLocale, { canUpdate: b } = c, v = _t();
35910
+ const { formatMessage: f } = me(), { openNavigationManagerModal: p, navigationManagerModal: g } = DW(), m = !!d.restLocale, { canUpdate: b } = c, v = _t();
35911
35911
  return /* @__PURE__ */ h(mt, { children: /* @__PURE__ */ h(
35912
35912
  Bi.Header,
35913
35913
  {
@@ -35920,7 +35920,7 @@ const Hz = I.object({
35920
35920
  gap: 4,
35921
35921
  style: v.data?.isCacheEnabled ? { display: "flex" } : void 0,
35922
35922
  children: [
35923
- g ? null : /* @__PURE__ */ h(se.Item, { col: 2 }),
35923
+ m ? null : /* @__PURE__ */ h(se.Item, { col: 2 }),
35924
35924
  b && /* @__PURE__ */ h(se.Item, { col: 3, children: /* @__PURE__ */ h(
35925
35925
  Ye,
35926
35926
  {
@@ -35951,7 +35951,7 @@ const Hz = I.object({
35951
35951
  children: e.filter(({ locale: w }) => w === u).map(({ documentId: w, name: x }) => /* @__PURE__ */ h(Fn, { value: w, children: x }, w))
35952
35952
  }
35953
35953
  ) }) }),
35954
- g ? /* @__PURE__ */ h(se.Item, { col: 2, children: /* @__PURE__ */ h(
35954
+ m ? /* @__PURE__ */ h(se.Item, { col: 2, children: /* @__PURE__ */ h(
35955
35955
  Bn,
35956
35956
  {
35957
35957
  type: "select",
@@ -35992,7 +35992,7 @@ const Hz = I.object({
35992
35992
  ]
35993
35993
  }
35994
35994
  ) }),
35995
- b && m
35995
+ b && g
35996
35996
  ] }),
35997
35997
  secondaryAction: /* @__PURE__ */ h(w3, { icon: /* @__PURE__ */ h(eb, { "aria-hidden": !0 }), children: t ? f(T("header.meta"), {
35998
35998
  id: t?.documentId,
@@ -36255,8 +36255,8 @@ const Hz = I.object({
36255
36255
  onItemSubmit: u,
36256
36256
  displayChildren: f,
36257
36257
  permissions: p,
36258
- structureId: m,
36259
- viewParentId: g,
36258
+ structureId: g,
36259
+ viewParentId: m,
36260
36260
  locale: b
36261
36261
  }) => {
36262
36262
  const v = $r(t, !0), { formatMessage: w } = me(), x = _t(), C = v.type === "EXTERNAL", $ = v.type === "WRAPPER", S = _0(x.data?.allowedLevels) ? n < x.data.allowedLevels - 1 : !0, k = _0(x.data?.allowedLevels) ? n < x.data.allowedLevels : !0, D = !Tt(t.items) && !f, E = C ? void 0 : `${r === "/" ? "" : r}/${v.path === "/" ? "" : v.path}`.replace(
@@ -36311,7 +36311,7 @@ const Hz = I.object({
36311
36311
  S,
36312
36312
  E,
36313
36313
  v.menuAttached,
36314
- `${m}.${v.items?.length ?? 0}`,
36314
+ `${g}.${v.items?.length ?? 0}`,
36315
36315
  Ve
36316
36316
  );
36317
36317
  },
@@ -36320,7 +36320,7 @@ const Hz = I.object({
36320
36320
  S,
36321
36321
  E,
36322
36322
  v.menuAttached,
36323
- m,
36323
+ g,
36324
36324
  v.items,
36325
36325
  F
36326
36326
  ]
@@ -36369,7 +36369,7 @@ const Hz = I.object({
36369
36369
  title: t.title ?? "",
36370
36370
  path: C ? v.externalPath : E,
36371
36371
  icon: C ? /* @__PURE__ */ h(U7, {}) : $ ? /* @__PURE__ */ h(T7, {}) : /* @__PURE__ */ h(KS, {}),
36372
- onItemRemove: () => s({ ...t, viewParentId: g }),
36372
+ onItemRemove: () => s({ ...t, viewParentId: m }),
36373
36373
  onItemEdit: () => {
36374
36374
  const { __type: ge, documentId: Ve } = t.related ?? {};
36375
36375
  t.type !== "EXTERNAL" && t.type !== "INTERNAL" && t.type !== "WRAPPER" || l({
@@ -36385,7 +36385,7 @@ const Hz = I.object({
36385
36385
  items: t.items ?? [],
36386
36386
  autoSync: t.autoSync ?? !0,
36387
36387
  externalPath: void 0,
36388
- viewParentId: g,
36388
+ viewParentId: m,
36389
36389
  audience: t.audience?.map(({ documentId: Oe }) => Oe) ?? []
36390
36390
  } : t.type === "EXTERNAL" ? {
36391
36391
  ...t,
@@ -36399,7 +36399,7 @@ const Hz = I.object({
36399
36399
  items: t.items ?? [],
36400
36400
  autoSync: t.autoSync ?? !0,
36401
36401
  externalPath: t.externalPath ?? "",
36402
- viewParentId: g,
36402
+ viewParentId: m,
36403
36403
  audience: t.audience?.map(({ documentId: Oe }) => Oe) ?? []
36404
36404
  } : {
36405
36405
  ...t,
@@ -36410,14 +36410,14 @@ const Hz = I.object({
36410
36410
  additionalFields: t.additionalFields ?? {},
36411
36411
  items: t.items ?? [],
36412
36412
  autoSync: t.autoSync ?? !0,
36413
- viewParentId: g,
36413
+ viewParentId: m,
36414
36414
  audience: t.audience?.map(({ documentId: Oe }) => Oe) ?? []
36415
36415
  },
36416
36416
  levelPath: r,
36417
36417
  isParentAttachedToMenu: i
36418
36418
  });
36419
36419
  },
36420
- onItemRestore: () => a({ ...t, viewParentId: g }),
36420
+ onItemRestore: () => a({ ...t, viewParentId: m }),
36421
36421
  dragRef: ce.dragRef,
36422
36422
  removed: v.removed,
36423
36423
  canUpdate: F,
@@ -36437,7 +36437,7 @@ const Hz = I.object({
36437
36437
  !Tt(t.items) && /* @__PURE__ */ h(
36438
36438
  FW,
36439
36439
  {
36440
- toggle: () => d({ ...t, viewParentId: g }),
36440
+ toggle: () => d({ ...t, viewParentId: m }),
36441
36441
  collapsed: v.collapsed,
36442
36442
  itemsCount: t.items?.length ?? 0
36443
36443
  }
@@ -36515,7 +36515,7 @@ const Hz = I.object({
36515
36515
  level: n + 1,
36516
36516
  levelPath: E,
36517
36517
  permissions: p,
36518
- structurePrefix: m,
36518
+ structurePrefix: g,
36519
36519
  viewParentId: v.viewId,
36520
36520
  locale: b
36521
36521
  }
@@ -36572,7 +36572,7 @@ const Hz = I.object({
36572
36572
  !0
36573
36573
  )
36574
36574
  );
36575
- }, m = (b) => {
36575
+ }, g = (b) => {
36576
36576
  s(
36577
36577
  $r(
36578
36578
  {
@@ -36582,7 +36582,7 @@ const Hz = I.object({
36582
36582
  !0
36583
36583
  )
36584
36584
  );
36585
- }, g = (b) => {
36585
+ }, m = (b) => {
36586
36586
  s(
36587
36587
  $r(
36588
36588
  {
@@ -36606,10 +36606,10 @@ const Hz = I.object({
36606
36606
  onItemLevelAdd: o,
36607
36607
  onItemEdit: i,
36608
36608
  onItemSubmit: s,
36609
- onItemRestore: m,
36609
+ onItemRestore: g,
36610
36610
  onItemRemove: p,
36611
36611
  onItemReOrder: f,
36612
- onItemToggleCollapse: g,
36612
+ onItemToggleCollapse: m,
36613
36613
  displayChildren: a,
36614
36614
  permissions: l,
36615
36615
  structureId: c ? `${c}.${v}` : v.toString(),
@@ -36780,8 +36780,8 @@ const Hz = I.object({
36780
36780
  if (u) {
36781
36781
  let f = c, p = d;
36782
36782
  if (Ts(c)) {
36783
- const { name: m, value: g } = c.target;
36784
- f = m, p = Yi(p) ? g : p;
36783
+ const { name: g, value: m } = c.target;
36784
+ f = g, p = Yi(p) ? m : p;
36785
36785
  }
36786
36786
  return Gl(f) && s(f, p), u(c, p);
36787
36787
  }
@@ -37012,7 +37012,7 @@ const Hz = I.object({
37012
37012
  {
37013
37013
  disabled: !c,
37014
37014
  name: d,
37015
- onChange: (p, m) => a(p, m, s),
37015
+ onChange: (p, g) => a(p, g, s),
37016
37016
  value: o.type === "EXTERNAL" ? o.externalPath : o.path,
37017
37017
  width: "100%"
37018
37018
  }
@@ -37178,21 +37178,21 @@ const Hz = I.object({
37178
37178
  setFormValuesItems: i
37179
37179
  }) => {
37180
37180
  const { formatMessage: o } = me(), [s, a] = Z(), l = Qz(), c = O0(), { canUpdate: d, isLoading: u } = Un(), f = Pe(
37181
- () => t.map((m, g) => ({
37182
- key: `${m}-${g}`,
37183
- value: m,
37184
- label: m
37181
+ () => t.map((g, m) => ({
37182
+ key: `${g}-${m}`,
37183
+ value: g,
37184
+ label: g
37185
37185
  })),
37186
37186
  [t]
37187
37187
  ), p = ue(
37188
- async (m) => {
37189
- m.preventDefault(), m.stopPropagation();
37190
- const g = c.data?.find(({ locale: b }) => b === s);
37191
- g && (r(!0), l.mutate(
37188
+ async (g) => {
37189
+ g.preventDefault(), g.stopPropagation();
37190
+ const m = c.data?.find(({ locale: b }) => b === s);
37191
+ m && (r(!0), l.mutate(
37192
37192
  {
37193
37193
  target: n.documentId,
37194
37194
  structureId: e.structureId,
37195
- source: g.documentId
37195
+ source: m.documentId
37196
37196
  },
37197
37197
  {
37198
37198
  onSuccess(b) {
@@ -37235,7 +37235,7 @@ const Hz = I.object({
37235
37235
  placeholder: o(
37236
37236
  T("popup.item.form.i18n.locale.placeholder", "locale")
37237
37237
  ),
37238
- children: f.map(({ key: m, label: g, value: b }) => /* @__PURE__ */ h(Fn, { value: b, children: g }, m))
37238
+ children: f.map(({ key: g, label: m, value: b }) => /* @__PURE__ */ h(Fn, { value: b, children: m }, g))
37239
37239
  }
37240
37240
  )
37241
37241
  }
@@ -37292,9 +37292,9 @@ const Hz = I.object({
37292
37292
  renderError: d,
37293
37293
  setFormValueItem: u,
37294
37294
  values: f
37295
- } = Un(), p = e.type === "INTERNAL" ? e.relatedType : void 0, m = Pe(
37295
+ } = Un(), p = Pe(
37296
37296
  () => Ms(
37297
- a.data?.contentTypes?.filter((g) => g.isSingle ? !!(n && [n, p].includes(g.uid)) : !0).map((g) => ({
37297
+ a.data?.contentTypes.map((g) => ({
37298
37298
  key: g.uid,
37299
37299
  value: g.uid,
37300
37300
  label: g.contentTypeName
@@ -37307,11 +37307,11 @@ const Hz = I.object({
37307
37307
  if (!n)
37308
37308
  return;
37309
37309
  const g = a.data?.contentTypes.find(
37310
- (b) => b.uid === n
37310
+ (m) => m.uid === n
37311
37311
  );
37312
37312
  if (g && (o(g.isSingle), g.isSingle && t?.length)) {
37313
- const b = t[0];
37314
- b && u("related", b.documentId);
37313
+ const m = t[0];
37314
+ m && u("related", m.documentId);
37315
37315
  }
37316
37316
  }, [n, a.data, t]), J(() => {
37317
37317
  n === "" && u("relatedType", a.data?.defaultContentType);
@@ -37321,7 +37321,7 @@ const Hz = I.object({
37321
37321
  name: "relatedType",
37322
37322
  label: s(T("popup.item.form.relatedType.label", "Related Type")),
37323
37323
  error: d("relatedType"),
37324
- hint: !c && Tt(m) ? s(
37324
+ hint: !c && Tt(p) ? s(
37325
37325
  T("popup.item.form.relatedType.empty", "There are no more content types")
37326
37326
  ) : void 0,
37327
37327
  children: /* @__PURE__ */ h(
@@ -37339,7 +37339,7 @@ const Hz = I.object({
37339
37339
  title: f.autoSync ? "" : f.title
37340
37340
  }),
37341
37341
  value: n,
37342
- options: m,
37342
+ options: p,
37343
37343
  disabled: !a.data?.contentTypes.length || !l
37344
37344
  }
37345
37345
  )
@@ -37370,25 +37370,25 @@ const Hz = I.object({
37370
37370
  setFormValuesItems: i
37371
37371
  }) => {
37372
37372
  const { formatMessage: o } = me(), s = _t(), { canUpdate: a, isLoading: l, handleChange: c, onChange: d, renderError: u } = Un(), f = Ms(
37373
- e?.map((m) => {
37373
+ e?.map((g) => {
37374
37374
  const b = t(
37375
37375
  qc(
37376
37376
  {
37377
- ...m,
37377
+ ...g,
37378
37378
  __collectionUid: r.relatedType
37379
37379
  },
37380
37380
  s.data
37381
37381
  ),
37382
- m,
37382
+ g,
37383
37383
  !1
37384
- ) + (m?.id ? ` (id: ${m.id})` : "");
37384
+ ) + (g?.id ? ` (id: ${g.id})` : "");
37385
37385
  return {
37386
- key: m?.documentId?.toString(),
37387
- value: m?.documentId?.toString(),
37386
+ key: g?.documentId?.toString(),
37387
+ value: g?.documentId?.toString(),
37388
37388
  label: b
37389
37389
  };
37390
37390
  }) ?? [],
37391
- (m) => m.label
37391
+ (g) => g.label
37392
37392
  ), p = Tt(f);
37393
37393
  return $q(r, e, i), !r.relatedType || n ? null : /* @__PURE__ */ h(se.Item, { alignItems: "flex-start", col: 6, children: /* @__PURE__ */ h(
37394
37394
  Le,
@@ -37405,7 +37405,7 @@ const Hz = I.object({
37405
37405
  {
37406
37406
  name: "related",
37407
37407
  onClear: () => c("related", void 0, d),
37408
- onChange: (m) => c("related", m, d),
37408
+ onChange: (g) => c("related", g, d),
37409
37409
  value: r.related,
37410
37410
  options: f,
37411
37411
  disabled: l || p || !a
@@ -37424,7 +37424,7 @@ const Hz = I.object({
37424
37424
  permissions: a = {},
37425
37425
  currentNavigation: l
37426
37426
  }) => {
37427
- const { formatMessage: c } = me(), [d, u] = Z(e), { canUpdate: f } = a, [p, m] = Z(!1), g = _t(), b = g.data?.contentTypes ?? [], { toggleNotification: v } = mo(), {
37427
+ const { formatMessage: c } = me(), [d, u] = Z(e), { canUpdate: f } = a, [p, g] = Z(!1), m = _t(), b = m.data?.contentTypes ?? [], { toggleNotification: v } = mo(), {
37428
37428
  formValue: w,
37429
37429
  renderError: x,
37430
37430
  setFormError: C,
@@ -37443,7 +37443,7 @@ const Hz = I.object({
37443
37443
  error: ve
37444
37444
  } = rq({
37445
37445
  isSingleSelected: p,
37446
- additionalFields: g.data?.additionalFields ?? Aq
37446
+ additionalFields: m.data?.additionalFields ?? Aq
37447
37447
  }).safeParse(F);
37448
37448
  if (ne) {
37449
37449
  const he = oe.title.trim() ? oe.title.trim() : oe.type === "INTERNAL" ? Q(oe?.related?.toString(), oe.relatedType, p) : "";
@@ -37495,9 +37495,9 @@ const Hz = I.object({
37495
37495
  },
37496
37496
  __collectionUid: W
37497
37497
  };
37498
- return qc(ne, g.data);
37498
+ return qc(ne, m.data);
37499
37499
  },
37500
- [q.data, g.data, b]
37500
+ [q.data, m.data, b]
37501
37501
  );
37502
37502
  return J(() => {
37503
37503
  S(
@@ -37545,7 +37545,7 @@ const Hz = I.object({
37545
37545
  currentRelatedType: j.relatedType,
37546
37546
  isSingleSelected: p,
37547
37547
  setFormValuesItems: D,
37548
- setIsSingleSelected: m
37548
+ setIsSingleSelected: g
37549
37549
  }
37550
37550
  ),
37551
37551
  /* @__PURE__ */ h(
@@ -37614,10 +37614,10 @@ const Hz = I.object({
37614
37614
  }) => {
37615
37615
  const { formatMessage: c } = me(), d = (p) => {
37616
37616
  i(p);
37617
- }, u = (p, m, g) => `${cW({
37618
- relatedRef: m,
37619
- type: m.isSingle ? "INTERNAL" : m.type,
37620
- isCollection: g
37617
+ }, u = (p, g, m) => `${cW({
37618
+ relatedRef: g,
37619
+ type: g.isSingle ? "INTERNAL" : g.type,
37620
+ isCollection: m
37621
37621
  }) ? "" : `[${c(T("notification.navigation.item.relation.status.draft"))}] `.toUpperCase()}${p}`, f = !!r.viewId;
37622
37622
  return /* @__PURE__ */ h(
37623
37623
  lt.Root,
@@ -37671,12 +37671,12 @@ const Hz = I.object({
37671
37671
  }, [r, o]);
37672
37672
  const p = ue((b) => {
37673
37673
  b.code.toLowerCase() === "enter" && l((v) => v + 1);
37674
- }, []), m = ue(
37674
+ }, []), g = ue(
37675
37675
  (b) => {
37676
37676
  i(b.target.value);
37677
37677
  },
37678
37678
  [i]
37679
- ), g = ue(() => {
37679
+ ), m = ue(() => {
37680
37680
  i(""), d(!1);
37681
37681
  }, [i, d]);
37682
37682
  return c ? /* @__PURE__ */ L("div", { ref: u, children: [
@@ -37684,10 +37684,10 @@ const Hz = I.object({
37684
37684
  IP,
37685
37685
  {
37686
37686
  name: "searchbar",
37687
- onClear: g,
37687
+ onClear: m,
37688
37688
  value: t,
37689
37689
  size: "S",
37690
- onChange: m,
37690
+ onChange: g,
37691
37691
  clearLabel: "Clearing the search",
37692
37692
  placeholder: f(
37693
37693
  T("pages.main.search.placeholder", "Type to start searching...")
@@ -37784,9 +37784,9 @@ const Hz = I.object({
37784
37784
  setI18nCopySourceLocale: p
37785
37785
  } = nW(
37786
37786
  ue(
37787
- (g) => {
37787
+ (m) => {
37788
37788
  const b = r.find(
37789
- ({ locale: v, documentId: w }) => v === g && w === i?.documentId
37789
+ ({ locale: v, documentId: w }) => v === m && w === i?.documentId
37790
37790
  );
37791
37791
  b && b.documentId && i?.documentId && s.mutate(
37792
37792
  {
@@ -37806,7 +37806,7 @@ const Hz = I.object({
37806
37806
  },
37807
37807
  [i]
37808
37808
  )
37809
- ), m = ue(() => {
37809
+ ), g = ue(() => {
37810
37810
  u && f(!0);
37811
37811
  }, [f, u]);
37812
37812
  return /* @__PURE__ */ L(G, { direction: "column", minHeight: "400px", justifyContent: "center", children: [
@@ -37830,14 +37830,14 @@ const Hz = I.object({
37830
37830
  onChange: p,
37831
37831
  value: u,
37832
37832
  size: "S",
37833
- children: n.map((g) => /* @__PURE__ */ h(Fn, { value: g, children: a(T("view.i18n.fill.option"), { locale: g }) }, g))
37833
+ children: n.map((m) => /* @__PURE__ */ h(Fn, { value: m, children: a(T("view.i18n.fill.option"), { locale: m }) }, m))
37834
37834
  }
37835
37835
  ) }),
37836
37836
  /* @__PURE__ */ h(ie, { paddingLeft: 1, paddingRight: 1, children: /* @__PURE__ */ h(
37837
37837
  Ye,
37838
37838
  {
37839
37839
  variant: "tertiary",
37840
- onClick: m,
37840
+ onClick: g,
37841
37841
  disabled: !u,
37842
37842
  size: "S",
37843
37843
  children: a(T("view.i18n.fill.cta.button"))
@@ -37849,8 +37849,8 @@ const Hz = I.object({
37849
37849
  ] });
37850
37850
  }, Oq = new lm(), Lq = () => {
37851
37851
  const { formatMessage: t } = me(), e = O0(), n = _t(), r = D3(), { toggleNotification: i } = mo(), [o, s] = Z(), [a, l] = Z(), [c, d] = Z(!1), { canAccess: u, canUpdate: f, isLoadingForPermissions: p } = lW(), {
37852
- localeData: m,
37853
- currentLocale: g,
37852
+ localeData: g,
37853
+ currentLocale: m,
37854
37854
  isChangeLanguageVisible: b,
37855
37855
  changeCurrentLocaleAction: v,
37856
37856
  availableLocales: w
@@ -37905,14 +37905,14 @@ const Hz = I.object({
37905
37905
  )), s(void 0), l(W || Tu(e.data));
37906
37906
  }
37907
37907
  }, [e.data, a]), J(() => {
37908
- if (a && g !== a.locale) {
37908
+ if (a && m !== a.locale) {
37909
37909
  s(void 0);
37910
37910
  const W = e.data?.find(
37911
- (F) => F.documentId === a.documentId && F.locale === g
37911
+ (F) => F.documentId === a.documentId && F.locale === m
37912
37912
  );
37913
37913
  W && W.documentId === a.documentId && W.locale !== a.locale && l(W);
37914
37914
  }
37915
- }, [a, g, e.data]), rW(), !e.data || !m || B ? /* @__PURE__ */ h(br.Loading, {}) : /* @__PURE__ */ L(Bi.Root, { children: [
37915
+ }, [a, m, e.data]), rW(), !e.data || !g || B ? /* @__PURE__ */ h(br.Loading, {}) : /* @__PURE__ */ L(Bi.Root, { children: [
37916
37916
  /* @__PURE__ */ h(br.Title, { children: t(T("header.title", "UI Navigation")) }),
37917
37917
  /* @__PURE__ */ L(br.Main, { children: [
37918
37918
  /* @__PURE__ */ h(
@@ -37924,11 +37924,11 @@ const Hz = I.object({
37924
37924
  handleChangeSelection: l,
37925
37925
  handleLocalizationSelection: c ? v.trigger : v.perform,
37926
37926
  handleSave: z,
37927
- locale: m,
37927
+ locale: g,
37928
37928
  structureHasChanged: c,
37929
37929
  isSaving: q.isPending,
37930
37930
  permissions: { canUpdate: f },
37931
- currentLocale: g
37931
+ currentLocale: m
37932
37932
  }
37933
37933
  ),
37934
37934
  /* @__PURE__ */ L(Bi.Content, { children: [
@@ -37958,7 +37958,7 @@ const Hz = I.object({
37958
37958
  isParentAttachedToMenu: !0,
37959
37959
  permissions: { canUpdate: f, canAccess: u },
37960
37960
  structurePrefix: "",
37961
- locale: g ?? ""
37961
+ locale: m ?? ""
37962
37962
  }
37963
37963
  ) : /* @__PURE__ */ h(
37964
37964
  Dq,
@@ -37971,14 +37971,14 @@ const Hz = I.object({
37971
37971
  setCurrentNavigation: l
37972
37972
  }
37973
37973
  ),
37974
- V && g && a && /* @__PURE__ */ h(
37974
+ V && m && a && /* @__PURE__ */ h(
37975
37975
  Iq,
37976
37976
  {
37977
37977
  availableLocale: w,
37978
37978
  currentItem: k,
37979
37979
  onSubmit: Q,
37980
37980
  onClose: K,
37981
- locale: g,
37981
+ locale: m,
37982
37982
  permissions: { canUpdate: f },
37983
37983
  isOpen: V,
37984
37984
  isLoading: p,
@@ -38334,13 +38334,13 @@ const Bq = () => /* @__PURE__ */ h(tx, { backend: nx, children: /* @__PURE__ */
38334
38334
  contentTypes: c
38335
38335
  })
38336
38336
  ).map((f) => {
38337
- const p = e.data?.find((m) => m.uid === f.uid);
38337
+ const p = e.data?.find((g) => g.uid === f.uid);
38338
38338
  if (p) {
38339
- const { isDisplayed: m, kind: g } = p;
38339
+ const { isDisplayed: g, kind: m } = p;
38340
38340
  return {
38341
38341
  ...f,
38342
- available: m,
38343
- isSingle: g === "singleType"
38342
+ available: g,
38343
+ isSingle: m === "singleType"
38344
38344
  };
38345
38345
  }
38346
38346
  return f;
@@ -38365,8 +38365,8 @@ const Bq = () => /* @__PURE__ */ h(tx, { backend: nx, children: /* @__PURE__ */
38365
38365
  o("contentTypes", f, i);
38366
38366
  const {
38367
38367
  contentTypesNameFields: p = [],
38368
- contentTypesPopulate: m = [],
38369
- pathDefaultFields: g = []
38368
+ contentTypesPopulate: g = [],
38369
+ pathDefaultFields: m = []
38370
38370
  } = r, b = f.filter(
38371
38371
  (w) => !p.find((x) => x.key === w)
38372
38372
  ) ?? [], v = p.filter(
@@ -38378,12 +38378,12 @@ const Bq = () => /* @__PURE__ */ h(tx, { backend: nx, children: /* @__PURE__ */
38378
38378
  ) ?? [],
38379
38379
  ...b.map((w) => ({ key: w, fields: [] }))
38380
38380
  ]), a("contentTypesPopulate", [
38381
- ...m.filter(
38381
+ ...g.filter(
38382
38382
  ({ key: w }) => !v.includes(w) || w === "default"
38383
38383
  ) ?? [],
38384
38384
  ...b.map((w) => ({ key: w, fields: [] }))
38385
38385
  ]), a("pathDefaultFields", [
38386
- ...g.filter(
38386
+ ...m.filter(
38387
38387
  ({ key: w }) => !v.includes(w) || w === "default"
38388
38388
  ) ?? [],
38389
38389
  ...b.map((w) => ({ key: w, fields: [] }))
@@ -38438,8 +38438,8 @@ const Bq = () => /* @__PURE__ */ h(tx, { backend: nx, children: /* @__PURE__ */
38438
38438
  contentTypesNameFields: l
38439
38439
  } = n;
38440
38440
  return /* @__PURE__ */ h(se.Item, { col: 12, s: 12, xs: 12, children: a?.length ? /* @__PURE__ */ h(_o.Root, { style: { width: "100%" }, children: l.map((c, d) => {
38441
- const u = t.data?.find(({ uid: g }) => g === c.key), f = u?.attributes ?? {}, p = Object.keys(f).sort(), m = p.filter(
38442
- (g) => Qq.includes(f[g]?.type)
38441
+ const u = t.data?.find(({ uid: m }) => m === c.key), f = u?.attributes ?? {}, p = Object.keys(f).sort(), g = p.filter(
38442
+ (m) => Qq.includes(f[m]?.type)
38443
38443
  );
38444
38444
  return u ? /* @__PURE__ */ L(_o.Item, { value: c.key, children: [
38445
38445
  /* @__PURE__ */ h(_o.Header, { children: /* @__PURE__ */ h(_o.Trigger, { children: u?.info.displayName ?? e(T("pages.settings.form.nameField.default")) }) }),
@@ -38462,11 +38462,11 @@ const Bq = () => /* @__PURE__ */ h(tx, { backend: nx, children: /* @__PURE__ */
38462
38462
  T("pages.settings.form.nameField.placeholder")
38463
38463
  ),
38464
38464
  value: vt(n, `contentTypesNameFields[${d}].fields`),
38465
- onChange: (g) => {
38465
+ onChange: (m) => {
38466
38466
  const b = vt(n, "contentTypesNameFields", []).map(
38467
38467
  (v, w) => w === d ? {
38468
38468
  ...v,
38469
- fields: g
38469
+ fields: m
38470
38470
  } : v
38471
38471
  );
38472
38472
  return i("contentTypesNameFields", b, r);
@@ -38474,7 +38474,7 @@ const Bq = () => /* @__PURE__ */ h(tx, { backend: nx, children: /* @__PURE__ */
38474
38474
  disabled: o.required,
38475
38475
  error: s(`contentTypesNameFields[${d}]`),
38476
38476
  withTags: !0,
38477
- children: p.map((g) => /* @__PURE__ */ h(Jr, { value: g, children: g }, g))
38477
+ children: p.map((m) => /* @__PURE__ */ h(Jr, { value: m, children: m }, m))
38478
38478
  }
38479
38479
  )
38480
38480
  }
@@ -38498,11 +38498,11 @@ const Bq = () => /* @__PURE__ */ h(tx, { backend: nx, children: /* @__PURE__ */
38498
38498
  T("pages.settings.form.populate.placeholder")
38499
38499
  ),
38500
38500
  value: vt(n, `contentTypesPopulate[${d - 1}].fields`, []),
38501
- onChange: (g) => {
38501
+ onChange: (m) => {
38502
38502
  const b = vt(n, "contentTypesPopulate", []).map(
38503
38503
  (v, w) => w === d - 1 ? {
38504
38504
  ...v,
38505
- fields: g
38505
+ fields: m
38506
38506
  } : v
38507
38507
  );
38508
38508
  return i("contentTypesPopulate", b, r);
@@ -38510,7 +38510,7 @@ const Bq = () => /* @__PURE__ */ h(tx, { backend: nx, children: /* @__PURE__ */
38510
38510
  disabled: o.required,
38511
38511
  error: s(`contentTypesPopulate[${d - 1}]`),
38512
38512
  withTags: !0,
38513
- children: m.map((g) => /* @__PURE__ */ h(Jr, { value: g, children: g }, g))
38513
+ children: g.map((m) => /* @__PURE__ */ h(Jr, { value: m, children: m }, m))
38514
38514
  }
38515
38515
  )
38516
38516
  }
@@ -38536,17 +38536,17 @@ const Bq = () => /* @__PURE__ */ h(tx, { backend: nx, children: /* @__PURE__ */
38536
38536
  T("pages.settings.form.pathDefaultFields.placeholder")
38537
38537
  ),
38538
38538
  value: vt(n, `pathDefaultFields[${d - 1}].fields`, []),
38539
- onChange: (g) => {
38539
+ onChange: (m) => {
38540
38540
  const b = vt(n, "pathDefaultFields", []).map((v, w) => w === d - 1 ? {
38541
38541
  ...v,
38542
- fields: g
38542
+ fields: m
38543
38543
  } : v);
38544
38544
  return i("pathDefaultFields", b, r);
38545
38545
  },
38546
38546
  disabled: o.required,
38547
38547
  error: s(`pathDefaultFields[${d - 1}]`),
38548
38548
  withTags: !0,
38549
- children: p.map((g) => /* @__PURE__ */ h(Jr, { value: g, children: g }, g))
38549
+ children: p.map((m) => /* @__PURE__ */ h(Jr, { value: m, children: m }, m))
38550
38550
  }
38551
38551
  )
38552
38552
  }
@@ -38572,8 +38572,8 @@ const Bq = () => /* @__PURE__ */ h(tx, { backend: nx, children: /* @__PURE__ */
38572
38572
  onToggleCustomField: r
38573
38573
  }) => {
38574
38574
  const [i, o] = Z(!1), [s, a] = Z(null), { toggleNotification: l } = mo(), c = Pe(() => Ms(t, "name"), [t]), { formatMessage: d } = me(), u = ue(
38575
- (m) => {
38576
- a(m), o(!0);
38575
+ (g) => {
38576
+ a(g), o(!0);
38577
38577
  },
38578
38578
  [a, o]
38579
38579
  ), f = ue(() => {
@@ -38607,8 +38607,8 @@ const Bq = () => /* @__PURE__ */ h(tx, { backend: nx, children: /* @__PURE__ */
38607
38607
  footer: /* @__PURE__ */ h(
38608
38608
  JP,
38609
38609
  {
38610
- onClick: (m) => {
38611
- m.preventDefault(), e(null);
38610
+ onClick: (g) => {
38611
+ g.preventDefault(), e(null);
38612
38612
  },
38613
38613
  icon: eU,
38614
38614
  children: d(T(`${Wt}footer`))
@@ -38623,36 +38623,36 @@ const Bq = () => /* @__PURE__ */ h(tx, { backend: nx, children: /* @__PURE__ */
38623
38623
  /* @__PURE__ */ h(tn, { children: /* @__PURE__ */ h(Vr, {}) })
38624
38624
  ] }) }),
38625
38625
  /* @__PURE__ */ h($3, { children: c.map(
38626
- (m) => typeof m != "string" ? /* @__PURE__ */ L(ql, { children: [
38627
- /* @__PURE__ */ h(nn, { width: "20%", children: /* @__PURE__ */ h(X, { fontWeight: "semiBold", textColor: "neutral800", children: m.name }) }),
38628
- /* @__PURE__ */ h(nn, { width: "60%", children: /* @__PURE__ */ h(X, { textColor: "neutral800", children: m.label }) }),
38629
- /* @__PURE__ */ h(nn, { width: "15%", children: /* @__PURE__ */ h(X, { textColor: "neutral800", children: m.type }) }),
38626
+ (g) => typeof g != "string" ? /* @__PURE__ */ L(ql, { children: [
38627
+ /* @__PURE__ */ h(nn, { width: "20%", children: /* @__PURE__ */ h(X, { fontWeight: "semiBold", textColor: "neutral800", children: g.name }) }),
38628
+ /* @__PURE__ */ h(nn, { width: "60%", children: /* @__PURE__ */ h(X, { textColor: "neutral800", children: g.label }) }),
38629
+ /* @__PURE__ */ h(nn, { width: "15%", children: /* @__PURE__ */ h(X, { textColor: "neutral800", children: g.type }) }),
38630
38630
  /* @__PURE__ */ h(nn, { width: "5%", children: /* @__PURE__ */ h(
38631
38631
  A0,
38632
38632
  {
38633
38633
  description: d(
38634
- T(`${Wt}${m.required ? "required" : "notRequired"}`)
38634
+ T(`${Wt}${g.required ? "required" : "notRequired"}`)
38635
38635
  ),
38636
- children: /* @__PURE__ */ h(X, { textColor: "neutral800", children: m.required ? /* @__PURE__ */ h(Bs, {}) : /* @__PURE__ */ h(nb, {}) })
38636
+ children: /* @__PURE__ */ h(X, { textColor: "neutral800", children: g.required ? /* @__PURE__ */ h(Bs, {}) : /* @__PURE__ */ h(nb, {}) })
38637
38637
  }
38638
38638
  ) }),
38639
38639
  /* @__PURE__ */ h(nn, { children: /* @__PURE__ */ h(G, { width: "100%", justifyContent: "flex-end", alignItems: "center", children: /* @__PURE__ */ L(Py, { children: [
38640
38640
  /* @__PURE__ */ h(
38641
38641
  Ct,
38642
38642
  {
38643
- onClick: () => r(m),
38643
+ onClick: () => r(g),
38644
38644
  label: d(
38645
- T(`${Wt}${m.enabled ? "disable" : "enable"}`)
38645
+ T(`${Wt}${g.enabled ? "disable" : "enable"}`)
38646
38646
  ),
38647
- variant: m.enabled ? "success-light" : "tertiary",
38648
- children: m.enabled ? /* @__PURE__ */ h(J2, {}) : /* @__PURE__ */ h(rS, {}),
38647
+ variant: g.enabled ? "success-light" : "tertiary",
38648
+ children: g.enabled ? /* @__PURE__ */ h(J2, {}) : /* @__PURE__ */ h(rS, {}),
38649
38649
  style: { minWidth: 50 }
38650
38650
  }
38651
38651
  ),
38652
38652
  /* @__PURE__ */ h(
38653
38653
  Ct,
38654
38654
  {
38655
- onClick: () => e(m),
38655
+ onClick: () => e(g),
38656
38656
  label: d(T(`${Wt}edit`)),
38657
38657
  children: /* @__PURE__ */ h(If, {}),
38658
38658
  style: { minWidth: 50 }
@@ -38661,14 +38661,14 @@ const Bq = () => /* @__PURE__ */ h(tx, { backend: nx, children: /* @__PURE__ */
38661
38661
  /* @__PURE__ */ h(
38662
38662
  Ct,
38663
38663
  {
38664
- onClick: () => u(m),
38664
+ onClick: () => u(g),
38665
38665
  label: d(T(`${Wt}remove`)),
38666
38666
  children: /* @__PURE__ */ h(Ef, {}),
38667
38667
  style: { minWidth: 50 }
38668
38668
  }
38669
38669
  )
38670
38670
  ] }) }) })
38671
- ] }, m.name) : null
38671
+ ] }, g.name) : null
38672
38672
  ) })
38673
38673
  ]
38674
38674
  }
@@ -38713,30 +38713,30 @@ const Bq = () => /* @__PURE__ */ h(tx, { backend: nx, children: /* @__PURE__ */
38713
38713
  ...e
38714
38714
  });
38715
38715
  }, [e]);
38716
- const u = (g, b, v) => {
38716
+ const u = (m, b, v) => {
38717
38717
  if (v) {
38718
- let w = g, x = b;
38719
- if (Ts(g)) {
38720
- const { name: C, value: $ } = g.target;
38718
+ let w = m, x = b;
38719
+ if (Ts(m)) {
38720
+ const { name: C, value: $ } = m.target;
38721
38721
  w = C, x = Yi(x) ? $ : x;
38722
38722
  }
38723
- return Gl(w) && f(w, x), v(g, x);
38723
+ return Gl(w) && f(w, x), v(m, x);
38724
38724
  }
38725
- }, f = (g, b) => {
38725
+ }, f = (m, b) => {
38726
38726
  a(
38727
38727
  Yl(
38728
38728
  {
38729
38729
  ...s
38730
38730
  },
38731
- g,
38731
+ m,
38732
38732
  b
38733
38733
  )
38734
38734
  );
38735
- }, p = (g) => {
38736
- const b = vt(l, g);
38735
+ }, p = (m) => {
38736
+ const b = vt(l, m);
38737
38737
  if (b)
38738
- return o(T(`${Ke}${g}.${b}`));
38739
- }, m = (g, b) => {
38738
+ return o(T(`${Ke}${m}.${b}`));
38739
+ }, g = (m, b) => {
38740
38740
  const { success: v, data: w, error: x } = k3.safeParse(b);
38741
38741
  v ? n(w) : x && c(
38742
38742
  x.issues.reduce((C, $) => ({
@@ -38746,7 +38746,7 @@ const Bq = () => /* @__PURE__ */ h(tx, { backend: nx, children: /* @__PURE__ */
38746
38746
  );
38747
38747
  };
38748
38748
  return /* @__PURE__ */ L(mt, { children: [
38749
- /* @__PURE__ */ h(lt.Body, { children: /* @__PURE__ */ h(Kl, { method: "POST", width: "auto", height: "auto", initialValues: s, children: ({ values: g, onChange: b }) => /* @__PURE__ */ L(se.Root, { gap: 5, children: [
38749
+ /* @__PURE__ */ h(lt.Body, { children: /* @__PURE__ */ h(Kl, { method: "POST", width: "auto", height: "auto", initialValues: s, children: ({ values: m, onChange: b }) => /* @__PURE__ */ L(se.Root, { gap: 5, children: [
38750
38750
  /* @__PURE__ */ h(se.Item, { col: 12, children: /* @__PURE__ */ h(
38751
38751
  Le,
38752
38752
  {
@@ -38759,7 +38759,7 @@ const Bq = () => /* @__PURE__ */ h(tx, { backend: nx, children: /* @__PURE__ */
38759
38759
  Mn,
38760
38760
  {
38761
38761
  name: "name",
38762
- value: g.name,
38762
+ value: m.name,
38763
38763
  onChange: (v, w) => u(v, w, b),
38764
38764
  placeholder: o(T(`${Ke}name.placeholder`)),
38765
38765
  type: "string",
@@ -38781,7 +38781,7 @@ const Bq = () => /* @__PURE__ */ h(tx, { backend: nx, children: /* @__PURE__ */
38781
38781
  Mn,
38782
38782
  {
38783
38783
  name: "label",
38784
- value: g.label,
38784
+ value: m.label,
38785
38785
  onChange: (v, w) => u(v, w, b),
38786
38786
  placeholder: o(T(`${Ke}label.placeholder`)),
38787
38787
  type: "string",
@@ -38801,7 +38801,7 @@ const Bq = () => /* @__PURE__ */ h(tx, { backend: nx, children: /* @__PURE__ */
38801
38801
  Mn,
38802
38802
  {
38803
38803
  name: "description",
38804
- value: g.description,
38804
+ value: m.description,
38805
38805
  onChange: (v, w) => u(v, w, b),
38806
38806
  placeholder: o(T(`${Ke}description.placeholder`)),
38807
38807
  type: "string",
@@ -38821,7 +38821,7 @@ const Bq = () => /* @__PURE__ */ h(tx, { backend: nx, children: /* @__PURE__ */
38821
38821
  Mn,
38822
38822
  {
38823
38823
  name: "placeholder",
38824
- value: g.placeholder,
38824
+ value: m.placeholder,
38825
38825
  onChange: (v, w) => u(v, w, b),
38826
38826
  placeholder: o(T(`${Ke}placeholder.placeholder`)),
38827
38827
  type: "string",
@@ -38841,7 +38841,7 @@ const Bq = () => /* @__PURE__ */ h(tx, { backend: nx, children: /* @__PURE__ */
38841
38841
  Bn,
38842
38842
  {
38843
38843
  name: "type",
38844
- value: g.type,
38844
+ value: m.type,
38845
38845
  onChange: (v) => u("type", v, b),
38846
38846
  disabled: t,
38847
38847
  width: "100%",
@@ -38862,8 +38862,8 @@ const Bq = () => /* @__PURE__ */ h(tx, { backend: nx, children: /* @__PURE__ */
38862
38862
  Dn,
38863
38863
  {
38864
38864
  name: "multi",
38865
- checked: g.multi,
38866
- onChange: (v) => u(v, !g.multi, b),
38865
+ checked: m.multi,
38866
+ onChange: (v) => u(v, !m.multi, b),
38867
38867
  onLabel: "true",
38868
38868
  offLabel: "false",
38869
38869
  width: "100%"
@@ -38883,7 +38883,7 @@ const Bq = () => /* @__PURE__ */ h(tx, { backend: nx, children: /* @__PURE__ */
38883
38883
  {
38884
38884
  name: "options",
38885
38885
  onChange: (v) => u("options", v, b),
38886
- initialValue: g.options
38886
+ initialValue: m.options
38887
38887
  }
38888
38888
  )
38889
38889
  }
@@ -38901,8 +38901,8 @@ const Bq = () => /* @__PURE__ */ h(tx, { backend: nx, children: /* @__PURE__ */
38901
38901
  {
38902
38902
  name: "required",
38903
38903
  placeholder: o(T(`${Ke}required.placeholder`)),
38904
- checked: g.required,
38905
- onChange: (v) => u(v, !g.required, b),
38904
+ checked: m.required,
38905
+ onChange: (v) => u(v, !m.required, b),
38906
38906
  onLabel: "true",
38907
38907
  offLabel: "false",
38908
38908
  width: "100%"
@@ -38913,7 +38913,7 @@ const Bq = () => /* @__PURE__ */ h(tx, { backend: nx, children: /* @__PURE__ */
38913
38913
  ] }) }) }),
38914
38914
  /* @__PURE__ */ L(lt.Footer, { children: [
38915
38915
  /* @__PURE__ */ h(lt.Close, { children: /* @__PURE__ */ h(Ye, { onClick: r, variant: "tertiary", children: o(T("popup.item.form.button.cancel")) }) }),
38916
- /* @__PURE__ */ h(Ye, { onClick: (g) => m(g, s), children: o(T("popup.item.form.button.save")) })
38916
+ /* @__PURE__ */ h(Ye, { onClick: (m) => g(m, s), children: o(T("popup.item.form.button.save")) })
38917
38917
  ] })
38918
38918
  ] });
38919
38919
  }, oU = ({
@@ -38974,14 +38974,14 @@ const Bq = () => /* @__PURE__ */ h(tx, { backend: nx, children: /* @__PURE__ */
38974
38974
  n("additionalFields", f), s(null), i(!1);
38975
38975
  }, c = (u) => {
38976
38976
  const f = { ...u, enabled: !u.enabled }, p = e.map(
38977
- (m) => typeof m != "string" && u.name === m.name ? f : m
38977
+ (g) => typeof g != "string" && u.name === g.name ? f : g
38978
38978
  );
38979
38979
  n("additionalFields", p);
38980
38980
  }, d = (u) => {
38981
38981
  const p = !!e.find(
38982
- (m) => typeof m != "string" ? m.name === u.name : !1
38982
+ (g) => typeof g != "string" ? g.name === u.name : !1
38983
38983
  ) ? e.map(
38984
- (m) => typeof m != "string" && u.name === m.name ? u : m
38984
+ (g) => typeof g != "string" && u.name === g.name ? u : g
38985
38985
  ) : [...e, u];
38986
38986
  n("additionalFields", p), s(null), i(!1);
38987
38987
  };
@@ -39022,7 +39022,7 @@ const Bq = () => /* @__PURE__ */ h(tx, { backend: nx, children: /* @__PURE__ */
39022
39022
  fields: P.string().array()
39023
39023
  }).array()
39024
39024
  }), nm = new lm(), lU = () => {
39025
- const t = B0(), e = Uc(), n = Pq(), r = z3(), i = P3(), { formatMessage: o } = me(), [s, a] = Z({ required: !1 }), [l, c] = Z(!1), d = Z3("SettingsPage", (S) => S.permissions), u = Pe(() => !!d.find(({ action: S }) => S === ei.settings[0].action), [d]), f = Pe(() => !!d.find(({ action: S }) => S === ei.access[0].action), [d]), p = t.isPending || e.isPending || n.isPending || i.isPending || r.isPending, [m, g] = Z({}), [b, v] = Z(), w = (S, k, D) => {
39025
+ const t = B0(), e = Uc(), n = Pq(), r = z3(), i = P3(), { formatMessage: o } = me(), [s, a] = Z({ required: !1 }), [l, c] = Z(!1), d = Z3("SettingsPage", (S) => S.permissions), u = Pe(() => !!d.find(({ action: S }) => S === ei.settings[0].action), [d]), f = Pe(() => !!d.find(({ action: S }) => S === ei.access[0].action), [d]), p = t.isPending || e.isPending || n.isPending || i.isPending || r.isPending, [g, m] = Z({}), [b, v] = Z(), w = (S, k, D) => {
39026
39026
  if (D) {
39027
39027
  let E = S, O = k;
39028
39028
  if (Ts(S)) {
@@ -39032,7 +39032,7 @@ const Bq = () => /* @__PURE__ */ h(tx, { backend: nx, children: /* @__PURE__ */
39032
39032
  return Gl(E) && x(E, O), D(S, O);
39033
39033
  }
39034
39034
  }, x = (S, k) => {
39035
- g(
39035
+ m(
39036
39036
  (D) => Yl(
39037
39037
  {
39038
39038
  ...D
@@ -39057,7 +39057,7 @@ const Bq = () => /* @__PURE__ */ h(tx, { backend: nx, children: /* @__PURE__ */
39057
39057
  }), {})
39058
39058
  ), console.warn("Invalid form data", O));
39059
39059
  };
39060
- return zq({ config: t.data, setFormValue: g }), u ? p || l ? /* @__PURE__ */ h(br.Loading, {}) : /* @__PURE__ */ h(Bi.Root, { children: /* @__PURE__ */ L(br.Main, { children: [
39060
+ return zq({ config: t.data, setFormValue: m }), u ? p || l ? /* @__PURE__ */ h(br.Loading, {}) : /* @__PURE__ */ h(Bi.Root, { children: /* @__PURE__ */ L(br.Main, { children: [
39061
39061
  /* @__PURE__ */ h(br.Title, { children: o(T("pages.settings.header.title")) }),
39062
39062
  /* @__PURE__ */ h(
39063
39063
  Bi.Header,
@@ -39069,13 +39069,13 @@ const Bq = () => /* @__PURE__ */ h(tx, { backend: nx, children: /* @__PURE__ */
39069
39069
  {
39070
39070
  startIcon: /* @__PURE__ */ h(Bs, {}),
39071
39071
  disabled: s.required,
39072
- onClick: (S) => $(S, m),
39072
+ onClick: (S) => $(S, g),
39073
39073
  children: o(T("pages.settings.actions.submit"))
39074
39074
  }
39075
39075
  ) : null
39076
39076
  }
39077
39077
  ),
39078
- /* @__PURE__ */ h(Bi.Content, { children: /* @__PURE__ */ h(Kl, { method: "POST", width: "auto", height: "auto", initialValues: m, children: ({ values: S, onChange: k }) => /* @__PURE__ */ h(
39078
+ /* @__PURE__ */ h(Bi.Content, { children: /* @__PURE__ */ h(Kl, { method: "POST", width: "auto", height: "auto", initialValues: g, children: ({ values: S, onChange: k }) => /* @__PURE__ */ h(
39079
39079
  W3.Provider,
39080
39080
  {
39081
39081
  value: {