@docx-editor.dev/core 2.24.0 → 2.25.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.
Files changed (95) hide show
  1. package/dist/automation.cjs +1 -1
  2. package/dist/automation.d.ts +30 -11
  3. package/dist/automation.js +1 -1
  4. package/dist/binding.cjs +1 -1
  5. package/dist/binding.d.ts +8 -8
  6. package/dist/binding.js +1 -1
  7. package/dist/{chunk-BOGQGMMU.cjs → chunk-3RMHRNDA.cjs} +1 -1
  8. package/dist/{chunk-6CPYOVRT.cjs → chunk-42N7OV3G.cjs} +1 -1
  9. package/dist/chunk-47ZJEEBT.js +2 -0
  10. package/dist/chunk-4B3SXBV6.js +4 -0
  11. package/dist/chunk-5MWFZ7F4.cjs +11 -0
  12. package/dist/chunk-AS2OC6J4.cjs +26 -0
  13. package/dist/{chunk-DF7F7TNU.cjs → chunk-B7SYEMZ7.cjs} +1 -1
  14. package/dist/{chunk-TBFZZX7Z.cjs → chunk-BME2KUNL.cjs} +1 -1
  15. package/dist/chunk-CDGVVEUK.js +26 -0
  16. package/dist/chunk-E4RAPI5J.cjs +2 -0
  17. package/dist/{chunk-YIBEBHT3.js → chunk-FZJTQPH4.js} +1 -1
  18. package/dist/chunk-H7XMRUAO.cjs +5 -0
  19. package/dist/{chunk-KPSGB64S.js → chunk-ILUE2SI5.js} +1 -1
  20. package/dist/{chunk-G765WG4R.js → chunk-IZT3C23R.js} +1 -1
  21. package/dist/{chunk-AKF5KM2W.cjs → chunk-KJLPVGSX.cjs} +2 -2
  22. package/dist/{chunk-W3ZUPQIZ.cjs → chunk-LF5LPZOP.cjs} +13 -13
  23. package/dist/{chunk-JDAAGZNE.cjs → chunk-MEF2AK5L.cjs} +1 -1
  24. package/dist/{chunk-SOUJNWXV.js → chunk-N5WE5O5Q.js} +1 -1
  25. package/dist/{chunk-VPKKYCZI.cjs → chunk-OVDW4XQD.cjs} +1 -1
  26. package/dist/{chunk-XWXJB4J7.js → chunk-SNN53UPD.js} +1 -1
  27. package/dist/chunk-V7LBEUVW.js +5 -0
  28. package/dist/chunk-VE7YBFQD.js +5 -0
  29. package/dist/chunk-VOVDX7GW.js +18 -0
  30. package/dist/chunk-VQ33XGNP.cjs +5 -0
  31. package/dist/{chunk-2LXGB2X7.js → chunk-WVJRO4WY.js} +1 -1
  32. package/dist/chunk-XUJINXW6.js +1 -0
  33. package/dist/{chunk-ZSM6X52G.cjs → chunk-Y3TPAITU.cjs} +1 -1
  34. package/dist/chunk-Z65JJLLF.js +11 -0
  35. package/dist/collaboration/replication.cjs +1 -1
  36. package/dist/collaboration/replication.d.ts +4 -4
  37. package/dist/collaboration/replication.js +1 -1
  38. package/dist/collaboration.d.ts +3 -3
  39. package/dist/contracts/document.d.ts +2 -2
  40. package/dist/contracts/editor.d.ts +8 -8
  41. package/dist/contracts/modules.d.ts +6 -6
  42. package/dist/contracts/types.d.ts +1 -1
  43. package/dist/{custom-node-writes-77rvPW2-.d.ts → custom-node-writes-Cy9imOjA.d.ts} +2 -2
  44. package/dist/{document-protection-CYIjO-li.d.ts → document-protection-Bp19Ad4I.d.ts} +1 -1
  45. package/dist/{editor-BU6rjQZz.d.ts → editor-DkfCCTxA.d.ts} +145 -9
  46. package/dist/editor.cjs +1 -1
  47. package/dist/editor.css +3 -1
  48. package/dist/editor.d.ts +179 -34
  49. package/dist/editor.js +1 -1
  50. package/dist/export.cjs +2 -2
  51. package/dist/export.d.ts +12 -12
  52. package/dist/export.js +1 -1
  53. package/dist/{font-resolver-CPO7wtg6.d.ts → font-resolver-C295obND.d.ts} +1 -1
  54. package/dist/{headless-document-view-Cc3fFWhv.d.ts → headless-document-view-R9bzzepb.d.ts} +2 -2
  55. package/dist/{image-resources-DkuzBnTM.d.ts → image-resources-DfagDguq.d.ts} +1 -1
  56. package/dist/{index-BOkQYOsZ.d.ts → index-3KAxeSic.d.ts} +333 -308
  57. package/dist/index.cjs +1 -1
  58. package/dist/index.d.ts +17 -17
  59. package/dist/index.js +1 -1
  60. package/dist/{layout-shaping-BOOxnLxF.d.ts → layout-shaping-C889tgmj.d.ts} +2 -2
  61. package/dist/layout.cjs +1 -1
  62. package/dist/layout.d.ts +19 -19
  63. package/dist/layout.js +1 -1
  64. package/dist/{note-properties-DMfKK3QU.d.ts → note-properties-CmfvOJsi.d.ts} +1 -1
  65. package/dist/{omml-equation-BY7OdfGY.d.ts → omml-equation-CZ6IG2ja.d.ts} +1 -1
  66. package/dist/output.cjs +1 -1
  67. package/dist/output.d.ts +7 -7
  68. package/dist/output.js +1 -1
  69. package/dist/{protocol-CPAakntQ.d.ts → protocol-BhmenALD.d.ts} +43 -22
  70. package/dist/{review-paragraph-order-B0BP_wJP.d.ts → review-paragraph-order-BwhRT264.d.ts} +1 -1
  71. package/dist/{revision-projection-CVJeA2jp.d.ts → revision-projection-DfWxdBqA.d.ts} +1 -1
  72. package/dist/{semantic-cell-selection-BtO2s2Za.d.ts → semantic-cell-selection-CC3NwCtx.d.ts} +4 -4
  73. package/dist/{semantic-interaction-COMnWyBQ.d.ts → semantic-interaction-BHlV61hK.d.ts} +1 -1
  74. package/dist/{semantic-paint-C032N0ps.d.ts → semantic-paint-DfWIWUs6.d.ts} +2 -2
  75. package/dist/{semantic-records-BSjo-xck.d.ts → semantic-records-DrExlBy-.d.ts} +6 -6
  76. package/dist/store.cjs +1 -1
  77. package/dist/store.d.ts +37 -40
  78. package/dist/store.js +1 -1
  79. package/dist/{tree-package-fragment-BIyGh6L8.d.ts → tree-package-fragment-YPyYC1aD.d.ts} +9 -4
  80. package/dist/{tree-session-contract-CHcCnz3W.d.ts → tree-session-contract-AeY2v0x9.d.ts} +8 -6
  81. package/dist/{types-barrel-DN_-gaRX.d.ts → types-barrel-BO73JqHG.d.ts} +44 -30
  82. package/package.json +3 -3
  83. package/dist/chunk-3OMDEMLL.js +0 -1
  84. package/dist/chunk-CVNDMQIX.cjs +0 -26
  85. package/dist/chunk-IEXYOLNR.cjs +0 -5
  86. package/dist/chunk-J3EM5ZEA.js +0 -18
  87. package/dist/chunk-JNE6QF47.js +0 -26
  88. package/dist/chunk-JQTVFP72.cjs +0 -2
  89. package/dist/chunk-JXL25DRU.js +0 -11
  90. package/dist/chunk-P4SBMHHO.cjs +0 -5
  91. package/dist/chunk-QQAF64KN.js +0 -5
  92. package/dist/chunk-SI5FLZGU.js +0 -4
  93. package/dist/chunk-T4TKRNZT.cjs +0 -11
  94. package/dist/chunk-XMWH2R23.js +0 -5
  95. package/dist/chunk-ZXAGLAY2.js +0 -2
