@office-open/core 0.10.9 → 0.10.11

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.
@@ -1,2 +1,2 @@
1
- import { $ as createLineColorList, $a as TileAlignment, $n as createReflectionEffect, $t as TableStyleListOptions, A as scRgbColorDesc, An as createShape3D, At as PresentationLayoutVariablesOptions, B as createDiagramTextProperties, Ba as GradientStopOptions, Bn as SphereCoords, Bt as GraphicFrameLockingOptions, C as fillDesc, Cn as createCustomGeometry, Co as createHslColor, Cr as LineEndType, Ct as AnimationLevelOptions, D as parseColorChoice, Dn as stringifyAdjustmentValues, Dr as createCustomDash, Dt as MaxChildrenOptions, E as hslColorDesc, En as GeometryGuide, Er as DashStop, Et as HierBranchStyle, F as DiagramExtensionListOptions, Fa as createPatternFill, Fn as BackdropOptions, Ft as createHierBranch, G as DiagramStyleLabelOptions, Ga as GradientStop, Gn as EffectDagOptions, Gt as createGroupLocking, H as createDiagramRelationshipIds, Ha as extractBlipFillMedia, Hn as createScene3D, Ht as PictureLockingOptions, I as DiagramExtensionOptions, Ia as createNoFill, In as CameraOptions, It as createMaxChildren, J as HueDirection, Ja as PathShadeType, Jn as EffectExtent, Jt as OnOffStyleType, K as DiagramStyleOptions, Ka as LinearShadeOptions, Kn as createEffectDag, Kt as createPictureLocking, L as DiagramTextPropertiesOptions, La as BlipFillConfigOptions, Ln as LightRigOptions, Lt as createOrgChart, M as solidFillDesc, Ma as createGroupFill, Mn as BevelPresetType, Mt as createAdjustList, N as stringifyColorChoice, Na as PatternFillOptions, Nn as createBevel, Nt as createAnimateOneByOne, O as presetColorDesc, On as PresetMaterialType, Ot as OrgChartOptions, P as systemColorDesc, Pa as PresetPattern, Pn as createBottomBevel, Pt as createAnimationLevel, Q as createFillColorList, Qa as createGradientStop, Qn as ReflectionEffectOptions, Qt as TablePartStyleOptions, R as createDiagramExtensionList, Ra as BlipFillMediaData, Rn as Point3D, Rt as createPreferredChildren, S as outlineDesc, Sn as PathOptions, So as HslColorOptions, Sr as LineEndOptions, St as AnimateOneByOneValue, T as patternFillDesc, Tn as stringifyPresetGeometry, To as createColorTransforms, Tr as createLineEnd, Tt as HierBranchOptions, U as ColorListOptions, Ua as GradientFillOptions, Un as createSoftEdgeEffect, Ut as ShapeLockingOptions, V as DiagramRelationshipIdsOptions, Va as buildFill, Vn as Vector3D, Vt as GroupLockingOptions, W as ColorMethod, Wa as GradientShadeOptions, Wn as EffectContainerType, Wt as createGraphicFrameLocking, X as createDiagramStyle, Xa as TileFlipMode, Xn as calculateEffectExtent, Xt as TableCellBorderOptions, Y as StyleMatrixIndex, Ya as RelativeRect, Yn as EffectListOptions, Yt as StyleMatrixReferenceOptions, Z as createEffectColorList, Za as createGradientFill, Zn as createEffectList, Zt as TableCellStyleOptions, _ as graphicFrameLockingDesc, _n as ConnectionSite, _o as RgbColorOptions, _r as OutlineOptions, _t as createStyleDefinitionHeader, a as blipDesc, an as createTableStyleList, ao as createBlipEffects, ar as createOuterShadowEffect, at as ColorsDefinitionHeaderOptions, b as shapeLockingDesc, bn as PathCommand, bo as PresetColorOptions, br as createOutline, bt as AdjustOptions, c as stretchDesc, cn as Transform2DOptions, co as createSolidFill, cr as GlowEffectOptions, ct as DiagramNameOptions, d as scene3DDesc, dn as stringifyStretch, do as createSystemColor, dr as FillOverlayEffectOptions, dt as StyleDefinitionHeaderListOptions, en as TableStyleOptions, eo as TileOptions, er as PresetShadowEffectOptions, et as createStyleLabel, f as shape3DDesc, fn as createExtentionList, fo as SchemeColor, fr as createFillOverlayEffect, ft as StyleDefinitionHeaderOptions, g as presetGeometryDesc, gn as createBlip, go as createScRgbColor, gr as OutlineFillProperties, gt as createLayoutDefinitionHeaderList, h as customGeometryDesc, hn as BlipOptions, ho as ScRgbColorOptions, hr as LineJoin, ht as createLayoutDefinitionHeader, i as presentationLayoutVariablesDesc, in as createTableStyle, io as BlipEffectsOptions, ir as RectAlignment, it as ColorsDefinitionHeaderListOptions, j as schemeColorDesc, jn as BevelOptions, jt as createAdjust, k as rgbColorDesc, kn as Shape3DOptions, kt as PreferredChildrenOptions, l as tileDesc, ln as createGroupTransform2D, lo as SystemColor, lr as createGlowEffect, lt as LayoutDefinitionHeaderListOptions, m as transform2DDesc, mn as createBlipFill, mo as createSchemeColor, mr as LineCap, mt as createColorsDefinitionHeaderList, n as diagramRelationshipIdsDesc, nn as TableTextStyleOptions, no as SourceRectangleOptions, nr as createPresetShadowEffect, nt as createTextFillColorList, o as blipFillDesc, on as parseTableStyleList, oo as SolidFillOptions, or as InnerShadowEffectOptions, ot as DiagramCategoryOptions, p as groupTransform2DDesc, pn as BlipFillOptions, po as SchemeColorOptions, pr as CompoundLine, pt as createColorsDefinitionHeader, q as FontCollectionIndex, qa as PathShadeOptions, qn as BlurEffectOptions, qt as createShapeLocking, r as diagramStyleDesc, rn as ThemeableLineStyleOptions, ro as createSourceRectangle, rr as OuterShadowEffectOptions, rt as createTextLineColorList, s as sourceRectangleDesc, sn as GroupTransform2DOptions, so as createColorElement, sr as createInnerShadowEffect, st as DiagramDescriptionOptions, t as diagramExtensionListDesc, tn as TableStyleRegion, to as createTileInfo, tr as PresetShadowVal, tt as createTextEffectColorList, u as bevelDesc, un as createTransform2D, uo as SystemColorOptions, ur as BlendMode, ut as LayoutDefinitionHeaderOptions, v as groupLockingDesc, vn as CustomGeometryOptions, vo as createRgbColor, vr as PenAlignment, vt as createStyleDefinitionHeaderList, w as gradientFillDesc, wn as PresetGeometryOptions, wo as ColorTransformOptions, wr as LineEndWidth, wt as AnimationLevelValue, x as effectListDesc, xn as PathFillMode, xo as createPresetColor, xr as LineEndLength, xt as AnimateOneByOneOptions, y as pictureLockingDesc, yn as GeomRect, yo as PresetColor, yr as PresetDash, yt as AdjustListOptions, z as createDiagramShape3D, za as FillOptions, zn as Scene3DOptions, zt as createPresentationLayoutVariables } from "../index-DWE6knYT.mjs";
1
+ import { $ as createLineColorList, $a as TileAlignment, $n as createReflectionEffect, $t as TableStyleListOptions, A as scRgbColorDesc, An as createShape3D, At as PresentationLayoutVariablesOptions, B as createDiagramTextProperties, Ba as GradientStopOptions, Bn as SphereCoords, Bt as GraphicFrameLockingOptions, C as fillDesc, Cn as createCustomGeometry, Co as createHslColor, Cr as LineEndType, Ct as AnimationLevelOptions, D as parseColorChoice, Dn as stringifyAdjustmentValues, Dr as createCustomDash, Dt as MaxChildrenOptions, E as hslColorDesc, En as GeometryGuide, Er as DashStop, Et as HierBranchStyle, F as DiagramExtensionListOptions, Fa as createPatternFill, Fn as BackdropOptions, Ft as createHierBranch, G as DiagramStyleLabelOptions, Ga as GradientStop, Gn as EffectDagOptions, Gt as createGroupLocking, H as createDiagramRelationshipIds, Ha as extractBlipFillMedia, Hn as createScene3D, Ht as PictureLockingOptions, I as DiagramExtensionOptions, Ia as createNoFill, In as CameraOptions, It as createMaxChildren, J as HueDirection, Ja as PathShadeType, Jn as EffectExtent, Jt as OnOffStyleType, K as DiagramStyleOptions, Ka as LinearShadeOptions, Kn as createEffectDag, Kt as createPictureLocking, L as DiagramTextPropertiesOptions, La as BlipFillConfigOptions, Ln as LightRigOptions, Lt as createOrgChart, M as solidFillDesc, Ma as createGroupFill, Mn as BevelPresetType, Mt as createAdjustList, N as stringifyColorChoice, Na as PatternFillOptions, Nn as createBevel, Nt as createAnimateOneByOne, O as presetColorDesc, On as PresetMaterialType, Ot as OrgChartOptions, P as systemColorDesc, Pa as PresetPattern, Pn as createBottomBevel, Pt as createAnimationLevel, Q as createFillColorList, Qa as createGradientStop, Qn as ReflectionEffectOptions, Qt as TablePartStyleOptions, R as createDiagramExtensionList, Ra as BlipFillMediaData, Rn as Point3D, Rt as createPreferredChildren, S as outlineDesc, Sn as PathOptions, So as HslColorOptions, Sr as LineEndOptions, St as AnimateOneByOneValue, T as patternFillDesc, Tn as stringifyPresetGeometry, To as createColorTransforms, Tr as createLineEnd, Tt as HierBranchOptions, U as ColorListOptions, Ua as GradientFillOptions, Un as createSoftEdgeEffect, Ut as ShapeLockingOptions, V as DiagramRelationshipIdsOptions, Va as buildFill, Vn as Vector3D, Vt as GroupLockingOptions, W as ColorMethod, Wa as GradientShadeOptions, Wn as EffectContainerType, Wt as createGraphicFrameLocking, X as createDiagramStyle, Xa as TileFlipMode, Xn as calculateEffectExtent, Xt as TableCellBorderOptions, Y as StyleMatrixIndex, Ya as RelativeRect, Yn as EffectListOptions, Yt as StyleMatrixReferenceOptions, Z as createEffectColorList, Za as createGradientFill, Zn as createEffectList, Zt as TableCellStyleOptions, _ as graphicFrameLockingDesc, _n as ConnectionSite, _o as RgbColorOptions, _r as OutlineOptions, _t as createStyleDefinitionHeader, a as blipDesc, an as createTableStyleList, ao as createBlipEffects, ar as createOuterShadowEffect, at as ColorsDefinitionHeaderOptions, b as shapeLockingDesc, bn as PathCommand, bo as PresetColorOptions, br as createOutline, bt as AdjustOptions, c as stretchDesc, cn as Transform2DOptions, co as createSolidFill, cr as GlowEffectOptions, ct as DiagramNameOptions, d as scene3DDesc, dn as stringifyStretch, do as createSystemColor, dr as FillOverlayEffectOptions, dt as StyleDefinitionHeaderListOptions, en as TableStyleOptions, eo as TileOptions, er as PresetShadowEffectOptions, et as createStyleLabel, f as shape3DDesc, fn as createExtentionList, fo as SchemeColor, fr as createFillOverlayEffect, ft as StyleDefinitionHeaderOptions, g as presetGeometryDesc, gn as createBlip, go as createScRgbColor, gr as OutlineFillProperties, gt as createLayoutDefinitionHeaderList, h as customGeometryDesc, hn as BlipOptions, ho as ScRgbColorOptions, hr as LineJoin, ht as createLayoutDefinitionHeader, i as presentationLayoutVariablesDesc, in as createTableStyle, io as BlipEffectsOptions, ir as RectAlignment, it as ColorsDefinitionHeaderListOptions, j as schemeColorDesc, jn as BevelOptions, jt as createAdjust, k as rgbColorDesc, kn as Shape3DOptions, kt as PreferredChildrenOptions, l as tileDesc, ln as createGroupTransform2D, lo as SystemColor, lr as createGlowEffect, lt as LayoutDefinitionHeaderListOptions, m as transform2DDesc, mn as createBlipFill, mo as createSchemeColor, mr as LineCap, mt as createColorsDefinitionHeaderList, n as diagramRelationshipIdsDesc, nn as TableTextStyleOptions, no as SourceRectangleOptions, nr as createPresetShadowEffect, nt as createTextFillColorList, o as blipFillDesc, on as parseTableStyleList, oo as SolidFillOptions, or as InnerShadowEffectOptions, ot as DiagramCategoryOptions, p as groupTransform2DDesc, pn as BlipFillOptions, po as SchemeColorOptions, pr as CompoundLine, pt as createColorsDefinitionHeader, q as FontCollectionIndex, qa as PathShadeOptions, qn as BlurEffectOptions, qt as createShapeLocking, r as diagramStyleDesc, rn as ThemeableLineStyleOptions, ro as createSourceRectangle, rr as OuterShadowEffectOptions, rt as createTextLineColorList, s as sourceRectangleDesc, sn as GroupTransform2DOptions, so as createColorElement, sr as createInnerShadowEffect, st as DiagramDescriptionOptions, t as diagramExtensionListDesc, tn as TableStyleRegion, to as createTileInfo, tr as PresetShadowVal, tt as createTextEffectColorList, u as bevelDesc, un as createTransform2D, uo as SystemColorOptions, ur as BlendMode, ut as LayoutDefinitionHeaderOptions, v as groupLockingDesc, vn as CustomGeometryOptions, vo as createRgbColor, vr as PenAlignment, vt as createStyleDefinitionHeaderList, w as gradientFillDesc, wn as PresetGeometryOptions, wo as ColorTransformOptions, wr as LineEndWidth, wt as AnimationLevelValue, x as effectListDesc, xn as PathFillMode, xo as createPresetColor, xr as LineEndLength, xt as AnimateOneByOneOptions, y as pictureLockingDesc, yn as GeomRect, yo as PresetColor, yr as PresetDash, yt as AdjustListOptions, z as createDiagramShape3D, za as FillOptions, zn as Scene3DOptions, zt as createPresentationLayoutVariables } from "../index-DdXU1_sq.mjs";
2
2
  export { type AdjustListOptions, type AdjustOptions, type AnimateOneByOneOptions, AnimateOneByOneValue, type AnimationLevelOptions, AnimationLevelValue, type BackdropOptions, type BevelOptions, BevelPresetType, BlendMode, type BlipEffectsOptions, type BlipFillConfigOptions, type BlipFillMediaData, type BlipFillOptions, type BlipOptions, type BlurEffectOptions, type CameraOptions, type ColorListOptions, ColorMethod, type ColorTransformOptions, type ColorsDefinitionHeaderListOptions, type ColorsDefinitionHeaderOptions, CompoundLine, type ConnectionSite, type CustomGeometryOptions, type DashStop, type DiagramCategoryOptions, type DiagramDescriptionOptions, type DiagramExtensionListOptions, type DiagramExtensionOptions, type DiagramNameOptions, type DiagramRelationshipIdsOptions, type DiagramStyleLabelOptions, type DiagramStyleOptions, type DiagramTextPropertiesOptions, type EffectContainerType, type EffectDagOptions, type EffectExtent, type EffectListOptions, type FillOptions, type FillOverlayEffectOptions, FontCollectionIndex, type GeomRect, type GeometryGuide, type GlowEffectOptions, type GradientFillOptions, type GradientShadeOptions, type GradientStop, type GradientStopOptions, type GraphicFrameLockingOptions, type GroupLockingOptions, type GroupTransform2DOptions, type HierBranchOptions, HierBranchStyle, type HslColorOptions, HueDirection, type InnerShadowEffectOptions, type LayoutDefinitionHeaderListOptions, type LayoutDefinitionHeaderOptions, type LightRigOptions, LineCap, LineEndLength, type LineEndOptions, LineEndType, LineEndWidth, LineJoin, type LinearShadeOptions, type MaxChildrenOptions, type OnOffStyleType, type OrgChartOptions, type OuterShadowEffectOptions, type OutlineFillProperties, type OutlineOptions, type PathCommand, type PathFillMode, type PathOptions, type PathShadeOptions, PathShadeType, type PatternFillOptions, PenAlignment, type PictureLockingOptions, type Point3D, type PreferredChildrenOptions, type PresentationLayoutVariablesOptions, PresetColor, type PresetColorOptions, PresetDash, type PresetGeometryOptions, PresetMaterialType, PresetPattern, type PresetShadowEffectOptions, PresetShadowVal, RectAlignment, type ReflectionEffectOptions, type RelativeRect, type RgbColorOptions, type ScRgbColorOptions, type Scene3DOptions, SchemeColor, type SchemeColorOptions, type Shape3DOptions, type ShapeLockingOptions, type SolidFillOptions, type SourceRectangleOptions, type SphereCoords, type StyleDefinitionHeaderListOptions, type StyleDefinitionHeaderOptions, StyleMatrixIndex, type StyleMatrixReferenceOptions, SystemColor, type SystemColorOptions, type TableCellBorderOptions, type TableCellStyleOptions, type TablePartStyleOptions, type TableStyleListOptions, type TableStyleOptions, type TableStyleRegion, type TableTextStyleOptions, type ThemeableLineStyleOptions, TileAlignment, TileFlipMode, type TileOptions, type Transform2DOptions, type Vector3D, bevelDesc, blipDesc, blipFillDesc, buildFill, calculateEffectExtent, createAdjust, createAdjustList, createAnimateOneByOne, createAnimationLevel, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createColorElement, createColorTransforms, createColorsDefinitionHeader, createColorsDefinitionHeaderList, createCustomDash, createCustomGeometry, createDiagramExtensionList, createDiagramRelationshipIds, createDiagramShape3D, createDiagramStyle, createDiagramTextProperties, createEffectColorList, createEffectDag, createEffectList, createExtentionList, createFillColorList, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGraphicFrameLocking, createGroupFill, createGroupLocking, createGroupTransform2D, createHierBranch, createHslColor, createInnerShadowEffect, createLayoutDefinitionHeader, createLayoutDefinitionHeaderList, createLineColorList, createLineEnd, createMaxChildren, createNoFill, createOrgChart, createOuterShadowEffect, createOutline, createPatternFill, createPictureLocking, createPreferredChildren, createPresentationLayoutVariables, createPresetColor, createPresetShadowEffect, createReflectionEffect, createRgbColor, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createShapeLocking, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createStyleDefinitionHeader, createStyleDefinitionHeaderList, createStyleLabel, createSystemColor, createTableStyle, createTableStyleList, createTextEffectColorList, createTextFillColorList, createTextLineColorList, createTileInfo, createTransform2D, customGeometryDesc, diagramExtensionListDesc, diagramRelationshipIdsDesc, diagramStyleDesc, effectListDesc, extractBlipFillMedia, fillDesc, gradientFillDesc, graphicFrameLockingDesc, groupLockingDesc, groupTransform2DDesc, hslColorDesc, outlineDesc, parseColorChoice, parseTableStyleList, patternFillDesc, pictureLockingDesc, presentationLayoutVariablesDesc, presetColorDesc, presetGeometryDesc, rgbColorDesc, scRgbColorDesc, scene3DDesc, schemeColorDesc, shape3DDesc, shapeLockingDesc, solidFillDesc, sourceRectangleDesc, stretchDesc, stringifyAdjustmentValues, stringifyColorChoice, stringifyPresetGeometry, stringifyStretch, systemColorDesc, tileDesc, transform2DDesc };
