@neuctra/cms-core 1.0.2 → 1.0.4
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/cms-core.css +1 -1
- package/dist/index.cjs.js +21 -20
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +412 -408
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
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 "
|
|
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";
|
|
@@ -109,7 +109,7 @@ function Zm() {
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
function a(b) {
|
|
112
|
-
if (b ===
|
|
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"),
|
|
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"), 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() {
|
|
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 =
|
|
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,32 @@ 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
|
|
1023
|
+
const m = (y, S) => {
|
|
1026
1024
|
document.execCommand(y, !1, S);
|
|
1027
|
-
const
|
|
1028
|
-
|
|
1029
|
-
}, m = () => {
|
|
1030
|
-
u(""), s(!0);
|
|
1025
|
+
const w = i.current?.innerHTML;
|
|
1026
|
+
w && t(w);
|
|
1031
1027
|
}, h = () => {
|
|
1032
|
-
|
|
1033
|
-
|
|
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
|
+
S && o.current && (S.removeAllRanges(), S.addRange(o.current));
|
|
1037
|
+
const w = u.startsWith("http") ? u : `https://${u}`;
|
|
1038
|
+
document.execCommand("createLink", !1, w), setTimeout(() => {
|
|
1039
|
+
y.querySelectorAll("a").forEach((T) => {
|
|
1040
|
+
T.setAttribute("target", "_blank"), T.setAttribute("rel", "noopener noreferrer");
|
|
1041
|
+
}), t(y.innerHTML);
|
|
1042
|
+
}, 0), l(!1), c("");
|
|
1043
|
+
}, v = () => {
|
|
1041
1044
|
const y = i.current?.innerHTML;
|
|
1042
1045
|
y && t(y);
|
|
1043
1046
|
};
|
|
@@ -1049,8 +1052,8 @@ const ch = [
|
|
|
1049
1052
|
/* @__PURE__ */ f.jsx(
|
|
1050
1053
|
"button",
|
|
1051
1054
|
{
|
|
1052
|
-
onClick: () =>
|
|
1053
|
-
className: `flex items-center gap-2 rounded-lg px-4 py-2.5 text-sm transition-all duration-200 ${
|
|
1055
|
+
onClick: () => p((y) => !y),
|
|
1056
|
+
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
1057
|
children: /* @__PURE__ */ f.jsx(pp, { size: 14 })
|
|
1055
1058
|
}
|
|
1056
1059
|
),
|
|
@@ -1065,18 +1068,18 @@ const ch = [
|
|
|
1065
1068
|
] })
|
|
1066
1069
|
] }),
|
|
1067
1070
|
/* @__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: () =>
|
|
1069
|
-
/* @__PURE__ */ f.jsx(Ge, { icon: Pf, onClick: () =>
|
|
1070
|
-
/* @__PURE__ */ f.jsx(Ge, { icon: dh, onClick: () =>
|
|
1071
|
-
/* @__PURE__ */ f.jsx(Ge, { icon: $f, onClick:
|
|
1071
|
+
/* @__PURE__ */ f.jsx(Ge, { icon: gf, onClick: () => m("bold") }),
|
|
1072
|
+
/* @__PURE__ */ f.jsx(Ge, { icon: Pf, onClick: () => m("italic") }),
|
|
1073
|
+
/* @__PURE__ */ f.jsx(Ge, { icon: dh, onClick: () => m("underline") }),
|
|
1074
|
+
/* @__PURE__ */ f.jsx(Ge, { icon: $f, onClick: h }),
|
|
1072
1075
|
/* @__PURE__ */ f.jsx("div", { className: "mx-1 h-6 w-px bg-white/10" }),
|
|
1073
|
-
/* @__PURE__ */ f.jsx(Ge, { icon: lf, onClick: () =>
|
|
1074
|
-
/* @__PURE__ */ f.jsx(Ge, { icon: of, onClick: () =>
|
|
1075
|
-
/* @__PURE__ */ f.jsx(Ge, { icon: cf, onClick: () =>
|
|
1076
|
+
/* @__PURE__ */ f.jsx(Ge, { icon: lf, onClick: () => m("justifyLeft") }),
|
|
1077
|
+
/* @__PURE__ */ f.jsx(Ge, { icon: of, onClick: () => m("justifyCenter") }),
|
|
1078
|
+
/* @__PURE__ */ f.jsx(Ge, { icon: cf, onClick: () => m("justifyRight") }),
|
|
1076
1079
|
/* @__PURE__ */ f.jsx("div", { className: "mx-1 h-6 w-px bg-white/10" }),
|
|
1077
|
-
/* @__PURE__ */ f.jsx(Ge, { icon: Vf, onClick: () =>
|
|
1078
|
-
/* @__PURE__ */ f.jsx(Ge, { icon: Gf, onClick: () =>
|
|
1079
|
-
/* @__PURE__ */ f.jsx(Ge, { icon: Kf, onClick: () =>
|
|
1080
|
+
/* @__PURE__ */ f.jsx(Ge, { icon: Vf, onClick: () => m("insertUnorderedList") }),
|
|
1081
|
+
/* @__PURE__ */ f.jsx(Ge, { icon: Gf, onClick: () => m("insertOrderedList") }),
|
|
1082
|
+
/* @__PURE__ */ f.jsx(Ge, { icon: Kf, onClick: () => m("formatBlock", "blockquote") })
|
|
1080
1083
|
] }),
|
|
1081
1084
|
/* @__PURE__ */ f.jsx(
|
|
1082
1085
|
"div",
|
|
@@ -1084,9 +1087,10 @@ const ch = [
|
|
|
1084
1087
|
ref: i,
|
|
1085
1088
|
contentEditable: !0,
|
|
1086
1089
|
suppressContentEditableWarning: !0,
|
|
1087
|
-
onInput:
|
|
1088
|
-
style: { display:
|
|
1090
|
+
onInput: v,
|
|
1091
|
+
style: { display: d ? "none" : "block" },
|
|
1089
1092
|
className: `
|
|
1093
|
+
min-h-55 px-5 py-2 outline-none text-white/80 leading-8
|
|
1090
1094
|
prose prose-invert max-w-none
|
|
1091
1095
|
prose-p:text-white/75
|
|
1092
1096
|
prose-p:leading-8
|
|
@@ -1134,15 +1138,15 @@ const ch = [
|
|
|
1134
1138
|
"data-placeholder": a
|
|
1135
1139
|
}
|
|
1136
1140
|
),
|
|
1137
|
-
|
|
1141
|
+
d && /* @__PURE__ */ f.jsx(Ep, { value: e })
|
|
1138
1142
|
] }),
|
|
1139
|
-
|
|
1143
|
+
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: [
|
|
1140
1144
|
/* @__PURE__ */ f.jsx("h2", { className: "mb-3 text-sm font-medium text-white/80", children: "Insert Link" }),
|
|
1141
1145
|
/* @__PURE__ */ f.jsx(
|
|
1142
1146
|
"input",
|
|
1143
1147
|
{
|
|
1144
|
-
value:
|
|
1145
|
-
onChange: (y) =>
|
|
1148
|
+
value: u,
|
|
1149
|
+
onChange: (y) => c(y.target.value),
|
|
1146
1150
|
placeholder: "https://example.com",
|
|
1147
1151
|
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"
|
|
1148
1152
|
}
|
|
@@ -1151,7 +1155,7 @@ const ch = [
|
|
|
1151
1155
|
/* @__PURE__ */ f.jsx(
|
|
1152
1156
|
"button",
|
|
1153
1157
|
{
|
|
1154
|
-
onClick: () =>
|
|
1158
|
+
onClick: () => l(!1),
|
|
1155
1159
|
className: "rounded-xl px-3 py-2 text-sm text-white/60 hover:text-white",
|
|
1156
1160
|
children: "Cancel"
|
|
1157
1161
|
}
|
|
@@ -1159,7 +1163,7 @@ const ch = [
|
|
|
1159
1163
|
/* @__PURE__ */ f.jsx(
|
|
1160
1164
|
"button",
|
|
1161
1165
|
{
|
|
1162
|
-
onClick:
|
|
1166
|
+
onClick: E,
|
|
1163
1167
|
className: "rounded-xl bg-cyan-500/20 px-4 py-2 text-sm text-cyan-300 hover:bg-cyan-500/30",
|
|
1164
1168
|
children: "Insert"
|
|
1165
1169
|
}
|
|
@@ -1769,8 +1773,8 @@ function fb(e, t, n, a) {
|
|
|
1769
1773
|
function xp(e, t) {
|
|
1770
1774
|
return e.Uri.parse(t);
|
|
1771
1775
|
}
|
|
1772
|
-
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:
|
|
1773
|
-
let [
|
|
1776
|
+
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 }) {
|
|
1777
|
+
let [S, w] = ee(!1), [T, A] = ee(!0), x = X(null), C = X(null), k = X(null), N = X(y), _ = X(v), M = X(!1);
|
|
1774
1778
|
_p(() => {
|
|
1775
1779
|
let L = Ap.init();
|
|
1776
1780
|
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();
|
|
@@ -1779,24 +1783,24 @@ function hb({ original: e, modified: t, language: n, originalLanguage: a, modifi
|
|
|
1779
1783
|
let L = x.current.getOriginalEditor(), B = vt(C.current, e || "", a || n || "text", i || "");
|
|
1780
1784
|
B !== L.getModel() && L.setModel(B);
|
|
1781
1785
|
}
|
|
1782
|
-
}, [i],
|
|
1786
|
+
}, [i], S), Ce(() => {
|
|
1783
1787
|
if (x.current && C.current) {
|
|
1784
1788
|
let L = x.current.getModifiedEditor(), B = vt(C.current, t || "", r || n || "text", o || "");
|
|
1785
1789
|
B !== L.getModel() && L.setModel(B);
|
|
1786
1790
|
}
|
|
1787
|
-
}, [o],
|
|
1791
|
+
}, [o], S), Ce(() => {
|
|
1788
1792
|
let L = x.current.getModifiedEditor();
|
|
1789
1793
|
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());
|
|
1790
|
-
}, [t],
|
|
1794
|
+
}, [t], S), Ce(() => {
|
|
1791
1795
|
x.current?.getModel()?.original.setValue(e || "");
|
|
1792
|
-
}, [e],
|
|
1796
|
+
}, [e], S), Ce(() => {
|
|
1793
1797
|
let { original: L, modified: B } = x.current.getModel();
|
|
1794
1798
|
C.current.editor.setModelLanguage(L, a || n || "text"), C.current.editor.setModelLanguage(B, r || n || "text");
|
|
1795
|
-
}, [n, a, r],
|
|
1799
|
+
}, [n, a, r], S), Ce(() => {
|
|
1796
1800
|
C.current?.editor.setTheme(u);
|
|
1797
|
-
}, [u],
|
|
1801
|
+
}, [u], S), Ce(() => {
|
|
1798
1802
|
x.current?.updateOptions(d);
|
|
1799
|
-
}, [d],
|
|
1803
|
+
}, [d], S);
|
|
1800
1804
|
let F = mt(() => {
|
|
1801
1805
|
if (!C.current) return;
|
|
1802
1806
|
_.current(C.current);
|
|
@@ -1806,15 +1810,15 @@ function hb({ original: e, modified: t, language: n, originalLanguage: a, modifi
|
|
|
1806
1810
|
!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);
|
|
1807
1811
|
}, [d, u, F]);
|
|
1808
1812
|
se(() => {
|
|
1809
|
-
|
|
1810
|
-
}, [
|
|
1811
|
-
!T && !
|
|
1812
|
-
}, [T,
|
|
1813
|
+
S && N.current(x.current, C.current);
|
|
1814
|
+
}, [S]), se(() => {
|
|
1815
|
+
!T && !S && D();
|
|
1816
|
+
}, [T, S, D]);
|
|
1813
1817
|
function U() {
|
|
1814
1818
|
let L = x.current?.getModel();
|
|
1815
1819
|
s || L?.original?.dispose(), l || L?.modified?.dispose(), x.current?.dispose();
|
|
1816
1820
|
}
|
|
1817
|
-
return te.createElement(Np, { width: m, height: p, isEditorReady:
|
|
1821
|
+
return te.createElement(Np, { width: m, height: p, isEditorReady: S, loading: c, _ref: k, className: h, wrapperProps: E });
|
|
1818
1822
|
}
|
|
1819
1823
|
var bb = hb;
|
|
1820
1824
|
ln(bb);
|
|
@@ -1825,8 +1829,8 @@ function yb(e) {
|
|
|
1825
1829
|
}, [e]), t.current;
|
|
1826
1830
|
}
|
|
1827
1831
|
var Eb = yb, kn = /* @__PURE__ */ new Map();
|
|
1828
|
-
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:
|
|
1829
|
-
let [A, x] = ee(!1), [C, k] = ee(!0), N = X(null), _ = X(null), M = X(null), F = X(
|
|
1832
|
+
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: T = Kt }) {
|
|
1833
|
+
let [A, 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);
|
|
1830
1834
|
_p(() => {
|
|
1831
1835
|
let b = Ap.init();
|
|
1832
1836
|
return b.then((I) => (N.current = I) && k(!1)).catch((I) => I?.type !== "cancelation" && console.error("Monaco initialization: error:", I)), () => _.current ? q() : b.cancel();
|
|
@@ -1879,7 +1883,7 @@ function Sb({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: a, lan
|
|
|
1879
1883
|
function q() {
|
|
1880
1884
|
U.current?.dispose(), p ? d && kn.set(i, _.current.saveViewState()) : _.current.getModel()?.dispose(), _.current.dispose();
|
|
1881
1885
|
}
|
|
1882
|
-
return te.createElement(Np, { width: m, height: h, isEditorReady: A, loading: l, _ref: M, className: E, wrapperProps:
|
|
1886
|
+
return te.createElement(Np, { width: m, height: h, isEditorReady: A, loading: l, _ref: M, className: E, wrapperProps: v });
|
|
1883
1887
|
}
|
|
1884
1888
|
var vb = Sb, kp = ln(vb), wb = kp, xa = { exports: {} }, Ht = {};
|
|
1885
1889
|
/**
|
|
@@ -1932,11 +1936,11 @@ function Ab() {
|
|
|
1932
1936
|
return b.$$typeof === M ? null : b.displayName || b.name || null;
|
|
1933
1937
|
if (typeof b == "string") return b;
|
|
1934
1938
|
switch (b) {
|
|
1935
|
-
case y:
|
|
1936
|
-
return "Fragment";
|
|
1937
1939
|
case v:
|
|
1938
|
-
return "
|
|
1940
|
+
return "Fragment";
|
|
1939
1941
|
case S:
|
|
1942
|
+
return "Profiler";
|
|
1943
|
+
case y:
|
|
1940
1944
|
return "StrictMode";
|
|
1941
1945
|
case x:
|
|
1942
1946
|
return "Suspense";
|
|
@@ -1990,7 +1994,7 @@ function Ab() {
|
|
|
1990
1994
|
}
|
|
1991
1995
|
}
|
|
1992
1996
|
function a(b) {
|
|
1993
|
-
if (b ===
|
|
1997
|
+
if (b === v) return "<>";
|
|
1994
1998
|
if (typeof b == "object" && b !== null && b.$$typeof === N)
|
|
1995
1999
|
return "<...>";
|
|
1996
2000
|
try {
|
|
@@ -2119,7 +2123,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2119
2123
|
function p(b) {
|
|
2120
2124
|
return typeof b == "object" && b !== null && b.$$typeof === h;
|
|
2121
2125
|
}
|
|
2122
|
-
var m = te, h = Symbol.for("react.transitional.element"), E = Symbol.for("react.portal"),
|
|
2126
|
+
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"), 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() {
|
|
2123
2127
|
return null;
|
|
2124
2128
|
};
|
|
2125
2129
|
m = {
|
|
@@ -2131,7 +2135,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2131
2135
|
m,
|
|
2132
2136
|
i
|
|
2133
2137
|
)(), z = L(a(i)), q = {};
|
|
2134
|
-
Rn.Fragment =
|
|
2138
|
+
Rn.Fragment = v, Rn.jsx = function(b, I, $) {
|
|
2135
2139
|
var H = 1e4 > F.recentlyCreatedOwnerStacks++;
|
|
2136
2140
|
return c(
|
|
2137
2141
|
b,
|
|
@@ -2190,9 +2194,9 @@ const _b = Be(
|
|
|
2190
2194
|
textClassName: m,
|
|
2191
2195
|
style: h,
|
|
2192
2196
|
contentStyle: E,
|
|
2193
|
-
iconStyle:
|
|
2194
|
-
loaderStyle:
|
|
2195
|
-
textStyle:
|
|
2197
|
+
iconStyle: v,
|
|
2198
|
+
loaderStyle: y,
|
|
2199
|
+
textStyle: S,
|
|
2196
2200
|
type: w = "button",
|
|
2197
2201
|
...T
|
|
2198
2202
|
}, A) {
|
|
@@ -2249,7 +2253,7 @@ const _b = Be(
|
|
|
2249
2253
|
width: N[s],
|
|
2250
2254
|
height: N[s],
|
|
2251
2255
|
flexShrink: 0,
|
|
2252
|
-
...
|
|
2256
|
+
...y
|
|
2253
2257
|
}
|
|
2254
2258
|
}
|
|
2255
2259
|
),
|
|
@@ -2260,7 +2264,7 @@ const _b = Be(
|
|
|
2260
2264
|
m,
|
|
2261
2265
|
"whitespace-nowrap text-foreground"
|
|
2262
2266
|
),
|
|
2263
|
-
style:
|
|
2267
|
+
style: S,
|
|
2264
2268
|
children: r
|
|
2265
2269
|
}
|
|
2266
2270
|
)
|
|
@@ -2276,7 +2280,7 @@ const _b = Be(
|
|
|
2276
2280
|
style: {
|
|
2277
2281
|
width: N[s],
|
|
2278
2282
|
height: N[s],
|
|
2279
|
-
...
|
|
2283
|
+
...v
|
|
2280
2284
|
},
|
|
2281
2285
|
children: t
|
|
2282
2286
|
}
|
|
@@ -2288,7 +2292,7 @@ const _b = Be(
|
|
|
2288
2292
|
m,
|
|
2289
2293
|
"whitespace-nowrap text-current"
|
|
2290
2294
|
),
|
|
2291
|
-
style:
|
|
2295
|
+
style: S,
|
|
2292
2296
|
children: e
|
|
2293
2297
|
}
|
|
2294
2298
|
),
|
|
@@ -2303,7 +2307,7 @@ const _b = Be(
|
|
|
2303
2307
|
style: {
|
|
2304
2308
|
width: N[s],
|
|
2305
2309
|
height: N[s],
|
|
2306
|
-
...
|
|
2310
|
+
...v
|
|
2307
2311
|
},
|
|
2308
2312
|
children: n
|
|
2309
2313
|
}
|
|
@@ -2336,9 +2340,9 @@ const Nc = (e) => {
|
|
|
2336
2340
|
overlay: m,
|
|
2337
2341
|
overlayColor: h = "hsl(var(--background) / 0.6)",
|
|
2338
2342
|
clickable: E,
|
|
2339
|
-
onClick:
|
|
2340
|
-
fallback:
|
|
2341
|
-
loading:
|
|
2343
|
+
onClick: v,
|
|
2344
|
+
fallback: y,
|
|
2345
|
+
loading: S = "lazy",
|
|
2342
2346
|
className: w,
|
|
2343
2347
|
imageClassName: T,
|
|
2344
2348
|
overlayClassName: A,
|
|
@@ -2400,7 +2404,7 @@ const Nc = (e) => {
|
|
|
2400
2404
|
backgroundColor: "hsl(var(--muted))",
|
|
2401
2405
|
..._
|
|
2402
2406
|
}, Y = (z) => {
|
|
2403
|
-
E && (z.key === "Enter" || z.key === " ") && (z.preventDefault(),
|
|
2407
|
+
E && (z.key === "Enter" || z.key === " ") && (z.preventDefault(), v?.(z));
|
|
2404
2408
|
};
|
|
2405
2409
|
return /* @__PURE__ */ R.jsxs(
|
|
2406
2410
|
"div",
|
|
@@ -2410,7 +2414,7 @@ const Nc = (e) => {
|
|
|
2410
2414
|
tabIndex: E ? 0 : void 0,
|
|
2411
2415
|
"aria-label": a,
|
|
2412
2416
|
title: r,
|
|
2413
|
-
onClick: E ?
|
|
2417
|
+
onClick: E ? v : void 0,
|
|
2414
2418
|
onKeyDown: Y,
|
|
2415
2419
|
style: U,
|
|
2416
2420
|
className: w,
|
|
@@ -2421,11 +2425,11 @@ const Nc = (e) => {
|
|
|
2421
2425
|
{
|
|
2422
2426
|
src: n,
|
|
2423
2427
|
alt: a,
|
|
2424
|
-
loading:
|
|
2428
|
+
loading: S,
|
|
2425
2429
|
style: L,
|
|
2426
2430
|
className: T
|
|
2427
2431
|
}
|
|
2428
|
-
) : /* @__PURE__ */ R.jsx("div", { style: G, className: x, children:
|
|
2432
|
+
) : /* @__PURE__ */ R.jsx("div", { style: G, className: x, children: y || "No Image" }),
|
|
2429
2433
|
m && /* @__PURE__ */ R.jsx("div", { style: B, className: A, children: m })
|
|
2430
2434
|
]
|
|
2431
2435
|
}
|
|
@@ -2731,10 +2735,10 @@ const Qb = ln(
|
|
|
2731
2735
|
countClassName: m,
|
|
2732
2736
|
countStyle: h,
|
|
2733
2737
|
iconClassName: E,
|
|
2734
|
-
iconStyle:
|
|
2735
|
-
onClick:
|
|
2738
|
+
iconStyle: v,
|
|
2739
|
+
onClick: y
|
|
2736
2740
|
}) => {
|
|
2737
|
-
const
|
|
2741
|
+
const S = {
|
|
2738
2742
|
sm: "px-3 py-0.5 text-xs",
|
|
2739
2743
|
md: "px-4 py-1 text-xs",
|
|
2740
2744
|
lg: "px-5 py-1.5 text-sm"
|
|
@@ -2746,7 +2750,7 @@ const Qb = ln(
|
|
|
2746
2750
|
return /* @__PURE__ */ R.jsxs(
|
|
2747
2751
|
"span",
|
|
2748
2752
|
{
|
|
2749
|
-
onClick:
|
|
2753
|
+
onClick: y,
|
|
2750
2754
|
style: c,
|
|
2751
2755
|
className: V(
|
|
2752
2756
|
u,
|
|
@@ -2755,8 +2759,8 @@ const Qb = ln(
|
|
|
2755
2759
|
w[a],
|
|
2756
2760
|
// ✅ single source of truth
|
|
2757
2761
|
i ? "rounded-full" : "rounded-md",
|
|
2758
|
-
|
|
2759
|
-
|
|
2762
|
+
S[r],
|
|
2763
|
+
y && "cursor-pointer " + (a === "solid" ? "hover:bg-accent/80" : a === "outline" ? "hover:bg-primary/10" : "hover:bg-primary/20")
|
|
2760
2764
|
),
|
|
2761
2765
|
children: [
|
|
2762
2766
|
o && /* @__PURE__ */ R.jsx(
|
|
@@ -2786,7 +2790,7 @@ const Qb = ln(
|
|
|
2786
2790
|
t && n === "left" && /* @__PURE__ */ R.jsx(
|
|
2787
2791
|
"span",
|
|
2788
2792
|
{
|
|
2789
|
-
style:
|
|
2793
|
+
style: v,
|
|
2790
2794
|
className: V(E, "flex items-center"),
|
|
2791
2795
|
children: t
|
|
2792
2796
|
}
|
|
@@ -2795,7 +2799,7 @@ const Qb = ln(
|
|
|
2795
2799
|
t && n === "right" && /* @__PURE__ */ R.jsx(
|
|
2796
2800
|
"span",
|
|
2797
2801
|
{
|
|
2798
|
-
style:
|
|
2802
|
+
style: v,
|
|
2799
2803
|
className: V(E, "flex items-center"),
|
|
2800
2804
|
children: t
|
|
2801
2805
|
}
|
|
@@ -2978,18 +2982,18 @@ function Yp(e, t) {
|
|
|
2978
2982
|
delta: 0,
|
|
2979
2983
|
timestamp: 0,
|
|
2980
2984
|
isProcessing: !1
|
|
2981
|
-
}, i = () => n = !0, o = In.reduce((
|
|
2982
|
-
const
|
|
2983
|
-
n = !1,
|
|
2984
|
-
},
|
|
2985
|
+
}, 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 = () => {
|
|
2986
|
+
const y = tt.useManualTiming, S = y ? r.timestamp : performance.now();
|
|
2987
|
+
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));
|
|
2988
|
+
}, v = () => {
|
|
2985
2989
|
n = !0, a = !0, r.isProcessing || e(E);
|
|
2986
2990
|
};
|
|
2987
|
-
return { schedule: In.reduce((
|
|
2988
|
-
const w = o[
|
|
2989
|
-
return S
|
|
2990
|
-
}, {}), cancel: (
|
|
2991
|
-
for (let
|
|
2992
|
-
o[In[
|
|
2991
|
+
return { schedule: In.reduce((y, S) => {
|
|
2992
|
+
const w = o[S];
|
|
2993
|
+
return y[S] = (T, A = !1, x = !1) => (n || v(), w.schedule(T, A, x)), y;
|
|
2994
|
+
}, {}), cancel: (y) => {
|
|
2995
|
+
for (let S = 0; S < In.length; S++)
|
|
2996
|
+
o[In[S]].cancel(y);
|
|
2993
2997
|
}, state: r, steps: o };
|
|
2994
2998
|
}
|
|
2995
2999
|
const { schedule: ne, cancel: nt, state: me, steps: ka } = /* @__PURE__ */ Yp(typeof requestAnimationFrame < "u" ? requestAnimationFrame : De, !0);
|
|
@@ -3346,27 +3350,27 @@ function Zn(e = oe.visualDuration, t = oe.bounce) {
|
|
|
3346
3350
|
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({
|
|
3347
3351
|
...n,
|
|
3348
3352
|
velocity: -/* @__PURE__ */ Le(n.velocity || 0)
|
|
3349
|
-
}), h = p || 0, E = u / (2 * Math.sqrt(l * c)),
|
|
3350
|
-
a || (a =
|
|
3353
|
+
}), 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;
|
|
3354
|
+
a || (a = S ? oe.restSpeed.granular : oe.restSpeed.default), r || (r = S ? oe.restDelta.granular : oe.restDelta.default);
|
|
3351
3355
|
let w, T, A, x, C, k;
|
|
3352
3356
|
if (E < 1)
|
|
3353
|
-
A = Xa(
|
|
3354
|
-
const M = Math.exp(-E *
|
|
3355
|
-
return o - M * (x * Math.sin(A * _) +
|
|
3356
|
-
}, C = E *
|
|
3357
|
+
A = Xa(y, E), x = (h + E * y * v) / A, w = (_) => {
|
|
3358
|
+
const M = Math.exp(-E * y * _);
|
|
3359
|
+
return o - M * (x * Math.sin(A * _) + v * Math.cos(A * _));
|
|
3360
|
+
}, C = E * y * x + v * A, k = E * y * v - x * A, T = (_) => Math.exp(-E * y * _) * (C * Math.sin(A * _) + k * Math.cos(A * _));
|
|
3357
3361
|
else if (E === 1) {
|
|
3358
|
-
w = (M) => o - Math.exp(-
|
|
3359
|
-
const _ = h +
|
|
3360
|
-
T = (M) => Math.exp(-
|
|
3362
|
+
w = (M) => o - Math.exp(-y * M) * (v + (h + y * v) * M);
|
|
3363
|
+
const _ = h + y * v;
|
|
3364
|
+
T = (M) => Math.exp(-y * M) * (y * _ * M - h);
|
|
3361
3365
|
} else {
|
|
3362
|
-
const _ =
|
|
3366
|
+
const _ = y * Math.sqrt(E * E - 1);
|
|
3363
3367
|
w = (U) => {
|
|
3364
|
-
const L = Math.exp(-E *
|
|
3365
|
-
return o - L * ((h + E *
|
|
3368
|
+
const L = Math.exp(-E * y * U), B = Math.min(_ * U, 300);
|
|
3369
|
+
return o - L * ((h + E * y * v) * Math.sinh(B) + _ * v * Math.cosh(B)) / _;
|
|
3366
3370
|
};
|
|
3367
|
-
const M = (h + E *
|
|
3371
|
+
const M = (h + E * y * v) / _, F = E * y * M - v * _, D = E * y * v - M * _;
|
|
3368
3372
|
T = (U) => {
|
|
3369
|
-
const L = Math.exp(-E *
|
|
3373
|
+
const L = Math.exp(-E * y * U), B = Math.min(_ * U, 300);
|
|
3370
3374
|
return L * (F * Math.sinh(B) + D * Math.cosh(B));
|
|
3371
3375
|
};
|
|
3372
3376
|
}
|
|
@@ -3375,7 +3379,7 @@ function Zn(e = oe.visualDuration, t = oe.bounce) {
|
|
|
3375
3379
|
velocity: (_) => /* @__PURE__ */ ke(T(_)),
|
|
3376
3380
|
next: (_) => {
|
|
3377
3381
|
if (!m && E < 1) {
|
|
3378
|
-
const F = Math.exp(-E *
|
|
3382
|
+
const F = Math.exp(-E * y * _), D = Math.sin(A * _), U = Math.cos(A * _), L = o - F * (x * D + v * U), B = /* @__PURE__ */ ke(F * (C * D + k * U));
|
|
3379
3383
|
return s.done = Math.abs(B) <= a && Math.abs(o - L) <= r, s.value = s.done ? o : L, s;
|
|
3380
3384
|
}
|
|
3381
3385
|
const M = w(_);
|
|
@@ -3411,11 +3415,11 @@ function Za({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: a = 3
|
|
|
3411
3415
|
value: d
|
|
3412
3416
|
}, 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;
|
|
3413
3417
|
let E = n * t;
|
|
3414
|
-
const
|
|
3415
|
-
|
|
3416
|
-
const
|
|
3417
|
-
const N =
|
|
3418
|
-
p.done = Math.abs(N) <= u, p.value = p.done ?
|
|
3418
|
+
const v = d + E, y = o === void 0 ? v : o(v);
|
|
3419
|
+
y !== v && (E = y - d);
|
|
3420
|
+
const S = (k) => -E * Math.exp(-k / a), w = (k) => y + S(k), T = (k) => {
|
|
3421
|
+
const N = S(k), _ = w(k);
|
|
3422
|
+
p.done = Math.abs(N) <= u, p.value = p.done ? y : _;
|
|
3419
3423
|
};
|
|
3420
3424
|
let A, x;
|
|
3421
3425
|
const C = (k) => {
|
|
@@ -3577,10 +3581,10 @@ class Qn extends zr {
|
|
|
3577
3581
|
const { generator: a, totalDuration: r, mixKeyframes: i, mirroredGenerator: o, resolvedDuration: s, calculatedDuration: l } = this;
|
|
3578
3582
|
if (this.startTime === null)
|
|
3579
3583
|
return a.next(0);
|
|
3580
|
-
const { delay: u = 0, keyframes: c, repeat: d, repeatType: p, repeatDelay: m, type: h, onUpdate: E, finalKeyframe:
|
|
3584
|
+
const { delay: u = 0, keyframes: c, repeat: d, repeatType: p, repeatDelay: m, type: h, onUpdate: E, finalKeyframe: v } = this.options;
|
|
3581
3585
|
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);
|
|
3582
|
-
const
|
|
3583
|
-
this.currentTime = Math.max(
|
|
3586
|
+
const y = this.currentTime - u * (this.playbackSpeed >= 0 ? 1 : -1), S = this.playbackSpeed >= 0 ? y < 0 : y > r;
|
|
3587
|
+
this.currentTime = Math.max(y, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = r);
|
|
3584
3588
|
let w = this.currentTime, T = a;
|
|
3585
3589
|
if (d) {
|
|
3586
3590
|
const k = Math.min(this.currentTime, r) / s;
|
|
@@ -3588,11 +3592,11 @@ class Qn extends zr {
|
|
|
3588
3592
|
!_ && 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;
|
|
3589
3593
|
}
|
|
3590
3594
|
let A;
|
|
3591
|
-
|
|
3595
|
+
S ? (this.delayState.value = c[0], A = this.delayState) : A = T.next(w), i && !S && (A.value = i(A.value));
|
|
3592
3596
|
let { done: x } = A;
|
|
3593
|
-
!
|
|
3597
|
+
!S && l !== null && (x = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
|
|
3594
3598
|
const C = this.holdTime === null && (this.state === "finished" || this.state === "running" && x);
|
|
3595
|
-
return C && h !== Za && (A.value = sa(c, this.options,
|
|
3599
|
+
return C && h !== Za && (A.value = sa(c, this.options, v, this.speed)), E && E(A.value), C && this.finish(), A;
|
|
3596
3600
|
}
|
|
3597
3601
|
/**
|
|
3598
3602
|
* Allows the returned animation to be awaited or promise-chained. Currently
|
|
@@ -4116,7 +4120,7 @@ class _E extends zr {
|
|
|
4116
4120
|
element: c,
|
|
4117
4121
|
...d
|
|
4118
4122
|
}, m = c?.KeyframeResolver || Vr;
|
|
4119
|
-
this.keyframeResolver = new m(s, (h, E,
|
|
4123
|
+
this.keyframeResolver = new m(s, (h, E, v) => this.onKeyframesResolved(h, E, p, !v), l, u, c), this.keyframeResolver?.scheduleResolve();
|
|
4120
4124
|
}
|
|
4121
4125
|
onKeyframesResolved(t, n, a, r) {
|
|
4122
4126
|
this.keyframeResolver = void 0;
|
|
@@ -4590,22 +4594,22 @@ function wg(e, t, { delay: n = 0, transitionOverride: a, type: r } = {}) {
|
|
|
4590
4594
|
const E = {
|
|
4591
4595
|
delay: n,
|
|
4592
4596
|
...Hr(i || {}, p)
|
|
4593
|
-
},
|
|
4594
|
-
if (
|
|
4597
|
+
}, v = m.get();
|
|
4598
|
+
if (v !== void 0 && !m.isAnimating() && !Array.isArray(h) && h === v && !E.velocity) {
|
|
4595
4599
|
ne.update(() => m.set(h));
|
|
4596
4600
|
continue;
|
|
4597
4601
|
}
|
|
4598
|
-
let
|
|
4602
|
+
let y = !1;
|
|
4599
4603
|
if (window.MotionHandoffAnimation) {
|
|
4600
4604
|
const T = vg(e);
|
|
4601
4605
|
if (T) {
|
|
4602
4606
|
const A = window.MotionHandoffAnimation(T, p, ne);
|
|
4603
|
-
A !== null && (E.startTime = A,
|
|
4607
|
+
A !== null && (E.startTime = A, y = !0);
|
|
4604
4608
|
}
|
|
4605
4609
|
}
|
|
4606
4610
|
sr(e, p);
|
|
4607
|
-
const
|
|
4608
|
-
m.start(Wr(p, m, h,
|
|
4611
|
+
const S = u ?? e.shouldReduceMotion;
|
|
4612
|
+
m.start(Wr(p, m, h, S && Eg.has(p) ? { type: !1 } : E, e, y));
|
|
4609
4613
|
const w = m.animation;
|
|
4610
4614
|
w && c.push(w);
|
|
4611
4615
|
}
|
|
@@ -4914,26 +4918,26 @@ function oS(e, t, n = {}) {
|
|
|
4914
4918
|
let s = !1, l = !1, u;
|
|
4915
4919
|
const c = () => {
|
|
4916
4920
|
o.removeEventListener("pointerleave", h);
|
|
4917
|
-
}, d = (
|
|
4918
|
-
u && (u(
|
|
4919
|
-
}, p = (
|
|
4920
|
-
s = !1, window.removeEventListener("pointerup", p), window.removeEventListener("pointercancel", p), l && (l = !1, d(
|
|
4921
|
+
}, d = (v) => {
|
|
4922
|
+
u && (u(v), u = void 0), c();
|
|
4923
|
+
}, p = (v) => {
|
|
4924
|
+
s = !1, window.removeEventListener("pointerup", p), window.removeEventListener("pointercancel", p), l && (l = !1, d(v));
|
|
4921
4925
|
}, m = () => {
|
|
4922
4926
|
s = !0, window.addEventListener("pointerup", p, r), window.addEventListener("pointercancel", p, r);
|
|
4923
|
-
}, h = (
|
|
4924
|
-
if (
|
|
4927
|
+
}, h = (v) => {
|
|
4928
|
+
if (v.pointerType !== "touch") {
|
|
4925
4929
|
if (s) {
|
|
4926
4930
|
l = !0;
|
|
4927
4931
|
return;
|
|
4928
4932
|
}
|
|
4929
|
-
d(
|
|
4933
|
+
d(v);
|
|
4930
4934
|
}
|
|
4931
|
-
}, E = (
|
|
4932
|
-
if (!iS(
|
|
4935
|
+
}, E = (v) => {
|
|
4936
|
+
if (!iS(v))
|
|
4933
4937
|
return;
|
|
4934
4938
|
l = !1;
|
|
4935
|
-
const
|
|
4936
|
-
typeof
|
|
4939
|
+
const y = t(o, v);
|
|
4940
|
+
typeof y == "function" && (u = y, o.addEventListener("pointerleave", h, r));
|
|
4937
4941
|
};
|
|
4938
4942
|
o.addEventListener("pointerenter", E, r), o.addEventListener("pointerdown", m, r);
|
|
4939
4943
|
}), i;
|
|
@@ -5759,16 +5763,16 @@ function XS(e) {
|
|
|
5759
5763
|
function s(u) {
|
|
5760
5764
|
const { props: c } = e, d = qg(e.parent) || {}, p = [], m = /* @__PURE__ */ new Set();
|
|
5761
5765
|
let h = {}, E = 1 / 0;
|
|
5762
|
-
for (let
|
|
5763
|
-
const
|
|
5764
|
-
x === !1 && (E =
|
|
5765
|
-
let C = T === d[
|
|
5766
|
+
for (let y = 0; y < YS; y++) {
|
|
5767
|
+
const S = qS[y], w = n[S], T = c[S] !== void 0 ? c[S] : d[S], A = an(T), x = S === u ? w.isActive : null;
|
|
5768
|
+
x === !1 && (E = y);
|
|
5769
|
+
let C = T === d[S] && T !== c[S] && A;
|
|
5766
5770
|
if (C && (a || r) && e.manuallyAnimateOnMount && (C = !1), w.protectedKeys = { ...h }, // If it isn't active and hasn't *just* been set as inactive
|
|
5767
5771
|
!w.isActive && x === null || // If we didn't and don't have any defined prop for this animation type
|
|
5768
5772
|
!T && !w.prevProp || // Or if the prop doesn't define an animation
|
|
5769
5773
|
la(T) || typeof T == "boolean")
|
|
5770
5774
|
continue;
|
|
5771
|
-
if (
|
|
5775
|
+
if (S === "exit" && w.isActive && x !== !0) {
|
|
5772
5776
|
w.prevResolvedValues && (h = {
|
|
5773
5777
|
...h,
|
|
5774
5778
|
...w.prevResolvedValues
|
|
@@ -5777,10 +5781,10 @@ function XS(e) {
|
|
|
5777
5781
|
}
|
|
5778
5782
|
const k = ZS(w.prevProp, T);
|
|
5779
5783
|
let N = k || // If we're making this variant active, we want to always make it active
|
|
5780
|
-
|
|
5781
|
-
|
|
5784
|
+
S === u && w.isActive && !C && A || // If we removed a higher-priority variant (i is in reverse order)
|
|
5785
|
+
y > E && A, _ = !1;
|
|
5782
5786
|
const M = Array.isArray(T) ? T : [T];
|
|
5783
|
-
let F = M.reduce(i(
|
|
5787
|
+
let F = M.reduce(i(S), {});
|
|
5784
5788
|
x === !1 && (F = {});
|
|
5785
5789
|
const { prevResolvedValues: D = {} } = w, U = {
|
|
5786
5790
|
...D,
|
|
@@ -5800,7 +5804,7 @@ function XS(e) {
|
|
|
5800
5804
|
w.prevProp = T, w.prevResolvedValues = F, w.isActive && (h = { ...h, ...F }), (a || r) && e.blockInitialAnimation && (N = !1);
|
|
5801
5805
|
const B = C && k;
|
|
5802
5806
|
N && (!B || _) && p.push(...M.map((G) => {
|
|
5803
|
-
const Y = { type:
|
|
5807
|
+
const Y = { type: S };
|
|
5804
5808
|
if (typeof G == "string" && (a || r) && !B && e.manuallyAnimateOnMount && e.parent) {
|
|
5805
5809
|
const { parent: z } = e, q = pt(z, G);
|
|
5806
5810
|
if (z.enteringChildren && q) {
|
|
@@ -5815,18 +5819,18 @@ function XS(e) {
|
|
|
5815
5819
|
}));
|
|
5816
5820
|
}
|
|
5817
5821
|
if (m.size) {
|
|
5818
|
-
const
|
|
5822
|
+
const y = {};
|
|
5819
5823
|
if (typeof c.initial != "boolean") {
|
|
5820
|
-
const
|
|
5821
|
-
|
|
5824
|
+
const S = pt(e, Array.isArray(c.initial) ? c.initial[0] : c.initial);
|
|
5825
|
+
S && S.transition && (y.transition = S.transition);
|
|
5822
5826
|
}
|
|
5823
|
-
m.forEach((
|
|
5824
|
-
const w = e.getBaseTarget(
|
|
5825
|
-
T && (T.liveStyle = !0), S
|
|
5826
|
-
}), p.push({ animation:
|
|
5827
|
+
m.forEach((S) => {
|
|
5828
|
+
const w = e.getBaseTarget(S), T = e.getValue(S);
|
|
5829
|
+
T && (T.liveStyle = !0), y[S] = w ?? null;
|
|
5830
|
+
}), p.push({ animation: y });
|
|
5827
5831
|
}
|
|
5828
|
-
let
|
|
5829
|
-
return a && (c.initial === !1 || c.initial === c.animate) && !e.manuallyAnimateOnMount && (
|
|
5832
|
+
let v = !!p.length;
|
|
5833
|
+
return a && (c.initial === !1 || c.initial === c.animate) && !e.manuallyAnimateOnMount && (v = !1), a = !1, r = !1, v ? t(p) : Promise.resolve();
|
|
5830
5834
|
}
|
|
5831
5835
|
function l(u, c) {
|
|
5832
5836
|
if (n[u].isActive === c)
|
|
@@ -6137,15 +6141,15 @@ function nm({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
6137
6141
|
this.target = void 0, this.relativeTarget = void 0;
|
|
6138
6142
|
return;
|
|
6139
6143
|
}
|
|
6140
|
-
const m = this.options.transition || l.getDefaultTransition() || Dv, { onLayoutAnimationStart: h, onLayoutAnimationComplete: E } = l.getProps(),
|
|
6141
|
-
if (this.options.layoutRoot || this.resumeFrom ||
|
|
6144
|
+
const m = this.options.transition || l.getDefaultTransition() || Dv, { onLayoutAnimationStart: h, onLayoutAnimationComplete: E } = l.getProps(), v = !this.targetLayout || !Qg(this.targetLayout, p), y = !c && d;
|
|
6145
|
+
if (this.options.layoutRoot || this.resumeFrom || y || c && (v || !this.currentAnimation)) {
|
|
6142
6146
|
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
|
|
6143
|
-
const
|
|
6147
|
+
const S = {
|
|
6144
6148
|
...Hr(m, "layout"),
|
|
6145
6149
|
onPlay: h,
|
|
6146
6150
|
onComplete: E
|
|
6147
6151
|
};
|
|
6148
|
-
(l.shouldReduceMotion || this.options.layoutRoot) && (
|
|
6152
|
+
(l.shouldReduceMotion || this.options.layoutRoot) && (S.delay = 0, S.type = !1), this.startAnimation(S), this.setAnimationOrigin(u, y);
|
|
6149
6153
|
} else
|
|
6150
6154
|
c || Ad(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
|
|
6151
6155
|
this.targetLayout = p;
|
|
@@ -6391,12 +6395,12 @@ function nm({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
6391
6395
|
setAnimationOrigin(i, o = !1) {
|
|
6392
6396
|
const s = this.snapshot, l = s ? s.latestValues : {}, u = { ...this.latestValues }, c = Nt();
|
|
6393
6397
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !o;
|
|
6394
|
-
const d = ce(), p = s ? s.source : void 0, m = this.layout ? this.layout.source : void 0, h = p !== m, E = this.getStack(),
|
|
6398
|
+
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));
|
|
6395
6399
|
this.animationProgress = 0;
|
|
6396
|
-
let
|
|
6400
|
+
let S;
|
|
6397
6401
|
this.mixTargetDelta = (w) => {
|
|
6398
6402
|
const T = w / 1e3;
|
|
6399
|
-
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),
|
|
6403
|
+
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), S && sv(this.relativeTarget, S) && (this.isProjectionDirty = !1), S || (S = ce()), Me(S, this.relativeTarget)), h && (this.animationValues = u, cv(u, l, this.latestValues, T, y, v)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = T;
|
|
6400
6404
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
6401
6405
|
}
|
|
6402
6406
|
startAnimation(i) {
|
|
@@ -6515,13 +6519,13 @@ function nm({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
6515
6519
|
for (const m in mr) {
|
|
6516
6520
|
if (u[m] === void 0)
|
|
6517
6521
|
continue;
|
|
6518
|
-
const { correct: h, applyTo: E, isCSSVariable:
|
|
6522
|
+
const { correct: h, applyTo: E, isCSSVariable: v } = mr[m], y = c === "none" ? u[m] : h(u[m], l);
|
|
6519
6523
|
if (E) {
|
|
6520
|
-
const
|
|
6521
|
-
for (let w = 0; w <
|
|
6522
|
-
i[E[w]] =
|
|
6524
|
+
const S = E.length;
|
|
6525
|
+
for (let w = 0; w < S; w++)
|
|
6526
|
+
i[E[w]] = y;
|
|
6523
6527
|
} else
|
|
6524
|
-
|
|
6528
|
+
v ? this.options.visualElement.renderState.vars[m] = y : i[m] = y;
|
|
6525
6529
|
}
|
|
6526
6530
|
this.options.layoutId && (i.pointerEvents = l === this ? zn(o?.pointerEvents) || "" : "none");
|
|
6527
6531
|
}
|
|
@@ -6735,10 +6739,10 @@ function jv({ children: e, isPresent: t, anchorX: n, anchorY: a, root: r, pop: i
|
|
|
6735
6739
|
bottom: 0
|
|
6736
6740
|
}), { nonce: u } = ye(ai), c = e.props?.ref ?? e?.ref, d = Bv(s, c);
|
|
6737
6741
|
return _r(() => {
|
|
6738
|
-
const { width: p, height: m, top: h, left: E, right:
|
|
6742
|
+
const { width: p, height: m, top: h, left: E, right: v, bottom: y } = l.current;
|
|
6739
6743
|
if (t || i === !1 || !s.current || !p || !m)
|
|
6740
6744
|
return;
|
|
6741
|
-
const
|
|
6745
|
+
const S = n === "left" ? `left: ${E}` : `right: ${v}`, w = a === "bottom" ? `bottom: ${y}` : `top: ${h}`;
|
|
6742
6746
|
s.current.dataset.motionPopId = o;
|
|
6743
6747
|
const T = document.createElement("style");
|
|
6744
6748
|
u && (T.nonce = u);
|
|
@@ -6748,7 +6752,7 @@ function jv({ children: e, isPresent: t, anchorX: n, anchorY: a, root: r, pop: i
|
|
|
6748
6752
|
position: absolute !important;
|
|
6749
6753
|
width: ${p}px !important;
|
|
6750
6754
|
height: ${m}px !important;
|
|
6751
|
-
${
|
|
6755
|
+
${S}px !important;
|
|
6752
6756
|
${w}px !important;
|
|
6753
6757
|
}
|
|
6754
6758
|
`), () => {
|
|
@@ -6801,16 +6805,16 @@ function Cd(e) {
|
|
|
6801
6805
|
}), t;
|
|
6802
6806
|
}
|
|
6803
6807
|
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 }) => {
|
|
6804
|
-
const [c, d] = im(o), p = Ue(() => Cd(e), [e]), m = o && !c ? [] : p.map(On), h = X(!0), E = X(p),
|
|
6808
|
+
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), [T, A] = ee(p);
|
|
6805
6809
|
Op(() => {
|
|
6806
6810
|
h.current = !1, E.current = p;
|
|
6807
6811
|
for (let k = 0; k < T.length; k++) {
|
|
6808
6812
|
const N = On(T[k]);
|
|
6809
|
-
m.includes(N) ? (
|
|
6813
|
+
m.includes(N) ? (v.delete(N), y.current.delete(N)) : v.get(N) !== !0 && v.set(N, !1);
|
|
6810
6814
|
}
|
|
6811
6815
|
}, [T, m.length, m.join("-")]);
|
|
6812
6816
|
const x = [];
|
|
6813
|
-
if (p !==
|
|
6817
|
+
if (p !== S) {
|
|
6814
6818
|
let k = [...p];
|
|
6815
6819
|
for (let N = 0; N < T.length; N++) {
|
|
6816
6820
|
const _ = T[N], M = On(_);
|
|
@@ -6822,14 +6826,14 @@ const om = ({ children: e, custom: t, initial: n = !0, onExitComplete: a, presen
|
|
|
6822
6826
|
const { forceRender: C } = ye(Cr);
|
|
6823
6827
|
return R.jsx(R.Fragment, { children: T.map((k) => {
|
|
6824
6828
|
const N = On(k), _ = o && !c ? !1 : p === T || m.includes(N), M = () => {
|
|
6825
|
-
if (
|
|
6829
|
+
if (y.current.has(N))
|
|
6826
6830
|
return;
|
|
6827
|
-
if (
|
|
6828
|
-
|
|
6831
|
+
if (v.has(N))
|
|
6832
|
+
y.current.add(N), v.set(N, !0);
|
|
6829
6833
|
else
|
|
6830
6834
|
return;
|
|
6831
6835
|
let F = !0;
|
|
6832
|
-
|
|
6836
|
+
v.forEach((D) => {
|
|
6833
6837
|
D || (F = !1);
|
|
6834
6838
|
}), F && (C?.(), A(E.current), o && d?.(), a && a());
|
|
6835
6839
|
};
|
|
@@ -7064,17 +7068,17 @@ function rw(e, t, n, a) {
|
|
|
7064
7068
|
for (let m = 0; m < p.length; m++) {
|
|
7065
7069
|
const h = qr(e, p[m]);
|
|
7066
7070
|
if (h) {
|
|
7067
|
-
const { transitionEnd: E, transition:
|
|
7068
|
-
for (const
|
|
7069
|
-
let w = S
|
|
7071
|
+
const { transitionEnd: E, transition: v, ...y } = h;
|
|
7072
|
+
for (const S in y) {
|
|
7073
|
+
let w = y[S];
|
|
7070
7074
|
if (Array.isArray(w)) {
|
|
7071
7075
|
const T = c ? w.length - 1 : 0;
|
|
7072
7076
|
w = w[T];
|
|
7073
7077
|
}
|
|
7074
|
-
w !== null && (r[
|
|
7078
|
+
w !== null && (r[S] = w);
|
|
7075
7079
|
}
|
|
7076
|
-
for (const
|
|
7077
|
-
r[
|
|
7080
|
+
for (const S in E)
|
|
7081
|
+
r[S] = E[S];
|
|
7078
7082
|
}
|
|
7079
7083
|
}
|
|
7080
7084
|
}
|
|
@@ -7126,17 +7130,17 @@ function uw(e, t, n, a, r, i) {
|
|
|
7126
7130
|
}), m.current && p.current && (p.current.manuallyAnimateOnMount = !0));
|
|
7127
7131
|
const h = p.current, E = ye(gm);
|
|
7128
7132
|
h && !h.projection && r && (h.type === "html" || h.type === "svg") && cw(p.current, n, r, E);
|
|
7129
|
-
const
|
|
7133
|
+
const v = X(!1);
|
|
7130
7134
|
_r(() => {
|
|
7131
|
-
h &&
|
|
7135
|
+
h && v.current && h.update(n, l);
|
|
7132
7136
|
});
|
|
7133
|
-
const
|
|
7137
|
+
const y = n[Sg], S = X(!!y && typeof window < "u" && !window.MotionHandoffIsComplete?.(y) && window.MotionHasOptimisedAnimation?.(y));
|
|
7134
7138
|
return Op(() => {
|
|
7135
|
-
m.current = !0, h && (
|
|
7139
|
+
m.current = !0, h && (v.current = !0, window.MotionIsMounted = !0, h.updateFeatures(), h.scheduleRenderMicrotask(), S.current && h.animationState && h.animationState.animateChanges());
|
|
7136
7140
|
}), se(() => {
|
|
7137
|
-
h && (!
|
|
7138
|
-
window.MotionHandoffMarkAsComplete?.(
|
|
7139
|
-
}),
|
|
7141
|
+
h && (!S.current && h.animationState && h.animationState.animateChanges(), S.current && (queueMicrotask(() => {
|
|
7142
|
+
window.MotionHandoffMarkAsComplete?.(y);
|
|
7143
|
+
}), S.current = !1), h.enteringChildren = void 0);
|
|
7140
7144
|
}), h;
|
|
7141
7145
|
}
|
|
7142
7146
|
function cw(e, t, n, a) {
|
|
@@ -7177,8 +7181,8 @@ function Ba(e, { forwardMotionProps: t = !1, type: n } = {}, a, r) {
|
|
|
7177
7181
|
}, { isStatic: m } = p, h = Xv(u), E = o(u, m);
|
|
7178
7182
|
if (!m && typeof window < "u") {
|
|
7179
7183
|
pw(p, a);
|
|
7180
|
-
const
|
|
7181
|
-
d =
|
|
7184
|
+
const v = gw(p);
|
|
7185
|
+
d = v.MeasureLayout, h.visualElement = uw(e, E, p, r, v.ProjectionNode, i);
|
|
7182
7186
|
}
|
|
7183
7187
|
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)] });
|
|
7184
7188
|
}
|
|
@@ -7329,19 +7333,19 @@ class hm {
|
|
|
7329
7333
|
const m = $a(this.lastMoveEventInfo, this.history), h = this.startEvent !== null, E = vw(m.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
|
|
7330
7334
|
if (!h && !E)
|
|
7331
7335
|
return;
|
|
7332
|
-
const { point:
|
|
7333
|
-
this.history.push({ ...
|
|
7334
|
-
const { onStart:
|
|
7335
|
-
h || (
|
|
7336
|
+
const { point: v } = m, { timestamp: y } = me;
|
|
7337
|
+
this.history.push({ ...v, timestamp: y });
|
|
7338
|
+
const { onStart: S, onMove: w } = this.handlers;
|
|
7339
|
+
h || (S && S(this.lastMoveEvent, m), this.startEvent = this.lastMoveEvent), w && w(this.lastMoveEvent, m);
|
|
7336
7340
|
}, this.handlePointerMove = (m, h) => {
|
|
7337
7341
|
this.lastMoveEvent = m, this.lastRawMoveEventInfo = h, this.lastMoveEventInfo = Ln(h, this.transformPagePoint), ne.update(this.updatePoint, !0);
|
|
7338
7342
|
}, this.handlePointerUp = (m, h) => {
|
|
7339
7343
|
this.end();
|
|
7340
|
-
const { onEnd: E, onSessionEnd:
|
|
7341
|
-
if ((this.dragSnapToOrigin || !this.startEvent) &&
|
|
7344
|
+
const { onEnd: E, onSessionEnd: v, resumeAnimation: y } = this.handlers;
|
|
7345
|
+
if ((this.dragSnapToOrigin || !this.startEvent) && y && y(), !(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
7342
7346
|
return;
|
|
7343
|
-
const
|
|
7344
|
-
this.startEvent && E && E(m,
|
|
7347
|
+
const S = $a(m.type === "pointercancel" ? this.lastMoveEventInfo : Ln(h, this.transformPagePoint), this.history);
|
|
7348
|
+
this.startEvent && E && E(m, S), v && v(m, S);
|
|
7345
7349
|
}, !Zr(t))
|
|
7346
7350
|
return;
|
|
7347
7351
|
this.dragSnapToOrigin = i, this.handlers = n, this.transformPagePoint = a, this.distanceThreshold = o, this.contextWindow = r || window;
|
|
@@ -7500,30 +7504,30 @@ class Cw {
|
|
|
7500
7504
|
const { drag: m, dragPropagation: h, onDragStart: E } = this.getProps();
|
|
7501
7505
|
if (m && !h && (this.openDragLock && this.openDragLock(), this.openDragLock = rS(m), !this.openDragLock))
|
|
7502
7506
|
return;
|
|
7503
|
-
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((
|
|
7504
|
-
let
|
|
7505
|
-
if (He.test(
|
|
7507
|
+
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) => {
|
|
7508
|
+
let S = this.getAxisMotionValue(y).get() || 0;
|
|
7509
|
+
if (He.test(S)) {
|
|
7506
7510
|
const { projection: w } = this.visualElement;
|
|
7507
7511
|
if (w && w.layout) {
|
|
7508
|
-
const T = w.layout.layoutBox[
|
|
7509
|
-
T && (
|
|
7512
|
+
const T = w.layout.layoutBox[y];
|
|
7513
|
+
T && (S = _e(T) * (parseFloat(S) / 100));
|
|
7510
7514
|
}
|
|
7511
7515
|
}
|
|
7512
|
-
this.originPoint[
|
|
7516
|
+
this.originPoint[y] = S;
|
|
7513
7517
|
}), E && ne.update(() => E(d, p), !1, !0), sr(this.visualElement, "transform");
|
|
7514
|
-
const { animationState:
|
|
7515
|
-
|
|
7518
|
+
const { animationState: v } = this.visualElement;
|
|
7519
|
+
v && v.setActive("whileDrag", !0);
|
|
7516
7520
|
}, s = (d, p) => {
|
|
7517
7521
|
this.latestPointerEvent = d, this.latestPanInfo = p;
|
|
7518
|
-
const { dragPropagation: m, dragDirectionLock: h, onDirectionLock: E, onDrag:
|
|
7522
|
+
const { dragPropagation: m, dragDirectionLock: h, onDirectionLock: E, onDrag: v } = this.getProps();
|
|
7519
7523
|
if (!m && !this.openDragLock)
|
|
7520
7524
|
return;
|
|
7521
|
-
const { offset:
|
|
7525
|
+
const { offset: y } = p;
|
|
7522
7526
|
if (h && this.currentDirection === null) {
|
|
7523
|
-
this.currentDirection = Lw(
|
|
7527
|
+
this.currentDirection = Lw(y), this.currentDirection !== null && E && E(this.currentDirection);
|
|
7524
7528
|
return;
|
|
7525
7529
|
}
|
|
7526
|
-
this.updateAxis("x", p.point,
|
|
7530
|
+
this.updateAxis("x", p.point, y), this.updateAxis("y", p.point, y), this.visualElement.render(), v && ne.update(() => v(d, p), !1, !0);
|
|
7527
7531
|
}, l = (d, p) => {
|
|
7528
7532
|
this.latestPointerEvent = d, this.latestPanInfo = p, this.stop(d, p), this.latestPointerEvent = null, this.latestPanInfo = null;
|
|
7529
7533
|
}, u = () => {
|
|
@@ -8007,7 +8011,7 @@ const Yw = {
|
|
|
8007
8011
|
style: c,
|
|
8008
8012
|
menuStyle: d
|
|
8009
8013
|
}, p) {
|
|
8010
|
-
const [m, h] = ee(!1), [E,
|
|
8014
|
+
const [m, h] = ee(!1), [E, v] = ee({ top: 0, left: 0 }), [y, S] = ee("bottom"), w = n !== void 0, T = w ? n : m, A = X(null), x = X(null), C = (N) => {
|
|
8011
8015
|
w || h(N), a?.(N);
|
|
8012
8016
|
};
|
|
8013
8017
|
se(() => {
|
|
@@ -8023,7 +8027,7 @@ const Yw = {
|
|
|
8023
8027
|
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;
|
|
8024
8028
|
let B = r === "right" ? _.right - i : _.left;
|
|
8025
8029
|
const G = window.innerWidth - i - 8;
|
|
8026
|
-
B = Math.max(8, Math.min(B, G)),
|
|
8030
|
+
B = Math.max(8, Math.min(B, G)), S(U ? "top" : "bottom"), v({ top: L, left: B });
|
|
8027
8031
|
};
|
|
8028
8032
|
return N(), window.addEventListener("scroll", N, !0), window.addEventListener("resize", N), () => {
|
|
8029
8033
|
window.removeEventListener("scroll", N, !0), window.removeEventListener("resize", N);
|
|
@@ -8055,7 +8059,7 @@ const Yw = {
|
|
|
8055
8059
|
ref: x,
|
|
8056
8060
|
initial: {
|
|
8057
8061
|
opacity: 0,
|
|
8058
|
-
y:
|
|
8062
|
+
y: y === "bottom" ? 8 : -8,
|
|
8059
8063
|
scale: 0.96
|
|
8060
8064
|
},
|
|
8061
8065
|
animate: {
|
|
@@ -8065,7 +8069,7 @@ const Yw = {
|
|
|
8065
8069
|
},
|
|
8066
8070
|
exit: {
|
|
8067
8071
|
opacity: 0,
|
|
8068
|
-
y:
|
|
8072
|
+
y: y === "bottom" ? 8 : -8,
|
|
8069
8073
|
scale: 0.96
|
|
8070
8074
|
},
|
|
8071
8075
|
transition: {
|
|
@@ -8144,9 +8148,9 @@ const Qw = ln(
|
|
|
8144
8148
|
contentWrapperClassName: m,
|
|
8145
8149
|
contentWrapperStyle: h,
|
|
8146
8150
|
contentClassName: E,
|
|
8147
|
-
contentStyle:
|
|
8148
|
-
hoverClassName:
|
|
8149
|
-
hoverStyle:
|
|
8151
|
+
contentStyle: v,
|
|
8152
|
+
hoverClassName: y,
|
|
8153
|
+
hoverStyle: S,
|
|
8150
8154
|
borderColor: w = "var(--border)",
|
|
8151
8155
|
radius: T = "0.5rem",
|
|
8152
8156
|
shadow: A = "none",
|
|
@@ -8196,14 +8200,14 @@ const Qw = ln(
|
|
|
8196
8200
|
onClick: () => D(L),
|
|
8197
8201
|
className: V(
|
|
8198
8202
|
s,
|
|
8199
|
-
|
|
8203
|
+
y,
|
|
8200
8204
|
"w-full flex items-center justify-between",
|
|
8201
8205
|
"px-4 py-3.5 text-left transition-colors",
|
|
8202
8206
|
"hover:bg-accent"
|
|
8203
8207
|
),
|
|
8204
8208
|
style: {
|
|
8205
8209
|
...l,
|
|
8206
|
-
...
|
|
8210
|
+
...S
|
|
8207
8211
|
},
|
|
8208
8212
|
children: [
|
|
8209
8213
|
/* @__PURE__ */ R.jsx(
|
|
@@ -8250,7 +8254,7 @@ const Qw = ln(
|
|
|
8250
8254
|
E,
|
|
8251
8255
|
"px-4 py-3.5 text-sm border-t border-border text-accent-foreground bg-background"
|
|
8252
8256
|
),
|
|
8253
|
-
style:
|
|
8257
|
+
style: v,
|
|
8254
8258
|
children: U.content
|
|
8255
8259
|
}
|
|
8256
8260
|
)
|
|
@@ -8282,9 +8286,9 @@ const oi = Be((e, t) => {
|
|
|
8282
8286
|
helperText: m,
|
|
8283
8287
|
multiple: h = !1,
|
|
8284
8288
|
showDescription: E = !1,
|
|
8285
|
-
showCheckIcon:
|
|
8286
|
-
labelIcon:
|
|
8287
|
-
prefixIcon:
|
|
8289
|
+
showCheckIcon: v = !0,
|
|
8290
|
+
labelIcon: y,
|
|
8291
|
+
prefixIcon: S,
|
|
8288
8292
|
dropdownIcon: w = Cp,
|
|
8289
8293
|
searchClassName: T,
|
|
8290
8294
|
searchStyle: A,
|
|
@@ -8449,21 +8453,21 @@ const oi = Be((e, t) => {
|
|
|
8449
8453
|
F
|
|
8450
8454
|
),
|
|
8451
8455
|
children: [
|
|
8452
|
-
|
|
8456
|
+
y && /* @__PURE__ */ R.jsx(y, { className: "w-4 h-4 shrink-0" }),
|
|
8453
8457
|
n,
|
|
8454
8458
|
u && /* @__PURE__ */ R.jsx("span", { className: "text-destructive", children: "*" })
|
|
8455
8459
|
]
|
|
8456
8460
|
}
|
|
8457
8461
|
),
|
|
8458
8462
|
/* @__PURE__ */ R.jsxs("div", { className: "relative", children: [
|
|
8459
|
-
|
|
8463
|
+
S && /* @__PURE__ */ R.jsx(
|
|
8460
8464
|
"div",
|
|
8461
8465
|
{
|
|
8462
8466
|
className: V(
|
|
8463
8467
|
"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",
|
|
8464
8468
|
G
|
|
8465
8469
|
),
|
|
8466
|
-
children: /* @__PURE__ */ R.jsx(
|
|
8470
|
+
children: /* @__PURE__ */ R.jsx(S, { className: yt[k].icon })
|
|
8467
8471
|
}
|
|
8468
8472
|
),
|
|
8469
8473
|
/* @__PURE__ */ R.jsxs(
|
|
@@ -8485,7 +8489,7 @@ const oi = Be((e, t) => {
|
|
|
8485
8489
|
"rounded-lg transition-all outline-none",
|
|
8486
8490
|
"border border-border bg-input/30 text-foreground",
|
|
8487
8491
|
"hover:bg-accent/10",
|
|
8488
|
-
|
|
8492
|
+
S && "pl-9",
|
|
8489
8493
|
c && "opacity-50 cursor-not-allowed pointer-events-none",
|
|
8490
8494
|
Ta && "border-destructive focus:ring-destructive",
|
|
8491
8495
|
p && "border-success focus:ring-success",
|
|
@@ -8612,7 +8616,7 @@ const oi = Be((e, t) => {
|
|
|
8612
8616
|
] }),
|
|
8613
8617
|
E && j.description && /* @__PURE__ */ R.jsx("span", { className: "text-xs text-muted-foreground mt-0.5", children: j.description })
|
|
8614
8618
|
] }),
|
|
8615
|
-
|
|
8619
|
+
v && xe && /* @__PURE__ */ R.jsx("div", { children: /* @__PURE__ */ R.jsx(
|
|
8616
8620
|
Fb,
|
|
8617
8621
|
{
|
|
8618
8622
|
className: V(
|
|
@@ -8669,9 +8673,9 @@ const Ze = Be(function(e, t) {
|
|
|
8669
8673
|
required: m,
|
|
8670
8674
|
disabled: h,
|
|
8671
8675
|
readOnly: E,
|
|
8672
|
-
error:
|
|
8673
|
-
success:
|
|
8674
|
-
helperText:
|
|
8676
|
+
error: v,
|
|
8677
|
+
success: y,
|
|
8678
|
+
helperText: S,
|
|
8675
8679
|
icon: w,
|
|
8676
8680
|
prefix: T,
|
|
8677
8681
|
prefixIcon: A,
|
|
@@ -8770,8 +8774,8 @@ const Ze = Be(function(e, t) {
|
|
|
8770
8774
|
className: V(
|
|
8771
8775
|
wn,
|
|
8772
8776
|
"px-4 py-2 resize-none",
|
|
8773
|
-
|
|
8774
|
-
|
|
8777
|
+
v && "border-destructive focus-visible:ring-destructive/50",
|
|
8778
|
+
y && "border-emerald-500 focus-visible:ring-emerald-500/50",
|
|
8775
8779
|
B
|
|
8776
8780
|
)
|
|
8777
8781
|
}
|
|
@@ -8798,8 +8802,8 @@ const Ze = Be(function(e, t) {
|
|
|
8798
8802
|
className: V(
|
|
8799
8803
|
wn,
|
|
8800
8804
|
jt(),
|
|
8801
|
-
|
|
8802
|
-
|
|
8805
|
+
v && "border-destructive focus-visible:ring-destructive/50",
|
|
8806
|
+
y && "border-emerald-500 focus-visible:ring-emerald-500/50",
|
|
8803
8807
|
L
|
|
8804
8808
|
)
|
|
8805
8809
|
}
|
|
@@ -8829,16 +8833,16 @@ const Ze = Be(function(e, t) {
|
|
|
8829
8833
|
}
|
|
8830
8834
|
)
|
|
8831
8835
|
] }),
|
|
8832
|
-
(
|
|
8836
|
+
(S || v) && /* @__PURE__ */ R.jsx(
|
|
8833
8837
|
"p",
|
|
8834
8838
|
{
|
|
8835
|
-
role:
|
|
8839
|
+
role: v ? "alert" : void 0,
|
|
8836
8840
|
className: V(
|
|
8837
8841
|
"text-xs font-medium",
|
|
8838
|
-
|
|
8842
|
+
v ? "text-destructive" : y ? "text-emerald-600" : "text-muted-foreground",
|
|
8839
8843
|
z
|
|
8840
8844
|
),
|
|
8841
|
-
children:
|
|
8845
|
+
children: v && typeof v == "string" ? v : S
|
|
8842
8846
|
}
|
|
8843
8847
|
)
|
|
8844
8848
|
]
|
|
@@ -8862,9 +8866,9 @@ const Ze = Be(function(e, t) {
|
|
|
8862
8866
|
minRows: m = 3,
|
|
8863
8867
|
maxRows: h = 6,
|
|
8864
8868
|
submitOnEnter: E,
|
|
8865
|
-
onSubmit:
|
|
8866
|
-
className:
|
|
8867
|
-
containerClassName:
|
|
8869
|
+
onSubmit: v,
|
|
8870
|
+
className: y = "",
|
|
8871
|
+
containerClassName: S = "",
|
|
8868
8872
|
labelClassName: w = "",
|
|
8869
8873
|
helperClassName: T = "",
|
|
8870
8874
|
countClassName: A = "",
|
|
@@ -8891,12 +8895,12 @@ const Ze = Be(function(e, t) {
|
|
|
8891
8895
|
L();
|
|
8892
8896
|
}, [a]);
|
|
8893
8897
|
const B = (z) => {
|
|
8894
|
-
E && z.key === "Enter" && !z.shiftKey && (z.preventDefault(),
|
|
8898
|
+
E && z.key === "Enter" && !z.shiftKey && (z.preventDefault(), v?.());
|
|
8895
8899
|
}, G = typeof a == "string" ? a.length : D.current?.value?.length || 0, Y = typeof d == "number" && d > 0;
|
|
8896
8900
|
return /* @__PURE__ */ R.jsxs(
|
|
8897
8901
|
"div",
|
|
8898
8902
|
{
|
|
8899
|
-
className: `w-full space-y-1.5 ${
|
|
8903
|
+
className: `w-full space-y-1.5 ${S}`,
|
|
8900
8904
|
style: C,
|
|
8901
8905
|
children: [
|
|
8902
8906
|
e && /* @__PURE__ */ R.jsxs(
|
|
@@ -8947,7 +8951,7 @@ const Ze = Be(function(e, t) {
|
|
|
8947
8951
|
${l ? "border-destructive focus:ring-destructive/20" : ""}
|
|
8948
8952
|
${u ? "border-primary" : ""}
|
|
8949
8953
|
|
|
8950
|
-
${
|
|
8954
|
+
${y}
|
|
8951
8955
|
`,
|
|
8952
8956
|
style: {
|
|
8953
8957
|
...x
|
|
@@ -9716,15 +9720,15 @@ const rT = ({
|
|
|
9716
9720
|
(x) => x.id === w ? { ...x, ...T } : x
|
|
9717
9721
|
)
|
|
9718
9722
|
);
|
|
9719
|
-
},
|
|
9723
|
+
}, v = (w) => {
|
|
9720
9724
|
t && t((T) => T.filter((A) => A.id !== w));
|
|
9721
|
-
},
|
|
9725
|
+
}, y = async () => {
|
|
9722
9726
|
try {
|
|
9723
9727
|
await navigator.clipboard.writeText(JSON.stringify(e, null, 2));
|
|
9724
9728
|
} catch (w) {
|
|
9725
9729
|
console.error(w);
|
|
9726
9730
|
}
|
|
9727
|
-
},
|
|
9731
|
+
}, S = () => {
|
|
9728
9732
|
try {
|
|
9729
9733
|
const w = JSON.parse(l);
|
|
9730
9734
|
if (!Array.isArray(w)) {
|
|
@@ -9847,7 +9851,7 @@ const rT = ({
|
|
|
9847
9851
|
/* @__PURE__ */ f.jsxs(
|
|
9848
9852
|
"button",
|
|
9849
9853
|
{
|
|
9850
|
-
onClick:
|
|
9854
|
+
onClick: y,
|
|
9851
9855
|
className: `
|
|
9852
9856
|
flex
|
|
9853
9857
|
items-center
|
|
@@ -9873,7 +9877,7 @@ const rT = ({
|
|
|
9873
9877
|
o && /* @__PURE__ */ f.jsxs(
|
|
9874
9878
|
"button",
|
|
9875
9879
|
{
|
|
9876
|
-
onClick:
|
|
9880
|
+
onClick: S,
|
|
9877
9881
|
className: `
|
|
9878
9882
|
flex
|
|
9879
9883
|
items-center
|
|
@@ -9995,7 +9999,7 @@ const rT = ({
|
|
|
9995
9999
|
onChange: (A) => E(w.id, {
|
|
9996
10000
|
content: A
|
|
9997
10001
|
}),
|
|
9998
|
-
onDelete: () =>
|
|
10002
|
+
onDelete: () => v(w.id),
|
|
9999
10003
|
placeholder: "Write paragraph..."
|
|
10000
10004
|
}
|
|
10001
10005
|
),
|
|
@@ -10010,7 +10014,7 @@ const rT = ({
|
|
|
10010
10014
|
onLevelChange: (A) => E(w.id, {
|
|
10011
10015
|
level: A
|
|
10012
10016
|
}),
|
|
10013
|
-
onDelete: () =>
|
|
10017
|
+
onDelete: () => v(w.id)
|
|
10014
10018
|
}
|
|
10015
10019
|
),
|
|
10016
10020
|
w.type === "image" && /* @__PURE__ */ f.jsx(
|
|
@@ -10018,7 +10022,7 @@ const rT = ({
|
|
|
10018
10022
|
{
|
|
10019
10023
|
value: w,
|
|
10020
10024
|
onChange: (A) => E(w.id, A),
|
|
10021
|
-
onDelete: () =>
|
|
10025
|
+
onDelete: () => v(w.id)
|
|
10022
10026
|
}
|
|
10023
10027
|
),
|
|
10024
10028
|
w.type === "code" && /* @__PURE__ */ f.jsx(
|
|
@@ -10032,7 +10036,7 @@ const rT = ({
|
|
|
10032
10036
|
onLanguageChange: (A) => E(w.id, {
|
|
10033
10037
|
language: A
|
|
10034
10038
|
}),
|
|
10035
|
-
onDelete: () =>
|
|
10039
|
+
onDelete: () => v(w.id)
|
|
10036
10040
|
}
|
|
10037
10041
|
),
|
|
10038
10042
|
w.type === "table" && /* @__PURE__ */ f.jsx(
|
|
@@ -10044,7 +10048,7 @@ const rT = ({
|
|
|
10044
10048
|
headers: A,
|
|
10045
10049
|
rows: x
|
|
10046
10050
|
}),
|
|
10047
|
-
onDelete: () =>
|
|
10051
|
+
onDelete: () => v(w.id)
|
|
10048
10052
|
}
|
|
10049
10053
|
)
|
|
10050
10054
|
] })
|
|
@@ -10229,22 +10233,22 @@ function wm(e) {
|
|
|
10229
10233
|
className: qd(s.className)
|
|
10230
10234
|
});
|
|
10231
10235
|
else {
|
|
10232
|
-
var m = Object.keys(n).reduce(function(
|
|
10233
|
-
return
|
|
10234
|
-
|
|
10235
|
-
}),
|
|
10236
|
-
}, []), h = s.className && s.className.includes("token") ? ["token"] : [], E = s.className && h.concat(s.className.filter(function(
|
|
10237
|
-
return !m.includes(
|
|
10236
|
+
var m = Object.keys(n).reduce(function(y, S) {
|
|
10237
|
+
return S.split(".").forEach(function(w) {
|
|
10238
|
+
y.includes(w) || y.push(w);
|
|
10239
|
+
}), y;
|
|
10240
|
+
}, []), h = s.className && s.className.includes("token") ? ["token"] : [], E = s.className && h.concat(s.className.filter(function(y) {
|
|
10241
|
+
return !m.includes(y);
|
|
10238
10242
|
}));
|
|
10239
10243
|
p = _t(_t({}, s), {}, {
|
|
10240
10244
|
className: qd(E) || void 0,
|
|
10241
10245
|
style: bT(s.className, Object.assign({}, s.style, r), n)
|
|
10242
10246
|
});
|
|
10243
10247
|
}
|
|
10244
|
-
var
|
|
10248
|
+
var v = d(t.children);
|
|
10245
10249
|
return /* @__PURE__ */ te.createElement(u, Sr({
|
|
10246
10250
|
key: o
|
|
10247
|
-
}, p),
|
|
10251
|
+
}, p), v);
|
|
10248
10252
|
}
|
|
10249
10253
|
}
|
|
10250
10254
|
const ET = (function(e, t) {
|
|
@@ -10389,11 +10393,11 @@ function _T(e, t, n, a, r, i, o, s, l) {
|
|
|
10389
10393
|
}
|
|
10390
10394
|
return A;
|
|
10391
10395
|
}
|
|
10392
|
-
function
|
|
10396
|
+
function v(A, x) {
|
|
10393
10397
|
var C = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
10394
10398
|
return t || C.length > 0 ? h(A, x, C) : E(A, x);
|
|
10395
10399
|
}
|
|
10396
|
-
for (var
|
|
10400
|
+
for (var y = function() {
|
|
10397
10401
|
var x = c[m], C = x.children[0].value, k = wT(C);
|
|
10398
10402
|
if (k) {
|
|
10399
10403
|
var N = C.split(`
|
|
@@ -10408,7 +10412,7 @@ function _T(e, t, n, a, r, i, o, s, l) {
|
|
|
10408
10412
|
var U = c.slice(p + 1, m).concat(Hn({
|
|
10409
10413
|
children: [D],
|
|
10410
10414
|
className: x.properties.className
|
|
10411
|
-
})), L =
|
|
10415
|
+
})), L = v(U, F);
|
|
10412
10416
|
d.push(L);
|
|
10413
10417
|
} else if (M === N.length - 1) {
|
|
10414
10418
|
var B = c[m + 1] && c[m + 1].children && c[m + 1].children[0], G = {
|
|
@@ -10422,22 +10426,22 @@ function _T(e, t, n, a, r, i, o, s, l) {
|
|
|
10422
10426
|
});
|
|
10423
10427
|
c.splice(m + 1, 0, Y);
|
|
10424
10428
|
} else {
|
|
10425
|
-
var z = [G], q =
|
|
10429
|
+
var z = [G], q = v(z, F, x.properties.className);
|
|
10426
10430
|
d.push(q);
|
|
10427
10431
|
}
|
|
10428
10432
|
} else {
|
|
10429
|
-
var b = [D], I =
|
|
10433
|
+
var b = [D], I = v(b, F, x.properties.className);
|
|
10430
10434
|
d.push(I);
|
|
10431
10435
|
}
|
|
10432
10436
|
}), p = m;
|
|
10433
10437
|
}
|
|
10434
10438
|
m++;
|
|
10435
10439
|
}; m < c.length; )
|
|
10436
|
-
|
|
10440
|
+
y();
|
|
10437
10441
|
if (p !== c.length - 1) {
|
|
10438
|
-
var
|
|
10439
|
-
if (
|
|
10440
|
-
var w = a && d.length + i, T =
|
|
10442
|
+
var S = c.slice(p + 1, c.length);
|
|
10443
|
+
if (S && S.length) {
|
|
10444
|
+
var w = a && d.length + i, T = v(S, w);
|
|
10441
10445
|
d.push(T);
|
|
10442
10446
|
}
|
|
10443
10447
|
}
|
|
@@ -10483,9 +10487,9 @@ function RT(e, t) {
|
|
|
10483
10487
|
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 ? {
|
|
10484
10488
|
className: o ? "language-".concat(o) : void 0,
|
|
10485
10489
|
style: Je(Je({}, u['code[class*="language-"]']), u['code[class*="language-'.concat(o, '"]')])
|
|
10486
|
-
} : p, h = a.useInlineStyles, E = h === void 0 ? !0 : h,
|
|
10490
|
+
} : 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, 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);
|
|
10487
10491
|
b = b || e;
|
|
10488
|
-
var $ =
|
|
10492
|
+
var $ = y ? /* @__PURE__ */ te.createElement(AT, {
|
|
10489
10493
|
containerStyle: x,
|
|
10490
10494
|
codeStyle: m.style || {},
|
|
10491
10495
|
numberStyle: k,
|
|
@@ -10516,7 +10520,7 @@ function RT(e, t) {
|
|
|
10516
10520
|
defaultCodeValue: W
|
|
10517
10521
|
});
|
|
10518
10522
|
ie.language === null && (ie.value = W);
|
|
10519
|
-
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,
|
|
10523
|
+
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, y, w, A, $e, k, M);
|
|
10520
10524
|
return /* @__PURE__ */ te.createElement(B, be, /* @__PURE__ */ te.createElement(Y, m, !w && $, U({
|
|
10521
10525
|
rows: it,
|
|
10522
10526
|
stylesheet: u,
|
|
@@ -12030,14 +12034,14 @@ function QT(e, t) {
|
|
|
12030
12034
|
let c = (l ? l.line : 0) || 1, d = (l ? l.column : 0) || 1, p = h(), m;
|
|
12031
12035
|
for (i--; ++i <= e.length; )
|
|
12032
12036
|
if (m === 10 && (d = (u ? u[o] : 0) || 1), m = e.charCodeAt(i), m === 38) {
|
|
12033
|
-
const
|
|
12034
|
-
if (
|
|
12037
|
+
const y = e.charCodeAt(i + 1);
|
|
12038
|
+
if (y === 9 || y === 10 || y === 12 || y === 32 || y === 38 || y === 60 || Number.isNaN(y) || a && y === a) {
|
|
12035
12039
|
s += String.fromCharCode(m), d++;
|
|
12036
12040
|
continue;
|
|
12037
12041
|
}
|
|
12038
|
-
const
|
|
12039
|
-
let w =
|
|
12040
|
-
if (
|
|
12042
|
+
const S = i + 1;
|
|
12043
|
+
let w = S, T = S, A;
|
|
12044
|
+
if (y === 35) {
|
|
12041
12045
|
T = ++w;
|
|
12042
12046
|
const D = e.charCodeAt(T);
|
|
12043
12047
|
D === 88 || D === 120 ? (A = "hexadecimal", T = ++w) : A = "decimal";
|
|
@@ -12057,7 +12061,7 @@ function QT(e, t) {
|
|
|
12057
12061
|
const D = A === "named" ? rp(k) : !1;
|
|
12058
12062
|
D && (x = k, C = D);
|
|
12059
12063
|
}
|
|
12060
|
-
let M = 1 + T -
|
|
12064
|
+
let M = 1 + T - S, F = "";
|
|
12061
12065
|
if (!(!_ && n.nonTerminated === !1)) if (!k)
|
|
12062
12066
|
A !== "named" && E(4, M);
|
|
12063
12067
|
else if (A === "named") {
|
|
@@ -12090,18 +12094,18 @@ function QT(e, t) {
|
|
|
12090
12094
|
}
|
|
12091
12095
|
}
|
|
12092
12096
|
if (F) {
|
|
12093
|
-
|
|
12097
|
+
v(), p = h(), i = T - 1, d += T - S + 1, r.push(F);
|
|
12094
12098
|
const D = h();
|
|
12095
12099
|
D.offset++, n.reference && n.reference.call(
|
|
12096
12100
|
n.referenceContext || void 0,
|
|
12097
12101
|
F,
|
|
12098
12102
|
{ start: p, end: D },
|
|
12099
|
-
e.slice(
|
|
12103
|
+
e.slice(S - 1, T)
|
|
12100
12104
|
), p = D;
|
|
12101
12105
|
} else
|
|
12102
|
-
k = e.slice(
|
|
12106
|
+
k = e.slice(S - 1, T), s += k, d += k.length, i = T - 1;
|
|
12103
12107
|
} else
|
|
12104
|
-
m === 10 && (c++, o++, d = 0), Number.isNaN(m) ?
|
|
12108
|
+
m === 10 && (c++, o++, d = 0), Number.isNaN(m) ? v() : (s += String.fromCharCode(m), d++);
|
|
12105
12109
|
return r.join("");
|
|
12106
12110
|
function h() {
|
|
12107
12111
|
return {
|
|
@@ -12110,16 +12114,16 @@ function QT(e, t) {
|
|
|
12110
12114
|
offset: i + ((l ? l.offset : 0) || 0)
|
|
12111
12115
|
};
|
|
12112
12116
|
}
|
|
12113
|
-
function E(
|
|
12117
|
+
function E(y, S) {
|
|
12114
12118
|
let w;
|
|
12115
|
-
n.warning && (w = h(), w.column +=
|
|
12119
|
+
n.warning && (w = h(), w.column += S, w.offset += S, n.warning.call(
|
|
12116
12120
|
n.warningContext || void 0,
|
|
12117
|
-
ZT[
|
|
12121
|
+
ZT[y],
|
|
12118
12122
|
w,
|
|
12119
|
-
|
|
12123
|
+
y
|
|
12120
12124
|
));
|
|
12121
12125
|
}
|
|
12122
|
-
function
|
|
12126
|
+
function v() {
|
|
12123
12127
|
s && (r.push(s), n.text && n.text.call(n.textContext || void 0, s, {
|
|
12124
12128
|
start: p,
|
|
12125
12129
|
end: h()
|
|
@@ -12492,36 +12496,36 @@ function Fm(e, t, n, a, r, i) {
|
|
|
12492
12496
|
var h = u.pattern.toString().match(/[imsuy]*$/)[0];
|
|
12493
12497
|
u.pattern = RegExp(u.pattern.source, h + "g");
|
|
12494
12498
|
}
|
|
12495
|
-
for (var E = u.pattern || u,
|
|
12496
|
-
var
|
|
12499
|
+
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) {
|
|
12500
|
+
var S = v.value;
|
|
12497
12501
|
if (t.length > e.length)
|
|
12498
12502
|
return;
|
|
12499
|
-
if (!(
|
|
12503
|
+
if (!(S instanceof Jt)) {
|
|
12500
12504
|
var w = 1, T;
|
|
12501
12505
|
if (p) {
|
|
12502
|
-
if (T = ip(E,
|
|
12506
|
+
if (T = ip(E, y, e, d), !T || T.index >= e.length)
|
|
12503
12507
|
break;
|
|
12504
|
-
var k = T.index, A = T.index + T[0].length, x =
|
|
12505
|
-
for (x +=
|
|
12506
|
-
|
|
12507
|
-
if (x -=
|
|
12508
|
+
var k = T.index, A = T.index + T[0].length, x = y;
|
|
12509
|
+
for (x += v.value.length; k >= x; )
|
|
12510
|
+
v = v.next, x += v.value.length;
|
|
12511
|
+
if (x -= v.value.length, y = x, v.value instanceof Jt)
|
|
12508
12512
|
continue;
|
|
12509
|
-
for (var C =
|
|
12513
|
+
for (var C = v; C !== t.tail && (x < A || typeof C.value == "string"); C = C.next)
|
|
12510
12514
|
w++, x += C.value.length;
|
|
12511
|
-
w--,
|
|
12512
|
-
} else if (T = ip(E, 0,
|
|
12515
|
+
w--, S = e.slice(y, x), T.index -= y;
|
|
12516
|
+
} else if (T = ip(E, 0, S, d), !T)
|
|
12513
12517
|
continue;
|
|
12514
|
-
var k = T.index, N = T[0], _ =
|
|
12518
|
+
var k = T.index, N = T[0], _ = S.slice(0, k), M = S.slice(k + N.length), F = y + S.length;
|
|
12515
12519
|
i && F > i.reach && (i.reach = F);
|
|
12516
|
-
var D =
|
|
12517
|
-
_ && (D = Wn(t, D, _),
|
|
12520
|
+
var D = v.prev;
|
|
12521
|
+
_ && (D = Wn(t, D, _), y += _.length), aA(t, D, w);
|
|
12518
12522
|
var U = new Jt(
|
|
12519
12523
|
o,
|
|
12520
12524
|
c ? pe.tokenize(N, c) : N,
|
|
12521
12525
|
m,
|
|
12522
12526
|
N
|
|
12523
12527
|
);
|
|
12524
|
-
if (
|
|
12528
|
+
if (v = Wn(t, D, U), M && Wn(t, v, M), w > 1) {
|
|
12525
12529
|
var L = {
|
|
12526
12530
|
cause: o + "," + l,
|
|
12527
12531
|
reach: F
|
|
@@ -12530,8 +12534,8 @@ function Fm(e, t, n, a, r, i) {
|
|
|
12530
12534
|
e,
|
|
12531
12535
|
t,
|
|
12532
12536
|
n,
|
|
12533
|
-
|
|
12534
|
-
|
|
12537
|
+
v.prev,
|
|
12538
|
+
y,
|
|
12535
12539
|
L
|
|
12536
12540
|
), i && L.reach > i.reach && (i.reach = L.reach);
|
|
12537
12541
|
}
|
|
@@ -14729,8 +14733,8 @@ function Ai(e) {
|
|
|
14729
14733
|
if (m && h && m.type === "code-language" && h.type === "code-block" && typeof m.content == "string") {
|
|
14730
14734
|
var E = m.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp");
|
|
14731
14735
|
E = (/[a-z][\w-]*/i.exec(E) || [""])[0].toLowerCase();
|
|
14732
|
-
var
|
|
14733
|
-
h.alias ? typeof h.alias == "string" ? h.alias = [h.alias,
|
|
14736
|
+
var v = "language-" + E;
|
|
14737
|
+
h.alias ? typeof h.alias == "string" ? h.alias = [h.alias, v] : h.alias.push(v) : h.alias = [v];
|
|
14734
14738
|
}
|
|
14735
14739
|
}
|
|
14736
14740
|
}
|
|
@@ -15108,15 +15112,15 @@ function Ft(e) {
|
|
|
15108
15112
|
), 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, [
|
|
15109
15113
|
u,
|
|
15110
15114
|
h
|
|
15111
|
-
]),
|
|
15115
|
+
]), v = /\[\s*(?:,\s*)*\]/.source, y = n(
|
|
15112
15116
|
/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,
|
|
15113
|
-
[E,
|
|
15114
|
-
),
|
|
15117
|
+
[E, v]
|
|
15118
|
+
), S = n(
|
|
15115
15119
|
/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,
|
|
15116
|
-
[d, p,
|
|
15117
|
-
), w = n(/\(<<0>>+(?:,<<0>>+)+\)/.source, [
|
|
15120
|
+
[d, p, v]
|
|
15121
|
+
), w = n(/\(<<0>>+(?:,<<0>>+)+\)/.source, [S]), T = n(
|
|
15118
15122
|
/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,
|
|
15119
|
-
[w, E,
|
|
15123
|
+
[w, E, v]
|
|
15120
15124
|
), A = {
|
|
15121
15125
|
keyword: l,
|
|
15122
15126
|
punctuation: /[<>()?,.:[\]]/
|
|
@@ -15190,7 +15194,7 @@ function Ft(e) {
|
|
|
15190
15194
|
// as Foo<A>, is Bar<B>
|
|
15191
15195
|
// (things like if(a is Foo b) is covered by variable declaration)
|
|
15192
15196
|
pattern: a(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source, [
|
|
15193
|
-
|
|
15197
|
+
y
|
|
15194
15198
|
]),
|
|
15195
15199
|
lookbehind: !0,
|
|
15196
15200
|
inside: A
|
|
@@ -17968,13 +17972,13 @@ function Se(e) {
|
|
|
17968
17972
|
var d = o[i], p = a.tokenStack[d], m = typeof c == "string" ? c : c.content, h = n(r, d), E = m.indexOf(h);
|
|
17969
17973
|
if (E > -1) {
|
|
17970
17974
|
++i;
|
|
17971
|
-
var
|
|
17975
|
+
var v = m.substring(0, E), y = new t.Token(
|
|
17972
17976
|
r,
|
|
17973
17977
|
t.tokenize(p, a.grammar),
|
|
17974
17978
|
"language-" + r,
|
|
17975
17979
|
p
|
|
17976
|
-
),
|
|
17977
|
-
|
|
17980
|
+
), S = m.substring(E + h.length), w = [];
|
|
17981
|
+
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;
|
|
17978
17982
|
}
|
|
17979
17983
|
} else c.content && s(c.content);
|
|
17980
17984
|
}
|
|
@@ -20546,36 +20550,36 @@ function Jo(e) {
|
|
|
20546
20550
|
}, e.hooks.add("after-tokenize", function(n) {
|
|
20547
20551
|
if (n.language !== "graphql")
|
|
20548
20552
|
return;
|
|
20549
|
-
var a = n.tokens.filter(function(
|
|
20550
|
-
return typeof
|
|
20553
|
+
var a = n.tokens.filter(function(v) {
|
|
20554
|
+
return typeof v != "string" && v.type !== "comment" && v.type !== "scalar";
|
|
20551
20555
|
}), r = 0;
|
|
20552
|
-
function i(
|
|
20553
|
-
return a[r +
|
|
20554
|
-
}
|
|
20555
|
-
function o(
|
|
20556
|
-
|
|
20557
|
-
for (var
|
|
20558
|
-
var w = i(
|
|
20559
|
-
if (!w || w.type !==
|
|
20556
|
+
function i(v) {
|
|
20557
|
+
return a[r + v];
|
|
20558
|
+
}
|
|
20559
|
+
function o(v, y) {
|
|
20560
|
+
y = y || 0;
|
|
20561
|
+
for (var S = 0; S < v.length; S++) {
|
|
20562
|
+
var w = i(S + y);
|
|
20563
|
+
if (!w || w.type !== v[S])
|
|
20560
20564
|
return !1;
|
|
20561
20565
|
}
|
|
20562
20566
|
return !0;
|
|
20563
20567
|
}
|
|
20564
|
-
function s(
|
|
20565
|
-
for (var
|
|
20568
|
+
function s(v, y) {
|
|
20569
|
+
for (var S = 1, w = r; w < a.length; w++) {
|
|
20566
20570
|
var T = a[w], A = T.content;
|
|
20567
20571
|
if (T.type === "punctuation" && typeof A == "string") {
|
|
20568
|
-
if (
|
|
20569
|
-
|
|
20570
|
-
else if (
|
|
20572
|
+
if (v.test(A))
|
|
20573
|
+
S++;
|
|
20574
|
+
else if (y.test(A) && (S--, S === 0))
|
|
20571
20575
|
return w;
|
|
20572
20576
|
}
|
|
20573
20577
|
}
|
|
20574
20578
|
return -1;
|
|
20575
20579
|
}
|
|
20576
|
-
function l(
|
|
20577
|
-
var
|
|
20578
|
-
|
|
20580
|
+
function l(v, y) {
|
|
20581
|
+
var S = v.alias;
|
|
20582
|
+
S ? Array.isArray(S) || (v.alias = S = [S]) : v.alias = S = [], S.push(y);
|
|
20579
20583
|
}
|
|
20580
20584
|
for (; r < a.length; ) {
|
|
20581
20585
|
var u = a[r++];
|
|
@@ -23086,60 +23090,60 @@ function Rs(e) {
|
|
|
23086
23090
|
function l(h, E) {
|
|
23087
23091
|
return "___" + E.toUpperCase() + "_" + h + "___";
|
|
23088
23092
|
}
|
|
23089
|
-
function u(h, E,
|
|
23090
|
-
var
|
|
23093
|
+
function u(h, E, v) {
|
|
23094
|
+
var y = {
|
|
23091
23095
|
code: h,
|
|
23092
23096
|
grammar: E,
|
|
23093
|
-
language:
|
|
23097
|
+
language: v
|
|
23094
23098
|
};
|
|
23095
|
-
return t.hooks.run("before-tokenize",
|
|
23099
|
+
return t.hooks.run("before-tokenize", y), y.tokens = t.tokenize(y.code, y.grammar), t.hooks.run("after-tokenize", y), y.tokens;
|
|
23096
23100
|
}
|
|
23097
23101
|
function c(h) {
|
|
23098
23102
|
var E = {};
|
|
23099
23103
|
E["interpolation-punctuation"] = i;
|
|
23100
|
-
var
|
|
23101
|
-
if (
|
|
23102
|
-
var
|
|
23103
|
-
|
|
23104
|
-
|
|
23105
|
-
u(
|
|
23106
|
-
),
|
|
23104
|
+
var v = t.tokenize(h, E);
|
|
23105
|
+
if (v.length === 3) {
|
|
23106
|
+
var y = [1, 1];
|
|
23107
|
+
y.push.apply(
|
|
23108
|
+
y,
|
|
23109
|
+
u(v[1], t.languages.javascript, "javascript")
|
|
23110
|
+
), v.splice.apply(v, y);
|
|
23107
23111
|
}
|
|
23108
23112
|
return new t.Token(
|
|
23109
23113
|
"interpolation",
|
|
23110
|
-
|
|
23114
|
+
v,
|
|
23111
23115
|
r.alias,
|
|
23112
23116
|
h
|
|
23113
23117
|
);
|
|
23114
23118
|
}
|
|
23115
|
-
function d(h, E,
|
|
23116
|
-
var
|
|
23119
|
+
function d(h, E, v) {
|
|
23120
|
+
var y = t.tokenize(h, {
|
|
23117
23121
|
interpolation: {
|
|
23118
23122
|
pattern: RegExp(o),
|
|
23119
23123
|
lookbehind: !0
|
|
23120
23124
|
}
|
|
23121
|
-
}),
|
|
23125
|
+
}), S = 0, w = {}, T = y.map(function(k) {
|
|
23122
23126
|
if (typeof k == "string")
|
|
23123
23127
|
return k;
|
|
23124
23128
|
for (var N = k.content, _; h.indexOf(
|
|
23125
|
-
_ = l(
|
|
23129
|
+
_ = l(S++, v)
|
|
23126
23130
|
) !== -1; )
|
|
23127
23131
|
;
|
|
23128
23132
|
return w[_] = N, _;
|
|
23129
|
-
}).join(""), A = u(T, E,
|
|
23130
|
-
|
|
23133
|
+
}).join(""), A = u(T, E, v), x = Object.keys(w);
|
|
23134
|
+
S = 0;
|
|
23131
23135
|
function C(k) {
|
|
23132
23136
|
for (var N = 0; N < k.length; N++) {
|
|
23133
|
-
if (
|
|
23137
|
+
if (S >= x.length)
|
|
23134
23138
|
return;
|
|
23135
23139
|
var _ = k[N];
|
|
23136
23140
|
if (typeof _ == "string" || typeof _.content == "string") {
|
|
23137
|
-
var M = x[
|
|
23141
|
+
var M = x[S], F = typeof _ == "string" ? _ : (
|
|
23138
23142
|
/** @type {string} */
|
|
23139
23143
|
_.content
|
|
23140
23144
|
), D = F.indexOf(M);
|
|
23141
23145
|
if (D !== -1) {
|
|
23142
|
-
++
|
|
23146
|
+
++S;
|
|
23143
23147
|
var U = F.substring(0, D), L = c(
|
|
23144
23148
|
w[M]
|
|
23145
23149
|
), B = F.substring(D + M.length), G = [];
|
|
@@ -23156,9 +23160,9 @@ function Rs(e) {
|
|
|
23156
23160
|
}
|
|
23157
23161
|
}
|
|
23158
23162
|
return C(A), new t.Token(
|
|
23159
|
-
|
|
23163
|
+
v,
|
|
23160
23164
|
A,
|
|
23161
|
-
"language-" +
|
|
23165
|
+
"language-" + v,
|
|
23162
23166
|
h
|
|
23163
23167
|
);
|
|
23164
23168
|
}
|
|
@@ -23173,9 +23177,9 @@ function Rs(e) {
|
|
|
23173
23177
|
t.hooks.add("after-tokenize", function(h) {
|
|
23174
23178
|
if (!(h.language in p))
|
|
23175
23179
|
return;
|
|
23176
|
-
function E(
|
|
23177
|
-
for (var
|
|
23178
|
-
var w = y
|
|
23180
|
+
function E(v) {
|
|
23181
|
+
for (var y = 0, S = v.length; y < S; y++) {
|
|
23182
|
+
var w = v[y];
|
|
23179
23183
|
if (typeof w != "string") {
|
|
23180
23184
|
var T = w.content;
|
|
23181
23185
|
if (!Array.isArray(T)) {
|
|
@@ -28134,8 +28138,8 @@ Xl.aliases = ["qs"];
|
|
|
28134
28138
|
function Xl(e) {
|
|
28135
28139
|
e.register(Q), (function(t) {
|
|
28136
28140
|
function n(m, h) {
|
|
28137
|
-
return m.replace(/<<(\d+)>>/g, function(E,
|
|
28138
|
-
return "(?:" + h[+
|
|
28141
|
+
return m.replace(/<<(\d+)>>/g, function(E, v) {
|
|
28142
|
+
return "(?:" + h[+v] + ")";
|
|
28139
28143
|
});
|
|
28140
28144
|
}
|
|
28141
28145
|
function a(m, h, E) {
|
|
@@ -28429,12 +28433,12 @@ nu.aliases = ["razor"];
|
|
|
28429
28433
|
function nu(e) {
|
|
28430
28434
|
e.register(Ft), e.register(he), (function(t) {
|
|
28431
28435
|
var n = /\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source, a = /@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source + "|" + /'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;
|
|
28432
|
-
function r(
|
|
28436
|
+
function r(S, w) {
|
|
28433
28437
|
for (var T = 0; T < w; T++)
|
|
28434
|
-
|
|
28435
|
-
return "(?:" +
|
|
28438
|
+
S = S.replace(/<self>/g, function() {
|
|
28439
|
+
return "(?:" + S + ")";
|
|
28436
28440
|
});
|
|
28437
|
-
return
|
|
28441
|
+
return S.replace(/<self>/g, "[^\\s\\S]").replace(/<str>/g, "(?:" + a + ")").replace(/<comment>/g, "(?:" + n + ")");
|
|
28438
28442
|
}
|
|
28439
28443
|
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(
|
|
28440
28444
|
/<tagAttrValue>/,
|
|
@@ -28465,18 +28469,18 @@ function nu(e) {
|
|
|
28465
28469
|
{
|
|
28466
28470
|
csharp: t.languages.extend("csharp", {})
|
|
28467
28471
|
}
|
|
28468
|
-
),
|
|
28472
|
+
), v = {
|
|
28469
28473
|
pattern: /\S[\s\S]*/,
|
|
28470
28474
|
alias: "language-csharp",
|
|
28471
28475
|
inside: E
|
|
28472
|
-
},
|
|
28476
|
+
}, y = {
|
|
28473
28477
|
pattern: RegExp(/(^|[^@])/.source + u),
|
|
28474
28478
|
lookbehind: !0,
|
|
28475
28479
|
greedy: !0,
|
|
28476
28480
|
alias: "variable",
|
|
28477
28481
|
inside: {
|
|
28478
28482
|
keyword: /^@/,
|
|
28479
|
-
csharp:
|
|
28483
|
+
csharp: v
|
|
28480
28484
|
}
|
|
28481
28485
|
};
|
|
28482
28486
|
t.languages.cshtml.tag.pattern = RegExp(/<\/?/.source + m), t.languages.cshtml.tag.inside["attr-value"].pattern = RegExp(
|
|
@@ -28485,7 +28489,7 @@ function nu(e) {
|
|
|
28485
28489
|
"inside",
|
|
28486
28490
|
"punctuation",
|
|
28487
28491
|
{
|
|
28488
|
-
value:
|
|
28492
|
+
value: y
|
|
28489
28493
|
},
|
|
28490
28494
|
t.languages.cshtml.tag.inside["attr-value"]
|
|
28491
28495
|
), t.languages.insertBefore("cshtml", "prolog", {
|
|
@@ -28517,7 +28521,7 @@ function nu(e) {
|
|
|
28517
28521
|
greedy: !0,
|
|
28518
28522
|
inside: {
|
|
28519
28523
|
keyword: /^@\w*/,
|
|
28520
|
-
csharp:
|
|
28524
|
+
csharp: v
|
|
28521
28525
|
}
|
|
28522
28526
|
},
|
|
28523
28527
|
directive: {
|
|
@@ -28526,10 +28530,10 @@ function nu(e) {
|
|
|
28526
28530
|
greedy: !0,
|
|
28527
28531
|
inside: {
|
|
28528
28532
|
keyword: /^@\w+/,
|
|
28529
|
-
csharp:
|
|
28533
|
+
csharp: v
|
|
28530
28534
|
}
|
|
28531
28535
|
},
|
|
28532
|
-
value:
|
|
28536
|
+
value: y,
|
|
28533
28537
|
"delegate-operator": {
|
|
28534
28538
|
pattern: /(^|[^@])@(?=<)/,
|
|
28535
28539
|
lookbehind: !0,
|
|
@@ -29307,16 +29311,16 @@ function gu(e) {
|
|
|
29307
29311
|
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,
|
|
29308
29312
|
lookbehind: !0,
|
|
29309
29313
|
alias: "keyword"
|
|
29310
|
-
},
|
|
29314
|
+
}, v = {
|
|
29311
29315
|
pattern: /(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,
|
|
29312
29316
|
lookbehind: !0,
|
|
29313
29317
|
alias: "keyword"
|
|
29314
|
-
},
|
|
29318
|
+
}, 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 = {
|
|
29315
29319
|
pattern: RegExp(
|
|
29316
29320
|
/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(
|
|
29317
29321
|
/<act>/g,
|
|
29318
29322
|
function() {
|
|
29319
|
-
return
|
|
29323
|
+
return y;
|
|
29320
29324
|
}
|
|
29321
29325
|
),
|
|
29322
29326
|
"i"
|
|
@@ -29325,7 +29329,7 @@ function gu(e) {
|
|
|
29325
29329
|
inside: {
|
|
29326
29330
|
keyword: RegExp(
|
|
29327
29331
|
/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g, function() {
|
|
29328
|
-
return
|
|
29332
|
+
return y;
|
|
29329
29333
|
}),
|
|
29330
29334
|
"i"
|
|
29331
29335
|
),
|
|
@@ -29408,7 +29412,7 @@ function gu(e) {
|
|
|
29408
29412
|
inside: t.languages.groovy
|
|
29409
29413
|
},
|
|
29410
29414
|
keyword: w,
|
|
29411
|
-
"submit-statement":
|
|
29415
|
+
"submit-statement": v,
|
|
29412
29416
|
"global-statements": E,
|
|
29413
29417
|
number: a,
|
|
29414
29418
|
"numeric-constant": r,
|
|
@@ -29436,7 +29440,7 @@ function gu(e) {
|
|
|
29436
29440
|
inside: t.languages.lua
|
|
29437
29441
|
},
|
|
29438
29442
|
keyword: w,
|
|
29439
|
-
"submit-statement":
|
|
29443
|
+
"submit-statement": v,
|
|
29440
29444
|
"global-statements": E,
|
|
29441
29445
|
number: a,
|
|
29442
29446
|
"numeric-constant": r,
|
|
@@ -29462,7 +29466,7 @@ function gu(e) {
|
|
|
29462
29466
|
rest: p
|
|
29463
29467
|
}
|
|
29464
29468
|
},
|
|
29465
|
-
"cas-actions":
|
|
29469
|
+
"cas-actions": S,
|
|
29466
29470
|
statement: {
|
|
29467
29471
|
pattern: /((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,
|
|
29468
29472
|
lookbehind: !0,
|
|
@@ -29546,7 +29550,7 @@ function gu(e) {
|
|
|
29546
29550
|
lookbehind: !0,
|
|
29547
29551
|
inside: p
|
|
29548
29552
|
},
|
|
29549
|
-
"cas-actions":
|
|
29553
|
+
"cas-actions": S,
|
|
29550
29554
|
comment: l,
|
|
29551
29555
|
function: d,
|
|
29552
29556
|
format: m,
|
|
@@ -32863,23 +32867,23 @@ const gA = {
|
|
|
32863
32867
|
activeTab: i,
|
|
32864
32868
|
onTabChange: o
|
|
32865
32869
|
}) => {
|
|
32866
|
-
const [s, l] = ee(!1), [u, c] = ee(0), d = i !== void 0 ? i : u, p = (
|
|
32867
|
-
o ? o(
|
|
32870
|
+
const [s, l] = ee(!1), [u, c] = ee(0), d = i !== void 0 ? i : u, p = (y) => {
|
|
32871
|
+
o ? o(y) : c(y);
|
|
32868
32872
|
}, m = r ? r[d]?.code : e, h = r ? r[d]?.language : t, E = async () => {
|
|
32869
|
-
const
|
|
32870
|
-
if (
|
|
32873
|
+
const y = m?.trim?.();
|
|
32874
|
+
if (y)
|
|
32871
32875
|
try {
|
|
32872
32876
|
if (navigator.clipboard && window.isSecureContext)
|
|
32873
|
-
await navigator.clipboard.writeText(
|
|
32877
|
+
await navigator.clipboard.writeText(y);
|
|
32874
32878
|
else {
|
|
32875
|
-
const
|
|
32876
|
-
|
|
32879
|
+
const S = document.createElement("textarea");
|
|
32880
|
+
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);
|
|
32877
32881
|
}
|
|
32878
32882
|
l(!0), setTimeout(() => l(!1), 1800);
|
|
32879
|
-
} catch (
|
|
32880
|
-
console.error("Failed to copy text: ",
|
|
32883
|
+
} catch (S) {
|
|
32884
|
+
console.error("Failed to copy text: ", S), l(!1);
|
|
32881
32885
|
}
|
|
32882
|
-
},
|
|
32886
|
+
}, v = (y) => ({
|
|
32883
32887
|
javascript: /* @__PURE__ */ f.jsx(dp, { className: "w-5 h-5 text-yellow-400" }),
|
|
32884
32888
|
typescript: /* @__PURE__ */ f.jsx(cp, { className: "w-5 h-5 text-sky-400" }),
|
|
32885
32889
|
react: /* @__PURE__ */ f.jsx(up, { className: "w-5 h-5 text-cyan-400" }),
|
|
@@ -32889,7 +32893,7 @@ const gA = {
|
|
|
32889
32893
|
css: /* @__PURE__ */ f.jsx(bp, { className: "w-5 h-5 text-pink-400" }),
|
|
32890
32894
|
shell: /* @__PURE__ */ f.jsx(yp, { className: "w-5 h-5 text-zinc-300" }),
|
|
32891
32895
|
json: /* @__PURE__ */ f.jsx(mp, { className: "w-5 h-5 text-amber-300" })
|
|
32892
|
-
})[
|
|
32896
|
+
})[y] || /* @__PURE__ */ f.jsx(Wa, { className: "w-5 h-5 text-zinc-400" });
|
|
32893
32897
|
return /* @__PURE__ */ f.jsxs(
|
|
32894
32898
|
"div",
|
|
32895
32899
|
{
|
|
@@ -32902,19 +32906,19 @@ const gA = {
|
|
|
32902
32906
|
/* @__PURE__ */ f.jsx("div", { className: "w-3 h-3 rounded-full bg-yellow-500" }),
|
|
32903
32907
|
/* @__PURE__ */ f.jsx("div", { className: "w-3 h-3 rounded-full bg-green-500" })
|
|
32904
32908
|
] }),
|
|
32905
|
-
r ? /* @__PURE__ */ f.jsx("div", { className: "flex space-x-1 px-2 overflow-x-auto scrollbar-none", children: r.map((
|
|
32909
|
+
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(
|
|
32906
32910
|
"button",
|
|
32907
32911
|
{
|
|
32908
|
-
onClick: () => p(
|
|
32909
|
-
className: `flex items-center gap-2 px-3 py-2 text-sm font-medium rounded-lg transition-all duration-200 ${d ===
|
|
32912
|
+
onClick: () => p(S),
|
|
32913
|
+
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"}`,
|
|
32910
32914
|
children: [
|
|
32911
32915
|
/* @__PURE__ */ f.jsx(Wa, { size: 14 }),
|
|
32912
|
-
|
|
32916
|
+
y.name
|
|
32913
32917
|
]
|
|
32914
32918
|
},
|
|
32915
|
-
|
|
32919
|
+
S
|
|
32916
32920
|
)) }) : /* @__PURE__ */ f.jsxs("div", { className: "flex items-center gap-2 px-4 py-2", children: [
|
|
32917
|
-
|
|
32921
|
+
v(h),
|
|
32918
32922
|
/* @__PURE__ */ f.jsx("span", { className: "text-sm font-medium capitalize text-zinc-200", children: h })
|
|
32919
32923
|
] })
|
|
32920
32924
|
] }),
|