@eigenpal/docx-js-editor 0.0.19 → 0.0.21

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 (201) hide show
  1. package/README.md +83 -0
  2. package/dist/{ClipboardManager-EZ0C6Onq.d.cts → ClipboardManager-B1jZrC6h.d.cts} +1 -1
  3. package/dist/{ClipboardManager-D6dkOFg6.d.ts → ClipboardManager-jqJVxB6g.d.ts} +1 -1
  4. package/dist/{DocumentAgent-BcCDg7i2.d.ts → DocumentAgent-CnJ9AEl_.d.cts} +31 -3
  5. package/dist/{DocumentAgent-B0EC8lPC.d.cts → DocumentAgent-CrbsDniO.d.ts} +31 -3
  6. package/dist/{FindReplaceDialog-AWQXKEUQ.js → FindReplaceDialog-AQFR4OCT.js} +1 -2
  7. package/dist/FindReplaceDialog-J3DI3U5I.cjs +1 -0
  8. package/dist/{FootnotePropertiesDialog-73VT2ZVZ.cjs → FootnotePropertiesDialog-DO5DCAW6.cjs} +1 -2
  9. package/dist/{FootnotePropertiesDialog-ZM3EF3EF.js → FootnotePropertiesDialog-YYIZU5U6.js} +1 -2
  10. package/dist/{HyperlinkDialog-BA25XUT5.js → HyperlinkDialog-HGZ2S37Z.js} +1 -2
  11. package/dist/HyperlinkDialog-PEPS3C2G.cjs +1 -0
  12. package/dist/{ImagePositionDialog-AIAMKPFK.js → ImagePositionDialog-DQ4JWS4F.js} +1 -2
  13. package/dist/{ImagePositionDialog-KMK7ROV2.cjs → ImagePositionDialog-UYXYHSP4.cjs} +1 -2
  14. package/dist/{ImagePropertiesDialog-ERFCUVCW.js → ImagePropertiesDialog-GJMGLM6G.js} +1 -2
  15. package/dist/{ImagePropertiesDialog-USMMRK6X.cjs → ImagePropertiesDialog-V6SVKINO.cjs} +1 -2
  16. package/dist/{TablePropertiesDialog-72CIUAZT.cjs → TablePropertiesDialog-A36OXG3A.cjs} +1 -2
  17. package/dist/{TablePropertiesDialog-EMUEVYB3.js → TablePropertiesDialog-STZOGHJB.js} +1 -2
  18. package/dist/{agentApi-BFVyKagE.d.cts → agentApi-DfsWRyrP.d.cts} +1 -1
  19. package/dist/{agentApi-BFVyKagE.d.ts → agentApi-DfsWRyrP.d.ts} +1 -1
  20. package/dist/{chunk-FDANI5P4.cjs → chunk-2VHQ7YOQ.cjs} +1 -2
  21. package/dist/chunk-2Y6FLZ5Q.js +3 -0
  22. package/dist/chunk-32HMU2UV.js +111 -0
  23. package/dist/chunk-4CUGBNL2.cjs +1 -0
  24. package/dist/chunk-5GFXHUMP.js +1 -0
  25. package/dist/chunk-6NDMKJIE.js +9 -0
  26. package/dist/chunk-6NYA53QC.cjs +258 -0
  27. package/dist/chunk-7KJ3YVDQ.js +10 -0
  28. package/dist/{chunk-JOYPFQW2.js → chunk-AARNCPWR.js} +1 -2
  29. package/dist/{chunk-4QT5LPBA.cjs → chunk-B7TICMXD.cjs} +16 -17
  30. package/dist/{chunk-2QOEHCBX.js → chunk-BUEMG4NW.js} +1 -2
  31. package/dist/{chunk-CV5WFE7K.js → chunk-CLDB6TL7.js} +2 -3
  32. package/dist/{chunk-M2T6XKT5.js → chunk-CTYOM6BE.js} +1 -2
  33. package/dist/chunk-EH3NY2DQ.cjs +26 -0
  34. package/dist/{chunk-FGVGZLBL.js → chunk-FVUGBRDD.js} +1 -2
  35. package/dist/chunk-FXJAIFPR.js +59 -0
  36. package/dist/chunk-GICVJSFJ.cjs +9 -0
  37. package/dist/{chunk-Y6VCTLCJ.js → chunk-H5NTJZO4.js} +1 -2
  38. package/dist/chunk-HT2Z33YM.cjs +111 -0
  39. package/dist/chunk-JRRTZZ72.cjs +1 -0
  40. package/dist/{chunk-T2HQYRA7.cjs → chunk-NVAQQYBJ.cjs} +1 -2
  41. package/dist/chunk-P3AEZKQO.cjs +3 -0
  42. package/dist/{chunk-GWBTKVFD.cjs → chunk-P7ZF45KZ.cjs} +1 -2
  43. package/dist/{chunk-QEBO3EQP.cjs → chunk-PCJ5ACUV.cjs} +1 -2
  44. package/dist/{chunk-Q6HUGWO6.js → chunk-PJVI53AH.js} +1 -2
  45. package/dist/chunk-Q7YYC75E.js +258 -0
  46. package/dist/{chunk-7JSPKVOW.js → chunk-QVPR2W5S.js} +1 -2
  47. package/dist/{chunk-XZNOV52K.cjs → chunk-TAF6KYDM.cjs} +4 -5
  48. package/dist/chunk-USRMBYI6.js +3 -0
  49. package/dist/chunk-UTWPV2I4.js +26 -0
  50. package/dist/{chunk-DJAEBZ33.cjs → chunk-VTAS7VZ6.cjs} +1 -2
  51. package/dist/chunk-XQNCLN4T.cjs +3 -0
  52. package/dist/{chunk-S26DZVRQ.cjs → chunk-XS2AQFMF.cjs} +1 -2
  53. package/dist/chunk-Y6QBJGMO.cjs +59 -0
  54. package/dist/{chunk-WD2HTKRR.cjs → chunk-YS7FDEZ4.cjs} +1 -2
  55. package/dist/chunk-ZTVQA46Q.js +1 -0
  56. package/dist/{clipboard-beGtyabO.d.ts → clipboard-BE8E-szx.d.ts} +1 -1
  57. package/dist/{clipboard-CqE-UZ2d.d.cts → clipboard-DkfAv07F.d.cts} +1 -1
  58. package/dist/{colorResolver-B5YbO_a4.d.ts → colorResolver-CYttioMe.d.ts} +46 -3
  59. package/dist/{colorResolver-Cu46bSKr.d.cts → colorResolver-Dr8kQZAQ.d.cts} +46 -3
  60. package/dist/core-plugins-reexport.cjs +1 -2
  61. package/dist/core-plugins-reexport.d.cts +4 -4
  62. package/dist/core-plugins-reexport.d.ts +4 -4
  63. package/dist/core-plugins-reexport.js +1 -2
  64. package/dist/core-reexport.cjs +1 -2
  65. package/dist/core-reexport.d.cts +10 -10
  66. package/dist/core-reexport.d.ts +10 -10
  67. package/dist/core-reexport.js +1 -2
  68. package/dist/executor-JGWZ7S6Z.cjs +1 -0
  69. package/dist/executor-L2MVKMXO.js +1 -0
  70. package/dist/{fontLoader-CFKpg0Ri.d.ts → fontLoader-BsqQnB4v.d.ts} +1 -1
  71. package/dist/{fontLoader-HZYfILUm.d.cts → fontLoader-DECXIoMr.d.cts} +1 -1
  72. package/dist/headless-reexport.cjs +4 -5
  73. package/dist/headless-reexport.d.cts +7 -7
  74. package/dist/headless-reexport.d.ts +7 -7
  75. package/dist/headless-reexport.js +4 -5
  76. package/dist/index.cjs +6 -7
  77. package/dist/index.css +0 -1
  78. package/dist/index.d.cts +12 -12
  79. package/dist/index.d.ts +12 -12
  80. package/dist/index.js +6 -7
  81. package/dist/lib-GD2QD2JK.js +1 -0
  82. package/dist/lib-HOLGQI5K.cjs +1 -0
  83. package/dist/mcp-reexport.cjs +9 -10
  84. package/dist/mcp-reexport.d.cts +2 -2
  85. package/dist/mcp-reexport.d.ts +2 -2
  86. package/dist/mcp-reexport.js +4 -5
  87. package/dist/{processTemplate-G37IM66O.js → processTemplate-3HN7Q3KT.js} +1 -2
  88. package/dist/processTemplate-BXZKWRQD.cjs +1 -0
  89. package/dist/{react-BjOCdeTs.d.ts → react-C6bgHDFl.d.ts} +8 -6
  90. package/dist/{react-UzAn4o7l.d.cts → react-CAlVCYa4.d.cts} +8 -6
  91. package/dist/react.cjs +1 -2
  92. package/dist/react.css +0 -1
  93. package/dist/react.d.cts +5 -5
  94. package/dist/react.d.ts +5 -5
  95. package/dist/react.js +1 -2
  96. package/dist/{registry-DjacfR6Q.d.cts → registry-BU-FbHh-.d.cts} +1 -1
  97. package/dist/{registry-CV6nYWqP.d.ts → registry-gRbkCooh.d.ts} +1 -1
  98. package/dist/selectionRects-7QU337P5.cjs +1 -0
  99. package/dist/selectionRects-V5RC2BYX.js +1 -0
  100. package/dist/styles.css +1 -1
  101. package/dist/{types-DwZ3xysp.d.ts → types-7wjInVMW.d.ts} +1 -1
  102. package/dist/{types-Bnp8rvJn.d.cts → types-DEEpBL9H.d.cts} +1 -1
  103. package/dist/ui.cjs +1 -2
  104. package/dist/ui.d.cts +32 -85
  105. package/dist/ui.d.ts +32 -85
  106. package/dist/ui.js +1 -2
  107. package/dist/{variableDetector-CMhJtM96.d.cts → variableDetector-B4oQJa2e.d.cts} +33 -2
  108. package/dist/{variableDetector-BaDeXz7D.d.ts → variableDetector-BXJaTkiB.d.ts} +33 -2
  109. package/package.json +2 -1
  110. package/dist/FindReplaceDialog-AWQXKEUQ.js.map +0 -1
  111. package/dist/FindReplaceDialog-I4SZDSVP.cjs +0 -2
  112. package/dist/FindReplaceDialog-I4SZDSVP.cjs.map +0 -1
  113. package/dist/FootnotePropertiesDialog-73VT2ZVZ.cjs.map +0 -1
  114. package/dist/FootnotePropertiesDialog-ZM3EF3EF.js.map +0 -1
  115. package/dist/HyperlinkDialog-BA25XUT5.js.map +0 -1
  116. package/dist/HyperlinkDialog-V63LPOT2.cjs +0 -2
  117. package/dist/HyperlinkDialog-V63LPOT2.cjs.map +0 -1
  118. package/dist/ImagePositionDialog-AIAMKPFK.js.map +0 -1
  119. package/dist/ImagePositionDialog-KMK7ROV2.cjs.map +0 -1
  120. package/dist/ImagePropertiesDialog-ERFCUVCW.js.map +0 -1
  121. package/dist/ImagePropertiesDialog-USMMRK6X.cjs.map +0 -1
  122. package/dist/TablePropertiesDialog-72CIUAZT.cjs.map +0 -1
  123. package/dist/TablePropertiesDialog-EMUEVYB3.js.map +0 -1
  124. package/dist/chunk-2CHPKB5A.cjs +0 -112
  125. package/dist/chunk-2CHPKB5A.cjs.map +0 -1
  126. package/dist/chunk-2QOEHCBX.js.map +0 -1
  127. package/dist/chunk-4QT5LPBA.cjs.map +0 -1
  128. package/dist/chunk-5DYSI4O4.cjs +0 -60
  129. package/dist/chunk-5DYSI4O4.cjs.map +0 -1
  130. package/dist/chunk-5FJXHXFV.cjs +0 -2
  131. package/dist/chunk-5FJXHXFV.cjs.map +0 -1
  132. package/dist/chunk-6FEWNF6B.js +0 -4
  133. package/dist/chunk-6FEWNF6B.js.map +0 -1
  134. package/dist/chunk-6LF5HZCV.js +0 -10
  135. package/dist/chunk-6LF5HZCV.js.map +0 -1
  136. package/dist/chunk-7JSPKVOW.js.map +0 -1
  137. package/dist/chunk-C33XDRDJ.cjs +0 -28
  138. package/dist/chunk-C33XDRDJ.cjs.map +0 -1
  139. package/dist/chunk-CV5WFE7K.js.map +0 -1
  140. package/dist/chunk-CXJRNISO.js +0 -2
  141. package/dist/chunk-CXJRNISO.js.map +0 -1
  142. package/dist/chunk-DJAEBZ33.cjs.map +0 -1
  143. package/dist/chunk-DP6Q75ZD.js +0 -28
  144. package/dist/chunk-DP6Q75ZD.js.map +0 -1
  145. package/dist/chunk-FDANI5P4.cjs.map +0 -1
  146. package/dist/chunk-FGVGZLBL.js.map +0 -1
  147. package/dist/chunk-GJ4GKSDU.cjs +0 -2
  148. package/dist/chunk-GJ4GKSDU.cjs.map +0 -1
  149. package/dist/chunk-GWBTKVFD.cjs.map +0 -1
  150. package/dist/chunk-JOYPFQW2.js.map +0 -1
  151. package/dist/chunk-L54YNLSE.js +0 -2
  152. package/dist/chunk-L54YNLSE.js.map +0 -1
  153. package/dist/chunk-LPGMLJMO.js +0 -259
  154. package/dist/chunk-LPGMLJMO.js.map +0 -1
  155. package/dist/chunk-M2T6XKT5.js.map +0 -1
  156. package/dist/chunk-OHG7ROFC.js +0 -11
  157. package/dist/chunk-OHG7ROFC.js.map +0 -1
  158. package/dist/chunk-PANKMCFX.cjs +0 -4
  159. package/dist/chunk-PANKMCFX.cjs.map +0 -1
  160. package/dist/chunk-Q6HUGWO6.js.map +0 -1
  161. package/dist/chunk-QDV75OJ4.js +0 -112
  162. package/dist/chunk-QDV75OJ4.js.map +0 -1
  163. package/dist/chunk-QEBO3EQP.cjs.map +0 -1
  164. package/dist/chunk-QVIZ775M.cjs +0 -259
  165. package/dist/chunk-QVIZ775M.cjs.map +0 -1
  166. package/dist/chunk-RMUMR42R.cjs +0 -10
  167. package/dist/chunk-RMUMR42R.cjs.map +0 -1
  168. package/dist/chunk-S26DZVRQ.cjs.map +0 -1
  169. package/dist/chunk-T2HQYRA7.cjs.map +0 -1
  170. package/dist/chunk-ULXNEG66.js +0 -60
  171. package/dist/chunk-ULXNEG66.js.map +0 -1
  172. package/dist/chunk-WD2HTKRR.cjs.map +0 -1
  173. package/dist/chunk-XZNOV52K.cjs.map +0 -1
  174. package/dist/chunk-Y6VCTLCJ.js.map +0 -1
  175. package/dist/core-plugins-reexport.cjs.map +0 -1
  176. package/dist/core-plugins-reexport.js.map +0 -1
  177. package/dist/core-reexport.cjs.map +0 -1
  178. package/dist/core-reexport.js.map +0 -1
  179. package/dist/executor-K5RXUTTR.js +0 -2
  180. package/dist/executor-K5RXUTTR.js.map +0 -1
  181. package/dist/executor-XIPIU3H4.cjs +0 -2
  182. package/dist/executor-XIPIU3H4.cjs.map +0 -1
  183. package/dist/headless-reexport.cjs.map +0 -1
  184. package/dist/headless-reexport.js.map +0 -1
  185. package/dist/index.cjs.map +0 -1
  186. package/dist/index.css.map +0 -1
  187. package/dist/index.js.map +0 -1
  188. package/dist/mcp-reexport.cjs.map +0 -1
  189. package/dist/mcp-reexport.js.map +0 -1
  190. package/dist/processTemplate-G37IM66O.js.map +0 -1
  191. package/dist/processTemplate-RFBGVH7T.cjs +0 -2
  192. package/dist/processTemplate-RFBGVH7T.cjs.map +0 -1
  193. package/dist/react.cjs.map +0 -1
  194. package/dist/react.css.map +0 -1
  195. package/dist/react.js.map +0 -1
  196. package/dist/selectionRects-6DU7HN7E.js +0 -2
  197. package/dist/selectionRects-6DU7HN7E.js.map +0 -1
  198. package/dist/selectionRects-YZSC24ZP.cjs +0 -2
  199. package/dist/selectionRects-YZSC24ZP.cjs.map +0 -1
  200. package/dist/ui.cjs.map +0 -1
  201. package/dist/ui.js.map +0 -1
