@neuctra/cms-core 1.0.3 → 1.0.5

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.es.js CHANGED
@@ -51,11 +51,11 @@ function Zm() {
51
51
  return b.$$typeof === M ? null : b.displayName || b.name || null;
52
52
  if (typeof b == "string") return b;
53
53
  switch (b) {
54
- case y:
55
- return "Fragment";
56
54
  case v:
57
- return "Profiler";
55
+ return "Fragment";
58
56
  case S:
57
+ return "Profiler";
58
+ case y:
59
59
  return "StrictMode";
60
60
  case x:
61
61
  return "Suspense";
@@ -70,11 +70,11 @@ function Zm() {
70
70
  ), b.$$typeof) {
71
71
  case E:
72
72
  return "Portal";
73
- case T:
73
+ case A:
74
74
  return b.displayName || "Context";
75
75
  case w:
76
76
  return (b._context.displayName || "Context") + ".Consumer";
77
- case A:
77
+ case T:
78
78
  var I = b.render;
79
79
  return b = b.displayName, b || (b = I.displayName || I.name || "", b = b !== "" ? "ForwardRef(" + b + ")" : "ForwardRef"), b;
80
80
  case k:
@@ -109,7 +109,7 @@ function Zm() {
109
109
  }
110
110
  }
111
111
  function a(b) {
112
- if (b === y) return "<>";
112
+ if (b === v) return "<>";
113
113
  if (typeof b == "object" && b !== null && b.$$typeof === N)
114
114
  return "<...>";
115
115
  try {
@@ -238,7 +238,7 @@ React keys must be passed directly to JSX without using spread:
238
238
  function p(b) {
239
239
  return typeof b == "object" && b !== null && b.$$typeof === h;
240
240
  }
241
- var m = te, h = Symbol.for("react.transitional.element"), E = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), T = Symbol.for("react.context"), A = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), C = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), _ = Symbol.for("react.activity"), M = Symbol.for("react.client.reference"), F = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, U = Array.isArray, L = console.createTask ? console.createTask : function() {
241
+ var m = te, h = Symbol.for("react.transitional.element"), E = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), A = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), C = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), _ = Symbol.for("react.activity"), M = Symbol.for("react.client.reference"), F = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, U = Array.isArray, L = console.createTask ? console.createTask : function() {
242
242
  return null;
243
243
  };
244
244
  m = {
@@ -250,7 +250,7 @@ React keys must be passed directly to JSX without using spread:
250
250
  m,
251
251
  i
252
252
  )(), z = L(a(i)), q = {};
253
- Vt.Fragment = y, Vt.jsx = function(b, I, $) {
253
+ Vt.Fragment = v, Vt.jsx = function(b, I, $) {
254
254
  var H = 1e4 > F.recentlyCreatedOwnerStacks++;
255
255
  return c(
256
256
  b,
@@ -1015,29 +1015,30 @@ const ch = [
1015
1015
  placeholder: a = "Write...",
1016
1016
  className: r = ""
1017
1017
  }) => {
1018
- const i = X(null);
1019
- X(!1);
1020
- const [o, s] = ee(!1), [l, u] = ee(""), [c, d] = ee(!1);
1018
+ const i = X(null), o = X(null), [s, l] = ee(!1), [u, c] = ee(""), [d, p] = ee(!1);
1021
1019
  se(() => {
1022
1020
  const y = i.current;
1023
1021
  y && (y.innerHTML || (y.innerHTML = e || ""));
1024
1022
  }, []);
1025
- const p = (y, S) => {
1023
+ const m = (y, S) => {
1026
1024
  document.execCommand(y, !1, S);
1027
- const v = i.current?.innerHTML;
1028
- v && t(v);
1029
- }, m = () => {
1030
- u(""), s(!0);
1025
+ const w = i.current?.innerHTML;
1026
+ w && t(w);
1031
1027
  }, h = () => {
1032
- if (!l.trim()) return;
1033
- const y = l.startsWith("http") ? l : `https://${l}`;
1034
- p("createLink", y), setTimeout(() => {
1035
- const S = i.current;
1036
- S && S.querySelectorAll("a").forEach((v) => {
1037
- v.setAttribute("target", "_blank"), v.setAttribute("rel", "noopener noreferrer");
1038
- });
1039
- }, 0), s(!1), u("");
1028
+ const y = window.getSelection();
1029
+ y && y.rangeCount > 0 && (o.current = y.getRangeAt(0)), c(""), l(!0);
1040
1030
  }, E = () => {
1031
+ if (!u.trim()) return;
1032
+ const y = i.current;
1033
+ if (!y) return;
1034
+ y.focus();
1035
+ const S = window.getSelection();
1036
+ if (!S || S.rangeCount === 0) return;
1037
+ const w = S.getRangeAt(0), A = u.startsWith("http") ? u : `https://${u}`, T = document.createElement("a");
1038
+ T.href = A, T.target = "_blank", T.rel = "noopener noreferrer", T.className = "text-[#00c214] underline hover:underline";
1039
+ const x = w.toString() || A;
1040
+ T.textContent = x, w.deleteContents(), w.insertNode(T), w.setStartAfter(T), w.setEndAfter(T), S.removeAllRanges(), S.addRange(w), t(y.innerHTML), l(!1), c("");
1041
+ }, v = () => {
1041
1042
  const y = i.current?.innerHTML;
1042
1043
  y && t(y);
1043
1044
  };
@@ -1049,8 +1050,8 @@ const ch = [
1049
1050
  /* @__PURE__ */ f.jsx(
1050
1051
  "button",
1051
1052
  {
1052
- onClick: () => d((y) => !y),
1053
- className: `flex items-center gap-2 rounded-lg px-4 py-2.5 text-sm transition-all duration-200 ${c ? "bg-cyan-500/10 text-cyan-300" : "bg-white/5 text-white/60 hover:bg-white/10 hover:text-white"}`,
1053
+ onClick: () => p((y) => !y),
1054
+ className: `flex items-center gap-2 rounded-lg px-4 py-2.5 text-sm transition-all duration-200 ${d ? "bg-cyan-500/10 text-cyan-300" : "bg-white/5 text-white/60 hover:bg-white/10 hover:text-white"}`,
1054
1055
  children: /* @__PURE__ */ f.jsx(pp, { size: 14 })
1055
1056
  }
1056
1057
  ),
@@ -1065,18 +1066,18 @@ const ch = [
1065
1066
  ] })
1066
1067
  ] }),
1067
1068
  /* @__PURE__ */ f.jsxs("div", { className: "flex flex-wrap items-center gap-2 border-b border-white/10 bg-white/2 p-4", children: [
1068
- /* @__PURE__ */ f.jsx(Ge, { icon: gf, onClick: () => p("bold") }),
1069
- /* @__PURE__ */ f.jsx(Ge, { icon: Pf, onClick: () => p("italic") }),
1070
- /* @__PURE__ */ f.jsx(Ge, { icon: dh, onClick: () => p("underline") }),
1071
- /* @__PURE__ */ f.jsx(Ge, { icon: $f, onClick: m }),
1069
+ /* @__PURE__ */ f.jsx(Ge, { icon: gf, onClick: () => m("bold") }),
1070
+ /* @__PURE__ */ f.jsx(Ge, { icon: Pf, onClick: () => m("italic") }),
1071
+ /* @__PURE__ */ f.jsx(Ge, { icon: dh, onClick: () => m("underline") }),
1072
+ /* @__PURE__ */ f.jsx(Ge, { icon: $f, onClick: h }),
1072
1073
  /* @__PURE__ */ f.jsx("div", { className: "mx-1 h-6 w-px bg-white/10" }),
1073
- /* @__PURE__ */ f.jsx(Ge, { icon: lf, onClick: () => p("justifyLeft") }),
1074
- /* @__PURE__ */ f.jsx(Ge, { icon: of, onClick: () => p("justifyCenter") }),
1075
- /* @__PURE__ */ f.jsx(Ge, { icon: cf, onClick: () => p("justifyRight") }),
1074
+ /* @__PURE__ */ f.jsx(Ge, { icon: lf, onClick: () => m("justifyLeft") }),
1075
+ /* @__PURE__ */ f.jsx(Ge, { icon: of, onClick: () => m("justifyCenter") }),
1076
+ /* @__PURE__ */ f.jsx(Ge, { icon: cf, onClick: () => m("justifyRight") }),
1076
1077
  /* @__PURE__ */ f.jsx("div", { className: "mx-1 h-6 w-px bg-white/10" }),
1077
- /* @__PURE__ */ f.jsx(Ge, { icon: Vf, onClick: () => p("insertUnorderedList") }),
1078
- /* @__PURE__ */ f.jsx(Ge, { icon: Gf, onClick: () => p("insertOrderedList") }),
1079
- /* @__PURE__ */ f.jsx(Ge, { icon: Kf, onClick: () => p("formatBlock", "blockquote") })
1078
+ /* @__PURE__ */ f.jsx(Ge, { icon: Vf, onClick: () => m("insertUnorderedList") }),
1079
+ /* @__PURE__ */ f.jsx(Ge, { icon: Gf, onClick: () => m("insertOrderedList") }),
1080
+ /* @__PURE__ */ f.jsx(Ge, { icon: Kf, onClick: () => m("formatBlock", "blockquote") })
1080
1081
  ] }),
