ooxml-core 1.10.0 → 1.11.0

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 (162) hide show
  1. package/dist/PptxHandler-DNZHAHUY.cjs +12 -0
  2. package/dist/PptxHandler-E44KDHMQ.mjs +3 -0
  3. package/dist/{PptxHandler-ADEFY476.mjs → PptxHandler-NROFYT2N.mjs} +2 -2
  4. package/dist/automation/index.cjs +3293 -2867
  5. package/dist/automation/index.mjs +3293 -2867
  6. package/dist/{chunk-3N6XMMTT.cjs → chunk-2UVH6RHI.cjs} +1138 -996
  7. package/dist/{chunk-ZOUGMAZG.mjs → chunk-7DSZI7S6.mjs} +1 -1
  8. package/dist/{chunk-S6DOCMQC.cjs → chunk-7QZGRB3T.cjs} +0 -10
  9. package/dist/chunk-ANZ4Q6I3.cjs +21 -0
  10. package/dist/{chunk-5NVJN4E6.mjs → chunk-EC2W2MDY.mjs} +1 -1
  11. package/dist/chunk-EGTRL3QJ.mjs +19 -0
  12. package/dist/chunk-GXHKNSZX.mjs +9 -0
  13. package/dist/{chunk-CCHYFCPD.mjs → chunk-HCXUI5UC.mjs} +296 -103
  14. package/dist/chunk-HDQXPSHY.cjs +17 -0
  15. package/dist/chunk-KTYBFGEY.mjs +14 -0
  16. package/dist/chunk-QOO36KG4.cjs +42 -0
  17. package/dist/chunk-R2KZXD6U.mjs +39 -0
  18. package/dist/{chunk-A6P7G3UK.mjs → chunk-U2DF3EGK.mjs} +1 -1
  19. package/dist/{chunk-R6KSBNKX.mjs → chunk-UAY26XOI.mjs} +1 -9
  20. package/dist/{chunk-WUE5ZHU3.mjs → chunk-W5ARCUJB.mjs} +3 -3
  21. package/dist/chunk-XZPZHXV4.cjs +12 -0
  22. package/dist/{chunk-ZE53K7DH.mjs → chunk-YB5SRNFS.mjs} +244 -102
  23. package/dist/docx/layout/flow-table.d.ts.map +1 -1
  24. package/dist/docx/layout/index.cjs +125 -56
  25. package/dist/docx/layout/index.mjs +125 -56
  26. package/dist/docx/layout/nested-fragment-edges.d.ts +9 -0
  27. package/dist/docx/layout/nested-fragment-edges.d.ts.map +1 -0
  28. package/dist/docx/layout/result.d.ts +7 -0
  29. package/dist/docx/layout/result.d.ts.map +1 -1
  30. package/dist/docx/layout/table-border-layout.d.ts +1 -1
  31. package/dist/docx/layout/table-border-layout.d.ts.map +1 -1
  32. package/dist/docx/layout/table-cell-layout.d.ts +1 -1
  33. package/dist/docx/layout/table-cell-layout.d.ts.map +1 -1
  34. package/dist/docx/layout/table-frames.d.ts.map +1 -1
  35. package/dist/docx/layout/table-layout.d.ts +1 -1
  36. package/dist/docx/layout/table-layout.d.ts.map +1 -1
  37. package/dist/pptx/automation/index.cjs +266 -114
  38. package/dist/pptx/automation/index.d.ts +5 -4
  39. package/dist/pptx/automation/index.d.ts.map +1 -1
  40. package/dist/pptx/automation/index.mjs +5 -5
  41. package/dist/pptx/chunks/{text-operations-BqHmLaLA.d.ts → elements-DD3UGOMd.d.ts} +17 -3262
  42. package/dist/pptx/chunks/elements-DD3UGOMd.d.ts.map +1 -0
  43. package/dist/pptx/chunks/{index-DUCGeZh7.d.ts → index-BZrFyNtU.d.ts} +53 -5
  44. package/dist/pptx/chunks/index-BZrFyNtU.d.ts.map +1 -0
  45. package/dist/pptx/chunks/{index-Cuxtr76Y.d.ts → index-DdX02BSm.d.ts} +5 -3
  46. package/dist/pptx/chunks/index-DdX02BSm.d.ts.map +1 -0
  47. package/dist/pptx/chunks/smart-art-ENMMEbmW.d.ts +1512 -0
  48. package/dist/pptx/chunks/smart-art-ENMMEbmW.d.ts.map +1 -0
  49. package/dist/pptx/chunks/text-D49FKllA.d.ts +1473 -0
  50. package/dist/pptx/chunks/text-D49FKllA.d.ts.map +1 -0
  51. package/dist/pptx/chunks/text-operations-CyMTMfID.d.ts +3261 -0
  52. package/dist/pptx/chunks/text-operations-CyMTMfID.d.ts.map +1 -0
  53. package/dist/pptx/cli/index.cjs +266 -114
  54. package/dist/pptx/cli/index.d.ts +1 -1
  55. package/dist/pptx/cli/index.mjs +4 -4
  56. package/dist/pptx/converter/index.d.ts +1 -1
  57. package/dist/pptx/converter/index.mjs +2 -2
  58. package/dist/pptx/editor/render/find-replace.cjs +17 -16
  59. package/dist/pptx/editor/render/find-replace.d.ts +2 -2
  60. package/dist/pptx/editor/render/find-replace.mjs +2 -1
  61. package/dist/pptx/editor/render/font-family-update.cjs +14 -0
  62. package/dist/pptx/editor/render/font-family-update.d.ts +17 -0
  63. package/dist/pptx/editor/render/font-family-update.d.ts.map +1 -0
  64. package/dist/pptx/editor/render/font-family-update.mjs +1 -0
  65. package/dist/pptx/editor/render/paragraph-geometry-overrides.cjs +14 -0
  66. package/dist/pptx/editor/render/paragraph-geometry-overrides.d.ts +17 -0
  67. package/dist/pptx/editor/render/paragraph-geometry-overrides.d.ts.map +1 -0
  68. package/dist/pptx/editor/render/paragraph-geometry-overrides.mjs +12 -0
  69. package/dist/pptx/editor/render/slide-operations.cjs +9 -8
  70. package/dist/pptx/editor/render/slide-operations.mjs +3 -2
  71. package/dist/pptx/editor/render/table-data-grid-ops.cjs +1 -1
  72. package/dist/pptx/editor/render/table-data-grid-ops.mjs +1 -1
  73. package/dist/pptx/editor/render/text-content-style.cjs +18 -0
  74. package/dist/pptx/editor/render/text-content-style.d.ts +9 -0
  75. package/dist/pptx/editor/render/text-content-style.d.ts.map +1 -0
  76. package/dist/pptx/editor/render/text-content-style.mjs +5 -0
  77. package/dist/pptx/editor/render/text-runs-style-patch.cjs +17 -0
  78. package/dist/pptx/editor/render/text-runs-style-patch.d.ts +7 -0
  79. package/dist/pptx/editor/render/text-runs-style-patch.d.ts.map +1 -0
  80. package/dist/pptx/editor/render/text-runs-style-patch.mjs +15 -0
  81. package/dist/pptx/editor/render/text-style-scope.cjs +173 -0
  82. package/dist/pptx/editor/render/text-style-scope.d.ts +76 -0
  83. package/dist/pptx/editor/render/text-style-scope.d.ts.map +1 -0
  84. package/dist/pptx/editor/render/text-style-scope.mjs +164 -0
  85. package/dist/pptx/editor/render/theme-editor-model.cjs +1 -1
  86. package/dist/pptx/editor/render/theme-editor-model.mjs +1 -1
  87. package/dist/pptx/editor/render/update-text-segment-style.cjs +11 -0
  88. package/dist/pptx/editor/render/update-text-segment-style.d.ts +14 -0
  89. package/dist/pptx/editor/render/update-text-segment-style.d.ts.map +1 -0
  90. package/dist/pptx/editor/render/update-text-segment-style.mjs +2 -0
  91. package/dist/pptx/index.cjs +329 -114
  92. package/dist/pptx/index.d.ts +7 -5
  93. package/dist/pptx/index.mjs +5 -5
  94. package/dist/pptx/smartart-layouts/index.d.ts +1 -1
  95. package/dist/teams/index.cjs +112 -16
  96. package/dist/teams/index.mjs +112 -16
  97. package/dist/visio/edit-commands.d.ts +3 -3
  98. package/dist/visio/edit-commands.d.ts.map +1 -1
  99. package/dist/visio/edit-formatting-scope.d.ts.map +1 -1
  100. package/dist/visio/edit-recalculate-index.d.ts.map +1 -1
  101. package/dist/visio/edit-text-field-commands.d.ts +15 -0
  102. package/dist/visio/edit-text-field-commands.d.ts.map +1 -1
  103. package/dist/visio/edit-text-field.d.ts +2 -2
  104. package/dist/visio/edit-text-field.d.ts.map +1 -1
  105. package/dist/visio/edit.d.ts +1 -1
  106. package/dist/visio/edit.d.ts.map +1 -1
  107. package/dist/visio/index.cjs +382 -210
  108. package/dist/visio/index.d.ts +1 -1
  109. package/dist/visio/index.d.ts.map +1 -1
  110. package/dist/visio/index.mjs +382 -210
  111. package/dist/visio/model.d.ts +6 -0
  112. package/dist/visio/model.d.ts.map +1 -1
  113. package/dist/visio/shapes.d.ts.map +1 -1
  114. package/dist/visio/style.d.ts +1 -1
  115. package/dist/visio/style.d.ts.map +1 -1
  116. package/dist/visio/text-field-display.d.ts +3 -0
  117. package/dist/visio/text-field-display.d.ts.map +1 -1
  118. package/dist/visio/text-field-editability.d.ts +6 -0
  119. package/dist/visio/text-field-editability.d.ts.map +1 -0
  120. package/dist/visio/text-field-independent.d.ts +4 -0
  121. package/dist/visio/text-field-independent.d.ts.map +1 -0
  122. package/dist/visio/text-field-source.d.ts +6 -0
  123. package/dist/visio/text-field-source.d.ts.map +1 -0
  124. package/dist/visio/ui/edit-commands.d.ts.map +1 -1
  125. package/dist/visio/ui/index.cjs +394 -211
  126. package/dist/visio/ui/index.mjs +394 -211
  127. package/dist/visio/ui/snapshot-scene.d.ts.map +1 -1
  128. package/dist/xlsx/edit/pivots.d.ts.map +1 -1
  129. package/dist/xlsx/index.cjs +773 -514
  130. package/dist/xlsx/index.mjs +772 -515
  131. package/dist/xlsx/load/index.cjs +541 -292
  132. package/dist/xlsx/load/index.mjs +541 -292
  133. package/dist/xlsx/model-pivots.d.ts +8 -0
  134. package/dist/xlsx/model-pivots.d.ts.map +1 -1
  135. package/dist/xlsx/pivot/admission.d.ts.map +1 -1
  136. package/dist/xlsx/pivot/aggregate.d.ts.map +1 -1
  137. package/dist/xlsx/pivot/data.d.ts +2 -2
  138. package/dist/xlsx/pivot/data.d.ts.map +1 -1
  139. package/dist/xlsx/pivot/index.d.ts +2 -0
  140. package/dist/xlsx/pivot/index.d.ts.map +1 -1
  141. package/dist/xlsx/pivot/measures.d.ts +1 -1
  142. package/dist/xlsx/pivot/measures.d.ts.map +1 -1
  143. package/dist/xlsx/pivot/page-filter-admission.d.ts +5 -0
  144. package/dist/xlsx/pivot/page-filter-admission.d.ts.map +1 -0
  145. package/dist/xlsx/pivot/page-filter.d.ts +11 -0
  146. package/dist/xlsx/pivot/page-filter.d.ts.map +1 -0
  147. package/dist/xlsx/pivot/read.d.ts.map +1 -1
  148. package/dist/xlsx/pivot/table-xml.d.ts.map +1 -1
  149. package/dist/xlsx/pivot/values-axis.d.ts +4 -1
  150. package/dist/xlsx/pivot/values-axis.d.ts.map +1 -1
  151. package/dist/xlsx/ui/commands/i18n/navigation.d.ts.map +1 -1
  152. package/dist/xlsx/ui/commands/i18n/pivots.d.ts.map +1 -1
  153. package/dist/xlsx/ui/index.cjs +95 -12
  154. package/dist/xlsx/ui/index.mjs +95 -12
  155. package/package.json +2 -2
  156. package/dist/PptxHandler-5UURGJEV.mjs +0 -2
  157. package/dist/PptxHandler-U5XB2HUE.cjs +0 -11
  158. package/dist/pptx/chunks/index-Cuxtr76Y.d.ts.map +0 -1
  159. package/dist/pptx/chunks/index-DUCGeZh7.d.ts.map +0 -1
  160. package/dist/pptx/chunks/smart-art-D-sXa_Nb.d.ts +0 -2980
  161. package/dist/pptx/chunks/smart-art-D-sXa_Nb.d.ts.map +0 -1
  162. package/dist/pptx/chunks/text-operations-BqHmLaLA.d.ts.map +0 -1
