@docx-editor.dev/core 2.32.0 → 2.34.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 (121) hide show
  1. package/README.md +1 -1
  2. package/THIRD_PARTY_NOTICES.md +1 -0
  3. package/dist/automation.cjs +1 -1
  4. package/dist/automation.d.ts +14 -52
  5. package/dist/automation.js +1 -1
  6. package/dist/binding.cjs +1 -1
  7. package/dist/binding.d.ts +14 -14
  8. package/dist/binding.js +1 -1
  9. package/dist/{chrome-print-CznJ0ucN.d.ts → chrome-print-DY0xsXm_.d.ts} +231 -125
  10. package/dist/chunk-37IYWENL.cjs +1 -0
  11. package/dist/chunk-37RNWL45.js +4 -0
  12. package/dist/chunk-5HUVQXET.cjs +4 -0
  13. package/dist/chunk-5JP3QQF7.js +7 -0
  14. package/dist/chunk-5KOLFKOB.cjs +5 -0
  15. package/dist/chunk-6MF5PN2E.js +236 -0
  16. package/dist/chunk-77JT2AU7.js +2 -0
  17. package/dist/{chunk-ETDZFNMI.js → chunk-7FUORGCW.js} +1 -1
  18. package/dist/chunk-A5BTVPET.cjs +236 -0
  19. package/dist/chunk-AFXFH2T2.js +3 -0
  20. package/dist/chunk-AVCYP7OY.js +5 -0
  21. package/dist/chunk-BL2E4QRA.js +1 -0
  22. package/dist/chunk-DB7X4Y6O.js +4 -0
  23. package/dist/chunk-DR6W23TB.cjs +2 -0
  24. package/dist/chunk-DYLB5U42.js +1 -0
  25. package/dist/chunk-E5BKDHIP.cjs +1 -0
  26. package/dist/chunk-IWXBRUPG.cjs +4 -0
  27. package/dist/{chunk-L5TYBFDB.js → chunk-KCUXXO3Q.js} +1 -1
  28. package/dist/chunk-KYA4Y2YB.js +1 -0
  29. package/dist/{chunk-6UDJUI3W.cjs → chunk-L74TCGVH.cjs} +1 -1
  30. package/dist/chunk-NBSSQSKY.js +30 -0
  31. package/dist/{chunk-OKMEMSKB.cjs → chunk-NEM774E3.cjs} +1 -1
  32. package/dist/chunk-NKZVMMHU.cjs +1 -0
  33. package/dist/chunk-TXIO5WYQ.cjs +32 -0
  34. package/dist/chunk-UKG2TXWH.cjs +7 -0
  35. package/dist/chunk-V7CO55DO.cjs +3 -0
  36. package/dist/chunk-VLQDQNSS.js +1 -0
  37. package/dist/chunk-VQOAC3VI.cjs +30 -0
  38. package/dist/chunk-YWJSQA2O.js +32 -0
  39. package/dist/chunk-ZJ74LCFI.cjs +1 -0
  40. package/dist/collaboration/replication.cjs +1 -1
  41. package/dist/collaboration/replication.d.ts +13 -4
  42. package/dist/collaboration/replication.js +1 -1
  43. package/dist/collaboration.d.ts +3 -3
  44. package/dist/contracts/document.d.ts +3 -3
  45. package/dist/contracts/editor.d.ts +10 -10
  46. package/dist/contracts/interaction.d.ts +2 -2
  47. package/dist/contracts/modules.d.ts +12 -12
  48. package/dist/contracts/types.d.ts +4 -4
  49. package/dist/{custom-node-writes-CLJKGD9t.d.ts → custom-node-writes-DparEcZK.d.ts} +45 -7
  50. package/dist/diagnostic-context-CkZKkKvB.d.ts +98 -0
  51. package/dist/{diagnostic-hints-DK8-V0fk.d.ts → diagnostic-hints-BTyb8yzX.d.ts} +3 -3
  52. package/dist/{document-protection-NaniLHWF.d.ts → document-protection-DdWxihIN.d.ts} +1 -1
  53. package/dist/{headless-document-view-Bcz9_Qva.d.ts → drawing-graphic-kind-CK0cMc7H.d.ts} +161 -18
  54. package/dist/drawing-preview-package-fFjXpOMS.d.ts +115 -0
  55. package/dist/{editor-DZwOTmlR.d.ts → editor-DDCkWqfD.d.ts} +125 -21
  56. package/dist/{editor-scope-B3L-1ALc.d.ts → editor-scope-CA6egMaK.d.ts} +5 -1
  57. package/dist/editor.cjs +1 -1
  58. package/dist/editor.css +4 -4
  59. package/dist/editor.d.ts +387 -78
  60. package/dist/editor.js +1 -1
  61. package/dist/export.cjs +2 -2
  62. package/dist/export.d.ts +47 -12
  63. package/dist/export.js +2 -2
  64. package/dist/{font-resolver-BlQNGdvR.d.ts → font-resolver-Bm9XqTNO.d.ts} +14 -0
  65. package/dist/index.cjs +1 -1
  66. package/dist/index.d.ts +38 -23
  67. package/dist/index.js +1 -1
  68. package/dist/{layout-shaping-E5J4Z1Gf.d.ts → layout-shaping-Byj-TwsI.d.ts} +1 -1
  69. package/dist/layout.cjs +1 -1
  70. package/dist/layout.d.ts +434 -199
  71. package/dist/layout.js +1 -1
  72. package/dist/metafile-drawing-Ce6TuWLm.d.ts +115 -0
  73. package/dist/{note-properties-Ds5R2_3F.d.ts → note-properties-BiunaIQa.d.ts} +31 -7
  74. package/dist/output.cjs +1 -1
  75. package/dist/output.d.ts +77 -13
  76. package/dist/output.js +1 -1
  77. package/dist/{protocol-DKa4qt7F.d.ts → protocol-Dn44dL4M.d.ts} +184 -120
  78. package/dist/{review-paragraph-order-Dc17w_6v.d.ts → review-paragraph-order-BWMXAKuA.d.ts} +1 -1
  79. package/dist/{revision-projection-Cn6rZJ7H.d.ts → revision-projection-DwFhgIR0.d.ts} +1 -1
  80. package/dist/{semantic-cell-selection-BaUR0iJ4.d.ts → semantic-cell-selection-DhalxEBH.d.ts} +2 -2
  81. package/dist/{semantic-interaction-CJoHLoOl.d.ts → semantic-interaction-QeuzEtAk.d.ts} +2 -4
  82. package/dist/{semantic-paint-BPw_n0li.d.ts → semantic-paint-BYDZbTiY.d.ts} +16 -9
  83. package/dist/{semantic-record-queries-C0rJ3sB4.d.ts → semantic-record-queries-Bf5bgQL3.d.ts} +1 -1
  84. package/dist/{semantic-records-BvN-WWst.d.ts → semantic-records-CzZiWMY8.d.ts} +348 -132
  85. package/dist/store.cjs +1 -1
  86. package/dist/store.d.ts +526 -19
  87. package/dist/store.js +1 -1
  88. package/dist/{tree-op-types-C_S2niXW.d.ts → tree-op-types-DKvJSH8T.d.ts} +1024 -501
  89. package/dist/{tree-package-store-CRHvMyNj.d.ts → tree-package-store-Cl3BkWXF.d.ts} +8 -3
  90. package/dist/{tree-session-contract-D1awo_dA.d.ts → tree-session-contract-BL50pqs8.d.ts} +15 -8
  91. package/dist/{unsupported-elements-CVos5cqe.d.ts → unsupported-elements-Bra4QTOM.d.ts} +1 -1
  92. package/licenses/ECMA-376.md +29 -0
  93. package/package.json +2 -2
  94. package/dist/bookmark-names-DDuAra_V.d.ts +0 -37
  95. package/dist/chunk-25EXMBV2.cjs +0 -5
  96. package/dist/chunk-3IEXDEFH.cjs +0 -7
  97. package/dist/chunk-65XBN67F.cjs +0 -2
  98. package/dist/chunk-6NVZNB7O.cjs +0 -3
  99. package/dist/chunk-ACLR4DMK.js +0 -1
  100. package/dist/chunk-B2BEELUE.js +0 -1
  101. package/dist/chunk-DDFHKQFU.js +0 -30
  102. package/dist/chunk-E4IAO4CY.cjs +0 -2
  103. package/dist/chunk-FDSL5OJU.cjs +0 -30
  104. package/dist/chunk-FS7CMYLT.js +0 -4
  105. package/dist/chunk-GDS24SZN.js +0 -30
  106. package/dist/chunk-GIY6NT2X.js +0 -5
  107. package/dist/chunk-GWM3AKUD.js +0 -18
  108. package/dist/chunk-HDOXACHP.js +0 -2
  109. package/dist/chunk-IILEENID.js +0 -1
  110. package/dist/chunk-MNF2K7NN.cjs +0 -30
  111. package/dist/chunk-O324RB6R.cjs +0 -1
  112. package/dist/chunk-QXJKYNYZ.js +0 -1
  113. package/dist/chunk-RALTVLB6.js +0 -2
  114. package/dist/chunk-SRVKFUFI.js +0 -3
  115. package/dist/chunk-TELQ52LG.cjs +0 -1
  116. package/dist/chunk-TJHE5EET.cjs +0 -1
  117. package/dist/chunk-UMMRURPE.js +0 -7
  118. package/dist/chunk-XJYZVGQR.cjs +0 -1
  119. package/dist/chunk-ZGTIE3QJ.cjs +0 -4
  120. package/dist/chunk-ZOZI27AW.cjs +0 -18
  121. package/dist/diagnostic-context-BtDUY3v2.d.ts +0 -31
