@eigenpal/docx-editor-agents 1.2.1 → 1.3.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.
- package/dist/bridge.d.mts +1 -1
- package/dist/bridge.d.ts +1 -1
- package/dist/bridge.js +1 -1
- package/dist/bridge.mjs +1 -1
- package/dist/chunk-2OIX7TUX.mjs +75 -0
- package/dist/chunk-4W7OEW2I.js +75 -0
- package/dist/{chunk-E6DDF6BY.js → chunk-7PTBNHAH.js} +2 -2
- package/dist/chunk-LX3NJWKV.js +1 -0
- package/dist/chunk-NFAEIOLC.mjs +1 -0
- package/dist/chunk-P4DRISTP.mjs +5 -0
- package/dist/chunk-XUAUDUJU.js +5 -0
- package/dist/{chunk-ON5FX5NO.mjs → chunk-YQIAKHOL.mjs} +2 -2
- package/dist/headless-ES4B5CTK.js +1 -0
- package/dist/headless-OEZEYHNL.mjs +1 -0
- package/dist/index.d.mts +14 -3
- package/dist/index.d.ts +14 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/mcp.d.mts +1 -1
- package/dist/mcp.d.ts +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.js +1 -1
- package/dist/react.mjs +1 -1
- package/dist/{server-uM9UUIhk.d.mts → server-BaVhdHCd.d.mts} +192 -11
- package/dist/{server-uM9UUIhk.d.ts → server-BaVhdHCd.d.ts} +192 -11
- package/dist/server.d.mts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +1 -1
- package/dist/server.mjs +1 -1
- package/dist/vue.js +6 -6
- package/dist/vue.mjs +72 -56
- package/package.json +1 -1
- package/dist/chunk-B3LQVYMR.js +0 -74
- package/dist/chunk-L7LXQOTH.mjs +0 -74
- package/dist/chunk-OCMVGKIA.mjs +0 -5
- package/dist/chunk-QU2WUEX3.mjs +0 -1
- package/dist/chunk-UXHK7C33.js +0 -1
- package/dist/chunk-ZDQ7OJ6K.js +0 -5
- package/dist/headless-6C4JSKYY.mjs +0 -1
- package/dist/headless-VGNLVFAJ.js +0 -1
package/dist/chunk-OCMVGKIA.mjs
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import {U as U$1,V,H as H$1,I,ta}from'./chunk-L7LXQOTH.mjs';import {m}from'./chunk-XDZHYYU6.mjs';function h(r){return r.type==="insertion"||r.type==="deletion"||r.type==="moveFrom"||r.type==="moveTo"}function x(r){let t=[];for(let o of r)o.type==="run"?t.push(H$1(o)):o.type==="hyperlink"&&t.push(I(o));return t.join("")}function v(r,t){let o=0;for(let n of r.content)if(n.type==="paragraph"){if(o===t)return n;o++;}else if(n.type==="table"){for(let i of n.rows)for(let e of i.cells)for(let a of e.content)if(a.type==="paragraph"){if(o===t)return a;o++;}}else o++;throw new Error(`Paragraph index ${t} out of bounds (max: ${o-1})`)}function F(r,t){let o=0;for(let n of r.content)if(n.type==="paragraph"){if(t(n,o)===false)return;o++;}else if(n.type==="table"){for(let i of n.rows)for(let e of i.cells)for(let a of e.content)if(a.type==="paragraph"){if(t(a,o)===false)return;o++;}}else o++;}function he(r,t={}){let{fromIndex:o,toIndex:n,includeTrackedChanges:i=true,includeCommentAnchors:e=true}=t,a=[],s=0;for(let u of r.content)if(u.type==="paragraph")A(s,o,n)&&a.push(Z(u,s,i,e)),s++;else if(u.type==="table"){A(s,o,n)&&a.push(_(u,s,i,e));for(let l of u.rows)for(let c of l.cells)for(let f of c.content)f.type==="paragraph"&&s++;}else s++;return a}function A(r,t,o){return (t===void 0||r>=t)&&(o===void 0||r<=o)}function Z(r,t,o,n){let i=L(r,o,n),e=r.formatting?.styleId,a=r.paraId;return U$1(e)?{type:"heading",index:t,paraId:a,level:V(e)??1,text:i}:r.listRendering?{type:"list-item",index:t,paraId:a,text:i,listLevel:r.listRendering.level??0,listType:r.listRendering.isBullet?"bullet":"number"}:{type:"paragraph",index:t,paraId:a,text:i}}function _(r,t,o,n){let i=[],e=[];for(let a of r.rows){let s=[],u=[];for(let l of a.cells){let c=[],f;for(let g of l.content)g.type==="paragraph"&&(f===void 0&&(f=g.paraId),c.push(L(g,o,n)));s.push(c.join(`
|
|
2
|
-
`)),u.push(f);}i.push(s),e.push(u);}return {type:"table",index:t,rows:i,cellParaIds:e}}function ge(r){let t=[],o=n=>n.paraId?n.paraId:String(n.index);for(let n of r)switch(n.type){case "heading":t.push(`[${o(n)}] (h${n.level}) ${n.text}`);break;case "paragraph":t.push(`[${o(n)}] ${n.text}`);break;case "list-item":{let i=" ".repeat(n.listLevel),e=n.listType==="bullet"?"\u2022":"-";t.push(`[${o(n)}] ${i}${e} ${n.text}`);break}case "table":{let i=n.index;for(let e=0;e<n.rows.length;e++)for(let a=0;a<n.rows[e].length;a++){let u=n.rows[e][a].split(`
|
|
3
|
-
`),l=n.cellParaIds?.[e]?.[a];for(let c=0;c<u.length;c++){let f=c===0&&l?l:String(i);t.push(`[${f}] (table, row ${e+1}, col ${a+1}) ${u[c]}`),i++;}}break}}return t.join(`
|
|
4
|
-
`)}function L(r,t,o){let n=[],i=new Set;for(let e of r.content){if(e.type==="commentRangeStart"&&o){i.add(e.id),n.push(`[comment:${e.id}]`);continue}if(e.type==="commentRangeEnd"&&o){i.has(e.id)&&(i.delete(e.id),n.push("[/comment]"));continue}if(e.type==="run")n.push(H$1(e));else if(e.type==="hyperlink")n.push(I(e));else if(h(e)){let a=x(e.content);e.type==="insertion"||e.type==="moveTo"?t&&n.push(`[+${a}+]{by:${e.info.author}}`):t?n.push(`[-${a}-]{by:${e.info.author}}`):n.push(a);}}return n.join("")}var y=class extends Error{constructor(t,o){let n=o!==void 0?` in paragraph ${o}`:" in document";super(`Text not found${n}: "${t}"`),this.name="TextNotFoundError";}},j=class extends Error{constructor(t){super(`Tracked change not found: id=${t}`),this.name="ChangeNotFoundError";}},T=class extends Error{constructor(t){super(`Comment not found: id=${t}`),this.name="CommentNotFoundError";}};function G(r){let t=[],o=0;for(let n=0;n<r.content.length;n++){let i=r.content[n];if(i.type==="run"){let e=H$1(i);t.push({contentIndex:n,run:i,text:e,startPos:o}),o+=e.length;}else if(i.type==="hyperlink")for(let e=0;e<i.children.length;e++){let a=i.children[e];if(a.type==="run"){let s=H$1(a);t.push({contentIndex:n,run:a,text:s,startPos:o}),o+=s.length;}}else if(h(i)){if(i.type==="insertion"||i.type==="moveTo")continue;for(let e=0;e<i.content.length;e++){let a=i.content[e];if(a.type==="run"){let s=H$1(a);t.push({contentIndex:n,run:a,text:s,startPos:o}),o+=s.length;}else if(a.type==="hyperlink"){for(let s of a.children)if(s.type==="run"){let u=H$1(s);t.push({contentIndex:n,run:s,text:u,startPos:o}),o+=u.length;}}}}}return t}function k(r){return G(r).map(t=>t.text).join("")}function q(r,t,o){let n=G(r),i=n.map(c=>c.text).join(""),e=ee(i,t);if(!e)throw new y(t,o);let a=-1,s=0;for(let c=0;c<n.length;c++)if(e.start<n[c].startPos+n[c].text.length){a=c,s=e.start-n[c].startPos;break}let u=-1,l=0;for(let c=n.length-1;c>=0;c--)if(e.end>n[c].startPos){u=c,l=e.end-n[c].startPos;break}if(a===-1||u===-1)throw new y(t,o);return {startRunIndex:n[a].contentIndex,startOffset:s,endRunIndex:n[u].contentIndex,endOffset:l}}function Ce(r,t,o){let n=q(r,t,o),{startRunIndex:i,endRunIndex:e}=n,{startOffset:a,endOffset:s}=n,u=r.content[e];if(u.type==="run"){let c=H$1(u);if(s<c.length){let f=H(c.slice(s),u);N(u,c.slice(0,s)),r.content.splice(e+1,0,f);}}let l=r.content[i];if(l.type==="run"&&a>0){let c=H$1(l),f=H(c.slice(0,a),l);N(l,c.slice(a)),r.content.splice(i,0,f),i++,e++;}return {startIndex:i,endIndex:e}}function H(r,t){return {type:"run",content:[{type:"text",text:r}],formatting:t.formatting?{...t.formatting}:void 0}}function N(r,t){let o=r.content.find(n=>n.type==="text");o&&(o.text=t);}function z(r){let t=[],o=[],n=true;for(let i=0;i<r.length;i++){let e=r[i];if(!"\u200B\u200C\u200D\uFEFF\xAD".includes(e)){if("\u201C\u201D\u201E\u201F".includes(e)&&(e='"'),"\u2018\u2019\u201A\u201B".includes(e)&&(e="'"),"\u2013\u2014\u2012\u2015".includes(e)&&(e="-"),e==="\u2026"){t.push(".",".","."),o.push(i,i,i),n=false;continue}if(/\s/.test(e)||e==="\xA0"){n||(t.push(" "),o.push(i),n=true);continue}t.push(e.toLowerCase()),o.push(i),n=false;}}return t.length>0&&t[t.length-1]===" "&&(t.pop(),o.pop()),{text:t.join(""),posMap:o}}function W(r,t,o,n){let i=r.posMap[t],e=r.posMap[t+o-1]+1;for(;e<n.length&&"\u200B\u200C\u200D\uFEFF\xAD".includes(n[e]);)e++;return {start:i,end:e}}function ee(r,t){if(!t||!r)return null;let o=r.indexOf(t);if(o!==-1)return {start:o,end:o+t.length};let n=z(r),i=z(t);if(!i.text)return null;let e=n.text.indexOf(i.text);if(e!==-1)return W(n,e,i.text.length,r);let a=i.text.split(" ");if(a.length>=3)for(let s=1;s<=Math.min(2,a.length-2);s++){let u=a.slice(0,-s).join(" "),l=n.text.indexOf(u);if(l!==-1)return W(n,l,u.length,r)}return null}function Pe(r,t){let o=new Map;return F(r,(i,e)=>{let a=null;for(let s of i.content)if(h(s)){a===null&&(a=k(i));let u=x(s.content),l=s.info.id,c=o.get(l);c&&c.paragraphIndex===e?c.text+=u:o.set(l,{id:l,type:s.type,author:s.info.author,date:s.info.date??null,text:u,context:a,paragraphIndex:e});}}),Array.from(o.values()).filter(i=>!(t?.author&&i.author!==t.author||t?.type&&i.type!==t.type))}function ve(r,t){let o=r.comments??[];if(o.length===0)return [];let n=te(r),i=[],e=new Map;for(let s of o)if(s.parentId!==void 0){let u=e.get(s.parentId)??[];u.push(s),e.set(s.parentId,u);}else i.push(s);return i.map(s=>{let u=n.get(s.id),l=(e.get(s.id)??[]).map(c=>({id:c.id,author:c.author,date:c.date??null,text:U(c)}));return {id:s.id,author:s.author,date:s.date??null,text:U(s),anchoredText:u?.text??"",paragraphIndex:u?.paragraphIndex??-1,replies:l,done:s.done??false}}).filter(s=>!(t?.author&&s.author!==t.author||t?.done!==void 0&&s.done!==t.done))}function U(r){return r.content.map(t=>k(t)).join(`
|
|
5
|
-
`)}function te(r){let t=new Map,o=new Map;return F(r,(n,i)=>{for(let e of n.content)if(e.type==="commentRangeStart")o.set(e.id,{paragraphIndex:i,parts:[]});else if(e.type==="commentRangeEnd"){let a=o.get(e.id);a&&(t.set(e.id,{text:a.parts.join(""),paragraphIndex:a.paragraphIndex}),o.delete(e.id));}else if(e.type==="run"){let a=H$1(e);for(let s of o.values())s.parts.push(a);}else if(e.type==="hyperlink"){let a=e.children.filter(s=>s.type==="run").map(H$1).join("");for(let s of o.values())s.parts.push(a);}else if(h(e)){if(e.type==="insertion"||e.type==="moveTo")continue;let a=x(e.content);for(let s of o.values())s.parts.push(a);}}),t}function ne(r){let t=r.toDocument().package?.document;if(!t)return new Map;let o=new Map,n=0;for(let i of t.content)if(i.type==="paragraph"){let e=i.paraId;o.set(e??String(n),n),n++;}else if(i.type==="table")for(let e of i.rows)for(let a of e.cells)for(let s of a.content)s.type==="paragraph"&&n++;else n++;return o}function oe(r){let t=[],o=n=>{for(let i of n.content)i.type==="text"&&t.push(i.text??"");};for(let n of r.content)if(n.type==="run")o(n);else if(n.type==="hyperlink")for(let i of n.children)i.type==="run"&&o(i);else if(n.type==="deletion"||n.type==="moveFrom"){for(let i of n.content)if(i.type==="run")o(i);else if(i.type==="hyperlink")for(let e of i.children)e.type==="run"&&o(e);}return t.join("")}function w(r,t){let n={type:"run",content:[{type:"text",text:t,preserveSpace:/^\s|\s$/.test(t)}]};return r.formatting&&(n.formatting={...r.formatting}),r.propertyChanges&&(n.propertyChanges=[...r.propertyChanges]),n}function re(r){return r.content.map(t=>t.type==="text"?t.text:"").join("")}function M(r,t,o,n,i){let e=re(r);if(!e)return;let a=i.value,s=a+e.length;n.push({run:r,parent:t,index:o,text:e,start:a,end:s}),i.value=s;}function X(r,t,o){r.children.forEach((n,i)=>{n.type==="run"&&M(n,r.children,i,t,o);});}function S(r,t){let o=[],n={value:0};return r.content.forEach((i,e)=>{i.type==="run"?M(i,r.content,e,o,n):i.type==="hyperlink"?X(i,o,n):(i.type==="deletion"||i.type==="moveFrom"||t&&(i.type==="insertion"||i.type==="moveTo"))&&i.content.forEach((a,s)=>{a.type==="run"?M(a,i.content,s,o,n):a.type==="hyperlink"&&X(a,o,n);});}),o}function ie(r,t){let o={...r??{}};t.bold!==void 0&&(o.bold=t.bold||void 0),t.italic!==void 0&&(o.italic=t.italic||void 0),t.underline!==void 0&&(t.underline?o.underline={style:typeof t.underline=="object"&&t.underline.style?t.underline.style:"single"}:delete o.underline),t.strike!==void 0&&(o.strike=t.strike||void 0),t.color!==void 0&&(t.color&&(t.color.rgb||t.color.themeColor)?o.color={rgb:t.color.rgb,themeColor:t.color.themeColor}:delete o.color),t.highlight!==void 0&&(t.highlight?o.highlight=ta(t.highlight)||t.highlight:delete o.highlight),t.fontSize!==void 0&&(t.fontSize>0?o.fontSize=m(t.fontSize):delete o.fontSize),t.fontFamily!==void 0&&(t.fontFamily&&(t.fontFamily.ascii||t.fontFamily.hAnsi)?o.fontFamily={ascii:t.fontFamily.ascii,hAnsi:t.fontFamily.hAnsi??t.fontFamily.ascii}:delete o.fontFamily);for(let n of Object.keys(o))o[n]===void 0&&delete o[n];return Object.keys(o).length>0?o:void 0}function B(r,t){r.formatting=ie(r.formatting,t);}function ae(r,t,o,n){let i=r.run.content.every(s=>s.type==="text");if(t<=0&&o>=r.text.length||!i){B(r.run,n);return}let e=[];t>0&&e.push(w(r.run,r.text.slice(0,t)));let a=w(r.run,r.text.slice(t,o));B(a,n),e.push(a),o<r.text.length&&e.push(w(r.run,r.text.slice(o))),r.parent.splice(r.index,1,...e);}function se(r,t,o,n){let e=S(r,false).filter(a=>a.start<o&&a.end>t);if(e.length===0)return true;for(let a=e.length-1;a>=0;a--){let s=e[a];ae(s,Math.max(0,t-s.start),Math.min(s.text.length,o-s.start),n);}return true}function ue(r,t){let o=S(r,true);for(let n of o)B(n.run,t);return true}function ce(r,t){if(!t)return null;let n=S(r,false).map(e=>e.text).join(""),i=n.indexOf(t);return i===-1||n.indexOf(t,i+1)!==-1?null:{from:i,to:i+t.length}}function le(r,t){return r?!!r.styles?.some(o=>o.styleId===t&&o.type==="paragraph"):true}function Be(r){let t=new Set,o=null;function n(){return o===null&&(o=ne(r)),o}function i(){if(t.size===0)return;let e=r.getComments(),a=r.getChanges(),s={commentCount:e.length,changeCount:a.length,comments:e,changes:a};for(let u of t)try{u(s);}catch(l){console.error("reviewerBridge content listener threw:",l);}}return {getContentAsText(e){return r.getContentAsText(e)},getContent(e){return r.getContent(e)},getComments(e){return r.getComments(e)},getChanges(e){return r.getChanges(e)},findText(e,a){if(!e)return [];let s=a?.caseSensitive??false,u=a?.limit??20,l=s?e:e.toLowerCase(),c=r.toDocument().package?.document;if(!c)return [];let f=[],g=40,R=0;for(let b of c.content){if(f.length>=u)break;if(b.type==="table"){for(let Q of b.rows)for(let V of Q.cells)for(let Y of V.content)Y.type==="paragraph"&&R++;continue}if(b.type!=="paragraph"){R++;continue}let D=b,J=R++,m=oe(D),$=s?m:m.toLowerCase(),d=$.indexOf(l);if(d===-1||$.indexOf(l,d+1)!==-1)continue;let K=m.slice(d,d+e.length);f.push({paraId:D.paraId??String(J),match:K,before:m.slice(Math.max(0,d-g),d),after:m.slice(d+e.length,d+e.length+g)});}return f},getSelection(){return null},addComment(e){let a=n().get(e.paraId);if(a===void 0)return null;try{let s=r.addComment({paragraphIndex:a,text:e.text,author:e.author,search:e.search});return i(),s}catch{return null}},replyTo(e,a){try{let s=r.replyTo(e,a);return i(),s}catch{return null}},resolveComment(e){let s=r.toDocument().package?.document?.comments?.find(u=>u.id===e);if(!s)throw new T(e);s.done=true,i();},proposeChange(e){let a=n().get(e.paraId);if(a===void 0)return false;let s=e.search==="",u=e.replaceWith==="";if(s&&u)return false;try{return s?r.proposeInsertion({paragraphIndex:a,insertText:e.replaceWith,author:e.author}):u?r.proposeDeletion({paragraphIndex:a,search:e.search,author:e.author}):r.replace({paragraphIndex:a,search:e.search,replaceWith:e.replaceWith,author:e.author}),i(),true}catch{return false}},scrollTo(e){return n().has(e)},applyFormatting(e){let a=n().get(e.paraId);if(a===void 0)return false;let s=r.toDocument().package?.document;if(!s)return false;try{let u=s?v(s,a):null;if(!u)return false;if(e.search){let l=ce(u,e.search);if(!l)return false;se(u,l.from,l.to,e.marks);}else ue(u,e.marks);return i(),true}catch{return false}},setParagraphStyle(e){let a=n().get(e.paraId);if(a===void 0)return false;let s=r.toDocument(),u=s.package?.document;if(!u||!le(s.package?.styles,e.styleId))return false;try{let l=v(u,a);return l.formatting={...l.formatting??{},styleId:e.styleId},i(),true}catch{return false}},getPage(){return null},getPages(){return []},getTotalPages(){return 0},getCurrentPage(){return 0},onContentChange(e){return t.add(e),()=>{t.delete(e);}},onSelectionChange(){return ()=>{}}}}export{h as a,v as b,F as c,he as d,ge as e,y as f,j as g,T as h,q as i,Ce as j,Pe as k,ve as l,Be as m};
|
package/dist/chunk-QU2WUEX3.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {d,e,k as k$1,l,b,i,h,c,j,g as g$1,a}from'./chunk-OCMVGKIA.mjs';import {w as w$1}from'./chunk-L7LXQOTH.mjs';function g(o,e){let{paragraphIndex:t,author:n="AI",text:s,search:a}=e,r=b(o,t),i$1=(o.comments??[]).map(m=>m.id),p=i$1.length>0?Math.max(...i$1)+1:1,c={id:p,author:n,date:new Date().toISOString(),content:[{type:"paragraph",content:[{type:"run",content:[{type:"text",text:s}]}],formatting:{}}]};if(o.comments||(o.comments=[]),o.comments.push(c),a){let m=i(r,a,t);r.content.splice(m.endRunIndex+1,0,{type:"commentRangeEnd",id:p}),r.content.splice(m.startRunIndex,0,{type:"commentRangeStart",id:p});}else r.content.unshift({type:"commentRangeStart",id:p}),r.content.push({type:"commentRangeEnd",id:p});return p}function y(o,e,t){let n=o.comments??[];if(!n.find(p=>p.id===e))throw new h(e);let a=n.map(p=>p.id),r=Math.max(...a)+1,i={id:r,author:t.author??"AI",date:new Date().toISOString(),parentId:e,content:[{type:"paragraph",content:[{type:"run",content:[{type:"text",text:t.text}]}],formatting:{}}]};return n.push(i),r}function E(o,e){let t=o.comments??[],n=t.find(r=>r.id===e);if(!n)throw new h(e);let s=n.parentId!==void 0,a=new Set([e]);if(!s)for(let r of t)r.parentId===e&&a.add(r.id);o.comments=t.filter(r=>!a.has(r.id)),!s&&c(o,r=>{for(let i=r.content.length-1;i>=0;i--){let p=r.content[i];(p.type==="commentRangeStart"||p.type==="commentRangeEnd")&&p.id===e&&r.content.splice(i,1);}});}function C(o,e){if(!W(o,e,"accept"))throw new g$1(e)}function I(o,e){if(!W(o,e,"reject"))throw new g$1(e)}function k(o){return M(o,"accept")}function F(o){return M(o,"reject")}function M(o,e){let t=0;return c(o,n=>{for(let s=n.content.length-1;s>=0;s--){let a$1=n.content[s];a(a$1)&&(G(n,s,a$1,e),t++);}}),t}function W(o,e,t){let n=false;return c(o,s=>{for(let a$1=s.content.length-1;a$1>=0;a$1--){let r=s.content[a$1];a(r)&&r.info.id===e&&(G(s,a$1,r,t),n=true);}if(n)return false}),n}function G(o,e,t,n){if(t.type==="insertion"&&n==="accept"||t.type==="deletion"&&n==="reject"||t.type==="moveTo"&&n==="accept"||t.type==="moveFrom"&&n==="reject"){let a=t.content;o.content.splice(e,1,...a);}else o.content.splice(e,1);}function x(o,e){let{paragraphIndex:t,search:n,author:s="AI",replaceWith:a}=e,r=b(o,t),{startIndex:i,endIndex:p}=j(r,n,t),c=new Date().toISOString(),m=w(o),h=r.content.slice(i,p+1),R={type:"deletion",info:{id:m,author:s,date:c},content:h},v={type:"insertion",info:{id:m+1,author:s,date:c},content:[{type:"run",content:[{type:"text",text:a}]}]};r.content.splice(i,p-i+1,R,v);}function H(o,e){let{paragraphIndex:t,author:n="AI",insertText:s,position:a="after",search:r}=e,i=b(o,t),p=new Date().toISOString(),m={type:"insertion",info:{id:w(o),author:n,date:p},content:[{type:"run",content:[{type:"text",text:s}]}]};if(r){let{startIndex:h,endIndex:R}=j(i,r,t),v=a==="after"?R+1:h;i.content.splice(v,0,m);}else a==="before"?i.content.unshift(m):i.content.push(m);}function L(o,e){let{paragraphIndex:t,search:n,author:s="AI"}=e,a=b(o,t),{startIndex:r,endIndex:i}=j(a,n,t),p=new Date().toISOString(),c=w(o),m=a.content.slice(r,i+1),h={type:"deletion",info:{id:c,author:s,date:p},content:m};a.content.splice(r,i-r+1,h);}var S=new WeakMap;function w(o){let e=S.get(o);e===void 0&&(e=0,c(o,n=>{for(let s of n.content)a(s)&&(e=Math.max(e,s.info.id));}));let t=e+1;return S.set(o,t+1),t}function N(o,e,t="AI"){let n=[],s=0,a=0,r=0,i=0,p=0;for(let c of e.accept??[])try{C(o,c),s++;}catch(m){n.push({operation:"accept",id:c,error:m.message});}for(let c of e.reject??[])try{I(o,c),a++;}catch(m){n.push({operation:"reject",id:c,error:m.message});}for(let c of e.comments??[])try{g(o,{...c,author:c.author??t}),r++;}catch(m){n.push({operation:"comment",search:c.search,error:m.message});}for(let c of e.replies??[])try{y(o,c.commentId,{author:c.author??t,text:c.text}),i++;}catch(m){n.push({operation:"reply",id:c.commentId,error:m.message});}for(let c of e.proposals??[])try{x(o,{...c,author:c.author??t}),p++;}catch(m){n.push({operation:"proposal",search:c.search,error:m.message});}return {accepted:s,rejected:a,commentsAdded:r,repliesAdded:i,proposalsAdded:p,errors:n}}var U=class o{constructor(e,t="AI",n){let s=n??e.originalBuffer,{originalBuffer:a,...r}=e;this.doc=structuredClone(r),s&&(this.doc.originalBuffer=s),this.author=t;}static async fromBuffer(e,t="AI"){let n=await w$1(e,{preloadFonts:false});return new o(n,t,e)}get body(){return this.doc.package.document}resolveAuthor(e){return e??this.author}getContent(e){return d(this.body,e)}getContentAsText(e$1){return e(d(this.body,e$1))}getChanges(e){return k$1(this.body,e)}getComments(e){return l(this.body,e)}addComment(e,t){let n=typeof e=="number"?{paragraphIndex:e,text:t,author:this.author}:{...e,author:this.resolveAuthor(e.author)};return g(this.body,n)}replyTo(e,t){let n=typeof t=="string"?{text:t,author:this.author}:{...t,author:this.resolveAuthor(t.author)};return y(this.body,e,n)}removeComment(e){E(this.body,e);}replace(e,t,n){let s=typeof e=="number"?{paragraphIndex:e,search:t,replaceWith:n,author:this.author}:{...e,author:this.resolveAuthor(e.author)};x(this.body,s);}proposeReplacement(e){this.replace(e);}proposeInsertion(e){H(this.body,{...e,author:this.resolveAuthor(e.author)});}proposeDeletion(e){L(this.body,{...e,author:this.resolveAuthor(e.author)});}acceptChange(e){C(this.body,e);}rejectChange(e){I(this.body,e);}acceptAll(){return k(this.body)}rejectAll(){return F(this.body)}applyReview(e){return N(this.body,e,this.author)}toDocument(){return this.doc}async toBuffer(){if(!this.doc.originalBuffer)throw new Error("Cannot create buffer: no original DOCX buffer was provided. Use DocxReviewer.fromBuffer() or pass originalBuffer to the constructor.");let{repackDocx:e}=await import('./headless-6C4JSKYY.mjs');return e(this.doc)}};export{U as a};
|
package/dist/chunk-UXHK7C33.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkZDQ7OJ6K_js=require('./chunk-ZDQ7OJ6K.js'),chunkB3LQVYMR_js=require('./chunk-B3LQVYMR.js');function g(o,e){let{paragraphIndex:t,author:n="AI",text:s,search:a}=e,r=chunkZDQ7OJ6K_js.b(o,t),i=(o.comments??[]).map(m=>m.id),p=i.length>0?Math.max(...i)+1:1,c={id:p,author:n,date:new Date().toISOString(),content:[{type:"paragraph",content:[{type:"run",content:[{type:"text",text:s}]}],formatting:{}}]};if(o.comments||(o.comments=[]),o.comments.push(c),a){let m=chunkZDQ7OJ6K_js.i(r,a,t);r.content.splice(m.endRunIndex+1,0,{type:"commentRangeEnd",id:p}),r.content.splice(m.startRunIndex,0,{type:"commentRangeStart",id:p});}else r.content.unshift({type:"commentRangeStart",id:p}),r.content.push({type:"commentRangeEnd",id:p});return p}function y(o,e,t){let n=o.comments??[];if(!n.find(p=>p.id===e))throw new chunkZDQ7OJ6K_js.h(e);let a=n.map(p=>p.id),r=Math.max(...a)+1,i={id:r,author:t.author??"AI",date:new Date().toISOString(),parentId:e,content:[{type:"paragraph",content:[{type:"run",content:[{type:"text",text:t.text}]}],formatting:{}}]};return n.push(i),r}function E(o,e){let t=o.comments??[],n=t.find(r=>r.id===e);if(!n)throw new chunkZDQ7OJ6K_js.h(e);let s=n.parentId!==void 0,a=new Set([e]);if(!s)for(let r of t)r.parentId===e&&a.add(r.id);o.comments=t.filter(r=>!a.has(r.id)),!s&&chunkZDQ7OJ6K_js.c(o,r=>{for(let i=r.content.length-1;i>=0;i--){let p=r.content[i];(p.type==="commentRangeStart"||p.type==="commentRangeEnd")&&p.id===e&&r.content.splice(i,1);}});}function C(o,e){if(!W(o,e,"accept"))throw new chunkZDQ7OJ6K_js.g(e)}function I(o,e){if(!W(o,e,"reject"))throw new chunkZDQ7OJ6K_js.g(e)}function k(o){return M(o,"accept")}function F(o){return M(o,"reject")}function M(o,e){let t=0;return chunkZDQ7OJ6K_js.c(o,n=>{for(let s=n.content.length-1;s>=0;s--){let a=n.content[s];chunkZDQ7OJ6K_js.a(a)&&(G(n,s,a,e),t++);}}),t}function W(o,e,t){let n=false;return chunkZDQ7OJ6K_js.c(o,s=>{for(let a=s.content.length-1;a>=0;a--){let r=s.content[a];chunkZDQ7OJ6K_js.a(r)&&r.info.id===e&&(G(s,a,r,t),n=true);}if(n)return false}),n}function G(o,e,t,n){if(t.type==="insertion"&&n==="accept"||t.type==="deletion"&&n==="reject"||t.type==="moveTo"&&n==="accept"||t.type==="moveFrom"&&n==="reject"){let a=t.content;o.content.splice(e,1,...a);}else o.content.splice(e,1);}function x(o,e){let{paragraphIndex:t,search:n,author:s="AI",replaceWith:a}=e,r=chunkZDQ7OJ6K_js.b(o,t),{startIndex:i,endIndex:p}=chunkZDQ7OJ6K_js.j(r,n,t),c=new Date().toISOString(),m=w(o),h=r.content.slice(i,p+1),R={type:"deletion",info:{id:m,author:s,date:c},content:h},v={type:"insertion",info:{id:m+1,author:s,date:c},content:[{type:"run",content:[{type:"text",text:a}]}]};r.content.splice(i,p-i+1,R,v);}function H(o,e){let{paragraphIndex:t,author:n="AI",insertText:s,position:a="after",search:r}=e,i=chunkZDQ7OJ6K_js.b(o,t),p=new Date().toISOString(),m={type:"insertion",info:{id:w(o),author:n,date:p},content:[{type:"run",content:[{type:"text",text:s}]}]};if(r){let{startIndex:h,endIndex:R}=chunkZDQ7OJ6K_js.j(i,r,t),v=a==="after"?R+1:h;i.content.splice(v,0,m);}else a==="before"?i.content.unshift(m):i.content.push(m);}function L(o,e){let{paragraphIndex:t,search:n,author:s="AI"}=e,a=chunkZDQ7OJ6K_js.b(o,t),{startIndex:r,endIndex:i}=chunkZDQ7OJ6K_js.j(a,n,t),p=new Date().toISOString(),c=w(o),m=a.content.slice(r,i+1),h={type:"deletion",info:{id:c,author:s,date:p},content:m};a.content.splice(r,i-r+1,h);}var S=new WeakMap;function w(o){let e=S.get(o);e===void 0&&(e=0,chunkZDQ7OJ6K_js.c(o,n=>{for(let s of n.content)chunkZDQ7OJ6K_js.a(s)&&(e=Math.max(e,s.info.id));}));let t=e+1;return S.set(o,t+1),t}function N(o,e,t="AI"){let n=[],s=0,a=0,r=0,i=0,p=0;for(let c of e.accept??[])try{C(o,c),s++;}catch(m){n.push({operation:"accept",id:c,error:m.message});}for(let c of e.reject??[])try{I(o,c),a++;}catch(m){n.push({operation:"reject",id:c,error:m.message});}for(let c of e.comments??[])try{g(o,{...c,author:c.author??t}),r++;}catch(m){n.push({operation:"comment",search:c.search,error:m.message});}for(let c of e.replies??[])try{y(o,c.commentId,{author:c.author??t,text:c.text}),i++;}catch(m){n.push({operation:"reply",id:c.commentId,error:m.message});}for(let c of e.proposals??[])try{x(o,{...c,author:c.author??t}),p++;}catch(m){n.push({operation:"proposal",search:c.search,error:m.message});}return {accepted:s,rejected:a,commentsAdded:r,repliesAdded:i,proposalsAdded:p,errors:n}}var U=class o{constructor(e,t="AI",n){let s=n??e.originalBuffer,{originalBuffer:a,...r}=e;this.doc=structuredClone(r),s&&(this.doc.originalBuffer=s),this.author=t;}static async fromBuffer(e,t="AI"){let n=await chunkB3LQVYMR_js.w(e,{preloadFonts:false});return new o(n,t,e)}get body(){return this.doc.package.document}resolveAuthor(e){return e??this.author}getContent(e){return chunkZDQ7OJ6K_js.d(this.body,e)}getContentAsText(e){return chunkZDQ7OJ6K_js.e(chunkZDQ7OJ6K_js.d(this.body,e))}getChanges(e){return chunkZDQ7OJ6K_js.k(this.body,e)}getComments(e){return chunkZDQ7OJ6K_js.l(this.body,e)}addComment(e,t){let n=typeof e=="number"?{paragraphIndex:e,text:t,author:this.author}:{...e,author:this.resolveAuthor(e.author)};return g(this.body,n)}replyTo(e,t){let n=typeof t=="string"?{text:t,author:this.author}:{...t,author:this.resolveAuthor(t.author)};return y(this.body,e,n)}removeComment(e){E(this.body,e);}replace(e,t,n){let s=typeof e=="number"?{paragraphIndex:e,search:t,replaceWith:n,author:this.author}:{...e,author:this.resolveAuthor(e.author)};x(this.body,s);}proposeReplacement(e){this.replace(e);}proposeInsertion(e){H(this.body,{...e,author:this.resolveAuthor(e.author)});}proposeDeletion(e){L(this.body,{...e,author:this.resolveAuthor(e.author)});}acceptChange(e){C(this.body,e);}rejectChange(e){I(this.body,e);}acceptAll(){return k(this.body)}rejectAll(){return F(this.body)}applyReview(e){return N(this.body,e,this.author)}toDocument(){return this.doc}async toBuffer(){if(!this.doc.originalBuffer)throw new Error("Cannot create buffer: no original DOCX buffer was provided. Use DocxReviewer.fromBuffer() or pass originalBuffer to the constructor.");let{repackDocx:e}=await import('./headless-VGNLVFAJ.js');return e(this.doc)}};exports.a=U;
|
package/dist/chunk-ZDQ7OJ6K.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkB3LQVYMR_js=require('./chunk-B3LQVYMR.js'),chunkEPRXZTIE_js=require('./chunk-EPRXZTIE.js');function h(r){return r.type==="insertion"||r.type==="deletion"||r.type==="moveFrom"||r.type==="moveTo"}function x(r){let t=[];for(let o of r)o.type==="run"?t.push(chunkB3LQVYMR_js.H(o)):o.type==="hyperlink"&&t.push(chunkB3LQVYMR_js.I(o));return t.join("")}function v(r,t){let o=0;for(let n of r.content)if(n.type==="paragraph"){if(o===t)return n;o++;}else if(n.type==="table"){for(let i of n.rows)for(let e of i.cells)for(let a of e.content)if(a.type==="paragraph"){if(o===t)return a;o++;}}else o++;throw new Error(`Paragraph index ${t} out of bounds (max: ${o-1})`)}function F(r,t){let o=0;for(let n of r.content)if(n.type==="paragraph"){if(t(n,o)===false)return;o++;}else if(n.type==="table"){for(let i of n.rows)for(let e of i.cells)for(let a of e.content)if(a.type==="paragraph"){if(t(a,o)===false)return;o++;}}else o++;}function he(r,t={}){let{fromIndex:o,toIndex:n,includeTrackedChanges:i=true,includeCommentAnchors:e=true}=t,a=[],s=0;for(let u of r.content)if(u.type==="paragraph")A(s,o,n)&&a.push(Z(u,s,i,e)),s++;else if(u.type==="table"){A(s,o,n)&&a.push(_(u,s,i,e));for(let l of u.rows)for(let c of l.cells)for(let f of c.content)f.type==="paragraph"&&s++;}else s++;return a}function A(r,t,o){return (t===void 0||r>=t)&&(o===void 0||r<=o)}function Z(r,t,o,n){let i=L(r,o,n),e=r.formatting?.styleId,a=r.paraId;return chunkB3LQVYMR_js.U(e)?{type:"heading",index:t,paraId:a,level:chunkB3LQVYMR_js.V(e)??1,text:i}:r.listRendering?{type:"list-item",index:t,paraId:a,text:i,listLevel:r.listRendering.level??0,listType:r.listRendering.isBullet?"bullet":"number"}:{type:"paragraph",index:t,paraId:a,text:i}}function _(r,t,o,n){let i=[],e=[];for(let a of r.rows){let s=[],u=[];for(let l of a.cells){let c=[],f;for(let g of l.content)g.type==="paragraph"&&(f===void 0&&(f=g.paraId),c.push(L(g,o,n)));s.push(c.join(`
|
|
2
|
-
`)),u.push(f);}i.push(s),e.push(u);}return {type:"table",index:t,rows:i,cellParaIds:e}}function ge(r){let t=[],o=n=>n.paraId?n.paraId:String(n.index);for(let n of r)switch(n.type){case "heading":t.push(`[${o(n)}] (h${n.level}) ${n.text}`);break;case "paragraph":t.push(`[${o(n)}] ${n.text}`);break;case "list-item":{let i=" ".repeat(n.listLevel),e=n.listType==="bullet"?"\u2022":"-";t.push(`[${o(n)}] ${i}${e} ${n.text}`);break}case "table":{let i=n.index;for(let e=0;e<n.rows.length;e++)for(let a=0;a<n.rows[e].length;a++){let u=n.rows[e][a].split(`
|
|
3
|
-
`),l=n.cellParaIds?.[e]?.[a];for(let c=0;c<u.length;c++){let f=c===0&&l?l:String(i);t.push(`[${f}] (table, row ${e+1}, col ${a+1}) ${u[c]}`),i++;}}break}}return t.join(`
|
|
4
|
-
`)}function L(r,t,o){let n=[],i=new Set;for(let e of r.content){if(e.type==="commentRangeStart"&&o){i.add(e.id),n.push(`[comment:${e.id}]`);continue}if(e.type==="commentRangeEnd"&&o){i.has(e.id)&&(i.delete(e.id),n.push("[/comment]"));continue}if(e.type==="run")n.push(chunkB3LQVYMR_js.H(e));else if(e.type==="hyperlink")n.push(chunkB3LQVYMR_js.I(e));else if(h(e)){let a=x(e.content);e.type==="insertion"||e.type==="moveTo"?t&&n.push(`[+${a}+]{by:${e.info.author}}`):t?n.push(`[-${a}-]{by:${e.info.author}}`):n.push(a);}}return n.join("")}var y=class extends Error{constructor(t,o){let n=o!==void 0?` in paragraph ${o}`:" in document";super(`Text not found${n}: "${t}"`),this.name="TextNotFoundError";}},j=class extends Error{constructor(t){super(`Tracked change not found: id=${t}`),this.name="ChangeNotFoundError";}},T=class extends Error{constructor(t){super(`Comment not found: id=${t}`),this.name="CommentNotFoundError";}};function G(r){let t=[],o=0;for(let n=0;n<r.content.length;n++){let i=r.content[n];if(i.type==="run"){let e=chunkB3LQVYMR_js.H(i);t.push({contentIndex:n,run:i,text:e,startPos:o}),o+=e.length;}else if(i.type==="hyperlink")for(let e=0;e<i.children.length;e++){let a=i.children[e];if(a.type==="run"){let s=chunkB3LQVYMR_js.H(a);t.push({contentIndex:n,run:a,text:s,startPos:o}),o+=s.length;}}else if(h(i)){if(i.type==="insertion"||i.type==="moveTo")continue;for(let e=0;e<i.content.length;e++){let a=i.content[e];if(a.type==="run"){let s=chunkB3LQVYMR_js.H(a);t.push({contentIndex:n,run:a,text:s,startPos:o}),o+=s.length;}else if(a.type==="hyperlink"){for(let s of a.children)if(s.type==="run"){let u=chunkB3LQVYMR_js.H(s);t.push({contentIndex:n,run:s,text:u,startPos:o}),o+=u.length;}}}}}return t}function k(r){return G(r).map(t=>t.text).join("")}function q(r,t,o){let n=G(r),i=n.map(c=>c.text).join(""),e=ee(i,t);if(!e)throw new y(t,o);let a=-1,s=0;for(let c=0;c<n.length;c++)if(e.start<n[c].startPos+n[c].text.length){a=c,s=e.start-n[c].startPos;break}let u=-1,l=0;for(let c=n.length-1;c>=0;c--)if(e.end>n[c].startPos){u=c,l=e.end-n[c].startPos;break}if(a===-1||u===-1)throw new y(t,o);return {startRunIndex:n[a].contentIndex,startOffset:s,endRunIndex:n[u].contentIndex,endOffset:l}}function Ce(r,t,o){let n=q(r,t,o),{startRunIndex:i,endRunIndex:e}=n,{startOffset:a,endOffset:s}=n,u=r.content[e];if(u.type==="run"){let c=chunkB3LQVYMR_js.H(u);if(s<c.length){let f=H(c.slice(s),u);N(u,c.slice(0,s)),r.content.splice(e+1,0,f);}}let l=r.content[i];if(l.type==="run"&&a>0){let c=chunkB3LQVYMR_js.H(l),f=H(c.slice(0,a),l);N(l,c.slice(a)),r.content.splice(i,0,f),i++,e++;}return {startIndex:i,endIndex:e}}function H(r,t){return {type:"run",content:[{type:"text",text:r}],formatting:t.formatting?{...t.formatting}:void 0}}function N(r,t){let o=r.content.find(n=>n.type==="text");o&&(o.text=t);}function z(r){let t=[],o=[],n=true;for(let i=0;i<r.length;i++){let e=r[i];if(!"\u200B\u200C\u200D\uFEFF\xAD".includes(e)){if("\u201C\u201D\u201E\u201F".includes(e)&&(e='"'),"\u2018\u2019\u201A\u201B".includes(e)&&(e="'"),"\u2013\u2014\u2012\u2015".includes(e)&&(e="-"),e==="\u2026"){t.push(".",".","."),o.push(i,i,i),n=false;continue}if(/\s/.test(e)||e==="\xA0"){n||(t.push(" "),o.push(i),n=true);continue}t.push(e.toLowerCase()),o.push(i),n=false;}}return t.length>0&&t[t.length-1]===" "&&(t.pop(),o.pop()),{text:t.join(""),posMap:o}}function W(r,t,o,n){let i=r.posMap[t],e=r.posMap[t+o-1]+1;for(;e<n.length&&"\u200B\u200C\u200D\uFEFF\xAD".includes(n[e]);)e++;return {start:i,end:e}}function ee(r,t){if(!t||!r)return null;let o=r.indexOf(t);if(o!==-1)return {start:o,end:o+t.length};let n=z(r),i=z(t);if(!i.text)return null;let e=n.text.indexOf(i.text);if(e!==-1)return W(n,e,i.text.length,r);let a=i.text.split(" ");if(a.length>=3)for(let s=1;s<=Math.min(2,a.length-2);s++){let u=a.slice(0,-s).join(" "),l=n.text.indexOf(u);if(l!==-1)return W(n,l,u.length,r)}return null}function Pe(r,t){let o=new Map;return F(r,(i,e)=>{let a=null;for(let s of i.content)if(h(s)){a===null&&(a=k(i));let u=x(s.content),l=s.info.id,c=o.get(l);c&&c.paragraphIndex===e?c.text+=u:o.set(l,{id:l,type:s.type,author:s.info.author,date:s.info.date??null,text:u,context:a,paragraphIndex:e});}}),Array.from(o.values()).filter(i=>!(t?.author&&i.author!==t.author||t?.type&&i.type!==t.type))}function ve(r,t){let o=r.comments??[];if(o.length===0)return [];let n=te(r),i=[],e=new Map;for(let s of o)if(s.parentId!==void 0){let u=e.get(s.parentId)??[];u.push(s),e.set(s.parentId,u);}else i.push(s);return i.map(s=>{let u=n.get(s.id),l=(e.get(s.id)??[]).map(c=>({id:c.id,author:c.author,date:c.date??null,text:U(c)}));return {id:s.id,author:s.author,date:s.date??null,text:U(s),anchoredText:u?.text??"",paragraphIndex:u?.paragraphIndex??-1,replies:l,done:s.done??false}}).filter(s=>!(t?.author&&s.author!==t.author||t?.done!==void 0&&s.done!==t.done))}function U(r){return r.content.map(t=>k(t)).join(`
|
|
5
|
-
`)}function te(r){let t=new Map,o=new Map;return F(r,(n,i)=>{for(let e of n.content)if(e.type==="commentRangeStart")o.set(e.id,{paragraphIndex:i,parts:[]});else if(e.type==="commentRangeEnd"){let a=o.get(e.id);a&&(t.set(e.id,{text:a.parts.join(""),paragraphIndex:a.paragraphIndex}),o.delete(e.id));}else if(e.type==="run"){let a=chunkB3LQVYMR_js.H(e);for(let s of o.values())s.parts.push(a);}else if(e.type==="hyperlink"){let a=e.children.filter(s=>s.type==="run").map(chunkB3LQVYMR_js.H).join("");for(let s of o.values())s.parts.push(a);}else if(h(e)){if(e.type==="insertion"||e.type==="moveTo")continue;let a=x(e.content);for(let s of o.values())s.parts.push(a);}}),t}function ne(r){let t=r.toDocument().package?.document;if(!t)return new Map;let o=new Map,n=0;for(let i of t.content)if(i.type==="paragraph"){let e=i.paraId;o.set(e??String(n),n),n++;}else if(i.type==="table")for(let e of i.rows)for(let a of e.cells)for(let s of a.content)s.type==="paragraph"&&n++;else n++;return o}function oe(r){let t=[],o=n=>{for(let i of n.content)i.type==="text"&&t.push(i.text??"");};for(let n of r.content)if(n.type==="run")o(n);else if(n.type==="hyperlink")for(let i of n.children)i.type==="run"&&o(i);else if(n.type==="deletion"||n.type==="moveFrom"){for(let i of n.content)if(i.type==="run")o(i);else if(i.type==="hyperlink")for(let e of i.children)e.type==="run"&&o(e);}return t.join("")}function w(r,t){let n={type:"run",content:[{type:"text",text:t,preserveSpace:/^\s|\s$/.test(t)}]};return r.formatting&&(n.formatting={...r.formatting}),r.propertyChanges&&(n.propertyChanges=[...r.propertyChanges]),n}function re(r){return r.content.map(t=>t.type==="text"?t.text:"").join("")}function M(r,t,o,n,i){let e=re(r);if(!e)return;let a=i.value,s=a+e.length;n.push({run:r,parent:t,index:o,text:e,start:a,end:s}),i.value=s;}function X(r,t,o){r.children.forEach((n,i)=>{n.type==="run"&&M(n,r.children,i,t,o);});}function S(r,t){let o=[],n={value:0};return r.content.forEach((i,e)=>{i.type==="run"?M(i,r.content,e,o,n):i.type==="hyperlink"?X(i,o,n):(i.type==="deletion"||i.type==="moveFrom"||t&&(i.type==="insertion"||i.type==="moveTo"))&&i.content.forEach((a,s)=>{a.type==="run"?M(a,i.content,s,o,n):a.type==="hyperlink"&&X(a,o,n);});}),o}function ie(r,t){let o={...r??{}};t.bold!==void 0&&(o.bold=t.bold||void 0),t.italic!==void 0&&(o.italic=t.italic||void 0),t.underline!==void 0&&(t.underline?o.underline={style:typeof t.underline=="object"&&t.underline.style?t.underline.style:"single"}:delete o.underline),t.strike!==void 0&&(o.strike=t.strike||void 0),t.color!==void 0&&(t.color&&(t.color.rgb||t.color.themeColor)?o.color={rgb:t.color.rgb,themeColor:t.color.themeColor}:delete o.color),t.highlight!==void 0&&(t.highlight?o.highlight=chunkB3LQVYMR_js.ta(t.highlight)||t.highlight:delete o.highlight),t.fontSize!==void 0&&(t.fontSize>0?o.fontSize=chunkEPRXZTIE_js.m(t.fontSize):delete o.fontSize),t.fontFamily!==void 0&&(t.fontFamily&&(t.fontFamily.ascii||t.fontFamily.hAnsi)?o.fontFamily={ascii:t.fontFamily.ascii,hAnsi:t.fontFamily.hAnsi??t.fontFamily.ascii}:delete o.fontFamily);for(let n of Object.keys(o))o[n]===void 0&&delete o[n];return Object.keys(o).length>0?o:void 0}function B(r,t){r.formatting=ie(r.formatting,t);}function ae(r,t,o,n){let i=r.run.content.every(s=>s.type==="text");if(t<=0&&o>=r.text.length||!i){B(r.run,n);return}let e=[];t>0&&e.push(w(r.run,r.text.slice(0,t)));let a=w(r.run,r.text.slice(t,o));B(a,n),e.push(a),o<r.text.length&&e.push(w(r.run,r.text.slice(o))),r.parent.splice(r.index,1,...e);}function se(r,t,o,n){let e=S(r,false).filter(a=>a.start<o&&a.end>t);if(e.length===0)return true;for(let a=e.length-1;a>=0;a--){let s=e[a];ae(s,Math.max(0,t-s.start),Math.min(s.text.length,o-s.start),n);}return true}function ue(r,t){let o=S(r,true);for(let n of o)B(n.run,t);return true}function ce(r,t){if(!t)return null;let n=S(r,false).map(e=>e.text).join(""),i=n.indexOf(t);return i===-1||n.indexOf(t,i+1)!==-1?null:{from:i,to:i+t.length}}function le(r,t){return r?!!r.styles?.some(o=>o.styleId===t&&o.type==="paragraph"):true}function Be(r){let t=new Set,o=null;function n(){return o===null&&(o=ne(r)),o}function i(){if(t.size===0)return;let e=r.getComments(),a=r.getChanges(),s={commentCount:e.length,changeCount:a.length,comments:e,changes:a};for(let u of t)try{u(s);}catch(l){console.error("reviewerBridge content listener threw:",l);}}return {getContentAsText(e){return r.getContentAsText(e)},getContent(e){return r.getContent(e)},getComments(e){return r.getComments(e)},getChanges(e){return r.getChanges(e)},findText(e,a){if(!e)return [];let s=a?.caseSensitive??false,u=a?.limit??20,l=s?e:e.toLowerCase(),c=r.toDocument().package?.document;if(!c)return [];let f=[],g=40,R=0;for(let b of c.content){if(f.length>=u)break;if(b.type==="table"){for(let Q of b.rows)for(let V of Q.cells)for(let Y of V.content)Y.type==="paragraph"&&R++;continue}if(b.type!=="paragraph"){R++;continue}let D=b,J=R++,m=oe(D),$=s?m:m.toLowerCase(),d=$.indexOf(l);if(d===-1||$.indexOf(l,d+1)!==-1)continue;let K=m.slice(d,d+e.length);f.push({paraId:D.paraId??String(J),match:K,before:m.slice(Math.max(0,d-g),d),after:m.slice(d+e.length,d+e.length+g)});}return f},getSelection(){return null},addComment(e){let a=n().get(e.paraId);if(a===void 0)return null;try{let s=r.addComment({paragraphIndex:a,text:e.text,author:e.author,search:e.search});return i(),s}catch{return null}},replyTo(e,a){try{let s=r.replyTo(e,a);return i(),s}catch{return null}},resolveComment(e){let s=r.toDocument().package?.document?.comments?.find(u=>u.id===e);if(!s)throw new T(e);s.done=true,i();},proposeChange(e){let a=n().get(e.paraId);if(a===void 0)return false;let s=e.search==="",u=e.replaceWith==="";if(s&&u)return false;try{return s?r.proposeInsertion({paragraphIndex:a,insertText:e.replaceWith,author:e.author}):u?r.proposeDeletion({paragraphIndex:a,search:e.search,author:e.author}):r.replace({paragraphIndex:a,search:e.search,replaceWith:e.replaceWith,author:e.author}),i(),true}catch{return false}},scrollTo(e){return n().has(e)},applyFormatting(e){let a=n().get(e.paraId);if(a===void 0)return false;let s=r.toDocument().package?.document;if(!s)return false;try{let u=s?v(s,a):null;if(!u)return false;if(e.search){let l=ce(u,e.search);if(!l)return false;se(u,l.from,l.to,e.marks);}else ue(u,e.marks);return i(),true}catch{return false}},setParagraphStyle(e){let a=n().get(e.paraId);if(a===void 0)return false;let s=r.toDocument(),u=s.package?.document;if(!u||!le(s.package?.styles,e.styleId))return false;try{let l=v(u,a);return l.formatting={...l.formatting??{},styleId:e.styleId},i(),true}catch{return false}},getPage(){return null},getPages(){return []},getTotalPages(){return 0},getCurrentPage(){return 0},onContentChange(e){return t.add(e),()=>{t.delete(e);}},onSelectionChange(){return ()=>{}}}}exports.a=h;exports.b=v;exports.c=F;exports.d=he;exports.e=ge;exports.f=y;exports.g=j;exports.h=T;exports.i=q;exports.j=Ce;exports.k=Pe;exports.l=ve;exports.m=Be;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{ga as ContentControlBoundError,ea as ContentControlLockedError,da as ContentControlNotFoundError,fa as ContentControlTypeError,ja as ContentControlValueError,Oa as DEFAULT_AI_ACTIONS,x as DocumentAgent,oa as RepeatingSectionError,Qa as VERSION,pa as addRepeatingSectionItem,i as attemptSelectiveSave,Fa as blendColors,E as buildExtendedSelectionContext,h as buildPatchedDocumentXml,D as buildSelectionContext,B as buildSelectionContextFromContext,Ga as colorsEqual,La as comparePositions,M as countCharacters,L as countWords,y as createAgent,z as createAgentFromDocument,Ia as createCollapsedRange,Pa as createCommand,sa as createDocumentWithText,f as createDocx,ra as createEmptyDocument,Ja as createRange,Ca as createRgbColor,Ba as createThemeColor,Da as darkenColor,j as detectVariables,k as detectVariablesDetailed,l as detectVariablesInBody,m as detectVariablesInParagraph,v as documentHasVariables,n as extractVariablesFromText,ca as findContentControl,ba as findContentControls,ka as formatSdtDate,r as formatVariable,Na as getActionDescription,Ma as getActionLabel,A as getAgentContext,$ as getBlockIndexForParagraph,O as getBodyCharacterCount,K as getBodyText,N as getBodyWordCount,aa as getContentControlText,za as getContrastingColor,C as getDocumentSummary,R as getFormattingAtPosition,T as getHyperlinkAtPosition,I as getHyperlinkText,_ as getParagraphAtIndex,G as getParagraphText,Z as getParagraphs,H as getRunText,F as getSelectionFormattingSummary,J as getTableText,Q as getTextAfter,P as getTextBefore,X as hasHyperlinks,W as hasImages,Y as hasTables,o as hasTemplateVariables,xa as isBlack,U as isHeadingStyle,S as isPositionInHyperlink,Ka as isPositionInRange,ma as isRepeatingSection,na as isRepeatingSectionItem,p as isValidVariableName,ya as isWhite,Ha as isZodSchema,Ea as lightenColor,ta as mapHexToHighlightName,Aa as parseColorString,w as parseDocx,V as parseHeadingLevel,s as parseVariable,ia as removeContentControl,qa as removeRepeatingSectionItem,u as removeVariables,d as repackDocx,t as replaceVariables,ua as resolveColor,va as resolveHighlightColor,wa as resolveShadingColor,q as sanitizeVariableName,b as serializeDocumentBody,c as serializeDocx,a as serializeSectionProperties,ha as setContentControlContent,la as setContentControlValue,e as updateMultipleFiles,g as validatePatchSafety}from'./chunk-L7LXQOTH.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,g as emuToPixels,i as emuToTwips,o as executeCommand,p as executeCommands,n as formatPx,l as halfPointsToPixels,h as pixelsToEmu,f as pixelsToTwips,b as pluginRegistry,m as pointsToHalfPoints,k as pointsToPixels,c as registerPlugins,j as twipsToEmu,e as twipsToPixels}from'./chunk-XDZHYYU6.mjs';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkB3LQVYMR_js=require('./chunk-B3LQVYMR.js'),chunk4QRVKNI4_js=require('./chunk-4QRVKNI4.js'),chunkEPRXZTIE_js=require('./chunk-EPRXZTIE.js');Object.defineProperty(exports,"ContentControlBoundError",{enumerable:true,get:function(){return chunkB3LQVYMR_js.ga}});Object.defineProperty(exports,"ContentControlLockedError",{enumerable:true,get:function(){return chunkB3LQVYMR_js.ea}});Object.defineProperty(exports,"ContentControlNotFoundError",{enumerable:true,get:function(){return chunkB3LQVYMR_js.da}});Object.defineProperty(exports,"ContentControlTypeError",{enumerable:true,get:function(){return chunkB3LQVYMR_js.fa}});Object.defineProperty(exports,"ContentControlValueError",{enumerable:true,get:function(){return chunkB3LQVYMR_js.ja}});Object.defineProperty(exports,"DEFAULT_AI_ACTIONS",{enumerable:true,get:function(){return chunkB3LQVYMR_js.Oa}});Object.defineProperty(exports,"DocumentAgent",{enumerable:true,get:function(){return chunkB3LQVYMR_js.x}});Object.defineProperty(exports,"RepeatingSectionError",{enumerable:true,get:function(){return chunkB3LQVYMR_js.oa}});Object.defineProperty(exports,"VERSION",{enumerable:true,get:function(){return chunkB3LQVYMR_js.Qa}});Object.defineProperty(exports,"addRepeatingSectionItem",{enumerable:true,get:function(){return chunkB3LQVYMR_js.pa}});Object.defineProperty(exports,"attemptSelectiveSave",{enumerable:true,get:function(){return chunkB3LQVYMR_js.i}});Object.defineProperty(exports,"blendColors",{enumerable:true,get:function(){return chunkB3LQVYMR_js.Fa}});Object.defineProperty(exports,"buildExtendedSelectionContext",{enumerable:true,get:function(){return chunkB3LQVYMR_js.E}});Object.defineProperty(exports,"buildPatchedDocumentXml",{enumerable:true,get:function(){return chunkB3LQVYMR_js.h}});Object.defineProperty(exports,"buildSelectionContext",{enumerable:true,get:function(){return chunkB3LQVYMR_js.D}});Object.defineProperty(exports,"buildSelectionContextFromContext",{enumerable:true,get:function(){return chunkB3LQVYMR_js.B}});Object.defineProperty(exports,"colorsEqual",{enumerable:true,get:function(){return chunkB3LQVYMR_js.Ga}});Object.defineProperty(exports,"comparePositions",{enumerable:true,get:function(){return chunkB3LQVYMR_js.La}});Object.defineProperty(exports,"countCharacters",{enumerable:true,get:function(){return chunkB3LQVYMR_js.M}});Object.defineProperty(exports,"countWords",{enumerable:true,get:function(){return chunkB3LQVYMR_js.L}});Object.defineProperty(exports,"createAgent",{enumerable:true,get:function(){return chunkB3LQVYMR_js.y}});Object.defineProperty(exports,"createAgentFromDocument",{enumerable:true,get:function(){return chunkB3LQVYMR_js.z}});Object.defineProperty(exports,"createCollapsedRange",{enumerable:true,get:function(){return chunkB3LQVYMR_js.Ia}});Object.defineProperty(exports,"createCommand",{enumerable:true,get:function(){return chunkB3LQVYMR_js.Pa}});Object.defineProperty(exports,"createDocumentWithText",{enumerable:true,get:function(){return chunkB3LQVYMR_js.sa}});Object.defineProperty(exports,"createDocx",{enumerable:true,get:function(){return chunkB3LQVYMR_js.f}});Object.defineProperty(exports,"createEmptyDocument",{enumerable:true,get:function(){return chunkB3LQVYMR_js.ra}});Object.defineProperty(exports,"createRange",{enumerable:true,get:function(){return chunkB3LQVYMR_js.Ja}});Object.defineProperty(exports,"createRgbColor",{enumerable:true,get:function(){return chunkB3LQVYMR_js.Ca}});Object.defineProperty(exports,"createThemeColor",{enumerable:true,get:function(){return chunkB3LQVYMR_js.Ba}});Object.defineProperty(exports,"darkenColor",{enumerable:true,get:function(){return chunkB3LQVYMR_js.Da}});Object.defineProperty(exports,"detectVariables",{enumerable:true,get:function(){return chunkB3LQVYMR_js.j}});Object.defineProperty(exports,"detectVariablesDetailed",{enumerable:true,get:function(){return chunkB3LQVYMR_js.k}});Object.defineProperty(exports,"detectVariablesInBody",{enumerable:true,get:function(){return chunkB3LQVYMR_js.l}});Object.defineProperty(exports,"detectVariablesInParagraph",{enumerable:true,get:function(){return chunkB3LQVYMR_js.m}});Object.defineProperty(exports,"documentHasVariables",{enumerable:true,get:function(){return chunkB3LQVYMR_js.v}});Object.defineProperty(exports,"extractVariablesFromText",{enumerable:true,get:function(){return chunkB3LQVYMR_js.n}});Object.defineProperty(exports,"findContentControl",{enumerable:true,get:function(){return chunkB3LQVYMR_js.ca}});Object.defineProperty(exports,"findContentControls",{enumerable:true,get:function(){return chunkB3LQVYMR_js.ba}});Object.defineProperty(exports,"formatSdtDate",{enumerable:true,get:function(){return chunkB3LQVYMR_js.ka}});Object.defineProperty(exports,"formatVariable",{enumerable:true,get:function(){return chunkB3LQVYMR_js.r}});Object.defineProperty(exports,"getActionDescription",{enumerable:true,get:function(){return chunkB3LQVYMR_js.Na}});Object.defineProperty(exports,"getActionLabel",{enumerable:true,get:function(){return chunkB3LQVYMR_js.Ma}});Object.defineProperty(exports,"getAgentContext",{enumerable:true,get:function(){return chunkB3LQVYMR_js.A}});Object.defineProperty(exports,"getBlockIndexForParagraph",{enumerable:true,get:function(){return chunkB3LQVYMR_js.$}});Object.defineProperty(exports,"getBodyCharacterCount",{enumerable:true,get:function(){return chunkB3LQVYMR_js.O}});Object.defineProperty(exports,"getBodyText",{enumerable:true,get:function(){return chunkB3LQVYMR_js.K}});Object.defineProperty(exports,"getBodyWordCount",{enumerable:true,get:function(){return chunkB3LQVYMR_js.N}});Object.defineProperty(exports,"getContentControlText",{enumerable:true,get:function(){return chunkB3LQVYMR_js.aa}});Object.defineProperty(exports,"getContrastingColor",{enumerable:true,get:function(){return chunkB3LQVYMR_js.za}});Object.defineProperty(exports,"getDocumentSummary",{enumerable:true,get:function(){return chunkB3LQVYMR_js.C}});Object.defineProperty(exports,"getFormattingAtPosition",{enumerable:true,get:function(){return chunkB3LQVYMR_js.R}});Object.defineProperty(exports,"getHyperlinkAtPosition",{enumerable:true,get:function(){return chunkB3LQVYMR_js.T}});Object.defineProperty(exports,"getHyperlinkText",{enumerable:true,get:function(){return chunkB3LQVYMR_js.I}});Object.defineProperty(exports,"getParagraphAtIndex",{enumerable:true,get:function(){return chunkB3LQVYMR_js._}});Object.defineProperty(exports,"getParagraphText",{enumerable:true,get:function(){return chunkB3LQVYMR_js.G}});Object.defineProperty(exports,"getParagraphs",{enumerable:true,get:function(){return chunkB3LQVYMR_js.Z}});Object.defineProperty(exports,"getRunText",{enumerable:true,get:function(){return chunkB3LQVYMR_js.H}});Object.defineProperty(exports,"getSelectionFormattingSummary",{enumerable:true,get:function(){return chunkB3LQVYMR_js.F}});Object.defineProperty(exports,"getTableText",{enumerable:true,get:function(){return chunkB3LQVYMR_js.J}});Object.defineProperty(exports,"getTextAfter",{enumerable:true,get:function(){return chunkB3LQVYMR_js.Q}});Object.defineProperty(exports,"getTextBefore",{enumerable:true,get:function(){return chunkB3LQVYMR_js.P}});Object.defineProperty(exports,"hasHyperlinks",{enumerable:true,get:function(){return chunkB3LQVYMR_js.X}});Object.defineProperty(exports,"hasImages",{enumerable:true,get:function(){return chunkB3LQVYMR_js.W}});Object.defineProperty(exports,"hasTables",{enumerable:true,get:function(){return chunkB3LQVYMR_js.Y}});Object.defineProperty(exports,"hasTemplateVariables",{enumerable:true,get:function(){return chunkB3LQVYMR_js.o}});Object.defineProperty(exports,"isBlack",{enumerable:true,get:function(){return chunkB3LQVYMR_js.xa}});Object.defineProperty(exports,"isHeadingStyle",{enumerable:true,get:function(){return chunkB3LQVYMR_js.U}});Object.defineProperty(exports,"isPositionInHyperlink",{enumerable:true,get:function(){return chunkB3LQVYMR_js.S}});Object.defineProperty(exports,"isPositionInRange",{enumerable:true,get:function(){return chunkB3LQVYMR_js.Ka}});Object.defineProperty(exports,"isRepeatingSection",{enumerable:true,get:function(){return chunkB3LQVYMR_js.ma}});Object.defineProperty(exports,"isRepeatingSectionItem",{enumerable:true,get:function(){return chunkB3LQVYMR_js.na}});Object.defineProperty(exports,"isValidVariableName",{enumerable:true,get:function(){return chunkB3LQVYMR_js.p}});Object.defineProperty(exports,"isWhite",{enumerable:true,get:function(){return chunkB3LQVYMR_js.ya}});Object.defineProperty(exports,"isZodSchema",{enumerable:true,get:function(){return chunkB3LQVYMR_js.Ha}});Object.defineProperty(exports,"lightenColor",{enumerable:true,get:function(){return chunkB3LQVYMR_js.Ea}});Object.defineProperty(exports,"mapHexToHighlightName",{enumerable:true,get:function(){return chunkB3LQVYMR_js.ta}});Object.defineProperty(exports,"parseColorString",{enumerable:true,get:function(){return chunkB3LQVYMR_js.Aa}});Object.defineProperty(exports,"parseDocx",{enumerable:true,get:function(){return chunkB3LQVYMR_js.w}});Object.defineProperty(exports,"parseHeadingLevel",{enumerable:true,get:function(){return chunkB3LQVYMR_js.V}});Object.defineProperty(exports,"parseVariable",{enumerable:true,get:function(){return chunkB3LQVYMR_js.s}});Object.defineProperty(exports,"removeContentControl",{enumerable:true,get:function(){return chunkB3LQVYMR_js.ia}});Object.defineProperty(exports,"removeRepeatingSectionItem",{enumerable:true,get:function(){return chunkB3LQVYMR_js.qa}});Object.defineProperty(exports,"removeVariables",{enumerable:true,get:function(){return chunkB3LQVYMR_js.u}});Object.defineProperty(exports,"repackDocx",{enumerable:true,get:function(){return chunkB3LQVYMR_js.d}});Object.defineProperty(exports,"replaceVariables",{enumerable:true,get:function(){return chunkB3LQVYMR_js.t}});Object.defineProperty(exports,"resolveColor",{enumerable:true,get:function(){return chunkB3LQVYMR_js.ua}});Object.defineProperty(exports,"resolveHighlightColor",{enumerable:true,get:function(){return chunkB3LQVYMR_js.va}});Object.defineProperty(exports,"resolveShadingColor",{enumerable:true,get:function(){return chunkB3LQVYMR_js.wa}});Object.defineProperty(exports,"sanitizeVariableName",{enumerable:true,get:function(){return chunkB3LQVYMR_js.q}});Object.defineProperty(exports,"serializeDocumentBody",{enumerable:true,get:function(){return chunkB3LQVYMR_js.b}});Object.defineProperty(exports,"serializeDocx",{enumerable:true,get:function(){return chunkB3LQVYMR_js.c}});Object.defineProperty(exports,"serializeSectionProperties",{enumerable:true,get:function(){return chunkB3LQVYMR_js.a}});Object.defineProperty(exports,"setContentControlContent",{enumerable:true,get:function(){return chunkB3LQVYMR_js.ha}});Object.defineProperty(exports,"setContentControlValue",{enumerable:true,get:function(){return chunkB3LQVYMR_js.la}});Object.defineProperty(exports,"updateMultipleFiles",{enumerable:true,get:function(){return chunkB3LQVYMR_js.e}});Object.defineProperty(exports,"validatePatchSafety",{enumerable:true,get:function(){return chunkB3LQVYMR_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 chunkEPRXZTIE_js.a}});Object.defineProperty(exports,"createPluginRegistrar",{enumerable:true,get:function(){return chunkEPRXZTIE_js.d}});Object.defineProperty(exports,"emuToPixels",{enumerable:true,get:function(){return chunkEPRXZTIE_js.g}});Object.defineProperty(exports,"emuToTwips",{enumerable:true,get:function(){return chunkEPRXZTIE_js.i}});Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunkEPRXZTIE_js.o}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunkEPRXZTIE_js.p}});Object.defineProperty(exports,"formatPx",{enumerable:true,get:function(){return chunkEPRXZTIE_js.n}});Object.defineProperty(exports,"halfPointsToPixels",{enumerable:true,get:function(){return chunkEPRXZTIE_js.l}});Object.defineProperty(exports,"pixelsToEmu",{enumerable:true,get:function(){return chunkEPRXZTIE_js.h}});Object.defineProperty(exports,"pixelsToTwips",{enumerable:true,get:function(){return chunkEPRXZTIE_js.f}});Object.defineProperty(exports,"pluginRegistry",{enumerable:true,get:function(){return chunkEPRXZTIE_js.b}});Object.defineProperty(exports,"pointsToHalfPoints",{enumerable:true,get:function(){return chunkEPRXZTIE_js.m}});Object.defineProperty(exports,"pointsToPixels",{enumerable:true,get:function(){return chunkEPRXZTIE_js.k}});Object.defineProperty(exports,"registerPlugins",{enumerable:true,get:function(){return chunkEPRXZTIE_js.c}});Object.defineProperty(exports,"twipsToEmu",{enumerable:true,get:function(){return chunkEPRXZTIE_js.j}});Object.defineProperty(exports,"twipsToPixels",{enumerable:true,get:function(){return chunkEPRXZTIE_js.e}});
|