@@ -1,2 +1 @@
1
- 'use strict';var chunkQEBO3EQP_cjs=require('./chunk-QEBO3EQP.cjs');var a=class{constructor(){chunkQEBO3EQP_cjs.d(this,"plugins",new Map);chunkQEBO3EQP_cjs.d(this,"commandHandlers",new Map);chunkQEBO3EQP_cjs.d(this,"eventListeners",new Set);chunkQEBO3EQP_cjs.d(this,"initialized",new Set);}register(e,r){let t=[];if(!e.id)return {success:false,error:"Plugin must have an id"};if(this.plugins.has(e.id))return {success:false,error:`Plugin '${e.id}' is already registered`};if(e.dependencies){for(let i of e.dependencies)if(!this.plugins.has(i))return {success:false,error:`Plugin '${e.id}' requires '${i}' which is not registered`}}if(e.commandHandlers)for(let[i,o]of Object.entries(e.commandHandlers)){if(this.commandHandlers.has(i)){let d=this.commandHandlers.get(i);t.push(`Command '${i}' from '${e.id}' overrides handler from '${d.pluginId}'`);}this.commandHandlers.set(i,{pluginId:e.id,handler:o});}if(this.plugins.set(e.id,e),e.initialize&&!this.initialized.has(e.id))try{let i=e.initialize();i instanceof Promise?i.then(()=>{this.initialized.add(e.id);}).catch(o=>{this.emit({type:"error",pluginId:e.id,error:o});}):this.initialized.add(e.id);}catch(i){this.emit({type:"error",pluginId:e.id,error:i});}return r?.debug&&console.log(`[PluginRegistry] Registered plugin: ${e.id}`),this.emit({type:"registered",plugin:e}),{success:true,plugin:e,warnings:t.length>0?t:void 0}}unregister(e){let r=this.plugins.get(e);if(!r)return false;for(let[t,i]of this.plugins)if(i.dependencies?.includes(e))return console.warn(`Cannot unregister '${e}': '${t}' depends on it`),false;for(let[t,{pluginId:i}]of this.commandHandlers)i===e&&this.commandHandlers.delete(t);if(r.destroy)try{let t=r.destroy();t instanceof Promise&&t.catch(i=>{this.emit({type:"error",pluginId:e,error:i});});}catch(t){this.emit({type:"error",pluginId:e,error:t});}return this.plugins.delete(e),this.initialized.delete(e),this.emit({type:"unregistered",pluginId:e}),true}get(e){return this.plugins.get(e)}getAll(){return Array.from(this.plugins.values())}has(e){return this.plugins.has(e)}get size(){return this.plugins.size}getCommandHandler(e){return this.commandHandlers.get(e)?.handler}getCommandTypes(){return Array.from(this.commandHandlers.keys())}hasCommandHandler(e){return this.commandHandlers.has(e)}getMcpTools(){let e=[];for(let r of this.plugins.values())r.mcpTools&&e.push(...r.mcpTools);return e}getMcpToolsForPlugin(e){return this.plugins.get(e)?.mcpTools||[]}getMcpTool(e){for(let r of this.plugins.values())if(r.mcpTools){let t=r.mcpTools.find(i=>i.name===e);if(t)return t}}addEventListener(e){this.eventListeners.add(e);}removeEventListener(e){this.eventListeners.delete(e);}emit(e){for(let r of this.eventListeners)try{r(e);}catch(t){console.error("[PluginRegistry] Event listener error:",t);}}clear(){for(let e of this.plugins.values())if(e.destroy)try{e.destroy();}catch{}this.plugins.clear(),this.commandHandlers.clear(),this.initialized.clear();}getDebugInfo(){return {plugins:Array.from(this.plugins.keys()),commandTypes:Array.from(this.commandHandlers.keys()),mcpTools:this.getMcpTools().map(e=>e.name),initialized:Array.from(this.initialized)}}},l=new a;function c(s,e){return s.map(r=>l.register(r,e))}function g(s){return e=>l.register(e,s)}exports.a=a;exports.b=l;exports.c=c;exports.d=g;//# sourceMappingURL=chunk-WD2HTKRR.cjs.map
2
- //# sourceMappingURL=chunk-WD2HTKRR.cjs.map
1
+ 'use strict';var chunkPCJ5ACUV_cjs=require('./chunk-PCJ5ACUV.cjs');var a=class{constructor(){chunkPCJ5ACUV_cjs.d(this,"plugins",new Map);chunkPCJ5ACUV_cjs.d(this,"commandHandlers",new Map);chunkPCJ5ACUV_cjs.d(this,"eventListeners",new Set);chunkPCJ5ACUV_cjs.d(this,"initialized",new Set);}register(e,r){let t=[];if(!e.id)return {success:false,error:"Plugin must have an id"};if(this.plugins.has(e.id))return {success:false,error:`Plugin '${e.id}' is already registered`};if(e.dependencies){for(let i of e.dependencies)if(!this.plugins.has(i))return {success:false,error:`Plugin '${e.id}' requires '${i}' which is not registered`}}if(e.commandHandlers)for(let[i,o]of Object.entries(e.commandHandlers)){if(this.commandHandlers.has(i)){let d=this.commandHandlers.get(i);t.push(`Command '${i}' from '${e.id}' overrides handler from '${d.pluginId}'`);}this.commandHandlers.set(i,{pluginId:e.id,handler:o});}if(this.plugins.set(e.id,e),e.initialize&&!this.initialized.has(e.id))try{let i=e.initialize();i instanceof Promise?i.then(()=>{this.initialized.add(e.id);}).catch(o=>{this.emit({type:"error",pluginId:e.id,error:o});}):this.initialized.add(e.id);}catch(i){this.emit({type:"error",pluginId:e.id,error:i});}return r?.debug&&console.log(`[PluginRegistry] Registered plugin: ${e.id}`),this.emit({type:"registered",plugin:e}),{success:true,plugin:e,warnings:t.length>0?t:void 0}}unregister(e){let r=this.plugins.get(e);if(!r)return false;for(let[t,i]of this.plugins)if(i.dependencies?.includes(e))return console.warn(`Cannot unregister '${e}': '${t}' depends on it`),false;for(let[t,{pluginId:i}]of this.commandHandlers)i===e&&this.commandHandlers.delete(t);if(r.destroy)try{let t=r.destroy();t instanceof Promise&&t.catch(i=>{this.emit({type:"error",pluginId:e,error:i});});}catch(t){this.emit({type:"error",pluginId:e,error:t});}return this.plugins.delete(e),this.initialized.delete(e),this.emit({type:"unregistered",pluginId:e}),true}get(e){return this.plugins.get(e)}getAll(){return Array.from(this.plugins.values())}has(e){return this.plugins.has(e)}get size(){return this.plugins.size}getCommandHandler(e){return this.commandHandlers.get(e)?.handler}getCommandTypes(){return Array.from(this.commandHandlers.keys())}hasCommandHandler(e){return this.commandHandlers.has(e)}getMcpTools(){let e=[];for(let r of this.plugins.values())r.mcpTools&&e.push(...r.mcpTools);return e}getMcpToolsForPlugin(e){return this.plugins.get(e)?.mcpTools||[]}getMcpTool(e){for(let r of this.plugins.values())if(r.mcpTools){let t=r.mcpTools.find(i=>i.name===e);if(t)return t}}addEventListener(e){this.eventListeners.add(e);}removeEventListener(e){this.eventListeners.delete(e);}emit(e){for(let r of this.eventListeners)try{r(e);}catch(t){console.error("[PluginRegistry] Event listener error:",t);}}clear(){for(let e of this.plugins.values())if(e.destroy)try{e.destroy();}catch{}this.plugins.clear(),this.commandHandlers.clear(),this.initialized.clear();}getDebugInfo(){return {plugins:Array.from(this.plugins.keys()),commandTypes:Array.from(this.commandHandlers.keys()),mcpTools:this.getMcpTools().map(e=>e.name),initialized:Array.from(this.initialized)}}},l=new a;function c(s,e){return s.map(r=>l.register(r,e))}function g(s){return e=>l.register(e,s)}exports.a=a;exports.b=l;exports.c=c;exports.d=g;
@@ -0,0 +1 @@
1
+ var m={dk1:"000000",lt1:"FFFFFF",dk2:"44546A",lt2:"E7E6E6",accent1:"4472C4",accent2:"ED7D31",accent3:"A5A5A5",accent4:"FFC000",accent5:"5B9BD5",accent6:"70AD47",hlink:"0563C1",folHlink:"954F72"},T={black:"000000",blue:"0000FF",cyan:"00FFFF",darkBlue:"00008B",darkCyan:"008B8B",darkGray:"A9A9A9",darkGreen:"006400",darkMagenta:"8B008B",darkRed:"8B0000",darkYellow:"808000",green:"00FF00",lightGray:"D3D3D3",magenta:"FF00FF",red:"FF0000",white:"FFFFFF",yellow:"FFFF00",none:""},b={dk1:"dk1",lt1:"lt1",dk2:"dk2",lt2:"lt2",accent1:"accent1",accent2:"accent2",accent3:"accent3",accent4:"accent4",accent5:"accent5",accent6:"accent6",hlink:"hlink",folHlink:"folHlink",dark1:"dk1",light1:"lt1",dark2:"dk2",light2:"lt2",hyperlink:"hlink",followedHyperlink:"folHlink",background1:"lt1",text1:"dk1",background2:"lt2",text2:"dk2",tx1:"dk1",tx2:"dk2",bg1:"lt1",bg2:"lt2"};function p(e){if(!e)return 1;let t=parseInt(e,16);return isNaN(t)?1:t/255}function c(e){let t=e.padStart(6,"0").slice(0,6),n=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),o=parseInt(t.slice(4,6),16);return {r:isNaN(n)?0:n,g:isNaN(r)?0:r,b:isNaN(o)?0:o}}function h(e,t,n){let r=o=>Math.max(0,Math.min(255,Math.round(o))).toString(16).padStart(2,"0");return `${r(e)}${r(t)}${r(n)}`.toUpperCase()}function g(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),o=Math.min(e,t,n),u=(r+o)/2;if(r===o)return {h:0,s:0,l:u};let l=r-o,a=u>.5?l/(2-r-o):l/(r+o),s;switch(r){case e:s=((t-n)/l+(t<n?6:0))/6;break;case t:s=((n-e)/l+2)/6;break;case n:s=((e-t)/l+4)/6;break;default:s=0;}return {h:s*360,s:a,l:u}}function C(e,t,n){if(e=e/360,t===0){let l=Math.round(n*255);return {r:l,g:l,b:l}}let r=(l,a,s)=>(s<0&&(s+=1),s>1&&(s-=1),s<1/6?l+(a-l)*6*s:s<1/2?a:s<2/3?l+(a-l)*(2/3-s)*6:l),o=n<.5?n*(1+t):n+t-n*t,u=2*n-o;return {r:Math.round(r(u,o,e+1/3)*255),g:Math.round(r(u,o,e)*255),b:Math.round(r(u,o,e-1/3)*255)}}function f(e,t){if(t<=0||t>=1)return t>=1?"FFFFFF":e;let n=c(e),r=g(n.r,n.g,n.b);r.l=r.l+(1-r.l)*t;let o=C(r.h,r.s,r.l);return h(o.r,o.g,o.b)}function d(e,t){if(t<=0||t>=1)return t<=0?"000000":e;let n=c(e),r=g(n.r,n.g,n.b);r.l=r.l*t;let o=C(r.h,r.s,r.l);return h(o.r,o.g,o.b)}function S(e,t){let n=b[t]??t,r=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],o=u=>r.includes(u);return e?.colorScheme?o(n)?e.colorScheme[n]??m[n]??"000000":"000000":o(n)?m[n]??"000000":"000000"}function x(e){if(!e)return null;let t=e.toLowerCase();return b[e]??b[t]??null}function i(e,t,n="000000"){if(!e)return `#${n}`;if(e.auto)return `#${n}`;let r;if(e.themeColor){let o=x(e.themeColor);if(o?r=S(t,o):r=e.rgb??n,e.themeTint){let u=p(e.themeTint);r=f(r,u);}else if(e.themeShade){let u=p(e.themeShade);r=d(r,u);}}else e.rgb?r=e.rgb:r=n;return `#${r.toUpperCase().replace(/^#/,"")}`}function _(e){if(!e||e==="none")return "";let t=T[e];return t?`#${t}`:""}function k(e,t){return e?e.auto?"transparent":i(e,t):""}function F(e,t){if(!e)return false;if(e.auto)return true;let r=i(e,t).replace(/^#/,"").toLowerCase(),o=c(r);return (o.r+o.g+o.b)/3<20}function R(e,t){if(!e)return false;let r=i(e,t).replace(/^#/,"").toLowerCase(),o=c(r);return (o.r+o.g+o.b)/3>235}function y(e,t){if(!e)return "#000000";let r=i(e,t).replace(/^#/,""),o=c(r);return (.299*o.r+.587*o.g+.114*o.b)/255>.5?"#000000":"#FFFFFF"}function N(e){if(!e)return;let t=e.trim();if(t.toLowerCase()==="auto")return {auto:true};let n=x(t);if(n)return {themeColor:n};let r=t.replace(/^#/,"").toUpperCase();return /^[0-9A-F]{6}$/i.test(r)?{rgb:r}:/^[0-9A-F]{3}$/i.test(r)?{rgb:r.split("").map(u=>u+u).join("")}:{rgb:r.padStart(6,"0").slice(0,6)}}function M(e,t,n){let r={themeColor:e};return t!==void 0&&t>0&&t<1&&(r.themeTint=Math.round(t*255).toString(16).toUpperCase().padStart(2,"0")),n!==void 0&&n>0&&n<1&&(r.themeShade=Math.round(n*255).toString(16).toUpperCase().padStart(2,"0")),r}function V(e){return {rgb:e.replace(/^#/,"").toUpperCase()}}function A(e,t,n){let o=i(e,t).replace(/^#/,""),u=1-n/100;return `#${d(o,u)}`}function v(e,t,n){let o=i(e,t).replace(/^#/,""),u=n/100;return `#${f(o,u)}`}function L(e,t,n,r){let o=i(e,r).replace(/^#/,""),u=i(t,r).replace(/^#/,""),l=c(o),a=c(u),s={r:Math.round(l.r*(1-n)+a.r*n),g:Math.round(l.g*(1-n)+a.g*n),b:Math.round(l.b*(1-n)+a.b*n)};return `#${h(s.r,s.g,s.b)}`}function E(e){return e.startsWith("#")?e:`#${e}`}function D(e){return _(e)||E(e)}var P=[{slot:"lt1",name:"Background 1"},{slot:"dk1",name:"Text 1"},{slot:"lt2",name:"Background 2"},{slot:"dk2",name:"Text 2"},{slot:"accent1",name:"Accent 1"},{slot:"accent2",name:"Accent 2"},{slot:"accent3",name:"Accent 3"},{slot:"accent4",name:"Accent 4"},{slot:"accent5",name:"Accent 5"},{slot:"accent6",name:"Accent 6"}],I=[{type:"base",value:0,hexValue:"",labelSuffix:""},{type:"tint",value:.8,hexValue:"CC",labelSuffix:", Lighter 80%"},{type:"tint",value:.6,hexValue:"99",labelSuffix:", Lighter 60%"},{type:"tint",value:.4,hexValue:"66",labelSuffix:", Lighter 40%"},{type:"shade",value:.75,hexValue:"BF",labelSuffix:", Darker 25%"},{type:"shade",value:.5,hexValue:"80",labelSuffix:", Darker 50%"}];function U(e,t,n){return t==="tint"?f(e,n):d(e,n)}function $(e){let t=e??m;return I.map(n=>P.map(r=>{let o=t[r.slot]??m[r.slot]??"000000",u;n.type==="base"?u=o.toUpperCase():n.type==="tint"?u=f(o,n.value):u=d(o,n.value);let l={hex:u,themeSlot:r.slot,label:`${r.name}${n.labelSuffix}`};return n.type==="tint"&&n.hexValue?l.tint=n.hexValue:n.type==="shade"&&n.hexValue&&(l.shade=n.hexValue),l}))}function B(e,t,n){if(!e&&!t)return true;if(!e||!t)return false;let r=i(e,n).toUpperCase(),o=i(t,n).toUpperCase();return r===o}function X(e){return e/1440*96}function W(e){return e/96*1440}function G(e){return e/914400*96}function K(e){return e/96*914400}function w(e){return e/914400*1440}function z(e){return e/1440*914400}function j(e){return e/72*96}function Y(e){return e/144*96}function q(e){return e/2}function J(e){return e/576*96}function H(e,t=2){let n=Math.pow(10,t);return Math.round(e*n)/n}function Q(e){return `${H(e)}px`}export{J as A,Q as B,i as a,_ as b,k as c,F as d,R as e,y as f,N as g,M as h,V as i,A as j,v as k,L as l,E as m,D as n,U as o,$ as p,B as q,X as r,W as s,G as t,K as u,w as v,z as w,j as x,Y as y,q as z};
@@ -1,5 +1,5 @@
1
1
  import React__default, { CSSProperties, ReactNode } from 'react';
2
- import { e as Table, U as TableCell, b as Run, a as Paragraph } from './agentApi-BFVyKagE.js';
2
+ import { e as Table, U as TableCell, b as Run, a as Paragraph } from './agentApi-DfsWRyrP.js';
3
3
 
4
4
  /**
5
5
  * PageNumberIndicator Component
@@ -1,5 +1,5 @@
1
1
  import React__default, { CSSProperties, ReactNode } from 'react';
2
- import { e as Table, U as TableCell, b as Run, a as Paragraph } from './agentApi-BFVyKagE.cjs';
2
+ import { e as Table, U as TableCell, b as Run, a as Paragraph } from './agentApi-DfsWRyrP.cjs';
3
3
 
4
4
  /**
5
5
  * PageNumberIndicator Component
@@ -1,5 +1,5 @@
1
- import { D as Document, d as DocumentBody, C as SectionProperties, A as AgentCommand, h as AgentContext, R as Range, G as SelectionContext, T as TextFormatting, ae as ColorValue, X as Theme, af as ThemeColorSlot } from './agentApi-BFVyKagE.js';
2
- import { f as DocxInput } from './DocumentAgent-BcCDg7i2.js';
1
+ import { D as Document, d as DocumentBody, C as SectionProperties, A as AgentCommand, h as AgentContext, R as Range, G as SelectionContext, T as TextFormatting, ae as ColorValue, X as Theme, af as ThemeColorSlot, ab as ThemeColorScheme } from './agentApi-DfsWRyrP.js';
2
+ import { g as DocxInput } from './DocumentAgent-CrbsDniO.js';
3
3
 
4
4
  /**
5
5
  * Main Parser Orchestrator - Unified parseDocx function
@@ -605,6 +605,49 @@ declare function lightenColor(color: ColorValue | undefined | null, theme: Theme
605
605
  * @returns CSS color string
606
606
  */
607
607
  declare function blendColors(color1: ColorValue | undefined | null, color2: ColorValue | undefined | null, ratio: number, theme: Theme | null | undefined): string;
608
+ /**
609
+ * Ensure a hex color string has a '#' prefix.
610
+ */
611
+ declare function ensureHexPrefix(hex: string): string;
612
+ /**
613
+ * Resolve a highlight color value to a CSS-ready string.
614
+ * Tries OOXML named highlight first, then ensures hex prefix.
615
+ */
616
+ declare function resolveHighlightToCss(value: string): string;
617
+ /**
618
+ * Theme color matrix cell
619
+ */
620
+ interface ThemeMatrixCell {
621
+ /** Resolved hex color (6 chars, no #) */
622
+ hex: string;
623
+ /** Theme color slot */
624
+ themeSlot: ThemeColorSlot;
625
+ /** Tint hex modifier if applicable (e.g., "CC") */
626
+ tint?: string;
627
+ /** Shade hex modifier if applicable (e.g., "BF") */
628
+ shade?: string;
629
+ /** Human-readable label (e.g., "Accent 1, Lighter 60%") */
630
+ label: string;
631
+ }
632
+ /**
633
+ * Compute a single tinted or shaded hex color from a base color.
634
+ *
635
+ * @param baseHex - 6-character hex color (no #)
636
+ * @param type - 'tint' to lighten, 'shade' to darken
637
+ * @param fraction - Amount (0-1). For tint: 0=no change, 1=white. For shade: 0=black, 1=no change.
638
+ * @returns 6-character hex color (no #)
639
+ */
640
+ declare function getThemeTintShadeHex(baseHex: string, type: 'tint' | 'shade', fraction: number): string;
641
+ /**
642
+ * Generate the 10×6 theme color matrix for an advanced color picker.
643
+ *
644
+ * Columns: lt1, dk1, lt2, dk2, accent1-6 (matches Word's order)
645
+ * Rows: base, 80% tint, 60% tint, 40% tint, 25% shade, 50% shade
646
+ *
647
+ * @param colorScheme - Theme color scheme (falls back to Office 2016 defaults)
648
+ * @returns 6 rows × 10 columns of ThemeMatrixCell
649
+ */
650
+ declare function generateThemeTintShadeMatrix(colorScheme?: ThemeColorScheme | null): ThemeMatrixCell[][];
608
651
  /**
609
652
  * Check if two colors are equal
610
653
  *
@@ -615,4 +658,4 @@ declare function blendColors(color1: ColorValue | undefined | null, color2: Colo
615
658
  */
616
659
  declare function colorsEqual(color1: ColorValue | undefined | null, color2: ColorValue | undefined | null, theme: Theme | null | undefined): boolean;
617
660
 
618
- export { validateTemplate as $, type AgentContextOptions as A, isWhite as B, type CreateEmptyDocumentOptions as C, lightenColor as D, type ExtendedSelectionContext as E, type FormattingSummary as F, parseColorString as G, parseDocx as H, pixelsToEmu as I, pixelsToTwips as J, pointsToPixels as K, previewTemplate as L, processTemplate as M, processTemplateAdvanced as N, processTemplateAsBlob as O, type ProcessTemplateOptions as P, processTemplateDetailed as Q, resolveColor as R, type SelectionContextOptions$1 as S, type TemplateError as T, resolveHighlightColor as U, resolveShadingColor as V, serializeDocumentBody as W, serializeDocument as X, serializeSectionProperties as Y, twipsToEmu as Z, twipsToPixels as _, type ProcessTemplateResult as a, type SelectionContextOptions as b, blendColors as c, buildExtendedSelectionContext as d, buildSelectionContext as e, buildSelectionContext$1 as f, colorsEqual as g, createDocumentWithText as h, createEmptyDocument as i, createRgbColor as j, createTemplateProcessor as k, createThemeColor as l, darkenColor as m, emuToPixels as n, emuToTwips as o, executeCommand as p, executeCommands as q, formatPx as r, getAgentContext as s, getContrastingColor as t, getDocumentSummary as u, getMissingVariables as v, getSelectionFormattingSummary as w, getTemplateTags as x, halfPointsToPixels as y, isBlack as z };
661
+ export { validateTemplate as $, type AgentContextOptions as A, isWhite as B, type CreateEmptyDocumentOptions as C, lightenColor as D, type ExtendedSelectionContext as E, type FormattingSummary as F, parseColorString as G, parseDocx as H, pixelsToEmu as I, pixelsToTwips as J, pointsToPixels as K, previewTemplate as L, processTemplate as M, processTemplateAdvanced as N, processTemplateAsBlob as O, type ProcessTemplateOptions as P, processTemplateDetailed as Q, resolveColor as R, type SelectionContextOptions$1 as S, type TemplateError as T, resolveHighlightColor as U, resolveShadingColor as V, serializeDocumentBody as W, serializeDocument as X, serializeSectionProperties as Y, twipsToEmu as Z, twipsToPixels as _, type ProcessTemplateResult as a, type ThemeMatrixCell as a0, ensureHexPrefix as a1, generateThemeTintShadeMatrix as a2, getThemeTintShadeHex as a3, resolveHighlightToCss as a4, type SelectionContextOptions as b, blendColors as c, buildExtendedSelectionContext as d, buildSelectionContext as e, buildSelectionContext$1 as f, colorsEqual as g, createDocumentWithText as h, createEmptyDocument as i, createRgbColor as j, createTemplateProcessor as k, createThemeColor as l, darkenColor as m, emuToPixels as n, emuToTwips as o, executeCommand as p, executeCommands as q, formatPx as r, getAgentContext as s, getContrastingColor as t, getDocumentSummary as u, getMissingVariables as v, getSelectionFormattingSummary as w, getTemplateTags as x, halfPointsToPixels as y, isBlack as z };
@@ -1,5 +1,5 @@
1
- import { D as Document, d as DocumentBody, C as SectionProperties, A as AgentCommand, h as AgentContext, R as Range, G as SelectionContext, T as TextFormatting, ae as ColorValue, X as Theme, af as ThemeColorSlot } from './agentApi-BFVyKagE.cjs';
2
- import { f as DocxInput } from './DocumentAgent-B0EC8lPC.cjs';
1
+ import { D as Document, d as DocumentBody, C as SectionProperties, A as AgentCommand, h as AgentContext, R as Range, G as SelectionContext, T as TextFormatting, ae as ColorValue, X as Theme, af as ThemeColorSlot, ab as ThemeColorScheme } from './agentApi-DfsWRyrP.cjs';
2
+ import { g as DocxInput } from './DocumentAgent-CnJ9AEl_.cjs';
3
3
 
4
4
  /**
5
5
  * Main Parser Orchestrator - Unified parseDocx function
@@ -605,6 +605,49 @@ declare function lightenColor(color: ColorValue | undefined | null, theme: Theme
605
605
  * @returns CSS color string
606
606
  */
607
607
  declare function blendColors(color1: ColorValue | undefined | null, color2: ColorValue | undefined | null, ratio: number, theme: Theme | null | undefined): string;
608
+ /**
609
+ * Ensure a hex color string has a '#' prefix.
610
+ */
611
+ declare function ensureHexPrefix(hex: string): string;
612
+ /**
613
+ * Resolve a highlight color value to a CSS-ready string.
614
+ * Tries OOXML named highlight first, then ensures hex prefix.
615
+ */
616
+ declare function resolveHighlightToCss(value: string): string;
617
+ /**
618
+ * Theme color matrix cell
619
+ */
620
+ interface ThemeMatrixCell {
621
+ /** Resolved hex color (6 chars, no #) */
622
+ hex: string;
623
+ /** Theme color slot */
624
+ themeSlot: ThemeColorSlot;
625
+ /** Tint hex modifier if applicable (e.g., "CC") */
626
+ tint?: string;
627
+ /** Shade hex modifier if applicable (e.g., "BF") */
628
+ shade?: string;
629
+ /** Human-readable label (e.g., "Accent 1, Lighter 60%") */
630
+ label: string;
631
+ }
632
+ /**
633
+ * Compute a single tinted or shaded hex color from a base color.
634
+ *
635
+ * @param baseHex - 6-character hex color (no #)
636
+ * @param type - 'tint' to lighten, 'shade' to darken
637
+ * @param fraction - Amount (0-1). For tint: 0=no change, 1=white. For shade: 0=black, 1=no change.
638
+ * @returns 6-character hex color (no #)
639
+ */
640
+ declare function getThemeTintShadeHex(baseHex: string, type: 'tint' | 'shade', fraction: number): string;
641
+ /**
642
+ * Generate the 10×6 theme color matrix for an advanced color picker.
643
+ *
644
+ * Columns: lt1, dk1, lt2, dk2, accent1-6 (matches Word's order)
645
+ * Rows: base, 80% tint, 60% tint, 40% tint, 25% shade, 50% shade
646
+ *
647
+ * @param colorScheme - Theme color scheme (falls back to Office 2016 defaults)
648
+ * @returns 6 rows × 10 columns of ThemeMatrixCell
649
+ */
650
+ declare function generateThemeTintShadeMatrix(colorScheme?: ThemeColorScheme | null): ThemeMatrixCell[][];
608
651
  /**
609
652
  * Check if two colors are equal
610
653
  *
@@ -615,4 +658,4 @@ declare function blendColors(color1: ColorValue | undefined | null, color2: Colo
615
658
  */
616
659
  declare function colorsEqual(color1: ColorValue | undefined | null, color2: ColorValue | undefined | null, theme: Theme | null | undefined): boolean;
617
660
 
618
- export { validateTemplate as $, type AgentContextOptions as A, isWhite as B, type CreateEmptyDocumentOptions as C, lightenColor as D, type ExtendedSelectionContext as E, type FormattingSummary as F, parseColorString as G, parseDocx as H, pixelsToEmu as I, pixelsToTwips as J, pointsToPixels as K, previewTemplate as L, processTemplate as M, processTemplateAdvanced as N, processTemplateAsBlob as O, type ProcessTemplateOptions as P, processTemplateDetailed as Q, resolveColor as R, type SelectionContextOptions$1 as S, type TemplateError as T, resolveHighlightColor as U, resolveShadingColor as V, serializeDocumentBody as W, serializeDocument as X, serializeSectionProperties as Y, twipsToEmu as Z, twipsToPixels as _, type ProcessTemplateResult as a, type SelectionContextOptions as b, blendColors as c, buildExtendedSelectionContext as d, buildSelectionContext as e, buildSelectionContext$1 as f, colorsEqual as g, createDocumentWithText as h, createEmptyDocument as i, createRgbColor as j, createTemplateProcessor as k, createThemeColor as l, darkenColor as m, emuToPixels as n, emuToTwips as o, executeCommand as p, executeCommands as q, formatPx as r, getAgentContext as s, getContrastingColor as t, getDocumentSummary as u, getMissingVariables as v, getSelectionFormattingSummary as w, getTemplateTags as x, halfPointsToPixels as y, isBlack as z };
661
+ export { validateTemplate as $, type AgentContextOptions as A, isWhite as B, type CreateEmptyDocumentOptions as C, lightenColor as D, type ExtendedSelectionContext as E, type FormattingSummary as F, parseColorString as G, parseDocx as H, pixelsToEmu as I, pixelsToTwips as J, pointsToPixels as K, previewTemplate as L, processTemplate as M, processTemplateAdvanced as N, processTemplateAsBlob as O, type ProcessTemplateOptions as P, processTemplateDetailed as Q, resolveColor as R, type SelectionContextOptions$1 as S, type TemplateError as T, resolveHighlightColor as U, resolveShadingColor as V, serializeDocumentBody as W, serializeDocument as X, serializeSectionProperties as Y, twipsToEmu as Z, twipsToPixels as _, type ProcessTemplateResult as a, type ThemeMatrixCell as a0, ensureHexPrefix as a1, generateThemeTintShadeMatrix as a2, getThemeTintShadeHex as a3, resolveHighlightToCss as a4, type SelectionContextOptions as b, blendColors as c, buildExtendedSelectionContext as d, buildSelectionContext as e, buildSelectionContext$1 as f, colorsEqual as g, createDocumentWithText as h, createEmptyDocument as i, createRgbColor as j, createTemplateProcessor as k, createThemeColor as l, darkenColor as m, emuToPixels as n, emuToTwips as o, executeCommand as p, executeCommands as q, formatPx as r, getAgentContext as s, getContrastingColor as t, getDocumentSummary as u, getMissingVariables as v, getSelectionFormattingSummary as w, getTemplateTags as x, halfPointsToPixels as y, isBlack as z };
@@ -1,2 +1 @@
1
- 'use strict';var chunkXZNOV52K_cjs=require('./chunk-XZNOV52K.cjs');require('./chunk-C33XDRDJ.cjs');var chunkWD2HTKRR_cjs=require('./chunk-WD2HTKRR.cjs');require('./chunk-4QT5LPBA.cjs'),require('./chunk-QEBO3EQP.cjs');Object.defineProperty(exports,"docxtemplaterPlugin",{enumerable:true,get:function(){return chunkXZNOV52K_cjs.o}});Object.defineProperty(exports,"isZodSchema",{enumerable:true,get:function(){return chunkXZNOV52K_cjs.n}});Object.defineProperty(exports,"PluginRegistry",{enumerable:true,get:function(){return chunkWD2HTKRR_cjs.a}});Object.defineProperty(exports,"createPluginRegistrar",{enumerable:true,get:function(){return chunkWD2HTKRR_cjs.d}});Object.defineProperty(exports,"pluginRegistry",{enumerable:true,get:function(){return chunkWD2HTKRR_cjs.b}});Object.defineProperty(exports,"registerPlugins",{enumerable:true,get:function(){return chunkWD2HTKRR_cjs.c}});//# sourceMappingURL=core-plugins-reexport.cjs.map
2
- //# sourceMappingURL=core-plugins-reexport.cjs.map
1
+ 'use strict';var chunkTAF6KYDM_cjs=require('./chunk-TAF6KYDM.cjs');require('./chunk-B7TICMXD.cjs'),require('./chunk-EH3NY2DQ.cjs');var chunkYS7FDEZ4_cjs=require('./chunk-YS7FDEZ4.cjs');require('./chunk-XQNCLN4T.cjs'),require('./chunk-PCJ5ACUV.cjs');Object.defineProperty(exports,"docxtemplaterPlugin",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.o}});Object.defineProperty(exports,"isZodSchema",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.n}});Object.defineProperty(exports,"PluginRegistry",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.a}});Object.defineProperty(exports,"createPluginRegistrar",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.d}});Object.defineProperty(exports,"pluginRegistry",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.b}});Object.defineProperty(exports,"registerPlugins",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.c}});
@@ -1,7 +1,7 @@
1
- import { C as CorePlugin } from './types-Bnp8rvJn.cjs';
2
- export { b as CommandHandler, d as CommandResult, E as ExtractCommand, J as JsonSchema, L as LoadedDocument, e as McpSession, f as McpToolAnnotations, g as McpToolContent, h as McpToolContext, M as McpToolDefinition, n as McpToolExample, i as McpToolHandler, j as McpToolResult, k as PluginCommand, b as PluginCommandHandler, l as PluginEvent, c as PluginEventListener, P as PluginOptions, a as PluginRegistrationResult, M as ToolDefinition, i as ToolHandler, j as ToolResult, T as TypedCommandHandler, Z as ZodSchemaLike, m as isZodSchema } from './types-Bnp8rvJn.cjs';
3
- export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-DjacfR6Q.cjs';
4
- import './agentApi-BFVyKagE.cjs';
1
+ import { C as CorePlugin } from './types-DEEpBL9H.cjs';
2
+ export { b as CommandHandler, d as CommandResult, E as ExtractCommand, J as JsonSchema, L as LoadedDocument, e as McpSession, f as McpToolAnnotations, g as McpToolContent, h as McpToolContext, M as McpToolDefinition, n as McpToolExample, i as McpToolHandler, j as McpToolResult, k as PluginCommand, b as PluginCommandHandler, l as PluginEvent, c as PluginEventListener, P as PluginOptions, a as PluginRegistrationResult, M as ToolDefinition, i as ToolHandler, j as ToolResult, T as TypedCommandHandler, Z as ZodSchemaLike, m as isZodSchema } from './types-DEEpBL9H.cjs';
3
+ export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-BU-FbHh-.cjs';
4
+ import './agentApi-DfsWRyrP.cjs';
5
5
 
