@eigenpal/docx-editor-core 1.0.0 → 1.0.2

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 (113) hide show
  1. package/dist/agent/index.js +1 -1
  2. package/dist/agent/index.mjs +1 -1
  3. package/dist/chunk-2D3UPAMA.mjs +1 -0
  4. package/dist/chunk-2RCMY2GE.mjs +1 -0
  5. package/dist/chunk-3GNIP6IX.mjs +4 -0
  6. package/dist/{chunk-YUKBAAB5.mjs → chunk-4S5VOHQK.mjs} +1 -1
  7. package/dist/chunk-5TNMVXDS.mjs +1 -0
  8. package/dist/{chunk-SYJAAHUK.js → chunk-6DK4UBGM.js} +1 -1
  9. package/dist/{chunk-ZRZ2VRQQ.mjs → chunk-6PR4XHQ3.mjs} +1 -1
  10. package/dist/{chunk-62NPHRTF.js → chunk-7SGC3CXJ.js} +1 -1
  11. package/dist/{chunk-CKXAHSJQ.js → chunk-AFMMYLPX.js} +2 -2
  12. package/dist/{chunk-J7ULKGU2.mjs → chunk-AGNZEOVL.mjs} +1 -1
  13. package/dist/{chunk-GXW7YSFL.mjs → chunk-APFTVA4F.mjs} +1 -1
  14. package/dist/chunk-BKHQA6JJ.js +1 -0
  15. package/dist/{chunk-O5X22KZ6.mjs → chunk-BOYVCOLZ.mjs} +1 -1
  16. package/dist/{chunk-FC6QL3E6.js → chunk-BS35CXMN.js} +1 -1
  17. package/dist/chunk-BTOBVF4I.mjs +1 -0
  18. package/dist/chunk-C2BAPYGJ.js +1 -0
  19. package/dist/{chunk-6ILFFGGS.js → chunk-C6GSFUV2.js} +1 -1
  20. package/dist/{chunk-WLQEPVDR.js → chunk-CP767TWV.js} +1 -1
  21. package/dist/{chunk-CWAP26GB.js → chunk-DV6IEOP5.js} +3 -3
  22. package/dist/{chunk-36VIYQHD.mjs → chunk-EXOP727C.mjs} +1 -1
  23. package/dist/{chunk-23CP3TOP.js → chunk-GFQM7PKY.js} +1 -1
  24. package/dist/{chunk-ZYESB4KC.mjs → chunk-LDKESXXK.mjs} +1 -1
  25. package/dist/chunk-LE67NTCN.mjs +1 -0
  26. package/dist/{chunk-WNTT4MGC.js → chunk-LTYW3NLX.js} +3 -3
  27. package/dist/{chunk-S7IKPRC3.js → chunk-NLTX7XVR.js} +1 -1
  28. package/dist/chunk-NMSU4MWP.mjs +1 -0
  29. package/dist/chunk-OLKDLRJ4.js +1 -0
  30. package/dist/chunk-P3AXSRLG.mjs +1 -0
  31. package/dist/{chunk-LVD6HXRF.mjs → chunk-P6RNOYAG.mjs} +1 -1
  32. package/dist/{chunk-VKTCTMIO.mjs → chunk-R7RR6M4A.mjs} +1 -1
  33. package/dist/{chunk-BGC7QKP5.mjs → chunk-RCS6UNIJ.mjs} +1 -1
  34. package/dist/chunk-T5RYEG2V.js +1 -0
  35. package/dist/chunk-TYYOBPNK.js +1 -0
  36. package/dist/{chunk-4EHBV73E.mjs → chunk-UCZVMHB5.mjs} +1 -1
  37. package/dist/{chunk-CCWOLPZE.js → chunk-V435QKZB.js} +2 -2
  38. package/dist/{chunk-DFZTUQ7O.js → chunk-VQ2QGHYS.js} +1 -1
  39. package/dist/chunk-WZP6ZHBR.js +1 -0
  40. package/dist/{chunk-UDPROEUK.js → chunk-XCMA7AY7.js} +1 -1
  41. package/dist/{chunk-DWFWYHM5.mjs → chunk-XDH55WXX.mjs} +1 -1
  42. package/dist/chunk-YE357WVA.js +1 -0
  43. package/dist/core-plugins.js +1 -1
  44. package/dist/core-plugins.mjs +1 -1
  45. package/dist/core.d.mts +1 -1
  46. package/dist/core.d.ts +1 -1
  47. package/dist/core.js +1 -1
  48. package/dist/core.mjs +1 -1
  49. package/dist/docx/index.js +1 -1
  50. package/dist/docx/index.mjs +1 -1
  51. package/dist/docx/parser.js +1 -1
  52. package/dist/docx/parser.mjs +1 -1
  53. package/dist/docx/rezip.js +1 -1
  54. package/dist/docx/rezip.mjs +1 -1
  55. package/dist/docx/serializer/index.js +1 -1
  56. package/dist/docx/serializer/index.mjs +1 -1
  57. package/dist/headless.js +1 -1
  58. package/dist/headless.mjs +1 -1
  59. package/dist/layout-bridge/index.d.mts +1 -1
  60. package/dist/layout-bridge/index.d.ts +1 -1
  61. package/dist/layout-bridge/index.js +1 -1
  62. package/dist/layout-bridge/index.mjs +1 -1
  63. package/dist/layout-bridge/measuring/index.d.mts +17 -1
  64. package/dist/layout-bridge/measuring/index.d.ts +17 -1
  65. package/dist/layout-bridge/measuring/index.js +1 -1
  66. package/dist/layout-bridge/measuring/index.mjs +1 -1
  67. package/dist/layout-bridge/tableInsertHover.js +1 -1
  68. package/dist/layout-bridge/tableInsertHover.mjs +1 -1
  69. package/dist/layout-bridge/toFlowBlocks.js +1 -1
  70. package/dist/layout-bridge/toFlowBlocks.mjs +1 -1
  71. package/dist/layout-engine/types.d.mts +8 -4
  72. package/dist/layout-engine/types.d.ts +8 -4
  73. package/dist/layout-painter/index.js +1 -1
  74. package/dist/layout-painter/index.mjs +1 -1
  75. package/dist/layout-painter/renderPage.d.mts +7 -0
  76. package/dist/layout-painter/renderPage.d.ts +7 -0
  77. package/dist/layout-painter/renderPage.js +1 -1
  78. package/dist/layout-painter/renderPage.mjs +1 -1
  79. package/dist/mcp-cli.mjs +16 -16
  80. package/dist/mcp.js +3 -3
  81. package/dist/mcp.mjs +1 -1
  82. package/dist/prosemirror/commands/formatting.js +1 -1
  83. package/dist/prosemirror/commands/formatting.mjs +1 -1
  84. package/dist/prosemirror/commands/index.js +1 -1
  85. package/dist/prosemirror/commands/index.mjs +1 -1
  86. package/dist/prosemirror/commands/paragraph.js +1 -1
  87. package/dist/prosemirror/commands/paragraph.mjs +1 -1
  88. package/dist/prosemirror/conversion/fromProseDoc.js +1 -1
  89. package/dist/prosemirror/conversion/fromProseDoc.mjs +1 -1
  90. package/dist/prosemirror/conversion/index.js +1 -1
  91. package/dist/prosemirror/conversion/index.mjs +1 -1
  92. package/dist/prosemirror/extensions/index.js +1 -1
  93. package/dist/prosemirror/extensions/index.mjs +1 -1
  94. package/dist/prosemirror/index.js +1 -1
  95. package/dist/prosemirror/index.mjs +1 -1
  96. package/dist/prosemirror/schema/index.js +1 -1
  97. package/dist/prosemirror/schema/index.mjs +1 -1
  98. package/package.json +1 -1
  99. package/dist/chunk-4AJYHCPB.js +0 -2
  100. package/dist/chunk-6VUYFDHY.mjs +0 -1
  101. package/dist/chunk-7GHQ4YCJ.mjs +0 -1
  102. package/dist/chunk-BWHUD2XC.mjs +0 -4
  103. package/dist/chunk-DY2MJCSV.js +0 -1
  104. package/dist/chunk-G6Y4UZMJ.mjs +0 -1
  105. package/dist/chunk-JKVXID22.mjs +0 -1
  106. package/dist/chunk-LMF2ELOB.js +0 -1
  107. package/dist/chunk-N27FJQTG.js +0 -1
  108. package/dist/chunk-SUXJX72X.js +0 -1
  109. package/dist/chunk-T4CPTPRP.js +0 -1
  110. package/dist/chunk-UIROUI5I.mjs +0 -1
  111. package/dist/chunk-UOFQYE2L.mjs +0 -1
  112. package/dist/chunk-V7BKPX67.mjs +0 -2
  113. package/dist/chunk-Y7JZPBBW.js +0 -1
