@crimson-education/helios-editor-renderer 0.1.0 → 0.2.0
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/index.mjs +115 -111
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as ee, jsxs as
|
|
1
|
+
import { jsx as ee, jsxs as er, Fragment as Ty } from "react/jsx-runtime";
|
|
2
2
|
import * as mr from "react";
|
|
3
3
|
import ce, { useReducer as Cy, useRef as as, useEffect as gh, useCallback as yy, useMemo as Eh, useDebugValue as Ry, forwardRef as Sh, createElement as Bd, useState as Ny } from "react";
|
|
4
4
|
import "react-dom";
|
|
@@ -3700,19 +3700,19 @@ var IR = (e, t, r) => {
|
|
|
3700
3700
|
} = r;
|
|
3701
3701
|
if ($t.length === 0)
|
|
3702
3702
|
throw new Error('Cannot apply a "split_node" operation at path ['.concat($t, "] because the root node cannot be split."));
|
|
3703
|
-
var Rr = ie.get(e, $t), Bn = ie.parent(e, $t), fr = $t[$t.length - 1],
|
|
3703
|
+
var Rr = ie.get(e, $t), Bn = ie.parent(e, $t), fr = $t[$t.length - 1], rr;
|
|
3704
3704
|
if (ve.isText(Rr)) {
|
|
3705
3705
|
var Oi = Rr.text.slice(0, Hr), Ai = Rr.text.slice(Hr);
|
|
3706
|
-
Rr.text = Oi,
|
|
3706
|
+
Rr.text = Oi, rr = $a($a({}, Rn), {}, {
|
|
3707
3707
|
text: Ai
|
|
3708
3708
|
});
|
|
3709
3709
|
} else {
|
|
3710
3710
|
var Di = Rr.children.slice(0, Hr), ia = Rr.children.slice(Hr);
|
|
3711
|
-
Rr.children = Di,
|
|
3711
|
+
Rr.children = Di, rr = $a($a({}, Rn), {}, {
|
|
3712
3712
|
children: ia
|
|
3713
3713
|
});
|
|
3714
3714
|
}
|
|
3715
|
-
if (Bn.children.splice(fr + 1, 0,
|
|
3715
|
+
if (Bn.children.splice(fr + 1, 0, rr), t)
|
|
3716
3716
|
for (var [Fa, Ua] of Q.points(t))
|
|
3717
3717
|
t[Ua] = We.transform(Fa, r);
|
|
3718
3718
|
break;
|
|
@@ -9918,7 +9918,7 @@ function sA(e) {
|
|
|
9918
9918
|
var Av = (e, t, r) => r ? typeof r == "object" ? Object.entries(r).every(([n, a]) => sA(a).includes(e[n])) : r(e, t) : !0, ro = (e, { id: t, block: r, empty: n, match: a, text: i } = {}) => {
|
|
9919
9919
|
let s = !1, o = () => !0;
|
|
9920
9920
|
return i !== void 0 && (s = !0, o = In(o, (l) => rt.isText(l) === i)), n !== void 0 && (s = !0, o = In(o, (l) => rt.isText(l) ? l.text.length > 0 == !n : e.api.isEmpty(l) === n)), r !== void 0 && (s = !0, o = In(o, (l) => e.api.isBlock(l) === r)), t !== void 0 && (s = !0, o = In(o, (l) => t === !0 && !!l.id || l.id === t)), typeof a == "object" ? (s = !0, o = In(o, (l, c) => Av(l, c, a))) : typeof a == "function" && (s = !0, o = In(o, a)), s ? o : void 0;
|
|
9921
|
-
},
|
|
9921
|
+
}, tr = (e, { id: t, empty: r, match: n, text: a, ...i } = {}) => {
|
|
9922
9922
|
const { at: s, block: o } = i;
|
|
9923
9923
|
return {
|
|
9924
9924
|
...i,
|
|
@@ -9927,7 +9927,7 @@ var Av = (e, t, r) => r ? typeof r == "object" ? Object.entries(r).every(([n, a]
|
|
|
9927
9927
|
};
|
|
9928
9928
|
}, In = (e, t) => (r, n) => e(r, n) && (!t || t(r, n));
|
|
9929
9929
|
function* oA(e, t = {}) {
|
|
9930
|
-
t =
|
|
9930
|
+
t = tr(e, t);
|
|
9931
9931
|
const {
|
|
9932
9932
|
ignoreNonSelectable: r = !1,
|
|
9933
9933
|
mode: n = "all",
|
|
@@ -10158,7 +10158,7 @@ function SA({
|
|
|
10158
10158
|
}
|
|
10159
10159
|
var hA = (e, t) => !!e.api.node(t), bA = (e, t) => {
|
|
10160
10160
|
try {
|
|
10161
|
-
return Qh(e,
|
|
10161
|
+
return Qh(e, tr(e, t));
|
|
10162
10162
|
} catch {
|
|
10163
10163
|
return;
|
|
10164
10164
|
}
|
|
@@ -10214,7 +10214,7 @@ var hA = (e, t) => !!e.api.node(t), bA = (e, t) => {
|
|
|
10214
10214
|
} catch {
|
|
10215
10215
|
return [];
|
|
10216
10216
|
}
|
|
10217
|
-
}, xA = (e, t) => hb(e,
|
|
10217
|
+
}, xA = (e, t) => hb(e, tr(e, t)), MA = (e) => bb(e), LA = (e) => Rb(e), PA = (e, t, r) => {
|
|
10218
10218
|
try {
|
|
10219
10219
|
return Db(e, Qe(e, t), r);
|
|
10220
10220
|
} catch {
|
|
@@ -10347,7 +10347,7 @@ var hA = (e, t) => !!e.api.node(t), bA = (e, t) => {
|
|
|
10347
10347
|
}
|
|
10348
10348
|
};
|
|
10349
10349
|
if (t != null && t.sibling) {
|
|
10350
|
-
const a =
|
|
10350
|
+
const a = tr(e, t).at;
|
|
10351
10351
|
if (!a) return;
|
|
10352
10352
|
const i = ye.previous(a);
|
|
10353
10353
|
return i ? e.api.node(i) : void 0;
|
|
@@ -10521,7 +10521,7 @@ var hA = (e, t) => !!e.api.node(t), bA = (e, t) => {
|
|
|
10521
10521
|
at: Qe(e, r == null ? void 0 : r.at)
|
|
10522
10522
|
});
|
|
10523
10523
|
}, ED = (e, t, { nextBlock: r, removeEmpty: n, ...a } = {}) => {
|
|
10524
|
-
a =
|
|
10524
|
+
a = tr(e, a), e.tf.withoutNormalizing(() => {
|
|
10525
10525
|
if (n) {
|
|
10526
10526
|
const i = e.api.above({ at: a.at });
|
|
10527
10527
|
if (i) {
|
|
@@ -10557,8 +10557,8 @@ var hA = (e, t) => !!e.api.node(t), bA = (e, t) => {
|
|
|
10557
10557
|
}), e.marks = null;
|
|
10558
10558
|
} else
|
|
10559
10559
|
me.insertText(e, t, n);
|
|
10560
|
-
}, hD = (e, t) => Kb(e,
|
|
10561
|
-
t =
|
|
10560
|
+
}, hD = (e, t) => Kb(e, tr(e, t)), bD = (e, t = {}) => {
|
|
10561
|
+
t = tr(e, t), e.tf.withoutNormalizing(() => {
|
|
10562
10562
|
let { at: r = e.selection, match: n } = t;
|
|
10563
10563
|
const {
|
|
10564
10564
|
hanging: a = !1,
|
|
@@ -10623,7 +10623,7 @@ var hA = (e, t) => !!e.api.node(t), bA = (e, t) => {
|
|
|
10623
10623
|
}), N && N.unref();
|
|
10624
10624
|
});
|
|
10625
10625
|
}, vD = (e, { children: t, fromIndex: r = 0, ...n }) => {
|
|
10626
|
-
const a =
|
|
10626
|
+
const a = tr(e, n);
|
|
10627
10627
|
let i = !1;
|
|
10628
10628
|
if (t) {
|
|
10629
10629
|
if (!a.at) return i;
|
|
@@ -10644,7 +10644,7 @@ var hA = (e, t) => !!e.api.node(t), bA = (e, t) => {
|
|
|
10644
10644
|
}, TD = (e, t) => {
|
|
10645
10645
|
Hb(e, t);
|
|
10646
10646
|
}, CD = (e, { children: t, previousEmptyBlock: r, ...n } = {}) => {
|
|
10647
|
-
const a =
|
|
10647
|
+
const a = tr(e, n);
|
|
10648
10648
|
e.tf.withoutNormalizing(() => {
|
|
10649
10649
|
if (r) {
|
|
10650
10650
|
const i = e.api.block({ at: a.at });
|
|
@@ -10665,7 +10665,7 @@ var hA = (e, t) => !!e.api.node(t), bA = (e, t) => {
|
|
|
10665
10665
|
e.tf.removeNodes({ ...a, at: i });
|
|
10666
10666
|
return;
|
|
10667
10667
|
}
|
|
10668
|
-
return Xb(e,
|
|
10668
|
+
return Xb(e, tr(e, a));
|
|
10669
10669
|
});
|
|
10670
10670
|
}, yD = (e, t, { marks: r, ...n } = {}) => {
|
|
10671
10671
|
if (r) {
|
|
@@ -10694,7 +10694,7 @@ var hA = (e, t) => !!e.api.node(t), bA = (e, t) => {
|
|
|
10694
10694
|
return Zd(
|
|
10695
10695
|
e,
|
|
10696
10696
|
t,
|
|
10697
|
-
|
|
10697
|
+
tr(e, {
|
|
10698
10698
|
...n,
|
|
10699
10699
|
at: a,
|
|
10700
10700
|
match: i,
|
|
@@ -10706,20 +10706,20 @@ var hA = (e, t) => !!e.api.node(t), bA = (e, t) => {
|
|
|
10706
10706
|
return Zd(
|
|
10707
10707
|
e,
|
|
10708
10708
|
t,
|
|
10709
|
-
|
|
10709
|
+
tr(e, n)
|
|
10710
10710
|
);
|
|
10711
10711
|
}, RD = (e, t, r) => {
|
|
10712
10712
|
Vb(e, t, r);
|
|
10713
10713
|
}, ND = (e, t) => {
|
|
10714
10714
|
$b(e, t);
|
|
10715
|
-
}, OD = (e, t) => jb(e,
|
|
10715
|
+
}, OD = (e, t) => jb(e, tr(e, t)), AD = (e, t, r) => Zb(
|
|
10716
10716
|
e,
|
|
10717
10717
|
t,
|
|
10718
|
-
|
|
10718
|
+
tr(e, r)
|
|
10719
10719
|
), DD = (e, t) => {
|
|
10720
|
-
Jb(e,
|
|
10720
|
+
Jb(e, tr(e, t));
|
|
10721
10721
|
}, ID = (e, t, { children: r, ...n } = {}) => {
|
|
10722
|
-
const a =
|
|
10722
|
+
const a = tr(e, n);
|
|
10723
10723
|
if (a.at && (a.at = e.api.unhangRange(a.at, a)), r) {
|
|
10724
10724
|
const i = e.api.path(a.at);
|
|
10725
10725
|
if (!i) return;
|
|
@@ -11412,7 +11412,7 @@ function VD() {
|
|
|
11412
11412
|
return Nu = r, Nu;
|
|
11413
11413
|
}
|
|
11414
11414
|
var $D = VD();
|
|
11415
|
-
const
|
|
11415
|
+
const ar = /* @__PURE__ */ en($D), WD = Symbol(), Hv = Symbol(), Wa = "a", ai = "w";
|
|
11416
11416
|
let KD = (e, t) => new Proxy(e, t);
|
|
11417
11417
|
const e_ = Object.getPrototypeOf, oE = /* @__PURE__ */ new WeakMap(), QD = (e) => e && (oE.has(e) ? oE.get(e) : e_(e) === Object.prototype || e_(e) === Array.prototype), vs = (e) => typeof e == "object" && e !== null, XD = (e) => {
|
|
11418
11418
|
if (Array.isArray(e)) return Array.from(e);
|
|
@@ -12246,7 +12246,7 @@ function Qv(e, t) {
|
|
|
12246
12246
|
} else
|
|
12247
12247
|
throw new Error("Please check mark() to ensure that it is a stable marker draftable function.");
|
|
12248
12248
|
}
|
|
12249
|
-
function
|
|
12249
|
+
function sr(e) {
|
|
12250
12250
|
e.copy || (e.copy = Qv(e.original, e.options));
|
|
12251
12251
|
}
|
|
12252
12252
|
function ei(e) {
|
|
@@ -12355,7 +12355,7 @@ function Xv(e, t, r) {
|
|
|
12355
12355
|
var o;
|
|
12356
12356
|
if (Zn(s)) {
|
|
12357
12357
|
const l = Ke(s);
|
|
12358
|
-
|
|
12358
|
+
sr(l);
|
|
12359
12359
|
const c = !((o = l.assignedMap) === null || o === void 0) && o.size || l.operated ? l.copy : l.original;
|
|
12360
12360
|
Ti(n ? a : e, i, c);
|
|
12361
12361
|
} else
|
|
@@ -12510,18 +12510,18 @@ const Ts = (e, t, r = !1) => {
|
|
|
12510
12510
|
},
|
|
12511
12511
|
set(e, t) {
|
|
12512
12512
|
const r = Ke(this), n = gr(r);
|
|
12513
|
-
return (!n.has(e) || !fn(n.get(e), t)) && (
|
|
12513
|
+
return (!n.has(e) || !fn(n.get(e), t)) && (sr(r), Xr(r), r.assignedMap.set(e, !0), r.copy.set(e, t), _m(r, e, t, mi)), this;
|
|
12514
12514
|
},
|
|
12515
12515
|
delete(e) {
|
|
12516
12516
|
if (!this.has(e))
|
|
12517
12517
|
return !1;
|
|
12518
12518
|
const t = Ke(this);
|
|
12519
|
-
return
|
|
12519
|
+
return sr(t), Xr(t), t.original.has(e) ? t.assignedMap.set(e, !1) : t.assignedMap.delete(e), t.copy.delete(e), !0;
|
|
12520
12520
|
},
|
|
12521
12521
|
clear() {
|
|
12522
12522
|
const e = Ke(this);
|
|
12523
12523
|
if (this.size) {
|
|
12524
|
-
|
|
12524
|
+
sr(e), Xr(e), e.assignedMap = /* @__PURE__ */ new Map();
|
|
12525
12525
|
for (const [t] of e.original)
|
|
12526
12526
|
e.assignedMap.set(t, !1);
|
|
12527
12527
|
e.copy.clear();
|
|
@@ -12545,7 +12545,7 @@ const Ts = (e, t, r = !1) => {
|
|
|
12545
12545
|
finalities: n.finalities,
|
|
12546
12546
|
options: n.options
|
|
12547
12547
|
});
|
|
12548
|
-
return
|
|
12548
|
+
return sr(n), n.copy.set(e, s), s;
|
|
12549
12549
|
},
|
|
12550
12550
|
keys() {
|
|
12551
12551
|
return gr(Ke(this)).keys();
|
|
@@ -12612,19 +12612,19 @@ const Ts = (e, t, r = !1) => {
|
|
|
12612
12612
|
const t = Ke(this);
|
|
12613
12613
|
if (t.setMap.has(e))
|
|
12614
12614
|
return !0;
|
|
12615
|
-
|
|
12615
|
+
sr(t);
|
|
12616
12616
|
const r = Ke(e);
|
|
12617
12617
|
return !!(r && t.setMap.has(r.original));
|
|
12618
12618
|
},
|
|
12619
12619
|
add(e) {
|
|
12620
12620
|
const t = Ke(this);
|
|
12621
|
-
return this.has(e) || (
|
|
12621
|
+
return this.has(e) || (sr(t), Xr(t), t.assignedMap.set(e, !0), t.setMap.set(e, e), _m(t, e, e, mi)), this;
|
|
12622
12622
|
},
|
|
12623
12623
|
delete(e) {
|
|
12624
12624
|
if (!this.has(e))
|
|
12625
12625
|
return !1;
|
|
12626
12626
|
const t = Ke(this);
|
|
12627
|
-
|
|
12627
|
+
sr(t), Xr(t);
|
|
12628
12628
|
const r = Ke(e);
|
|
12629
12629
|
return r && t.setMap.has(r.original) ? (t.assignedMap.set(r.original, !1), t.setMap.delete(r.original)) : (!r && t.setMap.has(e) ? t.assignedMap.set(e, !1) : t.assignedMap.delete(e), t.setMap.delete(e));
|
|
12630
12630
|
},
|
|
@@ -12632,14 +12632,14 @@ const Ts = (e, t, r = !1) => {
|
|
|
12632
12632
|
if (!this.size)
|
|
12633
12633
|
return;
|
|
12634
12634
|
const e = Ke(this);
|
|
12635
|
-
|
|
12635
|
+
sr(e), Xr(e);
|
|
12636
12636
|
for (const t of e.original)
|
|
12637
12637
|
e.assignedMap.set(t, !1);
|
|
12638
12638
|
e.setMap.clear();
|
|
12639
12639
|
},
|
|
12640
12640
|
values() {
|
|
12641
12641
|
const e = Ke(this);
|
|
12642
|
-
|
|
12642
|
+
sr(e);
|
|
12643
12643
|
const t = e.setMap.keys();
|
|
12644
12644
|
return {
|
|
12645
12645
|
[Symbol.iterator]: () => this.values(),
|
|
@@ -12648,7 +12648,7 @@ const Ts = (e, t, r = !1) => {
|
|
|
12648
12648
|
},
|
|
12649
12649
|
entries() {
|
|
12650
12650
|
const e = Ke(this);
|
|
12651
|
-
|
|
12651
|
+
sr(e);
|
|
12652
12652
|
const t = e.setMap.keys();
|
|
12653
12653
|
return {
|
|
12654
12654
|
[Symbol.iterator]: () => this.entries(),
|
|
@@ -12733,7 +12733,7 @@ const DI = Reflect.ownKeys(Cs), jv = /* @__PURE__ */ new WeakSet(), Zv = {
|
|
|
12733
12733
|
if (e.options.strict && Ts(l, e.options), e.finalized || !Yr(l, e.options))
|
|
12734
12734
|
return l;
|
|
12735
12735
|
if (l === xu(e.original, t)) {
|
|
12736
|
-
if (
|
|
12736
|
+
if (sr(e), e.copy[t] = mm({
|
|
12737
12737
|
original: e.original[t],
|
|
12738
12738
|
parentDraft: e,
|
|
12739
12739
|
key: e.type === 1 ? Number(t) : t,
|
|
@@ -12741,7 +12741,7 @@ const DI = Reflect.ownKeys(Cs), jv = /* @__PURE__ */ new WeakSet(), Zv = {
|
|
|
12741
12741
|
options: e.options
|
|
12742
12742
|
}), typeof s == "function") {
|
|
12743
12743
|
const c = Ke(e.copy[t]);
|
|
12744
|
-
return
|
|
12744
|
+
return sr(c), Xr(c), c.copy;
|
|
12745
12745
|
}
|
|
12746
12746
|
return e.copy[t];
|
|
12747
12747
|
}
|
|
@@ -12758,7 +12758,7 @@ const DI = Reflect.ownKeys(Cs), jv = /* @__PURE__ */ new WeakSet(), Zv = {
|
|
|
12758
12758
|
if (i != null && i.set)
|
|
12759
12759
|
return i.set.call(e.proxy, r), !0;
|
|
12760
12760
|
const s = xu(gr(e), t), o = Ke(s);
|
|
12761
|
-
return o && fn(o.original, r) ? (e.copy[t] = r, e.assignedMap = (n = e.assignedMap) !== null && n !== void 0 ? n : /* @__PURE__ */ new Map(), e.assignedMap.set(t, !1), !0) : (fn(r, s) && (r !== void 0 || ii(e.original, t)) || (
|
|
12761
|
+
return o && fn(o.original, r) ? (e.copy[t] = r, e.assignedMap = (n = e.assignedMap) !== null && n !== void 0 ? n : /* @__PURE__ */ new Map(), e.assignedMap.set(t, !1), !0) : (fn(r, s) && (r !== void 0 || ii(e.original, t)) || (sr(e), Xr(e), ii(e.original, t) && fn(r, e.original[t]) ? e.assignedMap.delete(t) : e.assignedMap.set(t, !0), e.copy[t] = r, _m(e, t, r, mi)), !0);
|
|
12762
12762
|
},
|
|
12763
12763
|
has(e, t) {
|
|
12764
12764
|
return t in gr(e);
|
|
@@ -12786,7 +12786,7 @@ const DI = Reflect.ownKeys(Cs), jv = /* @__PURE__ */ new WeakSet(), Zv = {
|
|
|
12786
12786
|
},
|
|
12787
12787
|
deleteProperty(e, t) {
|
|
12788
12788
|
var r;
|
|
12789
|
-
return e.type === 1 ? Zv.set.call(this, e, t, void 0, e.proxy) : (xu(e.original, t) !== void 0 || t in e.original ? (
|
|
12789
|
+
return e.type === 1 ? Zv.set.call(this, e, t, void 0, e.proxy) : (xu(e.original, t) !== void 0 || t in e.original ? (sr(e), Xr(e), e.assignedMap.set(t, !1)) : (e.assignedMap = (r = e.assignedMap) !== null && r !== void 0 ? r : /* @__PURE__ */ new Map(), e.assignedMap.delete(t)), e.copy && delete e.copy[t], !0);
|
|
12790
12790
|
}
|
|
12791
12791
|
};
|
|
12792
12792
|
function mm(e) {
|
|
@@ -14028,7 +14028,7 @@ var oT = (e, t) => {
|
|
|
14028
14028
|
);
|
|
14029
14029
|
}), r.__extensions = []);
|
|
14030
14030
|
const n = (i = r.inject) == null ? void 0 : i.targetPluginToInject, a = (s = r.inject) == null ? void 0 : s.targetPlugins;
|
|
14031
|
-
return n && a && a.length > 0 && (r.inject = r.inject || {}, r.inject.plugins =
|
|
14031
|
+
return n && a && a.length > 0 && (r.inject = r.inject || {}, r.inject.plugins = ar(
|
|
14032
14032
|
{},
|
|
14033
14033
|
r.inject.plugins,
|
|
14034
14034
|
Object.fromEntries(
|
|
@@ -14090,7 +14090,7 @@ var kw = (e) => {
|
|
|
14090
14090
|
}), t.__apiExtensions && t.__apiExtensions.length > 0 && (t.__apiExtensions.forEach(
|
|
14091
14091
|
({ extension: r, isOverride: n, isPluginSpecific: a, isTransform: i }) => {
|
|
14092
14092
|
const s = r(wt(e, t));
|
|
14093
|
-
n ? (s.api && (
|
|
14093
|
+
n ? (s.api && (ar(e.api, s.api), ar(t.api, s.api), Ag(e, e.api)), s.transforms && (ar(e.transforms, s.transforms), ar(t.transforms, s.transforms), Og(e, s.transforms))) : i ? a ? (e.transforms[t.key] || (e.transforms[t.key] = {}), t.transforms[t.key] || (t.transforms[t.key] = {}), ar(e.transforms[t.key], s), ar(t.transforms[t.key], s)) : (ar(e.transforms, s), ar(t.transforms, s), Og(e, s)) : a ? (e.api[t.key] || (e.api[t.key] = {}), t.api[t.key] || (t.api[t.key] = {}), ar(e.api[t.key], s), ar(t.api[t.key], s)) : (ar(e.api, s), ar(t.api, s), Ag(e, e.api));
|
|
14094
14094
|
}
|
|
14095
14095
|
), delete t.__apiExtensions);
|
|
14096
14096
|
}, Gw = (e) => {
|
|
@@ -14684,7 +14684,7 @@ var pT = (e) => e.dataset.slateVoid === "true", px = (e) => e.dataset.slateNode
|
|
|
14684
14684
|
};
|
|
14685
14685
|
Et("bold"), Et("compose"), Et("deleteBackward"), Et("deleteForward"), Et("deleteLineBackward"), Et("deleteLineForward"), Et("deleteWordBackward"), Et("deleteWordForward"), Et("extendBackward"), Et("extendForward"), Et("extendLineBackward"), Et("extendLineForward"), Et("italic"), Et("moveBackward"), Et("moveForward"), Et("moveLineBackward"), Et("moveLineForward"), Et("moveWordBackward"), Et("moveWordForward"), Et("redo"), Et("insertSoftBreak"), Et("splitBlock"), Et("transposeCharacter"), Et("undo");
|
|
14686
14686
|
var Cx = (e) => {
|
|
14687
|
-
lT({ ...e, apply:
|
|
14687
|
+
lT({ ...e, apply: ar });
|
|
14688
14688
|
}, yx = class extends Error {
|
|
14689
14689
|
constructor(t, r = "DEFAULT") {
|
|
14690
14690
|
super(`[${r}] ${t}`), this.type = r, this.name = "PlateError";
|
|
@@ -16139,7 +16139,7 @@ var AT = (e) => e.dataset.slateVoid === "true", AM = (e) => e.dataset.slateNode
|
|
|
16139
16139
|
};
|
|
16140
16140
|
St("bold"), St("compose"), St("deleteBackward"), St("deleteForward"), St("deleteLineBackward"), St("deleteLineForward"), St("deleteWordBackward"), St("deleteWordForward"), St("extendBackward"), St("extendForward"), St("extendLineBackward"), St("extendLineForward"), St("italic"), St("moveBackward"), St("moveForward"), St("moveLineBackward"), St("moveLineForward"), St("moveWordBackward"), St("moveWordForward"), St("redo"), St("insertSoftBreak"), St("splitBlock"), St("transposeCharacter"), St("undo");
|
|
16141
16141
|
var BM = (e) => {
|
|
16142
|
-
CT({ ...e, apply:
|
|
16142
|
+
CT({ ...e, apply: ar });
|
|
16143
16143
|
}, FM = class extends Error {
|
|
16144
16144
|
constructor(e, t = "DEFAULT") {
|
|
16145
16145
|
super(`[${t}] ${e}`), this.type = t, this.name = "PlateError";
|
|
@@ -18614,7 +18614,7 @@ class An {
|
|
|
18614
18614
|
return this.size >= 2;
|
|
18615
18615
|
}
|
|
18616
18616
|
}
|
|
18617
|
-
var ym = 0, ws = 1, ba = 2, En = 3, gi = 4, Ir = 5, Ra = 6,
|
|
18617
|
+
var ym = 0, ws = 1, ba = 2, En = 3, gi = 4, Ir = 5, Ra = 6, or = 7, Wr = [new An(ym, 0, !1), new An(ws, 0, !0), new An(ba, 1, !1), new An(En, 1, !0), new An(gi, 2, !1), new An(Ir, 2, !0), new An(Ra, 3, !1), new An(or, 3, !0)], h4 = [gi, Ir, gi, Ir, Ra, or, Ra, or], b4 = [Ir, Ir, Ir, Ir, or, or, or, or], v4 = [ba, En, gi, Ir, Ra, or, Ra, or], T4 = [En, En, Ir, Ir, or, or, or, or], C4 = [ws, ws, En, En, Ir, Ir, or, or], y4 = [ym, ws, ba, En, ba, En, ba, En], Le = {
|
|
18618
18618
|
DISPLAY: Wr[ym],
|
|
18619
18619
|
TEXT: Wr[ba],
|
|
18620
18620
|
SCRIPT: Wr[gi],
|
|
@@ -22206,9 +22206,9 @@ f(X, M, F, "Z", "ℤ");
|
|
|
22206
22206
|
f(E, v, Ie, "h", "ℎ");
|
|
22207
22207
|
f(X, v, Ie, "h", "ℎ");
|
|
22208
22208
|
var Pe = "";
|
|
22209
|
-
for (var
|
|
22210
|
-
var Rt = xs.charAt(
|
|
22211
|
-
Pe = String.fromCharCode(55349, 56320 +
|
|
22209
|
+
for (var nr = 0; nr < xs.length; nr++) {
|
|
22210
|
+
var Rt = xs.charAt(nr);
|
|
22211
|
+
Pe = String.fromCharCode(55349, 56320 + nr), f(E, v, Ie, Rt, Pe), f(X, v, F, Rt, Pe), Pe = String.fromCharCode(55349, 56372 + nr), f(E, v, Ie, Rt, Pe), f(X, v, F, Rt, Pe), Pe = String.fromCharCode(55349, 56424 + nr), f(E, v, Ie, Rt, Pe), f(X, v, F, Rt, Pe), Pe = String.fromCharCode(55349, 56580 + nr), f(E, v, Ie, Rt, Pe), f(X, v, F, Rt, Pe), Pe = String.fromCharCode(55349, 56684 + nr), f(E, v, Ie, Rt, Pe), f(X, v, F, Rt, Pe), Pe = String.fromCharCode(55349, 56736 + nr), f(E, v, Ie, Rt, Pe), f(X, v, F, Rt, Pe), Pe = String.fromCharCode(55349, 56788 + nr), f(E, v, Ie, Rt, Pe), f(X, v, F, Rt, Pe), Pe = String.fromCharCode(55349, 56840 + nr), f(E, v, Ie, Rt, Pe), f(X, v, F, Rt, Pe), Pe = String.fromCharCode(55349, 56944 + nr), f(E, v, Ie, Rt, Pe), f(X, v, F, Rt, Pe), nr < 26 && (Pe = String.fromCharCode(55349, 56632 + nr), f(E, v, Ie, Rt, Pe), f(X, v, F, Rt, Pe), Pe = String.fromCharCode(55349, 56476 + nr), f(E, v, Ie, Rt, Pe), f(X, v, F, Rt, Pe));
|
|
22212
22212
|
}
|
|
22213
22213
|
Pe = "𝕜";
|
|
22214
22214
|
f(E, v, Ie, "k", Pe);
|
|
@@ -29278,12 +29278,12 @@ function TP() {
|
|
|
29278
29278
|
return Rn;
|
|
29279
29279
|
Ht.set(x, Ot), C(x) ? x.forEach(function(fr) {
|
|
29280
29280
|
Ot.add(O(fr, H, Be, fr, x, Ht));
|
|
29281
|
-
}) : h(x) && x.forEach(function(fr,
|
|
29282
|
-
Ot.set(
|
|
29281
|
+
}) : h(x) && x.forEach(function(fr, rr) {
|
|
29282
|
+
Ot.set(rr, O(fr, H, Be, rr, x, Ht));
|
|
29283
29283
|
});
|
|
29284
29284
|
var Rr = Zt ? jt ? u : c : jt ? y : D, Bn = Lr ? void 0 : Rr(x);
|
|
29285
|
-
return t(Bn || x, function(fr,
|
|
29286
|
-
Bn && (
|
|
29285
|
+
return t(Bn || x, function(fr, rr) {
|
|
29286
|
+
Bn && (rr = fr, fr = x[rr]), r(Ot, rr, O(fr, H, Be, rr, x, Ht));
|
|
29287
29287
|
}), Ot;
|
|
29288
29288
|
}
|
|
29289
29289
|
return Id = O, Id;
|
|
@@ -29546,7 +29546,7 @@ var pt = (e, t) => {
|
|
|
29546
29546
|
break;
|
|
29547
29547
|
}
|
|
29548
29548
|
return r === "cell" ? y : [[T, g]];
|
|
29549
|
-
},
|
|
29549
|
+
}, lr = (e, { format: t = "table", ...r } = {}) => {
|
|
29550
29550
|
const { api: n } = e.getPlugin({ key: "table" }), a = e.api.edgeBlocks({
|
|
29551
29551
|
match: {
|
|
29552
29552
|
type: Bt(e)
|
|
@@ -29592,7 +29592,7 @@ var pt = (e, t) => {
|
|
|
29592
29592
|
});
|
|
29593
29593
|
!s || !o || a.id === s[0].id && o[0].id === i.id && MP(e);
|
|
29594
29594
|
}, MP = (e) => {
|
|
29595
|
-
const t =
|
|
29595
|
+
const t = lr(e, {
|
|
29596
29596
|
format: "cell"
|
|
29597
29597
|
}), r = [];
|
|
29598
29598
|
t.forEach(([n, a]) => {
|
|
@@ -29690,7 +29690,7 @@ var pt = (e, t) => {
|
|
|
29690
29690
|
}
|
|
29691
29691
|
});
|
|
29692
29692
|
}, qC = (e, [t, r]) => {
|
|
29693
|
-
const { api: n } = nt(e, dt), a = kP(t), i =
|
|
29693
|
+
const { api: n } = nt(e, dt), a = kP(t), i = lr(e, {
|
|
29694
29694
|
format: "cell"
|
|
29695
29695
|
}), s = ah(i[0][1]);
|
|
29696
29696
|
if (s === null) return;
|
|
@@ -29975,7 +29975,7 @@ var pt = (e, t) => {
|
|
|
29975
29975
|
}
|
|
29976
29976
|
});
|
|
29977
29977
|
}, UP = (e) => {
|
|
29978
|
-
const { api: t } = nt(e, dt), r =
|
|
29978
|
+
const { api: t } = nt(e, dt), r = lr(e, {
|
|
29979
29979
|
format: "cell"
|
|
29980
29980
|
});
|
|
29981
29981
|
e.tf.withoutNormalizing(() => {
|
|
@@ -30018,7 +30018,7 @@ var pt = (e, t) => {
|
|
|
30018
30018
|
e.tf.insertNodes(l, { at: r[0][1] });
|
|
30019
30019
|
}), e.tf.select(e.api.end(r[0][1]));
|
|
30020
30020
|
}, GP = (e) => {
|
|
30021
|
-
const { api: t } = nt(e, dt), r = e.getType(qt), n =
|
|
30021
|
+
const { api: t } = nt(e, dt), r = e.getType(qt), n = lr(e, { format: "cell" }), [[a, i]] = n;
|
|
30022
30022
|
e.tf.withoutNormalizing(() => {
|
|
30023
30023
|
const s = (S) => ({
|
|
30024
30024
|
...t.create.tableCell({
|
|
@@ -30306,7 +30306,7 @@ var pt = (e, t) => {
|
|
|
30306
30306
|
reverse: a
|
|
30307
30307
|
} = {}) => {
|
|
30308
30308
|
if (r) {
|
|
30309
|
-
const s =
|
|
30309
|
+
const s = lr(e, { at: t, format: "cell" }), o = n ? 0 : 1;
|
|
30310
30310
|
if (s.length > o) {
|
|
30311
30311
|
const [, l] = s[0], [, c] = s.at(-1), u = [...l], d = [...c];
|
|
30312
30312
|
switch (r) {
|
|
@@ -30489,7 +30489,7 @@ var pt = (e, t) => {
|
|
|
30489
30489
|
},
|
|
30490
30490
|
deleteFragment(i) {
|
|
30491
30491
|
if (e.api.isAt({ block: !0, match: (s) => s.type === a })) {
|
|
30492
|
-
const s =
|
|
30492
|
+
const s = lr(e, { format: "cell" });
|
|
30493
30493
|
if (s.length > 1) {
|
|
30494
30494
|
e.tf.withoutNormalizing(() => {
|
|
30495
30495
|
s.forEach(([, o]) => {
|
|
@@ -30527,7 +30527,7 @@ var pt = (e, t) => {
|
|
|
30527
30527
|
i.push(..._[0].children);
|
|
30528
30528
|
return;
|
|
30529
30529
|
} else {
|
|
30530
|
-
const d =
|
|
30530
|
+
const d = lr(r);
|
|
30531
30531
|
if (d.length > 0) {
|
|
30532
30532
|
i.push(d[0][0]);
|
|
30533
30533
|
return;
|
|
@@ -30554,7 +30554,7 @@ var pt = (e, t) => {
|
|
|
30554
30554
|
if (!o && w_(t, {
|
|
30555
30555
|
at: (l = t.selection) == null ? void 0 : l.anchor
|
|
30556
30556
|
})) {
|
|
30557
|
-
const _ =
|
|
30557
|
+
const _ = lr(t, {
|
|
30558
30558
|
format: "cell"
|
|
30559
30559
|
});
|
|
30560
30560
|
if (_.length > 1) {
|
|
@@ -30577,7 +30577,7 @@ var pt = (e, t) => {
|
|
|
30577
30577
|
if (w_(t, {
|
|
30578
30578
|
at: (c = t.selection) == null ? void 0 : c.anchor
|
|
30579
30579
|
})) {
|
|
30580
|
-
const [_] =
|
|
30580
|
+
const [_] = lr(t, {
|
|
30581
30581
|
at: (u = t.selection) == null ? void 0 : u.anchor,
|
|
30582
30582
|
format: "cell"
|
|
30583
30583
|
});
|
|
@@ -30643,7 +30643,7 @@ var pt = (e, t) => {
|
|
|
30643
30643
|
var a;
|
|
30644
30644
|
e.api.isExpanded() && w_(e, {
|
|
30645
30645
|
at: (a = e.selection) == null ? void 0 : a.anchor
|
|
30646
|
-
}) &&
|
|
30646
|
+
}) && lr(e, {
|
|
30647
30647
|
format: "cell"
|
|
30648
30648
|
}).length > 1 && e.tf.collapse({
|
|
30649
30649
|
edge: "focus"
|
|
@@ -30659,7 +30659,7 @@ var pt = (e, t) => {
|
|
|
30659
30659
|
marks() {
|
|
30660
30660
|
const { selection: a } = t;
|
|
30661
30661
|
if (!a || t.api.isCollapsed()) return e();
|
|
30662
|
-
const i =
|
|
30662
|
+
const i = lr(t, { format: "cell" });
|
|
30663
30663
|
if (i.length === 0) return e();
|
|
30664
30664
|
const s = {};
|
|
30665
30665
|
return i.forEach(([o, l]) => {
|
|
@@ -30680,7 +30680,7 @@ var pt = (e, t) => {
|
|
|
30680
30680
|
addMark(a, i) {
|
|
30681
30681
|
const { selection: s } = t;
|
|
30682
30682
|
if (!s || t.api.isCollapsed()) return r(a, i);
|
|
30683
|
-
const o =
|
|
30683
|
+
const o = lr(t, { format: "cell" });
|
|
30684
30684
|
if (o.length <= 1) return r(a, i);
|
|
30685
30685
|
o.forEach(([l, c]) => {
|
|
30686
30686
|
t.tf.setNodes(
|
|
@@ -30699,7 +30699,7 @@ var pt = (e, t) => {
|
|
|
30699
30699
|
removeMark(a) {
|
|
30700
30700
|
const { selection: i } = t;
|
|
30701
30701
|
if (!i || t.api.isCollapsed()) return n(a);
|
|
30702
|
-
const s =
|
|
30702
|
+
const s = lr(t, { format: "cell" });
|
|
30703
30703
|
if (s.length === 0) return n(a);
|
|
30704
30704
|
s.forEach(([o, l]) => {
|
|
30705
30705
|
t.tf.unsetNodes(a, {
|
|
@@ -30807,9 +30807,9 @@ var pt = (e, t) => {
|
|
|
30807
30807
|
transforms: {
|
|
30808
30808
|
setFragmentData(a, i) {
|
|
30809
30809
|
var T;
|
|
30810
|
-
const s = (T =
|
|
30810
|
+
const s = (T = lr(t, {
|
|
30811
30811
|
format: "table"
|
|
30812
|
-
})) == null ? void 0 : T[0], o =
|
|
30812
|
+
})) == null ? void 0 : T[0], o = lr(t, {
|
|
30813
30813
|
format: "cell"
|
|
30814
30814
|
}), l = t.selection;
|
|
30815
30815
|
if (!s || !l) {
|
|
@@ -75818,7 +75818,7 @@ function A7(e) {
|
|
|
75818
75818
|
const t = e[e.length - 1];
|
|
75819
75819
|
return typeof t == "object" && t.constructor === Object ? (e.splice(e.length - 1, 1), t) : {};
|
|
75820
75820
|
}
|
|
75821
|
-
function
|
|
75821
|
+
function ir(...e) {
|
|
75822
75822
|
return "(" + (A7(e).capture ? "" : "?:") + e.map((n) => ZC(n)).join("|") + ")";
|
|
75823
75823
|
}
|
|
75824
75824
|
const Ym = (e) => ot(
|
|
@@ -76039,7 +76039,7 @@ const Ym = (e) => ot(
|
|
|
76039
76039
|
"withVaList",
|
|
76040
76040
|
"withoutActuallyEscaping",
|
|
76041
76041
|
"zip"
|
|
76042
|
-
], JC =
|
|
76042
|
+
], JC = ir(
|
|
76043
76043
|
/[/=\-+!*%<>&|^~?]/,
|
|
76044
76044
|
/[\u00A1-\u00A7]/,
|
|
76045
76045
|
/[\u00A9\u00AB]/,
|
|
@@ -76058,7 +76058,7 @@ const Ym = (e) => ot(
|
|
|
76058
76058
|
/[\u3001-\u3003]/,
|
|
76059
76059
|
/[\u3008-\u3020]/,
|
|
76060
76060
|
/[\u3030]/
|
|
76061
|
-
), ey =
|
|
76061
|
+
), ey = ir(
|
|
76062
76062
|
JC,
|
|
76063
76063
|
/[\u0300-\u036F]/,
|
|
76064
76064
|
/[\u1DC0-\u1DFF]/,
|
|
@@ -76067,7 +76067,7 @@ const Ym = (e) => ot(
|
|
|
76067
76067
|
/[\uFE20-\uFE2F]/
|
|
76068
76068
|
// TODO: The following characters are also allowed, but the regex isn't supported yet.
|
|
76069
76069
|
// /[\u{E0100}-\u{E01EF}]/u
|
|
76070
|
-
), Pd = ot(JC, ey, "*"), ty =
|
|
76070
|
+
), Pd = ot(JC, ey, "*"), ty = ir(
|
|
76071
76071
|
/[a-zA-Z_]/,
|
|
76072
76072
|
/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,
|
|
76073
76073
|
/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,
|
|
@@ -76085,14 +76085,14 @@ const Ym = (e) => ot(
|
|
|
76085
76085
|
// /[\u{50000}-\u{5FFFD}\u{60000-\u{6FFFD}\u{70000}-\u{7FFFD}\u{80000}-\u{8FFFD}]/u,
|
|
76086
76086
|
// /[\u{90000}-\u{9FFFD}\u{A0000-\u{AFFFD}\u{B0000}-\u{BFFFD}\u{C0000}-\u{CFFFD}]/u,
|
|
76087
76087
|
// /[\u{D0000}-\u{DFFFD}\u{E0000-\u{EFFFD}]/u
|
|
76088
|
-
), Bs =
|
|
76088
|
+
), Bs = ir(
|
|
76089
76089
|
ty,
|
|
76090
76090
|
/\d/,
|
|
76091
76091
|
/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/
|
|
76092
76092
|
), $r = ot(ty, Bs, "*"), ns = ot(/[A-Z]/, Bs, "*"), M7 = [
|
|
76093
76093
|
"attached",
|
|
76094
76094
|
"autoclosure",
|
|
76095
|
-
ot(/convention\(/,
|
|
76095
|
+
ot(/convention\(/, ir("swift", "block", "c"), /\)/),
|
|
76096
76096
|
"discardableResult",
|
|
76097
76097
|
"dynamicCallable",
|
|
76098
76098
|
"dynamicMemberLookup",
|
|
@@ -76151,20 +76151,20 @@ function P7(e) {
|
|
|
76151
76151
|
], a = {
|
|
76152
76152
|
match: [
|
|
76153
76153
|
/\./,
|
|
76154
|
-
|
|
76154
|
+
ir(...D7, ...lh)
|
|
76155
76155
|
],
|
|
76156
76156
|
className: { 2: "keyword" }
|
|
76157
76157
|
}, i = {
|
|
76158
76158
|
// Consume .keyword to prevent highlighting properties and methods as keywords.
|
|
76159
|
-
match: ot(/\./,
|
|
76159
|
+
match: ot(/\./, ir(...Ld)),
|
|
76160
76160
|
relevance: 0
|
|
76161
76161
|
}, s = Ld.filter((O) => typeof O == "string").concat(["_|0"]), o = Ld.filter((O) => typeof O != "string").concat(I7).map(Ym), l = { variants: [
|
|
76162
76162
|
{
|
|
76163
76163
|
className: "keyword",
|
|
76164
|
-
match:
|
|
76164
|
+
match: ir(...o, ...lh)
|
|
76165
76165
|
}
|
|
76166
76166
|
] }, c = {
|
|
76167
|
-
$pattern:
|
|
76167
|
+
$pattern: ir(
|
|
76168
76168
|
/\b\w+/,
|
|
76169
76169
|
// regular keywords
|
|
76170
76170
|
/#\w+/
|
|
@@ -76178,11 +76178,11 @@ function P7(e) {
|
|
|
76178
76178
|
l
|
|
76179
76179
|
], d = {
|
|
76180
76180
|
// Consume .built_in to prevent highlighting properties and methods.
|
|
76181
|
-
match: ot(/\./,
|
|
76181
|
+
match: ot(/\./, ir(...uh)),
|
|
76182
76182
|
relevance: 0
|
|
76183
76183
|
}, _ = {
|
|
76184
76184
|
className: "built_in",
|
|
76185
|
-
match: ot(/\b/,
|
|
76185
|
+
match: ot(/\b/, ir(...uh), /(?=\()/)
|
|
76186
76186
|
}, m = [
|
|
76187
76187
|
d,
|
|
76188
76188
|
_
|
|
@@ -76320,7 +76320,7 @@ function P7(e) {
|
|
|
76320
76320
|
] }
|
|
76321
76321
|
}, re = {
|
|
76322
76322
|
scope: "keyword",
|
|
76323
|
-
match: ot(/@/,
|
|
76323
|
+
match: ot(/@/, ir(...M7), Qa(ir(/\(/, /\s+/)))
|
|
76324
76324
|
}, ge = {
|
|
76325
76325
|
scope: "meta",
|
|
76326
76326
|
match: ot(/@/, $r)
|
|
@@ -76404,7 +76404,7 @@ function P7(e) {
|
|
|
76404
76404
|
te
|
|
76405
76405
|
]
|
|
76406
76406
|
}, De = {
|
|
76407
|
-
begin:
|
|
76407
|
+
begin: ir(
|
|
76408
76408
|
Qa(ot($r, /\s*:/)),
|
|
76409
76409
|
Qa(ot($r, /\s+/, $r, /\s*:/))
|
|
76410
76410
|
),
|
|
@@ -76441,7 +76441,7 @@ function P7(e) {
|
|
|
76441
76441
|
match: [
|
|
76442
76442
|
/(func|macro)/,
|
|
76443
76443
|
/\s+/,
|
|
76444
|
-
|
|
76444
|
+
ir($.match, $r, Pd)
|
|
76445
76445
|
],
|
|
76446
76446
|
className: {
|
|
76447
76447
|
1: "keyword",
|
|
@@ -78807,13 +78807,13 @@ function H7() {
|
|
|
78807
78807
|
B
|
|
78808
78808
|
);
|
|
78809
78809
|
}
|
|
78810
|
-
function
|
|
78811
|
-
return B ? B.endsWithParent ||
|
|
78810
|
+
function rr(B) {
|
|
78811
|
+
return B ? B.endsWithParent || rr(B.starts) : !1;
|
|
78812
78812
|
}
|
|
78813
78813
|
function Oi(B) {
|
|
78814
78814
|
return B.variants && !B.cachedVariants && (B.cachedVariants = B.variants.map(function(W) {
|
|
78815
78815
|
return n(B, { variants: null }, W);
|
|
78816
|
-
})), B.cachedVariants ? B.cachedVariants :
|
|
78816
|
+
})), B.cachedVariants ? B.cachedVariants : rr(B) ? n(B, { starts: B.starts ? n(B.starts) : null }) : Object.isFrozen(B) ? n(B) : B;
|
|
78817
78817
|
}
|
|
78818
78818
|
var Ai = "11.11.1";
|
|
78819
78819
|
class Di extends Error {
|
|
@@ -79502,7 +79502,7 @@ const iB = ({
|
|
|
79502
79502
|
children: e,
|
|
79503
79503
|
className: t,
|
|
79504
79504
|
...r
|
|
79505
|
-
}) => /* @__PURE__ */
|
|
79505
|
+
}) => /* @__PURE__ */ er(
|
|
79506
79506
|
Nt,
|
|
79507
79507
|
{
|
|
79508
79508
|
as: "blockquote",
|
|
@@ -79633,7 +79633,7 @@ function mB({
|
|
|
79633
79633
|
...r
|
|
79634
79634
|
}) {
|
|
79635
79635
|
const { element: n } = r;
|
|
79636
|
-
return /* @__PURE__ */
|
|
79636
|
+
return /* @__PURE__ */ er(Nt, { className: Ve(t, "inline-block"), ...r, children: [
|
|
79637
79637
|
/* @__PURE__ */ ee(
|
|
79638
79638
|
"span",
|
|
79639
79639
|
{
|
|
@@ -79748,7 +79748,7 @@ function SB({
|
|
|
79748
79748
|
nodeProps: r,
|
|
79749
79749
|
...n
|
|
79750
79750
|
}) {
|
|
79751
|
-
return /* @__PURE__ */
|
|
79751
|
+
return /* @__PURE__ */ er(Nt, { className: t, nodeProps: r, ...n, children: [
|
|
79752
79752
|
/* @__PURE__ */ ee("div", { className: "cursor-text py-6", contentEditable: !1, children: /* @__PURE__ */ ee(
|
|
79753
79753
|
"hr",
|
|
79754
79754
|
{
|
|
@@ -79773,14 +79773,14 @@ function hB({
|
|
|
79773
79773
|
url: s,
|
|
79774
79774
|
width: o
|
|
79775
79775
|
} = n.element;
|
|
79776
|
-
return /* @__PURE__ */
|
|
79776
|
+
return /* @__PURE__ */ er(
|
|
79777
79777
|
Nt,
|
|
79778
79778
|
{
|
|
79779
79779
|
className: Ve(t, "py-2.5"),
|
|
79780
79780
|
...n,
|
|
79781
79781
|
nodeProps: r,
|
|
79782
79782
|
children: [
|
|
79783
|
-
/* @__PURE__ */ ee("figure", { className: "group relative m-0 inline-block", style: { width: o }, children: /* @__PURE__ */
|
|
79783
|
+
/* @__PURE__ */ ee("figure", { className: "group relative m-0 inline-block", style: { width: o }, children: /* @__PURE__ */ er(
|
|
79784
79784
|
"div",
|
|
79785
79785
|
{
|
|
79786
79786
|
className: "relative max-w-full min-w-[92px]",
|
|
@@ -80013,7 +80013,7 @@ function BB({
|
|
|
80013
80013
|
...r
|
|
80014
80014
|
}) {
|
|
80015
80015
|
const { url: n } = r.element;
|
|
80016
|
-
return /* @__PURE__ */
|
|
80016
|
+
return /* @__PURE__ */ er(Nt, { className: Ve(t, "mb-1"), ...r, children: [
|
|
80017
80017
|
/* @__PURE__ */ ee("figure", { className: "group relative cursor-default", children: /* @__PURE__ */ ee("div", { className: "h-16", children: /* @__PURE__ */ ee("audio", { className: "size-full", src: n, controls: !0 }) }) }),
|
|
80018
80018
|
e
|
|
80019
80019
|
] });
|
|
@@ -80024,7 +80024,7 @@ const FB = ({
|
|
|
80024
80024
|
...r
|
|
80025
80025
|
}) => {
|
|
80026
80026
|
const { name: n, url: a } = r.element;
|
|
80027
|
-
return /* @__PURE__ */
|
|
80027
|
+
return /* @__PURE__ */ er(Nt, { className: Ve(t, "my-px rounded-sm"), ...r, children: [
|
|
80028
80028
|
/* @__PURE__ */ ee(
|
|
80029
80029
|
"a",
|
|
80030
80030
|
{
|
|
@@ -80035,7 +80035,7 @@ const FB = ({
|
|
|
80035
80035
|
rel: "noopener noreferrer",
|
|
80036
80036
|
role: "button",
|
|
80037
80037
|
target: "_blank",
|
|
80038
|
-
children: /* @__PURE__ */
|
|
80038
|
+
children: /* @__PURE__ */ er("div", { className: "flex items-center gap-1 p-1", children: [
|
|
80039
80039
|
/* @__PURE__ */ ee(wB, { className: "size-5" }),
|
|
80040
80040
|
/* @__PURE__ */ ee("div", { children: n })
|
|
80041
80041
|
] })
|
|
@@ -80055,8 +80055,8 @@ function UB({
|
|
|
80055
80055
|
url: i,
|
|
80056
80056
|
width: s
|
|
80057
80057
|
} = r.element;
|
|
80058
|
-
return /* @__PURE__ */
|
|
80059
|
-
/* @__PURE__ */ ee("div", { style: { textAlign: n }, children: /* @__PURE__ */
|
|
80058
|
+
return /* @__PURE__ */ er(Nt, { className: Ve(t, "py-2.5"), ...r, children: [
|
|
80059
|
+
/* @__PURE__ */ ee("div", { style: { textAlign: n }, children: /* @__PURE__ */ er(
|
|
80060
80060
|
"figure",
|
|
80061
80061
|
{
|
|
80062
80062
|
className: "group relative m-0 inline-block cursor-default",
|
|
@@ -80098,14 +80098,14 @@ function GB({
|
|
|
80098
80098
|
...n,
|
|
80099
80099
|
children: li ? (
|
|
80100
80100
|
// Mac OS IME https://github.com/ianstormtaylor/slate/issues/3490
|
|
80101
|
-
/* @__PURE__ */
|
|
80101
|
+
/* @__PURE__ */ er(ce.Fragment, { children: [
|
|
80102
80102
|
e,
|
|
80103
80103
|
r,
|
|
80104
80104
|
a.value
|
|
80105
80105
|
] })
|
|
80106
80106
|
) : (
|
|
80107
80107
|
// Others like Android https://github.com/ianstormtaylor/slate/pull/5360
|
|
80108
|
-
/* @__PURE__ */
|
|
80108
|
+
/* @__PURE__ */ er(ce.Fragment, { children: [
|
|
80109
80109
|
r,
|
|
80110
80110
|
a.value,
|
|
80111
80111
|
e
|
|
@@ -80249,7 +80249,7 @@ function KB({
|
|
|
80249
80249
|
...r
|
|
80250
80250
|
}) {
|
|
80251
80251
|
const { editor: n } = r, a = XB(n);
|
|
80252
|
-
return /* @__PURE__ */
|
|
80252
|
+
return /* @__PURE__ */ er(Nt, { className: Ve(t, "mb-1 p-0"), ...r, children: [
|
|
80253
80253
|
/* @__PURE__ */ ee("div", { children: a.length > 0 ? a.map((i) => /* @__PURE__ */ ee(
|
|
80254
80254
|
$B,
|
|
80255
80255
|
{
|
|
@@ -80288,7 +80288,7 @@ function jB({
|
|
|
80288
80288
|
className: t,
|
|
80289
80289
|
...r
|
|
80290
80290
|
}) {
|
|
80291
|
-
return /* @__PURE__ */
|
|
80291
|
+
return /* @__PURE__ */ er(Nt, { className: Ve(t, "pl-6"), ...r, children: [
|
|
80292
80292
|
/* @__PURE__ */ ee(
|
|
80293
80293
|
"div",
|
|
80294
80294
|
{
|
|
@@ -80432,7 +80432,7 @@ const ZB = ({
|
|
|
80432
80432
|
element: r
|
|
80433
80433
|
}) => {
|
|
80434
80434
|
const [n, a] = Ny(!1), i = (l) => l ? typeof l.text == "string" ? l.text : Array.isArray(l.children) ? l.children.map(i).join("") : "" : "", o = Eh(() => i(r).length, [r]) > 500;
|
|
80435
|
-
return /* @__PURE__ */
|
|
80435
|
+
return /* @__PURE__ */ er("div", { className: "essay-excerpt-body", children: [
|
|
80436
80436
|
/* @__PURE__ */ ee(
|
|
80437
80437
|
"div",
|
|
80438
80438
|
{
|
|
@@ -80492,17 +80492,21 @@ function T8(e) {
|
|
|
80492
80492
|
}
|
|
80493
80493
|
}
|
|
80494
80494
|
const C8 = ({ element: e }) => {
|
|
80495
|
-
|
|
80496
|
-
|
|
80497
|
-
|
|
80498
|
-
|
|
80499
|
-
|
|
80500
|
-
|
|
80501
|
-
|
|
80502
|
-
|
|
80503
|
-
|
|
80504
|
-
|
|
80505
|
-
|
|
80495
|
+
var a;
|
|
80496
|
+
const t = e == null ? void 0 : e.url, r = T8(t), n = ((a = e == null ? void 0 : e.caption) == null ? void 0 : a.map((i) => i.text).join("")) ?? "";
|
|
80497
|
+
return r ? /* @__PURE__ */ er("div", { className: "my-4", children: [
|
|
80498
|
+
/* @__PURE__ */ ee(
|
|
80499
|
+
"iframe",
|
|
80500
|
+
{
|
|
80501
|
+
className: "w-full aspect-video",
|
|
80502
|
+
src: r,
|
|
80503
|
+
allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",
|
|
80504
|
+
allowFullScreen: !0,
|
|
80505
|
+
loading: "lazy"
|
|
80506
|
+
}
|
|
80507
|
+
),
|
|
80508
|
+
n && /* @__PURE__ */ ee("div", { className: "mt-2 text-center text-sm media-embed-caption ", children: n })
|
|
80509
|
+
] }) : null;
|
|
80506
80510
|
}, y8 = K7(q7);
|
|
80507
80511
|
function I8({ value: e }) {
|
|
80508
80512
|
const t = {
|