pptx-vue-viewer 2.20.5 → 2.20.7

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 (85) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/{AiChatPanel-CHBc7cFJ.js → AiChatPanel-BfxMA_YJ.js} +2 -2
  3. package/dist/AiChatPanel-BfxMA_YJ.js.br +0 -0
  4. package/dist/AiChatPanel-BfxMA_YJ.js.gz +0 -0
  5. package/dist/{AiChatPanel-CtuvrW0I.cjs → AiChatPanel-KZCAaLSl.cjs} +1 -1
  6. package/dist/AiChatPanel-KZCAaLSl.cjs.br +0 -0
  7. package/dist/AiChatPanel-KZCAaLSl.cjs.gz +0 -0
  8. package/dist/{dist-CgAwqAsy.cjs → dist-DsI6qtxB.cjs} +865 -818
  9. package/dist/dist-DsI6qtxB.cjs.br +0 -0
  10. package/dist/dist-DsI6qtxB.cjs.gz +0 -0
  11. package/dist/{dist-EsJChuVK.js → dist-OepfEldU.js} +827 -780
  12. package/dist/dist-OepfEldU.js.br +0 -0
  13. package/dist/dist-OepfEldU.js.gz +0 -0
  14. package/dist/gif-encoder-CexiIIlN.js +2 -0
  15. package/dist/gif-encoder-CexiIIlN.js.br +0 -0
  16. package/dist/gif-encoder-CexiIIlN.js.gz +0 -0
  17. package/dist/gif-encoder-Cw0zaosi.cjs +2 -0
  18. package/dist/gif-encoder-Cw0zaosi.cjs.br +0 -0
  19. package/dist/gif-encoder-Cw0zaosi.cjs.gz +0 -0
  20. package/dist/index.cjs +1 -1
  21. package/dist/index.cjs.br +0 -0
  22. package/dist/index.cjs.gz +0 -0
  23. package/dist/index.js +3 -3
  24. package/dist/index.js.br +0 -0
  25. package/dist/index.js.gz +0 -0
  26. package/dist/internals.cjs +1 -1
  27. package/dist/internals.cjs.br +0 -0
  28. package/dist/internals.cjs.gz +0 -0
  29. package/dist/internals.js +2 -2
  30. package/dist/internals.js.br +0 -0
  31. package/dist/internals.js.gz +0 -0
  32. package/dist/pptx-vue-viewer.css +1 -1
  33. package/dist/pptx-vue-viewer.css.br +0 -0
  34. package/dist/pptx-vue-viewer.css.gz +0 -0
  35. package/dist/{useViewerSettingsDialog-Cq0ZQGbR.cjs → useViewerSettingsDialog-D6HmvWmd.cjs} +2946 -2913
  36. package/dist/useViewerSettingsDialog-D6HmvWmd.cjs.br +0 -0
  37. package/dist/useViewerSettingsDialog-D6HmvWmd.cjs.gz +0 -0
  38. package/dist/{useViewerSettingsDialog-B8XpspS-.js → useViewerSettingsDialog-DTD_qfS_.js} +2698 -2675
  39. package/dist/useViewerSettingsDialog-DTD_qfS_.js.br +0 -0
  40. package/dist/useViewerSettingsDialog-DTD_qfS_.js.gz +0 -0
  41. package/dist/viewer/components/CommentsPanel.vue.d.ts +6 -0
  42. package/dist/viewer/components/CommentsPanel.vue.d.ts.map +1 -1
  43. package/dist/viewer/components/NotesPanel.vue.d.ts +8 -0
  44. package/dist/viewer/components/NotesPanel.vue.d.ts.map +1 -1
  45. package/dist/viewer/components/ShareDialog.vue.d.ts +8 -1
  46. package/dist/viewer/components/ShareDialog.vue.d.ts.map +1 -1
  47. package/dist/viewer/components/ViewerEditDialogs.vue.d.ts.map +1 -1
  48. package/dist/viewer/components/ViewerMobileSheets.vue.d.ts.map +1 -1
  49. package/dist/viewer/composables/useCollaborationWiring.d.ts +3 -0
  50. package/dist/viewer/composables/useCollaborationWiring.d.ts.map +1 -1
  51. package/dist/viewer/index.cjs +1 -1
  52. package/dist/viewer/index.cjs.br +0 -0
  53. package/dist/viewer/index.cjs.gz +0 -0
  54. package/dist/viewer/index.js +3 -3
  55. package/dist/viewer/index.js.br +0 -0
  56. package/dist/viewer/index.js.gz +0 -0
  57. package/dist/{viewer-BtMJHZcw.js → viewer-Dv8MPYcv.js} +9801 -9726
  58. package/dist/viewer-Dv8MPYcv.js.br +0 -0
  59. package/dist/viewer-Dv8MPYcv.js.gz +0 -0
  60. package/dist/{viewer-CfjIrw3r.cjs → viewer-X9g5bNdQ.cjs} +1752 -1677
  61. package/dist/viewer-X9g5bNdQ.cjs.br +0 -0
  62. package/dist/viewer-X9g5bNdQ.cjs.gz +0 -0
  63. package/package.json +1 -1
  64. package/dist/AiChatPanel-CHBc7cFJ.js.br +0 -0
  65. package/dist/AiChatPanel-CHBc7cFJ.js.gz +0 -0
  66. package/dist/AiChatPanel-CtuvrW0I.cjs.br +0 -0
  67. package/dist/AiChatPanel-CtuvrW0I.cjs.gz +0 -0
  68. package/dist/dist-CgAwqAsy.cjs.br +0 -0
  69. package/dist/dist-CgAwqAsy.cjs.gz +0 -0
  70. package/dist/dist-EsJChuVK.js.br +0 -0
  71. package/dist/dist-EsJChuVK.js.gz +0 -0
  72. package/dist/gif-encoder-Cr4khecb.js +0 -2
  73. package/dist/gif-encoder-Cr4khecb.js.br +0 -0
  74. package/dist/gif-encoder-Cr4khecb.js.gz +0 -0
  75. package/dist/gif-encoder-Da1mkJms.cjs +0 -2
  76. package/dist/gif-encoder-Da1mkJms.cjs.br +0 -0
  77. package/dist/gif-encoder-Da1mkJms.cjs.gz +0 -0
  78. package/dist/useViewerSettingsDialog-B8XpspS-.js.br +0 -0
  79. package/dist/useViewerSettingsDialog-B8XpspS-.js.gz +0 -0
  80. package/dist/useViewerSettingsDialog-Cq0ZQGbR.cjs.br +0 -0
  81. package/dist/useViewerSettingsDialog-Cq0ZQGbR.cjs.gz +0 -0
  82. package/dist/viewer-BtMJHZcw.js.br +0 -0
  83. package/dist/viewer-BtMJHZcw.js.gz +0 -0
  84. package/dist/viewer-CfjIrw3r.cjs.br +0 -0
  85. package/dist/viewer-CfjIrw3r.cjs.gz +0 -0