package/dist/store.d.ts CHANGED
@@ -1,16 +1,16 @@
1
- import { e as ResourceLimits } from './image-resources-DkuzBnTM.js';
2
- export { C as CreateImageResourceCacheOptions, D as DEFAULT_IMAGE_RESOURCE_LIMITS, f as DEFAULT_LIMITS, H as HARD_CEILINGS, g as IMAGE_RESOURCE_HARD_CEILINGS, a as ImageDecodePort, I as ImageResourceLimits, h as ImageResourceLookup, b as ImageResourceState, M as MAX_SVG_SNIFF_BYTES, P as PreservedImageMime, R as RenderableImageMime, S as SupportedImageMime, V as ValidatedImageBytesHandle, i as ValidatedRasterHeader, j as createImageResourceCache, k as hasBoundedSvgRoot, l as imageResourceLookupFor, m as liveDrawingReferenceCount, r as resolveImageResourceLimits, n as resolveLimits, s as sniffImageMime, o as validateGifHeader, p as validateJpegHeader, q as validatePngHeader, v as validateRasterHeader } from './image-resources-DkuzBnTM.js';
3
- import { O as OoxmlPart, N as OoxmlNode, aM as OoxmlInvariantResult, at as OoxmlParagraphNode, aN as OoxmlFldCharNode, aO as OoxmlFldSimpleNode, aP as OoxmlInstrTextNode, aQ as OoxmlInvariantIssue, a1 as OoxmlElement, W as TreeDocOp, a5 as TreeOpRejection, aR as TreeOpResult, Q as OoxmlPackage, aS as RelationshipRecord, aT as OoxmlHardBreakNode, aU as OoxmlAttribute, a0 as OoxmlProperty, f as ReviewRange, R as ReviewModelInput, a as ReviewItem, C as CommentRecord, e as ReviewPosition, aV as CommentThreadState, c as ReviewCommentItem, b as ReviewRevisionItem, aB as DrawingTreeDocOp, aC as ImpactClass, aa as ImageWrapTarget } from './types-barrel-DN_-gaRX.js';
4
- export { aW as ACCEPTED_PARAGRAPH_PROPERTIES, aX as ACCEPTED_RUN_PROPERTIES, aY as CONTENT_CONTROL_ID_MAX, aZ as CONTENT_CONTROL_PROPERTY_ORDER, a_ as CommentAnchor, a$ as CommentPosition, b0 as CommitTextFormFieldOp, b1 as ContentControlCheckbox, b2 as ContentControlCheckboxState, b3 as ContentControlDataBinding, b4 as ContentControlDateFormat, b5 as ContentControlEntry, b6 as ContentControlKind, b7 as ContentControlLevel, b8 as ContentControlListItem, b9 as ContentControlLock, ba as ContentControlProperties, bb as ContentTypeError, bc as ContentTypeIndex, bd as ContentTypeRecords, be as DEFAULT_OOXML_PACKAGE_LIMITS, bf as DEFAULT_ZIP_LIMITS, bg as DefaultRecord, bh as DeleteTextOp, aI as DrawingImageEffects, a9 as DrawingKind, ac as DrawingLocks, ab as DrawingPositionInput, bi as HYPERLINK_RELATIONSHIP_TYPE, bj as HyperlinkKind, bk as HyperlinkTarget, bl as IMAGE_RELATIONSHIP_TYPE, aE as IMAGE_WRAP_TARGETS, bm as ImageRelationshipResolution, bn as IndexResult, bo as InsertBuildingBlockOp, bp as InsertTextOp, bq as LegacyCheckboxFieldRange, br as MAX_CONTENT_CONTROLS_PER_PART, bs as MAX_CONTENT_CONTROL_NESTING, bt as NameRejection, bu as NameResult, bv as OFFICE_RELATIONSHIP_NAMESPACE_URI, bw as OOXML_NODE_IDENTITY_RULES, bx as OoxmlBodyNode, by as OoxmlBookmarkEndNode, bz as OoxmlBookmarkStartNode, bA as OoxmlContentControlCalendarNode, bB as OoxmlContentControlCheckboxNode, bC as OoxmlContentControlCheckedNode, bD as OoxmlContentControlCheckedStateNode, bE as OoxmlContentControlComboBoxNode, a3 as OoxmlContentControlContentNode, bF as OoxmlContentControlDataBindingNode, bG as OoxmlContentControlDateFormatNode, bH as OoxmlContentControlDateNode, bI as OoxmlContentControlDropDownListNode, bJ as OoxmlContentControlEndPropertiesNode, bK as OoxmlContentControlLidNode, bL as OoxmlContentControlListItemNode, a2 as OoxmlContentControlNode, bM as OoxmlContentControlPropertiesNode, bN as OoxmlContentControlStoreMappedDataAsNode, bO as OoxmlContentControlTextNode, bP as OoxmlContentControlUncheckedStateNode, av as OoxmlContinuationSeparatorNode, bQ as OoxmlDocumentNode, aw as OoxmlEndnotesNode, bR as OoxmlExternalTarget, ax as OoxmlFootnotesNode, V as OoxmlGenericElementNode, bS as OoxmlGenericExtensionAttribute, bT as OoxmlHyperlinkNode, bU as OoxmlInvariantIssueCode, bV as OoxmlKnownNodeAttribute, bW as OoxmlNamespaceBinding, U as OoxmlNodeId, bX as OoxmlNodeIdentityRules, au as OoxmlNoteNode, ay as OoxmlNoteRefNode, az as OoxmlNoteReferenceNode, X as OoxmlPackageLimits, Y as OoxmlPackageRejection, bY as OoxmlPackageResult, bZ as OoxmlParagraphPropertiesNode, b_ as OoxmlPartMetadata, b$ as OoxmlReadRejection, c0 as OoxmlReadResult, c1 as OoxmlRunNode, c2 as OoxmlRunPropertiesNode, aA as OoxmlSeparatorNode, c3 as OoxmlTabNode, c4 as OoxmlTextElementNode, c5 as OoxmlTextNode, c6 as OoxmlWmlValAttribute, c7 as OoxmlXmlSpaceAttribute, c8 as OverrideRecord, c9 as RelationshipError, ca as RelationshipSetResult, cb as RelationshipTargetResolver, cc as ResolveResult, cd as ResolvedRelationship, d as ReviewCustomItem, g as ReviewRevisionKind, h as RevisionAddress, Z as RevisionBatchEntry, _ as RevisionBatchResult, $ as RevisionBatchSkipReason, ce as SetLegacyCheckboxOp, cf as SetLegacyDropdownOp, cg as SetTextFormFieldDefaultOp, a8 as SourceCrop, ch as TABLE_BORDER_STYLES, ci as TabStopWrite, aG as TableBorderStyle, cj as TargetMode, ck as TextFormFieldOptions, cl as TextFormFieldRange, cm as TextFormFieldType, cn as TreeDocOpKind, co as TreeOpEffect, cp as W15_NAMESPACE_URI, cq as WML_NAMESPACE_URI, cr as XMLNS_NAMESPACE_URI, cs as XML_NAMESPACE_URI, ct as XmlLimits, cu as XmlNode, cv as XmlRejection, cw as XmlResult, cx as ZipLimits, cy as ZipReadResult, cz as ZipRejection, cA as allocateContentControlId, cB as asciiFold, cC as buildContentTypeIndex, cD as buildRelationshipSet, cE as childElements, cF as commentAnchorsOfStory, cG as commentsOfPart, cH as contentControlContentChildren, cI as contentControlContentNodeOf, cJ as contentControlEndPropertiesNodeOf, cK as contentControlLevelOf, cL as contentControlPropertiesNodeOf, cM as contentControlPropertiesOf, cN as contentControlTextOf, cO as contentControlsIn, cP as detectDuplicateNames, cQ as extensionKey, cR as findContentControl, cS as findElement, cT as firstReviewRange, cU as flattenContentControls, cV as hasAnyComment, cW as hyperlinkAnchorOf, cX as hyperlinkRelationshipIdOf, cY as hyperlinkTargetOf, cZ as isContentControlContentNode, c_ as isContentControlNode, c$ as isContentControlWrapper, d0 as isContentRevisionKind, d1 as isHyperlinkNode, d2 as isRangeMarkerKind, d3 as isValidMime, d4 as legacyCheckboxFieldsOf, d5 as lockForbidsEdit, d6 as lockForbidsRemoval, d7 as normalizePartName, d8 as orderedContentControlProperties, d9 as parseContentControlId, da as partNameKey, db as planRevisionBatch, dc as projectDrawing, dd as readOnOffChild, de as readOoxmlPackage, df as readOoxmlPart, dg as readXml, dh as readZip, di as resolveContentControlLock, dj as resolveContentType, dk as resolveImageRelationship, dl as resolveInternalTarget, dm as resolveRelationship, dn as reviewItemKey, dp as reviewItemRanges, dq as textContent, dr as textFormFieldsOf, ds as threadStateOfPart, dt as validateExternalTarget, du as withPart, dv as writeOoxmlPackage, dw as writeZip } from './types-barrel-DN_-gaRX.js';
5
- import { c as TreeModelChange, f as TreeDocumentStore, T as TreePackageStore, S as StoryScope } from './tree-package-fragment-BIyGh6L8.js';
6
- export { k as AtomicNoteSpan, C as CascadeDeletedNoteReferencesOptions, D as DEFAULT_MAX_EDITABLE_STORY_PARTS, l as DrawingPropertyIdResult, F as FragmentPasteInput, j as FragmentPasteResult, m as HeaderFooterKind, n as HeaderFooterLifecycleImpact, o as HeaderFooterLifecycleOp, p as HeaderFooterLifecycleRejection, q as HeaderFooterLifecycleResult, d as HeaderFooterParts, e as HeaderFooterSectionResolution, s as HeaderFooterSlotMeta, H as HeaderFooterVariant, t as HistoryCaptureKind, b as HistoryGroup, M as MAX_FRAGMENT_DECODED_BYTES, u as MAX_NOTES_PER_PART, v as MAX_NOTE_REFERENCE_PARTS, w as MAX_NOTE_REFERENCE_SCAN, x as NOTE_ATOM_CHAR, y as NOTE_CONTINUATION_SEPARATOR_ID, z as NOTE_ID_MAX, B as NOTE_ID_MIN, E as NOTE_SEPARATOR_ID, G as NoteDiagnostic, J as NoteDiagnosticCode, N as NoteKind, K as NoteLifecycleImpact, L as NoteLifecycleOp, O as NoteLifecycleOptions, P as NoteLifecycleRejection, Q as NoteLifecycleResult, U as NoteReferenceHit, V as NoteReferenceScanBudget, W as NoteType, X as PackageTransactResult, Y as RemotePackageAttribution, g as SelectionMark, Z as StoryResolveResult, a as StoryTargetRejection, _ as TreeDocumentStoreOptions, $ as TreePackageStoreOptions, a0 as TreeStoryRef, h as TreeTransactOptions, a1 as TreeTransactResult, a2 as TreeTransactionContext, a3 as allocateDrawingPropertyId, a4 as allocateNoteId, a5 as applyFragmentPaste, a6 as applyHeaderFooterLifecycleOp, a7 as applyNoteLifecycleOp, a8 as atomicNoteSpansOf, a9 as cascadeDeletedNoteReferences, aa as collectNoteReferences, ab as collectPackageNoteReferences, ac as collectSectionPropertyNodes, ad as createNoteReferenceScanBudget, ae as customMarkFollows, af as diagnoseNoteReferences, ag as findNoteById, ah as formatNoteScopeId, ai as isContinuationSeparatorNode, aj as isEndnotesNode, ak as isFootnotesNode, al as isHeaderFooterLifecycleOp, am as isNormalNote, an as isNoteAtomNode, ao as isNoteLifecycleOp, ap as isNoteNode, aq as isNoteRefNode, ar as isNoteReferenceNode, as as isSeparatorNode, at as normalNoteIds, au as noteAtomText, av as noteIdOf, aw as noteKindOf, ax as noteRefKindOf, ay as noteReferenceKindOf, az as noteTypeOf, aA as notesOf, aB as notesPartHasId, aC as observeHistoryGroup, aD as parseNoteId, aE as parseNoteScopeId, r as reportHistoryGroup, aF as resolveHeaderFooterParts, aG as resolveHeaderFooterPartsBySection, aH as resolveHeaderFooterResolutionBySection, aI as resolveNotesPart, aJ as withBinaryPart, aK as withEmbeddedImage, aL as withoutUnreferencedImagePart } from './tree-package-fragment-BIyGh6L8.js';
7
- export { D as DEFAULT_OMML_LIMITS, E as EquationExpression, L as LinearMathOmmlResult, a as LinearMathParseResult, b as LinearMathRejection, c as OFFICE_MATH_NAMESPACE_URI, O as OmmlEquationProjection, d as OmmlLimits, e as equationExpressionToLinearMath, l as linearMathToOmml, p as parseLinearMath, f as projectOmmlEquation } from './omml-equation-BY7OdfGY.js';
8
- import { I as InsertCustomNodeWrite, C as CustomNodeWriteResult } from './custom-node-writes-77rvPW2-.js';
9
- export { b as BookmarkAnchor, B as BookmarkIndex, c as CustomNodePayloadRead, d as CustomNodePayloadWrite, a as CustomNodeSweepOutcome, e as CustomNodeSweepResult, f as CustomNodeWriteRejection, D as DocumentTrackingSettings, E as EmbeddedFont, F as FontStyleKey, L as ListKind, M as MAX_CUSTOM_NODE_LABEL_LENGTH, g as MAX_CUSTOM_NODE_PAYLOAD_LENGTH, N as NO_TRACKING_SETTINGS, R as ReadEmbeddedFontsOptions, h as buildBookmarkIndex, i as customNodePayloadsByControl, j as customNodePayloadsOf, k as deobfuscateFont, l as ensureListDefinition, m as ensureNumberingLevel, n as insertCustomNodeWrite, r as readEmbeddedFonts, o as readTrackingSettings, p as removeCustomNodeWrite, s as sweepCustomNodePayloads } from './custom-node-writes-77rvPW2-.js';
10
- export { c as collectFlowBlocks, a as commentBodyText, b as commentInitials, d as contentControlContentOf, e as deepParagraphOrderOfPart, i as isContentControl, f as isContentControlContent, p as paragraphOrderOfPart, w as walkAllStoryParagraphs, g as walkParagraphInline, h as walkStoryBlocks } from './review-paragraph-order-B0BP_wJP.js';
11
- export { D as DocumentProperties, E as EnsuredHyperlinkRelationship, a as HeadlessDocumentRejection, H as HeadlessDocumentView, b as HeadlessThemeFonts, O as OpenHeadlessDocumentResult, c as authorableHyperlinkTarget, e as ensureHyperlinkRelationship, h as headlessViewOfStore, o as openHeadlessDocument, r as relationshipTargetIn } from './headless-document-view-Cc3fFWhv.js';
12
- export { A as AuthoredNoteProperties, D as DEFAULT_ENDNOTE_PROPERTIES, a as DEFAULT_FOOTNOTE_PROPERTIES, E as EndnotePosition, F as FootnotePosition, N as NoteNumRestart, R as ResolvedEndnoteProperties, b as ResolvedFootnoteProperties, c as authoredDocumentEndnoteProperties, d as authoredDocumentFootnoteProperties, e as authoredEndnotePropertiesFromSectPr, f as authoredFootnotePropertiesFromSectPr, i as isLegalEndnotePosition, g as isLegalFootnotePosition, h as isLegalNumRestart, p as parseAuthoredNoteProperties, r as resolveEndnoteProperties, j as resolveFootnoteProperties, s as settingsPartOf } from './note-properties-DMfKK3QU.js';
13
- export { a as DocumentProtectionEdit, D as DocumentProtectionState, N as NO_DOCUMENT_PROTECTION, r as readDocumentProtection } from './document-protection-CYIjO-li.js';
1
+ import { e as ResourceLimits } from './image-resources-DfagDguq.js';
2
+ export { C as CreateImageResourceCacheOptions, D as DEFAULT_IMAGE_RESOURCE_LIMITS, f as DEFAULT_LIMITS, H as HARD_CEILINGS, g as IMAGE_RESOURCE_HARD_CEILINGS, a as ImageDecodePort, I as ImageResourceLimits, h as ImageResourceLookup, b as ImageResourceState, M as MAX_SVG_SNIFF_BYTES, P as PreservedImageMime, R as RenderableImageMime, S as SupportedImageMime, V as ValidatedImageBytesHandle, i as ValidatedRasterHeader, j as createImageResourceCache, k as hasBoundedSvgRoot, l as imageResourceLookupFor, m as liveDrawingReferenceCount, r as resolveImageResourceLimits, n as resolveLimits, s as sniffImageMime, o as validateGifHeader, p as validateJpegHeader, q as validatePngHeader, v as validateRasterHeader } from './image-resources-DfagDguq.js';
3
+ import { O as OoxmlPart, N as OoxmlNode, aM as OoxmlInvariantResult, at as OoxmlParagraphNode, aN as OoxmlFldCharNode, aO as OoxmlFldSimpleNode, aP as OoxmlInstrTextNode, aQ as OoxmlInvariantIssue, Z as OoxmlElement, W as TreeDocOp, a5 as TreeOpRejection, aR as TreeOpResult, Q as OoxmlPackage, aS as RelationshipRecord, aT as OoxmlHardBreakNode, aU as OoxmlAttribute, X as OoxmlProperty, f as ReviewRange, R as ReviewModelInput, a as ReviewItem, C as CommentRecord, e as ReviewPosition, aV as CommentThreadState, c as ReviewCommentItem, b as ReviewRevisionItem, aB as DrawingTreeDocOp, aC as ImpactClass, aa as ImageWrapTarget } from './types-barrel-BO73JqHG.js';
4
+ export { aW as ACCEPTED_PARAGRAPH_PROPERTIES, aX as ACCEPTED_RUN_PROPERTIES, aY as CONTENT_CONTROL_ID_MAX, aZ as CONTENT_CONTROL_PROPERTY_ORDER, a_ as CommentAnchor, a$ as CommentPosition, b0 as CommitTextFormFieldOp, b1 as ContentControlCheckbox, b2 as ContentControlCheckboxState, b3 as ContentControlDataBinding, b4 as ContentControlDateFormat, b5 as ContentControlEntry, b6 as ContentControlKind, b7 as ContentControlLevel, b8 as ContentControlListItem, b9 as ContentControlLock, ba as ContentControlProperties, bb as ContentTypeError, bc as ContentTypeIndex, bd as ContentTypeRecords, be as DEFAULT_OOXML_PACKAGE_LIMITS, bf as DEFAULT_ZIP_LIMITS, bg as DefaultRecord, bh as DeleteTextOp, aI as DrawingImageEffects, a9 as DrawingKind, ac as DrawingLocks, ab as DrawingPositionInput, bi as HYPERLINK_RELATIONSHIP_TYPE, bj as HyperlinkKind, bk as HyperlinkTarget, bl as IMAGE_RELATIONSHIP_TYPE, aE as IMAGE_WRAP_TARGETS, bm as ImageRelationshipResolution, bn as IndexResult, bo as InsertBuildingBlockOp, bp as InsertTextOp, bq as LegacyCheckboxFieldRange, br as MAX_CONTENT_CONTROLS_PER_PART, bs as MAX_CONTENT_CONTROL_NESTING, bt as NameRejection, bu as NameResult, bv as OFFICE_RELATIONSHIP_NAMESPACE_URI, bw as OOXML_NODE_IDENTITY_RULES, bx as OoxmlBodyNode, by as OoxmlBookmarkEndNode, bz as OoxmlBookmarkStartNode, bA as OoxmlContentControlCalendarNode, bB as OoxmlContentControlCheckboxNode, bC as OoxmlContentControlCheckedNode, bD as OoxmlContentControlCheckedStateNode, bE as OoxmlContentControlComboBoxNode, $ as OoxmlContentControlContentNode, bF as OoxmlContentControlDataBindingNode, bG as OoxmlContentControlDateFormatNode, bH as OoxmlContentControlDateNode, bI as OoxmlContentControlDropDownListNode, bJ as OoxmlContentControlEndPropertiesNode, bK as OoxmlContentControlLidNode, bL as OoxmlContentControlListItemNode, _ as OoxmlContentControlNode, bM as OoxmlContentControlPropertiesNode, bN as OoxmlContentControlStoreMappedDataAsNode, bO as OoxmlContentControlTextNode, bP as OoxmlContentControlUncheckedStateNode, av as OoxmlContinuationSeparatorNode, bQ as OoxmlDocumentNode, aw as OoxmlEndnotesNode, bR as OoxmlExternalTarget, ax as OoxmlFootnotesNode, V as OoxmlGenericElementNode, bS as OoxmlGenericExtensionAttribute, bT as OoxmlHyperlinkNode, bU as OoxmlInvariantIssueCode, bV as OoxmlKnownNodeAttribute, bW as OoxmlNamespaceBinding, U as OoxmlNodeId, bX as OoxmlNodeIdentityRules, au as OoxmlNoteNode, ay as OoxmlNoteRefNode, az as OoxmlNoteReferenceNode, a1 as OoxmlPackageLimits, Y as OoxmlPackageRejection, bY as OoxmlPackageResult, bZ as OoxmlParagraphPropertiesNode, b_ as OoxmlPartMetadata, b$ as OoxmlReadRejection, c0 as OoxmlReadResult, c1 as OoxmlRunNode, c2 as OoxmlRunPropertiesNode, aA as OoxmlSeparatorNode, c3 as OoxmlTabNode, c4 as OoxmlTextElementNode, c5 as OoxmlTextNode, c6 as OoxmlWmlValAttribute, c7 as OoxmlXmlSpaceAttribute, c8 as OverrideRecord, c9 as RelationshipError, ca as RelationshipSetResult, cb as RelationshipTargetResolver, cc as ResolveResult, cd as ResolvedRelationship, d as ReviewCustomItem, g as ReviewRevisionKind, h as RevisionAddress, a2 as RevisionBatchEntry, a3 as RevisionBatchResult, a4 as RevisionBatchSkipReason, ce as SetLegacyCheckboxOp, cf as SetLegacyDropdownOp, cg as SetTextFormFieldDefaultOp, a8 as SourceCrop, ch as TABLE_BORDER_STYLES, ci as TabStopWrite, aG as TableBorderStyle, cj as TargetMode, ck as TextFormFieldOptions, cl as TextFormFieldRange, cm as TextFormFieldType, cn as TreeDocOpKind, co as TreeOpEffect, cp as W15_NAMESPACE_URI, cq as WML_NAMESPACE_URI, cr as XMLNS_NAMESPACE_URI, cs as XML_NAMESPACE_URI, ct as XmlLimits, cu as XmlNode, cv as XmlRejection, cw as XmlResult, cx as ZipLimits, cy as ZipReadResult, cz as ZipRejection, cA as allocateContentControlId, cB as asciiFold, cC as buildContentTypeIndex, cD as buildRelationshipSet, cE as childElements, cF as commentAnchorsOfStory, cG as commentsOfPart, cH as contentControlContentChildren, cI as contentControlContentNodeOf, cJ as contentControlEndPropertiesNodeOf, cK as contentControlLevelOf, cL as contentControlPropertiesNodeOf, cM as contentControlPropertiesOf, cN as contentControlTextOf, cO as contentControlsIn, cP as detectDuplicateNames, cQ as extensionKey, cR as findContentControl, cS as findElement, cT as firstReviewRange, cU as flattenContentControls, cV as hasAnyComment, cW as hyperlinkAnchorOf, cX as hyperlinkRelationshipIdOf, cY as hyperlinkTargetOf, cZ as isContentControlContentNode, c_ as isContentControlNode, c$ as isContentControlWrapper, d0 as isContentRevisionKind, d1 as isHyperlinkNode, d2 as isRangeMarkerKind, d3 as isValidMime, d4 as legacyCheckboxFieldsOf, d5 as lockForbidsEdit, d6 as lockForbidsRemoval, d7 as normalizePartName, d8 as orderedContentControlProperties, d9 as parseContentControlId, da as partNameKey, db as planRevisionBatch, dc as projectDrawing, dd as readOnOffChild, de as readOoxmlPackage, df as readOoxmlPart, dg as readXml, dh as readZip, di as resolveContentControlLock, dj as resolveContentType, dk as resolveImageRelationship, dl as resolveInternalTarget, dm as resolveRelationship, dn as reviewItemKey, dp as reviewItemRanges, dq as textContent, dr as textFormFieldsOf, ds as threadStateOfPart, dt as validateExternalTarget, du as withPart, dv as writeOoxmlPackage, dw as writeZip } from './types-barrel-BO73JqHG.js';
5
+ import { b as TreeModelChange, f as TreeDocumentStore, T as TreePackageStore, S as StoryScope } from './tree-package-fragment-YPyYC1aD.js';
6
+ export { k as AtomicNoteSpan, C as CascadeDeletedNoteReferencesOptions, D as DEFAULT_MAX_EDITABLE_STORY_PARTS, l as DrawingPropertyIdResult, F as FragmentPasteInput, j as FragmentPasteResult, m as HeaderFooterKind, n as HeaderFooterLifecycleImpact, o as HeaderFooterLifecycleOp, p as HeaderFooterLifecycleRejection, q as HeaderFooterLifecycleResult, c as HeaderFooterParts, d as HeaderFooterSectionResolution, s as HeaderFooterSlotMeta, e as HeaderFooterVariant, t as HistoryCaptureKind, H as HistoryGroup, M as MAX_FRAGMENT_DECODED_BYTES, u as MAX_NOTES_PER_PART, v as MAX_NOTE_REFERENCE_PARTS, w as MAX_NOTE_REFERENCE_SCAN, x as NOTE_ATOM_CHAR, y as NOTE_CONTINUATION_SEPARATOR_ID, z as NOTE_ID_MAX, B as NOTE_ID_MIN, E as NOTE_SEPARATOR_ID, G as NoteDiagnostic, J as NoteDiagnosticCode, N as NoteKind, K as NoteLifecycleImpact, L as NoteLifecycleOp, O as NoteLifecycleOptions, P as NoteLifecycleRejection, Q as NoteLifecycleResult, U as NoteReferenceHit, V as NoteReferenceScanBudget, W as NoteType, X as PackageTransactResult, Y as RemotePackageAttribution, g as SelectionMark, Z as StoryResolveResult, a as StoryTargetRejection, _ as TreeDocumentStoreOptions, $ as TreePackageStoreOptions, a0 as TreeStoryRef, h as TreeTransactOptions, a1 as TreeTransactResult, a2 as TreeTransactionContext, a3 as allocateDrawingPropertyId, a4 as allocateNoteId, a5 as applyFragmentPaste, a6 as applyHeaderFooterLifecycleOp, a7 as applyNoteLifecycleOp, a8 as atomicNoteSpansOf, a9 as cascadeDeletedNoteReferences, aa as collectNoteReferences, ab as collectPackageNoteReferences, ac as collectSectionPropertyNodes, ad as createNoteReferenceScanBudget, ae as customMarkFollows, af as diagnoseNoteReferences, ag as findNoteById, ah as formatNoteScopeId, ai as isContinuationSeparatorNode, aj as isEndnotesNode, ak as isFootnotesNode, al as isHeaderFooterLifecycleOp, am as isNormalNote, an as isNoteAtomNode, ao as isNoteLifecycleOp, ap as isNoteNode, aq as isNoteRefNode, ar as isNoteReferenceNode, as as isSeparatorNode, at as normalNoteIds, au as noteAtomText, av as noteIdOf, aw as noteKindOf, ax as noteRefKindOf, ay as noteReferenceKindOf, az as noteTypeOf, aA as notesOf, aB as notesPartHasId, aC as observeHistoryGroup, aD as parseNoteId, aE as parseNoteScopeId, r as reportHistoryGroup, aF as resolveHeaderFooterParts, aG as resolveHeaderFooterPartsBySection, aH as resolveHeaderFooterResolutionBySection, aI as resolveNotesPart, aJ as withBinaryPart, aK as withEmbeddedImage, aL as withoutUnreferencedImagePart } from './tree-package-fragment-YPyYC1aD.js';
7
+ export { D as DEFAULT_OMML_LIMITS, E as EquationExpression, L as LinearMathOmmlResult, a as LinearMathParseResult, b as LinearMathRejection, c as OFFICE_MATH_NAMESPACE_URI, O as OmmlEquationProjection, d as OmmlLimits, e as equationExpressionToLinearMath, l as linearMathToOmml, p as parseLinearMath, f as projectOmmlEquation } from './omml-equation-CZ6IG2ja.js';
8
+ import { I as InsertCustomNodeWrite, C as CustomNodeWriteResult } from './custom-node-writes-Cy9imOjA.js';
9
+ export { b as BookmarkAnchor, B as BookmarkIndex, c as CustomNodePayloadRead, d as CustomNodePayloadWrite, a as CustomNodeSweepOutcome, e as CustomNodeSweepResult, f as CustomNodeWriteRejection, D as DocumentTrackingSettings, E as EmbeddedFont, F as FontStyleKey, L as ListKind, M as MAX_CUSTOM_NODE_LABEL_LENGTH, g as MAX_CUSTOM_NODE_PAYLOAD_LENGTH, N as NO_TRACKING_SETTINGS, R as ReadEmbeddedFontsOptions, h as buildBookmarkIndex, i as customNodePayloadsByControl, j as customNodePayloadsOf, k as deobfuscateFont, l as ensureListDefinition, m as ensureNumberingLevel, n as insertCustomNodeWrite, r as readEmbeddedFonts, o as readTrackingSettings, p as removeCustomNodeWrite, s as sweepCustomNodePayloads } from './custom-node-writes-Cy9imOjA.js';
10
+ export { c as collectFlowBlocks, a as commentBodyText, b as commentInitials, d as contentControlContentOf, e as deepParagraphOrderOfPart, i as isContentControl, f as isContentControlContent, p as paragraphOrderOfPart, w as walkAllStoryParagraphs, g as walkParagraphInline, h as walkStoryBlocks } from './review-paragraph-order-BwhRT264.js';
11
+ export { D as DocumentProperties, E as EnsuredHyperlinkRelationship, a as HeadlessDocumentRejection, H as HeadlessDocumentView, b as HeadlessThemeFonts, O as OpenHeadlessDocumentResult, c as authorableHyperlinkTarget, e as ensureHyperlinkRelationship, h as headlessViewOfStore, o as openHeadlessDocument, r as relationshipTargetIn } from './headless-document-view-R9bzzepb.js';
12
+ export { A as AuthoredNoteProperties, D as DEFAULT_ENDNOTE_PROPERTIES, a as DEFAULT_FOOTNOTE_PROPERTIES, E as EndnotePosition, F as FootnotePosition, N as NoteNumRestart, R as ResolvedEndnoteProperties, b as ResolvedFootnoteProperties, c as authoredDocumentEndnoteProperties, d as authoredDocumentFootnoteProperties, e as authoredEndnotePropertiesFromSectPr, f as authoredFootnotePropertiesFromSectPr, i as isLegalEndnotePosition, g as isLegalFootnotePosition, h as isLegalNumRestart, p as parseAuthoredNoteProperties, r as resolveEndnoteProperties, j as resolveFootnoteProperties, s as settingsPartOf } from './note-properties-CmfvOJsi.js';
13
+ export { a as DocumentProtectionEdit, D as DocumentProtectionState, N as NO_DOCUMENT_PROTECTION, r as readDocumentProtection } from './document-protection-Bp19Ad4I.js';
14
14
  import './editor-scope-OHPwVQ5l.js';