@@ -1,2 +1,2 @@
1
- import { $n as createGradientStop, $t as createGroupLocking, A as customGeometryDesc, An as createGlowEffect, Ar as SystemColor, At as createStyleLabel, Bn as LineEndType, Bt as AnimateOneByOneValue, C as diagramStyleDesc, Cn as createSoftEdgeEffect, Ct as FontCollectionIndex, D as shape3DDesc, Dn as RectAlignment, Dt as createEffectColorList, E as scene3DDesc, En as createPresetShadowEffect, Et as createDiagramStyle, F as shapeLockingDesc, Fn as LineJoin, Fr as createRgbColor, Ft as createColorsDefinitionHeaderList, Gn as createNoFill, Gt as createAnimateOneByOne, Hn as createLineEnd, Ht as HierBranchStyle, I as effectListDesc, In as PenAlignment, Ir as PresetColor, It as createLayoutDefinitionHeader, Jn as PresetPattern, Jt as createMaxChildren, Kn as buildFill, Kt as createAnimationLevel, L as outlineDesc, Ln as PresetDash, Lr as createPresetColor, Lt as createLayoutDefinitionHeaderList, M as graphicFrameLockingDesc, Mn as createFillOverlayEffect, Mr as SchemeColor, Mt as createTextFillColorList, N as groupLockingDesc, Nn as CompoundLine, Nr as createSchemeColor, Nt as createTextLineColorList, O as groupTransform2DDesc, On as createOuterShadowEffect, Or as createColorElement, Ot as createFillColorList, P as pictureLockingDesc, Pn as LineCap, Pr as createScRgbColor, Pt as createColorsDefinitionHeader, Qn as createGradientFill, Qt as createGraphicFrameLocking, Rn as createOutline, Rr as createHslColor, Rt as createStyleDefinitionHeader, S as diagramRelationshipIdsDesc, Sn as createEffectList, St as ColorMethod, T as bevelDesc, Tn as PresetShadowVal, Tt as StyleMatrixIndex, Un as createCustomDash, Ut as createAdjust, Vn as LineEndWidth, Vt as AnimationLevelValue, Wn as createGroupFill, Wt as createAdjustList, Xn as PathShadeType, Xt as createPreferredChildren, Yn as createPatternFill, Yt as createOrgChart, Zn as TileFlipMode, Zt as createPresentationLayoutVariables, _n as createBevel, _t as systemColorDesc, an as createGroupTransform2D, at as blipFillDesc, bn as createEffectDag, br as createSourceRectangle, bt as createDiagramTextProperties, cn as createBlipFill, ct as tileDesc, dn as createCustomGeometry, dt as presetColorDesc, en as createPictureLocking, er as TileAlignment, fn as stringifyPresetGeometry, ft as rgbColorDesc, gn as BevelPresetType, gt as stringifyColorChoice, hn as createShape3D, ht as solidFillDesc, in as parseTableStyleList, it as blipDesc, j as presetGeometryDesc, jn as BlendMode, jr as createSystemColor, jt as createTextEffectColorList, k as transform2DDesc, kn as createInnerShadowEffect, kr as createSolidFill, kt as createLineColorList, ln as createBlip, lt as hslColorDesc, mn as PresetMaterialType, mt as schemeColorDesc, nn as createTableStyle, nt as gradientFillDesc, on as createTransform2D, ot as sourceRectangleDesc, pn as stringifyAdjustmentValues, pt as scRgbColorDesc, qn as extractBlipFillMedia, qt as createHierBranch, rn as createTableStyleList, rt as patternFillDesc, sn as stringifyStretch, st as stretchDesc, tn as createShapeLocking, tr as createTileInfo, tt as fillDesc, un as createExtentionList, ut as parseColorChoice, vn as createBottomBevel, vt as createDiagramExtensionList, w as presentationLayoutVariablesDesc, wn as createReflectionEffect, wt as HueDirection, x as diagramExtensionListDesc, xn as calculateEffectExtent, xr as createBlipEffects, xt as createDiagramRelationshipIds, yn as createScene3D, yt as createDiagramShape3D, zn as LineEndLength, zr as createColorTransforms, zt as createStyleDefinitionHeaderList } from "../src-DBVvFDIj.mjs";
1
+ import { $n as createGradientStop, $t as createGroupLocking, A as customGeometryDesc, An as createGlowEffect, Ar as SystemColor, At as createStyleLabel, Bn as LineEndType, Bt as AnimateOneByOneValue, C as diagramStyleDesc, Cn as createSoftEdgeEffect, Ct as FontCollectionIndex, D as shape3DDesc, Dn as RectAlignment, Dt as createEffectColorList, E as scene3DDesc, En as createPresetShadowEffect, Et as createDiagramStyle, F as shapeLockingDesc, Fn as LineJoin, Fr as createRgbColor, Ft as createColorsDefinitionHeaderList, Gn as createNoFill, Gt as createAnimateOneByOne, Hn as createLineEnd, Ht as HierBranchStyle, I as effectListDesc, In as PenAlignment, Ir as PresetColor, It as createLayoutDefinitionHeader, Jn as PresetPattern, Jt as createMaxChildren, Kn as buildFill, Kt as createAnimationLevel, L as outlineDesc, Ln as PresetDash, Lr as createPresetColor, Lt as createLayoutDefinitionHeaderList, M as graphicFrameLockingDesc, Mn as createFillOverlayEffect, Mr as SchemeColor, Mt as createTextFillColorList, N as groupLockingDesc, Nn as CompoundLine, Nr as createSchemeColor, Nt as createTextLineColorList, O as groupTransform2DDesc, On as createOuterShadowEffect, Or as createColorElement, Ot as createFillColorList, P as pictureLockingDesc, Pn as LineCap, Pr as createScRgbColor, Pt as createColorsDefinitionHeader, Qn as createGradientFill, Qt as createGraphicFrameLocking, Rn as createOutline, Rr as createHslColor, Rt as createStyleDefinitionHeader, S as diagramRelationshipIdsDesc, Sn as createEffectList, St as ColorMethod, T as bevelDesc, Tn as PresetShadowVal, Tt as StyleMatrixIndex, Un as createCustomDash, Ut as createAdjust, Vn as LineEndWidth, Vt as AnimationLevelValue, Wn as createGroupFill, Wt as createAdjustList, Xn as PathShadeType, Xt as createPreferredChildren, Yn as createPatternFill, Yt as createOrgChart, Zn as TileFlipMode, Zt as createPresentationLayoutVariables, _n as createBevel, _t as systemColorDesc, an as createGroupTransform2D, at as blipFillDesc, bn as createEffectDag, br as createSourceRectangle, bt as createDiagramTextProperties, cn as createBlipFill, ct as tileDesc, dn as createCustomGeometry, dt as presetColorDesc, en as createPictureLocking, er as TileAlignment, fn as stringifyPresetGeometry, ft as rgbColorDesc, gn as BevelPresetType, gt as stringifyColorChoice, hn as createShape3D, ht as solidFillDesc, in as parseTableStyleList, it as blipDesc, j as presetGeometryDesc, jn as BlendMode, jr as createSystemColor, jt as createTextEffectColorList, k as transform2DDesc, kn as createInnerShadowEffect, kr as createSolidFill, kt as createLineColorList, ln as createBlip, lt as hslColorDesc, mn as PresetMaterialType, mt as schemeColorDesc, nn as createTableStyle, nt as gradientFillDesc, on as createTransform2D, ot as sourceRectangleDesc, pn as stringifyAdjustmentValues, pt as scRgbColorDesc, qn as extractBlipFillMedia, qt as createHierBranch, rn as createTableStyleList, rt as patternFillDesc, sn as stringifyStretch, st as stretchDesc, tn as createShapeLocking, tr as createTileInfo, tt as fillDesc, un as createExtentionList, ut as parseColorChoice, vn as createBottomBevel, vt as createDiagramExtensionList, w as presentationLayoutVariablesDesc, wn as createReflectionEffect, wt as HueDirection, x as diagramExtensionListDesc, xn as calculateEffectExtent, xr as createBlipEffects, xt as createDiagramRelationshipIds, yn as createScene3D, yt as createDiagramShape3D, zn as LineEndLength, zr as createColorTransforms, zt as createStyleDefinitionHeaderList } from "../src-zBJYrHrv.mjs";
2
2
  export { AnimateOneByOneValue, AnimationLevelValue, BevelPresetType, BlendMode, ColorMethod, CompoundLine, FontCollectionIndex, HierBranchStyle, HueDirection, LineCap, LineEndLength, LineEndType, LineEndWidth, LineJoin, PathShadeType, PenAlignment, PresetColor, PresetDash, PresetMaterialType, PresetPattern, PresetShadowVal, RectAlignment, SchemeColor, StyleMatrixIndex, SystemColor, TileAlignment, TileFlipMode, bevelDesc, blipDesc, blipFillDesc, buildFill, calculateEffectExtent, createAdjust, createAdjustList, createAnimateOneByOne, createAnimationLevel, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createColorElement, createColorTransforms, createColorsDefinitionHeader, createColorsDefinitionHeaderList, createCustomDash, createCustomGeometry, createDiagramExtensionList, createDiagramRelationshipIds, createDiagramShape3D, createDiagramStyle, createDiagramTextProperties, createEffectColorList, createEffectDag, createEffectList, createExtentionList, createFillColorList, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGraphicFrameLocking, createGroupFill, createGroupLocking, createGroupTransform2D, createHierBranch, createHslColor, createInnerShadowEffect, createLayoutDefinitionHeader, createLayoutDefinitionHeaderList, createLineColorList, createLineEnd, createMaxChildren, createNoFill, createOrgChart, createOuterShadowEffect, createOutline, createPatternFill, createPictureLocking, createPreferredChildren, createPresentationLayoutVariables, createPresetColor, createPresetShadowEffect, createReflectionEffect, createRgbColor, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createShapeLocking, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createStyleDefinitionHeader, createStyleDefinitionHeaderList, createStyleLabel, createSystemColor, createTableStyle, createTableStyleList, createTextEffectColorList, createTextFillColorList, createTextLineColorList, createTileInfo, createTransform2D, customGeometryDesc, diagramExtensionListDesc, diagramRelationshipIdsDesc, diagramStyleDesc, effectListDesc, extractBlipFillMedia, fillDesc, gradientFillDesc, graphicFrameLockingDesc, groupLockingDesc, groupTransform2DDesc, hslColorDesc, outlineDesc, parseColorChoice, parseTableStyleList, patternFillDesc, pictureLockingDesc, presentationLayoutVariablesDesc, presetColorDesc, presetGeometryDesc, rgbColorDesc, scRgbColorDesc, scene3DDesc, schemeColorDesc, shape3DDesc, shapeLockingDesc, solidFillDesc, sourceRectangleDesc, stretchDesc, stringifyAdjustmentValues, stringifyColorChoice, stringifyPresetGeometry, stringifyStretch, systemColorDesc, tileDesc, transform2DDesc };
