@harbour-enterprises/superdoc 0.9.36 → 0.9.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{index-YqE5-6V1.cjs → index-BXKGjuVW.cjs} +1 -1
- package/dist/chunks/{index-DHS2ANjv.cjs → index-CqRwYOdx.cjs} +1 -1
- package/dist/chunks/{index-XHRxRUhd.es.js → index-DjLrg1eZ.es.js} +2 -2
- package/dist/chunks/{index-Dd_ce0Er.es.js → index-dZKHAFXF.es.js} +1 -1
- package/dist/chunks/{super-editor.es-DCZYO2jR.cjs → super-editor.es-BBrgCVjX.cjs} +35 -35
- package/dist/chunks/{super-editor.es-BQzGWM7r.es.js → super-editor.es-V5fGSIq_.es.js} +1469 -1470
- package/dist/chunks/{url-Cqg7fbSS.cjs → url-6Xu7gR4T.cjs} +1 -1
- package/dist/chunks/{url-BWFemt_V.es.js → url-BxDGAI6E.es.js} +1 -1
- package/dist/chunks/{xml-js-Bzw8Bo_u.es.js → xml-js-BAML2_fM.es.js} +762 -744
- package/dist/chunks/xml-js-zhwNEV5e.cjs +10 -0
- package/dist/super-editor/chunks/{converter-CvrIEC6C.js → converter-DfviVPtg.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-DDWFjub_.js → docx-zipper-BCLnHIWQ.js} +1 -1
- package/dist/super-editor/chunks/{editor-CGbgtgZf.js → editor-CDXiQc7n.js} +739 -740
- package/dist/super-editor/chunks/{toolbar-CNAEBxeU.js → toolbar-CJkPfKKg.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/extensions/index.d.ts.map +1 -1
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +3 -3
- package/dist/superdoc.cjs +3 -3
- package/dist/superdoc.es.js +6 -6
- package/dist/superdoc.umd.js +740 -741
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/xml-js-Zwb1wsIy.cjs +0 -10
package/dist/superdoc.umd.js
CHANGED
|
@@ -15975,7 +15975,7 @@ Actual: ` + p3.attribValue
|
|
|
15975
15975
|
function po$3(r22) {
|
|
15976
15976
|
return r22 & _a$2;
|
|
15977
15977
|
}
|
|
15978
|
-
function rf$
|
|
15978
|
+
function rf$1(r22) {
|
|
15979
15979
|
return (r22 - (r22 & _a$2)) / qa$2;
|
|
15980
15980
|
}
|
|
15981
15981
|
const Ma$2 = 1, Ua$2 = 2, ur$2 = 4, ja$2 = 8;
|
|
@@ -16033,7 +16033,7 @@ Actual: ` + p3.attribValue
|
|
|
16033
16033
|
if (!this.inverted)
|
|
16034
16034
|
for (let i3 = 0; i3 < n; i3++)
|
|
16035
16035
|
t += this.ranges[i3 * 3 + 2] - this.ranges[i3 * 3 + 1];
|
|
16036
|
-
return this.ranges[n * 3] + t + rf$
|
|
16036
|
+
return this.ranges[n * 3] + t + rf$1(e);
|
|
16037
16037
|
}
|
|
16038
16038
|
mapResult(e, t = 1) {
|
|
16039
16039
|
return this._map(e, t, false);
|
|
@@ -16707,13 +16707,13 @@ Actual: ` + p3.attribValue
|
|
|
16707
16707
|
let i3 = e.start, s = e.end;
|
|
16708
16708
|
r22.step(new Je$3(i3, s, i3, s, new ue(n, 0, 0), t.length, true));
|
|
16709
16709
|
}
|
|
16710
|
-
function ff$
|
|
16710
|
+
function ff$1(r22, e, t, n, i3) {
|
|
16711
16711
|
if (!n.isTextblock)
|
|
16712
16712
|
throw new RangeError("Type given to setBlockType should be a textblock");
|
|
16713
16713
|
let s = r22.steps.length;
|
|
16714
16714
|
r22.doc.nodesBetween(e, t, (o, a) => {
|
|
16715
16715
|
let u = typeof i3 == "function" ? i3(o) : i3;
|
|
16716
|
-
if (o.isTextblock && !o.hasMarkup(n, u) && df$
|
|
16716
|
+
if (o.isTextblock && !o.hasMarkup(n, u) && df$2(r22.doc, r22.mapping.slice(s).map(a), n)) {
|
|
16717
16717
|
let f3 = null;
|
|
16718
16718
|
if (n.schema.linebreakReplacement) {
|
|
16719
16719
|
let S = n.whitespace == "pre", T3 = !!n.contentMatch.matchType(n.schema.linebreakReplacement);
|
|
@@ -16745,7 +16745,7 @@ Actual: ` + p3.attribValue
|
|
|
16745
16745
|
}
|
|
16746
16746
|
});
|
|
16747
16747
|
}
|
|
16748
|
-
function df$
|
|
16748
|
+
function df$2(r22, e, t) {
|
|
16749
16749
|
let n = r22.resolve(e), i3 = n.index();
|
|
16750
16750
|
return n.parent.canReplaceWith(i3, i3 + 1, t);
|
|
16751
16751
|
}
|
|
@@ -17124,7 +17124,7 @@ Actual: ` + p3.attribValue
|
|
|
17124
17124
|
}
|
|
17125
17125
|
return r22;
|
|
17126
17126
|
}
|
|
17127
|
-
function Ef$
|
|
17127
|
+
function Ef$2(r22, e, t, n) {
|
|
17128
17128
|
if (!n.isInline && e == t && r22.doc.resolve(e).parent.content.size) {
|
|
17129
17129
|
let i3 = wf$1(r22.doc, e, n.type);
|
|
17130
17130
|
i3 != null && (e = t = i3);
|
|
@@ -17339,7 +17339,7 @@ Actual: ` + p3.attribValue
|
|
|
17339
17339
|
that parent node.
|
|
17340
17340
|
*/
|
|
17341
17341
|
replaceRangeWith(e, t, n) {
|
|
17342
|
-
return Ef$
|
|
17342
|
+
return Ef$2(this, e, t, n), this;
|
|
17343
17343
|
}
|
|
17344
17344
|
/**
|
|
17345
17345
|
Delete the given range, expanding it to cover fully covered
|
|
@@ -17378,7 +17378,7 @@ Actual: ` + p3.attribValue
|
|
|
17378
17378
|
the given node type with the given attributes.
|
|
17379
17379
|
*/
|
|
17380
17380
|
setBlockType(e, t = e, n, i3 = null) {
|
|
17381
|
-
return ff$
|
|
17381
|
+
return ff$1(this, e, t, n, i3), this;
|
|
17382
17382
|
}
|
|
17383
17383
|
/**
|
|
17384
17384
|
Change the type, attributes, and/or marks of the node at `pos`.
|
|
@@ -21987,17 +21987,17 @@ Actual: ` + p3.attribValue
|
|
|
21987
21987
|
}]
|
|
21988
21988
|
};
|
|
21989
21989
|
}
|
|
21990
|
-
var nt$2, lu$
|
|
21990
|
+
var nt$2, lu$1, mi$2, pi$2;
|
|
21991
21991
|
let Bo$2 = class Bo {
|
|
21992
21992
|
constructor(e) {
|
|
21993
21993
|
Nr$1(this, nt$2);
|
|
21994
21994
|
this.converter = e;
|
|
21995
21995
|
}
|
|
21996
21996
|
schemaToXml(e, t = false) {
|
|
21997
|
-
return Ke$1(this, nt$2, lu$
|
|
21997
|
+
return Ke$1(this, nt$2, lu$1).call(this, e, t).join("");
|
|
21998
21998
|
}
|
|
21999
21999
|
};
|
|
22000
|
-
nt$2 = /* @__PURE__ */ new WeakSet(), lu$
|
|
22000
|
+
nt$2 = /* @__PURE__ */ new WeakSet(), lu$1 = function(e, t = falase) {
|
|
22001
22001
|
const n = JSON.parse(JSON.stringify(e)), i3 = this.converter.declaration.attributes, s = `<?xml${Object.entries(i3).map(([u, f3]) => ` ${u}="${f3}"`).join("")}?>`, o = Ke$1(this, nt$2, pi$2).call(this, n, t);
|
|
22002
22002
|
return [s, ...o];
|
|
22003
22003
|
}, mi$2 = function(e) {
|
|
@@ -22061,7 +22061,7 @@ Actual: ` + p3.attribValue
|
|
|
22061
22061
|
const { "w:type": F3 } = S.attributes;
|
|
22062
22062
|
h3.tableLayout = F3;
|
|
22063
22063
|
}
|
|
22064
|
-
const T3 = cu$
|
|
22064
|
+
const T3 = cu$2(f3, t), A = i3.elements.find((F3) => F3.name === "w:tblW");
|
|
22065
22065
|
A && (h3.tableWidth = {
|
|
22066
22066
|
width: xe$2(A.attributes["w:w"]),
|
|
22067
22067
|
type: A.attributes["w:type"]
|
|
@@ -22090,7 +22090,7 @@ Actual: ` + p3.attribValue
|
|
|
22090
22090
|
!A && i3 && (A = i3);
|
|
22091
22091
|
const w = ko$2(r22), { attributes: k } = w || {}, C = {
|
|
22092
22092
|
color: c3?.elements?.find((ae2) => ae2.name === "w:shd")?.attributes["w:fill"]
|
|
22093
|
-
}, N3 = c3?.elements?.find((ae2) => ae2.name === "w:gridSpan")?.attributes["w:val"], q = c3?.elements?.find((ae2) => ae2.name === "w:tcMar"), D3 = c3?.elements?.find((ae2) => ae2.name === "w:vAlign")?.attributes["w:val"] || "top", K3 = {}, oe2 = cu$
|
|
22093
|
+
}, N3 = c3?.elements?.find((ae2) => ae2.name === "w:gridSpan")?.attributes["w:val"], q = c3?.elements?.find((ae2) => ae2.name === "w:tcMar"), D3 = c3?.elements?.find((ae2) => ae2.name === "w:vAlign")?.attributes["w:val"] || "top", K3 = {}, oe2 = cu$2(s, u) || {};
|
|
22094
22094
|
K3.cellMargins = $d$2(q, oe2);
|
|
22095
22095
|
const { fontSize: ee, fonts: Q3 = {} } = oe2, ce2 = Q3.ascii;
|
|
22096
22096
|
if (A) {
|
|
@@ -22148,7 +22148,7 @@ Actual: ` + p3.attribValue
|
|
|
22148
22148
|
const o = ir$2(r22, "right", e);
|
|
22149
22149
|
return o && (t.right = o), t;
|
|
22150
22150
|
};
|
|
22151
|
-
function cu$
|
|
22151
|
+
function cu$2(r22, e, t) {
|
|
22152
22152
|
if (!r22) return null;
|
|
22153
22153
|
const n = {}, { attributes: i3 = {} } = r22, s = i3["w:val"];
|
|
22154
22154
|
if (!s) return null;
|
|
@@ -23569,7 +23569,7 @@ Actual: ` + p3.attribValue
|
|
|
23569
23569
|
return;
|
|
23570
23570
|
}
|
|
23571
23571
|
}
|
|
23572
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.9.
|
|
23572
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.9.37") {
|
|
23573
23573
|
const n = "docProps/custom.xml";
|
|
23574
23574
|
e[n] || (e[n] = Tu$2());
|
|
23575
23575
|
const i3 = e["docProps/custom.xml"];
|
|
@@ -23794,7 +23794,7 @@ Actual: ` + p3.attribValue
|
|
|
23794
23794
|
function Tu$2() {
|
|
23795
23795
|
return _f$2;
|
|
23796
23796
|
}
|
|
23797
|
-
function Fu$2(r22 = 2, e = "0.9.
|
|
23797
|
+
function Fu$2(r22 = 2, e = "0.9.37") {
|
|
23798
23798
|
return {
|
|
23799
23799
|
type: "element",
|
|
23800
23800
|
name: "property",
|
|
@@ -26259,12 +26259,12 @@ Actual: ` + p3.attribValue
|
|
|
26259
26259
|
}), await this.updateContentTypes(y, R), y;
|
|
26260
26260
|
}
|
|
26261
26261
|
};
|
|
26262
|
-
var
|
|
26262
|
+
var df$1 = Object.defineProperty;
|
|
26263
26263
|
var Ys = (t) => {
|
|
26264
26264
|
throw TypeError(t);
|
|
26265
26265
|
};
|
|
26266
|
-
var
|
|
26267
|
-
var P = (t, e, n) =>
|
|
26266
|
+
var uf$1 = (t, e, n) => e in t ? df$1(t, e, { enumerable: true, configurable: true, writable: true, value: n }) : t[e] = n;
|
|
26267
|
+
var P = (t, e, n) => uf$1(t, typeof e != "symbol" ? e + "" : e, n), Ho$1 = (t, e, n) => e.has(t) || Ys("Cannot " + n);
|
|
26268
26268
|
var Ge = (t, e, n) => (Ho$1(t, e, "read from private field"), n ? n.call(t) : e.get(t)), ft = (t, e, n) => e.has(t) ? Ys("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), jo$1 = (t, e, n, r) => (Ho$1(t, e, "write to private field"), e.set(t, n), n), I$1 = (t, e, n) => (Ho$1(t, e, "access private method"), n);
|
|
26269
26269
|
function No$1(t) {
|
|
26270
26270
|
const { from: e, to: n, empty: r } = t.selection, o = [];
|
|
@@ -26288,7 +26288,7 @@ Actual: ` + p3.attribValue
|
|
|
26288
26288
|
}
|
|
26289
26289
|
}), n ? d : c3;
|
|
26290
26290
|
};
|
|
26291
|
-
function
|
|
26291
|
+
function Ef$1(t) {
|
|
26292
26292
|
const { state: e } = t, { selection: n } = e, r = No$1(e), o = n.$head.parent.attrs.marksAttrs, i3 = r.filter((f3) => !["textStyle", "link"].includes(f3.type.name)).map((f3) => ({ name: f3.type.name, attrs: f3.attrs })), s = r.filter((f3) => f3.type.name === "textStyle");
|
|
26293
26293
|
if (i3.push(...s.flatMap(na$1)), o) {
|
|
26294
26294
|
const f3 = o.filter((h3) => !["textStyle", "link"].includes(h3.type)).map((h3) => ({ name: h3.type, attrs: h3.attrs || {} })), p3 = o.filter((h3) => h3.type === "textStyle");
|
|
@@ -26299,7 +26299,7 @@ Actual: ` + p3.attribValue
|
|
|
26299
26299
|
let { from: f3, to: p3, attrs: h3 } = l;
|
|
26300
26300
|
n.from >= f3 && n.to <= p3 && i3.push({ name: "link", attrs: h3 });
|
|
26301
26301
|
}
|
|
26302
|
-
const c3 = ["paragraphSpacing"], d =
|
|
26302
|
+
const c3 = ["paragraphSpacing"], d = If$1(e);
|
|
26303
26303
|
return Object.keys(d).forEach((f3) => {
|
|
26304
26304
|
if (c3.includes(f3)) return;
|
|
26305
26305
|
const p3 = {};
|
|
@@ -26312,7 +26312,7 @@ Actual: ` + p3.attribValue
|
|
|
26312
26312
|
n[r] && e.push({ name: r, attrs: { [r]: n[r] } });
|
|
26313
26313
|
}), e;
|
|
26314
26314
|
}
|
|
26315
|
-
function
|
|
26315
|
+
function If$1(t) {
|
|
26316
26316
|
try {
|
|
26317
26317
|
const { from: e, to: n, empty: r } = t.selection, o = {}, i3 = (l) => {
|
|
26318
26318
|
Object.keys(l.attrs).forEach((c3) => {
|
|
@@ -26335,7 +26335,7 @@ Actual: ` + p3.attribValue
|
|
|
26335
26335
|
return e.length ? fe$2.from(e).append(this) : this;
|
|
26336
26336
|
};
|
|
26337
26337
|
fe$2.prototype.appendInner = function(e) {
|
|
26338
|
-
return new
|
|
26338
|
+
return new Pf$1(this, e);
|
|
26339
26339
|
};
|
|
26340
26340
|
fe$2.prototype.slice = function(e, n) {
|
|
26341
26341
|
return e === void 0 && (e = 0), n === void 0 && (n = this.length), e >= n ? fe$2.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, n));
|
|
@@ -26390,7 +26390,7 @@ Actual: ` + p3.attribValue
|
|
|
26390
26390
|
}, Object.defineProperties(e.prototype, n), e;
|
|
26391
26391
|
}(fe$2);
|
|
26392
26392
|
fe$2.empty = new tc$1([]);
|
|
26393
|
-
var
|
|
26393
|
+
var Pf$1 = /* @__PURE__ */ function(t) {
|
|
26394
26394
|
function e(n, r) {
|
|
26395
26395
|
t.call(this), this.left = n, this.right = r, this.length = n.length + r.length, this.depth = Math.max(n.depth, r.depth) + 1;
|
|
26396
26396
|
}
|
|
@@ -26423,7 +26423,7 @@ Actual: ` + p3.attribValue
|
|
|
26423
26423
|
return this.left.depth >= Math.max(this.right.depth, r.depth) + 1 ? new e(this.left, new e(this.right, r)) : new e(this, r);
|
|
26424
26424
|
}, e;
|
|
26425
26425
|
}(fe$2);
|
|
26426
|
-
const
|
|
26426
|
+
const Rf$1 = 500;
|
|
26427
26427
|
let Xe$2 = class Xe2 {
|
|
26428
26428
|
constructor(e, n) {
|
|
26429
26429
|
this.items = e, this.eventCount = n;
|
|
@@ -26465,7 +26465,7 @@ Actual: ` + p3.attribValue
|
|
|
26465
26465
|
(p3 = l && l.merge(f3)) && (f3 = p3, d ? i3.pop() : a = a.slice(0, a.length - 1)), i3.push(f3), n && (s++, n = void 0), o || (l = f3);
|
|
26466
26466
|
}
|
|
26467
26467
|
let c3 = s - r.depth;
|
|
26468
|
-
return c3 >
|
|
26468
|
+
return c3 > Ff$1 && (a = Lf$1(a, c3), s -= c3), new Xe2(a.append(i3), s);
|
|
26469
26469
|
}
|
|
26470
26470
|
remapping(e, n) {
|
|
26471
26471
|
let r = new wr$2();
|
|
@@ -26505,7 +26505,7 @@ Actual: ` + p3.attribValue
|
|
|
26505
26505
|
for (let f3 = n; f3 < s; f3++)
|
|
26506
26506
|
c3.push(new Qe$2(i3.maps[f3]));
|
|
26507
26507
|
let d = this.items.slice(0, o).append(c3).append(r), u = new Xe2(d, a);
|
|
26508
|
-
return u.emptyItemCount() >
|
|
26508
|
+
return u.emptyItemCount() > Rf$1 && (u = u.compress(this.items.length - r.length)), u;
|
|
26509
26509
|
}
|
|
26510
26510
|
emptyItemCount() {
|
|
26511
26511
|
let e = 0;
|
|
@@ -26537,7 +26537,7 @@ Actual: ` + p3.attribValue
|
|
|
26537
26537
|
}
|
|
26538
26538
|
};
|
|
26539
26539
|
Xe$2.empty = new Xe$2(fe$2.empty, 0);
|
|
26540
|
-
function
|
|
26540
|
+
function Lf$1(t, e) {
|
|
26541
26541
|
let n;
|
|
26542
26542
|
return t.forEach((r, o) => {
|
|
26543
26543
|
if (r.selection && e-- == 0)
|
|
@@ -26561,23 +26561,23 @@ Actual: ` + p3.attribValue
|
|
|
26561
26561
|
this.done = e, this.undone = n, this.prevRanges = r, this.prevTime = o, this.prevComposition = i3;
|
|
26562
26562
|
}
|
|
26563
26563
|
};
|
|
26564
|
-
const
|
|
26565
|
-
function
|
|
26564
|
+
const Ff$1 = 20;
|
|
26565
|
+
function Bf$1(t, e, n, r) {
|
|
26566
26566
|
let o = n.getMeta(vt), i3;
|
|
26567
26567
|
if (o)
|
|
26568
26568
|
return o.historyState;
|
|
26569
|
-
n.getMeta(
|
|
26569
|
+
n.getMeta($f$1) && (t = new Dt$1(t.done, t.undone, null, 0, -1));
|
|
26570
26570
|
let s = n.getMeta("appendedTransaction");
|
|
26571
26571
|
if (n.steps.length == 0)
|
|
26572
26572
|
return t;
|
|
26573
26573
|
if (s && s.getMeta(vt))
|
|
26574
26574
|
return s.getMeta(vt).redo ? new Dt$1(t.done.addTransform(n, void 0, r, ro$1(e)), t.undone, ra$1(n.mapping.maps), t.prevTime, t.prevComposition) : new Dt$1(t.done, t.undone.addTransform(n, void 0, r, ro$1(e)), null, t.prevTime, t.prevComposition);
|
|
26575
26575
|
if (n.getMeta("addToHistory") !== false && !(s && s.getMeta("addToHistory") === false)) {
|
|
26576
|
-
let a = n.getMeta("composition"), l = t.prevTime == 0 || !s && t.prevComposition != a && (t.prevTime < (n.time || 0) - r.newGroupDelay || !
|
|
26576
|
+
let a = n.getMeta("composition"), l = t.prevTime == 0 || !s && t.prevComposition != a && (t.prevTime < (n.time || 0) - r.newGroupDelay || !_f$1(n, t.prevRanges)), c3 = s ? Jo$1(t.prevRanges, n.mapping) : ra$1(n.mapping.maps);
|
|
26577
26577
|
return new Dt$1(t.done.addTransform(n, l ? e.selection.getBookmark() : void 0, r, ro$1(e)), Xe$2.empty, c3, n.time, a ?? t.prevComposition);
|
|
26578
26578
|
} else return (i3 = n.getMeta("rebased")) ? new Dt$1(t.done.rebased(n, i3), t.undone.rebased(n, i3), Jo$1(t.prevRanges, n.mapping), t.prevTime, t.prevComposition) : new Dt$1(t.done.addMaps(n.mapping.maps), t.undone.addMaps(n.mapping.maps), Jo$1(t.prevRanges, n.mapping), t.prevTime, t.prevComposition);
|
|
26579
26579
|
}
|
|
26580
|
-
function
|
|
26580
|
+
function _f$1(t, e) {
|
|
26581
26581
|
if (!e)
|
|
26582
26582
|
return false;
|
|
26583
26583
|
if (!t.docChanged)
|
|
@@ -26604,7 +26604,7 @@ Actual: ` + p3.attribValue
|
|
|
26604
26604
|
}
|
|
26605
26605
|
return n;
|
|
26606
26606
|
}
|
|
26607
|
-
function $
|
|
26607
|
+
function zf$1(t, e, n) {
|
|
26608
26608
|
let r = ro$1(e), o = vt.get(e).spec.config, i3 = (n ? t.undone : t.done).popEvent(e, r);
|
|
26609
26609
|
if (!i3)
|
|
26610
26610
|
return null;
|
|
@@ -26624,8 +26624,8 @@ Actual: ` + p3.attribValue
|
|
|
26624
26624
|
}
|
|
26625
26625
|
return Yo$1;
|
|
26626
26626
|
}
|
|
26627
|
-
const vt = new xp$2("history"),
|
|
26628
|
-
function
|
|
26627
|
+
const vt = new xp$2("history"), $f$1 = new xp$2("closeHistory");
|
|
26628
|
+
function Vf$1(t = {}) {
|
|
26629
26629
|
return t = {
|
|
26630
26630
|
depth: t.depth || 100,
|
|
26631
26631
|
newGroupDelay: t.newGroupDelay || 500
|
|
@@ -26636,7 +26636,7 @@ Actual: ` + p3.attribValue
|
|
|
26636
26636
|
return new Dt$1(Xe$2.empty, Xe$2.empty, null, 0, -1);
|
|
26637
26637
|
},
|
|
26638
26638
|
apply(e, n, r) {
|
|
26639
|
-
return
|
|
26639
|
+
return Bf$1(n, r, e, t);
|
|
26640
26640
|
}
|
|
26641
26641
|
},
|
|
26642
26642
|
config: t,
|
|
@@ -26656,7 +26656,7 @@ Actual: ` + p3.attribValue
|
|
|
26656
26656
|
if (!o || (t ? o.undone : o.done).eventCount == 0)
|
|
26657
26657
|
return false;
|
|
26658
26658
|
if (r) {
|
|
26659
|
-
let i3 = $
|
|
26659
|
+
let i3 = zf$1(o, n, t);
|
|
26660
26660
|
i3 && r(i3.scrollIntoView());
|
|
26661
26661
|
}
|
|
26662
26662
|
return true;
|
|
@@ -26708,7 +26708,7 @@ Actual: ` + p3.attribValue
|
|
|
26708
26708
|
return new Q3(...e);
|
|
26709
26709
|
}
|
|
26710
26710
|
};
|
|
26711
|
-
const
|
|
26711
|
+
const Hf$1 = Q$1.create({
|
|
26712
26712
|
name: "history",
|
|
26713
26713
|
addOptions() {
|
|
26714
26714
|
return {
|
|
@@ -26717,7 +26717,7 @@ Actual: ` + p3.attribValue
|
|
|
26717
26717
|
};
|
|
26718
26718
|
},
|
|
26719
26719
|
addPmPlugins() {
|
|
26720
|
-
return [
|
|
26720
|
+
return [Vf$1(this.options)];
|
|
26721
26721
|
},
|
|
26722
26722
|
//prettier-ignore
|
|
26723
26723
|
addCommands() {
|
|
@@ -26745,18 +26745,18 @@ Actual: ` + p3.attribValue
|
|
|
26745
26745
|
const mt$1 = function(t, e, n) {
|
|
26746
26746
|
let r = wi$1 || (wi$1 = document.createRange());
|
|
26747
26747
|
return r.setEnd(t, n ?? t.nodeValue.length), r.setStart(t, e || 0), r;
|
|
26748
|
-
},
|
|
26748
|
+
}, jf$1 = function() {
|
|
26749
26749
|
wi$1 = null;
|
|
26750
26750
|
}, ln$2 = function(t, e, n, r) {
|
|
26751
26751
|
return n && (ia$1(t, e, n, r, -1) || ia$1(t, e, n, r, 1));
|
|
26752
|
-
},
|
|
26752
|
+
}, Wf$1 = /^(img|br|input|textarea|hr)$/i;
|
|
26753
26753
|
function ia$1(t, e, n, r, o) {
|
|
26754
26754
|
for (; ; ) {
|
|
26755
26755
|
if (t == n && e == r)
|
|
26756
26756
|
return true;
|
|
26757
26757
|
if (e == (o < 0 ? 0 : ze$2(t))) {
|
|
26758
26758
|
let i3 = t.parentNode;
|
|
26759
|
-
if (!i3 || i3.nodeType != 1 || Tr$1(t) ||
|
|
26759
|
+
if (!i3 || i3.nodeType != 1 || Tr$1(t) || Wf$1.test(t.nodeName) || t.contentEditable == "false")
|
|
26760
26760
|
return false;
|
|
26761
26761
|
e = me(t) + (o < 0 ? 0 : 1), t = i3;
|
|
26762
26762
|
} else if (t.nodeType == 1) {
|
|
@@ -26770,7 +26770,7 @@ Actual: ` + p3.attribValue
|
|
|
26770
26770
|
function ze$2(t) {
|
|
26771
26771
|
return t.nodeType == 3 ? t.nodeValue.length : t.childNodes.length;
|
|
26772
26772
|
}
|
|
26773
|
-
function
|
|
26773
|
+
function Uf$1(t, e) {
|
|
26774
26774
|
for (; ; ) {
|
|
26775
26775
|
if (t.nodeType == 3 && e)
|
|
26776
26776
|
return t;
|
|
@@ -26784,7 +26784,7 @@ Actual: ` + p3.attribValue
|
|
|
26784
26784
|
return null;
|
|
26785
26785
|
}
|
|
26786
26786
|
}
|
|
26787
|
-
function
|
|
26787
|
+
function qf$1(t, e) {
|
|
26788
26788
|
for (; ; ) {
|
|
26789
26789
|
if (t.nodeType == 3 && e < t.nodeValue.length)
|
|
26790
26790
|
return t;
|
|
@@ -26798,7 +26798,7 @@ Actual: ` + p3.attribValue
|
|
|
26798
26798
|
return null;
|
|
26799
26799
|
}
|
|
26800
26800
|
}
|
|
26801
|
-
function
|
|
26801
|
+
function Kf$1(t, e, n) {
|
|
26802
26802
|
for (let r = e == 0, o = e == ze$2(t); r || o; ) {
|
|
26803
26803
|
if (t == n)
|
|
26804
26804
|
return true;
|
|
@@ -26821,13 +26821,13 @@ Actual: ` + p3.attribValue
|
|
|
26821
26821
|
let n = document.createEvent("Event");
|
|
26822
26822
|
return n.initEvent("keydown", true, true), n.keyCode = t, n.key = n.code = e, n;
|
|
26823
26823
|
}
|
|
26824
|
-
function
|
|
26824
|
+
function Xf$1(t) {
|
|
26825
26825
|
let e = t.activeElement;
|
|
26826
26826
|
for (; e && e.shadowRoot; )
|
|
26827
26827
|
e = e.shadowRoot.activeElement;
|
|
26828
26828
|
return e;
|
|
26829
26829
|
}
|
|
26830
|
-
function
|
|
26830
|
+
function Jf$1(t, e, n) {
|
|
26831
26831
|
if (t.caretPositionFromPoint)
|
|
26832
26832
|
try {
|
|
26833
26833
|
let r = t.caretPositionFromPoint(e, n);
|
|
@@ -26843,8 +26843,8 @@ Actual: ` + p3.attribValue
|
|
|
26843
26843
|
}
|
|
26844
26844
|
const ot = typeof navigator < "u" ? navigator : null, sa$1 = typeof document < "u" ? document : null, jt$2 = ot && ot.userAgent || "", vi$1 = /Edge\/(\d+)/.exec(jt$2), ic$1 = /MSIE \d/.exec(jt$2), ki$1 = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(jt$2), Oe$1 = !!(ic$1 || ki$1 || vi$1), Lt$1 = ic$1 ? document.documentMode : ki$1 ? +ki$1[1] : vi$1 ? +vi$1[1] : 0, Je$2 = !Oe$1 && /gecko\/(\d+)/i.test(jt$2);
|
|
26845
26845
|
Je$2 && +(/Firefox\/(\d+)/.exec(jt$2) || [0, 0])[1];
|
|
26846
|
-
const Ci$1 = !Oe$1 && /Chrome\/(\d+)/.exec(jt$2), be$1 = !!Ci$1, sc$1 = Ci$1 ? +Ci$1[1] : 0, xe$1 = !Oe$1 && !!ot && /Apple Computer/.test(ot.vendor), Dn$2 = xe$1 && (/Mobile\/\w+/.test(jt$2) || !!ot && ot.maxTouchPoints > 2), _e = Dn$2 || (ot ? /Mac/.test(ot.platform) : false),
|
|
26847
|
-
function
|
|
26846
|
+
const Ci$1 = !Oe$1 && /Chrome\/(\d+)/.exec(jt$2), be$1 = !!Ci$1, sc$1 = Ci$1 ? +Ci$1[1] : 0, xe$1 = !Oe$1 && !!ot && /Apple Computer/.test(ot.vendor), Dn$2 = xe$1 && (/Mobile\/\w+/.test(jt$2) || !!ot && ot.maxTouchPoints > 2), _e = Dn$2 || (ot ? /Mac/.test(ot.platform) : false), Yf$1 = ot ? /Win/.test(ot.platform) : false, bt$1 = /Android \d/.test(jt$2), Dr = !!sa$1 && "webkitFontSmoothing" in sa$1.documentElement.style, Gf$1 = Dr ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
26847
|
+
function Zf$1(t) {
|
|
26848
26848
|
let e = t.defaultView && t.defaultView.visualViewport;
|
|
26849
26849
|
return e ? {
|
|
26850
26850
|
left: 0,
|
|
@@ -26861,7 +26861,7 @@ Actual: ` + p3.attribValue
|
|
|
26861
26861
|
function pt(t, e) {
|
|
26862
26862
|
return typeof t == "number" ? t : t[e];
|
|
26863
26863
|
}
|
|
26864
|
-
function
|
|
26864
|
+
function Qf$1(t) {
|
|
26865
26865
|
let e = t.getBoundingClientRect(), n = e.width / t.offsetWidth || 1, r = e.height / t.offsetHeight || 1;
|
|
26866
26866
|
return {
|
|
26867
26867
|
left: e.left,
|
|
@@ -26877,7 +26877,7 @@ Actual: ` + p3.attribValue
|
|
|
26877
26877
|
s = Tn$1(s);
|
|
26878
26878
|
continue;
|
|
26879
26879
|
}
|
|
26880
|
-
let a = s, l = a == i3.body, c3 = l ?
|
|
26880
|
+
let a = s, l = a == i3.body, c3 = l ? Zf$1(i3) : Qf$1(a), d = 0, u = 0;
|
|
26881
26881
|
if (e.top < c3.top + pt(r, "top") ? u = -(c3.top - e.top + pt(o, "top")) : e.bottom > c3.bottom - pt(r, "bottom") && (u = e.bottom - e.top > c3.bottom - c3.top ? e.top + pt(o, "top") - c3.top : e.bottom - c3.bottom + pt(o, "bottom")), e.left < c3.left + pt(r, "left") ? d = -(c3.left - e.left + pt(o, "left")) : e.right > c3.right - pt(r, "right") && (d = e.right - c3.right + pt(o, "right")), d || u)
|
|
26882
26882
|
if (l)
|
|
26883
26883
|
i3.defaultView.scrollBy(d, u);
|
|
@@ -26893,7 +26893,7 @@ Actual: ` + p3.attribValue
|
|
|
26893
26893
|
s = f3 == "absolute" ? s.offsetParent : Tn$1(s);
|
|
26894
26894
|
}
|
|
26895
26895
|
}
|
|
26896
|
-
function
|
|
26896
|
+
function ep$1(t) {
|
|
26897
26897
|
let e = t.dom.getBoundingClientRect(), n = Math.max(0, e.top), r, o;
|
|
26898
26898
|
for (let i3 = (e.left + e.right) / 2, s = n + 1; s < Math.min(innerHeight, e.bottom); s += 5) {
|
|
26899
26899
|
let a = t.root.elementFromPoint(i3, s);
|
|
@@ -26913,7 +26913,7 @@ Actual: ` + p3.attribValue
|
|
|
26913
26913
|
;
|
|
26914
26914
|
return e;
|
|
26915
26915
|
}
|
|
26916
|
-
function
|
|
26916
|
+
function tp$1({ refDOM: t, refTop: e, stack: n }) {
|
|
26917
26917
|
let r = t ? t.getBoundingClientRect().top : 0;
|
|
26918
26918
|
lc$1(n, r == 0 ? 0 : r - e);
|
|
26919
26919
|
}
|
|
@@ -26924,7 +26924,7 @@ Actual: ` + p3.attribValue
|
|
|
26924
26924
|
}
|
|
26925
26925
|
}
|
|
26926
26926
|
let gn$2 = null;
|
|
26927
|
-
function
|
|
26927
|
+
function np$1(t) {
|
|
26928
26928
|
if (t.setActive)
|
|
26929
26929
|
return t.setActive();
|
|
26930
26930
|
if (gn$2)
|
|
@@ -26962,9 +26962,9 @@ Actual: ` + p3.attribValue
|
|
|
26962
26962
|
!n && (e.left >= h3.right && e.top >= h3.top || e.left >= h3.left && e.top >= h3.bottom) && (i3 = u + 1);
|
|
26963
26963
|
}
|
|
26964
26964
|
}
|
|
26965
|
-
return !n && l && (n = l, o = c3, r = 0), n && n.nodeType == 3 ?
|
|
26965
|
+
return !n && l && (n = l, o = c3, r = 0), n && n.nodeType == 3 ? rp$1(n, o) : !n || r && n.nodeType == 1 ? { node: t, offset: i3 } : cc$1(n, o);
|
|
26966
26966
|
}
|
|
26967
|
-
function
|
|
26967
|
+
function rp$1(t, e) {
|
|
26968
26968
|
let n = t.nodeValue.length, r = document.createRange();
|
|
26969
26969
|
for (let o = 0; o < n; o++) {
|
|
26970
26970
|
r.setEnd(t, o + 1), r.setStart(t, o);
|
|
@@ -26977,11 +26977,11 @@ Actual: ` + p3.attribValue
|
|
|
26977
26977
|
function ms(t, e) {
|
|
26978
26978
|
return t.left >= e.left - 1 && t.left <= e.right + 1 && t.top >= e.top - 1 && t.top <= e.bottom + 1;
|
|
26979
26979
|
}
|
|
26980
|
-
function
|
|
26980
|
+
function op$1(t, e) {
|
|
26981
26981
|
let n = t.parentNode;
|
|
26982
26982
|
return n && /^li$/i.test(n.nodeName) && e.left < t.getBoundingClientRect().left ? n : t;
|
|
26983
26983
|
}
|
|
26984
|
-
function
|
|
26984
|
+
function ip$1(t, e, n) {
|
|
26985
26985
|
let { node: r, offset: o } = cc$1(e, n), i3 = -1;
|
|
26986
26986
|
if (r.nodeType == 1 && !r.firstChild) {
|
|
26987
26987
|
let s = r.getBoundingClientRect();
|
|
@@ -26989,7 +26989,7 @@ Actual: ` + p3.attribValue
|
|
|
26989
26989
|
}
|
|
26990
26990
|
return t.docView.posFromDOM(r, o, i3);
|
|
26991
26991
|
}
|
|
26992
|
-
function
|
|
26992
|
+
function sp$1(t, e, n, r) {
|
|
26993
26993
|
let o = -1;
|
|
26994
26994
|
for (let i3 = e, s = false; i3 != t.dom; ) {
|
|
26995
26995
|
let a = t.docView.nearestDesc(i3, true), l;
|
|
@@ -27020,8 +27020,8 @@ Actual: ` + p3.attribValue
|
|
|
27020
27020
|
}
|
|
27021
27021
|
return t;
|
|
27022
27022
|
}
|
|
27023
|
-
function
|
|
27024
|
-
let n = t.dom.ownerDocument, r, o = 0, i3 =
|
|
27023
|
+
function ap$1(t, e) {
|
|
27024
|
+
let n = t.dom.ownerDocument, r, o = 0, i3 = Jf$1(n, e.left, e.top);
|
|
27025
27025
|
i3 && ({ node: r, offset: o } = i3);
|
|
27026
27026
|
let s = (t.root.elementFromPoint ? t.root : n).elementFromPoint(e.left, e.top), a;
|
|
27027
27027
|
if (!s || !t.dom.contains(s.nodeType != 1 ? s.parentNode : s)) {
|
|
@@ -27032,15 +27032,15 @@ Actual: ` + p3.attribValue
|
|
|
27032
27032
|
if (xe$1)
|
|
27033
27033
|
for (let c3 = s; r && c3; c3 = Tn$1(c3))
|
|
27034
27034
|
c3.draggable && (r = void 0);
|
|
27035
|
-
if (s =
|
|
27035
|
+
if (s = op$1(s, e), r) {
|
|
27036
27036
|
if (Je$2 && r.nodeType == 1 && (o = Math.min(o, r.childNodes.length), o < r.childNodes.length)) {
|
|
27037
27037
|
let d = r.childNodes[o], u;
|
|
27038
27038
|
d.nodeName == "IMG" && (u = d.getBoundingClientRect()).right <= e.left && u.bottom > e.top && o++;
|
|
27039
27039
|
}
|
|
27040
27040
|
let c3;
|
|
27041
|
-
Dr && o && r.nodeType == 1 && (c3 = r.childNodes[o - 1]).nodeType == 1 && c3.contentEditable == "false" && c3.getBoundingClientRect().top >= e.top && o--, r == t.dom && o == r.childNodes.length - 1 && r.lastChild.nodeType == 1 && e.top > r.lastChild.getBoundingClientRect().bottom ? a = t.state.doc.content.size : (o == 0 || r.nodeType != 1 || r.childNodes[o - 1].nodeName != "BR") && (a =
|
|
27041
|
+
Dr && o && r.nodeType == 1 && (c3 = r.childNodes[o - 1]).nodeType == 1 && c3.contentEditable == "false" && c3.getBoundingClientRect().top >= e.top && o--, r == t.dom && o == r.childNodes.length - 1 && r.lastChild.nodeType == 1 && e.top > r.lastChild.getBoundingClientRect().bottom ? a = t.state.doc.content.size : (o == 0 || r.nodeType != 1 || r.childNodes[o - 1].nodeName != "BR") && (a = sp$1(t, r, o, e));
|
|
27042
27042
|
}
|
|
27043
|
-
a == null && (a =
|
|
27043
|
+
a == null && (a = ip$1(t, s, e));
|
|
27044
27044
|
let l = t.docView.nearestDesc(s, true);
|
|
27045
27045
|
return { pos: a, inside: l ? l.posAtStart - l.border : -1 };
|
|
27046
27046
|
}
|
|
@@ -27056,11 +27056,11 @@ Actual: ` + p3.attribValue
|
|
|
27056
27056
|
}
|
|
27057
27057
|
return Array.prototype.find.call(n, la$1) || t.getBoundingClientRect();
|
|
27058
27058
|
}
|
|
27059
|
-
const
|
|
27059
|
+
const lp$1 = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
|
|
27060
27060
|
function uc$1(t, e, n) {
|
|
27061
27061
|
let { node: r, offset: o, atom: i3 } = t.docView.domFromPos(e, n < 0 ? -1 : 1), s = Dr || Je$2;
|
|
27062
27062
|
if (r.nodeType == 3)
|
|
27063
|
-
if (s && (
|
|
27063
|
+
if (s && (lp$1.test(r.nodeValue) || (n < 0 ? !o : o == r.nodeValue.length))) {
|
|
27064
27064
|
let l = Tt$1(mt$1(r, o, o), n);
|
|
27065
27065
|
if (Je$2 && o && /\s/.test(r.nodeValue[o - 1]) && o < r.nodeValue.length) {
|
|
27066
27066
|
let c3 = Tt$1(mt$1(r, o - 1, o - 1), -1);
|
|
@@ -27124,7 +27124,7 @@ Actual: ` + p3.attribValue
|
|
|
27124
27124
|
r != e && t.updateState(r), o != t.dom && o && o.focus();
|
|
27125
27125
|
}
|
|
27126
27126
|
}
|
|
27127
|
-
function
|
|
27127
|
+
function cp$1(t, e, n) {
|
|
27128
27128
|
let r = e.selection, o = n == "up" ? r.$from : r.$to;
|
|
27129
27129
|
return fc$1(t, e, () => {
|
|
27130
27130
|
let { node: i3 } = t.docView.domFromPos(o.pos, n == "up" ? -1 : 1);
|
|
@@ -27156,13 +27156,13 @@ Actual: ` + p3.attribValue
|
|
|
27156
27156
|
return true;
|
|
27157
27157
|
});
|
|
27158
27158
|
}
|
|
27159
|
-
const
|
|
27160
|
-
function
|
|
27159
|
+
const dp$1 = /[\u0590-\u08ac]/;
|
|
27160
|
+
function up$1(t, e, n) {
|
|
27161
27161
|
let { $head: r } = e.selection;
|
|
27162
27162
|
if (!r.parent.isTextblock)
|
|
27163
27163
|
return false;
|
|
27164
27164
|
let o = r.parentOffset, i3 = !o, s = o == r.parent.content.size, a = t.domSelection();
|
|
27165
|
-
return a ? !
|
|
27165
|
+
return a ? !dp$1.test(r.parent.textContent) || !a.modify ? n == "left" || n == "backward" ? i3 : s : fc$1(t, e, () => {
|
|
27166
27166
|
let { focusNode: l, focusOffset: c3, anchorNode: d, anchorOffset: u } = t.domSelectionRange(), f3 = a.caretBidiLevel;
|
|
27167
27167
|
a.modify("move", n, "character");
|
|
27168
27168
|
let p3 = r.depth ? t.docView.domAfterPos(r.before()) : t.dom, { focusNode: h3, focusOffset: m } = t.domSelectionRange(), g = h3 && !p3.contains(h3.nodeType == 1 ? h3 : h3.parentNode) || l == h3 && c3 == m;
|
|
@@ -27174,8 +27174,8 @@ Actual: ` + p3.attribValue
|
|
|
27174
27174
|
}) : r.pos == r.start() || r.pos == r.end();
|
|
27175
27175
|
}
|
|
27176
27176
|
let ca$1 = null, da$1 = null, ua$1 = false;
|
|
27177
|
-
function
|
|
27178
|
-
return ca$1 == e && da$1 == n ? ua$1 : (ca$1 = e, da$1 = n, ua$1 = n == "up" || n == "down" ?
|
|
27177
|
+
function fp$1(t, e, n) {
|
|
27178
|
+
return ca$1 == e && da$1 == n ? ua$1 : (ca$1 = e, da$1 = n, ua$1 = n == "up" || n == "down" ? cp$1(t, e, n) : up$1(t, e, n));
|
|
27179
27179
|
}
|
|
27180
27180
|
const Ve$1 = 0, fa$1 = 1, Zt$1 = 2, it = 3;
|
|
27181
27181
|
class Nr {
|
|
@@ -27559,7 +27559,7 @@ Actual: ` + p3.attribValue
|
|
|
27559
27559
|
return this.widget.type.side;
|
|
27560
27560
|
}
|
|
27561
27561
|
};
|
|
27562
|
-
let
|
|
27562
|
+
let pp$1 = class pp extends Nr {
|
|
27563
27563
|
constructor(e, n, r, o) {
|
|
27564
27564
|
super(e, [], n, null), this.textDOM = r, this.text = o;
|
|
27565
27565
|
}
|
|
@@ -27640,7 +27640,7 @@ Actual: ` + p3.attribValue
|
|
|
27640
27640
|
} else d || ({ dom: d, contentDOM: u } = La$2.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs));
|
|
27641
27641
|
!u && !n.isText && d.nodeName != "BR" && (d.hasAttribute("contenteditable") || (d.contentEditable = "false"), n.type.spec.draggable && (d.draggable = true));
|
|
27642
27642
|
let f3 = d;
|
|
27643
|
-
return d = yc$1(d, r, n), c3 ? l = new
|
|
27643
|
+
return d = yc$1(d, r, n), c3 ? l = new hp$1(e, n, r, o, d, u || null, f3, c3, i3, s + 1) : n.isText ? new Po$1(e, n, r, o, d, f3, i3) : new Ft2(e, n, r, o, d, u || null, f3, i3, s + 1);
|
|
27644
27644
|
}
|
|
27645
27645
|
parseRule() {
|
|
27646
27646
|
if (this.node.type.spec.reparseInView)
|
|
@@ -27676,14 +27676,14 @@ Actual: ` + p3.attribValue
|
|
|
27676
27676
|
// separate step, syncs the DOM inside `this.contentDOM` to
|
|
27677
27677
|
// `this.children`.
|
|
27678
27678
|
updateChildren(e, n) {
|
|
27679
|
-
let r = this.node.inlineContent, o = n, i3 = e.composing ? this.localCompositionInfo(e, n) : null, s = i3 && i3.pos > -1 ? i3 : null, a = i3 && i3.pos < 0, l = new
|
|
27680
|
-
|
|
27679
|
+
let r = this.node.inlineContent, o = n, i3 = e.composing ? this.localCompositionInfo(e, n) : null, s = i3 && i3.pos > -1 ? i3 : null, a = i3 && i3.pos < 0, l = new gp$1(this, s && s.node, e);
|
|
27680
|
+
wp$1(this.node, this.innerDeco, (c3, d, u) => {
|
|
27681
27681
|
c3.spec.marks ? l.syncToMarks(c3.spec.marks, r, e) : c3.type.side >= 0 && !u && l.syncToMarks(d == this.node.childCount ? ge$1.none : this.node.child(d).marks, r, e), l.placeWidget(c3, e, o);
|
|
27682
27682
|
}, (c3, d, u, f3) => {
|
|
27683
27683
|
l.syncToMarks(c3.marks, r, e);
|
|
27684
27684
|
let p3;
|
|
27685
27685
|
l.findNodeMatch(c3, d, u, f3) || a && e.state.selection.from > o && e.state.selection.to < o + c3.nodeSize && (p3 = l.findIndexWithChild(i3.node)) > -1 && l.updateNodeAt(c3, d, u, p3, e) || l.updateNextNode(c3, d, u, e, f3, o) || l.addNode(c3, d, u, e, o), o += c3.nodeSize;
|
|
27686
|
-
}), l.syncToMarks([], r, e), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty == Zt$1) && (s && this.protectLocalComposition(e, s), mc$1(this.contentDOM, this.children, e), Dn$2 &&
|
|
27686
|
+
}), l.syncToMarks([], r, e), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty == Zt$1) && (s && this.protectLocalComposition(e, s), mc$1(this.contentDOM, this.children, e), Dn$2 && vp$1(this.dom));
|
|
27687
27687
|
}
|
|
27688
27688
|
localCompositionInfo(e, n) {
|
|
27689
27689
|
let { from: r, to: o } = e.state.selection;
|
|
@@ -27693,7 +27693,7 @@ Actual: ` + p3.attribValue
|
|
|
27693
27693
|
if (!i3 || !this.dom.contains(i3.parentNode))
|
|
27694
27694
|
return null;
|
|
27695
27695
|
if (this.node.inlineContent) {
|
|
27696
|
-
let s = i3.nodeValue, a =
|
|
27696
|
+
let s = i3.nodeValue, a = kp(this.node.content, s, r - n, o - n);
|
|
27697
27697
|
return a < 0 ? null : { node: i3, pos: a, text: s };
|
|
27698
27698
|
} else
|
|
27699
27699
|
return { node: i3, pos: -1, text: "" };
|
|
@@ -27709,7 +27709,7 @@ Actual: ` + p3.attribValue
|
|
|
27709
27709
|
i3.parentNode.removeChild(i3.nextSibling);
|
|
27710
27710
|
i3.pmViewDesc && (i3.pmViewDesc = void 0);
|
|
27711
27711
|
}
|
|
27712
|
-
let s = new
|
|
27712
|
+
let s = new pp$1(this, i3, n, o);
|
|
27713
27713
|
e.input.compositionNodes.push(s), this.children = xi$1(this.children, r, r + o.length, e, s);
|
|
27714
27714
|
}
|
|
27715
27715
|
// If this desc must be updated to match the given node decoration,
|
|
@@ -27800,7 +27800,7 @@ Actual: ` + p3.attribValue
|
|
|
27800
27800
|
return this.dom.nodeName == "IMG";
|
|
27801
27801
|
}
|
|
27802
27802
|
};
|
|
27803
|
-
let
|
|
27803
|
+
let hp$1 = class hp extends Ft$1 {
|
|
27804
27804
|
constructor(e, n, r, o, i3, s, a, l, c3, d) {
|
|
27805
27805
|
super(e, n, r, o, i3, s, a, c3, d), this.spec = l;
|
|
27806
27806
|
}
|
|
@@ -27884,11 +27884,11 @@ Actual: ` + p3.attribValue
|
|
|
27884
27884
|
let l;
|
|
27885
27885
|
a && a.nodeName == s.nodeName && o != t && (l = o.parentNode) && l.nodeName.toLowerCase() == s.nodeName || (l = document.createElement(s.nodeName), l.pmIsDeco = true, l.appendChild(o), a = Qt$1[0]), o = l;
|
|
27886
27886
|
}
|
|
27887
|
-
|
|
27887
|
+
mp$1(o, a || Qt$1[0], s);
|
|
27888
27888
|
}
|
|
27889
27889
|
return o;
|
|
27890
27890
|
}
|
|
27891
|
-
function
|
|
27891
|
+
function mp$1(t, e, n) {
|
|
27892
27892
|
for (let r in e)
|
|
27893
27893
|
r != "class" && r != "style" && r != "nodeName" && !(r in n) && t.removeAttribute(r);
|
|
27894
27894
|
for (let r in n)
|
|
@@ -27925,9 +27925,9 @@ Actual: ` + p3.attribValue
|
|
|
27925
27925
|
let e = t.nextSibling;
|
|
27926
27926
|
return t.parentNode.removeChild(t), e;
|
|
27927
27927
|
}
|
|
27928
|
-
let
|
|
27928
|
+
let gp$1 = class gp {
|
|
27929
27929
|
constructor(e, n, r) {
|
|
27930
|
-
this.lock = n, this.view = r, this.index = 0, this.stack = [], this.changed = false, this.top = e, this.preMatch =
|
|
27930
|
+
this.lock = n, this.view = r, this.index = 0, this.stack = [], this.changed = false, this.top = e, this.preMatch = yp$1(e.node.content, e);
|
|
27931
27931
|
}
|
|
27932
27932
|
// Destroy and remove the children between the given indices in
|
|
27933
27933
|
// `this.top`.
|
|
@@ -28075,7 +28075,7 @@ Actual: ` + p3.attribValue
|
|
|
28075
28075
|
return this.lock && (e == this.lock || e.nodeType == 1 && e.contains(this.lock.parentNode));
|
|
28076
28076
|
}
|
|
28077
28077
|
};
|
|
28078
|
-
function
|
|
28078
|
+
function yp$1(t, e) {
|
|
28079
28079
|
let n = e, r = n.children.length, o = t.childCount, i3 = /* @__PURE__ */ new Map(), s = [];
|
|
28080
28080
|
e: for (; o > 0; ) {
|
|
28081
28081
|
let a;
|
|
@@ -28102,10 +28102,10 @@ Actual: ` + p3.attribValue
|
|
|
28102
28102
|
}
|
|
28103
28103
|
return { index: o, matched: i3, matches: s.reverse() };
|
|
28104
28104
|
}
|
|
28105
|
-
function
|
|
28105
|
+
function bp$1(t, e) {
|
|
28106
28106
|
return t.type.side - e.type.side;
|
|
28107
28107
|
}
|
|
28108
|
-
function
|
|
28108
|
+
function wp$1(t, e, n, r) {
|
|
28109
28109
|
let o = e.locals(t), i3 = 0;
|
|
28110
28110
|
if (o.length == 0) {
|
|
28111
28111
|
for (let c3 = 0; c3 < t.childCount; c3++) {
|
|
@@ -28123,7 +28123,7 @@ Actual: ` + p3.attribValue
|
|
|
28123
28123
|
}
|
|
28124
28124
|
if (d)
|
|
28125
28125
|
if (u) {
|
|
28126
|
-
u.sort(
|
|
28126
|
+
u.sort(bp$1);
|
|
28127
28127
|
for (let g = 0; g < u.length; g++)
|
|
28128
28128
|
n(u[g], c3, !!l);
|
|
28129
28129
|
} else
|
|
@@ -28153,13 +28153,13 @@ Actual: ` + p3.attribValue
|
|
|
28153
28153
|
r(f3, m, e.forChild(i3, f3), p3), i3 = h3;
|
|
28154
28154
|
}
|
|
28155
28155
|
}
|
|
28156
|
-
function
|
|
28156
|
+
function vp$1(t) {
|
|
28157
28157
|
if (t.nodeName == "UL" || t.nodeName == "OL") {
|
|
28158
28158
|
let e = t.style.cssText;
|
|
28159
28159
|
t.style.cssText = e + "; list-style: square !important", window.getComputedStyle(t).listStyle, t.style.cssText = e;
|
|
28160
28160
|
}
|
|
28161
28161
|
}
|
|
28162
|
-
function
|
|
28162
|
+
function kp(t, e, n, r) {
|
|
28163
28163
|
for (let o = 0, i3 = 0; o < t.childCount && i3 <= r; ) {
|
|
28164
28164
|
let s = t.child(o++), a = i3;
|
|
28165
28165
|
if (i3 += s.nodeSize, !s.isText)
|
|
@@ -28203,7 +28203,7 @@ Actual: ` + p3.attribValue
|
|
|
28203
28203
|
for (l = s; o && !o.node; )
|
|
28204
28204
|
o = o.parent;
|
|
28205
28205
|
let u = o.node;
|
|
28206
|
-
if (o && u.isAtom && Ge$1.isSelectable(u) && o.parent && !(u.isInline &&
|
|
28206
|
+
if (o && u.isAtom && Ge$1.isSelectable(u) && o.parent && !(u.isInline && Kf$1(n.focusNode, n.focusOffset, o.dom))) {
|
|
28207
28207
|
let f3 = o.posBefore;
|
|
28208
28208
|
c3 = new Ge$1(s == f3 ? a : r.resolve(f3));
|
|
28209
28209
|
}
|
|
@@ -28243,10 +28243,10 @@ Actual: ` + p3.attribValue
|
|
|
28243
28243
|
}
|
|
28244
28244
|
}
|
|
28245
28245
|
if (t.domObserver.disconnectSelection(), t.cursorWrapper)
|
|
28246
|
-
|
|
28246
|
+
Sp$1(t);
|
|
28247
28247
|
else {
|
|
28248
28248
|
let { anchor: r, head: o } = n, i3, s;
|
|
28249
|
-
ma$1 && !(n instanceof tt$2) && (n.$from.parent.inlineContent || (i3 = ga$1(t, n.from)), !n.empty && !n.$from.parent.inlineContent && (s = ga$1(t, n.to))), t.docView.setSelection(r, o, t, e), ma$1 && (i3 && ya$1(i3), s && ya$1(s)), n.visible ? t.dom.classList.remove("ProseMirror-hideselection") : (t.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document &&
|
|
28249
|
+
ma$1 && !(n instanceof tt$2) && (n.$from.parent.inlineContent || (i3 = ga$1(t, n.from)), !n.empty && !n.$from.parent.inlineContent && (s = ga$1(t, n.to))), t.docView.setSelection(r, o, t, e), ma$1 && (i3 && ya$1(i3), s && ya$1(s)), n.visible ? t.dom.classList.remove("ProseMirror-hideselection") : (t.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && Cp$1(t));
|
|
28250
28250
|
}
|
|
28251
28251
|
t.domObserver.setCurSelection(), t.domObserver.connectSelection();
|
|
28252
28252
|
}
|
|
@@ -28269,7 +28269,7 @@ Actual: ` + p3.attribValue
|
|
|
28269
28269
|
function ya$1(t) {
|
|
28270
28270
|
t.contentEditable = "false", t.wasDraggable && (t.draggable = true, t.wasDraggable = null);
|
|
28271
28271
|
}
|
|
28272
|
-
function
|
|
28272
|
+
function Cp$1(t) {
|
|
28273
28273
|
let e = t.dom.ownerDocument;
|
|
28274
28274
|
e.removeEventListener("selectionchange", t.input.hideSelectionGuard);
|
|
28275
28275
|
let n = t.domSelectionRange(), r = n.anchorNode, o = n.anchorOffset;
|
|
@@ -28279,7 +28279,7 @@ Actual: ` + p3.attribValue
|
|
|
28279
28279
|
}, 20));
|
|
28280
28280
|
});
|
|
28281
28281
|
}
|
|
28282
|
-
function
|
|
28282
|
+
function Sp$1(t) {
|
|
28283
28283
|
let e = t.domSelection(), n = document.createRange();
|
|
28284
28284
|
if (!e)
|
|
28285
28285
|
return;
|
|
@@ -28312,7 +28312,7 @@ Actual: ` + p3.attribValue
|
|
|
28312
28312
|
return false;
|
|
28313
28313
|
}
|
|
28314
28314
|
}
|
|
28315
|
-
function
|
|
28315
|
+
function xp$1(t) {
|
|
28316
28316
|
let e = t.docView.domFromPos(t.state.selection.anchor, 0), n = t.domSelectionRange();
|
|
28317
28317
|
return ln$2(e.node, e.offset, n.anchorNode, n.anchorOffset);
|
|
28318
28318
|
}
|
|
@@ -28361,9 +28361,9 @@ Actual: ` + p3.attribValue
|
|
|
28361
28361
|
return n && n.size == 0 && (e < 0 || t.nextSibling || t.nodeName != "BR");
|
|
28362
28362
|
}
|
|
28363
28363
|
function yn$2(t, e) {
|
|
28364
|
-
return e < 0 ?
|
|
28364
|
+
return e < 0 ? Mp$1(t) : Ap(t);
|
|
28365
28365
|
}
|
|
28366
|
-
function
|
|
28366
|
+
function Mp$1(t) {
|
|
28367
28367
|
let e = t.domSelectionRange(), n = e.focusNode, r = e.focusOffset;
|
|
28368
28368
|
if (!n)
|
|
28369
28369
|
return;
|
|
@@ -28399,7 +28399,7 @@ Actual: ` + p3.attribValue
|
|
|
28399
28399
|
}
|
|
28400
28400
|
s ? Ai$1(t, n, r) : o && Ai$1(t, o, i3);
|
|
28401
28401
|
}
|
|
28402
|
-
function
|
|
28402
|
+
function Ap(t) {
|
|
28403
28403
|
let e = t.domSelectionRange(), n = e.focusNode, r = e.focusOffset;
|
|
28404
28404
|
if (!n)
|
|
28405
28405
|
return;
|
|
@@ -28435,7 +28435,7 @@ Actual: ` + p3.attribValue
|
|
|
28435
28435
|
let e = t.pmViewDesc;
|
|
28436
28436
|
return e && e.node && e.node.isBlock;
|
|
28437
28437
|
}
|
|
28438
|
-
function
|
|
28438
|
+
function Op(t, e) {
|
|
28439
28439
|
for (; t && e == t.childNodes.length && !Tr$1(t); )
|
|
28440
28440
|
e = me(t) + 1, t = t.parentNode;
|
|
28441
28441
|
for (; t && e < t.childNodes.length; ) {
|
|
@@ -28447,7 +28447,7 @@ Actual: ` + p3.attribValue
|
|
|
28447
28447
|
t = n, e = 0;
|
|
28448
28448
|
}
|
|
28449
28449
|
}
|
|
28450
|
-
function
|
|
28450
|
+
function Tp$1(t, e) {
|
|
28451
28451
|
for (; t && !e && !Tr$1(t); )
|
|
28452
28452
|
e = me(t), t = t.parentNode;
|
|
28453
28453
|
for (; t && e; ) {
|
|
@@ -28462,7 +28462,7 @@ Actual: ` + p3.attribValue
|
|
|
28462
28462
|
function Ai$1(t, e, n) {
|
|
28463
28463
|
if (e.nodeType != 3) {
|
|
28464
28464
|
let i3, s;
|
|
28465
|
-
(s =
|
|
28465
|
+
(s = Op(e, n)) ? (e = s, n = 0) : (i3 = Tp$1(e, n)) && (e = i3, n = i3.nodeValue.length);
|
|
28466
28466
|
}
|
|
28467
28467
|
let r = t.domSelection();
|
|
28468
28468
|
if (!r)
|
|
@@ -28479,7 +28479,7 @@ Actual: ` + p3.attribValue
|
|
|
28479
28479
|
}
|
|
28480
28480
|
function ka$1(t, e) {
|
|
28481
28481
|
let n = t.state.doc.resolve(e);
|
|
28482
|
-
if (!(be$1 ||
|
|
28482
|
+
if (!(be$1 || Yf$1) && n.parent.inlineContent) {
|
|
28483
28483
|
let o = t.coordsAtPos(e);
|
|
28484
28484
|
if (e > n.start()) {
|
|
28485
28485
|
let i3 = t.coordsAtPos(e - 1), s = (i3.top + i3.bottom) / 2;
|
|
@@ -28530,7 +28530,7 @@ Actual: ` + p3.attribValue
|
|
|
28530
28530
|
function xa$1(t, e, n) {
|
|
28531
28531
|
t.domObserver.stop(), e.contentEditable = n, t.domObserver.start();
|
|
28532
28532
|
}
|
|
28533
|
-
function
|
|
28533
|
+
function Dp(t) {
|
|
28534
28534
|
if (!xe$1 || t.state.selection.$head.parentOffset > 0)
|
|
28535
28535
|
return false;
|
|
28536
28536
|
let { focusNode: e, focusOffset: n } = t.domSelectionRange();
|
|
@@ -28540,12 +28540,12 @@ Actual: ` + p3.attribValue
|
|
|
28540
28540
|
}
|
|
28541
28541
|
return false;
|
|
28542
28542
|
}
|
|
28543
|
-
function
|
|
28543
|
+
function Np(t) {
|
|
28544
28544
|
let e = "";
|
|
28545
28545
|
return t.ctrlKey && (e += "c"), t.metaKey && (e += "m"), t.altKey && (e += "a"), t.shiftKey && (e += "s"), e;
|
|
28546
28546
|
}
|
|
28547
|
-
function
|
|
28548
|
-
let n = e.keyCode, r =
|
|
28547
|
+
function Ep(t, e) {
|
|
28548
|
+
let n = e.keyCode, r = Np(e);
|
|
28549
28549
|
if (n == 8 || _e && n == 72 && r == "c")
|
|
28550
28550
|
return Sa$1(t, -1) || yn$2(t, -1);
|
|
28551
28551
|
if (n == 46 && !e.shiftKey || _e && n == 68 && r == "c")
|
|
@@ -28562,7 +28562,7 @@ Actual: ` + p3.attribValue
|
|
|
28562
28562
|
if (n == 38 || _e && n == 80 && r == "c")
|
|
28563
28563
|
return Ca$1(t, -1, r) || yn$2(t, -1);
|
|
28564
28564
|
if (n == 40 || _e && n == 78 && r == "c")
|
|
28565
|
-
return
|
|
28565
|
+
return Dp(t) || Ca$1(t, 1, r) || yn$2(t, 1);
|
|
28566
28566
|
if (r == (_e ? "m" : "c") && (n == 66 || n == 73 || n == 89 || n == 90))
|
|
28567
28567
|
return true;
|
|
28568
28568
|
}
|
|
@@ -28620,7 +28620,7 @@ Actual: ` + p3.attribValue
|
|
|
28620
28620
|
} else
|
|
28621
28621
|
t.someProp("transformPastedHTML", (u) => {
|
|
28622
28622
|
n = u(n, t);
|
|
28623
|
-
}), s =
|
|
28623
|
+
}), s = Lp(n), Dr && Fp(s);
|
|
28624
28624
|
let c3 = s && s.querySelector("[data-pm-slice]"), d = c3 && /^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c3.getAttribute("data-pm-slice") || "");
|
|
28625
28625
|
if (d && d[3])
|
|
28626
28626
|
for (let u = +d[3]; u > 0; u--) {
|
|
@@ -28635,11 +28635,11 @@ Actual: ` + p3.attribValue
|
|
|
28635
28635
|
preserveWhitespace: !!(l || d),
|
|
28636
28636
|
context: o,
|
|
28637
28637
|
ruleFromNode(f3) {
|
|
28638
|
-
return f3.nodeName == "BR" && !f3.nextSibling && f3.parentNode && !
|
|
28638
|
+
return f3.nodeName == "BR" && !f3.nextSibling && f3.parentNode && !Ip.test(f3.parentNode.nodeName) ? { ignore: true } : null;
|
|
28639
28639
|
}
|
|
28640
28640
|
})), d)
|
|
28641
|
-
a =
|
|
28642
|
-
else if (a = ue.maxOpen(
|
|
28641
|
+
a = Bp$1(Ma$1(a, +d[1], +d[2]), d[4]);
|
|
28642
|
+
else if (a = ue.maxOpen(Pp(a.content, o), true), a.openStart || a.openEnd) {
|
|
28643
28643
|
let u = 0, f3 = 0;
|
|
28644
28644
|
for (let p3 = a.content.firstChild; u < a.openStart && !p3.type.spec.isolating; u++, p3 = p3.firstChild)
|
|
28645
28645
|
;
|
|
@@ -28651,8 +28651,8 @@ Actual: ` + p3.attribValue
|
|
|
28651
28651
|
a = u(a, t);
|
|
28652
28652
|
}), a;
|
|
28653
28653
|
}
|
|
28654
|
-
const
|
|
28655
|
-
function
|
|
28654
|
+
const Ip = /^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;
|
|
28655
|
+
function Pp(t, e) {
|
|
28656
28656
|
if (t.childCount < 2)
|
|
28657
28657
|
return t;
|
|
28658
28658
|
for (let n = e.depth; n >= 0; n--) {
|
|
@@ -28718,27 +28718,27 @@ Actual: ` + p3.attribValue
|
|
|
28718
28718
|
return Aa$1 || (Aa$1 = document.implementation.createHTMLDocument("title"));
|
|
28719
28719
|
}
|
|
28720
28720
|
let ei$1 = null;
|
|
28721
|
-
function
|
|
28721
|
+
function Rp(t) {
|
|
28722
28722
|
let e = window.trustedTypes;
|
|
28723
28723
|
return e ? (ei$1 || (ei$1 = e.createPolicy("ProseMirrorClipboard", { createHTML: (n) => n })), ei$1.createHTML(t)) : t;
|
|
28724
28724
|
}
|
|
28725
|
-
function
|
|
28725
|
+
function Lp(t) {
|
|
28726
28726
|
let e = /^(\s*<meta [^>]*>)*/.exec(t);
|
|
28727
28727
|
e && (t = t.slice(e[0].length));
|
|
28728
28728
|
let n = Oc$1().createElement("div"), r = /<([a-z][^>\s]+)/i.exec(t), o;
|
|
28729
|
-
if ((o = r && Ac$1[r[1].toLowerCase()]) && (t = o.map((i3) => "<" + i3 + ">").join("") + t + o.map((i3) => "</" + i3 + ">").reverse().join("")), n.innerHTML =
|
|
28729
|
+
if ((o = r && Ac$1[r[1].toLowerCase()]) && (t = o.map((i3) => "<" + i3 + ">").join("") + t + o.map((i3) => "</" + i3 + ">").reverse().join("")), n.innerHTML = Rp(t), o)
|
|
28730
28730
|
for (let i3 = 0; i3 < o.length; i3++)
|
|
28731
28731
|
n = n.querySelector(o[i3]) || n;
|
|
28732
28732
|
return n;
|
|
28733
28733
|
}
|
|
28734
|
-
function
|
|
28734
|
+
function Fp(t) {
|
|
28735
28735
|
let e = t.querySelectorAll(be$1 ? "span:not([class]):not([style])" : "span.Apple-converted-space");
|
|
28736
28736
|
for (let n = 0; n < e.length; n++) {
|
|
28737
28737
|
let r = e[n];
|
|
28738
28738
|
r.childNodes.length == 1 && r.textContent == " " && r.parentNode && r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "), r);
|
|
28739
28739
|
}
|
|
28740
28740
|
}
|
|
28741
|
-
function
|
|
28741
|
+
function Bp$1(t, e) {
|
|
28742
28742
|
if (!t.size)
|
|
28743
28743
|
return t;
|
|
28744
28744
|
let n = t.content.firstChild.type.schema, r;
|
|
@@ -28756,25 +28756,25 @@ Actual: ` + p3.attribValue
|
|
|
28756
28756
|
}
|
|
28757
28757
|
return new ue(o, i3, s);
|
|
28758
28758
|
}
|
|
28759
|
-
const Me$1 = {}, Ae = {},
|
|
28760
|
-
|
|
28759
|
+
const Me$1 = {}, Ae = {}, _p$1 = { touchstart: true, touchmove: true };
|
|
28760
|
+
class zp {
|
|
28761
28761
|
constructor() {
|
|
28762
28762
|
this.shiftKey = false, this.mouseDown = null, this.lastKeyCode = null, this.lastKeyCodeTime = 0, this.lastClick = { time: 0, x: 0, y: 0, type: "" }, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastIOSEnter = 0, this.lastIOSEnterFallbackTimeout = -1, this.lastFocus = 0, this.lastTouch = 0, this.lastChromeDelete = 0, this.composing = false, this.compositionNode = null, this.composingTimeout = -1, this.compositionNodes = [], this.compositionEndedAt = -2e8, this.compositionID = 1, this.compositionPendingChanges = 0, this.domChangeCount = 0, this.eventHandlers = /* @__PURE__ */ Object.create(null), this.hideSelectionGuard = null;
|
|
28763
28763
|
}
|
|
28764
|
-
}
|
|
28765
|
-
function
|
|
28764
|
+
}
|
|
28765
|
+
function $p$1(t) {
|
|
28766
28766
|
for (let e in Me$1) {
|
|
28767
28767
|
let n = Me$1[e];
|
|
28768
28768
|
t.dom.addEventListener(e, t.input.eventHandlers[e] = (r) => {
|
|
28769
|
-
|
|
28770
|
-
},
|
|
28769
|
+
Hp(t, r) && !ws(t, r) && (t.editable || !(r.type in Ae)) && n(t, r);
|
|
28770
|
+
}, _p$1[e] ? { passive: true } : void 0);
|
|
28771
28771
|
}
|
|
28772
28772
|
xe$1 && t.dom.addEventListener("input", () => null), Ti$1(t);
|
|
28773
28773
|
}
|
|
28774
28774
|
function Pt$1(t, e) {
|
|
28775
28775
|
t.input.lastSelectionOrigin = e, t.input.lastSelectionTime = Date.now();
|
|
28776
28776
|
}
|
|
28777
|
-
function
|
|
28777
|
+
function Vp(t) {
|
|
28778
28778
|
t.domObserver.stop();
|
|
28779
28779
|
for (let e in t.input.eventHandlers)
|
|
28780
28780
|
t.dom.removeEventListener(e, t.input.eventHandlers[e]);
|
|
@@ -28792,7 +28792,7 @@ Actual: ` + p3.attribValue
|
|
|
28792
28792
|
return r ? r(t, e) || e.defaultPrevented : false;
|
|
28793
28793
|
});
|
|
28794
28794
|
}
|
|
28795
|
-
function
|
|
28795
|
+
function Hp(t, e) {
|
|
28796
28796
|
if (!e.bubbles)
|
|
28797
28797
|
return true;
|
|
28798
28798
|
if (e.defaultPrevented)
|
|
@@ -28802,7 +28802,7 @@ Actual: ` + p3.attribValue
|
|
|
28802
28802
|
return false;
|
|
28803
28803
|
return true;
|
|
28804
28804
|
}
|
|
28805
|
-
function
|
|
28805
|
+
function jp(t, e) {
|
|
28806
28806
|
!ws(t, e) && Me$1[e.type] && (t.editable || !(e.type in Ae)) && Me$1[e.type](t, e);
|
|
28807
28807
|
}
|
|
28808
28808
|
Ae.keydown = (t, e) => {
|
|
@@ -28813,7 +28813,7 @@ Actual: ` + p3.attribValue
|
|
|
28813
28813
|
t.input.lastIOSEnter = r, t.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
|
|
28814
28814
|
t.input.lastIOSEnter == r && (t.someProp("handleKeyDown", (o) => o(t, Gt$2(13, "Enter"))), t.input.lastIOSEnter = 0);
|
|
28815
28815
|
}, 200);
|
|
28816
|
-
} else t.someProp("handleKeyDown", (r) => r(t, n)) ||
|
|
28816
|
+
} else t.someProp("handleKeyDown", (r) => r(t, n)) || Ep(t, n) ? n.preventDefault() : Pt$1(t, "key");
|
|
28817
28817
|
};
|
|
28818
28818
|
Ae.keyup = (t, e) => {
|
|
28819
28819
|
e.keyCode == 16 && (t.input.shiftKey = false);
|
|
@@ -28835,7 +28835,7 @@ Actual: ` + p3.attribValue
|
|
|
28835
28835
|
function Ro$1(t) {
|
|
28836
28836
|
return { left: t.clientX, top: t.clientY };
|
|
28837
28837
|
}
|
|
28838
|
-
function
|
|
28838
|
+
function Wp(t, e) {
|
|
28839
28839
|
let n = e.x - t.clientX, r = e.y - t.clientY;
|
|
28840
28840
|
return n * n + r * r < 100;
|
|
28841
28841
|
}
|
|
@@ -28854,13 +28854,13 @@ Actual: ` + p3.attribValue
|
|
|
28854
28854
|
let r = t.state.tr.setSelection(e);
|
|
28855
28855
|
r.setMeta("pointer", true), t.dispatch(r);
|
|
28856
28856
|
}
|
|
28857
|
-
function
|
|
28857
|
+
function Up(t, e) {
|
|
28858
28858
|
if (e == -1)
|
|
28859
28859
|
return false;
|
|
28860
28860
|
let n = t.state.doc.resolve(e), r = n.nodeAfter;
|
|
28861
28861
|
return r && r.isAtom && Ge$1.isSelectable(r) ? (On$2(t, new Ge$1(n)), true) : false;
|
|
28862
28862
|
}
|
|
28863
|
-
function
|
|
28863
|
+
function qp(t, e) {
|
|
28864
28864
|
if (e == -1)
|
|
28865
28865
|
return false;
|
|
28866
28866
|
let n = t.state.selection, r, o;
|
|
@@ -28875,16 +28875,16 @@ Actual: ` + p3.attribValue
|
|
|
28875
28875
|
}
|
|
28876
28876
|
return o != null ? (On$2(t, Ge$1.create(t.state.doc, o)), true) : false;
|
|
28877
28877
|
}
|
|
28878
|
-
function
|
|
28879
|
-
return vs(t, "handleClickOn", e, n, r) || t.someProp("handleClick", (i3) => i3(t, e, r)) || (o ?
|
|
28878
|
+
function Kp(t, e, n, r, o) {
|
|
28879
|
+
return vs(t, "handleClickOn", e, n, r) || t.someProp("handleClick", (i3) => i3(t, e, r)) || (o ? qp(t, n) : Up(t, n));
|
|
28880
28880
|
}
|
|
28881
|
-
function
|
|
28881
|
+
function Xp(t, e, n, r) {
|
|
28882
28882
|
return vs(t, "handleDoubleClickOn", e, n, r) || t.someProp("handleDoubleClick", (o) => o(t, e, r));
|
|
28883
28883
|
}
|
|
28884
|
-
function
|
|
28885
|
-
return vs(t, "handleTripleClickOn", e, n, r) || t.someProp("handleTripleClick", (o) => o(t, e, r)) ||
|
|
28884
|
+
function Jp(t, e, n, r) {
|
|
28885
|
+
return vs(t, "handleTripleClickOn", e, n, r) || t.someProp("handleTripleClick", (o) => o(t, e, r)) || Yp(t, n, r);
|
|
28886
28886
|
}
|
|
28887
|
-
function
|
|
28887
|
+
function Yp(t, e, n) {
|
|
28888
28888
|
if (n.button != 0)
|
|
28889
28889
|
return false;
|
|
28890
28890
|
let r = t.state.doc;
|
|
@@ -28910,11 +28910,11 @@ Actual: ` + p3.attribValue
|
|
|
28910
28910
|
let n = e;
|
|
28911
28911
|
t.input.shiftKey = n.shiftKey;
|
|
28912
28912
|
let r = ks(t), o = Date.now(), i3 = "singleClick";
|
|
28913
|
-
o - t.input.lastClick.time < 500 &&
|
|
28913
|
+
o - t.input.lastClick.time < 500 && Wp(n, t.input.lastClick) && !n[Tc$1] && (t.input.lastClick.type == "singleClick" ? i3 = "doubleClick" : t.input.lastClick.type == "doubleClick" && (i3 = "tripleClick")), t.input.lastClick = { time: o, x: n.clientX, y: n.clientY, type: i3 };
|
|
28914
28914
|
let s = t.posAtCoords(Ro$1(n));
|
|
28915
|
-
s && (i3 == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new
|
|
28915
|
+
s && (i3 == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new Gp(t, s, n, !!r)) : (i3 == "doubleClick" ? Xp : Jp)(t, s.pos, s.inside, n) ? n.preventDefault() : Pt$1(t, "pointer"));
|
|
28916
28916
|
};
|
|
28917
|
-
class
|
|
28917
|
+
class Gp {
|
|
28918
28918
|
constructor(e, n, r, o) {
|
|
28919
28919
|
this.view = e, this.pos = n, this.event = r, this.flushed = o, this.delayedSelectionSync = false, this.mightDrag = null, this.startDoc = e.state.doc, this.selectNode = !!r[Tc$1], this.allowDefault = r.shiftKey;
|
|
28920
28920
|
let i3, s;
|
|
@@ -28943,7 +28943,7 @@ Actual: ` + p3.attribValue
|
|
|
28943
28943
|
if (this.done(), !this.view.dom.contains(e.target))
|
|
28944
28944
|
return;
|
|
28945
28945
|
let n = this.pos;
|
|
28946
|
-
this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(Ro$1(e))), this.updateAllowDefault(e), this.allowDefault || !n ? Pt$1(this.view, "pointer") :
|
|
28946
|
+
this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(Ro$1(e))), this.updateAllowDefault(e), this.allowDefault || !n ? Pt$1(this.view, "pointer") : Kp(this.view, n.pos, n.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
|
|
28947
28947
|
xe$1 && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
|
|
28948
28948
|
// cursor, but still report that the node is selected
|
|
28949
28949
|
// when asked through getSelection. You'll then get a
|
|
@@ -28970,7 +28970,7 @@ Actual: ` + p3.attribValue
|
|
|
28970
28970
|
function Dc$1(t, e) {
|
|
28971
28971
|
return t.composing ? true : xe$1 && Math.abs(e.timeStamp - t.input.compositionEndedAt) < 500 ? (t.input.compositionEndedAt = -2e8, true) : false;
|
|
28972
28972
|
}
|
|
28973
|
-
const
|
|
28973
|
+
const Zp = bt$1 ? 5e3 : -1;
|
|
28974
28974
|
Ae.compositionstart = Ae.compositionupdate = (t) => {
|
|
28975
28975
|
if (!t.composing) {
|
|
28976
28976
|
t.domObserver.flush();
|
|
@@ -28993,7 +28993,7 @@ Actual: ` + p3.attribValue
|
|
|
28993
28993
|
}
|
|
28994
28994
|
t.input.composing = true;
|
|
28995
28995
|
}
|
|
28996
|
-
Nc$1(t,
|
|
28996
|
+
Nc$1(t, Zp);
|
|
28997
28997
|
};
|
|
28998
28998
|
Ae.compositionend = (t, e) => {
|
|
28999
28999
|
t.composing && (t.input.composing = false, t.input.compositionEndedAt = e.timeStamp, t.input.compositionPendingChanges = t.domObserver.pendingRecords().length ? t.input.compositionID : 0, t.input.compositionNode = null, t.input.compositionPendingChanges && Promise.resolve().then(() => t.domObserver.flush()), t.input.compositionID++, Nc$1(t, 20));
|
|
@@ -29002,14 +29002,14 @@ Actual: ` + p3.attribValue
|
|
|
29002
29002
|
clearTimeout(t.input.composingTimeout), e > -1 && (t.input.composingTimeout = setTimeout(() => mo$1(t), e));
|
|
29003
29003
|
}
|
|
29004
29004
|
function Ec$1(t) {
|
|
29005
|
-
for (t.composing && (t.input.composing = false, t.input.compositionEndedAt =
|
|
29005
|
+
for (t.composing && (t.input.composing = false, t.input.compositionEndedAt = eh$1()); t.input.compositionNodes.length > 0; )
|
|
29006
29006
|
t.input.compositionNodes.pop().markParentsDirty();
|
|
29007
29007
|
}
|
|
29008
|
-
function
|
|
29008
|
+
function Qp(t) {
|
|
29009
29009
|
let e = t.domSelectionRange();
|
|
29010
29010
|
if (!e.focusNode)
|
|
29011
29011
|
return null;
|
|
29012
|
-
let n =
|
|
29012
|
+
let n = Uf$1(e.focusNode, e.focusOffset), r = qf$1(e.focusNode, e.focusOffset);
|
|
29013
29013
|
if (n && r && n != r) {
|
|
29014
29014
|
let o = r.pmViewDesc, i3 = t.domObserver.lastChangedTextNode;
|
|
29015
29015
|
if (n == i3 || r == i3)
|
|
@@ -29024,7 +29024,7 @@ Actual: ` + p3.attribValue
|
|
|
29024
29024
|
}
|
|
29025
29025
|
return n || r;
|
|
29026
29026
|
}
|
|
29027
|
-
function
|
|
29027
|
+
function eh$1() {
|
|
29028
29028
|
let t = document.createEvent("Event");
|
|
29029
29029
|
return t.initEvent("event", true, true), t.timeStamp;
|
|
29030
29030
|
}
|
|
@@ -29037,7 +29037,7 @@ Actual: ` + p3.attribValue
|
|
|
29037
29037
|
return false;
|
|
29038
29038
|
}
|
|
29039
29039
|
}
|
|
29040
|
-
function
|
|
29040
|
+
function th$1(t, e) {
|
|
29041
29041
|
if (!t.dom.parentNode)
|
|
29042
29042
|
return;
|
|
29043
29043
|
let n = t.dom.parentNode.appendChild(document.createElement("div"));
|
|
@@ -29047,18 +29047,18 @@ Actual: ` + p3.attribValue
|
|
|
29047
29047
|
n.parentNode && n.parentNode.removeChild(n), t.focus();
|
|
29048
29048
|
}, 50);
|
|
29049
29049
|
}
|
|
29050
|
-
const ur$1 = Oe$1 && Lt$1 < 15 || Dn$2 &&
|
|
29050
|
+
const ur$1 = Oe$1 && Lt$1 < 15 || Dn$2 && Gf$1 < 604;
|
|
29051
29051
|
Me$1.copy = Ae.cut = (t, e) => {
|
|
29052
29052
|
let n = e, r = t.state.selection, o = n.type == "cut";
|
|
29053
29053
|
if (r.empty)
|
|
29054
29054
|
return;
|
|
29055
29055
|
let i3 = ur$1 ? null : n.clipboardData, s = r.content(), { dom: a, text: l } = bs(t, s);
|
|
29056
|
-
i3 ? (n.preventDefault(), i3.clearData(), i3.setData("text/html", a.innerHTML), i3.setData("text/plain", l)) :
|
|
29056
|
+
i3 ? (n.preventDefault(), i3.clearData(), i3.setData("text/html", a.innerHTML), i3.setData("text/plain", l)) : th$1(t, a), o && t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent", "cut"));
|
|
29057
29057
|
};
|
|
29058
|
-
function
|
|
29058
|
+
function nh$1(t) {
|
|
29059
29059
|
return t.openStart == 0 && t.openEnd == 0 && t.content.childCount == 1 ? t.content.firstChild : null;
|
|
29060
29060
|
}
|
|
29061
|
-
function
|
|
29061
|
+
function rh$1(t, e) {
|
|
29062
29062
|
if (!t.dom.parentNode)
|
|
29063
29063
|
return;
|
|
29064
29064
|
let n = t.input.shiftKey || t.state.selection.$from.parent.type.spec.code, r = t.dom.parentNode.appendChild(document.createElement(n ? "textarea" : "div"));
|
|
@@ -29074,7 +29074,7 @@ Actual: ` + p3.attribValue
|
|
|
29074
29074
|
return true;
|
|
29075
29075
|
if (!i3)
|
|
29076
29076
|
return false;
|
|
29077
|
-
let s =
|
|
29077
|
+
let s = nh$1(i3), a = s ? t.state.tr.replaceSelectionWith(s, r) : t.state.tr.replaceSelection(i3);
|
|
29078
29078
|
return t.dispatch(a.scrollIntoView().setMeta("paste", true).setMeta("uiEvent", "paste")), true;
|
|
29079
29079
|
}
|
|
29080
29080
|
function Ic$1(t) {
|
|
@@ -29089,17 +29089,17 @@ Actual: ` + p3.attribValue
|
|
|
29089
29089
|
if (t.composing && !bt$1)
|
|
29090
29090
|
return;
|
|
29091
29091
|
let r = ur$1 ? null : n.clipboardData, o = t.input.shiftKey && t.input.lastKeyCode != 45;
|
|
29092
|
-
r && fr(t, Ic$1(r), r.getData("text/html"), o, n) ? n.preventDefault() :
|
|
29092
|
+
r && fr(t, Ic$1(r), r.getData("text/html"), o, n) ? n.preventDefault() : rh$1(t, n);
|
|
29093
29093
|
};
|
|
29094
29094
|
let Pc$1 = class Pc {
|
|
29095
29095
|
constructor(e, n, r) {
|
|
29096
29096
|
this.slice = e, this.move = n, this.node = r;
|
|
29097
29097
|
}
|
|
29098
29098
|
};
|
|
29099
|
-
const
|
|
29099
|
+
const oh$1 = _e ? "altKey" : "ctrlKey";
|
|
29100
29100
|
function Rc$1(t, e) {
|
|
29101
29101
|
let n = t.someProp("dragCopies", (r) => !r(e));
|
|
29102
|
-
return n ?? !e[
|
|
29102
|
+
return n ?? !e[oh$1];
|
|
29103
29103
|
}
|
|
29104
29104
|
Me$1.dragstart = (t, e) => {
|
|
29105
29105
|
let n = e, r = t.input.mouseDown;
|
|
@@ -29381,7 +29381,7 @@ Actual: ` + p3.attribValue
|
|
|
29381
29381
|
let l = this.local[a].map(e, r, o);
|
|
29382
29382
|
l && l.type.valid(n, l) ? (s || (s = [])).push(l) : i3.onRemove && i3.onRemove(this.local[a].spec);
|
|
29383
29383
|
}
|
|
29384
|
-
return this.children.length ?
|
|
29384
|
+
return this.children.length ? ih$1(this.children, s || [], e, n, r, o, i3) : s ? new F(s.sort(rn$2), xn$2) : ye$1;
|
|
29385
29385
|
}
|
|
29386
29386
|
/**
|
|
29387
29387
|
Add the given array of decorations to the ones in the set,
|
|
@@ -29559,7 +29559,7 @@ Actual: ` + p3.attribValue
|
|
|
29559
29559
|
this.members[n].forEachSet(e);
|
|
29560
29560
|
}
|
|
29561
29561
|
}
|
|
29562
|
-
function
|
|
29562
|
+
function ih$1(t, e, n, r, o, i3, s) {
|
|
29563
29563
|
let a = t.slice();
|
|
29564
29564
|
for (let c3 = 0, d = i3; c3 < n.maps.length; c3++) {
|
|
29565
29565
|
let u = 0;
|
|
@@ -29595,7 +29595,7 @@ Actual: ` + p3.attribValue
|
|
|
29595
29595
|
l = true;
|
|
29596
29596
|
}
|
|
29597
29597
|
if (l) {
|
|
29598
|
-
let c3 =
|
|
29598
|
+
let c3 = sh$1(a, t, e, n, o, i3, s), d = yo$1(c3, r, 0, s);
|
|
29599
29599
|
e = d.local;
|
|
29600
29600
|
for (let u = 0; u < a.length; u += 3)
|
|
29601
29601
|
a[u + 1] < 0 && (a.splice(u, 3), u -= 3);
|
|
@@ -29618,7 +29618,7 @@ Actual: ` + p3.attribValue
|
|
|
29618
29618
|
}
|
|
29619
29619
|
return n;
|
|
29620
29620
|
}
|
|
29621
|
-
function
|
|
29621
|
+
function sh$1(t, e, n, r, o, i3, s) {
|
|
29622
29622
|
function a(l, c3) {
|
|
29623
29623
|
for (let d = 0; d < l.local.length; d++) {
|
|
29624
29624
|
let u = l.local[d].map(r, o, c3);
|
|
@@ -29693,15 +29693,15 @@ Actual: ` + p3.attribValue
|
|
|
29693
29693
|
r && r != ye$1 && e.push(r);
|
|
29694
29694
|
}), t.cursorWrapper && e.push(F.create(t.state.doc, [t.cursorWrapper.deco])), Et.from(e);
|
|
29695
29695
|
}
|
|
29696
|
-
const
|
|
29696
|
+
const ah$1 = {
|
|
29697
29697
|
childList: true,
|
|
29698
29698
|
characterData: true,
|
|
29699
29699
|
characterDataOldValue: true,
|
|
29700
29700
|
attributes: true,
|
|
29701
29701
|
attributeOldValue: true,
|
|
29702
29702
|
subtree: true
|
|
29703
|
-
},
|
|
29704
|
-
let
|
|
29703
|
+
}, lh$1 = Oe$1 && Lt$1 <= 11;
|
|
29704
|
+
let ch$1 = class ch {
|
|
29705
29705
|
constructor() {
|
|
29706
29706
|
this.anchorNode = null, this.anchorOffset = 0, this.focusNode = null, this.focusOffset = 0;
|
|
29707
29707
|
}
|
|
@@ -29715,13 +29715,13 @@ Actual: ` + p3.attribValue
|
|
|
29715
29715
|
return e.anchorNode == this.anchorNode && e.anchorOffset == this.anchorOffset && e.focusNode == this.focusNode && e.focusOffset == this.focusOffset;
|
|
29716
29716
|
}
|
|
29717
29717
|
};
|
|
29718
|
-
let
|
|
29718
|
+
let dh$1 = class dh {
|
|
29719
29719
|
constructor(e, n) {
|
|
29720
|
-
this.view = e, this.handleDOMChange = n, this.queue = [], this.flushingSoon = -1, this.observer = null, this.currentSelection = new
|
|
29720
|
+
this.view = e, this.handleDOMChange = n, this.queue = [], this.flushingSoon = -1, this.observer = null, this.currentSelection = new ch$1(), this.onCharData = null, this.suppressingSelectionUpdates = false, this.lastChangedTextNode = null, this.observer = window.MutationObserver && new window.MutationObserver((r) => {
|
|
29721
29721
|
for (let o = 0; o < r.length; o++)
|
|
29722
29722
|
this.queue.push(r[o]);
|
|
29723
29723
|
Oe$1 && Lt$1 <= 11 && r.some((o) => o.type == "childList" && o.removedNodes.length || o.type == "characterData" && o.oldValue.length > o.target.nodeValue.length) ? this.flushSoon() : this.flush();
|
|
29724
|
-
}),
|
|
29724
|
+
}), lh$1 && (this.onCharData = (r) => {
|
|
29725
29725
|
this.queue.push({ target: r.target, type: "characterData", oldValue: r.prevValue }), this.flushSoon();
|
|
29726
29726
|
}), this.onSelectionChange = this.onSelectionChange.bind(this);
|
|
29727
29727
|
}
|
|
@@ -29734,7 +29734,7 @@ Actual: ` + p3.attribValue
|
|
|
29734
29734
|
this.flushingSoon > -1 && (window.clearTimeout(this.flushingSoon), this.flushingSoon = -1, this.flush());
|
|
29735
29735
|
}
|
|
29736
29736
|
start() {
|
|
29737
|
-
this.observer && (this.observer.takeRecords(), this.observer.observe(this.view.dom,
|
|
29737
|
+
this.observer && (this.observer.takeRecords(), this.observer.observe(this.view.dom, ah$1)), this.onCharData && this.view.dom.addEventListener("DOMCharacterDataModified", this.onCharData), this.connectSelection();
|
|
29738
29738
|
}
|
|
29739
29739
|
stop() {
|
|
29740
29740
|
if (this.observer) {
|
|
@@ -29817,12 +29817,12 @@ Actual: ` + p3.attribValue
|
|
|
29817
29817
|
let { focusNode: u } = this.currentSelection;
|
|
29818
29818
|
for (let f3 of d) {
|
|
29819
29819
|
let p3 = f3.parentNode;
|
|
29820
|
-
p3 && p3.nodeName == "LI" && (!u ||
|
|
29820
|
+
p3 && p3.nodeName == "LI" && (!u || ph$1(e, u) != p3) && f3.remove();
|
|
29821
29821
|
}
|
|
29822
29822
|
}
|
|
29823
29823
|
}
|
|
29824
29824
|
let c3 = null;
|
|
29825
|
-
i3 < 0 && o && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && Io$1(r) && (c3 = gs(e)) && c3.eq(ve$1.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, kt$1(e), this.currentSelection.set(r), e.scrollToSelection()) : (i3 > -1 || o) && (i3 > -1 && (e.docView.markDirty(i3, s),
|
|
29825
|
+
i3 < 0 && o && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && Io$1(r) && (c3 = gs(e)) && c3.eq(ve$1.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, kt$1(e), this.currentSelection.set(r), e.scrollToSelection()) : (i3 > -1 || o) && (i3 > -1 && (e.docView.markDirty(i3, s), uh$1(e)), this.handleDOMChange(i3, s, a, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || kt$1(e), this.currentSelection.set(r));
|
|
29826
29826
|
}
|
|
29827
29827
|
registerMutation(e, n) {
|
|
29828
29828
|
if (n.indexOf(e.target) > -1)
|
|
@@ -29858,7 +29858,7 @@ Actual: ` + p3.attribValue
|
|
|
29858
29858
|
}
|
|
29859
29859
|
};
|
|
29860
29860
|
let Ta$1 = /* @__PURE__ */ new WeakMap(), Da$1 = false;
|
|
29861
|
-
function
|
|
29861
|
+
function uh$1(t) {
|
|
29862
29862
|
if (!Ta$1.has(t) && (Ta$1.set(t, null), ["normal", "nowrap", "pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace) !== -1)) {
|
|
29863
29863
|
if (t.requiresGeckoHackNode = Je$2, Da$1)
|
|
29864
29864
|
return;
|
|
@@ -29869,7 +29869,7 @@ Actual: ` + p3.attribValue
|
|
|
29869
29869
|
let n = e.startContainer, r = e.startOffset, o = e.endContainer, i3 = e.endOffset, s = t.domAtPos(t.state.selection.anchor);
|
|
29870
29870
|
return ln$2(s.node, s.offset, o, i3) && ([n, r, o, i3] = [o, i3, n, r]), { anchorNode: n, anchorOffset: r, focusNode: o, focusOffset: i3 };
|
|
29871
29871
|
}
|
|
29872
|
-
function
|
|
29872
|
+
function fh$1(t, e) {
|
|
29873
29873
|
if (e.getComposedRanges) {
|
|
29874
29874
|
let o = e.getComposedRanges(t.root)[0];
|
|
29875
29875
|
if (o)
|
|
@@ -29881,7 +29881,7 @@ Actual: ` + p3.attribValue
|
|
|
29881
29881
|
}
|
|
29882
29882
|
return t.dom.addEventListener("beforeinput", r, true), document.execCommand("indent"), t.dom.removeEventListener("beforeinput", r, true), n ? Na$1(t, n) : null;
|
|
29883
29883
|
}
|
|
29884
|
-
function
|
|
29884
|
+
function ph$1(t, e) {
|
|
29885
29885
|
for (let n = e.parentNode; n && n != t.dom; n = n.parentNode) {
|
|
29886
29886
|
let r = t.docView.nearestDesc(n, true);
|
|
29887
29887
|
if (r && r.node.isBlock)
|
|
@@ -29889,7 +29889,7 @@ Actual: ` + p3.attribValue
|
|
|
29889
29889
|
}
|
|
29890
29890
|
return null;
|
|
29891
29891
|
}
|
|
29892
|
-
function
|
|
29892
|
+
function hh$1(t, e, n) {
|
|
29893
29893
|
let { node: r, fromOffset: o, toOffset: i3, from: s, to: a } = t.docView.parseRange(e, n), l = t.domSelectionRange(), c3, d = l.anchorNode;
|
|
29894
29894
|
if (d && t.dom.contains(d.nodeType == 1 ? d : d.parentNode) && (c3 = [{ node: d, offset: l.anchorOffset }], Io$1(l) || c3.push({ node: l.focusNode, offset: l.focusOffset })), be$1 && t.input.lastKeyCode === 8)
|
|
29895
29895
|
for (let g = i3; g > o; g--) {
|
|
@@ -29909,7 +29909,7 @@ Actual: ` + p3.attribValue
|
|
|
29909
29909
|
to: i3,
|
|
29910
29910
|
preserveWhitespace: p3.parent.type.whitespace == "pre" ? "full" : true,
|
|
29911
29911
|
findPositions: c3,
|
|
29912
|
-
ruleFromNode:
|
|
29912
|
+
ruleFromNode: mh$1,
|
|
29913
29913
|
context: p3
|
|
29914
29914
|
});
|
|
29915
29915
|
if (c3 && c3[0].pos != null) {
|
|
@@ -29918,7 +29918,7 @@ Actual: ` + p3.attribValue
|
|
|
29918
29918
|
}
|
|
29919
29919
|
return { doc: m, sel: h3, from: s, to: a };
|
|
29920
29920
|
}
|
|
29921
|
-
function
|
|
29921
|
+
function mh$1(t) {
|
|
29922
29922
|
let e = t.pmViewDesc;
|
|
29923
29923
|
if (e)
|
|
29924
29924
|
return e.parseRule();
|
|
@@ -29932,8 +29932,8 @@ Actual: ` + p3.attribValue
|
|
|
29932
29932
|
return { ignore: true };
|
|
29933
29933
|
return null;
|
|
29934
29934
|
}
|
|
29935
|
-
const
|
|
29936
|
-
function
|
|
29935
|
+
const gh$1 = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;
|
|
29936
|
+
function yh$1(t, e, n, r, o) {
|
|
29937
29937
|
let i3 = t.input.compositionPendingChanges || (t.composing ? t.input.compositionID : 0);
|
|
29938
29938
|
if (t.input.compositionPendingChanges = 0, e < 0) {
|
|
29939
29939
|
let x = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, z = gs(t, x);
|
|
@@ -29947,10 +29947,10 @@ Actual: ` + p3.attribValue
|
|
|
29947
29947
|
}
|
|
29948
29948
|
let s = t.state.doc.resolve(e), a = s.sharedDepth(n);
|
|
29949
29949
|
e = s.before(a + 1), n = t.state.doc.resolve(n).after(a + 1);
|
|
29950
|
-
let l = t.state.selection, c3 =
|
|
29950
|
+
let l = t.state.selection, c3 = hh$1(t, e, n), d = t.state.doc, u = d.slice(c3.from, c3.to), f3, p3;
|
|
29951
29951
|
t.input.lastKeyCode === 8 && Date.now() - 100 < t.input.lastKeyCodeTime ? (f3 = t.state.selection.to, p3 = "end") : (f3 = t.state.selection.from, p3 = "start"), t.input.lastKeyCode = null;
|
|
29952
|
-
let h3 =
|
|
29953
|
-
if (h3 && t.input.domChangeCount++, (Dn$2 && t.input.lastIOSEnter > Date.now() - 225 || bt$1) && o.some((x) => x.nodeType == 1 && !
|
|
29952
|
+
let h3 = vh$1(u.content, c3.doc.content, c3.from, f3, p3);
|
|
29953
|
+
if (h3 && t.input.domChangeCount++, (Dn$2 && t.input.lastIOSEnter > Date.now() - 225 || bt$1) && o.some((x) => x.nodeType == 1 && !gh$1.test(x.nodeName)) && (!h3 || h3.endA >= h3.endB) && t.someProp("handleKeyDown", (x) => x(t, Gt$2(13, "Enter")))) {
|
|
29954
29954
|
t.input.lastIOSEnter = 0;
|
|
29955
29955
|
return;
|
|
29956
29956
|
}
|
|
@@ -29973,7 +29973,7 @@ Actual: ` + p3.attribValue
|
|
|
29973
29973
|
t.input.lastIOSEnter = 0;
|
|
29974
29974
|
return;
|
|
29975
29975
|
}
|
|
29976
|
-
if (t.state.selection.anchor > h3.start &&
|
|
29976
|
+
if (t.state.selection.anchor > h3.start && wh$1(d, h3.start, h3.endA, m, g) && t.someProp("handleKeyDown", (x) => x(t, Gt$2(8, "Backspace")))) {
|
|
29977
29977
|
bt$1 && be$1 && t.domObserver.suppressSelectionUpdates();
|
|
29978
29978
|
return;
|
|
29979
29979
|
}
|
|
@@ -29988,7 +29988,7 @@ Actual: ` + p3.attribValue
|
|
|
29988
29988
|
Oe$1 && Lt$1 <= 11 && m.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => kt$1(t), 20)), k = t.state.tr.delete(y, S), M3 = d.resolve(h3.start).marksAcross(d.resolve(h3.endA));
|
|
29989
29989
|
else if (
|
|
29990
29990
|
// Adding or removing a mark
|
|
29991
|
-
h3.endA == h3.endB && (L3 =
|
|
29991
|
+
h3.endA == h3.endB && (L3 = bh$1(m.parent.content.cut(m.parentOffset, g.parentOffset), b.parent.content.cut(b.parentOffset, h3.endA - b.start())))
|
|
29992
29992
|
)
|
|
29993
29993
|
k = t.state.tr, L3.type == "add" ? k.addMark(y, S, L3.mark) : k.removeMark(y, S, L3.mark);
|
|
29994
29994
|
else if (m.parent.child(m.index()).isText && m.index() == g.index() - (g.textOffset ? 0 : 1)) {
|
|
@@ -30007,7 +30007,7 @@ Actual: ` + p3.attribValue
|
|
|
30007
30007
|
function Ea$1(t, e, n) {
|
|
30008
30008
|
return Math.max(n.anchor, n.head) > e.content.size ? null : ys(t, e.resolve(n.anchor), e.resolve(n.head));
|
|
30009
30009
|
}
|
|
30010
|
-
function
|
|
30010
|
+
function bh$1(t, e) {
|
|
30011
30011
|
let n = t.firstChild.marks, r = e.firstChild.marks, o = n, i3 = r, s, a, l;
|
|
30012
30012
|
for (let d = 0; d < r.length; d++)
|
|
30013
30013
|
o = r[d].removeFromSet(o);
|
|
@@ -30025,7 +30025,7 @@ Actual: ` + p3.attribValue
|
|
|
30025
30025
|
if (Z.from(c3).eq(t))
|
|
30026
30026
|
return { mark: a, type: s };
|
|
30027
30027
|
}
|
|
30028
|
-
function
|
|
30028
|
+
function wh$1(t, e, n, r, o) {
|
|
30029
30029
|
if (
|
|
30030
30030
|
// The content must have shrunk
|
|
30031
30031
|
n - e <= o.pos - r.pos || // newEnd must point directly at or after the end of the block that newStart points into
|
|
@@ -30053,7 +30053,7 @@ Actual: ` + p3.attribValue
|
|
|
30053
30053
|
}
|
|
30054
30054
|
return o;
|
|
30055
30055
|
}
|
|
30056
|
-
function
|
|
30056
|
+
function vh$1(t, e, n, r, o) {
|
|
30057
30057
|
let i3 = t.findDiffStart(e, n);
|
|
30058
30058
|
if (i3 == null)
|
|
30059
30059
|
return null;
|
|
@@ -30086,7 +30086,7 @@ Actual: ` + p3.attribValue
|
|
|
30086
30086
|
added to the document.
|
|
30087
30087
|
*/
|
|
30088
30088
|
constructor(e, n) {
|
|
30089
|
-
this._root = null, this.focused = false, this.trackWrites = null, this.mounted = false, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new
|
|
30089
|
+
this._root = null, this.focused = false, this.trackWrites = null, this.mounted = false, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new zp(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = false, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(Ba$1), 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 = true)), this.editable = La$1(this), Ra$1(this), this.nodeViews = Fa$1(this), this.docView = pa$1(this.state.doc, Pa$1(this), ti$1(this), this.dom, this), this.domObserver = new dh$1(this, (r, o, i3, s) => yh$1(this, r, o, i3, s)), this.domObserver.start(), $p$1(this), this.updatePluginViews();
|
|
30090
30090
|
}
|
|
30091
30091
|
/**
|
|
30092
30092
|
Holds `true` when a
|
|
@@ -30146,22 +30146,22 @@ Actual: ` + p3.attribValue
|
|
|
30146
30146
|
let a = o.plugins != e.plugins || this._props.plugins != n.plugins;
|
|
30147
30147
|
if (a || this._props.plugins != n.plugins || this._props.nodeViews != n.nodeViews) {
|
|
30148
30148
|
let p3 = Fa$1(this);
|
|
30149
|
-
|
|
30149
|
+
Ch$1(p3, this.nodeViews) && (this.nodeViews = p3, i3 = true);
|
|
30150
30150
|
}
|
|
30151
30151
|
(a || n.handleDOMEvents != this._props.handleDOMEvents) && Ti$1(this), this.editable = La$1(this), Ra$1(this);
|
|
30152
30152
|
let l = ti$1(this), c3 = Pa$1(this), d = o.plugins != e.plugins && !o.doc.eq(e.doc) ? "reset" : e.scrollToSelection > o.scrollToSelection ? "to selection" : "preserve", u = i3 || !this.docView.matchesNode(e.doc, c3, l);
|
|
30153
30153
|
(u || !e.selection.eq(o.selection)) && (s = true);
|
|
30154
|
-
let f3 = d == "preserve" && s && this.dom.style.overflowAnchor == null &&
|
|
30154
|
+
let f3 = d == "preserve" && s && this.dom.style.overflowAnchor == null && ep$1(this);
|
|
30155
30155
|
if (s) {
|
|
30156
30156
|
this.domObserver.stop();
|
|
30157
|
-
let p3 = u && (Oe$1 || be$1) && !this.composing && !o.selection.empty && !e.selection.empty &&
|
|
30157
|
+
let p3 = u && (Oe$1 || be$1) && !this.composing && !o.selection.empty && !e.selection.empty && kh$1(o.selection, e.selection);
|
|
30158
30158
|
if (u) {
|
|
30159
30159
|
let h3 = be$1 ? this.trackWrites = this.domSelectionRange().focusNode : null;
|
|
30160
|
-
this.composing && (this.input.compositionNode =
|
|
30160
|
+
this.composing && (this.input.compositionNode = Qp(this)), (i3 || !this.docView.update(e.doc, c3, l, this)) && (this.docView.updateOuterDeco(c3), this.docView.destroy(), this.docView = pa$1(e.doc, c3, l, this.dom, this)), h3 && !this.trackWrites && (p3 = true);
|
|
30161
30161
|
}
|
|
30162
|
-
p3 || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) &&
|
|
30162
|
+
p3 || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && xp$1(this)) ? kt$1(this, p3) : (wc$1(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
|
|
30163
30163
|
}
|
|
30164
|
-
this.updatePluginViews(o), !((r = this.dragging) === null || r === void 0) && r.node && !o.doc.eq(e.doc) && this.updateDraggedNode(this.dragging, o), d == "reset" ? this.dom.scrollTop = 0 : d == "to selection" ? this.scrollToSelection() : f3 &&
|
|
30164
|
+
this.updatePluginViews(o), !((r = this.dragging) === null || r === void 0) && r.node && !o.doc.eq(e.doc) && this.updateDraggedNode(this.dragging, o), d == "reset" ? this.dom.scrollTop = 0 : d == "to selection" ? this.scrollToSelection() : f3 && tp$1(f3);
|
|
30165
30165
|
}
|
|
30166
30166
|
/**
|
|
30167
30167
|
@internal
|
|
@@ -30248,7 +30248,7 @@ Actual: ` + p3.attribValue
|
|
|
30248
30248
|
Focus the editor.
|
|
30249
30249
|
*/
|
|
30250
30250
|
focus() {
|
|
30251
|
-
this.domObserver.stop(), this.editable &&
|
|
30251
|
+
this.domObserver.stop(), this.editable && np$1(this.dom), kt$1(this), this.domObserver.start();
|
|
30252
30252
|
}
|
|
30253
30253
|
/**
|
|
30254
30254
|
Get the document root in which the editor exists. This will
|
|
@@ -30282,7 +30282,7 @@ Actual: ` + p3.attribValue
|
|
|
30282
30282
|
the top level, not in any node.
|
|
30283
30283
|
*/
|
|
30284
30284
|
posAtCoords(e) {
|
|
30285
|
-
return
|
|
30285
|
+
return ap$1(this, e);
|
|
30286
30286
|
}
|
|
30287
30287
|
/**
|
|
30288
30288
|
Returns the viewport rectangle at a given document position.
|
|
@@ -30347,7 +30347,7 @@ Actual: ` + p3.attribValue
|
|
|
30347
30347
|
pass a different state.
|
|
30348
30348
|
*/
|
|
30349
30349
|
endOfTextblock(e, n) {
|
|
30350
|
-
return
|
|
30350
|
+
return fp$1(this, n || this.state, e);
|
|
30351
30351
|
}
|
|
30352
30352
|
/**
|
|
30353
30353
|
Run the editor's paste logic with the given HTML string. The
|
|
@@ -30379,7 +30379,7 @@ Actual: ` + p3.attribValue
|
|
|
30379
30379
|
views](https://prosemirror.net/docs/ref/#view.NodeView).
|
|
30380
30380
|
*/
|
|
30381
30381
|
destroy() {
|
|
30382
|
-
this.docView && (
|
|
30382
|
+
this.docView && (Vp(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], ti$1(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, jf$1());
|
|
30383
30383
|
}
|
|
30384
30384
|
/**
|
|
30385
30385
|
This is true when the view has been
|
|
@@ -30393,7 +30393,7 @@ Actual: ` + p3.attribValue
|
|
|
30393
30393
|
Used for testing.
|
|
30394
30394
|
*/
|
|
30395
30395
|
dispatchEvent(e) {
|
|
30396
|
-
return
|
|
30396
|
+
return jp(this, e);
|
|
30397
30397
|
}
|
|
30398
30398
|
/**
|
|
30399
30399
|
Dispatch a transaction. Will call
|
|
@@ -30413,7 +30413,7 @@ Actual: ` + p3.attribValue
|
|
|
30413
30413
|
*/
|
|
30414
30414
|
domSelectionRange() {
|
|
30415
30415
|
let e = this.domSelection();
|
|
30416
|
-
return e ? xe$1 && this.root.nodeType === 11 &&
|
|
30416
|
+
return e ? xe$1 && this.root.nodeType === 11 && Xf$1(this.dom.ownerDocument) == this.dom && fh$1(this, e) || e : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
|
|
30417
30417
|
}
|
|
30418
30418
|
/**
|
|
30419
30419
|
@internal
|
|
@@ -30440,7 +30440,7 @@ Actual: ` + p3.attribValue
|
|
|
30440
30440
|
function La$1(t) {
|
|
30441
30441
|
return !t.someProp("editable", (e) => e(t.state) === false);
|
|
30442
30442
|
}
|
|
30443
|
-
function
|
|
30443
|
+
function kh$1(t, e) {
|
|
30444
30444
|
let n = Math.min(t.$anchor.sharedDepth(t.head), e.$anchor.sharedDepth(e.head));
|
|
30445
30445
|
return t.$anchor.start(n) != e.$anchor.start(n);
|
|
30446
30446
|
}
|
|
@@ -30452,7 +30452,7 @@ Actual: ` + p3.attribValue
|
|
|
30452
30452
|
}
|
|
30453
30453
|
return t.someProp("nodeViews", n), t.someProp("markViews", n), e;
|
|
30454
30454
|
}
|
|
30455
|
-
function
|
|
30455
|
+
function Ch$1(t, e) {
|
|
30456
30456
|
let n = 0, r = 0;
|
|
30457
30457
|
for (let o in t) {
|
|
30458
30458
|
if (t[o] != e[o])
|
|
@@ -30467,7 +30467,7 @@ Actual: ` + p3.attribValue
|
|
|
30467
30467
|
if (t.spec.state || t.spec.filterTransaction || t.spec.appendTransaction)
|
|
30468
30468
|
throw new RangeError("Plugins passed directly to the view must not have a state component");
|
|
30469
30469
|
}
|
|
30470
|
-
const hr$1 = Math.floor,
|
|
30470
|
+
const hr$1 = Math.floor, Sh$1 = Math.abs, _t = (t, e) => t < e ? t : e, Nn$2 = (t, e) => t > e ? t : e, xh$1 = (t) => t !== 0 ? t < 0 : 1 / t < 0, Mh$1 = 64, mr$1 = 128, Ah$1 = 1 << 29, _a$1 = 63, nr$1 = 127, Oh$1 = 2147483647, Th$1 = Number.isInteger || ((t) => typeof t == "number" && isFinite(t) && hr$1(t) === t), Dh$1 = () => /* @__PURE__ */ new Set(), Nh$1 = Array.isArray, Eh$1 = String.fromCharCode, Ih$1 = (t) => t.toLowerCase(), Ph$1 = /^\s*/g, Rh$1 = (t) => t.replace(Ph$1, ""), Lh$1 = /([A-Z])/g, za$1 = (t, e) => Rh$1(t.replace(Lh$1, (n) => `${e}${Ih$1(n)}`)), Fh$1 = (t) => {
|
|
30471
30471
|
const e = unescape(encodeURIComponent(t)), n = e.length, r = new Uint8Array(n);
|
|
30472
30472
|
for (let o = 0; o < n; o++)
|
|
30473
30473
|
r[o] = /** @type {number} */
|
|
@@ -30476,31 +30476,31 @@ Actual: ` + p3.attribValue
|
|
|
30476
30476
|
}, gr$1 = (
|
|
30477
30477
|
/** @type {TextEncoder} */
|
|
30478
30478
|
typeof TextEncoder < "u" ? new TextEncoder() : null
|
|
30479
|
-
),
|
|
30479
|
+
), Bh$1 = (t) => gr$1.encode(t), _h$1 = gr$1 ? Bh$1 : Fh$1;
|
|
30480
30480
|
let ri = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8", { fatal: true, ignoreBOM: true });
|
|
30481
30481
|
ri && ri.decode(new Uint8Array()).length === 1 && (ri = null);
|
|
30482
|
-
let $
|
|
30482
|
+
let zh$1 = class zh {
|
|
30483
30483
|
constructor() {
|
|
30484
30484
|
this.cpos = 0, this.cbuf = new Uint8Array(100), this.bufs = [];
|
|
30485
30485
|
}
|
|
30486
30486
|
};
|
|
30487
|
-
const
|
|
30488
|
-
const e =
|
|
30489
|
-
return t(e),
|
|
30490
|
-
},
|
|
30487
|
+
const $h$1 = () => new zh$1(), Vh$1 = (t) => {
|
|
30488
|
+
const e = $h$1();
|
|
30489
|
+
return t(e), jh$1(e);
|
|
30490
|
+
}, Hh$1 = (t) => {
|
|
30491
30491
|
let e = t.cpos;
|
|
30492
30492
|
for (let n = 0; n < t.bufs.length; n++)
|
|
30493
30493
|
e += t.bufs[n].length;
|
|
30494
30494
|
return e;
|
|
30495
|
-
},
|
|
30496
|
-
const e = new Uint8Array(
|
|
30495
|
+
}, jh$1 = (t) => {
|
|
30496
|
+
const e = new Uint8Array(Hh$1(t));
|
|
30497
30497
|
let n = 0;
|
|
30498
30498
|
for (let r = 0; r < t.bufs.length; r++) {
|
|
30499
30499
|
const o = t.bufs[r];
|
|
30500
30500
|
e.set(o, n), n += o.length;
|
|
30501
30501
|
}
|
|
30502
30502
|
return e.set(new Uint8Array(t.cbuf.buffer, 0, t.cpos), n), e;
|
|
30503
|
-
},
|
|
30503
|
+
}, Wh$1 = (t, e) => {
|
|
30504
30504
|
const n = t.cbuf.length;
|
|
30505
30505
|
n - t.cpos < e && (t.bufs.push(new Uint8Array(t.cbuf.buffer, 0, t.cpos)), t.cbuf = new Uint8Array(Nn$2(n, e) * 2), t.cpos = 0);
|
|
30506
30506
|
}, pe$1 = (t, e) => {
|
|
@@ -30510,19 +30510,19 @@ Actual: ` + p3.attribValue
|
|
|
30510
30510
|
for (; e > nr$1; )
|
|
30511
30511
|
pe$1(t, mr$1 | nr$1 & e), e = hr$1(e / 128);
|
|
30512
30512
|
pe$1(t, nr$1 & e);
|
|
30513
|
-
},
|
|
30514
|
-
const n =
|
|
30515
|
-
for (n && (e = -e), pe$1(t, (e > _a$1 ? mr$1 : 0) | (n ?
|
|
30513
|
+
}, Uh$1 = (t, e) => {
|
|
30514
|
+
const n = xh$1(e);
|
|
30515
|
+
for (n && (e = -e), pe$1(t, (e > _a$1 ? mr$1 : 0) | (n ? Mh$1 : 0) | _a$1 & e), e = hr$1(e / 64); e > 0; )
|
|
30516
30516
|
pe$1(t, (e > nr$1 ? mr$1 : 0) | nr$1 & e), e = hr$1(e / 128);
|
|
30517
|
-
}, Di$1 = new Uint8Array(3e4),
|
|
30518
|
-
if (e.length <
|
|
30517
|
+
}, Di$1 = new Uint8Array(3e4), qh$1 = Di$1.length / 3, Kh$1 = (t, e) => {
|
|
30518
|
+
if (e.length < qh$1) {
|
|
30519
30519
|
const n = gr$1.encodeInto(e, Di$1).written || 0;
|
|
30520
30520
|
yr$1(t, n);
|
|
30521
30521
|
for (let r = 0; r < n; r++)
|
|
30522
30522
|
pe$1(t, Di$1[r]);
|
|
30523
30523
|
} else
|
|
30524
|
-
zc$1(t,
|
|
30525
|
-
},
|
|
30524
|
+
zc$1(t, _h$1(e));
|
|
30525
|
+
}, Xh$1 = (t, e) => {
|
|
30526
30526
|
const n = unescape(encodeURIComponent(e)), r = n.length;
|
|
30527
30527
|
yr$1(t, r);
|
|
30528
30528
|
for (let o = 0; o < r; o++)
|
|
@@ -30532,33 +30532,33 @@ Actual: ` + p3.attribValue
|
|
|
30532
30532
|
n.codePointAt(o)
|
|
30533
30533
|
);
|
|
30534
30534
|
}, $a$1 = gr$1 && /** @type {any} */
|
|
30535
|
-
gr$1.encodeInto ?
|
|
30535
|
+
gr$1.encodeInto ? Kh$1 : Xh$1, Jh$1 = (t, e) => {
|
|
30536
30536
|
const n = t.cbuf.length, r = t.cpos, o = _t(n - r, e.length), i3 = e.length - o;
|
|
30537
30537
|
t.cbuf.set(e.subarray(0, o), r), t.cpos += o, i3 > 0 && (t.bufs.push(t.cbuf), t.cbuf = new Uint8Array(Nn$2(n * 2, i3)), t.cbuf.set(e.subarray(o)), t.cpos = i3);
|
|
30538
30538
|
}, zc$1 = (t, e) => {
|
|
30539
|
-
yr$1(t, e.byteLength),
|
|
30539
|
+
yr$1(t, e.byteLength), Jh$1(t, e);
|
|
30540
30540
|
}, xs = (t, e) => {
|
|
30541
|
-
|
|
30541
|
+
Wh$1(t, e);
|
|
30542
30542
|
const n = new DataView(t.cbuf.buffer, t.cpos, e);
|
|
30543
30543
|
return t.cpos += e, n;
|
|
30544
|
-
},
|
|
30544
|
+
}, Yh$1 = (t, e) => xs(t, 4).setFloat32(0, e, false), Gh$1 = (t, e) => xs(t, 8).setFloat64(0, e, false), Zh$1 = (t, e) => (
|
|
30545
30545
|
/** @type {any} */
|
|
30546
30546
|
xs(t, 8).setBigInt64(0, e, false)
|
|
30547
|
-
), Va$1 = new DataView(new ArrayBuffer(4)),
|
|
30547
|
+
), Va$1 = new DataView(new ArrayBuffer(4)), Qh$1 = (t) => (Va$1.setFloat32(0, t), Va$1.getFloat32(0) === t), Ni$1 = (t, e) => {
|
|
30548
30548
|
switch (typeof e) {
|
|
30549
30549
|
case "string":
|
|
30550
30550
|
pe$1(t, 119), $a$1(t, e);
|
|
30551
30551
|
break;
|
|
30552
30552
|
case "number":
|
|
30553
|
-
|
|
30553
|
+
Th$1(e) && Sh$1(e) <= Oh$1 ? (pe$1(t, 125), Uh$1(t, e)) : Qh$1(e) ? (pe$1(t, 124), Yh$1(t, e)) : (pe$1(t, 123), Gh$1(t, e));
|
|
30554
30554
|
break;
|
|
30555
30555
|
case "bigint":
|
|
30556
|
-
pe$1(t, 122),
|
|
30556
|
+
pe$1(t, 122), Zh$1(t, e);
|
|
30557
30557
|
break;
|
|
30558
30558
|
case "object":
|
|
30559
30559
|
if (e === null)
|
|
30560
30560
|
pe$1(t, 126);
|
|
30561
|
-
else if (
|
|
30561
|
+
else if (Nh$1(e)) {
|
|
30562
30562
|
pe$1(t, 117), yr$1(t, e.length);
|
|
30563
30563
|
for (let n = 0; n < e.length; n++)
|
|
30564
30564
|
Ni$1(t, e[n]);
|
|
@@ -30580,19 +30580,19 @@ Actual: ` + p3.attribValue
|
|
|
30580
30580
|
default:
|
|
30581
30581
|
pe$1(t, 127);
|
|
30582
30582
|
}
|
|
30583
|
-
}, $c$1 = (t) => new Error(t),
|
|
30583
|
+
}, $c$1 = (t) => new Error(t), em = () => {
|
|
30584
30584
|
throw $c$1("Method unimplemented");
|
|
30585
30585
|
}, Vc$1 = () => {
|
|
30586
30586
|
throw $c$1("Unexpected case");
|
|
30587
30587
|
}, oo$2 = () => /* @__PURE__ */ new Map(), Hc$1 = (t, e, n) => {
|
|
30588
30588
|
let r = t.get(e);
|
|
30589
30589
|
return r === void 0 && t.set(e, r = n()), r;
|
|
30590
|
-
},
|
|
30590
|
+
}, tm = Object.keys, nm = (t, e) => {
|
|
30591
30591
|
for (const n in t)
|
|
30592
30592
|
if (!e(t[n], n))
|
|
30593
30593
|
return false;
|
|
30594
30594
|
return true;
|
|
30595
|
-
},
|
|
30595
|
+
}, rm = (t, e) => e.includes(t), om = () => {
|
|
30596
30596
|
let t = true;
|
|
30597
30597
|
return (e, n) => {
|
|
30598
30598
|
if (t) {
|
|
@@ -30604,19 +30604,19 @@ Actual: ` + p3.attribValue
|
|
|
30604
30604
|
}
|
|
30605
30605
|
} else n !== void 0 && n();
|
|
30606
30606
|
};
|
|
30607
|
-
},
|
|
30607
|
+
}, im = /[\uD800-\uDBFF]/, sm = /[\uDC00-\uDFFF]/, am = (t, e) => {
|
|
30608
30608
|
let n = 0, r = 0;
|
|
30609
30609
|
for (; n < t.length && n < e.length && t[n] === e[n]; )
|
|
30610
30610
|
n++;
|
|
30611
|
-
for (n > 0 &&
|
|
30611
|
+
for (n > 0 && im.test(t[n - 1]) && n--; r + n < t.length && r + n < e.length && t[t.length - r - 1] === e[e.length - r - 1]; )
|
|
30612
30612
|
r++;
|
|
30613
|
-
return r > 0 &&
|
|
30613
|
+
return r > 0 && sm.test(t[t.length - r]) && r--, {
|
|
30614
30614
|
index: n,
|
|
30615
30615
|
remove: t.length - n - r,
|
|
30616
30616
|
insert: e.slice(n, e.length - r)
|
|
30617
30617
|
};
|
|
30618
|
-
},
|
|
30619
|
-
class
|
|
30618
|
+
}, lm = am, te = new xp$2("y-sync"), zt$2 = new xp$2("y-undo"), qr$1 = new xp$2("yjs-cursor"), cm = Math.random, dm = (t) => t[hr$1(cm() * t.length)], Ha$1 = (t) => t === void 0 ? null : t;
|
|
30619
|
+
class um {
|
|
30620
30620
|
constructor() {
|
|
30621
30621
|
this.map = /* @__PURE__ */ new Map();
|
|
30622
30622
|
}
|
|
@@ -30634,14 +30634,14 @@ Actual: ` + p3.attribValue
|
|
|
30634
30634
|
return this.map.get(e);
|
|
30635
30635
|
}
|
|
30636
30636
|
}
|
|
30637
|
-
let jc$1 = new
|
|
30637
|
+
let jc$1 = new um(), fm = true;
|
|
30638
30638
|
try {
|
|
30639
|
-
typeof localStorage < "u" && localStorage && (jc$1 = localStorage,
|
|
30639
|
+
typeof localStorage < "u" && localStorage && (jc$1 = localStorage, fm = false);
|
|
30640
30640
|
} catch {
|
|
30641
30641
|
}
|
|
30642
|
-
const
|
|
30642
|
+
const pm = jc$1, En$1 = typeof he$2 < "u" && he$2.release && /node|io\.js/.test(he$2.release.name) && Object.prototype.toString.call(typeof he$2 < "u" ? he$2 : 0) === "[object process]", Wc$1 = typeof window < "u" && typeof document < "u" && !En$1;
|
|
30643
30643
|
let Ze$2;
|
|
30644
|
-
const
|
|
30644
|
+
const hm = () => {
|
|
30645
30645
|
if (Ze$2 === void 0)
|
|
30646
30646
|
if (En$1) {
|
|
30647
30647
|
Ze$2 = oo$2();
|
|
@@ -30659,17 +30659,17 @@ Actual: ` + p3.attribValue
|
|
|
30659
30659
|
}
|
|
30660
30660
|
})) : Ze$2 = oo$2();
|
|
30661
30661
|
return Ze$2;
|
|
30662
|
-
}, Ei$1 = (t) =>
|
|
30662
|
+
}, Ei$1 = (t) => hm().has(t), Ii$1 = (t) => Ha$1(En$1 ? he$2.env[t.toUpperCase().replaceAll("-", "_")] : pm.getItem(t)), Uc$1 = (t) => Ei$1("--" + t) || Ii$1(t) !== null;
|
|
30663
30663
|
Uc$1("production");
|
|
30664
|
-
const
|
|
30665
|
-
|
|
30664
|
+
const mm = En$1 && rm(he$2.env.FORCE_COLOR, ["true", "1", "2"]);
|
|
30665
|
+
mm || !Ei$1("--no-colors") && // @todo deprecate --no-colors
|
|
30666
30666
|
!Uc$1("no-color") && (!En$1 || he$2.stdout.isTTY) && (!En$1 || Ei$1("--color") || Ii$1("COLORTERM") !== null || (Ii$1("TERM") || "").includes("color"));
|
|
30667
|
-
const
|
|
30667
|
+
const gm = (
|
|
30668
30668
|
/** @type {Document} */
|
|
30669
30669
|
typeof document < "u" ? document : {}
|
|
30670
30670
|
);
|
|
30671
30671
|
typeof DOMParser < "u" && new DOMParser();
|
|
30672
|
-
const
|
|
30672
|
+
const ym = (t) => class {
|
|
30673
30673
|
/**
|
|
30674
30674
|
* @param {number} timeoutId
|
|
30675
30675
|
*/
|
|
@@ -30679,7 +30679,7 @@ Actual: ` + p3.attribValue
|
|
|
30679
30679
|
destroy() {
|
|
30680
30680
|
t(this._);
|
|
30681
30681
|
}
|
|
30682
|
-
},
|
|
30682
|
+
}, bm = ym(clearTimeout), Ms = (t, e) => new bm(setTimeout(e, t)), nt$1 = (t, e) => t >>> e | t << 32 - e, wm = (t) => nt$1(t, 2) ^ nt$1(t, 13) ^ nt$1(t, 22), vm = (t) => nt$1(t, 6) ^ nt$1(t, 11) ^ nt$1(t, 25), km = (t) => nt$1(t, 7) ^ nt$1(t, 18) ^ t >>> 3, Cm = (t) => nt$1(t, 17) ^ nt$1(t, 19) ^ t >>> 10, Sm = new Uint32Array([
|
|
30683
30683
|
1116352408,
|
|
30684
30684
|
1899447441,
|
|
30685
30685
|
3049323471,
|
|
@@ -30744,7 +30744,7 @@ Actual: ` + p3.attribValue
|
|
|
30744
30744
|
2756734187,
|
|
30745
30745
|
3204031479,
|
|
30746
30746
|
3329325298
|
|
30747
|
-
]),
|
|
30747
|
+
]), xm = new Uint32Array([
|
|
30748
30748
|
1779033703,
|
|
30749
30749
|
3144134277,
|
|
30750
30750
|
1013904242,
|
|
@@ -30754,18 +30754,18 @@ Actual: ` + p3.attribValue
|
|
|
30754
30754
|
528734635,
|
|
30755
30755
|
1541459225
|
|
30756
30756
|
]);
|
|
30757
|
-
class
|
|
30757
|
+
class Mm {
|
|
30758
30758
|
constructor() {
|
|
30759
30759
|
const e = new ArrayBuffer(320);
|
|
30760
|
-
this._H = new Uint32Array(e, 0, 8), this._H.set(
|
|
30760
|
+
this._H = new Uint32Array(e, 0, 8), this._H.set(xm), this._W = new Uint32Array(e, 64, 64);
|
|
30761
30761
|
}
|
|
30762
30762
|
_updateHash() {
|
|
30763
30763
|
const e = this._H, n = this._W;
|
|
30764
30764
|
for (let u = 16; u < 64; u++)
|
|
30765
|
-
n[u] =
|
|
30765
|
+
n[u] = Cm(n[u - 2]) + n[u - 7] + km(n[u - 15]) + n[u - 16];
|
|
30766
30766
|
let r = e[0], o = e[1], i3 = e[2], s = e[3], a = e[4], l = e[5], c3 = e[6], d = e[7];
|
|
30767
30767
|
for (let u = 0, f3, p3; u < 64; u++)
|
|
30768
|
-
f3 = d +
|
|
30768
|
+
f3 = d + vm(a) + (a & l ^ ~a & c3) + Sm[u] + n[u] >>> 0, p3 = wm(r) + (r & o ^ r & i3 ^ o & i3) >>> 0, d = c3, c3 = l, l = a, a = s + f3 >>> 0, s = i3, i3 = o, o = r, r = f3 + p3 >>> 0;
|
|
30769
30769
|
e[0] += r, e[1] += o, e[2] += i3, e[3] += s, e[4] += a, e[5] += l, e[6] += c3, e[7] += d;
|
|
30770
30770
|
}
|
|
30771
30771
|
/**
|
|
@@ -30792,7 +30792,7 @@ Actual: ` + p3.attribValue
|
|
|
30792
30792
|
for (; n < e.length; o++)
|
|
30793
30793
|
for (let s = 3; s >= 0 && n < e.length; s--)
|
|
30794
30794
|
this._W[o] |= e[n++] << s * 8;
|
|
30795
|
-
r || (this._W[o - (n % 4 === 0 ? 0 : 1)] |= mr$1 << (3 - n % 4) * 8), this._W[14] = e.byteLength /
|
|
30795
|
+
r || (this._W[o - (n % 4 === 0 ? 0 : 1)] |= mr$1 << (3 - n % 4) * 8), this._W[14] = e.byteLength / Ah$1, this._W[15] = e.byteLength * 8, this._updateHash();
|
|
30796
30796
|
const i3 = new Uint8Array(32);
|
|
30797
30797
|
for (let s = 0; s < this._H.length; s++)
|
|
30798
30798
|
for (let a = 0; a < 4; a++)
|
|
@@ -30800,33 +30800,33 @@ Actual: ` + p3.attribValue
|
|
|
30800
30800
|
return i3;
|
|
30801
30801
|
}
|
|
30802
30802
|
}
|
|
30803
|
-
const
|
|
30803
|
+
const Am = (t) => new Mm().digest(t), Om = (t) => {
|
|
30804
30804
|
let e = "";
|
|
30805
30805
|
for (let n = 0; n < t.byteLength; n++)
|
|
30806
|
-
e +=
|
|
30806
|
+
e += Eh$1(t[n]);
|
|
30807
30807
|
return btoa(e);
|
|
30808
|
-
},
|
|
30808
|
+
}, Tm = (t) => Ht$2.from(t.buffer, t.byteOffset, t.byteLength).toString("base64"), Dm = Wc$1 ? Om : Tm, Nm = (t) => Vh$1((e) => Ni$1(e, t)), Em = (t) => {
|
|
30809
30809
|
for (let n = 6; n < t.length; n++)
|
|
30810
30810
|
t[n % 6] = t[n % 6] ^ t[n];
|
|
30811
30811
|
return t.slice(0, 6);
|
|
30812
|
-
},
|
|
30812
|
+
}, Im = (t) => Dm(Em(Am(Nm(t)))), Pm = () => ({
|
|
30813
30813
|
mapping: /* @__PURE__ */ new Map(),
|
|
30814
30814
|
isOMark: /* @__PURE__ */ new Map()
|
|
30815
30815
|
}), bo$1 = (t, e) => e === void 0 ? !t.deleted : e.sv.has(t.id.client) && /** @type {number} */
|
|
30816
|
-
e.sv.get(t.id.client) > t.id.clock && !T__namespace.isDeleted(e.ds, t.id),
|
|
30816
|
+
e.sv.get(t.id.client) > t.id.clock && !T__namespace.isDeleted(e.ds, t.id), Rm = [{ light: "#ecd44433", dark: "#ecd444" }], Lm = (t, e, n) => {
|
|
30817
30817
|
if (!t.has(n)) {
|
|
30818
30818
|
if (t.size < e.length) {
|
|
30819
|
-
const r =
|
|
30819
|
+
const r = Dh$1();
|
|
30820
30820
|
t.forEach((o) => r.add(o)), e = e.filter((o) => !r.has(o));
|
|
30821
30821
|
}
|
|
30822
|
-
t.set(n,
|
|
30822
|
+
t.set(n, dm(e));
|
|
30823
30823
|
}
|
|
30824
30824
|
return (
|
|
30825
30825
|
/** @type {ColorDef} */
|
|
30826
30826
|
t.get(n)
|
|
30827
30827
|
);
|
|
30828
|
-
},
|
|
30829
|
-
colors: e =
|
|
30828
|
+
}, Fm = (t, {
|
|
30829
|
+
colors: e = Rm,
|
|
30830
30830
|
colorMapping: n = /* @__PURE__ */ new Map(),
|
|
30831
30831
|
permanentUserData: r = null,
|
|
30832
30832
|
onFirstRender: o = () => {
|
|
@@ -30834,7 +30834,7 @@ Actual: ` + p3.attribValue
|
|
|
30834
30834
|
mapping: i3
|
|
30835
30835
|
} = {}) => {
|
|
30836
30836
|
let s = false;
|
|
30837
|
-
const a = new
|
|
30837
|
+
const a = new _m(t, i3), l = new bp$2({
|
|
30838
30838
|
props: {
|
|
30839
30839
|
editable: (c3) => {
|
|
30840
30840
|
const d = te.getState(c3);
|
|
@@ -30909,7 +30909,7 @@ Actual: ` + p3.attribValue
|
|
|
30909
30909
|
})
|
|
30910
30910
|
});
|
|
30911
30911
|
return l;
|
|
30912
|
-
},
|
|
30912
|
+
}, Bm = (t, e, n) => {
|
|
30913
30913
|
if (e !== null && e.anchor !== null && e.head !== null)
|
|
30914
30914
|
if (e.type === "all")
|
|
30915
30915
|
t.setSelection(new at$3(t.doc));
|
|
@@ -30943,13 +30943,13 @@ Actual: ` + p3.attribValue
|
|
|
30943
30943
|
t.mapping
|
|
30944
30944
|
)
|
|
30945
30945
|
});
|
|
30946
|
-
class
|
|
30946
|
+
class _m {
|
|
30947
30947
|
/**
|
|
30948
30948
|
* @param {Y.XmlFragment} yXmlFragment The bind source
|
|
30949
30949
|
* @param {ProsemirrorMapping} mapping
|
|
30950
30950
|
*/
|
|
30951
30951
|
constructor(e, n = /* @__PURE__ */ new Map()) {
|
|
30952
|
-
this.type = e, this.prosemirrorView = null, this.mux =
|
|
30952
|
+
this.type = e, this.prosemirrorView = null, this.mux = om(), this.mapping = n, this.isOMark = /* @__PURE__ */ new Map(), this._observeFunction = this._typeChanged.bind(this), this.doc = e.doc, this.beforeTransactionSelection = null, this.beforeAllTransactions = () => {
|
|
30953
30953
|
this.beforeTransactionSelection === null && this.prosemirrorView != null && (this.beforeTransactionSelection = Pi$1(
|
|
30954
30954
|
this,
|
|
30955
30955
|
this.prosemirrorView.state
|
|
@@ -30976,7 +30976,7 @@ Actual: ` + p3.attribValue
|
|
|
30976
30976
|
if (e == null || e.anchorNode == null) return false;
|
|
30977
30977
|
const n = this.prosemirrorView._root.createRange();
|
|
30978
30978
|
n.setStart(e.anchorNode, e.anchorOffset), n.setEnd(e.focusNode, e.focusOffset), n.getClientRects().length === 0 && n.startContainer && n.collapsed && n.selectNodeContents(n.startContainer);
|
|
30979
|
-
const o = n.getBoundingClientRect(), i3 =
|
|
30979
|
+
const o = n.getBoundingClientRect(), i3 = gm.documentElement;
|
|
30980
30980
|
return o.bottom >= 0 && o.right >= 0 && o.left <= (window.innerWidth || i3.clientWidth || 0) && o.top <= (window.innerHeight || i3.clientHeight || 0);
|
|
30981
30981
|
}
|
|
30982
30982
|
/**
|
|
@@ -31063,7 +31063,7 @@ Actual: ` + p3.attribValue
|
|
|
31063
31063
|
return {
|
|
31064
31064
|
user: p3,
|
|
31065
31065
|
type: u,
|
|
31066
|
-
color:
|
|
31066
|
+
color: Lm(
|
|
31067
31067
|
r.colorMapping,
|
|
31068
31068
|
r.colors,
|
|
31069
31069
|
p3
|
|
@@ -31130,7 +31130,7 @@ Actual: ` + p3.attribValue
|
|
|
31130
31130
|
this.prosemirrorView.state.doc.content.size,
|
|
31131
31131
|
new ue(Z.from(i3), 0, 0)
|
|
31132
31132
|
);
|
|
31133
|
-
|
|
31133
|
+
Bm(s, this.beforeTransactionSelection, this), s = s.setMeta(te, { isChangeOrigin: true, isUndoRedoOperation: n.origin instanceof T__namespace.UndoManager }), this.beforeTransactionSelection !== null && this._isLocalCursorInView() && s.scrollIntoView(), this.prosemirrorView.dispatch(s);
|
|
31134
31134
|
});
|
|
31135
31135
|
}
|
|
31136
31136
|
/**
|
|
@@ -31170,7 +31170,7 @@ Actual: ` + p3.attribValue
|
|
|
31170
31170
|
o,
|
|
31171
31171
|
i3
|
|
31172
31172
|
);
|
|
31173
|
-
throw
|
|
31173
|
+
throw em();
|
|
31174
31174
|
}
|
|
31175
31175
|
return s;
|
|
31176
31176
|
}, rr$1 = (t, e, n, r, o, i3) => {
|
|
@@ -31196,7 +31196,7 @@ Actual: ` + p3.attribValue
|
|
|
31196
31196
|
]), c3.doc.transact((u) => {
|
|
31197
31197
|
c3._item.delete(u);
|
|
31198
31198
|
}));
|
|
31199
|
-
const d =
|
|
31199
|
+
const d = zm(
|
|
31200
31200
|
l,
|
|
31201
31201
|
e,
|
|
31202
31202
|
n,
|
|
@@ -31236,12 +31236,12 @@ Actual: ` + p3.attribValue
|
|
|
31236
31236
|
t._item.delete(c3);
|
|
31237
31237
|
}, te), n.mapping.delete(t), null;
|
|
31238
31238
|
}
|
|
31239
|
-
},
|
|
31239
|
+
}, zm = (t, e, n, r, o, i3) => {
|
|
31240
31240
|
const s = [], a = t.toDelta(r, o, i3);
|
|
31241
31241
|
try {
|
|
31242
31242
|
for (let l = 0; l < a.length; l++) {
|
|
31243
31243
|
const c3 = a[l];
|
|
31244
|
-
s.push(e.text(c3.insert,
|
|
31244
|
+
s.push(e.text(c3.insert, Um(c3.attributes, e)));
|
|
31245
31245
|
}
|
|
31246
31246
|
} catch {
|
|
31247
31247
|
return t.doc.transact((c3) => {
|
|
@@ -31249,14 +31249,14 @@ Actual: ` + p3.attribValue
|
|
|
31249
31249
|
}, te), null;
|
|
31250
31250
|
}
|
|
31251
31251
|
return s;
|
|
31252
|
-
},
|
|
31252
|
+
}, $m = (t, e) => {
|
|
31253
31253
|
const n = new T__namespace.XmlText(), r = t.map((o) => ({
|
|
31254
31254
|
// @ts-ignore
|
|
31255
31255
|
insert: o.text,
|
|
31256
31256
|
attributes: Jc$1(o.marks, e)
|
|
31257
31257
|
}));
|
|
31258
31258
|
return n.applyDelta(r), e.mapping.set(n, t), n;
|
|
31259
|
-
},
|
|
31259
|
+
}, Vm = (t, e) => {
|
|
31260
31260
|
const n = new T__namespace.XmlElement(t.type.name);
|
|
31261
31261
|
for (const r in t.attrs) {
|
|
31262
31262
|
const o = t.attrs[r];
|
|
@@ -31268,7 +31268,7 @@ Actual: ` + p3.attribValue
|
|
|
31268
31268
|
(r) => Ri$1(r, e)
|
|
31269
31269
|
)
|
|
31270
31270
|
), e.mapping.set(n, t), n;
|
|
31271
|
-
}, Ri$1 = (t, e) => t instanceof Array ?
|
|
31271
|
+
}, Ri$1 = (t, e) => t instanceof Array ? $m(t, e) : Vm(t, e), ja$1 = (t) => typeof t == "object" && t !== null, As = (t, e) => {
|
|
31272
31272
|
const n = Object.keys(t).filter((o) => t[o] !== null);
|
|
31273
31273
|
let r = n.length === Object.keys(e).filter((o) => e[o] !== null).length;
|
|
31274
31274
|
for (let o = 0; o < n.length && r; o++) {
|
|
@@ -31294,7 +31294,7 @@ Actual: ` + p3.attribValue
|
|
|
31294
31294
|
return n.length === e.length && n.every(
|
|
31295
31295
|
/** @type {(d:any,i:number) => boolean} */
|
|
31296
31296
|
(r, o) => r.insert === /** @type {any} */
|
|
31297
|
-
e[o].text &&
|
|
31297
|
+
e[o].text && tm(r.attributes || {}).length === e[o].marks.length && nm(r.attributes, (i3, s) => {
|
|
31298
31298
|
const a = Xc$1(s), l = e[o].marks;
|
|
31299
31299
|
return As(i3, l.find(
|
|
31300
31300
|
/** @param {any} mark */
|
|
@@ -31333,7 +31333,7 @@ Actual: ` + p3.attribValue
|
|
|
31333
31333
|
equalityFactor: l + c3,
|
|
31334
31334
|
foundMappedChild: d
|
|
31335
31335
|
};
|
|
31336
|
-
},
|
|
31336
|
+
}, Hm = (t) => {
|
|
31337
31337
|
let e = "", n = t._start;
|
|
31338
31338
|
const r = {};
|
|
31339
31339
|
for (; n !== null; )
|
|
@@ -31342,22 +31342,22 @@ Actual: ` + p3.attribValue
|
|
|
31342
31342
|
str: e,
|
|
31343
31343
|
nAttrs: r
|
|
31344
31344
|
};
|
|
31345
|
-
},
|
|
31345
|
+
}, jm = (t, e, n) => {
|
|
31346
31346
|
n.mapping.set(t, e);
|
|
31347
|
-
const { nAttrs: r, str: o } =
|
|
31347
|
+
const { nAttrs: r, str: o } = Hm(t), i3 = e.map((c3) => ({
|
|
31348
31348
|
insert: (
|
|
31349
31349
|
/** @type {any} */
|
|
31350
31350
|
c3.text
|
|
31351
31351
|
),
|
|
31352
31352
|
attributes: Object.assign({}, r, Jc$1(c3.marks, n))
|
|
31353
|
-
})), { insert: s, remove: a, index: l } =
|
|
31353
|
+
})), { insert: s, remove: a, index: l } = lm(
|
|
31354
31354
|
o,
|
|
31355
31355
|
i3.map((c3) => c3.insert).join("")
|
|
31356
31356
|
);
|
|
31357
31357
|
t.delete(l, a), t.insert(l, s), t.applyDelta(
|
|
31358
31358
|
i3.map((c3) => ({ retain: c3.insert.length, attributes: c3.attributes }))
|
|
31359
31359
|
);
|
|
31360
|
-
},
|
|
31360
|
+
}, Wm = /(.*)(--[a-zA-Z0-9+/=]{8})$/, Xc$1 = (t) => Wm.exec(t)?.[1] ?? t, Um = (t, e) => {
|
|
31361
31361
|
const n = [];
|
|
31362
31362
|
for (const r in t)
|
|
31363
31363
|
n.push(e.mark(Xc$1(r), t[r]));
|
|
@@ -31367,7 +31367,7 @@ Actual: ` + p3.attribValue
|
|
|
31367
31367
|
return t.forEach((r) => {
|
|
31368
31368
|
if (r.type.name !== "ychange") {
|
|
31369
31369
|
const o = Hc$1(e.isOMark, r.type, () => !r.type.excludes(r.type));
|
|
31370
|
-
n[o ? `${r.type.name}--${
|
|
31370
|
+
n[o ? `${r.type.name}--${Im(r.toJSON())}` : r.type.name] = r.attrs;
|
|
31371
31371
|
}
|
|
31372
31372
|
}), n;
|
|
31373
31373
|
}, Li$1 = (t, e, n, r) => {
|
|
@@ -31402,7 +31402,7 @@ Actual: ` + p3.attribValue
|
|
|
31402
31402
|
for (; a - c3 - d > 0 && i3 - c3 - d > 0; ) {
|
|
31403
31403
|
const f3 = s[c3], p3 = o[c3], h3 = s[a - d - 1], m = o[i3 - d - 1];
|
|
31404
31404
|
if (f3 instanceof T__namespace.XmlText && p3 instanceof Array)
|
|
31405
|
-
Kc$1(f3, p3) ||
|
|
31405
|
+
Kc$1(f3, p3) || jm(f3, p3, r), c3 += 1;
|
|
31406
31406
|
else {
|
|
31407
31407
|
let g = f3 instanceof T__namespace.XmlElement && Fi$1(f3, p3), b = h3 instanceof T__namespace.XmlElement && Fi$1(h3, m);
|
|
31408
31408
|
if (g && b) {
|
|
@@ -31450,7 +31450,7 @@ Actual: ` + p3.attribValue
|
|
|
31450
31450
|
}, te);
|
|
31451
31451
|
}, Fi$1 = (t, e) => !(e instanceof Array) && t.nodeName === e.type.name;
|
|
31452
31452
|
let or$1 = null;
|
|
31453
|
-
const
|
|
31453
|
+
const qm = () => {
|
|
31454
31454
|
const t = (
|
|
31455
31455
|
/** @type {Map<EditorView, Map<any, any>>} */
|
|
31456
31456
|
or$1
|
|
@@ -31461,8 +31461,8 @@ Actual: ` + p3.attribValue
|
|
|
31461
31461
|
r.setMeta(s, i3);
|
|
31462
31462
|
}), n.dispatch(r));
|
|
31463
31463
|
});
|
|
31464
|
-
},
|
|
31465
|
-
or$1 || (or$1 = /* @__PURE__ */ new Map(), Ms(0,
|
|
31464
|
+
}, Km = (t, e, n) => {
|
|
31465
|
+
or$1 || (or$1 = /* @__PURE__ */ new Map(), Ms(0, qm)), Hc$1(or$1, t, oo$2).set(e, n);
|
|
31466
31466
|
}, vo$2 = (t, e, n) => {
|
|
31467
31467
|
if (t === 0)
|
|
31468
31468
|
return T__namespace.createRelativePositionFromTypeIndex(e, 0, -1);
|
|
@@ -31519,10 +31519,10 @@ Actual: ` + p3.attribValue
|
|
|
31519
31519
|
if (r === null)
|
|
31520
31520
|
throw Vc$1();
|
|
31521
31521
|
if (t === 0 && r.constructor !== T__namespace.XmlText && r !== e)
|
|
31522
|
-
return
|
|
31522
|
+
return Xm(r._item.parent, r._item);
|
|
31523
31523
|
}
|
|
31524
31524
|
return T__namespace.createRelativePositionFromTypeIndex(e, e._length, -1);
|
|
31525
|
-
},
|
|
31525
|
+
}, Xm = (t, e) => {
|
|
31526
31526
|
let n = null, r = null;
|
|
31527
31527
|
return t._item === null ? r = T__namespace.findRootTypeKey(t) : n = T__namespace.createID(t._item.id.client, t._item.id.clock), new T__namespace.RelativePosition(n, r, e.id);
|
|
31528
31528
|
}, wr$1 = (t, e, n, r) => {
|
|
@@ -31571,32 +31571,32 @@ Actual: ` + p3.attribValue
|
|
|
31571
31571
|
a;
|
|
31572
31572
|
}
|
|
31573
31573
|
return s - 1;
|
|
31574
|
-
},
|
|
31574
|
+
}, Jm = (t, e) => {
|
|
31575
31575
|
const n = t.toArray().map(
|
|
31576
31576
|
(r) => rr$1(
|
|
31577
31577
|
/** @type {Y.XmlElement} */
|
|
31578
31578
|
r,
|
|
31579
31579
|
e,
|
|
31580
|
-
|
|
31580
|
+
Pm()
|
|
31581
31581
|
)
|
|
31582
31582
|
).filter((r) => r !== null);
|
|
31583
31583
|
return Z.fromArray(n);
|
|
31584
|
-
},
|
|
31584
|
+
}, Ym = (t, e) => e.topNodeType.create(null, Jm(t, e)), Gm = (t, e, n) => t !== e, Zm = (t) => {
|
|
31585
31585
|
const e = document.createElement("span");
|
|
31586
31586
|
e.classList.add("ProseMirror-yjs-cursor"), e.setAttribute("style", `border-color: ${t.color}`);
|
|
31587
31587
|
const n = document.createElement("div");
|
|
31588
31588
|
n.setAttribute("style", `background-color: ${t.color}`), n.insertBefore(document.createTextNode(t.name), null);
|
|
31589
31589
|
const r = document.createTextNode(""), o = document.createTextNode("");
|
|
31590
31590
|
return e.insertBefore(r, null), e.insertBefore(n, null), e.insertBefore(o, null), e;
|
|
31591
|
-
},
|
|
31591
|
+
}, Qm = (t) => ({
|
|
31592
31592
|
style: `background-color: ${t.color}70`,
|
|
31593
31593
|
class: "ProseMirror-yjs-selection"
|
|
31594
|
-
}),
|
|
31594
|
+
}), eg = /^#[0-9a-fA-F]{6}$/, Ua$1 = (t, e, n, r, o) => {
|
|
31595
31595
|
const i3 = te.getState(t), s = i3.doc, a = [];
|
|
31596
31596
|
return i3.snapshot != null || i3.prevSnapshot != null || i3.binding.mapping.size === 0 ? F.create(t.doc, []) : (e.getStates().forEach((l, c3) => {
|
|
31597
31597
|
if (n(s.clientID, c3, l) && l.cursor != null) {
|
|
31598
31598
|
const d = l.user || {};
|
|
31599
|
-
d.color == null ? d.color = "#ffa500" :
|
|
31599
|
+
d.color == null ? d.color = "#ffa500" : eg.test(d.color) || console.warn("A user uses an unsupported color format", d), d.name == null && (d.name = `User: ${c3}`);
|
|
31600
31600
|
let u = wr$1(
|
|
31601
31601
|
s,
|
|
31602
31602
|
i3.type,
|
|
@@ -31626,10 +31626,10 @@ Actual: ` + p3.attribValue
|
|
|
31626
31626
|
}
|
|
31627
31627
|
}
|
|
31628
31628
|
}), F.create(t.doc, a));
|
|
31629
|
-
},
|
|
31630
|
-
awarenessStateFilter: e =
|
|
31631
|
-
cursorBuilder: n =
|
|
31632
|
-
selectionBuilder: r =
|
|
31629
|
+
}, tg = (t, {
|
|
31630
|
+
awarenessStateFilter: e = Gm,
|
|
31631
|
+
cursorBuilder: n = Zm,
|
|
31632
|
+
selectionBuilder: r = Qm,
|
|
31633
31633
|
getSelection: o = (s) => s.selection
|
|
31634
31634
|
} = {}, i3 = "cursor") => new bp$2({
|
|
31635
31635
|
key: qr$1,
|
|
@@ -31659,7 +31659,7 @@ Actual: ` + p3.attribValue
|
|
|
31659
31659
|
},
|
|
31660
31660
|
view: (s) => {
|
|
31661
31661
|
const a = () => {
|
|
31662
|
-
s.docView &&
|
|
31662
|
+
s.docView && Km(s, qr$1, { awarenessUpdated: true });
|
|
31663
31663
|
}, l = () => {
|
|
31664
31664
|
const c3 = te.getState(s.state), d = t.getLocalState() || {};
|
|
31665
31665
|
if (s.hasFocus()) {
|
|
@@ -31696,21 +31696,21 @@ Actual: ` + p3.attribValue
|
|
|
31696
31696
|
}
|
|
31697
31697
|
};
|
|
31698
31698
|
}
|
|
31699
|
-
}),
|
|
31699
|
+
}), ng = (t) => {
|
|
31700
31700
|
const e = zt$2.getState(t).undoManager;
|
|
31701
31701
|
if (e != null)
|
|
31702
31702
|
return e.undo(), true;
|
|
31703
|
-
},
|
|
31703
|
+
}, rg = (t) => {
|
|
31704
31704
|
const e = zt$2.getState(t).undoManager;
|
|
31705
31705
|
if (e != null)
|
|
31706
31706
|
return e.redo(), true;
|
|
31707
|
-
},
|
|
31707
|
+
}, og = /* @__PURE__ */ new Set(["paragraph"]), ig = (t, e) => !(t instanceof T.Item) || !(t.content instanceof T.ContentType) || !(t.content.type instanceof T.Text || t.content.type instanceof T.XmlElement && e.has(t.content.type.nodeName)) || t.content.type._length === 0, sg = ({ protectedNodes: t = og, trackedOrigins: e = [], undoManager: n = null } = {}) => new bp$2({
|
|
31708
31708
|
key: zt$2,
|
|
31709
31709
|
state: {
|
|
31710
31710
|
init: (r, o) => {
|
|
31711
31711
|
const i3 = te.getState(o), s = n || new T.UndoManager(i3.type, {
|
|
31712
31712
|
trackedOrigins: new Set([te].concat(e)),
|
|
31713
|
-
deleteFilter: (a) =>
|
|
31713
|
+
deleteFilter: (a) => ig(a, t),
|
|
31714
31714
|
captureTransaction: (a) => a.meta.get("addToHistory") !== false
|
|
31715
31715
|
});
|
|
31716
31716
|
return {
|
|
@@ -31752,7 +31752,7 @@ Actual: ` + p3.attribValue
|
|
|
31752
31752
|
}
|
|
31753
31753
|
});
|
|
31754
31754
|
var et$1;
|
|
31755
|
-
class
|
|
31755
|
+
class ag {
|
|
31756
31756
|
constructor() {
|
|
31757
31757
|
ft(this, et$1, /* @__PURE__ */ new Map());
|
|
31758
31758
|
}
|
|
@@ -31875,18 +31875,18 @@ Actual: ` + p3.attribValue
|
|
|
31875
31875
|
220: "|",
|
|
31876
31876
|
221: "}",
|
|
31877
31877
|
222: '"'
|
|
31878
|
-
},
|
|
31878
|
+
}, lg = typeof navigator < "u" && /Mac/.test(navigator.platform), cg = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
|
|
31879
31879
|
for (var ge = 0; ge < 10; ge++) Vt$2[48 + ge] = Vt$2[96 + ge] = String(ge);
|
|
31880
31880
|
for (var ge = 1; ge <= 24; ge++) Vt$2[ge + 111] = "F" + ge;
|
|
31881
31881
|
for (var ge = 65; ge <= 90; ge++)
|
|
31882
31882
|
Vt$2[ge] = String.fromCharCode(ge + 32), ko$1[ge] = String.fromCharCode(ge);
|
|
31883
31883
|
for (var oi$1 in Vt$2) ko$1.hasOwnProperty(oi$1) || (ko$1[oi$1] = Vt$2[oi$1]);
|
|
31884
|
-
function
|
|
31885
|
-
var e =
|
|
31884
|
+
function dg(t) {
|
|
31885
|
+
var e = lg && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || cg && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ? ko$1 : Vt$2)[t.keyCode] || t.key || "Unidentified";
|
|
31886
31886
|
return n == "Esc" && (n = "Escape"), n == "Del" && (n = "Delete"), n == "Left" && (n = "ArrowLeft"), n == "Up" && (n = "ArrowUp"), n == "Right" && (n = "ArrowRight"), n == "Down" && (n = "ArrowDown"), n;
|
|
31887
31887
|
}
|
|
31888
|
-
const
|
|
31889
|
-
function
|
|
31888
|
+
const ug = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : false;
|
|
31889
|
+
function fg(t) {
|
|
31890
31890
|
let e = t.split(/-(?!$)/), n = e[e.length - 1];
|
|
31891
31891
|
n == "Space" && (n = " ");
|
|
31892
31892
|
let r, o, i3, s;
|
|
@@ -31901,28 +31901,28 @@ Actual: ` + p3.attribValue
|
|
|
31901
31901
|
else if (/^s(hift)?$/i.test(l))
|
|
31902
31902
|
i3 = true;
|
|
31903
31903
|
else if (/^mod$/i.test(l))
|
|
31904
|
-
|
|
31904
|
+
ug ? s = true : o = true;
|
|
31905
31905
|
else
|
|
31906
31906
|
throw new Error("Unrecognized modifier name: " + l);
|
|
31907
31907
|
}
|
|
31908
31908
|
return r && (n = "Alt-" + n), o && (n = "Ctrl-" + n), s && (n = "Meta-" + n), i3 && (n = "Shift-" + n), n;
|
|
31909
31909
|
}
|
|
31910
|
-
function
|
|
31910
|
+
function pg(t) {
|
|
31911
31911
|
let e = /* @__PURE__ */ Object.create(null);
|
|
31912
31912
|
for (let n in t)
|
|
31913
|
-
e[
|
|
31913
|
+
e[fg(n)] = t[n];
|
|
31914
31914
|
return e;
|
|
31915
31915
|
}
|
|
31916
31916
|
function ii$1(t, e, n = true) {
|
|
31917
31917
|
return e.altKey && (t = "Alt-" + t), e.ctrlKey && (t = "Ctrl-" + t), e.metaKey && (t = "Meta-" + t), n && e.shiftKey && (t = "Shift-" + t), t;
|
|
31918
31918
|
}
|
|
31919
|
-
function
|
|
31919
|
+
function hg(t) {
|
|
31920
31920
|
return new bp$2({ props: { handleKeyDown: Os(t) } });
|
|
31921
31921
|
}
|
|
31922
31922
|
function Os(t) {
|
|
31923
|
-
let e =
|
|
31923
|
+
let e = pg(t);
|
|
31924
31924
|
return function(n, r) {
|
|
31925
|
-
let o =
|
|
31925
|
+
let o = dg(r), i3, s = e[ii$1(o, r)];
|
|
31926
31926
|
if (s && s(n.state, n.dispatch, n))
|
|
31927
31927
|
return true;
|
|
31928
31928
|
if (o.length == 1 && o != " ") {
|
|
@@ -32139,11 +32139,11 @@ Actual: ` + p3.attribValue
|
|
|
32139
32139
|
}
|
|
32140
32140
|
return r;
|
|
32141
32141
|
}, ft(D, Bn$1);
|
|
32142
|
-
function
|
|
32142
|
+
function mg(t = {}) {
|
|
32143
32143
|
return Object.keys(t).length === 0 && t.constructor === Object;
|
|
32144
32144
|
}
|
|
32145
32145
|
function Bi$1(t) {
|
|
32146
|
-
const e = Object.entries(t).filter(([n, r]) => n === "attrs" &&
|
|
32146
|
+
const e = Object.entries(t).filter(([n, r]) => n === "attrs" && mg(r) ? false : r != null);
|
|
32147
32147
|
return Object.fromEntries(e);
|
|
32148
32148
|
}
|
|
32149
32149
|
var _n$2, Zc$1, Qc$1;
|
|
@@ -32229,7 +32229,7 @@ Actual: ` + p3.attribValue
|
|
|
32229
32229
|
function Yn$2(t, e) {
|
|
32230
32230
|
return e.nodes[t] || e.marks[t] || null;
|
|
32231
32231
|
}
|
|
32232
|
-
function
|
|
32232
|
+
function gg(t, e) {
|
|
32233
32233
|
return Array.isArray(e) ? e.some((n) => (typeof n == "string" ? n : n.name) === t.name) : e;
|
|
32234
32234
|
}
|
|
32235
32235
|
function Ts(t, e) {
|
|
@@ -32350,11 +32350,11 @@ Actual: ` + p3.attribValue
|
|
|
32350
32350
|
return a;
|
|
32351
32351
|
}
|
|
32352
32352
|
};
|
|
32353
|
-
function
|
|
32353
|
+
function yg(t, e) {
|
|
32354
32354
|
const n = La$2.fromSchema(e).serializeFragment(t), o = document.implementation.createHTMLDocument().createElement("div");
|
|
32355
32355
|
return o.appendChild(n), o.innerHTML;
|
|
32356
32356
|
}
|
|
32357
|
-
const
|
|
32357
|
+
const bg = (t, e = 500) => {
|
|
32358
32358
|
let n = "";
|
|
32359
32359
|
const r = t.parentOffset;
|
|
32360
32360
|
return t.parent.nodesBetween(
|
|
@@ -32371,14 +32371,14 @@ Actual: ` + p3.attribValue
|
|
|
32371
32371
|
}
|
|
32372
32372
|
), n;
|
|
32373
32373
|
};
|
|
32374
|
-
class
|
|
32374
|
+
class wg {
|
|
32375
32375
|
constructor(e) {
|
|
32376
32376
|
P(this, "match");
|
|
32377
32377
|
P(this, "handler");
|
|
32378
32378
|
this.match = e.match, this.handler = e.handler;
|
|
32379
32379
|
}
|
|
32380
32380
|
}
|
|
32381
|
-
const
|
|
32381
|
+
const vg = (t, e) => {
|
|
32382
32382
|
if (hm$1(e))
|
|
32383
32383
|
return e.exec(t);
|
|
32384
32384
|
const n = e(t);
|
|
@@ -32403,11 +32403,11 @@ Actual: ` + p3.attribValue
|
|
|
32403
32403
|
if (l.parent.type.spec.code || (l.nodeBefore || l.nodeAfter)?.marks.find((u) => u.type.spec.code))
|
|
32404
32404
|
return false;
|
|
32405
32405
|
let c3 = false;
|
|
32406
|
-
const d =
|
|
32406
|
+
const d = bg(l) + o;
|
|
32407
32407
|
return i3.forEach((u) => {
|
|
32408
32408
|
if (c3)
|
|
32409
32409
|
return;
|
|
32410
|
-
const f3 =
|
|
32410
|
+
const f3 = vg(d, u.match);
|
|
32411
32411
|
if (!f3)
|
|
32412
32412
|
return;
|
|
32413
32413
|
const p3 = a.state.tr, h3 = Ts(p3, a.state), m = {
|
|
@@ -32431,7 +32431,7 @@ Actual: ` + p3.attribValue
|
|
|
32431
32431
|
text: o
|
|
32432
32432
|
}), a.dispatch(p3), c3 = true);
|
|
32433
32433
|
}), c3;
|
|
32434
|
-
},
|
|
32434
|
+
}, kg = ({ editor: t, rules: e }) => {
|
|
32435
32435
|
const n = new bp$2({
|
|
32436
32436
|
key: new xp$2("inputRulesPlugin"),
|
|
32437
32437
|
state: {
|
|
@@ -32445,7 +32445,7 @@ Actual: ` + p3.attribValue
|
|
|
32445
32445
|
const a = r.getMeta("applyInputRules");
|
|
32446
32446
|
return !!a && setTimeout(() => {
|
|
32447
32447
|
let { text: c3 } = a;
|
|
32448
|
-
typeof c3 != "string" && (c3 =
|
|
32448
|
+
typeof c3 != "string" && (c3 = yg(Z.from(c3), i3.schema));
|
|
32449
32449
|
const { from: d } = a, u = d + c3.length;
|
|
32450
32450
|
si$1({
|
|
32451
32451
|
editor: t,
|
|
@@ -32498,7 +32498,7 @@ Actual: ` + p3.attribValue
|
|
|
32498
32498
|
case "word-html":
|
|
32499
32499
|
break;
|
|
32500
32500
|
case "browser-html":
|
|
32501
|
-
return
|
|
32501
|
+
return Cg(a, t);
|
|
32502
32502
|
}
|
|
32503
32503
|
return false;
|
|
32504
32504
|
}
|
|
@@ -32506,14 +32506,14 @@ Actual: ` + p3.attribValue
|
|
|
32506
32506
|
isInputRules: true
|
|
32507
32507
|
});
|
|
32508
32508
|
return n;
|
|
32509
|
-
},
|
|
32510
|
-
const r =
|
|
32509
|
+
}, Cg = (t, e, n) => {
|
|
32510
|
+
const r = Sg(t), o = document.createElement("div");
|
|
32511
32511
|
o.innerHTML = r;
|
|
32512
32512
|
const i3 = gr$2.fromSchema(e.schema).parse(o);
|
|
32513
32513
|
o.remove();
|
|
32514
32514
|
const { dispatch: s } = e.view;
|
|
32515
32515
|
return s ? (s(e.view.state.tr.replaceSelectionWith(i3, true)), true) : false;
|
|
32516
|
-
},
|
|
32516
|
+
}, Sg = (t) => t.replace(
|
|
32517
32517
|
/font-size\s*:\s*([\d.]+)em/gi,
|
|
32518
32518
|
(e, n) => {
|
|
32519
32519
|
const r = parseFloat(n);
|
|
@@ -32604,9 +32604,9 @@ Actual: ` + p3.attribValue
|
|
|
32604
32604
|
const f3 = Object.entries(l()).map(([p3, h3]) => [p3, (...m) => h3({ editor: e, keymapArgs: m })]);
|
|
32605
32605
|
c3 = { ...Object.fromEntries(f3) };
|
|
32606
32606
|
}
|
|
32607
|
-
a.push(
|
|
32607
|
+
a.push(hg(c3));
|
|
32608
32608
|
const d = N(i3, "addInputRules", s);
|
|
32609
|
-
|
|
32609
|
+
gg(i3, e.options.enableInputRules) && d && r.push(...d());
|
|
32610
32610
|
const u = N(i3, "addPmPlugins", s);
|
|
32611
32611
|
if (u) {
|
|
32612
32612
|
const f3 = u();
|
|
@@ -32615,7 +32615,7 @@ Actual: ` + p3.attribValue
|
|
|
32615
32615
|
return a;
|
|
32616
32616
|
}).flat();
|
|
32617
32617
|
return [
|
|
32618
|
-
|
|
32618
|
+
kg({
|
|
32619
32619
|
editor: e,
|
|
32620
32620
|
rules: r
|
|
32621
32621
|
}),
|
|
@@ -32684,22 +32684,22 @@ Actual: ` + p3.attribValue
|
|
|
32684
32684
|
r && this.editor.on("beforeCreate", r), o && this.editor.on("create", o), i3 && this.editor.on("update", i3), s && this.editor.on("selectionUpdate", s), a && this.editor.on("transaction", a), l && this.editor.on("focus", l), c3 && this.editor.on("blur", c3), d && this.editor.on("destroy", d);
|
|
32685
32685
|
};
|
|
32686
32686
|
let zi$1 = An$1;
|
|
32687
|
-
const
|
|
32687
|
+
const xg = (t) => (e) => {
|
|
32688
32688
|
const n = typeof t == "function" ? t(e) : t;
|
|
32689
32689
|
for (let r = 0; r < n.length; r += 1)
|
|
32690
32690
|
if (n[r](e)) return true;
|
|
32691
32691
|
return false;
|
|
32692
|
-
},
|
|
32692
|
+
}, Mg = (t) => (e) => t(e), Ag = () => ({ tr: t }) => (t.insertText(" ", t.selection.from, t.selection.to), true), Og = () => ({ tr: t, state: e }) => {
|
|
32693
32693
|
let n = t.selection.from;
|
|
32694
32694
|
const r = e.schema.nodes.tab.create();
|
|
32695
32695
|
return t.insert(n, r), true;
|
|
32696
|
-
},
|
|
32697
|
-
function
|
|
32696
|
+
}, Tg = (t, e) => ({ tr: n }) => (n.setMeta(t, e), true), Ds = (t, e) => t.selection.empty ? false : (e && e(t.tr.deleteSelection().scrollIntoView()), true);
|
|
32697
|
+
function Dg(t, e) {
|
|
32698
32698
|
let { $cursor: n } = t.selection;
|
|
32699
32699
|
return !n || (e ? !e.endOfTextblock("backward", t) : n.parentOffset > 0) ? null : n;
|
|
32700
32700
|
}
|
|
32701
32701
|
const nd$1 = (t, e, n) => {
|
|
32702
|
-
let r =
|
|
32702
|
+
let r = Dg(t, n);
|
|
32703
32703
|
if (!r)
|
|
32704
32704
|
return false;
|
|
32705
32705
|
let o = od$1(r);
|
|
@@ -32756,12 +32756,12 @@ Actual: ` + p3.attribValue
|
|
|
32756
32756
|
}
|
|
32757
32757
|
return null;
|
|
32758
32758
|
}
|
|
32759
|
-
function
|
|
32759
|
+
function Ng(t, e) {
|
|
32760
32760
|
let { $cursor: n } = t.selection;
|
|
32761
32761
|
return !n || (e ? !e.endOfTextblock("forward", t) : n.parentOffset < n.parent.content.size) ? null : n;
|
|
32762
32762
|
}
|
|
32763
32763
|
const id$1 = (t, e, n) => {
|
|
32764
|
-
let r =
|
|
32764
|
+
let r = Ng(t, n);
|
|
32765
32765
|
if (!r)
|
|
32766
32766
|
return false;
|
|
32767
32767
|
let o = ad$1(r);
|
|
@@ -32804,7 +32804,7 @@ Actual: ` + p3.attribValue
|
|
|
32804
32804
|
}
|
|
32805
32805
|
return null;
|
|
32806
32806
|
}
|
|
32807
|
-
const
|
|
32807
|
+
const Eg = (t, e) => {
|
|
32808
32808
|
let n = t.selection, r = n instanceof Ge$1, o;
|
|
32809
32809
|
if (r) {
|
|
32810
32810
|
if (n.node.isTextblock || !gp$2(t.doc, n.from))
|
|
@@ -32817,7 +32817,7 @@ Actual: ` + p3.attribValue
|
|
|
32817
32817
|
r && i3.setSelection(Ge$1.create(i3.doc, o - t.doc.resolve(o).nodeBefore.nodeSize)), e(i3.scrollIntoView());
|
|
32818
32818
|
}
|
|
32819
32819
|
return true;
|
|
32820
|
-
},
|
|
32820
|
+
}, Ig = (t, e) => {
|
|
32821
32821
|
let n = t.selection, r;
|
|
32822
32822
|
if (n instanceof Ge$1) {
|
|
32823
32823
|
if (n.node.isTextblock || !gp$2(t.doc, n.to))
|
|
@@ -32839,7 +32839,7 @@ Actual: ` + p3.attribValue
|
|
|
32839
32839
|
}
|
|
32840
32840
|
return null;
|
|
32841
32841
|
}
|
|
32842
|
-
const
|
|
32842
|
+
const Pg = (t, e) => {
|
|
32843
32843
|
let { $head: n, $anchor: r } = t.selection;
|
|
32844
32844
|
if (!n.parent.type.spec.code || !n.sameParent(r))
|
|
32845
32845
|
return false;
|
|
@@ -32875,7 +32875,7 @@ Actual: ` + p3.attribValue
|
|
|
32875
32875
|
let r = n.blockRange(), o = r && mp$2(r);
|
|
32876
32876
|
return o == null ? false : (e && e(t.tr.lift(r, o).scrollIntoView()), true);
|
|
32877
32877
|
};
|
|
32878
|
-
function
|
|
32878
|
+
function Rg(t) {
|
|
32879
32879
|
return (e, n) => {
|
|
32880
32880
|
let { $from: r, $to: o } = e.selection;
|
|
32881
32881
|
if (e.selection instanceof Ge$1 && e.selection.node.isBlock)
|
|
@@ -32902,14 +32902,14 @@ Actual: ` + p3.attribValue
|
|
|
32902
32902
|
return n && n(d.scrollIntoView()), true;
|
|
32903
32903
|
};
|
|
32904
32904
|
}
|
|
32905
|
-
const
|
|
32906
|
-
function
|
|
32905
|
+
const Lg = Rg(), Fg = (t, e) => (e && e(t.tr.setSelection(new at$3(t.doc))), true);
|
|
32906
|
+
function Bg(t, e, n) {
|
|
32907
32907
|
let r = e.nodeBefore, o = e.nodeAfter, i3 = e.index();
|
|
32908
32908
|
return !r || !o || !r.type.compatibleContent(o.type) ? false : !r.content.size && e.parent.canReplace(i3 - 1, i3) ? (n && n(t.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), true) : !e.parent.canReplace(i3, i3 + 1) || !(o.isTextblock || gp$2(t.doc, e.pos)) ? false : (n && n(t.tr.join(e.pos).scrollIntoView()), true);
|
|
32909
32909
|
}
|
|
32910
32910
|
function ud$1(t, e, n, r) {
|
|
32911
32911
|
let o = e.nodeBefore, i3 = e.nodeAfter, s, a, l = o.type.spec.isolating || i3.type.spec.isolating;
|
|
32912
|
-
if (!l &&
|
|
32912
|
+
if (!l && Bg(t, e, n))
|
|
32913
32913
|
return true;
|
|
32914
32914
|
let c3 = !l && e.parent.canReplace(e.index(), e.index() + 1);
|
|
32915
32915
|
if (c3 && (s = (a = o.contentMatchAt(o.childCount)).findWrapping(i3.type)) && a.matchType(s[0] || i3.type).validEnd) {
|
|
@@ -32957,7 +32957,7 @@ Actual: ` + p3.attribValue
|
|
|
32957
32957
|
return o.node(i3).isTextblock ? (n && n(e.tr.setSelection(tt$2.create(e.doc, t < 0 ? o.start(i3) : o.end(i3)))), true) : false;
|
|
32958
32958
|
};
|
|
32959
32959
|
}
|
|
32960
|
-
const
|
|
32960
|
+
const _g = fd$1(-1), zg = fd$1(1);
|
|
32961
32961
|
function qa$1(t, e = null) {
|
|
32962
32962
|
return function(n, r) {
|
|
32963
32963
|
let o = false;
|
|
@@ -32998,7 +32998,7 @@ Actual: ` + p3.attribValue
|
|
|
32998
32998
|
}
|
|
32999
32999
|
Es(Ds, nd$1, rd$1);
|
|
33000
33000
|
Es(Ds, id$1, sd$1);
|
|
33001
|
-
Es(ld$1, cd$1, dd$1,
|
|
33001
|
+
Es(ld$1, cd$1, dd$1, Lg);
|
|
33002
33002
|
typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : typeof os < "u" && os.platform && os.platform() == "darwin";
|
|
33003
33003
|
function pd$1(t) {
|
|
33004
33004
|
for (let e = 0; e < t.edgeCount; e++) {
|
|
@@ -33013,7 +33013,7 @@ Actual: ` + p3.attribValue
|
|
|
33013
33013
|
const r = n.filter((o) => e?.includes(o.type.name));
|
|
33014
33014
|
t.tr.ensureMarks(r);
|
|
33015
33015
|
}
|
|
33016
|
-
},
|
|
33016
|
+
}, $g = ({ keepMarks: t = true } = {}) => (e) => {
|
|
33017
33017
|
const { tr: n, state: r, dispatch: o, editor: i3 } = e, { selection: s, doc: a } = n, { $from: l, $to: c3 } = s, d = i3.extensionService.attributes, u = D.getSplittedAttributes(d, l.node().type.name, l.node().attrs);
|
|
33018
33018
|
if (s instanceof Ge$1 && s.node.isBlock)
|
|
33019
33019
|
return !l.parentOffset || !hp$2(a, l.pos) ? false : (o && (t && Ka$1(r, i3.extensionService.splittableMarks), n.split(l.pos).scrollIntoView()), true);
|
|
@@ -33030,9 +33030,9 @@ Actual: ` + p3.attribValue
|
|
|
33030
33030
|
t && Ka$1(r, i3.extensionService.splittableMarks), n.scrollIntoView();
|
|
33031
33031
|
}
|
|
33032
33032
|
return true;
|
|
33033
|
-
},
|
|
33033
|
+
}, Vg = () => ({ state: t, dispatch: e }) => dd$1(t, e), Hg = () => ({ state: t, dispatch: e }) => cd$1(t, e), jg = () => ({ state: t, dispatch: e }) => ld$1(t, e), Wg = () => ({ state: t, dispatch: e }) => Pg(t, e), hd$1 = (t) => {
|
|
33034
33034
|
};
|
|
33035
|
-
function
|
|
33035
|
+
function Ug(t, e, n) {
|
|
33036
33036
|
const { selection: r } = e;
|
|
33037
33037
|
let o = null;
|
|
33038
33038
|
if (hd$1() && (o = r.$cursor), o) {
|
|
@@ -33051,7 +33051,7 @@ Actual: ` + p3.attribValue
|
|
|
33051
33051
|
}), a;
|
|
33052
33052
|
});
|
|
33053
33053
|
}
|
|
33054
|
-
const
|
|
33054
|
+
const qg = (t, e = {}) => ({ tr: n, state: r, dispatch: o }) => {
|
|
33055
33055
|
const { selection: i3 } = n, { empty: s, ranges: a } = i3, l = xt$1(t, r.schema);
|
|
33056
33056
|
if (o)
|
|
33057
33057
|
if (s) {
|
|
@@ -33079,12 +33079,12 @@ Actual: ` + p3.attribValue
|
|
|
33079
33079
|
}) : n.addMark(h3, m, l.create(e));
|
|
33080
33080
|
});
|
|
33081
33081
|
});
|
|
33082
|
-
return
|
|
33082
|
+
return Ug(r, n, l);
|
|
33083
33083
|
};
|
|
33084
33084
|
function $i$1(t, e, n = {}) {
|
|
33085
33085
|
return t.find((r) => r.type === e && gm$1(r.attrs, n));
|
|
33086
33086
|
}
|
|
33087
|
-
function
|
|
33087
|
+
function Kg(t, e, n = {}) {
|
|
33088
33088
|
return !!$i$1(t, e, n);
|
|
33089
33089
|
}
|
|
33090
33090
|
function Is(t, e, n = {}) {
|
|
@@ -33096,11 +33096,11 @@ Actual: ` + p3.attribValue
|
|
|
33096
33096
|
let i3 = r.index, s = t.start() + r.offset, a = i3 + 1, l = s + r.node.nodeSize;
|
|
33097
33097
|
for ($i$1([...r.node.marks], e, n); i3 > 0 && o.isInSet(t.parent.child(i3 - 1).marks); )
|
|
33098
33098
|
i3 -= 1, s -= t.parent.child(i3).nodeSize;
|
|
33099
|
-
for (; a < t.parent.childCount &&
|
|
33099
|
+
for (; a < t.parent.childCount && Kg([...t.parent.child(a).marks], e, n); )
|
|
33100
33100
|
l += t.parent.child(a).nodeSize, a += 1;
|
|
33101
33101
|
return { from: s, to: l };
|
|
33102
33102
|
}
|
|
33103
|
-
const
|
|
33103
|
+
const Xg = (t, e = {}) => ({ tr: n, state: r, dispatch: o }) => {
|
|
33104
33104
|
const { extendEmptyMarkRange: i3 = false } = e, { selection: s } = n, a = xt$1(t, r.schema), { $from: l, empty: c3, ranges: d } = s;
|
|
33105
33105
|
if (!o) return true;
|
|
33106
33106
|
if (c3 && i3) {
|
|
@@ -33112,7 +33112,7 @@ Actual: ` + p3.attribValue
|
|
|
33112
33112
|
n.removeMark(u.$from.pos, u.$to.pos, a);
|
|
33113
33113
|
});
|
|
33114
33114
|
return n.removeStoredMark(a), true;
|
|
33115
|
-
},
|
|
33115
|
+
}, Jg = () => ({ tr: t, dispatch: e }) => {
|
|
33116
33116
|
const { selection: n } = t, { empty: r, ranges: o } = n;
|
|
33117
33117
|
return r || e && o.forEach((i3) => {
|
|
33118
33118
|
t.removeMark(i3.$from.pos, i3.$to.pos);
|
|
@@ -33141,10 +33141,10 @@ Actual: ` + p3.attribValue
|
|
|
33141
33141
|
const l = a.filter((u) => i3 ? i3.name === u.mark.type.name : true).filter((u) => gm$1(u.mark.attrs, n, { strict: false })).reduce((u, f3) => u + f3.to - f3.from, 0), c3 = a.filter((u) => i3 ? u.mark.type !== i3 && u.mark.type.excludes(i3) : true).reduce((u, f3) => u + f3.to - f3.from, 0);
|
|
33142
33142
|
return (l > 0 ? l + c3 : l) >= s;
|
|
33143
33143
|
}
|
|
33144
|
-
const
|
|
33144
|
+
const Yg = (t, e = {}, n = {}) => ({ state: r, commands: o }) => {
|
|
33145
33145
|
const { extendEmptyMarkRange: i3 = false } = n, s = xt$1(t, r.schema);
|
|
33146
33146
|
return Co$1(r, s, e) ? o.unsetMark(s, { extendEmptyMarkRange: i3 }) : o.setMark(s, e);
|
|
33147
|
-
},
|
|
33147
|
+
}, Gg = () => ({ state: t, tr: e, dispatch: n }) => {
|
|
33148
33148
|
const { selection: r } = e, { ranges: o } = r;
|
|
33149
33149
|
return n && o.forEach(({ $from: i3, $to: s }) => {
|
|
33150
33150
|
t.doc.nodesBetween(i3.pos, s.pos, (a, l) => {
|
|
@@ -33159,7 +33159,7 @@ Actual: ` + p3.attribValue
|
|
|
33159
33159
|
(h3 || h3 === 0) && e.lift(p3, h3);
|
|
33160
33160
|
});
|
|
33161
33161
|
}), true;
|
|
33162
|
-
},
|
|
33162
|
+
}, Zg = (t, e = {}) => ({ state: n, dispatch: r, chain: o }) => {
|
|
33163
33163
|
const i3 = le$2(t, n.schema);
|
|
33164
33164
|
return i3.isTextblock ? o().command(({ commands: s }) => qa$1(i3, e)(n) ? true : s.clearNodes()).command(({ state: s }) => qa$1(i3, e)(s, r)).run() : false;
|
|
33165
33165
|
};
|
|
@@ -33177,10 +33177,10 @@ Actual: ` + p3.attribValue
|
|
|
33177
33177
|
const l = o - r, c3 = a.filter((u) => s ? s.name === u.node.type.name : true).filter((u) => gm$1(u.node.attrs, n, { strict: false }));
|
|
33178
33178
|
return i3 ? !!c3.length : c3.reduce((u, f3) => u + f3.to - f3.from, 0) >= l;
|
|
33179
33179
|
}
|
|
33180
|
-
const
|
|
33180
|
+
const Qg = (t, e, n = {}) => ({ state: r, commands: o }) => {
|
|
33181
33181
|
const i3 = le$2(t, r.schema), s = le$2(e, r.schema);
|
|
33182
33182
|
return So$1(r, i3, n) ? o.setNode(s) : o.setNode(i3, n);
|
|
33183
|
-
},
|
|
33183
|
+
}, ey = () => ({ state: t, dispatch: e }) => Fg(t, e), ty = () => ({ state: t, dispatch: e }) => Ds(t, e), ny = (t, e = {}) => ({ tr: n, state: r, dispatch: o }) => {
|
|
33184
33184
|
let i3 = null, s = null;
|
|
33185
33185
|
const a = Er$1(
|
|
33186
33186
|
typeof t == "string" ? t : t.name,
|
|
@@ -33202,7 +33202,7 @@ Actual: ` + p3.attribValue
|
|
|
33202
33202
|
const r = typeof e == "string" ? [e] : e;
|
|
33203
33203
|
return Object.keys(t).reduce((o, i3) => (r.includes(i3) || (o[i3] = t[i3]), o), {});
|
|
33204
33204
|
}
|
|
33205
|
-
const
|
|
33205
|
+
const ry = (t, e) => ({ tr: n, state: r, dispatch: o }) => {
|
|
33206
33206
|
let i3 = null, s = null;
|
|
33207
33207
|
const a = Er$1(
|
|
33208
33208
|
typeof t == "string" ? t : t.name,
|
|
@@ -33215,7 +33215,7 @@ Actual: ` + p3.attribValue
|
|
|
33215
33215
|
});
|
|
33216
33216
|
});
|
|
33217
33217
|
}), true) : false;
|
|
33218
|
-
},
|
|
33218
|
+
}, oy = () => ({ state: t, dispatch: e }) => Eg(t, e), iy = () => ({ state: t, dispatch: e }) => Ig(t, e), sy = () => ({ state: t, dispatch: e }) => nd$1(t, e), ay = () => ({ state: t, dispatch: e }) => id$1(t, e), ly = () => ({ state: t, dispatch: e }) => rd$1(t, e), cy = () => ({ state: t, dispatch: e }) => sd$1(t, e), dy = () => ({ state: t, dispatch: e }) => _g(t, e), uy = () => ({ state: t, dispatch: e }) => zg(t, e), fy = (t, e) => ({ tr: n, commands: r }) => r.insertContentAt({ from: n.selection.from, to: n.selection.to }, t, e), md$1 = (t) => {
|
|
33219
33219
|
const e = t.childNodes;
|
|
33220
33220
|
for (let n = e.length - 1; n >= 0; n -= 1) {
|
|
33221
33221
|
const r = e[n];
|
|
@@ -33276,7 +33276,7 @@ Actual: ` + p3.attribValue
|
|
|
33276
33276
|
}
|
|
33277
33277
|
return Vi$1("", e, n);
|
|
33278
33278
|
}
|
|
33279
|
-
function
|
|
33279
|
+
function py(t, e, n) {
|
|
33280
33280
|
const r = t.steps.length - 1;
|
|
33281
33281
|
if (r < e)
|
|
33282
33282
|
return;
|
|
@@ -33289,7 +33289,7 @@ Actual: ` + p3.attribValue
|
|
|
33289
33289
|
s === 0 && (s = d);
|
|
33290
33290
|
}), t.setSelection(ve$1.near(t.doc.resolve(s), n));
|
|
33291
33291
|
}
|
|
33292
|
-
const
|
|
33292
|
+
const hy = (t) => !("type" in t), my = (t, e, n) => ({ tr: r, dispatch: o, editor: i3 }) => {
|
|
33293
33293
|
if (o) {
|
|
33294
33294
|
n = {
|
|
33295
33295
|
parseOptions: {},
|
|
@@ -33317,17 +33317,17 @@ Actual: ` + p3.attribValue
|
|
|
33317
33317
|
}), false;
|
|
33318
33318
|
}
|
|
33319
33319
|
let { from: a, to: l } = typeof t == "number" ? { from: t, to: t } : { from: t.from, to: t.to }, c3 = true, d = true;
|
|
33320
|
-
if ((
|
|
33320
|
+
if ((hy(s) ? s : [s]).forEach((p3) => {
|
|
33321
33321
|
p3.check(), c3 = c3 ? p3.isText && p3.marks.length === 0 : false, d = d ? p3.isBlock : false;
|
|
33322
33322
|
}), a === l && d) {
|
|
33323
33323
|
const { parent: p3 } = r.doc.resolve(a);
|
|
33324
33324
|
p3.isTextblock && !p3.type.spec.code && !p3.childCount && (a -= 1, l += 1);
|
|
33325
33325
|
}
|
|
33326
33326
|
let f3;
|
|
33327
|
-
c3 ? (Array.isArray(e) ? f3 = e.map((p3) => p3.text || "").join("") : typeof e == "object" && e && e.text ? f3 = e.text : f3 = e, r.insertText(f3, a, l)) : (f3 = s, r.replaceWith(a, l, f3)), n.updateSelection &&
|
|
33327
|
+
c3 ? (Array.isArray(e) ? f3 = e.map((p3) => p3.text || "").join("") : typeof e == "object" && e && e.text ? f3 = e.text : f3 = e, r.insertText(f3, a, l)) : (f3 = s, r.replaceWith(a, l, f3)), n.updateSelection && py(r, r.steps.length - 1, -1), n.applyInputRules && r.setMeta("applyInputRules", { from: a, text: f3 }), n.applyPasteRules && r.setMeta("applyPasteRules", { from: a, text: f3 });
|
|
33328
33328
|
}
|
|
33329
33329
|
return true;
|
|
33330
|
-
},
|
|
33330
|
+
}, gy = () => ({ state: t, dispatch: e }) => {
|
|
33331
33331
|
const n = t.plugins;
|
|
33332
33332
|
for (let r = 0; r < n.length; r += 1) {
|
|
33333
33333
|
const o = n[r];
|
|
@@ -33348,16 +33348,16 @@ Actual: ` + p3.attribValue
|
|
|
33348
33348
|
}
|
|
33349
33349
|
return false;
|
|
33350
33350
|
};
|
|
33351
|
-
function
|
|
33351
|
+
function yy(t, e = null) {
|
|
33352
33352
|
return function(n, r) {
|
|
33353
33353
|
let { $from: o, $to: i3 } = n.selection, s = o.blockRange(i3);
|
|
33354
33354
|
if (!s)
|
|
33355
33355
|
return false;
|
|
33356
33356
|
let a = r ? n.tr : null;
|
|
33357
|
-
return
|
|
33357
|
+
return by(a, s, t, e) ? (r && r(a.scrollIntoView()), true) : false;
|
|
33358
33358
|
};
|
|
33359
33359
|
}
|
|
33360
|
-
function
|
|
33360
|
+
function by(t, e, n, r = null) {
|
|
33361
33361
|
let o = false, i3 = e, s = e.$from.doc;
|
|
33362
33362
|
if (e.depth >= 2 && e.$from.node(e.depth - 1).type.compatibleContent(n) && e.startIndex == 0) {
|
|
33363
33363
|
if (e.$from.index(e.depth - 1) == 0)
|
|
@@ -33366,9 +33366,9 @@ Actual: ` + p3.attribValue
|
|
|
33366
33366
|
i3 = new Oc$2(l, l, e.depth), e.endIndex < e.parent.childCount && (e = new Oc$2(e.$from, s.resolve(e.$to.end(e.depth)), e.depth)), o = true;
|
|
33367
33367
|
}
|
|
33368
33368
|
let a = pp$2(i3, n, r, e);
|
|
33369
|
-
return a ? (t &&
|
|
33369
|
+
return a ? (t && wy(t, e, a, o, n), true) : false;
|
|
33370
33370
|
}
|
|
33371
|
-
function
|
|
33371
|
+
function wy(t, e, n, r, o) {
|
|
33372
33372
|
let i3 = Z.empty;
|
|
33373
33373
|
for (let d = n.length - 1; d >= 0; d--)
|
|
33374
33374
|
i3 = Z.from(n[d].type.create(n[d].attrs, i3));
|
|
@@ -33381,13 +33381,13 @@ Actual: ` + p3.attribValue
|
|
|
33381
33381
|
!f3 && hp$2(t.doc, l, a) && (t.split(l, a), l += 2 * a), l += c3.child(d).nodeSize;
|
|
33382
33382
|
return t;
|
|
33383
33383
|
}
|
|
33384
|
-
function
|
|
33384
|
+
function vy(t) {
|
|
33385
33385
|
return function(e, n) {
|
|
33386
33386
|
let { $from: r, $to: o } = e.selection, i3 = r.blockRange(o, (s) => s.childCount > 0 && s.firstChild.type == t);
|
|
33387
|
-
return i3 ? n ? r.node(i3.depth - 1).type == t ?
|
|
33387
|
+
return i3 ? n ? r.node(i3.depth - 1).type == t ? ky(e, n, t, i3) : Cy(e, n, i3) : true : false;
|
|
33388
33388
|
};
|
|
33389
33389
|
}
|
|
33390
|
-
function
|
|
33390
|
+
function ky(t, e, n, r) {
|
|
33391
33391
|
let o = t.tr, i3 = r.end, s = r.$to.end(r.depth);
|
|
33392
33392
|
i3 < s && (o.step(new Je$3(i3 - 1, s, i3, s, new ue(Z.from(n.create(null, r.parent.copy())), 1, 0), 1, true)), r = new Oc$2(o.doc.resolve(r.$from.pos), o.doc.resolve(s), r.depth));
|
|
33393
33393
|
const a = mp$2(r);
|
|
@@ -33397,7 +33397,7 @@ Actual: ` + p3.attribValue
|
|
|
33397
33397
|
let l = o.doc.resolve(o.mapping.map(i3, -1) - 1);
|
|
33398
33398
|
return gp$2(o.doc, l.pos) && l.nodeBefore.type == l.nodeAfter.type && o.join(l.pos), e(o.scrollIntoView()), true;
|
|
33399
33399
|
}
|
|
33400
|
-
function
|
|
33400
|
+
function Cy(t, e, n) {
|
|
33401
33401
|
let r = t.tr, o = n.parent;
|
|
33402
33402
|
for (let p3 = n.end, h3 = n.endIndex - 1, m = n.startIndex; h3 > m; h3--)
|
|
33403
33403
|
p3 -= o.child(h3).nodeSize, r.delete(p3 - 1, p3 + 1);
|
|
@@ -33410,7 +33410,7 @@ Actual: ` + p3.attribValue
|
|
|
33410
33410
|
let u = i3.pos, f3 = u + s.nodeSize;
|
|
33411
33411
|
return r.step(new Je$3(u - (a ? 1 : 0), f3 + (l ? 1 : 0), u + 1, f3 - 1, new ue((a ? Z.empty : Z.from(o.copy(Z.empty))).append(l ? Z.empty : Z.from(o.copy(Z.empty))), a ? 0 : 1, l ? 0 : 1), a ? 0 : 1)), e(r.scrollIntoView()), true;
|
|
33412
33412
|
}
|
|
33413
|
-
function
|
|
33413
|
+
function Sy(t) {
|
|
33414
33414
|
return function(e, n) {
|
|
33415
33415
|
let { $from: r, $to: o } = e.selection, i3 = r.blockRange(o, (c3) => c3.childCount > 0 && c3.firstChild.type == t);
|
|
33416
33416
|
if (!i3)
|
|
@@ -33428,9 +33428,9 @@ Actual: ` + p3.attribValue
|
|
|
33428
33428
|
return true;
|
|
33429
33429
|
};
|
|
33430
33430
|
}
|
|
33431
|
-
const
|
|
33431
|
+
const xy = (t, e = {}) => ({ state: n, dispatch: r }) => {
|
|
33432
33432
|
const o = le$2(t, n.schema);
|
|
33433
|
-
return
|
|
33433
|
+
return yy(o, e)(n, r);
|
|
33434
33434
|
}, Bo$1 = (t, e) => {
|
|
33435
33435
|
for (let n = t.depth; n > 0; n--) {
|
|
33436
33436
|
const r = t.node(n);
|
|
@@ -33451,7 +33451,7 @@ Actual: ` + p3.attribValue
|
|
|
33451
33451
|
storage: r.storage
|
|
33452
33452
|
}, i3 = K$1(N(r, "group", o));
|
|
33453
33453
|
return typeof i3 != "string" ? false : i3.split(" ").includes("list");
|
|
33454
|
-
},
|
|
33454
|
+
}, My = {
|
|
33455
33455
|
type: "element",
|
|
33456
33456
|
name: "w:abstractNum",
|
|
33457
33457
|
attributes: {
|
|
@@ -33950,7 +33950,7 @@ Actual: ` + p3.attribValue
|
|
|
33950
33950
|
]
|
|
33951
33951
|
}
|
|
33952
33952
|
]
|
|
33953
|
-
},
|
|
33953
|
+
}, Ay = {
|
|
33954
33954
|
type: "element",
|
|
33955
33955
|
name: "w:abstractNum",
|
|
33956
33956
|
attributes: {
|
|
@@ -34608,14 +34608,14 @@ Actual: ` + p3.attribValue
|
|
|
34608
34608
|
if (r === void 0) return true;
|
|
34609
34609
|
const o = t.doc.nodeAt(r);
|
|
34610
34610
|
return n.node.type === o?.type && gp$2(t.doc, r) && t.join(r), true;
|
|
34611
|
-
},
|
|
34611
|
+
}, Oy = (t, e, n, r = {}) => (o) => {
|
|
34612
34612
|
const { editor: i3, tr: s, state: a, dispatch: l, chain: c3, can: d, commands: u } = o, { extensions: f3, splittableMarks: p3 } = i3.extensionService, h3 = le$2(t, a.schema), m = le$2(e, a.schema), { selection: g, storedMarks: b } = a, { $from: w, $to: C } = g, y = w.blockRange(C), S = b || g.$to.parentOffset && g.$from.marks();
|
|
34613
34613
|
if (!y) return false;
|
|
34614
34614
|
const k = He$2((_) => Hi$1(_.type.name, f3))(g), { numbering: M3 } = i3.converter;
|
|
34615
34615
|
if (y.depth >= 1 && k && y.depth - k.depth <= 1) {
|
|
34616
34616
|
if (k.node.type === h3) {
|
|
34617
34617
|
const { listId: _ } = k.node.attrs;
|
|
34618
|
-
return i3.converter.numbering =
|
|
34618
|
+
return i3.converter.numbering = Dy(_, M3), u.liftListItem(m);
|
|
34619
34619
|
}
|
|
34620
34620
|
if (Hi$1(k.node.type.name, f3) && h3.validContent(k.node.content) && l)
|
|
34621
34621
|
return c3().command(() => (s.setNodeMarkup(k.pos, h3), true)).command(() => ai$1(s, h3)).command(() => li$1(s, h3)).run();
|
|
@@ -34628,9 +34628,9 @@ Actual: ` + p3.attribValue
|
|
|
34628
34628
|
}
|
|
34629
34629
|
return V ? true : u.clearNodes();
|
|
34630
34630
|
}, x = gd$1(M3.definitions);
|
|
34631
|
-
return i3.converter.numbering =
|
|
34632
|
-
}, gd$1 = (t) => Math.max(...Object.keys(t).map(Number)) + 1,
|
|
34633
|
-
const r = n.name === "orderedList" ?
|
|
34631
|
+
return i3.converter.numbering = Ty(x, M3, h3), r.listId = x, !n || !S || !l ? c3().command(L3({ ensureMarks: false })).wrapInList(h3, r).command(() => ai$1(s, h3)).command(() => li$1(s, h3)).run() : c3().command(L3({ ensureMarks: true })).wrapInList(h3, r).command(() => ai$1(s, h3)).command(() => li$1(s, h3)).run();
|
|
34632
|
+
}, gd$1 = (t) => Math.max(...Object.keys(t).map(Number)) + 1, Ty = (t, e, n) => {
|
|
34633
|
+
const r = n.name === "orderedList" ? My : Ay, o = { ...e }, i3 = gd$1(o.abstracts), s = {
|
|
34634
34634
|
...r,
|
|
34635
34635
|
attributes: {
|
|
34636
34636
|
...r.attributes,
|
|
@@ -34650,10 +34650,10 @@ Actual: ` + p3.attribValue
|
|
|
34650
34650
|
]
|
|
34651
34651
|
};
|
|
34652
34652
|
return o.definitions[t] = a, o;
|
|
34653
|
-
},
|
|
34653
|
+
}, Dy = (t, e) => {
|
|
34654
34654
|
const { definitions: n, abstracts: r } = e, o = n[t].elements[0].attributes["w:val"];
|
|
34655
34655
|
return delete n[t], delete r[o], e;
|
|
34656
|
-
},
|
|
34656
|
+
}, Ny = (t) => (e) => {
|
|
34657
34657
|
const { tr: n, state: r, dispatch: o, editor: i3 } = e, s = le$2(t, r.schema), { $from: a, $to: l, node: c3 } = r.selection;
|
|
34658
34658
|
if (c3 && c3.isBlock || a.depth < 2 || !a.sameParent(l))
|
|
34659
34659
|
return false;
|
|
@@ -34705,59 +34705,59 @@ Actual: ` + p3.attribValue
|
|
|
34705
34705
|
n.ensureMarks(y), n.setMeta("splitListItem", y);
|
|
34706
34706
|
}
|
|
34707
34707
|
return true;
|
|
34708
|
-
},
|
|
34708
|
+
}, Ey = (t) => ({ state: e, dispatch: n }) => {
|
|
34709
34709
|
const r = le$2(t, e.schema);
|
|
34710
|
-
return
|
|
34711
|
-
},
|
|
34710
|
+
return Sy(r)(e, n);
|
|
34711
|
+
}, Iy = (t) => ({ state: e, dispatch: n }) => {
|
|
34712
34712
|
const r = le$2(t, e.schema);
|
|
34713
|
-
return
|
|
34714
|
-
},
|
|
34713
|
+
return vy(r)(e, n);
|
|
34714
|
+
}, Py = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
34715
34715
|
__proto__: null,
|
|
34716
|
-
clearNodes:
|
|
34717
|
-
command:
|
|
34718
|
-
createParagraphNear:
|
|
34719
|
-
deleteSelection:
|
|
34720
|
-
exitCode:
|
|
34721
|
-
first:
|
|
34722
|
-
insertContent:
|
|
34723
|
-
insertContentAt:
|
|
34724
|
-
insertTabChar:
|
|
34725
|
-
insertTabNode:
|
|
34726
|
-
joinBackward:
|
|
34727
|
-
joinDown:
|
|
34728
|
-
joinForward:
|
|
34729
|
-
joinUp:
|
|
34730
|
-
liftEmptyBlock:
|
|
34731
|
-
liftListItem:
|
|
34732
|
-
newlineInCode:
|
|
34733
|
-
resetAttributes:
|
|
34734
|
-
selectAll:
|
|
34735
|
-
selectNodeBackward:
|
|
34736
|
-
selectNodeForward:
|
|
34737
|
-
selectTextblockEnd:
|
|
34738
|
-
selectTextblockStart:
|
|
34739
|
-
setMark:
|
|
34740
|
-
setMeta:
|
|
34741
|
-
setNode:
|
|
34742
|
-
sinkListItem:
|
|
34743
|
-
splitBlock:
|
|
34744
|
-
splitListItem:
|
|
34745
|
-
toggleList:
|
|
34746
|
-
toggleMark:
|
|
34747
|
-
toggleNode:
|
|
34748
|
-
undoInputRule:
|
|
34749
|
-
unsetAllMarks:
|
|
34750
|
-
unsetMark:
|
|
34751
|
-
updateAttributes:
|
|
34752
|
-
wrapInList:
|
|
34753
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
34716
|
+
clearNodes: Gg,
|
|
34717
|
+
command: Mg,
|
|
34718
|
+
createParagraphNear: Hg,
|
|
34719
|
+
deleteSelection: ty,
|
|
34720
|
+
exitCode: Wg,
|
|
34721
|
+
first: xg,
|
|
34722
|
+
insertContent: fy,
|
|
34723
|
+
insertContentAt: my,
|
|
34724
|
+
insertTabChar: Ag,
|
|
34725
|
+
insertTabNode: Og,
|
|
34726
|
+
joinBackward: sy,
|
|
34727
|
+
joinDown: iy,
|
|
34728
|
+
joinForward: ay,
|
|
34729
|
+
joinUp: oy,
|
|
34730
|
+
liftEmptyBlock: Vg,
|
|
34731
|
+
liftListItem: Iy,
|
|
34732
|
+
newlineInCode: jg,
|
|
34733
|
+
resetAttributes: ry,
|
|
34734
|
+
selectAll: ey,
|
|
34735
|
+
selectNodeBackward: ly,
|
|
34736
|
+
selectNodeForward: cy,
|
|
34737
|
+
selectTextblockEnd: uy,
|
|
34738
|
+
selectTextblockStart: dy,
|
|
34739
|
+
setMark: qg,
|
|
34740
|
+
setMeta: Tg,
|
|
34741
|
+
setNode: Zg,
|
|
34742
|
+
sinkListItem: Ey,
|
|
34743
|
+
splitBlock: $g,
|
|
34744
|
+
splitListItem: Ny,
|
|
34745
|
+
toggleList: Oy,
|
|
34746
|
+
toggleMark: Yg,
|
|
34747
|
+
toggleNode: Qg,
|
|
34748
|
+
undoInputRule: gy,
|
|
34749
|
+
unsetAllMarks: Jg,
|
|
34750
|
+
unsetMark: Xg,
|
|
34751
|
+
updateAttributes: ny,
|
|
34752
|
+
wrapInList: xy
|
|
34753
|
+
}, Symbol.toStringTag, { value: "Module" })), Ry = Q$1.create({
|
|
34754
34754
|
name: "commands",
|
|
34755
34755
|
addCommands() {
|
|
34756
|
-
return { ...
|
|
34756
|
+
return { ...Py };
|
|
34757
34757
|
}
|
|
34758
|
-
}),
|
|
34758
|
+
}), Ly = () => ["iPad Simulator", "iPhone Simulator", "iPod Simulator", "iPad", "iPhone", "iPod"].includes(
|
|
34759
34759
|
navigator.platform
|
|
34760
|
-
),
|
|
34760
|
+
), Fy = () => typeof navigator < "u" ? /Mac/.test(navigator.platform) : false, By = (t) => {
|
|
34761
34761
|
t.commands.first(({ commands: e }) => [
|
|
34762
34762
|
() => e.newlineInCode(),
|
|
34763
34763
|
() => e.createParagraphNear(),
|
|
@@ -34778,11 +34778,11 @@ Actual: ` + p3.attribValue
|
|
|
34778
34778
|
() => e.joinForward(),
|
|
34779
34779
|
() => e.selectNodeForward()
|
|
34780
34780
|
]);
|
|
34781
|
-
},
|
|
34781
|
+
}, _y = Q$1.create({
|
|
34782
34782
|
name: "keymap",
|
|
34783
34783
|
addShortcuts() {
|
|
34784
34784
|
const t = {
|
|
34785
|
-
Enter: () =>
|
|
34785
|
+
Enter: () => By(this.editor),
|
|
34786
34786
|
"Mod-Enter": () => this.editor.commands.exitCode(),
|
|
34787
34787
|
Backspace: () => Xn$2(this.editor),
|
|
34788
34788
|
"Mod-Backspace": () => Xn$2(this.editor),
|
|
@@ -34805,9 +34805,9 @@ Actual: ` + p3.attribValue
|
|
|
34805
34805
|
"Ctrl-e": () => this.editor.commands.selectTextblockEnd(),
|
|
34806
34806
|
"Ctrl-t": () => this.editor.commands.insertTabChar()
|
|
34807
34807
|
};
|
|
34808
|
-
return
|
|
34808
|
+
return Fy() || Ly() ? n : e;
|
|
34809
34809
|
}
|
|
34810
|
-
}),
|
|
34810
|
+
}), zy = Q$1.create({
|
|
34811
34811
|
name: "editable",
|
|
34812
34812
|
addPmPlugins() {
|
|
34813
34813
|
return [new bp$2({
|
|
@@ -34817,7 +34817,7 @@ Actual: ` + p3.attribValue
|
|
|
34817
34817
|
}
|
|
34818
34818
|
})];
|
|
34819
34819
|
}
|
|
34820
|
-
}),
|
|
34820
|
+
}), $y = Q$1.create({
|
|
34821
34821
|
name: "editorFocus",
|
|
34822
34822
|
addPmPlugins() {
|
|
34823
34823
|
const t = this.editor;
|
|
@@ -34931,7 +34931,7 @@ Actual: ` + p3.attribValue
|
|
|
34931
34931
|
)) : d.attrs.track && !d.attrs.track.find((f3) => f3.type === Ii$2) && ["bulletList", "orderedList"].includes(d.type.name);
|
|
34932
34932
|
}), { deletionMark: a, deletionMap: l, nodes: c3 };
|
|
34933
34933
|
};
|
|
34934
|
-
function
|
|
34934
|
+
function Vy(t) {
|
|
34935
34935
|
const e = {
|
|
34936
34936
|
bulletList: 1,
|
|
34937
34937
|
orderedList: 2
|
|
@@ -34981,7 +34981,7 @@ Actual: ` + p3.attribValue
|
|
|
34981
34981
|
}
|
|
34982
34982
|
};
|
|
34983
34983
|
}
|
|
34984
|
-
function
|
|
34984
|
+
function Hy(t, e, n) {
|
|
34985
34985
|
const r = [];
|
|
34986
34986
|
return t === e ? n.resolve(t).marks().forEach((o) => {
|
|
34987
34987
|
const i3 = n.resolve(t - 1), s = Is(i3, o.type);
|
|
@@ -35043,14 +35043,14 @@ Actual: ` + p3.attribValue
|
|
|
35043
35043
|
findMark: Eo$1,
|
|
35044
35044
|
findParentNode: He$2,
|
|
35045
35045
|
findParentNodeClosestToPos: Bo$1,
|
|
35046
|
-
generateDocxListAttributes:
|
|
35046
|
+
generateDocxListAttributes: Vy,
|
|
35047
35047
|
generateDocxRandomId: Ni$2,
|
|
35048
35048
|
generateRandom32BitHex: tu$2,
|
|
35049
|
-
getActiveFormatting:
|
|
35049
|
+
getActiveFormatting: Ef$1,
|
|
35050
35050
|
getExtensionConfigField: N,
|
|
35051
35051
|
getMarkRange: Is,
|
|
35052
35052
|
getMarkType: xt$1,
|
|
35053
|
-
getMarksBetween:
|
|
35053
|
+
getMarksBetween: Hy,
|
|
35054
35054
|
getMarksFromSelection: No$1,
|
|
35055
35055
|
getNodeType: le$2,
|
|
35056
35056
|
getSchemaTypeByName: Yn$2,
|
|
@@ -35062,7 +35062,7 @@ Actual: ` + p3.attribValue
|
|
|
35062
35062
|
isNodeActive: So$1,
|
|
35063
35063
|
isTextSelection: hd$1,
|
|
35064
35064
|
posToDOMRect: kd$1
|
|
35065
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
35065
|
+
}, Symbol.toStringTag, { value: "Module" })), jy = (t, e, n) => {
|
|
35066
35066
|
const r = t.resolve(e), o = r.parent, i3 = o.childAfter(r.parentOffset);
|
|
35067
35067
|
if (!i3.node)
|
|
35068
35068
|
return null;
|
|
@@ -35092,11 +35092,11 @@ Actual: ` + p3.attribValue
|
|
|
35092
35092
|
throw new Error('Invalid "predicate" parameter');
|
|
35093
35093
|
} else throw new Error('Invalid "node" parameter');
|
|
35094
35094
|
return xd$1(t, n).filter((r) => e(r.node));
|
|
35095
|
-
}, Ad$1 = (t, e) => Md$1(t, (n) => n.isInline, e),
|
|
35095
|
+
}, Ad$1 = (t, e) => Md$1(t, (n) => n.isInline, e), Wy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
35096
35096
|
__proto__: null,
|
|
35097
35097
|
findChildren: Md$1,
|
|
35098
35098
|
findInlineNodes: Ad$1,
|
|
35099
|
-
findMarkPosition:
|
|
35099
|
+
findMarkPosition: jy,
|
|
35100
35100
|
flatten: xd$1
|
|
35101
35101
|
}, Symbol.toStringTag, { value: "Module" })), Ls = (t, e = null) => {
|
|
35102
35102
|
const n = [], r = Ad$1(t.doc);
|
|
@@ -35110,7 +35110,7 @@ Actual: ` + p3.attribValue
|
|
|
35110
35110
|
});
|
|
35111
35111
|
});
|
|
35112
35112
|
}), e ? n.filter(({ mark: o }) => o.attrs.id === e) : n) : n;
|
|
35113
|
-
}, de = new xp$2("TrackChangesBase"),
|
|
35113
|
+
}, de = new xp$2("TrackChangesBase"), Uy = (t = {}) => new bp$2({
|
|
35114
35114
|
key: de,
|
|
35115
35115
|
state: {
|
|
35116
35116
|
init(e, n) {
|
|
@@ -35231,10 +35231,10 @@ Actual: ` + p3.attribValue
|
|
|
35231
35231
|
}
|
|
35232
35232
|
}), F.create(t.doc, r)) : F.empty;
|
|
35233
35233
|
}, Pe = "commentMark", Ja$1 = ({ commentId: t, state: e, tr: n, dispatch: r }) => {
|
|
35234
|
-
|
|
35234
|
+
qy(t, e.doc).forEach(({ from: i3, to: s }) => {
|
|
35235
35235
|
n.removeMark(i3, s, e.schema.marks[Pe]);
|
|
35236
35236
|
}), r(n);
|
|
35237
|
-
},
|
|
35237
|
+
}, qy = (t, e) => {
|
|
35238
35238
|
const n = [];
|
|
35239
35239
|
return e.descendants((r, o) => {
|
|
35240
35240
|
const { marks: i3 } = r, s = i3.find((a) => a.type.name === Pe);
|
|
@@ -35243,7 +35243,7 @@ Actual: ` + p3.attribValue
|
|
|
35243
35243
|
t === l && n.push({ from: o, to: o + r.nodeSize });
|
|
35244
35244
|
}
|
|
35245
35245
|
}), n;
|
|
35246
|
-
},
|
|
35246
|
+
}, Ky = (t, e, n, r = []) => {
|
|
35247
35247
|
const o = [], i3 = [], s = /* @__PURE__ */ new Set();
|
|
35248
35248
|
return t.descendants((a, l) => {
|
|
35249
35249
|
(a.marks?.filter((d) => d.type.name === Pe)).forEach((d) => {
|
|
@@ -35289,7 +35289,7 @@ Actual: ` + p3.attribValue
|
|
|
35289
35289
|
"w:id": e,
|
|
35290
35290
|
internal: n
|
|
35291
35291
|
};
|
|
35292
|
-
},
|
|
35292
|
+
}, Xy = (t, e, n, r) => {
|
|
35293
35293
|
const o = [], i3 = [];
|
|
35294
35294
|
t.descendants((s, a) => {
|
|
35295
35295
|
const { type: l } = s;
|
|
@@ -35316,7 +35316,7 @@ Actual: ` + p3.attribValue
|
|
|
35316
35316
|
}), i3.sort((s, a) => a.start - s.start).forEach(({ start: s, end: a }) => {
|
|
35317
35317
|
e.delete(s, a);
|
|
35318
35318
|
});
|
|
35319
|
-
},
|
|
35319
|
+
}, Jy = (t = {}) => {
|
|
35320
35320
|
const { before: e = [], after: n = [] } = t, r = new Set(e.map((h3) => h3.type)), o = new Set(n.map((h3) => h3.type)), i3 = [...o].filter((h3) => !r.has(h3)), s = [...r].filter((h3) => !o.has(h3)), a = [], l = i3.filter((h3) => !["textStyle", "commentMark"].includes(h3));
|
|
35321
35321
|
l.length && a.push(`Added formatting: ${l.join(", ")}`);
|
|
35322
35322
|
const c3 = s.filter((h3) => !["textStyle", "commentMark"].includes(h3));
|
|
@@ -35335,11 +35335,11 @@ Actual: ` + p3.attribValue
|
|
|
35335
35335
|
}
|
|
35336
35336
|
}
|
|
35337
35337
|
}), f3.length && a.push(`Modified text style: ${f3.join(", ")}`), a.length ? a.join(". ") : "No formatting changes.";
|
|
35338
|
-
},
|
|
35338
|
+
}, Yy = ({ activeThreadId: t, threadId: e, isInternal: n, editor: r }) => {
|
|
35339
35339
|
if (!r.options.isInternal && n) return "transparent";
|
|
35340
35340
|
const o = he$1.getState(r.state), i3 = n ? o.internalColor : o.externalColor, s = t == e ? "44" : "22";
|
|
35341
35341
|
return `${i3}${s}`;
|
|
35342
|
-
}, on$3 = new xp$2("paginationPlugin"),
|
|
35342
|
+
}, on$3 = new xp$2("paginationPlugin"), Gy = async (t) => {
|
|
35343
35343
|
if (!t.converter) return;
|
|
35344
35344
|
const e = { headers: {}, footers: {} }, n = t.converter.headerIds, r = t.converter.footerIds;
|
|
35345
35345
|
for (let o in n) {
|
|
@@ -35405,7 +35405,7 @@ Actual: ` + p3.attribValue
|
|
|
35405
35405
|
}), n({ height: d, sectionEditor: c3, sectionContainer: r });
|
|
35406
35406
|
});
|
|
35407
35407
|
});
|
|
35408
|
-
}), Fs = [yr$2, Ii$2, Ri$2], he$1 = new xp$2("comments"),
|
|
35408
|
+
}), Fs = [yr$2, Ii$2, Ri$2], he$1 = new xp$2("comments"), Zy = Q$1.create({
|
|
35409
35409
|
name: "comments",
|
|
35410
35410
|
addCommands() {
|
|
35411
35411
|
return {
|
|
@@ -35480,7 +35480,7 @@ Actual: ` + p3.attribValue
|
|
|
35480
35480
|
allCommentPositions: d.allCommentPositions
|
|
35481
35481
|
};
|
|
35482
35482
|
const f3 = o.getMeta(de), p3 = i3.trackedChanges;
|
|
35483
|
-
f3 && (i3.trackedChanges =
|
|
35483
|
+
f3 && (i3.trackedChanges = eb(
|
|
35484
35484
|
f3,
|
|
35485
35485
|
p3,
|
|
35486
35486
|
a,
|
|
@@ -35489,7 +35489,7 @@ Actual: ` + p3.attribValue
|
|
|
35489
35489
|
const h3 = d?.type === "setActiveComment";
|
|
35490
35490
|
if (!o.docChanged && o.selectionSet || h3) {
|
|
35491
35491
|
const { selection: m } = o;
|
|
35492
|
-
let g =
|
|
35492
|
+
let g = Qy(a.doc, m);
|
|
35493
35493
|
if (h3 && (g = d.activeThreadId), n !== g) {
|
|
35494
35494
|
n = g;
|
|
35495
35495
|
const w = {
|
|
@@ -35533,7 +35533,7 @@ Actual: ` + p3.attribValue
|
|
|
35533
35533
|
});
|
|
35534
35534
|
const _ = L3.internal;
|
|
35535
35535
|
S || (S = n === x);
|
|
35536
|
-
let V =
|
|
35536
|
+
let V = Yy({ activeThreadId: n, threadId: x, isInternal: _, editor: t });
|
|
35537
35537
|
const j = $.inline(w, w + b.nodeSize, {
|
|
35538
35538
|
style: `background-color: ${V};`,
|
|
35539
35539
|
"data-thread-id": x,
|
|
@@ -35595,7 +35595,7 @@ Actual: ` + p3.attribValue
|
|
|
35595
35595
|
const s = t[e];
|
|
35596
35596
|
s.start = Math.min(s.start, n), s.end = Math.max(s.end, n + o.nodeSize), s.bounds.top = Math.min(s.bounds.top, r.top), s.bounds.bottom = Math.max(s.bounds.bottom, r.bottom);
|
|
35597
35597
|
}
|
|
35598
|
-
},
|
|
35598
|
+
}, Qy = (t, e) => {
|
|
35599
35599
|
if (!e) return;
|
|
35600
35600
|
const { $from: n, $to: r } = e;
|
|
35601
35601
|
if (n.pos !== r.pos || !t.nodeAt(n.pos)) return;
|
|
@@ -35647,7 +35647,7 @@ Actual: ` + p3.attribValue
|
|
|
35647
35647
|
mark: c3
|
|
35648
35648
|
});
|
|
35649
35649
|
}), s;
|
|
35650
|
-
},
|
|
35650
|
+
}, eb = (t, e, n, r) => {
|
|
35651
35651
|
const {
|
|
35652
35652
|
insertedMark: o,
|
|
35653
35653
|
deletionMark: i3,
|
|
@@ -35668,7 +35668,7 @@ Actual: ` + p3.attribValue
|
|
|
35668
35668
|
if (h3.marks.find((b) => b.type.name === Ri$2))
|
|
35669
35669
|
return f3 = [h3], false;
|
|
35670
35670
|
});
|
|
35671
|
-
const p3 =
|
|
35671
|
+
const p3 = nb({
|
|
35672
35672
|
documentId: r.options.documentId,
|
|
35673
35673
|
event: d ? "add" : "update",
|
|
35674
35674
|
marks: {
|
|
@@ -35681,7 +35681,7 @@ Actual: ` + p3.attribValue
|
|
|
35681
35681
|
newEditorState: n
|
|
35682
35682
|
});
|
|
35683
35683
|
return p3 && r.emit("commentsUpdate", p3), l;
|
|
35684
|
-
},
|
|
35684
|
+
}, tb = ({
|
|
35685
35685
|
state: t,
|
|
35686
35686
|
node: e,
|
|
35687
35687
|
mark: n,
|
|
@@ -35691,9 +35691,9 @@ Actual: ` + p3.attribValue
|
|
|
35691
35691
|
deletionNodes: s = []
|
|
35692
35692
|
}) => {
|
|
35693
35693
|
let a = "", l = "";
|
|
35694
|
-
if (o === yr$2 && (a = e?.text ?? ""), o === Ri$2 && (a =
|
|
35694
|
+
if (o === yr$2 && (a = e?.text ?? ""), o === Ri$2 && (a = Jy(n.attrs)), (o === Ii$2 || i3) && (l = e?.text ?? "", i3)) {
|
|
35695
35695
|
let { id: c3 } = r.deletionMark.attrs;
|
|
35696
|
-
l =
|
|
35696
|
+
l = rb(t.doc, (u) => {
|
|
35697
35697
|
const { marks: f3 = [] } = u, p3 = f3.filter((m) => Fs.includes(m.type.name));
|
|
35698
35698
|
if (!p3.length) return false;
|
|
35699
35699
|
if (p3.find((m) => m.attrs.id === c3)) return true;
|
|
@@ -35703,7 +35703,7 @@ Actual: ` + p3.attribValue
|
|
|
35703
35703
|
deletionText: l,
|
|
35704
35704
|
trackedChangeText: a
|
|
35705
35705
|
};
|
|
35706
|
-
},
|
|
35706
|
+
}, nb = ({ event: t, marks: e, deletionNodes: n, nodes: r, newEditorState: o, documentId: i3 }) => {
|
|
35707
35707
|
const s = e.insertedMark || e.deletionMark || e.formatMark, { type: a, attrs: l } = s, { name: c3 } = a, { author: d, authorEmail: u, date: f3 } = l, p3 = l.id, h3 = r[0], m = !!(e.insertedMark && e.deletionMark);
|
|
35708
35708
|
let g;
|
|
35709
35709
|
o.doc.descendants((y, S) => {
|
|
@@ -35711,7 +35711,7 @@ Actual: ` + p3.attribValue
|
|
|
35711
35711
|
if (!M3.length) return;
|
|
35712
35712
|
if (M3.find((x) => x.attrs.id === p3) && (g = y), g) return false;
|
|
35713
35713
|
});
|
|
35714
|
-
const { deletionText: b, trackedChangeText: w } =
|
|
35714
|
+
const { deletionText: b, trackedChangeText: w } = tb({
|
|
35715
35715
|
state: o,
|
|
35716
35716
|
node: g || h3,
|
|
35717
35717
|
mark: s,
|
|
@@ -35736,7 +35736,7 @@ Actual: ` + p3.attribValue
|
|
|
35736
35736
|
};
|
|
35737
35737
|
return t === "add" ? C.event = Dp$1.ADD : t === "update" && (C.event = Dp$1.UPDATE), C;
|
|
35738
35738
|
};
|
|
35739
|
-
function
|
|
35739
|
+
function rb(t, e) {
|
|
35740
35740
|
let n = null;
|
|
35741
35741
|
return t.descendants((r, o) => {
|
|
35742
35742
|
if (e(r) && (n = { node: r, pos: o }), n) return false;
|
|
@@ -35778,8 +35778,8 @@ Actual: ` + p3.attribValue
|
|
|
35778
35778
|
m.deletionNodes = w, m.deletionMark = g, o.appendMapping(b);
|
|
35779
35779
|
}
|
|
35780
35780
|
r.setMeta(de, m), r.setMeta(he$1, { type: "force" });
|
|
35781
|
+
}, ob = () => {
|
|
35781
35782
|
}, ib = () => {
|
|
35782
|
-
}, sb = () => {
|
|
35783
35783
|
}, Dd$1 = ({ state: t, tr: e, step: n, newTr: r, map: o, doc: i3, user: s, date: a }) => {
|
|
35784
35784
|
const l = {};
|
|
35785
35785
|
i3.nodesBetween(n.from, n.to, (c3, d) => {
|
|
@@ -35914,7 +35914,7 @@ Actual: ` + p3.attribValue
|
|
|
35914
35914
|
i3.setSelection(new tt$2(i3.doc.resolve(c3)));
|
|
35915
35915
|
}
|
|
35916
35916
|
return t.storedMarksSet && i3.setStoredMarks(t.storedMarks), t.scrolledIntoView && i3.scrollIntoView(), i3;
|
|
35917
|
-
},
|
|
35917
|
+
}, sb = (t) => {
|
|
35918
35918
|
const { state: e } = t, { dispatch: n } = t.view, { tr: r } = e;
|
|
35919
35919
|
if (n)
|
|
35920
35920
|
return e.doc.descendants((o, i3) => {
|
|
@@ -35935,13 +35935,13 @@ Actual: ` + p3.attribValue
|
|
|
35935
35935
|
});
|
|
35936
35936
|
}
|
|
35937
35937
|
}), n(r), true;
|
|
35938
|
-
},
|
|
35939
|
-
initial:
|
|
35938
|
+
}, ab = {
|
|
35939
|
+
initial: sb
|
|
35940
35940
|
}, Qa$1 = (t) => {
|
|
35941
|
-
if (t === "initial" || t === "0.4.14") return Object.values(
|
|
35941
|
+
if (t === "initial" || t === "0.4.14") return Object.values(ab);
|
|
35942
35942
|
};
|
|
35943
35943
|
var en$1, hs$1, O$1, Id$1, Pd$1, Wi$1, Rd$1, Ui$1, qi$1, Ki$1, Xi$1, Ji$1, Yi$1, Gi$1, Zi$1, Qi$1, Ld$1, Gn$2, Zn$2, Fd$1, Bd$1, _d$1, zd$1;
|
|
35944
|
-
const Xs = class Xs2 extends
|
|
35944
|
+
const Xs = class Xs2 extends ag {
|
|
35945
35945
|
constructor(n) {
|
|
35946
35946
|
super();
|
|
35947
35947
|
ft(this, O$1);
|
|
@@ -36304,7 +36304,7 @@ Actual: ` + p3.attribValue
|
|
|
36304
36304
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
36305
36305
|
*/
|
|
36306
36306
|
processCollaborationMigrations() {
|
|
36307
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.9.
|
|
36307
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.9.37"), !this.options.ydoc) return;
|
|
36308
36308
|
let r = this.options.ydoc.getMap("meta").get("version");
|
|
36309
36309
|
r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
|
|
36310
36310
|
const o = Qa$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
|
|
@@ -36359,7 +36359,7 @@ Actual: ` + p3.attribValue
|
|
|
36359
36359
|
* Creates extension service.
|
|
36360
36360
|
*/
|
|
36361
36361
|
Ki$1 = function() {
|
|
36362
|
-
const n = ["extension", "node", "mark"], r = [
|
|
36362
|
+
const n = ["extension", "node", "mark"], r = [zy, Ry, $y, _y], o = this.options.externalExtensions || [], i3 = [...r, ...this.options.extensions].filter(
|
|
36363
36363
|
(s) => n.includes(s?.type)
|
|
36364
36364
|
);
|
|
36365
36365
|
this.extensionService = zi$1.create(i3, o, this);
|
|
@@ -36404,7 +36404,7 @@ Actual: ` + p3.attribValue
|
|
|
36404
36404
|
try {
|
|
36405
36405
|
const { mode: r, fragment: o, isHeadless: i3, content: s, loadFromSchema: a } = this.options;
|
|
36406
36406
|
if (r === "docx")
|
|
36407
|
-
n = yd$1(this.converter, this.schema, this), n = I$1(this, O$1, Bd$1).call(this, n), o && i3 && (n =
|
|
36407
|
+
n = yd$1(this.converter, this.schema, this), n = I$1(this, O$1, Bd$1).call(this, n), o && i3 && (n = Ym(o, this.schema));
|
|
36408
36408
|
else if (r === "text")
|
|
36409
36409
|
if (s) {
|
|
36410
36410
|
let l = s;
|
|
@@ -36453,7 +36453,7 @@ Actual: ` + p3.attribValue
|
|
|
36453
36453
|
if (this.options.isHeadless || !this.extensionService) return;
|
|
36454
36454
|
if (this.options.extensions.find((r) => r.name === "pagination") && this.options.pagination) {
|
|
36455
36455
|
console.debug("🔗 [super-editor] Initializing pagination");
|
|
36456
|
-
const r = await
|
|
36456
|
+
const r = await Gy(this);
|
|
36457
36457
|
this.storage.pagination.sectionData = r;
|
|
36458
36458
|
const { state: o, dispatch: i3 } = this.view, s = o.tr.setMeta(on$3, { isReadyToInit: true });
|
|
36459
36459
|
i3(s);
|
|
@@ -36510,7 +36510,7 @@ Actual: ` + p3.attribValue
|
|
|
36510
36510
|
schema: this.schema,
|
|
36511
36511
|
doc: n
|
|
36512
36512
|
}), { tr: o, doc: i3 } = r;
|
|
36513
|
-
return
|
|
36513
|
+
return Xy(i3, o, this.schema, this.converter), r.apply(o).doc;
|
|
36514
36514
|
}, /**
|
|
36515
36515
|
* Prepare the document for export. Any necessary pre-export processing to the state
|
|
36516
36516
|
* can happen here.
|
|
@@ -36523,7 +36523,7 @@ Actual: ` + p3.attribValue
|
|
|
36523
36523
|
doc: this.state.doc,
|
|
36524
36524
|
plugins: this.state.plugins
|
|
36525
36525
|
}), { tr: o, doc: i3 } = r;
|
|
36526
|
-
return
|
|
36526
|
+
return Ky(i3, o, this.schema, n), r.apply(o).doc.toJSON();
|
|
36527
36527
|
}, /**
|
|
36528
36528
|
* Destroy collaboration provider and ydoc
|
|
36529
36529
|
*/
|
|
@@ -36597,10 +36597,10 @@ Actual: ` + p3.attribValue
|
|
|
36597
36597
|
return new Le2(...e);
|
|
36598
36598
|
}
|
|
36599
36599
|
};
|
|
36600
|
-
const
|
|
36600
|
+
const lb = /[\d-.]+(\w+)$/, cb = ["px", "rem", "em", "in", "q", "mm", "cm", "pt", "pc", "vh", "vw", "vmin", "vmax"];
|
|
36601
36601
|
function Ct$1(t = "0") {
|
|
36602
|
-
const e = t || "0", n = Number.parseFloat(e), o = (e.match(
|
|
36603
|
-
return [n,
|
|
36602
|
+
const e = t || "0", n = Number.parseFloat(e), o = (e.match(lb)?.[1] ?? "").toLowerCase();
|
|
36603
|
+
return [n, cb.includes(o) ? o : null];
|
|
36604
36604
|
}
|
|
36605
36605
|
const $d$1 = Q$1.create({
|
|
36606
36606
|
name: "color",
|
|
@@ -36882,14 +36882,14 @@ Actual: ` + p3.attribValue
|
|
|
36882
36882
|
};
|
|
36883
36883
|
}
|
|
36884
36884
|
});
|
|
36885
|
-
function
|
|
36885
|
+
function db(t = {}) {
|
|
36886
36886
|
return new bp$2({
|
|
36887
36887
|
view(e) {
|
|
36888
|
-
return new
|
|
36888
|
+
return new ub(e, t);
|
|
36889
36889
|
}
|
|
36890
36890
|
});
|
|
36891
36891
|
}
|
|
36892
|
-
class
|
|
36892
|
+
class ub {
|
|
36893
36893
|
constructor(e, n) {
|
|
36894
36894
|
var r;
|
|
36895
36895
|
this.editorView = e, this.cursorPos = null, this.element = null, this.timeout = -1, this.width = (r = n.width) !== null && r !== void 0 ? r : 1, this.color = n.color === false ? void 0 : n.color || "black", this.class = n.class, this.handlers = ["dragover", "dragend", "drop", "dragleave"].map((o) => {
|
|
@@ -36971,7 +36971,7 @@ Actual: ` + p3.attribValue
|
|
|
36971
36971
|
};
|
|
36972
36972
|
},
|
|
36973
36973
|
addPmPlugins() {
|
|
36974
|
-
return [
|
|
36974
|
+
return [db(this.options)];
|
|
36975
36975
|
}
|
|
36976
36976
|
});
|
|
36977
36977
|
let re$1 = class re2 extends ve$1 {
|
|
@@ -37013,7 +37013,7 @@ Actual: ` + p3.attribValue
|
|
|
37013
37013
|
*/
|
|
37014
37014
|
static valid(e) {
|
|
37015
37015
|
let n = e.parent;
|
|
37016
|
-
if (n.isTextblock || !
|
|
37016
|
+
if (n.isTextblock || !fb(e) || !pb(e))
|
|
37017
37017
|
return false;
|
|
37018
37018
|
let r = n.type.spec.allowGapCursor;
|
|
37019
37019
|
if (r != null)
|
|
@@ -37074,7 +37074,7 @@ Actual: ` + p3.attribValue
|
|
|
37074
37074
|
return re$1.valid(n) ? new re$1(n) : ve$1.near(n);
|
|
37075
37075
|
}
|
|
37076
37076
|
}
|
|
37077
|
-
function
|
|
37077
|
+
function fb(t) {
|
|
37078
37078
|
for (let e = t.depth; e >= 0; e--) {
|
|
37079
37079
|
let n = t.index(e), r = t.node(e);
|
|
37080
37080
|
if (n == 0) {
|
|
@@ -37091,7 +37091,7 @@ Actual: ` + p3.attribValue
|
|
|
37091
37091
|
}
|
|
37092
37092
|
return true;
|
|
37093
37093
|
}
|
|
37094
|
-
function
|
|
37094
|
+
function pb(t) {
|
|
37095
37095
|
for (let e = t.depth; e >= 0; e--) {
|
|
37096
37096
|
let n = t.indexAfter(e), r = t.node(e);
|
|
37097
37097
|
if (n == r.childCount) {
|
|
@@ -37108,20 +37108,20 @@ Actual: ` + p3.attribValue
|
|
|
37108
37108
|
}
|
|
37109
37109
|
return true;
|
|
37110
37110
|
}
|
|
37111
|
-
function
|
|
37111
|
+
function hb() {
|
|
37112
37112
|
return new bp$2({
|
|
37113
37113
|
props: {
|
|
37114
|
-
decorations:
|
|
37114
|
+
decorations: bb,
|
|
37115
37115
|
createSelectionBetween(t, e, n) {
|
|
37116
37116
|
return e.pos == n.pos && re$1.valid(n) ? new re$1(n) : null;
|
|
37117
37117
|
},
|
|
37118
|
-
handleClick:
|
|
37119
|
-
handleKeyDown:
|
|
37120
|
-
handleDOMEvents: { beforeinput:
|
|
37118
|
+
handleClick: gb,
|
|
37119
|
+
handleKeyDown: mb,
|
|
37120
|
+
handleDOMEvents: { beforeinput: yb }
|
|
37121
37121
|
}
|
|
37122
37122
|
});
|
|
37123
37123
|
}
|
|
37124
|
-
const
|
|
37124
|
+
const mb = Os({
|
|
37125
37125
|
ArrowLeft: Xr$1("horiz", -1),
|
|
37126
37126
|
ArrowRight: Xr$1("horiz", 1),
|
|
37127
37127
|
ArrowUp: Xr$1("vert", -1),
|
|
@@ -37140,7 +37140,7 @@ Actual: ` + p3.attribValue
|
|
|
37140
37140
|
return c3 ? (o && o(r.tr.setSelection(new re$1(c3))), true) : false;
|
|
37141
37141
|
};
|
|
37142
37142
|
}
|
|
37143
|
-
function
|
|
37143
|
+
function gb(t, e, n) {
|
|
37144
37144
|
if (!t || !t.editable)
|
|
37145
37145
|
return false;
|
|
37146
37146
|
let r = t.state.doc.resolve(e);
|
|
@@ -37149,7 +37149,7 @@ Actual: ` + p3.attribValue
|
|
|
37149
37149
|
let o = t.posAtCoords({ left: n.clientX, top: n.clientY });
|
|
37150
37150
|
return o && o.inside > -1 && Ge$1.isSelectable(t.state.doc.nodeAt(o.inside)) ? false : (t.dispatch(t.state.tr.setSelection(new re$1(r))), true);
|
|
37151
37151
|
}
|
|
37152
|
-
function
|
|
37152
|
+
function yb(t, e) {
|
|
37153
37153
|
if (e.inputType != "insertCompositionText" || !(t.state.selection instanceof re$1))
|
|
37154
37154
|
return false;
|
|
37155
37155
|
let { $from: n } = t.state.selection, r = n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);
|
|
@@ -37161,17 +37161,17 @@ Actual: ` + p3.attribValue
|
|
|
37161
37161
|
let i3 = t.state.tr.replace(n.pos, n.pos, new ue(o, 0, 0));
|
|
37162
37162
|
return i3.setSelection(tt$2.near(i3.doc.resolve(n.pos + 1))), t.dispatch(i3), false;
|
|
37163
37163
|
}
|
|
37164
|
-
function
|
|
37164
|
+
function bb(t) {
|
|
37165
37165
|
if (!(t.selection instanceof re$1))
|
|
37166
37166
|
return null;
|
|
37167
37167
|
let e = document.createElement("div");
|
|
37168
37168
|
return e.className = "ProseMirror-gapcursor", F.create(t.doc, [$.widget(t.selection.head, e, { key: "gapcursor" })]);
|
|
37169
37169
|
}
|
|
37170
|
-
const
|
|
37170
|
+
const wb = Q$1.create({
|
|
37171
37171
|
name: "gapCursor",
|
|
37172
37172
|
addPmPlugins() {
|
|
37173
37173
|
return [
|
|
37174
|
-
|
|
37174
|
+
hb()
|
|
37175
37175
|
];
|
|
37176
37176
|
},
|
|
37177
37177
|
extendNodeSchema(t) {
|
|
@@ -37183,7 +37183,7 @@ Actual: ` + p3.attribValue
|
|
|
37183
37183
|
})) ?? null
|
|
37184
37184
|
};
|
|
37185
37185
|
}
|
|
37186
|
-
}),
|
|
37186
|
+
}), vb = new xp$2("collaboration"), kb = Q$1.create({
|
|
37187
37187
|
name: "collaboration",
|
|
37188
37188
|
priority: 1e3,
|
|
37189
37189
|
addOptions() {
|
|
@@ -37197,9 +37197,9 @@ Actual: ` + p3.attribValue
|
|
|
37197
37197
|
addPmPlugins() {
|
|
37198
37198
|
if (!this.editor.options.ydoc) return [];
|
|
37199
37199
|
this.options.ydoc = this.editor.options.ydoc;
|
|
37200
|
-
const t =
|
|
37201
|
-
|
|
37202
|
-
const [e, n] =
|
|
37200
|
+
const t = Sb();
|
|
37201
|
+
xb(this.options.ydoc, this.editor), Mb(this.options.ydoc, this.editor, this);
|
|
37202
|
+
const [e, n] = Cb(this.options.ydoc, this.editor);
|
|
37203
37203
|
this.options.fragment = n;
|
|
37204
37204
|
const r = this.options.ydoc.getMap("media");
|
|
37205
37205
|
return r.observe((o) => {
|
|
@@ -37213,8 +37213,8 @@ Actual: ` + p3.attribValue
|
|
|
37213
37213
|
},
|
|
37214
37214
|
addCommands() {
|
|
37215
37215
|
return {
|
|
37216
|
-
undo: () => ({ tr: t, state: e, dispatch: n }) => (t.setMeta("preventDispatch", true), t.setMeta("inputType", "historyUndo"), zt$2.getState(e).undoManager.undoStack.length === 0 ? false : n ?
|
|
37217
|
-
redo: () => ({ tr: t, state: e, dispatch: n }) => (t.setMeta("preventDispatch", true), t.setMeta("inputType", "historyRedo"), zt$2.getState(e).undoManager.redoStack.length === 0 ? false : n ?
|
|
37216
|
+
undo: () => ({ tr: t, state: e, dispatch: n }) => (t.setMeta("preventDispatch", true), t.setMeta("inputType", "historyUndo"), zt$2.getState(e).undoManager.undoStack.length === 0 ? false : n ? ng(e) : true),
|
|
37217
|
+
redo: () => ({ tr: t, state: e, dispatch: n }) => (t.setMeta("preventDispatch", true), t.setMeta("inputType", "historyRedo"), zt$2.getState(e).undoManager.redoStack.length === 0 ? false : n ? rg(e) : true),
|
|
37218
37218
|
addImageToCollaboration: ({ mediaPath: t, fileData: e }) => () => {
|
|
37219
37219
|
if (!this.options.ydoc) return;
|
|
37220
37220
|
this.options.ydoc.getMap("media").set(t, e);
|
|
@@ -37228,14 +37228,14 @@ Actual: ` + p3.attribValue
|
|
|
37228
37228
|
"Mod-y": () => this.editor.commands.redo()
|
|
37229
37229
|
};
|
|
37230
37230
|
}
|
|
37231
|
-
}),
|
|
37231
|
+
}), Cb = (t, e) => {
|
|
37232
37232
|
const n = t.getXmlFragment("supereditor");
|
|
37233
|
-
return [
|
|
37233
|
+
return [Fm(n, { onFirstRender: () => {
|
|
37234
37234
|
if (!e.options.isNewFile) return;
|
|
37235
37235
|
const o = t.getMap("meta");
|
|
37236
37236
|
o.set("docx", e.options.content), o.set("fonts", e.options.fonts);
|
|
37237
37237
|
} }), n];
|
|
37238
|
-
},
|
|
37238
|
+
}, Sb = () => sg(), xb = (t, e) => {
|
|
37239
37239
|
const n = t.getMap("meta");
|
|
37240
37240
|
n.observe((r) => {
|
|
37241
37241
|
const o = n.get("lockedBy"), i3 = n.get("locked");
|
|
@@ -37243,7 +37243,7 @@ Actual: ` + p3.attribValue
|
|
|
37243
37243
|
const s = o?.email !== e.options.user?.email, a = e.options.editable !== !i3;
|
|
37244
37244
|
!s || !a || (i3 ? console.debug("--- Locking editor ---", o, e.options.user) : console.debug("--- Unlocking editor ---", o), e.setEditable(!i3), e.emit("locked", { editor: e, isLocked: i3, lockedBy: o }));
|
|
37245
37245
|
});
|
|
37246
|
-
},
|
|
37246
|
+
}, Mb = (t, e, n) => {
|
|
37247
37247
|
const r = e.options.collaborationProvider;
|
|
37248
37248
|
if (!r) return;
|
|
37249
37249
|
const o = () => {
|
|
@@ -37256,7 +37256,7 @@ Actual: ` + p3.attribValue
|
|
|
37256
37256
|
return;
|
|
37257
37257
|
}
|
|
37258
37258
|
r.on("synced", o);
|
|
37259
|
-
},
|
|
37259
|
+
}, Ab = Q$1.create({
|
|
37260
37260
|
name: "collaborationCursor",
|
|
37261
37261
|
priority: 999,
|
|
37262
37262
|
addOptions() {
|
|
@@ -37275,9 +37275,9 @@ Actual: ` + p3.attribValue
|
|
|
37275
37275
|
},
|
|
37276
37276
|
addPmPlugins() {
|
|
37277
37277
|
const { collaborationProvider: t = null } = this.editor.options;
|
|
37278
|
-
return t ? [
|
|
37278
|
+
return t ? [tg(t.awareness, { cursorBuilder: Ob })] : [];
|
|
37279
37279
|
}
|
|
37280
|
-
}),
|
|
37280
|
+
}), Ob = (t) => {
|
|
37281
37281
|
const e = document.createElement("span");
|
|
37282
37282
|
e.classList.add("ProseMirror-yjs-cursor"), e.setAttribute("style", `border-color: ${t.color}`);
|
|
37283
37283
|
const n = document.createElement("div");
|
|
@@ -37303,7 +37303,7 @@ Actual: ` + p3.attribValue
|
|
|
37303
37303
|
name: "text",
|
|
37304
37304
|
group: "inline",
|
|
37305
37305
|
inline: true
|
|
37306
|
-
}),
|
|
37306
|
+
}), Tb = J$1.create({
|
|
37307
37307
|
name: "run",
|
|
37308
37308
|
group: "inline",
|
|
37309
37309
|
content: "text*",
|
|
@@ -37323,7 +37323,7 @@ Actual: ` + p3.attribValue
|
|
|
37323
37323
|
}
|
|
37324
37324
|
});
|
|
37325
37325
|
function Mo$1(t) {
|
|
37326
|
-
return new
|
|
37326
|
+
return new wg({
|
|
37327
37327
|
match: t.match,
|
|
37328
37328
|
handler: ({
|
|
37329
37329
|
state: e,
|
|
@@ -37416,7 +37416,7 @@ Actual: ` + p3.attribValue
|
|
|
37416
37416
|
];
|
|
37417
37417
|
}
|
|
37418
37418
|
});
|
|
37419
|
-
function
|
|
37419
|
+
function Db(t = {}) {
|
|
37420
37420
|
return new bp$2({
|
|
37421
37421
|
key: new xp$2("orderedListSync"),
|
|
37422
37422
|
appendTransaction: (e, n, r) => {
|
|
@@ -37453,16 +37453,16 @@ Actual: ` + p3.attribValue
|
|
|
37453
37453
|
}
|
|
37454
37454
|
});
|
|
37455
37455
|
}
|
|
37456
|
-
function
|
|
37456
|
+
function Nb() {
|
|
37457
37457
|
return Math.floor(Math.random() * 4294967295).toString();
|
|
37458
37458
|
}
|
|
37459
|
-
function
|
|
37459
|
+
function Eb(t) {
|
|
37460
37460
|
return new bp$2({
|
|
37461
37461
|
key: new xp$2("orderedListMarker"),
|
|
37462
37462
|
appendTransaction: (e, n, r) => {
|
|
37463
37463
|
if (!(e.some((c3) => c3.docChanged) && !n.doc.eq(r.doc)))
|
|
37464
37464
|
return;
|
|
37465
|
-
let { doc: i3, tr: s } = r, a =
|
|
37465
|
+
let { doc: i3, tr: s } = r, a = Ib(r);
|
|
37466
37466
|
if (!a.size)
|
|
37467
37467
|
return;
|
|
37468
37468
|
let l = false;
|
|
@@ -37472,14 +37472,14 @@ Actual: ` + p3.attribValue
|
|
|
37472
37472
|
u.node.attrs.syncId;
|
|
37473
37473
|
let h3 = u.node.childCount !== f3.length;
|
|
37474
37474
|
if (p3) {
|
|
37475
|
-
f3.forEach((y) =>
|
|
37475
|
+
f3.forEach((y) => Rb(s, y)), l = true;
|
|
37476
37476
|
return;
|
|
37477
37477
|
}
|
|
37478
37478
|
if (h3) {
|
|
37479
|
-
let y =
|
|
37479
|
+
let y = Pb({ state: r, list: u });
|
|
37480
37480
|
y.length && (f3 = y);
|
|
37481
37481
|
}
|
|
37482
|
-
let m = f3[0], g =
|
|
37482
|
+
let m = f3[0], g = Lb({ state: r, listItems: f3 }), b = Gd$1(), w = {
|
|
37483
37483
|
lvlText: m.node.attrs.lvlText ?? b.lvlText,
|
|
37484
37484
|
listLevel: m.node.attrs.listLevel ?? b.listLevel,
|
|
37485
37485
|
listNumberingType: m.node.attrs.listNumberingType ?? b.listNumberingType
|
|
@@ -37511,7 +37511,7 @@ Actual: ` + p3.attribValue
|
|
|
37511
37511
|
}
|
|
37512
37512
|
});
|
|
37513
37513
|
}
|
|
37514
|
-
function
|
|
37514
|
+
function Ib(t) {
|
|
37515
37515
|
let { doc: e } = t, n = /* @__PURE__ */ new Map();
|
|
37516
37516
|
return e.descendants((r, o) => {
|
|
37517
37517
|
let { attrs: i3 } = r, s = r.type.name === "listItem", a = !!i3.listLevel?.length, l = !!i3.lvlText, c3 = i3.listNumberingType && i3.listNumberingType !== "bullet";
|
|
@@ -37521,7 +37521,7 @@ Actual: ` + p3.attribValue
|
|
|
37521
37521
|
}
|
|
37522
37522
|
}), n;
|
|
37523
37523
|
}
|
|
37524
|
-
function
|
|
37524
|
+
function Pb({ state: t, list: e }) {
|
|
37525
37525
|
let { doc: n } = t, r = [];
|
|
37526
37526
|
return n.descendants((o, i3) => {
|
|
37527
37527
|
let s = o.type.name === "listItem", a = n.resolve(i3);
|
|
@@ -37535,7 +37535,7 @@ Actual: ` + p3.attribValue
|
|
|
37535
37535
|
listNumberingType: n
|
|
37536
37536
|
};
|
|
37537
37537
|
}
|
|
37538
|
-
function
|
|
37538
|
+
function Rb(t, e) {
|
|
37539
37539
|
let { pos: n, node: r } = e;
|
|
37540
37540
|
t.setNodeMarkup(n, void 0, {
|
|
37541
37541
|
...r.attrs,
|
|
@@ -37547,7 +37547,7 @@ Actual: ` + p3.attribValue
|
|
|
37547
37547
|
function tl$1(t, e) {
|
|
37548
37548
|
return t.length === e.length && t.every((n, r) => n === e[r]);
|
|
37549
37549
|
}
|
|
37550
|
-
function
|
|
37550
|
+
function Lb({ state: t, listItems: e }) {
|
|
37551
37551
|
let { doc: n } = t, r = e[0], { lvlText: o, listLevel: i3, listNumberingType: s } = r.node.attrs, a = Gd$1({
|
|
37552
37552
|
lvlText: "%1.",
|
|
37553
37553
|
listLevel: [1],
|
|
@@ -37682,7 +37682,7 @@ Actual: ` + p3.attribValue
|
|
|
37682
37682
|
return false;
|
|
37683
37683
|
let { $from: p3 } = r.selection, h3 = r.doc.nodeAt(f3), m = p3.after(), g = r.doc.nodeAt(m), b = h3?.type.name === this.name, w = g?.type.name === this.name;
|
|
37684
37684
|
if (b && w) {
|
|
37685
|
-
let C = h3.attrs.order || 1, y = h3.childCount, S = h3.attrs.syncId, k = y + C, M3 = S ||
|
|
37685
|
+
let C = h3.attrs.order || 1, y = h3.childCount, S = h3.attrs.syncId, k = y + C, M3 = S || Nb();
|
|
37686
37686
|
r.setNodeMarkup(m, void 0, {
|
|
37687
37687
|
...g.attrs,
|
|
37688
37688
|
order: k,
|
|
@@ -37704,7 +37704,7 @@ Actual: ` + p3.attribValue
|
|
|
37704
37704
|
};
|
|
37705
37705
|
},
|
|
37706
37706
|
addPmPlugins() {
|
|
37707
|
-
return [
|
|
37707
|
+
return [Eb(this.editor), Db()];
|
|
37708
37708
|
},
|
|
37709
37709
|
addInputRules() {
|
|
37710
37710
|
let t = Mo$1({
|
|
@@ -37725,19 +37725,19 @@ Actual: ` + p3.attribValue
|
|
|
37725
37725
|
t
|
|
37726
37726
|
];
|
|
37727
37727
|
}
|
|
37728
|
-
}),
|
|
37729
|
-
const r =
|
|
37728
|
+
}), Fb = ({ listLevel: t, lvlText: e, listNumberingType: n }) => {
|
|
37729
|
+
const r = $b[n];
|
|
37730
37730
|
return r ? r(t, e) : null;
|
|
37731
|
-
},
|
|
37732
|
-
decimal:
|
|
37733
|
-
lowerRoman:
|
|
37731
|
+
}, Bb = (t, e) => _s(t, e, String), Qd$1 = (t, e) => _s(t, e, Hb), _b = (t, e) => Qd$1(t, e).toLowerCase(), zb = (t, e) => eu$1(t, e).toLowerCase(), eu$1 = (t, e) => _s(t, e, (n) => jb(n)), $b = {
|
|
37732
|
+
decimal: Bb,
|
|
37733
|
+
lowerRoman: _b,
|
|
37734
37734
|
upperRoman: Qd$1,
|
|
37735
|
-
lowerLetter:
|
|
37735
|
+
lowerLetter: zb,
|
|
37736
37736
|
upperLetter: eu$1
|
|
37737
|
-
},
|
|
37737
|
+
}, Vb = (t, e) => t.reduce((n, r, o) => n.replace(`%${o + 1}`, r), e), _s = (t, e, n) => {
|
|
37738
37738
|
const r = t.map(n);
|
|
37739
|
-
return
|
|
37740
|
-
},
|
|
37739
|
+
return Vb(r, e);
|
|
37740
|
+
}, Hb = (t) => {
|
|
37741
37741
|
const e = [
|
|
37742
37742
|
{ value: 1e3, numeral: "M" },
|
|
37743
37743
|
{ value: 900, numeral: "CM" },
|
|
@@ -37758,7 +37758,7 @@ Actual: ` + p3.attribValue
|
|
|
37758
37758
|
for (; t >= r; )
|
|
37759
37759
|
n += o, t -= r;
|
|
37760
37760
|
return n;
|
|
37761
|
-
},
|
|
37761
|
+
}, jb = (t) => {
|
|
37762
37762
|
let e = "";
|
|
37763
37763
|
const n = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
37764
37764
|
for (; t > 0; ) {
|
|
@@ -37767,7 +37767,7 @@ Actual: ` + p3.attribValue
|
|
|
37767
37767
|
}
|
|
37768
37768
|
return e;
|
|
37769
37769
|
};
|
|
37770
|
-
function
|
|
37770
|
+
function Wb(t = {}) {
|
|
37771
37771
|
return new bp$2({
|
|
37772
37772
|
key: new xp$2("styledListMarker"),
|
|
37773
37773
|
state: {
|
|
@@ -37800,11 +37800,11 @@ Actual: ` + p3.attribValue
|
|
|
37800
37800
|
let i3 = Rs(n, (s) => s.type.name === "listItem");
|
|
37801
37801
|
return i3.length && i3.forEach(({ node: s, pos: a }) => {
|
|
37802
37802
|
let l = xt$1("textStyle", n.type.schema), c3 = [...e.filter((b) => b.type === l)];
|
|
37803
|
-
if (
|
|
37803
|
+
if (qb(s) && e.length) {
|
|
37804
37804
|
const b = e.filter((w) => w.type === l);
|
|
37805
37805
|
c3.push(...b);
|
|
37806
37806
|
} else {
|
|
37807
|
-
const b =
|
|
37807
|
+
const b = Ub(s, n, l);
|
|
37808
37808
|
c3.push(...b);
|
|
37809
37809
|
}
|
|
37810
37810
|
let u = null, f3 = null;
|
|
@@ -37842,7 +37842,7 @@ Actual: ` + p3.attribValue
|
|
|
37842
37842
|
n.push(a);
|
|
37843
37843
|
}), n;
|
|
37844
37844
|
}
|
|
37845
|
-
function
|
|
37845
|
+
function Ub(t, e, n) {
|
|
37846
37846
|
let r = [];
|
|
37847
37847
|
return t.forEach((o) => {
|
|
37848
37848
|
o.type.name === "paragraph" && o.forEach((i3) => {
|
|
@@ -37854,7 +37854,7 @@ Actual: ` + p3.attribValue
|
|
|
37854
37854
|
});
|
|
37855
37855
|
}), r;
|
|
37856
37856
|
}
|
|
37857
|
-
function
|
|
37857
|
+
function qb(t) {
|
|
37858
37858
|
return t.childCount === 1 && t.firstChild?.type.name === "paragraph" && t.firstChild?.content.size === 0;
|
|
37859
37859
|
}
|
|
37860
37860
|
const tu$1 = J$1.create({
|
|
@@ -37885,7 +37885,7 @@ Actual: ` + p3.attribValue
|
|
|
37885
37885
|
let { listLevel: e, listNumberingType: n, lvlText: r } = t;
|
|
37886
37886
|
if (!!!e?.length || !r)
|
|
37887
37887
|
return {};
|
|
37888
|
-
let i3 =
|
|
37888
|
+
let i3 = Fb({
|
|
37889
37889
|
listLevel: e,
|
|
37890
37890
|
lvlText: r,
|
|
37891
37891
|
listNumberingType: n
|
|
@@ -37977,12 +37977,12 @@ Actual: ` + p3.attribValue
|
|
|
37977
37977
|
};
|
|
37978
37978
|
},
|
|
37979
37979
|
addPmPlugins() {
|
|
37980
|
-
return [
|
|
37980
|
+
return [Wb()];
|
|
37981
37981
|
}
|
|
37982
|
-
}), io$2 = new xp$2("linkedStyles"),
|
|
37982
|
+
}), io$2 = new xp$2("linkedStyles"), Kb = Q$1.create({
|
|
37983
37983
|
name: "linkedStyles",
|
|
37984
37984
|
addPmPlugins() {
|
|
37985
|
-
return [
|
|
37985
|
+
return [Xb(this.editor)];
|
|
37986
37986
|
},
|
|
37987
37987
|
addCommands() {
|
|
37988
37988
|
return {
|
|
@@ -38002,7 +38002,7 @@ Actual: ` + p3.attribValue
|
|
|
38002
38002
|
}
|
|
38003
38003
|
};
|
|
38004
38004
|
}
|
|
38005
|
-
}),
|
|
38005
|
+
}), Xb = (t) => new bp$2({
|
|
38006
38006
|
key: io$2,
|
|
38007
38007
|
state: {
|
|
38008
38008
|
init(e, { doc: n, selection: r }) {
|
|
@@ -38034,14 +38034,14 @@ Actual: ` + p3.attribValue
|
|
|
38034
38034
|
return t.descendants((o, i3) => {
|
|
38035
38035
|
const { name: s } = o.type;
|
|
38036
38036
|
if (o?.attrs?.styleId && (r = o.attrs.styleId), s === "paragraph" && !o.attrs?.styleId && (r = null), s !== "text") return;
|
|
38037
|
-
const a =
|
|
38037
|
+
const a = Yb(r, e);
|
|
38038
38038
|
if (!a) return;
|
|
38039
|
-
const l =
|
|
38039
|
+
const l = Jb(a, o);
|
|
38040
38040
|
if (!l) return;
|
|
38041
38041
|
const c3 = $.inline(i3, i3 + o.nodeSize, { style: l });
|
|
38042
38042
|
n.push(c3);
|
|
38043
38043
|
}), F.create(t, n);
|
|
38044
|
-
},
|
|
38044
|
+
}, Jb = (t, e, n = true) => {
|
|
38045
38045
|
if (!t?.definition?.styles) return "";
|
|
38046
38046
|
const r = {};
|
|
38047
38047
|
return Object.entries(t.definition.styles).forEach(([o, i3]) => {
|
|
@@ -38057,7 +38057,7 @@ Actual: ` + p3.attribValue
|
|
|
38057
38057
|
a.push({ key: c3.type.name, value: c3.attrs[s] });
|
|
38058
38058
|
}), !a.find((c3) => c3.key === s))
|
|
38059
38059
|
if (s === "spacing" && n) {
|
|
38060
|
-
const c3 =
|
|
38060
|
+
const c3 = Gb(i3);
|
|
38061
38061
|
Object.entries(c3).forEach(([d, u]) => {
|
|
38062
38062
|
r[d] = u;
|
|
38063
38063
|
});
|
|
@@ -38066,21 +38066,21 @@ Actual: ` + p3.attribValue
|
|
|
38066
38066
|
c3 && (r["margin-left"] = c3 + "px"), d && (r["margin-right"] = d + "px"), u && (r["text-indent"] = u + "px");
|
|
38067
38067
|
} else s === "bold" ? r["font-weight"] = "bold" : r[s] = i3;
|
|
38068
38068
|
}), Object.entries(r).map(([o, i3]) => `${o}: ${i3}`).join(";");
|
|
38069
|
-
},
|
|
38069
|
+
}, Yb = (t, e = []) => e.find((n) => n.id === t), Gb = (t) => {
|
|
38070
38070
|
const { lineSpaceBefore: e, lineSpaceAfter: n, line: r, lineRule: o } = t;
|
|
38071
38071
|
return {
|
|
38072
38072
|
"margin-top": e + "px",
|
|
38073
38073
|
"margin-bottom": n + "px",
|
|
38074
38074
|
"line-height": r
|
|
38075
38075
|
};
|
|
38076
|
-
},
|
|
38076
|
+
}, Zb = (t) => {
|
|
38077
38077
|
const { lineSpaceBefore: e, lineSpaceAfter: n, line: r, lineRule: o } = t;
|
|
38078
38078
|
return `
|
|
38079
38079
|
${e ? `margin-top: ${e}px;` : ""}
|
|
38080
38080
|
${n ? `margin-bottom: ${n}px;` : ""}
|
|
38081
38081
|
${r ? `line-height: ${r};` : ""}
|
|
38082
38082
|
`.trim();
|
|
38083
|
-
},
|
|
38083
|
+
}, Qb = (t) => {
|
|
38084
38084
|
let e = "";
|
|
38085
38085
|
for (const n of t)
|
|
38086
38086
|
switch (n.type) {
|
|
@@ -38118,7 +38118,7 @@ Actual: ` + p3.attribValue
|
|
|
38118
38118
|
renderDOM: (t) => {
|
|
38119
38119
|
const { spacing: e } = t;
|
|
38120
38120
|
if (!e) return {};
|
|
38121
|
-
const n =
|
|
38121
|
+
const n = Zb(e);
|
|
38122
38122
|
return n ? { style: n } : {};
|
|
38123
38123
|
}
|
|
38124
38124
|
},
|
|
@@ -38136,7 +38136,7 @@ Actual: ` + p3.attribValue
|
|
|
38136
38136
|
renderDOM: (t) => {
|
|
38137
38137
|
const { marksAttrs: e } = t;
|
|
38138
38138
|
if (!e?.length) return {};
|
|
38139
|
-
const n =
|
|
38139
|
+
const n = Qb(e);
|
|
38140
38140
|
return n ? { style: n } : {};
|
|
38141
38141
|
}
|
|
38142
38142
|
},
|
|
@@ -38215,7 +38215,7 @@ Actual: ` + p3.attribValue
|
|
|
38215
38215
|
{}
|
|
38216
38216
|
);
|
|
38217
38217
|
}
|
|
38218
|
-
}),
|
|
38218
|
+
}), e0 = J$1.create({
|
|
38219
38219
|
name: "commentRangeStart",
|
|
38220
38220
|
group: "inline",
|
|
38221
38221
|
inline: true,
|
|
@@ -38246,7 +38246,7 @@ Actual: ` + p3.attribValue
|
|
|
38246
38246
|
}
|
|
38247
38247
|
};
|
|
38248
38248
|
}
|
|
38249
|
-
}),
|
|
38249
|
+
}), t0 = J$1.create({
|
|
38250
38250
|
name: "commentRangeEnd",
|
|
38251
38251
|
group: "inline",
|
|
38252
38252
|
inline: true,
|
|
@@ -38273,7 +38273,7 @@ Actual: ` + p3.attribValue
|
|
|
38273
38273
|
}
|
|
38274
38274
|
};
|
|
38275
38275
|
}
|
|
38276
|
-
}),
|
|
38276
|
+
}), n0 = J$1.create({
|
|
38277
38277
|
name: "commentReference",
|
|
38278
38278
|
group: "inline",
|
|
38279
38279
|
inline: true,
|
|
@@ -38300,7 +38300,7 @@ Actual: ` + p3.attribValue
|
|
|
38300
38300
|
}
|
|
38301
38301
|
};
|
|
38302
38302
|
}
|
|
38303
|
-
}),
|
|
38303
|
+
}), r0 = Le$2.create({
|
|
38304
38304
|
name: Pe,
|
|
38305
38305
|
group: "comments",
|
|
38306
38306
|
excludes: "",
|
|
@@ -38325,7 +38325,7 @@ Actual: ` + p3.attribValue
|
|
|
38325
38325
|
renderDOM({ htmlAttributes: t }) {
|
|
38326
38326
|
return [Pe, D.mergeAttributes(this.options.htmlAttributes, t)];
|
|
38327
38327
|
}
|
|
38328
|
-
}),
|
|
38328
|
+
}), o0 = J$1.create({
|
|
38329
38329
|
name: "tab",
|
|
38330
38330
|
group: "inline",
|
|
38331
38331
|
inline: true,
|
|
@@ -38389,21 +38389,21 @@ Actual: ` + p3.attribValue
|
|
|
38389
38389
|
try {
|
|
38390
38390
|
t.doc.nodesBetween(o - s - 1, o - 1, (d, u) => {
|
|
38391
38391
|
if (d.isText && d.textContent !== " ") {
|
|
38392
|
-
const f3 =
|
|
38392
|
+
const f3 = i0(e, u);
|
|
38393
38393
|
a += f3;
|
|
38394
38394
|
}
|
|
38395
38395
|
});
|
|
38396
38396
|
} catch {
|
|
38397
38397
|
return;
|
|
38398
38398
|
}
|
|
38399
|
-
const l = i3.nodeBefore?.type.name === "tab" ? ci$1 : ci$1 - a % ci$1, c3 =
|
|
38399
|
+
const l = i3.nodeBefore?.type.name === "tab" ? ci$1 : ci$1 - a % ci$1, c3 = s0(i3);
|
|
38400
38400
|
n.push(
|
|
38401
38401
|
$.node(o, o + r.nodeSize, { style: `width: ${l}px; height: ${c3};` })
|
|
38402
38402
|
);
|
|
38403
38403
|
}
|
|
38404
38404
|
}), n;
|
|
38405
38405
|
};
|
|
38406
|
-
function
|
|
38406
|
+
function i0(t, e) {
|
|
38407
38407
|
const n = t.nodeDOM(e);
|
|
38408
38408
|
if (n) {
|
|
38409
38409
|
const r = document.createRange();
|
|
@@ -38411,11 +38411,11 @@ Actual: ` + p3.attribValue
|
|
|
38411
38411
|
}
|
|
38412
38412
|
return 0;
|
|
38413
38413
|
}
|
|
38414
|
-
function
|
|
38414
|
+
function s0(t) {
|
|
38415
38415
|
const i3 = t.node(1).firstChild.marks.find((a) => a.type.name === "textStyle");
|
|
38416
38416
|
return `${(parseInt(i3?.attrs.fontSize) * 1.333 || 16) * 1.1}px`;
|
|
38417
38417
|
}
|
|
38418
|
-
const
|
|
38418
|
+
const a0 = J$1.create({
|
|
38419
38419
|
name: "lineBreak",
|
|
38420
38420
|
group: "inline",
|
|
38421
38421
|
inline: true,
|
|
@@ -38425,7 +38425,7 @@ Actual: ` + p3.attribValue
|
|
|
38425
38425
|
renderDOM() {
|
|
38426
38426
|
return ["br", {}, 0];
|
|
38427
38427
|
}
|
|
38428
|
-
}),
|
|
38428
|
+
}), ou$1 = J$1.create({
|
|
38429
38429
|
name: "hardBreak",
|
|
38430
38430
|
group: "inline",
|
|
38431
38431
|
inline: true,
|
|
@@ -38513,7 +38513,7 @@ Actual: ` + p3.attribValue
|
|
|
38513
38513
|
}
|
|
38514
38514
|
r = Math.ceil(Math.max(o, i3)), t.style.setProperty("--table-border-width", `${r || n}px`);
|
|
38515
38515
|
}
|
|
38516
|
-
const dl$1 = (t, e = null) => e ? t.createChecked(null, e) : t.createAndFill(),
|
|
38516
|
+
const dl$1 = (t, e = null) => e ? t.createChecked(null, e) : t.createAndFill(), iu$1 = ({
|
|
38517
38517
|
size: t = 0.66665,
|
|
38518
38518
|
color: e = "#000000"
|
|
38519
38519
|
} = {}) => ({
|
|
@@ -38542,7 +38542,7 @@ Actual: ` + p3.attribValue
|
|
|
38542
38542
|
const u = r && d === 0 ? s : a;
|
|
38543
38543
|
l.push(i3.tableRow.createChecked(null, u));
|
|
38544
38544
|
}
|
|
38545
|
-
const c3 =
|
|
38545
|
+
const c3 = iu$1();
|
|
38546
38546
|
return i3.table.createChecked({ borders: c3 }, l);
|
|
38547
38547
|
};
|
|
38548
38548
|
var es$1, ts$1;
|
|
@@ -38803,7 +38803,7 @@ Actual: ` + p3.attribValue
|
|
|
38803
38803
|
function zs(t, e) {
|
|
38804
38804
|
return t.depth == e.depth && t.pos >= e.start(-1) && t.pos <= e.end(-1);
|
|
38805
38805
|
}
|
|
38806
|
-
function
|
|
38806
|
+
function su$1(t, e, n) {
|
|
38807
38807
|
const r = t.node(-1), o = oe$1.get(r), i3 = t.start(-1), s = o.nextCell(t.pos - i3, e, n);
|
|
38808
38808
|
return s == null ? null : t.node(0).resolve(i3 + s);
|
|
38809
38809
|
}
|
|
@@ -38811,7 +38811,7 @@ Actual: ` + p3.attribValue
|
|
|
38811
38811
|
const r = { ...t, colspan: t.colspan - n };
|
|
38812
38812
|
return r.colwidth && (r.colwidth = r.colwidth.slice(), r.colwidth.splice(e, n), r.colwidth.some((o) => o > 0) || (r.colwidth = null)), r;
|
|
38813
38813
|
}
|
|
38814
|
-
function
|
|
38814
|
+
function au$1(t, e, n = 1) {
|
|
38815
38815
|
const r = { ...t, colspan: t.colspan + n };
|
|
38816
38816
|
if (r.colwidth) {
|
|
38817
38817
|
r.colwidth = r.colwidth.slice();
|
|
@@ -38992,12 +38992,12 @@ Actual: ` + p3.attribValue
|
|
|
38992
38992
|
};
|
|
38993
38993
|
X$1.prototype.visible = false;
|
|
38994
38994
|
ve$1.jsonID("cell", X$1);
|
|
38995
|
-
var b0 = class
|
|
38995
|
+
var b0 = class lu2 {
|
|
38996
38996
|
constructor(e, n) {
|
|
38997
38997
|
this.anchor = e, this.head = n;
|
|
38998
38998
|
}
|
|
38999
38999
|
map(e) {
|
|
39000
|
-
return new
|
|
39000
|
+
return new lu2(e.map(this.anchor), e.map(this.head));
|
|
39001
39001
|
}
|
|
39002
39002
|
resolve(e) {
|
|
39003
39003
|
const n = e.resolve(this.anchor), r = e.resolve(this.head);
|
|
@@ -39057,7 +39057,7 @@ Actual: ` + p3.attribValue
|
|
|
39057
39057
|
return i3 && (e || (e = t.tr)).setSelection(i3), e;
|
|
39058
39058
|
}
|
|
39059
39059
|
var S0 = new xp$2("fix-tables");
|
|
39060
|
-
function
|
|
39060
|
+
function cu$1(t, e, n, r) {
|
|
39061
39061
|
const o = t.childCount, i3 = e.childCount;
|
|
39062
39062
|
e: for (let s = 0, a = 0; s < i3; s++) {
|
|
39063
39063
|
const l = e.child(s);
|
|
@@ -39066,15 +39066,15 @@ Actual: ` + p3.attribValue
|
|
|
39066
39066
|
a = c3 + 1, n += l.nodeSize;
|
|
39067
39067
|
continue e;
|
|
39068
39068
|
}
|
|
39069
|
-
r(l, n), a < o && t.child(a).sameMarkup(l) ?
|
|
39069
|
+
r(l, n), a < o && t.child(a).sameMarkup(l) ? cu$1(t.child(a), l, n + 1, r) : l.nodesBetween(0, l.content.size, r, n + 1), n += l.nodeSize;
|
|
39070
39070
|
}
|
|
39071
39071
|
}
|
|
39072
|
-
function
|
|
39072
|
+
function du$1(t, e) {
|
|
39073
39073
|
let n;
|
|
39074
39074
|
const r = (o, i3) => {
|
|
39075
39075
|
o.type.spec.tableRole == "table" && (n = x0(t, o, i3, n));
|
|
39076
39076
|
};
|
|
39077
|
-
return e ? e.doc != t.doc &&
|
|
39077
|
+
return e ? e.doc != t.doc && cu$1(e.doc, t.doc, 0, r) : t.doc.descendants(r), n;
|
|
39078
39078
|
}
|
|
39079
39079
|
function x0(t, e, n, r) {
|
|
39080
39080
|
const o = oe$1.get(e);
|
|
@@ -39142,7 +39142,7 @@ Actual: ` + p3.attribValue
|
|
|
39142
39142
|
e.$headCell.pos - o
|
|
39143
39143
|
) : i3.findCell(n.pos - o), tableStart: o, map: i3, table: r };
|
|
39144
39144
|
}
|
|
39145
|
-
function
|
|
39145
|
+
function uu$1(t, { map: e, tableStart: n, table: r }, o) {
|
|
39146
39146
|
let i3 = o > 0 ? -1 : 0;
|
|
39147
39147
|
y0(e, r, o + i3) && (i3 = o == 0 || o == e.width ? null : 0);
|
|
39148
39148
|
for (let s = 0; s < e.height; s++) {
|
|
@@ -39152,7 +39152,7 @@ Actual: ` + p3.attribValue
|
|
|
39152
39152
|
t.setNodeMarkup(
|
|
39153
39153
|
t.mapping.map(n + l),
|
|
39154
39154
|
null,
|
|
39155
|
-
|
|
39155
|
+
au$1(c3.attrs, o - e.colCount(l))
|
|
39156
39156
|
), s += c3.attrs.rowspan - 1;
|
|
39157
39157
|
} else {
|
|
39158
39158
|
const l = i3 == null ? we$1(r.type.schema).cell : r.nodeAt(e.map[a + i3]).type, c3 = e.positionAt(s, o, r);
|
|
@@ -39165,7 +39165,7 @@ Actual: ` + p3.attribValue
|
|
|
39165
39165
|
if (!Ye$2(t)) return false;
|
|
39166
39166
|
if (e) {
|
|
39167
39167
|
const n = at$2(t);
|
|
39168
|
-
e(
|
|
39168
|
+
e(uu$1(t.tr, n, n.left));
|
|
39169
39169
|
}
|
|
39170
39170
|
return true;
|
|
39171
39171
|
}
|
|
@@ -39173,7 +39173,7 @@ Actual: ` + p3.attribValue
|
|
|
39173
39173
|
if (!Ye$2(t)) return false;
|
|
39174
39174
|
if (e) {
|
|
39175
39175
|
const n = at$2(t);
|
|
39176
|
-
e(
|
|
39176
|
+
e(uu$1(t.tr, n, n.right));
|
|
39177
39177
|
}
|
|
39178
39178
|
return true;
|
|
39179
39179
|
}
|
|
@@ -39217,7 +39217,7 @@ Actual: ` + p3.attribValue
|
|
|
39217
39217
|
return false;
|
|
39218
39218
|
return true;
|
|
39219
39219
|
}
|
|
39220
|
-
function
|
|
39220
|
+
function fu$1(t, { map: e, tableStart: n, table: r }, o) {
|
|
39221
39221
|
var i3;
|
|
39222
39222
|
let s = n;
|
|
39223
39223
|
for (let c3 = 0; c3 < o; c3++) s += r.child(c3).nodeSize;
|
|
@@ -39241,7 +39241,7 @@ Actual: ` + p3.attribValue
|
|
|
39241
39241
|
if (!Ye$2(t)) return false;
|
|
39242
39242
|
if (e) {
|
|
39243
39243
|
const n = at$2(t);
|
|
39244
|
-
e(
|
|
39244
|
+
e(fu$1(t.tr, n, n.top));
|
|
39245
39245
|
}
|
|
39246
39246
|
return true;
|
|
39247
39247
|
}
|
|
@@ -39249,7 +39249,7 @@ Actual: ` + p3.attribValue
|
|
|
39249
39249
|
if (!Ye$2(t)) return false;
|
|
39250
39250
|
if (e) {
|
|
39251
39251
|
const n = at$2(t);
|
|
39252
|
-
e(
|
|
39252
|
+
e(fu$1(t.tr, n, n.bottom));
|
|
39253
39253
|
}
|
|
39254
39254
|
return true;
|
|
39255
39255
|
}
|
|
@@ -39335,7 +39335,7 @@ Actual: ` + p3.attribValue
|
|
|
39335
39335
|
if (l == null || c3 == null)
|
|
39336
39336
|
return true;
|
|
39337
39337
|
if (i3.setNodeMarkup(l + r.tableStart, null, {
|
|
39338
|
-
...
|
|
39338
|
+
...au$1(
|
|
39339
39339
|
c3.attrs,
|
|
39340
39340
|
c3.attrs.colspan,
|
|
39341
39341
|
r.right - r.left - c3.attrs.colspan
|
|
@@ -39794,7 +39794,7 @@ Actual: ` + p3.attribValue
|
|
|
39794
39794
|
ve$1.near(i3.$headCell, e)
|
|
39795
39795
|
);
|
|
39796
39796
|
if (t != "horiz" && !i3.empty) return false;
|
|
39797
|
-
const s =
|
|
39797
|
+
const s = pu$1(o, t, e);
|
|
39798
39798
|
if (s == null) return false;
|
|
39799
39799
|
if (t == "horiz")
|
|
39800
39800
|
return so$2(
|
|
@@ -39803,7 +39803,7 @@ Actual: ` + p3.attribValue
|
|
|
39803
39803
|
ve$1.near(n.doc.resolve(i3.head + e), e)
|
|
39804
39804
|
);
|
|
39805
39805
|
{
|
|
39806
|
-
const a = n.doc.resolve(s), l =
|
|
39806
|
+
const a = n.doc.resolve(s), l = su$1(a, t, e);
|
|
39807
39807
|
let c3;
|
|
39808
39808
|
return l ? c3 = ve$1.near(l, 1) : e < 0 ? c3 = ve$1.near(n.doc.resolve(a.before(-1)), -1) : c3 = ve$1.near(n.doc.resolve(a.after(-1)), 1), so$2(n, r, c3);
|
|
39809
39809
|
}
|
|
@@ -39817,11 +39817,11 @@ Actual: ` + p3.attribValue
|
|
|
39817
39817
|
if (i3 instanceof X$1)
|
|
39818
39818
|
s = i3;
|
|
39819
39819
|
else {
|
|
39820
|
-
const l =
|
|
39820
|
+
const l = pu$1(o, t, e);
|
|
39821
39821
|
if (l == null) return false;
|
|
39822
39822
|
s = new X$1(n.doc.resolve(l));
|
|
39823
39823
|
}
|
|
39824
|
-
const a =
|
|
39824
|
+
const a = su$1(s.$headCell, t, e);
|
|
39825
39825
|
return a ? so$2(
|
|
39826
39826
|
n,
|
|
39827
39827
|
r,
|
|
@@ -39901,7 +39901,7 @@ Actual: ` + p3.attribValue
|
|
|
39901
39901
|
}
|
|
39902
39902
|
t.root.addEventListener("mouseup", s), t.root.addEventListener("dragstart", s), t.root.addEventListener("mousemove", a);
|
|
39903
39903
|
}
|
|
39904
|
-
function
|
|
39904
|
+
function pu$1(t, e, n) {
|
|
39905
39905
|
if (!(t.state.selection instanceof tt$2)) return null;
|
|
39906
39906
|
const { $head: r } = t.state.selection;
|
|
39907
39907
|
for (let o = r.depth - 1; o >= 0; o--) {
|
|
@@ -40051,14 +40051,14 @@ Actual: ` + p3.attribValue
|
|
|
40051
40051
|
if (c3.colCount(a.pos - d) + a.nodeAfter.attrs.colspan - 1 == c3.width - 1)
|
|
40052
40052
|
return;
|
|
40053
40053
|
}
|
|
40054
|
-
|
|
40054
|
+
hu$1(t, s);
|
|
40055
40055
|
}
|
|
40056
40056
|
}
|
|
40057
40057
|
}
|
|
40058
40058
|
function Q0(t) {
|
|
40059
40059
|
if (!t.editable) return;
|
|
40060
40060
|
const e = Ee$1.getState(t.state);
|
|
40061
|
-
e && e.activeHandle > -1 && !e.dragging &&
|
|
40061
|
+
e && e.activeHandle > -1 && !e.dragging && hu$1(t, -1);
|
|
40062
40062
|
}
|
|
40063
40063
|
function ew(t, e, n, r) {
|
|
40064
40064
|
var o;
|
|
@@ -40134,7 +40134,7 @@ Actual: ` + p3.attribValue
|
|
|
40134
40134
|
const r = e.clientX - t.startX;
|
|
40135
40135
|
return Math.max(n, t.startWidth + r);
|
|
40136
40136
|
}
|
|
40137
|
-
function
|
|
40137
|
+
function hu$1(t, e) {
|
|
40138
40138
|
t.dispatch(
|
|
40139
40139
|
t.state.tr.setMeta(Ee$1, { setHandle: e })
|
|
40140
40140
|
);
|
|
@@ -40226,7 +40226,7 @@ Actual: ` + p3.attribValue
|
|
|
40226
40226
|
appendTransaction(e, n, r) {
|
|
40227
40227
|
return C0(
|
|
40228
40228
|
r,
|
|
40229
|
-
|
|
40229
|
+
du$1(r, n),
|
|
40230
40230
|
t
|
|
40231
40231
|
);
|
|
40232
40232
|
}
|
|
@@ -40240,7 +40240,7 @@ Actual: ` + p3.attribValue
|
|
|
40240
40240
|
if (i3.type.name === "table") return false;
|
|
40241
40241
|
["tableCell", "tableHeader"].includes(i3.type.name) && (n += 1);
|
|
40242
40242
|
}), n === e.ranges.length ? (t.commands.deleteTable(), true) : false;
|
|
40243
|
-
},
|
|
40243
|
+
}, mu$1 = ({
|
|
40244
40244
|
size: t = 0.66665,
|
|
40245
40245
|
color: e = "#000000"
|
|
40246
40246
|
} = {}) => ({
|
|
@@ -40248,7 +40248,7 @@ Actual: ` + p3.attribValue
|
|
|
40248
40248
|
left: { size: t, color: e },
|
|
40249
40249
|
bottom: { size: t, color: e },
|
|
40250
40250
|
right: { size: t, color: e }
|
|
40251
|
-
}),
|
|
40251
|
+
}), gu$1 = J$1.create({
|
|
40252
40252
|
name: "table",
|
|
40253
40253
|
content: "tableRow+",
|
|
40254
40254
|
group: "block",
|
|
@@ -40359,7 +40359,7 @@ Actual: ` + p3.attribValue
|
|
|
40359
40359
|
setCellAttr: (t, e) => ({ state: n, dispatch: r }) => F0(t, e)(n, r),
|
|
40360
40360
|
goToNextCell: () => ({ state: t, dispatch: e }) => ml$1(1)(t, e),
|
|
40361
40361
|
goToPreviousCell: () => ({ state: t, dispatch: e }) => ml$1(-1)(t, e),
|
|
40362
|
-
fixTables: () => ({ state: t, dispatch: e }) => (e &&
|
|
40362
|
+
fixTables: () => ({ state: t, dispatch: e }) => (e && du$1(t), true),
|
|
40363
40363
|
setCellSelection: (t) => ({ tr: e, dispatch: n }) => (n && e.setSelection(X$1.create(e.doc, t.anchorCell, t.headCell)), true),
|
|
40364
40364
|
deleteCellAndTableBorders: () => ({ chain: t, state: e, tr: n }) => {
|
|
40365
40365
|
if (!Cd$1(e))
|
|
@@ -40371,11 +40371,11 @@ Actual: ` + p3.attribValue
|
|
|
40371
40371
|
return e.doc.nodesBetween(o, i3, (s, a) => {
|
|
40372
40372
|
["tableCell", "tableHeader"].includes(s.type.name) && n.setNodeMarkup(a, void 0, {
|
|
40373
40373
|
...s.attrs,
|
|
40374
|
-
borders:
|
|
40374
|
+
borders: mu$1({ size: 0 })
|
|
40375
40375
|
});
|
|
40376
40376
|
}), n.setNodeMarkup(r.pos, void 0, {
|
|
40377
40377
|
...r.node.attrs,
|
|
40378
|
-
borders:
|
|
40378
|
+
borders: iu$1({ size: 0 })
|
|
40379
40379
|
}), true;
|
|
40380
40380
|
}
|
|
40381
40381
|
};
|
|
@@ -40417,7 +40417,7 @@ Actual: ` + p3.attribValue
|
|
|
40417
40417
|
}))
|
|
40418
40418
|
};
|
|
40419
40419
|
}
|
|
40420
|
-
}),
|
|
40420
|
+
}), yu$1 = J$1.create({
|
|
40421
40421
|
name: "tableHeader",
|
|
40422
40422
|
content: "block+",
|
|
40423
40423
|
tableRole: "header_cell",
|
|
@@ -40453,7 +40453,7 @@ Actual: ` + p3.attribValue
|
|
|
40453
40453
|
renderDOM({ htmlAttributes: t }) {
|
|
40454
40454
|
return ["th", D.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
40455
40455
|
}
|
|
40456
|
-
}),
|
|
40456
|
+
}), bu$1 = J$1.create({
|
|
40457
40457
|
name: "tableRow",
|
|
40458
40458
|
content: "(tableCell | tableHeader)*",
|
|
40459
40459
|
tableRole: "row",
|
|
@@ -40477,7 +40477,7 @@ Actual: ` + p3.attribValue
|
|
|
40477
40477
|
renderDOM({ htmlAttributes: t }) {
|
|
40478
40478
|
return ["tr", D.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
40479
40479
|
}
|
|
40480
|
-
}),
|
|
40480
|
+
}), wu$1 = J$1.create({
|
|
40481
40481
|
name: "tableCell",
|
|
40482
40482
|
content: "block+",
|
|
40483
40483
|
tableRole: "cell",
|
|
@@ -40535,7 +40535,7 @@ Actual: ` + p3.attribValue
|
|
|
40535
40535
|
}
|
|
40536
40536
|
},
|
|
40537
40537
|
borders: {
|
|
40538
|
-
default: () =>
|
|
40538
|
+
default: () => mu$1(),
|
|
40539
40539
|
renderDOM({ borders: t }) {
|
|
40540
40540
|
return t ? { style: ["top", "right", "bottom", "left"].map((r) => {
|
|
40541
40541
|
const o = t?.[r];
|
|
@@ -40708,7 +40708,7 @@ Actual: ` + p3.attribValue
|
|
|
40708
40708
|
content: o
|
|
40709
40709
|
};
|
|
40710
40710
|
};
|
|
40711
|
-
function
|
|
40711
|
+
function vu$1(t) {
|
|
40712
40712
|
let e = [];
|
|
40713
40713
|
return !t.steps.length || t.meta && !Object.keys(t.meta).every((n) => ["inputType", "uiEvent", "paste"].includes(n)) || ["historyUndo", "historyRedo"].includes(t.getMeta("inputType")) || ["drop"].includes(t.getMeta("uiEvent")) || t.getMeta("fieldAnnotationUpdate") === true || t.steps.forEach((n, r) => {
|
|
40714
40714
|
if (n instanceof Ie$3 && n.from !== n.to) {
|
|
@@ -40719,8 +40719,8 @@ Actual: ` + p3.attribValue
|
|
|
40719
40719
|
}
|
|
40720
40720
|
}), e;
|
|
40721
40721
|
}
|
|
40722
|
-
function
|
|
40723
|
-
let n =
|
|
40722
|
+
function ku$1(t, e) {
|
|
40723
|
+
let n = vu$1(e);
|
|
40724
40724
|
n.length > 0 && setTimeout(() => {
|
|
40725
40725
|
t.emit("fieldAnnotationDeleted", {
|
|
40726
40726
|
editor: t,
|
|
@@ -40741,7 +40741,7 @@ Actual: ` + p3.attribValue
|
|
|
40741
40741
|
return null;
|
|
40742
40742
|
},
|
|
40743
40743
|
apply(r, o) {
|
|
40744
|
-
return
|
|
40744
|
+
return ku$1(e, r), o;
|
|
40745
40745
|
}
|
|
40746
40746
|
},
|
|
40747
40747
|
props: {
|
|
@@ -40872,10 +40872,10 @@ Actual: ` + p3.attribValue
|
|
|
40872
40872
|
findFieldAnnotationsBetween: co$1,
|
|
40873
40873
|
findFieldAnnotationsByFieldId: lo$2,
|
|
40874
40874
|
findFirstFieldAnnotationByFieldId: mw,
|
|
40875
|
-
findRemovedFieldAnnotations:
|
|
40875
|
+
findRemovedFieldAnnotations: vu$1,
|
|
40876
40876
|
getAllFieldAnnotations: Rt$2,
|
|
40877
40877
|
getAllFieldAnnotationsWithRect: fw,
|
|
40878
|
-
trackFieldAnnotationsDeletion:
|
|
40878
|
+
trackFieldAnnotationsDeletion: ku$1
|
|
40879
40879
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
40880
40880
|
function ss$1(t, e, n) {
|
|
40881
40881
|
return Math.min(Math.max(t, n), e);
|
|
@@ -40951,7 +40951,7 @@ Actual: ` + p3.attribValue
|
|
|
40951
40951
|
};
|
|
40952
40952
|
return `#${i3(e)}${i3(n)}${i3(r)}${o < 1 ? i3(Math.round(o * 255)) : ""}`;
|
|
40953
40953
|
}
|
|
40954
|
-
const as$1 = "annotation",
|
|
40954
|
+
const as$1 = "annotation", Cu$1 = "annotation-content", Su$1 = J$1.create({
|
|
40955
40955
|
name: "fieldAnnotation",
|
|
40956
40956
|
group: "inline",
|
|
40957
40957
|
inline: true,
|
|
@@ -40964,7 +40964,7 @@ Actual: ` + p3.attribValue
|
|
|
40964
40964
|
class: as$1
|
|
40965
40965
|
},
|
|
40966
40966
|
annotationClass: as$1,
|
|
40967
|
-
annotationContentClass:
|
|
40967
|
+
annotationContentClass: Cu$1,
|
|
40968
40968
|
types: ["text", "image", "signature", "checkbox", "html", "link"],
|
|
40969
40969
|
// annotation types
|
|
40970
40970
|
defaultType: "text",
|
|
@@ -41477,7 +41477,7 @@ Actual: ` + p3.attribValue
|
|
|
41477
41477
|
}), Xk = (t, e) => {
|
|
41478
41478
|
let r = Ao$1.getState(t)?.find(null, null, (o) => o.id === e);
|
|
41479
41479
|
return r?.length ? r[0].from : null;
|
|
41480
|
-
},
|
|
41480
|
+
}, xu$1 = J$1.create({
|
|
41481
41481
|
name: "image",
|
|
41482
41482
|
group: "inline",
|
|
41483
41483
|
inline: true,
|
|
@@ -41584,7 +41584,7 @@ Actual: ` + p3.attribValue
|
|
|
41584
41584
|
renderDOM({ htmlAttributes: t }) {
|
|
41585
41585
|
return ["a", D.mergeAttributes(this.options.htmlAttributes, t)];
|
|
41586
41586
|
}
|
|
41587
|
-
}),
|
|
41587
|
+
}), Mu$1 = J$1.create({
|
|
41588
41588
|
name: "mention",
|
|
41589
41589
|
group: "inline",
|
|
41590
41590
|
inline: true,
|
|
@@ -41658,7 +41658,7 @@ Actual: ` + p3.attribValue
|
|
|
41658
41658
|
renderDOM({ htmlAttributes: t }) {
|
|
41659
41659
|
return ["span", D.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
41660
41660
|
}
|
|
41661
|
-
}),
|
|
41661
|
+
}), Au$1 = Le$2.create({
|
|
41662
41662
|
name: "textStyle",
|
|
41663
41663
|
addOptions() {
|
|
41664
41664
|
return {
|
|
@@ -41670,7 +41670,7 @@ Actual: ` + p3.attribValue
|
|
|
41670
41670
|
{
|
|
41671
41671
|
tag: "span",
|
|
41672
41672
|
getAttrs: (t) => {
|
|
41673
|
-
const e = t.hasAttribute("style"), n = t.classList.contains(as$1) || t.classList.contains(
|
|
41673
|
+
const e = t.hasAttribute("style"), n = t.classList.contains(as$1) || t.classList.contains(Cu$1);
|
|
41674
41674
|
return !e || n ? false : {};
|
|
41675
41675
|
}
|
|
41676
41676
|
}
|
|
@@ -41687,7 +41687,7 @@ Actual: ` + p3.attribValue
|
|
|
41687
41687
|
}
|
|
41688
41688
|
};
|
|
41689
41689
|
}
|
|
41690
|
-
}),
|
|
41690
|
+
}), Ou$1 = Le$2.create({
|
|
41691
41691
|
name: "bold",
|
|
41692
41692
|
addOptions() {
|
|
41693
41693
|
return {
|
|
@@ -41719,7 +41719,7 @@ Actual: ` + p3.attribValue
|
|
|
41719
41719
|
"Mod-B": () => this.editor.commands.toggleBold()
|
|
41720
41720
|
};
|
|
41721
41721
|
}
|
|
41722
|
-
}),
|
|
41722
|
+
}), Tu$1 = Le$2.create({
|
|
41723
41723
|
name: "italic",
|
|
41724
41724
|
addOptions() {
|
|
41725
41725
|
return {
|
|
@@ -41751,7 +41751,7 @@ Actual: ` + p3.attribValue
|
|
|
41751
41751
|
"Mod-I": () => this.editor.commands.toggleItalic()
|
|
41752
41752
|
};
|
|
41753
41753
|
}
|
|
41754
|
-
}),
|
|
41754
|
+
}), Du$1 = Le$2.create({
|
|
41755
41755
|
name: "underline",
|
|
41756
41756
|
addOptions() {
|
|
41757
41757
|
return {
|
|
@@ -41789,7 +41789,7 @@ Actual: ` + p3.attribValue
|
|
|
41789
41789
|
"Mod-U": () => this.editor.commands.toggleUnderline()
|
|
41790
41790
|
};
|
|
41791
41791
|
}
|
|
41792
|
-
}),
|
|
41792
|
+
}), Nu$1 = Le$2.create({
|
|
41793
41793
|
name: "highlight",
|
|
41794
41794
|
addOptions() {
|
|
41795
41795
|
return {
|
|
@@ -41827,7 +41827,7 @@ Actual: ` + p3.attribValue
|
|
|
41827
41827
|
"Mod-Shift-h": () => this.editor.commands.toggleHighlight()
|
|
41828
41828
|
};
|
|
41829
41829
|
}
|
|
41830
|
-
}),
|
|
41830
|
+
}), Eu$1 = Le$2.create({
|
|
41831
41831
|
name: "strike",
|
|
41832
41832
|
addOptions() {
|
|
41833
41833
|
return {
|
|
@@ -41856,7 +41856,7 @@ Actual: ` + p3.attribValue
|
|
|
41856
41856
|
"Mod-Shift-s": () => this.editor.commands.toggleStrike()
|
|
41857
41857
|
};
|
|
41858
41858
|
}
|
|
41859
|
-
}),
|
|
41859
|
+
}), Iu$1 = Le$2.create({
|
|
41860
41860
|
name: "link",
|
|
41861
41861
|
priority: 1e3,
|
|
41862
41862
|
keepOnSplit: false,
|
|
@@ -41915,7 +41915,7 @@ Actual: ` + p3.attribValue
|
|
|
41915
41915
|
o && n.push(o);
|
|
41916
41916
|
}), !t || t.replace(Rw, "").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))`, "i"));
|
|
41917
41917
|
}
|
|
41918
|
-
const Lw = "track-insert",
|
|
41918
|
+
const Lw = "track-insert", Pu$1 = Le$2.create({
|
|
41919
41919
|
name: yr$2,
|
|
41920
41920
|
group: "track",
|
|
41921
41921
|
inclusive: false,
|
|
@@ -41964,7 +41964,7 @@ Actual: ` + p3.attribValue
|
|
|
41964
41964
|
renderDOM({ htmlAttributes: t }) {
|
|
41965
41965
|
return ["span", D.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
41966
41966
|
}
|
|
41967
|
-
}), Fw = "track-delete",
|
|
41967
|
+
}), Fw = "track-delete", Ru$1 = Le$2.create({
|
|
41968
41968
|
name: Ii$2,
|
|
41969
41969
|
group: "track",
|
|
41970
41970
|
inclusive: false,
|
|
@@ -42025,18 +42025,18 @@ Actual: ` + p3.attribValue
|
|
|
42025
42025
|
}, Jk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42026
42026
|
__proto__: null,
|
|
42027
42027
|
addMarkStep: Dd$1,
|
|
42028
|
-
documentHelpers:
|
|
42028
|
+
documentHelpers: Wy,
|
|
42029
42029
|
findTrackedMarkBetween: Ps,
|
|
42030
42030
|
getTrackChanges: Ls,
|
|
42031
42031
|
markDeletion: vd$1,
|
|
42032
42032
|
markInsertion: wd$1,
|
|
42033
|
-
markWrapping:
|
|
42033
|
+
markWrapping: ob,
|
|
42034
42034
|
parseFormatList: ls$1,
|
|
42035
42035
|
removeMarkStep: Nd$1,
|
|
42036
|
-
replaceAroundStep:
|
|
42036
|
+
replaceAroundStep: ib,
|
|
42037
42037
|
replaceStep: Td$1,
|
|
42038
42038
|
trackedTransaction: Ed$1
|
|
42039
|
-
}, Symbol.toStringTag, { value: "Module" })), Bw = "track-format",
|
|
42039
|
+
}, Symbol.toStringTag, { value: "Module" })), Bw = "track-format", Lu$1 = Le$2.create({
|
|
42040
42040
|
name: Ri$2,
|
|
42041
42041
|
group: "track",
|
|
42042
42042
|
inclusive: false,
|
|
@@ -42269,7 +42269,7 @@ Actual: ` + p3.attribValue
|
|
|
42269
42269
|
};
|
|
42270
42270
|
},
|
|
42271
42271
|
addPmPlugins() {
|
|
42272
|
-
return [
|
|
42272
|
+
return [Uy()];
|
|
42273
42273
|
}
|
|
42274
42274
|
}), Al$1 = (t, e) => {
|
|
42275
42275
|
const n = Ls(t), r = n.findIndex(({ mark: l }) => l.attrs.id === e);
|
|
@@ -42307,9 +42307,9 @@ Actual: ` + p3.attribValue
|
|
|
42307
42307
|
})];
|
|
42308
42308
|
}
|
|
42309
42309
|
});
|
|
42310
|
-
var Te$1 = "top", We$1 = "bottom", Ue = "right", De$1 = "left", $s = "auto", Ir = [Te$1, We$1, Ue, De$1], Pn$2 = "start", Cr$1 = "end", $w = "clippingParents",
|
|
42310
|
+
var Te$1 = "top", We$1 = "bottom", Ue = "right", De$1 = "left", $s = "auto", Ir = [Te$1, We$1, Ue, De$1], Pn$2 = "start", Cr$1 = "end", $w = "clippingParents", Fu$1 = "viewport", Jn$2 = "popper", Vw = "reference", Ol$1 = /* @__PURE__ */ Ir.reduce(function(t, e) {
|
|
42311
42311
|
return t.concat([e + "-" + Pn$2, e + "-" + Cr$1]);
|
|
42312
|
-
}, []),
|
|
42312
|
+
}, []), Bu$1 = /* @__PURE__ */ [].concat(Ir, [$s]).reduce(function(t, e) {
|
|
42313
42313
|
return t.concat([e, e + "-" + Pn$2, e + "-" + Cr$1]);
|
|
42314
42314
|
}, []), Hw = "beforeRead", jw = "read", Ww = "afterRead", Uw = "beforeMain", qw = "main", Kw = "afterMain", Xw = "beforeWrite", Jw = "write", Yw = "afterWrite", Gw = [Hw, jw, Ww, Uw, qw, Kw, Xw, Jw, Yw];
|
|
42315
42315
|
function st$1(t) {
|
|
@@ -42372,7 +42372,7 @@ Actual: ` + p3.attribValue
|
|
|
42372
42372
|
});
|
|
42373
42373
|
};
|
|
42374
42374
|
}
|
|
42375
|
-
const
|
|
42375
|
+
const _u$1 = {
|
|
42376
42376
|
name: "applyStyles",
|
|
42377
42377
|
enabled: true,
|
|
42378
42378
|
phase: "write",
|
|
@@ -42390,14 +42390,14 @@ Actual: ` + p3.attribValue
|
|
|
42390
42390
|
return e.brand + "/" + e.version;
|
|
42391
42391
|
}).join(" ") : navigator.userAgent;
|
|
42392
42392
|
}
|
|
42393
|
-
function $
|
|
42393
|
+
function zu$1() {
|
|
42394
42394
|
return !/^((?!chrome|android).)*safari/i.test(cs$1());
|
|
42395
42395
|
}
|
|
42396
42396
|
function Ln$2(t, e, n) {
|
|
42397
42397
|
e === void 0 && (e = false), n === void 0 && (n = false);
|
|
42398
42398
|
var r = t.getBoundingClientRect(), o = 1, i3 = 1;
|
|
42399
42399
|
e && je$2(t) && (o = t.offsetWidth > 0 && Rn$2(r.width) / t.offsetWidth || 1, i3 = t.offsetHeight > 0 && Rn$2(r.height) / t.offsetHeight || 1);
|
|
42400
|
-
var s = un$2(t) ? Re$1(t) : window, a = s.visualViewport, l =
|
|
42400
|
+
var s = un$2(t) ? Re$1(t) : window, a = s.visualViewport, l = !zu$1() && n, c3 = (r.left + (l && a ? a.offsetLeft : 0)) / o, d = (r.top + (l && a ? a.offsetTop : 0)) / i3, u = r.width / o, f3 = r.height / i3;
|
|
42401
42401
|
return {
|
|
42402
42402
|
width: u,
|
|
42403
42403
|
height: f3,
|
|
@@ -42418,7 +42418,7 @@ Actual: ` + p3.attribValue
|
|
|
42418
42418
|
height: r
|
|
42419
42419
|
};
|
|
42420
42420
|
}
|
|
42421
|
-
function
|
|
42421
|
+
function $u$1(t, e) {
|
|
42422
42422
|
var n = e.getRootNode && e.getRootNode();
|
|
42423
42423
|
if (t.contains(e))
|
|
42424
42424
|
return true;
|
|
@@ -42491,7 +42491,7 @@ Actual: ` + p3.attribValue
|
|
|
42491
42491
|
var r = ir$1(t, e, n);
|
|
42492
42492
|
return r > n ? n : r;
|
|
42493
42493
|
}
|
|
42494
|
-
function
|
|
42494
|
+
function Vu$1() {
|
|
42495
42495
|
return {
|
|
42496
42496
|
top: 0,
|
|
42497
42497
|
right: 0,
|
|
@@ -42499,10 +42499,10 @@ Actual: ` + p3.attribValue
|
|
|
42499
42499
|
left: 0
|
|
42500
42500
|
};
|
|
42501
42501
|
}
|
|
42502
|
-
function
|
|
42503
|
-
return Object.assign({},
|
|
42502
|
+
function Hu$1(t) {
|
|
42503
|
+
return Object.assign({}, Vu$1(), t);
|
|
42504
42504
|
}
|
|
42505
|
-
function
|
|
42505
|
+
function ju$1(t, e) {
|
|
42506
42506
|
return e.reduce(function(n, r) {
|
|
42507
42507
|
return n[r] = t, n;
|
|
42508
42508
|
}, {});
|
|
@@ -42510,7 +42510,7 @@ Actual: ` + p3.attribValue
|
|
|
42510
42510
|
var rv = function(e, n) {
|
|
42511
42511
|
return e = typeof e == "function" ? e(Object.assign({}, n.rects, {
|
|
42512
42512
|
placement: n.placement
|
|
42513
|
-
})) : e,
|
|
42513
|
+
})) : e, Hu$1(typeof e != "number" ? e : ju$1(e, Ir));
|
|
42514
42514
|
};
|
|
42515
42515
|
function ov(t) {
|
|
42516
42516
|
var e, n = t.state, r = t.name, o = t.options, i3 = n.elements.arrow, s = n.modifiersData.popperOffsets, a = rt$2(n.placement), l = js(a), c3 = [De$1, Ue].indexOf(a) >= 0, d = c3 ? "height" : "width";
|
|
@@ -42521,7 +42521,7 @@ Actual: ` + p3.attribValue
|
|
|
42521
42521
|
}
|
|
42522
42522
|
function iv(t) {
|
|
42523
42523
|
var e = t.state, n = t.options, r = n.element, o = r === void 0 ? "[data-popper-arrow]" : r;
|
|
42524
|
-
o != null && (typeof o == "string" && (o = e.elements.popper.querySelector(o), !o) ||
|
|
42524
|
+
o != null && (typeof o == "string" && (o = e.elements.popper.querySelector(o), !o) || $u$1(e.elements.popper, o) && (e.elements.arrow = o));
|
|
42525
42525
|
}
|
|
42526
42526
|
const sv = {
|
|
42527
42527
|
name: "arrow",
|
|
@@ -42678,7 +42678,7 @@ Actual: ` + p3.attribValue
|
|
|
42678
42678
|
var n = Re$1(t), r = Wt$2(t), o = n.visualViewport, i3 = r.clientWidth, s = r.clientHeight, a = 0, l = 0;
|
|
42679
42679
|
if (o) {
|
|
42680
42680
|
i3 = o.width, s = o.height;
|
|
42681
|
-
var c3 = $
|
|
42681
|
+
var c3 = zu$1();
|
|
42682
42682
|
(c3 || !c3 && e === "fixed") && (a = o.offsetLeft, l = o.offsetTop);
|
|
42683
42683
|
}
|
|
42684
42684
|
return {
|
|
@@ -42701,13 +42701,13 @@ Actual: ` + p3.attribValue
|
|
|
42701
42701
|
var e = St$1(t), n = e.overflow, r = e.overflowX, o = e.overflowY;
|
|
42702
42702
|
return /auto|scroll|overlay|hidden/.test(n + o + r);
|
|
42703
42703
|
}
|
|
42704
|
-
function
|
|
42705
|
-
return ["html", "body", "#document"].indexOf(st$1(t)) >= 0 ? t.ownerDocument.body : je$2(t) && qs(t) ? t :
|
|
42704
|
+
function Wu$1(t) {
|
|
42705
|
+
return ["html", "body", "#document"].indexOf(st$1(t)) >= 0 ? t.ownerDocument.body : je$2(t) && qs(t) ? t : Wu$1(zo$1(t));
|
|
42706
42706
|
}
|
|
42707
42707
|
function sr$1(t, e) {
|
|
42708
42708
|
var n;
|
|
42709
42709
|
e === void 0 && (e = []);
|
|
42710
|
-
var r =
|
|
42710
|
+
var r = Wu$1(t), o = r === ((n = t.ownerDocument) == null ? void 0 : n.body), i3 = Re$1(r), s = o ? [i3].concat(i3.visualViewport || [], qs(r) ? r : []) : r, a = e.concat(s);
|
|
42711
42711
|
return o ? a : (
|
|
42712
42712
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
42713
42713
|
a.concat(sr$1(zo$1(s)))
|
|
@@ -42726,12 +42726,12 @@ Actual: ` + p3.attribValue
|
|
|
42726
42726
|
return n.top = n.top + t.clientTop, n.left = n.left + t.clientLeft, n.bottom = n.top + t.clientHeight, n.right = n.left + t.clientWidth, n.width = t.clientWidth, n.height = t.clientHeight, n.x = n.left, n.y = n.top, n;
|
|
42727
42727
|
}
|
|
42728
42728
|
function El$1(t, e, n) {
|
|
42729
|
-
return e ===
|
|
42729
|
+
return e === Fu$1 ? ds$1(mv(t, n)) : un$2(e) ? yv(e, n) : ds$1(gv(Wt$2(t)));
|
|
42730
42730
|
}
|
|
42731
42731
|
function bv(t) {
|
|
42732
42732
|
var e = sr$1(zo$1(t)), n = ["absolute", "fixed"].indexOf(St$1(t).position) >= 0, r = n && je$2(t) ? Pr(t) : t;
|
|
42733
42733
|
return un$2(r) ? e.filter(function(o) {
|
|
42734
|
-
return un$2(o) &&
|
|
42734
|
+
return un$2(o) && $u$1(o, r) && st$1(o) !== "body";
|
|
42735
42735
|
}) : [];
|
|
42736
42736
|
}
|
|
42737
42737
|
function wv(t, e, n, r) {
|
|
@@ -42741,7 +42741,7 @@ Actual: ` + p3.attribValue
|
|
|
42741
42741
|
}, El$1(t, s, r));
|
|
42742
42742
|
return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
|
|
42743
42743
|
}
|
|
42744
|
-
function
|
|
42744
|
+
function Uu$1(t) {
|
|
42745
42745
|
var e = t.reference, n = t.element, r = t.placement, o = r ? rt$2(r) : null, i3 = r ? Fn$1(r) : null, s = e.x + e.width / 2 - n.width / 2, a = e.y + e.height / 2 - n.height / 2, l;
|
|
42746
42746
|
switch (o) {
|
|
42747
42747
|
case Te$1:
|
|
@@ -42790,7 +42790,7 @@ Actual: ` + p3.attribValue
|
|
|
42790
42790
|
}
|
|
42791
42791
|
function Sr$1(t, e) {
|
|
42792
42792
|
e === void 0 && (e = {});
|
|
42793
|
-
var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i3 = n.strategy, s = i3 === void 0 ? t.strategy : i3, a = n.boundary, l = a === void 0 ? $w : a, c3 = n.rootBoundary, d = c3 === void 0 ?
|
|
42793
|
+
var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i3 = n.strategy, s = i3 === void 0 ? t.strategy : i3, a = n.boundary, l = a === void 0 ? $w : a, c3 = n.rootBoundary, d = c3 === void 0 ? Fu$1 : c3, u = n.elementContext, f3 = u === void 0 ? Jn$2 : u, p3 = n.altBoundary, h3 = p3 === void 0 ? false : p3, m = n.padding, g = m === void 0 ? 0 : m, b = Hu$1(typeof g != "number" ? g : ju$1(g, Ir)), w = f3 === Jn$2 ? Vw : Jn$2, C = t.rects.popper, y = t.elements[h3 ? w : f3], S = wv(un$2(y) ? y : y.contextElement || Wt$2(t.elements.popper), l, d, s), k = Ln$2(t.elements.reference), M3 = Uu$1({
|
|
42794
42794
|
reference: k,
|
|
42795
42795
|
element: C,
|
|
42796
42796
|
placement: o
|
|
@@ -42811,7 +42811,7 @@ Actual: ` + p3.attribValue
|
|
|
42811
42811
|
}
|
|
42812
42812
|
function vv(t, e) {
|
|
42813
42813
|
e === void 0 && (e = {});
|
|
42814
|
-
var n = e, r = n.placement, o = n.boundary, i3 = n.rootBoundary, s = n.padding, a = n.flipVariations, l = n.allowedAutoPlacements, c3 = l === void 0 ?
|
|
42814
|
+
var n = e, r = n.placement, o = n.boundary, i3 = n.rootBoundary, s = n.padding, a = n.flipVariations, l = n.allowedAutoPlacements, c3 = l === void 0 ? Bu$1 : l, d = Fn$1(r), u = d ? a ? Ol$1 : Ol$1.filter(function(h3) {
|
|
42815
42815
|
return Fn$1(h3) === d;
|
|
42816
42816
|
}) : Ir, f3 = u.filter(function(h3) {
|
|
42817
42817
|
return c3.indexOf(h3) >= 0;
|
|
@@ -42945,7 +42945,7 @@ Actual: ` + p3.attribValue
|
|
|
42945
42945
|
};
|
|
42946
42946
|
}
|
|
42947
42947
|
function Ov(t) {
|
|
42948
|
-
var e = t.state, n = t.options, r = t.name, o = n.offset, i3 = o === void 0 ? [0, 0] : o, s =
|
|
42948
|
+
var e = t.state, n = t.options, r = t.name, o = n.offset, i3 = o === void 0 ? [0, 0] : o, s = Bu$1.reduce(function(d, u) {
|
|
42949
42949
|
return d[u] = Av(u, e.rects, i3), d;
|
|
42950
42950
|
}, {}), a = s[e.placement], l = a.x, c3 = a.y;
|
|
42951
42951
|
e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += l, e.modifiersData.popperOffsets.y += c3), e.modifiersData[r] = s;
|
|
@@ -42959,7 +42959,7 @@ Actual: ` + p3.attribValue
|
|
|
42959
42959
|
};
|
|
42960
42960
|
function Dv(t) {
|
|
42961
42961
|
var e = t.state, n = t.name;
|
|
42962
|
-
e.modifiersData[n] =
|
|
42962
|
+
e.modifiersData[n] = Uu$1({
|
|
42963
42963
|
reference: e.rects.reference,
|
|
42964
42964
|
element: e.rects.popper,
|
|
42965
42965
|
placement: e.placement
|
|
@@ -42998,7 +42998,7 @@ Actual: ` + p3.attribValue
|
|
|
42998
42998
|
var j, se = y === "y" ? Te$1 : De$1, ce2 = y === "y" ? We$1 : Ue, ae2 = y === "y" ? "height" : "width", ee = k[y], ne = ee + g[se], ve2 = ee - g[ce2], ke2 = p3 ? -L3[ae2] / 2 : 0, lt2 = w === Pn$2 ? M3[ae2] : L3[ae2], Fe2 = w === Pn$2 ? -L3[ae2] : -M3[ae2], ct2 = e.elements.arrow, qe2 = p3 && ct2 ? Hs(ct2) : {
|
|
42999
42999
|
width: 0,
|
|
43000
43000
|
height: 0
|
|
43001
|
-
}, Ne2 = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding :
|
|
43001
|
+
}, Ne2 = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Vu$1(), Ke2 = Ne2[se], Mt2 = Ne2[ce2], dt2 = ir$1(0, M3[ae2], qe2[ae2]), fn2 = C ? M3[ae2] / 2 - ke2 - dt2 - Ke2 - z.mainAxis : lt2 - dt2 - Ke2 - z.mainAxis, At2 = C ? -M3[ae2] / 2 + ke2 + dt2 + Mt2 + z.mainAxis : Fe2 + dt2 + Mt2 + z.mainAxis, pn2 = e.elements.arrow && Pr(e.elements.arrow), Lr2 = pn2 ? y === "y" ? pn2.clientTop || 0 : pn2.clientLeft || 0 : 0, Hn2 = (j = _?.[y]) != null ? j : 0, Fr2 = ee + fn2 - Hn2 - Lr2, Br2 = ee + At2 - Hn2, jn2 = ir$1(p3 ? Oo$1(ne, Fr2) : ne, ee, p3 ? sn$2(ve2, Br2) : ve2);
|
|
43002
43002
|
k[y] = jn2, V[y] = jn2 - ee;
|
|
43003
43003
|
}
|
|
43004
43004
|
if (a) {
|
|
@@ -43205,12 +43205,12 @@ Actual: ` + p3.attribValue
|
|
|
43205
43205
|
return p3;
|
|
43206
43206
|
};
|
|
43207
43207
|
}
|
|
43208
|
-
var jv = [fv, Nv, dv,
|
|
43208
|
+
var jv = [fv, Nv, dv, _u$1, Tv, Sv, Pv, sv, Mv], Wv = /* @__PURE__ */ Hv({
|
|
43209
43209
|
defaultModifiers: jv
|
|
43210
|
-
}), Uv = "tippy-box",
|
|
43210
|
+
}), Uv = "tippy-box", qu$1 = "tippy-content", qv = "tippy-backdrop", Ku$1 = "tippy-arrow", Xu$1 = "tippy-svg-arrow", Yt$2 = {
|
|
43211
43211
|
passive: true,
|
|
43212
43212
|
capture: true
|
|
43213
|
-
},
|
|
43213
|
+
}, Ju$1 = function() {
|
|
43214
43214
|
return document.body;
|
|
43215
43215
|
};
|
|
43216
43216
|
function Kv(t, e) {
|
|
@@ -43227,7 +43227,7 @@ Actual: ` + p3.attribValue
|
|
|
43227
43227
|
var n = {}.toString.call(t);
|
|
43228
43228
|
return n.indexOf("[object") === 0 && n.indexOf(e + "]") > -1;
|
|
43229
43229
|
}
|
|
43230
|
-
function
|
|
43230
|
+
function Yu$1(t, e) {
|
|
43231
43231
|
return typeof t == "function" ? t.apply(void 0, e) : t;
|
|
43232
43232
|
}
|
|
43233
43233
|
function Fl$1(t, e) {
|
|
@@ -43334,11 +43334,11 @@ Actual: ` + p3.attribValue
|
|
|
43334
43334
|
isTouch: false
|
|
43335
43335
|
}, Vl$1 = 0;
|
|
43336
43336
|
function ok() {
|
|
43337
|
-
tt$1.isTouch || (tt$1.isTouch = true, window.performance && document.addEventListener("mousemove",
|
|
43337
|
+
tt$1.isTouch || (tt$1.isTouch = true, window.performance && document.addEventListener("mousemove", Gu$1));
|
|
43338
43338
|
}
|
|
43339
|
-
function
|
|
43339
|
+
function Gu$1() {
|
|
43340
43340
|
var t = performance.now();
|
|
43341
|
-
t - Vl$1 < 20 && (tt$1.isTouch = false, document.removeEventListener("mousemove",
|
|
43341
|
+
t - Vl$1 < 20 && (tt$1.isTouch = false, document.removeEventListener("mousemove", Gu$1)), Vl$1 = t;
|
|
43342
43342
|
}
|
|
43343
43343
|
function ik() {
|
|
43344
43344
|
var t = document.activeElement;
|
|
@@ -43371,7 +43371,7 @@ Actual: ` + p3.attribValue
|
|
|
43371
43371
|
%c👷 This is a development-only message. It will be removed in production.
|
|
43372
43372
|
`);
|
|
43373
43373
|
}
|
|
43374
|
-
function
|
|
43374
|
+
function Zu$1(t) {
|
|
43375
43375
|
return [
|
|
43376
43376
|
ck(t),
|
|
43377
43377
|
// title
|
|
@@ -43390,20 +43390,20 @@ Actual: ` + p3.attribValue
|
|
|
43390
43390
|
function gt$1(t, e) {
|
|
43391
43391
|
if (t && !Mr$1.has(e)) {
|
|
43392
43392
|
var n;
|
|
43393
|
-
Mr$1.add(e), (n = console).warn.apply(n,
|
|
43393
|
+
Mr$1.add(e), (n = console).warn.apply(n, Zu$1(e));
|
|
43394
43394
|
}
|
|
43395
43395
|
}
|
|
43396
43396
|
function us$1(t, e) {
|
|
43397
43397
|
if (t && !Mr$1.has(e)) {
|
|
43398
43398
|
var n;
|
|
43399
|
-
Mr$1.add(e), (n = console).error.apply(n,
|
|
43399
|
+
Mr$1.add(e), (n = console).error.apply(n, Zu$1(e));
|
|
43400
43400
|
}
|
|
43401
43401
|
}
|
|
43402
43402
|
function uk(t) {
|
|
43403
43403
|
var e = !t, n = Object.prototype.toString.call(t) === "[object Object]" && !t.addEventListener;
|
|
43404
43404
|
us$1(e, ["tippy() was passed", "`" + String(t) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), us$1(n, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
|
|
43405
43405
|
}
|
|
43406
|
-
var
|
|
43406
|
+
var Qu$1 = {
|
|
43407
43407
|
animateFill: false,
|
|
43408
43408
|
followCursor: false,
|
|
43409
43409
|
inlinePositioning: false,
|
|
@@ -43419,7 +43419,7 @@ Actual: ` + p3.attribValue
|
|
|
43419
43419
|
theme: "",
|
|
43420
43420
|
zIndex: 9999
|
|
43421
43421
|
}, Ie$2 = Object.assign({
|
|
43422
|
-
appendTo:
|
|
43422
|
+
appendTo: Ju$1,
|
|
43423
43423
|
aria: {
|
|
43424
43424
|
content: "auto",
|
|
43425
43425
|
expanded: "auto"
|
|
@@ -43466,14 +43466,14 @@ Actual: ` + p3.attribValue
|
|
|
43466
43466
|
touch: true,
|
|
43467
43467
|
trigger: "mouseenter focus",
|
|
43468
43468
|
triggerTarget: null
|
|
43469
|
-
},
|
|
43470
|
-
he$2.env.NODE_ENV !== "production" &&
|
|
43469
|
+
}, Qu$1, fk), pk = Object.keys(Ie$2), hk = function(e) {
|
|
43470
|
+
he$2.env.NODE_ENV !== "production" && tf$1(e, []);
|
|
43471
43471
|
var n = Object.keys(e);
|
|
43472
43472
|
n.forEach(function(r) {
|
|
43473
43473
|
Ie$2[r] = e[r];
|
|
43474
43474
|
});
|
|
43475
43475
|
};
|
|
43476
|
-
function
|
|
43476
|
+
function ef$1(t) {
|
|
43477
43477
|
var e = t.plugins || [], n = e.reduce(function(r, o) {
|
|
43478
43478
|
var i3 = o.name, s = o.defaultValue;
|
|
43479
43479
|
if (i3) {
|
|
@@ -43485,7 +43485,7 @@ Actual: ` + p3.attribValue
|
|
|
43485
43485
|
return Object.assign({}, t, n);
|
|
43486
43486
|
}
|
|
43487
43487
|
function mk(t, e) {
|
|
43488
|
-
var n = e ? Object.keys(
|
|
43488
|
+
var n = e ? Object.keys(ef$1(Object.assign({}, Ie$2, {
|
|
43489
43489
|
plugins: e
|
|
43490
43490
|
}))) : pk, r = n.reduce(function(o, i3) {
|
|
43491
43491
|
var s = (t.getAttribute("data-tippy-" + i3) || "").trim();
|
|
@@ -43505,18 +43505,18 @@ Actual: ` + p3.attribValue
|
|
|
43505
43505
|
}
|
|
43506
43506
|
function jl$1(t, e) {
|
|
43507
43507
|
var n = Object.assign({}, e, {
|
|
43508
|
-
content:
|
|
43508
|
+
content: Yu$1(e.content, [t])
|
|
43509
43509
|
}, e.ignoreAttributes ? {} : mk(t, e.plugins));
|
|
43510
43510
|
return n.aria = Object.assign({}, Ie$2.aria, n.aria), n.aria = {
|
|
43511
43511
|
expanded: n.aria.expanded === "auto" ? e.interactive : n.aria.expanded,
|
|
43512
43512
|
content: n.aria.content === "auto" ? e.interactive ? null : "describedby" : n.aria.content
|
|
43513
43513
|
}, n;
|
|
43514
43514
|
}
|
|
43515
|
-
function
|
|
43515
|
+
function tf$1(t, e) {
|
|
43516
43516
|
t === void 0 && (t = {}), e === void 0 && (e = []);
|
|
43517
43517
|
var n = Object.keys(t);
|
|
43518
43518
|
n.forEach(function(r) {
|
|
43519
|
-
var o = Xv(Ie$2, Object.keys(
|
|
43519
|
+
var o = Xv(Ie$2, Object.keys(Qu$1)), i3 = !Kv(o, r);
|
|
43520
43520
|
i3 && (i3 = e.filter(function(s) {
|
|
43521
43521
|
return s.name === r;
|
|
43522
43522
|
}).length === 0), gt$1(i3, ["`" + r + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
|
|
@@ -43533,7 +43533,7 @@ Actual: ` + p3.attribValue
|
|
|
43533
43533
|
}
|
|
43534
43534
|
function Wl$1(t) {
|
|
43535
43535
|
var e = ar$1();
|
|
43536
|
-
return t === true ? e.className =
|
|
43536
|
+
return t === true ? e.className = Ku$1 : (e.className = Xu$1, xr$1(t) ? e.appendChild(t) : fs$1(e, t)), e;
|
|
43537
43537
|
}
|
|
43538
43538
|
function Ul$1(t, e) {
|
|
43539
43539
|
xr$1(e.content) ? (fs$1(t, ""), t.appendChild(e.content)) : typeof e.content != "function" && (e.allowHTML ? fs$1(t, e.content) : t.textContent = e.content);
|
|
@@ -43543,21 +43543,21 @@ Actual: ` + p3.attribValue
|
|
|
43543
43543
|
return {
|
|
43544
43544
|
box: e,
|
|
43545
43545
|
content: n.find(function(r) {
|
|
43546
|
-
return r.classList.contains(
|
|
43546
|
+
return r.classList.contains(qu$1);
|
|
43547
43547
|
}),
|
|
43548
43548
|
arrow: n.find(function(r) {
|
|
43549
|
-
return r.classList.contains(
|
|
43549
|
+
return r.classList.contains(Ku$1) || r.classList.contains(Xu$1);
|
|
43550
43550
|
}),
|
|
43551
43551
|
backdrop: n.find(function(r) {
|
|
43552
43552
|
return r.classList.contains(qv);
|
|
43553
43553
|
})
|
|
43554
43554
|
};
|
|
43555
43555
|
}
|
|
43556
|
-
function
|
|
43556
|
+
function nf$1(t) {
|
|
43557
43557
|
var e = ar$1(), n = ar$1();
|
|
43558
43558
|
n.className = Uv, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1");
|
|
43559
43559
|
var r = ar$1();
|
|
43560
|
-
r.className =
|
|
43560
|
+
r.className = qu$1, r.setAttribute("data-state", "hidden"), Ul$1(r, t.props), e.appendChild(n), n.appendChild(r), o(t.props, t.props);
|
|
43561
43561
|
function o(i3, s) {
|
|
43562
43562
|
var a = ps(e), l = a.box, c3 = a.content, d = a.arrow;
|
|
43563
43563
|
s.theme ? l.setAttribute("data-theme", s.theme) : l.removeAttribute("data-theme"), typeof s.animation == "string" ? l.setAttribute("data-animation", s.animation) : l.removeAttribute("data-animation"), s.inertia ? l.setAttribute("data-inertia", "") : l.removeAttribute("data-inertia"), l.style.maxWidth = typeof s.maxWidth == "number" ? s.maxWidth + "px" : s.maxWidth, s.role ? l.setAttribute("role", s.role) : l.removeAttribute("role"), (i3.content !== s.content || i3.allowHTML !== s.allowHTML) && Ul$1(c3, t.props), s.arrow ? d ? i3.arrow !== s.arrow && (l.removeChild(d), l.appendChild(Wl$1(s.arrow))) : l.appendChild(Wl$1(s.arrow)) : d && l.removeChild(d);
|
|
@@ -43567,10 +43567,10 @@ Actual: ` + p3.attribValue
|
|
|
43567
43567
|
onUpdate: o
|
|
43568
43568
|
};
|
|
43569
43569
|
}
|
|
43570
|
-
|
|
43570
|
+
nf$1.$$tippy = true;
|
|
43571
43571
|
var yk = 1, eo$2 = [], hi$1 = [];
|
|
43572
43572
|
function bk(t, e) {
|
|
43573
|
-
var n = jl$1(t, Object.assign({}, Ie$2,
|
|
43573
|
+
var n = jl$1(t, Object.assign({}, Ie$2, ef$1(_l$1(e)))), r, o, i3, s = false, a = false, l = false, c3 = false, d, u, f3, p3 = [], h3 = Fl$1(Fr2, n.interactiveDebounce), m, g = yk++, b = null, w = Yv(n.plugins), C = {
|
|
43574
43574
|
// Is the instance currently enabled?
|
|
43575
43575
|
isEnabled: true,
|
|
43576
43576
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -43594,13 +43594,13 @@ Actual: ` + p3.attribValue
|
|
|
43594
43594
|
clearDelayTimeouts: Vr2,
|
|
43595
43595
|
setProps: Hr2,
|
|
43596
43596
|
setContent: jr2,
|
|
43597
|
-
show:
|
|
43598
|
-
hide:
|
|
43599
|
-
hideWithInteractivity:
|
|
43597
|
+
show: rf2,
|
|
43598
|
+
hide: of2,
|
|
43599
|
+
hideWithInteractivity: sf2,
|
|
43600
43600
|
enable: qn2,
|
|
43601
43601
|
disable: $r2,
|
|
43602
|
-
unmount:
|
|
43603
|
-
destroy:
|
|
43602
|
+
unmount: af2,
|
|
43603
|
+
destroy: lf2
|
|
43604
43604
|
};
|
|
43605
43605
|
if (!n.render)
|
|
43606
43606
|
return he$2.env.NODE_ENV !== "production" && us$1(true, "render() function has not been supplied."), y;
|
|
@@ -43815,7 +43815,7 @@ Actual: ` + p3.attribValue
|
|
|
43815
43815
|
fn: function(Wr2) {
|
|
43816
43816
|
var mn2 = Wr2.state;
|
|
43817
43817
|
if (V()) {
|
|
43818
|
-
var
|
|
43818
|
+
var cf2 = ce2(), Vo2 = cf2.box;
|
|
43819
43819
|
["placement", "reference-hidden", "escaped"].forEach(function(Ur2) {
|
|
43820
43820
|
Ur2 === "placement" ? Vo2.setAttribute("data-placement", mn2.placement) : mn2.attributes.popper["data-popper-" + Ur2] ? Vo2.setAttribute("data-" + Ur2, "") : Vo2.removeAttribute("data-" + Ur2);
|
|
43821
43821
|
}), mn2.attributes.popper = {};
|
|
@@ -43864,7 +43864,7 @@ Actual: ` + p3.attribValue
|
|
|
43864
43864
|
}
|
|
43865
43865
|
function ut2() {
|
|
43866
43866
|
var v = y.props.appendTo, A, R = j();
|
|
43867
|
-
y.props.interactive && v ===
|
|
43867
|
+
y.props.interactive && v === Ju$1 || v === "parent" ? A = R.parentNode : A = Yu$1(v, [R]), A.contains(k) || A.appendChild(k), y.state.isMounted = true, _r2(), he$2.env.NODE_ENV !== "production" && gt$1(y.props.interactive && v === Ie$2.appendTo && R.nextElementSibling !== k, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
|
43868
43868
|
|
|
43869
43869
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
43870
43870
|
|
|
@@ -43923,7 +43923,7 @@ Actual: ` + p3.attribValue
|
|
|
43923
43923
|
content: v
|
|
43924
43924
|
});
|
|
43925
43925
|
}
|
|
43926
|
-
function
|
|
43926
|
+
function rf2() {
|
|
43927
43927
|
he$2.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, vn$2("show"));
|
|
43928
43928
|
var v = y.state.isVisible, A = y.state.isDestroyed, R = !y.state.isEnabled, q = tt$1.isTouch && !y.props.touch, U = ui$1(y.props.duration, 0, Ie$2.duration);
|
|
43929
43929
|
if (!(v || A || R || q) && !j().hasAttribute("disabled") && (ne("onShow", [y], false), y.props.onShow(y) !== false)) {
|
|
@@ -43945,7 +43945,7 @@ Actual: ` + p3.attribValue
|
|
|
43945
43945
|
}, ut2();
|
|
43946
43946
|
}
|
|
43947
43947
|
}
|
|
43948
|
-
function
|
|
43948
|
+
function of2() {
|
|
43949
43949
|
he$2.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, vn$2("hide"));
|
|
43950
43950
|
var v = !y.state.isVisible, A = y.state.isDestroyed, R = !y.state.isEnabled, q = ui$1(y.props.duration, 1, Ie$2.duration);
|
|
43951
43951
|
if (!(v || A || R) && (ne("onHide", [y], false), y.props.onHide(y) !== false)) {
|
|
@@ -43956,24 +43956,24 @@ Actual: ` + p3.attribValue
|
|
|
43956
43956
|
ve2(), ke2(), y.props.animation ? V() && Mt2(q, y.unmount) : y.unmount();
|
|
43957
43957
|
}
|
|
43958
43958
|
}
|
|
43959
|
-
function
|
|
43959
|
+
function sf2(v) {
|
|
43960
43960
|
he$2.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, vn$2("hideWithInteractivity")), se().addEventListener("mousemove", h3), Bl$1(eo$2, h3), h3(v);
|
|
43961
43961
|
}
|
|
43962
|
-
function
|
|
43962
|
+
function af2() {
|
|
43963
43963
|
he$2.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, vn$2("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (zr2(), Ot2().forEach(function(v) {
|
|
43964
43964
|
v._tippy.unmount();
|
|
43965
43965
|
}), k.parentNode && k.parentNode.removeChild(k), hi$1 = hi$1.filter(function(v) {
|
|
43966
43966
|
return v !== y;
|
|
43967
43967
|
}), y.state.isMounted = false, ne("onHidden", [y]));
|
|
43968
43968
|
}
|
|
43969
|
-
function
|
|
43969
|
+
function lf2() {
|
|
43970
43970
|
he$2.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, vn$2("destroy")), !y.state.isDestroyed && (y.clearDelayTimeouts(), y.unmount(), Lr2(), delete t._tippy, y.state.isDestroyed = true, ne("onDestroy", [y]));
|
|
43971
43971
|
}
|
|
43972
43972
|
}
|
|
43973
43973
|
function Rr(t, e) {
|
|
43974
43974
|
e === void 0 && (e = {});
|
|
43975
43975
|
var n = Ie$2.plugins.concat(e.plugins || []);
|
|
43976
|
-
he$2.env.NODE_ENV !== "production" && (uk(t),
|
|
43976
|
+
he$2.env.NODE_ENV !== "production" && (uk(t), tf$1(e, n)), sk();
|
|
43977
43977
|
var r = Object.assign({}, e, {
|
|
43978
43978
|
plugins: n
|
|
43979
43979
|
}), o = tk(t);
|
|
@@ -43995,7 +43995,7 @@ Actual: ` + p3.attribValue
|
|
|
43995
43995
|
Rr.defaultProps = Ie$2;
|
|
43996
43996
|
Rr.setDefaultProps = hk;
|
|
43997
43997
|
Rr.currentInput = tt$1;
|
|
43998
|
-
Object.assign({},
|
|
43998
|
+
Object.assign({}, _u$1, {
|
|
43999
43999
|
effect: function(e) {
|
|
44000
44000
|
var n = e.state, r = {
|
|
44001
44001
|
popper: {
|
|
@@ -44013,7 +44013,7 @@ Actual: ` + p3.attribValue
|
|
|
44013
44013
|
}
|
|
44014
44014
|
});
|
|
44015
44015
|
Rr.setDefaultProps({
|
|
44016
|
-
render:
|
|
44016
|
+
render: nf$1
|
|
44017
44017
|
});
|
|
44018
44018
|
const wk = (t, e) => {
|
|
44019
44019
|
const n = t.__vccOpts || t;
|
|
@@ -44287,7 +44287,7 @@ Actual: ` + p3.attribValue
|
|
|
44287
44287
|
if (!e.converter) return F.empty;
|
|
44288
44288
|
const r = e.converter.pageStyles?.pageSize, { width: o, height: i3 } = r;
|
|
44289
44289
|
if (!o || !i3) return F.empty;
|
|
44290
|
-
const s = [
|
|
44290
|
+
const s = [vb, on$3], { state: a } = t, l = At.create({
|
|
44291
44291
|
schema: a.schema,
|
|
44292
44292
|
doc: a.doc,
|
|
44293
44293
|
plugins: a.plugins.filter((h3) => s.includes(h3.key))
|
|
@@ -44409,93 +44409,92 @@ Actual: ` + p3.attribValue
|
|
|
44409
44409
|
e.setMeta("forceUpdatePagination", true), t.view.dispatch(e);
|
|
44410
44410
|
});
|
|
44411
44411
|
}, Lk = () => [
|
|
44412
|
-
|
|
44412
|
+
Ou$1,
|
|
44413
44413
|
Yd$1,
|
|
44414
44414
|
$d$1,
|
|
44415
44415
|
Xd$1,
|
|
44416
44416
|
Vd$1,
|
|
44417
44417
|
Hd$1,
|
|
44418
|
-
|
|
44418
|
+
Hf$1,
|
|
44419
44419
|
ru$1,
|
|
44420
|
-
|
|
44420
|
+
Tu$1,
|
|
44421
44421
|
tu$1,
|
|
44422
44422
|
Ud$1,
|
|
44423
|
-
|
|
44423
|
+
Iu$1,
|
|
44424
44424
|
Zd$1,
|
|
44425
44425
|
nu$1,
|
|
44426
44426
|
ou$1,
|
|
44427
|
-
|
|
44428
|
-
Iu$1,
|
|
44427
|
+
Eu$1,
|
|
44429
44428
|
Jd$1,
|
|
44430
44429
|
jd$1,
|
|
44431
44430
|
Wd$1,
|
|
44432
|
-
|
|
44433
|
-
|
|
44431
|
+
Au$1,
|
|
44432
|
+
Du$1,
|
|
44434
44433
|
zw,
|
|
44435
44434
|
Ok,
|
|
44436
|
-
|
|
44437
|
-
|
|
44435
|
+
Mu$1,
|
|
44436
|
+
Nu$1,
|
|
44438
44437
|
qd$1,
|
|
44439
|
-
|
|
44440
|
-
wu$1,
|
|
44441
|
-
vu$1,
|
|
44438
|
+
gu$1,
|
|
44442
44439
|
bu$1,
|
|
44443
|
-
|
|
44440
|
+
wu$1,
|
|
44441
|
+
yu$1,
|
|
44442
|
+
Su$1,
|
|
44444
44443
|
Kd$1,
|
|
44444
|
+
Pu$1,
|
|
44445
44445
|
Ru$1,
|
|
44446
44446
|
Lu$1,
|
|
44447
|
-
|
|
44448
|
-
Mu$1
|
|
44447
|
+
xu$1
|
|
44449
44448
|
], Fk = () => [
|
|
44450
|
-
|
|
44449
|
+
Ou$1,
|
|
44451
44450
|
Yd$1,
|
|
44452
44451
|
$d$1,
|
|
44452
|
+
e0,
|
|
44453
44453
|
t0,
|
|
44454
44454
|
n0,
|
|
44455
|
-
r0,
|
|
44456
44455
|
Xd$1,
|
|
44457
44456
|
Vd$1,
|
|
44458
44457
|
Hd$1,
|
|
44459
44458
|
// History,
|
|
44460
44459
|
ru$1,
|
|
44461
|
-
|
|
44460
|
+
Tu$1,
|
|
44462
44461
|
tu$1,
|
|
44463
44462
|
Ud$1,
|
|
44464
|
-
|
|
44463
|
+
Iu$1,
|
|
44465
44464
|
Zd$1,
|
|
44466
44465
|
nu$1,
|
|
44466
|
+
a0,
|
|
44467
44467
|
ou$1,
|
|
44468
|
-
|
|
44469
|
-
|
|
44470
|
-
|
|
44471
|
-
i0,
|
|
44468
|
+
Tb,
|
|
44469
|
+
Eu$1,
|
|
44470
|
+
o0,
|
|
44472
44471
|
Jd$1,
|
|
44473
44472
|
jd$1,
|
|
44474
44473
|
Wd$1,
|
|
44475
|
-
|
|
44476
|
-
|
|
44474
|
+
Au$1,
|
|
44475
|
+
Du$1,
|
|
44477
44476
|
qd$1,
|
|
44478
|
-
|
|
44479
|
-
|
|
44480
|
-
|
|
44481
|
-
wu$1,
|
|
44482
|
-
vu$1,
|
|
44477
|
+
Zy,
|
|
44478
|
+
wb,
|
|
44479
|
+
gu$1,
|
|
44483
44480
|
bu$1,
|
|
44484
|
-
|
|
44481
|
+
wu$1,
|
|
44482
|
+
yu$1,
|
|
44483
|
+
Su$1,
|
|
44485
44484
|
Kd$1,
|
|
44486
|
-
|
|
44485
|
+
xu$1,
|
|
44487
44486
|
Ew,
|
|
44488
|
-
|
|
44489
|
-
|
|
44490
|
-
|
|
44487
|
+
Mu$1,
|
|
44488
|
+
kb,
|
|
44489
|
+
Ab,
|
|
44491
44490
|
_w,
|
|
44491
|
+
Pu$1,
|
|
44492
44492
|
Ru$1,
|
|
44493
44493
|
Lu$1,
|
|
44494
|
-
|
|
44495
|
-
o0,
|
|
44494
|
+
r0,
|
|
44496
44495
|
Nk,
|
|
44497
|
-
|
|
44498
|
-
|
|
44496
|
+
Nu$1,
|
|
44497
|
+
Kb,
|
|
44499
44498
|
Iw,
|
|
44500
44499
|
Pw
|
|
44501
44500
|
];
|
|
@@ -52234,7 +52233,7 @@ ${t}
|
|
|
52234
52233
|
}, [
|
|
52235
52234
|
createBaseVNode("div", {
|
|
52236
52235
|
class: "style-name",
|
|
52237
|
-
style: normalizeStyle(unref(
|
|
52236
|
+
style: normalizeStyle(unref(Jb)(l, null, false))
|
|
52238
52237
|
}, toDisplayString(l.definition.attrs.name), 5)
|
|
52239
52238
|
], 8, yn))), 256))
|
|
52240
52239
|
])) : createCommentVNode("", true);
|
|
@@ -53385,7 +53384,7 @@ ${t}
|
|
|
53385
53384
|
O(this, L, He).call(this);
|
|
53386
53385
|
return;
|
|
53387
53386
|
}
|
|
53388
|
-
const o =
|
|
53387
|
+
const o = Ef$1(this.activeEditor), n = Cd$1(this.activeEditor.state);
|
|
53389
53388
|
this.toolbarItems.forEach((e) => {
|
|
53390
53389
|
if (e.resetDisabled(), e.name.value === "linkedStyles")
|
|
53391
53390
|
return this.activeEditor && !Uk(this.activeEditor).length ? e.deactivate() : e.activate();
|
|
@@ -68595,7 +68594,7 @@ ${style2}
|
|
|
68595
68594
|
this.config.colors = shuffleArray(this.config.colors);
|
|
68596
68595
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
68597
68596
|
this.colorIndex = 0;
|
|
68598
|
-
this.version = "0.9.
|
|
68597
|
+
this.version = "0.9.37";
|
|
68599
68598
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
68600
68599
|
this.superdocId = config.superdocId || v4();
|
|
68601
68600
|
this.colors = this.config.colors;
|