@surrealdb/ui 1.0.82 → 1.0.83
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/ui.d.ts +6 -6
- package/dist/ui.js +145 -145
- package/dist/ui.js.map +1 -1
- package/dist/yoopta.d.ts +6 -6
- package/package.json +1 -1
package/dist/ui.js
CHANGED
|
@@ -4,11 +4,11 @@ import { getIndentUnit as ra, indentOnInput as Jo, bracketMatching as O2, indent
|
|
|
4
4
|
import { highlightSelectionMatches as l2, searchKeymap as $2 } from "@codemirror/search";
|
|
5
5
|
import { Facet as c2, combineConfig as u2, RangeSetBuilder as p2, EditorSelection as sa, EditorState as Ze, Compartment as oa } from "@codemirror/state";
|
|
6
6
|
import { ViewPlugin as d2, EditorView as ie, Decoration as h2, highlightSpecialChars as P2, drawSelection as f2, dropCursor as S2, rectangularSelection as X2, crosshairCursor as T2, keymap as jn, highlightActiveLineGutter as g2, lineNumbers as m2 } from "@codemirror/view";
|
|
7
|
-
import { useMantineColorScheme as An, Box as aO, useMantineTheme as En, getThemeColor as Dn, getSize as In, Paper as B1, Text as Ie, CopyButton as x2, Tooltip as D1, ActionIcon as S1, Alert as Pr, Group as z1, Title as Mn, Stack as Me, Button as T1, Image as It, useComputedColorScheme as C2, Divider as fr, Table as K, Blockquote as Sr, Checkbox as Xr, List as Qa, Anchor as Tr, Skeleton as gr, TextInput as
|
|
7
|
+
import { useMantineColorScheme as An, Box as aO, useMantineTheme as En, getThemeColor as Dn, getSize as In, Paper as B1, Text as Ie, CopyButton as x2, Tooltip as D1, ActionIcon as S1, Alert as Pr, Group as z1, Title as Mn, Stack as Me, Button as T1, Image as It, useComputedColorScheme as C2, Divider as fr, Table as K, Blockquote as Sr, Checkbox as Xr, List as Qa, Anchor as Tr, Skeleton as gr, TextInput as LO, Flex as V2, Select as r1, Switch as X1, Textarea as la, Menu as $O, Popover as ni, ThemeIcon as w2, Badge as mr, Tabs as Ve, TabsList as Z2, TabsTab as y2, Code as b2, createTheme as R2, Notification as _2, Pagination as v2, Kbd as z2, NavLink as k2, SegmentedControl as q2, PasswordInput as Y2, Radio as W2, MultiSelect as L2, Overlay as U2, CloseButton as G2, Modal as j2, Loader as A2, HoverCard as E2, MenuDropdown as D2, PopoverDropdown as I2, ScrollArea as M2, Autocomplete as F2, NumberInput as N2, InputBase as B2, rem as OO, defaultVariantColorsResolver as $a } from "@mantine/core";
|
|
8
8
|
import "@codemirror/lint";
|
|
9
9
|
import { useRef as VO, useCallback as M, useState as j, useMemo as tO, useEffect as H, createRef as K2, createElement as Fn, createContext as H2, useContext as J2, memo as xr } from "react";
|
|
10
10
|
import { jsx as p, jsxs as v, Fragment as Fe } from "react/jsx-runtime";
|
|
11
|
-
import Nn, { YooptaPlugin as K1, useYooptaEditor as dO, useYooptaReadOnly as pe, Elements as KO, Blocks as
|
|
11
|
+
import Nn, { YooptaPlugin as K1, useYooptaEditor as dO, useYooptaReadOnly as pe, Elements as KO, Blocks as WO, createYooptaMark as O5, Marks as JO, createYooptaEditor as e5 } from "@yoopta/editor";
|
|
12
12
|
import si from "@yoopta/headings";
|
|
13
13
|
import qi, { useNumberListCount as t5 } from "@yoopta/lists";
|
|
14
14
|
import { Bold as i5, Italic as r5, Underline as a5, Strike as n5, Highlight as s5 } from "@yoopta/marks";
|
|
@@ -705,7 +705,7 @@ function qg(O) {
|
|
|
705
705
|
}
|
|
706
706
|
const Os = 1024;
|
|
707
707
|
let D5 = 0;
|
|
708
|
-
class
|
|
708
|
+
class YO {
|
|
709
709
|
constructor(e, t) {
|
|
710
710
|
this.from = e, this.to = t;
|
|
711
711
|
}
|
|
@@ -731,7 +731,7 @@ class I {
|
|
|
731
731
|
add(e) {
|
|
732
732
|
if (this.perNode)
|
|
733
733
|
throw new RangeError("Can't add per-node props to node types");
|
|
734
|
-
return typeof e != "function" && (e =
|
|
734
|
+
return typeof e != "function" && (e = UO.match(e)), (t) => {
|
|
735
735
|
let i = e(t);
|
|
736
736
|
return i === void 0 ? null : [this, i];
|
|
737
737
|
};
|
|
@@ -760,7 +760,7 @@ class ae {
|
|
|
760
760
|
}
|
|
761
761
|
}
|
|
762
762
|
const I5 = /* @__PURE__ */ Object.create(null);
|
|
763
|
-
class
|
|
763
|
+
class UO {
|
|
764
764
|
/**
|
|
765
765
|
@internal
|
|
766
766
|
*/
|
|
@@ -771,7 +771,7 @@ class LO {
|
|
|
771
771
|
Define a node type.
|
|
772
772
|
*/
|
|
773
773
|
static define(e) {
|
|
774
|
-
let t = e.props && e.props.length ? /* @__PURE__ */ Object.create(null) : I5, i = (e.top ? 1 : 0) | (e.skipped ? 2 : 0) | (e.error ? 4 : 0) | (e.name == null ? 8 : 0), r = new
|
|
774
|
+
let t = e.props && e.props.length ? /* @__PURE__ */ Object.create(null) : I5, i = (e.top ? 1 : 0) | (e.skipped ? 2 : 0) | (e.error ? 4 : 0) | (e.name == null ? 8 : 0), r = new UO(e.name || "", t, e.id, i);
|
|
775
775
|
if (e.props) {
|
|
776
776
|
for (let a of e.props)
|
|
777
777
|
if (Array.isArray(a) || (a = a(r)), a) {
|
|
@@ -849,7 +849,7 @@ class LO {
|
|
|
849
849
|
};
|
|
850
850
|
}
|
|
851
851
|
}
|
|
852
|
-
|
|
852
|
+
UO.none = new UO(
|
|
853
853
|
"",
|
|
854
854
|
/* @__PURE__ */ Object.create(null),
|
|
855
855
|
0,
|
|
@@ -884,7 +884,7 @@ class Cr {
|
|
|
884
884
|
o.combine && o.id in r && (s = o.combine(r[o.id], s)), r[o.id] = s;
|
|
885
885
|
}
|
|
886
886
|
}
|
|
887
|
-
t.push(r ? new
|
|
887
|
+
t.push(r ? new UO(i.name, r, i.id, i.flags) : i);
|
|
888
888
|
}
|
|
889
889
|
return new Cr(t);
|
|
890
890
|
}
|
|
@@ -1027,7 +1027,7 @@ class QO {
|
|
|
1027
1027
|
[`NodeType.none`](#common.NodeType^none).
|
|
1028
1028
|
*/
|
|
1029
1029
|
balance(e = {}) {
|
|
1030
|
-
return this.children.length <= 8 ? this : Zr(
|
|
1030
|
+
return this.children.length <= 8 ? this : Zr(UO.none, this.children, this.positions, 0, this.children.length, 0, this.length, (t, i, r) => new QO(this.type, t, i, r, this.propValues), e.makeTree || ((t, i, r) => new QO(UO.none, t, i, r)));
|
|
1031
1031
|
}
|
|
1032
1032
|
/**
|
|
1033
1033
|
Build a tree from a postfix-ordered buffer of node information,
|
|
@@ -1037,7 +1037,7 @@ class QO {
|
|
|
1037
1037
|
return B5(e);
|
|
1038
1038
|
}
|
|
1039
1039
|
}
|
|
1040
|
-
QO.empty = new QO(
|
|
1040
|
+
QO.empty = new QO(UO.none, [], [], 0);
|
|
1041
1041
|
class Vr {
|
|
1042
1042
|
constructor(e, t) {
|
|
1043
1043
|
this.buffer = e, this.index = t;
|
|
@@ -1075,7 +1075,7 @@ class k1 {
|
|
|
1075
1075
|
@internal
|
|
1076
1076
|
*/
|
|
1077
1077
|
get type() {
|
|
1078
|
-
return
|
|
1078
|
+
return UO.none;
|
|
1079
1079
|
}
|
|
1080
1080
|
/**
|
|
1081
1081
|
@internal
|
|
@@ -1796,8 +1796,8 @@ function B5(O) {
|
|
|
1796
1796
|
let { id: x, start: C, end: b, size: Y } = s, N = $, xO = Q;
|
|
1797
1797
|
if (Y < 0)
|
|
1798
1798
|
if (s.next(), Y == -1) {
|
|
1799
|
-
let
|
|
1800
|
-
V.push(
|
|
1799
|
+
let bO = a[x];
|
|
1800
|
+
V.push(bO), G.push(C - X);
|
|
1801
1801
|
return;
|
|
1802
1802
|
} else if (Y == -3) {
|
|
1803
1803
|
Q = x;
|
|
@@ -1809,21 +1809,21 @@ function B5(O) {
|
|
|
1809
1809
|
throw new RangeError(`Unrecognized record size: ${Y}`);
|
|
1810
1810
|
let Q1 = o[x], U, hO, it = C - X;
|
|
1811
1811
|
if (b - C <= r && (hO = w(s.pos - y, L))) {
|
|
1812
|
-
let
|
|
1813
|
-
for (; s.pos >
|
|
1814
|
-
HO = P(hO.start,
|
|
1815
|
-
U = new k1(
|
|
1812
|
+
let bO = new Uint16Array(hO.size - hO.skip), RO = s.pos - hO.size, HO = bO.length;
|
|
1813
|
+
for (; s.pos > RO; )
|
|
1814
|
+
HO = P(hO.start, bO, HO);
|
|
1815
|
+
U = new k1(bO, b - hO.start, i), it = hO.start - X;
|
|
1816
1816
|
} else {
|
|
1817
|
-
let
|
|
1817
|
+
let bO = s.pos - Y;
|
|
1818
1818
|
s.next();
|
|
1819
|
-
let
|
|
1820
|
-
for (; s.pos >
|
|
1821
|
-
L1 >= 0 && s.id == L1 && s.size >= 0 ? (s.end <= rt - r && (f(
|
|
1822
|
-
if (L1 >= 0 && J1 > 0 && J1 <
|
|
1819
|
+
let RO = [], HO = [], L1 = x >= n ? x : -1, J1 = 0, rt = b;
|
|
1820
|
+
for (; s.pos > bO; )
|
|
1821
|
+
L1 >= 0 && s.id == L1 && s.size >= 0 ? (s.end <= rt - r && (f(RO, HO, C, J1, s.end, rt, L1, N, xO), J1 = RO.length, rt = s.end), s.next()) : S > 2500 ? d(C, bO, RO, HO) : c(C, bO, RO, HO, L1, S + 1);
|
|
1822
|
+
if (L1 >= 0 && J1 > 0 && J1 < RO.length && f(RO, HO, C, J1, C, rt, L1, N, xO), RO.reverse(), HO.reverse(), L1 > -1 && J1 > 0) {
|
|
1823
1823
|
let ta = h(Q1, xO);
|
|
1824
|
-
U = Zr(Q1,
|
|
1824
|
+
U = Zr(Q1, RO, HO, 0, RO.length, 0, b - C, ta, ta);
|
|
1825
1825
|
} else
|
|
1826
|
-
U = g(Q1,
|
|
1826
|
+
U = g(Q1, RO, HO, b - C, N - b, xO);
|
|
1827
1827
|
}
|
|
1828
1828
|
V.push(U), G.push(it);
|
|
1829
1829
|
}
|
|
@@ -2050,7 +2050,7 @@ let K5 = class {
|
|
|
2050
2050
|
case will start at `ranges[0].from`.
|
|
2051
2051
|
*/
|
|
2052
2052
|
startParse(e, t, i) {
|
|
2053
|
-
return typeof e == "string" && (e = new H5(e)), i = i ? i.length ? i.map((r) => new
|
|
2053
|
+
return typeof e == "string" && (e = new H5(e)), i = i ? i.length ? i.map((r) => new YO(r.from, r.to)) : [new YO(0, 0)] : [new YO(0, e.length)], this.createParse(e, t || [], i);
|
|
2054
2054
|
}
|
|
2055
2055
|
/**
|
|
2056
2056
|
Run a full parse, returning the resulting tree.
|
|
@@ -2163,10 +2163,10 @@ class eQ {
|
|
|
2163
2163
|
if (typeof a.overlay == "function")
|
|
2164
2164
|
t = new OQ(a.parser, a.overlay, Q, this.inner.length, r.from, !!a.bracketed, r.tree, t);
|
|
2165
2165
|
else {
|
|
2166
|
-
let $ = Ta(this.ranges, a.overlay || (r.from < r.to ? [new
|
|
2167
|
-
$.length && fa($), ($.length || !a.overlay) && this.inner.push(new Pa(a.parser, $.length ? a.parser.startParse(this.input, ga(Q, $), $) : a.parser.startParse(""), a.overlay ? a.overlay.map((c) => new
|
|
2166
|
+
let $ = Ta(this.ranges, a.overlay || (r.from < r.to ? [new YO(r.from, r.to)] : []));
|
|
2167
|
+
$.length && fa($), ($.length || !a.overlay) && this.inner.push(new Pa(a.parser, $.length ? a.parser.startParse(this.input, ga(Q, $), $) : a.parser.startParse(""), a.overlay ? a.overlay.map((c) => new YO(c.from - r.from, c.to - r.from)) : null, !!a.bracketed, r.tree, $.length ? $[0].from : r.from)), a.overlay ? $.length && (i = { ranges: $, depth: 0, prev: i }) : s = !1;
|
|
2168
2168
|
}
|
|
2169
|
-
} else if (t && (o = t.predicate(r)) && (o === !0 && (o = new
|
|
2169
|
+
} else if (t && (o = t.predicate(r)) && (o === !0 && (o = new YO(r.from, r.to)), o.from < o.to)) {
|
|
2170
2170
|
let Q = t.ranges.length - 1;
|
|
2171
2171
|
Q >= 0 && t.ranges[Q].to == o.from ? t.ranges[Q] = { from: t.ranges[Q].from, to: o.to } : t.ranges.push(o);
|
|
2172
2172
|
}
|
|
@@ -2178,7 +2178,7 @@ class eQ {
|
|
|
2178
2178
|
break O;
|
|
2179
2179
|
if (t && !--t.depth) {
|
|
2180
2180
|
let Q = Ta(this.ranges, t.ranges);
|
|
2181
|
-
Q.length && (fa(Q), this.inner.splice(t.index, 0, new Pa(t.parser, t.parser.startParse(this.input, ga(t.mounts, Q), Q), t.ranges.map(($) => new
|
|
2181
|
+
Q.length && (fa(Q), this.inner.splice(t.index, 0, new Pa(t.parser, t.parser.startParse(this.input, ga(t.mounts, Q), Q), t.ranges.map(($) => new YO($.from - t.start, $.to - t.start)), t.bracketed, t.target, Q[0].from))), t = t.prev;
|
|
2182
2182
|
}
|
|
2183
2183
|
i && !--i.depth && (i = i.prev);
|
|
2184
2184
|
}
|
|
@@ -2214,7 +2214,7 @@ function iQ(O) {
|
|
|
2214
2214
|
let X = g ? Q(w + 4, s[w + 3], n.set.types[s[w]], m, T - m, g - 1) : e.toTree();
|
|
2215
2215
|
return P.push(X), R.push(m - h), Sa(n, s[w + 3], c, P, R, h), new QO(d, P, R, f);
|
|
2216
2216
|
}
|
|
2217
|
-
r.children[a] = Q(0, s.length,
|
|
2217
|
+
r.children[a] = Q(0, s.length, UO.none, 0, n.length, t.length - 1);
|
|
2218
2218
|
for (let $ of o) {
|
|
2219
2219
|
let c = O.tree.children[$], d = O.tree.positions[$];
|
|
2220
2220
|
O.yield(new TO(c, d + O.from, $, O._tree));
|
|
@@ -2297,7 +2297,7 @@ function Ta(O, e) {
|
|
|
2297
2297
|
let o = i[a];
|
|
2298
2298
|
if (o.from >= s)
|
|
2299
2299
|
break;
|
|
2300
|
-
o.to <= n || (t || (i = t = e.slice()), o.from < n ? (t[a] = new
|
|
2300
|
+
o.to <= n || (t || (i = t = e.slice()), o.from < n ? (t[a] = new YO(o.from, n), o.to > s && t.splice(a + 1, 0, new YO(s, o.to))) : o.to > s ? t[a--] = new YO(s, o.to) : t.splice(a--, 1));
|
|
2301
2301
|
}
|
|
2302
2302
|
}
|
|
2303
2303
|
return i;
|
|
@@ -2308,7 +2308,7 @@ function aQ(O, e, t, i) {
|
|
|
2308
2308
|
let $ = r == O.length ? 1e9 : n ? O[r].to : O[r].from, c = a == e.length ? 1e9 : s ? e[a].to : e[a].from;
|
|
2309
2309
|
if (n != s) {
|
|
2310
2310
|
let d = Math.max(o, t), h = Math.min($, c, i);
|
|
2311
|
-
d < h && Q.push(new
|
|
2311
|
+
d < h && Q.push(new YO(d, h));
|
|
2312
2312
|
}
|
|
2313
2313
|
if (o = Math.min($, c), o == 1e9)
|
|
2314
2314
|
break;
|
|
@@ -2321,7 +2321,7 @@ function ga(O, e) {
|
|
|
2321
2321
|
for (let { pos: i, mount: r, frag: a } of O) {
|
|
2322
2322
|
let n = i + (r.overlay ? r.overlay[0].from : 0), s = n + r.tree.length, o = Math.max(a.from, n), Q = Math.min(a.to, s);
|
|
2323
2323
|
if (r.overlay) {
|
|
2324
|
-
let $ = r.overlay.map((d) => new
|
|
2324
|
+
let $ = r.overlay.map((d) => new YO(d.from + i, d.to + i)), c = aQ(e, $, o, Q);
|
|
2325
2325
|
for (let d = 0, h = o; ; d++) {
|
|
2326
2326
|
let f = d == c.length, g = f ? Q : c[d].from;
|
|
2327
2327
|
if (g > h && t.push(new ze(h, g, r.tree, -n, a.from >= h || a.openStart, a.to <= g || a.openEnd)), f)
|
|
@@ -3062,7 +3062,7 @@ function li(O) {
|
|
|
3062
3062
|
O = O.prev;
|
|
3063
3063
|
}
|
|
3064
3064
|
}
|
|
3065
|
-
function
|
|
3065
|
+
function yO(O) {
|
|
3066
3066
|
var e = O.statementIndentUnit, t = O.dontAlignCalls, i = O.keywords || {}, r = O.types || {}, a = O.builtin || {}, n = O.blockKeywords || {}, s = O.defKeywords || {}, o = O.atoms || {}, Q = O.hooks || {}, $ = O.multiLineStrings, c = O.indentStatements !== !1, d = O.indentSwitch !== !1, h = O.namespaceSeparator, f = O.isPunctuationChar || /[\[\]{}\(\),;\:\.]/, g = O.numberStart || /[\d\.]/, w = O.number || /^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i, P = O.isOperatorChar || /[+\-*&%=<>!?|\/]/, R = O.isIdentifierChar || /[\w\$_\xa1-\uffff]/, m = O.isReservedIdentifier || !1, T, X;
|
|
3067
3067
|
function y(S, x) {
|
|
3068
3068
|
var C = S.next();
|
|
@@ -3241,7 +3241,7 @@ function wa(O, e) {
|
|
|
3241
3241
|
var t = e.cpp11RawStringDelim.replace(/[^\w\s]/g, "\\$&"), i = O.match(new RegExp(".*?\\)" + t + '"'));
|
|
3242
3242
|
return i ? e.tokenize = null : O.skipToEnd(), "string";
|
|
3243
3243
|
}
|
|
3244
|
-
|
|
3244
|
+
yO({
|
|
3245
3245
|
name: "c",
|
|
3246
3246
|
keywords: q(Ne),
|
|
3247
3247
|
types: Be,
|
|
@@ -3255,7 +3255,7 @@ ZO({
|
|
|
3255
3255
|
"*": Nt
|
|
3256
3256
|
}
|
|
3257
3257
|
});
|
|
3258
|
-
|
|
3258
|
+
yO({
|
|
3259
3259
|
name: "cpp",
|
|
3260
3260
|
keywords: q(Ne + " " + as),
|
|
3261
3261
|
types: Be,
|
|
@@ -3290,7 +3290,7 @@ ZO({
|
|
|
3290
3290
|
},
|
|
3291
3291
|
namespaceSeparator: "::"
|
|
3292
3292
|
});
|
|
3293
|
-
const SQ =
|
|
3293
|
+
const SQ = yO({
|
|
3294
3294
|
name: "java",
|
|
3295
3295
|
keywords: q("abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),
|
|
3296
3296
|
types: q("var byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),
|
|
@@ -3307,7 +3307,7 @@ const SQ = ZO({
|
|
|
3307
3307
|
return O.match(/""$/) ? (e.tokenize = ls, e.tokenize(O, e)) : !1;
|
|
3308
3308
|
}
|
|
3309
3309
|
}
|
|
3310
|
-
}), XQ =
|
|
3310
|
+
}), XQ = yO({
|
|
3311
3311
|
name: "csharp",
|
|
3312
3312
|
keywords: q("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in init interface internal is lock namespace new operator out override params private protected public readonly record ref required return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),
|
|
3313
3313
|
types: q("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),
|
|
@@ -3345,7 +3345,7 @@ function qe(O) {
|
|
|
3345
3345
|
return "comment";
|
|
3346
3346
|
};
|
|
3347
3347
|
}
|
|
3348
|
-
|
|
3348
|
+
yO({
|
|
3349
3349
|
name: "scala",
|
|
3350
3350
|
keywords: q(
|
|
3351
3351
|
/* scala */
|
|
@@ -3399,7 +3399,7 @@ function TQ(O) {
|
|
|
3399
3399
|
return (a || !O) && (t.tokenize = null), "string";
|
|
3400
3400
|
};
|
|
3401
3401
|
}
|
|
3402
|
-
|
|
3402
|
+
yO({
|
|
3403
3403
|
name: "kotlin",
|
|
3404
3404
|
keywords: q(
|
|
3405
3405
|
/*keywords*/
|
|
@@ -3442,7 +3442,7 @@ ZO({
|
|
|
3442
3442
|
closeBrackets: { brackets: ["(", "[", "{", "'", '"', '"""'] }
|
|
3443
3443
|
}
|
|
3444
3444
|
});
|
|
3445
|
-
|
|
3445
|
+
yO({
|
|
3446
3446
|
name: "shader",
|
|
3447
3447
|
keywords: q("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),
|
|
3448
3448
|
types: q("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),
|
|
@@ -3452,7 +3452,7 @@ ZO({
|
|
|
3452
3452
|
indentSwitch: !1,
|
|
3453
3453
|
hooks: { "#": Y1 }
|
|
3454
3454
|
});
|
|
3455
|
-
|
|
3455
|
+
yO({
|
|
3456
3456
|
name: "nesc",
|
|
3457
3457
|
keywords: q(Ne + " as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),
|
|
3458
3458
|
types: Be,
|
|
@@ -3460,7 +3460,7 @@ ZO({
|
|
|
3460
3460
|
atoms: q("null true false"),
|
|
3461
3461
|
hooks: { "#": Y1 }
|
|
3462
3462
|
});
|
|
3463
|
-
|
|
3463
|
+
yO({
|
|
3464
3464
|
name: "objectivec",
|
|
3465
3465
|
keywords: q(Ne + " " + ns),
|
|
3466
3466
|
types: os,
|
|
@@ -3476,7 +3476,7 @@ ZO({
|
|
|
3476
3476
|
"*": Nt
|
|
3477
3477
|
}
|
|
3478
3478
|
});
|
|
3479
|
-
|
|
3479
|
+
yO({
|
|
3480
3480
|
name: "objectivecpp",
|
|
3481
3481
|
keywords: q(Ne + " " + ns + " " + as),
|
|
3482
3482
|
types: os,
|
|
@@ -3511,7 +3511,7 @@ ZO({
|
|
|
3511
3511
|
},
|
|
3512
3512
|
namespaceSeparator: "::"
|
|
3513
3513
|
});
|
|
3514
|
-
|
|
3514
|
+
yO({
|
|
3515
3515
|
name: "squirrel",
|
|
3516
3516
|
keywords: q("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),
|
|
3517
3517
|
types: Be,
|
|
@@ -3538,7 +3538,7 @@ function $s(O) {
|
|
|
3538
3538
|
return a && (t.tokenize = null), "string";
|
|
3539
3539
|
};
|
|
3540
3540
|
}
|
|
3541
|
-
|
|
3541
|
+
yO({
|
|
3542
3542
|
name: "ceylon",
|
|
3543
3543
|
keywords: q("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),
|
|
3544
3544
|
types: function(O) {
|
|
@@ -3614,7 +3614,7 @@ function xQ(O, e) {
|
|
|
3614
3614
|
function CQ(O, e) {
|
|
3615
3615
|
return O.eatWhile(/[\w_]/), e.tokenize = cs(e), "variable";
|
|
3616
3616
|
}
|
|
3617
|
-
|
|
3617
|
+
yO({
|
|
3618
3618
|
name: "dart",
|
|
3619
3619
|
keywords: q("this super static final const abstract class extends external factory implements mixin get native set typedef with enum throw rethrow assert break case continue default in return new deferred async await covariant try catch finally do else for if switch while import library export part of show hide is as extension on yield late required sealed base interface when inline"),
|
|
3620
3620
|
blockKeywords: q("try catch finally do else for if switch while"),
|
|
@@ -4713,7 +4713,7 @@ class wO extends K5 {
|
|
|
4713
4713
|
}
|
|
4714
4714
|
}
|
|
4715
4715
|
}
|
|
4716
|
-
this.nodeSet = new Cr(t.map((s, o) =>
|
|
4716
|
+
this.nodeSet = new Cr(t.map((s, o) => UO.define({
|
|
4717
4717
|
name: o >= this.minRepeatTerm ? void 0 : s,
|
|
4718
4718
|
id: o,
|
|
4719
4719
|
props: r[o],
|
|
@@ -7040,31 +7040,31 @@ const ud = new F((O) => {
|
|
|
7040
7040
|
specialized: [{ term: 503, get: (O, e) => cn(O) << 1 | 1, external: cn, extend: !0 }],
|
|
7041
7041
|
tokenPrec: 15412
|
|
7042
7042
|
});
|
|
7043
|
-
function
|
|
7043
|
+
function _O(O) {
|
|
7044
7044
|
return Gn.define({ parser: O });
|
|
7045
7045
|
}
|
|
7046
7046
|
const tr = /* @__PURE__ */ new Map([
|
|
7047
7047
|
["csharp", { name: "C#", lang: na.define(XQ), aliases: ["cs"] }],
|
|
7048
|
-
["rust", { name: "Rust", lang:
|
|
7049
|
-
["javascript", { name: "JavaScript", lang:
|
|
7050
|
-
["typescript", { name: "TypeScript", lang:
|
|
7051
|
-
["json", { name: "JSON", lang:
|
|
7052
|
-
["yaml", { name: "YAML", lang:
|
|
7048
|
+
["rust", { name: "Rust", lang: _O(p0), aliases: ["rs"] }],
|
|
7049
|
+
["javascript", { name: "JavaScript", lang: _O(Ni), aliases: ["js"] }],
|
|
7050
|
+
["typescript", { name: "TypeScript", lang: _O(Ni), aliases: ["ts"] }],
|
|
7051
|
+
["json", { name: "JSON", lang: _O(h$), aliases: [] }],
|
|
7052
|
+
["yaml", { name: "YAML", lang: _O(j0), aliases: [] }],
|
|
7053
7053
|
["java", { name: "Java", lang: na.define(SQ), aliases: [] }],
|
|
7054
|
-
["go", { name: "Go", lang:
|
|
7055
|
-
["python", { name: "Python", lang:
|
|
7056
|
-
["html", { name: "HTML", lang:
|
|
7057
|
-
["cli", { name: "CLI", lang:
|
|
7058
|
-
["php", { name: "PHP", lang:
|
|
7054
|
+
["go", { name: "Go", lang: _O(al), aliases: [] }],
|
|
7055
|
+
["python", { name: "Python", lang: _O(N7), aliases: ["py"] }],
|
|
7056
|
+
["html", { name: "HTML", lang: _O(Wl), aliases: [] }],
|
|
7057
|
+
["cli", { name: "CLI", lang: _O(Ti), aliases: [] }],
|
|
7058
|
+
["php", { name: "PHP", lang: _O(L9.configure({ top: "Program" })), aliases: [] }],
|
|
7059
7059
|
[
|
|
7060
7060
|
"syntax",
|
|
7061
|
-
{ name: "Syntax", lang:
|
|
7061
|
+
{ name: "Syntax", lang: _O(Ti.configure({ top: "Syntax" })), aliases: [] }
|
|
7062
7062
|
],
|
|
7063
7063
|
[
|
|
7064
7064
|
"surrealql",
|
|
7065
7065
|
{
|
|
7066
7066
|
name: "SurrealQL",
|
|
7067
|
-
lang:
|
|
7067
|
+
lang: _O(Ti),
|
|
7068
7068
|
aliases: ["surql", "sql"],
|
|
7069
7069
|
extension: () => R3()
|
|
7070
7070
|
}
|
|
@@ -8656,10 +8656,10 @@ function q1(O, e) {
|
|
|
8656
8656
|
var D = function(e, t) {
|
|
8657
8657
|
t === void 0 && (t = {}), this.label = e, this.keyword = t.keyword, this.beforeExpr = !!t.beforeExpr, this.startsExpr = !!t.startsExpr, this.isLoop = !!t.isLoop, this.isAssign = !!t.isAssign, this.prefix = !!t.prefix, this.postfix = !!t.postfix, this.binop = t.binop || null, this.updateContext = null;
|
|
8658
8658
|
};
|
|
8659
|
-
function
|
|
8659
|
+
function vO(O, e) {
|
|
8660
8660
|
return new D(O, { beforeExpr: !0, binop: e });
|
|
8661
8661
|
}
|
|
8662
|
-
var
|
|
8662
|
+
var zO = { beforeExpr: !0 }, XO = { startsExpr: !0 }, Mr = {};
|
|
8663
8663
|
function E(O, e) {
|
|
8664
8664
|
return e === void 0 && (e = {}), e.keyword = O, Mr[O] = new D(O, e);
|
|
8665
8665
|
}
|
|
@@ -8677,16 +8677,16 @@ var u = {
|
|
|
8677
8677
|
braceR: new D("}"),
|
|
8678
8678
|
parenL: new D("(", { beforeExpr: !0, startsExpr: !0 }),
|
|
8679
8679
|
parenR: new D(")"),
|
|
8680
|
-
comma: new D(",",
|
|
8681
|
-
semi: new D(";",
|
|
8682
|
-
colon: new D(":",
|
|
8680
|
+
comma: new D(",", zO),
|
|
8681
|
+
semi: new D(";", zO),
|
|
8682
|
+
colon: new D(":", zO),
|
|
8683
8683
|
dot: new D("."),
|
|
8684
|
-
question: new D("?",
|
|
8684
|
+
question: new D("?", zO),
|
|
8685
8685
|
questionDot: new D("?."),
|
|
8686
|
-
arrow: new D("=>",
|
|
8686
|
+
arrow: new D("=>", zO),
|
|
8687
8687
|
template: new D("template"),
|
|
8688
8688
|
invalidTemplate: new D("invalidTemplate"),
|
|
8689
|
-
ellipsis: new D("...",
|
|
8689
|
+
ellipsis: new D("...", zO),
|
|
8690
8690
|
backQuote: new D("`", XO),
|
|
8691
8691
|
dollarBraceL: new D("${", { beforeExpr: !0, startsExpr: !0 }),
|
|
8692
8692
|
// Operators. These carry several kinds of properties to help the
|
|
@@ -8706,36 +8706,36 @@ var u = {
|
|
|
8706
8706
|
assign: new D("_=", { beforeExpr: !0, isAssign: !0 }),
|
|
8707
8707
|
incDec: new D("++/--", { prefix: !0, postfix: !0, startsExpr: !0 }),
|
|
8708
8708
|
prefix: new D("!/~", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
|
|
8709
|
-
logicalOR:
|
|
8710
|
-
logicalAND:
|
|
8711
|
-
bitwiseOR:
|
|
8712
|
-
bitwiseXOR:
|
|
8713
|
-
bitwiseAND:
|
|
8714
|
-
equality:
|
|
8715
|
-
relational:
|
|
8716
|
-
bitShift:
|
|
8709
|
+
logicalOR: vO("||", 1),
|
|
8710
|
+
logicalAND: vO("&&", 2),
|
|
8711
|
+
bitwiseOR: vO("|", 3),
|
|
8712
|
+
bitwiseXOR: vO("^", 4),
|
|
8713
|
+
bitwiseAND: vO("&", 5),
|
|
8714
|
+
equality: vO("==/!=/===/!==", 6),
|
|
8715
|
+
relational: vO("</>/<=/>=", 7),
|
|
8716
|
+
bitShift: vO("<</>>/>>>", 8),
|
|
8717
8717
|
plusMin: new D("+/-", { beforeExpr: !0, binop: 9, prefix: !0, startsExpr: !0 }),
|
|
8718
|
-
modulo:
|
|
8719
|
-
star:
|
|
8720
|
-
slash:
|
|
8718
|
+
modulo: vO("%", 10),
|
|
8719
|
+
star: vO("*", 10),
|
|
8720
|
+
slash: vO("/", 10),
|
|
8721
8721
|
starstar: new D("**", { beforeExpr: !0 }),
|
|
8722
|
-
coalesce:
|
|
8722
|
+
coalesce: vO("??", 1),
|
|
8723
8723
|
// Keyword token types.
|
|
8724
8724
|
_break: E("break"),
|
|
8725
|
-
_case: E("case",
|
|
8725
|
+
_case: E("case", zO),
|
|
8726
8726
|
_catch: E("catch"),
|
|
8727
8727
|
_continue: E("continue"),
|
|
8728
8728
|
_debugger: E("debugger"),
|
|
8729
|
-
_default: E("default",
|
|
8729
|
+
_default: E("default", zO),
|
|
8730
8730
|
_do: E("do", { isLoop: !0, beforeExpr: !0 }),
|
|
8731
|
-
_else: E("else",
|
|
8731
|
+
_else: E("else", zO),
|
|
8732
8732
|
_finally: E("finally"),
|
|
8733
8733
|
_for: E("for", { isLoop: !0 }),
|
|
8734
8734
|
_function: E("function", XO),
|
|
8735
8735
|
_if: E("if"),
|
|
8736
|
-
_return: E("return",
|
|
8736
|
+
_return: E("return", zO),
|
|
8737
8737
|
_switch: E("switch"),
|
|
8738
|
-
_throw: E("throw",
|
|
8738
|
+
_throw: E("throw", zO),
|
|
8739
8739
|
_try: E("try"),
|
|
8740
8740
|
_var: E("var"),
|
|
8741
8741
|
_const: E("const"),
|
|
@@ -8745,7 +8745,7 @@ var u = {
|
|
|
8745
8745
|
_this: E("this", XO),
|
|
8746
8746
|
_super: E("super", XO),
|
|
8747
8747
|
_class: E("class", XO),
|
|
8748
|
-
_extends: E("extends",
|
|
8748
|
+
_extends: E("extends", zO),
|
|
8749
8749
|
_export: E("export"),
|
|
8750
8750
|
_import: E("import", XO),
|
|
8751
8751
|
_null: E("null", XO),
|
|
@@ -10869,7 +10869,7 @@ z.regexp_eatDecimalEscape = function(O) {
|
|
|
10869
10869
|
}
|
|
10870
10870
|
return !1;
|
|
10871
10871
|
};
|
|
10872
|
-
var fo = 0, C1 = 1,
|
|
10872
|
+
var fo = 0, C1 = 1, qO = 2;
|
|
10873
10873
|
z.regexp_eatCharacterClassEscape = function(O) {
|
|
10874
10874
|
var e = O.current();
|
|
10875
10875
|
if (Hh(e))
|
|
@@ -10885,7 +10885,7 @@ z.regexp_eatCharacterClassEscape = function(O) {
|
|
|
10885
10885
|
125
|
|
10886
10886
|
/* } */
|
|
10887
10887
|
))
|
|
10888
|
-
return t && i ===
|
|
10888
|
+
return t && i === qO && O.raise("Invalid property name"), i;
|
|
10889
10889
|
O.raise("Invalid property name");
|
|
10890
10890
|
}
|
|
10891
10891
|
return fo;
|
|
@@ -10918,7 +10918,7 @@ z.regexp_validateUnicodePropertyNameOrValue = function(O, e) {
|
|
|
10918
10918
|
if (O.unicodeProperties.binary.test(e))
|
|
10919
10919
|
return C1;
|
|
10920
10920
|
if (O.switchV && O.unicodeProperties.binaryOfStrings.test(e))
|
|
10921
|
-
return
|
|
10921
|
+
return qO;
|
|
10922
10922
|
O.raise("Invalid property name");
|
|
10923
10923
|
};
|
|
10924
10924
|
z.regexp_eatUnicodePropertyName = function(O) {
|
|
@@ -10954,7 +10954,7 @@ z.regexp_eatCharacterClass = function(O) {
|
|
|
10954
10954
|
return O.eat(
|
|
10955
10955
|
93
|
|
10956
10956
|
/* ] */
|
|
10957
|
-
) || O.raise("Unterminated character class"), e && t ===
|
|
10957
|
+
) || O.raise("Unterminated character class"), e && t === qO && O.raise("Negated character class may contain strings"), !0;
|
|
10958
10958
|
}
|
|
10959
10959
|
return !1;
|
|
10960
10960
|
};
|
|
@@ -11015,13 +11015,13 @@ z.regexp_eatClassEscape = function(O) {
|
|
|
11015
11015
|
z.regexp_classSetExpression = function(O) {
|
|
11016
11016
|
var e = C1, t;
|
|
11017
11017
|
if (!this.regexp_eatClassSetRange(O)) if (t = this.regexp_eatClassSetOperand(O)) {
|
|
11018
|
-
t ===
|
|
11018
|
+
t === qO && (e = qO);
|
|
11019
11019
|
for (var i = O.pos; O.eatChars(
|
|
11020
11020
|
[38, 38]
|
|
11021
11021
|
/* && */
|
|
11022
11022
|
); ) {
|
|
11023
11023
|
if (O.current() !== 38 && (t = this.regexp_eatClassSetOperand(O))) {
|
|
11024
|
-
t !==
|
|
11024
|
+
t !== qO && (e = C1);
|
|
11025
11025
|
continue;
|
|
11026
11026
|
}
|
|
11027
11027
|
O.raise("Invalid character in character class");
|
|
@@ -11041,7 +11041,7 @@ z.regexp_classSetExpression = function(O) {
|
|
|
11041
11041
|
if (!this.regexp_eatClassSetRange(O)) {
|
|
11042
11042
|
if (t = this.regexp_eatClassSetOperand(O), !t)
|
|
11043
11043
|
return e;
|
|
11044
|
-
t ===
|
|
11044
|
+
t === qO && (e = qO);
|
|
11045
11045
|
}
|
|
11046
11046
|
};
|
|
11047
11047
|
z.regexp_eatClassSetRange = function(O) {
|
|
@@ -11076,7 +11076,7 @@ z.regexp_eatNestedClass = function(O) {
|
|
|
11076
11076
|
93
|
|
11077
11077
|
/* ] */
|
|
11078
11078
|
))
|
|
11079
|
-
return t && i ===
|
|
11079
|
+
return t && i === qO && O.raise("Negated character class may contain strings"), i;
|
|
11080
11080
|
O.pos = e;
|
|
11081
11081
|
}
|
|
11082
11082
|
if (O.eat(
|
|
@@ -11117,13 +11117,13 @@ z.regexp_classStringDisjunctionContents = function(O) {
|
|
|
11117
11117
|
124
|
|
11118
11118
|
/* | */
|
|
11119
11119
|
); )
|
|
11120
|
-
this.regexp_classString(O) ===
|
|
11120
|
+
this.regexp_classString(O) === qO && (e = qO);
|
|
11121
11121
|
return e;
|
|
11122
11122
|
};
|
|
11123
11123
|
z.regexp_classString = function(O) {
|
|
11124
11124
|
for (var e = 0; this.regexp_eatClassSetCharacter(O); )
|
|
11125
11125
|
e++;
|
|
11126
|
-
return e === 1 ? C1 :
|
|
11126
|
+
return e === 1 ? C1 : qO;
|
|
11127
11127
|
};
|
|
11128
11128
|
z.regexp_eatClassSetCharacter = function(O) {
|
|
11129
11129
|
var e = O.pos;
|
|
@@ -11944,7 +11944,7 @@ function cP(O, e) {
|
|
|
11944
11944
|
return n.trim().length === 0 ? null : (r++, {
|
|
11945
11945
|
node: {
|
|
11946
11946
|
type: "emphasis",
|
|
11947
|
-
children:
|
|
11947
|
+
children: ZO(n)
|
|
11948
11948
|
},
|
|
11949
11949
|
endIndex: r
|
|
11950
11950
|
});
|
|
@@ -12122,7 +12122,7 @@ function hP(O, e) {
|
|
|
12122
12122
|
type: "link",
|
|
12123
12123
|
url: o,
|
|
12124
12124
|
title: $ || void 0,
|
|
12125
|
-
children:
|
|
12125
|
+
children: ZO(a)
|
|
12126
12126
|
},
|
|
12127
12127
|
endIndex: i
|
|
12128
12128
|
});
|
|
@@ -12152,7 +12152,7 @@ function PP(O, e) {
|
|
|
12152
12152
|
return $.trim().length === 0 ? null : {
|
|
12153
12153
|
node: {
|
|
12154
12154
|
type: "strong",
|
|
12155
|
-
children:
|
|
12155
|
+
children: ZO($)
|
|
12156
12156
|
},
|
|
12157
12157
|
endIndex: s
|
|
12158
12158
|
};
|
|
@@ -12195,7 +12195,7 @@ function SP(O, e) {
|
|
|
12195
12195
|
endIndex: t
|
|
12196
12196
|
};
|
|
12197
12197
|
}
|
|
12198
|
-
function
|
|
12198
|
+
function ZO(O) {
|
|
12199
12199
|
const e = [], t = O.length;
|
|
12200
12200
|
let i = 0;
|
|
12201
12201
|
for (; i < t; ) {
|
|
@@ -12259,7 +12259,7 @@ function UO(O) {
|
|
|
12259
12259
|
type: "strong",
|
|
12260
12260
|
children: [{
|
|
12261
12261
|
type: "emphasis",
|
|
12262
|
-
children:
|
|
12262
|
+
children: ZO(c)
|
|
12263
12263
|
}]
|
|
12264
12264
|
};
|
|
12265
12265
|
e.push(h), i = Q + 3;
|
|
@@ -12313,7 +12313,7 @@ function XP(O, e) {
|
|
|
12313
12313
|
}
|
|
12314
12314
|
const o = `</${t}>`, Q = a + 1, $ = O.indexOf(o, Q);
|
|
12315
12315
|
if ($ === -1) return null;
|
|
12316
|
-
const c = O.slice(Q, $), d =
|
|
12316
|
+
const c = O.slice(Q, $), d = ZO(c), h = {
|
|
12317
12317
|
type: "jsxComponent",
|
|
12318
12318
|
name: t,
|
|
12319
12319
|
attributes: n,
|
|
@@ -12337,7 +12337,7 @@ function TP(O, e) {
|
|
|
12337
12337
|
$ = h === -1 ? O.length : h + 1;
|
|
12338
12338
|
} else {
|
|
12339
12339
|
if (Q--, Q === 0) {
|
|
12340
|
-
const h = O.slice(o, d), g = { type: "span", children:
|
|
12340
|
+
const h = O.slice(o, d), g = { type: "span", children: ZO(h) };
|
|
12341
12341
|
return BO(g, n), { node: g, endIndex: d + s.length };
|
|
12342
12342
|
}
|
|
12343
12343
|
$ = d + s.length;
|
|
@@ -12684,7 +12684,7 @@ function ee(O) {
|
|
|
12684
12684
|
t = r + 1;
|
|
12685
12685
|
} else {
|
|
12686
12686
|
const r = O.indexOf("<", t), a = r === -1 ? i : r, n = O.substring(t, a);
|
|
12687
|
-
n && e.push(
|
|
12687
|
+
n && e.push(...ZO(Ri(n))), t = a;
|
|
12688
12688
|
}
|
|
12689
12689
|
return e;
|
|
12690
12690
|
}
|
|
@@ -12726,7 +12726,7 @@ function RP(O, e) {
|
|
|
12726
12726
|
const o = i.indexOf("</summary>");
|
|
12727
12727
|
if (o !== -1) {
|
|
12728
12728
|
const Q = i.slice(a, o);
|
|
12729
|
-
t.children =
|
|
12729
|
+
t.children = ZO(Q), O.currentIndex++, Gt(O, "summary");
|
|
12730
12730
|
return;
|
|
12731
12731
|
}
|
|
12732
12732
|
O.currentIndex++;
|
|
@@ -12743,14 +12743,14 @@ function RP(O, e) {
|
|
|
12743
12743
|
}
|
|
12744
12744
|
const s = n.join(`
|
|
12745
12745
|
`);
|
|
12746
|
-
t.children =
|
|
12746
|
+
t.children = ZO(s), Gt(O, "summary");
|
|
12747
12747
|
}
|
|
12748
12748
|
function _P(O, e) {
|
|
12749
12749
|
const t = "</span>", i = O.currentIndex, r = [O.lines[i]];
|
|
12750
12750
|
let a = i;
|
|
12751
12751
|
for (; !r.join(" ").includes(t) && a + 1 < O.lines.length; )
|
|
12752
12752
|
a++, r.push(O.lines[a]);
|
|
12753
|
-
const n = r.join(" ").trim(), s =
|
|
12753
|
+
const n = r.join(" ").trim(), s = ZO(n);
|
|
12754
12754
|
O.currentContainer.push({
|
|
12755
12755
|
type: "paragraph",
|
|
12756
12756
|
children: s
|
|
@@ -12893,7 +12893,7 @@ function LP(O) {
|
|
|
12893
12893
|
const i = e.slice(t).trim(), r = {
|
|
12894
12894
|
type: "heading",
|
|
12895
12895
|
depth: t,
|
|
12896
|
-
children:
|
|
12896
|
+
children: ZO(i),
|
|
12897
12897
|
id: bo.slug(i, !1)
|
|
12898
12898
|
};
|
|
12899
12899
|
O.currentContainer.push(r), O.currentIndex++;
|
|
@@ -13007,7 +13007,7 @@ function jP(O) {
|
|
|
13007
13007
|
const r = e.join(`
|
|
13008
13008
|
`), a = {
|
|
13009
13009
|
type: "paragraph",
|
|
13010
|
-
children:
|
|
13010
|
+
children: ZO(r)
|
|
13011
13011
|
};
|
|
13012
13012
|
O.currentContainer.push(a), O.currentIndex = i;
|
|
13013
13013
|
}
|
|
@@ -13051,7 +13051,7 @@ function bn(O, e = !1) {
|
|
|
13051
13051
|
const a = {
|
|
13052
13052
|
type: "tableCell",
|
|
13053
13053
|
isHeader: e,
|
|
13054
|
-
children:
|
|
13054
|
+
children: ZO(r)
|
|
13055
13055
|
};
|
|
13056
13056
|
t.push(a);
|
|
13057
13057
|
}
|
|
@@ -13246,7 +13246,7 @@ const lr = {
|
|
|
13246
13246
|
s || (m.currentTarget.style.opacity = "0");
|
|
13247
13247
|
},
|
|
13248
13248
|
children: s ? /* @__PURE__ */ p(
|
|
13249
|
-
|
|
13249
|
+
LO,
|
|
13250
13250
|
{
|
|
13251
13251
|
ref: h,
|
|
13252
13252
|
size: "xs",
|
|
@@ -13302,7 +13302,7 @@ const lr = {
|
|
|
13302
13302
|
}
|
|
13303
13303
|
),
|
|
13304
13304
|
/* @__PURE__ */ p(
|
|
13305
|
-
|
|
13305
|
+
LO,
|
|
13306
13306
|
{
|
|
13307
13307
|
size: "xs",
|
|
13308
13308
|
variant: "filled",
|
|
@@ -13500,9 +13500,9 @@ const lr = {
|
|
|
13500
13500
|
if (!U || !i) return;
|
|
13501
13501
|
const hO = new IntersectionObserver(
|
|
13502
13502
|
(it) => {
|
|
13503
|
-
const
|
|
13504
|
-
if (
|
|
13505
|
-
if (
|
|
13503
|
+
const bO = it[0];
|
|
13504
|
+
if (bO)
|
|
13505
|
+
if (bO.isIntersecting) {
|
|
13506
13506
|
if (!U.paused)
|
|
13507
13507
|
return;
|
|
13508
13508
|
Y();
|
|
@@ -13646,7 +13646,7 @@ const lr = {
|
|
|
13646
13646
|
{ label: "WebM", value: "webm" },
|
|
13647
13647
|
{ label: "MOV", value: "mov" }
|
|
13648
13648
|
], $f = ({ blockId: O }) => {
|
|
13649
|
-
const e = dO(), r =
|
|
13649
|
+
const e = dO(), r = WO.getBlock(e, { id: O })?.value[0]?.props ?? At, [a, n] = j(r.code), [s, o] = j(r.format);
|
|
13650
13650
|
H(() => {
|
|
13651
13651
|
n(r.code), o(r.format);
|
|
13652
13652
|
}, [r.code, r.format]);
|
|
@@ -13683,7 +13683,7 @@ const lr = {
|
|
|
13683
13683
|
},
|
|
13684
13684
|
children: [
|
|
13685
13685
|
/* @__PURE__ */ p(
|
|
13686
|
-
|
|
13686
|
+
LO,
|
|
13687
13687
|
{
|
|
13688
13688
|
label: "BrandSafe code",
|
|
13689
13689
|
size: "xs",
|
|
@@ -13838,7 +13838,7 @@ const lr = {
|
|
|
13838
13838
|
},
|
|
13839
13839
|
children: [
|
|
13840
13840
|
/* @__PURE__ */ p(
|
|
13841
|
-
|
|
13841
|
+
LO,
|
|
13842
13842
|
{
|
|
13843
13843
|
size: "xs",
|
|
13844
13844
|
variant: "filled",
|
|
@@ -14002,7 +14002,7 @@ const pf = p5.extend({
|
|
|
14002
14002
|
{ label: "LG", value: "lg" },
|
|
14003
14003
|
{ label: "XL", value: "xl" }
|
|
14004
14004
|
], Pf = ({ blockId: O }) => {
|
|
14005
|
-
const e = dO(), r =
|
|
14005
|
+
const e = dO(), r = WO.getBlock(e, { id: O })?.value[0]?.props ?? Et, [a, n] = j(r.label), [s, o] = j(r.url), [, Q] = j(0);
|
|
14006
14006
|
H(() => {
|
|
14007
14007
|
n(r.label), o(r.url);
|
|
14008
14008
|
}, [r.label, r.url]);
|
|
@@ -14021,7 +14021,7 @@ const pf = p5.extend({
|
|
|
14021
14021
|
style: { minWidth: 220 },
|
|
14022
14022
|
children: [
|
|
14023
14023
|
/* @__PURE__ */ p(
|
|
14024
|
-
|
|
14024
|
+
LO,
|
|
14025
14025
|
{
|
|
14026
14026
|
label: "Label",
|
|
14027
14027
|
size: "xs",
|
|
@@ -14030,7 +14030,7 @@ const pf = p5.extend({
|
|
|
14030
14030
|
}
|
|
14031
14031
|
),
|
|
14032
14032
|
/* @__PURE__ */ p(
|
|
14033
|
-
|
|
14033
|
+
LO,
|
|
14034
14034
|
{
|
|
14035
14035
|
label: "URL",
|
|
14036
14036
|
size: "xs",
|
|
@@ -14199,7 +14199,7 @@ function _i(O) {
|
|
|
14199
14199
|
return O.charAt(0).toUpperCase() + O.slice(1);
|
|
14200
14200
|
}
|
|
14201
14201
|
const xf = ({ blockId: O }) => {
|
|
14202
|
-
const e = dO(), r =
|
|
14202
|
+
const e = dO(), r = WO.getBlock(e, { id: O })?.value[0]?.props?.theme ?? "default", a = M(
|
|
14203
14203
|
(n) => {
|
|
14204
14204
|
KO.updateElement(e, { blockId: O, type: "callout", props: n });
|
|
14205
14205
|
},
|
|
@@ -14393,7 +14393,7 @@ const wf = qi.TodoList.extend({
|
|
|
14393
14393
|
highlightOnHover: !1,
|
|
14394
14394
|
caption: ""
|
|
14395
14395
|
}, bf = ({ blockId: O }) => {
|
|
14396
|
-
const e = dO(), r =
|
|
14396
|
+
const e = dO(), r = WO.getBlock(e, { id: O })?.value[0]?.props ?? Dt, [a, n] = j(r.caption);
|
|
14397
14397
|
H(() => {
|
|
14398
14398
|
n(r.caption);
|
|
14399
14399
|
}, [r.caption]);
|
|
@@ -14411,7 +14411,7 @@ const wf = qi.TodoList.extend({
|
|
|
14411
14411
|
style: { minWidth: 200 },
|
|
14412
14412
|
children: [
|
|
14413
14413
|
/* @__PURE__ */ p(
|
|
14414
|
-
|
|
14414
|
+
LO,
|
|
14415
14415
|
{
|
|
14416
14416
|
label: "Caption",
|
|
14417
14417
|
size: "xs",
|
|
@@ -14877,7 +14877,7 @@ const zn = {
|
|
|
14877
14877
|
style: { background: "var(--surreal-glass-subtle)" },
|
|
14878
14878
|
children: [
|
|
14879
14879
|
/* @__PURE__ */ p(
|
|
14880
|
-
|
|
14880
|
+
LO,
|
|
14881
14881
|
{
|
|
14882
14882
|
size: "xs",
|
|
14883
14883
|
variant: "unstyled",
|
|
@@ -15222,7 +15222,7 @@ const Lf = ({
|
|
|
15222
15222
|
s || (P.currentTarget.style.opacity = "0", P.currentTarget.style.backgroundColor = "transparent");
|
|
15223
15223
|
},
|
|
15224
15224
|
children: s ? /* @__PURE__ */ p(
|
|
15225
|
-
|
|
15225
|
+
LO,
|
|
15226
15226
|
{
|
|
15227
15227
|
ref: c,
|
|
15228
15228
|
size: "xs",
|
|
@@ -15275,7 +15275,7 @@ const Lf = ({
|
|
|
15275
15275
|
}
|
|
15276
15276
|
),
|
|
15277
15277
|
/* @__PURE__ */ p(
|
|
15278
|
-
|
|
15278
|
+
LO,
|
|
15279
15279
|
{
|
|
15280
15280
|
size: "xs",
|
|
15281
15281
|
variant: "filled",
|
|
@@ -15432,7 +15432,7 @@ const Df = [
|
|
|
15432
15432
|
elements: {
|
|
15433
15433
|
"numbered-list": {
|
|
15434
15434
|
render: (O) => {
|
|
15435
|
-
const e = dO(), t =
|
|
15435
|
+
const e = dO(), t = WO.getBlock(e, { id: O.blockId }), i = t5(t);
|
|
15436
15436
|
return /* @__PURE__ */ p(
|
|
15437
15437
|
"ol",
|
|
15438
15438
|
{
|
|
@@ -15468,7 +15468,7 @@ const Df = [
|
|
|
15468
15468
|
"VideoEmbed"
|
|
15469
15469
|
]);
|
|
15470
15470
|
function Mf(O) {
|
|
15471
|
-
const e =
|
|
15471
|
+
const e = WO.getBlock(O, { at: O.path.current });
|
|
15472
15472
|
if (!e) return !1;
|
|
15473
15473
|
const t = O.blockEditorsMap[e.id];
|
|
15474
15474
|
if (!t?.selection) return !1;
|
|
@@ -15478,7 +15478,7 @@ function Mf(O) {
|
|
|
15478
15478
|
return !!i;
|
|
15479
15479
|
}
|
|
15480
15480
|
function kn(O, e) {
|
|
15481
|
-
const t =
|
|
15481
|
+
const t = WO.getBlock(O, { at: O.path.current });
|
|
15482
15482
|
if (!t) return;
|
|
15483
15483
|
const i = O.blockEditorsMap[t.id];
|
|
15484
15484
|
if (!i?.selection || (at.unwrapNodes(i, {
|
|
@@ -15532,7 +15532,7 @@ const Ff = ({
|
|
|
15532
15532
|
wrap: "nowrap",
|
|
15533
15533
|
children: [
|
|
15534
15534
|
/* @__PURE__ */ p(
|
|
15535
|
-
|
|
15535
|
+
LO,
|
|
15536
15536
|
{
|
|
15537
15537
|
size: "xs",
|
|
15538
15538
|
placeholder: "https://...",
|
|
@@ -15615,7 +15615,7 @@ const Ff = ({
|
|
|
15615
15615
|
)
|
|
15616
15616
|
] }) }) });
|
|
15617
15617
|
}, Bf = ({ blockId: O }) => {
|
|
15618
|
-
const e = dO(), t = O ?
|
|
15618
|
+
const e = dO(), t = O ? WO.getBlock(e, { id: O }) : null, i = t ? MP(t.type) : void 0, r = t ? !dr.has(t.type) : !1, a = tO(
|
|
15619
15619
|
() => Object.values(e.plugins).filter((n) => {
|
|
15620
15620
|
if (dr.has(n.type)) return !1;
|
|
15621
15621
|
const s = n.options;
|
|
@@ -15649,7 +15649,7 @@ const Ff = ({
|
|
|
15649
15649
|
$O.Item,
|
|
15650
15650
|
{
|
|
15651
15651
|
onClick: () => {
|
|
15652
|
-
O &&
|
|
15652
|
+
O && WO.duplicateBlock(e, { blockId: O });
|
|
15653
15653
|
},
|
|
15654
15654
|
children: /* @__PURE__ */ v(
|
|
15655
15655
|
z1,
|
|
@@ -15675,7 +15675,7 @@ const Ff = ({
|
|
|
15675
15675
|
{
|
|
15676
15676
|
color: "red",
|
|
15677
15677
|
onClick: () => {
|
|
15678
|
-
O &&
|
|
15678
|
+
O && WO.deleteBlock(e, { blockId: O });
|
|
15679
15679
|
},
|
|
15680
15680
|
children: /* @__PURE__ */ v(
|
|
15681
15681
|
z1,
|
|
@@ -15700,7 +15700,7 @@ const Ff = ({
|
|
|
15700
15700
|
}, Kf = () => {
|
|
15701
15701
|
const O = dO(), [e, t] = j(!1), i = (r) => {
|
|
15702
15702
|
if (!r) return;
|
|
15703
|
-
const a =
|
|
15703
|
+
const a = WO.getBlock(O, { id: r });
|
|
15704
15704
|
a && O.insertBlock("Paragraph", { at: a.meta.order + 1, focus: !0 });
|
|
15705
15705
|
};
|
|
15706
15706
|
return /* @__PURE__ */ p(
|
|
@@ -15734,7 +15734,7 @@ const Ff = ({
|
|
|
15734
15734
|
{
|
|
15735
15735
|
onClick: () => {
|
|
15736
15736
|
if (r) {
|
|
15737
|
-
const a =
|
|
15737
|
+
const a = WO.getBlock(O, {
|
|
15738
15738
|
id: r
|
|
15739
15739
|
});
|
|
15740
15740
|
a && O.setPath({ current: a.meta.order });
|
|
@@ -16109,7 +16109,7 @@ function ce(O, e) {
|
|
|
16109
16109
|
const t = O > 0 ? 1 : -1, i = e > 0 ? 1 : -1, r = t + i !== 0 ? 1 : 0;
|
|
16110
16110
|
return `a ${_} ${_} 0 0 ${r} ${O} ${e}`;
|
|
16111
16111
|
}
|
|
16112
|
-
const
|
|
16112
|
+
const kO = _ * 2;
|
|
16113
16113
|
function te(O, e) {
|
|
16114
16114
|
return `c ${O} 0 0 ${e} ${O} ${e}`;
|
|
16115
16115
|
}
|
|
@@ -16216,7 +16216,7 @@ function TS(O, e, t) {
|
|
|
16216
16216
|
/* @__PURE__ */ p(
|
|
16217
16217
|
"path",
|
|
16218
16218
|
{
|
|
16219
|
-
d: `M ${e} ${t} ${te(
|
|
16219
|
+
d: `M ${e} ${t} ${te(kO, kO)}`
|
|
16220
16220
|
},
|
|
16221
16221
|
eO()
|
|
16222
16222
|
)
|
|
@@ -16224,7 +16224,7 @@ function TS(O, e, t) {
|
|
|
16224
16224
|
/* @__PURE__ */ p(
|
|
16225
16225
|
"path",
|
|
16226
16226
|
{
|
|
16227
|
-
d: `M ${n + i.width} ${s} ${te(
|
|
16227
|
+
d: `M ${n + i.width} ${s} ${te(kO, -kO)}`
|
|
16228
16228
|
},
|
|
16229
16229
|
eO()
|
|
16230
16230
|
)
|
|
@@ -16236,7 +16236,7 @@ function TS(O, e, t) {
|
|
|
16236
16236
|
/* @__PURE__ */ p(
|
|
16237
16237
|
"path",
|
|
16238
16238
|
{
|
|
16239
|
-
d: `M ${e} ${t} ${te(
|
|
16239
|
+
d: `M ${e} ${t} ${te(kO, -kO)}`
|
|
16240
16240
|
},
|
|
16241
16241
|
eO()
|
|
16242
16242
|
)
|
|
@@ -16244,7 +16244,7 @@ function TS(O, e, t) {
|
|
|
16244
16244
|
/* @__PURE__ */ p(
|
|
16245
16245
|
"path",
|
|
16246
16246
|
{
|
|
16247
|
-
d: `M ${e + r - _ * 2} ${s} ${te(
|
|
16247
|
+
d: `M ${e + r - _ * 2} ${s} ${te(kO, kO)}`
|
|
16248
16248
|
},
|
|
16249
16249
|
eO()
|
|
16250
16250
|
)
|
|
@@ -16324,7 +16324,7 @@ function xS(O, e, t) {
|
|
|
16324
16324
|
/* @__PURE__ */ p(
|
|
16325
16325
|
"path",
|
|
16326
16326
|
{
|
|
16327
|
-
d: `M ${e} ${t} ${te(
|
|
16327
|
+
d: `M ${e} ${t} ${te(kO, -kO)}`
|
|
16328
16328
|
},
|
|
16329
16329
|
eO()
|
|
16330
16330
|
)
|
|
@@ -16332,7 +16332,7 @@ function xS(O, e, t) {
|
|
|
16332
16332
|
/* @__PURE__ */ p(
|
|
16333
16333
|
"path",
|
|
16334
16334
|
{
|
|
16335
|
-
d: `M ${o + a} ${$} ${te(
|
|
16335
|
+
d: `M ${o + a} ${$} ${te(kO, kO)}`
|
|
16336
16336
|
},
|
|
16337
16337
|
eO()
|
|
16338
16338
|
)
|
|
@@ -16648,7 +16648,7 @@ const sm = R2({
|
|
|
16648
16648
|
variant: "surreal"
|
|
16649
16649
|
}
|
|
16650
16650
|
}),
|
|
16651
|
-
TextInput:
|
|
16651
|
+
TextInput: LO.extend({
|
|
16652
16652
|
defaultProps: {
|
|
16653
16653
|
spellCheck: !1,
|
|
16654
16654
|
variant: "surreal"
|