@@ -0,0 +1,14 @@
1
+ import { isBulletMarkerSegment } from './chunk-LRKFBOAA.mjs';
2
+
3
+ // pptx/editor/render/text-content-style.ts
4
+ var TEXT_DECORATION_FLAGS = [
5
+ "bold",
6
+ "italic",
7
+ "underline",
8
+ "strikethrough"
9
+ ];
10
+ function isContentSegment(segment) {
11
+ return !segment.isParagraphBreak && segment.text !== "\n" && segment.text.length > 0 && !isBulletMarkerSegment(segment);
12
+ }
13
+
14
+ export { TEXT_DECORATION_FLAGS, isContentSegment };
@@ -0,0 +1,42 @@
1
+ 'use strict';
2
+
3
+ // pptx/editor/render/font-family-update.ts
4
+ var SCRIPT_FACES = [
5
+ { face: "eastAsiaFont", token: "eastAsiaFontThemeToken" },
6
+ { face: "complexScriptFont", token: "complexScriptFontThemeToken" }
7
+ ];
8
+ function fontFamilyStyleUpdates(style, updates, inherited) {
9
+ const family = updates.fontFamily;
10
+ if (typeof family !== "string" || family.length === 0) {
11
+ return updates;
12
+ }
13
+ const next = { ...updates };
14
+ if (!("latinFontThemeToken" in updates) && style?.latinFontThemeToken !== void 0) {
15
+ next.latinFontThemeToken = void 0;
16
+ }
17
+ const ownsLatin = style?.fontFamily !== void 0;
18
+ const latinFace = ownsLatin ? style?.fontFamily : inherited?.fontFamily;
19
+ const latinToken = style?.latinFontThemeToken ?? (ownsLatin ? void 0 : inherited?.latinFontThemeToken);
20
+ for (const { face, token } of SCRIPT_FACES) {
21
+ if (face in updates || token in updates) {
22
+ continue;
23
+ }
24
+ const current = style?.[face];
25
+ const sameConcreteFace = current !== void 0 && current === latinFace;
26
+ const sameThemeFace = style?.[token] !== void 0 && style?.[token] === latinToken;
27
+ if (!sameConcreteFace && !sameThemeFace) {
28
+ continue;
29
+ }
30
+ next[face] = family;
31
+ if (style?.[token] !== void 0) {
32
+ next[token] = void 0;
33
+ }
34
+ }
35
+ return next;
36
+ }
37
+ function mergeTextStyleUpdate(style, updates, inherited) {
38
+ return { ...style, ...fontFamilyStyleUpdates(style, updates, inherited) };
39
+ }
40
+
41
+ exports.fontFamilyStyleUpdates = fontFamilyStyleUpdates;
42
+ exports.mergeTextStyleUpdate = mergeTextStyleUpdate;
@@ -0,0 +1,39 @@
1
+ // pptx/editor/render/font-family-update.ts
2
+ var SCRIPT_FACES = [
3
+ { face: "eastAsiaFont", token: "eastAsiaFontThemeToken" },
4
+ { face: "complexScriptFont", token: "complexScriptFontThemeToken" }
5
+ ];
6
+ function fontFamilyStyleUpdates(style, updates, inherited) {
7
+ const family = updates.fontFamily;
8
+ if (typeof family !== "string" || family.length === 0) {
9
+ return updates;
10
+ }
11
+ const next = { ...updates };
12
+ if (!("latinFontThemeToken" in updates) && style?.latinFontThemeToken !== void 0) {
13
+ next.latinFontThemeToken = void 0;
14
+ }
15
+ const ownsLatin = style?.fontFamily !== void 0;
16
+ const latinFace = ownsLatin ? style?.fontFamily : inherited?.fontFamily;
17
+ const latinToken = style?.latinFontThemeToken ?? (ownsLatin ? void 0 : inherited?.latinFontThemeToken);
18
+ for (const { face, token } of SCRIPT_FACES) {
19
+ if (face in updates || token in updates) {
20
+ continue;
21
+ }
22
+ const current = style?.[face];
23
+ const sameConcreteFace = current !== void 0 && current === latinFace;
24
+ const sameThemeFace = style?.[token] !== void 0 && style?.[token] === latinToken;
25
+ if (!sameConcreteFace && !sameThemeFace) {
26
+ continue;
27
+ }
28
+ next[face] = family;
29
+ if (style?.[token] !== void 0) {
30
+ next[token] = void 0;
31
+ }
32
+ }
33
+ return next;
34
+ }
35
+ function mergeTextStyleUpdate(style, updates, inherited) {
36
+ return { ...style, ...fontFamilyStyleUpdates(style, updates, inherited) };
37
+ }
38
+
39
+ export { fontFamilyStyleUpdates, mergeTextStyleUpdate };
@@ -1,4 +1,4 @@
1
- import { hasTextProperties } from './chunk-5NVJN4E6.mjs';
1
+ import { hasTextProperties } from './chunk-EC2W2MDY.mjs';
2
2
  import { cloneSlide } from './chunk-54S5A5PZ.mjs';
3
3
 
4
4
  // pptx/core/builders/sdk/merge-operations.ts
@@ -67,14 +67,6 @@ function cloneXmlObject(value) {
67
67
  }
68
68
  }
69
69
 
70
- // pptx/core/types/type-guards.ts
71
- function hasTextProperties(element) {
72
- return element.type === "text" || element.type === "shape" || element.type === "connector";
73
- }
74
- function hasShapeProperties(element) {
75
- return element.type === "text" || element.type === "shape" || element.type === "connector" || element.type === "image" || element.type === "picture";
76
- }
77
-
78
70
  // pptx/core/types/theme.ts