@@ -1333,12 +1333,12 @@ interface XmlifyedFile {
1333
1333
  }
1334
1334
  /** Default DEFLATE level for XML entries (SuperFast, matching MS Office). */
1335
1335
  declare const ZIP_DEFLATE_LEVEL = 1;
1336
- /** Default level for media entries (STORE no compression). */
1336
+ /** Level for already-compressed media STORE (no compression). */
1337
1337
  declare const ZIP_STORED_LEVEL = 0;
1338
1338
  /**
1339
1339
  * Resolve the ZIP level for a media entry by file-name extension, matching MS
1340
1340
  * Office: already-compressed raster formats → STORE (0), everything else →
1341
- * DEFLATE (`mediaLevel`, default SuperFast). A `compression.media` override
1341
+ * DEFLATE (`mediaLevel`, default Normal). A `compression.media` override
1342
1342
  * therefore applies only to compressible formats, never forcing DEFLATE onto
1343
1343
  * pre-compressed assets.
1344
1344
  */
@@ -1350,7 +1350,7 @@ interface CompressionOptions {
1350
1350
  /**
1351
1351
  * DEFLATE level for compressible media (EMF/WMF/BMP/TIFF/…). Already-compressed
1352
1352
  * formats (PNG/JPEG/GIF) are always STOREd regardless, matching MS Office.
1353
- * Default: 1 (SuperFast).
1353
+ * Default: 6 (Normal, matching MS Office for EMF/WMF).
1354
1354
  */
1355
1355
  media?: number;
1356
1356
  }