1081
1082
  /* @__PURE__ */ f.jsx(
1082
1083
  "div",
@@ -1084,8 +1085,8 @@ const ch = [
1084
1085
  ref: i,
1085
1086
  contentEditable: !0,
1086
1087
  suppressContentEditableWarning: !0,
1087
- onInput: E,
1088
- style: { display: c ? "none" : "block" },
1088
+ onInput: v,
1089
+ style: { display: d ? "none" : "block" },
1089
1090
  className: `
1090
1091
  min-h-55 px-5 py-2 outline-none text-white/80 leading-8
1091
1092
  prose prose-invert max-w-none
@@ -1135,15 +1136,15 @@ const ch = [
1135
1136
  "data-placeholder": a
1136
1137
  }
1137
1138
  ),
1138
- c && /* @__PURE__ */ f.jsx(Ep, { value: e })
1139
+ d && /* @__PURE__ */ f.jsx(Ep, { value: e })
1139
1140
  ] }),
1140
- o && /* @__PURE__ */ f.jsx("div", { className: "fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm", children: /* @__PURE__ */ f.jsxs("div", { className: "w-[420px] rounded-2xl border border-white/10 bg-[#0f0f12] p-5 shadow-2xl", children: [
1141
+ s && /* @__PURE__ */ f.jsx("div", { className: "fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm", children: /* @__PURE__ */ f.jsxs("div", { className: "w-[420px] rounded-2xl border border-white/10 bg-[#0f0f12] p-5 shadow-2xl", children: [
1141
1142
  /* @__PURE__ */ f.jsx("h2", { className: "mb-3 text-sm font-medium text-white/80", children: "Insert Link" }),
1142
1143
  /* @__PURE__ */ f.jsx(
1143
1144
  "input",
1144
1145
  {
1145
- value: l,
1146
- onChange: (y) => u(y.target.value),
1146
+ value: u,
1147
+ onChange: (y) => c(y.target.value),
1147
1148
  placeholder: "https://example.com",
1148
1149
  className: "w-full rounded-xl border border-white/10 bg-white/5 px-3 py-2 text-sm text-white outline-none focus:border-cyan-400/50"
1149
1150
  }
@@ -1152,7 +1153,7 @@ const ch = [
1152
1153
  /* @__PURE__ */ f.jsx(
1153
1154
  "button",
1154
1155
  {
1155
- onClick: () => s(!1),
1156
+ onClick: () => l(!1),
1156
1157
  className: "rounded-xl px-3 py-2 text-sm text-white/60 hover:text-white",
1157
1158
  children: "Cancel"
1158
1159
  }
@@ -1160,7 +1161,7 @@ const ch = [
1160
1161
  /* @__PURE__ */ f.jsx(
1161
1162
  "button",
1162
1163
  {
1163
- onClick: h,
1164
+ onClick: E,
1164
1165
  className: "rounded-xl bg-cyan-500/20 px-4 py-2 text-sm text-cyan-300 hover:bg-cyan-500/30",
1165
1166
  children: "Insert"
1166
1167
  }
@@ -1770,34 +1771,34 @@ function fb(e, t, n, a) {
1770
1771
  function xp(e, t) {
1771
1772
  return e.Uri.parse(t);
1772
1773
  }
1773
- function hb({ original: e, modified: t, language: n, originalLanguage: a, modifiedLanguage: r, originalModelPath: i, modifiedModelPath: o, keepCurrentOriginalModel: s = !1, keepCurrentModifiedModel: l = !1, theme: u = "light", loading: c = "Loading...", options: d = {}, height: p = "100%", width: m = "100%", className: h, wrapperProps: E = {}, beforeMount: y = Kt, onMount: S = Kt }) {
1774
- let [v, w] = ee(!1), [T, A] = ee(!0), x = X(null), C = X(null), k = X(null), N = X(S), _ = X(y), M = X(!1);
1774
+ function hb({ original: e, modified: t, language: n, originalLanguage: a, modifiedLanguage: r, originalModelPath: i, modifiedModelPath: o, keepCurrentOriginalModel: s = !1, keepCurrentModifiedModel: l = !1, theme: u = "light", loading: c = "Loading...", options: d = {}, height: p = "100%", width: m = "100%", className: h, wrapperProps: E = {}, beforeMount: v = Kt, onMount: y = Kt }) {
1775
+ let [S, w] = ee(!1), [A, T] = ee(!0), x = X(null), C = X(null), k = X(null), N = X(y), _ = X(v), M = X(!1);
1775
1776
  _p(() => {
1776
1777
  let L = Ap.init();
1777
- return L.then((B) => (C.current = B) && A(!1)).catch((B) => B?.type !== "cancelation" && console.error("Monaco initialization: error:", B)), () => x.current ? U() : L.cancel();
1778
+ return L.then((B) => (C.current = B) && T(!1)).catch((B) => B?.type !== "cancelation" && console.error("Monaco initialization: error:", B)), () => x.current ? U() : L.cancel();
1778
1779
  }), Ce(() => {
1779
1780
  if (x.current && C.current) {
1780
1781
  let L = x.current.getOriginalEditor(), B = vt(C.current, e || "", a || n || "text", i || "");
1781
1782
  B !== L.getModel() && L.setModel(B);
1782
1783
  }
1783
- }, [i], v), Ce(() => {
1784
+ }, [i], S), Ce(() => {
1784
1785
  if (x.current && C.current) {
1785
1786
  let L = x.current.getModifiedEditor(), B = vt(C.current, t || "", r || n || "text", o || "");
1786
1787
  B !== L.getModel() && L.setModel(B);
1787
1788
  }
1788
- }, [o], v), Ce(() => {
1789
+ }, [o], S), Ce(() => {
1789
1790
  let L = x.current.getModifiedEditor();
1790
1791
  L.getOption(C.current.editor.EditorOption.readOnly) ? L.setValue(t || "") : t !== L.getValue() && (L.executeEdits("", [{ range: L.getModel().getFullModelRange(), text: t || "", forceMoveMarkers: !0 }]), L.pushUndoStop());
1791
- }, [t], v), Ce(() => {
1792
+ }, [t], S), Ce(() => {
1792
1793
  x.current?.getModel()?.original.setValue(e || "");
1793
- }, [e], v), Ce(() => {
1794
+ }, [e], S), Ce(() => {
1794
1795
  let { original: L, modified: B } = x.current.getModel();
1795
1796
  C.current.editor.setModelLanguage(L, a || n || "text"), C.current.editor.setModelLanguage(B, r || n || "text");
1796
- }, [n, a, r], v), Ce(() => {
1797
+ }, [n, a, r], S), Ce(() => {
1797
1798
  C.current?.editor.setTheme(u);
1798
- }, [u], v), Ce(() => {
1799
+ }, [u], S), Ce(() => {
1799
1800
  x.current?.updateOptions(d);
1800
- }, [d], v);
1801
+ }, [d], S);
1801
1802
  let F = mt(() => {
1802
1803
  if (!C.current) return;
1803
1804
  _.current(C.current);
@@ -1807,15 +1808,15 @@ function hb({ original: e, modified: t, language: n, originalLanguage: a, modifi
1807
1808
  !M.current && k.current && (x.current = C.current.editor.createDiffEditor(k.current, { automaticLayout: !0, ...d }), F(), C.current?.editor.setTheme(u), w(!0), M.current = !0);
1808
1809
  }, [d, u, F]);
1809
1810
  se(() => {
1810
- v && N.current(x.current, C.current);
1811
- }, [v]), se(() => {
1812
- !T && !v && D();
1813
- }, [T, v, D]);
1811
+ S && N.current(x.current, C.current);
1812
+ }, [S]), se(() => {
1813
+ !A && !S && D();
1814
+ }, [A, S, D]);
1814
1815
  function U() {
1815
1816
  let L = x.current?.getModel();
1816
1817
  s || L?.original?.dispose(), l || L?.modified?.dispose(), x.current?.dispose();
1817
1818
  }
1818
- return te.createElement(Np, { width: m, height: p, isEditorReady: v, loading: c, _ref: k, className: h, wrapperProps: E });
1819
+ return te.createElement(Np, { width: m, height: p, isEditorReady: S, loading: c, _ref: k, className: h, wrapperProps: E });
1819
1820
  }
1820
1821
  var bb = hb;
1821
1822
  ln(bb);
@@ -1826,26 +1827,26 @@ function yb(e) {
1826
1827
  }, [e]), t.current;
1827
1828
  }
1828
1829
  var Eb = yb, kn = /* @__PURE__ */ new Map();
1829
- function Sb({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: a, language: r, path: i, theme: o = "light", line: s, loading: l = "Loading...", options: u = {}, overrideServices: c = {}, saveViewState: d = !0, keepCurrentModel: p = !1, width: m = "100%", height: h = "100%", className: E, wrapperProps: y = {}, beforeMount: S = Kt, onMount: v = Kt, onChange: w, onValidate: T = Kt }) {
1830
- let [A, x] = ee(!1), [C, k] = ee(!0), N = X(null), _ = X(null), M = X(null), F = X(v), D = X(S), U = X(), L = X(a), B = Eb(i), G = X(!1), Y = X(!1);
1830
+ function Sb({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: a, language: r, path: i, theme: o = "light", line: s, loading: l = "Loading...", options: u = {}, overrideServices: c = {}, saveViewState: d = !0, keepCurrentModel: p = !1, width: m = "100%", height: h = "100%", className: E, wrapperProps: v = {}, beforeMount: y = Kt, onMount: S = Kt, onChange: w, onValidate: A = Kt }) {
1831
+ let [T, x] = ee(!1), [C, k] = ee(!0), N = X(null), _ = X(null), M = X(null), F = X(S), D = X(y), U = X(), L = X(a), B = Eb(i), G = X(!1), Y = X(!1);
1831
1832
  _p(() => {
1832
1833
  let b = Ap.init();
1833
1834
  return b.then((I) => (N.current = I) && k(!1)).catch((I) => I?.type !== "cancelation" && console.error("Monaco initialization: error:", I)), () => _.current ? q() : b.cancel();
1834
1835
  }), Ce(() => {
1835
1836
  let b = vt(N.current, e || a || "", t || r || "", i || n || "");
1836
1837
  b !== _.current?.getModel() && (d && kn.set(B, _.current?.saveViewState()), _.current?.setModel(b), d && _.current?.restoreViewState(kn.get(i)));
1837
- }, [i], A), Ce(() => {
1838
+ }, [i], T), Ce(() => {
1838
1839
  _.current?.updateOptions(u);
1839
- }, [u], A), Ce(() => {
1840
+ }, [u], T), Ce(() => {
1840
1841
  !_.current || a === void 0 || (_.current.getOption(N.current.editor.EditorOption.readOnly) ? _.current.setValue(a) : a !== _.current.getValue() && (Y.current = !0, _.current.executeEdits("", [{ range: _.current.getModel().getFullModelRange(), text: a, forceMoveMarkers: !0 }]), _.current.pushUndoStop(), Y.current = !1));
1841
- }, [a], A), Ce(() => {
1842
+ }, [a], T), Ce(() => {
1842
1843
  let b = _.current?.getModel();
1843
1844
  b && r && N.current?.editor.setModelLanguage(b, r);
1844
- }, [r], A), Ce(() => {
1845
+ }, [r], T), Ce(() => {
1845
1846
  s !== void 0 && _.current?.revealLine(s);
1846
- }, [s], A), Ce(() => {
1847
+ }, [s], T), Ce(() => {
1847
1848
  N.current?.editor.setTheme(o);
1848
- }, [o], A);
1849
+ }, [o], T);
1849
1850
  let z = mt(() => {
1850
1851
  if (!(!M.current || !N.current) && !G.current) {
1851
1852
  D.current(N.current);
@@ -1854,20 +1855,20 @@ function Sb({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: a, lan
1854
1855
  }
1855
1856
  }, [e, t, n, a, r, i, u, c, d, o, s]);
1856
1857
  se(() => {
1857
- A && F.current(_.current, N.current);
1858
- }, [A]), se(() => {
1859
- !C && !A && z();
1860
- }, [C, A, z]), L.current = a, se(() => {
1861
- A && w && (U.current?.dispose(), U.current = _.current?.onDidChangeModelContent((b) => {
1858
+ T && F.current(_.current, N.current);
1859
+ }, [T]), se(() => {
1860
+ !C && !T && z();
1861
+ }, [C, T, z]), L.current = a, se(() => {
1862
+ T && w && (U.current?.dispose(), U.current = _.current?.onDidChangeModelContent((b) => {
1862
1863
  Y.current || w(_.current.getValue(), b);
1863
1864
  }));
1864
- }, [A, w]), se(() => {
1865
- if (A) {
1865
+ }, [T, w]), se(() => {
1866
+ if (T) {
1866
1867
  let b = N.current.editor.onDidChangeMarkers((I) => {
1867
1868
  let $ = _.current.getModel()?.uri;
1868
1869
  if ($ && I.find((H) => H.path === $.path)) {
1869
1870
  let H = N.current.editor.getModelMarkers({ resource: $ });
1870
- T?.(H);
1871
+ A?.(H);
1871
1872
  }
1872
1873
  });
1873
1874
  return () => {
@@ -1876,11 +1877,11 @@ function Sb({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: a, lan
1876
1877
  }
1877
1878
  return () => {
1878
1879
  };
1879
- }, [A, T]);
1880
+ }, [T, A]);
1880
1881
  function q() {
1881
1882
  U.current?.dispose(), p ? d && kn.set(i, _.current.saveViewState()) : _.current.getModel()?.dispose(), _.current.dispose();
1882
1883
  }
1883
- return te.createElement(Np, { width: m, height: h, isEditorReady: A, loading: l, _ref: M, className: E, wrapperProps: y });
1884
+ return te.createElement(Np, { width: m, height: h, isEditorReady: T, loading: l, _ref: M, className: E, wrapperProps: v });
1884
1885
  }
1885
1886
  var vb = Sb, kp = ln(vb), wb = kp, xa = { exports: {} }, Ht = {};
1886
1887
  /**
@@ -1933,11 +1934,11 @@ function Ab() {
1933
1934
  return b.$$typeof === M ? null : b.displayName || b.name || null;
1934
1935
  if (typeof b == "string") return b;
1935
1936
  switch (b) {
1936
- case y:
1937
- return "Fragment";
1938
1937
  case v:
1939
- return "Profiler";
1938
+ return "Fragment";
1940
1939
  case S:
1940
+ return "Profiler";
1941
+ case y:
1941
1942
  return "StrictMode";
1942
1943
  case x:
1943
1944
  return "Suspense";
@@ -1952,11 +1953,11 @@ function Ab() {
1952
1953
  ), b.$$typeof) {
1953
1954
  case E:
1954
1955
  return "Portal";
1955
- case T:
1956
+ case A:
1956
1957
  return b.displayName || "Context";
1957
1958
  case w:
1958
1959
  return (b._context.displayName || "Context") + ".Consumer";
1959
- case A:
1960
+ case T:
1960
1961
  var I = b.render;
1961
1962
  return b = b.displayName, b || (b = I.displayName || I.name || "", b = b !== "" ? "ForwardRef(" + b + ")" : "ForwardRef"), b;
1962
1963
  case k:
@@ -1991,7 +1992,7 @@ function Ab() {
1991
1992
  }
1992
1993
  }
1993
1994
  function a(b) {
1994
- if (b === y) return "<>";
1995
+ if (b === v) return "<>";
1995
1996
  if (typeof b == "object" && b !== null && b.$$typeof === N)
1996
1997
  return "<...>";
1997
1998
  try {
@@ -2120,7 +2121,7 @@ React keys must be passed directly to JSX without using spread:
2120
2121
  function p(b) {
2121
2122
  return typeof b == "object" && b !== null && b.$$typeof === h;
2122
2123
  }
2123
- var m = te, h = Symbol.for("react.transitional.element"), E = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), T = Symbol.for("react.context"), A = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), C = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), _ = Symbol.for("react.activity"), M = Symbol.for("react.client.reference"), F = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, U = Array.isArray, L = console.createTask ? console.createTask : function() {
2124
+ var m = te, h = Symbol.for("react.transitional.element"), E = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), A = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), C = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), _ = Symbol.for("react.activity"), M = Symbol.for("react.client.reference"), F = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, U = Array.isArray, L = console.createTask ? console.createTask : function() {
2124
2125
  return null;
2125
2126
  };
2126
2127
  m = {
@@ -2132,7 +2133,7 @@ React keys must be passed directly to JSX without using spread:
2132
2133
  m,
2133
2134
  i
2134
2135
  )(), z = L(a(i)), q = {};
2135
- Rn.Fragment = y, Rn.jsx = function(b, I, $) {
2136
+ Rn.Fragment = v, Rn.jsx = function(b, I, $) {
2136
2137
  var H = 1e4 > F.recentlyCreatedOwnerStacks++;
2137
2138
  return c(
2138
2139
  b,
@@ -2191,12 +2192,12 @@ const _b = Be(
2191
2192
  textClassName: m,
2192
2193
  style: h,
2193
2194
  contentStyle: E,
2194
- iconStyle: y,
2195
- loaderStyle: S,
2196
- textStyle: v,
2195
+ iconStyle: v,
2196
+ loaderStyle: y,
2197
+ textStyle: S,
2197
2198
  type: w = "button",
2198
- ...T
2199
- }, A) {
2199
+ ...A
2200
+ }, T) {
2200
2201
  const x = l || a, C = {
2201
2202
  xs: "px-3 py-1.5 text-xs min-h-[28px] rounded-md",
2202
2203
  sm: "px-4 py-2 text-sm min-h-[32px] rounded-md",
@@ -2217,7 +2218,7 @@ const _b = Be(
2217
2218
  return /* @__PURE__ */ R.jsx(
2218
2219
  "button",
2219
2220
  {
2220
- ref: A,
2221
+ ref: T,
2221
2222
  type: w,
2222
2223
  disabled: x,
2223
2224
  "aria-disabled": x,
@@ -2232,7 +2233,7 @@ const _b = Be(
2232
2233
  style: {
2233
2234
  ...h
2234
2235
  },
2235
- ...T,
2236
+ ...A,
2236
2237
  children: /* @__PURE__ */ R.jsx(
2237
2238
  "span",
2238
2239
  {
@@ -2250,7 +2251,7 @@ const _b = Be(
2250
2251
  width: N[s],
2251
2252
  height: N[s],
2252
2253
  flexShrink: 0,
2253
- ...S
2254
+ ...y
2254
2255
  }
2255
2256
  }
2256
2257
  ),
@@ -2261,7 +2262,7 @@ const _b = Be(
2261
2262
  m,
2262
2263
  "whitespace-nowrap text-foreground"
2263
2264
  ),
2264
- style: v,
2265
+ style: S,
2265
2266
  children: r
2266
2267
  }
2267
2268
  )
@@ -2277,7 +2278,7 @@ const _b = Be(
2277
2278
  style: {
2278
2279
  width: N[s],
2279
2280
  height: N[s],
2280
- ...y
2281
+ ...v
2281
2282
  },
2282
2283
  children: t
2283
2284
  }
@@ -2289,7 +2290,7 @@ const _b = Be(
2289
2290
  m,
2290
2291
  "whitespace-nowrap text-current"
2291
2292
  ),
2292
- style: v,
2293
+ style: S,
2293
2294
  children: e
2294
2295
  }
2295
2296
  ),
@@ -2304,7 +2305,7 @@ const _b = Be(
2304
2305
  style: {
2305
2306
  width: N[s],
2306
2307
  height: N[s],
2307
- ...y
2308
+ ...v
2308
2309
  },
2309
2310
  children: n
2310
2311
  }
@@ -2337,12 +2338,12 @@ const Nc = (e) => {
2337
2338
  overlay: m,
2338
2339
  overlayColor: h = "hsl(var(--background) / 0.6)",
2339
2340
  clickable: E,
2340
- onClick: y,
2341
- fallback: S,
2342
- loading: v = "lazy",
2341
+ onClick: v,
2342
+ fallback: y,
2343
+ loading: S = "lazy",
2343
2344
  className: w,
2344
- imageClassName: T,
2345
- overlayClassName: A,
2345
+ imageClassName: A,
2346
+ overlayClassName: T,
2346
2347
  fallbackClassName: x,
2347
2348
  style: C,
2348
2349
  imageStyle: k,
@@ -2401,7 +2402,7 @@ const Nc = (e) => {
2401
2402
  backgroundColor: "hsl(var(--muted))",
2402
2403
  ..._
2403
2404
  }, Y = (z) => {
2404
- E && (z.key === "Enter" || z.key === " ") && (z.preventDefault(), y?.(z));
2405
+ E && (z.key === "Enter" || z.key === " ") && (z.preventDefault(), v?.(z));
2405
2406
  };
2406
2407
  return /* @__PURE__ */ R.jsxs(
2407
2408
  "div",
@@ -2411,7 +2412,7 @@ const Nc = (e) => {
2411
2412
  tabIndex: E ? 0 : void 0,
2412
2413
  "aria-label": a,
2413
2414
  title: r,
2414
- onClick: E ? y : void 0,
2415
+ onClick: E ? v : void 0,
2415
2416
  onKeyDown: Y,
2416
2417
  style: U,
2417
2418
  className: w,
@@ -2422,12 +2423,12 @@ const Nc = (e) => {
2422
2423
  {
2423
2424
  src: n,
2424
2425
  alt: a,
2425
- loading: v,
2426
+ loading: S,
2426
2427
  style: L,
2427
- className: T
2428
+ className: A
2428
2429
  }
2429
- ) : /* @__PURE__ */ R.jsx("div", { style: G, className: x, children: S || "No Image" }),
2430
- m && /* @__PURE__ */ R.jsx("div", { style: B, className: A, children: m })
2430
+ ) : /* @__PURE__ */ R.jsx("div", { style: G, className: x, children: y || "No Image" }),
2431
+ m && /* @__PURE__ */ R.jsx("div", { style: B, className: T, children: m })
2431
2432
  ]
2432
2433
  }
2433
2434
  );
@@ -2732,10 +2733,10 @@ const Qb = ln(
2732
2733
  countClassName: m,
2733
2734
  countStyle: h,
2734
2735
  iconClassName: E,
2735
- iconStyle: y,
2736
- onClick: S
2736
+ iconStyle: v,
2737
+ onClick: y
2737
2738
  }) => {
2738
- const v = {
2739
+ const S = {
2739
2740
  sm: "px-3 py-0.5 text-xs",
2740
2741
  md: "px-4 py-1 text-xs",
2741
2742
  lg: "px-5 py-1.5 text-sm"
@@ -2747,7 +2748,7 @@ const Qb = ln(
2747
2748
  return /* @__PURE__ */ R.jsxs(
2748
2749
  "span",
2749
2750
  {
2750
- onClick: S,
2751
+ onClick: y,
2751
2752
  style: c,
2752
2753
  className: V(
2753
2754
  u,
@@ -2756,8 +2757,8 @@ const Qb = ln(
2756
2757
  w[a],
2757
2758
  // ✅ single source of truth
2758
2759
  i ? "rounded-full" : "rounded-md",
2759
- v[r],
2760
- S && "cursor-pointer " + (a === "solid" ? "hover:bg-accent/80" : a === "outline" ? "hover:bg-primary/10" : "hover:bg-primary/20")
2760
+ S[r],
2761
+ y && "cursor-pointer " + (a === "solid" ? "hover:bg-accent/80" : a === "outline" ? "hover:bg-primary/10" : "hover:bg-primary/20")
2761
2762
  ),
2762
2763
  children: [
2763
2764
  o && /* @__PURE__ */ R.jsx(
@@ -2787,7 +2788,7 @@ const Qb = ln(
2787
2788
  t && n === "left" && /* @__PURE__ */ R.jsx(
2788
2789
  "span",
2789
2790
  {
2790
- style: y,
2791
+ style: v,
2791
2792
  className: V(E, "flex items-center"),
2792
2793
  children: t
2793
2794
  }
@@ -2796,7 +2797,7 @@ const Qb = ln(
2796
2797
  t && n === "right" && /* @__PURE__ */ R.jsx(
2797
2798
  "span",
2798
2799
  {
2799
- style: y,
2800
+ style: v,
2800
2801
  className: V(E, "flex items-center"),
2801
2802
  children: t
2802
2803
  }
@@ -2979,18 +2980,18 @@ function Yp(e, t) {
2979
2980
  delta: 0,
2980
2981
  timestamp: 0,
2981
2982
  isProcessing: !1
2982
- }, i = () => n = !0, o = In.reduce((S, v) => (S[v] = ly(i), S), {}), { setup: s, read: l, resolveKeyframes: u, preUpdate: c, update: d, preRender: p, render: m, postRender: h } = o, E = () => {
2983
- const S = tt.useManualTiming, v = S ? r.timestamp : performance.now();
2984
- n = !1, S || (r.delta = a ? 1e3 / 60 : Math.max(Math.min(v - r.timestamp, uy), 1)), r.timestamp = v, r.isProcessing = !0, s.process(r), l.process(r), u.process(r), c.process(r), d.process(r), p.process(r), m.process(r), h.process(r), r.isProcessing = !1, n && t && (a = !1, e(E));
2985
- }, y = () => {
2983
+ }, i = () => n = !0, o = In.reduce((y, S) => (y[S] = ly(i), y), {}), { setup: s, read: l, resolveKeyframes: u, preUpdate: c, update: d, preRender: p, render: m, postRender: h } = o, E = () => {
2984
+ const y = tt.useManualTiming, S = y ? r.timestamp : performance.now();
2985
+ n = !1, y || (r.delta = a ? 1e3 / 60 : Math.max(Math.min(S - r.timestamp, uy), 1)), r.timestamp = S, r.isProcessing = !0, s.process(r), l.process(r), u.process(r), c.process(r), d.process(r), p.process(r), m.process(r), h.process(r), r.isProcessing = !1, n && t && (a = !1, e(E));
2986
+ }, v = () => {
2986
2987
  n = !0, a = !0, r.isProcessing || e(E);
2987
2988
  };
2988
- return { schedule: In.reduce((S, v) => {
2989
- const w = o[v];
2990
- return S[v] = (T, A = !1, x = !1) => (n || y(), w.schedule(T, A, x)), S;
2991
- }, {}), cancel: (S) => {
2992
- for (let v = 0; v < In.length; v++)
2993
- o[In[v]].cancel(S);
2989
+ return { schedule: In.reduce((y, S) => {
2990
+ const w = o[S];
2991
+ return y[S] = (A, T = !1, x = !1) => (n || v(), w.schedule(A, T, x)), y;
2992
+ }, {}), cancel: (y) => {
2993
+ for (let S = 0; S < In.length; S++)
2994
+ o[In[S]].cancel(y);
2994
2995
  }, state: r, steps: o };
2995
2996
  }
2996
2997
  const { schedule: ne, cancel: nt, state: me, steps: ka } = /* @__PURE__ */ Yp(typeof requestAnimationFrame < "u" ? requestAnimationFrame : De, !0);
@@ -3347,43 +3348,43 @@ function Zn(e = oe.visualDuration, t = oe.bounce) {
3347
3348
  const i = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], s = { done: !1, value: i }, { stiffness: l, damping: u, mass: c, duration: d, velocity: p, isResolvedFromDuration: m } = Vy({
3348
3349
  ...n,
3349
3350
  velocity: -/* @__PURE__ */ Le(n.velocity || 0)
3350
- }), h = p || 0, E = u / (2 * Math.sqrt(l * c)), y = o - i, S = /* @__PURE__ */ Le(Math.sqrt(l / c)), v = Math.abs(y) < 5;
3351
- a || (a = v ? oe.restSpeed.granular : oe.restSpeed.default), r || (r = v ? oe.restDelta.granular : oe.restDelta.default);
3352
- let w, T, A, x, C, k;
3351
+ }), h = p || 0, E = u / (2 * Math.sqrt(l * c)), v = o - i, y = /* @__PURE__ */ Le(Math.sqrt(l / c)), S = Math.abs(v) < 5;
3352
+ a || (a = S ? oe.restSpeed.granular : oe.restSpeed.default), r || (r = S ? oe.restDelta.granular : oe.restDelta.default);
3353
+ let w, A, T, x, C, k;
3353
3354
  if (E < 1)
3354
- A = Xa(S, E), x = (h + E * S * y) / A, w = (_) => {
3355
- const M = Math.exp(-E * S * _);
3356
- return o - M * (x * Math.sin(A * _) + y * Math.cos(A * _));
3357
- }, C = E * S * x + y * A, k = E * S * y - x * A, T = (_) => Math.exp(-E * S * _) * (C * Math.sin(A * _) + k * Math.cos(A * _));
3355
+ T = Xa(y, E), x = (h + E * y * v) / T, w = (_) => {
3356
+ const M = Math.exp(-E * y * _);
3357
+ return o - M * (x * Math.sin(T * _) + v * Math.cos(T * _));
3358
+ }, C = E * y * x + v * T, k = E * y * v - x * T, A = (_) => Math.exp(-E * y * _) * (C * Math.sin(T * _) + k * Math.cos(T * _));
3358
3359
  else if (E === 1) {
3359
- w = (M) => o - Math.exp(-S * M) * (y + (h + S * y) * M);
3360
- const _ = h + S * y;
3361
- T = (M) => Math.exp(-S * M) * (S * _ * M - h);
3360
+ w = (M) => o - Math.exp(-y * M) * (v + (h + y * v) * M);
3361
+ const _ = h + y * v;
3362
+ A = (M) => Math.exp(-y * M) * (y * _ * M - h);
3362
3363
  } else {
3363
- const _ = S * Math.sqrt(E * E - 1);
3364
+ const _ = y * Math.sqrt(E * E - 1);
3364
3365
  w = (U) => {
3365
- const L = Math.exp(-E * S * U), B = Math.min(_ * U, 300);
3366
- return o - L * ((h + E * S * y) * Math.sinh(B) + _ * y * Math.cosh(B)) / _;
3366
+ const L = Math.exp(-E * y * U), B = Math.min(_ * U, 300);
3367
+ return o - L * ((h + E * y * v) * Math.sinh(B) + _ * v * Math.cosh(B)) / _;
3367
3368
  };
3368
- const M = (h + E * S * y) / _, F = E * S * M - y * _, D = E * S * y - M * _;
3369
- T = (U) => {
3370
- const L = Math.exp(-E * S * U), B = Math.min(_ * U, 300);
3369
+ const M = (h + E * y * v) / _, F = E * y * M - v * _, D = E * y * v - M * _;
3370
+ A = (U) => {
3371
+ const L = Math.exp(-E * y * U), B = Math.min(_ * U, 300);
3371
3372
  return L * (F * Math.sinh(B) + D * Math.cosh(B));
3372
3373
  };
3373
3374
  }
3374
3375
  const N = {
3375
3376
  calculatedDuration: m && d || null,
3376
- velocity: (_) => /* @__PURE__ */ ke(T(_)),
3377
+ velocity: (_) => /* @__PURE__ */ ke(A(_)),
3377
3378
  next: (_) => {
3378
3379
  if (!m && E < 1) {
3379
- const F = Math.exp(-E * S * _), D = Math.sin(A * _), U = Math.cos(A * _), L = o - F * (x * D + y * U), B = /* @__PURE__ */ ke(F * (C * D + k * U));
3380
+ const F = Math.exp(-E * y * _), D = Math.sin(T * _), U = Math.cos(T * _), L = o - F * (x * D + v * U), B = /* @__PURE__ */ ke(F * (C * D + k * U));
3380
3381
  return s.done = Math.abs(B) <= a && Math.abs(o - L) <= r, s.value = s.done ? o : L, s;
3381
3382
  }
3382
3383
  const M = w(_);
3383
3384
  if (m)
3384
3385
  s.done = _ >= d;
3385
3386
  else {
3386
- const F = /* @__PURE__ */ ke(T(_));
3387
+ const F = /* @__PURE__ */ ke(A(_));
3387
3388
  s.done = Math.abs(F) <= a && Math.abs(o - M) <= r;
3388
3389
  }
3389
3390
  return s.value = s.done ? o : M, s;
@@ -3412,15 +3413,15 @@ function Za({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: a = 3
3412
3413
  value: d
3413
3414
  }, m = (k) => s !== void 0 && k < s || l !== void 0 && k > l, h = (k) => s === void 0 ? l : l === void 0 || Math.abs(s - k) < Math.abs(l - k) ? s : l;
3414
3415
  let E = n * t;
3415
- const y = d + E, S = o === void 0 ? y : o(y);
3416
- S !== y && (E = S - d);
3417
- const v = (k) => -E * Math.exp(-k / a), w = (k) => S + v(k), T = (k) => {
3418
- const N = v(k), _ = w(k);
3419
- p.done = Math.abs(N) <= u, p.value = p.done ? S : _;
3416
+ const v = d + E, y = o === void 0 ? v : o(v);
3417
+ y !== v && (E = y - d);
3418
+ const S = (k) => -E * Math.exp(-k / a), w = (k) => y + S(k), A = (k) => {
3419
+ const N = S(k), _ = w(k);
3420
+ p.done = Math.abs(N) <= u, p.value = p.done ? y : _;
3420
3421
  };
3421
- let A, x;
3422
+ let T, x;
3422
3423
  const C = (k) => {
3423
- m(p.value) && (A = k, x = Zn({
3424
+ m(p.value) && (T = k, x = Zn({
3424
3425
  keyframes: [p.value, h(p.value)],
3425
3426
  velocity: rg(w, k, p.value),
3426
3427
  // TODO: This should be passing * 1000
@@ -3434,7 +3435,7 @@ function Za({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: a = 3
3434
3435
  calculatedDuration: null,
3435
3436
  next: (k) => {
3436
3437
  let N = !1;
3437
- return !x && A === void 0 && (N = !0, T(k), C(k)), A !== void 0 && k >= A ? x.next(k - A) : (!N && T(k), p);
3438
+ return !x && T === void 0 && (N = !0, A(k), C(k)), T !== void 0 && k >= T ? x.next(k - T) : (!N && A(k), p);
3438
3439
  }
3439
3440
  };
3440
3441
  }
@@ -3578,22 +3579,22 @@ class Qn extends zr {
3578
3579
  const { generator: a, totalDuration: r, mixKeyframes: i, mirroredGenerator: o, resolvedDuration: s, calculatedDuration: l } = this;
3579
3580
  if (this.startTime === null)
3580
3581
  return a.next(0);
3581
- const { delay: u = 0, keyframes: c, repeat: d, repeatType: p, repeatDelay: m, type: h, onUpdate: E, finalKeyframe: y } = this.options;
3582
+ const { delay: u = 0, keyframes: c, repeat: d, repeatType: p, repeatDelay: m, type: h, onUpdate: E, finalKeyframe: v } = this.options;
3582
3583
  this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - r / this.speed, this.startTime)), n ? this.currentTime = t : this.updateTime(t);
3583
- const S = this.currentTime - u * (this.playbackSpeed >= 0 ? 1 : -1), v = this.playbackSpeed >= 0 ? S < 0 : S > r;
3584
- this.currentTime = Math.max(S, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = r);
3585
- let w = this.currentTime, T = a;
3584
+ const y = this.currentTime - u * (this.playbackSpeed >= 0 ? 1 : -1), S = this.playbackSpeed >= 0 ? y < 0 : y > r;
3585
+ this.currentTime = Math.max(y, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = r);
3586
+ let w = this.currentTime, A = a;
3586
3587
  if (d) {
3587
3588
  const k = Math.min(this.currentTime, r) / s;
3588
3589
  let N = Math.floor(k), _ = k % 1;
3589
- !_ && k >= 1 && (_ = 1), _ === 1 && N--, N = Math.min(N, d + 1), N % 2 && (p === "reverse" ? (_ = 1 - _, m && (_ -= m / s)) : p === "mirror" && (T = o)), w = We(0, 1, _) * s;
3590
+ !_ && k >= 1 && (_ = 1), _ === 1 && N--, N = Math.min(N, d + 1), N % 2 && (p === "reverse" ? (_ = 1 - _, m && (_ -= m / s)) : p === "mirror" && (A = o)), w = We(0, 1, _) * s;
3590
3591
  }
3591
- let A;
3592
- v ? (this.delayState.value = c[0], A = this.delayState) : A = T.next(w), i && !v && (A.value = i(A.value));
3593
- let { done: x } = A;
3594
- !v && l !== null && (x = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
3592
+ let T;
3593
+ S ? (this.delayState.value = c[0], T = this.delayState) : T = A.next(w), i && !S && (T.value = i(T.value));
3594
+ let { done: x } = T;
3595
+ !S && l !== null && (x = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
3595
3596
  const C = this.holdTime === null && (this.state === "finished" || this.state === "running" && x);
3596
- return C && h !== Za && (A.value = sa(c, this.options, y, this.speed)), E && E(A.value), C && this.finish(), A;
3597
+ return C && h !== Za && (T.value = sa(c, this.options, v, this.speed)), E && E(T.value), C && this.finish(), T;
3597
3598
  }
3598
3599
  /**
3599
3600
  * Allows the returned animation to be awaited or promise-chained. Currently
@@ -4117,7 +4118,7 @@ class _E extends zr {
4117
4118
  element: c,
4118
4119
  ...d
4119
4120
  }, m = c?.KeyframeResolver || Vr;
4120
- this.keyframeResolver = new m(s, (h, E, y) => this.onKeyframesResolved(h, E, p, !y), l, u, c), this.keyframeResolver?.scheduleResolve();
4121
+ this.keyframeResolver = new m(s, (h, E, v) => this.onKeyframesResolved(h, E, p, !v), l, u, c), this.keyframeResolver?.scheduleResolve();
4121
4122
  }
4122
4123
  onKeyframesResolved(t, n, a, r) {
4123
4124
  this.keyframeResolver = void 0;
@@ -4591,22 +4592,22 @@ function wg(e, t, { delay: n = 0, transitionOverride: a, type: r } = {}) {
4591
4592
  const E = {
4592
4593
  delay: n,
4593
4594
  ...Hr(i || {}, p)
4594
- }, y = m.get();
4595
- if (y !== void 0 && !m.isAnimating() && !Array.isArray(h) && h === y && !E.velocity) {
4595
+ }, v = m.get();
4596
+ if (v !== void 0 && !m.isAnimating() && !Array.isArray(h) && h === v && !E.velocity) {
4596
4597
  ne.update(() => m.set(h));
4597
4598
  continue;
4598
4599
  }
4599
- let S = !1;
4600
+ let y = !1;
4600
4601
  if (window.MotionHandoffAnimation) {
4601
- const T = vg(e);
4602
- if (T) {
4603
- const A = window.MotionHandoffAnimation(T, p, ne);
4604
- A !== null && (E.startTime = A, S = !0);
4602
+ const A = vg(e);
4603
+ if (A) {
4604
+ const T = window.MotionHandoffAnimation(A, p, ne);
4605
+ T !== null && (E.startTime = T, y = !0);
4605
4606
  }
4606
4607
  }
4607
4608
  sr(e, p);
4608
- const v = u ?? e.shouldReduceMotion;
4609
- m.start(Wr(p, m, h, v && Eg.has(p) ? { type: !1 } : E, e, S));
4609
+ const S = u ?? e.shouldReduceMotion;
4610
+ m.start(Wr(p, m, h, S && Eg.has(p) ? { type: !1 } : E, e, y));
4610
4611
  const w = m.animation;
4611
4612
  w && c.push(w);
4612
4613
  }
@@ -4915,26 +4916,26 @@ function oS(e, t, n = {}) {
4915
4916
  let s = !1, l = !1, u;
4916
4917
  const c = () => {
4917
4918
  o.removeEventListener("pointerleave", h);
4918
- }, d = (y) => {
4919
- u && (u(y), u = void 0), c();
4920
- }, p = (y) => {
4921
- s = !1, window.removeEventListener("pointerup", p), window.removeEventListener("pointercancel", p), l && (l = !1, d(y));
4919
+ }, d = (v) => {
4920
+ u && (u(v), u = void 0), c();
4921
+ }, p = (v) => {
4922
+ s = !1, window.removeEventListener("pointerup", p), window.removeEventListener("pointercancel", p), l && (l = !1, d(v));
4922
4923
  }, m = () => {
4923
4924
  s = !0, window.addEventListener("pointerup", p, r), window.addEventListener("pointercancel", p, r);
4924
- }, h = (y) => {
4925
- if (y.pointerType !== "touch") {
4925
+ }, h = (v) => {
4926
+ if (v.pointerType !== "touch") {
4926
4927
  if (s) {
4927
4928
  l = !0;
4928
4929
  return;
4929
4930
  }
4930
- d(y);
4931
+ d(v);
4931
4932
  }
4932
- }, E = (y) => {
4933
- if (!iS(y))
4933
+ }, E = (v) => {
4934
+ if (!iS(v))
4934
4935
  return;
4935
4936
  l = !1;
4936
- const S = t(o, y);
4937
- typeof S == "function" && (u = S, o.addEventListener("pointerleave", h, r));
4937
+ const y = t(o, v);
4938
+ typeof y == "function" && (u = y, o.addEventListener("pointerleave", h, r));
4938
4939
  };
4939
4940
  o.addEventListener("pointerenter", E, r), o.addEventListener("pointerdown", m, r);
4940
4941
  }), i;
@@ -5760,28 +5761,28 @@ function XS(e) {
5760
5761
  function s(u) {
5761
5762
  const { props: c } = e, d = qg(e.parent) || {}, p = [], m = /* @__PURE__ */ new Set();
5762
5763
  let h = {}, E = 1 / 0;
5763
- for (let S = 0; S < YS; S++) {
5764
- const v = qS[S], w = n[v], T = c[v] !== void 0 ? c[v] : d[v], A = an(T), x = v === u ? w.isActive : null;
5765
- x === !1 && (E = S);
5766
- let C = T === d[v] && T !== c[v] && A;
5764
+ for (let y = 0; y < YS; y++) {
5765
+ const S = qS[y], w = n[S], A = c[S] !== void 0 ? c[S] : d[S], T = an(A), x = S === u ? w.isActive : null;
5766
+ x === !1 && (E = y);
5767
+ let C = A === d[S] && A !== c[S] && T;
5767
5768
  if (C && (a || r) && e.manuallyAnimateOnMount && (C = !1), w.protectedKeys = { ...h }, // If it isn't active and hasn't *just* been set as inactive
5768
5769
  !w.isActive && x === null || // If we didn't and don't have any defined prop for this animation type
5769
- !T && !w.prevProp || // Or if the prop doesn't define an animation
5770
- la(T) || typeof T == "boolean")
5770
+ !A && !w.prevProp || // Or if the prop doesn't define an animation
5771
+ la(A) || typeof A == "boolean")
5771
5772
  continue;
5772
- if (v === "exit" && w.isActive && x !== !0) {
5773
+ if (S === "exit" && w.isActive && x !== !0) {
5773
5774
  w.prevResolvedValues && (h = {
5774
5775
  ...h,
5775
5776
  ...w.prevResolvedValues
5776
5777
  });
5777
5778
  continue;
5778
5779
  }
5779
- const k = ZS(w.prevProp, T);
5780
+ const k = ZS(w.prevProp, A);
5780
5781
  let N = k || // If we're making this variant active, we want to always make it active
5781
- v === u && w.isActive && !C && A || // If we removed a higher-priority variant (i is in reverse order)
5782
- S > E && A, _ = !1;
5783
- const M = Array.isArray(T) ? T : [T];
5784
- let F = M.reduce(i(v), {});
5782
+ S === u && w.isActive && !C && T || // If we removed a higher-priority variant (i is in reverse order)
5783
+ y > E && T, _ = !1;
5784
+ const M = Array.isArray(A) ? A : [A];
5785
+ let F = M.reduce(i(S), {});
5785
5786
  x === !1 && (F = {});
5786
5787
  const { prevResolvedValues: D = {} } = w, U = {
5787
5788
  ...D,
@@ -5798,10 +5799,10 @@ function XS(e) {
5798
5799
  let q = !1;
5799
5800
  or(Y) && or(z) ? q = !Yg(Y, z) : q = Y !== z, q ? Y != null ? L(G) : m.add(G) : Y !== void 0 && m.has(G) ? L(G) : w.protectedKeys[G] = !0;
5800
5801
  }
5801
- w.prevProp = T, w.prevResolvedValues = F, w.isActive && (h = { ...h, ...F }), (a || r) && e.blockInitialAnimation && (N = !1);
5802
+ w.prevProp = A, w.prevResolvedValues = F, w.isActive && (h = { ...h, ...F }), (a || r) && e.blockInitialAnimation && (N = !1);
5802
5803
  const B = C && k;
5803
5804
  N && (!B || _) && p.push(...M.map((G) => {
5804
- const Y = { type: v };
5805
+ const Y = { type: S };
5805
5806
  if (typeof G == "string" && (a || r) && !B && e.manuallyAnimateOnMount && e.parent) {
5806
5807
  const { parent: z } = e, q = pt(z, G);
5807
5808
  if (z.enteringChildren && q) {
@@ -5816,18 +5817,18 @@ function XS(e) {
5816
5817
  }));
5817
5818
  }
5818
5819
  if (m.size) {
5819
- const S = {};
5820
+ const y = {};
5820
5821
  if (typeof c.initial != "boolean") {
5821
- const v = pt(e, Array.isArray(c.initial) ? c.initial[0] : c.initial);
5822
- v && v.transition && (S.transition = v.transition);
5822
+ const S = pt(e, Array.isArray(c.initial) ? c.initial[0] : c.initial);
5823
+ S && S.transition && (y.transition = S.transition);
5823
5824
  }
5824
- m.forEach((v) => {
5825
- const w = e.getBaseTarget(v), T = e.getValue(v);
5826
- T && (T.liveStyle = !0), S[v] = w ?? null;
5827
- }), p.push({ animation: S });
5825
+ m.forEach((S) => {
5826
+ const w = e.getBaseTarget(S), A = e.getValue(S);
5827
+ A && (A.liveStyle = !0), y[S] = w ?? null;
5828
+ }), p.push({ animation: y });
5828
5829
  }
5829
- let y = !!p.length;
5830
- return a && (c.initial === !1 || c.initial === c.animate) && !e.manuallyAnimateOnMount && (y = !1), a = !1, r = !1, y ? t(p) : Promise.resolve();
5830
+ let v = !!p.length;
5831
+ return a && (c.initial === !1 || c.initial === c.animate) && !e.manuallyAnimateOnMount && (v = !1), a = !1, r = !1, v ? t(p) : Promise.resolve();
5831
5832
  }
5832
5833
  function l(u, c) {
5833
5834
  if (n[u].isActive === c)
@@ -6138,15 +6139,15 @@ function nm({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
6138
6139
  this.target = void 0, this.relativeTarget = void 0;
6139
6140
  return;
6140
6141
  }
6141
- const m = this.options.transition || l.getDefaultTransition() || Dv, { onLayoutAnimationStart: h, onLayoutAnimationComplete: E } = l.getProps(), y = !this.targetLayout || !Qg(this.targetLayout, p), S = !c && d;
6142
- if (this.options.layoutRoot || this.resumeFrom || S || c && (y || !this.currentAnimation)) {
6142
+ const m = this.options.transition || l.getDefaultTransition() || Dv, { onLayoutAnimationStart: h, onLayoutAnimationComplete: E } = l.getProps(), v = !this.targetLayout || !Qg(this.targetLayout, p), y = !c && d;
6143
+ if (this.options.layoutRoot || this.resumeFrom || y || c && (v || !this.currentAnimation)) {
6143
6144
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
6144
- const v = {
6145
+ const S = {
6145
6146
  ...Hr(m, "layout"),
6146
6147
  onPlay: h,
6147
6148
  onComplete: E
6148
6149
  };
6149
- (l.shouldReduceMotion || this.options.layoutRoot) && (v.delay = 0, v.type = !1), this.startAnimation(v), this.setAnimationOrigin(u, S);
6150
+ (l.shouldReduceMotion || this.options.layoutRoot) && (S.delay = 0, S.type = !1), this.startAnimation(S), this.setAnimationOrigin(u, y);
6150
6151
  } else
6151
6152
  c || Ad(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
6152
6153
  this.targetLayout = p;
@@ -6392,12 +6393,12 @@ function nm({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
6392
6393
  setAnimationOrigin(i, o = !1) {
6393
6394
  const s = this.snapshot, l = s ? s.latestValues : {}, u = { ...this.latestValues }, c = Nt();
6394
6395
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !o;
6395
- const d = ce(), p = s ? s.source : void 0, m = this.layout ? this.layout.source : void 0, h = p !== m, E = this.getStack(), y = !E || E.members.length <= 1, S = !!(h && !y && this.options.crossfade === !0 && !this.path.some(Lv));
6396
+ const d = ce(), p = s ? s.source : void 0, m = this.layout ? this.layout.source : void 0, h = p !== m, E = this.getStack(), v = !E || E.members.length <= 1, y = !!(h && !v && this.options.crossfade === !0 && !this.path.some(Lv));
6396
6397
  this.animationProgress = 0;
6397
- let v;
6398
+ let S;
6398
6399
  this.mixTargetDelta = (w) => {
6399
- const T = w / 1e3;
6400
- Nd(c.x, i.x, T), Nd(c.y, i.y, T), this.setTargetDelta(c), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ta(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), Ov(this.relativeTarget, this.relativeTargetOrigin, d, T), v && sv(this.relativeTarget, v) && (this.isProjectionDirty = !1), v || (v = ce()), Me(v, this.relativeTarget)), h && (this.animationValues = u, cv(u, l, this.latestValues, T, S, y)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = T;
6400
+ const A = w / 1e3;
6401
+ Nd(c.x, i.x, A), Nd(c.y, i.y, A), this.setTargetDelta(c), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ta(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), Ov(this.relativeTarget, this.relativeTargetOrigin, d, A), S && sv(this.relativeTarget, S) && (this.isProjectionDirty = !1), S || (S = ce()), Me(S, this.relativeTarget)), h && (this.animationValues = u, cv(u, l, this.latestValues, A, y, v)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = A;
6401
6402
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
6402
6403
  }
6403
6404
  startAnimation(i) {
@@ -6516,13 +6517,13 @@ function nm({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
6516
6517
  for (const m in mr) {
6517
6518
  if (u[m] === void 0)
6518
6519
  continue;
6519
- const { correct: h, applyTo: E, isCSSVariable: y } = mr[m], S = c === "none" ? u[m] : h(u[m], l);
6520
+ const { correct: h, applyTo: E, isCSSVariable: v } = mr[m], y = c === "none" ? u[m] : h(u[m], l);
6520
6521
  if (E) {
6521
- const v = E.length;
6522
- for (let w = 0; w < v; w++)
6523
- i[E[w]] = S;
6522
+ const S = E.length;
6523
+ for (let w = 0; w < S; w++)
6524
+ i[E[w]] = y;
6524
6525
  } else
6525
- y ? this.options.visualElement.renderState.vars[m] = S : i[m] = S;
6526
+ v ? this.options.visualElement.renderState.vars[m] = y : i[m] = y;
6526
6527
  }
6527
6528
  this.options.layoutId && (i.pointerEvents = l === this ? zn(o?.pointerEvents) || "" : "none");
6528
6529
  }
@@ -6736,24 +6737,24 @@ function jv({ children: e, isPresent: t, anchorX: n, anchorY: a, root: r, pop: i
6736
6737
  bottom: 0
6737
6738
  }), { nonce: u } = ye(ai), c = e.props?.ref ?? e?.ref, d = Bv(s, c);
6738
6739
  return _r(() => {
6739
- const { width: p, height: m, top: h, left: E, right: y, bottom: S } = l.current;
6740
+ const { width: p, height: m, top: h, left: E, right: v, bottom: y } = l.current;
6740
6741
  if (t || i === !1 || !s.current || !p || !m)
6741
6742
  return;
6742
- const v = n === "left" ? `left: ${E}` : `right: ${y}`, w = a === "bottom" ? `bottom: ${S}` : `top: ${h}`;
6743
+ const S = n === "left" ? `left: ${E}` : `right: ${v}`, w = a === "bottom" ? `bottom: ${y}` : `top: ${h}`;
6743
6744
  s.current.dataset.motionPopId = o;
6744
- const T = document.createElement("style");
6745
- u && (T.nonce = u);
6746
- const A = r ?? document.head;
6747
- return A.appendChild(T), T.sheet && T.sheet.insertRule(`
6745
+ const A = document.createElement("style");
6746
+ u && (A.nonce = u);
6747
+ const T = r ?? document.head;
6748
+ return T.appendChild(A), A.sheet && A.sheet.insertRule(`
6748
6749
  [data-motion-pop-id="${o}"] {
6749
6750
  position: absolute !important;
6750
6751
  width: ${p}px !important;
6751
6752
  height: ${m}px !important;
6752
- ${v}px !important;
6753
+ ${S}px !important;
6753
6754
  ${w}px !important;
6754
6755
  }
6755
6756
  `), () => {
6756
- s.current?.removeAttribute("data-motion-pop-id"), A.contains(T) && A.removeChild(T);
6757
+ s.current?.removeAttribute("data-motion-pop-id"), T.contains(A) && T.removeChild(A);
6757
6758
  };
6758
6759
  }, [t]), R.jsx($v, { isPresent: t, childRef: s, sizeRef: l, pop: i, children: i === !1 ? e : aa.cloneElement(e, { ref: d }) });