79
71
  var THEME_COLOR_SCHEME_KEYS = [
80
72
  "dk1",
@@ -44130,4 +44122,4 @@ function updateCellTextInRawXml(element, rowIndex, colIndex, text2) {
44130
44122
  return newRawXml;
44131
44123
  }
44132
44124
 
44133
- export { BLIP_FILL_ORDER, COLOR_MAP_ALIAS_KEYS, DEFAULT_CHART_GRADIENT_ANGLE, DEFAULT_COLOR_MAP, DEFAULT_FONT_ADVANCE_TABLE, DEFAULT_ROW_HEIGHT_EMU, DGM_XMLNS, DIAGRAM_DRAWING_CONTENT_TYPE, DIAGRAM_DRAWING_REL_TYPE, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, EMU_PER_PIXEL, EMU_PER_POINT, EMU_PER_PX, ENTRY_TYPE_ROOT, EncryptedFileError, FONT_ADVANCE_TABLES, IncorrectPasswordError, MAX_SHAPE_ID, OOXML_PERCENT_UNITS, P14_DIR_IS_ORIENTATION_TYPE, P14_GUIDE_URI, P14_TRANSITION_TYPES, P15_GUIDE_URI, PRESENTATION_CHILD_ORDER, PRESET_COLOR_MAP, RC4_ALG_ID, SHAPE_STYLE_ORDER, SHAPE_TREE_ELEMENT_TAGS, SMART_ART_DEFINITION_PARTS, SP_PR_ORDER2 as SP_PR_ORDER, STYLE_MATRIX_EFFECT_KEYS, STYLE_MATRIX_FILL_KEYS, STYLE_MATRIX_LINE_KEYS, SYSTEM_COLOR_MAP, TC_PR_BORDERS_ORDER, VML_SHAPE_TAGS, XML_PROLOG, annotateCustomGeometryCommandOrder, annotateSmartArtTextOrder, applyActiveXControlsToSlide, applyBubbleChartOptions, applyChartAxisDisplayUnitsToXml, applyChartAxisLabelFormatting, applyChartAxisScaling, applyChartDateAxisUnits, applyChartGradientToSpPr, applyChartLayouts, applyChartManualLayout, applyChartUpDownBars, applyCustomShows, applyDataLabelsRangeToDLbls, applyDiagramRelationshipIds, applyDrawingColorTransforms, applyDrawingLineDash, applyDrawingMediaReference, applyKinsokuToXml, applySections, applySeriesDataPointsToXml, applySeriesMarkerToXml, applySeriesPictureOptionsToXml, applySmartArtLayoutDefinition, applyTextBodySp3d, applyThemeToData, base64Decode, blendColorOntoWhite, buildChartGradFillXml, buildChartMarkerXml, buildChartUniqueIdExtLst, buildClrMapOverrideXml, buildDefRPrTextProperties, buildEffectDagTreeFromXml, buildFabricatedDiagramDataXml, buildFabricatedDrawingXml, buildGuideListExtension, buildInkMlContent, buildNodeGuidMap, buildOle2, buildPointFromParagraphs, buildPointFromRuns, buildPointText, buildPresentationGuidMap, buildSmartArtColorLists, buildSmartArtColorRoleMap, buildSrgbColorChoice, buildTrendlineLabel, captureStyleBaseline, chartColorChoiceValue, chartColorHex, chartGradientsEqual, cloneElement, cloneSlide, cloneXmlObject, collectAllText, colorsEqual, concatArrays, containsConvertibleStrictNamespaceAttribute, convertMetafileToDataUrl, convertXmlToStrict, createBuiltinVariables, createDefaultXmlCell, createLineStyleGate, createOfficeGuid, cropShapeForPresetGeometry, customGeometryPathsToXml, decodeXmlEntities, decryptPptx, deobfuscateFont, deriveSlideTitles, detectDigitalSignatures, detectFileFormat, detectFontFormat, detectOleObjectType, detectStrictConformance, effectChild, encodeCompressedPng, encodePasswordUtf16LE, encodeXmlAttributeValue, encodeXmlTextValue, encryptPptx, ensureArray7 as ensureArray, ensureArrayValue, ensureXmlChild, ensureXmlChildOrCreate, ensureXmlChildren, estimateMediaDurationMs, evaluateGuides, extractColorChoiceXml, extractGuidFromPartName, extractStyleReferenceColorXml, fetchUrlToBytes, fillIsPurelyStyleMatrix, findChartExtByUri, findChildByLocalName, findKey6 as findKey, firstParagraphRuns, flattenCellTxBodyText, formatAutoNumberMarker, generateFontGuid, getSignaturePathsToStrip, getTblFromRawXml, hasShapeProperties, hasTextProperties, hash, hslToRgb, inferOleExtensionFromTarget, inheritCustomGeometryCommandOrder, inheritedPlaceholderFieldType, inkElementToStrokes, insertAt2 as insertAt, isAlternateContentChoiceSupported, isAlternateContentChoiceXmlSupported, isContentPoint, isHeaderFooterPlaceholder, isOle2CompoundFile, isTemplateElementId, isXmlNode, lookupPresetShape, measureTextWidth, mergeAttributeEffectNode, mergeEffectNode, mergeSmartArtConnectionXml, mergeSmartArtPointXml, mimeTypeForOleFile, newSmartArtGuid, normalizeNamespaceUri, normalizeStShapeType, normalizeStrictXml, obfuscateFont, oleBytesToDataUrl, ooxmlArcToSvg, ooxmlGradientAngleToCssDegrees, orderedPathCommandEntries, orderedXmlKey, parseActiveXControlsFromSlide, parseAdjustmentValues, parseAlignmentAttr, parseBodyPrBooleanAttrs, parseBubbleChartOptions, parseBulletSizePercent, parseChart3DSurfaces, parseChartAxes, parseChartDataLabelOptions, parseChartDataPointPicture, parseChartDataPointPictureBlipRel, parseChartLayouts, parseChartUniqueId, parseChartUpDownBars, parseChartUserShapesDrawing, parseChartWideTextStyle, parseCustomShows, parseCxChartSeries, parseDataTable, parseDataUrlToBytes, parseDefRPrTextStyle, parseDiagramRelationshipIds, parseDrawingFraction, parseDrawingHueDegrees, parseDrawingLineDash, parseDrawingMediaReference, parseEmbeddedXlsx, parseEncryptionInfo, parseGuideDefinitions, parseImplicitBlipPictureFill, parseInkMlContent, parseKinsoku, parseLineSpacingExactPt, parseLineSpacingMultiplier, parseLineStyle, parseMarker, parseModel3DScene, parseOle2, parseOoxmlPercent, parseP14DirectChild, parseP14FromExtLst, parseParagraphExtraAttributes, parseParagraphLevel, parseParagraphMargins, parseParagraphRtl, parseParagraphSpacingPx, parsePresentationDrawingGuides, parsePresentationSmartTags, parseSeriesDataLabels, parseSeriesDataPoints, parseSeriesErrBars, parseSeriesTrendlines, parseShapeId, parseShapeProps, parseSlideDrawingGuides, parseSmartArtColorStyleLabels, parseSmartArtConnection, parseSmartArtDefinitionMetadata, parseSmartArtLayoutDefinition, parseSmartArtPresLayoutVars, parseSmartArtQuickStyleLabels, parseSmartArtStyleLabelRefs, parseSmartArtTextParagraphs, parseTabStops, parseVmlElement, parseVmlElements, positiveFixedAngleAttribute, pptxActionToElementAction, preservesSpreadsheetXmlWhitespace, preservesXmlWhitespace, prismFamilyFlags, prismFamilyTypeForFlags, prismFamilyTypeOfNode, projectSmartArtNodeText, readChartManualLayoutValues, readPathListCommandOrder, reapplyAlternateContentToTree, reconcileSmartArtTextParagraphs, regenerateClonedUniqueId, regenerateSmartArtDrawingShapes, relayoutSmartArt, remapElementShapeIds, remapShapeIdReferences, reorderObjectKeys, reorderObjectKeysByLocalName, replaceFirstText, replaceOleEmbedding, resetSpPrFormattingForStyleMatrix, resolveCoordinate, resolveLayoutDisplayName, resolveParagraphAlignment, resolveSmartArtEffectIntensity, resolveSmartArtNodeCoherent3DOff, resolveSmartArtNodeStyleRoles, resolveTxPrDefRPr, restorePathListCommandOrder, roundCoordinate, safeResolveZipPath, scaleVectorToIntegers, scrgbLinearToSrgb8, selectAlternateContentBranch, serializeColorChoice, serializeColorChoiceWithRef, serializeTabStop, setAutoTitleDeleted, shadowOffsetToDistanceAndDirection, shouldRebuildFromParagraphs, shouldRebuildFromRuns, smartArtParagraphsText, stripParentDirSegments, stripXmlOrderMarkers, stripXmlOrderSuffix, supportsChartGradientFill, svgToCustomGeometryPaths, syncPictureShapeTypeWithCropShape, tableCellTextBodyMatches, themeColorRefFromColorChoice, themeColorRefFromSchemeClr, themeColorRefToSolidFillWithOpacity, themeColorRefToXml, uint32LE, unwrapAlternateContent, unwrapOleEmbedding, updateCellTextInRawXml, updateSmartArtNodeText, upsertChartAxisChild, withThemePlaceholderColor, writeBodyPrBooleanAttrs, writeChartColorChoice, writeChartShapeProps, writeShapeEffects, xmlAttr, xmlAttrNumber, xmlChild, xmlChildren, xmlEscape, xmlHasChild, xmlPath, xmlText, zlibStore };
44125
+ export { BLIP_FILL_ORDER, COLOR_MAP_ALIAS_KEYS, DEFAULT_CHART_GRADIENT_ANGLE, DEFAULT_COLOR_MAP, DEFAULT_FONT_ADVANCE_TABLE, DEFAULT_ROW_HEIGHT_EMU, DGM_XMLNS, DIAGRAM_DRAWING_CONTENT_TYPE, DIAGRAM_DRAWING_REL_TYPE, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, EMU_PER_PIXEL, EMU_PER_POINT, EMU_PER_PX, ENTRY_TYPE_ROOT, EncryptedFileError, FONT_ADVANCE_TABLES, IncorrectPasswordError, MAX_SHAPE_ID, OOXML_PERCENT_UNITS, P14_DIR_IS_ORIENTATION_TYPE, P14_GUIDE_URI, P14_TRANSITION_TYPES, P15_GUIDE_URI, PRESENTATION_CHILD_ORDER, PRESET_COLOR_MAP, RC4_ALG_ID, SHAPE_STYLE_ORDER, SHAPE_TREE_ELEMENT_TAGS, SMART_ART_DEFINITION_PARTS, SP_PR_ORDER2 as SP_PR_ORDER, STYLE_MATRIX_EFFECT_KEYS, STYLE_MATRIX_FILL_KEYS, STYLE_MATRIX_LINE_KEYS, SYSTEM_COLOR_MAP, TC_PR_BORDERS_ORDER, VML_SHAPE_TAGS, XML_PROLOG, annotateCustomGeometryCommandOrder, annotateSmartArtTextOrder, applyActiveXControlsToSlide, applyBubbleChartOptions, applyChartAxisDisplayUnitsToXml, applyChartAxisLabelFormatting, applyChartAxisScaling, applyChartDateAxisUnits, applyChartGradientToSpPr, applyChartLayouts, applyChartManualLayout, applyChartUpDownBars, applyCustomShows, applyDataLabelsRangeToDLbls, applyDiagramRelationshipIds, applyDrawingColorTransforms, applyDrawingLineDash, applyDrawingMediaReference, applyKinsokuToXml, applySections, applySeriesDataPointsToXml, applySeriesMarkerToXml, applySeriesPictureOptionsToXml, applySmartArtLayoutDefinition, applyTextBodySp3d, applyThemeToData, base64Decode, blendColorOntoWhite, buildChartGradFillXml, buildChartMarkerXml, buildChartUniqueIdExtLst, buildClrMapOverrideXml, buildDefRPrTextProperties, buildEffectDagTreeFromXml, buildFabricatedDiagramDataXml, buildFabricatedDrawingXml, buildGuideListExtension, buildInkMlContent, buildNodeGuidMap, buildOle2, buildPointFromParagraphs, buildPointFromRuns, buildPointText, buildPresentationGuidMap, buildSmartArtColorLists, buildSmartArtColorRoleMap, buildSrgbColorChoice, buildTrendlineLabel, captureStyleBaseline, chartColorChoiceValue, chartColorHex, chartGradientsEqual, cloneElement, cloneSlide, cloneXmlObject, collectAllText, colorsEqual, concatArrays, containsConvertibleStrictNamespaceAttribute, convertMetafileToDataUrl, convertXmlToStrict, createBuiltinVariables, createDefaultXmlCell, createLineStyleGate, createOfficeGuid, cropShapeForPresetGeometry, customGeometryPathsToXml, decodeXmlEntities, decryptPptx, deobfuscateFont, deriveSlideTitles, detectDigitalSignatures, detectFileFormat, detectFontFormat, detectOleObjectType, detectStrictConformance, effectChild, encodeCompressedPng, encodePasswordUtf16LE, encodeXmlAttributeValue, encodeXmlTextValue, encryptPptx, ensureArray7 as ensureArray, ensureArrayValue, ensureXmlChild, ensureXmlChildOrCreate, ensureXmlChildren, estimateMediaDurationMs, evaluateGuides, extractColorChoiceXml, extractGuidFromPartName, extractStyleReferenceColorXml, fetchUrlToBytes, fillIsPurelyStyleMatrix, findChartExtByUri, findChildByLocalName, findKey6 as findKey, firstParagraphRuns, flattenCellTxBodyText, formatAutoNumberMarker, generateFontGuid, getSignaturePathsToStrip, getTblFromRawXml, hash, hslToRgb, inferOleExtensionFromTarget, inheritCustomGeometryCommandOrder, inheritedPlaceholderFieldType, inkElementToStrokes, insertAt2 as insertAt, isAlternateContentChoiceSupported, isAlternateContentChoiceXmlSupported, isContentPoint, isHeaderFooterPlaceholder, isOle2CompoundFile, isTemplateElementId, isXmlNode, lookupPresetShape, measureTextWidth, mergeAttributeEffectNode, mergeEffectNode, mergeSmartArtConnectionXml, mergeSmartArtPointXml, mimeTypeForOleFile, newSmartArtGuid, normalizeNamespaceUri, normalizeStShapeType, normalizeStrictXml, obfuscateFont, oleBytesToDataUrl, ooxmlArcToSvg, ooxmlGradientAngleToCssDegrees, orderedPathCommandEntries, orderedXmlKey, parseActiveXControlsFromSlide, parseAdjustmentValues, parseAlignmentAttr, parseBodyPrBooleanAttrs, parseBubbleChartOptions, parseBulletSizePercent, parseChart3DSurfaces, parseChartAxes, parseChartDataLabelOptions, parseChartDataPointPicture, parseChartDataPointPictureBlipRel, parseChartLayouts, parseChartUniqueId, parseChartUpDownBars, parseChartUserShapesDrawing, parseChartWideTextStyle, parseCustomShows, parseCxChartSeries, parseDataTable, parseDataUrlToBytes, parseDefRPrTextStyle, parseDiagramRelationshipIds, parseDrawingFraction, parseDrawingHueDegrees, parseDrawingLineDash, parseDrawingMediaReference, parseEmbeddedXlsx, parseEncryptionInfo, parseGuideDefinitions, parseImplicitBlipPictureFill, parseInkMlContent, parseKinsoku, parseLineSpacingExactPt, parseLineSpacingMultiplier, parseLineStyle, parseMarker, parseModel3DScene, parseOle2, parseOoxmlPercent, parseP14DirectChild, parseP14FromExtLst, parseParagraphExtraAttributes, parseParagraphLevel, parseParagraphMargins, parseParagraphRtl, parseParagraphSpacingPx, parsePresentationDrawingGuides, parsePresentationSmartTags, parseSeriesDataLabels, parseSeriesDataPoints, parseSeriesErrBars, parseSeriesTrendlines, parseShapeId, parseShapeProps, parseSlideDrawingGuides, parseSmartArtColorStyleLabels, parseSmartArtConnection, parseSmartArtDefinitionMetadata, parseSmartArtLayoutDefinition, parseSmartArtPresLayoutVars, parseSmartArtQuickStyleLabels, parseSmartArtStyleLabelRefs, parseSmartArtTextParagraphs, parseTabStops, parseVmlElement, parseVmlElements, positiveFixedAngleAttribute, pptxActionToElementAction, preservesSpreadsheetXmlWhitespace, preservesXmlWhitespace, prismFamilyFlags, prismFamilyTypeForFlags, prismFamilyTypeOfNode, projectSmartArtNodeText, readChartManualLayoutValues, readPathListCommandOrder, reapplyAlternateContentToTree, reconcileSmartArtTextParagraphs, regenerateClonedUniqueId, regenerateSmartArtDrawingShapes, relayoutSmartArt, remapElementShapeIds, remapShapeIdReferences, reorderObjectKeys, reorderObjectKeysByLocalName, replaceFirstText, replaceOleEmbedding, resetSpPrFormattingForStyleMatrix, resolveCoordinate, resolveLayoutDisplayName, resolveParagraphAlignment, resolveSmartArtEffectIntensity, resolveSmartArtNodeCoherent3DOff, resolveSmartArtNodeStyleRoles, resolveTxPrDefRPr, restorePathListCommandOrder, roundCoordinate, safeResolveZipPath, scaleVectorToIntegers, scrgbLinearToSrgb8, selectAlternateContentBranch, serializeColorChoice, serializeColorChoiceWithRef, serializeTabStop, setAutoTitleDeleted, shadowOffsetToDistanceAndDirection, shouldRebuildFromParagraphs, shouldRebuildFromRuns, smartArtParagraphsText, stripParentDirSegments, stripXmlOrderMarkers, stripXmlOrderSuffix, supportsChartGradientFill, svgToCustomGeometryPaths, syncPictureShapeTypeWithCropShape, tableCellTextBodyMatches, themeColorRefFromColorChoice, themeColorRefFromSchemeClr, themeColorRefToSolidFillWithOpacity, themeColorRefToXml, uint32LE, unwrapAlternateContent, unwrapOleEmbedding, updateCellTextInRawXml, updateSmartArtNodeText, upsertChartAxisChild, withThemePlaceholderColor, writeBodyPrBooleanAttrs, writeChartColorChoice, writeChartShapeProps, writeShapeEffects, xmlAttr, xmlAttrNumber, xmlChild, xmlChildren, xmlEscape, xmlHasChild, xmlPath, xmlText, zlibStore };
@@ -1,6 +1,6 @@
1
- import { findText, replaceText, replaceTextInSlide, mergePresentation } from './chunk-A6P7G3UK.mjs';
2
- import { PresentationBuilder, PptxHandler, SlideBuilder, validateSeriesIndex, removeEmptyDataPoint, ensureDataPoint, ensureChartData, assertChartGradientSupported, toChartGradientFill, STANDARD_LAYOUTS, createTextElement, createShapeElement, createImageElement, createTableElement, createChartElement, createConnectorElement, createMediaElement, createGroupElement, parseXml, first, relationshipsPartFor, parseRelationships, resolvePartPath, elements, clonePartGraph, buildXml, buildRelationshipsXml, buildBlankPresentationArchive, nextRelationshipId, relativePartTarget, PptxXmlBuilder } from './chunk-CCHYFCPD.mjs';
3
- import { escAttr, EMU_PER_PIXEL, EMU_PER_INCH, bytesToBase64, base64ToBytes, hasTextProperties } from './chunk-5NVJN4E6.mjs';
1
+ import { findText, replaceText, replaceTextInSlide, mergePresentation } from './chunk-U2DF3EGK.mjs';
2
+ import { PresentationBuilder, PptxHandler, SlideBuilder, validateSeriesIndex, removeEmptyDataPoint, ensureDataPoint, ensureChartData, assertChartGradientSupported, toChartGradientFill, STANDARD_LAYOUTS, createTextElement, createShapeElement, createImageElement, createTableElement, createChartElement, createConnectorElement, createMediaElement, createGroupElement, parseXml, first, relationshipsPartFor, parseRelationships, resolvePartPath, elements, clonePartGraph, buildXml, buildRelationshipsXml, buildBlankPresentationArchive, nextRelationshipId, relativePartTarget, PptxXmlBuilder } from './chunk-HCXUI5UC.mjs';
3
+ import { escAttr, EMU_PER_PIXEL, EMU_PER_INCH, bytesToBase64, base64ToBytes, hasTextProperties } from './chunk-EC2W2MDY.mjs';
4
4
  import { cloneSlide, cloneElement } from './chunk-54S5A5PZ.mjs';
5
5
  import JSZip3 from 'jszip';
6
6
 
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ // pptx/core/types/type-guards.ts
4
+ function hasTextProperties(element) {
5
+ return element.type === "text" || element.type === "shape" || element.type === "connector";
6
+ }
7
+ function hasShapeProperties(element) {
8
+ return element.type === "text" || element.type === "shape" || element.type === "connector" || element.type === "image" || element.type === "picture";
9
+ }
10
+
11
+ exports.hasShapeProperties = hasShapeProperties;
12
+ exports.hasTextProperties = hasTextProperties;
@@ -1,4 +1,5 @@
1
- import { SMART_ART_DEFINITION_PARTS, VML_SHAPE_TAGS, isAlternateContentChoiceXmlSupported, parseVmlElement, unwrapAlternateContent, xmlChild, xmlAttr, parseDrawingMediaReference, cropShapeForPresetGeometry, isHeaderFooterPlaceholder, xmlPath, inheritedPlaceholderFieldType, parseParagraphLevel, xmlHasChild, parseParagraphExtraAttributes, parseParagraphMargins, parseAlignmentAttr, parseParagraphRtl, parseTabStops, resolveParagraphAlignment, xmlText, parseBodyPrBooleanAttrs, selectAlternateContentBranch, parseBulletSizePercent, extractColorChoiceXml, themeColorRefFromColorChoice, formatAutoNumberMarker, cloneXmlObject, parseParagraphSpacingPx, parseOoxmlPercent, createBuiltinVariables, resolveCoordinate, readPathListCommandOrder, parseAdjustmentValues, parseGuideDefinitions, evaluateGuides, orderedPathCommandEntries, ooxmlArcToSvg, inheritCustomGeometryCommandOrder, parseInkMlContent, parseModel3DScene, remapElementShapeIds, parseShapeId, isTemplateElementId, remapShapeIdReferences, reapplyAlternateContentToTree, buildOle2, SHAPE_TREE_ELEMENT_TAGS, MAX_SHAPE_ID, orderedXmlKey, safeResolveZipPath, parseDataUrlToBytes, base64Decode, EMU_PER_PX, reorderObjectKeys, encodeCompressedPng, zlibStore, hash, concatArrays, encodePasswordUtf16LE, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, uint32LE, pptxActionToElementAction, buildClrMapOverrideXml, applyActiveXControlsToSlide, BLIP_FILL_ORDER, SP_PR_ORDER, hasShapeProperties, ensureXmlChild, hasTextProperties, inkElementToStrokes, buildInkMlContent, ensureXmlChildOrCreate, isXmlNode, applyChartLayouts, stripXmlOrderSuffix, serializeTabStop, colorsEqual, generateFontGuid, applyBubbleChartOptions, applyChartUpDownBars, applyDataLabelsRangeToDLbls, applyChartAxisScaling, applyChartAxisLabelFormatting, upsertChartAxisChild, applyChartDateAxisUnits, applyChartAxisDisplayUnitsToXml, writeChartShapeProps, resolveTxPrDefRPr, buildDefRPrTextProperties, buildChartGradFillXml, applySeriesMarkerToXml, applySeriesDataPointsToXml, chartColorHex, applyChartManualLayout, buildTrendlineLabel, serializeColorChoice, replaceOleEmbedding, findKey, collectAllText, buildNodeGuidMap, buildPresentationGuidMap, regenerateSmartArtDrawingShapes, buildFabricatedDrawingXml, buildFabricatedDiagramDataXml, DIAGRAM_DRAWING_CONTENT_TYPE, DIAGRAM_DRAWING_REL_TYPE, applyDiagramRelationshipIds, applyDrawingMediaReference, XML_PROLOG, DGM_XMLNS, xmlEscape, writeBodyPrBooleanAttrs, applyTextBodySp3d, customGeometryPathsToXml, ensureArrayValue, lookupPresetShape, writeShapeEffects, SHAPE_STYLE_ORDER, roundCoordinate, scaleVectorToIntegers, EMU_PER_PIXEL, P14_GUIDE_URI, P15_GUIDE_URI, buildGuideListExtension, resetSpPrFormattingForStyleMatrix, restorePathListCommandOrder, fillIsPurelyStyleMatrix, serializeColorChoiceWithRef, createLineStyleGate, applyDrawingLineDash, getSignaturePathsToStrip, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, mergeSmartArtPointXml, mergeSmartArtConnectionXml, applySmartArtLayoutDefinition, obfuscateFont, containsConvertibleStrictNamespaceAttribute, convertXmlToStrict, applySeriesPictureOptionsToXml, findChartExtByUri, findChildByLocalName, regenerateClonedUniqueId, buildChartUniqueIdExtLst, createOfficeGuid, isContentPoint, newSmartArtGuid, parseChartUserShapesDrawing, DEFAULT_ROW_HEIGHT_EMU, createDefaultXmlCell, xmlChildren, applyChartGradientToSpPr, setAutoTitleDeleted, insertAt, replaceFirstText, shouldRebuildFromParagraphs, buildPointFromParagraphs, shouldRebuildFromRuns, buildPointFromRuns, buildPointText, tableCellTextBodyMatches, ensureXmlChildren, TC_PR_BORDERS_ORDER, writeChartColorChoice, stripParentDirSegments, parseChartUniqueId, buildChartMarkerXml, chartGradientsEqual, chartColorChoiceValue, preservesSpreadsheetXmlWhitespace, buildEffectDagTreeFromXml, syncPictureShapeTypeWithCropShape, buildSrgbColorChoice, fetchUrlToBytes, parseChartWideTextStyle, parseDefRPrTextStyle, parseChartDataLabelOptions, shadowOffsetToDistanceAndDirection, positiveFixedAngleAttribute, xmlAttrNumber, parseCustomShows, parseShapeProps, parseActiveXControlsFromSlide, convertMetafileToDataUrl, ooxmlGradientAngleToCssDegrees, isAlternateContentChoiceSupported, detectStrictConformance, normalizeStrictXml, relayoutSmartArt, themeColorRefToSolidFillWithOpacity, FONT_ADVANCE_TABLES, DEFAULT_FONT_ADVANCE_TABLE, measureTextWidth, applyDrawingColorTransforms, applyThemeToData, detectFileFormat, parseOle2, EncryptedFileError, decryptPptx, encryptPptx, IncorrectPasswordError, encodeXmlAttributeValue, encodeXmlTextValue, parseEncryptionInfo, RC4_ALG_ID, isOle2CompoundFile, ENTRY_TYPE_ROOT, svgToCustomGeometryPaths, captureStyleBaseline, STYLE_MATRIX_FILL_KEYS, STYLE_MATRIX_LINE_KEYS, STYLE_MATRIX_EFFECT_KEYS, decodeXmlEntities, preservesXmlWhitespace, annotateCustomGeometryCommandOrder, annotateSmartArtTextOrder, stripXmlOrderMarkers, normalizeStShapeType, applyCustomShows, applySections, reorderObjectKeysByLocalName, PRESENTATION_CHILD_ORDER, applyKinsokuToXml, normalizeNamespaceUri, detectOleObjectType, inferOleExtensionFromTarget, parsePresentationDrawingGuides, parsePresentationSmartTags, resolveLayoutDisplayName, deriveSlideTitles, parseP14DirectChild, parseP14FromExtLst, P14_TRANSITION_TYPES, parseSlideDrawingGuides, cloneSlide, parseDrawingFraction, scrgbLinearToSrgb8, SYSTEM_COLOR_MAP, PRESET_COLOR_MAP, parseDrawingHueDegrees, hslToRgb, themeColorRefToXml, effectChild, mergeEffectNode, mergeAttributeEffectNode, supportsChartGradientFill, DEFAULT_CHART_GRADIENT_ANGLE, detectDigitalSignatures, unwrapOleEmbedding, mimeTypeForOleFile, oleBytesToDataUrl, prismFamilyFlags, prismFamilyTypeOfNode, prismFamilyTypeForFlags, P14_DIR_IS_ORIENTATION_TYPE, estimateMediaDurationMs, parseVmlElements, parseDrawingLineDash, parseLineSpacingMultiplier, parseLineSpacingExactPt, extractGuidFromPartName, deobfuscateFont, detectFontFormat, OOXML_PERCENT_UNITS, parseKinsoku, parseLineStyle, parseChartUpDownBars, parseDataTable, parseChart3DSurfaces, parseChartAxes, parseBubbleChartOptions, themeColorRefFromSchemeClr, parseChartLayouts, parseCxChartSeries, parseChartDataPointPictureBlipRel, parseSeriesTrendlines, parseSeriesErrBars, parseSeriesDataPoints, parseMarker, parseSeriesDataLabels, parseChartDataPointPicture, parseImplicitBlipPictureFill, parseEmbeddedXlsx, EMU_PER_POINT, parseDiagramRelationshipIds, parseSmartArtTextParagraphs, firstParagraphRuns, smartArtParagraphsText, parseSmartArtLayoutDefinition, parseSmartArtPresLayoutVars, readChartManualLayoutValues, parseSmartArtConnection, projectSmartArtNodeText, resolveSmartArtNodeStyleRoles, resolveSmartArtNodeCoherent3DOff, parseSmartArtDefinitionMetadata, parseSmartArtColorStyleLabels, buildSmartArtColorLists, buildSmartArtColorRoleMap, parseSmartArtQuickStyleLabels, resolveSmartArtEffectIntensity, parseSmartArtStyleLabelRefs, extractStyleReferenceColorXml, withThemePlaceholderColor, blendColorOntoWhite } from './chunk-R6KSBNKX.mjs';
1
+ import { SMART_ART_DEFINITION_PARTS, VML_SHAPE_TAGS, isAlternateContentChoiceXmlSupported, parseVmlElement, unwrapAlternateContent, xmlChild, xmlAttr, parseDrawingMediaReference, cropShapeForPresetGeometry, isHeaderFooterPlaceholder, xmlPath, inheritedPlaceholderFieldType, parseParagraphLevel, xmlHasChild, parseParagraphExtraAttributes, parseParagraphMargins, parseAlignmentAttr, parseParagraphRtl, parseTabStops, resolveParagraphAlignment, xmlText, parseBodyPrBooleanAttrs, selectAlternateContentBranch, parseBulletSizePercent, extractColorChoiceXml, themeColorRefFromColorChoice, formatAutoNumberMarker, cloneXmlObject, parseParagraphSpacingPx, parseOoxmlPercent, createBuiltinVariables, resolveCoordinate, readPathListCommandOrder, parseAdjustmentValues, parseGuideDefinitions, evaluateGuides, orderedPathCommandEntries, ooxmlArcToSvg, inheritCustomGeometryCommandOrder, parseInkMlContent, parseModel3DScene, remapElementShapeIds, parseShapeId, isTemplateElementId, remapShapeIdReferences, reapplyAlternateContentToTree, buildOle2, SHAPE_TREE_ELEMENT_TAGS, MAX_SHAPE_ID, orderedXmlKey, safeResolveZipPath, parseDataUrlToBytes, base64Decode, EMU_PER_PX, reorderObjectKeys, encodeCompressedPng, zlibStore, hash, concatArrays, encodePasswordUtf16LE, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, uint32LE, pptxActionToElementAction, buildClrMapOverrideXml, applyActiveXControlsToSlide, BLIP_FILL_ORDER, SP_PR_ORDER, ensureXmlChild, inkElementToStrokes, buildInkMlContent, ensureXmlChildOrCreate, isXmlNode, applyChartLayouts, stripXmlOrderSuffix, serializeTabStop, colorsEqual, generateFontGuid, applyBubbleChartOptions, applyChartUpDownBars, applyDataLabelsRangeToDLbls, applyChartAxisScaling, applyChartAxisLabelFormatting, upsertChartAxisChild, applyChartDateAxisUnits, applyChartAxisDisplayUnitsToXml, writeChartShapeProps, resolveTxPrDefRPr, buildDefRPrTextProperties, buildChartGradFillXml, applySeriesMarkerToXml, applySeriesDataPointsToXml, chartColorHex, applyChartManualLayout, buildTrendlineLabel, serializeColorChoice, replaceOleEmbedding, findKey, collectAllText, buildNodeGuidMap, buildPresentationGuidMap, regenerateSmartArtDrawingShapes, buildFabricatedDrawingXml, buildFabricatedDiagramDataXml, DIAGRAM_DRAWING_CONTENT_TYPE, DIAGRAM_DRAWING_REL_TYPE, applyDiagramRelationshipIds, applyDrawingMediaReference, XML_PROLOG, DGM_XMLNS, xmlEscape, writeBodyPrBooleanAttrs, applyTextBodySp3d, customGeometryPathsToXml, ensureArrayValue, lookupPresetShape, writeShapeEffects, SHAPE_STYLE_ORDER, roundCoordinate, scaleVectorToIntegers, EMU_PER_PIXEL, P14_GUIDE_URI, P15_GUIDE_URI, buildGuideListExtension, resetSpPrFormattingForStyleMatrix, restorePathListCommandOrder, fillIsPurelyStyleMatrix, serializeColorChoiceWithRef, createLineStyleGate, applyDrawingLineDash, getSignaturePathsToStrip, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, mergeSmartArtPointXml, mergeSmartArtConnectionXml, applySmartArtLayoutDefinition, obfuscateFont, containsConvertibleStrictNamespaceAttribute, convertXmlToStrict, applySeriesPictureOptionsToXml, findChartExtByUri, findChildByLocalName, regenerateClonedUniqueId, buildChartUniqueIdExtLst, createOfficeGuid, isContentPoint, newSmartArtGuid, parseChartUserShapesDrawing, DEFAULT_ROW_HEIGHT_EMU, createDefaultXmlCell, xmlChildren, applyChartGradientToSpPr, setAutoTitleDeleted, insertAt, replaceFirstText, shouldRebuildFromParagraphs, buildPointFromParagraphs, shouldRebuildFromRuns, buildPointFromRuns, buildPointText, tableCellTextBodyMatches, ensureXmlChildren, TC_PR_BORDERS_ORDER, writeChartColorChoice, stripParentDirSegments, parseChartUniqueId, buildChartMarkerXml, chartGradientsEqual, chartColorChoiceValue, preservesSpreadsheetXmlWhitespace, buildEffectDagTreeFromXml, syncPictureShapeTypeWithCropShape, buildSrgbColorChoice, fetchUrlToBytes, parseChartWideTextStyle, parseDefRPrTextStyle, parseChartDataLabelOptions, shadowOffsetToDistanceAndDirection, positiveFixedAngleAttribute, xmlAttrNumber, parseCustomShows, parseShapeProps, parseActiveXControlsFromSlide, convertMetafileToDataUrl, ooxmlGradientAngleToCssDegrees, isAlternateContentChoiceSupported, detectStrictConformance, normalizeStrictXml, relayoutSmartArt, themeColorRefToSolidFillWithOpacity, FONT_ADVANCE_TABLES, DEFAULT_FONT_ADVANCE_TABLE, measureTextWidth, applyDrawingColorTransforms, applyThemeToData, detectFileFormat, parseOle2, EncryptedFileError, decryptPptx, encryptPptx, IncorrectPasswordError, encodeXmlAttributeValue, encodeXmlTextValue, parseEncryptionInfo, RC4_ALG_ID, isOle2CompoundFile, ENTRY_TYPE_ROOT, svgToCustomGeometryPaths, captureStyleBaseline, STYLE_MATRIX_FILL_KEYS, STYLE_MATRIX_LINE_KEYS, STYLE_MATRIX_EFFECT_KEYS, decodeXmlEntities, preservesXmlWhitespace, annotateCustomGeometryCommandOrder, annotateSmartArtTextOrder, stripXmlOrderMarkers, normalizeStShapeType, applyCustomShows, applySections, reorderObjectKeysByLocalName, PRESENTATION_CHILD_ORDER, applyKinsokuToXml, normalizeNamespaceUri, detectOleObjectType, inferOleExtensionFromTarget, parsePresentationDrawingGuides, parsePresentationSmartTags, resolveLayoutDisplayName, deriveSlideTitles, parseP14DirectChild, parseP14FromExtLst, P14_TRANSITION_TYPES, parseSlideDrawingGuides, cloneSlide, parseDrawingFraction, scrgbLinearToSrgb8, SYSTEM_COLOR_MAP, PRESET_COLOR_MAP, parseDrawingHueDegrees, hslToRgb, themeColorRefToXml, effectChild, mergeEffectNode, mergeAttributeEffectNode, supportsChartGradientFill, DEFAULT_CHART_GRADIENT_ANGLE, detectDigitalSignatures, unwrapOleEmbedding, mimeTypeForOleFile, oleBytesToDataUrl, prismFamilyFlags, prismFamilyTypeOfNode, prismFamilyTypeForFlags, P14_DIR_IS_ORIENTATION_TYPE, estimateMediaDurationMs, parseVmlElements, parseDrawingLineDash, parseLineSpacingMultiplier, parseLineSpacingExactPt, extractGuidFromPartName, deobfuscateFont, detectFontFormat, OOXML_PERCENT_UNITS, parseKinsoku, parseLineStyle, parseChartUpDownBars, parseDataTable, parseChart3DSurfaces, parseChartAxes, parseBubbleChartOptions, themeColorRefFromSchemeClr, parseChartLayouts, parseCxChartSeries, parseChartDataPointPictureBlipRel, parseSeriesTrendlines, parseSeriesErrBars, parseSeriesDataPoints, parseMarker, parseSeriesDataLabels, parseChartDataPointPicture, parseImplicitBlipPictureFill, parseEmbeddedXlsx, EMU_PER_POINT, parseDiagramRelationshipIds, parseSmartArtTextParagraphs, firstParagraphRuns, smartArtParagraphsText, parseSmartArtLayoutDefinition, parseSmartArtPresLayoutVars, readChartManualLayoutValues, parseSmartArtConnection, projectSmartArtNodeText, resolveSmartArtNodeStyleRoles, resolveSmartArtNodeCoherent3DOff, parseSmartArtDefinitionMetadata, parseSmartArtColorStyleLabels, buildSmartArtColorLists, buildSmartArtColorRoleMap, parseSmartArtQuickStyleLabels, resolveSmartArtEffectIntensity, parseSmartArtStyleLabelRefs, extractStyleReferenceColorXml, withThemePlaceholderColor, blendColorOntoWhite } from './chunk-UAY26XOI.mjs';
2
+ import { hasShapeProperties, hasTextProperties } from './chunk-GXHKNSZX.mjs';
2
3
  import JSZip5 from 'jszip';
3
4
  import { DOMParser, XMLSerializer } from '@xmldom/xmldom';
4
5
  import { XMLParser, XMLBuilder } from 'fast-xml-parser';
@@ -17077,52 +17078,6 @@ function collectMediaNodes(node, animations) {
17077
17078
  }
17078
17079
  }