6
6
  /**
7
7
  * Docxtemplater Plugin
@@ -1,7 +1,7 @@
1
- import { C as CorePlugin } from './types-DwZ3xysp.js';
2
- export { b as CommandHandler, d as CommandResult, E as ExtractCommand, J as JsonSchema, L as LoadedDocument, e as McpSession, f as McpToolAnnotations, g as McpToolContent, h as McpToolContext, M as McpToolDefinition, n as McpToolExample, i as McpToolHandler, j as McpToolResult, k as PluginCommand, b as PluginCommandHandler, l as PluginEvent, c as PluginEventListener, P as PluginOptions, a as PluginRegistrationResult, M as ToolDefinition, i as ToolHandler, j as ToolResult, T as TypedCommandHandler, Z as ZodSchemaLike, m as isZodSchema } from './types-DwZ3xysp.js';
3
- export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-CV6nYWqP.js';
4
- import './agentApi-BFVyKagE.js';
1
+ import { C as CorePlugin } from './types-7wjInVMW.js';
2
+ export { b as CommandHandler, d as CommandResult, E as ExtractCommand, J as JsonSchema, L as LoadedDocument, e as McpSession, f as McpToolAnnotations, g as McpToolContent, h as McpToolContext, M as McpToolDefinition, n as McpToolExample, i as McpToolHandler, j as McpToolResult, k as PluginCommand, b as PluginCommandHandler, l as PluginEvent, c as PluginEventListener, P as PluginOptions, a as PluginRegistrationResult, M as ToolDefinition, i as ToolHandler, j as ToolResult, T as TypedCommandHandler, Z as ZodSchemaLike, m as isZodSchema } from './types-7wjInVMW.js';
3
+ export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-gRbkCooh.js';
4
+ import './agentApi-DfsWRyrP.js';
5
5
 
6
6
  /**
7
7
  * Docxtemplater Plugin
@@ -1,2 +1 @@
1
- export{o as docxtemplaterPlugin,n as isZodSchema}from'./chunk-OHG7ROFC.js';import'./chunk-DP6Q75ZD.js';export{a as PluginRegistry,d as createPluginRegistrar,b as pluginRegistry,c as registerPlugins}from'./chunk-2QOEHCBX.js';import'./chunk-CV5WFE7K.js';import'./chunk-Y6VCTLCJ.js';//# sourceMappingURL=core-plugins-reexport.js.map
2
- //# sourceMappingURL=core-plugins-reexport.js.map
1
+ export{o as docxtemplaterPlugin,n as isZodSchema}from'./chunk-7KJ3YVDQ.js';import'./chunk-CLDB6TL7.js';import'./chunk-UTWPV2I4.js';export{a as PluginRegistry,d as createPluginRegistrar,b as pluginRegistry,c as registerPlugins}from'./chunk-BUEMG4NW.js';import'./chunk-USRMBYI6.js';import'./chunk-H5NTJZO4.js';
@@ -1,2 +1 @@
1
- 'use strict';var chunkFDANI5P4_cjs=require('./chunk-FDANI5P4.cjs'),chunkRMUMR42R_cjs=require('./chunk-RMUMR42R.cjs'),chunkGJ4GKSDU_cjs=require('./chunk-GJ4GKSDU.cjs'),chunkXZNOV52K_cjs=require('./chunk-XZNOV52K.cjs'),chunk5DYSI4O4_cjs=require('./chunk-5DYSI4O4.cjs'),chunkGWBTKVFD_cjs=require('./chunk-GWBTKVFD.cjs'),chunkC33XDRDJ_cjs=require('./chunk-C33XDRDJ.cjs'),chunkWD2HTKRR_cjs=require('./chunk-WD2HTKRR.cjs'),chunk4QT5LPBA_cjs=require('./chunk-4QT5LPBA.cjs');require('./chunk-QEBO3EQP.cjs');Object.defineProperty(exports,"AutoSaveManager",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.r}});Object.defineProperty(exports,"EditorCoordinator",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.L}});Object.defineProperty(exports,"ErrorManager",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.H}});Object.defineProperty(exports,"LayoutCoordinator",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.K}});Object.defineProperty(exports,"PluginLifecycleManager",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.J}});Object.defineProperty(exports,"Subscribable",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.q}});Object.defineProperty(exports,"TABLE_DATA_ATTRIBUTES",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.x}});Object.defineProperty(exports,"TableSelectionManager",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.C}});Object.defineProperty(exports,"VERSION",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.M}});Object.defineProperty(exports,"countPageBreaks",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.n}});Object.defineProperty(exports,"createColumnBreak",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.b}});Object.defineProperty(exports,"createHorizontalRule",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.g}});Object.defineProperty(exports,"createLineBreak",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.c}});Object.defineProperty(exports,"createPageBreak",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.a}});Object.defineProperty(exports,"createPageBreakParagraph",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.e}});Object.defineProperty(exports,"createPageBreakRun",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.d}});Object.defineProperty(exports,"createSelectionFromDOM",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.F}});Object.defineProperty(exports,"deleteTableFromDocument",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.B}});Object.defineProperty(exports,"extractFormattingFromElement",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.D}});Object.defineProperty(exports,"findPageBreaks",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.o}});Object.defineProperty(exports,"findTableFromClick",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.y}});Object.defineProperty(exports,"formatLastSaveTime",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.s}});Object.defineProperty(exports,"formatStorageSize",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.v}});Object.defineProperty(exports,"getAutoSaveStatusLabel",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.t}});Object.defineProperty(exports,"getAutoSaveStorageSize",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.u}});Object.defineProperty(exports,"getSelectionRuns",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.E}});Object.defineProperty(exports,"getTableFromDocument",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.z}});Object.defineProperty(exports,"hasPageBreakBefore",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.m}});Object.defineProperty(exports,"injectStyles",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.I}});Object.defineProperty(exports,"insertHorizontalRule",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.h}});Object.defineProperty(exports,"insertPageBreak",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.f}});Object.defineProperty(exports,"isAutoSaveSupported",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.w}});Object.defineProperty(exports,"isBreakContent",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.l}});Object.defineProperty(exports,"isColumnBreak",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.j}});Object.defineProperty(exports,"isLineBreak",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.k}});Object.defineProperty(exports,"isPageBreak",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.i}});Object.defineProperty(exports,"removePageBreak",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.p}});Object.defineProperty(exports,"rgbToHex",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.G}});Object.defineProperty(exports,"updateTableInDocument",{enumerable:true,get:function(){return chunkFDANI5P4_cjs.A}});Object.defineProperty(exports,"DocumentAgent",{enumerable:true,get:function(){return chunkRMUMR42R_cjs.c}});Object.defineProperty(exports,"buildExtendedSelectionContext",{enumerable:true,get:function(){return chunkRMUMR42R_cjs.j}});Object.defineProperty(exports,"buildSelectionContext",{enumerable:true,get:function(){return chunkRMUMR42R_cjs.i}});Object.defineProperty(exports,"createDocumentWithText",{enumerable:true,get:function(){return chunkRMUMR42R_cjs.b}});Object.defineProperty(exports,"createEmptyDocument",{enumerable:true,get:function(){return chunkRMUMR42R_cjs.a}});Object.defineProperty(exports,"getAgentContext",{enumerable:true,get:function(){return chunkRMUMR42R_cjs.f}});Object.defineProperty(exports,"getDocumentSummary",{enumerable:true,get:function(){return chunkRMUMR42R_cjs.h}});Object.defineProperty(exports,"blendColors",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.l}});Object.defineProperty(exports,"colorsEqual",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.m}});Object.defineProperty(exports,"createRgbColor",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.i}});Object.defineProperty(exports,"createThemeColor",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.h}});Object.defineProperty(exports,"darkenColor",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.j}});Object.defineProperty(exports,"emuToPixels",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.p}});Object.defineProperty(exports,"emuToTwips",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.r}});Object.defineProperty(exports,"formatPx",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.x}});Object.defineProperty(exports,"getContrastingColor",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.f}});Object.defineProperty(exports,"halfPointsToPixels",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.u}});Object.defineProperty(exports,"isBlack",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.d}});Object.defineProperty(exports,"isWhite",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.e}});Object.defineProperty(exports,"lightenColor",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.k}});Object.defineProperty(exports,"parseColorString",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.g}});Object.defineProperty(exports,"pixelsToEmu",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.q}});Object.defineProperty(exports,"pixelsToTwips",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.o}});Object.defineProperty(exports,"pointsToPixels",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.t}});Object.defineProperty(exports,"resolveColor",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.a}});Object.defineProperty(exports,"resolveHighlightColor",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.b}});Object.defineProperty(exports,"resolveShadingColor",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.c}});Object.defineProperty(exports,"twipsToEmu",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.s}});Object.defineProperty(exports,"twipsToPixels",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.n}});Object.defineProperty(exports,"detectVariables",{enumerable:true,get:function(){return chunkXZNOV52K_cjs.a}});Object.defineProperty(exports,"detectVariablesDetailed",{enumerable:true,get:function(){return chunkXZNOV52K_cjs.b}});Object.defineProperty(exports,"detectVariablesInBody",{enumerable:true,get:function(){return chunkXZNOV52K_cjs.c}});Object.defineProperty(exports,"detectVariablesInParagraph",{enumerable:true,get:function(){return chunkXZNOV52K_cjs.d}});Object.defineProperty(exports,"documentHasVariables",{enumerable:true,get:function(){return chunkXZNOV52K_cjs.m}});Object.defineProperty(exports,"docxtemplaterPlugin",{enumerable:true,get:function(){return chunkXZNOV52K_cjs.o}});Object.defineProperty(exports,"extractVariablesFromText",{enumerable:true,get:function(){return chunkXZNOV52K_cjs.e}});Object.defineProperty(exports,"formatVariable",{enumerable:true,get:function(){return chunkXZNOV52K_cjs.i}});Object.defineProperty(exports,"hasTemplateVariables",{enumerable:true,get:function(){return chunkXZNOV52K_cjs.f}});Object.defineProperty(exports,"isValidVariableName",{enumerable:true,get:function(){return chunkXZNOV52K_cjs.g}});Object.defineProperty(exports,"parseVariable",{enumerable:true,get:function(){return chunkXZNOV52K_cjs.j}});Object.defineProperty(exports,"removeVariables",{enumerable:true,get:function(){return chunkXZNOV52K_cjs.l}});Object.defineProperty(exports,"replaceVariables",{enumerable:true,get:function(){return chunkXZNOV52K_cjs.k}});Object.defineProperty(exports,"sanitizeVariableName",{enumerable:true,get:function(){return chunkXZNOV52K_cjs.h}});Object.defineProperty(exports,"createDocx",{enumerable:true,get:function(){return chunk5DYSI4O4_cjs.e}});Object.defineProperty(exports,"repackDocx",{enumerable:true,get:function(){return chunk5DYSI4O4_cjs.d}});Object.defineProperty(exports,"serializeDocumentBody",{enumerable:true,get:function(){return chunk5DYSI4O4_cjs.b}});Object.defineProperty(exports,"serializeDocx",{enumerable:true,get:function(){return chunk5DYSI4O4_cjs.c}});Object.defineProperty(exports,"serializeSectionProperties",{enumerable:true,get:function(){return chunk5DYSI4O4_cjs.a}});Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunkGWBTKVFD_cjs.a}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunkGWBTKVFD_cjs.b}});Object.defineProperty(exports,"canRenderFont",{enumerable:true,get:function(){return chunkC33XDRDJ_cjs.l}});Object.defineProperty(exports,"getLoadedFonts",{enumerable:true,get:function(){return chunkC33XDRDJ_cjs.j}});Object.defineProperty(exports,"isFontLoaded",{enumerable:true,get:function(){return chunkC33XDRDJ_cjs.h}});Object.defineProperty(exports,"isFontsLoading",{enumerable:true,get:function(){return chunkC33XDRDJ_cjs.i}});Object.defineProperty(exports,"loadFont",{enumerable:true,get:function(){return chunkC33XDRDJ_cjs.f}});Object.defineProperty(exports,"loadFontFromBuffer",{enumerable:true,get:function(){return chunkC33XDRDJ_cjs.m}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkC33XDRDJ_cjs.g}});Object.defineProperty(exports,"onFontsLoaded",{enumerable:true,get:function(){return chunkC33XDRDJ_cjs.k}});Object.defineProperty(exports,"parseDocx",{enumerable:true,get:function(){return chunkC33XDRDJ_cjs.q}});Object.defineProperty(exports,"preloadCommonFonts",{enumerable:true,get:function(){return chunkC33XDRDJ_cjs.n}});Object.defineProperty(exports,"toArrayBuffer",{enumerable:true,get:function(){return chunkC33XDRDJ_cjs.p}});Object.defineProperty(exports,"PluginRegistry",{enumerable:true,get:function(){return chunkWD2HTKRR_cjs.a}});Object.defineProperty(exports,"pluginRegistry",{enumerable:true,get:function(){return chunkWD2HTKRR_cjs.b}});Object.defineProperty(exports,"registerPlugins",{enumerable:true,get:function(){return chunkWD2HTKRR_cjs.c}});Object.defineProperty(exports,"getTemplateTags",{enumerable:true,get:function(){return chunk4QT5LPBA_cjs.e}});Object.defineProperty(exports,"processTemplate",{enumerable:true,get:function(){return chunk4QT5LPBA_cjs.a}});Object.defineProperty(exports,"processTemplateAsBlob",{enumerable:true,get:function(){return chunk4QT5LPBA_cjs.c}});Object.defineProperty(exports,"processTemplateDetailed",{enumerable:true,get:function(){return chunk4QT5LPBA_cjs.b}});Object.defineProperty(exports,"validateTemplate",{enumerable:true,get:function(){return chunk4QT5LPBA_cjs.f}});//# sourceMappingURL=core-reexport.cjs.map
2
- //# sourceMappingURL=core-reexport.cjs.map
1
+ 'use strict';var chunk2VHQ7YOQ_cjs=require('./chunk-2VHQ7YOQ.cjs'),chunkGICVJSFJ_cjs=require('./chunk-GICVJSFJ.cjs'),chunkJRRTZZ72_cjs=require('./chunk-JRRTZZ72.cjs'),chunkTAF6KYDM_cjs=require('./chunk-TAF6KYDM.cjs'),chunkB7TICMXD_cjs=require('./chunk-B7TICMXD.cjs'),chunkY6QBJGMO_cjs=require('./chunk-Y6QBJGMO.cjs'),chunkP7ZF45KZ_cjs=require('./chunk-P7ZF45KZ.cjs'),chunkEH3NY2DQ_cjs=require('./chunk-EH3NY2DQ.cjs'),chunkYS7FDEZ4_cjs=require('./chunk-YS7FDEZ4.cjs');require('./chunk-XQNCLN4T.cjs'),require('./chunk-PCJ5ACUV.cjs');Object.defineProperty(exports,"AutoSaveManager",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.r}});Object.defineProperty(exports,"EditorCoordinator",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.L}});Object.defineProperty(exports,"ErrorManager",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.H}});Object.defineProperty(exports,"LayoutCoordinator",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.K}});Object.defineProperty(exports,"PluginLifecycleManager",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.J}});Object.defineProperty(exports,"Subscribable",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.q}});Object.defineProperty(exports,"TABLE_DATA_ATTRIBUTES",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.x}});Object.defineProperty(exports,"TableSelectionManager",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.C}});Object.defineProperty(exports,"VERSION",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.M}});Object.defineProperty(exports,"countPageBreaks",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.n}});Object.defineProperty(exports,"createColumnBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.b}});Object.defineProperty(exports,"createHorizontalRule",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.g}});Object.defineProperty(exports,"createLineBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.c}});Object.defineProperty(exports,"createPageBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.a}});Object.defineProperty(exports,"createPageBreakParagraph",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.e}});Object.defineProperty(exports,"createPageBreakRun",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.d}});Object.defineProperty(exports,"createSelectionFromDOM",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.F}});Object.defineProperty(exports,"deleteTableFromDocument",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.B}});Object.defineProperty(exports,"extractFormattingFromElement",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.D}});Object.defineProperty(exports,"findPageBreaks",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.o}});Object.defineProperty(exports,"findTableFromClick",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.y}});Object.defineProperty(exports,"formatLastSaveTime",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.s}});Object.defineProperty(exports,"formatStorageSize",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.v}});Object.defineProperty(exports,"getAutoSaveStatusLabel",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.t}});Object.defineProperty(exports,"getAutoSaveStorageSize",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.u}});Object.defineProperty(exports,"getSelectionRuns",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.E}});Object.defineProperty(exports,"getTableFromDocument",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.z}});Object.defineProperty(exports,"hasPageBreakBefore",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.m}});Object.defineProperty(exports,"injectStyles",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.I}});Object.defineProperty(exports,"insertHorizontalRule",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.h}});Object.defineProperty(exports,"insertPageBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.f}});Object.defineProperty(exports,"isAutoSaveSupported",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.w}});Object.defineProperty(exports,"isBreakContent",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.l}});Object.defineProperty(exports,"isColumnBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.j}});Object.defineProperty(exports,"isLineBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.k}});Object.defineProperty(exports,"isPageBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.i}});Object.defineProperty(exports,"removePageBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.p}});Object.defineProperty(exports,"rgbToHex",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.G}});Object.defineProperty(exports,"updateTableInDocument",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.A}});Object.defineProperty(exports,"DocumentAgent",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.f}});Object.defineProperty(exports,"attemptSelectiveSave",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.c}});Object.defineProperty(exports,"buildExtendedSelectionContext",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.m}});Object.defineProperty(exports,"buildPatchedDocumentXml",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.b}});Object.defineProperty(exports,"buildSelectionContext",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.l}});Object.defineProperty(exports,"createDocumentWithText",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.e}});Object.defineProperty(exports,"createEmptyDocument",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.d}});Object.defineProperty(exports,"getAgentContext",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.i}});Object.defineProperty(exports,"getDocumentSummary",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.k}});Object.defineProperty(exports,"validatePatchSafety",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.a}});Object.defineProperty(exports,"blendColors",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.l}});Object.defineProperty(exports,"colorsEqual",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.q}});Object.defineProperty(exports,"createRgbColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.i}});Object.defineProperty(exports,"createThemeColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.h}});Object.defineProperty(exports,"darkenColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.j}});Object.defineProperty(exports,"emuToPixels",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.t}});Object.defineProperty(exports,"emuToTwips",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.v}});Object.defineProperty(exports,"ensureHexPrefix",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.m}});Object.defineProperty(exports,"formatPx",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.B}});Object.defineProperty(exports,"generateThemeTintShadeMatrix",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.p}});Object.defineProperty(exports,"getContrastingColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.f}});Object.defineProperty(exports,"getThemeTintShadeHex",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.o}});Object.defineProperty(exports,"halfPointsToPixels",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.y}});Object.defineProperty(exports,"isBlack",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.d}});Object.defineProperty(exports,"isWhite",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.e}});Object.defineProperty(exports,"lightenColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.k}});Object.defineProperty(exports,"parseColorString",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.g}});Object.defineProperty(exports,"pixelsToEmu",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.u}});Object.defineProperty(exports,"pixelsToTwips",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.s}});Object.defineProperty(exports,"pointsToPixels",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.x}});Object.defineProperty(exports,"resolveColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.a}});Object.defineProperty(exports,"resolveHighlightColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.b}});Object.defineProperty(exports,"resolveHighlightToCss",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.n}});Object.defineProperty(exports,"resolveShadingColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.c}});Object.defineProperty(exports,"twipsToEmu",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.w}});Object.defineProperty(exports,"twipsToPixels",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.r}});Object.defineProperty(exports,"detectVariables",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.a}});Object.defineProperty(exports,"detectVariablesDetailed",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.b}});Object.defineProperty(exports,"detectVariablesInBody",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.c}});Object.defineProperty(exports,"detectVariablesInParagraph",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.d}});Object.defineProperty(exports,"documentHasVariables",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.m}});Object.defineProperty(exports,"docxtemplaterPlugin",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.o}});Object.defineProperty(exports,"extractVariablesFromText",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.e}});Object.defineProperty(exports,"formatVariable",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.i}});Object.defineProperty(exports,"hasTemplateVariables",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.f}});Object.defineProperty(exports,"isValidVariableName",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.g}});Object.defineProperty(exports,"parseVariable",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.j}});Object.defineProperty(exports,"removeVariables",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.l}});Object.defineProperty(exports,"replaceVariables",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.k}});Object.defineProperty(exports,"sanitizeVariableName",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.h}});Object.defineProperty(exports,"getTemplateTags",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.e}});Object.defineProperty(exports,"processTemplate",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.a}});Object.defineProperty(exports,"processTemplateAsBlob",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.c}});Object.defineProperty(exports,"processTemplateDetailed",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.b}});Object.defineProperty(exports,"validateTemplate",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.f}});Object.defineProperty(exports,"createDocx",{enumerable:true,get:function(){return chunkY6QBJGMO_cjs.f}});Object.defineProperty(exports,"repackDocx",{enumerable:true,get:function(){return chunkY6QBJGMO_cjs.d}});Object.defineProperty(exports,"serializeDocumentBody",{enumerable:true,get:function(){return chunkY6QBJGMO_cjs.b}});Object.defineProperty(exports,"serializeDocx",{enumerable:true,get:function(){return chunkY6QBJGMO_cjs.c}});Object.defineProperty(exports,"serializeSectionProperties",{enumerable:true,get:function(){return chunkY6QBJGMO_cjs.a}});Object.defineProperty(exports,"updateMultipleFiles",{enumerable:true,get:function(){return chunkY6QBJGMO_cjs.e}});Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunkP7ZF45KZ_cjs.a}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunkP7ZF45KZ_cjs.b}});Object.defineProperty(exports,"canRenderFont",{enumerable:true,get:function(){return chunkEH3NY2DQ_cjs.k}});Object.defineProperty(exports,"getLoadedFonts",{enumerable:true,get:function(){return chunkEH3NY2DQ_cjs.i}});Object.defineProperty(exports,"isFontLoaded",{enumerable:true,get:function(){return chunkEH3NY2DQ_cjs.g}});Object.defineProperty(exports,"isFontsLoading",{enumerable:true,get:function(){return chunkEH3NY2DQ_cjs.h}});Object.defineProperty(exports,"loadFont",{enumerable:true,get:function(){return chunkEH3NY2DQ_cjs.e}});Object.defineProperty(exports,"loadFontFromBuffer",{enumerable:true,get:function(){return chunkEH3NY2DQ_cjs.l}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkEH3NY2DQ_cjs.f}});Object.defineProperty(exports,"onFontsLoaded",{enumerable:true,get:function(){return chunkEH3NY2DQ_cjs.j}});Object.defineProperty(exports,"parseDocx",{enumerable:true,get:function(){return chunkEH3NY2DQ_cjs.p}});Object.defineProperty(exports,"preloadCommonFonts",{enumerable:true,get:function(){return chunkEH3NY2DQ_cjs.m}});Object.defineProperty(exports,"toArrayBuffer",{enumerable:true,get:function(){return chunkEH3NY2DQ_cjs.o}});Object.defineProperty(exports,"PluginRegistry",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.a}});Object.defineProperty(exports,"pluginRegistry",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.b}});Object.defineProperty(exports,"registerPlugins",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.c}});
@@ -1,14 +1,14 @@
1
- import { D as Document } from './agentApi-BFVyKagE.cjs';
2
- export { f as AIAction, g as AIActionRequest, A as AgentCommand, h as AgentContext, i as AgentResponse, j as ApplyStyleCommand, l as BlockContent, a3 as BookmarkEnd, a4 as BookmarkStart, n as DeleteTextCommand, d as DocumentBody, o as DocxPackage, E as Endnote, a5 as Field, a6 as FooterReference, F as Footnote, q as FormatTextCommand, a7 as HeaderFooter, a8 as HeaderReference, H as Hyperlink, I as Image, r as InsertHyperlinkCommand, s as InsertImageCommand, t as InsertTableCommand, u as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, a as Paragraph, v as ParagraphContext, w as ParagraphFormatting, P as Position, R as Range, y as Relationship, z as ReplaceTextCommand, b as Run, c as RunContent, C as SectionProperties, G as SelectionContext, J as SetVariableCommand, a9 as Shape, K as Style, M as StyleDefinitions, Q as SuggestedAction, e as Table, U as TableCell, V as TableRow, aa as TextBox, W as TextContent, T as TextFormatting, X as Theme, ab as ThemeColorScheme, ac as ThemeFont, ad as ThemeFontScheme } from './agentApi-BFVyKagE.cjs';
3
- export { A as AgentContextOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, P as ProcessTemplateOptions, a as ProcessTemplateResult, b as SelectionContextOptions, c as blendColors, d as buildExtendedSelectionContext, e as buildSelectionContext, g as colorsEqual, h as createDocumentWithText, i as createEmptyDocument, j as createRgbColor, l as createThemeColor, m as darkenColor, n as emuToPixels, o as emuToTwips, p as executeCommand, q as executeCommands, r as formatPx, s as getAgentContext, t as getContrastingColor, u as getDocumentSummary, x as getTemplateTags, y as halfPointsToPixels, z as isBlack, B as isWhite, D as lightenColor, G as parseColorString, H as parseDocx, I as pixelsToEmu, J as pixelsToTwips, K as pointsToPixels, M as processTemplate, O as processTemplateAsBlob, Q as processTemplateDetailed, R as resolveColor, U as resolveHighlightColor, V as resolveShadingColor, W as serializeDocumentBody, X as serializeDocx, Y as serializeSectionProperties, Z as twipsToEmu, _ as twipsToPixels, $ as validateTemplate } from './colorResolver-Cu46bSKr.cjs';
4
- import { S as Subscribable, E as ErrorManagerSnapshot, P as PluginLifecycleSnapshot, a as PluginLifecycleConfig } from './ClipboardManager-EZ0C6Onq.cjs';
5
- export { A as AutoSaveManager, b as AutoSaveManagerOptions, c as AutoSaveSnapshot, d as AutoSaveStatus, C as CellCoordinates, e as ClipboardSelection, f as EditorHandle, g as EditorPluginCore, h as ErrorNotification, i as ErrorSeverity, j as PanelConfig, k as PluginPanelProps, l as PositionCoordinates, R as RenderedDomContext, m as SavedDocumentData, T as TABLE_DATA_ATTRIBUTES, n as TableSelectionManager, o as TableSelectionSnapshot, p as createSelectionFromDOM, q as deleteTableFromDocument, r as extractFormattingFromElement, s as findTableFromClick, t as formatLastSaveTime, u as formatStorageSize, v as getAutoSaveStatusLabel, w as getAutoSaveStorageSize, x as getSelectionRuns, y as getTableFromDocument, z as isAutoSaveSupported, B as rgbToHex, D as updateTableInDocument } from './ClipboardManager-EZ0C6Onq.cjs';
6
- export { C as CorePlugin, e as McpSession, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult } from './types-Bnp8rvJn.cjs';
7
- export { D as DocumentAgent, f as DocxInput, t as toArrayBuffer } from './DocumentAgent-B0EC8lPC.cjs';
8
- export { I as InsertPosition, c as canRenderFont, a as countPageBreaks, b as createColumnBreak, d as createHorizontalRule, e as createLineBreak, f as createPageBreak, g as createPageBreakParagraph, h as createPageBreakRun, i as findPageBreaks, j as getLoadedFonts, k as hasPageBreakBefore, l as insertHorizontalRule, m as insertPageBreak, n as isBreakContent, o as isColumnBreak, p as isFontLoaded, q as isFontsLoading, r as isLineBreak, s as isPageBreak, t as loadFont, u as loadFontFromBuffer, v as loadFonts, w as onFontsLoaded, x as preloadCommonFonts, y as removePageBreak } from './fontLoader-HZYfILUm.cjs';
1
+ import { D as Document } from './agentApi-DfsWRyrP.cjs';
2
+ export { f as AIAction, g as AIActionRequest, A as AgentCommand, h as AgentContext, i as AgentResponse, j as ApplyStyleCommand, l as BlockContent, a3 as BookmarkEnd, a4 as BookmarkStart, n as DeleteTextCommand, d as DocumentBody, o as DocxPackage, E as Endnote, a5 as Field, a6 as FooterReference, F as Footnote, q as FormatTextCommand, a7 as HeaderFooter, a8 as HeaderReference, H as Hyperlink, I as Image, r as InsertHyperlinkCommand, s as InsertImageCommand, t as InsertTableCommand, u as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, a as Paragraph, v as ParagraphContext, w as ParagraphFormatting, P as Position, R as Range, y as Relationship, z as ReplaceTextCommand, b as Run, c as RunContent, C as SectionProperties, G as SelectionContext, J as SetVariableCommand, a9 as Shape, K as Style, M as StyleDefinitions, Q as SuggestedAction, e as Table, U as TableCell, V as TableRow, aa as TextBox, W as TextContent, T as TextFormatting, X as Theme, ab as ThemeColorScheme, ac as ThemeFont, ad as ThemeFontScheme } from './agentApi-DfsWRyrP.cjs';
3
+ export { A as AgentContextOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, P as ProcessTemplateOptions, a as ProcessTemplateResult, b as SelectionContextOptions, a0 as ThemeMatrixCell, c as blendColors, d as buildExtendedSelectionContext, e as buildSelectionContext, g as colorsEqual, h as createDocumentWithText, i as createEmptyDocument, j as createRgbColor, l as createThemeColor, m as darkenColor, n as emuToPixels, o as emuToTwips, a1 as ensureHexPrefix, p as executeCommand, q as executeCommands, r as formatPx, a2 as generateThemeTintShadeMatrix, s as getAgentContext, t as getContrastingColor, u as getDocumentSummary, x as getTemplateTags, a3 as getThemeTintShadeHex, y as halfPointsToPixels, z as isBlack, B as isWhite, D as lightenColor, G as parseColorString, H as parseDocx, I as pixelsToEmu, J as pixelsToTwips, K as pointsToPixels, M as processTemplate, O as processTemplateAsBlob, Q as processTemplateDetailed, R as resolveColor, U as resolveHighlightColor, a4 as resolveHighlightToCss, V as resolveShadingColor, W as serializeDocumentBody, X as serializeDocx, Y as serializeSectionProperties, Z as twipsToEmu, _ as twipsToPixels, $ as validateTemplate } from './colorResolver-Dr8kQZAQ.cjs';
4
+ import { S as Subscribable, E as ErrorManagerSnapshot, P as PluginLifecycleSnapshot, a as PluginLifecycleConfig } from './ClipboardManager-B1jZrC6h.cjs';
5
+ export { A as AutoSaveManager, b as AutoSaveManagerOptions, c as AutoSaveSnapshot, d as AutoSaveStatus, C as CellCoordinates, e as ClipboardSelection, f as EditorHandle, g as EditorPluginCore, h as ErrorNotification, i as ErrorSeverity, j as PanelConfig, k as PluginPanelProps, l as PositionCoordinates, R as RenderedDomContext, m as SavedDocumentData, T as TABLE_DATA_ATTRIBUTES, n as TableSelectionManager, o as TableSelectionSnapshot, p as createSelectionFromDOM, q as deleteTableFromDocument, r as extractFormattingFromElement, s as findTableFromClick, t as formatLastSaveTime, u as formatStorageSize, v as getAutoSaveStatusLabel, w as getAutoSaveStorageSize, x as getSelectionRuns, y as getTableFromDocument, z as isAutoSaveSupported, B as rgbToHex, D as updateTableInDocument } from './ClipboardManager-B1jZrC6h.cjs';
6
+ export { C as CorePlugin, e as McpSession, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult } from './types-DEEpBL9H.cjs';
7
+ export { D as DocumentAgent, g as DocxInput, d as attemptSelectiveSave, t as toArrayBuffer } from './DocumentAgent-CnJ9AEl_.cjs';
8
+ export { I as InsertPosition, c as canRenderFont, a as countPageBreaks, b as createColumnBreak, d as createHorizontalRule, e as createLineBreak, f as createPageBreak, g as createPageBreakParagraph, h as createPageBreakRun, i as findPageBreaks, j as getLoadedFonts, k as hasPageBreakBefore, l as insertHorizontalRule, m as insertPageBreak, n as isBreakContent, o as isColumnBreak, p as isFontLoaded, q as isFontsLoading, r as isLineBreak, s as isPageBreak, t as loadFont, u as loadFontFromBuffer, v as loadFonts, w as onFontsLoaded, x as preloadCommonFonts, y as removePageBreak } from './fontLoader-DECXIoMr.cjs';
9
9
  import { EditorView } from 'prosemirror-view';
10
- export { P as PluginRegistry, p as pluginRegistry, r as registerPlugins } from './registry-DjacfR6Q.cjs';
11
- export { V as VariableDetectionResult, a as VariableOccurrence, c as createDocx, d as detectVariables, b as detectVariablesDetailed, e as detectVariablesInBody, f as detectVariablesInParagraph, g as documentHasVariables, h as extractVariablesFromText, i as formatVariable, j as hasTemplateVariables, k as isValidVariableName, p as parseVariable, r as removeVariables, l as repackDocx, m as replaceVariables, s as sanitizeVariableName } from './variableDetector-CMhJtM96.cjs';
10
+ export { P as PluginRegistry, p as pluginRegistry, r as registerPlugins } from './registry-BU-FbHh-.cjs';
11
+ export { V as VariableDetectionResult, a as VariableOccurrence, b as buildPatchedDocumentXml, c as createDocx, d as detectVariables, e as detectVariablesDetailed, f as detectVariablesInBody, g as detectVariablesInParagraph, h as documentHasVariables, i as extractVariablesFromText, j as formatVariable, k as hasTemplateVariables, l as isValidVariableName, p as parseVariable, r as removeVariables, m as repackDocx, n as replaceVariables, s as sanitizeVariableName, u as updateMultipleFiles, v as validatePatchSafety } from './variableDetector-B4oQJa2e.cjs';
12
12
  export { docxtemplaterPlugin } from './core-plugins-reexport.cjs';
13
13
  import 'prosemirror-state';
14
14
  import 'prosemirror-model';
@@ -1,14 +1,14 @@
1
- import { D as Document } from './agentApi-BFVyKagE.js';
2
- export { f as AIAction, g as AIActionRequest, A as AgentCommand, h as AgentContext, i as AgentResponse, j as ApplyStyleCommand, l as BlockContent, a3 as BookmarkEnd, a4 as BookmarkStart, n as DeleteTextCommand, d as DocumentBody, o as DocxPackage, E as Endnote, a5 as Field, a6 as FooterReference, F as Footnote, q as FormatTextCommand, a7 as HeaderFooter, a8 as HeaderReference, H as Hyperlink, I as Image, r as InsertHyperlinkCommand, s as InsertImageCommand, t as InsertTableCommand, u as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, a as Paragraph, v as ParagraphContext, w as ParagraphFormatting, P as Position, R as Range, y as Relationship, z as ReplaceTextCommand, b as Run, c as RunContent, C as SectionProperties, G as SelectionContext, J as SetVariableCommand, a9 as Shape, K as Style, M as StyleDefinitions, Q as SuggestedAction, e as Table, U as TableCell, V as TableRow, aa as TextBox, W as TextContent, T as TextFormatting, X as Theme, ab as ThemeColorScheme, ac as ThemeFont, ad as ThemeFontScheme } from './agentApi-BFVyKagE.js';
3
- export { A as AgentContextOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, P as ProcessTemplateOptions, a as ProcessTemplateResult, b as SelectionContextOptions, c as blendColors, d as buildExtendedSelectionContext, e as buildSelectionContext, g as colorsEqual, h as createDocumentWithText, i as createEmptyDocument, j as createRgbColor, l as createThemeColor, m as darkenColor, n as emuToPixels, o as emuToTwips, p as executeCommand, q as executeCommands, r as formatPx, s as getAgentContext, t as getContrastingColor, u as getDocumentSummary, x as getTemplateTags, y as halfPointsToPixels, z as isBlack, B as isWhite, D as lightenColor, G as parseColorString, H as parseDocx, I as pixelsToEmu, J as pixelsToTwips, K as pointsToPixels, M as processTemplate, O as processTemplateAsBlob, Q as processTemplateDetailed, R as resolveColor, U as resolveHighlightColor, V as resolveShadingColor, W as serializeDocumentBody, X as serializeDocx, Y as serializeSectionProperties, Z as twipsToEmu, _ as twipsToPixels, $ as validateTemplate } from './colorResolver-B5YbO_a4.js';
4
- import { S as Subscribable, E as ErrorManagerSnapshot, P as PluginLifecycleSnapshot, a as PluginLifecycleConfig } from './ClipboardManager-D6dkOFg6.js';
5
- export { A as AutoSaveManager, b as AutoSaveManagerOptions, c as AutoSaveSnapshot, d as AutoSaveStatus, C as CellCoordinates, e as ClipboardSelection, f as EditorHandle, g as EditorPluginCore, h as ErrorNotification, i as ErrorSeverity, j as PanelConfig, k as PluginPanelProps, l as PositionCoordinates, R as RenderedDomContext, m as SavedDocumentData, T as TABLE_DATA_ATTRIBUTES, n as TableSelectionManager, o as TableSelectionSnapshot, p as createSelectionFromDOM, q as deleteTableFromDocument, r as extractFormattingFromElement, s as findTableFromClick, t as formatLastSaveTime, u as formatStorageSize, v as getAutoSaveStatusLabel, w as getAutoSaveStorageSize, x as getSelectionRuns, y as getTableFromDocument, z as isAutoSaveSupported, B as rgbToHex, D as updateTableInDocument } from './ClipboardManager-D6dkOFg6.js';
6
- export { C as CorePlugin, e as McpSession, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult } from './types-DwZ3xysp.js';
7
- export { D as DocumentAgent, f as DocxInput, t as toArrayBuffer } from './DocumentAgent-BcCDg7i2.js';
8
- export { I as InsertPosition, c as canRenderFont, a as countPageBreaks, b as createColumnBreak, d as createHorizontalRule, e as createLineBreak, f as createPageBreak, g as createPageBreakParagraph, h as createPageBreakRun, i as findPageBreaks, j as getLoadedFonts, k as hasPageBreakBefore, l as insertHorizontalRule, m as insertPageBreak, n as isBreakContent, o as isColumnBreak, p as isFontLoaded, q as isFontsLoading, r as isLineBreak, s as isPageBreak, t as loadFont, u as loadFontFromBuffer, v as loadFonts, w as onFontsLoaded, x as preloadCommonFonts, y as removePageBreak } from './fontLoader-CFKpg0Ri.js';
1
+ import { D as Document } from './agentApi-DfsWRyrP.js';
2
+ export { f as AIAction, g as AIActionRequest, A as AgentCommand, h as AgentContext, i as AgentResponse, j as ApplyStyleCommand, l as BlockContent, a3 as BookmarkEnd, a4 as BookmarkStart, n as DeleteTextCommand, d as DocumentBody, o as DocxPackage, E as Endnote, a5 as Field, a6 as FooterReference, F as Footnote, q as FormatTextCommand, a7 as HeaderFooter, a8 as HeaderReference, H as Hyperlink, I as Image, r as InsertHyperlinkCommand, s as InsertImageCommand, t as InsertTableCommand, u as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, a as Paragraph, v as ParagraphContext, w as ParagraphFormatting, P as Position, R as Range, y as Relationship, z as ReplaceTextCommand, b as Run, c as RunContent, C as SectionProperties, G as SelectionContext, J as SetVariableCommand, a9 as Shape, K as Style, M as StyleDefinitions, Q as SuggestedAction, e as Table, U as TableCell, V as TableRow, aa as TextBox, W as TextContent, T as TextFormatting, X as Theme, ab as ThemeColorScheme, ac as ThemeFont, ad as ThemeFontScheme } from './agentApi-DfsWRyrP.js';
3
+ export { A as AgentContextOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, P as ProcessTemplateOptions, a as ProcessTemplateResult, b as SelectionContextOptions, a0 as ThemeMatrixCell, c as blendColors, d as buildExtendedSelectionContext, e as buildSelectionContext, g as colorsEqual, h as createDocumentWithText, i as createEmptyDocument, j as createRgbColor, l as createThemeColor, m as darkenColor, n as emuToPixels, o as emuToTwips, a1 as ensureHexPrefix, p as executeCommand, q as executeCommands, r as formatPx, a2 as generateThemeTintShadeMatrix, s as getAgentContext, t as getContrastingColor, u as getDocumentSummary, x as getTemplateTags, a3 as getThemeTintShadeHex, y as halfPointsToPixels, z as isBlack, B as isWhite, D as lightenColor, G as parseColorString, H as parseDocx, I as pixelsToEmu, J as pixelsToTwips, K as pointsToPixels, M as processTemplate, O as processTemplateAsBlob, Q as processTemplateDetailed, R as resolveColor, U as resolveHighlightColor, a4 as resolveHighlightToCss, V as resolveShadingColor, W as serializeDocumentBody, X as serializeDocx, Y as serializeSectionProperties, Z as twipsToEmu, _ as twipsToPixels, $ as validateTemplate } from './colorResolver-CYttioMe.js';
4
+ import { S as Subscribable, E as ErrorManagerSnapshot, P as PluginLifecycleSnapshot, a as PluginLifecycleConfig } from './ClipboardManager-jqJVxB6g.js';
5
+ export { A as AutoSaveManager, b as AutoSaveManagerOptions, c as AutoSaveSnapshot, d as AutoSaveStatus, C as CellCoordinates, e as ClipboardSelection, f as EditorHandle, g as EditorPluginCore, h as ErrorNotification, i as ErrorSeverity, j as PanelConfig, k as PluginPanelProps, l as PositionCoordinates, R as RenderedDomContext, m as SavedDocumentData, T as TABLE_DATA_ATTRIBUTES, n as TableSelectionManager, o as TableSelectionSnapshot, p as createSelectionFromDOM, q as deleteTableFromDocument, r as extractFormattingFromElement, s as findTableFromClick, t as formatLastSaveTime, u as formatStorageSize, v as getAutoSaveStatusLabel, w as getAutoSaveStorageSize, x as getSelectionRuns, y as getTableFromDocument, z as isAutoSaveSupported, B as rgbToHex, D as updateTableInDocument } from './ClipboardManager-jqJVxB6g.js';
6
+ export { C as CorePlugin, e as McpSession, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult } from './types-7wjInVMW.js';
7
+ export { D as DocumentAgent, g as DocxInput, d as attemptSelectiveSave, t as toArrayBuffer } from './DocumentAgent-CrbsDniO.js';
8
+ export { I as InsertPosition, c as canRenderFont, a as countPageBreaks, b as createColumnBreak, d as createHorizontalRule, e as createLineBreak, f as createPageBreak, g as createPageBreakParagraph, h as createPageBreakRun, i as findPageBreaks, j as getLoadedFonts, k as hasPageBreakBefore, l as insertHorizontalRule, m as insertPageBreak, n as isBreakContent, o as isColumnBreak, p as isFontLoaded, q as isFontsLoading, r as isLineBreak, s as isPageBreak, t as loadFont, u as loadFontFromBuffer, v as loadFonts, w as onFontsLoaded, x as preloadCommonFonts, y as removePageBreak } from './fontLoader-BsqQnB4v.js';
9
9
  import { EditorView } from 'prosemirror-view';
10
- export { P as PluginRegistry, p as pluginRegistry, r as registerPlugins } from './registry-CV6nYWqP.js';
11
- export { V as VariableDetectionResult, a as VariableOccurrence, c as createDocx, d as detectVariables, b as detectVariablesDetailed, e as detectVariablesInBody, f as detectVariablesInParagraph, g as documentHasVariables, h as extractVariablesFromText, i as formatVariable, j as hasTemplateVariables, k as isValidVariableName, p as parseVariable, r as removeVariables, l as repackDocx, m as replaceVariables, s as sanitizeVariableName } from './variableDetector-BaDeXz7D.js';
10
+ export { P as PluginRegistry, p as pluginRegistry, r as registerPlugins } from './registry-gRbkCooh.js';
11
+ export { V as VariableDetectionResult, a as VariableOccurrence, b as buildPatchedDocumentXml, c as createDocx, d as detectVariables, e as detectVariablesDetailed, f as detectVariablesInBody, g as detectVariablesInParagraph, h as documentHasVariables, i as extractVariablesFromText, j as formatVariable, k as hasTemplateVariables, l as isValidVariableName, p as parseVariable, r as removeVariables, m as repackDocx, n as replaceVariables, s as sanitizeVariableName, u as updateMultipleFiles, v as validatePatchSafety } from './variableDetector-BXJaTkiB.js';
12
12
  export { docxtemplaterPlugin } from './core-plugins-reexport.js';
13
13
  import 'prosemirror-state';
14
14
  import 'prosemirror-model';
@@ -1,2 +1 @@
1
- export{r as AutoSaveManager,L as EditorCoordinator,H as ErrorManager,K as LayoutCoordinator,J as PluginLifecycleManager,q as Subscribable,x as TABLE_DATA_ATTRIBUTES,C as TableSelectionManager,M as VERSION,n as countPageBreaks,b as createColumnBreak,g as createHorizontalRule,c as createLineBreak,a as createPageBreak,e as createPageBreakParagraph,d as createPageBreakRun,F as createSelectionFromDOM,B as deleteTableFromDocument,D as extractFormattingFromElement,o as findPageBreaks,y as findTableFromClick,s as formatLastSaveTime,v as formatStorageSize,t as getAutoSaveStatusLabel,u as getAutoSaveStorageSize,E as getSelectionRuns,z as getTableFromDocument,m as hasPageBreakBefore,I as injectStyles,h as insertHorizontalRule,f as insertPageBreak,w as isAutoSaveSupported,l as isBreakContent,j as isColumnBreak,k as isLineBreak,i as isPageBreak,p as removePageBreak,G as rgbToHex,A as updateTableInDocument}from'./chunk-FGVGZLBL.js';export{c as DocumentAgent,j as buildExtendedSelectionContext,i as buildSelectionContext,b as createDocumentWithText,a as createEmptyDocument,f as getAgentContext,h as getDocumentSummary}from'./chunk-6LF5HZCV.js';export{l as blendColors,m as colorsEqual,i as createRgbColor,h as createThemeColor,j as darkenColor,p as emuToPixels,r as emuToTwips,x as formatPx,f as getContrastingColor,u as halfPointsToPixels,d as isBlack,e as isWhite,k as lightenColor,g as parseColorString,q as pixelsToEmu,o as pixelsToTwips,t as pointsToPixels,a as resolveColor,b as resolveHighlightColor,c as resolveShadingColor,s as twipsToEmu,n as twipsToPixels}from'./chunk-L54YNLSE.js';export{a as detectVariables,b as detectVariablesDetailed,c as detectVariablesInBody,d as detectVariablesInParagraph,m as documentHasVariables,o as docxtemplaterPlugin,e as extractVariablesFromText,i as formatVariable,f as hasTemplateVariables,g as isValidVariableName,j as parseVariable,l as removeVariables,k as replaceVariables,h as sanitizeVariableName}from'./chunk-OHG7ROFC.js';export{e as createDocx,d as repackDocx,b as serializeDocumentBody,c as serializeDocx,a as serializeSectionProperties}from'./chunk-ULXNEG66.js';export{a as executeCommand,b as executeCommands}from'./chunk-JOYPFQW2.js';export{l as canRenderFont,j as getLoadedFonts,h as isFontLoaded,i as isFontsLoading,f as loadFont,m as loadFontFromBuffer,g as loadFonts,k as onFontsLoaded,q as parseDocx,n as preloadCommonFonts,p as toArrayBuffer}from'./chunk-DP6Q75ZD.js';export{a as PluginRegistry,b as pluginRegistry,c as registerPlugins}from'./chunk-2QOEHCBX.js';export{e as getTemplateTags,a as processTemplate,c as processTemplateAsBlob,b as processTemplateDetailed,f as validateTemplate}from'./chunk-CV5WFE7K.js';import'./chunk-Y6VCTLCJ.js';//# sourceMappingURL=core-reexport.js.map
2
- //# sourceMappingURL=core-reexport.js.map
1
+ export{r as AutoSaveManager,L as EditorCoordinator,H as ErrorManager,K as LayoutCoordinator,J as PluginLifecycleManager,q as Subscribable,x as TABLE_DATA_ATTRIBUTES,C as TableSelectionManager,M as VERSION,n as countPageBreaks,b as createColumnBreak,g as createHorizontalRule,c as createLineBreak,a as createPageBreak,e as createPageBreakParagraph,d as createPageBreakRun,F as createSelectionFromDOM,B as deleteTableFromDocument,D as extractFormattingFromElement,o as findPageBreaks,y as findTableFromClick,s as formatLastSaveTime,v as formatStorageSize,t as getAutoSaveStatusLabel,u as getAutoSaveStorageSize,E as getSelectionRuns,z as getTableFromDocument,m as hasPageBreakBefore,I as injectStyles,h as insertHorizontalRule,f as insertPageBreak,w as isAutoSaveSupported,l as isBreakContent,j as isColumnBreak,k as isLineBreak,i as isPageBreak,p as removePageBreak,G as rgbToHex,A as updateTableInDocument}from'./chunk-FVUGBRDD.js';export{f as DocumentAgent,c as attemptSelectiveSave,m as buildExtendedSelectionContext,b as buildPatchedDocumentXml,l as buildSelectionContext,e as createDocumentWithText,d as createEmptyDocument,i as getAgentContext,k as getDocumentSummary,a as validatePatchSafety}from'./chunk-6NDMKJIE.js';export{l as blendColors,q as colorsEqual,i as createRgbColor,h as createThemeColor,j as darkenColor,t as emuToPixels,v as emuToTwips,m as ensureHexPrefix,B as formatPx,p as generateThemeTintShadeMatrix,f as getContrastingColor,o as getThemeTintShadeHex,y as halfPointsToPixels,d as isBlack,e as isWhite,k as lightenColor,g as parseColorString,u as pixelsToEmu,s as pixelsToTwips,x as pointsToPixels,a as resolveColor,b as resolveHighlightColor,n as resolveHighlightToCss,c as resolveShadingColor,w as twipsToEmu,r as twipsToPixels}from'./chunk-ZTVQA46Q.js';export{a as detectVariables,b as detectVariablesDetailed,c as detectVariablesInBody,d as detectVariablesInParagraph,m as documentHasVariables,o as docxtemplaterPlugin,e as extractVariablesFromText,i as formatVariable,f as hasTemplateVariables,g as isValidVariableName,j as parseVariable,l as removeVariables,k as replaceVariables,h as sanitizeVariableName}from'./chunk-7KJ3YVDQ.js';export{e as getTemplateTags,a as processTemplate,c as processTemplateAsBlob,b as processTemplateDetailed,f as validateTemplate}from'./chunk-CLDB6TL7.js';export{f as createDocx,d as repackDocx,b as serializeDocumentBody,c as serializeDocx,a as serializeSectionProperties,e as updateMultipleFiles}from'./chunk-FXJAIFPR.js';export{a as executeCommand,b as executeCommands}from'./chunk-AARNCPWR.js';export{k as canRenderFont,i as getLoadedFonts,g as isFontLoaded,h as isFontsLoading,e as loadFont,l as loadFontFromBuffer,f as loadFonts,j as onFontsLoaded,p as parseDocx,m as preloadCommonFonts,o as toArrayBuffer}from'./chunk-UTWPV2I4.js';export{a as PluginRegistry,b as pluginRegistry,c as registerPlugins}from'./chunk-BUEMG4NW.js';import'./chunk-USRMBYI6.js';import'./chunk-H5NTJZO4.js';
@@ -0,0 +1 @@
1
+ 'use strict';var chunkP7ZF45KZ_cjs=require('./chunk-P7ZF45KZ.cjs');require('./chunk-YS7FDEZ4.cjs'),require('./chunk-PCJ5ACUV.cjs');Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunkP7ZF45KZ_cjs.a}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunkP7ZF45KZ_cjs.b}});
@@ -0,0 +1 @@
1
+ export{a as executeCommand,b as executeCommands}from'./chunk-AARNCPWR.js';import'./chunk-BUEMG4NW.js';import'./chunk-H5NTJZO4.js';
@@ -1,4 +1,4 @@
1
- import { D as Document, B as BreakContent, a as Paragraph, b as Run, c as RunContent } from './agentApi-BFVyKagE.js';
1
+ import { D as Document, B as BreakContent, a as Paragraph, b as Run, c as RunContent } from './agentApi-DfsWRyrP.js';
2
2
 
3
3
  /**
4
4
  * Insert Operations Utility
@@ -1,4 +1,4 @@
1
- import { D as Document, B as BreakContent, a as Paragraph, b as Run, c as RunContent } from './agentApi-BFVyKagE.cjs';
1
+ import { D as Document, B as BreakContent, a as Paragraph, b as Run, c as RunContent } from './agentApi-DfsWRyrP.cjs';
2
2
 
3
3
  /**
4
4
  * Insert Operations Utility
@@ -1,5 +1,4 @@
1
- 'use strict';var chunkT2HQYRA7_cjs=require('./chunk-T2HQYRA7.cjs'),chunkRMUMR42R_cjs=require('./chunk-RMUMR42R.cjs'),chunkGJ4GKSDU_cjs=require('./chunk-GJ4GKSDU.cjs'),chunkXZNOV52K_cjs=require('./chunk-XZNOV52K.cjs'),chunk5DYSI4O4_cjs=require('./chunk-5DYSI4O4.cjs'),chunkGWBTKVFD_cjs=require('./chunk-GWBTKVFD.cjs'),chunkC33XDRDJ_cjs=require('./chunk-C33XDRDJ.cjs'),chunkWD2HTKRR_cjs=require('./chunk-WD2HTKRR.cjs'),chunk4QT5LPBA_cjs=require('./chunk-4QT5LPBA.cjs');require('./chunk-QEBO3EQP.cjs');function p(n){let e=[];for(let t of n.content)t.type==="run"?e.push(c(t)):t.type==="hyperlink"&&e.push(g(t));return e.join("")}function c(n){return n.content.filter(e=>e.type==="text").map(e=>e.text).join("")}function g(n){let e=[];for(let t of n.children)t.type==="run"&&e.push(c(t));return e.join("")}function m(n){let e=[];for(let t of n.rows)for(let o of t.cells)for(let r of o.content)r.type==="paragraph"&&e.push(p(r));return e.join(" ")}function Me(n){let e=[];for(let t of n.content)t.type==="paragraph"?e.push(p(t)):t.type==="table"&&e.push(m(t));return e.join(`
2
- `)}function f(n){return n.split(/\s+/).filter(t=>t.length>0).length}function je(n,e=true){return e?n.length:n.replace(/\s/g,"").length}function We(n){let e=0;for(let t of n.content)t.type==="paragraph"?e+=f(p(t)):t.type==="table"&&(e+=ze(t));return e}function ze(n){let e=0;for(let t of n.rows)for(let o of t.cells)for(let r of o.content)r.type==="paragraph"&&(e+=f(p(r)));return e}function Ne(n){let e=0;for(let t of n.content)t.type==="paragraph"?e+=p(t).length:t.type==="table"&&(e+=qe(t));return e}function qe(n){let e=0;for(let t of n.rows)for(let o of t.cells)for(let r of o.content)r.type==="paragraph"&&(e+=p(r).length);return e}function Ze(n,e,t){let o=[],r=0,i=n[e.paragraphIndex];if(i){let s=p(i).slice(0,e.offset);o.unshift(s),r+=s.length;}for(let l=e.paragraphIndex-1;l>=0&&r<t;l--){let s=n[l];if(!s)continue;let u=p(s);o.unshift(u),r+=u.length;}let a=o.join(`
3
- `);return a.length>t?"..."+a.slice(-t):a}function _e(n,e,t){let o=[],r=0,i=n[e.paragraphIndex];if(i){let s=p(i).slice(e.offset);o.push(s),r+=s.length;}for(let l=e.paragraphIndex+1;l<n.length&&r<t;l++){let s=n[l];if(!s)continue;let u=p(s);o.push(u),r+=u.length;}let a=o.join(`
4
- `);return a.length>t?a.slice(0,t)+"...":a}function Je(n,e){let t=0;for(let o of n.content)if(o.type==="run"){let r=c(o),i=t+r.length;if(e>=t&&e<i)return o.formatting||{};t=i;}else if(o.type==="hyperlink"){let r=g(o),i=t+r.length;if(e>=t&&e<i){for(let a of o.children)if(a.type==="run")return a.formatting||{}}t=i;}return {}}function Ue(n,e){let t=0;for(let o of n.content)if(o.type==="run"){let r=c(o);t+=r.length;}else if(o.type==="hyperlink"){let r=g(o),i=t,a=t+r.length;if(e>=i&&e<a)return true;t=a;}return false}function Ge(n,e){let t=0;for(let o of n.content)if(o.type==="run"){let r=c(o);t+=r.length;}else if(o.type==="hyperlink"){let r=g(o),i=t,a=t+r.length;if(e>=i&&e<a)return o;t=a;}}function Ke(n){return n?n.toLowerCase().includes("heading"):false}function Qe(n){if(!n)return;let e=n.match(/heading\s*(\d)/i);if(e)return parseInt(e[1],10)}function Xe(n){for(let e of n.content)if(e.type==="paragraph"){for(let t of e.content)if(t.type==="run"){for(let o of t.content)if(o.type==="drawing")return true}}return false}function Ye(n){for(let e of n.content)if(e.type==="paragraph"){for(let t of e.content)if(t.type==="hyperlink")return true}return false}function $e(n){return n.content.some(e=>e.type==="table")}function x(n){return n.content.filter(e=>e.type==="paragraph")}function et(n,e){return x(n)[e]}function tt(n,e){let t=0;for(let o=0;o<n.content.length;o++)if(n.content[o].type==="paragraph"){if(t===e)return o;t++;}return -1}var ot="0.0.2";Object.defineProperty(exports,"DEFAULT_AI_ACTIONS",{enumerable:true,get:function(){return chunkT2HQYRA7_cjs.g}});Object.defineProperty(exports,"comparePositions",{enumerable:true,get:function(){return chunkT2HQYRA7_cjs.d}});Object.defineProperty(exports,"createCollapsedRange",{enumerable:true,get:function(){return chunkT2HQYRA7_cjs.a}});Object.defineProperty(exports,"createCommand",{enumerable:true,get:function(){return chunkT2HQYRA7_cjs.h}});Object.defineProperty(exports,"createRange",{enumerable:true,get:function(){return chunkT2HQYRA7_cjs.b}});Object.defineProperty(exports,"getActionDescription",{enumerable:true,get:function(){return chunkT2HQYRA7_cjs.f}});Object.defineProperty(exports,"getActionLabel",{enumerable:true,get:function(){return chunkT2HQYRA7_cjs.e}});Object.defineProperty(exports,"isPositionInRange",{enumerable:true,get:function(){return chunkT2HQYRA7_cjs.c}});Object.defineProperty(exports,"DocumentAgent",{enumerable:true,get:function(){return chunkRMUMR42R_cjs.c}});Object.defineProperty(exports,"buildExtendedSelectionContext",{enumerable:true,get:function(){return chunkRMUMR42R_cjs.j}});Object.defineProperty(exports,"buildSelectionContext",{enumerable:true,get:function(){return chunkRMUMR42R_cjs.i}});Object.defineProperty(exports,"buildSelectionContextFromContext",{enumerable:true,get:function(){return chunkRMUMR42R_cjs.g}});Object.defineProperty(exports,"createAgent",{enumerable:true,get:function(){return chunkRMUMR42R_cjs.d}});Object.defineProperty(exports,"createAgentFromDocument",{enumerable:true,get:function(){return chunkRMUMR42R_cjs.e}});Object.defineProperty(exports,"createDocumentWithText",{enumerable:true,get:function(){return chunkRMUMR42R_cjs.b}});Object.defineProperty(exports,"createEmptyDocument",{enumerable:true,get:function(){return chunkRMUMR42R_cjs.a}});Object.defineProperty(exports,"getAgentContext",{enumerable:true,get:function(){return chunkRMUMR42R_cjs.f}});Object.defineProperty(exports,"getDocumentSummary",{enumerable:true,get:function(){return chunkRMUMR42R_cjs.h}});Object.defineProperty(exports,"getSelectionFormattingSummary",{enumerable:true,get:function(){return chunkRMUMR42R_cjs.k}});Object.defineProperty(exports,"blendColors",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.l}});Object.defineProperty(exports,"colorsEqual",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.m}});Object.defineProperty(exports,"createRgbColor",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.i}});Object.defineProperty(exports,"createThemeColor",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.h}});Object.defineProperty(exports,"darkenColor",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.j}});Object.defineProperty(exports,"emuToPixels",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.p}});Object.defineProperty(exports,"emuToTwips",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.r}});Object.defineProperty(exports,"formatPx",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.x}});Object.defineProperty(exports,"getContrastingColor",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.f}});Object.defineProperty(exports,"halfPointsToPixels",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.u}});Object.defineProperty(exports,"isBlack",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.d}});Object.defineProperty(exports,"isWhite",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.e}});Object.defineProperty(exports,"lightenColor",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.k}});Object.defineProperty(exports,"parseColorString",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.g}});Object.defineProperty(exports,"pixelsToEmu",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.q}});Object.defineProperty(exports,"pixelsToTwips",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.o}});Object.defineProperty(exports,"pointsToPixels",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.t}});Object.defineProperty(exports,"resolveColor",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.a}});Object.defineProperty(exports,"resolveHighlightColor",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.b}});Object.defineProperty(exports,"resolveShadingColor",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.c}});Object.defineProperty(exports,"twipsToEmu",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.s}});Object.defineProperty(exports,"twipsToPixels",{enumerable:true,get:function(){return chunkGJ4GKSDU_cjs.n}});Object.defineProperty(exports,"detectVariables",{enumerable:true,get:function(){return chunkXZNOV52K_cjs.a}});Object.defineProperty(exports,"detectVariablesDetailed",{enumerable:true,get:function(){return chunkXZNOV52K_cjs.b}});Object.defineProperty(exports,"detectVariablesInBody",{enumerable:true,get:function(){return chunkXZNOV52K_cjs.c}});Object.defineProperty(exports,"detectVariablesInParagraph",{enumerable:true,get:function(){return chunkXZNOV52K_cjs.d}});Object.defineProperty(exports,"documentHasVariables",{enumerable:true,get:function(){return chunkXZNOV52K_cjs.m}});Object.defineProperty(exports,"extractVariablesFromText",{enumerable:true,get:function(){return chunkXZNOV52K_cjs.e}});Object.defineProperty(exports,"formatVariable",{enumerable:true,get:function(){return chunkXZNOV52K_cjs.i}});Object.defineProperty(exports,"hasTemplateVariables",{enumerable:true,get:function(){return chunkXZNOV52K_cjs.f}});Object.defineProperty(exports,"isValidVariableName",{enumerable:true,get:function(){return chunkXZNOV52K_cjs.g}});Object.defineProperty(exports,"isZodSchema",{enumerable:true,get:function(){return chunkXZNOV52K_cjs.n}});Object.defineProperty(exports,"parseVariable",{enumerable:true,get:function(){return chunkXZNOV52K_cjs.j}});Object.defineProperty(exports,"removeVariables",{enumerable:true,get:function(){return chunkXZNOV52K_cjs.l}});Object.defineProperty(exports,"replaceVariables",{enumerable:true,get:function(){return chunkXZNOV52K_cjs.k}});Object.defineProperty(exports,"sanitizeVariableName",{enumerable:true,get:function(){return chunkXZNOV52K_cjs.h}});Object.defineProperty(exports,"createDocx",{enumerable:true,get:function(){return chunk5DYSI4O4_cjs.e}});Object.defineProperty(exports,"repackDocx",{enumerable:true,get:function(){return chunk5DYSI4O4_cjs.d}});Object.defineProperty(exports,"serializeDocumentBody",{enumerable:true,get:function(){return chunk5DYSI4O4_cjs.b}});Object.defineProperty(exports,"serializeDocx",{enumerable:true,get:function(){return chunk5DYSI4O4_cjs.c}});Object.defineProperty(exports,"serializeSectionProperties",{enumerable:true,get:function(){return chunk5DYSI4O4_cjs.a}});Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunkGWBTKVFD_cjs.a}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunkGWBTKVFD_cjs.b}});Object.defineProperty(exports,"parseDocx",{enumerable:true,get:function(){return chunkC33XDRDJ_cjs.q}});Object.defineProperty(exports,"PluginRegistry",{enumerable:true,get:function(){return chunkWD2HTKRR_cjs.a}});Object.defineProperty(exports,"createPluginRegistrar",{enumerable:true,get:function(){return chunkWD2HTKRR_cjs.d}});Object.defineProperty(exports,"pluginRegistry",{enumerable:true,get:function(){return chunkWD2HTKRR_cjs.b}});Object.defineProperty(exports,"registerPlugins",{enumerable:true,get:function(){return chunkWD2HTKRR_cjs.c}});Object.defineProperty(exports,"createTemplateProcessor",{enumerable:true,get:function(){return chunk4QT5LPBA_cjs.j}});Object.defineProperty(exports,"getMissingVariables",{enumerable:true,get:function(){return chunk4QT5LPBA_cjs.g}});Object.defineProperty(exports,"getTemplateTags",{enumerable:true,get:function(){return chunk4QT5LPBA_cjs.e}});Object.defineProperty(exports,"previewTemplate",{enumerable:true,get:function(){return chunk4QT5LPBA_cjs.h}});Object.defineProperty(exports,"processTemplate",{enumerable:true,get:function(){return chunk4QT5LPBA_cjs.a}});Object.defineProperty(exports,"processTemplateAdvanced",{enumerable:true,get:function(){return chunk4QT5LPBA_cjs.i}});Object.defineProperty(exports,"processTemplateAsBlob",{enumerable:true,get:function(){return chunk4QT5LPBA_cjs.c}});Object.defineProperty(exports,"processTemplateDetailed",{enumerable:true,get:function(){return chunk4QT5LPBA_cjs.b}});Object.defineProperty(exports,"validateTemplate",{enumerable:true,get:function(){return chunk4QT5LPBA_cjs.f}});exports.VERSION=ot;exports.countCharacters=je;exports.countWords=f;exports.getBlockIndexForParagraph=tt;exports.getBodyCharacterCount=Ne;exports.getBodyText=Me;exports.getBodyWordCount=We;exports.getFormattingAtPosition=Je;exports.getHyperlinkAtPosition=Ge;exports.getHyperlinkText=g;exports.getParagraphAtIndex=et;exports.getParagraphText=p;exports.getParagraphs=x;exports.getRunText=c;exports.getTableText=m;exports.getTextAfter=_e;exports.getTextBefore=Ze;exports.hasHyperlinks=Ye;exports.hasImages=Xe;exports.hasTables=$e;exports.isHeadingStyle=Ke;exports.isPositionInHyperlink=Ue;exports.parseHeadingLevel=Qe;//# sourceMappingURL=headless-reexport.cjs.map
5
- //# sourceMappingURL=headless-reexport.cjs.map
1
+ 'use strict';var chunkNVAQQYBJ_cjs=require('./chunk-NVAQQYBJ.cjs'),chunkGICVJSFJ_cjs=require('./chunk-GICVJSFJ.cjs'),chunkJRRTZZ72_cjs=require('./chunk-JRRTZZ72.cjs'),chunkTAF6KYDM_cjs=require('./chunk-TAF6KYDM.cjs'),chunkB7TICMXD_cjs=require('./chunk-B7TICMXD.cjs'),chunkY6QBJGMO_cjs=require('./chunk-Y6QBJGMO.cjs'),chunkP7ZF45KZ_cjs=require('./chunk-P7ZF45KZ.cjs'),chunkEH3NY2DQ_cjs=require('./chunk-EH3NY2DQ.cjs'),chunkYS7FDEZ4_cjs=require('./chunk-YS7FDEZ4.cjs');require('./chunk-XQNCLN4T.cjs'),require('./chunk-PCJ5ACUV.cjs');function l(n){let e=[];for(let t of n.content)t.type==="run"?e.push(c(t)):t.type==="hyperlink"&&e.push(g(t));return e.join("")}function c(n){return n.content.filter(e=>e.type==="text").map(e=>e.text).join("")}function g(n){let e=[];for(let t of n.children)t.type==="run"&&e.push(c(t));return e.join("")}function f(n){let e=[];for(let t of n.rows)for(let o of t.cells)for(let r of o.content)r.type==="paragraph"&&e.push(l(r));return e.join(" ")}function Ne(n){let e=[];for(let t of n.content)t.type==="paragraph"?e.push(l(t)):t.type==="table"&&e.push(f(t));return e.join(`
2
+ `)}function m(n){return n.split(/\s+/).filter(t=>t.length>0).length}function qe(n,e=true){return e?n.length:n.replace(/\s/g,"").length}function Ze(n){let e=0;for(let t of n.content)t.type==="paragraph"?e+=m(l(t)):t.type==="table"&&(e+=_e(t));return e}function _e(n){let e=0;for(let t of n.rows)for(let o of t.cells)for(let r of o.content)r.type==="paragraph"&&(e+=m(l(r)));return e}function Je(n){let e=0;for(let t of n.content)t.type==="paragraph"?e+=l(t).length:t.type==="table"&&(e+=Ue(t));return e}function Ue(n){let e=0;for(let t of n.rows)for(let o of t.cells)for(let r of o.content)r.type==="paragraph"&&(e+=l(r).length);return e}function Xe(n,e,t){let o=[],r=0,i=n[e.paragraphIndex];if(i){let s=l(i).slice(0,e.offset);o.unshift(s),r+=s.length;}for(let p=e.paragraphIndex-1;p>=0&&r<t;p--){let s=n[p];if(!s)continue;let u=l(s);o.unshift(u),r+=u.length;}let a=o.join(`
3
+ `);return a.length>t?"..."+a.slice(-t):a}function Ge(n,e,t){let o=[],r=0,i=n[e.paragraphIndex];if(i){let s=l(i).slice(e.offset);o.push(s),r+=s.length;}for(let p=e.paragraphIndex+1;p<n.length&&r<t;p++){let s=n[p];if(!s)continue;let u=l(s);o.push(u),r+=u.length;}let a=o.join(`
4
+ `);return a.length>t?a.slice(0,t)+"...":a}function Ke(n,e){let t=0;for(let o of n.content)if(o.type==="run"){let r=c(o),i=t+r.length;if(e>=t&&e<i)return o.formatting||{};t=i;}else if(o.type==="hyperlink"){let r=g(o),i=t+r.length;if(e>=t&&e<i){for(let a of o.children)if(a.type==="run")return a.formatting||{}}t=i;}return {}}function Qe(n,e){let t=0;for(let o of n.content)if(o.type==="run"){let r=c(o);t+=r.length;}else if(o.type==="hyperlink"){let r=g(o),i=t,a=t+r.length;if(e>=i&&e<a)return true;t=a;}return false}function Ye(n,e){let t=0;for(let o of n.content)if(o.type==="run"){let r=c(o);t+=r.length;}else if(o.type==="hyperlink"){let r=g(o),i=t,a=t+r.length;if(e>=i&&e<a)return o;t=a;}}function $e(n){return n?n.toLowerCase().includes("heading"):false}function et(n){if(!n)return;let e=n.match(/heading\s*(\d)/i);if(e)return parseInt(e[1],10)}function tt(n){for(let e of n.content)if(e.type==="paragraph"){for(let t of e.content)if(t.type==="run"){for(let o of t.content)if(o.type==="drawing")return true}}return false}function nt(n){for(let e of n.content)if(e.type==="paragraph"){for(let t of e.content)if(t.type==="hyperlink")return true}return false}function ot(n){return n.content.some(e=>e.type==="table")}function x(n){return n.content.filter(e=>e.type==="paragraph")}function rt(n,e){return x(n)[e]}function at(n,e){let t=0;for(let o=0;o<n.content.length;o++)if(n.content[o].type==="paragraph"){if(t===e)return o;t++;}return -1}var st="0.0.2";Object.defineProperty(exports,"DEFAULT_AI_ACTIONS",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.g}});Object.defineProperty(exports,"comparePositions",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.d}});Object.defineProperty(exports,"createCollapsedRange",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.a}});Object.defineProperty(exports,"createCommand",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.h}});Object.defineProperty(exports,"createRange",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.b}});Object.defineProperty(exports,"getActionDescription",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.f}});Object.defineProperty(exports,"getActionLabel",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.e}});Object.defineProperty(exports,"isPositionInRange",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.c}});Object.defineProperty(exports,"DocumentAgent",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.f}});Object.defineProperty(exports,"attemptSelectiveSave",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.c}});Object.defineProperty(exports,"buildExtendedSelectionContext",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.m}});Object.defineProperty(exports,"buildPatchedDocumentXml",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.b}});Object.defineProperty(exports,"buildSelectionContext",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.l}});Object.defineProperty(exports,"buildSelectionContextFromContext",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.j}});Object.defineProperty(exports,"createAgent",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.g}});Object.defineProperty(exports,"createAgentFromDocument",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.h}});Object.defineProperty(exports,"createDocumentWithText",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.e}});Object.defineProperty(exports,"createEmptyDocument",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.d}});Object.defineProperty(exports,"getAgentContext",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.i}});Object.defineProperty(exports,"getDocumentSummary",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.k}});Object.defineProperty(exports,"getSelectionFormattingSummary",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.n}});Object.defineProperty(exports,"validatePatchSafety",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.a}});Object.defineProperty(exports,"blendColors",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.l}});Object.defineProperty(exports,"colorsEqual",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.q}});Object.defineProperty(exports,"createRgbColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.i}});Object.defineProperty(exports,"createThemeColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.h}});Object.defineProperty(exports,"darkenColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.j}});Object.defineProperty(exports,"emuToPixels",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.t}});Object.defineProperty(exports,"emuToTwips",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.v}});Object.defineProperty(exports,"formatPx",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.B}});Object.defineProperty(exports,"getContrastingColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.f}});Object.defineProperty(exports,"halfPointsToPixels",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.y}});Object.defineProperty(exports,"isBlack",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.d}});Object.defineProperty(exports,"isWhite",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.e}});Object.defineProperty(exports,"lightenColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.k}});Object.defineProperty(exports,"parseColorString",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.g}});Object.defineProperty(exports,"pixelsToEmu",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.u}});Object.defineProperty(exports,"pixelsToTwips",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.s}});Object.defineProperty(exports,"pointsToPixels",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.x}});Object.defineProperty(exports,"resolveColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.a}});Object.defineProperty(exports,"resolveHighlightColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.b}});Object.defineProperty(exports,"resolveShadingColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.c}});Object.defineProperty(exports,"twipsToEmu",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.w}});Object.defineProperty(exports,"twipsToPixels",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.r}});Object.defineProperty(exports,"detectVariables",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.a}});Object.defineProperty(exports,"detectVariablesDetailed",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.b}});Object.defineProperty(exports,"detectVariablesInBody",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.c}});Object.defineProperty(exports,"detectVariablesInParagraph",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.d}});Object.defineProperty(exports,"documentHasVariables",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.m}});Object.defineProperty(exports,"extractVariablesFromText",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.e}});Object.defineProperty(exports,"formatVariable",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.i}});Object.defineProperty(exports,"hasTemplateVariables",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.f}});Object.defineProperty(exports,"isValidVariableName",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.g}});Object.defineProperty(exports,"isZodSchema",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.n}});Object.defineProperty(exports,"parseVariable",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.j}});Object.defineProperty(exports,"removeVariables",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.l}});Object.defineProperty(exports,"replaceVariables",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.k}});Object.defineProperty(exports,"sanitizeVariableName",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.h}});Object.defineProperty(exports,"createTemplateProcessor",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.j}});Object.defineProperty(exports,"getMissingVariables",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.g}});Object.defineProperty(exports,"getTemplateTags",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.e}});Object.defineProperty(exports,"previewTemplate",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.h}});Object.defineProperty(exports,"processTemplate",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.a}});Object.defineProperty(exports,"processTemplateAdvanced",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.i}});Object.defineProperty(exports,"processTemplateAsBlob",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.c}});Object.defineProperty(exports,"processTemplateDetailed",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.b}});Object.defineProperty(exports,"validateTemplate",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.f}});Object.defineProperty(exports,"createDocx",{enumerable:true,get:function(){return chunkY6QBJGMO_cjs.f}});Object.defineProperty(exports,"repackDocx",{enumerable:true,get:function(){return chunkY6QBJGMO_cjs.d}});Object.defineProperty(exports,"serializeDocumentBody",{enumerable:true,get:function(){return chunkY6QBJGMO_cjs.b}});Object.defineProperty(exports,"serializeDocx",{enumerable:true,get:function(){return chunkY6QBJGMO_cjs.c}});Object.defineProperty(exports,"serializeSectionProperties",{enumerable:true,get:function(){return chunkY6QBJGMO_cjs.a}});Object.defineProperty(exports,"updateMultipleFiles",{enumerable:true,get:function(){return chunkY6QBJGMO_cjs.e}});Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunkP7ZF45KZ_cjs.a}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunkP7ZF45KZ_cjs.b}});Object.defineProperty(exports,"parseDocx",{enumerable:true,get:function(){return chunkEH3NY2DQ_cjs.p}});Object.defineProperty(exports,"PluginRegistry",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.a}});Object.defineProperty(exports,"createPluginRegistrar",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.d}});Object.defineProperty(exports,"pluginRegistry",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.b}});Object.defineProperty(exports,"registerPlugins",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.c}});exports.VERSION=st;exports.countCharacters=qe;exports.countWords=m;exports.getBlockIndexForParagraph=at;exports.getBodyCharacterCount=Je;exports.getBodyText=Ne;exports.getBodyWordCount=Ze;exports.getFormattingAtPosition=Ke;exports.getHyperlinkAtPosition=Ye;exports.getHyperlinkText=g;exports.getParagraphAtIndex=rt;exports.getParagraphText=l;exports.getParagraphs=x;exports.getRunText=c;exports.getTableText=f;exports.getTextAfter=Ge;exports.getTextBefore=Xe;exports.hasHyperlinks=nt;exports.hasImages=tt;exports.hasTables=ot;exports.isHeadingStyle=$e;exports.isPositionInHyperlink=Qe;exports.parseHeadingLevel=et;
@@ -1,10 +1,10 @@
1
- import { d as DocumentBody, a as Paragraph, T as TextFormatting, H as Hyperlink, b as Run, e as Table, P as Position } from './agentApi-BFVyKagE.cjs';
2
- export { f as AIAction, g as AIActionRequest, A as AgentCommand, h as AgentContext, i as AgentResponse, j as ApplyStyleCommand, k as ApplyVariablesCommand, l as BlockContent, m as DEFAULT_AI_ACTIONS, n as DeleteTextCommand, D as Document, o as DocxPackage, E as Endnote, F as Footnote, p as FormatParagraphCommand, q as FormatTextCommand, I as Image, r as InsertHyperlinkCommand, s as InsertImageCommand, t as InsertTableCommand, u as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, v as ParagraphContext, w as ParagraphFormatting, x as ParagraphOutline, R as Range, y as Relationship, z as ReplaceTextCommand, c as RunContent, S as SectionInfo, C as SectionProperties, G as SelectionContext, J as SetVariableCommand, K as Style, M as StyleDefinitions, O as StyleInfo, Q as SuggestedAction, U as TableCell, V as TableRow, W as TextContent, X as Theme, Y as comparePositions, Z as createCollapsedRange, _ as createCommand, $ as createRange, a0 as getActionDescription, a1 as getActionLabel, a2 as isPositionInRange } from './agentApi-BFVyKagE.cjs';
3
- export { A as AgentContextOptions, S as ContextSelectionOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, F as FormattingSummary, P as ProcessTemplateOptions, a as ProcessTemplateResult, b as SelectionContextOptions, T as TemplateError, c as blendColors, d as buildExtendedSelectionContext, e as buildSelectionContext, f as buildSelectionContextFromContext, g as colorsEqual, h as createDocumentWithText, i as createEmptyDocument, j as createRgbColor, k as createTemplateProcessor, l as createThemeColor, m as darkenColor, n as emuToPixels, o as emuToTwips, p as executeCommand, q as executeCommands, r as formatPx, s as getAgentContext, t as getContrastingColor, u as getDocumentSummary, v as getMissingVariables, w as getSelectionFormattingSummary, x as getTemplateTags, y as halfPointsToPixels, z as isBlack, B as isWhite, D as lightenColor, G as parseColorString, H as parseDocx, I as pixelsToEmu, J as pixelsToTwips, K as pointsToPixels, L as previewTemplate, M as processTemplate, N as processTemplateAdvanced, O as processTemplateAsBlob, Q as processTemplateDetailed, R as resolveColor, U as resolveHighlightColor, V as resolveShadingColor, W as serializeDocumentBody, X as serializeDocx, Y as serializeSectionProperties, Z as twipsToEmu, _ as twipsToPixels, $ as validateTemplate } from './colorResolver-Cu46bSKr.cjs';
4
- export { b as CommandHandler, d as CommandResult, C as CorePlugin, J as JsonSchema, L as LoadedDocument, e as McpSession, f as McpToolAnnotations, g as McpToolContent, h as McpToolContext, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult, C as Plugin, k as PluginCommand, b as PluginCommandHandler, l as PluginEvent, c as PluginEventListener, P as PluginOptions, a as PluginRegistrationResult, M as ToolDefinition, i as ToolHandler, j as ToolResult, Z as ZodSchemaLike, m as isZodSchema } from './types-Bnp8rvJn.cjs';
5
- export { D as DocumentAgent, F as FormattedTextSegment, I as InsertHyperlinkOptions, a as InsertImageOptions, b as InsertTableOptions, c as InsertTextOptions, d as createAgent, e as createAgentFromDocument } from './DocumentAgent-B0EC8lPC.cjs';
6
- export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-DjacfR6Q.cjs';
7
- export { V as VariableDetectionResult, a as VariableOccurrence, c as createDocx, d as detectVariables, b as detectVariablesDetailed, e as detectVariablesInBody, f as detectVariablesInParagraph, g as documentHasVariables, h as extractVariablesFromText, i as formatVariable, j as hasTemplateVariables, k as isValidVariableName, p as parseVariable, r as removeVariables, l as repackDocx, m as replaceVariables, s as sanitizeVariableName } from './variableDetector-CMhJtM96.cjs';
1
+ import { d as DocumentBody, a as Paragraph, T as TextFormatting, H as Hyperlink, b as Run, e as Table, P as Position } from './agentApi-DfsWRyrP.cjs';
2
+ export { f as AIAction, g as AIActionRequest, A as AgentCommand, h as AgentContext, i as AgentResponse, j as ApplyStyleCommand, k as ApplyVariablesCommand, l as BlockContent, m as DEFAULT_AI_ACTIONS, n as DeleteTextCommand, D as Document, o as DocxPackage, E as Endnote, F as Footnote, p as FormatParagraphCommand, q as FormatTextCommand, I as Image, r as InsertHyperlinkCommand, s as InsertImageCommand, t as InsertTableCommand, u as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, v as ParagraphContext, w as ParagraphFormatting, x as ParagraphOutline, R as Range, y as Relationship, z as ReplaceTextCommand, c as RunContent, S as SectionInfo, C as SectionProperties, G as SelectionContext, J as SetVariableCommand, K as Style, M as StyleDefinitions, O as StyleInfo, Q as SuggestedAction, U as TableCell, V as TableRow, W as TextContent, X as Theme, Y as comparePositions, Z as createCollapsedRange, _ as createCommand, $ as createRange, a0 as getActionDescription, a1 as getActionLabel, a2 as isPositionInRange } from './agentApi-DfsWRyrP.cjs';
3
+ export { A as AgentContextOptions, S as ContextSelectionOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, F as FormattingSummary, P as ProcessTemplateOptions, a as ProcessTemplateResult, b as SelectionContextOptions, T as TemplateError, c as blendColors, d as buildExtendedSelectionContext, e as buildSelectionContext, f as buildSelectionContextFromContext, g as colorsEqual, h as createDocumentWithText, i as createEmptyDocument, j as createRgbColor, k as createTemplateProcessor, l as createThemeColor, m as darkenColor, n as emuToPixels, o as emuToTwips, p as executeCommand, q as executeCommands, r as formatPx, s as getAgentContext, t as getContrastingColor, u as getDocumentSummary, v as getMissingVariables, w as getSelectionFormattingSummary, x as getTemplateTags, y as halfPointsToPixels, z as isBlack, B as isWhite, D as lightenColor, G as parseColorString, H as parseDocx, I as pixelsToEmu, J as pixelsToTwips, K as pointsToPixels, L as previewTemplate, M as processTemplate, N as processTemplateAdvanced, O as processTemplateAsBlob, Q as processTemplateDetailed, R as resolveColor, U as resolveHighlightColor, V as resolveShadingColor, W as serializeDocumentBody, X as serializeDocx, Y as serializeSectionProperties, Z as twipsToEmu, _ as twipsToPixels, $ as validateTemplate } from './colorResolver-Dr8kQZAQ.cjs';
4
+ export { b as CommandHandler, d as CommandResult, C as CorePlugin, J as JsonSchema, L as LoadedDocument, e as McpSession, f as McpToolAnnotations, g as McpToolContent, h as McpToolContext, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult, C as Plugin, k as PluginCommand, b as PluginCommandHandler, l as PluginEvent, c as PluginEventListener, P as PluginOptions, a as PluginRegistrationResult, M as ToolDefinition, i as ToolHandler, j as ToolResult, Z as ZodSchemaLike, m as isZodSchema } from './types-DEEpBL9H.cjs';
5
+ export { D as DocumentAgent, F as FormattedTextSegment, I as InsertHyperlinkOptions, a as InsertImageOptions, b as InsertTableOptions, c as InsertTextOptions, d as attemptSelectiveSave, e as createAgent, f as createAgentFromDocument } from './DocumentAgent-CnJ9AEl_.cjs';
6
+ export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-BU-FbHh-.cjs';
7
+ export { V as VariableDetectionResult, a as VariableOccurrence, b as buildPatchedDocumentXml, c as createDocx, d as detectVariables, e as detectVariablesDetailed, f as detectVariablesInBody, g as detectVariablesInParagraph, h as documentHasVariables, i as extractVariablesFromText, j as formatVariable, k as hasTemplateVariables, l as isValidVariableName, p as parseVariable, r as removeVariables, m as repackDocx, n as replaceVariables, s as sanitizeVariableName, u as updateMultipleFiles, v as validatePatchSafety } from './variableDetector-B4oQJa2e.cjs';
8
8
 
9
9
  /**
10
10
  * Shared Text Utilities for Agent Module
@@ -1,10 +1,10 @@
1
- import { d as DocumentBody, a as Paragraph, T as TextFormatting, H as Hyperlink, b as Run, e as Table, P as Position } from './agentApi-BFVyKagE.js';
2
- export { f as AIAction, g as AIActionRequest, A as AgentCommand, h as AgentContext, i as AgentResponse, j as ApplyStyleCommand, k as ApplyVariablesCommand, l as BlockContent, m as DEFAULT_AI_ACTIONS, n as DeleteTextCommand, D as Document, o as DocxPackage, E as Endnote, F as Footnote, p as FormatParagraphCommand, q as FormatTextCommand, I as Image, r as InsertHyperlinkCommand, s as InsertImageCommand, t as InsertTableCommand, u as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, v as ParagraphContext, w as ParagraphFormatting, x as ParagraphOutline, R as Range, y as Relationship, z as ReplaceTextCommand, c as RunContent, S as SectionInfo, C as SectionProperties, G as SelectionContext, J as SetVariableCommand, K as Style, M as StyleDefinitions, O as StyleInfo, Q as SuggestedAction, U as TableCell, V as TableRow, W as TextContent, X as Theme, Y as comparePositions, Z as createCollapsedRange, _ as createCommand, $ as createRange, a0 as getActionDescription, a1 as getActionLabel, a2 as isPositionInRange } from './agentApi-BFVyKagE.js';
3
- export { A as AgentContextOptions, S as ContextSelectionOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, F as FormattingSummary, P as ProcessTemplateOptions, a as ProcessTemplateResult, b as SelectionContextOptions, T as TemplateError, c as blendColors, d as buildExtendedSelectionContext, e as buildSelectionContext, f as buildSelectionContextFromContext, g as colorsEqual, h as createDocumentWithText, i as createEmptyDocument, j as createRgbColor, k as createTemplateProcessor, l as createThemeColor, m as darkenColor, n as emuToPixels, o as emuToTwips, p as executeCommand, q as executeCommands, r as formatPx, s as getAgentContext, t as getContrastingColor, u as getDocumentSummary, v as getMissingVariables, w as getSelectionFormattingSummary, x as getTemplateTags, y as halfPointsToPixels, z as isBlack, B as isWhite, D as lightenColor, G as parseColorString, H as parseDocx, I as pixelsToEmu, J as pixelsToTwips, K as pointsToPixels, L as previewTemplate, M as processTemplate, N as processTemplateAdvanced, O as processTemplateAsBlob, Q as processTemplateDetailed, R as resolveColor, U as resolveHighlightColor, V as resolveShadingColor, W as serializeDocumentBody, X as serializeDocx, Y as serializeSectionProperties, Z as twipsToEmu, _ as twipsToPixels, $ as validateTemplate } from './colorResolver-B5YbO_a4.js';
4
- export { b as CommandHandler, d as CommandResult, C as CorePlugin, J as JsonSchema, L as LoadedDocument, e as McpSession, f as McpToolAnnotations, g as McpToolContent, h as McpToolContext, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult, C as Plugin, k as PluginCommand, b as PluginCommandHandler, l as PluginEvent, c as PluginEventListener, P as PluginOptions, a as PluginRegistrationResult, M as ToolDefinition, i as ToolHandler, j as ToolResult, Z as ZodSchemaLike, m as isZodSchema } from './types-DwZ3xysp.js';
5
- export { D as DocumentAgent, F as FormattedTextSegment, I as InsertHyperlinkOptions, a as InsertImageOptions, b as InsertTableOptions, c as InsertTextOptions, d as createAgent, e as createAgentFromDocument } from './DocumentAgent-BcCDg7i2.js';
6
- export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-CV6nYWqP.js';
7
- export { V as VariableDetectionResult, a as VariableOccurrence, c as createDocx, d as detectVariables, b as detectVariablesDetailed, e as detectVariablesInBody, f as detectVariablesInParagraph, g as documentHasVariables, h as extractVariablesFromText, i as formatVariable, j as hasTemplateVariables, k as isValidVariableName, p as parseVariable, r as removeVariables, l as repackDocx, m as replaceVariables, s as sanitizeVariableName } from './variableDetector-BaDeXz7D.js';
1
+ import { d as DocumentBody, a as Paragraph, T as TextFormatting, H as Hyperlink, b as Run, e as Table, P as Position } from './agentApi-DfsWRyrP.js';
2
+ export { f as AIAction, g as AIActionRequest, A as AgentCommand, h as AgentContext, i as AgentResponse, j as ApplyStyleCommand, k as ApplyVariablesCommand, l as BlockContent, m as DEFAULT_AI_ACTIONS, n as DeleteTextCommand, D as Document, o as DocxPackage, E as Endnote, F as Footnote, p as FormatParagraphCommand, q as FormatTextCommand, I as Image, r as InsertHyperlinkCommand, s as InsertImageCommand, t as InsertTableCommand, u as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, v as ParagraphContext, w as ParagraphFormatting, x as ParagraphOutline, R as Range, y as Relationship, z as ReplaceTextCommand, c as RunContent, S as SectionInfo, C as SectionProperties, G as SelectionContext, J as SetVariableCommand, K as Style, M as StyleDefinitions, O as StyleInfo, Q as SuggestedAction, U as TableCell, V as TableRow, W as TextContent, X as Theme, Y as comparePositions, Z as createCollapsedRange, _ as createCommand, $ as createRange, a0 as getActionDescription, a1 as getActionLabel, a2 as isPositionInRange } from './agentApi-DfsWRyrP.js';
3
+ export { A as AgentContextOptions, S as ContextSelectionOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, F as FormattingSummary, P as ProcessTemplateOptions, a as ProcessTemplateResult, b as SelectionContextOptions, T as TemplateError, c as blendColors, d as buildExtendedSelectionContext, e as buildSelectionContext, f as buildSelectionContextFromContext, g as colorsEqual, h as createDocumentWithText, i as createEmptyDocument, j as createRgbColor, k as createTemplateProcessor, l as createThemeColor, m as darkenColor, n as emuToPixels, o as emuToTwips, p as executeCommand, q as executeCommands, r as formatPx, s as getAgentContext, t as getContrastingColor, u as getDocumentSummary, v as getMissingVariables, w as getSelectionFormattingSummary, x as getTemplateTags, y as halfPointsToPixels, z as isBlack, B as isWhite, D as lightenColor, G as parseColorString, H as parseDocx, I as pixelsToEmu, J as pixelsToTwips, K as pointsToPixels, L as previewTemplate, M as processTemplate, N as processTemplateAdvanced, O as processTemplateAsBlob, Q as processTemplateDetailed, R as resolveColor, U as resolveHighlightColor, V as resolveShadingColor, W as serializeDocumentBody, X as serializeDocx, Y as serializeSectionProperties, Z as twipsToEmu, _ as twipsToPixels, $ as validateTemplate } from './colorResolver-CYttioMe.js';
4
+ export { b as CommandHandler, d as CommandResult, C as CorePlugin, J as JsonSchema, L as LoadedDocument, e as McpSession, f as McpToolAnnotations, g as McpToolContent, h as McpToolContext, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult, C as Plugin, k as PluginCommand, b as PluginCommandHandler, l as PluginEvent, c as PluginEventListener, P as PluginOptions, a as PluginRegistrationResult, M as ToolDefinition, i as ToolHandler, j as ToolResult, Z as ZodSchemaLike, m as isZodSchema } from './types-7wjInVMW.js';
5
+ export { D as DocumentAgent, F as FormattedTextSegment, I as InsertHyperlinkOptions, a as InsertImageOptions, b as InsertTableOptions, c as InsertTextOptions, d as attemptSelectiveSave, e as createAgent, f as createAgentFromDocument } from './DocumentAgent-CrbsDniO.js';
6
+ export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-gRbkCooh.js';
7
+ export { V as VariableDetectionResult, a as VariableOccurrence, b as buildPatchedDocumentXml, c as createDocx, d as detectVariables, e as detectVariablesDetailed, f as detectVariablesInBody, g as detectVariablesInParagraph, h as documentHasVariables, i as extractVariablesFromText, j as formatVariable, k as hasTemplateVariables, l as isValidVariableName, p as parseVariable, r as removeVariables, m as repackDocx, n as replaceVariables, s as sanitizeVariableName, u as updateMultipleFiles, v as validatePatchSafety } from './variableDetector-BXJaTkiB.js';
8
8
 
9
9
  /**
10
10
  * Shared Text Utilities for Agent Module