eeed-editor 0.1.15 → 0.1.16
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/README.md +1 -1
- package/dist/{_basePickBy-CEkd0XdC.mjs → _basePickBy-D5_VOVdV.mjs} +2 -2
- package/dist/{_baseUniq-BT9YRDH6.mjs → _baseUniq-O5Zi8Zj1.mjs} +1 -1
- package/dist/{arc-CrfAF6jV.mjs → arc-BUk4t_7U.mjs} +1 -1
- package/dist/{architecture-U656AL7Q-BXDyIjTd.mjs → architecture-U656AL7Q-B72zEoDN.mjs} +1 -1
- package/dist/{architectureDiagram-VXUJARFQ-C0wRUEtM.mjs → architectureDiagram-VXUJARFQ-Lz_Gyin5.mjs} +4 -4
- package/dist/{blockDiagram-VD42YOAC-a8uU2YD1.mjs → blockDiagram-VD42YOAC-VvtE8B-6.mjs} +5 -5
- package/dist/{c4Diagram-YG6GDRKO-B4jru1i1.mjs → c4Diagram-YG6GDRKO-DG-aEN6h.mjs} +2 -2
- package/dist/{channel-Bf6TIAcE.mjs → channel-C92ZGBwH.mjs} +1 -1
- package/dist/{chunk-4BX2VUAB-CesipSEy.mjs → chunk-4BX2VUAB-p7yVh0Da.mjs} +1 -1
- package/dist/{chunk-55IACEB6-BfkXgkW7.mjs → chunk-55IACEB6-BItjgz62.mjs} +1 -1
- package/dist/{chunk-B4BG7PRW-rYl7scX0.mjs → chunk-B4BG7PRW-BucTBZQ4.mjs} +4 -4
- package/dist/{chunk-DI55MBZ5-KjxZkID3.mjs → chunk-DI55MBZ5-hTawxTnF.mjs} +3 -3
- package/dist/{chunk-FMBD7UC4-CdoeuytN.mjs → chunk-FMBD7UC4-BKTVySFo.mjs} +1 -1
- package/dist/{chunk-QN33PNHL-DFkMZx1g.mjs → chunk-QN33PNHL-CW74eL9c.mjs} +1 -1
- package/dist/{chunk-QZHKN3VN-BkCoRwfe.mjs → chunk-QZHKN3VN-D40tnriq.mjs} +1 -1
- package/dist/{chunk-TZMSLE5B-aCc6iQoB.mjs → chunk-TZMSLE5B-DJio3_xE.mjs} +1 -1
- package/dist/{classDiagram-v2-WZHVMYZB-DovnAJJ-.mjs → classDiagram-2ON5EDUG-BDcwNTlG.mjs} +2 -2
- package/dist/{classDiagram-2ON5EDUG-DovnAJJ-.mjs → classDiagram-v2-WZHVMYZB-BDcwNTlG.mjs} +2 -2
- package/dist/{clone-Bgn0kKfR.mjs → clone-C5URsahh.mjs} +1 -1
- package/dist/{cose-bilkent-S5V4N54A-BK8vsbSg.mjs → cose-bilkent-S5V4N54A-ClNaA3fM.mjs} +2 -2
- package/dist/{dagre-6UL2VRFP-DTKvQpBz.mjs → dagre-6UL2VRFP-D35KauMz.mjs} +6 -6
- package/dist/{diagram-PSM6KHXK-DbeZS0lZ.mjs → diagram-PSM6KHXK-BRyBCdY5.mjs} +4 -4
- package/dist/{diagram-QEK2KX5R-B2wgkbJv.mjs → diagram-QEK2KX5R-uDCHrDc1.mjs} +3 -3
- package/dist/{diagram-S2PKOQOG-9N97BhIm.mjs → diagram-S2PKOQOG-DNR-VhsI.mjs} +3 -3
- package/dist/eeed-editor.es.js +2 -2
- package/dist/eeed-editor.umd.js +238 -238
- package/dist/{erDiagram-Q2GNP2WA-Be2naADX.mjs → erDiagram-Q2GNP2WA-B24WQsHN.mjs} +4 -4
- package/dist/{flowDiagram-NV44I4VS-BCekSJyr.mjs → flowDiagram-NV44I4VS-bT8ocOpt.mjs} +5 -5
- package/dist/{ganttDiagram-LVOFAZNH-DLE0G_aQ.mjs → ganttDiagram-LVOFAZNH-CRhLeu0B.mjs} +3 -3
- package/dist/{gitGraph-F6HP7TQM-D_INUXWz.mjs → gitGraph-F6HP7TQM-BwNYOTRX.mjs} +1 -1
- package/dist/{gitGraphDiagram-NY62KEGX-CFP-tbN2.mjs → gitGraphDiagram-NY62KEGX-BupM1gqf.mjs} +4 -4
- package/dist/{graph-DVnQzTDU.mjs → graph-bCOtYodG.mjs} +2 -2
- package/dist/{index-Bg_uVi12.mjs → index-BBaWvpFA.mjs} +424 -418
- package/dist/index.css +1 -1
- package/dist/index.d.ts +46 -1
- package/dist/info-NVLQJR56-DZpJ6Djx.mjs +5 -0
- package/dist/{infoDiagram-ER5ION4S-s2Yp71ql.mjs → infoDiagram-ER5ION4S-CdZ4Mwdo.mjs} +2 -2
- package/dist/{journeyDiagram-XKPGCS4Q-CBa5wdie.mjs → journeyDiagram-XKPGCS4Q-BneETYKd.mjs} +4 -4
- package/dist/{kanban-definition-3W4ZIXB7-OcVTugCl.mjs → kanban-definition-3W4ZIXB7-MeL_uZZx.mjs} +2 -2
- package/dist/{layout-mkZS9nxv.mjs → layout-DuOxgsFY.mjs} +4 -4
- package/dist/{linear-H2f9LXEG.mjs → linear-DCK4J6R8.mjs} +1 -1
- package/dist/{mermaid-parser.core-BOUdyKiu.mjs → mermaid-parser.core-cjcHmi9L.mjs} +11 -11
- package/dist/{mermaid.core-Detd19yK.mjs → mermaid.core-ffRoaHVo.mjs} +30 -30
- package/dist/{mindmap-definition-VGOIOE7T-C0Jrl77c.mjs → mindmap-definition-VGOIOE7T-CA4ZPiUO.mjs} +3 -3
- package/dist/{packet-BFZMPI3H-XcF80dGc.mjs → packet-BFZMPI3H-CXjBtVKI.mjs} +1 -1
- package/dist/pie-7BOR55EZ-C1Rl3oHm.mjs +5 -0
- package/dist/{pieDiagram-ADFJNKIX-BKJCTnqK.mjs → pieDiagram-ADFJNKIX-CP1opWiM.mjs} +4 -4
- package/dist/{quadrantDiagram-AYHSOK5B-CNpXyKC_.mjs → quadrantDiagram-AYHSOK5B-BpQXWTJU.mjs} +2 -2
- package/dist/{radar-NHE76QYJ-LVAmdxN5.mjs → radar-NHE76QYJ-CnwyOhYG.mjs} +1 -1
- package/dist/{requirementDiagram-UZGBJVZJ-DKlo_g1y.mjs → requirementDiagram-UZGBJVZJ-BvTgFFeP.mjs} +3 -3
- package/dist/{sankeyDiagram-TZEHDZUN-BlcFWxGM.mjs → sankeyDiagram-TZEHDZUN-C0HQSxnN.mjs} +1 -1
- package/dist/{sequenceDiagram-WL72ISMW-Br1vA5Su.mjs → sequenceDiagram-WL72ISMW-C4Rp-BQr.mjs} +3 -3
- package/dist/{stateDiagram-FKZM4ZOC-Dn8r5dJ1.mjs → stateDiagram-FKZM4ZOC-CVLYxe-z.mjs} +4 -4
- package/dist/{stateDiagram-v2-4FDKWEC3-Dn7F_OIh.mjs → stateDiagram-v2-4FDKWEC3-DlkIscBT.mjs} +2 -2
- package/dist/{timeline-definition-IT6M3QCI-lEx0wVcX.mjs → timeline-definition-IT6M3QCI-DQHjzDpM.mjs} +2 -2
- package/dist/{treemap-KMMF4GRG-Jr6yIZsF.mjs → treemap-KMMF4GRG-D_gxIem2.mjs} +1 -1
- package/dist/{xychartDiagram-PRI3JC2R-DNJMbKy-.mjs → xychartDiagram-PRI3JC2R-BMffKGCX.mjs} +2 -2
- package/package.json +1 -1
- package/dist/info-NVLQJR56-Bg8bOk4W.mjs +0 -5
- package/dist/pie-7BOR55EZ-BB0Yx1zG.mjs +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inject as $1, watch as mr, getCurrentScope as B1, onScopeDispose as P1, computed as ut, toValue as Rr, unref as et, ref as S, defineComponent as ue, provide as
|
|
1
|
+
import { inject as $1, watch as mr, getCurrentScope as B1, onScopeDispose as P1, computed as ut, toValue as Rr, unref as et, ref as S, defineComponent as ue, provide as Zd, markRaw as Tp, reactive as z1, h as qr, render as rc, getCurrentInstance as H1, watchEffect as F1, nextTick as Fn, onBeforeUnmount as jc, customRef as U1, createElementBlock as U, openBlock as z, createElementVNode as y, onMounted as gs, createBlock as Lt, withCtx as Et, createCommentVNode as Me, normalizeStyle as mt, createVNode as B, withModifiers as Ie, defineAsyncComponent as _p, Fragment as qt, Teleport as ia, normalizeClass as be, renderSlot as Qs, toDisplayString as Pt, withDirectives as Pe, vModelText as ic, createTextVNode as oi, Transition as W1, createApp as V1, onUnmounted as K1, withKeys as q1, vShow as je, renderList as mn } from "vue";
|
|
2
2
|
const He = () => {
|
|
3
3
|
};
|
|
4
4
|
/*!
|
|
@@ -85,13 +85,13 @@ function vl(...t) {
|
|
|
85
85
|
};
|
|
86
86
|
return Y1(n), o;
|
|
87
87
|
}
|
|
88
|
-
let
|
|
88
|
+
let Qd = !1;
|
|
89
89
|
function wt(t, e, n = {}) {
|
|
90
90
|
const { window: r = Ap, ignore: i = [], capture: s = !0, detectIframe: o = !1, controls: a = !1 } = n;
|
|
91
91
|
if (!r)
|
|
92
92
|
return a ? { stop: ei, cancel: ei, trigger: ei } : ei;
|
|
93
|
-
if (Z1 && !
|
|
94
|
-
|
|
93
|
+
if (Z1 && !Qd) {
|
|
94
|
+
Qd = !0;
|
|
95
95
|
const m = { passive: !0 };
|
|
96
96
|
Array.from(r.document.body.children).forEach((v) => v.addEventListener("click", ei, m)), r.document.documentElement.addEventListener("click", ei, m);
|
|
97
97
|
}
|
|
@@ -1087,7 +1087,7 @@ class Zi {
|
|
|
1087
1087
|
@internal
|
|
1088
1088
|
*/
|
|
1089
1089
|
static resolveCached(e, n) {
|
|
1090
|
-
let r =
|
|
1090
|
+
let r = ef.get(e);
|
|
1091
1091
|
if (r)
|
|
1092
1092
|
for (let s = 0; s < r.elts.length; s++) {
|
|
1093
1093
|
let o = r.elts[s];
|
|
@@ -1095,7 +1095,7 @@ class Zi {
|
|
|
1095
1095
|
return o;
|
|
1096
1096
|
}
|
|
1097
1097
|
else
|
|
1098
|
-
|
|
1098
|
+
ef.set(e, r = new rv());
|
|
1099
1099
|
let i = r.elts[r.i] = Zi.resolve(e, n);
|
|
1100
1100
|
return r.i = (r.i + 1) % iv, i;
|
|
1101
1101
|
}
|
|
@@ -1105,7 +1105,7 @@ class rv {
|
|
|
1105
1105
|
this.elts = [], this.i = 0;
|
|
1106
1106
|
}
|
|
1107
1107
|
}
|
|
1108
|
-
const iv = 12,
|
|
1108
|
+
const iv = 12, ef = /* @__PURE__ */ new WeakMap();
|
|
1109
1109
|
class fo {
|
|
1110
1110
|
/**
|
|
1111
1111
|
Construct a node range. `$from` and `$to` should point into the
|
|
@@ -1766,14 +1766,14 @@ function lv(t) {
|
|
|
1766
1766
|
break;
|
|
1767
1767
|
return e;
|
|
1768
1768
|
}
|
|
1769
|
-
function
|
|
1769
|
+
function tf(t) {
|
|
1770
1770
|
/\D/.test(t.next) && t.err("Expected number, got '" + t.next + "'");
|
|
1771
1771
|
let e = Number(t.next);
|
|
1772
1772
|
return t.pos++, e;
|
|
1773
1773
|
}
|
|
1774
1774
|
function cv(t, e) {
|
|
1775
|
-
let n =
|
|
1776
|
-
return t.eat(",") && (t.next != "}" ? r =
|
|
1775
|
+
let n = tf(t), r = n;
|
|
1776
|
+
return t.eat(",") && (t.next != "}" ? r = tf(t) : r = -1), t.eat("}") || t.err("Unclosed braced range"), { type: "range", min: n, max: r, expr: e };
|
|
1777
1777
|
}
|
|
1778
1778
|
function uv(t, e) {
|
|
1779
1779
|
let n = t.nodeTypes, r = n[e];
|
|
@@ -1854,7 +1854,7 @@ function fv(t) {
|
|
|
1854
1854
|
function Hp(t, e) {
|
|
1855
1855
|
return e - t;
|
|
1856
1856
|
}
|
|
1857
|
-
function
|
|
1857
|
+
function nf(t, e) {
|
|
1858
1858
|
let n = [];
|
|
1859
1859
|
return r(e), n.sort(Hp);
|
|
1860
1860
|
function r(i) {
|
|
@@ -1870,7 +1870,7 @@ function tf(t, e) {
|
|
|
1870
1870
|
}
|
|
1871
1871
|
function hv(t) {
|
|
1872
1872
|
let e = /* @__PURE__ */ Object.create(null);
|
|
1873
|
-
return n(
|
|
1873
|
+
return n(nf(t, 0));
|
|
1874
1874
|
function n(r) {
|
|
1875
1875
|
let i = [];
|
|
1876
1876
|
r.forEach((o) => {
|
|
@@ -1880,7 +1880,7 @@ function hv(t) {
|
|
|
1880
1880
|
let c;
|
|
1881
1881
|
for (let u = 0; u < i.length; u++)
|
|
1882
1882
|
i[u][0] == a && (c = i[u][1]);
|
|
1883
|
-
|
|
1883
|
+
nf(t, l).forEach((u) => {
|
|
1884
1884
|
c || i.push([a, c = []]), c.indexOf(u) == -1 && c.push(u);
|
|
1885
1885
|
});
|
|
1886
1886
|
});
|
|
@@ -1944,7 +1944,7 @@ function Vp(t, e) {
|
|
|
1944
1944
|
n[r] = new gv(t, r, e[r]);
|
|
1945
1945
|
return n;
|
|
1946
1946
|
}
|
|
1947
|
-
let
|
|
1947
|
+
let rf = class Kp {
|
|
1948
1948
|
/**
|
|
1949
1949
|
@internal
|
|
1950
1950
|
*/
|
|
@@ -2203,7 +2203,7 @@ class qp {
|
|
|
2203
2203
|
let n = this.spec = {};
|
|
2204
2204
|
for (let i in e)
|
|
2205
2205
|
n[i] = e[i];
|
|
2206
|
-
n.nodes = pt.from(e.nodes), n.marks = pt.from(e.marks || {}), this.nodes =
|
|
2206
|
+
n.nodes = pt.from(e.nodes), n.marks = pt.from(e.marks || {}), this.nodes = rf.compile(this.spec.nodes, this), this.marks = sa.compile(this.spec.marks, this);
|
|
2207
2207
|
let r = /* @__PURE__ */ Object.create(null);
|
|
2208
2208
|
for (let i in this.nodes) {
|
|
2209
2209
|
if (i in this.marks)
|
|
@@ -2216,11 +2216,11 @@ class qp {
|
|
|
2216
2216
|
throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");
|
|
2217
2217
|
this.linebreakReplacement = s;
|
|
2218
2218
|
}
|
|
2219
|
-
s.markSet = a == "_" ? null : a ?
|
|
2219
|
+
s.markSet = a == "_" ? null : a ? sf(this, a.split(" ")) : a == "" || !s.inlineContent ? [] : null;
|
|
2220
2220
|
}
|
|
2221
2221
|
for (let i in this.marks) {
|
|
2222
2222
|
let s = this.marks[i], o = s.spec.excludes;
|
|
2223
|
-
s.excluded = o == null ? [s] : o == "" ? [] :
|
|
2223
|
+
s.excluded = o == null ? [s] : o == "" ? [] : sf(this, o.split(" "));
|
|
2224
2224
|
}
|
|
2225
2225
|
this.nodeFromJSON = (i) => ur.fromJSON(this, i), this.markFromJSON = (i) => Fe.fromJSON(this, i), this.topNodeType = this.nodes[this.spec.topNode || "doc"], this.cached.wrappings = /* @__PURE__ */ Object.create(null);
|
|
2226
2226
|
}
|
|
@@ -2233,7 +2233,7 @@ class qp {
|
|
|
2233
2233
|
node(e, n = null, r, i) {
|
|
2234
2234
|
if (typeof e == "string")
|
|
2235
2235
|
e = this.nodeType(e);
|
|
2236
|
-
else if (e instanceof
|
|
2236
|
+
else if (e instanceof rf) {
|
|
2237
2237
|
if (e.schema != this)
|
|
2238
2238
|
throw new RangeError("Node type from different schema used (" + e.name + ")");
|
|
2239
2239
|
} else throw new RangeError("Invalid node type: " + e);
|
|
@@ -2263,7 +2263,7 @@ class qp {
|
|
|
2263
2263
|
return n;
|
|
2264
2264
|
}
|
|
2265
2265
|
}
|
|
2266
|
-
function
|
|
2266
|
+
function sf(t, e) {
|
|
2267
2267
|
let n = [];
|
|
2268
2268
|
for (let r = 0; r < e.length; r++) {
|
|
2269
2269
|
let i = e[r], s = t.marks[i], o = s;
|
|
@@ -2311,7 +2311,7 @@ class dr {
|
|
|
2311
2311
|
Parse a document from the content of a DOM node.
|
|
2312
2312
|
*/
|
|
2313
2313
|
parse(e, n = {}) {
|
|
2314
|
-
let r = new
|
|
2314
|
+
let r = new af(this, n, !1);
|
|
2315
2315
|
return r.addAll(e, Fe.none, n.from, n.to), r.finish();
|
|
2316
2316
|
}
|
|
2317
2317
|
/**
|
|
@@ -2323,7 +2323,7 @@ class dr {
|
|
|
2323
2323
|
the left of the input and the end of nodes at the end.
|
|
2324
2324
|
*/
|
|
2325
2325
|
parseSlice(e, n = {}) {
|
|
2326
|
-
let r = new
|
|
2326
|
+
let r = new af(this, n, !0);
|
|
2327
2327
|
return r.addAll(e, Fe.none, n.from, n.to), j.maxOpen(r.finish());
|
|
2328
2328
|
}
|
|
2329
2329
|
/**
|
|
@@ -2380,13 +2380,13 @@ class dr {
|
|
|
2380
2380
|
for (let i in e.marks) {
|
|
2381
2381
|
let s = e.marks[i].spec.parseDOM;
|
|
2382
2382
|
s && s.forEach((o) => {
|
|
2383
|
-
r(o =
|
|
2383
|
+
r(o = lf(o)), o.mark || o.ignore || o.clearMark || (o.mark = i);
|
|
2384
2384
|
});
|
|
2385
2385
|
}
|
|
2386
2386
|
for (let i in e.nodes) {
|
|
2387
2387
|
let s = e.nodes[i].spec.parseDOM;
|
|
2388
2388
|
s && s.forEach((o) => {
|
|
2389
|
-
r(o =
|
|
2389
|
+
r(o = lf(o)), o.node || o.ignore || o.mark || (o.node = i);
|
|
2390
2390
|
});
|
|
2391
2391
|
}
|
|
2392
2392
|
return n;
|
|
@@ -2441,7 +2441,7 @@ const Gp = {
|
|
|
2441
2441
|
style: !0,
|
|
2442
2442
|
title: !0
|
|
2443
2443
|
}, jp = { ol: !0, ul: !0 }, Qi = 1, lc = 2, Ui = 4;
|
|
2444
|
-
function
|
|
2444
|
+
function of(t, e, n) {
|
|
2445
2445
|
return e != null ? (e ? Qi : 0) | (e === "full" ? lc : 0) : t && t.whitespace == "pre" ? Qi | lc : n & ~Ui;
|
|
2446
2446
|
}
|
|
2447
2447
|
class Os {
|
|
@@ -2477,10 +2477,10 @@ class Os {
|
|
|
2477
2477
|
return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !Gp.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
|
|
2478
2478
|
}
|
|
2479
2479
|
}
|
|
2480
|
-
class
|
|
2480
|
+
class af {
|
|
2481
2481
|
constructor(e, n, r) {
|
|
2482
2482
|
this.parser = e, this.options = n, this.isOpen = r, this.open = 0, this.localPreserveWS = !1;
|
|
2483
|
-
let i = n.topNode, s, o =
|
|
2483
|
+
let i = n.topNode, s, o = of(null, n.preserveWhitespace, 0) | (r ? Ui : 0);
|
|
2484
2484
|
i ? s = new Os(i.type, i.attrs, Fe.none, !0, n.topMatch || i.type.contentMatch, o) : r ? s = new Os(null, null, Fe.none, !0, null, o) : s = new Os(e.schema.topNodeType, null, Fe.none, !0, null, o), this.nodes = [s], this.find = n.findPositions, this.needsBlock = !1;
|
|
2485
2485
|
}
|
|
2486
2486
|
get top() {
|
|
@@ -2646,7 +2646,7 @@ class of {
|
|
|
2646
2646
|
s.match && (s.match = s.match.matchType(e.type));
|
|
2647
2647
|
let o = Fe.none;
|
|
2648
2648
|
for (let a of i.concat(e.marks))
|
|
2649
|
-
(s.type ? s.type.allowsMarkType(a.type) :
|
|
2649
|
+
(s.type ? s.type.allowsMarkType(a.type) : cf(a.type, e.type)) && (o = a.addToSet(o));
|
|
2650
2650
|
return s.content.push(e.mark(o)), !0;
|
|
2651
2651
|
}
|
|
2652
2652
|
return !1;
|
|
@@ -2662,10 +2662,10 @@ class of {
|
|
|
2662
2662
|
this.closeExtra();
|
|
2663
2663
|
let o = this.top;
|
|
2664
2664
|
o.match = o.match && o.match.matchType(e);
|
|
2665
|
-
let a =
|
|
2665
|
+
let a = of(e, s, o.options);
|
|
2666
2666
|
o.options & Ui && o.content.length == 0 && (a |= Ui);
|
|
2667
2667
|
let l = Fe.none;
|
|
2668
|
-
return r = r.filter((c) => (o.type ? o.type.allowsMarkType(c.type) :
|
|
2668
|
+
return r = r.filter((c) => (o.type ? o.type.allowsMarkType(c.type) : cf(c.type, e)) ? (l = c.addToSet(l), !1) : !0), this.nodes.push(new Os(e, n, l, i, null, a)), this.open++, r;
|
|
2669
2669
|
}
|
|
2670
2670
|
// Make sure all nodes above this.open are finished and added to
|
|
2671
2671
|
// their parents
|
|
@@ -2768,13 +2768,13 @@ function wv(t) {
|
|
|
2768
2768
|
function Ev(t, e) {
|
|
2769
2769
|
return (t.matches || t.msMatchesSelector || t.webkitMatchesSelector || t.mozMatchesSelector).call(t, e);
|
|
2770
2770
|
}
|
|
2771
|
-
function
|
|
2771
|
+
function lf(t) {
|
|
2772
2772
|
let e = {};
|
|
2773
2773
|
for (let n in t)
|
|
2774
2774
|
e[n] = t[n];
|
|
2775
2775
|
return e;
|
|
2776
2776
|
}
|
|
2777
|
-
function
|
|
2777
|
+
function cf(t, e) {
|
|
2778
2778
|
let n = e.schema.nodes;
|
|
2779
2779
|
for (let r in n) {
|
|
2780
2780
|
let i = n[r];
|
|
@@ -2886,17 +2886,17 @@ class Gr {
|
|
|
2886
2886
|
This can be useful as a base to build a custom serializer from.
|
|
2887
2887
|
*/
|
|
2888
2888
|
static nodesFromSchema(e) {
|
|
2889
|
-
let n =
|
|
2889
|
+
let n = uf(e.nodes);
|
|
2890
2890
|
return n.text || (n.text = (r) => r.text), n;
|
|
2891
2891
|
}
|
|
2892
2892
|
/**
|
|
2893
2893
|
Gather the serializers in a schema's mark specs into an object.
|
|
2894
2894
|
*/
|
|
2895
2895
|
static marksFromSchema(e) {
|
|
2896
|
-
return
|
|
2896
|
+
return uf(e.marks);
|
|
2897
2897
|
}
|
|
2898
2898
|
}
|
|
2899
|
-
function
|
|
2899
|
+
function uf(t) {
|
|
2900
2900
|
let e = {};
|
|
2901
2901
|
for (let n in t) {
|
|
2902
2902
|
let r = t[n].spec.toDOM;
|
|
@@ -2907,10 +2907,10 @@ function cf(t) {
|
|
|
2907
2907
|
function wl(t) {
|
|
2908
2908
|
return t.document || window.document;
|
|
2909
2909
|
}
|
|
2910
|
-
const
|
|
2910
|
+
const df = /* @__PURE__ */ new WeakMap();
|
|
2911
2911
|
function kv(t) {
|
|
2912
|
-
let e =
|
|
2913
|
-
return e === void 0 &&
|
|
2912
|
+
let e = df.get(t);
|
|
2913
|
+
return e === void 0 && df.set(t, e = xv(t)), e;
|
|
2914
2914
|
}
|
|
2915
2915
|
function xv(t) {
|
|
2916
2916
|
let e = null;
|
|
@@ -2972,7 +2972,7 @@ const Yp = 65535, Xp = Math.pow(2, 16);
|
|
|
2972
2972
|
function Sv(t, e) {
|
|
2973
2973
|
return t + e * Xp;
|
|
2974
2974
|
}
|
|
2975
|
-
function
|
|
2975
|
+
function ff(t) {
|
|
2976
2976
|
return t & Yp;
|
|
2977
2977
|
}
|
|
2978
2978
|
function Mv(t) {
|
|
@@ -3029,7 +3029,7 @@ class zt {
|
|
|
3029
3029
|
@internal
|
|
3030
3030
|
*/
|
|
3031
3031
|
recover(e) {
|
|
3032
|
-
let n = 0, r =
|
|
3032
|
+
let n = 0, r = ff(e);
|
|
3033
3033
|
if (!this.inverted)
|
|
3034
3034
|
for (let i = 0; i < r; i++)
|
|
3035
3035
|
n += this.ranges[i * 3 + 2] - this.ranges[i * 3 + 1];
|
|
@@ -3066,7 +3066,7 @@ class zt {
|
|
|
3066
3066
|
@internal
|
|
3067
3067
|
*/
|
|
3068
3068
|
touches(e, n) {
|
|
3069
|
-
let r = 0, i =
|
|
3069
|
+
let r = 0, i = ff(n), s = this.inverted ? 2 : 1, o = this.inverted ? 1 : 2;
|
|
3070
3070
|
for (let a = 0; a < this.ranges.length; a += 3) {
|
|
3071
3071
|
let l = this.ranges[a] - (this.inverted ? r : 0);
|
|
3072
3072
|
if (l > e)
|
|
@@ -3674,9 +3674,9 @@ function Nv(t, e, n) {
|
|
|
3674
3674
|
}
|
|
3675
3675
|
function Jc(t, e, n = null, r = t) {
|
|
3676
3676
|
let i = Av(t, e), s = i && Ov(r, e);
|
|
3677
|
-
return s ? i.map(
|
|
3677
|
+
return s ? i.map(hf).concat({ type: e, attrs: n }).concat(s.map(hf)) : null;
|
|
3678
3678
|
}
|
|
3679
|
-
function
|
|
3679
|
+
function hf(t) {
|
|
3680
3680
|
return { type: t, attrs: null };
|
|
3681
3681
|
}
|
|
3682
3682
|
function Av(t, e) {
|
|
@@ -4535,7 +4535,7 @@ class ge {
|
|
|
4535
4535
|
let s = e.steps.length, o = this.ranges;
|
|
4536
4536
|
for (let a = 0; a < o.length; a++) {
|
|
4537
4537
|
let { $from: l, $to: c } = o[a], u = e.mapping.slice(s);
|
|
4538
|
-
e.replaceRange(u.map(l.pos), u.map(c.pos), a ? j.empty : n), a == 0 &&
|
|
4538
|
+
e.replaceRange(u.map(l.pos), u.map(c.pos), a ? j.empty : n), a == 0 && gf(e, s, (r ? r.isInline : i && i.isTextblock) ? -1 : 1);
|
|
4539
4539
|
}
|
|
4540
4540
|
}
|
|
4541
4541
|
/**
|
|
@@ -4546,7 +4546,7 @@ class ge {
|
|
|
4546
4546
|
let r = e.steps.length, i = this.ranges;
|
|
4547
4547
|
for (let s = 0; s < i.length; s++) {
|
|
4548
4548
|
let { $from: o, $to: a } = i[s], l = e.mapping.slice(r), c = l.map(o.pos), u = l.map(a.pos);
|
|
4549
|
-
s ? e.deleteRange(c, u) : (e.replaceRangeWith(c, u, n),
|
|
4549
|
+
s ? e.deleteRange(c, u) : (e.replaceRangeWith(c, u, n), gf(e, r, n.isInline ? -1 : 1));
|
|
4550
4550
|
}
|
|
4551
4551
|
}
|
|
4552
4552
|
/**
|
|
@@ -4636,16 +4636,16 @@ class lm {
|
|
|
4636
4636
|
this.$from = e, this.$to = n;
|
|
4637
4637
|
}
|
|
4638
4638
|
}
|
|
4639
|
-
let
|
|
4640
|
-
function
|
|
4641
|
-
!
|
|
4639
|
+
let pf = !1;
|
|
4640
|
+
function mf(t) {
|
|
4641
|
+
!pf && !t.parent.inlineContent && (pf = !0);
|
|
4642
4642
|
}
|
|
4643
4643
|
class se extends ge {
|
|
4644
4644
|
/**
|
|
4645
4645
|
Construct a text selection between the given points.
|
|
4646
4646
|
*/
|
|
4647
4647
|
constructor(e, n = e) {
|
|
4648
|
-
|
|
4648
|
+
mf(e), mf(n), super(e, n);
|
|
4649
4649
|
}
|
|
4650
4650
|
/**
|
|
4651
4651
|
Returns a resolved position if this is a cursor selection (an
|
|
@@ -4845,7 +4845,7 @@ function ai(t, e, n, r, i, s = !1) {
|
|
|
4845
4845
|
}
|
|
4846
4846
|
return null;
|
|
4847
4847
|
}
|
|
4848
|
-
function
|
|
4848
|
+
function gf(t, e, n) {
|
|
4849
4849
|
let r = t.steps.length - 1;
|
|
4850
4850
|
if (r < e)
|
|
4851
4851
|
return;
|
|
@@ -4857,7 +4857,7 @@ function mf(t, e, n) {
|
|
|
4857
4857
|
o == null && (o = u);
|
|
4858
4858
|
}), t.setSelection(ge.near(t.doc.resolve(o), n));
|
|
4859
4859
|
}
|
|
4860
|
-
const
|
|
4860
|
+
const bf = 1, Rs = 2, vf = 4;
|
|
4861
4861
|
class Gv extends Zc {
|
|
4862
4862
|
/**
|
|
4863
4863
|
@internal
|
|
@@ -4881,13 +4881,13 @@ class Gv extends Zc {
|
|
|
4881
4881
|
setSelection(e) {
|
|
4882
4882
|
if (e.$from.doc != this.doc)
|
|
4883
4883
|
throw new RangeError("Selection passed to setSelection must point at the current document");
|
|
4884
|
-
return this.curSelection = e, this.curSelectionFor = this.steps.length, this.updated = (this.updated |
|
|
4884
|
+
return this.curSelection = e, this.curSelectionFor = this.steps.length, this.updated = (this.updated | bf) & ~Rs, this.storedMarks = null, this;
|
|
4885
4885
|
}
|
|
4886
4886
|
/**
|
|
4887
4887
|
Whether the selection was explicitly updated by this transaction.
|
|
4888
4888
|
*/
|
|
4889
4889
|
get selectionSet() {
|
|
4890
|
-
return (this.updated &
|
|
4890
|
+
return (this.updated & bf) > 0;
|
|
4891
4891
|
}
|
|
4892
4892
|
/**
|
|
4893
4893
|
Set the current stored marks.
|
|
@@ -5000,21 +5000,21 @@ class Gv extends Zc {
|
|
|
5000
5000
|
when updated to the state produced by this transaction.
|
|
5001
5001
|
*/
|
|
5002
5002
|
scrollIntoView() {
|
|
5003
|
-
return this.updated |=
|
|
5003
|
+
return this.updated |= vf, this;
|
|
5004
5004
|
}
|
|
5005
5005
|
/**
|
|
5006
5006
|
True when this transaction has had `scrollIntoView` called on it.
|
|
5007
5007
|
*/
|
|
5008
5008
|
get scrolledIntoView() {
|
|
5009
|
-
return (this.updated &
|
|
5009
|
+
return (this.updated & vf) > 0;
|
|
5010
5010
|
}
|
|
5011
5011
|
}
|
|
5012
|
-
function
|
|
5012
|
+
function yf(t, e) {
|
|
5013
5013
|
return !e || !t ? t : t.bind(e);
|
|
5014
5014
|
}
|
|
5015
5015
|
class Pi {
|
|
5016
5016
|
constructor(e, n, r) {
|
|
5017
|
-
this.name = e, this.init =
|
|
5017
|
+
this.name = e, this.init = yf(n.init, r), this.apply = yf(n.apply, r);
|
|
5018
5018
|
}
|
|
5019
5019
|
}
|
|
5020
5020
|
const jv = [
|
|
@@ -5590,7 +5590,7 @@ function ay(t, e = null) {
|
|
|
5590
5590
|
return a ? (r && r(n.tr.wrap(o, a).scrollIntoView()), !0) : !1;
|
|
5591
5591
|
};
|
|
5592
5592
|
}
|
|
5593
|
-
function
|
|
5593
|
+
function wf(t, e = null) {
|
|
5594
5594
|
return function(n, r) {
|
|
5595
5595
|
let i = !1;
|
|
5596
5596
|
for (let s = 0; s < n.selection.ranges.length && !i; s++) {
|
|
@@ -5727,9 +5727,9 @@ const Pn = function(t, e, n) {
|
|
|
5727
5727
|
}, my = function() {
|
|
5728
5728
|
dc = null;
|
|
5729
5729
|
}, Ur = function(t, e, n, r) {
|
|
5730
|
-
return n && (
|
|
5730
|
+
return n && (Ef(t, e, n, r, -1) || Ef(t, e, n, r, 1));
|
|
5731
5731
|
}, gy = /^(img|br|input|textarea|hr)$/i;
|
|
5732
|
-
function
|
|
5732
|
+
function Ef(t, e, n, r, i) {
|
|
5733
5733
|
for (var s; ; ) {
|
|
5734
5734
|
if (t == n && e == r)
|
|
5735
5735
|
return !0;
|
|
@@ -5825,9 +5825,9 @@ function Ey(t, e, n) {
|
|
|
5825
5825
|
return { node: r.startContainer, offset: Math.min(Yt(r.startContainer), r.startOffset) };
|
|
5826
5826
|
}
|
|
5827
5827
|
}
|
|
5828
|
-
const Sn = typeof navigator < "u" ? navigator : null,
|
|
5828
|
+
const Sn = typeof navigator < "u" ? navigator : null, kf = typeof document < "u" ? document : null, Er = Sn && Sn.userAgent || "", fc = /Edge\/(\d+)/.exec(Er), xm = /MSIE \d/.exec(Er), hc = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Er), $t = !!(xm || hc || fc), fr = xm ? document.documentMode : hc ? +hc[1] : fc ? +fc[1] : 0, Xt = !$t && /gecko\/(\d+)/i.test(Er);
|
|
5829
5829
|
Xt && +(/Firefox\/(\d+)/.exec(Er) || [0, 0])[1];
|
|
5830
|
-
const pc = !$t && /Chrome\/(\d+)/.exec(Er), xt = !!pc, Sm = pc ? +pc[1] : 0, Nt = !$t && !!Sn && /Apple Computer/.test(Sn.vendor), wi = Nt && (/Mobile\/\w+/.test(Er) || !!Sn && Sn.maxTouchPoints > 2), jt = wi || (Sn ? /Mac/.test(Sn.platform) : !1), ky = Sn ? /Win/.test(Sn.platform) : !1, zn = /Android \d/.test(Er), vs = !!
|
|
5830
|
+
const pc = !$t && /Chrome\/(\d+)/.exec(Er), xt = !!pc, Sm = pc ? +pc[1] : 0, Nt = !$t && !!Sn && /Apple Computer/.test(Sn.vendor), wi = Nt && (/Mobile\/\w+/.test(Er) || !!Sn && Sn.maxTouchPoints > 2), jt = wi || (Sn ? /Mac/.test(Sn.platform) : !1), ky = Sn ? /Win/.test(Sn.platform) : !1, zn = /Android \d/.test(Er), vs = !!kf && "webkitFontSmoothing" in kf.documentElement.style, xy = vs ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
5831
5831
|
function Sy(t) {
|
|
5832
5832
|
let e = t.defaultView && t.defaultView.visualViewport;
|
|
5833
5833
|
return e ? {
|
|
@@ -5854,7 +5854,7 @@ function My(t) {
|
|
|
5854
5854
|
bottom: e.top + t.clientHeight * r
|
|
5855
5855
|
};
|
|
5856
5856
|
}
|
|
5857
|
-
function
|
|
5857
|
+
function xf(t, e, n) {
|
|
5858
5858
|
let r = t.someProp("scrollThreshold") || 0, i = t.someProp("scrollMargin") || 5, s = t.dom.ownerDocument;
|
|
5859
5859
|
for (let o = n || t.dom; o; ) {
|
|
5860
5860
|
if (o.nodeType != 1) {
|
|
@@ -6028,17 +6028,17 @@ function Iy(t, e) {
|
|
|
6028
6028
|
let l = t.docView.nearestDesc(o, !0);
|
|
6029
6029
|
return { pos: a, inside: l ? l.posAtStart - l.border : -1 };
|
|
6030
6030
|
}
|
|
6031
|
-
function
|
|
6031
|
+
function Sf(t) {
|
|
6032
6032
|
return t.top < t.bottom || t.left < t.right;
|
|
6033
6033
|
}
|
|
6034
6034
|
function Jn(t, e) {
|
|
6035
6035
|
let n = t.getClientRects();
|
|
6036
6036
|
if (n.length) {
|
|
6037
6037
|
let r = n[e < 0 ? 0 : n.length - 1];
|
|
6038
|
-
if (
|
|
6038
|
+
if (Sf(r))
|
|
6039
6039
|
return r;
|
|
6040
6040
|
}
|
|
6041
|
-
return Array.prototype.find.call(n,
|
|
6041
|
+
return Array.prototype.find.call(n, Sf) || t.getBoundingClientRect();
|
|
6042
6042
|
}
|
|
6043
6043
|
const Ly = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
|
|
6044
6044
|
function Nm(t, e, n) {
|
|
@@ -6157,11 +6157,11 @@ function By(t, e, n) {
|
|
|
6157
6157
|
return f != null && (a.caretBidiLevel = f), m;
|
|
6158
6158
|
}) : r.pos == r.start() || r.pos == r.end();
|
|
6159
6159
|
}
|
|
6160
|
-
let
|
|
6160
|
+
let Mf = null, Cf = null, Tf = !1;
|
|
6161
6161
|
function Py(t, e, n) {
|
|
6162
|
-
return
|
|
6162
|
+
return Mf == e && Cf == n ? Tf : (Mf = e, Cf = n, Tf = n == "up" || n == "down" ? Dy(t, e, n) : By(t, e, n));
|
|
6163
6163
|
}
|
|
6164
|
-
const Jt = 0,
|
|
6164
|
+
const Jt = 0, _f = 1, Nr = 2, Mn = 3;
|
|
6165
6165
|
class ys {
|
|
6166
6166
|
constructor(e, n, r, i) {
|
|
6167
6167
|
this.parent = e, this.children = n, this.dom = r, this.contentDOM = i, this.dirty = Jt, r.pmViewDesc = this;
|
|
@@ -6477,7 +6477,7 @@ class ys {
|
|
|
6477
6477
|
if (r == o ? e <= o && n >= r : e < o && n > r) {
|
|
6478
6478
|
let a = r + s.border, l = o - s.border;
|
|
6479
6479
|
if (e >= a && n <= l) {
|
|
6480
|
-
this.dirty = e == r || n == o ? Nr :
|
|
6480
|
+
this.dirty = e == r || n == o ? Nr : _f, e == a && n == l && (s.contentLost || s.dom.parentNode != this.contentDOM) ? s.dirty = Mn : s.markDirty(e - a, n - a);
|
|
6481
6481
|
return;
|
|
6482
6482
|
} else
|
|
6483
6483
|
s.dirty = s.dom == s.contentDOM && s.dom.parentNode == this.contentDOM && !s.children.length ? Nr : Mn;
|
|
@@ -6489,7 +6489,7 @@ class ys {
|
|
|
6489
6489
|
markParentsDirty() {
|
|
6490
6490
|
let e = 1;
|
|
6491
6491
|
for (let n = this.parent; n; n = n.parent, e++) {
|
|
6492
|
-
let r = e == 1 ? Nr :
|
|
6492
|
+
let r = e == 1 ? Nr : _f;
|
|
6493
6493
|
n.dirty < r && (n.dirty = r);
|
|
6494
6494
|
}
|
|
6495
6495
|
}
|
|
@@ -6728,7 +6728,7 @@ class hr extends ys {
|
|
|
6728
6728
|
return this.node.isAtom;
|
|
6729
6729
|
}
|
|
6730
6730
|
}
|
|
6731
|
-
function
|
|
6731
|
+
function Nf(t, e, n, r, i) {
|
|
6732
6732
|
Dm(r, e, t);
|
|
6733
6733
|
let s = new hr(void 0, t, e, n, r, r, r, i, 0);
|
|
6734
6734
|
return s.contentDOM && s.updateChildren(i, 0), s;
|
|
@@ -6830,7 +6830,7 @@ function Im(t, e, n) {
|
|
|
6830
6830
|
let o = e[s], a = o.dom;
|
|
6831
6831
|
if (a.parentNode == t) {
|
|
6832
6832
|
for (; a != r; )
|
|
6833
|
-
r =
|
|
6833
|
+
r = Af(r), i = !0;
|
|
6834
6834
|
r = r.nextSibling;
|
|
6835
6835
|
} else
|
|
6836
6836
|
i = !0, t.insertBefore(a, r);
|
|
@@ -6840,7 +6840,7 @@ function Im(t, e, n) {
|
|
|
6840
6840
|
}
|
|
6841
6841
|
}
|
|
6842
6842
|
for (; r; )
|
|
6843
|
-
r =
|
|
6843
|
+
r = Af(r), i = !0;
|
|
6844
6844
|
i && n.trackWrites == t && (n.trackWrites = null);
|
|
6845
6845
|
}
|
|
6846
6846
|
const Wi = function(t) {
|
|
@@ -6911,7 +6911,7 @@ function po(t, e) {
|
|
|
6911
6911
|
return !1;
|
|
6912
6912
|
return !0;
|
|
6913
6913
|
}
|
|
6914
|
-
function
|
|
6914
|
+
function Af(t) {
|
|
6915
6915
|
let e = t.nextSibling;
|
|
6916
6916
|
return t.parentNode.removeChild(t), e;
|
|
6917
6917
|
}
|
|
@@ -7236,13 +7236,13 @@ function Wn(t, e = !1) {
|
|
|
7236
7236
|
Yy(t);
|
|
7237
7237
|
else {
|
|
7238
7238
|
let { anchor: r, head: i } = n, s, o;
|
|
7239
|
-
|
|
7239
|
+
Of && !(n instanceof se) && (n.$from.parent.inlineContent || (s = Rf(t, n.from)), !n.empty && !n.$from.parent.inlineContent && (o = Rf(t, n.to))), t.docView.setSelection(r, i, t, e), Of && (s && If(s), o && If(o)), n.visible ? t.dom.classList.remove("ProseMirror-hideselection") : (t.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && jy(t));
|
|
7240
7240
|
}
|
|
7241
7241
|
t.domObserver.setCurSelection(), t.domObserver.connectSelection();
|
|
7242
7242
|
}
|
|
7243
7243
|
}
|
|
7244
|
-
const
|
|
7245
|
-
function
|
|
7244
|
+
const Of = Nt || xt && Sm < 63;
|
|
7245
|
+
function Rf(t, e) {
|
|
7246
7246
|
let { node: n, offset: r } = t.docView.domFromPos(e, 0), i = r < n.childNodes.length ? n.childNodes[r] : null, s = r ? n.childNodes[r - 1] : null;
|
|
7247
7247
|
if (Nt && i && i.contentEditable == "false")
|
|
7248
7248
|
return _l(i);
|
|
@@ -7256,7 +7256,7 @@ function Of(t, e) {
|
|
|
7256
7256
|
function _l(t) {
|
|
7257
7257
|
return t.contentEditable = "true", Nt && t.draggable && (t.draggable = !1, t.wasDraggable = !0), t;
|
|
7258
7258
|
}
|
|
7259
|
-
function
|
|
7259
|
+
function If(t) {
|
|
7260
7260
|
t.contentEditable = "false", t.wasDraggable && (t.draggable = !0, t.wasDraggable = null);
|
|
7261
7261
|
}
|
|
7262
7262
|
function jy(t) {
|
|
@@ -7279,17 +7279,17 @@ function Yy(t) {
|
|
|
7279
7279
|
function Bm(t, e) {
|
|
7280
7280
|
if (e instanceof oe) {
|
|
7281
7281
|
let n = t.docView.descAt(e.from);
|
|
7282
|
-
n != t.lastSelectedViewDesc && (
|
|
7282
|
+
n != t.lastSelectedViewDesc && (Lf(t), n && n.selectNode(), t.lastSelectedViewDesc = n);
|
|
7283
7283
|
} else
|
|
7284
|
-
|
|
7284
|
+
Lf(t);
|
|
7285
7285
|
}
|
|
7286
|
-
function
|
|
7286
|
+
function Lf(t) {
|
|
7287
7287
|
t.lastSelectedViewDesc && (t.lastSelectedViewDesc.parent && t.lastSelectedViewDesc.deselectNode(), t.lastSelectedViewDesc = void 0);
|
|
7288
7288
|
}
|
|
7289
7289
|
function au(t, e, n, r) {
|
|
7290
7290
|
return t.someProp("createSelectionBetween", (i) => i(t, e, n)) || se.between(e, n, r);
|
|
7291
7291
|
}
|
|
7292
|
-
function
|
|
7292
|
+
function Df(t) {
|
|
7293
7293
|
return t.editable && !t.hasFocus() ? !1 : Pm(t);
|
|
7294
7294
|
}
|
|
7295
7295
|
function Pm(t) {
|
|
@@ -7313,7 +7313,7 @@ function bc(t, e) {
|
|
|
7313
7313
|
function Qn(t, e) {
|
|
7314
7314
|
return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()), !0;
|
|
7315
7315
|
}
|
|
7316
|
-
function
|
|
7316
|
+
function $f(t, e, n) {
|
|
7317
7317
|
let r = t.state.selection;
|
|
7318
7318
|
if (r instanceof se)
|
|
7319
7319
|
if (n.indexOf("s") > -1) {
|
|
@@ -7467,7 +7467,7 @@ function vc(t, e, n) {
|
|
|
7467
7467
|
t.state == i && Wn(t);
|
|
7468
7468
|
}, 50);
|
|
7469
7469
|
}
|
|
7470
|
-
function
|
|
7470
|
+
function Bf(t, e) {
|
|
7471
7471
|
let n = t.state.doc.resolve(e);
|
|
7472
7472
|
if (!(xt || ky) && n.parent.inlineContent) {
|
|
7473
7473
|
let i = t.coordsAtPos(e);
|
|
@@ -7484,7 +7484,7 @@ function $f(t, e) {
|
|
|
7484
7484
|
}
|
|
7485
7485
|
return getComputedStyle(t.dom).direction == "rtl" ? "rtl" : "ltr";
|
|
7486
7486
|
}
|
|
7487
|
-
function
|
|
7487
|
+
function Pf(t, e, n) {
|
|
7488
7488
|
let r = t.state.selection;
|
|
7489
7489
|
if (r instanceof se && !r.empty || n.indexOf("s") > -1 || jt && n.indexOf("m") > -1)
|
|
7490
7490
|
return !1;
|
|
@@ -7500,7 +7500,7 @@ function Bf(t, e, n) {
|
|
|
7500
7500
|
}
|
|
7501
7501
|
return !1;
|
|
7502
7502
|
}
|
|
7503
|
-
function
|
|
7503
|
+
function zf(t, e) {
|
|
7504
7504
|
if (!(t.state.selection instanceof se))
|
|
7505
7505
|
return !0;
|
|
7506
7506
|
let { $head: n, $anchor: r, empty: i } = t.state.selection;
|
|
@@ -7517,7 +7517,7 @@ function Pf(t, e) {
|
|
|
7517
7517
|
}
|
|
7518
7518
|
return !1;
|
|
7519
7519
|
}
|
|
7520
|
-
function
|
|
7520
|
+
function Hf(t, e, n) {
|
|
7521
7521
|
t.domObserver.stop(), e.contentEditable = n, t.domObserver.start();
|
|
7522
7522
|
}
|
|
7523
7523
|
function tw(t) {
|
|
@@ -7526,7 +7526,7 @@ function tw(t) {
|
|
|
7526
7526
|
let { focusNode: e, focusOffset: n } = t.domSelectionRange();
|
|
7527
7527
|
if (e && e.nodeType == 1 && n == 0 && e.firstChild && e.firstChild.contentEditable == "false") {
|
|
7528
7528
|
let r = e.firstChild;
|
|
7529
|
-
|
|
7529
|
+
Hf(t, r, "true"), setTimeout(() => Hf(t, r, "false"), 20);
|
|
7530
7530
|
}
|
|
7531
7531
|
return !1;
|
|
7532
7532
|
}
|
|
@@ -7537,22 +7537,22 @@ function nw(t) {
|
|
|
7537
7537
|
function rw(t, e) {
|
|
7538
7538
|
let n = e.keyCode, r = nw(e);
|
|
7539
7539
|
if (n == 8 || jt && n == 72 && r == "c")
|
|
7540
|
-
return
|
|
7540
|
+
return zf(t, -1) || ni(t, -1);
|
|
7541
7541
|
if (n == 46 && !e.shiftKey || jt && n == 68 && r == "c")
|
|
7542
|
-
return
|
|
7542
|
+
return zf(t, 1) || ni(t, 1);
|
|
7543
7543
|
if (n == 13 || n == 27)
|
|
7544
7544
|
return !0;
|
|
7545
7545
|
if (n == 37 || jt && n == 66 && r == "c") {
|
|
7546
|
-
let i = n == 37 ?
|
|
7547
|
-
return
|
|
7546
|
+
let i = n == 37 ? Bf(t, t.state.selection.from) == "ltr" ? -1 : 1 : -1;
|
|
7547
|
+
return $f(t, i, r) || ni(t, i);
|
|
7548
7548
|
} else if (n == 39 || jt && n == 70 && r == "c") {
|
|
7549
|
-
let i = n == 39 ?
|
|
7550
|
-
return
|
|
7549
|
+
let i = n == 39 ? Bf(t, t.state.selection.from) == "ltr" ? 1 : -1 : 1;
|
|
7550
|
+
return $f(t, i, r) || ni(t, i);
|
|
7551
7551
|
} else {
|
|
7552
7552
|
if (n == 38 || jt && n == 80 && r == "c")
|
|
7553
|
-
return
|
|
7553
|
+
return Pf(t, -1, r) || ni(t, -1);
|
|
7554
7554
|
if (n == 40 || jt && n == 78 && r == "c")
|
|
7555
|
-
return tw(t) ||
|
|
7555
|
+
return tw(t) || Pf(t, 1, r) || ni(t, 1);
|
|
7556
7556
|
if (r == (jt ? "m" : "c") && (n == 66 || n == 73 || n == 89 || n == 90))
|
|
7557
7557
|
return !0;
|
|
7558
7558
|
}
|
|
@@ -7630,14 +7630,14 @@ function Hm(t, e, n, r, i) {
|
|
|
7630
7630
|
return f.nodeName == "BR" && !f.nextSibling && f.parentNode && !iw.test(f.parentNode.nodeName) ? { ignore: !0 } : null;
|
|
7631
7631
|
}
|
|
7632
7632
|
})), u)
|
|
7633
|
-
a = cw(
|
|
7633
|
+
a = cw(Ff(a, +u[1], +u[2]), u[4]);
|
|
7634
7634
|
else if (a = j.maxOpen(sw(a.content, i), !0), a.openStart || a.openEnd) {
|
|
7635
7635
|
let d = 0, f = 0;
|
|
7636
7636
|
for (let h = a.content.firstChild; d < a.openStart && !h.type.spec.isolating; d++, h = h.firstChild)
|
|
7637
7637
|
;
|
|
7638
7638
|
for (let h = a.content.lastChild; f < a.openEnd && !h.type.spec.isolating; f++, h = h.lastChild)
|
|
7639
7639
|
;
|
|
7640
|
-
a =
|
|
7640
|
+
a = Ff(a, d, f);
|
|
7641
7641
|
}
|
|
7642
7642
|
return t.someProp("transformPasted", (d) => {
|
|
7643
7643
|
a = d(a, t, l);
|
|
@@ -7691,7 +7691,7 @@ function yc(t, e, n, r, i, s) {
|
|
|
7691
7691
|
let o = e < 0 ? t.firstChild : t.lastChild, a = o.content;
|
|
7692
7692
|
return t.childCount > 1 && (s = 0), i < r - 1 && (a = yc(a, e, n, r, i + 1, s)), i >= n && (a = e < 0 ? o.contentMatchAt(0).fillBefore(a, s <= i).append(a) : a.append(o.contentMatchAt(o.childCount).fillBefore($.empty, !0))), t.replaceChild(e < 0 ? 0 : t.childCount - 1, o.copy(a));
|
|
7693
7693
|
}
|
|
7694
|
-
function
|
|
7694
|
+
function Ff(t, e, n) {
|
|
7695
7695
|
return e < t.openStart && (t = new j(yc(t.content, -1, e, t.openStart, 0, t.openEnd), e, t.openEnd)), n < t.openEnd && (t = new j(yc(t.content, 1, n, t.openEnd, 0, 0), t.openStart, n)), t;
|
|
7696
7696
|
}
|
|
7697
7697
|
const Vm = {
|
|
@@ -7705,9 +7705,9 @@ const Vm = {
|
|
|
7705
7705
|
td: ["table", "tbody", "tr"],
|
|
7706
7706
|
th: ["table", "tbody", "tr"]
|
|
7707
7707
|
};
|
|
7708
|
-
let
|
|
7708
|
+
let Uf = null;
|
|
7709
7709
|
function Km() {
|
|
7710
|
-
return
|
|
7710
|
+
return Uf || (Uf = document.implementation.createHTMLDocument("title"));
|
|
7711
7711
|
}
|
|
7712
7712
|
let Nl = null;
|
|
7713
7713
|
function ow(t) {
|
|
@@ -8663,17 +8663,17 @@ function hu(t) {
|
|
|
8663
8663
|
for (let i = n + 1; i < e.length; i++) {
|
|
8664
8664
|
let s = e[i];
|
|
8665
8665
|
if (s.from == r.from) {
|
|
8666
|
-
s.to != r.to && (e == t && (e = t.slice()), e[i] = s.copy(s.from, r.to),
|
|
8666
|
+
s.to != r.to && (e == t && (e = t.slice()), e[i] = s.copy(s.from, r.to), Wf(e, i + 1, s.copy(r.to, s.to)));
|
|
8667
8667
|
continue;
|
|
8668
8668
|
} else {
|
|
8669
|
-
s.from < r.to && (e == t && (e = t.slice()), e[n] = r.copy(r.from, s.from),
|
|
8669
|
+
s.from < r.to && (e == t && (e = t.slice()), e[n] = r.copy(r.from, s.from), Wf(e, i, r.copy(s.from, r.to)));
|
|
8670
8670
|
break;
|
|
8671
8671
|
}
|
|
8672
8672
|
}
|
|
8673
8673
|
}
|
|
8674
8674
|
return e;
|
|
8675
8675
|
}
|
|
8676
|
-
function
|
|
8676
|
+
function Wf(t, e, n) {
|
|
8677
8677
|
for (; e < t.length && $r(n, t[e]) > 0; )
|
|
8678
8678
|
e++;
|
|
8679
8679
|
t.splice(e, 0, n);
|
|
@@ -8750,7 +8750,7 @@ class $w {
|
|
|
8750
8750
|
this.suppressingSelectionUpdates = !0, setTimeout(() => this.suppressingSelectionUpdates = !1, 50);
|
|
8751
8751
|
}
|
|
8752
8752
|
onSelectionChange() {
|
|
8753
|
-
if (
|
|
8753
|
+
if (Df(this.view)) {
|
|
8754
8754
|
if (this.suppressingSelectionUpdates)
|
|
8755
8755
|
return Wn(this.view);
|
|
8756
8756
|
if ($t && fr <= 11 && !this.view.state.selection.empty) {
|
|
@@ -8794,7 +8794,7 @@ class $w {
|
|
|
8794
8794
|
return;
|
|
8795
8795
|
let n = this.pendingRecords();
|
|
8796
8796
|
n.length && (this.queue = []);
|
|
8797
|
-
let r = e.domSelectionRange(), i = !this.suppressingSelectionUpdates && !this.currentSelection.eq(r) &&
|
|
8797
|
+
let r = e.domSelectionRange(), i = !this.suppressingSelectionUpdates && !this.currentSelection.eq(r) && Df(e) && !this.ignoreSelectionChange(r), s = -1, o = -1, a = !1, l = [];
|
|
8798
8798
|
if (e.editable)
|
|
8799
8799
|
for (let u = 0; u < n.length; u++) {
|
|
8800
8800
|
let d = this.registerMutation(n[u], l);
|
|
@@ -8849,15 +8849,15 @@ class $w {
|
|
|
8849
8849
|
});
|
|
8850
8850
|
}
|
|
8851
8851
|
}
|
|
8852
|
-
let
|
|
8852
|
+
let Vf = /* @__PURE__ */ new WeakMap(), Kf = !1;
|
|
8853
8853
|
function Bw(t) {
|
|
8854
|
-
if (!
|
|
8855
|
-
if (t.requiresGeckoHackNode = Xt,
|
|
8854
|
+
if (!Vf.has(t) && (Vf.set(t, null), ["normal", "nowrap", "pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace) !== -1)) {
|
|
8855
|
+
if (t.requiresGeckoHackNode = Xt, Kf)
|
|
8856
8856
|
return;
|
|
8857
|
-
|
|
8857
|
+
Kf = !0;
|
|
8858
8858
|
}
|
|
8859
8859
|
}
|
|
8860
|
-
function
|
|
8860
|
+
function qf(t, e) {
|
|
8861
8861
|
let n = e.startContainer, r = e.startOffset, i = e.endContainer, s = e.endOffset, o = t.domAtPos(t.state.selection.anchor);
|
|
8862
8862
|
return Ur(o.node, o.offset, i, s) && ([n, r, i, s] = [i, s, n, r]), { anchorNode: n, anchorOffset: r, focusNode: i, focusOffset: s };
|
|
8863
8863
|
}
|
|
@@ -8865,13 +8865,13 @@ function Pw(t, e) {
|
|
|
8865
8865
|
if (e.getComposedRanges) {
|
|
8866
8866
|
let i = e.getComposedRanges(t.root)[0];
|
|
8867
8867
|
if (i)
|
|
8868
|
-
return
|
|
8868
|
+
return qf(t, i);
|
|
8869
8869
|
}
|
|
8870
8870
|
let n;
|
|
8871
8871
|
function r(i) {
|
|
8872
8872
|
i.preventDefault(), i.stopImmediatePropagation(), n = i.getTargetRanges()[0];
|
|
8873
8873
|
}
|
|
8874
|
-
return t.dom.addEventListener("beforeinput", r, !0), document.execCommand("indent"), t.dom.removeEventListener("beforeinput", r, !0), n ?
|
|
8874
|
+
return t.dom.addEventListener("beforeinput", r, !0), document.execCommand("indent"), t.dom.removeEventListener("beforeinput", r, !0), n ? qf(t, n) : null;
|
|
8875
8875
|
}
|
|
8876
8876
|
function zw(t, e) {
|
|
8877
8877
|
for (let n = e.parentNode; n && n != t.dom; n = n.parentNode) {
|
|
@@ -8951,7 +8951,7 @@ function Ww(t, e, n, r, i) {
|
|
|
8951
8951
|
p = { start: l.from, endA: l.to, endB: l.to };
|
|
8952
8952
|
else {
|
|
8953
8953
|
if (c.sel) {
|
|
8954
|
-
let _ =
|
|
8954
|
+
let _ = Gf(t, t.state.doc, c.sel);
|
|
8955
8955
|
if (_ && !_.eq(t.state.selection)) {
|
|
8956
8956
|
let P = t.state.tr.setSelection(_);
|
|
8957
8957
|
s && P.setMeta("composition", s), t.dispatch(P);
|
|
@@ -8977,7 +8977,7 @@ function Ww(t, e, n, r, i) {
|
|
|
8977
8977
|
let C = p.start, T = p.endA, O = (_) => {
|
|
8978
8978
|
let P = _ || t.state.tr.replace(C, T, c.doc.slice(p.start - c.from, p.endB - c.from));
|
|
8979
8979
|
if (c.sel) {
|
|
8980
|
-
let K =
|
|
8980
|
+
let K = Gf(t, P.doc, c.sel);
|
|
8981
8981
|
K && !(xt && t.composing && K.empty && (p.start != p.endB || t.input.lastChromeDelete < Date.now() - 100) && (K.head == C || K.head == P.mapping.map(T) - 1) || $t && K.empty && K.head == C) && P.setSelection(K);
|
|
8982
8982
|
}
|
|
8983
8983
|
return s && P.setMeta("composition", s), P.scrollIntoView();
|
|
@@ -9001,7 +9001,7 @@ function Ww(t, e, n, r, i) {
|
|
|
9001
9001
|
else
|
|
9002
9002
|
t.dispatch(O());
|
|
9003
9003
|
}
|
|
9004
|
-
function
|
|
9004
|
+
function Gf(t, e, n) {
|
|
9005
9005
|
return Math.max(n.anchor, n.head) > e.content.size ? null : au(t, e.resolve(n.anchor), e.resolve(n.head));
|
|
9006
9006
|
}
|
|
9007
9007
|
function Vw(t, e) {
|
|
@@ -9061,14 +9061,14 @@ function qw(t, e, n, r, i) {
|
|
|
9061
9061
|
}
|
|
9062
9062
|
if (o < s && t.size < e.size) {
|
|
9063
9063
|
let l = r <= s && r >= o ? s - r : 0;
|
|
9064
|
-
s -= l, s && s < e.size &&
|
|
9064
|
+
s -= l, s && s < e.size && jf(e.textBetween(s - 1, s + 1)) && (s += l ? 1 : -1), a = s + (a - o), o = s;
|
|
9065
9065
|
} else if (a < s) {
|
|
9066
9066
|
let l = r <= s && r >= a ? s - r : 0;
|
|
9067
|
-
s -= l, s && s < t.size &&
|
|
9067
|
+
s -= l, s && s < t.size && jf(t.textBetween(s - 1, s + 1)) && (s += l ? 1 : -1), o = s + (o - a), a = s;
|
|
9068
9068
|
}
|
|
9069
9069
|
return { start: s, endA: o, endB: a };
|
|
9070
9070
|
}
|
|
9071
|
-
function
|
|
9071
|
+
function jf(t) {
|
|
9072
9072
|
if (t.length != 2)
|
|
9073
9073
|
return !1;
|
|
9074
9074
|
let e = t.charCodeAt(0), n = t.charCodeAt(1);
|
|
@@ -9083,7 +9083,7 @@ class ng {
|
|
|
9083
9083
|
added to the document.
|
|
9084
9084
|
*/
|
|
9085
9085
|
constructor(e, n) {
|
|
9086
|
-
this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new dw(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(
|
|
9086
|
+
this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new dw(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(Qf), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = Jf(this), Xf(this), this.nodeViews = Zf(this), this.docView = Nf(this.state.doc, Yf(this), Al(this), this.dom, this), this.domObserver = new $w(this, (r, i, s, o) => Ww(this, r, i, s, o)), this.domObserver.start(), fw(this), this.updatePluginViews();
|
|
9087
9087
|
}
|
|
9088
9088
|
/**
|
|
9089
9089
|
Holds `true` when a
|
|
@@ -9113,7 +9113,7 @@ class ng {
|
|
|
9113
9113
|
update(e) {
|
|
9114
9114
|
e.handleDOMEvents != this._props.handleDOMEvents && wc(this);
|
|
9115
9115
|
let n = this._props;
|
|
9116
|
-
this._props = e, e.plugins && (e.plugins.forEach(
|
|
9116
|
+
this._props = e, e.plugins && (e.plugins.forEach(Qf), this.directPlugins = e.plugins), this.updateStateInner(e.state, n);
|
|
9117
9117
|
}
|
|
9118
9118
|
/**
|
|
9119
9119
|
Update the view by updating existing props object with the object
|
|
@@ -9142,11 +9142,11 @@ class ng {
|
|
|
9142
9142
|
e.storedMarks && this.composing && (Ym(this), o = !0), this.state = e;
|
|
9143
9143
|
let a = i.plugins != e.plugins || this._props.plugins != n.plugins;
|
|
9144
9144
|
if (a || this._props.plugins != n.plugins || this._props.nodeViews != n.nodeViews) {
|
|
9145
|
-
let h =
|
|
9145
|
+
let h = Zf(this);
|
|
9146
9146
|
jw(h, this.nodeViews) && (this.nodeViews = h, s = !0);
|
|
9147
9147
|
}
|
|
9148
|
-
(a || n.handleDOMEvents != this._props.handleDOMEvents) && wc(this), this.editable =
|
|
9149
|
-
let l = Al(this), c =
|
|
9148
|
+
(a || n.handleDOMEvents != this._props.handleDOMEvents) && wc(this), this.editable = Jf(this), Xf(this);
|
|
9149
|
+
let l = Al(this), c = Yf(this), u = i.plugins != e.plugins && !i.doc.eq(e.doc) ? "reset" : e.scrollToSelection > i.scrollToSelection ? "to selection" : "preserve", d = s || !this.docView.matchesNode(e.doc, c, l);
|
|
9150
9150
|
(d || !e.selection.eq(i.selection)) && (o = !0);
|
|
9151
9151
|
let f = u == "preserve" && o && this.dom.style.overflowAnchor == null && Cy(this);
|
|
9152
9152
|
if (o) {
|
|
@@ -9154,7 +9154,7 @@ class ng {
|
|
|
9154
9154
|
let h = d && ($t || xt) && !this.composing && !i.selection.empty && !e.selection.empty && Gw(i.selection, e.selection);
|
|
9155
9155
|
if (d) {
|
|
9156
9156
|
let p = xt ? this.trackWrites = this.domSelectionRange().focusNode : null;
|
|
9157
|
-
this.composing && (this.input.compositionNode = Mw(this)), (s || !this.docView.update(e.doc, c, l, this)) && (this.docView.updateOuterDeco(c), this.docView.destroy(), this.docView =
|
|
9157
|
+
this.composing && (this.input.compositionNode = Mw(this)), (s || !this.docView.update(e.doc, c, l, this)) && (this.docView.updateOuterDeco(c), this.docView.destroy(), this.docView = Nf(e.doc, c, l, this.dom, this)), p && !this.trackWrites && (h = !0);
|
|
9158
9158
|
}
|
|
9159
9159
|
h || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && Xy(this)) ? Wn(this, h) : (Bm(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
|
|
9160
9160
|
}
|
|
@@ -9168,9 +9168,9 @@ class ng {
|
|
|
9168
9168
|
if (!(!e || !this.dom.contains(e.nodeType == 1 ? e : e.parentNode))) {
|
|
9169
9169
|
if (!this.someProp("handleScrollToSelection", (n) => n(this))) if (this.state.selection instanceof oe) {
|
|
9170
9170
|
let n = this.docView.domAfterPos(this.state.selection.from);
|
|
9171
|
-
n.nodeType == 1 &&
|
|
9171
|
+
n.nodeType == 1 && xf(this, n.getBoundingClientRect(), e);
|
|
9172
9172
|
} else
|
|
9173
|
-
|
|
9173
|
+
xf(this, this.coordsAtPos(this.state.selection.head, 1), e);
|
|
9174
9174
|
}
|
|
9175
9175
|
}
|
|
9176
9176
|
destroyPluginViews() {
|
|
@@ -9410,7 +9410,7 @@ ng.prototype.dispatch = function(t) {
|
|
|
9410
9410
|
let e = this._props.dispatchTransaction;
|
|
9411
9411
|
e ? e.call(this, t) : this.updateState(this.state.apply(t));
|
|
9412
9412
|
};
|
|
9413
|
-
function
|
|
9413
|
+
function Yf(t) {
|
|
9414
9414
|
let e = /* @__PURE__ */ Object.create(null);
|
|
9415
9415
|
return e.class = "ProseMirror", e.contenteditable = String(t.editable), t.someProp("attributes", (n) => {
|
|
9416
9416
|
if (typeof n == "function" && (n = n(t.state)), n)
|
|
@@ -9418,21 +9418,21 @@ function jf(t) {
|
|
|
9418
9418
|
r == "class" ? e.class += " " + n[r] : r == "style" ? e.style = (e.style ? e.style + ";" : "") + n[r] : !e[r] && r != "contenteditable" && r != "nodeName" && (e[r] = String(n[r]));
|
|
9419
9419
|
}), e.translate || (e.translate = "no"), [lt.node(0, t.state.doc.content.size, e)];
|
|
9420
9420
|
}
|
|
9421
|
-
function
|
|
9421
|
+
function Xf(t) {
|
|
9422
9422
|
if (t.markCursor) {
|
|
9423
9423
|
let e = document.createElement("img");
|
|
9424
9424
|
e.className = "ProseMirror-separator", e.setAttribute("mark-placeholder", "true"), e.setAttribute("alt", ""), t.cursorWrapper = { dom: e, deco: lt.widget(t.state.selection.from, e, { raw: !0, marks: t.markCursor }) };
|
|
9425
9425
|
} else
|
|
9426
9426
|
t.cursorWrapper = null;
|
|
9427
9427
|
}
|
|
9428
|
-
function
|
|
9428
|
+
function Jf(t) {
|
|
9429
9429
|
return !t.someProp("editable", (e) => e(t.state) === !1);
|
|
9430
9430
|
}
|
|
9431
9431
|
function Gw(t, e) {
|
|
9432
9432
|
let n = Math.min(t.$anchor.sharedDepth(t.head), e.$anchor.sharedDepth(e.head));
|
|
9433
9433
|
return t.$anchor.start(n) != e.$anchor.start(n);
|
|
9434
9434
|
}
|
|
9435
|
-
function
|
|
9435
|
+
function Zf(t) {
|
|
9436
9436
|
let e = /* @__PURE__ */ Object.create(null);
|
|
9437
9437
|
function n(r) {
|
|
9438
9438
|
for (let i in r)
|
|
@@ -9451,7 +9451,7 @@ function jw(t, e) {
|
|
|
9451
9451
|
r++;
|
|
9452
9452
|
return n != r;
|
|
9453
9453
|
}
|
|
9454
|
-
function
|
|
9454
|
+
function Qf(t) {
|
|
9455
9455
|
if (t.spec.state || t.spec.filterTransaction || t.spec.appendTransaction)
|
|
9456
9456
|
throw new RangeError("Plugins passed directly to the view must not have a state component");
|
|
9457
9457
|
}
|
|
@@ -9833,7 +9833,7 @@ function ig(t, e, n = {}) {
|
|
|
9833
9833
|
n
|
|
9834
9834
|
));
|
|
9835
9835
|
}
|
|
9836
|
-
function
|
|
9836
|
+
function eh(t, e, n = {}) {
|
|
9837
9837
|
return !!ig(t, e, n);
|
|
9838
9838
|
}
|
|
9839
9839
|
function bu(t, e, n) {
|
|
@@ -9844,9 +9844,9 @@ function bu(t, e, n) {
|
|
|
9844
9844
|
if ((!i.node || !i.node.marks.some((u) => u.type === e)) && (i = t.parent.childBefore(t.parentOffset)), !i.node || !i.node.marks.some((u) => u.type === e) || (n = n || ((r = i.node.marks[0]) == null ? void 0 : r.attrs), !ig([...i.node.marks], e, n)))
|
|
9845
9845
|
return;
|
|
9846
9846
|
let o = i.index, a = t.start() + i.offset, l = o + 1, c = a + i.node.nodeSize;
|
|
9847
|
-
for (; o > 0 &&
|
|
9847
|
+
for (; o > 0 && eh([...t.parent.child(o - 1).marks], e, n); )
|
|
9848
9848
|
o -= 1, a -= t.parent.child(o).nodeSize;
|
|
9849
|
-
for (; l < t.parent.childCount &&
|
|
9849
|
+
for (; l < t.parent.childCount && eh([...t.parent.child(l).marks], e, n); )
|
|
9850
9850
|
c += t.parent.child(l).nodeSize, l += 1;
|
|
9851
9851
|
return {
|
|
9852
9852
|
from: a,
|
|
@@ -10144,7 +10144,7 @@ var LE = (t, e = {}) => ({ state: n, dispatch: r }) => {
|
|
|
10144
10144
|
function ma(t, e) {
|
|
10145
10145
|
return e.nodes[t] ? "node" : e.marks[t] ? "mark" : null;
|
|
10146
10146
|
}
|
|
10147
|
-
function
|
|
10147
|
+
function th(t, e) {
|
|
10148
10148
|
const n = typeof e == "string" ? [e] : e;
|
|
10149
10149
|
return Object.keys(t).reduce((r, i) => (n.includes(i) || (r[i] = t[i]), r), {});
|
|
10150
10150
|
}
|
|
@@ -10156,8 +10156,8 @@ var PE = (t, e) => ({ tr: n, state: r, dispatch: i }) => {
|
|
|
10156
10156
|
);
|
|
10157
10157
|
return a ? (a === "node" && (s = ot(t, r.schema)), a === "mark" && (o = Vn(t, r.schema)), i && n.selection.ranges.forEach((l) => {
|
|
10158
10158
|
r.doc.nodesBetween(l.$from.pos, l.$to.pos, (c, u) => {
|
|
10159
|
-
s && s === c.type && n.setNodeMarkup(u, void 0,
|
|
10160
|
-
o === d.type && n.addMark(u, u + c.nodeSize, o.create(
|
|
10159
|
+
s && s === c.type && n.setNodeMarkup(u, void 0, th(c.attrs, e)), o && c.marks.length && c.marks.forEach((d) => {
|
|
10160
|
+
o === d.type && n.addMark(u, u + c.nodeSize, o.create(th(d.attrs, e)));
|
|
10161
10161
|
});
|
|
10162
10162
|
});
|
|
10163
10163
|
}), !0) : !1;
|
|
@@ -10378,7 +10378,7 @@ function Eo(t, e) {
|
|
|
10378
10378
|
function XE(t) {
|
|
10379
10379
|
return typeof t != "string" ? t : t.match(/^[+-]?(?:\d*\.)?\d+$/) ? Number(t) : t === "true" ? !0 : t === "false" ? !1 : t;
|
|
10380
10380
|
}
|
|
10381
|
-
function
|
|
10381
|
+
function nh(t, e) {
|
|
10382
10382
|
return "style" in t ? t : {
|
|
10383
10383
|
...t,
|
|
10384
10384
|
getAttrs: (n) => {
|
|
@@ -10396,13 +10396,13 @@ function th(t, e) {
|
|
|
10396
10396
|
}
|
|
10397
10397
|
};
|
|
10398
10398
|
}
|
|
10399
|
-
function
|
|
10399
|
+
function rh(t) {
|
|
10400
10400
|
return Object.fromEntries(
|
|
10401
10401
|
// @ts-ignore
|
|
10402
10402
|
Object.entries(t).filter(([e, n]) => e === "attrs" && YE(n) ? !1 : n != null)
|
|
10403
10403
|
);
|
|
10404
10404
|
}
|
|
10405
|
-
function
|
|
10405
|
+
function ih(t) {
|
|
10406
10406
|
var e, n, r;
|
|
10407
10407
|
const i = {};
|
|
10408
10408
|
return !((e = t == null ? void 0 : t.attribute) != null && e.isRequired) && ((n = t == null ? void 0 : t.attribute) == null ? void 0 : n.default) !== void 0 && (i.default = t.attribute.default), ((r = t == null ? void 0 : t.attribute) == null ? void 0 : r.validate) !== void 0 && (i.validate = t.attribute.validate), [t.name, i];
|
|
@@ -10422,7 +10422,7 @@ function JE(t, e) {
|
|
|
10422
10422
|
...v,
|
|
10423
10423
|
...C ? C(c) : {}
|
|
10424
10424
|
};
|
|
10425
|
-
}, {}), h =
|
|
10425
|
+
}, {}), h = rh({
|
|
10426
10426
|
...f,
|
|
10427
10427
|
content: De(le(c, "content", d)),
|
|
10428
10428
|
marks: De(le(c, "marks", d)),
|
|
@@ -10438,10 +10438,10 @@ function JE(t, e) {
|
|
|
10438
10438
|
),
|
|
10439
10439
|
defining: De(le(c, "defining", d)),
|
|
10440
10440
|
isolating: De(le(c, "isolating", d)),
|
|
10441
|
-
attrs: Object.fromEntries(u.map(
|
|
10441
|
+
attrs: Object.fromEntries(u.map(ih))
|
|
10442
10442
|
}), p = De(le(c, "parseHTML", d));
|
|
10443
10443
|
p && (h.parseDOM = p.map(
|
|
10444
|
-
(v) =>
|
|
10444
|
+
(v) => nh(v, u)
|
|
10445
10445
|
));
|
|
10446
10446
|
const g = le(c, "renderHTML", d);
|
|
10447
10447
|
g && (h.toDOM = (v) => g({
|
|
@@ -10464,17 +10464,17 @@ function JE(t, e) {
|
|
|
10464
10464
|
...m,
|
|
10465
10465
|
...k ? k(c) : {}
|
|
10466
10466
|
};
|
|
10467
|
-
}, {}), h =
|
|
10467
|
+
}, {}), h = rh({
|
|
10468
10468
|
...f,
|
|
10469
10469
|
inclusive: De(le(c, "inclusive", d)),
|
|
10470
10470
|
excludes: De(le(c, "excludes", d)),
|
|
10471
10471
|
group: De(le(c, "group", d)),
|
|
10472
10472
|
spanning: De(le(c, "spanning", d)),
|
|
10473
10473
|
code: De(le(c, "code", d)),
|
|
10474
|
-
attrs: Object.fromEntries(u.map(
|
|
10474
|
+
attrs: Object.fromEntries(u.map(ih))
|
|
10475
10475
|
}), p = De(le(c, "parseHTML", d));
|
|
10476
10476
|
p && (h.parseDOM = p.map(
|
|
10477
|
-
(m) =>
|
|
10477
|
+
(m) => nh(m, u)
|
|
10478
10478
|
));
|
|
10479
10479
|
const g = le(c, "renderHTML", d);
|
|
10480
10480
|
return g && (h.toDOM = (m) => g({
|
|
@@ -10689,10 +10689,10 @@ var ok = (t, e) => {
|
|
|
10689
10689
|
const { $from: e, $to: n } = t.selection;
|
|
10690
10690
|
return !(e.parentOffset > 0 || e.pos !== n.pos);
|
|
10691
10691
|
};
|
|
10692
|
-
function
|
|
10692
|
+
function sh(t, e) {
|
|
10693
10693
|
return Array.isArray(e) ? e.some((n) => (typeof n == "string" ? n : n.name) === t.name) : e;
|
|
10694
10694
|
}
|
|
10695
|
-
function
|
|
10695
|
+
function oh(t, e) {
|
|
10696
10696
|
const { nodeExtensions: n } = as(e), r = n.find((o) => o.name === t);
|
|
10697
10697
|
if (!r)
|
|
10698
10698
|
return !1;
|
|
@@ -10801,7 +10801,7 @@ var uk = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
|
|
|
10801
10801
|
}, dk = (t, e) => ({ tr: n }) => (n.setMeta(t, e), !0), fk = (t, e = {}) => ({ state: n, dispatch: r, chain: i }) => {
|
|
10802
10802
|
const s = ot(t, n.schema);
|
|
10803
10803
|
let o;
|
|
10804
|
-
return n.selection.$anchor.sameParent(n.selection.$head) && (o = n.selection.$anchor.parent.attrs), s.isTextblock ? i().command(({ commands: a }) =>
|
|
10804
|
+
return n.selection.$anchor.sameParent(n.selection.$head) && (o = n.selection.$anchor.parent.attrs), s.isTextblock ? i().command(({ commands: a }) => wf(s, { ...o, ...e })(n) ? !0 : a.clearNodes()).command(({ state: a }) => wf(s, { ...o, ...e })(a, r)).run() : (He('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
|
|
10805
10805
|
}, hk = (t) => ({ tr: e, dispatch: n }) => {
|
|
10806
10806
|
if (n) {
|
|
10807
10807
|
const { doc: r } = e, i = Hn(t, 0, r.content.size), s = oe.create(r, i);
|
|
@@ -10818,7 +10818,7 @@ var uk = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
|
|
|
10818
10818
|
const r = ot(t, e.schema);
|
|
10819
10819
|
return py(r)(e, n);
|
|
10820
10820
|
};
|
|
10821
|
-
function
|
|
10821
|
+
function ah(t, e) {
|
|
10822
10822
|
const n = t.storedMarks || t.selection.$to.parentOffset && t.selection.$from.marks();
|
|
10823
10823
|
if (n) {
|
|
10824
10824
|
const r = n.filter((i) => e == null ? void 0 : e.includes(i.type.name));
|
|
@@ -10828,7 +10828,7 @@ function oh(t, e) {
|
|
|
10828
10828
|
var gk = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor: i }) => {
|
|
10829
10829
|
const { selection: s, doc: o } = e, { $from: a, $to: l } = s, c = i.extensionManager.attributes, u = no(c, a.node().type.name, a.node().attrs);
|
|
10830
10830
|
if (s instanceof oe && s.node.isBlock)
|
|
10831
|
-
return !a.parentOffset || !Un(o, a.pos) ? !1 : (r && (t &&
|
|
10831
|
+
return !a.parentOffset || !Un(o, a.pos) ? !1 : (r && (t && ah(n, i.extensionManager.splittableMarks), e.split(a.pos).scrollIntoView()), !0);
|
|
10832
10832
|
if (!a.parent.isBlock)
|
|
10833
10833
|
return !1;
|
|
10834
10834
|
const d = l.parentOffset === l.parent.content.size, f = a.depth === 0 ? void 0 : GE(a.node(-1).contentMatchAt(a.indexAfter(-1)));
|
|
@@ -10848,7 +10848,7 @@ var gk = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
|
|
|
10848
10848
|
const g = e.mapping.map(a.before()), m = e.doc.resolve(g);
|
|
10849
10849
|
a.node(-1).canReplaceWith(m.index(), m.index() + 1, f) && e.setNodeMarkup(e.mapping.map(a.before()), f);
|
|
10850
10850
|
}
|
|
10851
|
-
t &&
|
|
10851
|
+
t && ah(n, i.extensionManager.splittableMarks), e.scrollIntoView();
|
|
10852
10852
|
}
|
|
10853
10853
|
return p;
|
|
10854
10854
|
}, bk = (t, e = {}) => ({ tr: n, state: r, dispatch: i, editor: s }) => {
|
|
@@ -10931,11 +10931,11 @@ var gk = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
|
|
|
10931
10931
|
const { extensions: d, splittableMarks: f } = i.extensionManager, h = ot(t, o.schema), p = ot(e, o.schema), { selection: g, storedMarks: m } = o, { $from: v, $to: k } = g, C = v.blockRange(k), T = m || g.$to.parentOffset && g.$from.marks();
|
|
10932
10932
|
if (!C)
|
|
10933
10933
|
return !1;
|
|
10934
|
-
const O = ga((R) =>
|
|
10934
|
+
const O = ga((R) => oh(R.type.name, d))(g);
|
|
10935
10935
|
if (C.depth >= 1 && O && C.depth - O.depth <= 1) {
|
|
10936
10936
|
if (O.node.type === h)
|
|
10937
10937
|
return c.liftListItem(p);
|
|
10938
|
-
if (
|
|
10938
|
+
if (oh(O.node.type.name, d) && h.validContent(O.node.content) && a)
|
|
10939
10939
|
return l().command(() => (s.setNodeMarkup(O.pos, h), !0)).command(() => Dl(s, h)).command(() => $l(s, h)).run();
|
|
10940
10940
|
}
|
|
10941
10941
|
return !n || !T || !a ? l().command(() => u().wrapInList(h, r) ? !0 : c.clearNodes()).wrapInList(h, r).command(() => Dl(s, h)).command(() => $l(s, h)).run() : l().command(() => {
|
|
@@ -11480,7 +11480,7 @@ var va = class {
|
|
|
11480
11480
|
const l = nE(a);
|
|
11481
11481
|
s.push(l);
|
|
11482
11482
|
const c = le(r, "addInputRules", i);
|
|
11483
|
-
if (
|
|
11483
|
+
if (sh(r, t.options.enableInputRules) && c) {
|
|
11484
11484
|
const f = c();
|
|
11485
11485
|
if (f && f.length) {
|
|
11486
11486
|
const h = Ak({
|
|
@@ -11491,7 +11491,7 @@ var va = class {
|
|
|
11491
11491
|
}
|
|
11492
11492
|
}
|
|
11493
11493
|
const u = le(r, "addPasteRules", i);
|
|
11494
|
-
if (
|
|
11494
|
+
if (sh(r, t.options.enablePasteRules) && u) {
|
|
11495
11495
|
const f = u();
|
|
11496
11496
|
if (f && f.length) {
|
|
11497
11497
|
const h = Bk({ editor: t, rules: f });
|
|
@@ -13379,7 +13379,7 @@ function vr(t) {
|
|
|
13379
13379
|
}
|
|
13380
13380
|
});
|
|
13381
13381
|
}
|
|
13382
|
-
function
|
|
13382
|
+
function lh(t) {
|
|
13383
13383
|
return U1((e, n) => ({
|
|
13384
13384
|
get() {
|
|
13385
13385
|
return e(), t;
|
|
@@ -13395,7 +13395,7 @@ function ah(t) {
|
|
|
13395
13395
|
}
|
|
13396
13396
|
var ex = class extends Uk {
|
|
13397
13397
|
constructor(t = {}) {
|
|
13398
|
-
return super(t), this.contentComponent = null, this.appContext = null, this.reactiveState =
|
|
13398
|
+
return super(t), this.contentComponent = null, this.appContext = null, this.reactiveState = lh(this.view.state), this.reactiveExtensionStorage = lh(this.extensionStorage), this.on("beforeTransaction", ({ nextState: e }) => {
|
|
13399
13399
|
this.reactiveState.value = e, this.reactiveExtensionStorage.value = this.extensionStorage;
|
|
13400
13400
|
}), Tp(this);
|
|
13401
13401
|
}
|
|
@@ -13612,7 +13612,7 @@ var rx = {
|
|
|
13612
13612
|
template: this.component.template,
|
|
13613
13613
|
setup: (r) => {
|
|
13614
13614
|
var i, s;
|
|
13615
|
-
return
|
|
13615
|
+
return Zd("onDragStart", e), Zd("decorationClasses", this.decorationClasses), (s = (i = this.component).setup) == null ? void 0 : s.call(i, r, {
|
|
13616
13616
|
expose: () => {
|
|
13617
13617
|
}
|
|
13618
13618
|
});
|
|
@@ -14489,7 +14489,7 @@ Dt.prototype = {
|
|
|
14489
14489
|
return i.j[t] = o, o;
|
|
14490
14490
|
}
|
|
14491
14491
|
};
|
|
14492
|
-
const Ee = (t, e, n, r, i) => t.ta(e, n, r, i), Qe = (t, e, n, r, i) => t.tr(e, n, r, i),
|
|
14492
|
+
const Ee = (t, e, n, r, i) => t.ta(e, n, r, i), Qe = (t, e, n, r, i) => t.tr(e, n, r, i), ch = (t, e, n, r, i) => t.ts(e, n, r, i), H = (t, e, n, r, i) => t.tt(e, n, r, i), Dn = "WORD", Ac = "UWORD", Wg = "ASCIINUMERICAL", Vg = "ALPHANUMERICAL", ls = "LOCALHOST", Oc = "TLD", Rc = "UTLD", ro = "SCHEME", ui = "SLASH_SCHEME", Tu = "NUM", Ic = "WS", _u = "NL", qi = "OPENBRACE", Gi = "CLOSEBRACE", xo = "OPENBRACKET", So = "CLOSEBRACKET", Mo = "OPENPAREN", Co = "CLOSEPAREN", To = "OPENANGLEBRACKET", _o = "CLOSEANGLEBRACKET", No = "FULLWIDTHLEFTPAREN", Ao = "FULLWIDTHRIGHTPAREN", Oo = "LEFTCORNERBRACKET", Ro = "RIGHTCORNERBRACKET", Io = "LEFTWHITECORNERBRACKET", Lo = "RIGHTWHITECORNERBRACKET", Do = "FULLWIDTHLESSTHAN", $o = "FULLWIDTHGREATERTHAN", Bo = "AMPERSAND", Po = "APOSTROPHE", zo = "ASTERISK", er = "AT", Ho = "BACKSLASH", Fo = "BACKTICK", Uo = "CARET", rr = "COLON", Nu = "COMMA", Wo = "DOLLAR", yn = "DOT", Vo = "EQUALS", Au = "EXCLAMATION", Gt = "HYPHEN", ji = "PERCENT", Ko = "PIPE", qo = "PLUS", Go = "POUND", Yi = "QUERY", Ou = "QUOTE", Kg = "FULLWIDTHMIDDLEDOT", Ru = "SEMI", wn = "SLASH", Xi = "TILDE", jo = "UNDERSCORE", qg = "EMOJI", Yo = "SYM";
|
|
14493
14493
|
var Gg = /* @__PURE__ */ Object.freeze({
|
|
14494
14494
|
__proto__: null,
|
|
14495
14495
|
ALPHANUMERICAL: Vg,
|
|
@@ -14548,14 +14548,14 @@ var Gg = /* @__PURE__ */ Object.freeze({
|
|
|
14548
14548
|
WORD: Dn,
|
|
14549
14549
|
WS: Ic
|
|
14550
14550
|
});
|
|
14551
|
-
const Rn = /[a-z]/, Li = new RegExp("\\p{L}", "u"), zl = new RegExp("\\p{Emoji}", "u"), In = /\d/, Hl = /\s/,
|
|
14551
|
+
const Rn = /[a-z]/, Li = new RegExp("\\p{L}", "u"), zl = new RegExp("\\p{Emoji}", "u"), In = /\d/, Hl = /\s/, uh = "\r", Fl = `
|
|
14552
14552
|
`, Ax = "️", Ox = "", Ul = "";
|
|
14553
14553
|
let Bs = null, Ps = null;
|
|
14554
14554
|
function Rx(t = []) {
|
|
14555
14555
|
const e = {};
|
|
14556
14556
|
Dt.groups = e;
|
|
14557
14557
|
const n = new Dt();
|
|
14558
|
-
Bs == null && (Bs =
|
|
14558
|
+
Bs == null && (Bs = dh(Sx)), Ps == null && (Ps = dh(Mx)), H(n, "'", Po), H(n, "{", qi), H(n, "}", Gi), H(n, "[", xo), H(n, "]", So), H(n, "(", Mo), H(n, ")", Co), H(n, "<", To), H(n, ">", _o), H(n, "(", No), H(n, ")", Ao), H(n, "「", Oo), H(n, "」", Ro), H(n, "『", Io), H(n, "』", Lo), H(n, "<", Do), H(n, ">", $o), H(n, "&", Bo), H(n, "*", zo), H(n, "@", er), H(n, "`", Fo), H(n, "^", Uo), H(n, ":", rr), H(n, ",", Nu), H(n, "$", Wo), H(n, ".", yn), H(n, "=", Vo), H(n, "!", Au), H(n, "-", Gt), H(n, "%", ji), H(n, "|", Ko), H(n, "+", qo), H(n, "#", Go), H(n, "?", Yi), H(n, '"', Ou), H(n, "/", wn), H(n, ";", Ru), H(n, "~", Xi), H(n, "_", jo), H(n, "\\", Ho), H(n, "・", Kg);
|
|
14559
14559
|
const r = Qe(n, In, Tu, {
|
|
14560
14560
|
[Cc]: !0
|
|
14561
14561
|
});
|
|
@@ -14574,12 +14574,12 @@ function Rx(t = []) {
|
|
|
14574
14574
|
Qe(a, Rn), Qe(a, In, s), Qe(a, Li, a), Qe(s, In, s), Qe(s, Rn), Qe(s, Li, s);
|
|
14575
14575
|
const l = H(n, Fl, _u, {
|
|
14576
14576
|
[Pl]: !0
|
|
14577
|
-
}), c = H(n,
|
|
14577
|
+
}), c = H(n, uh, Ic, {
|
|
14578
14578
|
[Pl]: !0
|
|
14579
14579
|
}), u = Qe(n, Hl, Ic, {
|
|
14580
14580
|
[Pl]: !0
|
|
14581
14581
|
});
|
|
14582
|
-
H(n, Ul, u), H(c, Fl, l), H(c, Ul, u), Qe(c, Hl, u), H(u,
|
|
14582
|
+
H(n, Ul, u), H(c, Fl, l), H(c, Ul, u), Qe(c, Hl, u), H(u, uh), H(u, Fl), Qe(u, Hl, u), H(u, Ul, u);
|
|
14583
14583
|
const d = Qe(n, zl, qg, {
|
|
14584
14584
|
[Ug]: !0
|
|
14585
14585
|
});
|
|
@@ -14610,9 +14610,9 @@ function Rx(t = []) {
|
|
|
14610
14610
|
} : {
|
|
14611
14611
|
[Tx]: !0
|
|
14612
14612
|
};
|
|
14613
|
-
m.indexOf("-") >= 0 ? k[Nc] = !0 : Rn.test(m) ? In.test(m) ? k[Ki] = !0 : k[Tc] = !0 : k[Cc] = !0,
|
|
14613
|
+
m.indexOf("-") >= 0 ? k[Nc] = !0 : Rn.test(m) ? In.test(m) ? k[Ki] = !0 : k[Tc] = !0 : k[Cc] = !0, ch(n, m, m, k);
|
|
14614
14614
|
}
|
|
14615
|
-
return
|
|
14615
|
+
return ch(n, "localhost", ls, {
|
|
14616
14616
|
ascii: !0
|
|
14617
14617
|
}), n.jd = new Dt(Yo), {
|
|
14618
14618
|
start: n,
|
|
@@ -14659,7 +14659,7 @@ function Xn(t, e, n, r, i) {
|
|
|
14659
14659
|
}
|
|
14660
14660
|
return s = new Dt(n), s.jr = i.slice(), t.j[e[o - 1]] = s, s;
|
|
14661
14661
|
}
|
|
14662
|
-
function
|
|
14662
|
+
function dh(t) {
|
|
14663
14663
|
const e = [], n = [];
|
|
14664
14664
|
let r = 0, i = "0123456789";
|
|
14665
14665
|
for (; r < t.length; ) {
|
|
@@ -14679,8 +14679,8 @@ function uh(t) {
|
|
|
14679
14679
|
const cs = {
|
|
14680
14680
|
defaultProtocol: "http",
|
|
14681
14681
|
events: null,
|
|
14682
|
-
format:
|
|
14683
|
-
formatHref:
|
|
14682
|
+
format: fh,
|
|
14683
|
+
formatHref: fh,
|
|
14684
14684
|
nl2br: !1,
|
|
14685
14685
|
tagName: "a",
|
|
14686
14686
|
target: null,
|
|
@@ -14762,7 +14762,7 @@ Iu.prototype = {
|
|
|
14762
14762
|
return (this.get("render", null, t) || this.defaultRender)(e, t.t, t);
|
|
14763
14763
|
}
|
|
14764
14764
|
};
|
|
14765
|
-
function
|
|
14765
|
+
function fh(t) {
|
|
14766
14766
|
return t;
|
|
14767
14767
|
}
|
|
14768
14768
|
function Yg(t, e) {
|
|
@@ -14882,12 +14882,12 @@ function ya(t, e) {
|
|
|
14882
14882
|
n.prototype[r] = e[r];
|
|
14883
14883
|
return n.t = t, n;
|
|
14884
14884
|
}
|
|
14885
|
-
const
|
|
14885
|
+
const hh = ya("email", {
|
|
14886
14886
|
isLink: !0,
|
|
14887
14887
|
toHref() {
|
|
14888
14888
|
return "mailto:" + this.toString();
|
|
14889
14889
|
}
|
|
14890
|
-
}),
|
|
14890
|
+
}), ph = ya("text"), Lx = ya("nl"), zs = ya("url", {
|
|
14891
14891
|
isLink: !0,
|
|
14892
14892
|
/**
|
|
14893
14893
|
Lowercases relevant parts of the domain and adds the protocol if
|
|
@@ -14923,12 +14923,12 @@ function Dx({
|
|
|
14923
14923
|
Ee(c, t.domain, d), Ee(d, t.domain, d);
|
|
14924
14924
|
const f = H(d, yn);
|
|
14925
14925
|
Ee(f, t.domain, d);
|
|
14926
|
-
const h = Kt(
|
|
14926
|
+
const h = Kt(hh);
|
|
14927
14927
|
Ee(f, t.tld, h), Ee(f, t.utld, h), H(c, ls, h);
|
|
14928
14928
|
const p = H(d, Gt);
|
|
14929
14929
|
H(p, Gt, p), Ee(p, t.domain, d), Ee(h, t.domain, d), H(h, yn, f), H(h, Gt, p);
|
|
14930
14930
|
const g = H(h, rr);
|
|
14931
|
-
Ee(g, t.numeric,
|
|
14931
|
+
Ee(g, t.numeric, hh);
|
|
14932
14932
|
const m = H(o, Gt), v = H(o, yn);
|
|
14933
14933
|
H(m, Gt, m), Ee(m, t.domain, o), Ee(v, r, s), Ee(v, t.domain, o);
|
|
14934
14934
|
const k = Kt(zs);
|
|
@@ -14981,12 +14981,12 @@ function $x(t, e, n) {
|
|
|
14981
14981
|
if (f < 0)
|
|
14982
14982
|
i -= u, i < r && (o.push(n[i]), i++);
|
|
14983
14983
|
else {
|
|
14984
|
-
o.length > 0 && (s.push(Wl(
|
|
14984
|
+
o.length > 0 && (s.push(Wl(ph, e, o)), o = []), i -= f, u -= f;
|
|
14985
14985
|
const h = d.t, p = n.slice(i - u, i);
|
|
14986
14986
|
s.push(Wl(h, e, p));
|
|
14987
14987
|
}
|
|
14988
14988
|
}
|
|
14989
|
-
return o.length > 0 && s.push(Wl(
|
|
14989
|
+
return o.length > 0 && s.push(Wl(ph, e, o)), s;
|
|
14990
14990
|
}
|
|
14991
14991
|
function Wl(t, e, n) {
|
|
14992
14992
|
const r = n[0].s, i = n[n.length - 1].e, s = e.slice(r, i);
|
|
@@ -15004,7 +15004,7 @@ const Bx = typeof console < "u" && console && He || (() => {
|
|
|
15004
15004
|
function zx() {
|
|
15005
15005
|
return Dt.groups = {}, qe.scanner = null, qe.parser = null, qe.tokenQueue = [], qe.pluginQueue = [], qe.customSchemes = [], qe.initialized = !1, qe;
|
|
15006
15006
|
}
|
|
15007
|
-
function
|
|
15007
|
+
function mh(t, e = !1) {
|
|
15008
15008
|
if (qe.initialized && Bx(`linkifyjs: already initialized - will not register custom scheme "${t}" ${Px}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))
|
|
15009
15009
|
throw new Error(`linkifyjs: incorrect scheme format.
|
|
15010
15010
|
1. Must only contain digits, lowercase ASCII letters or "-"
|
|
@@ -15169,10 +15169,10 @@ var jx = cn.create({
|
|
|
15169
15169
|
onCreate() {
|
|
15170
15170
|
this.options.validate && !this.options.shouldAutoLink && (this.options.shouldAutoLink = this.options.validate, He("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")), this.options.protocols.forEach((t) => {
|
|
15171
15171
|
if (typeof t == "string") {
|
|
15172
|
-
|
|
15172
|
+
mh(t);
|
|
15173
15173
|
return;
|
|
15174
15174
|
}
|
|
15175
|
-
|
|
15175
|
+
mh(t.scheme, t.optionalSlashes);
|
|
15176
15176
|
});
|
|
15177
15177
|
},
|
|
15178
15178
|
onDestroy() {
|
|
@@ -15337,7 +15337,7 @@ var jx = cn.create({
|
|
|
15337
15337
|
}), Yx = Object.defineProperty, Xx = (t, e) => {
|
|
15338
15338
|
for (var n in e)
|
|
15339
15339
|
Yx(t, n, { get: e[n], enumerable: !0 });
|
|
15340
|
-
}, Jx = "listItem",
|
|
15340
|
+
}, Jx = "listItem", gh = "textStyle", bh = /^\s*([-+*])\s$/, Jg = Je.create({
|
|
15341
15341
|
name: "bulletList",
|
|
15342
15342
|
addOptions() {
|
|
15343
15343
|
return {
|
|
@@ -15369,7 +15369,7 @@ var jx = cn.create({
|
|
|
15369
15369
|
},
|
|
15370
15370
|
addCommands() {
|
|
15371
15371
|
return {
|
|
15372
|
-
toggleBulletList: () => ({ commands: t, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(Jx, this.editor.getAttributes(
|
|
15372
|
+
toggleBulletList: () => ({ commands: t, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(Jx, this.editor.getAttributes(gh)).run() : t.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
|
|
15373
15373
|
};
|
|
15374
15374
|
},
|
|
15375
15375
|
addKeyboardShortcuts() {
|
|
@@ -15379,15 +15379,15 @@ var jx = cn.create({
|
|
|
15379
15379
|
},
|
|
15380
15380
|
addInputRules() {
|
|
15381
15381
|
let t = Ei({
|
|
15382
|
-
find:
|
|
15382
|
+
find: bh,
|
|
15383
15383
|
type: this.type
|
|
15384
15384
|
});
|
|
15385
15385
|
return (this.options.keepMarks || this.options.keepAttributes) && (t = Ei({
|
|
15386
|
-
find:
|
|
15386
|
+
find: bh,
|
|
15387
15387
|
type: this.type,
|
|
15388
15388
|
keepMarks: this.options.keepMarks,
|
|
15389
15389
|
keepAttributes: this.options.keepAttributes,
|
|
15390
|
-
getAttributes: () => this.editor.getAttributes(
|
|
15390
|
+
getAttributes: () => this.editor.getAttributes(gh),
|
|
15391
15391
|
editor: this.editor
|
|
15392
15392
|
})), [t];
|
|
15393
15393
|
}
|
|
@@ -15580,12 +15580,12 @@ var Es = (t, e) => {
|
|
|
15580
15580
|
}
|
|
15581
15581
|
};
|
|
15582
15582
|
}
|
|
15583
|
-
}),
|
|
15583
|
+
}), vh = /^(\s*)(\d+)\.\s+(.*)$/, eS = /^\s/;
|
|
15584
15584
|
function tS(t) {
|
|
15585
15585
|
const e = [];
|
|
15586
15586
|
let n = 0, r = 0;
|
|
15587
15587
|
for (; n < t.length; ) {
|
|
15588
|
-
const i = t[n], s = i.match(
|
|
15588
|
+
const i = t[n], s = i.match(vh);
|
|
15589
15589
|
if (!s)
|
|
15590
15590
|
break;
|
|
15591
15591
|
const [, o, a, l] = s, c = o.length;
|
|
@@ -15593,7 +15593,7 @@ function tS(t) {
|
|
|
15593
15593
|
const f = [i];
|
|
15594
15594
|
for (; d < t.length; ) {
|
|
15595
15595
|
const h = t[d];
|
|
15596
|
-
if (h.match(
|
|
15596
|
+
if (h.match(vh))
|
|
15597
15597
|
break;
|
|
15598
15598
|
if (h.trim() === "")
|
|
15599
15599
|
f.push(h), u += `
|
|
@@ -15683,7 +15683,7 @@ function nS(t, e) {
|
|
|
15683
15683
|
};
|
|
15684
15684
|
});
|
|
15685
15685
|
}
|
|
15686
|
-
var rS = "listItem",
|
|
15686
|
+
var rS = "listItem", yh = "textStyle", wh = /^(\d+)\.\s$/, ob = Je.create({
|
|
15687
15687
|
name: "orderedList",
|
|
15688
15688
|
addOptions() {
|
|
15689
15689
|
return {
|
|
@@ -15765,7 +15765,7 @@ var rS = "listItem", vh = "textStyle", yh = /^(\d+)\.\s$/, ob = Je.create({
|
|
|
15765
15765
|
},
|
|
15766
15766
|
addCommands() {
|
|
15767
15767
|
return {
|
|
15768
|
-
toggleOrderedList: () => ({ commands: t, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(rS, this.editor.getAttributes(
|
|
15768
|
+
toggleOrderedList: () => ({ commands: t, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(rS, this.editor.getAttributes(yh)).run() : t.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
|
|
15769
15769
|
};
|
|
15770
15770
|
},
|
|
15771
15771
|
addKeyboardShortcuts() {
|
|
@@ -15775,17 +15775,17 @@ var rS = "listItem", vh = "textStyle", yh = /^(\d+)\.\s$/, ob = Je.create({
|
|
|
15775
15775
|
},
|
|
15776
15776
|
addInputRules() {
|
|
15777
15777
|
let t = Ei({
|
|
15778
|
-
find:
|
|
15778
|
+
find: wh,
|
|
15779
15779
|
type: this.type,
|
|
15780
15780
|
getAttributes: (e) => ({ start: +e[1] }),
|
|
15781
15781
|
joinPredicate: (e, n) => n.childCount + n.attrs.start === +e[1]
|
|
15782
15782
|
});
|
|
15783
15783
|
return (this.options.keepMarks || this.options.keepAttributes) && (t = Ei({
|
|
15784
|
-
find:
|
|
15784
|
+
find: wh,
|
|
15785
15785
|
type: this.type,
|
|
15786
15786
|
keepMarks: this.options.keepMarks,
|
|
15787
15787
|
keepAttributes: this.options.keepAttributes,
|
|
15788
|
-
getAttributes: (e) => ({ start: +e[1], ...this.editor.getAttributes(
|
|
15788
|
+
getAttributes: (e) => ({ start: +e[1], ...this.editor.getAttributes(yh) }),
|
|
15789
15789
|
joinPredicate: (e, n) => n.childCount + n.attrs.start === +e[1],
|
|
15790
15790
|
editor: this.editor
|
|
15791
15791
|
})), [t];
|
|
@@ -16720,9 +16720,9 @@ function CS(t, e, n, r) {
|
|
|
16720
16720
|
if (n.steps.length == 0)
|
|
16721
16721
|
return t;
|
|
16722
16722
|
if (o && o.getMeta(Br))
|
|
16723
|
-
return o.getMeta(Br).redo ? new tr(t.done.addTransform(n, void 0, r, io(e)), t.undone,
|
|
16723
|
+
return o.getMeta(Br).redo ? new tr(t.done.addTransform(n, void 0, r, io(e)), t.undone, Eh(n.mapping.maps), t.prevTime, t.prevComposition) : new tr(t.done, t.undone.addTransform(n, void 0, r, io(e)), null, t.prevTime, t.prevComposition);
|
|
16724
16724
|
if (n.getMeta("addToHistory") !== !1 && !(o && o.getMeta("addToHistory") === !1)) {
|
|
16725
|
-
let a = n.getMeta("composition"), l = t.prevTime == 0 || !o && t.prevComposition != a && (t.prevTime < (n.time || 0) - r.newGroupDelay || !TS(n, t.prevRanges)), c = o ? Vl(t.prevRanges, n.mapping) :
|
|
16725
|
+
let a = n.getMeta("composition"), l = t.prevTime == 0 || !o && t.prevComposition != a && (t.prevTime < (n.time || 0) - r.newGroupDelay || !TS(n, t.prevRanges)), c = o ? Vl(t.prevRanges, n.mapping) : Eh(n.mapping.maps);
|
|
16726
16726
|
return new tr(t.done.addTransform(n, l ? e.selection.getBookmark() : void 0, r, io(e)), nn.empty, c, n.time, a ?? t.prevComposition);
|
|
16727
16727
|
} else return (s = n.getMeta("rebased")) ? new tr(t.done.rebased(n, s), t.undone.rebased(n, s), Vl(t.prevRanges, n.mapping), t.prevTime, t.prevComposition) : new tr(t.done.addMaps(n.mapping.maps), t.undone.addMaps(n.mapping.maps), Vl(t.prevRanges, n.mapping), t.prevTime, t.prevComposition);
|
|
16728
16728
|
}
|
|
@@ -16737,7 +16737,7 @@ function TS(t, e) {
|
|
|
16737
16737
|
r <= e[s + 1] && i >= e[s] && (n = !0);
|
|
16738
16738
|
}), n;
|
|
16739
16739
|
}
|
|
16740
|
-
function
|
|
16740
|
+
function Eh(t) {
|
|
16741
16741
|
let e = [];
|
|
16742
16742
|
for (let n = t.length - 1; n >= 0 && e.length == 0; n--)
|
|
16743
16743
|
t[n].forEach((r, i, s, o) => e.push(s, o));
|
|
@@ -16760,11 +16760,11 @@ function _S(t, e, n) {
|
|
|
16760
16760
|
let o = s.selection.resolve(s.transform.doc), a = (n ? t.done : t.undone).addTransform(s.transform, e.selection.getBookmark(), i, r), l = new tr(n ? a : s.remaining, n ? s.remaining : a, null, 0, -1);
|
|
16761
16761
|
return s.transform.setSelection(o).setMeta(Br, { redo: n, historyState: l });
|
|
16762
16762
|
}
|
|
16763
|
-
let Kl = !1,
|
|
16763
|
+
let Kl = !1, kh = null;
|
|
16764
16764
|
function io(t) {
|
|
16765
16765
|
let e = t.plugins;
|
|
16766
|
-
if (
|
|
16767
|
-
Kl = !1,
|
|
16766
|
+
if (kh != e) {
|
|
16767
|
+
Kl = !1, kh = e;
|
|
16768
16768
|
for (let n = 0; n < e.length; n++)
|
|
16769
16769
|
if (e[n].spec.historyPreserveItems) {
|
|
16770
16770
|
Kl = !0;
|
|
@@ -17024,7 +17024,7 @@ Oe.create({
|
|
|
17024
17024
|
];
|
|
17025
17025
|
}
|
|
17026
17026
|
});
|
|
17027
|
-
function
|
|
17027
|
+
function xh({ types: t, node: e }) {
|
|
17028
17028
|
return e && Array.isArray(t) && t.includes(e.type) || (e == null ? void 0 : e.type) === t;
|
|
17029
17029
|
}
|
|
17030
17030
|
var LS = Oe.create({
|
|
@@ -17049,13 +17049,13 @@ var LS = Oe.create({
|
|
|
17049
17049
|
state: {
|
|
17050
17050
|
init: (i, s) => {
|
|
17051
17051
|
const o = s.tr.doc.lastChild;
|
|
17052
|
-
return !
|
|
17052
|
+
return !xh({ node: o, types: r });
|
|
17053
17053
|
},
|
|
17054
17054
|
apply: (i, s) => {
|
|
17055
17055
|
if (!i.docChanged || i.getMeta("__uniqueIDTransaction"))
|
|
17056
17056
|
return s;
|
|
17057
17057
|
const o = i.doc.lastChild;
|
|
17058
|
-
return !
|
|
17058
|
+
return !xh({ node: o, types: r });
|
|
17059
17059
|
}
|
|
17060
17060
|
}
|
|
17061
17061
|
})
|
|
@@ -17137,7 +17137,7 @@ var LS = Oe.create({
|
|
|
17137
17137
|
};
|
|
17138
17138
|
}
|
|
17139
17139
|
}), HS = zS;
|
|
17140
|
-
const hb = ["top", "right", "bottom", "left"],
|
|
17140
|
+
const hb = ["top", "right", "bottom", "left"], Sh = ["start", "end"], Mh = /* @__PURE__ */ hb.reduce((t, e) => t.concat(e, e + "-" + Sh[0], e + "-" + Sh[1]), []), Cn = Math.min, _t = Math.max, Jo = Math.round, xn = (t) => ({
|
|
17141
17141
|
x: t,
|
|
17142
17142
|
y: t
|
|
17143
17143
|
}), FS = {
|
|
@@ -17187,12 +17187,12 @@ function VS(t) {
|
|
|
17187
17187
|
function Zo(t) {
|
|
17188
17188
|
return t.replace(/start|end/g, (e) => US[e]);
|
|
17189
17189
|
}
|
|
17190
|
-
const
|
|
17190
|
+
const Ch = ["left", "right"], Th = ["right", "left"], KS = ["top", "bottom"], qS = ["bottom", "top"];
|
|
17191
17191
|
function GS(t, e, n) {
|
|
17192
17192
|
switch (t) {
|
|
17193
17193
|
case "top":
|
|
17194
17194
|
case "bottom":
|
|
17195
|
-
return n ? e ?
|
|
17195
|
+
return n ? e ? Th : Ch : e ? Ch : Th;
|
|
17196
17196
|
case "left":
|
|
17197
17197
|
case "right":
|
|
17198
17198
|
return e ? KS : qS;
|
|
@@ -17243,7 +17243,7 @@ function ki(t) {
|
|
|
17243
17243
|
y: n
|
|
17244
17244
|
};
|
|
17245
17245
|
}
|
|
17246
|
-
function
|
|
17246
|
+
function _h(t, e, n) {
|
|
17247
17247
|
let {
|
|
17248
17248
|
reference: r,
|
|
17249
17249
|
floating: i
|
|
@@ -17305,7 +17305,7 @@ const XS = async (t, e, n) => {
|
|
|
17305
17305
|
}), {
|
|
17306
17306
|
x: u,
|
|
17307
17307
|
y: d
|
|
17308
|
-
} =
|
|
17308
|
+
} = _h(c, r, l), f = r, h = {}, p = 0;
|
|
17309
17309
|
for (let g = 0; g < a.length; g++) {
|
|
17310
17310
|
const {
|
|
17311
17311
|
name: m,
|
|
@@ -17342,7 +17342,7 @@ const XS = async (t, e, n) => {
|
|
|
17342
17342
|
}) : O.rects), {
|
|
17343
17343
|
x: u,
|
|
17344
17344
|
y: d
|
|
17345
|
-
} =
|
|
17345
|
+
} = _h(c, f, l)), g = -1);
|
|
17346
17346
|
}
|
|
17347
17347
|
return {
|
|
17348
17348
|
x: u,
|
|
@@ -17453,10 +17453,10 @@ const QS = function(t) {
|
|
|
17453
17453
|
} = e, {
|
|
17454
17454
|
crossAxis: u = !1,
|
|
17455
17455
|
alignment: d,
|
|
17456
|
-
allowedPlacements: f =
|
|
17456
|
+
allowedPlacements: f = Mh,
|
|
17457
17457
|
autoAlignment: h = !0,
|
|
17458
17458
|
...p
|
|
17459
|
-
} = Kn(t, e), g = d !== void 0 || f ===
|
|
17459
|
+
} = Kn(t, e), g = d !== void 0 || f === Mh ? ZS(d || null, h, f) : f, m = await xi(e, p), v = ((n = o.autoPlacement) == null ? void 0 : n.index) || 0, k = g[v];
|
|
17460
17460
|
if (k == null)
|
|
17461
17461
|
return {};
|
|
17462
17462
|
const C = mb(k, s, await (l.isRTL == null ? void 0 : l.isRTL(c.floating)));
|
|
@@ -17588,7 +17588,7 @@ const QS = function(t) {
|
|
|
17588
17588
|
}
|
|
17589
17589
|
};
|
|
17590
17590
|
};
|
|
17591
|
-
function
|
|
17591
|
+
function Nh(t, e) {
|
|
17592
17592
|
return {
|
|
17593
17593
|
top: t.top - e.height,
|
|
17594
17594
|
right: t.right - e.width,
|
|
@@ -17596,7 +17596,7 @@ function _h(t, e) {
|
|
|
17596
17596
|
left: t.left - e.width
|
|
17597
17597
|
};
|
|
17598
17598
|
}
|
|
17599
|
-
function
|
|
17599
|
+
function Ah(t) {
|
|
17600
17600
|
return hb.some((e) => t[e] >= 0);
|
|
17601
17601
|
}
|
|
17602
17602
|
const tM = function(t) {
|
|
@@ -17615,11 +17615,11 @@ const tM = function(t) {
|
|
|
17615
17615
|
const s = await xi(e, {
|
|
17616
17616
|
...i,
|
|
17617
17617
|
elementContext: "reference"
|
|
17618
|
-
}), o =
|
|
17618
|
+
}), o = Nh(s, n.reference);
|
|
17619
17619
|
return {
|
|
17620
17620
|
data: {
|
|
17621
17621
|
referenceHiddenOffsets: o,
|
|
17622
|
-
referenceHidden:
|
|
17622
|
+
referenceHidden: Ah(o)
|
|
17623
17623
|
}
|
|
17624
17624
|
};
|
|
17625
17625
|
}
|
|
@@ -17627,11 +17627,11 @@ const tM = function(t) {
|
|
|
17627
17627
|
const s = await xi(e, {
|
|
17628
17628
|
...i,
|
|
17629
17629
|
altBoundary: !0
|
|
17630
|
-
}), o =
|
|
17630
|
+
}), o = Nh(s, n.floating);
|
|
17631
17631
|
return {
|
|
17632
17632
|
data: {
|
|
17633
17633
|
escapedOffsets: o,
|
|
17634
|
-
escaped:
|
|
17634
|
+
escaped: Ah(o)
|
|
17635
17635
|
}
|
|
17636
17636
|
};
|
|
17637
17637
|
}
|
|
@@ -17890,7 +17890,7 @@ function an(t) {
|
|
|
17890
17890
|
function Tn(t) {
|
|
17891
17891
|
return wa() ? t instanceof HTMLElement || t instanceof Ut(t).HTMLElement : !1;
|
|
17892
17892
|
}
|
|
17893
|
-
function
|
|
17893
|
+
function Oh(t) {
|
|
17894
17894
|
return !wa() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof Ut(t).ShadowRoot;
|
|
17895
17895
|
}
|
|
17896
17896
|
const cM = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
@@ -17959,10 +17959,10 @@ function yr(t) {
|
|
|
17959
17959
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
17960
17960
|
t.assignedSlot || // DOM Element detected.
|
|
17961
17961
|
t.parentNode || // ShadowRoot detected.
|
|
17962
|
-
|
|
17962
|
+
Oh(t) && t.host || // Fallback.
|
|
17963
17963
|
qn(t)
|
|
17964
17964
|
);
|
|
17965
|
-
return
|
|
17965
|
+
return Oh(e) ? e.host : e;
|
|
17966
17966
|
}
|
|
17967
17967
|
function vb(t) {
|
|
17968
17968
|
const e = yr(t);
|
|
@@ -18090,7 +18090,7 @@ function kM(t) {
|
|
|
18090
18090
|
y: a
|
|
18091
18091
|
};
|
|
18092
18092
|
}
|
|
18093
|
-
const
|
|
18093
|
+
const Rh = 25;
|
|
18094
18094
|
function xM(t, e) {
|
|
18095
18095
|
const n = Ut(t), r = qn(t), i = n.visualViewport;
|
|
18096
18096
|
let s = r.clientWidth, o = r.clientHeight, a = 0, l = 0;
|
|
@@ -18102,8 +18102,8 @@ function xM(t, e) {
|
|
|
18102
18102
|
const c = xa(r);
|
|
18103
18103
|
if (c <= 0) {
|
|
18104
18104
|
const u = r.ownerDocument, d = u.body, f = getComputedStyle(d), h = u.compatMode === "CSS1Compat" && parseFloat(f.marginLeft) + parseFloat(f.marginRight) || 0, p = Math.abs(r.clientWidth - d.clientWidth - h);
|
|
18105
|
-
p <=
|
|
18106
|
-
} else c <=
|
|
18105
|
+
p <= Rh && (s -= p);
|
|
18106
|
+
} else c <= Rh && (s += c);
|
|
18107
18107
|
return {
|
|
18108
18108
|
width: s,
|
|
18109
18109
|
height: o,
|
|
@@ -18121,7 +18121,7 @@ function MM(t, e) {
|
|
|
18121
18121
|
y: c
|
|
18122
18122
|
};
|
|
18123
18123
|
}
|
|
18124
|
-
function
|
|
18124
|
+
function Ih(t, e, n) {
|
|
18125
18125
|
let r;
|
|
18126
18126
|
if (e === "viewport")
|
|
18127
18127
|
r = xM(t, n);
|
|
@@ -18165,9 +18165,9 @@ function TM(t) {
|
|
|
18165
18165
|
strategy: i
|
|
18166
18166
|
} = t;
|
|
18167
18167
|
const o = [...n === "clippingAncestors" ? Ea(e) ? [] : CM(e, this._c) : [].concat(n), r], a = o[0], l = o.reduce((c, u) => {
|
|
18168
|
-
const d =
|
|
18168
|
+
const d = Ih(e, u, i);
|
|
18169
18169
|
return c.top = _t(d.top, c.top), c.right = Cn(d.right, c.right), c.bottom = Cn(d.bottom, c.bottom), c.left = _t(d.left, c.left), c;
|
|
18170
|
-
},
|
|
18170
|
+
}, Ih(e, a, i));
|
|
18171
18171
|
return {
|
|
18172
18172
|
width: l.right - l.left,
|
|
18173
18173
|
height: l.bottom - l.top,
|
|
@@ -18212,7 +18212,7 @@ function NM(t, e, n) {
|
|
|
18212
18212
|
function ql(t) {
|
|
18213
18213
|
return ln(t).position === "static";
|
|
18214
18214
|
}
|
|
18215
|
-
function
|
|
18215
|
+
function Lh(t, e) {
|
|
18216
18216
|
if (!Tn(t) || ln(t).position === "fixed")
|
|
18217
18217
|
return null;
|
|
18218
18218
|
if (e)
|
|
@@ -18233,9 +18233,9 @@ function Mb(t, e) {
|
|
|
18233
18233
|
}
|
|
18234
18234
|
return n;
|
|
18235
18235
|
}
|
|
18236
|
-
let r =
|
|
18236
|
+
let r = Lh(t, e);
|
|
18237
18237
|
for (; r && dM(r) && ql(r); )
|
|
18238
|
-
r =
|
|
18238
|
+
r = Lh(r, e);
|
|
18239
18239
|
return r && Si(r) && ql(r) && !Fu(r) ? n : r || gM(t) || n;
|
|
18240
18240
|
}
|
|
18241
18241
|
const AM = async function(t) {
|
|
@@ -19025,7 +19025,7 @@ function dC(t, e) {
|
|
|
19025
19025
|
}
|
|
19026
19026
|
return !0;
|
|
19027
19027
|
}
|
|
19028
|
-
function
|
|
19028
|
+
function Dh(t) {
|
|
19029
19029
|
const e = t.content;
|
|
19030
19030
|
return e.childCount == 1 && e.child(0).isTextblock && e.child(0).childCount == 0;
|
|
19031
19031
|
}
|
|
@@ -19043,7 +19043,7 @@ function fC({ width: t, height: e, map: n }, r) {
|
|
|
19043
19043
|
}
|
|
19044
19044
|
return !1;
|
|
19045
19045
|
}
|
|
19046
|
-
function
|
|
19046
|
+
function $h(t, e) {
|
|
19047
19047
|
const n = t.selection;
|
|
19048
19048
|
if (!(n instanceof Ue) || n.$anchorCell.pos == n.$headCell.pos)
|
|
19049
19049
|
return !1;
|
|
@@ -19059,7 +19059,7 @@ function Dh(t, e) {
|
|
|
19059
19059
|
if (o[f] = !0, l == null)
|
|
19060
19060
|
l = f, c = h;
|
|
19061
19061
|
else {
|
|
19062
|
-
|
|
19062
|
+
Dh(h) || (a = a.append(h.content));
|
|
19063
19063
|
const p = s.mapping.map(f + r.tableStart);
|
|
19064
19064
|
s.delete(p, p + h.nodeSize);
|
|
19065
19065
|
}
|
|
@@ -19074,7 +19074,7 @@ function Dh(t, e) {
|
|
|
19074
19074
|
),
|
|
19075
19075
|
rowspan: r.bottom - r.top
|
|
19076
19076
|
}), a.size) {
|
|
19077
|
-
const u = l + 1 + c.content.size, d =
|
|
19077
|
+
const u = l + 1 + c.content.size, d = Dh(c) ? l + 1 : u;
|
|
19078
19078
|
s.replaceWith(d + r.tableStart, u + r.tableStart, a);
|
|
19079
19079
|
}
|
|
19080
19080
|
s.setSelection(
|
|
@@ -19083,7 +19083,7 @@ function Dh(t, e) {
|
|
|
19083
19083
|
}
|
|
19084
19084
|
return !0;
|
|
19085
19085
|
}
|
|
19086
|
-
function
|
|
19086
|
+
function Bh(t, e) {
|
|
19087
19087
|
const n = St(t.schema);
|
|
19088
19088
|
return hC(({ node: r }) => n[r.type.spec.tableRole])(t, e);
|
|
19089
19089
|
}
|
|
@@ -19192,7 +19192,7 @@ function mC(t) {
|
|
|
19192
19192
|
return !0;
|
|
19193
19193
|
};
|
|
19194
19194
|
}
|
|
19195
|
-
function
|
|
19195
|
+
function Ph(t, e, n) {
|
|
19196
19196
|
const r = e.map.cellsInRect({
|
|
19197
19197
|
left: 0,
|
|
19198
19198
|
top: 0,
|
|
@@ -19210,7 +19210,7 @@ function ds(t, e) {
|
|
|
19210
19210
|
return e = e || { useDeprecatedLogic: !1 }, e.useDeprecatedLogic ? mC(t) : function(n, r) {
|
|
19211
19211
|
if (!un(n)) return !1;
|
|
19212
19212
|
if (r) {
|
|
19213
|
-
const i = St(n.schema), s = _n(n), o = n.tr, a =
|
|
19213
|
+
const i = St(n.schema), s = _n(n), o = n.tr, a = Ph("row", s, i), l = Ph(
|
|
19214
19214
|
"column",
|
|
19215
19215
|
s,
|
|
19216
19216
|
i
|
|
@@ -19264,7 +19264,7 @@ function bC(t, e) {
|
|
|
19264
19264
|
}
|
|
19265
19265
|
return null;
|
|
19266
19266
|
}
|
|
19267
|
-
function
|
|
19267
|
+
function zh(t) {
|
|
19268
19268
|
return function(e, n) {
|
|
19269
19269
|
if (!un(e)) return !1;
|
|
19270
19270
|
const r = bC(Sa(e), t);
|
|
@@ -19422,7 +19422,7 @@ function kC(t, e, n, r, i, s, o) {
|
|
|
19422
19422
|
}
|
|
19423
19423
|
return !!(c || u);
|
|
19424
19424
|
}
|
|
19425
|
-
function
|
|
19425
|
+
function Hh(t, e, n, r, i, s, o, a) {
|
|
19426
19426
|
if (o == 0 || o == e.height) return !1;
|
|
19427
19427
|
let l = !1;
|
|
19428
19428
|
for (let c = i; c < s; c++) {
|
|
@@ -19444,7 +19444,7 @@ function zh(t, e, n, r, i, s, o, a) {
|
|
|
19444
19444
|
}
|
|
19445
19445
|
return l;
|
|
19446
19446
|
}
|
|
19447
|
-
function
|
|
19447
|
+
function Fh(t, e, n, r, i, s, o, a) {
|
|
19448
19448
|
if (o == 0 || o == e.width) return !1;
|
|
19449
19449
|
let l = !1;
|
|
19450
19450
|
for (let c = i; c < s; c++) {
|
|
@@ -19470,7 +19470,7 @@ function Hh(t, e, n, r, i, s, o, a) {
|
|
|
19470
19470
|
}
|
|
19471
19471
|
return l;
|
|
19472
19472
|
}
|
|
19473
|
-
function
|
|
19473
|
+
function Uh(t, e, n, r, i) {
|
|
19474
19474
|
let s = n ? t.doc.nodeAt(n - 1) : t.doc;
|
|
19475
19475
|
if (!s)
|
|
19476
19476
|
throw new Error("No table found");
|
|
@@ -19482,7 +19482,7 @@ function Fh(t, e, n, r, i) {
|
|
|
19482
19482
|
throw new Error("No table found");
|
|
19483
19483
|
o = nt.get(s), f = d.mapping.maps.length;
|
|
19484
19484
|
}
|
|
19485
|
-
kC(d, o, s, n, c, u, f) && h(),
|
|
19485
|
+
kC(d, o, s, n, c, u, f) && h(), Hh(d, o, s, n, l, c, a, f) && h(), Hh(d, o, s, n, l, c, u, f) && h(), Fh(d, o, s, n, a, u, l, f) && h(), Fh(d, o, s, n, a, u, c, f) && h();
|
|
19486
19486
|
for (let p = a; p < u; p++) {
|
|
19487
19487
|
const g = o.positionAt(p, l, s), m = o.positionAt(p, c, s);
|
|
19488
19488
|
d.replace(
|
|
@@ -19583,10 +19583,10 @@ function MC(t, e, n) {
|
|
|
19583
19583
|
i.$anchorCell.pos - o,
|
|
19584
19584
|
i.$headCell.pos - o
|
|
19585
19585
|
);
|
|
19586
|
-
return r = EC(r, a.right - a.left, a.bottom - a.top),
|
|
19586
|
+
return r = EC(r, a.right - a.left, a.bottom - a.top), Uh(t.state, t.dispatch, o, a, r), !0;
|
|
19587
19587
|
} else if (r) {
|
|
19588
19588
|
const s = Sa(t.state), o = s.start(-1);
|
|
19589
|
-
return
|
|
19589
|
+
return Uh(
|
|
19590
19590
|
t.state,
|
|
19591
19591
|
t.dispatch,
|
|
19592
19592
|
o,
|
|
@@ -19599,7 +19599,7 @@ function MC(t, e, n) {
|
|
|
19599
19599
|
function CC(t, e) {
|
|
19600
19600
|
var n;
|
|
19601
19601
|
if (e.ctrlKey || e.metaKey) return;
|
|
19602
|
-
const r =
|
|
19602
|
+
const r = Wh(t, e.target);
|
|
19603
19603
|
let i;
|
|
19604
19604
|
if (e.shiftKey && t.state.selection instanceof Ue)
|
|
19605
19605
|
s(t.state.selection.$anchorCell, e), e.preventDefault();
|
|
@@ -19627,7 +19627,7 @@ function CC(t, e) {
|
|
|
19627
19627
|
let d;
|
|
19628
19628
|
if (u != null)
|
|
19629
19629
|
d = t.state.doc.resolve(u);
|
|
19630
|
-
else if (
|
|
19630
|
+
else if (Wh(t, c.target) != r && (d = Gl(t, e), !d))
|
|
19631
19631
|
return o();
|
|
19632
19632
|
d && s(d, c);
|
|
19633
19633
|
}
|
|
@@ -19646,7 +19646,7 @@ function Ib(t, e, n) {
|
|
|
19646
19646
|
}
|
|
19647
19647
|
return null;
|
|
19648
19648
|
}
|
|
19649
|
-
function
|
|
19649
|
+
function Wh(t, e) {
|
|
19650
19650
|
for (; e && e != t.dom; e = e.parentNode)
|
|
19651
19651
|
if (e.nodeName == "TD" || e.nodeName == "TH")
|
|
19652
19652
|
return e;
|
|
@@ -19775,7 +19775,7 @@ function AC(t, e, n, r) {
|
|
|
19775
19775
|
let o = -1;
|
|
19776
19776
|
if (s) {
|
|
19777
19777
|
const { left: a, right: l } = s.getBoundingClientRect();
|
|
19778
|
-
e.clientX - a <= n ? o =
|
|
19778
|
+
e.clientX - a <= n ? o = Vh(t, e, "left", n) : l - e.clientX <= n && (o = Vh(t, e, "right", n));
|
|
19779
19779
|
}
|
|
19780
19780
|
if (o != i.activeHandle) {
|
|
19781
19781
|
if (!r && o !== -1) {
|
|
@@ -19810,7 +19810,7 @@ function RC(t, e, n, r) {
|
|
|
19810
19810
|
f != null && f.dragging && (DC(
|
|
19811
19811
|
t,
|
|
19812
19812
|
f.activeHandle,
|
|
19813
|
-
|
|
19813
|
+
Kh(f.dragging, d, n)
|
|
19814
19814
|
), t.dispatch(
|
|
19815
19815
|
t.state.tr.setMeta(Ht, { setDragging: null })
|
|
19816
19816
|
));
|
|
@@ -19819,8 +19819,8 @@ function RC(t, e, n, r) {
|
|
|
19819
19819
|
if (!d.which) return c(d);
|
|
19820
19820
|
const f = Ht.getState(t.state);
|
|
19821
19821
|
if (f && f.dragging) {
|
|
19822
|
-
const h =
|
|
19823
|
-
|
|
19822
|
+
const h = Kh(f.dragging, d, n);
|
|
19823
|
+
qh(
|
|
19824
19824
|
t,
|
|
19825
19825
|
f.activeHandle,
|
|
19826
19826
|
h,
|
|
@@ -19828,7 +19828,7 @@ function RC(t, e, n, r) {
|
|
|
19828
19828
|
);
|
|
19829
19829
|
}
|
|
19830
19830
|
}
|
|
19831
|
-
return
|
|
19831
|
+
return qh(
|
|
19832
19832
|
t,
|
|
19833
19833
|
o.activeHandle,
|
|
19834
19834
|
l,
|
|
@@ -19850,7 +19850,7 @@ function LC(t) {
|
|
|
19850
19850
|
t = t.classList && t.classList.contains("ProseMirror") ? null : t.parentNode;
|
|
19851
19851
|
return t;
|
|
19852
19852
|
}
|
|
19853
|
-
function
|
|
19853
|
+
function Vh(t, e, n, r) {
|
|
19854
19854
|
const i = n == "right" ? -r : r, s = t.posAtCoords({
|
|
19855
19855
|
left: e.clientX + i,
|
|
19856
19856
|
top: e.clientY
|
|
@@ -19862,7 +19862,7 @@ function Wh(t, e, n, r) {
|
|
|
19862
19862
|
const l = nt.get(a.node(-1)), c = a.start(-1), u = l.map.indexOf(a.pos - c);
|
|
19863
19863
|
return u % l.width == 0 ? -1 : c + l.map[u - 1];
|
|
19864
19864
|
}
|
|
19865
|
-
function
|
|
19865
|
+
function Kh(t, e, n) {
|
|
19866
19866
|
const r = e.clientX - t.startX;
|
|
19867
19867
|
return Math.max(n, t.startWidth + r);
|
|
19868
19868
|
}
|
|
@@ -19883,7 +19883,7 @@ function DC(t, e, n) {
|
|
|
19883
19883
|
}
|
|
19884
19884
|
l.docChanged && t.dispatch(l);
|
|
19885
19885
|
}
|
|
19886
|
-
function
|
|
19886
|
+
function qh(t, e, n, r) {
|
|
19887
19887
|
const i = t.state.doc.resolve(e), s = i.node(-1), o = i.start(-1), a = nt.get(s).colCount(i.pos - o) + i.nodeAfter.attrs.colspan - 1;
|
|
19888
19888
|
let l = t.domAtPos(i.start(-1)).node;
|
|
19889
19889
|
for (; l && l.nodeName != "TABLE"; )
|
|
@@ -20256,7 +20256,7 @@ var HC = class {
|
|
|
20256
20256
|
function Wc(t, e) {
|
|
20257
20257
|
return e ? ["width", `${Math.max(e, t)}px`] : ["min-width", `${t}px`];
|
|
20258
20258
|
}
|
|
20259
|
-
function
|
|
20259
|
+
function Gh(t, e, n, r, i, s) {
|
|
20260
20260
|
var o;
|
|
20261
20261
|
let a = 0, l = !0, c = e.firstChild;
|
|
20262
20262
|
const u = t.firstChild;
|
|
@@ -20286,10 +20286,10 @@ function qh(t, e, n, r, i, s) {
|
|
|
20286
20286
|
}
|
|
20287
20287
|
var WC = class {
|
|
20288
20288
|
constructor(t, e) {
|
|
20289
|
-
this.node = t, this.cellMinWidth = e, this.dom = document.createElement("div"), this.dom.className = "tableWrapper", this.table = this.dom.appendChild(document.createElement("table")), t.attrs.style && (this.table.style.cssText = t.attrs.style), this.colgroup = this.table.appendChild(document.createElement("colgroup")),
|
|
20289
|
+
this.node = t, this.cellMinWidth = e, this.dom = document.createElement("div"), this.dom.className = "tableWrapper", this.table = this.dom.appendChild(document.createElement("table")), t.attrs.style && (this.table.style.cssText = t.attrs.style), this.colgroup = this.table.appendChild(document.createElement("colgroup")), Gh(t, this.colgroup, this.table, e), this.contentDOM = this.table.appendChild(document.createElement("tbody"));
|
|
20290
20290
|
}
|
|
20291
20291
|
update(t) {
|
|
20292
|
-
return t.type !== this.node.type ? !1 : (this.node = t,
|
|
20292
|
+
return t.type !== this.node.type ? !1 : (this.node = t, Gh(t, this.colgroup, this.table, this.cellMinWidth), !0);
|
|
20293
20293
|
}
|
|
20294
20294
|
ignoreMutation(t) {
|
|
20295
20295
|
const e = t.target, n = this.dom.contains(e), r = this.contentDOM.contains(e);
|
|
@@ -20313,7 +20313,7 @@ function VC(t, e, n, r) {
|
|
|
20313
20313
|
const l = s ? `${i}px` : "", c = s ? "" : `${i}px`;
|
|
20314
20314
|
return { colgroup: ["colgroup", {}, ...o], tableWidth: l, tableMinWidth: c };
|
|
20315
20315
|
}
|
|
20316
|
-
function
|
|
20316
|
+
function jh(t, e) {
|
|
20317
20317
|
return t.createAndFill();
|
|
20318
20318
|
}
|
|
20319
20319
|
function KC(t) {
|
|
@@ -20328,9 +20328,9 @@ function KC(t) {
|
|
|
20328
20328
|
function qC(t, e, n, r, i) {
|
|
20329
20329
|
const s = KC(t), o = [], a = [];
|
|
20330
20330
|
for (let c = 0; c < n; c += 1) {
|
|
20331
|
-
const u =
|
|
20331
|
+
const u = jh(s.cell);
|
|
20332
20332
|
if (u && a.push(u), r) {
|
|
20333
|
-
const d =
|
|
20333
|
+
const d = jh(s.header_cell);
|
|
20334
20334
|
d && o.push(d);
|
|
20335
20335
|
}
|
|
20336
20336
|
}
|
|
@@ -20465,15 +20465,15 @@ var JC = XC, Pb = Je.create({
|
|
|
20465
20465
|
addRowAfter: () => ({ state: t, dispatch: e }) => cC(t, e),
|
|
20466
20466
|
deleteRow: () => ({ state: t, dispatch: e }) => dC(t, e),
|
|
20467
20467
|
deleteTable: () => ({ state: t, dispatch: e }) => vC(t, e),
|
|
20468
|
-
mergeCells: () => ({ state: t, dispatch: e }) =>
|
|
20469
|
-
splitCell: () => ({ state: t, dispatch: e }) =>
|
|
20468
|
+
mergeCells: () => ({ state: t, dispatch: e }) => $h(t, e),
|
|
20469
|
+
splitCell: () => ({ state: t, dispatch: e }) => Bh(t, e),
|
|
20470
20470
|
toggleHeaderColumn: () => ({ state: t, dispatch: e }) => ds("column")(t, e),
|
|
20471
20471
|
toggleHeaderRow: () => ({ state: t, dispatch: e }) => ds("row")(t, e),
|
|
20472
20472
|
toggleHeaderCell: () => ({ state: t, dispatch: e }) => gC(t, e),
|
|
20473
|
-
mergeOrSplit: () => ({ state: t, dispatch: e }) =>
|
|
20473
|
+
mergeOrSplit: () => ({ state: t, dispatch: e }) => $h(t, e) ? !0 : Bh(t, e),
|
|
20474
20474
|
setCellAttribute: (t, e) => ({ state: n, dispatch: r }) => pC(t, e)(n, r),
|
|
20475
|
-
goToNextCell: () => ({ state: t, dispatch: e }) =>
|
|
20476
|
-
goToPreviousCell: () => ({ state: t, dispatch: e }) =>
|
|
20475
|
+
goToNextCell: () => ({ state: t, dispatch: e }) => zh(1)(t, e),
|
|
20476
|
+
goToPreviousCell: () => ({ state: t, dispatch: e }) => zh(-1)(t, e),
|
|
20477
20477
|
fixTables: () => ({ state: t, dispatch: e }) => (e && Ab(t), !0),
|
|
20478
20478
|
setCellSelection: (t) => ({ tr: e, dispatch: n }) => {
|
|
20479
20479
|
if (n) {
|
|
@@ -21841,7 +21841,7 @@ const R2 = () => typeof document > "u" ? Promise.resolve() : (jl || (jl = import
|
|
|
21841
21841
|
};
|
|
21842
21842
|
}
|
|
21843
21843
|
});
|
|
21844
|
-
var
|
|
21844
|
+
var a4 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
21845
21845
|
function Vu(t) {
|
|
21846
21846
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
21847
21847
|
}
|
|
@@ -21855,7 +21855,7 @@ function Ub(t) {
|
|
|
21855
21855
|
(r === "object" || r === "function") && !Object.isFrozen(n) && Ub(n);
|
|
21856
21856
|
}), t;
|
|
21857
21857
|
}
|
|
21858
|
-
let
|
|
21858
|
+
let Yh = class {
|
|
21859
21859
|
/**
|
|
21860
21860
|
* @param {CompiledMode} mode
|
|
21861
21861
|
*/
|
|
@@ -21879,7 +21879,7 @@ function lr(t, ...e) {
|
|
|
21879
21879
|
}), /** @type {T} */
|
|
21880
21880
|
n;
|
|
21881
21881
|
}
|
|
21882
|
-
const D2 = "</span>",
|
|
21882
|
+
const D2 = "</span>", Xh = (t) => !!t.scope, $2 = (t, { prefix: e }) => {
|
|
21883
21883
|
if (t.startsWith("language:"))
|
|
21884
21884
|
return t.replace("language:", "language-");
|
|
21885
21885
|
if (t.includes(".")) {
|
|
@@ -21913,7 +21913,7 @@ let B2 = class {
|
|
|
21913
21913
|
*
|
|
21914
21914
|
* @param {Node} node */
|
|
21915
21915
|
openNode(e) {
|
|
21916
|
-
if (!
|
|
21916
|
+
if (!Xh(e)) return;
|
|
21917
21917
|
const n = $2(
|
|
21918
21918
|
e.scope,
|
|
21919
21919
|
{ prefix: this.classPrefix }
|
|
@@ -21925,7 +21925,7 @@ let B2 = class {
|
|
|
21925
21925
|
*
|
|
21926
21926
|
* @param {Node} node */
|
|
21927
21927
|
closeNode(e) {
|
|
21928
|
-
|
|
21928
|
+
Xh(e) && (this.buffer += D2);
|
|
21929
21929
|
}
|
|
21930
21930
|
/**
|
|
21931
21931
|
* returns the accumulated buffer
|
|
@@ -21942,13 +21942,13 @@ let B2 = class {
|
|
|
21942
21942
|
this.buffer += `<span class="${e}">`;
|
|
21943
21943
|
}
|
|
21944
21944
|
};
|
|
21945
|
-
const
|
|
21945
|
+
const Jh = (t = {}) => {
|
|
21946
21946
|
const e = { children: [] };
|
|
21947
21947
|
return Object.assign(e, t), e;
|
|
21948
21948
|
};
|
|
21949
21949
|
let P2 = class Vb {
|
|
21950
21950
|
constructor() {
|
|
21951
|
-
this.rootNode =
|
|
21951
|
+
this.rootNode = Jh(), this.stack = [this.rootNode];
|
|
21952
21952
|
}
|
|
21953
21953
|
get top() {
|
|
21954
21954
|
return this.stack[this.stack.length - 1];
|
|
@@ -21962,7 +21962,7 @@ let P2 = class Vb {
|
|
|
21962
21962
|
}
|
|
21963
21963
|
/** @param {string} scope */
|
|
21964
21964
|
openNode(e) {
|
|
21965
|
-
const n =
|
|
21965
|
+
const n = Jh({ scope: e });
|
|
21966
21966
|
this.add(n), this.stack.push(n);
|
|
21967
21967
|
}
|
|
21968
21968
|
closeNode() {
|
|
@@ -22328,12 +22328,12 @@ function bT(t, e) {
|
|
|
22328
22328
|
function vT(t) {
|
|
22329
22329
|
return mT.includes(t.toLowerCase());
|
|
22330
22330
|
}
|
|
22331
|
-
const
|
|
22331
|
+
const Zh = {}, Pr = (t) => {
|
|
22332
22332
|
He(t);
|
|
22333
|
-
},
|
|
22333
|
+
}, Qh = (t, ...e) => {
|
|
22334
22334
|
He(`WARN: ${t}`, ...e);
|
|
22335
22335
|
}, ri = (t, e) => {
|
|
22336
|
-
|
|
22336
|
+
Zh[`${t}/${e}`] || (He(`Deprecated as of ${t}. ${e}`), Zh[`${t}/${e}`] = !0);
|
|
22337
22337
|
}, ea = new Error();
|
|
22338
22338
|
function Zb(t, e, { key: n }) {
|
|
22339
22339
|
let r = 0;
|
|
@@ -22488,7 +22488,7 @@ let CT = class extends Error {
|
|
|
22488
22488
|
super(e), this.name = "HTMLInjectionError", this.html = n;
|
|
22489
22489
|
}
|
|
22490
22490
|
};
|
|
22491
|
-
const Yl = Wb,
|
|
22491
|
+
const Yl = Wb, ep = lr, tp = Symbol("nomatch"), TT = 7, e0 = function(t) {
|
|
22492
22492
|
const e = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null), r = [];
|
|
22493
22493
|
let i = !0;
|
|
22494
22494
|
const s = "Could not find the language '{}', did you forget to load/include a language module?", o = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
|
@@ -22513,7 +22513,7 @@ const Yl = Wb, Qh = lr, ep = Symbol("nomatch"), TT = 7, e0 = function(t) {
|
|
|
22513
22513
|
const A = a.languageDetectRe.exec(x);
|
|
22514
22514
|
if (A) {
|
|
22515
22515
|
const F = P(A[1]);
|
|
22516
|
-
return F || (
|
|
22516
|
+
return F || (Qh(s.replace("{}", A[1])), Qh("Falling back to no-highlight mode for this block.", I)), F ? A[1] : "no-highlight";
|
|
22517
22517
|
}
|
|
22518
22518
|
return x.split(/\s+/).find((F) => l(F) || P(F));
|
|
22519
22519
|
}
|
|
@@ -22598,7 +22598,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Y = I, F = x), A ===
|
|
|
22598
22598
|
let V = W2(G.endRe, D);
|
|
22599
22599
|
if (V) {
|
|
22600
22600
|
if (G["on:end"]) {
|
|
22601
|
-
const pe = new
|
|
22601
|
+
const pe = new Yh(G);
|
|
22602
22602
|
G["on:end"](N, pe), pe.isMatchIgnored && (V = !1);
|
|
22603
22603
|
}
|
|
22604
22604
|
if (V) {
|
|
@@ -22614,7 +22614,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Y = I, F = x), A ===
|
|
|
22614
22614
|
return w.matcher.regexIndex === 0 ? (te += G[0], 1) : (yt = !0, 0);
|
|
22615
22615
|
}
|
|
22616
22616
|
function dn(G) {
|
|
22617
|
-
const N = G[0], D = G.rule, V = new
|
|
22617
|
+
const N = G[0], D = G.rule, V = new Yh(D), pe = [D.__beforeBegin, D["on:begin"]];
|
|
22618
22618
|
for (const we of pe)
|
|
22619
22619
|
if (we && (we(G, V), V.isMatchIgnored))
|
|
22620
22620
|
return Ne(N);
|
|
@@ -22623,7 +22623,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Y = I, F = x), A ===
|
|
|
22623
22623
|
function Qt(G) {
|
|
22624
22624
|
const N = G[0], D = x.substring(G.index), V = Rt(w, G, D);
|
|
22625
22625
|
if (!V)
|
|
22626
|
-
return
|
|
22626
|
+
return tp;
|
|
22627
22627
|
const pe = w;
|
|
22628
22628
|
w.endScope && w.endScope._wrap ? (re(), Re(N, w.endScope._wrap)) : w.endScope && w.endScope._multi ? (re(), Ke(w.endScope, G)) : pe.skip ? te += N : (pe.returnEnd || pe.excludeEnd || (te += N), re(), pe.excludeEnd && (te = N));
|
|
22629
22629
|
do
|
|
@@ -22656,7 +22656,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Y = I, F = x), A ===
|
|
|
22656
22656
|
throw V.mode = w, V;
|
|
22657
22657
|
} else if (N.type === "end") {
|
|
22658
22658
|
const V = Qt(N);
|
|
22659
|
-
if (V !==
|
|
22659
|
+
if (V !== tp)
|
|
22660
22660
|
return V;
|
|
22661
22661
|
}
|
|
22662
22662
|
if (N.type === "illegal" && D === "")
|
|
@@ -22785,7 +22785,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Y = I, F = x), A ===
|
|
|
22785
22785
|
}), ee("after:highlightElement", { el: I, result: Y, text: F });
|
|
22786
22786
|
}
|
|
22787
22787
|
function m(I) {
|
|
22788
|
-
a =
|
|
22788
|
+
a = ep(a, I);
|
|
22789
22789
|
}
|
|
22790
22790
|
const v = () => {
|
|
22791
22791
|
T(), ri("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
|
@@ -22880,7 +22880,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Y = I, F = x), A ===
|
|
|
22880
22880
|
getLanguage: P,
|
|
22881
22881
|
registerAliases: K,
|
|
22882
22882
|
autoDetection: X,
|
|
22883
|
-
inherit:
|
|
22883
|
+
inherit: ep,
|
|
22884
22884
|
addPlugin: ve,
|
|
22885
22885
|
removePlugin: fe
|
|
22886
22886
|
}), t.debugMode = function() {
|
|
@@ -22912,13 +22912,13 @@ function t0(t, e = []) {
|
|
|
22912
22912
|
};
|
|
22913
22913
|
});
|
|
22914
22914
|
}
|
|
22915
|
-
function
|
|
22915
|
+
function np(t) {
|
|
22916
22916
|
return t.value || t.children || [];
|
|
22917
22917
|
}
|
|
22918
22918
|
function AT(t) {
|
|
22919
22919
|
return !!NT.getLanguage(t);
|
|
22920
22920
|
}
|
|
22921
|
-
function
|
|
22921
|
+
function rp({
|
|
22922
22922
|
doc: t,
|
|
22923
22923
|
name: e,
|
|
22924
22924
|
lowlight: n,
|
|
@@ -22928,7 +22928,7 @@ function np({
|
|
|
22928
22928
|
return kc(t, (s) => s.type.name === e).forEach((s) => {
|
|
22929
22929
|
var o;
|
|
22930
22930
|
let a = s.pos + 1;
|
|
22931
|
-
const l = s.node.attrs.language || r, c = n.listLanguages(), u = l && (c.includes(l) || AT(l) || (o = n.registered) != null && o.call(n, l)) ?
|
|
22931
|
+
const l = s.node.attrs.language || r, c = n.listLanguages(), u = l && (c.includes(l) || AT(l) || (o = n.registered) != null && o.call(n, l)) ? np(n.highlight(l, s.node.textContent)) : np(n.highlightAuto(s.node.textContent));
|
|
22932
22932
|
t0(u).forEach((d) => {
|
|
22933
22933
|
const f = a + d.text.length;
|
|
22934
22934
|
if (d.classes.length) {
|
|
@@ -22954,7 +22954,7 @@ function RT({
|
|
|
22954
22954
|
const r = new Ve({
|
|
22955
22955
|
key: new Xe("lowlight"),
|
|
22956
22956
|
state: {
|
|
22957
|
-
init: (i, { doc: s }) =>
|
|
22957
|
+
init: (i, { doc: s }) => rp({
|
|
22958
22958
|
doc: s,
|
|
22959
22959
|
name: t,
|
|
22960
22960
|
lowlight: e,
|
|
@@ -22976,7 +22976,7 @@ function RT({
|
|
|
22976
22976
|
h.pos >= f.from && // @ts-ignore
|
|
22977
22977
|
h.pos + h.node.nodeSize <= f.to
|
|
22978
22978
|
))
|
|
22979
|
-
))) ?
|
|
22979
|
+
))) ? rp({
|
|
22980
22980
|
doc: i.doc,
|
|
22981
22981
|
name: t,
|
|
22982
22982
|
lowlight: e,
|
|
@@ -23019,7 +23019,7 @@ var IT = gx.extend({
|
|
|
23019
23019
|
];
|
|
23020
23020
|
}
|
|
23021
23021
|
});
|
|
23022
|
-
const Ji = (t) => (t || "plaintext").trim() || "plaintext",
|
|
23022
|
+
const Ji = (t) => (t || "plaintext").trim() || "plaintext", ip = (t) => {
|
|
23023
23023
|
const e = t.getAttribute("data-language");
|
|
23024
23024
|
if (e) return Ji(e);
|
|
23025
23025
|
const n = t.matches("code") ? t : t.querySelector("code"), i = ((n == null ? void 0 : n.getAttribute("class")) || t.getAttribute("class") || "").match(/(?:^|\s)language-([^\s]+)/);
|
|
@@ -23032,7 +23032,7 @@ const Ji = (t) => (t || "plaintext").trim() || "plaintext", rp = (t) => {
|
|
|
23032
23032
|
...(t = this.parent) == null ? void 0 : t.call(this),
|
|
23033
23033
|
language: {
|
|
23034
23034
|
default: "plaintext",
|
|
23035
|
-
parseHTML:
|
|
23035
|
+
parseHTML: ip,
|
|
23036
23036
|
renderHTML: (e) => ({
|
|
23037
23037
|
"data-language": Ji(e.language)
|
|
23038
23038
|
})
|
|
@@ -23045,7 +23045,7 @@ const Ji = (t) => (t || "plaintext").trim() || "plaintext", rp = (t) => {
|
|
|
23045
23045
|
tag: "pre",
|
|
23046
23046
|
preserveWhitespace: "full",
|
|
23047
23047
|
getAttrs: (t) => ({
|
|
23048
|
-
language:
|
|
23048
|
+
language: ip(t)
|
|
23049
23049
|
})
|
|
23050
23050
|
}
|
|
23051
23051
|
];
|
|
@@ -23273,7 +23273,7 @@ const Ji = (t) => (t || "plaintext").trim() || "plaintext", rp = (t) => {
|
|
|
23273
23273
|
setup(t) {
|
|
23274
23274
|
const e = t, n = S(null), r = S(null), i = S(null), s = S(!1), o = S(!1), a = S("");
|
|
23275
23275
|
let l = null;
|
|
23276
|
-
const c = async () => (l || (l = import("./mermaid.core-
|
|
23276
|
+
const c = async () => (l || (l = import("./mermaid.core-ffRoaHVo.mjs").then((R) => R.bC).then((R) => R.default)), l);
|
|
23277
23277
|
wt(r, () => {
|
|
23278
23278
|
s.value = !1, f.value = !1;
|
|
23279
23279
|
});
|
|
@@ -23538,7 +23538,7 @@ function ZT(t) {
|
|
|
23538
23538
|
function QT(t) {
|
|
23539
23539
|
return !t || t.length > 80 || /[\u4e00-\u9fa5]/.test(t) ? !1 : /\\[a-zA-Z]+|[\^_=<>]|\\quad|\\frac|\\sqrt|\\Delta|\\pm|\\times|\\neq/.test(t);
|
|
23540
23540
|
}
|
|
23541
|
-
function
|
|
23541
|
+
function sp(t) {
|
|
23542
23542
|
return t.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
23543
23543
|
}
|
|
23544
23544
|
function Jl(t) {
|
|
@@ -23546,10 +23546,10 @@ function Jl(t) {
|
|
|
23546
23546
|
const e = /\$\$([\s\S]*?)\$\$|\\\[([\s\S]*?)\\\]/g, n = /\$([^$\n]+?)\$|\\\(([\s\S]*?)\\\)/g;
|
|
23547
23547
|
return t.replace(e, (r, i, s) => {
|
|
23548
23548
|
const o = i || s;
|
|
23549
|
-
return o ? `<katex-formula formula="${
|
|
23549
|
+
return o ? `<katex-formula formula="${sp(o.trim())}" display="true" editable="true"></katex-formula>` : "";
|
|
23550
23550
|
}).replace(n, (r, i, s) => {
|
|
23551
23551
|
const o = i || s;
|
|
23552
|
-
return o ? `<katex-formula formula="${
|
|
23552
|
+
return o ? `<katex-formula formula="${sp(o.trim())}" display="false" editable="true"></katex-formula>` : "";
|
|
23553
23553
|
});
|
|
23554
23554
|
}
|
|
23555
23555
|
function Hi(t, e) {
|
|
@@ -27452,7 +27452,7 @@ function y_(t) {
|
|
|
27452
27452
|
]
|
|
27453
27453
|
};
|
|
27454
27454
|
}
|
|
27455
|
-
var di = "[0-9](_*[0-9])*", Gs = `\\.(${di})`, js = "[0-9a-fA-F](_*[0-9a-fA-F])*",
|
|
27455
|
+
var di = "[0-9](_*[0-9])*", Gs = `\\.(${di})`, js = "[0-9a-fA-F](_*[0-9a-fA-F])*", op = {
|
|
27456
27456
|
className: "number",
|
|
27457
27457
|
variants: [
|
|
27458
27458
|
// DecimalFloatingPointLiteral
|
|
@@ -27674,7 +27674,7 @@ function w_(t) {
|
|
|
27674
27674
|
c,
|
|
27675
27675
|
t.APOS_STRING_MODE,
|
|
27676
27676
|
t.QUOTE_STRING_MODE,
|
|
27677
|
-
|
|
27677
|
+
op,
|
|
27678
27678
|
t.C_BLOCK_COMMENT_MODE
|
|
27679
27679
|
]
|
|
27680
27680
|
},
|
|
@@ -27682,12 +27682,12 @@ function w_(t) {
|
|
|
27682
27682
|
t.C_BLOCK_COMMENT_MODE
|
|
27683
27683
|
]
|
|
27684
27684
|
},
|
|
27685
|
-
|
|
27685
|
+
op,
|
|
27686
27686
|
c
|
|
27687
27687
|
]
|
|
27688
27688
|
};
|
|
27689
27689
|
}
|
|
27690
|
-
const
|
|
27690
|
+
const ap = "[A-Za-z$_][0-9A-Za-z$_]*", E_ = [
|
|
27691
27691
|
"as",
|
|
27692
27692
|
// for exports
|
|
27693
27693
|
"in",
|
|
@@ -27835,7 +27835,7 @@ function M_(t) {
|
|
|
27835
27835
|
const e = t.regex, n = (A, { after: F }) => {
|
|
27836
27836
|
const Y = "</" + A[0].slice(1);
|
|
27837
27837
|
return A.input.indexOf(Y, F) !== -1;
|
|
27838
|
-
}, r =
|
|
27838
|
+
}, r = ap, i = {
|
|
27839
27839
|
begin: "<>",
|
|
27840
27840
|
end: "</>"
|
|
27841
27841
|
}, s = /<[A-Za-z0-9\\._:-]+\s*\/>/, o = {
|
|
@@ -27871,7 +27871,7 @@ function M_(t) {
|
|
|
27871
27871
|
}
|
|
27872
27872
|
}
|
|
27873
27873
|
}, a = {
|
|
27874
|
-
$pattern:
|
|
27874
|
+
$pattern: ap,
|
|
27875
27875
|
keyword: E_,
|
|
27876
27876
|
literal: k_,
|
|
27877
27877
|
built_in: S_,
|
|
@@ -33641,7 +33641,7 @@ const ju = (t) => We(
|
|
|
33641
33641
|
// contextual
|
|
33642
33642
|
"Type"
|
|
33643
33643
|
// contextual
|
|
33644
|
-
].map(ju),
|
|
33644
|
+
].map(ju), lp = [
|
|
33645
33645
|
"init",
|
|
33646
33646
|
"self"
|
|
33647
33647
|
].map(ju), sN = [
|
|
@@ -33772,7 +33772,7 @@ const ju = (t) => We(
|
|
|
33772
33772
|
"while",
|
|
33773
33773
|
"willSet"
|
|
33774
33774
|
// contextual
|
|
33775
|
-
],
|
|
33775
|
+
], cp = [
|
|
33776
33776
|
"false",
|
|
33777
33777
|
"nil",
|
|
33778
33778
|
"true"
|
|
@@ -33805,7 +33805,7 @@ const ju = (t) => We(
|
|
|
33805
33805
|
"#sourceLocation",
|
|
33806
33806
|
"#warn_unqualified_access",
|
|
33807
33807
|
"#warning"
|
|
33808
|
-
],
|
|
33808
|
+
], up = [
|
|
33809
33809
|
"abs",
|
|
33810
33810
|
"all",
|
|
33811
33811
|
"any",
|
|
@@ -33947,7 +33947,7 @@ function uN(t) {
|
|
|
33947
33947
|
], i = {
|
|
33948
33948
|
match: [
|
|
33949
33949
|
/\./,
|
|
33950
|
-
It(...iN, ...
|
|
33950
|
+
It(...iN, ...lp)
|
|
33951
33951
|
],
|
|
33952
33952
|
className: { 2: "keyword" }
|
|
33953
33953
|
}, s = {
|
|
@@ -33957,7 +33957,7 @@ function uN(t) {
|
|
|
33957
33957
|
}, o = Zl.filter((Ne) => typeof Ne == "string").concat(["_|0"]), a = Zl.filter((Ne) => typeof Ne != "string").concat(sN).map(ju), l = { variants: [
|
|
33958
33958
|
{
|
|
33959
33959
|
className: "keyword",
|
|
33960
|
-
match: It(...a, ...
|
|
33960
|
+
match: It(...a, ...lp)
|
|
33961
33961
|
}
|
|
33962
33962
|
] }, c = {
|
|
33963
33963
|
$pattern: It(
|
|
@@ -33967,18 +33967,18 @@ function uN(t) {
|
|
|
33967
33967
|
// number keywords
|
|
33968
33968
|
),
|
|
33969
33969
|
keyword: o.concat(aN),
|
|
33970
|
-
literal:
|
|
33970
|
+
literal: cp
|
|
33971
33971
|
}, u = [
|
|
33972
33972
|
i,
|
|
33973
33973
|
s,
|
|
33974
33974
|
l
|
|
33975
33975
|
], d = {
|
|
33976
33976
|
// Consume .built_in to prevent highlighting properties and methods.
|
|
33977
|
-
match: We(/\./, It(...
|
|
33977
|
+
match: We(/\./, It(...up)),
|
|
33978
33978
|
relevance: 0
|
|
33979
33979
|
}, f = {
|
|
33980
33980
|
className: "built_in",
|
|
33981
|
-
match: We(/\b/, It(...
|
|
33981
|
+
match: We(/\b/, It(...up), /(?=\()/)
|
|
33982
33982
|
}, h = [
|
|
33983
33983
|
d,
|
|
33984
33984
|
f
|
|
@@ -34251,7 +34251,7 @@ function uN(t) {
|
|
|
34251
34251
|
contains: [A],
|
|
34252
34252
|
keywords: [
|
|
34253
34253
|
...oN,
|
|
34254
|
-
...
|
|
34254
|
+
...cp
|
|
34255
34255
|
],
|
|
34256
34256
|
end: /}/
|
|
34257
34257
|
};
|
|
@@ -35663,7 +35663,7 @@ function y0(t) {
|
|
|
35663
35663
|
(r === "object" || r === "function") && !Object.isFrozen(n) && y0(n);
|
|
35664
35664
|
}), t;
|
|
35665
35665
|
}
|
|
35666
|
-
class
|
|
35666
|
+
class dp {
|
|
35667
35667
|
/**
|
|
35668
35668
|
* @param {CompiledMode} mode
|
|
35669
35669
|
*/
|
|
@@ -35687,7 +35687,7 @@ function cr(t, ...e) {
|
|
|
35687
35687
|
}), /** @type {T} */
|
|
35688
35688
|
n;
|
|
35689
35689
|
}
|
|
35690
|
-
const bN = "</span>",
|
|
35690
|
+
const bN = "</span>", fp = (t) => !!t.scope, vN = (t, { prefix: e }) => {
|
|
35691
35691
|
if (t.startsWith("language:"))
|
|
35692
35692
|
return t.replace("language:", "language-");
|
|
35693
35693
|
if (t.includes(".")) {
|
|
@@ -35721,7 +35721,7 @@ class yN {
|
|
|
35721
35721
|
*
|
|
35722
35722
|
* @param {Node} node */
|
|
35723
35723
|
openNode(e) {
|
|
35724
|
-
if (!
|
|
35724
|
+
if (!fp(e)) return;
|
|
35725
35725
|
const n = vN(
|
|
35726
35726
|
e.scope,
|
|
35727
35727
|
{ prefix: this.classPrefix }
|
|
@@ -35733,7 +35733,7 @@ class yN {
|
|
|
35733
35733
|
*
|
|
35734
35734
|
* @param {Node} node */
|
|
35735
35735
|
closeNode(e) {
|
|
35736
|
-
|
|
35736
|
+
fp(e) && (this.buffer += bN);
|
|
35737
35737
|
}
|
|
35738
35738
|
/**
|
|
35739
35739
|
* returns the accumulated buffer
|
|
@@ -35750,13 +35750,13 @@ class yN {
|
|
|
35750
35750
|
this.buffer += `<span class="${e}">`;
|
|
35751
35751
|
}
|
|
35752
35752
|
}
|
|
35753
|
-
const
|
|
35753
|
+
const hp = (t = {}) => {
|
|
35754
35754
|
const e = { children: [] };
|
|
35755
35755
|
return Object.assign(e, t), e;
|
|
35756
35756
|
};
|
|
35757
35757
|
class Yu {
|
|
35758
35758
|
constructor() {
|
|
35759
|
-
this.rootNode =
|
|
35759
|
+
this.rootNode = hp(), this.stack = [this.rootNode];
|
|
35760
35760
|
}
|
|
35761
35761
|
get top() {
|
|
35762
35762
|
return this.stack[this.stack.length - 1];
|
|
@@ -35770,7 +35770,7 @@ class Yu {
|
|
|
35770
35770
|
}
|
|
35771
35771
|
/** @param {string} scope */
|
|
35772
35772
|
openNode(e) {
|
|
35773
|
-
const n =
|
|
35773
|
+
const n = hp({ scope: e });
|
|
35774
35774
|
this.add(n), this.stack.push(n);
|
|
35775
35775
|
}
|
|
35776
35776
|
closeNode() {
|
|
@@ -36147,12 +36147,12 @@ function ZN(t, e) {
|
|
|
36147
36147
|
function QN(t) {
|
|
36148
36148
|
return XN.includes(t.toLowerCase());
|
|
36149
36149
|
}
|
|
36150
|
-
const
|
|
36150
|
+
const pp = {}, zr = (t) => {
|
|
36151
36151
|
He(t);
|
|
36152
|
-
},
|
|
36152
|
+
}, mp = (t, ...e) => {
|
|
36153
36153
|
He(`WARN: ${t}`, ...e);
|
|
36154
36154
|
}, ii = (t, e) => {
|
|
36155
|
-
|
|
36155
|
+
pp[`${t}/${e}`] || (He(`Deprecated as of ${t}. ${e}`), pp[`${t}/${e}`] = !0);
|
|
36156
36156
|
}, ra = new Error();
|
|
36157
36157
|
function _0(t, e, { key: n }) {
|
|
36158
36158
|
let r = 0;
|
|
@@ -36307,7 +36307,7 @@ class aA extends Error {
|
|
|
36307
36307
|
super(e), this.name = "HTMLInjectionError", this.html = n;
|
|
36308
36308
|
}
|
|
36309
36309
|
}
|
|
36310
|
-
const tc = w0,
|
|
36310
|
+
const tc = w0, gp = cr, bp = Symbol("nomatch"), lA = 7, A0 = function(t) {
|
|
36311
36311
|
const e = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null), r = [];
|
|
36312
36312
|
let i = !0;
|
|
36313
36313
|
const s = "Could not find the language '{}', did you forget to load/include a language module?", o = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
|
@@ -36332,7 +36332,7 @@ const tc = w0, mp = cr, gp = Symbol("nomatch"), lA = 7, A0 = function(t) {
|
|
|
36332
36332
|
const F = a.languageDetectRe.exec(A);
|
|
36333
36333
|
if (F) {
|
|
36334
36334
|
const Y = K(F[1]);
|
|
36335
|
-
return Y || (
|
|
36335
|
+
return Y || (mp(s.replace("{}", F[1])), mp("Falling back to no-highlight mode for this block.", x)), Y ? F[1] : "no-highlight";
|
|
36336
36336
|
}
|
|
36337
36337
|
return A.split(/\s+/).find((Y) => l(Y) || K(Y));
|
|
36338
36338
|
}
|
|
@@ -36417,7 +36417,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), he = x, Y = A), F ===
|
|
|
36417
36417
|
let pe = SN(N.endRe, V);
|
|
36418
36418
|
if (pe) {
|
|
36419
36419
|
if (N["on:end"]) {
|
|
36420
|
-
const we = new
|
|
36420
|
+
const we = new dp(N);
|
|
36421
36421
|
N["on:end"](D, we), we.isMatchIgnored && (pe = !1);
|
|
36422
36422
|
}
|
|
36423
36423
|
if (pe) {
|
|
@@ -36433,7 +36433,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), he = x, Y = A), F ===
|
|
|
36433
36433
|
return q.matcher.regexIndex === 0 ? (ne += N[0], 1) : (G = !0, 0);
|
|
36434
36434
|
}
|
|
36435
36435
|
function Qt(N) {
|
|
36436
|
-
const D = N[0], V = N.rule, pe = new
|
|
36436
|
+
const D = N[0], V = N.rule, pe = new dp(V), we = [V.__beforeBegin, V["on:begin"]];
|
|
36437
36437
|
for (const Ct of we)
|
|
36438
36438
|
if (Ct && (Ct(N, pe), pe.isMatchIgnored))
|
|
36439
36439
|
return dn(D);
|
|
@@ -36442,7 +36442,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), he = x, Y = A), F ===
|
|
|
36442
36442
|
function rt(N) {
|
|
36443
36443
|
const D = N[0], V = A.substring(N.index), pe = Ne(q, N, V);
|
|
36444
36444
|
if (!pe)
|
|
36445
|
-
return
|
|
36445
|
+
return bp;
|
|
36446
36446
|
const we = q;
|
|
36447
36447
|
q.endScope && q.endScope._wrap ? (Re(), Ke(D, q.endScope._wrap)) : q.endScope && q.endScope._multi ? (Re(), vt(q.endScope, N)) : we.skip ? ne += D : (we.returnEnd || we.excludeEnd || (ne += D), Re(), we.excludeEnd && (ne = D));
|
|
36448
36448
|
do
|
|
@@ -36475,7 +36475,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), he = x, Y = A), F ===
|
|
|
36475
36475
|
throw pe.mode = q, pe;
|
|
36476
36476
|
} else if (D.type === "end") {
|
|
36477
36477
|
const pe = rt(D);
|
|
36478
|
-
if (pe !==
|
|
36478
|
+
if (pe !== bp)
|
|
36479
36479
|
return pe;
|
|
36480
36480
|
}
|
|
36481
36481
|
if (D.type === "illegal" && V === "")
|
|
@@ -36599,7 +36599,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), he = x, Y = A), F ===
|
|
|
36599
36599
|
}), ce("after:highlightElement", { el: x, result: he, text: Y });
|
|
36600
36600
|
}
|
|
36601
36601
|
function m(x) {
|
|
36602
|
-
a =
|
|
36602
|
+
a = gp(a, x);
|
|
36603
36603
|
}
|
|
36604
36604
|
const v = () => {
|
|
36605
36605
|
T(), ii("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
|
@@ -36695,7 +36695,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), he = x, Y = A), F ===
|
|
|
36695
36695
|
getLanguage: K,
|
|
36696
36696
|
registerAliases: X,
|
|
36697
36697
|
autoDetection: me,
|
|
36698
|
-
inherit:
|
|
36698
|
+
inherit: gp,
|
|
36699
36699
|
addPlugin: fe,
|
|
36700
36700
|
removePlugin: ee
|
|
36701
36701
|
}), t.debugMode = function() {
|
|
@@ -37200,7 +37200,7 @@ const wA = [
|
|
|
37200
37200
|
_: 1
|
|
37201
37201
|
}));
|
|
37202
37202
|
}
|
|
37203
|
-
}),
|
|
37203
|
+
}), vp = {
|
|
37204
37204
|
success(t, e = 3) {
|
|
37205
37205
|
this.createMessage({ content: t, type: "success", duration: e });
|
|
37206
37206
|
},
|
|
@@ -37534,7 +37534,7 @@ const wA = [
|
|
|
37534
37534
|
}, null, 8, g3)
|
|
37535
37535
|
], 8, m3));
|
|
37536
37536
|
}
|
|
37537
|
-
}), v3 = ["width", "height"], y3 = ["fill", "stroke"],
|
|
37537
|
+
}), v3 = ["width", "height"], y3 = ["fill", "stroke"], yp = /* @__PURE__ */ ue({
|
|
37538
37538
|
__name: "IconJiacu",
|
|
37539
37539
|
props: {
|
|
37540
37540
|
size: {},
|
|
@@ -37560,7 +37560,7 @@ const wA = [
|
|
|
37560
37560
|
}, null, 8, y3)
|
|
37561
37561
|
], 8, v3));
|
|
37562
37562
|
}
|
|
37563
|
-
}), w3 = ["width", "height"], E3 = ["fill", "stroke"],
|
|
37563
|
+
}), w3 = ["width", "height"], E3 = ["fill", "stroke"], wp = /* @__PURE__ */ ue({
|
|
37564
37564
|
__name: "IconXieti",
|
|
37565
37565
|
props: {
|
|
37566
37566
|
size: {},
|
|
@@ -37586,7 +37586,7 @@ const wA = [
|
|
|
37586
37586
|
}, null, 8, E3)
|
|
37587
37587
|
], 8, w3));
|
|
37588
37588
|
}
|
|
37589
|
-
}), k3 = ["width", "height"], x3 = ["fill", "stroke"],
|
|
37589
|
+
}), k3 = ["width", "height"], x3 = ["fill", "stroke"], Ep = /* @__PURE__ */ ue({
|
|
37590
37590
|
__name: "IconXiahuaxian",
|
|
37591
37591
|
props: {
|
|
37592
37592
|
size: {},
|
|
@@ -37612,7 +37612,7 @@ const wA = [
|
|
|
37612
37612
|
}, null, 8, x3)
|
|
37613
37613
|
], 8, k3));
|
|
37614
37614
|
}
|
|
37615
|
-
}), S3 = ["width", "height"], M3 = ["fill", "stroke"],
|
|
37615
|
+
}), S3 = ["width", "height"], M3 = ["fill", "stroke"], kp = /* @__PURE__ */ ue({
|
|
37616
37616
|
__name: "IconShanchuxian",
|
|
37617
37617
|
props: {
|
|
37618
37618
|
size: {},
|
|
@@ -37638,7 +37638,7 @@ const wA = [
|
|
|
37638
37638
|
}, null, 8, M3)
|
|
37639
37639
|
], 8, S3));
|
|
37640
37640
|
}
|
|
37641
|
-
}), C3 = ["width", "height"], T3 = ["fill", "stroke"], _3 = ["fill", "stroke"],
|
|
37641
|
+
}), C3 = ["width", "height"], T3 = ["fill", "stroke"], _3 = ["fill", "stroke"], xp = /* @__PURE__ */ ue({
|
|
37642
37642
|
__name: "IconYingyong",
|
|
37643
37643
|
props: {
|
|
37644
37644
|
size: {},
|
|
@@ -38067,7 +38067,7 @@ const wA = [
|
|
|
38067
38067
|
}, null, 8, kO)
|
|
38068
38068
|
], 8, EO));
|
|
38069
38069
|
}
|
|
38070
|
-
}), xO = ["width", "height"], SO = ["fill"],
|
|
38070
|
+
}), xO = ["width", "height"], SO = ["fill"], Sp = /* @__PURE__ */ ue({
|
|
38071
38071
|
__name: "IconBeijingse",
|
|
38072
38072
|
props: {
|
|
38073
38073
|
size: {},
|
|
@@ -38211,7 +38211,7 @@ const wA = [
|
|
|
38211
38211
|
}, null, 8, $O)
|
|
38212
38212
|
], 8, DO));
|
|
38213
38213
|
}
|
|
38214
|
-
}), PO = ["width", "height"], zO = ["fill"],
|
|
38214
|
+
}), PO = ["width", "height"], zO = ["fill"], Mp = /* @__PURE__ */ ue({
|
|
38215
38215
|
__name: "IconCodeInLine",
|
|
38216
38216
|
props: {
|
|
38217
38217
|
size: {},
|
|
@@ -38355,7 +38355,7 @@ const wA = [
|
|
|
38355
38355
|
], 8, JO));
|
|
38356
38356
|
}
|
|
38357
38357
|
});
|
|
38358
|
-
function
|
|
38358
|
+
function Cp(t) {
|
|
38359
38359
|
return t.isActive("headingWithId");
|
|
38360
38360
|
}
|
|
38361
38361
|
function nR() {
|
|
@@ -38539,28 +38539,28 @@ ${dR(n, e)}
|
|
|
38539
38539
|
${I0(i)}
|
|
38540
38540
|
|
|
38541
38541
|
` : i;
|
|
38542
|
-
},
|
|
38542
|
+
}, hR = (t) => {
|
|
38543
38543
|
const e = document.createElement("div");
|
|
38544
38544
|
return e.innerHTML = t, sR(Ta(e, { inline: !1, listDepth: 0 }));
|
|
38545
|
-
},
|
|
38545
|
+
}, pR = {
|
|
38546
38546
|
key: 0,
|
|
38547
38547
|
class: "eeed-editor-header"
|
|
38548
|
-
},
|
|
38548
|
+
}, mR = {
|
|
38549
38549
|
key: 0,
|
|
38550
38550
|
class: "eeed-editor-header-control"
|
|
38551
|
-
},
|
|
38551
|
+
}, gR = { class: "eeed-editor-svg-box" }, bR = { class: "eeed-toolbar-dropdown" }, vR = {
|
|
38552
38552
|
key: 2,
|
|
38553
38553
|
class: "title"
|
|
38554
|
-
},
|
|
38554
|
+
}, yR = { style: { width: "60px", display: "block", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" } }, wR = { class: "eeed-toolbar-dropdown" }, ER = ["onClick"], kR = { style: { width: "45px", display: "inline-block" } }, xR = { class: "eeed-toolbar-dropdown" }, SR = { style: { width: "30px", display: "inline-block" } }, MR = { class: "eeed-toolbar-dropdown" }, CR = ["onClick"], TR = {
|
|
38555
38555
|
class: "hover-button",
|
|
38556
38556
|
style: { width: "20px", display: "inline-flex", border: "solid 1px #e0e0e0" }
|
|
38557
|
-
},
|
|
38557
|
+
}, _R = { class: "eeed-toolbar-dropdown-inline" }, NR = ["onClick", "title", "data-label"], AR = { class: "eeed-toolbar-dropdown-inline" }, OR = ["onClick", "title", "data-label"], RR = { class: "iconfont icon-jiantou_liebiaozhankai" }, IR = { class: "iconfont icon-jiantou_liebiaoshouqi" }, LR = { class: "eeed-toolbar-table-dropdown" }, DR = ["onMouseenter", "onClick"], $R = { class: "picker-tip" }, BR = { class: "eeed-toolbar-dropdown" }, PR = { class: "eeed-toolbar-dropdown" }, zR = ["onClick"], HR = { style: { width: "50px", display: "inline-flex", "align-items": "center" } }, FR = { class: "eeed-toolbar-dropdown" }, UR = { class: "mulu-title" }, WR = { key: 2 }, VR = {
|
|
38558
38558
|
key: 0,
|
|
38559
38559
|
class: "zanwu-mulu"
|
|
38560
|
-
},
|
|
38560
|
+
}, KR = { key: 1 }, qR = ["title", "onClick"], GR = { key: 0 }, jR = {
|
|
38561
38561
|
class: "hover-button",
|
|
38562
38562
|
style: { width: "20px", display: "inline-flex", border: "solid 1px #e0e0e0" }
|
|
38563
|
-
},
|
|
38563
|
+
}, YR = { class: "toolbar-select-inlie-list" }, XR = ["onClick", "data-label"], JR = { class: "toolbar-select-inlie-list" }, ZR = ["onClick", "data-label"], QR = { class: "mermaid-edit-box" }, e4 = 8, t4 = 10, n4 = /* @__PURE__ */ ue({
|
|
38564
38564
|
__name: "index",
|
|
38565
38565
|
props: {
|
|
38566
38566
|
title: {},
|
|
@@ -38740,7 +38740,7 @@ ${I0(i)}
|
|
|
38740
38740
|
return;
|
|
38741
38741
|
}
|
|
38742
38742
|
const b = w.value.getHTML();
|
|
38743
|
-
(n.onSave ? await n.onSave(Y.value, b) : void 0) && (E === "ctrls" &&
|
|
38743
|
+
(n.onSave ? await n.onSave(Y.value, b) : void 0) && (E === "ctrls" && vp.success("内容保存成功"), Sr == null || Sr()), Xr = null;
|
|
38744
38744
|
}, 500), kd), H0 = (E) => {
|
|
38745
38745
|
};
|
|
38746
38746
|
function Sd(E) {
|
|
@@ -38795,7 +38795,7 @@ ${I0(i)}
|
|
|
38795
38795
|
if (!w.value) return;
|
|
38796
38796
|
const E = w.value.state, b = E.selection.$from.marks(), { selection: L } = E;
|
|
38797
38797
|
let W = null;
|
|
38798
|
-
L.empty, W = L.$from.nodeAfter || L.$from.node(), te.value = b.some((Ae) => Ae.type.name === "bold"), ne.value = b.some((Ae) => Ae.type.name === "italic"), Ze.value = b.some((Ae) => Ae.type.name === "underline"), yt.value = w.value.isActive("blockquote"), Be.value = b.some((Ae) => Ae.type.name === "strike"), D.value = w.value.commands.isActiveBulletItem(), V.value = w.value.commands.isActiveTaskItem(), G.value = b.some((Ae) => Ae.type.name === "code"), Ct.value = w.value.isActive("headingWithId", { level: 1 }), kr.value = w.value.isActive("headingWithId", { level: 2 }), Ai.value = w.value.isActive("headingWithId", { level: 3 }), _a.value = w.value.isActive("headingWithId", { level: 4 }), Na.value = w.value.isActive("headingWithId", { level: 5 }), Aa.value = w.value.isActive("headingWithId", { level: 6 }), we.value =
|
|
38798
|
+
L.empty, W = L.$from.nodeAfter || L.$from.node(), te.value = b.some((Ae) => Ae.type.name === "bold"), ne.value = b.some((Ae) => Ae.type.name === "italic"), Ze.value = b.some((Ae) => Ae.type.name === "underline"), yt.value = w.value.isActive("blockquote"), Be.value = b.some((Ae) => Ae.type.name === "strike"), D.value = w.value.commands.isActiveBulletItem(), V.value = w.value.commands.isActiveTaskItem(), G.value = b.some((Ae) => Ae.type.name === "code"), Ct.value = w.value.isActive("headingWithId", { level: 1 }), kr.value = w.value.isActive("headingWithId", { level: 2 }), Ai.value = w.value.isActive("headingWithId", { level: 3 }), _a.value = w.value.isActive("headingWithId", { level: 4 }), Na.value = w.value.isActive("headingWithId", { level: 5 }), Aa.value = w.value.isActive("headingWithId", { level: 6 }), we.value = Cp(w.value), Oa.value = w.value.isActive("paragraph"), xs.value = W0(), Ss.value = V0(), jn.value = U0(), fl.value = K0();
|
|
38799
38799
|
const ke = (W == null ? void 0 : W.type.name) === "image" || (W == null ? void 0 : W.type.name) === "customImage";
|
|
38800
38800
|
pe.value = !!ke;
|
|
38801
38801
|
const M = (de = w.value.getAttributes("textStyle")) == null ? void 0 : de.color;
|
|
@@ -38864,7 +38864,7 @@ ${I0(i)}
|
|
|
38864
38864
|
(E = w.value) == null || E.commands.undo();
|
|
38865
38865
|
}, hl = (E) => {
|
|
38866
38866
|
var b, L;
|
|
38867
|
-
w.value && (jn.value = E,
|
|
38867
|
+
w.value && (jn.value = E, Cp(w.value) ? (b = w.value) == null || b.chain().focus().setHeadingAlign(E).run() : (L = w.value) == null || L.chain().focus().setTextAlign(E).run(), Bd());
|
|
38868
38868
|
}, Bd = () => {
|
|
38869
38869
|
Wt.value = !Wt.value;
|
|
38870
38870
|
}, l1 = () => {
|
|
@@ -38924,7 +38924,7 @@ ${I0(i)}
|
|
|
38924
38924
|
var L, W;
|
|
38925
38925
|
if (!w.value) return;
|
|
38926
38926
|
const E = w.value.getHTML();
|
|
38927
|
-
(n.onSave ? await n.onSave(Y.value, E) : void 0) && (document.title = Y.value, (L = he.value) == null || L.blur(),
|
|
38927
|
+
(n.onSave ? await n.onSave(Y.value, E) : void 0) && (document.title = Y.value, (L = he.value) == null || L.blur(), vp.success("名称修改成功")), (W = he.value) == null || W.blur();
|
|
38928
38928
|
}, hn = S(!1), ml = S(0), gl = S(0), b1 = () => {
|
|
38929
38929
|
hn.value = !hn.value;
|
|
38930
38930
|
}, v1 = (E, b) => {
|
|
@@ -39003,9 +39003,15 @@ ${I0(i)}
|
|
|
39003
39003
|
}, M1 = (E, b, L = "text/plain;charset=utf-8") => {
|
|
39004
39004
|
const W = new Blob([E], { type: L }), ke = window.URL.createObjectURL(W), M = document.createElement("a");
|
|
39005
39005
|
M.href = ke, M.download = b, M.click(), window.URL.revokeObjectURL(ke);
|
|
39006
|
+
}, jd = (E) => {
|
|
39007
|
+
try {
|
|
39008
|
+
return hR(E);
|
|
39009
|
+
} catch {
|
|
39010
|
+
return "";
|
|
39011
|
+
}
|
|
39006
39012
|
}, C1 = () => {
|
|
39007
39013
|
if (!w.value) return;
|
|
39008
|
-
const E =
|
|
39014
|
+
const E = jd(w.value.getHTML());
|
|
39009
39015
|
M1(E, Y.value ? `${Y.value}.md` : "file.md", "text/markdown;charset=utf-8"), Mr.value = !1;
|
|
39010
39016
|
}, T1 = () => {
|
|
39011
39017
|
xd("toHomePage"), setTimeout(() => {
|
|
@@ -39018,11 +39024,11 @@ ${I0(i)}
|
|
|
39018
39024
|
top: `${L - 40}px`,
|
|
39019
39025
|
left: `${b}px`
|
|
39020
39026
|
};
|
|
39021
|
-
},
|
|
39027
|
+
}, Yd = S(null), _s = S(!1), N1 = () => {
|
|
39022
39028
|
Tt.value = !1, _s.value = !0;
|
|
39023
39029
|
}, A1 = () => {
|
|
39024
39030
|
var E;
|
|
39025
|
-
(E =
|
|
39031
|
+
(E = Yd.value) == null || E.click();
|
|
39026
39032
|
}, O1 = async (E) => {
|
|
39027
39033
|
if (!w.value) return;
|
|
39028
39034
|
const L = E.target.files;
|
|
@@ -39073,7 +39079,7 @@ ${I0(i)}
|
|
|
39073
39079
|
return (ct = at.parentNode) == null ? void 0 : ct.removeChild(at);
|
|
39074
39080
|
}), b.innerHTML;
|
|
39075
39081
|
}
|
|
39076
|
-
const
|
|
39082
|
+
const Xd = async (E) => {
|
|
39077
39083
|
if (!w.value) return;
|
|
39078
39084
|
const b = E.clipboardData;
|
|
39079
39085
|
if (!b) return;
|
|
@@ -39167,8 +39173,8 @@ ${I0(i)}
|
|
|
39167
39173
|
(pn.getAttribute("src") || "").startsWith("file:") && Ge.push(pn);
|
|
39168
39174
|
});
|
|
39169
39175
|
const $e = await Promise.all(Ge.map(ke));
|
|
39170
|
-
Te.forEach((pn,
|
|
39171
|
-
(pn.getAttribute("src") || "").startsWith("file:") && pn.setAttribute("src", $e[
|
|
39176
|
+
Te.forEach((pn, Jd) => {
|
|
39177
|
+
(pn.getAttribute("src") || "").startsWith("file:") && pn.setAttribute("src", $e[Jd]);
|
|
39172
39178
|
});
|
|
39173
39179
|
const it = L(xe.innerHTML), Qr = M(it), An = Rt(at(Qr));
|
|
39174
39180
|
w.value.chain().focus().insertContent(An.trim()).run();
|
|
@@ -39184,7 +39190,7 @@ ${I0(i)}
|
|
|
39184
39190
|
b.getData("text/rtf");
|
|
39185
39191
|
}, D1 = () => {
|
|
39186
39192
|
try {
|
|
39187
|
-
w.value && w.value.view.dom.removeEventListener("paste",
|
|
39193
|
+
w.value && w.value.view.dom.removeEventListener("paste", Xd, !0);
|
|
39188
39194
|
} catch {
|
|
39189
39195
|
}
|
|
39190
39196
|
};
|
|
@@ -39339,7 +39345,7 @@ ${I0(i)}
|
|
|
39339
39345
|
onUpdate: () => {
|
|
39340
39346
|
if (ul(), !!w.value) {
|
|
39341
39347
|
if (n.onChange) {
|
|
39342
|
-
const b = w.value.getHTML(), L = w.value.getText(), W =
|
|
39348
|
+
const b = w.value.getHTML(), L = w.value.getText(), W = jd(b);
|
|
39343
39349
|
n.onChange(b, L, W);
|
|
39344
39350
|
}
|
|
39345
39351
|
Vd();
|
|
@@ -39353,7 +39359,7 @@ ${I0(i)}
|
|
|
39353
39359
|
},
|
|
39354
39360
|
onPaste: async (b) => {
|
|
39355
39361
|
}
|
|
39356
|
-
}), w.value.view.dom.addEventListener("paste",
|
|
39362
|
+
}), w.value.view.dom.addEventListener("paste", Xd, !0), await Qt(n.content, !0), await Fn(), ul(), Ke();
|
|
39357
39363
|
} catch {
|
|
39358
39364
|
}
|
|
39359
39365
|
}), mr(
|
|
@@ -39382,8 +39388,8 @@ ${I0(i)}
|
|
|
39382
39388
|
"onUpdate:visible": b[0] || (b[0] = (M) => Le.value = M),
|
|
39383
39389
|
text: re.value
|
|
39384
39390
|
}, null, 8, ["visible", "text"]),
|
|
39385
|
-
i.value ? (z(), U("div",
|
|
39386
|
-
l.value ? (z(), U("div",
|
|
39391
|
+
i.value ? (z(), U("div", pR, [
|
|
39392
|
+
l.value ? (z(), U("div", mR, [
|
|
39387
39393
|
c.value ? (z(), U("span", {
|
|
39388
39394
|
key: 0,
|
|
39389
39395
|
class: "eeed-editor-svg-box",
|
|
@@ -39416,7 +39422,7 @@ ${I0(i)}
|
|
|
39416
39422
|
onMouseenter: b[1] || (b[1] = (M) => cl.value = !0),
|
|
39417
39423
|
onMouseleave: b[2] || (b[2] = (M) => cl.value = !1)
|
|
39418
39424
|
}, [
|
|
39419
|
-
y("span",
|
|
39425
|
+
y("span", gR, [
|
|
39420
39426
|
B(jA, {
|
|
39421
39427
|
size: "20",
|
|
39422
39428
|
color: "#191919",
|
|
@@ -39436,7 +39442,7 @@ ${I0(i)}
|
|
|
39436
39442
|
onClose: b[3] || (b[3] = (M) => Mr.value = !1)
|
|
39437
39443
|
}, {
|
|
39438
39444
|
default: Et(() => [
|
|
39439
|
-
y("div",
|
|
39445
|
+
y("div", bR, [
|
|
39440
39446
|
y("div", {
|
|
39441
39447
|
class: "charu-item",
|
|
39442
39448
|
onClick: S1
|
|
@@ -39468,7 +39474,7 @@ ${I0(i)}
|
|
|
39468
39474
|
_: 1
|
|
39469
39475
|
}, 8, ["target", "visible"])
|
|
39470
39476
|
], 512)) : Me("", !0),
|
|
39471
|
-
h.value ? (z(), U("div",
|
|
39477
|
+
h.value ? (z(), U("div", vR, [
|
|
39472
39478
|
Pe(y("input", {
|
|
39473
39479
|
ref_key: "fileNameInputRef",
|
|
39474
39480
|
ref: he,
|
|
@@ -39585,7 +39591,7 @@ ${I0(i)}
|
|
|
39585
39591
|
class: be(["toolbar-select-header", { "hover-button": xr.value }]),
|
|
39586
39592
|
onClick: t1
|
|
39587
39593
|
}, [
|
|
39588
|
-
y("span",
|
|
39594
|
+
y("span", yR, Pt(Ss.value), 1),
|
|
39589
39595
|
Pe(B(bn, {
|
|
39590
39596
|
size: "16",
|
|
39591
39597
|
color: "#191919"
|
|
@@ -39605,12 +39611,12 @@ ${I0(i)}
|
|
|
39605
39611
|
minWidth: 260
|
|
39606
39612
|
}, {
|
|
39607
39613
|
default: Et(() => [
|
|
39608
|
-
y("div",
|
|
39614
|
+
y("div", wR, [
|
|
39609
39615
|
(z(!0), U(qt, null, mn(et(ed), (M) => (z(), U("div", {
|
|
39610
39616
|
key: M.value,
|
|
39611
39617
|
onClick: (de) => e1(M),
|
|
39612
39618
|
class: be({ selected: M.label == Ss.value })
|
|
39613
|
-
}, Pt(M.label), 11,
|
|
39619
|
+
}, Pt(M.label), 11, ER))), 128))
|
|
39614
39620
|
])
|
|
39615
39621
|
]),
|
|
39616
39622
|
_: 1
|
|
@@ -39629,7 +39635,7 @@ ${I0(i)}
|
|
|
39629
39635
|
onMouseenter: b[14] || (b[14] = (M) => sl.value = !0),
|
|
39630
39636
|
onMouseleave: b[15] || (b[15] = (M) => sl.value = !1)
|
|
39631
39637
|
}, [
|
|
39632
|
-
y("span",
|
|
39638
|
+
y("span", kR, Pt(Z0()), 1),
|
|
39633
39639
|
Pe(B(bn, {
|
|
39634
39640
|
size: "16",
|
|
39635
39641
|
color: "#191919",
|
|
@@ -39656,7 +39662,7 @@ ${I0(i)}
|
|
|
39656
39662
|
minWidth: 180
|
|
39657
39663
|
}, {
|
|
39658
39664
|
default: Et(() => [
|
|
39659
|
-
y("div",
|
|
39665
|
+
y("div", xR, [
|
|
39660
39666
|
y("div", {
|
|
39661
39667
|
onClick: X0,
|
|
39662
39668
|
class: be({ selected: Oa.value })
|
|
@@ -39717,7 +39723,7 @@ ${I0(i)}
|
|
|
39717
39723
|
onMouseenter: b[22] || (b[22] = (M) => ol.value = !0),
|
|
39718
39724
|
onMouseleave: b[23] || (b[23] = (M) => ol.value = !1)
|
|
39719
39725
|
}, [
|
|
39720
|
-
y("span",
|
|
39726
|
+
y("span", SR, Pt(xs.value), 1),
|
|
39721
39727
|
Pe(B(bn, {
|
|
39722
39728
|
size: "16",
|
|
39723
39729
|
color: "#191919",
|
|
@@ -39745,14 +39751,14 @@ ${I0(i)}
|
|
|
39745
39751
|
onClose: b[24] || (b[24] = (M) => fn.value = !1)
|
|
39746
39752
|
}, {
|
|
39747
39753
|
default: Et(() => [
|
|
39748
|
-
y("div",
|
|
39754
|
+
y("div", MR, [
|
|
39749
39755
|
(z(!0), U(qt, null, mn(et(Qu), (M) => (z(), U("div", {
|
|
39750
39756
|
key: M.value,
|
|
39751
39757
|
class: be({ selected: M.label === xs.value }),
|
|
39752
39758
|
onClick: (de) => {
|
|
39753
39759
|
Q0(M), fn.value = !1;
|
|
39754
39760
|
}
|
|
39755
|
-
}, Pt(M.label), 11,
|
|
39761
|
+
}, Pt(M.label), 11, CR))), 128))
|
|
39756
39762
|
])
|
|
39757
39763
|
]),
|
|
39758
39764
|
_: 1
|
|
@@ -39771,7 +39777,7 @@ ${I0(i)}
|
|
|
39771
39777
|
onMouseenter: b[25] || (b[25] = (M) => al.value = !0),
|
|
39772
39778
|
onMouseleave: b[26] || (b[26] = (M) => al.value = !1)
|
|
39773
39779
|
}, [
|
|
39774
|
-
y("span",
|
|
39780
|
+
y("span", TR, [
|
|
39775
39781
|
B(nc, {
|
|
39776
39782
|
size: "16",
|
|
39777
39783
|
color: Ms.value,
|
|
@@ -39805,7 +39811,7 @@ ${I0(i)}
|
|
|
39805
39811
|
onClose: b[27] || (b[27] = (M) => en.value = !1)
|
|
39806
39812
|
}, {
|
|
39807
39813
|
default: Et(() => [
|
|
39808
|
-
y("div",
|
|
39814
|
+
y("div", _R, [
|
|
39809
39815
|
(z(!0), U(qt, null, mn(et(td), (M) => (z(), U("div", {
|
|
39810
39816
|
key: M.color,
|
|
39811
39817
|
onClick: (de) => {
|
|
@@ -39820,7 +39826,7 @@ ${I0(i)}
|
|
|
39820
39826
|
color: M.color,
|
|
39821
39827
|
size: "16"
|
|
39822
39828
|
}, null, 8, ["color"])
|
|
39823
|
-
], 8,
|
|
39829
|
+
], 8, NR))), 128))
|
|
39824
39830
|
])
|
|
39825
39831
|
]),
|
|
39826
39832
|
_: 1
|
|
@@ -39839,7 +39845,7 @@ ${I0(i)}
|
|
|
39839
39845
|
onMouseenter: b[28] || (b[28] = (M) => ll.value = !0),
|
|
39840
39846
|
onMouseleave: b[29] || (b[29] = (M) => ll.value = !1)
|
|
39841
39847
|
}, [
|
|
39842
|
-
B(
|
|
39848
|
+
B(Sp, {
|
|
39843
39849
|
size: "20",
|
|
39844
39850
|
color: "#191919",
|
|
39845
39851
|
class: "eeed-editor-svg"
|
|
@@ -39871,7 +39877,7 @@ ${I0(i)}
|
|
|
39871
39877
|
onClose: b[31] || (b[31] = (M) => Bt.value = !1)
|
|
39872
39878
|
}, {
|
|
39873
39879
|
default: Et(() => [
|
|
39874
|
-
y("div",
|
|
39880
|
+
y("div", AR, [
|
|
39875
39881
|
y("div", {
|
|
39876
39882
|
onClick: b[30] || (b[30] = (M) => {
|
|
39877
39883
|
Dd(), Bt.value = !1;
|
|
@@ -39890,7 +39896,7 @@ ${I0(i)}
|
|
|
39890
39896
|
title: M.label,
|
|
39891
39897
|
"data-label": M.label,
|
|
39892
39898
|
style: mt({ backgroundColor: M.color, width: "24px", height: "24px", cursor: "pointer", border: "1px solid #e0e0e0" })
|
|
39893
|
-
}, null, 12,
|
|
39899
|
+
}, null, 12, OR))), 128))
|
|
39894
39900
|
])
|
|
39895
39901
|
]),
|
|
39896
39902
|
_: 1
|
|
@@ -39905,7 +39911,7 @@ ${I0(i)}
|
|
|
39905
39911
|
onMouseenter: b[32] || (b[32] = (M) => Va.value = !0),
|
|
39906
39912
|
onMouseleave: b[33] || (b[33] = (M) => Va.value = !1)
|
|
39907
39913
|
}, [
|
|
39908
|
-
B(
|
|
39914
|
+
B(yp, {
|
|
39909
39915
|
size: "16",
|
|
39910
39916
|
color: "#191919",
|
|
39911
39917
|
class: "eeed-editor-svg"
|
|
@@ -39926,7 +39932,7 @@ ${I0(i)}
|
|
|
39926
39932
|
onMouseenter: b[34] || (b[34] = (M) => Ka.value = !0),
|
|
39927
39933
|
onMouseleave: b[35] || (b[35] = (M) => Ka.value = !1)
|
|
39928
39934
|
}, [
|
|
39929
|
-
B(
|
|
39935
|
+
B(wp, {
|
|
39930
39936
|
size: "16",
|
|
39931
39937
|
color: "#191919",
|
|
39932
39938
|
class: "eeed-editor-svg"
|
|
@@ -39947,7 +39953,7 @@ ${I0(i)}
|
|
|
39947
39953
|
onMouseenter: b[36] || (b[36] = (M) => qa.value = !0),
|
|
39948
39954
|
onMouseleave: b[37] || (b[37] = (M) => qa.value = !1)
|
|
39949
39955
|
}, [
|
|
39950
|
-
B(
|
|
39956
|
+
B(Ep, {
|
|
39951
39957
|
size: "16",
|
|
39952
39958
|
color: "#191919",
|
|
39953
39959
|
class: "eeed-editor-svg"
|
|
@@ -39968,7 +39974,7 @@ ${I0(i)}
|
|
|
39968
39974
|
onMouseenter: b[38] || (b[38] = (M) => Ga.value = !0),
|
|
39969
39975
|
onMouseleave: b[39] || (b[39] = (M) => Ga.value = !1)
|
|
39970
39976
|
}, [
|
|
39971
|
-
B(
|
|
39977
|
+
B(kp, {
|
|
39972
39978
|
size: "16",
|
|
39973
39979
|
color: "#191919",
|
|
39974
39980
|
class: "eeed-editor-svg"
|
|
@@ -39989,7 +39995,7 @@ ${I0(i)}
|
|
|
39989
39995
|
onMouseenter: b[40] || (b[40] = (M) => ja.value = !0),
|
|
39990
39996
|
onMouseleave: b[41] || (b[41] = (M) => ja.value = !1)
|
|
39991
39997
|
}, [
|
|
39992
|
-
B(
|
|
39998
|
+
B(xp, {
|
|
39993
39999
|
size: "16",
|
|
39994
40000
|
color: "#191919",
|
|
39995
40001
|
class: "eeed-editor-svg"
|
|
@@ -40031,7 +40037,7 @@ ${I0(i)}
|
|
|
40031
40037
|
onMouseenter: b[44] || (b[44] = (M) => Xa.value = !0),
|
|
40032
40038
|
onMouseleave: b[45] || (b[45] = (M) => Xa.value = !1)
|
|
40033
40039
|
}, [
|
|
40034
|
-
B(
|
|
40040
|
+
B(Mp, {
|
|
40035
40041
|
size: "16",
|
|
40036
40042
|
color: we.value ? "#999" : "#191919",
|
|
40037
40043
|
class: "eeed-editor-svg"
|
|
@@ -40061,10 +40067,10 @@ ${I0(i)}
|
|
|
40061
40067
|
color: we.value ? "#999" : "#191919",
|
|
40062
40068
|
class: "eeed-editor-svg"
|
|
40063
40069
|
}, null, 8, ["color"]),
|
|
40064
|
-
Pe(y("span",
|
|
40070
|
+
Pe(y("span", RR, null, 512), [
|
|
40065
40071
|
[je, !hn.value]
|
|
40066
40072
|
]),
|
|
40067
|
-
Pe(y("span",
|
|
40073
|
+
Pe(y("span", IR, null, 512), [
|
|
40068
40074
|
[je, hn.value]
|
|
40069
40075
|
]),
|
|
40070
40076
|
B(Ye, {
|
|
@@ -40080,21 +40086,21 @@ ${I0(i)}
|
|
|
40080
40086
|
onClose: b[48] || (b[48] = (M) => hn.value = !1)
|
|
40081
40087
|
}, {
|
|
40082
40088
|
default: Et(() => [
|
|
40083
|
-
y("div",
|
|
40084
|
-
(z(), U(qt, null, mn(
|
|
40089
|
+
y("div", LR, [
|
|
40090
|
+
(z(), U(qt, null, mn(e4, (M) => y("div", {
|
|
40085
40091
|
key: M,
|
|
40086
40092
|
class: "picker-row"
|
|
40087
40093
|
}, [
|
|
40088
|
-
(z(), U(qt, null, mn(
|
|
40094
|
+
(z(), U(qt, null, mn(t4, (de) => y("div", {
|
|
40089
40095
|
key: de,
|
|
40090
40096
|
class: be(["picker-cell", { active: M <= ml.value && de <= gl.value }]),
|
|
40091
40097
|
onMouseenter: (Ae) => v1(M, de),
|
|
40092
40098
|
onClick: (Ae) => {
|
|
40093
40099
|
y1(M, de), hn.value = !1;
|
|
40094
40100
|
}
|
|
40095
|
-
}, null, 42,
|
|
40101
|
+
}, null, 42, DR)), 64))
|
|
40096
40102
|
])), 64)),
|
|
40097
|
-
y("div",
|
|
40103
|
+
y("div", $R, Pt(ml.value) + " × " + Pt(gl.value), 1)
|
|
40098
40104
|
])
|
|
40099
40105
|
]),
|
|
40100
40106
|
_: 1
|
|
@@ -40226,7 +40232,7 @@ ${I0(i)}
|
|
|
40226
40232
|
onClose: b[60] || (b[60] = (M) => Wt.value = !1)
|
|
40227
40233
|
}, {
|
|
40228
40234
|
default: Et(() => [
|
|
40229
|
-
y("div",
|
|
40235
|
+
y("div", BR, [
|
|
40230
40236
|
y("div", {
|
|
40231
40237
|
onClick: b[57] || (b[57] = (M) => {
|
|
40232
40238
|
hl("left"), Wt.value = !1;
|
|
@@ -40364,14 +40370,14 @@ ${I0(i)}
|
|
|
40364
40370
|
onClose: b[67] || (b[67] = (M) => tn.value = !1)
|
|
40365
40371
|
}, {
|
|
40366
40372
|
default: Et(() => [
|
|
40367
|
-
y("div",
|
|
40373
|
+
y("div", PR, [
|
|
40368
40374
|
(z(!0), U(qt, null, mn(et($0), (M) => (z(), U("div", {
|
|
40369
40375
|
key: M.value,
|
|
40370
40376
|
onClick: (de) => {
|
|
40371
40377
|
s1(M), tn.value = !1;
|
|
40372
40378
|
},
|
|
40373
40379
|
class: be({ selected: M.label === fl.value })
|
|
40374
|
-
}, Pt(M.label), 11,
|
|
40380
|
+
}, Pt(M.label), 11, zR))), 128))
|
|
40375
40381
|
])
|
|
40376
40382
|
]),
|
|
40377
40383
|
_: 1
|
|
@@ -40389,7 +40395,7 @@ ${I0(i)}
|
|
|
40389
40395
|
ref_key: "insertButton",
|
|
40390
40396
|
ref: wd
|
|
40391
40397
|
}, [
|
|
40392
|
-
y("span",
|
|
40398
|
+
y("span", HR, [
|
|
40393
40399
|
B(BO, {
|
|
40394
40400
|
size: "16",
|
|
40395
40401
|
color: "#ff4900",
|
|
@@ -40419,7 +40425,7 @@ ${I0(i)}
|
|
|
40419
40425
|
onClose: b[72] || (b[72] = (M) => Tt.value = !1)
|
|
40420
40426
|
}, {
|
|
40421
40427
|
default: Et(() => [
|
|
40422
|
-
y("div",
|
|
40428
|
+
y("div", FR, [
|
|
40423
40429
|
b[98] || (b[98] = y("h3", null, "常用", -1)),
|
|
40424
40430
|
y("div", {
|
|
40425
40431
|
class: "charu-item",
|
|
@@ -40493,7 +40499,7 @@ ${I0(i)}
|
|
|
40493
40499
|
key: 0,
|
|
40494
40500
|
class: be(["eeed-editor-toc", { "is-collapsed": !Z.value }])
|
|
40495
40501
|
}, [
|
|
40496
|
-
y("div",
|
|
40502
|
+
y("div", UR, [
|
|
40497
40503
|
Z.value ? (z(), Lt(XO, {
|
|
40498
40504
|
key: 0,
|
|
40499
40505
|
size: "18",
|
|
@@ -40508,10 +40514,10 @@ ${I0(i)}
|
|
|
40508
40514
|
class: "eeed-editor-svg",
|
|
40509
40515
|
onClick: Kd
|
|
40510
40516
|
})),
|
|
40511
|
-
Z.value ? (z(), U("span",
|
|
40517
|
+
Z.value ? (z(), U("span", WR, "大纲")) : Me("", !0)
|
|
40512
40518
|
]),
|
|
40513
|
-
rt.value.length == 0 && Z.value ? (z(), U("div",
|
|
40514
|
-
Z.value && rt.value.length > 0 ? (z(), U("ul",
|
|
40519
|
+
rt.value.length == 0 && Z.value ? (z(), U("div", VR, "暂无大纲")) : Me("", !0),
|
|
40520
|
+
Z.value && rt.value.length > 0 ? (z(), U("ul", KR, [
|
|
40515
40521
|
(z(!0), U(qt, null, mn(rt.value, (M) => (z(), U("li", {
|
|
40516
40522
|
key: M.id,
|
|
40517
40523
|
class: be({ active: J.value === M.id }),
|
|
@@ -40521,7 +40527,7 @@ ${I0(i)}
|
|
|
40521
40527
|
href: "javascript:void(0)",
|
|
40522
40528
|
title: M.text,
|
|
40523
40529
|
onClick: (de) => E1(M.id)
|
|
40524
|
-
}, Pt(M.text), 9,
|
|
40530
|
+
}, Pt(M.text), 9, qR)
|
|
40525
40531
|
], 6))), 128))
|
|
40526
40532
|
])) : Me("", !0)
|
|
40527
40533
|
], 2)) : Me("", !0),
|
|
@@ -40542,7 +40548,7 @@ ${I0(i)}
|
|
|
40542
40548
|
ref_key: "dropdownBubbleDocMebuRef",
|
|
40543
40549
|
ref: me
|
|
40544
40550
|
}, [
|
|
40545
|
-
pe.value ? Me("", !0) : (z(), U("div",
|
|
40551
|
+
pe.value ? Me("", !0) : (z(), U("div", GR, [
|
|
40546
40552
|
y("div", {
|
|
40547
40553
|
class: "toolbar-select",
|
|
40548
40554
|
ref_key: "dropdownFontColorBubbleRef",
|
|
@@ -40552,7 +40558,7 @@ ${I0(i)}
|
|
|
40552
40558
|
class: be(["toolbar-select-header", { "hover-button": Yn.value }]),
|
|
40553
40559
|
onClick: Id
|
|
40554
40560
|
}, [
|
|
40555
|
-
y("span",
|
|
40561
|
+
y("span", jR, [
|
|
40556
40562
|
B(nc, {
|
|
40557
40563
|
size: "16",
|
|
40558
40564
|
color: Ms.value,
|
|
@@ -40574,7 +40580,7 @@ ${I0(i)}
|
|
|
40574
40580
|
[je, Yn.value]
|
|
40575
40581
|
])
|
|
40576
40582
|
], 2),
|
|
40577
|
-
Pe(y("div",
|
|
40583
|
+
Pe(y("div", YR, [
|
|
40578
40584
|
(z(!0), U(qt, null, mn(et(td), (M) => (z(), U("div", {
|
|
40579
40585
|
key: M.color,
|
|
40580
40586
|
onClick: (de) => Od(M),
|
|
@@ -40585,7 +40591,7 @@ ${I0(i)}
|
|
|
40585
40591
|
class: "iconfont icon-zitiyanse",
|
|
40586
40592
|
style: mt({ color: M.color })
|
|
40587
40593
|
}, null, 4)
|
|
40588
|
-
], 8,
|
|
40594
|
+
], 8, XR))), 128))
|
|
40589
40595
|
], 512), [
|
|
40590
40596
|
[je, Yn.value]
|
|
40591
40597
|
])
|
|
@@ -40599,7 +40605,7 @@ ${I0(i)}
|
|
|
40599
40605
|
class: be(["toolbar-select-header", { "hover-button": Nn.value }]),
|
|
40600
40606
|
onClick: r1
|
|
40601
40607
|
}, [
|
|
40602
|
-
B(
|
|
40608
|
+
B(Sp, {
|
|
40603
40609
|
size: "20",
|
|
40604
40610
|
color: "#191919",
|
|
40605
40611
|
class: "eeed-editor-svg"
|
|
@@ -40619,7 +40625,7 @@ ${I0(i)}
|
|
|
40619
40625
|
[je, Nn.value]
|
|
40620
40626
|
])
|
|
40621
40627
|
], 2),
|
|
40622
|
-
Pe(y("div",
|
|
40628
|
+
Pe(y("div", JR, [
|
|
40623
40629
|
y("div", { onClick: Dd }, [...b[104] || (b[104] = [
|
|
40624
40630
|
y("span", { class: "iconfont icon-xiexian_slashxiexian_slash" }, null, -1)
|
|
40625
40631
|
])]),
|
|
@@ -40629,7 +40635,7 @@ ${I0(i)}
|
|
|
40629
40635
|
"data-label": M.label,
|
|
40630
40636
|
class: "tooltip-container",
|
|
40631
40637
|
style: mt({ backgroundColor: M.color, border: "0px" })
|
|
40632
|
-
}, null, 12,
|
|
40638
|
+
}, null, 12, ZR))), 128))
|
|
40633
40639
|
], 512), [
|
|
40634
40640
|
[je, Nn.value]
|
|
40635
40641
|
])
|
|
@@ -40638,7 +40644,7 @@ ${I0(i)}
|
|
|
40638
40644
|
class: "hover-button tooltip-container",
|
|
40639
40645
|
onClick: Md
|
|
40640
40646
|
}, [
|
|
40641
|
-
B(
|
|
40647
|
+
B(yp, {
|
|
40642
40648
|
size: "16",
|
|
40643
40649
|
color: "#191919",
|
|
40644
40650
|
class: "eeed-editor-svg"
|
|
@@ -40648,7 +40654,7 @@ ${I0(i)}
|
|
|
40648
40654
|
class: "hover-button tooltip-container",
|
|
40649
40655
|
onClick: Cd
|
|
40650
40656
|
}, [
|
|
40651
|
-
B(
|
|
40657
|
+
B(wp, {
|
|
40652
40658
|
size: "16",
|
|
40653
40659
|
color: "#191919",
|
|
40654
40660
|
class: "eeed-editor-svg"
|
|
@@ -40658,7 +40664,7 @@ ${I0(i)}
|
|
|
40658
40664
|
class: "hover-button tooltip-container",
|
|
40659
40665
|
onClick: _d
|
|
40660
40666
|
}, [
|
|
40661
|
-
B(
|
|
40667
|
+
B(Ep, {
|
|
40662
40668
|
size: "16",
|
|
40663
40669
|
color: "#191919",
|
|
40664
40670
|
class: "eeed-editor-svg"
|
|
@@ -40668,7 +40674,7 @@ ${I0(i)}
|
|
|
40668
40674
|
class: "hover-button tooltip-container",
|
|
40669
40675
|
onClick: Nd
|
|
40670
40676
|
}, [
|
|
40671
|
-
B(
|
|
40677
|
+
B(kp, {
|
|
40672
40678
|
size: "16",
|
|
40673
40679
|
color: "#191919",
|
|
40674
40680
|
class: "eeed-editor-svg"
|
|
@@ -40678,7 +40684,7 @@ ${I0(i)}
|
|
|
40678
40684
|
class: "hover-button tooltip-container",
|
|
40679
40685
|
onClick: dl
|
|
40680
40686
|
}, [
|
|
40681
|
-
B(
|
|
40687
|
+
B(xp, {
|
|
40682
40688
|
size: "16",
|
|
40683
40689
|
color: "#191919",
|
|
40684
40690
|
class: "eeed-editor-svg"
|
|
@@ -40688,7 +40694,7 @@ ${I0(i)}
|
|
|
40688
40694
|
class: "hover-button tooltip-container",
|
|
40689
40695
|
onClick: Td
|
|
40690
40696
|
}, [
|
|
40691
|
-
B(
|
|
40697
|
+
B(Mp, {
|
|
40692
40698
|
size: "16",
|
|
40693
40699
|
color: we.value ? "#999" : "#191919",
|
|
40694
40700
|
class: "eeed-editor-svg"
|
|
@@ -40724,7 +40730,7 @@ ${I0(i)}
|
|
|
40724
40730
|
], -1)),
|
|
40725
40731
|
y("input", {
|
|
40726
40732
|
ref_key: "fileUploadInputRef",
|
|
40727
|
-
ref:
|
|
40733
|
+
ref: Yd,
|
|
40728
40734
|
type: "file",
|
|
40729
40735
|
style: { display: "none" },
|
|
40730
40736
|
onChange: O1,
|
|
@@ -40743,7 +40749,7 @@ ${I0(i)}
|
|
|
40743
40749
|
isFooter: !1
|
|
40744
40750
|
}, {
|
|
40745
40751
|
default: Et(() => [
|
|
40746
|
-
y("div",
|
|
40752
|
+
y("div", QR, [
|
|
40747
40753
|
Pe(y("textarea", {
|
|
40748
40754
|
"onUpdate:modelValue": b[75] || (b[75] = (M) => Ns.value = M),
|
|
40749
40755
|
onPaste: b[76] || (b[76] = Ie(() => {
|
|
@@ -40766,9 +40772,9 @@ ${I0(i)}
|
|
|
40766
40772
|
], 64);
|
|
40767
40773
|
};
|
|
40768
40774
|
}
|
|
40769
|
-
});
|
|
40775
|
+
}), f4 = n4;
|
|
40770
40776
|
export {
|
|
40771
|
-
|
|
40772
|
-
|
|
40777
|
+
a4 as c,
|
|
40778
|
+
f4 as e,
|
|
40773
40779
|
Vu as g
|
|
40774
40780
|
};
|