@neuctra/cms-core 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cms-core.css +1 -1
- package/dist/index.cjs.js +14 -14
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +218 -220
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -70,11 +70,11 @@ function Zm() {
|
|
|
70
70
|
), b.$$typeof) {
|
|
71
71
|
case E:
|
|
72
72
|
return "Portal";
|
|
73
|
-
case
|
|
73
|
+
case A:
|
|
74
74
|
return b.displayName || "Context";
|
|
75
75
|
case w:
|
|
76
76
|
return (b._context.displayName || "Context") + ".Consumer";
|
|
77
|
-
case
|
|
77
|
+
case T:
|
|
78
78
|
var I = b.render;
|
|
79
79
|
return b = b.displayName, b || (b = I.displayName || I.name || "", b = b !== "" ? "ForwardRef(" + b + ")" : "ForwardRef"), b;
|
|
80
80
|
case k:
|
|
@@ -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"), v = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"),
|
|
241
|
+
var m = te, h = Symbol.for("react.transitional.element"), E = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), A = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), C = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), _ = Symbol.for("react.activity"), M = Symbol.for("react.client.reference"), F = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, U = Array.isArray, L = console.createTask ? console.createTask : function() {
|
|
242
242
|
return null;
|
|
243
243
|
};
|
|
244
244
|
m = {
|
|
@@ -1033,13 +1033,11 @@ const ch = [
|
|
|
1033
1033
|
if (!y) return;
|
|
1034
1034
|
y.focus();
|
|
1035
1035
|
const S = window.getSelection();
|
|
1036
|
-
S
|
|
1037
|
-
const w = u.startsWith("http") ? u : `https://${u}
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
}), t(y.innerHTML);
|
|
1042
|
-
}, 0), l(!1), c("");
|
|
1036
|
+
if (!S || S.rangeCount === 0) return;
|
|
1037
|
+
const w = S.getRangeAt(0), A = u.startsWith("http") ? u : `https://${u}`, T = document.createElement("a");
|
|
1038
|
+
T.href = A, T.target = "_blank", T.rel = "noopener noreferrer", T.className = "text-[#00c214] underline hover:underline";
|
|
1039
|
+
const x = w.toString() || A;
|
|
1040
|
+
T.textContent = x, w.deleteContents(), w.insertNode(T), w.setStartAfter(T), w.setEndAfter(T), S.removeAllRanges(), S.addRange(w), t(y.innerHTML), l(!1), c("");
|
|
1043
1041
|
}, v = () => {
|
|
1044
1042
|
const y = i.current?.innerHTML;
|
|
1045
1043
|
y && t(y);
|
|
@@ -1774,10 +1772,10 @@ function xp(e, t) {
|
|
|
1774
1772
|
return e.Uri.parse(t);
|
|
1775
1773
|
}
|
|
1776
1774
|
function hb({ original: e, modified: t, language: n, originalLanguage: a, modifiedLanguage: r, originalModelPath: i, modifiedModelPath: o, keepCurrentOriginalModel: s = !1, keepCurrentModifiedModel: l = !1, theme: u = "light", loading: c = "Loading...", options: d = {}, height: p = "100%", width: m = "100%", className: h, wrapperProps: E = {}, beforeMount: v = Kt, onMount: y = Kt }) {
|
|
1777
|
-
let [S, w] = ee(!1), [
|
|
1775
|
+
let [S, w] = ee(!1), [A, T] = ee(!0), x = X(null), C = X(null), k = X(null), N = X(y), _ = X(v), M = X(!1);
|
|
1778
1776
|
_p(() => {
|
|
1779
1777
|
let L = Ap.init();
|
|
1780
|
-
return L.then((B) => (C.current = B) &&
|
|
1778
|
+
return L.then((B) => (C.current = B) && T(!1)).catch((B) => B?.type !== "cancelation" && console.error("Monaco initialization: error:", B)), () => x.current ? U() : L.cancel();
|
|
1781
1779
|
}), Ce(() => {
|
|
1782
1780
|
if (x.current && C.current) {
|
|
1783
1781
|
let L = x.current.getOriginalEditor(), B = vt(C.current, e || "", a || n || "text", i || "");
|
|
@@ -1812,8 +1810,8 @@ function hb({ original: e, modified: t, language: n, originalLanguage: a, modifi
|
|
|
1812
1810
|
se(() => {
|
|
1813
1811
|
S && N.current(x.current, C.current);
|
|
1814
1812
|
}, [S]), se(() => {
|
|
1815
|
-
!
|
|
1816
|
-
}, [
|
|
1813
|
+
!A && !S && D();
|
|
1814
|
+
}, [A, S, D]);
|
|
1817
1815
|
function U() {
|
|
1818
1816
|
let L = x.current?.getModel();
|
|
1819
1817
|
s || L?.original?.dispose(), l || L?.modified?.dispose(), x.current?.dispose();
|
|
@@ -1829,26 +1827,26 @@ function yb(e) {
|
|
|
1829
1827
|
}, [e]), t.current;
|
|
1830
1828
|
}
|
|
1831
1829
|
var Eb = yb, kn = /* @__PURE__ */ new Map();
|
|
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:
|
|
1833
|
-
let [
|
|
1830
|
+
function Sb({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: a, language: r, path: i, theme: o = "light", line: s, loading: l = "Loading...", options: u = {}, overrideServices: c = {}, saveViewState: d = !0, keepCurrentModel: p = !1, width: m = "100%", height: h = "100%", className: E, wrapperProps: v = {}, beforeMount: y = Kt, onMount: S = Kt, onChange: w, onValidate: A = Kt }) {
|
|
1831
|
+
let [T, x] = ee(!1), [C, k] = ee(!0), N = X(null), _ = X(null), M = X(null), F = X(S), D = X(y), U = X(), L = X(a), B = Eb(i), G = X(!1), Y = X(!1);
|
|
1834
1832
|
_p(() => {
|
|
1835
1833
|
let b = Ap.init();
|
|
1836
1834
|
return b.then((I) => (N.current = I) && k(!1)).catch((I) => I?.type !== "cancelation" && console.error("Monaco initialization: error:", I)), () => _.current ? q() : b.cancel();
|
|
1837
1835
|
}), Ce(() => {
|
|
1838
1836
|
let b = vt(N.current, e || a || "", t || r || "", i || n || "");
|
|
1839
1837
|
b !== _.current?.getModel() && (d && kn.set(B, _.current?.saveViewState()), _.current?.setModel(b), d && _.current?.restoreViewState(kn.get(i)));
|
|
1840
|
-
}, [i],
|
|
1838
|
+
}, [i], T), Ce(() => {
|
|
1841
1839
|
_.current?.updateOptions(u);
|
|
1842
|
-
}, [u],
|
|
1840
|
+
}, [u], T), Ce(() => {
|
|
1843
1841
|
!_.current || a === void 0 || (_.current.getOption(N.current.editor.EditorOption.readOnly) ? _.current.setValue(a) : a !== _.current.getValue() && (Y.current = !0, _.current.executeEdits("", [{ range: _.current.getModel().getFullModelRange(), text: a, forceMoveMarkers: !0 }]), _.current.pushUndoStop(), Y.current = !1));
|
|
1844
|
-
}, [a],
|
|
1842
|
+
}, [a], T), Ce(() => {
|
|
1845
1843
|
let b = _.current?.getModel();
|
|
1846
1844
|
b && r && N.current?.editor.setModelLanguage(b, r);
|
|
1847
|
-
}, [r],
|
|
1845
|
+
}, [r], T), Ce(() => {
|
|
1848
1846
|
s !== void 0 && _.current?.revealLine(s);
|
|
1849
|
-
}, [s],
|
|
1847
|
+
}, [s], T), Ce(() => {
|
|
1850
1848
|
N.current?.editor.setTheme(o);
|
|
1851
|
-
}, [o],
|
|
1849
|
+
}, [o], T);
|
|
1852
1850
|
let z = mt(() => {
|
|
1853
1851
|
if (!(!M.current || !N.current) && !G.current) {
|
|
1854
1852
|
D.current(N.current);
|
|
@@ -1857,20 +1855,20 @@ function Sb({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: a, lan
|
|
|
1857
1855
|
}
|
|
1858
1856
|
}, [e, t, n, a, r, i, u, c, d, o, s]);
|
|
1859
1857
|
se(() => {
|
|
1860
|
-
|
|
1861
|
-
}, [
|
|
1862
|
-
!C && !
|
|
1863
|
-
}, [C,
|
|
1864
|
-
|
|
1858
|
+
T && F.current(_.current, N.current);
|
|
1859
|
+
}, [T]), se(() => {
|
|
1860
|
+
!C && !T && z();
|
|
1861
|
+
}, [C, T, z]), L.current = a, se(() => {
|
|
1862
|
+
T && w && (U.current?.dispose(), U.current = _.current?.onDidChangeModelContent((b) => {
|
|
1865
1863
|
Y.current || w(_.current.getValue(), b);
|
|
1866
1864
|
}));
|
|
1867
|
-
}, [
|
|
1868
|
-
if (
|
|
1865
|
+
}, [T, w]), se(() => {
|
|
1866
|
+
if (T) {
|
|
1869
1867
|
let b = N.current.editor.onDidChangeMarkers((I) => {
|
|
1870
1868
|
let $ = _.current.getModel()?.uri;
|
|
1871
1869
|
if ($ && I.find((H) => H.path === $.path)) {
|
|
1872
1870
|
let H = N.current.editor.getModelMarkers({ resource: $ });
|
|
1873
|
-
|
|
1871
|
+
A?.(H);
|
|
1874
1872
|
}
|
|
1875
1873
|
});
|
|
1876
1874
|
return () => {
|
|
@@ -1879,11 +1877,11 @@ function Sb({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: a, lan
|
|
|
1879
1877
|
}
|
|
1880
1878
|
return () => {
|
|
1881
1879
|
};
|
|
1882
|
-
}, [
|
|
1880
|
+
}, [T, A]);
|
|
1883
1881
|
function q() {
|
|
1884
1882
|
U.current?.dispose(), p ? d && kn.set(i, _.current.saveViewState()) : _.current.getModel()?.dispose(), _.current.dispose();
|
|
1885
1883
|
}
|
|
1886
|
-
return te.createElement(Np, { width: m, height: h, isEditorReady:
|
|
1884
|
+
return te.createElement(Np, { width: m, height: h, isEditorReady: T, loading: l, _ref: M, className: E, wrapperProps: v });
|
|
1887
1885
|
}
|
|
1888
1886
|
var vb = Sb, kp = ln(vb), wb = kp, xa = { exports: {} }, Ht = {};
|
|
1889
1887
|
/**
|
|
@@ -1955,11 +1953,11 @@ function Ab() {
|
|
|
1955
1953
|
), b.$$typeof) {
|
|
1956
1954
|
case E:
|
|
1957
1955
|
return "Portal";
|
|
1958
|
-
case
|
|
1956
|
+
case A:
|
|
1959
1957
|
return b.displayName || "Context";
|
|
1960
1958
|
case w:
|
|
1961
1959
|
return (b._context.displayName || "Context") + ".Consumer";
|
|
1962
|
-
case
|
|
1960
|
+
case T:
|
|
1963
1961
|
var I = b.render;
|
|
1964
1962
|
return b = b.displayName, b || (b = I.displayName || I.name || "", b = b !== "" ? "ForwardRef(" + b + ")" : "ForwardRef"), b;
|
|
1965
1963
|
case k:
|
|
@@ -2123,7 +2121,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2123
2121
|
function p(b) {
|
|
2124
2122
|
return typeof b == "object" && b !== null && b.$$typeof === h;
|
|
2125
2123
|
}
|
|
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"),
|
|
2124
|
+
var m = te, h = Symbol.for("react.transitional.element"), E = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), A = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), C = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), _ = Symbol.for("react.activity"), M = Symbol.for("react.client.reference"), F = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, U = Array.isArray, L = console.createTask ? console.createTask : function() {
|
|
2127
2125
|
return null;
|
|
2128
2126
|
};
|
|
2129
2127
|
m = {
|
|
@@ -2198,8 +2196,8 @@ const _b = Be(
|
|
|
2198
2196
|
loaderStyle: y,
|
|
2199
2197
|
textStyle: S,
|
|
2200
2198
|
type: w = "button",
|
|
2201
|
-
...
|
|
2202
|
-
},
|
|
2199
|
+
...A
|
|
2200
|
+
}, T) {
|
|
2203
2201
|
const x = l || a, C = {
|
|
2204
2202
|
xs: "px-3 py-1.5 text-xs min-h-[28px] rounded-md",
|
|
2205
2203
|
sm: "px-4 py-2 text-sm min-h-[32px] rounded-md",
|
|
@@ -2220,7 +2218,7 @@ const _b = Be(
|
|
|
2220
2218
|
return /* @__PURE__ */ R.jsx(
|
|
2221
2219
|
"button",
|
|
2222
2220
|
{
|
|
2223
|
-
ref:
|
|
2221
|
+
ref: T,
|
|
2224
2222
|
type: w,
|
|
2225
2223
|
disabled: x,
|
|
2226
2224
|
"aria-disabled": x,
|
|
@@ -2235,7 +2233,7 @@ const _b = Be(
|
|
|
2235
2233
|
style: {
|
|
2236
2234
|
...h
|
|
2237
2235
|
},
|
|
2238
|
-
...
|
|
2236
|
+
...A,
|
|
2239
2237
|
children: /* @__PURE__ */ R.jsx(
|
|
2240
2238
|
"span",
|
|
2241
2239
|
{
|
|
@@ -2344,8 +2342,8 @@ const Nc = (e) => {
|
|
|
2344
2342
|
fallback: y,
|
|
2345
2343
|
loading: S = "lazy",
|
|
2346
2344
|
className: w,
|
|
2347
|
-
imageClassName:
|
|
2348
|
-
overlayClassName:
|
|
2345
|
+
imageClassName: A,
|
|
2346
|
+
overlayClassName: T,
|
|
2349
2347
|
fallbackClassName: x,
|
|
2350
2348
|
style: C,
|
|
2351
2349
|
imageStyle: k,
|
|
@@ -2427,10 +2425,10 @@ const Nc = (e) => {
|
|
|
2427
2425
|
alt: a,
|
|
2428
2426
|
loading: S,
|
|
2429
2427
|
style: L,
|
|
2430
|
-
className:
|
|
2428
|
+
className: A
|
|
2431
2429
|
}
|
|
2432
2430
|
) : /* @__PURE__ */ R.jsx("div", { style: G, className: x, children: y || "No Image" }),
|
|
2433
|
-
m && /* @__PURE__ */ R.jsx("div", { style: B, className:
|
|
2431
|
+
m && /* @__PURE__ */ R.jsx("div", { style: B, className: T, children: m })
|
|
2434
2432
|
]
|
|
2435
2433
|
}
|
|
2436
2434
|
);
|
|
@@ -2990,7 +2988,7 @@ function Yp(e, t) {
|
|
|
2990
2988
|
};
|
|
2991
2989
|
return { schedule: In.reduce((y, S) => {
|
|
2992
2990
|
const w = o[S];
|
|
2993
|
-
return y[S] = (
|
|
2991
|
+
return y[S] = (A, T = !1, x = !1) => (n || v(), w.schedule(A, T, x)), y;
|
|
2994
2992
|
}, {}), cancel: (y) => {
|
|
2995
2993
|
for (let S = 0; S < In.length; S++)
|
|
2996
2994
|
o[In[S]].cancel(y);
|
|
@@ -3352,16 +3350,16 @@ function Zn(e = oe.visualDuration, t = oe.bounce) {
|
|
|
3352
3350
|
velocity: -/* @__PURE__ */ Le(n.velocity || 0)
|
|
3353
3351
|
}), h = p || 0, E = u / (2 * Math.sqrt(l * c)), v = o - i, y = /* @__PURE__ */ Le(Math.sqrt(l / c)), S = Math.abs(v) < 5;
|
|
3354
3352
|
a || (a = S ? oe.restSpeed.granular : oe.restSpeed.default), r || (r = S ? oe.restDelta.granular : oe.restDelta.default);
|
|
3355
|
-
let w,
|
|
3353
|
+
let w, A, T, x, C, k;
|
|
3356
3354
|
if (E < 1)
|
|
3357
|
-
|
|
3355
|
+
T = Xa(y, E), x = (h + E * y * v) / T, w = (_) => {
|
|
3358
3356
|
const M = Math.exp(-E * y * _);
|
|
3359
|
-
return o - M * (x * Math.sin(
|
|
3360
|
-
}, C = E * y * x + v *
|
|
3357
|
+
return o - M * (x * Math.sin(T * _) + v * Math.cos(T * _));
|
|
3358
|
+
}, C = E * y * x + v * T, k = E * y * v - x * T, A = (_) => Math.exp(-E * y * _) * (C * Math.sin(T * _) + k * Math.cos(T * _));
|
|
3361
3359
|
else if (E === 1) {
|
|
3362
3360
|
w = (M) => o - Math.exp(-y * M) * (v + (h + y * v) * M);
|
|
3363
3361
|
const _ = h + y * v;
|
|
3364
|
-
|
|
3362
|
+
A = (M) => Math.exp(-y * M) * (y * _ * M - h);
|
|
3365
3363
|
} else {
|
|
3366
3364
|
const _ = y * Math.sqrt(E * E - 1);
|
|
3367
3365
|
w = (U) => {
|
|
@@ -3369,24 +3367,24 @@ function Zn(e = oe.visualDuration, t = oe.bounce) {
|
|
|
3369
3367
|
return o - L * ((h + E * y * v) * Math.sinh(B) + _ * v * Math.cosh(B)) / _;
|
|
3370
3368
|
};
|
|
3371
3369
|
const M = (h + E * y * v) / _, F = E * y * M - v * _, D = E * y * v - M * _;
|
|
3372
|
-
|
|
3370
|
+
A = (U) => {
|
|
3373
3371
|
const L = Math.exp(-E * y * U), B = Math.min(_ * U, 300);
|
|
3374
3372
|
return L * (F * Math.sinh(B) + D * Math.cosh(B));
|
|
3375
3373
|
};
|
|
3376
3374
|
}
|
|
3377
3375
|
const N = {
|
|
3378
3376
|
calculatedDuration: m && d || null,
|
|
3379
|
-
velocity: (_) => /* @__PURE__ */ ke(
|
|
3377
|
+
velocity: (_) => /* @__PURE__ */ ke(A(_)),
|
|
3380
3378
|
next: (_) => {
|
|
3381
3379
|
if (!m && E < 1) {
|
|
3382
|
-
const F = Math.exp(-E * y * _), D = Math.sin(
|
|
3380
|
+
const F = Math.exp(-E * y * _), D = Math.sin(T * _), U = Math.cos(T * _), L = o - F * (x * D + v * U), B = /* @__PURE__ */ ke(F * (C * D + k * U));
|
|
3383
3381
|
return s.done = Math.abs(B) <= a && Math.abs(o - L) <= r, s.value = s.done ? o : L, s;
|
|
3384
3382
|
}
|
|
3385
3383
|
const M = w(_);
|
|
3386
3384
|
if (m)
|
|
3387
3385
|
s.done = _ >= d;
|
|
3388
3386
|
else {
|
|
3389
|
-
const F = /* @__PURE__ */ ke(
|
|
3387
|
+
const F = /* @__PURE__ */ ke(A(_));
|
|
3390
3388
|
s.done = Math.abs(F) <= a && Math.abs(o - M) <= r;
|
|
3391
3389
|
}
|
|
3392
3390
|
return s.value = s.done ? o : M, s;
|
|
@@ -3417,13 +3415,13 @@ function Za({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: a = 3
|
|
|
3417
3415
|
let E = n * t;
|
|
3418
3416
|
const v = d + E, y = o === void 0 ? v : o(v);
|
|
3419
3417
|
y !== v && (E = y - d);
|
|
3420
|
-
const S = (k) => -E * Math.exp(-k / a), w = (k) => y + S(k),
|
|
3418
|
+
const S = (k) => -E * Math.exp(-k / a), w = (k) => y + S(k), A = (k) => {
|
|
3421
3419
|
const N = S(k), _ = w(k);
|
|
3422
3420
|
p.done = Math.abs(N) <= u, p.value = p.done ? y : _;
|
|
3423
3421
|
};
|
|
3424
|
-
let
|
|
3422
|
+
let T, x;
|
|
3425
3423
|
const C = (k) => {
|
|
3426
|
-
m(p.value) && (
|
|
3424
|
+
m(p.value) && (T = k, x = Zn({
|
|
3427
3425
|
keyframes: [p.value, h(p.value)],
|
|
3428
3426
|
velocity: rg(w, k, p.value),
|
|
3429
3427
|
// TODO: This should be passing * 1000
|
|
@@ -3437,7 +3435,7 @@ function Za({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: a = 3
|
|
|
3437
3435
|
calculatedDuration: null,
|
|
3438
3436
|
next: (k) => {
|
|
3439
3437
|
let N = !1;
|
|
3440
|
-
return !x &&
|
|
3438
|
+
return !x && T === void 0 && (N = !0, A(k), C(k)), T !== void 0 && k >= T ? x.next(k - T) : (!N && A(k), p);
|
|
3441
3439
|
}
|
|
3442
3440
|
};
|
|
3443
3441
|
}
|
|
@@ -3585,18 +3583,18 @@ class Qn extends zr {
|
|
|
3585
3583
|
this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - r / this.speed, this.startTime)), n ? this.currentTime = t : this.updateTime(t);
|
|
3586
3584
|
const y = this.currentTime - u * (this.playbackSpeed >= 0 ? 1 : -1), S = this.playbackSpeed >= 0 ? y < 0 : y > r;
|
|
3587
3585
|
this.currentTime = Math.max(y, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = r);
|
|
3588
|
-
let w = this.currentTime,
|
|
3586
|
+
let w = this.currentTime, A = a;
|
|
3589
3587
|
if (d) {
|
|
3590
3588
|
const k = Math.min(this.currentTime, r) / s;
|
|
3591
3589
|
let N = Math.floor(k), _ = k % 1;
|
|
3592
|
-
!_ && k >= 1 && (_ = 1), _ === 1 && N--, N = Math.min(N, d + 1), N % 2 && (p === "reverse" ? (_ = 1 - _, m && (_ -= m / s)) : p === "mirror" && (
|
|
3590
|
+
!_ && k >= 1 && (_ = 1), _ === 1 && N--, N = Math.min(N, d + 1), N % 2 && (p === "reverse" ? (_ = 1 - _, m && (_ -= m / s)) : p === "mirror" && (A = o)), w = We(0, 1, _) * s;
|
|
3593
3591
|
}
|
|
3594
|
-
let
|
|
3595
|
-
S ? (this.delayState.value = c[0],
|
|
3596
|
-
let { done: x } =
|
|
3592
|
+
let T;
|
|
3593
|
+
S ? (this.delayState.value = c[0], T = this.delayState) : T = A.next(w), i && !S && (T.value = i(T.value));
|
|
3594
|
+
let { done: x } = T;
|
|
3597
3595
|
!S && l !== null && (x = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
|
|
3598
3596
|
const C = this.holdTime === null && (this.state === "finished" || this.state === "running" && x);
|
|
3599
|
-
return C && h !== Za && (
|
|
3597
|
+
return C && h !== Za && (T.value = sa(c, this.options, v, this.speed)), E && E(T.value), C && this.finish(), T;
|
|
3600
3598
|
}
|
|
3601
3599
|
/**
|
|
3602
3600
|
* Allows the returned animation to be awaited or promise-chained. Currently
|
|
@@ -4601,10 +4599,10 @@ function wg(e, t, { delay: n = 0, transitionOverride: a, type: r } = {}) {
|
|
|
4601
4599
|
}
|
|
4602
4600
|
let y = !1;
|
|
4603
4601
|
if (window.MotionHandoffAnimation) {
|
|
4604
|
-
const
|
|
4605
|
-
if (
|
|
4606
|
-
const
|
|
4607
|
-
|
|
4602
|
+
const A = vg(e);
|
|
4603
|
+
if (A) {
|
|
4604
|
+
const T = window.MotionHandoffAnimation(A, p, ne);
|
|
4605
|
+
T !== null && (E.startTime = T, y = !0);
|
|
4608
4606
|
}
|
|
4609
4607
|
}
|
|
4610
4608
|
sr(e, p);
|
|
@@ -5764,13 +5762,13 @@ function XS(e) {
|
|
|
5764
5762
|
const { props: c } = e, d = qg(e.parent) || {}, p = [], m = /* @__PURE__ */ new Set();
|
|
5765
5763
|
let h = {}, E = 1 / 0;
|
|
5766
5764
|
for (let y = 0; y < YS; y++) {
|
|
5767
|
-
const S = qS[y], w = n[S],
|
|
5765
|
+
const S = qS[y], w = n[S], A = c[S] !== void 0 ? c[S] : d[S], T = an(A), x = S === u ? w.isActive : null;
|
|
5768
5766
|
x === !1 && (E = y);
|
|
5769
|
-
let C =
|
|
5767
|
+
let C = A === d[S] && A !== c[S] && T;
|
|
5770
5768
|
if (C && (a || r) && e.manuallyAnimateOnMount && (C = !1), w.protectedKeys = { ...h }, // If it isn't active and hasn't *just* been set as inactive
|
|
5771
5769
|
!w.isActive && x === null || // If we didn't and don't have any defined prop for this animation type
|
|
5772
|
-
!
|
|
5773
|
-
la(
|
|
5770
|
+
!A && !w.prevProp || // Or if the prop doesn't define an animation
|
|
5771
|
+
la(A) || typeof A == "boolean")
|
|
5774
5772
|
continue;
|
|
5775
5773
|
if (S === "exit" && w.isActive && x !== !0) {
|
|
5776
5774
|
w.prevResolvedValues && (h = {
|
|
@@ -5779,11 +5777,11 @@ function XS(e) {
|
|
|
5779
5777
|
});
|
|
5780
5778
|
continue;
|
|
5781
5779
|
}
|
|
5782
|
-
const k = ZS(w.prevProp,
|
|
5780
|
+
const k = ZS(w.prevProp, A);
|
|
5783
5781
|
let N = k || // If we're making this variant active, we want to always make it active
|
|
5784
|
-
S === u && w.isActive && !C &&
|
|
5785
|
-
y > E &&
|
|
5786
|
-
const M = Array.isArray(
|
|
5782
|
+
S === u && w.isActive && !C && T || // If we removed a higher-priority variant (i is in reverse order)
|
|
5783
|
+
y > E && T, _ = !1;
|
|
5784
|
+
const M = Array.isArray(A) ? A : [A];
|
|
5787
5785
|
let F = M.reduce(i(S), {});
|
|
5788
5786
|
x === !1 && (F = {});
|
|
5789
5787
|
const { prevResolvedValues: D = {} } = w, U = {
|
|
@@ -5801,7 +5799,7 @@ function XS(e) {
|
|
|
5801
5799
|
let q = !1;
|
|
5802
5800
|
or(Y) && or(z) ? q = !Yg(Y, z) : q = Y !== z, q ? Y != null ? L(G) : m.add(G) : Y !== void 0 && m.has(G) ? L(G) : w.protectedKeys[G] = !0;
|
|
5803
5801
|
}
|
|
5804
|
-
w.prevProp =
|
|
5802
|
+
w.prevProp = A, w.prevResolvedValues = F, w.isActive && (h = { ...h, ...F }), (a || r) && e.blockInitialAnimation && (N = !1);
|
|
5805
5803
|
const B = C && k;
|
|
5806
5804
|
N && (!B || _) && p.push(...M.map((G) => {
|
|
5807
5805
|
const Y = { type: S };
|
|
@@ -5825,8 +5823,8 @@ function XS(e) {
|
|
|
5825
5823
|
S && S.transition && (y.transition = S.transition);
|
|
5826
5824
|
}
|
|
5827
5825
|
m.forEach((S) => {
|
|
5828
|
-
const w = e.getBaseTarget(S),
|
|
5829
|
-
|
|
5826
|
+
const w = e.getBaseTarget(S), A = e.getValue(S);
|
|
5827
|
+
A && (A.liveStyle = !0), y[S] = w ?? null;
|
|
5830
5828
|
}), p.push({ animation: y });
|
|
5831
5829
|
}
|
|
5832
5830
|
let v = !!p.length;
|
|
@@ -6399,8 +6397,8 @@ function nm({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
6399
6397
|
this.animationProgress = 0;
|
|
6400
6398
|
let S;
|
|
6401
6399
|
this.mixTargetDelta = (w) => {
|
|
6402
|
-
const
|
|
6403
|
-
Nd(c.x, i.x,
|
|
6400
|
+
const A = w / 1e3;
|
|
6401
|
+
Nd(c.x, i.x, A), Nd(c.y, i.y, A), this.setTargetDelta(c), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ta(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), Ov(this.relativeTarget, this.relativeTargetOrigin, d, A), S && sv(this.relativeTarget, S) && (this.isProjectionDirty = !1), S || (S = ce()), Me(S, this.relativeTarget)), h && (this.animationValues = u, cv(u, l, this.latestValues, A, y, v)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = A;
|
|
6404
6402
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
6405
6403
|
}
|
|
6406
6404
|
startAnimation(i) {
|
|
@@ -6744,10 +6742,10 @@ function jv({ children: e, isPresent: t, anchorX: n, anchorY: a, root: r, pop: i
|
|
|
6744
6742
|
return;
|
|
6745
6743
|
const S = n === "left" ? `left: ${E}` : `right: ${v}`, w = a === "bottom" ? `bottom: ${y}` : `top: ${h}`;
|
|
6746
6744
|
s.current.dataset.motionPopId = o;
|
|
6747
|
-
const
|
|
6748
|
-
u && (
|
|
6749
|
-
const
|
|
6750
|
-
return
|
|
6745
|
+
const A = document.createElement("style");
|
|
6746
|
+
u && (A.nonce = u);
|
|
6747
|
+
const T = r ?? document.head;
|
|
6748
|
+
return T.appendChild(A), A.sheet && A.sheet.insertRule(`
|
|
6751
6749
|
[data-motion-pop-id="${o}"] {
|
|
6752
6750
|
position: absolute !important;
|
|
6753
6751
|
width: ${p}px !important;
|
|
@@ -6756,7 +6754,7 @@ function jv({ children: e, isPresent: t, anchorX: n, anchorY: a, root: r, pop: i
|
|
|
6756
6754
|
${w}px !important;
|
|
6757
6755
|
}
|
|
6758
6756
|
`), () => {
|
|
6759
|
-
s.current?.removeAttribute("data-motion-pop-id"),
|
|
6757
|
+
s.current?.removeAttribute("data-motion-pop-id"), T.contains(A) && T.removeChild(A);
|
|
6760
6758
|
};
|
|
6761
6759
|
}, [t]), R.jsx($v, { isPresent: t, childRef: s, sizeRef: l, pop: i, children: i === !1 ? e : aa.cloneElement(e, { ref: d }) });
|
|
6762
6760
|
}
|
|
@@ -6805,27 +6803,27 @@ function Cd(e) {
|
|
|
6805
6803
|
}), t;
|
|
6806
6804
|
}
|
|
6807
6805
|
const om = ({ children: e, custom: t, initial: n = !0, onExitComplete: a, presenceAffectsLayout: r = !0, mode: i = "sync", propagate: o = !1, anchorX: s = "left", anchorY: l = "top", root: u }) => {
|
|
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), [
|
|
6806
|
+
const [c, d] = im(o), p = Ue(() => Cd(e), [e]), m = o && !c ? [] : p.map(On), h = X(!0), E = X(p), v = Or(() => /* @__PURE__ */ new Map()), y = X(/* @__PURE__ */ new Set()), [S, w] = ee(p), [A, T] = ee(p);
|
|
6809
6807
|
Op(() => {
|
|
6810
6808
|
h.current = !1, E.current = p;
|
|
6811
|
-
for (let k = 0; k <
|
|
6812
|
-
const N = On(
|
|
6809
|
+
for (let k = 0; k < A.length; k++) {
|
|
6810
|
+
const N = On(A[k]);
|
|
6813
6811
|
m.includes(N) ? (v.delete(N), y.current.delete(N)) : v.get(N) !== !0 && v.set(N, !1);
|
|
6814
6812
|
}
|
|
6815
|
-
}, [
|
|
6813
|
+
}, [A, m.length, m.join("-")]);
|
|
6816
6814
|
const x = [];
|
|
6817
6815
|
if (p !== S) {
|
|
6818
6816
|
let k = [...p];
|
|
6819
|
-
for (let N = 0; N <
|
|
6820
|
-
const _ =
|
|
6817
|
+
for (let N = 0; N < A.length; N++) {
|
|
6818
|
+
const _ = A[N], M = On(_);
|
|
6821
6819
|
m.includes(M) || (k.splice(N, 0, _), x.push(_));
|
|
6822
6820
|
}
|
|
6823
|
-
return i === "wait" && x.length && (k = x),
|
|
6821
|
+
return i === "wait" && x.length && (k = x), T(Cd(k)), w(p), null;
|
|
6824
6822
|
}
|
|
6825
|
-
process.env.NODE_ENV !== "production" && i === "wait" &&
|
|
6823
|
+
process.env.NODE_ENV !== "production" && i === "wait" && A.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
|
|
6826
6824
|
const { forceRender: C } = ye(Cr);
|
|
6827
|
-
return R.jsx(R.Fragment, { children:
|
|
6828
|
-
const N = On(k), _ = o && !c ? !1 : p ===
|
|
6825
|
+
return R.jsx(R.Fragment, { children: A.map((k) => {
|
|
6826
|
+
const N = On(k), _ = o && !c ? !1 : p === A || m.includes(N), M = () => {
|
|
6829
6827
|
if (y.current.has(N))
|
|
6830
6828
|
return;
|
|
6831
6829
|
if (v.has(N))
|
|
@@ -6835,7 +6833,7 @@ const om = ({ children: e, custom: t, initial: n = !0, onExitComplete: a, presen
|
|
|
6835
6833
|
let F = !0;
|
|
6836
6834
|
v.forEach((D) => {
|
|
6837
6835
|
D || (F = !1);
|
|
6838
|
-
}), F && (C?.(),
|
|
6836
|
+
}), F && (C?.(), T(E.current), o && d?.(), a && a());
|
|
6839
6837
|
};
|
|
6840
6838
|
return R.jsx(Gv, { isPresent: _, initial: !h.current || n ? void 0 : !1, custom: t, presenceAffectsLayout: r, mode: i, root: u, onExitComplete: _ ? void 0 : M, anchorX: s, anchorY: l, children: k }, N);
|
|
6841
6839
|
}) });
|
|
@@ -7072,8 +7070,8 @@ function rw(e, t, n, a) {
|
|
|
7072
7070
|
for (const S in y) {
|
|
7073
7071
|
let w = y[S];
|
|
7074
7072
|
if (Array.isArray(w)) {
|
|
7075
|
-
const
|
|
7076
|
-
w = w[
|
|
7073
|
+
const A = c ? w.length - 1 : 0;
|
|
7074
|
+
w = w[A];
|
|
7077
7075
|
}
|
|
7078
7076
|
w !== null && (r[S] = w);
|
|
7079
7077
|
}
|
|
@@ -7509,8 +7507,8 @@ class Cw {
|
|
|
7509
7507
|
if (He.test(S)) {
|
|
7510
7508
|
const { projection: w } = this.visualElement;
|
|
7511
7509
|
if (w && w.layout) {
|
|
7512
|
-
const
|
|
7513
|
-
|
|
7510
|
+
const A = w.layout.layoutBox[y];
|
|
7511
|
+
A && (S = _e(A) * (parseFloat(S) / 100));
|
|
7514
7512
|
}
|
|
7515
7513
|
}
|
|
7516
7514
|
this.originPoint[y] = S;
|
|
@@ -8011,20 +8009,20 @@ const Yw = {
|
|
|
8011
8009
|
style: c,
|
|
8012
8010
|
menuStyle: d
|
|
8013
8011
|
}, p) {
|
|
8014
|
-
const [m, h] = ee(!1), [E, v] = ee({ top: 0, left: 0 }), [y, S] = ee("bottom"), w = n !== void 0,
|
|
8012
|
+
const [m, h] = ee(!1), [E, v] = ee({ top: 0, left: 0 }), [y, S] = ee("bottom"), w = n !== void 0, A = w ? n : m, T = X(null), x = X(null), C = (N) => {
|
|
8015
8013
|
w || h(N), a?.(N);
|
|
8016
8014
|
};
|
|
8017
8015
|
se(() => {
|
|
8018
8016
|
const N = (_) => {
|
|
8019
|
-
|
|
8017
|
+
T.current && !T.current.contains(_.target) && C(!1);
|
|
8020
8018
|
};
|
|
8021
8019
|
return document.addEventListener("mousedown", N), () => {
|
|
8022
8020
|
document.removeEventListener("mousedown", N);
|
|
8023
8021
|
};
|
|
8024
8022
|
}, []), Nr(() => {
|
|
8025
|
-
if (!
|
|
8023
|
+
if (!A || !T.current || !x.current) return;
|
|
8026
8024
|
const N = () => {
|
|
8027
|
-
const _ =
|
|
8025
|
+
const _ = T.current.getBoundingClientRect(), M = x.current.offsetHeight, F = window.innerHeight - _.bottom, D = _.top, U = F < M + 10 && D > M, L = U ? _.top - M - 8 : _.bottom + 8;
|
|
8028
8026
|
let B = r === "right" ? _.right - i : _.left;
|
|
8029
8027
|
const G = window.innerWidth - i - 8;
|
|
8030
8028
|
B = Math.max(8, Math.min(B, G)), S(U ? "top" : "bottom"), v({ top: L, left: B });
|
|
@@ -8032,9 +8030,9 @@ const Yw = {
|
|
|
8032
8030
|
return N(), window.addEventListener("scroll", N, !0), window.addEventListener("resize", N), () => {
|
|
8033
8031
|
window.removeEventListener("scroll", N, !0), window.removeEventListener("resize", N);
|
|
8034
8032
|
};
|
|
8035
|
-
}, [
|
|
8033
|
+
}, [A, r, i]);
|
|
8036
8034
|
const k = (N) => {
|
|
8037
|
-
|
|
8035
|
+
T.current = N, typeof p == "function" ? p(N) : p && (p.current = N);
|
|
8038
8036
|
};
|
|
8039
8037
|
return /* @__PURE__ */ R.jsxs(
|
|
8040
8038
|
"div",
|
|
@@ -8048,12 +8046,12 @@ const Yw = {
|
|
|
8048
8046
|
{
|
|
8049
8047
|
className: "flex",
|
|
8050
8048
|
onClick: (N) => {
|
|
8051
|
-
N.stopPropagation(), C(!
|
|
8049
|
+
N.stopPropagation(), C(!A);
|
|
8052
8050
|
},
|
|
8053
8051
|
children: e
|
|
8054
8052
|
}
|
|
8055
8053
|
),
|
|
8056
|
-
/* @__PURE__ */ R.jsx(om, { children:
|
|
8054
|
+
/* @__PURE__ */ R.jsx(om, { children: A && /* @__PURE__ */ R.jsx(
|
|
8057
8055
|
Em.div,
|
|
8058
8056
|
{
|
|
8059
8057
|
ref: x,
|
|
@@ -8152,8 +8150,8 @@ const Qw = ln(
|
|
|
8152
8150
|
hoverClassName: y,
|
|
8153
8151
|
hoverStyle: S,
|
|
8154
8152
|
borderColor: w = "var(--border)",
|
|
8155
|
-
radius:
|
|
8156
|
-
shadow:
|
|
8153
|
+
radius: A = "0.5rem",
|
|
8154
|
+
shadow: T = "none",
|
|
8157
8155
|
duration: x = 300,
|
|
8158
8156
|
iconOpen: C,
|
|
8159
8157
|
iconClose: k,
|
|
@@ -8290,8 +8288,8 @@ const oi = Be((e, t) => {
|
|
|
8290
8288
|
labelIcon: y,
|
|
8291
8289
|
prefixIcon: S,
|
|
8292
8290
|
dropdownIcon: w = Cp,
|
|
8293
|
-
searchClassName:
|
|
8294
|
-
searchStyle:
|
|
8291
|
+
searchClassName: A,
|
|
8292
|
+
searchStyle: T,
|
|
8295
8293
|
searchPlaceholder: x,
|
|
8296
8294
|
searchable: C = !1,
|
|
8297
8295
|
size: k = "md",
|
|
@@ -8570,9 +8568,9 @@ const oi = Be((e, t) => {
|
|
|
8570
8568
|
className: V(
|
|
8571
8569
|
"w-full px-2 py-1.5 text-sm rounded-md outline-none",
|
|
8572
8570
|
"bg-background border border-border text-foreground",
|
|
8573
|
-
|
|
8571
|
+
A
|
|
8574
8572
|
),
|
|
8575
|
-
style:
|
|
8573
|
+
style: T
|
|
8576
8574
|
}
|
|
8577
8575
|
) }),
|
|
8578
8576
|
/* @__PURE__ */ R.jsx(
|
|
@@ -8677,8 +8675,8 @@ const Ze = Be(function(e, t) {
|
|
|
8677
8675
|
success: y,
|
|
8678
8676
|
helperText: S,
|
|
8679
8677
|
icon: w,
|
|
8680
|
-
prefix:
|
|
8681
|
-
prefixIcon:
|
|
8678
|
+
prefix: A,
|
|
8679
|
+
prefixIcon: T,
|
|
8682
8680
|
suffixIcon: x,
|
|
8683
8681
|
min: C,
|
|
8684
8682
|
max: k,
|
|
@@ -8698,7 +8696,7 @@ const Ze = Be(function(e, t) {
|
|
|
8698
8696
|
labelStyle: I
|
|
8699
8697
|
} = e, $ = X(null);
|
|
8700
8698
|
op(t, () => $.current);
|
|
8701
|
-
const [H, ve] = ee(u || ""), [be, W] = ee(!1), ie = !!
|
|
8699
|
+
const [H, ve] = ee(u || ""), [be, W] = ee(!1), ie = !!T, de = !!A, $e = ie || de, it = l !== void 0 ? l : H, vn = (Te) => {
|
|
8702
8700
|
l === void 0 && ve(Te.target.value), c?.(Te);
|
|
8703
8701
|
}, we = (Te) => {
|
|
8704
8702
|
i === "number" && Te.key === "-" && !Te.metaKey && !Te.ctrlKey && Te.preventDefault();
|
|
@@ -8750,8 +8748,8 @@ const Ze = Be(function(e, t) {
|
|
|
8750
8748
|
G
|
|
8751
8749
|
),
|
|
8752
8750
|
children: [
|
|
8753
|
-
|
|
8754
|
-
de && /* @__PURE__ */ R.jsx("span", { className: "text-xs font-medium", children:
|
|
8751
|
+
T && /* @__PURE__ */ R.jsx(T, { size: 16, strokeWidth: 1.5 }),
|
|
8752
|
+
de && /* @__PURE__ */ R.jsx("span", { className: "text-xs font-medium", children: A })
|
|
8755
8753
|
]
|
|
8756
8754
|
}
|
|
8757
8755
|
),
|
|
@@ -8870,8 +8868,8 @@ const Ze = Be(function(e, t) {
|
|
|
8870
8868
|
className: y = "",
|
|
8871
8869
|
containerClassName: S = "",
|
|
8872
8870
|
labelClassName: w = "",
|
|
8873
|
-
helperClassName:
|
|
8874
|
-
countClassName:
|
|
8871
|
+
helperClassName: A = "",
|
|
8872
|
+
countClassName: T = "",
|
|
8875
8873
|
style: x,
|
|
8876
8874
|
containerStyle: C,
|
|
8877
8875
|
labelStyle: k,
|
|
@@ -8962,7 +8960,7 @@ const Ze = Be(function(e, t) {
|
|
|
8962
8960
|
Y && /* @__PURE__ */ R.jsxs(
|
|
8963
8961
|
"span",
|
|
8964
8962
|
{
|
|
8965
|
-
className: `absolute bottom-3 right-3 text-[11px] text-accent-foreground ${
|
|
8963
|
+
className: `absolute bottom-3 right-3 text-[11px] text-accent-foreground ${T}`,
|
|
8966
8964
|
style: _,
|
|
8967
8965
|
children: [
|
|
8968
8966
|
G,
|
|
@@ -8975,7 +8973,7 @@ const Ze = Be(function(e, t) {
|
|
|
8975
8973
|
c && /* @__PURE__ */ R.jsx(
|
|
8976
8974
|
"p",
|
|
8977
8975
|
{
|
|
8978
|
-
className: `text-xs ${l ? "text-destructive" : u ? "text-primary" : "text-muted-foreground"} ${
|
|
8976
|
+
className: `text-xs ${l ? "text-destructive" : u ? "text-primary" : "text-muted-foreground"} ${A}`,
|
|
8979
8977
|
style: N,
|
|
8980
8978
|
children: c
|
|
8981
8979
|
}
|
|
@@ -9712,16 +9710,16 @@ const rT = ({
|
|
|
9712
9710
|
o || u(JSON.stringify(e, null, 2));
|
|
9713
9711
|
}, [e, o]);
|
|
9714
9712
|
const h = (w) => {
|
|
9715
|
-
const
|
|
9716
|
-
|
|
9717
|
-
}, E = (w,
|
|
9713
|
+
const A = ph(w);
|
|
9714
|
+
A && t && t((T) => [...T, A]);
|
|
9715
|
+
}, E = (w, A) => {
|
|
9718
9716
|
t && t(
|
|
9719
|
-
(
|
|
9720
|
-
(x) => x.id === w ? { ...x, ...
|
|
9717
|
+
(T) => T.map(
|
|
9718
|
+
(x) => x.id === w ? { ...x, ...A } : x
|
|
9721
9719
|
)
|
|
9722
9720
|
);
|
|
9723
9721
|
}, v = (w) => {
|
|
9724
|
-
t && t((
|
|
9722
|
+
t && t((A) => A.filter((T) => T.id !== w));
|
|
9725
9723
|
}, y = async () => {
|
|
9726
9724
|
try {
|
|
9727
9725
|
await navigator.clipboard.writeText(JSON.stringify(e, null, 2));
|
|
@@ -9987,17 +9985,17 @@ const rT = ({
|
|
|
9987
9985
|
]
|
|
9988
9986
|
}
|
|
9989
9987
|
),
|
|
9990
|
-
!r && /* @__PURE__ */ f.jsx("div", { className: "space-y-6", children: e.map((w,
|
|
9988
|
+
!r && /* @__PURE__ */ f.jsx("div", { className: "space-y-6", children: e.map((w, A) => /* @__PURE__ */ f.jsx(
|
|
9991
9989
|
"div",
|
|
9992
9990
|
{
|
|
9993
|
-
ref:
|
|
9991
|
+
ref: A === e.length - 1 ? p : null,
|
|
9994
9992
|
children: /* @__PURE__ */ f.jsxs("div", { className: "pt-2", children: [
|
|
9995
9993
|
w.type === "text" && /* @__PURE__ */ f.jsx(
|
|
9996
9994
|
gh,
|
|
9997
9995
|
{
|
|
9998
9996
|
value: w.content,
|
|
9999
|
-
onChange: (
|
|
10000
|
-
content:
|
|
9997
|
+
onChange: (T) => E(w.id, {
|
|
9998
|
+
content: T
|
|
10001
9999
|
}),
|
|
10002
10000
|
onDelete: () => v(w.id),
|
|
10003
10001
|
placeholder: "Write paragraph..."
|
|
@@ -10008,11 +10006,11 @@ const rT = ({
|
|
|
10008
10006
|
{
|
|
10009
10007
|
value: w.content,
|
|
10010
10008
|
level: w.level || "h1",
|
|
10011
|
-
onChange: (
|
|
10012
|
-
content:
|
|
10009
|
+
onChange: (T) => E(w.id, {
|
|
10010
|
+
content: T
|
|
10013
10011
|
}),
|
|
10014
|
-
onLevelChange: (
|
|
10015
|
-
level:
|
|
10012
|
+
onLevelChange: (T) => E(w.id, {
|
|
10013
|
+
level: T
|
|
10016
10014
|
}),
|
|
10017
10015
|
onDelete: () => v(w.id)
|
|
10018
10016
|
}
|
|
@@ -10021,7 +10019,7 @@ const rT = ({
|
|
|
10021
10019
|
oT,
|
|
10022
10020
|
{
|
|
10023
10021
|
value: w,
|
|
10024
|
-
onChange: (
|
|
10022
|
+
onChange: (T) => E(w.id, T),
|
|
10025
10023
|
onDelete: () => v(w.id)
|
|
10026
10024
|
}
|
|
10027
10025
|
),
|
|
@@ -10030,11 +10028,11 @@ const rT = ({
|
|
|
10030
10028
|
{
|
|
10031
10029
|
value: w.content,
|
|
10032
10030
|
language: w.language || "javascript",
|
|
10033
|
-
onChange: (
|
|
10034
|
-
content:
|
|
10031
|
+
onChange: (T) => E(w.id, {
|
|
10032
|
+
content: T
|
|
10035
10033
|
}),
|
|
10036
|
-
onLanguageChange: (
|
|
10037
|
-
language:
|
|
10034
|
+
onLanguageChange: (T) => E(w.id, {
|
|
10035
|
+
language: T
|
|
10038
10036
|
}),
|
|
10039
10037
|
onDelete: () => v(w.id)
|
|
10040
10038
|
}
|
|
@@ -10044,8 +10042,8 @@ const rT = ({
|
|
|
10044
10042
|
{
|
|
10045
10043
|
headers: w.headers,
|
|
10046
10044
|
rows: w.rows,
|
|
10047
|
-
onChange: ({ headers:
|
|
10048
|
-
headers:
|
|
10045
|
+
onChange: ({ headers: T, rows: x }) => E(w.id, {
|
|
10046
|
+
headers: T,
|
|
10049
10047
|
rows: x
|
|
10050
10048
|
}),
|
|
10051
10049
|
onDelete: () => v(w.id)
|
|
@@ -10371,10 +10369,10 @@ function Nm(e) {
|
|
|
10371
10369
|
}
|
|
10372
10370
|
function _T(e, t, n, a, r, i, o, s, l) {
|
|
10373
10371
|
var u, c = Nm(e.value), d = [], p = -1, m = 0;
|
|
10374
|
-
function h(
|
|
10372
|
+
function h(T, x) {
|
|
10375
10373
|
var C = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
10376
10374
|
return Hn({
|
|
10377
|
-
children:
|
|
10375
|
+
children: T,
|
|
10378
10376
|
lineNumber: x,
|
|
10379
10377
|
lineNumberStyle: s,
|
|
10380
10378
|
largestLineNumber: o,
|
|
@@ -10386,16 +10384,16 @@ function _T(e, t, n, a, r, i, o, s, l) {
|
|
|
10386
10384
|
wrapLines: t
|
|
10387
10385
|
});
|
|
10388
10386
|
}
|
|
10389
|
-
function E(
|
|
10387
|
+
function E(T, x) {
|
|
10390
10388
|
if (a && x && r) {
|
|
10391
10389
|
var C = Am(s, x, o);
|
|
10392
|
-
|
|
10390
|
+
T.unshift(Tm(x, C));
|
|
10393
10391
|
}
|
|
10394
|
-
return
|
|
10392
|
+
return T;
|
|
10395
10393
|
}
|
|
10396
|
-
function v(
|
|
10394
|
+
function v(T, x) {
|
|
10397
10395
|
var C = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
10398
|
-
return t || C.length > 0 ? h(
|
|
10396
|
+
return t || C.length > 0 ? h(T, x, C) : E(T, x);
|
|
10399
10397
|
}
|
|
10400
10398
|
for (var y = function() {
|
|
10401
10399
|
var x = c[m], C = x.children[0].value, k = wT(C);
|
|
@@ -10441,8 +10439,8 @@ function _T(e, t, n, a, r, i, o, s, l) {
|
|
|
10441
10439
|
if (p !== c.length - 1) {
|
|
10442
10440
|
var S = c.slice(p + 1, c.length);
|
|
10443
10441
|
if (S && S.length) {
|
|
10444
|
-
var w = a && d.length + i,
|
|
10445
|
-
d.push(
|
|
10442
|
+
var w = a && d.length + i, A = v(S, w);
|
|
10443
|
+
d.push(A);
|
|
10446
10444
|
}
|
|
10447
10445
|
}
|
|
10448
10446
|
return t ? d : (u = []).concat.apply(u, d);
|
|
@@ -10487,13 +10485,13 @@ function RT(e, t) {
|
|
|
10487
10485
|
var r, i, o = a.language, s = a.children, l = a.style, u = l === void 0 ? t : l, c = a.customStyle, d = c === void 0 ? {} : c, p = a.codeTagProps, m = p === void 0 ? {
|
|
10488
10486
|
className: o ? "language-".concat(o) : void 0,
|
|
10489
10487
|
style: Je(Je({}, u['code[class*="language-"]']), u['code[class*="language-'.concat(o, '"]')])
|
|
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,
|
|
10488
|
+
} : p, h = a.useInlineStyles, E = h === void 0 ? !0 : h, v = a.showLineNumbers, y = v === void 0 ? !1 : v, S = a.showInlineLineNumbers, w = S === void 0 ? !0 : S, A = a.startingLineNumber, T = A === void 0 ? 1 : A, x = a.lineNumberContainerStyle, C = a.lineNumberStyle, k = C === void 0 ? {} : C, N = a.wrapLines, _ = a.wrapLongLines, M = _ === void 0 ? !1 : _, F = a.lineProps, D = F === void 0 ? {} : F, U = a.renderer, L = a.PreTag, B = L === void 0 ? "pre" : L, G = a.CodeTag, Y = G === void 0 ? "code" : G, z = a.code, q = z === void 0 ? (Array.isArray(s) ? s[0] : s) || "" : z, b = a.astGenerator, I = lT(a, ST);
|
|
10491
10489
|
b = b || e;
|
|
10492
10490
|
var $ = y ? /* @__PURE__ */ te.createElement(AT, {
|
|
10493
10491
|
containerStyle: x,
|
|
10494
10492
|
codeStyle: m.style || {},
|
|
10495
10493
|
numberStyle: k,
|
|
10496
|
-
startingLineNumber:
|
|
10494
|
+
startingLineNumber: T,
|
|
10497
10495
|
codeString: q
|
|
10498
10496
|
}) : null, H = u.hljs || u['pre[class*="language-"]'] || {
|
|
10499
10497
|
backgroundColor: "#fff"
|
|
@@ -10520,7 +10518,7 @@ function RT(e, t) {
|
|
|
10520
10518
|
defaultCodeValue: W
|
|
10521
10519
|
});
|
|
10522
10520
|
ie.language === null && (ie.value = W);
|
|
10523
|
-
var de = (r = (i = q.match(/\n/g)) === null || i === void 0 ? void 0 : i.length) !== null && r !== void 0 ? r : 0, $e =
|
|
10521
|
+
var de = (r = (i = q.match(/\n/g)) === null || i === void 0 ? void 0 : i.length) !== null && r !== void 0 ? r : 0, $e = T + de, it = _T(ie, N, D, y, w, T, $e, k, M);
|
|
10524
10522
|
return /* @__PURE__ */ te.createElement(B, be, /* @__PURE__ */ te.createElement(Y, m, !w && $, U({
|
|
10525
10523
|
rows: it,
|
|
10526
10524
|
stylesheet: u,
|
|
@@ -12040,37 +12038,37 @@ function QT(e, t) {
|
|
|
12040
12038
|
continue;
|
|
12041
12039
|
}
|
|
12042
12040
|
const S = i + 1;
|
|
12043
|
-
let w = S,
|
|
12041
|
+
let w = S, A = S, T;
|
|
12044
12042
|
if (y === 35) {
|
|
12045
|
-
|
|
12046
|
-
const D = e.charCodeAt(
|
|
12047
|
-
D === 88 || D === 120 ? (
|
|
12043
|
+
A = ++w;
|
|
12044
|
+
const D = e.charCodeAt(A);
|
|
12045
|
+
D === 88 || D === 120 ? (T = "hexadecimal", A = ++w) : T = "decimal";
|
|
12048
12046
|
} else
|
|
12049
|
-
|
|
12047
|
+
T = "named";
|
|
12050
12048
|
let x = "", C = "", k = "";
|
|
12051
|
-
const N =
|
|
12052
|
-
for (
|
|
12053
|
-
const D = e.charCodeAt(
|
|
12049
|
+
const N = T === "named" ? np : T === "decimal" ? Mm : KT;
|
|
12050
|
+
for (A--; ++A <= e.length; ) {
|
|
12051
|
+
const D = e.charCodeAt(A);
|
|
12054
12052
|
if (!N(D))
|
|
12055
12053
|
break;
|
|
12056
|
-
k += String.fromCharCode(D),
|
|
12054
|
+
k += String.fromCharCode(D), T === "named" && YT.includes(k) && (x = k, C = rp(k));
|
|
12057
12055
|
}
|
|
12058
|
-
let _ = e.charCodeAt(
|
|
12056
|
+
let _ = e.charCodeAt(A) === 59;
|
|
12059
12057
|
if (_) {
|
|
12060
|
-
|
|
12061
|
-
const D =
|
|
12058
|
+
A++;
|
|
12059
|
+
const D = T === "named" ? rp(k) : !1;
|
|
12062
12060
|
D && (x = k, C = D);
|
|
12063
12061
|
}
|
|
12064
|
-
let M = 1 +
|
|
12062
|
+
let M = 1 + A - S, F = "";
|
|
12065
12063
|
if (!(!_ && n.nonTerminated === !1)) if (!k)
|
|
12066
|
-
|
|
12067
|
-
else if (
|
|
12064
|
+
T !== "named" && E(4, M);
|
|
12065
|
+
else if (T === "named") {
|
|
12068
12066
|
if (_ && !C)
|
|
12069
12067
|
E(5, 1);
|
|
12070
|
-
else if (x !== k && (
|
|
12068
|
+
else if (x !== k && (A = w + x.length, M = 1 + A - w, _ = !1), !_) {
|
|
12071
12069
|
const D = x ? 1 : 3;
|
|
12072
12070
|
if (n.attribute) {
|
|
12073
|
-
const U = e.charCodeAt(
|
|
12071
|
+
const U = e.charCodeAt(A);
|
|
12074
12072
|
U === 61 ? (E(D, M), C = "") : np(U) ? C = "" : E(D, M);
|
|
12075
12073
|
} else
|
|
12076
12074
|
E(D, M);
|
|
@@ -12080,7 +12078,7 @@ function QT(e, t) {
|
|
|
12080
12078
|
_ || E(2, M);
|
|
12081
12079
|
let D = Number.parseInt(
|
|
12082
12080
|
k,
|
|
12083
|
-
|
|
12081
|
+
T === "hexadecimal" ? 16 : 10
|
|
12084
12082
|
);
|
|
12085
12083
|
if (JT(D))
|
|
12086
12084
|
E(7, M), F = "�";
|
|
@@ -12094,16 +12092,16 @@ function QT(e, t) {
|
|
|
12094
12092
|
}
|
|
12095
12093
|
}
|
|
12096
12094
|
if (F) {
|
|
12097
|
-
v(), p = h(), i =
|
|
12095
|
+
v(), p = h(), i = A - 1, d += A - S + 1, r.push(F);
|
|
12098
12096
|
const D = h();
|
|
12099
12097
|
D.offset++, n.reference && n.reference.call(
|
|
12100
12098
|
n.referenceContext || void 0,
|
|
12101
12099
|
F,
|
|
12102
12100
|
{ start: p, end: D },
|
|
12103
|
-
e.slice(S - 1,
|
|
12101
|
+
e.slice(S - 1, A)
|
|
12104
12102
|
), p = D;
|
|
12105
12103
|
} else
|
|
12106
|
-
k = e.slice(S - 1,
|
|
12104
|
+
k = e.slice(S - 1, A), s += k, d += k.length, i = A - 1;
|
|
12107
12105
|
} else
|
|
12108
12106
|
m === 10 && (c++, o++, d = 0), Number.isNaN(m) ? v() : (s += String.fromCharCode(m), d++);
|
|
12109
12107
|
return r.join("");
|
|
@@ -12501,21 +12499,21 @@ function Fm(e, t, n, a, r, i) {
|
|
|
12501
12499
|
if (t.length > e.length)
|
|
12502
12500
|
return;
|
|
12503
12501
|
if (!(S instanceof Jt)) {
|
|
12504
|
-
var w = 1,
|
|
12502
|
+
var w = 1, A;
|
|
12505
12503
|
if (p) {
|
|
12506
|
-
if (
|
|
12504
|
+
if (A = ip(E, y, e, d), !A || A.index >= e.length)
|
|
12507
12505
|
break;
|
|
12508
|
-
var k =
|
|
12506
|
+
var k = A.index, T = A.index + A[0].length, x = y;
|
|
12509
12507
|
for (x += v.value.length; k >= x; )
|
|
12510
12508
|
v = v.next, x += v.value.length;
|
|
12511
12509
|
if (x -= v.value.length, y = x, v.value instanceof Jt)
|
|
12512
12510
|
continue;
|
|
12513
|
-
for (var C = v; C !== t.tail && (x <
|
|
12511
|
+
for (var C = v; C !== t.tail && (x < T || typeof C.value == "string"); C = C.next)
|
|
12514
12512
|
w++, x += C.value.length;
|
|
12515
|
-
w--, S = e.slice(y, x),
|
|
12516
|
-
} else if (
|
|
12513
|
+
w--, S = e.slice(y, x), A.index -= y;
|
|
12514
|
+
} else if (A = ip(E, 0, S, d), !A)
|
|
12517
12515
|
continue;
|
|
12518
|
-
var k =
|
|
12516
|
+
var k = A.index, N = A[0], _ = S.slice(0, k), M = S.slice(k + N.length), F = y + S.length;
|
|
12519
12517
|
i && F > i.reach && (i.reach = F);
|
|
12520
12518
|
var D = v.prev;
|
|
12521
12519
|
_ && (D = Wn(t, D, _), y += _.length), aA(t, D, w);
|
|
@@ -15118,10 +15116,10 @@ function Ft(e) {
|
|
|
15118
15116
|
), S = n(
|
|
15119
15117
|
/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,
|
|
15120
15118
|
[d, p, v]
|
|
15121
|
-
), w = n(/\(<<0>>+(?:,<<0>>+)+\)/.source, [S]),
|
|
15119
|
+
), w = n(/\(<<0>>+(?:,<<0>>+)+\)/.source, [S]), A = n(
|
|
15122
15120
|
/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,
|
|
15123
15121
|
[w, E, v]
|
|
15124
|
-
),
|
|
15122
|
+
), T = {
|
|
15125
15123
|
keyword: l,
|
|
15126
15124
|
punctuation: /[<>()?,.:[\]]/
|
|
15127
15125
|
}, x = /'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source, C = /"(?:\\.|[^\\"\r\n])*"/.source, k = /@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;
|
|
@@ -15146,17 +15144,17 @@ function Ft(e) {
|
|
|
15146
15144
|
E
|
|
15147
15145
|
]),
|
|
15148
15146
|
lookbehind: !0,
|
|
15149
|
-
inside:
|
|
15147
|
+
inside: T
|
|
15150
15148
|
},
|
|
15151
15149
|
{
|
|
15152
15150
|
// Using alias (type)
|
|
15153
15151
|
// using Project = PC.MyCompany.Project;
|
|
15154
15152
|
pattern: a(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source, [
|
|
15155
15153
|
m,
|
|
15156
|
-
|
|
15154
|
+
A
|
|
15157
15155
|
]),
|
|
15158
15156
|
lookbehind: !0,
|
|
15159
|
-
inside:
|
|
15157
|
+
inside: T
|
|
15160
15158
|
},
|
|
15161
15159
|
{
|
|
15162
15160
|
// Using alias (alias)
|
|
@@ -15173,7 +15171,7 @@ function Ft(e) {
|
|
|
15173
15171
|
h
|
|
15174
15172
|
]),
|
|
15175
15173
|
lookbehind: !0,
|
|
15176
|
-
inside:
|
|
15174
|
+
inside: T
|
|
15177
15175
|
},
|
|
15178
15176
|
{
|
|
15179
15177
|
// Single catch exception declaration
|
|
@@ -15181,7 +15179,7 @@ function Ft(e) {
|
|
|
15181
15179
|
// (things like catch(Foo e) is covered by variable declaration)
|
|
15182
15180
|
pattern: a(/(\bcatch\s*\(\s*)<<0>>/.source, [E]),
|
|
15183
15181
|
lookbehind: !0,
|
|
15184
|
-
inside:
|
|
15182
|
+
inside: T
|
|
15185
15183
|
},
|
|
15186
15184
|
{
|
|
15187
15185
|
// Name of the type parameter of generic constraints
|
|
@@ -15197,16 +15195,16 @@ function Ft(e) {
|
|
|
15197
15195
|
y
|
|
15198
15196
|
]),
|
|
15199
15197
|
lookbehind: !0,
|
|
15200
|
-
inside:
|
|
15198
|
+
inside: T
|
|
15201
15199
|
},
|
|
15202
15200
|
{
|
|
15203
15201
|
// Variable, field and parameter declaration
|
|
15204
15202
|
// (Foo bar, Bar baz, Foo[,,] bay, Foo<Bar, FooBar<Bar>> bax)
|
|
15205
15203
|
pattern: a(
|
|
15206
15204
|
/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,
|
|
15207
|
-
[
|
|
15205
|
+
[A, c, m]
|
|
15208
15206
|
),
|
|
15209
|
-
inside:
|
|
15207
|
+
inside: T
|
|
15210
15208
|
}
|
|
15211
15209
|
],
|
|
15212
15210
|
keyword: l,
|
|
@@ -15246,7 +15244,7 @@ function Ft(e) {
|
|
|
15246
15244
|
),
|
|
15247
15245
|
lookbehind: !0,
|
|
15248
15246
|
alias: "class-name",
|
|
15249
|
-
inside:
|
|
15247
|
+
inside: T
|
|
15250
15248
|
},
|
|
15251
15249
|
"return-type": {
|
|
15252
15250
|
// Foo<Bar> ForBar(); Foo IFoo.Bar() => 0
|
|
@@ -15254,16 +15252,16 @@ function Ft(e) {
|
|
|
15254
15252
|
// int Foo => 0; int Foo { get; set } = 0;
|
|
15255
15253
|
pattern: a(
|
|
15256
15254
|
/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,
|
|
15257
|
-
[
|
|
15255
|
+
[A, E]
|
|
15258
15256
|
),
|
|
15259
|
-
inside:
|
|
15257
|
+
inside: T,
|
|
15260
15258
|
alias: "class-name"
|
|
15261
15259
|
},
|
|
15262
15260
|
"constructor-invocation": {
|
|
15263
15261
|
// new List<Foo<Bar[]>> { }
|
|
15264
|
-
pattern: a(/(\bnew\s+)<<0>>(?=\s*[[({])/.source, [
|
|
15262
|
+
pattern: a(/(\bnew\s+)<<0>>(?=\s*[[({])/.source, [A]),
|
|
15265
15263
|
lookbehind: !0,
|
|
15266
|
-
inside:
|
|
15264
|
+
inside: T,
|
|
15267
15265
|
alias: "class-name"
|
|
15268
15266
|
},
|
|
15269
15267
|
/*'explicit-implementation': {
|
|
@@ -15280,7 +15278,7 @@ function Ft(e) {
|
|
|
15280
15278
|
generic: {
|
|
15281
15279
|
pattern: RegExp(d),
|
|
15282
15280
|
alias: "class-name",
|
|
15283
|
-
inside:
|
|
15281
|
+
inside: T
|
|
15284
15282
|
}
|
|
15285
15283
|
}
|
|
15286
15284
|
},
|
|
@@ -15294,7 +15292,7 @@ function Ft(e) {
|
|
|
15294
15292
|
s,
|
|
15295
15293
|
h,
|
|
15296
15294
|
m,
|
|
15297
|
-
|
|
15295
|
+
A,
|
|
15298
15296
|
l.source,
|
|
15299
15297
|
p,
|
|
15300
15298
|
/\bnew\s*\(\s*\)/.source
|
|
@@ -15313,9 +15311,9 @@ function Ft(e) {
|
|
|
15313
15311
|
},
|
|
15314
15312
|
keyword: l,
|
|
15315
15313
|
"class-name": {
|
|
15316
|
-
pattern: RegExp(
|
|
15314
|
+
pattern: RegExp(A),
|
|
15317
15315
|
greedy: !0,
|
|
15318
|
-
inside:
|
|
15316
|
+
inside: T
|
|
15319
15317
|
},
|
|
15320
15318
|
punctuation: /[,()]/
|
|
15321
15319
|
}
|
|
@@ -20567,11 +20565,11 @@ function Jo(e) {
|
|
|
20567
20565
|
}
|
|
20568
20566
|
function s(v, y) {
|
|
20569
20567
|
for (var S = 1, w = r; w < a.length; w++) {
|
|
20570
|
-
var
|
|
20571
|
-
if (
|
|
20572
|
-
if (v.test(
|
|
20568
|
+
var A = a[w], T = A.content;
|
|
20569
|
+
if (A.type === "punctuation" && typeof T == "string") {
|
|
20570
|
+
if (v.test(T))
|
|
20573
20571
|
S++;
|
|
20574
|
-
else if (y.test(
|
|
20572
|
+
else if (y.test(T) && (S--, S === 0))
|
|
20575
20573
|
return w;
|
|
20576
20574
|
}
|
|
20577
20575
|
}
|
|
@@ -23122,7 +23120,7 @@ function Rs(e) {
|
|
|
23122
23120
|
pattern: RegExp(o),
|
|
23123
23121
|
lookbehind: !0
|
|
23124
23122
|
}
|
|
23125
|
-
}), S = 0, w = {},
|
|
23123
|
+
}), S = 0, w = {}, A = y.map(function(k) {
|
|
23126
23124
|
if (typeof k == "string")
|
|
23127
23125
|
return k;
|
|
23128
23126
|
for (var N = k.content, _; h.indexOf(
|
|
@@ -23130,7 +23128,7 @@ function Rs(e) {
|
|
|
23130
23128
|
) !== -1; )
|
|
23131
23129
|
;
|
|
23132
23130
|
return w[_] = N, _;
|
|
23133
|
-
}).join(""),
|
|
23131
|
+
}).join(""), T = u(A, E, v), x = Object.keys(w);
|
|
23134
23132
|
S = 0;
|
|
23135
23133
|
function C(k) {
|
|
23136
23134
|
for (var N = 0; N < k.length; N++) {
|
|
@@ -23159,9 +23157,9 @@ function Rs(e) {
|
|
|
23159
23157
|
}
|
|
23160
23158
|
}
|
|
23161
23159
|
}
|
|
23162
|
-
return C(
|
|
23160
|
+
return C(T), new t.Token(
|
|
23163
23161
|
v,
|
|
23164
|
-
|
|
23162
|
+
T,
|
|
23165
23163
|
"language-" + v,
|
|
23166
23164
|
h
|
|
23167
23165
|
);
|
|
@@ -23181,21 +23179,21 @@ function Rs(e) {
|
|
|
23181
23179
|
for (var y = 0, S = v.length; y < S; y++) {
|
|
23182
23180
|
var w = v[y];
|
|
23183
23181
|
if (typeof w != "string") {
|
|
23184
|
-
var
|
|
23185
|
-
if (!Array.isArray(
|
|
23186
|
-
typeof
|
|
23182
|
+
var A = w.content;
|
|
23183
|
+
if (!Array.isArray(A)) {
|
|
23184
|
+
typeof A != "string" && E([A]);
|
|
23187
23185
|
continue;
|
|
23188
23186
|
}
|
|
23189
23187
|
if (w.type === "template-string") {
|
|
23190
|
-
var
|
|
23191
|
-
if (
|
|
23192
|
-
var x = m(
|
|
23188
|
+
var T = A[1];
|
|
23189
|
+
if (A.length === 3 && typeof T != "string" && T.type === "embedded-code") {
|
|
23190
|
+
var x = m(T), C = T.alias, k = Array.isArray(C) ? C[0] : C, N = t.languages[k];
|
|
23193
23191
|
if (!N)
|
|
23194
23192
|
continue;
|
|
23195
|
-
|
|
23193
|
+
A[1] = d(x, N, k);
|
|
23196
23194
|
}
|
|
23197
23195
|
} else
|
|
23198
|
-
E(
|
|
23196
|
+
E(A);
|
|
23199
23197
|
}
|
|
23200
23198
|
}
|
|
23201
23199
|
}
|
|
@@ -28434,7 +28432,7 @@ function nu(e) {
|
|
|
28434
28432
|
e.register(Ft), e.register(he), (function(t) {
|
|
28435
28433
|
var n = /\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source, a = /@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source + "|" + /'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;
|
|
28436
28434
|
function r(S, w) {
|
|
28437
|
-
for (var
|
|
28435
|
+
for (var A = 0; A < w; A++)
|
|
28438
28436
|
S = S.replace(/<self>/g, function() {
|
|
28439
28437
|
return "(?:" + S + ")";
|
|
28440
28438
|
});
|