ov25-setup 0.1.15 → 0.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.
package/dist/index.js CHANGED
@@ -88,7 +88,7 @@ const Mm = {
88
88
  { variable: "--ov25-button-text-color", label: "Collection text color", defaultValue: "#ffffff", control: "color" },
89
89
  { variable: "--ov25-button-hover-background-color", label: "Collection hover fill", defaultValue: "#fafafa", control: "color" },
90
90
  { variable: "--ov25-button-hover-text-color", label: "Collection hover text", defaultValue: "#000000", control: "color" },
91
- { variable: "--ov25-highlight-color", label: "Variant highlight", defaultValue: "#00fbff", control: "color" },
91
+ { variable: "--ov25-highlight-color", label: "Current Variant Outline", defaultValue: "", control: "color" },
92
92
  { variable: "--ov25-wizard-variants-content-height", label: "Variant panel height", defaultValue: "600px", control: "slider", sliderMin: 200, sliderMax: 1200, sliderStep: 50, sliderUnit: "px", sliderLabels: ["Short", "Tall"] },
93
93
  { variable: "--ov25-configurator-variant-drawer-handle-color", label: "Drawer handle color", defaultValue: "#000000", control: "color" }
94
94
  ]
@@ -341,7 +341,7 @@ const Mm = {
341
341
  { value: "inline-block", label: "Inline Block" },
342
342
  { value: "none", label: "Hidden" }
343
343
  ];