6759
6760
  }
@@ -6802,37 +6803,37 @@ function Cd(e) {
6802
6803
  }), t;
6803
6804
  }
6804
6805
  const om = ({ children: e, custom: t, initial: n = !0, onExitComplete: a, presenceAffectsLayout: r = !0, mode: i = "sync", propagate: o = !1, anchorX: s = "left", anchorY: l = "top", root: u }) => {
6805
- const [c, d] = im(o), p = Ue(() => Cd(e), [e]), m = o && !c ? [] : p.map(On), h = X(!0), E = X(p), y = Or(() => /* @__PURE__ */ new Map()), S = X(/* @__PURE__ */ new Set()), [v, w] = ee(p), [T, A] = ee(p);
6806
+ const [c, d] = im(o), p = Ue(() => Cd(e), [e]), m = o && !c ? [] : p.map(On), h = X(!0), E = X(p), v = Or(() => /* @__PURE__ */ new Map()), y = X(/* @__PURE__ */ new Set()), [S, w] = ee(p), [A, T] = ee(p);
6806
6807
  Op(() => {
6807
6808
  h.current = !1, E.current = p;
6808
- for (let k = 0; k < T.length; k++) {
6809
- const N = On(T[k]);
6810
- m.includes(N) ? (y.delete(N), S.current.delete(N)) : y.get(N) !== !0 && y.set(N, !1);
6809
+ for (let k = 0; k < A.length; k++) {
6810
+ const N = On(A[k]);
6811
+ m.includes(N) ? (v.delete(N), y.current.delete(N)) : v.get(N) !== !0 && v.set(N, !1);
6811
6812
  }
6812
- }, [T, m.length, m.join("-")]);
6813
+ }, [A, m.length, m.join("-")]);
6813
6814
  const x = [];