@@ -1 +1 @@
1
- 'use strict';var chunkFC6QL3E6_js=require('../chunk-FC6QL3E6.js'),chunk23CP3TOP_js=require('../chunk-23CP3TOP.js'),chunk4AJYHCPB_js=require('../chunk-4AJYHCPB.js'),chunkN27FJQTG_js=require('../chunk-N27FJQTG.js');require('../chunk-44RUAQA2.js'),require('../chunk-DROCYKAR.js');var chunk7RDCZLTU_js=require('../chunk-7RDCZLTU.js'),chunkDY2MJCSV_js=require('../chunk-DY2MJCSV.js');require('../chunk-CWAP26GB.js'),require('../chunk-Y7JZPBBW.js'),require('../chunk-D4RPOJC7.js'),require('../chunk-IP2VXNWG.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-MZOVDLYL.js'),require('../chunk-YGHHSCPR.js'),require('../chunk-7VCMJCBY.js'),require('../chunk-SUXJX72X.js'),require('../chunk-DFZTUQ7O.js'),require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-6LVPRTB6.js'),require('../chunk-NERY274X.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-T4CPTPRP.js'),require('../chunk-Q4CKLXWA.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"DEFAULT_BODY_MARGIN_PX",{enumerable:true,get:function(){return chunkFC6QL3E6_js.E}});Object.defineProperty(exports,"DEFAULT_HF_DISTANCE_PX",{enumerable:true,get:function(){return chunkFC6QL3E6_js.F}});Object.defineProperty(exports,"DEFAULT_PAGE_HEIGHT_PX",{enumerable:true,get:function(){return chunkFC6QL3E6_js.D}});Object.defineProperty(exports,"DEFAULT_PAGE_WIDTH_PX",{enumerable:true,get:function(){return chunkFC6QL3E6_js.C}});Object.defineProperty(exports,"calculateHeaderFooterVisualBounds",{enumerable:true,get:function(){return chunkFC6QL3E6_js.y}});Object.defineProperty(exports,"clickToPosition",{enumerable:true,get:function(){return chunkFC6QL3E6_js.p}});Object.defineProperty(exports,"clickToPositionInParagraph",{enumerable:true,get:function(){return chunkFC6QL3E6_js.n}});Object.defineProperty(exports,"clickToPositionInTableCell",{enumerable:true,get:function(){return chunkFC6QL3E6_js.o}});Object.defineProperty(exports,"convertHeaderFooterToContent",{enumerable:true,get:function(){return chunkFC6QL3E6_js.z}});Object.defineProperty(exports,"countTableColumns",{enumerable:true,get:function(){return chunkFC6QL3E6_js.b}});Object.defineProperty(exports,"getCaretPosition",{enumerable:true,get:function(){return chunkFC6QL3E6_js.t}});Object.defineProperty(exports,"getMargins",{enumerable:true,get:function(){return chunkFC6QL3E6_js.H}});Object.defineProperty(exports,"getPageBounds",{enumerable:true,get:function(){return chunkFC6QL3E6_js.m}});Object.defineProperty(exports,"getPageIndexAtY",{enumerable:true,get:function(){return chunkFC6QL3E6_js.f}});Object.defineProperty(exports,"getPageSize",{enumerable:true,get:function(){return chunkFC6QL3E6_js.G}});Object.defineProperty(exports,"getPageTop",{enumerable:true,get:function(){return chunkFC6QL3E6_js.e}});Object.defineProperty(exports,"getPositionRect",{enumerable:true,get:function(){return chunkFC6QL3E6_js.r}});Object.defineProperty(exports,"getScrollYForPage",{enumerable:true,get:function(){return chunkFC6QL3E6_js.l}});Object.defineProperty(exports,"getTotalDocumentHeight",{enumerable:true,get:function(){return chunkFC6QL3E6_js.k}});Object.defineProperty(exports,"groupRectsByPage",{enumerable:true,get:function(){return chunkFC6QL3E6_js.v}});Object.defineProperty(exports,"hitTest",{enumerable:true,get:function(){return chunkFC6QL3E6_js.j}});Object.defineProperty(exports,"hitTestFragment",{enumerable:true,get:function(){return chunkFC6QL3E6_js.g}});Object.defineProperty(exports,"hitTestImageFragment",{enumerable:true,get:function(){return chunkFC6QL3E6_js.h}});Object.defineProperty(exports,"hitTestPage",{enumerable:true,get:function(){return chunkFC6QL3E6_js.d}});Object.defineProperty(exports,"hitTestTableCell",{enumerable:true,get:function(){return chunkFC6QL3E6_js.i}});Object.defineProperty(exports,"isMultiPageSelection",{enumerable:true,get:function(){return chunkFC6QL3E6_js.u}});Object.defineProperty(exports,"measureTableBlock",{enumerable:true,get:function(){return chunkFC6QL3E6_js.B}});Object.defineProperty(exports,"measureTableCellBlockVisualHeight",{enumerable:true,get:function(){return chunkFC6QL3E6_js.A}});Object.defineProperty(exports,"normalizeHeaderFooterMeasureBlocks",{enumerable:true,get:function(){return chunkFC6QL3E6_js.w}});Object.defineProperty(exports,"normalizeTableColumnWidths",{enumerable:true,get:function(){return chunkFC6QL3E6_js.c}});Object.defineProperty(exports,"positionToX",{enumerable:true,get:function(){return chunkFC6QL3E6_js.q}});Object.defineProperty(exports,"resolveHeaderFooter",{enumerable:true,get:function(){return chunkFC6QL3E6_js.I}});Object.defineProperty(exports,"resolveHeaderFooterVisualTop",{enumerable:true,get:function(){return chunkFC6QL3E6_js.x}});Object.defineProperty(exports,"resolveTableWidthPx",{enumerable:true,get:function(){return chunkFC6QL3E6_js.a}});Object.defineProperty(exports,"selectionToRects",{enumerable:true,get:function(){return chunkFC6QL3E6_js.s}});Object.defineProperty(exports,"TABLE_INSERT_EDGE_PROXIMITY",{enumerable:true,get:function(){return chunk23CP3TOP_js.a}});Object.defineProperty(exports,"TABLE_INSERT_HIDE_DELAY_MS",{enumerable:true,get:function(){return chunk23CP3TOP_js.b}});Object.defineProperty(exports,"detectTableInsertHover",{enumerable:true,get:function(){return chunk23CP3TOP_js.c}});Object.defineProperty(exports,"FOOTNOTE_SEPARATOR_HEIGHT",{enumerable:true,get:function(){return chunk4AJYHCPB_js.a}});Object.defineProperty(exports,"MAX_FOOTNOTE_LAYOUT_PASSES",{enumerable:true,get:function(){return chunk4AJYHCPB_js.b}});Object.defineProperty(exports,"applyFootnotePresentation",{enumerable:true,get:function(){return chunk4AJYHCPB_js.f}});Object.defineProperty(exports,"buildFootnoteContentMap",{enumerable:true,get:function(){return chunk4AJYHCPB_js.h}});Object.defineProperty(exports,"buildFootnoteRenderItems",{enumerable:true,get:function(){return chunk4AJYHCPB_js.k}});Object.defineProperty(exports,"calculateFootnoteReservedHeights",{enumerable:true,get:function(){return chunk4AJYHCPB_js.i}});Object.defineProperty(exports,"collectFootnoteRefs",{enumerable:true,get:function(){return chunk4AJYHCPB_js.d}});Object.defineProperty(exports,"convertFootnoteToContent",{enumerable:true,get:function(){return chunk4AJYHCPB_js.g}});Object.defineProperty(exports,"footnoteReservedHeightsEqual",{enumerable:true,get:function(){return chunk4AJYHCPB_js.c}});Object.defineProperty(exports,"mapFootnotesToPages",{enumerable:true,get:function(){return chunk4AJYHCPB_js.e}});Object.defineProperty(exports,"stabilizeFootnoteLayout",{enumerable:true,get:function(){return chunk4AJYHCPB_js.j}});Object.defineProperty(exports,"convertBorderSpecToLayout",{enumerable:true,get:function(){return chunkN27FJQTG_js.b}});Object.defineProperty(exports,"resetBlockIdCounter",{enumerable:true,get:function(){return chunkN27FJQTG_js.a}});Object.defineProperty(exports,"resolveListTemplate",{enumerable:true,get:function(){return chunkN27FJQTG_js.c}});Object.defineProperty(exports,"toFlowBlocks",{enumerable:true,get:function(){return chunkN27FJQTG_js.d}});Object.defineProperty(exports,"clickToPositionDom",{enumerable:true,get:function(){return chunk7RDCZLTU_js.e}});Object.defineProperty(exports,"findBodyEmptyRuns",{enumerable:true,get:function(){return chunk7RDCZLTU_js.b}});Object.defineProperty(exports,"findBodyPmAnchor",{enumerable:true,get:function(){return chunk7RDCZLTU_js.d}});Object.defineProperty(exports,"findBodyPmAnchors",{enumerable:true,get:function(){return chunk7RDCZLTU_js.c}});Object.defineProperty(exports,"findBodyPmSpans",{enumerable:true,get:function(){return chunk7RDCZLTU_js.a}});Object.defineProperty(exports,"getCaretPositionFromDom",{enumerable:true,get:function(){return chunk7RDCZLTU_js.g}});Object.defineProperty(exports,"getSelectionRectsFromDom",{enumerable:true,get:function(){return chunk7RDCZLTU_js.f}});Object.defineProperty(exports,"mouseToPosition",{enumerable:true,get:function(){return chunk7RDCZLTU_js.e}});Object.defineProperty(exports,"buildFontString",{enumerable:true,get:function(){return chunkDY2MJCSV_js.c}});Object.defineProperty(exports,"clearAllCaches",{enumerable:true,get:function(){return chunkDY2MJCSV_js.K}});Object.defineProperty(exports,"clearFontMetricsCache",{enumerable:true,get:function(){return chunkDY2MJCSV_js.B}});Object.defineProperty(exports,"clearParagraphMeasureCache",{enumerable:true,get:function(){return chunkDY2MJCSV_js.H}});Object.defineProperty(exports,"clearTextWidthCache",{enumerable:true,get:function(){return chunkDY2MJCSV_js.w}});Object.defineProperty(exports,"findCharacterAtX",{enumerable:true,get:function(){return chunkDY2MJCSV_js.h}});Object.defineProperty(exports,"getCachedFontMetrics",{enumerable:true,get:function(){return chunkDY2MJCSV_js.z}});Object.defineProperty(exports,"getCachedParagraphMeasure",{enumerable:true,get:function(){return chunkDY2MJCSV_js.F}});Object.defineProperty(exports,"getCachedTextWidth",{enumerable:true,get:function(){return chunkDY2MJCSV_js.u}});Object.defineProperty(exports,"getCanvasContext",{enumerable:true,get:function(){return chunkDY2MJCSV_js.a}});Object.defineProperty(exports,"getFloatingMargins",{enumerable:true,get:function(){return chunkDY2MJCSV_js.q}});Object.defineProperty(exports,"getFontCacheSize",{enumerable:true,get:function(){return chunkDY2MJCSV_js.D}});Object.defineProperty(exports,"getFontMetrics",{enumerable:true,get:function(){return chunkDY2MJCSV_js.d}});Object.defineProperty(exports,"getParagraphCacheSize",{enumerable:true,get:function(){return chunkDY2MJCSV_js.J}});Object.defineProperty(exports,"getRunCharWidths",{enumerable:true,get:function(){return chunkDY2MJCSV_js.t}});Object.defineProperty(exports,"getTextCacheSize",{enumerable:true,get:function(){return chunkDY2MJCSV_js.y}});Object.defineProperty(exports,"getTotalCacheSize",{enumerable:true,get:function(){return chunkDY2MJCSV_js.L}});Object.defineProperty(exports,"getXForCharacter",{enumerable:true,get:function(){return chunkDY2MJCSV_js.i}});Object.defineProperty(exports,"halfPtToPx",{enumerable:true,get:function(){return chunkDY2MJCSV_js.n}});Object.defineProperty(exports,"hashParagraphBlock",{enumerable:true,get:function(){return chunkDY2MJCSV_js.E}});Object.defineProperty(exports,"measureParagraph",{enumerable:true,get:function(){return chunkDY2MJCSV_js.r}});Object.defineProperty(exports,"measureParagraphs",{enumerable:true,get:function(){return chunkDY2MJCSV_js.s}});Object.defineProperty(exports,"measureRun",{enumerable:true,get:function(){return chunkDY2MJCSV_js.g}});Object.defineProperty(exports,"measureText",{enumerable:true,get:function(){return chunkDY2MJCSV_js.f}});Object.defineProperty(exports,"measureTextWidth",{enumerable:true,get:function(){return chunkDY2MJCSV_js.e}});Object.defineProperty(exports,"ptToPx",{enumerable:true,get:function(){return chunkDY2MJCSV_js.l}});Object.defineProperty(exports,"pxToHalfPt",{enumerable:true,get:function(){return chunkDY2MJCSV_js.o}});Object.defineProperty(exports,"pxToPt",{enumerable:true,get:function(){return chunkDY2MJCSV_js.m}});Object.defineProperty(exports,"pxToTwips",{enumerable:true,get:function(){return chunkDY2MJCSV_js.k}});Object.defineProperty(exports,"rectsToFloatingZones",{enumerable:true,get:function(){return chunkDY2MJCSV_js.p}});Object.defineProperty(exports,"resetCanvasContext",{enumerable:true,get:function(){return chunkDY2MJCSV_js.b}});Object.defineProperty(exports,"setCachedFontMetrics",{enumerable:true,get:function(){return chunkDY2MJCSV_js.A}});Object.defineProperty(exports,"setCachedParagraphMeasure",{enumerable:true,get:function(){return chunkDY2MJCSV_js.G}});Object.defineProperty(exports,"setCachedTextWidth",{enumerable:true,get:function(){return chunkDY2MJCSV_js.v}});Object.defineProperty(exports,"setFontCacheSize",{enumerable:true,get:function(){return chunkDY2MJCSV_js.C}});Object.defineProperty(exports,"setParagraphCacheSize",{enumerable:true,get:function(){return chunkDY2MJCSV_js.I}});Object.defineProperty(exports,"setTextCacheSize",{enumerable:true,get:function(){return chunkDY2MJCSV_js.x}});Object.defineProperty(exports,"twipsToPx",{enumerable:true,get:function(){return chunkDY2MJCSV_js.j}});
1
+ 'use strict';var chunkBS35CXMN_js=require('../chunk-BS35CXMN.js'),chunkGFQM7PKY_js=require('../chunk-GFQM7PKY.js'),chunkT5RYEG2V_js=require('../chunk-T5RYEG2V.js'),chunkTYYOBPNK_js=require('../chunk-TYYOBPNK.js');require('../chunk-44RUAQA2.js'),require('../chunk-DROCYKAR.js');var chunk7RDCZLTU_js=require('../chunk-7RDCZLTU.js'),chunkBKHQA6JJ_js=require('../chunk-BKHQA6JJ.js');require('../chunk-DV6IEOP5.js'),require('../chunk-WZP6ZHBR.js'),require('../chunk-D4RPOJC7.js'),require('../chunk-IP2VXNWG.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-MZOVDLYL.js'),require('../chunk-YGHHSCPR.js'),require('../chunk-7VCMJCBY.js'),require('../chunk-OLKDLRJ4.js'),require('../chunk-VQ2QGHYS.js'),require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-6LVPRTB6.js'),require('../chunk-NERY274X.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-C2BAPYGJ.js'),require('../chunk-Q4CKLXWA.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"DEFAULT_BODY_MARGIN_PX",{enumerable:true,get:function(){return chunkBS35CXMN_js.E}});Object.defineProperty(exports,"DEFAULT_HF_DISTANCE_PX",{enumerable:true,get:function(){return chunkBS35CXMN_js.F}});Object.defineProperty(exports,"DEFAULT_PAGE_HEIGHT_PX",{enumerable:true,get:function(){return chunkBS35CXMN_js.D}});Object.defineProperty(exports,"DEFAULT_PAGE_WIDTH_PX",{enumerable:true,get:function(){return chunkBS35CXMN_js.C}});Object.defineProperty(exports,"calculateHeaderFooterVisualBounds",{enumerable:true,get:function(){return chunkBS35CXMN_js.y}});Object.defineProperty(exports,"clickToPosition",{enumerable:true,get:function(){return chunkBS35CXMN_js.p}});Object.defineProperty(exports,"clickToPositionInParagraph",{enumerable:true,get:function(){return chunkBS35CXMN_js.n}});Object.defineProperty(exports,"clickToPositionInTableCell",{enumerable:true,get:function(){return chunkBS35CXMN_js.o}});Object.defineProperty(exports,"convertHeaderFooterToContent",{enumerable:true,get:function(){return chunkBS35CXMN_js.z}});Object.defineProperty(exports,"countTableColumns",{enumerable:true,get:function(){return chunkBS35CXMN_js.b}});Object.defineProperty(exports,"getCaretPosition",{enumerable:true,get:function(){return chunkBS35CXMN_js.t}});Object.defineProperty(exports,"getMargins",{enumerable:true,get:function(){return chunkBS35CXMN_js.H}});Object.defineProperty(exports,"getPageBounds",{enumerable:true,get:function(){return chunkBS35CXMN_js.m}});Object.defineProperty(exports,"getPageIndexAtY",{enumerable:true,get:function(){return chunkBS35CXMN_js.f}});Object.defineProperty(exports,"getPageSize",{enumerable:true,get:function(){return chunkBS35CXMN_js.G}});Object.defineProperty(exports,"getPageTop",{enumerable:true,get:function(){return chunkBS35CXMN_js.e}});Object.defineProperty(exports,"getPositionRect",{enumerable:true,get:function(){return chunkBS35CXMN_js.r}});Object.defineProperty(exports,"getScrollYForPage",{enumerable:true,get:function(){return chunkBS35CXMN_js.l}});Object.defineProperty(exports,"getTotalDocumentHeight",{enumerable:true,get:function(){return chunkBS35CXMN_js.k}});Object.defineProperty(exports,"groupRectsByPage",{enumerable:true,get:function(){return chunkBS35CXMN_js.v}});Object.defineProperty(exports,"hitTest",{enumerable:true,get:function(){return chunkBS35CXMN_js.j}});Object.defineProperty(exports,"hitTestFragment",{enumerable:true,get:function(){return chunkBS35CXMN_js.g}});Object.defineProperty(exports,"hitTestImageFragment",{enumerable:true,get:function(){return chunkBS35CXMN_js.h}});Object.defineProperty(exports,"hitTestPage",{enumerable:true,get:function(){return chunkBS35CXMN_js.d}});Object.defineProperty(exports,"hitTestTableCell",{enumerable:true,get:function(){return chunkBS35CXMN_js.i}});Object.defineProperty(exports,"isMultiPageSelection",{enumerable:true,get:function(){return chunkBS35CXMN_js.u}});Object.defineProperty(exports,"measureTableBlock",{enumerable:true,get:function(){return chunkBS35CXMN_js.B}});Object.defineProperty(exports,"measureTableCellBlockVisualHeight",{enumerable:true,get:function(){return chunkBS35CXMN_js.A}});Object.defineProperty(exports,"normalizeHeaderFooterMeasureBlocks",{enumerable:true,get:function(){return chunkBS35CXMN_js.w}});Object.defineProperty(exports,"normalizeTableColumnWidths",{enumerable:true,get:function(){return chunkBS35CXMN_js.c}});Object.defineProperty(exports,"positionToX",{enumerable:true,get:function(){return chunkBS35CXMN_js.q}});Object.defineProperty(exports,"resolveHeaderFooter",{enumerable:true,get:function(){return chunkBS35CXMN_js.I}});Object.defineProperty(exports,"resolveHeaderFooterVisualTop",{enumerable:true,get:function(){return chunkBS35CXMN_js.x}});Object.defineProperty(exports,"resolveTableWidthPx",{enumerable:true,get:function(){return chunkBS35CXMN_js.a}});Object.defineProperty(exports,"selectionToRects",{enumerable:true,get:function(){return chunkBS35CXMN_js.s}});Object.defineProperty(exports,"TABLE_INSERT_EDGE_PROXIMITY",{enumerable:true,get:function(){return chunkGFQM7PKY_js.a}});Object.defineProperty(exports,"TABLE_INSERT_HIDE_DELAY_MS",{enumerable:true,get:function(){return chunkGFQM7PKY_js.b}});Object.defineProperty(exports,"detectTableInsertHover",{enumerable:true,get:function(){return chunkGFQM7PKY_js.c}});Object.defineProperty(exports,"FOOTNOTE_SEPARATOR_HEIGHT",{enumerable:true,get:function(){return chunkT5RYEG2V_js.a}});Object.defineProperty(exports,"MAX_FOOTNOTE_LAYOUT_PASSES",{enumerable:true,get:function(){return chunkT5RYEG2V_js.b}});Object.defineProperty(exports,"applyFootnotePresentation",{enumerable:true,get:function(){return chunkT5RYEG2V_js.f}});Object.defineProperty(exports,"buildFootnoteContentMap",{enumerable:true,get:function(){return chunkT5RYEG2V_js.h}});Object.defineProperty(exports,"buildFootnoteRenderItems",{enumerable:true,get:function(){return chunkT5RYEG2V_js.k}});Object.defineProperty(exports,"calculateFootnoteReservedHeights",{enumerable:true,get:function(){return chunkT5RYEG2V_js.i}});Object.defineProperty(exports,"collectFootnoteRefs",{enumerable:true,get:function(){return chunkT5RYEG2V_js.d}});Object.defineProperty(exports,"convertFootnoteToContent",{enumerable:true,get:function(){return chunkT5RYEG2V_js.g}});Object.defineProperty(exports,"footnoteReservedHeightsEqual",{enumerable:true,get:function(){return chunkT5RYEG2V_js.c}});Object.defineProperty(exports,"mapFootnotesToPages",{enumerable:true,get:function(){return chunkT5RYEG2V_js.e}});Object.defineProperty(exports,"stabilizeFootnoteLayout",{enumerable:true,get:function(){return chunkT5RYEG2V_js.j}});Object.defineProperty(exports,"convertBorderSpecToLayout",{enumerable:true,get:function(){return chunkTYYOBPNK_js.b}});Object.defineProperty(exports,"resetBlockIdCounter",{enumerable:true,get:function(){return chunkTYYOBPNK_js.a}});Object.defineProperty(exports,"resolveListTemplate",{enumerable:true,get:function(){return chunkTYYOBPNK_js.c}});Object.defineProperty(exports,"toFlowBlocks",{enumerable:true,get:function(){return chunkTYYOBPNK_js.d}});Object.defineProperty(exports,"clickToPositionDom",{enumerable:true,get:function(){return chunk7RDCZLTU_js.e}});Object.defineProperty(exports,"findBodyEmptyRuns",{enumerable:true,get:function(){return chunk7RDCZLTU_js.b}});Object.defineProperty(exports,"findBodyPmAnchor",{enumerable:true,get:function(){return chunk7RDCZLTU_js.d}});Object.defineProperty(exports,"findBodyPmAnchors",{enumerable:true,get:function(){return chunk7RDCZLTU_js.c}});Object.defineProperty(exports,"findBodyPmSpans",{enumerable:true,get:function(){return chunk7RDCZLTU_js.a}});Object.defineProperty(exports,"getCaretPositionFromDom",{enumerable:true,get:function(){return chunk7RDCZLTU_js.g}});Object.defineProperty(exports,"getSelectionRectsFromDom",{enumerable:true,get:function(){return chunk7RDCZLTU_js.f}});Object.defineProperty(exports,"mouseToPosition",{enumerable:true,get:function(){return chunk7RDCZLTU_js.e}});Object.defineProperty(exports,"buildFontString",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.c}});Object.defineProperty(exports,"clampFloatingWrapMargins",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.s}});Object.defineProperty(exports,"clearAllCaches",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.M}});Object.defineProperty(exports,"clearFontMetricsCache",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.D}});Object.defineProperty(exports,"clearParagraphMeasureCache",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.J}});Object.defineProperty(exports,"clearTextWidthCache",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.y}});Object.defineProperty(exports,"findCharacterAtX",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.h}});Object.defineProperty(exports,"getCachedFontMetrics",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.B}});Object.defineProperty(exports,"getCachedParagraphMeasure",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.H}});Object.defineProperty(exports,"getCachedTextWidth",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.w}});Object.defineProperty(exports,"getCanvasContext",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.a}});Object.defineProperty(exports,"getFloatingMargins",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.q}});Object.defineProperty(exports,"getFontCacheSize",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.F}});Object.defineProperty(exports,"getFontMetrics",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.d}});Object.defineProperty(exports,"getParagraphCacheSize",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.L}});Object.defineProperty(exports,"getRunCharWidths",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.v}});Object.defineProperty(exports,"getTextCacheSize",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.A}});Object.defineProperty(exports,"getTotalCacheSize",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.N}});Object.defineProperty(exports,"getXForCharacter",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.i}});Object.defineProperty(exports,"halfPtToPx",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.n}});Object.defineProperty(exports,"hashParagraphBlock",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.G}});Object.defineProperty(exports,"measureParagraph",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.t}});Object.defineProperty(exports,"measureParagraphs",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.u}});Object.defineProperty(exports,"measureRun",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.g}});Object.defineProperty(exports,"measureText",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.f}});Object.defineProperty(exports,"measureTextWidth",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.e}});Object.defineProperty(exports,"ptToPx",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.l}});Object.defineProperty(exports,"pxToHalfPt",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.o}});Object.defineProperty(exports,"pxToPt",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.m}});Object.defineProperty(exports,"pxToTwips",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.k}});Object.defineProperty(exports,"rectsToFloatingZones",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.p}});Object.defineProperty(exports,"resetCanvasContext",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.b}});Object.defineProperty(exports,"setCachedFontMetrics",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.C}});Object.defineProperty(exports,"setCachedParagraphMeasure",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.I}});Object.defineProperty(exports,"setCachedTextWidth",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.x}});Object.defineProperty(exports,"setFontCacheSize",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.E}});Object.defineProperty(exports,"setParagraphCacheSize",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.K}});Object.defineProperty(exports,"setTextCacheSize",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.z}});Object.defineProperty(exports,"twipsToPx",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.j}});
@@ -1 +1 @@
1
- export{E as DEFAULT_BODY_MARGIN_PX,F as DEFAULT_HF_DISTANCE_PX,D as DEFAULT_PAGE_HEIGHT_PX,C as DEFAULT_PAGE_WIDTH_PX,y as calculateHeaderFooterVisualBounds,p as clickToPosition,n as clickToPositionInParagraph,o as clickToPositionInTableCell,z as convertHeaderFooterToContent,b as countTableColumns,t as getCaretPosition,H as getMargins,m as getPageBounds,f as getPageIndexAtY,G as getPageSize,e as getPageTop,r as getPositionRect,l as getScrollYForPage,k as getTotalDocumentHeight,v as groupRectsByPage,j as hitTest,g as hitTestFragment,h as hitTestImageFragment,d as hitTestPage,i as hitTestTableCell,u as isMultiPageSelection,B as measureTableBlock,A as measureTableCellBlockVisualHeight,w as normalizeHeaderFooterMeasureBlocks,c as normalizeTableColumnWidths,q as positionToX,I as resolveHeaderFooter,x as resolveHeaderFooterVisualTop,a as resolveTableWidthPx,s as selectionToRects}from'../chunk-BGC7QKP5.mjs';export{a as TABLE_INSERT_EDGE_PROXIMITY,b as TABLE_INSERT_HIDE_DELAY_MS,c as detectTableInsertHover}from'../chunk-ZRZ2VRQQ.mjs';export{a as FOOTNOTE_SEPARATOR_HEIGHT,b as MAX_FOOTNOTE_LAYOUT_PASSES,f as applyFootnotePresentation,h as buildFootnoteContentMap,k as buildFootnoteRenderItems,i as calculateFootnoteReservedHeights,d as collectFootnoteRefs,g as convertFootnoteToContent,c as footnoteReservedHeightsEqual,e as mapFootnotesToPages,j as stabilizeFootnoteLayout}from'../chunk-V7BKPX67.mjs';export{b as convertBorderSpecToLayout,a as resetBlockIdCounter,c as resolveListTemplate,d as toFlowBlocks}from'../chunk-7GHQ4YCJ.mjs';import'../chunk-5N5DBQJV.mjs';import'../chunk-7E5VBRDL.mjs';export{e as clickToPositionDom,b as findBodyEmptyRuns,d as findBodyPmAnchor,c as findBodyPmAnchors,a as findBodyPmSpans,g as getCaretPositionFromDom,f as getSelectionRectsFromDom,e as mouseToPosition}from'../chunk-YMZ3F2FZ.mjs';export{c as buildFontString,K as clearAllCaches,B as clearFontMetricsCache,H as clearParagraphMeasureCache,w as clearTextWidthCache,h as findCharacterAtX,z as getCachedFontMetrics,F as getCachedParagraphMeasure,u as getCachedTextWidth,a as getCanvasContext,q as getFloatingMargins,D as getFontCacheSize,d as getFontMetrics,J as getParagraphCacheSize,t as getRunCharWidths,y as getTextCacheSize,L as getTotalCacheSize,i as getXForCharacter,n as halfPtToPx,E as hashParagraphBlock,r as measureParagraph,s as measureParagraphs,g as measureRun,f as measureText,e as measureTextWidth,l as ptToPx,o as pxToHalfPt,m as pxToPt,k as pxToTwips,p as rectsToFloatingZones,b as resetCanvasContext,A as setCachedFontMetrics,G as setCachedParagraphMeasure,v as setCachedTextWidth,C as setFontCacheSize,I as setParagraphCacheSize,x as setTextCacheSize,j as twipsToPx}from'../chunk-G6Y4UZMJ.mjs';import'../chunk-BWHUD2XC.mjs';import'../chunk-UIROUI5I.mjs';import'../chunk-LBKMYD3M.mjs';import'../chunk-NBLJPT54.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-ILJUDEZ5.mjs';import'../chunk-IBNUQL57.mjs';import'../chunk-6LOYA7G5.mjs';import'../chunk-JKVXID22.mjs';import'../chunk-LVD6HXRF.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-BGY3CB37.mjs';import'../chunk-CP5OSG5Z.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-6VUYFDHY.mjs';import'../chunk-VQWZHPWI.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-QYUPLKLP.mjs';
1
+ export{E as DEFAULT_BODY_MARGIN_PX,F as DEFAULT_HF_DISTANCE_PX,D as DEFAULT_PAGE_HEIGHT_PX,C as DEFAULT_PAGE_WIDTH_PX,y as calculateHeaderFooterVisualBounds,p as clickToPosition,n as clickToPositionInParagraph,o as clickToPositionInTableCell,z as convertHeaderFooterToContent,b as countTableColumns,t as getCaretPosition,H as getMargins,m as getPageBounds,f as getPageIndexAtY,G as getPageSize,e as getPageTop,r as getPositionRect,l as getScrollYForPage,k as getTotalDocumentHeight,v as groupRectsByPage,j as hitTest,g as hitTestFragment,h as hitTestImageFragment,d as hitTestPage,i as hitTestTableCell,u as isMultiPageSelection,B as measureTableBlock,A as measureTableCellBlockVisualHeight,w as normalizeHeaderFooterMeasureBlocks,c as normalizeTableColumnWidths,q as positionToX,I as resolveHeaderFooter,x as resolveHeaderFooterVisualTop,a as resolveTableWidthPx,s as selectionToRects}from'../chunk-RCS6UNIJ.mjs';export{a as TABLE_INSERT_EDGE_PROXIMITY,b as TABLE_INSERT_HIDE_DELAY_MS,c as detectTableInsertHover}from'../chunk-6PR4XHQ3.mjs';export{a as FOOTNOTE_SEPARATOR_HEIGHT,b as MAX_FOOTNOTE_LAYOUT_PASSES,f as applyFootnotePresentation,h as buildFootnoteContentMap,k as buildFootnoteRenderItems,i as calculateFootnoteReservedHeights,d as collectFootnoteRefs,g as convertFootnoteToContent,c as footnoteReservedHeightsEqual,e as mapFootnotesToPages,j as stabilizeFootnoteLayout}from'../chunk-BTOBVF4I.mjs';export{b as convertBorderSpecToLayout,a as resetBlockIdCounter,c as resolveListTemplate,d as toFlowBlocks}from'../chunk-5TNMVXDS.mjs';import'../chunk-5N5DBQJV.mjs';import'../chunk-7E5VBRDL.mjs';export{e as clickToPositionDom,b as findBodyEmptyRuns,d as findBodyPmAnchor,c as findBodyPmAnchors,a as findBodyPmSpans,g as getCaretPositionFromDom,f as getSelectionRectsFromDom,e as mouseToPosition}from'../chunk-YMZ3F2FZ.mjs';export{c as buildFontString,s as clampFloatingWrapMargins,M as clearAllCaches,D as clearFontMetricsCache,J as clearParagraphMeasureCache,y as clearTextWidthCache,h as findCharacterAtX,B as getCachedFontMetrics,H as getCachedParagraphMeasure,w as getCachedTextWidth,a as getCanvasContext,q as getFloatingMargins,F as getFontCacheSize,d as getFontMetrics,L as getParagraphCacheSize,v as getRunCharWidths,A as getTextCacheSize,N as getTotalCacheSize,i as getXForCharacter,n as halfPtToPx,G as hashParagraphBlock,t as measureParagraph,u as measureParagraphs,g as measureRun,f as measureText,e as measureTextWidth,l as ptToPx,o as pxToHalfPt,m as pxToPt,k as pxToTwips,p as rectsToFloatingZones,b as resetCanvasContext,C as setCachedFontMetrics,I as setCachedParagraphMeasure,x as setCachedTextWidth,E as setFontCacheSize,K as setParagraphCacheSize,z as setTextCacheSize,j as twipsToPx}from'../chunk-2D3UPAMA.mjs';import'../chunk-3GNIP6IX.mjs';import'../chunk-2RCMY2GE.mjs';import'../chunk-LBKMYD3M.mjs';import'../chunk-NBLJPT54.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-ILJUDEZ5.mjs';import'../chunk-IBNUQL57.mjs';import'../chunk-6LOYA7G5.mjs';import'../chunk-NMSU4MWP.mjs';import'../chunk-P6RNOYAG.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-BGY3CB37.mjs';import'../chunk-CP5OSG5Z.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-LE67NTCN.mjs';import'../chunk-VQWZHPWI.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-QYUPLKLP.mjs';
@@ -202,6 +202,22 @@ interface MeasureParagraphOptions {
202
202
  /** Y offset of this paragraph relative to the exclusion zones (default: 0) */
203
203
  paragraphYOffset?: number;
204
204
  }