@@ -6589,7 +6589,7 @@ async function br(t) {
6589
6589
  var Tr = class {
6590
6590
  constructor() {}
6591
6591
  static async create(e) {
6592
- const t = await br(e), n = new d$(), r = await n.load(t);
6592
+ const t = await br(e), n = new p$(), r = await n.load(t);
6593
6593
  return {
6594
6594
  handler: n,
6595
6595
  data: r,
@@ -22471,7 +22471,7 @@ function Vo(e, t) {
22471
22471
  const s = ka(o("a:shade"));
22472
22472
  void 0 !== s && (r *= s, i *= s, a *= s);
22473
22473
  const l = ka(o("a:tint"));
22474
- void 0 !== l && (r += (255 - r) * l, i += (255 - i) * l, a += (255 - a) * l);
22474
+ void 0 !== l && (r = 255 - (255 - r) * l, i = 255 - (255 - i) * l, a = 255 - (255 - a) * l);
22475
22475
  if ([
22476
22476
  "a:hue",
22477
22477
  "a:hueMod",
@@ -26289,7 +26289,7 @@ function mp(e, t) {
26289
26289
  const t = e.replace(/[-{}]/g, "");
26290
26290
  if (32 !== t.length) throw new Error(`Invalid GUID length: expected 32 hex chars, got ${t.length}`);
26291
26291
  const n = /* @__PURE__ */ new Uint8Array(16);
26292
- for (let e = 0; e < 16; e++) n[e] = parseInt(t.substring(2 * e, 2 * e + 2), 16);
26292
+ for (let e = 0; e < 16; e++) n[15 - e] = parseInt(t.substring(2 * e, 2 * e + 2), 16);
26293
26293
  return n;
26294
26294
  }(t), r = new Uint8Array(e);
26295
26295
  for (let t = 0; t < 32; t++) r[t] = e[t] ^ n[t % 16];
@@ -47104,7 +47104,7 @@ var NM = class e extends wM {
47104
47104
  placeholders: this.extractPlaceholderList(s)
47105
47105
  };
47106
47106
  l.clrMap = NI(i["p:clrMap"]);
47107
- const c = HB(i["p:hf"]);
47107
+ const c = qB(i["p:hf"]);
47108
47108
  return c && (l.headerFooter = c), l;
47109
47109
  } catch (e) {
47110
47110
  console.warn("Failed to parse handout master:", e);
@@ -47123,7 +47123,7 @@ var NM = class e extends wM {
47123
47123
  placeholders: this.extractPlaceholderList(s)
47124
47124
  };
47125
47125
  l.clrMap = NI(i["p:clrMap"]);
47126
- const c = HB(i["p:hf"]);
47126
+ const c = qB(i["p:hf"]);
47127
47127
  return c && (l.headerFooter = c), l;
47128
47128
  } catch (e) {
47129
47129
  console.warn("Failed to parse notes master:", e);
@@ -47156,7 +47156,7 @@ var NM = class e extends wM {
47156
47156
  const e = String(d).trim().toLowerCase();
47157
47157
  a.userDrawn = "1" === e || "true" === e;
47158
47158
  }
47159
- const p = HB(i["p:hf"]);
47159
+ const p = qB(i["p:hf"]);
47160
47160
  p && (a.headerFooter = p);
47161
47161
  const h = i["p:clrMapOvr"];
47162
47162
  if (h && void 0 === h["a:masterClrMapping"]) {
@@ -47417,7 +47417,6 @@ var WM = class extends UM {
47417
47417
  }
47418
47418
  findSourceSlidePath(e) {
47419
47419
  if (e && this.slideMap.has(e) && e.startsWith("ppt/slides/slide")) return e;
47420
- for (const e of this.slideMap.keys()) if (e.startsWith("ppt/slides/slide")) return e;
47421
47420
  }
47422
47421
  async loadSlideRelationships(e, t) {
47423
47422
  await this.loadPartRelationships(e, t);
@@ -48926,19 +48925,21 @@ var bF = class extends gF {
48926
48925
  const n = ud(t, "p:nvSpPr", "p:nvPr") ?? ud(t, "p:nvPicPr", "p:nvPr") ?? ud(t, "p:nvGraphicFramePr", "p:nvPr");
48927
48926
  return this.readPlaceholderInfoFromNvPr(n);
48928
48927
  }
48929
- extractLayoutPlaceholders(e) {
48930
- const t = ud(e, "p:sldLayout", "p:cSld", "p:spTree");
48931
- if (!t) return [];
48932
- const n = [], r = [
48933
- ...this.ensureArray(t["p:sp"]),
48934
- ...this.ensureArray(t["p:pic"]),
48935
- ...this.ensureArray(t["p:graphicFrame"])
48928
+ isUntouchedPlaceholderPrompt(e) {
48929
+ return "text" === e.type && !(e.text && e.text.trim().length > 0) && !e.textSegments?.some((e) => e.text.trim().length > 0);
48930
+ }
48931
+ extractPlaceholderSlotsFromSpTree(e) {
48932
+ if (!e) return [];
48933
+ const t = [], n = [
48934
+ ...this.ensureArray(e["p:sp"]),
48935
+ ...this.ensureArray(e["p:pic"]),
48936
+ ...this.ensureArray(e["p:graphicFrame"])
48936
48937
  ];
48937
- for (const e of r) {
48938
- const t = ud(e, "p:nvSpPr", "p:nvPr") ?? ud(e, "p:nvPicPr", "p:nvPr") ?? ud(e, "p:nvGraphicFramePr", "p:nvPr"), r = this.readPlaceholderInfoFromNvPr(t);
48938
+ for (const e of n) {
48939
+ const n = ud(e, "p:nvSpPr", "p:nvPr") ?? ud(e, "p:nvPicPr", "p:nvPr") ?? ud(e, "p:nvGraphicFramePr", "p:nvPr"), r = this.readPlaceholderInfoFromNvPr(n);
48939
48940
  if (!r) continue;
48940
48941
  const a = e["p:spPr"]?.["a:xfrm"], o = a?.["a:off"], s = a?.["a:ext"], l = o ? Number(o["@_x"] || 0) : 0, c = o ? Number(o["@_y"] || 0) : 0, d = s ? Number(s["@_cx"] || 0) : 0, p = s ? Number(s["@_cy"] || 0) : 0;
48941
- n.push({
48942
+ t.push({
48942
48943
  phInfo: r,
48943
48944
  xEmu: l,
48944
48945
  yEmu: c,
@@ -48947,10 +48948,50 @@ var bF = class extends gF {
48947
48948
  shapeXml: e
48948
48949
  });
48949
48950
  }
48950
- return n;
48951
+ return t;
48952
+ }
48953
+ resolveMasterPathForNewLayout(e) {
48954
+ const t = this.slideRelsMap.get(e);
48955
+ if (t) {
48956
+ for (const [, n] of t.entries()) if (n.includes("slideMaster")) {
48957
+ const t = e.substring(0, e.lastIndexOf("/") + 1);
48958
+ if (n.startsWith("..")) {
48959
+ const e = (t + n).split("/"), r = [];
48960
+ for (const t of e) ".." === t ? r.pop() : t && "." !== t && r.push(t);
48961
+ return r.join("/");
48962
+ }
48963
+ return `ppt/${$l(n)}`;
48964
+ }
48965
+ }
48966
+ }
48967
+ findMasterSlotForLayoutSlot(e, t) {
48968
+ if (void 0 !== t.idx) {
48969
+ const n = e.find((e) => e.phInfo.idx === t.idx);
48970
+ if (n) return n;
48971
+ }
48972
+ if (!t.type) return;
48973
+ const n = "ctrtitle" === t.type ? "title" : "subtitle" === t.type ? "body" : t.type;
48974
+ return e.find((e) => e.phInfo.type === t.type || e.phInfo.type === n);
48975
+ }
48976
+ extractLayoutPlaceholders(e, t) {
48977
+ const n = ud(e, "p:sldLayout", "p:cSld", "p:spTree"), r = this.extractPlaceholderSlotsFromSpTree(n);
48978
+ if (0 === r.length || !t) return r;
48979
+ if (!r.some((e) => e.cxEmu <= 0 || e.cyEmu <= 0)) return r;
48980
+ const i = this.resolveMasterPathForNewLayout(t), a = ud(i ? this.masterXmlMap.get(i) : void 0, "p:sldMaster", "p:cSld", "p:spTree"), o = this.extractPlaceholderSlotsFromSpTree(a);
48981
+ return 0 === o.length ? r : r.map((e) => {
48982
+ if (e.cxEmu > 0 && e.cyEmu > 0) return e;
48983
+ const t = this.findMasterSlotForLayoutSlot(o, e.phInfo);
48984
+ return !t || t.cxEmu <= 0 || t.cyEmu <= 0 ? e : {
48985
+ ...e,
48986
+ xEmu: t.xEmu,
48987
+ yEmu: t.yEmu,
48988
+ cxEmu: t.cxEmu,
48989
+ cyEmu: t.cyEmu
48990
+ };
48991
+ });
48951
48992
  }
48952
48993
  remapElementsToNewLayout(e, t, n) {
48953
- const r = this.extractLayoutPlaceholders(t).map((e) => ({
48994
+ const r = this.extractLayoutPlaceholders(t, n).map((e) => ({
48954
48995
  ...e,
48955
48996
  matched: !1
48956
48997
  })), i = [];
@@ -48973,7 +49014,7 @@ var bF = class extends gF {
48973
49014
  rawXml: fo(t.rawXml)
48974
49015
  };
48975
49016
  n.cxEmu > 0 && n.cyEmu > 0 && (e.x = Math.round(n.xEmu / Ko), e.y = Math.round(n.yEmu / Ko), e.width = Math.round(n.cxEmu / Ko), e.height = Math.round(n.cyEmu / Ko)), e.rawXml && n.cxEmu > 0 && n.cyEmu > 0 && sI(e.rawXml, n.xEmu, n.yEmu, n.cxEmu, n.cyEmu), e.rawXml && oI(e.rawXml, n.phInfo), i.push(e);
48976
- } else i.push(t);
49017
+ } else this.isUntouchedPlaceholderPrompt(t) || i.push(t);
48977
49018
  }
48978
49019
  let a = 0;
48979
49020
  for (const e of r) {
@@ -53938,7 +53979,12 @@ var mB = class extends cB {
53938
53979
  });
53939
53980
  a.length !== i.length && (r.Relationship = a, this.zip.file(e, this.builder.build(n)));
53940
53981
  }
53941
- }, gB = class e extends fB {
53982
+ }, gB = /* @__PURE__ */ new Set([
53983
+ "dt",
53984
+ "ftr",
53985
+ "hdr",
53986
+ "sldnum"
53987
+ ]), yB = class e extends fB {
53942
53988
  parseMediaData(e, t) {
53943
53989
  return this.mediaDataParser.parseMediaData(e, t);
53944
53990
  }
@@ -54060,13 +54106,14 @@ var mB = class extends cB {
54060
54106
  const n = e.type === t.type || "ctrtitle" === e.type && "title" === t.type || "subtitle" === e.type && "body" === t.type;
54061
54107
  if ((e.idx ?? "0") !== (t.idx ?? "0")) return !1;
54062
54108
  if (e.type && t.type && !n) return !1;
54109
+ if (e.type && gB.has(e.type) && !t.type || t.type && gB.has(t.type) && !e.type) return !1;
54063
54110
  return !((void 0 === e.idx || void 0 === t.idx) && e.type && !t.type);
54064
54111
  }
54065
54112
  };
54066
- function yB(e) {
54113
+ function xB(e) {
54067
54114
  if (void 0 !== e) return "0" !== String(e) && "false" !== String(e).toLowerCase();
54068
54115
  }
54069
- var xB = class e extends gB {
54116
+ var bB = class e extends yB {
54070
54117
  async parseSlideZoomElement(t, n, r) {
54071
54118
  try {
54072
54119
  const i = t["pslz:sldZmObj"], a = i?.["pslz:zmPr"], s = (a?.["p166:spPr"])?.["a:xfrm"], l = s?.["a:off"], c = s?.["a:ext"], d = this.findSlideIndexByNumericId(i?.["@_sldId"]);
@@ -54088,8 +54135,8 @@ var xB = class e extends gB {
54088
54135
  width: Number(c["@_cx"] ?? 0) / g,
54089
54136
  height: Number(c["@_cy"] ?? 0) / g,
54090
54137
  rotation: void 0 !== s?.["@_rot"] ? Number(s["@_rot"]) / 6e4 : void 0,
54091
- flipHorizontal: yB(s?.["@_flipH"]),
54092
- flipVertical: yB(s?.["@_flipV"]),
54138
+ flipHorizontal: xB(s?.["@_flipH"]),
54139
+ flipVertical: xB(s?.["@_flipV"]),
54093
54140
  imagePath: m,
54094
54141
  imageData: f,
54095
54142
  rawXml: t
@@ -54103,10 +54150,10 @@ var xB = class e extends gB {
54103
54150
  return r.findIndex((e) => String(e["@_id"] ?? "").trim() === i);
54104
54151
  }
54105
54152
  };
54106
- function bB(e) {
54153
+ function TB(e) {
54107
54154
  if (void 0 !== e) return "0" !== String(e) && "false" !== String(e).toLowerCase();
54108
54155
  }
54109
- var TB = class e extends xB {
54156
+ var wB = class e extends bB {
54110
54157
  async parseSectionZoomElement(t, n, r) {
54111
54158
  try {
54112
54159
  const i = t["psezm:sectionZmObj"], a = String(i?.["@_sectionId"] ?? "").trim(), o = Wv(this.presentationData, this.xmlLookupService).orderedSections.find((e) => e.id === a), s = this.findSlideIndexByNumericId(o?.slideIds[0]), l = i?.["psezm:zmPr"], d = (l?.["p166:spPr"])?.["a:xfrm"], p = d?.["a:off"], h = d?.["a:ext"];
@@ -54129,8 +54176,8 @@ var TB = class e extends xB {
54129
54176
  width: Number(h["@_cx"] ?? 0) / x,
54130
54177
  height: Number(h["@_cy"] ?? 0) / x,
54131
54178
  rotation: void 0 !== d?.["@_rot"] ? Number(d["@_rot"]) / 6e4 : void 0,
54132
- flipHorizontal: bB(d?.["@_flipH"]),
54133
- flipVertical: bB(d?.["@_flipV"]),
54179
+ flipHorizontal: TB(d?.["@_flipH"]),
54180
+ flipVertical: TB(d?.["@_flipV"]),
54134
54181
  imagePath: g,
54135
54182
  imageData: y,
54136
54183
  rawXml: t
@@ -54139,7 +54186,7 @@ var TB = class e extends xB {
54139
54186
  return console.warn("Skipping malformed section Zoom element:", e), null;
54140
54187
  }
54141
54188
  }
54142
- }, wB = class e extends TB {
54189
+ }, SB = class e extends wB {
54143
54190
  async parseSummaryZoomElement(t, n, r) {
54144
54191
  try {
54145
54192
  const i = Wv(this.presentationData, this.xmlLookupService), a = this.ensureArray(t["psuz:summaryZmObj"]), o = [];
@@ -54200,7 +54247,7 @@ var TB = class e extends xB {
54200
54247
  const t = Number(e);
54201
54248
  return Number.isFinite(t) ? t : void 0;
54202
54249
  }
54203
- }, SB = class extends wB {
54250
+ }, vB = class extends SB {
54204
54251
  findPlaceholderInShapeTree(e, t) {
54205
54252
  if (!e) return;
54206
54253
  const n = this.ensureArray(e["p:sp"]);
@@ -54297,7 +54344,7 @@ var TB = class e extends xB {
54297
54344
  }
54298
54345
  return n;
54299
54346
  }
54300
- }, vB = /* @__PURE__ */ new Set([
54347
+ }, CB = /* @__PURE__ */ new Set([
54301
54348
  "l",
54302
54349
  "t",
54303
54350
  "cd2",
@@ -54308,13 +54355,13 @@ var TB = class e extends xB {
54308
54355
  "5cd8",
54309
54356
  "7cd8"
54310
54357
  ]);
54311
- function CB(e, t, n) {
54358
+ function _B(e, t, n) {
54312
54359
  const r = e.trim();
54313
54360
  if (!r) return;
54314
54361
  const i = r.split(/\s+/);
54315
54362
  for (let e = 1; e < i.length; e++) {
54316
54363
  const t = i[e];
54317
- if ("" !== t && !Number.isFinite(Number(t)) && !n.has(t) && !vB.has(t)) return;
54364
+ if ("" !== t && !Number.isFinite(Number(t)) && !n.has(t) && !CB.has(t)) return;
54318
54365
  }
54319
54366
  const a = Nn([{
54320
54367
  name: t,
@@ -54325,7 +54372,7 @@ function CB(e, t, n) {
54325
54372
  }, new Map(n)).get(t);
54326
54373
  return void 0 !== a && Number.isFinite(a) ? a : void 0;
54327
54374
  }
54328
- var _B = class e extends SB {
54375
+ var kB = class e extends vB {
54329
54376
  parseGeometryAdjustments(e) {
54330
54377
  if (!e) return;
54331
54378
  const t = this.ensureArray(e?.["a:avLst"]?.["a:gd"]);
@@ -54344,7 +54391,7 @@ var _B = class e extends SB {
54344
54391
  if (a) {
54345
54392
  const e = Number.parseInt(a[1], 10);
54346
54393
  Number.isFinite(e) && (i = e);
54347
- } else i = CB(n, t, r);
54394
+ } else i = _B(n, t, r);
54348
54395
  }
54349
54396
  void 0 !== i && (n[t] = i, r.set(t, i));
54350
54397
  }
@@ -54537,7 +54584,7 @@ var _B = class e extends SB {
54537
54584
  extractShapeStyle(e, t) {
54538
54585
  return this.shapeStyleExtractor.extractShapeStyle(e, t);
54539
54586
  }
54540
- }, kB = class e extends _B {
54587
+ }, PB = class e extends kB {
54541
54588
  async parseShapeWithImageFill(t, n, r) {
54542
54589
  try {
54543
54590
  const i = od(t, "p:spPr"), a = this.extractPlaceholderInfo(ud(t, "p:nvSpPr", "p:nvPr")), o = a ? this.findPlaceholderContext(r, a) : void 0, s = o?.shape?.["p:spPr"] || o?.picture?.["p:spPr"], l = this.mergeXmlObjects(s, i), c = l?.["a:xfrm"] || i?.["a:xfrm"] || s?.["a:xfrm"];
@@ -54613,7 +54660,7 @@ var _B = class e extends SB {
54613
54660
  const t = String(e ?? "").trim().toLowerCase();
54614
54661
  if (0 !== t.length && "horz" !== t) return "vert" === t ? "vertical" : "vert270" === t ? "vertical270" : "eavert" === t ? "eaVert" : "wordartvert" === t ? "wordArtVert" : "wordartvertrtl" === t ? "wordArtVertRtl" : "mongolianvert" === t ? "mongolianVert" : void 0;
54615
54662
  }
54616
- }, PB = class extends kB {
54663
+ }, LB = class extends PB {
54617
54664
  applyPlaceholderBodyDefaults(e, t) {
54618
54665
  if (void 0 === e.bodyInsetLeft && void 0 !== t.bodyInsetLeft && (e.bodyInsetLeft = t.bodyInsetLeft), void 0 === e.bodyInsetTop && void 0 !== t.bodyInsetTop && (e.bodyInsetTop = t.bodyInsetTop), void 0 === e.bodyInsetRight && void 0 !== t.bodyInsetRight && (e.bodyInsetRight = t.bodyInsetRight), void 0 === e.bodyInsetBottom && void 0 !== t.bodyInsetBottom && (e.bodyInsetBottom = t.bodyInsetBottom), void 0 === e.vAlign && t.textAnchor) {
54619
54666
  const n = this.textVerticalAlignFromDrawingValue(t.textAnchor);
@@ -54655,7 +54702,7 @@ var _B = class e extends SB {
54655
54702
  }
54656
54703
  void 0 === e.paragraphMarginLeft && void 0 !== t.marginLeft && (e.paragraphMarginLeft = t.marginLeft), void 0 === e.paragraphIndent && void 0 !== t.indent && (e.paragraphIndent = t.indent), void 0 === e.lineSpacing && void 0 === e.lineSpacingExactPt && (void 0 !== t.lineSpacing ? e.lineSpacing = t.lineSpacing : void 0 !== t.lineSpacingExactPt && (e.lineSpacingExactPt = t.lineSpacingExactPt)), void 0 === e.paragraphSpacingBefore && void 0 !== t.spaceBefore && (e.paragraphSpacingBefore = t.spaceBefore), void 0 === e.paragraphSpacingAfter && void 0 !== t.spaceAfter && (e.paragraphSpacingAfter = t.spaceAfter), void 0 === e.align && void 0 !== t.alignment && (e.align = t.alignment);
54657
54704
  }
54658
- }, LB = class extends PB {
54705
+ }, AB = class extends LB {
54659
54706
  resolveParagraphBulletInfo(e, t, n, r, i = !1, a, o) {
54660
54707
  if (!e) return null;
54661
54708
  const s = e["a:pPr"];
@@ -54770,7 +54817,7 @@ var _B = class e extends SB {
54770
54817
  formatAutoNumber(e, t) {
54771
54818
  return `${Rb(e, t)} `;
54772
54819
  }
54773
- }, AB = class e extends LB {
54820
+ }, IB = class e extends AB {
54774
54821
  parseShapeLocks(e) {
54775
54822
  if (!e) return;
54776
54823
  const t = {};
@@ -54909,7 +54956,7 @@ var _B = class e extends SB {
54909
54956
  selectAlternateContentBranch(e) {
54910
54957
  return Bm(e);
54911
54958
  }
54912
- }, IB = class e extends AB {
54959
+ }, MB = class e extends IB {
54913
54960
  withoutDefaultRunProperties(e) {
54914
54961
  if (!e || "object" != typeof e) return;
54915
54962
  const t = { ...e };
@@ -55041,7 +55088,7 @@ var _B = class e extends SB {
55041
55088
  }
55042
55089
  };
55043
55090
  }
55044
- }, MB = /* @__PURE__ */ new Set([
55091
+ }, FB = /* @__PURE__ */ new Set([
55045
55092
  "a:r",
55046
55093
  "a:fld",
55047
55094
  "a:t",
@@ -55050,7 +55097,7 @@ var _B = class e extends SB {
55050
55097
  "m:oMath",
55051
55098
  "mc:AlternateContent",
55052
55099
  "a:br"
55053
- ]), FB = class extends IB {
55100
+ ]), RB = class extends MB {
55054
55101
  collectShapeParagraphContent(e, t, n, r, i, a) {
55055
55102
  const o = [], s = [];
55056
55103
  let l;
@@ -55132,7 +55179,7 @@ var _B = class e extends SB {
55132
55179
  for (const e of r) y(e);
55133
55180
  const i = this.ensureArray(t["a:fld"]);
55134
55181
  for (const e of i) x(e);
55135
- }, { entries: w, authored: S } = aT(e, MB, (e) => this.ensureArray(e)), v = this.ensureArray(e["a:r"]).length, C = this.ensureArray(e["a:br"]).length, _ = !S && v > 1 && C > 0;
55182
+ }, { entries: w, authored: S } = aT(e, FB, (e) => this.ensureArray(e)), v = this.ensureArray(e["a:r"]).length, C = this.ensureArray(e["a:br"]).length, _ = !S && v > 1 && C > 0;
55136
55183
  let k = 0;
55137
55184
  for (const [t, n] of w) switch (t) {
55138
55185
  case "a:r":
@@ -55269,7 +55316,7 @@ var _B = class e extends SB {
55269
55316
  };
55270
55317
  }
55271
55318
  }
55272
- }, RB = class e extends FB {
55319
+ }, DB = class e extends RB {
55273
55320
  parseShape(t, n, r) {
55274
55321
  try {
55275
55322
  const i = t["p:spPr"], a = r ? this.slideRelsMap.get(r) : void 0, o = this.extractPlaceholderInfo(t?.["p:nvSpPr"]?.["p:nvPr"]), s = r && o ? this.findPlaceholderContext(r, o) : void 0, l = s?.shape?.["p:spPr"] || s?.picture?.["p:spPr"], c = i ? {
@@ -55399,19 +55446,19 @@ var _B = class e extends SB {
55399
55446
  return console.warn(`[pptx] Skipping shape element (${n}):`, e), null;
55400
55447
  }
55401
55448
  }
55402
- }, DB = -2147483648, NB = 2147483647;
55403
- function BB(e) {
55449
+ }, NB = -2147483648, BB = 2147483647;
55450
+ function OB(e) {
55404
55451
  const t = parseInt(String(e ?? ""), 10);
55405
- return Number.isFinite(t) ? t < DB ? DB : t > NB ? NB : t : 0;
55452
+ return Number.isFinite(t) ? t < NB ? NB : t > BB ? BB : t : 0;
55406
55453
  }
55407
- var OB = class e extends RB {
55454
+ var EB = class e extends DB {
55408
55455
  async parsePicture(t, n, r) {
55409
55456
  try {
55410
55457
  const i = t["p:spPr"], a = this.extractPlaceholderInfo(t?.["p:nvPicPr"]?.["p:nvPr"]), o = a ? this.findPlaceholderContext(r, a) : void 0, s = o?.picture?.["p:spPr"] || o?.shape?.["p:spPr"], l = this.mergeXmlObjects(s, i), c = l?.["a:xfrm"] || i?.["a:xfrm"] || s?.["a:xfrm"];
55411
55458
  if (!c) return null;
55412
55459
  const d = od(c, "a:off"), p = od(c, "a:ext");
55413
55460
  if (!d || !p) return null;
55414
- const h = Math.round(BB(dd(d, "x")) / e.EMU_PER_PX), u = Math.round(BB(dd(d, "y")) / e.EMU_PER_PX), m = Math.round(BB(dd(p, "cx")) / e.EMU_PER_PX), f = Math.round(BB(dd(p, "cy")) / e.EMU_PER_PX), g = c["@_rot"] ? BB(c["@_rot"]) / 6e4 : void 0, y = c["@_skewX"] ? BB(c["@_skewX"]) / 6e4 : void 0, x = c["@_skewY"] ? BB(c["@_skewY"]) / 6e4 : void 0, { flipHorizontal: b, flipVertical: T } = this.readFlipState(c), w = t?.["p:nvPicPr"]?.["p:nvPr"], S = Qx(w, this.externalRelsMap.get(r));
55461
+ const h = Math.round(OB(dd(d, "x")) / e.EMU_PER_PX), u = Math.round(OB(dd(d, "y")) / e.EMU_PER_PX), m = Math.round(OB(dd(p, "cx")) / e.EMU_PER_PX), f = Math.round(OB(dd(p, "cy")) / e.EMU_PER_PX), g = c["@_rot"] ? OB(c["@_rot"]) / 6e4 : void 0, y = c["@_skewX"] ? OB(c["@_skewX"]) / 6e4 : void 0, x = c["@_skewY"] ? OB(c["@_skewY"]) / 6e4 : void 0, { flipHorizontal: b, flipVertical: T } = this.readFlipState(c), w = t?.["p:nvPicPr"]?.["p:nvPr"], S = Qx(w, this.externalRelsMap.get(r));
55415
55462
  if (S) {
55416
55463
  this.compatibilityService.inspectMediaReferenceCompatibility(S.kind, r, n);
55417
55464
  const e = S.relationshipId;
@@ -55521,7 +55568,7 @@ var OB = class e extends RB {
55521
55568
  return console.warn(`[pptx] Skipping picture element (${n}):`, e), null;
55522
55569
  }
55523
55570
  }
55524
- }, EB = class e extends OB {
55571
+ }, jB = class e extends EB {
55525
55572
  static ELEMENT_TAGS = /* @__PURE__ */ new Set([
55526
55573
  "p:sp",
55527
55574
  "p:pic",
@@ -55744,7 +55791,7 @@ var OB = class e extends RB {
55744
55791
  parseGroupShapeAsGroup(e, t, n, r, i) {
55745
55792
  throw new Error("parseGroupShapeAsGroup not yet initialised");
55746
55793
  }
55747
- }, jB = class e extends EB {
55794
+ }, $B = class e extends jB {
55748
55795
  async parseGroupShape(t, n, r, i, a = 0) {
55749
55796
  if (a > 32) return this.compatibilityService.reportWarning({
55750
55797
  code: "group-depth-exceeded",
@@ -55839,7 +55886,7 @@ var OB = class e extends RB {
55839
55886
  extractGradientFillColor(e) {
55840
55887
  return this.colorStyleCodec.extractGradientFillColor(e);
55841
55888
  }
55842
- }, $B = class extends jB {
55889
+ }, zB = class extends $B {
55843
55890
  parseConnectorTextBody(e, t) {
55844
55891
  if (!e) return null;
55845
55892
  const n = this.ensureArray(e["a:p"]);
@@ -55895,12 +55942,12 @@ var OB = class e extends RB {
55895
55942
  const i = t ? `${t}-` : "";
55896
55943
  return this.parseSpTreeChildren(n, t, r, "p:spTree", i);
55897
55944
  }
55898
- }, zB = {
55945
+ }, XB = {
55899
55946
  bg1: "lt1",
55900
55947
  tx1: "dk1",
55901
55948
  bg2: "lt2",
55902
55949
  tx2: "dk2"
55903
- }, XB = class extends $B {
55950
+ }, UB = class extends zB {
55904
55951
  reResolveGradientWithPhClr(e, t) {
55905
55952
  throw new Error("reResolveGradientWithPhClr not yet initialised");
55906
55953
  }
@@ -55940,7 +55987,7 @@ var OB = class e extends RB {
55940
55987
  return this.themeColorMap[t] || this.getDefaultSchemeColorMap()[t];
55941
55988
  }
55942
55989
  } else {
55943
- const e = zB[t];
55990
+ const e = XB[t];
55944
55991
  if (e) return this.themeColorMap[e] || this.themeColorMap[n(t)] || this.getDefaultSchemeColorMap()[n(t)];
55945
55992
  }
55946
55993
  return this.themeColorMap[n(t)] || this.getDefaultSchemeColorMap()[n(t)];
@@ -56009,7 +56056,7 @@ var OB = class e extends RB {
56009
56056
  parseColorChoice(e, t) {
56010
56057
  return this.colorStyleCodec.parseColorChoice(e, t);
56011
56058
  }
56012
- }, UB = class extends XB {
56059
+ }, GB = class extends UB {
56013
56060
  async extractBackgroundImage(e, t, n = "p:sld") {
56014
56061
  try {
56015
56062
  const r = dd(ud(e, n, "p:cSld", "p:bg", "p:bgPr", "a:blipFill", "a:blip"), "r:embed");
@@ -56185,7 +56232,7 @@ var OB = class e extends RB {
56185
56232
  }
56186
56233
  }
56187
56234
  }
56188
- }, GB = class extends UB {
56235
+ }, WB = class extends GB {
56189
56236
  async getLayoutBackgroundGradient(e) {
56190
56237
  const t = this.slideRelsMap.get(e);
56191
56238
  if (t) {
@@ -56362,7 +56409,7 @@ var OB = class e extends RB {
56362
56409
  notesCSldName: y
56363
56410
  };
56364
56411
  }
56365
- }, WB = class e extends GB {
56412
+ }, VB = class e extends WB {
56366
56413
  parsePlaceholderLevelStyle(t) {
56367
56414
  if (!t) return null;
56368
56415
  const n = {}, r = String(t["@_algn"] || "").trim().toLowerCase();
@@ -56431,7 +56478,7 @@ var OB = class e extends RB {
56431
56478
  }
56432
56479
  return Object.keys(n).length > 0 ? n : null;
56433
56480
  }
56434
- }, VB = class e extends WB {
56481
+ }, HB = class e extends VB {
56435
56482
  extractPlaceholderDefaultsFromShape(t) {
56436
56483
  const r = t["p:nvSpPr"]?.["p:nvPr"]?.["p:ph"];
56437
56484
  if (!r) return null;
@@ -56507,12 +56554,12 @@ var OB = class e extends RB {
56507
56554
  return o;
56508
56555
  }
56509
56556
  };
56510
- function HB(e) {
56557
+ function qB(e) {
56511
56558
  if (!e) return;
56512
56559
  const t = {};
56513
56560
  return void 0 !== e["@_hdr"] && (t.hasHeader = "0" !== String(e["@_hdr"])), void 0 !== e["@_ftr"] && (t.hasFooter = "0" !== String(e["@_ftr"])), void 0 !== e["@_dt"] && (t.hasDateTime = "0" !== String(e["@_dt"])), void 0 !== e["@_sldNum"] && (t.hasSlideNumber = "0" !== String(e["@_sldNum"])), Object.keys(t).length > 0 ? t : void 0;
56514
56561
  }
56515
- var qB = class extends VB {
56562
+ var YB = class extends HB {
56516
56563
  parseTextListStyle(e) {
56517
56564
  if (!e) return;
56518
56565
  const t = {}, n = this.parsePlaceholderLevelStyle(e["a:defPPr"]);
@@ -56543,7 +56590,7 @@ var qB = class extends VB {
56543
56590
  if (!n) continue;
56544
56591
  const r = this.parseMasterTxStyles(n);
56545
56592
  r && (t.txStyles = r, this.masterTxStylesCache.set(t.path, r));
56546
- const i = HB(n["p:hf"]);
56593
+ const i = qB(n["p:hf"]);
56547
56594
  i && (t.headerFooter = i);
56548
56595
  } catch (e) {
56549
56596
  console.warn("Failed to parse master txStyles:", e);
@@ -56635,7 +56682,7 @@ var qB = class extends VB {
56635
56682
  return console.warn("Failed to parse master:", e), [];
56636
56683
  }
56637
56684
  }
56638
- }, YB = class extends qB {
56685
+ }, ZB = class extends YB {
56639
56686
  async enrichMasterPartElements(e, t) {
56640
56687
  if (!e) return;
56641
56688
  const n = e.path;
@@ -56698,7 +56745,7 @@ var qB = class extends VB {
56698
56745
  r || (r = /* @__PURE__ */ new Map(), sk.set(e, r)), r.set(t, n);
56699
56746
  })(this, e, i);
56700
56747
  }
56701
- }, ZB = class extends YB {
56748
+ }, KB = class extends ZB {
56702
56749
  async getLayoutElements(e) {
56703
56750
  const t = this.slideRelsMap.get(e);
56704
56751
  if (!t) return [];
@@ -56778,7 +56825,7 @@ var qB = class extends VB {
56778
56825
  return console.warn("Failed to parse layout:", e), [];
56779
56826
  }
56780
56827
  }
56781
- }, KB = class extends ZB {
56828
+ }, JB = class extends KB {
56782
56829
  layoutPreviewCache = /* @__PURE__ */ new Map();
56783
56830
  async getLayoutPreview(e) {
56784
56831
  const t = this.layoutPreviewCache.get(e);
@@ -56820,14 +56867,14 @@ var qB = class extends VB {
56820
56867
  const r = this.resolveMasterPathForLayout(e), i = r ? this.masterXmlMap.get(r) : void 0, a = this.parseBackgroundColor(od(ud(i, "p:sldMaster", "p:cSld"), "p:bg"));
56821
56868
  return a ? { backgroundColor: a } : {};
56822
56869
  }
56823
- }, JB = [
56870
+ }, QB = [
56824
56871
  "a:solidFill",
56825
56872
  "a:gradFill",
56826
56873
  "a:pattFill",
56827
56874
  "a:noFill",
56828
56875
  "a:grpFill"
56829
56876
  ];
56830
- function QB(e, t) {
56877
+ function eO(e, t) {
56831
56878
  if (!e) return [];
56832
56879
  const n = new RegExp(`<${t.replace(":", "\\:")}\\b[^>]*>`), r = new RegExp(`</${t.replace(":", "\\:")}\\s*>`), i = n.exec(e);
56833
56880
  if (!i) return [];
@@ -56838,7 +56885,7 @@ function QB(e, t) {
56838
56885
  for (; null !== (d = c.exec(s));) l.push(`a:${d[1]}`);
56839
56886
  return l;
56840
56887
  }
56841
- var eO = class e extends KB {
56888
+ var tO = class e extends JB {
56842
56889
  buildFillStyleEntry(e, t) {
56843
56890
  switch (e) {
56844
56891
  case "a:solidFill": return {
@@ -56894,11 +56941,11 @@ var eO = class e extends KB {
56894
56941
  const t = e[i], a = n[i][t];
56895
56942
  a && (r.push(this.buildFillStyleEntry(i, a)), e[i] = t + 1);
56896
56943
  }
56897
- for (const t of JB) for (; e[t] < n[t].length;) r.push(this.buildFillStyleEntry(t, n[t][e[t]])), e[t] += 1;
56944
+ for (const t of QB) for (; e[t] < n[t].length;) r.push(this.buildFillStyleEntry(t, n[t][e[t]])), e[t] += 1;
56898
56945
  return r;
56899
56946
  }
56900
56947
  const r = [];
56901
- for (const e of JB) for (const t of n[e]) r.push(this.buildFillStyleEntry(e, t));
56948
+ for (const e of QB) for (const t of n[e]) r.push(this.buildFillStyleEntry(e, t));
56902
56949
  return r;
56903
56950
  }
56904
56951
  parseFillStyleList(e, t) {
@@ -57006,9 +57053,9 @@ var eO = class e extends KB {
57006
57053
  return i;
57007
57054
  });
57008
57055
  }
57009
- }, tO = class extends eO {
57056
+ }, nO = class extends tO {
57010
57057
  parseFormatScheme(e, t) {
57011
- const n = String(e["@_name"] || "").trim() || void 0, r = QB(t, "a:fillStyleLst"), i = QB(t, "a:bgFillStyleLst"), a = e["a:fillStyleLst"], o = this.parseFillStyleList(a, r), s = e["a:lnStyleLst"], l = this.parseLineStyleList(s), c = e["a:effectStyleLst"], d = this.parseEffectStyleList(c), p = e["a:bgFillStyleLst"];
57058
+ const n = String(e["@_name"] || "").trim() || void 0, r = eO(t, "a:fillStyleLst"), i = eO(t, "a:bgFillStyleLst"), a = e["a:fillStyleLst"], o = this.parseFillStyleList(a, r), s = e["a:lnStyleLst"], l = this.parseLineStyleList(s), c = e["a:effectStyleLst"], d = this.parseEffectStyleList(c), p = e["a:bgFillStyleLst"];
57012
57059
  return {
57013
57060
  name: n,
57014
57061
  fillStyles: o,
@@ -57097,7 +57144,7 @@ var eO = class e extends KB {
57097
57144
  return console.warn(`Failed to load theme override at ${n}:`, e), null;
57098
57145
  }
57099
57146
  }
57100
- }, nO = class extends tO {
57147
+ }, rO = class extends nO {
57101
57148
  resolveThemeEffectRef(e, t) {
57102
57149
  const n = parseInt(String(e["@_idx"] || "0"), 10);
57103
57150
  Number.isFinite(n) && n > 0 && (t.effectRefIdx = n);
@@ -57160,7 +57207,7 @@ var eO = class e extends KB {
57160
57207
  }
57161
57208
  }
57162
57209
  };
57163
- var rO = class extends nO {
57210
+ var iO = class extends rO {
57164
57211
  async resolvePrimaryThemePath() {
57165
57212
  const e = this.zip.file(/^ppt\/slideMasters\/slideMaster\d+\.xml$/);
57166
57213
  if (!e || 0 === e.length) return;
@@ -57374,7 +57421,7 @@ var rO = class extends nO {
57374
57421
  const t = await this.resolvePrimaryThemePath(), n = t ? e.find((e) => e.name === t) ?? e[0] : e[0], r = await this.parseThemePart(n.name);
57375
57422
  r && (this.themeColorMap = r.colorMap, this.themeFontMap = r.fontMap, r.formatScheme && (this.themeFormatScheme = r.formatScheme)), await this.applySlideMasterColorMap(this.getDefaultSchemeColorMap()), await this.loadPerMasterThemes(), this.globalThemeColorMapSnapshot = { ...this.themeColorMap }, this.globalThemeFontMapSnapshot = { ...this.themeFontMap }, this.globalThemeFormatSchemeSnapshot = this.themeFormatScheme;
57376
57423
  }
57377
- }, iO = class extends rO {
57424
+ }, aO = class extends iO {
57378
57425
  async getPrimaryThemeXml() {
57379
57426
  const e = this.zip.file(/^ppt\/theme\/theme\d+\.xml$/);
57380
57427
  if (!e || 0 === e.length) return;
@@ -57436,7 +57483,7 @@ var rO = class extends nO {
57436
57483
  async applyTheme(e, t, n) {
57437
57484
  await this.updateThemeColorScheme(e), await this.updateThemeFontScheme(t), n && await this.updateThemeName(n);
57438
57485
  }
57439
- }, aO = class e extends iO {
57486
+ }, oO = class e extends aO {
57440
57487
  async extractModernSlideComments(t) {
57441
57488
  try {
57442
57489
  const n = `${t.replace("slides/", "slides/_rels/")}.rels`, r = await this.zip.file(n)?.async("string");
@@ -57562,7 +57609,7 @@ var rO = class extends nO {
57562
57609
  const t = e.split(/\s+/).map((e) => e.trim()).filter((e) => e.length > 0);
57563
57610
  return 0 === t.length ? "U" : t.slice(0, 2).map((e) => e[0].toUpperCase()).join("");
57564
57611
  }
57565
- }, oO = class extends aO {
57612
+ }, sO = class extends oO {
57566
57613
  async readXmlPartByRelationshipId(e, t) {
57567
57614
  const n = String(t || "").trim();
57568
57615
  if (0 === n.length) return;
@@ -57694,14 +57741,14 @@ var rO = class extends nO {
57694
57741
  return n ? n.startsWith("#") ? n : `#${n}` : void 0;
57695
57742
  }
57696
57743
  };
57697
- function sO(e, t) {
57744
+ function lO(e, t) {
57698
57745
  for (const n of e ?? []) {
57699
57746
  n.endParaRPr && (n.endParaStyle = t(n.endParaRPr));
57700
57747
  for (const e of n.items) "run" === e.kind && e.run.rPr ? e.run.style = t(e.run.rPr) : "field" !== e.kind && "break" !== e.kind || !e.rPr || (e.style = t(e.rPr));
57701
57748
  }
57702
57749
  return e;
57703
57750
  }
57704
- var lO = class e extends oO {
57751
+ var cO = class e extends sO {
57705
57752
  reportIncompleteSmartArtRelationships(e, t, n) {
57706
57753
  const r = [
57707
57754
  ["dm", t?.dataRelId],
@@ -57879,7 +57926,7 @@ var lO = class e extends oO {
57879
57926
  fontSize: n,
57880
57927
  fontColor: r
57881
57928
  };
57882
- }(C, this.drawingShapeStyleDeps()), A = C ? sO($c({ "dgm:t": C }), (e) => this.extractTextRunStyle(e, void 0, void 0, !1)) : void 0, I = A ? zc(A) : k, M = A ? Od({
57929
+ }(C, this.drawingShapeStyleDeps()), A = C ? lO($c({ "dgm:t": C }), (e) => this.extractTextRunStyle(e, void 0, void 0, !1)) : void 0, I = A ? zc(A) : k, M = A ? Od({
57883
57930
  id: String(e["@_modelId"] || `dsp-${t}`),
57884
57931
  text: I ?? "",
57885
57932
  paragraphs: A
@@ -57921,7 +57968,7 @@ var lO = class e extends oO {
57921
57968
  };
57922
57969
  }
57923
57970
  };
57924
- async function cO(e, t, n) {
57971
+ async function dO(e, t, n) {
57925
57972
  const r = e.filter((e) => e.fillBlipEmbedId && !e.fillImageUrl);
57926
57973
  if (0 === r.length) return;
57927
57974
  const i = t.replace(/\/[^/]+$/u, ""), a = t.split("/").pop() ?? "", o = await n.readText(`${i}/_rels/${a}.rels`);
@@ -57945,7 +57992,7 @@ async function cO(e, t, n) {
57945
57992
  a && (e.fillImageUrl = a);
57946
57993
  }
57947
57994
  }
57948
- async function dO(e, t) {
57995
+ async function pO(e, t) {
57949
57996
  const n = await t.readText(e);
57950
57997
  if (!n) return [];
57951
57998
  try {
@@ -57981,12 +58028,12 @@ async function dO(e, t) {
57981
58028
  }
57982
58029
  o.push(i);
57983
58030
  }
57984
- }), await cO(o, e, t), o;
58031
+ }), await dO(o, e, t), o;
57985
58032
  } catch {
57986
58033
  return [];
57987
58034
  }
57988
58035
  }
57989
- var pO = {
58036
+ var hO = {
57990
58037
  list: "list",
57991
58038
  process: "process",
57992
58039
  cycle: "cycle",
@@ -57994,7 +58041,7 @@ var pO = {
57994
58041
  relationship: "relationship",
57995
58042
  matrix: "matrix",
57996
58043
  pyramid: "pyramid"
57997
- }, hO = [
58044
+ }, uO = [
57998
58045
  [/hier|org/u, "hierarchy"],
57999
58046
  [/cycle|radial|circular/u, "cycle"],
58000
58047
  [/process|flow|chevron|arrow|equation/u, "process"],
@@ -58007,7 +58054,7 @@ var pO = {
58007
58054
  [/target/u, "target"],
58008
58055
  [/list/u, "list"]
58009
58056
  ];
58010
- var uO = class e extends lO {
58057
+ var mO = class e extends cO {
58011
58058
  async getSmartArtDataForGraphicFrame(e, t) {
58012
58059
  const n = this.xmlLookupService.getChildByLocalName(this.xmlLookupService.getChildByLocalName(t, "graphic"), "graphicData");
58013
58060
  if (!this.xmlLookupService.getChildByLocalName(n, "relIds")) return;
@@ -58031,7 +58078,7 @@ var uO = class e extends lO {
58031
58078
  if (0 === t.length) return null;
58032
58079
  const n = String(e?.["@_type"] || "").trim() || void 0, r = [];
58033
58080
  this.collectLocalTextValues(e, "t", r);
58034
- const i = sO($c(e), (e) => this.extractTextRunStyle(e, void 0, void 0, !1)), a = Xc(i), o = i ? zc(i) : r.join(""), s = this.extractSmartArtNodeStyle(e);
58081
+ const i = lO($c(e), (e) => this.extractTextRunStyle(e, void 0, void 0, !1)), a = Xc(i), o = i ? zc(i) : r.join(""), s = this.extractSmartArtNodeStyle(e);
58035
58082
  return {
58036
58083
  id: t,
58037
58084
  text: o,
@@ -58066,12 +58113,12 @@ var uO = class e extends lO {
58066
58113
  };
58067
58114
  }(f, (e) => this.compatibilityService.getXmlLocalName(e)), y = this.xmlLookupService.getChildrenArrayByLocalName(this.xmlLookupService.getChildByLocalName(f, "catLst"), "cat").map((e) => String(e?.["@_type"] || "")), x = function(e, t) {
58068
58115
  for (const e of t) {
58069
- const t = pO[e.trim().toLowerCase()];
58116
+ const t = hO[e.trim().toLowerCase()];
58070
58117
  if (t) return t;
58071
58118
  }
58072
58119
  const n = e.toLowerCase();
58073
58120
  if (n.length > 0) {
58074
- for (const [e, t] of hO) if (e.test(n)) return t;
58121
+ for (const [e, t] of uO) if (e.test(n)) return t;
58075
58122
  }
58076
58123
  }(String(f?.["@_uniqueId"] || ""), y), b = this.parseSmartArtChrome(o), T = r?.colorsRelId ?? "", w = await this.parseSmartArtColorTransform(e, T), S = this.xmlLookupService.getChildByLocalName(o, "extLst"), v = this.xmlLookupService.getChildrenArrayByLocalName(S, "ext").map((e) => this.xmlLookupService.getChildByLocalName(e, "dataModelExt")).find(Boolean), C = String(v?.["@_relId"] || "").trim(), _ = await this.resolveSmartArtDrawingPart(e, i, C), k = _ ? await this.parseSmartArtDrawingShapesFromPath(_.path) : [], P = _?.relId, L = r?.styleRelId ?? "", A = await this.parseSmartArtQuickStyle(e, L);
58077
58124
  return {
@@ -58124,7 +58171,7 @@ var uO = class e extends lO {
58124
58171
  }
58125
58172
  }
58126
58173
  async parseSmartArtDrawingShapesFromPath(e) {
58127
- return dO(e, this.drawingBlipDeps());
58174
+ return pO(e, this.drawingBlipDeps());
58128
58175
  }
58129
58176
  drawingBlipDeps() {
58130
58177
  return {
@@ -58139,7 +58186,7 @@ var uO = class e extends lO {
58139
58186
  getImageData: (e) => this.getImageData(e)
58140
58187
  };
58141
58188
  }
58142
- }, mO = class extends uO {
58189
+ }, fO = class extends mO {
58143
58190
  detectChartType(e) {
58144
58191
  if (!e) return "unknown";
58145
58192
  const t = {
@@ -58213,19 +58260,19 @@ var uO = class e extends lO {
58213
58260
  return r.length > 0 ? r[0] : "Series";
58214
58261
  }
58215
58262
  };
58216
- function fO(e) {
58263
+ function gO(e) {
58217
58264
  if (!e) return;
58218
58265
  const t = e["@_val"];
58219
58266
  return null == t || "" === t || "0" !== t && "false" !== t;
58220
58267
  }
58221
- function gO(e) {
58268
+ function yO(e) {
58222
58269
  if (!e) return;
58223
58270
  const t = e["@_val"];
58224
58271
  if (null == t || "" === t) return;
58225
58272
  const n = Number.parseFloat(String(t));
58226
58273
  return Number.isFinite(n) ? n : void 0;
58227
58274
  }
58228
- var yO = class extends mO {
58275
+ var xO = class extends fO {
58229
58276
  parsePlotVisOnly(e) {
58230
58277
  if (!e) return;
58231
58278
  const t = this.xmlLookupService.getChildByLocalName(e, "plotVisOnly");
@@ -58252,16 +58299,16 @@ var yO = class extends mO {
58252
58299
  const e = String(a);
58253
58300
  "auto" !== e && "cust" !== e && "percent" !== e && "pos" !== e && "val" !== e || (r.splitType = e);
58254
58301
  }
58255
- const o = gO(this.xmlLookupService.getChildByLocalName(e, "splitPos"));
58302
+ const o = yO(this.xmlLookupService.getChildByLocalName(e, "splitPos"));
58256
58303
  void 0 !== o && (r.splitPos = o);
58257
- const s = gO(this.xmlLookupService.getChildByLocalName(e, "secondPieSize"));
58304
+ const s = yO(this.xmlLookupService.getChildByLocalName(e, "secondPieSize"));
58258
58305
  void 0 !== s && (r.secondPieSize = s);
58259
- const l = gO(this.xmlLookupService.getChildByLocalName(e, "gapWidth"));
58306
+ const l = yO(this.xmlLookupService.getChildByLocalName(e, "gapWidth"));
58260
58307
  void 0 !== l && (r.gapWidth = l);
58261
58308
  this.xmlLookupService.getChildrenArrayByLocalName(e, "serLines").length > 0 && (r.serLines = !0);
58262
58309
  const c = this.xmlLookupService.getChildByLocalName(e, "custSplit");
58263
58310
  if (c) {
58264
- const e = this.xmlLookupService.getChildrenArrayByLocalName(c, "secondPiePt").map((e) => gO(e)).filter((e) => void 0 !== e && Number.isFinite(e));
58311
+ const e = this.xmlLookupService.getChildrenArrayByLocalName(c, "secondPiePt").map((e) => yO(e)).filter((e) => void 0 !== e && Number.isFinite(e));
58265
58312
  e.length > 0 && (r.custSplit = e);
58266
58313
  }
58267
58314
  return r;
@@ -58270,29 +58317,29 @@ var yO = class extends mO {
58270
58317
  if (!e) return;
58271
58318
  const t = this.xmlLookupService.getChildByLocalName(e, "view3D");
58272
58319
  if (!t) return;
58273
- const n = {}, r = gO(this.xmlLookupService.getChildByLocalName(t, "rotX"));
58320
+ const n = {}, r = yO(this.xmlLookupService.getChildByLocalName(t, "rotX"));
58274
58321
  void 0 !== r && (n.rotX = r);
58275
- const i = gO(this.xmlLookupService.getChildByLocalName(t, "rotY"));
58322
+ const i = yO(this.xmlLookupService.getChildByLocalName(t, "rotY"));
58276
58323
  void 0 !== i && (n.rotY = i);
58277
- const a = gO(this.xmlLookupService.getChildByLocalName(t, "depthPercent"));
58324
+ const a = yO(this.xmlLookupService.getChildByLocalName(t, "depthPercent"));
58278
58325
  void 0 !== a && (n.depthPercent = a);
58279
- const o = gO(this.xmlLookupService.getChildByLocalName(t, "perspective"));
58326
+ const o = yO(this.xmlLookupService.getChildByLocalName(t, "perspective"));
58280
58327
  void 0 !== o && (n.perspective = o);
58281
- const s = gO(this.xmlLookupService.getChildByLocalName(t, "hPercent"));
58328
+ const s = yO(this.xmlLookupService.getChildByLocalName(t, "hPercent"));
58282
58329
  void 0 !== s && (n.hPercent = s);
58283
- const l = fO(this.xmlLookupService.getChildByLocalName(t, "rAngAx"));
58330
+ const l = gO(this.xmlLookupService.getChildByLocalName(t, "rAngAx"));
58284
58331
  return void 0 !== l && (n.rAngAx = l), Object.keys(n).length > 0 ? n : void 0;
58285
58332
  }
58286
58333
  parseChartChrome(e) {
58287
58334
  if (!e) return;
58288
- const t = {}, n = fO(this.xmlLookupService.getChildByLocalName(e, "autoTitleDeleted"));
58335
+ const t = {}, n = gO(this.xmlLookupService.getChildByLocalName(e, "autoTitleDeleted"));
58289
58336
  void 0 !== n && (t.autoTitleDeleted = n);
58290
58337
  const i = this.xmlLookupService.getChildByLocalName(e, "dispBlanksAs")?.["@_val"];
58291
58338
  if (null != i) {
58292
58339
  const e = String(i);
58293
58340
  "gap" !== e && "zero" !== e && "span" !== e || (t.dispBlanksAs = e);
58294
58341
  }
58295
- const a = fO(this.xmlLookupService.getChildByLocalName(e, "showDLblsOverMax"));
58342
+ const a = gO(this.xmlLookupService.getChildByLocalName(e, "showDLblsOverMax"));
58296
58343
  return void 0 !== a && (t.showDLblsOverMax = a), Object.keys(t).length > 0 ? t : void 0;
58297
58344
  }
58298
58345
  parseUserShapesXml(e) {
@@ -58311,7 +58358,7 @@ var yO = class extends mO {
58311
58358
  for (const [e, r] of Object.entries(t)) e.startsWith("@_") && null != r && (n[e.slice(2)] = String(r));
58312
58359
  return Object.keys(n).length > 0 ? n : void 0;
58313
58360
  }
58314
- }, xO = class extends yO {
58361
+ }, bO = class extends xO {
58315
58362
  async parseChartExternalData(e, t) {
58316
58363
  if (!e) return;
58317
58364
  const n = this.xmlLookupService.getChildByLocalName(e, "externalData");
@@ -58416,7 +58463,7 @@ var yO = class extends mO {
58416
58463
  return [];
58417
58464
  }
58418
58465
  }
58419
- }, bO = class extends xO {
58466
+ }, TO = class extends bO {
58420
58467
  async parseChartColorStyle(e) {
58421
58468
  try {
58422
58469
  const t = (await this.readChartRels(e)).find((e) => e.type.includes("chartColorStyle") || e.type.includes("chartColor"));
@@ -58465,14 +58512,14 @@ var yO = class extends mO {
58465
58512
  const n = this.themeColorMap[t];
58466
58513
  return n ? n.startsWith("#") ? n : `#${n}` : void 0;
58467
58514
  }
58468
- }, TO = /* @__PURE__ */ new Set([
58515
+ }, wO = /* @__PURE__ */ new Set([
58469
58516
  "none",
58470
58517
  "line",
58471
58518
  "lineMarker",
58472
58519
  "marker",
58473
58520
  "smooth",
58474
58521
  "smoothMarker"
58475
- ]), wO = class extends bO {
58522
+ ]), SO = class extends TO {
58476
58523
  async getChartDataForGraphicFrame(e, t) {
58477
58524
  const n = this.xmlLookupService.getChildByLocalName(this.xmlLookupService.getChildByLocalName(t, "graphic"), "graphicData"), r = this.xmlLookupService.getChildByLocalName(n, "chart"), i = String(r?.["@_r:id"] || "").trim();
58478
58525
  if (0 === i.length) return;
@@ -58515,7 +58562,7 @@ var yO = class extends mO {
58515
58562
  const e = String(v["@_val"]).trim();
58516
58563
  S = "stacked" === e ? "stacked" : "percentStacked" === e ? "percentStacked" : "clustered";
58517
58564
  }
58518
- const C = this.parseChartBoolVal(m, "varyColors"), _ = this.parseChartNumberVal(m, "firstSliceAng"), k = this.parseChartNumberVal(m, "holeSize"), P = this.parseChartNumberVal(m, "gapWidth"), L = this.parseChartNumberVal(m, "overlap"), A = this.xmlLookupService.getChildByLocalName(m, "scatterStyle"), I = String(A?.["@_val"] ?? "").trim(), M = TO.has(I) ? I : void 0;
58565
+ const C = this.parseChartBoolVal(m, "varyColors"), _ = this.parseChartNumberVal(m, "firstSliceAng"), k = this.parseChartNumberVal(m, "holeSize"), P = this.parseChartNumberVal(m, "gapWidth"), L = this.parseChartNumberVal(m, "overlap"), A = this.xmlLookupService.getChildByLocalName(m, "scatterStyle"), I = String(A?.["@_val"] ?? "").trim(), M = wO.has(I) ? I : void 0;
58519
58566
  let F;
58520
58567
  const R = this.xmlLookupService.getChildByLocalName(m, "barDir");
58521
58568
  void 0 !== R?.["@_val"] && (F = "bar" === String(R["@_val"]).trim() ? "bar" : "col");
@@ -58808,7 +58855,7 @@ var yO = class extends mO {
58808
58855
  ...v ? { protection: v } : {}
58809
58856
  };
58810
58857
  }
58811
- }, SO = class extends wO {
58858
+ }, vO = class extends SO {
58812
58859
  parseEditorAnimations(e) {
58813
58860
  return this.editorAnimationService.parseEditorAnimations(e);
58814
58861
  }
@@ -58905,7 +58952,7 @@ var yO = class extends mO {
58905
58952
  return o && (a.lang = o), void 0 !== i["@_invalStChars"] && (a.invalStChars = i["@_invalStChars"]), void 0 !== i["@_invalEndChars"] && (a.invalEndChars = i["@_invalEndChars"]), a;
58906
58953
  }(this.presentationData ?? void 0);
58907
58954
  }
58908
- }, vO = class extends SO {
58955
+ }, CO = class extends vO {
58909
58956
  async getEmbeddedFonts(e) {
58910
58957
  if (!e || 0 === e.fonts.length) return [];
58911
58958
  const t = await this.loadPresentationFontRels();
@@ -59057,7 +59104,7 @@ var yO = class extends mO {
59057
59104
  }
59058
59105
  }
59059
59106
  }
59060
- }, CO = class t extends vO {
59107
+ }, _O = class t extends CO {
59061
59108
  isZipContainer(e) {
59062
59109
  const t = new Uint8Array(e);
59063
59110
  return !(t.byteLength < 4) && 80 === t[0] && 75 === t[1] && (3 === t[2] && 4 === t[3] || 5 === t[2] && 6 === t[3] || 7 === t[2] && 8 === t[3]);
@@ -59248,7 +59295,7 @@ var yO = class extends mO {
59248
59295
  parseSlideActiveXControls: (e) => this.parseSlideActiveXControls(e)
59249
59296
  }) : [];
59250
59297
  }
59251
- }, _O = class extends CO {
59298
+ }, kO = class extends _O {
59252
59299
  async buildLoadData(e, t, n) {
59253
59300
  const r = this.extractHeaderFooter(), i = await this.parsePresentationProperties(), a = await this.parseViewProperties();
59254
59301
  this.loadedViewProperties = a;
@@ -59481,7 +59528,7 @@ var yO = class extends mO {
59481
59528
  };
59482
59529
  return r.rawXml && this.extractBackgroundColor(r.rawXml) || p && (h.backgroundColor = p), n[e] = h, h;
59483
59530
  }
59484
- }, kO = class t extends _O {
59531
+ }, PO = class t extends kO {
59485
59532
  constructor(n = new Tv()) {
59486
59533
  super(), this.dependencyFactory = n, this.zip = new e(), this.parser = this.dependencyFactory.createParser(), this.builder = this.dependencyFactory.createBuilder(), this.elementXmlBuilder = new to({
59487
59534
  emuPerPx: t.EMU_PER_PX,
@@ -59571,12 +59618,12 @@ var yO = class extends mO {
59571
59618
  });
59572
59619
  this.xmlLookupService = i.xmlLookupService, this.compatibilityService = i.compatibilityService, this.slideLoaderService = i.slideLoaderService, this.templateBackgroundService = i.templateBackgroundService, this.slideTransitionService = i.slideTransitionService, this.editorAnimationService = i.editorAnimationService, this.nativeAnimationService = i.nativeAnimationService, this.animationWriteService = i.animationWriteService, this.documentPropertiesUpdater = i.documentPropertiesUpdater;
59573
59620
  }
59574
- }, PO = class extends kO {}, LO = class extends Error {
59621
+ }, LO = class extends PO {}, AO = class extends Error {
59575
59622
  constructor(e) {
59576
59623
  super(e), this.name = "PptParseError";
59577
59624
  }
59578
59625
  };
59579
- function AO(e, t) {
59626
+ function IO(e, t) {
59580
59627
  if (t < 0 || t + 8 > e.byteLength) return;
59581
59628
  const n = e.getUint16(t, !0);
59582
59629
  return {
@@ -59588,50 +59635,50 @@ function AO(e, t) {
59588
59635
  dataOffset: t + 8
59589
59636
  };
59590
59637
  }
59591
- function IO(e, t) {
59592
- const n = AO(e, t);
59593
- if (!n) throw new LO(`Record header out of bounds at offset ${t}`);
59638
+ function MO(e, t) {
59639
+ const n = IO(e, t);
59640
+ if (!n) throw new AO(`Record header out of bounds at offset ${t}`);
59594
59641
  return n;
59595
59642
  }
59596
- function MO(e) {
59643
+ function FO(e) {
59597
59644
  return 15 === e.recVer;
59598
59645
  }
59599
- function* FO(e, t, n) {
59646
+ function* RO(e, t, n) {
59600
59647
  let r = t;
59601
59648
  const i = Math.min(n, e.byteLength);
59602
59649
  for (; r + 8 <= i;) {
59603
- const t = AO(e, r);
59650
+ const t = IO(e, r);
59604
59651
  if (!t) return;
59605
59652
  if (t.dataOffset + t.recLen > i) return;
59606
59653
  yield t, r = t.dataOffset + t.recLen;
59607
59654
  }
59608
59655
  }
59609
- function* RO(e, t) {
59610
- yield* FO(e, t.dataOffset, t.dataOffset + t.recLen);
59611
- }
59612
- function DO(e, t, n, r) {
59613
- for (const i of RO(e, t)) if (i.recType === n && void 0 === r) return i;
59656
+ function* DO(e, t) {
59657
+ yield* RO(e, t.dataOffset, t.dataOffset + t.recLen);
59614
59658
  }
59615
59659
  function NO(e, t, n, r) {
59616
- for (const i of RO(e, t)) {
59660
+ for (const i of DO(e, t)) if (i.recType === n && void 0 === r) return i;
59661
+ }
59662
+ function BO(e, t, n, r) {
59663
+ for (const i of DO(e, t)) {
59617
59664
  if (i.recType === n && void 0 === r) return i;
59618
- if (MO(i)) {
59619
- const t = NO(e, i, n, r);
59665
+ if (FO(i)) {
59666
+ const t = BO(e, i, n, r);
59620
59667
  if (t) return t;
59621
59668
  }
59622
59669
  }
59623
59670
  }
59624
- var BO = 1e3, OO = 1001, EO = 1006, jO = 1007, $O = 1010, zO = 1011, XO = 1016, UO = 1035, GO = 1036, WO = 2005, VO = 2032, HO = 3011, qO = 3998, YO = 3999, ZO = 4e3, KO = 4001, JO = 4003, QO = 4008, eE = 4080, tE = 4085, nE = 4086, rE = 4023, iE = 6002, aE = 61441, oE = 61442, sE = 61443, lE = 61444, cE = 61447, dE = 61449, pE = 61450, hE = 61451, uE = 61453, mE = 61455, fE = 61456, gE = 61457, yE = 61464, xE = 61719, bE = 61466, TE = 61467, wE = 61468, SE = 61469, vE = 61470, CE = 61471, _E = 61481, kE = 61482, PE = 0, LE = 6;
59625
- function AE(e) {
59671
+ var OO = 1e3, EO = 1001, jO = 1006, $O = 1007, zO = 1010, XO = 1011, UO = 1016, GO = 1035, WO = 1036, VO = 2005, HO = 2032, qO = 3011, YO = 3998, ZO = 3999, KO = 4e3, JO = 4001, QO = 4003, eE = 4008, tE = 4080, nE = 4085, rE = 4086, iE = 4023, aE = 6002, oE = 61441, sE = 61442, lE = 61443, cE = 61444, dE = 61447, pE = 61449, hE = 61450, uE = 61451, mE = 61453, fE = 61455, gE = 61456, yE = 61457, xE = 61464, bE = 61719, TE = 61466, wE = 61467, SE = 61468, vE = 61469, CE = 61470, _E = 61471, kE = 61481, PE = 61482, LE = 0, AE = 6;
59672
+ function IE(e) {
59626
59673
  return Math.round(1587.5 * e);
59627
59674
  }
59628
- var IE = class extends Error {
59675
+ var ME = class extends Error {
59629
59676
  isEncrypted = !0;
59630
59677
  constructor(e = "This is a password-protected PowerPoint 97-2003 (.ppt) file. Encrypted .ppt files are not supported.") {
59631
59678
  super(e), this.name = "EncryptedPptError";
59632
59679
  }
59633
59680
  };
59634
- var ME = 0, FE = 1, RE = 2, DE = 3, NE = 4, BE = 5, OE = 6, EE = 7, jE = [
59681
+ var FE = 0, RE = 1, DE = 2, NE = 3, BE = 4, OE = 5, EE = 6, jE = 7, $E = [
59635
59682
  "FFFFFF",
59636
59683
  "000000",
59637
59684
  "808080",
@@ -59641,38 +59688,38 @@ var ME = 0, FE = 1, RE = 2, DE = 3, NE = 4, BE = 5, OE = 6, EE = 7, jE = [
59641
59688
  "009999",
59642
59689
  "99CC00"
59643
59690
  ];
59644
- function $E(e, t, n) {
59691
+ function zE(e, t, n) {
59645
59692
  return [
59646
59693
  e,
59647
59694
  t,
59648
59695
  n
59649
59696
  ].map((e) => (255 & e).toString(16).padStart(2, "0").toUpperCase()).join("");
59650
59697
  }
59651
- function zE(e, t) {
59698
+ function XE(e, t) {
59652
59699
  const n = [];
59653
59700
  for (let r = 0; r < 8 && 4 * (r + 1) <= t.recLen; r++) {
59654
59701
  const i = e.getUint32(t.dataOffset + 4 * r, !0);
59655
- n.push($E(255 & i, i >>> 8 & 255, i >>> 16 & 255));
59702
+ n.push(zE(255 & i, i >>> 8 & 255, i >>> 16 & 255));
59656
59703
  }
59657
- for (; n.length < 8;) n.push(jE[n.length]);
59704
+ for (; n.length < 8;) n.push($E[n.length]);
59658
59705
  return n;
59659
59706
  }
59660
- function XE(e, t) {
59661
- for (const n of RO(e, t)) if (n.recType === VO && 1 === n.recInstance) return zE(e, n);
59707
+ function UE(e, t) {
59708
+ for (const n of DO(e, t)) if (n.recType === HO && 1 === n.recInstance) return XE(e, n);
59662
59709
  }
59663
- function UE(e, t, n, r, i) {
59664
- return 254 === r ? $E(e, t, n) : 255 !== r ? r < i.length ? i[7 & r] : $E(e, t, n) : void 0;
59710
+ function GE(e, t, n, r, i) {
59711
+ return 254 === r ? zE(e, t, n) : 255 !== r ? r < i.length ? i[7 & r] : zE(e, t, n) : void 0;
59665
59712
  }
59666
- function GE(e, t) {
59713
+ function WE(e, t) {
59667
59714
  const n = e >>> 24 & 255;
59668
- if (8 & n) return t[7 & e] ?? jE[7 & e];
59669
- if (16 & n) return 240 === (255 & e) ? t[NE] : t[FE];
59670
- return $E(255 & e, e >>> 8 & 255, e >>> 16 & 255);
59715
+ if (8 & n) return t[7 & e] ?? $E[7 & e];
59716
+ if (16 & n) return 240 === (255 & e) ? t[BE] : t[RE];
59717
+ return zE(255 & e, e >>> 8 & 255, e >>> 16 & 255);
59671
59718
  }
59672
- function WE(e, t) {
59673
- const n = IO(e, t);
59674
- if (n.recType !== tE) throw new LO(`Expected UserEditAtom at offset ${t}, found recType 0x${n.recType.toString(16)}`);
59675
- if (28 !== n.recLen && 32 !== n.recLen) throw new LO(`UserEditAtom has invalid length ${n.recLen}`);
59719
+ function VE(e, t) {
59720
+ const n = MO(e, t);
59721
+ if (n.recType !== nE) throw new AO(`Expected UserEditAtom at offset ${t}, found recType 0x${n.recType.toString(16)}`);
59722
+ if (28 !== n.recLen && 32 !== n.recLen) throw new AO(`UserEditAtom has invalid length ${n.recLen}`);
59676
59723
  const r = n.dataOffset;
59677
59724
  return {
59678
59725
  offsetLastEdit: e.getUint32(r + 8, !0),
@@ -59681,9 +59728,9 @@ function WE(e, t) {
59681
59728
  encryptSessionPersistIdRef: 32 === n.recLen ? e.getUint32(r + 28, !0) : void 0
59682
59729
  };
59683
59730
  }
59684
- function VE(e, t) {
59685
- const n = IO(e, t);
59686
- if (n.recType !== iE) throw new LO(`Expected PersistDirectoryAtom at offset ${t}, found recType 0x${n.recType.toString(16)}`);
59731
+ function HE(e, t) {
59732
+ const n = MO(e, t);
59733
+ if (n.recType !== aE) throw new AO(`Expected PersistDirectoryAtom at offset ${t}, found recType 0x${n.recType.toString(16)}`);
59687
59734
  const r = [];
59688
59735
  let i = n.dataOffset;
59689
59736
  const a = n.dataOffset + n.recLen;
@@ -59694,49 +59741,49 @@ function VE(e, t) {
59694
59741
  }
59695
59742
  return r;
59696
59743
  }
59697
- var HE = /* @__PURE__ */ new Map([
59698
- [bE, {
59744
+ var qE = /* @__PURE__ */ new Map([
59745
+ [TE, {
59699
59746
  extension: "emf",
59700
59747
  isMetafile: !0,
59701
59748
  singleUidInstance: 980
59702
59749
  }],
59703
- [TE, {
59750
+ [wE, {
59704
59751
  extension: "wmf",
59705
59752
  isMetafile: !0,
59706
59753
  singleUidInstance: 534
59707
59754
  }],
59708
- [wE, {
59755
+ [SE, {
59709
59756
  extension: "pict",
59710
59757
  isMetafile: !0,
59711
59758
  singleUidInstance: 1346
59712
59759
  }],
59713
- [SE, {
59760
+ [vE, {
59714
59761
  extension: "jpg",
59715
59762
  isMetafile: !1,
59716
59763
  singleUidInstance: 1130
59717
59764
  }],
59718
- [vE, {
59765
+ [CE, {
59719
59766
  extension: "png",
59720
59767
  isMetafile: !1,
59721
59768
  singleUidInstance: 1760
59722
59769
  }],
59723
- [CE, {
59770
+ [_E, {
59724
59771
  extension: "bmp",
59725
59772
  isMetafile: !1,
59726
59773
  singleUidInstance: 1960
59727
59774
  }],
59728
- [_E, {
59775
+ [kE, {
59729
59776
  extension: "tiff",
59730
59777
  isMetafile: !1,
59731
59778
  singleUidInstance: 1764
59732
59779
  }],
59733
- [kE, {
59780
+ [PE, {
59734
59781
  extension: "jpg",
59735
59782
  isMetafile: !1,
59736
59783
  singleUidInstance: 1762
59737
59784
  }]
59738
59785
  ]);
59739
- function qE(e) {
59786
+ function YE(e) {
59740
59787
  if (e.length < 40) return e;
59741
59788
  const t = new DataView(e.buffer, e.byteOffset, e.byteLength), n = t.getUint32(0, !0), r = t.getUint16(14, !0), i = t.getUint32(16, !0);
59742
59789
  let a = t.getUint32(32, !0);
@@ -59746,8 +59793,8 @@ function qE(e) {
59746
59793
  const s = new Uint8Array(14 + e.length), l = new DataView(s.buffer);
59747
59794
  return s[0] = 66, s[1] = 77, l.setUint32(2, s.length, !0), l.setUint32(10, o, !0), s.set(e, 14), s;
59748
59795
  }
59749
- async function YE(e, t, n) {
59750
- const r = HE.get(n.recType);
59796
+ async function ZE(e, t, n) {
59797
+ const r = qE.get(n.recType);
59751
59798
  if (!r) return;
59752
59799
  const i = n.recInstance === r.singleUidInstance ? 1 : 2;
59753
59800
  let a = n.dataOffset + 16 * i;
@@ -59777,15 +59824,15 @@ async function YE(e, t, n) {
59777
59824
  }
59778
59825
  if (a += 1, a > o) return;
59779
59826
  const s = t.subarray(a, o);
59780
- return n.recType === CE ? {
59827
+ return n.recType === _E ? {
59781
59828
  extension: "bmp",
59782
- bytes: qE(s)
59829
+ bytes: YE(s)
59783
59830
  } : {
59784
59831
  extension: r.extension,
59785
59832
  bytes: s.slice()
59786
59833
  };
59787
59834
  }
59788
- var ZE = class {
59835
+ var KE = class {
59789
59836
  constructor(e, t, n) {
59790
59837
  this.view = e, this.end = n, this.pos = t;
59791
59838
  }
@@ -59819,22 +59866,22 @@ var ZE = class {
59819
59866
  skip(e) {
59820
59867
  this.pos += e;
59821
59868
  }
59822
- }, KE = {
59869
+ }, JE = {
59823
59870
  0: "l",
59824
59871
  1: "ctr",
59825
59872
  2: "r",
59826
59873
  3: "just"
59827
59874
  };
59828
- function JE(e, t, n) {
59875
+ function QE(e, t, n) {
59829
59876
  if (!e.canRead(4)) return !1;
59830
59877
  const r = e.u32(), i = (e) => 0 !== (r & e);
59831
59878
  try {
59832
59879
  let a = 0;
59833
59880
  if (15 & r && (a = e.u16(), i(1) && (n.hasBullet = !!(1 & a))), i(128) && (n.bulletChar = String.fromCharCode(e.u16())), i(16) && (n.bulletFontRef = e.u16()), i(64) && e.i16(), i(32)) {
59834
59881
  const [r, i, a, o] = e.bytes4();
59835
- n.bulletColorRgb = UE(r, i, a, o, t);
59882
+ n.bulletColorRgb = GE(r, i, a, o, t);
59836
59883
  }
59837
- if (i(2048) && (n.align = KE[e.u16()]), i(4096) && e.i16(), i(8192) && e.i16(), i(16384) && e.i16(), i(256) && (n.leftMarginMu = e.u16()), i(1024) && (n.indentMu = e.u16()), i(32768) && e.u16(), i(1048576)) {
59884
+ if (i(2048) && (n.align = JE[e.u16()]), i(4096) && e.i16(), i(8192) && e.i16(), i(16384) && e.i16(), i(256) && (n.leftMarginMu = e.u16()), i(1024) && (n.indentMu = e.u16()), i(32768) && e.u16(), i(1048576)) {
59838
59885
  const t = e.u16();
59839
59886
  e.skip(4 * t);
59840
59887
  }
@@ -59844,7 +59891,7 @@ function JE(e, t, n) {
59844
59891
  }
59845
59892
  return !0;
59846
59893
  }
59847
- function QE(e, t, n) {
59894
+ function ej(e, t, n) {
59848
59895
  if (!e.canRead(4)) return !1;
59849
59896
  const r = e.u32(), i = (e) => 0 !== (r & e);
59850
59897
  try {
@@ -59858,7 +59905,7 @@ function QE(e, t, n) {
59858
59905
  }
59859
59906
  if (i(8388608) && e.u16(), i(131072) && (n.sizePt = e.i16()), i(262144)) {
59860
59907
  const [r, i, a, o] = e.bytes4();
59861
- n.colorRgb = UE(r, i, a, o, t);
59908
+ n.colorRgb = GE(r, i, a, o, t);
59862
59909
  }
59863
59910
  i(524288) && e.i16();
59864
59911
  } catch {
@@ -59866,37 +59913,37 @@ function QE(e, t, n) {
59866
59913
  }
59867
59914
  return !0;
59868
59915
  }
59869
- function ej(e, t, n, r) {
59870
- const i = new ZE(e, t, n), a = {
59916
+ function tj(e, t, n, r) {
59917
+ const i = new KE(e, t, n), a = {
59871
59918
  count: 0,
59872
59919
  indentLevel: 0
59873
59920
  };
59874
- if (JE(i, r, a)) return {
59921
+ if (QE(i, r, a)) return {
59875
59922
  props: a,
59876
59923
  next: i.pos
59877
59924
  };
59878
59925
  }
59879
- function tj(e, t, n, r) {
59880
- const i = new ZE(e, t, n), a = { count: 0 };
59881
- if (QE(i, r, a)) return {
59926
+ function nj(e, t, n, r) {
59927
+ const i = new KE(e, t, n), a = { count: 0 };
59928
+ if (ej(i, r, a)) return {
59882
59929
  props: a,
59883
59930
  next: i.pos
59884
59931
  };
59885
59932
  }
59886
- function nj(e, t, n, r, i) {
59887
- const a = new ZE(e, t, t + n), o = r + 1, s = [], l = [];
59933
+ function rj(e, t, n, r, i) {
59934
+ const a = new KE(e, t, t + n), o = r + 1, s = [], l = [];
59888
59935
  let c = 0;
59889
59936
  for (; c < o && a.canRead(6);) {
59890
59937
  const e = a.u32(), t = {
59891
59938
  count: e,
59892
59939
  indentLevel: a.u16()
59893
59940
  };
59894
- if (!JE(a, i, t)) break;
59941
+ if (!QE(a, i, t)) break;
59895
59942
  s.push(t), c += e;
59896
59943
  }
59897
59944
  for (c = 0; c < o && a.canRead(8);) {
59898
59945
  const e = a.u32(), t = { count: e };
59899
- if (!QE(a, i, t)) break;
59946
+ if (!ej(a, i, t)) break;
59900
59947
  l.push(t), c += e;
59901
59948
  }
59902
59949
  return {
@@ -59904,7 +59951,7 @@ function nj(e, t, n, r, i) {
59904
59951
  charRuns: l
59905
59952
  };
59906
59953
  }
59907
- var rj = {
59954
+ var ij = {
59908
59955
  128: 8364,
59909
59956
  130: 8218,
59910
59957
  131: 402,
@@ -59933,43 +59980,43 @@ var rj = {
59933
59980
  158: 382,
59934
59981
  159: 376
59935
59982
  };
59936
- function ij(e, t, n) {
59983
+ function aj(e, t, n) {
59937
59984
  let r = "";
59938
59985
  for (let i = 0; i < n; i++) {
59939
59986
  const n = e.getUint8(t + i);
59940
- r += String.fromCharCode(rj[n] ?? n);
59987
+ r += String.fromCharCode(ij[n] ?? n);
59941
59988
  }
59942
59989
  return r;
59943
59990
  }
59944
- function aj(e, t, n) {
59991
+ function oj(e, t, n) {
59945
59992
  let r = "";
59946
59993
  for (let i = 0; i + 1 < n; i += 2) r += String.fromCharCode(e.getUint16(t + i, !0));
59947
59994
  return r;
59948
59995
  }
59949
- function oj(e, t, n, r) {
59996
+ function sj(e, t, n, r) {
59950
59997
  const i = [];
59951
59998
  let a;
59952
- for (const o of FO(e, t, n)) o.recType === YO ? (a = {
59999
+ for (const o of RO(e, t, n)) o.recType === ZO ? (a = {
59953
60000
  textType: o.recLen >= 4 ? e.getUint32(o.dataOffset, !0) : 0,
59954
60001
  text: ""
59955
- }, i.push(a)) : o.recType === ZO && a ? a.text = aj(e, o.dataOffset, o.recLen) : o.recType === QO && a ? a.text = ij(e, o.dataOffset, o.recLen) : o.recType === KO && a && (a.styles = nj(e, o.dataOffset, o.recLen, a.text.length, r));
60002
+ }, i.push(a)) : o.recType === KO && a ? a.text = oj(e, o.dataOffset, o.recLen) : o.recType === eE && a ? a.text = aj(e, o.dataOffset, o.recLen) : o.recType === JO && a && (a.styles = rj(e, o.dataOffset, o.recLen, a.text.length, r));
59956
60003
  return i;
59957
60004
  }
59958
- function sj(e, t, n) {
60005
+ function lj(e, t, n) {
59959
60006
  const r = /* @__PURE__ */ new Map();
59960
60007
  let i, a;
59961
60008
  const o = (t) => {
59962
- void 0 !== i && void 0 !== a && r.set(i, oj(e, a, t, n));
60009
+ void 0 !== i && void 0 !== a && r.set(i, sj(e, a, t, n));
59963
60010
  }, s = t.dataOffset + t.recLen;
59964
- for (const n of FO(e, t.dataOffset, s)) n.recType === zO && n.recLen >= 4 && (o(n.headerOffset), i = e.getUint32(n.dataOffset, !0), a = n.dataOffset + n.recLen);
60011
+ for (const n of RO(e, t.dataOffset, s)) n.recType === XO && n.recLen >= 4 && (o(n.headerOffset), i = e.getUint32(n.dataOffset, !0), a = n.dataOffset + n.recLen);
59965
60012
  return o(s), r;
59966
60013
  }
59967
- function lj(e, t) {
60014
+ function cj(e, t) {
59968
60015
  let n = 0;
59969
60016
  for (const r of e) if (n += r.count, t < n) return r;
59970
60017
  return e[e.length - 1];
59971
60018
  }
59972
- function cj(e, t, n) {
60019
+ function dj(e, t, n) {
59973
60020
  if (0 === e.length) return [{
59974
60021
  start: t,
59975
60022
  end: n,
@@ -60000,14 +60047,14 @@ function cj(e, t, n) {
60000
60047
  }
60001
60048
  return r;
60002
60049
  }
60003
- function dj(e, t, n) {
60050
+ function pj(e, t, n) {
60004
60051
  const r = { text: e };
60005
60052
  return t ? (void 0 !== t.bold && (r.bold = t.bold), void 0 !== t.italic && (r.italic = t.italic), void 0 !== t.underline && (r.underline = t.underline), void 0 !== t.sizePt && (r.sizePt = t.sizePt), void 0 !== t.colorRgb && (r.colorRgb = t.colorRgb), void 0 !== t.fontRef && n[t.fontRef] && (r.fontName = n[t.fontRef]), r) : r;
60006
60053
  }
60007
- function pj(e, t, n) {
60008
- t && (e.indentLevel = t.indentLevel, void 0 !== t.align && (e.align = t.align), void 0 !== t.hasBullet && (e.hasBullet = t.hasBullet), void 0 !== t.bulletChar && (e.bulletChar = t.bulletChar), void 0 !== t.bulletColorRgb && (e.bulletColorRgb = t.bulletColorRgb), void 0 !== t.bulletFontRef && n[t.bulletFontRef] && (e.bulletFontName = n[t.bulletFontRef]), void 0 !== t.leftMarginMu && (e.marginLeftEmu = AE(t.leftMarginMu)), void 0 !== t.indentMu && (e.indentEmu = AE(t.indentMu)));
60054
+ function hj(e, t, n) {
60055
+ t && (e.indentLevel = t.indentLevel, void 0 !== t.align && (e.align = t.align), void 0 !== t.hasBullet && (e.hasBullet = t.hasBullet), void 0 !== t.bulletChar && (e.bulletChar = t.bulletChar), void 0 !== t.bulletColorRgb && (e.bulletColorRgb = t.bulletColorRgb), void 0 !== t.bulletFontRef && n[t.bulletFontRef] && (e.bulletFontName = n[t.bulletFontRef]), void 0 !== t.leftMarginMu && (e.marginLeftEmu = IE(t.leftMarginMu)), void 0 !== t.indentMu && (e.indentEmu = IE(t.indentMu)));
60009
60056
  }
60010
- function hj(e, t) {
60057
+ function uj(e, t) {
60011
60058
  const n = e.text.replace(/\r\n/g, "\r").replace(/\n/g, "\r").split("\r"), r = e.styles?.paragraphRuns ?? [], i = e.styles?.charRuns ?? [], a = [];
60012
60059
  let o = 0;
60013
60060
  for (const e of n) {
@@ -60015,10 +60062,10 @@ function hj(e, t) {
60015
60062
  indentLevel: 0,
60016
60063
  runs: []
60017
60064
  };
60018
- pj(n, lj(r, o), t);
60019
- for (const r of cj(i, o, o + e.length)) {
60065
+ hj(n, cj(r, o), t);
60066
+ for (const r of dj(i, o, o + e.length)) {
60020
60067
  const i = e.slice(r.start - o, r.end - o);
60021
- i.length > 0 && n.runs.push(dj(i, r.props, t));
60068
+ i.length > 0 && n.runs.push(pj(i, r.props, t));
60022
60069
  }
60023
60070
  0 === n.runs.length && e.length > 0 && n.runs.push({ text: e }), a.push(n), o += e.length + 1;
60024
60071
  }
@@ -60027,7 +60074,7 @@ function hj(e, t) {
60027
60074
  paragraphs: a
60028
60075
  };
60029
60076
  }
60030
- var uj = /* @__PURE__ */ new Map([
60077
+ var mj = /* @__PURE__ */ new Map([
60031
60078
  [20, "line"],
60032
60079
  [32, "straightConnector1"],
60033
60080
  [33, "bentConnector2"],
@@ -60038,7 +60085,7 @@ var uj = /* @__PURE__ */ new Map([
60038
60085
  [38, "curvedConnector3"],
60039
60086
  [39, "curvedConnector4"],
60040
60087
  [40, "curvedConnector5"]
60041
- ]), mj = /* @__PURE__ */ new Map([
60088
+ ]), fj = /* @__PURE__ */ new Map([
60042
60089
  [1, "rect"],
60043
60090
  [2, "roundRect"],
60044
60091
  [3, "ellipse"],
@@ -60173,11 +60220,11 @@ var uj = /* @__PURE__ */ new Map([
60173
60220
  [200, "actionButtonMovie"],
60174
60221
  [202, "rect"]
60175
60222
  ]);
60176
- function fj(e) {
60177
- return uj.get(e) ?? mj.get(e) ?? "rect";
60223
+ function gj(e) {
60224
+ return mj.get(e) ?? fj.get(e) ?? "rect";
60178
60225
  }
60179
- var gj = 4, yj = 260, xj = 385, bj = 447, Tj = 448, wj = 459, Sj = 462, vj = 464, Cj = 465, _j = 511, kj = 896;
60180
- function Pj(e, t, n) {
60226
+ var yj = 4, xj = 260, bj = 385, Tj = 447, wj = 448, Sj = 459, vj = 462, Cj = 464, _j = 465, kj = 511, Pj = 896;
60227
+ function Lj(e, t, n) {
60181
60228
  const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = n.recInstance, o = n.dataOffset + 6 * a;
60182
60229
  if (o > n.dataOffset + n.recLen) return {
60183
60230
  values: r,
@@ -60202,10 +60249,10 @@ function Pj(e, t, n) {
60202
60249
  complex: i
60203
60250
  };
60204
60251
  }
60205
- function Lj(e, t, n) {
60252
+ function Aj(e, t, n) {
60206
60253
  if (void 0 !== e && 0 !== (e & n)) return 0 !== (e & t);
60207
60254
  }
60208
- var Aj = {
60255
+ var Ij = {
60209
60256
  0: "solid",
60210
60257
  1: "dash",
60211
60258
  2: "dot",
@@ -60218,80 +60265,80 @@ var Aj = {
60218
60265
  9: "lgDashDot",
60219
60266
  10: "lgDashDotDot"
60220
60267
  };
60221
- var Ij = {
60268
+ var Mj = {
60222
60269
  1: "triangle",
60223
60270
  2: "stealth",
60224
60271
  3: "diamond",
60225
60272
  4: "oval",
60226
60273
  5: "arrow"
60227
60274
  };
60228
- function Mj(e) {
60229
- if (void 0 !== e && 0 !== e) return Ij[e] ?? "triangle";
60275
+ function Fj(e) {
60276
+ if (void 0 !== e && 0 !== e) return Mj[e] ?? "triangle";
60230
60277
  }
60231
- function Fj(e, t, n, r) {
60278
+ function Rj(e, t, n, r) {
60232
60279
  return {
60233
- x: AE(t),
60234
- y: AE(e),
60235
- w: AE(n - t),
60236
- h: AE(r - e)
60280
+ x: IE(t),
60281
+ y: IE(e),
60282
+ w: IE(n - t),
60283
+ h: IE(r - e)
60237
60284
  };
60238
60285
  }
60239
- function Rj(e, t) {
60286
+ function Dj(e, t) {
60240
60287
  return 8 === t.recLen ? function(e, t) {
60241
- return Fj(e.getInt16(t, !0), e.getInt16(t + 2, !0), e.getInt16(t + 4, !0), e.getInt16(t + 6, !0));
60288
+ return Rj(e.getInt16(t, !0), e.getInt16(t + 2, !0), e.getInt16(t + 4, !0), e.getInt16(t + 6, !0));
60242
60289
  }(e, t.dataOffset) : 16 === t.recLen ? function(e, t) {
60243
- return Fj(e.getInt32(t, !0), e.getInt32(t + 4, !0), e.getInt32(t + 8, !0), e.getInt32(t + 12, !0));
60290
+ return Rj(e.getInt32(t, !0), e.getInt32(t + 4, !0), e.getInt32(t + 8, !0), e.getInt32(t + 12, !0));
60244
60291
  }(e, t.dataOffset) : void 0;
60245
60292
  }
60246
- function Dj(e, t) {
60293
+ function Nj(e, t) {
60247
60294
  if (16 !== t.recLen) return;
60248
60295
  const n = e.getInt32(t.dataOffset, !0);
60249
- return Fj(e.getInt32(t.dataOffset + 4, !0), n, e.getInt32(t.dataOffset + 8, !0), e.getInt32(t.dataOffset + 12, !0));
60296
+ return Rj(e.getInt32(t.dataOffset + 4, !0), n, e.getInt32(t.dataOffset + 8, !0), e.getInt32(t.dataOffset + 12, !0));
60250
60297
  }
60251
- function Nj(e, t) {
60252
- const n = Lj(e.values.get(_j), 8, 524288);
60298
+ function Bj(e, t) {
60299
+ const n = Aj(e.values.get(kj), 8, 524288);
60253
60300
  if (!1 === n) return { kind: "noLine" };
60254
- const r = e.values.get(Tj), i = e.values.get(wj);
60301
+ const r = e.values.get(wj), i = e.values.get(Sj);
60255
60302
  if (!0 !== n && void 0 === r && void 0 === i) return;
60256
60303
  const a = {
60257
60304
  kind: "line",
60258
- rgb: void 0 !== r ? GE(r, t) : t[1],
60305
+ rgb: void 0 !== r ? WE(r, t) : t[1],
60259
60306
  widthEmu: i ?? 9525
60260
60307
  }, o = function(e) {
60261
- if (void 0 !== e && 0 !== e) return Aj[e];
60262
- }(e.values.get(Sj));
60308
+ if (void 0 !== e && 0 !== e) return Ij[e];
60309
+ }(e.values.get(vj));
60263
60310
  o && (a.dash = o);
60264
- const s = Mj(e.values.get(vj));
60311
+ const s = Fj(e.values.get(Cj));
60265
60312
  s && (a.headArrow = s);
60266
- const l = Mj(e.values.get(Cj));
60313
+ const l = Fj(e.values.get(_j));
60267
60314
  return l && (a.tailArrow = l), a;
60268
60315
  }
60269
- var Bj = {
60316
+ var Oj = {
60270
60317
  13: "title",
60271
60318
  14: "body",
60272
60319
  15: "ctrTitle",
60273
60320
  16: "subTitle"
60274
60321
  };
60275
- function Oj(e, t) {
60322
+ function Ej(e, t) {
60276
60323
  const n = t.dataOffset, r = t.dataOffset + t.recLen, i = function(e, t, n) {
60277
- for (const r of FO(e, t, n)) if (r.recType === qO && r.recLen >= 4) return e.getInt32(r.dataOffset, !0);
60324
+ for (const r of RO(e, t, n)) if (r.recType === YO && r.recLen >= 4) return e.getInt32(r.dataOffset, !0);
60278
60325
  }(e.view, n, r);
60279
60326
  if (void 0 !== i && e.rawOutlineText) {
60280
60327
  const t = e.rawOutlineText[i];
60281
- if (t) return hj(t, e.fonts);
60328
+ if (t) return uj(t, e.fonts);
60282
60329
  }
60283
- const a = oj(e.view, n, r, e.scheme);
60284
- if (0 !== a.length) return hj(a[0], e.fonts);
60330
+ const a = sj(e.view, n, r, e.scheme);
60331
+ if (0 !== a.length) return uj(a[0], e.fonts);
60285
60332
  }
60286
- function Ej(e, t) {
60287
- const n = DO(e.view, t, pE);
60333
+ function jj(e, t) {
60334
+ const n = NO(e.view, t, hE);
60288
60335
  if (!n || n.recLen < 8) return;
60289
60336
  const r = n.recInstance, i = e.view.getUint32(n.dataOffset + 4, !0);
60290
60337
  if (8 & i) return;
60291
- const a = DO(e.view, t, hE), o = a ? Pj(e.view, e.data, a) : {
60338
+ const a = NO(e.view, t, uE), o = a ? Lj(e.view, e.data, a) : {
60292
60339
  values: /* @__PURE__ */ new Map(),
60293
60340
  complex: /* @__PURE__ */ new Map()
60294
- }, s = DO(e.view, t, fE), l = DO(e.view, t, mE), c = s ? Rj(e.view, s) : l ? Dj(e.view, l) : void 0, d = o.complex.get(kj), p = d ? function(e) {
60341
+ }, s = NO(e.view, t, gE), l = NO(e.view, t, fE), c = s ? Dj(e.view, s) : l ? Nj(e.view, l) : void 0, d = o.complex.get(Pj), p = d ? function(e) {
60295
60342
  let t = "";
60296
60343
  for (let n = 0; n + 1 < e.length; n += 2) {
60297
60344
  const r = e[n] | e[n + 1] << 8;
@@ -60299,9 +60346,9 @@ function Ej(e, t) {
60299
60346
  t += String.fromCharCode(r);
60300
60347
  }
60301
60348
  return t;
60302
- }(d) : void 0, h = o.values.get(gj), u = void 0 !== h ? ((m = h) > 2147483647 ? m - 4294967296 : m) / 65536 : void 0;
60349
+ }(d) : void 0, h = o.values.get(yj), u = void 0 !== h ? ((m = h) > 2147483647 ? m - 4294967296 : m) / 65536 : void 0;
60303
60350
  var m;
60304
- const f = !!(64 & i) || void 0, g = !!(128 & i) || void 0, y = o.values.get(yj);
60351
+ const f = !!(64 & i) || void 0, g = !!(128 & i) || void 0, y = o.values.get(xj);
60305
60352
  if (void 0 !== y && y > 0) return {
60306
60353
  kind: "picture",
60307
60354
  pictureIndex: y - 1,
@@ -60313,20 +60360,20 @@ function Ej(e, t) {
60313
60360
  };
60314
60361
  const x = {
60315
60362
  kind: "shape",
60316
- preset: fj(r),
60317
- isConnector: uj.has(r),
60363
+ preset: gj(r),
60364
+ isConnector: mj.has(r),
60318
60365
  name: p,
60319
60366
  anchor: c,
60320
60367
  rotationDeg: u,
60321
60368
  flipH: f,
60322
60369
  flipV: g
60323
60370
  }, b = function(e, t, n) {
60324
- const r = Lj(e.values.get(bj), 16, 1048576);
60371
+ const r = Aj(e.values.get(Tj), 16, 1048576);
60325
60372
  if (!1 === r) return { kind: "none" };
60326
- const i = e.values.get(xj);
60373
+ const i = e.values.get(bj);
60327
60374
  return void 0 !== i ? {
60328
60375
  kind: "solid",
60329
- rgb: GE(i, t)
60376
+ rgb: WE(i, t)
60330
60377
  } : !0 === r ? {
60331
60378
  kind: "solid",
60332
60379
  rgb: t[4]
@@ -60335,37 +60382,37 @@ function Ej(e, t) {
60335
60382
  }(n) ? { kind: "none" } : void 0;
60336
60383
  }(o, e.scheme, r);
60337
60384
  b && (x.fill = b);
60338
- const T = Nj(o, e.scheme);
60385
+ const T = Bj(o, e.scheme);
60339
60386
  T && (x.line = T);
60340
- const w = DO(e.view, t, gE);
60387
+ const w = NO(e.view, t, yE);
60341
60388
  if (w) {
60342
60389
  const t = function(e, t) {
60343
- const n = DO(e.view, t, HO);
60390
+ const n = NO(e.view, t, qO);
60344
60391
  if (!n || n.recLen < 5) return;
60345
- return Bj[e.view.getUint8(n.dataOffset + 4)];
60392
+ return Oj[e.view.getUint8(n.dataOffset + 4)];
60346
60393
  }(e, w);
60347
60394
  t && (x.placeholderType = t);
60348
60395
  }
60349
- const S = DO(e.view, t, uE);
60396
+ const S = NO(e.view, t, mE);
60350
60397
  if (S) {
60351
- const t = Oj(e, S);
60398
+ const t = Ej(e, S);
60352
60399
  t && t.paragraphs.some((e) => e.runs.length > 0) && (x.text = t);
60353
60400
  }
60354
60401
  return 1024 & i ? void 0 : x;
60355
60402
  }
60356
- function jj(e, t) {
60403
+ function $j(e, t) {
60357
60404
  const n = [];
60358
60405
  let r, i = !0;
60359
- for (const a of RO(e.view, t)) if (a.recType === lE && i) r = a, i = !1;
60360
- else if (a.recType === lE) {
60361
- const t = Ej(e, a);
60362
- t && n.push(t);
60363
- } else if (a.recType === sE) {
60406
+ for (const a of DO(e.view, t)) if (a.recType === cE && i) r = a, i = !1;
60407
+ else if (a.recType === cE) {
60364
60408
  const t = jj(e, a);
60365
60409
  t && n.push(t);
60410
+ } else if (a.recType === lE) {
60411
+ const t = $j(e, a);
60412
+ t && n.push(t);
60366
60413
  }
60367
60414
  if (!r) return;
60368
- const a = DO(e.view, r, dE), o = DO(e.view, r, fE), s = DO(e.view, r, mE), l = o ? Rj(e.view, o) : s ? Dj(e.view, s) : void 0, c = a && a.recLen >= 16 ? Dj(e.view, a) : void 0;
60415
+ const a = NO(e.view, r, pE), o = NO(e.view, r, gE), s = NO(e.view, r, fE), l = o ? Dj(e.view, o) : s ? Nj(e.view, s) : void 0, c = a && a.recLen >= 16 ? Nj(e.view, a) : void 0;
60369
60416
  return 0 !== n.length ? {
60370
60417
  kind: "group",
60371
60418
  anchor: l,
@@ -60378,55 +60425,55 @@ function jj(e, t) {
60378
60425
  children: n
60379
60426
  } : void 0;
60380
60427
  }
60381
- function $j(e, t) {
60382
- const n = { shapes: [] }, r = DO(e.view, t, sE);
60428
+ function zj(e, t) {
60429
+ const n = { shapes: [] }, r = NO(e.view, t, lE);
60383
60430
  if (!r) return n;
60384
60431
  let i = !0;
60385
- for (const t of RO(e.view, r)) if (t.recType === lE) {
60432
+ for (const t of DO(e.view, r)) if (t.recType === cE) {
60386
60433
  if (i) {
60387
60434
  i = !1;
60388
60435
  continue;
60389
60436
  }
60390
- const r = zj(e, t);
60437
+ const r = Xj(e, t);
60391
60438
  if (void 0 !== r) {
60392
60439
  n.backgroundRgb = r;
60393
60440
  continue;
60394
60441
  }
60395
- const a = Ej(e, t);
60442
+ const a = jj(e, t);
60396
60443
  a && n.shapes.push(a);
60397
- } else if (t.recType === sE) {
60398
- const r = jj(e, t);
60444
+ } else if (t.recType === lE) {
60445
+ const r = $j(e, t);
60399
60446
  r && n.shapes.push(r);
60400
- } else MO(t);
60447
+ } else FO(t);
60401
60448
  return n;
60402
60449
  }
60403
- function zj(e, t) {
60404
- const n = DO(e.view, t, pE);
60450
+ function Xj(e, t) {
60451
+ const n = NO(e.view, t, hE);
60405
60452
  if (!n || n.recLen < 8) return;
60406
60453
  const r = e.view.getUint32(n.dataOffset + 4, !0);
60407
60454
  if (!(1024 & r) || 1 & r) return;
60408
- const i = DO(e.view, t, hE);
60455
+ const i = NO(e.view, t, uE);
60409
60456
  if (!i) return e.scheme[0];
60410
- const a = Pj(e.view, e.data, i).values.get(xj);
60411
- return void 0 !== a ? GE(a, e.scheme) : e.scheme[0];
60457
+ const a = Lj(e.view, e.data, i).values.get(bj);
60458
+ return void 0 !== a ? WE(a, e.scheme) : e.scheme[0];
60412
60459
  }
60413
- function Xj(e, t) {
60460
+ function Uj(e, t) {
60414
60461
  const { view: n, data: r, fonts: i } = e;
60415
60462
  let a = !0, o = !0, s = !0;
60416
- const l = DO(n, t, jO);
60463
+ const l = NO(n, t, $O);
60417
60464
  if (l && l.recLen >= 24) {
60418
60465
  const e = n.getUint16(l.dataOffset + 20, !0);
60419
60466
  s = !!(1 & e), o = !!(2 & e), a = !!(4 & e);
60420
60467
  }
60421
- const c = XE(n, t), d = o ? e.masterScheme : c ?? e.masterScheme, p = {
60468
+ const c = UE(n, t), d = o ? e.masterScheme : c ?? e.masterScheme, p = {
60422
60469
  followMasterBackground: a,
60423
60470
  followMasterObjects: s,
60424
60471
  shapes: []
60425
- }, h = DO(n, t, GO);
60472
+ }, h = NO(n, t, WO);
60426
60473
  if (h) {
60427
- const t = NO(n, h, oE);
60474
+ const t = BO(n, h, sE);
60428
60475
  if (t) {
60429
- const a = $j({
60476
+ const a = zj({
60430
60477
  view: n,
60431
60478
  data: r,
60432
60479
  scheme: d,
@@ -60438,85 +60485,85 @@ function Xj(e, t) {
60438
60485
  }
60439
60486
  return p;
60440
60487
  }
60441
- function Uj(e, t, n, r) {
60488
+ function Gj(e, t, n, r) {
60442
60489
  const i = [], a = t.dataOffset + t.recLen;
60443
60490
  if (t.recLen < 2) return i;
60444
60491
  const o = e.getUint16(t.dataOffset, !0);
60445
60492
  let s = t.dataOffset + 2;
60446
60493
  for (let l = 0; l < o && l < 10 && s < a; l++) {
60447
60494
  t.recInstance >= 5 && (s += 2);
60448
- const o = ej(e, s, a, n);
60495
+ const o = tj(e, s, a, n);
60449
60496
  if (!o) break;
60450
60497
  s = o.next;
60451
- const l = tj(e, s, a, n);
60498
+ const l = nj(e, s, a, n);
60452
60499
  if (!l) break;
60453
60500
  s = l.next;
60454
60501
  const c = {};
60455
- void 0 !== l.props.sizePt && (c.sizePt = l.props.sizePt), void 0 !== l.props.bold && (c.bold = l.props.bold), void 0 !== l.props.colorRgb && (c.colorRgb = l.props.colorRgb), void 0 !== l.props.fontRef && r[l.props.fontRef] && (c.fontName = r[l.props.fontRef]), void 0 !== o.props.align && (c.align = o.props.align), void 0 !== o.props.hasBullet && (c.hasBullet = o.props.hasBullet), void 0 !== o.props.bulletChar && (c.bulletChar = o.props.bulletChar), void 0 !== o.props.bulletFontRef && r[o.props.bulletFontRef] && (c.bulletFontName = r[o.props.bulletFontRef]), void 0 !== o.props.leftMarginMu && (c.marginLeftEmu = AE(o.props.leftMarginMu)), void 0 !== o.props.indentMu && (c.indentEmu = AE(o.props.indentMu)), i.push(c);
60502
+ void 0 !== l.props.sizePt && (c.sizePt = l.props.sizePt), void 0 !== l.props.bold && (c.bold = l.props.bold), void 0 !== l.props.colorRgb && (c.colorRgb = l.props.colorRgb), void 0 !== l.props.fontRef && r[l.props.fontRef] && (c.fontName = r[l.props.fontRef]), void 0 !== o.props.align && (c.align = o.props.align), void 0 !== o.props.hasBullet && (c.hasBullet = o.props.hasBullet), void 0 !== o.props.bulletChar && (c.bulletChar = o.props.bulletChar), void 0 !== o.props.bulletFontRef && r[o.props.bulletFontRef] && (c.bulletFontName = r[o.props.bulletFontRef]), void 0 !== o.props.leftMarginMu && (c.marginLeftEmu = IE(o.props.leftMarginMu)), void 0 !== o.props.indentMu && (c.indentEmu = IE(o.props.indentMu)), i.push(c);
60456
60503
  }
60457
60504
  return i;
60458
60505
  }
60459
- function Gj(e, t) {
60506
+ function Wj(e, t) {
60460
60507
  const n = [];
60461
- for (const r of RO(e, t)) r.recType === zO && r.recLen >= 4 && n.push(e.getUint32(r.dataOffset, !0));
60508
+ for (const r of DO(e, t)) r.recType === XO && r.recLen >= 4 && n.push(e.getUint32(r.dataOffset, !0));
60462
60509
  return n;
60463
60510
  }
60464
- async function Wj(e) {
60511
+ async function Vj(e) {
60465
60512
  const t = e.powerPointDocument, n = new DataView(t.buffer, t.byteOffset, t.byteLength), { currentEdit: r, directory: i } = function(e, t) {
60466
60513
  const n = [], r = /* @__PURE__ */ new Set();
60467
60514
  let i = t;
60468
60515
  for (; 0 !== i;) {
60469
- if (r.has(i)) throw new LO(`Circular UserEditAtom chain at offset ${i}`);
60516
+ if (r.has(i)) throw new AO(`Circular UserEditAtom chain at offset ${i}`);
60470
60517
  r.add(i);
60471
- const t = WE(e, i);
60518
+ const t = VE(e, i);
60472
60519
  n.push(t), i = t.offsetLastEdit;
60473
60520
  }
60474
- if (0 === n.length) throw new LO("No UserEditAtom found");
60521
+ if (0 === n.length) throw new AO("No UserEditAtom found");
60475
60522
  const a = /* @__PURE__ */ new Map();
60476
- for (let t = n.length - 1; t >= 0; t--) for (const [r, i] of VE(e, n[t].offsetPersistDirectory)) a.set(r, i);
60523
+ for (let t = n.length - 1; t >= 0; t--) for (const [r, i] of HE(e, n[t].offsetPersistDirectory)) a.set(r, i);
60477
60524
  return {
60478
60525
  currentEdit: n[0],
60479
60526
  directory: a
60480
60527
  };
60481
60528
  }(n, e.offsetToCurrentEdit);
60482
- if (void 0 !== r.encryptSessionPersistIdRef && 0 !== r.encryptSessionPersistIdRef) throw new IE();
60529
+ if (void 0 !== r.encryptSessionPersistIdRef && 0 !== r.encryptSessionPersistIdRef) throw new ME();
60483
60530
  const a = i.get(r.docPersistIdRef);
60484
- if (void 0 === a) throw new LO("DocumentContainer persist object not found");
60485
- const o = IO(n, a);
60486
- if (o.recType !== BO) throw new LO(`Persist id ${r.docPersistIdRef} is not a DocumentContainer`);
60531
+ if (void 0 === a) throw new AO("DocumentContainer persist object not found");
60532
+ const o = MO(n, a);
60533
+ if (o.recType !== OO) throw new AO(`Persist id ${r.docPersistIdRef} is not a DocumentContainer`);
60487
60534
  let s = 9144e3, l = 6858e3;
60488
- const c = DO(n, o, OO);
60489
- c && c.recLen >= 40 && (s = AE(n.getInt32(c.dataOffset, !0)), l = AE(n.getInt32(c.dataOffset + 4, !0)));
60535
+ const c = NO(n, o, EO);
60536
+ c && c.recLen >= 40 && (s = IE(n.getInt32(c.dataOffset, !0)), l = IE(n.getInt32(c.dataOffset + 4, !0)));
60490
60537
  const d = function(e, t) {
60491
- const n = [], r = DO(e, t, $O);
60538
+ const n = [], r = NO(e, t, zO);
60492
60539
  if (!r) return n;
60493
- const i = NO(e, r, WO);
60540
+ const i = BO(e, r, VO);
60494
60541
  if (!i) return n;
60495
- for (const t of RO(e, i)) if (t.recType === rE) {
60496
- const r = aj(e, t.dataOffset, Math.min(64, t.recLen)), i = r.indexOf("\0");
60542
+ for (const t of DO(e, i)) if (t.recType === iE) {
60543
+ const r = oj(e, t.dataOffset, Math.min(64, t.recLen)), i = r.indexOf("\0");
60497
60544
  n.push(i >= 0 ? r.slice(0, i) : r);
60498
60545
  }
60499
60546
  return n;
60500
60547
  }(n, o);
60501
60548
  let p;
60502
- for (const e of RO(n, o)) if (e.recType === eE && 1 === e.recInstance) {
60503
- p = Gj(n, e)[0];
60549
+ for (const e of DO(n, o)) if (e.recType === tE && 1 === e.recInstance) {
60550
+ p = Wj(n, e)[0];
60504
60551
  break;
60505
60552
  }
60506
- const h = XE(n, o) ?? jE;
60553
+ const h = UE(n, o) ?? $E;
60507
60554
  let u, m = h, f = [], g = [], y = [];
60508
60555
  const x = void 0 !== p ? i.get(p) : void 0;
60509
60556
  if (void 0 !== x) {
60510
- const e = IO(n, x);
60511
- if (e.recType === XO) {
60557
+ const e = MO(n, x);
60558
+ if (e.recType === UO) {
60512
60559
  const r = function(e, t, n, r, i) {
60513
- const a = XE(e, i), o = a ?? r;
60560
+ const a = UE(e, i), o = a ?? r;
60514
60561
  let s, l = [];
60515
- const c = DO(e, i, GO);
60562
+ const c = NO(e, i, WO);
60516
60563
  if (c) {
60517
- const r = NO(e, c, oE);
60564
+ const r = BO(e, c, sE);
60518
60565
  if (r) {
60519
- const i = $j({
60566
+ const i = zj({
60520
60567
  view: e,
60521
60568
  data: t,
60522
60569
  scheme: o,
@@ -60536,7 +60583,7 @@ async function Wj(e) {
60536
60583
  r.scheme && (m = r.scheme), u = r.backgroundRgb, f = r.shapes;
60537
60584
  const i = function(e, t, n, r) {
60538
60585
  let i = [], a = [];
60539
- for (const o of RO(e, t)) o.recType === JO && (0 === o.recInstance && 0 === i.length ? i = Uj(e, o, n, r) : 1 === o.recInstance && 0 === a.length && (a = Uj(e, o, n, r)));
60586
+ for (const o of DO(e, t)) o.recType === QO && (0 === o.recInstance && 0 === i.length ? i = Gj(e, o, n, r) : 1 === o.recInstance && 0 === a.length && (a = Gj(e, o, n, r)));
60540
60587
  return {
60541
60588
  titleStyles: i,
60542
60589
  bodyStyles: a
@@ -60546,12 +60593,12 @@ async function Wj(e) {
60546
60593
  }
60547
60594
  }
60548
60595
  const { persistIds: b, outline: T } = function(e, t, n, r) {
60549
- for (const n of RO(e, t)) if (n.recType === eE && 0 === n.recInstance) return {
60550
- persistIds: Gj(e, n),
60551
- outline: sj(e, n, r)
60596
+ for (const n of DO(e, t)) if (n.recType === tE && 0 === n.recInstance) return {
60597
+ persistIds: Wj(e, n),
60598
+ outline: lj(e, n, r)
60552
60599
  };
60553
60600
  const i = [];
60554
- for (const [t, r] of n) IO(e, r).recType === EO && i.push(t);
60601
+ for (const [t, r] of n) MO(e, r).recType === jO && i.push(t);
60555
60602
  return i.sort((e, t) => e - t), {
60556
60603
  persistIds: i,
60557
60604
  outline: /* @__PURE__ */ new Map()
@@ -60560,8 +60607,8 @@ async function Wj(e) {
60560
60607
  for (const e of b) {
60561
60608
  const r = i.get(e);
60562
60609
  if (void 0 === r) continue;
60563
- const a = IO(n, r);
60564
- a.recType === EO && w.push(Xj({
60610
+ const a = MO(n, r);
60611
+ a.recType === jO && w.push(Uj({
60565
60612
  view: n,
60566
60613
  data: t,
60567
60614
  fonts: d,
@@ -60570,13 +60617,13 @@ async function Wj(e) {
60570
60617
  }, a));
60571
60618
  }
60572
60619
  const S = function(e, t) {
60573
- const n = DO(e, t, UO);
60574
- if (n) return NO(e, n, aE);
60620
+ const n = NO(e, t, GO);
60621
+ if (n) return BO(e, n, oE);
60575
60622
  }(n, o), v = await async function(e, t) {
60576
60623
  if (!e) return [];
60577
60624
  const n = new DataView(e.buffer, e.byteOffset, e.byteLength), r = /* @__PURE__ */ new Map(), i = [];
60578
- for (const t of FO(n, 0, e.length)) if (t.recType >= yE && t.recType <= xE) {
60579
- const a = await YE(n, e, t);
60625
+ for (const t of RO(n, 0, e.length)) if (t.recType >= xE && t.recType <= bE) {
60626
+ const a = await ZE(n, e, t);
60580
60627
  r.set(t.headerOffset, a), i.push(a);
60581
60628
  }
60582
60629
  if (!t) return i;
@@ -60584,14 +60631,14 @@ async function Wj(e) {
60584
60631
  let s = t.rec.dataOffset;
60585
60632
  const l = t.rec.dataOffset + t.rec.recLen;
60586
60633
  for (; s + 8 <= l;) {
60587
- const e = AO(o, s);
60634
+ const e = IO(o, s);
60588
60635
  if (!e || e.dataOffset + e.recLen > l) break;
60589
- if (e.recType === cE && e.recLen >= 36) {
60636
+ if (e.recType === dE && e.recLen >= 36) {
60590
60637
  const t = o.getUint32(e.dataOffset + 28, !0);
60591
60638
  a.push(r.get(t) ?? i[a.length]);
60592
- } else if (e.recType >= yE && e.recType <= xE) {
60639
+ } else if (e.recType >= xE && e.recType <= bE) {
60593
60640
  const t = new Uint8Array(o.buffer, o.byteOffset, o.byteLength);
60594
- a.push(await YE(o, t, e));
60641
+ a.push(await ZE(o, t, e));
60595
60642
  }
60596
60643
  s = e.dataOffset + e.recLen;
60597
60644
  }
@@ -60616,7 +60663,7 @@ async function Wj(e) {
60616
60663
  })
60617
60664
  };
60618
60665
  }
60619
- function Vj(e) {
60666
+ function Hj(e) {
60620
60667
  const t = e.text.split(String.fromCharCode(11)), n = function(e) {
60621
60668
  const t = ["lang=\"en-US\""];
60622
60669
  void 0 !== e.sizePt && t.push(`sz="${Math.round(100 * e.sizePt)}"`), e.bold && t.push("b=\"1\""), e.italic && t.push("i=\"1\""), e.underline && t.push("u=\"sng\""), t.push("dirty=\"0\"");
@@ -60625,7 +60672,7 @@ function Vj(e) {
60625
60672
  }(e);
60626
60673
  return t.map((e) => `<a:r>${n}<a:t>${dn(e)}</a:t></a:r>`).join("<a:br/>");
60627
60674
  }
60628
- function Hj(e) {
60675
+ function qj(e) {
60629
60676
  const t = [];
60630
60677
  e.indentLevel > 0 && t.push(`lvl="${Math.min(e.indentLevel, 8)}"`), void 0 !== e.marginLeftEmu && t.push(`marL="${mn(e.marginLeftEmu)}"`), void 0 !== e.indentEmu && t.push(`indent="${-Math.abs(mn(e.indentEmu))}"`), void 0 !== e.align && t.push(`algn="${e.align}"`);
60631
60678
  let n = "";
@@ -60633,12 +60680,12 @@ function Hj(e) {
60633
60680
  const r = t.length > 0 ? ` ${t.join(" ")}` : "";
60634
60681
  return n.length > 0 ? `<a:pPr${r}>${n}</a:pPr>` : `<a:pPr${r}/>`;
60635
60682
  }
60636
- function qj(e) {
60637
- const t = [Hj(e)];
60638
- for (const n of e.runs) t.push(Vj(n));
60683
+ function Yj(e) {
60684
+ const t = [qj(e)];
60685
+ for (const n of e.runs) t.push(Hj(n));
60639
60686
  return 0 === e.runs.length && t.push("<a:endParaRPr lang=\"en-US\"/>"), `<a:p>${t.join("")}</a:p>`;
60640
60687
  }
60641
- function Yj(e, t = "") {
60688
+ function Zj(e, t = "") {
60642
60689
  const n = e.anchor ?? {
60643
60690
  x: 0,
60644
60691
  y: 0,
@@ -60648,40 +60695,40 @@ function Yj(e, t = "") {
60648
60695
  void 0 !== e.rotationDeg && 0 !== e.rotationDeg && r.push(`rot="${Math.round(6e4 * e.rotationDeg)}"`), e.flipH && r.push("flipH=\"1\""), e.flipV && r.push("flipV=\"1\"");
60649
60696
  return `<a:xfrm${r.length > 0 ? ` ${r.join(" ")}` : ""}><a:off x="${mn(n.x)}" y="${mn(n.y)}"/><a:ext cx="${Math.max(0, mn(n.w))}" cy="${Math.max(0, mn(n.h))}"/>${t}</a:xfrm>`;
60650
60697
  }
60651
- function Zj(e) {
60698
+ function Kj(e) {
60652
60699
  return e.fill ? "solid" === e.fill.kind ? un(e.fill.rgb) : "<a:noFill/>" : "";
60653
60700
  }
60654
- function Kj(e) {
60701
+ function Jj(e) {
60655
60702
  if (!e.line) return "";
60656
60703
  if ("noLine" === e.line.kind) return "<a:ln><a:noFill/></a:ln>";
60657
60704
  const t = e.line;
60658
60705
  let n = un(t.rgb);
60659
60706
  return t.dash && (n += `<a:prstDash val="${t.dash}"/>`), t.headArrow && (n += `<a:headEnd type="${t.headArrow}"/>`), t.tailArrow && (n += `<a:tailEnd type="${t.tailArrow}"/>`), `<a:ln w="${Math.max(0, mn(t.widthEmu))}">${n}</a:ln>`;
60660
60707
  }
60661
- function Jj(e, t) {
60708
+ function Qj(e, t) {
60662
60709
  const n = t.nextId(), r = dn(e.name ?? `Shape ${n}`), i = e.placeholderType ? `<p:ph type="${e.placeholderType}"/>` : "";
60663
60710
  var a;
60664
- return `<p:sp>${`<p:nvSpPr><p:cNvPr id="${n}" name="${r}"/><p:cNvSpPr${e.text && !e.placeholderType ? " txBox=\"1\"" : ""}/><p:nvPr>${i}</p:nvPr></p:nvSpPr>`}${`<p:spPr>${Yj(e)}<a:prstGeom prst="${e.preset}"><a:avLst/></a:prstGeom>${Zj(e)}${Kj(e)}</p:spPr>`}${e.text ? `<p:txBody>${(a = e.text).textType === PE || a.textType === LE ? "<a:bodyPr wrap=\"square\" anchor=\"ctr\"><a:normAutofit/></a:bodyPr>" : "<a:bodyPr wrap=\"square\"><a:normAutofit/></a:bodyPr>"}<a:lstStyle/>${a.paragraphs.map(qj).join("")}</p:txBody>` : "<p:txBody><a:bodyPr/><a:lstStyle/><a:p><a:endParaRPr lang=\"en-US\"/></a:p></p:txBody>"}</p:sp>`;
60711
+ return `<p:sp>${`<p:nvSpPr><p:cNvPr id="${n}" name="${r}"/><p:cNvSpPr${e.text && !e.placeholderType ? " txBox=\"1\"" : ""}/><p:nvPr>${i}</p:nvPr></p:nvSpPr>`}${`<p:spPr>${Zj(e)}<a:prstGeom prst="${e.preset}"><a:avLst/></a:prstGeom>${Kj(e)}${Jj(e)}</p:spPr>`}${e.text ? `<p:txBody>${(a = e.text).textType === LE || a.textType === AE ? "<a:bodyPr wrap=\"square\" anchor=\"ctr\"><a:normAutofit/></a:bodyPr>" : "<a:bodyPr wrap=\"square\"><a:normAutofit/></a:bodyPr>"}<a:lstStyle/>${a.paragraphs.map(Yj).join("")}</p:txBody>` : "<p:txBody><a:bodyPr/><a:lstStyle/><a:p><a:endParaRPr lang=\"en-US\"/></a:p></p:txBody>"}</p:sp>`;
60665
60712
  }
60666
- function Qj(e, t) {
60713
+ function e$(e, t) {
60667
60714
  return "picture" === e.kind ? function(e, t) {
60668
60715
  const n = t.mediaRel(e.pictureIndex);
60669
60716
  if (!n) return "";
60670
60717
  const r = t.nextId();
60671
- return `<p:pic><p:nvPicPr><p:cNvPr id="${r}" name="${dn(e.name ?? `Picture ${r}`)}"/><p:cNvPicPr/><p:nvPr/></p:nvPicPr><p:blipFill><a:blip r:embed="${n.relId}"/><a:stretch><a:fillRect/></a:stretch></p:blipFill><p:spPr>${Yj(e)}<a:prstGeom prst="rect"><a:avLst/></a:prstGeom></p:spPr></p:pic>`;
60718
+ return `<p:pic><p:nvPicPr><p:cNvPr id="${r}" name="${dn(e.name ?? `Picture ${r}`)}"/><p:cNvPicPr/><p:nvPr/></p:nvPicPr><p:blipFill><a:blip r:embed="${n.relId}"/><a:stretch><a:fillRect/></a:stretch></p:blipFill><p:spPr>${Zj(e)}<a:prstGeom prst="rect"><a:avLst/></a:prstGeom></p:spPr></p:pic>`;
60672
60719
  }(e, t) : "group" === e.kind ? function(e, t) {
60673
60720
  const n = t.nextId(), r = e.anchor ?? e.childRect, i = e.childRect, a = `<a:chOff x="${mn(i.x)}" y="${mn(i.y)}"/><a:chExt cx="${Math.max(0, mn(i.w))}" cy="${Math.max(0, mn(i.h))}"/>`;
60674
- return `<p:grpSp><p:nvGrpSpPr><p:cNvPr id="${n}" name="Group ${n}"/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr><p:grpSpPr>${Yj({
60721
+ return `<p:grpSp><p:nvGrpSpPr><p:cNvPr id="${n}" name="Group ${n}"/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr><p:grpSpPr>${Zj({
60675
60722
  ...e,
60676
60723
  anchor: r
60677
- }, a)}</p:grpSpPr>${e.children.map((e) => Qj(e, t)).join("")}</p:grpSp>`;
60724
+ }, a)}</p:grpSpPr>${e.children.map((e) => e$(e, t)).join("")}</p:grpSp>`;
60678
60725
  }(e, t) : e.isConnector && !e.text ? function(e, t) {
60679
60726
  const n = t.nextId();
60680
- return `<p:cxnSp><p:nvCxnSpPr><p:cNvPr id="${n}" name="${dn(e.name ?? `Connector ${n}`)}"/><p:cNvCxnSpPr/><p:nvPr/></p:nvCxnSpPr><p:spPr>${Yj(e)}<a:prstGeom prst="${e.preset}"><a:avLst/></a:prstGeom>${Zj(e)}${Kj(e)}</p:spPr></p:cxnSp>`;
60681
- }(e, t) : Jj(e, t);
60727
+ return `<p:cxnSp><p:nvCxnSpPr><p:cNvPr id="${n}" name="${dn(e.name ?? `Connector ${n}`)}"/><p:cNvCxnSpPr/><p:nvPr/></p:nvCxnSpPr><p:spPr>${Zj(e)}<a:prstGeom prst="${e.preset}"><a:avLst/></a:prstGeom>${Kj(e)}${Jj(e)}</p:spPr></p:cxnSp>`;
60728
+ }(e, t) : Qj(e, t);
60682
60729
  }
60683
- var e$ = "xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\" xmlns:r=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\" xmlns:p=\"http://schemas.openxmlformats.org/presentationml/2006/main\"";
60684
- function t$(e, t, n) {
60730
+ var t$ = "xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\" xmlns:r=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\" xmlns:p=\"http://schemas.openxmlformats.org/presentationml/2006/main\"";
60731
+ function n$(e, t, n) {
60685
60732
  const r = [];
60686
60733
  void 0 !== t.marginLeftEmu && r.push(`marL="${mn(t.marginLeftEmu)}"`), void 0 !== t.indentEmu && r.push(`indent="${-Math.abs(mn(t.indentEmu))}"`), r.push(`algn="${t.align ?? "l"}"`);
60687
60734
  let i = "";
@@ -60689,12 +60736,12 @@ function t$(e, t, n) {
60689
60736
  const a = `<a:defRPr sz="${Math.round(100 * (t.sizePt ?? n))}" kern="1200"${t.bold ? " b=\"1\"" : ""}>${void 0 !== t.colorRgb ? un(t.colorRgb) : "<a:solidFill><a:schemeClr val=\"tx1\"/></a:solidFill>"}${void 0 !== t.fontName ? `<a:latin typeface="${dn(t.fontName)}"/>` : "<a:latin typeface=\"+mn-lt\"/>"}</a:defRPr>`;
60690
60737
  return `<a:${e} ${r.join(" ")}>${i}${a}</a:${e}>`;
60691
60738
  }
60692
- function n$(e, t) {
60739
+ function r$(e, t) {
60693
60740
  const n = [], r = Math.max(1, Math.min(e.length, 9));
60694
- for (let i = 0; i < r; i++) n.push(t$(`lvl${i + 1}pPr`, e[i] ?? {}, t));
60741
+ for (let i = 0; i < r; i++) n.push(n$(`lvl${i + 1}pPr`, e[i] ?? {}, t));
60695
60742
  return n.join("");
60696
60743
  }
60697
- var r$ = {
60744
+ var i$ = {
60698
60745
  png: "image/png",
60699
60746
  jpg: "image/jpeg",
60700
60747
  bmp: "image/bmp",
@@ -60703,17 +60750,17 @@ var r$ = {
60703
60750
  emf: "image/x-emf",
60704
60751
  wmf: "image/x-wmf",
60705
60752
  pict: "image/x-pict"
60706
- }, i$ = "xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\" xmlns:r=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\" xmlns:p=\"http://schemas.openxmlformats.org/presentationml/2006/main\"";
60707
- function a$(e) {
60753
+ }, a$ = "xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\" xmlns:r=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\" xmlns:p=\"http://schemas.openxmlformats.org/presentationml/2006/main\"";
60754
+ function o$(e) {
60708
60755
  const t = [], n = (e) => {
60709
60756
  for (const r of e) "picture" === r.kind ? t.push(r.pictureIndex) : "group" === r.kind && n(r.children);
60710
60757
  };
60711
60758
  return n(e.shapes), t;
60712
60759
  }
60713
- async function o$(t) {
60760
+ async function s$(t) {
60714
60761
  const n = new e(), r = { fileNumbers: /* @__PURE__ */ new Map() };
60715
60762
  let i = 0;
60716
- for (const e of t.slides) for (const n of a$(e)) {
60763
+ for (const e of t.slides) for (const n of o$(e)) {
60717
60764
  const e = t.pictures[n];
60718
60765
  e && e.bytes.length > 0 && !r.fileNumbers.has(n) && r.fileNumbers.set(n, ++i);
60719
60766
  }
@@ -60727,27 +60774,27 @@ async function o$(t) {
60727
60774
  const t = e.pictures[r];
60728
60775
  t && n.add(t.extension);
60729
60776
  }
60730
- return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">\n <Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>\n <Default Extension="xml" ContentType="application/xml"/>\n${[...n].map((e) => ` <Default Extension="${e}" ContentType="${r$[e] ?? "application/octet-stream"}"/>`).join("\n")}\n <Override PartName="/ppt/presentation.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml"/>\n <Override PartName="/ppt/slideMasters/slideMaster1.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml"/>\n <Override PartName="/ppt/slideLayouts/slideLayout1.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"/>\n${e.slides.map((e, t) => ` <Override PartName="/ppt/slides/slide${t + 1}.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"/>`).join("\n")}\n <Override PartName="/ppt/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/>\n <Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/>\n <Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/>\n</Types>`;
60777
+ return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">\n <Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>\n <Default Extension="xml" ContentType="application/xml"/>\n${[...n].map((e) => ` <Default Extension="${e}" ContentType="${i$[e] ?? "application/octet-stream"}"/>`).join("\n")}\n <Override PartName="/ppt/presentation.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml"/>\n <Override PartName="/ppt/slideMasters/slideMaster1.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml"/>\n <Override PartName="/ppt/slideLayouts/slideLayout1.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"/>\n${e.slides.map((e, t) => ` <Override PartName="/ppt/slides/slide${t + 1}.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"/>`).join("\n")}\n <Override PartName="/ppt/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/>\n <Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/>\n <Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/>\n</Types>`;
60731
60778
  }(t, r)), n.file("_rels/.rels", "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">\n <Relationship Id=\"rId1\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument\" Target=\"ppt/presentation.xml\"/>\n <Relationship Id=\"rId2\" Type=\"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties\" Target=\"docProps/core.xml\"/>\n <Relationship Id=\"rId3\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties\" Target=\"docProps/app.xml\"/>\n</Relationships>"), n.file("ppt/presentation.xml", function(e) {
60732
60779
  const t = e.slides.map((e, t) => ` <p:sldId id="${256 + t}" r:id="rId${3 + t}"/>`).join("\n");
60733
- return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<p:presentation ${i$}>\n <p:sldMasterIdLst><p:sldMasterId id="2147483648" r:id="rId1"/></p:sldMasterIdLst>\n${e.slides.length > 0 ? ` <p:sldIdLst>\n${t}\n </p:sldIdLst>\n` : ""} <p:sldSz cx="${e.widthEmu}" cy="${e.heightEmu}"/>\n <p:notesSz cx="${e.heightEmu}" cy="${e.widthEmu}"/>\n</p:presentation>`;
60780
+ return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<p:presentation ${a$}>\n <p:sldMasterIdLst><p:sldMasterId id="2147483648" r:id="rId1"/></p:sldMasterIdLst>\n${e.slides.length > 0 ? ` <p:sldIdLst>\n${t}\n </p:sldIdLst>\n` : ""} <p:sldSz cx="${e.widthEmu}" cy="${e.heightEmu}"/>\n <p:notesSz cx="${e.heightEmu}" cy="${e.widthEmu}"/>\n</p:presentation>`;
60734
60781
  }(t)), n.file("ppt/_rels/presentation.xml.rels", function(e) {
60735
60782
  return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster" Target="slideMasters/slideMaster1.xml"/>\n <Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/>\n${e.slides.map((e, t) => ` <Relationship Id="rId${3 + t}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" Target="slides/slide${t + 1}.xml"/>`).join("\n")}\n</Relationships>`;
60736
60783
  }(t));
60737
60784
  let a = 2;
60738
60785
  return n.file("ppt/slideMasters/slideMaster1.xml", function(e, t) {
60739
- const n = e.masterBackgroundRgb ?? e.scheme[ME], r = e.masterShapes.map((e) => Qj(e, t)).join("");
60740
- return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<p:sldMaster ${e$}>\n <p:cSld>\n <p:bg><p:bgPr>${un(n)}<a:effectLst/></p:bgPr></p:bg>\n <p:spTree>\n <p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr>\n <p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/><a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr>\n ${r}\n </p:spTree>\n </p:cSld>\n <p:clrMap bg1="lt1" tx1="dk1" bg2="lt2" tx2="dk2" accent1="accent1" accent2="accent2" accent3="accent3" accent4="accent4" accent5="accent5" accent6="accent6" hlink="hlink" folHlink="folHlink"/>\n <p:sldLayoutIdLst>\n <p:sldLayoutId id="2147483649" r:id="rId1"/>\n </p:sldLayoutIdLst>\n <p:txStyles>\n <p:titleStyle>${n$(e.titleStyles, 44)}</p:titleStyle>\n <p:bodyStyle>${n$(e.bodyStyles, 32)}</p:bodyStyle>\n <p:otherStyle><a:defPPr><a:defRPr lang="en-US"/></a:defPPr></p:otherStyle>\n </p:txStyles>\n</p:sldMaster>`;
60786
+ const n = e.masterBackgroundRgb ?? e.scheme[FE], r = e.masterShapes.map((e) => e$(e, t)).join("");
60787
+ return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<p:sldMaster ${t$}>\n <p:cSld>\n <p:bg><p:bgPr>${un(n)}<a:effectLst/></p:bgPr></p:bg>\n <p:spTree>\n <p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr>\n <p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/><a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr>\n ${r}\n </p:spTree>\n </p:cSld>\n <p:clrMap bg1="lt1" tx1="dk1" bg2="lt2" tx2="dk2" accent1="accent1" accent2="accent2" accent3="accent3" accent4="accent4" accent5="accent5" accent6="accent6" hlink="hlink" folHlink="folHlink"/>\n <p:sldLayoutIdLst>\n <p:sldLayoutId id="2147483649" r:id="rId1"/>\n </p:sldLayoutIdLst>\n <p:txStyles>\n <p:titleStyle>${r$(e.titleStyles, 44)}</p:titleStyle>\n <p:bodyStyle>${r$(e.bodyStyles, 32)}</p:bodyStyle>\n <p:otherStyle><a:defPPr><a:defRPr lang="en-US"/></a:defPPr></p:otherStyle>\n </p:txStyles>\n</p:sldMaster>`;
60741
60788
  }(t, {
60742
60789
  nextId: () => a++,
60743
60790
  mediaRel: () => {}
60744
- })), n.file("ppt/slideMasters/_rels/slideMaster1.xml.rels", "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">\n <Relationship Id=\"rId1\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout\" Target=\"../slideLayouts/slideLayout1.xml\"/>\n <Relationship Id=\"rId2\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme\" Target=\"../theme/theme1.xml\"/>\n</Relationships>"), n.file("ppt/slideLayouts/slideLayout1.xml", `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<p:sldLayout ${e$} type="blank" preserve="1">\n <p:cSld name="Blank">\n <p:spTree>\n <p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr>\n <p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/><a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr>\n </p:spTree>\n </p:cSld>\n <p:clrMapOvr><a:masterClrMapping/></p:clrMapOvr>\n</p:sldLayout>`), n.file("ppt/slideLayouts/_rels/slideLayout1.xml.rels", "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">\n <Relationship Id=\"rId1\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster\" Target=\"../slideMasters/slideMaster1.xml\"/>\n</Relationships>"), n.file("ppt/theme/theme1.xml", function(e) {
60791
+ })), n.file("ppt/slideMasters/_rels/slideMaster1.xml.rels", "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">\n <Relationship Id=\"rId1\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout\" Target=\"../slideLayouts/slideLayout1.xml\"/>\n <Relationship Id=\"rId2\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme\" Target=\"../theme/theme1.xml\"/>\n</Relationships>"), n.file("ppt/slideLayouts/slideLayout1.xml", `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<p:sldLayout ${t$} type="blank" preserve="1">\n <p:cSld name="Blank">\n <p:spTree>\n <p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr>\n <p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/><a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr>\n </p:spTree>\n </p:cSld>\n <p:clrMapOvr><a:masterClrMapping/></p:clrMapOvr>\n</p:sldLayout>`), n.file("ppt/slideLayouts/_rels/slideLayout1.xml.rels", "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">\n <Relationship Id=\"rId1\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster\" Target=\"../slideMasters/slideMaster1.xml\"/>\n</Relationships>"), n.file("ppt/theme/theme1.xml", function(e) {
60745
60792
  const t = e.scheme, n = e.fonts[0] ?? "Arial", r = e.fonts[0] ?? "Arial", i = (e, t) => `<a:${e}><a:srgbClr val="${t}"/></a:${e}>`;
60746
- return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Imported PPT Theme">\n <a:themeElements>\n <a:clrScheme name="Imported PPT">\n ${i("dk1", t[FE])}\n ${i("lt1", t[ME])}\n ${i("dk2", t[DE])}\n ${i("lt2", t[RE])}\n ${i("accent1", t[NE])}\n ${i("accent2", t[BE])}\n ${i("accent3", t[OE])}\n ${i("accent4", t[EE])}\n ${i("accent5", t[BE])}\n ${i("accent6", t[OE])}\n ${i("hlink", t[OE])}\n ${i("folHlink", t[EE])}\n </a:clrScheme>\n <a:fontScheme name="Imported PPT">\n <a:majorFont><a:latin typeface="${dn(n)}"/><a:ea typeface=""/><a:cs typeface=""/></a:majorFont>\n <a:minorFont><a:latin typeface="${dn(r)}"/><a:ea typeface=""/><a:cs typeface=""/></a:minorFont>\n </a:fontScheme>\n <a:fmtScheme name="Imported PPT">\n <a:fillStyleLst>\n <a:solidFill><a:schemeClr val="phClr"/></a:solidFill>\n <a:solidFill><a:schemeClr val="phClr"/></a:solidFill>\n <a:solidFill><a:schemeClr val="phClr"/></a:solidFill>\n </a:fillStyleLst>\n <a:lnStyleLst>\n <a:ln w="6350" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>\n <a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>\n <a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>\n </a:lnStyleLst>\n <a:effectStyleLst>\n <a:effectStyle><a:effectLst/></a:effectStyle>\n <a:effectStyle><a:effectLst/></a:effectStyle>\n <a:effectStyle><a:effectLst/></a:effectStyle>\n </a:effectStyleLst>\n <a:bgFillStyleLst>\n <a:solidFill><a:schemeClr val="phClr"/></a:solidFill>\n <a:solidFill><a:schemeClr val="phClr"/></a:solidFill>\n <a:solidFill><a:schemeClr val="phClr"/></a:solidFill>\n </a:bgFillStyleLst>\n </a:fmtScheme>\n </a:themeElements>\n <a:objectDefaults/>\n <a:extraClrSchemeLst/>\n</a:theme>`;
60793
+ return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Imported PPT Theme">\n <a:themeElements>\n <a:clrScheme name="Imported PPT">\n ${i("dk1", t[RE])}\n ${i("lt1", t[FE])}\n ${i("dk2", t[NE])}\n ${i("lt2", t[DE])}\n ${i("accent1", t[BE])}\n ${i("accent2", t[OE])}\n ${i("accent3", t[EE])}\n ${i("accent4", t[jE])}\n ${i("accent5", t[OE])}\n ${i("accent6", t[EE])}\n ${i("hlink", t[EE])}\n ${i("folHlink", t[jE])}\n </a:clrScheme>\n <a:fontScheme name="Imported PPT">\n <a:majorFont><a:latin typeface="${dn(n)}"/><a:ea typeface=""/><a:cs typeface=""/></a:majorFont>\n <a:minorFont><a:latin typeface="${dn(r)}"/><a:ea typeface=""/><a:cs typeface=""/></a:minorFont>\n </a:fontScheme>\n <a:fmtScheme name="Imported PPT">\n <a:fillStyleLst>\n <a:solidFill><a:schemeClr val="phClr"/></a:solidFill>\n <a:solidFill><a:schemeClr val="phClr"/></a:solidFill>\n <a:solidFill><a:schemeClr val="phClr"/></a:solidFill>\n </a:fillStyleLst>\n <a:lnStyleLst>\n <a:ln w="6350" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>\n <a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>\n <a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>\n </a:lnStyleLst>\n <a:effectStyleLst>\n <a:effectStyle><a:effectLst/></a:effectStyle>\n <a:effectStyle><a:effectLst/></a:effectStyle>\n <a:effectStyle><a:effectLst/></a:effectStyle>\n </a:effectStyleLst>\n <a:bgFillStyleLst>\n <a:solidFill><a:schemeClr val="phClr"/></a:solidFill>\n <a:solidFill><a:schemeClr val="phClr"/></a:solidFill>\n <a:solidFill><a:schemeClr val="phClr"/></a:solidFill>\n </a:bgFillStyleLst>\n </a:fmtScheme>\n </a:themeElements>\n <a:objectDefaults/>\n <a:extraClrSchemeLst/>\n</a:theme>`;
60747
60794
  }(t)), t.slides.forEach((e, i) => {
60748
60795
  const a = /* @__PURE__ */ new Map(), o = [];
60749
60796
  let s = 1;
60750
- for (const n of a$(e)) {
60797
+ for (const n of o$(e)) {
60751
60798
  const e = r.fileNumbers.get(n);
60752
60799
  if (void 0 === e || a.has(n)) continue;
60753
60800
  const i = "rId" + ++s;
@@ -60763,24 +60810,24 @@ async function o$(t) {
60763
60810
  const t = n.get(e);
60764
60811
  return t ? { relId: t } : void 0;
60765
60812
  }
60766
- }, a = t.shapes.map((e) => Qj(e, i)).join(""), o = t.followMasterBackground ? void 0 : t.backgroundRgb ?? e.scheme[ME], s = o ? `<p:bg><p:bgPr>${un(o)}<a:effectLst/></p:bgPr></p:bg>` : "";
60767
- return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<p:sld ${i$}${t.followMasterObjects ? "" : " showMasterSp=\"0\""}>\n <p:cSld>\n ${s}\n <p:spTree>\n <p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr>\n <p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/><a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr>\n ${a}\n </p:spTree>\n </p:cSld>\n <p:clrMapOvr><a:masterClrMapping/></p:clrMapOvr>\n</p:sld>`;
60813
+ }, a = t.shapes.map((e) => e$(e, i)).join(""), o = t.followMasterBackground ? void 0 : t.backgroundRgb ?? e.scheme[FE], s = o ? `<p:bg><p:bgPr>${un(o)}<a:effectLst/></p:bgPr></p:bg>` : "";
60814
+ return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<p:sld ${a$}${t.followMasterObjects ? "" : " showMasterSp=\"0\""}>\n <p:cSld>\n ${s}\n <p:spTree>\n <p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr>\n <p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/><a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr>\n ${a}\n </p:spTree>\n </p:cSld>\n <p:clrMapOvr><a:masterClrMapping/></p:clrMapOvr>\n</p:sld>`;
60768
60815
  }(t, e, a)), n.file(`ppt/slides/_rels/slide${i + 1}.xml.rels`, `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout" Target="../slideLayouts/slideLayout1.xml"/>\n${o.join("\n")}\n</Relationships>`);
60769
60816
  }), n.file("docProps/core.xml", "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<cp:coreProperties xmlns:cp=\"http://schemas.openxmlformats.org/package/2006/metadata/core-properties\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:dcterms=\"http://purl.org/dc/terms/\" xmlns:dcmitype=\"http://purl.org/dc/dcmitype/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n <dc:title></dc:title>\n <dc:creator>pptx-viewer ppt import</dc:creator>\n</cp:coreProperties>"), n.file("docProps/app.xml", `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes">\n <Application>pptx-viewer ppt import</Application>\n <Slides>${t.slides.length}</Slides>\n</Properties>`), n.generateAsync({ type: "arraybuffer" });
60770
60817
  }
60771
- var s$ = "PowerPoint Document";
60772
- async function l$(e) {
60818
+ var l$ = "PowerPoint Document";
60819
+ async function c$(e) {
60773
60820
  const t = e.getStream("Current User");
60774
- if (!t) throw new LO("Legacy .ppt file is missing the \"Current User\" stream");
60821
+ if (!t) throw new AO("Legacy .ppt file is missing the \"Current User\" stream");
60775
60822
  const n = function(e) {
60776
- const t = new DataView(e.buffer, e.byteOffset, e.byteLength), n = IO(t, 0);
60777
- if (n.recType !== nE) throw new LO(`Current User stream does not start with a CurrentUserAtom (recType 0x${n.recType.toString(16)})`);
60823
+ const t = new DataView(e.buffer, e.byteOffset, e.byteLength), n = MO(t, 0);
60824
+ if (n.recType !== rE) throw new AO(`Current User stream does not start with a CurrentUserAtom (recType 0x${n.recType.toString(16)})`);
60778
60825
  const r = n.dataOffset;
60779
- if (r + 16 > t.byteLength) throw new LO("CurrentUserAtom is truncated");
60826
+ if (r + 16 > t.byteLength) throw new AO("CurrentUserAtom is truncated");
60780
60827
  const i = t.getUint32(r, !0);
60781
- if (20 !== i) throw new LO(`CurrentUserAtom size field is 0x${i.toString(16)}, expected 0x14`);
60828
+ if (20 !== i) throw new AO(`CurrentUserAtom size field is 0x${i.toString(16)}, expected 0x14`);
60782
60829
  const a = t.getUint32(r + 4, !0), o = t.getUint32(r + 8, !0), s = t.getUint16(r + 12, !0), l = 4090610911 === a;
60783
- if (!l && 3817979999 !== a) throw new LO(`Unknown CurrentUserAtom headerToken 0x${a.toString(16)}`);
60830
+ if (!l && 3817979999 !== a) throw new AO(`Unknown CurrentUserAtom headerToken 0x${a.toString(16)}`);
60784
60831
  let c = "";
60785
60832
  const d = r + 24;
60786
60833
  for (let e = 0; e < s && d + e < t.byteLength; e++) c += String.fromCharCode(t.getUint8(d + e));
@@ -60790,19 +60837,19 @@ async function l$(e) {
60790
60837
  userName: c
60791
60838
  };
60792
60839
  }(t);
60793
- if (n.isEncrypted) throw new IE();
60794
- const r = e.getStream(s$);
60795
- if (!r) throw new LO("Legacy .ppt file is missing the \"PowerPoint Document\" stream");
60796
- return o$(await Wj({
60840
+ if (n.isEncrypted) throw new ME();
60841
+ const r = e.getStream(l$);
60842
+ if (!r) throw new AO("Legacy .ppt file is missing the \"PowerPoint Document\" stream");
60843
+ return s$(await Vj({
60797
60844
  powerPointDocument: r,
60798
60845
  pictures: e.getStream("Pictures"),
60799
60846
  offsetToCurrentEdit: n.offsetToCurrentEdit
60800
60847
  }));
60801
60848
  }
60802
- var c$ = class {
60849
+ var d$ = class {
60803
60850
  runtime;
60804
60851
  constructor(e = {}) {
60805
- e.runtime ? this.runtime = e.runtime : e.runtimeFactory ? this.runtime = e.runtimeFactory.createRuntime() : this.runtime = new PO();
60852
+ e.runtime ? this.runtime = e.runtime : e.runtimeFactory ? this.runtime = e.runtimeFactory.createRuntime() : this.runtime = new LO();
60806
60853
  }
60807
60854
  dispose() {
60808
60855
  this.runtime.dispose();
@@ -60861,9 +60908,9 @@ var c$ = class {
60861
60908
  n = void 0;
60862
60909
  }
60863
60910
  if (n && function(e) {
60864
- return e.entries.some((e) => e.name === s$);
60911
+ return e.entries.some((e) => e.name === l$);
60865
60912
  }(n)) {
60866
- const e = await l$(n);
60913
+ const e = await c$(n);
60867
60914
  return this.runtime.load(e, t);
60868
60915
  }
60869
60916
  if (!t.password) throw new Op("This presentation is encrypted. Provide a password via options.password to open it.");
@@ -60906,7 +60953,7 @@ var c$ = class {
60906
60953
  async exportSlides(e, t) {
60907
60954
  return this.runtime.exportSlides(e, t);
60908
60955
  }
60909
- }, d$ = class extends c$ {
60956
+ }, p$ = class extends d$ {
60910
60957
  static async createBlank(e) {
60911
60958
  return Tr.create(e);
60912
60959
  }
@@ -60924,13 +60971,13 @@ var c$ = class {
60924
60971
  });
60925
60972
  return en(await super.load(r, t), n);
60926
60973
  }
60927
- }, p$ = /* @__PURE__ */ new Set([
60974
+ }, h$ = /* @__PURE__ */ new Set([
60928
60975
  "rawXml",
60929
60976
  "locks",
60930
60977
  "actionClick",
60931
60978
  "actionHover",
60932
60979
  "adjustmentHandles"
60933
- ]), h$ = [
60980
+ ]), u$ = [
60934
60981
  "backgroundColor",
60935
60982
  "backgroundImage",
60936
60983
  "backgroundGradient",
@@ -60941,22 +60988,22 @@ var c$ = class {
60941
60988
  "sectionName",
60942
60989
  "sectionId"
60943
60990
  ];
60944
- function u$(e, t) {
60991
+ function m$(e, t) {
60945
60992
  return e === t || null === e && null === t || null !== e && null !== t && typeof e == typeof t && "object" == typeof e && JSON.stringify(e) === JSON.stringify(t);
60946
60993
  }
60947
- function m$(e) {
60994
+ function f$(e) {
60948
60995
  const t = /* @__PURE__ */ new Map();
60949
- for (const n of e) if (t.set(n.id, n), "group" === n.type && n.children) for (const [e, r] of m$(n.children)) t.set(e, r);
60996
+ for (const n of e) if (t.set(n.id, n), "group" === n.type && n.children) for (const [e, r] of f$(n.children)) t.set(e, r);
60950
60997
  return t;
60951
60998
  }
60952
- function f$(e, t) {
60953
- const n = e, r = t, i = new Set(p$);
60999
+ function g$(e, t) {
61000
+ const n = e, r = t, i = new Set(h$);
60954
61001
  return i.add("type"), "group" === e.type && "group" === t.type && i.add("children"), function(e, t, n, r) {
60955
61002
  const i = [], a = /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)]);
60956
61003
  for (const n of a) {
60957
61004
  if (r.has(n)) continue;
60958
61005
  const a = n, o = e[n], s = t[n];
60959
- u$(o, s) || i.push({
61006
+ m$(o, s) || i.push({
60960
61007
  property: a,
60961
61008
  oldValue: o,
60962
61009
  newValue: s
@@ -60965,20 +61012,20 @@ function f$(e, t) {
60965
61012
  return i;
60966
61013
  }(n, r, 0, i);
60967
61014
  }
60968
- function g$(e) {
61015
+ function y$(e) {
60969
61016
  return e.map((e) => e.id);
60970
61017
  }
60971
- function y$(e, t, n = 0) {
61018
+ function x$(e, t, n = 0) {
60972
61019
  const r = [], i = [];
60973
- for (const n of h$) {
61020
+ for (const n of u$) {
60974
61021
  const r = e[n], a = t[n];
60975
- u$(r, a) || i.push({
61022
+ m$(r, a) || i.push({
60976
61023
  property: `slide.${n}`,
60977
61024
  oldValue: r,
60978
61025
  newValue: a
60979
61026
  });
60980
61027
  }
60981
- const a = m$(e.elements), o = m$(t.elements), s = new Set(g$(e.elements)), l = new Set(g$(t.elements));
61028
+ const a = f$(e.elements), o = f$(t.elements), s = new Set(y$(e.elements)), l = new Set(y$(t.elements));
60982
61029
  for (const e of a.keys()) s.add(e);
60983
61030
  for (const e of o.keys()) l.add(e);
60984
61031
  for (const [e, t] of a) o.has(e) || r.push({
@@ -60994,7 +61041,7 @@ function y$(e, t, n = 0) {
60994
61041
  for (const [e, t] of a) {
60995
61042
  const n = o.get(e);
60996
61043
  if (!n) continue;
60997
- const i = f$(t, n);
61044
+ const i = g$(t, n);
60998
61045
  i.length > 0 && r.push({
60999
61046
  elementId: e,
61000
61047
  elementType: t.type,
@@ -61014,7 +61061,7 @@ function y$(e, t, n = 0) {
61014
61061
  changes: r
61015
61062
  };
61016
61063
  }
61017
- function x$(e, t) {
61064
+ function b$(e, t) {
61018
61065
  const n = [], r = /* @__PURE__ */ new Map();
61019
61066
  for (let t = 0; t < e.slides.length; t++) r.set(e.slides[t].id, t);
61020
61067
  const i = /* @__PURE__ */ new Map();
@@ -61038,7 +61085,7 @@ function x$(e, t) {
61038
61085
  for (let r = 0; r < e.slides.length; r++) {
61039
61086
  const a = e.slides[r], o = i.get(a.id);
61040
61087
  if (void 0 === o) continue;
61041
- const s = y$(a, t.slides[o], r);
61088
+ const s = x$(a, t.slides[o], r);
61042
61089
  s.changes && s.changes.length > 0 && n.push(s);
61043
61090
  }
61044
61091
  const a = function(e, t) {
@@ -61087,21 +61134,21 @@ function x$(e, t) {
61087
61134
  });
61088
61135
  if (e.fontScheme && t.fontScheme) {
61089
61136
  const r = e.fontScheme, i = t.fontScheme;
61090
- u$(r.majorFont, i.majorFont) || n.push({
61137
+ m$(r.majorFont, i.majorFont) || n.push({
61091
61138
  property: "theme.fontScheme.majorFont",
61092
61139
  oldValue: r.majorFont,
61093
61140
  newValue: i.majorFont
61094
- }), u$(r.minorFont, i.minorFont) || n.push({
61141
+ }), m$(r.minorFont, i.minorFont) || n.push({
61095
61142
  property: "theme.fontScheme.minorFont",
61096
61143
  oldValue: r.minorFont,
61097
61144
  newValue: i.minorFont
61098
61145
  });
61099
- } else u$(e.fontScheme, t.fontScheme) || n.push({
61146
+ } else m$(e.fontScheme, t.fontScheme) || n.push({
61100
61147
  property: "theme.fontScheme",
61101
61148
  oldValue: e.fontScheme,
61102
61149
  newValue: t.fontScheme
61103
61150
  });
61104
- return u$(e.formatScheme, t.formatScheme) || n.push({
61151
+ return m$(e.formatScheme, t.formatScheme) || n.push({
61105
61152
  property: "theme.formatScheme",
61106
61153
  oldValue: e.formatScheme ? "(present)" : void 0,
61107
61154
  newValue: t.formatScheme ? "(present)" : void 0
@@ -61125,7 +61172,7 @@ function x$(e, t) {
61125
61172
  "contentStatus"
61126
61173
  ]) {
61127
61174
  const t = r[e], a = i[e];
61128
- u$(t, a) || n.push({
61175
+ m$(t, a) || n.push({
61129
61176
  property: `coreProperties.${e}`,
61130
61177
  oldValue: t,
61131
61178
  newValue: a
@@ -61147,7 +61194,7 @@ function x$(e, t) {
61147
61194
  "template"
61148
61195
  ]) {
61149
61196
  const t = o[e], r = s[e];
61150
- u$(t, r) || n.push({
61197
+ m$(t, r) || n.push({
61151
61198
  property: `appProperties.${e}`,
61152
61199
  oldValue: t,
61153
61200
  newValue: r
@@ -61185,37 +61232,37 @@ function x$(e, t) {
61185
61232
  }
61186
61233
  };
61187
61234
  }
61188
- function b$(e) {
61235
+ function T$(e) {
61189
61236
  const t = /* @__PURE__ */ new Set();
61190
- for (const n of e) if (t.add(n.id), "group" === n.type && n.children) for (const e of b$(n.children)) t.add(e);
61237
+ for (const n of e) if (t.add(n.id), "group" === n.type && n.children) for (const e of T$(n.children)) t.add(e);
61191
61238
  return t;
61192
61239
  }
61193
- function T$(e, t) {
61240
+ function w$(e, t) {
61194
61241
  if (!t.has(e)) return e;
61195
61242
  let n = 1, r = `${e}_m${n}`;
61196
61243
  for (; t.has(r);) n++, r = `${e}_m${n}`;
61197
61244
  return r;
61198
61245
  }
61199
- function w$(e, t) {
61246
+ function S$(e, t) {
61200
61247
  let n = t, r = `rId${n}`;
61201
61248
  for (; e.has(r);) n++, r = `rId${n}`;
61202
61249
  return r;
61203
61250
  }
61204
- function S$(e, t, n) {
61251
+ function v$(e, t, n) {
61205
61252
  for (const r of e) {
61206
61253
  if (t.has(r.id)) {
61207
- const e = v$(r.id, t);
61254
+ const e = C$(r.id, t);
61208
61255
  n.set(r.id, e), r.id = e, t.add(e);
61209
61256
  } else t.add(r.id);
61210
- "group" === r.type && r.children && S$(r.children, t, n);
61257
+ "group" === r.type && r.children && v$(r.children, t, n);
61211
61258
  }
61212
61259
  }
61213
- function v$(e, t) {
61260
+ function C$(e, t) {
61214
61261
  let n = 1, r = `${e}_m${n}`;
61215
61262
  for (; t.has(r);) n++, r = `${e}_m${n}`;
61216
61263
  return r;
61217
61264
  }
61218
- function C$(e, t) {
61265
+ function _$(e, t) {
61219
61266
  for (const n of e) {
61220
61267
  if ("connector" === n.type && n.shapeStyle) {
61221
61268
  const e = n.shapeStyle;
@@ -61228,16 +61275,16 @@ function C$(e, t) {
61228
61275
  n && (e.connectorEndConnection.shapeId = n);
61229
61276
  }
61230
61277
  }
61231
- "group" === n.type && n.children && C$(n.children, t);
61278
+ "group" === n.type && n.children && _$(n.children, t);
61232
61279
  }
61233
61280
  }
61234
- function _$(e, t) {
61281
+ function k$(e, t) {
61235
61282
  if (e.animations) for (const n of e.animations) {
61236
61283
  const e = t.get(n.elementId);
61237
61284
  e && (n.elementId = e);
61238
61285
  }
61239
61286
  }
61240
- function k$(e, t, n) {
61287
+ function P$(e, t, n) {
61241
61288
  const r = (n?.slideIndices ?? t.slides.map((e, t) => t)).filter((e) => e >= 0 && e < t.slides.length);
61242
61289
  if (0 === r.length) return 0;
61243
61290
  const i = r.map((e) => uo(t.slides[e])), a = function(e) {
@@ -61250,26 +61297,26 @@ function k$(e, t, n) {
61250
61297
  return t;
61251
61298
  }(e.slides), s = function(e) {
61252
61299
  const t = /* @__PURE__ */ new Set();
61253
- for (const n of e) for (const e of b$(n.elements)) t.add(e);
61300
+ for (const n of e) for (const e of T$(n.elements)) t.add(e);
61254
61301
  return t;
61255
61302
  }(e.slides), l = Math.min(Math.max(0, n?.insertAt ?? e.slides.length), e.slides.length);
61256
61303
  let c = e.slides.length + 2;
61257
61304
  for (const e of i) {
61258
- const t = T$(e.id, a);
61305
+ const t = w$(e.id, a);
61259
61306
  a.add(t), e.id = t;
61260
- const n = w$(o, c);
61307
+ const n = S$(o, c);
61261
61308
  o.add(n), e.rId = n, c++;
61262
61309
  const r = /* @__PURE__ */ new Map();
61263
- S$(e.elements, s, r), r.size > 0 && (C$(e.elements, r), _$(e, r)), e.isDirty = !0;
61310
+ v$(e.elements, s, r), r.size > 0 && (_$(e.elements, r), k$(e, r)), e.isDirty = !0;
61264
61311
  }
61265
61312
  e.slides.splice(l, 0, ...i);
61266
61313
  for (let t = 0; t < e.slides.length; t++) e.slides[t].slideNumber = t + 1;
61267
61314
  return n?.keepSourceTheme && t.themeColorMap && (e.themeColorMap = { ...t.themeColorMap }, t.theme && (e.theme = "function" == typeof structuredClone ? structuredClone(t.theme) : JSON.parse(JSON.stringify(t.theme)))), i.length;
61268
61315
  }
61269
- var P$ = 0;
61270
- function L$(e, t, n) {
61316
+ var L$ = 0;
61317
+ function A$(e, t, n) {
61271
61318
  e.sections || (e.sections = []);
61272
- const r = (P$ += 1, `sec_${Date.now().toString(36)}_${P$}`), i = {
61319
+ const r = (L$ += 1, `sec_${Date.now().toString(36)}_${L$}`), i = {
61273
61320
  id: r,
61274
61321
  name: t,
61275
61322
  slideIds: n.filter((t) => t >= 0 && t < e.slides.length).map((t) => e.slides[t].id)
@@ -61278,14 +61325,14 @@ function L$(e, t, n) {
61278
61325
  for (const i of n) i >= 0 && i < e.slides.length && (e.slides[i].sectionName = t, e.slides[i].sectionId = r);
61279
61326
  return i;
61280
61327
  }
61281
- function A$(e, t) {
61328
+ function I$(e, t) {
61282
61329
  if (!e.sections) return !1;
61283
61330
  const n = e.sections.findIndex((e) => e.id === t);
61284
61331
  if (-1 === n) return !1;
61285
61332
  for (const n of e.slides) n.sectionId === t && (n.sectionName = void 0, n.sectionId = void 0);
61286
61333
  return e.sections.splice(n, 1), !0;
61287
61334
  }
61288
- function I$(e, t) {
61335
+ function M$(e, t) {
61289
61336
  if (!e.sections) return;
61290
61337
  const n = /* @__PURE__ */ new Map();
61291
61338
  for (const t of e.sections) n.set(t.id, t);
@@ -61296,12 +61343,12 @@ function I$(e, t) {
61296
61343
  }
61297
61344
  e.sections = r;
61298
61345
  }
61299
- function M$(e, t) {
61346
+ function F$(e, t) {
61300
61347
  if (!e.sections || t < 0 || t >= e.slides.length) return;
61301
61348
  const n = e.slides[t];
61302
61349
  return n.sectionId ? e.sections.find((e) => e.id === n.sectionId) : void 0;
61303
61350
  }
61304
- function F$(e, t, n) {
61351
+ function R$(e, t, n) {
61305
61352
  if (!e.sections) return !1;
61306
61353
  const r = e.sections.find((e) => e.id === n);
61307
61354
  if (!r) return !1;
@@ -61316,8 +61363,8 @@ function F$(e, t, n) {
61316
61363
  }
61317
61364
  return !0;
61318
61365
  }
61319
- var R$ = /\{\{([^{}]+)\}\}/g, D$ = /^\s*#each\s+([\w.]+)\s*$/, N$ = /^\s*\/each\s*$/, B$ = /^\s*#if\s+(!?[\w.]+)\s*$/, O$ = /^\s*\/if\s*$/;
61320
- function E$(e, t) {
61366
+ var D$ = /\{\{([^{}]+)\}\}/g, N$ = /^\s*#each\s+([\w.]+)\s*$/, B$ = /^\s*\/each\s*$/, O$ = /^\s*#if\s+(!?[\w.]+)\s*$/, E$ = /^\s*\/if\s*$/;
61367
+ function j$(e, t) {
61321
61368
  const n = t.trim().split(".");
61322
61369
  let r = e;
61323
61370
  for (const e of n) {
@@ -61326,7 +61373,7 @@ function E$(e, t) {
61326
61373
  }
61327
61374
  return r;
61328
61375
  }
61329
- function j$(e, t) {
61376
+ function $$(e, t) {
61330
61377
  const n = t.startsWith("!"), r = function(e) {
61331
61378
  if (null == e) return !1;
61332
61379
  if ("boolean" == typeof e) return e;
@@ -61334,29 +61381,29 @@ function j$(e, t) {
61334
61381
  if ("string" == typeof e) return e.length > 0;
61335
61382
  if (Array.isArray(e)) return e.length > 0;
61336
61383
  return !0;
61337
- }(E$(e, n ? t.slice(1).trim() : t.trim()));
61384
+ }(j$(e, n ? t.slice(1).trim() : t.trim()));
61338
61385
  return n ? !r : r;
61339
61386
  }
61340
- function $$(e, t) {
61341
- let n = z$(e, t);
61342
- return n = n.replace(R$, (e, n) => {
61387
+ function z$(e, t) {
61388
+ let n = X$(e, t);
61389
+ return n = n.replace(D$, (e, n) => {
61343
61390
  const r = n.trim();
61344
- if (D$.test(r) || N$.test(r) || B$.test(r) || O$.test(r)) return e;
61345
- const i = E$(t, r);
61391
+ if (N$.test(r) || B$.test(r) || O$.test(r) || E$.test(r)) return e;
61392
+ const i = j$(t, r);
61346
61393
  return void 0 === i ? e : "string" == typeof i || "number" == typeof i || "boolean" == typeof i ? String(i) : e;
61347
61394
  }), n;
61348
61395
  }
61349
- function z$(e, t) {
61396
+ function X$(e, t) {
61350
61397
  let n = e, r = 0;
61351
61398
  for (; r++ < 100;) {
61352
61399
  const e = /\{\{\s*#if\s+(!?[\w.]+)\s*\}\}((?:(?!\{\{\s*#if\s)(?!\{\{\s*\/if\s*\}\}).)*?)\{\{\s*\/if\s*\}\}/s.exec(n);
61353
61400
  if (!e) break;
61354
- const r = e[1].trim(), i = e[2], a = j$(t, r);
61401
+ const r = e[1].trim(), i = e[2], a = $$(t, r);
61355
61402
  n = n.slice(0, e.index) + (a ? i : "") + n.slice(e.index + e[0].length);
61356
61403
  }
61357
61404
  return n;
61358
61405
  }
61359
- function X$(e, t) {
61406
+ function U$(e, t) {
61360
61407
  if (0 === e.length) return;
61361
61408
  const n = [], r = [];
61362
61409
  for (let t = 0; t < e.length; t++) {
@@ -61368,17 +61415,17 @@ function X$(e, t) {
61368
61415
  localOffset: e
61369
61416
  }), n.push(a[e]);
61370
61417
  }
61371
- const i = n.join(""), a = z$(i, t);
61418
+ const i = n.join(""), a = X$(i, t);
61372
61419
  if (a !== i) return function(e, t, n) {
61373
61420
  let r = !1;
61374
61421
  for (const t of e) t.isParagraphBreak || (r ? t.text = "" : (t.text = n, r = !0));
61375
- }(e, 0, a), void X$(e, t);
61376
- R$.lastIndex = 0;
61422
+ }(e, 0, a), void U$(e, t);
61423
+ D$.lastIndex = 0;
61377
61424
  const o = [];
61378
61425
  let s;
61379
- for (; null !== (s = R$.exec(i));) {
61426
+ for (; null !== (s = D$.exec(i));) {
61380
61427
  const e = s[1].trim();
61381
- D$.test(e) || N$.test(e) || B$.test(e) || O$.test(e) || o.push({
61428
+ N$.test(e) || B$.test(e) || O$.test(e) || E$.test(e) || o.push({
61382
61429
  start: s.index,
61383
61430
  end: s.index + s[0].length,
61384
61431
  key: e,
@@ -61386,7 +61433,7 @@ function X$(e, t) {
61386
61433
  });
61387
61434
  }
61388
61435
  if (0 !== o.length) for (let n = o.length - 1; n >= 0; n--) {
61389
- const i = o[n], a = E$(t, i.key);
61436
+ const i = o[n], a = j$(t, i.key);
61390
61437
  if (void 0 === a) continue;
61391
61438
  if ("string" != typeof a && "number" != typeof a && "boolean" != typeof a) continue;
61392
61439
  const s = String(a), l = r[i.start], c = r[i.end - 1];
@@ -61402,25 +61449,25 @@ function X$(e, t) {
61402
61449
  }
61403
61450
  }
61404
61451
  }
61405
- function U$(e, t) {
61452
+ function G$(e, t) {
61406
61453
  for (const n of e) {
61407
- if ("group" === n.type && "children" in n && U$(n.children, t), "table" === n.type && "tableData" in n) {
61454
+ if ("group" === n.type && "children" in n && G$(n.children, t), "table" === n.type && "tableData" in n) {
61408
61455
  const e = n;
61409
- if (e.tableData?.rows) for (const n of e.tableData.rows) for (const e of n.cells) e.text = $$(e.text, t);
61456
+ if (e.tableData?.rows) for (const n of e.tableData.rows) for (const e of n.cells) e.text = z$(e.text, t);
61410
61457
  continue;
61411
61458
  }
61412
61459
  if (!St(n)) continue;
61413
61460
  const e = n.textSegments;
61414
- e && e.length > 0 ? (X$(e, t), n.text = e.filter((e) => !e.isParagraphBreak).map((e) => e.text).join("")) : n.text && (n.text = $$(n.text, t));
61461
+ e && e.length > 0 ? (U$(e, t), n.text = e.filter((e) => !e.isParagraphBreak).map((e) => e.text).join("")) : n.text && (n.text = z$(n.text, t));
61415
61462
  }
61416
61463
  }
61417
- function G$(e, t) {
61464
+ function W$(e, t) {
61418
61465
  let n;
61419
- for (R$.lastIndex = 0; null !== (n = R$.exec(e));) t.add(n[1].trim());
61466
+ for (D$.lastIndex = 0; null !== (n = D$.exec(e));) t.add(n[1].trim());
61420
61467
  }
61421
- function W$(e) {
61468
+ function V$(e) {
61422
61469
  for (const t of e.elements) {
61423
- const e = H$(t);
61470
+ const e = q$(t);
61424
61471
  if (e) {
61425
61472
  const t = /\{\{\s*#each\s+([\w.]+)\s*\}\}/.exec(e);
61426
61473
  if (t) return t[1];
@@ -61428,31 +61475,31 @@ function W$(e) {
61428
61475
  }
61429
61476
  return null;
61430
61477
  }
61431
- function V$(e) {
61478
+ function H$(e) {
61432
61479
  for (const t of e.elements) {
61433
- const e = H$(t);
61480
+ const e = q$(t);
61434
61481
  if (e && /\{\{\s*\/each\s*\}\}/.test(e)) return !0;
61435
61482
  }
61436
61483
  return !1;
61437
61484
  }
61438
- function H$(e) {
61485
+ function q$(e) {
61439
61486
  if (St(e)) return e.textSegments && e.textSegments.length > 0 ? e.textSegments.filter((e) => !e.isParagraphBreak).map((e) => e.text ?? "").join("") : e.text ?? null;
61440
61487
  if ("group" === e.type && "children" in e) {
61441
61488
  const t = e.children;
61442
61489
  for (const e of t) {
61443
- const t = H$(e);
61490
+ const t = q$(e);
61444
61491
  if (t) return t;
61445
61492
  }
61446
61493
  }
61447
61494
  return null;
61448
61495
  }
61449
- function q$(e) {
61450
- for (const t of e.elements) Y$(t);
61451
- }
61452
61496
  function Y$(e) {
61497
+ for (const t of e.elements) Z$(t);
61498
+ }
61499
+ function Z$(e) {
61453
61500
  if ("group" === e.type && "children" in e) {
61454
61501
  const t = e.children;
61455
- for (const e of t) Y$(e);
61502
+ for (const e of t) Z$(e);
61456
61503
  }
61457
61504
  if (!St(e)) return;
61458
61505
  const t = e.textSegments;
@@ -61461,7 +61508,7 @@ function Y$(e) {
61461
61508
  e.text = t.filter((e) => !e.isParagraphBreak).map((e) => e.text).join("");
61462
61509
  } else e.text && (e.text = e.text.replace(/\{\{\s*#each\s+[\w.]+\s*\}\}/g, "").replace(/\{\{\s*\/each\s*\}\}/g, ""));
61463
61510
  }
61464
- function Z$(e) {
61511
+ function K$(e) {
61465
61512
  const t = /* @__PURE__ */ new Set();
61466
61513
  function n(e) {
61467
61514
  if ("group" === e.type && "children" in e) {
@@ -61470,33 +61517,33 @@ function Z$(e) {
61470
61517
  }
61471
61518
  if ("table" === e.type && "tableData" in e) {
61472
61519
  const n = e;
61473
- if (n.tableData?.rows) for (const e of n.tableData.rows) for (const n of e.cells) G$(n.text, t);
61520
+ if (n.tableData?.rows) for (const e of n.tableData.rows) for (const n of e.cells) W$(n.text, t);
61474
61521
  return;
61475
61522
  }
61476
61523
  if (!St(e)) return;
61477
61524
  const r = e.textSegments;
61478
- if (r && r.length > 0) G$(r.filter((e) => !e.isParagraphBreak).map((e) => e.text ?? "").join(""), t);
61479
- else e.text && G$(e.text, t);
61525
+ if (r && r.length > 0) W$(r.filter((e) => !e.isParagraphBreak).map((e) => e.text ?? "").join(""), t);
61526
+ else e.text && W$(e.text, t);
61480
61527
  }
61481
61528
  for (const t of e.slides) for (const e of t.elements) n(e);
61482
61529
  return Array.from(t);
61483
61530
  }
61484
- function K$(e, t) {
61531
+ function J$(e, t) {
61485
61532
  e.slides = function(e, t) {
61486
61533
  const n = [];
61487
61534
  let r = 0;
61488
61535
  for (; r < e.length;) {
61489
- const i = W$(e[r]);
61536
+ const i = V$(e[r]);
61490
61537
  if (!i) {
61491
61538
  n.push(e[r]), r++;
61492
61539
  continue;
61493
61540
  }
61494
61541
  const a = [];
61495
61542
  let o = -1;
61496
- if (V$(e[r])) a.push(e[r]), o = r;
61543
+ if (H$(e[r])) a.push(e[r]), o = r;
61497
61544
  else {
61498
61545
  a.push(e[r]);
61499
- for (let t = r + 1; t < e.length; t++) if (a.push(e[t]), V$(e[t])) {
61546
+ for (let t = r + 1; t < e.length; t++) if (a.push(e[t]), H$(e[t])) {
61500
61547
  o = t;
61501
61548
  break;
61502
61549
  }
@@ -61505,7 +61552,7 @@ function K$(e, t) {
61505
61552
  n.push(e[r]), r++;
61506
61553
  continue;
61507
61554
  }
61508
- const s = E$(t, i), l = Array.isArray(s) ? s : [];
61555
+ const s = j$(t, i), l = Array.isArray(s) ? s : [];
61509
61556
  for (const e of l) {
61510
61557
  const r = {
61511
61558
  ...t,
@@ -61513,67 +61560,67 @@ function K$(e, t) {
61513
61560
  };
61514
61561
  for (const e of a) {
61515
61562
  const t = uo(e);
61516
- t.slideNumber = n.length + 1, t.id = `slide${t.slideNumber}`, t.rId = `rId${t.slideNumber + 1}`, q$(t), U$(t.elements, r), t.notes && (t.notes = $$(t.notes, r)), t.notesSegments && t.notesSegments.length > 0 && (X$(t.notesSegments, r), t.notes = t.notesSegments.filter((e) => !e.isParagraphBreak).map((e) => e.text).join("")), n.push(t);
61563
+ t.slideNumber = n.length + 1, t.id = `slide${t.slideNumber}`, t.rId = `rId${t.slideNumber + 1}`, Y$(t), G$(t.elements, r), t.notes && (t.notes = z$(t.notes, r)), t.notesSegments && t.notesSegments.length > 0 && (U$(t.notesSegments, r), t.notes = t.notesSegments.filter((e) => !e.isParagraphBreak).map((e) => e.text).join("")), n.push(t);
61517
61564
  }
61518
61565
  }
61519
61566
  r = o + 1;
61520
61567
  }
61521
61568
  return n;
61522
61569
  }(e.slides, t);
61523
- for (const n of e.slides) U$(n.elements, t), n.notes && (n.notes = $$(n.notes, t)), n.notesSegments && n.notesSegments.length > 0 && (X$(n.notesSegments, t), n.notes = n.notesSegments.filter((e) => !e.isParagraphBreak).map((e) => e.text).join(""));
61524
- }
61525
- var J$ = 0;
61526
- function Q$(e) {
61527
- return J$ += 1, `${e}_clone_${Date.now().toString(36)}_${J$}`;
61570
+ for (const n of e.slides) G$(n.elements, t), n.notes && (n.notes = z$(n.notes, t)), n.notesSegments && n.notesSegments.length > 0 && (U$(n.notesSegments, t), n.notes = n.notesSegments.filter((e) => !e.isParagraphBreak).map((e) => e.text).join(""));
61528
61571
  }
61572
+ var Q$ = 0;
61529
61573
  function ez(e) {
61574
+ return Q$ += 1, `${e}_clone_${Date.now().toString(36)}_${Q$}`;
61575
+ }
61576
+ function tz(e) {
61530
61577
  const t = "text" === e.type ? "txt" : "shape" === e.type ? "shp" : "connector" === e.type ? "cxn" : "image" === e.type || "picture" === e.type ? "img" : "table" === e.type ? "tbl" : "chart" === e.type ? "cht" : "media" === e.type ? "med" : "group" === e.type ? "grp" : e.type, n = {
61531
61578
  ...e,
61532
- id: Q$(t)
61579
+ id: ez(t)
61533
61580
  };
61534
- return "group" === n.type && "children" in n && (n.children = n.children.map((e) => ez(e))), n;
61535
- }
61536
- function tz(e) {
61537
- return ez(ho(e));
61581
+ return "group" === n.type && "children" in n && (n.children = n.children.map((e) => tz(e))), n;
61538
61582
  }
61539
61583
  function nz(e) {
61540
- if (!e.chartData) throw new Error("Chart element has no chartData. Cannot perform chart operations on an uninitialised chart.");
61584
+ return tz(ho(e));
61541
61585
  }
61542
- function rz(e, t) {
61543
- if (nz(e), t < 0 || t >= e.chartData.series.length) throw new RangeError(`Series index ${t} is out of range. Chart has ${e.chartData.series.length} series (indices 0–${e.chartData.series.length - 1}).`);
61586
+ function rz(e) {
61587
+ if (!e.chartData) throw new Error("Chart element has no chartData. Cannot perform chart operations on an uninitialised chart.");
61544
61588
  }
61545
61589
  function iz(e, t) {
61546
- nz(e), e.chartData.chartType = t;
61590
+ if (rz(e), t < 0 || t >= e.chartData.series.length) throw new RangeError(`Series index ${t} is out of range. Chart has ${e.chartData.series.length} series (indices 0–${e.chartData.series.length - 1}).`);
61547
61591
  }
61548
61592
  function az(e, t) {
61549
- nz(e), e.chartData.series.push({
61593
+ rz(e), e.chartData.chartType = t;
61594
+ }
61595
+ function oz(e, t) {
61596
+ rz(e), e.chartData.series.push({
61550
61597
  name: t.name,
61551
61598
  values: t.values,
61552
61599
  color: t.color
61553
61600
  });
61554
61601
  }
61555
- function oz(e, t) {
61556
- rz(e, t), e.chartData.series.splice(t, 1);
61557
- }
61558
61602
  function sz(e, t) {
61559
- nz(e), e.chartData.categories = t;
61603
+ iz(e, t), e.chartData.series.splice(t, 1);
61560
61604
  }
61561
- function lz(e, t, n) {
61562
- rz(e, t), e.chartData.series[t].values = n;
61605
+ function lz(e, t) {
61606
+ rz(e), e.chartData.categories = t;
61563
61607
  }
61564
- function cz(e, t) {
61565
- nz(e), e.chartData.title = t;
61608
+ function cz(e, t, n) {
61609
+ iz(e, t), e.chartData.series[t].values = n;
61566
61610
  }
61567
61611
  function dz(e, t) {
61568
- nz(e), e.chartData.grouping = t;
61612
+ rz(e), e.chartData.title = t;
61569
61613
  }
61570
61614
  function pz(e, t) {
61571
- nz(e);
61615
+ rz(e), e.chartData.grouping = t;
61616
+ }
61617
+ function hz(e, t) {
61618
+ rz(e);
61572
61619
  const n = e.chartData.style ??= {};
61573
61620
  void 0 !== t.show && (n.hasLegend = t.show), void 0 !== t.position && (n.legendPosition = t.position, void 0 === n.hasLegend && (n.hasLegend = !0));
61574
61621
  }
61575
- function hz(e, t) {
61576
- nz(e);
61622
+ function uz(e, t) {
61623
+ rz(e);
61577
61624
  const n = e.chartData.style ??= {};
61578
61625
  void 0 !== t.show && (n.hasDataLabels = t.show);
61579
61626
  const r = [
@@ -61589,8 +61636,8 @@ function hz(e, t) {
61589
61636
  void 0 !== t.position && (e.position = t.position || void 0), void 0 === n.hasDataLabels && (n.hasDataLabels = !0);
61590
61637
  }
61591
61638
  }
61592
- function uz(e, t, n) {
61593
- nz(e);
61639
+ function mz(e, t, n) {
61640
+ rz(e);
61594
61641
  const r = e.chartData.axes ??= [];
61595
61642
  let i = r.find((e) => e.axisType === t);
61596
61643
  i || (i = { axisType: t }, r.push(i)), void 0 !== n.min && (i.min = n.min ?? void 0), void 0 !== n.max && (i.max = n.max ?? void 0), void 0 !== n.majorUnit && (i.majorUnit = n.majorUnit ?? void 0), void 0 !== n.minorUnit && (i.minorUnit = n.minorUnit ?? void 0), void 0 !== n.orientation && (i.orientation = n.orientation ?? void 0), void 0 !== n.numberFormat && (i.numFmt = n.numberFormat ? {
@@ -61598,28 +61645,28 @@ function uz(e, t, n) {
61598
61645
  sourceLinked: !1
61599
61646
  } : void 0), void 0 !== n.tickLabelPosition && (i.tickLblPos = n.tickLabelPosition), void 0 !== n.title && (i.titleText = n.title ?? ""), void 0 !== n.majorGridlines && (i.majorGridlines = n.majorGridlines), void 0 !== n.minorGridlines && (i.minorGridlines = n.minorGridlines), void 0 !== n.displayUnits && (i.displayUnits = n.displayUnits ?? void 0), void 0 !== n.displayUnitsValue && (i.displayUnitsValue = n.displayUnitsValue ?? void 0), void 0 !== n.displayUnitsLabel && (i.displayUnitsLabel = n.displayUnitsLabel);
61600
61647
  }
61601
- function mz(e, t) {
61602
- nz(e);
61648
+ function fz(e, t) {
61649
+ rz(e);
61603
61650
  const n = e.chartData.axes ??= [];
61604
61651
  let r = n.find((e) => e.axisType === t);
61605
61652
  return r || (r = { axisType: t }, n.push(r)), r;
61606
61653
  }
61607
- function fz(e, t, n) {
61608
- const r = mz(e, t);
61654
+ function gz(e, t, n) {
61655
+ const r = fz(e, t);
61609
61656
  r.logScale = n.enabled, n.enabled ? r.logBase = n.base ?? r.logBase ?? 10 : r.logBase = void 0;
61610
61657
  }
61611
- function gz(e, t, n) {
61612
- const r = mz(e, t);
61658
+ function yz(e, t, n) {
61659
+ const r = fz(e, t);
61613
61660
  void 0 !== n.fontFamily && (r.fontFamily = n.fontFamily ?? void 0), void 0 !== n.fontSize && (r.fontSize = n.fontSize ?? void 0), void 0 !== n.fontBold && (r.fontBold = n.fontBold), void 0 !== n.fontColor && (r.fontColor = n.fontColor ?? void 0);
61614
61661
  }
61615
- function yz(e, t, n, r) {
61616
- const i = mz(e, t), a = "major" === n ? "majorGridlinesSpPr" : "minorGridlinesSpPr", o = "major" === n ? "majorGridlines" : "minorGridlines", s = { ...i[a] ?? {} };
61662
+ function xz(e, t, n, r) {
61663
+ const i = fz(e, t), a = "major" === n ? "majorGridlinesSpPr" : "minorGridlinesSpPr", o = "major" === n ? "majorGridlines" : "minorGridlines", s = { ...i[a] ?? {} };
61617
61664
  void 0 !== r.color && (s.strokeColor = r.color ?? void 0), void 0 !== r.width && (s.strokeWidth = r.width ?? void 0), void 0 !== r.dashStyle && (s.strokeDashStyle = r.dashStyle ?? void 0);
61618
61665
  const l = void 0 !== s.strokeColor || void 0 !== s.strokeWidth || void 0 !== s.strokeDashStyle || void 0 !== s.fillColor;
61619
61666
  i[a] = l ? s : void 0, l && (i[o] = !0);
61620
61667
  }
61621
- function xz(e, t, n) {
61622
- rz(e, t);
61668
+ function bz(e, t, n) {
61669
+ iz(e, t);
61623
61670
  const r = e.chartData.series[t];
61624
61671
  if (null === n) return void (r.marker = void 0);
61625
61672
  const i = r.marker;
@@ -61634,19 +61681,19 @@ function xz(e, t, n) {
61634
61681
  fillColor: a.fillColor
61635
61682
  }), r.marker = o;
61636
61683
  }
61637
- function bz(e, t, n) {
61638
- rz(e, t);
61684
+ function Tz(e, t, n) {
61685
+ iz(e, t);
61639
61686
  const r = e.chartData;
61640
61687
  r.series[t].seriesChartType = n ?? void 0;
61641
61688
  new Set(r.series.map((e) => e.seriesChartType ?? r.chartType).filter((e) => "combo" !== e)).size > 1 && (r.chartType = "combo");
61642
61689
  }
61643
- function Tz(e, t) {
61690
+ function wz(e, t) {
61644
61691
  const n = e.dataPoints ??= [];
61645
61692
  let r = n.find((e) => e.idx === t);
61646
61693
  return r || (r = { idx: t }, n.push(r), n.sort((e, t) => e.idx - t.idx)), r;
61647
61694
  }
61648
- function wz(e, t, n, r) {
61649
- rz(e, t);
61695
+ function Sz(e, t, n, r) {
61696
+ iz(e, t);
61650
61697
  const i = e.chartData.series[t];
61651
61698
  if (null === r) {
61652
61699
  const e = i.dataPoints?.find((e) => e.idx === n);
@@ -61654,34 +61701,34 @@ function wz(e, t, n, r) {
61654
61701
  e.spPr && (e.spPr = {
61655
61702
  ...e.spPr,
61656
61703
  fillColor: void 0
61657
- }, void 0 === e.spPr.fillColor && void 0 === e.spPr.strokeColor && void 0 === e.spPr.strokeWidth && void 0 === e.spPr.strokeDashStyle && (e.spPr = void 0)), _z(i, n);
61704
+ }, void 0 === e.spPr.fillColor && void 0 === e.spPr.strokeColor && void 0 === e.spPr.strokeWidth && void 0 === e.spPr.strokeDashStyle && (e.spPr = void 0)), kz(i, n);
61658
61705
  return;
61659
61706
  }
61660
- const a = Tz(i, n);
61707
+ const a = wz(i, n);
61661
61708
  a.spPr = {
61662
61709
  ...a.spPr ?? {},
61663
61710
  fillColor: r
61664
61711
  };
61665
61712
  }
61666
- function Sz(e, t, n, r) {
61667
- rz(e, t);
61713
+ function vz(e, t, n, r) {
61714
+ iz(e, t);
61668
61715
  const i = e.chartData.series[t];
61669
61716
  if (null === r) {
61670
61717
  const e = i.dataPoints?.find((e) => e.idx === n);
61671
- e && (e.explosion = void 0, _z(i, n));
61718
+ e && (e.explosion = void 0, kz(i, n));
61672
61719
  return;
61673
61720
  }
61674
- Tz(i, n).explosion = r;
61721
+ wz(i, n).explosion = r;
61675
61722
  }
61676
- function vz(e, t, n, r) {
61677
- rz(e, t);
61723
+ function Cz(e, t, n, r) {
61724
+ iz(e, t);
61678
61725
  const i = e.chartData.series[t];
61679
61726
  if (null === r) {
61680
61727
  const e = i.dataPoints?.find((e) => e.idx === n);
61681
- e && (e.marker = void 0, _z(i, n));
61728
+ e && (e.marker = void 0, kz(i, n));
61682
61729
  return;
61683
61730
  }
61684
- const a = Tz(i, n), o = a.marker, s = {
61731
+ const a = wz(i, n), o = a.marker, s = {
61685
61732
  symbol: r.symbol ?? o?.symbol ?? "circle",
61686
61733
  size: r.size ?? o?.size,
61687
61734
  spPr: o?.spPr ? { ...o.spPr } : void 0
@@ -61691,8 +61738,8 @@ function vz(e, t, n, r) {
61691
61738
  fillColor: r.fillColor
61692
61739
  }), a.marker = s;
61693
61740
  }
61694
- function Cz(e, t, n, r) {
61695
- rz(e, t);
61741
+ function _z(e, t, n, r) {
61742
+ iz(e, t);
61696
61743
  const i = e.chartData.series[t];
61697
61744
  if (null === r) {
61698
61745
  if (!i.dataLabels) return;
@@ -61705,13 +61752,13 @@ function Cz(e, t, n, r) {
61705
61752
  void 0 !== t.showValue && (e.showVal = t.showValue), void 0 !== t.showCategory && (e.showCatName = t.showCategory), void 0 !== t.showSeriesName && (e.showSerName = t.showSeriesName), void 0 !== t.showPercent && (e.showPercent = t.showPercent), void 0 !== t.showLegendKey && (e.showLegendKey = t.showLegendKey), void 0 !== t.position && (e.position = t.position), void 0 !== t.text && (e.text = "" === t.text ? void 0 : t.text);
61706
61753
  }(o, r);
61707
61754
  }
61708
- function _z(e, t) {
61755
+ function kz(e, t) {
61709
61756
  if (!e.dataPoints) return;
61710
61757
  const n = e.dataPoints.find((e) => e.idx === t);
61711
61758
  if (!n) return;
61712
61759
  void 0 === n.spPr && void 0 === n.explosion && void 0 === n.invertIfNegative && void 0 === n.marker && (e.dataPoints = e.dataPoints.filter((e) => e.idx !== t), 0 === e.dataPoints.length && (e.dataPoints = void 0));
61713
61760
  }
61714
- function kz(e, t) {
61761
+ function Pz(e, t) {
61715
61762
  const n = t.toLowerCase(), r = e.layoutOptions?.find((e) => e.name.toLowerCase() === n);
61716
61763
  if (r) return r;
61717
61764
  if (e.slideMasters) for (const r of e.slideMasters) {
@@ -61722,19 +61769,19 @@ function kz(e, t) {
61722
61769
  };
61723
61770
  }
61724
61771
  }
61725
- function Pz(e, t) {
61772
+ function Lz(e, t) {
61726
61773
  const n = e.layoutOptions?.find((e) => e.type === t);
61727
61774
  if (n) return n;
61728
61775
  }
61729
- function Lz(e, t, n) {
61776
+ function Az(e, t, n) {
61730
61777
  if (!t || "" === t.trim()) throw new Error("newShapeType must be a non-empty string");
61731
61778
  e.shapeType = t, e.shapeAdjustments = void 0 !== n ? { ...n } : void 0, e.pathData = void 0, e.pathWidth = void 0, e.pathHeight = void 0, e.customGeometryPaths = void 0, e.adjustmentHandles = void 0;
61732
61779
  }
61733
- function Az(e, t, n, r) {
61780
+ function Iz(e, t, n, r) {
61734
61781
  if (!t || "" === t.trim()) throw new Error("svgPath must be a non-empty string");
61735
61782
  e.shapeType = void 0, e.shapeAdjustments = void 0, e.adjustmentHandles = void 0, e.pathData = t, e.pathWidth = n, e.pathHeight = r, e.customGeometryPaths = void 0;
61736
61783
  }
61737
- function Iz(e, t, n = {}) {
61784
+ function Mz(e, t, n = {}) {
61738
61785
  if (!t) {
61739
61786
  const { locks: t, ...n } = e;
61740
61787
  return n;
@@ -61750,7 +61797,7 @@ function Iz(e, t, n = {}) {
61750
61797
  locks: r
61751
61798
  };
61752
61799
  }
61753
- var Mz = class e {
61800
+ var Fz = class e {
61754
61801
  _chartType;
61755
61802
  _input;
61756
61803
  _options = {};
@@ -61795,7 +61842,7 @@ var Mz = class e {
61795
61842
  return or(this._chartType, this._input, this._options);
61796
61843
  }
61797
61844
  };
61798
- var Fz = {
61845
+ var Rz = {
61799
61846
  OFFICE: {
61800
61847
  name: "Office Theme",
61801
61848
  colors: {
@@ -61965,27 +62012,27 @@ var Fz = {
61965
62012
  }
61966
62013
  }
61967
62014
  };
61968
- function Rz(e) {
61969
- return Fz[e];
62015
+ function Dz(e) {
62016
+ return Rz[e];
61970
62017
  }
61971
- var Dz = [
62018
+ var Nz = [
61972
62019
  "parse",
61973
62020
  "preserve",
61974
62021
  "edit",
61975
62022
  "serialize"
61976
62023
  ];
61977
- function Nz(e, t, n = Dz) {
62024
+ function Bz(e, t, n = Nz) {
61978
62025
  return {
61979
62026
  test: e,
61980
62027
  anchors: t,
61981
62028
  facets: n
61982
62029
  };
61983
62030
  }
61984
- var Bz = {};
61985
- function Oz(e, t) {
61986
- for (const n of e) Bz[n] = t;
62031
+ var Oz = {};
62032
+ function Ez(e, t) {
62033
+ for (const n of e) Oz[n] = t;
61987
62034
  }
61988
- Oz([
62035
+ Ez([
61989
62036
  "chart:complexType:CT_DispUnits",
61990
62037
  "chart:complexType:CT_DispUnitsLbl",
61991
62038
  "chart:element:dispUnits",
@@ -61996,19 +62043,19 @@ Oz([
61996
62043
  edit: "partial",
61997
62044
  serialize: "partial",
61998
62045
  note: "Display units and common label fields are typed; rich text and unmodeled formatting are preserved.",
61999
- evidence: [Nz("src/core/utils/chart-axis-dispunits-serializer.test.ts", ["edits label text, layout, and shape properties in schema order", "retains extension and unmodeled XML during a dirty write"])]
62000
- }), Oz(["chart:element:builtInUnit", "chart:element:custUnit"], {
62046
+ evidence: [Bz("src/core/utils/chart-axis-dispunits-serializer.test.ts", ["edits label text, layout, and shape properties in schema order", "retains extension and unmodeled XML during a dirty write"])]
62047
+ }), Ez(["chart:element:builtInUnit", "chart:element:custUnit"], {
62001
62048
  parse: "native",
62002
62049
  preserve: "native",
62003
62050
  edit: "native",
62004
62051
  serialize: "native",
62005
62052
  note: "Typed and validated built-in or custom chart display units.",
62006
- evidence: [Nz("src/core/utils/chart-axis-dispunits-serializer.test.ts", [
62053
+ evidence: [Bz("src/core/utils/chart-axis-dispunits-serializer.test.ts", [
62007
62054
  "writes a built-in unit",
62008
62055
  "writes a custom unit divisor",
62009
62056
  "validates custom and built-in unit values"
62010
62057
  ])]
62011
- }), Oz([
62058
+ }), Ez([
62012
62059
  "drawing:complexType:CT_InnerShadowEffect",
62013
62060
  "drawing:complexType:CT_ReflectionEffect",
62014
62061
  "drawing:complexType:CT_SoftEdgesEffect",
@@ -62021,12 +62068,12 @@ Oz([
62021
62068
  edit: "partial",
62022
62069
  serialize: "partial",
62023
62070
  note: "Common secondary-effect fields are typed with lossless color-transform and extension preservation.",
62024
- evidence: [Nz("src/core/core/builders/effect-list-roundtrip.test.ts", [
62071
+ evidence: [Bz("src/core/core/builders/effect-list-roundtrip.test.ts", [
62025
62072
  "extracts inner shadow, soft edge, and reflection independently of prefix",
62026
62073
  "surgically edits modeled effects without dropping transforms or extensions",
62027
62074
  "emits reflection fixed percentages within their schema bounds"
62028
62075
  ])]
62029
- }), Oz([
62076
+ }), Ez([
62030
62077
  "diagram:complexType:CT_DiagramDefinition",
62031
62078
  "diagram:complexType:CT_LayoutNode",
62032
62079
  "diagram:element:layoutDef",
@@ -62037,8 +62084,8 @@ Oz([
62037
62084
  edit: "partial",
62038
62085
  serialize: "partial",
62039
62086
  note: "Definition metadata and layout-node identity are typed; algorithms and constraints are preserved.",
62040
- evidence: [Nz("src/core/utils/smartart-layout-definition.test.ts", ["parses CT_DiagramDefinition and recursive CT_LayoutNode with arbitrary prefixes", "surgically edits typed fields and preserves algorithms, unknown data, and extLst"])]
62041
- }), Oz([
62087
+ evidence: [Bz("src/core/utils/smartart-layout-definition.test.ts", ["parses CT_DiagramDefinition and recursive CT_LayoutNode with arbitrary prefixes", "surgically edits typed fields and preserves algorithms, unknown data, and extLst"])]
62088
+ }), Ez([
62042
62089
  "diagram:complexType:CT_Categories",
62043
62090
  "diagram:complexType:CT_Category",
62044
62091
  "diagram:complexType:CT_Description",
@@ -62065,8 +62112,8 @@ Oz([
62065
62112
  edit: "native",
62066
62113
  serialize: "native",
62067
62114
  note: "Typed and validated DiagramML definition metadata.",
62068
- evidence: [Nz("src/core/utils/smartart-layout-definition.test.ts", ["rejects invalid required values and unsigned integer facets"]), Nz("src/core/utils/smartart-definition-metadata.test.ts", ["validates required values, unsigned priorities, and CT_Colors enums"])]
62069
- }), Oz([
62115
+ evidence: [Bz("src/core/utils/smartart-layout-definition.test.ts", ["rejects invalid required values and unsigned integer facets"]), Bz("src/core/utils/smartart-definition-metadata.test.ts", ["validates required values, unsigned priorities, and CT_Colors enums"])]
62116
+ }), Ez([
62070
62117
  "chart:complexType:CT_PrintSettings",
62071
62118
  "chart:complexType:CT_HeaderFooter",
62072
62119
  "chart:complexType:CT_PageMargins",
@@ -62083,12 +62130,12 @@ Oz([
62083
62130
  edit: "native",
62084
62131
  serialize: "native",
62085
62132
  note: "Classic ChartML print settings are typed, validated, schema-ordered, and losslessly editable.",
62086
- evidence: [Nz("src/core/utils/chart-print-settings.test.ts", [
62133
+ evidence: [Bz("src/core/utils/chart-print-settings.test.ts", [
62087
62134
  "parses all CT_PrintSettings members independently of namespace prefix",
62088
62135
  "applies edits in schema order while preserving foreign content",
62089
62136
  "validates schema numeric ranges and enum values on serialization"
62090
- ]), Nz("src/__tests__/integration/chart-print-settings-roundtrip.test.ts", ["loads, edits, saves, and reloads print settings without losing extensions"])]
62091
- }), Oz([
62137
+ ]), Bz("src/__tests__/integration/chart-print-settings-roundtrip.test.ts", ["loads, edits, saves, and reloads print settings without losing extensions"])]
62138
+ }), Ez([
62092
62139
  "diagram:complexType:CT_DiagramDefinitionHeader",
62093
62140
  "diagram:complexType:CT_DiagramDefinitionHeaderLst",
62094
62141
  "diagram:complexType:CT_StyleDefinitionHeader",
@@ -62115,12 +62162,12 @@ Oz([
62115
62162
  edit: "native",
62116
62163
  serialize: "native",
62117
62164
  note: "Diagram definition header catalogs are typed, validated, prefix-independent, and preserve foreign XML.",
62118
- evidence: [Nz("src/core/utils/smartart-definition-header.test.ts", [
62165
+ evidence: [Bz("src/core/utils/smartart-definition-header.test.ts", [
62119
62166
  "parses and serializes the %s family prefix-independently",
62120
62167
  "validates required members and XML Schema integer ranges",
62121
62168
  "creates a namespace-complete standalone header catalog"
62122
62169
  ])]
62123
- }), Oz([
62170
+ }), Ez([
62124
62171
  "chart:complexType:CT_Protection",
62125
62172
  "chart:element:protection",
62126
62173
  "chart:element:chartObject",
@@ -62134,31 +62181,31 @@ Oz([
62134
62181
  edit: "native",
62135
62182
  serialize: "native",
62136
62183
  note: "Classic ChartML protection is typed with exact CT_Boolean defaults, ordering, and ChartEx guards.",
62137
- evidence: [Nz("src/core/utils/chart-protection.test.ts", [
62184
+ evidence: [Bz("src/core/utils/chart-protection.test.ts", [
62138
62185
  "parses prefixed CT_Boolean values and the omitted-val true default",
62139
62186
  "edits and orders known children while preserving foreign markup",
62140
62187
  "does not parse or emit classic protection in a cx chart space"
62141
- ]), Nz("src/__tests__/integration/chart-protection-roundtrip.test.ts", ["loads, edits, saves, and reloads protection without losing foreign markup"])]
62188
+ ]), Bz("src/__tests__/integration/chart-protection-roundtrip.test.ts", ["loads, edits, saves, and reloads protection without losing foreign markup"])]
62142
62189
  });
62143
- var Ez = Bz, jz = {};
62144
- function $z(e, t) {
62145
- for (const n of e) jz[n] = t;
62190
+ var jz = Oz, $z = {};
62191
+ function zz(e, t) {
62192
+ for (const n of e) $z[n] = t;
62146
62193
  }
62147
- $z(["drawing:complexType:CT_SRgbColor", "drawing:element:srgbClr"], {
62194
+ zz(["drawing:complexType:CT_SRgbColor", "drawing:element:srgbClr"], {
62148
62195
  parse: "native",
62149
62196
  preserve: "native",
62150
62197
  edit: "native",
62151
62198
  serialize: "native",
62152
62199
  note: "Typed sRGB parsing, transforms, opacity, editing, and canonical serialization.",
62153
- evidence: [Nz("src/core/color/color-parser-spec.test.ts", ["applies transform children on sRGB color"]), Nz("src/core/utils/color-xml-preservation.test.ts", ["round-trips: user edit drops the schemeClr, emits srgb"])]
62154
- }), $z(["drawing:complexType:CT_SchemeColor", "drawing:element:schemeClr"], {
62200
+ evidence: [Bz("src/core/color/color-parser-spec.test.ts", ["applies transform children on sRGB color"]), Bz("src/core/utils/color-xml-preservation.test.ts", ["round-trips: user edit drops the schemeClr, emits srgb"])]
62201
+ }), zz(["drawing:complexType:CT_SchemeColor", "drawing:element:schemeClr"], {
62155
62202
  parse: "partial",
62156
62203
  preserve: "passthrough",
62157
62204
  edit: "partial",
62158
62205
  serialize: "partial",
62159
62206
  note: "Theme resolution and transforms are supported; edits serialize as canonical sRGB.",
62160
- evidence: [Nz("src/core/color/color-parser-spec.test.ts", ["applies transforms on scheme color"]), Nz("src/core/utils/color-xml-preservation.test.ts", ["round-trips: parse a:schemeClr → save → re-parse yields same XML"])]
62161
- }), $z([
62207
+ evidence: [Bz("src/core/color/color-parser-spec.test.ts", ["applies transforms on scheme color"]), Bz("src/core/utils/color-xml-preservation.test.ts", ["round-trips: parse a:schemeClr → save → re-parse yields same XML"])]
62208
+ }), zz([
62162
62209
  "drawing:complexType:CT_SolidColorFillProperties",
62163
62210
  "drawing:element:solidFill",
62164
62211
  "drawing:group:EG_ColorChoice"
@@ -62168,8 +62215,8 @@ $z(["drawing:complexType:CT_SRgbColor", "drawing:element:srgbClr"], {
62168
62215
  edit: "partial",
62169
62216
  serialize: "partial",
62170
62217
  note: "Common color choices are typed while uncommon color metadata is preserved.",
62171
- evidence: [Nz("src/core/core/builders/drawing-fill-roundtrip.test.ts", ["preserves gradient extensions, unknown markup, and attributes in schema order", "replaces modeled pattern children but retains extension markup"])]
62172
- }), $z([
62218
+ evidence: [Bz("src/core/core/builders/drawing-fill-roundtrip.test.ts", ["preserves gradient extensions, unknown markup, and attributes in schema order", "replaces modeled pattern children but retains extension markup"])]
62219
+ }), zz([
62173
62220
  "presentation:complexType:CT_CustomShow",
62174
62221
  "presentation:complexType:CT_CustomShowId",
62175
62222
  "presentation:complexType:CT_CustomShowList",
@@ -62181,15 +62228,15 @@ $z(["drawing:complexType:CT_SRgbColor", "drawing:element:srgbClr"], {
62181
62228
  edit: "native",
62182
62229
  serialize: "native",
62183
62230
  note: "Typed custom-show collections with relationship and extension preservation.",
62184
- evidence: [Nz("src/__tests__/integration/presentation-collections-roundtrip.test.ts", ["creates, loads, edits, and clears custom shows and sections"])]
62185
- }), $z(["diagram:complexType:CT_RelIds", "diagram:element:relIds"], {
62231
+ evidence: [Bz("src/__tests__/integration/presentation-collections-roundtrip.test.ts", ["creates, loads, edits, and clears custom shows and sections"])]
62232
+ }), zz(["diagram:complexType:CT_RelIds", "diagram:element:relIds"], {
62186
62233
  parse: "native",
62187
62234
  preserve: "native",
62188
62235
  edit: "native",
62189
62236
  serialize: "native",
62190
62237
  note: "Typed SmartArt relationship IDs with prefix-independent surgical round-trip support.",
62191
- evidence: [Nz("src/core/utils/diagram-relationship-ids.test.ts", ["parses Strict markup with arbitrary namespace prefixes", "updates typed ids while preserving unknown and extension markup"])]
62192
- }), $z([
62238
+ evidence: [Bz("src/core/utils/diagram-relationship-ids.test.ts", ["parses Strict markup with arbitrary namespace prefixes", "updates typed ids while preserving unknown and extension markup"])]
62239
+ }), zz([
62193
62240
  "chart:complexType:CT_DLbl",
62194
62241
  "chart:complexType:CT_DLbls",
62195
62242
  "chart:element:dLbl",
@@ -62200,12 +62247,12 @@ $z(["drawing:complexType:CT_SRgbColor", "drawing:element:srgbClr"], {
62200
62247
  edit: "partial",
62201
62248
  serialize: "partial",
62202
62249
  note: "Common data-label options are typed; rich text, layout, and shape properties are preserved.",
62203
- evidence: [Nz("src/core/utils/chart-data-label-parser.test.ts", ["parses common CT_DLbl fields and XML boolean lexical forms", "parses common CT_DLbls options"], ["parse"]), Nz("src/core/utils/chart-data-labels-serializer.test.ts", ["preserves dLbl overrides, unknown children, leader lines, and extLst"], [
62250
+ evidence: [Bz("src/core/utils/chart-data-label-parser.test.ts", ["parses common CT_DLbl fields and XML boolean lexical forms", "parses common CT_DLbls options"], ["parse"]), Bz("src/core/utils/chart-data-labels-serializer.test.ts", ["preserves dLbl overrides, unknown children, leader lines, and extLst"], [
62204
62251
  "preserve",
62205
62252
  "edit",
62206
62253
  "serialize"
62207
62254
  ])]
62208
- }), $z([
62255
+ }), zz([
62209
62256
  "chart:complexType:CT_DLblPos",
62210
62257
  "chart:simpleType:ST_DLblPos",
62211
62258
  "chart:element:dLblPos",
@@ -62224,17 +62271,17 @@ $z(["drawing:complexType:CT_SRgbColor", "drawing:element:srgbClr"], {
62224
62271
  edit: "native",
62225
62272
  serialize: "native",
62226
62273
  note: "Typed and validated classic ChartML data-label option support.",
62227
- evidence: [Nz("src/core/utils/chart-data-label-parser.test.ts", ["rejects invalid unsigned indexes and label-position enum values"], ["parse"]), Nz("src/core/utils/chart-data-labels-serializer.test.ts", ["writes bubble, separator, and leader-line options", "validates dLblPos before serialization"], [
62274
+ evidence: [Bz("src/core/utils/chart-data-label-parser.test.ts", ["rejects invalid unsigned indexes and label-position enum values"], ["parse"]), Bz("src/core/utils/chart-data-labels-serializer.test.ts", ["writes bubble, separator, and leader-line options", "validates dLblPos before serialization"], [
62228
62275
  "preserve",
62229
62276
  "edit",
62230
62277
  "serialize"
62231
62278
  ])]
62232
62279
  });
62233
- var zz = jz, Xz = {};
62234
- function Uz(e, t) {
62235
- for (const n of e) Xz[n] = t;
62280
+ var Xz = $z, Uz = {};
62281
+ function Gz(e, t) {
62282
+ for (const n of e) Uz[n] = t;
62236
62283
  }
62237
- Uz([
62284
+ Gz([
62238
62285
  "presentation:complexType:CT_Comment",
62239
62286
  "presentation:complexType:CT_CommentAuthor",
62240
62287
  "presentation:complexType:CT_CommentAuthorList",
@@ -62249,8 +62296,8 @@ Uz([
62249
62296
  edit: "native",
62250
62297
  serialize: "native",
62251
62298
  note: "Typed legacy comments and authors with package wiring and lossless raw XML preservation.",
62252
- evidence: [Nz("src/__tests__/integration/comments-roundtrip.test.ts", ["preserves extensions while typed fields are edited and emits Strict namespaces", "deletes comment parts, authors, relationships, and overrides explicitly"])]
62253
- }), Uz([
62299
+ evidence: [Bz("src/__tests__/integration/comments-roundtrip.test.ts", ["preserves extensions while typed fields are edited and emits Strict namespaces", "deletes comment parts, authors, relationships, and overrides explicitly"])]
62300
+ }), Gz([
62254
62301
  "chart:complexType:CT_Trendline",
62255
62302
  "chart:complexType:CT_TrendlineLbl",
62256
62303
  "chart:element:trendline",
@@ -62261,12 +62308,12 @@ Uz([
62261
62308
  edit: "partial",
62262
62309
  serialize: "partial",
62263
62310
  note: "Common trendline and label fields are typed; rich shape and text content is preserved.",
62264
- evidence: [Nz("src/core/utils/chart-advanced-parser.test.ts", ["parses name, explicit false booleans, and typed label properties"], ["parse"]), Nz("src/core/utils/chart-trendline-serializer.test.ts", ["writes a typed label in schema order and preserves unmodeled label content"], [
62311
+ evidence: [Bz("src/core/utils/chart-advanced-parser.test.ts", ["parses name, explicit false booleans, and typed label properties"], ["parse"]), Bz("src/core/utils/chart-trendline-serializer.test.ts", ["writes a typed label in schema order and preserves unmodeled label content"], [
62265
62312
  "preserve",
62266
62313
  "edit",
62267
62314
  "serialize"
62268
62315
  ])]
62269
- }), Uz([
62316
+ }), Gz([
62270
62317
  "chart:complexType:CT_TrendlineType",
62271
62318
  "chart:simpleType:ST_TrendlineType",
62272
62319
  "chart:simpleType:ST_Order",
@@ -62283,23 +62330,23 @@ Uz([
62283
62330
  edit: "native",
62284
62331
  serialize: "native",
62285
62332
  note: "Typed and validated classic ChartML trendline option support.",
62286
- evidence: [Nz("src/core/utils/chart-advanced-parser.test.ts", ["parses polynomial trendline with order", "parses displayRSq and displayEq flags"], ["parse"]), Nz("src/core/utils/chart-trendline-serializer.test.ts", ["rejects values outside the schema facets"], [
62333
+ evidence: [Bz("src/core/utils/chart-advanced-parser.test.ts", ["parses polynomial trendline with order", "parses displayRSq and displayEq flags"], ["parse"]), Bz("src/core/utils/chart-trendline-serializer.test.ts", ["rejects values outside the schema facets"], [
62287
62334
  "preserve",
62288
62335
  "edit",
62289
62336
  "serialize"
62290
62337
  ])]
62291
- }), Uz(["chart:complexType:CT_ErrBars", "chart:element:errBars"], {
62338
+ }), Gz(["chart:complexType:CT_ErrBars", "chart:element:errBars"], {
62292
62339
  parse: "partial",
62293
62340
  preserve: "native",
62294
62341
  edit: "partial",
62295
62342
  serialize: "partial",
62296
62343
  note: "Common error-bar options and line color are typed; uncommon shape metadata is preserved.",
62297
- evidence: [Nz("src/core/utils/chart-advanced-parser.test.ts", ["parses basic error bars with fixedVal type"], ["parse"]), Nz("src/core/utils/chart-errbars-serializer.test.ts", ["edits end caps and line color while preserving extensions"], [
62344
+ evidence: [Bz("src/core/utils/chart-advanced-parser.test.ts", ["parses basic error bars with fixedVal type"], ["parse"]), Bz("src/core/utils/chart-errbars-serializer.test.ts", ["edits end caps and line color while preserving extensions"], [
62298
62345
  "preserve",
62299
62346
  "edit",
62300
62347
  "serialize"
62301
62348
  ])]
62302
- }), Uz([
62349
+ }), Gz([
62303
62350
  "chart:complexType:CT_ErrDir",
62304
62351
  "chart:complexType:CT_ErrBarType",
62305
62352
  "chart:complexType:CT_ErrValType",
@@ -62313,12 +62360,12 @@ Uz([
62313
62360
  edit: "native",
62314
62361
  serialize: "native",
62315
62362
  note: "Typed classic ChartML error-bar enum and end-cap support.",
62316
- evidence: [Nz("src/core/utils/chart-advanced-parser.test.ts", ["parses explicit end-cap false and line color"], ["parse"]), Nz("src/core/utils/chart-errbars-serializer.test.ts", ["writes direction, bar type, value type, and value before cat/val"], [
62363
+ evidence: [Bz("src/core/utils/chart-advanced-parser.test.ts", ["parses explicit end-cap false and line color"], ["parse"]), Bz("src/core/utils/chart-errbars-serializer.test.ts", ["writes direction, bar type, value type, and value before cat/val"], [
62317
62364
  "preserve",
62318
62365
  "edit",
62319
62366
  "serialize"
62320
62367
  ])]
62321
- }), Uz([
62368
+ }), Gz([
62322
62369
  "drawing:complexType:CT_GradientFillProperties",
62323
62370
  "drawing:complexType:CT_GradientStop",
62324
62371
  "drawing:complexType:CT_GradientStopList",
@@ -62333,17 +62380,17 @@ Uz([
62333
62380
  edit: "partial",
62334
62381
  serialize: "partial",
62335
62382
  note: "Common gradient and pattern fields are typed with lossless unknown XML preservation.",
62336
- evidence: [Nz("src/core/core/builders/drawing-fill-roundtrip.test.ts", [
62383
+ evidence: [Bz("src/core/core/builders/drawing-fill-roundtrip.test.ts", [
62337
62384
  "parses gradient structure independently of the authored prefix",
62338
62385
  "preserves gradient extensions, unknown markup, and attributes in schema order",
62339
62386
  "serializes an edited gradient stop instead of stale preserved color XML"
62340
62387
  ])]
62341
62388
  });
62342
- var Gz = Xz, Wz = {};
62343
- function Vz(e, t) {
62344
- for (const n of e) Wz[n] = t;
62389
+ var Wz = Uz, Vz = {};
62390
+ function Hz(e, t) {
62391
+ for (const n of e) Vz[n] = t;
62345
62392
  }
62346
- Vz([
62393
+ Hz([
62347
62394
  "diagram:complexType:CT_DataModel",
62348
62395
  "diagram:complexType:CT_Pt",
62349
62396
  "diagram:complexType:CT_PtList",
@@ -62360,12 +62407,12 @@ Vz([
62360
62407
  edit: "partial",
62361
62408
  serialize: "partial",
62362
62409
  note: "Core SmartArt point and connection identifiers are typed; unknown data-model XML is preserved.",
62363
- evidence: [Nz("src/core/core/runtime/smartart-data-model-attributes.test.ts", [
62410
+ evidence: [Bz("src/core/core/runtime/smartart-data-model-attributes.test.ts", [
62364
62411
  "parses core identifiers and relationships",
62365
62412
  "edits typed attributes while preserving unknown XML and extLst",
62366
62413
  "accepts a valid core point and connection graph"
62367
62414
  ])]
62368
- }), Vz([
62415
+ }), Hz([
62369
62416
  "drawing:complexType:CT_EffectList",
62370
62417
  "drawing:complexType:CT_GlowEffect",
62371
62418
  "drawing:complexType:CT_OuterShadowEffect",
@@ -62378,8 +62425,8 @@ Vz([
62378
62425
  edit: "partial",
62379
62426
  serialize: "partial",
62380
62427
  note: "Outer shadow and glow are typed with lossless effect-list and color-transform preservation.",
62381
- evidence: [Nz("src/core/core/builders/effect-list-roundtrip.test.ts", ["extracts outer shadow and glow from an alternate DrawingML prefix", "surgically edits modeled effects without dropping transforms or extensions"])]
62382
- }), Vz([
62428
+ evidence: [Bz("src/core/core/builders/effect-list-roundtrip.test.ts", ["extracts outer shadow and glow from an alternate DrawingML prefix", "surgically edits modeled effects without dropping transforms or extensions"])]
62429
+ }), Hz([
62383
62430
  "diagram:complexType:CT_Constraint",
62384
62431
  "diagram:complexType:CT_Constraints",
62385
62432
  "diagram:complexType:CT_NumericRule",
@@ -62408,18 +62455,18 @@ Vz([
62408
62455
  edit: "native",
62409
62456
  serialize: "native",
62410
62457
  note: "Diagram layout constraints and numeric rules are typed with enum validation and XML Schema double semantics.",
62411
- evidence: [Nz("src/core/utils/smartart-constraint-rules.test.ts", [
62458
+ evidence: [Bz("src/core/utils/smartart-constraint-rules.test.ts", [
62412
62459
  "parses arbitrary prefixes and XML Schema double lexical values",
62413
62460
  "applies typed edits while preserving foreign attributes and extensions",
62414
62461
  "validates required schema enums without rejecting valid non-finite doubles",
62415
62462
  "round-trips constraints through the editable layout-definition model"
62416
62463
  ])]
62417
62464
  });
62418
- var Hz = Wz, qz = {};
62419
- function Yz(e, t) {
62420
- for (const n of e) qz[n] = t;
62465
+ var qz = Vz, Yz = {};
62466
+ function Zz(e, t) {
62467
+ for (const n of e) Yz[n] = t;
62421
62468
  }
62422
- Yz([
62469
+ Zz([
62423
62470
  "drawing:complexType:CT_BlurEffect",
62424
62471
  "drawing:complexType:CT_EffectContainer",
62425
62472
  "drawing:complexType:CT_PresetShadowEffect",
@@ -62433,12 +62480,12 @@ Yz([
62433
62480
  edit: "partial",
62434
62481
  serialize: "partial",
62435
62482
  note: "Effect DAG structure, blur, and preset shadow are typed with lossless primitive XML preservation.",
62436
- evidence: [Nz("src/core/core/builders/effect-dag-primitives.test.ts", [
62483
+ evidence: [Bz("src/core/core/builders/effect-dag-primitives.test.ts", [
62437
62484
  "parses namespace-prefix-independent blur and preset shadow children",
62438
62485
  "overlays typed edits while preserving unknown XML and color transforms",
62439
62486
  "does not expose invalid simple-type values as editable typed fields"
62440
62487
  ])]
62441
- }), Yz([
62488
+ }), Zz([
62442
62489
  "chart:complexType:CT_LblAlgn",
62443
62490
  "chart:complexType:CT_LblOffset",
62444
62491
  "chart:complexType:CT_TickMark",
@@ -62459,8 +62506,8 @@ Yz([
62459
62506
  edit: "native",
62460
62507
  serialize: "native",
62461
62508
  note: "Typed and validated classic ChartML axis label controls.",
62462
- evidence: [Nz("src/__tests__/integration/chart-axis-label-roundtrip.test.ts", ["generates, parses, edits, and dirty-saves category-axis label controls"])]
62463
- }), Yz([
62509
+ evidence: [Bz("src/__tests__/integration/chart-axis-label-roundtrip.test.ts", ["generates, parses, edits, and dirty-saves category-axis label controls"])]
62510
+ }), Zz([
62464
62511
  "diagram:complexType:CT_CTStyleLabel",
62465
62512
  "diagram:complexType:CT_ColorTransform",
62466
62513
  "diagram:complexType:CT_Colors",
@@ -62481,20 +62528,20 @@ Yz([
62481
62528
  edit: "partial",
62482
62529
  serialize: "partial",
62483
62530
  note: "Style and color-definition metadata are typed; complex style and color-choice payloads are preserved.",
62484
- evidence: [Nz("src/__tests__/integration/smartart-style-definition-save.test.ts", ["round-trips typed quick-style edits without replacing the style payload", "round-trips typed color-definition metadata and retains color choices"])]
62485
- }), Yz(["diagram:attribute:meth", "diagram:attribute:hueDir"], {
62531
+ evidence: [Bz("src/__tests__/integration/smartart-style-definition-save.test.ts", ["round-trips typed quick-style edits without replacing the style payload", "round-trips typed color-definition metadata and retains color choices"])]
62532
+ }), Zz(["diagram:attribute:meth", "diagram:attribute:hueDir"], {
62486
62533
  parse: "native",
62487
62534
  preserve: "native",
62488
62535
  edit: "native",
62489
62536
  serialize: "native",
62490
62537
  note: "Typed DiagramML color-list method and hue-direction metadata.",
62491
- evidence: [Nz("src/core/utils/smartart-definition-metadata.test.ts", ["parses all CT_Colors application metadata on CT_CTStyleLabel", "validates required values, unsigned priorities, and CT_Colors enums"])]
62538
+ evidence: [Bz("src/core/utils/smartart-definition-metadata.test.ts", ["parses all CT_Colors application metadata on CT_CTStyleLabel", "validates required values, unsigned priorities, and CT_Colors enums"])]
62492
62539
  });
62493
- var Zz = qz, Kz = {};
62494
- function Jz(e, t) {
62495
- for (const n of e) Kz[n] = t;
62540
+ var Kz = Yz, Jz = {};
62541
+ function Qz(e, t) {
62542
+ for (const n of e) Jz[n] = t;
62496
62543
  }
62497
- Jz([
62544
+ Qz([
62498
62545
  "presentation:complexType:CT_EmbeddedFontList",
62499
62546
  "presentation:complexType:CT_EmbeddedFontListEntry",
62500
62547
  "presentation:complexType:CT_EmbeddedFontDataId",
@@ -62511,13 +62558,13 @@ Jz([
62511
62558
  edit: "native",
62512
62559
  serialize: "native",
62513
62560
  note: "Typed embedded-font descriptors and relationship variants with package cleanup.",
62514
- evidence: [Nz("src/core/utils/embedded-font-list.test.ts", [
62561
+ evidence: [Bz("src/core/utils/embedded-font-list.test.ts", [
62515
62562
  "parses alternate prefixes and every embedded font variant",
62516
62563
  "edits and removes variants while retaining unknown XML in schema order",
62517
62564
  "validates required entries, typefaces, and relationship identifiers",
62518
62565
  "inserts the list at the CT_Presentation schema position and removes it"
62519
- ]), Nz("src/__tests__/integration/embedded-font-list-roundtrip.test.ts", ["loads unresolved variants, edits metadata, and preserves unknown XML", "removes the list, font relationships, and font parts together"])]
62520
- }), Jz([
62566
+ ]), Bz("src/__tests__/integration/embedded-font-list-roundtrip.test.ts", ["loads unresolved variants, edits metadata, and preserves unknown XML", "removes the list, font relationships, and font parts together"])]
62567
+ }), Qz([
62521
62568
  "chart:complexType:CT_PivotSource",
62522
62569
  "chart:complexType:CT_UnsignedInt",
62523
62570
  "chart:element:pivotSource",
@@ -62528,14 +62575,14 @@ Jz([
62528
62575
  edit: "native",
62529
62576
  serialize: "native",
62530
62577
  note: "Typed and validated pivot-source metadata with ordered chart-space serialization.",
62531
- evidence: [Nz("src/core/utils/chart-pivot-source.test.ts", [
62578
+ evidence: [Bz("src/core/utils/chart-pivot-source.test.ts", [
62532
62579
  "parses required prefix-independent name and unsigned format ID",
62533
62580
  "round trips edits while preserving extensions and foreign markup",
62534
62581
  "validates required values on serialization",
62535
62582
  "inserts before protection and chart and supports explicit removal",
62536
62583
  "serializes pivot metadata for a newly generated chart part"
62537
62584
  ])]
62538
- }), Jz([
62585
+ }), Qz([
62539
62586
  "drawing:complexType:CT_AudioCD",
62540
62587
  "drawing:complexType:CT_AudioCDTime",
62541
62588
  "drawing:complexType:CT_AudioFile",
@@ -62552,13 +62599,13 @@ Jz([
62552
62599
  edit: "native",
62553
62600
  serialize: "native",
62554
62601
  note: "Typed DrawingML audio-file and Audio CD timing metadata.",
62555
- evidence: [Nz("src/core/utils/drawing-media-reference.test.ts", [
62602
+ evidence: [Bz("src/core/utils/drawing-media-reference.test.ts", [
62556
62603
  "parses arbitrary element and relationship prefixes",
62557
62604
  "serializes dirty Audio CD positions while preserving extensions",
62558
62605
  "validates Audio CD track and time bounds",
62559
62606
  "edits audioFile content type without flattening prefixes or extensions"
62560
- ]), Nz("src/__tests__/integration/drawing-audio-metadata-roundtrip.test.ts", ["authors and reloads an Audio CD reference without a media relationship"])]
62561
- }), Jz([
62607
+ ]), Bz("src/__tests__/integration/drawing-audio-metadata-roundtrip.test.ts", ["authors and reloads an Audio CD reference without a media relationship"])]
62608
+ }), Qz([
62562
62609
  "diagram:complexType:CT_Algorithm",
62563
62610
  "diagram:complexType:CT_Parameter",
62564
62611
  "diagram:element:alg",
@@ -62573,18 +62620,18 @@ Jz([
62573
62620
  edit: "partial",
62574
62621
  serialize: "partial",
62575
62622
  note: "Algorithm and parameter structure is typed; schema enum unions remain string-valued.",
62576
- evidence: [Nz("src/core/utils/smartart-layout-definition.test.ts", [
62623
+ evidence: [Bz("src/core/utils/smartart-layout-definition.test.ts", [
62577
62624
  "parses CT_DiagramDefinition and recursive CT_LayoutNode with arbitrary prefixes",
62578
62625
  "surgically edits typed fields and preserves algorithms, unknown data, and extLst",
62579
62626
  "creates and removes CT_Algorithm in CT_LayoutNode schema order",
62580
62627
  "rejects invalid required values and unsigned integer facets"
62581
62628
  ])]
62582
62629
  });
62583
- var Qz = Kz, eX = {};
62584
- function tX(e, t) {
62585
- for (const n of e) eX[n] = t;
62630
+ var eX = Jz, tX = {};
62631
+ function nX(e, t) {
62632
+ for (const n of e) tX[n] = t;
62586
62633
  }
62587
- tX([
62634
+ nX([
62588
62635
  "presentation:complexType:CT_Kinsoku",
62589
62636
  "presentation:element:kinsoku",
62590
62637
  "presentation:attribute:invalStChars",
@@ -62595,12 +62642,12 @@ tX([
62595
62642
  edit: "native",
62596
62643
  serialize: "native",
62597
62644
  note: "Typed and validated East Asian line-break settings with ordered presentation edits.",
62598
- evidence: [Nz("src/core/utils/activex-kinsoku-parser.test.ts", [
62645
+ evidence: [Bz("src/core/utils/activex-kinsoku-parser.test.ts", [
62599
62646
  "parses all attributes together",
62600
62647
  "rejects a new p:kinsoku without both required character lists",
62601
62648
  "preserves existing p:kinsoku attributes not in the kinsoku object"
62602
- ]), Nz("src/__tests__/integration/kinsoku-roundtrip.test.ts", ["loads an alternate prefix, edits values, and preserves unknown XML", "removes kinsoku without disturbing adjacent presentation children"])]
62603
- }), tX([
62649
+ ]), Bz("src/__tests__/integration/kinsoku-roundtrip.test.ts", ["loads an alternate prefix, edits values, and preserves unknown XML", "removes kinsoku without disturbing adjacent presentation children"])]
62650
+ }), nX([
62604
62651
  "drawing:complexType:CT_DashStopList",
62605
62652
  "drawing:complexType:CT_DashStop",
62606
62653
  "drawing:element:custDash",
@@ -62613,13 +62660,13 @@ tX([
62613
62660
  edit: "native",
62614
62661
  serialize: "native",
62615
62662
  note: "Validated DrawingML custom dash percentages shared by shape and connector writers.",
62616
- evidence: [Nz("src/core/utils/drawing-line-dash.test.ts", [
62663
+ evidence: [Bz("src/core/utils/drawing-line-dash.test.ts", [
62617
62664
  "parses arbitrary prefixes and preserves dash-stop payloads",
62618
62665
  "round-trips unchanged XML and edits values without losing unknown data",
62619
62666
  "rejects invalid stops and removes arbitrary-prefixed dash choices",
62620
62667
  "inserts custom dash before line joins and extensions"
62621
62668
  ])]
62622
- }), tX([
62669
+ }), nX([
62623
62670
  "chart:complexType:CT_PivotFmts",
62624
62671
  "chart:complexType:CT_PivotFmt",
62625
62672
  "chart:element:pivotFmts",
@@ -62631,12 +62678,12 @@ tX([
62631
62678
  edit: "partial",
62632
62679
  serialize: "partial",
62633
62680
  note: "Pivot indexes are typed; DrawingML formatting children remain editable raw XML.",
62634
- evidence: [Nz("src/core/utils/chart-pivot-formats.test.ts", [
62681
+ evidence: [Bz("src/core/utils/chart-pivot-formats.test.ts", [
62635
62682
  "parses, edits, serializes, and reparses typed pivot formats",
62636
62683
  "inserts in chart schema order and supports removal",
62637
62684
  "rejects invalid indexes and empty collections"
62638
- ]), Nz("src/__tests__/integration/chart-protection-roundtrip.test.ts", ["loads, edits, saves, and reloads pivot formats without losing extensions"])]
62639
- }), tX([
62685
+ ]), Bz("src/__tests__/integration/chart-protection-roundtrip.test.ts", ["loads, edits, saves, and reloads pivot formats without losing extensions"])]
62686
+ }), nX([
62640
62687
  "diagram:complexType:CT_Choose",
62641
62688
  "diagram:complexType:CT_ForEach",
62642
62689
  "diagram:complexType:CT_Otherwise",
@@ -62665,25 +62712,25 @@ tX([
62665
62712
  edit: "partial",
62666
62713
  serialize: "partial",
62667
62714
  note: "Iterator and condition data is typed; nested layout actions and enum unions remain raw.",
62668
- evidence: [Nz("src/core/utils/smartart-layout-definition.test.ts", [
62715
+ evidence: [Bz("src/core/utils/smartart-layout-definition.test.ts", [
62669
62716
  "parses CT_DiagramDefinition and recursive CT_LayoutNode with arbitrary prefixes",
62670
62717
  "surgically edits typed fields and preserves algorithms, unknown data, and extLst",
62671
62718
  "creates and removes typed forEach and choose branches",
62672
62719
  "rejects invalid required values and unsigned integer facets"
62673
62720
  ])]
62674
62721
  });
62675
- var nX = eX, rX = {};
62676
- function iX(e, t) {
62677
- for (const n of e) rX[n] = t;
62722
+ var rX = tX, iX = {};
62723
+ function aX(e, t) {
62724
+ for (const n of e) iX[n] = t;
62678
62725
  }
62679
- iX(["presentation:complexType:CT_SlideTransition", "presentation:element:transition"], {
62726
+ aX(["presentation:complexType:CT_SlideTransition", "presentation:element:transition"], {
62680
62727
  parse: "partial",
62681
62728
  preserve: "native",
62682
62729
  edit: "partial",
62683
62730
  serialize: "partial",
62684
62731
  note: "Transition timing, speed, effects, and sound actions are typed; extension effects remain partial.",
62685
- evidence: [Nz("src/__tests__/integration/slide-transition-conformance-roundtrip.test.ts", ["generates and reloads typed speed, timing, and start-sound options", "preserves unknown transition markup through a dirty edit and reload"])]
62686
- }), iX([
62732
+ evidence: [Bz("src/__tests__/integration/slide-transition-conformance-roundtrip.test.ts", ["generates and reloads typed speed, timing, and start-sound options", "preserves unknown transition markup through a dirty edit and reload"])]
62733
+ }), aX([
62687
62734
  "presentation:complexType:CT_TransitionSoundAction",
62688
62735
  "presentation:complexType:CT_TransitionStartSoundAction",
62689
62736
  "presentation:simpleType:ST_TransitionSpeed",
@@ -62696,8 +62743,8 @@ iX(["presentation:complexType:CT_SlideTransition", "presentation:element:transit
62696
62743
  edit: "native",
62697
62744
  serialize: "native",
62698
62745
  note: "Typed and validated transition speed and sound-action support.",
62699
- evidence: [Nz("src/__tests__/integration/slide-transition-conformance-roundtrip.test.ts", ["generates and reloads typed speed, timing, and start-sound options"])]
62700
- }), iX([
62746
+ evidence: [Bz("src/__tests__/integration/slide-transition-conformance-roundtrip.test.ts", ["generates and reloads typed speed, timing, and start-sound options"])]
62747
+ }), aX([
62701
62748
  "drawing:complexType:CT_Backdrop",
62702
62749
  "drawing:complexType:CT_Camera",
62703
62750
  "drawing:complexType:CT_EmbeddedWAVAudioFile",
@@ -62717,19 +62764,19 @@ iX(["presentation:complexType:CT_SlideTransition", "presentation:element:transit
62717
62764
  edit: "native",
62718
62765
  serialize: "native",
62719
62766
  note: "Typed scene geometry or embedded transition sound with lossless unknown XML preservation.",
62720
- evidence: [Nz("src/core/utils/text-body-scene3d.test.ts", [
62767
+ evidence: [Bz("src/core/utils/text-body-scene3d.test.ts", [
62721
62768
  "parses all typed camera, light-rig, and backdrop fields with alternate prefixes",
62722
62769
  "applies edits while preserving prefixes, unknown attributes, and extLst",
62723
62770
  "creates a schema-ordered scene and complete backdrop from typed data"
62724
- ]), Nz("src/__tests__/integration/slide-transition-conformance-roundtrip.test.ts", ["generates and reloads typed speed, timing, and start-sound options"])]
62725
- }), iX(["chart:complexType:CT_DTable", "chart:element:dTable"], {
62771
+ ]), Bz("src/__tests__/integration/slide-transition-conformance-roundtrip.test.ts", ["generates and reloads typed speed, timing, and start-sound options"])]
62772
+ }), aX(["chart:complexType:CT_DTable", "chart:element:dTable"], {
62726
62773
  parse: "partial",
62727
62774
  preserve: "native",
62728
62775
  edit: "partial",
62729
62776
  serialize: "partial",
62730
62777
  note: "Data-table visibility options are typed; shape and text formatting remain preserved XML.",
62731
- evidence: [Nz("src/__tests__/integration/chart-data-table-roundtrip.test.ts", ["generates, parses, edits, and removes c:dTable through save cycles"])]
62732
- }), iX([
62778
+ evidence: [Bz("src/__tests__/integration/chart-data-table-roundtrip.test.ts", ["generates, parses, edits, and removes c:dTable through save cycles"])]
62779
+ }), aX([
62733
62780
  "chart:element:showHorzBorder",
62734
62781
  "chart:element:showVertBorder",
62735
62782
  "chart:element:showOutline",
@@ -62740,8 +62787,8 @@ iX(["presentation:complexType:CT_SlideTransition", "presentation:element:transit
62740
62787
  edit: "native",
62741
62788
  serialize: "native",
62742
62789
  note: "Typed ChartML CT_Boolean data-table option support.",
62743
- evidence: [Nz("src/__tests__/integration/chart-data-table-roundtrip.test.ts", ["generates, parses, edits, and removes c:dTable through save cycles"])]
62744
- }), iX([
62790
+ evidence: [Bz("src/__tests__/integration/chart-data-table-roundtrip.test.ts", ["generates, parses, edits, and removes c:dTable through save cycles"])]
62791
+ }), aX([
62745
62792
  "presentation:complexType:CT_PrintProperties",
62746
62793
  "presentation:simpleType:ST_PrintColorMode",
62747
62794
  "presentation:simpleType:ST_PrintWhat",
@@ -62757,17 +62804,17 @@ iX(["presentation:complexType:CT_SlideTransition", "presentation:element:transit
62757
62804
  edit: "native",
62758
62805
  serialize: "native",
62759
62806
  note: "Presentation print properties are typed, validated, schema-ordered, and losslessly editable.",
62760
- evidence: [Nz("src/core/core/runtime/pptx-print-properties.test.ts", [
62807
+ evidence: [Bz("src/core/core/runtime/pptx-print-properties.test.ts", [
62761
62808
  "parses every CT_PrintProperties attribute and XML boolean spelling",
62762
62809
  "edits and removes known attributes while preserving unknown data and extLst",
62763
62810
  "rejects invalid runtime enum values and handout counts"
62764
- ]), Nz("src/__tests__/integration/presentation-print-properties-roundtrip.test.ts", ["loads an alternate prefix, edits all attributes, and preserves extensions", "removes p:prnPr when printProperties is null"])]
62811
+ ]), Bz("src/__tests__/integration/presentation-print-properties-roundtrip.test.ts", ["loads an alternate prefix, edits all attributes, and preserves extensions", "removes p:prnPr when printProperties is null"])]
62765
62812
  });
62766
- var aX = rX, oX = {};
62767
- function sX(e, t) {
62768
- for (const n of e) oX[n] = t;
62813
+ var oX = iX, sX = {};
62814
+ function lX(e, t) {
62815
+ for (const n of e) sX[n] = t;
62769
62816
  }
62770
- sX([
62817
+ lX([
62771
62818
  "presentation:complexType:CT_CommonViewProperties",
62772
62819
  "presentation:complexType:CT_CommonSlideViewProperties",
62773
62820
  "presentation:complexType:CT_Guide",
@@ -62783,12 +62830,12 @@ sX([
62783
62830
  edit: "native",
62784
62831
  serialize: "native",
62785
62832
  note: "Common view geometry, guide lists, and grid spacing are typed, validated, and prefix-independent.",
62786
- evidence: [Nz("src/core/core/runtime/pptx-view-props-geometry.test.ts", [
62833
+ evidence: [Bz("src/core/core/runtime/pptx-view-props-geometry.test.ts", [
62787
62834
  "parses Strict markup by local name with common-view nesting",
62788
62835
  "applies typed edits over raw custom-prefix XML and preserves extensions",
62789
62836
  "rejects invalid generated dimensions and ratios"
62790
62837
  ])]
62791
- }), sX([
62838
+ }), lX([
62792
62839
  "drawing:complexType:CT_ColorChangeEffect",
62793
62840
  "drawing:complexType:CT_ColorReplaceEffect",
62794
62841
  "drawing:complexType:CT_DuotoneEffect",
@@ -62803,12 +62850,12 @@ sX([
62803
62850
  edit: "partial",
62804
62851
  serialize: "partial",
62805
62852
  note: "Image color choices and transforms round-trip losslessly; edited colors serialize through canonical sRGB choices.",
62806
- evidence: [Nz("src/core/core/runtime/image-color-effects.test.ts", [
62853
+ evidence: [Bz("src/core/core/runtime/image-color-effects.test.ts", [
62807
62854
  "parses all five primitives independently of namespace prefix",
62808
62855
  "round-trips untouched color choices, transforms, extensions, and prefixes",
62809
62856
  "merges edits while retaining unknown XML and schema-last extLst"
62810
62857
  ])]
62811
- }), sX([
62858
+ }), lX([
62812
62859
  "drawing:complexType:CT_GrayscaleEffect",
62813
62860
  "drawing:complexType:CT_BiLevelEffect",
62814
62861
  "drawing:element:grayscl",
@@ -62819,12 +62866,12 @@ sX([
62819
62866
  edit: "native",
62820
62867
  serialize: "native",
62821
62868
  note: "Grayscale and validated bi-level image effects are typed with foreign XML preservation.",
62822
- evidence: [Nz("src/core/core/runtime/image-color-effects.test.ts", [
62869
+ evidence: [Bz("src/core/core/runtime/image-color-effects.test.ts", [
62823
62870
  "parses all five primitives independently of namespace prefix",
62824
62871
  "merges edits while retaining unknown XML and schema-last extLst",
62825
62872
  "inserts newly authored effects before extLst and removes cleared effects"
62826
62873
  ])]
62827
- }), sX([
62874
+ }), lX([
62828
62875
  "chart:complexType:CT_Marker",
62829
62876
  "chart:complexType:CT_DPt",
62830
62877
  "chart:element:marker",
@@ -62835,8 +62882,8 @@ sX([
62835
62882
  edit: "partial",
62836
62883
  serialize: "partial",
62837
62884
  note: "Marker and data-point fields are typed while shape, picture, and extension payloads remain losslessly preserved.",
62838
- evidence: [Nz("src/__tests__/integration/chart-marker-datapoint-roundtrip.test.ts", ["generates, parses, edits, and dirty-saves marker and bubble properties"])]
62839
- }), sX([
62885
+ evidence: [Bz("src/__tests__/integration/chart-marker-datapoint-roundtrip.test.ts", ["generates, parses, edits, and dirty-saves marker and bubble properties"])]
62886
+ }), lX([
62840
62887
  "chart:complexType:CT_MarkerSize",
62841
62888
  "chart:complexType:CT_MarkerStyle",
62842
62889
  "chart:simpleType:ST_MarkerSize",
@@ -62847,8 +62894,8 @@ sX([
62847
62894
  edit: "native",
62848
62895
  serialize: "native",
62849
62896
  note: "Chart marker styles and sizes are typed and schema-range validated.",
62850
- evidence: [Nz("src/core/utils/chart-marker-serializer.test.ts", ["updates an existing marker in place", "rejects marker sizes outside the ST_MarkerSize range"]), Nz("src/core/utils/chart-datapoint-serializer.test.ts", ["writes marker and bubble3D in CT_DPt schema order while preserving extensions"])]
62851
- }), sX([
62897
+ evidence: [Bz("src/core/utils/chart-marker-serializer.test.ts", ["updates an existing marker in place", "rejects marker sizes outside the ST_MarkerSize range"]), Bz("src/core/utils/chart-datapoint-serializer.test.ts", ["writes marker and bubble3D in CT_DPt schema order while preserving extensions"])]
62898
+ }), lX([
62852
62899
  "drawing:complexType:CT_AlphaBiLevelEffect",
62853
62900
  "drawing:complexType:CT_AlphaCeilingEffect",
62854
62901
  "drawing:complexType:CT_AlphaFloorEffect",
@@ -62867,12 +62914,12 @@ sX([
62867
62914
  edit: "native",
62868
62915
  serialize: "native",
62869
62916
  note: "Fixed and leaf alpha effects are typed with Strict and Transitional lexical support and schema validation.",
62870
- evidence: [Nz("src/core/core/runtime/image-alpha-effects.test.ts", [
62917
+ evidence: [Bz("src/core/core/runtime/image-alpha-effects.test.ts", [
62871
62918
  "parses strict percentages and the default alphaModFix amount",
62872
62919
  "edits known values while retaining unknown attributes",
62873
62920
  "does not serialize out-of-range fixed percentages"
62874
- ]), Nz("src/core/core/builders/effect-dag-primitives.test.ts", ["parses and edits a signed coordinate while preserving foreign attributes", "does not expose a coordinate outside the ST_Coordinate bounds"])]
62875
- }), sX([
62921
+ ]), Bz("src/core/core/builders/effect-dag-primitives.test.ts", ["parses and edits a signed coordinate while preserving foreign attributes", "does not expose a coordinate outside the ST_Coordinate bounds"])]
62922
+ }), lX([
62876
62923
  "drawing:complexType:CT_AlphaInverseEffect",
62877
62924
  "drawing:complexType:CT_AlphaModulateEffect",
62878
62925
  "drawing:element:alphaInv",
@@ -62883,13 +62930,13 @@ sX([
62883
62930
  edit: "partial",
62884
62931
  serialize: "partial",
62885
62932
  note: "Alpha inverse colors and modulation containers are editable while nested effect payloads remain preserved XML.",
62886
- evidence: [Nz("src/core/core/runtime/image-alpha-effects.test.ts", [
62933
+ evidence: [Bz("src/core/core/runtime/image-alpha-effects.test.ts", [
62887
62934
  "parses arbitrary prefixes and preserves every alpha payload",
62888
62935
  "edits known values while retaining unknown attributes",
62889
62936
  "does not create alphaMod without its required cont child"
62890
62937
  ])]
62891
62938
  });
62892
- var lX = oX, cX = [
62939
+ var cX = sX, dX = [
62893
62940
  "chart:attribute:alignWithMargins",
62894
62941
  "chart:attribute:b",
62895
62942
  "chart:attribute:blackAndWhite",
@@ -65086,7 +65133,7 @@ var lX = oX, cX = [
65086
65133
  "presentation:simpleType:ST_TransitionSideDirectionType",
65087
65134
  "presentation:simpleType:ST_TransitionSpeed",
65088
65135
  "presentation:simpleType:ST_ViewType"
65089
- ], dX = [
65136
+ ], pX = [
65090
65137
  "chart:attribute:alignWithMargins",
65091
65138
  "chart:attribute:b",
65092
65139
  "chart:attribute:blackAndWhite",
@@ -67325,29 +67372,29 @@ var lX = oX, cX = [
67325
67372
  "presentation:simpleType:ST_WebColorType",
67326
67373
  "presentation:simpleType:ST_WebEncoding",
67327
67374
  "presentation:simpleType:ST_WebScreenSize"
67328
- ], pX = [.../* @__PURE__ */ new Set([...cX, ...dX])], hX = {
67375
+ ], hX = [.../* @__PURE__ */ new Set([...dX, ...pX])], uX = {
67329
67376
  parse: "unassessed",
67330
67377
  preserve: "unassessed",
67331
67378
  edit: "unassessed",
67332
67379
  serialize: "unassessed",
67333
67380
  evidence: []
67334
- }, uX = {
67335
- ...zz,
67336
- ...Gz,
67337
- ...Hz,
67338
- ...aX,
67339
- ...Ez,
67340
- ...Zz,
67341
- ...lX,
67342
- ...Qz,
67343
- ...nX,
67381
+ }, mX = {
67382
+ ...Xz,
67383
+ ...Wz,
67384
+ ...qz,
67385
+ ...oX,
67386
+ ...jz,
67387
+ ...Kz,
67388
+ ...cX,
67389
+ ...eX,
67390
+ ...rX,
67344
67391
  "chart:complexType:CT_ManualLayout": {
67345
67392
  parse: "native",
67346
67393
  preserve: "native",
67347
67394
  edit: "native",
67348
67395
  serialize: "native",
67349
67396
  note: "Typed title, plot-area, and legend manual layout support.",
67350
- evidence: [Nz("src/core/utils/chart-axis-parser.test.ts", ["parses display-unit label text, manual layout, and shape properties"], ["parse"]), Nz("src/core/utils/chart-axis-dispunits-serializer.test.ts", ["edits label text, layout, and shape properties in schema order"], [
67397
+ evidence: [Bz("src/core/utils/chart-axis-parser.test.ts", ["parses display-unit label text, manual layout, and shape properties"], ["parse"]), Bz("src/core/utils/chart-axis-dispunits-serializer.test.ts", ["edits label text, layout, and shape properties in schema order"], [
67351
67398
  "preserve",
67352
67399
  "edit",
67353
67400
  "serialize"
@@ -67360,9 +67407,9 @@ var lX = oX, cX = [
67360
67407
  serialize: "native",
67361
67408
  note: "Manual layout and its CT_ManualLayout extension list round-trip through the typed model (the extLst is captured on parse and re-emitted as the trailing child on a dirty write, so an edit no longer drops it). The layout wrapper is retained verbatim.",
67362
67409
  evidence: [
67363
- Nz("src/core/utils/chart-axis-parser.test.ts", ["parses display-unit label text, manual layout, and shape properties"], ["parse"]),
67364
- Nz("src/core/utils/chart-layout.test.ts", ["parses the typed manual-layout fields"], ["parse"]),
67365
- Nz("src/core/utils/chart-layout.test.ts", ["round-trips the manual layout extension list through the typed model"], [
67410
+ Bz("src/core/utils/chart-axis-parser.test.ts", ["parses display-unit label text, manual layout, and shape properties"], ["parse"]),
67411
+ Bz("src/core/utils/chart-layout.test.ts", ["parses the typed manual-layout fields"], ["parse"]),
67412
+ Bz("src/core/utils/chart-layout.test.ts", ["round-trips the manual layout extension list through the typed model"], [
67366
67413
  "preserve",
67367
67414
  "edit",
67368
67415
  "serialize"
@@ -67375,7 +67422,7 @@ var lX = oX, cX = [
67375
67422
  edit: "partial",
67376
67423
  serialize: "partial",
67377
67424
  note: "Display options are typed; series and extensions have separate capability entries.",
67378
- evidence: [Nz("src/core/utils/chart-bubble-options.test.ts", ["parses Strict and Transitional values plus defaults", "preserves unknown attributes and follows CT_BubbleChart order"])]
67425
+ evidence: [Bz("src/core/utils/chart-bubble-options.test.ts", ["parses Strict and Transitional values plus defaults", "preserves unknown attributes and follows CT_BubbleChart order"])]
67379
67426
  },
67380
67427
  "chart:complexType:CT_LegendEntry": {
67381
67428
  parse: "partial",
@@ -67383,7 +67430,7 @@ var lX = oX, cX = [
67383
67430
  edit: "partial",
67384
67431
  serialize: "partial",
67385
67432
  note: "Index, delete, and common txPr defaults are typed; extensions remain passthrough.",
67386
- evidence: [Nz("src/core/utils/chart-legend-entry.test.ts", ["parses delete values and the CT_Boolean default", "edits an entry while preserving its extension list"])]
67433
+ evidence: [Bz("src/core/utils/chart-legend-entry.test.ts", ["parses delete values and the CT_Boolean default", "edits an entry while preserving its extension list"])]
67387
67434
  },
67388
67435
  "chart:group:EG_LegendEntryData": {
67389
67436
  parse: "partial",
@@ -67391,7 +67438,7 @@ var lX = oX, cX = [
67391
67438
  edit: "partial",
67392
67439
  serialize: "partial",
67393
67440
  note: "Common text defaults are typed; the full DrawingML text body remains passthrough.",
67394
- evidence: [Nz("src/core/utils/chart-legend-entry.test.ts", ["parses common DrawingML text defaults", "adds a hidden entry to a newly created legend"])]
67441
+ evidence: [Bz("src/core/utils/chart-legend-entry.test.ts", ["parses common DrawingML text defaults", "adds a hidden entry to a newly created legend"])]
67395
67442
  },
67396
67443
  "chart:complexType:CT_UpDownBars": {
67397
67444
  parse: "partial",
@@ -67399,7 +67446,7 @@ var lX = oX, cX = [
67399
67446
  edit: "partial",
67400
67447
  serialize: "partial",
67401
67448
  note: "Gap width and common up/down bar shape properties are typed; extensions are passthrough.",
67402
- evidence: [Nz("src/core/utils/chart-up-down-bars.test.ts", ["parses gap width and both shape-property branches", "updates formatting while preserving unsupported children"])]
67449
+ evidence: [Bz("src/core/utils/chart-up-down-bars.test.ts", ["parses gap width and both shape-property branches", "updates formatting while preserving unsupported children"])]
67403
67450
  },
67404
67451
  "chart:complexType:CT_UpDownBar": {
67405
67452
  parse: "partial",
@@ -67407,7 +67454,7 @@ var lX = oX, cX = [
67407
67454
  edit: "partial",
67408
67455
  serialize: "partial",
67409
67456
  note: "Common fill and line properties are typed; other DrawingML shape properties are passthrough.",
67410
- evidence: [Nz("src/core/utils/chart-up-down-bars.test.ts", ["updates formatting while preserving unsupported children", "emits up/down bars for a generated line chart"])]
67457
+ evidence: [Bz("src/core/utils/chart-up-down-bars.test.ts", ["updates formatting while preserving unsupported children", "emits up/down bars for a generated line chart"])]
67411
67458
  },
67412
67459
  "presentation:complexType:CT_ControlList": {
67413
67460
  parse: "native",
@@ -67415,7 +67462,7 @@ var lX = oX, cX = [
67415
67462
  edit: "native",
67416
67463
  serialize: "native",
67417
67464
  note: "The `p:controls` container round-trips: controls can be parsed, added, removed, and reordered.",
67418
- evidence: [Nz("src/core/utils/activex-serializer.test.ts", [
67465
+ evidence: [Bz("src/core/utils/activex-serializer.test.ts", [
67419
67466
  "round-trips typed ActiveX controls through parse and serialize",
67420
67467
  "drops the controls container when no controls remain",
67421
67468
  "keeps the controls container ahead of the extension list"
@@ -67427,7 +67474,7 @@ var lX = oX, cX = [
67427
67474
  edit: "native",
67428
67475
  serialize: "native",
67429
67476
  note: "The `p:controls` container round-trips: controls can be parsed, added, removed, and reordered.",
67430
- evidence: [Nz("src/core/utils/activex-serializer.test.ts", ["round-trips typed ActiveX controls through parse and serialize", "drops the controls container when no controls remain"])]
67477
+ evidence: [Bz("src/core/utils/activex-serializer.test.ts", ["round-trips typed ActiveX controls through parse and serialize", "drops the controls container when no controls remain"])]
67431
67478
  },
67432
67479
  "presentation:complexType:CT_Control": {
67433
67480
  parse: "partial",
@@ -67435,7 +67482,7 @@ var lX = oX, cX = [
67435
67482
  edit: "partial",
67436
67483
  serialize: "partial",
67437
67484
  note: "The r:id, name, and spid attributes are typed and editable; the placeholder pic and extLst children are preserved as passthrough. Not rendered by any binding.",
67438
- evidence: [Nz("src/core/utils/activex-serializer.test.ts", [
67485
+ evidence: [Bz("src/core/utils/activex-serializer.test.ts", [
67439
67486
  "round-trips typed ActiveX controls through parse and serialize",
67440
67487
  "preserves the placeholder pic child during a typed write",
67441
67488
  "serializes edited control attributes back into the slide"
@@ -67447,7 +67494,7 @@ var lX = oX, cX = [
67447
67494
  edit: "partial",
67448
67495
  serialize: "partial",
67449
67496
  note: "The r:id, name, and spid attributes are typed and editable; the placeholder pic and extLst children are preserved as passthrough. Not rendered by any binding.",
67450
- evidence: [Nz("src/core/utils/activex-serializer.test.ts", [
67497
+ evidence: [Bz("src/core/utils/activex-serializer.test.ts", [
67451
67498
  "preserves the placeholder pic child during a typed write",
67452
67499
  "serializes edited control attributes back into the slide",
67453
67500
  "emits a bare control node when only a relationship id is known"
@@ -67465,33 +67512,33 @@ for (const e of [
67465
67512
  "chart:element:bubbleScale",
67466
67513
  "chart:element:showNegBubbles",
67467
67514
  "chart:element:sizeRepresents"
67468
- ]) uX[e] = {
67515
+ ]) mX[e] = {
67469
67516
  parse: "native",
67470
67517
  preserve: "native",
67471
67518
  edit: "native",
67472
67519
  serialize: "native",
67473
67520
  note: "Typed classic bubble-chart option support.",
67474
- evidence: [Nz("src/core/utils/chart-bubble-options.test.ts", [
67521
+ evidence: [Bz("src/core/utils/chart-bubble-options.test.ts", [
67475
67522
  "parses Strict and Transitional values plus defaults",
67476
67523
  "preserves unknown attributes and follows CT_BubbleChart order",
67477
67524
  "rejects an out-of-range scale",
67478
67525
  "emits options for a generated bubble chart"
67479
67526
  ])]
67480
67527
  };
67481
- var mX = new Set(cX), fX = new Set(dX), gX = new Set(pX);
67482
- for (const e of Object.keys(uX)) if (!gX.has(e)) throw new Error(`OpenXML coverage override does not match the schema inventory: ${e}`);
67483
- pX.map((e) => {
67484
- const [t, n, r] = e.split(":"), i = mX.has(e), a = fX.has(e);
67528
+ var fX = new Set(dX), gX = new Set(pX), yX = new Set(hX);
67529
+ for (const e of Object.keys(mX)) if (!yX.has(e)) throw new Error(`OpenXML coverage override does not match the schema inventory: ${e}`);
67530
+ hX.map((e) => {
67531
+ const [t, n, r] = e.split(":"), i = fX.has(e), a = gX.has(e);
67485
67532
  return {
67486
67533
  id: e,
67487
67534
  vocabulary: t,
67488
67535
  kind: n,
67489
67536
  name: r,
67490
67537
  conformance: i && a ? "both" : i ? "strict" : "transitional",
67491
- ...uX[e] ?? hX
67538
+ ...mX[e] ?? uX
67492
67539
  };
67493
67540
  });
67494
- var yX = {
67541
+ var xX = {
67495
67542
  "image/png": "png",
67496
67543
  "image/jpeg": "jpg",
67497
67544
  "image/jpg": "jpg",
@@ -67501,7 +67548,7 @@ var yX = {
67501
67548
  "image/bmp": "bmp",
67502
67549
  "image/tiff": "tiff"
67503
67550
  };
67504
- var xX = class {
67551
+ var bX = class {
67505
67552
  constructor(e, t, n) {
67506
67553
  this.folderName = t, this.fs = n, this.resolvedMediaDir = `${e}/${this.folderName}`;
67507
67554
  }
@@ -67520,7 +67567,7 @@ var xX = class {
67520
67567
  const n = function(e) {
67521
67568
  const t = e.match(/^data:([^;]+);base64,(.+)$/s);
67522
67569
  if (!t) throw new Error("Invalid data URL format");
67523
- const n = t[1].toLowerCase(), r = yX[n] ?? function(e) {
67570
+ const n = t[1].toLowerCase(), r = xX[n] ?? function(e) {
67524
67571
  const t = e.split("/");
67525
67572
  return 2 === t.length ? t[1].replace(/[^a-z0-9]/g, "") : "bin";
67526
67573
  }(n), i = t[2], a = atob(i), o = new Uint8Array(a.length);
@@ -67547,19 +67594,19 @@ var xX = class {
67547
67594
  this.initialized || (this.fs && await this.fs.createFolder(this.resolvedMediaDir), this.initialized = !0);
67548
67595
  }
67549
67596
  };
67550
- function bX(e) {
67597
+ function TX(e) {
67551
67598
  return null == e ? "" : String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
67552
67599
  }
67553
- var TX = [
67600
+ var wX = [
67554
67601
  "http://",
67555
67602
  "https://",
67556
67603
  "mailto:",
67557
67604
  "tel:",
67558
67605
  "#"
67559
67606
  ];
67560
- var wX = class {
67607
+ var SX = class {
67561
67608
  constructor(e, t, n) {
67562
- this.outputDir = e, this.options = t, this.fs = n, this.mediaContext = new xX(e, t.mediaFolderName, n);
67609
+ this.outputDir = e, this.options = t, this.fs = n, this.mediaContext = new bX(e, t.mediaFolderName, n);
67563
67610
  }
67564
67611
  outputDir;
67565
67612
  options;
@@ -67577,7 +67624,7 @@ var wX = class {
67577
67624
  if (!this.fs) throw new Error("FileSystemAdapter is required for writing output files. Provide one via the constructor or use convert() without outputPath.");
67578
67625
  await this.fs.writeFile(t, e);
67579
67626
  }
67580
- }, SX = class {
67627
+ }, vX = class {
67581
67628
  supportedTypes = ["chart"];
67582
67629
  async process(e, t) {
67583
67630
  if ("chart" !== e.type) return null;
@@ -67681,7 +67728,7 @@ var wX = class {
67681
67728
  humanizeType(e) {
67682
67729
  return e.replace(/([a-z])([A-Z0-9])/g, "$1 $2").replace(/^./, (e) => e.toUpperCase());
67683
67730
  }
67684
- }, vX = class {
67731
+ }, CX = class {
67685
67732
  processors = /* @__PURE__ */ new Map();
67686
67733
  register(e) {
67687
67734
  for (const t of e.supportedTypes) this.processors.set(t, e);
@@ -67703,7 +67750,7 @@ var wX = class {
67703
67750
  if (void 0 !== e.targetSlideIndex) return `\n\n*${`Jump to slide ${e.targetSlideIndex + 1}`}*`;
67704
67751
  return e.action ? `\n\n*${e.action}*` : "";
67705
67752
  }
67706
- }, CX = class {
67753
+ }, _X = class {
67707
67754
  supportedTypes = [
67708
67755
  "zoom",
67709
67756
  "contentPart",
@@ -67748,7 +67795,7 @@ var wX = class {
67748
67795
  renderContentPart(e) {
67749
67796
  return e.inkStrokes && e.inkStrokes.length > 0 ? `*[Ink Content: ${e.inkStrokes.length} stroke${1 === e.inkStrokes.length ? "" : "s"}]*` : "*[Content Part]*";
67750
67797
  }
67751
- }, _X = class {
67798
+ }, kX = class {
67752
67799
  supportedTypes = ["group"];
67753
67800
  async process(e, t) {
67754
67801
  if ("group" !== e.type) return null;
@@ -67757,7 +67804,7 @@ var wX = class {
67757
67804
  const r = await t.processElements(n.children);
67758
67805
  return 0 === r.length ? null : r.join("\n\n");
67759
67806
  }
67760
- }, kX = class {
67807
+ }, PX = class {
67761
67808
  supportedTypes = ["image", "picture"];
67762
67809
  async process(e, t) {
67763
67810
  if (!bt(e)) return null;
@@ -67766,7 +67813,7 @@ var wX = class {
67766
67813
  const e = Boolean(n.imageData), r = n.imageData ? n.imageData.substring(0, 80) : "undefined", i = `Image extraction failed on slide ${t.slideNumber}: id="${n.id}", imagePath="${n.imagePath ?? "unknown"}", hasImageData=${e}, imageDataPreview="${r}", hasSvgData=${Boolean(n.svgData)}`;
67767
67814
  return console.error(`[image-processor] ${i}`), `> **[Image extraction failed]** ${n.id} (slide ${t.slideNumber})`;
67768
67815
  }
67769
- const a = bX(r), o = bX(i);
67816
+ const a = TX(r), o = TX(i);
67770
67817
  if (t.semanticMode) return `![${a}](${i})`;
67771
67818
  if (t.layoutScale) return `<img src="${o}" alt="${a}" style="max-width:100%;height:auto">`;
67772
67819
  const s = this.computeDisplaySize(e.width, e.height);
@@ -67795,7 +67842,7 @@ var wX = class {
67795
67842
  const t = e.replace(/&#x[0-9A-Fa-f]+;/g, " ").replace(/&#\d+;/g, " ").replace(/&[a-zA-Z]+;/g, " ").replace(/[\r\n]+/g, " ").replace(/\s+/g, " ").trim();
67796
67843
  return t.length <= 100 ? t : `${t.slice(0, 100).trimEnd()}…`;
67797
67844
  }
67798
- }, PX = class {
67845
+ }, LX = class {
67799
67846
  supportedTypes = ["ink"];
67800
67847
  async process(e, t) {
67801
67848
  if ("ink" !== e.type) return null;
@@ -67810,7 +67857,7 @@ var wX = class {
67810
67857
  }
67811
67858
  return `*[Ink Drawing: ${r.join(" | ")}]*`;
67812
67859
  }
67813
- }, LX = class {
67860
+ }, AX = class {
67814
67861
  supportedTypes = ["media"];
67815
67862
  async process(e, t) {
67816
67863
  if ("media" !== e.type) return null;
@@ -67837,7 +67884,7 @@ var wX = class {
67837
67884
  const t = Math.floor(e / 60), n = Math.round(e % 60);
67838
67885
  return `${t}:${String(n).padStart(2, "0")}`;
67839
67886
  }
67840
- }, AX = class {
67887
+ }, IX = class {
67841
67888
  supportedTypes = ["ole"];
67842
67889
  async process(e, t) {
67843
67890
  if ("ole" !== e.type) return null;
@@ -67850,27 +67897,27 @@ var wX = class {
67850
67897
  } catch {}
67851
67898
  return i.join("\n\n");
67852
67899
  }
67853
- }, IX = /* @__PURE__ */ new Set([
67900
+ }, MX = /* @__PURE__ */ new Set([
67854
67901
  "process",
67855
67902
  "cycle",
67856
67903
  "timeline"
67857
- ]), MX = /* @__PURE__ */ new Set([
67904
+ ]), FX = /* @__PURE__ */ new Set([
67858
67905
  "hierarchy",
67859
67906
  "pyramid",
67860
67907
  "funnel"
67861
- ]), FX = /* @__PURE__ */ new Set([
67908
+ ]), RX = /* @__PURE__ */ new Set([
67862
67909
  "list",
67863
67910
  "matrix",
67864
67911
  "gear",
67865
67912
  "target"
67866
- ]), RX = class {
67913
+ ]), DX = class {
67867
67914
  supportedTypes = ["smartArt"];
67868
67915
  async process(e, t) {
67869
67916
  if ("smartArt" !== e.type) return null;
67870
67917
  const n = e.smartArtData;
67871
67918
  if (!n || 0 === n.nodes.length) return "*[SmartArt: no nodes]*";
67872
67919
  const r = this.resolveRoots(n.nodes), i = n.resolvedLayoutType ?? "unknown", a = [`*[SmartArt: ${i}]*`];
67873
- return MX.has(i) ? a.push(this.renderNestedList(r, 0)) : IX.has(i) ? a.push(this.renderOrderedSequence(r)) : FX.has(i) ? a.push(this.renderBulletList(r)) : "relationship" === i ? a.push(this.renderRelationshipText(r)) : a.push(this.renderBulletList(r)), a.join("\n\n");
67920
+ return FX.has(i) ? a.push(this.renderNestedList(r, 0)) : MX.has(i) ? a.push(this.renderOrderedSequence(r)) : RX.has(i) ? a.push(this.renderBulletList(r)) : "relationship" === i ? a.push(this.renderRelationshipText(r)) : a.push(this.renderBulletList(r)), a.join("\n\n");
67874
67921
  }
67875
67922
  resolveRoots(e) {
67876
67923
  if (e.some((e) => Array.isArray(e.children) && e.children.length > 0)) return e;
@@ -67908,7 +67955,7 @@ var wX = class {
67908
67955
  for (const n of e) t.push(n), n.children && n.children.length > 0 && t.push(...this.flattenNodes(n.children));
67909
67956
  return t;
67910
67957
  }
67911
- }, DX = /* @__PURE__ */ new Set([
67958
+ }, NX = /* @__PURE__ */ new Set([
67912
67959
  "black",
67913
67960
  "silver",
67914
67961
  "gray",
@@ -67932,12 +67979,12 @@ var wX = class {
67932
67979
  "initial",
67933
67980
  "unset"
67934
67981
  ]);
67935
- function NX(e) {
67982
+ function BX(e) {
67936
67983
  if ("string" != typeof e) return;
67937
67984
  const t = e.trim();
67938
- return 0 !== t.length && (/^#[0-9a-f]{3,8}$/i.test(t) || DX.has(t.toLowerCase())) ? t : void 0;
67985
+ return 0 !== t.length && (/^#[0-9a-f]{3,8}$/i.test(t) || NX.has(t.toLowerCase())) ? t : void 0;
67939
67986
  }
67940
- var BX = class {
67987
+ var OX = class {
67941
67988
  supportedTypes = ["table"];
67942
67989
  async process(e, t) {
67943
67990
  if ("table" !== e.type) return null;
@@ -67968,12 +68015,12 @@ var BX = class {
67968
68015
  const i = [];
67969
68016
  t > 1 && i.push(` colspan="${t}"`), n > 1 && i.push(` rowspan="${n}"`);
67970
68017
  const a = this.buildCellCss(e.style, r);
67971
- return a && i.push(` style="${bX(a)}"`), i.join("");
68018
+ return a && i.push(` style="${TX(a)}"`), i.join("");
67972
68019
  }
67973
68020
  buildCellCss(e, t) {
67974
- const n = [], r = NX(e?.backgroundColor);
68021
+ const n = [], r = BX(e?.backgroundColor);
67975
68022
  r && n.push(`background:${r}`), e?.align && /^[a-zA-Z]+$/.test(e.align) && n.push(`text-align:${e.align}`), e?.vAlign && /^[a-zA-Z]+$/.test(e.vAlign) && n.push(`vertical-align:${e.vAlign}`), e?.fontSize && n.push(`font-size:${Math.round(e.fontSize)}px`);
67976
- const i = NX(e?.color);
68023
+ const i = BX(e?.color);
67977
68024
  i && n.push(`color:${i}`), (e?.bold || t) && n.push("font-weight:bold"), e?.italic && n.push("font-style:italic");
67978
68025
  const a = this.buildBorderCss(e);
67979
68026
  a && n.push(a);
@@ -67982,15 +68029,15 @@ var BX = class {
67982
68029
  }
67983
68030
  buildBorderCss(e) {
67984
68031
  if (!e) return "";
67985
- const t = [], n = NX(e.borderTopColor);
68032
+ const t = [], n = BX(e.borderTopColor);
67986
68033
  e.borderTopWidth && n && t.push(`border-top:${Math.round(e.borderTopWidth)}px solid ${n}`);
67987
- const r = NX(e.borderBottomColor);
68034
+ const r = BX(e.borderBottomColor);
67988
68035
  e.borderBottomWidth && r && t.push(`border-bottom:${Math.round(e.borderBottomWidth)}px solid ${r}`);
67989
- const i = NX(e.borderLeftColor);
68036
+ const i = BX(e.borderLeftColor);
67990
68037
  e.borderLeftWidth && i && t.push(`border-left:${Math.round(e.borderLeftWidth)}px solid ${i}`);
67991
- const a = NX(e.borderRightColor);
68038
+ const a = BX(e.borderRightColor);
67992
68039
  e.borderRightWidth && a && t.push(`border-right:${Math.round(e.borderRightWidth)}px solid ${a}`);
67993
- const o = NX(e.borderColor);
68040
+ const o = BX(e.borderColor);
67994
68041
  return 0 === t.length && o ? `border:1px solid ${o}` : t.join(";");
67995
68042
  }
67996
68043
  buildPaddingCss(e) {
@@ -68010,7 +68057,7 @@ var BX = class {
68010
68057
  const t = this.escapeHtml(r.text);
68011
68058
  if (!t) continue;
68012
68059
  const i = this.buildRunCss(r, e.style);
68013
- i ? n.push(`<span style="${bX(i)}">${t}</span>`) : n.push(t);
68060
+ i ? n.push(`<span style="${TX(i)}">${t}</span>`) : n.push(t);
68014
68061
  }
68015
68062
  return n.join("");
68016
68063
  }
@@ -68025,7 +68072,7 @@ var BX = class {
68025
68072
  e && r.push(`font-family:${e}`);
68026
68073
  }
68027
68074
  if (n.fontSize && n.fontSize !== t?.fontSize && r.push(`font-size:${Math.round(n.fontSize)}px`), n.color && n.color !== t?.color) {
68028
- const e = NX(n.color);
68075
+ const e = BX(n.color);
68029
68076
  e && r.push(`color:${e}`);
68030
68077
  }
68031
68078
  return n.bold && !t?.bold && r.push("font-weight:bold"), n.italic && !t?.italic && r.push("font-style:italic"), n.underline && r.push("text-decoration:underline"), n.strikethrough && r.push("text-decoration:line-through"), r.join(";");
@@ -68090,9 +68137,9 @@ var BX = class {
68090
68137
  escapeMarkdownTableCell(e) {
68091
68138
  return e.replace(/\\/g, "\\\\").replace(/\|/g, "\\|").replace(/\n+/g, " ").trim();
68092
68139
  }
68093
- }, OX = .06;
68094
- function EX(e, t, n, r, i, a = 1) {
68095
- const o = n?.bodyInsetLeft ? n.bodyInsetLeft * a : Math.round(r * OX), s = n?.bodyInsetRight ? n.bodyInsetRight * a : Math.round(r * OX), l = n?.bodyInsetTop ? n.bodyInsetTop * a : Math.round(i * OX), c = n?.bodyInsetBottom ? n.bodyInsetBottom * a : Math.round(i * OX), d = r - o - s;
68140
+ }, EX = .06;
68141
+ function jX(e, t, n, r, i, a = 1) {
68142
+ const o = n?.bodyInsetLeft ? n.bodyInsetLeft * a : Math.round(r * EX), s = n?.bodyInsetRight ? n.bodyInsetRight * a : Math.round(r * EX), l = n?.bodyInsetTop ? n.bodyInsetTop * a : Math.round(i * EX), c = n?.bodyInsetBottom ? n.bodyInsetBottom * a : Math.round(i * EX), d = r - o - s;
68096
68143
  if (d <= 0) return;
68097
68144
  const h = function(e, t, n, r) {
68098
68145
  const i = [];
@@ -68100,7 +68147,7 @@ function EX(e, t, n, r, i, a = 1) {
68100
68147
  const t = a[0]?.style?.align;
68101
68148
  let o = [], s = 0, l = 0;
68102
68149
  for (const c of a) {
68103
- e.font = jX(c.style, r);
68150
+ e.font = $X(c.style, r);
68104
68151
  const a = 1.2 * ((c.style.fontSize ?? 18) * r), d = c.text.split(/(?<=\s)(?=\S)|(?<=\S)(?=\s)/);
68105
68152
  for (const r of d) {
68106
68153
  if (!r) continue;
@@ -68154,15 +68201,15 @@ function EX(e, t, n, r, i, a = 1) {
68154
68201
  const r = t.align ?? n?.align ?? "left";
68155
68202
  let i;
68156
68203
  i = "center" === r ? o + (d - t.width) / 2 : "right" === r ? o + d - t.width : o;
68157
- for (const n of t.runs) e.font = jX(n.style, a), e.fillStyle = n.style.color ?? "#000000", e.fillText(n.text, i, g), i += n.measuredWidth;
68204
+ for (const n of t.runs) e.font = $X(n.style, a), e.fillStyle = n.style.color ?? "#000000", e.fillText(n.text, i, g), i += n.measuredWidth;
68158
68205
  g += .3 * t.height;
68159
68206
  }
68160
68207
  }
68161
- function jX(e, t) {
68208
+ function $X(e, t) {
68162
68209
  const n = (e.fontSize ?? 18) * t, r = e.bold ? "bold" : "normal";
68163
68210
  return `${e.italic ? "italic" : "normal"} ${r} ${n}px ${e.fontFamily ? xf(e.fontFamily) : "sans-serif"}`;
68164
68211
  }
68165
- function $X(e) {
68212
+ function zX(e) {
68166
68213
  const t = e.shapeStyle;
68167
68214
  if (!t) return null;
68168
68215
  if (!function(e) {
@@ -68172,7 +68219,7 @@ function $X(e) {
68172
68219
  if ("image" === e.fillMode) return Boolean(e.fillImageUrl);
68173
68220
  if (e.fillColor && "transparent" !== e.fillColor) return !0;
68174
68221
  return !1;
68175
- }(t) && !UX(t)) return null;
68222
+ }(t) && !GX(t)) return null;
68176
68223
  let n = Math.round(e.width), r = Math.round(e.height);
68177
68224
  if (n < 4 || r < 4) return null;
68178
68225
  const i = (e.textSegments?.length ?? 0) > 0 ? 800 : 400;
@@ -68204,11 +68251,11 @@ function $X(e) {
68204
68251
  void 0 !== t.fillOpacity && t.fillOpacity < 1 && (e.globalAlpha = t.fillOpacity);
68205
68252
  }(s, t, n, r), e.pathData) {
68206
68253
  const i = n / ((e.pathWidth ?? n) || 1), a = r / ((e.pathHeight ?? r) || 1), o = new Path2D(e.pathData);
68207
- s.save(), s.scale(i, a), s.fill(o), UX(t) && (XX(s, t), s.stroke(o)), s.restore();
68208
- } else zX(s, e.shapeType, n, r), s.fill(), UX(t) && (XX(s, t), zX(s, e.shapeType, n, r), s.stroke());
68209
- return s.globalAlpha = 1, e.textSegments?.length && EX(s, e.textSegments, e.textStyle, n, r, a), o.toDataURL("image/png");
68254
+ s.save(), s.scale(i, a), s.fill(o), GX(t) && (UX(s, t), s.stroke(o)), s.restore();
68255
+ } else XX(s, e.shapeType, n, r), s.fill(), GX(t) && (UX(s, t), XX(s, e.shapeType, n, r), s.stroke());
68256
+ return s.globalAlpha = 1, e.textSegments?.length && jX(s, e.textSegments, e.textStyle, n, r, a), o.toDataURL("image/png");
68210
68257
  }
68211
- function zX(e, t, n, r) {
68258
+ function XX(e, t, n, r) {
68212
68259
  e.beginPath();
68213
68260
  switch (t ?? "rect") {
68214
68261
  case "ellipse":
@@ -68222,13 +68269,13 @@ function zX(e, t, n, r) {
68222
68269
  default: e.rect(0, 0, n, r);
68223
68270
  }
68224
68271
  }
68225
- function XX(e, t) {
68272
+ function UX(e, t) {
68226
68273
  e.strokeStyle = t.strokeColor ?? "#000000", e.lineWidth = t.strokeWidth ?? 1, void 0 !== t.strokeOpacity && t.strokeOpacity < 1 && (e.globalAlpha = t.strokeOpacity);
68227
68274
  }
68228
- function UX(e) {
68275
+ function GX(e) {
68229
68276
  return Boolean(e.strokeColor) && "transparent" !== e.strokeColor && (e.strokeWidth ?? 0) > 0;
68230
68277
  }
68231
- var GX = class {
68278
+ var WX = class {
68232
68279
  constructor(e) {
68233
68280
  this.textRenderer = e;
68234
68281
  }
@@ -68266,7 +68313,7 @@ var GX = class {
68266
68313
  const e = n.text?.trim();
68267
68314
  if (e) {
68268
68315
  const t = n.textStyle?.align;
68269
- t && "left" !== t ? r.push(`<p align="${bX(t)}">${bX(e)}</p>`) : r.push(e);
68316
+ t && "left" !== t ? r.push(`<p align="${TX(t)}">${TX(e)}</p>`) : r.push(e);
68270
68317
  }
68271
68318
  }
68272
68319
  const o = n.textStyle?.textWarpPreset;
@@ -68284,7 +68331,7 @@ var GX = class {
68284
68331
  r.add(e);
68285
68332
  try {
68286
68333
  const r = await t.mediaContext.saveImage(e, `slide${t.slideNumber}-bullet`);
68287
- n.push(`<img src="${bX(r)}" alt="Bullet image">`);
68334
+ n.push(`<img src="${TX(r)}" alt="Bullet image">`);
68288
68335
  } catch {}
68289
68336
  }
68290
68337
  }
@@ -68297,7 +68344,7 @@ var GX = class {
68297
68344
  if (!n.fillImageUrl.startsWith("data:")) return null;
68298
68345
  try {
68299
68346
  const e = await t.mediaContext.saveImage(n.fillImageUrl, `slide${t.slideNumber}-shapefill`);
68300
- return t.semanticMode ? `![Shape fill](${e})` : `<img src="${bX(e)}" alt="Shape fill">`;
68347
+ return t.semanticMode ? `![Shape fill](${e})` : `<img src="${TX(e)}" alt="Shape fill">`;
68301
68348
  } catch {
68302
68349
  return null;
68303
68350
  }
@@ -68306,7 +68353,7 @@ var GX = class {
68306
68353
  const i = e;
68307
68354
  if (!i.shapeStyle || !i.width || !i.height) return null;
68308
68355
  try {
68309
- const e = $X({
68356
+ const e = zX({
68310
68357
  width: i.width,
68311
68358
  height: i.height,
68312
68359
  shapeType: i.shapeType,
@@ -68320,9 +68367,9 @@ var GX = class {
68320
68367
  if (!e) return null;
68321
68368
  const a = await t.mediaContext.saveImage(e, `slide${t.slideNumber}-shape`);
68322
68369
  if (t.semanticMode) return `![Shape](${a})`;
68323
- if (t.layoutScale) return `<img src="${bX(a)}" alt="Shape" style="max-width:100%;height:auto">`;
68370
+ if (t.layoutScale) return `<img src="${TX(a)}" alt="Shape" style="max-width:100%;height:auto">`;
68324
68371
  const o = this.computeDisplaySize(i.width, i.height);
68325
- return `<img src="${bX(a)}" alt="Shape" width="${o.w}" height="${o.h}">`;
68372
+ return `<img src="${TX(a)}" alt="Shape" width="${o.w}" height="${o.h}">`;
68326
68373
  } catch {
68327
68374
  return null;
68328
68375
  }
@@ -68346,7 +68393,7 @@ var GX = class {
68346
68393
  h: Math.round(t * r)
68347
68394
  };
68348
68395
  }
68349
- }, WX = class {
68396
+ }, VX = class {
68350
68397
  constructor(e) {
68351
68398
  this.textRenderer = e;
68352
68399
  }
@@ -68420,9 +68467,9 @@ var GX = class {
68420
68467
  "onClick" !== i && r.push(i.replace(/([A-Z])/g, " $1").trim().toLowerCase()), "number" == typeof e.repeatCount && e.repeatCount > 1 && r.push(`repeat: ${e.repeatCount}x`), e.autoReverse && r.push("auto-reverse"), e.buildType && r.push(`build: ${e.buildType}`);
68421
68468
  return `${t}: ${n}${r.length > 0 ? ` (${r.join(", ")})` : ""}`;
68422
68469
  }
68423
- }, VX = class {
68470
+ }, HX = class {
68424
68471
  constructor(e, t, n) {
68425
- this.registry = e, this.mediaContext = t, this.textRenderer = n, this.metadataRenderer = new WX(n);
68472
+ this.registry = e, this.mediaContext = t, this.textRenderer = n, this.metadataRenderer = new VX(n);
68426
68473
  }
68427
68474
  registry;
68428
68475
  mediaContext;
@@ -68470,7 +68517,7 @@ var GX = class {
68470
68517
  }
68471
68518
  async renderBackgroundHtml(e, t) {
68472
68519
  if (e.backgroundImage && e.backgroundImage.startsWith("data:")) try {
68473
- return `<img src="${bX(await t.mediaContext.saveImage(e.backgroundImage, `slide${e.slideNumber}-bg`))}" alt="Slide background" style="width:100%;height:100%;object-fit:cover">`;
68520
+ return `<img src="${TX(await t.mediaContext.saveImage(e.backgroundImage, `slide${e.slideNumber}-bg`))}" alt="Slide background" style="width:100%;height:100%;object-fit:cover">`;
68474
68521
  } catch {
68475
68522
  return;
68476
68523
  }
@@ -68530,7 +68577,7 @@ var GX = class {
68530
68577
  });
68531
68578
  }
68532
68579
  };
68533
- function HX(e, t, n) {
68580
+ function qX(e, t, n) {
68534
68581
  const r = function(e, t) {
68535
68582
  if (!e || "object" != typeof e) return;
68536
68583
  const n = e[t];
@@ -68541,7 +68588,7 @@ function HX(e, t, n) {
68541
68588
  const i = n?.[t], a = i?.marginLeft ?? 0, o = i?.indent ?? 0, s = Math.max(0, a + Math.max(o, 0));
68542
68589
  return s <= 0 ? 0 : Math.max(0, Math.round(s / 24));
68543
68590
  }
68544
- function qX(e, t) {
68591
+ function YX(e, t) {
68545
68592
  if (e.autoNumType) {
68546
68593
  const n = e.autoNumStartAt ?? 1, r = e.paragraphIndex ?? t;
68547
68594
  return function(e, t) {
@@ -68585,7 +68632,7 @@ function qX(e, t) {
68585
68632
  }
68586
68633
  return "-";
68587
68634
  }
68588
- var YX = [
68635
+ var ZX = [
68589
68636
  "mono",
68590
68637
  "courier",
68591
68638
  "consolas",
@@ -68609,11 +68656,11 @@ var YX = [
68609
68656
  "lucida console",
68610
68657
  "fixedsys"
68611
68658
  ];
68612
- var ZX = /* @__PURE__ */ new Set([
68659
+ var KX = /* @__PURE__ */ new Set([
68613
68660
  "m:rPr",
68614
68661
  "m:ctrlPr",
68615
68662
  "m:argPr"
68616
- ]), KX = class {
68663
+ ]), JX = class {
68617
68664
  convert(e) {
68618
68665
  return this.renderNode(e).replace(/\s+/g, " ").trim() || this.collectText(e).replace(/\s+/g, " ").trim();
68619
68666
  }
@@ -68631,7 +68678,7 @@ var ZX = /* @__PURE__ */ new Set([
68631
68678
  for (const [e, r] of Object.entries(t)) {
68632
68679
  if (e.startsWith("@_")) continue;
68633
68680
  const t = Pn(e);
68634
- if (ZX.has(t)) continue;
68681
+ if (KX.has(t)) continue;
68635
68682
  const i = Array.isArray(r) ? r : [r];
68636
68683
  for (const e of i) n += this.renderElement(t, e);
68637
68684
  }
@@ -68788,8 +68835,8 @@ var ZX = /* @__PURE__ */ new Set([
68788
68835
  const r = e[t];
68789
68836
  return "string" == typeof r ? r : null;
68790
68837
  }
68791
- }, JX = class {
68792
- ommlConverter = new KX();
68838
+ }, QX = class {
68839
+ ommlConverter = new JX();
68793
68840
  render(e, t = {}) {
68794
68841
  if (0 === e.length) return "";
68795
68842
  const n = this.groupParagraphs(e).map((e) => this.renderParagraph(e, t)).filter((e) => e.text.length > 0);
@@ -68841,7 +68888,7 @@ var ZX = /* @__PURE__ */ new Set([
68841
68888
  if (!t.disableLists && !t.inlineMode) {
68842
68889
  const r = e.segments.find((e) => Boolean(e.bulletInfo))?.bulletInfo;
68843
68890
  if (r && !r.none) {
68844
- const i = HX(r, e.index, t.paragraphIndents), a = qX(r, e.index), o = r.autoNumType && /^\d+[.)]\s/.test(n) ? "" : `${a} `;
68891
+ const i = qX(r, e.index, t.paragraphIndents), a = YX(r, e.index), o = r.autoNumType && /^\d+[.)]\s/.test(n) ? "" : `${a} `;
68845
68892
  if (t.htmlFormatting) return {
68846
68893
  text: `<div style="padding-left:${1.5 * i}em">${o}${n}</div>`,
68847
68894
  isListItem: !0
@@ -68874,13 +68921,13 @@ var ZX = /* @__PURE__ */ new Set([
68874
68921
  if ("all" === e.style.textCaps && (i = i.toUpperCase()), !r && function(e) {
68875
68922
  if (e.style.hyperlink) return !1;
68876
68923
  const t = e.style.fontFamily?.toLowerCase() ?? "";
68877
- return YX.some((e) => t.includes(e));
68878
- }(e) && (i = this.wrapCode(i)), e.style.strikethrough && (i = r ? `<s>${i}</s>` : `~~${i}~~`), e.style.bold && e.style.italic ? i = r ? `<strong><em>${i}</em></strong>` : `***${i}***` : (e.style.bold && (i = r ? `<strong>${i}</strong>` : `**${i}**`), e.style.italic && (i = r ? `<em>${i}</em>` : `*${i}*`)), e.style.underline && (i = `<u>${i}</u>`), e.style.baseline && e.style.baseline > 0 && (i = `<sup>${i}</sup>`), e.style.baseline && e.style.baseline < 0 && (i = `<sub>${i}</sub>`), "small" === e.style.textCaps && (i = `<span style="font-variant:small-caps">${i}</span>`), e.style.hyperlink) if (r) i = `<a href="${bX(function(e) {
68924
+ return ZX.some((e) => t.includes(e));
68925
+ }(e) && (i = this.wrapCode(i)), e.style.strikethrough && (i = r ? `<s>${i}</s>` : `~~${i}~~`), e.style.bold && e.style.italic ? i = r ? `<strong><em>${i}</em></strong>` : `***${i}***` : (e.style.bold && (i = r ? `<strong>${i}</strong>` : `**${i}**`), e.style.italic && (i = r ? `<em>${i}</em>` : `*${i}*`)), e.style.underline && (i = `<u>${i}</u>`), e.style.baseline && e.style.baseline > 0 && (i = `<sup>${i}</sup>`), e.style.baseline && e.style.baseline < 0 && (i = `<sub>${i}</sub>`), "small" === e.style.textCaps && (i = `<span style="font-variant:small-caps">${i}</span>`), e.style.hyperlink) if (r) i = `<a href="${TX(function(e) {
68879
68926
  if ("string" != typeof e) return "#";
68880
68927
  const t = e.trim();
68881
68928
  if (0 === t.length) return "#";
68882
68929
  const n = t.toLowerCase();
68883
- for (const e of TX) if (n.startsWith(e)) return t;
68930
+ for (const e of wX) if (n.startsWith(e)) return t;
68884
68931
  return "#";
68885
68932
  }(e.style.hyperlink))}">${i}</a>`;
68886
68933
  else i = `[${i}](${this.renderLinkDestination(e.style.hyperlink)}${e.style.hyperlinkTooltip ? ` "${this.escapeLinkTitle(e.style.hyperlinkTooltip)}"` : ""})`;
@@ -68911,14 +68958,14 @@ var ZX = /* @__PURE__ */ new Set([
68911
68958
  escapeHtml(e) {
68912
68959
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
68913
68960
  }
68914
- }, QX = class extends wX {
68961
+ }, eU = class extends SX {
68915
68962
  textRenderer;
68916
68963
  registry;
68917
68964
  slideProcessor;
68918
68965
  convertedSlides = 0;
68919
68966
  totalSlides = 0;
68920
68967
  constructor(e, t, n) {
68921
- super(e, t, n), this.textRenderer = new JX(), this.registry = new vX(), this.registerProcessors(), this.slideProcessor = new VX(this.registry, this.mediaContext, this.textRenderer);
68968
+ super(e, t, n), this.textRenderer = new QX(), this.registry = new CX(), this.registerProcessors(), this.slideProcessor = new HX(this.registry, this.mediaContext, this.textRenderer);
68922
68969
  }
68923
68970
  get imagesExtracted() {
68924
68971
  return this.mediaContext.totalImages;
@@ -68953,7 +69000,7 @@ var ZX = /* @__PURE__ */ new Set([
68953
69000
  return s && (o = `${o}\n\n---\n\n${s}`), o = o.endsWith("\n") ? o : `${o}\n`, this.options.outputPath && await this.writeOutput(o, this.options.outputPath), o;
68954
69001
  }
68955
69002
  registerProcessors() {
68956
- this.registry.register(new GX(this.textRenderer)), this.registry.register(new kX()), this.registry.register(new BX()), this.registry.register(new SX()), this.registry.register(new RX()), this.registry.register(new _X()), this.registry.register(new LX()), this.registry.register(new AX()), this.registry.register(new PX()), this.registry.register(new CX());
69003
+ this.registry.register(new WX(this.textRenderer)), this.registry.register(new PX()), this.registry.register(new OX()), this.registry.register(new vX()), this.registry.register(new DX()), this.registry.register(new kX()), this.registry.register(new AX()), this.registry.register(new IX()), this.registry.register(new LX()), this.registry.register(new _X());
68957
69004
  }
68958
69005
  buildPptxFrontMatter(e) {
68959
69006
  const t = {
@@ -68995,4 +69042,4 @@ var ZX = /* @__PURE__ */ new Set([
68995
69042
  return this.options;
68996
69043
  }
68997
69044
  };
68998
- export { mp as $, Sp as $t, Gu as A, lz as An, St as At, yx as B, Sa as Bt, Vo as C, Iz as Cn, ga as Ct, oy as D, am as Dn, il as Dt, sy as E, za as En, Rz as Et, wx as F, wt as Ft, or as G, yf as Gt, uo as H, GS as Ht, bx as I, ca as It, tr as J, kp as Jt, Qs as K, mh as Kt, Tx as L, nl as Lt, Yu as M, qg as Mn, bt as Mt, Wu as N, Tt as Nt, Gt as O, al as On, Qu as Ot, Vu as P, tl as Pt, Pp as Q, A$ as Qt, xx as R, k$ as Rt, Lp as S, iz as Sn, ma as St, K$ as T, Pn as Tn, xf as Tt, mo as U, kn as Ut, ho as V, ts as Vt, Dn as W, hl as Wt, ip as X, jF as Xt, rn as Y, rl as Yt, po as Z, oz as Zt, xt as _, dz as _n, Da as _t, Fx as a, En as an, tz as at, L$ as b, xz as bn, ya as bt, Op as c, yz as cn, da as ct, d$ as d, sz as dn, Z$ as dt, I$ as en, gb as et, QX as f, hz as fn, Rb as ft, _t as g, vz as gn, fa as gt, Ct as h, Cz as hn, Nx as ht, Jo as i, Az as in, x$ as it, Hu as j, vp as jn, Ia as jt, qu as k, OF as kn, vt as kt, At as l, fz as ln, kz as lt, TM as m, wz as mn, Nr as mt, Mz as n, Kg as nn, Bp as nt, Ix as o, Wt as on, ll as ot, im as p, Sz as pn, el as pt, nr as q, sl as qt, Fp as r, Lz as rn, yp as rt, Mx as s, uz as sn, Nn as st, Mp as t, _p as tn, Jt as tt, Yo as u, gz as un, Pz as ut, Fz as v, pz as vn, Js as vt, en as w, Ap as wn, ua as wt, wp as x, cz as xn, M$ as xt, az as y, bz as yn, pf as yt, gx as z, F$ as zt };
69045
+ export { mp as $, Sp as $t, Gu as A, cz as An, St as At, yx as B, Sa as Bt, Vo as C, Mz as Cn, ga as Ct, oy as D, am as Dn, il as Dt, sy as E, za as En, Dz as Et, wx as F, wt as Ft, or as G, yf as Gt, uo as H, GS as Ht, bx as I, ca as It, tr as J, kp as Jt, Qs as K, mh as Kt, Tx as L, nl as Lt, Yu as M, qg as Mn, bt as Mt, Wu as N, Tt as Nt, Gt as O, al as On, Qu as Ot, Vu as P, tl as Pt, Pp as Q, I$ as Qt, xx as R, P$ as Rt, Lp as S, az as Sn, ma as St, J$ as T, Pn as Tn, xf as Tt, mo as U, kn as Ut, ho as V, ts as Vt, Dn as W, hl as Wt, ip as X, jF as Xt, rn as Y, rl as Yt, po as Z, sz as Zt, xt as _, pz as _n, Da as _t, Fx as a, En as an, nz as at, A$ as b, bz as bn, ya as bt, Op as c, xz as cn, da as ct, p$ as d, lz as dn, K$ as dt, M$ as en, gb as et, eU as f, uz as fn, Rb as ft, _t as g, Cz as gn, fa as gt, Ct as h, _z as hn, Nx as ht, Jo as i, Iz as in, b$ as it, Hu as j, vp as jn, Ia as jt, qu as k, OF as kn, vt as kt, At as l, gz as ln, Pz as lt, TM as m, Sz as mn, Nr as mt, Fz as n, Kg as nn, Bp as nt, Ix as o, Wt as on, ll as ot, im as p, vz as pn, el as pt, nr as q, sl as qt, Fp as r, Az as rn, yp as rt, Mx as s, mz as sn, Nn as st, Mp as t, _p as tn, Jt as tt, Yo as u, yz as un, Lz as ut, Rz as v, hz as vn, Js as vt, en as w, Ap as wn, ua as wt, wp as x, dz as xn, F$ as xt, oz as y, Tz as yn, pf as yt, gx as z, R$ as zt };