6814
- if (p !== v) {
6815
+ if (p !== S) {
6815
6816
  let k = [...p];
6816
- for (let N = 0; N < T.length; N++) {
6817
- const _ = T[N], M = On(_);
6817
+ for (let N = 0; N < A.length; N++) {
6818
+ const _ = A[N], M = On(_);
6818
6819
  m.includes(M) || (k.splice(N, 0, _), x.push(_));
6819
6820
  }
6820
- return i === "wait" && x.length && (k = x), A(Cd(k)), w(p), null;
6821
+ return i === "wait" && x.length && (k = x), T(Cd(k)), w(p), null;
6821
6822
  }
6822
- process.env.NODE_ENV !== "production" && i === "wait" && T.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
6823
+ process.env.NODE_ENV !== "production" && i === "wait" && A.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
6823
6824
  const { forceRender: C } = ye(Cr);
6824
- return R.jsx(R.Fragment, { children: T.map((k) => {
6825
- const N = On(k), _ = o && !c ? !1 : p === T || m.includes(N), M = () => {
6826
- if (S.current.has(N))
6825
+ return R.jsx(R.Fragment, { children: A.map((k) => {
6826
+ const N = On(k), _ = o && !c ? !1 : p === A || m.includes(N), M = () => {
6827
+ if (y.current.has(N))
6827
6828
  return;
6828
- if (y.has(N))
6829
- S.current.add(N), y.set(N, !0);
6829
+ if (v.has(N))
6830
+ y.current.add(N), v.set(N, !0);
6830
6831
  else
6831
6832
  return;
6832
6833
  let F = !0;
6833
- y.forEach((D) => {
6834
+ v.forEach((D) => {
6834
6835
  D || (F = !1);
6835
- }), F && (C?.(), A(E.current), o && d?.(), a && a());
6836
+ }), F && (C?.(), T(E.current), o && d?.(), a && a());
6836
6837
  };
6837
6838
  return R.jsx(Gv, { isPresent: _, initial: !h.current || n ? void 0 : !1, custom: t, presenceAffectsLayout: r, mode: i, root: u, onExitComplete: _ ? void 0 : M, anchorX: s, anchorY: l, children: k }, N);
6838
6839
  }) });
@@ -7065,17 +7066,17 @@ function rw(e, t, n, a) {
7065
7066
  for (let m = 0; m < p.length; m++) {
7066
7067
  const h = qr(e, p[m]);
7067
7068
  if (h) {
7068
- const { transitionEnd: E, transition: y, ...S } = h;
7069
- for (const v in S) {
7070
- let w = S[v];
7069
+ const { transitionEnd: E, transition: v, ...y } = h;
7070
+ for (const S in y) {
7071
+ let w = y[S];
7071
7072
  if (Array.isArray(w)) {
7072
- const T = c ? w.length - 1 : 0;
7073
- w = w[T];
7073
+ const A = c ? w.length - 1 : 0;
7074
+ w = w[A];
7074
7075
  }
7075
- w !== null && (r[v] = w);
7076
+ w !== null && (r[S] = w);
7076
7077
  }
7077
- for (const v in E)
7078
- r[v] = E[v];
7078
+ for (const S in E)
7079
+ r[S] = E[S];
7079
7080
  }
7080
7081
  }
7081
7082
  }
@@ -7127,17 +7128,17 @@ function uw(e, t, n, a, r, i) {
7127
7128
  }), m.current && p.current && (p.current.manuallyAnimateOnMount = !0));
7128
7129
  const h = p.current, E = ye(gm);
7129
7130
  h && !h.projection && r && (h.type === "html" || h.type === "svg") && cw(p.current, n, r, E);
7130
- const y = X(!1);
7131
+ const v = X(!1);
7131
7132
  _r(() => {
7132
- h && y.current && h.update(n, l);
7133
+ h && v.current && h.update(n, l);
7133
7134
  });
7134
- const S = n[Sg], v = X(!!S && typeof window < "u" && !window.MotionHandoffIsComplete?.(S) && window.MotionHasOptimisedAnimation?.(S));
7135
+ const y = n[Sg], S = X(!!y && typeof window < "u" && !window.MotionHandoffIsComplete?.(y) && window.MotionHasOptimisedAnimation?.(y));
7135
7136
  return Op(() => {
7136
- m.current = !0, h && (y.current = !0, window.MotionIsMounted = !0, h.updateFeatures(), h.scheduleRenderMicrotask(), v.current && h.animationState && h.animationState.animateChanges());
7137
+ m.current = !0, h && (v.current = !0, window.MotionIsMounted = !0, h.updateFeatures(), h.scheduleRenderMicrotask(), S.current && h.animationState && h.animationState.animateChanges());
7137
7138
  }), se(() => {
7138
- h && (!v.current && h.animationState && h.animationState.animateChanges(), v.current && (queueMicrotask(() => {
7139
- window.MotionHandoffMarkAsComplete?.(S);
7140
- }), v.current = !1), h.enteringChildren = void 0);
7139
+ h && (!S.current && h.animationState && h.animationState.animateChanges(), S.current && (queueMicrotask(() => {
7140
+ window.MotionHandoffMarkAsComplete?.(y);
7141
+ }), S.current = !1), h.enteringChildren = void 0);
7141
7142
  }), h;
7142
7143
  }
7143
7144
  function cw(e, t, n, a) {
@@ -7178,8 +7179,8 @@ function Ba(e, { forwardMotionProps: t = !1, type: n } = {}, a, r) {
7178
7179
  }, { isStatic: m } = p, h = Xv(u), E = o(u, m);
7179
7180
  if (!m && typeof window < "u") {
7180
7181
  pw(p, a);
7181
- const y = gw(p);
7182
- d = y.MeasureLayout, h.visualElement = uw(e, E, p, r, y.ProjectionNode, i);
7182
+ const v = gw(p);
7183
+ d = v.MeasureLayout, h.visualElement = uw(e, E, p, r, v.ProjectionNode, i);
7183
7184
  }
7184
7185
  return R.jsxs(ca.Provider, { value: h, children: [d && h.visualElement ? R.jsx(d, { visualElement: h.visualElement, ...p }) : null, nw(e, u, lw(E, h.visualElement, c), E, m, t, i)] });
7185
7186
  }
@@ -7330,19 +7331,19 @@ class hm {
7330
7331
  const m = $a(this.lastMoveEventInfo, this.history), h = this.startEvent !== null, E = vw(m.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
7331
7332
  if (!h && !E)
7332
7333
  return;
7333
- const { point: y } = m, { timestamp: S } = me;
7334
- this.history.push({ ...y, timestamp: S });
7335
- const { onStart: v, onMove: w } = this.handlers;
7336
- h || (v && v(this.lastMoveEvent, m), this.startEvent = this.lastMoveEvent), w && w(this.lastMoveEvent, m);
7334
+ const { point: v } = m, { timestamp: y } = me;
7335
+ this.history.push({ ...v, timestamp: y });
7336
+ const { onStart: S, onMove: w } = this.handlers;
7337
+ h || (S && S(this.lastMoveEvent, m), this.startEvent = this.lastMoveEvent), w && w(this.lastMoveEvent, m);
7337
7338
  }, this.handlePointerMove = (m, h) => {
7338
7339
  this.lastMoveEvent = m, this.lastRawMoveEventInfo = h, this.lastMoveEventInfo = Ln(h, this.transformPagePoint), ne.update(this.updatePoint, !0);
7339
7340
  }, this.handlePointerUp = (m, h) => {
7340
7341
  this.end();
7341
- const { onEnd: E, onSessionEnd: y, resumeAnimation: S } = this.handlers;
7342
- if ((this.dragSnapToOrigin || !this.startEvent) && S && S(), !(this.lastMoveEvent && this.lastMoveEventInfo))
7342
+ const { onEnd: E, onSessionEnd: v, resumeAnimation: y } = this.handlers;
7343
+ if ((this.dragSnapToOrigin || !this.startEvent) && y && y(), !(this.lastMoveEvent && this.lastMoveEventInfo))
7343
7344
  return;
7344
- const v = $a(m.type === "pointercancel" ? this.lastMoveEventInfo : Ln(h, this.transformPagePoint), this.history);
7345
- this.startEvent && E && E(m, v), y && y(m, v);
7345
+ const S = $a(m.type === "pointercancel" ? this.lastMoveEventInfo : Ln(h, this.transformPagePoint), this.history);
7346
+ this.startEvent && E && E(m, S), v && v(m, S);
7346
7347
  }, !Zr(t))
7347
7348
  return;
7348
7349
  this.dragSnapToOrigin = i, this.handlers = n, this.transformPagePoint = a, this.distanceThreshold = o, this.contextWindow = r || window;
@@ -7501,30 +7502,30 @@ class Cw {
7501
7502
  const { drag: m, dragPropagation: h, onDragStart: E } = this.getProps();
7502
7503
  if (m && !h && (this.openDragLock && this.openDragLock(), this.openDragLock = rS(m), !this.openDragLock))
7503
7504
  return;
7504
- this.latestPointerEvent = d, this.latestPanInfo = p, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), ze((S) => {
7505
- let v = this.getAxisMotionValue(S).get() || 0;
7506
- if (He.test(v)) {
7505
+ this.latestPointerEvent = d, this.latestPanInfo = p, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), ze((y) => {
7506
+ let S = this.getAxisMotionValue(y).get() || 0;
7507
+ if (He.test(S)) {
7507
7508
  const { projection: w } = this.visualElement;
7508
7509
  if (w && w.layout) {
7509
- const T = w.layout.layoutBox[S];
7510
- T && (v = _e(T) * (parseFloat(v) / 100));
7510
+ const A = w.layout.layoutBox[y];
7511
+ A && (S = _e(A) * (parseFloat(S) / 100));
7511
7512
  }
7512
7513
  }
7513
- this.originPoint[S] = v;
7514
+ this.originPoint[y] = S;
7514
7515
  }), E && ne.update(() => E(d, p), !1, !0), sr(this.visualElement, "transform");
7515
- const { animationState: y } = this.visualElement;
7516
- y && y.setActive("whileDrag", !0);
7516
+ const { animationState: v } = this.visualElement;
7517
+ v && v.setActive("whileDrag", !0);
7517
7518
  }, s = (d, p) => {
7518
7519
  this.latestPointerEvent = d, this.latestPanInfo = p;
7519
- const { dragPropagation: m, dragDirectionLock: h, onDirectionLock: E, onDrag: y } = this.getProps();
7520
+ const { dragPropagation: m, dragDirectionLock: h, onDirectionLock: E, onDrag: v } = this.getProps();
7520
7521
  if (!m && !this.openDragLock)
7521
7522
  return;
7522
- const { offset: S } = p;
7523
+ const { offset: y } = p;
7523
7524
  if (h && this.currentDirection === null) {
7524
- this.currentDirection = Lw(S), this.currentDirection !== null && E && E(this.currentDirection);
7525
+ this.currentDirection = Lw(y), this.currentDirection !== null && E && E(this.currentDirection);
7525
7526
  return;
7526
7527
  }
7527
- this.updateAxis("x", p.point, S), this.updateAxis("y", p.point, S), this.visualElement.render(), y && ne.update(() => y(d, p), !1, !0);
7528
+ this.updateAxis("x", p.point, y), this.updateAxis("y", p.point, y), this.visualElement.render(), v && ne.update(() => v(d, p), !1, !0);
7528
7529
  }, l = (d, p) => {
7529
7530
  this.latestPointerEvent = d, this.latestPanInfo = p, this.stop(d, p), this.latestPointerEvent = null, this.latestPanInfo = null;
7530
7531
  }, u = () => {
@@ -8008,30 +8009,30 @@ const Yw = {
8008
8009
  style: c,
8009
8010
  menuStyle: d
8010
8011
  }, p) {
8011
- const [m, h] = ee(!1), [E, y] = ee({ top: 0, left: 0 }), [S, v] = ee("bottom"), w = n !== void 0, T = w ? n : m, A = X(null), x = X(null), C = (N) => {
8012
+ const [m, h] = ee(!1), [E, v] = ee({ top: 0, left: 0 }), [y, S] = ee("bottom"), w = n !== void 0, A = w ? n : m, T = X(null), x = X(null), C = (N) => {
8012
8013
  w || h(N), a?.(N);
8013
8014
  };
8014
8015
  se(() => {
8015
8016
  const N = (_) => {
8016
- A.current && !A.current.contains(_.target) && C(!1);
8017
+ T.current && !T.current.contains(_.target) && C(!1);
8017
8018
  };
8018
8019
  return document.addEventListener("mousedown", N), () => {
8019
8020
  document.removeEventListener("mousedown", N);
8020
8021
  };
8021
8022
  }, []), Nr(() => {
8022
- if (!T || !A.current || !x.current) return;
8023
+ if (!A || !T.current || !x.current) return;
8023
8024
  const N = () => {
8024
- const _ = A.current.getBoundingClientRect(), M = x.current.offsetHeight, F = window.innerHeight - _.bottom, D = _.top, U = F < M + 10 && D > M, L = U ? _.top - M - 8 : _.bottom + 8;
8025
+ const _ = T.current.getBoundingClientRect(), M = x.current.offsetHeight, F = window.innerHeight - _.bottom, D = _.top, U = F < M + 10 && D > M, L = U ? _.top - M - 8 : _.bottom + 8;
8025
8026
  let B = r === "right" ? _.right - i : _.left;
8026
8027
  const G = window.innerWidth - i - 8;
8027
- B = Math.max(8, Math.min(B, G)), v(U ? "top" : "bottom"), y({ top: L, left: B });
8028
+ B = Math.max(8, Math.min(B, G)), S(U ? "top" : "bottom"), v({ top: L, left: B });
8028
8029
  };
8029
8030
  return N(), window.addEventListener("scroll", N, !0), window.addEventListener("resize", N), () => {
8030
8031
  window.removeEventListener("scroll", N, !0), window.removeEventListener("resize", N);
8031
8032
  };
8032
- }, [T, r, i]);
8033
+ }, [A, r, i]);
8033
8034
  const k = (N) => {
8034
- A.current = N, typeof p == "function" ? p(N) : p && (p.current = N);
8035
+ T.current = N, typeof p == "function" ? p(N) : p && (p.current = N);
8035
8036
  };
8036
8037
  return /* @__PURE__ */ R.jsxs(
8037
8038
  "div",
@@ -8045,18 +8046,18 @@ const Yw = {
8045
8046
  {
8046
8047
  className: "flex",
8047
8048
  onClick: (N) => {
8048
- N.stopPropagation(), C(!T);
8049
+ N.stopPropagation(), C(!A);
8049
8050
  },
8050
8051
  children: e
8051
8052
  }
8052
8053
  ),
8053
- /* @__PURE__ */ R.jsx(om, { children: T && /* @__PURE__ */ R.jsx(
8054
+ /* @__PURE__ */ R.jsx(om, { children: A && /* @__PURE__ */ R.jsx(
8054
8055
  Em.div,
8055
8056
  {
8056
8057
  ref: x,
8057
8058
  initial: {
8058
8059
  opacity: 0,
8059
- y: S === "bottom" ? 8 : -8,
8060
+ y: y === "bottom" ? 8 : -8,
8060
8061
  scale: 0.96
8061
8062
  },
8062
8063
  animate: {
@@ -8066,7 +8067,7 @@ const Yw = {
8066
8067
  },
8067
8068
  exit: {
8068
8069
  opacity: 0,
8069
- y: S === "bottom" ? 8 : -8,
8070
+ y: y === "bottom" ? 8 : -8,
8070
8071
  scale: 0.96
8071
8072
  },
8072
8073
  transition: {
@@ -8145,12 +8146,12 @@ const Qw = ln(
8145
8146
  contentWrapperClassName: m,
8146
8147
  contentWrapperStyle: h,
8147
8148
  contentClassName: E,
8148
- contentStyle: y,
8149
- hoverClassName: S,
8150
- hoverStyle: v,
8149
+ contentStyle: v,
8150
+ hoverClassName: y,
8151
+ hoverStyle: S,
8151
8152
  borderColor: w = "var(--border)",
8152
- radius: T = "0.5rem",
8153
- shadow: A = "none",
8153
+ radius: A = "0.5rem",
8154
+ shadow: T = "none",
8154
8155
  duration: x = 300,
8155
8156
  iconOpen: C,
8156
8157
  iconClose: k,
@@ -8197,14 +8198,14 @@ const Qw = ln(
8197
8198
  onClick: () => D(L),
8198
8199
  className: V(
8199
8200
  s,
8200
- S,
8201
+ y,
8201
8202
  "w-full flex items-center justify-between",
8202
8203
  "px-4 py-3.5 text-left transition-colors",
8203
8204
  "hover:bg-accent"
8204
8205
  ),
8205
8206
  style: {
8206
8207
  ...l,
8207
- ...v
8208
+ ...S
8208
8209
  },
8209
8210
  children: [
8210
8211
  /* @__PURE__ */ R.jsx(
@@ -8251,7 +8252,7 @@ const Qw = ln(
8251
8252
  E,
8252
8253
  "px-4 py-3.5 text-sm border-t border-border text-accent-foreground bg-background"
8253
8254
  ),
8254
- style: y,
8255
+ style: v,
8255
8256
  children: U.content
8256
8257
  }
8257
8258
  )
@@ -8283,12 +8284,12 @@ const oi = Be((e, t) => {
8283
8284
  helperText: m,
8284
8285
  multiple: h = !1,
8285
8286
  showDescription: E = !1,
8286
- showCheckIcon: y = !0,
8287
- labelIcon: S,
8288
- prefixIcon: v,
8287
+ showCheckIcon: v = !0,
8288
+ labelIcon: y,
8289
+ prefixIcon: S,
8289
8290
  dropdownIcon: w = Cp,
8290
- searchClassName: T,
8291
- searchStyle: A,
8291
+ searchClassName: A,
8292
+ searchStyle: T,
8292
8293
  searchPlaceholder: x,
8293
8294
  searchable: C = !1,
8294
8295
  size: k = "md",
@@ -8450,21 +8451,21 @@ const oi = Be((e, t) => {
8450
8451
  F
8451
8452
  ),
8452
8453
  children: [
8453
- S && /* @__PURE__ */ R.jsx(S, { className: "w-4 h-4 shrink-0" }),
8454
+ y && /* @__PURE__ */ R.jsx(y, { className: "w-4 h-4 shrink-0" }),
8454
8455
  n,
8455
8456
  u && /* @__PURE__ */ R.jsx("span", { className: "text-destructive", children: "*" })
8456
8457
  ]
8457
8458
  }
8458
8459
  ),
8459
8460
  /* @__PURE__ */ R.jsxs("div", { className: "relative", children: [
8460
- v && /* @__PURE__ */ R.jsx(
8461
+ S && /* @__PURE__ */ R.jsx(
8461
8462
  "div",
8462
8463
  {
8463
8464
  className: V(
8464
8465
  "pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",
8465
8466
  G
8466
8467
  ),
8467
- children: /* @__PURE__ */ R.jsx(v, { className: yt[k].icon })
8468
+ children: /* @__PURE__ */ R.jsx(S, { className: yt[k].icon })
8468
8469
  }
8469
8470
  ),
8470
8471
  /* @__PURE__ */ R.jsxs(
@@ -8486,7 +8487,7 @@ const oi = Be((e, t) => {
8486
8487
  "rounded-lg transition-all outline-none",
8487
8488
  "border border-border bg-input/30 text-foreground",
8488
8489
  "hover:bg-accent/10",
8489
- v && "pl-9",
8490
+ S && "pl-9",
8490
8491
  c && "opacity-50 cursor-not-allowed pointer-events-none",
8491
8492
  Ta && "border-destructive focus:ring-destructive",
8492
8493
  p && "border-success focus:ring-success",
@@ -8567,9 +8568,9 @@ const oi = Be((e, t) => {
8567
8568
  className: V(
8568
8569
  "w-full px-2 py-1.5 text-sm rounded-md outline-none",
8569
8570
  "bg-background border border-border text-foreground",
8570
- T
8571
+ A
8571
8572
  ),
8572
- style: A
8573
+ style: T
8573
8574
  }
8574
8575
  ) }),
8575
8576
  /* @__PURE__ */ R.jsx(
@@ -8613,7 +8614,7 @@ const oi = Be((e, t) => {
8613
8614
  ] }),
8614
8615
  E && j.description && /* @__PURE__ */ R.jsx("span", { className: "text-xs text-muted-foreground mt-0.5", children: j.description })
8615
8616
  ] }),
8616
- y && xe && /* @__PURE__ */ R.jsx("div", { children: /* @__PURE__ */ R.jsx(
8617
+ v && xe && /* @__PURE__ */ R.jsx("div", { children: /* @__PURE__ */ R.jsx(
8617
8618
  Fb,
8618
8619
  {
8619
8620
  className: V(
@@ -8670,12 +8671,12 @@ const Ze = Be(function(e, t) {
8670
8671
  required: m,
8671
8672
  disabled: h,
8672
8673
  readOnly: E,
8673
- error: y,
8674
- success: S,
8675
- helperText: v,
8674
+ error: v,
8675
+ success: y,
8676
+ helperText: S,
8676
8677
  icon: w,
8677
- prefix: T,
8678
- prefixIcon: A,
8678
+ prefix: A,
8679
+ prefixIcon: T,
8679
8680
  suffixIcon: x,
8680
8681
  min: C,
8681
8682
  max: k,
@@ -8695,7 +8696,7 @@ const Ze = Be(function(e, t) {
8695
8696
  labelStyle: I
8696
8697
  } = e, $ = X(null);
8697
8698
  op(t, () => $.current);
8698
- const [H, ve] = ee(u || ""), [be, W] = ee(!1), ie = !!A, de = !!T, $e = ie || de, it = l !== void 0 ? l : H, vn = (Te) => {
8699
+ const [H, ve] = ee(u || ""), [be, W] = ee(!1), ie = !!T, de = !!A, $e = ie || de, it = l !== void 0 ? l : H, vn = (Te) => {
8699
8700
  l === void 0 && ve(Te.target.value), c?.(Te);
8700
8701
  }, we = (Te) => {
8701
8702
  i === "number" && Te.key === "-" && !Te.metaKey && !Te.ctrlKey && Te.preventDefault();
@@ -8747,8 +8748,8 @@ const Ze = Be(function(e, t) {
8747
8748
  G
8748
8749
  ),
8749
8750
  children: [
8750
- A && /* @__PURE__ */ R.jsx(A, { size: 16, strokeWidth: 1.5 }),
8751
- de && /* @__PURE__ */ R.jsx("span", { className: "text-xs font-medium", children: T })
8751
+ T && /* @__PURE__ */ R.jsx(T, { size: 16, strokeWidth: 1.5 }),
8752
+ de && /* @__PURE__ */ R.jsx("span", { className: "text-xs font-medium", children: A })
8752
8753
  ]
8753
8754
  }
8754
8755
  ),
@@ -8771,8 +8772,8 @@ const Ze = Be(function(e, t) {
8771
8772
  className: V(
8772
8773
  wn,
8773
8774
  "px-4 py-2 resize-none",
8774
- y && "border-destructive focus-visible:ring-destructive/50",
8775
- S && "border-emerald-500 focus-visible:ring-emerald-500/50",
8775
+ v && "border-destructive focus-visible:ring-destructive/50",
8776
+ y && "border-emerald-500 focus-visible:ring-emerald-500/50",
8776
8777
  B
8777
8778
  )
8778
8779
  }
@@ -8799,8 +8800,8 @@ const Ze = Be(function(e, t) {
8799
8800
  className: V(
8800
8801
  wn,
8801
8802
  jt(),
8802
- y && "border-destructive focus-visible:ring-destructive/50",
8803
- S && "border-emerald-500 focus-visible:ring-emerald-500/50",
8803
+ v && "border-destructive focus-visible:ring-destructive/50",
8804
+ y && "border-emerald-500 focus-visible:ring-emerald-500/50",
8804
8805
  L
8805
8806
  )
8806
8807
  }
@@ -8830,16 +8831,16 @@ const Ze = Be(function(e, t) {
8830
8831
  }
8831
8832
  )
8832
8833
  ] }),
8833
- (v || y) && /* @__PURE__ */ R.jsx(
8834
+ (S || v) && /* @__PURE__ */ R.jsx(
8834
8835
  "p",
8835
8836
  {
8836
- role: y ? "alert" : void 0,
8837
+ role: v ? "alert" : void 0,
8837
8838
  className: V(
8838
8839
  "text-xs font-medium",
8839
- y ? "text-destructive" : S ? "text-emerald-600" : "text-muted-foreground",
8840
+ v ? "text-destructive" : y ? "text-emerald-600" : "text-muted-foreground",
8840
8841
  z
8841
8842
  ),
8842
- children: y && typeof y == "string" ? y : v
8843
+ children: v && typeof v == "string" ? v : S
8843
8844
  }
8844
8845
  )
8845
8846
  ]
@@ -8863,12 +8864,12 @@ const Ze = Be(function(e, t) {
8863
8864
  minRows: m = 3,
8864
8865
  maxRows: h = 6,
8865
8866
  submitOnEnter: E,
8866
- onSubmit: y,
8867
- className: S = "",
8868
- containerClassName: v = "",
8867
+ onSubmit: v,
8868
+ className: y = "",
8869
+ containerClassName: S = "",
8869
8870
  labelClassName: w = "",
8870
- helperClassName: T = "",
8871
- countClassName: A = "",
8871
+ helperClassName: A = "",
8872
+ countClassName: T = "",
8872
8873
  style: x,
8873
8874
  containerStyle: C,
8874
8875
  labelStyle: k,
@@ -8892,12 +8893,12 @@ const Ze = Be(function(e, t) {
8892
8893
  L();
8893
8894
  }, [a]);
8894
8895
  const B = (z) => {
8895
- E && z.key === "Enter" && !z.shiftKey && (z.preventDefault(), y?.());
8896
+ E && z.key === "Enter" && !z.shiftKey && (z.preventDefault(), v?.());
8896
8897
  }, G = typeof a == "string" ? a.length : D.current?.value?.length || 0, Y = typeof d == "number" && d > 0;
8897
8898
  return /* @__PURE__ */ R.jsxs(
8898
8899
  "div",
8899
8900
  {
8900
- className: `w-full space-y-1.5 ${v}`,
8901
+ className: `w-full space-y-1.5 ${S}`,
8901
8902
  style: C,
8902
8903
  children: [
8903
8904
  e && /* @__PURE__ */ R.jsxs(
@@ -8948,7 +8949,7 @@ const Ze = Be(function(e, t) {
8948
8949
  ${l ? "border-destructive focus:ring-destructive/20" : ""}
8949
8950
  ${u ? "border-primary" : ""}
8950
8951
 
8951
- ${S}
8952
+ ${y}
8952
8953
  `,
8953
8954
  style: {
8954
8955
  ...x
@@ -8959,7 +8960,7 @@ const Ze = Be(function(e, t) {
8959
8960
  Y && /* @__PURE__ */ R.jsxs(
8960
8961
  "span",
8961
8962
  {
8962
- className: `absolute bottom-3 right-3 text-[11px] text-accent-foreground ${A}`,
8963
+ className: `absolute bottom-3 right-3 text-[11px] text-accent-foreground ${T}`,
8963
8964
  style: _,
8964
8965
  children: [
8965
8966
  G,
@@ -8972,7 +8973,7 @@ const Ze = Be(function(e, t) {
8972
8973
  c && /* @__PURE__ */ R.jsx(
8973
8974
  "p",
8974
8975
  {
8975
- className: `text-xs ${l ? "text-destructive" : u ? "text-primary" : "text-muted-foreground"} ${T}`,
8976
+ className: `text-xs ${l ? "text-destructive" : u ? "text-primary" : "text-muted-foreground"} ${A}`,
8976
8977
  style: N,
8977
8978
  children: c
8978
8979
  }
@@ -9709,23 +9710,23 @@ const rT = ({
9709
9710
  o || u(JSON.stringify(e, null, 2));
9710
9711
  }, [e, o]);
9711
9712
  const h = (w) => {
9712
- const T = ph(w);
9713
- T && t && t((A) => [...A, T]);
9714
- }, E = (w, T) => {
9713
+ const A = ph(w);
9714
+ A && t && t((T) => [...T, A]);
9715
+ }, E = (w, A) => {
9715
9716
  t && t(
9716
- (A) => A.map(
9717
- (x) => x.id === w ? { ...x, ...T } : x
9717
+ (T) => T.map(
9718
+ (x) => x.id === w ? { ...x, ...A } : x
9718
9719
  )
9719
9720
  );
9720
- }, y = (w) => {
9721
- t && t((T) => T.filter((A) => A.id !== w));
9722
- }, S = async () => {
9721
+ }, v = (w) => {
9722
+ t && t((A) => A.filter((T) => T.id !== w));
9723
+ }, y = async () => {
9723
9724
  try {
9724
9725
  await navigator.clipboard.writeText(JSON.stringify(e, null, 2));
9725
9726
  } catch (w) {
9726
9727
  console.error(w);
9727
9728
  }
9728
- }, v = () => {
9729
+ }, S = () => {
9729
9730
  try {
9730
9731
  const w = JSON.parse(l);
9731
9732
  if (!Array.isArray(w)) {
@@ -9848,7 +9849,7 @@ const rT = ({
9848
9849
  /* @__PURE__ */ f.jsxs(
9849
9850
  "button",
9850
9851
  {
9851
- onClick: S,
9852
+ onClick: y,
9852
9853
  className: `
9853
9854
  flex
9854
9855
  items-center
@@ -9874,7 +9875,7 @@ const rT = ({
9874
9875
  o && /* @__PURE__ */ f.jsxs(
9875
9876
  "button",
9876
9877
  {
9877
- onClick: v,
9878
+ onClick: S,
9878
9879
  className: `
9879
9880
  flex
9880
9881
  items-center
@@ -9984,19 +9985,19 @@ const rT = ({
9984
9985
  ]
9985
9986
  }
9986
9987
  ),
9987
- !r && /* @__PURE__ */ f.jsx("div", { className: "space-y-6", children: e.map((w, T) => /* @__PURE__ */ f.jsx(
9988
+ !r && /* @__PURE__ */ f.jsx("div", { className: "space-y-6", children: e.map((w, A) => /* @__PURE__ */ f.jsx(
9988
9989
  "div",
9989
9990
  {
9990
- ref: T === e.length - 1 ? p : null,
9991
+ ref: A === e.length - 1 ? p : null,
9991
9992
  children: /* @__PURE__ */ f.jsxs("div", { className: "pt-2", children: [
9992
9993
  w.type === "text" && /* @__PURE__ */ f.jsx(
9993
9994
  gh,
9994
9995
  {
9995
9996
  value: w.content,
9996
- onChange: (A) => E(w.id, {
9997
- content: A
9997
+ onChange: (T) => E(w.id, {
9998
+ content: T
9998
9999
  }),
9999
- onDelete: () => y(w.id),
10000
+ onDelete: () => v(w.id),
10000
10001
  placeholder: "Write paragraph..."
10001
10002
  }
10002
10003
  ),
@@ -10005,21 +10006,21 @@ const rT = ({
10005
10006
  {
10006
10007
  value: w.content,
10007
10008
  level: w.level || "h1",
10008
- onChange: (A) => E(w.id, {
10009
- content: A
10009
+ onChange: (T) => E(w.id, {
10010
+ content: T
10010
10011
  }),
10011
- onLevelChange: (A) => E(w.id, {
10012
- level: A
10012
+ onLevelChange: (T) => E(w.id, {
10013
+ level: T
10013
10014
  }),
10014
- onDelete: () => y(w.id)
10015
+ onDelete: () => v(w.id)
10015
10016
  }
10016
10017
  ),
10017
10018
  w.type === "image" && /* @__PURE__ */ f.jsx(
10018
10019
  oT,
10019
10020
  {
10020
10021
  value: w,
10021
- onChange: (A) => E(w.id, A),
10022
- onDelete: () => y(w.id)
10022
+ onChange: (T) => E(w.id, T),
10023
+ onDelete: () => v(w.id)
10023
10024
  }
10024
10025
  ),
10025
10026
  w.type === "code" && /* @__PURE__ */ f.jsx(
@@ -10027,13 +10028,13 @@ const rT = ({
10027
10028
  {
10028
10029
  value: w.content,
10029
10030
  language: w.language || "javascript",
10030
- onChange: (A) => E(w.id, {
10031
- content: A
10031
+ onChange: (T) => E(w.id, {
10032
+ content: T
10032
10033
  }),
10033
- onLanguageChange: (A) => E(w.id, {
10034
- language: A
10034
+ onLanguageChange: (T) => E(w.id, {
10035
+ language: T
10035
10036
  }),
10036
- onDelete: () => y(w.id)
10037
+ onDelete: () => v(w.id)
10037
10038
  }
10038
10039
  ),
10039
10040
  w.type === "table" && /* @__PURE__ */ f.jsx(
@@ -10041,11 +10042,11 @@ const rT = ({
10041
10042
  {
10042
10043
  headers: w.headers,
10043
10044
  rows: w.rows,
10044
- onChange: ({ headers: A, rows: x }) => E(w.id, {
10045
- headers: A,
10045
+ onChange: ({ headers: T, rows: x }) => E(w.id, {
10046
+ headers: T,
10046
10047
  rows: x
10047
10048
  }),
10048
- onDelete: () => y(w.id)
10049
+ onDelete: () => v(w.id)
10049
10050
  }
10050
10051
  )
10051
10052
  ] })
@@ -10230,22 +10231,22 @@ function wm(e) {
10230
10231
  className: qd(s.className)
10231
10232
  });
10232
10233
  else {
10233
- var m = Object.keys(n).reduce(function(S, v) {
10234
- return v.split(".").forEach(function(w) {
10235
- S.includes(w) || S.push(w);
10236
- }), S;
10237
- }, []), h = s.className && s.className.includes("token") ? ["token"] : [], E = s.className && h.concat(s.className.filter(function(S) {
10238
- return !m.includes(S);
10234
+ var m = Object.keys(n).reduce(function(y, S) {
10235
+ return S.split(".").forEach(function(w) {
10236
+ y.includes(w) || y.push(w);
10237
+ }), y;
10238
+ }, []), h = s.className && s.className.includes("token") ? ["token"] : [], E = s.className && h.concat(s.className.filter(function(y) {
10239
+ return !m.includes(y);
10239
10240
  }));
10240
10241
  p = _t(_t({}, s), {}, {
10241
10242
  className: qd(E) || void 0,
10242
10243
  style: bT(s.className, Object.assign({}, s.style, r), n)
10243
10244
  });
10244
10245
  }
10245
- var y = d(t.children);
10246
+ var v = d(t.children);
10246
10247
  return /* @__PURE__ */ te.createElement(u, Sr({
10247
10248
  key: o
10248
- }, p), y);
10249
+ }, p), v);
10249
10250
  }
10250
10251
  }
10251
10252
  const ET = (function(e, t) {
@@ -10368,10 +10369,10 @@ function Nm(e) {
10368
10369
  }
10369
10370
  function _T(e, t, n, a, r, i, o, s, l) {
10370
10371
  var u, c = Nm(e.value), d = [], p = -1, m = 0;
10371
- function h(A, x) {
10372
+ function h(T, x) {
10372
10373
  var C = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
10373
10374
  return Hn({
10374
- children: A,
10375
+ children: T,
10375
10376
  lineNumber: x,
10376
10377
  lineNumberStyle: s,
10377
10378
  largestLineNumber: o,
@@ -10383,18 +10384,18 @@ function _T(e, t, n, a, r, i, o, s, l) {
10383
10384
  wrapLines: t
10384
10385
  });
10385
10386
  }
10386
- function E(A, x) {
10387
+ function E(T, x) {
10387
10388
  if (a && x && r) {
10388
10389
  var C = Am(s, x, o);
10389
- A.unshift(Tm(x, C));
10390
+ T.unshift(Tm(x, C));
10390
10391
  }
10391
- return A;
10392
+ return T;
10392
10393
  }
10393
- function y(A, x) {
10394
+ function v(T, x) {
10394
10395
  var C = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
10395
- return t || C.length > 0 ? h(A, x, C) : E(A, x);
10396
+ return t || C.length > 0 ? h(T, x, C) : E(T, x);
10396
10397
  }
10397
- for (var S = function() {
10398
+ for (var y = function() {
10398
10399
  var x = c[m], C = x.children[0].value, k = wT(C);
10399
10400
  if (k) {
10400
10401
  var N = C.split(`
@@ -10409,7 +10410,7 @@ function _T(e, t, n, a, r, i, o, s, l) {
10409
10410
  var U = c.slice(p + 1, m).concat(Hn({
10410
10411
  children: [D],
10411
10412
  className: x.properties.className
10412
- })), L = y(U, F);
10413
+ })), L = v(U, F);
10413
10414
  d.push(L);
10414
10415
  } else if (M === N.length - 1) {
10415
10416
  var B = c[m + 1] && c[m + 1].children && c[m + 1].children[0], G = {
@@ -10423,23 +10424,23 @@ function _T(e, t, n, a, r, i, o, s, l) {
10423
10424
  });
10424
10425
  c.splice(m + 1, 0, Y);
10425
10426
  } else {
10426
- var z = [G], q = y(z, F, x.properties.className);
10427
+ var z = [G], q = v(z, F, x.properties.className);
10427
10428
  d.push(q);
10428
10429
  }
10429
10430
  } else {
10430
- var b = [D], I = y(b, F, x.properties.className);
10431
+ var b = [D], I = v(b, F, x.properties.className);
10431
10432
  d.push(I);
10432
10433
  }
10433
10434
  }), p = m;
10434
10435
  }
10435
10436
  m++;
10436
10437
  }; m < c.length; )
10437
- S();
10438
+ y();
10438
10439
  if (p !== c.length - 1) {
10439
- var v = c.slice(p + 1, c.length);
10440
- if (v && v.length) {
10441
- var w = a && d.length + i, T = y(v, w);
10442
- d.push(T);
10440
+ var S = c.slice(p + 1, c.length);
10441
+ if (S && S.length) {
10442
+ var w = a && d.length + i, A = v(S, w);
10443
+ d.push(A);
10443
10444
  }
10444
10445
  }
10445
10446
  return t ? d : (u = []).concat.apply(u, d);
@@ -10484,13 +10485,13 @@ function RT(e, t) {
10484
10485
  var r, i, o = a.language, s = a.children, l = a.style, u = l === void 0 ? t : l, c = a.customStyle, d = c === void 0 ? {} : c, p = a.codeTagProps, m = p === void 0 ? {
10485
10486
  className: o ? "language-".concat(o) : void 0,
10486
10487
  style: Je(Je({}, u['code[class*="language-"]']), u['code[class*="language-'.concat(o, '"]')])
10487
- } : p, h = a.useInlineStyles, E = h === void 0 ? !0 : h, y = a.showLineNumbers, S = y === void 0 ? !1 : y, v = a.showInlineLineNumbers, w = v === void 0 ? !0 : v, T = a.startingLineNumber, A = T === void 0 ? 1 : T, x = a.lineNumberContainerStyle, C = a.lineNumberStyle, k = C === void 0 ? {} : C, N = a.wrapLines, _ = a.wrapLongLines, M = _ === void 0 ? !1 : _, F = a.lineProps, D = F === void 0 ? {} : F, U = a.renderer, L = a.PreTag, B = L === void 0 ? "pre" : L, G = a.CodeTag, Y = G === void 0 ? "code" : G, z = a.code, q = z === void 0 ? (Array.isArray(s) ? s[0] : s) || "" : z, b = a.astGenerator, I = lT(a, ST);
10488
+ } : p, h = a.useInlineStyles, E = h === void 0 ? !0 : h, v = a.showLineNumbers, y = v === void 0 ? !1 : v, S = a.showInlineLineNumbers, w = S === void 0 ? !0 : S, A = a.startingLineNumber, T = A === void 0 ? 1 : A, x = a.lineNumberContainerStyle, C = a.lineNumberStyle, k = C === void 0 ? {} : C, N = a.wrapLines, _ = a.wrapLongLines, M = _ === void 0 ? !1 : _, F = a.lineProps, D = F === void 0 ? {} : F, U = a.renderer, L = a.PreTag, B = L === void 0 ? "pre" : L, G = a.CodeTag, Y = G === void 0 ? "code" : G, z = a.code, q = z === void 0 ? (Array.isArray(s) ? s[0] : s) || "" : z, b = a.astGenerator, I = lT(a, ST);
10488
10489
  b = b || e;
10489
- var $ = S ? /* @__PURE__ */ te.createElement(AT, {
10490
+ var $ = y ? /* @__PURE__ */ te.createElement(AT, {
10490
10491
  containerStyle: x,
10491
10492
  codeStyle: m.style || {},
10492
10493
  numberStyle: k,
10493
- startingLineNumber: A,
10494
+ startingLineNumber: T,
10494
10495
  codeString: q
10495
10496
  }) : null, H = u.hljs || u['pre[class*="language-"]'] || {
10496
10497
  backgroundColor: "#fff"
@@ -10517,7 +10518,7 @@ function RT(e, t) {
10517
10518
  defaultCodeValue: W
10518
10519
  });
10519
10520
  ie.language === null && (ie.value = W);
10520
- var de = (r = (i = q.match(/\n/g)) === null || i === void 0 ? void 0 : i.length) !== null && r !== void 0 ? r : 0, $e = A + de, it = _T(ie, N, D, S, w, A, $e, k, M);
10521
+ var de = (r = (i = q.match(/\n/g)) === null || i === void 0 ? void 0 : i.length) !== null && r !== void 0 ? r : 0, $e = T + de, it = _T(ie, N, D, y, w, T, $e, k, M);
10521
10522
  return /* @__PURE__ */ te.createElement(B, be, /* @__PURE__ */ te.createElement(Y, m, !w && $, U({
10522
10523
  rows: it,
10523
10524
  stylesheet: u,
@@ -12031,43 +12032,43 @@ function QT(e, t) {
12031
12032
  let c = (l ? l.line : 0) || 1, d = (l ? l.column : 0) || 1, p = h(), m;
12032
12033
  for (i--; ++i <= e.length; )
12033
12034
  if (m === 10 && (d = (u ? u[o] : 0) || 1), m = e.charCodeAt(i), m === 38) {
12034
- const S = e.charCodeAt(i + 1);
12035
- if (S === 9 || S === 10 || S === 12 || S === 32 || S === 38 || S === 60 || Number.isNaN(S) || a && S === a) {
12035
+ const y = e.charCodeAt(i + 1);
12036
+ if (y === 9 || y === 10 || y === 12 || y === 32 || y === 38 || y === 60 || Number.isNaN(y) || a && y === a) {
12036
12037
  s += String.fromCharCode(m), d++;
12037
12038
  continue;
12038
12039
  }
12039
- const v = i + 1;
12040
- let w = v, T = v, A;
12041
- if (S === 35) {
12042
- T = ++w;
12043
- const D = e.charCodeAt(T);
12044
- D === 88 || D === 120 ? (A = "hexadecimal", T = ++w) : A = "decimal";
12040
+ const S = i + 1;
12041
+ let w = S, A = S, T;
12042
+ if (y === 35) {
12043
+ A = ++w;
12044
+ const D = e.charCodeAt(A);
12045
+ D === 88 || D === 120 ? (T = "hexadecimal", A = ++w) : T = "decimal";
12045
12046
  } else
12046
- A = "named";
12047
+ T = "named";
12047
12048
  let x = "", C = "", k = "";
12048
- const N = A === "named" ? np : A === "decimal" ? Mm : KT;
12049
- for (T--; ++T <= e.length; ) {
12050
- const D = e.charCodeAt(T);
12049
+ const N = T === "named" ? np : T === "decimal" ? Mm : KT;
12050
+ for (A--; ++A <= e.length; ) {
12051
+ const D = e.charCodeAt(A);
12051
12052
  if (!N(D))
12052
12053
  break;
12053
- k += String.fromCharCode(D), A === "named" && YT.includes(k) && (x = k, C = rp(k));
12054
+ k += String.fromCharCode(D), T === "named" && YT.includes(k) && (x = k, C = rp(k));
12054
12055
  }
12055
- let _ = e.charCodeAt(T) === 59;
12056
+ let _ = e.charCodeAt(A) === 59;
12056
12057
  if (_) {
12057
- T++;
12058
- const D = A === "named" ? rp(k) : !1;
12058
+ A++;
12059
+ const D = T === "named" ? rp(k) : !1;
12059
12060
  D && (x = k, C = D);
12060
12061
  }
12061
- let M = 1 + T - v, F = "";
12062
+ let M = 1 + A - S, F = "";
12062
12063
  if (!(!_ && n.nonTerminated === !1)) if (!k)
12063
- A !== "named" && E(4, M);
12064
- else if (A === "named") {
12064
+ T !== "named" && E(4, M);
12065
+ else if (T === "named") {
12065
12066
  if (_ && !C)
12066
12067
  E(5, 1);
12067
- else if (x !== k && (T = w + x.length, M = 1 + T - w, _ = !1), !_) {
12068
+ else if (x !== k && (A = w + x.length, M = 1 + A - w, _ = !1), !_) {
12068
12069
  const D = x ? 1 : 3;
12069
12070
  if (n.attribute) {
12070
- const U = e.charCodeAt(T);
12071
+ const U = e.charCodeAt(A);
12071
12072
  U === 61 ? (E(D, M), C = "") : np(U) ? C = "" : E(D, M);
12072
12073
  } else
12073
12074
  E(D, M);
@@ -12077,7 +12078,7 @@ function QT(e, t) {
12077
12078
  _ || E(2, M);
12078
12079
  let D = Number.parseInt(
12079
12080
  k,
12080
- A === "hexadecimal" ? 16 : 10
12081
+ T === "hexadecimal" ? 16 : 10
12081
12082
  );
12082
12083
  if (JT(D))
12083
12084
  E(7, M), F = "�";
@@ -12091,18 +12092,18 @@ function QT(e, t) {
12091
12092
  }
12092
12093
  }
12093
12094
  if (F) {
12094
- y(), p = h(), i = T - 1, d += T - v + 1, r.push(F);
12095
+ v(), p = h(), i = A - 1, d += A - S + 1, r.push(F);
12095
12096
  const D = h();
12096
12097
  D.offset++, n.reference && n.reference.call(
12097
12098
  n.referenceContext || void 0,
12098
12099
  F,
12099
12100
  { start: p, end: D },
12100
- e.slice(v - 1, T)
12101
+ e.slice(S - 1, A)
12101
12102
  ), p = D;
12102
12103
  } else
12103
- k = e.slice(v - 1, T), s += k, d += k.length, i = T - 1;
12104
+ k = e.slice(S - 1, A), s += k, d += k.length, i = A - 1;
12104
12105
  } else
12105
- m === 10 && (c++, o++, d = 0), Number.isNaN(m) ? y() : (s += String.fromCharCode(m), d++);
12106
+ m === 10 && (c++, o++, d = 0), Number.isNaN(m) ? v() : (s += String.fromCharCode(m), d++);
12106
12107
  return r.join("");
12107
12108
  function h() {
12108
12109
  return {
@@ -12111,16 +12112,16 @@ function QT(e, t) {
12111
12112
  offset: i + ((l ? l.offset : 0) || 0)
12112
12113
  };
12113
12114
  }
12114
- function E(S, v) {
12115
+ function E(y, S) {
12115
12116
  let w;
12116
- n.warning && (w = h(), w.column += v, w.offset += v, n.warning.call(
12117
+ n.warning && (w = h(), w.column += S, w.offset += S, n.warning.call(
12117
12118
  n.warningContext || void 0,
12118
- ZT[S],
12119
+ ZT[y],
12119
12120
  w,
12120
- S
12121
+ y
12121
12122
  ));
12122
12123
  }
12123
- function y() {
12124
+ function v() {
12124
12125
  s && (r.push(s), n.text && n.text.call(n.textContext || void 0, s, {
12125
12126
  start: p,
12126
12127
  end: h()
@@ -12493,36 +12494,36 @@ function Fm(e, t, n, a, r, i) {
12493
12494
  var h = u.pattern.toString().match(/[imsuy]*$/)[0];
12494
12495
  u.pattern = RegExp(u.pattern.source, h + "g");
12495
12496
  }
12496
- for (var E = u.pattern || u, y = a.next, S = r; y !== t.tail && !(i && S >= i.reach); S += y.value.length, y = y.next) {
12497
- var v = y.value;
12497
+ for (var E = u.pattern || u, v = a.next, y = r; v !== t.tail && !(i && y >= i.reach); y += v.value.length, v = v.next) {
12498
+ var S = v.value;
12498
12499
  if (t.length > e.length)
12499
12500
  return;
12500
- if (!(v instanceof Jt)) {
12501
- var w = 1, T;
12501
+ if (!(S instanceof Jt)) {
12502
+ var w = 1, A;
12502
12503
  if (p) {
12503
- if (T = ip(E, S, e, d), !T || T.index >= e.length)
12504
+ if (A = ip(E, y, e, d), !A || A.index >= e.length)
12504
12505
  break;
12505
- var k = T.index, A = T.index + T[0].length, x = S;
12506
- for (x += y.value.length; k >= x; )
12507
- y = y.next, x += y.value.length;
12508
- if (x -= y.value.length, S = x, y.value instanceof Jt)
12506
+ var k = A.index, T = A.index + A[0].length, x = y;
12507
+ for (x += v.value.length; k >= x; )
12508
+ v = v.next, x += v.value.length;
12509
+ if (x -= v.value.length, y = x, v.value instanceof Jt)
12509
12510
  continue;
12510
- for (var C = y; C !== t.tail && (x < A || typeof C.value == "string"); C = C.next)
12511
+ for (var C = v; C !== t.tail && (x < T || typeof C.value == "string"); C = C.next)
12511
12512
  w++, x += C.value.length;
12512
- w--, v = e.slice(S, x), T.index -= S;
12513
- } else if (T = ip(E, 0, v, d), !T)
12513
+ w--, S = e.slice(y, x), A.index -= y;
12514
+ } else if (A = ip(E, 0, S, d), !A)
12514
12515
  continue;
12515
- var k = T.index, N = T[0], _ = v.slice(0, k), M = v.slice(k + N.length), F = S + v.length;
12516
+ var k = A.index, N = A[0], _ = S.slice(0, k), M = S.slice(k + N.length), F = y + S.length;
12516
12517
  i && F > i.reach && (i.reach = F);
12517
- var D = y.prev;
12518
- _ && (D = Wn(t, D, _), S += _.length), aA(t, D, w);
12518
+ var D = v.prev;
12519
+ _ && (D = Wn(t, D, _), y += _.length), aA(t, D, w);
12519
12520
  var U = new Jt(
12520
12521
  o,
12521
12522
  c ? pe.tokenize(N, c) : N,
12522
12523
  m,
12523
12524
  N
12524
12525
  );
12525
- if (y = Wn(t, D, U), M && Wn(t, y, M), w > 1) {
12526
+ if (v = Wn(t, D, U), M && Wn(t, v, M), w > 1) {
12526
12527
  var L = {
12527
12528
  cause: o + "," + l,
12528
12529
  reach: F
@@ -12531,8 +12532,8 @@ function Fm(e, t, n, a, r, i) {
12531
12532
  e,
12532
12533
  t,
12533
12534
  n,
12534
- y.prev,
12535
- S,
12535
+ v.prev,
12536
+ y,
12536
12537
  L
12537
12538
  ), i && L.reach > i.reach && (i.reach = L.reach);
12538
12539
  }
@@ -14730,8 +14731,8 @@ function Ai(e) {
14730
14731
  if (m && h && m.type === "code-language" && h.type === "code-block" && typeof m.content == "string") {
14731
14732
  var E = m.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp");
14732
14733
  E = (/[a-z][\w-]*/i.exec(E) || [""])[0].toLowerCase();
14733
- var y = "language-" + E;
14734
- h.alias ? typeof h.alias == "string" ? h.alias = [h.alias, y] : h.alias.push(y) : h.alias = [y];
14734
+ var v = "language-" + E;
14735
+ h.alias ? typeof h.alias == "string" ? h.alias = [h.alias, v] : h.alias.push(v) : h.alias = [v];
14735
14736
  }
14736
14737
  }
14737
14738
  }
@@ -15109,16 +15110,16 @@ function Ft(e) {
15109
15110
  ), d = r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source, 2), p = r(/\((?:[^()]|<<self>>)*\)/.source, 2), m = /@?\b[A-Za-z_]\w*\b/.source, h = n(/<<0>>(?:\s*<<1>>)?/.source, [m, d]), E = n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source, [
15110
15111
  u,
15111
15112
  h
15112
- ]), y = /\[\s*(?:,\s*)*\]/.source, S = n(
15113
+ ]), v = /\[\s*(?:,\s*)*\]/.source, y = n(
15113
15114
  /<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,
15114
- [E, y]
15115
- ), v = n(
15115
+ [E, v]
15116
+ ), S = n(
15116
15117
  /[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,
15117
- [d, p, y]
15118
- ), w = n(/\(<<0>>+(?:,<<0>>+)+\)/.source, [v]), T = n(
15118
+ [d, p, v]
15119
+ ), w = n(/\(<<0>>+(?:,<<0>>+)+\)/.source, [S]), A = n(
15119
15120
  /(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,
15120
- [w, E, y]
15121
- ), A = {
15121
+ [w, E, v]
15122
+ ), T = {
15122
15123
  keyword: l,
15123
15124
  punctuation: /[<>()?,.:[\]]/
15124
15125
  }, x = /'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source, C = /"(?:\\.|[^\\"\r\n])*"/.source, k = /@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;
@@ -15143,17 +15144,17 @@ function Ft(e) {
15143
15144
  E
15144
15145
  ]),
15145
15146
  lookbehind: !0,
15146
- inside: A
15147
+ inside: T
15147
15148
  },
15148
15149
  {
15149
15150
  // Using alias (type)
15150
15151
  // using Project = PC.MyCompany.Project;
15151
15152
  pattern: a(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source, [
15152
15153
  m,
15153
- T
15154
+ A
15154
15155
  ]),
15155
15156
  lookbehind: !0,
15156
- inside: A
15157
+ inside: T
15157
15158
  },
15158
15159
  {
15159
15160
  // Using alias (alias)
@@ -15170,7 +15171,7 @@ function Ft(e) {
15170
15171
  h
15171
15172
  ]),
15172
15173
  lookbehind: !0,
15173
- inside: A
15174
+ inside: T
15174
15175
  },
15175
15176
  {
15176
15177
  // Single catch exception declaration
@@ -15178,7 +15179,7 @@ function Ft(e) {
15178
15179
  // (things like catch(Foo e) is covered by variable declaration)
15179
15180
  pattern: a(/(\bcatch\s*\(\s*)<<0>>/.source, [E]),
15180
15181
  lookbehind: !0,
15181
- inside: A
15182
+ inside: T
15182
15183
  },
15183
15184
  {
15184
15185
  // Name of the type parameter of generic constraints
@@ -15191,19 +15192,19 @@ function Ft(e) {
15191
15192
  // as Foo<A>, is Bar<B>
15192
15193
  // (things like if(a is Foo b) is covered by variable declaration)
15193
15194
  pattern: a(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source, [
15194
- S
15195
+ y
15195
15196
  ]),
15196
15197
  lookbehind: !0,
15197
- inside: A
15198
+ inside: T
15198
15199
  },
15199
15200
  {
15200
15201
  // Variable, field and parameter declaration
15201
15202
  // (Foo bar, Bar baz, Foo[,,] bay, Foo<Bar, FooBar<Bar>> bax)
15202
15203
  pattern: a(
15203
15204
  /\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,
15204
- [T, c, m]
15205
+ [A, c, m]
15205
15206
  ),
15206
- inside: A
15207
+ inside: T
15207
15208
  }
15208
15209
  ],
15209
15210
  keyword: l,
@@ -15243,7 +15244,7 @@ function Ft(e) {
15243
15244
  ),
15244
15245
  lookbehind: !0,
15245
15246
  alias: "class-name",
15246
- inside: A
15247
+ inside: T
15247
15248
  },
15248
15249
  "return-type": {
15249
15250
  // Foo<Bar> ForBar(); Foo IFoo.Bar() => 0
@@ -15251,16 +15252,16 @@ function Ft(e) {
15251
15252
  // int Foo => 0; int Foo { get; set } = 0;
15252
15253
  pattern: a(
15253
15254
  /<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,
15254
- [T, E]
15255
+ [A, E]
15255
15256
  ),
15256
- inside: A,
15257
+ inside: T,
15257
15258
  alias: "class-name"
15258
15259
  },
15259
15260
  "constructor-invocation": {
15260
15261
  // new List<Foo<Bar[]>> { }
15261
- pattern: a(/(\bnew\s+)<<0>>(?=\s*[[({])/.source, [T]),
15262
+ pattern: a(/(\bnew\s+)<<0>>(?=\s*[[({])/.source, [A]),
15262
15263
  lookbehind: !0,
15263
- inside: A,
15264
+ inside: T,
15264
15265
  alias: "class-name"
15265
15266
  },
15266
15267
  /*'explicit-implementation': {
@@ -15277,7 +15278,7 @@ function Ft(e) {
15277
15278
  generic: {
15278
15279
  pattern: RegExp(d),
15279
15280
  alias: "class-name",
15280
- inside: A
15281
+ inside: T
15281
15282
  }
15282
15283
  }
15283
15284
  },
@@ -15291,7 +15292,7 @@ function Ft(e) {
15291
15292
  s,
15292
15293
  h,
15293
15294
  m,
15294
- T,
15295
+ A,
15295
15296
  l.source,
15296
15297
  p,
15297
15298
  /\bnew\s*\(\s*\)/.source
@@ -15310,9 +15311,9 @@ function Ft(e) {
15310
15311
  },
15311
15312
  keyword: l,
15312
15313
  "class-name": {
15313
- pattern: RegExp(T),
15314
+ pattern: RegExp(A),
15314
15315
  greedy: !0,
15315
- inside: A
15316
+ inside: T
15316
15317
  },
15317
15318
  punctuation: /[,()]/
15318
15319
  }
@@ -17969,13 +17970,13 @@ function Se(e) {
17969
17970
  var d = o[i], p = a.tokenStack[d], m = typeof c == "string" ? c : c.content, h = n(r, d), E = m.indexOf(h);
17970
17971
  if (E > -1) {
17971
17972
  ++i;
17972
- var y = m.substring(0, E), S = new t.Token(
17973
+ var v = m.substring(0, E), y = new t.Token(
17973
17974
  r,
17974
17975
  t.tokenize(p, a.grammar),
17975
17976
  "language-" + r,
17976
17977
  p
17977
- ), v = m.substring(E + h.length), w = [];
17978
- y && w.push.apply(w, s([y])), w.push(S), v && w.push.apply(w, s([v])), typeof c == "string" ? l.splice.apply(l, [u, 1].concat(w)) : c.content = w;
17978
+ ), S = m.substring(E + h.length), w = [];
17979
+ v && w.push.apply(w, s([v])), w.push(y), S && w.push.apply(w, s([S])), typeof c == "string" ? l.splice.apply(l, [u, 1].concat(w)) : c.content = w;
17979
17980
  }
17980
17981
  } else c.content && s(c.content);
17981
17982
  }
@@ -20547,36 +20548,36 @@ function Jo(e) {
20547
20548
  }, e.hooks.add("after-tokenize", function(n) {
20548
20549
  if (n.language !== "graphql")
20549
20550
  return;
20550
- var a = n.tokens.filter(function(y) {
20551
- return typeof y != "string" && y.type !== "comment" && y.type !== "scalar";
20551
+ var a = n.tokens.filter(function(v) {
20552
+ return typeof v != "string" && v.type !== "comment" && v.type !== "scalar";
20552
20553
  }), r = 0;
20553
- function i(y) {
20554
- return a[r + y];
20555
- }
20556
- function o(y, S) {
20557
- S = S || 0;
20558
- for (var v = 0; v < y.length; v++) {
20559
- var w = i(v + S);
20560
- if (!w || w.type !== y[v])
20554
+ function i(v) {
20555
+ return a[r + v];
20556
+ }
20557
+ function o(v, y) {
20558
+ y = y || 0;
20559
+ for (var S = 0; S < v.length; S++) {
20560
+ var w = i(S + y);
20561
+ if (!w || w.type !== v[S])
20561
20562
  return !1;
20562
20563
  }
20563
20564
  return !0;
20564
20565
  }
20565
- function s(y, S) {
20566
- for (var v = 1, w = r; w < a.length; w++) {
20567
- var T = a[w], A = T.content;
20568
- if (T.type === "punctuation" && typeof A == "string") {
20569
- if (y.test(A))
20570
- v++;
20571
- else if (S.test(A) && (v--, v === 0))
20566
+ function s(v, y) {
20567
+ for (var S = 1, w = r; w < a.length; w++) {
20568
+ var A = a[w], T = A.content;
20569
+ if (A.type === "punctuation" && typeof T == "string") {
20570
+ if (v.test(T))
20571
+ S++;
20572
+ else if (y.test(T) && (S--, S === 0))
20572
20573
  return w;
20573
20574
  }
20574
20575
  }
20575
20576
  return -1;
20576
20577
  }
20577
- function l(y, S) {
20578
- var v = y.alias;
20579
- v ? Array.isArray(v) || (y.alias = v = [v]) : y.alias = v = [], v.push(S);
20578
+ function l(v, y) {
20579
+ var S = v.alias;
20580
+ S ? Array.isArray(S) || (v.alias = S = [S]) : v.alias = S = [], S.push(y);
20580
20581
  }
20581
20582
  for (; r < a.length; ) {
20582
20583
  var u = a[r++];
@@ -23087,60 +23088,60 @@ function Rs(e) {
23087
23088
  function l(h, E) {
23088
23089
  return "___" + E.toUpperCase() + "_" + h + "___";
23089
23090
  }
23090
- function u(h, E, y) {
23091
- var S = {
23091
+ function u(h, E, v) {
23092
+ var y = {
23092
23093
  code: h,
23093
23094
  grammar: E,
23094
- language: y
23095
+ language: v
23095
23096
  };
23096
- return t.hooks.run("before-tokenize", S), S.tokens = t.tokenize(S.code, S.grammar), t.hooks.run("after-tokenize", S), S.tokens;
23097
+ return t.hooks.run("before-tokenize", y), y.tokens = t.tokenize(y.code, y.grammar), t.hooks.run("after-tokenize", y), y.tokens;
23097
23098
  }
23098
23099
  function c(h) {
23099
23100
  var E = {};
23100
23101
  E["interpolation-punctuation"] = i;
23101
- var y = t.tokenize(h, E);
23102
- if (y.length === 3) {
23103
- var S = [1, 1];
23104
- S.push.apply(
23105
- S,
23106
- u(y[1], t.languages.javascript, "javascript")
23107
- ), y.splice.apply(y, S);
23102
+ var v = t.tokenize(h, E);
23103
+ if (v.length === 3) {
23104
+ var y = [1, 1];
23105
+ y.push.apply(
23106
+ y,
23107
+ u(v[1], t.languages.javascript, "javascript")
23108
+ ), v.splice.apply(v, y);
23108
23109
  }
23109
23110
  return new t.Token(
23110
23111
  "interpolation",
23111
- y,
23112
+ v,
23112
23113
  r.alias,
23113
23114
  h
23114
23115
  );
23115
23116
  }
23116
- function d(h, E, y) {
23117
- var S = t.tokenize(h, {
23117
+ function d(h, E, v) {
23118
+ var y = t.tokenize(h, {
23118
23119
  interpolation: {
23119
23120
  pattern: RegExp(o),
23120
23121
  lookbehind: !0
23121
23122
  }
23122
- }), v = 0, w = {}, T = S.map(function(k) {
23123
+ }), S = 0, w = {}, A = y.map(function(k) {
23123
23124
  if (typeof k == "string")
23124
23125
  return k;
23125
23126
  for (var N = k.content, _; h.indexOf(
23126
- _ = l(v++, y)
23127
+ _ = l(S++, v)
23127
23128
  ) !== -1; )
23128
23129
  ;
23129
23130
  return w[_] = N, _;
23130
- }).join(""), A = u(T, E, y), x = Object.keys(w);
23131
- v = 0;
23131
+ }).join(""), T = u(A, E, v), x = Object.keys(w);
23132
+ S = 0;
23132
23133
  function C(k) {
23133
23134
  for (var N = 0; N < k.length; N++) {
23134
- if (v >= x.length)
23135
+ if (S >= x.length)
23135
23136
  return;
23136
23137
  var _ = k[N];
23137
23138
  if (typeof _ == "string" || typeof _.content == "string") {
23138
- var M = x[v], F = typeof _ == "string" ? _ : (
23139
+ var M = x[S], F = typeof _ == "string" ? _ : (
23139
23140
  /** @type {string} */
23140
23141
  _.content
23141
23142
  ), D = F.indexOf(M);
23142
23143
  if (D !== -1) {
23143
- ++v;
23144
+ ++S;
23144
23145
  var U = F.substring(0, D), L = c(
23145
23146
  w[M]
23146
23147
  ), B = F.substring(D + M.length), G = [];
@@ -23156,10 +23157,10 @@ function Rs(e) {
23156
23157
  }
23157
23158
  }
23158
23159
  }
23159
- return C(A), new t.Token(
23160
- y,
23161
- A,
23162
- "language-" + y,
23160
+ return C(T), new t.Token(
23161
+ v,
23162
+ T,
23163
+ "language-" + v,
23163
23164
  h
23164
23165
  );
23165
23166
  }
@@ -23174,25 +23175,25 @@ function Rs(e) {
23174
23175
  t.hooks.add("after-tokenize", function(h) {
23175
23176
  if (!(h.language in p))
23176
23177
  return;
23177
- function E(y) {
23178
- for (var S = 0, v = y.length; S < v; S++) {
23179
- var w = y[S];
23178
+ function E(v) {
23179
+ for (var y = 0, S = v.length; y < S; y++) {
23180
+ var w = v[y];
23180
23181
  if (typeof w != "string") {
23181
- var T = w.content;
23182
- if (!Array.isArray(T)) {
23183
- typeof T != "string" && E([T]);
23182
+ var A = w.content;
23183
+ if (!Array.isArray(A)) {
23184
+ typeof A != "string" && E([A]);
23184
23185
  continue;
23185
23186
  }
23186
23187
  if (w.type === "template-string") {
23187
- var A = T[1];
23188
- if (T.length === 3 && typeof A != "string" && A.type === "embedded-code") {
23189
- var x = m(A), C = A.alias, k = Array.isArray(C) ? C[0] : C, N = t.languages[k];
23188
+ var T = A[1];
23189
+ if (A.length === 3 && typeof T != "string" && T.type === "embedded-code") {
23190
+ var x = m(T), C = T.alias, k = Array.isArray(C) ? C[0] : C, N = t.languages[k];
23190
23191
  if (!N)
23191
23192
  continue;
23192
- T[1] = d(x, N, k);
23193
+ A[1] = d(x, N, k);
23193
23194
  }
23194
23195
  } else
23195
- E(T);
23196
+ E(A);
23196
23197
  }
23197
23198
  }
23198
23199
  }
@@ -28135,8 +28136,8 @@ Xl.aliases = ["qs"];
28135
28136
  function Xl(e) {
28136
28137
  e.register(Q), (function(t) {
28137
28138
  function n(m, h) {
28138
- return m.replace(/<<(\d+)>>/g, function(E, y) {
28139
- return "(?:" + h[+y] + ")";
28139
+ return m.replace(/<<(\d+)>>/g, function(E, v) {
28140
+ return "(?:" + h[+v] + ")";
28140
28141
  });
28141
28142
  }
28142
28143
  function a(m, h, E) {
@@ -28430,12 +28431,12 @@ nu.aliases = ["razor"];
28430
28431
  function nu(e) {
28431
28432
  e.register(Ft), e.register(he), (function(t) {
28432
28433
  var n = /\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source, a = /@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source + "|" + /'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;
28433
- function r(v, w) {
28434
- for (var T = 0; T < w; T++)
28435
- v = v.replace(/<self>/g, function() {
28436
- return "(?:" + v + ")";
28434
+ function r(S, w) {
28435
+ for (var A = 0; A < w; A++)
28436
+ S = S.replace(/<self>/g, function() {
28437
+ return "(?:" + S + ")";
28437
28438
  });
28438
- return v.replace(/<self>/g, "[^\\s\\S]").replace(/<str>/g, "(?:" + a + ")").replace(/<comment>/g, "(?:" + n + ")");
28439
+ return S.replace(/<self>/g, "[^\\s\\S]").replace(/<str>/g, "(?:" + a + ")").replace(/<comment>/g, "(?:" + n + ")");
28439
28440
  }
28440
28441
  var i = r(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source, 2), o = r(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source, 1), s = r(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source, 2), l = r(/<(?:[^<>'"@/]|<comment>|<self>)*>/.source, 1), u = /@/.source + /(?:await\b\s*)?/.source + "(?:" + /(?!await\b)\w+\b/.source + "|" + i + ")(?:" + /[?!]?\.\w+\b/.source + "|(?:" + l + ")?" + i + "|" + o + ")*" + /(?![?!\.(\[]|<(?!\/))/.source, c = /@(?![\w()])/.source + "|" + u, d = "(?:" + /"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source + `|["'][^"'@]*(?:(?:` + c + `)[^"'@]*)+["'])`, p = /(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*<tagAttrValue>|(?=[\s/>])))+)?/.source.replace(
28441
28442
  /<tagAttrValue>/,
@@ -28466,18 +28467,18 @@ function nu(e) {
28466
28467
  {
28467
28468
  csharp: t.languages.extend("csharp", {})
28468
28469
  }
28469
- ), y = {
28470
+ ), v = {
28470
28471
  pattern: /\S[\s\S]*/,
28471
28472
  alias: "language-csharp",
28472
28473
  inside: E
28473
- }, S = {
28474
+ }, y = {
28474
28475
  pattern: RegExp(/(^|[^@])/.source + u),
28475
28476
  lookbehind: !0,
28476
28477
  greedy: !0,
28477
28478
  alias: "variable",
28478
28479
  inside: {
28479
28480
  keyword: /^@/,
28480
- csharp: y
28481
+ csharp: v
28481
28482
  }
28482
28483
  };
28483
28484
  t.languages.cshtml.tag.pattern = RegExp(/<\/?/.source + m), t.languages.cshtml.tag.inside["attr-value"].pattern = RegExp(
@@ -28486,7 +28487,7 @@ function nu(e) {
28486
28487
  "inside",
28487
28488
  "punctuation",
28488
28489
  {
28489
- value: S
28490
+ value: y
28490
28491
  },
28491
28492
  t.languages.cshtml.tag.inside["attr-value"]
28492
28493
  ), t.languages.insertBefore("cshtml", "prolog", {
@@ -28518,7 +28519,7 @@ function nu(e) {
28518
28519
  greedy: !0,
28519
28520
  inside: {
28520
28521
  keyword: /^@\w*/,
28521
- csharp: y
28522
+ csharp: v
28522
28523
  }
28523
28524
  },
28524
28525
  directive: {
@@ -28527,10 +28528,10 @@ function nu(e) {
28527
28528
  greedy: !0,
28528
28529
  inside: {
28529
28530
  keyword: /^@\w+/,
28530
- csharp: y
28531
+ csharp: v
28531
28532
  }
28532
28533
  },
28533
- value: S,
28534
+ value: y,
28534
28535
  "delegate-operator": {
28535
28536
  pattern: /(^|[^@])@(?=<)/,
28536
28537
  lookbehind: !0,
@@ -29308,16 +29309,16 @@ function gu(e) {
29308
29309
  pattern: /((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,
29309
29310
  lookbehind: !0,
29310
29311
  alias: "keyword"
29311
- }, y = {
29312
+ }, v = {
29312
29313
  pattern: /(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,
29313
29314
  lookbehind: !0,
29314
29315
  alias: "keyword"
29315
- }, S = /aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source, v = {
29316
+ }, y = /aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source, S = {
29316
29317
  pattern: RegExp(
29317
29318
  /(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(
29318
29319
  /<act>/g,
29319
29320
  function() {
29320
- return S;
29321
+ return y;
29321
29322
  }
29322
29323
  ),
29323
29324
  "i"
@@ -29326,7 +29327,7 @@ function gu(e) {
29326
29327
  inside: {
29327
29328
  keyword: RegExp(
29328
29329
  /(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g, function() {
29329
- return S;
29330
+ return y;
29330
29331
  }),
29331
29332
  "i"
29332
29333
  ),
@@ -29409,7 +29410,7 @@ function gu(e) {
29409
29410
  inside: t.languages.groovy
29410
29411
  },
29411
29412
  keyword: w,
29412
- "submit-statement": y,
29413
+ "submit-statement": v,
29413
29414
  "global-statements": E,
29414
29415
  number: a,
29415
29416
  "numeric-constant": r,
@@ -29437,7 +29438,7 @@ function gu(e) {
29437
29438
  inside: t.languages.lua
29438
29439
  },
29439
29440
  keyword: w,
29440
- "submit-statement": y,
29441
+ "submit-statement": v,
29441
29442
  "global-statements": E,
29442
29443
  number: a,
29443
29444
  "numeric-constant": r,
@@ -29463,7 +29464,7 @@ function gu(e) {
29463
29464
  rest: p
29464
29465
  }
29465
29466
  },
29466
- "cas-actions": v,
29467
+ "cas-actions": S,
29467
29468
  statement: {
29468
29469
  pattern: /((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,
29469
29470
  lookbehind: !0,
@@ -29547,7 +29548,7 @@ function gu(e) {
29547
29548
  lookbehind: !0,
29548
29549
  inside: p
29549
29550
  },
29550
- "cas-actions": v,
29551
+ "cas-actions": S,
29551
29552
  comment: l,
29552
29553
  function: d,
29553
29554
  format: m,
@@ -32864,23 +32865,23 @@ const gA = {
32864
32865
  activeTab: i,
32865
32866
  onTabChange: o
32866
32867
  }) => {
32867
- const [s, l] = ee(!1), [u, c] = ee(0), d = i !== void 0 ? i : u, p = (S) => {
32868
- o ? o(S) : c(S);
32868
+ const [s, l] = ee(!1), [u, c] = ee(0), d = i !== void 0 ? i : u, p = (y) => {
32869
+ o ? o(y) : c(y);
32869
32870
  }, m = r ? r[d]?.code : e, h = r ? r[d]?.language : t, E = async () => {
32870
- const S = m?.trim?.();
32871
- if (S)
32871
+ const y = m?.trim?.();
32872
+ if (y)
32872
32873
  try {
32873
32874
  if (navigator.clipboard && window.isSecureContext)
32874
- await navigator.clipboard.writeText(S);
32875
+ await navigator.clipboard.writeText(y);
32875
32876
  else {
32876
- const v = document.createElement("textarea");
32877
- v.value = S, v.style.position = "fixed", v.style.opacity = "0", document.body.appendChild(v), v.focus(), v.select(), document.execCommand("copy"), document.body.removeChild(v);
32877
+ const S = document.createElement("textarea");
32878
+ S.value = y, S.style.position = "fixed", S.style.opacity = "0", document.body.appendChild(S), S.focus(), S.select(), document.execCommand("copy"), document.body.removeChild(S);
32878
32879
  }
32879
32880
  l(!0), setTimeout(() => l(!1), 1800);
32880
- } catch (v) {
32881
- console.error("Failed to copy text: ", v), l(!1);
32881
+ } catch (S) {
32882
+ console.error("Failed to copy text: ", S), l(!1);
32882
32883
  }
32883
- }, y = (S) => ({
32884
+ }, v = (y) => ({
32884
32885
  javascript: /* @__PURE__ */ f.jsx(dp, { className: "w-5 h-5 text-yellow-400" }),
32885
32886
  typescript: /* @__PURE__ */ f.jsx(cp, { className: "w-5 h-5 text-sky-400" }),
32886
32887
  react: /* @__PURE__ */ f.jsx(up, { className: "w-5 h-5 text-cyan-400" }),
@@ -32890,7 +32891,7 @@ const gA = {
32890
32891
  css: /* @__PURE__ */ f.jsx(bp, { className: "w-5 h-5 text-pink-400" }),
32891
32892
  shell: /* @__PURE__ */ f.jsx(yp, { className: "w-5 h-5 text-zinc-300" }),
32892
32893
  json: /* @__PURE__ */ f.jsx(mp, { className: "w-5 h-5 text-amber-300" })
32893
- })[S] || /* @__PURE__ */ f.jsx(Wa, { className: "w-5 h-5 text-zinc-400" });
32894
+ })[y] || /* @__PURE__ */ f.jsx(Wa, { className: "w-5 h-5 text-zinc-400" });
32894
32895
  return /* @__PURE__ */ f.jsxs(
32895
32896
  "div",
32896
32897
  {
@@ -32903,19 +32904,19 @@ const gA = {
32903
32904
  /* @__PURE__ */ f.jsx("div", { className: "w-3 h-3 rounded-full bg-yellow-500" }),
32904
32905
  /* @__PURE__ */ f.jsx("div", { className: "w-3 h-3 rounded-full bg-green-500" })
32905
32906
  ] }),
32906
- r ? /* @__PURE__ */ f.jsx("div", { className: "flex space-x-1 px-2 overflow-x-auto scrollbar-none", children: r.map((S, v) => /* @__PURE__ */ f.jsxs(
32907
+ r ? /* @__PURE__ */ f.jsx("div", { className: "flex space-x-1 px-2 overflow-x-auto scrollbar-none", children: r.map((y, S) => /* @__PURE__ */ f.jsxs(
32907
32908
  "button",
32908
32909
  {
32909
- onClick: () => p(v),
32910
- className: `flex items-center gap-2 px-3 py-2 text-sm font-medium rounded-lg transition-all duration-200 ${d === v ? "text-[#00c420] " : "text-zinc-400 hover:text-zinc-300 hover:bg-zinc-800/40"}`,
32910
+ onClick: () => p(S),
32911
+ className: `flex items-center gap-2 px-3 py-2 text-sm font-medium rounded-lg transition-all duration-200 ${d === S ? "text-[#00c420] " : "text-zinc-400 hover:text-zinc-300 hover:bg-zinc-800/40"}`,
32911
32912
  children: [
32912
32913
  /* @__PURE__ */ f.jsx(Wa, { size: 14 }),
32913
- S.name
32914
+ y.name
32914
32915
  ]
32915
32916
  },
32916
- v
32917
+ S
32917
32918
  )) }) : /* @__PURE__ */ f.jsxs("div", { className: "flex items-center gap-2 px-4 py-2", children: [
32918
- y(h),
32919
+ v(h),
32919
32920
  /* @__PURE__ */ f.jsx("span", { className: "text-sm font-medium capitalize text-zinc-200", children: h })
32920
32921
  ] })
32921
32922
  ] }),