@harbour-enterprises/superdoc 0.12.8 → 0.12.9

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.
Files changed (29) hide show
  1. package/dist/chunks/{index-CWj8iOm4.es.js → index-BTkgQgI7.es.js} +1 -1
  2. package/dist/chunks/{index-Dw-Q9hD6.cjs → index-C6SLw2ph.cjs} +1 -1
  3. package/dist/chunks/{index-Dnm6LcB6.cjs → index-CbUTRvRk.cjs} +1 -1
  4. package/dist/chunks/{index-CVyuWad2.es.js → index-kWwSELc2.es.js} +2 -2
  5. package/dist/chunks/{super-editor.es--CTmtQpG.es.js → super-editor.es-BI8I7zQw.es.js} +1988 -2008
  6. package/dist/chunks/{super-editor.es-CqRnQGQ9.cjs → super-editor.es-DIWme65_.cjs} +41 -41
  7. package/dist/chunks/{url-NtSPOzqh.es.js → url-C29KYeaj.es.js} +1 -1
  8. package/dist/chunks/{url-BV2RvrTf.cjs → url-DRGmEUtI.cjs} +1 -1
  9. package/dist/chunks/xml-js-CMQ3QRee.cjs +10 -0
  10. package/dist/chunks/{xml-js-BvgqUvJ5.es.js → xml-js-CgHhGhcJ.es.js} +296 -303
  11. package/dist/super-editor/ai-writer.es.js +2 -2
  12. package/dist/super-editor/chunks/{converter-BvoZ3wK4.js → converter-DwU26GOB.js} +269 -289
  13. package/dist/super-editor/chunks/{docx-zipper-BEuRmHhJ.js → docx-zipper-B8X1Ex3_.js} +1 -1
  14. package/dist/super-editor/chunks/{editor-eAstY5lu.js → editor-4XloIer6.js} +3 -3
  15. package/dist/super-editor/chunks/{toolbar-c6F_mTvN.js → toolbar-CjFzVIKb.js} +2 -2
  16. package/dist/super-editor/converter.es.js +1 -1
  17. package/dist/super-editor/docx-zipper.es.js +2 -2
  18. package/dist/super-editor/editor.es.js +3 -3
  19. package/dist/super-editor/file-zipper.es.js +1 -1
  20. package/dist/super-editor/super-editor.es.js +6 -6
  21. package/dist/super-editor/toolbar.es.js +2 -2
  22. package/dist/super-editor.cjs +1 -1
  23. package/dist/super-editor.es.js +1 -1
  24. package/dist/superdoc.cjs +3 -3
  25. package/dist/superdoc.es.js +6 -6
  26. package/dist/superdoc.umd.js +378 -398
  27. package/dist/superdoc.umd.js.map +1 -1
  28. package/package.json +1 -1
  29. package/dist/chunks/xml-js-CCvZbbr7.cjs +0 -10
@@ -7852,7 +7852,7 @@ class Tr {
7852
7852
  return this.excluded.indexOf(e) > -1;
7853
7853
  }
7854
7854
  }
