@stll/docx-core 0.31.0 → 0.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4232,7 +4232,7 @@ type DocxPackage = {
4232
4232
  /** Document-wide settings (`word/settings.xml`). */
4233
4233
  settings?: DocumentSettings;
4234
4234
  /** Style definitions */
4235
- styles?: StyleDefinitions;
4235
+ styles?: StyleDefinitions | undefined;
4236
4236
  /** Theme */
4237
4237
  theme?: Theme;
4238
4238
  /** Numbering definitions */
@@ -4248,9 +4248,9 @@ type DocxPackage = {
4248
4248
  /** Footers by relationship ID */
4249
4249
  footers?: Map<string, HeaderFooter>;
4250
4250
  /** Document relationships */
4251
- relationships?: RelationshipMap;
4251
+ relationships?: RelationshipMap | undefined;
4252
4252
  /** Media files */
4253
- media?: Map<string, MediaFile>;
4253
+ media?: Map<string, MediaFile> | undefined;
4254
4254
  /** Document properties */
4255
4255
  properties?: {
4256
4256
  title?: string;
Binary file
@@ -89,4 +89,52 @@ const hasIllegalXmlCharacters = (value) => ILLEGAL_XML_CHARACTER_PROBE.test(valu
89
89
  */
90
90
  const sanitizeXmlCharacters = (value) => hasIllegalXmlCharacters(value) ? value.replace(LONE_SURROGATE_PATTERN, REPLACEMENT_CHARACTER).replace(ILLEGAL_XML_CHARACTER_PATTERN, "") : value;
91
91
  //#endregion
92
- export { sanitizeXmlCharacters as i, escapeXmlText as n, hasIllegalXmlCharacters as r, escapeXmlAttribute as t };
92
+ //#region src/markdown/href.ts
93
+ const ALLOWED_URL_PROTOCOLS = /* @__PURE__ */ new Set([
94
+ "http:",
95
+ "https:",
96
+ "mailto:",
97
+ "tel:"
98
+ ]);
99
+ /**
100
+ * Keep only http(s), mailto, and tel URLs, normalised through the URL parser.
101
+ * Anything else (javascript:, data:, relative paths, malformed input) drops to
102
+ * `undefined` so a markdown link degrades to its text instead of carrying an
103
+ * executable target into the document.
104
+ */
105
+ const sanitizeExternalUrl = (rawUrl) => {
106
+ if (!rawUrl) return;
107
+ const trimmed = rawUrl.trim();
108
+ if (!trimmed) return;
109
+ const parsed = parseUrl(trimmed);
110
+ if (!parsed || !ALLOWED_URL_PROTOCOLS.has(parsed.protocol)) return;
111
+ if ((parsed.protocol === "mailto:" || parsed.protocol === "tel:") && parsed.pathname.trim() === "") return;
112
+ return parsed.href;
113
+ };
114
+ const parseUrl = (value) => {
115
+ try {
116
+ return new URL(value);
117
+ } catch {
118
+ return null;
119
+ }
120
+ };
121
+ const hasUnsafeAnchorCharacter = (anchor) => {
122
+ for (const char of anchor) {
123
+ const codePoint = char.codePointAt(0) ?? 0;
124
+ if (codePoint <= 32 || codePoint === 127 || char.trim() === "") return true;
125
+ }
126
+ return false;
127
+ };
128
+ /** A `#anchor` stays a document-internal target; anything else must pass {@link sanitizeExternalUrl}. */
129
+ const sanitizeMarkdownHref = (rawHref) => {
130
+ const trimmed = rawHref.trim();
131
+ if (!trimmed) return;
132
+ if (trimmed.startsWith("#")) {
133
+ const anchor = trimmed.slice(1);
134
+ if (!anchor || hasUnsafeAnchorCharacter(anchor)) return;
135
+ return `#${anchor}`;
136
+ }
137
+ return sanitizeExternalUrl(trimmed);
138
+ };
139
+ //#endregion
140
+ export { hasIllegalXmlCharacters as a, escapeXmlText as i, sanitizeMarkdownHref as n, sanitizeXmlCharacters as o, escapeXmlAttribute as r, sanitizeExternalUrl as t };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Dr as NumberingDefinitions, Fn as Table, In as TableCell, J as DocumentBackground, Jn as TextContent, M as BlockContent, Qt as ParagraphContent, R as BreakContent, Wn as TableRow, X as DocumentBody, Y as DocumentBackgroundDrawing, Zt as Paragraph, a as DocxConformanceClass, bn as SectionProperties, mn as RunContent, n as DOCX_CONFORMANCE_CLASSES, o as DocxPackage, pn as Run, r as Document, rn as PositionalTab, v as Style } from "./document-w6pPLpob.js";
1
+ import { Dr as NumberingDefinitions, Fn as Table, In as TableCell, J as DocumentBackground, Jn as TextContent, M as BlockContent, Qt as ParagraphContent, R as BreakContent, Wn as TableRow, X as DocumentBody, Y as DocumentBackgroundDrawing, Zt as Paragraph, a as DocxConformanceClass, bn as SectionProperties, mn as RunContent, n as DOCX_CONFORMANCE_CLASSES, o as DocxPackage, pn as Run, r as Document, rn as PositionalTab, v as Style } from "./document-C73n0FqK.js";
2
2
  import JSZip from "jszip";
3
3
  import { Buffer } from "node:buffer";
4
4
  //#region src/legal-source/types.d.ts
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { C as statesNoBorder, G as headingOutlineLevel, d as isOoxmlSymbolCharacter, et as paragraphNumberingLevel, n as DOCX_CONFORMANCE_CLASSES, nt as paragraphNumberingReferenceId, o as MAX_REVISION_ID, rt as paragraphNumberingSlots, tt as paragraphNumberingReference, u as isNoteReferenceId, y as borderStyleToken } from "./document-3WKQA1r3.js";
2
+ import { writeZipPart } from "./zip/writeZipPart.js";
2
3
  import { i as serializeSequenceChildren } from "./sequenceChildren-B8ODeI3J.js";
3
- import { i as sanitizeXmlCharacters, n as escapeXmlText, r as hasIllegalXmlCharacters, t as escapeXmlAttribute } from "./xmlEscape-T-2DeGlS.js";
4
+ import { a as hasIllegalXmlCharacters, i as escapeXmlText, n as sanitizeMarkdownHref, o as sanitizeXmlCharacters, r as escapeXmlAttribute, t as sanitizeExternalUrl } from "./href-2XSCK-T8.js";
4
5
  import { Result, TaggedError, panic } from "better-result";
5
6
  import JSZip from "jszip";
6
7
  import { XMLParser, XMLValidator } from "fast-xml-parser";
@@ -362,16 +363,51 @@ const APP_XML = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><P
362
363
  const serializeDocumentToDocx = async (document, options = {}) => {
363
364
  const zip = new JSZip();
364
365
  const hasNumbering = hasNumberingDefinitions(document.package.numbering);
365
- zip.file("[Content_Types].xml", contentTypesXml(hasNumbering));
366
- zip.folder("_rels")?.file(".rels", ROOT_RELS_XML);
367
- zip.folder("docProps")?.file("app.xml", APP_XML);
368
- zip.folder("docProps")?.file("core.xml", serializeCoreProperties(document));
369
- const word = zip.folder("word");
370
- word?.file("document.xml", serializeDocumentXml(document));
371
- word?.file("styles.xml", serializeStyles(document.package.styles));
372
- if (hasNumbering) word?.file("numbering.xml", serializeNumbering(document.package.numbering));
373
- word?.file(DEFAULT_FOOTER_PART_NAME, buildFooterXml(options.language));
374
- word?.folder("_rels")?.file("document.xml.rels", documentRelsXml(hasNumbering));
366
+ writeZipPart({
367
+ zip,
368
+ path: "[Content_Types].xml",
369
+ data: contentTypesXml(hasNumbering)
370
+ });
371
+ writeZipPart({
372
+ zip,
373
+ path: "_rels/.rels",
374
+ data: ROOT_RELS_XML
375
+ });
376
+ writeZipPart({
377
+ zip,
378
+ path: "docProps/app.xml",
379
+ data: APP_XML
380
+ });
381
+ writeZipPart({
382
+ zip,
383
+ path: "docProps/core.xml",
384
+ data: serializeCoreProperties(document)
385
+ });
386
+ writeZipPart({
387
+ zip,
388
+ path: "word/document.xml",
389
+ data: serializeDocumentXml(document)
390
+ });
391
+ writeZipPart({
392
+ zip,
393
+ path: "word/styles.xml",
394
+ data: serializeStyles(document.package.styles)
395
+ });
396
+ if (hasNumbering) writeZipPart({
397
+ zip,
398
+ path: "word/numbering.xml",
399
+ data: serializeNumbering(document.package.numbering)
400
+ });
401
+ writeZipPart({
402
+ zip,
403
+ path: `word/${DEFAULT_FOOTER_PART_NAME}`,
404
+ data: buildFooterXml(options.language)
405
+ });
406
+ writeZipPart({
407
+ zip,
408
+ path: "word/_rels/document.xml.rels",
409
+ data: documentRelsXml(hasNumbering)
410
+ });
375
411
  for (const [path, file] of Object.entries(zip.files)) {
376
412
  if (file.dir || !path.endsWith(".xml")) continue;
377
413
  assertValidOoxmlNumericIds(await file.async("text"), path);
@@ -1646,54 +1682,6 @@ const validateCounterPairs = (starts, ends, { label, startName, endName, ctx, se
1646
1682
  }
1647
1683
  };
1648
1684
  //#endregion
1649
- //#region src/markdown/href.ts
1650
- const ALLOWED_URL_PROTOCOLS = /* @__PURE__ */ new Set([
1651
- "http:",
1652
- "https:",
1653
- "mailto:",
1654
- "tel:"
1655
- ]);
1656
- /**
1657
- * Keep only http(s), mailto, and tel URLs, normalised through the URL parser.
1658
- * Anything else (javascript:, data:, relative paths, malformed input) drops to
1659
- * `undefined` so a markdown link degrades to its text instead of carrying an
1660
- * executable target into the document.
1661
- */
1662
- const sanitizeExternalUrl = (rawUrl) => {
1663
- if (!rawUrl) return;
1664
- const trimmed = rawUrl.trim();
1665
- if (!trimmed) return;
1666
- const parsed = parseUrl(trimmed);
1667
- if (!parsed || !ALLOWED_URL_PROTOCOLS.has(parsed.protocol)) return;
1668
- if ((parsed.protocol === "mailto:" || parsed.protocol === "tel:") && parsed.pathname.trim() === "") return;
1669
- return parsed.href;
1670
- };
1671
- const parseUrl = (value) => {
1672
- try {
1673
- return new URL(value);
1674
- } catch {
1675
- return null;
1676
- }
1677
- };
1678
- const hasUnsafeAnchorCharacter = (anchor) => {
1679
- for (const char of anchor) {
1680
- const codePoint = char.codePointAt(0) ?? 0;
1681
- if (codePoint <= 32 || codePoint === 127 || char.trim() === "") return true;
1682
- }
1683
- return false;
1684
- };
1685
- /** A `#anchor` stays a document-internal target; anything else must pass {@link sanitizeExternalUrl}. */
1686
- const sanitizeMarkdownHref = (rawHref) => {
1687
- const trimmed = rawHref.trim();
1688
- if (!trimmed) return;
1689
- if (trimmed.startsWith("#")) {
1690
- const anchor = trimmed.slice(1);
1691
- if (!anchor || hasUnsafeAnchorCharacter(anchor)) return;
1692
- return `#${anchor}`;
1693
- }
1694
- return sanitizeExternalUrl(trimmed);
1695
- };
1696
- //#endregion
1697
1685
  //#region src/markdown/lexer.ts
1698
1686
  /**
1699
1687
  * One `marked` configuration for every markdown surface in docx-core. Plain
@@ -1,3 +1,3 @@
1
- import { $ as DrawingGroupChild, $i as borderStyleToken, $n as VerticalAlign, $r as ParagraphNumberingOverride, $t as ParagraphMarkChange, A as BIDI_CONTROLS, Ai as TableAlignment, An as ShapeType, Ar as ConditionalFormatStyle, At as Insertion, B as Comment, Bi as isSchemeColorValue, Bn as TableCustomXmlWrapper, Br as TableCellFormatting, Bt as MoveTo, C as ThemeFont, Ci as ParagraphAlignment, Cn as Shape, Cr as LevelSuffix, Ct as ImagePosition, D as ParseWarning, Di as TEXT_DIRECTION_FLOWS, Dn as ShapeGeometryAdjustment, Dr as NumberingDefinitions, Dt as ImageWrapPolygon, E as PARSE_WARNING_CODES, Ei as TEXT_DIRECTIONS, En as ShapeFill, Er as ListRendering, Et as ImageWrap, F as BookmarkEnd, Fi as ShadingProperties, Fn as Table, Fr as SpacingExplicit, Ft as MathEquation, G as DRAWING_RAW_XML_MODES, Gi as themeColorToken, Gn as TableRowPropertyChange, Gr as TablePropertyExceptionFormatting, Gt as NoteMarkerContent, H as CommentRangeStart, Hi as knownThemeColor, Hn as TablePropertyChange, Hr as TableGridChange, Ht as MoveToRangeStart, I as BookmarkRangeMarker, Ii as SCHEME_COLOR_VALUE_BY_THEME_COLOR, In as TableCell, Ir as TabLeader, It as MoveBookmarkMarker, J as DocumentBackground, Ji as THEME_COLORS, Jn as TextContent, Jr as TextEffect, Jt as PARAGRAPH_MARK_CHANGE_KINDS, K as Deletion, Ki as SchemeColorSlot, Kn as TableStructuralChangeInfo, Kr as TableRowFormatting, Kt as NoteNumberRestart, L as BookmarkStart, Li as THEME_COLOR_BY_SCHEME_COLOR_VALUE, Ln as TableCellBlock, Lr as TabStop, Lt as MoveFrom, M as BlockContent, Mi as TextDirectionFlow, Mn as SoftHyphenContent, Mr as FloatingTableProperties, Mt as LineNumberRestart, N as BlockCustomXml, Ni as BorderSpec, Nn as SymbolContent, Nr as LineSpacingRule, Nt as MAX_REVISION_ID, O as ParseWarningCode, Oi as TEXT_DIRECTION_FLOW_BY_TOKEN, On as ShapeOutline, Or as NumberingInstance, Ot as InlineSdt, P as BlockSdt, Pi as ColorValue, Pn as TabContent, Pr as ParagraphFormatting, Pt as MarkupRangeMarker, Q as DrawingContent, Qi as borderStyleFrom, Qn as TrackedRunContent, Qr as NO_PARAGRAPH_NUMBERING, Qt as ParagraphContent, R as BreakContent, Ri as ThemeColorValue, Rn as TableCellPropertyChange, Rr as TableBorders, Rt as MoveFromRangeEnd, S as ThemeColorScheme, Si as PARAGRAPH_ALIGNMENTS, Sn as SectionStart, Sr as LevelOverride, St as ImagePadding, T as MAX_RETAINED_PARSE_WARNINGS_PER_CODE, Ti as TAB_STOP_ALIGNMENTS, Tn as ShapeContent, Tr as ListMarkerFormatting, Tt as ImageTransform, U as CommentReference, Ui as readThemeColor, Un as TablePropertyExceptionChange, Ur as TableLook, Ut as NoBreakHyphenContent, V as CommentRangeEnd, Vi as isThemeColor, Vn as TablePreservedMarkup, Vr as TableFormatting, Vt as MoveToRangeEnd, W as ComplexField, Wi as themeColorSlot, Wn as TableRow, Wr as TableMeasurement, Wt as NonVisualDrawingNames, X as DocumentBody, Xi as BorderStyleValue, Xn as TrackedChangeInfo, Xr as UnderlineStyle, Xt as PageOrientation, Y as DocumentBackgroundDrawing, Yi as ThemeColor, Yn as TextWatermark, Yr as TextFormatting, Yt as PROPERTY_REVISION_KINDS, Z as DrawingAnchor, Zi as UnrecognisedBorderStyle, Zn as TrackedRunChange, Zr as NO_NUMBERING_NUM_ID, Zt as Paragraph, _ as RelationshipType, _i as headingOutlineLevel, _n as SdtProperties, _r as PreviewShape, a as DocxConformanceClass, aa as BorderStyle, ai as paragraphNumberingFromSlots, an as PreservedBlock, ar as normalizeRevisionId, at as Field, b as StyleType, bi as NUMBER_FORMATS, bn as SectionProperties, br as CounterFormat, bt as ImageDocPrLink, c as ExhaustiveFields, ci as paragraphNumberingReferenceId, cn as PropertyChange, cr as isPresetLineDashVal, ct as FoldedListNumber, d as FontCharset, di as sameEffectiveParagraphNumbering, dn as REVIEW_CARRIERS, dr as PRESET_LINE_DASH_VALS, dt as FootnotePosition, ea as isBorderNil, ei as ParagraphNumberingReference, en as ParagraphMarkChangeKind, er as Watermark, et as DrawingRawXmlMode, f as FontInfo, fi as sameStatedParagraphNumbering, fn as ReviewCarrier, fr as PresetLineDashVal, ft as FootnoteProperties, g as RelationshipMap, gi as headingLevelOf, gn as SdtEndProperties, gr as PreviewDescriptor, gt as Hyperlink, h as Relationship, hi as OutlineLevel, hn as RunPropertyChange, hr as relationshipIdOf, ht as HeaderReference, i as DocumentSettings, ia as BORDER_STYLES, ii as mergeParagraphNumbering, in as PositionedBookmarkMarker, ir as isOoxmlSymbolCharacter, it as EndnoteProperties, j as BidiControl, ji as TextDirection, jn as SimpleField, jr as EmphasisMark, jt as InstrTextContent, k as ParseWarningLocation, ki as TabStopAlignment, kn as ShapeTextBody, kr as CellMargins, kt as InlineWrapper, l as DocDefaults, li as paragraphNumberingSlots, ln as PropertyChangeInfo, lr as presetLineDashFrom, lt as FooterReference, m as MediaFile, mi as HeadingOutlineLevel, mn as RunContent, mr as mintRelationshipId, mt as HeaderFooterType, n as DOCX_CONFORMANCE_CLASSES, na as isBorderStyle, ni as ResolvedParagraphNumbering, nn as PictureWatermark, nr as WrapDistances, nt as Endnote, o as DocxPackage, oi as paragraphNumberingLevel, on as PreservedInline, or as PresetLineDashValue, ot as FieldCharContent, p as FontTable, pi as BODY_TEXT_OUTLINE_LEVEL, pn as Run, pr as RelationshipId, pt as HeaderFooter, q as DisplacedByCustomXml, qi as SchemeColorValue, qn as TextBox, qr as TableWidthType, qt as NoteReferenceContent, r as Document, ra as statesNoBorder, ri as isNumberingReference, rn as PositionalTab, rr as WrapPolygonPoint, rt as EndnotePosition, s as isNumberingLevel, si as paragraphNumberingReference, sn as PreservedXmlContent, sr as UnrecognisedPresetLineDash, st as FieldType, t as DEFAULT_TAB_STOP_TWIPS, ta as isBorderNone, ti as ParagraphNumberingSlots, tn as ParagraphPropertyChange, tr as WrapDistanceSlots, tt as EffectExtentSlots, u as EmbeddedFontRef, ui as resolveParagraphNumbering, un as PropertyRevisionKind, ur as presetLineDashToken, ut as Footnote, v as Style, vi as outlineLevelFromStatedValue, vn as SdtType, vr as AbstractNumbering, vt as Image, w as ThemeFontScheme, wi as TABLE_ALIGNMENTS, wn as ShapeAlternateContent, wr as ListLevel, wt as ImageSize, x as Theme, xi as NumberFormat, xn as SectionPropertyChange, xr as LevelLegacy, xt as ImageFrameLocks, y as StyleDefinitions, yi as outlineLevelStatedValue, yn as Section, yr as COUNTER_FORMATS, yt as ImageCrop, z as Column, zi as UnrecognisedThemeColor, zn as TableContentCarrier, zr as TableCellBorders, zt as MoveFromRangeStart } from "../document-w6pPLpob.js";
1
+ import { $ as DrawingGroupChild, $i as borderStyleToken, $n as VerticalAlign, $r as ParagraphNumberingOverride, $t as ParagraphMarkChange, A as BIDI_CONTROLS, Ai as TableAlignment, An as ShapeType, Ar as ConditionalFormatStyle, At as Insertion, B as Comment, Bi as isSchemeColorValue, Bn as TableCustomXmlWrapper, Br as TableCellFormatting, Bt as MoveTo, C as ThemeFont, Ci as ParagraphAlignment, Cn as Shape, Cr as LevelSuffix, Ct as ImagePosition, D as ParseWarning, Di as TEXT_DIRECTION_FLOWS, Dn as ShapeGeometryAdjustment, Dr as NumberingDefinitions, Dt as ImageWrapPolygon, E as PARSE_WARNING_CODES, Ei as TEXT_DIRECTIONS, En as ShapeFill, Er as ListRendering, Et as ImageWrap, F as BookmarkEnd, Fi as ShadingProperties, Fn as Table, Fr as SpacingExplicit, Ft as MathEquation, G as DRAWING_RAW_XML_MODES, Gi as themeColorToken, Gn as TableRowPropertyChange, Gr as TablePropertyExceptionFormatting, Gt as NoteMarkerContent, H as CommentRangeStart, Hi as knownThemeColor, Hn as TablePropertyChange, Hr as TableGridChange, Ht as MoveToRangeStart, I as BookmarkRangeMarker, Ii as SCHEME_COLOR_VALUE_BY_THEME_COLOR, In as TableCell, Ir as TabLeader, It as MoveBookmarkMarker, J as DocumentBackground, Ji as THEME_COLORS, Jn as TextContent, Jr as TextEffect, Jt as PARAGRAPH_MARK_CHANGE_KINDS, K as Deletion, Ki as SchemeColorSlot, Kn as TableStructuralChangeInfo, Kr as TableRowFormatting, Kt as NoteNumberRestart, L as BookmarkStart, Li as THEME_COLOR_BY_SCHEME_COLOR_VALUE, Ln as TableCellBlock, Lr as TabStop, Lt as MoveFrom, M as BlockContent, Mi as TextDirectionFlow, Mn as SoftHyphenContent, Mr as FloatingTableProperties, Mt as LineNumberRestart, N as BlockCustomXml, Ni as BorderSpec, Nn as SymbolContent, Nr as LineSpacingRule, Nt as MAX_REVISION_ID, O as ParseWarningCode, Oi as TEXT_DIRECTION_FLOW_BY_TOKEN, On as ShapeOutline, Or as NumberingInstance, Ot as InlineSdt, P as BlockSdt, Pi as ColorValue, Pn as TabContent, Pr as ParagraphFormatting, Pt as MarkupRangeMarker, Q as DrawingContent, Qi as borderStyleFrom, Qn as TrackedRunContent, Qr as NO_PARAGRAPH_NUMBERING, Qt as ParagraphContent, R as BreakContent, Ri as ThemeColorValue, Rn as TableCellPropertyChange, Rr as TableBorders, Rt as MoveFromRangeEnd, S as ThemeColorScheme, Si as PARAGRAPH_ALIGNMENTS, Sn as SectionStart, Sr as LevelOverride, St as ImagePadding, T as MAX_RETAINED_PARSE_WARNINGS_PER_CODE, Ti as TAB_STOP_ALIGNMENTS, Tn as ShapeContent, Tr as ListMarkerFormatting, Tt as ImageTransform, U as CommentReference, Ui as readThemeColor, Un as TablePropertyExceptionChange, Ur as TableLook, Ut as NoBreakHyphenContent, V as CommentRangeEnd, Vi as isThemeColor, Vn as TablePreservedMarkup, Vr as TableFormatting, Vt as MoveToRangeEnd, W as ComplexField, Wi as themeColorSlot, Wn as TableRow, Wr as TableMeasurement, Wt as NonVisualDrawingNames, X as DocumentBody, Xi as BorderStyleValue, Xn as TrackedChangeInfo, Xr as UnderlineStyle, Xt as PageOrientation, Y as DocumentBackgroundDrawing, Yi as ThemeColor, Yn as TextWatermark, Yr as TextFormatting, Yt as PROPERTY_REVISION_KINDS, Z as DrawingAnchor, Zi as UnrecognisedBorderStyle, Zn as TrackedRunChange, Zr as NO_NUMBERING_NUM_ID, Zt as Paragraph, _ as RelationshipType, _i as headingOutlineLevel, _n as SdtProperties, _r as PreviewShape, a as DocxConformanceClass, aa as BorderStyle, ai as paragraphNumberingFromSlots, an as PreservedBlock, ar as normalizeRevisionId, at as Field, b as StyleType, bi as NUMBER_FORMATS, bn as SectionProperties, br as CounterFormat, bt as ImageDocPrLink, c as ExhaustiveFields, ci as paragraphNumberingReferenceId, cn as PropertyChange, cr as isPresetLineDashVal, ct as FoldedListNumber, d as FontCharset, di as sameEffectiveParagraphNumbering, dn as REVIEW_CARRIERS, dr as PRESET_LINE_DASH_VALS, dt as FootnotePosition, ea as isBorderNil, ei as ParagraphNumberingReference, en as ParagraphMarkChangeKind, er as Watermark, et as DrawingRawXmlMode, f as FontInfo, fi as sameStatedParagraphNumbering, fn as ReviewCarrier, fr as PresetLineDashVal, ft as FootnoteProperties, g as RelationshipMap, gi as headingLevelOf, gn as SdtEndProperties, gr as PreviewDescriptor, gt as Hyperlink, h as Relationship, hi as OutlineLevel, hn as RunPropertyChange, hr as relationshipIdOf, ht as HeaderReference, i as DocumentSettings, ia as BORDER_STYLES, ii as mergeParagraphNumbering, in as PositionedBookmarkMarker, ir as isOoxmlSymbolCharacter, it as EndnoteProperties, j as BidiControl, ji as TextDirection, jn as SimpleField, jr as EmphasisMark, jt as InstrTextContent, k as ParseWarningLocation, ki as TabStopAlignment, kn as ShapeTextBody, kr as CellMargins, kt as InlineWrapper, l as DocDefaults, li as paragraphNumberingSlots, ln as PropertyChangeInfo, lr as presetLineDashFrom, lt as FooterReference, m as MediaFile, mi as HeadingOutlineLevel, mn as RunContent, mr as mintRelationshipId, mt as HeaderFooterType, n as DOCX_CONFORMANCE_CLASSES, na as isBorderStyle, ni as ResolvedParagraphNumbering, nn as PictureWatermark, nr as WrapDistances, nt as Endnote, o as DocxPackage, oi as paragraphNumberingLevel, on as PreservedInline, or as PresetLineDashValue, ot as FieldCharContent, p as FontTable, pi as BODY_TEXT_OUTLINE_LEVEL, pn as Run, pr as RelationshipId, pt as HeaderFooter, q as DisplacedByCustomXml, qi as SchemeColorValue, qn as TextBox, qr as TableWidthType, qt as NoteReferenceContent, r as Document, ra as statesNoBorder, ri as isNumberingReference, rn as PositionalTab, rr as WrapPolygonPoint, rt as EndnotePosition, s as isNumberingLevel, si as paragraphNumberingReference, sn as PreservedXmlContent, sr as UnrecognisedPresetLineDash, st as FieldType, t as DEFAULT_TAB_STOP_TWIPS, ta as isBorderNone, ti as ParagraphNumberingSlots, tn as ParagraphPropertyChange, tr as WrapDistanceSlots, tt as EffectExtentSlots, u as EmbeddedFontRef, ui as resolveParagraphNumbering, un as PropertyRevisionKind, ur as presetLineDashToken, ut as Footnote, v as Style, vi as outlineLevelFromStatedValue, vn as SdtType, vr as AbstractNumbering, vt as Image, w as ThemeFontScheme, wi as TABLE_ALIGNMENTS, wn as ShapeAlternateContent, wr as ListLevel, wt as ImageSize, x as Theme, xi as NumberFormat, xn as SectionPropertyChange, xr as LevelLegacy, xt as ImageFrameLocks, y as StyleDefinitions, yi as outlineLevelStatedValue, yn as Section, yr as COUNTER_FORMATS, yt as ImageCrop, z as Column, zi as UnrecognisedThemeColor, zn as TableContentCarrier, zr as TableCellBorders, zt as MoveFromRangeStart } from "../document-C73n0FqK.js";
2
2
  import { n as PreservedChild, r as PreservedMarkup, t as PreservedAttribute } from "../preservedMarkup-G8XjWhs2.js";
3
3
  export { type AbstractNumbering, BIDI_CONTROLS, BODY_TEXT_OUTLINE_LEVEL, BORDER_STYLES, type BidiControl, type BlockContent, type BlockCustomXml, type BlockSdt, type BookmarkEnd, type BookmarkRangeMarker, type BookmarkStart, type BorderSpec, type BorderStyle, type BorderStyleValue, type BreakContent, COUNTER_FORMATS, type CellMargins, type ColorValue, type Column, type Comment, type CommentRangeEnd, type CommentRangeStart, type CommentReference, type ComplexField, type ConditionalFormatStyle, type CounterFormat, DEFAULT_TAB_STOP_TWIPS, DOCX_CONFORMANCE_CLASSES, DRAWING_RAW_XML_MODES, type Deletion, type DisplacedByCustomXml, type DocDefaults, Document, type DocumentBackground, type DocumentBackgroundDrawing, type DocumentBody, DocumentSettings, DocxConformanceClass, DocxPackage, type DrawingAnchor, type DrawingContent, type DrawingGroupChild, type DrawingRawXmlMode, type EffectExtentSlots, type EmbeddedFontRef, type EmphasisMark, type Endnote, type EndnotePosition, type EndnoteProperties, type ExhaustiveFields, type Field, type FieldCharContent, type FieldType, type FloatingTableProperties, type FoldedListNumber, type FontCharset, type FontInfo, type FontTable, type FooterReference, type Footnote, type FootnotePosition, type FootnoteProperties, type HeaderFooter, type HeaderFooterType, type HeaderReference, type HeadingOutlineLevel, type Hyperlink, type Image, type ImageCrop, type ImageDocPrLink, type ImageFrameLocks, type ImagePadding, type ImagePosition, type ImageSize, type ImageTransform, type ImageWrap, type ImageWrapPolygon, type InlineSdt, type InlineWrapper, type Insertion, type InstrTextContent, type LevelLegacy, type LevelOverride, type LevelSuffix, type LineNumberRestart, type LineSpacingRule, type ListLevel, type ListMarkerFormatting, type ListRendering, MAX_RETAINED_PARSE_WARNINGS_PER_CODE, MAX_REVISION_ID, type MarkupRangeMarker, type MathEquation, type MediaFile, type MoveBookmarkMarker, type MoveFrom, type MoveFromRangeEnd, type MoveFromRangeStart, type MoveTo, type MoveToRangeEnd, type MoveToRangeStart, NO_NUMBERING_NUM_ID, NO_PARAGRAPH_NUMBERING, NUMBER_FORMATS, type NoBreakHyphenContent, type NonVisualDrawingNames, type NoteMarkerContent, type NoteNumberRestart, type NoteReferenceContent, type NumberFormat, type NumberingDefinitions, type NumberingInstance, type OutlineLevel, PARAGRAPH_ALIGNMENTS, PARAGRAPH_MARK_CHANGE_KINDS, PARSE_WARNING_CODES, PRESET_LINE_DASH_VALS, PROPERTY_REVISION_KINDS, type PageOrientation, type Paragraph, type ParagraphAlignment, type ParagraphContent, type ParagraphFormatting, type ParagraphMarkChange, type ParagraphMarkChangeKind, type ParagraphNumberingOverride, type ParagraphNumberingReference, type ParagraphNumberingSlots, type ParagraphPropertyChange, type ParseWarning, type ParseWarningCode, type ParseWarningLocation, type PictureWatermark, type PositionalTab, type PositionedBookmarkMarker, type PreservedAttribute, type PreservedBlock, type PreservedChild, type PreservedInline, type PreservedMarkup, type PreservedXmlContent, type PresetLineDashVal, type PresetLineDashValue, type PreviewDescriptor, type PreviewShape, type PropertyChange, type PropertyChangeInfo, type PropertyRevisionKind, REVIEW_CARRIERS, type Relationship, type RelationshipId, type RelationshipMap, type RelationshipType, type ResolvedParagraphNumbering, type ReviewCarrier, type Run, type RunContent, type RunPropertyChange, SCHEME_COLOR_VALUE_BY_THEME_COLOR, type SchemeColorSlot, type SchemeColorValue, type SdtEndProperties, type SdtProperties, type SdtType, type Section, type SectionProperties, type SectionPropertyChange, type SectionStart, type ShadingProperties, type Shape, type ShapeAlternateContent, type ShapeContent, type ShapeFill, type ShapeGeometryAdjustment, type ShapeOutline, type ShapeTextBody, type ShapeType, type SimpleField, type SoftHyphenContent, type SpacingExplicit, type Style, type StyleDefinitions, type StyleType, type SymbolContent, TABLE_ALIGNMENTS, TAB_STOP_ALIGNMENTS, TEXT_DIRECTIONS, TEXT_DIRECTION_FLOWS, TEXT_DIRECTION_FLOW_BY_TOKEN, THEME_COLORS, THEME_COLOR_BY_SCHEME_COLOR_VALUE, type TabContent, type TabLeader, type TabStop, type TabStopAlignment, type Table, type TableAlignment, type TableBorders, type TableCell, type TableCellBlock, type TableCellBorders, type TableCellFormatting, type TableCellPropertyChange, type TableContentCarrier, type TableCustomXmlWrapper, type TableFormatting, type TableGridChange, type TableLook, type TableMeasurement, type TablePreservedMarkup, type TablePropertyChange, type TablePropertyExceptionChange, type TablePropertyExceptionFormatting, type TableRow, type TableRowFormatting, type TableRowPropertyChange, type TableStructuralChangeInfo, type TableWidthType, type TextBox, type TextContent, type TextDirection, type TextDirectionFlow, type TextEffect, type TextFormatting, type TextWatermark, type Theme, type ThemeColor, type ThemeColorScheme, type ThemeColorValue, type ThemeFont, type ThemeFontScheme, type TrackedChangeInfo, type TrackedRunChange, type TrackedRunContent, type UnderlineStyle, type UnrecognisedBorderStyle, type UnrecognisedPresetLineDash, type UnrecognisedThemeColor, type VerticalAlign, type Watermark, type WrapDistanceSlots, type WrapDistances, type WrapPolygonPoint, borderStyleFrom, borderStyleToken, headingLevelOf, headingOutlineLevel, isBorderNil, isBorderNone, isBorderStyle, isNumberingLevel, isNumberingReference, isOoxmlSymbolCharacter, isPresetLineDashVal, isSchemeColorValue, isThemeColor, knownThemeColor, mergeParagraphNumbering, mintRelationshipId, normalizeRevisionId, outlineLevelFromStatedValue, outlineLevelStatedValue, paragraphNumberingFromSlots, paragraphNumberingLevel, paragraphNumberingReference, paragraphNumberingReferenceId, paragraphNumberingSlots, presetLineDashFrom, presetLineDashToken, readThemeColor, relationshipIdOf, resolveParagraphNumbering, sameEffectiveParagraphNumbering, sameStatedParagraphNumbering, statesNoBorder, themeColorSlot, themeColorToken };