344
- function $m(n) {
344
+ function Fm(n) {
345
345
  const e = Object.entries(n).filter(([, t]) => t);
346
346
  return e.length ? `:root {
347
347
  ${e.map(([t, r]) => ` ${t}: ${r};`).join(`
@@ -361,7 +361,7 @@ ${i.map(([o, s]) => ` ${o}: ${s};`).join(`
361
361
 
362
362
  `);
363
363
  }
364
- const th = "ov25-configurator-setup", Fm = "OV25_CONFIGURATOR_SETTINGS", zm = 9, Vm = Array.from({ length: zm }, (n, e) => `https://picsum.photos/800/800?random=${e + 1}`);
364
+ const th = "ov25-configurator-setup", $m = "OV25_CONFIGURATOR_SETTINGS", zm = 9, Vm = Array.from({ length: zm }, (n, e) => `https://picsum.photos/800/800?random=${e + 1}`);
365
365
  function Ya(n, e) {
366
366
  var t, r, i, o, s, l;
367
367
  return e ? {
@@ -412,8 +412,8 @@ function Qs(n, e, t) {
412
412
  }
413
413
  const i = (t == null ? void 0 : t.apiKey) || Nm, o = {}, s = Object.entries(e.selectors);
414
414
  for (const [d, f] of s) {
415
- const p = Hm(f);
416
- p && (o[d] = p);
415
+ const g = Hm(f);
416
+ g && (o[d] = g);
417
417
  }
418
418
  const l = {
419
419
  apiKey: i,
@@ -441,7 +441,7 @@ function Qs(n, e, t) {
441
441
  autoOpen: e.flags.autoOpen
442
442
  },
443
443
  images: Vm
444
- }, a = $m(e.style), c = eh(e.elementStyles), u = e.branding.cssString, h = [a, c, u].filter(Boolean).join(`
444
+ }, a = Fm(e.style), c = eh(e.elementStyles), u = e.branding.cssString, h = [a, c, u].filter(Boolean).join(`
445
445
 
446
446
  `);
447
447
  return (h || e.branding.logoURL || e.branding.mobileLogoURL) && (l.branding = {}, e.branding.logoURL && (l.branding.logoURL = e.branding.logoURL), e.branding.mobileLogoURL && (l.branding.mobileLogoURL = e.branding.mobileLogoURL), h && (l.branding.cssString = h)), e.flags.hidePricing && l.selectors && delete l.selectors.price, l;
@@ -455,7 +455,7 @@ function qa(n, e) {
455
455
  return t;
456
456
  }
457
457
  function Um(n) {
458
- typeof window > "u" || window.parent && window.parent !== window && window.parent.postMessage({ type: Fm, settings: n }, "*");
458
+ typeof window > "u" || window.parent && window.parent !== window && window.parent.postMessage({ type: $m, settings: n }, "*");
459
459
  }
460
460
  function jm(n) {
461
461
  const e = !!(n != null && n.initialConfig), [t, r] = xe(Or), [i, o] = xe(!1);
@@ -473,24 +473,24 @@ function jm(n) {
473
473
  }
474
474
  }, [t, i, e]);
475
475
  const s = t.typeSettings[t.layout], l = me((f) => {
476
- r((p) => ({ ...p, layout: f }));
477
- }, []), a = me((f, p) => {
478
- r((g) => ({
479
- ...g,
476
+ r((g) => ({ ...g, layout: f }));
477
+ }, []), a = me((f, g) => {
478
+ r((p) => ({
479
+ ...p,
480
480
  typeSettings: {
481
- ...g.typeSettings,
482
- [g.layout]: { ...g.typeSettings[g.layout], [f]: p }
481
+ ...p.typeSettings,
482
+ [p.layout]: { ...p.typeSettings[p.layout], [f]: g }
483
483
  }
484
484
  }));
485
485
  }, []), c = me(
486
- (f, p, g) => {
486
+ (f, g, p) => {
487
487
  r((b) => {
488
488
  const y = b.typeSettings[b.layout];
489
489
  return {
490
490
  ...b,
491
491
  typeSettings: {
492
492
  ...b.typeSettings,
493
- [b.layout]: { ...y, [f]: { ...y[f], [p]: g } }
493
+ [b.layout]: { ...y, [f]: { ...y[f], [g]: p } }
494
494
  }
495
495
  };
496
496
  });
@@ -502,7 +502,7 @@ function jm(n) {
502
502
  ), h = me(
503
503
  (f) => {
504
504
  if (f === "current") {
505
- const p = Qs(t.layout, s, n), { apiKey: g, productLink: b, images: y, ...x } = p;
505
+ const g = Qs(t.layout, s, n), { apiKey: p, productLink: b, images: y, ...x } = g;
506
506
  return x;
507
507
  }
508
508
  return qa(t, n);
@@ -914,8 +914,8 @@ function Rb(n) {
914
914
  if (e) {
915
915
  let c;
916
916
  const u = e.ownerDocument.defaultView ?? window, h = (f) => {
917
- const g = ui(r.current).includes(CSS.escape(f.animationName));
918
- if (f.target === e && g && (a("ANIMATION_END"), !i.current)) {
917
+ const p = ui(r.current).includes(CSS.escape(f.animationName));
918
+ if (f.target === e && p && (a("ANIMATION_END"), !i.current)) {
919
919
  const b = e.style.animationFillMode;
920
920
  e.style.animationFillMode = "forwards", c = u.setTimeout(() => {
921
921
  e.style.animationFillMode === "forwards" && (e.style.animationFillMode = b);
@@ -965,14 +965,14 @@ function Tt(n, e = []) {
965
965
  t = [...t, s];
966
966
  const c = (h) => {
967
967
  var y;
968
- const { scope: d, children: f, ...p } = h, g = ((y = d == null ? void 0 : d[n]) == null ? void 0 : y[a]) || l, b = m.useMemo(() => p, Object.values(p));
969
- return /* @__PURE__ */ v(g.Provider, { value: b, children: f });
968
+ const { scope: d, children: f, ...g } = h, p = ((y = d == null ? void 0 : d[n]) == null ? void 0 : y[a]) || l, b = m.useMemo(() => g, Object.values(g));
969
+ return /* @__PURE__ */ v(p.Provider, { value: b, children: f });
970
970
  };
971
971
  c.displayName = o + "Provider";
972
972
  function u(h, d) {
973
- var g;
974
- const f = ((g = d == null ? void 0 : d[n]) == null ? void 0 : g[a]) || l, p = m.useContext(f);
975
- if (p) return p;
973
+ var p;
974
+ const f = ((p = d == null ? void 0 : d[n]) == null ? void 0 : p[a]) || l, g = m.useContext(f);
975
+ if (g) return g;
976
976
  if (s !== void 0) return s;
977
977
  throw new Error(`\`${h}\` must be used within \`${o}\``);
978
978
  }
@@ -1025,7 +1025,7 @@ function Jr(n) {
1025
1025
  function Qr(n, [e, t]) {
1026
1026
  return Math.min(t, Math.max(e, n));
1027
1027
  }
1028
- function F(n, e, { checkForDefaultPrevented: t = !0 } = {}) {
1028
+ function $(n, e, { checkForDefaultPrevented: t = !0 } = {}) {
1029
1029
  return function(i) {
1030
1030
  if (n == null || n(i), t === !1 || !i.defaultPrevented)
1031
1031
  return e == null ? void 0 : e(i);
@@ -1042,7 +1042,7 @@ var Gl = "ScrollArea", [lh] = Tt(Gl), [Lb, et] = lh(Gl), ah = m.forwardRef(
1042
1042
  dir: i,
1043
1043
  scrollHideDelay: o = 600,
1044
1044
  ...s
1045
- } = n, [l, a] = m.useState(null), [c, u] = m.useState(null), [h, d] = m.useState(null), [f, p] = m.useState(null), [g, b] = m.useState(null), [y, x] = m.useState(0), [w, S] = m.useState(0), [C, A] = m.useState(!1), [k, M] = m.useState(!1), N = q(e, (R) => a(R)), D = Jr(i);
1045
+ } = n, [l, a] = m.useState(null), [c, u] = m.useState(null), [h, d] = m.useState(null), [f, g] = m.useState(null), [p, b] = m.useState(null), [y, x] = m.useState(0), [w, S] = m.useState(0), [C, A] = m.useState(!1), [k, M] = m.useState(!1), N = q(e, (R) => a(R)), D = Jr(i);
1046
1046
  return /* @__PURE__ */ v(
1047
1047
  Lb,
1048
1048
  {
@@ -1056,10 +1056,10 @@ var Gl = "ScrollArea", [lh] = Tt(Gl), [Lb, et] = lh(Gl), ah = m.forwardRef(
1056
1056
  content: h,
1057
1057
  onContentChange: d,
1058
1058
  scrollbarX: f,
1059
- onScrollbarXChange: p,
1059
+ onScrollbarXChange: g,
1060
1060
  scrollbarXEnabled: C,
1061
1061
  onScrollbarXEnabledChange: A,
1062
- scrollbarY: g,
1062
+ scrollbarY: p,
1063
1063
  onScrollbarYChange: b,
1064
1064
  scrollbarYEnabled: k,
1065
1065
  onScrollbarYEnabledChange: M,
@@ -1199,8 +1199,8 @@ var Bb = m.forwardRef((n, e) => {
1199
1199
  "data-state": l === "hidden" ? "hidden" : "visible",
1200
1200
  ...r,
1201
1201
  ref: e,
1202
- onPointerEnter: F(n.onPointerEnter, () => a("POINTER_ENTER")),
1203
- onPointerLeave: F(n.onPointerLeave, () => a("POINTER_LEAVE"))
1202
+ onPointerEnter: $(n.onPointerEnter, () => a("POINTER_ENTER")),
1203
+ onPointerLeave: $(n.onPointerLeave, () => a("POINTER_LEAVE"))
1204
1204
  }
1205
1205
  ) });
1206
1206
  }), hh = m.forwardRef((n, e) => {
@@ -1254,7 +1254,7 @@ var Bb = m.forwardRef((n, e) => {
1254
1254
  }
1255
1255
  }
1256
1256
  ) : t === "vertical" ? /* @__PURE__ */ v(
1257
- $b,
1257
+ Fb,
1258
1258
  {
1259
1259
  ...u,
1260
1260
  ref: e,
@@ -1311,7 +1311,7 @@ var Bb = m.forwardRef((n, e) => {
1311
1311
  }
1312
1312
  }
1313
1313
  );
1314
- }), $b = m.forwardRef((n, e) => {
1314
+ }), Fb = m.forwardRef((n, e) => {
1315
1315
  const { sizes: t, onSizesChange: r, ...i } = n, o = et(Rt, n.__scopeScrollArea), [s, l] = m.useState(), a = m.useRef(null), c = q(e, a, o.onScrollbarYChange);
1316
1316
  return m.useEffect(() => {
1317
1317
  a.current && l(getComputedStyle(a.current));
@@ -1351,7 +1351,7 @@ var Bb = m.forwardRef((n, e) => {
1351
1351
  }
1352
1352
  }
1353
1353
  );
1354
- }), [Fb, dh] = lh(Rt), fh = m.forwardRef((n, e) => {
1354
+ }), [$b, dh] = lh(Rt), fh = m.forwardRef((n, e) => {
1355
1355
  const {
1356
1356
  __scopeScrollArea: t,
1357
1357
  sizes: r,
@@ -1364,7 +1364,7 @@ var Bb = m.forwardRef((n, e) => {
1364
1364
  onWheelScroll: u,
1365
1365
  onResize: h,
1366
1366
  ...d
1367
- } = n, f = et(Rt, t), [p, g] = m.useState(null), b = q(e, (N) => g(N)), y = m.useRef(null), x = m.useRef(""), w = f.viewport, S = r.content - r.viewport, C = Ie(u), A = Ie(a), k = wo(h, 10);
1367
+ } = n, f = et(Rt, t), [g, p] = m.useState(null), b = q(e, (N) => p(N)), y = m.useRef(null), x = m.useRef(""), w = f.viewport, S = r.content - r.viewport, C = Ie(u), A = Ie(a), k = wo(h, 10);
1368
1368
  function M(N) {
1369
1369
  if (y.current) {
1370
1370
  const D = N.clientX - y.current.left, R = N.clientY - y.current.top;
@@ -1374,14 +1374,14 @@ var Bb = m.forwardRef((n, e) => {
1374
1374
  return m.useEffect(() => {
1375
1375
  const N = (D) => {
1376
1376
  const R = D.target;
1377
- (p == null ? void 0 : p.contains(R)) && C(D, S);
1377
+ (g == null ? void 0 : g.contains(R)) && C(D, S);
1378
1378
  };
1379
1379
  return document.addEventListener("wheel", N, { passive: !1 }), () => document.removeEventListener("wheel", N, { passive: !1 });
1380
- }, [w, p, S, C]), m.useEffect(A, [r, A]), qn(p, k), qn(f.content, k), /* @__PURE__ */ v(
1381
- Fb,
1380
+ }, [w, g, S, C]), m.useEffect(A, [r, A]), qn(g, k), qn(f.content, k), /* @__PURE__ */ v(
1381
+ $b,
1382
1382
  {
1383
1383
  scope: t,
1384
- scrollbar: p,
1384
+ scrollbar: g,
1385
1385
  hasThumb: i,
1386
1386
  onThumbChange: Ie(o),
1387
1387
  onThumbPointerUp: Ie(s),
@@ -1393,11 +1393,11 @@ var Bb = m.forwardRef((n, e) => {
1393
1393
  ...d,
1394
1394
  ref: b,
1395
1395
  style: { position: "absolute", ...d.style },
1396
- onPointerDown: F(n.onPointerDown, (N) => {
1397
- N.button === 0 && (N.target.setPointerCapture(N.pointerId), y.current = p.getBoundingClientRect(), x.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", f.viewport && (f.viewport.style.scrollBehavior = "auto"), M(N));
1396
+ onPointerDown: $(n.onPointerDown, (N) => {
1397
+ N.button === 0 && (N.target.setPointerCapture(N.pointerId), y.current = g.getBoundingClientRect(), x.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", f.viewport && (f.viewport.style.scrollBehavior = "auto"), M(N));
1398
1398
  }),
1399
- onPointerMove: F(n.onPointerMove, M),
1400
- onPointerUp: F(n.onPointerUp, (N) => {
1399
+ onPointerMove: $(n.onPointerMove, M),
1400
+ onPointerUp: $(n.onPointerUp, (N) => {
1401
1401
  const D = N.target;
1402
1402
  D.hasPointerCapture(N.pointerId) && D.releasePointerCapture(N.pointerId), document.body.style.webkitUserSelect = x.current, f.viewport && (f.viewport.style.scrollBehavior = ""), y.current = null;
1403
1403
  })
@@ -1440,11 +1440,11 @@ var Bb = m.forwardRef((n, e) => {
1440
1440
  height: "var(--radix-scroll-area-thumb-height)",
1441
1441
  ...r
1442
1442
  },
1443
- onPointerDownCapture: F(n.onPointerDownCapture, (h) => {
1444
- const f = h.target.getBoundingClientRect(), p = h.clientX - f.left, g = h.clientY - f.top;
1445
- s.onThumbPointerDown({ x: p, y: g });
1443
+ onPointerDownCapture: $(n.onPointerDownCapture, (h) => {
1444
+ const f = h.target.getBoundingClientRect(), g = h.clientX - f.left, p = h.clientY - f.top;
1445
+ s.onThumbPointerDown({ x: g, y: p });
1446
1446
  }),
1447
- onPointerUp: F(n.onPointerUp, s.onThumbPointerUp)
1447
+ onPointerUp: $(n.onPointerUp, s.onThumbPointerUp)
1448
1448
  }
1449
1449
  );
1450
1450
  }
@@ -1678,12 +1678,12 @@ const Zl = "-", Xb = (n) => {
1678
1678
  }
1679
1679
  y === "[" ? c++ : y === "]" && c--;
1680
1680
  }
1681
- const d = a.length === 0 ? l : l.substring(u), f = d.startsWith(Oh), p = f ? d.substring(1) : d, g = h && h > u ? h - u : void 0;
1681
+ const d = a.length === 0 ? l : l.substring(u), f = d.startsWith(Oh), g = f ? d.substring(1) : d, p = h && h > u ? h - u : void 0;
1682
1682
  return {
1683
1683
  modifiers: a,
1684
1684
  hasImportantModifier: f,
1685
- baseClassName: p,
1686
- maybePostfixModifierPosition: g
1685
+ baseClassName: g,
1686
+ maybePostfixModifierPosition: p
1687
1687
  };
1688
1688
  };
1689
1689
  return t ? (l) => t({
@@ -1716,23 +1716,23 @@ const Zl = "-", Xb = (n) => {
1716
1716
  baseClassName: d,
1717
1717
  maybePostfixModifierPosition: f
1718
1718
  } = t(c);
1719
- let p = !!f, g = r(p ? d.substring(0, f) : d);
1720
- if (!g) {
1721
- if (!p) {
1719
+ let g = !!f, p = r(g ? d.substring(0, f) : d);
1720
+ if (!p) {
1721
+ if (!g) {
1722
1722
  l = c + (l.length > 0 ? " " + l : l);
1723
1723
  continue;
1724
1724
  }
1725
- if (g = r(d), !g) {
1725
+ if (p = r(d), !p) {
1726
1726
  l = c + (l.length > 0 ? " " + l : l);
1727
1727
  continue;
1728
1728
  }
1729
- p = !1;
1729
+ g = !1;
1730
1730
  }
1731
- const b = e0(u).join(":"), y = h ? b + Oh : b, x = y + g;
1731
+ const b = e0(u).join(":"), y = h ? b + Oh : b, x = y + p;
1732
1732
  if (o.includes(x))
1733
1733
  continue;
1734
1734
  o.push(x);
1735
- const w = i(g, p);
1735
+ const w = i(p, g);
1736
1736
  for (let S = 0; S < w.length; ++S) {
1737
1737
  const C = w[S];
1738
1738
  o.push(y + C);
@@ -1784,7 +1784,7 @@ const ae = (n) => {
1784
1784
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
1785
1785
  c0.test(n) && !u0.test(n)
1786
1786
  ), Ah = () => !1, x0 = (n) => h0.test(n), S0 = (n) => d0.test(n), O0 = () => {
1787
- const n = ae("colors"), e = ae("spacing"), t = ae("blur"), r = ae("brightness"), i = ae("borderColor"), o = ae("borderRadius"), s = ae("borderSpacing"), l = ae("borderWidth"), a = ae("contrast"), c = ae("grayscale"), u = ae("hueRotate"), h = ae("invert"), d = ae("gap"), f = ae("gradientColorStops"), p = ae("gradientColorStopPositions"), g = ae("inset"), b = ae("margin"), y = ae("opacity"), x = ae("padding"), w = ae("saturate"), S = ae("scale"), C = ae("sepia"), A = ae("skew"), k = ae("space"), M = ae("translate"), N = () => ["auto", "contain", "none"], D = () => ["auto", "hidden", "clip", "visible", "scroll"], R = () => ["auto", G, e], P = () => [G, e], B = () => ["", Mt, Ut], Q = () => ["auto", _n, G], z = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], _ = () => ["solid", "dashed", "dotted", "double", "none"], W = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], $ = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], X = () => ["", "0", G], ge = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], ee = () => [_n, G];
1787
+ const n = ae("colors"), e = ae("spacing"), t = ae("blur"), r = ae("brightness"), i = ae("borderColor"), o = ae("borderRadius"), s = ae("borderSpacing"), l = ae("borderWidth"), a = ae("contrast"), c = ae("grayscale"), u = ae("hueRotate"), h = ae("invert"), d = ae("gap"), f = ae("gradientColorStops"), g = ae("gradientColorStopPositions"), p = ae("inset"), b = ae("margin"), y = ae("opacity"), x = ae("padding"), w = ae("saturate"), S = ae("scale"), C = ae("sepia"), A = ae("skew"), k = ae("space"), M = ae("translate"), N = () => ["auto", "contain", "none"], D = () => ["auto", "hidden", "clip", "visible", "scroll"], R = () => ["auto", G, e], P = () => [G, e], B = () => ["", Mt, Ut], Q = () => ["auto", _n, G], z = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], _ = () => ["solid", "dashed", "dotted", "double", "none"], W = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], F = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], X = () => ["", "0", G], ge = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], ee = () => [_n, G];
1788
1788
  return {
1789
1789
  cacheSize: 500,
1790
1790
  separator: ":",
@@ -1961,63 +1961,63 @@ const ae = (n) => {
1961
1961
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1962
1962
  */
1963
1963
  inset: [{
1964
- inset: [g]
1964
+ inset: [p]
1965
1965
  }],
1966
1966
  /**
1967
1967
  * Right / Left
1968
1968
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1969
1969
  */
1970
1970
  "inset-x": [{
1971
- "inset-x": [g]
1971
+ "inset-x": [p]
1972
1972
  }],
1973
1973
  /**
1974
1974
  * Top / Bottom
1975
1975
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1976
1976
  */
1977
1977
  "inset-y": [{
1978
- "inset-y": [g]
1978
+ "inset-y": [p]
1979
1979
  }],
1980
1980
  /**
1981
1981
  * Start
1982
1982
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1983
1983
  */
1984
1984
  start: [{
1985
- start: [g]
1985
+ start: [p]
1986
1986
  }],
1987
1987
  /**
1988
1988
  * End
1989
1989
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1990
1990
  */
1991
1991
  end: [{
1992
- end: [g]
1992
+ end: [p]
1993
1993
  }],
1994
1994
  /**
1995
1995
  * Top
1996
1996
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1997
1997
  */
1998
1998
  top: [{
1999
- top: [g]
1999
+ top: [p]
2000
2000
  }],
2001
2001
  /**
2002
2002
  * Right
2003
2003
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2004
2004
  */
2005
2005
  right: [{
2006
- right: [g]
2006
+ right: [p]
2007
2007
  }],
2008
2008
  /**
2009
2009
  * Bottom
2010
2010
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2011
2011
  */
2012
2012
  bottom: [{
2013
- bottom: [g]
2013
+ bottom: [p]
2014
2014
  }],
2015
2015
  /**
2016
2016
  * Left
2017
2017
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2018
2018
  */
2019
2019
  left: [{
2020
- left: [g]
2020
+ left: [p]
2021
2021
  }],
2022
2022
  /**
2023
2023
  * Visibility
@@ -2188,7 +2188,7 @@ const ae = (n) => {
2188
2188
  * @see https://tailwindcss.com/docs/justify-content
2189
2189
  */
2190
2190
  "justify-content": [{
2191
- justify: ["normal", ...$()]
2191
+ justify: ["normal", ...F()]
2192
2192
  }],
2193
2193
  /**
2194
2194
  * Justify Items
@@ -2209,7 +2209,7 @@ const ae = (n) => {
2209
2209
  * @see https://tailwindcss.com/docs/align-content
2210
2210
  */
2211
2211
  "align-content": [{
2212
- content: ["normal", ...$(), "baseline"]
2212
+ content: ["normal", ...F(), "baseline"]
2213
2213
  }],
2214
2214
  /**
2215
2215
  * Align Items
@@ -2230,7 +2230,7 @@ const ae = (n) => {
2230
2230
  * @see https://tailwindcss.com/docs/place-content
2231
2231
  */
2232
2232
  "place-content": [{
2233
- "place-content": [...$(), "baseline"]
2233
+ "place-content": [...F(), "baseline"]
2234
2234
  }],
2235
2235
  /**
2236
2236
  * Place Items
@@ -2755,21 +2755,21 @@ const ae = (n) => {
2755
2755
  * @see https://tailwindcss.com/docs/gradient-color-stops
2756
2756
  */
2757
2757
  "gradient-from-pos": [{
2758
- from: [p]
2758
+ from: [g]
2759
2759
  }],
2760
2760
  /**
2761
2761
  * Gradient Color Stops Via Position
2762
2762
  * @see https://tailwindcss.com/docs/gradient-color-stops
2763
2763
  */
2764
2764
  "gradient-via-pos": [{
2765
- via: [p]
2765
+ via: [g]
2766
2766
  }],
2767
2767
  /**
2768
2768
  * Gradient Color Stops To Position
2769
2769
  * @see https://tailwindcss.com/docs/gradient-color-stops
2770
2770
  */
2771
2771
  "gradient-to-pos": [{
2772
- to: [p]
2772
+ to: [g]
2773
2773
  }],
2774
2774
  /**
2775
2775
  * Gradient Color Stops From
@@ -3959,27 +3959,27 @@ function ea(n) {
3959
3959
  const e = n + "CollectionProvider", [t, r] = Tt(e), [i, o] = t(
3960
3960
  e,
3961
3961
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
3962
- ), s = (g) => {
3963
- const { scope: b, children: y } = g, x = ue.useRef(null), w = ue.useRef(/* @__PURE__ */ new Map()).current;
3962
+ ), s = (p) => {
3963
+ const { scope: b, children: y } = p, x = ue.useRef(null), w = ue.useRef(/* @__PURE__ */ new Map()).current;
3964
3964
  return /* @__PURE__ */ v(i, { scope: b, itemMap: w, collectionRef: x, children: y });
3965
3965
  };
3966
3966
  s.displayName = e;
3967
3967
  const l = n + "CollectionSlot", a = /* @__PURE__ */ Yn(l), c = ue.forwardRef(
3968
- (g, b) => {
3969
- const { scope: y, children: x } = g, w = o(l, y), S = q(b, w.collectionRef);
3968
+ (p, b) => {
3969
+ const { scope: y, children: x } = p, w = o(l, y), S = q(b, w.collectionRef);
3970
3970
  return /* @__PURE__ */ v(a, { ref: S, children: x });
3971
3971
  }
3972
3972
  );
3973
3973
  c.displayName = l;
3974
3974
  const u = n + "CollectionItemSlot", h = "data-radix-collection-item", d = /* @__PURE__ */ Yn(u), f = ue.forwardRef(
3975
- (g, b) => {
3976
- const { scope: y, children: x, ...w } = g, S = ue.useRef(null), C = q(b, S), A = o(u, y);
3975
+ (p, b) => {
3976
+ const { scope: y, children: x, ...w } = p, S = ue.useRef(null), C = q(b, S), A = o(u, y);
3977
3977
  return ue.useEffect(() => (A.itemMap.set(S, { ref: S, ...w }), () => void A.itemMap.delete(S))), /* @__PURE__ */ v(d, { [h]: "", ref: C, children: x });
3978
3978
  }
3979
3979
  );
3980
3980
  f.displayName = u;
3981
- function p(g) {
3982
- const b = o(n + "CollectionConsumer", g);
3981
+ function g(p) {
3982
+ const b = o(n + "CollectionConsumer", p);
3983
3983
  return ue.useCallback(() => {
3984
3984
  const x = b.collectionRef.current;
3985
3985
  if (!x) return [];
@@ -3991,16 +3991,16 @@ function ea(n) {
3991
3991
  }
3992
3992
  return [
3993
3993
  { Provider: s, Slot: c, ItemSlot: f },
3994
- p,
3994
+ g,
3995
3995
  r
3996
3996
  ];
3997
3997
  }
3998
- var $0 = m[" useId ".trim().toString()] || (() => {
3999
- }), F0 = 0;
3998
+ var F0 = m[" useId ".trim().toString()] || (() => {
3999
+ }), $0 = 0;
4000
4000
  function _t(n) {
4001
- const [e, t] = m.useState($0());
4001
+ const [e, t] = m.useState(F0());
4002
4002
  return Ce(() => {
4003
- t((r) => r ?? String(F0++));
4003
+ t((r) => r ?? String($0++));
4004
4004
  }, [n]), e ? `radix-${e}` : "";
4005
4005
  }
4006
4006
  var z0 = m[" useInsertionEffect ".trim().toString()] || Ce;
@@ -4052,11 +4052,11 @@ function V0({
4052
4052
  function W0(n) {
4053
4053
  return typeof n == "function";
4054
4054
  }
4055
- var es = "rovingFocusGroup.onEntryFocus", H0 = { bubbles: !1, cancelable: !0 }, ei = "RovingFocusGroup", [$s, Mh, U0] = ea(ei), [j0, Nh] = Tt(
4055
+ var es = "rovingFocusGroup.onEntryFocus", H0 = { bubbles: !1, cancelable: !0 }, ei = "RovingFocusGroup", [Fs, Mh, U0] = ea(ei), [j0, Nh] = Tt(
4056
4056
  ei,
4057
4057
  [U0]
4058
4058
  ), [X0, G0] = j0(ei), Dh = m.forwardRef(
4059
- (n, e) => /* @__PURE__ */ v($s.Provider, { scope: n.__scopeRovingFocusGroup, children: /* @__PURE__ */ v($s.Slot, { scope: n.__scopeRovingFocusGroup, children: /* @__PURE__ */ v(Y0, { ...n, ref: e }) }) })
4059
+ (n, e) => /* @__PURE__ */ v(Fs.Provider, { scope: n.__scopeRovingFocusGroup, children: /* @__PURE__ */ v(Fs.Slot, { scope: n.__scopeRovingFocusGroup, children: /* @__PURE__ */ v(Y0, { ...n, ref: e }) }) })
4060
4060
  );
4061
4061
  Dh.displayName = ei;
4062
4062
  var Y0 = m.forwardRef((n, e) => {
@@ -4071,7 +4071,7 @@ var Y0 = m.forwardRef((n, e) => {
4071
4071
  onEntryFocus: c,
4072
4072
  preventScrollOnEntryFocus: u = !1,
4073
4073
  ...h
4074
- } = n, d = m.useRef(null), f = q(e, d), p = Jr(o), [g, b] = Zt({
4074
+ } = n, d = m.useRef(null), f = q(e, d), g = Jr(o), [p, b] = Zt({
4075
4075
  prop: s,
4076
4076
  defaultProp: l ?? null,
4077
4077
  onChange: a,
@@ -4086,9 +4086,9 @@ var Y0 = m.forwardRef((n, e) => {
4086
4086
  {
4087
4087
  scope: t,
4088
4088
  orientation: r,
4089
- dir: p,
4089
+ dir: g,
4090
4090
  loop: i,
4091
- currentTabStopId: g,
4091
+ currentTabStopId: p,
4092
4092
  onItemFocus: m.useCallback(
4093
4093
  (M) => b(M),
4094
4094
  [b]
@@ -4110,15 +4110,15 @@ var Y0 = m.forwardRef((n, e) => {
4110
4110
  ...h,
4111
4111
  ref: f,
4112
4112
  style: { outline: "none", ...n.style },
4113
- onMouseDown: F(n.onMouseDown, () => {
4113
+ onMouseDown: $(n.onMouseDown, () => {
4114
4114
  C.current = !0;
4115
4115
  }),
4116
- onFocus: F(n.onFocus, (M) => {
4116
+ onFocus: $(n.onFocus, (M) => {
4117
4117
  const N = !C.current;
4118
4118
  if (M.target === M.currentTarget && N && !y) {
4119
4119
  const D = new CustomEvent(es, H0);
4120
4120
  if (M.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
4121
- const R = S().filter((_) => _.focusable), P = R.find((_) => _.active), B = R.find((_) => _.id === g), z = [P, B, ...R].filter(
4121
+ const R = S().filter((_) => _.focusable), P = R.find((_) => _.active), B = R.find((_) => _.id === p), z = [P, B, ...R].filter(
4122
4122
  Boolean
4123
4123
  ).map((_) => _.ref.current);
4124
4124
  Bh(z, u);
@@ -4126,7 +4126,7 @@ var Y0 = m.forwardRef((n, e) => {
4126
4126
  }
4127
4127
  C.current = !1;
4128
4128
  }),
4129
- onBlur: F(n.onBlur, () => x(!1))
4129
+ onBlur: $(n.onBlur, () => x(!1))
4130
4130
  }
4131
4131
  )
4132
4132
  }
@@ -4140,12 +4140,12 @@ var Y0 = m.forwardRef((n, e) => {
4140
4140
  tabStopId: o,
4141
4141
  children: s,
4142
4142
  ...l
4143
- } = n, a = _t(), c = o || a, u = G0(Ih, t), h = u.currentTabStopId === c, d = Mh(t), { onFocusableItemAdd: f, onFocusableItemRemove: p, currentTabStopId: g } = u;
4143
+ } = n, a = _t(), c = o || a, u = G0(Ih, t), h = u.currentTabStopId === c, d = Mh(t), { onFocusableItemAdd: f, onFocusableItemRemove: g, currentTabStopId: p } = u;
4144
4144
  return m.useEffect(() => {
4145
4145
  if (r)
4146
- return f(), () => p();
4147
- }, [r, f, p]), /* @__PURE__ */ v(
4148
- $s.ItemSlot,
4146
+ return f(), () => g();
4147
+ }, [r, f, g]), /* @__PURE__ */ v(
4148
+ Fs.ItemSlot,
4149
4149
  {
4150
4150
  scope: t,
4151
4151
  id: c,
@@ -4158,11 +4158,11 @@ var Y0 = m.forwardRef((n, e) => {
4158
4158
  "data-orientation": u.orientation,
4159
4159
  ...l,
4160
4160
  ref: e,
4161
- onMouseDown: F(n.onMouseDown, (b) => {
4161
+ onMouseDown: $(n.onMouseDown, (b) => {
4162
4162
  r ? u.onItemFocus(c) : b.preventDefault();
4163
4163
  }),
4164
- onFocus: F(n.onFocus, () => u.onItemFocus(c)),
4165
- onKeyDown: F(n.onKeyDown, (b) => {
4164
+ onFocus: $(n.onFocus, () => u.onItemFocus(c)),
4165
+ onKeyDown: $(n.onKeyDown, (b) => {
4166
4166
  if (b.key === "Tab" && b.shiftKey) {
4167
4167
  u.onItemShiftTab();
4168
4168
  return;
@@ -4182,7 +4182,7 @@ var Y0 = m.forwardRef((n, e) => {
4182
4182
  setTimeout(() => Bh(w));
4183
4183
  }
4184
4184
  }),
4185
- children: typeof s == "function" ? s({ isCurrentTabStop: h, hasTabStop: g != null }) : s
4185
+ children: typeof s == "function" ? s({ isCurrentTabStop: h, hasTabStop: p != null }) : s
4186
4186
  }
4187
4187
  )
4188
4188
  }
@@ -4259,9 +4259,9 @@ var ev = Dh, tv = Lh, xo = "Tabs", [nv] = Tt(xo, [
4259
4259
  }
4260
4260
  );
4261
4261
  _h.displayName = xo;
4262
- var $h = "TabsList", Fh = m.forwardRef(
4262
+ var Fh = "TabsList", $h = m.forwardRef(
4263
4263
  (n, e) => {
4264
- const { __scopeTabs: t, loop: r = !0, ...i } = n, o = ta($h, t), s = Qh(t);
4264
+ const { __scopeTabs: t, loop: r = !0, ...i } = n, o = ta(Fh, t), s = Qh(t);
4265
4265
  return /* @__PURE__ */ v(
4266
4266
  ev,
4267
4267
  {
@@ -4283,7 +4283,7 @@ var $h = "TabsList", Fh = m.forwardRef(
4283
4283
  );
4284
4284
  }
4285
4285
  );
4286
- Fh.displayName = $h;
4286
+ $h.displayName = Fh;
4287
4287
  var zh = "TabsTrigger", Vh = m.forwardRef(
4288
4288
  (n, e) => {
4289
4289
  const { __scopeTabs: t, value: r, disabled: i = !1, ...o } = n, s = ta(zh, t), l = Qh(t), a = Uh(s.baseId, r), c = jh(s.baseId, r), u = r === s.value;
@@ -4307,13 +4307,13 @@ var zh = "TabsTrigger", Vh = m.forwardRef(
4307
4307
  id: a,
4308
4308
  ...o,
4309
4309
  ref: e,
4310
- onMouseDown: F(n.onMouseDown, (h) => {
4310
+ onMouseDown: $(n.onMouseDown, (h) => {
4311
4311
  !i && h.button === 0 && h.ctrlKey === !1 ? s.onValueChange(r) : h.preventDefault();
4312
4312
  }),
4313
- onKeyDown: F(n.onKeyDown, (h) => {
4313
+ onKeyDown: $(n.onKeyDown, (h) => {
4314
4314
  [" ", "Enter"].includes(h.key) && s.onValueChange(r);
4315
4315
  }),
4316
- onFocus: F(n.onFocus, () => {
4316
+ onFocus: $(n.onFocus, () => {
4317
4317
  const h = s.activationMode !== "manual";
4318
4318
  !u && !i && h && s.onValueChange(r);
4319
4319
  })
@@ -4358,7 +4358,7 @@ function Uh(n, e) {
4358
4358
  function jh(n, e) {
4359
4359
  return `${n}-content-${e}`;
4360
4360
  }
4361
- var iv = _h, Xh = Fh, Gh = Vh, Yh = Hh;
4361
+ var iv = _h, Xh = $h, Gh = Vh, Yh = Hh;
4362
4362
  const ov = iv, qh = m.forwardRef(({ className: n, ...e }, t) => /* @__PURE__ */ v(
4363
4363
  Xh,
4364
4364
  {
@@ -4371,7 +4371,7 @@ const ov = iv, qh = m.forwardRef(({ className: n, ...e }, t) => /* @__PURE__ */
4371
4371
  }
4372
4372
  ));
4373
4373
  qh.displayName = Xh.displayName;
4374
- const Fs = m.forwardRef(({ className: n, ...e }, t) => /* @__PURE__ */ v(
4374
+ const $s = m.forwardRef(({ className: n, ...e }, t) => /* @__PURE__ */ v(
4375
4375
  Gh,
4376
4376
  {
4377
4377
  ref: t,
@@ -4382,7 +4382,7 @@ const Fs = m.forwardRef(({ className: n, ...e }, t) => /* @__PURE__ */ v(
4382
4382
  ...e
4383
4383
  }
4384
4384
  ));
4385
- Fs.displayName = Gh.displayName;
4385
+ $s.displayName = Gh.displayName;
4386
4386
  const zs = m.forwardRef(({ className: n, ...e }, t) => /* @__PURE__ */ v(
4387
4387
  Yh,
4388
4388
  {
@@ -4418,7 +4418,7 @@ var lv = "DismissableLayer", Vs = "dismissableLayer.update", av = "dismissableLa
4418
4418
  onInteractOutside: s,
4419
4419
  onDismiss: l,
4420
4420
  ...a
4421
- } = n, c = m.useContext(Kh), [u, h] = m.useState(null), d = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, f] = m.useState({}), p = q(e, (k) => h(k)), g = Array.from(c.layers), [b] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), y = g.indexOf(b), x = u ? g.indexOf(u) : -1, w = c.layersWithOutsidePointerEventsDisabled.size > 0, S = x >= y, C = dv((k) => {
4421
+ } = n, c = m.useContext(Kh), [u, h] = m.useState(null), d = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, f] = m.useState({}), g = q(e, (k) => h(k)), p = Array.from(c.layers), [b] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), y = p.indexOf(b), x = u ? p.indexOf(u) : -1, w = c.layersWithOutsidePointerEventsDisabled.size > 0, S = x >= y, C = dv((k) => {
4422
4422
  const M = k.target, N = [...c.branches].some((D) => D.contains(M));
4423
4423
  !S || N || (i == null || i(k), s == null || s(k), k.defaultPrevented || l == null || l());
4424
4424
  }, d), A = fv((k) => {
@@ -4441,14 +4441,14 @@ var lv = "DismissableLayer", Vs = "dismissableLayer.update", av = "dismissableLa
4441
4441
  H.div,
4442
4442
  {
4443
4443
  ...a,
4444
- ref: p,
4444
+ ref: g,
4445
4445
  style: {
4446
4446
  pointerEvents: w ? S ? "auto" : "none" : void 0,
4447
4447
  ...n.style
4448
4448
  },
4449
- onFocusCapture: F(n.onFocusCapture, A.onFocusCapture),
4450
- onBlurCapture: F(n.onBlurCapture, A.onBlurCapture),
4451
- onPointerDownCapture: F(
4449
+ onFocusCapture: $(n.onFocusCapture, A.onFocusCapture),
4450
+ onBlurCapture: $(n.onBlurCapture, A.onBlurCapture),
4451
+ onPointerDownCapture: $(
4452
4452
  n.onPointerDownCapture,
4453
4453
  C.onPointerDownCapture
4454
4454
  )
@@ -4527,7 +4527,7 @@ var ts = "focusScope.autoFocusOnMount", ns = "focusScope.autoFocusOnUnmount", ic
4527
4527
  onMountAutoFocus: i,
4528
4528
  onUnmountAutoFocus: o,
4529
4529
  ...s
4530
- } = n, [l, a] = m.useState(null), c = Ie(i), u = Ie(o), h = m.useRef(null), d = q(e, (g) => a(g)), f = m.useRef({
4530
+ } = n, [l, a] = m.useState(null), c = Ie(i), u = Ie(o), h = m.useRef(null), d = q(e, (p) => a(p)), f = m.useRef({
4531
4531
  paused: !1,
4532
4532
  pause() {
4533
4533
  this.paused = !0;
@@ -4538,7 +4538,7 @@ var ts = "focusScope.autoFocusOnMount", ns = "focusScope.autoFocusOnUnmount", ic
4538
4538
  }).current;
4539
4539
  m.useEffect(() => {
4540
4540
  if (r) {
4541
- let g = function(w) {
4541
+ let p = function(w) {
4542
4542
  if (f.paused || !l) return;
4543
4543
  const S = w.target;
4544
4544
  l.contains(S) ? h.current = S : Xt(h.current, { select: !0 });
@@ -4551,40 +4551,40 @@ var ts = "focusScope.autoFocusOnMount", ns = "focusScope.autoFocusOnUnmount", ic
4551
4551
  for (const C of w)
4552
4552
  C.removedNodes.length > 0 && Xt(l);
4553
4553
  };
4554
- document.addEventListener("focusin", g), document.addEventListener("focusout", b);
4554
+ document.addEventListener("focusin", p), document.addEventListener("focusout", b);
4555
4555
  const x = new MutationObserver(y);
4556
4556
  return l && x.observe(l, { childList: !0, subtree: !0 }), () => {
4557
- document.removeEventListener("focusin", g), document.removeEventListener("focusout", b), x.disconnect();
4557
+ document.removeEventListener("focusin", p), document.removeEventListener("focusout", b), x.disconnect();
4558
4558
  };
4559
4559
  }
4560
4560
  }, [r, l, f.paused]), m.useEffect(() => {
4561
4561
  if (l) {
4562
4562
  sc.add(f);
4563
- const g = document.activeElement;
4564
- if (!l.contains(g)) {
4563
+ const p = document.activeElement;
4564
+ if (!l.contains(p)) {
4565
4565
  const y = new CustomEvent(ts, ic);
4566
- l.addEventListener(ts, c), l.dispatchEvent(y), y.defaultPrevented || (gv(wv(Jh(l)), { select: !0 }), document.activeElement === g && Xt(l));
4566
+ l.addEventListener(ts, c), l.dispatchEvent(y), y.defaultPrevented || (gv(wv(Jh(l)), { select: !0 }), document.activeElement === p && Xt(l));
4567
4567
  }
4568
4568
  return () => {
4569
4569
  l.removeEventListener(ts, c), setTimeout(() => {
4570
4570
  const y = new CustomEvent(ns, ic);
4571
- l.addEventListener(ns, u), l.dispatchEvent(y), y.defaultPrevented || Xt(g ?? document.body, { select: !0 }), l.removeEventListener(ns, u), sc.remove(f);
4571
+ l.addEventListener(ns, u), l.dispatchEvent(y), y.defaultPrevented || Xt(p ?? document.body, { select: !0 }), l.removeEventListener(ns, u), sc.remove(f);
4572
4572
  }, 0);
4573
4573
  };
4574
4574
  }
4575
4575
  }, [l, c, u, f]);
4576
- const p = m.useCallback(
4577
- (g) => {
4576
+ const g = m.useCallback(
4577
+ (p) => {
4578
4578
  if (!t && !r || f.paused) return;
4579
- const b = g.key === "Tab" && !g.altKey && !g.ctrlKey && !g.metaKey, y = document.activeElement;
4579
+ const b = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, y = document.activeElement;
4580
4580
  if (b && y) {
4581
- const x = g.currentTarget, [w, S] = mv(x);
4582
- w && S ? !g.shiftKey && y === S ? (g.preventDefault(), t && Xt(w, { select: !0 })) : g.shiftKey && y === w && (g.preventDefault(), t && Xt(S, { select: !0 })) : y === x && g.preventDefault();
4581
+ const x = p.currentTarget, [w, S] = mv(x);
4582
+ w && S ? !p.shiftKey && y === S ? (p.preventDefault(), t && Xt(w, { select: !0 })) : p.shiftKey && y === w && (p.preventDefault(), t && Xt(S, { select: !0 })) : y === x && p.preventDefault();
4583
4583
  }
4584
4584
  },
4585
4585
  [t, r, f.paused]
4586
4586
  );
4587
- return /* @__PURE__ */ v(H.div, { tabIndex: -1, ...s, ref: d, onKeyDown: p });
4587
+ return /* @__PURE__ */ v(H.div, { tabIndex: -1, ...s, ref: d, onKeyDown: g });
4588
4588
  });
4589
4589
  Oo.displayName = pv;
4590
4590
  function gv(n, { select: e = !1 } = {}) {
@@ -4819,11 +4819,11 @@ var nd = Ev(), os = function() {
4819
4819
  onScrollCapture: os,
4820
4820
  onWheelCapture: os,
4821
4821
  onTouchMoveCapture: os
4822
- }), i = r[0], o = r[1], s = n.forwardProps, l = n.children, a = n.className, c = n.removeScrollBar, u = n.enabled, h = n.shards, d = n.sideCar, f = n.noRelative, p = n.noIsolation, g = n.inert, b = n.allowPinchZoom, y = n.as, x = y === void 0 ? "div" : y, w = n.gapMode, S = ed(n, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = d, A = Pv([t, e]), k = wt(wt({}, S), i);
4822
+ }), i = r[0], o = r[1], s = n.forwardProps, l = n.children, a = n.className, c = n.removeScrollBar, u = n.enabled, h = n.shards, d = n.sideCar, f = n.noRelative, g = n.noIsolation, p = n.inert, b = n.allowPinchZoom, y = n.as, x = y === void 0 ? "div" : y, w = n.gapMode, S = ed(n, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = d, A = Pv([t, e]), k = wt(wt({}, S), i);
4823
4823
  return m.createElement(
4824
4824
  m.Fragment,
4825
4825
  null,
4826
- u && m.createElement(C, { sideCar: nd, removeScrollBar: c, shards: h, noRelative: f, noIsolation: p, inert: g, setCallbacks: o, allowPinchZoom: !!b, lockRef: t, gapMode: w }),
4826
+ u && m.createElement(C, { sideCar: nd, removeScrollBar: c, shards: h, noRelative: f, noIsolation: g, inert: p, setCallbacks: o, allowPinchZoom: !!b, lockRef: t, gapMode: w }),
4827
4827
  s ? m.cloneElement(m.Children.only(l), wt(wt({}, k), { ref: A })) : m.createElement(x, wt({}, k, { className: a, ref: A }), l)
4828
4828
  );
4829
4829
  });
@@ -4887,27 +4887,27 @@ var Bv = function() {
4887
4887
  gap: 0
4888
4888
  }, ss = function(n) {
4889
4889
  return parseInt(n || "", 10) || 0;
4890
- }, $v = function(n) {
4890
+ }, Fv = function(n) {
4891
4891
  var e = window.getComputedStyle(document.body), t = e[n === "padding" ? "paddingLeft" : "marginLeft"], r = e[n === "padding" ? "paddingTop" : "marginTop"], i = e[n === "padding" ? "paddingRight" : "marginRight"];
4892
4892
  return [ss(t), ss(r), ss(i)];
4893
- }, Fv = function(n) {
4893
+ }, $v = function(n) {
4894
4894
  if (n === void 0 && (n = "margin"), typeof window > "u")
4895
4895
  return _v;
4896
- var e = $v(n), t = document.documentElement.clientWidth, r = window.innerWidth;
4896
+ var e = Fv(n), t = document.documentElement.clientWidth, r = window.innerWidth;
4897
4897
  return {
4898
4898
  left: e[0],
4899
4899
  top: e[1],
4900
4900
  right: e[2],
4901
4901
  gap: Math.max(0, r - t + e[2] - e[0])
4902
4902
  };
4903
- }, zv = rd(), $n = "data-scroll-locked", Vv = function(n, e, t, r) {
4903
+ }, zv = rd(), Fn = "data-scroll-locked", Vv = function(n, e, t, r) {
4904
4904
  var i = n.left, o = n.top, s = n.right, l = n.gap;
4905
4905
  return t === void 0 && (t = "margin"), `
4906
4906
  .`.concat(Ov, ` {
4907
4907
  overflow: hidden `).concat(r, `;
4908
4908
  padding-right: `).concat(l, "px ").concat(r, `;
4909
4909
  }
4910
- body[`).concat($n, `] {
4910
+ body[`).concat(Fn, `] {
4911
4911
  overflow: hidden `).concat(r, `;
4912
4912
  overscroll-behavior: contain;
4913
4913
  `).concat([
@@ -4940,25 +4940,25 @@ var Bv = function() {
4940
4940
  margin-right: 0 `).concat(r, `;
4941
4941
  }
4942
4942
 
4943
- body[`).concat($n, `] {
4943
+ body[`).concat(Fn, `] {
4944
4944
  `).concat(kv, ": ").concat(l, `px;
4945
4945
  }
4946
4946
  `);
4947
4947
  }, uc = function() {
4948
- var n = parseInt(document.body.getAttribute($n) || "0", 10);
4948
+ var n = parseInt(document.body.getAttribute(Fn) || "0", 10);
4949
4949
  return isFinite(n) ? n : 0;
4950
4950
  }, Wv = function() {
4951
4951
  m.useEffect(function() {
4952
- return document.body.setAttribute($n, (uc() + 1).toString()), function() {
4952
+ return document.body.setAttribute(Fn, (uc() + 1).toString()), function() {
4953
4953
  var n = uc() - 1;
4954
- n <= 0 ? document.body.removeAttribute($n) : document.body.setAttribute($n, n.toString());
4954
+ n <= 0 ? document.body.removeAttribute(Fn) : document.body.setAttribute(Fn, n.toString());
4955
4955
  };
4956
4956
  }, []);
4957
4957
  }, Hv = function(n) {
4958
4958
  var e = n.noRelative, t = n.noImportant, r = n.gapMode, i = r === void 0 ? "margin" : r;
4959
4959
  Wv();
4960
4960
  var o = m.useMemo(function() {
4961
- return Fv(i);
4961
+ return $v(i);
4962
4962
  }, [i]);
4963
4963
  return m.createElement(zv, { styles: Vv(o, !e, i, t ? "" : "!important") });
4964
4964
  }, Ws = !1;
@@ -5026,8 +5026,8 @@ var Mn = Ws ? { passive: !1 } : !1, Uv = function(n) {
5026
5026
  do {
5027
5027
  if (!l)
5028
5028
  break;
5029
- var f = sd(n, l), p = f[0], g = f[1], b = f[2], y = g - b - o * p;
5030
- (p || y) && od(n, l) && (h += y, d += p);
5029
+ var f = sd(n, l), g = f[0], p = f[1], b = f[2], y = p - b - o * g;
5030
+ (g || y) && od(n, l) && (h += y, d += g);
5031
5031
  var x = l.parentNode;
5032
5032
  l = x && x.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? x.host : x;
5033
5033
  } while (
@@ -5057,21 +5057,21 @@ function ty(n) {
5057
5057
  }, [n]), m.useEffect(function() {
5058
5058
  if (n.inert) {
5059
5059
  document.body.classList.add("block-interactivity-".concat(i));
5060
- var g = Sv([n.lockRef.current], (n.shards || []).map(fc), !0).filter(Boolean);
5061
- return g.forEach(function(b) {
5060
+ var p = Sv([n.lockRef.current], (n.shards || []).map(fc), !0).filter(Boolean);
5061
+ return p.forEach(function(b) {
5062
5062
  return b.classList.add("allow-interactivity-".concat(i));
5063
5063
  }), function() {
5064
- document.body.classList.remove("block-interactivity-".concat(i)), g.forEach(function(b) {
5064
+ document.body.classList.remove("block-interactivity-".concat(i)), p.forEach(function(b) {
5065
5065
  return b.classList.remove("allow-interactivity-".concat(i));
5066
5066
  });
5067
5067
  };
5068
5068
  }
5069
5069
  }, [n.inert, n.lockRef.current, n.shards]);
5070
- var l = m.useCallback(function(g, b) {
5071
- if ("touches" in g && g.touches.length === 2 || g.type === "wheel" && g.ctrlKey)
5070
+ var l = m.useCallback(function(p, b) {
5071
+ if ("touches" in p && p.touches.length === 2 || p.type === "wheel" && p.ctrlKey)
5072
5072
  return !s.current.allowPinchZoom;
5073
- var y = di(g), x = t.current, w = "deltaX" in g ? g.deltaX : x[0] - y[0], S = "deltaY" in g ? g.deltaY : x[1] - y[1], C, A = g.target, k = Math.abs(w) > Math.abs(S) ? "h" : "v";
5074
- if ("touches" in g && k === "h" && A.type === "range")
5073
+ var y = di(p), x = t.current, w = "deltaX" in p ? p.deltaX : x[0] - y[0], S = "deltaY" in p ? p.deltaY : x[1] - y[1], C, A = p.target, k = Math.abs(w) > Math.abs(S) ? "h" : "v";
5074
+ if ("touches" in p && k === "h" && A.type === "range")
5075
5075
  return !1;
5076
5076
  var M = window.getSelection(), N = M && M.anchorNode, D = N ? N === A || N.contains(A) : !1;
5077
5077
  if (D)
@@ -5081,12 +5081,12 @@ function ty(n) {
5081
5081
  return !0;
5082
5082
  if (R ? C = k : (C = k === "v" ? "h" : "v", R = hc(k, A)), !R)
5083
5083
  return !1;
5084
- if (!r.current && "changedTouches" in g && (w || S) && (r.current = C), !C)
5084
+ if (!r.current && "changedTouches" in p && (w || S) && (r.current = C), !C)
5085
5085
  return !0;
5086
5086
  var P = r.current || C;
5087
- return Kv(P, b, g, P === "h" ? w : S);
5088
- }, []), a = m.useCallback(function(g) {
5089
- var b = g;
5087
+ return Kv(P, b, p, P === "h" ? w : S);
5088
+ }, []), a = m.useCallback(function(p) {
5089
+ var b = p;
5090
5090
  if (!(!Nn.length || Nn[Nn.length - 1] !== o)) {
5091
5091
  var y = "deltaY" in b ? dc(b) : di(b), x = e.current.filter(function(C) {
5092
5092
  return C.name === b.type && (C.target === b.target || b.target === C.shadowParent) && Zv(C.delta, y);
@@ -5102,19 +5102,19 @@ function ty(n) {
5102
5102
  S && b.cancelable && b.preventDefault();
5103
5103
  }
5104
5104
  }
5105
- }, []), c = m.useCallback(function(g, b, y, x) {
5106
- var w = { name: g, delta: b, target: y, should: x, shadowParent: ny(y) };
5105
+ }, []), c = m.useCallback(function(p, b, y, x) {
5106
+ var w = { name: p, delta: b, target: y, should: x, shadowParent: ny(y) };
5107
5107
  e.current.push(w), setTimeout(function() {
5108
5108
  e.current = e.current.filter(function(S) {
5109
5109
  return S !== w;
5110
5110
  });
5111
5111
  }, 1);
5112
- }, []), u = m.useCallback(function(g) {
5113
- t.current = di(g), r.current = void 0;
5114
- }, []), h = m.useCallback(function(g) {
5115
- c(g.type, dc(g), g.target, l(g, n.lockRef.current));
5116
- }, []), d = m.useCallback(function(g) {
5117
- c(g.type, di(g), g.target, l(g, n.lockRef.current));
5112
+ }, []), u = m.useCallback(function(p) {
5113
+ t.current = di(p), r.current = void 0;
5114
+ }, []), h = m.useCallback(function(p) {
5115
+ c(p.type, dc(p), p.target, l(p, n.lockRef.current));
5116
+ }, []), d = m.useCallback(function(p) {
5117
+ c(p.type, di(p), p.target, l(p, n.lockRef.current));
5118
5118
  }, []);
5119
5119
  m.useEffect(function() {
5120
5120
  return Nn.push(o), n.setCallbacks({
@@ -5122,16 +5122,16 @@ function ty(n) {
5122
5122
  onWheelCapture: h,
5123
5123
  onTouchMoveCapture: d
5124
5124
  }), document.addEventListener("wheel", a, Mn), document.addEventListener("touchmove", a, Mn), document.addEventListener("touchstart", u, Mn), function() {
5125
- Nn = Nn.filter(function(g) {
5126
- return g !== o;
5125
+ Nn = Nn.filter(function(p) {
5126
+ return p !== o;
5127
5127
  }), document.removeEventListener("wheel", a, Mn), document.removeEventListener("touchmove", a, Mn), document.removeEventListener("touchstart", u, Mn);
5128
5128
  };
5129
5129
  }, []);
5130
- var f = n.removeScrollBar, p = n.inert;
5130
+ var f = n.removeScrollBar, g = n.inert;
5131
5131
  return m.createElement(
5132
5132
  m.Fragment,
5133
5133
  null,
5134
- p ? m.createElement(o, { styles: Jv(i) }) : null,
5134
+ g ? m.createElement(o, { styles: Jv(i) }) : null,
5135
5135
  f ? m.createElement(Hv, { noRelative: n.noRelative, gapMode: n.gapMode }) : null
5136
5136
  );
5137
5137
  }
@@ -5174,8 +5174,8 @@ var iy = function(n) {
5174
5174
  u(d);
5175
5175
  else
5176
5176
  try {
5177
- var f = d.getAttribute(r), p = f !== null && f !== "false", g = (Dn.get(d) || 0) + 1, b = (o.get(d) || 0) + 1;
5178
- Dn.set(d, g), o.set(d, b), s.push(d), g === 1 && p && fi.set(d, !0), b === 1 && d.setAttribute(t, "true"), p || d.setAttribute(r, "true");
5177
+ var f = d.getAttribute(r), g = f !== null && f !== "false", p = (Dn.get(d) || 0) + 1, b = (o.get(d) || 0) + 1;
5178
+ Dn.set(d, p), o.set(d, b), s.push(d), p === 1 && g && fi.set(d, !0), b === 1 && d.setAttribute(t, "true"), g || d.setAttribute(r, "true");
5179
5179
  } catch (y) {
5180
5180
  console.error("aria-hidden: cannot operate on ", d, y);
5181
5181
  }
@@ -5238,7 +5238,7 @@ var ud = "DialogTrigger", ay = m.forwardRef(
5238
5238
  "data-state": sa(i.open),
5239
5239
  ...r,
5240
5240
  ref: o,
5241
- onClick: F(n.onClick, i.onOpenToggle)
5241
+ onClick: $(n.onClick, i.onOpenToggle)
5242
5242
  }
5243
5243
  );
5244
5244
  }
@@ -5295,15 +5295,15 @@ var dy = m.forwardRef(
5295
5295
  ref: i,
5296
5296
  trapFocus: t.open,
5297
5297
  disableOutsidePointerEvents: !0,
5298
- onCloseAutoFocus: F(n.onCloseAutoFocus, (o) => {
5298
+ onCloseAutoFocus: $(n.onCloseAutoFocus, (o) => {
5299
5299
  var s;
5300
5300
  o.preventDefault(), (s = t.triggerRef.current) == null || s.focus();
5301
5301
  }),
5302
- onPointerDownOutside: F(n.onPointerDownOutside, (o) => {
5302
+ onPointerDownOutside: $(n.onPointerDownOutside, (o) => {
5303
5303
  const s = o.detail.originalEvent, l = s.button === 0 && s.ctrlKey === !0;
5304
5304
  (s.button === 2 || l) && o.preventDefault();
5305
5305
  }),
5306
- onFocusOutside: F(
5306
+ onFocusOutside: $(
5307
5307
  n.onFocusOutside,
5308
5308
  (o) => o.preventDefault()
5309
5309
  )
@@ -5389,7 +5389,7 @@ var yd = "DialogClose", wd = m.forwardRef(
5389
5389
  type: "button",
5390
5390
  ...r,
5391
5391
  ref: e,
5392
- onClick: F(n.onClick, () => i.onOpenChange(!1))
5392
+ onClick: $(n.onClick, () => i.onOpenChange(!1))
5393
5393
  }
5394
5394
  );
5395
5395
  }
@@ -5398,7 +5398,7 @@ wd.displayName = yd;
5398
5398
  function sa(n) {
5399
5399
  return n ? "open" : "closed";
5400
5400
  }
5401
- var xd = "DialogTitleWarning", [eA, Sd] = Mb(xd, {
5401
+ var xd = "DialogTitleWarning", [tA, Sd] = Mb(xd, {
5402
5402
  contentName: Sn,
5403
5403
  titleName: oa,
5404
5404
  docsSlug: "dialog"
@@ -5505,7 +5505,7 @@ var To = "Switch", [Sy] = Tt(To), [Oy, ky] = Sy(To), Nd = m.forwardRef(
5505
5505
  onCheckedChange: c,
5506
5506
  form: u,
5507
5507
  ...h
5508
- } = n, [d, f] = m.useState(null), p = q(e, (w) => f(w)), g = m.useRef(!1), b = d ? u || !!d.closest("form") : !0, [y, x] = Zt({
5508
+ } = n, [d, f] = m.useState(null), g = q(e, (w) => f(w)), p = m.useRef(!1), b = d ? u || !!d.closest("form") : !0, [y, x] = Zt({
5509
5509
  prop: i,
5510
5510
  defaultProp: o ?? !1,
5511
5511
  onChange: c,
@@ -5524,9 +5524,9 @@ var To = "Switch", [Sy] = Tt(To), [Oy, ky] = Sy(To), Nd = m.forwardRef(
5524
5524
  disabled: l,
5525
5525
  value: a,
5526
5526
  ...h,
5527
- ref: p,
5528
- onClick: F(n.onClick, (w) => {
5529
- x((S) => !S), b && (g.current = w.isPropagationStopped(), g.current || w.stopPropagation());
5527
+ ref: g,
5528
+ onClick: $(n.onClick, (w) => {
5529
+ x((S) => !S), b && (p.current = w.isPropagationStopped(), p.current || w.stopPropagation());
5530
5530
  })
5531
5531
  }
5532
5532
  ),
@@ -5534,7 +5534,7 @@ var To = "Switch", [Sy] = Tt(To), [Oy, ky] = Sy(To), Nd = m.forwardRef(
5534
5534
  Ld,
5535
5535
  {
5536
5536
  control: d,
5537
- bubbles: !g.current,
5537
+ bubbles: !p.current,
5538
5538
  name: r,
5539
5539
  value: a,
5540
5540
  checked: y,
@@ -5580,8 +5580,8 @@ var Cy = "SwitchBubbleInput", Ld = m.forwardRef(
5580
5580
  "checked"
5581
5581
  ).set;
5582
5582
  if (a !== t && f) {
5583
- const p = new Event("click", { bubbles: r });
5584
- f.call(u, t), u.dispatchEvent(p);
5583
+ const g = new Event("click", { bubbles: r });
5584
+ f.call(u, t), u.dispatchEvent(g);
5585
5585
  }
5586
5586
  }, [a, t, r]), /* @__PURE__ */ v(
5587
5587
  "input",
@@ -5707,7 +5707,7 @@ function Ly(n) {
5707
5707
  ...n
5708
5708
  };
5709
5709
  }
5710
- function $d(n) {
5710
+ function Fd(n) {
5711
5711
  return typeof n != "number" ? Ly(n) : {
5712
5712
  top: n,
5713
5713
  right: n,
@@ -5797,7 +5797,7 @@ async function By(n, e) {
5797
5797
  elementContext: h = "floating",
5798
5798
  altBoundary: d = !1,
5799
5799
  padding: f = 0
5800
- } = zt(e, n), p = $d(f), b = l[d ? h === "floating" ? "reference" : "floating" : h], y = qi(await o.getClippingRect({
5800
+ } = zt(e, n), g = Fd(f), b = l[d ? h === "floating" ? "reference" : "floating" : h], y = qi(await o.getClippingRect({
5801
5801
  element: (t = await (o.isElement == null ? void 0 : o.isElement(b))) == null || t ? b : b.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(l.floating)),
5802
5802
  boundary: c,
5803
5803
  rootBoundary: u,
@@ -5820,10 +5820,10 @@ async function By(n, e) {
5820
5820
  strategy: a
5821
5821
  }) : x);
5822
5822
  return {
5823
- top: (y.top - C.top + p.top) / S.y,
5824
- bottom: (C.bottom - y.bottom + p.bottom) / S.y,
5825
- left: (y.left - C.left + p.left) / S.x,
5826
- right: (C.right - y.right + p.right) / S.x
5823
+ top: (y.top - C.top + g.top) / S.y,
5824
+ bottom: (C.bottom - y.bottom + g.bottom) / S.y,
5825
+ left: (y.left - C.left + g.left) / S.x,
5826
+ right: (C.right - y.right + g.right) / S.x
5827
5827
  };
5828
5828
  }
5829
5829
  const Qy = 50, _y = async (n, e, t) => {
@@ -5844,9 +5844,9 @@ const Qy = 50, _y = async (n, e, t) => {
5844
5844
  x: u,
5845
5845
  y: h
5846
5846
  } = mc(c, r, a), d = r, f = 0;
5847
- const p = {};
5848
- for (let g = 0; g < o.length; g++) {
5849
- const b = o[g];
5847
+ const g = {};
5848
+ for (let p = 0; p < o.length; p++) {
5849
+ const b = o[p];
5850
5850
  if (!b)
5851
5851
  continue;
5852
5852
  const {
@@ -5863,7 +5863,7 @@ const Qy = 50, _y = async (n, e, t) => {
5863
5863
  initialPlacement: r,
5864
5864
  placement: d,
5865
5865
  strategy: i,
5866
- middlewareData: p,
5866
+ middlewareData: g,
5867
5867
  rects: c,
5868
5868
  platform: l,
5869
5869
  elements: {
@@ -5871,8 +5871,8 @@ const Qy = 50, _y = async (n, e, t) => {
5871
5871
  floating: e
5872
5872
  }
5873
5873
  });
5874
- u = w ?? u, h = S ?? h, p[y] = {
5875
- ...p[y],
5874
+ u = w ?? u, h = S ?? h, g[y] = {
5875
+ ...g[y],
5876
5876
  ...C
5877
5877
  }, A && f < Qy && (f++, typeof A == "object" && (A.placement && (d = A.placement), A.rects && (c = A.rects === !0 ? await s.getElementRects({
5878
5878
  reference: n,
@@ -5881,16 +5881,16 @@ const Qy = 50, _y = async (n, e, t) => {
5881
5881
  }) : A.rects), {
5882
5882
  x: u,
5883
5883
  y: h
5884
- } = mc(c, d, a)), g = -1);
5884
+ } = mc(c, d, a)), p = -1);
5885
5885
  }
5886
5886
  return {
5887
5887
  x: u,
5888
5888
  y: h,
5889
5889
  placement: d,
5890
5890
  strategy: i,
5891
- middlewareData: p
5891
+ middlewareData: g
5892
5892
  };
5893
- }, $y = (n) => ({
5893
+ }, Fy = (n) => ({
5894
5894
  name: "arrow",
5895
5895
  options: n,
5896
5896
  async fn(e) {
@@ -5908,13 +5908,13 @@ const Qy = 50, _y = async (n, e, t) => {
5908
5908
  } = zt(n, e) || {};
5909
5909
  if (c == null)
5910
5910
  return {};
5911
- const h = $d(u), d = {
5911
+ const h = Fd(u), d = {
5912
5912
  x: t,
5913
5913
  y: r
5914
- }, f = ha(i), p = ua(f), g = await s.getDimensions(c), b = f === "y", y = b ? "top" : "left", x = b ? "bottom" : "right", w = b ? "clientHeight" : "clientWidth", S = o.reference[p] + o.reference[f] - d[f] - o.floating[p], C = d[f] - o.reference[f], A = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
5914
+ }, f = ha(i), g = ua(f), p = await s.getDimensions(c), b = f === "y", y = b ? "top" : "left", x = b ? "bottom" : "right", w = b ? "clientHeight" : "clientWidth", S = o.reference[g] + o.reference[f] - d[f] - o.floating[g], C = d[f] - o.reference[f], A = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
5915
5915
  let k = A ? A[w] : 0;
5916
- (!k || !await (s.isElement == null ? void 0 : s.isElement(A))) && (k = l.floating[w] || o.floating[p]);
5917
- const M = S / 2 - C / 2, N = k / 2 - g[p] / 2 - 1, D = Jt(h[y], N), R = Jt(h[x], N), P = D, B = k - g[p] - R, Q = k / 2 - g[p] / 2 + M, z = Hs(P, Q, B), _ = !a.arrow && lr(i) != null && Q !== z && o.reference[p] / 2 - (Q < P ? D : R) - g[p] / 2 < 0, W = _ ? Q < P ? Q - P : Q - B : 0;
5916
+ (!k || !await (s.isElement == null ? void 0 : s.isElement(A))) && (k = l.floating[w] || o.floating[g]);
5917
+ const M = S / 2 - C / 2, N = k / 2 - p[g] / 2 - 1, D = Jt(h[y], N), R = Jt(h[x], N), P = D, B = k - p[g] - R, Q = k / 2 - p[g] / 2 + M, z = Hs(P, Q, B), _ = !a.arrow && lr(i) != null && Q !== z && o.reference[g] / 2 - (Q < P ? D : R) - p[g] / 2 < 0, W = _ ? Q < P ? Q - P : Q - B : 0;
5918
5918
  return {
5919
5919
  [f]: d[f] + W,
5920
5920
  data: {
@@ -5927,7 +5927,7 @@ const Qy = 50, _y = async (n, e, t) => {
5927
5927
  reset: _
5928
5928
  };
5929
5929
  }
5930
- }), Fy = function(n) {
5930
+ }), $y = function(n) {
5931
5931
  return n === void 0 && (n = {}), {
5932
5932
  name: "flip",
5933
5933
  options: n,
@@ -5945,14 +5945,14 @@ const Qy = 50, _y = async (n, e, t) => {
5945
5945
  crossAxis: h = !0,
5946
5946
  fallbackPlacements: d,
5947
5947
  fallbackStrategy: f = "bestFit",
5948
- fallbackAxisSideDirection: p = "none",
5949
- flipAlignment: g = !0,
5948
+ fallbackAxisSideDirection: g = "none",
5949
+ flipAlignment: p = !0,
5950
5950
  ...b
5951
5951
  } = zt(n, e);
5952
5952
  if ((t = o.arrow) != null && t.alignmentOffset)
5953
5953
  return {};
5954
- const y = Vt(i), x = Ot(l), w = Vt(l) === l, S = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), C = d || (w || !g ? [Yi(l)] : Ey(l)), A = p !== "none";
5955
- !d && A && C.push(...Iy(l, g, p, S));
5954
+ const y = Vt(i), x = Ot(l), w = Vt(l) === l, S = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), C = d || (w || !p ? [Yi(l)] : Ey(l)), A = g !== "none";
5955
+ !d && A && C.push(...Iy(l, p, g, S));
5956
5956
  const k = [l, ...C], M = await a.detectOverflow(e, b), N = [];
5957
5957
  let D = ((r = o.flip) == null ? void 0 : r.overflows) || [];
5958
5958
  if (u && N.push(M[y]), h) {
@@ -5967,7 +5967,7 @@ const Qy = 50, _y = async (n, e, t) => {
5967
5967
  const Q = (((R = o.flip) == null ? void 0 : R.index) || 0) + 1, z = k[Q];
5968
5968
  if (z && (!(h === "alignment" ? x !== Ot(z) : !1) || // We leave the current main axis only if every placement on that axis
5969
5969
  // overflows the main axis.
5970
- D.every(($) => Ot($.placement) === x ? $.overflows[0] > 0 : !0)))
5970
+ D.every((F) => Ot(F.placement) === x ? F.overflows[0] > 0 : !0)))
5971
5971
  return {
5972
5972
  data: {
5973
5973
  index: Q,
@@ -5977,20 +5977,20 @@ const Qy = 50, _y = async (n, e, t) => {
5977
5977
  placement: z
5978
5978
  }
5979
5979
  };
5980
- let _ = (P = D.filter((W) => W.overflows[0] <= 0).sort((W, $) => W.overflows[1] - $.overflows[1])[0]) == null ? void 0 : P.placement;
5980
+ let _ = (P = D.filter((W) => W.overflows[0] <= 0).sort((W, F) => W.overflows[1] - F.overflows[1])[0]) == null ? void 0 : P.placement;
5981
5981
  if (!_)
5982
5982
  switch (f) {
5983
5983
  case "bestFit": {
5984
5984
  var B;
5985
- const W = (B = D.filter(($) => {
5985
+ const W = (B = D.filter((F) => {
5986
5986
  if (A) {
5987
- const X = Ot($.placement);
5987
+ const X = Ot(F.placement);
5988
5988
  return X === x || // Create a bias to the `y` side axis due to horizontal
5989
5989
  // reading directions favoring greater width.
5990
5990
  X === "y";
5991
5991
  }
5992
5992
  return !0;
5993
- }).map(($) => [$.placement, $.overflows.filter((X) => X > 0).reduce((X, ge) => X + ge, 0)]).sort(($, X) => $[1] - X[1])[0]) == null ? void 0 : B[0];
5993
+ }).map((F) => [F.placement, F.overflows.filter((X) => X > 0).reduce((X, ge) => X + ge, 0)]).sort((F, X) => F[1] - X[1])[0]) == null ? void 0 : B[0];
5994
5994
  W && (_ = W);
5995
5995
  break;
5996
5996
  }
@@ -6062,17 +6062,17 @@ const zy = function(n) {
6062
6062
  }
6063
6063
  }
6064
6064
  };
6065
- }, Fd = /* @__PURE__ */ new Set(["left", "top"]);
6065
+ }, $d = /* @__PURE__ */ new Set(["left", "top"]);
6066
6066
  async function Vy(n, e) {
6067
6067
  const {
6068
6068
  placement: t,
6069
6069
  platform: r,
6070
6070
  elements: i
6071
- } = n, o = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), s = Vt(t), l = lr(t), a = Ot(t) === "y", c = Fd.has(s) ? -1 : 1, u = o && a ? -1 : 1, h = zt(e, n);
6071
+ } = n, o = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), s = Vt(t), l = lr(t), a = Ot(t) === "y", c = $d.has(s) ? -1 : 1, u = o && a ? -1 : 1, h = zt(e, n);
6072
6072
  let {
6073
6073
  mainAxis: d,
6074
6074
  crossAxis: f,
6075
- alignmentAxis: p
6075
+ alignmentAxis: g
6076
6076
  } = typeof h == "number" ? {
6077
6077
  mainAxis: h,
6078
6078
  crossAxis: 0,
@@ -6082,7 +6082,7 @@ async function Vy(n, e) {
6082
6082
  crossAxis: h.crossAxis || 0,
6083
6083
  alignmentAxis: h.alignmentAxis
6084
6084
  };
6085
- return l && typeof p == "number" && (f = l === "end" ? p * -1 : p), a ? {
6085
+ return l && typeof g == "number" && (f = l === "end" ? g * -1 : g), a ? {
6086
6086
  x: f * u,
6087
6087
  y: d * c
6088
6088
  } : {
@@ -6142,19 +6142,19 @@ const Wy = function(n) {
6142
6142
  x: t,
6143
6143
  y: r
6144
6144
  }, h = await o.detectOverflow(e, c), d = Ot(Vt(i)), f = ca(d);
6145
- let p = u[f], g = u[d];
6145
+ let g = u[f], p = u[d];
6146
6146
  if (s) {
6147
- const y = f === "y" ? "top" : "left", x = f === "y" ? "bottom" : "right", w = p + h[y], S = p - h[x];
6148
- p = Hs(w, p, S);
6147
+ const y = f === "y" ? "top" : "left", x = f === "y" ? "bottom" : "right", w = g + h[y], S = g - h[x];
6148
+ g = Hs(w, g, S);
6149
6149
  }
6150
6150
  if (l) {
6151
- const y = d === "y" ? "top" : "left", x = d === "y" ? "bottom" : "right", w = g + h[y], S = g - h[x];
6152
- g = Hs(w, g, S);
6151
+ const y = d === "y" ? "top" : "left", x = d === "y" ? "bottom" : "right", w = p + h[y], S = p - h[x];
6152
+ p = Hs(w, p, S);
6153
6153
  }
6154
6154
  const b = a.fn({
6155
6155
  ...e,
6156
- [f]: p,
6157
- [d]: g
6156
+ [f]: g,
6157
+ [d]: p
6158
6158
  });
6159
6159
  return {
6160
6160
  ...b,
@@ -6187,14 +6187,14 @@ const Wy = function(n) {
6187
6187
  x: t,
6188
6188
  y: r
6189
6189
  }, h = Ot(i), d = ca(h);
6190
- let f = u[d], p = u[h];
6191
- const g = zt(l, e), b = typeof g == "number" ? {
6192
- mainAxis: g,
6190
+ let f = u[d], g = u[h];
6191
+ const p = zt(l, e), b = typeof p == "number" ? {
6192
+ mainAxis: p,
6193
6193
  crossAxis: 0
6194
6194
  } : {
6195
6195
  mainAxis: 0,
6196
6196
  crossAxis: 0,
6197
- ...g
6197
+ ...p
6198
6198
  };
6199
6199
  if (a) {
6200
6200
  const w = d === "y" ? "height" : "width", S = o.reference[d] - o.floating[w] + b.mainAxis, C = o.reference[d] + o.reference[w] - b.mainAxis;
@@ -6202,12 +6202,12 @@ const Wy = function(n) {
6202
6202
  }
6203
6203
  if (c) {
6204
6204
  var y, x;
6205
- const w = d === "y" ? "width" : "height", S = Fd.has(Vt(i)), C = o.reference[h] - o.floating[w] + (S && ((y = s.offset) == null ? void 0 : y[h]) || 0) + (S ? 0 : b.crossAxis), A = o.reference[h] + o.reference[w] + (S ? 0 : ((x = s.offset) == null ? void 0 : x[h]) || 0) - (S ? b.crossAxis : 0);
6206
- p < C ? p = C : p > A && (p = A);
6205
+ const w = d === "y" ? "width" : "height", S = $d.has(Vt(i)), C = o.reference[h] - o.floating[w] + (S && ((y = s.offset) == null ? void 0 : y[h]) || 0) + (S ? 0 : b.crossAxis), A = o.reference[h] + o.reference[w] + (S ? 0 : ((x = s.offset) == null ? void 0 : x[h]) || 0) - (S ? b.crossAxis : 0);
6206
+ g < C ? g = C : g > A && (g = A);
6207
6207
  }
6208
6208
  return {
6209
6209
  [d]: f,
6210
- [h]: p
6210
+ [h]: g
6211
6211
  };
6212
6212
  }
6213
6213
  };
@@ -6227,16 +6227,16 @@ const Wy = function(n) {
6227
6227
  },
6228
6228
  ...c
6229
6229
  } = zt(n, e), u = await s.detectOverflow(e, c), h = Vt(i), d = lr(i), f = Ot(i) === "y", {
6230
- width: p,
6231
- height: g
6230
+ width: g,
6231
+ height: p
6232
6232
  } = o.floating;
6233
6233
  let b, y;
6234
6234
  h === "top" || h === "bottom" ? (b = h, y = d === (await (s.isRTL == null ? void 0 : s.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (y = h, b = d === "end" ? "top" : "bottom");
6235
- const x = g - u.top - u.bottom, w = p - u.left - u.right, S = Jt(g - u[b], x), C = Jt(p - u[y], w), A = !e.middlewareData.shift;
6235
+ const x = p - u.top - u.bottom, w = g - u.left - u.right, S = Jt(p - u[b], x), C = Jt(g - u[y], w), A = !e.middlewareData.shift;
6236
6236
  let k = S, M = C;
6237
6237
  if ((t = e.middlewareData.shift) != null && t.enabled.x && (M = w), (r = e.middlewareData.shift) != null && r.enabled.y && (k = x), A && !d) {
6238
6238
  const D = je(u.left, 0), R = je(u.right, 0), P = je(u.top, 0), B = je(u.bottom, 0);
6239
- f ? M = p - 2 * (D !== 0 || R !== 0 ? D + R : je(u.left, u.right)) : k = g - 2 * (P !== 0 || B !== 0 ? P + B : je(u.top, u.bottom));
6239
+ f ? M = g - 2 * (D !== 0 || R !== 0 ? D + R : je(u.left, u.right)) : k = p - 2 * (P !== 0 || B !== 0 ? P + B : je(u.top, u.bottom));
6240
6240
  }
6241
6241
  await a({
6242
6242
  ...e,
@@ -6244,7 +6244,7 @@ const Wy = function(n) {
6244
6244
  availableHeight: k
6245
6245
  });
6246
6246
  const N = await s.getDimensions(l.floating);
6247
- return p !== N.width || g !== N.height ? {
6247
+ return g !== N.width || p !== N.height ? {
6248
6248
  reset: {
6249
6249
  rects: !0
6250
6250
  }
@@ -6379,7 +6379,7 @@ function Wd(n) {
6379
6379
  function pa(n) {
6380
6380
  return lt(n) ? n : n.contextElement;
6381
6381
  }
6382
- function Fn(n) {
6382
+ function $n(n) {
6383
6383
  const e = pa(n);
6384
6384
  if (!Ht(e))
6385
6385
  return Pt(1);
@@ -6409,15 +6409,15 @@ function On(n, e, t, r) {
6409
6409
  e === void 0 && (e = !1), t === void 0 && (t = !1);
6410
6410
  const i = n.getBoundingClientRect(), o = pa(n);
6411
6411
  let s = Pt(1);
6412
- e && (r ? lt(r) && (s = Fn(r)) : s = Fn(n));
6412
+ e && (r ? lt(r) && (s = $n(r)) : s = $n(n));
6413
6413
  const l = Zy(o, t, r) ? Hd(o) : Pt(0);
6414
6414
  let a = (i.left + l.x) / s.x, c = (i.top + l.y) / s.y, u = i.width / s.x, h = i.height / s.y;
6415
6415
  if (o) {
6416
6416
  const d = Ge(o), f = r && lt(r) ? Ge(r) : r;
6417
- let p = d, g = js(p);
6418
- for (; g && r && f !== p; ) {
6419
- const b = Fn(g), y = g.getBoundingClientRect(), x = at(g), w = y.left + (g.clientLeft + parseFloat(x.paddingLeft)) * b.x, S = y.top + (g.clientTop + parseFloat(x.paddingTop)) * b.y;
6420
- a *= b.x, c *= b.y, u *= b.x, h *= b.y, a += w, c += S, p = Ge(g), g = js(p);
6417
+ let g = d, p = js(g);
6418
+ for (; p && r && f !== g; ) {
6419
+ const b = $n(p), y = p.getBoundingClientRect(), x = at(p), w = y.left + (p.clientLeft + parseFloat(x.paddingLeft)) * b.x, S = y.top + (p.clientTop + parseFloat(x.paddingTop)) * b.y;
6420
+ a *= b.x, c *= b.y, u *= b.x, h *= b.y, a += w, c += S, g = Ge(p), p = js(g);
6421
6421
  }
6422
6422
  }
6423
6423
  return qi({
@@ -6455,7 +6455,7 @@ function Jy(n) {
6455
6455
  const u = Pt(0), h = Ht(r);
6456
6456
  if ((h || !h && !o) && ((ar(r) !== "body" || ti(s)) && (a = Mo(r)), h)) {
6457
6457
  const f = On(r);
6458
- c = Fn(r), u.x = f.x + r.clientLeft, u.y = f.y + r.clientTop;
6458
+ c = $n(r), u.x = f.x + r.clientLeft, u.y = f.y + r.clientTop;
6459
6459
  }
6460
6460
  const d = s && !h && !o ? Ud(s, a) : Pt(0);
6461
6461
  return {
@@ -6490,8 +6490,8 @@ function nw(n, e) {
6490
6490
  }
6491
6491
  const c = No(r);
6492
6492
  if (c <= 0) {
6493
- const u = r.ownerDocument, h = u.body, d = getComputedStyle(h), f = u.compatMode === "CSS1Compat" && parseFloat(d.marginLeft) + parseFloat(d.marginRight) || 0, p = Math.abs(r.clientWidth - h.clientWidth - f);
6494
- p <= wc && (o -= p);
6493
+ const u = r.ownerDocument, h = u.body, d = getComputedStyle(h), f = u.compatMode === "CSS1Compat" && parseFloat(d.marginLeft) + parseFloat(d.marginRight) || 0, g = Math.abs(r.clientWidth - h.clientWidth - f);
6494
+ g <= wc && (o -= g);
6495
6495
  } else c <= wc && (o += c);
6496
6496
  return {
6497
6497
  width: o,
@@ -6501,7 +6501,7 @@ function nw(n, e) {
6501
6501
  };
6502
6502
  }
6503
6503
  function rw(n, e) {
6504
- const t = On(n, !0, e === "fixed"), r = t.top + n.clientTop, i = t.left + n.clientLeft, o = Ht(n) ? Fn(n) : Pt(1), s = n.clientWidth * o.x, l = n.clientHeight * o.y, a = i * o.x, c = r * o.y;
6504
+ const t = On(n, !0, e === "fixed"), r = t.top + n.clientTop, i = t.left + n.clientLeft, o = Ht(n) ? $n(n) : Pt(1), s = n.clientWidth * o.x, l = n.clientHeight * o.y, a = i * o.x, c = r * o.y;
6505
6505
  return {
6506
6506
  width: s,
6507
6507
  height: l,
@@ -6651,7 +6651,7 @@ const uw = {
6651
6651
  getElementRects: aw,
6652
6652
  getClientRects: ew,
6653
6653
  getDimensions: sw,
6654
- getScale: Fn,
6654
+ getScale: $n,
6655
6655
  isElement: lt,
6656
6656
  isRTL: cw
6657
6657
  };
@@ -6675,8 +6675,8 @@ function hw(n, e) {
6675
6675
  } = c;
6676
6676
  if (l || e(), !d || !f)
6677
6677
  return;
6678
- const p = gi(h), g = gi(i.clientWidth - (u + d)), b = gi(i.clientHeight - (h + f)), y = gi(u), w = {
6679
- rootMargin: -p + "px " + -g + "px " + -b + "px " + -y + "px",
6678
+ const g = gi(h), p = gi(i.clientWidth - (u + d)), b = gi(i.clientHeight - (h + f)), y = gi(u), w = {
6679
+ rootMargin: -g + "px " + -p + "px " + -b + "px " + -y + "px",
6680
6680
  threshold: je(0, Jt(1, a)) || 1
6681
6681
  };
6682
6682
  let S = !0;
@@ -6727,20 +6727,20 @@ function dw(n, e, t, r) {
6727
6727
  (w = f) == null || w.observe(e);
6728
6728
  })), t();
6729
6729
  }), c && !a && f.observe(c), e && f.observe(e));
6730
- let p, g = a ? On(n) : null;
6730
+ let g, p = a ? On(n) : null;
6731
6731
  a && b();
6732
6732
  function b() {
6733
6733
  const y = On(n);
6734
- g && !Gd(g, y) && t(), g = y, p = requestAnimationFrame(b);
6734
+ p && !Gd(p, y) && t(), p = y, g = requestAnimationFrame(b);
6735
6735
  }
6736
6736
  return t(), () => {
6737
6737
  var y;
6738
6738
  u.forEach((x) => {
6739
6739
  i && x.removeEventListener("scroll", t), o && x.removeEventListener("resize", t);
6740
- }), h == null || h(), (y = f) == null || y.disconnect(), f = null, a && cancelAnimationFrame(p);
6740
+ }), h == null || h(), (y = f) == null || y.disconnect(), f = null, a && cancelAnimationFrame(g);
6741
6741
  };
6742
6742
  }
6743
- const fw = Wy, pw = Hy, gw = Fy, mw = jy, bw = zy, Oc = $y, vw = Uy, yw = (n, e, t) => {
6743
+ const fw = Wy, pw = Hy, gw = $y, mw = jy, bw = zy, Oc = Fy, vw = Uy, yw = (n, e, t) => {
6744
6744
  const r = /* @__PURE__ */ new Map(), i = {
6745
6745
  platform: uw,
6746
6746
  ...t
@@ -6821,19 +6821,19 @@ function Sw(n) {
6821
6821
  isPositioned: !1
6822
6822
  }), [d, f] = m.useState(r);
6823
6823
  Ki(d, r) || f(r);
6824
- const [p, g] = m.useState(null), [b, y] = m.useState(null), x = m.useCallback(($) => {
6825
- $ !== A.current && (A.current = $, g($));
6826
- }, []), w = m.useCallback(($) => {
6827
- $ !== k.current && (k.current = $, y($));
6828
- }, []), S = o || p, C = s || b, A = m.useRef(null), k = m.useRef(null), M = m.useRef(u), N = a != null, D = us(a), R = us(i), P = us(c), B = m.useCallback(() => {
6824
+ const [g, p] = m.useState(null), [b, y] = m.useState(null), x = m.useCallback((F) => {
6825
+ F !== A.current && (A.current = F, p(F));
6826
+ }, []), w = m.useCallback((F) => {
6827
+ F !== k.current && (k.current = F, y(F));
6828
+ }, []), S = o || g, C = s || b, A = m.useRef(null), k = m.useRef(null), M = m.useRef(u), N = a != null, D = us(a), R = us(i), P = us(c), B = m.useCallback(() => {
6829
6829
  if (!A.current || !k.current)
6830
6830
  return;
6831
- const $ = {
6831
+ const F = {
6832
6832
  placement: e,
6833
6833
  strategy: t,
6834
6834
  middleware: d
6835
6835
  };
6836
- R.current && ($.platform = R.current), yw(A.current, k.current, $).then((X) => {
6836
+ R.current && (F.platform = R.current), yw(A.current, k.current, F).then((X) => {
6837
6837
  const ge = {
6838
6838
  ...X,
6839
6839
  // The floating element's position may be recomputed while it's closed
@@ -6848,8 +6848,8 @@ function Sw(n) {
6848
6848
  });
6849
6849
  }, [d, e, t, R, P]);
6850
6850
  Bi(() => {
6851
- c === !1 && M.current.isPositioned && (M.current.isPositioned = !1, h(($) => ({
6852
- ...$,
6851
+ c === !1 && M.current.isPositioned && (M.current.isPositioned = !1, h((F) => ({
6852
+ ...F,
6853
6853
  isPositioned: !1
6854
6854
  })));
6855
6855
  }, [c]);
@@ -6872,16 +6872,16 @@ function Sw(n) {
6872
6872
  reference: S,
6873
6873
  floating: C
6874
6874
  }), [S, C]), W = m.useMemo(() => {
6875
- const $ = {
6875
+ const F = {
6876
6876
  position: t,
6877
6877
  left: 0,
6878
6878
  top: 0
6879
6879
  };
6880
6880
  if (!_.floating)
6881
- return $;
6881
+ return F;
6882
6882
  const X = kc(_.floating, u.x), ge = kc(_.floating, u.y);
6883
6883
  return l ? {
6884
- ...$,
6884
+ ...F,
6885
6885
  transform: "translate(" + X + "px, " + ge + "px)",
6886
6886
  ...Yd(_.floating) >= 1.5 && {
6887
6887
  willChange: "transform"
@@ -7014,14 +7014,14 @@ var ma = "PopperContent", [Iw, Lw] = Kd(ma), nf = m.forwardRef(
7014
7014
  sticky: h = "partial",
7015
7015
  hideWhenDetached: d = !1,
7016
7016
  updatePositionStrategy: f = "optimized",
7017
- onPlaced: p,
7018
- ...g
7017
+ onPlaced: g,
7018
+ ...p
7019
7019
  } = n, b = Zd(ma, t), [y, x] = m.useState(null), w = q(e, (We) => x(We)), [S, C] = m.useState(null), A = aa(S), k = (A == null ? void 0 : A.width) ?? 0, M = (A == null ? void 0 : A.height) ?? 0, N = r + (o !== "center" ? "-" + o : ""), D = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, R = Array.isArray(c) ? c : [c], P = R.length > 0, B = {
7020
7020
  padding: D,
7021
7021
  boundary: R.filter(Qw),
7022
7022
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
7023
7023
  altBoundary: P
7024
- }, { refs: Q, floatingStyles: z, placement: _, isPositioned: W, middlewareData: $ } = Sw({
7024
+ }, { refs: Q, floatingStyles: z, placement: _, isPositioned: W, middlewareData: F } = Sw({
7025
7025
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
7026
7026
  strategy: "fixed",
7027
7027
  placement: N,
@@ -7051,11 +7051,11 @@ var ma = "PopperContent", [Iw, Lw] = Kd(ma), nf = m.forwardRef(
7051
7051
  _w({ arrowWidth: k, arrowHeight: M }),
7052
7052
  d && Rw({ strategy: "referenceHidden", ...B })
7053
7053
  ]
7054
- }), [X, ge] = sf(_), ee = Ie(p);
7054
+ }), [X, ge] = sf(_), ee = Ie(g);
7055
7055
  Ce(() => {
7056
7056
  W && (ee == null || ee());
7057
7057
  }, [W, ee]);
7058
- const ye = (V = $.arrow) == null ? void 0 : V.x, Ae = (le = $.arrow) == null ? void 0 : le.y, Pe = ((Te = $.arrow) == null ? void 0 : Te.centerOffset) !== 0, [Ve, Ye] = m.useState();
7058
+ const ye = (V = F.arrow) == null ? void 0 : V.x, Ae = (le = F.arrow) == null ? void 0 : le.y, Pe = ((Te = F.arrow) == null ? void 0 : Te.centerOffset) !== 0, [Ve, Ye] = m.useState();
7059
7059
  return Ce(() => {
7060
7060
  y && Ye(window.getComputedStyle(y).zIndex);
7061
7061
  }, [y]), /* @__PURE__ */ v(
@@ -7070,13 +7070,13 @@ var ma = "PopperContent", [Iw, Lw] = Kd(ma), nf = m.forwardRef(
7070
7070
  minWidth: "max-content",
7071
7071
  zIndex: Ve,
7072
7072
  "--radix-popper-transform-origin": [
7073
- (oe = $.transformOrigin) == null ? void 0 : oe.x,
7074
- (ne = $.transformOrigin) == null ? void 0 : ne.y
7073
+ (oe = F.transformOrigin) == null ? void 0 : oe.x,
7074
+ (ne = F.transformOrigin) == null ? void 0 : ne.y
7075
7075
  ].join(" "),
7076
7076
  // hide the content if using the hide middleware and should be hidden
7077
7077
  // set visibility to hidden and disable pointer events so the UI behaves
7078
7078
  // as if the PopperContent isn't there at all
7079
- ...((re = $.hide) == null ? void 0 : re.referenceHidden) && {
7079
+ ...((re = F.hide) == null ? void 0 : re.referenceHidden) && {
7080
7080
  visibility: "hidden",
7081
7081
  pointerEvents: "none"
7082
7082
  }
@@ -7096,10 +7096,10 @@ var ma = "PopperContent", [Iw, Lw] = Kd(ma), nf = m.forwardRef(
7096
7096
  {
7097
7097
  "data-side": X,
7098
7098
  "data-align": ge,
7099
- ...g,
7099
+ ...p,
7100
7100
  ref: w,
7101
7101
  style: {
7102
- ...g.style,
7102
+ ...p.style,
7103
7103
  // if the PopperContent hasn't been placed yet (not all measurements done)
7104
7104
  // we prevent animations so that users's animation don't kick in too early referring wrong sides
7105
7105
  animation: W ? void 0 : "none"
@@ -7173,8 +7173,8 @@ var _w = (n) => ({
7173
7173
  fn(e) {
7174
7174
  var b, y, x;
7175
7175
  const { placement: t, rects: r, middlewareData: i } = e, s = ((b = i.arrow) == null ? void 0 : b.centerOffset) !== 0, l = s ? 0 : n.arrowWidth, a = s ? 0 : n.arrowHeight, [c, u] = sf(t), h = { start: "0%", center: "50%", end: "100%" }[u], d = (((y = i.arrow) == null ? void 0 : y.x) ?? 0) + l / 2, f = (((x = i.arrow) == null ? void 0 : x.y) ?? 0) + a / 2;
7176
- let p = "", g = "";
7177
- return c === "bottom" ? (p = s ? h : `${d}px`, g = `${-a}px`) : c === "top" ? (p = s ? h : `${d}px`, g = `${r.floating.height + a}px`) : c === "right" ? (p = `${-a}px`, g = s ? h : `${f}px`) : c === "left" && (p = `${r.floating.width + a}px`, g = s ? h : `${f}px`), { data: { x: p, y: g } };
7176
+ let g = "", p = "";
7177
+ return c === "bottom" ? (g = s ? h : `${d}px`, p = `${-a}px`) : c === "top" ? (g = s ? h : `${d}px`, p = `${r.floating.height + a}px`) : c === "right" ? (g = `${-a}px`, p = s ? h : `${f}px`) : c === "left" && (g = `${r.floating.width + a}px`, p = s ? h : `${f}px`), { data: { x: g, y: p } };
7178
7178
  }
7179
7179
  });
7180
7180
  function sf(n) {
@@ -7193,7 +7193,7 @@ var lf = Jd, ba = tf, af = nf, cf = of, uf = Object.freeze({
7193
7193
  clip: "rect(0, 0, 0, 0)",
7194
7194
  whiteSpace: "nowrap",
7195
7195
  wordWrap: "normal"
7196
- }), $w = "VisuallyHidden", Fw = m.forwardRef(
7196
+ }), Fw = "VisuallyHidden", $w = m.forwardRef(
7197
7197
  (n, e) => /* @__PURE__ */ v(
7198
7198
  H.span,
7199
7199
  {
@@ -7203,7 +7203,7 @@ var lf = Jd, ba = tf, af = nf, cf = of, uf = Object.freeze({
7203
7203
  }
7204
7204
  )
7205
7205
  );
7206
- Fw.displayName = $w;
7206
+ $w.displayName = Fw;
7207
7207
  var zw = [" ", "Enter", "ArrowUp", "ArrowDown"], Vw = [" ", "Enter"], kn = "Select", [Io, Lo, Ww] = ea(kn), [cr] = Tt(kn, [
7208
7208
  Ww,
7209
7209
  Do
@@ -7222,8 +7222,8 @@ var zw = [" ", "Enter", "ArrowUp", "ArrowDown"], Vw = [" ", "Enter"], kn = "Sele
7222
7222
  autoComplete: h,
7223
7223
  disabled: d,
7224
7224
  required: f,
7225
- form: p
7226
- } = n, g = Bo(e), [b, y] = m.useState(null), [x, w] = m.useState(null), [S, C] = m.useState(!1), A = Jr(c), [k, M] = Zt({
7225
+ form: g
7226
+ } = n, p = Bo(e), [b, y] = m.useState(null), [x, w] = m.useState(null), [S, C] = m.useState(!1), A = Jr(c), [k, M] = Zt({
7227
7227
  prop: r,
7228
7228
  defaultProp: i ?? !1,
7229
7229
  onChange: o,
@@ -7233,8 +7233,8 @@ var zw = [" ", "Enter", "ArrowUp", "ArrowDown"], Vw = [" ", "Enter"], kn = "Sele
7233
7233
  defaultProp: l,
7234
7234
  onChange: a,
7235
7235
  caller: kn
7236
- }), R = m.useRef(null), P = b ? p || !!b.closest("form") : !0, [B, Q] = m.useState(/* @__PURE__ */ new Set()), z = Array.from(B).map((_) => _.props.value).join(";");
7237
- return /* @__PURE__ */ v(lf, { ...g, children: /* @__PURE__ */ T(
7236
+ }), R = m.useRef(null), P = b ? g || !!b.closest("form") : !0, [B, Q] = m.useState(/* @__PURE__ */ new Set()), z = Array.from(B).map((_) => _.props.value).join(";");
7237
+ return /* @__PURE__ */ v(lf, { ...p, children: /* @__PURE__ */ T(
7238
7238
  Hw,
7239
7239
  {
7240
7240
  required: f,
@@ -7263,8 +7263,8 @@ var zw = [" ", "Enter", "ArrowUp", "ArrowDown"], Vw = [" ", "Enter"], kn = "Sele
7263
7263
  }, []),
7264
7264
  onNativeOptionRemove: m.useCallback((_) => {
7265
7265
  Q((W) => {
7266
- const $ = new Set(W);
7267
- return $.delete(_), $;
7266
+ const F = new Set(W);
7267
+ return F.delete(_), F;
7268
7268
  });
7269
7269
  }, []),
7270
7270
  children: t
@@ -7281,7 +7281,7 @@ var zw = [" ", "Enter", "ArrowUp", "ArrowDown"], Vw = [" ", "Enter"], kn = "Sele
7281
7281
  value: N,
7282
7282
  onChange: (_) => D(_.target.value),
7283
7283
  disabled: d,
7284
- form: p,
7284
+ form: g,
7285
7285
  children: [
7286
7286
  N === void 0 ? /* @__PURE__ */ v("option", { value: "" }) : null,
7287
7287
  Array.from(B)
@@ -7296,13 +7296,13 @@ var zw = [" ", "Enter", "ArrowUp", "ArrowDown"], Vw = [" ", "Enter"], kn = "Sele
7296
7296
  hf.displayName = kn;
7297
7297
  var df = "SelectTrigger", ff = m.forwardRef(
7298
7298
  (n, e) => {
7299
- const { __scopeSelect: t, disabled: r = !1, ...i } = n, o = Bo(t), s = ln(df, t), l = s.disabled || r, a = q(e, s.onTriggerChange), c = Lo(t), u = m.useRef("touch"), [h, d, f] = Qf((g) => {
7300
- const b = c().filter((w) => !w.disabled), y = b.find((w) => w.value === s.value), x = _f(b, g, y);
7299
+ const { __scopeSelect: t, disabled: r = !1, ...i } = n, o = Bo(t), s = ln(df, t), l = s.disabled || r, a = q(e, s.onTriggerChange), c = Lo(t), u = m.useRef("touch"), [h, d, f] = Qf((p) => {
7300
+ const b = c().filter((w) => !w.disabled), y = b.find((w) => w.value === s.value), x = _f(b, p, y);
7301
7301
  x !== void 0 && s.onValueChange(x.value);
7302
- }), p = (g) => {
7303
- l || (s.onOpenChange(!0), f()), g && (s.triggerPointerDownPosRef.current = {
7304
- x: Math.round(g.pageX),
7305
- y: Math.round(g.pageY)
7302
+ }), g = (p) => {
7303
+ l || (s.onOpenChange(!0), f()), p && (s.triggerPointerDownPosRef.current = {
7304
+ x: Math.round(p.pageX),
7305
+ y: Math.round(p.pageY)
7306
7306
  });
7307
7307
  };
7308
7308
  return /* @__PURE__ */ v(ba, { asChild: !0, ...o, children: /* @__PURE__ */ v(
@@ -7321,17 +7321,17 @@ var df = "SelectTrigger", ff = m.forwardRef(
7321
7321
  "data-placeholder": Bf(s.value) ? "" : void 0,
7322
7322
  ...i,
7323
7323
  ref: a,
7324
- onClick: F(i.onClick, (g) => {
7325
- g.currentTarget.focus(), u.current !== "mouse" && p(g);
7324
+ onClick: $(i.onClick, (p) => {
7325
+ p.currentTarget.focus(), u.current !== "mouse" && g(p);
7326
7326
  }),
7327
- onPointerDown: F(i.onPointerDown, (g) => {
7328
- u.current = g.pointerType;
7329
- const b = g.target;
7330
- b.hasPointerCapture(g.pointerId) && b.releasePointerCapture(g.pointerId), g.button === 0 && g.ctrlKey === !1 && g.pointerType === "mouse" && (p(g), g.preventDefault());
7327
+ onPointerDown: $(i.onPointerDown, (p) => {
7328
+ u.current = p.pointerType;
7329
+ const b = p.target;
7330
+ b.hasPointerCapture(p.pointerId) && b.releasePointerCapture(p.pointerId), p.button === 0 && p.ctrlKey === !1 && p.pointerType === "mouse" && (g(p), p.preventDefault());
7331
7331
  }),
7332
- onKeyDown: F(i.onKeyDown, (g) => {
7332
+ onKeyDown: $(i.onKeyDown, (p) => {
7333
7333
  const b = h.current !== "";
7334
- !(g.ctrlKey || g.altKey || g.metaKey) && g.key.length === 1 && d(g.key), !(b && g.key === " ") && zw.includes(g.key) && (p(), g.preventDefault());
7334
+ !(p.ctrlKey || p.altKey || p.metaKey) && p.key.length === 1 && d(p.key), !(b && p.key === " ") && zw.includes(p.key) && (g(), p.preventDefault());
7335
7335
  })
7336
7336
  }
7337
7337
  ) });
@@ -7397,8 +7397,8 @@ var nt = 10, [yf, an] = cr(Cn), Yw = "SelectContentImpl", qw = /* @__PURE__ */ Y
7397
7397
  arrowPadding: h,
7398
7398
  collisionBoundary: d,
7399
7399
  collisionPadding: f,
7400
- sticky: p,
7401
- hideWhenDetached: g,
7400
+ sticky: g,
7401
+ hideWhenDetached: p,
7402
7402
  avoidCollisions: b,
7403
7403
  //
7404
7404
  ...y
@@ -7422,7 +7422,7 @@ var nt = 10, [yf, an] = cr(Cn), Yw = "SelectContentImpl", qw = /* @__PURE__ */ Y
7422
7422
  m.useEffect(() => {
7423
7423
  B && W();
7424
7424
  }, [B, W]);
7425
- const { onOpenChange: $, triggerPointerDownPosRef: X } = x;
7425
+ const { onOpenChange: F, triggerPointerDownPosRef: X } = x;
7426
7426
  m.useEffect(() => {
7427
7427
  if (w) {
7428
7428
  let V = { x: 0, y: 0 };
@@ -7433,18 +7433,18 @@ var nt = 10, [yf, an] = cr(Cn), Yw = "SelectContentImpl", qw = /* @__PURE__ */ Y
7433
7433
  y: Math.abs(Math.round(oe.pageY) - (((re = X.current) == null ? void 0 : re.y) ?? 0))
7434
7434
  };
7435
7435
  }, Te = (oe) => {
7436
- V.x <= 10 && V.y <= 10 ? oe.preventDefault() : w.contains(oe.target) || $(!1), document.removeEventListener("pointermove", le), X.current = null;
7436
+ V.x <= 10 && V.y <= 10 ? oe.preventDefault() : w.contains(oe.target) || F(!1), document.removeEventListener("pointermove", le), X.current = null;
7437
7437
  };
7438
7438
  return X.current !== null && (document.addEventListener("pointermove", le), document.addEventListener("pointerup", Te, { capture: !0, once: !0 })), () => {
7439
7439
  document.removeEventListener("pointermove", le), document.removeEventListener("pointerup", Te, { capture: !0 });
7440
7440
  };
7441
7441
  }
7442
- }, [w, $, X]), m.useEffect(() => {
7443
- const V = () => $(!1);
7442
+ }, [w, F, X]), m.useEffect(() => {
7443
+ const V = () => F(!1);
7444
7444
  return window.addEventListener("blur", V), window.addEventListener("resize", V), () => {
7445
7445
  window.removeEventListener("blur", V), window.removeEventListener("resize", V);
7446
7446
  };
7447
- }, [$]);
7447
+ }, [F]);
7448
7448
  const [ge, ee] = Qf((V) => {
7449
7449
  const le = P().filter((ne) => !ne.disabled), Te = le.find((ne) => ne.ref.current === document.activeElement), oe = _f(le, V, Te);
7450
7450
  oe && setTimeout(() => oe.ref.current.focus());
@@ -7468,8 +7468,8 @@ var nt = 10, [yf, an] = cr(Cn), Yw = "SelectContentImpl", qw = /* @__PURE__ */ Y
7468
7468
  arrowPadding: h,
7469
7469
  collisionBoundary: d,
7470
7470
  collisionPadding: f,
7471
- sticky: p,
7472
- hideWhenDetached: g,
7471
+ sticky: g,
7472
+ hideWhenDetached: p,
7473
7473
  avoidCollisions: b
7474
7474
  } : {};
7475
7475
  return /* @__PURE__ */ v(
@@ -7496,7 +7496,7 @@ var nt = 10, [yf, an] = cr(Cn), Yw = "SelectContentImpl", qw = /* @__PURE__ */ Y
7496
7496
  onMountAutoFocus: (V) => {
7497
7497
  V.preventDefault();
7498
7498
  },
7499
- onUnmountAutoFocus: F(i, (V) => {
7499
+ onUnmountAutoFocus: $(i, (V) => {
7500
7500
  var le;
7501
7501
  (le = x.trigger) == null || le.focus({ preventScroll: !0 }), V.preventDefault();
7502
7502
  }),
@@ -7529,7 +7529,7 @@ var nt = 10, [yf, an] = cr(Cn), Yw = "SelectContentImpl", qw = /* @__PURE__ */ Y
7529
7529
  outline: "none",
7530
7530
  ...y.style
7531
7531
  },
7532
- onKeyDown: F(y.onKeyDown, (V) => {
7532
+ onKeyDown: $(y.onKeyDown, (V) => {
7533
7533
  const le = V.ctrlKey || V.altKey || V.metaKey;
7534
7534
  if (V.key === "Tab" && V.preventDefault(), !le && V.key.length === 1 && ee(V.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(V.key)) {
7535
7535
  let oe = P().filter((ne) => !ne.disabled).map((ne) => ne.ref.current);
@@ -7552,8 +7552,8 @@ var nt = 10, [yf, an] = cr(Cn), Yw = "SelectContentImpl", qw = /* @__PURE__ */ Y
7552
7552
  );
7553
7553
  wf.displayName = Yw;
7554
7554
  var Kw = "SelectItemAlignedPosition", xf = m.forwardRef((n, e) => {
7555
- const { __scopeSelect: t, onPlaced: r, ...i } = n, o = ln(Cn, t), s = an(Cn, t), [l, a] = m.useState(null), [c, u] = m.useState(null), h = q(e, (k) => u(k)), d = Lo(t), f = m.useRef(!1), p = m.useRef(!0), { viewport: g, selectedItem: b, selectedItemText: y, focusSelectedItem: x } = s, w = m.useCallback(() => {
7556
- if (o.trigger && o.valueNode && l && c && g && b && y) {
7555
+ const { __scopeSelect: t, onPlaced: r, ...i } = n, o = ln(Cn, t), s = an(Cn, t), [l, a] = m.useState(null), [c, u] = m.useState(null), h = q(e, (k) => u(k)), d = Lo(t), f = m.useRef(!1), g = m.useRef(!0), { viewport: p, selectedItem: b, selectedItemText: y, focusSelectedItem: x } = s, w = m.useCallback(() => {
7556
+ if (o.trigger && o.valueNode && l && c && p && b && y) {
7557
7557
  const k = o.trigger.getBoundingClientRect(), M = c.getBoundingClientRect(), N = o.valueNode.getBoundingClientRect(), D = y.getBoundingClientRect();
7558
7558
  if (o.dir !== "rtl") {
7559
7559
  const ne = D.left - M.left, re = N.left - ne, We = k.left - re, gt = k.width + We, fr = Math.max(gt, M.width), pr = window.innerWidth - nt, gr = Qr(re, [
@@ -7573,11 +7573,11 @@ var Kw = "SelectItemAlignedPosition", xf = m.forwardRef((n, e) => {
7573
7573
  ]);
7574
7574
  l.style.minWidth = gt + "px", l.style.right = gr + "px";
7575
7575
  }
7576
- const R = d(), P = window.innerHeight - nt * 2, B = g.scrollHeight, Q = window.getComputedStyle(c), z = parseInt(Q.borderTopWidth, 10), _ = parseInt(Q.paddingTop, 10), W = parseInt(Q.borderBottomWidth, 10), $ = parseInt(Q.paddingBottom, 10), X = z + _ + B + $ + W, ge = Math.min(b.offsetHeight * 5, X), ee = window.getComputedStyle(g), ye = parseInt(ee.paddingTop, 10), Ae = parseInt(ee.paddingBottom, 10), Pe = k.top + k.height / 2 - nt, Ve = P - Pe, Ye = b.offsetHeight / 2, V = b.offsetTop + Ye, le = z + _ + V, Te = X - le;
7576
+ const R = d(), P = window.innerHeight - nt * 2, B = p.scrollHeight, Q = window.getComputedStyle(c), z = parseInt(Q.borderTopWidth, 10), _ = parseInt(Q.paddingTop, 10), W = parseInt(Q.borderBottomWidth, 10), F = parseInt(Q.paddingBottom, 10), X = z + _ + B + F + W, ge = Math.min(b.offsetHeight * 5, X), ee = window.getComputedStyle(p), ye = parseInt(ee.paddingTop, 10), Ae = parseInt(ee.paddingBottom, 10), Pe = k.top + k.height / 2 - nt, Ve = P - Pe, Ye = b.offsetHeight / 2, V = b.offsetTop + Ye, le = z + _ + V, Te = X - le;
7577
7577
  if (le <= Pe) {
7578
7578
  const ne = R.length > 0 && b === R[R.length - 1].ref.current;
7579
7579
  l.style.bottom = "0px";
7580
- const re = c.clientHeight - g.offsetTop - g.offsetHeight, We = Math.max(
7580
+ const re = c.clientHeight - p.offsetTop - p.offsetHeight, We = Math.max(
7581
7581
  Ve,
7582
7582
  Ye + // viewport might have padding bottom, include it to avoid a scrollable viewport
7583
7583
  (ne ? Ae : 0) + re + W
@@ -7588,10 +7588,10 @@ var Kw = "SelectItemAlignedPosition", xf = m.forwardRef((n, e) => {
7588
7588
  l.style.top = "0px";
7589
7589
  const We = Math.max(
7590
7590
  Pe,
7591
- z + g.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
7591
+ z + p.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
7592
7592
  (ne ? ye : 0) + Ye
7593
7593
  ) + Te;
7594
- l.style.height = We + "px", g.scrollTop = le - Pe + g.offsetTop;
7594
+ l.style.height = We + "px", p.scrollTop = le - Pe + p.offsetTop;
7595
7595
  }
7596
7596
  l.style.margin = `${nt}px 0`, l.style.minHeight = ge + "px", l.style.maxHeight = P + "px", r == null || r(), requestAnimationFrame(() => f.current = !0);
7597
7597
  }
@@ -7601,7 +7601,7 @@ var Kw = "SelectItemAlignedPosition", xf = m.forwardRef((n, e) => {
7601
7601
  o.valueNode,
7602
7602
  l,
7603
7603
  c,
7604
- g,
7604
+ p,
7605
7605
  b,
7606
7606
  y,
7607
7607
  o.dir,
@@ -7614,7 +7614,7 @@ var Kw = "SelectItemAlignedPosition", xf = m.forwardRef((n, e) => {
7614
7614
  }, [c]);
7615
7615
  const A = m.useCallback(
7616
7616
  (k) => {
7617
- k && p.current === !0 && (w(), x == null || x(), p.current = !1);
7617
+ k && g.current === !0 && (w(), x == null || x(), g.current = !1);
7618
7618
  },
7619
7619
  [w, x]
7620
7620
  );
@@ -7718,14 +7718,14 @@ var [Jw, va] = cr(Cn, {}), Gs = "SelectViewport", Sf = m.forwardRef(
7718
7718
  overflow: "hidden auto",
7719
7719
  ...i.style
7720
7720
  },
7721
- onScroll: F(i.onScroll, (c) => {
7721
+ onScroll: $(i.onScroll, (c) => {
7722
7722
  const u = c.currentTarget, { contentWrapper: h, shouldExpandOnScrollRef: d } = s;
7723
7723
  if (d != null && d.current && h) {
7724
7724
  const f = Math.abs(a.current - u.scrollTop);
7725
7725
  if (f > 0) {
7726
- const p = window.innerHeight - nt * 2, g = parseFloat(h.style.minHeight), b = parseFloat(h.style.height), y = Math.max(g, b);
7727
- if (y < p) {
7728
- const x = y + f, w = Math.min(p, x), S = x - w;
7726
+ const g = window.innerHeight - nt * 2, p = parseFloat(h.style.minHeight), b = parseFloat(h.style.height), y = Math.max(p, b);
7727
+ if (y < g) {
7728
+ const x = y + f, w = Math.min(g, x), S = x - w;
7729
7729
  h.style.height = w + "px", h.style.bottom === "0px" && (u.scrollTop = S > 0 ? S : 0, h.style.justifyContent = "flex-end");
7730
7730
  }
7731
7731
  }
@@ -7760,13 +7760,13 @@ var Zi = "SelectItem", [rx, Af] = cr(Zi), Pf = m.forwardRef(
7760
7760
  disabled: i = !1,
7761
7761
  textValue: o,
7762
7762
  ...s
7763
- } = n, l = ln(Zi, t), a = an(Zi, t), c = l.value === r, [u, h] = m.useState(o ?? ""), [d, f] = m.useState(!1), p = q(
7763
+ } = n, l = ln(Zi, t), a = an(Zi, t), c = l.value === r, [u, h] = m.useState(o ?? ""), [d, f] = m.useState(!1), g = q(
7764
7764
  e,
7765
7765
  (x) => {
7766
7766
  var w;
7767
7767
  return (w = a.itemRefCallback) == null ? void 0 : w.call(a, x, r, i);
7768
7768
  }
7769
- ), g = _t(), b = m.useRef("touch"), y = () => {
7769
+ ), p = _t(), b = m.useRef("touch"), y = () => {
7770
7770
  i || (l.onValueChange(r), l.onOpenChange(!1));
7771
7771
  };
7772
7772
  if (r === "")
@@ -7779,7 +7779,7 @@ var Zi = "SelectItem", [rx, Af] = cr(Zi), Pf = m.forwardRef(
7779
7779
  scope: t,
7780
7780
  value: r,
7781
7781
  disabled: i,
7782
- textId: g,
7782
+ textId: p,
7783
7783
  isSelected: c,
7784
7784
  onItemTextChange: m.useCallback((x) => {
7785
7785
  h((w) => w || ((x == null ? void 0 : x.textContent) ?? "").trim());
@@ -7795,7 +7795,7 @@ var Zi = "SelectItem", [rx, Af] = cr(Zi), Pf = m.forwardRef(
7795
7795
  H.div,
7796
7796
  {
7797
7797
  role: "option",
7798
- "aria-labelledby": g,
7798
+ "aria-labelledby": p,
7799
7799
  "data-highlighted": d ? "" : void 0,
7800
7800
  "aria-selected": c && d,
7801
7801
  "data-state": c ? "checked" : "unchecked",
@@ -7803,27 +7803,27 @@ var Zi = "SelectItem", [rx, Af] = cr(Zi), Pf = m.forwardRef(
7803
7803
  "data-disabled": i ? "" : void 0,
7804
7804
  tabIndex: i ? void 0 : -1,
7805
7805
  ...s,
7806
- ref: p,
7807
- onFocus: F(s.onFocus, () => f(!0)),
7808
- onBlur: F(s.onBlur, () => f(!1)),
7809
- onClick: F(s.onClick, () => {
7806
+ ref: g,
7807
+ onFocus: $(s.onFocus, () => f(!0)),
7808
+ onBlur: $(s.onBlur, () => f(!1)),
7809
+ onClick: $(s.onClick, () => {
7810
7810
  b.current !== "mouse" && y();
7811
7811
  }),
7812
- onPointerUp: F(s.onPointerUp, () => {
7812
+ onPointerUp: $(s.onPointerUp, () => {
7813
7813
  b.current === "mouse" && y();
7814
7814
  }),
7815
- onPointerDown: F(s.onPointerDown, (x) => {
7815
+ onPointerDown: $(s.onPointerDown, (x) => {
7816
7816
  b.current = x.pointerType;
7817
7817
  }),
7818
- onPointerMove: F(s.onPointerMove, (x) => {
7818
+ onPointerMove: $(s.onPointerMove, (x) => {
7819
7819
  var w;
7820
7820
  b.current = x.pointerType, i ? (w = a.onItemLeave) == null || w.call(a) : b.current === "mouse" && x.currentTarget.focus({ preventScroll: !0 });
7821
7821
  }),
7822
- onPointerLeave: F(s.onPointerLeave, (x) => {
7822
+ onPointerLeave: $(s.onPointerLeave, (x) => {
7823
7823
  var w;
7824
7824
  x.currentTarget === document.activeElement && ((w = a.onItemLeave) == null || w.call(a));
7825
7825
  }),
7826
- onKeyDown: F(s.onKeyDown, (x) => {
7826
+ onKeyDown: $(s.onKeyDown, (x) => {
7827
7827
  var S;
7828
7828
  ((S = a.searchRef) == null ? void 0 : S.current) !== "" && x.key === " " || (Vw.includes(x.key) && y(), x.key === " " && x.preventDefault());
7829
7829
  })
@@ -7846,11 +7846,11 @@ var kr = "SelectItemText", Tf = m.forwardRef(
7846
7846
  var x;
7847
7847
  return (x = l.itemTextRefCallback) == null ? void 0 : x.call(l, y, a.value, a.disabled);
7848
7848
  }
7849
- ), f = u == null ? void 0 : u.textContent, p = m.useMemo(
7849
+ ), f = u == null ? void 0 : u.textContent, g = m.useMemo(
7850
7850
  () => /* @__PURE__ */ v("option", { value: a.value, disabled: a.disabled, children: f }, a.value),
7851
7851
  [a.disabled, a.value, f]
7852
- ), { onNativeOptionAdd: g, onNativeOptionRemove: b } = c;
7853
- return Ce(() => (g(p), () => b(p)), [g, b, p]), /* @__PURE__ */ T(Gn, { children: [
7852
+ ), { onNativeOptionAdd: p, onNativeOptionRemove: b } = c;
7853
+ return Ce(() => (p(g), () => b(g)), [p, b, g]), /* @__PURE__ */ T(Gn, { children: [
7854
7854
  /* @__PURE__ */ v(H.span, { id: a.textId, ...o, ref: d }),
7855
7855
  a.isSelected && s.valueNode && !s.valueNodeHasChildren ? vo.createPortal(o.children, s.valueNode) : null
7856
7856
  ] });
@@ -7927,14 +7927,14 @@ var Df = m.forwardRef((n, e) => {
7927
7927
  ...i,
7928
7928
  ref: e,
7929
7929
  style: { flexShrink: 0, ...i.style },
7930
- onPointerDown: F(i.onPointerDown, () => {
7930
+ onPointerDown: $(i.onPointerDown, () => {
7931
7931
  s.current === null && (s.current = window.setInterval(r, 50));
7932
7932
  }),
7933
- onPointerMove: F(i.onPointerMove, () => {
7933
+ onPointerMove: $(i.onPointerMove, () => {
7934
7934
  var c;
7935
7935
  (c = o.onItemLeave) == null || c.call(o), s.current === null && (s.current = window.setInterval(r, 50));
7936
7936
  }),
7937
- onPointerLeave: F(i.onPointerLeave, () => {
7937
+ onPointerLeave: $(i.onPointerLeave, () => {
7938
7938
  a();
7939
7939
  })
7940
7940
  }
@@ -8008,9 +8008,9 @@ function _f(n, e, t) {
8008
8008
  function lx(n, e) {
8009
8009
  return n.map((t, r) => n[(e + r) % n.length]);
8010
8010
  }
8011
- var ax = hf, $f = ff, cx = gf, ux = mf, hx = bf, Ff = vf, dx = Sf, zf = Cf, Vf = Pf, fx = Tf, px = Ef, Wf = Mf, Hf = Nf, Uf = If;
8011
+ var ax = hf, Ff = ff, cx = gf, ux = mf, hx = bf, $f = vf, dx = Sf, zf = Cf, Vf = Pf, fx = Tf, px = Ef, Wf = Mf, Hf = Nf, Uf = If;
8012
8012
  const zn = ax, Vn = cx, vn = m.forwardRef(({ className: n, children: e, ...t }, r) => /* @__PURE__ */ T(
8013
- $f,
8013
+ Ff,
8014
8014
  {
8015
8015
  ref: r,
8016
8016
  className: Z(
@@ -8024,7 +8024,7 @@ const zn = ax, Vn = cx, vn = m.forwardRef(({ className: n, children: e, ...t },
8024
8024
  ]
8025
8025
  }
8026
8026
  ));
8027
- vn.displayName = $f.displayName;
8027
+ vn.displayName = Ff.displayName;
8028
8028
  const jf = m.forwardRef(({ className: n, ...e }, t) => /* @__PURE__ */ v(
8029
8029
  Wf,
8030
8030
  {
@@ -8046,7 +8046,7 @@ const Xf = m.forwardRef(({ className: n, ...e }, t) => /* @__PURE__ */ v(
8046
8046
  ));
8047
8047
  Xf.displayName = Hf.displayName;
8048
8048
  const yn = m.forwardRef(({ className: n, children: e, position: t = "popper", ...r }, i) => /* @__PURE__ */ v(hx, { children: /* @__PURE__ */ T(
8049
- Ff,
8049
+ $f,
8050
8050
  {
8051
8051
  ref: i,
8052
8052
  className: Z(
@@ -8072,7 +8072,7 @@ const yn = m.forwardRef(({ className: n, children: e, position: t = "popper", ..
8072
8072
  ]
8073
8073
  }
8074
8074
  ) }));
8075
- yn.displayName = Ff.displayName;
8075
+ yn.displayName = $f.displayName;
8076
8076
  const gx = m.forwardRef(({ className: n, ...e }, t) => /* @__PURE__ */ v(zf, { ref: t, className: Z("px-2 py-1.5 text-sm font-semibold", n), ...e }));
8077
8077
  gx.displayName = zf.displayName;
8078
8078
  const wn = m.forwardRef(({ className: n, children: e, ...t }, r) => /* @__PURE__ */ T(
@@ -8511,8 +8511,8 @@ class xt extends K {
8511
8511
  r += f.lines;
8512
8512
  if (r < 32) {
8513
8513
  let f = [];
8514
- for (let p of e)
8515
- p.flatten(f);
8514
+ for (let g of e)
8515
+ g.flatten(f);
8516
8516
  return new fe(f, t);
8517
8517
  }
8518
8518
  let i = Math.max(
@@ -8521,11 +8521,11 @@ class xt extends K {
8521
8521
  /* Tree.BranchShift */
8522
8522
  ), o = i << 1, s = i >> 1, l = [], a = 0, c = -1, u = [];
8523
8523
  function h(f) {
8524
- let p;
8524
+ let g;
8525
8525
  if (f.lines > o && f instanceof xt)
8526
- for (let g of f.children)
8527
- h(g);
8528
- else f.lines > s && (a > s || !a) ? (d(), l.push(f)) : f instanceof fe && a && (p = u[u.length - 1]) instanceof fe && f.lines + p.lines <= 32 ? (a += f.lines, c += f.length + 1, u[u.length - 1] = new fe(p.text.concat(f.text), p.length + 1 + f.length)) : (a + f.lines > i && d(), a += f.lines, c += f.length + 1, u.push(f));
8526
+ for (let p of f.children)
8527
+ h(p);
8528
+ else f.lines > s && (a > s || !a) ? (d(), l.push(f)) : f instanceof fe && a && (g = u[u.length - 1]) instanceof fe && f.lines + g.lines <= 32 ? (a += f.lines, c += f.length + 1, u[u.length - 1] = new fe(g.text.concat(f.text), g.length + 1 + f.length)) : (a + f.lines > i && d(), a += f.lines, c += f.length + 1, u.push(f));
8529
8529
  }
8530
8530
  function d() {
8531
8531
  a != 0 && (l.push(u.length == 1 ? u[0] : xt.from(u, c)), c = -1, a = u.length = 0);
@@ -8660,7 +8660,7 @@ const el = /\r\n?|\n/;
8660
8660
  var Xe = /* @__PURE__ */ (function(n) {
8661
8661
  return n[n.Simple = 0] = "Simple", n[n.TrackDel = 1] = "TrackDel", n[n.TrackBefore = 2] = "TrackBefore", n[n.TrackAfter = 3] = "TrackAfter", n;
8662
8662
  })(Xe || (Xe = {}));
8663
- class $t {
8663
+ class Ft {
8664
8664
  // Sections are encoded as pairs of integers. The first is the
8665
8665
  // length in the current document, and the second is -1 for
8666
8666
  // unaffected sections, and the length of the replacement content
@@ -8733,7 +8733,7 @@ class $t {
8733
8733
  let r = this.sections[t++], i = this.sections[t++];
8734
8734
  i < 0 ? e.push(r, i) : e.push(i, r);
8735
8735
  }
8736
- return new $t(e);
8736
+ return new Ft(e);
8737
8737
  }
8738
8738
  /**
8739
8739
  Compute the combined effect of applying another set of changes
@@ -8811,16 +8811,16 @@ class $t {
8811
8811
  static fromJSON(e) {
8812
8812
  if (!Array.isArray(e) || e.length % 2 || e.some((t) => typeof t != "number"))
8813
8813
  throw new RangeError("Invalid JSON representation of ChangeDesc");
8814
- return new $t(e);
8814
+ return new Ft(e);
8815
8815
  }
8816
8816
  /**
8817
8817
  @internal
8818
8818
  */
8819
8819
  static create(e) {
8820
- return new $t(e);
8820
+ return new Ft(e);
8821
8821
  }
8822
8822
  }
8823
- class we extends $t {
8823
+ class we extends Ft {
8824
8824
  constructor(e, t) {
8825
8825
  super(e), this.inserted = t;
8826
8826
  }
@@ -8899,13 +8899,13 @@ class we extends $t {
8899
8899
  set.
8900
8900
  */
8901
8901
  get desc() {
8902
- return $t.create(this.sections);
8902
+ return Ft.create(this.sections);
8903
8903
  }
8904
8904
  /**
8905
8905
  @internal
8906
8906
  */
8907
8907
  filter(e) {
8908
- let t = [], r = [], i = [], o = new $r(this);
8908
+ let t = [], r = [], i = [], o = new Fr(this);
8909
8909
  e: for (let s = 0, l = 0; ; ) {
8910
8910
  let a = s == e.length ? 1e9 : e[s++];
8911
8911
  for (; l < a || l == a && o.len == 0; ) {
@@ -8926,7 +8926,7 @@ class we extends $t {
8926
8926
  }
8927
8927
  return {
8928
8928
  changes: new we(t, r),
8929
- filtered: $t.create(i)
8929
+ filtered: Ft.create(i)
8930
8930
  };
8931
8931
  }
8932
8932
  /**
@@ -8965,10 +8965,10 @@ class we extends $t {
8965
8965
  let { from: h, to: d = h, insert: f } = u;
8966
8966
  if (h > d || h < 0 || d > t)
8967
8967
  throw new RangeError(`Invalid change range ${h} to ${d} (in doc of length ${t})`);
8968
- let p = f ? typeof f == "string" ? K.of(f.split(r || el)) : f : K.empty, g = p.length;
8969
- if (h == d && g == 0)
8968
+ let g = f ? typeof f == "string" ? K.of(f.split(r || el)) : f : K.empty, p = g.length;
8969
+ if (h == d && p == 0)
8970
8970
  return;
8971
- h < s && a(), h > s && Re(i, h - s, -1), Re(i, d - h, g), Kt(o, i, p), s = d;
8971
+ h < s && a(), h > s && Re(i, h - s, -1), Re(i, d - h, p), Kt(o, i, g), s = d;
8972
8972
  }
8973
8973
  }
8974
8974
  return c(e), a(!l), l;
@@ -9045,7 +9045,7 @@ function tl(n, e, t) {
9045
9045
  }
9046
9046
  }
9047
9047
  function nl(n, e, t, r = !1) {
9048
- let i = [], o = r ? [] : null, s = new $r(n), l = new $r(e);
9048
+ let i = [], o = r ? [] : null, s = new Fr(n), l = new Fr(e);
9049
9049
  for (let a = -1; ; ) {
9050
9050
  if (s.done && l.len || l.done && s.len)
9051
9051
  throw new Error("Mismatched change set lengths");
@@ -9072,16 +9072,16 @@ function nl(n, e, t, r = !1) {
9072
9072
  Re(i, c, a < s.i ? s.ins : 0), o && a < s.i && Kt(o, i, s.text), a = s.i, s.forward(s.len - u);
9073
9073
  } else {
9074
9074
  if (s.done && l.done)
9075
- return o ? we.createSet(i, o) : $t.create(i);
9075
+ return o ? we.createSet(i, o) : Ft.create(i);
9076
9076
  throw new Error("Mismatched change set lengths");
9077
9077
  }
9078
9078
  }
9079
9079
  }
9080
9080
  function ep(n, e, t = !1) {
9081
- let r = [], i = t ? [] : null, o = new $r(n), s = new $r(e);
9081
+ let r = [], i = t ? [] : null, o = new Fr(n), s = new Fr(e);
9082
9082
  for (let l = !1; ; ) {
9083
9083
  if (o.done && s.done)
9084
- return i ? we.createSet(r, i) : $t.create(r);
9084
+ return i ? we.createSet(r, i) : Ft.create(r);
9085
9085
  if (o.ins == 0)
9086
9086
  Re(r, o.len, 0, l), o.next();
9087
9087
  else if (s.len == 0 && !s.done)
@@ -9100,7 +9100,7 @@ function ep(n, e, t = !1) {
9100
9100
  }
9101
9101
  }
9102
9102
  }
9103
- class $r {
9103
+ class Fr {
9104
9104
  constructor(e) {
9105
9105
  this.set = e, this.i = 0, this.next();
9106
9106
  }
@@ -9426,11 +9426,11 @@ class _i {
9426
9426
  return 0;
9427
9427
  },
9428
9428
  reconfigure: (h, d) => {
9429
- let f, p = d.config.address[o];
9430
- if (p != null) {
9431
- let g = eo(d, p);
9432
- if (this.dependencies.every((b) => b instanceof U ? d.facet(b) === h.facet(b) : b instanceof En ? d.field(b, !1) == h.field(b, !1) : !0) || (l ? Ec(f = r(h), g, i) : i(f = r(h), g)))
9433
- return h.values[s] = g, 0;
9429
+ let f, g = d.config.address[o];
9430
+ if (g != null) {
9431
+ let p = eo(d, g);
9432
+ if (this.dependencies.every((b) => b instanceof U ? d.facet(b) === h.facet(b) : b instanceof En ? d.field(b, !1) == h.field(b, !1) : !0) || (l ? Ec(f = r(h), p, i) : i(f = r(h), p)))
9433
+ return h.values[s] = p, 0;
9434
9434
  } else
9435
9435
  f = r(h);
9436
9436
  return h.values[s] = f, 1;
@@ -9621,21 +9621,21 @@ class Ji {
9621
9621
  l[d.id] = c.length << 1, c.push((f) => d.slot(f));
9622
9622
  let u = r == null ? void 0 : r.config.facets;
9623
9623
  for (let d in o) {
9624
- let f = o[d], p = f[0].facet, g = u && u[d] || [];
9624
+ let f = o[d], g = f[0].facet, p = u && u[d] || [];
9625
9625
  if (f.every(
9626
9626
  (b) => b.type == 0
9627
9627
  /* Provider.Static */
9628
9628
  ))
9629
- if (l[p.id] = a.length << 1 | 1, wa(g, f))
9630
- a.push(r.facet(p));
9629
+ if (l[g.id] = a.length << 1 | 1, wa(p, f))
9630
+ a.push(r.facet(g));
9631
9631
  else {
9632
- let b = p.combine(f.map((y) => y.value));
9633
- a.push(r && p.compare(b, r.facet(p)) ? r.facet(p) : b);
9632
+ let b = g.combine(f.map((y) => y.value));
9633
+ a.push(r && g.compare(b, r.facet(g)) ? r.facet(g) : b);
9634
9634
  }
9635
9635
  else {
9636
9636
  for (let b of f)
9637
9637
  b.type == 0 ? (l[b.id] = a.length << 1 | 1, a.push(b.value)) : (l[b.id] = c.length << 1, c.push((y) => b.dynamicSlot(y)));
9638
- l[p.id] = c.length << 1, c.push((b) => Px(b, p, f));
9638
+ l[g.id] = c.length << 1, c.push((b) => Px(b, g, f));
9639
9639
  }
9640
9640
  }
9641
9641
  let h = c.map((d) => d(l));
@@ -10329,8 +10329,8 @@ class Oa {
10329
10329
  for (let a = 0; a < this.value.length; a++) {
10330
10330
  let c = this.value[a], u = this.from[a] + e, h = this.to[a] + e, d, f;
10331
10331
  if (u == h) {
10332
- let p = t.mapPos(u, c.startSide, c.mapMode);
10333
- if (p == null || (d = f = p, c.startSide != c.endSide && (f = t.mapPos(u, c.endSide), f < d)))
10332
+ let g = t.mapPos(u, c.startSide, c.mapMode);
10333
+ if (g == null || (d = f = g, c.startSide != c.endSide && (f = t.mapPos(u, c.endSide), f < d)))
10334
10334
  continue;
10335
10335
  } else if (d = t.mapPos(u, c.startSide), f = t.mapPos(h, c.endSide), d > f || d == f && c.startSide > 0 && c.endSide <= 0)
10336
10336
  continue;
@@ -10388,7 +10388,7 @@ class te {
10388
10388
  return this;
10389
10389
  if (r && (t = t.slice().sort(cl)), this.isEmpty)
10390
10390
  return t.length ? te.of(t) : this;
10391
- let l = new dp(this, null, -1).goto(0), a = 0, c = [], u = new Fr();
10391
+ let l = new dp(this, null, -1).goto(0), a = 0, c = [], u = new $r();
10392
10392
  for (; l.value || a < t.length; )
10393
10393
  if (a < t.length && (l.from - t[a].from || l.startSide - t[a].value.startSide) >= 0) {
10394
10394
  let h = t[a++];
@@ -10507,7 +10507,7 @@ class te {
10507
10507
  cause the method to sort them.
10508
10508
  */
10509
10509
  static of(e, t = !1) {
10510
- let r = new Fr();
10510
+ let r = new $r();
10511
10511
  for (let i of e instanceof al ? [e] : t ? _x(e) : e)
10512
10512
  r.add(i.from, i.to, i.value);
10513
10513
  return r.finish();
@@ -10537,7 +10537,7 @@ function _x(n) {
10537
10537
  return n;
10538
10538
  }
10539
10539
  te.empty.nextLayer = te.empty;
10540
- class Fr {
10540
+ class $r {
10541
10541
  finishChunk(e) {
10542
10542
  this.chunks.push(new Oa(this.from, this.to, this.value, this.maxPoint)), this.chunkPos.push(this.chunkStart), this.chunkStart = -1, this.setMaxPoint = Math.max(this.setMaxPoint, this.maxPoint), this.maxPoint = -1, e && (this.from = [], this.to = [], this.value = []);
10543
10543
  }
@@ -10552,7 +10552,7 @@ class Fr {
10552
10552
  `value.startSide`) order.
10553
10553
  */
10554
10554
  add(e, t, r) {
10555
- this.addInner(e, t, r) || (this.nextLayer || (this.nextLayer = new Fr())).add(e, t, r);
10555
+ this.addInner(e, t, r) || (this.nextLayer || (this.nextLayer = new $r())).add(e, t, r);
10556
10556
  }
10557
10557
  /**
10558
10558
  @internal
@@ -10787,8 +10787,8 @@ function Nc(n, e, t, r, i, o) {
10787
10787
  n.goto(e), t.goto(r);
10788
10788
  let s = r + i, l = r, a = r - e, c = !!o.boundChange;
10789
10789
  for (let u = !1; ; ) {
10790
- let h = n.to + a - t.to, d = h || n.endSide - t.endSide, f = d < 0 ? n.to + a : t.to, p = Math.min(f, s);
10791
- if (n.point || t.point ? (n.point && t.point && Sa(n.point, t.point) && ul(n.activeForPoint(n.to), t.activeForPoint(t.to)) || o.comparePoint(l, p, n.point, t.point), u = !1) : (u && o.boundChange(l), p > l && !ul(n.active, t.active) && o.compareRange(l, p, n.active, t.active), c && p < s && (h || n.openEnd(f) != t.openEnd(f)) && (u = !0)), f > s)
10790
+ let h = n.to + a - t.to, d = h || n.endSide - t.endSide, f = d < 0 ? n.to + a : t.to, g = Math.min(f, s);
10791
+ if (n.point || t.point ? (n.point && t.point && Sa(n.point, t.point) && ul(n.activeForPoint(n.to), t.activeForPoint(t.to)) || o.comparePoint(l, g, n.point, t.point), u = !1) : (u && o.boundChange(l), g > l && !ul(n.active, t.active) && o.compareRange(l, g, n.active, t.active), c && g < s && (h || n.openEnd(f) != t.openEnd(f)) && (u = !0)), f > s)
10792
10792
  break;
10793
10793
  l = f, d <= 0 && n.next(), d >= 0 && t.next();
10794
10794
  }
@@ -10823,7 +10823,7 @@ function _o(n, e, t = n.length) {
10823
10823
  n.charCodeAt(i) == 9 ? (r += e - r % e, i++) : (r++, i = Ee(n, i));
10824
10824
  return r;
10825
10825
  }
10826
- function $x(n, e, t, r) {
10826
+ function Fx(n, e, t, r) {
10827
10827
  for (let i = 0, o = 0; ; ) {
10828
10828
  if (o >= e)
10829
10829
  return i;
@@ -10850,17 +10850,17 @@ class tn {
10850
10850
  let u = [], h = /^@(\w+)\b/.exec(s[0]), d = h && h[1] == "keyframes";
10851
10851
  if (h && l == null) return a.push(s[0] + ";");
10852
10852
  for (let f in l) {
10853
- let p = l[f];
10853
+ let g = l[f];
10854
10854
  if (/&/.test(f))
10855
10855
  o(
10856
- f.split(/,\s*/).map((g) => s.map((b) => g.replace(/&/, b))).reduce((g, b) => g.concat(b)),
10857
- p,
10856
+ f.split(/,\s*/).map((p) => s.map((b) => p.replace(/&/, b))).reduce((p, b) => p.concat(b)),
10857
+ g,
10858
10858
  a
10859
10859
  );
10860
- else if (p && typeof p == "object") {
10860
+ else if (g && typeof g == "object") {
10861
10861
  if (!h) throw new RangeError("The value of a property (" + f + ") should be a primitive value.");
10862
- o(i(f), p, u, d);
10863
- } else p != null && u.push(f.replace(/_.*/, "").replace(/[A-Z]/g, (g) => "-" + g.toLowerCase()) + ": " + p + ";");
10862
+ o(i(f), g, u, d);
10863
+ } else g != null && u.push(f.replace(/_.*/, "").replace(/[A-Z]/g, (p) => "-" + p.toLowerCase()) + ": " + g + ";");
10864
10864
  }
10865
10865
  (u.length || d) && a.push((r && !h && !c ? s.map(r) : s).join(", ") + " {" + u.join(" ") + "}");
10866
10866
  }
@@ -10896,11 +10896,11 @@ class tn {
10896
10896
  // the `<style>` tag generated by the library.
10897
10897
  static mount(e, t, r) {
10898
10898
  let i = e[dl], o = r && r.nonce;
10899
- i ? o && i.setNonce(o) : i = new Fx(e, o), i.mount(Array.isArray(t) ? t : [t], e);
10899
+ i ? o && i.setNonce(o) : i = new $x(e, o), i.mount(Array.isArray(t) ? t : [t], e);
10900
10900
  }
10901
10901
  }
10902
10902
  let Bc = /* @__PURE__ */ new Map();
10903
- class Fx {
10903
+ class $x {
10904
10904
  constructor(e, t) {
10905
10905
  let r = e.ownerDocument || e, i = r.defaultView;
10906
10906
  if (!e.head && e.adoptedStyleSheets && i.CSSStyleSheet) {
@@ -11028,12 +11028,12 @@ function Wx(n) {
11028
11028
  return t == "Esc" && (t = "Escape"), t == "Del" && (t = "Delete"), t == "Left" && (t = "ArrowLeft"), t == "Up" && (t = "ArrowUp"), t == "Right" && (t = "ArrowRight"), t == "Down" && (t = "ArrowDown"), t;
11029
11029
  }
11030
11030
  let De = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" }, fl = typeof document < "u" ? document : { documentElement: { style: {} } };
11031
- const pl = /* @__PURE__ */ /Edge\/(\d+)/.exec(De.userAgent), fp = /* @__PURE__ */ /MSIE \d/.test(De.userAgent), gl = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(De.userAgent), $o = !!(fp || gl || pl), Qc = !$o && /* @__PURE__ */ /gecko\/(\d+)/i.test(De.userAgent), gs = !$o && /* @__PURE__ */ /Chrome\/(\d+)/.exec(De.userAgent), Hx = "webkitFontSmoothing" in fl.documentElement.style, ml = !$o && /* @__PURE__ */ /Apple Computer/.test(De.vendor), _c = ml && (/* @__PURE__ */ /Mobile\/\w+/.test(De.userAgent) || De.maxTouchPoints > 2);
11031
+ const pl = /* @__PURE__ */ /Edge\/(\d+)/.exec(De.userAgent), fp = /* @__PURE__ */ /MSIE \d/.test(De.userAgent), gl = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(De.userAgent), Fo = !!(fp || gl || pl), Qc = !Fo && /* @__PURE__ */ /gecko\/(\d+)/i.test(De.userAgent), gs = !Fo && /* @__PURE__ */ /Chrome\/(\d+)/.exec(De.userAgent), Hx = "webkitFontSmoothing" in fl.documentElement.style, ml = !Fo && /* @__PURE__ */ /Apple Computer/.test(De.vendor), _c = ml && (/* @__PURE__ */ /Mobile\/\w+/.test(De.userAgent) || De.maxTouchPoints > 2);
11032
11032
  var L = {
11033
11033
  mac: _c || /* @__PURE__ */ /Mac/.test(De.platform),
11034
11034
  windows: /* @__PURE__ */ /Win/.test(De.platform),
11035
11035
  linux: /* @__PURE__ */ /Linux|X11/.test(De.platform),
11036
- ie: $o,
11036
+ ie: Fo,
11037
11037
  ie_version: fp ? fl.documentMode || 6 : gl ? +gl[1] : pl ? +pl[1] : 0,
11038
11038
  gecko: Qc,
11039
11039
  gecko_version: Qc ? +(/* @__PURE__ */ /Firefox\/(\d+)/.exec(De.userAgent) || [0, 0])[1] : 0,
@@ -11074,7 +11074,7 @@ function Ux(n, e) {
11074
11074
  t == "style" ? n.style.cssText = r : n.getAttribute(t) != r && n.setAttribute(t, r);
11075
11075
  }
11076
11076
  }
11077
- function $c(n, e, t) {
11077
+ function Fc(n, e, t) {
11078
11078
  let r = !1;
11079
11079
  if (e)
11080
11080
  for (let i in e)
@@ -11352,7 +11352,7 @@ function Mr(n) {
11352
11352
  return n.nodeType == 3 ? jr(n, 0, n.nodeValue.length).getClientRects() : n.nodeType == 1 ? n.getClientRects() : [];
11353
11353
  }
11354
11354
  function Nr(n, e, t, r) {
11355
- return t ? Fc(n, e, t, r, -1) || Fc(n, e, t, r, 1) : !1;
11355
+ return t ? $c(n, e, t, r, -1) || $c(n, e, t, r, 1) : !1;
11356
11356
  }
11357
11357
  function rn(n) {
11358
11358
  for (var e = 0; ; e++)
@@ -11362,7 +11362,7 @@ function rn(n) {
11362
11362
  function no(n) {
11363
11363
  return n.nodeType == 1 && /^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(n.nodeName);
11364
11364
  }
11365
- function Fc(n, e, t, r, i) {
11365
+ function $c(n, e, t, r, i) {
11366
11366
  for (; ; ) {
11367
11367
  if (n == t && e == r)
11368
11368
  return !0;
@@ -11410,7 +11410,7 @@ function Yx(n, e, t, r, i, o, s, l) {
11410
11410
  let a = n.ownerDocument, c = a.defaultView || window;
11411
11411
  for (let u = n, h = !1; u && !h; )
11412
11412
  if (u.nodeType == 1) {
11413
- let d, f = u == a.body, p = 1, g = 1;
11413
+ let d, f = u == a.body, g = 1, p = 1;
11414
11414
  if (f)
11415
11415
  d = Gx(c);
11416
11416
  else {
@@ -11419,11 +11419,11 @@ function Yx(n, e, t, r, i, o, s, l) {
11419
11419
  continue;
11420
11420
  }
11421
11421
  let x = u.getBoundingClientRect();
11422
- ({ scaleX: p, scaleY: g } = gp(u, x)), d = {
11422
+ ({ scaleX: g, scaleY: p } = gp(u, x)), d = {
11423
11423
  left: x.left,
11424
- right: x.left + u.clientWidth * p,
11424
+ right: x.left + u.clientWidth * g,
11425
11425
  top: x.top,
11426
- bottom: x.top + u.clientHeight * g
11426
+ bottom: x.top + u.clientHeight * p
11427
11427
  };
11428
11428
  }
11429
11429
  let b = 0, y = 0;
@@ -11440,11 +11440,11 @@ function Yx(n, e, t, r, i, o, s, l) {
11440
11440
  let x = 0, w = 0;
11441
11441
  if (y) {
11442
11442
  let S = u.scrollTop;
11443
- u.scrollTop += y / g, w = (u.scrollTop - S) * g;
11443
+ u.scrollTop += y / p, w = (u.scrollTop - S) * p;
11444
11444
  }
11445
11445
  if (b) {
11446
11446
  let S = u.scrollLeft;
11447
- u.scrollLeft += b / p, x = (u.scrollLeft - S) * p;
11447
+ u.scrollLeft += b / g, x = (u.scrollLeft - S) * g;
11448
11448
  }
11449
11449
  e = {
11450
11450
  left: e.left - x,
@@ -11681,9 +11681,9 @@ function nS(n, e, t, r, i) {
11681
11681
  let f = c + 1;
11682
11682
  for (; f < l && ie[f] == 64; )
11683
11683
  f++;
11684
- let p = c && u == 8 || f < t && ie[f] == 8 ? h == 1 ? 1 : 8 : 256;
11685
- for (let g = c; g < f; g++)
11686
- ie[g] = p;
11684
+ let g = c && u == 8 || f < t && ie[f] == 8 ? h == 1 ? 1 : 8 : 256;
11685
+ for (let p = c; p < f; p++)
11686
+ ie[p] = g;
11687
11687
  c = f - 1;
11688
11688
  } else d == 8 && h == 1 && (ie[c] = 1);
11689
11689
  u = d, d & 7 && (h = d);
@@ -11694,13 +11694,13 @@ function rS(n, e, t, r, i) {
11694
11694
  let o = i == 1 ? 2 : 1;
11695
11695
  for (let s = 0, l = 0, a = 0; s <= r.length; s++) {
11696
11696
  let c = s ? r[s - 1].to : e, u = s < r.length ? r[s].from : t;
11697
- for (let h = c, d, f, p; h < u; h++)
11697
+ for (let h = c, d, f, g; h < u; h++)
11698
11698
  if (f = vl[d = n.charCodeAt(h)])
11699
11699
  if (f < 0) {
11700
- for (let g = l - 3; g >= 0; g -= 3)
11701
- if (mt[g + 1] == -f) {
11702
- let b = mt[g + 2], y = b & 2 ? i : b & 4 ? b & 1 ? o : i : 0;
11703
- y && (ie[h] = ie[mt[g]] = y), l = g;
11700
+ for (let p = l - 3; p >= 0; p -= 3)
11701
+ if (mt[p + 1] == -f) {
11702
+ let b = mt[p + 2], y = b & 2 ? i : b & 4 ? b & 1 ? o : i : 0;
11703
+ y && (ie[h] = ie[mt[p]] = y), l = p;
11704
11704
  break;
11705
11705
  }
11706
11706
  } else {
@@ -11708,14 +11708,14 @@ function rS(n, e, t, r, i) {
11708
11708
  break;
11709
11709
  mt[l++] = h, mt[l++] = d, mt[l++] = a;
11710
11710
  }
11711
- else if ((p = ie[h]) == 2 || p == 1) {
11712
- let g = p == i;
11713
- a = g ? 0 : 1;
11711
+ else if ((g = ie[h]) == 2 || g == 1) {
11712
+ let p = g == i;
11713
+ a = p ? 0 : 1;
11714
11714
  for (let b = l - 3; b >= 0; b -= 3) {
11715
11715
  let y = mt[b + 2];
11716
11716
  if (y & 2)
11717
11717
  break;
11718
- if (g)
11718
+ if (p)
11719
11719
  mt[b + 2] |= 2;
11720
11720
  else {
11721
11721
  if (y & 4)
@@ -11743,8 +11743,8 @@ function iS(n, e, t, r) {
11743
11743
  else
11744
11744
  break;
11745
11745
  let h = o == 1, d = (u < e ? ie[u] : r) == 1, f = h == d ? h ? 1 : 2 : r;
11746
- for (let p = u, g = i, b = g ? t[g - 1].to : n; p > a; )
11747
- p == b && (p = t[--g].from, b = g ? t[g - 1].to : n), ie[--p] = f;
11746
+ for (let g = u, p = i, b = p ? t[p - 1].to : n; g > a; )
11747
+ g == b && (g = t[--p].from, b = p ? t[p - 1].to : n), ie[--g] = f;
11748
11748
  a = u;
11749
11749
  } else
11750
11750
  o = c, a++;
@@ -11757,17 +11757,17 @@ function yl(n, e, t, r, i, o, s) {
11757
11757
  for (let a = e, c = 0; a < t; ) {
11758
11758
  let u = !0, h = !1;
11759
11759
  if (c == o.length || a < o[c].from) {
11760
- let g = ie[a];
11761
- g != l && (u = !1, h = g == 16);
11760
+ let p = ie[a];
11761
+ p != l && (u = !1, h = p == 16);
11762
11762
  }
11763
- let d = !u && l == 1 ? [] : null, f = u ? r : r + 1, p = a;
11763
+ let d = !u && l == 1 ? [] : null, f = u ? r : r + 1, g = a;
11764
11764
  e: for (; ; )
11765
- if (c < o.length && p == o[c].from) {
11765
+ if (c < o.length && g == o[c].from) {
11766
11766
  if (h)
11767
11767
  break e;
11768
- let g = o[c];
11768
+ let p = o[c];
11769
11769
  if (!u)
11770
- for (let b = g.to, y = c + 1; ; ) {
11770
+ for (let b = p.to, y = c + 1; ; ) {
11771
11771
  if (b == t)
11772
11772
  break e;
11773
11773
  if (y < o.length && o[y].from == b)
@@ -11779,35 +11779,35 @@ function yl(n, e, t, r, i, o, s) {
11779
11779
  }
11780
11780
  }
11781
11781
  if (c++, d)
11782
- d.push(g);
11782
+ d.push(p);
11783
11783
  else {
11784
- g.from > a && s.push(new kt(a, g.from, f));
11785
- let b = g.direction == Tn != !(f % 2);
11786
- wl(n, b ? r + 1 : r, i, g.inner, g.from, g.to, s), a = g.to;
11784
+ p.from > a && s.push(new kt(a, p.from, f));
11785
+ let b = p.direction == Tn != !(f % 2);
11786
+ wl(n, b ? r + 1 : r, i, p.inner, p.from, p.to, s), a = p.to;
11787
11787
  }
11788
- p = g.to;
11788
+ g = p.to;
11789
11789
  } else {
11790
- if (p == t || (u ? ie[p] != l : ie[p] == l))
11790
+ if (g == t || (u ? ie[g] != l : ie[g] == l))
11791
11791
  break;
11792
- p++;
11792
+ g++;
11793
11793
  }
11794
- d ? yl(n, a, p, r + 1, i, d, s) : a < p && s.push(new kt(a, p, f)), a = p;
11794
+ d ? yl(n, a, g, r + 1, i, d, s) : a < g && s.push(new kt(a, g, f)), a = g;
11795
11795
  }
11796
11796
  else
11797
11797
  for (let a = t, c = o.length; a > e; ) {
11798
11798
  let u = !0, h = !1;
11799
11799
  if (!c || a > o[c - 1].to) {
11800
- let g = ie[a - 1];
11801
- g != l && (u = !1, h = g == 16);
11800
+ let p = ie[a - 1];
11801
+ p != l && (u = !1, h = p == 16);
11802
11802
  }
11803
- let d = !u && l == 1 ? [] : null, f = u ? r : r + 1, p = a;
11803
+ let d = !u && l == 1 ? [] : null, f = u ? r : r + 1, g = a;
11804
11804
  e: for (; ; )
11805
- if (c && p == o[c - 1].to) {
11805
+ if (c && g == o[c - 1].to) {
11806
11806
  if (h)
11807
11807
  break e;
11808
- let g = o[--c];
11808
+ let p = o[--c];
11809
11809
  if (!u)
11810
- for (let b = g.from, y = c; ; ) {
11810
+ for (let b = p.from, y = c; ; ) {
11811
11811
  if (b == e)
11812
11812
  break e;
11813
11813
  if (y && o[y - 1].to == b)
@@ -11819,19 +11819,19 @@ function yl(n, e, t, r, i, o, s) {
11819
11819
  }
11820
11820
  }
11821
11821
  if (d)
11822
- d.push(g);
11822
+ d.push(p);
11823
11823
  else {
11824
- g.to < a && s.push(new kt(g.to, a, f));
11825
- let b = g.direction == Tn != !(f % 2);
11826
- wl(n, b ? r + 1 : r, i, g.inner, g.from, g.to, s), a = g.from;
11824
+ p.to < a && s.push(new kt(p.to, a, f));
11825
+ let b = p.direction == Tn != !(f % 2);
11826
+ wl(n, b ? r + 1 : r, i, p.inner, p.from, p.to, s), a = p.from;
11827
11827
  }
11828
- p = g.from;
11828
+ g = p.from;
11829
11829
  } else {
11830
- if (p == e || (u ? ie[p - 1] != l : ie[p - 1] == l))
11830
+ if (g == e || (u ? ie[g - 1] != l : ie[g - 1] == l))
11831
11831
  break;
11832
- p--;
11832
+ g--;
11833
11833
  }
11834
- d ? yl(n, p, a, r + 1, i, d, s) : p < a && s.push(new kt(p, a, f)), a = p;
11834
+ d ? yl(n, g, a, r + 1, i, d, s) : g < a && s.push(new kt(g, a, f)), a = g;
11835
11835
  }
11836
11836
  }
11837
11837
  function wl(n, e, t, r, i, o, s) {
@@ -11928,7 +11928,7 @@ class on {
11928
11928
  const { eventHandlers: r, eventObservers: i, provide: o, decorations: s } = t || {};
11929
11929
  return new on(cS++, e, r, i, (l) => {
11930
11930
  let a = [];
11931
- return s && a.push(Fo.of((c) => {
11931
+ return s && a.push($o.of((c) => {
11932
11932
  let u = c.plugin(l);
11933
11933
  return u ? s(u) : he.none;
11934
11934
  })), o && a.push(o(l)), a;
@@ -11986,7 +11986,7 @@ class ms {
11986
11986
  this.spec = this.value = null;
11987
11987
  }
11988
11988
  }
11989
- const Lp = /* @__PURE__ */ U.define(), Ra = /* @__PURE__ */ U.define(), Fo = /* @__PURE__ */ U.define(), Bp = /* @__PURE__ */ U.define(), Ea = /* @__PURE__ */ U.define(), oi = /* @__PURE__ */ U.define(), Qp = /* @__PURE__ */ U.define();
11989
+ const Lp = /* @__PURE__ */ U.define(), Ra = /* @__PURE__ */ U.define(), $o = /* @__PURE__ */ U.define(), Bp = /* @__PURE__ */ U.define(), Ea = /* @__PURE__ */ U.define(), oi = /* @__PURE__ */ U.define(), Qp = /* @__PURE__ */ U.define();
11990
11990
  function Vc(n, e) {
11991
11991
  let t = n.state.facet(Qp);
11992
11992
  if (!t.length)
@@ -11998,19 +11998,19 @@ function Vc(n, e) {
11998
11998
  span(o, s, l, a) {
11999
11999
  let c = o - e.from, u = s - e.from, h = i;
12000
12000
  for (let d = l.length - 1; d >= 0; d--, a--) {
12001
- let f = l[d].spec.bidiIsolate, p;
12002
- if (f == null && (f = lS(e.text, c, u)), a > 0 && h.length && (p = h[h.length - 1]).to == c && p.direction == f)
12003
- p.to = u, h = p.inner;
12001
+ let f = l[d].spec.bidiIsolate, g;
12002
+ if (f == null && (f = lS(e.text, c, u)), a > 0 && h.length && (g = h[h.length - 1]).to == c && g.direction == f)
12003
+ g.to = u, h = g.inner;
12004
12004
  else {
12005
- let g = { from: c, to: u, direction: f, inner: [] };
12006
- h.push(g), h = g.inner;
12005
+ let p = { from: c, to: u, direction: f, inner: [] };
12006
+ h.push(p), h = p.inner;
12007
12007
  }
12008
12008
  }
12009
12009
  }
12010
12010
  }), i;
12011
12011
  }
12012
12012
  const _p = /* @__PURE__ */ U.define();
12013
- function $p(n) {
12013
+ function Fp(n) {
12014
12014
  let e = 0, t = 0, r = 0, i = 0;
12015
12015
  for (let o of n.state.facet(_p)) {
12016
12016
  let s = o(n);
@@ -12056,8 +12056,8 @@ class Ke {
12056
12056
  if (o < t.length && t[o] <= h) {
12057
12057
  let f = t[o + 1];
12058
12058
  o += 2, h = Math.max(h, f);
12059
- for (let p = i; p < e.length && e[p].fromB <= h; p++)
12060
- s = e[p].toA - e[p].toB;
12059
+ for (let g = i; g < e.length && e[g].fromB <= h; g++)
12060
+ s = e[g].toA - e[g].toB;
12061
12061
  d = Math.max(d, f + s);
12062
12062
  } else if (i < e.length && e[i].fromB <= h) {
12063
12063
  let f = e[i++];
@@ -12300,7 +12300,7 @@ class Vo extends zo {
12300
12300
  r = r.parent, r.breakAfter && o++, i = t.pop();
12301
12301
  } else {
12302
12302
  let s = r.children[i++];
12303
- if (s instanceof Ft)
12303
+ if (s instanceof $t)
12304
12304
  t.push(i), r = s, i = 0;
12305
12305
  else {
12306
12306
  let l = o + s.length, a = e(s, o);
@@ -12331,7 +12331,7 @@ class Vo extends zo {
12331
12331
  return r && t < 0 || !o ? { tile: r, offset: i } : { tile: o, offset: s };
12332
12332
  }
12333
12333
  }
12334
- class Ft extends zo {
12334
+ class $t extends zo {
12335
12335
  constructor(e, t) {
12336
12336
  super(e), this.wrapper = t;
12337
12337
  }
@@ -12345,7 +12345,7 @@ class Ft extends zo {
12345
12345
  return this.wrapper.attributes;
12346
12346
  }
12347
12347
  static of(e, t) {
12348
- let r = new Ft(t || document.createElement(e.tagName), e);
12348
+ let r = new $t(t || document.createElement(e.tagName), e);
12349
12349
  return t || (r.flags |= 4), r;
12350
12350
  }
12351
12351
  }
@@ -12368,8 +12368,8 @@ class Jn extends zo {
12368
12368
  let i = null, o = -1, s = null, l = -1;
12369
12369
  function a(u, h) {
12370
12370
  for (let d = 0, f = 0; d < u.children.length && f <= h; d++) {
12371
- let p = u.children[d], g = f + p.length;
12372
- g >= h && (p.isComposite() ? a(p, h - f) : (!s || s.isHidden && (t > 0 || r && dS(s, p))) && (g > h || p.flags & 32) ? (s = p, l = h - f) : (f < h || p.flags & 16 && !p.isHidden) && (i = p, o = h - f)), f = g;
12371
+ let g = u.children[d], p = f + g.length;
12372
+ p >= h && (g.isComposite() ? a(g, h - f) : (!s || s.isHidden && (t > 0 || r && dS(s, g))) && (p > h || g.flags & 32) ? (s = g, l = h - f) : (f < h || g.flags & 16 && !g.isHidden) && (i = g, o = h - f)), f = p;
12373
12373
  }
12374
12374
  }
12375
12375
  a(this, e);
@@ -12626,7 +12626,7 @@ class gS {
12626
12626
  }
12627
12627
  addLineStart(e, t) {
12628
12628
  var r;
12629
- e || (e = Fp);
12629
+ e || (e = $p);
12630
12630
  let i = Jn.start(e, t || ((r = this.cache.find(Jn)) === null || r === void 0 ? void 0 : r.dom), !!t);
12631
12631
  this.getBlockPos().append(this.lastBlock = this.curLine = i);
12632
12632
  }
@@ -12693,10 +12693,10 @@ class gS {
12693
12693
  let t = this.root;
12694
12694
  for (let r of this.wrappers) {
12695
12695
  let i = t.lastChild;
12696
- if (r.from < this.pos && i instanceof Ft && i.wrapper.eq(r.wrapper))
12696
+ if (r.from < this.pos && i instanceof $t && i.wrapper.eq(r.wrapper))
12697
12697
  t = i;
12698
12698
  else {
12699
- let o = Ft.of(r.wrapper, (e = this.cache.find(Ft, (s) => s.wrapper.eq(r.wrapper))) === null || e === void 0 ? void 0 : e.dom);
12699
+ let o = $t.of(r.wrapper, (e = this.cache.find($t, (s) => s.wrapper.eq(r.wrapper))) === null || e === void 0 ? void 0 : e.dom);
12700
12700
  t.append(o), t = o;
12701
12701
  }
12702
12702
  }
@@ -12739,7 +12739,7 @@ class mS {
12739
12739
  return this.textOff = t, r;
12740
12740
  }
12741
12741
  }
12742
- const oo = [Rn, Jn, bn, Qe, io, Ft, Vo];
12742
+ const oo = [Rn, Jn, bn, Qe, io, $t, Vo];
12743
12743
  for (let n = 0; n < oo.length; n++)
12744
12744
  oo[n].bucket = n;
12745
12745
  class bS {
@@ -12888,8 +12888,8 @@ class vS {
12888
12888
  if (o = u.length, h > u.length)
12889
12889
  i.continueWidget(a - l);
12890
12890
  else {
12891
- let f = c.widget || (c.block ? er.block : er.inline), p = yS(c), g = this.cache.findWidget(f, a - l, p) || Rn.of(f, this.view, a - l, p);
12892
- c.block ? (c.startSide > 0 && i.addLineStartIfNotCovered(r), i.addBlockWidget(g)) : (i.ensureLine(r), i.addInlineWidget(g, u, h));
12891
+ let f = c.widget || (c.block ? er.block : er.inline), g = yS(c), p = this.cache.findWidget(f, a - l, g) || Rn.of(f, this.view, a - l, g);
12892
+ c.block ? (c.startSide > 0 && i.addLineStartIfNotCovered(r), i.addBlockWidget(p)) : (i.ensureLine(r), i.addInlineWidget(p, u, h));
12893
12893
  }
12894
12894
  r = null;
12895
12895
  } else
@@ -12914,7 +12914,7 @@ class vS {
12914
12914
  let o = de.get(i);
12915
12915
  if (i == this.view.contentDOM)
12916
12916
  break;
12917
- o instanceof Qe ? t.push(o) : o != null && o.isLine() ? r = o : o instanceof Ft || (i.nodeName == "DIV" && !r && i != this.view.contentDOM ? r = new Jn(i, Fp) : r || t.push(Qe.of(new ri({ tagName: i.nodeName.toLowerCase(), attributes: jx(i) }), i)));
12917
+ o instanceof Qe ? t.push(o) : o != null && o.isLine() ? r = o : o instanceof $t || (i.nodeName == "DIV" && !r && i != this.view.contentDOM ? r = new Jn(i, $p) : r || t.push(Qe.of(new ri({ tagName: i.nodeName.toLowerCase(), attributes: jx(i) }), i)));
12918
12918
  }
12919
12919
  return { line: r, marks: t };
12920
12920
  }
@@ -12932,7 +12932,7 @@ function yS(n) {
12932
12932
  let e = n.isReplace ? (n.startSide < 0 ? 64 : 0) | (n.endSide > 0 ? 128 : 0) : n.startSide > 0 ? 32 : 16;
12933
12933
  return n.block && (e |= 256), e;
12934
12934
  }
12935
- const Fp = { class: "cm-line" };
12935
+ const $p = { class: "cm-line" };
12936
12936
  function wS(n, e) {
12937
12937
  let t = e.spec.attributes, r = e.spec.class;
12938
12938
  return !t && !r || (n || (n = { class: "cm-line" }), t && ka(t, n), r && (n.class += " " + r)), n;
@@ -13054,8 +13054,8 @@ class Uc {
13054
13054
  if (L.gecko) {
13055
13055
  let f = kS(c.node, c.offset);
13056
13056
  if (f && f != 3) {
13057
- let p = (f == 1 ? yp : wp)(c.node, c.offset);
13058
- p && (c = new ot(p.node, p.offset));
13057
+ let g = (f == 1 ? yp : wp)(c.node, c.offset);
13058
+ g && (c = new ot(g.node, g.offset));
13059
13059
  }
13060
13060
  }
13061
13061
  d.collapse(c.node, c.offset), a.bidiLevel != null && d.caretBidiLevel !== void 0 && (d.caretBidiLevel = a.bidiLevel);
@@ -13189,18 +13189,18 @@ class Uc {
13189
13189
  }
13190
13190
  measureVisibleLineHeights(e) {
13191
13191
  let t = [], { from: r, to: i } = e, o = this.view.contentDOM.clientWidth, s = o > Math.max(this.view.scrollDOM.clientWidth, this.minWidth) + 1, l = -1, a = this.view.textDirection == be.LTR, c = 0, u = (h, d, f) => {
13192
- for (let p = 0; p < h.children.length && !(d > i); p++) {
13193
- let g = h.children[p], b = d + g.length, y = g.dom.getBoundingClientRect(), { height: x } = y;
13194
- if (f && !p && (c += y.top - f.top), g instanceof Ft)
13195
- b > r && u(g, d, y);
13192
+ for (let g = 0; g < h.children.length && !(d > i); g++) {
13193
+ let p = h.children[g], b = d + p.length, y = p.dom.getBoundingClientRect(), { height: x } = y;
13194
+ if (f && !g && (c += y.top - f.top), p instanceof $t)
13195
+ b > r && u(p, d, y);
13196
13196
  else if (d >= r && (c > 0 && t.push(-c), t.push(x + c), c = 0, s)) {
13197
- let w = g.dom.lastChild, S = w ? Mr(w) : [];
13197
+ let w = p.dom.lastChild, S = w ? Mr(w) : [];
13198
13198
  if (S.length) {
13199
13199
  let C = S[S.length - 1], A = a ? C.right - y.left : y.right - C.left;
13200
13200
  A > l && (l = A, this.minWidth = o, this.minWidthFrom = d, this.minWidthTo = b);
13201
13201
  }
13202
13202
  }
13203
- f && p == h.children.length - 1 && (c += f.bottom - y.bottom), d = b + g.breakAfter;
13203
+ f && g == h.children.length - 1 && (c += f.bottom - y.bottom), d = b + p.breakAfter;
13204
13204
  }
13205
13205
  };
13206
13206
  return u(this.tile, 0, null), t;
@@ -13258,7 +13258,7 @@ class Uc {
13258
13258
  return he.set(e);
13259
13259
  }
13260
13260
  updateDeco() {
13261
- let e = 1, t = this.view.state.facet(Fo).map((o) => (this.dynamicDecorationMap[e++] = typeof o == "function") ? o(this.view) : o), r = !1, i = this.view.state.facet(Ea).map((o, s) => {
13261
+ let e = 1, t = this.view.state.facet($o).map((o) => (this.dynamicDecorationMap[e++] = typeof o == "function") ? o(this.view) : o), r = !1, i = this.view.state.facet(Ea).map((o, s) => {
13262
13262
  let l = typeof o == "function";
13263
13263
  return l && (r = !0), l ? o(this.view) : o;
13264
13264
  });
@@ -13294,7 +13294,7 @@ class Uc {
13294
13294
  right: Math.max(i.right, o.right),
13295
13295
  bottom: Math.max(i.bottom, o.bottom)
13296
13296
  });
13297
- let s = $p(this.view), l = {
13297
+ let s = Fp(this.view), l = {
13298
13298
  left: i.left - s.left,
13299
13299
  top: i.top - s.top,
13300
13300
  right: i.right + s.right,
@@ -13456,7 +13456,7 @@ function NS(n, e, t, r, i) {
13456
13456
  o += a * n.viewState.heightOracle.lineLength;
13457
13457
  }
13458
13458
  let s = n.state.sliceDoc(t.from, t.to);
13459
- return t.from + $x(s, o, n.state.tabSize);
13459
+ return t.from + Fx(s, o, n.state.tabSize);
13460
13460
  }
13461
13461
  function DS(n, e, t) {
13462
13462
  let r = n.lineBlockAt(e);
@@ -13523,13 +13523,13 @@ function BS(n, e, t, r) {
13523
13523
  if (c)
13524
13524
  s == null && (s = c.left - a.left), l = o < 0 ? c.top : c.bottom;
13525
13525
  else {
13526
- let p = n.viewState.lineBlockAt(i);
13527
- s == null && (s = Math.min(a.right - a.left, n.defaultCharacterWidth * (i - p.from))), l = (o < 0 ? p.top : p.bottom) + u;
13526
+ let g = n.viewState.lineBlockAt(i);
13527
+ s == null && (s = Math.min(a.right - a.left, n.defaultCharacterWidth * (i - g.from))), l = (o < 0 ? g.top : g.bottom) + u;
13528
13528
  }
13529
13529
  let h = a.left + s, d = n.viewState.heightOracle.textHeight >> 1, f = r ?? d;
13530
- for (let p = 0; ; p += d) {
13531
- let g = l + (f + p) * o, b = Ol(n, { x: h, y: g }, !1, o);
13532
- if (t ? g > a.bottom : g < a.top)
13530
+ for (let g = 0; ; g += d) {
13531
+ let p = l + (f + g) * o, b = Ol(n, { x: h, y: p }, !1, o);
13532
+ if (t ? p > a.bottom : p < a.top)
13533
13533
  return E.cursor(b.pos, b.assoc);
13534
13534
  let y = n.coordsAtPos(b.pos, b.assoc), x = y ? (y.top + y.bottom) / 2 : 0;
13535
13535
  if (!y || (t ? x > l : x < l))
@@ -13637,33 +13637,33 @@ class QS {
13637
13637
  scan(e, t) {
13638
13638
  let r = 0, i = e.length - 1, o = /* @__PURE__ */ new Set(), s = this.bidiIn(e[0], e[i]), l, a, c = -1, u = 1e9, h;
13639
13639
  e: for (; r < i; ) {
13640
- let f = i - r, p = r + i >> 1;
13641
- t: if (o.has(p)) {
13640
+ let f = i - r, g = r + i >> 1;
13641
+ t: if (o.has(g)) {
13642
13642
  let b = r + Math.floor(Math.random() * f);
13643
13643
  for (let y = 0; y < f; y++) {
13644
13644
  if (!o.has(b)) {
13645
- p = b;
13645
+ g = b;
13646
13646
  break t;
13647
13647
  }
13648
13648
  b++, b == i && (b = r);
13649
13649
  }
13650
13650
  break e;
13651
13651
  }
13652
- o.add(p);
13653
- let g = t(p);
13654
- if (g)
13655
- for (let b = 0; b < g.length; b++) {
13656
- let y = g[b], x = 0;
13657
- if (!(y.width == 0 && g.length > 1)) {
13652
+ o.add(g);
13653
+ let p = t(g);
13654
+ if (p)
13655
+ for (let b = 0; b < p.length; b++) {
13656
+ let y = p[b], x = 0;
13657
+ if (!(y.width == 0 && p.length > 1)) {
13658
13658
  if (y.bottom < this.y)
13659
13659
  (!l || l.bottom < y.bottom) && (l = y), x = 1;
13660
13660
  else if (y.top > this.y)
13661
13661
  (!a || a.top > y.top) && (a = y), x = -1;
13662
13662
  else {
13663
13663
  let w = y.left > this.x ? this.x - y.left : y.right < this.x ? this.x - y.right : 0, S = Math.abs(w);
13664
- S < u && (c = p, u = S, h = y), w && (x = w < 0 == (this.baseDir == be.LTR) ? -1 : 1);
13664
+ S < u && (c = g, u = S, h = y), w && (x = w < 0 == (this.baseDir == be.LTR) ? -1 : 1);
13665
13665
  }
13666
- x == -1 && (!s || this.baseDirAt(e[p], 1)) ? i = p : x == 1 && (!s || this.baseDirAt(e[p + 1], -1)) && (r = p + 1);
13666
+ x == -1 && (!s || this.baseDirAt(e[g], 1)) ? i = g : x == 1 && (!s || this.baseDirAt(e[g + 1], -1)) && (r = g + 1);
13667
13667
  }
13668
13668
  }
13669
13669
  }
@@ -13734,7 +13734,7 @@ class _S {
13734
13734
  break;
13735
13735
  }
13736
13736
  let a = de.get(l);
13737
- (s && a ? s.breakAfter : (s ? s.breakAfter : no(i)) || no(l) && (i.nodeName != "BR" || s != null && s.isWidget()) && this.text.length > o) && !FS(l, t) && this.lineBreak(), i = l;
13737
+ (s && a ? s.breakAfter : (s ? s.breakAfter : no(i)) || no(l) && (i.nodeName != "BR" || s != null && s.isWidget()) && this.text.length > o) && !$S(l, t) && this.lineBreak(), i = l;
13738
13738
  }
13739
13739
  return this.findPointBefore(r, t), this;
13740
13740
  }
@@ -13766,10 +13766,10 @@ class _S {
13766
13766
  }
13767
13767
  findPointInside(e, t) {
13768
13768
  for (let r of this.points)
13769
- (e.nodeType == 3 ? r.node == e : e.contains(r.node)) && (r.pos = this.text.length + ($S(e, r.node, r.offset) ? t : 0));
13769
+ (e.nodeType == 3 ? r.node == e : e.contains(r.node)) && (r.pos = this.text.length + (FS(e, r.node, r.offset) ? t : 0));
13770
13770
  }
13771
13771
  }
13772
- function $S(n, e, t) {
13772
+ function FS(n, e, t) {
13773
13773
  for (; ; ) {
13774
13774
  if (!e || t < Wt(e))
13775
13775
  return !1;
@@ -13778,7 +13778,7 @@ function $S(n, e, t) {
13778
13778
  t = rn(e) + 1, e = e.parentNode;
13779
13779
  }
13780
13780
  }
13781
- function FS(n, e) {
13781
+ function $S(n, e) {
13782
13782
  let t;
13783
13783
  for (; !(n == e || !n); n = n.nextSibling) {
13784
13784
  let r = de.get(n);
@@ -13811,8 +13811,8 @@ class zS {
13811
13811
  } else {
13812
13812
  let a = e.observer.selectionRange, c = o && o.node == a.focusNode && o.offset == a.focusOffset || !bl(e.contentDOM, a.focusNode) ? l.main.head : e.docView.posFromDOM(a.focusNode, a.focusOffset), u = s && s.node == a.anchorNode && s.offset == a.anchorOffset || !bl(e.contentDOM, a.anchorNode) ? l.main.anchor : e.docView.posFromDOM(a.anchorNode, a.anchorOffset), h = e.viewport;
13813
13813
  if ((L.ios || L.chrome) && l.main.empty && c != u && (h.from > 0 || h.to < e.state.doc.length)) {
13814
- let d = Math.min(c, u), f = Math.max(c, u), p = h.from - d, g = h.to - f;
13815
- (p == 0 || p == 1 || d == 0) && (g == 0 || g == -1 || f == e.state.doc.length) && (c = 0, u = e.state.doc.length);
13814
+ let d = Math.min(c, u), f = Math.max(c, u), g = h.from - d, p = h.to - f;
13815
+ (g == 0 || g == 1 || d == 0) && (p == 0 || p == -1 || f == e.state.doc.length) && (c = 0, u = e.state.doc.length);
13816
13816
  }
13817
13817
  if (e.inputState.composing > -1 && l.ranges.length > 1)
13818
13818
  this.newSel = l.replaceRange(E.range(u, c));
@@ -13908,25 +13908,25 @@ function VS(n, e, t) {
13908
13908
  if (i.selection.ranges.length > 1 && (n.inputState.composing >= 0 || n.inputState.compositionPendingChange) && e.to <= o.to + 10 && e.to >= o.to - 10) {
13909
13909
  let u = n.state.sliceDoc(e.from, e.to), h, d = t && zp(n, t.main.head);
13910
13910
  if (d) {
13911
- let p = e.insert.length - (e.to - e.from);
13912
- h = { from: d.from, to: d.to - p };
13911
+ let g = e.insert.length - (e.to - e.from);
13912
+ h = { from: d.from, to: d.to - g };
13913
13913
  } else
13914
13914
  h = n.state.doc.lineAt(o.head);
13915
13915
  let f = o.to - e.to;
13916
- r = i.changeByRange((p) => {
13917
- if (p.from == o.from && p.to == o.to)
13918
- return { changes: a, range: c || p.map(a) };
13919
- let g = p.to - f, b = g - u.length;
13920
- if (n.state.sliceDoc(b, g) != u || // Unfortunately, there's no way to make multiple
13916
+ r = i.changeByRange((g) => {
13917
+ if (g.from == o.from && g.to == o.to)
13918
+ return { changes: a, range: c || g.map(a) };
13919
+ let p = g.to - f, b = p - u.length;
13920
+ if (n.state.sliceDoc(b, p) != u || // Unfortunately, there's no way to make multiple
13921
13921
  // changes in the same node work without aborting
13922
13922
  // composition, so cursors in the composition range are
13923
13923
  // ignored.
13924
- g >= h.from && b <= h.to)
13925
- return { range: p };
13926
- let y = i.changes({ from: b, to: g, insert: e.insert }), x = p.to - o.to;
13924
+ p >= h.from && b <= h.to)
13925
+ return { range: g };
13926
+ let y = i.changes({ from: b, to: p, insert: e.insert }), x = g.to - o.to;
13927
13927
  return {
13928
13928
  changes: y,
13929
- range: c ? E.range(Math.max(0, c.anchor + x), Math.max(0, c.head + x)) : p.map(y)
13929
+ range: c ? E.range(Math.max(0, c.anchor + x), Math.max(0, c.head + x)) : g.map(y)
13930
13930
  };
13931
13931
  });
13932
13932
  } else
@@ -14066,8 +14066,8 @@ function jS(n) {
14066
14066
  }
14067
14067
  for (let r in ct)
14068
14068
  t(r).handlers.push(ct[r]);
14069
- for (let r in Fe)
14070
- t(r).observers.push(Fe[r]);
14069
+ for (let r in $e)
14070
+ t(r).observers.push($e[r]);
14071
14071
  return e;
14072
14072
  }
14073
14073
  const jp = [
@@ -14099,7 +14099,7 @@ class YS {
14099
14099
  this.select(this.lastEvent = e);
14100
14100
  let t = 0, r = 0, i = 0, o = 0, s = this.view.win.innerWidth, l = this.view.win.innerHeight;
14101
14101
  this.scrollParents.x && ({ left: i, right: s } = this.scrollParents.x.getBoundingClientRect()), this.scrollParents.y && ({ top: o, bottom: l } = this.scrollParents.y.getBoundingClientRect());
14102
- let a = $p(this.view);
14102
+ let a = Fp(this.view);
14103
14103
  e.clientX - a.left <= i + xi ? t = -Si(i - e.clientX) : e.clientX + a.right >= s - xi && (t = Si(e.clientX - s)), e.clientY - a.top <= o + xi ? r = -Si(o - e.clientY) : e.clientY + a.bottom >= l - xi && (r = Si(e.clientY - l)), this.setScrollSpeed(t, r);
14104
14104
  }
14105
14105
  up(e) {
@@ -14161,7 +14161,7 @@ function JS(n, e) {
14161
14161
  return !1;
14162
14162
  return !0;
14163
14163
  }
14164
- const ct = /* @__PURE__ */ Object.create(null), Fe = /* @__PURE__ */ Object.create(null), Gp = L.ie && L.ie_version < 15 || L.ios && L.webkit_version < 604;
14164
+ const ct = /* @__PURE__ */ Object.create(null), $e = /* @__PURE__ */ Object.create(null), Gp = L.ie && L.ie_version < 15 || L.ios && L.webkit_version < 604;
14165
14165
  function e1(n) {
14166
14166
  let e = n.dom.parentNode;
14167
14167
  if (!e)
@@ -14204,18 +14204,18 @@ function Yp(n, e) {
14204
14204
  scrollIntoView: !0
14205
14205
  });
14206
14206
  }
14207
- Fe.scroll = (n) => {
14207
+ $e.scroll = (n) => {
14208
14208
  n.inputState.lastScrollTop = n.scrollDOM.scrollTop, n.inputState.lastScrollLeft = n.scrollDOM.scrollLeft;
14209
14209
  };
14210
- Fe.wheel = Fe.mousewheel = (n) => {
14210
+ $e.wheel = $e.mousewheel = (n) => {
14211
14211
  n.inputState.lastWheelEvent = Date.now();
14212
14212
  };
14213
14213
  ct.keydown = (n, e) => (n.inputState.setSelectionOrigin("select"), e.keyCode == 27 && n.inputState.tabFocusMode != 0 && (n.inputState.tabFocusMode = Date.now() + 2e3), !1);
14214
- Fe.touchstart = (n, e) => {
14214
+ $e.touchstart = (n, e) => {
14215
14215
  let t = n.inputState, r = e.targetTouches[0];
14216
14216
  t.lastTouchTime = Date.now(), r && (t.lastTouchX = r.clientX, t.lastTouchY = r.clientY), t.setSelectionOrigin("select.pointer");
14217
14217
  };
14218
- Fe.touchmove = (n) => {
14218
+ $e.touchmove = (n) => {
14219
14219
  n.inputState.setSelectionOrigin("select.pointer");
14220
14220
  };
14221
14221
  ct.mousedown = (n, e) => {
@@ -14391,21 +14391,21 @@ function Jp(n) {
14391
14391
  }
14392
14392
  }, 10);
14393
14393
  }
14394
- Fe.focus = (n) => {
14394
+ $e.focus = (n) => {
14395
14395
  n.inputState.lastFocusTime = Date.now(), !n.scrollDOM.scrollTop && (n.inputState.lastScrollTop || n.inputState.lastScrollLeft) && (n.scrollDOM.scrollTop = n.inputState.lastScrollTop, n.scrollDOM.scrollLeft = n.inputState.lastScrollLeft), Jp(n);
14396
14396
  };
14397
- Fe.blur = (n) => {
14397
+ $e.blur = (n) => {
14398
14398
  n.observer.clearSelectionRange(), Jp(n);
14399
14399
  };
14400
- Fe.compositionstart = Fe.compositionupdate = (n) => {
14400
+ $e.compositionstart = $e.compositionupdate = (n) => {
14401
14401
  n.observer.editContext || (n.inputState.compositionFirstChange == null && (n.inputState.compositionFirstChange = !0), n.inputState.composing < 0 && (n.inputState.composing = 0));
14402
14402
  };
14403
- Fe.compositionend = (n) => {
14403
+ $e.compositionend = (n) => {
14404
14404
  n.observer.editContext || (n.inputState.composing = -1, n.inputState.compositionEndedAt = Date.now(), n.inputState.compositionPendingKey = !0, n.inputState.compositionPendingChange = n.observer.pendingRecords().length > 0, n.inputState.compositionFirstChange = null, L.chrome && L.android ? n.observer.flushSoon() : n.inputState.compositionPendingChange ? Promise.resolve().then(() => n.observer.flush()) : setTimeout(() => {
14405
14405
  n.inputState.composing < 0 && n.docView.hasComposition && n.update([]);
14406
14406
  }, 50));
14407
14407
  };
14408
- Fe.contextmenu = (n) => {
14408
+ $e.contextmenu = (n) => {
14409
14409
  n.inputState.lastContextMenu = Date.now();
14410
14410
  };
14411
14411
  ct.beforeinput = (n, e) => {
@@ -14425,7 +14425,7 @@ ct.beforeinput = (n, e) => {
14425
14425
  (((s = window.visualViewport) === null || s === void 0 ? void 0 : s.height) || 0) > o + 10 && n.hasFocus && (n.contentDOM.blur(), n.focus());
14426
14426
  }, 100);
14427
14427
  }
14428
- return L.ios && e.inputType == "deleteContentForward" && n.observer.flushSoon(), L.safari && e.inputType == "insertText" && n.inputState.composing >= 0 && setTimeout(() => Fe.compositionend(n, e), 20), !1;
14428
+ return L.ios && e.inputType == "deleteContentForward" && n.observer.flushSoon(), L.safari && e.inputType == "insertText" && n.inputState.composing >= 0 && setTimeout(() => $e.compositionend(n, e), 20), !1;
14429
14429
  };
14430
14430
  const eu = /* @__PURE__ */ new Set();
14431
14431
  function s1(n) {
@@ -14534,7 +14534,7 @@ class rt {
14534
14534
  var se = /* @__PURE__ */ (function(n) {
14535
14535
  return n[n.ByPos = 0] = "ByPos", n[n.ByHeight = 1] = "ByHeight", n[n.ByPosNoHeight = 2] = "ByPosNoHeight", n;
14536
14536
  })(se || (se = {}));
14537
- const $i = 1e-3;
14537
+ const Fi = 1e-3;
14538
14538
  class Le {
14539
14539
  constructor(e, t, r = 2) {
14540
14540
  this.length = e, this.height = t, this.flags = r;
@@ -14546,7 +14546,7 @@ class Le {
14546
14546
  this.flags = (e ? 2 : 0) | this.flags & -3;
14547
14547
  }
14548
14548
  setHeight(e) {
14549
- this.height != e && (Math.abs(this.height - e) > $i && (tr = !0), this.height = e);
14549
+ this.height != e && (Math.abs(this.height - e) > Fi && (tr = !0), this.height = e);
14550
14550
  }
14551
14551
  // Base case is to replace a leaf node, which simply builds a tree
14552
14552
  // from the new nodes and returns that (HeightMapBranch and
@@ -14568,8 +14568,8 @@ class Le {
14568
14568
  for (h += f.to - c, c = f.to; l > 0 && d.from <= i[l - 1].toA; )
14569
14569
  a = i[l - 1].fromA, u = i[l - 1].fromB, l--, a < d.from && (d = o.lineAt(a, se.ByPosNoHeight, r, 0, 0));
14570
14570
  u += d.from - a, a = d.from;
14571
- let p = Na.build(r.setDoc(s), e, u, h);
14572
- o = lo(o, o.replace(a, c, p));
14571
+ let g = Na.build(r.setDoc(s), e, u, h);
14572
+ o = lo(o, o.replace(a, c, g));
14573
14573
  }
14574
14574
  return o.updateHeight(r, 0);
14575
14575
  }
@@ -14683,8 +14683,8 @@ class Se extends Le {
14683
14683
  if (t == se.ByHeight)
14684
14684
  return this.blockAt(e, r, i, o);
14685
14685
  if (t == se.ByPosNoHeight) {
14686
- let { from: f, to: p } = r.doc.lineAt(e);
14687
- return new rt(f, p - f, 0, 0, 0);
14686
+ let { from: f, to: g } = r.doc.lineAt(e);
14687
+ return new rt(f, g - f, 0, 0, 0);
14688
14688
  }
14689
14689
  let { firstLine: s, perLine: l, perChar: a } = this.heightMetrics(r, o), c = r.doc.lineAt(e), u = l + c.length * a, h = c.number - s, d = i + l * h + a * (c.from - o - h);
14690
14690
  return new rt(c.from, c.length, Math.max(i, Math.min(d, i + this.height - u)), u, 0);
@@ -14695,8 +14695,8 @@ class Se extends Le {
14695
14695
  for (let u = e, h = i; u <= t; ) {
14696
14696
  let d = r.doc.lineAt(u);
14697
14697
  if (u == e) {
14698
- let p = d.number - l;
14699
- h += a * p + c * (e - o - p);
14698
+ let g = d.number - l;
14699
+ h += a * g + c * (e - o - g);
14700
14700
  }
14701
14701
  let f = a + c * d.length;
14702
14702
  s(new rt(d.from, d.length, h, f, 0)), h += f, u = d.to + 1;
@@ -14728,13 +14728,13 @@ class Se extends Le {
14728
14728
  let u = e.doc.lineAt(l).length;
14729
14729
  s.length && s.push(null);
14730
14730
  let h = i.heights[i.index++], d = 0;
14731
- h < 0 && (d = -h, h = i.heights[i.index++]), a == -1 ? a = h : Math.abs(h - a) >= $i && (a = -2);
14731
+ h < 0 && (d = -h, h = i.heights[i.index++]), a == -1 ? a = h : Math.abs(h - a) >= Fi && (a = -2);
14732
14732
  let f = new Ue(u, h, d);
14733
14733
  f.outdated = !1, s.push(f), l += u + 1;
14734
14734
  }
14735
14735
  l <= o && s.push(null, new Se(o - l).updateHeight(e, l));
14736
14736
  let c = Le.of(s);
14737
- return (a < 0 || Math.abs(c.height - this.height) >= $i || Math.abs(a - this.heightMetrics(e, t).perLine) >= $i) && (tr = !0), lo(this, c);
14737
+ return (a < 0 || Math.abs(c.height - this.height) >= Fi || Math.abs(a - this.heightMetrics(e, t).perLine) >= Fi) && (tr = !0), lo(this, c);
14738
14738
  } else (r || this.outdated) && (this.setHeight(e.heightForGap(t, t + this.length)), this.outdated = !1);
14739
14739
  return this;
14740
14740
  }
@@ -15019,10 +15019,10 @@ class iu {
15019
15019
  (this.paddingTop != h || this.paddingBottom != d) && (this.paddingTop = h, this.paddingBottom = d, c |= 18), this.editorWidth != e.scrollDOM.clientWidth && (i.lineWrapping && (a = !0), this.editorWidth = e.scrollDOM.clientWidth, c |= 16);
15020
15020
  let f = mp(this.view.contentDOM, !1).y;
15021
15021
  f != this.scrollParent && (this.scrollParent = f, this.scrollAnchorHeight = -1, this.scrollOffset = 0);
15022
- let p = this.getScrollOffset();
15023
- this.scrollOffset != p && (this.scrollAnchorHeight = -1, this.scrollOffset = p), this.scrolledToBottom = vp(this.scrollParent || e.win);
15024
- let g = (this.printing ? m1 : p1)(t, this.paddingTop), b = g.top - this.pixelViewport.top, y = g.bottom - this.pixelViewport.bottom;
15025
- this.pixelViewport = g;
15022
+ let g = this.getScrollOffset();
15023
+ this.scrollOffset != g && (this.scrollAnchorHeight = -1, this.scrollOffset = g), this.scrolledToBottom = vp(this.scrollParent || e.win);
15024
+ let p = (this.printing ? m1 : p1)(t, this.paddingTop), b = p.top - this.pixelViewport.top, y = p.bottom - this.pixelViewport.bottom;
15025
+ this.pixelViewport = p;
15026
15026
  let x = this.pixelViewport.bottom > this.pixelViewport.top && this.pixelViewport.right > this.pixelViewport.left;
15027
15027
  if (x != this.inView && (this.inView = x, x && (a = !0)), !this.inView && !this.scrollTarget && !g1(e.dom))
15028
15028
  return 0;
@@ -15102,14 +15102,14 @@ class iu {
15102
15102
  let l = [], a = (u, h, d, f) => {
15103
15103
  if (h - u < o)
15104
15104
  return;
15105
- let p = this.state.selection.main, g = [p.from];
15106
- p.empty || g.push(p.to);
15107
- for (let y of g)
15105
+ let g = this.state.selection.main, p = [g.from];
15106
+ g.empty || p.push(g.to);
15107
+ for (let y of p)
15108
15108
  if (y > u && y < h) {
15109
15109
  a(u, y - 10, d, f), a(y + 10, h, d, f);
15110
15110
  return;
15111
15111
  }
15112
- let b = y1(e, (y) => y.from >= d.from && y.to <= d.to && Math.abs(y.from - u) < o && Math.abs(y.to - h) < o && !g.some((x) => y.from < x && y.to > x));
15112
+ let b = y1(e, (y) => y.from >= d.from && y.to <= d.to && Math.abs(y.from - u) < o && Math.abs(y.to - h) < o && !p.some((x) => y.from < x && y.to > x));
15113
15113
  if (!b) {
15114
15114
  if (h < d.to && t && r && t.visibleRanges.some((w) => w.from <= h && w.to >= h)) {
15115
15115
  let w = t.moveToLineBoundary(E.cursor(h), !1, !0).head;
@@ -15125,29 +15125,29 @@ class iu {
15125
15125
  let h = v1(u.from, u.to, this.stateDeco);
15126
15126
  if (h.total < s)
15127
15127
  return;
15128
- let d = this.scrollTarget ? this.scrollTarget.range.head : null, f, p;
15128
+ let d = this.scrollTarget ? this.scrollTarget.range.head : null, f, g;
15129
15129
  if (r) {
15130
- let g = i / this.heightOracle.lineLength * this.heightOracle.lineHeight, b, y;
15130
+ let p = i / this.heightOracle.lineLength * this.heightOracle.lineHeight, b, y;
15131
15131
  if (d != null) {
15132
- let x = Ci(h, d), w = ((this.visibleBottom - this.visibleTop) / 2 + g) / u.height;
15132
+ let x = Ci(h, d), w = ((this.visibleBottom - this.visibleTop) / 2 + p) / u.height;
15133
15133
  b = x - w, y = x + w;
15134
15134
  } else
15135
- b = (this.visibleTop - u.top - g) / u.height, y = (this.visibleBottom - u.top + g) / u.height;
15136
- f = ki(h, b), p = ki(h, y);
15135
+ b = (this.visibleTop - u.top - p) / u.height, y = (this.visibleBottom - u.top + p) / u.height;
15136
+ f = ki(h, b), g = ki(h, y);
15137
15137
  } else {
15138
- let g = h.total * this.heightOracle.charWidth, b = i * this.heightOracle.charWidth, y = 0;
15139
- if (g > 2e6)
15138
+ let p = h.total * this.heightOracle.charWidth, b = i * this.heightOracle.charWidth, y = 0;
15139
+ if (p > 2e6)
15140
15140
  for (let A of e)
15141
15141
  A.from >= u.from && A.from < u.to && A.size != A.displaySize && A.from * this.heightOracle.charWidth + y < this.pixelViewport.left && (y = A.size - A.displaySize);
15142
15142
  let x = this.pixelViewport.left + y, w = this.pixelViewport.right + y, S, C;
15143
15143
  if (d != null) {
15144
- let A = Ci(h, d), k = ((w - x) / 2 + b) / g;
15144
+ let A = Ci(h, d), k = ((w - x) / 2 + b) / p;
15145
15145
  S = A - k, C = A + k;
15146
15146
  } else
15147
- S = (x - b) / g, C = (w + b) / g;
15148
- f = ki(h, S), p = ki(h, C);
15147
+ S = (x - b) / p, C = (w + b) / p;
15148
+ f = ki(h, S), g = ki(h, C);
15149
15149
  }
15150
- f > u.from && a(u.from, f, u, h), p < u.to && a(p, u.to, u, h);
15150
+ f > u.from && a(u.from, f, u, h), g < u.to && a(g, u.to, u, h);
15151
15151
  };
15152
15152
  for (let u of this.viewportLines)
15153
15153
  Array.isArray(u.type) ? u.type.forEach(c) : c(u);
@@ -15261,7 +15261,7 @@ const ou = {
15261
15261
  }
15262
15262
  };
15263
15263
  function su(n) {
15264
- let e = n.facet(Fo).filter((r) => typeof r != "function"), t = n.facet(Ea).filter((r) => typeof r != "function");
15264
+ let e = n.facet($o).filter((r) => typeof r != "function"), t = n.facet(Ea).filter((r) => typeof r != "function");
15265
15265
  return t.length && e.push(te.join(t)), e;
15266
15266
  }
15267
15267
  class Da {
@@ -16221,18 +16221,18 @@ class j {
16221
16221
  let u = c.map((f) => {
16222
16222
  try {
16223
16223
  return f.read(this);
16224
- } catch (p) {
16225
- return Ct(this.state, p), cu;
16224
+ } catch (g) {
16225
+ return Ct(this.state, g), cu;
16226
16226
  }
16227
16227
  }), h = ro.create(this, this.state, []), d = !1;
16228
16228
  h.flags |= a, t ? t.flags |= a : t = h, this.updateState = 2, h.empty || (this.updatePlugins(h), this.inputState.update(h), this.updateAttrs(), d = this.docView.update(h), d && this.docViewUpdate());
16229
16229
  for (let f = 0; f < c.length; f++)
16230
16230
  if (u[f] != cu)
16231
16231
  try {
16232
- let p = c[f];
16233
- p.write && p.write(u[f], this);
16234
- } catch (p) {
16235
- Ct(this.state, p);
16232
+ let g = c[f];
16233
+ g.write && g.write(u[f], this);
16234
+ } catch (g) {
16235
+ Ct(this.state, g);
16236
16236
  }
16237
16237
  if (d && this.docView.updateSelection(!0), !h.viewportChanged && this.measureRequests.length == 0) {
16238
16238
  if (this.viewState.editorHeight)
@@ -16240,9 +16240,9 @@ class j {
16240
16240
  this.docView.scrollIntoView(this.viewState.scrollTarget), this.viewState.scrollTarget = null, s = -1;
16241
16241
  continue;
16242
16242
  } else {
16243
- let p = ((o < 0 ? this.viewState.heightMap.height : this.viewState.lineBlockAt(o).top) - s) / this.scaleY;
16244
- if ((p > 1 || p < -1) && (r == this.scrollDOM || this.hasFocus || Math.max(this.inputState.lastWheelEvent, this.inputState.lastTouchTime) > Date.now() - 100)) {
16245
- i = i + p, r ? r.scrollTop += p : this.win.scrollBy(0, p), s = -1;
16243
+ let g = ((o < 0 ? this.viewState.heightMap.height : this.viewState.lineBlockAt(o).top) - s) / this.scaleY;
16244
+ if ((g > 1 || g < -1) && (r == this.scrollDOM || this.hasFocus || Math.max(this.inputState.lastWheelEvent, this.inputState.lastTouchTime) > Date.now() - 100)) {
16245
+ i = i + g, r ? r.scrollTop += g : this.win.scrollBy(0, g), s = -1;
16246
16246
  continue;
16247
16247
  }
16248
16248
  }
@@ -16279,7 +16279,7 @@ class j {
16279
16279
  };
16280
16280
  this.state.readOnly && (t["aria-readonly"] = "true"), uu(this, Ra, t);
16281
16281
  let r = this.observer.ignore(() => {
16282
- let i = $c(this.contentDOM, this.contentAttrs, t), o = $c(this.dom, this.editorAttrs, e);
16282
+ let i = Fc(this.contentDOM, this.contentAttrs, t), o = Fc(this.dom, this.editorAttrs, e);
16283
16283
  return i || o;
16284
16284
  });
16285
16285
  return this.editorAttrs = e, this.contentAttrs = t, r;
@@ -16740,7 +16740,7 @@ j.editable = Bt;
16740
16740
  j.mouseSelectionStyle = Tp;
16741
16741
  j.dragMovesSelection = Pp;
16742
16742
  j.clickAddsSelectionRange = Ap;
16743
- j.decorations = Fo;
16743
+ j.decorations = $o;
16744
16744
  j.blockWrappers = Bp;
16745
16745
  j.outerDecorations = Ea;
16746
16746
  j.atomicRanges = oi;
@@ -16821,9 +16821,9 @@ function M1(n, e = A1) {
16821
16821
  throw new Error("Key binding " + s + " is used both as a regular binding and as a multi-stroke prefix");
16822
16822
  }, o = (s, l, a, c, u) => {
16823
16823
  var h, d;
16824
- let f = t[s] || (t[s] = /* @__PURE__ */ Object.create(null)), p = l.split(/ (?!$)/).map((y) => P1(y, e));
16825
- for (let y = 1; y < p.length; y++) {
16826
- let x = p.slice(0, y).join(" ");
16824
+ let f = t[s] || (t[s] = /* @__PURE__ */ Object.create(null)), g = l.split(/ (?!$)/).map((y) => P1(y, e));
16825
+ for (let y = 1; y < g.length; y++) {
16826
+ let x = g.slice(0, y).join(" ");
16827
16827
  i(x, !0), f[x] || (f[x] = {
16828
16828
  preventDefault: !0,
16829
16829
  stopPropagation: !1,
@@ -16835,9 +16835,9 @@ function M1(n, e = A1) {
16835
16835
  }]
16836
16836
  });
16837
16837
  }
16838
- let g = p.join(" ");
16839
- i(g, !1);
16840
- let b = f[g] || (f[g] = {
16838
+ let p = g.join(" ");
16839
+ i(p, !1);
16840
+ let b = f[p] || (f[p] = {
16841
16841
  preventDefault: !1,
16842
16842
  stopPropagation: !1,
16843
16843
  run: ((d = (h = f._any) === null || h === void 0 ? void 0 : h.run) === null || d === void 0 ? void 0 : d.slice()) || []
@@ -16874,10 +16874,10 @@ function N1(n, e, t, r) {
16874
16874
  b.preventDefault && (b.stopPropagation && (u = !0), c = !0);
16875
16875
  }
16876
16876
  return !1;
16877
- }, f = n[r], p, g;
16877
+ }, f = n[r], g, p;
16878
16878
  return f && (d(f[l + Pi(i, e, !s)]) ? a = !0 : s && (e.altKey || e.metaKey || e.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
16879
16879
  !(L.windows && e.ctrlKey && e.altKey) && // Alt-combinations on macOS tend to be typed characters
16880
- !(L.mac && e.altKey && !(e.ctrlKey || e.metaKey)) && (p = nn[e.keyCode]) && p != i ? (d(f[l + Pi(p, e, !0)]) || e.shiftKey && (g = Vr[e.keyCode]) != i && g != p && d(f[l + Pi(g, e, !1)])) && (a = !0) : s && e.shiftKey && d(f[l + Pi(i, e, !0)]) && (a = !0), !a && d(f._any) && (a = !0)), c && (a = !0), a && u && e.stopPropagation(), Tl = null, a;
16880
+ !(L.mac && e.altKey && !(e.ctrlKey || e.metaKey)) && (g = nn[e.keyCode]) && g != i ? (d(f[l + Pi(g, e, !0)]) || e.shiftKey && (p = Vr[e.keyCode]) != i && p != g && d(f[l + Pi(p, e, !1)])) && (a = !0) : s && e.shiftKey && d(f[l + Pi(i, e, !0)]) && (a = !0), !a && d(f._any) && (a = !0)), c && (a = !0), a && u && e.stopPropagation(), Tl = null, a;
16881
16881
  }
16882
16882
  class D1 extends ni {
16883
16883
  constructor(e) {
@@ -17174,7 +17174,7 @@ class pe {
17174
17174
  tree.
17175
17175
  */
17176
17176
  get topNode() {
17177
- return new $e(this, 0, 0, null);
17177
+ return new Fe(this, 0, 0, null);
17178
17178
  }
17179
17179
  /**
17180
17180
  Get the [syntax node](#common.SyntaxNode) at the given position.
@@ -17210,7 +17210,7 @@ class pe {
17210
17210
  position.
17211
17211
  */
17212
17212
  resolveStack(e, t = 0) {
17213
- return $1(this, e, t);
17213
+ return F1(this, e, t);
17214
17214
  }
17215
17215
  /**
17216
17216
  Iterate over the tree and its children, calling `enter` for any
@@ -17267,7 +17267,7 @@ class pe {
17267
17267
  or a cursor over such a buffer.
17268
17268
  */
17269
17269
  static build(e) {
17270
- return F1(e);
17270
+ return $1(e);
17271
17271
  }
17272
17272
  }
17273
17273
  pe.empty = new pe(ze.none, [], [], 0);
@@ -17371,7 +17371,7 @@ function sg(n, e, t, r) {
17371
17371
  }
17372
17372
  function Xr(n, e, t, r) {
17373
17373
  for (var i; n.from == n.to || (t < 1 ? n.from >= e : n.from > e) || (t > -1 ? n.to <= e : n.to < e); ) {
17374
- let s = !r && n instanceof $e && n.index < 0 ? null : n.parent;
17374
+ let s = !r && n instanceof Fe && n.index < 0 ? null : n.parent;
17375
17375
  if (!s)
17376
17376
  return n;
17377
17377
  n = s;
@@ -17379,7 +17379,7 @@ function Xr(n, e, t, r) {
17379
17379
  let o = r ? 0 : ce.IgnoreOverlays;
17380
17380
  if (r)
17381
17381
  for (let s = n, l = s.parent; l; s = l, l = s.parent)
17382
- s instanceof $e && s.index < 0 && ((i = l.enter(e, t, o)) === null || i === void 0 ? void 0 : i.from) != s.from && (n = l);
17382
+ s instanceof Fe && s.index < 0 && ((i = l.enter(e, t, o)) === null || i === void 0 ? void 0 : i.from) != s.from && (n = l);
17383
17383
  for (; ; ) {
17384
17384
  let s = n.enter(e, t, o);
17385
17385
  if (!s)
@@ -17424,7 +17424,7 @@ class lg {
17424
17424
  return this.parent;
17425
17425
  }
17426
17426
  }
17427
- class $e extends lg {
17427
+ class Fe extends lg {
17428
17428
  constructor(e, t, r, i) {
17429
17429
  super(), this._tree = e, this.from = t, this.index = r, this._parent = i;
17430
17430
  }
@@ -17451,9 +17451,9 @@ class $e extends lg {
17451
17451
  } else if (o & ce.IncludeAnonymous || !u.type.isAnonymous || Ba(u)) {
17452
17452
  let f;
17453
17453
  if (!(o & ce.IgnoreMounts) && (f = Ir.get(u)) && !f.overlay)
17454
- return new $e(f.tree, h, e, s);
17455
- let p = new $e(u, h, e, s);
17456
- return o & ce.IncludeAnonymous || !p.type.isAnonymous ? p : p.nextChild(t < 0 ? u.children.length - 1 : 0, t, r, i, o);
17454
+ return new Fe(f.tree, h, e, s);
17455
+ let g = new Fe(u, h, e, s);
17456
+ return o & ce.IncludeAnonymous || !g.type.isAnonymous ? g : g.nextChild(t < 0 ? u.children.length - 1 : 0, t, r, i, o);
17457
17457
  }
17458
17458
  }
17459
17459
  }
@@ -17506,7 +17506,7 @@ class $e extends lg {
17506
17506
  let o = e - this.from, s = r & ce.EnterBracketed && i.bracketed;
17507
17507
  for (let { from: l, to: a } of i.overlay)
17508
17508
  if ((t > 0 || s ? l <= o : l < o) && (t < 0 || s ? a >= o : a > o))
17509
- return new $e(i.tree, i.overlay[0].from + this.from, -1, this);
17509
+ return new Fe(i.tree, i.overlay[0].from + this.from, -1, this);
17510
17510
  }
17511
17511
  return this.nextChild(0, 1, e, t, r);
17512
17512
  }
@@ -17694,7 +17694,7 @@ function ag(n) {
17694
17694
  let s = n[o];
17695
17695
  (s.from > t.from || s.to < t.to) && (t = s, e = o);
17696
17696
  }
17697
- let r = t instanceof $e && t.index < 0 ? null : t.parent, i = n.slice();
17697
+ let r = t instanceof Fe && t.index < 0 ? null : t.parent, i = n.slice();
17698
17698
  return r ? i[e] = r : i.splice(e, 1), new _1(i, t);
17699
17699
  }
17700
17700
  class _1 {
@@ -17705,16 +17705,16 @@ class _1 {
17705
17705
  return ag(this.heads);
17706
17706
  }
17707
17707
  }
17708
- function $1(n, e, t) {
17708
+ function F1(n, e, t) {
17709
17709
  let r = n.resolveInner(e, t), i = null;
17710
- for (let o = r instanceof $e ? r : r.context.parent; o; o = o.parent)
17710
+ for (let o = r instanceof Fe ? r : r.context.parent; o; o = o.parent)
17711
17711
  if (o.index < 0) {
17712
17712
  let s = o.parent;
17713
17713
  (i || (i = [r])).push(s.resolve(e, t)), o = s;
17714
17714
  } else {
17715
17715
  let s = Ir.get(o.tree);
17716
17716
  if (s && s.overlay && s.overlay[0].from <= e && s.overlay[s.overlay.length - 1].to >= e) {
17717
- let l = new $e(s.tree, s.overlay[0].from + o.from, -1, o);
17717
+ let l = new Fe(s.tree, s.overlay[0].from + o.from, -1, o);
17718
17718
  (i || (i = [r])).push(Xr(l, e, t, !1));
17719
17719
  }
17720
17720
  }
@@ -17731,7 +17731,7 @@ class El {
17731
17731
  @internal
17732
17732
  */
17733
17733
  constructor(e, t = 0) {
17734
- if (this.buffer = null, this.stack = [], this.index = 0, this.bufferNode = null, this.mode = t & ~ce.EnterBracketed, e instanceof $e)
17734
+ if (this.buffer = null, this.stack = [], this.index = 0, this.bufferNode = null, this.mode = t & ~ce.EnterBracketed, e instanceof Fe)
17735
17735
  this.yieldNode(e);
17736
17736
  else {
17737
17737
  this._tree = e.context.parent, this.buffer = e.context;
@@ -17752,7 +17752,7 @@ class El {
17752
17752
  @internal
17753
17753
  */
17754
17754
  yield(e) {
17755
- return e ? e instanceof $e ? (this.buffer = null, this.yieldNode(e)) : (this.buffer = e.context, this.yieldBuf(e.index, e.type)) : !1;
17755
+ return e ? e instanceof Fe ? (this.buffer = null, this.yieldNode(e)) : (this.buffer = e.context, this.yieldBuf(e.index, e.type)) : !1;
17756
17756
  }
17757
17757
  /**
17758
17758
  @internal
@@ -18021,7 +18021,7 @@ class El {
18021
18021
  function Ba(n) {
18022
18022
  return n.children.some((e) => e instanceof sn || !e.type.isAnonymous || Ba(e));
18023
18023
  }
18024
- function F1(n) {
18024
+ function $1(n) {
18025
18025
  var e;
18026
18026
  let { buffer: t, nodeSet: r, maxBufferLength: i = og, reused: o = [], minRepeatType: s = r.types.length } = n, l = Array.isArray(t) ? new La(t, t.length) : t, a = r.types, c = 0, u = 0;
18027
18027
  function h(C, A, k, M, N, D) {
@@ -18039,25 +18039,25 @@ function F1(n) {
18039
18039
  return;
18040
18040
  } else
18041
18041
  throw new RangeError(`Unrecognized record size: ${Q}`);
18042
- let W = a[R], $, X, ge = P - C;
18042
+ let W = a[R], F, X, ge = P - C;
18043
18043
  if (B - P <= i && (X = b(l.pos - A, N))) {
18044
18044
  let ee = new Uint16Array(X.size - X.skip), ye = l.pos - X.size, Ae = ee.length;
18045
18045
  for (; l.pos > ye; )
18046
18046
  Ae = y(X.start, ee, Ae);
18047
- $ = new sn(ee, B - X.start, r), ge = X.start - C;
18047
+ F = new sn(ee, B - X.start, r), ge = X.start - C;
18048
18048
  } else {
18049
18049
  let ee = l.pos - Q;
18050
18050
  l.next();
18051
18051
  let ye = [], Ae = [], Pe = R >= s ? R : -1, Ve = 0, Ye = B;
18052
18052
  for (; l.pos > ee; )
18053
- Pe >= 0 && l.id == Pe && l.size >= 0 ? (l.end <= Ye - i && (p(ye, Ae, P, Ve, l.end, Ye, Pe, z, _), Ve = ye.length, Ye = l.end), l.next()) : D > 2500 ? d(P, ee, ye, Ae) : h(P, ee, ye, Ae, Pe, D + 1);
18054
- if (Pe >= 0 && Ve > 0 && Ve < ye.length && p(ye, Ae, P, Ve, P, Ye, Pe, z, _), ye.reverse(), Ae.reverse(), Pe > -1 && Ve > 0) {
18053
+ Pe >= 0 && l.id == Pe && l.size >= 0 ? (l.end <= Ye - i && (g(ye, Ae, P, Ve, l.end, Ye, Pe, z, _), Ve = ye.length, Ye = l.end), l.next()) : D > 2500 ? d(P, ee, ye, Ae) : h(P, ee, ye, Ae, Pe, D + 1);
18054
+ if (Pe >= 0 && Ve > 0 && Ve < ye.length && g(ye, Ae, P, Ve, P, Ye, Pe, z, _), ye.reverse(), Ae.reverse(), Pe > -1 && Ve > 0) {
18055
18055
  let V = f(W, _);
18056
- $ = Qa(W, ye, Ae, 0, ye.length, 0, B - P, V, V);
18056
+ F = Qa(W, ye, Ae, 0, ye.length, 0, B - P, V, V);
18057
18057
  } else
18058
- $ = g(W, ye, Ae, B - P, z - B, _);
18058
+ F = p(W, ye, Ae, B - P, z - B, _);
18059
18059
  }
18060
- k.push($), M.push(ge);
18060
+ k.push(F), M.push(ge);
18061
18061
  }
18062
18062
  function d(C, A, k, M) {
18063
18063
  let N = [], D = 0, R = -1;
@@ -18086,16 +18086,16 @@ function F1(n) {
18086
18086
  return P;
18087
18087
  (B = P.prop(Y.lookAhead)) && (D = M[R] + P.length + B);
18088
18088
  }
18089
- return g(C, k, M, N, D, A);
18089
+ return p(C, k, M, N, D, A);
18090
18090
  };
18091
18091
  }
18092
- function p(C, A, k, M, N, D, R, P, B) {
18092
+ function g(C, A, k, M, N, D, R, P, B) {
18093
18093
  let Q = [], z = [];
18094
18094
  for (; C.length > M; )
18095
18095
  Q.push(C.pop()), z.push(A.pop() + k - N);
18096
- C.push(g(r.types[R], Q, z, D - N, P - D, B)), A.push(N - k);
18096
+ C.push(p(r.types[R], Q, z, D - N, P - D, B)), A.push(N - k);
18097
18097
  }
18098
- function g(C, A, k, M, N, D, R) {
18098
+ function p(C, A, k, M, N, D, R) {
18099
18099
  if (D) {
18100
18100
  let P = [Y.contextHash, D];
18101
18101
  R = R ? [P].concat(R) : [P];
@@ -18151,7 +18151,7 @@ function F1(n) {
18151
18151
  return new pe(a[n.topID], x.reverse(), w.reverse(), S);
18152
18152
  }
18153
18153
  const pu = /* @__PURE__ */ new WeakMap();
18154
- function Fi(n, e) {
18154
+ function $i(n, e) {
18155
18155
  if (!n.isAnonymous || e instanceof sn || e.type != n)
18156
18156
  return 1;
18157
18157
  let t = pu.get(e);
@@ -18162,7 +18162,7 @@ function Fi(n, e) {
18162
18162
  t = 1;
18163
18163
  break;
18164
18164
  }
18165
- t += Fi(n, r);
18165
+ t += $i(n, r);
18166
18166
  }
18167
18167
  pu.set(e, t);
18168
18168
  }
@@ -18170,31 +18170,31 @@ function Fi(n, e) {
18170
18170
  }
18171
18171
  function Qa(n, e, t, r, i, o, s, l, a) {
18172
18172
  let c = 0;
18173
- for (let p = r; p < i; p++)
18174
- c += Fi(n, e[p]);
18173
+ for (let g = r; g < i; g++)
18174
+ c += $i(n, e[g]);
18175
18175
  let u = Math.ceil(
18176
18176
  c * 1.5 / 8
18177
18177
  /* Balance.BranchFactor */
18178
18178
  ), h = [], d = [];
18179
- function f(p, g, b, y, x) {
18179
+ function f(g, p, b, y, x) {
18180
18180
  for (let w = b; w < y; ) {
18181
- let S = w, C = g[w], A = Fi(n, p[w]);
18181
+ let S = w, C = p[w], A = $i(n, g[w]);
18182
18182
  for (w++; w < y; w++) {
18183
- let k = Fi(n, p[w]);
18183
+ let k = $i(n, g[w]);
18184
18184
  if (A + k >= u)
18185
18185
  break;
18186
18186
  A += k;
18187
18187
  }
18188
18188
  if (w == S + 1) {
18189
18189
  if (A > u) {
18190
- let k = p[S];
18191
- f(k.children, k.positions, 0, k.children.length, g[S] + x);
18190
+ let k = g[S];
18191
+ f(k.children, k.positions, 0, k.children.length, p[S] + x);
18192
18192
  continue;
18193
18193
  }
18194
- h.push(p[S]);
18194
+ h.push(g[S]);
18195
18195
  } else {
18196
- let k = g[w - 1] + p[w - 1].length - C;
18197
- h.push(Qa(n, p, g, S, w, C, k, null, a));
18196
+ let k = p[w - 1] + g[w - 1].length - C;
18197
+ h.push(Qa(n, g, p, S, w, C, k, null, a));
18198
18198
  }
18199
18199
  d.push(C + x - o);
18200
18200
  }
@@ -18217,13 +18217,13 @@ class z1 {
18217
18217
  Set the value for this syntax node.
18218
18218
  */
18219
18219
  set(e, t) {
18220
- e instanceof At ? this.setBuffer(e.context.buffer, e.index, t) : e instanceof $e && this.map.set(e.tree, t);
18220
+ e instanceof At ? this.setBuffer(e.context.buffer, e.index, t) : e instanceof Fe && this.map.set(e.tree, t);
18221
18221
  }
18222
18222
  /**
18223
18223
  Retrieve value for this syntax node, if it exists in the map.
18224
18224
  */
18225
18225
  get(e) {
18226
- return e instanceof At ? this.getBuffer(e.context.buffer, e.index) : e instanceof $e ? this.map.get(e.tree) : void 0;
18226
+ return e instanceof At ? this.getBuffer(e.context.buffer, e.index) : e instanceof Fe ? this.map.get(e.tree) : void 0;
18227
18227
  }
18228
18228
  /**
18229
18229
  Set the value for the node that a cursor currently points to.
@@ -18294,8 +18294,8 @@ class xn {
18294
18294
  for (; s && s.from < h; ) {
18295
18295
  let d = s;
18296
18296
  if (a >= d.from || h <= d.to || c) {
18297
- let f = Math.max(d.from, a) - c, p = Math.min(d.to, h) - c;
18298
- d = f >= p ? null : new xn(f, p, d.tree, d.offset + c, l > 0, !!u);
18297
+ let f = Math.max(d.from, a) - c, g = Math.min(d.to, h) - c;
18298
+ d = f >= g ? null : new xn(f, g, d.tree, d.offset + c, l > 0, !!u);
18299
18299
  }
18300
18300
  if (d && i.push(d), s.to > h)
18301
18301
  break;
@@ -18994,9 +18994,9 @@ function hg(n, e, t, r, i, o) {
18994
18994
  let c = n[s + 1];
18995
18995
  for (let f = s + 3; f < c; f += 2)
18996
18996
  if ((n[f + 1] & l) > 0) {
18997
- let p = n[f];
18998
- if (a.allows(p) && (e.token.value == -1 || e.token.value == p || U1(p, e.token.value, i, o))) {
18999
- e.acceptToken(p);
18997
+ let g = n[f];
18998
+ if (a.allows(g) && (e.token.value == -1 || e.token.value == g || U1(g, e.token.value, i, o))) {
18999
+ e.acceptToken(g);
19000
19000
  break;
19001
19001
  }
19002
19002
  }
@@ -19006,13 +19006,13 @@ function hg(n, e, t, r, i, o) {
19006
19006
  continue e;
19007
19007
  }
19008
19008
  for (; h < d; ) {
19009
- let f = h + d >> 1, p = c + f + (f << 1), g = n[p], b = n[p + 1] || 65536;
19010
- if (u < g)
19009
+ let f = h + d >> 1, g = c + f + (f << 1), p = n[g], b = n[g + 1] || 65536;
19010
+ if (u < p)
19011
19011
  d = f;
19012
19012
  else if (u >= b)
19013
19013
  h = f + 1;
19014
19014
  else {
19015
- s = n[p + 2], e.advance();
19015
+ s = n[g + 2], e.advance();
19016
19016
  continue e;
19017
19017
  }
19018
19018
  }
@@ -19300,13 +19300,13 @@ class G1 {
19300
19300
  ;
19301
19301
  let a = this.tokens.getActions(e);
19302
19302
  for (let c = 0; c < a.length; ) {
19303
- let u = a[c++], h = a[c++], d = a[c++], f = c == a.length || !r, p = f ? e : e.split(), g = this.tokens.mainToken;
19304
- if (p.apply(u, h, g ? g.start : p.pos, d), He && console.log(s + this.stackID(p) + ` (via ${(u & 65536) == 0 ? "shift" : `reduce of ${o.getName(
19303
+ let u = a[c++], h = a[c++], d = a[c++], f = c == a.length || !r, g = f ? e : e.split(), p = this.tokens.mainToken;
19304
+ if (g.apply(u, h, p ? p.start : g.pos, d), He && console.log(s + this.stackID(g) + ` (via ${(u & 65536) == 0 ? "shift" : `reduce of ${o.getName(
19305
19305
  u & 65535
19306
19306
  /* Action.ValueMask */
19307
- )}`} for ${o.getName(h)} @ ${i}${p == e ? "" : ", split"})`), f)
19307
+ )}`} for ${o.getName(h)} @ ${i}${g == e ? "" : ", split"})`), f)
19308
19308
  return !0;
19309
- p.pos > i ? t.push(p) : r.push(p);
19309
+ g.pos > i ? t.push(g) : r.push(g);
19310
19310
  }
19311
19311
  return !1;
19312
19312
  }
@@ -19839,17 +19839,17 @@ class rO {
19839
19839
  return;
19840
19840
  let d = e.tree && e.tree.prop(Y.mounted);
19841
19841
  if (d && d.overlay) {
19842
- let f = e.node.enter(d.overlay[0].from + l, 1), p = this.highlighters.filter((b) => !b.scope || b.scope(d.tree.type)), g = e.firstChild();
19842
+ let f = e.node.enter(d.overlay[0].from + l, 1), g = this.highlighters.filter((b) => !b.scope || b.scope(d.tree.type)), p = e.firstChild();
19843
19843
  for (let b = 0, y = l; ; b++) {
19844
19844
  let x = b < d.overlay.length ? d.overlay[b] : null, w = x ? x.from + l : a, S = Math.max(t, y), C = Math.min(r, w);
19845
- if (S < C && g)
19845
+ if (S < C && p)
19846
19846
  for (; e.from < C && (this.highlightRange(e, S, C, i, o), this.startSpan(Math.min(C, e.to), c), !(e.to >= w || !e.nextSibling())); )
19847
19847
  ;
19848
19848
  if (!x || w > r)
19849
19849
  break;
19850
- y = x.to + l, y > t && (this.highlightRange(f.cursor(), Math.max(t, x.from + l), Math.min(r, y), "", p), this.startSpan(Math.min(r, y), c));
19850
+ y = x.to + l, y > t && (this.highlightRange(f.cursor(), Math.max(t, x.from + l), Math.min(r, y), "", g), this.startSpan(Math.min(r, y), c));
19851
19851
  }
19852
- g && e.parent();
19852
+ p && e.parent();
19853
19853
  } else if (e.firstChild()) {
19854
19854
  d && (i = "");
19855
19855
  do
@@ -20431,8 +20431,8 @@ class st {
20431
20431
  let d = a.resolve(s - a.from, l);
20432
20432
  for (let f of h)
20433
20433
  if (f.test(d, o)) {
20434
- let p = o.facet(f.facet);
20435
- return f.type == "replace" ? p : p.concat(u);
20434
+ let g = o.facet(f.facet);
20435
+ return f.type == "replace" ? g : g.concat(u);
20436
20436
  }
20437
20437
  }
20438
20438
  return u;
@@ -20813,7 +20813,7 @@ class BO {
20813
20813
  this.language = e, this.support = t, this.extension = [e, t];
20814
20814
  }
20815
20815
  }
20816
- const QO = /* @__PURE__ */ U.define(), $a = /* @__PURE__ */ U.define({
20816
+ const QO = /* @__PURE__ */ U.define(), Fa = /* @__PURE__ */ U.define({
20817
20817
  combine: (n) => {
20818
20818
  if (!n.length)
20819
20819
  return " ";
@@ -20824,11 +20824,11 @@ const QO = /* @__PURE__ */ U.define(), $a = /* @__PURE__ */ U.define({
20824
20824
  }
20825
20825
  });
20826
20826
  function mo(n) {
20827
- let e = n.facet($a);
20827
+ let e = n.facet(Fa);
20828
20828
  return e.charCodeAt(0) == 9 ? n.tabSize * e.length : e.length;
20829
20829
  }
20830
20830
  function bo(n, e) {
20831
- let t = "", r = n.tabSize, i = n.facet($a)[0];
20831
+ let t = "", r = n.tabSize, i = n.facet(Fa)[0];
20832
20832
  if (i == " ") {
20833
20833
  for (; e >= r; )
20834
20834
  t += " ", e -= r;
@@ -20926,30 +20926,30 @@ function _O(n, e, t) {
20926
20926
  }
20927
20927
  function Sg(n, e, t) {
20928
20928
  for (let r = n; r; r = r.next) {
20929
- let i = FO(r.node);
20929
+ let i = $O(r.node);
20930
20930
  if (i)
20931
- return i(Fa.create(e, t, r));
20931
+ return i($a.create(e, t, r));
20932
20932
  }
20933
20933
  return 0;
20934
20934
  }
20935
- function $O(n) {
20935
+ function FO(n) {
20936
20936
  return n.pos == n.options.simulateBreak && n.options.simulateDoubleBreak;
20937
20937
  }
20938
- function FO(n) {
20938
+ function $O(n) {
20939
20939
  let e = n.type.prop(xg);
20940
20940
  if (e)
20941
20941
  return e;
20942
20942
  let t = n.firstChild, r;
20943
20943
  if (t && (r = t.type.prop(Y.closedBy))) {
20944
20944
  let i = n.lastChild, o = i && r.indexOf(i.name) > -1;
20945
- return (s) => HO(s, !0, 1, void 0, o && !$O(s) ? i.from : void 0);
20945
+ return (s) => HO(s, !0, 1, void 0, o && !FO(s) ? i.from : void 0);
20946
20946
  }
20947
20947
  return n.parent == null ? zO : null;
20948
20948
  }
20949
20949
  function zO() {
20950
20950
  return 0;
20951
20951
  }
20952
- class Fa extends Uo {
20952
+ class $a extends Uo {
20953
20953
  constructor(e, t, r) {
20954
20954
  super(e.state, e.options), this.base = e, this.pos = t, this.context = r;
20955
20955
  }
@@ -20964,7 +20964,7 @@ class Fa extends Uo {
20964
20964
  @internal
20965
20965
  */
20966
20966
  static create(e, t, r) {
20967
- return new Fa(e, t, r);
20967
+ return new $a(e, t, r);
20968
20968
  }
20969
20969
  /**
20970
20970
  Get the text directly after `this.pos`, either the entire line
@@ -21105,7 +21105,7 @@ class YO {
21105
21105
  buildDeco(e, t) {
21106
21106
  if (!t || !this.tree.length)
21107
21107
  return he.none;
21108
- let r = new Fr();
21108
+ let r = new $r();
21109
21109
  for (let { from: i, to: o } of e.visibleRanges)
21110
21110
  nO(this.tree, t, (s, l, a) => {
21111
21111
  r.add(s, l, this.markCache[a] || (this.markCache[a] = he.mark({ class: a })));
@@ -21254,15 +21254,15 @@ function nk(n, e, t, r, i, o, s) {
21254
21254
  for (let d = 0; !u.next().done && d <= o; ) {
21255
21255
  let f = u.value;
21256
21256
  t < 0 && (d += f.length);
21257
- let p = e + d * t;
21258
- for (let g = t > 0 ? 0 : f.length - 1, b = t > 0 ? f.length : -1; g != b; g += t) {
21259
- let y = s.indexOf(f[g]);
21260
- if (!(y < 0 || r.resolveInner(p + g, 1).type != i))
21257
+ let g = e + d * t;
21258
+ for (let p = t > 0 ? 0 : f.length - 1, b = t > 0 ? f.length : -1; p != b; p += t) {
21259
+ let y = s.indexOf(f[p]);
21260
+ if (!(y < 0 || r.resolveInner(g + p, 1).type != i))
21261
21261
  if (y % 2 == 0 == t > 0)
21262
21262
  h++;
21263
21263
  else {
21264
21264
  if (h == 1)
21265
- return { start: c, end: { from: p + g, to: p + g + 1 }, matched: y >> 1 == a >> 1 };
21265
+ return { start: c, end: { from: g + p, to: g + p + 1 }, matched: y >> 1 == a >> 1 };
21266
21266
  h--;
21267
21267
  }
21268
21268
  }
@@ -22175,15 +22175,15 @@ function yk(n, { open: e, close: t }, r, i) {
22175
22175
  };
22176
22176
  let u, h;
22177
22177
  i - r <= 2 * Sr ? u = h = n.sliceDoc(r, i) : (u = n.sliceDoc(r, r + Sr), h = n.sliceDoc(i - Sr, i));
22178
- let d = /^\s*/.exec(u)[0].length, f = /\s*$/.exec(h)[0].length, p = h.length - f - t.length;
22179
- return u.slice(d, d + e.length) == e && h.slice(p, p + t.length) == t ? {
22178
+ let d = /^\s*/.exec(u)[0].length, f = /\s*$/.exec(h)[0].length, g = h.length - f - t.length;
22179
+ return u.slice(d, d + e.length) == e && h.slice(g, g + t.length) == t ? {
22180
22180
  open: {
22181
22181
  pos: r + d + e.length,
22182
22182
  margin: /\s/.test(u.charAt(d + e.length)) ? 1 : 0
22183
22183
  },
22184
22184
  close: {
22185
22185
  pos: i - f - t.length,
22186
- margin: /\s/.test(h.charAt(p - 1)) ? 1 : 0
22186
+ margin: /\s/.test(h.charAt(g - 1)) ? 1 : 0
22187
22187
  }
22188
22188
  } : null;
22189
22189
  }
@@ -22225,8 +22225,8 @@ function xk(n, e, t = e.selection.ranges) {
22225
22225
  continue e;
22226
22226
  if (h.from > i && (o == s || s > h.from)) {
22227
22227
  i = h.from;
22228
- let d = /^\s*/.exec(h.text)[0].length, f = d == h.length, p = h.text.slice(d, d + c.length) == c ? d : -1;
22229
- d < h.text.length && d < a && (a = d), r.push({ line: h, comment: p, token: c, indent: d, empty: f, single: !1 });
22228
+ let d = /^\s*/.exec(h.text)[0].length, f = d == h.length, g = h.text.slice(d, d + c.length) == c ? d : -1;
22229
+ d < h.text.length && d < a && (a = d), r.push({ line: h, comment: g, token: c, indent: d, empty: f, single: !1 });
22230
22230
  }
22231
22231
  u = h.to + 1;
22232
22232
  }
@@ -22368,14 +22368,14 @@ function _g(n, e) {
22368
22368
  return tt(n, (t) => n.moveByGroup(t, e));
22369
22369
  }
22370
22370
  const Lk = (n) => _g(n, !Ne(n)), Bk = (n) => _g(n, Ne(n)), Qk = (n) => tt(n, (e) => Xo(n.state, e, !Ne(n))), _k = (n) => tt(n, (e) => Xo(n.state, e, Ne(n)));
22371
- function $g(n, e) {
22371
+ function Fg(n, e) {
22372
22372
  return tt(n, (t) => n.moveVertically(t, e));
22373
22373
  }
22374
- const Fg = (n) => $g(n, !1), zg = (n) => $g(n, !0);
22374
+ const $g = (n) => Fg(n, !1), zg = (n) => Fg(n, !0);
22375
22375
  function Vg(n, e) {
22376
22376
  return tt(n, (t) => n.moveVertically(t, e, Dg(n).height));
22377
22377
  }
22378
- const Lu = (n) => Vg(n, !1), Bu = (n) => Vg(n, !0), $k = (n) => tt(n, (e) => cn(n, e, !0)), Fk = (n) => tt(n, (e) => cn(n, e, !1)), zk = (n) => tt(n, (e) => cn(n, e, !Ne(n))), Vk = (n) => tt(n, (e) => cn(n, e, Ne(n))), Wk = (n) => tt(n, (e) => E.cursor(n.lineBlockAt(e.head).from)), Hk = (n) => tt(n, (e) => E.cursor(n.lineBlockAt(e.head).to)), Qu = ({ state: n, dispatch: e }) => (e(ft(n, { anchor: 0 })), !0), _u = ({ state: n, dispatch: e }) => (e(ft(n, { anchor: n.doc.length })), !0), $u = ({ state: n, dispatch: e }) => (e(ft(n, { anchor: n.selection.main.anchor, head: 0 })), !0), Fu = ({ state: n, dispatch: e }) => (e(ft(n, { anchor: n.selection.main.anchor, head: n.doc.length })), !0), Uk = ({ state: n, dispatch: e }) => (e(n.update({ selection: { anchor: 0, head: n.doc.length }, userEvent: "select" })), !0), jk = ({ state: n, dispatch: e }) => {
22378
+ const Lu = (n) => Vg(n, !1), Bu = (n) => Vg(n, !0), Fk = (n) => tt(n, (e) => cn(n, e, !0)), $k = (n) => tt(n, (e) => cn(n, e, !1)), zk = (n) => tt(n, (e) => cn(n, e, !Ne(n))), Vk = (n) => tt(n, (e) => cn(n, e, Ne(n))), Wk = (n) => tt(n, (e) => E.cursor(n.lineBlockAt(e.head).from)), Hk = (n) => tt(n, (e) => E.cursor(n.lineBlockAt(e.head).to)), Qu = ({ state: n, dispatch: e }) => (e(ft(n, { anchor: 0 })), !0), _u = ({ state: n, dispatch: e }) => (e(ft(n, { anchor: n.doc.length })), !0), Fu = ({ state: n, dispatch: e }) => (e(ft(n, { anchor: n.selection.main.anchor, head: 0 })), !0), $u = ({ state: n, dispatch: e }) => (e(ft(n, { anchor: n.selection.main.anchor, head: n.doc.length })), !0), Uk = ({ state: n, dispatch: e }) => (e(n.update({ selection: { anchor: 0, head: n.doc.length }, userEvent: "select" })), !0), jk = ({ state: n, dispatch: e }) => {
22379
22379
  let t = Go(n).map(({ from: r, to: i }) => E.range(r, Math.min(i + 1, n.doc.length)));
22380
22380
  return e(n.update({ selection: E.create(t), userEvent: "select" })), !0;
22381
22381
  }, Xk = ({ state: n, dispatch: e }) => {
@@ -22623,7 +22623,7 @@ const uC = ({ state: n, dispatch: e }) => {
22623
22623
  });
22624
22624
  return i.changes.empty || e(n.update(i, { userEvent: "indent" })), !0;
22625
22625
  }, hC = ({ state: n, dispatch: e }) => n.readOnly ? !1 : (e(n.update(Wa(n, (t, r) => {
22626
- r.push({ from: t.from, insert: n.facet($a) });
22626
+ r.push({ from: t.from, insert: n.facet(Fa) });
22627
22627
  }), { userEvent: "input.indent" })), !0), dC = ({ state: n, dispatch: e }) => n.readOnly ? !1 : (e(n.update(Wa(n, (t, r) => {
22628
22628
  let i = /^\s*/.exec(t.text)[0];
22629
22629
  if (!i)
@@ -22635,7 +22635,7 @@ const uC = ({ state: n, dispatch: e }) => {
22635
22635
  }), { userEvent: "delete.dedent" })), !0), fC = (n) => (n.setTabFocusMode(), !0), pC = [
22636
22636
  { key: "Ctrl-b", run: Pg, shift: Bg, preventDefault: !0 },
22637
22637
  { key: "Ctrl-f", run: Tg, shift: Qg },
22638
- { key: "Ctrl-p", run: Mg, shift: Fg },
22638
+ { key: "Ctrl-p", run: Mg, shift: $g },
22639
22639
  { key: "Ctrl-n", run: Ng, shift: zg },
22640
22640
  { key: "Ctrl-a", run: Mk, shift: Wk },
22641
22641
  { key: "Ctrl-e", run: Nk, shift: Hk },
@@ -22653,18 +22653,18 @@ const uC = ({ state: n, dispatch: e }) => {
22653
22653
  { key: "ArrowRight", run: Tg, shift: Qg, preventDefault: !0 },
22654
22654
  { key: "Mod-ArrowRight", mac: "Alt-ArrowRight", run: Ok, shift: Bk, preventDefault: !0 },
22655
22655
  { mac: "Cmd-ArrowRight", run: Ek, shift: Vk, preventDefault: !0 },
22656
- { key: "ArrowUp", run: Mg, shift: Fg, preventDefault: !0 },
22657
- { mac: "Cmd-ArrowUp", run: Qu, shift: $u },
22656
+ { key: "ArrowUp", run: Mg, shift: $g, preventDefault: !0 },
22657
+ { mac: "Cmd-ArrowUp", run: Qu, shift: Fu },
22658
22658
  { mac: "Ctrl-ArrowUp", run: Iu, shift: Lu },
22659
22659
  { key: "ArrowDown", run: Ng, shift: zg, preventDefault: !0 },
22660
- { mac: "Cmd-ArrowDown", run: _u, shift: Fu },
22660
+ { mac: "Cmd-ArrowDown", run: _u, shift: $u },
22661
22661
  { mac: "Ctrl-ArrowDown", run: Ll, shift: Bu },
22662
22662
  { key: "PageUp", run: Iu, shift: Lu },
22663
22663
  { key: "PageDown", run: Ll, shift: Bu },
22664
- { key: "Home", run: Tk, shift: Fk, preventDefault: !0 },
22665
- { key: "Mod-Home", run: Qu, shift: $u },
22666
- { key: "End", run: Pk, shift: $k, preventDefault: !0 },
22667
- { key: "Mod-End", run: _u, shift: Fu },
22664
+ { key: "Home", run: Tk, shift: $k, preventDefault: !0 },
22665
+ { key: "Mod-Home", run: Qu, shift: Fu },
22666
+ { key: "End", run: Pk, shift: Fk, preventDefault: !0 },
22667
+ { key: "Mod-End", run: _u, shift: $u },
22668
22668
  { key: "Enter", run: zu, shift: zu },
22669
22669
  { key: "Mod-a", run: Uk },
22670
22670
  { key: "Backspace", run: Bl, shift: Bl, preventDefault: !0 },
@@ -22882,26 +22882,26 @@ var qr = function(n, e, t) {
22882
22882
  return e === void 0 && (e = 0), t === void 0 && (t = 1), n > t ? t : n < e ? e : n;
22883
22883
  }, Lr = function(n) {
22884
22884
  return "touches" in n;
22885
- }, $l = function(n) {
22885
+ }, Fl = function(n) {
22886
22886
  return n && n.ownerDocument.defaultView || self;
22887
22887
  }, Xu = function(n, e, t) {
22888
22888
  var r = n.getBoundingClientRect(), i = Lr(e) ? (function(o, s) {
22889
22889
  for (var l = 0; l < o.length; l++) if (o[l].identifier === s) return o[l];
22890
22890
  return o[0];
22891
22891
  })(e.touches, t) : e;
22892
- return { left: qr((i.pageX - (r.left + $l(n).pageXOffset)) / r.width), top: qr((i.pageY - (r.top + $l(n).pageYOffset)) / r.height) };
22892
+ return { left: qr((i.pageX - (r.left + Fl(n).pageXOffset)) / r.width), top: qr((i.pageY - (r.top + Fl(n).pageYOffset)) / r.height) };
22893
22893
  }, Gu = function(n) {
22894
22894
  !Lr(n) && n.preventDefault();
22895
22895
  }, Zg = ue.memo(function(n) {
22896
22896
  var e = n.onMove, t = n.onKey, r = Kg(n, ["onMove", "onKey"]), i = _e(null), o = _l(e), s = _l(t), l = _e(null), a = _e(!1), c = Ul(function() {
22897
22897
  var f = function(b) {
22898
- Gu(b), (Lr(b) ? b.touches.length > 0 : b.buttons > 0) && i.current ? o(Xu(i.current, b, l.current)) : g(!1);
22899
- }, p = function() {
22900
- return g(!1);
22898
+ Gu(b), (Lr(b) ? b.touches.length > 0 : b.buttons > 0) && i.current ? o(Xu(i.current, b, l.current)) : p(!1);
22899
+ }, g = function() {
22900
+ return p(!1);
22901
22901
  };
22902
- function g(b) {
22903
- var y = a.current, x = $l(i.current), w = b ? x.addEventListener : x.removeEventListener;
22904
- w(y ? "touchmove" : "mousemove", f), w(y ? "touchend" : "mouseup", p);
22902
+ function p(b) {
22903
+ var y = a.current, x = Fl(i.current), w = b ? x.addEventListener : x.removeEventListener;
22904
+ w(y ? "touchmove" : "mousemove", f), w(y ? "touchend" : "mouseup", g);
22905
22905
  }
22906
22906
  return [function(b) {
22907
22907
  var y = b.nativeEvent, x = i.current;
@@ -22913,12 +22913,12 @@ var qr = function(n, e, t) {
22913
22913
  var w = y.changedTouches || [];
22914
22914
  w.length && (l.current = w[0].identifier);
22915
22915
  }
22916
- x.focus(), o(Xu(x, y, l.current)), g(!0);
22916
+ x.focus(), o(Xu(x, y, l.current)), p(!0);
22917
22917
  }
22918
22918
  }, function(b) {
22919
22919
  var y = b.which || b.keyCode;
22920
22920
  y < 37 || y > 40 || (b.preventDefault(), s({ left: y === 39 ? 0.05 : y === 37 ? -0.05 : 0, top: y === 40 ? 0.05 : y === 38 ? -0.05 : 0 }));
22921
- }, g];
22921
+ }, p];
22922
22922
  }, [s, o]), u = c[0], h = c[1], d = c[2];
22923
22923
  return Je(function() {
22924
22924
  return d;
@@ -22931,8 +22931,8 @@ var qr = function(n, e, t) {
22931
22931
  }, ke = function(n, e, t) {
22932
22932
  return e === void 0 && (e = 0), t === void 0 && (t = Math.pow(10, e)), Math.round(t * n) / t;
22933
22933
  }, RC = function(n) {
22934
- return IC(Fl(n));
22935
- }, Fl = function(n) {
22934
+ return IC($l(n));
22935
+ }, $l = function(n) {
22936
22936
  return n[0] === "#" && (n = n.substring(1)), n.length < 6 ? { r: parseInt(n[0] + n[0], 16), g: parseInt(n[1] + n[1], 16), b: parseInt(n[2] + n[2], 16), a: n.length === 4 ? ke(parseInt(n[3] + n[3], 16) / 255, 2) : 1 } : { r: parseInt(n.substring(0, 2), 16), g: parseInt(n.substring(2, 4), 16), b: parseInt(n.substring(4, 6), 16), a: n.length === 8 ? ke(parseInt(n.substring(6, 8), 16) / 255, 2) : 1 };
22937
22937
  }, EC = function(n) {
22938
22938
  return DC(NC(n));
@@ -22975,7 +22975,7 @@ var qr = function(n, e, t) {
22975
22975
  for (var t in n) if (n[t] !== e[t]) return !1;
22976
22976
  return !0;
22977
22977
  }, QC = function(n, e) {
22978
- return n.toLowerCase() === e.toLowerCase() || em(Fl(n), Fl(e));
22978
+ return n.toLowerCase() === e.toLowerCase() || em($l(n), $l(e));
22979
22979
  };
22980
22980
  function _C(n, e, t) {
22981
22981
  var r = _l(t), i = xe(function() {
@@ -22997,15 +22997,15 @@ function _C(n, e, t) {
22997
22997
  }, []);
22998
22998
  return [o, a];
22999
22999
  }
23000
- var $C = typeof window < "u" ? Zu : Je, FC = function() {
23000
+ var FC = typeof window < "u" ? Zu : Je, $C = function() {
23001
23001
  return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : void 0;
23002
23002
  }, Yu = /* @__PURE__ */ new Map(), zC = function(n) {
23003
- $C(function() {
23003
+ FC(function() {
23004
23004
  var e = n.current ? n.current.ownerDocument : document;
23005
23005
  if (e !== void 0 && !Yu.has(e)) {
23006
23006
  var t = e.createElement("style");
23007
23007
  t.innerHTML = `.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`, Yu.set(e, t);
23008
- var r = FC();
23008
+ var r = $C();
23009
23009
  r && t.setAttribute("nonce", r), e.head.appendChild(t);
23010
23010
  }
23011
23011
  }, []);
@@ -23071,7 +23071,7 @@ var im = "PopoverTrigger", om = m.forwardRef(
23071
23071
  "data-state": um(i.open),
23072
23072
  ...r,
23073
23073
  ref: s,
23074
- onClick: F(n.onClick, i.onOpenToggle)
23074
+ onClick: $(n.onClick, i.onOpenToggle)
23075
23075
  }
23076
23076
  );
23077
23077
  return i.hasCustomAnchor ? l : /* @__PURE__ */ v(ba, { asChild: !0, ...o, children: l });
@@ -23105,11 +23105,11 @@ var YC = /* @__PURE__ */ Yn("PopoverContent.RemoveScroll"), qC = m.forwardRef(
23105
23105
  ref: i,
23106
23106
  trapFocus: t.open,
23107
23107
  disableOutsidePointerEvents: !0,
23108
- onCloseAutoFocus: F(n.onCloseAutoFocus, (s) => {
23108
+ onCloseAutoFocus: $(n.onCloseAutoFocus, (s) => {
23109
23109
  var l;
23110
23110
  s.preventDefault(), o.current || (l = t.triggerRef.current) == null || l.focus();
23111
23111
  }),
23112
- onPointerDownOutside: F(
23112
+ onPointerDownOutside: $(
23113
23113
  n.onPointerDownOutside,
23114
23114
  (s) => {
23115
23115
  const l = s.detail.originalEvent, a = l.button === 0 && l.ctrlKey === !0, c = l.button === 2 || a;
@@ -23117,7 +23117,7 @@ var YC = /* @__PURE__ */ Yn("PopoverContent.RemoveScroll"), qC = m.forwardRef(
23117
23117
  },
23118
23118
  { checkForDefaultPrevented: !1 }
23119
23119
  ),
23120
- onFocusOutside: F(
23120
+ onFocusOutside: $(
23121
23121
  n.onFocusOutside,
23122
23122
  (s) => s.preventDefault(),
23123
23123
  { checkForDefaultPrevented: !1 }
@@ -23213,7 +23213,7 @@ var YC = /* @__PURE__ */ Yn("PopoverContent.RemoveScroll"), qC = m.forwardRef(
23213
23213
  type: "button",
23214
23214
  ...r,
23215
23215
  ref: e,
23216
- onClick: F(n.onClick, () => i.onOpenChange(!1))
23216
+ onClick: $(n.onClick, () => i.onOpenChange(!1))
23217
23217
  }
23218
23218
  );
23219
23219
  }
@@ -23244,44 +23244,44 @@ const i2 = t2, o2 = n2, dm = m.forwardRef(({ className: n, align: e = "center",
23244
23244
  }
23245
23245
  ) }));
23246
23246
  dm.displayName = hm.displayName;
23247
- function fm({ value: n, onChange: e, className: t, debounceMs: r = 200 }) {
23248
- const [i, o] = xe(n), [s, l] = xe(!1), a = _e(null);
23247
+ function fm({ value: n, onChange: e, className: t, debounceMs: r = 200, emptyDisplayBackground: i }) {
23248
+ const [o, s] = xe(n), [l, a] = xe(!1), c = _e(null);
23249
23249
  Je(() => {
23250
- o(n);
23251
- }, [n]), Je(() => (a.current && clearTimeout(a.current), i !== n && (a.current = setTimeout(() => e(i), r)), () => {
23252
- a.current && clearTimeout(a.current);
23253
- }), [i, n, e, r]);
23254
- const c = (h) => {
23255
- (/^#[0-9A-Fa-f]{0,6}$/.test(h) || h === "") && o(h || "#000000");
23256
- };
23257
- return /* @__PURE__ */ T(i2, { open: s, onOpenChange: l, children: [
23250
+ s(n || (i ? "#26E8FE" : ""));
23251
+ }, [n, i]), Je(() => (c.current && clearTimeout(c.current), o !== n && !(!n && i && o === "#26E8FE") && (c.current = setTimeout(() => e(o), r)), () => {
23252
+ c.current && clearTimeout(c.current);
23253
+ }), [o, n, e, r, i]);
23254
+ const u = (p) => {
23255
+ (/^#[0-9A-Fa-f]{0,6}$/.test(p) || p === "") && s(p || "#000000");
23256
+ }, h = (p) => {
23257
+ if (!p || p.length < 7) return !1;
23258
+ const b = parseInt(p.slice(1, 3), 16), y = parseInt(p.slice(3, 5), 16), x = parseInt(p.slice(5, 7), 16);
23259
+ return b > 240 && y > 240 && x > 240;
23260
+ }, d = !o || o === "", f = d && i ? i : o, g = !!i && d;
23261
+ return /* @__PURE__ */ T(i2, { open: l, onOpenChange: a, children: [
23258
23262
  /* @__PURE__ */ v(o2, { asChild: !0, children: /* @__PURE__ */ v(
23259
23263
  "button",
23260
23264
  {
23261
23265
  type: "button",
23262
23266
  className: Z(
23263
23267
  "w-20 h-20 rounded-lg shadow-lg transition-colors hover:opacity-80 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
23264
- ((h) => {
23265
- if (!h || h.length < 7) return !1;
23266
- const d = parseInt(h.slice(1, 3), 16), f = parseInt(h.slice(3, 5), 16), p = parseInt(h.slice(5, 7), 16);
23267
- return d > 240 && f > 240 && p > 240;
23268
- })(i) ? "border border-border/50" : "border-none",
23268
+ !g && h(o) ? "border border-border/50" : "border-none",
23269
23269
  t
23270
23270
  ),
23271
- style: { backgroundColor: i },
23271
+ style: g ? { background: f } : { backgroundColor: f },
23272
23272
  "aria-label": "Select color"
23273
23273
  }
23274
23274
  ) }),
23275
23275
  /* @__PURE__ */ v(dm, { className: "w-auto p-4 border-none rounded-lg", align: "start", children: /* @__PURE__ */ T("div", { className: "flex flex-col gap-4", children: [
23276
- /* @__PURE__ */ v(HC, { color: i, onChange: o, style: { width: "200px", height: "200px" } }),
23276
+ /* @__PURE__ */ v(HC, { color: o, onChange: s, style: { width: "200px", height: "200px" } }),
23277
23277
  /* @__PURE__ */ T("div", { className: "flex items-center gap-2 max-w-[200px]", children: [
23278
23278
  /* @__PURE__ */ v("span", { className: "text-sm text-muted-foreground", children: "#" }),
23279
23279
  /* @__PURE__ */ v(
23280
23280
  it,
23281
23281
  {
23282
23282
  className: "flex-1 font-mono text-sm",
23283
- value: i.replace("#", ""),
23284
- onChange: (h) => c(`#${h.target.value}`),
23283
+ value: o.replace("#", ""),
23284
+ onChange: (p) => u(`#${p.target.value}`),
23285
23285
  maxLength: 6,
23286
23286
  placeholder: "000000"
23287
23287
  }
@@ -23314,8 +23314,8 @@ var pm = ["PageUp", "PageDown"], gm = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
23314
23314
  onValueCommit: d = () => {
23315
23315
  },
23316
23316
  inverted: f = !1,
23317
- form: p,
23318
- ...g
23317
+ form: g,
23318
+ ...p
23319
23319
  } = n, b = m.useRef(/* @__PURE__ */ new Set()), y = m.useRef(0), w = s === "horizontal" ? c2 : u2, [S = [], C] = Zt({
23320
23320
  prop: u,
23321
23321
  defaultProp: c,
@@ -23338,11 +23338,11 @@ var pm = ["PageUp", "PageDown"], gm = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
23338
23338
  function D(R, P, { commit: B } = { commit: !1 }) {
23339
23339
  const Q = y2(o), z = w2(Math.round((R - r) / o) * o + r, Q), _ = Qr(z, [r, i]);
23340
23340
  C((W = []) => {
23341
- const $ = f2(W, _, P);
23342
- if (v2($, a * o)) {
23343
- y.current = $.indexOf(_);
23344
- const X = String($) !== String(W);
23345
- return X && B && d($), X ? $ : W;
23341
+ const F = f2(W, _, P);
23342
+ if (v2(F, a * o)) {
23343
+ y.current = F.indexOf(_);
23344
+ const X = String(F) !== String(W);
23345
+ return X && B && d(F), X ? F : W;
23346
23346
  } else
23347
23347
  return W;
23348
23348
  });
@@ -23359,15 +23359,15 @@ var pm = ["PageUp", "PageDown"], gm = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
23359
23359
  thumbs: b.current,
23360
23360
  values: S,
23361
23361
  orientation: s,
23362
- form: p,
23362
+ form: g,
23363
23363
  children: /* @__PURE__ */ v(Vl.Provider, { scope: n.__scopeSlider, children: /* @__PURE__ */ v(Vl.Slot, { scope: n.__scopeSlider, children: /* @__PURE__ */ v(
23364
23364
  w,
23365
23365
  {
23366
23366
  "aria-disabled": l,
23367
23367
  "data-disabled": l ? "" : void 0,
23368
- ...g,
23368
+ ...p,
23369
23369
  ref: e,
23370
- onPointerDown: F(g.onPointerDown, () => {
23370
+ onPointerDown: $(p.onPointerDown, () => {
23371
23371
  l || (A.current = S);
23372
23372
  }),
23373
23373
  min: r,
@@ -23380,8 +23380,8 @@ var pm = ["PageUp", "PageDown"], gm = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
23380
23380
  onEndKeyDown: () => !l && D(i, S.length - 1, { commit: !0 }),
23381
23381
  onStepKeyDown: ({ event: R, direction: P }) => {
23382
23382
  if (!l) {
23383
- const z = pm.includes(R.key) || R.shiftKey && gm.includes(R.key) ? 10 : 1, _ = y.current, W = S[_], $ = o * z * P;
23384
- D(W + $, _, { commit: !0 });
23383
+ const z = pm.includes(R.key) || R.shiftKey && gm.includes(R.key) ? 10 : 1, _ = y.current, W = S[_], F = o * z * P;
23384
+ D(W + F, _, { commit: !0 });
23385
23385
  }
23386
23386
  }
23387
23387
  }
@@ -23408,10 +23408,10 @@ var [ym, wm] = bm(dr, {
23408
23408
  onSlideEnd: a,
23409
23409
  onStepKeyDown: c,
23410
23410
  ...u
23411
- } = n, [h, d] = m.useState(null), f = q(e, (w) => d(w)), p = m.useRef(void 0), g = Jr(i), b = g === "ltr", y = b && !o || !b && o;
23411
+ } = n, [h, d] = m.useState(null), f = q(e, (w) => d(w)), g = m.useRef(void 0), p = Jr(i), b = p === "ltr", y = b && !o || !b && o;
23412
23412
  function x(w) {
23413
- const S = p.current || h.getBoundingClientRect(), C = [0, S.width], k = ja(C, y ? [t, r] : [r, t]);
23414
- return p.current = S, k(w - S.left);
23413
+ const S = g.current || h.getBoundingClientRect(), C = [0, S.width], k = ja(C, y ? [t, r] : [r, t]);
23414
+ return g.current = S, k(w - S.left);
23415
23415
  }
23416
23416
  return /* @__PURE__ */ v(
23417
23417
  ym,
@@ -23424,7 +23424,7 @@ var [ym, wm] = bm(dr, {
23424
23424
  children: /* @__PURE__ */ v(
23425
23425
  xm,
23426
23426
  {
23427
- dir: g,
23427
+ dir: p,
23428
23428
  "data-orientation": "horizontal",
23429
23429
  ...u,
23430
23430
  ref: f,
@@ -23441,7 +23441,7 @@ var [ym, wm] = bm(dr, {
23441
23441
  l == null || l(S);
23442
23442
  },
23443
23443
  onSlideEnd: () => {
23444
- p.current = void 0, a == null || a();
23444
+ g.current = void 0, a == null || a();
23445
23445
  },
23446
23446
  onStepKeyDown: (w) => {
23447
23447
  const C = mm[y ? "from-left" : "from-right"].includes(w.key);
@@ -23464,9 +23464,9 @@ var [ym, wm] = bm(dr, {
23464
23464
  onStepKeyDown: a,
23465
23465
  ...c
23466
23466
  } = n, u = m.useRef(null), h = q(e, u), d = m.useRef(void 0), f = !i;
23467
- function p(g) {
23467
+ function g(p) {
23468
23468
  const b = d.current || u.current.getBoundingClientRect(), y = [0, b.height], w = ja(y, f ? [r, t] : [t, r]);
23469
- return d.current = b, w(g - b.top);
23469
+ return d.current = b, w(p - b.top);
23470
23470
  }
23471
23471
  return /* @__PURE__ */ v(
23472
23472
  ym,
@@ -23486,20 +23486,20 @@ var [ym, wm] = bm(dr, {
23486
23486
  ...c.style,
23487
23487
  "--radix-slider-thumb-transform": "translateY(50%)"
23488
23488
  },
23489
- onSlideStart: (g) => {
23490
- const b = p(g.clientY);
23489
+ onSlideStart: (p) => {
23490
+ const b = g(p.clientY);
23491
23491
  o == null || o(b);
23492
23492
  },
23493
- onSlideMove: (g) => {
23494
- const b = p(g.clientY);
23493
+ onSlideMove: (p) => {
23494
+ const b = g(p.clientY);
23495
23495
  s == null || s(b);
23496
23496
  },
23497
23497
  onSlideEnd: () => {
23498
23498
  d.current = void 0, l == null || l();
23499
23499
  },
23500
- onStepKeyDown: (g) => {
23501
- const y = mm[f ? "from-bottom" : "from-top"].includes(g.key);
23502
- a == null || a({ event: g, direction: y ? -1 : 1 });
23500
+ onStepKeyDown: (p) => {
23501
+ const y = mm[f ? "from-bottom" : "from-top"].includes(p.key);
23502
+ a == null || a({ event: p, direction: y ? -1 : 1 });
23503
23503
  }
23504
23504
  }
23505
23505
  )
@@ -23523,17 +23523,17 @@ var [ym, wm] = bm(dr, {
23523
23523
  {
23524
23524
  ...c,
23525
23525
  ref: e,
23526
- onKeyDown: F(n.onKeyDown, (h) => {
23526
+ onKeyDown: $(n.onKeyDown, (h) => {
23527
23527
  h.key === "Home" ? (s(h), h.preventDefault()) : h.key === "End" ? (l(h), h.preventDefault()) : pm.concat(gm).includes(h.key) && (a(h), h.preventDefault());
23528
23528
  }),
23529
- onPointerDown: F(n.onPointerDown, (h) => {
23529
+ onPointerDown: $(n.onPointerDown, (h) => {
23530
23530
  const d = h.target;
23531
23531
  d.setPointerCapture(h.pointerId), h.preventDefault(), u.thumbs.has(d) ? d.focus() : r(h);
23532
23532
  }),
23533
- onPointerMove: F(n.onPointerMove, (h) => {
23533
+ onPointerMove: $(n.onPointerMove, (h) => {
23534
23534
  h.target.hasPointerCapture(h.pointerId) && i(h);
23535
23535
  }),
23536
- onPointerUp: F(n.onPointerUp, (h) => {
23536
+ onPointerUp: $(n.onPointerUp, (h) => {
23537
23537
  const d = h.target;
23538
23538
  d.hasPointerCapture(h.pointerId) && (d.releasePointerCapture(h.pointerId), o(h));
23539
23539
  })
@@ -23587,7 +23587,7 @@ var Hl = "SliderThumb", Cm = m.forwardRef(
23587
23587
  }
23588
23588
  ), h2 = m.forwardRef(
23589
23589
  (n, e) => {
23590
- const { __scopeSlider: t, index: r, name: i, ...o } = n, s = Ko(Hl, t), l = wm(Hl, t), [a, c] = m.useState(null), u = q(e, (x) => c(x)), h = a ? s.form || !!a.closest("form") : !0, d = aa(a), f = s.values[r], p = f === void 0 ? 0 : Pm(f, s.min, s.max), g = p2(r, s.values.length), b = d == null ? void 0 : d[l.size], y = b ? m2(b, p, l.direction) : 0;
23590
+ const { __scopeSlider: t, index: r, name: i, ...o } = n, s = Ko(Hl, t), l = wm(Hl, t), [a, c] = m.useState(null), u = q(e, (x) => c(x)), h = a ? s.form || !!a.closest("form") : !0, d = aa(a), f = s.values[r], g = f === void 0 ? 0 : Pm(f, s.min, s.max), p = p2(r, s.values.length), b = d == null ? void 0 : d[l.size], y = b ? m2(b, g, l.direction) : 0;
23591
23591
  return m.useEffect(() => {
23592
23592
  if (a)
23593
23593
  return s.thumbs.add(a), () => {
@@ -23599,14 +23599,14 @@ var Hl = "SliderThumb", Cm = m.forwardRef(
23599
23599
  style: {
23600
23600
  transform: "var(--radix-slider-thumb-transform)",
23601
23601
  position: "absolute",
23602
- [l.startEdge]: `calc(${p}% + ${y}px)`
23602
+ [l.startEdge]: `calc(${g}% + ${y}px)`
23603
23603
  },
23604
23604
  children: [
23605
23605
  /* @__PURE__ */ v(Vl.ItemSlot, { scope: n.__scopeSlider, children: /* @__PURE__ */ v(
23606
23606
  H.span,
23607
23607
  {
23608
23608
  role: "slider",
23609
- "aria-label": n["aria-label"] || g,
23609
+ "aria-label": n["aria-label"] || p,
23610
23610
  "aria-valuemin": s.min,
23611
23611
  "aria-valuenow": f,
23612
23612
  "aria-valuemax": s.max,
@@ -23617,7 +23617,7 @@ var Hl = "SliderThumb", Cm = m.forwardRef(
23617
23617
  ...o,
23618
23618
  ref: u,
23619
23619
  style: f === void 0 ? { display: "none" } : n.style,
23620
- onFocus: F(n.onFocus, () => {
23620
+ onFocus: $(n.onFocus, () => {
23621
23621
  s.valueIndexToChangeRef.current = r;
23622
23622
  })
23623
23623
  }
@@ -23727,11 +23727,20 @@ function Zo({ label: n, isModified: e, onReset: t, children: r }) {
23727
23727
  /* @__PURE__ */ v("div", { className: "shrink-0", children: r })
23728
23728
  ] });
23729
23729
  }
23730
- function k2({ variable: n, value: e, defaultValue: t, onChange: r }) {
23731
- const i = e || t, o = !!e && e !== t;
23732
- return /* @__PURE__ */ v(Zo, { label: n.label, isModified: o, onReset: () => r(""), children: /* @__PURE__ */ v(fm, { value: i, onChange: r, className: "!w-7 !h-7 !rounded-md !shadow-sm" }) });
23733
- }
23730
+ const k2 = "linear-gradient(90deg, #26E8FE 0%, #808AFF 50%, #A41EFE 100%)";
23734
23731
  function C2({ variable: n, value: e, defaultValue: t, onChange: r }) {
23732
+ const i = e ?? t, o = !!e && e !== t, s = n.variable === "--ov25-highlight-color";
23733
+ return /* @__PURE__ */ v(Zo, { label: n.label, isModified: o, onReset: () => r(""), children: /* @__PURE__ */ v(
23734
+ fm,
23735
+ {
23736
+ value: i,
23737
+ onChange: r,
23738
+ className: "!w-7 !h-7 !rounded-md !shadow-sm",
23739
+ emptyDisplayBackground: s ? k2 : void 0
23740
+ }
23741
+ ) });
23742
+ }
23743
+ function A2({ variable: n, value: e, defaultValue: t, onChange: r }) {
23735
23744
  const i = e || t, o = !!e && e !== t;
23736
23745
  return /* @__PURE__ */ v(Zo, { label: n.label, isModified: o, onReset: () => r(""), children: /* @__PURE__ */ v("div", { className: "flex gap-1", children: Lm.map((s) => /* @__PURE__ */ v(
23737
23746
  "button",
@@ -23755,11 +23764,11 @@ function C2({ variable: n, value: e, defaultValue: t, onChange: r }) {
23755
23764
  s.value
23756
23765
  )) }) });
23757
23766
  }
23758
- function A2(n) {
23767
+ function P2(n) {
23759
23768
  return parseFloat(n) || 0;
23760
23769
  }
23761
- function P2({ variable: n, value: e, defaultValue: t, onChange: r }) {
23762
- const o = A2(e || t), s = !!e && e !== t, l = n.sliderUnit || "px", a = n.sliderMin ?? 0, c = n.sliderMax ?? 100, u = n.sliderStep ?? 1, h = n.sliderLabels;
23770
+ function T2({ variable: n, value: e, defaultValue: t, onChange: r }) {
23771
+ const o = P2(e || t), s = !!e && e !== t, l = n.sliderUnit || "px", a = n.sliderMin ?? 0, c = n.sliderMax ?? 100, u = n.sliderStep ?? 1, h = n.sliderLabels;
23763
23772
  return /* @__PURE__ */ T("div", { className: "space-y-1.5", children: [
23764
23773
  /* @__PURE__ */ v(Zo, { label: n.label, isModified: s, onReset: () => r(""), children: /* @__PURE__ */ T("span", { className: "text-[10px] text-muted-foreground font-mono tabular-nums w-14 text-right", children: [
23765
23774
  o,
@@ -23772,27 +23781,27 @@ function P2({ variable: n, value: e, defaultValue: t, onChange: r }) {
23772
23781
  ] })
23773
23782
  ] });
23774
23783
  }
23775
- function T2({ variable: n, value: e, defaultValue: t, onChange: r }) {
23784
+ function R2({ variable: n, value: e, defaultValue: t, onChange: r }) {
23776
23785
  const i = e || t, o = !!e && e !== t;
23777
23786
  return /* @__PURE__ */ v(Zo, { label: n.label, isModified: o, onReset: () => r(""), children: /* @__PURE__ */ T(zn, { value: i, onValueChange: r, children: [
23778
23787
  /* @__PURE__ */ v(vn, { className: "h-7 w-[130px] text-xs", children: /* @__PURE__ */ v(Vn, {}) }),
23779
23788
  /* @__PURE__ */ v(yn, { children: Bs.map((s) => /* @__PURE__ */ v(wn, { value: s.value, children: /* @__PURE__ */ v("span", { style: { fontFamily: s.value }, children: s.label }) }, s.value)) })
23780
23789
  ] }) });
23781
23790
  }
23782
- function R2({ variable: n, value: e, onChange: t }) {
23791
+ function E2({ variable: n, value: e, onChange: t }) {
23783
23792
  const r = { variable: n, value: e, defaultValue: n.defaultValue, onChange: t };
23784
23793
  switch (n.control) {
23785
23794
  case "color":
23786
- return /* @__PURE__ */ v(k2, { ...r });
23787
- case "corner":
23788
23795
  return /* @__PURE__ */ v(C2, { ...r });
23796
+ case "corner":
23797
+ return /* @__PURE__ */ v(A2, { ...r });
23789
23798
  case "slider":
23790
- return /* @__PURE__ */ v(P2, { ...r });
23791
- case "font":
23792
23799
  return /* @__PURE__ */ v(T2, { ...r });
23800
+ case "font":
23801
+ return /* @__PURE__ */ v(R2, { ...r });
23793
23802
  }
23794
23803
  }
23795
- function E2({ property: n, value: e, onChange: t }) {
23804
+ function M2({ property: n, value: e, onChange: t }) {
23796
23805
  switch (Bm[n] || "text") {
23797
23806
  case "color":
23798
23807
  return /* @__PURE__ */ T("div", { className: "flex items-center gap-1.5 flex-1", children: [
@@ -23844,23 +23853,23 @@ function E2({ property: n, value: e, onChange: t }) {
23844
23853
  return /* @__PURE__ */ v(it, { value: e, onChange: (i) => t(i.target.value), placeholder: "value", className: "h-7 text-[11px] font-mono flex-1" });
23845
23854
  }
23846
23855
  }
23847
- function M2({ property: n, value: e, onPropertyChange: t, onValueChange: r, onRemove: i, availableProperties: o }) {
23856
+ function N2({ property: n, value: e, onPropertyChange: t, onValueChange: r, onRemove: i, availableProperties: o }) {
23848
23857
  return /* @__PURE__ */ v("div", { className: "space-y-1", children: /* @__PURE__ */ T("div", { className: "flex items-center gap-1.5", children: [
23849
23858
  /* @__PURE__ */ T(zn, { value: n, onValueChange: t, children: [
23850
23859
  /* @__PURE__ */ v(vn, { className: "h-7 w-[120px] text-[11px] font-mono shrink-0", children: /* @__PURE__ */ v(Vn, { placeholder: "property" }) }),
23851
23860
  /* @__PURE__ */ v(yn, { children: o.map((s) => /* @__PURE__ */ v(wn, { value: s, className: "text-[11px] font-mono", children: s }, s)) })
23852
23861
  ] }),
23853
- /* @__PURE__ */ v(E2, { property: n, value: e, onChange: r }),
23862
+ /* @__PURE__ */ v(M2, { property: n, value: e, onChange: r }),
23854
23863
  /* @__PURE__ */ v("button", { type: "button", onClick: i, className: "shrink-0 p-1 hover:bg-muted rounded", children: /* @__PURE__ */ v(sh, { className: "h-3 w-3 text-muted-foreground" }) })
23855
23864
  ] }) });
23856
23865
  }
23857
- function N2({ onClick: n }) {
23866
+ function D2({ onClick: n }) {
23858
23867
  return /* @__PURE__ */ T("button", { type: "button", onClick: n, className: "inline-flex items-center gap-1 text-[11px] text-muted-foreground hover:text-foreground transition-colors", children: [
23859
23868
  /* @__PURE__ */ v(ih, { className: "h-3 w-3" }),
23860
23869
  "Add property"
23861
23870
  ] });
23862
23871
  }
23863
- function D2({ elementStyles: n, onUpdate: e }) {
23872
+ function I2({ elementStyles: n, onUpdate: e }) {
23864
23873
  const [t, r] = xe(!1), [i, o] = xe(""), [s, l] = xe(!1), a = Object.keys(n).filter(
23865
23874
  (b) => Object.keys(n[b]).length > 0
23866
23875
  ), c = me(async () => {
@@ -23876,10 +23885,10 @@ function D2({ elementStyles: n, onUpdate: e }) {
23876
23885
  }, [n, e]), f = me((b, y) => {
23877
23886
  const x = { ...n[b] };
23878
23887
  delete x[y], Object.keys(x).length === 0 ? e(b, {}) : e(b, x);
23879
- }, [n, e]), p = me((b) => {
23888
+ }, [n, e]), g = me((b) => {
23880
23889
  const y = { ...n[b] }, x = new Set(Object.keys(y)), w = Ju.find((S) => !x.has(S)) || "";
23881
23890
  y[w] = "", e(b, y);
23882
- }, [n, e]), g = Ga.filter((b) => {
23891
+ }, [n, e]), p = Ga.filter((b) => {
23883
23892
  if (!i) return !0;
23884
23893
  const y = i.toLowerCase();
23885
23894
  return b.selector.toLowerCase().includes(y) || b.label.toLowerCase().includes(y);
@@ -23895,14 +23904,14 @@ function D2({ elementStyles: n, onUpdate: e }) {
23895
23904
  a.map((b) => {
23896
23905
  const y = n[b], x = Ga.find((S) => S.selector === b), w = Object.entries(y);
23897
23906
  return /* @__PURE__ */ v(
23898
- I2,
23907
+ L2,
23899
23908
  {
23900
23909
  selector: b,
23901
23910
  label: (x == null ? void 0 : x.label) || b,
23902
23911
  entries: w,
23903
23912
  onUpdateProperty: (S, C, A) => d(b, S, C, A),
23904
23913
  onRemoveProperty: (S) => f(b, S),
23905
- onAddProperty: () => p(b),
23914
+ onAddProperty: () => g(b),
23906
23915
  onRemoveAll: () => h(b)
23907
23916
  },
23908
23917
  b
@@ -23914,7 +23923,7 @@ function D2({ elementStyles: n, onUpdate: e }) {
23914
23923
  /* @__PURE__ */ v(it, { value: i, onChange: (b) => o(b.target.value), placeholder: "Search elements...", className: "h-7 text-xs pl-7", autoFocus: !0 })
23915
23924
  ] }),
23916
23925
  /* @__PURE__ */ T("div", { className: "max-h-[200px] overflow-y-auto space-y-0.5", children: [
23917
- g.map((b) => /* @__PURE__ */ T(
23926
+ p.map((b) => /* @__PURE__ */ T(
23918
23927
  "button",
23919
23928
  {
23920
23929
  type: "button",
@@ -23927,7 +23936,7 @@ function D2({ elementStyles: n, onUpdate: e }) {
23927
23936
  },
23928
23937
  b.selector
23929
23938
  )),
23930
- g.length === 0 && /* @__PURE__ */ v("p", { className: "text-[11px] text-muted-foreground text-center py-2", children: "No matching elements" })
23939
+ p.length === 0 && /* @__PURE__ */ v("p", { className: "text-[11px] text-muted-foreground text-center py-2", children: "No matching elements" })
23931
23940
  ] }),
23932
23941
  /* @__PURE__ */ v("button", { type: "button", onClick: () => {
23933
23942
  r(!1), o("");
@@ -23938,17 +23947,17 @@ function D2({ elementStyles: n, onUpdate: e }) {
23938
23947
  ] })
23939
23948
  ] });
23940
23949
  }
23941
- function I2({ selector: n, label: e, entries: t, onUpdateProperty: r, onRemoveProperty: i, onAddProperty: o, onRemoveAll: s }) {
23950
+ function L2({ selector: n, label: e, entries: t, onUpdateProperty: r, onRemoveProperty: i, onAddProperty: o, onRemoveAll: s }) {
23942
23951
  const [l, a] = xe(!0), [c, u] = xe(!1);
23943
23952
  return /* @__PURE__ */ T("div", { className: "rounded-md border border-border overflow-hidden", children: [
23944
23953
  /* @__PURE__ */ T("div", { className: "flex items-center gap-1.5 px-2 py-1.5 bg-muted/50", children: [
23945
23954
  /* @__PURE__ */ v("button", { type: "button", onClick: () => a(!l), className: "shrink-0", children: l ? /* @__PURE__ */ v(Zr, { className: "h-3 w-3" }) : /* @__PURE__ */ v(rh, { className: "h-3 w-3" }) }),
23946
23955
  /* @__PURE__ */ v("span", { className: "text-[11px] font-medium truncate flex-1", children: e }),
23947
23956
  /* @__PURE__ */ v("button", { type: "button", onClick: async () => {
23948
- const d = t.filter(([p, g]) => p && g);
23957
+ const d = t.filter(([g, p]) => g && p);
23949
23958
  if (!d.length) return;
23950
23959
  const f = `${n} {
23951
- ${d.map(([p, g]) => ` ${p}: ${g};`).join(`
23960
+ ${d.map(([g, p]) => ` ${g}: ${p};`).join(`
23952
23961
  `)}
23953
23962
  }`;
23954
23963
  await navigator.clipboard.writeText(f), u(!0), setTimeout(() => u(!1), 2e3);
@@ -23957,22 +23966,22 @@ ${d.map(([p, g]) => ` ${p}: ${g};`).join(`
23957
23966
  ] }),
23958
23967
  l && /* @__PURE__ */ T("div", { className: "p-2 space-y-1.5", children: [
23959
23968
  t.map(([d, f]) => /* @__PURE__ */ v(
23960
- M2,
23969
+ N2,
23961
23970
  {
23962
23971
  property: d,
23963
23972
  value: f,
23964
- onPropertyChange: (p) => r(d, p, f),
23965
- onValueChange: (p) => r(d, d, p),
23973
+ onPropertyChange: (g) => r(d, g, f),
23974
+ onValueChange: (g) => r(d, d, g),
23966
23975
  onRemove: () => i(d),
23967
23976
  availableProperties: Ju
23968
23977
  },
23969
23978
  d || "__empty"
23970
23979
  )),
23971
- /* @__PURE__ */ v(N2, { onClick: o })
23980
+ /* @__PURE__ */ v(D2, { onClick: o })
23972
23981
  ] })
23973
23982
  ] });
23974
23983
  }
23975
- function L2({ label: n, description: e, defaultOpen: t = !0, children: r }) {
23984
+ function B2({ label: n, description: e, defaultOpen: t = !0, children: r }) {
23976
23985
  const [i, o] = xe(t);
23977
23986
  return /* @__PURE__ */ T("div", { className: "space-y-2.5", children: [
23978
23987
  /* @__PURE__ */ T("button", { type: "button", onClick: () => o(!i), className: "flex items-center gap-1.5 w-full text-left", children: [
@@ -23982,7 +23991,7 @@ function L2({ label: n, description: e, defaultOpen: t = !0, children: r }) {
23982
23991
  i && /* @__PURE__ */ v("div", { className: "space-y-2.5", children: r })
23983
23992
  ] });
23984
23993
  }
23985
- function B2({ currentSettings: n, updateSettings: e, updateNested: t }) {
23994
+ function Q2({ currentSettings: n, updateSettings: e, updateNested: t }) {
23986
23995
  const r = Ul(() => Object.keys(n.style).length > 0 || Object.keys(n.elementStyles).length > 0, [n.style, n.elementStyles]), i = me(() => {
23987
23996
  e("style", {}), e("elementStyles", {});
23988
23997
  }, [e]), o = me((l, a) => {
@@ -24013,11 +24022,11 @@ function B2({ currentSettings: n, updateSettings: e, updateNested: t }) {
24013
24022
  }
24014
24023
  ) }),
24015
24024
  Xa.map((l, a) => /* @__PURE__ */ T("div", { children: [
24016
- /* @__PURE__ */ v(L2, { label: l.label, description: l.description, defaultOpen: a < 2, children: l.variables.map((c) => /* @__PURE__ */ v(R2, { variable: c, value: n.style[c.variable], onChange: (u) => o(c.variable, u) }, c.variable)) }),
24025
+ /* @__PURE__ */ v(B2, { label: l.label, description: l.description, defaultOpen: a < 2, children: l.variables.map((c) => /* @__PURE__ */ v(E2, { variable: c, value: n.style[c.variable], onChange: (u) => o(c.variable, u) }, c.variable)) }),
24017
24026
  a < Xa.length - 1 && /* @__PURE__ */ v("div", { className: "mt-6", children: /* @__PURE__ */ v(It, {}) })
24018
24027
  ] }, l.id)),
24019
24028
  /* @__PURE__ */ v(It, {}),
24020
- /* @__PURE__ */ v(D2, { elementStyles: n.elementStyles, onUpdate: s }),
24029
+ /* @__PURE__ */ v(I2, { elementStyles: n.elementStyles, onUpdate: s }),
24021
24030
  /* @__PURE__ */ v(It, {}),
24022
24031
  /* @__PURE__ */ T("div", { className: "space-y-2", children: [
24023
24032
  /* @__PURE__ */ v(Dt, { description: "Raw CSS that overrides everything above", children: "Custom CSS" }),
@@ -24033,38 +24042,38 @@ function B2({ currentSettings: n, updateSettings: e, updateNested: t }) {
24033
24042
  /* @__PURE__ */ v("div", { className: "h-4" })
24034
24043
  ] }) });
24035
24044
  }
24036
- const Q2 = [
24045
+ const _2 = [
24037
24046
  { value: "standard", label: "Standard", description: "Single product / range configurator" },
24038
24047
  { value: "snap2", label: "Snap2", description: "Modal-based configurator" }
24039
- ], _2 = [
24048
+ ], F2 = [
24040
24049
  { value: "none", label: "None", desc: "No product images" },
24041
24050
  { value: "carousel", label: "Carousel", desc: "Horizontal scroll" },
24042
24051
  { value: "stacked", label: "Stacked", desc: "Vertical grid" }
24043
24052
  ], $2 = [
24044
24053
  { value: "inline", label: "Inline", desc: "Embedded beside the gallery" },
24045
- { value: "sheet", label: "Sheet", desc: "Slides up from the bottom" },
24054
+ { value: "sheet", label: "Sheet", desc: "Slides in from the sides." },
24046
24055
  { value: "variants-only-sheet", label: "Variants sheet", desc: "Sheet with variants only" }
24047
- ], F2 = [
24056
+ ], z2 = [
24048
24057
  { value: "inline", label: "Inline", desc: "Embedded below gallery" },
24049
24058
  { value: "drawer", label: "Drawer", desc: "Slides up from bottom" },
24050
24059
  { value: "variants-only-sheet", label: "Variants sheet", desc: "Sheet with variants only" }
24051
- ], z2 = [
24060
+ ], V2 = [
24052
24061
  { value: "single-button", label: "Single", desc: "One configure button" },
24053
24062
  { value: "split-buttons", label: "Split", desc: "Separate add & configure" }
24054
- ], V2 = [
24063
+ ], W2 = [
24055
24064
  { value: "tree", label: "Tree", desc: "Nested groups" },
24056
24065
  { value: "list", label: "List", desc: "Flat list" },
24057
24066
  { value: "tabs", label: "Tabs", desc: "Tabbed groups" },
24058
24067
  { value: "accordion", label: "Accordion", desc: "Collapsible groups" },
24059
24068
  { value: "wizard", label: "Wizard", desc: "Step by step" }
24060
- ], W2 = [
24069
+ ], H2 = [
24061
24070
  { key: "gallery", label: "Gallery" },
24062
24071
  { key: "price", label: "Price" },
24063
24072
  { key: "name", label: "Product name" },
24064
24073
  { key: "variants", label: "Variant controls" },
24065
24074
  { key: "swatches", label: "Swatches" },
24066
24075
  { key: "configureButton", label: "Configure button" }
24067
- ], H2 = [
24076
+ ], U2 = [
24068
24077
  { key: "hidePricing", label: "Hide pricing" },
24069
24078
  { key: "hideAr", label: "Hide AR button" },
24070
24079
  { key: "deferThreeD", label: "Defer 3D loading" },
@@ -24072,8 +24081,8 @@ const Q2 = [
24072
24081
  { key: "forceMobile", label: "Force mobile layout" },
24073
24082
  { key: "autoOpen", label: "Auto-open configurator" }
24074
24083
  ];
24075
- function U2({ formState: n, currentSettings: e, setLayout: t, updateSettings: r, updateNested: i, getExportJson: o, onSave: s, hideSaveButton: l }) {
24076
- const [a, c] = xe(!1), [u, h] = xe("current"), [d, f] = xe(!1), p = n.layout === "snap2", g = (w, S) => {
24084
+ function j2({ formState: n, currentSettings: e, setLayout: t, updateSettings: r, updateNested: i, getExportJson: o, onSave: s, hideSaveButton: l }) {
24085
+ const [a, c] = xe(!1), [u, h] = xe("current"), [d, f] = xe(!1), g = n.layout === "snap2", p = (w, S) => {
24077
24086
  i("selectors", w, { ...e.selectors[w], enabled: S });
24078
24087
  }, b = me(() => {
24079
24088
  const w = o(u);
@@ -24093,7 +24102,7 @@ function U2({ formState: n, currentSettings: e, setLayout: t, updateSettings: r,
24093
24102
  return /* @__PURE__ */ T(ov, { defaultValue: "settings", className: "h-full flex flex-col", children: [
24094
24103
  /* @__PURE__ */ v("div", { className: "shrink-0", children: /* @__PURE__ */ T(qh, { className: "w-full h-9 p-1 bg-muted rounded-full grid grid-cols-2", children: [
24095
24104
  /* @__PURE__ */ T(
24096
- Fs,
24105
+ $s,
24097
24106
  {
24098
24107
  value: "settings",
24099
24108
  className: "rounded-full text-xs font-semibold text-muted-foreground gap-1.5 data-[state=active]:bg-gradient-to-r data-[state=active]:from-[#26E8FE] data-[state=active]:via-[#808AFF] data-[state=active]:to-[#A41EFE] data-[state=active]:text-white data-[state=active]:shadow-sm",
@@ -24104,7 +24113,7 @@ function U2({ formState: n, currentSettings: e, setLayout: t, updateSettings: r,
24104
24113
  }
24105
24114
  ),
24106
24115
  /* @__PURE__ */ T(
24107
- Fs,
24116
+ $s,
24108
24117
  {
24109
24118
  value: "style",
24110
24119
  className: "rounded-full text-xs font-semibold text-muted-foreground gap-1.5 data-[state=active]:bg-gradient-to-r data-[state=active]:from-[#26E8FE] data-[state=active]:via-[#808AFF] data-[state=active]:to-[#A41EFE] data-[state=active]:text-white data-[state=active]:shadow-sm",
@@ -24128,7 +24137,7 @@ function U2({ formState: n, currentSettings: e, setLayout: t, updateSettings: r,
24128
24137
  onDesktopChange: (w) => i("configurator", "displayModeDesktop", w),
24129
24138
  onMobileChange: (w) => i("configurator", "displayModeMobile", w),
24130
24139
  options: $2,
24131
- mobileOptions: F2
24140
+ mobileOptions: z2
24132
24141
  }
24133
24142
  ),
24134
24143
  /* @__PURE__ */ v(
@@ -24139,7 +24148,7 @@ function U2({ formState: n, currentSettings: e, setLayout: t, updateSettings: r,
24139
24148
  mobileValue: e.configurator.triggerStyleMobile,
24140
24149
  onDesktopChange: (w) => i("configurator", "triggerStyleDesktop", w),
24141
24150
  onMobileChange: (w) => i("configurator", "triggerStyleMobile", w),
24142
- options: z2
24151
+ options: V2
24143
24152
  }
24144
24153
  ),
24145
24154
  /* @__PURE__ */ v(
@@ -24150,7 +24159,7 @@ function U2({ formState: n, currentSettings: e, setLayout: t, updateSettings: r,
24150
24159
  mobileValue: e.configurator.variantDisplayMobile,
24151
24160
  onDesktopChange: (w) => i("configurator", "variantDisplayDesktop", w),
24152
24161
  onMobileChange: (w) => i("configurator", "variantDisplayMobile", w),
24153
- options: V2
24162
+ options: W2
24154
24163
  }
24155
24164
  )
24156
24165
  ] }),
@@ -24165,7 +24174,7 @@ function U2({ formState: n, currentSettings: e, setLayout: t, updateSettings: r,
24165
24174
  mobileValue: e.carousel.mobile,
24166
24175
  onDesktopChange: (w) => i("carousel", "desktop", w),
24167
24176
  onMobileChange: (w) => i("carousel", "mobile", w),
24168
- options: _2
24177
+ options: F2
24169
24178
  }
24170
24179
  ),
24171
24180
  /* @__PURE__ */ T("div", { className: "grid grid-cols-2 gap-2", children: [
@@ -24200,7 +24209,7 @@ function U2({ formState: n, currentSettings: e, setLayout: t, updateSettings: r,
24200
24209
  /* @__PURE__ */ v(It, {}),
24201
24210
  /* @__PURE__ */ T("div", { className: "space-y-3", children: [
24202
24211
  /* @__PURE__ */ v(Dt, { description: "The type of configurator experience for this product", children: "Product Type" }),
24203
- /* @__PURE__ */ v("div", { className: "flex gap-1.5", children: Q2.map((w) => /* @__PURE__ */ T(
24212
+ /* @__PURE__ */ v("div", { className: "flex gap-1.5", children: _2.map((w) => /* @__PURE__ */ T(
24204
24213
  "button",
24205
24214
  {
24206
24215
  type: "button",
@@ -24213,7 +24222,7 @@ function U2({ formState: n, currentSettings: e, setLayout: t, updateSettings: r,
24213
24222
  },
24214
24223
  w.value
24215
24224
  )) }),
24216
- p && /* @__PURE__ */ v(
24225
+ g && /* @__PURE__ */ v(
24217
24226
  hs,
24218
24227
  {
24219
24228
  label: "Starting configuration",
@@ -24253,12 +24262,12 @@ function U2({ formState: n, currentSettings: e, setLayout: t, updateSettings: r,
24253
24262
  /* @__PURE__ */ v(It, {}),
24254
24263
  /* @__PURE__ */ T("div", { className: "space-y-2.5", children: [
24255
24264
  /* @__PURE__ */ v(Dt, { description: "Toggle which UI elements the configurator injects into your page", children: "Elements" }),
24256
- W2.map(({ key: w, label: S }) => /* @__PURE__ */ v(
24265
+ H2.map(({ key: w, label: S }) => /* @__PURE__ */ v(
24257
24266
  hs,
24258
24267
  {
24259
24268
  label: S,
24260
24269
  checked: e.selectors[w].enabled,
24261
- onCheckedChange: (C) => g(w, C)
24270
+ onCheckedChange: (C) => p(w, C)
24262
24271
  },
24263
24272
  w
24264
24273
  ))
@@ -24266,7 +24275,7 @@ function U2({ formState: n, currentSettings: e, setLayout: t, updateSettings: r,
24266
24275
  /* @__PURE__ */ v(It, {}),
24267
24276
  /* @__PURE__ */ T("div", { className: "space-y-2.5", children: [
24268
24277
  /* @__PURE__ */ v(Dt, { description: "Fine-tune loading behaviour, visibility, and layout overrides", children: "Behaviour" }),
24269
- H2.map(({ key: w, label: S }) => /* @__PURE__ */ v(
24278
+ U2.map(({ key: w, label: S }) => /* @__PURE__ */ v(
24270
24279
  hs,
24271
24280
  {
24272
24281
  label: S,
@@ -24278,7 +24287,7 @@ function U2({ formState: n, currentSettings: e, setLayout: t, updateSettings: r,
24278
24287
  ] }),
24279
24288
  /* @__PURE__ */ v("div", { className: "h-4" })
24280
24289
  ] }) }) }),
24281
- /* @__PURE__ */ v(zs, { value: "style", className: "flex-1 min-h-0 mt-0", children: /* @__PURE__ */ v(B2, { currentSettings: e, updateSettings: r, updateNested: i }) }),
24290
+ /* @__PURE__ */ v(zs, { value: "style", className: "flex-1 min-h-0 mt-0", children: /* @__PURE__ */ v(Q2, { currentSettings: e, updateSettings: r, updateNested: i }) }),
24282
24291
  !l && /* @__PURE__ */ v("div", { className: "shrink-0 pt-3 pb-1", children: /* @__PURE__ */ T(
24283
24292
  "button",
24284
24293
  {
@@ -24338,22 +24347,22 @@ function U2({ formState: n, currentSettings: e, setLayout: t, updateSettings: r,
24338
24347
  ] }) })
24339
24348
  ] });
24340
24349
  }
24341
- const j2 = "OV25_CONFIG", X2 = "https://app.ov25.ai/configurator-preview";
24342
- function G2(n) {
24343
- return n && typeof window < "u" && window.location.hostname === "localhost" ? `http://localhost:${window.location.port}/configurator-preview` : X2;
24350
+ const X2 = "OV25_CONFIG", G2 = "https://app.ov25.ai/configurator-preview";
24351
+ function Y2(n) {
24352
+ return n && typeof window < "u" && window.location.hostname === "localhost" ? `http://localhost:${window.location.port}/configurator-preview` : G2;
24344
24353
  }
24345
24354
  const qu = {
24346
24355
  desktop: { width: "100%", label: "Desktop" },
24347
24356
  mobile: { width: "375px", label: "Mobile" }
24348
24357
  };
24349
- function Y2(n, e) {
24350
- n != null && n.contentWindow && n.contentWindow.postMessage({ type: j2, config: e }, "*");
24358
+ function q2(n, e) {
24359
+ n != null && n.contentWindow && n.contentWindow.postMessage({ type: X2, config: e }, "*");
24351
24360
  }
24352
- function q2({ serializableConfig: n, previewBaseUrl: e, useLocalPreview: t }) {
24361
+ function K2({ serializableConfig: n, previewBaseUrl: e, useLocalPreview: t }) {
24353
24362
  const r = _e(null), i = _e(n), [o, s] = xe("desktop"), [l, a] = xe(0);
24354
24363
  i.current = n;
24355
- const c = e || G2(t), u = me(() => {
24356
- Y2(r.current, i.current);
24364
+ const c = e || Y2(t), u = me(() => {
24365
+ q2(r.current, i.current);
24357
24366
  }, []);
24358
24367
  return Je(() => {
24359
24368
  a((h) => h + 1);
@@ -24435,7 +24444,7 @@ function q2({ serializableConfig: n, previewBaseUrl: e, useLocalPreview: t }) {
24435
24444
  )
24436
24445
  ] });
24437
24446
  }
24438
- function iA(n) {
24447
+ function oA(n) {
24439
24448
  const e = {
24440
24449
  apiKey: n.apiKey,
24441
24450
  productLink: n.productLink,
@@ -24453,10 +24462,10 @@ function iA(n) {
24453
24462
  serializableConfig: l,
24454
24463
  getExportJson: a
24455
24464
  } = jm(e);
24456
- return /* @__PURE__ */ T("div", { className: "h-screen flex", children: [
24457
- !n.hidePreview && /* @__PURE__ */ v("main", { className: "flex-1 min-h-0 p-4", children: /* @__PURE__ */ v(q2, { serializableConfig: l, previewBaseUrl: n.previewBaseUrl, useLocalPreview: n.useLocalPreview }) }),
24465
+ return /* @__PURE__ */ T("div", { className: n.className || "h-screen flex", children: [
24466
+ !n.hidePreview && /* @__PURE__ */ v("main", { className: "flex-1 min-h-0 p-4", children: /* @__PURE__ */ v(K2, { serializableConfig: l, previewBaseUrl: n.previewBaseUrl, useLocalPreview: n.useLocalPreview }) }),
24458
24467
  /* @__PURE__ */ v("aside", { className: n.hidePreview ? "w-full h-full flex flex-col" : "w-[370px] shrink-0 border-l bg-white px-4 pt-4 pb-4 h-full flex flex-col overflow-hidden", children: /* @__PURE__ */ v(
24459
- U2,
24468
+ j2,
24460
24469
  {
24461
24470
  formState: t,
24462
24471
  currentSettings: r,
@@ -24471,12 +24480,12 @@ function iA(n) {
24471
24480
  ] });
24472
24481
  }
24473
24482
  export {
24474
- U2 as ConfigPanel,
24475
- iA as ConfiguratorSetup,
24476
- q2 as PreviewArea,
24483
+ j2 as ConfigPanel,
24484
+ oA as ConfiguratorSetup,
24485
+ K2 as PreviewArea,
24477
24486
  Xa as STYLE_GROUPS,
24478
24487
  Qs as buildSerializableConfig,
24479
24488
  eh as generateElementCSS,
24480
- $m as generateVariableCSS
24489
+ Fm as generateVariableCSS
24481
24490
  };
24482
24491
  //# sourceMappingURL=index.js.map