@eigenpal/docx-editor-agents 0.4.3 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/bridge.d.mts +1 -1
  2. package/dist/bridge.d.ts +1 -1
  3. package/dist/bridge.js +1 -1
  4. package/dist/bridge.mjs +1 -1
  5. package/dist/chunk-6NWAUIGY.js +1 -0
  6. package/dist/{chunk-MREPAMXX.js → chunk-A6ANAWKH.js} +1 -1
  7. package/dist/{chunk-H7HNGCMH.mjs → chunk-BDHS4WRJ.mjs} +1 -1
  8. package/dist/chunk-CPJV53R6.mjs +5 -0
  9. package/dist/chunk-G46D3GDJ.js +71 -0
  10. package/dist/{chunk-YCUXBRD7.js → chunk-LVRKZUG4.js} +3 -3
  11. package/dist/{chunk-NLYXACTI.js → chunk-N2TKFYHU.js} +2 -2
  12. package/dist/{chunk-74RQEWM7.mjs → chunk-QALBLABE.mjs} +1 -1
  13. package/dist/chunk-U7BWZ7DG.mjs +1 -0
  14. package/dist/chunk-XZHZXQO5.mjs +71 -0
  15. package/dist/executor-OYRPTNBR.mjs +1 -0
  16. package/dist/executor-SJAFSXKL.js +1 -0
  17. package/dist/headless-FE3K7ABO.js +1 -0
  18. package/dist/headless-JRF2KBID.mjs +1 -0
  19. package/dist/index.d.mts +2 -2
  20. package/dist/index.d.ts +2 -2
  21. package/dist/index.js +1 -1
  22. package/dist/index.mjs +1 -1
  23. package/dist/mcp.d.mts +1 -1
  24. package/dist/mcp.d.ts +1 -1
  25. package/dist/react.d.mts +2 -2
  26. package/dist/react.d.ts +2 -2
  27. package/dist/react.js +1 -1
  28. package/dist/react.mjs +1 -1
  29. package/dist/{server-CLaXsEC8.d.mts → server-DH5eszkm.d.mts} +41 -1
  30. package/dist/{server-CLaXsEC8.d.ts → server-DH5eszkm.d.ts} +41 -1
  31. package/dist/server.d.mts +1 -1
  32. package/dist/server.d.ts +1 -1
  33. package/dist/server.js +1 -1
  34. package/dist/server.mjs +1 -1
  35. package/package.json +1 -1
  36. package/dist/chunk-2AF2FRMM.js +0 -1
  37. package/dist/chunk-HSAYNLBS.mjs +0 -5
  38. package/dist/chunk-OVPN5UGH.js +0 -71
  39. package/dist/chunk-PNONETA3.mjs +0 -71
  40. package/dist/chunk-X57U3ESM.mjs +0 -1
  41. package/dist/executor-O3426NM3.mjs +0 -1
  42. package/dist/executor-WY7D4C5O.js +0 -1
  43. package/dist/headless-ASQ6WVGY.mjs +0 -1
  44. package/dist/headless-VE2YU7ZB.js +0 -1