205
+ /**
206
+ * When a float's wrap margins consume the entire content width (or more),
207
+ * there is no horizontal strip beside it for body text. Word renders the
208
+ * following lines at full content width instead of squeezing them into a
209
+ * 1-pixel column. Unchecked margins from near-full-width tables/images can
210
+ * exceed contentWidth and collapse every line to ~1 glyph (the "single
211
+ * character per line after a wide floating table" bug).
212
+ *
213
+ * Returned margins are zeroed when:
214
+ * - either side alone is >= contentWidth (no strip on that side at all), or
215
+ * - their sum is >= contentWidth (no strip exists between the two sides).
216
+ */
217
+ declare function clampFloatingWrapMargins(leftMargin: number, rightMargin: number, contentWidth: number): {
218
+ leftMargin: number;
219
+ rightMargin: number;
220
+ };
205
221
  /**
206
222
  * Measure a paragraph block and compute line breaks
207
223
  *
@@ -317,4 +333,4 @@ declare function clearAllCaches(): void;
317
333
  */
318
334
  declare function getTotalCacheSize(): number;
319
335
 
320
- export { type FloatingExclusionRect, type FloatingImageZone, type FloatingLineSegmentZone, type FontMetrics, type FontStyle, type MeasureParagraphOptions, type RunMeasurement, type TextMeasurement, buildFontString, clearAllCaches, clearFontMetricsCache, clearParagraphMeasureCache, clearTextWidthCache, findCharacterAtX, getCachedFontMetrics, getCachedParagraphMeasure, getCachedTextWidth, getCanvasContext, getFloatingMargins, getFontCacheSize, getFontMetrics, getParagraphCacheSize, getRunCharWidths, getTextCacheSize, getTotalCacheSize, getXForCharacter, halfPtToPx, hashParagraphBlock, measureParagraph, measureParagraphs, measureRun, measureText, measureTextWidth, ptToPx, pxToHalfPt, pxToPt, pxToTwips, rectsToFloatingZones, resetCanvasContext, setCachedFontMetrics, setCachedParagraphMeasure, setCachedTextWidth, setFontCacheSize, setParagraphCacheSize, setTextCacheSize, twipsToPx };
336
+ export { type FloatingExclusionRect, type FloatingImageZone, type FloatingLineSegmentZone, type FontMetrics, type FontStyle, type MeasureParagraphOptions, type RunMeasurement, type TextMeasurement, buildFontString, clampFloatingWrapMargins, clearAllCaches, clearFontMetricsCache, clearParagraphMeasureCache, clearTextWidthCache, findCharacterAtX, getCachedFontMetrics, getCachedParagraphMeasure, getCachedTextWidth, getCanvasContext, getFloatingMargins, getFontCacheSize, getFontMetrics, getParagraphCacheSize, getRunCharWidths, getTextCacheSize, getTotalCacheSize, getXForCharacter, halfPtToPx, hashParagraphBlock, measureParagraph, measureParagraphs, measureRun, measureText, measureTextWidth, ptToPx, pxToHalfPt, pxToPt, pxToTwips, rectsToFloatingZones, resetCanvasContext, setCachedFontMetrics, setCachedParagraphMeasure, setCachedTextWidth, setFontCacheSize, setParagraphCacheSize, setTextCacheSize, twipsToPx };
@@ -202,6 +202,22 @@ interface MeasureParagraphOptions {
202
202
  /** Y offset of this paragraph relative to the exclusion zones (default: 0) */
203
203
  paragraphYOffset?: number;
204
204
  }
