@office-open/core 0.10.2 → 0.10.4

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,6 +1,6 @@
1
- import { _ as CustomDescriptor, y as ReadContext } from "./index-L82O3q6V.mjs";
2
- import { A as DataType, C as OutputByType, w as OutputType } from "./index-DEeO4sOq.mjs";
3
- import { s as UniversalMeasure } from "./values-Dqj8cbcy.mjs";
1
+ import { g as CustomDescriptor, v as ReadContext, y as WriteContext } from "./index-CpNwAcem.mjs";
2
+ import { A as OutputType, M as DataType, k as OutputByType } from "./index-CHGFwCCQ.mjs";
3
+ import { s as UniversalMeasure } from "./values-DQfI1FSg.mjs";
4
4
  import { Element } from "@office-open/xml";
5
5
  import { ZipOptions, Zippable, Zippable as Zippable$1, strFromU8 as strFromU8$1, unzipSync as unzipSync$1 } from "fflate";
6
6
  import { Buffer } from "\u0000polyfill-node.buffer";
@@ -1156,7 +1156,7 @@ declare const extractBlipFillMedia: (fill: FillOptions, nameAllocator?: (type: s
1156
1156
  /**
1157
1157
  * Builds a DrawingML fill XML string from a FillOptions config.
1158
1158
  */
1159
- declare const buildFill: (options: FillOptions) => string;
1159
+ declare const buildFill: (options: FillOptions, embedPlaceholder?: string) => string;
1160
1160
  //#endregion
1161
1161
  //#region src/drawingml/fill/no-fill.d.ts
1162
1162
  /**
@@ -1326,6 +1326,125 @@ declare const createPatternFill: (options: PatternFillOptions) => string;
1326
1326
  */
1327
1327
  declare const createGroupFill: () => string;
1328
1328
  //#endregion
1329
+ //#region src/opc/packer.d.ts
1330
+ interface XmlifyedFile {
1331
+ path: string;
1332
+ data: string | Uint8Array;
1333
+ }
1334
+ /** Default DEFLATE level for XML entries (SuperFast, matching MS Office). */
1335
+ declare const ZIP_DEFLATE_LEVEL = 1;
1336
+ /** Default level for media entries (STORE — no compression). */
1337
+ declare const ZIP_STORED_LEVEL = 0;
1338
+ /**
1339
+ * Resolve the ZIP level for a media entry by file-name extension, matching MS
1340
+ * Office: already-compressed raster formats → STORE (0), everything else →
1341
+ * DEFLATE (`mediaLevel`, default SuperFast). A `compression.media` override
1342
+ * therefore applies only to compressible formats, never forcing DEFLATE onto
1343
+ * pre-compressed assets.
1344
+ */
1345
+ declare const levelForMediaName: (fileName: string, mediaLevel: number) => number;
1346
+ /** Compression options for ZIP output (zlib levels 0-9, matching fflate). */
1347
+ interface CompressionOptions {
1348
+ /** DEFLATE level for XML files. Default: 1 (SuperFast, matching MS Office). */
1349
+ xml?: number;
1350
+ /**
1351
+ * DEFLATE level for compressible media (EMF/WMF/BMP/TIFF/…). Already-compressed
1352
+ * formats (PNG/JPEG/GIF) are always STOREd regardless, matching MS Office.
1353
+ * Default: 1 (SuperFast).
1354
+ */
1355
+ media?: number;
1356
+ }
1357
+ /** Options for Packer output methods. */
1358
+ interface PackerOptions<T extends OutputType = "nodebuffer"> {
1359
+ /** Output format. Defaults to `"nodebuffer"` (Node.js Buffer). */
1360
+ type?: T;
1361
+ /** Custom XML/ZIP file overrides. */
1362
+ overrides?: XmlifyedFile[];
1363
+ /** Compression levels for ZIP entries. */
1364
+ compression?: CompressionOptions;
1365
+ }
1366
+ /**
1367
+ * Asynchronously compress files and convert to the requested output format.
1368
+ *
1369
+ * Uses fflate Web Workers for non-blocking DEFLATE compression.
1370
+ * XML entries use DEFLATE level 1 (SuperFast) by default. Media entries are
1371
+ * split by type, matching MS Office: already-compressed formats (PNG/JPEG/GIF)
1372
+ * are STOREd, everything else uses the `media` level (default SuperFast).
1373
+ * Set `{ media: ZIP_STORED_LEVEL }` to STORE all compressible media too.
1374
+ */
1375
+ declare const zipAndConvert: <T extends OutputType>(files: Zippable, type: T, mimeType: string, level?: number) => Promise<OutputByType[T]>;
1376
+ /**
1377
+ * Synchronously compress files and convert to the requested output format.
1378
+ *
1379
+ * Uses synchronous DEFLATE compression for maximum throughput.
1380
+ * Blocks the event loop — prefer {@link zipAndConvert} in server contexts.
1381
+ */
1382
+ declare const zipSyncAndConvert: <T extends OutputType>(files: Zippable, type: T, mimeType: string, level?: number) => OutputByType[T];
1383
+ /**
1384
+ * Create a `ReadableStream<Uint8Array>` from compressed file entries.
1385
+ *
1386
+ * Uses fflate's `AsyncZipDeflate` for non-blocking DEFLATE compression.
1387
+ * `STORED` entries (media) pass through synchronously.
1388
+ * Works in both Node.js and browsers (Web Streams API).
1389
+ */
1390
+ declare const createZipStream: (files: Zippable, defaultLevel?: number) => ReadableStream<Uint8Array>;
1391
+ /**
1392
+ * Compile function provided by each package to convert a file object into a Zippable map.
1393
+ */
1394
+ type CompileFn<TFile> = (file: TFile, overrides?: XmlifyedFile[], mediaLevel?: number) => Zippable;
1395
+ /**
1396
+ * Packer interface returned by {@link createPacker}.
1397
+ *
1398
+ * Async methods use fflate Web Workers for non-blocking compression.
1399
+ * Sync methods use synchronous compression for maximum throughput in
1400
+ * CLI scripts and build tools.
1401
+ */
1402
+ interface Packer<TFile> {
1403
+ /** Compile file to Zippable map (synchronous). */
1404
+ compile: CompileFn<TFile>;
1405
+ /** Generic async output — returns the requested OutputType. */
1406
+ pack<T extends OutputType = "nodebuffer">(file: TFile, options?: PackerOptions<T>): Promise<OutputByType[T]>;
1407
+ /** Generic sync output — returns the requested OutputType. */
1408
+ packSync<T extends OutputType = "nodebuffer">(file: TFile, options?: PackerOptions<T>): OutputByType[T];
1409
+ /** Async → `Promise<Uint8Array>` (like `Response.bytes()`). */
1410
+ toBytes(file: TFile, options?: PackerOptions): Promise<Uint8Array>;
1411
+ /** Sync → `Uint8Array`. */
1412
+ toBytesSync(file: TFile, options?: PackerOptions): Uint8Array;
1413
+ /** Async → `Promise<string>` (raw ZIP content as string). */
1414
+ toString(file: TFile, options?: PackerOptions): Promise<string>;
1415
+ /** Sync → `string`. */
1416
+ toStringSync(file: TFile, options?: PackerOptions): string;
1417
+ /** Async → `Promise<Buffer>` (Node.js). */
1418
+ toBuffer(file: TFile, options?: PackerOptions): Promise<Buffer>;
1419
+ /** Sync → `Buffer` (Node.js). */
1420
+ toBufferSync(file: TFile, options?: PackerOptions): Buffer;
1421
+ /** Async → `Promise<string>` (base64-encoded). */
1422
+ toBase64(file: TFile, options?: PackerOptions): Promise<string>;
1423
+ /** Sync → `string` (base64-encoded). */
1424
+ toBase64Sync(file: TFile, options?: PackerOptions): string;
1425
+ /** Async → `Promise<Blob>` (browser). */
1426
+ toBlob(file: TFile, options?: PackerOptions): Promise<Blob>;
1427
+ /** Sync → `Blob`. */
1428
+ toBlobSync(file: TFile, options?: PackerOptions): Blob;
1429
+ /** Async → `Promise<ArrayBuffer>`. */
1430
+ toArrayBuffer(file: TFile, options?: PackerOptions): Promise<ArrayBuffer>;
1431
+ /** Sync → `ArrayBuffer`. */
1432
+ toArrayBufferSync(file: TFile, options?: PackerOptions): ArrayBuffer;
1433
+ /** Streaming output via `ReadableStream<Uint8Array>` (cross-platform, uses Web Workers). */
1434
+ toStream(file: TFile, options?: PackerOptions): ReadableStream<Uint8Array>;
1435
+ }
1436
+ /**
1437
+ * Create a Packer object with all output format methods.
1438
+ *
1439
+ * Centralises the ZIP → convert pipeline and the streaming implementation
1440
+ * so that each OOXML package only needs to provide a `compile` function and
1441
+ * a MIME type.
1442
+ */
1443
+ declare const createPacker: <TFile>(options: {
1444
+ compile: CompileFn<TFile>;
1445
+ mimeType: string;
1446
+ }) => Packer<TFile>;
1447
+ //#endregion
1329
1448
  //#region src/opc/relationships.d.ts
1330
1449
  type RelationshipType = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" | "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramLayout" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramQuickStyle" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramColors" | "http://schemas.microsoft.com/office/2007/relationships/diagramLayout" | "http://schemas.microsoft.com/office/2007/relationships/diagramStyle" | "http://schemas.microsoft.com/office/2007/relationships/diagramColors" | "http://schemas.microsoft.com/office/2007/relationships/diagramDrawing" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/bibliography" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/glossaryDocument" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/font" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/subDocument" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/oleObject" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/presProps" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/viewProps" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableStyles" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesMaster" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/handoutMaster" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideSyncProperties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/commentAuthors" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/video" | "http://schemas.microsoft.com/office/2007/relationships/media" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotTable" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheRecords" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/table" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/revisionHeaders" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/revisionLog" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/users";
1331
1450
  declare const TargetModeType: {
@@ -1344,6 +1463,64 @@ declare class Relationships {
1344
1463
  /** Directly builds XML string — zero intermediate tree allocation. */
1345
1464
  serialize(): string;
1346
1465
  }
1466
+ /**
1467
+ * Serialize a Relationships part only when it carries at least one
1468
+ * relationship. Optional parts (fontTable, headers, footers, charts, drawings,
1469
+ * worksheets, …) emit no .rels part when empty — Office strips empty rels
1470
+ * shells when re-saving, so skipping them keeps generated packages free of
1471
+ * redundant empty parts and matches Office's normalized output.
1472
+ *
1473
+ * Always-on parts (the package `_rels/.rels` and the main
1474
+ * document/presentation/workbook parts) carry relationships by construction
1475
+ * and must NOT use this gate.
1476
+ */
1477
+ declare function optionalRelsPart(rel: Relationships, xmlDeclaration: string, path: string): XmlifyedFile | undefined;
1478
+ //#endregion
1479
+ //#region src/opc/media.d.ts
1480
+ /**
1481
+ * Content-deduplicated media collection for OOXML packages.
1482
+ *
1483
+ * Stores image entries keyed by file name. `addMedia` deduplicates by raw byte
1484
+ * content — byte-identical images referenced N times share one file (matching
1485
+ * Office's normalized output), while per-image metadata (transformation,
1486
+ * extent, fallback) stays with each reference in its own drawing XML and is
1487
+ * passed via the `build` callback so it never participates in the dedup key.
1488
+ *
1489
+ * @module
1490
+ */
1491
+ /**
1492
+ * Minimum fields every media entry carries. Package-specific entry types
1493
+ * extend this with their own transformation/extent/fallback fields.
1494
+ */
1495
+ interface BaseMediaEntry {
1496
+ fileName: string;
1497
+ data: Uint8Array;
1498
+ type: string;
1499
+ }
1500
+ /**
1501
+ * Shared media collection for docx/pptx/xlsx. Generic over the package's entry
1502
+ * type so each package keeps its own metadata while sharing the registration +
1503
+ * dedup logic.
1504
+ */
1505
+ declare class Media<T extends BaseMediaEntry> {
1506
+ private readonly map;
1507
+ private counter;
1508
+ /**
1509
+ * Register media, reusing the existing entry when the bytes already exist.
1510
+ * Returns the canonical entry (shared across all identical references) —
1511
+ * callers read `entry.fileName` for placeholders/relationship targets or use
1512
+ * the whole entry (e.g. drawing XML). The `build` callback constructs the
1513
+ * package-specific entry from the allocated file name.
1514
+ *
1515
+ * Pass `fileName` to pin the name (round-trip scenarios preserving a source
1516
+ * file name); omit it to allocate the next sequential `imageN.ext`.
1517
+ */
1518
+ addMedia(data: Uint8Array, type: string, build: (fileName: string) => T, fileName?: string): T;
1519
+ /** Find the key of an existing entry with byte-identical content. */
1520
+ private findByContent;
1521
+ /** All registered media entries. */
1522
+ get array(): T[];
1523
+ }
1347
1524
  //#endregion
1348
1525
  //#region src/opc/content-types.d.ts
1349
1526
  /**
@@ -1453,125 +1630,6 @@ interface CustomPropertiesInput {
1453
1630
  }
1454
1631
  declare const customPropertiesDesc: CustomDescriptor<CustomPropertiesInput>;
1455
1632
  //#endregion
1456
- //#region src/opc/packer.d.ts
1457
- interface XmlifyedFile {
1458
- path: string;
1459
- data: string | Uint8Array;
1460
- }
1461
- /** Default DEFLATE level for XML entries (SuperFast, matching MS Office). */
1462
- declare const ZIP_DEFLATE_LEVEL = 1;
1463
- /** Default level for media entries (STORE — no compression). */
1464
- declare const ZIP_STORED_LEVEL = 0;
1465
- /**
1466
- * Resolve the ZIP level for a media entry by file-name extension, matching MS
1467
- * Office: already-compressed raster formats → STORE (0), everything else →
1468
- * DEFLATE (`mediaLevel`, default SuperFast). A `compression.media` override
1469
- * therefore applies only to compressible formats, never forcing DEFLATE onto
1470
- * pre-compressed assets.
1471
- */
1472
- declare const levelForMediaName: (fileName: string, mediaLevel: number) => number;
1473
- /** Compression options for ZIP output (zlib levels 0-9, matching fflate). */
1474
- interface CompressionOptions {
1475
- /** DEFLATE level for XML files. Default: 1 (SuperFast, matching MS Office). */
1476
- xml?: number;
1477
- /**
1478
- * DEFLATE level for compressible media (EMF/WMF/BMP/TIFF/…). Already-compressed
1479
- * formats (PNG/JPEG/GIF) are always STOREd regardless, matching MS Office.
1480
- * Default: 1 (SuperFast).
1481
- */
1482
- media?: number;
1483
- }
1484
- /** Options for Packer output methods. */
1485
- interface PackerOptions<T extends OutputType = "nodebuffer"> {
1486
- /** Output format. Defaults to `"nodebuffer"` (Node.js Buffer). */
1487
- type?: T;
1488
- /** Custom XML/ZIP file overrides. */
1489
- overrides?: XmlifyedFile[];
1490
- /** Compression levels for ZIP entries. */
1491
- compression?: CompressionOptions;
1492
- }
1493
- /**
1494
- * Asynchronously compress files and convert to the requested output format.
1495
- *
1496
- * Uses fflate Web Workers for non-blocking DEFLATE compression.
1497
- * XML entries use DEFLATE level 1 (SuperFast) by default. Media entries are
1498
- * split by type, matching MS Office: already-compressed formats (PNG/JPEG/GIF)
1499
- * are STOREd, everything else uses the `media` level (default SuperFast).
1500
- * Set `{ media: ZIP_STORED_LEVEL }` to STORE all compressible media too.
1501
- */
1502
- declare const zipAndConvert: <T extends OutputType>(files: Zippable, type: T, mimeType: string, level?: number) => Promise<OutputByType[T]>;
1503
- /**
1504
- * Synchronously compress files and convert to the requested output format.
1505
- *
1506
- * Uses synchronous DEFLATE compression for maximum throughput.
1507
- * Blocks the event loop — prefer {@link zipAndConvert} in server contexts.
1508
- */
1509
- declare const zipSyncAndConvert: <T extends OutputType>(files: Zippable, type: T, mimeType: string, level?: number) => OutputByType[T];
1510
- /**
1511
- * Create a `ReadableStream<Uint8Array>` from compressed file entries.
1512
- *
1513
- * Uses fflate's `AsyncZipDeflate` for non-blocking DEFLATE compression.
1514
- * `STORED` entries (media) pass through synchronously.
1515
- * Works in both Node.js and browsers (Web Streams API).
1516
- */
1517
- declare const createZipStream: (files: Zippable, defaultLevel?: number) => ReadableStream<Uint8Array>;
1518
- /**
1519
- * Compile function provided by each package to convert a file object into a Zippable map.
1520
- */
1521
- type CompileFn<TFile> = (file: TFile, overrides?: XmlifyedFile[], mediaLevel?: number) => Zippable;
1522
- /**
1523
- * Packer interface returned by {@link createPacker}.
1524
- *
1525
- * Async methods use fflate Web Workers for non-blocking compression.
1526
- * Sync methods use synchronous compression for maximum throughput in
1527
- * CLI scripts and build tools.
1528
- */
1529
- interface Packer<TFile> {
1530
- /** Compile file to Zippable map (synchronous). */
1531
- compile: CompileFn<TFile>;
1532
- /** Generic async output — returns the requested OutputType. */
1533
- pack<T extends OutputType = "nodebuffer">(file: TFile, options?: PackerOptions<T>): Promise<OutputByType[T]>;
1534
- /** Generic sync output — returns the requested OutputType. */
1535
- packSync<T extends OutputType = "nodebuffer">(file: TFile, options?: PackerOptions<T>): OutputByType[T];
1536
- /** Async → `Promise<Uint8Array>` (like `Response.bytes()`). */
1537
- toBytes(file: TFile, options?: PackerOptions): Promise<Uint8Array>;
1538
- /** Sync → `Uint8Array`. */
1539
- toBytesSync(file: TFile, options?: PackerOptions): Uint8Array;
1540
- /** Async → `Promise<string>` (raw ZIP content as string). */
1541
- toString(file: TFile, options?: PackerOptions): Promise<string>;
1542
- /** Sync → `string`. */
1543
- toStringSync(file: TFile, options?: PackerOptions): string;
1544
- /** Async → `Promise<Buffer>` (Node.js). */
1545
- toBuffer(file: TFile, options?: PackerOptions): Promise<Buffer>;
1546
- /** Sync → `Buffer` (Node.js). */
1547
- toBufferSync(file: TFile, options?: PackerOptions): Buffer;
1548
- /** Async → `Promise<string>` (base64-encoded). */
1549
- toBase64(file: TFile, options?: PackerOptions): Promise<string>;
1550
- /** Sync → `string` (base64-encoded). */
1551
- toBase64Sync(file: TFile, options?: PackerOptions): string;
1552
- /** Async → `Promise<Blob>` (browser). */
1553
- toBlob(file: TFile, options?: PackerOptions): Promise<Blob>;
1554
- /** Sync → `Blob`. */
1555
- toBlobSync(file: TFile, options?: PackerOptions): Blob;
1556
- /** Async → `Promise<ArrayBuffer>`. */
1557
- toArrayBuffer(file: TFile, options?: PackerOptions): Promise<ArrayBuffer>;
1558
- /** Sync → `ArrayBuffer`. */
1559
- toArrayBufferSync(file: TFile, options?: PackerOptions): ArrayBuffer;
1560
- /** Streaming output via `ReadableStream<Uint8Array>` (cross-platform, uses Web Workers). */
1561
- toStream(file: TFile, options?: PackerOptions): ReadableStream<Uint8Array>;
1562
- }
1563
- /**
1564
- * Create a Packer object with all output format methods.
1565
- *
1566
- * Centralises the ZIP → convert pipeline and the streaming implementation
1567
- * so that each OOXML package only needs to provide a `compile` function and
1568
- * a MIME type.
1569
- */
1570
- declare const createPacker: <TFile>(options: {
1571
- compile: CompileFn<TFile>;
1572
- mimeType: string;
1573
- }) => Packer<TFile>;
1574
- //#endregion
1575
1633
  //#region src/util/base64.d.ts
1576
1634
  /**
1577
1635
  * Shared base64 encode/decode helpers.
@@ -1867,9 +1925,10 @@ declare const DOCX_PARTS: {
1867
1925
  };
1868
1926
  }, {
1869
1927
  readonly path: "word/theme/theme1.xml";
1928
+ readonly contentType: "application/vnd.openxmlformats-officedocument.theme+xml";
1870
1929
  readonly presence: {
1871
1930
  readonly kind: "conditional";
1872
- readonly flag: "rawParts theme";
1931
+ readonly flag: "freshCompile";
1873
1932
  };
1874
1933
  }];
1875
1934
  };
@@ -2298,28 +2357,10 @@ declare const convertPointsToEmu: (points: number) => number;
2298
2357
  * Converts EMU to points.
2299
2358
  */
2300
2359
  declare const convertEmuToPoints: (emus: number) => number;
2301
- /** A rectangular position in pixels. */
2302
- interface PixelPosition {
2303
- x: number;
2304
- y: number;
2305
- width: number;
2306
- height: number;
2307
- }
2308
- /** An EMU-based rectangular position. */
2309
- interface EmuPosition {
2310
- x: number;
2311
- y: number;
2312
- cx: number;
2313
- cy: number;
2314
- }
2315
- /**
2316
- * Converts a pixel-based position to EMU coordinates.
2317
- */
2318
- declare const convertPositionToEmu: (pos: PixelPosition) => EmuPosition;
2319
2360
  /** Parsed result of a UniversalMeasure string. */
2320
2361
  interface ParsedMeasure {
2321
2362
  value: number;
2322
- unit: "mm" | "cm" | "in" | "pt" | "pc" | "pi";
2363
+ unit: "mm" | "cm" | "in" | "pt" | "pc" | "pi" | "px";
2323
2364
  }
2324
2365
  /**
2325
2366
  * Parse a UniversalMeasure string into its numeric value and unit.
@@ -2390,23 +2431,52 @@ declare const convertUniversalMeasureToEmu: (measure: string) => number;
2390
2431
  /**
2391
2432
  * Converts a measurement value (number or UniversalMeasure) to EMU.
2392
2433
  *
2393
- * If the value is already a number, it is returned as-is (assumed to be in EMU).
2394
- * If the value is a UniversalMeasure string, it is converted to EMU.
2434
+ * Numbers are returned as-is (assumed EMU). Strings are parsed as
2435
+ * UniversalMeasure via {@link convertUniversalMeasureToEmu} including the
2436
+ * project-only `px` unit (96 DPI). The result is always an EMU number written to
2437
+ * XML, so px never appears verbatim in the document.
2395
2438
  *
2396
- * Useful for accepting both `number` and `UniversalMeasure` inputs in DrawingML
2397
- * where the XSD type is a union (e.g., ST_Coordinate).
2439
+ * Useful for DrawingML fields where the XSD type is a union (e.g., ST_Coordinate).
2398
2440
  *
2399
- * @param val - A numeric EMU value or a universal measure string
2441
+ * @param val - A numeric EMU value, or a UniversalMeasure string (incl. `${n}px`)
2400
2442
  * @returns The value in EMU
2401
2443
  *
2402
2444
  * @example
2403
2445
  * ```typescript
2404
- * convertToEmu(914400); // 914400 (already EMU)
2405
- * convertToEmu("1in"); // 914400
2406
- * convertToEmu("2.54cm"); // 914400
2446
+ * convertToEmu(914400); // 914400 (already EMU)
2447
+ * convertToEmu("1in"); // 914400
2448
+ * convertToEmu("2.54cm"); // 914400
2449
+ * convertToEmu("200px"); // 1905000 (200 * 9525)
2407
2450
  * ```
2408
2451
  */
2409
2452
  declare const convertToEmu: (val: number | string) => number;
2453
+ /**
2454
+ * Converts a UniversalMeasure string to points (1pt = 1/72 inch).
2455
+ *
2456
+ * Supports units: mm, cm, in, pt, pc (picas, 1pc = 12pt), pi (alias for pc),
2457
+ * px (96 DPI).
2458
+ */
2459
+ declare const convertUniversalMeasureToPt: (measure: string) => number;
2460
+ /**
2461
+ * Converts a measurement value (number or UniversalMeasure) to points.
2462
+ *
2463
+ * Numbers are returned as-is (assumed to be in points). Strings are parsed as
2464
+ * UniversalMeasure. Useful for SpreadsheetML fields where a number is points.
2465
+ */
2466
+ declare const convertToPt: (val: number | string) => number;
2467
+ /**
2468
+ * Converts a UniversalMeasure string to inches.
2469
+ *
2470
+ * Supports units: mm, cm, in, pt, pc, pi, px (96 DPI).
2471
+ */
2472
+ declare const convertUniversalMeasureToInch: (measure: string) => number;
2473
+ /**
2474
+ * Converts a measurement value (number or UniversalMeasure) to inches.
2475
+ *
2476
+ * Numbers are returned as-is (assumed to be in inches). Useful for SpreadsheetML
2477
+ * page-margin fields where a number is inches.
2478
+ */
2479
+ declare const convertToInch: (val: number | string) => number;
2410
2480
  //#endregion
2411
2481
  //#region src/util/crypto.d.ts
2412
2482
  /**
@@ -4361,68 +4431,6 @@ declare const createTransform2D: (options: Transform2DOptions, elementName?: str
4361
4431
  */
4362
4432
  declare const createGroupTransform2D: (options: GroupTransform2DOptions, elementName?: string) => string;
4363
4433
  //#endregion
4364
- //#region src/drawingml/media/transformation.d.ts
4365
- /**
4366
- * Internal media data transformation with both pixel and EMU values.
4367
- */
4368
- interface MediaDataTransformation {
4369
- offset?: {
4370
- pixels: {
4371
- x: number;
4372
- y: number;
4373
- };
4374
- emus?: {
4375
- x: number;
4376
- y: number;
4377
- };
4378
- };
4379
- pixels: {
4380
- /** Width in pixels */x: number; /** Height in pixels */
4381
- y: number;
4382
- };
4383
- /** Display dimensions in EMUs (English Metric Units) */
4384
- emus: {
4385
- /** Width in EMUs (1 inch = 914400 EMUs) */x: number; /** Height in EMUs (1 inch = 914400 EMUs) */
4386
- y: number;
4387
- };
4388
- /** Optional flip transformations */
4389
- flip?: {
4390
- /** Whether to flip the image vertically */vertical?: boolean; /** Whether to flip the image horizontally */
4391
- horizontal?: boolean;
4392
- };
4393
- /** Optional rotation angle in degrees */
4394
- rotation?: number;
4395
- }
4396
- /**
4397
- * Transformation options for media display.
4398
- *
4399
- * Specifies how an image should be transformed when displayed in the document.
4400
- */
4401
- interface MediaTransformation {
4402
- offset?: {
4403
- top?: number;
4404
- left?: number;
4405
- };
4406
- width: number;
4407
- /** Display height in pixels */
4408
- height: number;
4409
- /** Optional flip transformations */
4410
- flip?: {
4411
- /** Whether to flip the image vertically */vertical?: boolean; /** Whether to flip the image horizontally */
4412
- horizontal?: boolean;
4413
- };
4414
- /** Optional rotation angle in degrees */
4415
- rotation?: number;
4416
- }
4417
- /**
4418
- * Converts user-facing transformation options (pixels) to internal
4419
- * transformation data (pixels + EMUs).
4420
- *
4421
- * @param options - User-facing transformation in pixels
4422
- * @returns Internal transformation data with both pixel and EMU values
4423
- */
4424
- declare const createTransformation: (options: MediaTransformation) => MediaDataTransformation;
4425
- //#endregion
4426
4434
  //#region src/drawingml/table-style.d.ts
4427
4435
  type TableStyleRegion = "tblBg" | "wholeTbl" | "band1H" | "band2H" | "band1V" | "band2V" | "lastCol" | "firstCol" | "lastRow" | "seCell" | "swCell" | "firstRow" | "neCell" | "nwCell";
4428
4436
  type OnOffStyleType = "on" | "off" | "def";
@@ -4943,7 +4951,10 @@ declare const hslColorDesc: CustomDescriptor<HslColorOptions>;
4943
4951
  declare const systemColorDesc: CustomDescriptor<SystemColorOptions>;
4944
4952
  declare const presetColorDesc: CustomDescriptor<PresetColorOptions>;
4945
4953
  declare const scRgbColorDesc: CustomDescriptor<ScRgbColorOptions>;
4946
- declare function getColorDescriptor(color: SolidFillOptions): CustomDescriptor<any>;
4954
+ /** Stringify an EG_ColorChoice (direct color element, no `a:solidFill` wrapper).
4955
+ * Used for gradient stops, fg/bg clr, and effect colors. Replaces the former
4956
+ * `getColorDescriptor` which returned a polymorphic `CustomDescriptor<any>`. */
4957
+ declare function stringifyColorChoice(color: SolidFillOptions, ctx: WriteContext): string;
4947
4958
  /**
4948
4959
  * Parse an EG_ColorChoice from an element's direct children. Handles all six
4949
4960
  * color element kinds (srgbClr/schemeClr/hslClr/sysClr/prstClr/scrgbClr) —
@@ -5001,4 +5012,4 @@ declare const diagramStyleDesc: CustomDescriptor<DiagramStyleOptions>;
5001
5012
  declare const presentationLayoutVariablesDesc: CustomDescriptor<PresentationLayoutVariablesOptions>;
5002
5013
  declare const diagramExtensionListDesc: CustomDescriptor<DiagramExtensionListOptions>;
5003
5014
  //#endregion
5004
- export { createLineColorList as $, TileOptions as $a, parseArchive as $i, calculateEffectExtent as $n, xsdLineCap as $r, TableStyleListOptions as $t, rgbColorDesc as A, TargetModeType as Aa, convertPointsToEmu as Ai, stringifyAdjustmentValues as An, createCustomDash as Ar, PresentationLayoutVariablesOptions as At, createDiagramTextProperties as B, buildFill as Ba, OpcCode as Bi, LightRigOptions as Bn, hasPlaceholders as Br, GraphicFrameLockingOptions as Bt, fillDesc as C, appPropertiesDesc as Ca, convertEmuToInches as Ci, PathCommand as Cn, ColorTransformOptions as Co, createOutline as Cr, AnimationLevelOptions as Ct, hslColorDesc as D, createOverride as Da, convertInchesToTwip as Di, PresetGeometryOptions as Dn, LineEndWidth as Dr, MaxChildrenOptions as Dt, getColorDescriptor as E, createDefault as Ea, convertInchesToEmu as Ei, createCustomGeometry as En, LineEndType as Er, HierBranchStyle as Et, DiagramExtensionListOptions as F, createNoFill as Fa, convertUniversalMeasureToTwip as Fi, BevelPresetType as Fn, findAndReplaceImagePlaceholders as Fr, createHierBranch as Ft, DiagramStyleLabelOptions as G, LinearShadeOptions as Ga, DOCX_PARTS as Gi, createScene3D as Gn, replaceMediaPlaceholders as Gr, createGroupLocking as Gt, createDiagramRelationshipIds as H, GradientFillOptions as Ha, OpcSeverity as Hi, Scene3DOptions as Hn, replaceChartPlaceholders as Hr, PictureLockingOptions as Ht, DiagramExtensionOptions as I, BlipFillConfigOptions as Ia, parseUniversalMeasure as Ii, createBevel as In, formatId as Ir, createMaxChildren as It, HueDirection as J, RelativeRect as Ja, PackagePartRegistry as Ji, EffectDagOptions as Jn, replaceVideoPlaceholders as Jr, OnOffStyleType as Jt, DiagramStyleOptions as K, PathShadeOptions as Ka, PART_REGISTRIES as Ki, createSoftEdgeEffect as Kn, replaceNumberingPlaceholders as Kr, createPictureLocking as Kt, DiagramTextPropertiesOptions as L, BlipFillMediaData as La, compileMapping as Li, createBottomBevel as Ln, getMediaRefs as Lr, createOrgChart as Lt, schemeColorDesc as M, PatternFillOptions as Ma, convertToEmu as Mi, Shape3DOptions as Mn, SmartArtRelOptions as Mr, createAdjustList as Mt, solidFillDesc as N, PresetPattern as Na, convertToTwip as Ni, createShape3D as Nn, addSmartArtRelationships as Nr, createAnimateOneByOne as Nt, parseColorChoice as O, RelationshipType as Oa, convertMillimetersToTwip as Oi, stringifyPresetGeometry as On, createLineEnd as Or, OrgChartOptions as Ot, systemColorDesc as P, createPatternFill as Pa, convertUniversalMeasureToEmu as Pi, BevelOptions as Pn, collectPlaceholderKeys as Pr, createAnimationLevel as Pt, createFillColorList as Q, TileAlignment as Qa, ParsedArchive as Qi, EffectListOptions as Qn, xsdEffectContainer as Qr, TablePartStyleOptions as Qt, createDiagramExtensionList as R, FillOptions as Ra, ContentTypeOverrideEntry as Ri, BackdropOptions as Rn, getReferencedMedia as Rr, createPreferredChildren as Rt, outlineDesc as S, AppPropertiesOptions as Sa, PixelPosition as Si, GeomRect as Sn, createHslColor as So, PresetDash as Sr, AnimateOneByOneValue as St, patternFillDesc as T, OverrideAttributes as Ta, convertEmuToPoints as Ti, PathOptions as Tn, LineEndOptions as Tr, HierBranchOptions as Tt, ColorListOptions as U, GradientShadeOptions as Ua, summarizeOpcIssues as Ui, SphereCoords as Un, replaceHyperlinkPlaceholders as Ur, ShapeLockingOptions as Ut, DiagramRelationshipIdsOptions as V, extractBlipFillMedia as Va, OpcIssue as Vi, Point3D as Vn, replaceAllPlaceholders as Vr, GroupLockingOptions as Vt, ColorMethod as W, GradientStop as Wa, validateOpcConsistency as Wi, Vector3D as Wn, replaceImagePlaceholders as Wr, createGraphicFrameLocking as Wt, createDiagramStyle as X, createGradientFill as Xa, PartPresence as Xi, BlurEffectOptions as Xn, xsdBlendMode as Xr, TableCellBorderOptions as Xt, StyleMatrixIndex as Y, TileFlipMode as Ya, PartDef as Yi, createEffectDag as Yn, invertMap as Yr, StyleMatrixReferenceOptions as Yt, createEffectColorList as Z, createGradientStop as Za, XLSX_PARTS as Zi, EffectExtent as Zn, xsdCompoundLine as Zr, TableCellStyleOptions as Zt, graphicFrameLockingDesc as _, zipSyncAndConvert as _a, uniqueUuid as _i, createBlipFill as _n, createRgbColor as _o, LineCap as _r, createStyleDefinitionHeader as _t, blipDesc as a, PackerOptions as aa, xsdPresetShadow as ai, createTableStyleList as an, SolidFillOptions as ao, createPresetShadowEffect as ar, ColorsDefinitionHeaderOptions as at, shapeLockingDesc as b, customPropertiesDesc as ba, randomBytes as bi, ConnectionSite as bn, createPresetColor as bo, OutlineOptions as br, AdjustOptions as bt, stretchDesc as c, ZIP_STORED_LEVEL as ca, xsdTextAlign as ci, MediaTransformation as cn, SystemColor as co, createOuterShadowEffect as cr, DiagramNameOptions as ct, scene3DDesc as d, createPacker as da, xsdUnderlineStyle as di, Transform2DOptions as dn, SchemeColor as do, GlowEffectOptions as dr, StyleDefinitionHeaderListOptions as dt, decodeBase64 as ea, xsdLineEndSize as ei, TableStyleOptions as en, createTileInfo as eo, createEffectList as er, createStyleLabel as et, shape3DDesc as f, createZipStream as fa, xsdVerticalMergeRev as fi, createGroupTransform2D as fn, SchemeColorOptions as fo, createGlowEffect as fr, StyleDefinitionHeaderOptions as ft, presetGeometryDesc as g, zipAndConvert as ga, uniqueNumericIdCreator as gi, BlipFillOptions as gn, RgbColorOptions as go, CompoundLine as gr, createLayoutDefinitionHeaderList as gt, customGeometryDesc as h, unzipSync$1 as ha, uniqueId as hi, createExtentionList as hn, createScRgbColor as ho, createFillOverlayEffect as hr, createLayoutDefinitionHeader as ht, presentationLayoutVariablesDesc as i, Packer as ia, xsdPenAlignment as ii, createTableStyle as in, createBlipEffects as io, PresetShadowVal as ir, ColorsDefinitionHeaderListOptions as it, scRgbColorDesc as j, createGroupFill as ja, convertPositionToEmu as ji, PresetMaterialType as jn, IdFormat as jr, createAdjust as jt, presetColorDesc as k, Relationships as ka, convertPixelsToEmu as ki, GeometryGuide as kn, DashStop as kr, PreferredChildrenOptions as kt, tileDesc as l, ZipOptions as la, xsdTextAnchor as li, createTransformation as ln, SystemColorOptions as lo, InnerShadowEffectOptions as lr, LayoutDefinitionHeaderListOptions as lt, transform2DDesc as m, strFromU8$1 as ma, hashedId as mi, stringifyStretch as mn, ScRgbColorOptions as mo, FillOverlayEffectOptions as mr, createColorsDefinitionHeaderList as mt, diagramRelationshipIdsDesc as n, CompileFn as na, xsdPathFillMode as ni, TableTextStyleOptions as nn, createSourceRectangle as no, createReflectionEffect as nr, createTextFillColorList as nt, blipFillDesc as o, XmlifyedFile as oa, xsdRectAlignment as oi, parseTableStyleList as on, createColorElement as oo, OuterShadowEffectOptions as or, DiagramCategoryOptions as ot, groupTransform2DDesc as p, levelForMediaName as pa, UniqueNumericIdCreator as pi, createTransform2D as pn, createSchemeColor as po, BlendMode as pr, createColorsDefinitionHeader as pt, FontCollectionIndex as q, PathShadeType as qa, PPTX_PARTS as qi, EffectContainerType as qn, replaceSmartArtPlaceholders as qr, createShapeLocking as qt, diagramStyleDesc as r, CompressionOptions as ra, xsdPattern as ri, ThemeableLineStyleOptions as rn, BlipEffectsOptions as ro, PresetShadowEffectOptions as rr, createTextLineColorList as rt, sourceRectangleDesc as s, ZIP_DEFLATE_LEVEL as sa, xsdStrikeStyle as si, MediaDataTransformation as sn, createSolidFill as so, RectAlignment as sr, DiagramDescriptionOptions as st, diagramExtensionListDesc as t, encodeBase64 as ta, xsdMaterialType as ti, TableStyleRegion as tn, SourceRectangleOptions as to, ReflectionEffectOptions as tr, createTextEffectColorList as tt, bevelDesc as u, Zippable$1 as ua, xsdTextCaps as ui, GroupTransform2DOptions as un, createSystemColor as uo, createInnerShadowEffect as ur, LayoutDefinitionHeaderOptions as ut, groupLockingDesc as v, CustomPropertiesInput as va, derivePasswordHash as vi, BlipOptions as vn, PresetColor as vo, LineJoin as vr, createStyleDefinitionHeaderList as vt, gradientFillDesc as w, DefaultAttributes as wa, convertEmuToPixels as wi, PathFillMode as wn, createColorTransforms as wo, LineEndLength as wr, AnimationLevelValue as wt, effectListDesc as x, AppPropertiesInput as xa, EmuPosition as xi, CustomGeometryOptions as xn, HslColorOptions as xo, PenAlignment as xr, AnimateOneByOneOptions as xt, pictureLockingDesc as y, CustomPropertyOptions as ya, hashPasswordAgile as yi, createBlip as yn, PresetColorOptions as yo, OutlineFillProperties as yr, AdjustListOptions as yt, createDiagramShape3D as z, GradientStopOptions as za, buildContentTypeOverrides as zi, CameraOptions as zn, getVideoRefs as zr, createPresentationLayoutVariables as zt };
5015
+ export { createLineColorList as $, TileAlignment as $a, encodeBase64 as $i, createReflectionEffect as $n, xsdPathFillMode as $r, TableStyleListOptions as $t, scRgbColorDesc as A, zipAndConvert as Aa, convertUniversalMeasureToEmu as Ai, createShape3D as An, addSmartArtRelationships as Ar, PresentationLayoutVariablesOptions as At, createDiagramTextProperties as B, GradientStopOptions as Ba, OpcSeverity as Bi, SphereCoords as Bn, replaceHyperlinkPlaceholders as Br, GraphicFrameLockingOptions as Bt, fillDesc as C, ZipOptions as Ca, convertMillimetersToTwip as Ci, createCustomGeometry as Cn, createHslColor as Co, LineEndType as Cr, AnimationLevelOptions as Ct, parseColorChoice as D, levelForMediaName as Da, convertToInch as Di, stringifyAdjustmentValues as Dn, createCustomDash as Dr, MaxChildrenOptions as Dt, hslColorDesc as E, createZipStream as Ea, convertToEmu as Ei, GeometryGuide as En, DashStop as Er, HierBranchStyle as Et, DiagramExtensionListOptions as F, createPatternFill as Fa, compileMapping as Fi, BackdropOptions as Fn, getReferencedMedia as Fr, createHierBranch as Ft, DiagramStyleLabelOptions as G, GradientStop as Ga, PPTX_PARTS as Gi, EffectDagOptions as Gn, replaceVideoPlaceholders as Gr, createGroupLocking as Gt, createDiagramRelationshipIds as H, extractBlipFillMedia as Ha, validateOpcConsistency as Hi, createScene3D as Hn, replaceMediaPlaceholders as Hr, PictureLockingOptions as Ht, DiagramExtensionOptions as I, createNoFill as Ia, ContentTypeOverrideEntry as Ii, CameraOptions as In, getVideoRefs as Ir, createMaxChildren as It, HueDirection as J, PathShadeType as Ja, PartPresence as Ji, EffectExtent as Jn, xsdCompoundLine as Jr, OnOffStyleType as Jt, DiagramStyleOptions as K, LinearShadeOptions as Ka, PackagePartRegistry as Ki, createEffectDag as Kn, invertMap as Kr, createPictureLocking as Kt, DiagramTextPropertiesOptions as L, BlipFillConfigOptions as La, buildContentTypeOverrides as Li, LightRigOptions as Ln, hasPlaceholders as Lr, createOrgChart as Lt, solidFillDesc as M, createGroupFill as Ma, convertUniversalMeasureToPt as Mi, BevelPresetType as Mn, findAndReplaceImagePlaceholders as Mr, createAdjustList as Mt, stringifyColorChoice as N, PatternFillOptions as Na, convertUniversalMeasureToTwip as Ni, createBevel as Nn, formatId as Nr, createAnimateOneByOne as Nt, presetColorDesc as O, strFromU8$1 as Oa, convertToPt as Oi, PresetMaterialType as On, IdFormat as Or, OrgChartOptions as Ot, systemColorDesc as P, PresetPattern as Pa, parseUniversalMeasure as Pi, createBottomBevel as Pn, getMediaRefs as Pr, createAnimationLevel as Pt, createFillColorList as Q, createGradientStop as Qa, decodeBase64 as Qi, ReflectionEffectOptions as Qn, xsdMaterialType as Qr, TablePartStyleOptions as Qt, createDiagramExtensionList as R, BlipFillMediaData as Ra, OpcCode as Ri, Point3D as Rn, replaceAllPlaceholders as Rr, createPreferredChildren as Rt, outlineDesc as S, ZIP_STORED_LEVEL as Sa, convertInchesToTwip as Si, PathOptions as Sn, HslColorOptions as So, LineEndOptions as Sr, AnimateOneByOneValue as St, patternFillDesc as T, createPacker as Ta, convertPointsToEmu as Ti, stringifyPresetGeometry as Tn, createColorTransforms as To, createLineEnd as Tr, HierBranchOptions as Tt, ColorListOptions as U, GradientFillOptions as Ua, DOCX_PARTS as Ui, createSoftEdgeEffect as Un, replaceNumberingPlaceholders as Ur, ShapeLockingOptions as Ut, DiagramRelationshipIdsOptions as V, buildFill as Va, summarizeOpcIssues as Vi, Vector3D as Vn, replaceImagePlaceholders as Vr, GroupLockingOptions as Vt, ColorMethod as W, GradientShadeOptions as Wa, PART_REGISTRIES as Wi, EffectContainerType as Wn, replaceSmartArtPlaceholders as Wr, createGraphicFrameLocking as Wt, createDiagramStyle as X, TileFlipMode as Xa, ParsedArchive as Xi, calculateEffectExtent as Xn, xsdLineCap as Xr, TableCellBorderOptions as Xt, StyleMatrixIndex as Y, RelativeRect as Ya, XLSX_PARTS as Yi, EffectListOptions as Yn, xsdEffectContainer as Yr, StyleMatrixReferenceOptions as Yt, createEffectColorList as Z, createGradientFill as Za, parseArchive as Zi, createEffectList as Zn, xsdLineEndSize as Zr, TableCellStyleOptions as Zt, graphicFrameLockingDesc as _, CompressionOptions as _a, randomBytes as _i, ConnectionSite as _n, RgbColorOptions as _o, OutlineOptions as _r, createStyleDefinitionHeader as _t, blipDesc as a, appPropertiesDesc as aa, xsdTextAlign as ai, createTableStyleList as an, createBlipEffects as ao, createOuterShadowEffect as ar, ColorsDefinitionHeaderOptions as at, shapeLockingDesc as b, XmlifyedFile as ba, convertEmuToPoints as bi, PathCommand as bn, PresetColorOptions as bo, createOutline as br, AdjustOptions as bt, stretchDesc as c, createDefault as ca, xsdUnderlineStyle as ci, Transform2DOptions as cn, createSolidFill as co, GlowEffectOptions as cr, DiagramNameOptions as ct, scene3DDesc as d, Media as da, hashedId as di, stringifyStretch as dn, createSystemColor as do, FillOverlayEffectOptions as dr, StyleDefinitionHeaderListOptions as dt, CustomPropertiesInput as ea, xsdPattern as ei, TableStyleOptions as en, TileOptions as eo, PresetShadowEffectOptions as er, createStyleLabel as et, shape3DDesc as f, RelationshipType as fa, uniqueId as fi, createExtentionList as fn, SchemeColor as fo, createFillOverlayEffect as fr, StyleDefinitionHeaderOptions as ft, presetGeometryDesc as g, CompileFn as ga, hashPasswordAgile as gi, createBlip as gn, createScRgbColor as go, OutlineFillProperties as gr, createLayoutDefinitionHeaderList as gt, customGeometryDesc as h, optionalRelsPart as ha, derivePasswordHash as hi, BlipOptions as hn, ScRgbColorOptions as ho, LineJoin as hr, createLayoutDefinitionHeader as ht, presentationLayoutVariablesDesc as i, AppPropertiesOptions as ia, xsdStrikeStyle as ii, createTableStyle as in, BlipEffectsOptions as io, RectAlignment as ir, ColorsDefinitionHeaderListOptions as it, schemeColorDesc as j, zipSyncAndConvert as ja, convertUniversalMeasureToInch as ji, BevelOptions as jn, collectPlaceholderKeys as jr, createAdjust as jt, rgbColorDesc as k, unzipSync$1 as ka, convertToTwip as ki, Shape3DOptions as kn, SmartArtRelOptions as kr, PreferredChildrenOptions as kt, tileDesc as l, createOverride as la, xsdVerticalMergeRev as li, createGroupTransform2D as ln, SystemColor as lo, createGlowEffect as lr, LayoutDefinitionHeaderListOptions as lt, transform2DDesc as m, TargetModeType as ma, uniqueUuid as mi, createBlipFill as mn, createSchemeColor as mo, LineCap as mr, createColorsDefinitionHeaderList as mt, diagramRelationshipIdsDesc as n, customPropertiesDesc as na, xsdPresetShadow as ni, TableTextStyleOptions as nn, SourceRectangleOptions as no, createPresetShadowEffect as nr, createTextFillColorList as nt, blipFillDesc as o, DefaultAttributes as oa, xsdTextAnchor as oi, parseTableStyleList as on, SolidFillOptions as oo, InnerShadowEffectOptions as or, DiagramCategoryOptions as ot, groupTransform2DDesc as p, Relationships as pa, uniqueNumericIdCreator as pi, BlipFillOptions as pn, SchemeColorOptions as po, CompoundLine as pr, createColorsDefinitionHeader as pt, FontCollectionIndex as q, PathShadeOptions as qa, PartDef as qi, BlurEffectOptions as qn, xsdBlendMode as qr, createShapeLocking as qt, diagramStyleDesc as r, AppPropertiesInput as ra, xsdRectAlignment as ri, ThemeableLineStyleOptions as rn, createSourceRectangle as ro, OuterShadowEffectOptions as rr, createTextLineColorList as rt, sourceRectangleDesc as s, OverrideAttributes as sa, xsdTextCaps as si, GroupTransform2DOptions as sn, createColorElement as so, createInnerShadowEffect as sr, DiagramDescriptionOptions as st, diagramExtensionListDesc as t, CustomPropertyOptions as ta, xsdPenAlignment as ti, TableStyleRegion as tn, createTileInfo as to, PresetShadowVal as tr, createTextEffectColorList as tt, bevelDesc as u, BaseMediaEntry as ua, UniqueNumericIdCreator as ui, createTransform2D as un, SystemColorOptions as uo, BlendMode as ur, LayoutDefinitionHeaderOptions as ut, groupLockingDesc as v, Packer as va, convertEmuToInches as vi, CustomGeometryOptions as vn, createRgbColor as vo, PenAlignment as vr, createStyleDefinitionHeaderList as vt, gradientFillDesc as w, Zippable$1 as wa, convertPixelsToEmu as wi, PresetGeometryOptions as wn, ColorTransformOptions as wo, LineEndWidth as wr, AnimationLevelValue as wt, effectListDesc as x, ZIP_DEFLATE_LEVEL as xa, convertInchesToEmu as xi, PathFillMode as xn, createPresetColor as xo, LineEndLength as xr, AnimateOneByOneOptions as xt, pictureLockingDesc as y, PackerOptions as ya, convertEmuToPixels as yi, GeomRect as yn, PresetColor as yo, PresetDash as yr, AdjustListOptions as yt, createDiagramShape3D as z, FillOptions as za, OpcIssue as zi, Scene3DOptions as zn, replaceChartPlaceholders as zr, createPresentationLayoutVariables as zt };