15
15
 
16
16
  /**
@@ -302,11 +302,8 @@ declare function collectNodeIds(part: OoxmlPart): Set<string>;
302
302
  * can never coincide, and the counter skips anything already taken so repeated edits in one
303
303
  * session stay unique.
304
304
  *
305
- * The collision check only sees nodes that are IN the tree. A caller that clones a subtree
306
- * and attaches it LATER — after other ops have replaced the root and reset the counter —
307
- * must mint in its own `family`: two `new`-family allocators over different roots can hand
308
- * out the same id, one to a detached clone and one to the tree, and the clone's insertion
309
- * then fails the duplicate-id invariant.
305
+ * Allocators share reservations across edited roots and restored roots. Preview edits,
306
+ * detached nodes, and undo branches must not reuse an identity that collaboration retains.
310
307
  *
311
308
  * Checks the part's node index directly rather than copying every id into a fresh set: the
312
309
  * copy was O(document) per op, and an allocator is created for every op.
@@ -360,7 +357,7 @@ declare function paragraphTextOf(part: OoxmlPart, paragraphId: string): string |
360
357
  * Identity is `(kind, id)` plus version and NEVER registration order, so two bundles contributing
361
358
  * the same command resolve deterministically regardless of which loaded first.
362
359
  */
363
- declare const ID_KINDS: readonly ["extension", "capability", "command", "query", "schema", "dependencyKey", "runtimePort", "result", "origin"];
360
+ declare const ID_KINDS: readonly ['extension', 'capability', 'command', 'query', 'schema', 'dependencyKey', 'runtimePort', 'result', 'origin'];
364
361
  /** One of {@link ID_KINDS}. */
365
362
  /** One of {@link ID_KINDS} — which sort of thing an identifier names. */
366
363
  type IdKind = (typeof ID_KINDS)[number];