17079
17080
 
17080
- // pptx/core/services/animation-effect-filter-parsing.ts
17081
- var FILTER_TOKEN_RE = /^([A-Za-z]+)(?:\(([^)]*)\))?$/;
17082
- function parseFilterToken(raw) {
17083
- const trimmed2 = raw.trim();
17084
- if (!trimmed2) {
17085
- return void 0;
17086
- }
17087
- const match = FILTER_TOKEN_RE.exec(trimmed2);
17088
- if (!match) {
17089
- return void 0;
17090
- }
17091
- const family = match[1].toLowerCase();
17092
- const subtypeToken = match[2];
17093
- const subtype = subtypeToken !== void 0 && subtypeToken !== "" ? subtypeToken : void 0;
17094
- return { family, subtype };
17095
- }
17096
- function parseAnimEffectFilter(childTnList) {
17097
- if (!childTnList) {
17098
- return void 0;
17099
- }
17100
- const rawAnimEffect = childTnList["p:animEffect"];
17101
- const animEffect = Array.isArray(rawAnimEffect) ? rawAnimEffect[0] : rawAnimEffect;
17102
- if (!animEffect || typeof animEffect !== "object") {
17103
- return void 0;
17104
- }
17105
- const node = animEffect;
17106
- const filterAttr = node["@_filter"];
17107
- if (filterAttr === void 0 || filterAttr === null) {
17108
- return void 0;
17109
- }
17110
- const raw = String(filterAttr);
17111
- const firstToken = raw.split(";")[0] ?? "";
17112
- const parsed = parseFilterToken(firstToken);
17113
- if (!parsed) {
17114
- return void 0;
17115
- }
17116
- const transitionAttr = node["@_transition"];
17117
- const transition = transitionAttr === "in" || transitionAttr === "out" || transitionAttr === "none" ? transitionAttr : void 0;
17118
- return {
17119
- family: parsed.family,
17120
- subtype: parsed.subtype,
17121
- transition,
17122
- raw
17123
- };
17124
- }
17125
-
17126
17081
  // pptx/core/services/native-animation-cbhvr-attrs.ts