@@ -0,0 +1 @@
1
+ 'use strict';var chunkTXIO5WYQ_cjs=require('./chunk-TXIO5WYQ.cjs'),chunkNEM774E3_cjs=require('./chunk-NEM774E3.cjs'),chunk5HUVQXET_cjs=require('./chunk-5HUVQXET.cjs'),chunkA5BTVPET_cjs=require('./chunk-A5BTVPET.cjs'),fflate=require('fflate');var Hr=Object.freeze({}),$r=Object.freeze([]);function Gr(e){let t=Object.keys(e);if(t.length===0)return Hr;let n={};for(let r of t){let o=e[r];o!==void 0&&(n[r]=o);}return Object.freeze(n)}function Yr(e){let t=new Map(chunkA5BTVPET_cjs.zi(e.part())),n=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(!n.has(i)){n.add(i);for(let[s,c]of chunkA5BTVPET_cjs.zi(i))t.has(s)||t.set(s,c);}let r=e.currentPackage();for(let o of ["footnote","endnote"]){let a=chunkA5BTVPET_cjs.gj(r,o);if(!(!a||n.has(a))){n.add(a);for(let[i,s]of chunkA5BTVPET_cjs.zi(a))t.has(i)||t.set(i,s);}}return t}function Xr(e,t){let n=chunkTXIO5WYQ_cjs.Qe(e,t);if(!n)return null;let r=e.pages[n.pageIndex];if(!r)return null;let o=chunkTXIO5WYQ_cjs.$e(r),a=chunkTXIO5WYQ_cjs.bf(e,t.paragraphId,n.pageIndex),i=Object.freeze({x:n.x+a.x,y:n.y+a.y,height:n.height});return Object.freeze({anchor:Object.freeze({...t}),pageIndex:n.pageIndex,pageContent:i,pageStack:Object.freeze({x:o.x+i.x,y:o.y+i.y})})}function qr(e,t){let n=[];for(let r of t.values()){let o=Xr(e,r);o&&n.push(o);}return n.length===0?$r:Object.freeze(n)}function Zt(e,t){return {documentMetadata:Gr(e.documentProperties()),destinations:qr(t,Yr(e))}}function ro(e,t){let n=e.destinations;if(n){for(let r of n)if(r.anchor.name===t)return r}}function er(e,t){let n=e[t];if(!Array.isArray(n)||n.length===0)return null;let r=Number(n[0]);return Number.isSafeInteger(r)&&r>0?r:null}var Qr={1:1,2:1,3:2,4:4,5:8,6:1,7:1,8:2,9:4,10:8,11:4,12:8,13:4},Jr=new Set([330,34665,34853,37500,50740,61440]);function Zr(e){if(e.length<8)return false;let t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=String.fromCharCode(e[0],e[1]);if(n!=="II"&&n!=="MM")return false;let r=n==="II";if(t.getUint16(2,r)!==42)return false;let o=t.getUint32(4,r);if(o<8||o+2>e.length)return false;let a=t.getUint16(o,r),i=o+2+a*12;if(i+4>e.length)return false;t.setUint32(i,0,r);for(let s=0;s<a;s+=1){let c=o+2+s*12;Jr.has(t.getUint16(c,r))&&t.setUint16(c,0,r);let d=Qr[t.getUint16(c+2,r)];if(d===void 0)continue;let u=t.getUint32(c+4,r)*d;u>4&&t.getUint32(c+8,r)+u>e.length&&t.setUint32(c+4,0,r);}return true}async function tr(e,t){let n=e.slice();if(!Zr(n))return null;let r=n.buffer,o=await import('utif2'),a=o.default??o,i=a.decode(r)[0];if(!i)return null;let s=er(i,"t256"),c=er(i,"t257");if(s===null||c===null||s>t.maxDimension||c>t.maxDimension||s>t.maxPixels/c)return null;let d=s*c;if(d*4>t.maxDecodedBytes||(a.decodeImage(r,i),i.width!==s||i.height!==c))return null;let u=a.toRGBA8(i);return u.length!==d*4?null:Object.freeze({rgba:u,pixelWidth:s,pixelHeight:c})}var me=null;function tn(e){if(!me){me=new Uint32Array(256);for(let n=0;n<256;n+=1){let r=n;for(let o=0;o<8;o+=1)r=r&1?3988292384^r>>>1:r>>>1;me[n]=r>>>0;}}let t=4294967295;for(let n of e)t=me[(t^n)&255]^t>>>8;return (t^4294967295)>>>0}function Oe(e,t){let n=new Uint8Array(12+t.length),r=new DataView(n.buffer);r.setUint32(0,t.length);for(let o=0;o<4;o+=1)n[4+o]=e.charCodeAt(o);return n.set(t,8),r.setUint32(8+t.length,tn(n.subarray(4,8+t.length))),n}function rn(e){let t=true;for(let n=0;n<e.length;n+=4){let r=e[n];if(e[n+3]!==255||e[n+1]!==r||e[n+2]!==r)return "rgba";r!==0&&r!==255&&(t=false);}return t?"bilevel":"grey"}function nn(e,t,n,r){let o=r==="bilevel"?Math.ceil(t/8):r==="grey"?t:t*4,a=new Uint8Array((o+1)*n);for(let i=0;i<n;i+=1){let s=i*(o+1)+1,c=i*t*4;if(r==="rgba")a.set(e.subarray(c,c+t*4),s);else if(r==="grey")for(let d=0;d<t;d+=1)a[s+d]=e[c+d*4];else for(let d=0;d<t;d+=1)e[c+d*4]===255&&(a[s+(d>>3)]|=128>>(d&7));}return r==="rgba"?{raw:a,depth:8,colour:6}:{raw:a,depth:r==="bilevel"?1:8,colour:0}}function rr(e,t,n){let{raw:r,depth:o,colour:a}=nn(e,t,n,rn(e)),i=new Uint8Array(13),s=new DataView(i.buffer);s.setUint32(0,t),s.setUint32(4,n),i[8]=o,i[9]=a;let c=[new Uint8Array([137,80,78,71,13,10,26,10]),Oe("IHDR",i),Oe("IDAT",fflate.zlibSync(r,{level:6})),Oe("IEND",new Uint8Array(0))],d=new Uint8Array(c.reduce((l,g)=>l+g.length,0)),u=0;for(let l of c)d.set(l,u),u+=l.length;return d}async function on(e,t,n){if(t!=="image/tiff")return null;let r=await tr(e,n);if(!r)return null;let o=rr(r.rgba,r.pixelWidth,r.pixelHeight);return Object.freeze({bytes:o,mime:"image/png"})}function nr(e={}){return Object.freeze({async decode(t,n,r){let o=chunkA5BTVPET_cjs.Of(t,n);if(!o)throw new Error(`Unsupported or malformed ${n} image`);if(o.pixelWidth>r.maxDimension||o.pixelHeight>r.maxDimension||o.pixelWidth>r.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})},convertPreserved:e.convertPreserved??on})}var or=new WeakMap;function ar(e,t){let n=or.get(e);n||(n=chunkTXIO5WYQ_cjs.zf(e),or.set(e,n));let r=n.styleCascade(),o=new Set;if(t===e.part())for(let c of chunkTXIO5WYQ_cjs.tf(t,void 0,void 0,r,n.numberingIndex()))for(let d of chunkTXIO5WYQ_cjs.if(c)?.slice(0,-1)??[])o.add(d.paragraph.id);let a=c=>{if(c.kind==="textValue")return false;let d=c.children.find(l=>l.kind!=="textValue"&&l.namespaceUri===chunkA5BTVPET_cjs.pa&&l.localName==="pPr"),u=d?.kind!=="textValue"?d?.children.find(l=>l.kind!=="textValue"&&l.namespaceUri===chunkA5BTVPET_cjs.pa&&l.localName==="rPr"):void 0;return u!==void 0&&chunkA5BTVPET_cjs.Ea(u,"vanish")},i=0,s=(c,d)=>{if(++i>chunkA5BTVPET_cjs.Me||d>chunkA5BTVPET_cjs.da||c.kind==="textValue")return false;if(c.kind==="paragraph"&&!o.has(c.id)&&(chunkTXIO5WYQ_cjs.rf(c,r,false)||a(c))&&chunkA5BTVPET_cjs.ui(c).length>0)return true;for(let u of c.children){if(i>=chunkA5BTVPET_cjs.Me)break;if(s(u,d+1))return true}return false};return s(t.root,0)}var ir=new WeakMap,an=new Set(["shape","rect","roundrect","oval","line","group","arc","curve","polyline","image"]);function sn(e,t){let n=ir.get(e.root);if(n&&n.stylesPart===t)return n.codes;let r=new Set,o=[{node:e.root,scope:chunkA5BTVPET_cjs.Nd(),depth:0,mcSelected:false}],a=0;for(;o.length;){let{node:s,scope:c,depth:d,mcSelected:u}=o.pop();if(++a>chunkA5BTVPET_cjs.Me||d>chunkA5BTVPET_cjs.da){r.add("scan-limit");break}if(s.kind==="textValue")continue;if(a+o.length+s.children.length>chunkA5BTVPET_cjs.Me){r.add("scan-limit");break}let l=chunkA5BTVPET_cjs.Md(c,s),g=chunkA5BTVPET_cjs.Ld(s)?s:void 0;if(g){if(chunkA5BTVPET_cjs.Qe(g,l).drawing)continue;let f=chunkA5BTVPET_cjs.Se(g,{ownerPartName:e.name,namespaceScope:l,supportedMcRequires:chunkA5BTVPET_cjs.Le,limits:chunkA5BTVPET_cjs.Ke});if(f){let y=f.textboxStory?.content;y&&o.push({node:y,scope:l,depth:d+1,mcSelected:false});continue}let h=chunkA5BTVPET_cjs.Pe(g,l);h.refused&&r.add("scan-limit"),h.branch&&o.push({node:h.branch,scope:l,depth:d+1,mcSelected:true});continue}if(!u&&chunkA5BTVPET_cjs.Zd(s)){let f=chunkA5BTVPET_cjs.$d(s,e.name)?.textboxStory?.content;f&&o.push({node:f,scope:l,depth:d+1,mcSelected:u});continue}if(s.namespaceUri==="urn:schemas-microsoft-com:vml"&&s.localName==="textbox"){r.add("legacy-textbox");continue}s.namespaceUri==="urn:schemas-microsoft-com:vml"&&an.has(s.localName)&&!s.children.some(f=>f.kind!=="textValue"&&f.namespaceUri==="urn:schemas-microsoft-com:vml"&&f.localName==="textbox")&&r.add("legacy-drawing");for(let f of s.children)o.push({node:f,scope:l,depth:d+1,mcSelected:u});}let i=Object.freeze([...r]);return ir.set(e.root,{stylesPart:t,codes:i}),i}function sr(e){let t=new Set([e.part()]);for(let n of e.headerFooterPartsBySection())for(let r of [n.headers,n.footers])for(let o of r.values())t.add(o);for(let n of ["footnote","endnote"]){let r=chunkA5BTVPET_cjs.gj(e.currentPackage(),n);r&&t.add(r);}return Object.freeze([...t].flatMap(n=>[...sn(n,chunkA5BTVPET_cjs.ld(e.currentPackage())),...ar(e,n)?["unsupported-style-separator"]:[]].map(r=>Object.freeze({code:r,partName:n.name}))))}function cr(e){return chunkA5BTVPET_cjs.Ng(e.fieldResults,()=>chunkTXIO5WYQ_cjs.Wf(cn(e)))}function cn(e){return chunkTXIO5WYQ_cjs.Xf(e.fieldResults,dn(e))}function*dn(e){let t=e.defaultTabStopPt?.(),n=e.view.part().name,r={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=chunkTXIO5WYQ_cjs.Of(r),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,fieldResults:e.fieldResults,inlineDrawingLayout:e.inlineDrawingLayout,drawingTokenForParagraph:e.drawingTokenForParagraph,drawingLayoutEpoch:e.drawingLayoutEpoch,displayMode:e.displayMode,revisionAuthorFilter:e.revisionAuthorFilter,bodyBlockLimit:e.bodyBlockLimit},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,fieldResults:a.fieldResults,documentProperties:a.view.documentProperties(),inlineDrawingLayout:a.inlineDrawingLayout,drawingTokenForParagraph:a.drawingTokenForParagraph,drawingLayoutEpoch:a.drawingLayoutEpoch,projectionTokenForParagraph:s=>a.linkProjectors.tokenForParagraphForPart(n,s),projectionTokenForTable:s=>a.linkProjectors.tokenForTableForPart(n,s),projectionEpoch:a.linkProjectors.epochForPart(n),notes:o,displayMode:a.displayMode,revisionAuthorFilter:a.revisionAuthorFilter,bodyBlockLimit:a.bodyBlockLimit};return yield*chunkTXIO5WYQ_cjs.Eg(a.view.part(),a.revision,i)}var ln=65536;function ur(e,t){return {x:t.x-e.contentBox.x,y:t.y-e.contentBox.y}}function un(e,t){return e.length===t.length&&e.every((n,r)=>n===t[r])}function pn(e,t,n){return e.rootStory!==t?false:t==="footnote"||t==="endnote"?e.noteScopeId===n:true}function mn(e,t){if(t.story!=="textbox"||t.textboxPath.length===0)return null;let n=null;return chunkTXIO5WYQ_cjs.Na(e,r=>{if(n||!pn(t,r.story,r.noteScopeId))return;let o=r.story==="header"||r.story==="footer"?a=>chunkTXIO5WYQ_cjs.Ia(a,r.origin,{x:e.box.x,y:e.box.y}):void 0;chunkTXIO5WYQ_cjs.Ra(r.host,(a,i)=>{if(n||i.textboxDepth===0)return;let s=i.textboxPath.map(c=>c.drawingNodeId);un(s,t.textboxPath)&&(n=ur(e,i.storyOrigin));},r.origin,o);}),n}function fn(e,t){if(t.story==="textbox")return mn(e,t)??{x:0,y:0};switch(t.rootStory){case "body":return {x:0,y:0};case "header":return e.header?chunkTXIO5WYQ_cjs.af(e,e.header.box):{x:0,y:0};case "footer":return e.footer?chunkTXIO5WYQ_cjs.af(e,e.footer.box):{x:0,y:0};case "footnote":case "endnote":{let r=(t.rootStory==="footnote"?e.footnotes:e.endnotes)?.notes.find(o=>o.scopeId===t.noteScopeId);return r?chunkTXIO5WYQ_cjs.af(e,r.box):{x:0,y:0}}case "note-separator":{let n=t.noteAreaKind==="endnotes"?e.endnotes:e.footnotes,r=n?.separator?.box;return n?.continuationNotice&&chunkTXIO5WYQ_cjs.Ra(n.continuationNotice,o=>{o.paragraphId===t.source.start.paragraphId&&(r=n.continuationNotice.box);}),r?chunkTXIO5WYQ_cjs.af(e,r):{x:0,y:0}}default:return {x:0,y:0}}}function pr(e){return Object.freeze({x:e.x,y:e.y,width:e.width,height:e.height})}function mr(e,t){let n=chunkTXIO5WYQ_cjs.$e(e);return Object.freeze({x:n.x+t.x,y:n.y+t.y,width:t.width,height:t.height})}function yn(e,t){let n=chunkTXIO5WYQ_cjs.Qe(e,{paragraphId:t.source.start.paragraphId,offset:t.source.start.offset},{preferredPageIndex:t.pageIndex});if(!n||n.pageIndex!==t.pageIndex)return;let r=e.pages[n.pageIndex];if(!r)return;let o=fn(r,t),a=Object.freeze([pr({x:n.x+o.x,y:n.y+o.y,width:0,height:n.height})]);return Object.freeze({pageContent:a,pageStack:Object.freeze(a.map(i=>mr(r,i)))})}function gn(e,t,n){let r=n.filter(i=>i.pageIndex===t.pageIndex);if(r.length===0)return fr(t)?yn(e,t):void 0;let o=e.pages[t.pageIndex];if(!o)return;let a=Object.freeze(r.map(i=>pr(i)));return Object.freeze({pageContent:a,pageStack:Object.freeze(a.map(i=>mr(o,i)))})}function fr(e){return e.source.start.paragraphId===e.source.end.paragraphId&&e.source.start.offset===e.source.end.offset}function lr(e,t){return `${e}\0${t}`}function hn(e,t,n){let r=Math.max(e.start,t.offset),o=Math.min(e.end,n.offset);return o>r?{start:r,end:o}:null}function xn(e,t){let n=new Map,r=new Map,o=new Set,a=0;let i=(s,c)=>{if(a>=ln)return false;a+=1;let d=lr(s.pageIndex,c),u=r.get(d);return u?u.push(s):r.set(d,[s]),true};for(let[s,c]of t.entries())for(let[d,u]of c.occurrences.entries()){if(fr(u)||u.source.start.paragraphId!==u.source.end.paragraphId)continue;o.add(u.pageIndex);let l=`${s}\0${d}`,g={paragraphId:u.source.start.paragraphId,offset:u.source.start.offset},f={paragraphId:u.source.end.paragraphId,offset:u.source.end.offset},h=g.offset<=f.offset?{from:g,to:f}:{from:f,to:g};i({key:l,from:h.from,to:h.to,pageIndex:u.pageIndex},h.from.paragraphId);}if(r.size===0)return n;for(let s of e.pages)o.has(s.index)&&chunkTXIO5WYQ_cjs.Na(s,c=>{let d=c.story==="header"||c.story==="footer"?u=>chunkTXIO5WYQ_cjs.Ia(u,c.origin,{x:s.box.x,y:s.box.y}):void 0;chunkTXIO5WYQ_cjs.Ra(c.host,(u,l)=>{let g=ur(s,l.storyOrigin);for(let f of u.lines)for(let h of chunkTXIO5WYQ_cjs.Ya(f)){let y=r.get(lr(s.index,h.paragraphId));if(y)for(let b of y){let P=hn(h,b.from,b.to);if(!P)continue;let x=chunkTXIO5WYQ_cjs.Fe(f,P.start,void 0,h),R=chunkTXIO5WYQ_cjs.Fe(f,P.end,void 0,h,P.end>P.start),O=n.get(b.key)??[];O.push({pageIndex:s.index,x:Math.min(x,R)+g.x,y:f.box.y+g.y,width:Math.abs(R-x),height:f.box.height}),n.set(b.key,O);}}},c.origin,d);});return n}function yr(e,t){let n=false;for(let o of t)if(o.occurrences.length!==0){n=true;break}if(!n)return t;let r=xn(e,t);return t.map((o,a)=>{if(o.occurrences.length===0)return o;let i=o.occurrences.map((s,c)=>{let d=`${a}\0${c}`,u=gn(e,s,r.get(d)??[]);return u?{...s,geometry:u}:s});return {...o,occurrences:Object.freeze(i)}})}function wn(e){let t=new Map,n=[{node:e.root,depth:0}];for(;n.length>0;){let{node:r,depth:o}=n.pop();if(!(r.kind==="textValue"||o>64)){r.kind==="paragraph"&&!t.has(r.id)&&t.set(r.id,t.size);for(let a=r.children.length-1;a>=0;a-=1)n.push({node:r.children[a],depth:o+1});}}return t}function gr(){let e=new Map,t=r=>{let o=e.get(r.root);if(o)return o;let a=wn(r);return e.set(r.root,a),a},n={retainRevisionItems:false,revisionSites:chunkA5BTVPET_cjs.Jl,locations:chunkA5BTVPET_cjs.Xl,commentAnchors:chunkA5BTVPET_cjs.Lj,deepOrder:t};return Object.freeze({collectReviewItems:r=>chunkA5BTVPET_cjs.$l(r,n),deepParagraphOrderOfPart:t})}var hr=new WeakMap,fe={};function De(e,t){let n=hr.get(e??fe)??new WeakMap;hr.set(e??fe,n);let r=n.get(t??fe);if(!r){let o=chunkTXIO5WYQ_cjs.kf(e);r={table:o,numbering:chunkTXIO5WYQ_cjs.Ld(chunkTXIO5WYQ_cjs.nd(t),o)},n.set(t??fe,r);}return r}var Ee=new Set(["pPrChange","rPr","sectPr"]),ke=new Set(["rPrChange","ins","del","moveFrom","moveTo"]),bn=new Set(["ind","spacing","rFonts","lang"]),Pn={ind:[["firstLine","hanging"]],rFonts:[["ascii","asciiTheme"],["hAnsi","hAnsiTheme"],["eastAsia","eastAsiaTheme"],["cs","cstheme"]]},vn={ind:{start:"left",end:"right"}},Rn={ind:new Set(["startChars","endChars","leftChars","rightChars","firstLineChars","hangingChars"])},Me=new Set(["dstrike","noProof","webHidden","specVanish","rtl","cs","oMath","keepNext","keepLines","pageBreakBefore","suppressLineNumbers","suppressAutoHyphens","contextualSpacing","mirrorIndents","suppressOverlap","bidi"]);for(let e of chunkTXIO5WYQ_cjs.M)Me.add(e);var wr=new Set(["0","false","off"]);function Sn(e,t,n,r){if(Me.has(e))return t==="val"&&wr.has(n);switch(e){case "jc":return n==="start"||!r&&n==="left";case "ind":return n==="0";case "u":case "highlight":return n==="none";case "vertAlign":return n==="baseline";case "color":return n==="auto";case "position":return n==="0";case "w":return n==="100";default:return false}}function In(e){let t=vn[e.localName],n=Rn[e.localName],r={};for(let[o,a]of Object.entries(e.attributes??{})){if(n?.has(o))return null;let i=t?.[o]??o;i!==o&&e.attributes?.[i]!==void 0||(r[i]=a);}return Me.has(e.localName)&&r.val===void 0&&(r.val="true"),r}function On(e,t,n){let r={...t};for(let o of Pn[e]??[])if(o.some(a=>n[a]!==void 0))for(let a of o)delete r[a];return Object.assign(r,n)}function br(e,t){let n=new Map;for(let i of e){if(t.has(i.localName))continue;let s=In(i);if(!s)return null;let c=n.get(i.localName);n.set(i.localName,c&&bn.has(i.localName)?On(i.localName,c,s):s);}let r=n.get("bidi"),o=r!==void 0&&!wr.has(r.val??"true"),a=[];for(let[i,s]of n){let c=Object.entries(s).filter(([d,u])=>!Sn(i,d,u,o)).sort(([d],[u])=>d.localeCompare(u));c.length===0&&Object.keys(s).length>0||a.push(`${i}(${c.map(([d,u])=>`${d}=${u}`).join(",")})`);}return a.sort().join(" ")}function ye(e,t){let n=[];for(let r of e?.children??[]){if(r.kind==="textValue")continue;let o=r.namespaceUri===chunkA5BTVPET_cjs.pa;o&&t.has(r.localName)||o&&!r.children.some(a=>a.kind!=="textValue")||n.push(chunkA5BTVPET_cjs.Ja(r));}return n.join("\0")}function ge(e,t){let n="";for(let r of e)r.localName===t&&(n=r.attributes?.val??"");return n}function Pr(e,t){let n=chunkTXIO5WYQ_cjs.mf(e.table,t).paragraphPropertyNodes,r=chunkTXIO5WYQ_cjs.Jd(n);if(!r||r.numId==="0")return null;let o=chunkTXIO5WYQ_cjs.od(e.numbering,r.numId,r.ilvl);return (o&&chunkTXIO5WYQ_cjs.Zc(o.level))??void 0}function xr(e,t){let n=Pr(e,t);if(n===void 0)return null;let r=chunkTXIO5WYQ_cjs.mf(e.table,t,void 0,n??void 0);return br(r.paragraphProperties,Ee)}function vr(e,t,n){let r=chunkTXIO5WYQ_cjs.wd(t);if(ge(chunkTXIO5WYQ_cjs.yb(n),"pStyle")!==ge(chunkTXIO5WYQ_cjs.yb(r),"pStyle")||ye(n,Ee)!==ye(r,Ee))return false;let o=xr(e,n);return o!==null&&o===xr(e,r)}function Rr(e,t,n,r){let o=chunkTXIO5WYQ_cjs.vd(t),a=chunkTXIO5WYQ_cjs.yb(n),i=chunkTXIO5WYQ_cjs.yb(o);if(ge(a,"rStyle")!==ge(i,"rStyle")||ye(n,ke)!==ye(o,ke))return false;let s=Pr(e,r);if(s===void 0)return false;let c=chunkTXIO5WYQ_cjs.mf(e.table,r,void 0,s??void 0).runProperties,d=l=>br(chunkTXIO5WYQ_cjs.of(c,l,e.table),ke),u=d(a);return u!==null&&u===d(i)}function Ir(e){return {pkg:e,stylesRoot:chunkA5BTVPET_cjs.ld(e)?.root??null,numberingRoot:chunkA5BTVPET_cjs.md(e)}}var kn=64,Sr=new WeakMap;function Ae(e){return e.kind==="revision"&&e.revisionKind==="format"&&(e.formattingKind==="pPrChange"||e.formattingKind==="rPrChange")&&!e.readOnly&&e.ranges.length>0}function En(e,t){let n=null,r=chunkA5BTVPET_cjs.db(e,t);for(let o=0;r&&o<kn;o+=1){if(r.kind==="tableCell"||r.localName==="tc")return null;r.kind==="paragraph"&&(n??=r),r=chunkA5BTVPET_cjs.db(e,r.id);}return r?null:n}function Dn(e,t,n,r){let o=chunkA5BTVPET_cjs.cb(e,t);if(!o||o.kind==="textValue")return false;let a=chunkA5BTVPET_cjs.db(e,t);if(!a)return false;let i=En(e,a.id);if(!i||!r.has(i.id))return false;let s=chunkTXIO5WYQ_cjs.wd(i),c=Sr.get(o);if(c&&c.context===n&&c.current===a&&c.paragraph===s)return c.inert;let d=o.localName==="pPrChange"?a===s&&vr(n,o,a):o.localName==="rPrChange"&&Rr(n,o,a,s);return Sr.set(o,{context:n,current:a,paragraph:s,inert:d}),d}function Or(e,t,n){if(!Ae(e))return false;let r=t.pkg.parts.get(e.ranges[0].partName),o=chunkA5BTVPET_cjs.fl(e),a=new Set(e.ranges.map(i=>i.start.paragraphId));return !!r&&o.length>0&&o.every(i=>Dn(r,i,n,a))}function kr(e,t){if(!e.some(Ae))return e;let n=De(t.stylesRoot,t.numberingRoot),r=e.filter(o=>!Or(o,t,n));return r.length===e.length?e:chunkA5BTVPET_cjs.am(r)}function da(e,t){if(!e.some(Ae))return [];let n=De(t.stylesRoot,t.numberingRoot);return e.filter(r=>Or(r,t,n))}function Mn(e,t){if(t)return true;let n=e.map(r=>r.root);for(;n.length>0;){let r=n.pop();if(chunkA5BTVPET_cjs.Hl(r))return true;if(r.kind!=="textValue")for(let o of r.children)n.push(o);}return false}function Cr(e,t){let n=[],r=new Set([t.name]),o=a=>{!a||r.has(a.name)||(r.add(a.name),n.push(a));};for(let a of chunkA5BTVPET_cjs.of(e)){for(let i of a.headers.values())o(i);for(let i of a.footers.values())o(i);}return o(chunkA5BTVPET_cjs.gj(e,"footnote")),o(chunkA5BTVPET_cjs.gj(e,"endnote")),n}function An(e,t){switch(t.story){case "body":return e.mainDocumentPart;case "header":case "footer":return t.host.partName;case "footnote":return chunkA5BTVPET_cjs.gj(e,"footnote")?.name??null;case "endnote":return chunkA5BTVPET_cjs.gj(e,"endnote")?.name??null;case "note-separator":return chunkA5BTVPET_cjs.gj(e,t.noteAreaKind==="footnotes"?"footnote":"endnote")?.name??null;default:return t}}function Ln(e,t){let n=new Map;for(let r of e){let o=t.get(r.partName),a=o?.get(r.start.paragraphId),i=o?.get(r.end.paragraphId);if(a===void 0||i===void 0)continue;let s=Math.min(a,i),c=Math.max(a,i),d=n.get(r.partName);n.set(r.partName,{lower:Math.min(d?.lower??s,s),upper:Math.max(d?.upper??c,c)});}return n}function Cn(e,t,n,r,o){let a=new Map(n.map(l=>[l.name,o(l)])),i=Ln(r,a),s=new Map,c=new Map,d=(l,g,f,h,y,b,P)=>{let x=a.get(l)?.get(y),R=i.get(l);if(x===void 0||!R||x<R.lower||x>R.upper)return;let O=s.get(l)??new Map;s.set(l,O);let V=c.get(l)??new Map;c.set(l,V);let $=JSON.stringify([g.story,g.noteScopeId,g.noteAreaKind]),K=f==="textbox"?JSON.stringify([$,"textbox",h]):$,G=O.get(y)??[],_=`${y}\0${g.page.index}\0${K}`,T=V.get(_);T||(T={pageIndex:g.page.index,story:f,rootStory:g.story,textboxPath:h,noteScopeId:g.noteScopeId,noteAreaKind:g.noteAreaKind,laneKey:K,intervals:[],intervalKeys:new Set},V.set(_,T),G.push(T),O.set(y,G));let Y=`${b}\0${P}`;T.intervalKeys?.has(Y)||(T.intervalKeys?.add(Y),T.intervals.push({start:b,end:P}));};chunkTXIO5WYQ_cjs.Oa(e,l=>{let g=An(t,l);!g||!i.has(g)||chunkTXIO5WYQ_cjs.Ra(l.host,(f,h)=>{let y=h.textboxDepth>0?"textbox":l.story,b=h.textboxPath.map(x=>x.drawingNodeId),P=[];for(let x of f.lines){for(let R of x.spans)P.push(R.range);for(let R of x.drawings??[])P.push({paragraphId:R.paragraphId,start:R.start,end:R.start+1});}P.length===0&&P.push({paragraphId:f.range.paragraphId,start:f.range.start,end:f.range.end});for(let{paragraphId:x,start:R,end:O}of P)d(g,l,y,b,x,R,O);});}),chunkTXIO5WYQ_cjs.Qa(e,l=>{let g=l.drawing.ownerPartName;l.drawing.accessibility.hidden||!i.has(g)||d(g,l.root,l.story,l.textboxPath.map(f=>f.drawingNodeId),l.drawing.paragraphId,l.drawing.start,l.drawing.start+1);});for(let l of s.values())for(let g of l.values())for(let f of g){f.intervals.sort((y,b)=>y.start-b.start||y.end-b.end);let h=[];for(let y of f.intervals){let b=h.at(-1);b&&y.start<=b.end?b.end=Math.max(b.end,y.end):h.push({...y});}f.intervals.splice(0,f.intervals.length,...h),f.intervalKeys=void 0;}let u=new Map;for(let[l,g]of s){let f=a.get(l);if(!f)continue;let h=[];for(let[y,b]of g){let P=f.get(y);P!==void 0&&h.push({paragraphId:y,position:P,laneKeys:new Set(b.map(({laneKey:x})=>x))});}h.sort((y,b)=>y.position-b.position),u.set(l,h);}return {byPart:s,orderByPart:a,visibleByPart:u}}function Er(e,t){let n=0,r=e.length;for(;n<r;){let o=n+r>>>1;e[o].position<t?n=o+1:r=o;}return n}function Tn(e,t){if(e.start.paragraphId===e.end.paragraphId)return [e.start.paragraphId];let n=t.orderByPart.get(e.partName),r=t.visibleByPart.get(e.partName),o=n?.get(e.start.paragraphId),a=n?.get(e.end.paragraphId);if(!n||!r||o===void 0||a===void 0)return [e.start.paragraphId,e.end.paragraphId];let i=Math.min(o,a),s=Math.max(o,a),c=new Set(t.byPart.get(e.partName)?.get(e.start.paragraphId)?.map(({laneKey:l})=>l)??[]),d=new Set(t.byPart.get(e.partName)?.get(e.end.paragraphId)?.map(({laneKey:l})=>l)??[]),u=new Set([...c].filter(l=>d.has(l)));return u.size===0?[e.start.paragraphId,e.end.paragraphId]:r.slice(Er(r,i),Er(r,s+1)).filter(l=>[...l.laneKeys].some(g=>u.has(g))).map(l=>l.paragraphId)}function Fn(e,t,n,r){return r?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,n)};return a.end>a.start?[a]:[]})}function Nn(e,t){let n=Number.NEGATIVE_INFINITY;for(let r of e)for(let o of r.intervals)n=Math.max(n,o.end);return t!==n?new Set:new Set(e.filter(r=>r.intervals.some(o=>o.end===n)))}function Dr(e,t,n){let r=[],o=new Set;for(let[a,i]of e.entries()){let s=n===void 0?void 0:n===null?"neutral":a<n?"replaced":"replacement";for(let c of Tn(i,t)){let d=t.byPart.get(i.partName)?.get(c)??[],l=i.start.paragraphId===i.end.paragraphId&&i.start.offset===i.end.offset,g=c===i.start.paragraphId?i.start.offset:0,f=c===i.end.paragraphId?i.end.offset:Number.POSITIVE_INFINITY,h=l?Nn(d,g):new Set;for(let y of d){let b=Fn(y,g,f,l);l&&b.length===0&&h.has(y)&&(b=[{start:g,end:g}]);for(let P of b){let x=`${y.pageIndex}\0${y.story}\0${y.noteScopeId??""}\0${y.noteAreaKind??""}\0${y.textboxPath.join("\0")}\0${i.partName}\0${c}\0${P.start}\0${P.end}\0${s??""}`;o.has(x)||(o.add(x),r.push({pageIndex:y.pageIndex,physicalPageNumber:y.pageIndex+1,story:y.story,rootStory:y.rootStory,textboxPath:y.textboxPath,noteScopeId:y.noteScopeId,noteAreaKind:y.noteAreaKind,...s?{revisionRole:s}:{},source:{partName:i.partName,start:{paragraphId:c,offset:P.start},end:{paragraphId:c,offset:P.end}}}));}}}}return r}function Tr(e,t){let n=2166136261,r=2654435769;for(let o=0;o<t.length;o+=1){let a=t.charCodeAt(o);n=Math.imul(n^a,16777619)>>>0,r=Math.imul(r^a+o,2246822507)>>>0,r^=r>>>13;}return `${e}_${t.length.toString(36)}_${n.toString(36)}_${r.toString(36)}`}function Mr(e,t,n=Tr){let r=new Map;for(let a of t){let i=n(e,a),s=r.get(i)??new Set;s.add(a),r.set(i,s);}let o=new Map;for(let[a,i]of r){let s=[...i].sort();for(let[c,d]of s.entries())o.set(d,s.length===1?a:`${a}_${c.toString(36)}`);}return o}function jn(e){let t=new Set,n=new Set;for(let r of e){if(r.kind==="comment"){t.add(r.id),r.parentId!==void 0&&t.add(r.parentId),r.parentRevisionId!==void 0&&n.add(r.parentRevisionId);for(let o of r.replyIds)t.add(o);}if(r.kind==="revision"){n.add(r.id),r.pairedWith!==void 0&&n.add(r.pairedWith);for(let o of r.replyIds)t.add(o);}}return {comment:Mr("comment",t),revision:Mr("change",n)}}function U(e,t,n){return e.get(n)??Tr(t,n)}var Ar=new WeakMap;function _n(e){let t=Ar.get(e.root);if(t)return t;let n=new Map,r=0,o=[e.root];for(;o.length>0;){let a=o.pop();if(!(a.kind==="textValue"||a.kind==="text"||a.kind==="runProperties"||a.kind==="paragraphProperties")){if(a.kind==="commentReference"){let i=chunkA5BTVPET_cjs.ef(a,chunkA5BTVPET_cjs.pa,"id");i!==void 0&&n.set(i,r++);continue}for(let i=a.children.length-1;i>=0;i-=1)o.push(a.children[i]);}}return Ar.set(e.root,n),n}function Bn(e,t,n,r){if(e.kind==="revision")return {kind:"tracked-change",id:U(n.revision,"change",e.id),change:e.revisionKind,...e.structuralChanges?{structuralChanges:e.structuralChanges}:{},...e.markDirection?{markDirection:e.markDirection}:{},author:e.author,...e.date!==void 0?{date:e.date}:{},text:chunkA5BTVPET_cjs.tb(e.text),replacedText:chunkA5BTVPET_cjs.tb(e.replacedText),nesting:e.nesting,...e.replacedRangeCount!==void 0?{replacedRangeCount:e.replacedRangeCount}:{},readOnly:e.readOnly,...e.pairedWith!==void 0?{pairedWith:U(n.revision,"change",e.pairedWith)}:{},replyIds:e.replyIds.map(a=>U(n.comment,"comment",a)),occurrences:t?Dr(e.ranges,t,e.revisionKind==="replace"?e.replacedRangeCount??null:void 0):[]};if(e.kind!=="comment")return null;let o=r.get(e.id);return {kind:"comment",id:U(n.comment,"comment",e.id),author:e.comment.author,initials:chunkA5BTVPET_cjs.Vl(e.comment),...e.comment.initials?.trim()?{declaredInitials:chunkA5BTVPET_cjs.Vl({...e.comment,author:""})}:{},...o!==void 0?{referenceOrder:o}:{},...e.comment.date!==void 0?{date:e.comment.date}:{},text:chunkA5BTVPET_cjs.Tl(e.comment),resolved:e.resolved,...e.parentId!==void 0?{parentId:U(n.comment,"comment",e.parentId)}:{},...e.parentRevisionId!==void 0?{parentRevisionId:U(n.revision,"change",e.parentRevisionId)}:{},replyIds:e.replyIds.map(a=>U(n.comment,"comment",a)),orphaned:e.orphaned,occurrences:t&&e.range?Dr([e.range],t):[]}}function Fr(e){let t=e.parts.get(e.mainDocumentPart);if(!t)return null;let n=Cr(e,t),r=[t,...n],o=e.parts.get(chunk5HUVQXET_cjs.$(e,t.name));if(!Mn(r,o))return null;let a=gr(),i=a.collectReviewItems({storyPart:t,furnitureParts:n,commentsPart:o,commentsExtendedPart:e.parts.get(chunk5HUVQXET_cjs.aa(e,t.name))}),s=kr(i,Ir(e)),c=new Set(s.map(l=>l.id)),d=chunkNEM774E3_cjs.a(i.filter(l=>!c.has(l.id))),u={sites:new Set(d.sites),paragraphs:d.paragraphs,key:chunkNEM774E3_cjs.c(chunkA5BTVPET_cjs.ld(e)?.root??null,chunkA5BTVPET_cjs.md(e))};return {parts:r,derivation:a,items:s,unlistedSites:u}}var Un=new Map,Lr=new WeakMap,Vn={sites:new Set,paragraphs:new Map,key:""};function Nr(e){let t=Lr.get(e);if(!t){let n=e.parts.get(e.mainDocumentPart);t=n!==void 0&&[n,...Cr(e,n)].some(o=>chunkA5BTVPET_cjs.Il(o).some(a=>a.propertyChange))&&Fr(e)?.unlistedSites||Vn,Lr.set(e,t);}return t}function jr(e,t){let n=Fr(t);if(!n)return [];let{parts:r,derivation:o,items:a}=n;if(a.length===0)return [];let i=a.flatMap(u=>chunkA5BTVPET_cjs.ll(u)),s=i.length>0?Cn(e,t,r,i,o.deepParagraphOrderOfPart):null,c=jn(a),d=a.some(u=>u.kind==="comment")?_n(r[0]):Un;return a.map(u=>Bn(u,s,c,d)).filter(u=>u!==null)}var Kn=new Set(["part","validatedHandle"]);function _r(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function Z(e,t,n,r,o){if(!(r!==void 0&&Kn.has(r))){if(typeof e=="function")throw new TypeError("Semantic layout publication encountered a function value");if(!(e===null||typeof e!="object")&&!o?.has(e)){if(n.has(e))throw new TypeError("Semantic layout publication encountered a cyclic record graph");if(!t.has(e)){t.add(e),n.add(e);try{if(Array.isArray(e)){for(let a of e)Z(a,t,n,void 0,o);Object.freeze(e);return}if(!_r(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");Z(i.value,t,n,a,o);}}Object.freeze(e);}finally{n.delete(e);}}}}}function Br(e){if(!_r(e))throw new TypeError("Semantic layout publication encountered a non-record value");let t=new Set;for(let r of e.pages)if(!(r===null||typeof r!="object"))for(let o of ["header","footer"]){let a=Object.getOwnPropertyDescriptor(r,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),Z(i,new Set,s,o),t.add(i);}let n=(r,o)=>{let a=new Set;for(let i of r){let s=new Set;s.add(e),Z(i,a,s,void 0,o);}Object.freeze(r);};for(let r of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,r);if(!o)continue;if(!("value"in o))throw new TypeError("Semantic layout publication encountered an accessor property");if(r==="pages"&&Array.isArray(o.value)){n(o.value,t);continue}if(r==="reviewArtifacts"&&Array.isArray(o.value)){n(o.value);continue}let a=new Set;a.add(e),Z(o.value,new Set,a,r);}return Object.freeze(e),e}var zn=Object.freeze([]),M=class extends Error{constructor(n,r,o){super(r,o);this.code=n;this.name="ExportResourceError";}code};function Wn(e){try{return e instanceof M}catch{return false}}function Hn(e){try{return e instanceof chunkTXIO5WYQ_cjs.Jf}catch{return false}}function $n(e){try{return e instanceof Error&&typeof e.message=="string"&&e.message.length>0?e.message:null}catch{return null}}function Gn(e){if(Wn(e))return e;let t=Hn(e),n=$n(e),r=n?`: ${n}`:"",o=new M(t?"layoutInvariant":"layoutFailed",t?`Authored geometry could not be represented within the bounded page model${r}`:`Export layout failed${r}`);return Object.defineProperty(o,"cause",{configurable:true,value:e}),o}function Yn(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 Ur(e){if(e==="all-markup"||e==="simple-markup"||e==="proposed"||e==="original")return e;throw new RangeError("displayMode must be all-markup, simple-markup, proposed, or original")}var Xn=50,Le=64;function qn(e){switch(e.kind){case "pending":return true;case "ready":case "unrenderable":case "external":case "missing":return false;default:return e}}function Qn(e){let t=false;return chunkTXIO5WYQ_cjs.Qa(e,({drawing:n})=>{qn(n.resource)&&(t=true);}),t}function Vr(e){return !ArrayBuffer.isView(e)}function Xa(e,t={}){if(t.signal?.aborted)return {ok:false,reason:"aborted"};if(t.revisionAuthorSlots!==void 0&&(!t.revisionAuthorSlots||typeof t.revisionAuthorSlots!="object"||Array.isArray(t.revisionAuthorSlots)))throw new TypeError("revisionAuthorSlots must map author names to nonnegative safe integers.");let n=t.revisionAuthorSlots===void 0?void 0:Object.freeze(Object.fromEntries(Object.entries(t.revisionAuthorSlots).map(([m,w])=>{if(!Number.isSafeInteger(w)||w<0)throw new TypeError("revisionAuthorSlots values must be nonnegative safe integers.");return [m,w]}))),r=t.revisionMarkup?chunkTXIO5WYQ_cjs.hb(t.revisionMarkup):void 0,o=r?{revisionMarkup:r,hiddenAuthors:new Set,cacheKey:JSON.stringify(r)}:void 0,a=Ur(t.displayMode??chunkTXIO5WYQ_cjs.lb),i=Vr(e),s=Vr(e)?{ok:true,view:e}:chunk5HUVQXET_cjs.Ba(e);if(!s.ok)return s;let c=s.view,d=t.reuseAcrossRevisions??i,u=Yn(t.resourceTimeoutMs),l=t.measurer??chunkTXIO5WYQ_cjs.ta(),g=t.producer??(t.measurer?"host-export-measurer":"export-fixed-measurer"),f=chunkTXIO5WYQ_cjs.hf({retainAcrossPasses:d}),h=0,y=new Set,b=()=>{h+=1;for(let m of y)m();y.clear();},P=chunkTXIO5WYQ_cjs.Bf({session:c,decodePort:t.imageDecodePort??nr(t.convertPreservedImage?{convertPreserved:t.convertPreservedImage}:void 0),onResourcesChanged:b}),x={view:c,measurer:l,paragraphCache:f,sessions:new Map,completed:new Map,inFlight:new Map,styles:chunkTXIO5WYQ_cjs.zf(c),fieldLinks:new Map,links:chunkTXIO5WYQ_cjs.Qf(c),drawingBundle:P,furniture:new Map},R=new AbortController,O=t.signal,V=false,$=()=>V?new M("aborted","Export resource settlement was aborted"):new M("disposed","Export session has been disposed"),K=()=>{V=true,G();};function G(){let m=x;if(m){x=null,O?.removeEventListener("abort",K),R.abort(O?.reason),m.drawingBundle.dispose(),m.paragraphCache.clear();for(let w of m.completed.values())chunkTXIO5WYQ_cjs.jd(w.internal),chunkTXIO5WYQ_cjs.Yf(w.internal);for(let w of m.fieldLinks.values())w.registry.clear();m.fieldLinks.clear(),m.completed.clear(),m.inFlight.clear(),m.furniture.clear(),m.sessions.clear(),b();}}O?.addEventListener("abort",K,{once:true}),O?.aborted&&K();let _=()=>{if(!x)throw $();if(R.signal.aborted)throw new M("aborted","Export resource settlement was aborted")},T=(m,w,v,p)=>h!==m||x?.view.packageRevision()!==w||x?.view.currentPackage()!==v?Promise.resolve():(_(),new Promise((I,E)=>{let D=false,F,A=N=>{D||(D=true,F!==void 0&&clearTimeout(F),y.delete(X),R.signal.removeEventListener("abort",q),N?E(N):I());},X=()=>A(),q=()=>A(new M("aborted","Export resource settlement was aborted")),L=()=>{if(x?.view.packageRevision()!==w||x?.view.currentPackage()!==v){A();return}let N=p-Date.now();if(N<=0){A(new M("timedOut",`Image resources did not settle within ${u}ms`));return}F=setTimeout(L,Math.min(Xn,N));};if(y.add(X),R.signal.addEventListener("abort",q,{once:true}),h!==m||x?.view.packageRevision()!==w||x?.view.currentPackage()!==v){A();return}F=setTimeout(L,0);})),Y=async(m,w=0,v=Date.now()+u)=>{if(_(),Date.now()>=v)throw new M("timedOut",`Export layout did not stabilize within ${u}ms`);let p=x,I=v,E=p.view.packageRevision(),D=p.view.currentPackage(),F=p.completed.get(m);if(F&&F.revision===E&&F.pkg===D)return F.published;let A=()=>{if(p.view.packageRevision()===E&&p.view.currentPackage()===D)return null;if(w>=Le-1)throw new M("nonConvergent","Document revision did not stabilize during export layout");return Y(m,w+1,I)},X=m==="simple-markup"?chunkTXIO5WYQ_cjs.mb(o):o,q=m==="all-markup"||m==="simple-markup"?chunkTXIO5WYQ_cjs.ne(X,Nr(D),m==="simple-markup"):X,L=p.fieldLinks.get(m);if(!L||L.revision!==E||L.pkg!==D){let k=L?.registry??chunkTXIO5WYQ_cjs.Rf();k.clear(),L={revision:E,pkg:D,registry:k},p.fieldLinks.set(m,L),p.furniture.delete(m);}let N=L.registry,Te=p.sessions.get(m)??chunkTXIO5WYQ_cjs.Cg();p.sessions.set(m,Te);let ee=p.furniture.get(m);ee||(ee=chunkTXIO5WYQ_cjs.Nf({view:p.view,measurer:p.measurer,producer:g,cache:p.paragraphCache,styleCascade:p.styles.styleCascade,numberingIndex:p.styles.numberingIndex,defaultTabStopPt:p.styles.defaultTabStopPt,compatibilityMode:p.styles.compatibilityMode,displayMode:chunkTXIO5WYQ_cjs.kb(m),revisionAuthorFilter:q,showFieldCodes:false,inlineDrawingLayoutForPart:k=>p.drawingBundle.contextForPart(k),drawingLayoutTokenForPart:k=>p.drawingBundle.cacheTokenForPart(k),drawingTokenForParagraphForPart:(k,he)=>p.drawingBundle.drawingTokenForParagraph(he,k),linkProjectors:p.links,projectFieldLink:k=>N.project(k)}),p.furniture.set(m,ee));for(let k=0;k<Le;k+=1){let he=h;p.drawingBundle.sync(p.view);let Fe=A();if(Fe)return Fe;let j=cr({view:p.view,revision:p.view.packageRevision(),measurer:p.measurer,cache:p.paragraphCache,session:Te,producer:g,styleCascade:p.styles.styleCascade,defaultTabStopPt:p.styles.defaultTabStopPt,numberingIndex:p.styles.numberingIndex,furniture:ee,compatibilityMode:p.styles.compatibilityMode,linkProjectors:p.links,projectFieldLink:S=>N.project(S),inlineDrawingLayout:p.drawingBundle.bodyContext,inlineDrawingLayoutForPart:S=>p.drawingBundle.contextForPart(S),drawingTokenForParagraph:S=>p.drawingBundle.drawingTokenForParagraph(S,p.view.part().name),drawingTokenForParagraphForPart:(S,te)=>p.drawingBundle.drawingTokenForParagraph(te,S),drawingLayoutEpoch:p.drawingBundle.cacheTokenForPart(p.view.part().name),drawingLayoutEpochForPart:S=>p.drawingBundle.cacheTokenForPart(S),displayMode:chunkTXIO5WYQ_cjs.kb(m),revisionAuthorFilter:q,showFieldCodes:false,bodyBlockLimit:void 0,fieldResults:"atomic"});if(!Qn(j)){let S=A();if(S)return S;d||(chunkTXIO5WYQ_cjs.jd(j),chunkTXIO5WYQ_cjs.Yf(j),p.paragraphCache.clear(),p.sessions.delete(m),p.furniture.delete(m));let te=jr(j,D),Kr=te.length===0?zn:Object.freeze(yr(j,te)),zr=Zt(p.view,j),Wr={...j,...zr,reviewDisplayMode:m,...r?{revisionMarkup:r}:{},...n?{revisionAuthorSlots:n}:{},facingPages:[...D.parts.values()].some(Be=>Be.root.localName==="settings"&&Be.root.children.some(re=>re.kind!=="textValue"&&(re.localName==="mirrorMargins"||re.localName==="evenAndOddHeaders")&&!re.attributes.some(Ue=>Ue.localName==="val"&&["0","false","off"].includes(Ue.value)))),contentWarnings:sr(p.view),reviewArtifacts:Kr},_e=Br(Wr);return p.completed.set(m,{revision:E,pkg:D,internal:j,published:_e}),_e}let Ne=he;for(;p.drawingBundle.pendingResourceCount()>0;){await T(Ne,E,D,I),Ne=h,_();let S=A();if(S)return S}_();let je=A();if(je)return je}throw new M("nonConvergent",`Image resources did not reach quiescence after ${Le} layout passes`)},Ce=m=>{let w;try{w=Ur(m);}catch(E){return Promise.reject(E)}if(!x)return Promise.reject($());let v=x,p=v.inFlight.get(w);if(p)return p;let I=Y(w).catch(E=>{throw Gn(E)}).finally(()=>v.inFlight.delete(w));return v.inFlight.set(w,I),I};return {ok:true,session:{layout:()=>Ce(a),layoutFor:Ce,validatedImageBytes(m){let w=x;return !w||m.resource.kind!=="ready"?null:w.drawingBundle.mintValidatedBytes(m.resource.validatedHandle,m.resource.contentId)?.slice()??null},async chartFallbackResource(m){let w=x;if(!w||!m.chart||!m.chartFallbackResource)return;if(m.chartFallbackResource.kind!=="pending")return m.chartFallbackResource;let v,p=new Promise(I=>{v=setTimeout(()=>I(Object.freeze({kind:"unrenderable",partName:null,mime:"unknown",reason:"decode-failed"})),u);});try{return await Promise.race([w.drawingBundle.resolveChartFallback(m.ownerPartName,m.drawingNodeId),p])}finally{clearTimeout(v);}},metafileBytes(m){let w=x,v=m.resource;if(!w||v.kind!=="unrenderable"||v.partName===null||v.reason!=="unsupported-format"&&v.reason!=="decode-failed")return null;let p=v.mime;if(p!=="image/x-emf"&&p!=="image/x-wmf")return null;let I=w.view.currentPackage().partBytes.get(v.partName);return !I||I.byteLength>chunkA5BTVPET_cjs.q.maxEncodedBytes||chunkA5BTVPET_cjs.Jf(I)!==p?null:{mime:p,bytes:I.slice()}},dispose:G}}}exports.a=tr;exports.b=cn;exports.c=ro;exports.d=nr;exports.e=Ir;exports.f=kr;exports.g=da;exports.h=M;exports.i=Xa;
@@ -1 +1 @@
1
- 'use strict';var chunkO324RB6R_cjs=require('../chunk-O324RB6R.cjs'),chunkZOZI27AW_cjs=require('../chunk-ZOZI27AW.cjs');Object.defineProperty(exports,"createCollaborationDocumentPort",{enumerable:true,get:function(){return chunkO324RB6R_cjs.b}});Object.defineProperty(exports,"mapOffsetAcrossText",{enumerable:true,get:function(){return chunkO324RB6R_cjs.c}});Object.defineProperty(exports,"historyGroupOfJournal",{enumerable:true,get:function(){return chunkZOZI27AW_cjs.Na}});Object.defineProperty(exports,"registerUndoHistoryPosition",{enumerable:true,get:function(){return chunkZOZI27AW_cjs.Vl}});Object.defineProperty(exports,"reportHistoryGroup",{enumerable:true,get:function(){return chunkZOZI27AW_cjs.Ul}});
1
+ 'use strict';var chunk37IYWENL_cjs=require('../chunk-37IYWENL.cjs'),chunkA5BTVPET_cjs=require('../chunk-A5BTVPET.cjs');Object.defineProperty(exports,"createCollaborationDocumentPort",{enumerable:true,get:function(){return chunk37IYWENL_cjs.b}});Object.defineProperty(exports,"mapOffsetAcrossText",{enumerable:true,get:function(){return chunk37IYWENL_cjs.c}});Object.defineProperty(exports,"historyGroupOfJournal",{enumerable:true,get:function(){return chunkA5BTVPET_cjs.Qa}});Object.defineProperty(exports,"registerUndoHistoryPosition",{enumerable:true,get:function(){return chunkA5BTVPET_cjs.Fn}});Object.defineProperty(exports,"reportHistoryGroup",{enumerable:true,get:function(){return chunkA5BTVPET_cjs.En}});
@@ -14,10 +14,10 @@
14
14
  * @packageDocumentation
15
15
  * @public
16
16
  */
17
- import { d as HistoryGroup, T as TreePackageStore, e as TreeModelChange } from '../tree-package-store-CRHvMyNj.js';
18
- export { r as reportHistoryGroup } from '../tree-package-store-CRHvMyNj.js';
19
- import { av as OoxmlElement, a5 as OoxmlPackage } from '../tree-op-types-C_S2niXW.js';
20
- import '../editor-scope-B3L-1ALc.js';
17
+ import { b as HistoryGroup, T as TreePackageStore, c as TreeModelChange } from '../tree-package-store-Cl3BkWXF.js';
18
+ export { r as reportHistoryGroup } from '../tree-package-store-Cl3BkWXF.js';
19
+ import { av as OoxmlElement, a5 as OoxmlPackage } from '../tree-op-types-DKvJSH8T.js';
20
+ import '../editor-scope-CA6egMaK.js';
21
21
 
22
22
  /** Attribute name as the journal addresses it. Prefix is authored fidelity, not identity. @public */
23
23
  interface CanonicalAttributeName {
@@ -230,6 +230,13 @@ interface CollaborationDocumentPort {
230
230
  */
231
231
  readonly interactive?: boolean;
232
232
  paragraphs(): readonly CollaborationParagraph[];
233
+ /**
234
+ * The body paragraph with this canonical node id, exactly as `paragraphs()` lists it (the
235
+ * same stable id, minted when the paragraph's own is missing, invalid, or claimed by an
236
+ * earlier paragraph), or null for a node that is not a listed body paragraph. O(1) on an
237
+ * unchanged document, so presence can ask it on every caret move; the first call after an
238
+ * edit walks the body once.
239
+ */
233
240
  paragraphByNodeId(nodeId: string): CollaborationParagraph | null;
234
241
  /**
235
242
  * The model text of the paragraph with this node id in any story, or null when the editor
@@ -243,6 +250,8 @@ interface CollaborationDocumentPort {
243
250
  * store. Presence may name a header, a footer, a note, or a cell, so this lookup covers
244
251
  * those parts too. It resolves through an index, not a scan, because a remote caret
245
252
  * resolves two addresses per selection on every caret move.
253
+ * A paraId two paragraphs share resolves to the first in document order, body first, as
254
+ * `paragraphs()` and `paragraphByNodeId` list it.
246
255
  */
247
256
  paragraphByStableId(paragraphId: string): CollaborationParagraph | null;
248
257
  applyParagraphText(paragraphId: string, text: string, mutation: CollaborationMutation): CollaborationApplyResult;
@@ -1 +1 @@
1
- export{b as createCollaborationDocumentPort,c as mapOffsetAcrossText}from'../chunk-IILEENID.js';export{Na as historyGroupOfJournal,Vl as registerUndoHistoryPosition,Ul as reportHistoryGroup}from'../chunk-GWM3AKUD.js';
1
+ export{b as createCollaborationDocumentPort,c as mapOffsetAcrossText}from'../chunk-DYLB5U42.js';export{Qa as historyGroupOfJournal,Fn as registerUndoHistoryPosition,En as reportHistoryGroup}from'../chunk-6MF5PN2E.js';
@@ -7,12 +7,12 @@
7
7
  * @packageDocumentation
8
8
  * @public
9
9
  */
10
- import { S as StoryScope } from './tree-package-store-CRHvMyNj.js';
11
- import { au as TreeDocOp } from './tree-op-types-C_S2niXW.js';
10
+ import { S as StoryScope } from './tree-package-store-Cl3BkWXF.js';
11
+ import { au as TreeDocOp } from './tree-op-types-DKvJSH8T.js';
12
12
  import { CollaborationDocumentPort } from './collaboration/replication.js';
13
13
  import { a as CollaborationStatus, b as CollaborationStatusSnapshot, C as CollaborationFailureCode } from './failure-6KGFrDO9.js';
14
14
  export { c as CollaborationFailure, d as createCollaborationStatusTracker, i as isCollaborationFailureCode } from './failure-6KGFrDO9.js';
15
- import './editor-scope-B3L-1ALc.js';
15
+ import './editor-scope-CA6egMaK.js';
16
16
 
17
17
  /**
18
18
  * A peer's presence color is attacker-controlled: it arrives over awareness from whoever is in
@@ -13,9 +13,9 @@
13
13
  * @packageDocumentation
14
14
  * @public
15
15
  */
16
- import { D as DocxDocument, E as ExecResult, i as ContentControlType, j as DocTarget, k as RunFormatting, l as Extent, I as InsertableContentControlType, m as ContainerRef, n as ContentControlFilter, o as DocRange, p as Revision, q as DocComment, S as StyleDefinitions } from '../tree-op-types-C_S2niXW.js';
17
- export { B as Block, r as ColorValue, s as ContentControl, t as DocAnchor, u as DocAnchorRange, v as DocLocation, w as DocumentBody, x as ExecErrorCode, H as HeaderFooterSet, y as IndentFormatting, N as NumberingRef, P as PageMargins, z as Paragraph, A as ParagraphDisagreements, F as ParagraphFlags, G as ParagraphTabStop, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind, h as RevisionAddress, J as RevisionAuthorEntry, K as RevisionAuthorResult, L as RevisionAuthorSkipReason, M as RevisionBatchEntry, Q as RevisionBatchResult, T as RevisionBatchSkipDetail, U as RevisionBatchSkipReason, V as RevisionSiteRefusal, W as RevisionType, X as Run, Y as Section, Z as SectionProperties, _ as StyleDefinition, $ as Table, a0 as TableCell, a1 as TableRow, a2 as Theme, a3 as ThemeColorScheme } from '../tree-op-types-C_S2niXW.js';
18
- export { H as HistoryGroupOutcome } from '../editor-scope-B3L-1ALc.js';
16
+ import { D as DocxDocument, E as ExecResult, i as ContentControlType, j as DocTarget, k as RunFormatting, l as Extent, I as InsertableContentControlType, m as ContainerRef, n as ContentControlFilter, o as DocRange, p as Revision, q as DocComment, S as StyleDefinitions } from '../tree-op-types-DKvJSH8T.js';
17
+ export { B as Block, r as ColorValue, s as ContentControl, t as DocAnchor, u as DocAnchorRange, v as DocLocation, w as DocumentBody, x as ExecErrorCode, H as HeaderFooterSet, y as IndentFormatting, N as NumberingRef, P as PageMargins, z as Paragraph, A as ParagraphDisagreements, F as ParagraphFlags, G as ParagraphTabStop, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind, h as RevisionAddress, J as RevisionAuthorEntry, K as RevisionAuthorResult, L as RevisionAuthorSkipReason, M as RevisionBatchEntry, Q as RevisionBatchResult, T as RevisionBatchSkipDetail, U as RevisionBatchSkipReason, V as RevisionSiteRefusal, W as RevisionType, X as Run, Y as Section, Z as SectionProperties, _ as StyleDefinition, $ as Table, a0 as TableCell, a1 as TableRow, a2 as Theme, a3 as ThemeColorScheme } from '../tree-op-types-DKvJSH8T.js';
18
+ export { H as HistoryGroupOutcome } from '../editor-scope-CA6egMaK.js';
19
19
 
20
20
  /**
21
21
  * `@docx-editor.dev/core/contracts/document` — the document-level edit and query vocabulary.
@@ -7,18 +7,18 @@
7
7
  * @packageDocumentation
8
8
  * @public
9
9
  */
10
- export { D as DEFAULT_REVISION_MARKUP, c as REVISION_MARKUP_COLORS, d as ResolvedRevisionMarkup, a as ReviewDisplayMode, e as RevisionChangedLinesMark, f as RevisionDeletionMark, b as RevisionDisplayMode, g as RevisionMarkupChromeHandlers, h as RevisionMarkupColor, R as RevisionMarkupDialogSession, i as RevisionMarkupMark, j as RevisionMarkupNamedColor, k as RevisionMarkupOptions, l as RevisionMarkupStyle, m as RevisionMarkupTextStyle, r as resolveRevisionMarkup, n as revisionMarkupColor, o as revisionMarkupStyle } from '../revision-projection-Cn6rZJ7H.js';
10
+ export { D as DEFAULT_REVISION_MARKUP, c as REVISION_MARKUP_COLORS, d as ResolvedRevisionMarkup, a as ReviewDisplayMode, e as RevisionChangedLinesMark, f as RevisionDeletionMark, b as RevisionDisplayMode, g as RevisionMarkupChromeHandlers, h as RevisionMarkupColor, R as RevisionMarkupDialogSession, i as RevisionMarkupMark, j as RevisionMarkupNamedColor, k as RevisionMarkupOptions, l as RevisionMarkupStyle, m as RevisionMarkupTextStyle, r as resolveRevisionMarkup, n as revisionMarkupColor, o as revisionMarkupStyle } from '../revision-projection-DwFhgIR0.js';
11
11
  export { CommentMarkerStyle, DEFAULT_REVIEW_PANE, ResolvedReviewPane, ReviewPaneItemFields, ReviewPaneOpening, ReviewPaneOptions, ReviewPaneOverflow, RevisionDisplay, resolveReviewPane, reviewPaneListsItem } from './types.js';
12
- export { A as AnchorHighlightAnimation, c as AnchorHighlightOptions, d as AuthoredNoteNumbering, B as BookmarkPlace, e as BookmarkStory, f as BookmarkSummary, C as CanResult, g as ClearAnchorHighlightOptions, h as CollaborationParticipantsDiagnostic, i as CollaborationStatusDiagnostic, j as CustomNodeDiagnosticEvent, D as DIAGNOSTIC_SCHEMA_VERSION, k as DiagnosticBase, l as DiagnosticFailureDetail, m as DocumentChange, n as DocumentEditingMode, o as DocumentHandle, p as DocumentOpenDiagnostic, q as DocumentOpenFailure, r as DocumentOpenFailureReason, s as DocumentSaveDiagnostic, t as DocumentShape, u as DocumentSource, v as EditRejectedDiagnostic, w as EditRejectionOrigin, x as Editor, y as EditorAnchorNavigation, z as EditorBookmarkCommands, b as EditorCommand, F as EditorCommandShape, G as EditorCommands, E as EditorDiagnostic, a as EditorDiagnosticKind, H as EditorError, I as EditorEvents, J as EditorFontError, K as EditorFormatPainterCommands, L as EditorHeaderFooterCommands, M as EditorHighlights, N as EditorHostChange, O as EditorHostDocument, P as EditorNoteCommands, Q as EditorPosition, R as EditorQueries, S as EditorQuery, T as EditorQueryResults, U as EditorReviewHits, V as EditorSelection, W as EditorSnapshot, X as FontFailedDiagnostic, Y as FormatPainterLevel, Z as FormatPainterMode, _ as FormatPainterSurfaceState, $ as FurnitureVariant, a0 as HeaderFooterSlotArgs, a1 as HeaderFooterState, a2 as HighlightHit, a3 as HighlightOptions, a4 as HighlightRange, a5 as HighlightRect, a6 as HighlightResult, a7 as HistoryDiagnosticEvent, a8 as HyperlinkInfo, a9 as ImageContext, aa as ImageCropPercent, ab as NoteKind, ac as NotePropertiesSide, ad as NotePropertiesState, ae as PageSetup, af as PerformanceDiagnostic, ag as ResolveReviewChangesOptions, ah as ResolvedNoteNumbering, ai as ReviewActivationOptions, aj as ReviewChangesAttribution, ak as ReviewCommentPlacement, al as ReviewCustomPlacement, am as ReviewItemHit, an as ReviewItemPlacement, ao as ReviewItemPlacementBase, ap as ReviewItemQuery, aq as ReviewItemRevealEvent, ar as ReviewItemRevealSource, as as ReviewRevisionPlacement, at as ReviewSkippedDiagnostic, au as ScrollPlacement, av as ScrollToAnchorOptions, aw as SelectedImageState, ax as SessionActivity, ay as SessionDiagnostic, az as SetReviewChangesAuthorOptions, aA as TableBorderEdgeTarget, aB as TableBorderSpec, aC as TableBorderStyle, aD as TableBorderTarget, aE as TableCellVerticalAlignment, aF as TableColumnDividerResizeTarget, aG as TableColumnOccurrenceTarget, aH as TableContext, aI as TableRightEdgeResizeTarget, aJ as TableRowOccurrenceTarget, aK as TextMatch, aL as TimingSummary, aM as TrackedChangeFilterMode, aN as TrackedChangePredicate, aO as ZoomFitTarget, aP as ZoomMode } from '../editor-DZwOTmlR.js';
12
+ export { A as AnchorHighlightAnimation, c as AnchorHighlightOptions, d as AuthoredNoteNumbering, B as BookmarkPlace, e as BookmarkStory, f as BookmarkSummary, C as CanResult, g as ClearAnchorHighlightOptions, h as CollaborationParticipantsDiagnostic, i as CollaborationStatusDiagnostic, j as CustomNodeDiagnosticEvent, D as DIAGNOSTIC_SCHEMA_VERSION, k as DiagnosticBase, l as DiagnosticFailureDetail, m as DocumentChange, n as DocumentEditingMode, o as DocumentHandle, p as DocumentOpenDiagnostic, q as DocumentOpenFailure, r as DocumentOpenFailureReason, s as DocumentSaveDiagnostic, t as DocumentShape, u as DocumentSource, v as EditRejectedDiagnostic, w as EditRejectionOrigin, x as Editor, y as EditorAnchorNavigation, z as EditorBookmarkCommands, b as EditorCommand, F as EditorCommandShape, G as EditorCommands, E as EditorDiagnostic, a as EditorDiagnosticKind, H as EditorError, I as EditorEvents, J as EditorFontError, K as EditorFormatPainterCommands, L as EditorHeaderFooterCommands, M as EditorHighlights, N as EditorHostChange, O as EditorHostDocument, P as EditorNoteCommands, Q as EditorPosition, R as EditorQueries, S as EditorQuery, T as EditorQueryResults, U as EditorReviewHits, V as EditorSelection, W as EditorSnapshot, X as FontFailedDiagnostic, Y as FormatPainterLevel, Z as FormatPainterMode, _ as FormatPainterSurfaceState, $ as FurnitureVariant, a0 as HeaderFooterSlotArgs, a1 as HeaderFooterState, a2 as HighlightHit, a3 as HighlightOptions, a4 as HighlightRange, a5 as HighlightRect, a6 as HighlightResult, a7 as HistoryDiagnosticEvent, a8 as HyperlinkInfo, a9 as ImageContext, aa as ImageCropPercent, ab as NoteKind, ac as NotePropertiesSide, ad as NotePropertiesState, ae as PageSetup, af as PerformanceDiagnostic, ag as ResolveReviewChangesOptions, ah as ResolvedNoteNumbering, ai as ReviewActivationOptions, aj as ReviewChangesAttribution, ak as ReviewChangesResolvedEvent, al as ReviewCommentPlacement, am as ReviewCustomPlacement, an as ReviewItemHit, ao as ReviewItemPlacement, ap as ReviewItemPlacementBase, aq as ReviewItemQuery, ar as ReviewItemRevealEvent, as as ReviewItemRevealSource, at as ReviewRevisionPlacement, au as ReviewSkippedDiagnostic, av as ScrollPlacement, aw as ScrollToAnchorOptions, ax as SelectedImageState, ay as SessionActivity, az as SessionDiagnostic, aA as SetReviewChangesAuthorOptions, aB as TableBorderEdgeTarget, aC as TableBorderSpec, aD as TableBorderStyle, aE as TableBorderTarget, aF as TableCellVerticalAlignment, aG as TableColumnDividerResizeTarget, aH as TableColumnOccurrenceTarget, aI as TableContext, aJ as TableInteractionLabelKey, aK as TableRightEdgeResizeTarget, aL as TableRowOccurrenceTarget, aM as TextMatch, aN as TimingSummary, aO as TrackedChangeFilterMode, aP as TrackedChangePredicate, aQ as ZoomFitTarget, aR as ZoomMode } from '../editor-DDCkWqfD.js';
13
13
  export { E as EditorFontErrorCode, F as FontConfiguration, a as FontFaceRequest, b as FontSource, c as FontSourceSubstitution } from '../editor-fonts-D_-vjuJi.js';
14
- export { B as Block, r as ColorValue, C as CommentRecord, m as ContainerRef, s as ContentControl, n as ContentControlFilter, i as ContentControlType, t as DocAnchor, u as DocAnchorRange, q as DocComment, v as DocLocation, o as DocRange, j as DocTarget, w as DocumentBody, D as DocxDocument, a6 as DocxDocumentJSON, a7 as DrawingHorizontalReferenceFrame, a8 as DrawingKind, a9 as DrawingLocks, aa as DrawingPositionInput, ab as DrawingVerticalReferenceFrame, x as ExecErrorCode, E as ExecResult, l as Extent, ac as FontDefinition, H as HeaderFooterSet, af as ImageResourceState, ag as ImageWrapTarget, y as IndentFormatting, I as InsertableContentControlType, N as NumberingRef, P as PageMargins, z as Paragraph, A as ParagraphDisagreements, F as ParagraphFlags, ah as ParagraphFormatCommand, G as ParagraphTabStop, ai as Point, aj as PreservedImageMime, ak as Rect, al as RenderableImageMime, c as ReviewCommentItem, d as ReviewCustomItem, a as ReviewItem, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind, p as Revision, h as RevisionAddress, J as RevisionAuthorEntry, K as RevisionAuthorResult, L as RevisionAuthorSkipReason, M as RevisionBatchEntry, Q as RevisionBatchResult, T as RevisionBatchSkipDetail, U as RevisionBatchSkipReason, V as RevisionSiteRefusal, W as RevisionType, X as Run, k as RunFormatting, Y as Section, Z as SectionProperties, am as SelectionPin, _ as StyleDefinition, S as StyleDefinitions, an as SupportedImageMime, $ as Table, a0 as TableCell, a1 as TableRow, a2 as Theme, a3 as ThemeColorScheme, ao as Unsubscribe, ap as ValidatedImageBytesHandle, aq as VectorImageMime, ar as Watermark, as as WatermarkLayout, at as WatermarkState } from '../tree-op-types-C_S2niXW.js';
14
+ export { B as Block, r as ColorValue, C as CommentRecord, m as ContainerRef, s as ContentControl, n as ContentControlFilter, i as ContentControlType, t as DocAnchor, u as DocAnchorRange, q as DocComment, v as DocLocation, o as DocRange, j as DocTarget, w as DocumentBody, D as DocxDocument, a6 as DocxDocumentJSON, a7 as DrawingHorizontalReferenceFrame, a8 as DrawingKind, a9 as DrawingLocks, aa as DrawingPositionInput, ab as DrawingVerticalReferenceFrame, x as ExecErrorCode, E as ExecResult, l as Extent, ac as FontDefinition, H as HeaderFooterSet, af as ImageResourceState, ag as ImageWrapTarget, y as IndentFormatting, I as InsertableContentControlType, N as NumberingRef, P as PageMargins, z as Paragraph, A as ParagraphDisagreements, F as ParagraphFlags, ah as ParagraphFormatCommand, G as ParagraphTabStop, ai as Point, aj as PreservedImageMime, ak as Rect, al as RenderableImageMime, c as ReviewCommentItem, d as ReviewCustomItem, a as ReviewItem, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind, p as Revision, h as RevisionAddress, J as RevisionAuthorEntry, K as RevisionAuthorResult, L as RevisionAuthorSkipReason, M as RevisionBatchEntry, Q as RevisionBatchResult, T as RevisionBatchSkipDetail, U as RevisionBatchSkipReason, V as RevisionSiteRefusal, W as RevisionType, X as Run, k as RunFormatting, Y as Section, Z as SectionProperties, am as SelectionPin, _ as StyleDefinition, S as StyleDefinitions, an as SupportedImageMime, $ as Table, a0 as TableCell, a1 as TableRow, a2 as Theme, a3 as ThemeColorScheme, ao as Unsubscribe, ap as ValidatedImageBytesHandle, aq as VectorImageMime, ar as Watermark, as as WatermarkLayout, at as WatermarkState } from '../tree-op-types-DKvJSH8T.js';
15
15
  export { ContentControlSummary, DocEdits, DocQueries, DocQueryResults, ParagraphSummary } from './document.js';
16
- export { a as EditorExecOptions, E as EditorScope, b as HistoryDiagnostic, c as HistoryGroup, d as HistoryGroupOptions, H as HistoryGroupOutcome, V as ViewScope } from '../editor-scope-B3L-1ALc.js';
16
+ export { a as EditorExecOptions, E as EditorScope, b as HistoryDiagnostic, c as HistoryGroup, d as HistoryGroupOptions, H as HistoryGroupOutcome, V as ViewScope } from '../editor-scope-CA6egMaK.js';
17
17
  export { InteractionAffinity, InteractionOutcome, InteractionOutcomeCode, SemanticIdentity, SemanticTarget } from './interaction.js';
18
- export { S as SemanticPosition, a as SemanticSelection } from '../semantic-interaction-CJoHLoOl.js';
19
- export { D as DocumentProtectionEdit, a as DocumentProtectionState } from '../document-protection-NaniLHWF.js';
18
+ export { S as SemanticPosition, a as SemanticSelection } from '../semantic-interaction-QeuzEtAk.js';
19
+ export { D as DocumentProtectionEdit, a as DocumentProtectionState } from '../document-protection-DdWxihIN.js';
20
20
  export { C as CollaborationFailureCode, a as CollaborationStatus } from '../failure-6KGFrDO9.js';
21
- export { B as ByteSizeBucket, C as CollaborationDiagnosticCode, b as CountBucket, c as CustomNodeDiagnosticCode, d as DiagnosticCode, D as DiagnosticErrorName, e as DiagnosticExplanation, f as DocumentOpenDiagnosticCode, a as DocumentPartKind, g as DocumentSaveDiagnosticCode, E as EditDiagnosticCode, F as FailureStage, h as FontDiagnosticCode, i as FormattingChangeKind, H as HistoryDiagnosticCode, P as PerformanceDiagnosticCode, R as ReviewChangeKind, j as ReviewDiagnosticCode, k as ReviewOperation } from '../diagnostic-hints-DK8-V0fk.js';
22
- import '../semantic-records-BvN-WWst.js';
23
- import '../headless-document-view-Bcz9_Qva.js';
24
- import '../tree-package-store-CRHvMyNj.js';
21
+ export { B as ByteSizeBucket, C as CollaborationDiagnosticCode, a as CountBucket, b as CustomNodeDiagnosticCode, D as DiagnosticCode, c as DiagnosticErrorName, d as DiagnosticExplanation, e as DocumentOpenDiagnosticCode, f as DocumentPartKind, g as DocumentSaveDiagnosticCode, E as EditDiagnosticCode, F as FailureStage, h as FontDiagnosticCode, i as FormattingChangeKind, H as HistoryDiagnosticCode, P as PerformanceDiagnosticCode, j as ReviewChangeKind, R as ReviewDiagnosticCode, k as ReviewOperation } from '../diagnostic-hints-BTyb8yzX.js';
22
+ import '../semantic-records-CzZiWMY8.js';
23
+ import '../drawing-graphic-kind-CK0cMc7H.js';
24
+ import '../tree-package-store-Cl3BkWXF.js';
@@ -27,8 +27,8 @@
27
27
  * @packageDocumentation
28
28
  * @public
29
29
  */
30
- import { V as ViewScope } from '../editor-scope-B3L-1ALc.js';
31
- export { E as EditorScope } from '../editor-scope-B3L-1ALc.js';
30
+ import { V as ViewScope } from '../editor-scope-CA6egMaK.js';
31
+ export { E as EditorScope } from '../editor-scope-CA6egMaK.js';
32
32
 
33
33
  /**
34
34
  * `@docx-editor.dev/core/contracts/interaction` — semantic addressing and interaction outcomes.
@@ -17,24 +17,24 @@
17
17
  * @packageDocumentation
18
18
  * @public
19
19
  */
20
- import { R as RevisionMarkupDialogSession, a as ReviewDisplayMode } from '../revision-projection-Cn6rZJ7H.js';
21
- export { b as RevisionDisplayMode } from '../revision-projection-Cn6rZJ7H.js';
20
+ import { R as RevisionMarkupDialogSession, a as ReviewDisplayMode } from '../revision-projection-DwFhgIR0.js';
21
+ export { b as RevisionDisplayMode } from '../revision-projection-DwFhgIR0.js';
22
22
  import { ReviewPaneOptions } from './types.js';
23
- import { E as EditorDiagnostic, a as EditorDiagnosticKind } from '../editor-DZwOTmlR.js';
24
- import { R as ReviewModelInput, a as ReviewItem, O as OoxmlPart, b as ReviewRevisionItem } from '../tree-op-types-C_S2niXW.js';
25
- export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, e as ReviewPosition, f as ReviewRange, g as ReviewRevisionKind, h as RevisionAddress } from '../tree-op-types-C_S2niXW.js';
23
+ import { E as EditorDiagnostic, a as EditorDiagnosticKind } from '../editor-DDCkWqfD.js';
24
+ import { R as ReviewModelInput, a as ReviewItem, O as OoxmlPart, b as ReviewRevisionItem } from '../tree-op-types-DKvJSH8T.js';
25
+ export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, e as ReviewPosition, f as ReviewRange, g as ReviewRevisionKind, h as RevisionAddress } from '../tree-op-types-DKvJSH8T.js';
26
26
  import { CollaborationModuleContribution } from '../collaboration.js';
27
27
  import '../failure-6KGFrDO9.js';
28
- import '../document-protection-NaniLHWF.js';
29
- import '../editor-scope-B3L-1ALc.js';
28
+ import '../document-protection-DdWxihIN.js';
29
+ import '../editor-scope-CA6egMaK.js';
30
30
  import '../editor-fonts-D_-vjuJi.js';
31
- import '../diagnostic-hints-DK8-V0fk.js';
31
+ import '../diagnostic-hints-BTyb8yzX.js';
32
32
  import './document.js';
33
33
  import './interaction.js';
34
- import '../semantic-interaction-CJoHLoOl.js';
35
- import '../semantic-records-BvN-WWst.js';
36
- import '../headless-document-view-Bcz9_Qva.js';
37
- import '../tree-package-store-CRHvMyNj.js';
34
+ import '../semantic-interaction-QeuzEtAk.js';
35
+ import '../semantic-records-CzZiWMY8.js';
36
+ import '../drawing-graphic-kind-CK0cMc7H.js';
37
+ import '../tree-package-store-Cl3BkWXF.js';
38
38
  import '../collaboration/replication.js';
39
39
 
40
40
  /**
@@ -7,11 +7,11 @@
7
7
  * @packageDocumentation
8
8
  * @public
9
9
  */
10
- export { B as Block, r as ColorValue, m as ContainerRef, s as ContentControl, n as ContentControlFilter, i as ContentControlType, t as DocAnchor, u as DocAnchorRange, q as DocComment, v as DocLocation, o as DocRange, j as DocTarget, w as DocumentBody, D as DocxDocument, a6 as DocxDocumentJSON, x as ExecErrorCode, E as ExecResult, l as Extent, ac as FontDefinition, H as HeaderFooterSet, y as IndentFormatting, I as InsertableContentControlType, N as NumberingRef, P as PageMargins, z as Paragraph, A as ParagraphDisagreements, F as ParagraphFlags, ah as ParagraphFormatCommand, G as ParagraphTabStop, ai as Point, ak as Rect, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind, p as Revision, h as RevisionAddress, J as RevisionAuthorEntry, K as RevisionAuthorResult, L as RevisionAuthorSkipReason, M as RevisionBatchEntry, Q as RevisionBatchResult, T as RevisionBatchSkipDetail, U as RevisionBatchSkipReason, V as RevisionSiteRefusal, W as RevisionType, X as Run, k as RunFormatting, Y as Section, Z as SectionProperties, am as SelectionPin, _ as StyleDefinition, S as StyleDefinitions, $ as Table, a0 as TableCell, a1 as TableRow, a2 as Theme, a3 as ThemeColorScheme, ao as Unsubscribe, ar as Watermark, as as WatermarkLayout, at as WatermarkState } from '../tree-op-types-C_S2niXW.js';
10
+ export { B as Block, r as ColorValue, m as ContainerRef, s as ContentControl, n as ContentControlFilter, i as ContentControlType, t as DocAnchor, u as DocAnchorRange, q as DocComment, v as DocLocation, o as DocRange, j as DocTarget, w as DocumentBody, D as DocxDocument, a6 as DocxDocumentJSON, x as ExecErrorCode, E as ExecResult, l as Extent, ac as FontDefinition, H as HeaderFooterSet, y as IndentFormatting, I as InsertableContentControlType, N as NumberingRef, P as PageMargins, z as Paragraph, A as ParagraphDisagreements, F as ParagraphFlags, ah as ParagraphFormatCommand, G as ParagraphTabStop, ai as Point, ak as Rect, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind, p as Revision, h as RevisionAddress, J as RevisionAuthorEntry, K as RevisionAuthorResult, L as RevisionAuthorSkipReason, M as RevisionBatchEntry, Q as RevisionBatchResult, T as RevisionBatchSkipDetail, U as RevisionBatchSkipReason, V as RevisionSiteRefusal, W as RevisionType, X as Run, k as RunFormatting, Y as Section, Z as SectionProperties, am as SelectionPin, _ as StyleDefinition, S as StyleDefinitions, $ as Table, a0 as TableCell, a1 as TableRow, a2 as Theme, a3 as ThemeColorScheme, ao as Unsubscribe, ar as Watermark, as as WatermarkLayout, at as WatermarkState } from '../tree-op-types-DKvJSH8T.js';
11
11
  export { C as CollaborationFailureCode, a as CollaborationStatus } from '../failure-6KGFrDO9.js';
12
- export { D as DEFAULT_REVISION_MARKUP, c as REVISION_MARKUP_COLORS, d as ResolvedRevisionMarkup, e as RevisionChangedLinesMark, f as RevisionDeletionMark, b as RevisionDisplayMode, g as RevisionMarkupChromeHandlers, h as RevisionMarkupColor, R as RevisionMarkupDialogSession, i as RevisionMarkupMark, j as RevisionMarkupNamedColor, k as RevisionMarkupOptions, l as RevisionMarkupStyle, m as RevisionMarkupTextStyle, r as resolveRevisionMarkup, n as revisionMarkupColor, o as revisionMarkupStyle } from '../revision-projection-Cn6rZJ7H.js';
13
- export { D as DocumentProtectionEdit, a as DocumentProtectionState } from '../document-protection-NaniLHWF.js';
14
- export { H as HistoryGroupOutcome } from '../editor-scope-B3L-1ALc.js';
12
+ export { D as DEFAULT_REVISION_MARKUP, c as REVISION_MARKUP_COLORS, d as ResolvedRevisionMarkup, e as RevisionChangedLinesMark, f as RevisionDeletionMark, b as RevisionDisplayMode, g as RevisionMarkupChromeHandlers, h as RevisionMarkupColor, R as RevisionMarkupDialogSession, i as RevisionMarkupMark, j as RevisionMarkupNamedColor, k as RevisionMarkupOptions, l as RevisionMarkupStyle, m as RevisionMarkupTextStyle, r as resolveRevisionMarkup, n as revisionMarkupColor, o as revisionMarkupStyle } from '../revision-projection-DwFhgIR0.js';
13
+ export { D as DocumentProtectionEdit, a as DocumentProtectionState } from '../document-protection-DdWxihIN.js';
14
+ export { H as HistoryGroupOutcome } from '../editor-scope-CA6egMaK.js';
15
15
 
16
16
  /**
17
17
  * When the review pane opens by itself.
@@ -1,5 +1,5 @@
1
- import { a5 as OoxmlPackage, O as OoxmlPart, a4 as OoxmlNode, aF as RevisionAttributionInput, aG as TreeOpRejection } from './tree-op-types-C_S2niXW.js';
2
- import { e as TreeModelChange, f as TreeDocumentStore } from './tree-package-store-CRHvMyNj.js';
1
+ import { a5 as OoxmlPackage, O as OoxmlPart, av as OoxmlElement, a4 as OoxmlNode, aE as RevisionAttributionInput, aF as TreeOpRejection } from './tree-op-types-DKvJSH8T.js';
2
+ import { c as TreeModelChange, d as TreeDocumentStore } from './tree-package-store-Cl3BkWXF.js';
3
3
 
4
4
  /** Which of a family's four faces an embedded font relationship supplies. */
5
5
  type FontStyleKey = 'regular' | 'bold' | 'italic' | 'boldItalic';
@@ -47,6 +47,38 @@ declare function readEmbeddedFonts(pkg: OoxmlPackage, fontTable: OoxmlPart | und
47
47
 
48
48
  /** The two list kinds a toolbar offers. */
49
49
  type ListKind = 'bullet' | 'ordered';
50
+ /**
51
+ * Where one level puts its marker and text, in twips, as the list being converted resolved it.
52
+ *
53
+ * Switching a list item between bullets and numbers changes what the marker SAYS, never
54
+ * where the item sits. A field left out is one the old level did not state, so the new level
55
+ * does not state it either and the paragraph style's value keeps applying.
56
+ */
57
+ interface ListLevelGeometry {
58
+ /** `w:left`: the leading indent of the text, in either paragraph direction. */
59
+ readonly left?: number;
60
+ /** `w:right`: the trailing indent. */
61
+ readonly right?: number;
62
+ /** `w:hanging`; exclusive with {@link firstLine}, and preferred when both are given. */
63
+ readonly hanging?: number;
64
+ /** `w:firstLine`: how far the first line starts past the leading indent. */
65
+ readonly firstLine?: number;
66
+ /** `w:suff`: what separates the marker from the text. Omitted means a tab. */
67
+ readonly suffix?: 'tab' | 'space' | 'nothing';
68
+ /** `w:lvlJc`: how the marker aligns at its position. */
69
+ readonly align?: 'left' | 'center' | 'right';
70
+ /**
71
+ * The old level's own `w:pPr`, carried for everything it states besides the indent above:
72
+ * direction (`w:bidi`), tab stops, spacing and alignment move the item as surely as `w:ind`.
73
+ * Must be a node of this package's numbering part; it is copied, never shared.
74
+ */
75
+ readonly paragraphProperties?: OoxmlElement;
76
+ }
77
+ /**
78
+ * Geometry for each of the nine levels, indexed by `w:ilvl`. A missing entry takes the stock
79
+ * geometry, which is what a level the old list never declared would have been given anyway.
80
+ */
81
+ type ListDefinitionGeometry = readonly (ListLevelGeometry | undefined)[];
50
82
  interface EnsuredListDefinition {
51
83
  readonly pkg: OoxmlPackage;
52
84
  /** The `w:numId` a paragraph's `w:numPr` should name. */
@@ -56,10 +88,16 @@ interface EnsuredListDefinition {
56
88
  * Find or create a list definition of `kind`, returning the package that holds it.
57
89
  *
58
90
  * An existing abstract definition of the same kind is reused, but every disconnected list
59
- * gets a fresh `w:num` instance. Counters belong to `w:num`, so reusing that instance would
60
- * continue an earlier list. Returns null only when the part cannot be built at all.
91
+ * gets a fresh `w:num` instance. Counters belong to the abstract definition, shared by every
92
+ * `w:num` over it, so the fresh instance restarts each level with a
93
+ * `w:startOverride` (see {@link restartOverridesXml}). Returns null only when the part cannot
94
+ * be built at all.
95
+ *
96
+ * With `geometry`, the definition is the one a list item SWITCHING kind needs: `kind`'s
97
+ * markers at the positions its old list gave each level, so the item does not move. Only a
98
+ * definition with exactly those levels is reused; any other one is created.
61
99
  */
62
- declare function ensureListDefinition(pkg: OoxmlPackage, kind: ListKind): EnsuredListDefinition | null;
100
+ declare function ensureListDefinition(pkg: OoxmlPackage, kind: ListKind, geometry?: ListDefinitionGeometry): EnsuredListDefinition | null;
63
101
  /**
64
102
  * Declare `level` in the definition `numId` names, with Word's default format for that
65
103
  * level, or refuse.
@@ -324,5 +362,5 @@ type CustomNodeSweepOutcome = {
324
362
  readonly reason: string;
325
363
  };
326
364
 
327
- export { MAX_CUSTOM_NODE_LABEL_LENGTH as M, NO_TRACKING_SETTINGS as N, MAX_CUSTOM_NODE_PAYLOAD_LENGTH as g, buildBookmarkIndex as h, customNodePayloadsByControl as i, customNodePayloadsOf as j, deobfuscateFont as k, ensureListDefinition as l, ensureNumberingLevel as m, insertCustomNodeWrite as n, readTrackingSettings as o, removeCustomNodeWrite as p, readEmbeddedFonts as r, sweepCustomNodePayloads as s };
328
- export type { BookmarkIndex as B, CustomNodeWriteResult as C, DocumentTrackingSettings as D, EmbeddedFont as E, FontStyleKey as F, InsertCustomNodeWrite as I, ListKind as L, ReadEmbeddedFontsOptions as R, CustomNodeSweepOutcome as a, BookmarkAnchor as b, CustomNodePayloadRead as c, CustomNodePayloadWrite as d, CustomNodeSweepResult as e, CustomNodeWriteRejection as f };
365
+ export { MAX_CUSTOM_NODE_LABEL_LENGTH as M, NO_TRACKING_SETTINGS as N, MAX_CUSTOM_NODE_PAYLOAD_LENGTH as i, buildBookmarkIndex as j, customNodePayloadsByControl as k, customNodePayloadsOf as l, deobfuscateFont as m, ensureListDefinition as n, ensureNumberingLevel as o, insertCustomNodeWrite as p, readTrackingSettings as q, readEmbeddedFonts as r, removeCustomNodeWrite as s, sweepCustomNodePayloads as t };
366
+ export type { BookmarkIndex as B, CustomNodeWriteResult as C, DocumentTrackingSettings as D, EmbeddedFont as E, FontStyleKey as F, InsertCustomNodeWrite as I, ListKind as L, ReadEmbeddedFontsOptions as R, CustomNodeSweepOutcome as a, ListDefinitionGeometry as b, BookmarkAnchor as c, CustomNodePayloadRead as d, CustomNodePayloadWrite as e, CustomNodeSweepResult as f, CustomNodeWriteRejection as g, ListLevelGeometry as h };
@@ -0,0 +1,98 @@
1
+ import { R as ReviewDiagnosticCode, B as ByteSizeBucket, a as CountBucket, e as DocumentOpenDiagnosticCode, E as EditDiagnosticCode, c as DiagnosticErrorName, f as DocumentPartKind } from './diagnostic-hints-BTyb8yzX.js';
2
+
3
+ /**
4
+ * The public code for a refused open. `too-large` is the one reason two layers share: the
5
+ * archive reports it WITH the limit it crossed, a single XML part reports it without one.
6
+ *
7
+ * @public
8
+ */
9
+ declare function openDiagnosticCode(reason: string, limit?: string): DocumentOpenDiagnosticCode;
10
+ /**
11
+ * The public code for a store or host refusal reason, or `null` for a reason this table does
12
+ * not know (a sentence, a binding reason). `unsupported-revision:<kind>` counts as
13
+ * `unsupported-revision`, except `unsupported-revision:foreign-insertion`, which has its own
14
+ * code.
15
+ *
16
+ * @public
17
+ */
18
+ declare function storeEditDiagnosticCode(reason: string): EditDiagnosticCode | null;
19
+ /**
20
+ * The public code for a skipped tracked change, such as an entry of `reviewChangesResolved`'s
21
+ * `skipped` list: the detail's own code when it has one (`review.locked-content`,
22
+ * `review.bound-content`), else the reason's.
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * editor.on('reviewChangesResolved', ({ skipped }) => {
27
+ * for (const skip of skipped) console.warn(reviewCodeOfSkip(skip));
28
+ * });
29
+ * ```
30
+ *
31
+ * @public
32
+ */
33
+ declare function reviewCodeOfSkip(skip: {
34
+ readonly reason: string;
35
+ readonly detail?: string;
36
+ }): ReviewDiagnosticCode | null;
37
+ /** The public code for a skipped tracked change, or null for a reason with no public code. */
38
+ declare function reviewDiagnosticCode(reason: string): ReviewDiagnosticCode | null;
39
+ /** The power-of-two bucket of a byte size. */
40
+ declare function byteSizeBucket(bytes: number): ByteSizeBucket;
41
+ /** The order-of-magnitude bucket of a count. */
42
+ declare function countBucket(count: number): CountBucket;
43
+ /** A diagnostic without the fields the emitter adds. Distributes over the union. */
44
+ type DiagnosticPayload<T> = T extends unknown ? Omit<T, 'schemaVersion' | 'editorSessionId' | 'time'> : never;
45
+ /** One delivery path for one editor or runtime instance. */
46
+ interface DiagnosticEmitter<E> {
47
+ /** Random for this instance and never stored. */
48
+ readonly editorSessionId: string;
49
+ /** Stamp the payload and hand it to every listener. A listener that throws is ignored. */
50
+ deliver(payload: DiagnosticPayload<E>): void;
51
+ }
52
+ /**
53
+ * A delivery path over `listeners`, read at each delivery so a later listener is heard. Generic
54
+ * over the event union, which the editor contracts own: this lane never names them.
55
+ */
56
+ declare function createDiagnosticEmitter<E>(listeners: () => Iterable<(event: E) => unknown>, now?: () => number): DiagnosticEmitter<E>;
57
+
58
+ /**
59
+ * Every engine reason a diagnostic can carry as its `cause`. Causes are the engine's own
60
+ * reasons and can change between engine versions; match on the public `code`, and read the
61
+ * `cause` when you report or fix a failure.
62
+ *
63
+ * @public
64
+ */
65
+ declare function diagnosticCauses(): readonly string[];
66
+ /**
67
+ * The engine reason token in a refusal reason, or undefined when the reason is not one the
68
+ * engine knows, such as a sentence. Only the token before a colon counts; the detail after it
69
+ * can name parts of the file and is never returned. A full reason such as
70
+ * `unsupported-revision:foreign-insertion` reports its token; its public code names the rule.
71
+ */
72
+ declare function diagnosticCause(reason: string | undefined): string | undefined;
73
+ /**
74
+ * The review code and structure in a refused decision's reason, such as
75
+ * `incomplete-group:paired-change`, or null when the reason names no review skip. The
76
+ * structure is reported only when it is one of the engine's own skip details.
77
+ *
78
+ * @public
79
+ */
80
+ declare function reviewSkipOfReason(reason: string | undefined): {
81
+ readonly code: ReviewDiagnosticCode;
82
+ readonly cause?: string;
83
+ } | null;
84
+ /** The cause of a failure the engine did not name: an exception. */
85
+ declare function exceptionCause(): string;
86
+ /**
87
+ * The class of an exception, never its message. A subclass with its own name, which a host or a
88
+ * file could shape, reports `'other'`.
89
+ */
90
+ declare function diagnosticErrorName(error: unknown): DiagnosticErrorName;
91
+ /**
92
+ * The role of the part a failure names, from the part name at the start of a refusal detail.
93
+ * The name itself never leaves this function. Undefined when there is no detail.
94
+ */
95
+ declare function documentPartKind(detail: string | undefined): DocumentPartKind | undefined;
96
+
97
+ export { byteSizeBucket as b, countBucket as c, diagnosticCauses as d, createDiagnosticEmitter as e, diagnosticCause as f, diagnosticErrorName as g, documentPartKind as h, exceptionCause as i, reviewDiagnosticCode as j, reviewSkipOfReason as k, openDiagnosticCode as o, reviewCodeOfSkip as r, storeEditDiagnosticCode as s };
98
+ export type { DiagnosticEmitter as D, DiagnosticPayload as a };
@@ -16,9 +16,9 @@ type DocumentOpenDiagnosticCode = 'open.unsupported-source' | 'open.zip-corrupt'
16
16
  */
17
17
  type DocumentSaveDiagnosticCode = 'save.no-document' | 'save.document-changed' | 'save.failed';
18
18
  /** Why an edit, a command or a tracked change was refused. @public */
19
- type EditDiagnosticCode = 'edit.read-only' | 'edit.protected-content' | 'edit.suggesting-needs-author' | 'edit.review-module-required' | 'edit.tracked-drawing-delete-unsupported' | 'edit.tracked-structure-unsupported' | 'edit.tracked-operation-unsupported' | 'edit.tracking-mode-unsupported' | 'edit.tracking-author-required' | 'edit.comment-author-required' | 'edit.tracking-unsupported-host' | 'edit.revision-unsupported' | 'edit.tracking-required' | 'edit.tracked-image-replace-unsupported' | 'edit.tracked-deleted-text-only' | 'edit.tracked-foreign-revision-unsupported' | 'edit.tracked-own-pending-change' | 'edit.picture-selected' | 'edit.cross-structure-join' | 'edit.indivisible-content' | 'edit.field-structure' | 'edit.field-unsupported' | 'edit.field-result-unsupported' | 'edit.ooxml-unsupported' | 'edit.section-mark' | 'edit.table-structure-unsupported' | 'edit.table-merge-not-rectangle' | 'edit.table-split-unsupported' | 'edit.table-insert-refused' | 'edit.table-of-contents-refused' | 'edit.unsupported-content' | 'edit.operation-unsupported' | 'edit.unsupported-story' | 'edit.unmapped-change' | 'edit.stale-target' | 'edit.invalid-argument' | 'edit.resource-limit' | 'edit.refresh-in-progress' | 'edit.preview-active' | 'edit.preview-unsupported' | 'edit.preview-composing' | 'edit.preview-diverged' | 'edit.collaboration-not-ready' | 'edit.collaboration-text-limit' | 'edit.internal-invariant' | 'edit.refused';
19
+ type EditDiagnosticCode = 'edit.read-only' | 'edit.protected-content' | 'edit.suggesting-needs-author' | 'edit.review-module-required' | 'edit.tracked-drawing-delete-unsupported' | 'edit.tracked-structure-unsupported' | 'edit.tracked-operation-unsupported' | 'edit.tracking-mode-unsupported' | 'edit.tracking-author-required' | 'edit.comment-author-required' | 'edit.tracking-unsupported-host' | 'edit.revision-unsupported' | 'edit.tracking-required' | 'edit.tracked-image-replace-unsupported' | 'edit.tracked-deleted-text-only' | 'edit.tracked-foreign-revision-unsupported' | 'edit.tracked-own-pending-change' | 'edit.picture-selected' | 'edit.cross-structure-join' | 'edit.indivisible-content' | 'edit.field-structure' | 'edit.field-unsupported' | 'edit.field-result-unsupported' | 'edit.ooxml-unsupported' | 'edit.style-not-defined' | 'edit.no-styles-defined' | 'edit.section-mark' | 'edit.table-structure-unsupported' | 'edit.table-merge-not-rectangle' | 'edit.table-split-unsupported' | 'edit.table-insert-refused' | 'edit.table-of-contents-refused' | 'edit.unsupported-content' | 'edit.operation-unsupported' | 'edit.unsupported-story' | 'edit.unmapped-change' | 'edit.stale-target' | 'edit.invalid-argument' | 'edit.resource-limit' | 'edit.refresh-in-progress' | 'edit.preview-active' | 'edit.preview-unsupported' | 'edit.preview-composing' | 'edit.preview-diverged' | 'edit.read-after-commit' | 'edit.collaboration-not-ready' | 'edit.collaboration-text-limit' | 'edit.internal-invariant' | 'edit.refused';
20
20
  /** Why accepting, rejecting or re-authoring a tracked change skipped an item. @public */
21
- type ReviewDiagnosticCode = 'review.revision-unsupported' | 'review.incomplete-group' | 'review.retained-structure' | 'review.stale-revision';
21
+ type ReviewDiagnosticCode = 'review.revision-unsupported' | 'review.incomplete-group' | 'review.retained-structure' | 'review.locked-content' | 'review.bound-content' | 'review.stale-revision';
22
22
  /** Why a font did not load. The family name is never reported. @public */
23
23
  type FontDiagnosticCode = 'font.shaper-unavailable' | 'font.load-failed' | 'font.missing' | 'font.integrity-mismatch' | 'font.malformed' | 'font.size-limit' | 'font.unsupported-face';
24
24
  /**
@@ -117,4 +117,4 @@ declare function explainDiagnostic(code: DiagnosticCode): DiagnosticExplanation;
117
117
  declare function diagnosticCodes(): readonly DiagnosticCode[];
118
118
 
119
119
  export { diagnosticCodes as l, explainDiagnostic as m };
120
- export type { ByteSizeBucket as B, CollaborationDiagnosticCode as C, DiagnosticErrorName as D, EditDiagnosticCode as E, FailureStage as F, HistoryDiagnosticCode as H, PerformanceDiagnosticCode as P, ReviewChangeKind as R, DocumentPartKind as a, CountBucket as b, CustomNodeDiagnosticCode as c, DiagnosticCode as d, DiagnosticExplanation as e, DocumentOpenDiagnosticCode as f, DocumentSaveDiagnosticCode as g, FontDiagnosticCode as h, FormattingChangeKind as i, ReviewDiagnosticCode as j, ReviewOperation as k };
120
+ export type { ByteSizeBucket as B, CollaborationDiagnosticCode as C, DiagnosticCode as D, EditDiagnosticCode as E, FailureStage as F, HistoryDiagnosticCode as H, PerformanceDiagnosticCode as P, ReviewDiagnosticCode as R, CountBucket as a, CustomNodeDiagnosticCode as b, DiagnosticErrorName as c, DiagnosticExplanation as d, DocumentOpenDiagnosticCode as e, DocumentPartKind as f, DocumentSaveDiagnosticCode as g, FontDiagnosticCode as h, FormattingChangeKind as i, ReviewChangeKind as j, ReviewOperation as k };
@@ -1,4 +1,4 @@
1
- import { a4 as OoxmlNode } from './tree-op-types-C_S2niXW.js';
1
+ import { a4 as OoxmlNode } from './tree-op-types-DKvJSH8T.js';
2
2
 
3
3
  /** `ST_DocProtect`: the restriction a document asks for. `none` also stands for "no element". */
4
4
  type DocumentProtectionEdit = 'none' | 'readOnly' | 'comments' | 'trackedChanges' | 'forms';