ooxml-core 1.50.2 → 1.51.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/dist/{PptxHandler-PVQW47CY.mjs → PptxHandler-6GRVJRHP.mjs} +2 -2
- package/dist/PptxHandler-E6QYPF7X.mjs +8 -0
- package/dist/PptxHandler-UNQVCIGM.cjs +17 -0
- package/dist/PresentationBuilder-DVDJSV5R.mjs +8 -0
- package/dist/PresentationBuilder-F5UWRF6H.cjs +25 -0
- package/dist/{PresentationBuilder-ZOOVSBPR.mjs → PresentationBuilder-T6YKWPF7.mjs} +2 -2
- package/dist/automation/index.cjs +5806 -4494
- package/dist/automation/index.mjs +5806 -4494
- package/dist/chunk-25IJEN7R.cjs +36 -0
- package/dist/chunk-25JN3ZQM.mjs +58 -0
- package/dist/{chunk-7XYVFUB3.cjs → chunk-2IO523MM.cjs} +1 -0
- package/dist/{chunk-53KMIHYN.mjs → chunk-4LUZHBTT.mjs} +83 -31
- package/dist/chunk-554UZLPS.mjs +237 -0
- package/dist/{chunk-VLKUMQGT.mjs → chunk-63RAF3TS.mjs} +1 -1
- package/dist/{chunk-7UM5IFPR.mjs → chunk-6IUYKP77.mjs} +1 -1
- package/dist/{chunk-VK2G4BGX.mjs → chunk-BIMV5FVL.mjs} +481 -193
- package/dist/{chunk-CODMW5KF.cjs → chunk-CVUMILG3.cjs} +1 -0
- package/dist/{chunk-NBMXEVHL.mjs → chunk-FX6WL42B.mjs} +1 -0
- package/dist/chunk-GI4Y6BBX.mjs +21 -0
- package/dist/{chunk-MX2GFMZS.mjs → chunk-GZL4ERW3.mjs} +1 -1
- package/dist/chunk-HWL2AGLD.cjs +98 -0
- package/dist/chunk-HZAB3YDO.cjs +234 -0
- package/dist/chunk-IDATIFCG.mjs +226 -0
- package/dist/chunk-LO55N7VL.cjs +247 -0
- package/dist/{chunk-FFLU4LUQ.cjs → chunk-LUBPW5NP.cjs} +1629 -1609
- package/dist/chunk-MUNEIE2J.cjs +62 -0
- package/dist/{chunk-ZCKEKP7N.mjs → chunk-RYUADJV6.mjs} +4 -4
- package/dist/chunk-TOBK5FC4.mjs +88 -0
- package/dist/chunk-UV4LMGVZ.mjs +31 -0
- package/dist/{chunk-O3YGBYGZ.mjs → chunk-VRVHM6TJ.mjs} +1 -0
- package/dist/chunk-W7LVJC32.cjs +25 -0
- package/dist/chunk-WAZ7T2BL.cjs +169 -0
- package/dist/{chunk-3OKY56UM.mjs → chunk-YX33WEKS.mjs} +411 -391
- package/dist/docx/auto-number-fields.d.ts +22 -0
- package/dist/docx/auto-number-fields.d.ts.map +1 -0
- package/dist/docx/block-parser.d.ts.map +1 -1
- package/dist/docx/character-styles.d.ts.map +1 -1
- package/dist/docx/clipboard/css.d.ts +21 -0
- package/dist/docx/clipboard/css.d.ts.map +1 -0
- package/dist/docx/clipboard/html-tokens.d.ts +38 -0
- package/dist/docx/clipboard/html-tokens.d.ts.map +1 -0
- package/dist/docx/clipboard/index.d.ts +6 -0
- package/dist/docx/clipboard/index.d.ts.map +1 -0
- package/dist/docx/clipboard/word-fields.d.ts +13 -0
- package/dist/docx/clipboard/word-fields.d.ts.map +1 -0
- package/dist/docx/clipboard/word-fragment.d.ts +14 -0
- package/dist/docx/clipboard/word-fragment.d.ts.map +1 -0
- package/dist/docx/clipboard/word-html.d.ts +22 -0
- package/dist/docx/clipboard/word-html.d.ts.map +1 -0
- package/dist/docx/clipboard/word-list-scan.d.ts +25 -0
- package/dist/docx/clipboard/word-list-scan.d.ts.map +1 -0
- package/dist/docx/clipboard/word-lists.d.ts +13 -0
- package/dist/docx/clipboard/word-lists.d.ts.map +1 -0
- package/dist/docx/clipboard/word-runs.d.ts +18 -0
- package/dist/docx/clipboard/word-runs.d.ts.map +1 -0
- package/dist/docx/clipboard/word-styles.d.ts +35 -0
- package/dist/docx/clipboard/word-styles.d.ts.map +1 -0
- package/dist/docx/compare/build.d.ts +48 -0
- package/dist/docx/compare/build.d.ts.map +1 -0
- package/dist/docx/compare/compare.d.ts +18 -0
- package/dist/docx/compare/compare.d.ts.map +1 -0
- package/dist/docx/compare/context.d.ts +42 -0
- package/dist/docx/compare/context.d.ts.map +1 -0
- package/dist/docx/compare/diff.d.ts +20 -0
- package/dist/docx/compare/diff.d.ts.map +1 -0
- package/dist/docx/compare/index.d.ts +4 -0
- package/dist/docx/compare/index.d.ts.map +1 -0
- package/dist/docx/compare/slide.d.ts +9 -0
- package/dist/docx/compare/slide.d.ts.map +1 -0
- package/dist/docx/compare/spans.d.ts +13 -0
- package/dist/docx/compare/spans.d.ts.map +1 -0
- package/dist/docx/compare/story.d.ts +7 -0
- package/dist/docx/compare/story.d.ts.map +1 -0
- package/dist/docx/compare/table.d.ts +23 -0
- package/dist/docx/compare/table.d.ts.map +1 -0
- package/dist/docx/compare/tokens.d.ts +50 -0
- package/dist/docx/compare/tokens.d.ts.map +1 -0
- package/dist/docx/compare/types.d.ts +51 -0
- package/dist/docx/compare/types.d.ts.map +1 -0
- package/dist/docx/compatibility.d.ts +46 -0
- package/dist/docx/compatibility.d.ts.map +1 -0
- package/dist/docx/computed-fields.d.ts +39 -0
- package/dist/docx/computed-fields.d.ts.map +1 -0
- package/dist/docx/doc-property-field.d.ts +17 -0
- package/dist/docx/doc-property-field.d.ts.map +1 -0
- package/dist/docx/document-parts.d.ts +2 -0
- package/dist/docx/document-parts.d.ts.map +1 -1
- package/dist/docx/drawing-wrap.d.ts +21 -0
- package/dist/docx/drawing-wrap.d.ts.map +1 -0
- package/dist/docx/drawing.d.ts.map +1 -1
- package/dist/docx/embedded.cjs +3965 -2313
- package/dist/docx/embedded.mjs +3965 -2313
- package/dist/docx/field-format.d.ts +45 -0
- package/dist/docx/field-format.d.ts.map +1 -0
- package/dist/docx/field-result-spans.d.ts +62 -0
- package/dist/docx/field-result-spans.d.ts.map +1 -0
- package/dist/docx/field-runs.d.ts.map +1 -1
- package/dist/docx/field-stories.d.ts +9 -0
- package/dist/docx/field-stories.d.ts.map +1 -0
- package/dist/docx/find-stories.d.ts +27 -0
- package/dist/docx/find-stories.d.ts.map +1 -0
- package/dist/docx/highlight.d.ts +19 -0
- package/dist/docx/highlight.d.ts.map +1 -1
- package/dist/docx/hyperlink.d.ts +7 -0
- package/dist/docx/hyperlink.d.ts.map +1 -1
- package/dist/docx/index.cjs +7359 -3476
- package/dist/docx/index.d.ts +13 -1
- package/dist/docx/index.d.ts.map +1 -1
- package/dist/docx/index.mjs +7327 -3476
- package/dist/docx/inline-model.d.ts +21 -0
- package/dist/docx/inline-model.d.ts.map +1 -1
- package/dist/docx/inline-slots.d.ts.map +1 -1
- package/dist/docx/inspect-document.d.ts +21 -0
- package/dist/docx/inspect-document.d.ts.map +1 -0
- package/dist/docx/kinsoku-settings.d.ts +9 -0
- package/dist/docx/kinsoku-settings.d.ts.map +1 -0
- package/dist/docx/layout/adapt-table-floating.d.ts +11 -0
- package/dist/docx/layout/adapt-table-floating.d.ts.map +1 -0
- package/dist/docx/layout/adapt-table.d.ts.map +1 -1
- package/dist/docx/layout/adapter.d.ts.map +1 -1
- package/dist/docx/layout/computed-field-runs.d.ts +8 -0
- package/dist/docx/layout/computed-field-runs.d.ts.map +1 -0
- package/dist/docx/layout/floats.d.ts +3 -1
- package/dist/docx/layout/floats.d.ts.map +1 -1
- package/dist/docx/layout/flow-floating-table.d.ts +13 -0
- package/dist/docx/layout/flow-floating-table.d.ts.map +1 -0
- package/dist/docx/layout/flow-table.d.ts +1 -1
- package/dist/docx/layout/flow-table.d.ts.map +1 -1
- package/dist/docx/layout/index.cjs +2280 -941
- package/dist/docx/layout/index.mjs +2276 -942
- package/dist/docx/layout/input.d.ts +50 -0
- package/dist/docx/layout/input.d.ts.map +1 -1
- package/dist/docx/layout/layout.d.ts.map +1 -1
- package/dist/docx/layout/page-cursor.d.ts.map +1 -1
- package/dist/docx/layout/page-flow.d.ts.map +1 -1
- package/dist/docx/layout/paragraph-layout.d.ts.map +1 -1
- package/dist/docx/layout/paragraph-tokens.d.ts +6 -0
- package/dist/docx/layout/paragraph-tokens.d.ts.map +1 -1
- package/dist/docx/layout/result.d.ts +12 -0
- package/dist/docx/layout/result.d.ts.map +1 -1
- package/dist/docx/layout/section-flow.d.ts.map +1 -1
- package/dist/docx/layout/table-autofit-distribute.d.ts +18 -0
- package/dist/docx/layout/table-autofit-distribute.d.ts.map +1 -0
- package/dist/docx/layout/table-autofit-measure.d.ts +15 -0
- package/dist/docx/layout/table-autofit-measure.d.ts.map +1 -0
- package/dist/docx/layout/table-autofit.d.ts +10 -0
- package/dist/docx/layout/table-autofit.d.ts.map +1 -0
- package/dist/docx/layout/table-cell-layout.d.ts.map +1 -1
- package/dist/docx/layout/text-breaks.d.ts +38 -13
- package/dist/docx/layout/text-breaks.d.ts.map +1 -1
- package/dist/docx/layout/wrap.d.ts +1 -1
- package/dist/docx/layout/wrap.d.ts.map +1 -1
- package/dist/docx/list-number-fields.d.ts +25 -0
- package/dist/docx/list-number-fields.d.ts.map +1 -0
- package/dist/docx/load/index.cjs +4355 -2703
- package/dist/docx/load/index.mjs +4355 -2703
- package/dist/docx/model-paragraph.d.ts +12 -1
- package/dist/docx/model-paragraph.d.ts.map +1 -1
- package/dist/docx/model.d.ts +26 -1
- package/dist/docx/model.d.ts.map +1 -1
- package/dist/docx/note-convert.d.ts +45 -0
- package/dist/docx/note-convert.d.ts.map +1 -0
- package/dist/docx/numbering-counters.d.ts +17 -0
- package/dist/docx/numbering-counters.d.ts.map +1 -0
- package/dist/docx/numbering-format.d.ts +11 -2
- package/dist/docx/numbering-format.d.ts.map +1 -1
- package/dist/docx/outline-numbering.d.ts +6 -0
- package/dist/docx/outline-numbering.d.ts.map +1 -0
- package/dist/docx/package-information-save.d.ts +9 -0
- package/dist/docx/package-information-save.d.ts.map +1 -0
- package/dist/docx/package-information.d.ts +43 -0
- package/dist/docx/package-information.d.ts.map +1 -0
- package/dist/docx/package-properties.d.ts +5 -0
- package/dist/docx/package-properties.d.ts.map +1 -0
- package/dist/docx/paragraph-styles.d.ts +2 -0
- package/dist/docx/paragraph-styles.d.ts.map +1 -1
- package/dist/docx/parse-revisions.d.ts +2 -0
- package/dist/docx/parse-revisions.d.ts.map +1 -1
- package/dist/docx/parse-table-floating.d.ts +5 -0
- package/dist/docx/parse-table-floating.d.ts.map +1 -0
- package/dist/docx/parse-table.d.ts.map +1 -1
- package/dist/docx/parse.d.ts.map +1 -1
- package/dist/docx/part-relationships.d.ts.map +1 -1
- package/dist/docx/personal-information.d.ts +18 -0
- package/dist/docx/personal-information.d.ts.map +1 -0
- package/dist/docx/picture-crop-edit.d.ts +18 -0
- package/dist/docx/picture-crop-edit.d.ts.map +1 -0
- package/dist/docx/picture-watermark.d.ts +29 -0
- package/dist/docx/picture-watermark.d.ts.map +1 -0
- package/dist/docx/relationship-allocator.d.ts.map +1 -1
- package/dist/docx/remove-document-information.d.ts +8 -0
- package/dist/docx/remove-document-information.d.ts.map +1 -0
- package/dist/docx/revision-commands.d.ts +6 -1
- package/dist/docx/revision-commands.d.ts.map +1 -1
- package/dist/docx/revision-ids.d.ts.map +1 -1
- package/dist/docx/run-language.d.ts +9 -0
- package/dist/docx/run-language.d.ts.map +1 -0
- package/dist/docx/run-properties-snapshot.d.ts +9 -0
- package/dist/docx/run-properties-snapshot.d.ts.map +1 -0
- package/dist/docx/run-style-model.d.ts +4 -0
- package/dist/docx/run-style-model.d.ts.map +1 -1
- package/dist/docx/save-modified.d.ts +2 -1
- package/dist/docx/save-modified.d.ts.map +1 -1
- package/dist/docx/save.d.ts.map +1 -1
- package/dist/docx/style-ref-fields.d.ts +1 -8
- package/dist/docx/style-ref-fields.d.ts.map +1 -1
- package/dist/docx/symbol-field.d.ts +21 -0
- package/dist/docx/symbol-field.d.ts.map +1 -0
- package/dist/docx/table-cell-write.d.ts.map +1 -1
- package/dist/docx/table-defaults.d.ts +2 -0
- package/dist/docx/table-defaults.d.ts.map +1 -1
- package/dist/docx/table-margins.d.ts +18 -0
- package/dist/docx/table-margins.d.ts.map +1 -0
- package/dist/docx/table-model.d.ts +23 -0
- package/dist/docx/table-model.d.ts.map +1 -1
- package/dist/docx/table-structure-check.d.ts.map +1 -1
- package/dist/docx/table-styles.d.ts.map +1 -1
- package/dist/docx/ui/index.cjs +787 -435
- package/dist/docx/ui/index.d.ts +1 -0
- package/dist/docx/ui/index.d.ts.map +1 -1
- package/dist/docx/ui/index.mjs +784 -436
- package/dist/docx/ui/inline-content-schema.d.ts.map +1 -1
- package/dist/docx/ui/paragraph-attributes.d.ts +6 -0
- package/dist/docx/ui/paragraph-attributes.d.ts.map +1 -1
- package/dist/docx/ui/ribbon-action-ids.d.ts +1 -1
- package/dist/docx/ui/ribbon-action-ids.d.ts.map +1 -1
- package/dist/docx/ui/ribbon-legacy-labels.d.ts +1 -1
- package/dist/docx/ui/ribbon-legacy-labels.d.ts.map +1 -1
- package/dist/docx/ui/run-adapter.d.ts.map +1 -1
- package/dist/docx/ui/schema-marks.d.ts +2 -19
- package/dist/docx/ui/schema-marks.d.ts.map +1 -1
- package/dist/docx/ui/track-run-formatting.d.ts.map +1 -1
- package/dist/docx/ui/yjs-document-attributes.d.ts +5 -0
- package/dist/docx/ui/yjs-document-attributes.d.ts.map +1 -1
- package/dist/docx/write-drawing-wrap.d.ts +22 -0
- package/dist/docx/write-drawing-wrap.d.ts.map +1 -0
- package/dist/docx/write-drawing.d.ts.map +1 -1
- package/dist/docx/write-revisions.d.ts +3 -1
- package/dist/docx/write-revisions.d.ts.map +1 -1
- package/dist/docx/write-shape.d.ts.map +1 -1
- package/dist/docx/write-table-properties.d.ts.map +1 -1
- package/dist/docx/write.d.ts.map +1 -1
- package/dist/drawingml/html-text-paste.d.ts +28 -0
- package/dist/drawingml/html-text-paste.d.ts.map +1 -0
- package/dist/drawingml/html-text-style.d.ts +18 -0
- package/dist/drawingml/html-text-style.d.ts.map +1 -0
- package/dist/drawingml/index.cjs +762 -0
- package/dist/drawingml/index.d.ts +1 -0
- package/dist/drawingml/index.d.ts.map +1 -1
- package/dist/drawingml/index.mjs +760 -1
- package/dist/index.cjs +1237 -285
- package/dist/index.mjs +1237 -285
- package/dist/pptx/automation/index.cjs +561 -180
- package/dist/pptx/automation/index.d.ts +4 -4
- package/dist/pptx/automation/index.mjs +6 -5
- package/dist/pptx/chunks/{index-BCy58n13.d.ts → index-8ZfPndYR.d.ts} +2 -2
- package/dist/pptx/chunks/{index-BCy58n13.d.ts.map → index-8ZfPndYR.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-OwiX5IVw.d.ts → index-DVhD9Kd5.d.ts} +4 -4
- package/dist/pptx/chunks/{index-OwiX5IVw.d.ts.map → index-DVhD9Kd5.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-oQHWAO7M.d.ts → index-DsUnUj-V.d.ts} +5 -5
- package/dist/pptx/chunks/{index-oQHWAO7M.d.ts.map → index-DsUnUj-V.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-AZN38e6S.d.ts → index-xB7MDLI7.d.ts} +4 -4
- package/dist/pptx/chunks/{index-AZN38e6S.d.ts.map → index-xB7MDLI7.d.ts.map} +1 -1
- package/dist/pptx/chunks/{presentation-DOaYIW-l.d.ts → presentation-BvnVkFPJ.d.ts} +26 -2
- package/dist/pptx/chunks/{presentation-DOaYIW-l.d.ts.map → presentation-BvnVkFPJ.d.ts.map} +1 -1
- package/dist/pptx/chunks/{text-operations-CYSXno9L.d.ts → text-operations-D7TCPhlv.d.ts} +2 -2
- package/dist/pptx/chunks/{text-operations-CYSXno9L.d.ts.map → text-operations-D7TCPhlv.d.ts.map} +1 -1
- package/dist/pptx/cli/index.cjs +504 -124
- package/dist/pptx/cli/index.d.ts +1 -1
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.d.ts +1 -1
- package/dist/pptx/converter/index.mjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.cjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.mjs +1 -1
- package/dist/pptx/editor/render/find-replace.cjs +16 -15
- package/dist/pptx/editor/render/find-replace.d.ts +2 -2
- package/dist/pptx/editor/render/find-replace.mjs +3 -2
- package/dist/pptx/editor/render/font-family-update.d.ts +2 -2
- package/dist/pptx/editor/render/paragraph-geometry-overrides.d.ts +2 -2
- package/dist/pptx/editor/render/segments-text-edit.cjs +159 -0
- package/dist/pptx/editor/render/segments-text-edit.d.ts +26 -0
- package/dist/pptx/editor/render/segments-text-edit.d.ts.map +1 -0
- package/dist/pptx/editor/render/segments-text-edit.mjs +156 -0
- package/dist/pptx/editor/render/slide-operations.cjs +12 -9
- package/dist/pptx/editor/render/slide-operations.mjs +6 -3
- package/dist/pptx/editor/render/table-cell-edit.cjs +5 -5
- package/dist/pptx/editor/render/table-cell-edit.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-cell-edit.mjs +1 -1
- package/dist/pptx/editor/render/table-cell-merge.cjs +3 -3
- package/dist/pptx/editor/render/table-cell-merge.mjs +1 -1
- package/dist/pptx/editor/render/table-cell-rich-text.cjs +41 -0
- package/dist/pptx/editor/render/table-cell-rich-text.d.ts +50 -0
- package/dist/pptx/editor/render/table-cell-rich-text.d.ts.map +1 -0
- package/dist/pptx/editor/render/table-cell-rich-text.mjs +8 -0
- package/dist/pptx/editor/render/table-cell-source.cjs +23 -0
- package/dist/pptx/editor/render/table-cell-source.d.ts +31 -0
- package/dist/pptx/editor/render/table-cell-source.d.ts.map +1 -0
- package/dist/pptx/editor/render/table-cell-source.mjs +6 -0
- package/dist/pptx/editor/render/table-cells-text-style.cjs +116 -0
- package/dist/pptx/editor/render/table-cells-text-style.d.ts +37 -0
- package/dist/pptx/editor/render/table-cells-text-style.d.ts.map +1 -0
- package/dist/pptx/editor/render/table-cells-text-style.mjs +113 -0
- package/dist/pptx/editor/render/table-data-grid-ops.cjs +40 -94
- package/dist/pptx/editor/render/table-data-grid-ops.mjs +3 -88
- package/dist/pptx/editor/render/table-grid-fill.cjs +30 -0
- package/dist/pptx/editor/render/table-grid-fill.d.ts +34 -0
- package/dist/pptx/editor/render/table-grid-fill.d.ts.map +1 -0
- package/dist/pptx/editor/render/table-grid-fill.mjs +28 -0
- package/dist/pptx/editor/render/table-layout.cjs +6 -6
- package/dist/pptx/editor/render/table-layout.d.ts +2 -2
- package/dist/pptx/editor/render/table-layout.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-layout.mjs +1 -1
- package/dist/pptx/editor/render/table-merge.cjs +5 -5
- package/dist/pptx/editor/render/table-merge.mjs +1 -1
- package/dist/pptx/editor/render/text-content-style.d.ts +2 -2
- package/dist/pptx/editor/render/text-runs-style-patch.d.ts +2 -2
- package/dist/pptx/editor/render/text-style-scope.d.ts +2 -2
- package/dist/pptx/editor/render/update-text-segment-style.d.ts +2 -2
- package/dist/pptx/index.cjs +519 -201
- package/dist/pptx/index.d.ts +7 -7
- package/dist/pptx/index.mjs +5 -5
- package/dist/pptx/node/index.d.ts +1 -1
- package/dist/pptx/smartart-layouts/index.d.ts +2 -2
- package/dist/teams/index.cjs +35 -25
- package/dist/teams/index.mjs +35 -25
- package/dist/text/complex-breaks.d.ts +24 -0
- package/dist/text/complex-breaks.d.ts.map +1 -0
- package/dist/text/east-asian.d.ts +32 -0
- package/dist/text/east-asian.d.ts.map +1 -0
- package/dist/text/html-tokens.d.ts +45 -0
- package/dist/text/html-tokens.d.ts.map +1 -0
- package/dist/text/index.cjs +567 -96
- package/dist/text/index.d.ts +6 -0
- package/dist/text/index.d.ts.map +1 -1
- package/dist/text/index.mjs +544 -97
- package/dist/text/kinsoku.d.ts +55 -0
- package/dist/text/kinsoku.d.ts.map +1 -0
- package/dist/text/truetype/embedding.d.ts +42 -0
- package/dist/text/truetype/embedding.d.ts.map +1 -0
- package/dist/text/truetype/glyphless.d.ts +5 -0
- package/dist/text/truetype/glyphless.d.ts.map +1 -0
- package/dist/text/truetype/sfnt-write.d.ts +10 -0
- package/dist/text/truetype/sfnt-write.d.ts.map +1 -0
- package/dist/text/truetype/subset.d.ts.map +1 -1
- package/dist/text/windows-1252.d.ts +10 -0
- package/dist/text/windows-1252.d.ts.map +1 -0
- package/dist/xlsx/collab/index.cjs +10 -6
- package/dist/xlsx/collab/index.mjs +10 -6
- package/dist/xlsx/edit/clipboard-html-parse.d.ts +1 -0
- package/dist/xlsx/edit/clipboard-html-parse.d.ts.map +1 -1
- package/dist/xlsx/formula/functions/text-convert.d.ts.map +1 -1
- package/dist/xlsx/index.cjs +96 -51
- package/dist/xlsx/index.mjs +96 -51
- package/dist/xlsx/load/index.cjs +10 -6
- package/dist/xlsx/load/index.mjs +10 -6
- package/dist/xlsx/ui/index.cjs +97 -52
- package/dist/xlsx/ui/index.mjs +97 -52
- package/package.json +1 -1
- package/dist/PptxHandler-72NTA5ZY.cjs +0 -14
- package/dist/PptxHandler-O4IJ3TKZ.mjs +0 -5
- package/dist/PresentationBuilder-ORM22QGC.mjs +0 -5
- package/dist/PresentationBuilder-T2ETYT3L.cjs +0 -22
- package/dist/chunk-X4RL5AZ7.cjs +0 -120
- package/dist/{chunk-PRGXRAAU.mjs → chunk-4Y76EAKK.mjs} +131 -131
- package/dist/{chunk-EN3KSEW5.cjs → chunk-MMULWQOM.cjs} +131 -131
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { NS, RELATIONSHIP_TYPES, 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, readText3DValues, cloneXmlObject, readScene3DValues, parseParagraphSpacingPx, parseOoxmlPercent, createBuiltinVariables, resolveCoordinate, readPathListCommandOrder, parseAdjustmentValues, parseGuideDefinitions, evaluateGuides, orderedPathCommandEntries, ooxmlArcToSvg, inheritCustomGeometryCommandOrder, parseInkMlContent, parseModel3DScene, nextRelationshipId, remapElementShapeIds, normalizeCustomShowIds, mapCustomShowActions, parseShapeId, isTemplateElementId, remapShapeIdReferences, reapplyAlternateContentToTree, openPptxZip, buildOle2, SHAPE_TREE_ELEMENT_TAGS, MAX_SHAPE_ID, parseRelationships, resolvePartPath, orderedXmlKey, safeResolveZipPath, parseDataUrlToBytes, base64Decode, reorderObjectKeys, encodeCompressedPng, zlibStore, hash, concatArrays, encodePasswordUtf16LE, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, uint32LE, LN_CHILD_ORDER, pptxActionToElementAction, buildClrMapOverrideXml, applyActiveXControlsToSlide, stageChartPartWithWorkbook, CHART_WORKBOOK_CONTENT_TYPE, BLIP_FILL_ORDER, SP_PR_ORDER, ensureXmlChild, inkElementToStrokes, buildInkMlContent, ensureXmlChildOrCreate, isXmlNode, applyChartLayouts, stripXmlOrderSuffix, ooxmlGradientAngleToCssDegrees, serializeTabStop, newChartWorkbookLayout, DEFAULT_CHART_SHEET_NAME, writeChartSpace, chartIssuesLostOnWrite, parseChartSpace, joinChartGroups, createChartExSpace, setChartExDataLabelsVisible, writeChartExSpace, readCommentMentions, rebaseCommentMentions, applyCommentMentions, colorsEqual, generateFontGuid, NEUTRAL_CHART_TYPE_TARGETS, planNeutralChartType, newChartSpace, setChartSeriesSecondaryAxis, editChartSpace, chartModelLabelPositions, setChartExLayout, setChartExSeriesFill, setChartExWaterfall, setChartExBinning, setChartExParentLabelLayout, setChartExBoxWhisker, applyBubbleChartOptions, applyChartUpDownBars, applyDataLabelsRangeToDLbls, applyChartAxisScaling, applyChartAxisLabelFormatting, upsertChartAxisChild, applyChartDateAxisUnits, applyChartAxisDisplayUnitsToXml, writeChartShapeProps, resolveTxPrDefRPr, buildDefRPrTextProperties, buildChartGradFillXml, drawingFillXml, removeChartSeries, chartSeriesEntries, moveChartSeries, addChartSeries, setChartSeriesColor, setChartTitleRuns, setChartTitle, setChartTitleVisible, setChartLegend, setChartAxis, setChartGroupOptions, setChartTrendline, setChartErrorBars, setChartSeriesAxis, setChartSeriesOptions, setChartNumericCategories, setChartCategoryLevels, setChartTypedCategories, setChartSeriesXValues, setChartSeriesBubbleSizes, renameChartSeries, setChartSeriesValues, setChartCategories, setChartDataLabels, setChartDataLabelsRange, parseChartFormatTargetKey, setChartTargetText, setChartLegendEntries, setChartAxisTitleText, setChartLayout, setChartDisplayUnitsLabel, setChartProtection, setChartChrome, setChartStyle, setChartView3D, setChartDataTable, setChartSurface, setChartGroupDecorations, clearChartAreaPaint, applyChartAppearance, chartGroupElement, chartPercentUnionValue, applySeriesMarkerToXml, applySeriesDataPointsToXml, chartColorHex, chartDrawingColorFromHex, chartTrendlineType, chartSeriesEntryAt, numberSource, setChartMarker, editChartShapeProperties, setChartDataLabelFormatting, chartFormatTargetKey, chartTargetDraftShapes, fillAppearancePatch, setChartPointOptions, applyChartManualLayout, serializeColorChoice, replaceOleEmbedding, findKey, collectAllText, buildNodeGuidMap, buildPresentationGuidMap, regenerateSmartArtDrawingShapes, buildFabricatedDrawingXml, buildFabricatedDiagramDataXml, DIAGRAM_DRAWING_CONTENT_TYPE, DIAGRAM_DRAWING_REL_TYPE, applyDiagramRelationshipIds, applyDrawingMediaReference, DIAGRAM_XML_PROLOG, DIAGRAM_DATA_XMLNS, escapeDiagramXml, writeBodyPrBooleanAttrs, applyTextBodySp3d, customGeometryPathsToXml, ensureArrayValue, lookupPresetShape, writeShapeEffects, SHAPE_STYLE_ORDER, CAMERA_PRESETS, LIGHT_RIGS, LIGHT_DIRECTIONS, roundCoordinate, scaleVectorToIntegers, P14_GUIDE_URI, P15_GUIDE_URI, buildGuideListExtension, resetSpPrFormattingForStyleMatrix, restorePathListCommandOrder, fillIsPurelyStyleMatrix, serializeColorChoiceWithRef, createLineStyleGate, applyDrawingLineDash, reorderObjectKeysByLocalName, getSignaturePathsToStrip, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, mergeSmartArtPointXml, mergeSmartArtConnectionXml, withDiagramPictureSources, diagramPictureRelationships, applySmartArtLayoutDefinition, obfuscateFont, containsConvertibleStrictNamespaceAttribute, convertXmlToStrict, applySeriesPictureOptionsToXml, findChartExtByUri, findChildByLocalName, regenerateClonedUniqueId, buildChartUniqueIdExtLst, createOfficeGuid, isContentPoint, newSmartArtGuid, parseDiagramDataModel, DEFAULT_GENERATED_DIAGRAM_SCHEME, previewDiagramLayout, parseXml, first, parseDiagramColors, resolveDrawingColor, children, parseDrawingRichTextBody, writeGeneratedDiagramDrawing, descendants, GENERATED_DIAGRAM_CACHE_NS, generatedDrawingDigest, buildXml, parseChartUserShapesDrawing, xmlChildren, chartSpaceWorkbookWrites, writeChartSpaceOverSource, applyChartGradientToSpPr, setAutoTitleDeleted, realignOrCollapseRuns, insertAt, replaceFirstText, saveChartWorkbookUpdates, shouldRebuildFromParagraphs, buildPointFromParagraphs, shouldRebuildFromRuns, buildPointFromRuns, buildPointText, resolveThemeFillStyle, resolveThemeLineStyle, resolveThemeEffectStyle, relAttr, ensureXmlChildren, TC_PR_BORDERS_ORDER, appendChartWorkbookSheet, rebaseChartData, writeChartColorChoice, parseChartExSpace, chartExDataChanged, relationshipsPartFor, chartExSpaceWorkbookWrites, writeChartWorkbookUpdates, appendChartExWorkbookData, writeChartExSpaceOverSource, elements, stripParentDirSegments, parseChartUniqueId, buildChartMarkerXml, chartGradientsEqual, chartColorChoiceValue, setChartExTitle, setChartExLegend, editChartExStyle, editChartExAxis, renameChartExSeries, setChartExSeriesValues, setChartExCategories, parseDrawingEffects, editChartExLabels, removeChartExSeries, addChartExSeries, buildEffectDagTreeFromXml, syncPictureShapeTypeWithCropShape, buildSrgbColorChoice, picturePercentage, ARTISTIC_PRIMARY_ATTRIBUTE, fetchUrlToBytes, parseChartWideTextStyle, hasLocalName, parseDefRPrTextStyle, parseChartDataLabelOptions, shadowOffsetToDistanceAndDirection, positiveFixedAngleAttribute, xmlAttrNumber, parseCustomShows, parseShapeProps, parseActiveXControlsFromSlide, convertMetafileToDataUrl, readPictureEffect, isAlternateContentChoiceSupported, detectStrictConformance, normalizeStrictXml, relayoutSmartArt, setChartPointLabel, editChartExPointLabel, themeColorRefToSolidFillWithOpacity, FONT_ADVANCE_TABLES, DEFAULT_FONT_ADVANCE_TABLE, measureTextWidth, applyDrawingColorTransforms, applyThemeToData, detectFileFormat, parseOle2, EncryptedFileError, decryptPptx, encryptPptx, MAX_ZIP_ENTRY_COUNT, DEFAULT_MAX_UNCOMPRESSED_BYTES, encodeXmlAttributeValue, encodeXmlTextValue, cssDegreesToOoxmlGradientAngle, svgToCustomGeometryPaths, IncorrectPasswordError, customGeometryPathsToSvg, patchPictureEffects, parseEncryptionInfo, RC4_ALG_ID, isOle2CompoundFile, ENTRY_TYPE_ROOT, supportsChartGradientFill, DEFAULT_CHART_GRADIENT_ANGLE, decodeXmlEntities, preservesXmlWhitespace, annotateCustomGeometryCommandOrder, annotateSmartArtTextOrder, stripXmlOrderMarkers, normalizeStShapeType, applyCustomShows, applySections, PRESENTATION_CHILD_ORDER, applyKinsokuToXml, normalizeNamespaceUri, backgroundStyleRefIsCurrent, backgroundRefNode, captureStyleBaseline, STYLE_MATRIX_FILL_KEYS, STYLE_MATRIX_LINE_KEYS, STYLE_MATRIX_EFFECT_KEYS, xmlAttrBool, detectOleObjectType, inferOleExtensionFromTarget, backgroundStylePreset, isDarkColorMap, backgroundStyleColorMap, reResolveElementsForColorMapChange, deriveSlideTitles, parseP14DirectChild, parseP14FromExtLst, P14_TRANSITION_TYPES, parseSlideDrawingGuides, slideBackgroundStyleRefFromNode, cloneSlide, parseDrawingFraction, scrgbLinearToSrgb8, parseDrawingHueDegrees, hslToRgb, themeColorRefToXml, effectChild, mergeEffectNode, mergeAttributeEffectNode, parseDrawingLineDash, assertChartModelLabelPosition, findThemeEffectScheme, wrapFormatSchemeXml, effectIsPurelyStyleMatrix, prismFamilyFlags, prismFamilyTypeOfNode, prismFamilyTypeForFlags, P14_DIR_IS_ORIENTATION_TYPE, estimateMediaDurationMs, parseVmlElements, parseLineSpacingMultiplier, parseLineSpacingExactPt, formatSchemeKey, ensureContentTypeOverride, buildRelationshipsXml, loadThemeVariants, parsePresentationDrawingGuides, parsePresentationSmartTags, resolveLayoutDisplayName, guardZip, detectDigitalSignatures, unwrapOleEmbedding, mimeTypeForOleFile, oleBytesToDataUrl, themeColorRefFromSchemeClr, ZipBombError, parseKinsoku, deobfuscateFont, detectFontFormat, parseDataTable, parseChartAxes, parseBubbleChartOptions, extractGuidFromPartName, parseChartLayouts, parseCxChartSeries, parseChartFormulaRange, expandRangeAddresses, parseChartDataPointPictureBlipRel, readDisplayNaAsBlank, extractCxSeriesColor, parseCxDataLabels, parseCxRegionMapOptions, parseCxAxes, parseSeriesDataLabels, parseChartDataPointPicture, parseImplicitBlipPictureFill, parseEmbeddedXlsx, CHART_STYLE_PARTS, CHART_COLOR_STYLE_NS, readChartStyle, resolveChartStyleDefinition, drawingColorXml, chartTrendlineKind, parseChartManualLayout, parseDiagramRelationshipIds, parseSmartArtTextParagraphs, firstParagraphRuns, smartArtParagraphsText, parseSmartArtLayoutDefinition, decodeBase64, parseSmartArtPresLayoutVars, parseSmartArtConnection, connectionLabel, projectSmartArtNodeText, resolveSmartArtNodeStyleRoles, resolveSmartArtNodeCoherent3DOff, resolveDiagramLayoutCategory, captureDiagramPictures, parseDiagramDrawing, parseSmartArtDefinitionMetadata, parseSmartArtColorStyleLabels, buildSmartArtColorLists, buildSmartArtColorRoleMap, collectTransitionText, parseSmartArtQuickStyleLabels, parseDiagramQuickStyle, parseDiagramLayoutSummary, resolveSmartArtEffectIntensity, parseSmartArtStyleLabelRefs, extractStyleReferenceColorXml, withThemePlaceholderColor, blendColorOntoWhite } from './chunk-PRGXRAAU.mjs';
|
|
1
|
+
import { tableCellSegmentsForSave, buildCellTextBody } from './chunk-GI4Y6BBX.mjs';
|
|
2
|
+
import { paragraphContentEntries, hasOwnFontDeclaration, isXmlObject, ensureItems, isGroupedByTag, annotateParagraphSiblingOrder, extractElementInnerXml, localName, scanDirectChildren } from './chunk-554UZLPS.mjs';
|
|
3
|
+
import { applyCellRunStyleUpdates, tableCellTextBodyMatches } from './chunk-4LUZHBTT.mjs';
|
|
4
|
+
import { DEFAULT_ROW_HEIGHT_EMU, createDefaultXmlCell } from './chunk-UV4LMGVZ.mjs';
|
|
5
|
+
import { NS, RELATIONSHIP_TYPES, 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, readText3DValues, cloneXmlObject, readScene3DValues, parseParagraphSpacingPx, parseOoxmlPercent, createBuiltinVariables, resolveCoordinate, readPathListCommandOrder, parseAdjustmentValues, parseGuideDefinitions, evaluateGuides, orderedPathCommandEntries, ooxmlArcToSvg, inheritCustomGeometryCommandOrder, parseInkMlContent, parseModel3DScene, nextRelationshipId, remapElementShapeIds, normalizeCustomShowIds, mapCustomShowActions, parseShapeId, isTemplateElementId, remapShapeIdReferences, reapplyAlternateContentToTree, openPptxZip, buildOle2, SHAPE_TREE_ELEMENT_TAGS, MAX_SHAPE_ID, parseRelationships, resolvePartPath, orderedXmlKey, safeResolveZipPath, parseDataUrlToBytes, base64Decode, reorderObjectKeys, encodeCompressedPng, zlibStore, hash, concatArrays, encodePasswordUtf16LE, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, uint32LE, LN_CHILD_ORDER, pptxActionToElementAction, buildClrMapOverrideXml, applyActiveXControlsToSlide, stageChartPartWithWorkbook, CHART_WORKBOOK_CONTENT_TYPE, BLIP_FILL_ORDER, SP_PR_ORDER, ensureXmlChild, inkElementToStrokes, buildInkMlContent, ensureXmlChildOrCreate, isXmlNode, applyChartLayouts, stripXmlOrderSuffix, ooxmlGradientAngleToCssDegrees, serializeTabStop, newChartWorkbookLayout, DEFAULT_CHART_SHEET_NAME, writeChartSpace, chartIssuesLostOnWrite, parseChartSpace, joinChartGroups, createChartExSpace, setChartExDataLabelsVisible, writeChartExSpace, readCommentMentions, rebaseCommentMentions, applyCommentMentions, colorsEqual, generateFontGuid, NEUTRAL_CHART_TYPE_TARGETS, planNeutralChartType, newChartSpace, setChartSeriesSecondaryAxis, editChartSpace, chartModelLabelPositions, setChartExLayout, setChartExSeriesFill, setChartExWaterfall, setChartExBinning, setChartExParentLabelLayout, setChartExBoxWhisker, applyBubbleChartOptions, applyChartUpDownBars, applyDataLabelsRangeToDLbls, applyChartAxisScaling, applyChartAxisLabelFormatting, upsertChartAxisChild, applyChartDateAxisUnits, applyChartAxisDisplayUnitsToXml, writeChartShapeProps, resolveTxPrDefRPr, buildDefRPrTextProperties, buildChartGradFillXml, drawingFillXml, removeChartSeries, chartSeriesEntries, moveChartSeries, addChartSeries, setChartSeriesColor, setChartTitleRuns, setChartTitle, setChartTitleVisible, setChartLegend, setChartAxis, setChartGroupOptions, setChartTrendline, setChartErrorBars, setChartSeriesAxis, setChartSeriesOptions, setChartNumericCategories, setChartCategoryLevels, setChartTypedCategories, setChartSeriesXValues, setChartSeriesBubbleSizes, renameChartSeries, setChartSeriesValues, setChartCategories, setChartDataLabels, setChartDataLabelsRange, parseChartFormatTargetKey, setChartTargetText, setChartLegendEntries, setChartAxisTitleText, setChartLayout, setChartDisplayUnitsLabel, setChartProtection, setChartChrome, setChartStyle, setChartView3D, setChartDataTable, setChartSurface, setChartGroupDecorations, clearChartAreaPaint, applyChartAppearance, chartGroupElement, chartPercentUnionValue, applySeriesMarkerToXml, applySeriesDataPointsToXml, chartColorHex, chartDrawingColorFromHex, chartTrendlineType, chartSeriesEntryAt, numberSource, setChartMarker, editChartShapeProperties, setChartDataLabelFormatting, chartFormatTargetKey, chartTargetDraftShapes, fillAppearancePatch, setChartPointOptions, applyChartManualLayout, serializeColorChoice, replaceOleEmbedding, findKey, collectAllText, buildNodeGuidMap, buildPresentationGuidMap, regenerateSmartArtDrawingShapes, buildFabricatedDrawingXml, buildFabricatedDiagramDataXml, DIAGRAM_DRAWING_CONTENT_TYPE, DIAGRAM_DRAWING_REL_TYPE, applyDiagramRelationshipIds, applyDrawingMediaReference, DIAGRAM_XML_PROLOG, DIAGRAM_DATA_XMLNS, escapeDiagramXml, writeBodyPrBooleanAttrs, applyTextBodySp3d, customGeometryPathsToXml, ensureArrayValue, lookupPresetShape, writeShapeEffects, SHAPE_STYLE_ORDER, CAMERA_PRESETS, LIGHT_RIGS, LIGHT_DIRECTIONS, roundCoordinate, scaleVectorToIntegers, P14_GUIDE_URI, P15_GUIDE_URI, buildGuideListExtension, resetSpPrFormattingForStyleMatrix, restorePathListCommandOrder, fillIsPurelyStyleMatrix, serializeColorChoiceWithRef, createLineStyleGate, applyDrawingLineDash, reorderObjectKeysByLocalName, getSignaturePathsToStrip, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, mergeSmartArtPointXml, mergeSmartArtConnectionXml, withDiagramPictureSources, diagramPictureRelationships, applySmartArtLayoutDefinition, obfuscateFont, containsConvertibleStrictNamespaceAttribute, convertXmlToStrict, applySeriesPictureOptionsToXml, findChartExtByUri, findChildByLocalName, regenerateClonedUniqueId, buildChartUniqueIdExtLst, createOfficeGuid, isContentPoint, newSmartArtGuid, parseDiagramDataModel, DEFAULT_GENERATED_DIAGRAM_SCHEME, previewDiagramLayout, parseXml, first, parseDiagramColors, resolveDrawingColor, children, parseDrawingRichTextBody, writeGeneratedDiagramDrawing, descendants, GENERATED_DIAGRAM_CACHE_NS, generatedDrawingDigest, buildXml, parseChartUserShapesDrawing, xmlChildren, chartSpaceWorkbookWrites, writeChartSpaceOverSource, applyChartGradientToSpPr, setAutoTitleDeleted, realignOrCollapseRuns, insertAt, replaceFirstText, saveChartWorkbookUpdates, shouldRebuildFromParagraphs, buildPointFromParagraphs, shouldRebuildFromRuns, buildPointFromRuns, buildPointText, resolveThemeFillStyle, resolveThemeLineStyle, resolveThemeEffectStyle, relAttr, ensureXmlChildren, TC_PR_BORDERS_ORDER, appendChartWorkbookSheet, rebaseChartData, writeChartColorChoice, parseChartExSpace, chartExDataChanged, relationshipsPartFor, chartExSpaceWorkbookWrites, writeChartWorkbookUpdates, appendChartExWorkbookData, writeChartExSpaceOverSource, elements, stripParentDirSegments, parseChartUniqueId, buildChartMarkerXml, chartGradientsEqual, chartColorChoiceValue, setChartExTitle, setChartExLegend, editChartExStyle, editChartExAxis, renameChartExSeries, setChartExSeriesValues, setChartExCategories, parseDrawingEffects, editChartExLabels, removeChartExSeries, addChartExSeries, buildEffectDagTreeFromXml, syncPictureShapeTypeWithCropShape, buildSrgbColorChoice, picturePercentage, ARTISTIC_PRIMARY_ATTRIBUTE, fetchUrlToBytes, parseChartWideTextStyle, hasLocalName, parseDefRPrTextStyle, parseChartDataLabelOptions, shadowOffsetToDistanceAndDirection, positiveFixedAngleAttribute, xmlAttrNumber, parseCustomShows, parseShapeProps, parseActiveXControlsFromSlide, convertMetafileToDataUrl, readPictureEffect, isAlternateContentChoiceSupported, detectStrictConformance, normalizeStrictXml, relayoutSmartArt, setChartPointLabel, editChartExPointLabel, themeColorRefToSolidFillWithOpacity, FONT_ADVANCE_TABLES, DEFAULT_FONT_ADVANCE_TABLE, measureTextWidth, applyDrawingColorTransforms, applyThemeToData, detectFileFormat, parseOle2, EncryptedFileError, decryptPptx, encryptPptx, MAX_ZIP_ENTRY_COUNT, DEFAULT_MAX_UNCOMPRESSED_BYTES, encodeXmlAttributeValue, encodeXmlTextValue, cssDegreesToOoxmlGradientAngle, svgToCustomGeometryPaths, IncorrectPasswordError, customGeometryPathsToSvg, patchPictureEffects, parseEncryptionInfo, RC4_ALG_ID, isOle2CompoundFile, ENTRY_TYPE_ROOT, supportsChartGradientFill, DEFAULT_CHART_GRADIENT_ANGLE, decodeXmlEntities, preservesXmlWhitespace, annotateCustomGeometryCommandOrder, annotateSmartArtTextOrder, stripXmlOrderMarkers, normalizeStShapeType, applyCustomShows, applySections, PRESENTATION_CHILD_ORDER, applyKinsokuToXml, normalizeNamespaceUri, backgroundStyleRefIsCurrent, backgroundRefNode, captureStyleBaseline, STYLE_MATRIX_FILL_KEYS, STYLE_MATRIX_LINE_KEYS, STYLE_MATRIX_EFFECT_KEYS, xmlAttrBool, detectOleObjectType, inferOleExtensionFromTarget, backgroundStylePreset, isDarkColorMap, backgroundStyleColorMap, reResolveElementsForColorMapChange, deriveSlideTitles, parseP14DirectChild, parseP14FromExtLst, P14_TRANSITION_TYPES, parseSlideDrawingGuides, slideBackgroundStyleRefFromNode, cloneSlide, parseDrawingFraction, scrgbLinearToSrgb8, parseDrawingHueDegrees, hslToRgb, themeColorRefToXml, effectChild, mergeEffectNode, mergeAttributeEffectNode, parseDrawingLineDash, assertChartModelLabelPosition, findThemeEffectScheme, wrapFormatSchemeXml, effectIsPurelyStyleMatrix, prismFamilyFlags, prismFamilyTypeOfNode, prismFamilyTypeForFlags, P14_DIR_IS_ORIENTATION_TYPE, estimateMediaDurationMs, parseVmlElements, parseLineSpacingMultiplier, parseLineSpacingExactPt, formatSchemeKey, ensureContentTypeOverride, buildRelationshipsXml, loadThemeVariants, parsePresentationDrawingGuides, parsePresentationSmartTags, resolveLayoutDisplayName, guardZip, detectDigitalSignatures, unwrapOleEmbedding, mimeTypeForOleFile, oleBytesToDataUrl, themeColorRefFromSchemeClr, ZipBombError, parseKinsoku, deobfuscateFont, extractGuidFromPartName, detectFontFormat, parseDataTable, parseChartAxes, parseBubbleChartOptions, parseChartLayouts, parseCxChartSeries, parseChartFormulaRange, expandRangeAddresses, parseChartDataPointPictureBlipRel, readDisplayNaAsBlank, extractCxSeriesColor, parseCxDataLabels, parseCxRegionMapOptions, parseCxAxes, parseSeriesDataLabels, parseChartDataPointPicture, parseImplicitBlipPictureFill, parseEmbeddedXlsx, CHART_STYLE_PARTS, CHART_COLOR_STYLE_NS, readChartStyle, resolveChartStyleDefinition, drawingColorXml, chartTrendlineKind, parseChartManualLayout, parseDiagramRelationshipIds, parseSmartArtTextParagraphs, firstParagraphRuns, smartArtParagraphsText, parseSmartArtLayoutDefinition, decodeBase64, parseSmartArtPresLayoutVars, parseSmartArtConnection, connectionLabel, projectSmartArtNodeText, resolveSmartArtNodeStyleRoles, resolveSmartArtNodeCoherent3DOff, resolveDiagramLayoutCategory, captureDiagramPictures, parseDiagramDrawing, parseSmartArtDefinitionMetadata, parseSmartArtColorStyleLabels, buildSmartArtColorLists, buildSmartArtColorRoleMap, collectTransitionText, parseSmartArtQuickStyleLabels, parseDiagramQuickStyle, parseDiagramLayoutSummary, resolveSmartArtEffectIntensity, parseSmartArtStyleLabelRefs, extractStyleReferenceColorXml, withThemePlaceholderColor, blendColorOntoWhite } from './chunk-4Y76EAKK.mjs';
|
|
3
6
|
import { hasShapeProperties, hasTextProperties } from './chunk-GXHKNSZX.mjs';
|
|
4
7
|
import { EMU_PER_PX, EMU_PER_PIXEL, SYSTEM_COLOR_MAP, PRESET_COLOR_MAP, OOXML_PERCENT_UNITS, EMU_PER_POINT } from './chunk-CA7KCNL3.mjs';
|
|
5
8
|
import JSZip from 'jszip';
|
|
@@ -3210,7 +3213,7 @@ var PptxContentTypesBuilder = class _PptxContentTypesBuilder {
|
|
|
3210
3213
|
};
|
|
3211
3214
|
|
|
3212
3215
|
// pptx/core/utils/ordered-xml-merge.ts
|
|
3213
|
-
function mergeOrderedXml(source, attrEdits, childEdits,
|
|
3216
|
+
function mergeOrderedXml(source, attrEdits, childEdits, childOrder) {
|
|
3214
3217
|
const src = source ?? {};
|
|
3215
3218
|
const result = {};
|
|
3216
3219
|
for (const [key2, value] of Object.entries(src)) {
|
|
@@ -3226,8 +3229,8 @@ function mergeOrderedXml(source, attrEdits, childEdits, childOrder2) {
|
|
|
3226
3229
|
result[key2] = value;
|
|
3227
3230
|
}
|
|
3228
3231
|
}
|
|
3229
|
-
const handled = new Set(
|
|
3230
|
-
for (const key2 of
|
|
3232
|
+
const handled = new Set(childOrder);
|
|
3233
|
+
for (const key2 of childOrder) {
|
|
3231
3234
|
if (childEdits.has(key2)) {
|
|
3232
3235
|
const value = childEdits.get(key2);
|
|
3233
3236
|
if (value !== null && value !== void 0) {
|
|
@@ -5531,7 +5534,7 @@ function drawingChildren(node, requestedName) {
|
|
|
5531
5534
|
function qualifiedLocalName(key2) {
|
|
5532
5535
|
return key2.split(":").at(-1) ?? key2;
|
|
5533
5536
|
}
|
|
5534
|
-
function mergeDrawingFillXml(original, generated, modeledChildren,
|
|
5537
|
+
function mergeDrawingFillXml(original, generated, modeledChildren, childOrder) {
|
|
5535
5538
|
const attributes = [];
|
|
5536
5539
|
const children6 = /* @__PURE__ */ new Map();
|
|
5537
5540
|
for (const [key2, value] of Object.entries(original ?? {})) {
|
|
@@ -5556,7 +5559,7 @@ function mergeDrawingFillXml(original, generated, modeledChildren, childOrder2)
|
|
|
5556
5559
|
for (const [key2, value] of attributes) {
|
|
5557
5560
|
result[key2] = value;
|
|
5558
5561
|
}
|
|
5559
|
-
for (const name of
|
|
5562
|
+
for (const name of childOrder) {
|
|
5560
5563
|
for (const [key2, value] of children6) {
|
|
5561
5564
|
if (qualifiedLocalName(key2) === name) {
|
|
5562
5565
|
result[key2] = value;
|
|
@@ -8344,9 +8347,9 @@ function applyCellMarginStyle(cellProperties, style, context) {
|
|
|
8344
8347
|
|
|
8345
8348
|
// pptx/core/core/builders/table-cell-paragraphs.ts
|
|
8346
8349
|
var PX_PER_POINT = 96 / 72;
|
|
8347
|
-
function sizePt(
|
|
8350
|
+
function sizePt(runProperties2) {
|
|
8348
8351
|
const size = Number.parseInt(
|
|
8349
|
-
String(
|
|
8352
|
+
String(runProperties2?.["@_sz"] ?? ""),
|
|
8350
8353
|
10
|
|
8351
8354
|
);
|
|
8352
8355
|
return Number.isFinite(size) && size > 0 ? size / 100 : void 0;
|
|
@@ -8408,245 +8411,11 @@ function extractTableCellParagraphs(tableCell, context, defaultFontSizePt) {
|
|
|
8408
8411
|
return read.some((entry) => Object.keys(entry).length > 0) ? read : void 0;
|
|
8409
8412
|
}
|
|
8410
8413
|
|
|
8411
|
-
// pptx/core/core/runtime/xml-child-scan.ts
|
|
8412
|
-
function isXmlObject(value) {
|
|
8413
|
-
return Boolean(value && typeof value === "object" && !Array.isArray(value));
|
|
8414
|
-
}
|
|
8415
|
-
function ensureItems(value) {
|
|
8416
|
-
if (value === void 0 || value === null) {
|
|
8417
|
-
return [];
|
|
8418
|
-
}
|
|
8419
|
-
return Array.isArray(value) ? value : [value];
|
|
8420
|
-
}
|
|
8421
|
-
function localName(name) {
|
|
8422
|
-
const colon = name.indexOf(":");
|
|
8423
|
-
return colon >= 0 ? name.slice(colon + 1) : name;
|
|
8424
|
-
}
|
|
8425
|
-
var TAG_NAME_RE = /<(\/)?([A-Za-z_][\w.:-]*)/uy;
|
|
8426
|
-
function findTagClose(xml, start) {
|
|
8427
|
-
let index = start;
|
|
8428
|
-
while (index < xml.length) {
|
|
8429
|
-
const char = xml[index];
|
|
8430
|
-
if (char === '"' || char === "'") {
|
|
8431
|
-
const closingQuote = xml.indexOf(char, index + 1);
|
|
8432
|
-
index = closingQuote === -1 ? xml.length : closingQuote + 1;
|
|
8433
|
-
continue;
|
|
8434
|
-
}
|
|
8435
|
-
if (char === ">") {
|
|
8436
|
-
return index + 1;
|
|
8437
|
-
}
|
|
8438
|
-
index++;
|
|
8439
|
-
}
|
|
8440
|
-
return xml.length;
|
|
8441
|
-
}
|
|
8442
|
-
function nextTag(xml, from) {
|
|
8443
|
-
let open = xml.indexOf("<", from);
|
|
8444
|
-
while (open !== -1) {
|
|
8445
|
-
TAG_NAME_RE.lastIndex = open;
|
|
8446
|
-
const nameMatch = TAG_NAME_RE.exec(xml);
|
|
8447
|
-
if (nameMatch) {
|
|
8448
|
-
const end = findTagClose(xml, open);
|
|
8449
|
-
const selfClosing = xml[end - 2] === "/";
|
|
8450
|
-
return { closing: Boolean(nameMatch[1]), selfClosing, name: nameMatch[2], start: open, end };
|
|
8451
|
-
}
|
|
8452
|
-
open = xml.indexOf("<", open + 1);
|
|
8453
|
-
}
|
|
8454
|
-
return null;
|
|
8455
|
-
}
|
|
8456
|
-
function scanDirectChildren(inner) {
|
|
8457
|
-
const children6 = [];
|
|
8458
|
-
let depth = 0;
|
|
8459
|
-
let open = null;
|
|
8460
|
-
let cursor = 0;
|
|
8461
|
-
let tag = nextTag(inner, cursor);
|
|
8462
|
-
while (tag) {
|
|
8463
|
-
if (tag.closing) {
|
|
8464
|
-
depth = Math.max(0, depth - 1);
|
|
8465
|
-
if (depth === 0 && open) {
|
|
8466
|
-
children6.push({ tag: open.tag, inner: inner.slice(open.innerStart, tag.start) });
|
|
8467
|
-
open = null;
|
|
8468
|
-
}
|
|
8469
|
-
} else if (tag.selfClosing) {
|
|
8470
|
-
if (depth === 0) {
|
|
8471
|
-
children6.push({ tag: tag.name, inner: "" });
|
|
8472
|
-
}
|
|
8473
|
-
} else {
|
|
8474
|
-
if (depth === 0) {
|
|
8475
|
-
open = { tag: tag.name, innerStart: tag.end };
|
|
8476
|
-
}
|
|
8477
|
-
depth++;
|
|
8478
|
-
}
|
|
8479
|
-
cursor = tag.end;
|
|
8480
|
-
tag = nextTag(inner, cursor);
|
|
8481
|
-
}
|
|
8482
|
-
return children6;
|
|
8483
|
-
}
|
|
8484
|
-
function extractElementInnerXml(xml, wanted) {
|
|
8485
|
-
const fragments = [];
|
|
8486
|
-
let cursor = 0;
|
|
8487
|
-
let tag = nextTag(xml, cursor);
|
|
8488
|
-
while (tag) {
|
|
8489
|
-
if (tag.closing || localName(tag.name) !== wanted) {
|
|
8490
|
-
cursor = tag.end;
|
|
8491
|
-
tag = nextTag(xml, cursor);
|
|
8492
|
-
continue;
|
|
8493
|
-
}
|
|
8494
|
-
if (tag.selfClosing) {
|
|
8495
|
-
fragments.push("");
|
|
8496
|
-
cursor = tag.end;
|
|
8497
|
-
tag = nextTag(xml, cursor);
|
|
8498
|
-
continue;
|
|
8499
|
-
}
|
|
8500
|
-
const innerStart = tag.end;
|
|
8501
|
-
let depth = 1;
|
|
8502
|
-
let inner = xml.slice(innerStart);
|
|
8503
|
-
let nested = nextTag(xml, innerStart);
|
|
8504
|
-
while (nested) {
|
|
8505
|
-
if (localName(nested.name) === wanted) {
|
|
8506
|
-
depth += nested.closing ? -1 : nested.selfClosing ? 0 : 1;
|
|
8507
|
-
if (depth === 0) {
|
|
8508
|
-
inner = xml.slice(innerStart, nested.start);
|
|
8509
|
-
break;
|
|
8510
|
-
}
|
|
8511
|
-
}
|
|
8512
|
-
nested = nextTag(xml, nested.end);
|
|
8513
|
-
}
|
|
8514
|
-
fragments.push(inner);
|
|
8515
|
-
cursor = nested ? nested.end : xml.length;
|
|
8516
|
-
tag = nextTag(xml, cursor);
|
|
8517
|
-
}
|
|
8518
|
-
return fragments;
|
|
8519
|
-
}
|
|
8520
|
-
function isGroupedByTag(tags) {
|
|
8521
|
-
const seen = /* @__PURE__ */ new Set();
|
|
8522
|
-
let previous = "";
|
|
8523
|
-
for (const tag of tags) {
|
|
8524
|
-
if (tag !== previous && seen.has(tag)) {
|
|
8525
|
-
return false;
|
|
8526
|
-
}
|
|
8527
|
-
seen.add(tag);
|
|
8528
|
-
previous = tag;
|
|
8529
|
-
}
|
|
8530
|
-
return true;
|
|
8531
|
-
}
|
|
8532
|
-
|
|
8533
|
-
// pptx/core/core/runtime/paragraph-sibling-order.ts
|
|
8534
|
-
var childOrder = /* @__PURE__ */ new WeakMap();
|
|
8535
|
-
var groupedParagraphs = /* @__PURE__ */ new WeakSet();
|
|
8536
|
-
function hasOwnFontDeclaration(node) {
|
|
8537
|
-
return xmlHasChild(node, "a:latin") || xmlHasChild(node, "a:ea") || xmlHasChild(node, "a:cs");
|
|
8538
|
-
}
|
|
8539
|
-
var MIXED_CONTENT_MARKERS = ["<a:fld", "<a:br", "m:oMath", "a14:m", "mc:AlternateContent"];
|
|
8540
|
-
function tagSequenceSignature(tags) {
|
|
8541
|
-
const counts = /* @__PURE__ */ new Map();
|
|
8542
|
-
for (const tag of tags) {
|
|
8543
|
-
counts.set(tag, (counts.get(tag) ?? 0) + 1);
|
|
8544
|
-
}
|
|
8545
|
-
return signatureOf(counts);
|
|
8546
|
-
}
|
|
8547
|
-
function parsedParagraphSignature(paragraph) {
|
|
8548
|
-
const counts = /* @__PURE__ */ new Map();
|
|
8549
|
-
for (const [key2, value] of Object.entries(paragraph)) {
|
|
8550
|
-
if (key2.startsWith("@_") || key2 === "#text") {
|
|
8551
|
-
continue;
|
|
8552
|
-
}
|
|
8553
|
-
counts.set(key2, (counts.get(key2) ?? 0) + ensureItems(value).length);
|
|
8554
|
-
}
|
|
8555
|
-
return signatureOf(counts);
|
|
8556
|
-
}
|
|
8557
|
-
function signatureOf(counts) {
|
|
8558
|
-
return [...counts.entries()].sort((a, b) => a[0] < b[0] ? -1 : 1).map(([name, count2]) => `${name}:${count2}`).join(",");
|
|
8559
|
-
}
|
|
8560
|
-
function collectParsedParagraphs(root) {
|
|
8561
|
-
const result = [];
|
|
8562
|
-
const stack = [root];
|
|
8563
|
-
while (stack.length > 0) {
|
|
8564
|
-
const current = stack.pop();
|
|
8565
|
-
if (!current || typeof current !== "object") {
|
|
8566
|
-
continue;
|
|
8567
|
-
}
|
|
8568
|
-
if (Array.isArray(current)) {
|
|
8569
|
-
for (let index = current.length - 1; index >= 0; index--) {
|
|
8570
|
-
stack.push(current[index]);
|
|
8571
|
-
}
|
|
8572
|
-
continue;
|
|
8573
|
-
}
|
|
8574
|
-
for (const [key2, value] of Object.entries(current).reverse()) {
|
|
8575
|
-
if (key2.startsWith("@_")) {
|
|
8576
|
-
continue;
|
|
8577
|
-
}
|
|
8578
|
-
if (localName(key2) === "p") {
|
|
8579
|
-
for (const item of ensureItems(value)) {
|
|
8580
|
-
if (isXmlObject(item)) {
|
|
8581
|
-
result.push(item);
|
|
8582
|
-
}
|
|
8583
|
-
}
|
|
8584
|
-
} else {
|
|
8585
|
-
stack.push(value);
|
|
8586
|
-
}
|
|
8587
|
-
}
|
|
8588
|
-
}
|
|
8589
|
-
return result;
|
|
8590
|
-
}
|
|
8591
|
-
function annotateParagraphSiblingOrder(xml, parsed) {
|
|
8592
|
-
if (!MIXED_CONTENT_MARKERS.some((marker3) => xml.includes(marker3))) {
|
|
8593
|
-
return;
|
|
8594
|
-
}
|
|
8595
|
-
const orders = extractElementInnerXml(xml, "p").map((inner) => scanDirectChildren(inner).map((child15) => child15.tag)).filter((order) => order.length > 0);
|
|
8596
|
-
if (orders.length === 0) {
|
|
8597
|
-
return;
|
|
8598
|
-
}
|
|
8599
|
-
const bySignature = /* @__PURE__ */ new Map();
|
|
8600
|
-
for (const order of orders) {
|
|
8601
|
-
const signature = tagSequenceSignature(order);
|
|
8602
|
-
const bucket = bySignature.get(signature);
|
|
8603
|
-
if (bucket) {
|
|
8604
|
-
bucket.push(order);
|
|
8605
|
-
} else {
|
|
8606
|
-
bySignature.set(signature, [order]);
|
|
8607
|
-
}
|
|
8608
|
-
}
|
|
8609
|
-
for (const paragraph of collectParsedParagraphs(parsed)) {
|
|
8610
|
-
const order = bySignature.get(parsedParagraphSignature(paragraph))?.shift();
|
|
8611
|
-
if (!order) {
|
|
8612
|
-
continue;
|
|
8613
|
-
}
|
|
8614
|
-
if (isGroupedByTag(order)) {
|
|
8615
|
-
groupedParagraphs.add(paragraph);
|
|
8616
|
-
} else {
|
|
8617
|
-
childOrder.set(paragraph, order);
|
|
8618
|
-
}
|
|
8619
|
-
}
|
|
8620
|
-
}
|
|
8621
|
-
function paragraphContentEntries(paragraph, contentTags) {
|
|
8622
|
-
const order = childOrder.get(paragraph);
|
|
8623
|
-
if (!order) {
|
|
8624
|
-
const entries2 = Object.keys(paragraph).flatMap(
|
|
8625
|
-
(key2) => contentTags.has(key2) ? ensureItems(paragraph[key2]).map((item) => [key2, item]) : []
|
|
8626
|
-
);
|
|
8627
|
-
return { entries: entries2, authored: groupedParagraphs.has(paragraph) };
|
|
8628
|
-
}
|
|
8629
|
-
const consumed = /* @__PURE__ */ new Map();
|
|
8630
|
-
const entries = [];
|
|
8631
|
-
for (const tag of order) {
|
|
8632
|
-
const index = consumed.get(tag) ?? 0;
|
|
8633
|
-
consumed.set(tag, index + 1);
|
|
8634
|
-
if (!contentTags.has(tag)) {
|
|
8635
|
-
continue;
|
|
8636
|
-
}
|
|
8637
|
-
const item = ensureItems(paragraph[tag])[index];
|
|
8638
|
-
if (item !== void 0) {
|
|
8639
|
-
entries.push([tag, item]);
|
|
8640
|
-
}
|
|
8641
|
-
}
|
|
8642
|
-
return { entries, authored: true };
|
|
8643
|
-
}
|
|
8644
|
-
|
|
8645
8414
|
// pptx/core/core/builders/table-cell-runs.ts
|
|
8646
8415
|
var CELL_CONTENT_TAGS = /* @__PURE__ */ new Set(["a:r", "a:br", "a:fld"]);
|
|
8647
|
-
function runFontFamily(
|
|
8416
|
+
function runFontFamily(runProperties2) {
|
|
8648
8417
|
for (const key2 of ["a:latin", "a:ea", "a:cs"]) {
|
|
8649
|
-
const typeface =
|
|
8418
|
+
const typeface = runProperties2?.[key2]?.["@_typeface"];
|
|
8650
8419
|
const name = String(typeface ?? "").trim();
|
|
8651
8420
|
if (name) {
|
|
8652
8421
|
return name;
|
|
@@ -8654,45 +8423,45 @@ function runFontFamily(runProperties) {
|
|
|
8654
8423
|
}
|
|
8655
8424
|
return void 0;
|
|
8656
8425
|
}
|
|
8657
|
-
function runLanguage(
|
|
8658
|
-
return String(
|
|
8426
|
+
function runLanguage(runProperties2) {
|
|
8427
|
+
return String(runProperties2?.["@_lang"] ?? "").trim() || void 0;
|
|
8659
8428
|
}
|
|
8660
|
-
function applyRunProperties(run,
|
|
8661
|
-
if (!
|
|
8429
|
+
function applyRunProperties(run, runProperties2, context) {
|
|
8430
|
+
if (!runProperties2) {
|
|
8662
8431
|
return;
|
|
8663
8432
|
}
|
|
8664
|
-
if (
|
|
8433
|
+
if (runProperties2["@_b"] === "1") {
|
|
8665
8434
|
run.bold = true;
|
|
8666
8435
|
}
|
|
8667
|
-
if (
|
|
8436
|
+
if (runProperties2["@_i"] === "1") {
|
|
8668
8437
|
run.italic = true;
|
|
8669
8438
|
}
|
|
8670
|
-
const underline =
|
|
8439
|
+
const underline = runProperties2["@_u"];
|
|
8671
8440
|
if (underline !== void 0 && underline !== null && String(underline) !== "none") {
|
|
8672
8441
|
run.underline = true;
|
|
8673
8442
|
}
|
|
8674
|
-
if (
|
|
8443
|
+
if (runProperties2["@_strike"] && String(runProperties2["@_strike"]) !== "noStrike") {
|
|
8675
8444
|
run.strikethrough = true;
|
|
8676
8445
|
}
|
|
8677
|
-
const size = parseInt(String(
|
|
8446
|
+
const size = parseInt(String(runProperties2["@_sz"] ?? ""), 10);
|
|
8678
8447
|
if (Number.isFinite(size) && size > 0) {
|
|
8679
8448
|
run.fontSize = size / 100;
|
|
8680
8449
|
}
|
|
8681
|
-
if (
|
|
8682
|
-
const color2 = context.parseColor(
|
|
8450
|
+
if (runProperties2["a:solidFill"]) {
|
|
8451
|
+
const color2 = context.parseColor(runProperties2["a:solidFill"]);
|
|
8683
8452
|
if (color2) {
|
|
8684
8453
|
run.color = color2;
|
|
8685
8454
|
}
|
|
8686
8455
|
}
|
|
8687
|
-
const fontFamily = runFontFamily(
|
|
8456
|
+
const fontFamily = runFontFamily(runProperties2);
|
|
8688
8457
|
if (fontFamily) {
|
|
8689
8458
|
run.fontFamily = fontFamily;
|
|
8690
8459
|
}
|
|
8691
|
-
const baseline = parseInt(String(
|
|
8460
|
+
const baseline = parseInt(String(runProperties2["@_baseline"] ?? ""), 10);
|
|
8692
8461
|
if (Number.isFinite(baseline) && baseline !== 0) {
|
|
8693
8462
|
run.baseline = baseline;
|
|
8694
8463
|
}
|
|
8695
|
-
const spacing = parseInt(String(
|
|
8464
|
+
const spacing = parseInt(String(runProperties2["@_spc"] ?? ""), 10);
|
|
8696
8465
|
if (Number.isFinite(spacing) && spacing !== 0) {
|
|
8697
8466
|
run.characterSpacing = spacing;
|
|
8698
8467
|
}
|
|
@@ -8786,14 +8555,14 @@ function applyCellTextFormat(tableCell, style, context) {
|
|
|
8786
8555
|
hasStyle = true;
|
|
8787
8556
|
}
|
|
8788
8557
|
const firstRun = context.ensureArray(firstParagraph["a:r"])[0];
|
|
8789
|
-
const
|
|
8790
|
-
if (!
|
|
8558
|
+
const runProperties2 = firstRun?.["a:rPr"];
|
|
8559
|
+
if (!runProperties2) {
|
|
8791
8560
|
if (!hasContent(tableCell, context)) {
|
|
8792
8561
|
hasStyle = applyEndParagraphSize(firstParagraph, style) || hasStyle;
|
|
8793
8562
|
}
|
|
8794
8563
|
return hasStyle;
|
|
8795
8564
|
}
|
|
8796
|
-
hasStyle = applyRunProperties2(
|
|
8565
|
+
hasStyle = applyRunProperties2(runProperties2, style, context) || hasStyle;
|
|
8797
8566
|
return hasStyle;
|
|
8798
8567
|
}
|
|
8799
8568
|
function hasContent(tableCell, context) {
|
|
@@ -8815,26 +8584,26 @@ function applyEndParagraphSize(paragraph, style) {
|
|
|
8815
8584
|
style.fontSize = size / 100;
|
|
8816
8585
|
return true;
|
|
8817
8586
|
}
|
|
8818
|
-
function applyRunProperties2(
|
|
8587
|
+
function applyRunProperties2(runProperties2, style, context) {
|
|
8819
8588
|
let hasStyle = false;
|
|
8820
|
-
if (
|
|
8589
|
+
if (runProperties2["@_b"] === "1") {
|
|
8821
8590
|
style.bold = true;
|
|
8822
8591
|
hasStyle = true;
|
|
8823
8592
|
}
|
|
8824
|
-
if (
|
|
8593
|
+
if (runProperties2["@_i"] === "1") {
|
|
8825
8594
|
style.italic = true;
|
|
8826
8595
|
hasStyle = true;
|
|
8827
8596
|
}
|
|
8828
|
-
if (
|
|
8597
|
+
if (runProperties2["@_u"] && runProperties2["@_u"] !== "none") {
|
|
8829
8598
|
style.underline = true;
|
|
8830
8599
|
hasStyle = true;
|
|
8831
8600
|
}
|
|
8832
|
-
if (
|
|
8833
|
-
style.fontSize = parseInt(String(
|
|
8601
|
+
if (runProperties2["@_sz"]) {
|
|
8602
|
+
style.fontSize = parseInt(String(runProperties2["@_sz"]), 10) / 100;
|
|
8834
8603
|
hasStyle = true;
|
|
8835
8604
|
}
|
|
8836
|
-
if (
|
|
8837
|
-
const textColor = context.parseColor(
|
|
8605
|
+
if (runProperties2["a:solidFill"]) {
|
|
8606
|
+
const textColor = context.parseColor(runProperties2["a:solidFill"]);
|
|
8838
8607
|
if (textColor) {
|
|
8839
8608
|
style.color = textColor;
|
|
8840
8609
|
hasStyle = true;
|
|
@@ -8842,7 +8611,7 @@ function applyRunProperties2(runProperties, style, context) {
|
|
|
8842
8611
|
}
|
|
8843
8612
|
for (const key2 of ["a:latin", "a:ea", "a:cs"]) {
|
|
8844
8613
|
const typeface = String(
|
|
8845
|
-
|
|
8614
|
+
runProperties2[key2]?.["@_typeface"] ?? ""
|
|
8846
8615
|
).trim();
|
|
8847
8616
|
if (typeface) {
|
|
8848
8617
|
style.fontFamily = typeface;
|
|
@@ -8850,11 +8619,11 @@ function applyRunProperties2(runProperties, style, context) {
|
|
|
8850
8619
|
break;
|
|
8851
8620
|
}
|
|
8852
8621
|
}
|
|
8853
|
-
hasStyle = applyTextEffects(
|
|
8622
|
+
hasStyle = applyTextEffects(runProperties2, style, context) || hasStyle;
|
|
8854
8623
|
return hasStyle;
|
|
8855
8624
|
}
|
|
8856
|
-
function applyTextEffects(
|
|
8857
|
-
const effectLst =
|
|
8625
|
+
function applyTextEffects(runProperties2, style, context) {
|
|
8626
|
+
const effectLst = runProperties2["a:effectLst"];
|
|
8858
8627
|
if (!effectLst) {
|
|
8859
8628
|
return false;
|
|
8860
8629
|
}
|
|
@@ -36897,6 +36666,9 @@ function isEotFormat(data) {
|
|
|
36897
36666
|
const magic = readUint16LE(data, EOT_MAGIC_OFFSET);
|
|
36898
36667
|
return magic === EOT_MAGIC;
|
|
36899
36668
|
}
|
|
36669
|
+
function readEotFsType(data) {
|
|
36670
|
+
return isEotFormat(data) ? readUint16LE(data, 32) : void 0;
|
|
36671
|
+
}
|
|
36900
36672
|
function parseEotHeader(data) {
|
|
36901
36673
|
if (!isEotFormat(data)) {
|
|
36902
36674
|
return null;
|
|
@@ -36986,6 +36758,9 @@ function extractFontFromEot(data) {
|
|
|
36986
36758
|
}
|
|
36987
36759
|
|
|
36988
36760
|
// pptx/core/utils/deferred-embedded-font.ts
|
|
36761
|
+
function fsTypeField(source) {
|
|
36762
|
+
return source.fsType === void 0 ? {} : { fsType: source.fsType };
|
|
36763
|
+
}
|
|
36989
36764
|
function resolveEmbeddedFontGuid(source) {
|
|
36990
36765
|
if (isEotFormat(source.originalPartBytes)) {
|
|
36991
36766
|
return void 0;
|
|
@@ -37085,15 +36860,16 @@ function decodeEmbeddedFontPart(source) {
|
|
|
37085
36860
|
partPath,
|
|
37086
36861
|
fontGuid,
|
|
37087
36862
|
originalRId: source.originalRId,
|
|
37088
|
-
originalPartBytes
|
|
36863
|
+
originalPartBytes,
|
|
36864
|
+
...fsTypeField(source)
|
|
37089
36865
|
};
|
|
37090
36866
|
} catch {
|
|
37091
36867
|
return null;
|
|
37092
36868
|
}
|
|
37093
36869
|
}
|
|
37094
|
-
function createDeferredEmbeddedFont(source) {
|
|
36870
|
+
function createDeferredEmbeddedFont(source, options2 = {}) {
|
|
37095
36871
|
const fontGuid = resolveEmbeddedFontGuid(source);
|
|
37096
|
-
let fields;
|
|
36872
|
+
let fields = options2.withheld ? { dataUrl: "", format: void 0, rawFontData: void 0 } : void 0;
|
|
37097
36873
|
let pending;
|
|
37098
36874
|
const decode = () => {
|
|
37099
36875
|
if (!fields) {
|
|
@@ -37131,7 +36907,8 @@ function createDeferredEmbeddedFont(source) {
|
|
|
37131
36907
|
partPath: source.partPath,
|
|
37132
36908
|
fontGuid,
|
|
37133
36909
|
originalRId: source.originalRId,
|
|
37134
|
-
originalPartBytes: source.originalPartBytes
|
|
36910
|
+
originalPartBytes: source.originalPartBytes,
|
|
36911
|
+
...fsTypeField(source)
|
|
37135
36912
|
};
|
|
37136
36913
|
Object.defineProperties(font, {
|
|
37137
36914
|
load: {
|
|
@@ -37143,16 +36920,96 @@ function createDeferredEmbeddedFont(source) {
|
|
|
37143
36920
|
});
|
|
37144
36921
|
return font;
|
|
37145
36922
|
}
|
|
36923
|
+
function createWithheldEmbeddedFont(source) {
|
|
36924
|
+
return createDeferredEmbeddedFont(source, { withheld: true });
|
|
36925
|
+
}
|
|
37146
36926
|
function shouldSaveEmbeddedFontVerbatim(font) {
|
|
37147
|
-
if (font.
|
|
37148
|
-
return false;
|
|
37149
|
-
}
|
|
37150
|
-
if (!font.originalRId || !font.partPath) {
|
|
36927
|
+
if (!font.originalPartBytes?.length || !font.originalRId || !font.partPath) {
|
|
37151
36928
|
return false;
|
|
37152
36929
|
}
|
|
37153
36930
|
return font.isLoaded === false || !font.rawFontData?.length;
|
|
37154
36931
|
}
|
|
37155
36932
|
|
|
36933
|
+
// text/truetype/embedding.ts
|
|
36934
|
+
var RESTRICTED = 2;
|
|
36935
|
+
var PREVIEW_PRINT = 4;
|
|
36936
|
+
var EDITABLE = 8;
|
|
36937
|
+
var NO_SUBSETTING = 256;
|
|
36938
|
+
var BITMAP_ONLY = 512;
|
|
36939
|
+
function embeddingPermission(fsType) {
|
|
36940
|
+
const licence = fsType & EDITABLE ? "editable" : fsType & PREVIEW_PRINT ? "preview-print" : fsType & RESTRICTED ? "restricted" : "installable";
|
|
36941
|
+
return {
|
|
36942
|
+
licence,
|
|
36943
|
+
noSubsetting: (fsType & NO_SUBSETTING) !== 0,
|
|
36944
|
+
bitmapOnly: (fsType & BITMAP_ONLY) !== 0
|
|
36945
|
+
};
|
|
36946
|
+
}
|
|
36947
|
+
function mayDisplayEmbeddedFont(permission) {
|
|
36948
|
+
return permission.licence !== "restricted";
|
|
36949
|
+
}
|
|
36950
|
+
function mayEmbedFontInEditableDocument(permission) {
|
|
36951
|
+
return (permission.licence === "installable" || permission.licence === "editable") && !permission.bitmapOnly;
|
|
36952
|
+
}
|
|
36953
|
+
var SFNT_VERSIONS = /* @__PURE__ */ new Set([65536, 1330926671, 1953658213]);
|
|
36954
|
+
var TTC_TAG = 1953784678;
|
|
36955
|
+
var OS2_TAG = 1330851634;
|
|
36956
|
+
function readSfntFsType(data, header) {
|
|
36957
|
+
const byte = (offset) => header && offset < header.length ? header[offset] : data[offset];
|
|
36958
|
+
const u16 = (offset) => {
|
|
36959
|
+
const hi = byte(offset);
|
|
36960
|
+
const lo = byte(offset + 1);
|
|
36961
|
+
return hi === void 0 || lo === void 0 ? void 0 : hi << 8 | lo;
|
|
36962
|
+
};
|
|
36963
|
+
const u32 = (offset) => {
|
|
36964
|
+
const hi = u16(offset);
|
|
36965
|
+
const lo = u16(offset + 2);
|
|
36966
|
+
return hi === void 0 || lo === void 0 ? void 0 : hi * 65536 + lo;
|
|
36967
|
+
};
|
|
36968
|
+
let base = 0;
|
|
36969
|
+
if (u32(0) === TTC_TAG) {
|
|
36970
|
+
const first2 = u32(12);
|
|
36971
|
+
if (first2 === void 0) return void 0;
|
|
36972
|
+
base = first2;
|
|
36973
|
+
}
|
|
36974
|
+
const version = u32(base);
|
|
36975
|
+
if (version === void 0 || !SFNT_VERSIONS.has(version)) return void 0;
|
|
36976
|
+
const numTables = u16(base + 4) ?? 0;
|
|
36977
|
+
for (let i = 0; i < numTables; i++) {
|
|
36978
|
+
const record2 = base + 12 + i * 16;
|
|
36979
|
+
const tag = u32(record2);
|
|
36980
|
+
if (tag === void 0) return void 0;
|
|
36981
|
+
if (tag === OS2_TAG) {
|
|
36982
|
+
const offset = u32(record2 + 8);
|
|
36983
|
+
return offset === void 0 ? void 0 : u16(offset + 8);
|
|
36984
|
+
}
|
|
36985
|
+
}
|
|
36986
|
+
return void 0;
|
|
36987
|
+
}
|
|
36988
|
+
|
|
36989
|
+
// pptx/core/utils/embedded-font-permission.ts
|
|
36990
|
+
var OBFUSCATED_HEADER_BYTES = 32;
|
|
36991
|
+
function readEmbeddedFontPartFsType(partBytes, guid) {
|
|
36992
|
+
const eot = readEotFsType(partBytes);
|
|
36993
|
+
if (eot !== void 0) {
|
|
36994
|
+
return eot;
|
|
36995
|
+
}
|
|
36996
|
+
if (!guid) {
|
|
36997
|
+
return readSfntFsType(partBytes);
|
|
36998
|
+
}
|
|
36999
|
+
const header = deobfuscateFont(
|
|
37000
|
+
partBytes.subarray(0, Math.min(partBytes.length, OBFUSCATED_HEADER_BYTES)),
|
|
37001
|
+
guid
|
|
37002
|
+
);
|
|
37003
|
+
return readSfntFsType(partBytes, header);
|
|
37004
|
+
}
|
|
37005
|
+
function mayDisplayFontWithFsType(fsType) {
|
|
37006
|
+
return fsType === void 0 || mayDisplayEmbeddedFont(embeddingPermission(fsType));
|
|
37007
|
+
}
|
|
37008
|
+
function mayNewlyEmbedFontData(font, fontData) {
|
|
37009
|
+
const fsType = readSfntFsType(fontData) ?? font.fsType;
|
|
37010
|
+
return fsType === void 0 || mayEmbedFontInEditableDocument(embeddingPermission(fsType));
|
|
37011
|
+
}
|
|
37012
|
+
|
|
37156
37013
|
// pptx/core/core/runtime/header-footer-parts.ts
|
|
37157
37014
|
var DEFAULT_DATE_FIELD_TYPE = "datetime1";
|
|
37158
37015
|
function asArray2(value) {
|
|
@@ -62465,9 +62322,9 @@ function buildGroupPropertiesXml(rawGroupXml, xfrm) {
|
|
|
62465
62322
|
if (!rawProps) {
|
|
62466
62323
|
return { "a:xfrm": xfrm };
|
|
62467
62324
|
}
|
|
62468
|
-
const
|
|
62469
|
-
delete
|
|
62470
|
-
return { "a:xfrm": xfrm, ...
|
|
62325
|
+
const clone2 = cloneXmlNode(rawProps);
|
|
62326
|
+
delete clone2["a:xfrm"];
|
|
62327
|
+
return { "a:xfrm": xfrm, ...clone2 };
|
|
62471
62328
|
}
|
|
62472
62329
|
function appendGroupChildren2(grpXml2, entries) {
|
|
62473
62330
|
const extLst = grpXml2["p:extLst"];
|
|
@@ -63565,8 +63422,8 @@ var PptxHandlerRuntime18 = class extends PptxHandlerRuntime17 {
|
|
|
63565
63422
|
* Parse hyperlink-related properties (a:hlinkClick, a:hlinkMouseOver) from
|
|
63566
63423
|
* run-level XML and apply them to the given TextStyle.
|
|
63567
63424
|
*/
|
|
63568
|
-
applyHyperlinkStyle(style,
|
|
63569
|
-
const hyperlinkNode =
|
|
63425
|
+
applyHyperlinkStyle(style, runProperties2, relationshipMap) {
|
|
63426
|
+
const hyperlinkNode = runProperties2["a:hlinkClick"];
|
|
63570
63427
|
const hyperlinkRelationshipId = String(
|
|
63571
63428
|
hyperlinkNode?.["@_r:id"] || hyperlinkNode?.["@_id"] || ""
|
|
63572
63429
|
).trim();
|
|
@@ -63634,7 +63491,7 @@ var PptxHandlerRuntime18 = class extends PptxHandlerRuntime17 {
|
|
|
63634
63491
|
}
|
|
63635
63492
|
}
|
|
63636
63493
|
}
|
|
63637
|
-
const hlinkMouseOver =
|
|
63494
|
+
const hlinkMouseOver = runProperties2["a:hlinkMouseOver"];
|
|
63638
63495
|
if (hlinkMouseOver) {
|
|
63639
63496
|
const mouseOverRelId = String(
|
|
63640
63497
|
hlinkMouseOver["@_r:id"] || hlinkMouseOver["@_id"] || ""
|
|
@@ -63882,8 +63739,8 @@ var PptxHandlerRuntime18 = class extends PptxHandlerRuntime17 {
|
|
|
63882
63739
|
* (e.g. `a:outerShdw`, `a:glow`, `a:alphaInv`) is captured opaquely as
|
|
63883
63740
|
* raw XML so we don't duplicate the entire effect taxonomy here.
|
|
63884
63741
|
*/
|
|
63885
|
-
applyTextRunEffectDag(style,
|
|
63886
|
-
const effectDag =
|
|
63742
|
+
applyTextRunEffectDag(style, runProperties2) {
|
|
63743
|
+
const effectDag = runProperties2["a:effectDag"];
|
|
63887
63744
|
if (!effectDag) {
|
|
63888
63745
|
return;
|
|
63889
63746
|
}
|
|
@@ -63904,28 +63761,28 @@ var TEXT_FILL_ELEMENTS = [
|
|
|
63904
63761
|
"a:grpFill"
|
|
63905
63762
|
];
|
|
63906
63763
|
var PptxHandlerRuntime19 = class _PptxHandlerRuntime extends PptxHandlerRuntime18 {
|
|
63907
|
-
extractTextRunStyle(
|
|
63764
|
+
extractTextRunStyle(runProperties2, align, relationshipMap, includeDefaultAlignment = true, slidePath) {
|
|
63908
63765
|
const style = includeDefaultAlignment ? { align } : {};
|
|
63909
|
-
if (!
|
|
63766
|
+
if (!runProperties2) {
|
|
63910
63767
|
return style;
|
|
63911
63768
|
}
|
|
63912
|
-
if (
|
|
63913
|
-
const points6 = parseInt(
|
|
63769
|
+
if (runProperties2["@_sz"]) {
|
|
63770
|
+
const points6 = parseInt(runProperties2["@_sz"]) / 100;
|
|
63914
63771
|
style.fontSize = points6 * (96 / 72);
|
|
63915
63772
|
}
|
|
63916
|
-
const bold = this.parseOptionalBooleanAttr(
|
|
63773
|
+
const bold = this.parseOptionalBooleanAttr(runProperties2["@_b"]);
|
|
63917
63774
|
if (bold !== void 0) {
|
|
63918
63775
|
style.bold = bold;
|
|
63919
63776
|
}
|
|
63920
|
-
const italic = this.parseOptionalBooleanAttr(
|
|
63777
|
+
const italic = this.parseOptionalBooleanAttr(runProperties2["@_i"]);
|
|
63921
63778
|
if (italic !== void 0) {
|
|
63922
63779
|
style.italic = italic;
|
|
63923
63780
|
}
|
|
63924
|
-
if (
|
|
63925
|
-
const underlineToken = String(
|
|
63781
|
+
if (runProperties2["@_u"] !== void 0) {
|
|
63782
|
+
const underlineToken = String(runProperties2["@_u"] || "").trim().toLowerCase();
|
|
63926
63783
|
style.underline = underlineToken.length > 0 && underlineToken !== "none" && underlineToken !== "0" && underlineToken !== "false";
|
|
63927
63784
|
if (style.underline) {
|
|
63928
|
-
const rawU = String(
|
|
63785
|
+
const rawU = String(runProperties2["@_u"] || "").trim();
|
|
63929
63786
|
if (rawU.length > 0 && rawU !== "none") {
|
|
63930
63787
|
style.underlineStyle = rawU;
|
|
63931
63788
|
}
|
|
@@ -63933,8 +63790,8 @@ var PptxHandlerRuntime19 = class _PptxHandlerRuntime extends PptxHandlerRuntime1
|
|
|
63933
63790
|
style.underlineExplicitNone = true;
|
|
63934
63791
|
}
|
|
63935
63792
|
}
|
|
63936
|
-
const uFill =
|
|
63937
|
-
const uLn =
|
|
63793
|
+
const uFill = runProperties2["a:uFill"];
|
|
63794
|
+
const uLn = runProperties2["a:uLn"];
|
|
63938
63795
|
const underlineColorSource = uFill?.["a:solidFill"] || uLn?.["a:solidFill"];
|
|
63939
63796
|
if (underlineColorSource) {
|
|
63940
63797
|
const underlineColor = this.parseColor(underlineColorSource);
|
|
@@ -63976,20 +63833,20 @@ var PptxHandlerRuntime19 = class _PptxHandlerRuntime extends PptxHandlerRuntime1
|
|
|
63976
63833
|
style.underlineLine = line;
|
|
63977
63834
|
}
|
|
63978
63835
|
}
|
|
63979
|
-
if (
|
|
63836
|
+
if (runProperties2["a:uLnTx"] !== void 0) {
|
|
63980
63837
|
style.underlineLineFollowsText = true;
|
|
63981
63838
|
}
|
|
63982
|
-
if (
|
|
63839
|
+
if (runProperties2["a:uFillTx"] !== void 0) {
|
|
63983
63840
|
style.underlineFillFollowsText = true;
|
|
63984
63841
|
}
|
|
63985
|
-
if (
|
|
63986
|
-
const strikeToken = String(
|
|
63842
|
+
if (runProperties2["@_strike"] !== void 0) {
|
|
63843
|
+
const strikeToken = String(runProperties2["@_strike"] || "").trim().toLowerCase();
|
|
63987
63844
|
style.strikethrough = strikeToken.length > 0 && strikeToken !== "nostrike" && strikeToken !== "none" && strikeToken !== "0" && strikeToken !== "false";
|
|
63988
63845
|
if (style.strikethrough) {
|
|
63989
63846
|
style.strikeType = strikeToken === "dblstrike" ? "dblStrike" : "sngStrike";
|
|
63990
63847
|
}
|
|
63991
63848
|
}
|
|
63992
|
-
const textLn =
|
|
63849
|
+
const textLn = runProperties2["a:ln"];
|
|
63993
63850
|
if (textLn) {
|
|
63994
63851
|
const textOutlineW = Number.parseInt(String(textLn["@_w"] || ""), 10);
|
|
63995
63852
|
if (Number.isFinite(textOutlineW) && textOutlineW > 0) {
|
|
@@ -64007,31 +63864,31 @@ var PptxHandlerRuntime19 = class _PptxHandlerRuntime extends PptxHandlerRuntime1
|
|
|
64007
63864
|
}
|
|
64008
63865
|
}
|
|
64009
63866
|
}
|
|
64010
|
-
if (
|
|
63867
|
+
if (runProperties2["a:noFill"] !== void 0) {
|
|
64011
63868
|
style.textFillNone = true;
|
|
64012
|
-
} else if (TEXT_FILL_ELEMENTS.some((name) =>
|
|
63869
|
+
} else if (TEXT_FILL_ELEMENTS.some((name) => runProperties2[name] !== void 0)) {
|
|
64013
63870
|
style.textFillNone = false;
|
|
64014
63871
|
}
|
|
64015
|
-
if (
|
|
64016
|
-
const baselineVal = Number.parseInt(String(
|
|
63872
|
+
if (runProperties2["@_baseline"] !== void 0) {
|
|
63873
|
+
const baselineVal = Number.parseInt(String(runProperties2["@_baseline"]), 10);
|
|
64017
63874
|
if (Number.isFinite(baselineVal)) {
|
|
64018
63875
|
style.baseline = baselineVal;
|
|
64019
63876
|
}
|
|
64020
63877
|
}
|
|
64021
|
-
if (
|
|
64022
|
-
const spcVal = Number.parseInt(String(
|
|
63878
|
+
if (runProperties2["@_spc"] !== void 0) {
|
|
63879
|
+
const spcVal = Number.parseInt(String(runProperties2["@_spc"]), 10);
|
|
64023
63880
|
if (Number.isFinite(spcVal)) {
|
|
64024
63881
|
style.characterSpacing = spcVal;
|
|
64025
63882
|
}
|
|
64026
63883
|
}
|
|
64027
|
-
if (
|
|
64028
|
-
const kernVal = Number.parseInt(String(
|
|
63884
|
+
if (runProperties2["@_kern"] !== void 0) {
|
|
63885
|
+
const kernVal = Number.parseInt(String(runProperties2["@_kern"]), 10);
|
|
64029
63886
|
if (Number.isFinite(kernVal)) {
|
|
64030
63887
|
style.kerning = kernVal;
|
|
64031
63888
|
}
|
|
64032
63889
|
}
|
|
64033
|
-
if (
|
|
64034
|
-
const highlightNode = xmlChild(
|
|
63890
|
+
if (runProperties2["a:highlight"]) {
|
|
63891
|
+
const highlightNode = xmlChild(runProperties2, "a:highlight");
|
|
64035
63892
|
const highlightHex = this.parseColor(highlightNode);
|
|
64036
63893
|
if (highlightHex) {
|
|
64037
63894
|
style.highlightColor = highlightHex;
|
|
@@ -64041,7 +63898,7 @@ var PptxHandlerRuntime19 = class _PptxHandlerRuntime extends PptxHandlerRuntime1
|
|
|
64041
63898
|
style.highlightColorXml = highlightXml;
|
|
64042
63899
|
}
|
|
64043
63900
|
}
|
|
64044
|
-
const textFillVariants = this.extractTextFillVariants(
|
|
63901
|
+
const textFillVariants = this.extractTextFillVariants(runProperties2);
|
|
64045
63902
|
if (textFillVariants.textFillGradient) {
|
|
64046
63903
|
style.textFillGradient = textFillVariants.textFillGradient;
|
|
64047
63904
|
style.textFillGradientStops = textFillVariants.textFillGradientStops;
|
|
@@ -64067,14 +63924,14 @@ var PptxHandlerRuntime19 = class _PptxHandlerRuntime extends PptxHandlerRuntime1
|
|
|
64067
63924
|
style.textFillBlipMode = resolved.mode;
|
|
64068
63925
|
}
|
|
64069
63926
|
}
|
|
64070
|
-
const rtlElement =
|
|
64071
|
-
const runRtl = rtlElement !== void 0 ? this.parseOptionalBooleanAttr(xmlAttr(xmlChild(
|
|
63927
|
+
const rtlElement = runProperties2["a:rtl"];
|
|
63928
|
+
const runRtl = rtlElement !== void 0 ? this.parseOptionalBooleanAttr(xmlAttr(xmlChild(runProperties2, "a:rtl"), "val")) ?? true : this.parseOptionalBooleanAttr(runProperties2["@_rtl"]);
|
|
64072
63929
|
if (runRtl !== void 0) {
|
|
64073
63930
|
style.rtl = runRtl;
|
|
64074
63931
|
}
|
|
64075
|
-
const latin = xmlChild(
|
|
64076
|
-
const eastAsian = xmlChild(
|
|
64077
|
-
const complexScript = xmlChild(
|
|
63932
|
+
const latin = xmlChild(runProperties2, "a:latin");
|
|
63933
|
+
const eastAsian = xmlChild(runProperties2, "a:ea");
|
|
63934
|
+
const complexScript = xmlChild(runProperties2, "a:cs");
|
|
64078
63935
|
const latinTypefaceToken = xmlAttr(latin, "typeface");
|
|
64079
63936
|
const eaTypefaceToken = xmlAttr(eastAsian, "typeface");
|
|
64080
63937
|
const csTypefaceToken = xmlAttr(complexScript, "typeface");
|
|
@@ -64100,7 +63957,7 @@ var PptxHandlerRuntime19 = class _PptxHandlerRuntime extends PptxHandlerRuntime1
|
|
|
64100
63957
|
if (csTypeface) {
|
|
64101
63958
|
style.complexScriptFont = csTypeface;
|
|
64102
63959
|
}
|
|
64103
|
-
const solidFill2 = xmlChild(
|
|
63960
|
+
const solidFill2 = xmlChild(runProperties2, "a:solidFill");
|
|
64104
63961
|
if (solidFill2) {
|
|
64105
63962
|
style.color = this.parseColor(solidFill2);
|
|
64106
63963
|
const colorXml2 = extractColorChoiceXml(solidFill2);
|
|
@@ -64112,59 +63969,59 @@ var PptxHandlerRuntime19 = class _PptxHandlerRuntime extends PptxHandlerRuntime1
|
|
|
64112
63969
|
style.colorRef = colorRef;
|
|
64113
63970
|
}
|
|
64114
63971
|
}
|
|
64115
|
-
this.applyHyperlinkStyle(style,
|
|
64116
|
-
const capAttr = String(
|
|
63972
|
+
this.applyHyperlinkStyle(style, runProperties2, relationshipMap);
|
|
63973
|
+
const capAttr = String(runProperties2["@_cap"] || "").trim().toLowerCase();
|
|
64117
63974
|
if (capAttr === "all" || capAttr === "small") {
|
|
64118
63975
|
style.textCaps = capAttr;
|
|
64119
63976
|
} else if (capAttr === "none") {
|
|
64120
63977
|
style.textCaps = "none";
|
|
64121
63978
|
style.textCapsExplicitNone = true;
|
|
64122
63979
|
}
|
|
64123
|
-
const symNode = xmlChild(
|
|
63980
|
+
const symNode = xmlChild(runProperties2, "a:sym");
|
|
64124
63981
|
if (symNode) {
|
|
64125
63982
|
const symTypeface = this.normalizeTypefaceToken(xmlAttr(symNode, "typeface") || "");
|
|
64126
63983
|
if (symTypeface) {
|
|
64127
63984
|
style.symbolFont = symTypeface;
|
|
64128
63985
|
}
|
|
64129
63986
|
}
|
|
64130
|
-
const langAttr = String(
|
|
63987
|
+
const langAttr = String(runProperties2["@_lang"] || "").trim();
|
|
64131
63988
|
if (langAttr) {
|
|
64132
63989
|
style.language = langAttr;
|
|
64133
63990
|
}
|
|
64134
|
-
const kumimoji = this.parseOptionalBooleanAttr(
|
|
63991
|
+
const kumimoji = this.parseOptionalBooleanAttr(runProperties2["@_kumimoji"]);
|
|
64135
63992
|
if (kumimoji !== void 0) {
|
|
64136
63993
|
style.kumimoji = kumimoji;
|
|
64137
63994
|
}
|
|
64138
|
-
const normalizeH = this.parseOptionalBooleanAttr(
|
|
63995
|
+
const normalizeH = this.parseOptionalBooleanAttr(runProperties2["@_normalizeH"]);
|
|
64139
63996
|
if (normalizeH !== void 0) {
|
|
64140
63997
|
style.normalizeHeight = normalizeH;
|
|
64141
63998
|
}
|
|
64142
|
-
const noProof = this.parseOptionalBooleanAttr(
|
|
63999
|
+
const noProof = this.parseOptionalBooleanAttr(runProperties2["@_noProof"]);
|
|
64143
64000
|
if (noProof !== void 0) {
|
|
64144
64001
|
style.noProof = noProof;
|
|
64145
64002
|
}
|
|
64146
|
-
const dirty = this.parseOptionalBooleanAttr(
|
|
64003
|
+
const dirty = this.parseOptionalBooleanAttr(runProperties2["@_dirty"]);
|
|
64147
64004
|
if (dirty !== void 0) {
|
|
64148
64005
|
style.dirty = dirty;
|
|
64149
64006
|
}
|
|
64150
|
-
const err = this.parseOptionalBooleanAttr(
|
|
64007
|
+
const err = this.parseOptionalBooleanAttr(runProperties2["@_err"]);
|
|
64151
64008
|
if (err !== void 0) {
|
|
64152
64009
|
style.spellingError = err;
|
|
64153
64010
|
}
|
|
64154
|
-
const smtClean = this.parseOptionalBooleanAttr(
|
|
64011
|
+
const smtClean = this.parseOptionalBooleanAttr(runProperties2["@_smtClean"]);
|
|
64155
64012
|
if (smtClean !== void 0) {
|
|
64156
64013
|
style.smartTagClean = smtClean;
|
|
64157
64014
|
}
|
|
64158
|
-
const bmk = String(
|
|
64015
|
+
const bmk = String(runProperties2["@_bmk"] || "").trim();
|
|
64159
64016
|
if (bmk) {
|
|
64160
64017
|
style.bookmark = bmk;
|
|
64161
64018
|
}
|
|
64162
|
-
const altLang = String(
|
|
64019
|
+
const altLang = String(runProperties2["@_altLang"] || "").trim();
|
|
64163
64020
|
if (altLang) {
|
|
64164
64021
|
style.altLanguage = altLang;
|
|
64165
64022
|
}
|
|
64166
|
-
if (
|
|
64167
|
-
const smtIdRaw = Number.parseInt(String(
|
|
64023
|
+
if (runProperties2["@_smtId"] !== void 0) {
|
|
64024
|
+
const smtIdRaw = Number.parseInt(String(runProperties2["@_smtId"]), 10);
|
|
64168
64025
|
if (Number.isFinite(smtIdRaw)) {
|
|
64169
64026
|
style.smartTagId = smtIdRaw;
|
|
64170
64027
|
}
|
|
@@ -64173,16 +64030,16 @@ var PptxHandlerRuntime19 = class _PptxHandlerRuntime extends PptxHandlerRuntime1
|
|
|
64173
64030
|
this.applyTextFontMetadata(style, eastAsian, "eastAsia");
|
|
64174
64031
|
this.applyTextFontMetadata(style, complexScript, "complexScript");
|
|
64175
64032
|
this.applyTextFontMetadata(style, symNode, "symbol");
|
|
64176
|
-
const runEffectList =
|
|
64033
|
+
const runEffectList = runProperties2["a:effectLst"];
|
|
64177
64034
|
if (runEffectList && typeof runEffectList === "object") {
|
|
64178
64035
|
this.applyTextRunEffects(style, runEffectList);
|
|
64179
64036
|
}
|
|
64180
64037
|
if (includeDefaultAlignment && runEffectList !== void 0 && (typeof runEffectList !== "object" || Object.keys(runEffectList).length === 0)) {
|
|
64181
64038
|
style.textEffectsExplicitNone = true;
|
|
64182
64039
|
}
|
|
64183
|
-
this.applyTextRunEffectDag(style,
|
|
64040
|
+
this.applyTextRunEffectDag(style, runProperties2);
|
|
64184
64041
|
if (includeDefaultAlignment) {
|
|
64185
|
-
const runExtLst =
|
|
64042
|
+
const runExtLst = runProperties2["a:extLst"];
|
|
64186
64043
|
if (runExtLst && typeof runExtLst === "object") {
|
|
64187
64044
|
style.runPropertiesExtLstXml = runExtLst;
|
|
64188
64045
|
}
|
|
@@ -64293,7 +64150,7 @@ var PptxHandlerRuntime20 = class extends PptxHandlerRuntime19 {
|
|
|
64293
64150
|
authoredRunStyle: authored,
|
|
64294
64151
|
inheritedRunStyle: paragraphDefaultStyle
|
|
64295
64152
|
});
|
|
64296
|
-
const appendRunSegment = (value,
|
|
64153
|
+
const appendRunSegment = (value, runProperties2) => {
|
|
64297
64154
|
if (value === void 0 || value === null) {
|
|
64298
64155
|
return;
|
|
64299
64156
|
}
|
|
@@ -64302,7 +64159,7 @@ var PptxHandlerRuntime20 = class extends PptxHandlerRuntime19 {
|
|
|
64302
64159
|
return;
|
|
64303
64160
|
}
|
|
64304
64161
|
const runStyle = withAuthoredSplit(
|
|
64305
|
-
this.extractTextRunStyle(
|
|
64162
|
+
this.extractTextRunStyle(runProperties2, paragraphAlign, relationshipMap)
|
|
64306
64163
|
);
|
|
64307
64164
|
segments.push({
|
|
64308
64165
|
text: runText2,
|
|
@@ -65099,7 +64956,7 @@ var PptxHandlerRuntime22 = class _PptxHandlerRuntime extends PptxHandlerRuntime2
|
|
|
65099
64956
|
* `paragraphs` gives each paragraph's own alignment; without it only the
|
|
65100
64957
|
* first paragraph takes the cell's.
|
|
65101
64958
|
*/
|
|
65102
|
-
writeTableCellStyle(xmlCell, style, paragraphs) {
|
|
64959
|
+
writeTableCellStyle(xmlCell, style, paragraphs, runsCarryFormatting = false) {
|
|
65103
64960
|
const rawTcPr = xmlCell["a:tcPr"];
|
|
65104
64961
|
const existingTcPr = rawTcPr && typeof rawTcPr === "object" ? rawTcPr : void 0;
|
|
65105
64962
|
const tcPr = existingTcPr ?? {};
|
|
@@ -65146,7 +65003,7 @@ var PptxHandlerRuntime22 = class _PptxHandlerRuntime extends PptxHandlerRuntime2
|
|
|
65146
65003
|
}
|
|
65147
65004
|
delete tcPr["a:tcMar"];
|
|
65148
65005
|
writeDiagonalBorders(tcPr, style, _PptxHandlerRuntime.EMU_PER_PX);
|
|
65149
|
-
if (!isRichCellTxBody(xmlCell["a:txBody"], this.ensureArray.bind(this))) {
|
|
65006
|
+
if (!runsCarryFormatting && !isRichCellTxBody(xmlCell["a:txBody"], this.ensureArray.bind(this))) {
|
|
65150
65007
|
writeCellTextFormatting(xmlCell, style, this.ensureArray.bind(this), paragraphs);
|
|
65151
65008
|
}
|
|
65152
65009
|
const reordered = reorderObjectKeys(tcPr, TC_PR_BORDERS_ORDER);
|
|
@@ -66058,9 +65915,11 @@ var PptxHandlerRuntime24 = class _PptxHandlerRuntime extends PptxHandlerRuntime2
|
|
|
66058
65915
|
*/
|
|
66059
65916
|
serializeTableDataToXml(shape2, tableData, writeRichCellText) {
|
|
66060
65917
|
const writeCellText = (xmlCell, cell) => {
|
|
66061
|
-
if (
|
|
66062
|
-
|
|
65918
|
+
if (writeRichCellText?.(xmlCell, cell)) {
|
|
65919
|
+
return true;
|
|
66063
65920
|
}
|
|
65921
|
+
this.writeTableCellText(xmlCell, cell.text);
|
|
65922
|
+
return false;
|
|
66064
65923
|
};
|
|
66065
65924
|
try {
|
|
66066
65925
|
const graphicData = xmlPath(shape2, "a:graphic", "a:graphicData");
|
|
@@ -66098,14 +65957,12 @@ var PptxHandlerRuntime24 = class _PptxHandlerRuntime extends PptxHandlerRuntime2
|
|
|
66098
65957
|
if (!xmlCell) {
|
|
66099
65958
|
continue;
|
|
66100
65959
|
}
|
|
66101
|
-
|
|
66102
|
-
writeCellText(xmlCell, cell);
|
|
66103
|
-
}
|
|
65960
|
+
const richText = cell.text !== void 0 && writeCellText(xmlCell, cell);
|
|
66104
65961
|
if (styleChanged) {
|
|
66105
65962
|
clearCellFormattingForStyleChange(xmlCell, cell.style);
|
|
66106
65963
|
}
|
|
66107
65964
|
if (cell.style) {
|
|
66108
|
-
this.writeTableCellStyle(xmlCell, cell.style, cell.paragraphs);
|
|
65965
|
+
this.writeTableCellStyle(xmlCell, cell.style, cell.paragraphs, richText);
|
|
66109
65966
|
}
|
|
66110
65967
|
serializeCellExtraAttributes(xmlCell, cell.extraAttributes);
|
|
66111
65968
|
}
|
|
@@ -66124,14 +65981,12 @@ var PptxHandlerRuntime24 = class _PptxHandlerRuntime extends PptxHandlerRuntime2
|
|
|
66124
65981
|
const cell = dataRow.cells[cIdx];
|
|
66125
65982
|
const xmlCell = xmlCells[cIdx];
|
|
66126
65983
|
serializeCellMergeAttributes(xmlCell, cell);
|
|
66127
|
-
|
|
66128
|
-
writeCellText(xmlCell, cell);
|
|
66129
|
-
}
|
|
65984
|
+
const richText = cell.text !== void 0 && writeCellText(xmlCell, cell);
|
|
66130
65985
|
if (styleChanged) {
|
|
66131
65986
|
clearCellFormattingForStyleChange(xmlCell, cell.style);
|
|
66132
65987
|
}
|
|
66133
65988
|
if (cell.style) {
|
|
66134
|
-
this.writeTableCellStyle(xmlCell, cell.style, cell.paragraphs);
|
|
65989
|
+
this.writeTableCellStyle(xmlCell, cell.style, cell.paragraphs, richText);
|
|
66135
65990
|
}
|
|
66136
65991
|
serializeCellExtraAttributes(xmlCell, cell.extraAttributes);
|
|
66137
65992
|
recordTableParagraphOrder(xmlCell, cell.textRuns);
|
|
@@ -67301,37 +67156,37 @@ var PptxHandlerRuntime24 = class _PptxHandlerRuntime extends PptxHandlerRuntime2
|
|
|
67301
67156
|
*/
|
|
67302
67157
|
buildNewSeriesXml(seriesIndex, seriesData, categories, templateSeries, dateCategories, isLineFamily = false) {
|
|
67303
67158
|
if (templateSeries) {
|
|
67304
|
-
const
|
|
67305
|
-
regenerateClonedUniqueId(
|
|
67306
|
-
const idxNode = this.xmlLookupService.getChildByLocalName(
|
|
67159
|
+
const clone2 = JSON.parse(JSON.stringify(templateSeries));
|
|
67160
|
+
regenerateClonedUniqueId(clone2, (key2) => this.compatibilityService.getXmlLocalName(key2));
|
|
67161
|
+
const idxNode = this.xmlLookupService.getChildByLocalName(clone2, "idx");
|
|
67307
67162
|
if (idxNode) {
|
|
67308
67163
|
idxNode["@_val"] = String(seriesIndex);
|
|
67309
67164
|
}
|
|
67310
|
-
const orderNode = this.xmlLookupService.getChildByLocalName(
|
|
67165
|
+
const orderNode = this.xmlLookupService.getChildByLocalName(clone2, "order");
|
|
67311
67166
|
if (orderNode) {
|
|
67312
67167
|
orderNode["@_val"] = String(seriesIndex);
|
|
67313
67168
|
}
|
|
67314
|
-
const txNode = this.xmlLookupService.getChildByLocalName(
|
|
67169
|
+
const txNode = this.xmlLookupService.getChildByLocalName(clone2, "tx");
|
|
67315
67170
|
if (txNode) {
|
|
67316
67171
|
this.updateChartCacheValues(txNode, false, [seriesData.name]);
|
|
67317
67172
|
}
|
|
67318
|
-
const catNode = this.xmlLookupService.getChildByLocalName(
|
|
67173
|
+
const catNode = this.xmlLookupService.getChildByLocalName(clone2, "cat") || this.xmlLookupService.getChildByLocalName(clone2, "xVal");
|
|
67319
67174
|
if (catNode) {
|
|
67320
67175
|
const dateValues = dateCategories?.values.map(String);
|
|
67321
67176
|
this.updateChartCacheValues(catNode, Boolean(dateValues), dateValues ?? categories);
|
|
67322
67177
|
}
|
|
67323
|
-
const valNode = this.xmlLookupService.getChildByLocalName(
|
|
67178
|
+
const valNode = this.xmlLookupService.getChildByLocalName(clone2, "val") || this.xmlLookupService.getChildByLocalName(clone2, "yVal");
|
|
67324
67179
|
if (valNode) {
|
|
67325
67180
|
this.updateChartCacheValues(valNode, true, seriesData.values.map(String));
|
|
67326
67181
|
}
|
|
67327
67182
|
applySeriesGradientToXml(
|
|
67328
|
-
|
|
67183
|
+
clone2,
|
|
67329
67184
|
seriesData.gradientFill,
|
|
67330
67185
|
(key2) => this.compatibilityService.getXmlLocalName(key2),
|
|
67331
67186
|
this.chartGradientWriteOptions(isLineFamily)
|
|
67332
67187
|
);
|
|
67333
67188
|
if (seriesData.color && !(seriesData.gradientFill && !isLineFamily)) {
|
|
67334
|
-
const spPr = this.xmlLookupService.getChildByLocalName(
|
|
67189
|
+
const spPr = this.xmlLookupService.getChildByLocalName(clone2, "spPr");
|
|
67335
67190
|
if (spPr) {
|
|
67336
67191
|
writeSeriesColorToSpPr(
|
|
67337
67192
|
spPr,
|
|
@@ -67342,7 +67197,7 @@ var PptxHandlerRuntime24 = class _PptxHandlerRuntime extends PptxHandlerRuntime2
|
|
|
67342
67197
|
);
|
|
67343
67198
|
}
|
|
67344
67199
|
}
|
|
67345
|
-
return
|
|
67200
|
+
return clone2;
|
|
67346
67201
|
}
|
|
67347
67202
|
const colorHex = (seriesData.color || "#4472C4").replace("#", "");
|
|
67348
67203
|
const ser = {
|
|
@@ -68658,6 +68513,15 @@ var PptxHandlerRuntime25 = class _PptxHandlerRuntime extends PptxHandlerRuntime2
|
|
|
68658
68513
|
rId = variant.originalRId;
|
|
68659
68514
|
bytesToWrite = variant.originalPartBytes;
|
|
68660
68515
|
} else {
|
|
68516
|
+
if (!mayNewlyEmbedFontData(variant, fontData)) {
|
|
68517
|
+
this.compatibilityService.reportWarning({
|
|
68518
|
+
code: "EMBEDDED_FONT_NOT_EMBEDDABLE",
|
|
68519
|
+
message: `Font "${typeface}" was not embedded: its licence (OS/2 fsType) does not allow embedding it in an editable presentation.`,
|
|
68520
|
+
scope: "save",
|
|
68521
|
+
xmlPath: `/p:presentation/p:embeddedFontLst/p:embeddedFont[@typeface="${typeface}"]`
|
|
68522
|
+
});
|
|
68523
|
+
continue;
|
|
68524
|
+
}
|
|
68661
68525
|
guid = variant.fontGuid ?? generateFontGuid();
|
|
68662
68526
|
const fileName = `{${guid}}.fntdata`;
|
|
68663
68527
|
fontPartPath = `ppt/fonts/${fileName}`;
|
|
@@ -68682,6 +68546,9 @@ var PptxHandlerRuntime25 = class _PptxHandlerRuntime extends PptxHandlerRuntime2
|
|
|
68682
68546
|
const variantKey = variant.bold && variant.italic ? "p:boldItalic" : variant.bold ? "p:bold" : variant.italic ? "p:italic" : "p:regular";
|
|
68683
68547
|
entry[variantKey] = { "@_r:id": rId };
|
|
68684
68548
|
}
|
|
68549
|
+
if (Object.keys(entry).length === 1) {
|
|
68550
|
+
continue;
|
|
68551
|
+
}
|
|
68685
68552
|
embeddedFontEntries.push(entry);
|
|
68686
68553
|
}
|
|
68687
68554
|
relsRoot.Relationship = relationships2;
|
|
@@ -68692,7 +68559,10 @@ var PptxHandlerRuntime25 = class _PptxHandlerRuntime extends PptxHandlerRuntime2
|
|
|
68692
68559
|
"p:embeddedFont": embeddedFontEntries.length === 1 ? embeddedFontEntries[0] : embeddedFontEntries
|
|
68693
68560
|
};
|
|
68694
68561
|
const metadata = explicitFontList ? serializeEmbeddedFontList(explicitFontList) : explicitFonts === void 0 && this.loadedEmbeddedFontList ? serializeEmbeddedFontList(this.loadedEmbeddedFontList) : generatedList;
|
|
68695
|
-
setEmbeddedFontList(
|
|
68562
|
+
setEmbeddedFontList(
|
|
68563
|
+
this.presentationData,
|
|
68564
|
+
metadata === generatedList && embeddedFontEntries.length === 0 ? null : metadata
|
|
68565
|
+
);
|
|
68696
68566
|
}
|
|
68697
68567
|
const ctXml = await this.zip.file("[Content_Types].xml")?.async("string");
|
|
68698
68568
|
if (ctXml) {
|
|
@@ -70117,24 +69987,151 @@ function applyNewPictureLayout(blipFill, layout, ctx) {
|
|
|
70117
69987
|
}
|
|
70118
69988
|
}
|
|
70119
69989
|
|
|
70120
|
-
// pptx/core/core/runtime/table-cell-
|
|
70121
|
-
|
|
70122
|
-
|
|
69990
|
+
// pptx/core/core/runtime/table-cell-rich-xml.ts
|
|
69991
|
+
var PT_PER_PX = 72 / 96;
|
|
69992
|
+
var DIFF_KEYS = [
|
|
69993
|
+
"bold",
|
|
69994
|
+
"italic",
|
|
69995
|
+
"underline",
|
|
69996
|
+
"strikethrough",
|
|
69997
|
+
"color",
|
|
69998
|
+
"fontFamily",
|
|
69999
|
+
"fontSize",
|
|
70000
|
+
"baseline",
|
|
70001
|
+
"characterSpacing"
|
|
70002
|
+
];
|
|
70003
|
+
function hasTableCellSource(segments) {
|
|
70004
|
+
return segments.some((segment) => segment.tableRun || segment.tableParagraph);
|
|
70123
70005
|
}
|
|
70124
|
-
function
|
|
70125
|
-
|
|
70126
|
-
|
|
70006
|
+
function clone(value) {
|
|
70007
|
+
return value === void 0 ? value : structuredClone(value);
|
|
70008
|
+
}
|
|
70009
|
+
function sourceRunProperties(source) {
|
|
70010
|
+
const rPr = source.xml["a:rPr"];
|
|
70011
|
+
if (rPr === void 0) {
|
|
70127
70012
|
return void 0;
|
|
70128
70013
|
}
|
|
70129
|
-
return
|
|
70014
|
+
return rPr && typeof rPr === "object" ? clone(rPr) : {};
|
|
70130
70015
|
}
|
|
70131
|
-
function
|
|
70132
|
-
const
|
|
70133
|
-
const
|
|
70134
|
-
|
|
70135
|
-
|
|
70136
|
-
|
|
70137
|
-
|
|
70016
|
+
function runProperties(segment, source) {
|
|
70017
|
+
const rPr = sourceRunProperties(source);
|
|
70018
|
+
const before = source.style;
|
|
70019
|
+
const after = segment.style ?? {};
|
|
70020
|
+
const updates = {};
|
|
70021
|
+
for (const key2 of DIFF_KEYS) {
|
|
70022
|
+
if (before[key2] !== after[key2]) {
|
|
70023
|
+
updates[key2] = after[key2];
|
|
70024
|
+
}
|
|
70025
|
+
}
|
|
70026
|
+
if (Object.keys(updates).length === 0) {
|
|
70027
|
+
return rPr;
|
|
70028
|
+
}
|
|
70029
|
+
const target = rPr ?? {};
|
|
70030
|
+
if (typeof updates.fontSize === "number") {
|
|
70031
|
+
updates.fontSize = Math.round(updates.fontSize * PT_PER_PX * 100) / 100;
|
|
70032
|
+
}
|
|
70033
|
+
applyCellRunStyleUpdates(target, updates);
|
|
70034
|
+
const off = {
|
|
70035
|
+
bold: ["@_b", "0"],
|
|
70036
|
+
italic: ["@_i", "0"],
|
|
70037
|
+
underline: ["@_u", "none"],
|
|
70038
|
+
strikethrough: ["@_strike", "noStrike"]
|
|
70039
|
+
};
|
|
70040
|
+
for (const [key2, [attribute, value]] of Object.entries(off)) {
|
|
70041
|
+
if (key2 in updates && updates[key2] === false) {
|
|
70042
|
+
target[attribute] = value;
|
|
70043
|
+
}
|
|
70044
|
+
}
|
|
70045
|
+
if ("baseline" in updates) {
|
|
70046
|
+
if (updates.baseline) {
|
|
70047
|
+
target["@_baseline"] = String(updates.baseline);
|
|
70048
|
+
} else {
|
|
70049
|
+
delete target["@_baseline"];
|
|
70050
|
+
}
|
|
70051
|
+
}
|
|
70052
|
+
if ("characterSpacing" in updates) {
|
|
70053
|
+
if (updates.characterSpacing) {
|
|
70054
|
+
target["@_spc"] = String(updates.characterSpacing);
|
|
70055
|
+
} else {
|
|
70056
|
+
delete target["@_spc"];
|
|
70057
|
+
}
|
|
70058
|
+
}
|
|
70059
|
+
return target;
|
|
70060
|
+
}
|
|
70061
|
+
function textRun2(rPr, text) {
|
|
70062
|
+
const run = {};
|
|
70063
|
+
if (rPr !== void 0) {
|
|
70064
|
+
run["a:rPr"] = rPr;
|
|
70065
|
+
}
|
|
70066
|
+
run["a:t"] = text;
|
|
70067
|
+
return run;
|
|
70068
|
+
}
|
|
70069
|
+
function segmentChild(segment, runPropertiesFromStyle) {
|
|
70070
|
+
const source = segment.tableRun;
|
|
70071
|
+
if (segment.isLineBreak) {
|
|
70072
|
+
const br = source?.tag === "a:br" && source.xml ? clone(source.xml) : {};
|
|
70073
|
+
return { tag: "a:br", value: br && typeof br === "object" ? br : {} };
|
|
70074
|
+
}
|
|
70075
|
+
if (!segment.text) {
|
|
70076
|
+
return void 0;
|
|
70077
|
+
}
|
|
70078
|
+
if (!source || source.tag === "a:br") {
|
|
70079
|
+
return {
|
|
70080
|
+
tag: "a:r",
|
|
70081
|
+
value: textRun2(runPropertiesFromStyle(segment.style ?? {}), segment.text)
|
|
70082
|
+
};
|
|
70083
|
+
}
|
|
70084
|
+
const rPr = runProperties(segment, source);
|
|
70085
|
+
const unchangedField = source.tag === "a:fld" && segment.fieldType !== void 0 && segment.text === (xmlText(source.xml["a:t"]) ?? "");
|
|
70086
|
+
if (!unchangedField) {
|
|
70087
|
+
return { tag: "a:r", value: textRun2(rPr, segment.text) };
|
|
70088
|
+
}
|
|
70089
|
+
const field = {};
|
|
70090
|
+
for (const [key2, value] of Object.entries(source.xml)) {
|
|
70091
|
+
if (key2.startsWith("@_")) {
|
|
70092
|
+
field[key2] = value;
|
|
70093
|
+
}
|
|
70094
|
+
}
|
|
70095
|
+
if (rPr !== void 0) {
|
|
70096
|
+
field["a:rPr"] = rPr;
|
|
70097
|
+
}
|
|
70098
|
+
if (source.xml["a:pPr"] !== void 0) {
|
|
70099
|
+
field["a:pPr"] = clone(source.xml["a:pPr"]);
|
|
70100
|
+
}
|
|
70101
|
+
field["a:t"] = segment.text;
|
|
70102
|
+
return { tag: "a:fld", value: field };
|
|
70103
|
+
}
|
|
70104
|
+
function paragraphsOf(segments) {
|
|
70105
|
+
const paragraphs = [[]];
|
|
70106
|
+
for (const segment of segments) {
|
|
70107
|
+
if (segment.isParagraphBreak) {
|
|
70108
|
+
paragraphs.push([]);
|
|
70109
|
+
} else {
|
|
70110
|
+
paragraphs.at(-1).push(segment);
|
|
70111
|
+
}
|
|
70112
|
+
}
|
|
70113
|
+
return paragraphs;
|
|
70114
|
+
}
|
|
70115
|
+
function buildRichCellParagraphs(segments, runPropertiesFromStyle) {
|
|
70116
|
+
let lastSource;
|
|
70117
|
+
return paragraphsOf(segments).map((paragraphSegments) => {
|
|
70118
|
+
const source = paragraphSegments.find((segment) => segment.tableParagraph)?.tableParagraph;
|
|
70119
|
+
const layout = source ?? lastSource;
|
|
70120
|
+
lastSource = layout;
|
|
70121
|
+
const paragraph = {};
|
|
70122
|
+
if (layout?.["a:pPr"] !== void 0) {
|
|
70123
|
+
paragraph["a:pPr"] = clone(layout["a:pPr"]);
|
|
70124
|
+
}
|
|
70125
|
+
const children6 = paragraphSegments.flatMap((segment) => {
|
|
70126
|
+
const child15 = segmentChild(segment, runPropertiesFromStyle);
|
|
70127
|
+
return child15 ? [child15] : [];
|
|
70128
|
+
});
|
|
70129
|
+
writeParagraphChildren(paragraph, children6);
|
|
70130
|
+
if (layout?.["a:endParaRPr"] !== void 0) {
|
|
70131
|
+
paragraph["a:endParaRPr"] = clone(layout["a:endParaRPr"]);
|
|
70132
|
+
}
|
|
70133
|
+
return paragraph;
|
|
70134
|
+
});
|
|
70138
70135
|
}
|
|
70139
70136
|
|
|
70140
70137
|
// pptx/core/core/runtime/PptxHandlerRuntimeSaveElementEmbedding.ts
|
|
@@ -70179,6 +70176,16 @@ var PptxHandlerRuntime32 = class _PptxHandlerRuntime extends PptxHandlerRuntime3
|
|
|
70179
70176
|
if (!segments) {
|
|
70180
70177
|
return false;
|
|
70181
70178
|
}
|
|
70179
|
+
if (hasTableCellSource(segments)) {
|
|
70180
|
+
xmlCell["a:txBody"] = buildCellTextBody(
|
|
70181
|
+
xmlCell["a:txBody"],
|
|
70182
|
+
buildRichCellParagraphs(
|
|
70183
|
+
segments,
|
|
70184
|
+
(style) => this.createRunPropertiesFromTextStyle(style, links?.resolveHyperlinkRelationshipId)
|
|
70185
|
+
)
|
|
70186
|
+
);
|
|
70187
|
+
return true;
|
|
70188
|
+
}
|
|
70182
70189
|
const paragraphs = this.createParagraphsFromTextContent(
|
|
70183
70190
|
cell.text,
|
|
70184
70191
|
cell.style?.align ? { align: cell.style.align } : void 0,
|
|
@@ -73485,10 +73492,10 @@ var PptxHandlerRuntime42 = class _PptxHandlerRuntime extends PptxHandlerRuntime4
|
|
|
73485
73492
|
slideVideoRelationshipType: constants.slideVideoRelationshipType,
|
|
73486
73493
|
slideAudioRelationshipType: constants.slideAudioRelationshipType
|
|
73487
73494
|
};
|
|
73488
|
-
const
|
|
73495
|
+
const childOrder = new SpTreeChildOrderTracker(collectors);
|
|
73489
73496
|
for (const el of slide.elements) {
|
|
73490
73497
|
this.processSlideElement(el, collectors, ctx);
|
|
73491
|
-
|
|
73498
|
+
childOrder.capture();
|
|
73492
73499
|
}
|
|
73493
73500
|
spTree["p:sp"] = collectors.shapes;
|
|
73494
73501
|
spTree["p:pic"] = collectors.pics;
|
|
@@ -73555,7 +73562,7 @@ var PptxHandlerRuntime42 = class _PptxHandlerRuntime extends PptxHandlerRuntime4
|
|
|
73555
73562
|
this.builder.build(
|
|
73556
73563
|
buildOrderedSlideXml({
|
|
73557
73564
|
xmlObj,
|
|
73558
|
-
positionOf: (node) =>
|
|
73565
|
+
positionOf: (node) => childOrder.positionOf(node),
|
|
73559
73566
|
getLocalName: (key2) => this.compatibilityService.getXmlLocalName(key2)
|
|
73560
73567
|
})
|
|
73561
73568
|
)
|
|
@@ -74445,10 +74452,10 @@ var PptxHandlerRuntime46 = class extends PptxHandlerRuntime45 {
|
|
|
74445
74452
|
slideVideoRelationshipType: constants.slideVideoRelationshipType,
|
|
74446
74453
|
slideAudioRelationshipType: constants.slideAudioRelationshipType
|
|
74447
74454
|
};
|
|
74448
|
-
const
|
|
74455
|
+
const childOrder = new SpTreeChildOrderTracker(collectors);
|
|
74449
74456
|
for (const element of elements2) {
|
|
74450
74457
|
this.processSlideElement(element, collectors, ctx);
|
|
74451
|
-
|
|
74458
|
+
childOrder.capture();
|
|
74452
74459
|
}
|
|
74453
74460
|
this.publishMasterCollectors(partPath, spTree, collectors);
|
|
74454
74461
|
this.reapplyAlternateContentEnvelopes(spTree, collectors);
|
|
@@ -74458,7 +74465,7 @@ var PptxHandlerRuntime46 = class extends PptxHandlerRuntime45 {
|
|
|
74458
74465
|
root
|
|
74459
74466
|
);
|
|
74460
74467
|
remapElementShapeIds(elements2, idRepair.ids);
|
|
74461
|
-
rememberTemplateSpTreePositions(this, partPath, spTree, (node) =>
|
|
74468
|
+
rememberTemplateSpTreePositions(this, partPath, spTree, (node) => childOrder.positionOf(node));
|
|
74462
74469
|
relsRoot["Relationship"] = relationships2;
|
|
74463
74470
|
relsData["Relationships"] = relsRoot;
|
|
74464
74471
|
this.zip.file(relsPath2, this.builder.build(relsData));
|
|
@@ -79940,13 +79947,13 @@ var PptxHandlerRuntime70 = class _PptxHandlerRuntime extends PptxHandlerRuntime6
|
|
|
79940
79947
|
const grpSpPr = group["p:grpSpPr"];
|
|
79941
79948
|
const transform2 = readGroupTransform(grpSpPr?.["a:xfrm"], _PptxHandlerRuntime.EMU_PER_PX);
|
|
79942
79949
|
this.unwrapAlternateContent(group);
|
|
79943
|
-
const
|
|
79950
|
+
const childOrder = this.extractSpTreeChildOrder(
|
|
79944
79951
|
resolveGroupXmlSlice(group, rawXmlStr),
|
|
79945
79952
|
group,
|
|
79946
79953
|
"p:grpSp"
|
|
79947
79954
|
);
|
|
79948
79955
|
const elements2 = [];
|
|
79949
|
-
for (const entry of
|
|
79956
|
+
for (const entry of childOrder) {
|
|
79950
79957
|
if (entry.tag === "p:grpSp") {
|
|
79951
79958
|
const subGroup = this.ensureArray(group["p:grpSp"])[entry.indexInType];
|
|
79952
79959
|
if (!subGroup) {
|
|
@@ -81801,13 +81808,13 @@ var PptxHandlerRuntime77 = class extends PptxHandlerRuntime76 {
|
|
|
81801
81808
|
}
|
|
81802
81809
|
}
|
|
81803
81810
|
}
|
|
81804
|
-
const
|
|
81811
|
+
const childOrder = this.extractSpTreeChildOrder(
|
|
81805
81812
|
masterXmlStr,
|
|
81806
81813
|
spTree,
|
|
81807
81814
|
"p:spTree"
|
|
81808
81815
|
);
|
|
81809
81816
|
const elements2 = [];
|
|
81810
|
-
for (const entry of
|
|
81817
|
+
for (const entry of childOrder) {
|
|
81811
81818
|
if (entry.tag === "p:sp") {
|
|
81812
81819
|
if (placeholderShapeIndices.has(entry.indexInType)) {
|
|
81813
81820
|
continue;
|
|
@@ -82107,13 +82114,13 @@ var PptxHandlerRuntime79 = class extends PptxHandlerRuntime78 {
|
|
|
82107
82114
|
}
|
|
82108
82115
|
}
|
|
82109
82116
|
}
|
|
82110
|
-
const
|
|
82117
|
+
const childOrder = this.extractSpTreeChildOrder(
|
|
82111
82118
|
layoutXmlStr,
|
|
82112
82119
|
spTree,
|
|
82113
82120
|
"p:spTree"
|
|
82114
82121
|
);
|
|
82115
82122
|
const elements2 = [];
|
|
82116
|
-
for (const entry of
|
|
82123
|
+
for (const entry of childOrder) {
|
|
82117
82124
|
if (entry.tag === "p:sp") {
|
|
82118
82125
|
if (placeholderShapeIndices.has(entry.indexInType)) {
|
|
82119
82126
|
continue;
|
|
@@ -86797,6 +86804,19 @@ var PptxHandlerRuntime99 = class extends PptxHandlerRuntime98 {
|
|
|
86797
86804
|
originalPartBytes: new Uint8Array(fontBinary),
|
|
86798
86805
|
fontKey
|
|
86799
86806
|
};
|
|
86807
|
+
source.fsType = readEmbeddedFontPartFsType(
|
|
86808
|
+
source.originalPartBytes,
|
|
86809
|
+
resolveEmbeddedFontGuid(source)
|
|
86810
|
+
);
|
|
86811
|
+
if (!mayDisplayFontWithFsType(source.fsType)) {
|
|
86812
|
+
this.compatibilityService.reportWarning({
|
|
86813
|
+
code: "EMBEDDED_FONT_RESTRICTED",
|
|
86814
|
+
message: `Embedded font "${typeface}" has a restricted licence (OS/2 fsType) and is not used for display; its font part is kept unchanged on save.`,
|
|
86815
|
+
scope: "presentation",
|
|
86816
|
+
xmlPath: fontPath
|
|
86817
|
+
});
|
|
86818
|
+
return createWithheldEmbeddedFont(source);
|
|
86819
|
+
}
|
|
86800
86820
|
if (this.eagerDecodeEmbeddedFonts) {
|
|
86801
86821
|
return decodeEmbeddedFontPart(source);
|
|
86802
86822
|
}
|