17127
17082
  var ADDITIVE_VALUES = /* @__PURE__ */ new Set(["base", "sum", "repl", "mult", "none"]);
17128
17083
  var ACCUMULATE_VALUES = /* @__PURE__ */ new Set(["none", "always"]);
@@ -17193,51 +17148,6 @@ function extractChildCalcMode(childTnList) {
17193
17148
  return void 0;
17194
17149
  }
17195
17150
 
17196
- // pptx/core/services/native-animation-attribute-components.ts
17197
- function extractBounceEndFraction(raw) {
17198
- if (raw === void 0) {
17199
- return void 0;
17200
- }
17201
- const parsed = Number(raw);
17202
- if (!Number.isFinite(parsed)) {
17203
- return void 0;
17204
- }
17205
- return Math.max(0, Math.min(1, parsed / 1e5));
17206
- }
17207
- function extractAttributeAnimations(childTnList) {
17208
- if (!childTnList) {
17209
- return void 0;
17210
- }
17211
- const components = [];
17212
- for (const node of ensureArray4(childTnList["p:anim"])) {
17213
- const attrName = extractAttrNameFromCBhvr(node["p:cBhvr"]);
17214
- const keyframes = extractKeyframes(node);
17215
- const from = node["@_from"] !== void 0 ? String(node["@_from"]) : void 0;
17216
- const to = node["@_to"] !== void 0 ? String(node["@_to"]) : void 0;
17217
- const by = node["@_by"] !== void 0 ? String(node["@_by"]) : void 0;
17218
- const hasKeyframes = Boolean(keyframes && keyframes.length > 0);
17219
- if (!attrName || !hasKeyframes && from === void 0 && to === void 0 && by === void 0) {
17220
- continue;
17221
- }
17222
- const behavior = node["p:cBhvr"];
17223
- const cTn = behavior?.["p:cTn"];
17224
- const calcMode = normalizeCalcMode(node["@_calcmode"]);
17225
- const bounceEnd = extractBounceEndFraction(node["@_p14:bounceEnd"]);
17226
- components.push({
17227
- attrName,
17228
- keyframes: keyframes ?? [],
17229
- durationMs: readTimingAttr(cTn?.["@_dur"]),
17230
- delayMs: cTn ? extractStartConditionDelayMs(cTn) : void 0,
17231
- ...calcMode ? { calcMode } : {},
17232
- ...from !== void 0 ? { from } : {},
17233
- ...to !== void 0 ? { to } : {},
17234
- ...by !== void 0 ? { by } : {},
17235
- ...bounceEnd !== void 0 ? { bounceEnd } : {}
17236
- });
17237
- }
17238
- return components.length > 0 ? components : void 0;
17239
- }
17240
-
17241
17151
  // pptx/core/services/native-animation-behaviors.ts