@@ -1 +0,0 @@
1
- var w=class{constructor(){this.plugins=new Map;this.commandHandlers=new Map;this.eventListeners=new Set;this.initialized=new Set;}register(e,r){let n=[];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 t of e.dependencies)if(!this.plugins.has(t))return {success:false,error:`Plugin '${e.id}' requires '${t}' which is not registered`}}if(e.commandHandlers)for(let[t,o]of Object.entries(e.commandHandlers)){if(this.commandHandlers.has(t)){let i=this.commandHandlers.get(t);n.push(`Command '${t}' from '${e.id}' overrides handler from '${i.pluginId}'`);}this.commandHandlers.set(t,{pluginId:e.id,handler:o});}if(this.plugins.set(e.id,e),e.initialize&&!this.initialized.has(e.id))try{let t=e.initialize();t instanceof Promise?t.then(()=>{this.initialized.add(e.id);}).catch(o=>{this.emit({type:"error",pluginId:e.id,error:o});}):this.initialized.add(e.id);}catch(t){this.emit({type:"error",pluginId:e.id,error:t});}return r?.debug&&console.log(`[PluginRegistry] Registered plugin: ${e.id}`),this.emit({type:"registered",plugin:e}),{success:true,plugin:e,warnings:n.length>0?n:void 0}}unregister(e){let r=this.plugins.get(e);if(!r)return false;for(let[n,t]of this.plugins)if(t.dependencies?.includes(e))return console.warn(`Cannot unregister '${e}': '${n}' depends on it`),false;for(let[n,{pluginId:t}]of this.commandHandlers)t===e&&this.commandHandlers.delete(n);if(r.destroy)try{let n=r.destroy();n instanceof Promise&&n.catch(t=>{this.emit({type:"error",pluginId:e,error:t});});}catch(n){this.emit({type:"error",pluginId:e,error:n});}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 n=r.mcpTools.find(t=>t.name===e);if(n)return n}}addEventListener(e){this.eventListeners.add(e);}removeEventListener(e){this.eventListeners.delete(e);}emit(e){for(let r of this.eventListeners)try{r(e);}catch(n){console.error("[PluginRegistry] Event listener error:",n);}}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)}}},b=new w;function _(s,e){return s.map(r=>b.register(r,e))}function J(s){return e=>b.register(e,s)}function R(s,e){let r=b.getCommandHandler(e.type);if(r)return r(s,e);switch(e.type){case "insertText":return E(s,e);case "replaceText":return H(s,e);case "deleteText":return $(s,e);case "formatText":return S(s,e);case "formatParagraph":return A(s,e);case "applyStyle":return M(s,e);case "insertTable":return B(s,e);case "insertImage":return V(s,e);case "insertHyperlink":return z(s,e);case "removeHyperlink":return F(s,e);case "insertParagraphBreak":return v(s,e);case "mergeParagraphs":return L(s,e);case "splitParagraph":return O(s,e);case "setVariable":return j(s,e);case "applyVariables":return N(s,e);default:let n=e;throw new Error(`Unknown command type: ${n.type}`)}}function G(s,e){return e.reduce((r,n)=>R(r,n),s)}function h(s){return JSON.parse(JSON.stringify(s))}function f(s,e){let r=0;for(let n=0;n<s.content.length;n++)if(s.content[n].type==="paragraph"){if(r===e)return n;r++;}return -1}function P(s){let e="";for(let r of s.content)if(r.type==="run")for(let n of r.content)n.type==="text"&&(e+=n.text);else if(r.type==="hyperlink"){for(let n of r.children)if(n.type==="run")for(let t of n.content)t.type==="text"&&(e+=t.text);}return e}function C(s,e){return {type:"run",formatting:e,content:[{type:"text",text:s}]}}function T(s,e,r,n){let t=[],o=0,i=false;for(let a of s.content)if(a.type==="run"){let c=a.content.filter(u=>u.type==="text").map(u=>u.text).join(""),p=o,l=o+c.length;if(!i&&e>=p&&e<=l){let u=e-p;u>0&&t.push({...a,content:[{type:"text",text:c.slice(0,u)}]}),t.push(C(r,n||a.formatting)),u<c.length&&t.push({...a,content:[{type:"text",text:c.slice(u)}]}),i=true;}else t.push(a);o=l;}else t.push(a);return i||t.push(C(r,n)),t}function y(s,e,r){let n=[],t=0;for(let o of s.content)if(o.type==="run"){let i=o.content.filter(p=>p.type==="text").map(p=>p.text).join(""),a=t,c=t+i.length;if(c<=e||a>=r)n.push(o);else {let p="";a<e&&(p+=i.slice(0,e-a)),c>r&&(p+=i.slice(r-a)),p.length>0&&n.push({...o,content:[{type:"text",text:p}]});}t=c;}else n.push(o);return n}function D(s,e,r,n){let t=[],o=0;for(let i of s.content)if(i.type==="run"){let a=i.content.filter(l=>l.type==="text").map(l=>l.text).join(""),c=o,p=o+a.length;if(p<=e||c>=r)t.push(i);else if(c>=e&&p<=r)t.push({...i,formatting:{...i.formatting,...n}});else {let l=Math.max(e,c),u=Math.min(r,p);c<l&&t.push({...i,content:[{type:"text",text:a.slice(0,l-c)}]}),t.push({...i,formatting:{...i.formatting,...n},content:[{type:"text",text:a.slice(l-c,u-c)}]}),p>u&&t.push({...i,content:[{type:"text",text:a.slice(u-c)}]});}o=p;}else t.push(i);return t}function E(s,e){let r=h(s),n=r.package.document,t=f(n,e.position.paragraphIndex);if(t===-1)throw new Error(`Paragraph index ${e.position.paragraphIndex} not found`);let o=n.content[t];return o.content=T(o,e.position.offset,e.text,e.formatting),r}function H(s,e){let r=h(s),n=r.package.document,{start:t,end:o}=e.range;if(t.paragraphIndex===o.paragraphIndex){let i=f(n,t.paragraphIndex);if(i===-1)throw new Error(`Paragraph index ${t.paragraphIndex} not found`);let a=n.content[i];a.content=y(a,t.offset,o.offset),a.content=T(a,t.offset,e.text,e.formatting);}else {let i=f(n,t.paragraphIndex),a=n.content[i],c=P(a);a.content=y(a,t.offset,c.length),a.content=T(a,t.offset,e.text,e.formatting);let p=[];for(let l=t.paragraphIndex+1;l<=o.paragraphIndex;l++)p.push(f(n,l));for(let l=p.length-1;l>=0;l--)p[l]!==-1&&n.content.splice(p[l],1);}return r}function $(s,e){let r=h(s),n=r.package.document,{start:t,end:o}=e.range;if(t.paragraphIndex===o.paragraphIndex){let i=f(n,t.paragraphIndex);if(i===-1)throw new Error(`Paragraph index ${t.paragraphIndex} not found`);let a=n.content[i];a.content=y(a,t.offset,o.offset);}else {let i=f(n,t.paragraphIndex),a=n.content[i],c=P(a);a.content=y(a,t.offset,c.length);let p=f(n,o.paragraphIndex),l=n.content[p];l.content=y(l,0,o.offset),a.content.push(...l.content);let u=[];for(let g=t.paragraphIndex+1;g<=o.paragraphIndex;g++)u.push(f(n,g));for(let g=u.length-1;g>=0;g--)u[g]!==-1&&n.content.splice(u[g],1);}return r}function S(s,e){let r=h(s),n=r.package.document,{start:t,end:o}=e.range;if(t.paragraphIndex===o.paragraphIndex){let i=f(n,t.paragraphIndex);if(i===-1)throw new Error(`Paragraph index ${t.paragraphIndex} not found`);let a=n.content[i];a.content=D(a,t.offset,o.offset,e.formatting);}else for(let i=t.paragraphIndex;i<=o.paragraphIndex;i++){let a=f(n,i);if(a===-1)continue;let c=n.content[a],p=P(c),l=0,u=p.length;i===t.paragraphIndex&&(l=t.offset),i===o.paragraphIndex&&(u=o.offset),c.content=D(c,l,u,e.formatting);}return r}function A(s,e){let r=h(s),n=r.package.document,t=f(n,e.paragraphIndex);if(t===-1)throw new Error(`Paragraph index ${e.paragraphIndex} not found`);let o=n.content[t];if(o.formatting={...o.formatting,...e.formatting},"numPr"in e.formatting){let i=e.formatting.numPr;if(i&&i.numId!==void 0&&i.numId!==0){let a=i.ilvl??0,c=i.numId===1,p=c?"\u2022":"1.";if(r.package.numbering){let l=r.package.numbering.nums.find(u=>u.numId===i.numId);if(l){let u=r.package.numbering.abstractNums.find(g=>g.abstractNumId===l.abstractNumId);if(u){let g=u.levels.find(d=>d.ilvl===a);g&&(p=g.lvlText||p);}}}o.listRendering={level:a,numId:i.numId,marker:p,isBullet:c};}else delete o.listRendering;}return r}function M(s,e){let r=h(s),n=r.package.document,t=f(n,e.paragraphIndex);if(t===-1)throw new Error(`Paragraph index ${e.paragraphIndex} not found`);let o=n.content[t];return o.formatting={...o.formatting,styleId:e.styleId},r}function B(s,e){let r=h(s),n=r.package.document,t=[];for(let a=0;a<e.rows;a++){let c=[];for(let p=0;p<e.columns;p++){let l=e.data?.[a]?.[p]||"";c.push({type:"tableCell",content:[{type:"paragraph",content:l?[C(l)]:[]}]});}t.push({type:"tableRow",formatting:a===0&&e.hasHeader?{header:true}:void 0,cells:c});}let o={type:"table",rows:t},i=f(n,e.position.paragraphIndex);return i===-1?n.content.push(o):n.content.splice(i+1,0,o),r}function V(s,e){let r=h(s),n=r.package.document,t=f(n,e.position.paragraphIndex);if(t===-1)throw new Error(`Paragraph index ${e.position.paragraphIndex} not found`);let o=n.content[t],a={type:"run",content:[{type:"drawing",image:{type:"image",rId:`rId_img_${Date.now()}`,src:e.src,alt:e.alt,size:{width:(e.width||100)*914400,height:(e.height||100)*914400},wrap:{type:"inline"}}}]},c=T(o,e.position.offset,"",void 0),p=false,l=0;for(let u=0;u<c.length;u++){let g=c[u];if(g.type==="run"){let d=g.content.filter(m=>m.type==="text").map(m=>m.text).join("");if(l+=d.length,!p&&l>=e.position.offset){c.splice(u+1,0,a),p=true;break}}}return p||c.push(a),o.content=c,r}function z(s,e){let r=h(s),n=r.package.document,{start:t,end:o}=e.range;if(t.paragraphIndex!==o.paragraphIndex)throw new Error("Hyperlinks cannot span multiple paragraphs");let i=f(n,t.paragraphIndex);if(i===-1)throw new Error(`Paragraph index ${t.paragraphIndex} not found`);let a=n.content[i],c=P(a),p=e.displayText||c.slice(t.offset,o.offset);a.content=y(a,t.offset,o.offset);let l={type:"hyperlink",href:e.url,tooltip:e.tooltip,children:[C(p)]},u=false,g=0,d=[];for(let m of a.content)if(m.type==="run"){let I=m.content.filter(x=>x.type==="text").map(x=>x.text).join(""),k=g+I.length;if(!u&&g<=t.offset&&t.offset<=k){let x=t.offset-g;x>0&&d.push({...m,content:[{type:"text",text:I.slice(0,x)}]}),d.push(l),x<I.length&&d.push({...m,content:[{type:"text",text:I.slice(x)}]}),u=true;}else d.push(m);g=k;}else d.push(m);return u||d.push(l),a.content=d,r}function F(s,e){let r=h(s),n=r.package.document,{start:t}=e.range,o=f(n,t.paragraphIndex);if(o===-1)throw new Error(`Paragraph index ${t.paragraphIndex} not found`);let i=n.content[o],a=[];for(let c of i.content)if(c.type==="hyperlink")for(let p of c.children)p.type==="run"&&a.push(p);else a.push(c);return i.content=a,r}function v(s,e){let r=h(s),n=r.package.document,t=f(n,e.position.paragraphIndex);if(t===-1)throw new Error(`Paragraph index ${e.position.paragraphIndex} not found`);let o=n.content[t],i=P(o),a=y({content:[...o.content]},e.position.offset,i.length),c=y({content:[...o.content]},0,e.position.offset);o.content=a;let p={type:"paragraph",formatting:o.formatting,content:c};return n.content.splice(t+1,0,p),r}function L(s,e){let r=h(s),n=r.package.document,t=f(n,e.paragraphIndex);if(t===-1)throw new Error(`Paragraph index ${e.paragraphIndex} not found`);let o=n.content[t],i=[];for(let a=1;a<=e.count;a++){let c=f(n,e.paragraphIndex+a);if(c!==-1){let p=n.content[c];o.content.push(...p.content),i.push(c);}}for(let a=i.length-1;a>=0;a--)n.content.splice(i[a],1);return r}function O(s,e){return v(s,{position:e.position})}function j(s,e){let r=h(s);return r.templateVariables||(r.templateVariables=[]),r.templateVariables.includes(e.name)||r.templateVariables.push(e.name),r}function N(s,e){let r=h(s),n=r.package.document;function t(a){for(let c of a.content)if(c.type==="text")for(let[p,l]of Object.entries(e.values)){let u=new RegExp(`\\{${p}\\}`,"g");c.text=c.text.replace(u,l);}}function o(a){for(let c of a.content)if(c.type==="run")t(c);else if(c.type==="hyperlink")for(let p of c.children)p.type==="run"&&t(p);}function i(a){if(a.type==="paragraph")o(a);else if(a.type==="table")for(let c of a.rows)for(let p of c.cells)for(let l of p.content)i(l);}for(let a of n.content)i(a);return r}export{w as a,b,_ as c,J as d,R as e,G as f};
@@ -1 +0,0 @@
1
- export{e as executeCommand,f as executeCommands}from'./chunk-X57U3ESM.mjs';
@@ -1 +0,0 @@
1
- 'use strict';var chunk2AF2FRMM_js=require('./chunk-2AF2FRMM.js');Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunk2AF2FRMM_js.e}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunk2AF2FRMM_js.f}});
@@ -1 +0,0 @@
1
- export{Fa as DEFAULT_AI_ACTIONS,G as DocumentAgent,Ha as VERSION,i as attemptSelectiveSave,wa as blendColors,N as buildExtendedSelectionContext,h as buildPatchedDocumentXml,M as buildSelectionContext,K as buildSelectionContextFromContext,xa as colorsEqual,Ca as comparePositions,V as countCharacters,U as countWords,H as createAgent,I as createAgentFromDocument,za as createCollapsedRange,Ga as createCommand,ka as createDocumentWithText,f as createDocx,ja as createEmptyDocument,Aa as createRange,ta as createRgbColor,sa as createThemeColor,ua as darkenColor,j as detectVariables,k as detectVariablesDetailed,l as detectVariablesInBody,m as detectVariablesInParagraph,v as documentHasVariables,y as emuToPixels,A as emuToTwips,n as extractVariablesFromText,E as formatPx,r as formatVariable,Ea as getActionDescription,Da as getActionLabel,J as getAgentContext,ia as getBlockIndexForParagraph,X as getBodyCharacterCount,T as getBodyText,W as getBodyWordCount,qa as getContrastingColor,L as getDocumentSummary,_ as getFormattingAtPosition,aa as getHyperlinkAtPosition,R as getHyperlinkText,ha as getParagraphAtIndex,P as getParagraphText,ga as getParagraphs,Q as getRunText,O as getSelectionFormattingSummary,S as getTableText,Z as getTextAfter,Y as getTextBefore,D as halfPointsToPixels,ea as hasHyperlinks,da as hasImages,fa as hasTables,o as hasTemplateVariables,oa as isBlack,ba as isHeadingStyle,$ as isPositionInHyperlink,Ba as isPositionInRange,p as isValidVariableName,pa as isWhite,ya as isZodSchema,va as lightenColor,ra as parseColorString,F as parseDocx,ca as parseHeadingLevel,s as parseVariable,z as pixelsToEmu,x as pixelsToTwips,C as pointsToPixels,u as removeVariables,d as repackDocx,t as replaceVariables,la as resolveColor,ma as resolveHighlightColor,na as resolveShadingColor,q as sanitizeVariableName,b as serializeDocumentBody,c as serializeDocx,a as serializeSectionProperties,B as twipsToEmu,w as twipsToPixels,e as updateMultipleFiles,g as validatePatchSafety}from'./chunk-PNONETA3.mjs';export{j as createTemplateProcessor,g as getMissingVariables,e as getTemplateTags,h as previewTemplate,a as processTemplate,i as processTemplateAdvanced,c as processTemplateAsBlob,b as processTemplateDetailed,f as validateTemplate}from'./chunk-UILTIEBD.mjs';export{a as PluginRegistry,d as createPluginRegistrar,e as executeCommand,f as executeCommands,b as pluginRegistry,c as registerPlugins}from'./chunk-X57U3ESM.mjs';
@@ -1 +0,0 @@
1
- 'use strict';var chunkOVPN5UGH_js=require('./chunk-OVPN5UGH.js'),chunk4QRVKNI4_js=require('./chunk-4QRVKNI4.js'),chunk2AF2FRMM_js=require('./chunk-2AF2FRMM.js');Object.defineProperty(exports,"DEFAULT_AI_ACTIONS",{enumerable:true,get:function(){return chunkOVPN5UGH_js.Fa}});Object.defineProperty(exports,"DocumentAgent",{enumerable:true,get:function(){return chunkOVPN5UGH_js.G}});Object.defineProperty(exports,"VERSION",{enumerable:true,get:function(){return chunkOVPN5UGH_js.Ha}});Object.defineProperty(exports,"attemptSelectiveSave",{enumerable:true,get:function(){return chunkOVPN5UGH_js.i}});Object.defineProperty(exports,"blendColors",{enumerable:true,get:function(){return chunkOVPN5UGH_js.wa}});Object.defineProperty(exports,"buildExtendedSelectionContext",{enumerable:true,get:function(){return chunkOVPN5UGH_js.N}});Object.defineProperty(exports,"buildPatchedDocumentXml",{enumerable:true,get:function(){return chunkOVPN5UGH_js.h}});Object.defineProperty(exports,"buildSelectionContext",{enumerable:true,get:function(){return chunkOVPN5UGH_js.M}});Object.defineProperty(exports,"buildSelectionContextFromContext",{enumerable:true,get:function(){return chunkOVPN5UGH_js.K}});Object.defineProperty(exports,"colorsEqual",{enumerable:true,get:function(){return chunkOVPN5UGH_js.xa}});Object.defineProperty(exports,"comparePositions",{enumerable:true,get:function(){return chunkOVPN5UGH_js.Ca}});Object.defineProperty(exports,"countCharacters",{enumerable:true,get:function(){return chunkOVPN5UGH_js.V}});Object.defineProperty(exports,"countWords",{enumerable:true,get:function(){return chunkOVPN5UGH_js.U}});Object.defineProperty(exports,"createAgent",{enumerable:true,get:function(){return chunkOVPN5UGH_js.H}});Object.defineProperty(exports,"createAgentFromDocument",{enumerable:true,get:function(){return chunkOVPN5UGH_js.I}});Object.defineProperty(exports,"createCollapsedRange",{enumerable:true,get:function(){return chunkOVPN5UGH_js.za}});Object.defineProperty(exports,"createCommand",{enumerable:true,get:function(){return chunkOVPN5UGH_js.Ga}});Object.defineProperty(exports,"createDocumentWithText",{enumerable:true,get:function(){return chunkOVPN5UGH_js.ka}});Object.defineProperty(exports,"createDocx",{enumerable:true,get:function(){return chunkOVPN5UGH_js.f}});Object.defineProperty(exports,"createEmptyDocument",{enumerable:true,get:function(){return chunkOVPN5UGH_js.ja}});Object.defineProperty(exports,"createRange",{enumerable:true,get:function(){return chunkOVPN5UGH_js.Aa}});Object.defineProperty(exports,"createRgbColor",{enumerable:true,get:function(){return chunkOVPN5UGH_js.ta}});Object.defineProperty(exports,"createThemeColor",{enumerable:true,get:function(){return chunkOVPN5UGH_js.sa}});Object.defineProperty(exports,"darkenColor",{enumerable:true,get:function(){return chunkOVPN5UGH_js.ua}});Object.defineProperty(exports,"detectVariables",{enumerable:true,get:function(){return chunkOVPN5UGH_js.j}});Object.defineProperty(exports,"detectVariablesDetailed",{enumerable:true,get:function(){return chunkOVPN5UGH_js.k}});Object.defineProperty(exports,"detectVariablesInBody",{enumerable:true,get:function(){return chunkOVPN5UGH_js.l}});Object.defineProperty(exports,"detectVariablesInParagraph",{enumerable:true,get:function(){return chunkOVPN5UGH_js.m}});Object.defineProperty(exports,"documentHasVariables",{enumerable:true,get:function(){return chunkOVPN5UGH_js.v}});Object.defineProperty(exports,"emuToPixels",{enumerable:true,get:function(){return chunkOVPN5UGH_js.y}});Object.defineProperty(exports,"emuToTwips",{enumerable:true,get:function(){return chunkOVPN5UGH_js.A}});Object.defineProperty(exports,"extractVariablesFromText",{enumerable:true,get:function(){return chunkOVPN5UGH_js.n}});Object.defineProperty(exports,"formatPx",{enumerable:true,get:function(){return chunkOVPN5UGH_js.E}});Object.defineProperty(exports,"formatVariable",{enumerable:true,get:function(){return chunkOVPN5UGH_js.r}});Object.defineProperty(exports,"getActionDescription",{enumerable:true,get:function(){return chunkOVPN5UGH_js.Ea}});Object.defineProperty(exports,"getActionLabel",{enumerable:true,get:function(){return chunkOVPN5UGH_js.Da}});Object.defineProperty(exports,"getAgentContext",{enumerable:true,get:function(){return chunkOVPN5UGH_js.J}});Object.defineProperty(exports,"getBlockIndexForParagraph",{enumerable:true,get:function(){return chunkOVPN5UGH_js.ia}});Object.defineProperty(exports,"getBodyCharacterCount",{enumerable:true,get:function(){return chunkOVPN5UGH_js.X}});Object.defineProperty(exports,"getBodyText",{enumerable:true,get:function(){return chunkOVPN5UGH_js.T}});Object.defineProperty(exports,"getBodyWordCount",{enumerable:true,get:function(){return chunkOVPN5UGH_js.W}});Object.defineProperty(exports,"getContrastingColor",{enumerable:true,get:function(){return chunkOVPN5UGH_js.qa}});Object.defineProperty(exports,"getDocumentSummary",{enumerable:true,get:function(){return chunkOVPN5UGH_js.L}});Object.defineProperty(exports,"getFormattingAtPosition",{enumerable:true,get:function(){return chunkOVPN5UGH_js._}});Object.defineProperty(exports,"getHyperlinkAtPosition",{enumerable:true,get:function(){return chunkOVPN5UGH_js.aa}});Object.defineProperty(exports,"getHyperlinkText",{enumerable:true,get:function(){return chunkOVPN5UGH_js.R}});Object.defineProperty(exports,"getParagraphAtIndex",{enumerable:true,get:function(){return chunkOVPN5UGH_js.ha}});Object.defineProperty(exports,"getParagraphText",{enumerable:true,get:function(){return chunkOVPN5UGH_js.P}});Object.defineProperty(exports,"getParagraphs",{enumerable:true,get:function(){return chunkOVPN5UGH_js.ga}});Object.defineProperty(exports,"getRunText",{enumerable:true,get:function(){return chunkOVPN5UGH_js.Q}});Object.defineProperty(exports,"getSelectionFormattingSummary",{enumerable:true,get:function(){return chunkOVPN5UGH_js.O}});Object.defineProperty(exports,"getTableText",{enumerable:true,get:function(){return chunkOVPN5UGH_js.S}});Object.defineProperty(exports,"getTextAfter",{enumerable:true,get:function(){return chunkOVPN5UGH_js.Z}});Object.defineProperty(exports,"getTextBefore",{enumerable:true,get:function(){return chunkOVPN5UGH_js.Y}});Object.defineProperty(exports,"halfPointsToPixels",{enumerable:true,get:function(){return chunkOVPN5UGH_js.D}});Object.defineProperty(exports,"hasHyperlinks",{enumerable:true,get:function(){return chunkOVPN5UGH_js.ea}});Object.defineProperty(exports,"hasImages",{enumerable:true,get:function(){return chunkOVPN5UGH_js.da}});Object.defineProperty(exports,"hasTables",{enumerable:true,get:function(){return chunkOVPN5UGH_js.fa}});Object.defineProperty(exports,"hasTemplateVariables",{enumerable:true,get:function(){return chunkOVPN5UGH_js.o}});Object.defineProperty(exports,"isBlack",{enumerable:true,get:function(){return chunkOVPN5UGH_js.oa}});Object.defineProperty(exports,"isHeadingStyle",{enumerable:true,get:function(){return chunkOVPN5UGH_js.ba}});Object.defineProperty(exports,"isPositionInHyperlink",{enumerable:true,get:function(){return chunkOVPN5UGH_js.$}});Object.defineProperty(exports,"isPositionInRange",{enumerable:true,get:function(){return chunkOVPN5UGH_js.Ba}});Object.defineProperty(exports,"isValidVariableName",{enumerable:true,get:function(){return chunkOVPN5UGH_js.p}});Object.defineProperty(exports,"isWhite",{enumerable:true,get:function(){return chunkOVPN5UGH_js.pa}});Object.defineProperty(exports,"isZodSchema",{enumerable:true,get:function(){return chunkOVPN5UGH_js.ya}});Object.defineProperty(exports,"lightenColor",{enumerable:true,get:function(){return chunkOVPN5UGH_js.va}});Object.defineProperty(exports,"parseColorString",{enumerable:true,get:function(){return chunkOVPN5UGH_js.ra}});Object.defineProperty(exports,"parseDocx",{enumerable:true,get:function(){return chunkOVPN5UGH_js.F}});Object.defineProperty(exports,"parseHeadingLevel",{enumerable:true,get:function(){return chunkOVPN5UGH_js.ca}});Object.defineProperty(exports,"parseVariable",{enumerable:true,get:function(){return chunkOVPN5UGH_js.s}});Object.defineProperty(exports,"pixelsToEmu",{enumerable:true,get:function(){return chunkOVPN5UGH_js.z}});Object.defineProperty(exports,"pixelsToTwips",{enumerable:true,get:function(){return chunkOVPN5UGH_js.x}});Object.defineProperty(exports,"pointsToPixels",{enumerable:true,get:function(){return chunkOVPN5UGH_js.C}});Object.defineProperty(exports,"removeVariables",{enumerable:true,get:function(){return chunkOVPN5UGH_js.u}});Object.defineProperty(exports,"repackDocx",{enumerable:true,get:function(){return chunkOVPN5UGH_js.d}});Object.defineProperty(exports,"replaceVariables",{enumerable:true,get:function(){return chunkOVPN5UGH_js.t}});Object.defineProperty(exports,"resolveColor",{enumerable:true,get:function(){return chunkOVPN5UGH_js.la}});Object.defineProperty(exports,"resolveHighlightColor",{enumerable:true,get:function(){return chunkOVPN5UGH_js.ma}});Object.defineProperty(exports,"resolveShadingColor",{enumerable:true,get:function(){return chunkOVPN5UGH_js.na}});Object.defineProperty(exports,"sanitizeVariableName",{enumerable:true,get:function(){return chunkOVPN5UGH_js.q}});Object.defineProperty(exports,"serializeDocumentBody",{enumerable:true,get:function(){return chunkOVPN5UGH_js.b}});Object.defineProperty(exports,"serializeDocx",{enumerable:true,get:function(){return chunkOVPN5UGH_js.c}});Object.defineProperty(exports,"serializeSectionProperties",{enumerable:true,get:function(){return chunkOVPN5UGH_js.a}});Object.defineProperty(exports,"twipsToEmu",{enumerable:true,get:function(){return chunkOVPN5UGH_js.B}});Object.defineProperty(exports,"twipsToPixels",{enumerable:true,get:function(){return chunkOVPN5UGH_js.w}});Object.defineProperty(exports,"updateMultipleFiles",{enumerable:true,get:function(){return chunkOVPN5UGH_js.e}});Object.defineProperty(exports,"validatePatchSafety",{enumerable:true,get:function(){return chunkOVPN5UGH_js.g}});Object.defineProperty(exports,"createTemplateProcessor",{enumerable:true,get:function(){return chunk4QRVKNI4_js.j}});Object.defineProperty(exports,"getMissingVariables",{enumerable:true,get:function(){return chunk4QRVKNI4_js.g}});Object.defineProperty(exports,"getTemplateTags",{enumerable:true,get:function(){return chunk4QRVKNI4_js.e}});Object.defineProperty(exports,"previewTemplate",{enumerable:true,get:function(){return chunk4QRVKNI4_js.h}});Object.defineProperty(exports,"processTemplate",{enumerable:true,get:function(){return chunk4QRVKNI4_js.a}});Object.defineProperty(exports,"processTemplateAdvanced",{enumerable:true,get:function(){return chunk4QRVKNI4_js.i}});Object.defineProperty(exports,"processTemplateAsBlob",{enumerable:true,get:function(){return chunk4QRVKNI4_js.c}});Object.defineProperty(exports,"processTemplateDetailed",{enumerable:true,get:function(){return chunk4QRVKNI4_js.b}});Object.defineProperty(exports,"validateTemplate",{enumerable:true,get:function(){return chunk4QRVKNI4_js.f}});Object.defineProperty(exports,"PluginRegistry",{enumerable:true,get:function(){return chunk2AF2FRMM_js.a}});Object.defineProperty(exports,"createPluginRegistrar",{enumerable:true,get:function(){return chunk2AF2FRMM_js.d}});Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunk2AF2FRMM_js.e}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunk2AF2FRMM_js.f}});Object.defineProperty(exports,"pluginRegistry",{enumerable:true,get:function(){return chunk2AF2FRMM_js.b}});Object.defineProperty(exports,"registerPlugins",{enumerable:true,get:function(){return chunk2AF2FRMM_js.c}});