205
+ /**
206
+ * When a float's wrap margins consume the entire content width (or more),
207
+ * there is no horizontal strip beside it for body text. Word renders the
208
+ * following lines at full content width instead of squeezing them into a
209
+ * 1-pixel column. Unchecked margins from near-full-width tables/images can
210
+ * exceed contentWidth and collapse every line to ~1 glyph (the "single
211
+ * character per line after a wide floating table" bug).
212
+ *
213
+ * Returned margins are zeroed when:
214
+ * - either side alone is >= contentWidth (no strip on that side at all), or
215
+ * - their sum is >= contentWidth (no strip exists between the two sides).
216
+ */
217
+ declare function clampFloatingWrapMargins(leftMargin: number, rightMargin: number, contentWidth: number): {
218
+ leftMargin: number;
219
+ rightMargin: number;
220
+ };
205
221
  /**
206
222
  * Measure a paragraph block and compute line breaks
207
223
  *
@@ -317,4 +333,4 @@ declare function clearAllCaches(): void;
317
333
  */
318
334
  declare function getTotalCacheSize(): number;
319
335
 
320
- export { type FloatingExclusionRect, type FloatingImageZone, type FloatingLineSegmentZone, type FontMetrics, type FontStyle, type MeasureParagraphOptions, type RunMeasurement, type TextMeasurement, buildFontString, clearAllCaches, clearFontMetricsCache, clearParagraphMeasureCache, clearTextWidthCache, findCharacterAtX, getCachedFontMetrics, getCachedParagraphMeasure, getCachedTextWidth, getCanvasContext, getFloatingMargins, getFontCacheSize, getFontMetrics, getParagraphCacheSize, getRunCharWidths, getTextCacheSize, getTotalCacheSize, getXForCharacter, halfPtToPx, hashParagraphBlock, measureParagraph, measureParagraphs, measureRun, measureText, measureTextWidth, ptToPx, pxToHalfPt, pxToPt, pxToTwips, rectsToFloatingZones, resetCanvasContext, setCachedFontMetrics, setCachedParagraphMeasure, setCachedTextWidth, setFontCacheSize, setParagraphCacheSize, setTextCacheSize, twipsToPx };
336
+ export { type FloatingExclusionRect, type FloatingImageZone, type FloatingLineSegmentZone, type FontMetrics, type FontStyle, type MeasureParagraphOptions, type RunMeasurement, type TextMeasurement, buildFontString, clampFloatingWrapMargins, clearAllCaches, clearFontMetricsCache, clearParagraphMeasureCache, clearTextWidthCache, findCharacterAtX, getCachedFontMetrics, getCachedParagraphMeasure, getCachedTextWidth, getCanvasContext, getFloatingMargins, getFontCacheSize, getFontMetrics, getParagraphCacheSize, getRunCharWidths, getTextCacheSize, getTotalCacheSize, getXForCharacter, halfPtToPx, hashParagraphBlock, measureParagraph, measureParagraphs, measureRun, measureText, measureTextWidth, ptToPx, pxToHalfPt, pxToPt, pxToTwips, rectsToFloatingZones, resetCanvasContext, setCachedFontMetrics, setCachedParagraphMeasure, setCachedTextWidth, setFontCacheSize, setParagraphCacheSize, setTextCacheSize, twipsToPx };
@@ -1 +1 @@
1
- 'use strict';var chunkDY2MJCSV_js=require('../../chunk-DY2MJCSV.js');require('../../chunk-JFZIXFRC.js'),require('../../chunk-N3Y5BUKV.js'),require('../../chunk-DC7S76ZX.js');Object.defineProperty(exports,"buildFontString",{enumerable:true,get:function(){return chunkDY2MJCSV_js.c}});Object.defineProperty(exports,"clearAllCaches",{enumerable:true,get:function(){return chunkDY2MJCSV_js.K}});Object.defineProperty(exports,"clearFontMetricsCache",{enumerable:true,get:function(){return chunkDY2MJCSV_js.B}});Object.defineProperty(exports,"clearParagraphMeasureCache",{enumerable:true,get:function(){return chunkDY2MJCSV_js.H}});Object.defineProperty(exports,"clearTextWidthCache",{enumerable:true,get:function(){return chunkDY2MJCSV_js.w}});Object.defineProperty(exports,"findCharacterAtX",{enumerable:true,get:function(){return chunkDY2MJCSV_js.h}});Object.defineProperty(exports,"getCachedFontMetrics",{enumerable:true,get:function(){return chunkDY2MJCSV_js.z}});Object.defineProperty(exports,"getCachedParagraphMeasure",{enumerable:true,get:function(){return chunkDY2MJCSV_js.F}});Object.defineProperty(exports,"getCachedTextWidth",{enumerable:true,get:function(){return chunkDY2MJCSV_js.u}});Object.defineProperty(exports,"getCanvasContext",{enumerable:true,get:function(){return chunkDY2MJCSV_js.a}});Object.defineProperty(exports,"getFloatingMargins",{enumerable:true,get:function(){return chunkDY2MJCSV_js.q}});Object.defineProperty(exports,"getFontCacheSize",{enumerable:true,get:function(){return chunkDY2MJCSV_js.D}});Object.defineProperty(exports,"getFontMetrics",{enumerable:true,get:function(){return chunkDY2MJCSV_js.d}});Object.defineProperty(exports,"getParagraphCacheSize",{enumerable:true,get:function(){return chunkDY2MJCSV_js.J}});Object.defineProperty(exports,"getRunCharWidths",{enumerable:true,get:function(){return chunkDY2MJCSV_js.t}});Object.defineProperty(exports,"getTextCacheSize",{enumerable:true,get:function(){return chunkDY2MJCSV_js.y}});Object.defineProperty(exports,"getTotalCacheSize",{enumerable:true,get:function(){return chunkDY2MJCSV_js.L}});Object.defineProperty(exports,"getXForCharacter",{enumerable:true,get:function(){return chunkDY2MJCSV_js.i}});Object.defineProperty(exports,"halfPtToPx",{enumerable:true,get:function(){return chunkDY2MJCSV_js.n}});Object.defineProperty(exports,"hashParagraphBlock",{enumerable:true,get:function(){return chunkDY2MJCSV_js.E}});Object.defineProperty(exports,"measureParagraph",{enumerable:true,get:function(){return chunkDY2MJCSV_js.r}});Object.defineProperty(exports,"measureParagraphs",{enumerable:true,get:function(){return chunkDY2MJCSV_js.s}});Object.defineProperty(exports,"measureRun",{enumerable:true,get:function(){return chunkDY2MJCSV_js.g}});Object.defineProperty(exports,"measureText",{enumerable:true,get:function(){return chunkDY2MJCSV_js.f}});Object.defineProperty(exports,"measureTextWidth",{enumerable:true,get:function(){return chunkDY2MJCSV_js.e}});Object.defineProperty(exports,"ptToPx",{enumerable:true,get:function(){return chunkDY2MJCSV_js.l}});Object.defineProperty(exports,"pxToHalfPt",{enumerable:true,get:function(){return chunkDY2MJCSV_js.o}});Object.defineProperty(exports,"pxToPt",{enumerable:true,get:function(){return chunkDY2MJCSV_js.m}});Object.defineProperty(exports,"pxToTwips",{enumerable:true,get:function(){return chunkDY2MJCSV_js.k}});Object.defineProperty(exports,"rectsToFloatingZones",{enumerable:true,get:function(){return chunkDY2MJCSV_js.p}});Object.defineProperty(exports,"resetCanvasContext",{enumerable:true,get:function(){return chunkDY2MJCSV_js.b}});Object.defineProperty(exports,"setCachedFontMetrics",{enumerable:true,get:function(){return chunkDY2MJCSV_js.A}});Object.defineProperty(exports,"setCachedParagraphMeasure",{enumerable:true,get:function(){return chunkDY2MJCSV_js.G}});Object.defineProperty(exports,"setCachedTextWidth",{enumerable:true,get:function(){return chunkDY2MJCSV_js.v}});Object.defineProperty(exports,"setFontCacheSize",{enumerable:true,get:function(){return chunkDY2MJCSV_js.C}});Object.defineProperty(exports,"setParagraphCacheSize",{enumerable:true,get:function(){return chunkDY2MJCSV_js.I}});Object.defineProperty(exports,"setTextCacheSize",{enumerable:true,get:function(){return chunkDY2MJCSV_js.x}});Object.defineProperty(exports,"twipsToPx",{enumerable:true,get:function(){return chunkDY2MJCSV_js.j}});
1
+ 'use strict';var chunkBKHQA6JJ_js=require('../../chunk-BKHQA6JJ.js');require('../../chunk-JFZIXFRC.js'),require('../../chunk-N3Y5BUKV.js'),require('../../chunk-DC7S76ZX.js');Object.defineProperty(exports,"buildFontString",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.c}});Object.defineProperty(exports,"clampFloatingWrapMargins",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.s}});Object.defineProperty(exports,"clearAllCaches",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.M}});Object.defineProperty(exports,"clearFontMetricsCache",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.D}});Object.defineProperty(exports,"clearParagraphMeasureCache",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.J}});Object.defineProperty(exports,"clearTextWidthCache",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.y}});Object.defineProperty(exports,"findCharacterAtX",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.h}});Object.defineProperty(exports,"getCachedFontMetrics",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.B}});Object.defineProperty(exports,"getCachedParagraphMeasure",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.H}});Object.defineProperty(exports,"getCachedTextWidth",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.w}});Object.defineProperty(exports,"getCanvasContext",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.a}});Object.defineProperty(exports,"getFloatingMargins",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.q}});Object.defineProperty(exports,"getFontCacheSize",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.F}});Object.defineProperty(exports,"getFontMetrics",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.d}});Object.defineProperty(exports,"getParagraphCacheSize",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.L}});Object.defineProperty(exports,"getRunCharWidths",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.v}});Object.defineProperty(exports,"getTextCacheSize",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.A}});Object.defineProperty(exports,"getTotalCacheSize",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.N}});Object.defineProperty(exports,"getXForCharacter",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.i}});Object.defineProperty(exports,"halfPtToPx",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.n}});Object.defineProperty(exports,"hashParagraphBlock",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.G}});Object.defineProperty(exports,"measureParagraph",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.t}});Object.defineProperty(exports,"measureParagraphs",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.u}});Object.defineProperty(exports,"measureRun",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.g}});Object.defineProperty(exports,"measureText",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.f}});Object.defineProperty(exports,"measureTextWidth",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.e}});Object.defineProperty(exports,"ptToPx",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.l}});Object.defineProperty(exports,"pxToHalfPt",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.o}});Object.defineProperty(exports,"pxToPt",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.m}});Object.defineProperty(exports,"pxToTwips",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.k}});Object.defineProperty(exports,"rectsToFloatingZones",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.p}});Object.defineProperty(exports,"resetCanvasContext",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.b}});Object.defineProperty(exports,"setCachedFontMetrics",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.C}});Object.defineProperty(exports,"setCachedParagraphMeasure",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.I}});Object.defineProperty(exports,"setCachedTextWidth",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.x}});Object.defineProperty(exports,"setFontCacheSize",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.E}});Object.defineProperty(exports,"setParagraphCacheSize",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.K}});Object.defineProperty(exports,"setTextCacheSize",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.z}});Object.defineProperty(exports,"twipsToPx",{enumerable:true,get:function(){return chunkBKHQA6JJ_js.j}});
@@ -1 +1 @@
1
- export{c as buildFontString,K as clearAllCaches,B as clearFontMetricsCache,H as clearParagraphMeasureCache,w as clearTextWidthCache,h as findCharacterAtX,z as getCachedFontMetrics,F as getCachedParagraphMeasure,u as getCachedTextWidth,a as getCanvasContext,q as getFloatingMargins,D as getFontCacheSize,d as getFontMetrics,J as getParagraphCacheSize,t as getRunCharWidths,y as getTextCacheSize,L as getTotalCacheSize,i as getXForCharacter,n as halfPtToPx,E as hashParagraphBlock,r as measureParagraph,s as measureParagraphs,g as measureRun,f as measureText,e as measureTextWidth,l as ptToPx,o as pxToHalfPt,m as pxToPt,k as pxToTwips,p as rectsToFloatingZones,b as resetCanvasContext,A as setCachedFontMetrics,G as setCachedParagraphMeasure,v as setCachedTextWidth,C as setFontCacheSize,I as setParagraphCacheSize,x as setTextCacheSize,j as twipsToPx}from'../../chunk-G6Y4UZMJ.mjs';import'../../chunk-QPFJJPIC.mjs';import'../../chunk-AMENZY5F.mjs';import'../../chunk-QYUPLKLP.mjs';
1
+ export{c as buildFontString,s as clampFloatingWrapMargins,M as clearAllCaches,D as clearFontMetricsCache,J as clearParagraphMeasureCache,y as clearTextWidthCache,h as findCharacterAtX,B as getCachedFontMetrics,H as getCachedParagraphMeasure,w as getCachedTextWidth,a as getCanvasContext,q as getFloatingMargins,F as getFontCacheSize,d as getFontMetrics,L as getParagraphCacheSize,v as getRunCharWidths,A as getTextCacheSize,N as getTotalCacheSize,i as getXForCharacter,n as halfPtToPx,G as hashParagraphBlock,t as measureParagraph,u as measureParagraphs,g as measureRun,f as measureText,e as measureTextWidth,l as ptToPx,o as pxToHalfPt,m as pxToPt,k as pxToTwips,p as rectsToFloatingZones,b as resetCanvasContext,C as setCachedFontMetrics,I as setCachedParagraphMeasure,x as setCachedTextWidth,E as setFontCacheSize,K as setParagraphCacheSize,z as setTextCacheSize,j as twipsToPx}from'../../chunk-2D3UPAMA.mjs';import'../../chunk-QPFJJPIC.mjs';import'../../chunk-AMENZY5F.mjs';import'../../chunk-QYUPLKLP.mjs';
@@ -1 +1 @@
1
- 'use strict';var chunk23CP3TOP_js=require('../chunk-23CP3TOP.js');require('../chunk-4AJYHCPB.js'),require('../chunk-N27FJQTG.js'),require('../chunk-44RUAQA2.js'),require('../chunk-DROCYKAR.js'),require('../chunk-DY2MJCSV.js'),require('../chunk-CWAP26GB.js'),require('../chunk-Y7JZPBBW.js'),require('../chunk-D4RPOJC7.js'),require('../chunk-IP2VXNWG.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-MZOVDLYL.js'),require('../chunk-YGHHSCPR.js'),require('../chunk-7VCMJCBY.js'),require('../chunk-SUXJX72X.js'),require('../chunk-DFZTUQ7O.js'),require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-6LVPRTB6.js'),require('../chunk-NERY274X.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-T4CPTPRP.js'),require('../chunk-Q4CKLXWA.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"TABLE_INSERT_EDGE_PROXIMITY",{enumerable:true,get:function(){return chunk23CP3TOP_js.a}});Object.defineProperty(exports,"TABLE_INSERT_HIDE_DELAY_MS",{enumerable:true,get:function(){return chunk23CP3TOP_js.b}});Object.defineProperty(exports,"detectTableInsertHover",{enumerable:true,get:function(){return chunk23CP3TOP_js.c}});
1
+ 'use strict';var chunkGFQM7PKY_js=require('../chunk-GFQM7PKY.js');require('../chunk-T5RYEG2V.js'),require('../chunk-TYYOBPNK.js'),require('../chunk-44RUAQA2.js'),require('../chunk-DROCYKAR.js'),require('../chunk-BKHQA6JJ.js'),require('../chunk-DV6IEOP5.js'),require('../chunk-WZP6ZHBR.js'),require('../chunk-D4RPOJC7.js'),require('../chunk-IP2VXNWG.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-MZOVDLYL.js'),require('../chunk-YGHHSCPR.js'),require('../chunk-7VCMJCBY.js'),require('../chunk-OLKDLRJ4.js'),require('../chunk-VQ2QGHYS.js'),require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-6LVPRTB6.js'),require('../chunk-NERY274X.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-C2BAPYGJ.js'),require('../chunk-Q4CKLXWA.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"TABLE_INSERT_EDGE_PROXIMITY",{enumerable:true,get:function(){return chunkGFQM7PKY_js.a}});Object.defineProperty(exports,"TABLE_INSERT_HIDE_DELAY_MS",{enumerable:true,get:function(){return chunkGFQM7PKY_js.b}});Object.defineProperty(exports,"detectTableInsertHover",{enumerable:true,get:function(){return chunkGFQM7PKY_js.c}});
@@ -1 +1 @@
1
- export{a as TABLE_INSERT_EDGE_PROXIMITY,b as TABLE_INSERT_HIDE_DELAY_MS,c as detectTableInsertHover}from'../chunk-ZRZ2VRQQ.mjs';import'../chunk-V7BKPX67.mjs';import'../chunk-7GHQ4YCJ.mjs';import'../chunk-5N5DBQJV.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-G6Y4UZMJ.mjs';import'../chunk-BWHUD2XC.mjs';import'../chunk-UIROUI5I.mjs';import'../chunk-LBKMYD3M.mjs';import'../chunk-NBLJPT54.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-ILJUDEZ5.mjs';import'../chunk-IBNUQL57.mjs';import'../chunk-6LOYA7G5.mjs';import'../chunk-JKVXID22.mjs';import'../chunk-LVD6HXRF.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-BGY3CB37.mjs';import'../chunk-CP5OSG5Z.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-6VUYFDHY.mjs';import'../chunk-VQWZHPWI.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-QYUPLKLP.mjs';
1
+ export{a as TABLE_INSERT_EDGE_PROXIMITY,b as TABLE_INSERT_HIDE_DELAY_MS,c as detectTableInsertHover}from'../chunk-6PR4XHQ3.mjs';import'../chunk-BTOBVF4I.mjs';import'../chunk-5TNMVXDS.mjs';import'../chunk-5N5DBQJV.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-2D3UPAMA.mjs';import'../chunk-3GNIP6IX.mjs';import'../chunk-2RCMY2GE.mjs';import'../chunk-LBKMYD3M.mjs';import'../chunk-NBLJPT54.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-ILJUDEZ5.mjs';import'../chunk-IBNUQL57.mjs';import'../chunk-6LOYA7G5.mjs';import'../chunk-NMSU4MWP.mjs';import'../chunk-P6RNOYAG.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-BGY3CB37.mjs';import'../chunk-CP5OSG5Z.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-LE67NTCN.mjs';import'../chunk-VQWZHPWI.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-QYUPLKLP.mjs';
@@ -1 +1 @@
1
- 'use strict';var chunkN27FJQTG_js=require('../chunk-N27FJQTG.js');require('../chunk-DROCYKAR.js'),require('../chunk-CWAP26GB.js'),require('../chunk-YGHHSCPR.js'),require('../chunk-7VCMJCBY.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"convertBorderSpecToLayout",{enumerable:true,get:function(){return chunkN27FJQTG_js.b}});Object.defineProperty(exports,"resetBlockIdCounter",{enumerable:true,get:function(){return chunkN27FJQTG_js.a}});Object.defineProperty(exports,"resolveListTemplate",{enumerable:true,get:function(){return chunkN27FJQTG_js.c}});Object.defineProperty(exports,"toFlowBlocks",{enumerable:true,get:function(){return chunkN27FJQTG_js.d}});
1
+ 'use strict';var chunkTYYOBPNK_js=require('../chunk-TYYOBPNK.js');require('../chunk-DROCYKAR.js'),require('../chunk-DV6IEOP5.js'),require('../chunk-YGHHSCPR.js'),require('../chunk-7VCMJCBY.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"convertBorderSpecToLayout",{enumerable:true,get:function(){return chunkTYYOBPNK_js.b}});Object.defineProperty(exports,"resetBlockIdCounter",{enumerable:true,get:function(){return chunkTYYOBPNK_js.a}});Object.defineProperty(exports,"resolveListTemplate",{enumerable:true,get:function(){return chunkTYYOBPNK_js.c}});Object.defineProperty(exports,"toFlowBlocks",{enumerable:true,get:function(){return chunkTYYOBPNK_js.d}});
@@ -1 +1 @@
1
- export{b as convertBorderSpecToLayout,a as resetBlockIdCounter,c as resolveListTemplate,d as toFlowBlocks}from'../chunk-7GHQ4YCJ.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-BWHUD2XC.mjs';import'../chunk-IBNUQL57.mjs';import'../chunk-6LOYA7G5.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-QYUPLKLP.mjs';
1
+ export{b as convertBorderSpecToLayout,a as resetBlockIdCounter,c as resolveListTemplate,d as toFlowBlocks}from'../chunk-5TNMVXDS.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-3GNIP6IX.mjs';import'../chunk-IBNUQL57.mjs';import'../chunk-6LOYA7G5.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-QYUPLKLP.mjs';
@@ -77,10 +77,7 @@ type RunFormatting = {
77
77
  */
78
78
  textEffect?: 'blinkBackground' | 'lights' | 'antsBlack' | 'antsRed' | 'shimmer' | 'sparkle';
79
79
  /** Hyperlink info if this run is a link */
80
- hyperlink?: {
81
- href: string;
82
- tooltip?: string;
83
- };
80
+ hyperlink?: HyperlinkInfo;
84
81
  /** Footnote reference ID (if this run contains a footnote reference) */
85
82
  footnoteRefId?: number;
86
83
  /** Endnote reference ID (if this run contains an endnote reference) */
@@ -104,6 +101,13 @@ type RunFormatting = {
104
101
  type HyperlinkInfo = {
105
102
  href: string;
106
103
  tooltip?: string;
104
+ /**
105
+ * Skip the painter's "Word default" blue + underline fallback when the run
106
+ * has no resolved color/underline. Set by the layout-bridge for hyperlinks
107
+ * inside TOC paragraphs, where Word renders entries in the TOCx paragraph
108
+ * color rather than the Hyperlink character style's color.
109
+ */
110
+ noDefaultStyle?: boolean;
107
111
  };
108
112
  /**
109
113
  * A text run within a paragraph.
@@ -77,10 +77,7 @@ type RunFormatting = {
77
77
  */
78
78
  textEffect?: 'blinkBackground' | 'lights' | 'antsBlack' | 'antsRed' | 'shimmer' | 'sparkle';
79
79
  /** Hyperlink info if this run is a link */
80
- hyperlink?: {
81
- href: string;
82
- tooltip?: string;
83
- };
80
+ hyperlink?: HyperlinkInfo;
84
81
  /** Footnote reference ID (if this run contains a footnote reference) */
85
82
  footnoteRefId?: number;
86
83
  /** Endnote reference ID (if this run contains an endnote reference) */
@@ -104,6 +101,13 @@ type RunFormatting = {
104
101
  type HyperlinkInfo = {
105
102
  href: string;
106
103
  tooltip?: string;
104
+ /**
105
+ * Skip the painter's "Word default" blue + underline fallback when the run
106
+ * has no resolved color/underline. Set by the layout-bridge for hyperlinks
107
+ * inside TOC paragraphs, where Word renders entries in the TOCx paragraph
108
+ * color rather than the Hyperlink character style's color.
109
+ */
110
+ noDefaultStyle?: boolean;
107
111
  };
108
112
  /**
109
113
  * A text run within a paragraph.
@@ -1 +1 @@
1
- 'use strict';var chunk4AJYHCPB_js=require('../chunk-4AJYHCPB.js');require('../chunk-N27FJQTG.js'),require('../chunk-44RUAQA2.js'),require('../chunk-DROCYKAR.js'),require('../chunk-DY2MJCSV.js'),require('../chunk-CWAP26GB.js'),require('../chunk-Y7JZPBBW.js'),require('../chunk-D4RPOJC7.js'),require('../chunk-IP2VXNWG.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-MZOVDLYL.js'),require('../chunk-YGHHSCPR.js'),require('../chunk-7VCMJCBY.js'),require('../chunk-SUXJX72X.js'),require('../chunk-DFZTUQ7O.js'),require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-6LVPRTB6.js'),require('../chunk-NERY274X.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-T4CPTPRP.js'),require('../chunk-Q4CKLXWA.js');var chunk4Q2IP5FW_js=require('../chunk-4Q2IP5FW.js'),chunkDC7S76ZX_js=require('../chunk-DC7S76ZX.js');var i={runImage:"layout-run-image",blockImage:"layout-block-image",pageFloatingImage:"layout-page-floating-image",cellFloatingImage:"layout-cell-floating-image",pageContent:"layout-page-content",paragraph:"layout-paragraph"},y=[`.${i.pageFloatingImage}`,`.${i.cellFloatingImage}`,`.${i.blockImage}`,`.${i.runImage}`].join(", ");function P(n){if(!(n instanceof Element))return null;let e=n.closest(y);if(!e)return null;let o=e.dataset.pmStart;if(o===void 0)return null;let t=Number(o);return Number.isNaN(t)?null:{pos:t,imageEl:e}}function v(n){if(!(n instanceof HTMLElement))return null;if(n.tagName==="IMG"&&n.classList.contains(i.runImage))return n;let e=n.closest(y);return e&&e.dataset.pmStart?e:null}function B(n,e=1){if(!n.classList.contains(i.runImage))return;let o=n.closest(`.${i.pageContent}`),t=n.closest(`.${i.paragraph}`);if(!o||!t)return;let a=n.getBoundingClientRect(),r=o.getBoundingClientRect(),l=t.getBoundingClientRect(),p=e>0?e:1;return {horizontalEmu:Math.round(chunk4Q2IP5FW_js.f((a.left-r.left)/p)),verticalEmu:Math.round(chunk4Q2IP5FW_js.f((a.top-l.top)/p))}}function C(n,e){return n==="inline"?"inline":n==="behind"?"behind":n==="inFront"?"inFront":n==="square"||n==="tight"||n==="through"?e==="right"?"squareRight":"squareLeft":null}var H=[{choice:"inline",i18nLabelKey:"inLineWithText",i18nDescKey:"inLineWithText",iconHint:"inline"},{choice:"squareLeft",i18nLabelKey:"squareLeft",i18nDescKey:"squareLeft",iconHint:"squareLeft"},{choice:"squareRight",i18nLabelKey:"squareRight",i18nDescKey:"squareRight",iconHint:"squareRight"},{choice:"behind",i18nLabelKey:"behindText",i18nDescKey:"behindText",iconHint:"behind"},{choice:"inFront",i18nLabelKey:"inFrontOfText",i18nDescKey:"inFrontOfText",iconHint:"inFront"}];function R(n,e){return true}function A(n){switch(n){case "inline":return "inline";case "square":case "tight":case "through":return "squareLeft";case "topAndBottom":return "topAndBottom";case "behind":return "behind";case "inFront":return "inFront";case "wrapRight":return "squareLeft";case "wrapLeft":return "squareRight";default:return}}var c=class{constructor(e={}){chunkDC7S76ZX_js.a(this,"container",null);chunkDC7S76ZX_js.a(this,"blockLookup",new Map);chunkDC7S76ZX_js.a(this,"pageStates",[]);chunkDC7S76ZX_js.a(this,"totalPages",0);chunkDC7S76ZX_js.a(this,"options");chunkDC7S76ZX_js.a(this,"doc");chunkDC7S76ZX_js.a(this,"resolvedCommentIds",new Set);this.options=e,this.doc=e.document??document;}setBlockLookup(e){this.blockLookup=e;}mount(e){this.container=e,this.applyContainerStyles();}unmount(){this.container&&(this.container.innerHTML=""),this.container=null,this.pageStates=[];}applyContainerStyles(){if(!this.container)return;let e=this.options.pageGap??24;this.container.style.display="flex",this.container.style.flexDirection="column",this.container.style.alignItems="center",this.container.style.gap=`${e}px`,this.container.style.padding=`${e}px`,this.container.style.backgroundColor=this.options.containerBackground??"var(--doc-bg, #f8f9fa)",this.container.style.minHeight="100%";}paint(e){if(!this.container)throw new Error("LayoutPainter: not mounted");let{pages:o}=e;this.totalPages=o.length,this.container.innerHTML="",this.pageStates=[];for(let t=0;t<o.length;t++){let a=o[t],r={pageNumber:a.number,totalPages:this.totalPages,section:"body",resolvedCommentIds:this.resolvedCommentIds},l=this.renderPageWithLookup(a,r);this.container.appendChild(l),this.pageStates.push({element:l,pageNumber:a.number,fragmentCount:a.fragments.length});}}renderPageWithLookup(e,o){let t=this.doc.createElement("div");t.className="layout-page",t.dataset.pageNumber=String(e.number),t.style.position="relative",t.style.width=`${e.size.w}px`,t.style.height=`${e.size.h}px`,t.style.backgroundColor=this.options.pageBackground??"#ffffff",t.style.overflow="hidden",this.options.showShadow&&(t.style.boxShadow="0 2px 8px rgba(0, 0, 0, 0.15)");let a=this.doc.createElement("div");a.className="layout-page-content",a.style.position="absolute",a.style.top=`${e.margins.top}px`,a.style.left=`${e.margins.left}px`,a.style.right=`${e.margins.right}px`,a.style.bottom=`${e.margins.bottom}px`,a.style.overflow="visible";for(let r of e.fragments){let l=this.renderFragmentWithLookup(r,o);this.applyFragmentPosition(l,r),a.appendChild(l);}return t.appendChild(a),t}renderFragmentWithLookup(e,o){let t=this.blockLookup.get(String(e.blockId));if(e.kind==="paragraph"&&t){let a=t.block,r=t.measure;return chunk4AJYHCPB_js.v(e,a,r,o,{document:this.doc})}if(e.kind==="table"&&t){let a=t.block,r=t.measure;return chunk4AJYHCPB_js.y(e,a,r,o,{document:this.doc})}if(e.kind==="image"&&t){let a=t.block,r=t.measure;return chunk4AJYHCPB_js.s(e,a,r,o,{document:this.doc})}if(e.kind==="textBox"&&t){let a=t.block,r=t.measure;return chunk4AJYHCPB_js.A(e,a,r,o,{document:this.doc})}return chunk4AJYHCPB_js.m(e,o,{document:this.doc})}applyFragmentPosition(e,o){e.style.position="absolute",e.style.left=`${o.x}px`,e.style.top=`${o.y}px`,e.style.width=`${o.width}px`,"height"in o&&(e.style.height=`${o.height}px`);}getPageCount(){return this.totalPages}getPageElement(e){return this.pageStates[e]?.element??null}scrollToPage(e){let o=this.pageStates.find(t=>t.pageNumber===e);o?.element&&o.element.scrollIntoView({behavior:"smooth",block:"start"});}};function W(n){return new c(n)}Object.defineProperty(exports,"FRAGMENT_CLASS_NAMES",{enumerable:true,get:function(){return chunk4AJYHCPB_js.l}});Object.defineProperty(exports,"IMAGE_CLASS_NAMES",{enumerable:true,get:function(){return chunk4AJYHCPB_js.r}});Object.defineProperty(exports,"TABLE_CLASS_NAMES",{enumerable:true,get:function(){return chunk4AJYHCPB_js.x}});Object.defineProperty(exports,"TEXTBOX_CLASS_NAMES",{enumerable:true,get:function(){return chunk4AJYHCPB_js.z}});Object.defineProperty(exports,"isFloatingImageRun",{enumerable:true,get:function(){return chunk4AJYHCPB_js.p}});Object.defineProperty(exports,"isTextWrappingFloatingImageRun",{enumerable:true,get:function(){return chunk4AJYHCPB_js.q}});Object.defineProperty(exports,"renderFragment",{enumerable:true,get:function(){return chunk4AJYHCPB_js.m}});Object.defineProperty(exports,"renderImageFragment",{enumerable:true,get:function(){return chunk4AJYHCPB_js.s}});Object.defineProperty(exports,"renderLine",{enumerable:true,get:function(){return chunk4AJYHCPB_js.u}});Object.defineProperty(exports,"renderPage",{enumerable:true,get:function(){return chunk4AJYHCPB_js.F}});Object.defineProperty(exports,"renderPages",{enumerable:true,get:function(){return chunk4AJYHCPB_js.C}});Object.defineProperty(exports,"renderParagraphFragment",{enumerable:true,get:function(){return chunk4AJYHCPB_js.v}});Object.defineProperty(exports,"renderTableFragment",{enumerable:true,get:function(){return chunk4AJYHCPB_js.y}});Object.defineProperty(exports,"renderTextBoxFragment",{enumerable:true,get:function(){return chunk4AJYHCPB_js.A}});Object.defineProperty(exports,"sliceRunsForLine",{enumerable:true,get:function(){return chunk4AJYHCPB_js.t}});exports.IMAGE_LAYOUT_OPTIONS=H;exports.LAYOUT_IMAGE_CLASSES=i;exports.LayoutPainter=c;exports.captureInlinePositionEmu=B;exports.createPainter=W;exports.deriveLayoutChoice=C;exports.findImageElement=v;exports.hitTestImage=P;exports.isImageLayoutOptionEnabled=R;exports.toolbarValueToLayoutTarget=A;
1
+ 'use strict';var chunkT5RYEG2V_js=require('../chunk-T5RYEG2V.js');require('../chunk-TYYOBPNK.js'),require('../chunk-44RUAQA2.js'),require('../chunk-DROCYKAR.js'),require('../chunk-BKHQA6JJ.js'),require('../chunk-DV6IEOP5.js'),require('../chunk-WZP6ZHBR.js'),require('../chunk-D4RPOJC7.js'),require('../chunk-IP2VXNWG.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-MZOVDLYL.js'),require('../chunk-YGHHSCPR.js'),require('../chunk-7VCMJCBY.js'),require('../chunk-OLKDLRJ4.js'),require('../chunk-VQ2QGHYS.js'),require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-6LVPRTB6.js'),require('../chunk-NERY274X.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-C2BAPYGJ.js'),require('../chunk-Q4CKLXWA.js');var chunk4Q2IP5FW_js=require('../chunk-4Q2IP5FW.js'),chunkDC7S76ZX_js=require('../chunk-DC7S76ZX.js');var i={runImage:"layout-run-image",blockImage:"layout-block-image",pageFloatingImage:"layout-page-floating-image",cellFloatingImage:"layout-cell-floating-image",pageContent:"layout-page-content",paragraph:"layout-paragraph"},y=[`.${i.pageFloatingImage}`,`.${i.cellFloatingImage}`,`.${i.blockImage}`,`.${i.runImage}`].join(", ");function P(n){if(!(n instanceof Element))return null;let e=n.closest(y);if(!e)return null;let o=e.dataset.pmStart;if(o===void 0)return null;let t=Number(o);return Number.isNaN(t)?null:{pos:t,imageEl:e}}function v(n){if(!(n instanceof HTMLElement))return null;if(n.tagName==="IMG"&&n.classList.contains(i.runImage))return n;let e=n.closest(y);return e&&e.dataset.pmStart?e:null}function B(n,e=1){if(!n.classList.contains(i.runImage))return;let o=n.closest(`.${i.pageContent}`),t=n.closest(`.${i.paragraph}`);if(!o||!t)return;let a=n.getBoundingClientRect(),r=o.getBoundingClientRect(),l=t.getBoundingClientRect(),p=e>0?e:1;return {horizontalEmu:Math.round(chunk4Q2IP5FW_js.f((a.left-r.left)/p)),verticalEmu:Math.round(chunk4Q2IP5FW_js.f((a.top-l.top)/p))}}function C(n,e){return n==="inline"?"inline":n==="behind"?"behind":n==="inFront"?"inFront":n==="square"||n==="tight"||n==="through"?e==="right"?"squareRight":"squareLeft":null}var H=[{choice:"inline",i18nLabelKey:"inLineWithText",i18nDescKey:"inLineWithText",iconHint:"inline"},{choice:"squareLeft",i18nLabelKey:"squareLeft",i18nDescKey:"squareLeft",iconHint:"squareLeft"},{choice:"squareRight",i18nLabelKey:"squareRight",i18nDescKey:"squareRight",iconHint:"squareRight"},{choice:"behind",i18nLabelKey:"behindText",i18nDescKey:"behindText",iconHint:"behind"},{choice:"inFront",i18nLabelKey:"inFrontOfText",i18nDescKey:"inFrontOfText",iconHint:"inFront"}];function R(n,e){return true}function A(n){switch(n){case "inline":return "inline";case "square":case "tight":case "through":return "squareLeft";case "topAndBottom":return "topAndBottom";case "behind":return "behind";case "inFront":return "inFront";case "wrapRight":return "squareLeft";case "wrapLeft":return "squareRight";default:return}}var c=class{constructor(e={}){chunkDC7S76ZX_js.a(this,"container",null);chunkDC7S76ZX_js.a(this,"blockLookup",new Map);chunkDC7S76ZX_js.a(this,"pageStates",[]);chunkDC7S76ZX_js.a(this,"totalPages",0);chunkDC7S76ZX_js.a(this,"options");chunkDC7S76ZX_js.a(this,"doc");chunkDC7S76ZX_js.a(this,"resolvedCommentIds",new Set);this.options=e,this.doc=e.document??document;}setBlockLookup(e){this.blockLookup=e;}mount(e){this.container=e,this.applyContainerStyles();}unmount(){this.container&&(this.container.innerHTML=""),this.container=null,this.pageStates=[];}applyContainerStyles(){if(!this.container)return;let e=this.options.pageGap??24;this.container.style.display="flex",this.container.style.flexDirection="column",this.container.style.alignItems="center",this.container.style.gap=`${e}px`,this.container.style.padding=`${e}px`,this.container.style.backgroundColor=this.options.containerBackground??"var(--doc-bg, #f8f9fa)",this.container.style.minHeight="100%";}paint(e){if(!this.container)throw new Error("LayoutPainter: not mounted");let{pages:o}=e;this.totalPages=o.length,this.container.innerHTML="",this.pageStates=[];for(let t=0;t<o.length;t++){let a=o[t],r={pageNumber:a.number,totalPages:this.totalPages,section:"body",resolvedCommentIds:this.resolvedCommentIds},l=this.renderPageWithLookup(a,r);this.container.appendChild(l),this.pageStates.push({element:l,pageNumber:a.number,fragmentCount:a.fragments.length});}}renderPageWithLookup(e,o){let t=this.doc.createElement("div");t.className="layout-page",t.dataset.pageNumber=String(e.number),t.style.position="relative",t.style.width=`${e.size.w}px`,t.style.height=`${e.size.h}px`,t.style.backgroundColor=this.options.pageBackground??"#ffffff",t.style.overflow="hidden",this.options.showShadow&&(t.style.boxShadow="0 2px 8px rgba(0, 0, 0, 0.15)");let a=this.doc.createElement("div");a.className="layout-page-content",a.style.position="absolute",a.style.top=`${e.margins.top}px`,a.style.left=`${e.margins.left}px`,a.style.right=`${e.margins.right}px`,a.style.bottom=`${e.margins.bottom}px`,a.style.overflow="visible";for(let r of e.fragments){let l=this.renderFragmentWithLookup(r,o);this.applyFragmentPosition(l,r),a.appendChild(l);}return t.appendChild(a),t}renderFragmentWithLookup(e,o){let t=this.blockLookup.get(String(e.blockId));if(e.kind==="paragraph"&&t){let a=t.block,r=t.measure;return chunkT5RYEG2V_js.v(e,a,r,o,{document:this.doc})}if(e.kind==="table"&&t){let a=t.block,r=t.measure;return chunkT5RYEG2V_js.y(e,a,r,o,{document:this.doc})}if(e.kind==="image"&&t){let a=t.block,r=t.measure;return chunkT5RYEG2V_js.s(e,a,r,o,{document:this.doc})}if(e.kind==="textBox"&&t){let a=t.block,r=t.measure;return chunkT5RYEG2V_js.A(e,a,r,o,{document:this.doc})}return chunkT5RYEG2V_js.m(e,o,{document:this.doc})}applyFragmentPosition(e,o){e.style.position="absolute",e.style.left=`${o.x}px`,e.style.top=`${o.y}px`,e.style.width=`${o.width}px`,"height"in o&&(e.style.height=`${o.height}px`);}getPageCount(){return this.totalPages}getPageElement(e){return this.pageStates[e]?.element??null}scrollToPage(e){let o=this.pageStates.find(t=>t.pageNumber===e);o?.element&&o.element.scrollIntoView({behavior:"smooth",block:"start"});}};function W(n){return new c(n)}Object.defineProperty(exports,"FRAGMENT_CLASS_NAMES",{enumerable:true,get:function(){return chunkT5RYEG2V_js.l}});Object.defineProperty(exports,"IMAGE_CLASS_NAMES",{enumerable:true,get:function(){return chunkT5RYEG2V_js.r}});Object.defineProperty(exports,"TABLE_CLASS_NAMES",{enumerable:true,get:function(){return chunkT5RYEG2V_js.x}});Object.defineProperty(exports,"TEXTBOX_CLASS_NAMES",{enumerable:true,get:function(){return chunkT5RYEG2V_js.z}});Object.defineProperty(exports,"isFloatingImageRun",{enumerable:true,get:function(){return chunkT5RYEG2V_js.p}});Object.defineProperty(exports,"isTextWrappingFloatingImageRun",{enumerable:true,get:function(){return chunkT5RYEG2V_js.q}});Object.defineProperty(exports,"renderFragment",{enumerable:true,get:function(){return chunkT5RYEG2V_js.m}});Object.defineProperty(exports,"renderImageFragment",{enumerable:true,get:function(){return chunkT5RYEG2V_js.s}});Object.defineProperty(exports,"renderLine",{enumerable:true,get:function(){return chunkT5RYEG2V_js.u}});Object.defineProperty(exports,"renderPage",{enumerable:true,get:function(){return chunkT5RYEG2V_js.F}});Object.defineProperty(exports,"renderPages",{enumerable:true,get:function(){return chunkT5RYEG2V_js.C}});Object.defineProperty(exports,"renderParagraphFragment",{enumerable:true,get:function(){return chunkT5RYEG2V_js.v}});Object.defineProperty(exports,"renderTableFragment",{enumerable:true,get:function(){return chunkT5RYEG2V_js.y}});Object.defineProperty(exports,"renderTextBoxFragment",{enumerable:true,get:function(){return chunkT5RYEG2V_js.A}});Object.defineProperty(exports,"sliceRunsForLine",{enumerable:true,get:function(){return chunkT5RYEG2V_js.t}});exports.IMAGE_LAYOUT_OPTIONS=H;exports.LAYOUT_IMAGE_CLASSES=i;exports.LayoutPainter=c;exports.captureInlinePositionEmu=B;exports.createPainter=W;exports.deriveLayoutChoice=C;exports.findImageElement=v;exports.hitTestImage=P;exports.isImageLayoutOptionEnabled=R;exports.toolbarValueToLayoutTarget=A;
@@ -1 +1 @@
1
- import {v as v$1,y as y$1,s,A as A$1,m}from'../chunk-V7BKPX67.mjs';export{l as FRAGMENT_CLASS_NAMES,r as IMAGE_CLASS_NAMES,x as TABLE_CLASS_NAMES,z as TEXTBOX_CLASS_NAMES,p as isFloatingImageRun,q as isTextWrappingFloatingImageRun,m as renderFragment,s as renderImageFragment,u as renderLine,F as renderPage,C as renderPages,v as renderParagraphFragment,y as renderTableFragment,A as renderTextBoxFragment,t as sliceRunsForLine}from'../chunk-V7BKPX67.mjs';import'../chunk-7GHQ4YCJ.mjs';import'../chunk-5N5DBQJV.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-G6Y4UZMJ.mjs';import'../chunk-BWHUD2XC.mjs';import'../chunk-UIROUI5I.mjs';import'../chunk-LBKMYD3M.mjs';import'../chunk-NBLJPT54.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-ILJUDEZ5.mjs';import'../chunk-IBNUQL57.mjs';import'../chunk-6LOYA7G5.mjs';import'../chunk-JKVXID22.mjs';import'../chunk-LVD6HXRF.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-BGY3CB37.mjs';import'../chunk-CP5OSG5Z.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-6VUYFDHY.mjs';import'../chunk-VQWZHPWI.mjs';import {f}from'../chunk-VW22RZ6C.mjs';import {a}from'../chunk-QYUPLKLP.mjs';var i={runImage:"layout-run-image",blockImage:"layout-block-image",pageFloatingImage:"layout-page-floating-image",cellFloatingImage:"layout-cell-floating-image",pageContent:"layout-page-content",paragraph:"layout-paragraph"},y=[`.${i.pageFloatingImage}`,`.${i.cellFloatingImage}`,`.${i.blockImage}`,`.${i.runImage}`].join(", ");function P(n){if(!(n instanceof Element))return null;let e=n.closest(y);if(!e)return null;let o=e.dataset.pmStart;if(o===void 0)return null;let t=Number(o);return Number.isNaN(t)?null:{pos:t,imageEl:e}}function v(n){if(!(n instanceof HTMLElement))return null;if(n.tagName==="IMG"&&n.classList.contains(i.runImage))return n;let e=n.closest(y);return e&&e.dataset.pmStart?e:null}function B(n,e=1){if(!n.classList.contains(i.runImage))return;let o=n.closest(`.${i.pageContent}`),t=n.closest(`.${i.paragraph}`);if(!o||!t)return;let a=n.getBoundingClientRect(),r=o.getBoundingClientRect(),l=t.getBoundingClientRect(),p=e>0?e:1;return {horizontalEmu:Math.round(f((a.left-r.left)/p)),verticalEmu:Math.round(f((a.top-l.top)/p))}}function C(n,e){return n==="inline"?"inline":n==="behind"?"behind":n==="inFront"?"inFront":n==="square"||n==="tight"||n==="through"?e==="right"?"squareRight":"squareLeft":null}var H=[{choice:"inline",i18nLabelKey:"inLineWithText",i18nDescKey:"inLineWithText",iconHint:"inline"},{choice:"squareLeft",i18nLabelKey:"squareLeft",i18nDescKey:"squareLeft",iconHint:"squareLeft"},{choice:"squareRight",i18nLabelKey:"squareRight",i18nDescKey:"squareRight",iconHint:"squareRight"},{choice:"behind",i18nLabelKey:"behindText",i18nDescKey:"behindText",iconHint:"behind"},{choice:"inFront",i18nLabelKey:"inFrontOfText",i18nDescKey:"inFrontOfText",iconHint:"inFront"}];function R(n,e){return true}function A(n){switch(n){case "inline":return "inline";case "square":case "tight":case "through":return "squareLeft";case "topAndBottom":return "topAndBottom";case "behind":return "behind";case "inFront":return "inFront";case "wrapRight":return "squareLeft";case "wrapLeft":return "squareRight";default:return}}var c=class{constructor(e={}){a(this,"container",null);a(this,"blockLookup",new Map);a(this,"pageStates",[]);a(this,"totalPages",0);a(this,"options");a(this,"doc");a(this,"resolvedCommentIds",new Set);this.options=e,this.doc=e.document??document;}setBlockLookup(e){this.blockLookup=e;}mount(e){this.container=e,this.applyContainerStyles();}unmount(){this.container&&(this.container.innerHTML=""),this.container=null,this.pageStates=[];}applyContainerStyles(){if(!this.container)return;let e=this.options.pageGap??24;this.container.style.display="flex",this.container.style.flexDirection="column",this.container.style.alignItems="center",this.container.style.gap=`${e}px`,this.container.style.padding=`${e}px`,this.container.style.backgroundColor=this.options.containerBackground??"var(--doc-bg, #f8f9fa)",this.container.style.minHeight="100%";}paint(e){if(!this.container)throw new Error("LayoutPainter: not mounted");let{pages:o}=e;this.totalPages=o.length,this.container.innerHTML="",this.pageStates=[];for(let t=0;t<o.length;t++){let a=o[t],r={pageNumber:a.number,totalPages:this.totalPages,section:"body",resolvedCommentIds:this.resolvedCommentIds},l=this.renderPageWithLookup(a,r);this.container.appendChild(l),this.pageStates.push({element:l,pageNumber:a.number,fragmentCount:a.fragments.length});}}renderPageWithLookup(e,o){let t=this.doc.createElement("div");t.className="layout-page",t.dataset.pageNumber=String(e.number),t.style.position="relative",t.style.width=`${e.size.w}px`,t.style.height=`${e.size.h}px`,t.style.backgroundColor=this.options.pageBackground??"#ffffff",t.style.overflow="hidden",this.options.showShadow&&(t.style.boxShadow="0 2px 8px rgba(0, 0, 0, 0.15)");let a=this.doc.createElement("div");a.className="layout-page-content",a.style.position="absolute",a.style.top=`${e.margins.top}px`,a.style.left=`${e.margins.left}px`,a.style.right=`${e.margins.right}px`,a.style.bottom=`${e.margins.bottom}px`,a.style.overflow="visible";for(let r of e.fragments){let l=this.renderFragmentWithLookup(r,o);this.applyFragmentPosition(l,r),a.appendChild(l);}return t.appendChild(a),t}renderFragmentWithLookup(e,o){let t=this.blockLookup.get(String(e.blockId));if(e.kind==="paragraph"&&t){let a=t.block,r=t.measure;return v$1(e,a,r,o,{document:this.doc})}if(e.kind==="table"&&t){let a=t.block,r=t.measure;return y$1(e,a,r,o,{document:this.doc})}if(e.kind==="image"&&t){let a=t.block,r=t.measure;return s(e,a,r,o,{document:this.doc})}if(e.kind==="textBox"&&t){let a=t.block,r=t.measure;return A$1(e,a,r,o,{document:this.doc})}return m(e,o,{document:this.doc})}applyFragmentPosition(e,o){e.style.position="absolute",e.style.left=`${o.x}px`,e.style.top=`${o.y}px`,e.style.width=`${o.width}px`,"height"in o&&(e.style.height=`${o.height}px`);}getPageCount(){return this.totalPages}getPageElement(e){return this.pageStates[e]?.element??null}scrollToPage(e){let o=this.pageStates.find(t=>t.pageNumber===e);o?.element&&o.element.scrollIntoView({behavior:"smooth",block:"start"});}};function W(n){return new c(n)}export{H as IMAGE_LAYOUT_OPTIONS,i as LAYOUT_IMAGE_CLASSES,c as LayoutPainter,B as captureInlinePositionEmu,W as createPainter,C as deriveLayoutChoice,v as findImageElement,P as hitTestImage,R as isImageLayoutOptionEnabled,A as toolbarValueToLayoutTarget};
1
+ import {v as v$1,y as y$1,s,A as A$1,m}from'../chunk-BTOBVF4I.mjs';export{l as FRAGMENT_CLASS_NAMES,r as IMAGE_CLASS_NAMES,x as TABLE_CLASS_NAMES,z as TEXTBOX_CLASS_NAMES,p as isFloatingImageRun,q as isTextWrappingFloatingImageRun,m as renderFragment,s as renderImageFragment,u as renderLine,F as renderPage,C as renderPages,v as renderParagraphFragment,y as renderTableFragment,A as renderTextBoxFragment,t as sliceRunsForLine}from'../chunk-BTOBVF4I.mjs';import'../chunk-5TNMVXDS.mjs';import'../chunk-5N5DBQJV.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-2D3UPAMA.mjs';import'../chunk-3GNIP6IX.mjs';import'../chunk-2RCMY2GE.mjs';import'../chunk-LBKMYD3M.mjs';import'../chunk-NBLJPT54.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-ILJUDEZ5.mjs';import'../chunk-IBNUQL57.mjs';import'../chunk-6LOYA7G5.mjs';import'../chunk-NMSU4MWP.mjs';import'../chunk-P6RNOYAG.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-BGY3CB37.mjs';import'../chunk-CP5OSG5Z.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-LE67NTCN.mjs';import'../chunk-VQWZHPWI.mjs';import {f}from'../chunk-VW22RZ6C.mjs';import {a}from'../chunk-QYUPLKLP.mjs';var i={runImage:"layout-run-image",blockImage:"layout-block-image",pageFloatingImage:"layout-page-floating-image",cellFloatingImage:"layout-cell-floating-image",pageContent:"layout-page-content",paragraph:"layout-paragraph"},y=[`.${i.pageFloatingImage}`,`.${i.cellFloatingImage}`,`.${i.blockImage}`,`.${i.runImage}`].join(", ");function P(n){if(!(n instanceof Element))return null;let e=n.closest(y);if(!e)return null;let o=e.dataset.pmStart;if(o===void 0)return null;let t=Number(o);return Number.isNaN(t)?null:{pos:t,imageEl:e}}function v(n){if(!(n instanceof HTMLElement))return null;if(n.tagName==="IMG"&&n.classList.contains(i.runImage))return n;let e=n.closest(y);return e&&e.dataset.pmStart?e:null}function B(n,e=1){if(!n.classList.contains(i.runImage))return;let o=n.closest(`.${i.pageContent}`),t=n.closest(`.${i.paragraph}`);if(!o||!t)return;let a=n.getBoundingClientRect(),r=o.getBoundingClientRect(),l=t.getBoundingClientRect(),p=e>0?e:1;return {horizontalEmu:Math.round(f((a.left-r.left)/p)),verticalEmu:Math.round(f((a.top-l.top)/p))}}function C(n,e){return n==="inline"?"inline":n==="behind"?"behind":n==="inFront"?"inFront":n==="square"||n==="tight"||n==="through"?e==="right"?"squareRight":"squareLeft":null}var H=[{choice:"inline",i18nLabelKey:"inLineWithText",i18nDescKey:"inLineWithText",iconHint:"inline"},{choice:"squareLeft",i18nLabelKey:"squareLeft",i18nDescKey:"squareLeft",iconHint:"squareLeft"},{choice:"squareRight",i18nLabelKey:"squareRight",i18nDescKey:"squareRight",iconHint:"squareRight"},{choice:"behind",i18nLabelKey:"behindText",i18nDescKey:"behindText",iconHint:"behind"},{choice:"inFront",i18nLabelKey:"inFrontOfText",i18nDescKey:"inFrontOfText",iconHint:"inFront"}];function R(n,e){return true}function A(n){switch(n){case "inline":return "inline";case "square":case "tight":case "through":return "squareLeft";case "topAndBottom":return "topAndBottom";case "behind":return "behind";case "inFront":return "inFront";case "wrapRight":return "squareLeft";case "wrapLeft":return "squareRight";default:return}}var c=class{constructor(e={}){a(this,"container",null);a(this,"blockLookup",new Map);a(this,"pageStates",[]);a(this,"totalPages",0);a(this,"options");a(this,"doc");a(this,"resolvedCommentIds",new Set);this.options=e,this.doc=e.document??document;}setBlockLookup(e){this.blockLookup=e;}mount(e){this.container=e,this.applyContainerStyles();}unmount(){this.container&&(this.container.innerHTML=""),this.container=null,this.pageStates=[];}applyContainerStyles(){if(!this.container)return;let e=this.options.pageGap??24;this.container.style.display="flex",this.container.style.flexDirection="column",this.container.style.alignItems="center",this.container.style.gap=`${e}px`,this.container.style.padding=`${e}px`,this.container.style.backgroundColor=this.options.containerBackground??"var(--doc-bg, #f8f9fa)",this.container.style.minHeight="100%";}paint(e){if(!this.container)throw new Error("LayoutPainter: not mounted");let{pages:o}=e;this.totalPages=o.length,this.container.innerHTML="",this.pageStates=[];for(let t=0;t<o.length;t++){let a=o[t],r={pageNumber:a.number,totalPages:this.totalPages,section:"body",resolvedCommentIds:this.resolvedCommentIds},l=this.renderPageWithLookup(a,r);this.container.appendChild(l),this.pageStates.push({element:l,pageNumber:a.number,fragmentCount:a.fragments.length});}}renderPageWithLookup(e,o){let t=this.doc.createElement("div");t.className="layout-page",t.dataset.pageNumber=String(e.number),t.style.position="relative",t.style.width=`${e.size.w}px`,t.style.height=`${e.size.h}px`,t.style.backgroundColor=this.options.pageBackground??"#ffffff",t.style.overflow="hidden",this.options.showShadow&&(t.style.boxShadow="0 2px 8px rgba(0, 0, 0, 0.15)");let a=this.doc.createElement("div");a.className="layout-page-content",a.style.position="absolute",a.style.top=`${e.margins.top}px`,a.style.left=`${e.margins.left}px`,a.style.right=`${e.margins.right}px`,a.style.bottom=`${e.margins.bottom}px`,a.style.overflow="visible";for(let r of e.fragments){let l=this.renderFragmentWithLookup(r,o);this.applyFragmentPosition(l,r),a.appendChild(l);}return t.appendChild(a),t}renderFragmentWithLookup(e,o){let t=this.blockLookup.get(String(e.blockId));if(e.kind==="paragraph"&&t){let a=t.block,r=t.measure;return v$1(e,a,r,o,{document:this.doc})}if(e.kind==="table"&&t){let a=t.block,r=t.measure;return y$1(e,a,r,o,{document:this.doc})}if(e.kind==="image"&&t){let a=t.block,r=t.measure;return s(e,a,r,o,{document:this.doc})}if(e.kind==="textBox"&&t){let a=t.block,r=t.measure;return A$1(e,a,r,o,{document:this.doc})}return m(e,o,{document:this.doc})}applyFragmentPosition(e,o){e.style.position="absolute",e.style.left=`${o.x}px`,e.style.top=`${o.y}px`,e.style.width=`${o.width}px`,"height"in o&&(e.style.height=`${o.height}px`);}getPageCount(){return this.totalPages}getPageElement(e){return this.pageStates[e]?.element??null}scrollToPage(e){let o=this.pageStates.find(t=>t.pageNumber===e);o?.element&&o.element.scrollIntoView({behavior:"smooth",block:"start"});}};function W(n){return new c(n)}export{H as IMAGE_LAYOUT_OPTIONS,i as LAYOUT_IMAGE_CLASSES,c as LayoutPainter,B as captureInlinePositionEmu,W as createPainter,C as deriveLayoutChoice,v as findImageElement,P as hitTestImage,R as isImageLayoutOptionEnabled,A as toolbarValueToLayoutTarget};
@@ -269,6 +269,13 @@ interface RenderLineOptions {
269
269
  };
270
270
  /** Track inline image runs already rendered in this paragraph fragment to prevent duplicates */
271
271
  renderedInlineImageKeys?: Set<string>;
272
+ /**
273
+ * Rightmost x where inline content may render, in content-area coords. Used
274
+ * by the right-tab anchor; passed in directly (rather than recomposed from
275
+ * `leftIndentPx + availableWidth`) because `availableWidth` excludes the
276
+ * hung-out region for some inputs and would drift.
277
+ */
278
+ lineRightEdgePx?: number;
272
279
  }
273
280
  /**
274
281
  * Render a single line
@@ -269,6 +269,13 @@ interface RenderLineOptions {
269
269
  };
270
270
  /** Track inline image runs already rendered in this paragraph fragment to prevent duplicates */
271
271
  renderedInlineImageKeys?: Set<string>;
272
+ /**
273
+ * Rightmost x where inline content may render, in content-area coords. Used
274
+ * by the right-tab anchor; passed in directly (rather than recomposed from
275
+ * `leftIndentPx + availableWidth`) because `availableWidth` excludes the
276
+ * hung-out region for some inputs and would drift.
277
+ */
278
+ lineRightEdgePx?: number;
272
279
  }
273
280
  /**
274
281
  * Render a single line
@@ -1 +1 @@
1
- 'use strict';var chunk4AJYHCPB_js=require('../chunk-4AJYHCPB.js');require('../chunk-N27FJQTG.js'),require('../chunk-44RUAQA2.js'),require('../chunk-DROCYKAR.js'),require('../chunk-DY2MJCSV.js'),require('../chunk-CWAP26GB.js'),require('../chunk-Y7JZPBBW.js'),require('../chunk-D4RPOJC7.js'),require('../chunk-IP2VXNWG.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-MZOVDLYL.js'),require('../chunk-YGHHSCPR.js'),require('../chunk-7VCMJCBY.js'),require('../chunk-SUXJX72X.js'),require('../chunk-DFZTUQ7O.js'),require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-6LVPRTB6.js'),require('../chunk-NERY274X.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-T4CPTPRP.js'),require('../chunk-Q4CKLXWA.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"PAGE_CLASS_NAMES",{enumerable:true,get:function(){return chunk4AJYHCPB_js.D}});Object.defineProperty(exports,"applyPageStyles",{enumerable:true,get:function(){return chunk4AJYHCPB_js.E}});Object.defineProperty(exports,"floatingImageIsBehindDoc",{enumerable:true,get:function(){return chunk4AJYHCPB_js.o}});Object.defineProperty(exports,"floatingImageWrapsText",{enumerable:true,get:function(){return chunk4AJYHCPB_js.n}});Object.defineProperty(exports,"isFloatingImageRun",{enumerable:true,get:function(){return chunk4AJYHCPB_js.p}});Object.defineProperty(exports,"isTextWrappingFloatingImageRun",{enumerable:true,get:function(){return chunk4AJYHCPB_js.q}});Object.defineProperty(exports,"renderFloatingImagesLayer",{enumerable:true,get:function(){return chunk4AJYHCPB_js.w}});Object.defineProperty(exports,"renderPage",{enumerable:true,get:function(){return chunk4AJYHCPB_js.F}});Object.defineProperty(exports,"renderPages",{enumerable:true,get:function(){return chunk4AJYHCPB_js.C}});Object.defineProperty(exports,"resolveHeaderFooterFloatingTablePosition",{enumerable:true,get:function(){return chunk4AJYHCPB_js.B}});
1
+ 'use strict';var chunkT5RYEG2V_js=require('../chunk-T5RYEG2V.js');require('../chunk-TYYOBPNK.js'),require('../chunk-44RUAQA2.js'),require('../chunk-DROCYKAR.js'),require('../chunk-BKHQA6JJ.js'),require('../chunk-DV6IEOP5.js'),require('../chunk-WZP6ZHBR.js'),require('../chunk-D4RPOJC7.js'),require('../chunk-IP2VXNWG.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-MZOVDLYL.js'),require('../chunk-YGHHSCPR.js'),require('../chunk-7VCMJCBY.js'),require('../chunk-OLKDLRJ4.js'),require('../chunk-VQ2QGHYS.js'),require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-6LVPRTB6.js'),require('../chunk-NERY274X.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-C2BAPYGJ.js'),require('../chunk-Q4CKLXWA.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"PAGE_CLASS_NAMES",{enumerable:true,get:function(){return chunkT5RYEG2V_js.D}});Object.defineProperty(exports,"applyPageStyles",{enumerable:true,get:function(){return chunkT5RYEG2V_js.E}});Object.defineProperty(exports,"floatingImageIsBehindDoc",{enumerable:true,get:function(){return chunkT5RYEG2V_js.o}});Object.defineProperty(exports,"floatingImageWrapsText",{enumerable:true,get:function(){return chunkT5RYEG2V_js.n}});Object.defineProperty(exports,"isFloatingImageRun",{enumerable:true,get:function(){return chunkT5RYEG2V_js.p}});Object.defineProperty(exports,"isTextWrappingFloatingImageRun",{enumerable:true,get:function(){return chunkT5RYEG2V_js.q}});Object.defineProperty(exports,"renderFloatingImagesLayer",{enumerable:true,get:function(){return chunkT5RYEG2V_js.w}});Object.defineProperty(exports,"renderPage",{enumerable:true,get:function(){return chunkT5RYEG2V_js.F}});Object.defineProperty(exports,"renderPages",{enumerable:true,get:function(){return chunkT5RYEG2V_js.C}});Object.defineProperty(exports,"resolveHeaderFooterFloatingTablePosition",{enumerable:true,get:function(){return chunkT5RYEG2V_js.B}});
@@ -1 +1 @@
1
- export{D as PAGE_CLASS_NAMES,E as applyPageStyles,o as floatingImageIsBehindDoc,n as floatingImageWrapsText,p as isFloatingImageRun,q as isTextWrappingFloatingImageRun,w as renderFloatingImagesLayer,F as renderPage,C as renderPages,B as resolveHeaderFooterFloatingTablePosition}from'../chunk-V7BKPX67.mjs';import'../chunk-7GHQ4YCJ.mjs';import'../chunk-5N5DBQJV.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-G6Y4UZMJ.mjs';import'../chunk-BWHUD2XC.mjs';import'../chunk-UIROUI5I.mjs';import'../chunk-LBKMYD3M.mjs';import'../chunk-NBLJPT54.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-ILJUDEZ5.mjs';import'../chunk-IBNUQL57.mjs';import'../chunk-6LOYA7G5.mjs';import'../chunk-JKVXID22.mjs';import'../chunk-LVD6HXRF.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-BGY3CB37.mjs';import'../chunk-CP5OSG5Z.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-6VUYFDHY.mjs';import'../chunk-VQWZHPWI.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-QYUPLKLP.mjs';
1
+ export{D as PAGE_CLASS_NAMES,E as applyPageStyles,o as floatingImageIsBehindDoc,n as floatingImageWrapsText,p as isFloatingImageRun,q as isTextWrappingFloatingImageRun,w as renderFloatingImagesLayer,F as renderPage,C as renderPages,B as resolveHeaderFooterFloatingTablePosition}from'../chunk-BTOBVF4I.mjs';import'../chunk-5TNMVXDS.mjs';import'../chunk-5N5DBQJV.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-2D3UPAMA.mjs';import'../chunk-3GNIP6IX.mjs';import'../chunk-2RCMY2GE.mjs';import'../chunk-LBKMYD3M.mjs';import'../chunk-NBLJPT54.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-ILJUDEZ5.mjs';import'../chunk-IBNUQL57.mjs';import'../chunk-6LOYA7G5.mjs';import'../chunk-NMSU4MWP.mjs';import'../chunk-P6RNOYAG.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-BGY3CB37.mjs';import'../chunk-CP5OSG5Z.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-LE67NTCN.mjs';import'../chunk-VQWZHPWI.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-QYUPLKLP.mjs';