17242
17152
  var BEHAVIOR_TAGS = [
17243
17153
  "p:set",
@@ -17431,6 +17341,188 @@ function extractBehaviors(childTnList) {
17431
17341
  return behaviors.length > 0 ? behaviors : void 0;
17432
17342
  }
17433
17343
 
17344
+ // pptx/core/services/native-animation-visibility-timing.ts
17345
+ var neutralTiming = (node) => [
17346
+ "@_repeatDur",
17347
+ "@_tmFilter",
17348
+ "@_endSync",
17349
+ "@_evtFilter",
17350
+ "@_display",
17351
+ "@_masterRel",
17352
+ "@_syncBehavior",
17353
+ "@_nodePh",
17354
+ "@_progress",
17355
+ "@_p14:presetBounceEnd",
17356
+ "p:endCondLst",
17357
+ "p:endSync",
17358
+ "p:iterate"
17359
+ ].every((key2) => node[key2] === void 0) && (node["@_repeatCount"] === void 0 || String(node["@_repeatCount"]) === "1000") && (node["@_autoRev"] === void 0 || ["0", "false"].includes(String(node["@_autoRev"]))) && (node["@_spd"] === void 0 || String(node["@_spd"]) === "100000") && (node["@_accel"] === void 0 || String(node["@_accel"]) === "0") && (node["@_decel"] === void 0 || String(node["@_decel"]) === "0");
17360
+ function hasNativeVisibilitySet(node) {
17361
+ if (node["@_presetClass"] !== "entr" || String(node["@_presetID"]) !== "0") return false;
17362
+ const children5 = node["p:childTnLst"];
17363
+ if (!isXmlObject3(children5)) return false;
17364
+ return ensureArray4(children5["p:set"]).some((set) => {
17365
+ const common = set["p:cBhvr"];
17366
+ const list = isXmlObject3(common) ? common["p:attrNameLst"] : void 0;
17367
+ const names = isXmlObject3(list) ? list["p:attrName"] : void 0;
17368
+ return (Array.isArray(names) ? names : [names]).some(
17369
+ (name) => String(isXmlObject3(name) ? name["#text"] : name).trim().toLowerCase() === "style.visibility"
17370
+ );
17371
+ });
17372
+ }
17373
+ function simpleStarts(node, clickGate = false) {
17374
+ const list = node["p:stCondLst"];
17375
+ if (list === void 0) return true;
17376
+ if (!isXmlObject3(list) || Object.keys(list).some((key2) => key2 !== "p:cond")) return false;
17377
+ const conditions = ensureArray4(list["p:cond"]);
17378
+ return conditions.length === 1 && conditions.every(
17379
+ (condition) => Object.keys(condition).every((key2) => key2 === "@_delay") && (condition["@_delay"] === void 0 || /^\d+$/u.test(String(condition["@_delay"])) && Number.isSafeInteger(Number(condition["@_delay"])) && Number(condition["@_delay"]) <= 2147483647 || clickGate && condition["@_delay"] === "indefinite")
17380
+ );
17381
+ }
17382
+ function unsupportedVisibilityContainerTiming(node) {
17383
+ if (node["@_presetClass"] !== void 0) return false;
17384
+ const structuralRoot = ["tmRoot", "mainSeq"].includes(String(node["@_nodeType"] ?? ""));
17385
+ return !neutralTiming(node) || !simpleStarts(node, true) || ensureArray4(isXmlObject3(node["p:stCondLst"]) ? node["p:stCondLst"]["p:cond"] : void 0).some(
17386
+ (condition) => /^\d+$/u.test(String(condition["@_delay"])) && Number(condition["@_delay"]) > 0
17387
+ ) || node["@_dur"] !== void 0 && !(structuralRoot && node["@_dur"] === "indefinite") || node["@_fill"] !== void 0 && node["@_fill"] !== "hold" || node["p:subTnLst"] !== void 0;
17388
+ }
17389
+ function extractVisibilitySetTiming(node) {
17390
+ if (node["@_presetClass"] !== "entr" || String(node["@_presetID"]) !== "0" || String(node["@_presetSubtype"] ?? "0") !== "0" || node["@_dur"] !== void 0 || node["@_fill"] !== "hold" || !neutralTiming(node) || !simpleStarts(node))
17391
+ return void 0;
17392
+ const children5 = node["p:childTnLst"];
17393
+ if (!isXmlObject3(children5) || Object.keys(children5).length !== 1 || !children5["p:set"])
17394
+ return void 0;
17395
+ const sets = ensureArray4(children5["p:set"]);
17396
+ if (sets.length !== 1) return void 0;
17397
+ if (Object.keys(sets[0]).some((key2) => !["p:cBhvr", "p:to"].includes(key2))) return void 0;
17398
+ const to = sets[0]["p:to"];
17399
+ if (!isXmlObject3(to) || Object.keys(to).length !== 1 || !isXmlObject3(to["p:strVal"]) || Object.keys(to["p:strVal"]).some((key2) => key2 !== "@_val") || to["p:strVal"]["@_val"] !== "visible")
17400
+ return void 0;
17401
+ const common = sets[0]["p:cBhvr"];
17402
+ if (!isXmlObject3(common) || Object.keys(common).some(
17403
+ (key2) => !["p:cTn", "p:tgtEl", "p:attrNameLst", "@_additive"].includes(key2)
17404
+ ) || common["@_additive"] !== void 0 && !["base", "repl", "none"].includes(String(common["@_additive"])))
17405
+ return void 0;
17406
+ const target = common["p:tgtEl"];
17407
+ if (!isXmlObject3(target) || Object.keys(target).length !== 1 || !isXmlObject3(target["p:spTgt"]) || Object.keys(target["p:spTgt"]).some((key2) => key2 !== "@_spid") || !/^\d+$/u.test(String(target["p:spTgt"]["@_spid"])))
17408
+ return void 0;
17409
+ const child14 = common["p:cTn"];
17410
+ if (!isXmlObject3(child14) || !neutralTiming(child14) || !simpleStarts(child14) || String(child14["@_dur"]) !== "1" || child14["@_fill"] !== "hold")
17411
+ return void 0;
17412
+ const behavior = extractBehaviors(children5)?.[0];
17413
+ if (!behavior || behavior.kind !== "set" || behavior.value !== "visible" || behavior.attrNames.length !== 1 || behavior.attrNames[0] !== "style.visibility" || behavior.timing.unsupportedSetTiming)
17414
+ return void 0;
17415
+ try {
17416
+ assertAfterAnimationClearSupported(node);
17417
+ } catch {
17418
+ return void 0;
17419
+ }
17420
+ const sub = node["p:subTnLst"];
17421
+ if (sub !== void 0) {
17422
+ if (!isXmlObject3(sub)) return void 0;
17423
+ for (const [key2, raw] of Object.entries(sub)) {
17424
+ for (const value of ensureArray4(raw)) {
17425
+ if (!extractAfterAnimationFromSubTnLst({ "p:subTnLst": { [key2]: value } }))
17426
+ return void 0;
17427
+ }
17428
+ }
17429
+ }
17430
+ const delayMs = behavior.timing.delayMs ?? 0;
17431
+ if (!Number.isSafeInteger(delayMs) || delayMs < 0 || delayMs >= 2147483647) return void 0;
17432
+ return { delayMs, durationMs: 1 };
17433
+ }
17434
+
17435
+ // pptx/core/services/animation-effect-filter-parsing.ts
17436
+ var FILTER_TOKEN_RE = /^([A-Za-z]+)(?:\(([^)]*)\))?$/;
17437
+ function parseFilterToken(raw) {
17438
+ const trimmed2 = raw.trim();
17439
+ if (!trimmed2) {
17440
+ return void 0;
17441
+ }
17442
+ const match = FILTER_TOKEN_RE.exec(trimmed2);
17443
+ if (!match) {
17444
+ return void 0;
17445
+ }
17446
+ const family = match[1].toLowerCase();
17447
+ const subtypeToken = match[2];
17448
+ const subtype = subtypeToken !== void 0 && subtypeToken !== "" ? subtypeToken : void 0;
17449
+ return { family, subtype };
17450
+ }
17451
+ function parseAnimEffectFilter(childTnList) {
17452
+ if (!childTnList) {
17453
+ return void 0;
17454
+ }
17455
+ const rawAnimEffect = childTnList["p:animEffect"];
17456
+ const animEffect = Array.isArray(rawAnimEffect) ? rawAnimEffect[0] : rawAnimEffect;
17457
+ if (!animEffect || typeof animEffect !== "object") {
17458
+ return void 0;
17459
+ }
17460
+ const node = animEffect;
17461
+ const filterAttr = node["@_filter"];
17462
+ if (filterAttr === void 0 || filterAttr === null) {
17463
+ return void 0;
17464
+ }
17465
+ const raw = String(filterAttr);
17466
+ const firstToken = raw.split(";")[0] ?? "";
17467
+ const parsed = parseFilterToken(firstToken);
17468
+ if (!parsed) {
17469
+ return void 0;
17470
+ }
17471
+ const transitionAttr = node["@_transition"];
17472
+ const transition = transitionAttr === "in" || transitionAttr === "out" || transitionAttr === "none" ? transitionAttr : void 0;
17473
+ return {
17474
+ family: parsed.family,
17475
+ subtype: parsed.subtype,
17476
+ transition,
17477
+ raw
17478
+ };
17479
+ }
17480
+
17481
+ // pptx/core/services/native-animation-attribute-components.ts
17482
+ function extractBounceEndFraction(raw) {
17483
+ if (raw === void 0) {
17484
+ return void 0;
17485
+ }
17486
+ const parsed = Number(raw);
17487
+ if (!Number.isFinite(parsed)) {
17488
+ return void 0;
17489
+ }
17490
+ return Math.max(0, Math.min(1, parsed / 1e5));
17491
+ }
17492
+ function extractAttributeAnimations(childTnList) {
17493
+ if (!childTnList) {
17494
+ return void 0;
17495
+ }
17496
+ const components = [];
17497
+ for (const node of ensureArray4(childTnList["p:anim"])) {
17498
+ const attrName = extractAttrNameFromCBhvr(node["p:cBhvr"]);
17499
+ const keyframes = extractKeyframes(node);
17500
+ const from = node["@_from"] !== void 0 ? String(node["@_from"]) : void 0;
17501
+ const to = node["@_to"] !== void 0 ? String(node["@_to"]) : void 0;
17502
+ const by = node["@_by"] !== void 0 ? String(node["@_by"]) : void 0;
17503
+ const hasKeyframes = Boolean(keyframes && keyframes.length > 0);
17504
+ if (!attrName || !hasKeyframes && from === void 0 && to === void 0 && by === void 0) {
17505
+ continue;
17506
+ }
17507
+ const behavior = node["p:cBhvr"];
17508
+ const cTn = behavior?.["p:cTn"];
17509
+ const calcMode = normalizeCalcMode(node["@_calcmode"]);
17510
+ const bounceEnd = extractBounceEndFraction(node["@_p14:bounceEnd"]);
17511
+ components.push({
17512
+ attrName,
17513
+ keyframes: keyframes ?? [],
17514
+ durationMs: readTimingAttr(cTn?.["@_dur"]),
17515
+ delayMs: cTn ? extractStartConditionDelayMs(cTn) : void 0,
17516
+ ...calcMode ? { calcMode } : {},
17517
+ ...from !== void 0 ? { from } : {},
17518
+ ...to !== void 0 ? { to } : {},
17519
+ ...by !== void 0 ? { by } : {},
17520
+ ...bounceEnd !== void 0 ? { bounceEnd } : {}
17521
+ });
17522
+ }
17523
+ return components.length > 0 ? components : void 0;
17524
+ }
17525
+
17434
17526
  // pptx/core/services/native-animation-child-timing.ts