7855
- let _p = class {
7855
+ let Lp = class {
7856
7856
  /**
7857
7857
  Construct a schema from a schema [specification](https://prosemirror.net/docs/ref/#model.SchemaSpec).
7858
7858
  */
@@ -9315,7 +9315,7 @@ function ki(r, e, t, n = t.contentMatch, i = !0) {
9315
9315
  function cf(r, e, t) {
9316
9316
  return (e == 0 || r.canReplace(e, r.childCount)) && (t == r.childCount || r.canReplace(0, t));
9317
9317
  }
9318
- function Mp(r) {
9318
+ function qp(r) {
9319
9319
  let t = r.parent.content.cutByIndex(r.startIndex, r.endIndex);
9320
9320
  for (let n = r.depth; ; --n) {
9321
9321
  let i = r.$from.node(n), s = r.$from.index(n), o = r.$to.indexAfter(n);
@@ -9335,7 +9335,7 @@ function ff(r, e, t) {
9335
9335
  C || i.after(A + 1) < i.end(A) ? (C = !0, g = Q.from(i.node(A).copy(g)), D++) : c++;
9336
9336
  r.step(new Xe(u, c, o, a, new ae(l.append(g), h, D), l.size - h, !0));
9337
9337
  }
9338
- function Up(r, e, t = null, n = r) {
9338
+ function Mp(r, e, t = null, n = r) {
9339
9339
  let i = df(r, e), s = i && mf(n, e);
9340
9340
  return s ? i.map(wo).concat({ type: e, attrs: t }).concat(s.map(wo)) : null;
9341
9341
  }
@@ -9425,7 +9425,7 @@ function wf(r, e, t, n, i) {
9425
9425
  throw new RangeError("Invalid content for node type " + t.name);
9426
9426
  r.step(new Xe(e, e + s.nodeSize, e + 1, e + s.nodeSize - 1, new ae(Q.from(o), 0, 0), 1, !0));
9427
9427
  }
9428
- function jp(r, e, t = 1, n) {
9428
+ function Up(r, e, t = 1, n) {
9429
9429
  let i = r.resolve(e), s = i.depth - t, o = n && n[n.length - 1] || i.parent;
9430
9430
  if (s < 0 || i.parent.type.spec.isolating || !i.parent.canReplace(i.index(), i.parent.childCount) || !o.type.validContent(i.parent.content.cutByIndex(i.index(), i.parent.childCount)))
9431
9431
  return !1;
@@ -9451,7 +9451,7 @@ function yf(r, e, t = 1, n) {
9451
9451
  }
9452
9452
  r.step(new Ie(e, e, new ae(s.append(o), t, t), !0));
9453
9453
  }
9454
- function Hp(r, e) {
9454
+ function jp(r, e) {
9455
9455
  let t = r.resolve(e), n = t.index();
9456
9456
  return Ga(t.nodeBefore, t.nodeAfter) && t.parent.canReplace(n, n + 1);
9457
9457
  }
@@ -9468,7 +9468,7 @@ function bf(r, e) {
9468
9468
  function Ga(r, e) {
9469
9469
  return !!(r && e && !r.isLeaf && bf(r, e));
9470
9470
  }
9471
- function zp(r, e, t = -1) {
9471
+ function Hp(r, e, t = -1) {
9472
9472
  let n = r.resolve(e);
9473
9473
  for (let i = n.depth; ; i--) {
9474
9474
  let s, o, a = n.index(i);
@@ -9520,7 +9520,7 @@ function Af(r, e, t) {
9520
9520
  }
9521
9521
  return null;
9522
9522
  }
9523
- function Vp(r, e, t) {
9523
+ function zp(r, e, t) {
9524
9524
  let n = r.resolve(e);
9525
9525
  if (!t.content.size)
9526
9526
  return e;
@@ -10895,7 +10895,7 @@ function Xa(r, e, t) {
10895
10895
  }
10896
10896
  return t;
10897
10897
  }
10898
- class Gp {
10898
+ class Vp {
10899
10899
  /**
10900
10900
  Create a plugin.
10901
10901
  */
@@ -10913,7 +10913,7 @@ const oi = /* @__PURE__ */ Object.create(null);
10913
10913
  function Ya(r) {
10914
10914
  return r in oi ? r + "$" + ++oi[r] : (oi[r] = 0, r + "$");
10915
10915
  }
10916
- class Wp {
10916
+ class Gp {
10917
10917
  /**
10918
10918
  Create a plugin key.
10919
10919
  */
@@ -10934,7 +10934,7 @@ class Wp {
10934
10934
  return e[this.key];
10935
10935
  }
10936
10936
  }
10937
- const Za = (r) => r.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), Jp = (r) => Za(r), $p = Object.freeze({
10937
+ const Za = (r) => r.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), Wp = (r) => Za(r), Jp = Object.freeze({
10938
10938
  RESOLVED: "resolved",
10939
10939
  NEW: "new",
10940
10940
  ADD: "add",
@@ -10947,7 +10947,7 @@ const Za = (r) => r.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), Jp = (r) =>
10947
10947
  // Tracked changes
10948
10948
  CHANGE_ACCEPTED: "change-accepted",
10949
10949
  CHANGE_REJECTED: "change-rejected"
10950
- }), Kp = {
10950
+ }), $p = {
10951
10951
  mounted(r, e, t) {
10952
10952
  const n = (i) => {
10953
10953
  r.contains(i.target) || e.value(i);
@@ -10958,20 +10958,20 @@ const Za = (r) => r.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), Jp = (r) =>
10958
10958
  document.removeEventListener("click", r.__clickOutsideHandler), delete r.__clickOutsideHandler;
10959
10959
  }
10960
10960
  };
10961
- function Xp(r, e = null, ...t) {
10961
+ function Kp(r, e = null, ...t) {
10962
10962
  return typeof r == "function" ? e ? r.bind(e)(...t) : r(...t) : r;
10963
10963
  }
10964
- function Yp(r = {}) {
10964
+ function Xp(r = {}) {
10965
10965
  return Object.keys(r).length === 0 && r.constructor === Object;
10966
10966
  }
10967
- const Zp = () => typeof navigator < "u" ? /Mac/.test(navigator.platform) : !1, Qp = () => ["iPad Simulator", "iPhone Simulator", "iPod Simulator", "iPad", "iPhone", "iPod"].includes(
10967
+ const Yp = () => typeof navigator < "u" ? /Mac/.test(navigator.platform) : !1, Zp = () => ["iPad Simulator", "iPhone Simulator", "iPod Simulator", "iPad", "iPhone", "iPod"].includes(
10968
10968
  navigator.platform
10969
10969
  ), Pf = (r) => Object.prototype.toString.call(r) === "[object RegExp]";
10970
10970
  function Of(r, e, t = { strict: !0 }) {
10971
10971
  const n = Object.keys(e);
10972
10972
  return n.length ? n.every((i) => t.strict ? e[i] === r[i] : Pf(e[i]) ? e[i].test(r[i]) : e[i] === r[i]) : !0;
10973
10973
  }
10974
- function eh(r, e) {
10974
+ function Qp(r, e) {
10975
10975
  const n = typeof e == "string" ? [e] : e;
10976
10976
  return Object.keys(r).reduce((i, s) => (n.includes(s) || (i[s] = r[s]), i), {});
10977
10977
  }
@@ -10980,7 +10980,7 @@ function qf(r = "0") {
10980
10980
  const e = r.toString() || "0", t = Number.parseFloat(e), i = (e.match(Lf)?.[1] ?? "").toLowerCase();
10981
10981
  return [t, _f.includes(i) ? i : null];
10982
10982
  }
10983
- function th(r = 0, e = 0, t = 0) {
10983
+ function eh(r = 0, e = 0, t = 0) {
10984
10984
  return Math.min(Math.max(r, e), t);
10985
10985
  }
10986
10986
  function It(r) {
@@ -11056,7 +11056,7 @@ const jf = async (r, e) => {
11056
11056
  }
11057
11057
  const i = St.from(n, "base64");
11058
11058
  return i.buffer.slice(i.byteOffset, i.byteOffset + i.byteLength);
11059
- }, rh = (r) => {
11059
+ }, th = (r) => {
11060
11060
  const n = new window.DOMParser().parseFromString(r, "text/xml").querySelectorAll("Default");
11061
11061
  return Array.from(n).map((i) => i.getAttribute("Extension"));
11062
11062
  }, Hf = (r) => (/* @__PURE__ */ new Map([
@@ -11092,7 +11092,7 @@ function zf(r) {
11092
11092
  const Vf = (r) => {
11093
11093
  const e = Number(r).toString(16);
11094
11094
  return e.length === 1 ? "0" + e : e;
11095
- }, Gf = (r) => "#" + r.match(/\d+/g).map(Vf).join(""), nh = (r, e, t = "", n = !1) => {
11095
+ }, Gf = (r) => "#" + r.match(/\d+/g).map(Vf).join(""), rh = (r, e, t = "", n = !1) => {
11096
11096
  let [i, s] = qf(r);
11097
11097
  return Number.isNaN(i) || i === 0 ? {} : t === "atLeast" && i < 1 ? {} : (s = s || e, i += s ? 4 : 0.2, n ? { "line-height": `${i}${s}` } : `line-height: ${i}${s}`);
11098
11098
  }, Wf = (r, e) => {
@@ -13756,25 +13756,25 @@ function qt(r) {
13756
13756
  doc: xd,
13757
13757
  body: yd,
13758
13758
  paragraph: su,
13759
- text: vd,
13759
+ text: Ad,
13760
13760
  bulletList: Fo,
13761
13761
  orderedList: Fo,
13762
- lineBreak: kd,
13763
- table: Nd,
13764
- tableRow: _d,
13765
- tableCell: Md,
13766
- bookmarkStart: Hd,
13767
- fieldAnnotation: Kd,
13768
- tab: Rd,
13762
+ lineBreak: Bd,
13763
+ table: kd,
13764
+ tableRow: Ld,
13765
+ tableCell: qd,
13766
+ bookmarkStart: jd,
13767
+ fieldAnnotation: $d,
13768
+ tab: Id,
13769
13769
  image: lu,
13770
- hardBreak: Xd,
13770
+ hardBreak: Kd,
13771
13771
  commentRangeStart: () => So(r, "Start"),
13772
13772
  commentRangeEnd: () => So(r, "End"),
13773
13773
  commentReference: () => null,
13774
- shapeContainer: Yd,
13775
- shapeTextbox: Zd,
13776
- contentBlock: Qd,
13777
- structuredContent: rm
13774
+ shapeContainer: Xd,
13775
+ shapeTextbox: Yd,
13776
+ contentBlock: Zd,
13777
+ structuredContent: tm
13778
13778
  };
13779
13779
  return t[e] ? t[e](r) : (console.error("No translation function found for node type:", e), null);
13780
13780
  }
@@ -13898,29 +13898,9 @@ function lt(r) {
13898
13898
  const t = [];
13899
13899
  return e.forEach((n) => {
13900
13900
  let i = qt({ ...r, node: n });
13901
- (i?.name || i?.type) !== "w:sdt" && (i = Ad(i)), i instanceof Array ? t.push(...i) : t.push(i);
13901
+ i?.name || i?.type, i instanceof Array ? t.push(...i) : t.push(i);
13902
13902
  }), t.filter((n) => n);
13903
13903
  }
13904
- const Ad = (r) => {
13905
- if (!r) return r;
13906
- const e = r.elements?.some((a) => a.name === "w:r"), t = r.elements?.some((a) => a.name === "w:sdt");
13907
- if (!r.elements?.find((a) => a.name === "w:sdt")?.elements?.find((a) => a.name === "w:sdtPr")?.elements?.some((a) => a.name === "w:alias")) return r;
13908
- let o = r;
13909
- if (e && t) {
13910
- const a = r.elements.filter((l) => l.name === "w:sdt"), u = r.elements.filter((l) => l.name !== "w:sdt");
13911
- o = [
13912
- ...u.filter((l) => l.name === "w:r").every((l) => l.elements.filter((g) => g.name === "w:t")?.every((g) => g.elements[0].text.trim().length > 0)) ? [{
13913
- ...r,
13914
- elements: u
13915
- }] : [],
13916
- {
13917
- name: "w:p",
13918
- elements: a
13919
- }
13920
- ];
13921
- }
13922
- return o;
13923
- };
13924
13904
  function Br(r, e, t) {
13925
13905
  const i = /^\s|\s$/.test(r) ? "preserve" : null, s = i ? { "xml:space": i } : null, o = [], a = kr(e);
13926
13906
  if (o.push({
@@ -13956,14 +13936,14 @@ function Br(r, e, t) {
13956
13936
  }
13957
13937
  return Zt(o, a);
13958
13938
  }
13959
- function vd(r) {
13939
+ function Ad(r) {
13960
13940
  const { node: e } = r, t = [xr, Pi];
13961
- if (e.marks?.some((a) => t.includes(a.type))) return Ed(r);
13962
- if (e.marks?.some((a) => a.type === "link")) return Cd(r);
13941
+ if (e.marks?.some((a) => t.includes(a.type))) return Dd(r);
13942
+ if (e.marks?.some((a) => a.type === "link")) return Ed(r);
13963
13943
  const { text: s, marks: o = [] } = e;
13964
13944
  return Br(s, o, r);
13965
13945
  }
13966
- function Dd(r) {
13946
+ function vd(r) {
13967
13947
  const e = r.find((t) => t.type === Oi);
13968
13948
  if (e)
13969
13949
  return {
@@ -13978,8 +13958,8 @@ function Dd(r) {
13978
13958
  elements: e.attrs.before.map((n) => kr([n])).filter((n) => n !== void 0)
13979
13959
  };
13980
13960
  }
13981
- function Ed(r) {
13982
- const { node: e } = r, t = e.marks, n = [xr, Pi, Oi], i = t.find((c) => n.includes(c.type)), s = i.type === xr, o = Dd(t);
13961
+ function Dd(r) {
13962
+ const { node: e } = r, t = e.marks, n = [xr, Pi, Oi], i = t.find((c) => n.includes(c.type)), s = i.type === xr, o = vd(t);
13983
13963
  e.marks = t.filter((c) => !n.includes(c.type)), o && e.marks.push(o);
13984
13964
  const a = qt({ ...r, node: e });
13985
13965
  if (!s) {
@@ -14017,7 +13997,7 @@ function kr(r = []) {
14017
13997
  return Bo(i);
14018
13998
  }) : Bo(e));
14019
13999
  }
14020
- function Cd(r) {
14000
+ function Ed(r) {
14021
14001
  const { node: e } = r, t = e.marks.find((u) => u.type === "link"), n = t.attrs.href;
14022
14002
  let i = t.attrs.rId;
14023
14003
  i || (i = uu(r, n)), e.marks = e.marks.filter((u) => u.type !== "link");
@@ -14086,9 +14066,9 @@ function To(r, e) {
14086
14066
  return r.relationships.push(n), t;
14087
14067
  }
14088
14068
  function Fo(r) {
14089
- const { type: e } = r.node, t = Bd(r), n = [];
14069
+ const { type: e } = r.node, t = Fd(r), n = [];
14090
14070
  return t.forEach((i) => {
14091
- const { level: s, listType: o, pPrs: a, content: u, attrs: c = {} } = i, g = (i.attrs.numId || i.listId) ?? Sd(r, o), D = Fd(s, g, a);
14071
+ const { level: s, listType: o, pPrs: a, content: u, attrs: c = {} } = i, g = (i.attrs.numId || i.listId) ?? Cd(r, o), D = Td(s, g, a);
14092
14072
  u.forEach((A, C) => {
14093
14073
  const F = Object.assign({}, A);
14094
14074
  F.attrs = {
@@ -14141,8 +14121,8 @@ function Fo(r) {
14141
14121
  });
14142
14122
  }), n;
14143
14123
  }
14144
- function Sd(r, e) {
14145
- const t = Td(r.converter?.numbering?.definitions), n = e === "bullet" ? sd : id, i = t, s = n.attributes["w:abstractNumId"], o = {
14124
+ function Cd(r, e) {
14125
+ const t = Sd(r.converter?.numbering?.definitions), n = e === "bullet" ? sd : id, i = t, s = n.attributes["w:abstractNumId"], o = {
14146
14126
  type: "element",
14147
14127
  name: "w:num",
14148
14128
  attributes: {
@@ -14155,8 +14135,8 @@ function Sd(r, e) {
14155
14135
  };
14156
14136
  return r.converter.numbering.definitions[i] = o, i;
14157
14137
  }
14158
- const Td = (r) => !r || !Object.keys(r).length ? 0 : Math.max(...Object.keys(r).map((t) => parseInt(t, 10))) + 1;
14159
- function Fd(r, e, t = []) {
14138
+ const Sd = (r) => !r || !Object.keys(r).length ? 0 : Math.max(...Object.keys(r).map((t) => parseInt(t, 10))) + 1;
14139
+ function Td(r, e, t = []) {
14160
14140
  return {
14161
14141
  name: "w:pPr",
14162
14142
  type: "element",
@@ -14181,7 +14161,7 @@ function Fd(r, e, t = []) {
14181
14161
  ]
14182
14162
  };
14183
14163
  }
14184
- function Bd({ node: r }) {
14164
+ function Fd({ node: r }) {
14185
14165
  const { content: e, attrs: t = {} } = r, { listId: n, syncId: i } = r.attrs || {}, s = r.attrs["list-style-type"], { attributes: o = {} } = t, a = o?.parentAttributes?.paragraphProperties?.elements?.filter((l) => l.name !== "w:numPr") || [], u = [];
14186
14166
  function c(l, h = 0) {
14187
14167
  !l || !l.length || l.forEach((g) => {
@@ -14202,22 +14182,22 @@ function Bd({ node: r }) {
14202
14182
  }
14203
14183
  return c(e), u;
14204
14184
  }
14205
- function kd(r) {
14185
+ function Bd(r) {
14206
14186
  const e = {}, { lineBreakType: t } = r.node?.attrs || {};
14207
14187
  return t && (e["w:type"] = t), {
14208
14188
  name: "w:br",
14209
14189
  attributes: e
14210
14190
  };
14211
14191
  }
14212
- function Nd(r) {
14213
- r.node = Id(r.node, r);
14214
- const e = lt(r), t = Pd(r.node), n = Ld(r.node, r);
14192
+ function kd(r) {
14193
+ r.node = Nd(r.node, r);
14194
+ const e = lt(r), t = Rd(r.node), n = Od(r.node, r);
14215
14195
  return e.unshift(t), e.unshift(n), {
14216
14196
  name: "w:tbl",
14217
14197
  elements: e
14218
14198
  };
14219
14199
  }
14220
- function Id(r, { editorSchema: e }) {
14200
+ function Nd(r, { editorSchema: e }) {
14221
14201
  const { content: t } = r;
14222
14202
  for (let n = 0; n < t.length; n++) {
14223
14203
  const i = t[n];
@@ -14253,13 +14233,13 @@ function Id(r, { editorSchema: e }) {
14253
14233
  }
14254
14234
  return r;
14255
14235
  }
14256
- function Rd(r) {
14236
+ function Id(r) {
14257
14237
  const { marks: e = [] } = r.node, t = kr(e);
14258
14238
  return Zt({
14259
14239
  name: "w:tab"
14260
14240
  }, t);
14261
14241
  }
14262
- function Pd(r) {
14242
+ function Rd(r) {
14263
14243
  const e = [], { attrs: t } = r, { tableWidth: n, tableWidthType: i, tableStyleId: s, borders: o, tableIndent: a, tableLayout: u, tableCellSpacing: c } = t;
14264
14244
  if (s) {
14265
14245
  const l = {
@@ -14269,7 +14249,7 @@ function Pd(r) {
14269
14249
  e.push(l);
14270
14250
  }
14271
14251
  if (o) {
14272
- const l = Od(r);
14252
+ const l = Pd(r);
14273
14253
  e.push(l);
14274
14254
  }
14275
14255
  if (a) {
@@ -14304,7 +14284,7 @@ function Pd(r) {
14304
14284
  elements: e
14305
14285
  };
14306
14286
  }
14307
- function Od(r) {
14287
+ function Pd(r) {
14308
14288
  const { borders: e } = r.attrs, t = [];
14309
14289
  return e ? (["top", "bottom", "left", "right", "insideH", "insideV"].forEach((i) => {
14310
14290
  const s = e[i];
@@ -14328,7 +14308,7 @@ function Od(r) {
14328
14308
  elements: t
14329
14309
  }) : void 0;
14330
14310
  }
14331
- function Ld(r, e) {
14311
+ function Od(r, e) {
14332
14312
  const { editorSchema: t } = e;
14333
14313
  let n = [];
14334
14314
  try {
@@ -14351,14 +14331,14 @@ function Ld(r, e) {
14351
14331
  elements: i
14352
14332
  };
14353
14333
  }
14354
- function _d(r) {
14355
- const e = lt(r), t = qd(r.node);
14334
+ function Ld(r) {
14335
+ const e = lt(r), t = _d(r.node);
14356
14336
  return t.elements.length && e.unshift(t), {
14357
14337
  name: "w:tr",
14358
14338
  elements: e
14359
14339
  };
14360
14340
  }
14361
- function qd(r) {
14341
+ function _d(r) {
14362
14342
  const { attrs: e } = r, t = [], { rowHeight: n, rowHeightType: i } = e;
14363
14343
  if (n) {
14364
14344
  const s = { "w:val": Te(n) };
@@ -14374,17 +14354,17 @@ function qd(r) {
14374
14354
  elements: t
14375
14355
  };
14376
14356
  }
14377
- function Md(r) {
14357
+ function qd(r) {
14378
14358
  const e = lt({
14379
14359
  ...r,
14380
14360
  tableCell: r.node
14381
- }), t = Ud(r.node);
14361
+ }), t = Md(r.node);
14382
14362
  return e.unshift(t), {
14383
14363
  name: "w:tc",
14384
14364
  elements: e
14385
14365
  };
14386
14366
  }
14387
- function Ud(r) {
14367
+ function Md(r) {
14388
14368
  const e = [], { attrs: t } = r, { colwidth: n = [], cellWidthType: i = "dxa", background: s = {}, colspan: o, rowspan: a, widthUnit: u } = t, c = n.reduce((C, F) => C + F, 0), l = {
14389
14369
  name: "w:tcW",
14390
14370
  attributes: { "w:w": u === "px" ? Te(c) : It(c), "w:type": i }
@@ -14408,7 +14388,7 @@ function Ud(r) {
14408
14388
  if (g) {
14409
14389
  const C = {
14410
14390
  name: "w:tcMar",
14411
- elements: jd(g)
14391
+ elements: Ud(g)
14412
14392
  };
14413
14393
  e.push(C);
14414
14394
  }
@@ -14460,11 +14440,11 @@ function Ud(r) {
14460
14440
  elements: e
14461
14441
  };
14462
14442
  }
14463
- function jd(r) {
14443
+ function Ud(r) {
14464
14444
  const e = [], { top: t, right: n, bottom: i, left: s } = r;
14465
14445
  return t != null && e.push({ name: "w:top", attributes: { "w:w": Te(t) } }), n != null && e.push({ name: "w:right", attributes: { "w:w": Te(n) } }), i != null && e.push({ name: "w:bottom", attributes: { "w:w": Te(i) } }), s != null && e.push({ name: "w:left", attributes: { "w:w": Te(s) } }), e;
14466
14446
  }
14467
- function Hd(r) {
14447
+ function jd(r) {
14468
14448
  const e = {
14469
14449
  name: "w:bookmarkStart",
14470
14450
  attributes: {
@@ -14521,7 +14501,7 @@ function Bo(r) {
14521
14501
  }
14522
14502
  return t;
14523
14503
  }
14524
- function zd(r) {
14504
+ function Hd(r) {
14525
14505
  if (!r) return {};
14526
14506
  const e = r.split(";")[0].split("/")[1];
14527
14507
  if (!r || e !== "png")
@@ -14535,7 +14515,7 @@ function zd(r) {
14535
14515
  originalHeight: i.getInt32(20)
14536
14516
  };
14537
14517
  }
14538
- function Vd(r, e, t, n) {
14518
+ function zd(r, e, t, n) {
14539
14519
  let i = r, s = e, o = Math.min(t / r, n / e);
14540
14520
  return i = Math.round(i * o), s = Math.round(s * o), { scaledWidth: i, scaledHeight: s };
14541
14521
  }
@@ -14545,20 +14525,20 @@ function lu(r, e) {
14545
14525
  tableCell: i
14546
14526
  } = r;
14547
14527
  let s = t.rId;
14548
- const o = t.src || t.imageSrc, { originalWidth: a, originalHeight: u } = zd(o);
14528
+ const o = t.src || t.imageSrc, { originalWidth: a, originalHeight: u } = Hd(o);
14549
14529
  let c = t.size ? {
14550
14530
  w: mt(t.size.width),
14551
14531
  h: mt(t.size.height)
14552
14532
  } : e;
14553
14533
  if (a && u) {
14554
- const F = Me(c.w), w = Me(c.h), { scaledWidth: B, scaledHeight: R } = Vd(a, u, F, w);
14534
+ const F = Me(c.w), w = Me(c.h), { scaledWidth: B, scaledHeight: R } = zd(a, u, F, w);
14555
14535
  c = {
14556
14536
  w: mt(B),
14557
14537
  h: mt(R)
14558
14538
  };
14559
14539
  }
14560
14540
  if (i) {
14561
- const F = i.attrs.colwidth.reduce((N, M) => N + M, 0), w = i.attrs.cellMargins?.left || 8, B = i.attrs.cellMargins?.right || 8, R = mt(F - (w + B)), { width: v, height: k } = em(c.w, c.h, R);
14541
+ const F = i.attrs.colwidth.reduce((N, M) => N + M, 0), w = i.attrs.cellMargins?.left || 8, B = i.attrs.cellMargins?.right || 8, R = mt(F - (w + B)), { width: v, height: k } = Qd(c.w, c.h, R);
14562
14542
  v && k && (c = { w: v, h: k });
14563
14543
  }
14564
14544
  if (r.node.type === "image" && !s) {
@@ -14799,13 +14779,13 @@ function cu(r) {
14799
14779
  } = r, n = fu(e);
14800
14780
  return Br(e.displayLabel, [...t, ...n], r);
14801
14781
  }
14802
- function Gd(r) {
14782
+ function Vd(r) {
14803
14783
  const {
14804
14784
  node: { attrs: e = {}, marks: t = [] }
14805
14785
  } = r, n = Pc.decode(e.displayLabel);
14806
14786
  return Br(n, t, r);
14807
14787
  }
14808
- function Wd(r) {
14788
+ function Gd(r) {
14809
14789
  const {
14810
14790
  node: { attrs: e = {}, marks: t = [] },
14811
14791
  editorSchema: n
@@ -14813,7 +14793,7 @@ function Wd(r) {
14813
14793
  let u = Ct.create({
14814
14794
  doc: yr.fromSchema(n).parse(s)
14815
14795
  });
14816
- a.length && (u = tm(u, a));
14796
+ a.length && (u = em(u, a));
14817
14797
  const c = u.doc.toJSON();
14818
14798
  return {
14819
14799
  name: "htmlAnnotation",
@@ -14826,7 +14806,7 @@ function Wd(r) {
14826
14806
  function ko(r, e) {
14827
14807
  return lu(r, e);
14828
14808
  }
14829
- function Jd(r) {
14809
+ function Wd(r) {
14830
14810
  const {
14831
14811
  node: { attrs: e = {}, marks: t = [] }
14832
14812
  } = r, n = uu(r, e.linkUrl), i = Br(e.linkUrl, t, r), s = au(i);
@@ -14840,7 +14820,7 @@ function Jd(r) {
14840
14820
  elements: [s]
14841
14821
  };
14842
14822
  }
14843
- function $d(r) {
14823
+ function Jd(r) {
14844
14824
  const e = {
14845
14825
  w: 4286250,
14846
14826
  h: 4286250
@@ -14852,9 +14832,9 @@ function $d(r) {
14852
14832
  text: cu,
14853
14833
  image: (i) => ko(i, e),
14854
14834
  signature: (i) => ko(i, t),
14855
- checkbox: Gd,
14856
- html: Wd,
14857
- link: Jd
14835
+ checkbox: Vd,
14836
+ html: Gd,
14837
+ link: Wd
14858
14838
  }[r];
14859
14839
  }
14860
14840
  const fu = (r = {}) => {
@@ -14869,8 +14849,8 @@ const fu = (r = {}) => {
14869
14849
  } = r, u = [];
14870
14850
  return e && u.push({ type: "fontFamily", attrs: { fontFamily: e } }), t && u.push({ type: "fontSize", attrs: { fontSize: t } }), n && u.push({ type: "bold", attrs: {} }), i && u.push({ type: "underline", attrs: {} }), s && u.push({ type: "italic", attrs: {} }), o && u.push({ type: "color", attrs: { color: o } }), a && u.push({ type: "highlight", attrs: { color: a } }), u;
14871
14851
  };
14872
- function Kd(r) {
14873
- const { node: e, isFinalDoc: t } = r, { attrs: n = {} } = e, i = $d(n.type);
14852
+ function $d(r) {
14853
+ const { node: e, isFinalDoc: t } = r, { attrs: n = {} } = e, i = Jd(n.type);
14874
14854
  if (!i) return {};
14875
14855
  let s, o;
14876
14856
  if (t)
@@ -14950,7 +14930,7 @@ function Kd(r) {
14950
14930
  ]
14951
14931
  };
14952
14932
  }
14953
- function Xd(r) {
14933
+ function Kd(r) {
14954
14934
  const { node: e = {} } = r, { attrs: t = {} } = e, { pageBreakSource: n } = t;
14955
14935
  return n === "sectPr" ? null : {
14956
14936
  name: "w:r",
@@ -14961,7 +14941,7 @@ function Xd(r) {
14961
14941
  }]
14962
14942
  };
14963
14943
  }
14964
- function Yd(r) {
14944
+ function Xd(r) {
14965
14945
  const { node: e } = r, t = lt(r), n = {
14966
14946
  name: "v:shape",
14967
14947
  attributes: {
@@ -14987,7 +14967,7 @@ function Yd(r) {
14987
14967
  elements: [Zt(i)]
14988
14968
  };
14989
14969
  }
14990
- function Zd(r) {
14970
+ function Yd(r) {
14991
14971
  const { node: e } = r, n = {
14992
14972
  name: "w:txbxContent",
14993
14973
  elements: lt(r)
@@ -15000,7 +14980,7 @@ function Zd(r) {
15000
14980
  elements: [n]
15001
14981
  };
15002
14982
  }
15003
- function Qd(r) {
14983
+ function Zd(r) {
15004
14984
  const { node: e } = r, { drawingContent: t } = e.attrs, n = {
15005
14985
  name: "w:drawing",
15006
14986
  elements: [
@@ -15067,14 +15047,14 @@ it = new WeakSet(), du = function(e, t = falase) {
15067
15047
  }
15068
15048
  return a || u.push(`</${n}>`), u;
15069
15049
  };
15070
- function em(r, e, t) {
15050
+ function Qd(r, e, t) {
15071
15051
  if (r > t) {
15072
15052
  let n = t / r, i = Math.round(e * n);
15073
15053
  return { width: t, height: i };
15074
15054
  }
15075
15055
  return { width: r, height: e };
15076
15056
  }
15077
- function tm(r, e) {
15057
+ function em(r, e) {
15078
15058
  const { tr: t, doc: n, schema: i } = r, s = ["fontFamily", "fontSize", "highlight"];
15079
15059
  if (!e.some((h) => s.includes(h.type)))
15080
15060
  return r;
@@ -15096,7 +15076,7 @@ function tm(r, e) {
15096
15076
  }));
15097
15077
  }), r.apply(t);
15098
15078
  }
15099
- function rm(r) {
15079
+ function tm(r) {
15100
15080
  const { node: e } = r, { attrs: t = {} } = e, i = [
15101
15081
  {
15102
15082
  name: "w:sdtContent",
@@ -15108,21 +15088,21 @@ function rm(r) {
15108
15088
  elements: i
15109
15089
  };
15110
15090
  }
15111
- const nm = '<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>', im = (r) => JSON.parse(ba.xml2json(r, null, 2)), sm = (r, e = nm) => r["word/document.xml"] || im(e), om = (r) => {
15091
+ const rm = '<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>', nm = (r) => JSON.parse(ba.xml2json(r, null, 2)), im = (r, e = rm) => r["word/document.xml"] || nm(e), sm = (r) => {
15112
15092
  const { nodes: e } = r;
15113
15093
  if (e.length === 0)
15114
15094
  return { nodes: [], consumed: 0 };
15115
15095
  const t = e[0];
15116
15096
  switch (t.name) {
15117
15097
  case "w:tbl":
15118
- return { nodes: [um(t, r)], consumed: 1 };
15098
+ return { nodes: [am(t, r)], consumed: 1 };
15119
15099
  }
15120
15100
  return { nodes: [], consumed: 0 };
15121
- }, am = {
15101
+ }, om = {
15122
15102
  handlerName: "tableNodeHandler",
15123
- handler: om
15103
+ handler: sm
15124
15104
  };
15125
- function um(r, e) {
15105
+ function am(r, e) {
15126
15106
  const { docx: t, nodeListHandler: n } = e, i = r.elements.find((k) => k.name === "w:tblPr"), o = i.elements.find((k) => k.name === "w:tblBorders")?.elements || [], { borders: a, rowBorders: u } = pu(o), c = i.elements.find((k) => k.name === "w:tblStyle"), h = { tableStyleId: c?.attributes["w:val"] }, g = i?.elements.find((k) => k.name === "w:tblInd");
15127
15107
  if (g) {
15128
15108
  const { "w:w": k, "w:type": N } = g.attributes;
@@ -15147,7 +15127,7 @@ function um(r, e) {
15147
15127
  h.borders = B;
15148
15128
  const v = [];
15149
15129
  return w.forEach((k) => {
15150
- const N = fm(k, r, R, c, e);
15130
+ const N = cm(k, r, R, c, e);
15151
15131
  N.content?.length && v.push(N);
15152
15132
  }), {
15153
15133
  type: "table",
@@ -15155,15 +15135,15 @@ function um(r, e) {
15155
15135
  attrs: h
15156
15136
  };
15157
15137
  }
15158
- function lm(r, e, t, n, i = null, s, o, a) {
15159
- const { docx: u, nodeListHandler: c } = o, l = r.elements.find((oe) => oe.name === "w:tcPr"), h = l?.elements?.find((oe) => oe.name === "w:tcBorders"), g = cm(h, n), D = hu(t), A = l?.elements?.find((oe) => oe.name === "w:tcW");
15138
+ function um(r, e, t, n, i = null, s, o, a) {
15139
+ const { docx: u, nodeListHandler: c } = o, l = r.elements.find((oe) => oe.name === "w:tcPr"), h = l?.elements?.find((oe) => oe.name === "w:tcBorders"), g = lm(h, n), D = hu(t), A = l?.elements?.find((oe) => oe.name === "w:tcW");
15160
15140
  let C = A ? be(A.attributes["w:w"]) : null;
15161
15141
  const F = A?.attributes["w:type"];
15162
15142
  !C && i && (C = i);
15163
15143
  const w = Io(r), { attributes: B } = w || {}, v = {
15164
15144
  color: l?.elements?.find((oe) => oe.name === "w:shd")?.attributes["w:fill"]
15165
15145
  }, N = l?.elements?.find((oe) => oe.name === "w:gridSpan")?.attributes["w:val"], M = l?.elements?.find((oe) => oe.name === "w:tcMar"), E = l?.elements?.find((oe) => oe.name === "w:vAlign")?.attributes["w:val"] || "top", J = {}, ee = mu(s, u) || {};
15166
- J.cellMargins = dm(M, ee);
15146
+ J.cellMargins = fm(M, ee);
15167
15147
  const { fontSize: Z, fonts: fe = {} } = ee, de = fe.ascii;
15168
15148
  if (C) {
15169
15149
  J.colwidth = [C], J.widthUnit = "px";
@@ -15209,7 +15189,7 @@ const Io = (r) => r.elements.find((n) => n.name === "w:tcPr")?.elements?.find((n
15209
15189
  return Object.keys(i) ? (i.val = "none", i) : null;
15210
15190
  }
15211
15191
  return null;
15212
- }, cm = (r, e) => {
15192
+ }, lm = (r, e) => {
15213
15193
  if (!r) return null;
15214
15194
  const t = {}, n = or(r, "bottom", e);
15215
15195
  n && (t.bottom = n);
@@ -15277,7 +15257,7 @@ function pu(r) {
15277
15257
  rowBorders: t
15278
15258
  };
15279
15259
  }
15280
- function fm(r, e, t, n, i) {
15260
+ function cm(r, e, t, n, i) {
15281
15261
  const s = {}, a = r.elements.find((A) => A.name === "w:trPr")?.elements?.find((A) => A.name === "w:trHeight"), u = a?.attributes["w:val"];
15282
15262
  a?.attributes["w:hRule"];
15283
15263
  const c = {};
@@ -15287,12 +15267,12 @@ function fm(r, e, t, n, i) {
15287
15267
  type: "tableRow",
15288
15268
  content: h?.map((A, C) => {
15289
15269
  const F = h.length > 1 ? l[C] : null;
15290
- return lm(A, r, e, c, F, n, i, C);
15270
+ return um(A, r, e, c, F, n, i, C);
15291
15271
  }) || [],
15292
15272
  attrs: s
15293
15273
  };
15294
15274
  }
15295
- const dm = (r, e) => {
15275
+ const fm = (r, e) => {
15296
15276
  const t = r?.elements?.find((F) => F.name === "w:left"), n = r?.elements?.find((F) => F.name === "w:right"), i = r?.elements?.find((F) => F.name === "w:top"), s = r?.elements?.find((F) => F.name === "w:bottom"), o = t?.attributes["w:w"], a = n?.attributes["w:w"], u = i?.attributes["w:w"], c = s?.attributes["w:w"], { cellMargins: l = {} } = e, {
15297
15277
  marginLeft: h,
15298
15278
  marginRight: g,
@@ -15305,7 +15285,7 @@ const dm = (r, e) => {
15305
15285
  top: be(u ?? D),
15306
15286
  bottom: be(c ?? A)
15307
15287
  };
15308
- }, hu = (r) => r.elements.find((t) => t.name === "w:tblGrid")?.elements?.flatMap((t) => t.name !== "w:gridCol" ? [] : be(t.attributes["w:w"])) || [], mm = (r) => {
15288
+ }, hu = (r) => r.elements.find((t) => t.name === "w:tblGrid")?.elements?.flatMap((t) => t.name !== "w:gridCol" ? [] : be(t.attributes["w:w"])) || [], dm = (r) => {
15309
15289
  const { nodes: e, filename: t } = r, n = ["w:drawing", "w:p"];
15310
15290
  if (e.length === 0 || !n.includes(e[0].name))
15311
15291
  return { nodes: [], consumed: 0 };
@@ -15329,7 +15309,7 @@ function Ro(r, e, t) {
15329
15309
  height: Me(o.attributes?.cy)
15330
15310
  }, c = r.elements.find((q) => q.name === "a:graphic").elements.find((q) => q.name === "a:graphicData"), { uri: l } = c?.attributes;
15331
15311
  if (l && l === "http://schemas.microsoft.com/office/word/2010/wordprocessingShape")
15332
- return pm(t, r, c);
15312
+ return mm(t, r, c);
15333
15313
  const g = c.elements.find((q) => q.name === "pic:pic");
15334
15314
  if (!g || !g.elements) return null;
15335
15315
  const A = g.elements.find((q) => q.name === "pic:blipFill").elements.find((q) => q.name === "a:blip"), C = r.elements.find((q) => q.name === "wp:positionH"), F = C?.elements.find((q) => q.name === "wp:posOffset"), w = Me(F?.elements[0]?.text), B = C?.attributes.relativeFrom, R = C?.elements.find((q) => q.name === "wp:align")?.elements[0]?.text, v = r.elements.find((q) => q.name === "wp:positionV"), k = v?.elements.find((q) => q.name === "wp:posOffset"), N = Me(k?.elements[0]?.text), M = v?.attributes.relativeFrom, _ = v?.elements.find((q) => q.name === "wp:align")?.elements[0]?.text, E = r.elements.find((q) => q.name === "wp:simplePos"), J = r.elements.find((q) => q.name === "wp:wrapSquare"), ee = r.elements.find((q) => q.name === "wp:wrapTopAndBottom"), Z = r.elements.find((q) => q.name === "wp:docPr");
@@ -15380,12 +15360,12 @@ function Ro(r, e, t) {
15380
15360
  }
15381
15361
  };
15382
15362
  }
15383
- const pm = (r, e, t) => {
15363
+ const mm = (r, e, t) => {
15384
15364
  const n = t.elements.find((l) => l.name === "wps:wsp"), s = n.elements.find((l) => l.name === "wps:txbx")?.elements?.find((l) => l.name === "w:txbxContent");
15385
15365
  e.elements.find((l) => l.name === "wp:docPr");
15386
15366
  const o = n.elements.find((l) => l.name === "wps:spPr"), a = o?.elements.find((l) => l.name === "a:prstGeom");
15387
15367
  if (a && a.attributes.prst === "rect")
15388
- return hm(r, o);
15368
+ return pm(r, o);
15389
15369
  if (!s)
15390
15370
  return null;
15391
15371
  const { nodeListHandler: u } = r;
@@ -15394,7 +15374,7 @@ const pm = (r, e, t) => {
15394
15374
  node: s.elements[0],
15395
15375
  nodes: s.elements
15396
15376
  })[0];
15397
- }, hm = (r, e) => {
15377
+ }, pm = (r, e) => {
15398
15378
  const t = {}, [n] = r.nodes;
15399
15379
  n?.name === "w:drawing" && (t.drawingContent = n);
15400
15380
  const i = e.elements.find((l) => l.name === "a:xfrm"), s = i.elements.find((l) => l.name === "a:off"), o = i.elements.find((l) => l.name === "a:ext");
@@ -15411,9 +15391,9 @@ const pm = (r, e, t) => {
15411
15391
  type: "contentBlock",
15412
15392
  attrs: t
15413
15393
  };
15414
- }, gm = {
15394
+ }, hm = {
15415
15395
  handlerName: "drawingNodeHandler",
15416
- handler: mm
15396
+ handler: dm
15417
15397
  };
15418
15398
  function Rt(r, e = [], t = null) {
15419
15399
  const n = [], i = /* @__PURE__ */ new Set();
@@ -15438,7 +15418,7 @@ function Rt(r, e = [], t = null) {
15438
15418
  const { attributes: u = {} } = s, c = { type: a.type };
15439
15419
  if (!(u["w:val"] == "0" || u["w:val"] === "none")) {
15440
15420
  if (a.mark && (c.type = a.mark), Object.keys(u).length) {
15441
- const l = ym(a.type, u, t);
15421
+ const l = wm(a.type, u, t);
15442
15422
  if (l == null) return;
15443
15423
  c.attrs = {}, c.attrs[a.property] = l;
15444
15424
  }
@@ -15447,7 +15427,7 @@ function Rt(r, e = [], t = null) {
15447
15427
  });
15448
15428
  }), wi(n);
15449
15429
  }
15450
- function wm(r, e) {
15430
+ function gm(r, e) {
15451
15431
  const t = r.elements?.find((o) => o.name === "w:rPrChange");
15452
15432
  if (!t)
15453
15433
  return [];
@@ -15468,25 +15448,25 @@ function wi(r) {
15468
15448
  });
15469
15449
  }), [...t, { type: "textStyle", attrs: n }];
15470
15450
  }
15471
- function ym(r, e, t) {
15451
+ function wm(r, e, t) {
15472
15452
  r === "tabs" && (r = "textIndent");
15473
15453
  const n = {
15474
15454
  color: () => `#${e["w:val"]}`,
15475
15455
  fontSize: () => `${e["w:val"] / 2}pt`,
15476
- textIndent: () => xm(e),
15477
- fontFamily: () => bm(e, t),
15478
- lineHeight: () => Am(e),
15456
+ textIndent: () => bm(e),
15457
+ fontFamily: () => ym(e, t),
15458
+ lineHeight: () => xm(e),
15479
15459
  textAlign: () => e["w:val"],
15480
15460
  link: () => e.href,
15481
15461
  underline: () => e["w:val"],
15482
15462
  bold: () => e?.["w:val"] || null,
15483
15463
  italic: () => e?.["w:val"] || null,
15484
- highlight: () => vm(e)
15464
+ highlight: () => Am(e)
15485
15465
  };
15486
15466
  if (r in n || console.debug("❗️❗️ No value mapper for:", r, "Attributes:", e), r in n)
15487
15467
  return n[r], n[r]();
15488
15468
  }
15489
- function bm(r, e) {
15469
+ function ym(r, e) {
15490
15470
  const t = r["w:ascii"], n = r["w:asciiTheme"];
15491
15471
  if (!e || !n) return t;
15492
15472
  const i = e["word/theme/theme1.xml"];
@@ -15494,21 +15474,21 @@ function bm(r, e) {
15494
15474
  const { elements: s } = i, { elements: o } = s[0];
15495
15475
  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;
15496
15476
  }
15497
- function xm(r) {
15477
+ function bm(r) {
15498
15478
  let e = r["w:left"];
15499
15479
  return e ? `${qe(e)}in` : null;
15500
15480
  }
15501
- function Am(r) {
15481
+ function xm(r) {
15502
15482
  const e = r["w:line"], t = r["w:lineRule"];
15503
15483
  return !e || e === "0" ? null : t === "exact" ? `${tu(e)}pt` : `${Ii(e)}`;
15504
15484
  }
15505
- function vm(r) {
15485
+ function Am(r) {
15506
15486
  const e = r["w:fill"];
15507
15487
  return e && e !== "auto" ? `#${e}` : zf(r?.["w:val"]) ? `#${r["w:val"]}` : Hf(r?.["w:val"]) || null;
15508
15488
  }
15509
15489
  function xt(r, e) {
15510
- const t = [], n = [], { attributes: i = {}, elements: s = [] } = r, { nodes: o, paragraphProperties: a = {}, runProperties: u = {} } = Dm(s);
15511
- return s.find((l) => l.name === "w:r") && (a.elements = a?.elements?.filter((l) => l.name !== "w:rPr")), u && u?.elements?.length && t.push(...Rt(u, n)), a && a.elements?.length && t.push(...Rt(a, n)), t.push(...wm(u, t)), a && a.elements?.length && (i.paragraphProperties = a), t && r.name === "w:p" && t.forEach((l) => {
15490
+ const t = [], n = [], { attributes: i = {}, elements: s = [] } = r, { nodes: o, paragraphProperties: a = {}, runProperties: u = {} } = vm(s);
15491
+ return s.find((l) => l.name === "w:r") && (a.elements = a?.elements?.filter((l) => l.name !== "w:rPr")), u && u?.elements?.length && t.push(...Rt(u, n)), a && a.elements?.length && t.push(...Rt(a, n)), t.push(...gm(u, t)), a && a.elements?.length && (i.paragraphProperties = a), t && r.name === "w:p" && t.forEach((l) => {
15512
15492
  const h = Object.keys(l.attrs ?? {})[0];
15513
15493
  if (h) {
15514
15494
  const g = l.attrs[h];
@@ -15516,7 +15496,7 @@ function xt(r, e) {
15516
15496
  }
15517
15497
  }), { elements: o, attributes: i, marks: t, unknownMarks: n };
15518
15498
  }
15519
- function Dm(r) {
15499
+ function vm(r) {
15520
15500
  const e = r.find((s) => s.name === "w:pPr"), t = r.find((s) => s.name === "w:rPr"), n = r.find((s) => s.name === "w:sectPr");
15521
15501
  return {
15522
15502
  nodes: r.filter((s) => s.name !== "w:pPr" && s.name !== "w:rPr" && s.name !== "w:sectPr"),
@@ -15528,11 +15508,11 @@ function Dm(r) {
15528
15508
  function fr(r) {
15529
15509
  return Ot.allowedElements[r.name || r.type];
15530
15510
  }
15531
- const Em = (r) => !!Ot.propertyTypes[r.name || r.type];
15511
+ const Dm = (r) => !!Ot.propertyTypes[r.name || r.type];
15532
15512
  function gu(r) {
15533
15513
  return r.filter((n) => n.name === "w:r").some((n) => n.elements.some((i) => i.name === "w:t"));
15534
15514
  }
15535
- const Cm = (r) => {
15515
+ const Em = (r) => {
15536
15516
  const { nodes: e, nodeListHandler: t } = r;
15537
15517
  if (e.length === 0 || !(e[0].name === "w:del" || e[0].name === "w:ins" || e[0].name === "w:sdt"))
15538
15518
  return { nodes: [], consumed: 0 };
@@ -15555,10 +15535,10 @@ const Cm = (r) => {
15555
15535
  return u.forEach((h) => {
15556
15536
  h.marks === void 0 && (h.marks = []), h.marks.push({ type: c, attrs: l });
15557
15537
  }), { nodes: u, consumed: 1 };
15558
- }, Sm = {
15538
+ }, Cm = {
15559
15539
  handlerName: "trackChangeNodeHandler",
15560
- handler: Cm
15561
- }, Tm = (r) => {
15540
+ handler: Em
15541
+ }, Sm = (r) => {
15562
15542
  const { nodes: e, docx: t, nodeListHandler: n } = r;
15563
15543
  if (e.length === 0 || e[0].name !== "w:hyperlink")
15564
15544
  return { nodes: [], consumed: 0 };
@@ -15577,16 +15557,16 @@ const Cm = (r) => {
15577
15557
  }
15578
15558
  }
15579
15559
  return { nodes: n.handler({ ...r, nodes: A }), consumed: 1 };
15580
- }, Fm = {
15560
+ }, Tm = {
15581
15561
  handlerName: "hyperlinkNodeHandler",
15582
- handler: Tm
15583
- }, Bm = (r) => {
15562
+ handler: Sm
15563
+ }, Fm = (r) => {
15584
15564
  const { nodes: e, nodeListHandler: t, parentStyleId: n, docx: i } = r;
15585
15565
  if (e.length === 0 || e[0].name !== "w:r")
15586
15566
  return { nodes: [], consumed: 0 };
15587
15567
  const s = e[0], o = { ...r, nodes: s.elements };
15588
15568
  let a = t.handler(o)?.filter((l) => l) || [];
15589
- const u = s.elements?.some((l) => l.name === "w:rPr"), c = km(i, n);
15569
+ const u = s.elements?.some((l) => l.name === "w:rPr"), c = Bm(i, n);
15590
15570
  if (u) {
15591
15571
  const { marks: l = [], attributes: h = {} } = xt(s), g = l.find((C) => C.type === "textStyle"), D = g && Object.keys(g.attrs).length > 0;
15592
15572
  c.marks && !D && l.push(...c.marks), s.marks && l.push(...s.marks);
@@ -15597,16 +15577,16 @@ const Cm = (r) => {
15597
15577
  });
15598
15578
  } else c.marks && (a = a.map((l) => ({ ...l, marks: wi(c.marks) })));
15599
15579
  return { nodes: a, consumed: 1 };
15600
- }, km = (r, e) => {
15580
+ }, Bm = (r, e) => {
15601
15581
  const t = r?.["word/styles.xml"];
15602
15582
  if (!t)
15603
15583
  return {};
15604
15584
  const i = t.elements[0].elements.filter((s) => s.name === "w:style").find((s) => s.attributes["w:styleId"] === e) || {};
15605
15585
  return i ? xt(i) : {};
15606
- }, Nm = {
15586
+ }, km = {
15607
15587
  handlerName: "runNodeHandler",
15608
- handler: Bm
15609
- }, Im = (r) => {
15588
+ handler: Fm
15589
+ }, Nm = (r) => {
15610
15590
  const { nodes: e, insideTrackChange: t } = r;
15611
15591
  if (e.length === 0 || !(e[0].name === "w:t" || t && e[0].name === "w:delText"))
15612
15592
  return { nodes: [], consumed: 0 };
@@ -15627,29 +15607,29 @@ const Cm = (r) => {
15627
15607
  ],
15628
15608
  consumed: 1
15629
15609
  };
15630
- }, Rm = {
15610
+ }, Im = {
15631
15611
  handlerName: "textNodeHandler",
15632
- handler: Im
15612
+ handler: Nm
15633
15613
  }, wu = (r) => {
15634
15614
  if (!r || !Array.isArray(r))
15635
15615
  return r;
15636
15616
  let e = [], t = null;
15637
15617
  for (let n of r)
15638
- n.type === "text" ? t && Pm(t, n) ? t = {
15618
+ n.type === "text" ? t && Rm(t, n) ? t = {
15639
15619
  ...t,
15640
15620
  text: t.text += n.text
15641
15621
  } : (t && e.push(t), t = { ...n }) : (t && (e.push(t), t = null), e.push(n));
15642
15622
  return t && e.push(t), e;
15643
- }, Pm = (r, e) => {
15623
+ }, Rm = (r, e) => {
15644
15624
  if (!r || !e) return !1;
15645
15625
  let t = r.marks ?? [], n = e.marks ?? [];
15646
15626
  if (t.length !== n.length)
15647
15627
  return !1;
15648
15628
  for (let i = 0; i < t.length; i++)
15649
- if (t[i].attrs || (t[i].attrs = {}), n[i].attrs || (n[i].attrs = {}), t[i].type !== n[i].type || Object.keys(t[i].attrs).length !== Object.keys(n[i].attrs).length || !Om(t[i].attrs, n[i].attrs))
15629
+ if (t[i].attrs || (t[i].attrs = {}), n[i].attrs || (n[i].attrs = {}), t[i].type !== n[i].type || Object.keys(t[i].attrs).length !== Object.keys(n[i].attrs).length || !Pm(t[i].attrs, n[i].attrs))
15650
15630
  return !1;
15651
15631
  return !0;
15652
- }, Om = (r = {}, e = {}) => Of(r, e), Lm = (r) => {
15632
+ }, Pm = (r = {}, e = {}) => Of(r, e), Om = (r) => {
15653
15633
  const { nodes: e, lists: t, docx: n } = r;
15654
15634
  if (e.length === 0 || e[0].name !== "w:p")
15655
15635
  return { nodes: [], consumed: 0 };
@@ -15668,9 +15648,9 @@ const Cm = (r) => {
15668
15648
  };
15669
15649
  } else
15670
15650
  return { nodes: [], consumed: 0, lists: t };
15671
- }, _m = {
15651
+ }, Lm = {
15672
15652
  handlerName: "listHandler",
15673
- handler: Lm
15653
+ handler: Om
15674
15654
  };
15675
15655
  function yu({
15676
15656
  listItems: r,
@@ -15709,9 +15689,9 @@ function yu({
15709
15689
  lvlText: ne,
15710
15690
  lvlJc: se,
15711
15691
  numId: L
15712
- } = jm(N, n, u);
15692
+ } = Um(N, n, u);
15713
15693
  D = oe;
15714
- const z = parseInt(ie), q = i === z && L === s, K = Um({
15694
+ const z = parseInt(ie), q = i === z && L === s, K = Mm({
15715
15695
  firstListId: L,
15716
15696
  secondListId: s,
15717
15697
  level: z,
@@ -15835,7 +15815,7 @@ function Po(r, e, t) {
15835
15815
  marks: t
15836
15816
  };
15837
15817
  }
15838
- const qm = [
15818
+ const _m = [
15839
15819
  "decimal",
15840
15820
  // eg: 1, 2, 3, 4, 5, ...
15841
15821
  "decimalZero",
@@ -15860,7 +15840,7 @@ const qm = [
15860
15840
  // eg: (0, 1, 2, ..., 9, 10, 11, 12, ..., 19, 1A, 1B, 1C, ..., 1Z, 20, 21, ..., 2Z)
15861
15841
  "none"
15862
15842
  // No bullet
15863
- ], Mm = [
15843
+ ], qm = [
15864
15844
  "bullet",
15865
15845
  // A standard bullet point (•)
15866
15846
  "square",
@@ -15869,7 +15849,7 @@ const qm = [
15869
15849
  // Circle bullets (◦)
15870
15850
  "disc"
15871
15851
  // Disc bullets (●)
15872
- ], Um = ({ firstListId: r, secondListId: e, level: t, pStyleId: n, docx: i }) => {
15852
+ ], Mm = ({ firstListId: r, secondListId: e, level: t, pStyleId: n, docx: i }) => {
15873
15853
  const { numFmt: s, lvlText: o, lvlJc: a } = Ar(r, t, n, i), {
15874
15854
  numFmt: u,
15875
15855
  lvlText: c,
@@ -15899,7 +15879,7 @@ const qm = [
15899
15879
  }
15900
15880
  const a = o.elements, u = a.filter((N) => N.name === "w:abstractNum"), h = a.filter((N) => N.name === "w:num").find((N) => N.attributes["w:numId"] === r)?.elements[0].attributes["w:val"], g = u?.find(
15901
15881
  (N) => N.attributes["w:abstractNumId"] === h
15902
- ), D = Hm(g, e), C = g?.elements?.find((N) => N.name === "w:numStyleLink")?.attributes["w:val"];
15882
+ ), D = jm(g, e), C = g?.elements?.find((N) => N.name === "w:numStyleLink")?.attributes["w:val"];
15903
15883
  if (C) {
15904
15884
  const N = Oo(C, n);
15905
15885
  return Ar(N.numId, e, null, n);
@@ -15907,7 +15887,7 @@ const qm = [
15907
15887
  const F = D?.elements?.find((N) => N.name === "w:start")?.attributes["w:val"], w = D?.elements?.find((N) => N.name === "w:numFmt")?.attributes["w:val"], B = D?.elements?.find((N) => N.name === "w:lvlText").attributes["w:val"], R = D?.elements?.find((N) => N.name === "w:lvlJc").attributes["w:val"], v = D?.elements?.find((N) => N.name === "w:pPr"), k = D?.elements?.find((N) => N.name === "w:rPr");
15908
15888
  return { start: F, numFmt: w, lvlText: B, lvlJc: R, pPr: v, rPr: k };
15909
15889
  };
15910
- function jm(r, e, t) {
15890
+ function Um(r, e, t) {
15911
15891
  if (!r) return;
15912
15892
  const { attributes: n = {} } = r, { paragraphProperties: i = {} } = n, { elements: s = [] } = i, u = r.elements.find((E) => E.name === "w:pPr")?.elements?.find((E) => E.name === "w:pStyle")?.attributes["w:val"], c = Nr({ node: r, styleId: u, docx: t });
15913
15893
  if (!c) return {};
@@ -15920,17 +15900,17 @@ function jm(r, e, t) {
15920
15900
  rPr: k
15921
15901
  } = Ar(h, e, C, t);
15922
15902
  let N, M;
15923
- v && (N = zm(v)), k && (M = Vm(k));
15903
+ v && (N = Hm(v)), k && (M = zm(k));
15924
15904
  let _;
15925
- if (Mm.includes(w?.toLowerCase())) _ = "bulletList";
15926
- else if (qm.includes(w)) _ = "orderedList";
15905
+ if (qm.includes(w?.toLowerCase())) _ = "bulletList";
15906
+ else if (_m.includes(w)) _ = "orderedList";
15927
15907
  else return {};
15928
15908
  return { listType: _, listOrderingType: w, ilvl: D, numId: h, listrPrs: M, listpPrs: N, start: F, lvlText: B, lvlJc: R };
15929
15909
  }
15930
- function Hm(r, e) {
15910
+ function jm(r, e) {
15931
15911
  return r?.elements?.find((t) => Number(t.attributes["w:ilvl"]) === e);
15932
15912
  }
15933
- function zm(r) {
15913
+ function Hm(r) {
15934
15914
  const { elements: e } = r, t = ["w:ind", "w:jc", "w:tabs"], n = {};
15935
15915
  return e && e.forEach((i) => {
15936
15916
  t.includes(i.name);
@@ -15940,7 +15920,7 @@ function zm(r) {
15940
15920
  });
15941
15921
  }), n;
15942
15922
  }
15943
- function Vm(r) {
15923
+ function zm(r) {
15944
15924
  const { elements: e } = r, t = [
15945
15925
  "w:rFonts",
15946
15926
  "w:b",
@@ -15997,7 +15977,7 @@ const xu = (r) => {
15997
15977
  }
15998
15978
  let C;
15999
15979
  if (g && (C = g.attributes["w:val"], o.attrs.styleId = C), t) {
16000
- const v = Gm(s, t, C);
15980
+ const v = Vm(s, t, C);
16001
15981
  o.attrs.indent || (o.attrs.indent = {}), (v.left || v.left === 0) && (o.attrs.indent.left = v.left), (v.right || v.right === 0) && (o.attrs.indent.right = v.right), (v.firstLine || v.firstLine === 0) && (o.attrs.indent.firstLine = v.firstLine), (v.hanging || v.hanging === 0) && (o.attrs.indent.hanging = v.hanging), (v.textIndent || v.textIndent === 0) && (o.attrs.textIndent = `${v.textIndent}in`);
16002
15982
  }
16003
15983
  const F = h?.elements?.find((v) => v.name === "w:jc");
@@ -16021,7 +16001,7 @@ const xu = (r) => {
16021
16001
  });
16022
16002
  const R = h?.elements?.find((v) => v.name === "w:sectPr");
16023
16003
  return R && (o.attrs.paragraphProperties || (o.attrs.paragraphProperties = {}), o.attrs.paragraphProperties.sectPr = R, o.attrs.pageBreakSource = "sectPr"), { nodes: o ? [o] : [], consumed: 1 };
16024
- }, Gm = (r, e, t = "") => {
16004
+ }, Vm = (r, e, t = "") => {
16025
16005
  const n = {
16026
16006
  left: 0,
16027
16007
  right: 0,
@@ -16064,11 +16044,11 @@ const xu = (r) => {
16064
16044
  indent: k || R || v,
16065
16045
  justify: B
16066
16046
  };
16067
- }, Wm = {
16047
+ }, Gm = {
16068
16048
  handlerName: "paragraphNodeHandler",
16069
16049
  handler: xu
16070
16050
  };
16071
- function Jm(r, e) {
16051
+ function Wm(r, e) {
16072
16052
  const t = { lineSpaceBefore: null, lineSpaceAfter: null };
16073
16053
  if (!r) return t;
16074
16054
  const n = e["word/styles.xml"];
@@ -16132,14 +16112,14 @@ function Du(r = []) {
16132
16112
  continue;
16133
16113
  }
16134
16114
  if (o === "end" && n) {
16135
- t.push(i), e.push(...$m(t)), t = [], n = !1;
16115
+ t.push(i), e.push(...Jm(t)), t = [], n = !1;
16136
16116
  continue;
16137
16117
  }
16138
16118
  n ? t.push(i) : e.push(i);
16139
16119
  }
16140
16120
  return t.length && e.push(...t), e;
16141
16121
  }
16142
- const $m = (r = []) => {
16122
+ const Jm = (r = []) => {
16143
16123
  let e = [], t = !1, n = !1;
16144
16124
  const i = r.findIndex(
16145
16125
  (h) => h.elements?.some((g) => g.name === "w:fldChar" && g.attributes["w:fldCharType"] === "separate")
@@ -16176,7 +16156,7 @@ const $m = (r = []) => {
16176
16156
  });
16177
16157
  }
16178
16158
  return e;
16179
- }, Km = (r) => nodeListHandler.handler({ ...r, nodes: node.elements }), Xm = (r) => {
16159
+ }, $m = (r) => nodeListHandler.handler({ ...r, nodes: node.elements }), Km = (r) => {
16180
16160
  const { nodes: e } = r;
16181
16161
  if (e.length === 0 || e[0].name !== "w:sdt")
16182
16162
  return { nodes: [], consumed: 0 };
@@ -16191,14 +16171,14 @@ const $m = (r = []) => {
16191
16171
  consumed: 1
16192
16172
  };
16193
16173
  }, Lo = {
16194
- "Table of Contents": Km
16195
- }, Ym = (r) => {
16174
+ "Table of Contents": $m
16175
+ }, Xm = (r) => {
16196
16176
  const { nodes: e, docx: t, nodeListHandler: n, insideTrackChange: i } = r;
16197
16177
  if (e.length === 0 || e[0].name !== "w:sdt")
16198
16178
  return { nodes: [], consumed: 0 };
16199
16179
  const s = e[0], o = s.elements.find((_) => _.name === "w:sdtPr"), a = s.elements.find((_) => _.name === "w:sdtContent"), u = o?.elements.find((_) => _.name === "w:fieldTypeShort")?.attributes["w:val"], { attrs: c, marks: l } = Eu(a);
16200
16180
  if (o?.elements.find((_) => _.name === "w:docPartObj"))
16201
- return Xm({ nodes: e, docx: t, nodeListHandler: n, insideTrackChange: i });
16181
+ return Km({ nodes: e, docx: t, nodeListHandler: n, insideTrackChange: i });
16202
16182
  const g = o?.elements.find((_) => _.name === "w:alias"), D = o?.elements.find((_) => _.name === "w:tag"), A = o?.elements.find((_) => _.name === "w:fieldType")?.attributes["w:val"], C = o?.elements.find((_) => _.name === "w:fieldColor")?.attributes["w:val"], F = o?.elements.find((_) => _.name === "w:fieldMultipleImage")?.attributes["w:val"], w = o?.elements.find((_) => _.name === "w:fieldFontFamily")?.attributes["w:val"], B = o?.elements.find((_) => _.name === "w:fieldFontSize")?.attributes["w:val"], R = o?.elements.find((_) => _.name === "w:fieldTextColor")?.attributes["w:val"], v = o?.elements.find((_) => _.name === "w:fieldTextHighlight")?.attributes["w:val"], k = {
16203
16183
  type: u,
16204
16184
  fieldId: D?.attributes["w:val"],
@@ -16248,10 +16228,10 @@ const $m = (r = []) => {
16248
16228
  attrs: u,
16249
16229
  marks: o
16250
16230
  };
16251
- }, Zm = {
16231
+ }, Ym = {
16252
16232
  handlerName: "annotationNodeHandler",
16253
- handler: Ym
16254
- }, Qm = (r) => {
16233
+ handler: Xm
16234
+ }, Zm = (r) => {
16255
16235
  const { nodes: e, nodeListHandler: t } = r;
16256
16236
  if (e.length === 0 || e[0].name !== "w:sdt")
16257
16237
  return { nodes: [], consumed: 0 };
@@ -16267,17 +16247,17 @@ const $m = (r = []) => {
16267
16247
  }],
16268
16248
  consumed: 1
16269
16249
  };
16270
- }, ep = {
16250
+ }, Qm = {
16271
16251
  handlerName: "sdtNodeHandler",
16272
- handler: Qm
16273
- }, tp = (r) => {
16252
+ handler: Zm
16253
+ }, ep = (r) => {
16274
16254
  const { nodes: e, docx: t, nodeListHandler: n } = r;
16275
16255
  if (!e || e.length === 0)
16276
16256
  return { nodes: [], consumed: 0 };
16277
16257
  const i = e[0], { name: s } = i, { attributes: o, elements: a, marks: u = [] } = xt(i);
16278
16258
  if (s === "w:sdt")
16279
16259
  return { nodes: [], consumed: 0 };
16280
- if (Em(i))
16260
+ if (Dm(i))
16281
16261
  return {
16282
16262
  nodes: [{
16283
16263
  type: fr(i),
@@ -16297,7 +16277,7 @@ const $m = (r = []) => {
16297
16277
  consumed: 0,
16298
16278
  unhandled: !0
16299
16279
  };
16300
- const c = [], l = rp(i);
16280
+ const c = [], l = tp(i);
16301
16281
  if (a && a.length) {
16302
16282
  const g = a.map((C) => (C.marks || (C.marks = []), C.marks.push(...u), C)), D = { ...r, nodes: g, parentStyleId: l }, A = n.handler(D);
16303
16283
  c.push(...A);
@@ -16308,13 +16288,13 @@ const $m = (r = []) => {
16308
16288
  attrs: { ...o },
16309
16289
  marks: []
16310
16290
  }], consumed: 1 };
16311
- }, rp = (r) => {
16291
+ }, tp = (r) => {
16312
16292
  const t = r.elements?.find((n) => n.name === "w:pPr")?.elements?.find((n) => n.name === "w:pStyle");
16313
16293
  return t ? t.attributes["w:val"] : null;
16314
- }, np = {
16294
+ }, rp = {
16315
16295
  handlerName: "standardNodeHandler",
16316
- handler: tp
16317
- }, ip = (r) => {
16296
+ handler: ep
16297
+ }, np = (r) => {
16318
16298
  const { nodes: e } = r;
16319
16299
  return e.length === 0 || e[0].name !== "w:br" ? { nodes: [], consumed: 0 } : {
16320
16300
  nodes: [{
@@ -16322,10 +16302,10 @@ const $m = (r = []) => {
16322
16302
  }],
16323
16303
  consumed: 1
16324
16304
  };
16325
- }, sp = {
16305
+ }, ip = {
16326
16306
  handlerName: "lineBreakNodeHandler",
16327
- handler: ip
16328
- }, op = (r) => {
16307
+ handler: np
16308
+ }, sp = (r) => {
16329
16309
  const { nodes: e, nodeListHandler: t, editor: n } = r;
16330
16310
  if (e.length === 0 || e[0].name !== "w:bookmarkStart")
16331
16311
  return { nodes: [], consumed: 0 };
@@ -16354,10 +16334,10 @@ const $m = (r = []) => {
16354
16334
  }
16355
16335
  const c = { ...r, nodes: [i] }, l = s(c);
16356
16336
  return l.nodes.length === 1 && (l.nodes[0].attrs.name = i.attributes["w:name"], l.nodes[0].attrs.id = i.attributes["w:id"]), l;
16357
- }, ap = {
16337
+ }, op = {
16358
16338
  handlerName: "bookmarkNodeHandler",
16359
- handler: op
16360
- }, up = (r) => {
16339
+ handler: sp
16340
+ }, ap = (r) => {
16361
16341
  const e = { nodes: [], consumed: 0 }, { nodes: t, nodeListHandler: n, parentStyleId: i, docx: s } = r;
16362
16342
  if (t.length === 0 || t[0].name !== "w:p")
16363
16343
  return e;
@@ -16376,26 +16356,26 @@ const $m = (r = []) => {
16376
16356
  ...r,
16377
16357
  nodes: g
16378
16358
  }), consumed: 1 };
16379
- }, lp = {
16359
+ }, up = {
16380
16360
  handlerName: "alternateChoiceHandler",
16381
- handler: up
16382
- }, cp = (r) => {
16361
+ handler: ap
16362
+ }, lp = (r) => {
16383
16363
  const { nodes: e } = r;
16384
16364
  return e.length === 0 || e[0].name !== "sd:autoPageNumber" ? { nodes: [], consumed: 0 } : { nodes: [{
16385
16365
  type: "page-number"
16386
16366
  }], consumed: 1 };
16387
- }, fp = {
16367
+ }, cp = {
16388
16368
  handlerName: "autoPageNumberHandler",
16389
- handler: cp
16390
- }, dp = (r) => {
16369
+ handler: lp
16370
+ }, fp = (r) => {
16391
16371
  const { nodes: e } = r;
16392
16372
  return e.length === 0 || e[0].name !== "sd:totalPageNumber" ? { nodes: [], consumed: 0 } : { nodes: [{
16393
16373
  type: "total-page-number"
16394
16374
  }], consumed: 1 };
16395
- }, mp = {
16375
+ }, dp = {
16396
16376
  handlerName: "autoTotalPageCountEntity",
16397
- handler: dp
16398
- }, pp = (r) => {
16377
+ handler: fp
16378
+ }, mp = (r) => {
16399
16379
  const { nodes: e, docx: t, parentStyleId: n } = r;
16400
16380
  if (e.length === 0 || e[0].name !== "w:tab")
16401
16381
  return { nodes: [], consumed: 0 };
@@ -16412,10 +16392,10 @@ const $m = (r = []) => {
16412
16392
  },
16413
16393
  content: []
16414
16394
  }], consumed: 1 };
16415
- }, hp = {
16395
+ }, pp = {
16416
16396
  handlerName: "tabNodeHandler",
16417
- handler: pp
16418
- }, gp = (r) => {
16397
+ handler: mp
16398
+ }, hp = (r) => {
16419
16399
  const { nodes: e } = r;
16420
16400
  if (!e.length || e[0].name !== "w:p")
16421
16401
  return { nodes: [], consumed: 0 };
@@ -16428,14 +16408,14 @@ const $m = (r = []) => {
16428
16408
  if (!o && !a)
16429
16409
  return { nodes: [], consumed: 0 };
16430
16410
  let u = null;
16431
- return a && !o ? u = null : o.elements?.find((h) => h.name === "v:textbox") && (u = wp({
16411
+ return a && !o ? u = null : o.elements?.find((h) => h.name === "v:textbox") && (u = gp({
16432
16412
  pict: i,
16433
16413
  pNode: t,
16434
16414
  shape: o,
16435
16415
  params: r
16436
16416
  })), { nodes: u ? [u] : [], consumed: 1 };
16437
16417
  };
16438
- function wp({
16418
+ function gp({
16439
16419
  pict: r,
16440
16420
  pNode: e,
16441
16421
  shape: t,
@@ -16443,7 +16423,7 @@ function wp({
16443
16423
  }) {
16444
16424
  const i = {}, s = {}, o = t.attributes || {};
16445
16425
  i.attributes = o, o.fillcolor && (i.fillcolor = o.fillcolor);
16446
- const a = yp(o.style), u = bp(a);
16426
+ const a = wp(o.style), u = yp(a);
16447
16427
  u && (i.style = u);
16448
16428
  const c = t.elements?.find((w) => w.name === "v:textbox"), l = t.elements?.find((w) => w.name === "w10:wrap");
16449
16429
  l?.attributes && (i.wrapAttributes = l.attributes), c?.attributes && (s.attributes = c.attributes);
@@ -16462,13 +16442,13 @@ function wp({
16462
16442
  }]
16463
16443
  };
16464
16444
  }
16465
- function yp(r) {
16445
+ function wp(r) {
16466
16446
  return r ? r.split(";").filter((e) => !!e.trim()).reduce((e, t) => {
16467
16447
  const [n, i] = t.split(":").map((s) => s.trim());
16468
16448
  return n && i && (e[n] = i), e;
16469
16449
  }, {}) : {};
16470
16450
  }
16471
- function bp(r) {
16451
+ function yp(r) {
16472
16452
  const e = [
16473
16453
  "width",
16474
16454
  "height"
@@ -16486,11 +16466,11 @@ function bp(r) {
16486
16466
  e.includes(n) && (t += `${n}: ${i};`);
16487
16467
  return t;
16488
16468
  }
16489
- const xp = {
16469
+ const bp = {
16490
16470
  handlerName: "handlePictNode",
16491
- handler: gp
16471
+ handler: hp
16492
16472
  };
16493
- function Ap({ docx: r }) {
16473
+ function xp({ docx: r }) {
16494
16474
  const e = Jt(), t = r["word/comments.xml"];
16495
16475
  if (!t) return;
16496
16476
  const { elements: n } = t;
@@ -16516,16 +16496,16 @@ function Ap({ docx: r }) {
16516
16496
  trackedDeletedText: B
16517
16497
  };
16518
16498
  });
16519
- return vp({ docx: r, comments: s });
16499
+ return Ap({ docx: r, comments: s });
16520
16500
  }
16521
- const vp = ({ docx: r, comments: e }) => {
16501
+ const Ap = ({ docx: r, comments: e }) => {
16522
16502
  const t = r["word/commentsExtended.xml"];
16523
16503
  if (!t) return [];
16524
16504
  const { elements: n } = t, { elements: i } = n[0], s = i.filter((o) => o.name === "w15:commentEx");
16525
16505
  return e.map((o) => {
16526
16506
  const a = s.find((g) => g.attributes["w15:paraId"] === o.paraId);
16527
16507
  if (!a) return { ...o };
16528
- const { isDone: u, paraIdParent: c } = Dp(a);
16508
+ const { isDone: u, paraIdParent: c } = vp(a);
16529
16509
  let l;
16530
16510
  return c && (l = e.find((g) => g.paraId === c)), {
16531
16511
  ...o,
@@ -16533,11 +16513,11 @@ const vp = ({ docx: r, comments: e }) => {
16533
16513
  parentCommentId: l?.commentId
16534
16514
  };
16535
16515
  });
16536
- }, Dp = (r) => {
16516
+ }, vp = (r) => {
16537
16517
  const { attributes: e } = r, t = e["w15:paraId"], n = e["w15:done"] === "1", i = e["w15:paraIdParent"];
16538
16518
  return { paraId: t, isDone: n, paraIdParent: i };
16539
- }, Ep = (r, e, t) => {
16540
- const n = Ue(sm(r));
16519
+ }, Dp = (r, e, t) => {
16520
+ const n = Ue(im(r));
16541
16521
  if (!n) return null;
16542
16522
  if (e?.telemetry) {
16543
16523
  const o = Object.keys(r).map((a) => {
@@ -16562,7 +16542,7 @@ const vp = ({ docx: r, comments: e }) => {
16562
16542
  }
16563
16543
  const i = Jt(), s = n.elements[0].elements.find((o) => o.name === "w:body");
16564
16544
  if (s) {
16565
- const o = s, a = ["w:sectPr"], u = o.elements?.filter((D) => !a.includes(D.name)) ?? [], c = Ap({ docx: r }), l = {}, g = {
16545
+ const o = s, a = ["w:sectPr"], u = o.elements?.filter((D) => !a.includes(D.name)) ?? [], c = xp({ docx: r }), l = {}, g = {
16566
16546
  type: "doc",
16567
16547
  content: i.handler({
16568
16548
  nodes: u,
@@ -16585,40 +16565,40 @@ const vp = ({ docx: r, comments: e }) => {
16585
16565
  ), {
16586
16566
  pmDoc: g,
16587
16567
  savedTagsToRestore: o,
16588
- pageStyles: Sp(o, r, e, t),
16568
+ pageStyles: Cp(o, r, e, t),
16589
16569
  comments: c,
16590
- linkedStyles: Tp(r),
16591
- numbering: kp(r)
16570
+ linkedStyles: Sp(r),
16571
+ numbering: Bp(r)
16592
16572
  };
16593
16573
  }
16594
16574
  return null;
16595
16575
  }, Jt = () => {
16596
16576
  const r = [
16597
- lp,
16598
- Nm,
16599
- xp,
16600
- Wm,
16601
- _m,
16602
- Rm,
16603
- sp,
16604
- Zm,
16605
- ep,
16606
- ap,
16607
- Fm,
16608
- gm,
16609
- Sm,
16610
- am,
16611
- hp,
16612
- fp,
16613
- mp,
16614
- np
16577
+ up,
16578
+ km,
16579
+ bp,
16580
+ Gm,
16581
+ Lm,
16582
+ Im,
16583
+ ip,
16584
+ Ym,
16585
+ Qm,
16586
+ op,
16587
+ Tm,
16588
+ hm,
16589
+ Cm,
16590
+ om,
16591
+ pp,
16592
+ cp,
16593
+ dp,
16594
+ rp
16615
16595
  //this should be the last one, bcs this parses everything!!!
16616
16596
  ];
16617
16597
  return {
16618
- handler: Cp(r),
16598
+ handler: Ep(r),
16619
16599
  handlerEntities: r
16620
16600
  };
16621
- }, Cp = (r) => {
16601
+ }, Ep = (r) => {
16622
16602
  const e = (n, i, s, o) => !n || i < 0 || i >= n.length ? {
16623
16603
  elementIndex: i,
16624
16604
  error: "index_out_of_bounds",
@@ -16703,7 +16683,7 @@ const vp = ({ docx: r, comments: e }) => {
16703
16683
  };
16704
16684
  return t;
16705
16685
  };
16706
- function Sp(r, e, t, n) {
16686
+ function Cp(r, e, t, n) {
16707
16687
  const i = r.elements?.find((o) => o.name === "w:sectPr"), s = {};
16708
16688
  return i?.elements?.forEach((o) => {
16709
16689
  const { name: a, attributes: u } = o;
@@ -16741,9 +16721,9 @@ function Sp(r, e, t, n) {
16741
16721
  case "w:titlePg":
16742
16722
  t.headerIds.titlePg = !0;
16743
16723
  }
16744
- }), Bp(e, t, n), s.alternateHeaders = Np(e), s;
16724
+ }), Fp(e, t, n), s.alternateHeaders = kp(e), s;
16745
16725
  }
16746
- function Tp(r) {
16726
+ function Sp(r) {
16747
16727
  const e = r["word/styles.xml"];
16748
16728
  if (!e) return [];
16749
16729
  const { elements: t } = e.elements[0], n = t.filter((o) => o.name === "w:style");
@@ -16753,7 +16733,7 @@ function Tp(r) {
16753
16733
  });
16754
16734
  const s = [];
16755
16735
  return n.forEach((o) => {
16756
- const a = o.attributes["w:styleId"], u = Jm(a, r), c = {
16736
+ const a = o.attributes["w:styleId"], u = Wm(a, r), c = {
16757
16737
  id: o.attributes["w:styleId"],
16758
16738
  type: o.attributes["w:type"],
16759
16739
  definition: u,
@@ -16762,7 +16742,7 @@ function Tp(r) {
16762
16742
  s.push(c);
16763
16743
  }), s;
16764
16744
  }
16765
- function Fp(r) {
16745
+ function Tp(r) {
16766
16746
  if (!r) return null;
16767
16747
  const e = Ue(r), { elements: t } = e.elements[0];
16768
16748
  return Object.keys(Co).forEach((n) => {
@@ -16772,7 +16752,7 @@ function Fp(r) {
16772
16752
  }
16773
16753
  }), e;
16774
16754
  }
16775
- const Bp = (r, e, t) => {
16755
+ const Fp = (r, e, t) => {
16776
16756
  const i = r["word/_rels/document.xml.rels"].elements.find((g) => g.name === "Relationships"), { elements: s } = i, 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), c = s.filter((g) => g.attributes.Type === a), h = (Cu(r["word/document.xml"]) || []).flatMap((g) => g.elements);
16777
16757
  u.forEach((g) => {
16778
16758
  const { rId: D, referenceFile: A, currentFileName: C } = _o(g, r);
@@ -16810,7 +16790,7 @@ const Bp = (r, e, t) => {
16810
16790
  currentFileName: n
16811
16791
  };
16812
16792
  };
16813
- function kp(r) {
16793
+ function Bp(r) {
16814
16794
  let e = r["word/numbering.xml"];
16815
16795
  (!e || !e.elements?.length || !e.elements[0].elements?.length) && (e = nu);
16816
16796
  const t = e.elements[0].elements, n = t.filter((a) => a.name === "w:abstractNum"), i = t.filter((a) => a.name === "w:num"), s = {};
@@ -16827,12 +16807,12 @@ function kp(r) {
16827
16807
  definitions: o
16828
16808
  };
16829
16809
  }
16830
- const Np = (r) => {
16810
+ const kp = (r) => {
16831
16811
  const e = r["word/settings.xml"];
16832
16812
  if (!e || !e.elements?.length) return !1;
16833
16813
  const { elements: t = [] } = e.elements[0];
16834
16814
  return !!t.find((i) => i.name === "w:evenAndOddHeaders");
16835
- }, Ip = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink";
16815
+ }, Np = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink";
16836
16816
  var Ge, Su, Tu, Fu, Bu, ku;
16837
16817
  const pt = class pt {
16838
16818
  constructor(e = null) {
@@ -16841,7 +16821,7 @@ const pt = class pt {
16841
16821
  }
16842
16822
  parseFromXml() {
16843
16823
  this.docx?.forEach((e) => {
16844
- 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] = Fp(this.convertedXml[e.name]));
16824
+ 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] = Tp(this.convertedXml[e.name]));
16845
16825
  }), this.initialJSON = this.convertedXml["word/document.xml"], this.initialJSON || (this.initialJSON = this.parseXmlToJson(this.xml)), this.declaration = this.initialJSON?.declaration;
16846
16826
  }
16847
16827
  parseXmlToJson(e) {
@@ -16860,7 +16840,7 @@ const pt = class pt {
16860
16840
  return;
16861
16841
  }
16862
16842
  }
16863
- static updateDocumentVersion(e = this.convertedXml, t = "0.12.8") {
16843
+ static updateDocumentVersion(e = this.convertedXml, t = "0.12.9") {
16864
16844
  const n = "docProps/custom.xml";
16865
16845
  e[n] || (e[n] = Nu());
16866
16846
  const i = e["docProps/custom.xml"];
@@ -16962,7 +16942,7 @@ const pt = class pt {
16962
16942
  }
16963
16943
  getSchema(e) {
16964
16944
  this.getDocumentInternalId();
16965
- const t = Ep({ ...this.convertedXml, media: this.media }, this, e);
16945
+ const t = Dp({ ...this.convertedXml, media: this.media }, this, e);
16966
16946
  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;
16967
16947
  }
16968
16948
  schemaToXml(e, t = !1) {
@@ -16992,7 +16972,7 @@ const pt = class pt {
16992
16972
  });
16993
16973
  A = { ...F }, C = w;
16994
16974
  }
16995
- return this.convertedXml = { ...this.convertedXml, ...A }, Je(this, Ge, Bu).call(this, [...h.relationships, ...C]), Je(this, Ge, Fu).call(this, { isFinalDoc: i }), Rp(this.convertedXml), Je(this, Ge, Su).call(this, h), D;
16975
+ return this.convertedXml = { ...this.convertedXml, ...A }, Je(this, Ge, Bu).call(this, [...h.relationships, ...C]), Je(this, Ge, Fu).call(this, { isFinalDoc: i }), Ip(this.convertedXml), Je(this, Ge, Su).call(this, h), D;
16996
16976
  }
16997
16977
  exportToXmlJson({
16998
16978
  data: e,
@@ -17105,7 +17085,7 @@ Tu = function({ defs: e, exportType: t, commentsWithParaIds: n }) {
17105
17085
  const t = this.convertedXml["word/_rels/document.xml.rels"], n = t.elements.find((a) => a.name === "Relationships"), i = [], s = /rId|mi/g;
17106
17086
  let o = Math.max(...n.elements.map((a) => Number(a.attributes.Id.replace(s, ""))));
17107
17087
  e.forEach((a) => {
17108
- const u = a.attributes.Id, c = n.elements.find((g) => g.attributes.Target === a.attributes.Target), l = a.attributes.Target?.startsWith("media/") && u.length > 6, h = a.attributes.Type === Ip && u.length > 6;
17088
+ const u = a.attributes.Id, c = n.elements.find((g) => g.attributes.Target === a.attributes.Target), l = a.attributes.Target?.startsWith("media/") && u.length > 6, h = a.attributes.Type === Np && u.length > 6;
17109
17089
  c && !l && !h || (a.attributes.Target = a.attributes?.Target?.replace(/&/g, "&amp;"), a.attributes.Id = u.length > 6 ? u : `rId${++o}`, i.push(a));
17110
17090
  }), n.elements = [...n.elements, ...i], this.convertedXml["word/_rels/document.xml.rels"] = t;
17111
17091
  }, ku = async function(e, t) {
@@ -17165,7 +17145,7 @@ Tu = function({ defs: e, exportType: t, commentsWithParaIds: n }) {
17165
17145
  "w:tcPr": "tableCellProperties"
17166
17146
  })), Mt(pt, "elements", /* @__PURE__ */ new Set(["w:document", "w:body", "w:p", "w:r", "w:t", "w:delText"]));
17167
17147
  let Ot = pt;
17168
- function Rp(r) {
17148
+ function Ip(r) {
17169
17149
  const e = "docProps/custom.xml";
17170
17150
  r[e] || (r[e] = Nu());
17171
17151
  const n = r[e].elements.find((a) => a.name === "Properties");
@@ -17184,7 +17164,7 @@ function Rp(r) {
17184
17164
  function Nu() {
17185
17165
  return Kf;
17186
17166
  }
17187
- function Iu(r = 2, e = "0.12.8") {
17167
+ function Iu(r = 2, e = "0.12.9") {
17188
17168
  return {
17189
17169
  type: "element",
17190
17170
  name: "property",
@@ -17216,7 +17196,7 @@ export {
17216
17196
  xa as E,
17217
17197
  Q as F,
17218
17198
  Oi as G,
17219
- $p as H,
17199
+ Jp as H,
17220
17200
  ft as I,
17221
17201
  tt as J,
17222
17202
  Ii as K,
@@ -17224,47 +17204,47 @@ export {
17224
17204
  br as M,
17225
17205
  $e as N,
17226
17206
  Ot as O,
17227
- Wp as P,
17207
+ Gp as P,
17228
17208
  Ct as Q,
17229
17209
  Xe as R,
17230
- _p as S,
17210
+ Lp as S,
17231
17211
  rt as T,
17232
17212
  Jf as U,
17233
17213
  qf as V,
17234
- nh as W,
17235
- Jp as X,
17214
+ rh as W,
17215
+ Wp as X,
17236
17216
  Za as Y,
17237
17217
  gd as Z,
17238
17218
  kf as _,
17239
- Gp as a,
17219
+ Vp as a,
17240
17220
  wd as a0,
17241
17221
  Ke as a1,
17242
17222
  qo as a2,
17243
- rh as a3,
17223
+ th as a3,
17244
17224
  ba as a4,
17245
- Kp as a5,
17246
- jp as b,
17247
- Xp as c,
17248
- Hp as d,
17225
+ $p as a5,
17226
+ Up as b,
17227
+ Kp as c,
17228
+ jp as d,
17249
17229
  Ee as e,
17250
17230
  ae as f,
17251
- eh as g,
17231
+ Qp as g,
17252
17232
  Ie as h,
17253
- Yp as i,
17254
- zp as j,
17233
+ Xp as i,
17234
+ Hp as j,
17255
17235
  Mc as k,
17256
- Mp as l,
17257
- Up as m,
17258
- Zp as n,
17236
+ qp as l,
17237
+ Mp as m,
17238
+ Yp as n,
17259
17239
  Of as o,
17260
- Qp as p,
17240
+ Zp as p,
17261
17241
  Ri as q,
17262
17242
  vf as r,
17263
- th as s,
17243
+ eh as s,
17264
17244
  ru as t,
17265
17245
  _a as u,
17266
17246
  we as v,
17267
- Vp as w,
17247
+ zp as w,
17268
17248
  ge as x,
17269
17249
  Pf as y,
17270
17250
  Pi as z