ooxml-core 1.6.1 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PptxHandler-BTXB54UC.mjs → PptxHandler-BL4B7CZO.mjs} +2 -2
- package/dist/automation/index.cjs +482 -232
- package/dist/automation/index.mjs +482 -232
- package/dist/{chunk-CS7HRNHL.mjs → chunk-GAGSCAR3.mjs} +43 -43
- package/dist/{chunk-5CJRDY7Q.mjs → chunk-NIHPA63A.mjs} +1 -1
- package/dist/{chunk-Q5LESLDA.mjs → chunk-TTPZITQN.mjs} +841 -614
- package/dist/{chunk-4L4UB3RQ.mjs → chunk-Z7IQR4S4.mjs} +3 -3
- package/dist/{chunk-RIFVZP2S.mjs → chunk-ZAP5WLEN.mjs} +1 -1
- package/dist/crypto/index.cjs +281 -109
- package/dist/crypto/index.mjs +281 -109
- package/dist/docx/load/index.cjs +481 -254
- package/dist/docx/load/index.mjs +481 -254
- package/dist/geometry/index.cjs +25 -0
- package/dist/geometry/index.d.ts +1 -0
- package/dist/geometry/index.d.ts.map +1 -1
- package/dist/geometry/index.mjs +24 -1
- package/dist/geometry/nudge.d.ts +12 -0
- package/dist/geometry/nudge.d.ts.map +1 -0
- package/dist/geometry/rotation-drag.d.ts +6 -0
- package/dist/geometry/rotation-drag.d.ts.map +1 -1
- package/dist/index.cjs +25 -0
- package/dist/index.mjs +25 -0
- package/dist/pptx/automation/index.cjs +1395 -1156
- package/dist/pptx/automation/index.d.ts +1 -1
- package/dist/pptx/automation/index.mjs +5 -5
- package/dist/pptx/chunks/{index-DkHgeV1p.d.ts → index-Cn-GzYGp.d.ts} +62 -13
- package/dist/pptx/chunks/{index-DkHgeV1p.d.ts.map → index-Cn-GzYGp.d.ts.map} +1 -1
- package/dist/pptx/cli/index.cjs +1274 -1090
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.cjs +7 -2
- package/dist/pptx/converter/index.mjs +2 -2
- package/dist/pptx/index.cjs +1415 -1176
- package/dist/pptx/index.d.ts +1 -1
- package/dist/pptx/index.mjs +5 -5
- package/dist/teams/index.cjs +7 -2
- package/dist/teams/index.mjs +7 -2
- package/dist/visio/edit-commands.d.ts +3 -1
- package/dist/visio/edit-commands.d.ts.map +1 -1
- package/dist/visio/edit-layer-properties.d.ts +22 -0
- package/dist/visio/edit-layer-properties.d.ts.map +1 -0
- package/dist/visio/edit-text-instance.d.ts +21 -0
- package/dist/visio/edit-text-instance.d.ts.map +1 -0
- package/dist/visio/edit-text-ranges.d.ts.map +1 -1
- package/dist/visio/edit-text-scope.d.ts +6 -1
- package/dist/visio/edit-text-scope.d.ts.map +1 -1
- package/dist/visio/edit-text-target.d.ts +11 -1
- package/dist/visio/edit-text-target.d.ts.map +1 -1
- package/dist/visio/edit-text.d.ts +2 -1
- package/dist/visio/edit-text.d.ts.map +1 -1
- package/dist/visio/edit.d.ts +1 -1
- package/dist/visio/edit.d.ts.map +1 -1
- package/dist/visio/index.cjs +1038 -538
- package/dist/visio/index.d.ts +1 -1
- package/dist/visio/index.d.ts.map +1 -1
- package/dist/visio/index.mjs +1038 -538
- package/dist/visio/text-fields.d.ts.map +1 -1
- package/dist/visio/ui/edit-commands.d.ts.map +1 -1
- package/dist/visio/ui/edit-error.d.ts +4 -1
- package/dist/visio/ui/edit-error.d.ts.map +1 -1
- package/dist/visio/ui/guides.d.ts +5 -0
- package/dist/visio/ui/guides.d.ts.map +1 -1
- package/dist/visio/ui/index.cjs +19768 -1874
- package/dist/visio/ui/index.d.ts +1 -0
- package/dist/visio/ui/index.d.ts.map +1 -1
- package/dist/visio/ui/index.mjs +19765 -1877
- package/dist/visio/ui/sample-drawing.d.ts +8 -0
- package/dist/visio/ui/sample-drawing.d.ts.map +1 -0
- package/dist/visio/ui/shape-move.d.ts +6 -0
- package/dist/visio/ui/shape-move.d.ts.map +1 -1
- package/dist/xlsx/load/index.cjs +415 -188
- package/dist/xlsx/load/index.mjs +415 -188
- package/package.json +6 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SMART_ART_DEFINITION_PARTS, VML_SHAPE_TAGS, isAlternateContentChoiceXmlSupported, parseVmlElement, unwrapAlternateContent, xmlChild, xmlAttr, parseDrawingMediaReference, cropShapeForPresetGeometry, isHeaderFooterPlaceholder, xmlPath, inheritedPlaceholderFieldType, parseParagraphLevel, xmlHasChild, parseParagraphExtraAttributes, parseParagraphMargins, parseAlignmentAttr, parseParagraphRtl, parseTabStops, resolveParagraphAlignment, xmlText, parseBodyPrBooleanAttrs, selectAlternateContentBranch, parseBulletSizePercent, extractColorChoiceXml, formatAutoNumberMarker, parseParagraphSpacingPx, createBuiltinVariables, resolveCoordinate, parseStructuredCustomGeometry, parseAdjustmentValues, parseGuideDefinitions, evaluateGuides, evaluateGeometryPaths, inheritCustomGeometryCommandOrder, parseInkMlContent, parseModel3DScene, remapElementShapeIds, parseShapeId, isTemplateElementId, remapShapeIdReferences, reapplyAlternateContentToTree, buildOle2, SHAPE_TREE_ELEMENT_TAGS, MAX_SHAPE_ID, orderedXmlKey, safeResolveZipPath, parseDataUrlToBytes, base64Decode, EMU_PER_PX, reorderObjectKeys, encodeCompressedPng, zlibStore, hash, concatArrays, encodePasswordUtf16LE, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, uint32LE, pptxActionToElementAction, buildClrMapOverrideXml, applyActiveXControlsToSlide, BLIP_FILL_ORDER, SP_PR_ORDER, hasShapeProperties, ensureXmlChild, hasTextProperties, inkElementToStrokes, buildInkMlContent, ensureXmlChildOrCreate, isXmlNode, applyChartLayouts, stripXmlOrderSuffix, serializeTabStop, colorsEqual, generateFontGuid, applyBubbleChartOptions, applyChartUpDownBars, applyDataLabelsRangeToDLbls, applyChartAxisScaling, applyChartAxisLabelFormatting, upsertChartAxisChild, applyChartDateAxisUnits, applyChartAxisDisplayUnitsToXml, writeChartShapeProps, resolveTxPrDefRPr, buildDefRPrTextProperties, buildChartGradFillXml, applySeriesMarkerToXml, applySeriesDataPointsToXml, chartColorHex, applyChartManualLayout, buildTrendlineLabel, serializeColorChoice, replaceOleEmbedding, findKey, collectAllText, buildNodeGuidMap, buildPresentationGuidMap, regenerateSmartArtDrawingShapes, buildFabricatedDrawingXml, buildFabricatedDiagramDataXml, DIAGRAM_DRAWING_CONTENT_TYPE, DIAGRAM_DRAWING_REL_TYPE, applyDiagramRelationshipIds, buildSaveTimeCustomGeometryXml, applyCustomGeometryGuideOverrides, avLstForPreset, filterValidShapeAdjustmentEntries, applyDrawingMediaReference, XML_PROLOG, DGM_XMLNS, xmlEscape, writeBodyPrBooleanAttrs, applyTextBodySp3d, writeShapeEffects, SHAPE_STYLE_ORDER, roundCoordinate, scaleVectorToIntegers, EMU_PER_PIXEL, P14_GUIDE_URI, P15_GUIDE_URI, buildGuideListExtension, resetSpPrFormattingForStyleMatrix, fillIsPurelyStyleMatrix, serializeColorChoiceWithRef, createLineStyleGate, applyDrawingLineDash, getSignaturePathsToStrip, mergeSmartArtPointXml, mergeSmartArtConnectionXml, obfuscateFont, containsConvertibleStrictNamespaceAttribute, convertXmlToStrict, applySeriesPictureOptionsToXml, findChartExtByUri, findChildByLocalName, regenerateClonedUniqueId, buildChartUniqueIdExtLst, createOfficeGuid, isContentPoint, newSmartArtGuid, parseChartUserShapesDrawing, xmlChildren, applyChartGradientToSpPr, setAutoTitleDeleted, insertAt, replaceFirstText, shouldRebuildFromParagraphs, buildPointFromParagraphs, shouldRebuildFromRuns, buildPointFromRuns, buildPointText, ensureXmlChildren, TC_PR_BORDERS_ORDER, writeChartColorChoice, parseChartFormulaRange, expandRangeAddresses, applyCellWritesToWorksheet, stripParentDirSegments, parseChartUniqueId, buildChartMarkerXml, chartGradientsEqual, chartColorChoiceValue, preservesSpreadsheetXmlWhitespace, buildEffectDagTreeFromXml, syncPictureShapeTypeWithCropShape, buildSrgbColorChoice, fetchUrlToBytes, parseChartWideTextStyle, parseDefRPrTextStyle, parseChartDataLabelOptions, shadowOffsetToDistanceAndDirection, positiveFixedAngleAttribute, xmlAttrNumber, parseCustomShows, parseShapeProps, parseActiveXControlsFromSlide, convertMetafileToDataUrl, blobUrlToDataUrl, ooxmlGradientAngleToCssDegrees, isAlternateContentChoiceSupported, SvgExporter, detectStrictConformance, normalizeStrictXml, DEFAULT_CHART_GRADIENT_ANGLE, supportsChartGradientFill, svgToCustomGeometryPaths, normalizeStShapeType, applyCustomShows, applySections, reorderObjectKeysByLocalName, PRESENTATION_CHILD_ORDER, applyKinsokuToXml, normalizeNamespaceUri, captureStyleBaseline, STYLE_MATRIX_FILL_KEYS, STYLE_MATRIX_LINE_KEYS, STYLE_MATRIX_EFFECT_KEYS, detectOleObjectType, inferOleExtensionFromTarget, deriveSlideTitles, parseSlideDrawingGuides, parseP14DirectChild, parseP14FromExtLst, P14_TRANSITION_TYPES, decodeXmlEntities, preservesXmlWhitespace, annotateCustomGeometryCommandOrder, annotateSmartArtTextOrder, encodeXmlAttributeValue, encodeXmlTextValue, stripXmlOrderMarkers, MIN_ELEMENT_SIZE, createDrawingObjectId, DEFAULT_TEXT_FONT_SIZE, EncryptedFileError, decodePptxJsonText, deserializePptxFromJson, applyImportedPptxData, MIN_TABLE_DIMENSION, MAX_TABLE_DIMENSION, escAttr, escText, SYSTEM_COLOR_MAP, PRESET_COLOR_MAP, effectChild, mergeEffectNode, mergeAttributeEffectNode, estimateMediaDurationMs, parseVmlElements, prismFamilyFlags, prismFamilyTypeOfNode, prismFamilyTypeForFlags, P14_DIR_IS_ORIENTATION_TYPE, IncorrectPasswordError, applyThemeToData, detectFileFormat, parseOle2, decryptPptx, encryptPptx, OOXML_PERCENT_UNITS, parseDrawingLineDash, parseLineSpacingMultiplier, parseLineSpacingExactPt, parseEncryptionInfo, RC4_ALG_ID, isOle2CompoundFile, ENTRY_TYPE_ROOT, PML_XMLNS, solidFill, esc, parsePresentationDrawingGuides, parsePresentationSmartTags, resolveLayoutDisplayName, detectDigitalSignatures, unwrapOleEmbedding, mimeTypeForOleFile, oleBytesToDataUrl, emu, extractGuidFromPartName, deobfuscateFont, detectFontFormat, gradFill, parseKinsoku, parseLineStyle, parseChartUpDownBars, parseDataTable, parseChart3DSurfaces, parseChartAxes, parseBubbleChartOptions, parseChartLayouts, parseCxChartSeries, parseChartDataPointPictureBlipRel, parseSeriesTrendlines, parseSeriesErrBars, parseSeriesDataPoints, parseMarker, parseSeriesDataLabels, parseChartDataPointPicture, parseImplicitBlipPictureFill, parseEmbeddedXlsx, EMU_PER_POINT, parseDiagramRelationshipIds, parseSmartArtTextParagraphs, firstParagraphRuns, smartArtParagraphsText, parseSmartArtPresLayoutVars, readChartManualLayoutValues, parseSmartArtConnection, projectSmartArtNodeText, resolveSmartArtNodeStyleRoles, resolveSmartArtNodeCoherent3DOff, parseSmartArtDefinitionMetadata, parseSmartArtColorStyleLabels, buildSmartArtColorLists, buildSmartArtColorRoleMap, parseSmartArtQuickStyleLabels, resolveSmartArtEffectIntensity, parseSmartArtStyleLabelRefs, extractStyleReferenceColorXml, withThemePlaceholderColor, getElementOrientationMatrix, isTextOrientationMatrix, TEXT_ORIENTATION_IDENTITY, multiplyTextOrientationMatrices } from './chunk-
|
|
1
|
+
import { SMART_ART_DEFINITION_PARTS, VML_SHAPE_TAGS, isAlternateContentChoiceXmlSupported, parseVmlElement, unwrapAlternateContent, xmlChild, xmlAttr, parseDrawingMediaReference, cropShapeForPresetGeometry, isHeaderFooterPlaceholder, xmlPath, inheritedPlaceholderFieldType, parseParagraphLevel, xmlHasChild, parseParagraphExtraAttributes, parseParagraphMargins, parseAlignmentAttr, parseParagraphRtl, parseTabStops, resolveParagraphAlignment, xmlText, parseBodyPrBooleanAttrs, selectAlternateContentBranch, parseBulletSizePercent, extractColorChoiceXml, formatAutoNumberMarker, parseParagraphSpacingPx, createBuiltinVariables, resolveCoordinate, parseStructuredCustomGeometry, parseAdjustmentValues, parseGuideDefinitions, evaluateGuides, evaluateGeometryPaths, inheritCustomGeometryCommandOrder, parseInkMlContent, parseModel3DScene, remapElementShapeIds, parseShapeId, isTemplateElementId, remapShapeIdReferences, reapplyAlternateContentToTree, buildOle2, SHAPE_TREE_ELEMENT_TAGS, MAX_SHAPE_ID, orderedXmlKey, safeResolveZipPath, parseDataUrlToBytes, base64Decode, EMU_PER_PX, reorderObjectKeys, encodeCompressedPng, zlibStore, hash, concatArrays, encodePasswordUtf16LE, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, uint32LE, pptxActionToElementAction, buildClrMapOverrideXml, applyActiveXControlsToSlide, BLIP_FILL_ORDER, SP_PR_ORDER, hasShapeProperties, ensureXmlChild, hasTextProperties, inkElementToStrokes, buildInkMlContent, ensureXmlChildOrCreate, isXmlNode, applyChartLayouts, stripXmlOrderSuffix, serializeTabStop, colorsEqual, generateFontGuid, applyBubbleChartOptions, applyChartUpDownBars, applyDataLabelsRangeToDLbls, applyChartAxisScaling, applyChartAxisLabelFormatting, upsertChartAxisChild, applyChartDateAxisUnits, applyChartAxisDisplayUnitsToXml, writeChartShapeProps, resolveTxPrDefRPr, buildDefRPrTextProperties, buildChartGradFillXml, applySeriesMarkerToXml, applySeriesDataPointsToXml, chartColorHex, applyChartManualLayout, buildTrendlineLabel, serializeColorChoice, replaceOleEmbedding, findKey, collectAllText, buildNodeGuidMap, buildPresentationGuidMap, regenerateSmartArtDrawingShapes, buildFabricatedDrawingXml, buildFabricatedDiagramDataXml, DIAGRAM_DRAWING_CONTENT_TYPE, DIAGRAM_DRAWING_REL_TYPE, applyDiagramRelationshipIds, buildSaveTimeCustomGeometryXml, applyCustomGeometryGuideOverrides, avLstForPreset, filterValidShapeAdjustmentEntries, applyDrawingMediaReference, XML_PROLOG, DGM_XMLNS, xmlEscape, writeBodyPrBooleanAttrs, applyTextBodySp3d, writeShapeEffects, SHAPE_STYLE_ORDER, roundCoordinate, scaleVectorToIntegers, EMU_PER_PIXEL, P14_GUIDE_URI, P15_GUIDE_URI, buildGuideListExtension, resetSpPrFormattingForStyleMatrix, fillIsPurelyStyleMatrix, serializeColorChoiceWithRef, createLineStyleGate, applyDrawingLineDash, getSignaturePathsToStrip, mergeSmartArtPointXml, mergeSmartArtConnectionXml, obfuscateFont, containsConvertibleStrictNamespaceAttribute, convertXmlToStrict, applySeriesPictureOptionsToXml, findChartExtByUri, findChildByLocalName, regenerateClonedUniqueId, buildChartUniqueIdExtLst, createOfficeGuid, isContentPoint, newSmartArtGuid, parseChartUserShapesDrawing, xmlChildren, applyChartGradientToSpPr, setAutoTitleDeleted, insertAt, replaceFirstText, shouldRebuildFromParagraphs, buildPointFromParagraphs, shouldRebuildFromRuns, buildPointFromRuns, buildPointText, ensureXmlChildren, TC_PR_BORDERS_ORDER, writeChartColorChoice, parseChartFormulaRange, expandRangeAddresses, applyCellWritesToWorksheet, stripParentDirSegments, parseChartUniqueId, buildChartMarkerXml, chartGradientsEqual, chartColorChoiceValue, preservesSpreadsheetXmlWhitespace, buildEffectDagTreeFromXml, syncPictureShapeTypeWithCropShape, buildSrgbColorChoice, fetchUrlToBytes, parseChartWideTextStyle, parseDefRPrTextStyle, parseChartDataLabelOptions, shadowOffsetToDistanceAndDirection, positiveFixedAngleAttribute, xmlAttrNumber, parseCustomShows, parseShapeProps, parseActiveXControlsFromSlide, convertMetafileToDataUrl, blobUrlToDataUrl, ooxmlGradientAngleToCssDegrees, isAlternateContentChoiceSupported, SvgExporter, detectStrictConformance, normalizeStrictXml, DEFAULT_CHART_GRADIENT_ANGLE, supportsChartGradientFill, svgToCustomGeometryPaths, normalizeStShapeType, applyCustomShows, applySections, reorderObjectKeysByLocalName, PRESENTATION_CHILD_ORDER, applyKinsokuToXml, normalizeNamespaceUri, captureStyleBaseline, STYLE_MATRIX_FILL_KEYS, STYLE_MATRIX_LINE_KEYS, STYLE_MATRIX_EFFECT_KEYS, detectOleObjectType, inferOleExtensionFromTarget, deriveSlideTitles, parseSlideDrawingGuides, parseP14DirectChild, parseP14FromExtLst, P14_TRANSITION_TYPES, decodeXmlEntities, preservesXmlWhitespace, annotateCustomGeometryCommandOrder, annotateSmartArtTextOrder, encodeXmlAttributeValue, encodeXmlTextValue, stripXmlOrderMarkers, MIN_ELEMENT_SIZE, createDrawingObjectId, DEFAULT_TEXT_FONT_SIZE, EncryptedFileError, decodePptxJsonText, deserializePptxFromJson, applyImportedPptxData, MIN_TABLE_DIMENSION, MAX_TABLE_DIMENSION, escAttr, escText, SYSTEM_COLOR_MAP, PRESET_COLOR_MAP, effectChild, mergeEffectNode, mergeAttributeEffectNode, estimateMediaDurationMs, parseVmlElements, prismFamilyFlags, prismFamilyTypeOfNode, prismFamilyTypeForFlags, P14_DIR_IS_ORIENTATION_TYPE, IncorrectPasswordError, applyThemeToData, detectFileFormat, parseOle2, decryptPptx, encryptPptx, OOXML_PERCENT_UNITS, parseDrawingLineDash, parseLineSpacingMultiplier, parseLineSpacingExactPt, parseEncryptionInfo, RC4_ALG_ID, isOle2CompoundFile, ENTRY_TYPE_ROOT, PML_XMLNS, solidFill, esc, parsePresentationDrawingGuides, parsePresentationSmartTags, resolveLayoutDisplayName, detectDigitalSignatures, unwrapOleEmbedding, mimeTypeForOleFile, oleBytesToDataUrl, emu, extractGuidFromPartName, deobfuscateFont, detectFontFormat, gradFill, parseKinsoku, parseLineStyle, parseChartUpDownBars, parseDataTable, parseChart3DSurfaces, parseChartAxes, parseBubbleChartOptions, parseChartLayouts, parseCxChartSeries, parseChartDataPointPictureBlipRel, parseSeriesTrendlines, parseSeriesErrBars, parseSeriesDataPoints, parseMarker, parseSeriesDataLabels, parseChartDataPointPicture, parseImplicitBlipPictureFill, parseEmbeddedXlsx, EMU_PER_POINT, parseDiagramRelationshipIds, parseSmartArtTextParagraphs, firstParagraphRuns, smartArtParagraphsText, parseSmartArtPresLayoutVars, readChartManualLayoutValues, parseSmartArtConnection, projectSmartArtNodeText, resolveSmartArtNodeStyleRoles, resolveSmartArtNodeCoherent3DOff, parseSmartArtDefinitionMetadata, parseSmartArtColorStyleLabels, buildSmartArtColorLists, buildSmartArtColorRoleMap, parseSmartArtQuickStyleLabels, resolveSmartArtEffectIntensity, parseSmartArtStyleLabelRefs, extractStyleReferenceColorXml, withThemePlaceholderColor, getElementOrientationMatrix, isTextOrientationMatrix, TEXT_ORIENTATION_IDENTITY, multiplyTextOrientationMatrices } from './chunk-TTPZITQN.mjs';
|
|
2
2
|
import { DIGITAL_SIGNATURE_ORIGIN_REL_TYPE } from './chunk-KBIJI6P5.mjs';
|
|
3
3
|
import { resolveSmartArtLayoutCategory } from './chunk-3GXV5MPC.mjs';
|
|
4
4
|
import { cloneXmlObject, applySmartArtLayoutDefinition, cloneSlide, parseSmartArtLayoutDefinition } from './chunk-54S5A5PZ.mjs';
|
|
@@ -44260,7 +44260,7 @@ async function buildMetroBlobs(pptxBytes, slides) {
|
|
|
44260
44260
|
return out;
|
|
44261
44261
|
}
|
|
44262
44262
|
|
|
44263
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
44263
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/byte-writer.js
|
|
44264
44264
|
var ByteWriter = class {
|
|
44265
44265
|
chunks = [];
|
|
44266
44266
|
length = 0;
|
|
@@ -44353,7 +44353,7 @@ function record(recType, data, recInstance = 0, isContainer2 = false, recVer = 0
|
|
|
44353
44353
|
return out;
|
|
44354
44354
|
}
|
|
44355
44355
|
|
|
44356
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
44356
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-ppt-record-types.js
|
|
44357
44357
|
var RT = {
|
|
44358
44358
|
Document: 1e3,
|
|
44359
44359
|
DocumentAtom: 1001,
|
|
@@ -44460,7 +44460,7 @@ function masterToEmu(mu) {
|
|
|
44460
44460
|
return Math.round(mu * EMU_PER_MASTER);
|
|
44461
44461
|
}
|
|
44462
44462
|
|
|
44463
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
44463
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/current-user-writer.js
|
|
44464
44464
|
var USER_NAME = "pptx-viewer";
|
|
44465
44465
|
var CURRENT_USER_STREAM_SIZE = 4096;
|
|
44466
44466
|
function buildCurrentUserStream(offsetToCurrentEdit, encrypted) {
|
|
@@ -44475,7 +44475,7 @@ function buildCurrentUserStream(offsetToCurrentEdit, encrypted) {
|
|
|
44475
44475
|
return padded;
|
|
44476
44476
|
}
|
|
44477
44477
|
|
|
44478
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
44478
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/utils/digests/bit-ops.js
|
|
44479
44479
|
function rotl32(x, n) {
|
|
44480
44480
|
return (x << n | x >>> 32 - n) >>> 0;
|
|
44481
44481
|
}
|
|
@@ -44524,7 +44524,7 @@ function mdStyleDigest(message, initialState, transform2) {
|
|
|
44524
44524
|
return out;
|
|
44525
44525
|
}
|
|
44526
44526
|
|
|
44527
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
44527
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/utils/digests/md4.js
|
|
44528
44528
|
var INITIAL_STATE = [1732584193, 4023233417, 2562383102, 271733878];
|
|
44529
44529
|
function f1(x, y, z) {
|
|
44530
44530
|
return x & y | ~x & z;
|
|
@@ -44604,7 +44604,7 @@ function md4(message) {
|
|
|
44604
44604
|
return mdStyleDigest(message, INITIAL_STATE, transform);
|
|
44605
44605
|
}
|
|
44606
44606
|
|
|
44607
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
44607
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/blip-writer.js
|
|
44608
44608
|
var MSOBLIP_PICT = 4;
|
|
44609
44609
|
var BLIP_INFO = {
|
|
44610
44610
|
emf: { recType: OA.BlipEmf, instance: 980, blipType: 2, macBlipType: MSOBLIP_PICT },
|
|
@@ -44634,7 +44634,7 @@ function buildFbse(picture, uid, foDelay, size) {
|
|
|
44634
44634
|
return record(OA.FBSE, data, info.blipType, false, 2);
|
|
44635
44635
|
}
|
|
44636
44636
|
|
|
44637
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
44637
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/fopt-writer.js
|
|
44638
44638
|
var OPT = {
|
|
44639
44639
|
rotation: 4,
|
|
44640
44640
|
/** Combined picture-protection boolean flags; see `shape-props-writer.ts`. */
|
|
@@ -44690,7 +44690,7 @@ function buildMetroBlobTertiaryFopt(metroBlob) {
|
|
|
44690
44690
|
return record(OA.TertiaryFOPT, data, 1, false, 3);
|
|
44691
44691
|
}
|
|
44692
44692
|
|
|
44693
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
44693
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/bstore-writer.js
|
|
44694
44694
|
function buildDggDefaultProperties() {
|
|
44695
44695
|
return buildFopt([
|
|
44696
44696
|
{ id: 385, value: 134217732 },
|
|
@@ -44748,7 +44748,7 @@ function buildPictureStore(pictures, shapesPerDrawing) {
|
|
|
44748
44748
|
};
|
|
44749
44749
|
}
|
|
44750
44750
|
|
|
44751
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
44751
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/font-collection-writer.js
|
|
44752
44752
|
var LF_FACE_NAME_BYTES = 64;
|
|
44753
44753
|
function buildFontEntityAtom(name, index) {
|
|
44754
44754
|
const nameBytes = new ByteWriter().utf16(name.slice(0, 31)).u16(0).toBytes();
|
|
@@ -44776,7 +44776,7 @@ function buildEnvironment(fonts, otherTextStyle) {
|
|
|
44776
44776
|
return record(RT.Environment, data, 0, true);
|
|
44777
44777
|
}
|
|
44778
44778
|
|
|
44779
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
44779
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/document-writer.js
|
|
44780
44780
|
function emuToMaster(emu2) {
|
|
44781
44781
|
return Math.round(emu2 / EMU_PER_MASTER);
|
|
44782
44782
|
}
|
|
@@ -44834,7 +44834,7 @@ function buildDocumentContainer(input) {
|
|
|
44834
44834
|
return record(RT.Document, w.toBytes(), 0, true);
|
|
44835
44835
|
}
|
|
44836
44836
|
|
|
44837
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
44837
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/hyperlink-writer.js
|
|
44838
44838
|
var II_ACTION = {
|
|
44839
44839
|
noAction: 0,
|
|
44840
44840
|
jumpAction: 3,
|
|
@@ -45026,7 +45026,7 @@ function buildTextInteractiveInfoAtom(beginChar, endChar) {
|
|
|
45026
45026
|
return record(RT.TextInteractiveInfoAtom, data, 0, false, 0);
|
|
45027
45027
|
}
|
|
45028
45028
|
|
|
45029
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
45029
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/media-writer.js
|
|
45030
45030
|
var MediaCollector = class {
|
|
45031
45031
|
hyperlinks;
|
|
45032
45032
|
entries = [];
|
|
@@ -45091,7 +45091,7 @@ function buildMediaExObjEntries(media) {
|
|
|
45091
45091
|
});
|
|
45092
45092
|
}
|
|
45093
45093
|
|
|
45094
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
45094
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/ole-writer.js
|
|
45095
45095
|
var PACKAGE_ROOT_CLSID = new Uint8Array([
|
|
45096
45096
|
12,
|
|
45097
45097
|
0,
|
|
@@ -45205,7 +45205,7 @@ var OleCollector = class {
|
|
|
45205
45205
|
}
|
|
45206
45206
|
};
|
|
45207
45207
|
|
|
45208
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
45208
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/ex-obj-list-writer.js
|
|
45209
45209
|
function buildExObjList(hyperlinks, ole, media) {
|
|
45210
45210
|
const oleEntries = ole?.all ?? [];
|
|
45211
45211
|
const mediaEntries = media?.all ?? [];
|
|
@@ -45232,7 +45232,7 @@ function buildExObjList(hyperlinks, ole, media) {
|
|
|
45232
45232
|
return record(RT.ExternalObjectList, w.toBytes(), 0, true);
|
|
45233
45233
|
}
|
|
45234
45234
|
|
|
45235
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
45235
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/anchor-writer.js
|
|
45236
45236
|
function emuToMaster2(emu2) {
|
|
45237
45237
|
return Math.round(emu2 / EMU_PER_MASTER);
|
|
45238
45238
|
}
|
|
@@ -45278,7 +45278,7 @@ function buildChildAnchor(rect) {
|
|
|
45278
45278
|
return record(OA.ChildAnchor, buildChildAnchorData(rect), 0, false, 0);
|
|
45279
45279
|
}
|
|
45280
45280
|
|
|
45281
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
45281
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/colors.js
|
|
45282
45282
|
var DEFAULT_RGB = "000000";
|
|
45283
45283
|
function parseHex(rgb) {
|
|
45284
45284
|
const hex3 = (rgb ?? DEFAULT_RGB).replace(/^#/u, "");
|
|
@@ -45300,7 +45300,7 @@ function encodeColorIndex(rgb) {
|
|
|
45300
45300
|
return [r, g, b, 254];
|
|
45301
45301
|
}
|
|
45302
45302
|
|
|
45303
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
45303
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/text-exception-writer.js
|
|
45304
45304
|
var ALIGN_CODE = {
|
|
45305
45305
|
l: 0,
|
|
45306
45306
|
ctr: 1,
|
|
@@ -45396,7 +45396,7 @@ function writeCfException(w, run, fontIndex) {
|
|
|
45396
45396
|
}
|
|
45397
45397
|
}
|
|
45398
45398
|
|
|
45399
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
45399
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/text-atom-writer.js
|
|
45400
45400
|
function joinParagraphText(body) {
|
|
45401
45401
|
return body.paragraphs.map((p) => p.runs.map((r) => r.text).join("")).join("\r");
|
|
45402
45402
|
}
|
|
@@ -45457,7 +45457,7 @@ function buildTextAtoms(body, fonts, hyperlinks) {
|
|
|
45457
45457
|
return new ByteWriter().bytes(buildTextHeaderAtom(body.textType)).bytes(buildTextCharsAtom(text)).bytes(buildStyleTextPropAtom(body, fontIndex)).bytes(buildRunHyperlinks(body, hyperlinks)).toBytes();
|
|
45458
45458
|
}
|
|
45459
45459
|
|
|
45460
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
45460
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/master-placeholders-writer.js
|
|
45461
45461
|
var FSP_FLAGS = 2560;
|
|
45462
45462
|
var RECTANGLE_SPT = 1;
|
|
45463
45463
|
var TEXT_TYPE_TITLE = 0;
|
|
@@ -45611,14 +45611,14 @@ function buildMasterPlaceholders(placeholders, allocator, fieldFontIndex) {
|
|
|
45611
45611
|
});
|
|
45612
45612
|
}
|
|
45613
45613
|
|
|
45614
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
45614
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/master-style-fonts.js
|
|
45615
45615
|
function masterStyleFonts(styles) {
|
|
45616
45616
|
if (!styles)
|
|
45617
45617
|
return [];
|
|
45618
45618
|
return [styles.title, styles.body, styles.other].flatMap((levels) => levels ?? []).map((level) => level.run.fontName).filter((name) => Boolean(name));
|
|
45619
45619
|
}
|
|
45620
45620
|
|
|
45621
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
45621
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/master-text-styles-writer.js
|
|
45622
45622
|
var EMPTY_LEVELS = [{ paragraph: {}, run: {} }];
|
|
45623
45623
|
function buildMasterStyleAtom(recInstance, levels, fontIndex) {
|
|
45624
45624
|
const w = new ByteWriter().u16(levels.length);
|
|
@@ -45657,7 +45657,7 @@ function buildMasterTextStyles(styles, fontIndex) {
|
|
|
45657
45657
|
return w.toBytes();
|
|
45658
45658
|
}
|
|
45659
45659
|
|
|
45660
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
45660
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/shape-props-writer.js
|
|
45661
45661
|
var DASH_CODE = {
|
|
45662
45662
|
solid: 0,
|
|
45663
45663
|
dash: 1,
|
|
@@ -45720,7 +45720,7 @@ function buildShapeFoptProps(input) {
|
|
|
45720
45720
|
return { simple, complex };
|
|
45721
45721
|
}
|
|
45722
45722
|
|
|
45723
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
45723
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/shape-writer.js
|
|
45724
45724
|
var FSP_FLAG_FLIPH = 64;
|
|
45725
45725
|
var FSP_FLAG_FLIPV = 128;
|
|
45726
45726
|
var FSP_FLAG_OLE_SHAPE = 16;
|
|
@@ -45831,7 +45831,7 @@ function buildMediaShapeContainer(media, allocator, hyperlinks, mediaEmbeds, inG
|
|
|
45831
45831
|
return record(OA.SpContainer, w.toBytes(), 0, true);
|
|
45832
45832
|
}
|
|
45833
45833
|
|
|
45834
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
45834
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/group-writer.js
|
|
45835
45835
|
var FSP_FLAG_GROUP = 1;
|
|
45836
45836
|
var FSP_FLAG_PATRIARCH = 4;
|
|
45837
45837
|
var FSP_FLAG_HAVE_ANCHOR = 512;
|
|
@@ -45875,7 +45875,7 @@ function buildGroupContainer(group, fonts, allocator, hyperlinks, oleEmbeds, med
|
|
|
45875
45875
|
return record(OA.SpgrContainer, data.toBytes(), 0, true);
|
|
45876
45876
|
}
|
|
45877
45877
|
|
|
45878
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
45878
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/shape-id-allocator.js
|
|
45879
45879
|
var ShapeIdAllocator2 = class {
|
|
45880
45880
|
current;
|
|
45881
45881
|
constructor(drawingId, clusterSize) {
|
|
@@ -45899,7 +45899,7 @@ var ShapeIdAllocator2 = class {
|
|
|
45899
45899
|
}
|
|
45900
45900
|
};
|
|
45901
45901
|
|
|
45902
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
45902
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/drawing-writer.js
|
|
45903
45903
|
var FSP_FLAG_BACKGROUND = 3072;
|
|
45904
45904
|
var BACKGROUND_RECT_SPT = 1;
|
|
45905
45905
|
function buildDg(drawingId, shapeCount, lastShapeId) {
|
|
@@ -45932,7 +45932,7 @@ function buildDrawing(canvasRect, shapes, backgroundRgb, fonts, drawingId, hyper
|
|
|
45932
45932
|
return record(RT.Drawing, dgContainer, 0, true);
|
|
45933
45933
|
}
|
|
45934
45934
|
|
|
45935
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
45935
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/notes-writer.js
|
|
45936
45936
|
function buildNotesAtom(slidePersistIdRef) {
|
|
45937
45937
|
const data = new ByteWriter().i32(slidePersistIdRef).u16(0).u16(0).toBytes();
|
|
45938
45938
|
return record(RT.NotesAtom, data, 0, false, 1);
|
|
@@ -45950,7 +45950,7 @@ function buildNotesContainer(paragraphs, notesRect, slidePersistIdRef, fonts, dr
|
|
|
45950
45950
|
return record(RT.Notes, data, 0, true);
|
|
45951
45951
|
}
|
|
45952
45952
|
|
|
45953
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
45953
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/legacy-ppt-record-stream.js
|
|
45954
45954
|
var PptParseError = class extends Error {
|
|
45955
45955
|
constructor(message) {
|
|
45956
45956
|
super(message);
|
|
@@ -46036,7 +46036,7 @@ function recordBytes(data, rec) {
|
|
|
46036
46036
|
return data.subarray(rec.dataOffset, rec.dataOffset + rec.recLen);
|
|
46037
46037
|
}
|
|
46038
46038
|
|
|
46039
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
46039
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/color-scheme.js
|
|
46040
46040
|
var SCHEME = {
|
|
46041
46041
|
background: 0,
|
|
46042
46042
|
textAndLines: 1,
|
|
@@ -46106,7 +46106,7 @@ function resolveEscherColor(colorRef, scheme) {
|
|
|
46106
46106
|
return toHex3(colorRef & 255, colorRef >>> 8 & 255, colorRef >>> 16 & 255);
|
|
46107
46107
|
}
|
|
46108
46108
|
|
|
46109
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
46109
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/color-scheme-writer.js
|
|
46110
46110
|
function buildColorSchemeAtom(recInstance = 1, colors) {
|
|
46111
46111
|
const w = new ByteWriter();
|
|
46112
46112
|
for (const rgb of colors?.length === 8 ? colors : DEFAULT_SCHEME) {
|
|
@@ -46115,7 +46115,7 @@ function buildColorSchemeAtom(recInstance = 1, colors) {
|
|
|
46115
46115
|
return record(RT.ColorSchemeAtom, w.toBytes(), recInstance, false, 0);
|
|
46116
46116
|
}
|
|
46117
46117
|
|
|
46118
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
46118
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/slide-writer.js
|
|
46119
46119
|
var SLIDE_FLAG_MASTER_OBJECTS = 1;
|
|
46120
46120
|
var SLIDE_FLAG_MASTER_SCHEME = 2;
|
|
46121
46121
|
var SLIDE_FLAG_MASTER_BACKGROUND = 4;
|
|
@@ -46156,7 +46156,7 @@ function buildMainMasterContainer(slideRect, drawingId, hyperlinks, oleEmbeds, m
|
|
|
46156
46156
|
return record(RT.MainMaster, data, 0, true);
|
|
46157
46157
|
}
|
|
46158
46158
|
|
|
46159
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
46159
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/document-stream-layout.js
|
|
46160
46160
|
function masterSlideId(index) {
|
|
46161
46161
|
return MASTER_SLIDE_ID_SENTINEL + index;
|
|
46162
46162
|
}
|
|
@@ -46281,10 +46281,10 @@ function ensureMinimumDocumentStreamSize(contentSizeWithoutPadding, maxPersistId
|
|
|
46281
46281
|
return Math.max(0, TARGET_MINIMUM - projectedTotal);
|
|
46282
46282
|
}
|
|
46283
46283
|
|
|
46284
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
46284
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/crypto-constants.js
|
|
46285
46285
|
var RC4_ALG_ID2 = 26625;
|
|
46286
46286
|
|
|
46287
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
46287
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/utils/rc4-cipher.js
|
|
46288
46288
|
function rc4Cipher(key2, data) {
|
|
46289
46289
|
if (key2.length === 0) {
|
|
46290
46290
|
throw new Error("RC4 key must not be empty.");
|
|
@@ -46315,7 +46315,7 @@ function rc4Cipher(key2, data) {
|
|
|
46315
46315
|
return out;
|
|
46316
46316
|
}
|
|
46317
46317
|
|
|
46318
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
46318
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/rc4-cryptoapi-key.js
|
|
46319
46319
|
var PADDED_40_BIT_KEY_BYTES = 16;
|
|
46320
46320
|
async function rc4CryptoApiKeyBase(password, salt) {
|
|
46321
46321
|
return hash("SHA-1", concatArrays(salt, encodePasswordUtf16LE(password)));
|
|
@@ -46356,7 +46356,7 @@ async function rc4CryptoApiEncryptVerifier(key0, verifier) {
|
|
|
46356
46356
|
};
|
|
46357
46357
|
}
|
|
46358
46358
|
|
|
46359
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
46359
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/rc4-cryptoapi-streams.js
|
|
46360
46360
|
var UID_SIZE = 16;
|
|
46361
46361
|
var METAFILE_HEADER_SIZE = 34;
|
|
46362
46362
|
var BITMAP_TAG_SIZE = 1;
|
|
@@ -46429,7 +46429,7 @@ async function cipherPicturesStream(stream, keyFor, mode) {
|
|
|
46429
46429
|
return out;
|
|
46430
46430
|
}
|
|
46431
46431
|
|
|
46432
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
46432
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/encrypt-writer.js
|
|
46433
46433
|
var CSP_NAME = "Microsoft Enhanced Cryptographic Provider v1.0";
|
|
46434
46434
|
var KEY_SIZE_BITS = 128;
|
|
46435
46435
|
var SALT_SIZE = 16;
|
|
@@ -46462,7 +46462,7 @@ async function encryptPicturesStream(stream, ctx) {
|
|
|
46462
46462
|
return cipherPicturesStream(stream, ctx.keyFor, "encrypt");
|
|
46463
46463
|
}
|
|
46464
46464
|
|
|
46465
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
46465
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/master-relative-runs.js
|
|
46466
46466
|
var STYLE_KEYS = ["bold", "italic", "underline"];
|
|
46467
46467
|
function levelsFor(styles, textType) {
|
|
46468
46468
|
switch (textType) {
|
|
@@ -46528,7 +46528,7 @@ function withMasterRelativeRunStyles(deck) {
|
|
|
46528
46528
|
};
|
|
46529
46529
|
}
|
|
46530
46530
|
|
|
46531
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
46531
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/persist-writer.js
|
|
46532
46532
|
var MAX_RUN = 4095;
|
|
46533
46533
|
function buildPersistDirectoryAtom(entries) {
|
|
46534
46534
|
const sorted = [...entries].sort((a, b) => a[0] - b[0]);
|
|
@@ -46558,7 +46558,7 @@ function buildEncryptedUserEditAtom(input) {
|
|
|
46558
46558
|
return record(RT.UserEditAtom, data, 0, false, 0);
|
|
46559
46559
|
}
|
|
46560
46560
|
|
|
46561
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
46561
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/ppt-clsid.js
|
|
46562
46562
|
var PPT_STORAGE_CLSID = new Uint8Array([
|
|
46563
46563
|
16,
|
|
46564
46564
|
141,
|
|
@@ -46578,7 +46578,7 @@ var PPT_STORAGE_CLSID = new Uint8Array([
|
|
|
46578
46578
|
232
|
|
46579
46579
|
]);
|
|
46580
46580
|
|
|
46581
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
46581
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/writer/write-ppt.js
|
|
46582
46582
|
async function finishUnencrypted(layout, lastSlideId) {
|
|
46583
46583
|
const w = new ByteWriter().append(layout.bytes);
|
|
46584
46584
|
const dirAtom = buildPersistDirectoryAtom(layout.offsets);
|
|
@@ -83457,7 +83457,7 @@ async function inflateZlib(data) {
|
|
|
83457
83457
|
}
|
|
83458
83458
|
}
|
|
83459
83459
|
|
|
83460
|
-
// ../../node_modules/.bun/@christophervr+ole2@0.
|
|
83460
|
+
// ../../node_modules/.bun/@christophervr+ole2@0.13.0/node_modules/@christophervr/ole2/dist/ppt/persist-directory.js
|
|
83461
83461
|
var DEFAULT_MAX_EDITS = 1e4;
|
|
83462
83462
|
var DEFAULT_MAX_ENTRIES = 1e6;
|
|
83463
83463
|
function checkedLimit(value) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { hasTextProperties, isImageLikeElement, blobUrlToDataUrl, getSubstituteFontFamily, stripXmlOrderSuffix } from './chunk-
|
|
1
|
+
import { hasTextProperties, isImageLikeElement, blobUrlToDataUrl, getSubstituteFontFamily, stripXmlOrderSuffix } from './chunk-TTPZITQN.mjs';
|
|
2
2
|
|
|
3
3
|
// pptx/converter/media-context.ts
|
|
4
4
|
var MIME_TO_EXT = {
|