@@ -1369,7 +1369,7 @@ interface PackerOptions<T extends OutputType = "nodebuffer"> {
1369
1369
  * Uses fflate Web Workers for non-blocking DEFLATE compression.
1370
1370
  * XML entries use DEFLATE level 1 (SuperFast) by default. Media entries are
1371
1371
  * split by type, matching MS Office: already-compressed formats (PNG/JPEG/GIF)
1372
- * are STOREd, everything else uses the `media` level (default SuperFast).
1372
+ * are STOREd, everything else uses the `media` level (default Normal).
1373
1373
  * Set `{ media: ZIP_STORED_LEVEL }` to STORE all compressible media too.
1374
1374
  */
1375
1375
  declare const zipAndConvert: <T extends OutputType>(files: Zippable, type: T, mimeType: string, level?: number) => Promise<OutputByType[T]>;
@@ -1526,6 +1526,8 @@ declare class Media<T extends BaseMediaEntry> {
1526
1526
  * file name); omit it to allocate the next sequential `imageN.ext`.
1527
1527
  */
1528
1528
  addMedia(data: Uint8Array, type: string, build: (fileName: string) => T, fileName?: string): T;
1529
+ /** Next sequential `imageN.${type}` that isn't already in use. */
1530
+ private nextName;
1529
1531
  /** "length:hash" content key for `data` (FNV-1a over the raw bytes), memoized. */
1530
1532
  private contentKey;
1531
1533
  /** Structural equality with early exit on the first mismatch. */
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { _ as ChartCollection, a as ChartSpaceOptions, c as DataLabelsOptions, d as ErrorBarType, f as ErrorValueType, g as View3DOptions, h as TrendlineType, i as ChartSeriesData, l as ErrorBarDirection, m as TrendlineOptions, n as AxisChartType, o as ChartType, p as TimeUnit, r as BubbleSeriesData, s as DataLabelPosition, t as chartSpaceDesc, u as ErrorBarOptions, v as ChartData } from "./index-CN0YjNSx.mjs";
2
2
  import { _ as Descriptor, a as diffTagSets, c as FIELD_SPECS, d as boolEncode, f as enumDecode, g as CustomDescriptor, h as stringify, i as checkOrder, l as findFieldSpec, m as parse, n as OrderViolation, o as roundTripFields, p as enumEncode, r as RoundTripResult, s as DescriptorFieldSpec, t as FieldConsistencyReport, u as boolDecode, v as ReadContext, y as WriteContext } from "./index-CpNwAcem.mjs";
3
- import { $ as createLineColorList, $a as TileAlignment, $i as encodeBase64, $n as createReflectionEffect, $r as xsdPathFillMode, $t as TableStyleListOptions, A as scRgbColorDesc, Aa as zipAndConvert, Ai as convertUniversalMeasureToEmu, An as createShape3D, Ar as addSmartArtRelationships, At as PresentationLayoutVariablesOptions, B as createDiagramTextProperties, Ba as GradientStopOptions, Bi as OpcSeverity, Bn as SphereCoords, Br as replaceHyperlinkPlaceholders, Bt as GraphicFrameLockingOptions, C as fillDesc, Ca as ZipOptions, Ci as convertMillimetersToTwip, Cn as createCustomGeometry, Co as createHslColor, Cr as LineEndType, Ct as AnimationLevelOptions, D as parseColorChoice, Da as levelForMediaName, Di as convertToInch, Dn as stringifyAdjustmentValues, Dr as createCustomDash, Dt as MaxChildrenOptions, E as hslColorDesc, Ea as createZipStream, Ei as convertToEmu, En as GeometryGuide, Er as DashStop, Et as HierBranchStyle, F as DiagramExtensionListOptions, Fa as createPatternFill, Fi as compileMapping, Fn as BackdropOptions, Fr as getReferencedMedia, Ft as createHierBranch, G as DiagramStyleLabelOptions, Ga as GradientStop, Gi as PPTX_PARTS, Gn as EffectDagOptions, Gr as replaceVideoPlaceholders, Gt as createGroupLocking, H as createDiagramRelationshipIds, Ha as extractBlipFillMedia, Hi as validateOpcConsistency, Hn as createScene3D, Hr as replaceMediaPlaceholders, Ht as PictureLockingOptions, I as DiagramExtensionOptions, Ia as createNoFill, Ii as ContentTypeOverrideEntry, In as CameraOptions, Ir as getVideoRefs, It as createMaxChildren, J as HueDirection, Ja as PathShadeType, Ji as PartPresence, Jn as EffectExtent, Jr as xsdCompoundLine, Jt as OnOffStyleType, K as DiagramStyleOptions, Ka as LinearShadeOptions, Ki as PackagePartRegistry, Kn as createEffectDag, Kr as invertMap, Kt as createPictureLocking, L as DiagramTextPropertiesOptions, La as BlipFillConfigOptions, Li as buildContentTypeOverrides, Ln as LightRigOptions, Lr as hasPlaceholders, Lt as createOrgChart, M as solidFillDesc, Ma as createGroupFill, Mi as convertUniversalMeasureToPt, Mn as BevelPresetType, Mr as findAndReplaceImagePlaceholders, Mt as createAdjustList, N as stringifyColorChoice, Na as PatternFillOptions, Ni as convertUniversalMeasureToTwip, Nn as createBevel, Nr as formatId, Nt as createAnimateOneByOne, O as presetColorDesc, Oa as strFromU8, Oi as convertToPt, On as PresetMaterialType, Or as IdFormat, Ot as OrgChartOptions, P as systemColorDesc, Pa as PresetPattern, Pi as parseUniversalMeasure, Pn as createBottomBevel, Pr as getMediaRefs, Pt as createAnimationLevel, Q as createFillColorList, Qa as createGradientStop, Qi as decodeBase64, Qn as ReflectionEffectOptions, Qr as xsdMaterialType, Qt as TablePartStyleOptions, R as createDiagramExtensionList, Ra as BlipFillMediaData, Ri as OpcCode, Rn as Point3D, Rr as replaceAllPlaceholders, Rt as createPreferredChildren, S as outlineDesc, Sa as ZIP_STORED_LEVEL, Si as convertInchesToTwip, Sn as PathOptions, So as HslColorOptions, Sr as LineEndOptions, St as AnimateOneByOneValue, T as patternFillDesc, Ta as createPacker, Ti as convertPointsToEmu, Tn as stringifyPresetGeometry, To as createColorTransforms, Tr as createLineEnd, Tt as HierBranchOptions, U as ColorListOptions, Ua as GradientFillOptions, Ui as DOCX_PARTS, Un as createSoftEdgeEffect, Ur as replaceNumberingPlaceholders, Ut as ShapeLockingOptions, V as DiagramRelationshipIdsOptions, Va as buildFill, Vi as summarizeOpcIssues, Vn as Vector3D, Vr as replaceImagePlaceholders, Vt as GroupLockingOptions, W as ColorMethod, Wa as GradientShadeOptions, Wi as PART_REGISTRIES, Wn as EffectContainerType, Wr as replaceSmartArtPlaceholders, Wt as createGraphicFrameLocking, X as createDiagramStyle, Xa as TileFlipMode, Xi as ParsedArchive, Xn as calculateEffectExtent, Xr as xsdLineCap, Xt as TableCellBorderOptions, Y as StyleMatrixIndex, Ya as RelativeRect, Yi as XLSX_PARTS, Yn as EffectListOptions, Yr as xsdEffectContainer, Yt as StyleMatrixReferenceOptions, Z as createEffectColorList, Za as createGradientFill, Zi as parseArchive, Zn as createEffectList, Zr as xsdLineEndSize, Zt as TableCellStyleOptions, _ as graphicFrameLockingDesc, _a as CompressionOptions, _i as randomBytes, _n as ConnectionSite, _o as RgbColorOptions, _r as OutlineOptions, _t as createStyleDefinitionHeader, a as blipDesc, aa as appPropertiesDesc, ai as xsdTextAlign, an as createTableStyleList, ao as createBlipEffects, ar as createOuterShadowEffect, at as ColorsDefinitionHeaderOptions, b as shapeLockingDesc, ba as XmlifyedFile, bi as convertEmuToPoints, bn as PathCommand, bo as PresetColorOptions, br as createOutline, bt as AdjustOptions, c as stretchDesc, ca as createDefault, ci as xsdUnderlineStyle, cn as Transform2DOptions, co as createSolidFill, cr as GlowEffectOptions, ct as DiagramNameOptions, d as scene3DDesc, da as Media, di as hashedId, dn as stringifyStretch, do as createSystemColor, dr as FillOverlayEffectOptions, dt as StyleDefinitionHeaderListOptions, ea as CustomPropertiesInput, ei as xsdPattern, en as TableStyleOptions, eo as TileOptions, er as PresetShadowEffectOptions, et as createStyleLabel, f as shape3DDesc, fa as RelationshipType, fi as uniqueId, fn as createExtentionList, fo as SchemeColor, fr as createFillOverlayEffect, ft as StyleDefinitionHeaderOptions, g as presetGeometryDesc, ga as CompileFn, gi as hashPasswordAgile, gn as createBlip, go as createScRgbColor, gr as OutlineFillProperties, gt as createLayoutDefinitionHeaderList, h as customGeometryDesc, ha as optionalRelsPart, hi as derivePasswordHash, hn as BlipOptions, ho as ScRgbColorOptions, hr as LineJoin, ht as createLayoutDefinitionHeader, i as presentationLayoutVariablesDesc, ia as AppPropertiesOptions, ii as xsdStrikeStyle, in as createTableStyle, io as BlipEffectsOptions, ir as RectAlignment, it as ColorsDefinitionHeaderListOptions, j as schemeColorDesc, ja as zipSyncAndConvert, ji as convertUniversalMeasureToInch, jn as BevelOptions, jr as collectPlaceholderKeys, jt as createAdjust, k as rgbColorDesc, ka as unzipSync, ki as convertToTwip, kn as Shape3DOptions, kr as SmartArtRelOptions, kt as PreferredChildrenOptions, l as tileDesc, la as createOverride, li as xsdVerticalMergeRev, ln as createGroupTransform2D, lo as SystemColor, lr as createGlowEffect, lt as LayoutDefinitionHeaderListOptions, m as transform2DDesc, ma as TargetModeType, mi as uniqueUuid, mn as createBlipFill, mo as createSchemeColor, mr as LineCap, mt as createColorsDefinitionHeaderList, n as diagramRelationshipIdsDesc, na as customPropertiesDesc, ni as xsdPresetShadow, nn as TableTextStyleOptions, no as SourceRectangleOptions, nr as createPresetShadowEffect, nt as createTextFillColorList, o as blipFillDesc, oa as DefaultAttributes, oi as xsdTextAnchor, on as parseTableStyleList, oo as SolidFillOptions, or as InnerShadowEffectOptions, ot as DiagramCategoryOptions, p as groupTransform2DDesc, pa as Relationships, pi as uniqueNumericIdCreator, pn as BlipFillOptions, po as SchemeColorOptions, pr as CompoundLine, pt as createColorsDefinitionHeader, q as FontCollectionIndex, qa as PathShadeOptions, qi as PartDef, qn as BlurEffectOptions, qr as xsdBlendMode, qt as createShapeLocking, r as diagramStyleDesc, ra as AppPropertiesInput, ri as xsdRectAlignment, rn as ThemeableLineStyleOptions, ro as createSourceRectangle, rr as OuterShadowEffectOptions, rt as createTextLineColorList, s as sourceRectangleDesc, sa as OverrideAttributes, si as xsdTextCaps, sn as GroupTransform2DOptions, so as createColorElement, sr as createInnerShadowEffect, st as DiagramDescriptionOptions, t as diagramExtensionListDesc, ta as CustomPropertyOptions, ti as xsdPenAlignment, tn as TableStyleRegion, to as createTileInfo, tr as PresetShadowVal, tt as createTextEffectColorList, u as bevelDesc, ua as BaseMediaEntry, ui as UniqueNumericIdCreator, un as createTransform2D, uo as SystemColorOptions, ur as BlendMode, ut as LayoutDefinitionHeaderOptions, v as groupLockingDesc, va as Packer, vi as convertEmuToInches, vn as CustomGeometryOptions, vo as createRgbColor, vr as PenAlignment, vt as createStyleDefinitionHeaderList, w as gradientFillDesc, wa as Zippable, wi as convertPixelsToEmu, wn as PresetGeometryOptions, wo as ColorTransformOptions, wr as LineEndWidth, wt as AnimationLevelValue, x as effectListDesc, xa as ZIP_DEFLATE_LEVEL, xi as convertInchesToEmu, xn as PathFillMode, xo as createPresetColor, xr as LineEndLength, xt as AnimateOneByOneOptions, y as pictureLockingDesc, ya as PackerOptions, yi as convertEmuToPixels, yn as GeomRect, yo as PresetColor, yr as PresetDash, yt as AdjustListOptions, z as createDiagramShape3D, za as FillOptions, zi as OpcIssue, zn as Scene3DOptions, zr as replaceChartPlaceholders, zt as createPresentationLayoutVariables } from "./index-DWE6knYT.mjs";
3
+ import { $ as createLineColorList, $a as TileAlignment, $i as encodeBase64, $n as createReflectionEffect, $r as xsdPathFillMode, $t as TableStyleListOptions, A as scRgbColorDesc, Aa as zipAndConvert, Ai as convertUniversalMeasureToEmu, An as createShape3D, Ar as addSmartArtRelationships, At as PresentationLayoutVariablesOptions, B as createDiagramTextProperties, Ba as GradientStopOptions, Bi as OpcSeverity, Bn as SphereCoords, Br as replaceHyperlinkPlaceholders, Bt as GraphicFrameLockingOptions, C as fillDesc, Ca as ZipOptions, Ci as convertMillimetersToTwip, Cn as createCustomGeometry, Co as createHslColor, Cr as LineEndType, Ct as AnimationLevelOptions, D as parseColorChoice, Da as levelForMediaName, Di as convertToInch, Dn as stringifyAdjustmentValues, Dr as createCustomDash, Dt as MaxChildrenOptions, E as hslColorDesc, Ea as createZipStream, Ei as convertToEmu, En as GeometryGuide, Er as DashStop, Et as HierBranchStyle, F as DiagramExtensionListOptions, Fa as createPatternFill, Fi as compileMapping, Fn as BackdropOptions, Fr as getReferencedMedia, Ft as createHierBranch, G as DiagramStyleLabelOptions, Ga as GradientStop, Gi as PPTX_PARTS, Gn as EffectDagOptions, Gr as replaceVideoPlaceholders, Gt as createGroupLocking, H as createDiagramRelationshipIds, Ha as extractBlipFillMedia, Hi as validateOpcConsistency, Hn as createScene3D, Hr as replaceMediaPlaceholders, Ht as PictureLockingOptions, I as DiagramExtensionOptions, Ia as createNoFill, Ii as ContentTypeOverrideEntry, In as CameraOptions, Ir as getVideoRefs, It as createMaxChildren, J as HueDirection, Ja as PathShadeType, Ji as PartPresence, Jn as EffectExtent, Jr as xsdCompoundLine, Jt as OnOffStyleType, K as DiagramStyleOptions, Ka as LinearShadeOptions, Ki as PackagePartRegistry, Kn as createEffectDag, Kr as invertMap, Kt as createPictureLocking, L as DiagramTextPropertiesOptions, La as BlipFillConfigOptions, Li as buildContentTypeOverrides, Ln as LightRigOptions, Lr as hasPlaceholders, Lt as createOrgChart, M as solidFillDesc, Ma as createGroupFill, Mi as convertUniversalMeasureToPt, Mn as BevelPresetType, Mr as findAndReplaceImagePlaceholders, Mt as createAdjustList, N as stringifyColorChoice, Na as PatternFillOptions, Ni as convertUniversalMeasureToTwip, Nn as createBevel, Nr as formatId, Nt as createAnimateOneByOne, O as presetColorDesc, Oa as strFromU8, Oi as convertToPt, On as PresetMaterialType, Or as IdFormat, Ot as OrgChartOptions, P as systemColorDesc, Pa as PresetPattern, Pi as parseUniversalMeasure, Pn as createBottomBevel, Pr as getMediaRefs, Pt as createAnimationLevel, Q as createFillColorList, Qa as createGradientStop, Qi as decodeBase64, Qn as ReflectionEffectOptions, Qr as xsdMaterialType, Qt as TablePartStyleOptions, R as createDiagramExtensionList, Ra as BlipFillMediaData, Ri as OpcCode, Rn as Point3D, Rr as replaceAllPlaceholders, Rt as createPreferredChildren, S as outlineDesc, Sa as ZIP_STORED_LEVEL, Si as convertInchesToTwip, Sn as PathOptions, So as HslColorOptions, Sr as LineEndOptions, St as AnimateOneByOneValue, T as patternFillDesc, Ta as createPacker, Ti as convertPointsToEmu, Tn as stringifyPresetGeometry, To as createColorTransforms, Tr as createLineEnd, Tt as HierBranchOptions, U as ColorListOptions, Ua as GradientFillOptions, Ui as DOCX_PARTS, Un as createSoftEdgeEffect, Ur as replaceNumberingPlaceholders, Ut as ShapeLockingOptions, V as DiagramRelationshipIdsOptions, Va as buildFill, Vi as summarizeOpcIssues, Vn as Vector3D, Vr as replaceImagePlaceholders, Vt as GroupLockingOptions, W as ColorMethod, Wa as GradientShadeOptions, Wi as PART_REGISTRIES, Wn as EffectContainerType, Wr as replaceSmartArtPlaceholders, Wt as createGraphicFrameLocking, X as createDiagramStyle, Xa as TileFlipMode, Xi as ParsedArchive, Xn as calculateEffectExtent, Xr as xsdLineCap, Xt as TableCellBorderOptions, Y as StyleMatrixIndex, Ya as RelativeRect, Yi as XLSX_PARTS, Yn as EffectListOptions, Yr as xsdEffectContainer, Yt as StyleMatrixReferenceOptions, Z as createEffectColorList, Za as createGradientFill, Zi as parseArchive, Zn as createEffectList, Zr as xsdLineEndSize, Zt as TableCellStyleOptions, _ as graphicFrameLockingDesc, _a as CompressionOptions, _i as randomBytes, _n as ConnectionSite, _o as RgbColorOptions, _r as OutlineOptions, _t as createStyleDefinitionHeader, a as blipDesc, aa as appPropertiesDesc, ai as xsdTextAlign, an as createTableStyleList, ao as createBlipEffects, ar as createOuterShadowEffect, at as ColorsDefinitionHeaderOptions, b as shapeLockingDesc, ba as XmlifyedFile, bi as convertEmuToPoints, bn as PathCommand, bo as PresetColorOptions, br as createOutline, bt as AdjustOptions, c as stretchDesc, ca as createDefault, ci as xsdUnderlineStyle, cn as Transform2DOptions, co as createSolidFill, cr as GlowEffectOptions, ct as DiagramNameOptions, d as scene3DDesc, da as Media, di as hashedId, dn as stringifyStretch, do as createSystemColor, dr as FillOverlayEffectOptions, dt as StyleDefinitionHeaderListOptions, ea as CustomPropertiesInput, ei as xsdPattern, en as TableStyleOptions, eo as TileOptions, er as PresetShadowEffectOptions, et as createStyleLabel, f as shape3DDesc, fa as RelationshipType, fi as uniqueId, fn as createExtentionList, fo as SchemeColor, fr as createFillOverlayEffect, ft as StyleDefinitionHeaderOptions, g as presetGeometryDesc, ga as CompileFn, gi as hashPasswordAgile, gn as createBlip, go as createScRgbColor, gr as OutlineFillProperties, gt as createLayoutDefinitionHeaderList, h as customGeometryDesc, ha as optionalRelsPart, hi as derivePasswordHash, hn as BlipOptions, ho as ScRgbColorOptions, hr as LineJoin, ht as createLayoutDefinitionHeader, i as presentationLayoutVariablesDesc, ia as AppPropertiesOptions, ii as xsdStrikeStyle, in as createTableStyle, io as BlipEffectsOptions, ir as RectAlignment, it as ColorsDefinitionHeaderListOptions, j as schemeColorDesc, ja as zipSyncAndConvert, ji as convertUniversalMeasureToInch, jn as BevelOptions, jr as collectPlaceholderKeys, jt as createAdjust, k as rgbColorDesc, ka as unzipSync, ki as convertToTwip, kn as Shape3DOptions, kr as SmartArtRelOptions, kt as PreferredChildrenOptions, l as tileDesc, la as createOverride, li as xsdVerticalMergeRev, ln as createGroupTransform2D, lo as SystemColor, lr as createGlowEffect, lt as LayoutDefinitionHeaderListOptions, m as transform2DDesc, ma as TargetModeType, mi as uniqueUuid, mn as createBlipFill, mo as createSchemeColor, mr as LineCap, mt as createColorsDefinitionHeaderList, n as diagramRelationshipIdsDesc, na as customPropertiesDesc, ni as xsdPresetShadow, nn as TableTextStyleOptions, no as SourceRectangleOptions, nr as createPresetShadowEffect, nt as createTextFillColorList, o as blipFillDesc, oa as DefaultAttributes, oi as xsdTextAnchor, on as parseTableStyleList, oo as SolidFillOptions, or as InnerShadowEffectOptions, ot as DiagramCategoryOptions, p as groupTransform2DDesc, pa as Relationships, pi as uniqueNumericIdCreator, pn as BlipFillOptions, po as SchemeColorOptions, pr as CompoundLine, pt as createColorsDefinitionHeader, q as FontCollectionIndex, qa as PathShadeOptions, qi as PartDef, qn as BlurEffectOptions, qr as xsdBlendMode, qt as createShapeLocking, r as diagramStyleDesc, ra as AppPropertiesInput, ri as xsdRectAlignment, rn as ThemeableLineStyleOptions, ro as createSourceRectangle, rr as OuterShadowEffectOptions, rt as createTextLineColorList, s as sourceRectangleDesc, sa as OverrideAttributes, si as xsdTextCaps, sn as GroupTransform2DOptions, so as createColorElement, sr as createInnerShadowEffect, st as DiagramDescriptionOptions, t as diagramExtensionListDesc, ta as CustomPropertyOptions, ti as xsdPenAlignment, tn as TableStyleRegion, to as createTileInfo, tr as PresetShadowVal, tt as createTextEffectColorList, u as bevelDesc, ua as BaseMediaEntry, ui as UniqueNumericIdCreator, un as createTransform2D, uo as SystemColorOptions, ur as BlendMode, ut as LayoutDefinitionHeaderOptions, v as groupLockingDesc, va as Packer, vi as convertEmuToInches, vn as CustomGeometryOptions, vo as createRgbColor, vr as PenAlignment, vt as createStyleDefinitionHeaderList, w as gradientFillDesc, wa as Zippable, wi as convertPixelsToEmu, wn as PresetGeometryOptions, wo as ColorTransformOptions, wr as LineEndWidth, wt as AnimationLevelValue, x as effectListDesc, xa as ZIP_DEFLATE_LEVEL, xi as convertInchesToEmu, xn as PathFillMode, xo as createPresetColor, xr as LineEndLength, xt as AnimateOneByOneOptions, y as pictureLockingDesc, ya as PackerOptions, yi as convertEmuToPixels, yn as GeomRect, yo as PresetColor, yr as PresetDash, yt as AdjustListOptions, z as createDiagramShape3D, za as FillOptions, zi as OpcIssue, zn as Scene3DOptions, zr as replaceChartPlaceholders, zt as createPresentationLayoutVariables } from "./index-DdXU1_sq.mjs";
4
4
  import { A as OutputType, C as XmlNamespaceConfig, D as parseCorePropsElement, E as buildCorePropertiesXmlString, F as toUint8Array, M as DataType, N as ToUint8ArrayOptions, O as OoxmlMimeType, P as isBase64DataURL, S as PPTX_NS, T as buildCorePropertiesXml, _ as RenderedParagraphNode, a as getNextRelationshipIndex, b as createReplacer, c as createTextElementContents, d as patchSpaceAttribute, f as toJson, g as createTraverser, h as createTokenReplacer, i as appendRelationship, j as convertOutput, k as OutputByType, l as getFirstLevelElements, m as createSplitInject, n as PlaceholderDelimiters, o as appendContentType, p as TokenNotFoundError, r as applyCorePropertiesOverride, s as appendOverride, t as BasePatchOptions, u as nextNumericId, v as createRunRenderer, w as CorePropertiesOptions, x as DOCX_NS, y as ReplacerConfig } from "./index-CHGFwCCQ.mjs";
5
5
  import { a as PointPropertySetOptions, c as stringifyDataModel, d as getColorXml, f as getLayoutXml, g as STYLE_CATEGORIES, h as LAYOUT_CATEGORIES, i as SmartArtData, l as stringifyConnection, m as COLOR_CATEGORIES, n as createDataModel, o as stringifyPoint, p as getStyleXml, r as SmartArtCollection, s as stringifyTransPoint, t as TreeNode, u as DEFAULT_DRAWING_XML } from "./index-CsQP7Cl4.mjs";
6
6
  import { a as ColorSchemeOptions, i as createThemeXml, n as DEFAULT_COLORS, o as FontSchemeOptions, r as buildThemeXml, s as ThemeOptions, t as themeDesc } from "./index-3STznXzZ.mjs";
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as convertUniversalMeasureToTwip, $n as createGradientStop, $r as levelForMediaName, $t as createGroupLocking, A as customGeometryDesc, An as createGlowEffect, Ar as SystemColor, At as createStyleLabel, B as convertEmuToPoints, Bn as LineEndType, Br as buildContentTypeOverrides, Bt as AnimateOneByOneValue, C as diagramStyleDesc, Cn as createSoftEdgeEffect, Cr as uniqueId, Ct as FontCollectionIndex, D as shape3DDesc, Dn as RectAlignment, Dr as toUint8Array, Dt as createEffectColorList, E as scene3DDesc, En as createPresetShadowEffect, Er as isBase64DataURL, Et as createDiagramStyle, F as shapeLockingDesc, Fn as LineJoin, Fr as createRgbColor, Ft as createColorsDefinitionHeaderList, G as convertPointsToEmu, Gn as createNoFill, Gr as summarizeOpcIssues, Gt as createAnimateOneByOne, H as convertInchesToTwip, Hn as createLineEnd, Hr as PART_REGISTRIES, Ht as HierBranchStyle, I as effectListDesc, In as PenAlignment, Ir as PresetColor, It as createLayoutDefinitionHeader, J as convertToPt, Jn as PresetPattern, Jr as parseArchive, Jt as createMaxChildren, K as convertToEmu, Kn as buildFill, Kr as validateOpcConsistency, Kt as createAnimationLevel, L as outlineDesc, Ln as PresetDash, Lr as createPresetColor, Lt as createLayoutDefinitionHeaderList, M as graphicFrameLockingDesc, Mn as createFillOverlayEffect, Mr as SchemeColor, Mt as createTextFillColorList, N as groupLockingDesc, Nn as CompoundLine, Nr as createSchemeColor, Nt as createTextLineColorList, O as groupTransform2DDesc, On as createOuterShadowEffect, Or as createColorElement, Ot as createFillColorList, P as pictureLockingDesc, Pn as LineCap, Pr as createScRgbColor, Pt as createColorsDefinitionHeader, Q as convertUniversalMeasureToPt, Qn as createGradientFill, Qr as createZipStream, Qt as createGraphicFrameLocking, R as convertEmuToInches, Rn as createOutline, Rr as createHslColor, Rt as createStyleDefinitionHeader, S as diagramRelationshipIdsDesc, Sn as createEffectList, Sr as hashedId, St as ColorMethod, T as bevelDesc, Tn as PresetShadowVal, Tr as uniqueUuid, Tt as StyleMatrixIndex, U as convertMillimetersToTwip, Un as createCustomDash, Ur as PPTX_PARTS, Ut as createAdjust, V as convertInchesToEmu, Vn as LineEndWidth, Vr as DOCX_PARTS, Vt as AnimationLevelValue, W as convertPixelsToEmu, Wn as createGroupFill, Wr as XLSX_PARTS, Wt as createAdjustList, X as convertUniversalMeasureToEmu, Xn as PathShadeType, Xr as ZIP_STORED_LEVEL, Xt as createPreferredChildren, Y as convertToTwip, Yn as createPatternFill, Yr as ZIP_DEFLATE_LEVEL, Yt as createOrgChart, Z as convertUniversalMeasureToInch, Zn as TileFlipMode, Zr as createPacker, Zt as createPresentationLayoutVariables, _ as derivePasswordHash, _n as createBevel, _r as xsdTextCaps, _t as systemColorDesc, a as getMediaRefs, ai as convertOutput, an as createGroupTransform2D, ar as xsdEffectContainer, at as blipFillDesc, b as compileMapping, bn as createEffectDag, br as createSourceRectangle, bt as createDiagramTextProperties, c as hasPlaceholders, ci as customPropertiesDesc, cn as createBlipFill, cr as xsdMaterialType, ct as tileDesc, d as replaceHyperlinkPlaceholders, di as createOverride, dn as createCustomGeometry, dr as xsdPenAlignment, dt as presetColorDesc, ei as strFromU8, en as createPictureLocking, er as TileAlignment, et as parseUniversalMeasure, f as replaceImagePlaceholders, fi as Media, fn as stringifyPresetGeometry, fr as xsdPresetShadow, ft as rgbColorDesc, g as replaceVideoPlaceholders, gn as BevelPresetType, gr as xsdTextAnchor, gt as stringifyColorChoice, h as replaceSmartArtPlaceholders, hi as optionalRelsPart, hn as createShape3D, hr as xsdTextAlign, ht as solidFillDesc, i as formatId, ii as OoxmlMimeType, in as parseTableStyleList, ir as xsdCompoundLine, it as blipDesc, j as presetGeometryDesc, jn as BlendMode, jr as createSystemColor, jt as createTextEffectColorList, k as transform2DDesc, kn as createInnerShadowEffect, kr as createSolidFill, kt as createLineColorList, l as replaceAllPlaceholders, li as appPropertiesDesc, ln as createBlip, lr as xsdPathFillMode, lt as hslColorDesc, m as replaceNumberingPlaceholders, mi as TargetModeType, mn as PresetMaterialType, mr as xsdStrikeStyle, mt as schemeColorDesc, n as collectPlaceholderKeys, ni as zipAndConvert, nn as createTableStyle, nr as invertMap, nt as gradientFillDesc, o as getReferencedMedia, oi as decodeBase64, on as createTransform2D, or as xsdLineCap, ot as sourceRectangleDesc, p as replaceMediaPlaceholders, pi as Relationships, pn as stringifyAdjustmentValues, pr as xsdRectAlignment, pt as scRgbColorDesc, q as convertToInch, qn as extractBlipFillMedia, qr as ParsedArchive, qt as createHierBranch, r as findAndReplaceImagePlaceholders, ri as zipSyncAndConvert, rn as createTableStyleList, rr as xsdBlendMode, rt as patternFillDesc, s as getVideoRefs, si as encodeBase64, sn as stringifyStretch, sr as xsdLineEndSize, st as stretchDesc, t as addSmartArtRelationships, ti as unzipSync, tn as createShapeLocking, tr as createTileInfo, tt as fillDesc, u as replaceChartPlaceholders, ui as createDefault, un as createExtentionList, ur as xsdPattern, ut as parseColorChoice, v as hashPasswordAgile, vn as createBottomBevel, vr as xsdUnderlineStyle, vt as createDiagramExtensionList, w as presentationLayoutVariablesDesc, wn as createReflectionEffect, wr as uniqueNumericIdCreator, wt as HueDirection, x as diagramExtensionListDesc, xn as calculateEffectExtent, xr as createBlipEffects, xt as createDiagramRelationshipIds, y as randomBytes, yn as createScene3D, yr as xsdVerticalMergeRev, yt as createDiagramShape3D, z as convertEmuToPixels, zn as LineEndLength, zr as createColorTransforms, zt as createStyleDefinitionHeaderList } from "./src-DBVvFDIj.mjs";
1
+ import { $ as convertUniversalMeasureToTwip, $n as createGradientStop, $r as levelForMediaName, $t as createGroupLocking, A as customGeometryDesc, An as createGlowEffect, Ar as SystemColor, At as createStyleLabel, B as convertEmuToPoints, Bn as LineEndType, Br as buildContentTypeOverrides, Bt as AnimateOneByOneValue, C as diagramStyleDesc, Cn as createSoftEdgeEffect, Cr as uniqueId, Ct as FontCollectionIndex, D as shape3DDesc, Dn as RectAlignment, Dr as toUint8Array, Dt as createEffectColorList, E as scene3DDesc, En as createPresetShadowEffect, Er as isBase64DataURL, Et as createDiagramStyle, F as shapeLockingDesc, Fn as LineJoin, Fr as createRgbColor, Ft as createColorsDefinitionHeaderList, G as convertPointsToEmu, Gn as createNoFill, Gr as summarizeOpcIssues, Gt as createAnimateOneByOne, H as convertInchesToTwip, Hn as createLineEnd, Hr as PART_REGISTRIES, Ht as HierBranchStyle, I as effectListDesc, In as PenAlignment, Ir as PresetColor, It as createLayoutDefinitionHeader, J as convertToPt, Jn as PresetPattern, Jr as parseArchive, Jt as createMaxChildren, K as convertToEmu, Kn as buildFill, Kr as validateOpcConsistency, Kt as createAnimationLevel, L as outlineDesc, Ln as PresetDash, Lr as createPresetColor, Lt as createLayoutDefinitionHeaderList, M as graphicFrameLockingDesc, Mn as createFillOverlayEffect, Mr as SchemeColor, Mt as createTextFillColorList, N as groupLockingDesc, Nn as CompoundLine, Nr as createSchemeColor, Nt as createTextLineColorList, O as groupTransform2DDesc, On as createOuterShadowEffect, Or as createColorElement, Ot as createFillColorList, P as pictureLockingDesc, Pn as LineCap, Pr as createScRgbColor, Pt as createColorsDefinitionHeader, Q as convertUniversalMeasureToPt, Qn as createGradientFill, Qr as createZipStream, Qt as createGraphicFrameLocking, R as convertEmuToInches, Rn as createOutline, Rr as createHslColor, Rt as createStyleDefinitionHeader, S as diagramRelationshipIdsDesc, Sn as createEffectList, Sr as hashedId, St as ColorMethod, T as bevelDesc, Tn as PresetShadowVal, Tr as uniqueUuid, Tt as StyleMatrixIndex, U as convertMillimetersToTwip, Un as createCustomDash, Ur as PPTX_PARTS, Ut as createAdjust, V as convertInchesToEmu, Vn as LineEndWidth, Vr as DOCX_PARTS, Vt as AnimationLevelValue, W as convertPixelsToEmu, Wn as createGroupFill, Wr as XLSX_PARTS, Wt as createAdjustList, X as convertUniversalMeasureToEmu, Xn as PathShadeType, Xr as ZIP_STORED_LEVEL, Xt as createPreferredChildren, Y as convertToTwip, Yn as createPatternFill, Yr as ZIP_DEFLATE_LEVEL, Yt as createOrgChart, Z as convertUniversalMeasureToInch, Zn as TileFlipMode, Zr as createPacker, Zt as createPresentationLayoutVariables, _ as derivePasswordHash, _n as createBevel, _r as xsdTextCaps, _t as systemColorDesc, a as getMediaRefs, ai as convertOutput, an as createGroupTransform2D, ar as xsdEffectContainer, at as blipFillDesc, b as compileMapping, bn as createEffectDag, br as createSourceRectangle, bt as createDiagramTextProperties, c as hasPlaceholders, ci as customPropertiesDesc, cn as createBlipFill, cr as xsdMaterialType, ct as tileDesc, d as replaceHyperlinkPlaceholders, di as createOverride, dn as createCustomGeometry, dr as xsdPenAlignment, dt as presetColorDesc, ei as strFromU8, en as createPictureLocking, er as TileAlignment, et as parseUniversalMeasure, f as replaceImagePlaceholders, fi as Media, fn as stringifyPresetGeometry, fr as xsdPresetShadow, ft as rgbColorDesc, g as replaceVideoPlaceholders, gn as BevelPresetType, gr as xsdTextAnchor, gt as stringifyColorChoice, h as replaceSmartArtPlaceholders, hi as optionalRelsPart, hn as createShape3D, hr as xsdTextAlign, ht as solidFillDesc, i as formatId, ii as OoxmlMimeType, in as parseTableStyleList, ir as xsdCompoundLine, it as blipDesc, j as presetGeometryDesc, jn as BlendMode, jr as createSystemColor, jt as createTextEffectColorList, k as transform2DDesc, kn as createInnerShadowEffect, kr as createSolidFill, kt as createLineColorList, l as replaceAllPlaceholders, li as appPropertiesDesc, ln as createBlip, lr as xsdPathFillMode, lt as hslColorDesc, m as replaceNumberingPlaceholders, mi as TargetModeType, mn as PresetMaterialType, mr as xsdStrikeStyle, mt as schemeColorDesc, n as collectPlaceholderKeys, ni as zipAndConvert, nn as createTableStyle, nr as invertMap, nt as gradientFillDesc, o as getReferencedMedia, oi as decodeBase64, on as createTransform2D, or as xsdLineCap, ot as sourceRectangleDesc, p as replaceMediaPlaceholders, pi as Relationships, pn as stringifyAdjustmentValues, pr as xsdRectAlignment, pt as scRgbColorDesc, q as convertToInch, qn as extractBlipFillMedia, qr as ParsedArchive, qt as createHierBranch, r as findAndReplaceImagePlaceholders, ri as zipSyncAndConvert, rn as createTableStyleList, rr as xsdBlendMode, rt as patternFillDesc, s as getVideoRefs, si as encodeBase64, sn as stringifyStretch, sr as xsdLineEndSize, st as stretchDesc, t as addSmartArtRelationships, ti as unzipSync, tn as createShapeLocking, tr as createTileInfo, tt as fillDesc, u as replaceChartPlaceholders, ui as createDefault, un as createExtentionList, ur as xsdPattern, ut as parseColorChoice, v as hashPasswordAgile, vn as createBottomBevel, vr as xsdUnderlineStyle, vt as createDiagramExtensionList, w as presentationLayoutVariablesDesc, wn as createReflectionEffect, wr as uniqueNumericIdCreator, wt as HueDirection, x as diagramExtensionListDesc, xn as calculateEffectExtent, xr as createBlipEffects, xt as createDiagramRelationshipIds, y as randomBytes, yn as createScene3D, yr as xsdVerticalMergeRev, yt as createDiagramShape3D, z as convertEmuToPixels, zn as LineEndLength, zr as createColorTransforms, zt as createStyleDefinitionHeaderList } from "./src-zBJYrHrv.mjs";
2
2
  import { _ as DOCX_NS, a as appendOverride, b as buildCorePropertiesXmlString, c as createRunRenderer, d as createSplitInject, f as createTextElementContents, g as toJson, h as patchSpaceAttribute, i as appendContentType, l as createTokenReplacer, m as nextNumericId, n as appendRelationship, o as createReplacer, p as getFirstLevelElements, r as getNextRelationshipIndex, s as createTraverser, t as applyCorePropertiesOverride, u as TokenNotFoundError, v as PPTX_NS, x as parseCorePropsElement, y as buildCorePropertiesXml } from "./patch-DEPPafeB.mjs";