17435
17527
  var PRIMARY_BEHAVIOUR_FAMILIES = [
17436
17528
  ["p:animMotion", "p:animRot", "p:animScale"],
@@ -17547,12 +17639,13 @@ function resolveNodeTrigger(cTn, currentTrigger) {
17547
17639
  }
17548
17640
  return trigger;
17549
17641
  }
17550
- function buildTimingNodeAnimation(cTn, trigger, group) {
17642
+ function buildTimingNodeAnimation(cTn, trigger, group, unsupportedVisibilityAncestor = false) {
17551
17643
  const presetClass = cTn["@_presetClass"];
17552
- const presetId = cTn["@_presetID"] ? Number.parseInt(String(cTn["@_presetID"]), 10) : void 0;
17644
+ const presetId = cTn["@_presetID"] !== void 0 ? Number.parseInt(String(cTn["@_presetID"]), 10) : void 0;
17553
17645
  const presetSubtype = cTn["@_presetSubtype"] !== void 0 ? Number.parseInt(String(cTn["@_presetSubtype"]), 10) : void 0;
17554
17646
  const childAutoReverseTiming = extractChildAutoReverseTiming(cTn, ensureArray4);
17555
- const durationMs = readTimingAttr(cTn["@_dur"]) ?? childAutoReverseTiming?.durationMs ?? extractChildBehaviourDurationMs(cTn, ensureArray4);
17647
+ const visibilitySetTiming = !unsupportedVisibilityAncestor && group.seqConcurrent === true && group.seqNextAction === "seek" && ["onClick", "withPrevious"].includes(trigger) ? extractVisibilitySetTiming(cTn) : void 0;
17648
+ const durationMs = readTimingAttr(cTn["@_dur"]) ?? childAutoReverseTiming?.durationMs ?? extractChildBehaviourDurationMs(cTn, ensureArray4) ?? (visibilitySetTiming ? visibilitySetTiming.delayMs + visibilitySetTiming.durationMs : void 0);
17556
17649
  const delayMs = readTimingAttr(cTn["@_delay"]) ?? extractStartConditionDelayMs(cTn);
17557
17650
  const accel = parseTimingPercentFraction(cTn["@_accel"]);
17558
17651
  const decel = parseTimingPercentFraction(cTn["@_decel"]);
@@ -17603,6 +17696,8 @@ function buildTimingNodeAnimation(cTn, trigger, group) {
17603
17696
  presetId,
17604
17697
  presetSubtype,
17605
17698
  durationMs,
17699
+ visibilitySetTiming,
17700
+ unsupportedVisibilitySet: hasNativeVisibilitySet(cTn) && !visibilitySetTiming || void 0,
17606
17701
  delayMs,
17607
17702
  accel,
17608
17703
  decel,
@@ -17687,17 +17782,18 @@ function extractTextTargetFromCTn(cTn) {
17687
17782
  }
17688
17783
 
17689
17784
  // pptx/core/services/native-animation-timing-walk.ts
17690
- function walkTimingTree(node, animations, currentTrigger, group, ctx) {
17785
+ function walkTimingTree(node, animations, currentTrigger, group, ctx, unsupportedVisibilityAncestor = false) {
17691
17786
  if (!node) {
17692
17787
  return;
17693
17788
  }
17694
17789
  const cTn = node["p:cTn"];
17695
17790
  if (cTn) {
17696
17791
  const trigger = resolveNodeTrigger(cTn, currentTrigger);
17697
- const animation = buildTimingNodeAnimation(cTn, trigger, group);
17792
+ const animation = buildTimingNodeAnimation(cTn, trigger, group, unsupportedVisibilityAncestor);
17698
17793
  if (animation) {
17699
17794
  animations.push(animation);
17700
17795
  }
17796
+ const unsupportedChildVisibility = unsupportedVisibilityAncestor || unsupportedVisibilityContainerTiming(cTn);
17701
17797
  const childTnList = cTn["p:childTnLst"];
17702
17798
  if (childTnList) {
17703
17799
  const isClickLevel = isMainSequence(cTn);
@@ -17717,7 +17813,8 @@ function walkTimingTree(node, animations, currentTrigger, group, ctx) {
17717
17813
  id: String(mainSequenceId)
17718
17814
  } : void 0
17719
17815
  }),
17720
- ctx
17816
+ ctx,
17817
+ unsupportedChildVisibility
17721
17818
  );
17722
17819
  }
17723
17820
  for (const sequence of sequences) {
@@ -17725,11 +17822,18 @@ function walkTimingTree(node, animations, currentTrigger, group, ctx) {
17725
17822
  continue;
17726
17823
  }
17727
17824
  const seqAttrs = extractSeqAttrs(sequence);
17728
- walkTimingTree(sequence, animations, trigger, { ...group, ...seqAttrs }, ctx);
17825
+ walkTimingTree(
17826
+ sequence,
17827
+ animations,
17828
+ trigger,
17829
+ { ...group, ...seqAttrs },
17830
+ ctx,
17831
+ unsupportedChildVisibility
17832
+ );
17729
17833
  }
17730
17834
  for (const excl of exclusives) {
17731
17835
  const exclAnims = [];
17732
- walkTimingTree(excl, exclAnims, trigger, group, ctx);
17836
+ walkTimingTree(excl, exclAnims, trigger, group, ctx, true);
17733
17837
  const exclGroupId = ctx.allocateExclGroupId();
17734
17838
  for (const a of exclAnims) {
17735
17839
  a.exclusive = true;
@@ -17749,7 +17853,8 @@ function walkTimingTree(node, animations, currentTrigger, group, ctx) {
17749
17853
  childGroupContext(group, parallel["p:cTn"], {
17750
17854
  isClickLevelGroup: false
17751
17855
  }),
17752
- ctx
17856
+ ctx,
17857
+ unsupportedVisibilityAncestor
17753
17858
  );
17754
17859
  }
17755
17860
  for (const sequence of directSequences) {
@@ -17757,7 +17862,14 @@ function walkTimingTree(node, animations, currentTrigger, group, ctx) {
17757
17862
  continue;
17758
17863
  }
17759
17864
  const seqAttrs = extractSeqAttrs(sequence);
17760
- walkTimingTree(sequence, animations, currentTrigger, { ...group, ...seqAttrs }, ctx);
17865
+ walkTimingTree(
17866
+ sequence,
17867
+ animations,
17868
+ currentTrigger,
17869
+ { ...group, ...seqAttrs },
17870
+ ctx,
17871
+ unsupportedVisibilityAncestor
17872
+ );
17761
17873
  }
17762
17874
  }
17763
17875
 
@@ -75020,6 +75132,36 @@ var PptxHandlerRuntime65 = class _PptxHandlerRuntime extends PptxHandlerRuntime6
75020
75132
  )
75021
75133
  );
75022
75134
  const pPr = this.mergeXmlObjects(lstStyleParagraphDefaults, directPPr);
75135
+ if (!textStyle.inheritedParagraphSpacing) {
75136
+ textStyle.inheritedParagraphSpacing = {};
75137
+ for (let spacingLevel = 0; spacingLevel < 9; spacingLevel++) {
75138
+ const key2 = `a:lvl${spacingLevel + 1}pPr`;
75139
+ const defaults = this.mergeXmlObjects(
75140
+ this.mergeXmlObjects(
75141
+ inheritedLstStyle?.["a:defPPr"],
75142
+ inheritedLstStyle?.[key2]
75143
+ ),
75144
+ this.mergeXmlObjects(
75145
+ ownLstStyle?.["a:defPPr"],
75146
+ ownLstStyle?.[key2]
75147
+ )
75148
+ );
75149
+ const inherited = this.mergeXmlObjects(
75150
+ defaults,
75151
+ inheritedParagraph?.["a:pPr"]
75152
+ );
75153
+ const spacing = this.extractParagraphOwnProperties({ "a:pPr": inherited }, textStyle.fontSize) ?? {};
75154
+ const phLevel = ctx.effectiveLevelStyles?.[spacingLevel];
75155
+ const phBase = ctx.effectiveLevelStyles?.[-1];
75156
+ if (phLevel) this.applyPlaceholderLevelDefaults(spacing, phLevel);
75157
+ if (phBase) this.applyPlaceholderLevelDefaults(spacing, phBase);
75158
+ textStyle.inheritedParagraphSpacing[spacingLevel] = {
75159
+ paragraphSpacingBefore: spacing.paragraphSpacingBefore ?? 0,
75160
+ paragraphSpacingAfter: spacing.paragraphSpacingAfter ?? 0,
75161
+ ...spacing.lineSpacingExactPt !== void 0 ? { lineSpacingExactPt: spacing.lineSpacingExactPt } : { lineSpacing: spacing.lineSpacing ?? 1 }
75162
+ };
75163
+ }
75164
+ }
75023
75165
  const paragraphRtl = this.parseOptionalBooleanAttr(pPr?.["@_rtl"]);
75024
75166
  if (paragraphRtl !== void 0 && textStyle.rtl === void 0) {
75025
75167
  textStyle.rtl = paragraphRtl;
@@ -1 +1 @@
1
- {"version":3,"file":"flow-table.d.ts","sourceRoot":"","sources":["../../../docx/layout/flow-table.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAkB,MAAM,SAAS,CAAC;AAG3D;;;;;;GAMG;AACH,wBAAgB,UAAU,CACzB,MAAM,EAAE,UAAU,EAClB,KAAK,EAAE,WAAW,EAClB,QAAQ,EAAE,YAAY,EACtB,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,EAC/B,gBAAgB,CAAC,EAAE,kBAAkB,GACnC,IAAI,CA8QN"}
1
+ {"version":3,"file":"flow-table.d.ts","sourceRoot":"","sources":["../../../docx/layout/flow-table.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAkB,MAAM,SAAS,CAAC;AAG3D;;;;;;GAMG;AACH,wBAAgB,UAAU,CACzB,MAAM,EAAE,UAAU,EAClB,KAAK,EAAE,WAAW,EAClB,QAAQ,EAAE,YAAY,EACtB,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,EAC/B,gBAAgB,CAAC,EAAE,kBAAkB,GACnC,IAAI,CAiSN"}