@@ -909,63 +906,63 @@ interface ComparatorDescriptor {
909
906
  declare const COMPARATORS: {
910
907
  readonly authoredState: {
911
908
  readonly id: "dev.docx-editor.core.comparator.authored-state";
912
- readonly mode: "canonical-exact";
909
+ readonly mode: 'canonical-exact';
913
910
  readonly ephemera: readonly ["revision", "provenance", "producedAt", "commitId"];
914
- readonly note: "canonical normalized authored records; ephemera excluded";
911
+ readonly note: 'canonical normalized authored records; ephemera excluded';
915
912
  };
916
913
  readonly anchor: {
917
914
  readonly id: "dev.docx-editor.core.comparator.anchor";
918
- readonly mode: "exact";
915
+ readonly mode: 'exact';
919
916
  readonly ephemera: readonly [];
920
- readonly note: "internal anchor identity/affinity compares exactly";
917
+ readonly note: 'internal anchor identity/affinity compares exactly';
921
918
  };
922
919
  readonly yjsStateVector: {
923
920
  readonly id: "dev.docx-editor.core.comparator.yjs-state-vector";
924
- readonly mode: "sync-optimization-only";
921
+ readonly mode: 'sync-optimization-only';
925
922
  readonly ephemera: readonly [];
926
- readonly note: "exchange optimization only; never proves update or delete-set coverage";
923
+ readonly note: 'exchange optimization only; never proves update or delete-set coverage';
927
924
  };
928
925
  readonly shapedRun: {
929
926
  readonly id: "dev.docx-editor.core.comparator.shaped-run";
930
- readonly mode: "exact";
927
+ readonly mode: 'exact';
931
928
  readonly ephemera: readonly [];
932
- readonly note: "glyph ids, clusters, and fixed-point advances compare exactly";
929
+ readonly note: 'glyph ids, clusters, and fixed-point advances compare exactly';
933
930
  };
934
931
  readonly paginationFingerprint: {
935
932
  readonly id: "dev.docx-editor.core.comparator.pagination-fingerprint";
936
- readonly mode: "exact";
933
+ readonly mode: 'exact';
937
934
  readonly ephemera: readonly [];
938
- readonly note: "page/column boundaries, break causes, fixed-point geometry compare exactly";
935
+ readonly note: 'page/column boundaries, break causes, fixed-point geometry compare exactly';
939
936
  };
940
937
  readonly semanticTree: {
941
938
  readonly id: "dev.docx-editor.core.comparator.semantic-tree";
942
- readonly mode: "exact";
939
+ readonly mode: 'exact';
943
940
  readonly ephemera: readonly [];
944
- readonly note: "reading order, roles, headings, alt text compare exactly";
941
+ readonly note: 'reading order, roles, headings, alt text compare exactly';
945
942
  };
946
943
  readonly hitTest: {
947
944
  readonly id: "dev.docx-editor.core.comparator.hit-test";
948
- readonly mode: "exact";
945
+ readonly mode: 'exact';
949
946
  readonly ephemera: readonly [];
950
- readonly note: "resolved hit target and cluster affinity compare exactly";
947
+ readonly note: 'resolved hit target and cluster affinity compare exactly';
951
948
  };
952
949
  readonly pdfSemantics: {
953
950
  readonly id: "dev.docx-editor.core.comparator.pdf-semantics";
954
- readonly mode: "canonical-exact";
951
+ readonly mode: 'canonical-exact';
955
952
  readonly ephemera: readonly ["objectNumber", "producer", "creationDate", "modDate", "subsetTag"];
956
- readonly note: "canonical semantic PDF objects; container ephemera excluded";
953
+ readonly note: 'canonical semantic PDF objects; container ephemera excluded';
957
954
  };
958
955
  readonly rasterCheckpoint: {
959
956
  readonly id: "dev.docx-editor.core.comparator.raster-checkpoint";
960
- readonly mode: "tolerance";
957
+ readonly mode: 'tolerance';
961
958
  readonly ephemera: readonly [];
962
- readonly note: "documented unavoidable raster comparison; explicit tolerance only";
959
+ readonly note: 'documented unavoidable raster comparison; explicit tolerance only';
963
960
  };
964
961
  readonly benchmarkEvidence: {
965
962
  readonly id: "dev.docx-editor.core.comparator.benchmark-evidence";
966
- readonly mode: "sync-optimization-only";
963
+ readonly mode: 'sync-optimization-only';
967
964
  readonly ephemera: readonly [];
968
- readonly note: "diagnostic evidence, not an equivalence basis";
965
+ readonly note: 'diagnostic evidence, not an equivalence basis';
969
966
  };
970
967
  };
971
968
  /** Which frozen comparator to use. */
@@ -1267,7 +1264,7 @@ declare function containsCssFetch(value: string): boolean;
1267
1264
  * Rendered INERT by default rather than stripped — removing it would be a lossless-preservation
1268
1265
  * failure, so it is carried and never acted on.
1269
1266
  */
1270
- declare const INERT_EXECUTABLE_KINDS: readonly ["field-dde", "field-include", "macro", "activex", "ole", "embedded-object", "executable-relationship"];
1267
+ declare const INERT_EXECUTABLE_KINDS: readonly ['field-dde', 'field-include', 'macro', 'activex', 'ole', 'embedded-object', 'executable-relationship'];
1271
1268
  /** One of {@link INERT_EXECUTABLE_KINDS}. */
1272
1269
  /** One of {@link INERT_EXECUTABLE_KINDS} — content carried but never executed. */
1273
1270
  type InertExecutableKind = (typeof INERT_EXECUTABLE_KINDS)[number];
package/dist/store.js CHANGED
@@ -1 +1 @@
1
- export{m as Budget,l as BudgetError,D as COMPARATORS,o as CancellationController,n as CancellationError,P as DEFAULT_MAX_EDITABLE_STORY_PARTS,r as DeterministicClock,y as DeterministicMemoryMeter,d as ID_KINDS,w as LIMIT_KEYS,v as LIMIT_SPECS,da as MAX_CUSTOM_NODE_LABEL_LENGTH,ca as MAX_CUSTOM_NODE_PAYLOAD_LENGTH,M as MAX_FRAGMENT_DECODED_BYTES,q as PortRegistry,p as PortResolutionError,j as RegistryError,Da as SEARCH_MATCH_LIMIT,Ca as SEARCH_QUERY_MAX,s as SequentialIdentity,O as TreeDocumentStore,Q as TreePackageStore,W as addComment,$ as addPackageComment,N as applyFragmentPaste,z as assertLimitInvariants,f as assertValidId,t as beginOperation,A as canonicalize,za as collectReviewItems,ta as commentBodyText,ua as commentInitials,ya as commentItemsOf,Z as commentPartNameOf,_ as commentsExtendedPartNameOf,E as compareArtifacts,h as compareSemVer,ha as customNodePayloadsByControl,ia as customNodePayloadsOf,ba as deletePackageComments,u as endOperation,K as extractFragmentPackage,Ha as findOccurrences,F as fingerprint,oa as firstReviewRange,Ea as foldCase,Y as hasCommentPart,I as hashAuthored,La as headlessViewOfStore,ea as insertCustomNodeWrite,ja as insertPackageCustomNode,Ga as isSearchableQuery,e as isValidId,Fa as isWholeWord,Ba as linkRevisionReplies,va as locateSites,x as makeLimitCounter,Ia as materializeGlossaryPlaceholders,L as mergeFragmentIntoPackage,V as nextCommentId,Ka as openHeadlessDocument,g as parseSemVer,Ja as planRevisionBatch,fa as removeCustomNodeWrite,ka as removePackageCustomNode,H as replayFixture,k as resolve,ma as reviewItemKey,na as reviewItemRanges,xa as revisionItemsOf,i as satisfies,X as setCommentResolved,aa as setPackageCommentResolved,B as stableHash,ga as sweepCustomNodePayloads,G as validateFixture}from'./chunk-XMWH2R23.js';export{wg as ACCEPTED_PARAGRAPH_PROPERTIES,vg as ACCEPTED_RUN_PROPERTIES,h as ALL_FROZEN_IDS,xg as AUTHORABLE_PARAGRAPH_PROPERTIES,yg as AUTHORABLE_RUN_PROPERTIES,p as BoundedCounter,c as CANONICAL_MUTATION_ORIGINS,ob as CONTENT_CONTROL_ID_MAX,Gb as CONTENT_CONTROL_PROPERTY_ORDER,Ih as CUSTOM_NODE_XPATH_PREFIX,sh as CUSTOM_XML_PROPS_REL,th as CUSTOM_XML_PROPS_TYPE,rh as CUSTOM_XML_REL,G as DANGEROUS_KEYS,uh as DATASTORE_NAMESPACE_URI,Rf as DEFAULT_ENDNOTE_PROPERTIES,Qf as DEFAULT_FOOTNOTE_PROPERTIES,sg as DEFAULT_FORMATTING_DISPLAY_MODE,m as DEFAULT_IMAGE_RESOURCE_LIMITS,j as DEFAULT_LIMITS,Zd as DEFAULT_OMML_LIMITS,Kd as DEFAULT_OOXML_PACKAGE_LIMITS,mh as DEFAULT_VIEW_SETTINGS,Ra as DEFAULT_ZIP_LIMITS,g as DEPENDENCY_KEY_IDS,H as DangerousKeyError,ke as FIELD_ATOM_CHAR,i as HARD_CEILINGS,Qc as HYPERLINK_RELATIONSHIP_TYPE,C as IMAGE_RELATIONSHIP_TYPE,l as IMAGE_RESOURCE_HARD_CEILINGS,Xc as IMAGE_WRAP_TARGETS,S as INERT_EXECUTABLE_KINDS,o as LimitExceededError,nb as MAX_CONTENT_CONTROLS_PER_PART,mb as MAX_CONTENT_CONTROL_NESTING,gc as MAX_NOTES_PER_PART,cg as MAX_NOTE_REFERENCE_PARTS,bg as MAX_NOTE_REFERENCE_SCAN,lc as MAX_STORY_SDT_NESTING,kd as MAX_SVG_SNIFF_BYTES,d as NON_CANONICAL_ORIGINS,Jb as NOTE_ATOM_CHAR,Nb as NOTE_CONTINUATION_SEPARATOR_ID,Lb as NOTE_ID_MAX,Kb as NOTE_ID_MIN,Mb as NOTE_SEPARATOR_ID,Mf as NO_DOCUMENT_PROTECTION,kh as NO_TRACKING_SETTINGS,Yd as OFFICE_MATH_NAMESPACE_URI,Pc as OFFICE_RELATIONSHIP_NAMESPACE_URI,ya as OOXML_NODE_IDENTITY_RULES,b as ORIGIN_IDS,Wa as PAGE_BREAK_CHAR,ca as PrefixAllocator,e as RESULT_IDS,f as RUNTIME_PORT_IDS,aj as TABLE_BORDER_STYLES,rf as TOC_LEVEL_INDENT_TWIPS,Je as TOC_MAX_BOOKMARKS_PER_REFRESH,Ie as TOC_MAX_ENTRIES,Ke as TOC_MAX_FIELD_NESTING,He as TOC_MAX_INSTRUCTION_CHARS,Le as TOC_MAX_PAGE_PASSES,ug as TREE_DOC_OP_KINDS,mf as TWIPS_PER_POINT,ah as W15_NAMESPACE_URI,fa as WML_NAMESPACE_URI,ha as XMLNS_NAMESPACE_URI,ga as XML_NAMESPACE_URI,Ib as allocateContentControlId,yd as allocateDrawingPropertyId,hc as allocateNoteId,Qa as applyEdits,Pf as applyHeaderFooterLifecycleOp,Tg as applyNoteLifecycleOp,uj as applyTreeOp,t as asciiFold,ba as assertValidQName,Fe as atomicFieldSpansOf,fc as atomicNoteSpansOf,If as authorableHyperlinkTarget,Xf as authoredDocumentEndnoteProperties,Wf as authoredDocumentFootnoteProperties,Uf as authoredEndnotePropertiesFromSectPr,Tf as authoredFootnotePropertiesFromSectPr,Bg as authoredProperties,pc as bodyStoryRoot,xf as bookmarkPairNodes,Mh as boundCustomXmlNodeIdOf,Kh as boundCustomXmlNodeIds,Lh as boundCustomXmlNodeIdsInPackage,lf as buildBookmarkIndex,A as buildContentTypeIndex,D as buildRelationshipSet,uf as buildTocContentControl,tf as buildTocEntryParagraph,Gf as buildingBlockGalleryOf,Hf as buildingBlocksForControl,Ff as buildingBlocksOf,ta as canonicalOoxmlFingerprint,Ug as cascadeDeletedNoteReferences,jh as cascadeEmptiedComments,Z as childElements,xc as collectFlowBlocks,Ga as collectNodeIds,fg as collectNoteReferences,hg as collectPackageNoteReferences,yi as collectRevisionSites,de as collectSectionPropertyNodes,rc as collectStoryParagraphs,bh as commentAnchorsOfStory,dh as commentsOfPart,R as containsCssFetch,sb as contentControlContentChildren,wb as contentControlContentNodeOf,vc as contentControlContentOf,vb as contentControlEndPropertiesNodeOf,zb as contentControlLevelOf,ub as contentControlPropertiesNodeOf,yb as contentControlPropertiesOf,Cb as contentControlTextOf,Ab as contentControlsIn,Od as contentTypesPartBytes,vd as createImageResourceCache,Ha as createNodeIdAllocator,dg as createNoteReferenceScanBudget,cc as customMarkFollows,Jh as customNodeBinding,xh as customXmlDataParts,Gh as customXmlLabelXPath,Bh as customXmlNodes,Hh as customXmlPrefixMappings,vh as datastoreItemIdFor,Mi as deepParagraphOrderOfPart,gh as deleteCommentThread,ie as deobfuscateFont,Dc as deriveOoxmlIndexes,Oe as detectBodyTocs,v as detectDuplicateNames,ig as diagnoseNoteReferences,Bf as diffSemanticDigests,zf as digestPart,Dg as directParagraphMarkProperties,Cg as directParagraphProperties,ij as drawingOpImpact,Jf as ensureHyperlinkRelationship,Cf as ensureListDefinition,Df as ensureNumberingLevel,ae as equationExpressionToLinearMath,Q as escapeCssString,M as escapeXml,z as extensionKey,we as fieldAtomText,ve as fieldOnOffAttribute,Bb as findContentControl,yh as findCustomXmlDataPart,Pe as findDetectedToc,Y as findElement,Ja as findNode,kc as findNoteById,tb as flattenContentControls,le as fldCharType,ue as fldSimpleInstr,bb as fnv1a32,Pb as formatNoteScopeId,Hg as formatOwnedRunIds,Qg as formattableRanges,Qi as formsProtectionEnabled,Ef as glossaryPartOf,_a as hardBreakAttributes,Xa as hardBreakKind,Za as hardBreakText,fh as hasAnyComment,ld as hasBoundedSvgRoot,ye as hasLegacyFormFieldData,Ia as hasNode,Sc as hyperlinkAnchorOf,Tc as hyperlinkRelationshipIdOf,Uc as hyperlinkTargetOf,td as imageResourceLookupFor,Bc as indexStyles,jf as inlineControlEndingAt,kf as inlineControlStartingAt,Na as insertChildren,te as instrTextValue,zg as isAuthorableRunProperty,tc as isContentControl,uc as isContentControlContent,qb as isContentControlContentNode,pb as isContentControlNode,rb as isContentControlWrapper,ma as isContentRevisionKind,Xb as isContinuationSeparatorNode,I as isDangerousKey,nj as isDrawingTreeDocOp,Sb as isEndnotesNode,U as isEvaluableField,xe as isFieldChrome,pe as isFldChar,me as isFldCharNode,se as isFldSimple,oe as isFldSimpleNode,Rb as isFootnotesNode,Of as isHeaderFooterLifecycleOp,Rc as isHyperlinkNode,T as isInertExecutable,qe as isInstrText,ne as isInstrTextNode,_f as isLegalEndnotePosition,Ge as isLegalFldCharType,$f as isLegalFootnotePosition,ag as isLegalNumRestart,$b as isNormalNote,ec as isNoteAtomNode,Sg as isNoteLifecycleOp,Tb as isNoteNode,Vb as isNoteRefNode,Ub as isNoteReferenceNode,Ya as isPageBreakNode,qa as isRangeMarkerKind,Wb as isSeparatorNode,oc as isStoryPart,y as isValidMime,$ as isValidNCName,$a as isValidParaId,aa as isValidQName,Xh as legacyCheckboxFieldsOf,be as linearMathToOmml,sd as liveDrawingReferenceCount,Eb as lockForbidsEdit,Fb as lockForbidsRemoval,Fg as mergedFontProperty,Ig as mergedMultiSettingProperty,Jg as mergedParagraphMarkProperties,Eg as mergedProperties,cb as mintParaId,fb as mintedParagraphIdentityAttributes,kg as normalNoteIds,gb as normalizeParagraphIdentity,r as normalizePartName,dc as noteAtomText,Zb as noteIdOf,Yb as noteKindOf,bc as noteRefKindOf,ac as noteReferenceKindOf,_b as noteTypeOf,ic as notesOf,jg as notesPartHasId,J as nullRecord,Dj as observeHistoryGroup,ua as ooxmlTreesEqual,Hb as orderedContentControlProperties,ab as paraIdOf,ff as paragraphOffsetIndex,Li as paragraphOrderOfPart,vj as paragraphTextOf,Ka as parentNodeOf,Sf as parseAuthoredNoteProperties,xb as parseContentControlId,$d as parseLinearMath,Ob as parseNoteId,Qb as parseNoteScopeId,Me as parseTocInstruction,u as partNameKey,wf as planTocEntries,of as points,qf as pointsToTwips,ed as projectDrawing,_d as projectOmmlEquation,Ag as propertyContainer,Ch as readCustomXmlNode,Nf as readDocumentProtection,je as readEmbeddedFonts,ra as readOnOffChild,Ld as readOoxmlPackage,za as readOoxmlPart,lh as readTrackingSettings,nh as readViewSettings,X as readXml,Sa as readZip,Kf as relationshipTargetIn,Pd as relationshipsOf,Rd as relsPartNameFor,Pa as removeNode,Ma as replaceChildren,Oa as replaceNode,Ej as reportHistoryGroup,Db as resolveContentControlLock,B as resolveContentType,Qd as resolveContentTypeOf,Zf as resolveEndnoteProperties,Yf as resolveFootnoteProperties,he as resolveHeaderFooterParts,ge as resolveHeaderFooterPartsBySection,fe as resolveHeaderFooterResolutionBySection,F as resolveImageRelationship,n as resolveImageResourceLimits,w as resolveInternalTarget,k as resolveLimits,eg as resolveNotesPart,E as resolveRelationship,yf as resolveTocRowHeadings,Gg as runAddressRanges,Og as runPropertyEdits,Rg as runsCovering,L as sanitizeHref,V as scrubExport,Ri as sectionProtectsForms,df as segmentsOf,Af as semanticDigest,sa as serializeOoxmlPart,Vf as settingsPartOf,md as sniffImageMime,qc as storyParagraphs,nc as storyRootsOf,Cc as stylesPartOf,_ as textContent,Vh as textFormFieldsOf,qh as textboxStoriesInPart,eh as threadStateOfPart,K as toSafeRecord,vf as tocEntryText,sf as tocLeftIndentTwips,nf as twips,pf as twipsToPoints,db as usedParaIds,jj as validateDrawingOp,x as validateExternalTarget,od as validateGifHeader,pd as validateJpegHeader,wa as validateOoxmlPart,Xd as validatePackageInvariants,nd as validatePngHeader,rd as validateRasterHeader,Bj as validateTreeOp,eb as w14RootPrefix,zc as walkAllStoryParagraphs,Ac as walkParagraphInline,yc as walkStoryBlocks,Bd as withBinaryPart,Sd as withContentTypeOverride,zh as withCustomXmlDataPart,Dh as withCustomXmlNode,Cd as withEmbeddedImage,Nh as withExportedCustomNodes,Wd as withNewPart,Nd as withPart,Vd as withRelationship,Ah as withoutCustomXmlDataPart,Eh as withoutCustomXmlNode,Fh as withoutOrphanCustomXmlNodes,Hd as withoutUnreferencedImagePart,mj as wrapTargetToAnchorSpec,Md as writeOoxmlPackage,Ta as writeZip}from'./chunk-JXL25DRU.js';
1
+ export{m as Budget,l as BudgetError,D as COMPARATORS,o as CancellationController,n as CancellationError,P as DEFAULT_MAX_EDITABLE_STORY_PARTS,r as DeterministicClock,y as DeterministicMemoryMeter,d as ID_KINDS,w as LIMIT_KEYS,v as LIMIT_SPECS,da as MAX_CUSTOM_NODE_LABEL_LENGTH,ca as MAX_CUSTOM_NODE_PAYLOAD_LENGTH,M as MAX_FRAGMENT_DECODED_BYTES,q as PortRegistry,p as PortResolutionError,j as RegistryError,Da as SEARCH_MATCH_LIMIT,Ca as SEARCH_QUERY_MAX,s as SequentialIdentity,O as TreeDocumentStore,Q as TreePackageStore,W as addComment,$ as addPackageComment,N as applyFragmentPaste,z as assertLimitInvariants,f as assertValidId,t as beginOperation,A as canonicalize,za as collectReviewItems,ta as commentBodyText,ua as commentInitials,ya as commentItemsOf,Z as commentPartNameOf,_ as commentsExtendedPartNameOf,E as compareArtifacts,h as compareSemVer,ha as customNodePayloadsByControl,ia as customNodePayloadsOf,ba as deletePackageComments,u as endOperation,K as extractFragmentPackage,Ha as findOccurrences,F as fingerprint,oa as firstReviewRange,Ea as foldCase,Y as hasCommentPart,I as hashAuthored,La as headlessViewOfStore,ea as insertCustomNodeWrite,ja as insertPackageCustomNode,Ga as isSearchableQuery,e as isValidId,Fa as isWholeWord,Ba as linkRevisionReplies,va as locateSites,x as makeLimitCounter,Ia as materializeGlossaryPlaceholders,L as mergeFragmentIntoPackage,V as nextCommentId,Ka as openHeadlessDocument,g as parseSemVer,Ja as planRevisionBatch,fa as removeCustomNodeWrite,ka as removePackageCustomNode,H as replayFixture,k as resolve,ma as reviewItemKey,na as reviewItemRanges,xa as revisionItemsOf,i as satisfies,X as setCommentResolved,aa as setPackageCommentResolved,B as stableHash,ga as sweepCustomNodePayloads,G as validateFixture}from'./chunk-VE7YBFQD.js';export{Hg as ACCEPTED_PARAGRAPH_PROPERTIES,Gg as ACCEPTED_RUN_PROPERTIES,h as ALL_FROZEN_IDS,Ig as AUTHORABLE_PARAGRAPH_PROPERTIES,Jg as AUTHORABLE_RUN_PROPERTIES,p as BoundedCounter,c as CANONICAL_MUTATION_ORIGINS,Eb as CONTENT_CONTROL_ID_MAX,Wb as CONTENT_CONTROL_PROPERTY_ORDER,Ph as CUSTOM_NODE_XPATH_PREFIX,zh as CUSTOM_XML_PROPS_REL,Ah as CUSTOM_XML_PROPS_TYPE,yh as CUSTOM_XML_REL,G as DANGEROUS_KEYS,Bh as DATASTORE_NAMESPACE_URI,ag as DEFAULT_ENDNOTE_PROPERTIES,$f as DEFAULT_FOOTNOTE_PROPERTIES,Dg as DEFAULT_FORMATTING_DISPLAY_MODE,m as DEFAULT_IMAGE_RESOURCE_LIMITS,j as DEFAULT_LIMITS,ie as DEFAULT_OMML_LIMITS,Ud as DEFAULT_OOXML_PACKAGE_LIMITS,th as DEFAULT_VIEW_SETTINGS,Ra as DEFAULT_ZIP_LIMITS,g as DEPENDENCY_KEY_IDS,H as DangerousKeyError,ve as FIELD_ATOM_CHAR,i as HARD_CEILINGS,_c as HYPERLINK_RELATIONSHIP_TYPE,C as IMAGE_RELATIONSHIP_TYPE,l as IMAGE_RESOURCE_HARD_CEILINGS,fd as IMAGE_WRAP_TARGETS,S as INERT_EXECUTABLE_KINDS,o as LimitExceededError,Db as MAX_CONTENT_CONTROLS_PER_PART,Cb as MAX_CONTENT_CONTROL_NESTING,wc as MAX_NOTES_PER_PART,ng as MAX_NOTE_REFERENCE_PARTS,mg as MAX_NOTE_REFERENCE_SCAN,Bc as MAX_STORY_SDT_NESTING,ud as MAX_SVG_SNIFF_BYTES,d as NON_CANONICAL_ORIGINS,Zb as NOTE_ATOM_CHAR,bc as NOTE_CONTINUATION_SEPARATOR_ID,$b as NOTE_ID_MAX,_b as NOTE_ID_MIN,ac as NOTE_SEPARATOR_ID,Xf as NO_DOCUMENT_PROTECTION,rh as NO_TRACKING_SETTINGS,he as OFFICE_MATH_NAMESPACE_URI,Zc as OFFICE_RELATIONSHIP_NAMESPACE_URI,ya as OOXML_NODE_IDENTITY_RULES,b as ORIGIN_IDS,qb as PAGE_BREAK_CHAR,ca as PrefixAllocator,e as RESULT_IDS,f as RUNTIME_PORT_IDS,ij as TABLE_BORDER_STYLES,Cf as TOC_LEVEL_INDENT_TWIPS,Ue as TOC_MAX_BOOKMARKS_PER_REFRESH,Te as TOC_MAX_ENTRIES,Ve as TOC_MAX_FIELD_NESTING,Se as TOC_MAX_INSTRUCTION_CHARS,We as TOC_MAX_PAGE_PASSES,Fg as TREE_DOC_OP_KINDS,xf as TWIPS_PER_POINT,hh as W15_NAMESPACE_URI,fa as WML_NAMESPACE_URI,ha as XMLNS_NAMESPACE_URI,ga as XML_NAMESPACE_URI,Yb as allocateContentControlId,Id as allocateDrawingPropertyId,xc as allocateNoteId,Qa as applyEdits,_f as applyHeaderFooterLifecycleOp,ch as applyNoteLifecycleOp,Bj as applyTreeOp,t as asciiFold,ba as assertValidQName,Qe as atomicFieldSpansOf,vc as atomicNoteSpansOf,Tf as authorableHyperlinkTarget,gg as authoredDocumentEndnoteProperties,fg as authoredDocumentFootnoteProperties,dg as authoredEndnotePropertiesFromSectPr,cg as authoredFootnotePropertiesFromSectPr,Mg as authoredProperties,Fc as bodyStoryRoot,If as bookmarkPairNodes,Th as boundCustomXmlNodeIdOf,Rh as boundCustomXmlNodeIds,Sh as boundCustomXmlNodeIdsInPackage,wf as buildBookmarkIndex,A as buildContentTypeIndex,D as buildRelationshipSet,Ff as buildTocContentControl,Ef as buildTocEntryParagraph,Rf as buildingBlockGalleryOf,Sf as buildingBlocksForControl,Qf as buildingBlocksOf,ta as canonicalOoxmlFingerprint,dh as cascadeDeletedNoteReferences,qh as cascadeEmptiedComments,Z as childElements,Nc as collectFlowBlocks,Ga as collectNodeIds,qg as collectNoteReferences,sg as collectPackageNoteReferences,Fi as collectRevisionSites,oe as collectSectionPropertyNodes,Hc as collectStoryParagraphs,ih as commentAnchorsOfStory,kh as commentsOfPart,R as containsCssFetch,Ib as contentControlContentChildren,Mb as contentControlContentNodeOf,Lc as contentControlContentOf,Lb as contentControlEndPropertiesNodeOf,Pb as contentControlLevelOf,Kb as contentControlPropertiesNodeOf,Ob as contentControlPropertiesOf,Sb as contentControlTextOf,Qb as contentControlsIn,Yd as contentTypesPartBytes,Fd as createImageResourceCache,Ha as createNodeIdAllocator,og as createNoteReferenceScanBudget,sc as customMarkFollows,Qh as customNodeBinding,Eh as customXmlDataParts,Nh as customXmlLabelXPath,Ih as customXmlNodes,Oh as customXmlPrefixMappings,Ch as datastoreItemIdFor,Ti as deepParagraphOrderOfPart,nh as deleteCommentThread,te as deobfuscateFont,Tc as deriveOoxmlIndexes,Ze as detectBodyTocs,v as detectDuplicateNames,tg as diagnoseNoteReferences,Mf as diffSemanticDigests,Kf as digestPart,Og as directParagraphMarkProperties,Ng as directParagraphProperties,qj as drawingOpImpact,Uf as ensureHyperlinkRelationship,Nf as ensureListDefinition,Of as ensureNumberingLevel,le as equationExpressionToLinearMath,Q as escapeCssString,M as escapeXml,z as extensionKey,He as fieldAtomText,Ge as fieldOnOffAttribute,Rb as findContentControl,Fh as findCustomXmlDataPart,_e as findDetectedToc,Y as findElement,Ja as findNode,Ac as findNoteById,Jb as flattenContentControls,we as fldCharType,Fe as fldSimpleInstr,Za as fnv1a32,dc as formatNoteScopeId,Sg as formatOwnedRunIds,$g as formattableRanges,Xi as formsProtectionEnabled,Pf as glossaryPartOf,ub as hardBreakAttributes,rb as hardBreakKind,tb as hardBreakText,mh as hasAnyComment,vd as hasBoundedSvgRoot,Je as hasLegacyFormFieldData,Ia as hasNode,ad as hyperlinkAnchorOf,bd as hyperlinkRelationshipIdOf,cd as hyperlinkTargetOf,Dd as imageResourceLookupFor,Rc as indexStyles,uf as inlineControlEndingAt,vf as inlineControlStartingAt,Na as insertChildren,Ee as instrTextValue,Kg as isAuthorableRunProperty,Jc as isContentControl,Kc as isContentControlContent,Gb as isContentControlContentNode,Fb as isContentControlNode,Hb as isContentControlWrapper,ma as isContentRevisionKind,lc as isContinuationSeparatorNode,I as isDangerousKey,vj as isDrawingTreeDocOp,gc as isEndnotesNode,U as isEvaluableField,Ie as isFieldChrome,Ae as isFldChar,xe as isFldCharNode,De as isFldSimple,ze as isFldSimpleNode,fc as isFootnotesNode,Zf as isHeaderFooterLifecycleOp,$c as isHyperlinkNode,T as isInertExecutable,Be as isInstrText,ye as isInstrTextNode,jg as isLegalEndnotePosition,Re as isLegalFldCharType,kg as isLegalFootnotePosition,lg as isLegalNumRestart,pc as isNormalNote,uc as isNoteAtomNode,bh as isNoteLifecycleOp,hc as isNoteNode,jc as isNoteRefNode,ic as isNoteReferenceNode,sb as isPageBreakNode,qa as isRangeMarkerKind,kc as isSeparatorNode,Ec as isStoryPart,y as isValidMime,$ as isValidNCName,Xa as isValidParaId,aa as isValidQName,ci as legacyCheckboxFieldsOf,me as linearMathToOmml,Cd as liveDrawingReferenceCount,Ub as lockForbidsEdit,Vb as lockForbidsRemoval,Qg as mergedFontProperty,Tg as mergedMultiSettingProperty,Ug as mergedParagraphMarkProperties,Pg as mergedProperties,_a as mintParaId,cb as mintedParagraphIdentityAttributes,vg as normalNoteIds,eb as normalizeParagraphIdentity,r as normalizePartName,tc as noteAtomText,nc as noteIdOf,mc as noteKindOf,rc as noteRefKindOf,qc as noteReferenceKindOf,oc as noteTypeOf,yc as notesOf,ug as notesPartHasId,J as nullRecord,Kj as observeHistoryGroup,ua as ooxmlTreesEqual,Xb as orderedContentControlProperties,Ya as paraIdOf,qf as paragraphOffsetIndex,Si as paragraphOrderOfPart,Cj as paragraphTextOf,Ka as parentNodeOf,bg as parseAuthoredNoteProperties,Nb as parseContentControlId,ke as parseLinearMath,cc as parseNoteId,ec as parseNoteScopeId,Xe as parseTocInstruction,u as partNameKey,Hf as planTocEntries,zf as points,Bf as pointsToTwips,od as projectDrawing,je as projectOmmlEquation,Lg as propertyContainer,Jh as readCustomXmlNode,Yf as readDocumentProtection,ue as readEmbeddedFonts,ra as readOnOffChild,Vd as readOoxmlPackage,za as readOoxmlPart,sh as readTrackingSettings,uh as readViewSettings,X as readXml,Sa as readZip,Vf as relationshipTargetIn,Zd as relationshipsOf,$d as relsPartNameFor,Pa as removeNode,Ma as replaceChildren,Oa as replaceNode,Lj as reportHistoryGroup,Tb as resolveContentControlLock,B as resolveContentType,_d as resolveContentTypeOf,ig as resolveEndnoteProperties,hg as resolveFootnoteProperties,se as resolveHeaderFooterParts,re as resolveHeaderFooterPartsBySection,qe as resolveHeaderFooterResolutionBySection,F as resolveImageRelationship,n as resolveImageResourceLimits,w as resolveInternalTarget,k as resolveLimits,pg as resolveNotesPart,E as resolveRelationship,Jf as resolveTocRowHeadings,Rg as runAddressRanges,Zg as runPropertyEdits,ah as runsCovering,L as sanitizeHref,V as scrubExport,Yi as sectionProtectsForms,of as segmentsOf,Lf as semanticDigest,sa as serializeOoxmlPart,eg as settingsPartOf,wd as sniffImageMime,Gc as storyParagraphs,Dc as storyRootsOf,Sc as stylesPartOf,_ as textContent,ai as textFormFieldsOf,xh as textboxStoriesInPart,lh as threadStateOfPart,K as toSafeRecord,Gf as tocEntryText,Df as tocLeftIndentTwips,yf as twips,Af as twipsToPoints,$a as usedParaIds,rj as validateDrawingOp,x as validateExternalTarget,yd as validateGifHeader,zd as validateJpegHeader,wa as validateOoxmlPart,ge as validatePackageInvariants,xd as validatePngHeader,Bd as validateRasterHeader,Ij as validateTreeOp,ab as w14RootPrefix,Pc as walkAllStoryParagraphs,Qc as walkParagraphInline,Oc as walkStoryBlocks,Ld as withBinaryPart,ae as withContentTypeOverride,Gh as withCustomXmlDataPart,Kh as withCustomXmlNode,Md as withEmbeddedImage,Uh as withExportedCustomNodes,fe as withNewPart,Xd as withPart,ee as withRelationship,Hh as withoutCustomXmlDataPart,Lh as withoutCustomXmlNode,Mh as withoutOrphanCustomXmlNodes,Rd as withoutUnreferencedImagePart,uj as wrapTargetToAnchorSpec,Wd as writeOoxmlPackage,Ta as writeZip}from'./chunk-Z65JJLLF.js';
@@ -1,5 +1,5 @@
1
- import { S as SupportedImageMime, a as ImageDecodePort } from './image-resources-DkuzBnTM.js';
2
- import { Q as OoxmlPackage, O as OoxmlPart, N as OoxmlNode, a1 as OoxmlElement, at as OoxmlParagraphNode, au as OoxmlNoteNode, av as OoxmlContinuationSeparatorNode, aw as OoxmlEndnotesNode, ax as OoxmlFootnotesNode, ay as OoxmlNoteRefNode, az as OoxmlNoteReferenceNode, aA as OoxmlSeparatorNode, a7 as RevisionAttributionInput, aB as DrawingTreeDocOp, aC as ImpactClass, W as TreeDocOp, a5 as TreeOpRejection } from './types-barrel-DN_-gaRX.js';
1
+ import { S as SupportedImageMime, a as ImageDecodePort } from './image-resources-DfagDguq.js';
2
+ import { Q as OoxmlPackage, O as OoxmlPart, N as OoxmlNode, Z as OoxmlElement, at as OoxmlParagraphNode, au as OoxmlNoteNode, av as OoxmlContinuationSeparatorNode, aw as OoxmlEndnotesNode, ax as OoxmlFootnotesNode, ay as OoxmlNoteRefNode, az as OoxmlNoteReferenceNode, aA as OoxmlSeparatorNode, a7 as RevisionAttributionInput, aB as DrawingTreeDocOp, aC as ImpactClass, W as TreeDocOp, a5 as TreeOpRejection } from './types-barrel-BO73JqHG.js';
3
3
 
4
4
  /** A freshly allocated drawing property id, or the reason one could not be minted. */
5
5
  type DrawingPropertyIdResult = {
@@ -1076,7 +1076,12 @@ declare class TreePackageStore {
1076
1076
  applyImageProperties(scope: StoryScope, input: ApplyImagePropertiesInput): ImageIntentResult;
1077
1077
  /**
1078
1078
  * Promote a story transaction that wrote package bytes to one package undo pointer.
1079
- * Used by image intents and note-reference cascade.
1079
+ * Used by the image and fragment-paste intents.
1080
+ *
1081
+ * The caller grafts {@link currentPackage} onto the story store BEFORE its transaction, so
1082
+ * the committed package carries every shell write and installs as it stands, like
1083
+ * `transact`: re-merging the live shell put the pre-transaction `numbering.xml` back over
1084
+ * the one the transaction wrote, and a pasted list referenced missing definitions.
1080
1085
  */
1081
1086
  promoteStoryTransactionToPackageUnit(beforePackage: OoxmlPackage, store: TreeDocumentStore, checkpoint: TreeDocumentCheckpoint,
1082
1087
  /** Unused: the restore is unconditional now. Kept so the public signature stands. */
@@ -1173,4 +1178,4 @@ type FragmentPasteResult = (Extract<PackageTransactResult, {
1173
1178
  declare function applyFragmentPaste(store: TreePackageStore, scope: StoryScope, input: FragmentPasteInput): FragmentPasteResult;
1174
1179
 
1175
1180
  export { NOTE_ID_MIN as B, DEFAULT_MAX_EDITABLE_STORY_PARTS as D, NOTE_SEPARATOR_ID as E, MAX_FRAGMENT_DECODED_BYTES as M, TreePackageStore as T, allocateDrawingPropertyId as a3, allocateNoteId as a4, applyFragmentPaste as a5, applyHeaderFooterLifecycleOp as a6, applyNoteLifecycleOp as a7, atomicNoteSpansOf as a8, cascadeDeletedNoteReferences as a9, notesOf as aA, notesPartHasId as aB, observeHistoryGroup as aC, parseNoteId as aD, parseNoteScopeId as aE, resolveHeaderFooterParts as aF, resolveHeaderFooterPartsBySection as aG, resolveHeaderFooterResolutionBySection as aH, resolveNotesPart as aI, withBinaryPart as aJ, withEmbeddedImage as aK, withoutUnreferencedImagePart as aL, collectNoteReferences as aa, collectPackageNoteReferences as ab, collectSectionPropertyNodes as ac, createNoteReferenceScanBudget as ad, customMarkFollows as ae, diagnoseNoteReferences as af, findNoteById as ag, formatNoteScopeId as ah, isContinuationSeparatorNode as ai, isEndnotesNode as aj, isFootnotesNode as ak, isHeaderFooterLifecycleOp as al, isNormalNote as am, isNoteAtomNode as an, isNoteLifecycleOp as ao, isNoteNode as ap, isNoteRefNode as aq, isNoteReferenceNode as ar, isSeparatorNode as as, normalNoteIds as at, noteAtomText as au, noteIdOf as av, noteKindOf as aw, noteRefKindOf as ax, noteReferenceKindOf as ay, noteTypeOf as az, TreeDocumentStore as f, reportHistoryGroup as r, MAX_NOTES_PER_PART as u, MAX_NOTE_REFERENCE_PARTS as v, MAX_NOTE_REFERENCE_SCAN as w, NOTE_ATOM_CHAR as x, NOTE_CONTINUATION_SEPARATOR_ID as y, NOTE_ID_MAX as z };
1176
- export type { TreePackageStoreOptions as $, ApplyImagePropertiesInput as A, CascadeDeletedNoteReferencesOptions as C, FragmentPasteInput as F, NoteDiagnostic as G, HeaderFooterVariant as H, InsertImageInput as I, NoteDiagnosticCode as J, NoteLifecycleImpact as K, NoteLifecycleOp as L, NoteKind as N, NoteLifecycleOptions as O, NoteLifecycleRejection as P, NoteLifecycleResult as Q, ReplaceImageOptions as R, StoryScope as S, NoteReferenceHit as U, NoteReferenceScanBudget as V, NoteType as W, PackageTransactResult as X, RemotePackageAttribution as Y, StoryResolveResult as Z, TreeDocumentStoreOptions as _, StoryTargetRejection as a, TreeStoryRef as a0, TransactResult as a1, TransactionContext as a2, HistoryGroup as b, TreeModelChange as c, HeaderFooterParts as d, HeaderFooterSectionResolution as e, SelectionMark as g, TransactOptions as h, ImageIntentResult as i, FragmentPasteResult as j, AtomicNoteSpan as k, DrawingPropertyIdResult as l, HeaderFooterKind as m, HeaderFooterLifecycleImpact as n, HeaderFooterLifecycleOp as o, HeaderFooterLifecycleRejection as p, HeaderFooterLifecycleResult as q, HeaderFooterSlotMeta as s, HistoryCaptureKind as t };
1181
+ export type { TreePackageStoreOptions as $, ApplyImagePropertiesInput as A, CascadeDeletedNoteReferencesOptions as C, FragmentPasteInput as F, NoteDiagnostic as G, HistoryGroup as H, InsertImageInput as I, NoteDiagnosticCode as J, NoteLifecycleImpact as K, NoteLifecycleOp as L, NoteKind as N, NoteLifecycleOptions as O, NoteLifecycleRejection as P, NoteLifecycleResult as Q, ReplaceImageOptions as R, StoryScope as S, NoteReferenceHit as U, NoteReferenceScanBudget as V, NoteType as W, PackageTransactResult as X, RemotePackageAttribution as Y, StoryResolveResult as Z, TreeDocumentStoreOptions as _, StoryTargetRejection as a, TreeStoryRef as a0, TransactResult as a1, TransactionContext as a2, TreeModelChange as b, HeaderFooterParts as c, HeaderFooterSectionResolution as d, HeaderFooterVariant as e, SelectionMark as g, TransactOptions as h, ImageIntentResult as i, FragmentPasteResult as j, AtomicNoteSpan as k, DrawingPropertyIdResult as l, HeaderFooterKind as m, HeaderFooterLifecycleImpact as n, HeaderFooterLifecycleOp as o, HeaderFooterLifecycleRejection as p, HeaderFooterLifecycleResult as q, HeaderFooterSlotMeta as s, HistoryCaptureKind as t };
@@ -1,8 +1,8 @@
1
- import { S as StoryScope, g as SelectionMark, h as TransactOptions, a as StoryTargetRejection, c as TreeModelChange, d as HeaderFooterParts, e as HeaderFooterSectionResolution, I as InsertImageInput, i as ImageIntentResult, R as ReplaceImageOptions, A as ApplyImagePropertiesInput, F as FragmentPasteInput, j as FragmentPasteResult } from './tree-package-fragment-BIyGh6L8.js';
2
- import { W as TreeDocOp, O as OoxmlPart, N as OoxmlNode, Q as OoxmlPackage, a1 as OoxmlElement, a as ReviewItem, a7 as RevisionAttributionInput } from './types-barrel-DN_-gaRX.js';
3
- import { S as SupportedImageMime, a as ImageDecodePort } from './image-resources-DkuzBnTM.js';
4
- import { D as DocumentTrackingSettings, I as InsertCustomNodeWrite, C as CustomNodeWriteResult, a as CustomNodeSweepOutcome, E as EmbeddedFont, B as BookmarkIndex, L as ListKind } from './custom-node-writes-77rvPW2-.js';
5
- import { H as HeadlessDocumentView, D as DocumentProperties } from './headless-document-view-Cc3fFWhv.js';
1
+ import { S as StoryScope, g as SelectionMark, h as TransactOptions, a as StoryTargetRejection, b as TreeModelChange, c as HeaderFooterParts, d as HeaderFooterSectionResolution, I as InsertImageInput, i as ImageIntentResult, R as ReplaceImageOptions, A as ApplyImagePropertiesInput, F as FragmentPasteInput, j as FragmentPasteResult } from './tree-package-fragment-YPyYC1aD.js';
2
+ import { W as TreeDocOp, O as OoxmlPart, N as OoxmlNode, Q as OoxmlPackage, Z as OoxmlElement, a as ReviewItem, a7 as RevisionAttributionInput } from './types-barrel-BO73JqHG.js';
3
+ import { S as SupportedImageMime, a as ImageDecodePort } from './image-resources-DfagDguq.js';
4
+ import { D as DocumentTrackingSettings, I as InsertCustomNodeWrite, C as CustomNodeWriteResult, a as CustomNodeSweepOutcome, E as EmbeddedFont, B as BookmarkIndex, L as ListKind } from './custom-node-writes-Cy9imOjA.js';
5
+ import { H as HeadlessDocumentView, D as DocumentProperties } from './headless-document-view-R9bzzepb.js';
6
6
  import { Node } from 'prosemirror-model';
7
7
  import { CollaborationDocumentPort } from './collaboration/replication.js';
8
8
  import { V as ViewScope } from './editor-scope-OHPwVQ5l.js';
@@ -132,7 +132,7 @@ interface DocumentStyleEntry {
132
132
  * Assumes the default `w:clrSchemeMapping` (bg1→lt1, t1→dk1, ...); a settings part
133
133
  * that remaps them is rare and a follow-up.
134
134
  */
135
- declare const PICKER_SLOTS: readonly ["lt1", "dk1", "lt2", "dk2", "accent1", "accent2", "accent3", "accent4", "accent5", "accent6"];
135
+ declare const PICKER_SLOTS: readonly ['lt1', 'dk1', 'lt2', 'dk2', 'accent1', 'accent2', 'accent3', 'accent4', 'accent5', 'accent6'];
136
136
  type ThemeColorSlot = (typeof PICKER_SLOTS)[number];
137
137
  /** One theme colour: the scheme slot and its resolved six-digit hex (no '#'). */
138
138
  interface DocumentThemeColorEntry {
@@ -570,6 +570,8 @@ interface TreeDocxSessionView extends HeadlessDocumentView {
570
570
  * growing a cache the session would have to bound.
571
571
  */
572
572
  findText(query: string, options?: DocumentSearchOptions): DocumentSearchResult;
573
+ /** Many queries in one walk of the document, one result per query in the same order. */
574
+ findText(queries: readonly string[], options?: DocumentSearchOptions): readonly DocumentSearchResult[];
573
575
  /**
574
576
  * The faces the package EMBEDS (`word/fontTable.xml` embed relationships),
575
577
  * deobfuscated — the only font source that needs neither a substitute nor a network.
@@ -1,5 +1,28 @@
1
1
  import { c as HistoryGroupOutcome } from './editor-scope-OHPwVQ5l.js';
2
2
 
3
+ /**
4
+ * How a tracked change is addressed: `@w:id`, `@w:author` and `@w:date` together, within a
5
+ * part.
6
+ *
7
+ * All of them, always. `@w:id` is unique only within a part, so an id alone names two
8
+ * revisions in any package with a header or a comments part — and it is not author-scoped
9
+ * either, so `(part, id)` would merge two authors' distinct revisions. One logical revision is
10
+ * also deliberately many elements sharing an id, as a tracked row insertion is, which no
11
+ * uniqueness rule could express.
12
+ */
13
+ interface RevisionAddress {
14
+ readonly id: string;
15
+ readonly author: string;
16
+ /** Absent when the file wrote no `@w:date`; part of the identity either way. */
17
+ readonly date?: string;
18
+ }
19
+ /** The author and timestamp a tracked edit is recorded under. */
20
+ interface RevisionAttributionInput {
21
+ readonly author: string;
22
+ /** ISO-8601. Omitted writes no `@w:date`. */
23
+ readonly date?: string;
24
+ }
25
+
3
26
  /**
4
27
  * One parsed XML node, preserving significant order, whitespace and raw lexical values.
5
28
  *
@@ -872,6 +895,12 @@ type OoxmlInvariantResult = {
872
895
  declare function readOoxmlPart(xml: string, metadata: OoxmlPartMetadata, limits?: XmlLimits): OoxmlReadResult;
873
896
 
874
897
  type AutomationTableMutation = {
898
+ readonly kind: 'insertRows';
899
+ readonly rowId: string;
900
+ readonly location: 'before' | 'after';
901
+ readonly count: number;
902
+ readonly values?: readonly (readonly string[])[];
903
+ } | {
875
904
  readonly kind: 'values';
876
905
  readonly values: readonly (readonly string[])[];
877
906
  } | {
@@ -972,9 +1001,9 @@ interface TextFormFieldOptions {
972
1001
  }
973
1002
  /** Supported format choices for legacy text input fields. @public */
974
1003
  declare const TEXT_FORM_FORMATS: {
975
- readonly regular: readonly ["", "Uppercase", "Lowercase", "First capital", "Title case"];
976
- readonly number: readonly ["", "0", "0.00", "#,##0", "#,##0.00", "0%", "0.00%"];
977
- readonly date: readonly ["", "M/d/yyyy", "MM/dd/yyyy", "d/M/yyyy", "dd/MM/yyyy", "yyyy-MM-dd", "d MMMM yyyy", "MMMM d, yyyy"];
1004
+ readonly regular: readonly ['', 'Uppercase', 'Lowercase', 'First capital', 'Title case'];
1005
+ readonly number: readonly ['', '0', '0.00', '#,##0', '#,##0.00', '0%', '0.00%'];
1006
+ readonly date: readonly ['', 'M/d/yyyy', 'MM/dd/yyyy', 'd/M/yyyy', 'dd/MM/yyyy', 'yyyy-MM-dd', 'd MMMM yyyy', 'MMMM d, yyyy'];
978
1007
  };
979
1008
 
980
1009
  /** A legacy text input in the shared paragraph offset space. */
@@ -2457,7 +2486,7 @@ declare function planRevisionBatch(part: OoxmlPart, action: 'accept' | 'reject',
2457
2486
  };
2458
2487
 
2459
2488
  /** Allowlisted OOXML table border line styles — store/layout authority. */
2460
- declare const TABLE_BORDER_STYLES: readonly ["single", "dashed", "dotted", "double", "triple", "thick"];
2489
+ declare const TABLE_BORDER_STYLES: readonly ['single', 'dashed', 'dotted', 'double', 'triple', 'thick'];
2461
2490
  /**
2462
2491
  * One of the border line styles this engine draws.
2463
2492
  *
@@ -3054,29 +3083,6 @@ interface Point {
3054
3083
  /** What every subscription returns. Calling it twice is safe. */
3055
3084
  type Unsubscribe = () => void;
3056
3085
 
3057
- /**
3058
- * How a tracked change is addressed: `@w:id`, `@w:author` and `@w:date` together, within a
3059
- * part.
3060
- *
3061
- * All of them, always. `@w:id` is unique only within a part, so an id alone names two
3062
- * revisions in any package with a header or a comments part — and it is not author-scoped
3063
- * either, so `(part, id)` would merge two authors' distinct revisions. One logical revision is
3064
- * also deliberately many elements sharing an id, as a tracked row insertion is, which no
3065
- * uniqueness rule could express.
3066
- */
3067
- interface RevisionAddress {
3068
- readonly id: string;
3069
- readonly author: string;
3070
- /** Absent when the file wrote no `@w:date`; part of the identity either way. */
3071
- readonly date?: string;
3072
- }
3073
- /** The author and timestamp a tracked edit is recorded under. */
3074
- interface RevisionAttributionInput {
3075
- readonly author: string;
3076
- /** ISO-8601. Omitted writes no `@w:date`. */
3077
- readonly date?: string;
3078
- }
3079
-
3080
3086
  /**
3081
3087
  * A colour as an op carries it: a literal, a theme reference, or automatic.
3082
3088
  *
@@ -3115,9 +3121,9 @@ interface TableBorderSpecInput {
3115
3121
  * operation assert support the engine does not have. Unknown properties still ROUND-TRIP —
3116
3122
  * they are generic nodes in the tree — they simply cannot be authored by an op.
3117
3123
  */
3118
- declare const ACCEPTED_RUN_PROPERTIES: readonly ["rFonts", "sz", "szCs", "color", "b", "bCs", "i", "iCs", "u", "strike", "dstrike", "highlight", "vertAlign", "position", "caps", "smallCaps", "spacing", "w", "kern"];
3124
+ declare const ACCEPTED_RUN_PROPERTIES: readonly ['rFonts', 'sz', 'szCs', 'color', 'b', 'bCs', 'i', 'iCs', 'u', 'strike', 'dstrike', 'highlight', 'vertAlign', 'position', 'caps', 'smallCaps', 'spacing', 'w', 'kern'];
3119
3125
  /** The accepted PARAGRAPH property boundary (design D8). */
3120
- declare const ACCEPTED_PARAGRAPH_PROPERTIES: readonly ["pStyle", "jc", "spacing", "ind", "tabs", "numPr", "keepNext", "keepLines", "widowControl", "pageBreakBefore", "contextualSpacing", "shd", "bidi"];
3126
+ declare const ACCEPTED_PARAGRAPH_PROPERTIES: readonly ['pStyle', 'jc', 'spacing', 'ind', 'tabs', 'numPr', 'keepNext', 'keepLines', 'widowControl', 'pageBreakBefore', 'contextualSpacing', 'shd', 'bidi'];
3121
3127
  /**
3122
3128
  * One tab stop an op can author: where it sits, how it aligns, and what fills the gap.
3123
3129
  *
@@ -3292,6 +3298,7 @@ type TreeDocOp = SetFieldCodeOp | {
3292
3298
  readonly op: 'setListLevel';
3293
3299
  readonly paragraphId: string;
3294
3300
  readonly level: number;
3301
+ readonly revision?: RevisionAttributionInput;
3295
3302
  } | {
3296
3303
  /**
3297
3304
  * Put a paragraph in a list, or take it out of one.
@@ -3317,6 +3324,7 @@ type TreeDocOp = SetFieldCodeOp | {
3317
3324
  readonly paragraphId: string;
3318
3325
  readonly numId: string | null;
3319
3326
  readonly level?: number;
3327
+ readonly revision?: RevisionAttributionInput;
3320
3328
  } | {
3321
3329
  /**
3322
3330
  * Replace a paragraph's custom tab stops, or clear them with an empty list.
@@ -3603,6 +3611,8 @@ type TreeDocOp = SetFieldCodeOp | {
3603
3611
  readonly cols: number;
3604
3612
  /** Width of every grid column, in twips. The caller divides the content width. */
3605
3613
  readonly columnWidthTwips: number;
3614
+ /** Propose the complete table through native row and cell insertion revisions. */
3615
+ readonly revision?: RevisionAttributionInput;
3606
3616
  } | {
3607
3617
  /** Insert a fresh row above or below a canonical table row. */
3608
3618
  readonly op: 'insertTableRow';
@@ -3663,6 +3673,8 @@ type TreeDocOp = SetFieldCodeOp | {
3663
3673
  } | {
3664
3674
  /** Atomic semantic table authoring. Newly created nodes never need caller-supplied IDs. */
3665
3675
  readonly op: 'authorTable';
3676
+ /** Native row revisions. Other structural mutations refuse this option. */
3677
+ readonly revision?: RevisionAttributionInput;
3666
3678
  readonly action: {
3667
3679
  readonly kind: 'existing';
3668
3680
  readonly tableId: string;
@@ -3841,6 +3853,8 @@ type TreeDocOp = SetFieldCodeOp | {
3841
3853
  * that were there; only the run boundaries move.
3842
3854
  */
3843
3855
  readonly op: 'insertContentControl';
3856
+ /** Record a wrapper over existing text as a native replacement revision. */
3857
+ readonly revision?: RevisionAttributionInput;
3844
3858
  readonly paragraphId: string;
3845
3859
  readonly start: number;
3846
3860
  readonly end: number;
@@ -4128,4 +4142,4 @@ type TreeOpResult = {
4128
4142
  };
4129
4143
 
4130
4144
  export { IMAGE_WRAP_TARGETS as aE, TEXT_FORM_FORMATS as aF, ACCEPTED_PARAGRAPH_PROPERTIES as aW, ACCEPTED_RUN_PROPERTIES as aX, CONTENT_CONTROL_ID_MAX as aY, CONTENT_CONTROL_PROPERTY_ORDER as aZ, DEFAULT_OOXML_PACKAGE_LIMITS as be, DEFAULT_ZIP_LIMITS as bf, HYPERLINK_RELATIONSHIP_TYPE as bi, IMAGE_RELATIONSHIP_TYPE as bl, MAX_CONTENT_CONTROLS_PER_PART as br, MAX_CONTENT_CONTROL_NESTING as bs, OFFICE_RELATIONSHIP_NAMESPACE_URI as bv, OOXML_NODE_IDENTITY_RULES as bw, isContentControlWrapper as c$, allocateContentControlId as cA, asciiFold as cB, buildContentTypeIndex as cC, buildRelationshipSet as cD, childElements as cE, commentAnchorsOfStory as cF, commentsOfPart as cG, contentControlContentChildren as cH, contentControlContentNodeOf as cI, contentControlEndPropertiesNodeOf as cJ, contentControlLevelOf as cK, contentControlPropertiesNodeOf as cL, contentControlPropertiesOf as cM, contentControlTextOf as cN, contentControlsIn as cO, detectDuplicateNames as cP, extensionKey as cQ, findContentControl as cR, findElement as cS, firstReviewRange as cT, flattenContentControls as cU, hasAnyComment as cV, hyperlinkAnchorOf as cW, hyperlinkRelationshipIdOf as cX, hyperlinkTargetOf as cY, isContentControlContentNode as cZ, isContentControlNode as c_, TABLE_BORDER_STYLES as ch, W15_NAMESPACE_URI as cp, WML_NAMESPACE_URI as cq, XMLNS_NAMESPACE_URI as cr, XML_NAMESPACE_URI as cs, isContentRevisionKind as d0, isHyperlinkNode as d1, isRangeMarkerKind as d2, isValidMime as d3, legacyCheckboxFieldsOf as d4, lockForbidsEdit as d5, lockForbidsRemoval as d6, normalizePartName as d7, orderedContentControlProperties as d8, parseContentControlId as d9, reviewItemsAt as dA, reviewThreadRootOf as dB, partNameKey as da, planRevisionBatch as db, projectDrawing as dc, readOnOffChild as dd, readOoxmlPackage as de, readOoxmlPart as df, readXml as dg, readZip as dh, resolveContentControlLock as di, resolveContentType as dj, resolveImageRelationship as dk, resolveInternalTarget as dl, resolveRelationship as dm, reviewItemKey as dn, reviewItemRanges as dp, textContent as dq, textFormFieldsOf as dr, threadStateOfPart as ds, validateExternalTarget as dt, withPart as du, writeOoxmlPackage as dv, writeZip as dw, activeReviewItem as dy, reviewItemPositionRank as dz };
4131
- export type { RevisionBatchSkipReason as $, ParagraphTabStop as A, Block as B, CommentRecord as C, DocxDocument as D, ExecResult as E, RevisionType as F, Section as G, HeaderFooterSet as H, InsertableContentControlType as I, SectionProperties as J, StyleDefinition as K, Theme as L, ThemeColorScheme as M, OoxmlNode as N, OoxmlPart as O, Paragraph as P, OoxmlPackage as Q, ReviewModelInput as R, StyleDefinitions as S, Table as T, OoxmlNodeId as U, OoxmlGenericElementNode as V, TreeDocOp as W, OoxmlPackageLimits as X, OoxmlPackageRejection as Y, RevisionBatchEntry as Z, RevisionBatchResult as _, ReviewItem as a, CommentPosition as a$, OoxmlProperty as a0, OoxmlElement as a1, OoxmlContentControlNode as a2, OoxmlContentControlContentNode as a3, DrawingProjection as a4, TreeOpRejection as a5, AutomationTableMutation as a6, RevisionAttributionInput as a7, SourceCrop as a8, DrawingKind as a9, OoxmlSeparatorNode as aA, DrawingTreeDocOp as aB, ImpactClass as aC, TreeDocColorValue as aD, TableBorderStyle as aG, DrawingAccessibility as aH, DrawingImageEffects as aI, DrawingTransform as aJ, VectorShapeProjection as aK, OoxmlDrawingNode as aL, OoxmlInvariantResult as aM, OoxmlFldCharNode as aN, OoxmlFldSimpleNode as aO, OoxmlInstrTextNode as aP, OoxmlInvariantIssue as aQ, TreeOpResult as aR, RelationshipRecord as aS, OoxmlHardBreakNode as aT, OoxmlAttribute as aU, CommentThreadState as aV, CommentAnchor as a_, ImageWrapTarget as aa, DrawingPositionInput as ab, DrawingLocks as ac, ParagraphFormatCommand as ad, Watermark as ae, Rect as af, SelectionPin as ag, Unsubscribe as ah, DocxDocumentJSON as ai, DrawingHorizontalReferenceFrame as aj, DrawingVerticalReferenceFrame as ak, FontDefinition as al, NumberingRef as am, PageMargins as an, ParagraphDisagreements as ao, Point as ap, Run as aq, TableCell as ar, TableRow as as, OoxmlParagraphNode as at, OoxmlNoteNode as au, OoxmlContinuationSeparatorNode as av, OoxmlEndnotesNode as aw, OoxmlFootnotesNode as ax, OoxmlNoteRefNode as ay, OoxmlNoteReferenceNode as az, ReviewRevisionItem as b, OoxmlReadRejection as b$, CommitTextFormFieldOp as b0, ContentControlCheckbox as b1, ContentControlCheckboxState as b2, ContentControlDataBinding as b3, ContentControlDateFormat as b4, ContentControlEntry as b5, ContentControlKind as b6, ContentControlLevel as b7, ContentControlListItem as b8, ContentControlLock as b9, OoxmlContentControlCalendarNode as bA, OoxmlContentControlCheckboxNode as bB, OoxmlContentControlCheckedNode as bC, OoxmlContentControlCheckedStateNode as bD, OoxmlContentControlComboBoxNode as bE, OoxmlContentControlDataBindingNode as bF, OoxmlContentControlDateFormatNode as bG, OoxmlContentControlDateNode as bH, OoxmlContentControlDropDownListNode as bI, OoxmlContentControlEndPropertiesNode as bJ, OoxmlContentControlLidNode as bK, OoxmlContentControlListItemNode as bL, OoxmlContentControlPropertiesNode as bM, OoxmlContentControlStoreMappedDataAsNode as bN, OoxmlContentControlTextNode as bO, OoxmlContentControlUncheckedStateNode as bP, OoxmlDocumentNode as bQ, OoxmlExternalTarget as bR, OoxmlGenericExtensionAttribute as bS, OoxmlHyperlinkNode as bT, OoxmlInvariantIssueCode as bU, OoxmlKnownNodeAttribute as bV, OoxmlNamespaceBinding as bW, OoxmlNodeIdentityRules as bX, OoxmlPackageResult as bY, OoxmlParagraphPropertiesNode as bZ, OoxmlPartMetadata as b_, ContentControlProperties as ba, ContentTypeError as bb, ContentTypeIndex as bc, ContentTypeRecords as bd, DefaultRecord as bg, DeleteTextOp as bh, HyperlinkKind as bj, HyperlinkTarget as bk, ImageRelationshipResolution as bm, IndexResult as bn, InsertBuildingBlockOp as bo, InsertTextOp as bp, LegacyCheckboxFieldRange as bq, NameRejection as bt, NameResult as bu, OoxmlBodyNode as bx, OoxmlBookmarkEndNode as by, OoxmlBookmarkStartNode as bz, ReviewCommentItem as c, OoxmlReadResult as c0, OoxmlRunNode as c1, OoxmlRunPropertiesNode as c2, OoxmlTabNode as c3, OoxmlTextElementNode as c4, OoxmlTextNode as c5, OoxmlWmlValAttribute as c6, OoxmlXmlSpaceAttribute as c7, OverrideRecord as c8, RelationshipError as c9, RelationshipSetResult as ca, RelationshipTargetResolver as cb, ResolveResult as cc, ResolvedRelationship as cd, SetLegacyCheckboxOp as ce, SetLegacyDropdownOp as cf, SetTextFormFieldDefaultOp as cg, TabStopWrite as ci, TargetMode as cj, TextFormFieldOptions as ck, TextFormFieldRange as cl, TextFormFieldType as cm, TreeDocOpKind as cn, TreeOpEffect as co, XmlLimits as ct, XmlNode as cu, XmlRejection as cv, XmlResult as cw, ZipLimits as cx, ZipReadResult as cy, ZipRejection as cz, ReviewCustomItem as d, VectorShapeComponent as dx, ReviewPosition as e, ReviewRange as f, ReviewRevisionKind as g, RevisionAddress as h, ContentControlType as i, DocTarget as j, RunFormatting as k, Extent as l, ContainerRef as m, ContentControlFilter as n, DocRange as o, Revision as p, DocComment as q, ColorValue as r, ContentControl as s, DocAnchor as t, DocAnchorRange as u, DocLocation as v, DocumentBody as w, ExecErrorCode as x, IndentFormatting as y, ParagraphFlags as z };
4145
+ export type { OoxmlContentControlContentNode as $, ParagraphTabStop as A, Block as B, CommentRecord as C, DocxDocument as D, ExecResult as E, RevisionType as F, Section as G, HeaderFooterSet as H, InsertableContentControlType as I, SectionProperties as J, StyleDefinition as K, Theme as L, ThemeColorScheme as M, OoxmlNode as N, OoxmlPart as O, Paragraph as P, OoxmlPackage as Q, ReviewModelInput as R, StyleDefinitions as S, Table as T, OoxmlNodeId as U, OoxmlGenericElementNode as V, TreeDocOp as W, OoxmlProperty as X, OoxmlPackageRejection as Y, OoxmlElement as Z, OoxmlContentControlNode as _, ReviewItem as a, CommentPosition as a$, DrawingProjection as a0, OoxmlPackageLimits as a1, RevisionBatchEntry as a2, RevisionBatchResult as a3, RevisionBatchSkipReason as a4, TreeOpRejection as a5, AutomationTableMutation as a6, RevisionAttributionInput as a7, SourceCrop as a8, DrawingKind as a9, OoxmlSeparatorNode as aA, DrawingTreeDocOp as aB, ImpactClass as aC, TreeDocColorValue as aD, TableBorderStyle as aG, DrawingAccessibility as aH, DrawingImageEffects as aI, DrawingTransform as aJ, VectorShapeProjection as aK, OoxmlDrawingNode as aL, OoxmlInvariantResult as aM, OoxmlFldCharNode as aN, OoxmlFldSimpleNode as aO, OoxmlInstrTextNode as aP, OoxmlInvariantIssue as aQ, TreeOpResult as aR, RelationshipRecord as aS, OoxmlHardBreakNode as aT, OoxmlAttribute as aU, CommentThreadState as aV, CommentAnchor as a_, ImageWrapTarget as aa, DrawingPositionInput as ab, DrawingLocks as ac, ParagraphFormatCommand as ad, Watermark as ae, Rect as af, SelectionPin as ag, Unsubscribe as ah, DocxDocumentJSON as ai, DrawingHorizontalReferenceFrame as aj, DrawingVerticalReferenceFrame as ak, FontDefinition as al, NumberingRef as am, PageMargins as an, ParagraphDisagreements as ao, Point as ap, Run as aq, TableCell as ar, TableRow as as, OoxmlParagraphNode as at, OoxmlNoteNode as au, OoxmlContinuationSeparatorNode as av, OoxmlEndnotesNode as aw, OoxmlFootnotesNode as ax, OoxmlNoteRefNode as ay, OoxmlNoteReferenceNode as az, ReviewRevisionItem as b, OoxmlReadRejection as b$, CommitTextFormFieldOp as b0, ContentControlCheckbox as b1, ContentControlCheckboxState as b2, ContentControlDataBinding as b3, ContentControlDateFormat as b4, ContentControlEntry as b5, ContentControlKind as b6, ContentControlLevel as b7, ContentControlListItem as b8, ContentControlLock as b9, OoxmlContentControlCalendarNode as bA, OoxmlContentControlCheckboxNode as bB, OoxmlContentControlCheckedNode as bC, OoxmlContentControlCheckedStateNode as bD, OoxmlContentControlComboBoxNode as bE, OoxmlContentControlDataBindingNode as bF, OoxmlContentControlDateFormatNode as bG, OoxmlContentControlDateNode as bH, OoxmlContentControlDropDownListNode as bI, OoxmlContentControlEndPropertiesNode as bJ, OoxmlContentControlLidNode as bK, OoxmlContentControlListItemNode as bL, OoxmlContentControlPropertiesNode as bM, OoxmlContentControlStoreMappedDataAsNode as bN, OoxmlContentControlTextNode as bO, OoxmlContentControlUncheckedStateNode as bP, OoxmlDocumentNode as bQ, OoxmlExternalTarget as bR, OoxmlGenericExtensionAttribute as bS, OoxmlHyperlinkNode as bT, OoxmlInvariantIssueCode as bU, OoxmlKnownNodeAttribute as bV, OoxmlNamespaceBinding as bW, OoxmlNodeIdentityRules as bX, OoxmlPackageResult as bY, OoxmlParagraphPropertiesNode as bZ, OoxmlPartMetadata as b_, ContentControlProperties as ba, ContentTypeError as bb, ContentTypeIndex as bc, ContentTypeRecords as bd, DefaultRecord as bg, DeleteTextOp as bh, HyperlinkKind as bj, HyperlinkTarget as bk, ImageRelationshipResolution as bm, IndexResult as bn, InsertBuildingBlockOp as bo, InsertTextOp as bp, LegacyCheckboxFieldRange as bq, NameRejection as bt, NameResult as bu, OoxmlBodyNode as bx, OoxmlBookmarkEndNode as by, OoxmlBookmarkStartNode as bz, ReviewCommentItem as c, OoxmlReadResult as c0, OoxmlRunNode as c1, OoxmlRunPropertiesNode as c2, OoxmlTabNode as c3, OoxmlTextElementNode as c4, OoxmlTextNode as c5, OoxmlWmlValAttribute as c6, OoxmlXmlSpaceAttribute as c7, OverrideRecord as c8, RelationshipError as c9, RelationshipSetResult as ca, RelationshipTargetResolver as cb, ResolveResult as cc, ResolvedRelationship as cd, SetLegacyCheckboxOp as ce, SetLegacyDropdownOp as cf, SetTextFormFieldDefaultOp as cg, TabStopWrite as ci, TargetMode as cj, TextFormFieldOptions as ck, TextFormFieldRange as cl, TextFormFieldType as cm, TreeDocOpKind as cn, TreeOpEffect as co, XmlLimits as ct, XmlNode as cu, XmlRejection as cv, XmlResult as cw, ZipLimits as cx, ZipReadResult as cy, ZipRejection as cz, ReviewCustomItem as d, VectorShapeComponent as dx, ReviewPosition as e, ReviewRange as f, ReviewRevisionKind as g, RevisionAddress as h, ContentControlType as i, DocTarget as j, RunFormatting as k, Extent as l, ContainerRef as m, ContentControlFilter as n, DocRange as o, Revision as p, DocComment as q, ColorValue as r, ContentControl as s, DocAnchor as t, DocAnchorRange as u, DocLocation as v, DocumentBody as w, ExecErrorCode as x, IndentFormatting as y, ParagraphFlags as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docx-editor.dev/core",
3
- "version": "2.24.0",
3
+ "version": "2.25.0",
4
4
  "description": "Framework-agnostic core for docx-editor.dev: OOXML parse/serialize, the canonical document tree, layout and paint, and the Editor contract the adapters render.",
5
5
  "type": "module",
6
6
  "engines": {
@@ -96,7 +96,7 @@
96
96
  "postcss": "^8.5.13",
97
97
  "tailwindcss": "^3.4.1",
98
98
  "tailwindcss-animate": "^1.0.7",
99
- "typescript": "^5.3.3"
99
+ "typescript7": "npm:typescript@^7.0.2"
100
100
  },
101
101
  "license": "Apache-2.0",
102
102
  "repository": {
@@ -105,7 +105,7 @@
105
105
  "directory": "packages/core"
106
106
  },
107
107
  "dependencies": {
108
- "@docx-editor.dev/i18n": "^2.24.0",
108
+ "@docx-editor.dev/i18n": "^2.25.0",
109
109
  "bidi-js": "1.1.0",
110
110
  "emf-converter": "2.0.2",
111
111
  "fast-xml-parser": "^5.10.1",
@@ -1 +0,0 @@
1
- import {de,Ie,Ra,fa,gb,kd,fe,id,Zc,he,ge,He,ce,Ba,_d,za,Ca,ya,ta as ta$1,Ja,Oe,xc,Fb,Ye,Se,Ue,vc,Te}from'./chunk-J3EM5ZEA.js';import {Ka,Z,_,na,ta,ua,Aa,wa}from'./chunk-XMWH2R23.js';import {rd,eg,Cc,ge as ge$1,xi,lf,Va,Mc,_c,W,Lc,Kc,cd,bd,Jc,ch,zi,ff,fa as fa$1,ra}from'./chunk-JXL25DRU.js';var Dt=Object.freeze({}),Mt=Object.freeze([]);function Et(e){let t=Object.keys(e);if(t.length===0)return Dt;let r={};for(let n of t){let o=e[n];o!==void 0&&(r[n]=o);}return Object.freeze(r)}function Lt(e){let t=new Map(lf(e.part())),r=new Set([e.part()]);for(let o of e.headerFooterPartsBySection())for(let a of [o.headers,o.footers])for(let i of a.values())if(!r.has(i)){r.add(i);for(let[s,d]of lf(i))t.has(s)||t.set(s,d);}let n=e.currentPackage();for(let o of ["footnote","endnote"]){let a=eg(n,o);if(!(!a||r.has(a))){r.add(a);for(let[i,s]of lf(a))t.has(i)||t.set(i,s);}}return t}function At(e,t){let r=Ye(e,t);if(!r)return null;let n=e.pages[r.pageIndex];if(!n)return null;let o=Se(n),a=Ue(e,t.paragraphId,r.pageIndex),i=Object.freeze({x:r.x+a.x,y:r.y+a.y,height:r.height});return Object.freeze({anchor:Object.freeze({...t}),pageIndex:r.pageIndex,pageContent:i,pageStack:Object.freeze({x:o.x+i.x,y:o.y+i.y})})}function Ft(e,t){let r=[];for(let n of t.values()){let o=At(e,n);o&&r.push(o);}return r.length===0?Mt:Object.freeze(r)}function tt(e,t){return {documentMetadata:Et(e.documentProperties()),destinations:Ft(t,Lt(e))}}function yr(e,t){let r=e.destinations;if(r){for(let n of r)if(n.anchor.name===t)return n}}function rt(e={}){return Object.freeze({async decode(t,r,n){let o=rd(t,r);if(!o)throw new Error(`Unsupported or malformed ${r} image`);if(o.pixelWidth>n.maxDimension||o.pixelHeight>n.maxDimension||o.pixelWidth>n.maxPixels/o.pixelHeight)throw new Error("Image dimensions exceed resource limits");return Object.freeze({pixelWidth:o.pixelWidth,pixelHeight:o.pixelHeight,dpiX:o.dpiX??96,dpiY:o.dpiY??96})},...e.convertPreserved?{convertPreserved:e.convertPreserved}:{}})}var nt=new WeakMap;function ot(e,t){let r=nt.get(e);r||(r=id(e),nt.set(e,r));let n=r.styleCascade(),o=new Set;if(t===e.part())for(let d of xc(t,void 0,void 0,n,r.numberingIndex()))for(let h of Fb(d)?.slice(0,-1)??[])o.add(h.paragraph.id);let a=d=>{if(d.kind==="textValue")return false;let h=d.children.find(c=>c.kind!=="textValue"&&c.namespaceUri===fa$1&&c.localName==="pPr"),f=h?.kind!=="textValue"?h?.children.find(c=>c.kind!=="textValue"&&c.namespaceUri===fa$1&&c.localName==="rPr"):void 0;return f!==void 0&&ra(f,"vanish")},i=0,s=(d,h)=>{if(++i>_c||h>W||d.kind==="textValue")return false;if(d.kind==="paragraph"&&!o.has(d.id)&&(vc(d,n,false)||a(d))&&ff(d).length>0)return true;for(let f of d.children){if(i>=_c)break;if(s(f,h+1))return true}return false};return s(t.root,0)}var at=new WeakMap,Tt=new Set(["shape","rect","roundrect","oval","line","group","arc","curve","polyline","image"]);function Ct(e,t){let r=at.get(e.root);if(r&&r.stylesPart===t)return r.codes;let n=Va(t),o=new Set,a=[{node:e.root,scope:Mc(),depth:0,mcSelected:false,framed:false}],i=0;for(;a.length;){let{node:d,scope:h,depth:f,mcSelected:c,framed:p}=a.pop();if(++i>_c||f>W){o.add("scan-limit");break}if(d.kind==="textValue")continue;if(i+a.length+d.children.length>_c){o.add("scan-limit");break}let g=Lc(h,d),x=p||n(d),u=Kc(d)?d:void 0;if(u){if(cd(u,g).drawing)continue;let m=bd(u,g);m.refused&&o.add("scan-limit"),m.branch&&a.push({node:m.branch,scope:g,depth:f+1,mcSelected:true,framed:x});continue}if(!(!c&&Jc(d)&&!(x&&d.localName==="object"))){if(d.namespaceUri==="urn:schemas-microsoft-com:vml"&&d.localName==="textbox"){o.add("legacy-textbox");continue}d.namespaceUri==="urn:schemas-microsoft-com:vml"&&Tt.has(d.localName)&&!d.children.some(m=>m.kind!=="textValue"&&m.namespaceUri==="urn:schemas-microsoft-com:vml"&&m.localName==="textbox")&&o.add("legacy-drawing");for(let m of d.children)a.push({node:m,scope:g,depth:f+1,mcSelected:c,framed:x});}}let s=Object.freeze([...o]);return at.set(e.root,{stylesPart:t,codes:s}),s}function it(e){let t=new Set([e.part()]);for(let r of e.headerFooterPartsBySection())for(let n of [r.headers,r.footers])for(let o of n.values())t.add(o);for(let r of ["footnote","endnote"]){let n=eg(e.currentPackage(),r);n&&t.add(n);}return Object.freeze([...t].flatMap(r=>[...Ct(r,Cc(e.currentPackage())),...ot(e,r)?["unsupported-style-separator"]:[]].map(n=>Object.freeze({code:n,partName:r.name}))))}function st(e){let t=e.defaultTabStopPt?.(),r=e.view.part().name,n={view:e.view,measurer:e.measurer,producer:e.producer,cache:e.cache,styleCascade:e.styleCascade,numberingIndex:e.numberingIndex,defaultTabStopPt:t,compatibilityMode:e.compatibilityMode?.(),inlineDrawingLayoutForPart:e.inlineDrawingLayoutForPart,drawingTokenForParagraphForPart:e.drawingTokenForParagraphForPart,drawingLayoutEpochForPart:e.drawingLayoutEpochForPart,linkProjectors:e.linkProjectors,projectFieldLink:e.projectFieldLink,showFieldCodes:e.showFieldCodes,displayMode:e.displayMode,revisionAuthorFilter:e.revisionAuthorFilter},o=de(n),a={view:e.view,revision:e.revision,measurer:e.measurer,cache:e.cache,session:e.session,producer:e.producer,styleCascade:e.styleCascade,numberingIndex:e.numberingIndex,defaultTabStopPt:t,furniture:e.furniture,compatibilityMode:e.compatibilityMode,linkProjectors:e.linkProjectors,projectFieldLink:e.projectFieldLink,showFieldCodes:e.showFieldCodes,inlineDrawingLayout:e.inlineDrawingLayout,drawingTokenForParagraph:e.drawingTokenForParagraph,drawingLayoutEpoch:e.drawingLayoutEpoch,displayMode:e.displayMode,revisionAuthorFilter:e.revisionAuthorFilter},i={measurer:a.measurer,cache:a.cache,session:a.session,producer:a.producer,styleCascade:a.styleCascade?.(),defaultTabStopPt:a.defaultTabStopPt,compatibilityMode:a.compatibilityMode?.(),numberingIndex:a.numberingIndex?.(),sectionFurniture:a.furniture.sectionFurniture(),furniture:a.furniture.furniture(),evenAndOddHeaders:a.view.headerFooterPartsBySection()[0]?.evenAndOddHeaders===true,projectLink:a.linkProjectors.projectLink,projectFieldLink:a.projectFieldLink,showFieldCodes:a.showFieldCodes,documentProperties:a.view.documentProperties(),inlineDrawingLayout:a.inlineDrawingLayout,drawingTokenForParagraph:a.drawingTokenForParagraph,drawingLayoutEpoch:a.drawingLayoutEpoch,projectionTokenForParagraph:s=>a.linkProjectors.tokenForParagraphForPart(r,s),projectionTokenForTable:s=>a.linkProjectors.tokenForTableForPart(r,s),projectionEpoch:a.linkProjectors.epochForPart(r),notes:o,displayMode:a.displayMode,revisionAuthorFilter:a.revisionAuthorFilter};return Ie(a.view.part(),a.revision,i)}var Nt=65536;function ut(e,t){return {x:t.x-e.contentBox.x,y:t.y-e.contentBox.y}}function jt(e,t){return e.length===t.length&&e.every((r,n)=>r===t[n])}function _t(e,t,r){return e.rootStory!==t?false:t==="footnote"||t==="endnote"?e.noteScopeId===r:true}function Bt(e,t){if(t.story!=="textbox"||t.textboxPath.length===0)return null;let r=null;return ya(e,n=>{if(r||!_t(t,n.story,n.noteScopeId))return;let o=n.story==="header"||n.story==="footer"?a=>ta$1(a,n.origin,{x:e.box.x,y:e.box.y}):void 0;Ca(n.host,(a,i)=>{if(r||i.textboxDepth===0)return;let s=i.textboxPath.map(d=>d.drawingNodeId);jt(s,t.textboxPath)&&(r=ut(e,i.storyOrigin));},n.origin,o);}),r}function Vt(e,t){if(t.story==="textbox")return Bt(e,t)??{x:0,y:0};switch(t.rootStory){case "body":return {x:0,y:0};case "header":return e.header?Te(e,e.header.box):{x:0,y:0};case "footer":return e.footer?Te(e,e.footer.box):{x:0,y:0};case "footnote":case "endnote":{let n=(t.rootStory==="footnote"?e.footnotes:e.endnotes)?.notes.find(o=>o.scopeId===t.noteScopeId);return n?Te(e,n.box):{x:0,y:0}}case "note-separator":{let r=t.noteAreaKind==="endnotes"?e.endnotes:e.footnotes,n=r?.separator?.box;return r?.continuationNotice&&Ca(r.continuationNotice,o=>{o.paragraphId===t.source.start.paragraphId&&(n=r.continuationNotice.box);}),n?Te(e,n):{x:0,y:0}}default:return {x:0,y:0}}}function lt(e){return Object.freeze({x:e.x,y:e.y,width:e.width,height:e.height})}function pt(e,t){let r=Se(e);return Object.freeze({x:r.x+t.x,y:r.y+t.y,width:t.width,height:t.height})}function Kt(e,t){let r=Ye(e,{paragraphId:t.source.start.paragraphId,offset:t.source.start.offset},{preferredPageIndex:t.pageIndex});if(!r||r.pageIndex!==t.pageIndex)return;let n=e.pages[r.pageIndex];if(!n)return;let o=Vt(n,t),a=Object.freeze([lt({x:r.x+o.x,y:r.y+o.y,width:0,height:r.height})]);return Object.freeze({pageContent:a,pageStack:Object.freeze(a.map(i=>pt(n,i)))})}function zt(e,t,r){let n=r.filter(i=>i.pageIndex===t.pageIndex);if(n.length===0)return mt(t)?Kt(e,t):void 0;let o=e.pages[t.pageIndex];if(!o)return;let a=Object.freeze(n.map(i=>lt(i)));return Object.freeze({pageContent:a,pageStack:Object.freeze(a.map(i=>pt(o,i)))})}function mt(e){return e.source.start.paragraphId===e.source.end.paragraphId&&e.source.start.offset===e.source.end.offset}function dt(e,t){return `${e}\0${t}`}function Ht(e,t,r){let n=Math.max(e.start,t.offset),o=Math.min(e.end,r.offset);return o>n?{start:n,end:o}:null}function Wt(e,t){let r=new Map,n=new Map,o=new Set,a=0;let i=(s,d)=>{if(a>=Nt)return false;a+=1;let h=dt(s.pageIndex,d),f=n.get(h);return f?f.push(s):n.set(h,[s]),true};for(let[s,d]of t.entries())for(let[h,f]of d.occurrences.entries()){if(mt(f)||f.source.start.paragraphId!==f.source.end.paragraphId)continue;o.add(f.pageIndex);let c=`${s}\0${h}`,p={paragraphId:f.source.start.paragraphId,offset:f.source.start.offset},g={paragraphId:f.source.end.paragraphId,offset:f.source.end.offset},x=p.offset<=g.offset?{from:p,to:g}:{from:g,to:p};i({key:c,from:x.from,to:x.to,pageIndex:f.pageIndex},x.from.paragraphId);}if(n.size===0)return r;for(let s of e.pages)o.has(s.index)&&ya(s,d=>{let h=d.story==="header"||d.story==="footer"?f=>ta$1(f,d.origin,{x:s.box.x,y:s.box.y}):void 0;Ca(d.host,(f,c)=>{let p=ut(s,c.storyOrigin);for(let g of f.lines)for(let x of Ja(g)){let u=n.get(dt(s.index,x.paragraphId));if(u)for(let m of u){let w=Ht(x,m.from,m.to);if(!w)continue;let b=Oe(g,w.start,void 0,x),S=Oe(g,w.end,void 0,x),R=r.get(m.key)??[];R.push({pageIndex:s.index,x:Math.min(b,S)+p.x,y:g.box.y+p.y,width:Math.abs(S-b),height:g.box.height}),r.set(m.key,R);}}},d.origin,h);});return r}function ft(e,t){let r=false;for(let o of t)if(o.occurrences.length!==0){r=true;break}if(!r)return t;let n=Wt(e,t);return t.map((o,a)=>{if(o.occurrences.length===0)return o;let i=o.occurrences.map((s,d)=>{let h=`${a}\0${d}`,f=zt(e,s,n.get(h)??[]);return f?{...s,geometry:f}:s});return {...o,occurrences:Object.freeze(i)}})}function $t(e){let t=new Map,r=[{node:e.root,depth:0}];for(;r.length>0;){let{node:n,depth:o}=r.pop();if(!(n.kind==="textValue"||o>64)){n.kind==="paragraph"&&!t.has(n.id)&&t.set(n.id,t.size);for(let a=n.children.length-1;a>=0;a-=1)r.push({node:n.children[a],depth:o+1});}}return t}function yt(){let e=new Map,t=n=>{let o=e.get(n.root);if(o)return o;let a=$t(n);return e.set(n.root,a),a},r={retainRevisionItems:false,revisionSites:zi,locations:wa,commentAnchors:ch,deepOrder:t};return Object.freeze({collectReviewItems:n=>Aa(n,r),deepParagraphOrderOfPart:t})}function Ut(e,t){if(t)return true;let r=e.map(n=>n.root);for(;r.length>0;){let n=r.pop();if(xi(n))return true;if(n.kind!=="textValue")for(let o of n.children)r.push(o);}return false}function Gt(e,t){let r=[],n=new Set([t.name]),o=a=>{!a||n.has(a.name)||(n.add(a.name),r.push(a));};for(let a of ge$1(e)){for(let i of a.headers.values())o(i);for(let i of a.footers.values())o(i);}return o(eg(e,"footnote")),o(eg(e,"endnote")),r}function Yt(e,t){switch(t.story){case "body":return e.mainDocumentPart;case "header":case "footer":return t.host.partName;case "footnote":return eg(e,"footnote")?.name??null;case "endnote":return eg(e,"endnote")?.name??null;case "note-separator":return eg(e,t.noteAreaKind==="footnotes"?"footnote":"endnote")?.name??null;default:return t}}function Xt(e,t){let r=new Map;for(let n of e){let o=t.get(n.partName),a=o?.get(n.start.paragraphId),i=o?.get(n.end.paragraphId);if(a===void 0||i===void 0)continue;let s=Math.min(a,i),d=Math.max(a,i),h=r.get(n.partName);r.set(n.partName,{lower:Math.min(h?.lower??s,s),upper:Math.max(h?.upper??d,d)});}return r}function qt(e,t,r,n,o){let a=new Map(r.map(c=>[c.name,o(c)])),i=Xt(n,a),s=new Map,d=new Map,h=(c,p,g,x,u,m,w)=>{let b=a.get(c)?.get(u),S=i.get(c);if(b===void 0||!S||b<S.lower||b>S.upper)return;let R=s.get(c)??new Map;s.set(c,R);let V=d.get(c)??new Map;d.set(c,V);let j=JSON.stringify([p.story,p.noteScopeId,p.noteAreaKind]),X=g==="textbox"?JSON.stringify([j,"textbox",x]):j,H=R.get(u)??[],W=`${u}\0${p.page.index}\0${X}`,T=V.get(W);T||(T={pageIndex:p.page.index,story:g,rootStory:p.story,textboxPath:x,noteScopeId:p.noteScopeId,noteAreaKind:p.noteAreaKind,laneKey:X,intervals:[],intervalKeys:new Set},V.set(W,T),H.push(T),R.set(u,H));let y=`${m}\0${w}`;T.intervalKeys?.has(y)||(T.intervalKeys?.add(y),T.intervals.push({start:m,end:w}));};za(e,c=>{let p=Yt(t,c);!p||!i.has(p)||Ca(c.host,(g,x)=>{let u=x.textboxDepth>0?"textbox":c.story,m=x.textboxPath.map(b=>b.drawingNodeId),w=[];for(let b of g.lines){for(let S of b.spans)w.push(S.range);for(let S of b.drawings??[])w.push({paragraphId:S.paragraphId,start:S.start,end:S.start+1});}w.length===0&&w.push({paragraphId:g.range.paragraphId,start:g.range.start,end:g.range.end});for(let{paragraphId:b,start:S,end:R}of w)h(p,c,u,m,b,S,R);});}),Ba(e,c=>{let p=c.drawing.ownerPartName;c.drawing.accessibility.hidden||!i.has(p)||h(p,c.root,c.story,c.textboxPath.map(g=>g.drawingNodeId),c.drawing.paragraphId,c.drawing.start,c.drawing.start+1);});for(let c of s.values())for(let p of c.values())for(let g of p){g.intervals.sort((u,m)=>u.start-m.start||u.end-m.end);let x=[];for(let u of g.intervals){let m=x.at(-1);m&&u.start<=m.end?m.end=Math.max(m.end,u.end):x.push({...u});}g.intervals.splice(0,g.intervals.length,...x),g.intervalKeys=void 0;}let f=new Map;for(let[c,p]of s){let g=a.get(c);if(!g)continue;let x=[];for(let[u,m]of p){let w=g.get(u);w!==void 0&&x.push({paragraphId:u,position:w,laneKeys:new Set(m.map(({laneKey:b})=>b))});}x.sort((u,m)=>u.position-m.position),f.set(c,x);}return {byPart:s,orderByPart:a,visibleByPart:f}}function gt(e,t){let r=0,n=e.length;for(;r<n;){let o=r+n>>>1;e[o].position<t?r=o+1:n=o;}return r}function Jt(e,t){if(e.start.paragraphId===e.end.paragraphId)return [e.start.paragraphId];let r=t.orderByPart.get(e.partName),n=t.visibleByPart.get(e.partName),o=r?.get(e.start.paragraphId),a=r?.get(e.end.paragraphId);if(!r||!n||o===void 0||a===void 0)return [e.start.paragraphId,e.end.paragraphId];let i=Math.min(o,a),s=Math.max(o,a),d=new Set(t.byPart.get(e.partName)?.get(e.start.paragraphId)?.map(({laneKey:c})=>c)??[]),h=new Set(t.byPart.get(e.partName)?.get(e.end.paragraphId)?.map(({laneKey:c})=>c)??[]),f=new Set([...d].filter(c=>h.has(c)));return f.size===0?[e.start.paragraphId,e.end.paragraphId]:n.slice(gt(n,i),gt(n,s+1)).filter(c=>[...c.laneKeys].some(p=>f.has(p))).map(c=>c.paragraphId)}function Qt(e,t,r,n){return n?e.intervals.filter(a=>a.start<=t&&t<a.end).length>0?[{start:t,end:t}]:[]:e.intervals.flatMap(o=>{if(o.start===o.end)return [];let a={start:Math.max(o.start,t),end:Math.min(o.end,r)};return a.end>a.start?[a]:[]})}function Zt(e,t){let r=Number.NEGATIVE_INFINITY;for(let n of e)for(let o of n.intervals)r=Math.max(r,o.end);return t!==r?new Set:new Set(e.filter(n=>n.intervals.some(o=>o.end===r)))}function ht(e,t,r){let n=[],o=new Set;for(let[a,i]of e.entries()){let s=r===void 0?void 0:r===null?"neutral":a<r?"replaced":"replacement";for(let d of Jt(i,t)){let h=t.byPart.get(i.partName)?.get(d)??[],c=i.start.paragraphId===i.end.paragraphId&&i.start.offset===i.end.offset,p=d===i.start.paragraphId?i.start.offset:0,g=d===i.end.paragraphId?i.end.offset:Number.POSITIVE_INFINITY,x=c?Zt(h,p):new Set;for(let u of h){let m=Qt(u,p,g,c);c&&m.length===0&&x.has(u)&&(m=[{start:p,end:p}]);for(let w of m){let b=`${u.pageIndex}\0${u.story}\0${u.noteScopeId??""}\0${u.noteAreaKind??""}\0${u.textboxPath.join("\0")}\0${i.partName}\0${d}\0${w.start}\0${w.end}\0${s??""}`;o.has(b)||(o.add(b),n.push({pageIndex:u.pageIndex,physicalPageNumber:u.pageIndex+1,story:u.story,rootStory:u.rootStory,textboxPath:u.textboxPath,noteScopeId:u.noteScopeId,noteAreaKind:u.noteAreaKind,...s?{revisionRole:s}:{},source:{partName:i.partName,start:{paragraphId:d,offset:w.start},end:{paragraphId:d,offset:w.end}}}));}}}}return n}function wt(e,t){let r=2166136261,n=2654435769;for(let o=0;o<t.length;o+=1){let a=t.charCodeAt(o);r=Math.imul(r^a,16777619)>>>0,n=Math.imul(n^a+o,2246822507)>>>0,n^=n>>>13;}return `${e}_${t.length.toString(36)}_${r.toString(36)}_${n.toString(36)}`}function xt(e,t,r=wt){let n=new Map;for(let a of t){let i=r(e,a),s=n.get(i)??new Set;s.add(a),n.set(i,s);}let o=new Map;for(let[a,i]of n){let s=[...i].sort();for(let[d,h]of s.entries())o.set(h,s.length===1?a:`${a}_${d.toString(36)}`);}return o}function er(e){let t=new Set,r=new Set;for(let n of e){if(n.kind==="comment"){t.add(n.id),n.parentId!==void 0&&t.add(n.parentId),n.parentRevisionId!==void 0&&r.add(n.parentRevisionId);for(let o of n.replyIds)t.add(o);}if(n.kind==="revision"){r.add(n.id),n.pairedWith!==void 0&&r.add(n.pairedWith);for(let o of n.replyIds)t.add(o);}}return {comment:xt("comment",t),revision:xt("change",r)}}function B(e,t,r){return e.get(r)??wt(t,r)}function tr(e,t,r){return e.kind==="revision"?{kind:"tracked-change",id:B(r.revision,"change",e.id),change:e.revisionKind,...e.markDirection?{markDirection:e.markDirection}:{},author:e.author,...e.date!==void 0?{date:e.date}:{},text:e.text,replacedText:e.replacedText,nesting:e.nesting,...e.replacedRangeCount!==void 0?{replacedRangeCount:e.replacedRangeCount}:{},readOnly:e.readOnly,...e.pairedWith!==void 0?{pairedWith:B(r.revision,"change",e.pairedWith)}:{},replyIds:e.replyIds.map(n=>B(r.comment,"comment",n)),occurrences:t?ht(e.ranges,t,e.revisionKind==="replace"?e.replacedRangeCount??null:void 0):[]}:e.kind!=="comment"?null:{kind:"comment",id:B(r.comment,"comment",e.id),author:e.comment.author,initials:ua(e.comment),...e.comment.date!==void 0?{date:e.comment.date}:{},text:ta(e.comment),resolved:e.resolved,...e.parentId!==void 0?{parentId:B(r.comment,"comment",e.parentId)}:{},...e.parentRevisionId!==void 0?{parentRevisionId:B(r.revision,"change",e.parentRevisionId)}:{},replyIds:e.replyIds.map(n=>B(r.comment,"comment",n)),orphaned:e.orphaned,occurrences:t&&e.range?ht([e.range],t):[]}}function bt(e,t){let r=t.parts.get(t.mainDocumentPart);if(!r)return [];let n=Gt(t,r),o=[r,...n],a=t.parts.get(Z(t,r.name));if(!Ut(o,a))return [];let i=yt(),s=i.collectReviewItems({storyPart:r,furnitureParts:n,commentsPart:a,commentsExtendedPart:t.parts.get(_(t,r.name))});if(s.length===0)return [];let d=s.flatMap(c=>na(c)),h=d.length>0?qt(e,t,o,d,i.deepParagraphOrderOfPart):null,f=er(s);return s.map(c=>tr(c,h,f)).filter(c=>c!==null)}var rr=new Set(["part","validatedHandle"]);function Pt(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function Y(e,t,r,n,o){if(!(n!==void 0&&rr.has(n))){if(typeof e=="function")throw new TypeError("Semantic layout publication encountered a function value");if(!(e===null||typeof e!="object")&&!o?.has(e)){if(r.has(e))throw new TypeError("Semantic layout publication encountered a cyclic record graph");if(!t.has(e)){t.add(e),r.add(e);try{if(Array.isArray(e)){for(let a of e)Y(a,t,r,void 0,o);Object.freeze(e);return}if(!Pt(e))throw new TypeError("Semantic layout publication encountered a non-record value");for(let a of Reflect.ownKeys(e)){let i=Object.getOwnPropertyDescriptor(e,a);if(i){if(!("value"in i))throw new TypeError("Semantic layout publication encountered an accessor property");Y(i.value,t,r,a,o);}}Object.freeze(e);}finally{r.delete(e);}}}}}function St(e){if(!Pt(e))throw new TypeError("Semantic layout publication encountered a non-record value");let t=new Set;for(let n of e.pages)if(!(n===null||typeof n!="object"))for(let o of ["header","footer"]){let a=Object.getOwnPropertyDescriptor(n,o);if(!a||!("value"in a))continue;let i=a.value;if(i===null||typeof i!="object"||t.has(i))continue;let s=new Set;s.add(e),Y(i,new Set,s,o),t.add(i);}let r=(n,o)=>{let a=new Set;for(let i of n){let s=new Set;s.add(e),Y(i,a,s,void 0,o);}Object.freeze(n);};for(let n of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,n);if(!o)continue;if(!("value"in o))throw new TypeError("Semantic layout publication encountered an accessor property");if(n==="pages"&&Array.isArray(o.value)){r(o.value,t);continue}if(n==="reviewArtifacts"&&Array.isArray(o.value)){r(o.value);continue}let a=new Set;a.add(e),Y(o.value,new Set,a,n);}return Object.freeze(e),e}var nr=Object.freeze([]),k=class extends Error{constructor(r,n,o){super(n,o);this.code=r;this.name="ExportResourceError";}code};function or(e){try{return e instanceof k}catch{return false}}function ar(e){try{return e instanceof _d}catch{return false}}function ir(e){try{return e instanceof Error&&typeof e.message=="string"&&e.message.length>0?e.message:null}catch{return null}}function sr(e){if(or(e))return e;let t=ar(e),r=ir(e),n=r?`: ${r}`:"",o=new k(t?"layoutInvariant":"layoutFailed",t?`Authored geometry could not be represented within the bounded page model${n}`:`Export layout failed${n}`);return Object.defineProperty(o,"cause",{configurable:true,value:e}),o}function cr(e){if(e===void 0)return 6e4;if(!Number.isFinite(e)||e<=0)throw new RangeError("resourceTimeoutMs must be a positive finite number");return Math.max(1,e)}function vt(e){if(e==="all-markup"||e==="proposed"||e==="original")return e;throw new RangeError("displayMode must be all-markup, proposed, or original")}var dr=50,ue=64;function ur(e){switch(e.kind){case "pending":return true;case "ready":case "unrenderable":case "external":case "missing":return false;default:return e}}function lr(e){let t=false;return Ba(e,({drawing:r})=>{ur(r.resource)&&(t=true);}),t}function It(e){return !ArrayBuffer.isView(e)}function kn(e,t={}){if(t.signal?.aborted)return {ok:false,reason:"aborted"};let r=vt(t.displayMode??Ra),n=It(e),o=It(e)?{ok:true,view:e}:Ka(e);if(!o.ok)return o;let a=o.view,i=t.reuseAcrossRevisions??n,s=cr(t.resourceTimeoutMs),d=t.measurer??fa(),h=t.producer??(t.measurer?"host-export-measurer":"export-fixed-measurer"),f=gb({retainAcrossPasses:i}),c=0,p=new Set,g=()=>{c+=1;for(let y of p)y();p.clear();},x=kd({session:a,decodePort:t.imageDecodePort??rt(t.convertPreservedImage?{convertPreserved:t.convertPreservedImage}:void 0),onResourcesChanged:g}),u={view:a,measurer:d,paragraphCache:f,sessions:new Map,completed:new Map,inFlight:new Map,styles:id(a),fieldLinks:new Map,links:fe(a),drawingBundle:x,furniture:new Map},m=new AbortController,w=t.signal,b=false,S=()=>b?new k("aborted","Export resource settlement was aborted"):new k("disposed","Export session has been disposed"),R=()=>{b=true,V();};function V(){let y=u;if(y){u=null,w?.removeEventListener("abort",R),m.abort(w?.reason),y.drawingBundle.dispose(),y.paragraphCache.clear();for(let P of y.completed.values())Zc(P.internal),he(P.internal);for(let P of y.fieldLinks.values())P.registry.clear();y.fieldLinks.clear(),y.completed.clear(),y.inFlight.clear(),y.furniture.clear(),y.sessions.clear(),g();}}w?.addEventListener("abort",R,{once:true}),w?.aborted&&R();let j=()=>{if(!u)throw S();if(m.signal.aborted)throw new k("aborted","Export resource settlement was aborted")},X=(y,P,D,l)=>c!==y||u?.view.packageRevision()!==P||u?.view.currentPackage()!==D?Promise.resolve():(j(),new Promise((_,O)=>{let M=false,C,E=A=>{M||(M=true,C!==void 0&&clearTimeout(C),p.delete(L),m.signal.removeEventListener("abort",$),A?O(A):_());},L=()=>E(),$=()=>E(new k("aborted","Export resource settlement was aborted")),U=()=>{if(u?.view.packageRevision()!==P||u?.view.currentPackage()!==D){E();return}let A=l-Date.now();if(A<=0){E(new k("timedOut",`Image resources did not settle within ${s}ms`));return}C=setTimeout(U,Math.min(dr,A));};if(p.add(L),m.signal.addEventListener("abort",$,{once:true}),c!==y||u?.view.packageRevision()!==P||u?.view.currentPackage()!==D){E();return}U();})),H=async(y,P=0,D=Date.now()+s)=>{if(j(),Date.now()>=D)throw new k("timedOut",`Export layout did not stabilize within ${s}ms`);let l=u,_=D,O=l.view.packageRevision(),M=l.view.currentPackage(),C=l.completed.get(y);if(C&&C.revision===O&&C.pkg===M)return C.published;let E=()=>{if(l.view.packageRevision()===O&&l.view.currentPackage()===M)return null;if(P>=ue-1)throw new k("nonConvergent","Document revision did not stabilize during export layout");return H(y,P+1,_)},L=l.fieldLinks.get(y);if(!L||L.revision!==O||L.pkg!==M){let I=L?.registry??ge();I.clear(),L={revision:O,pkg:M,registry:I},l.fieldLinks.set(y,L),l.furniture.delete(y);}let $=L.registry,U=l.sessions.get(y)??He();l.sessions.set(y,U);let A=l.furniture.get(y);A||(A=ce({view:l.view,measurer:l.measurer,producer:h,cache:l.paragraphCache,styleCascade:l.styles.styleCascade,numberingIndex:l.styles.numberingIndex,defaultTabStopPt:l.styles.defaultTabStopPt,compatibilityMode:l.styles.compatibilityMode,displayMode:y,revisionAuthorFilter:void 0,showFieldCodes:false,inlineDrawingLayoutForPart:I=>l.drawingBundle.contextForPart(I),drawingLayoutTokenForPart:I=>l.drawingBundle.cacheTokenForPart(I),drawingTokenForParagraphForPart:(I,ne)=>l.drawingBundle.drawingTokenForParagraph(ne,I),linkProjectors:l.links,projectFieldLink:I=>$.project(I)}),l.furniture.set(y,A));for(let I=0;I<ue;I+=1){let ne=c;l.drawingBundle.sync(l.view);let le=E();if(le)return le;let N=st({view:l.view,revision:l.view.packageRevision(),measurer:l.measurer,cache:l.paragraphCache,session:U,producer:h,styleCascade:l.styles.styleCascade,defaultTabStopPt:l.styles.defaultTabStopPt,numberingIndex:l.styles.numberingIndex,furniture:A,compatibilityMode:l.styles.compatibilityMode,linkProjectors:l.links,projectFieldLink:v=>$.project(v),inlineDrawingLayout:l.drawingBundle.bodyContext,inlineDrawingLayoutForPart:v=>l.drawingBundle.contextForPart(v),drawingTokenForParagraph:v=>l.drawingBundle.drawingTokenForParagraph(v,l.view.part().name),drawingTokenForParagraphForPart:(v,q)=>l.drawingBundle.drawingTokenForParagraph(q,v),drawingLayoutEpoch:l.drawingBundle.cacheTokenForPart(l.view.part().name),drawingLayoutEpochForPart:v=>l.drawingBundle.cacheTokenForPart(v),displayMode:y,revisionAuthorFilter:void 0,showFieldCodes:false});if(!lr(N)){let v=E();if(v)return v;i||(Zc(N),he(N),l.paragraphCache.clear(),l.sessions.delete(y),l.furniture.delete(y));let q=bt(N,M),Rt=q.length===0?nr:Object.freeze(ft(N,q)),Ot=tt(l.view,N),kt={...N,...Ot,contentWarnings:it(l.view),reviewArtifacts:Rt},fe=St(kt);return l.completed.set(y,{revision:O,pkg:M,internal:N,published:fe}),fe}let pe=ne;for(;l.drawingBundle.pendingResourceCount()>0;){await X(pe,O,M,_),pe=c,j();let v=E();if(v)return v}j();let me=E();if(me)return me}throw new k("nonConvergent",`Image resources did not reach quiescence after ${ue} layout passes`)},W=y=>{let P;try{P=vt(y);}catch(O){return Promise.reject(O)}if(!u)return Promise.reject(S());let D=u,l=D.inFlight.get(P);if(l)return l;let _=H(P).catch(O=>{throw sr(O)}).finally(()=>D.inFlight.delete(P));return D.inFlight.set(P,_),_};return {ok:true,session:{layout:()=>W(r),layoutFor:W,validatedImageBytes(y){let P=u;return !P||y.resource.kind!=="ready"?null:P.drawingBundle.mintValidatedBytes(y.resource.validatedHandle,y.resource.contentId)?.slice()??null},dispose:V}}}export{st as a,yr as b,rt as c,k as d,kn as e};