3
3
  import { a as stringifyDataModel, c as getColorXml, d as COLOR_CATEGORIES, f as LAYOUT_CATEGORIES, i as stringifyTransPoint, l as getLayoutXml, n as SmartArtCollection, o as stringifyConnection, p as STYLE_CATEGORIES, r as stringifyPoint, s as DEFAULT_DRAWING_XML, t as createDataModel, u as getStyleXml } from "./smartart-DCY-Vdv7.mjs";
4
4
  import { a as TimeUnit, c as ChartCollection, i as ErrorValueType, n as ErrorBarDirection, o as TrendlineType, r as ErrorBarType, s as chartSpaceDesc, t as DataLabelPosition } from "./chart-DwE8FCFk.mjs";
@@ -89,23 +89,33 @@ var Media = class {
89
89
  */
90
90
  addMedia(data, type, build, fileName) {
91
91
  const verifiedName = this.verified.get(data);
92
- if (verifiedName !== void 0) return this.map.get(verifiedName);
93
- const key = this.contentKey(data);
92
+ if (verifiedName !== void 0) {
93
+ const existing = this.map.get(verifiedName);
94
+ if (existing.type === type) return existing;
95
+ }
96
+ const key = `${type}:${this.contentKey(data)}`;
94
97
  const existingName = this.byContent.get(key);
95
98
  if (existingName !== void 0) {
96
99
  const existing = this.map.get(existingName);
97
- if (this.byteEqual(existing.data, data)) {
100
+ if (existing.type === type && this.byteEqual(existing.data, data)) {
98
101
  this.verified.set(data, existingName);
99
102
  return existing;
100
103
  }
101
104
  }
102
- const resolvedName = fileName ?? `image${++this.counter}.${type}`;
103
- const entry = build(resolvedName);
104
- this.map.set(resolvedName, entry);
105
- this.byContent.set(key, resolvedName);
106
- this.verified.set(data, resolvedName);
105
+ const resolvedName = fileName ?? this.nextName(type);
106
+ const finalName = this.map.has(resolvedName) ? this.nextName(type) : resolvedName;
107
+ const entry = build(finalName);
108
+ this.map.set(finalName, entry);
109
+ this.byContent.set(key, finalName);
110
+ this.verified.set(data, finalName);
107
111
  return entry;
108
112
  }
113
+ /** Next sequential `imageN.${type}` that isn't already in use. */
114
+ nextName(type) {
115
+ let name = `image${++this.counter}.${type}`;
116
+ while (this.map.has(name)) name = `image${++this.counter}.${type}`;
117
+ return name;
118
+ }
109
119
  /** "length:hash" content key for `data` (FNV-1a over the raw bytes), memoized. */
110
120
  contentKey(data) {
111
121
  const cached = hashKeyCache.get(data);
@@ -1806,7 +1816,7 @@ async function nativeZipAsync(files, level = 6) {
1806
1816
  */
1807
1817
  /** Default DEFLATE level for XML entries (SuperFast, matching MS Office). */
1808
1818
  const ZIP_DEFLATE_LEVEL = 1;
1809
- /** Default level for media entries (STORE no compression). */
1819
+ /** Level for already-compressed media STORE (no compression). */
1810
1820
  const ZIP_STORED_LEVEL = 0;
1811
1821
  /**
1812
1822
  * Media formats already compressed internally (DEFLATE for PNG, DCT for JPEG,
@@ -1823,7 +1833,7 @@ const PRECOMPRESSED_MEDIA_EXT = new Set([
1823
1833
  /**
1824
1834
  * Resolve the ZIP level for a media entry by file-name extension, matching MS
1825
1835
  * Office: already-compressed raster formats → STORE (0), everything else →
1826
- * DEFLATE (`mediaLevel`, default SuperFast). A `compression.media` override
1836
+ * DEFLATE (`mediaLevel`, default Normal). A `compression.media` override
1827
1837
  * therefore applies only to compressible formats, never forcing DEFLATE onto
1828
1838
  * pre-compressed assets.
1829
1839
  */
@@ -1838,7 +1848,7 @@ const levelForMediaName = (fileName, mediaLevel) => {
1838
1848
  * Uses fflate Web Workers for non-blocking DEFLATE compression.
1839
1849
  * XML entries use DEFLATE level 1 (SuperFast) by default. Media entries are
1840
1850
  * split by type, matching MS Office: already-compressed formats (PNG/JPEG/GIF)
1841
- * are STOREd, everything else uses the `media` level (default SuperFast).
1851
+ * are STOREd, everything else uses the `media` level (default Normal).
1842
1852
  * Set `{ media: ZIP_STORED_LEVEL }` to STORE all compressible media too.
1843
1853
  */
1844
1854
  const zipAndConvert = async (files, type, mimeType, level = 1) => {
@@ -1903,7 +1913,7 @@ const createPacker = (options) => {
1903
1913
  const { compile, mimeType } = options;
1904
1914
  const pack = async (file, opts) => {
1905
1915
  const type = opts?.type ?? "nodebuffer";
1906
- return zipAndConvert(compile(file, opts?.overrides ?? [], opts?.compression?.media ?? 1), type, mimeType, opts?.compression?.xml ?? 1);
1916
+ return zipAndConvert(compile(file, opts?.overrides ?? [], opts?.compression?.media ?? 6), type, mimeType, opts?.compression?.xml ?? 1);
1907
1917
  };
1908
1918
  const toBytes = (file, opts) => pack(file, {
1909
1919
  ...opts,
@@ -1931,7 +1941,7 @@ const createPacker = (options) => {
1931
1941
  });
1932
1942
  const packSync = (file, opts) => {
1933
1943
  const type = opts?.type ?? "nodebuffer";
1934
- return zipSyncAndConvert(compile(file, opts?.overrides ?? [], opts?.compression?.media ?? 1), type, mimeType, opts?.compression?.xml ?? 1);
1944
+ return zipSyncAndConvert(compile(file, opts?.overrides ?? [], opts?.compression?.media ?? 6), type, mimeType, opts?.compression?.xml ?? 1);
1935
1945
  };
1936
1946
  const toBytesSync = (file, opts) => packSync(file, {
1937
1947
  ...opts,
@@ -1958,7 +1968,7 @@ const createPacker = (options) => {
1958
1968
  type: "arraybuffer"
1959
1969
  });
1960
1970
  const toStream = (file, opts) => {
1961
- const mediaLevel = opts?.compression?.media ?? 1;
1971
+ const mediaLevel = opts?.compression?.media ?? 6;
1962
1972
  let files;
1963
1973
  try {
1964
1974
  files = compile(file, opts?.overrides ?? [], mediaLevel);
@@ -7435,9 +7445,9 @@ const outlineDesc = {
7435
7445
  const parts = [];
7436
7446
  const attrParts = [];
7437
7447
  if (opts.width !== void 0) attrParts.push(`w="${convertToEmu(opts.width)}"`);
7438
- if (opts.cap !== void 0) attrParts.push(`cap="${escapeXml(opts.cap)}"`);
7439
- if (opts.compoundLine !== void 0) attrParts.push(`cmpd="${escapeXml(opts.compoundLine)}"`);
7440
- if (opts.align !== void 0) attrParts.push(`algn="${escapeXml(opts.align)}"`);
7448
+ if (opts.cap !== void 0) attrParts.push(`cap="${escapeXml(xsdLineCap.to(opts.cap))}"`);
7449
+ if (opts.compoundLine !== void 0) attrParts.push(`cmpd="${escapeXml(xsdCompoundLine.to(opts.compoundLine))}"`);
7450
+ if (opts.align !== void 0) attrParts.push(`algn="${escapeXml(xsdPenAlignment.to(opts.align))}"`);
7441
7451
  const attrStr = attrParts.length ? " " + attrParts.join(" ") : "";
7442
7452
  if (opts.type === "noFill") parts.push("<a:noFill/>");
7443
7453
  else if (opts.type === "solidFill" && opts.color) {
@@ -7461,9 +7471,9 @@ const outlineDesc = {
7461
7471
  const result = {};
7462
7472
  if (el.attributes) {
7463
7473
  if (el.attributes["w"] !== void 0) result.width = Number(el.attributes["w"]);
7464
- if (el.attributes["cap"] !== void 0) result.cap = String(el.attributes["cap"]);
7465
- if (el.attributes["cmpd"] !== void 0) result.compoundLine = String(el.attributes["cmpd"]);
7466
- if (el.attributes["algn"] !== void 0) result.align = String(el.attributes["algn"]);
7474
+ if (el.attributes["cap"] !== void 0) result.cap = xsdLineCap.from(String(el.attributes["cap"]));
7475
+ if (el.attributes["cmpd"] !== void 0) result.compoundLine = xsdCompoundLine.from(String(el.attributes["cmpd"]));
7476
+ if (el.attributes["algn"] !== void 0) result.align = xsdPenAlignment.from(String(el.attributes["algn"]));
7467
7477
  }
7468
7478
  const solidFill = findChild(el, "a:solidFill");
7469
7479
  if (solidFill) {
@@ -7534,7 +7544,7 @@ const effectListDesc = {
7534
7544
  const attrStr = attrParts.length ? " " + attrParts.join(" ") : "";
7535
7545
  parts.push(`<a:blur${attrStr}/>`);
7536
7546
  }
7537
- if (opts.fillOverlay) parts.push(`<a:fillOverlay blend="${escapeXml(opts.fillOverlay.blend)}"/>`);
7547
+ if (opts.fillOverlay) parts.push(`<a:fillOverlay blend="${escapeXml(xsdBlendMode.to(opts.fillOverlay.blend))}"/>`);
7538
7548
  if (opts.glow) parts.push(stringifyColorEffect("a:glow", { rad: opts.glow.radius }, opts.glow.color, ctx) ?? "");
7539
7549
  if (opts.innerShadow) parts.push(stringifyColorEffect("a:innerShdw", {
7540
7550
  blurRad: opts.innerShadow.blurRadius,
@@ -7549,7 +7559,7 @@ const effectListDesc = {
7549
7559
  sy: opts.outerShadow.scaleY,
7550
7560
  kx: opts.outerShadow.skewX,
7551
7561
  ky: opts.outerShadow.skewY,
7552
- algn: opts.outerShadow.alignment,
7562
+ algn: opts.outerShadow.alignment !== void 0 ? xsdRectAlignment.to(opts.outerShadow.alignment) : void 0,
7553
7563
  rotWithShape: opts.outerShadow.rotWithShape === false ? 0 : void 0
7554
7564
  }, opts.outerShadow.color, ctx) ?? "");
7555
7565
  if (opts.presetShadow) parts.push(stringifyColorEffect("a:prstShdw", {
@@ -7572,7 +7582,7 @@ const effectListDesc = {
7572
7582
  if (refOpts.scaleY !== void 0) attrParts.push(`sy="${refOpts.scaleY}"`);
7573
7583
  if (refOpts.skewX !== void 0) attrParts.push(`kx="${refOpts.skewX}"`);
7574
7584
  if (refOpts.skewY !== void 0) attrParts.push(`ky="${refOpts.skewY}"`);
7575
- if (refOpts.alignment !== void 0) attrParts.push(`algn="${refOpts.alignment}"`);
7585
+ if (refOpts.alignment !== void 0) attrParts.push(`algn="${escapeXml(xsdRectAlignment.to(refOpts.alignment))}"`);
7576
7586
  if (refOpts.rotWithShape !== void 0) attrParts.push(`rotWithShape="${refOpts.rotWithShape ? 1 : 0}"`);
7577
7587
  const attrStr = attrParts.length ? " " + attrParts.join(" ") : "";
7578
7588
  parts.push(`<a:reflection${attrStr}/>`);
@@ -7619,7 +7629,7 @@ const effectListDesc = {
7619
7629
  if (outerShdw.attributes?.["sy"] !== void 0) outerOpts.scaleY = Number(outerShdw.attributes["sy"]);
7620
7630
  if (outerShdw.attributes?.["kx"] !== void 0) outerOpts.skewX = Number(outerShdw.attributes["kx"]);
7621
7631
  if (outerShdw.attributes?.["ky"] !== void 0) outerOpts.skewY = Number(outerShdw.attributes["ky"]);
7622
- if (outerShdw.attributes?.["algn"] !== void 0) outerOpts.alignment = String(outerShdw.attributes["algn"]);
7632
+ if (outerShdw.attributes?.["algn"] !== void 0) outerOpts.alignment = xsdRectAlignment.from(String(outerShdw.attributes["algn"]));
7623
7633
  if (outerShdw.attributes?.["rotWithShape"] !== void 0) outerOpts.rotWithShape = outerShdw.attributes["rotWithShape"] !== "0";
7624
7634
  const color = readColorFromElement(outerShdw, ctx);
7625
7635
  if (color) outerOpts.color = color;
@@ -7628,7 +7638,7 @@ const effectListDesc = {
7628
7638
  const fillOverlay = findChild(el, "a:fillOverlay");
7629
7639
  if (fillOverlay) {
7630
7640
  const overlayOpts = {};
7631
- if (fillOverlay.attributes?.["blend"] !== void 0) overlayOpts.blend = String(fillOverlay.attributes["blend"]);
7641
+ if (fillOverlay.attributes?.["blend"] !== void 0) overlayOpts.blend = xsdBlendMode.from(String(fillOverlay.attributes["blend"]));
7632
7642
  result.fillOverlay = overlayOpts;
7633
7643
  }
7634
7644
  const prstShdw = findChild(el, "a:prstShdw");
@@ -7656,7 +7666,7 @@ const effectListDesc = {
7656
7666
  if (reflection.attributes?.["sy"] !== void 0) refOpts.scaleY = Number(reflection.attributes["sy"]);
7657
7667
  if (reflection.attributes?.["kx"] !== void 0) refOpts.skewX = Number(reflection.attributes["kx"]);
7658
7668
  if (reflection.attributes?.["ky"] !== void 0) refOpts.skewY = Number(reflection.attributes["ky"]);
7659
- if (reflection.attributes?.["algn"] !== void 0) refOpts.alignment = String(reflection.attributes["algn"]);
7669
+ if (reflection.attributes?.["algn"] !== void 0) refOpts.alignment = xsdRectAlignment.from(String(reflection.attributes["algn"]));
7660
7670
  if (reflection.attributes?.["rotWithShape"] !== void 0) refOpts.rotWithShape = reflection.attributes["rotWithShape"] !== "0";
7661
7671
  result.reflection = refOpts;
7662
7672
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@office-open/core",
3
- "version": "0.10.9",
3
+ "version": "0.10.11",
4
4
  "description": "Shared OOXML infrastructure — XML components, validators, converters, charts, and SmartArt",
5
5
  "keywords": [
6
6
  "core",
@@ -66,7 +66,7 @@
66
66
  "dependencies": {
67
67
  "@noble/hashes": "2.2.0",
68
68
  "fflate": "0.8.3",
69
- "@office-open/xml": "0.10.9"
69
+ "@office-open/xml": "0.10.11"
70
70
  },
71
71
  "scripts": {
72
72
  "dev": "basis build --stub",