@harbour-enterprises/superdoc 0.9.33 → 0.9.34
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-Bq_aNm9n.es.js → index-BR0d39LK.es.js} +2 -2
- package/dist/chunks/{index-B5GDfEJg.es.js → index-CFw3GWZb.es.js} +1 -1
- package/dist/chunks/{index--PIRPKWt.cjs → index-Da1nm1Nx.cjs} +1 -1
- package/dist/chunks/{index-DrgTIkvI.cjs → index-zi2PhUgG.cjs} +1 -1
- package/dist/chunks/{super-editor.es-y2QD_ueu.cjs → super-editor.es-BBj7vFp-.cjs} +32 -32
- package/dist/chunks/{super-editor.es-B8noCvT1.es.js → super-editor.es-CPySz799.es.js} +1889 -1889
- package/dist/chunks/{url-BDmRlERW.es.js → url-BBWjYHis.es.js} +1 -1
- package/dist/chunks/{url-C5DCBLAS.cjs → url-CsA0aP-j.cjs} +1 -1
- package/dist/chunks/{xml-js-DMX8C2aY.es.js → xml-js-BK8neRFY.es.js} +407 -411
- package/dist/chunks/{xml-js-DN6JJ8Mw.cjs → xml-js-Dl3GDIvM.cjs} +2 -2
- package/dist/super-editor/chunks/{converter-CdhiEvSA.js → converter-A8jhEHAV.js} +271 -271
- package/dist/super-editor/chunks/{docx-zipper-Cb4eXMOp.js → docx-zipper-ChOmGxQY.js} +1 -1
- package/dist/super-editor/chunks/{editor-Czx51mKu.js → editor-CPeWTjoI.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-BE-PZVKR.js → toolbar-DS4sA_rD.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/super-converter/exporter.d.ts.map +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/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 +1 -1
- package/dist/superdoc.cjs +3 -3
- package/dist/superdoc.es.js +6 -6
- package/dist/superdoc.umd.js +344 -344
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/superdoc.umd.js
CHANGED
|
@@ -15195,7 +15195,7 @@ Actual: ` + p3.attribValue
|
|
|
15195
15195
|
return this.excluded.indexOf(e) > -1;
|
|
15196
15196
|
}
|
|
15197
15197
|
};
|
|
15198
|
-
let
|
|
15198
|
+
let fp$2 = class fp {
|
|
15199
15199
|
/**
|
|
15200
15200
|
Construct a schema from a schema [specification](https://prosemirror.net/docs/ref/#model.SchemaSpec).
|
|
15201
15201
|
*/
|
|
@@ -16653,7 +16653,7 @@ Actual: ` + p3.attribValue
|
|
|
16653
16653
|
function of$1(r22, e, t) {
|
|
16654
16654
|
return (e == 0 || r22.canReplace(e, r22.childCount)) && (t == r22.childCount || r22.canReplace(0, t));
|
|
16655
16655
|
}
|
|
16656
|
-
function
|
|
16656
|
+
function mp$2(r22) {
|
|
16657
16657
|
let t = r22.parent.content.cutByIndex(r22.startIndex, r22.endIndex);
|
|
16658
16658
|
for (let n = r22.depth; ; --n) {
|
|
16659
16659
|
let i3 = r22.$from.node(n), s = r22.$from.index(n), o = r22.$to.indexAfter(n);
|
|
@@ -16673,7 +16673,7 @@ Actual: ` + p3.attribValue
|
|
|
16673
16673
|
A || i3.after(T3 + 1) < i3.end(T3) ? (A = true, g = Z.from(i3.node(T3).copy(g)), S++) : f3++;
|
|
16674
16674
|
r22.step(new Je$3(u, f3, o, a, new ue(c3.append(g), h3, S), c3.size - h3, true));
|
|
16675
16675
|
}
|
|
16676
|
-
function
|
|
16676
|
+
function pp$2(r22, e, t = null, n = r22) {
|
|
16677
16677
|
let i3 = uf$2(r22, e), s = i3 && lf$1(n, e);
|
|
16678
16678
|
return s ? i3.map(ho$2).concat({ type: e, attrs: t }).concat(s.map(ho$2)) : null;
|
|
16679
16679
|
}
|
|
@@ -16763,7 +16763,7 @@ Actual: ` + p3.attribValue
|
|
|
16763
16763
|
throw new RangeError("Invalid content for node type " + t.name);
|
|
16764
16764
|
r22.step(new Je$3(e, e + s.nodeSize, e + 1, e + s.nodeSize - 1, new ue(Z.from(o), 0, 0), 1, true));
|
|
16765
16765
|
}
|
|
16766
|
-
function
|
|
16766
|
+
function hp$2(r22, e, t = 1, n) {
|
|
16767
16767
|
let i3 = r22.resolve(e), s = i3.depth - t, o = n && n[n.length - 1] || i3.parent;
|
|
16768
16768
|
if (s < 0 || i3.parent.type.spec.isolating || !i3.parent.canReplace(i3.index(), i3.parent.childCount) || !o.type.validContent(i3.parent.content.cutByIndex(i3.index(), i3.parent.childCount)))
|
|
16769
16769
|
return false;
|
|
@@ -16789,7 +16789,7 @@ Actual: ` + p3.attribValue
|
|
|
16789
16789
|
}
|
|
16790
16790
|
r22.step(new Ie$3(e, e, new ue(s.append(o), t, t), true));
|
|
16791
16791
|
}
|
|
16792
|
-
function
|
|
16792
|
+
function gp$2(r22, e) {
|
|
16793
16793
|
let t = r22.resolve(e), n = t.index();
|
|
16794
16794
|
return za$2(t.nodeBefore, t.nodeAfter) && t.parent.canReplace(n, n + 1);
|
|
16795
16795
|
}
|
|
@@ -16806,7 +16806,7 @@ Actual: ` + p3.attribValue
|
|
|
16806
16806
|
function za$2(r22, e) {
|
|
16807
16807
|
return !!(r22 && e && !r22.isLeaf && hf$1(r22, e));
|
|
16808
16808
|
}
|
|
16809
|
-
function
|
|
16809
|
+
function wp$2(r22, e, t = -1) {
|
|
16810
16810
|
let n = r22.resolve(e);
|
|
16811
16811
|
for (let i3 = n.depth; ; i3--) {
|
|
16812
16812
|
let s, o, a = n.index(i3);
|
|
@@ -16858,7 +16858,7 @@ Actual: ` + p3.attribValue
|
|
|
16858
16858
|
}
|
|
16859
16859
|
return null;
|
|
16860
16860
|
}
|
|
16861
|
-
function
|
|
16861
|
+
function yp$2(r22, e, t) {
|
|
16862
16862
|
let n = r22.resolve(e);
|
|
16863
16863
|
if (!t.content.size)
|
|
16864
16864
|
return e;
|
|
@@ -18228,7 +18228,7 @@ Actual: ` + p3.attribValue
|
|
|
18228
18228
|
}
|
|
18229
18229
|
return t;
|
|
18230
18230
|
}
|
|
18231
|
-
let
|
|
18231
|
+
let bp$2 = class bp {
|
|
18232
18232
|
/**
|
|
18233
18233
|
Create a plugin.
|
|
18234
18234
|
*/
|
|
@@ -18246,7 +18246,7 @@ Actual: ` + p3.attribValue
|
|
|
18246
18246
|
function Xa$2(r22) {
|
|
18247
18247
|
return r22 in si$2 ? r22 + "$" + ++si$2[r22] : (si$2[r22] = 0, r22 + "$");
|
|
18248
18248
|
}
|
|
18249
|
-
let
|
|
18249
|
+
let xp$2 = class xp {
|
|
18250
18250
|
/**
|
|
18251
18251
|
Create a plugin key.
|
|
18252
18252
|
*/
|
|
@@ -18267,7 +18267,7 @@ Actual: ` + p3.attribValue
|
|
|
18267
18267
|
return e[this.key];
|
|
18268
18268
|
}
|
|
18269
18269
|
};
|
|
18270
|
-
const Ya$2 = (r22) => r22.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`),
|
|
18270
|
+
const Ya$2 = (r22) => r22.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), Ap$1 = (r22) => Ya$2(r22), Dp$1 = Object.freeze({
|
|
18271
18271
|
RESOLVED: "resolved",
|
|
18272
18272
|
NEW: "new",
|
|
18273
18273
|
ADD: "add",
|
|
@@ -18280,7 +18280,7 @@ Actual: ` + p3.attribValue
|
|
|
18280
18280
|
// Tracked changes
|
|
18281
18281
|
CHANGE_ACCEPTED: "change-accepted",
|
|
18282
18282
|
CHANGE_REJECTED: "change-rejected"
|
|
18283
|
-
}),
|
|
18283
|
+
}), Ep$1 = {
|
|
18284
18284
|
mounted(r22, e, t) {
|
|
18285
18285
|
const n = (i3) => {
|
|
18286
18286
|
r22.contains(i3.target) || e.value(i3);
|
|
@@ -18336,7 +18336,7 @@ Actual: ` + p3.attribValue
|
|
|
18336
18336
|
if (r22 != null)
|
|
18337
18337
|
return Math.round(r22 * 6);
|
|
18338
18338
|
}
|
|
18339
|
-
const Nf$1 = async (r22) => await (await fetch(r22)).arrayBuffer(),
|
|
18339
|
+
const Nf$1 = async (r22) => await (await fetch(r22)).arrayBuffer(), vp$2 = (r22) => {
|
|
18340
18340
|
const n = new window.DOMParser().parseFromString(r22, "text/xml").querySelectorAll("Default");
|
|
18341
18341
|
return Array.from(n).map((i3) => i3.getAttribute("Extension"));
|
|
18342
18342
|
}, If$2 = (r22) => (/* @__PURE__ */ new Map([
|
|
@@ -19596,6 +19596,14 @@ Actual: ` + p3.attribValue
|
|
|
19596
19596
|
console.error("Error in carbonCopy", r22, e);
|
|
19597
19597
|
return;
|
|
19598
19598
|
}
|
|
19599
|
+
}, Wf$2 = {
|
|
19600
|
+
attributes: {
|
|
19601
|
+
"w:abstractNumId": "1"
|
|
19602
|
+
}
|
|
19603
|
+
}, Jf$2 = {
|
|
19604
|
+
attributes: {
|
|
19605
|
+
"w:abstractNumId": "0"
|
|
19606
|
+
}
|
|
19599
19607
|
}, ru$2 = {
|
|
19600
19608
|
declaration: {
|
|
19601
19609
|
attributes: {
|
|
@@ -20846,7 +20854,7 @@ Actual: ` + p3.attribValue
|
|
|
20846
20854
|
u && (f3 = r22.comments.find((S) => S.commentId === u || S.importedId === u));
|
|
20847
20855
|
const c3 = f3?.isInternal || o.isInternal;
|
|
20848
20856
|
if (n === "external" && c3 || !!o.resolvedTime) return;
|
|
20849
|
-
let g =
|
|
20857
|
+
let g = Kf$2(e, a);
|
|
20850
20858
|
if (e === "End") {
|
|
20851
20859
|
const S = {
|
|
20852
20860
|
name: "w:r",
|
|
@@ -20856,21 +20864,21 @@ Actual: ` + p3.attribValue
|
|
|
20856
20864
|
}
|
|
20857
20865
|
return g;
|
|
20858
20866
|
}
|
|
20859
|
-
const
|
|
20867
|
+
const Kf$2 = (r22, e) => ({
|
|
20860
20868
|
name: `w:commentRange${r22}`,
|
|
20861
20869
|
attributes: {
|
|
20862
20870
|
"w:id": String(e)
|
|
20863
20871
|
}
|
|
20864
|
-
}),
|
|
20872
|
+
}), $f$2 = (r22) => ({
|
|
20865
20873
|
...r22,
|
|
20866
20874
|
commentParaId: tu$2()
|
|
20867
|
-
}),
|
|
20875
|
+
}), Xf$2 = (r22, e, t) => {
|
|
20868
20876
|
const n = iu$2({ node: r22.commentJSON }), i3 = {
|
|
20869
20877
|
"w:id": String(e),
|
|
20870
20878
|
"w:author": r22.creatorName || r22.importedAuthor?.name,
|
|
20871
20879
|
"w:email": r22.creatorEmail || r22.importedAuthor?.email,
|
|
20872
20880
|
"w:date": nu$2(r22.createdTime),
|
|
20873
|
-
"w:initials": $
|
|
20881
|
+
"w:initials": Yf$2(r22.creatorName),
|
|
20874
20882
|
"w:done": r22.resolvedTime ? "1" : "0",
|
|
20875
20883
|
"w15:paraId": r22.commentParaId,
|
|
20876
20884
|
"custom:internalId": r22.commentId || r22.internalId,
|
|
@@ -20889,7 +20897,7 @@ Actual: ` + p3.attribValue
|
|
|
20889
20897
|
attributes: i3,
|
|
20890
20898
|
elements: [n]
|
|
20891
20899
|
};
|
|
20892
|
-
}, $
|
|
20900
|
+
}, Yf$2 = (r22) => r22 ? r22.replace("(imported)", "").trim().split(" ").map((n) => n[0]).join("") : null, nu$2 = (r22) => new Date(r22 || Date.now()).toISOString().replace(/\.\d{3}Z$/, "Z"), Qf$2 = (r22 = [], e) => {
|
|
20893
20901
|
const t = je$3(e);
|
|
20894
20902
|
return r22.forEach((n) => {
|
|
20895
20903
|
n.elements[0].elements.unshift(Mf$1);
|
|
@@ -20908,7 +20916,7 @@ Actual: ` + p3.attribValue
|
|
|
20908
20916
|
"xmlns:custom": "http://schemas.openxmlformats.org/wordprocessingml/2006/main"
|
|
20909
20917
|
};
|
|
20910
20918
|
}), t.elements[0].elements = r22, t;
|
|
20911
|
-
},
|
|
20919
|
+
}, Zf$2 = (r22 = [], e) => {
|
|
20912
20920
|
const t = je$3(e), n = r22.map((i3) => {
|
|
20913
20921
|
const s = {
|
|
20914
20922
|
"w15:paraId": i3.commentParaId,
|
|
@@ -20925,7 +20933,7 @@ Actual: ` + p3.attribValue
|
|
|
20925
20933
|
};
|
|
20926
20934
|
});
|
|
20927
20935
|
return t.elements[0].elements = n, t;
|
|
20928
|
-
},
|
|
20936
|
+
}, ed$2 = (r22 = [], e, t) => {
|
|
20929
20937
|
const n = je$3(e), i3 = je$3(t);
|
|
20930
20938
|
return n.elements[0].elements = [], i3.elements[0].elements = [], r22.forEach((s) => {
|
|
20931
20939
|
const o = tu$2(), a = {
|
|
@@ -20950,13 +20958,13 @@ Actual: ` + p3.attribValue
|
|
|
20950
20958
|
documentIdsUpdated: n,
|
|
20951
20959
|
extensibleUpdated: i3
|
|
20952
20960
|
};
|
|
20953
|
-
},
|
|
20961
|
+
}, td$2 = (r22) => {
|
|
20954
20962
|
const e = je$3(r22);
|
|
20955
20963
|
return e["word/comments.xml"] = xt$1.COMMENTS_XML_DEF, e["word/commentsExtended.xml"] = xt$1.COMMENTS_EXTENDED_XML_DEF, e["word/commentsExtensible.xml"] = xt$1.COMMENTS_EXTENSIBLE_XML_DEF, e["word/commentsIds.xml"] = xt$1.COMMENTS_IDS_XML_DEF, e["[Content_Types].xml"] = xt$1.CONTENT_TYPES, e;
|
|
20956
|
-
},
|
|
20964
|
+
}, rd$2 = (r22) => {
|
|
20957
20965
|
const e = je$3(r22);
|
|
20958
20966
|
return delete e["word/comments.xml"], delete e["word/commentsExtended.xml"], delete e["word/commentsExtensible.xml"], delete e["word/commentsIds.xml"], e;
|
|
20959
|
-
}, nr$2 = (r22) => ({ ...xt$1.DOCUMENT_RELS_XML_DEF.elements[0].elements.find((n) => n.attributes.Target === r22) }),
|
|
20967
|
+
}, nr$2 = (r22) => ({ ...xt$1.DOCUMENT_RELS_XML_DEF.elements[0].elements.find((n) => n.attributes.Target === r22) }), nd$2 = ({
|
|
20960
20968
|
convertedXml: r22,
|
|
20961
20969
|
defs: e,
|
|
20962
20970
|
commentsWithParaIds: t,
|
|
@@ -20965,16 +20973,16 @@ Actual: ` + p3.attribValue
|
|
|
20965
20973
|
}) => {
|
|
20966
20974
|
const s = [];
|
|
20967
20975
|
if (n === "clean")
|
|
20968
|
-
return { documentXml:
|
|
20969
|
-
const o =
|
|
20970
|
-
o["word/comments.xml"] =
|
|
20976
|
+
return { documentXml: rd$2(r22), relationships: s };
|
|
20977
|
+
const o = td$2(r22);
|
|
20978
|
+
o["word/comments.xml"] = Qf$2(
|
|
20971
20979
|
e,
|
|
20972
20980
|
o["word/comments.xml"]
|
|
20973
|
-
), s.push(nr$2("comments.xml")), o["word/commentsExtended.xml"] =
|
|
20981
|
+
), s.push(nr$2("comments.xml")), o["word/commentsExtended.xml"] = Zf$2(
|
|
20974
20982
|
t,
|
|
20975
20983
|
o["word/commentsExtended.xml"]
|
|
20976
20984
|
), s.push(nr$2("commentsExtended.xml"));
|
|
20977
|
-
const { documentIdsUpdated: a, extensibleUpdated: u } =
|
|
20985
|
+
const { documentIdsUpdated: a, extensibleUpdated: u } = ed$2(
|
|
20978
20986
|
t,
|
|
20979
20987
|
o["word/commentsIds.xml"],
|
|
20980
20988
|
o["word/commentsExtensible.xml"]
|
|
@@ -20983,7 +20991,7 @@ Actual: ` + p3.attribValue
|
|
|
20983
20991
|
relationships: s,
|
|
20984
20992
|
documentXml: o
|
|
20985
20993
|
};
|
|
20986
|
-
},
|
|
20994
|
+
}, id$2 = (r22, e) => e ? ["width", `${Math.max(e, r22)}px`] : ["min-width", `${r22}px`], sd$2 = (r22, e, t, n) => {
|
|
20987
20995
|
let i3 = 0, s = true;
|
|
20988
20996
|
const o = [], a = [], u = r22.firstChild;
|
|
20989
20997
|
if (!u) return {};
|
|
@@ -20992,7 +21000,7 @@ Actual: ` + p3.attribValue
|
|
|
20992
21000
|
for (let w = 0; w < A; w++, T3++) {
|
|
20993
21001
|
const k = t === T3 ? n : B3 && B3[w];
|
|
20994
21002
|
i3 += k || e, k || (s = false);
|
|
20995
|
-
const [I3, C] =
|
|
21003
|
+
const [I3, C] = id$2(e, k);
|
|
20996
21004
|
o.push(["col", { style: `${I3}: ${C}` }]), a.push(parseInt(C, 10));
|
|
20997
21005
|
}
|
|
20998
21006
|
}
|
|
@@ -21006,28 +21014,28 @@ Actual: ` + p3.attribValue
|
|
|
21006
21014
|
};
|
|
21007
21015
|
function Pt$2(r22) {
|
|
21008
21016
|
const { type: e } = r22.node || {}, t = {
|
|
21009
|
-
doc:
|
|
21010
|
-
body:
|
|
21017
|
+
doc: ud$2,
|
|
21018
|
+
body: od$2,
|
|
21011
21019
|
paragraph: iu$2,
|
|
21012
|
-
text:
|
|
21020
|
+
text: ld$2,
|
|
21013
21021
|
bulletList: So$2,
|
|
21014
21022
|
orderedList: So$2,
|
|
21015
|
-
lineBreak:
|
|
21016
|
-
table:
|
|
21017
|
-
tableRow:
|
|
21018
|
-
tableCell:
|
|
21019
|
-
bookmarkStart:
|
|
21020
|
-
fieldAnnotation:
|
|
21021
|
-
tab:
|
|
21023
|
+
lineBreak: wd$2,
|
|
21024
|
+
table: yd$2,
|
|
21025
|
+
tableRow: vd$2,
|
|
21026
|
+
tableCell: Sd$2,
|
|
21027
|
+
bookmarkStart: Bd$2,
|
|
21028
|
+
fieldAnnotation: _d$2,
|
|
21029
|
+
tab: xd$2,
|
|
21022
21030
|
image: au$2,
|
|
21023
|
-
hardBreak:
|
|
21031
|
+
hardBreak: qd$2,
|
|
21024
21032
|
commentRangeStart: () => vo$3(r22, "Start"),
|
|
21025
21033
|
commentRangeEnd: () => vo$3(r22, "End"),
|
|
21026
21034
|
commentReference: () => null
|
|
21027
21035
|
};
|
|
21028
21036
|
return t[e] ? t[e](r22) : (console.error("No translation function found for node type:", e), null);
|
|
21029
21037
|
}
|
|
21030
|
-
function
|
|
21038
|
+
function od$2(r22) {
|
|
21031
21039
|
const e = r22.bodyNode?.elements.find((n) => n.name === "w:sectPr") || {};
|
|
21032
21040
|
if (r22.converter) {
|
|
21033
21041
|
const n = r22.converter.pageStyles.pageMargins, i3 = e.elements.find((o) => o.name === "w:pgMar"), { attributes: s } = i3;
|
|
@@ -21045,7 +21053,7 @@ Actual: ` + p3.attribValue
|
|
|
21045
21053
|
const e = Ot$1(r22), t = e.find((s) => s.name === "htmlAnnotation");
|
|
21046
21054
|
if (e.length === 1 && t)
|
|
21047
21055
|
return t.elements;
|
|
21048
|
-
const n =
|
|
21056
|
+
const n = ad$2(r22.node);
|
|
21049
21057
|
n && e.unshift(n);
|
|
21050
21058
|
let i3 = {};
|
|
21051
21059
|
return r22.node.attrs?.rsidRDefault && (i3["w:rsidRDefault"] = r22.node.attrs.rsidRDefault), {
|
|
@@ -21054,7 +21062,7 @@ Actual: ` + p3.attribValue
|
|
|
21054
21062
|
attributes: i3
|
|
21055
21063
|
};
|
|
21056
21064
|
}
|
|
21057
|
-
function
|
|
21065
|
+
function ad$2(r22) {
|
|
21058
21066
|
const { attrs: e = {} } = r22, t = [], { styleId: n } = e;
|
|
21059
21067
|
n && t.push({ name: "w:pStyle", attributes: { "w:val": n } });
|
|
21060
21068
|
const { spacing: i3, indent: s, textAlign: o, textIndent: a, marksAttrs: u, keepLines: f3, keepNext: c3 } = e;
|
|
@@ -21106,7 +21114,7 @@ Actual: ` + p3.attribValue
|
|
|
21106
21114
|
elements: t
|
|
21107
21115
|
} : null;
|
|
21108
21116
|
}
|
|
21109
|
-
function
|
|
21117
|
+
function ud$2(r22) {
|
|
21110
21118
|
const e = {
|
|
21111
21119
|
type: "body",
|
|
21112
21120
|
content: r22.node.content
|
|
@@ -21134,14 +21142,14 @@ Actual: ` + p3.attribValue
|
|
|
21134
21142
|
attributes: i3
|
|
21135
21143
|
}, s);
|
|
21136
21144
|
}
|
|
21137
|
-
function
|
|
21145
|
+
function ld$2(r22) {
|
|
21138
21146
|
const { node: e } = r22, t = [yr$2, Ii$2];
|
|
21139
|
-
if (e.marks?.some((a) => t.includes(a.type))) return
|
|
21140
|
-
if (e.marks?.some((a) => a.type === "link")) return
|
|
21147
|
+
if (e.marks?.some((a) => t.includes(a.type))) return fd$2(r22);
|
|
21148
|
+
if (e.marks?.some((a) => a.type === "link")) return dd$2(r22);
|
|
21141
21149
|
const { text: s, marks: o = [] } = e;
|
|
21142
21150
|
return Fr$1(s, o);
|
|
21143
21151
|
}
|
|
21144
|
-
function
|
|
21152
|
+
function cd$2(r22) {
|
|
21145
21153
|
const e = r22.find((t) => t.type === Ri$2);
|
|
21146
21154
|
if (e)
|
|
21147
21155
|
return {
|
|
@@ -21156,8 +21164,8 @@ Actual: ` + p3.attribValue
|
|
|
21156
21164
|
elements: e.attrs.before.map((n) => Br$1([n])).filter((n) => n !== void 0)
|
|
21157
21165
|
};
|
|
21158
21166
|
}
|
|
21159
|
-
function
|
|
21160
|
-
const { node: e } = r22, t = e.marks, n = [yr$2, Ii$2, Ri$2], i3 = t.find((f3) => n.includes(f3.type)), s = i3.type === yr$2, o =
|
|
21167
|
+
function fd$2(r22) {
|
|
21168
|
+
const { node: e } = r22, t = e.marks, n = [yr$2, Ii$2, Ri$2], i3 = t.find((f3) => n.includes(f3.type)), s = i3.type === yr$2, o = cd$2(t);
|
|
21161
21169
|
e.marks = t.filter((f3) => !n.includes(f3.type)), o && e.marks.push(o);
|
|
21162
21170
|
const a = Pt$2({ ...r22, node: e });
|
|
21163
21171
|
if (!s) {
|
|
@@ -21195,7 +21203,7 @@ Actual: ` + p3.attribValue
|
|
|
21195
21203
|
return To$2(i3);
|
|
21196
21204
|
}) : To$2(e));
|
|
21197
21205
|
}
|
|
21198
|
-
function
|
|
21206
|
+
function dd$2(r22) {
|
|
21199
21207
|
const { node: e } = r22, t = e.marks.find((a) => a.type === "link"), n = t.attrs.href;
|
|
21200
21208
|
let i3 = t.attrs.rId;
|
|
21201
21209
|
i3 || (i3 = ou$2(r22, n)), e.marks = e.marks.filter((a) => a.type !== "link");
|
|
@@ -21235,9 +21243,9 @@ Actual: ` + p3.attribValue
|
|
|
21235
21243
|
return r22.relationships.push(n), t;
|
|
21236
21244
|
}
|
|
21237
21245
|
function So$2(r22) {
|
|
21238
|
-
const { type: e } = r22.node, t =
|
|
21246
|
+
const { type: e } = r22.node, t = gd$2(r22), n = [];
|
|
21239
21247
|
return t.forEach((i3) => {
|
|
21240
|
-
const { level: s, listType: o, pPrs: a, content: u, attrs: f3 = {} } = i3, g = (i3.attrs.numId || i3.listId) ??
|
|
21248
|
+
const { level: s, listType: o, pPrs: a, content: u, attrs: f3 = {} } = i3, g = (i3.attrs.numId || i3.listId) ?? md$2(r22, o), S = hd$2(s, g, a);
|
|
21241
21249
|
u.forEach((T3, A) => {
|
|
21242
21250
|
const B3 = Object.assign({}, T3);
|
|
21243
21251
|
B3.attrs = {
|
|
@@ -21268,30 +21276,22 @@ Actual: ` + p3.attribValue
|
|
|
21268
21276
|
});
|
|
21269
21277
|
}), n;
|
|
21270
21278
|
}
|
|
21271
|
-
function
|
|
21272
|
-
const t = {
|
|
21273
|
-
...definition,
|
|
21274
|
-
attributes: {
|
|
21275
|
-
...definition.attributes,
|
|
21276
|
-
"w:abstractNumId": r22
|
|
21277
|
-
}
|
|
21278
|
-
}, n = {
|
|
21279
|
+
function md$2(r22, e) {
|
|
21280
|
+
const t = pd$2(r22.converter.numbering?.definitions), n = e === "bullet" ? Jf$2 : Wf$2, i3 = t, s = n.attributes["w:abstractNumId"], o = {
|
|
21279
21281
|
type: "element",
|
|
21280
21282
|
name: "w:num",
|
|
21281
21283
|
attributes: {
|
|
21282
|
-
"w:numId": String(
|
|
21284
|
+
"w:numId": String(i3),
|
|
21283
21285
|
"w16cid:durableId": "485517411"
|
|
21284
21286
|
},
|
|
21285
21287
|
elements: [
|
|
21286
|
-
{ name: "w:abstractNumId", attributes: { "w:val": String(
|
|
21288
|
+
{ name: "w:abstractNumId", attributes: { "w:val": String(s) } }
|
|
21287
21289
|
]
|
|
21288
21290
|
};
|
|
21289
|
-
return
|
|
21290
|
-
newAbstractDef: t,
|
|
21291
|
-
newNumDef: n
|
|
21292
|
-
};
|
|
21291
|
+
return r22.converter.numbering.definitions[i3] = o, i3;
|
|
21293
21292
|
}
|
|
21294
|
-
|
|
21293
|
+
const pd$2 = (r22) => !r22 || !Object.keys(r22).length ? 0 : Math.max(...Object.keys(r22).map((t) => parseInt(t, 10))) + 1;
|
|
21294
|
+
function hd$2(r22, e, t = []) {
|
|
21295
21295
|
return {
|
|
21296
21296
|
name: "w:pPr",
|
|
21297
21297
|
type: "element",
|
|
@@ -21316,7 +21316,7 @@ Actual: ` + p3.attribValue
|
|
|
21316
21316
|
]
|
|
21317
21317
|
};
|
|
21318
21318
|
}
|
|
21319
|
-
function
|
|
21319
|
+
function gd$2({ node: r22 }) {
|
|
21320
21320
|
const { content: e, attrs: t = {} } = r22, { listId: n, syncId: i3 } = r22.attrs || {}, s = r22.attrs["list-style-type"], { attributes: o = {} } = t, a = o?.parentAttributes?.paragraphProperties?.elements?.filter((c3) => c3.name !== "w:numPr") || [], u = [];
|
|
21321
21321
|
function f3(c3, h3 = 0) {
|
|
21322
21322
|
!c3 || !c3.length || c3.forEach((g) => {
|
|
@@ -21337,22 +21337,22 @@ Actual: ` + p3.attribValue
|
|
|
21337
21337
|
}
|
|
21338
21338
|
return f3(e), u;
|
|
21339
21339
|
}
|
|
21340
|
-
function
|
|
21340
|
+
function wd$2(r22) {
|
|
21341
21341
|
const e = {}, { lineBreakType: t } = r22.node?.attrs || {};
|
|
21342
21342
|
return t && (e["w:type"] = t), {
|
|
21343
21343
|
name: "w:br",
|
|
21344
21344
|
attributes: e
|
|
21345
21345
|
};
|
|
21346
21346
|
}
|
|
21347
|
-
function
|
|
21348
|
-
r22.node =
|
|
21349
|
-
const e = Ot$1(r22), t =
|
|
21347
|
+
function yd$2(r22) {
|
|
21348
|
+
r22.node = bd$2(r22.node, r22);
|
|
21349
|
+
const e = Ot$1(r22), t = Ad$2(r22.node), n = Ed$2(r22.node, r22);
|
|
21350
21350
|
return e.unshift(t), e.unshift(n), {
|
|
21351
21351
|
name: "w:tbl",
|
|
21352
21352
|
elements: e
|
|
21353
21353
|
};
|
|
21354
21354
|
}
|
|
21355
|
-
function
|
|
21355
|
+
function bd$2(r22, { editorSchema: e }) {
|
|
21356
21356
|
const { content: t } = r22;
|
|
21357
21357
|
for (let n = 0; n < t.length; n++) {
|
|
21358
21358
|
const i3 = t[n];
|
|
@@ -21388,13 +21388,13 @@ Actual: ` + p3.attribValue
|
|
|
21388
21388
|
}
|
|
21389
21389
|
return r22;
|
|
21390
21390
|
}
|
|
21391
|
-
function
|
|
21391
|
+
function xd$2(r22) {
|
|
21392
21392
|
const { marks: e = [] } = r22.node, t = Br$1(e);
|
|
21393
21393
|
return Pi$2({
|
|
21394
21394
|
name: "w:tab"
|
|
21395
21395
|
}, t);
|
|
21396
21396
|
}
|
|
21397
|
-
function
|
|
21397
|
+
function Ad$2(r22) {
|
|
21398
21398
|
const e = [], { attrs: t } = r22, { tableWidth: n, tableWidthType: i3, tableStyleId: s, borders: o, tableIndent: a, tableLayout: u, tableCellSpacing: f3 } = t;
|
|
21399
21399
|
if (s) {
|
|
21400
21400
|
const c3 = {
|
|
@@ -21404,7 +21404,7 @@ Actual: ` + p3.attribValue
|
|
|
21404
21404
|
e.push(c3);
|
|
21405
21405
|
}
|
|
21406
21406
|
if (o) {
|
|
21407
|
-
const c3 =
|
|
21407
|
+
const c3 = Dd$2(r22);
|
|
21408
21408
|
e.push(c3);
|
|
21409
21409
|
}
|
|
21410
21410
|
if (a) {
|
|
@@ -21439,7 +21439,7 @@ Actual: ` + p3.attribValue
|
|
|
21439
21439
|
elements: e
|
|
21440
21440
|
};
|
|
21441
21441
|
}
|
|
21442
|
-
function
|
|
21442
|
+
function Dd$2(r22) {
|
|
21443
21443
|
const { borders: e } = r22.attrs, t = [];
|
|
21444
21444
|
return e ? (["top", "bottom", "left", "right", "insideH", "insideV"].forEach((i3) => {
|
|
21445
21445
|
const s = e[i3];
|
|
@@ -21463,11 +21463,11 @@ Actual: ` + p3.attribValue
|
|
|
21463
21463
|
elements: t
|
|
21464
21464
|
}) : void 0;
|
|
21465
21465
|
}
|
|
21466
|
-
function
|
|
21466
|
+
function Ed$2(r22, e) {
|
|
21467
21467
|
const { editorSchema: t } = e;
|
|
21468
21468
|
let n = [];
|
|
21469
21469
|
try {
|
|
21470
|
-
const s = t.nodeFromJSON(r22), o = 25, { colgroupValues: a } =
|
|
21470
|
+
const s = t.nodeFromJSON(r22), o = 25, { colgroupValues: a } = sd$2(
|
|
21471
21471
|
s,
|
|
21472
21472
|
o
|
|
21473
21473
|
);
|
|
@@ -21486,14 +21486,14 @@ Actual: ` + p3.attribValue
|
|
|
21486
21486
|
elements: i3
|
|
21487
21487
|
};
|
|
21488
21488
|
}
|
|
21489
|
-
function
|
|
21490
|
-
const e = Ot$1(r22), t =
|
|
21489
|
+
function vd$2(r22) {
|
|
21490
|
+
const e = Ot$1(r22), t = Cd$2(r22.node);
|
|
21491
21491
|
return t.elements.length && e.unshift(t), {
|
|
21492
21492
|
name: "w:tr",
|
|
21493
21493
|
elements: e
|
|
21494
21494
|
};
|
|
21495
21495
|
}
|
|
21496
|
-
function
|
|
21496
|
+
function Cd$2(r22) {
|
|
21497
21497
|
const { attrs: e } = r22, t = [], { rowHeight: n, rowHeightType: i3 } = e;
|
|
21498
21498
|
if (n) {
|
|
21499
21499
|
const s = { "w:val": Se(n) };
|
|
@@ -21509,17 +21509,17 @@ Actual: ` + p3.attribValue
|
|
|
21509
21509
|
elements: t
|
|
21510
21510
|
};
|
|
21511
21511
|
}
|
|
21512
|
-
function
|
|
21512
|
+
function Sd$2(r22) {
|
|
21513
21513
|
const e = Ot$1({
|
|
21514
21514
|
...r22,
|
|
21515
21515
|
tableCell: r22.node
|
|
21516
|
-
}), t =
|
|
21516
|
+
}), t = Td$2(r22.node);
|
|
21517
21517
|
return e.unshift(t), {
|
|
21518
21518
|
name: "w:tc",
|
|
21519
21519
|
elements: e
|
|
21520
21520
|
};
|
|
21521
21521
|
}
|
|
21522
|
-
function
|
|
21522
|
+
function Td$2(r22) {
|
|
21523
21523
|
const e = [], { attrs: t } = r22, { colwidth: n = [], cellWidthType: i3 = "dxa", background: s = {}, colspan: o, rowspan: a, widthUnit: u } = t, f3 = n.reduce((A, B3) => A + B3, 0), c3 = {
|
|
21524
21524
|
name: "w:tcW",
|
|
21525
21525
|
attributes: { "w:w": u === "px" ? Se(f3) : Ft$2(f3), "w:type": i3 }
|
|
@@ -21543,7 +21543,7 @@ Actual: ` + p3.attribValue
|
|
|
21543
21543
|
if (g) {
|
|
21544
21544
|
const A = {
|
|
21545
21545
|
name: "w:tcMar",
|
|
21546
|
-
elements:
|
|
21546
|
+
elements: Fd$2(g)
|
|
21547
21547
|
};
|
|
21548
21548
|
e.push(A);
|
|
21549
21549
|
}
|
|
@@ -21595,11 +21595,11 @@ Actual: ` + p3.attribValue
|
|
|
21595
21595
|
elements: e
|
|
21596
21596
|
};
|
|
21597
21597
|
}
|
|
21598
|
-
function
|
|
21598
|
+
function Fd$2(r22) {
|
|
21599
21599
|
const e = [], { top: t, right: n, bottom: i3, left: s } = r22;
|
|
21600
21600
|
return t != null && e.push({ name: "w:top", attributes: { "w:w": Se(t) } }), n != null && e.push({ name: "w:right", attributes: { "w:w": Se(n) } }), i3 != null && e.push({ name: "w:bottom", attributes: { "w:w": Se(i3) } }), s != null && e.push({ name: "w:left", attributes: { "w:w": Se(s) } }), e;
|
|
21601
21601
|
}
|
|
21602
|
-
function
|
|
21602
|
+
function Bd$2(r22) {
|
|
21603
21603
|
const e = {
|
|
21604
21604
|
name: "w:bookmarkStart",
|
|
21605
21605
|
attributes: {
|
|
@@ -21655,7 +21655,7 @@ Actual: ` + p3.attribValue
|
|
|
21655
21655
|
}
|
|
21656
21656
|
return t;
|
|
21657
21657
|
}
|
|
21658
|
-
function
|
|
21658
|
+
function kd$2(r22) {
|
|
21659
21659
|
if (!r22) return {};
|
|
21660
21660
|
const e = r22.split(";")[0].split("/")[1];
|
|
21661
21661
|
if (!r22 || e !== "png")
|
|
@@ -21669,7 +21669,7 @@ Actual: ` + p3.attribValue
|
|
|
21669
21669
|
originalHeight: i3.getInt32(20)
|
|
21670
21670
|
};
|
|
21671
21671
|
}
|
|
21672
|
-
function
|
|
21672
|
+
function Nd$2(r22, e, t, n) {
|
|
21673
21673
|
let i3 = r22, s = e, o = Math.min(t / r22, n / e);
|
|
21674
21674
|
return i3 = Math.round(i3 * o), s = Math.round(s * o), { scaledWidth: i3, scaledHeight: s };
|
|
21675
21675
|
}
|
|
@@ -21679,20 +21679,20 @@ Actual: ` + p3.attribValue
|
|
|
21679
21679
|
tableCell: i3
|
|
21680
21680
|
} = r22;
|
|
21681
21681
|
let s = t.rId;
|
|
21682
|
-
const o = t.src || t.imageSrc, { originalWidth: a, originalHeight: u } =
|
|
21682
|
+
const o = t.src || t.imageSrc, { originalWidth: a, originalHeight: u } = kd$2(o);
|
|
21683
21683
|
let f3 = t.size ? {
|
|
21684
21684
|
w: qt$2(t.size.width),
|
|
21685
21685
|
h: qt$2(t.size.height)
|
|
21686
21686
|
} : e;
|
|
21687
21687
|
if (a && u) {
|
|
21688
|
-
const S = $e$2(f3.w), T3 = $e$2(f3.h), { scaledWidth: A, scaledHeight: B3 } =
|
|
21688
|
+
const S = $e$2(f3.w), T3 = $e$2(f3.h), { scaledWidth: A, scaledHeight: B3 } = Nd$2(a, u, S, T3);
|
|
21689
21689
|
f3 = {
|
|
21690
21690
|
w: qt$2(A),
|
|
21691
21691
|
h: qt$2(B3)
|
|
21692
21692
|
};
|
|
21693
21693
|
}
|
|
21694
21694
|
if (i3) {
|
|
21695
|
-
const S = i3.attrs.colwidth.reduce((I3, C) => I3 + C, 0), T3 = i3.attrs.cellMargins?.left || 8, A = i3.attrs.cellMargins?.right || 8, B3 = qt$2(S - (T3 + A)), { width: w, height: k } =
|
|
21695
|
+
const S = i3.attrs.colwidth.reduce((I3, C) => I3 + C, 0), T3 = i3.attrs.cellMargins?.left || 8, A = i3.attrs.cellMargins?.right || 8, B3 = qt$2(S - (T3 + A)), { width: w, height: k } = Md$2(f3.w, f3.h, B3);
|
|
21696
21696
|
w && k && (f3 = { w, h: k });
|
|
21697
21697
|
}
|
|
21698
21698
|
if (r22.node.type === "image" && !s) {
|
|
@@ -21859,16 +21859,16 @@ Actual: ` + p3.attribValue
|
|
|
21859
21859
|
function uu$2(r22) {
|
|
21860
21860
|
const {
|
|
21861
21861
|
node: { attrs: e = {}, marks: t = [] }
|
|
21862
|
-
} = r22, n =
|
|
21862
|
+
} = r22, n = Ld$2(e);
|
|
21863
21863
|
return Fr$1(e.displayLabel, [...t, ...n]);
|
|
21864
21864
|
}
|
|
21865
|
-
function
|
|
21865
|
+
function Id$2(r22) {
|
|
21866
21866
|
const {
|
|
21867
21867
|
node: { attrs: e = {}, marks: t = [] }
|
|
21868
21868
|
} = r22, n = kc$2.decode(e.displayLabel);
|
|
21869
21869
|
return Fr$1(n, t);
|
|
21870
21870
|
}
|
|
21871
|
-
function
|
|
21871
|
+
function Rd$2(r22) {
|
|
21872
21872
|
const {
|
|
21873
21873
|
node: { attrs: e = {} }
|
|
21874
21874
|
} = r22, n = new window.DOMParser().parseFromString(e.rawHtml, "text/html"), s = At.create({
|
|
@@ -21884,7 +21884,7 @@ Actual: ` + p3.attribValue
|
|
|
21884
21884
|
function Fo$2(r22, e) {
|
|
21885
21885
|
return au$2(r22, e);
|
|
21886
21886
|
}
|
|
21887
|
-
function
|
|
21887
|
+
function Pd$2(r22) {
|
|
21888
21888
|
const {
|
|
21889
21889
|
node: { attrs: e = {}, marks: t = [] }
|
|
21890
21890
|
} = r22, n = ou$2(r22, e.linkUrl), i3 = Fr$1(e.linkUrl, t);
|
|
@@ -21898,7 +21898,7 @@ Actual: ` + p3.attribValue
|
|
|
21898
21898
|
elements: [i3]
|
|
21899
21899
|
};
|
|
21900
21900
|
}
|
|
21901
|
-
function
|
|
21901
|
+
function Od$2(r22) {
|
|
21902
21902
|
const e = {
|
|
21903
21903
|
w: 4286250,
|
|
21904
21904
|
h: 4286250
|
|
@@ -21910,12 +21910,12 @@ Actual: ` + p3.attribValue
|
|
|
21910
21910
|
text: uu$2,
|
|
21911
21911
|
image: (i3) => Fo$2(i3, e),
|
|
21912
21912
|
signature: (i3) => Fo$2(i3, t),
|
|
21913
|
-
checkbox:
|
|
21914
|
-
html:
|
|
21915
|
-
link:
|
|
21913
|
+
checkbox: Id$2,
|
|
21914
|
+
html: Rd$2,
|
|
21915
|
+
link: Pd$2
|
|
21916
21916
|
}[r22];
|
|
21917
21917
|
}
|
|
21918
|
-
const
|
|
21918
|
+
const Ld$2 = (r22 = {}) => {
|
|
21919
21919
|
const {
|
|
21920
21920
|
fontFamily: e,
|
|
21921
21921
|
fontSize: t,
|
|
@@ -21925,8 +21925,8 @@ Actual: ` + p3.attribValue
|
|
|
21925
21925
|
} = r22, o = [];
|
|
21926
21926
|
return e && o.push({ type: "fontFamily", attrs: { fontFamily: e } }), t && o.push({ type: "fontSize", attrs: { fontSize: t } }), n && o.push({ type: "bold", attrs: {} }), i3 && o.push({ type: "underline", attrs: {} }), s && o.push({ type: "italic", attrs: {} }), o;
|
|
21927
21927
|
};
|
|
21928
|
-
function
|
|
21929
|
-
const { node: e, isFinalDoc: t } = r22, { attrs: n = {} } = e, i3 =
|
|
21928
|
+
function _d$2(r22) {
|
|
21929
|
+
const { node: e, isFinalDoc: t } = r22, { attrs: n = {} } = e, i3 = Od$2(n.type);
|
|
21930
21930
|
if (!i3) return {};
|
|
21931
21931
|
let s, o;
|
|
21932
21932
|
if (t)
|
|
@@ -21978,7 +21978,7 @@ Actual: ` + p3.attribValue
|
|
|
21978
21978
|
]
|
|
21979
21979
|
};
|
|
21980
21980
|
}
|
|
21981
|
-
function
|
|
21981
|
+
function qd$2() {
|
|
21982
21982
|
return {
|
|
21983
21983
|
name: "w:r",
|
|
21984
21984
|
elements: [{
|
|
@@ -22030,28 +22030,28 @@ Actual: ` + p3.attribValue
|
|
|
22030
22030
|
}
|
|
22031
22031
|
return a || u.push(`</${n}>`), u;
|
|
22032
22032
|
};
|
|
22033
|
-
function
|
|
22033
|
+
function Md$2(r22, e, t) {
|
|
22034
22034
|
if (r22 > t) {
|
|
22035
22035
|
let n = t / r22, i3 = Math.round(e * n);
|
|
22036
22036
|
return { width: t, height: i3 };
|
|
22037
22037
|
}
|
|
22038
22038
|
return { width: r22, height: e };
|
|
22039
22039
|
}
|
|
22040
|
-
const
|
|
22040
|
+
const Ud$2 = '<w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex" xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex" xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex" xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex" xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex" xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink" xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:oel="http://schemas.microsoft.com/office/2019/extlst" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16sdtdh="http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex w16sdtdh wp14"><w:body></w:body></w:document>', jd$2 = (r22) => JSON.parse(ya$2.xml2json(r22, null, 2)), Hd$2 = (r22, e = Ud$2) => r22["word/document.xml"] || jd$2(e), Vd$2 = (r22) => {
|
|
22041
22041
|
const { nodes: e } = r22;
|
|
22042
22042
|
if (e.length === 0)
|
|
22043
22043
|
return { nodes: [], consumed: 0 };
|
|
22044
22044
|
const t = e[0];
|
|
22045
22045
|
switch (t.name) {
|
|
22046
22046
|
case "w:tbl":
|
|
22047
|
-
return { nodes: [
|
|
22047
|
+
return { nodes: [Gd$2(t, r22)], consumed: 1 };
|
|
22048
22048
|
}
|
|
22049
22049
|
return { nodes: [], consumed: 0 };
|
|
22050
|
-
},
|
|
22050
|
+
}, zd$2 = {
|
|
22051
22051
|
handlerName: "tableNodeHandler",
|
|
22052
|
-
handler:
|
|
22052
|
+
handler: Vd$2
|
|
22053
22053
|
};
|
|
22054
|
-
function
|
|
22054
|
+
function Gd$2(r22, e) {
|
|
22055
22055
|
const { docx: t, nodeListHandler: n } = e, i3 = r22.elements.find((F) => F.name === "w:tblPr"), o = i3.elements.find((F) => F.name === "w:tblBorders")?.elements || [], { borders: a, rowBorders: u } = fu$2(o), f3 = i3.elements.find((F) => F.name === "w:tblStyle"), h3 = { tableStyleId: f3?.attributes["w:val"] }, g = i3?.elements.find((F) => F.name === "w:tblInd");
|
|
22056
22056
|
if (g) {
|
|
22057
22057
|
const { "w:w": F, "w:type": N3 } = g.attributes;
|
|
@@ -22076,7 +22076,7 @@ Actual: ` + p3.attribValue
|
|
|
22076
22076
|
h3.borders = k;
|
|
22077
22077
|
const C = [];
|
|
22078
22078
|
return w.forEach((F) => {
|
|
22079
|
-
const N3 =
|
|
22079
|
+
const N3 = Kd$2(F, r22, I3, f3, e);
|
|
22080
22080
|
N3.content?.length && C.push(N3);
|
|
22081
22081
|
}), {
|
|
22082
22082
|
type: "table",
|
|
@@ -22084,15 +22084,15 @@ Actual: ` + p3.attribValue
|
|
|
22084
22084
|
attrs: h3
|
|
22085
22085
|
};
|
|
22086
22086
|
}
|
|
22087
|
-
function
|
|
22088
|
-
const { docx: u, nodeListHandler: f3 } = o, c3 = r22.elements.find((ae2) => ae2.name === "w:tcPr"), h3 = c3?.elements?.find((ae2) => ae2.name === "w:tcBorders"), g =
|
|
22087
|
+
function Wd$2(r22, e, t, n, i3 = null, s, o, a) {
|
|
22088
|
+
const { docx: u, nodeListHandler: f3 } = o, c3 = r22.elements.find((ae2) => ae2.name === "w:tcPr"), h3 = c3?.elements?.find((ae2) => ae2.name === "w:tcBorders"), g = Jd$2(h3, n), S = du$2(t), T3 = c3?.elements?.find((ae2) => ae2.name === "w:tcW");
|
|
22089
22089
|
let A = T3 ? xe$2(T3.attributes["w:w"]) : null;
|
|
22090
22090
|
const B3 = T3?.attributes["w:type"];
|
|
22091
22091
|
!A && i3 && (A = i3);
|
|
22092
22092
|
const w = ko$2(r22), { attributes: k } = w || {}, C = {
|
|
22093
22093
|
color: c3?.elements?.find((ae2) => ae2.name === "w:shd")?.attributes["w:fill"]
|
|
22094
22094
|
}, 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$1(s, u) || {};
|
|
22095
|
-
K3.cellMargins =
|
|
22095
|
+
K3.cellMargins = $d$2(q, oe2);
|
|
22096
22096
|
const { fontSize: ee, fonts: Q3 = {} } = oe2, ce2 = Q3.ascii;
|
|
22097
22097
|
if (A) {
|
|
22098
22098
|
K3.colwidth = [A], K3.widthUnit = "px";
|
|
@@ -22138,7 +22138,7 @@ Actual: ` + p3.attribValue
|
|
|
22138
22138
|
return Object.keys(i3) ? (i3.val = "none", i3) : null;
|
|
22139
22139
|
}
|
|
22140
22140
|
return null;
|
|
22141
|
-
},
|
|
22141
|
+
}, Jd$2 = (r22, e) => {
|
|
22142
22142
|
if (!r22) return null;
|
|
22143
22143
|
const t = {}, n = ir$2(r22, "bottom", e);
|
|
22144
22144
|
n && (t.bottom = n);
|
|
@@ -22206,7 +22206,7 @@ Actual: ` + p3.attribValue
|
|
|
22206
22206
|
rowBorders: t
|
|
22207
22207
|
};
|
|
22208
22208
|
}
|
|
22209
|
-
function
|
|
22209
|
+
function Kd$2(r22, e, t, n, i3) {
|
|
22210
22210
|
const s = {}, a = r22.elements.find((T3) => T3.name === "w:trPr")?.elements?.find((T3) => T3.name === "w:trHeight"), u = a?.attributes["w:val"];
|
|
22211
22211
|
a?.attributes["w:hRule"];
|
|
22212
22212
|
const f3 = {};
|
|
@@ -22216,12 +22216,12 @@ Actual: ` + p3.attribValue
|
|
|
22216
22216
|
type: "tableRow",
|
|
22217
22217
|
content: h3?.map((T3, A) => {
|
|
22218
22218
|
const B3 = h3.length > 1 ? c3[A] : null;
|
|
22219
|
-
return
|
|
22219
|
+
return Wd$2(T3, r22, e, f3, B3, n, i3, A);
|
|
22220
22220
|
}) || [],
|
|
22221
22221
|
attrs: s
|
|
22222
22222
|
};
|
|
22223
22223
|
}
|
|
22224
|
-
const
|
|
22224
|
+
const $d$2 = (r22, e) => {
|
|
22225
22225
|
const t = r22?.elements?.find((B3) => B3.name === "w:left"), n = r22?.elements?.find((B3) => B3.name === "w:right"), i3 = r22?.elements?.find((B3) => B3.name === "w:top"), s = r22?.elements?.find((B3) => B3.name === "w:bottom"), o = t?.attributes["w:w"], a = n?.attributes["w:w"], u = i3?.attributes["w:w"], f3 = s?.attributes["w:w"], { cellMargins: c3 = {} } = e, {
|
|
22226
22226
|
marginLeft: h3,
|
|
22227
22227
|
marginRight: g,
|
|
@@ -22234,7 +22234,7 @@ Actual: ` + p3.attribValue
|
|
|
22234
22234
|
top: xe$2(u ?? S),
|
|
22235
22235
|
bottom: xe$2(f3 ?? T3)
|
|
22236
22236
|
};
|
|
22237
|
-
}, du$2 = (r22) => r22.elements.find((t) => t.name === "w:tblGrid")?.elements?.flatMap((t) => t.name !== "w:gridCol" ? [] : xe$2(t.attributes["w:w"])) || [],
|
|
22237
|
+
}, du$2 = (r22) => r22.elements.find((t) => t.name === "w:tblGrid")?.elements?.flatMap((t) => t.name !== "w:gridCol" ? [] : xe$2(t.attributes["w:w"])) || [], Xd$2 = (r22) => {
|
|
22238
22238
|
const { nodes: e, filename: t } = r22;
|
|
22239
22239
|
if (e.length === 0 || e[0].name !== "w:drawing")
|
|
22240
22240
|
return { nodes: [], consumed: 0 };
|
|
@@ -22282,9 +22282,9 @@ Actual: ` + p3.attribValue
|
|
|
22282
22282
|
}
|
|
22283
22283
|
};
|
|
22284
22284
|
}
|
|
22285
|
-
const
|
|
22285
|
+
const Yd$2 = {
|
|
22286
22286
|
handlerName: "drawingNodeHandler",
|
|
22287
|
-
handler:
|
|
22287
|
+
handler: Xd$2
|
|
22288
22288
|
};
|
|
22289
22289
|
function Bt$2(r22, e = [], t = null) {
|
|
22290
22290
|
const n = [], i3 = /* @__PURE__ */ new Set();
|
|
@@ -22309,7 +22309,7 @@ Actual: ` + p3.attribValue
|
|
|
22309
22309
|
const { attributes: u = {} } = s, f3 = { type: a.type };
|
|
22310
22310
|
if (!(u["w:val"] == "0" || u["w:val"] === "none")) {
|
|
22311
22311
|
if (a.mark && (f3.type = a.mark), Object.keys(u).length) {
|
|
22312
|
-
const c3 =
|
|
22312
|
+
const c3 = Zd$2(a.type, u, t);
|
|
22313
22313
|
if (c3 == null) return;
|
|
22314
22314
|
f3.attrs = {}, f3.attrs[a.property] = c3;
|
|
22315
22315
|
}
|
|
@@ -22318,7 +22318,7 @@ Actual: ` + p3.attribValue
|
|
|
22318
22318
|
});
|
|
22319
22319
|
}), hi$2(n);
|
|
22320
22320
|
}
|
|
22321
|
-
function $
|
|
22321
|
+
function Qd$2(r22, e) {
|
|
22322
22322
|
const t = r22.elements?.find((o) => o.name === "w:rPrChange");
|
|
22323
22323
|
if (!t)
|
|
22324
22324
|
return [];
|
|
@@ -22339,25 +22339,25 @@ Actual: ` + p3.attribValue
|
|
|
22339
22339
|
});
|
|
22340
22340
|
}), [...t, { type: "textStyle", attrs: n }];
|
|
22341
22341
|
}
|
|
22342
|
-
function
|
|
22342
|
+
function Zd$2(r22, e, t) {
|
|
22343
22343
|
r22 === "tabs" && (r22 = "textIndent");
|
|
22344
22344
|
const n = {
|
|
22345
22345
|
color: () => `#${e["w:val"]}`,
|
|
22346
22346
|
fontSize: () => `${e["w:val"] / 2}pt`,
|
|
22347
|
-
textIndent: () =>
|
|
22348
|
-
fontFamily: () =>
|
|
22349
|
-
lineHeight: () =>
|
|
22347
|
+
textIndent: () => tm$1(e),
|
|
22348
|
+
fontFamily: () => em$1(e, t),
|
|
22349
|
+
lineHeight: () => rm$1(e),
|
|
22350
22350
|
textAlign: () => e["w:val"],
|
|
22351
22351
|
link: () => e.href,
|
|
22352
22352
|
underline: () => e["w:val"],
|
|
22353
22353
|
bold: () => e?.["w:val"] || null,
|
|
22354
22354
|
italic: () => e?.["w:val"] || null,
|
|
22355
|
-
highlight: () =>
|
|
22355
|
+
highlight: () => nm$1(e)
|
|
22356
22356
|
};
|
|
22357
22357
|
if (r22 in n || console.debug("❗️❗️ No value mapper for:", r22, "Attributes:", e), r22 in n)
|
|
22358
22358
|
return n[r22], n[r22]();
|
|
22359
22359
|
}
|
|
22360
|
-
function
|
|
22360
|
+
function em$1(r22, e) {
|
|
22361
22361
|
const t = r22["w:ascii"], n = r22["w:asciiTheme"];
|
|
22362
22362
|
if (!e || !n) return t;
|
|
22363
22363
|
const i3 = e["word/theme/theme1.xml"];
|
|
@@ -22365,20 +22365,20 @@ Actual: ` + p3.attribValue
|
|
|
22365
22365
|
const { elements: s } = i3, { elements: o } = s[0];
|
|
22366
22366
|
return o.find((g) => g.name === "a:themeElements").elements.find((g) => g.name === "a:fontScheme").elements.find((g) => g.name === "a:majorFont").elements.find((g) => g.name === "a:latin").attributes.typeface;
|
|
22367
22367
|
}
|
|
22368
|
-
function
|
|
22368
|
+
function tm$1(r22) {
|
|
22369
22369
|
let e = r22["w:left"];
|
|
22370
22370
|
return e ? `${qe$1(e)}in` : null;
|
|
22371
22371
|
}
|
|
22372
|
-
function
|
|
22372
|
+
function rm$1(r22) {
|
|
22373
22373
|
let e = r22["w:line"];
|
|
22374
22374
|
return !e || e === "0" ? null : `${ki$2(e)}`;
|
|
22375
22375
|
}
|
|
22376
|
-
function
|
|
22376
|
+
function nm$1(r22) {
|
|
22377
22377
|
return r22["w:fill"] ? `#${r22["w:fill"]}` : Rf$2(r22?.["w:val"]) ? `#${r22["w:val"]}` : If$2(r22?.["w:val"]) || null;
|
|
22378
22378
|
}
|
|
22379
22379
|
function Lt$2(r22, e) {
|
|
22380
|
-
const t = [], n = [], { attributes: i3 = {}, elements: s = [] } = r22, { nodes: o, paragraphProperties: a = {}, runProperties: u = {} } =
|
|
22381
|
-
return s.find((c3) => c3.name === "w:r") && (a.elements = a?.elements?.filter((c3) => c3.name !== "w:rPr")), u && u?.elements?.length && t.push(...Bt$2(u, n)), a && a.elements?.length && t.push(...Bt$2(a, n)), t.push(
|
|
22380
|
+
const t = [], n = [], { attributes: i3 = {}, elements: s = [] } = r22, { nodes: o, paragraphProperties: a = {}, runProperties: u = {} } = im$1(s);
|
|
22381
|
+
return s.find((c3) => c3.name === "w:r") && (a.elements = a?.elements?.filter((c3) => c3.name !== "w:rPr")), u && u?.elements?.length && t.push(...Bt$2(u, n)), a && a.elements?.length && t.push(...Bt$2(a, n)), t.push(...Qd$2(u, t)), a && a.elements?.length && (i3.paragraphProperties = a), t && r22.name === "w:p" && t.forEach((c3) => {
|
|
22382
22382
|
const h3 = Object.keys(c3.attrs ?? {})[0];
|
|
22383
22383
|
if (h3) {
|
|
22384
22384
|
const g = c3.attrs[h3];
|
|
@@ -22386,7 +22386,7 @@ Actual: ` + p3.attribValue
|
|
|
22386
22386
|
}
|
|
22387
22387
|
}), { elements: o, attributes: i3, marks: t, unknownMarks: n };
|
|
22388
22388
|
}
|
|
22389
|
-
function
|
|
22389
|
+
function im$1(r22) {
|
|
22390
22390
|
const e = r22.find((s) => s.name === "w:pPr"), t = r22.find((s) => s.name === "w:rPr"), n = r22.find((s) => s.name === "w:sectPr");
|
|
22391
22391
|
return {
|
|
22392
22392
|
nodes: r22.filter((s) => s.name !== "w:pPr" && s.name !== "w:rPr" && s.name !== "w:sectPr"),
|
|
@@ -22398,11 +22398,11 @@ Actual: ` + p3.attribValue
|
|
|
22398
22398
|
function lr$2(r22) {
|
|
22399
22399
|
return Nt$4.allowedElements[r22.name || r22.type];
|
|
22400
22400
|
}
|
|
22401
|
-
const
|
|
22401
|
+
const sm$1 = (r22) => !!Nt$4.propertyTypes[r22.name || r22.type];
|
|
22402
22402
|
function mu$2(r22) {
|
|
22403
22403
|
return r22.filter((n) => n.name === "w:r").some((n) => n.elements.some((i3) => i3.name === "w:t"));
|
|
22404
22404
|
}
|
|
22405
|
-
const
|
|
22405
|
+
const om$1 = (r22) => {
|
|
22406
22406
|
const { nodes: e, nodeListHandler: t } = r22;
|
|
22407
22407
|
if (e.length === 0 || !(e[0].name === "w:del" || e[0].name === "w:ins"))
|
|
22408
22408
|
return { nodes: [], consumed: 0 };
|
|
@@ -22415,10 +22415,10 @@ Actual: ` + p3.attribValue
|
|
|
22415
22415
|
return a.forEach((c3) => {
|
|
22416
22416
|
c3.marks === void 0 && (c3.marks = []), c3.marks.push({ type: u, attrs: f3 });
|
|
22417
22417
|
}), { nodes: a, consumed: 1 };
|
|
22418
|
-
},
|
|
22418
|
+
}, am$1 = {
|
|
22419
22419
|
handlerName: "trackChangeNodeHandler",
|
|
22420
|
-
handler:
|
|
22421
|
-
},
|
|
22420
|
+
handler: om$1
|
|
22421
|
+
}, um$1 = (r22) => {
|
|
22422
22422
|
const { nodes: e, docx: t, nodeListHandler: n } = r22;
|
|
22423
22423
|
if (e.length === 0 || e[0].name !== "w:hyperlink")
|
|
22424
22424
|
return { nodes: [], consumed: 0 };
|
|
@@ -22437,31 +22437,31 @@ Actual: ` + p3.attribValue
|
|
|
22437
22437
|
}
|
|
22438
22438
|
}
|
|
22439
22439
|
return { nodes: n.handler({ ...r22, nodes: T3 }), consumed: 1 };
|
|
22440
|
-
},
|
|
22440
|
+
}, lm$1 = {
|
|
22441
22441
|
handlerName: "hyperlinkNodeHandler",
|
|
22442
|
-
handler:
|
|
22443
|
-
},
|
|
22442
|
+
handler: um$1
|
|
22443
|
+
}, cm$1 = (r22) => {
|
|
22444
22444
|
const { nodes: e, nodeListHandler: t, parentStyleId: n, docx: i3 } = r22;
|
|
22445
22445
|
if (e.length === 0 || e[0].name !== "w:r")
|
|
22446
22446
|
return { nodes: [], consumed: 0 };
|
|
22447
22447
|
const s = e[0], o = { ...r22, nodes: s.elements };
|
|
22448
22448
|
let a = t.handler(o)?.filter((c3) => c3) || [];
|
|
22449
|
-
const u = s.elements?.some((c3) => c3.name === "w:rPr"), f3 =
|
|
22449
|
+
const u = s.elements?.some((c3) => c3.name === "w:rPr"), f3 = fm$1(i3, n);
|
|
22450
22450
|
if (u) {
|
|
22451
22451
|
const { marks: c3 = [], attributes: h3 = {} } = Lt$2(s), g = c3.find((T3) => T3.type === "textStyle"), S = g && Object.keys(g.attrs).length > 0;
|
|
22452
22452
|
f3.marks && !S && c3.push(...f3.marks), s.marks && c3.push(...s.marks), a = a.map((T3) => ({ ...T3, marks: hi$2(c3), attributes: h3 }));
|
|
22453
22453
|
} else f3.marks && (a = a.map((c3) => ({ ...c3, marks: hi$2(f3.marks) })));
|
|
22454
22454
|
return { nodes: a, consumed: 1 };
|
|
22455
|
-
},
|
|
22455
|
+
}, fm$1 = (r22, e) => {
|
|
22456
22456
|
const t = r22?.["word/styles.xml"];
|
|
22457
22457
|
if (!t)
|
|
22458
22458
|
return {};
|
|
22459
22459
|
const i3 = t.elements[0].elements.filter((s) => s.name === "w:style").find((s) => s.attributes["w:styleId"] === e) || {};
|
|
22460
22460
|
return i3 ? Lt$2(i3) : {};
|
|
22461
|
-
},
|
|
22461
|
+
}, dm$1 = {
|
|
22462
22462
|
handlerName: "runNodeHandler",
|
|
22463
|
-
handler:
|
|
22464
|
-
},
|
|
22463
|
+
handler: cm$1
|
|
22464
|
+
}, mm$1 = (r22) => {
|
|
22465
22465
|
const { nodes: e, insideTrackChange: t } = r22;
|
|
22466
22466
|
if (e.length === 0 || !(e[0].name === "w:t" || t && e[0].name === "w:delText"))
|
|
22467
22467
|
return { nodes: [], consumed: 0 };
|
|
@@ -22482,41 +22482,41 @@ Actual: ` + p3.attribValue
|
|
|
22482
22482
|
],
|
|
22483
22483
|
consumed: 1
|
|
22484
22484
|
};
|
|
22485
|
-
},
|
|
22485
|
+
}, pm$1 = {
|
|
22486
22486
|
handlerName: "textNodeHandler",
|
|
22487
|
-
handler:
|
|
22488
|
-
},
|
|
22489
|
-
function
|
|
22487
|
+
handler: mm$1
|
|
22488
|
+
}, hm$1 = (r22) => Object.prototype.toString.call(r22) === "[object RegExp]";
|
|
22489
|
+
function gm$1(r22, e, t = { strict: true }) {
|
|
22490
22490
|
const n = Object.keys(e);
|
|
22491
|
-
return n.length ? n.every((i3) => t.strict ? e[i3] === r22[i3] :
|
|
22491
|
+
return n.length ? n.every((i3) => t.strict ? e[i3] === r22[i3] : hm$1(e[i3]) ? e[i3].test(r22[i3]) : e[i3] === r22[i3]) : true;
|
|
22492
22492
|
}
|
|
22493
22493
|
const pu$2 = (r22) => {
|
|
22494
22494
|
if (!r22 || !Array.isArray(r22))
|
|
22495
22495
|
return r22;
|
|
22496
22496
|
let e = [], t = null;
|
|
22497
22497
|
for (let n of r22)
|
|
22498
|
-
n.type === "text" ? t &&
|
|
22498
|
+
n.type === "text" ? t && wm$1(t, n) ? t = {
|
|
22499
22499
|
...t,
|
|
22500
22500
|
text: t.text += n.text
|
|
22501
22501
|
} : (t && e.push(t), t = { ...n }) : (t && (e.push(t), t = null), e.push(n));
|
|
22502
22502
|
return t && e.push(t), e;
|
|
22503
|
-
},
|
|
22503
|
+
}, wm$1 = (r22, e) => {
|
|
22504
22504
|
if (!r22 || !e) return false;
|
|
22505
22505
|
let t = r22.marks ?? [], n = e.marks ?? [];
|
|
22506
22506
|
if (t.length !== n.length)
|
|
22507
22507
|
return false;
|
|
22508
22508
|
for (let i3 = 0; i3 < t.length; i3++)
|
|
22509
|
-
if (t[i3].type !== n[i3].type || !
|
|
22509
|
+
if (t[i3].type !== n[i3].type || !ym$1(t[i3].attrs, n[i3].attrs))
|
|
22510
22510
|
return false;
|
|
22511
22511
|
return true;
|
|
22512
|
-
},
|
|
22512
|
+
}, ym$1 = (r22 = {}, e = {}) => gm$1(r22, e);
|
|
22513
22513
|
function hu$2(r22, e, t) {
|
|
22514
22514
|
this.name = r22, this.message = e || "", this.details = t;
|
|
22515
22515
|
const n = new Error(this.message);
|
|
22516
22516
|
this.stack = n.stack, n.name = this.name;
|
|
22517
22517
|
}
|
|
22518
22518
|
hu$2.prototype = Object.create(Error.prototype);
|
|
22519
|
-
const
|
|
22519
|
+
const bm$1 = (r22) => {
|
|
22520
22520
|
const { nodes: e, lists: t, docx: n } = r22;
|
|
22521
22521
|
if (e.length === 0 || e[0].name !== "w:p")
|
|
22522
22522
|
return { nodes: [], consumed: 0 };
|
|
@@ -22535,9 +22535,9 @@ Actual: ` + p3.attribValue
|
|
|
22535
22535
|
};
|
|
22536
22536
|
} else
|
|
22537
22537
|
return { nodes: [], consumed: 0, lists: t };
|
|
22538
|
-
},
|
|
22538
|
+
}, xm$1 = {
|
|
22539
22539
|
handlerName: "listHandler",
|
|
22540
|
-
handler:
|
|
22540
|
+
handler: bm$1
|
|
22541
22541
|
};
|
|
22542
22542
|
function gu$2({
|
|
22543
22543
|
listItems: r22,
|
|
@@ -22576,9 +22576,9 @@ Actual: ` + p3.attribValue
|
|
|
22576
22576
|
lvlText: Y,
|
|
22577
22577
|
lvlJc: de2,
|
|
22578
22578
|
numId: J3
|
|
22579
|
-
} =
|
|
22579
|
+
} = vm$1(N3, n, u);
|
|
22580
22580
|
S = ee;
|
|
22581
|
-
const te2 = parseInt(Q3), ie = i3 === te2 && J3 === s, L3 =
|
|
22581
|
+
const te2 = parseInt(Q3), ie = i3 === te2 && J3 === s, L3 = Em$1({
|
|
22582
22582
|
firstListId: J3,
|
|
22583
22583
|
secondListId: s,
|
|
22584
22584
|
level: te2,
|
|
@@ -22699,7 +22699,7 @@ Actual: ` + p3.attribValue
|
|
|
22699
22699
|
marks: t
|
|
22700
22700
|
};
|
|
22701
22701
|
}
|
|
22702
|
-
const
|
|
22702
|
+
const Am$1 = [
|
|
22703
22703
|
"decimal",
|
|
22704
22704
|
// eg: 1, 2, 3, 4, 5, ...
|
|
22705
22705
|
"decimalZero",
|
|
@@ -22724,7 +22724,7 @@ Actual: ` + p3.attribValue
|
|
|
22724
22724
|
// eg: (0, 1, 2, ..., 9, 10, 11, 12, ..., 19, 1A, 1B, 1C, ..., 1Z, 20, 21, ..., 2Z)
|
|
22725
22725
|
"none"
|
|
22726
22726
|
// No bullet
|
|
22727
|
-
],
|
|
22727
|
+
], Dm$1 = [
|
|
22728
22728
|
"bullet",
|
|
22729
22729
|
// A standard bullet point (•)
|
|
22730
22730
|
"square",
|
|
@@ -22733,7 +22733,7 @@ Actual: ` + p3.attribValue
|
|
|
22733
22733
|
// Circle bullets (◦)
|
|
22734
22734
|
"disc"
|
|
22735
22735
|
// Disc bullets (●)
|
|
22736
|
-
],
|
|
22736
|
+
], Em$1 = ({ firstListId: r22, secondListId: e, level: t, pStyleId: n, docx: i3 }) => {
|
|
22737
22737
|
const { numFmt: s, lvlText: o, lvlJc: a } = br$2(r22, t, n, i3), {
|
|
22738
22738
|
numFmt: u,
|
|
22739
22739
|
lvlText: f3,
|
|
@@ -22763,7 +22763,7 @@ Actual: ` + p3.attribValue
|
|
|
22763
22763
|
}
|
|
22764
22764
|
const a = o.elements, u = a.filter((N3) => N3.name === "w:abstractNum"), h3 = a.filter((N3) => N3.name === "w:num").find((N3) => N3.attributes["w:numId"] === r22)?.elements[0].attributes["w:val"], g = u?.find(
|
|
22765
22765
|
(N3) => N3.attributes["w:abstractNumId"] === h3
|
|
22766
|
-
), S =
|
|
22766
|
+
), S = Cm$1(g, e), A = g?.elements?.find((N3) => N3.name === "w:numStyleLink")?.attributes["w:val"];
|
|
22767
22767
|
if (A) {
|
|
22768
22768
|
const N3 = Ro$2(A, n);
|
|
22769
22769
|
return br$2(N3.numId, e, null, n);
|
|
@@ -22771,7 +22771,7 @@ Actual: ` + p3.attribValue
|
|
|
22771
22771
|
const B3 = S?.elements?.find((N3) => N3.name === "w:start")?.attributes["w:val"], w = S?.elements?.find((N3) => N3.name === "w:numFmt")?.attributes["w:val"], k = S?.elements?.find((N3) => N3.name === "w:lvlText").attributes["w:val"], I3 = S?.elements?.find((N3) => N3.name === "w:lvlJc").attributes["w:val"], C = S?.elements?.find((N3) => N3.name === "w:pPr"), F = S?.elements?.find((N3) => N3.name === "w:rPr");
|
|
22772
22772
|
return { start: B3, numFmt: w, lvlText: k, lvlJc: I3, pPr: C, rPr: F };
|
|
22773
22773
|
};
|
|
22774
|
-
function
|
|
22774
|
+
function vm$1(r22, e, t) {
|
|
22775
22775
|
if (!r22) return;
|
|
22776
22776
|
const { attributes: n } = r22, { paragraphProperties: i3 = {} } = n, { elements: s = [] } = i3, u = r22.elements.find((D3) => D3.name === "w:pPr")?.elements?.find((D3) => D3.name === "w:pStyle")?.attributes["w:val"], f3 = kr$1({ node: r22, styleId: u, docx: t });
|
|
22777
22777
|
if (!f3) return {};
|
|
@@ -22784,10 +22784,10 @@ Actual: ` + p3.attribValue
|
|
|
22784
22784
|
rPr: F
|
|
22785
22785
|
} = br$2(h3, e, A, t);
|
|
22786
22786
|
let N3, q;
|
|
22787
|
-
C && (N3 =
|
|
22787
|
+
C && (N3 = Sm$1(C)), F && (q = Tm$1(F));
|
|
22788
22788
|
let H3;
|
|
22789
|
-
if (
|
|
22790
|
-
else if (
|
|
22789
|
+
if (Dm$1.includes(w?.toLowerCase())) H3 = "bulletList";
|
|
22790
|
+
else if (Am$1.includes(w)) H3 = "orderedList";
|
|
22791
22791
|
else
|
|
22792
22792
|
throw new hu$2("ListParsingError", `Unknown list type found during import: ${w}`, {
|
|
22793
22793
|
listOrderingType: w,
|
|
@@ -22801,10 +22801,10 @@ Actual: ` + p3.attribValue
|
|
|
22801
22801
|
});
|
|
22802
22802
|
return { listType: H3, listOrderingType: w, ilvl: S, numId: h3, listrPrs: q, listpPrs: N3, start: B3, lvlText: k, lvlJc: I3 };
|
|
22803
22803
|
}
|
|
22804
|
-
function
|
|
22804
|
+
function Cm$1(r22, e) {
|
|
22805
22805
|
return r22?.elements?.find((t) => Number(t.attributes["w:ilvl"]) === e);
|
|
22806
22806
|
}
|
|
22807
|
-
function
|
|
22807
|
+
function Sm$1(r22) {
|
|
22808
22808
|
const { elements: e } = r22, t = ["w:ind", "w:jc", "w:tabs"], n = {};
|
|
22809
22809
|
return e && e.forEach((i3) => {
|
|
22810
22810
|
t.includes(i3.name);
|
|
@@ -22814,7 +22814,7 @@ Actual: ` + p3.attribValue
|
|
|
22814
22814
|
});
|
|
22815
22815
|
}), n;
|
|
22816
22816
|
}
|
|
22817
|
-
function
|
|
22817
|
+
function Tm$1(r22) {
|
|
22818
22818
|
const { elements: e } = r22, t = [
|
|
22819
22819
|
"w:rFonts",
|
|
22820
22820
|
"w:b",
|
|
@@ -22845,7 +22845,7 @@ Actual: ` + p3.attribValue
|
|
|
22845
22845
|
});
|
|
22846
22846
|
}), n;
|
|
22847
22847
|
}
|
|
22848
|
-
const
|
|
22848
|
+
const Fm$1 = (r22) => {
|
|
22849
22849
|
const { nodes: e, docx: t, nodeListHandler: n, filename: i3 } = r22;
|
|
22850
22850
|
if (e.length === 0 || e[0].name !== "w:p")
|
|
22851
22851
|
return { nodes: [], consumed: 0 };
|
|
@@ -22862,7 +22862,7 @@ Actual: ` + p3.attribValue
|
|
|
22862
22862
|
c3.nodes.length === 1 && (o = c3.nodes[0]);
|
|
22863
22863
|
const h3 = s.elements?.find((w) => w.name === "w:pPr"), g = h3?.elements?.find((w) => w.name === "w:pStyle"), S = h3?.elements?.find((w) => w.name === "w:rPr");
|
|
22864
22864
|
if (S && (o.attrs.marksAttrs = Bt$2(S, [])), g && (o.attrs.styleId = g.attributes["w:val"]), t) {
|
|
22865
|
-
const w =
|
|
22865
|
+
const w = Bm$1(s, t, o.attrs.styleId);
|
|
22866
22866
|
o.attrs.indent || (o.attrs.indent = {}), w.left && (o.attrs.indent.left = w.left), w.right && (o.attrs.indent.right = w.right), w.firstLine && (o.attrs.indent.firstLine = w.firstLine), w.hanging && (o.attrs.indent.hanging = w.hanging), w.textIndent && (o.attrs.textIndent = `${w.textIndent}in`);
|
|
22867
22867
|
}
|
|
22868
22868
|
const T3 = h3?.elements?.find((w) => w.name === "w:jc");
|
|
@@ -22878,7 +22878,7 @@ Actual: ` + p3.attribValue
|
|
|
22878
22878
|
...o,
|
|
22879
22879
|
content: pu$2(o.content)
|
|
22880
22880
|
}), { nodes: o ? [o] : [], consumed: 1 };
|
|
22881
|
-
},
|
|
22881
|
+
}, Bm$1 = (r22, e, t = "") => {
|
|
22882
22882
|
const n = {
|
|
22883
22883
|
left: 0,
|
|
22884
22884
|
right: 0,
|
|
@@ -22920,11 +22920,11 @@ Actual: ` + p3.attribValue
|
|
|
22920
22920
|
spacing: B3 || T3 || A,
|
|
22921
22921
|
indent: I3 || w || k
|
|
22922
22922
|
};
|
|
22923
|
-
},
|
|
22923
|
+
}, km$1 = {
|
|
22924
22924
|
handlerName: "paragraphNodeHandler",
|
|
22925
|
-
handler:
|
|
22925
|
+
handler: Fm$1
|
|
22926
22926
|
};
|
|
22927
|
-
function
|
|
22927
|
+
function Nm$1(r22, e) {
|
|
22928
22928
|
const t = { lineSpaceBefore: null, lineSpaceAfter: null };
|
|
22929
22929
|
if (!r22) return t;
|
|
22930
22930
|
const n = e["word/styles.xml"];
|
|
@@ -23034,7 +23034,7 @@ Actual: ` + p3.attribValue
|
|
|
23034
23034
|
});
|
|
23035
23035
|
}
|
|
23036
23036
|
return e;
|
|
23037
|
-
},
|
|
23037
|
+
}, Im$1 = (r22) => nodeListHandler.handler({ ...r22, nodes: node.elements }), Rm$1 = (r22) => {
|
|
23038
23038
|
const { nodes: e } = r22;
|
|
23039
23039
|
if (e.length === 0 || e[0].name !== "w:sdt")
|
|
23040
23040
|
return { nodes: [], consumed: 0 };
|
|
@@ -23049,14 +23049,14 @@ Actual: ` + p3.attribValue
|
|
|
23049
23049
|
consumed: 1
|
|
23050
23050
|
};
|
|
23051
23051
|
}, Oo$2 = {
|
|
23052
|
-
"Table of Contents":
|
|
23053
|
-
},
|
|
23052
|
+
"Table of Contents": Im$1
|
|
23053
|
+
}, Pm$1 = (r22) => {
|
|
23054
23054
|
const { nodes: e, docx: t, nodeListHandler: n, insideTrackChange: i3 } = r22;
|
|
23055
23055
|
if (e.length === 0 || e[0].name !== "w:sdt")
|
|
23056
23056
|
return { nodes: [], consumed: 0 };
|
|
23057
|
-
const s = e[0], o = s.elements.find((I3) => I3.name === "w:sdtPr"), a = s.elements.find((I3) => I3.name === "w:sdtContent"), { attrs: u, marks: f3 } =
|
|
23057
|
+
const s = e[0], o = s.elements.find((I3) => I3.name === "w:sdtPr"), a = s.elements.find((I3) => I3.name === "w:sdtContent"), { attrs: u, marks: f3 } = Om$1(a);
|
|
23058
23058
|
if (o?.elements.find((I3) => I3.name === "w:docPartObj"))
|
|
23059
|
-
return
|
|
23059
|
+
return Rm$1({ nodes: e, docx: t, nodeListHandler: n, insideTrackChange: i3 });
|
|
23060
23060
|
const h3 = o?.elements.find((I3) => I3.name === "w:alias"), g = o?.elements.find((I3) => I3.name === "w:tag"), S = o?.elements.find((I3) => I3.name === "w:fieldType")?.attributes["w:val"], T3 = o?.elements.find((I3) => I3.name === "w:fieldTypeShort")?.attributes["w:val"], A = o?.elements.find((I3) => I3.name === "w:fieldColor")?.attributes["w:val"], B3 = o?.elements.find((I3) => I3.name === "w:fieldMultipleImage")?.attributes["w:val"], w = {
|
|
23061
23061
|
type: T3,
|
|
23062
23062
|
fieldId: g?.attributes["w:val"],
|
|
@@ -23080,7 +23080,7 @@ Actual: ` + p3.attribValue
|
|
|
23080
23080
|
nodes: [k],
|
|
23081
23081
|
consumed: 1
|
|
23082
23082
|
};
|
|
23083
|
-
},
|
|
23083
|
+
}, Om$1 = (r22 = {}) => {
|
|
23084
23084
|
const t = r22.elements?.find((a) => a.name === "w:r")?.elements?.find((a) => a.name === "w:rPr");
|
|
23085
23085
|
if (!t) return {};
|
|
23086
23086
|
const i3 = Bt$2(t, []) || [], s = [];
|
|
@@ -23102,17 +23102,17 @@ Actual: ` + p3.attribValue
|
|
|
23102
23102
|
attrs: o,
|
|
23103
23103
|
marks: i3
|
|
23104
23104
|
};
|
|
23105
|
-
},
|
|
23105
|
+
}, Lm$1 = {
|
|
23106
23106
|
handlerName: "annotationNodeHandler",
|
|
23107
|
-
handler:
|
|
23108
|
-
},
|
|
23107
|
+
handler: Pm$1
|
|
23108
|
+
}, _m$1 = (r22) => {
|
|
23109
23109
|
const { nodes: e, docx: t, nodeListHandler: n } = r22;
|
|
23110
23110
|
if (!e || e.length === 0)
|
|
23111
23111
|
return { nodes: [], consumed: 0 };
|
|
23112
23112
|
const i3 = e[0], { name: s } = i3, { attributes: o, elements: a, marks: u = [] } = Lt$2(i3);
|
|
23113
23113
|
if (s === "w:sdt")
|
|
23114
23114
|
return { nodes: [], consumed: 0 };
|
|
23115
|
-
if (
|
|
23115
|
+
if (sm$1(i3))
|
|
23116
23116
|
return {
|
|
23117
23117
|
nodes: [{
|
|
23118
23118
|
type: lr$2(i3),
|
|
@@ -23132,7 +23132,7 @@ Actual: ` + p3.attribValue
|
|
|
23132
23132
|
consumed: 0,
|
|
23133
23133
|
unhandled: true
|
|
23134
23134
|
};
|
|
23135
|
-
const f3 = [], c3 =
|
|
23135
|
+
const f3 = [], c3 = qm$1(i3);
|
|
23136
23136
|
if (a && a.length) {
|
|
23137
23137
|
const g = a.map((A) => (A.marks || (A.marks = []), A.marks.push(...u), A)), S = { ...r22, nodes: g, parentStyleId: c3 }, T3 = n.handler(S);
|
|
23138
23138
|
f3.push(...T3);
|
|
@@ -23143,13 +23143,13 @@ Actual: ` + p3.attribValue
|
|
|
23143
23143
|
attrs: { ...o },
|
|
23144
23144
|
marks: []
|
|
23145
23145
|
}], consumed: 1 };
|
|
23146
|
-
},
|
|
23146
|
+
}, qm$1 = (r22) => {
|
|
23147
23147
|
const t = r22.elements?.find((n) => n.name === "w:pPr")?.elements?.find((n) => n.name === "w:pStyle");
|
|
23148
23148
|
return t ? t.attributes["w:val"] : null;
|
|
23149
|
-
},
|
|
23149
|
+
}, Mm$1 = {
|
|
23150
23150
|
handlerName: "standardNodeHandler",
|
|
23151
|
-
handler:
|
|
23152
|
-
},
|
|
23151
|
+
handler: _m$1
|
|
23152
|
+
}, Um$1 = (r22) => {
|
|
23153
23153
|
const { nodes: e } = r22;
|
|
23154
23154
|
return e.length === 0 || e[0].name !== "w:br" ? { nodes: [], consumed: 0 } : {
|
|
23155
23155
|
nodes: [{
|
|
@@ -23157,10 +23157,10 @@ Actual: ` + p3.attribValue
|
|
|
23157
23157
|
}],
|
|
23158
23158
|
consumed: 1
|
|
23159
23159
|
};
|
|
23160
|
-
},
|
|
23160
|
+
}, jm$1 = {
|
|
23161
23161
|
handlerName: "lineBreakNodeHandler",
|
|
23162
|
-
handler:
|
|
23163
|
-
},
|
|
23162
|
+
handler: Um$1
|
|
23163
|
+
}, Hm$1 = (r22) => {
|
|
23164
23164
|
const { nodes: e, nodeListHandler: t } = r22;
|
|
23165
23165
|
if (e.length === 0 || e[0].name !== "w:bookmarkStart")
|
|
23166
23166
|
return { nodes: [], consumed: 0 };
|
|
@@ -23171,26 +23171,26 @@ Actual: ` + p3.attribValue
|
|
|
23171
23171
|
return console.error("Standard node handler not found"), { nodes: [], consumed: 0 };
|
|
23172
23172
|
const s = { ...r22, nodes: [n] }, o = i3(s);
|
|
23173
23173
|
return o.nodes.length === 1 && (o.nodes[0].attrs.name = n.attributes["w:name"], o.nodes[0].attrs.id = n.attributes["w:id"]), o;
|
|
23174
|
-
},
|
|
23174
|
+
}, Vm$1 = {
|
|
23175
23175
|
handlerName: "bookmarkNodeHandler",
|
|
23176
|
-
handler:
|
|
23177
|
-
},
|
|
23176
|
+
handler: Hm$1
|
|
23177
|
+
}, zm$1 = (r22) => {
|
|
23178
23178
|
const { nodes: e } = r22;
|
|
23179
23179
|
return e.length === 0 || e[0].name !== "sd:autoPageNumber" ? { nodes: [], consumed: 0 } : { nodes: [{
|
|
23180
23180
|
type: "page-number"
|
|
23181
23181
|
}], consumed: 1 };
|
|
23182
|
-
},
|
|
23182
|
+
}, Gm$1 = {
|
|
23183
23183
|
handlerName: "autoPageNumberHandler",
|
|
23184
|
-
handler:
|
|
23185
|
-
},
|
|
23184
|
+
handler: zm$1
|
|
23185
|
+
}, Wm$1 = (r22) => {
|
|
23186
23186
|
const { nodes: e } = r22;
|
|
23187
23187
|
return e.length === 0 || e[0].name !== "sd:totalPageNumber" ? { nodes: [], consumed: 0 } : { nodes: [{
|
|
23188
23188
|
type: "total-page-number"
|
|
23189
23189
|
}], consumed: 1 };
|
|
23190
|
-
},
|
|
23190
|
+
}, Jm$1 = {
|
|
23191
23191
|
handlerName: "autoTotalPageCountEntity",
|
|
23192
|
-
handler:
|
|
23193
|
-
},
|
|
23192
|
+
handler: Wm$1
|
|
23193
|
+
}, Km$1 = (r22) => {
|
|
23194
23194
|
const { nodes: e } = r22;
|
|
23195
23195
|
if (e.length === 0 || e[0].name !== "w:tab")
|
|
23196
23196
|
return { nodes: [], consumed: 0 };
|
|
@@ -23202,11 +23202,11 @@ Actual: ` + p3.attribValue
|
|
|
23202
23202
|
},
|
|
23203
23203
|
content: []
|
|
23204
23204
|
}], consumed: 1 };
|
|
23205
|
-
},
|
|
23205
|
+
}, $m$1 = {
|
|
23206
23206
|
handlerName: "tabNodeHandler",
|
|
23207
|
-
handler:
|
|
23207
|
+
handler: Km$1
|
|
23208
23208
|
};
|
|
23209
|
-
function
|
|
23209
|
+
function Xm$1({ docx: r22 }) {
|
|
23210
23210
|
const e = xr$2(), t = r22["word/comments.xml"];
|
|
23211
23211
|
if (!t) return;
|
|
23212
23212
|
const { elements: n } = t;
|
|
@@ -23232,16 +23232,16 @@ Actual: ` + p3.attribValue
|
|
|
23232
23232
|
trackedDeletedText: k
|
|
23233
23233
|
};
|
|
23234
23234
|
});
|
|
23235
|
-
return
|
|
23235
|
+
return Ym$1({ docx: r22, comments: s });
|
|
23236
23236
|
}
|
|
23237
|
-
const
|
|
23237
|
+
const Ym$1 = ({ docx: r22, comments: e }) => {
|
|
23238
23238
|
const t = r22["word/commentsExtended.xml"];
|
|
23239
23239
|
if (!t) return [];
|
|
23240
23240
|
const { elements: n } = t, { elements: i3 } = n[0], s = i3.filter((o) => o.name === "w15:commentEx");
|
|
23241
23241
|
return e.map((o) => {
|
|
23242
23242
|
const a = s.find((g) => g.attributes["w15:paraId"] === o.paraId);
|
|
23243
23243
|
if (!a) return { ...o };
|
|
23244
|
-
const { isDone: u, paraIdParent: f3 } = $
|
|
23244
|
+
const { isDone: u, paraIdParent: f3 } = Qm$1(a);
|
|
23245
23245
|
let c3;
|
|
23246
23246
|
return f3 && (c3 = e.find((g) => g.paraId === f3)), {
|
|
23247
23247
|
...o,
|
|
@@ -23249,11 +23249,11 @@ Actual: ` + p3.attribValue
|
|
|
23249
23249
|
parentCommentId: c3?.commentId
|
|
23250
23250
|
};
|
|
23251
23251
|
});
|
|
23252
|
-
}, $
|
|
23252
|
+
}, Qm$1 = (r22) => {
|
|
23253
23253
|
const { attributes: e } = r22, t = e["w15:paraId"], n = e["w15:done"] === "1", i3 = e["w15:paraIdParent"];
|
|
23254
23254
|
return { paraId: t, isDone: n, paraIdParent: i3 };
|
|
23255
|
-
},
|
|
23256
|
-
const n = je$3(
|
|
23255
|
+
}, Zm$1 = (r22, e, t) => {
|
|
23256
|
+
const n = je$3(Hd$2(r22));
|
|
23257
23257
|
if (!n) return null;
|
|
23258
23258
|
if (e?.telemetry) {
|
|
23259
23259
|
const o = Object.keys(r22).map((a) => {
|
|
@@ -23278,7 +23278,7 @@ Actual: ` + p3.attribValue
|
|
|
23278
23278
|
}
|
|
23279
23279
|
const i3 = xr$2(), s = n.elements[0].elements.find((o) => o.name === "w:body");
|
|
23280
23280
|
if (s) {
|
|
23281
|
-
const o = s, a = ["w:sectPr"], u = o.elements?.filter((S) => !a.includes(S.name)) ?? [], f3 =
|
|
23281
|
+
const o = s, a = ["w:sectPr"], u = o.elements?.filter((S) => !a.includes(S.name)) ?? [], f3 = Xm$1({ docx: r22 }), c3 = {}, g = {
|
|
23282
23282
|
type: "doc",
|
|
23283
23283
|
content: i3.handler({
|
|
23284
23284
|
nodes: u,
|
|
@@ -23301,37 +23301,37 @@ Actual: ` + p3.attribValue
|
|
|
23301
23301
|
), {
|
|
23302
23302
|
pmDoc: g,
|
|
23303
23303
|
savedTagsToRestore: o,
|
|
23304
|
-
pageStyles:
|
|
23304
|
+
pageStyles: tp$2(o, r22, e, t),
|
|
23305
23305
|
comments: f3,
|
|
23306
|
-
linkedStyles:
|
|
23307
|
-
numbering:
|
|
23306
|
+
linkedStyles: rp$2(r22),
|
|
23307
|
+
numbering: sp$2(r22)
|
|
23308
23308
|
};
|
|
23309
23309
|
}
|
|
23310
23310
|
return null;
|
|
23311
23311
|
}, xr$2 = () => {
|
|
23312
23312
|
const r22 = [
|
|
23313
|
+
dm$1,
|
|
23314
|
+
km$1,
|
|
23315
|
+
xm$1,
|
|
23316
|
+
pm$1,
|
|
23317
|
+
jm$1,
|
|
23318
|
+
Lm$1,
|
|
23319
|
+
Vm$1,
|
|
23313
23320
|
lm$1,
|
|
23314
|
-
|
|
23315
|
-
|
|
23316
|
-
|
|
23317
|
-
|
|
23318
|
-
|
|
23319
|
-
|
|
23320
|
-
|
|
23321
|
-
Kd$2,
|
|
23322
|
-
im$1,
|
|
23323
|
-
jd$2,
|
|
23324
|
-
Wm$1,
|
|
23325
|
-
Hm$1,
|
|
23326
|
-
zm$1,
|
|
23327
|
-
Lm$1
|
|
23321
|
+
Yd$2,
|
|
23322
|
+
am$1,
|
|
23323
|
+
zd$2,
|
|
23324
|
+
$m$1,
|
|
23325
|
+
Gm$1,
|
|
23326
|
+
Jm$1,
|
|
23327
|
+
Mm$1
|
|
23328
23328
|
//this should be the last one, bcs this parses everything!!!
|
|
23329
23329
|
];
|
|
23330
23330
|
return {
|
|
23331
|
-
handler:
|
|
23331
|
+
handler: ep$2(r22),
|
|
23332
23332
|
handlerEntities: r22
|
|
23333
23333
|
};
|
|
23334
|
-
},
|
|
23334
|
+
}, ep$2 = (r22) => {
|
|
23335
23335
|
const e = (n, i3, s, o) => !n || i3 < 0 || i3 >= n.length ? {
|
|
23336
23336
|
elementIndex: i3,
|
|
23337
23337
|
error: "index_out_of_bounds",
|
|
@@ -23416,7 +23416,7 @@ Actual: ` + p3.attribValue
|
|
|
23416
23416
|
};
|
|
23417
23417
|
return t;
|
|
23418
23418
|
};
|
|
23419
|
-
function
|
|
23419
|
+
function tp$2(r22, e, t, n) {
|
|
23420
23420
|
const i3 = r22.elements?.find((o) => o.name === "w:sectPr"), s = {};
|
|
23421
23421
|
return i3?.elements?.forEach((o) => {
|
|
23422
23422
|
const { name: a, attributes: u } = o;
|
|
@@ -23454,9 +23454,9 @@ Actual: ` + p3.attribValue
|
|
|
23454
23454
|
case "w:titlePg":
|
|
23455
23455
|
t.headerIds.titlePg = true;
|
|
23456
23456
|
}
|
|
23457
|
-
}),
|
|
23457
|
+
}), ip$2(e, t, n), s.alternateHeaders = op$2(e), s;
|
|
23458
23458
|
}
|
|
23459
|
-
function
|
|
23459
|
+
function rp$2(r22) {
|
|
23460
23460
|
const e = r22["word/styles.xml"];
|
|
23461
23461
|
if (!e) return [];
|
|
23462
23462
|
const { elements: t } = e.elements[0], n = t.filter((o) => o.name === "w:style");
|
|
@@ -23466,7 +23466,7 @@ Actual: ` + p3.attribValue
|
|
|
23466
23466
|
});
|
|
23467
23467
|
const s = [];
|
|
23468
23468
|
return n.forEach((o) => {
|
|
23469
|
-
const a = o.attributes["w:styleId"], u =
|
|
23469
|
+
const a = o.attributes["w:styleId"], u = Nm$1(a, r22), f3 = {
|
|
23470
23470
|
id: o.attributes["w:styleId"],
|
|
23471
23471
|
type: o.attributes["w:type"],
|
|
23472
23472
|
definition: u,
|
|
@@ -23475,7 +23475,7 @@ Actual: ` + p3.attribValue
|
|
|
23475
23475
|
s.push(f3);
|
|
23476
23476
|
}), s;
|
|
23477
23477
|
}
|
|
23478
|
-
function
|
|
23478
|
+
function np$2(r22) {
|
|
23479
23479
|
if (!r22) return null;
|
|
23480
23480
|
const e = je$3(r22), { elements: t } = e.elements[0];
|
|
23481
23481
|
return Object.keys(Eo$2).forEach((n) => {
|
|
@@ -23485,7 +23485,7 @@ Actual: ` + p3.attribValue
|
|
|
23485
23485
|
}
|
|
23486
23486
|
}), e;
|
|
23487
23487
|
}
|
|
23488
|
-
const
|
|
23488
|
+
const ip$2 = (r22, e, t) => {
|
|
23489
23489
|
const i3 = r22["word/_rels/document.xml.rels"].elements.find((g) => g.name === "Relationships"), { elements: s } = i3, o = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", a = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", u = s.filter((g) => g.attributes.Type === o), f3 = s.filter((g) => g.attributes.Type === a), h3 = (Du$2(r22["word/document.xml"]) || []).flatMap((g) => g.elements);
|
|
23490
23490
|
u.forEach((g) => {
|
|
23491
23491
|
const { rId: S, referenceFile: T3, currentFileName: A } = Lo$2(g, r22), w = h3.find((C) => C.name === "w:headerReference" && C.attributes["r:id"] === S)?.attributes["w:type"], k = xr$2(), I3 = k.handler({
|
|
@@ -23520,7 +23520,7 @@ Actual: ` + p3.attribValue
|
|
|
23520
23520
|
currentFileName: n
|
|
23521
23521
|
};
|
|
23522
23522
|
};
|
|
23523
|
-
function
|
|
23523
|
+
function sp$2(r22) {
|
|
23524
23524
|
let e = r22["word/numbering.xml"];
|
|
23525
23525
|
(!e || !e.elements?.length || !e.elements[0].elements?.length) && (e = ru$2);
|
|
23526
23526
|
const t = e.elements[0].elements, n = t.filter((a) => a.name === "w:abstractNum"), i3 = t.filter((a) => a.name === "w:num"), s = {};
|
|
@@ -23537,7 +23537,7 @@ Actual: ` + p3.attribValue
|
|
|
23537
23537
|
definitions: o
|
|
23538
23538
|
};
|
|
23539
23539
|
}
|
|
23540
|
-
const
|
|
23540
|
+
const op$2 = (r22) => {
|
|
23541
23541
|
const e = r22["word/settings.xml"];
|
|
23542
23542
|
if (!e || !e.elements?.length) return false;
|
|
23543
23543
|
const { elements: t = [] } = e.elements[0];
|
|
@@ -23551,7 +23551,7 @@ Actual: ` + p3.attribValue
|
|
|
23551
23551
|
}
|
|
23552
23552
|
parseFromXml() {
|
|
23553
23553
|
this.docx?.forEach((e) => {
|
|
23554
|
-
this.convertedXml[e.name] = this.parseXmlToJson(e.content), e.name === "word/document.xml" && (this.documentAttributes = this.convertedXml[e.name].elements[0]?.attributes), e.name === "word/styles.xml" && (this.convertedXml[e.name] =
|
|
23554
|
+
this.convertedXml[e.name] = this.parseXmlToJson(e.content), e.name === "word/document.xml" && (this.documentAttributes = this.convertedXml[e.name].elements[0]?.attributes), e.name === "word/styles.xml" && (this.convertedXml[e.name] = np$2(this.convertedXml[e.name]));
|
|
23555
23555
|
}), this.initialJSON = this.convertedXml["word/document.xml"], this.initialJSON || (this.initialJSON = this.parseXmlToJson(this.xml)), this.declaration = this.initialJSON?.declaration;
|
|
23556
23556
|
}
|
|
23557
23557
|
parseXmlToJson(e) {
|
|
@@ -23570,7 +23570,7 @@ Actual: ` + p3.attribValue
|
|
|
23570
23570
|
return;
|
|
23571
23571
|
}
|
|
23572
23572
|
}
|
|
23573
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.9.
|
|
23573
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.9.34") {
|
|
23574
23574
|
const n = "docProps/custom.xml";
|
|
23575
23575
|
e[n] || (e[n] = Tu$2());
|
|
23576
23576
|
const i3 = e["docProps/custom.xml"];
|
|
@@ -23637,14 +23637,14 @@ Actual: ` + p3.attribValue
|
|
|
23637
23637
|
}
|
|
23638
23638
|
getSchema(e) {
|
|
23639
23639
|
this.getDocumentInternalId();
|
|
23640
|
-
const t =
|
|
23640
|
+
const t = Zm$1({ ...this.convertedXml, media: this.media }, this, e);
|
|
23641
23641
|
return t ? (this.savedTagsToRestore.push({ ...t.savedTagsToRestore }), this.pageStyles = t.pageStyles, this.numbering = t.numbering, this.comments = t.comments, this.linkedStyles = t.linkedStyles, t.pmDoc) : null;
|
|
23642
23642
|
}
|
|
23643
23643
|
schemaToXml(e, t = false) {
|
|
23644
23644
|
return new Bo$2(this).schemaToXml(e, t);
|
|
23645
23645
|
}
|
|
23646
23646
|
async exportToDocx(e, t, n, i3 = false, s, o = []) {
|
|
23647
|
-
const a = o.map((A) =>
|
|
23647
|
+
const a = o.map((A) => $f$2(A)), u = a.map((A, B3) => Xf$2(A, B3, a)), { result: f3, params: c3 } = this.exportToXmlJson({
|
|
23648
23648
|
data: e,
|
|
23649
23649
|
editorSchema: t,
|
|
23650
23650
|
comments: o,
|
|
@@ -23666,7 +23666,7 @@ Actual: ` + p3.attribValue
|
|
|
23666
23666
|
});
|
|
23667
23667
|
S = { ...A }, T3 = B3;
|
|
23668
23668
|
}
|
|
23669
|
-
return this.convertedXml = { ...this.convertedXml, ...S }, Ke$1(this, it$1, Cu$2).call(this, [...c3.relationships, ...T3]),
|
|
23669
|
+
return this.convertedXml = { ...this.convertedXml, ...S }, Ke$1(this, it$1, Cu$2).call(this, [...c3.relationships, ...T3]), ap$2(this.convertedXml), Ke$1(this, it$1, Eu$2).call(this, c3), g;
|
|
23670
23670
|
}
|
|
23671
23671
|
exportToXmlJson({
|
|
23672
23672
|
data: e,
|
|
@@ -23704,7 +23704,7 @@ Actual: ` + p3.attribValue
|
|
|
23704
23704
|
* Update comments files and relationships depending on export type
|
|
23705
23705
|
*/
|
|
23706
23706
|
vu$2 = function({ defs: e, exportType: t, commentsWithParaIds: n }) {
|
|
23707
|
-
const { documentXml: i3, relationships: s } =
|
|
23707
|
+
const { documentXml: i3, relationships: s } = nd$2({
|
|
23708
23708
|
exportType: t,
|
|
23709
23709
|
convertedXml: this.convertedXml,
|
|
23710
23710
|
defs: e,
|
|
@@ -23776,7 +23776,7 @@ Actual: ` + p3.attribValue
|
|
|
23776
23776
|
"w:tcPr": "tableCellProperties"
|
|
23777
23777
|
})), _t$1(dt, "elements", /* @__PURE__ */ new Set(["w:document", "w:body", "w:p", "w:r", "w:t", "w:delText"]));
|
|
23778
23778
|
let Nt$4 = dt;
|
|
23779
|
-
function
|
|
23779
|
+
function ap$2(r22) {
|
|
23780
23780
|
const e = "docProps/custom.xml";
|
|
23781
23781
|
r22[e] || (r22[e] = Tu$2());
|
|
23782
23782
|
const n = r22[e].elements.find((a) => a.name === "Properties");
|
|
@@ -23795,7 +23795,7 @@ Actual: ` + p3.attribValue
|
|
|
23795
23795
|
function Tu$2() {
|
|
23796
23796
|
return _f$2;
|
|
23797
23797
|
}
|
|
23798
|
-
function Fu$2(r22 = 2, e = "0.9.
|
|
23798
|
+
function Fu$2(r22 = 2, e = "0.9.34") {
|
|
23799
23799
|
return {
|
|
23800
23800
|
type: "element",
|
|
23801
23801
|
name: "property",
|
|
@@ -26182,7 +26182,7 @@ Actual: ` + p3.attribValue
|
|
|
26182
26182
|
async updateContentTypes(nt2, _) {
|
|
26183
26183
|
const R = Object.keys(_).map((c3) => this.getFileExtension(c3)), y = "[Content_Types].xml", l = await nt2.file(y).async("string");
|
|
26184
26184
|
let s = "";
|
|
26185
|
-
const r =
|
|
26185
|
+
const r = vp$2(l), h3 = /* @__PURE__ */ new Set();
|
|
26186
26186
|
for (let c3 of R) {
|
|
26187
26187
|
if (r.includes(c3) || h3.has(c3)) continue;
|
|
26188
26188
|
const b = `<Default Extension="${c3}" ContentType="image/${c3}"/>`;
|
|
@@ -26625,12 +26625,12 @@ Actual: ` + p3.attribValue
|
|
|
26625
26625
|
}
|
|
26626
26626
|
return Yo$1;
|
|
26627
26627
|
}
|
|
26628
|
-
const vt = new
|
|
26628
|
+
const vt = new xp$2("history"), Vf$1 = new xp$2("closeHistory");
|
|
26629
26629
|
function Hf$1(t = {}) {
|
|
26630
26630
|
return t = {
|
|
26631
26631
|
depth: t.depth || 100,
|
|
26632
26632
|
newGroupDelay: t.newGroupDelay || 500
|
|
26633
|
-
}, new
|
|
26633
|
+
}, new bp$2({
|
|
26634
26634
|
key: vt,
|
|
26635
26635
|
state: {
|
|
26636
26636
|
init() {
|
|
@@ -29144,7 +29144,7 @@ Actual: ` + p3.attribValue
|
|
|
29144
29144
|
if (!s)
|
|
29145
29145
|
return;
|
|
29146
29146
|
n.preventDefault();
|
|
29147
|
-
let l = s ?
|
|
29147
|
+
let l = s ? yp$2(t.state.doc, i3.pos, s) : i3.pos;
|
|
29148
29148
|
l == null && (l = i3.pos);
|
|
29149
29149
|
let c3 = t.state.tr;
|
|
29150
29150
|
if (a) {
|
|
@@ -30616,7 +30616,7 @@ Actual: ` + p3.attribValue
|
|
|
30616
30616
|
remove: t.length - n - r,
|
|
30617
30617
|
insert: e.slice(n, e.length - r)
|
|
30618
30618
|
};
|
|
30619
|
-
}, cm = lm, te = new
|
|
30619
|
+
}, cm = lm, te = new xp$2("y-sync"), zt$2 = new xp$2("y-undo"), qr$1 = new xp$2("yjs-cursor"), dm = Math.random, um = (t) => t[mr$1(dm() * t.length)], Ha$1 = (t) => t === void 0 ? null : t;
|
|
30620
30620
|
class fm {
|
|
30621
30621
|
constructor() {
|
|
30622
30622
|
this.map = /* @__PURE__ */ new Map();
|
|
@@ -30835,7 +30835,7 @@ Actual: ` + p3.attribValue
|
|
|
30835
30835
|
mapping: i3
|
|
30836
30836
|
} = {}) => {
|
|
30837
30837
|
let s = false;
|
|
30838
|
-
const a = new zm(t, i3), l = new
|
|
30838
|
+
const a = new zm(t, i3), l = new bp$2({
|
|
30839
30839
|
props: {
|
|
30840
30840
|
editable: (c3) => {
|
|
30841
30841
|
const d = te.getState(c3);
|
|
@@ -31640,7 +31640,7 @@ Actual: ` + p3.attribValue
|
|
|
31640
31640
|
cursorBuilder: n = Qm,
|
|
31641
31641
|
selectionBuilder: r = eg,
|
|
31642
31642
|
getSelection: o = (s) => s.selection
|
|
31643
|
-
} = {}, i3 = "cursor") => new
|
|
31643
|
+
} = {}, i3 = "cursor") => new bp$2({
|
|
31644
31644
|
key: qr$1,
|
|
31645
31645
|
state: {
|
|
31646
31646
|
init(s, a) {
|
|
@@ -31713,7 +31713,7 @@ Actual: ` + p3.attribValue
|
|
|
31713
31713
|
const e = zt$2.getState(t).undoManager;
|
|
31714
31714
|
if (e != null)
|
|
31715
31715
|
return e.redo(), true;
|
|
31716
|
-
}, ig = /* @__PURE__ */ new Set(["paragraph"]), sg = (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, ag = ({ protectedNodes: t = ig, trackedOrigins: e = [], undoManager: n = null } = {}) => new
|
|
31716
|
+
}, ig = /* @__PURE__ */ new Set(["paragraph"]), sg = (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, ag = ({ protectedNodes: t = ig, trackedOrigins: e = [], undoManager: n = null } = {}) => new bp$2({
|
|
31717
31717
|
key: zt$2,
|
|
31718
31718
|
state: {
|
|
31719
31719
|
init: (r, o) => {
|
|
@@ -31926,7 +31926,7 @@ Actual: ` + p3.attribValue
|
|
|
31926
31926
|
return e.altKey && (t = "Alt-" + t), e.ctrlKey && (t = "Ctrl-" + t), e.metaKey && (t = "Meta-" + t), n && e.shiftKey && (t = "Shift-" + t), t;
|
|
31927
31927
|
}
|
|
31928
31928
|
function mg(t) {
|
|
31929
|
-
return new
|
|
31929
|
+
return new bp$2({ props: { handleKeyDown: Os(t) } });
|
|
31930
31930
|
}
|
|
31931
31931
|
function Os(t) {
|
|
31932
31932
|
let e = hg(t);
|
|
@@ -32166,7 +32166,7 @@ Actual: ` + p3.attribValue
|
|
|
32166
32166
|
static createSchemaByExtensions(e, n) {
|
|
32167
32167
|
var c3, d;
|
|
32168
32168
|
const r = e.filter((u) => u.type === "node"), o = e.filter((u) => u.type === "mark"), i3 = r.find((u) => N(u, "topNode"))?.name, s = D.getAttributesFromExtensions(e), a = I$1(c3 = cr2, zn$2, Zc$1).call(c3, r, s, n), l = I$1(d = cr2, zn$2, Qc$1).call(d, o, s, n);
|
|
32169
|
-
return new
|
|
32169
|
+
return new fp$2({ topNode: i3, nodes: a, marks: l });
|
|
32170
32170
|
}
|
|
32171
32171
|
};
|
|
32172
32172
|
zn$2 = /* @__PURE__ */ new WeakSet(), Zc$1 = function(e, n, r) {
|
|
@@ -32388,7 +32388,7 @@ Actual: ` + p3.attribValue
|
|
|
32388
32388
|
}
|
|
32389
32389
|
}
|
|
32390
32390
|
const kg = (t, e) => {
|
|
32391
|
-
if (
|
|
32391
|
+
if (hm$1(e))
|
|
32392
32392
|
return e.exec(t);
|
|
32393
32393
|
const n = e(t);
|
|
32394
32394
|
if (!n)
|
|
@@ -32441,8 +32441,8 @@ Actual: ` + p3.attribValue
|
|
|
32441
32441
|
}), a.dispatch(p3), c3 = true);
|
|
32442
32442
|
}), c3;
|
|
32443
32443
|
}, Cg = ({ editor: t, rules: e }) => {
|
|
32444
|
-
const n = new
|
|
32445
|
-
key: new
|
|
32444
|
+
const n = new bp$2({
|
|
32445
|
+
key: new xp$2("inputRulesPlugin"),
|
|
32446
32446
|
state: {
|
|
32447
32447
|
init() {
|
|
32448
32448
|
return null;
|
|
@@ -32683,7 +32683,7 @@ Actual: ` + p3.attribValue
|
|
|
32683
32683
|
return false;
|
|
32684
32684
|
let o = od$1(r);
|
|
32685
32685
|
if (!o) {
|
|
32686
|
-
let s = r.blockRange(), a = s &&
|
|
32686
|
+
let s = r.blockRange(), a = s && mp$2(s);
|
|
32687
32687
|
return a == null ? false : (e && e(t.tr.lift(s, a).scrollIntoView()), true);
|
|
32688
32688
|
}
|
|
32689
32689
|
let i3 = o.nodeBefore;
|
|
@@ -32786,10 +32786,10 @@ Actual: ` + p3.attribValue
|
|
|
32786
32786
|
const Ng = (t, e) => {
|
|
32787
32787
|
let n = t.selection, r = n instanceof Ge$1, o;
|
|
32788
32788
|
if (r) {
|
|
32789
|
-
if (n.node.isTextblock || !
|
|
32789
|
+
if (n.node.isTextblock || !gp$2(t.doc, n.from))
|
|
32790
32790
|
return false;
|
|
32791
32791
|
o = n.from;
|
|
32792
|
-
} else if (o =
|
|
32792
|
+
} else if (o = wp$2(t.doc, n.from, -1), o == null)
|
|
32793
32793
|
return false;
|
|
32794
32794
|
if (e) {
|
|
32795
32795
|
let i3 = t.tr.join(o);
|
|
@@ -32799,10 +32799,10 @@ Actual: ` + p3.attribValue
|
|
|
32799
32799
|
}, Eg = (t, e) => {
|
|
32800
32800
|
let n = t.selection, r;
|
|
32801
32801
|
if (n instanceof Ge$1) {
|
|
32802
|
-
if (n.node.isTextblock || !
|
|
32802
|
+
if (n.node.isTextblock || !gp$2(t.doc, n.to))
|
|
32803
32803
|
return false;
|
|
32804
32804
|
r = n.to;
|
|
32805
|
-
} else if (r =
|
|
32805
|
+
} else if (r = wp$2(t.doc, n.to, 1), r == null)
|
|
32806
32806
|
return false;
|
|
32807
32807
|
return e && e(t.tr.join(r).scrollIntoView()), true;
|
|
32808
32808
|
}, ld$1 = (t, e) => {
|
|
@@ -32848,17 +32848,17 @@ Actual: ` + p3.attribValue
|
|
|
32848
32848
|
return false;
|
|
32849
32849
|
if (n.depth > 1 && n.after() != n.end(-1)) {
|
|
32850
32850
|
let i3 = n.before();
|
|
32851
|
-
if (
|
|
32851
|
+
if (hp$2(t.doc, i3))
|
|
32852
32852
|
return e && e(t.tr.split(i3).scrollIntoView()), true;
|
|
32853
32853
|
}
|
|
32854
|
-
let r = n.blockRange(), o = r &&
|
|
32854
|
+
let r = n.blockRange(), o = r && mp$2(r);
|
|
32855
32855
|
return o == null ? false : (e && e(t.tr.lift(r, o).scrollIntoView()), true);
|
|
32856
32856
|
};
|
|
32857
32857
|
function Pg(t) {
|
|
32858
32858
|
return (e, n) => {
|
|
32859
32859
|
let { $from: r, $to: o } = e.selection;
|
|
32860
32860
|
if (e.selection instanceof Ge$1 && e.selection.node.isBlock)
|
|
32861
|
-
return !r.parentOffset || !
|
|
32861
|
+
return !r.parentOffset || !hp$2(e.doc, r.pos) ? false : (n && n(e.tr.split(r.pos).scrollIntoView()), true);
|
|
32862
32862
|
if (!r.depth)
|
|
32863
32863
|
return false;
|
|
32864
32864
|
let i3 = [], s, a, l = false, c3 = false;
|
|
@@ -32873,8 +32873,8 @@ Actual: ` + p3.attribValue
|
|
|
32873
32873
|
}
|
|
32874
32874
|
let d = e.tr;
|
|
32875
32875
|
(e.selection instanceof tt$2 || e.selection instanceof at$3) && d.deleteSelection();
|
|
32876
|
-
let u = d.mapping.map(r.pos), f3 =
|
|
32877
|
-
if (f3 || (i3[0] = a ? { type: a } : null, f3 =
|
|
32876
|
+
let u = d.mapping.map(r.pos), f3 = hp$2(d.doc, u, i3.length, i3);
|
|
32877
|
+
if (f3 || (i3[0] = a ? { type: a } : null, f3 = hp$2(d.doc, u, i3.length, i3)), !f3)
|
|
32878
32878
|
return false;
|
|
32879
32879
|
if (d.split(u, i3.length, i3), !l && c3 && r.node(s).type != a) {
|
|
32880
32880
|
let p3 = d.mapping.map(r.before(s)), h3 = d.doc.resolve(p3);
|
|
@@ -32886,7 +32886,7 @@ Actual: ` + p3.attribValue
|
|
|
32886
32886
|
const Rg = Pg(), Lg = (t, e) => (e && e(t.tr.setSelection(new at$3(t.doc))), true);
|
|
32887
32887
|
function Fg(t, e, n) {
|
|
32888
32888
|
let r = e.nodeBefore, o = e.nodeAfter, i3 = e.index();
|
|
32889
|
-
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 ||
|
|
32889
|
+
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);
|
|
32890
32890
|
}
|
|
32891
32891
|
function ud$1(t, e, n, r) {
|
|
32892
32892
|
let o = e.nodeBefore, i3 = e.nodeAfter, s, a, l = o.type.spec.isolating || i3.type.spec.isolating;
|
|
@@ -32900,11 +32900,11 @@ Actual: ` + p3.attribValue
|
|
|
32900
32900
|
h3 = Z.from(s[b].create(null, h3));
|
|
32901
32901
|
h3 = Z.from(o.copy(h3));
|
|
32902
32902
|
let m = t.tr.step(new Je$3(e.pos - 1, p3, e.pos, p3, new ue(h3, 1, 0), s.length, true)), g = m.doc.resolve(p3 + 2 * s.length);
|
|
32903
|
-
g.nodeAfter && g.nodeAfter.type == o.type &&
|
|
32903
|
+
g.nodeAfter && g.nodeAfter.type == o.type && gp$2(m.doc, g.pos) && m.join(g.pos), n(m.scrollIntoView());
|
|
32904
32904
|
}
|
|
32905
32905
|
return true;
|
|
32906
32906
|
}
|
|
32907
|
-
let d = i3.type.spec.isolating || r > 0 && l ? null : ve$1.findFrom(e, 1), u = d && d.$from.blockRange(d.$to), f3 = u &&
|
|
32907
|
+
let d = i3.type.spec.isolating || r > 0 && l ? null : ve$1.findFrom(e, 1), u = d && d.$from.blockRange(d.$to), f3 = u && mp$2(u);
|
|
32908
32908
|
if (f3 != null && f3 >= e.depth)
|
|
32909
32909
|
return n && n(t.tr.lift(u, f3).scrollIntoView()), true;
|
|
32910
32910
|
if (c3 && Pn$2(i3, "start", true) && Pn$2(o, "end")) {
|
|
@@ -32997,14 +32997,14 @@ Actual: ` + p3.attribValue
|
|
|
32997
32997
|
}, zg = ({ keepMarks: t = true } = {}) => (e) => {
|
|
32998
32998
|
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);
|
|
32999
32999
|
if (s instanceof Ge$1 && s.node.isBlock)
|
|
33000
|
-
return !l.parentOffset || !
|
|
33000
|
+
return !l.parentOffset || !hp$2(a, l.pos) ? false : (o && (t && Ka$1(r, i3.extensionService.splittableMarks), n.split(l.pos).scrollIntoView()), true);
|
|
33001
33001
|
if (!l.parent.isBlock) return false;
|
|
33002
33002
|
if (o) {
|
|
33003
33003
|
const f3 = c3.parentOffset === c3.parent.content.size;
|
|
33004
33004
|
s instanceof tt$2 && n.deleteSelection();
|
|
33005
33005
|
const p3 = l.depth === 0 ? null : pd$1(l.node(-1).contentMatchAt(l.indexAfter(-1)));
|
|
33006
|
-
let h3 = f3 && p3 ? [{ type: p3, attrs: u }] : void 0, m =
|
|
33007
|
-
if (!h3 && !m &&
|
|
33006
|
+
let h3 = f3 && p3 ? [{ type: p3, attrs: u }] : void 0, m = hp$2(n.doc, n.mapping.map(l.pos), 1, h3);
|
|
33007
|
+
if (!h3 && !m && hp$2(n.doc, n.mapping.map(l.pos), 1, p3 ? [{ type: p3 }] : void 0) && (m = true, h3 = p3 ? [{ type: p3, attrs: u }] : void 0), m && (n.split(n.mapping.map(l.pos), 1, h3), p3 && !f3 && !l.parentOffset && l.parent.type !== p3)) {
|
|
33008
33008
|
const g = n.mapping.map(l.before()), b = n.doc.resolve(g);
|
|
33009
33009
|
l.node(-1).canReplaceWith(b.index(), b.index() + 1, p3) && n.setNodeMarkup(n.mapping.map(l.before()), p3);
|
|
33010
33010
|
}
|
|
@@ -33063,7 +33063,7 @@ Actual: ` + p3.attribValue
|
|
|
33063
33063
|
return Wg(r, n, l);
|
|
33064
33064
|
};
|
|
33065
33065
|
function $i$1(t, e, n = {}) {
|
|
33066
|
-
return t.find((r) => r.type === e &&
|
|
33066
|
+
return t.find((r) => r.type === e && gm$1(r.attrs, n));
|
|
33067
33067
|
}
|
|
33068
33068
|
function qg(t, e, n = {}) {
|
|
33069
33069
|
return !!$i$1(t, e, n);
|
|
@@ -33102,7 +33102,7 @@ Actual: ` + p3.attribValue
|
|
|
33102
33102
|
function Co$1(t, e, n = {}) {
|
|
33103
33103
|
const { empty: r, ranges: o } = t.selection, i3 = e ? Mt$1(e, t.schema) : null;
|
|
33104
33104
|
if (r)
|
|
33105
|
-
return !!(t.storedMarks || t.selection.$from.marks()).filter((u) => i3 ? i3.name === u.type.name : true).find((u) =>
|
|
33105
|
+
return !!(t.storedMarks || t.selection.$from.marks()).filter((u) => i3 ? i3.name === u.type.name : true).find((u) => gm$1(u.attrs, n, { strict: false }));
|
|
33106
33106
|
let s = 0;
|
|
33107
33107
|
const a = [];
|
|
33108
33108
|
if (o.forEach(({ $from: u, $to: f3 }) => {
|
|
@@ -33119,7 +33119,7 @@ Actual: ` + p3.attribValue
|
|
|
33119
33119
|
);
|
|
33120
33120
|
});
|
|
33121
33121
|
}), s === 0) return false;
|
|
33122
|
-
const l = a.filter((u) => i3 ? i3.name === u.mark.type.name : true).filter((u) =>
|
|
33122
|
+
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);
|
|
33123
33123
|
return (l > 0 ? l + c3 : l) >= s;
|
|
33124
33124
|
}
|
|
33125
33125
|
const Jg = (t, e = {}, n = {}) => ({ state: r, commands: o }) => {
|
|
@@ -33132,7 +33132,7 @@ Actual: ` + p3.attribValue
|
|
|
33132
33132
|
if (a.type.isText) return;
|
|
33133
33133
|
const { doc: c3, mapping: d } = e, u = c3.resolve(d.map(l)), f3 = c3.resolve(d.map(l + a.nodeSize)), p3 = u.blockRange(f3);
|
|
33134
33134
|
if (!p3) return;
|
|
33135
|
-
const h3 =
|
|
33135
|
+
const h3 = mp$2(p3);
|
|
33136
33136
|
if (a.type.isTextblock) {
|
|
33137
33137
|
const { defaultType: m } = u.parent.contentMatchAt(u.index());
|
|
33138
33138
|
e.setNodeMarkup(p3.start, m);
|
|
@@ -33155,7 +33155,7 @@ Actual: ` + p3.attribValue
|
|
|
33155
33155
|
to: h3
|
|
33156
33156
|
});
|
|
33157
33157
|
});
|
|
33158
|
-
const l = o - r, c3 = a.filter((u) => s ? s.name === u.node.type.name : true).filter((u) =>
|
|
33158
|
+
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 }));
|
|
33159
33159
|
return i3 ? !!c3.length : c3.reduce((u, f3) => u + f3.to - f3.from, 0) >= l;
|
|
33160
33160
|
}
|
|
33161
33161
|
const Zg = (t, e, n = {}) => ({ state: r, commands: o }) => {
|
|
@@ -33229,7 +33229,7 @@ Actual: ` + p3.attribValue
|
|
|
33229
33229
|
if (o) {
|
|
33230
33230
|
if (n.errorOnInvalidContent) {
|
|
33231
33231
|
let s = false, a = "";
|
|
33232
|
-
const l = new
|
|
33232
|
+
const l = new fp$2({
|
|
33233
33233
|
topNode: e.spec.topNode,
|
|
33234
33234
|
marks: e.spec.marks,
|
|
33235
33235
|
// Prosemirror's schemas are executed such that: the last to execute, matches last
|
|
@@ -33346,7 +33346,7 @@ Actual: ` + p3.attribValue
|
|
|
33346
33346
|
let l = s.resolve(e.start - 2);
|
|
33347
33347
|
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;
|
|
33348
33348
|
}
|
|
33349
|
-
let a =
|
|
33349
|
+
let a = pp$2(i3, n, r, e);
|
|
33350
33350
|
return a ? (t && by(t, e, a, o, n), true) : false;
|
|
33351
33351
|
}
|
|
33352
33352
|
function by(t, e, n, r, o) {
|
|
@@ -33359,7 +33359,7 @@ Actual: ` + p3.attribValue
|
|
|
33359
33359
|
n[d].type == o && (s = d + 1);
|
|
33360
33360
|
let a = n.length - s, l = e.start + n.length - (r ? 2 : 0), c3 = e.parent;
|
|
33361
33361
|
for (let d = e.startIndex, u = e.endIndex, f3 = true; d < u; d++, f3 = false)
|
|
33362
|
-
!f3 &&
|
|
33362
|
+
!f3 && hp$2(t.doc, l, a) && (t.split(l, a), l += 2 * a), l += c3.child(d).nodeSize;
|
|
33363
33363
|
return t;
|
|
33364
33364
|
}
|
|
33365
33365
|
function wy(t) {
|
|
@@ -33371,12 +33371,12 @@ Actual: ` + p3.attribValue
|
|
|
33371
33371
|
function vy(t, e, n, r) {
|
|
33372
33372
|
let o = t.tr, i3 = r.end, s = r.$to.end(r.depth);
|
|
33373
33373
|
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));
|
|
33374
|
-
const a =
|
|
33374
|
+
const a = mp$2(r);
|
|
33375
33375
|
if (a == null)
|
|
33376
33376
|
return false;
|
|
33377
33377
|
o.lift(r, a);
|
|
33378
33378
|
let l = o.doc.resolve(o.mapping.map(i3, -1) - 1);
|
|
33379
|
-
return
|
|
33379
|
+
return gp$2(o.doc, l.pos) && l.nodeBefore.type == l.nodeAfter.type && o.join(l.pos), e(o.scrollIntoView()), true;
|
|
33380
33380
|
}
|
|
33381
33381
|
function ky(t, e, n) {
|
|
33382
33382
|
let r = t.tr, o = n.parent;
|
|
@@ -34581,14 +34581,14 @@ Actual: ` + p3.attribValue
|
|
|
34581
34581
|
const r = t.doc.resolve(Math.max(0, n.pos - 1)).before(n.depth);
|
|
34582
34582
|
if (r === void 0) return true;
|
|
34583
34583
|
const o = t.doc.nodeAt(r);
|
|
34584
|
-
return n.node.type === o?.type &&
|
|
34584
|
+
return n.node.type === o?.type && gp$2(t.doc, n.pos) && t.join(n.pos), true;
|
|
34585
34585
|
}, li$1 = (t, e) => {
|
|
34586
34586
|
const n = He$2((s) => s.type === e)(t.selection);
|
|
34587
34587
|
if (!n) return true;
|
|
34588
34588
|
const r = t.doc.resolve(n.start).after(n.depth);
|
|
34589
34589
|
if (r === void 0) return true;
|
|
34590
34590
|
const o = t.doc.nodeAt(r);
|
|
34591
|
-
return n.node.type === o?.type &&
|
|
34591
|
+
return n.node.type === o?.type && gp$2(t.doc, r) && t.join(r), true;
|
|
34592
34592
|
}, Ay = (t, e, n, r = {}) => (o) => {
|
|
34593
34593
|
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();
|
|
34594
34594
|
if (!y) return false;
|
|
@@ -34677,7 +34677,7 @@ Actual: ` + p3.attribValue
|
|
|
34677
34677
|
{ type: s, attrs: p3 },
|
|
34678
34678
|
{ type: f3, attrs: h3 }
|
|
34679
34679
|
] : [{ type: s, attrs: p3 }];
|
|
34680
|
-
if (!
|
|
34680
|
+
if (!hp$2(n.doc, a.pos, 2))
|
|
34681
34681
|
return false;
|
|
34682
34682
|
if (o) {
|
|
34683
34683
|
const { selection: g, storedMarks: b } = r, { splittableMarks: w } = i3.extensionService, C = b || g.$to.parentOffset && g.$from.marks();
|
|
@@ -34791,8 +34791,8 @@ Actual: ` + p3.attribValue
|
|
|
34791
34791
|
}), _y = Q$1.create({
|
|
34792
34792
|
name: "editable",
|
|
34793
34793
|
addPmPlugins() {
|
|
34794
|
-
return [new
|
|
34795
|
-
key: new
|
|
34794
|
+
return [new bp$2({
|
|
34795
|
+
key: new xp$2("editable"),
|
|
34796
34796
|
props: {
|
|
34797
34797
|
editable: () => this.editor.options.editable
|
|
34798
34798
|
}
|
|
@@ -34802,8 +34802,8 @@ Actual: ` + p3.attribValue
|
|
|
34802
34802
|
name: "editorFocus",
|
|
34803
34803
|
addPmPlugins() {
|
|
34804
34804
|
const t = this.editor;
|
|
34805
|
-
return [new
|
|
34806
|
-
key: new
|
|
34805
|
+
return [new bp$2({
|
|
34806
|
+
key: new xp$2("editorFocus"),
|
|
34807
34807
|
props: {
|
|
34808
34808
|
handleDOMEvents: {
|
|
34809
34809
|
focus: (n, r) => {
|
|
@@ -35091,7 +35091,7 @@ Actual: ` + p3.attribValue
|
|
|
35091
35091
|
});
|
|
35092
35092
|
});
|
|
35093
35093
|
}), e ? n.filter(({ mark: o }) => o.attrs.id === e) : n) : n;
|
|
35094
|
-
}, de = new
|
|
35094
|
+
}, de = new xp$2("TrackChangesBase"), Wy = (t = {}) => new bp$2({
|
|
35095
35095
|
key: de,
|
|
35096
35096
|
state: {
|
|
35097
35097
|
init(e, n) {
|
|
@@ -35320,7 +35320,7 @@ Actual: ` + p3.attribValue
|
|
|
35320
35320
|
if (!r.options.isInternal && n) return "transparent";
|
|
35321
35321
|
const o = he$1.getState(r.state), i3 = n ? o.internalColor : o.externalColor, s = t == e ? "44" : "22";
|
|
35322
35322
|
return `${i3}${s}`;
|
|
35323
|
-
}, rn$2 = new
|
|
35323
|
+
}, rn$2 = new xp$2("paginationPlugin"), Yy = async (t) => {
|
|
35324
35324
|
if (!t.converter) return;
|
|
35325
35325
|
const e = { headers: {}, footers: {} }, n = t.converter.headerIds, r = t.converter.footerIds;
|
|
35326
35326
|
for (let o in n) {
|
|
@@ -35386,7 +35386,7 @@ Actual: ` + p3.attribValue
|
|
|
35386
35386
|
}), n({ height: d, sectionEditor: c3, sectionContainer: r });
|
|
35387
35387
|
});
|
|
35388
35388
|
});
|
|
35389
|
-
}), Fs = [yr$2, Ii$2, Ri$2], he$1 = new
|
|
35389
|
+
}), Fs = [yr$2, Ii$2, Ri$2], he$1 = new xp$2("comments"), Gy = Q$1.create({
|
|
35390
35390
|
name: "comments",
|
|
35391
35391
|
addCommands() {
|
|
35392
35392
|
return {
|
|
@@ -35435,7 +35435,7 @@ Actual: ` + p3.attribValue
|
|
|
35435
35435
|
addPmPlugins() {
|
|
35436
35436
|
const t = this.editor;
|
|
35437
35437
|
let e, n;
|
|
35438
|
-
return t.options.isHeadless ? [] : [new
|
|
35438
|
+
return t.options.isHeadless ? [] : [new bp$2({
|
|
35439
35439
|
key: he$1,
|
|
35440
35440
|
state: {
|
|
35441
35441
|
init() {
|
|
@@ -35474,7 +35474,7 @@ Actual: ` + p3.attribValue
|
|
|
35474
35474
|
if (h3 && (g = d.activeThreadId), n !== g) {
|
|
35475
35475
|
n = g;
|
|
35476
35476
|
const w = {
|
|
35477
|
-
type:
|
|
35477
|
+
type: Dp$1.SELECTED,
|
|
35478
35478
|
activeCommentId: n || null
|
|
35479
35479
|
};
|
|
35480
35480
|
e = true, t.emit("commentsUpdate", w);
|
|
@@ -35704,7 +35704,7 @@ Actual: ` + p3.attribValue
|
|
|
35704
35704
|
if (!b && !w)
|
|
35705
35705
|
return;
|
|
35706
35706
|
const C = {
|
|
35707
|
-
event:
|
|
35707
|
+
event: Dp$1.ADD,
|
|
35708
35708
|
type: "trackedChange",
|
|
35709
35709
|
documentId: i3,
|
|
35710
35710
|
changeId: p3,
|
|
@@ -35715,7 +35715,7 @@ Actual: ` + p3.attribValue
|
|
|
35715
35715
|
authorEmail: u,
|
|
35716
35716
|
date: f3
|
|
35717
35717
|
};
|
|
35718
|
-
return t === "add" ? C.event =
|
|
35718
|
+
return t === "add" ? C.event = Dp$1.ADD : t === "update" && (C.event = Dp$1.UPDATE), C;
|
|
35719
35719
|
};
|
|
35720
35720
|
function nb(t, e) {
|
|
35721
35721
|
let n = null;
|
|
@@ -35772,7 +35772,7 @@ Actual: ` + p3.attribValue
|
|
|
35772
35772
|
if (r.addMark(Math.max(n.from, d), Math.min(n.to, d + c3.nodeSize), n.mark), ["bold", "italic", "strike", "underline", "textStyle"].includes(n.mark.type.name) && !c3.marks.find((h3) => h3.type === n.mark.type)) {
|
|
35773
35773
|
const h3 = c3.marks.find((b) => b.type.name === Ri$2);
|
|
35774
35774
|
let m = [], g = [];
|
|
35775
|
-
if (h3 ? h3.attrs.before.find((w) => w.type === "textStyle" ? w.type === n.mark.type.name &&
|
|
35775
|
+
if (h3 ? h3.attrs.before.find((w) => w.type === "textStyle" ? w.type === n.mark.type.name && gm$1(w.attrs, n.mark.attrs) : w.type === n.mark.type.name) ? (g = [...h3.attrs.before.filter((w) => w.type !== n.mark.type.name)], m = [...h3.attrs.after]) : (g = [...h3.attrs.before], m = [
|
|
35776
35776
|
...h3.attrs.after,
|
|
35777
35777
|
{
|
|
35778
35778
|
type: n.mark.type.name,
|
|
@@ -36285,7 +36285,7 @@ Actual: ` + p3.attribValue
|
|
|
36285
36285
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
36286
36286
|
*/
|
|
36287
36287
|
processCollaborationMigrations() {
|
|
36288
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.9.
|
|
36288
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.9.34"), !this.options.ydoc) return;
|
|
36289
36289
|
let r = this.options.ydoc.getMap("meta").get("version");
|
|
36290
36290
|
r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
|
|
36291
36291
|
const o = Qa$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
|
|
@@ -36864,7 +36864,7 @@ Actual: ` + p3.attribValue
|
|
|
36864
36864
|
}
|
|
36865
36865
|
});
|
|
36866
36866
|
function cb(t = {}) {
|
|
36867
|
-
return new
|
|
36867
|
+
return new bp$2({
|
|
36868
36868
|
view(e) {
|
|
36869
36869
|
return new db(e, t);
|
|
36870
36870
|
}
|
|
@@ -36926,7 +36926,7 @@ Actual: ` + p3.attribValue
|
|
|
36926
36926
|
if (n && !i3) {
|
|
36927
36927
|
let s = n.pos;
|
|
36928
36928
|
if (this.editorView.dragging && this.editorView.dragging.slice) {
|
|
36929
|
-
let a =
|
|
36929
|
+
let a = yp$2(this.editorView.state.doc, s, this.editorView.dragging.slice);
|
|
36930
36930
|
a != null && (s = a);
|
|
36931
36931
|
}
|
|
36932
36932
|
this.setCursor(s), this.scheduleRemoval(5e3);
|
|
@@ -37090,7 +37090,7 @@ Actual: ` + p3.attribValue
|
|
|
37090
37090
|
return true;
|
|
37091
37091
|
}
|
|
37092
37092
|
function pb() {
|
|
37093
|
-
return new
|
|
37093
|
+
return new bp$2({
|
|
37094
37094
|
props: {
|
|
37095
37095
|
decorations: yb,
|
|
37096
37096
|
createSelectionBetween(t, e, n) {
|
|
@@ -37164,7 +37164,7 @@ Actual: ` + p3.attribValue
|
|
|
37164
37164
|
})) ?? null
|
|
37165
37165
|
};
|
|
37166
37166
|
}
|
|
37167
|
-
}), wb = new
|
|
37167
|
+
}), wb = new xp$2("collaboration"), vb = Q$1.create({
|
|
37168
37168
|
name: "collaboration",
|
|
37169
37169
|
priority: 1e3,
|
|
37170
37170
|
addOptions() {
|
|
@@ -37312,7 +37312,7 @@ Actual: ` + p3.attribValue
|
|
|
37312
37312
|
match: r,
|
|
37313
37313
|
chain: o
|
|
37314
37314
|
}) => {
|
|
37315
|
-
const i3 = K$1(t.getAttributes, null, r) || {}, s = e.tr.delete(n.from, n.to), l = s.doc.resolve(n.from).blockRange(), c3 = l &&
|
|
37315
|
+
const i3 = K$1(t.getAttributes, null, r) || {}, s = e.tr.delete(n.from, n.to), l = s.doc.resolve(n.from).blockRange(), c3 = l && pp$2(l, t.type, i3);
|
|
37316
37316
|
if (!c3)
|
|
37317
37317
|
return null;
|
|
37318
37318
|
if (s.wrap(l, c3), t.keepMarks && t.editor) {
|
|
@@ -37327,7 +37327,7 @@ Actual: ` + p3.attribValue
|
|
|
37327
37327
|
o().updateAttributes(u, i3).run();
|
|
37328
37328
|
}
|
|
37329
37329
|
const d = s.doc.resolve(n.from - 1).nodeBefore;
|
|
37330
|
-
d && d.type === t.type &&
|
|
37330
|
+
d && d.type === t.type && gp$2(s.doc, n.from - 1) && (!t.joinPredicate || t.joinPredicate(r, d)) && s.join(n.from - 1);
|
|
37331
37331
|
}
|
|
37332
37332
|
});
|
|
37333
37333
|
}
|
|
@@ -37398,8 +37398,8 @@ Actual: ` + p3.attribValue
|
|
|
37398
37398
|
}
|
|
37399
37399
|
});
|
|
37400
37400
|
function Tb(t = {}) {
|
|
37401
|
-
return new
|
|
37402
|
-
key: new
|
|
37401
|
+
return new bp$2({
|
|
37402
|
+
key: new xp$2("orderedListSync"),
|
|
37403
37403
|
appendTransaction: (e, n, r) => {
|
|
37404
37404
|
if (!(e.some((d) => d.docChanged) && !n.doc.eq(r.doc)))
|
|
37405
37405
|
return;
|
|
@@ -37438,8 +37438,8 @@ Actual: ` + p3.attribValue
|
|
|
37438
37438
|
return Math.floor(Math.random() * 4294967295).toString();
|
|
37439
37439
|
}
|
|
37440
37440
|
function Nb(t) {
|
|
37441
|
-
return new
|
|
37442
|
-
key: new
|
|
37441
|
+
return new bp$2({
|
|
37442
|
+
key: new xp$2("orderedListMarker"),
|
|
37443
37443
|
appendTransaction: (e, n, r) => {
|
|
37444
37444
|
if (!(e.some((c3) => c3.docChanged) && !n.doc.eq(r.doc)))
|
|
37445
37445
|
return;
|
|
@@ -37587,7 +37587,7 @@ Actual: ` + p3.attribValue
|
|
|
37587
37587
|
renderDOM: (t) => {
|
|
37588
37588
|
let e = t["list-style-type"];
|
|
37589
37589
|
return e ? (e === "lowerLetter" && (e = "lowerAlpha"), {
|
|
37590
|
-
style: `list-style-type: ${
|
|
37590
|
+
style: `list-style-type: ${Ap$1(e)};`
|
|
37591
37591
|
}) : {};
|
|
37592
37592
|
}
|
|
37593
37593
|
},
|
|
@@ -37749,8 +37749,8 @@ Actual: ` + p3.attribValue
|
|
|
37749
37749
|
return e;
|
|
37750
37750
|
};
|
|
37751
37751
|
function jb(t = {}) {
|
|
37752
|
-
return new
|
|
37753
|
-
key: new
|
|
37752
|
+
return new bp$2({
|
|
37753
|
+
key: new xp$2("styledListMarker"),
|
|
37754
37754
|
state: {
|
|
37755
37755
|
init(e, n) {
|
|
37756
37756
|
const r = [
|
|
@@ -37960,7 +37960,7 @@ Actual: ` + p3.attribValue
|
|
|
37960
37960
|
addPmPlugins() {
|
|
37961
37961
|
return [jb()];
|
|
37962
37962
|
}
|
|
37963
|
-
}), io$2 = new
|
|
37963
|
+
}), io$2 = new xp$2("linkedStyles"), qb = Q$1.create({
|
|
37964
37964
|
name: "linkedStyles",
|
|
37965
37965
|
addPmPlugins() {
|
|
37966
37966
|
return [Kb(this.editor)];
|
|
@@ -37983,7 +37983,7 @@ Actual: ` + p3.attribValue
|
|
|
37983
37983
|
}
|
|
37984
37984
|
};
|
|
37985
37985
|
}
|
|
37986
|
-
}), Kb = (t) => new
|
|
37986
|
+
}), Kb = (t) => new bp$2({
|
|
37987
37987
|
key: io$2,
|
|
37988
37988
|
state: {
|
|
37989
37989
|
init(e, { doc: n, selection: r }) {
|
|
@@ -38340,9 +38340,9 @@ Actual: ` + p3.attribValue
|
|
|
38340
38340
|
},
|
|
38341
38341
|
addPmPlugins() {
|
|
38342
38342
|
const { view: t } = this.editor;
|
|
38343
|
-
return [new
|
|
38343
|
+
return [new bp$2({
|
|
38344
38344
|
name: "tabPlugin",
|
|
38345
|
-
key: new
|
|
38345
|
+
key: new xp$2("tabPlugin"),
|
|
38346
38346
|
state: {
|
|
38347
38347
|
init(n, r) {
|
|
38348
38348
|
let o = sl$1(r, t);
|
|
@@ -38457,12 +38457,12 @@ Actual: ` + p3.attribValue
|
|
|
38457
38457
|
const m = o === u ? i3 : p3 && p3[h3], g = m ? `${m}px` : "";
|
|
38458
38458
|
if (s += m || r, m || (a = false), l) {
|
|
38459
38459
|
if (l.style.width !== g) {
|
|
38460
|
-
const [b, w] =
|
|
38460
|
+
const [b, w] = id$2(r, m);
|
|
38461
38461
|
l.style.setProperty(b, w);
|
|
38462
38462
|
}
|
|
38463
38463
|
l = l.nextSibling;
|
|
38464
38464
|
} else {
|
|
38465
|
-
const b = document.createElement("col"), [w, C] =
|
|
38465
|
+
const b = document.createElement("col"), [w, C] = id$2(r, m);
|
|
38466
38466
|
b.style.setProperty(w, C), e.appendChild(b);
|
|
38467
38467
|
}
|
|
38468
38468
|
}
|
|
@@ -38733,7 +38733,7 @@ Actual: ` + p3.attribValue
|
|
|
38733
38733
|
}
|
|
38734
38734
|
return e;
|
|
38735
38735
|
}
|
|
38736
|
-
var It$1 = new
|
|
38736
|
+
var It$1 = new xp$2("selectingCells");
|
|
38737
38737
|
function Hn$2(t) {
|
|
38738
38738
|
for (let e = t.depth - 1; e > 0; e--)
|
|
38739
38739
|
if (t.node(e).type.spec.tableRole == "row")
|
|
@@ -39037,7 +39037,7 @@ Actual: ` + p3.attribValue
|
|
|
39037
39037
|
} else r instanceof tt$2 && b0(r) ? i3 = tt$2.create(o, r.from) : r instanceof tt$2 && w0(r) && (i3 = tt$2.create(o, r.$from.start(), r.$from.end()));
|
|
39038
39038
|
return i3 && (e || (e = t.tr)).setSelection(i3), e;
|
|
39039
39039
|
}
|
|
39040
|
-
var k0 = new
|
|
39040
|
+
var k0 = new xp$2("fix-tables");
|
|
39041
39041
|
function du$1(t, e, n, r) {
|
|
39042
39042
|
const o = t.childCount, i3 = e.childCount;
|
|
39043
39043
|
e: for (let s = 0, a = 0; s < i3; s++) {
|
|
@@ -39951,7 +39951,7 @@ Actual: ` + p3.attribValue
|
|
|
39951
39951
|
l ? (n.style.width = a + "px", n.style.minWidth = "") : (n.style.width = "", n.style.minWidth = a + "px");
|
|
39952
39952
|
}
|
|
39953
39953
|
}
|
|
39954
|
-
var Ee$1 = new
|
|
39954
|
+
var Ee$1 = new xp$2(
|
|
39955
39955
|
"tableColumnResizing"
|
|
39956
39956
|
);
|
|
39957
39957
|
function X0({
|
|
@@ -39961,7 +39961,7 @@ Actual: ` + p3.attribValue
|
|
|
39961
39961
|
View: r = K0,
|
|
39962
39962
|
lastColumnResizable: o = true
|
|
39963
39963
|
} = {}) {
|
|
39964
|
-
const i3 = new
|
|
39964
|
+
const i3 = new bp$2({
|
|
39965
39965
|
key: Ee$1,
|
|
39966
39966
|
state: {
|
|
39967
39967
|
init(s, a) {
|
|
@@ -40175,7 +40175,7 @@ Actual: ` + p3.attribValue
|
|
|
40175
40175
|
function ow({
|
|
40176
40176
|
allowTableNodeSelection: t = false
|
|
40177
40177
|
} = {}) {
|
|
40178
|
-
return new
|
|
40178
|
+
return new bp$2({
|
|
40179
40179
|
key: It$1,
|
|
40180
40180
|
// This piece of state is used to remember when a mouse-drag
|
|
40181
40181
|
// cell-selection is happening, so that it can continue even as
|
|
@@ -40301,7 +40301,7 @@ Actual: ` + p3.attribValue
|
|
|
40301
40301
|
return [{ tag: "table" }];
|
|
40302
40302
|
},
|
|
40303
40303
|
renderDOM({ node: t, htmlAttributes: e }) {
|
|
40304
|
-
const { colgroup: n, tableWidth: r, tableMinWidth: o } =
|
|
40304
|
+
const { colgroup: n, tableWidth: r, tableMinWidth: o } = sd$2(
|
|
40305
40305
|
t,
|
|
40306
40306
|
this.options.cellMinWidth
|
|
40307
40307
|
);
|
|
@@ -40715,8 +40715,8 @@ Actual: ` + p3.attribValue
|
|
|
40715
40715
|
}
|
|
40716
40716
|
const lw = (t = {}) => {
|
|
40717
40717
|
let { editor: e, annotationClass: n } = t;
|
|
40718
|
-
return new
|
|
40719
|
-
key: new
|
|
40718
|
+
return new bp$2({
|
|
40719
|
+
key: new xp$2("fieldAnnotation"),
|
|
40720
40720
|
state: {
|
|
40721
40721
|
init() {
|
|
40722
40722
|
return null;
|
|
@@ -41432,7 +41432,7 @@ Actual: ` + p3.attribValue
|
|
|
41432
41432
|
}
|
|
41433
41433
|
return e;
|
|
41434
41434
|
}
|
|
41435
|
-
const Ao$1 = new
|
|
41435
|
+
const Ao$1 = new xp$2("ImagePlaceholder"), Tw = (t = {}) => new bp$2({
|
|
41436
41436
|
key: Ao$1,
|
|
41437
41437
|
state: {
|
|
41438
41438
|
init() {
|
|
@@ -42274,8 +42274,8 @@ Actual: ` + p3.attribValue
|
|
|
42274
42274
|
});
|
|
42275
42275
|
return B.create(n.doc, [i3]);
|
|
42276
42276
|
};
|
|
42277
|
-
return [new
|
|
42278
|
-
key: new
|
|
42277
|
+
return [new bp$2({
|
|
42278
|
+
key: new xp$2("placeholder"),
|
|
42279
42279
|
state: {
|
|
42280
42280
|
init: (n, r) => t(r),
|
|
42281
42281
|
apply: (n, r, o, i3) => t(i3)
|
|
@@ -44062,10 +44062,10 @@ Actual: ` + p3.attribValue
|
|
|
44062
44062
|
], 42, bk))), 128))
|
|
44063
44063
|
], 544));
|
|
44064
44064
|
}
|
|
44065
|
-
}, Mk = /* @__PURE__ */ yk(Sk, [["__scopeId", "data-v-0a2a8b4e"]]), ql$1 = new
|
|
44065
|
+
}, Mk = /* @__PURE__ */ yk(Sk, [["__scopeId", "data-v-0a2a8b4e"]]), ql$1 = new xp$2("popoverPlugin"), xk = Q$1.create({
|
|
44066
44066
|
name: "popoverPlugin",
|
|
44067
44067
|
addPmPlugins() {
|
|
44068
|
-
return [new
|
|
44068
|
+
return [new bp$2({
|
|
44069
44069
|
key: ql$1,
|
|
44070
44070
|
state: {
|
|
44071
44071
|
init: () => ({}),
|
|
@@ -44193,7 +44193,7 @@ Actual: ` + p3.attribValue
|
|
|
44193
44193
|
addPmPlugins() {
|
|
44194
44194
|
const t = this.editor;
|
|
44195
44195
|
let e = false, n = false, r = false, o = false;
|
|
44196
|
-
return [new
|
|
44196
|
+
return [new bp$2({
|
|
44197
44197
|
key: rn$2,
|
|
44198
44198
|
state: {
|
|
44199
44199
|
isReadyToInit: false,
|
|
@@ -53338,7 +53338,7 @@ ${t}
|
|
|
53338
53338
|
console.warn(`[super-toolbar 🎨] Element not found: ${this.config.selector}`);
|
|
53339
53339
|
return;
|
|
53340
53340
|
}
|
|
53341
|
-
this.app = createApp(_p), this.app.directive("click-outside",
|
|
53341
|
+
this.app = createApp(_p), this.app.directive("click-outside", Ep$1), this.app.config.globalProperties.$toolbar = this, n && (this.toolbar = this.app.mount(n)), this.activeEditor = o.editor || null, this.updateToolbarState();
|
|
53342
53342
|
}
|
|
53343
53343
|
log(...o) {
|
|
53344
53344
|
console.debug("[🎨 super-toolbar]", ...o);
|
|
@@ -68576,7 +68576,7 @@ ${style2}
|
|
|
68576
68576
|
this.config.colors = shuffleArray(this.config.colors);
|
|
68577
68577
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
68578
68578
|
this.colorIndex = 0;
|
|
68579
|
-
this.version = "0.9.
|
|
68579
|
+
this.version = "0.9.34";
|
|
68580
68580
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
68581
68581
|
this.superdocId = config.superdocId || v4();
|
|
68582
68582
|
this.colors = this.config.colors;
|