@eigenpal/docx-editor-core 1.0.2 → 1.0.3
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/README.md +1 -1
- package/dist/agent/index.d.mts +4 -4
- package/dist/agent/index.d.ts +4 -4
- package/dist/agent/index.js +1 -1
- package/dist/agent/index.mjs +1 -1
- package/dist/chunk-2IE6UDHJ.mjs +2 -0
- package/dist/chunk-3AZWLVLC.js +1 -0
- package/dist/chunk-3JXR6YU4.mjs +1 -0
- package/dist/{chunk-LTYW3NLX.js → chunk-3NLVHZMT.js} +2 -2
- package/dist/chunk-5SU4HPQS.mjs +1 -0
- package/dist/{chunk-6PR4XHQ3.mjs → chunk-7PX32GLB.mjs} +1 -1
- package/dist/{chunk-AFMMYLPX.js → chunk-ABBG4WD2.js} +2 -2
- package/dist/chunk-AHXPHBMT.js +1 -0
- package/dist/chunk-B6LYBJ4H.mjs +1 -0
- package/dist/chunk-BFB4PRS4.mjs +1 -0
- package/dist/chunk-BRHHK4MG.mjs +2 -0
- package/dist/chunk-CUXXRGPQ.mjs +1 -0
- package/dist/chunk-D536HC5M.js +2 -0
- package/dist/{chunk-GFQM7PKY.js → chunk-D5E5TA74.js} +1 -1
- package/dist/chunk-EPX7BBJD.js +2 -0
- package/dist/chunk-EQVNAHL7.mjs +1 -0
- package/dist/{chunk-EXOP727C.mjs → chunk-EV6W6KXG.mjs} +1 -1
- package/dist/chunk-FCJWLEKT.mjs +1 -0
- package/dist/{chunk-XDH55WXX.mjs → chunk-G7AKYAKU.mjs} +1 -1
- package/dist/{chunk-AGNZEOVL.mjs → chunk-GHQS3I2W.mjs} +1 -1
- package/dist/chunk-HAAMO2Z2.mjs +1 -0
- package/dist/chunk-HL5PQT3A.mjs +2 -0
- package/dist/chunk-IMKU4O3P.js +1 -0
- package/dist/chunk-IN6IYQ2X.js +1 -0
- package/dist/chunk-IO6HZ7KR.js +2 -0
- package/dist/{chunk-CP767TWV.js → chunk-N3EIZN65.js} +1 -1
- package/dist/chunk-NO5LW2DQ.mjs +1 -0
- package/dist/chunk-OTDF6PZK.js +1 -0
- package/dist/chunk-QMLIXLZJ.mjs +4 -0
- package/dist/chunk-QVEAQOMR.mjs +2 -0
- package/dist/{chunk-APFTVA4F.mjs → chunk-QXHL67FG.mjs} +1 -1
- package/dist/{chunk-XCMA7AY7.js → chunk-SAFW7UQZ.js} +1 -1
- package/dist/chunk-TGPS3SRR.mjs +1 -0
- package/dist/chunk-TMISJEGL.js +1 -0
- package/dist/chunk-TRQN2SFW.mjs +59 -0
- package/dist/chunk-UGXSKZVM.js +1 -0
- package/dist/chunk-V6SWUCTS.js +2 -0
- package/dist/chunk-X3NB7STJ.js +1 -0
- package/dist/{chunk-7SGC3CXJ.js → chunk-XBHF5Q2F.js} +1 -1
- package/dist/chunk-XBIKSAH6.js +1 -0
- package/dist/{chunk-6DK4UBGM.js → chunk-XOH7YAYL.js} +1 -1
- package/dist/{chunk-4S5VOHQK.mjs → chunk-XWQB6APW.mjs} +1 -1
- package/dist/chunk-Y7I5QDCN.mjs +1 -0
- package/dist/chunk-YCDB5TA6.js +4 -0
- package/dist/chunk-YVYB4YCI.js +1 -0
- package/dist/{chunk-NLTX7XVR.js → chunk-Z4SJCSTS.js} +1 -1
- package/dist/{colorResolver-CVsPLsw1.d.ts → colorResolver-BZ_yScf4.d.ts} +1 -1
- package/dist/{colorResolver-C3q7MLLD.d.mts → colorResolver-C6DtsoFI.d.mts} +1 -1
- package/dist/core-plugins.d.mts +3 -3
- package/dist/core-plugins.d.ts +3 -3
- package/dist/core-plugins.js +1 -1
- package/dist/core-plugins.mjs +1 -1
- package/dist/core.d.mts +6 -6
- package/dist/core.d.ts +6 -6
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/docx/index.d.mts +3 -3
- package/dist/docx/index.d.ts +3 -3
- package/dist/docx/index.js +1 -1
- package/dist/docx/index.mjs +1 -1
- package/dist/docx/parser.d.mts +3 -3
- package/dist/docx/parser.d.ts +3 -3
- package/dist/docx/parser.js +1 -1
- package/dist/docx/parser.mjs +1 -1
- package/dist/docx/rezip.d.mts +3 -3
- package/dist/docx/rezip.d.ts +3 -3
- package/dist/docx/rezip.js +1 -1
- package/dist/docx/rezip.mjs +1 -1
- package/dist/docx/serializer/index.d.mts +3 -3
- package/dist/docx/serializer/index.d.ts +3 -3
- package/dist/{formatting-D9I-lFS4.d.mts → formatting-BH4hcZiq.d.mts} +1 -1
- package/dist/{formatting-BwpZWdGi.d.ts → formatting-_OXU8gLB.d.ts} +1 -1
- package/dist/{headerFooterLayout-B3QVg556.d.ts → headerFooterLayout-B5LyDpSM.d.ts} +20 -1
- package/dist/{headerFooterLayout-DkclHZ0Z.d.mts → headerFooterLayout-DVFcJ832.d.mts} +20 -1
- package/dist/headless.d.mts +5 -5
- package/dist/headless.d.ts +5 -5
- package/dist/headless.js +1 -1
- package/dist/headless.mjs +1 -1
- package/dist/layout-bridge/index.d.mts +5 -5
- package/dist/layout-bridge/index.d.ts +5 -5
- package/dist/layout-bridge/index.js +1 -1
- package/dist/layout-bridge/index.mjs +1 -1
- package/dist/layout-bridge/measuring/index.d.mts +39 -2
- package/dist/layout-bridge/measuring/index.d.ts +39 -2
- package/dist/layout-bridge/measuring/index.js +1 -1
- package/dist/layout-bridge/measuring/index.mjs +1 -1
- package/dist/layout-bridge/tableInsertHover.js +1 -1
- package/dist/layout-bridge/tableInsertHover.mjs +1 -1
- package/dist/layout-bridge/toFlowBlocks.d.mts +10 -3
- package/dist/layout-bridge/toFlowBlocks.d.ts +10 -3
- package/dist/layout-bridge/toFlowBlocks.js +1 -1
- package/dist/layout-bridge/toFlowBlocks.mjs +1 -1
- package/dist/layout-engine/index.d.mts +30 -3
- package/dist/layout-engine/index.d.ts +30 -3
- package/dist/layout-engine/index.js +1 -1
- package/dist/layout-engine/index.mjs +1 -1
- package/dist/layout-engine/types.d.mts +9 -0
- package/dist/layout-engine/types.d.ts +9 -0
- package/dist/layout-painter/index.d.mts +4 -4
- package/dist/layout-painter/index.d.ts +4 -4
- package/dist/layout-painter/index.js +1 -1
- package/dist/layout-painter/index.mjs +1 -1
- package/dist/layout-painter/renderPage.d.mts +4 -4
- package/dist/layout-painter/renderPage.d.ts +4 -4
- package/dist/layout-painter/renderPage.js +1 -1
- package/dist/layout-painter/renderPage.mjs +1 -1
- package/dist/{lists-JDB80qyP.d.mts → lists-CvG_iVK3.d.mts} +8 -2
- package/dist/{lists-CdiIk_c1.d.ts → lists-UTp_tk7B.d.ts} +8 -2
- package/dist/managers/AutoSaveManager.d.mts +3 -3
- package/dist/managers/AutoSaveManager.d.ts +3 -3
- package/dist/managers/TableSelectionManager.d.mts +3 -3
- package/dist/managers/TableSelectionManager.d.ts +3 -3
- package/dist/managers/types.d.mts +3 -3
- package/dist/managers/types.d.ts +3 -3
- package/dist/{marks-CCPVlQzL.d.mts → marks-BY573yZn.d.mts} +1 -1
- package/dist/{marks-BujVxYP4.d.ts → marks-CjC9tF5k.d.ts} +1 -1
- package/dist/mcp-cli.mjs +23 -23
- package/dist/mcp.d.mts +3 -3
- package/dist/mcp.d.ts +3 -3
- package/dist/mcp.js +3 -3
- package/dist/mcp.mjs +1 -1
- package/dist/{nodes-BXi1Uu3e.d.mts → nodes-CL8M0L-a.d.mts} +4 -2
- package/dist/{nodes-DfKj9kUA.d.ts → nodes-D7PTUJ2N.d.ts} +4 -2
- package/dist/prosemirror/commands/formatting.d.mts +2 -2
- package/dist/prosemirror/commands/formatting.d.ts +2 -2
- package/dist/prosemirror/commands/formatting.js +1 -1
- package/dist/prosemirror/commands/formatting.mjs +1 -1
- package/dist/prosemirror/commands/index.d.mts +2 -2
- package/dist/prosemirror/commands/index.d.ts +2 -2
- package/dist/prosemirror/commands/index.js +1 -1
- package/dist/prosemirror/commands/index.mjs +1 -1
- package/dist/prosemirror/commands/paragraph.d.mts +1 -1
- package/dist/prosemirror/commands/paragraph.d.ts +1 -1
- package/dist/prosemirror/commands/paragraph.js +1 -1
- package/dist/prosemirror/commands/paragraph.mjs +1 -1
- package/dist/prosemirror/conversion/fromProseDoc.d.mts +3 -3
- package/dist/prosemirror/conversion/fromProseDoc.d.ts +3 -3
- package/dist/prosemirror/conversion/fromProseDoc.js +1 -1
- package/dist/prosemirror/conversion/fromProseDoc.mjs +1 -1
- package/dist/prosemirror/conversion/index.d.mts +11 -3
- package/dist/prosemirror/conversion/index.d.ts +11 -3
- package/dist/prosemirror/conversion/index.js +1 -1
- package/dist/prosemirror/conversion/index.mjs +1 -1
- package/dist/prosemirror/extensions/index.d.mts +1 -1
- package/dist/prosemirror/extensions/index.d.ts +1 -1
- package/dist/prosemirror/extensions/index.js +1 -1
- package/dist/prosemirror/extensions/index.mjs +1 -1
- package/dist/prosemirror/index.d.mts +5 -5
- package/dist/prosemirror/index.d.ts +5 -5
- package/dist/prosemirror/index.js +1 -1
- package/dist/prosemirror/index.mjs +1 -1
- package/dist/prosemirror/plugins/index.d.mts +1 -1
- package/dist/prosemirror/plugins/index.d.ts +1 -1
- package/dist/prosemirror/plugins/selectionTracker.d.mts +1 -1
- package/dist/prosemirror/plugins/selectionTracker.d.ts +1 -1
- package/dist/prosemirror/schema/index.d.mts +4 -4
- package/dist/prosemirror/schema/index.d.ts +4 -4
- package/dist/prosemirror/schema/index.js +1 -1
- package/dist/prosemirror/schema/index.mjs +1 -1
- package/dist/prosemirror/styles/index.d.mts +2 -2
- package/dist/prosemirror/styles/index.d.ts +2 -2
- package/dist/prosemirror/utils/extractTrackedChanges.d.mts +2 -2
- package/dist/prosemirror/utils/extractTrackedChanges.d.ts +2 -2
- package/dist/{selectionContext-85CE0f7a.d.ts → selectionContext-BPAqgNgk.d.ts} +1 -1
- package/dist/{selectionContext-Xq3AY7pn.d.mts → selectionContext-CoZat7QZ.d.mts} +1 -1
- package/dist/{styles-jqO45PSq.d.ts → styles-BBv7doYK.d.ts} +1 -1
- package/dist/{styles-BBoqh07F.d.mts → styles-EI2lxeEN.d.mts} +1 -1
- package/dist/types/agentApi.d.mts +1 -1
- package/dist/types/agentApi.d.ts +1 -1
- package/dist/types/content.d.mts +2 -2
- package/dist/types/content.d.ts +2 -2
- package/dist/types/document.d.mts +25 -6
- package/dist/types/document.d.ts +25 -6
- package/dist/utils/comments.d.mts +2 -2
- package/dist/utils/comments.d.ts +2 -2
- package/dist/utils/index.d.mts +4 -4
- package/dist/utils/index.d.ts +4 -4
- package/package.json +1 -1
- package/dist/chunk-2D3UPAMA.mjs +0 -1
- package/dist/chunk-2RCMY2GE.mjs +0 -1
- package/dist/chunk-3GNIP6IX.mjs +0 -4
- package/dist/chunk-44RUAQA2.js +0 -1
- package/dist/chunk-5N5DBQJV.mjs +0 -1
- package/dist/chunk-5TNMVXDS.mjs +0 -1
- package/dist/chunk-6LOYA7G5.mjs +0 -2
- package/dist/chunk-7VCMJCBY.js +0 -2
- package/dist/chunk-BKHQA6JJ.js +0 -1
- package/dist/chunk-BOYVCOLZ.mjs +0 -1
- package/dist/chunk-BS35CXMN.js +0 -1
- package/dist/chunk-BTOBVF4I.mjs +0 -1
- package/dist/chunk-C6GSFUV2.js +0 -2
- package/dist/chunk-DV6IEOP5.js +0 -4
- package/dist/chunk-IBNUQL57.mjs +0 -2
- package/dist/chunk-NMSU4MWP.mjs +0 -1
- package/dist/chunk-OLKDLRJ4.js +0 -1
- package/dist/chunk-P6RNOYAG.mjs +0 -2
- package/dist/chunk-R7RR6M4A.mjs +0 -2
- package/dist/chunk-RCS6UNIJ.mjs +0 -1
- package/dist/chunk-T5RYEG2V.js +0 -1
- package/dist/chunk-TYYOBPNK.js +0 -1
- package/dist/chunk-UCZVMHB5.mjs +0 -59
- package/dist/chunk-VQ2QGHYS.js +0 -2
- package/dist/chunk-WZP6ZHBR.js +0 -1
- package/dist/chunk-YGHHSCPR.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkIMKU4O3P_js=require('./chunk-IMKU4O3P.js'),chunkDROCYKAR_js=require('./chunk-DROCYKAR.js'),chunkIN6IYQ2X_js=require('./chunk-IN6IYQ2X.js'),chunkJFZIXFRC_js=require('./chunk-JFZIXFRC.js'),chunkN3Y5BUKV_js=require('./chunk-N3Y5BUKV.js');function $(e,t,n,i){let a=e-t-n,r=(i.count-1)*i.gap;return (a-r)/i.count}function ce(e){let t={...e.pageSize},n={...e.margins},i=e.columns??{count:1,gap:0},a=false,r,o,s=[],l=[];function c(){return t.h-n.bottom}function m(){return c()-n.top}function f(){return t.w-n.left-n.right}if(m()<=0)throw new Error("Paginator: page size and margins yield no content area");let S=$(t.w,n.left,n.right,i),T=n.top;function M(h){return n.left+h*(S+i.gap)}function x(){(r||o)&&(r&&(t=r),o&&(n=o),r=void 0,o=void 0,S=$(t.w,n.left,n.right,i));let h=s.length+1,P=n.top,E=c(),g=e.footnoteReservedHeights?.get(h)??0,p=E-g,b={number:h,fragments:[],margins:{...n},size:{...t},footnoteReservedHeight:g>0?g:void 0,columns:i.count>1?{...i}:void 0},d={page:b,cursorY:P,columnIndex:0,topMargin:P,contentBottom:p,trailingSpacing:0};return s.push(b),l.push(d),T=P,e.onNewPage&&e.onNewPage(d),d}function B(){return l.length===0?x():l[l.length-1]}function F(h){return h.contentBottom-h.cursorY}function w(h,P){let E=P||B();return F(E)>=h}function R(h){return h.columnIndex<i.count-1?(h.columnIndex+=1,h.cursorY=T,h.trailingSpacing=0,h):x()}function C(h){let P=B(),E=Number.isFinite(h)&&h>0?h:0;for(;!w(E,P);){let g=P.contentBottom-P.topMargin;if(E>g)return a||(a=true,console.warn(`Paginator: fragment height ${E.toFixed(0)}px exceeds page content height ${g.toFixed(0)}px; placing with overflow.`)),P.cursorY!==P.topMargin&&(P=R(P)),P;P=R(P);}return P}function L(h,P,E=0,g=0){let p=Math.max(E,B().trailingSpacing),b=p+P,d=C(b),y=p,z=M(d.columnIndex),I=d.cursorY+y;return h.x=z,h.y=I,d.page.fragments.push(h),d.cursorY=I+P,d.trailingSpacing=g,{state:d,x:z,y:I}}function u(){if(l.length>0){let h=l[l.length-1];if(h.page.fragments.length===0&&h.cursorY===h.topMargin)return h}return x()}function v(){let h=B();return R(h)}function Z(h){i=h,S=$(t.w,n.left,n.right,i);let P=B();P.page.columns=i.count>1?{...i}:void 0,T=P.cursorY,P.columnIndex=0;}function W(h,P,E=true){if(!E){r=h?{...h}:r,o=P?{...P}:o;return}if(h&&(t={...h}),P&&(n={...P}),m()<=0)throw new Error("Paginator: section page size and margins yield no content area");S=$(t.w,n.left,n.right,i),r=void 0,o=void 0;}return {pages:s,states:l,get columnWidth(){return S},get columns(){return {...i}},getCurrentState:B,getAvailableHeight:()=>F(B()),getContentWidth:f,fits:h=>w(h),ensureFits:C,addFragment:L,forcePageBreak:u,forceColumnBreak:v,getColumnX:M,updateColumns:Z,updatePageLayout:W}}function ge(e){let t=new Map,n=new Set;for(let i=0;i<e.length;i++){if(n.has(i))continue;let a=e[i];if(a.kind!=="paragraph"||!a.attrs?.keepNext)continue;let o=[i],s=i;for(let m=i+1;m<e.length;m++){let f=e[m];if(f.kind==="sectionBreak"||f.kind==="pageBreak"||f.kind==="columnBreak"||f.kind!=="paragraph")break;if(f.attrs?.keepNext)o.push(m),s=m,n.add(m);else break}let l=s+1,c=-1;if(l<e.length){let m=e[l];m.kind!=="sectionBreak"&&m.kind!=="pageBreak"&&m.kind!=="columnBreak"&&(c=l);}t.set(i,{startIndex:i,endIndex:s,memberIndices:o,anchorIndex:c});}return t}function fe(e,t,n){let i=0;for(let a of e.memberIndices){let r=t[a],o=n[a];if(r.kind!=="paragraph"||o.kind!=="paragraph")continue;let s=r,l=o,c=s.attrs?.spacing?.before??0;i+=c,i+=l.totalHeight;let m=s.attrs?.spacing?.after??0;i+=m;}if(e.anchorIndex!==-1){let a=n[e.anchorIndex];if(a?.kind==="paragraph"){let r=a;r.lines.length>0&&(i+=r.lines[0].lineHeight);}}return i}function me(e){let t=new Set;for(let n of e.values())for(let i=1;i<n.memberIndices.length;i++)t.add(n.memberIndices[i]);return t}function $e(e){return e.kind!=="paragraph"?false:e.attrs?.keepLines===true}function pe(e){return e.kind!=="paragraph"?false:e.attrs?.pageBreakBefore===true}function q(e){return e.displayMode==="float"||chunkJFZIXFRC_js.a(e.wrapType)}function qe(e){return q(e)&&!chunkJFZIXFRC_js.b(e.wrapType)&&e.wrapType!=="topAndBottom"}var Je=1440,de=96,Ce=Je/de,we=11,Le="Calibri",Qe=1,et=.8,tt=.2,j=null;function he(){if(!j){let e=typeof document<"u"?document.createElement("canvas"):null;if(!e)throw new Error("Canvas not available. Ensure this runs in a DOM environment.");if(j=e.getContext("2d"),!j)throw new Error("Failed to get 2D context from canvas")}return j}function Yt(){j=null;}var Be=new Map;function Re(e){let t=Be.get(e);if(t===void 0){let n=chunkN3Y5BUKV_js.a(e);t={cssFallback:n.cssFallback,singleLineRatio:n.singleLineRatio},Be.set(e,t);}return t}function nt(e){return Re(e).cssFallback}function be(e){let t=[];e.italic&&t.push("italic"),e.bold&&t.push("bold");let n=e.fontSize??we,i=N(n);t.push(`${i}px`);let a=e.fontFamily??Le;return t.push(nt(a)),t.join(" ")}function K(e){let t=e.fontSize??we,n=e.fontFamily??Le,i=N(t),a=i*et,r=i*tt,o=i*Qe;try{let l=he();l.font=be(e);let c=l.measureText("Hg");typeof c.actualBoundingBoxAscent=="number"&&typeof c.actualBoundingBoxDescent=="number"&&(a=c.actualBoundingBoxAscent,r=c.actualBoundingBoxDescent);}catch{}o=Math.max(o,a+r);let s=Re(n).singleLineRatio;return {fontSize:t,ascent:a,descent:r,lineHeight:o,fontFamily:n,singleLineRatio:s}}function _(e,t){if(!e)return 0;let n=he();n.font=be(t);let a=n.measureText(e).width;return t.letterSpacing&&e.length>1&&(a+=t.letterSpacing*(e.length-1)),a}function Zt(e,t){let n=_(e,t),i=K(t);return {width:n,height:i.ascent+i.descent,ascent:i.ascent,descent:i.descent}}function ve(e,t){let n=K(t);if(!e)return {width:0,charWidths:[],metrics:n};let i=he();i.font=be(t);let a=t.letterSpacing??0,r=[],o=0;for(let s=0;s<e.length;s++){let l=e[s],m=i.measureText(l).width;a&&s<e.length-1&&(m+=a),r.push(m),o+=m;}return {width:o,charWidths:r,metrics:n}}function Ut(e,t){if(t.length===0||e<=0)return 0;let n=0;for(let i=0;i<t.length;i++){let a=t[i],r=n+a/2;if(e<=r)return i;n+=a;}return t.length}function Xt(e,t){if(e<=0||t.length===0)return 0;let n=Math.min(e,t.length),i=0;for(let a=0;a<n;a++)i+=t[a];return i}function Gt(e){return e/Ce}function jt(e){return Math.round(e*Ce)}function N(e){return e*de/72}function it(e){return e*72/de}function Kt(e){return N(e/2)}function Vt(e){return it(e)*2}function xe(e){return e/1440*96}function Se(e){return e/96*1440}function at(e){let{explicitStops:t=[],defaultTabInterval:n=720,leftIndent:i=0}=e,a=t.filter(f=>f.val!=="clear").filter(f=>f.pos>=i),r=t.filter(f=>f.val==="clear").map(f=>f.pos),o=a.reduce((f,S)=>Math.max(f,S.pos),0),s=[...a];i>0&&!a.some(f=>f.pos<=i)&&(r.some(S=>Math.abs(S-i)<20)||s.push({val:"start",pos:i,leader:"none"}));let c=o>0?Math.max(o,i):i,m=i+14400;for(;c<m;){c+=n;let f=a.some(M=>Math.abs(M.pos-c)<20),S=r.some(M=>Math.abs(M-c)<20),T=i>0&&Math.abs(c-i)<20;!f&&!S&&!T&&s.push({val:"start",pos:c,leader:"none"});}return s.sort((f,S)=>f.pos-S.pos)}function Ie(e,t,n={}){let{defaultTabInterval:i=720}=t,a=Se(e),o=at(t).find(c=>c.pos>a);if(!o){let c=xe(i),m=c-e%c;return m<=0&&(m=c),{width:m,alignment:"default"}}let l=xe(o.pos)-e;if(o.val==="center")l-=(n.followingWidth??0)/2;else if(o.val==="end")l-=n.followingWidth??0;else if(o.val==="decimal")l-=n.decimalPrefixWidth??0;else if(o.val==="bar")return {width:0,leader:o.leader,alignment:"bar"};if(l<1){let c=xe(i),m=c-e%c;return m<=0&&(m=c),{width:m,alignment:"default"}}return {width:l,leader:o.leader,alignment:o.val}}var rt="Calibri",ot=11;function st(e){let t=e.attrs,n=e.runs?.find(r=>r.kind==="text"),i=t?.listMarkerFontFamily??n?.fontFamily??t?.defaultFontFamily??rt,a=t?.listMarkerFontSize??n?.fontSize??t?.defaultFontSize??ot;return {fontFamily:i,fontSize:a}}function ke(e){let t=e.attrs;if(!t?.listMarker||t.listMarkerHidden)return 0;let n=t.indent,i=n?.hanging??0;if(i>0)return i;let{fontFamily:a,fontSize:r}=st(e),o={fontFamily:a,fontSize:r},s=_(t.listMarker,o),l=t.listMarkerSuffix??"tab";if(l==="nothing")return s;if(l==="space")return s+_(" ",o);let c=n?.left??0,m=n?.firstLine??0,f=c+m,S=f+s,T=(t.tabs??[]).filter(F=>F.val!=="clear"&&F.val!=="bar").map(F=>chunkIMKU4O3P_js.a(F.pos)).filter(F=>F>=S).sort((F,w)=>F-w)[0],M=chunkIMKU4O3P_js.a(t.defaultTabStopTwips??chunkIN6IYQ2X_js.a),x=M>0?(Math.floor(S/M)+1)*M:void 0,B;return T!==void 0&&x!==void 0?B=Math.min(T,x):B=T??x,B===void 0?s+N(r)*.5:B-f}var D=11,X="Calibri",ut=1.15,te=1,Y=.5;function Ee(e,t,n,i=false){let a=1,r=e.length,o=0;for(;a<=r;){let s=a+r>>>1;_(e.slice(0,s),t)<=n?(o=s,a=s+1):r=s-1;}return i&&o===0?1:o}function V(e){return {fontFamily:e.fontFamily??X,fontSize:e.fontSize??D,bold:e.bold,italic:e.italic,letterSpacing:e.letterSpacing}}function Ae(e,t,n){let i=N(e),a=n?.ascent??i*.8,r=n?.descent??i*.2,o=n?.singleLineRatio??1.15,s=i*o,l;if(t?.lineRule==="exact"&&t.line!==void 0)l=t.line;else if(t?.lineRule==="atLeast"&&t.line!==void 0){let c=s*te;l=Math.max(t.line,c);}else t?.line!==void 0&&t?.lineUnit==="multiplier"?l=s*t.line:t?.line!==void 0&&t?.lineUnit==="px"?l=t.line:l=s*te;return {ascent:a,descent:r,lineHeight:l}}function We(e,t,n){let i=K({fontSize:e,fontFamily:n??X}),a=Ae(e,t,i),r=t?.lineRule??"auto";if(r==="auto"||r==="atLeast"){let o=N(e),s=Math.max(a.lineHeight,o*ut);if(s!==a.lineHeight)return {...a,lineHeight:s}}return a}function J(e){return e.kind==="text"}function _e(e){return e.kind==="tab"}function Oe(e){return e.kind==="image"}function ze(e){return e.kind==="lineBreak"}function Ne(e){return e.kind==="field"}function lt(e){return !e.text||e.text.replace(/\u00a0/g," ").trim().length===0}function ct(e,t){let n=0;for(let i=t+1;i<e.length;i++){let a=e[i];if(_e(a)||ze(a))break;if(J(a))n+=_(a.text||"",V(a));else if(Ne(a)){let r={fontFamily:a.fontFamily??X,fontSize:a.fontSize??D,bold:a.bold,italic:a.italic};n+=_(a.fallback||"1",r);}else Oe(a)&&(n+=a.width||0);}return n}function gt(e){let t=[];for(let n=0;n<e.length;n++){let i=e[n];(i===" "||i==="-"||i===" ")&&t.push(n+1);}return t}function De(e,t,n){let i=Math.max(1,n),a=Math.max(0,e),r=Math.max(0,t);return a>=i||r>=i||a+r>=i?{leftMargin:0,rightMargin:0}:{leftMargin:a,rightMargin:r}}function ft(e,t,n){let i=e.runs,a=e.attrs,r=a?.spacing,o=n?.floatingZones,s=n?.paragraphYOffset??0,l=a?.indent,c=l?.left??0,m=l?.right??0,f=(l?.firstLine??0)-(l?.hanging??0),S=Math.max(1,t-c-m),T=(l?.hanging??0)===0?ke(e):0,M=Math.max(1,S-f-T),x=0,B=0,F=N(D)*te,w=(g,p)=>{if(!o||o.length===0)return;let b=s+x,d=He(b,g,o,p,U)-b;d>0&&(x+=d,B+=d);};w(F,M);let R=ee(x,F,o,s),C=Math.max(1,Q(R,M)),L=[];if(i.length===0){if(a?.suppressEmptyParagraphHeight)return L.push({fromRun:0,fromChar:0,toRun:0,toChar:0,width:0,ascent:0,descent:0,lineHeight:0}),{kind:"paragraph",lines:L,totalHeight:0};let g=a?.defaultFontSize??D,p=a?.defaultFontFamily??X,b=We(g,r,p);L.push({fromRun:0,fromChar:0,toRun:0,toChar:0,width:0,...b});let d=b.lineHeight;return r?.before&&(d+=r.before),r?.after&&(d+=r.after),{kind:"paragraph",lines:L,totalHeight:d}}if(i.length===1&&J(i[0])&<(i[0])){let g=i[0],p=g.fontSize??a?.defaultFontSize??D,b=g.fontFamily??a?.defaultFontFamily??X,d=We(p,r,b);L.push({fromRun:0,fromChar:0,toRun:0,toChar:0,width:0,...d});let y=d.lineHeight;return r?.before&&(y+=r.before),r?.after&&(y+=r.after),{kind:"paragraph",lines:L,totalHeight:y}}let u={fromRun:0,fromChar:0,toRun:0,toChar:0,width:0,maxFontSize:D,maxFontMetrics:null,maxImageHeightPx:0,availableWidth:C,leftOffset:R.leftMargin,rightOffset:R.rightMargin,segmentZones:R.segments},v=()=>{let g=Ae(u.maxFontSize,r,u.maxFontMetrics),p={...g};if(u.maxImageHeightPx>p.lineHeight){let d=u.maxImageHeightPx,y=p.descent;u.fromRun===u.toRun?(p.lineHeight=d+y*2,p.ascent=d+y):(p.lineHeight=d+y,p.ascent=d);}let b={fromRun:u.fromRun,fromChar:u.fromChar,toRun:u.toRun,toChar:u.toChar,width:u.width,...p};u.leftOffset>0&&(b.leftOffset=u.leftOffset),u.rightOffset>0&&(b.rightOffset=u.rightOffset),u.segmentZones?.length&&(b.segments=Z(b,u.segmentZones)),B>0&&(b.floatSkipBefore=B,B=0),L.push(b),x+=g.lineHeight;},Z=(g,p)=>{let b=p[0],d=p[1];if(!b)return;if(!d||g.width<=b.availableWidth+Y)return [{fromRun:g.fromRun,fromChar:g.fromChar,toRun:g.toRun,toChar:g.toChar,width:g.width,leftOffset:b.leftOffset,availableWidth:b.availableWidth}];if(g.fromRun!==g.toRun)return;let y=i[g.fromRun];if(!y||!J(y))return;let z=y,I=z.text.slice(g.fromChar,g.toChar),H=V(z),k=Ee(I,H,b.availableWidth);if(k<=0||k>=I.length)return;let O=g.fromChar+k,A=I.slice(0,k),ie=I.slice(k);return [{fromRun:g.fromRun,fromChar:g.fromChar,toRun:g.toRun,toChar:O,width:_(A,H),leftOffset:b.leftOffset,availableWidth:b.availableWidth},{fromRun:g.fromRun,fromChar:O,toRun:g.toRun,toChar:g.toChar,width:_(ie,H),leftOffset:d.leftOffset,availableWidth:d.availableWidth}]},W=(g,p)=>{v();let b=N(D)*te;w(b,S);let d=ee(x,b,o,s),y=Math.max(1,Q(d,S));u={fromRun:g,fromChar:p,toRun:g,toChar:p,width:0,maxFontSize:D,maxFontMetrics:null,maxImageHeightPx:0,availableWidth:y,leftOffset:d.leftMargin,rightOffset:d.rightMargin,segmentZones:d.segments};},h=g=>{let p=g.fontSize??D;(!u.maxFontMetrics||p>u.maxFontSize)&&(u.maxFontSize=p,u.maxFontMetrics=K(g));};for(let g=0;g<i.length;g++){let p=i[g];if(ze(p)){u.toRun=g,u.toChar=0,W(g+1,0);continue}if(_e(p)){let b=V(p);h(b);let d=ct(i,g),y=u.width+(u.leftOffset??0),z=L.length===0,I=c+(z?f:0)+y,H={explicitStops:a?.tabs,leftIndent:Se(c)},k=Ie(I,H,{followingWidth:d}).width;if(y+k>u.availableWidth+Y){let O=u.availableWidth-y-d;O>1&&(k=O);}u.width+k>u.availableWidth+Y&&(W(g,0),h(b)),u.width+=k,u.toRun=g,u.toChar=1;continue}if(Oe(p)){let b=p.wrapType,d=p.displayMode==="float"||chunkJFZIXFRC_js.c(b);if(p.position&&d){u.toRun=g,u.toChar=1;continue}if(b==="topAndBottom"||p.displayMode==="block"){u.width>0&&W(g,0);let H=p.height,k=p.distTop??6,O=p.distBottom??6;u.toRun=g,u.toChar=1,u.maxImageHeightPx=H+k+O,W(g+1,0);continue}let y=p.width,I=p.height+(p.distTop??0)+(p.distBottom??0);I>u.maxImageHeightPx&&(u.maxImageHeightPx=I),u.width+y>u.availableWidth+Y&&W(g,0),u.width+=y,u.toRun=g,u.toChar=1;continue}if(Ne(p)){let b=p.fallback||"1",d={fontFamily:p.fontFamily??X,fontSize:p.fontSize??D,bold:p.bold,italic:p.italic};h(d);let y=_(b,d);u.width>0&&u.width+y>u.availableWidth+Y&&(W(g,0),h(d)),u.width+=y,u.toRun=g,u.toChar=1;continue}if(J(p)){let b=p,d=b.text,y=V(b);if(h(y),!d||d.length===0){u.toRun=g,u.toChar=0;continue}let z=gt(d),I=0;for(;I<d.length;){let H=d.length;for(let A of z)if(A>I){H=A;break}let k=d.slice(I,H),O=_(k,y);if(O>u.availableWidth+Y){let A=0;for(;A<k.length;){let ie=u.availableWidth-u.width+Y,je=k.slice(A),ae=Ee(je,y,ie);if(ae===0){if(u.width>0){W(g,I+A),h(y);continue}ae=1;}let re=A+ae,Ke=k.slice(A,re),Ve=_(Ke,y);u.width+=Ve,u.toRun=g,u.toChar=I+re,A=re,A<k.length&&(W(g,I+A),h(y));}I=H;continue}u.width>0&&u.width+O>u.availableWidth+Y&&(W(g,I),h(y)),u.width+=O,u.toRun=g,u.toChar=H,I=H;}}}v();let E=L.reduce((g,p)=>g+p.lineHeight+(p.floatSkipBefore??0),0);return r?.before&&(E+=r.before),r?.after&&(E+=r.after),{kind:"paragraph",lines:L,totalHeight:E}}function ln(e,t){return e.map(n=>ft(n,t))}function cn(e){let t=V(e);return ve(e.text,t).charWidths}function mn(e,t){return e.map(n=>{let i=n.x-n.distLeft,a=n.x+n.width+n.distRight,r=n.y-n.distTop,o=n.y+n.height+n.distBottom,s=0,l=0,c,m=n.wrapText??"bothSides";m==="right"?s=Me(a):m==="left"?l=Te(i,t):m==="largest"?{leftMargin:s,rightMargin:l}=ht(i,a,t):pt(i,a,t)?c=dt(i,a,t):n.side==="left"?s=Me(a):l=Te(i,t);let f=De(s,l,t);return {leftMargin:f.leftMargin,rightMargin:f.rightMargin,topY:r,bottomY:o,segments:c}})}function Q(e,t){return e.segments?.reduce((i,a)=>i+a.availableWidth,0)??t-e.leftMargin-e.rightMargin}function ee(e,t,n,i){if(!n||n.length===0)return {leftMargin:0,rightMargin:0};let a=0,r=0,o,s=i+e,l=s+t;for(let c of n)if(!(l<=c.topY||s>=c.bottomY)){if(c.segments?.length){o=o?mt(o,c.segments):c.segments;continue}a=Math.max(a,c.leftMargin),r=Math.max(r,c.rightMargin);}return {leftMargin:a,rightMargin:r,segments:o}}function He(e,t,n,i,a){if(!n||n.length===0)return e;let r=e;for(let o=0;o<n.length+2;o++){let s=ee(r,t,n,0);if(Q(s,i)>=a)return r;let c=r+t,m=1/0;for(let f of n)c<=f.topY||r>=f.bottomY||f.bottomY>r&&f.bottomY<m&&(m=f.bottomY);if(!Number.isFinite(m)||m<=r)return r;r=m;}return r}function mt(e,t){let n=[];for(let i of e)for(let a of t){let r=Math.max(i.leftOffset,a.leftOffset),o=Math.min(i.leftOffset+i.availableWidth,a.leftOffset+a.availableWidth);o>r&&n.push({leftOffset:r,availableWidth:o-r});}return n}var U=24;function pt(e,t,n){return e>U&&t+U<n}function dt(e,t,n){return [{leftOffset:0,availableWidth:Math.max(0,e)},{leftOffset:Math.max(0,t),availableWidth:Math.max(0,n-t)}].filter(i=>i.availableWidth>1)}function ht(e,t,n){let i=Math.max(0,e);return Math.max(0,n-t)>=i?{leftMargin:Me(t),rightMargin:0}:{leftMargin:0,rightMargin:Te(e,n)}}function Me(e){return Math.max(0,e)}function Te(e,t){return Math.max(0,t-e)}var Ye={count:1,gap:0};function bt(e,t,n){return {activeTopMargin:e.top,activeBottomMargin:e.bottom,activeLeftMargin:e.left,activeRightMargin:e.right,pendingTopMargin:null,pendingBottomMargin:null,pendingLeftMargin:null,pendingRightMargin:null,activePageSize:{...t},pendingPageSize:null,activeColumns:n?{...n}:{...Ye},pendingColumns:null,activeOrientation:null,pendingOrientation:null,hasAnyPages:false}}function xt(e,t){return t.count>1}function ne(e){return e?{count:e.count,gap:e.gap}:{...Ye}}function St(e,t,n){let i={...t},a=e.type??"continuous",r=e.margins,o=e.pageSize,s=e.orientation;r&&(typeof r.top=="number"&&(i.pendingTopMargin=Math.max(0,r.top)),typeof r.bottom=="number"&&(i.pendingBottomMargin=Math.max(0,r.bottom)),typeof r.left=="number"&&(i.pendingLeftMargin=Math.max(0,r.left)),typeof r.right=="number"&&(i.pendingRightMargin=Math.max(0,r.right))),o&&(i.pendingPageSize={w:o.w,h:o.h}),s&&(i.pendingOrientation=s);let l=xt((e.margins,void 0),i.activeColumns);switch(a){case "nextPage":return i.pendingColumns=ne(void 0),{decision:{forcePageBreak:true,forceMidPageRegion:false},state:i};case "evenPage":return i.pendingColumns=ne(void 0),{decision:{forcePageBreak:true,forceMidPageRegion:false,requiredParity:"even"},state:i};case "oddPage":return i.pendingColumns=ne(void 0),{decision:{forcePageBreak:true,forceMidPageRegion:false,requiredParity:"odd"},state:i};default:return l?(i.pendingColumns=ne(void 0),{decision:{forcePageBreak:false,forceMidPageRegion:true},state:i}):{decision:{forcePageBreak:false,forceMidPageRegion:false},state:i}}}function Mt(e){let t={...e};return t.pendingTopMargin!==null&&(t.activeTopMargin=t.pendingTopMargin,t.pendingTopMargin=null),t.pendingBottomMargin!==null&&(t.activeBottomMargin=t.pendingBottomMargin,t.pendingBottomMargin=null),t.pendingLeftMargin!==null&&(t.activeLeftMargin=t.pendingLeftMargin,t.pendingLeftMargin=null),t.pendingRightMargin!==null&&(t.activeRightMargin=t.pendingRightMargin,t.pendingRightMargin=null),t.pendingPageSize!==null&&(t.activePageSize=t.pendingPageSize,t.pendingPageSize=null),t.pendingColumns!==null&&(t.activeColumns=t.pendingColumns,t.pendingColumns=null),t.pendingOrientation!==null&&(t.activeOrientation=t.pendingOrientation,t.pendingOrientation=null),t}function Tt(e){return {top:e.pendingTopMargin??e.activeTopMargin,bottom:e.pendingBottomMargin??e.activeBottomMargin,left:e.pendingLeftMargin??e.activeLeftMargin,right:e.pendingRightMargin??e.activeRightMargin}}function yt(e){return e.pendingPageSize??e.activePageSize}function Pt(e){return e.pendingColumns??e.activeColumns}function Ft(e,t){for(let n=0;n<e.pages.length;n++)for(let i of e.pages[n].fragments){if(i.pmStart==null)continue;let a=i.pmStart,r=i.pmEnd??a+1;if(t>=a&&t<r)return n}return null}var Bt={w:816,h:1056},G={top:96,right:96,bottom:96,left:96},Xe={count:1,gap:0};function Ct(e,t,n){let i=[],a=[],r=t;for(let o=0;o<e.length;o++){if(e[o].kind!=="sectionBreak")continue;let s=e[o],l={pageSize:s.pageSize??r.pageSize,margins:s.margins??r.margins,columns:s.columns};i.push(l),a.push(o),r=l;}return i.push(n),{configs:i,breakIndices:a}}function Ge(e){if(e.runs.length===0)return true;if(e.runs.length!==1)return false;let t=e.runs[0];return t.kind==="text"&&(t.text??"")===""}function Ze(e){let t=e.attrs?.spacing?.before??0;return Ge(e)&&!e.attrs?.spacingExplicit?.before?0:t}function Ue(e){let t=e.attrs?.spacing?.after??0;return Ge(e)&&!e.attrs?.spacingExplicit?.after?0:t}function wt(e){for(let t=0;t<e.length-1;t++){let n=e[t],i=e[t+1];if(n.kind!=="paragraph"||i.kind!=="paragraph")continue;let a=n.attrs,r=i.attrs;a?.contextualSpacing&&r?.contextualSpacing&&a.styleId&&a.styleId===r.styleId&&(a.spacing&&(a.spacing={...a.spacing,after:0}),r.spacing&&(r.spacing={...r.spacing,before:0}));}}function yn(e,t,n={}){if(e.length!==t.length)throw new Error(`layoutDocument: expected one measure per block (blocks=${e.length}, measures=${t.length})`);let i=n.pageSize??Bt,a={top:n.margins?.top??G.top,right:n.margins?.right??G.right,bottom:n.margins?.bottom??G.bottom,left:n.margins?.left??G.left,header:n.margins?.header??n.margins?.top??G.top,footer:n.margins?.footer??n.margins?.bottom??G.bottom};n.headerContentHeights,n.footerContentHeights,n.titlePage,n.evenAndOddHeaders;let r={...a},o=n.finalPageSize??i,s=n.finalMargins??r;if(i.w-r.left-r.right<=0)throw new Error("layoutDocument: page size and margins yield no content area");let c={pageSize:i,margins:r,columns:n.columns},m={pageSize:o,margins:s,columns:n.columns},{configs:f,breakIndices:S}=Ct(e,c,m),T=[...S.map(R=>e[R].type),n.bodyBreakType],M=f[0]??c,x=ce({pageSize:M.pageSize,margins:M.margins,columns:M.columns??Xe,footnoteReservedHeights:n.footnoteReservedHeights});wt(e);let B=ge(e),F=me(B),w=0;for(let R=0;R<e.length;R++){let C=e[R],L=t[R];pe(C)&&x.forcePageBreak();let u=B.get(R);if(u&&!F.has(R)){let v=fe(u,e,t),Z=x.getCurrentState(),W=x.getAvailableHeight(),h=Z.contentBottom-Z.topMargin;v<=h&&v>W&&Z.page.fragments.length>0&&x.forcePageBreak();}switch(C.kind){case "paragraph":Lt(C,L,x,x.getContentWidth());break;case "table":C.floating?kt(C,L,x,x.getContentWidth()):It(C,L,x);break;case "image":Et(C,L,x);break;case "textBox":Ht(C,L,x);break;case "pageBreak":x.forcePageBreak();break;case "columnBreak":x.forceColumnBreak();break;case "sectionBreak":{let v=T[w+1]??T[w];At(C,x,f[w+1]??M,v),w++;break}default:chunkDROCYKAR_js.c(C,"runLayoutPipeline");}}return x.pages.length===0&&x.getCurrentState(),{pageSize:i,pages:x.pages,columns:n.columns,pageGap:n.pageGap}}function Lt(e,t,n,i){if(t.kind!=="paragraph")throw new Error("layoutParagraph: expected paragraph measure");let a=t.lines;if(a.length===0){let l=Ze(e),c=Ue(e),m=n.getCurrentState(),f={kind:"paragraph",blockId:e.id,x:n.getColumnX(m.columnIndex),y:m.cursorY+l,width:i,height:0,fromLine:0,toLine:0,pmStart:e.pmStart,pmEnd:e.pmEnd};n.addFragment(f,0,l,c);return}let r=Ze(e),o=Ue(e),s=0;for(;s<a.length;){let l=n.getCurrentState(),c=n.getAvailableHeight(),m=0,f=0;for(let w=s;w<a.length;w++){let R=a[w].lineHeight+(a[w].floatSkipBefore??0),C=m+R;if((s===0&&w===s?C+r:C)<=c||f===0)m=C,f++;else break}let S=s===0,T=s+f>=a.length,M=S?r:0,x=T?o:0,B={kind:"paragraph",blockId:e.id,x:n.getColumnX(l.columnIndex),y:0,width:i,height:m,fromLine:s,toLine:s+f,pmStart:e.pmStart,pmEnd:e.pmEnd,continuesFromPrev:!S,continuesOnNext:!T},F=n.addFragment(B,m,M,x);B.y=F.y,s+=f,s<a.length&&n.ensureFits(a[s].lineHeight);}}function Rt(e){let t=0;for(let n of e.rows)if(n.isHeader)t++;else break;return t}function vt(e,t){let n=0;for(let i=0;i<t&&i<e.rows.length;i++)n+=e.rows[i].height;return n}function It(e,t,n){if(t.kind!=="table")throw new Error("layoutTable: expected table measure");let i=t.rows;if(i.length===0)return;let a=Rt(e),r=vt(t,a),o=0;for(;o<i.length;){let s=n.getCurrentState(),l=n.getAvailableHeight(),c=o===0,m=c?s.trailingSpacing:0,f=l-m,S=!c&&a>0?r:0,T=0,M=0;for(let C=o;C<i.length;C++){let L=i[C].height;if(T+L+S<=f||M===0)T+=L,M++;else break}let x=T+S,B=o+M>=i.length,F=n.getColumnX(s.columnIndex);e.justification==="center"?F=F+(n.columnWidth-t.totalWidth)/2:e.justification==="right"?F=F+n.columnWidth-t.totalWidth:e.indent&&(F+=e.indent);let w={kind:"table",blockId:e.id,x:F,y:0,width:t.totalWidth,height:x,fromRow:o,toRow:o+M,pmStart:e.pmStart,pmEnd:e.pmEnd,continuesFromPrev:!c,continuesOnNext:!B,headerRowCount:!c&&a>0?a:void 0},R=n.addFragment(w,x,0,0);if(w.y=R.y,w.x=F,o+=M,o<i.length){let C=i[o].height+(a>0?r:0);n.ensureFits(C);}}}function kt(e,t,n,i){if(t.kind!=="table")throw new Error("layoutFloatingTable: expected table measure");let a=n.getCurrentState(),r=e.floating,o=a.page,s=o.margins,l=t.totalWidth,c=t.totalHeight,m=o.size.h-s.top-s.bottom,f=s.left,S=s.top;r?.horzAnchor==="page"&&(f=0),r?.vertAnchor==="page"&&(S=0),r?.vertAnchor==="text"&&(S=a.cursorY);let T=n.getColumnX(a.columnIndex);if(r?.tblpX!==void 0)T=f+r.tblpX;else if(r?.tblpXSpec){let v=r.tblpXSpec;v==="left"||v==="inside"?T=f:v==="right"||v==="outside"?T=f+i-l:v==="center"&&(T=f+(i-l)/2);}else e.justification==="center"?T=f+(i-l)/2:e.justification==="right"&&(T=f+i-l);let M=a.cursorY,x=false;if(r?.tblpY!==void 0)M=S+r.tblpY,x=true;else if(r?.tblpYSpec){x=true;let v=r.tblpYSpec;v==="top"?M=S:v==="bottom"?M=S+m-c:v==="center"&&(M=S+(m-c)/2);}x||(M=n.ensureFits(c).cursorY);let B=s.left,F=s.left+i-l;Number.isFinite(F)&&(T=Math.max(B,Math.min(T,F)));let w={kind:"table",blockId:e.id,x:T,y:M,width:l,height:c,fromRow:0,toRow:e.rows.length,pmStart:e.pmStart,pmEnd:e.pmEnd,isFloating:true};a.page.fragments.push(w);let R=r?.leftFromText??0,C=r?.rightFromText??0,L=T-s.left-R,u=s.left+i-(T+l)-C;if(L<U&&u<U){let v=M+c+(r?.bottomFromText??0);v>a.cursorY&&(a.cursorY=v);}}function Et(e,t,n){if(t.kind!=="image")throw new Error("layoutImage: expected image measure");if(e.anchor?.isAnchored){Wt(e,t,n);return}let i=n.ensureFits(t.height),a={kind:"image",blockId:e.id,x:n.getColumnX(i.columnIndex),y:0,width:t.width,height:t.height,pmStart:e.pmStart,pmEnd:e.pmEnd},r=n.addFragment(a,t.height,0,0);a.y=r.y;}function Wt(e,t,n){let i=n.getCurrentState(),a=e.anchor,r=a.offsetH??n.getColumnX(i.columnIndex),o=a.offsetV??i.cursorY,s={kind:"image",blockId:e.id,x:r,y:o,width:t.width,height:t.height,pmStart:e.pmStart,pmEnd:e.pmEnd,isAnchored:true,zIndex:a.behindDoc?-1:1};i.page.fragments.push(s);}function Ht(e,t,n){if(t.kind!=="textBox")throw new Error("layoutTextBox: expected textBox measure");if(q(e)){let o=n.getCurrentState(),s={kind:"textBox",blockId:e.id,x:n.getColumnX(o.columnIndex),y:o.cursorY,width:t.width,height:t.height,pmStart:e.pmStart,pmEnd:e.pmEnd,isFloating:true,zIndex:e.wrapType==="behind"?-1:1};o.page.fragments.push(s);return}let i=n.ensureFits(t.height),a={kind:"textBox",blockId:e.id,x:n.getColumnX(i.columnIndex),y:0,width:t.width,height:t.height,pmStart:e.pmStart,pmEnd:e.pmEnd},r=n.addFragment(a,t.height,0,0);a.y=r.y;}function At(e,t,n,i){switch(i??"nextPage"){case "nextPage":t.updatePageLayout(n.pageSize,n.margins),t.forcePageBreak();break;case "evenPage":{t.updatePageLayout(n.pageSize,n.margins),t.forcePageBreak().page.number%2!==0&&t.forcePageBreak();break}case "oddPage":{t.updatePageLayout(n.pageSize,n.margins),t.forcePageBreak().page.number%2===0&&t.forcePageBreak();break}case "continuous":t.updatePageLayout(n.pageSize,n.margins,false);break}t.updateColumns(n.columns??Xe);}exports.A=fe;exports.B=me;exports.C=$e;exports.D=pe;exports.E=q;exports.F=qe;exports.G=bt;exports.H=St;exports.I=Mt;exports.J=Tt;exports.K=yt;exports.L=Pt;exports.M=Ft;exports.N=Ct;exports.O=yn;exports.P=vt;exports.a=he;exports.b=Yt;exports.c=be;exports.d=K;exports.e=_;exports.f=Zt;exports.g=ve;exports.h=Ut;exports.i=Xt;exports.j=Gt;exports.k=jt;exports.l=N;exports.m=it;exports.n=Kt;exports.o=Vt;exports.p=mn;exports.q=ee;exports.r=Ie;exports.s=st;exports.t=ke;exports.u=De;exports.v=ft;exports.w=ln;exports.x=cn;exports.y=ce;exports.z=ge;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var chunk2KHWHVTA_js=require('./chunk-2KHWHVTA.js'),
|
|
1
|
+
'use strict';var chunk2KHWHVTA_js=require('./chunk-2KHWHVTA.js'),chunkYVYB4YCI_js=require('./chunk-YVYB4YCI.js'),prosemirrorState=require('prosemirror-state');function M(e){let{$from:t}=e.selection,o=null,i=null,a=null,l=-1,n=-1;for(let r=t.depth;r>0;r--){let u=t.node(r);if(u.type.name==="tableCell"||u.type.name==="tableHeader"){a=u;let p=t.node(r-1);if(p?.type.name==="tableRow"){let m=0;p.forEach((f,b,g)=>{if(n===-1){if(g===t.index(r-1)){n=m;return}m+=f.attrs.colspan||1;}});}}else if(u.type.name==="tableRow")t.node(r-1)?.type.name==="table"&&(l=t.index(r-1));else if(u.type.name==="table"){o=u,i=t.before(r);break}}return !o||i==null||!a||l<0||n<0?null:{table:o,tablePos:i,cell:a,row:l,col:n,rowspan:a.attrs.rowspan||1,colspan:a.attrs.colspan||1}}function k(e){let t=[],o=[],i=0;for(let a=0;a<e.childCount;a++){let l=e.child(a),n=0;l.forEach(r=>{for(;t[a]?.[n];)n++;let u=r.attrs.rowspan||1,p=r.attrs.colspan||1;o.push({data:r,row:a,col:n,rowspan:u,colspan:p});for(let m=a;m<a+u;m++){let f=t[m]??[];t[m]=f;for(let b=n;b<n+p;b++)f[b]=true;}n+=p,i=Math.max(i,n);});}return {anchors:o,totalCols:i}}function B(e,t,o,i,a){let l={...e.attrs},n=a.reduce((p,m)=>p+m,0),r=chunk2KHWHVTA_js.a(a,t,o),u=o!==(e.attrs.colspan||1)||i!==(e.attrs.rowspan||1);return l.colspan=o,l.rowspan=i,l.colwidth=null,n>0&&(l.width=Math.round(r/n*5e3),l.widthType="pct"),u&&(l._originalFormatting=null),l}function D(e,t,o,i){let a=t+1;for(let l=0;l<e.childCount;l++){let n=e.child(l),r=a+1,u=0;for(let p=0;p<n.childCount;p++){let m=n.child(p);if(l===o&&u===i)return r;u+=m.attrs.colspan||1,r+=m.nodeSize;}a+=n.nodeSize;}return null}function O(e,t){let o=e.attrs.width??9360;return Array.isArray(e.attrs.columnWidths)&&e.attrs.columnWidths.length>0?[...e.attrs.columnWidths]:Array.from({length:t},()=>Math.floor(o/Math.max(t,1)))}function j(e){let t=M(e);return t?{...chunk2KHWHVTA_js.e(t.rowspan,t.colspan),capturedCellRow:t.row,capturedCellCol:t.col}:null}function V(e,t,o,i,a,l){if(o<1||i<1)return false;let n=M(e);if(!n||!t)return false;let r=n;if(a!=null&&l!=null&&(a!==n.row||l!==n.col)){let{anchors:c}=k(n.table),d=c.find(x=>x.row===a&&x.col===l);if(!d)return false;r={...n,cell:d.data,row:d.row,col:d.col,rowspan:d.rowspan,colspan:d.colspan};}if(o<r.rowspan||i<r.colspan||o===1&&i===1)return false;let{anchors:u,totalCols:p}=k(r.table),m=O(r.table,p),f=chunk2KHWHVTA_js.b(m,r.col,r.colspan,i),b=u.find(c=>c.row===r.row&&c.col===r.col);if(!b)return false;let g=chunk2KHWHVTA_js.c(u,b,o,i,r.table.childCount,c=>{if(c)return b.data;let d=b.data.type.schema.nodes.paragraph.create(),x=B(b.data,0,1,1,f);return b.data.type.create(x,d)}),T=r.row+r.rowspan,y=Array.from({length:g.newRowCount},(c,d)=>d<T?{...r.table.child(d)?.attrs??{}}:d<r.row+o?{...r.table.child(T-1)?.attrs??{}}:{...r.table.child(d-g.deltaRows)?.attrs??{}}),C=Array.from({length:g.newRowCount},()=>[]);g.anchors.sort((c,d)=>c.row===d.row?c.col-d.col:c.row-d.row).forEach(c=>{let d=B(c.data,c.col,c.colspan,c.rowspan,f);C[c.row].push(c.data.type.create(d,c.data.content));});let z=C.map((c,d)=>r.table.type.schema.nodes.tableRow.create(y[d],c)),F=r.table.type.create({...r.table.attrs,columnWidths:f},z),h=e.tr.replaceWith(r.tablePos,r.tablePos+r.table.nodeSize,F),w=h.doc.nodeAt(r.tablePos);if(w){let c=D(w,r.tablePos,r.row,r.col);c!=null&&(h=h.setSelection(prosemirrorState.TextSelection.near(h.doc.resolve(c+1))));}return t(h.scrollIntoView()),true}var s=chunkYVYB4YCI_js.a.getCommands();function J(e,t){return s.insertTable(e,t)}function $(e,t){return s.addRowAbove()(e,t)}function q(e,t){return s.addRowBelow()(e,t)}function G(e,t){return s.deleteRow()(e,t)}function K(e,t){return s.addColumnLeft()(e,t)}function Q(e,t){return s.addColumnRight()(e,t)}function X(e,t){return s.deleteColumn()(e,t)}function Y(e,t){return s.deleteTable()(e,t)}function Z(e,t){return s.selectTable()(e,t)}function ee(e,t){return s.selectRow()(e,t)}function te(e,t){return s.selectColumn()(e,t)}function re(e,t){return s.mergeCells()(e,t)}function oe(e,t){return s.splitCell()(e,t)}function ne(e,t,o){return s.setCellBorder(e,t,o)}function ae(e,t){return s.setTableBorders(e,t)}function le(e,t){return s.removeTableBorders()(e,t)}function ie(e,t,o){return s.setAllTableBorders(o)(e,t)}function se(e,t,o){return s.setOutsideTableBorders(o)(e,t)}function ce(e,t,o){return s.setInsideTableBorders(o)(e,t)}function de(e){return s.setCellVerticalAlign(e)}function ue(e){return s.setCellMargins(e)}function pe(e){return s.setCellTextDirection(e)}function me(){return s.toggleNoWrap()}function fe(e,t){return s.setRowHeight(e,t)}function be(){return s.toggleHeaderRow()}function ge(){return s.distributeColumns()}function Ce(){return s.autoFitContents()}function Te(e){return s.setTableProperties(e)}function he(e){return s.applyTableStyle(e)}function ye(e){return s.setCellFillColor(e)}function xe(e){return s.setTableBorderColor(e)}function Se(e){return s.setTableBorderWidth(e)}var we=chunkYVYB4YCI_js.a.getCommands();function ve(e,t,o){return we.setImageWrapType(e,t,o)}function Ee(e){return (t,o)=>{let{from:i,to:a,empty:l}=t.selection;if(l)return false;let n=t.schema.marks.comment;if(!n)return false;if(o){let r=t.tr.addMark(i,a,n.create({commentId:e}));o(r);}return true}}function Ae(e){return (t,o)=>{let i=t.schema.marks.comment;if(!i)return false;if(o){let a=t.tr;t.doc.descendants((l,n)=>{if(l.isText)for(let r of l.marks)r.type===i&&r.attrs.commentId===e&&a.removeMark(n,n+l.nodeSize,r);}),a.steps.length>0&&o(a);}return true}}function I(e,t,o){return (i,a)=>{let l=i.schema.marks.insertion,n=i.schema.marks.deletion;if(!l&&!n)return false;let r=o==="accept"?l:n,u=o==="accept"?n:l;if(a){let p=i.tr,m=[];i.doc.nodesBetween(e,t,(f,b)=>{if(!f.isText)return;let g=b+f.nodeSize,T=Math.max(e,b),y=Math.min(t,g);u&&f.marks.some(C=>C.type===u)&&m.push({from:T,to:y}),r&&f.marks.some(C=>C.type===r)&&p.removeMark(T,y,r);});for(let f of m.reverse())p.delete(f.from,f.to);p.steps.length>0&&a(p);}return true}}function P(e,t){return I(e,t,"accept")}function W(e,t){return I(e,t,"reject")}function Re(){return (e,t)=>P(0,e.doc.content.size)(e,t)}function ke(){return (e,t)=>W(0,e.doc.content.size)(e,t)}function L(e,t){let o=e.schema.marks.insertion,i=e.schema.marks.deletion;if(!o&&!i)return null;let a=null;return e.doc.descendants((l,n)=>{if(a)return false;if(l.isText&&!(n+l.nodeSize<=t)){for(let r of l.marks)if(r.type===o||r.type===i)return a={from:Math.max(n,t),to:n+l.nodeSize,type:r.type===o?"insertion":"deletion"},false}}),!a&&t>0?L(e,0):a}function N(e,t){let o=e.schema.marks.insertion,i=e.schema.marks.deletion;if(!o&&!i)return null;let a=null;return e.doc.descendants((l,n)=>{if(l.isText){if(n>=t)return false;for(let r of l.marks)(r.type===o||r.type===i)&&(a={from:n,to:n+l.nodeSize,type:r.type===o?"insertion":"deletion"});}}),!a&&t<e.doc.content.size?N(e,e.doc.content.size):a}exports.A=be;exports.B=ge;exports.C=Ce;exports.D=Te;exports.E=he;exports.F=ye;exports.G=xe;exports.H=Se;exports.I=ve;exports.J=Ee;exports.K=Ae;exports.L=P;exports.M=W;exports.N=Re;exports.O=ke;exports.P=L;exports.Q=N;exports.a=j;exports.b=V;exports.c=J;exports.d=$;exports.e=q;exports.f=G;exports.g=K;exports.h=Q;exports.i=X;exports.j=Y;exports.k=Z;exports.l=ee;exports.m=te;exports.n=re;exports.o=oe;exports.p=ne;exports.q=ae;exports.r=le;exports.s=ie;exports.t=se;exports.u=ce;exports.v=de;exports.w=ue;exports.x=pe;exports.y=me;exports.z=fe;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-TGPS3SRR.mjs';var e=a.getCommands();function g(t){return e.setAlignment(t)}var l=e.alignLeft(),u=e.alignCenter(),x=e.alignRight(),C=e.alignJustify();function f(t,n="auto"){return e.setLineSpacing(t,n)}var S=e.singleSpacing(),L=e.oneAndHalfSpacing(),b=e.doubleSpacing();function y(t=720){return e.increaseIndent(t)}function v(t=720){return e.decreaseIndent(t)}function A(t){return e.setIndentLeft(t)}function I(t){return e.setIndentRight(t)}function h(t,n){return e.setIndentFirstLine(t,n)}var R=e.toggleBulletList(),T=e.toggleNumberedList(),P=e.increaseListLevel(),B=e.decreaseListLevel(),k=e.removeList();function E(t){return e.setSpaceBefore(t)}function F(t){return e.setSpaceAfter(t)}function H(t,n){return e.applyStyle(t,n)}var J=e.clearStyle();function N(t){return e.insertSectionBreak(t)}var O=e.removeSectionBreak();function M(t,n="left",r="none"){return e.addTabStop(t,n,r)}function j(t){return e.removeTabStop(t)}var q=e.setRtl(),w=e.setLtr(),z=e.generateTOC();export{j as A,q as B,w as C,z as D,g as a,l as b,u as c,x as d,C as e,f,S as g,L as h,b as i,y as j,v as k,A as l,I as m,h as n,R as o,T as p,P as q,B as r,k as s,E as t,F as u,H as v,J as w,N as x,O as y,M as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {f,b,c,d,e,a as a$1,p,m as m$1}from'./chunk-TRQN2SFW.mjs';import {g,i,k,l,m}from'./chunk-LDKESXXK.mjs';import {a}from'./chunk-HL5PQT3A.mjs';function W(t,r){let e=j(r),s=new RegExp(`<w:p[\\s][^>]*w14:paraId="${e}"`,"g"),o=[],i;for(;(i=s.exec(t))!==null;)o.push(i.index);if(o.length===0||o.length>1)return null;let l=o[0],n=l,a=0;for(;n<t.length;){let f=t.indexOf("<",n);if(f===-1)break;if(t.startsWith("<w:p",f)){let w=t[f+4];if(w===">"||w===" "||w==="/"){let u=t.indexOf(">",f);if(u===-1)break;if(t[u-1]==="/"){if(a===0)return {start:l,end:u+1};n=u+1;}else a++,n=u+1;}else n=f+1;}else if(t.startsWith("</w:p>",f)){if(a--,a===0)return {start:l,end:f+6};n=f+6;}else n=f+1;}return null}function L(t,r){let e=W(t,r);return e?t.substring(e.start,e.end):null}function Y(t){let r=0,e=/<w:p[\s>]/g,s;for(;(s=e.exec(t))!==null;){let o=s.index,i=t[o+4];(i===">"||i===" ")&&r++;}return r}function B(t){let r=new Map,e=/w14:paraId="([^"]+)"/g,s;for(;(s=e.exec(t))!==null;){let o=s[1];r.set(o,(r.get(o)||0)+1);}return r}function V(t,r,e){if(e.size===0)return {safe:true};let s=B(t),o=B(r);for(let n of e){let a=s.get(n)||0;if(a===0)return {safe:false,reason:`paraId-not-found-in-original: ${n}`};if(a>1)return {safe:false,reason:`duplicate-paraId-in-original: ${n}`}}for(let n of e){let a=o.get(n)||0;if(a===0)return {safe:false,reason:`paraId-not-found-in-serialized: ${n}`};if(a>1)return {safe:false,reason:`duplicate-paraId-in-serialized: ${n}`}}let i=Y(t),l=Y(r);return i!==l?{safe:false,reason:`paragraph-count-mismatch: original=${i}, serialized=${l}`}:{safe:true}}function H(t,r,e){if(e.size===0)return t;if(!V(t,r,e).safe)return null;let o=[];for(let l of e){let n=W(t,l);if(!n)return null;let a=L(r,l);if(!a)return null;o.push({start:n.start,end:n.end,newXml:a});}o.sort((l,n)=>n.start-l.start);let i=t;for(let{start:l,end:n,newXml:a}of o)i=i.substring(0,l)+a+i.substring(n);return i}function j(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Z(t){for(let r of t)if(r.type==="paragraph"){for(let e of r.content)if(e.type==="run"){for(let s of e.content)if(s.type==="drawing"&&s.image?.src?.startsWith("data:")&&!s.image?.rId)return true}else if(e.type==="hyperlink"&&e.href&&!e.rId&&!e.anchor)return true}else if(r.type==="table"){for(let e of r.rows)for(let s of e.cells)if(Z(s.content))return true}return false}async function nt(t,r,e$1){let{changedParaIds:s,structuralChange:o,hasUntrackedChanges:i$1}=e$1;if(o||i$1||!r)return null;let l$1=t.package.document.content;if(Z(l$1))return null;let n=t.package.document.comments,a$2=n&&n.length>0,f$1=f(t);try{let u=await(await import('jszip')).default.loadAsync(r),c$1=new Map;if(s.size>0){let d=u.file("word/document.xml");if(!d)return null;let p=await d.async("text"),y=g(t),g$1=H(p,y,s);if(!g$1)return null;c$1.set("word/document.xml",g$1);}if(a$2){let{xml:d$1,paraInfos:p}=i(n);c$1.set("word/comments.xml",d$1);let y=k(p);y&&c$1.set("word/commentsExtended.xml",y);let g=l(p);g&&c$1.set("word/commentsIds.xml",g);let I=m(p,n);I&&c$1.set("word/commentsExtensible.xml",I);let S=u.file("[Content_Types].xml");if(S){let m=c$1.get("[Content_Types].xml")??await S.async("text"),x=!1,C=[["/word/comments.xml",b],["/word/commentsExtended.xml",c],["/word/commentsIds.xml",d],["/word/commentsExtensible.xml",e]];for(let[h,b]of C)m.includes(h)||(m=m.replace("</Types>",`<Override PartName="${h}" ContentType="${b}"/></Types>`),x=!0);x&&c$1.set("[Content_Types].xml",m);}let T="word/_rels/document.xml.rels",N=u.file(T);if(N){let m=c$1.get(T)??await N.async("text"),x=!1,C=[["comments.xml",a.comments],["commentsExtended.xml",a.commentsExtended],["commentsIds.xml",a.commentsIds],["commentsExtensible.xml",a.commentsExtensible]];for(let[h,b]of C)if(!m.includes(h)){let J=a$1(m);m=m.replace("</Relationships>",`<Relationship Id="rId${J+1}" Type="${b}" Target="${h}"/></Relationships>`),x=!0;}x&&c$1.set(T,m);}}for(let[d,p]of f$1)c$1.set(d,p);let P=u.file("docProps/core.xml");if(P){let d=await P.async("text");c$1.set("docProps/core.xml",p(d,{updateModifiedDate:!0}));}return await m$1(u,c$1)}catch{return null}}export{V as a,H as b,nt as c};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
'use strict';var chunkEPX7BBJD_js=require('./chunk-EPX7BBJD.js'),chunkD536HC5M_js=require('./chunk-D536HC5M.js'),chunkTMISJEGL_js=require('./chunk-TMISJEGL.js');var He={dk1:"000000",lt1:"FFFFFF",dk2:"44546A",lt2:"E7E6E6",accent1:"4472C4",accent2:"ED7D31",accent3:"A5A5A5",accent4:"FFC000",accent5:"5B9BD5",accent6:"70AD47",hlink:"0563C1",folHlink:"954F72"},Q={majorFont:{latin:"Calibri Light",ea:"",cs:"",fonts:{}},minorFont:{latin:"Calibri",ea:"",cs:"",fonts:{}}},me={name:"Office Theme",colorScheme:He,fontScheme:Q},ut=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];function ft(e){if(!e)return null;switch(chunkTMISJEGL_js.d(e.name||"")){case "srgbClr":return chunkTMISJEGL_js.j(e,"a","val")??chunkTMISJEGL_js.j(e,null,"val")??null;case "sysClr":{let n=chunkTMISJEGL_js.j(e,"a","lastClr")??chunkTMISJEGL_js.j(e,null,"lastClr");if(n)return n;switch(chunkTMISJEGL_js.j(e,"a","val")??chunkTMISJEGL_js.j(e,null,"val")){case "windowText":case "menuText":case "captionText":case "btnText":return "000000";case "window":case "menu":case "btnFace":case "btnHighlight":return "FFFFFF";case "highlight":return "0078D7";case "highlightText":return "FFFFFF";case "grayText":return "808080";default:return null}}case "schemeClr":{chunkTMISJEGL_js.j(e,"a","val")??chunkTMISJEGL_js.j(e,null,"val");return null}default:return null}}function ct(e){let t={...He};if(!e)return t;for(let n of ut){let r=chunkTMISJEGL_js.e(e,"a",n);if(r){let o=chunkTMISJEGL_js.i(r);if(o.length>0){let a=ft(o[0]);a&&(t[n]=a);}}}return t}function Be(e){let t={latin:"",ea:"",cs:"",fonts:{}};if(!e)return t;let n=chunkTMISJEGL_js.e(e,"a","latin");n&&(t.latin=chunkTMISJEGL_js.j(n,"a","typeface")??chunkTMISJEGL_js.j(n,null,"typeface")??"");let r=chunkTMISJEGL_js.e(e,"a","ea");r&&(t.ea=chunkTMISJEGL_js.j(r,"a","typeface")??chunkTMISJEGL_js.j(r,null,"typeface")??"");let o=chunkTMISJEGL_js.e(e,"a","cs");o&&(t.cs=chunkTMISJEGL_js.j(o,"a","typeface")??chunkTMISJEGL_js.j(o,null,"typeface")??"");let a=chunkTMISJEGL_js.f(e,"a","font");for(let u of a){let l=chunkTMISJEGL_js.j(u,"a","script")??chunkTMISJEGL_js.j(u,null,"script"),f=chunkTMISJEGL_js.j(u,"a","typeface")??chunkTMISJEGL_js.j(u,null,"typeface");l&&f&&(t.fonts=t.fonts||{},t.fonts[l]=f);}return t}function pt(e){let t={...Q};if(!e)return t;let n=chunkTMISJEGL_js.e(e,"a","majorFont");n&&(t.majorFont=Be(n));let r=chunkTMISJEGL_js.e(e,"a","minorFont");return r&&(t.minorFont=Be(r)),t}function xn(e){if(!e)return {...me};try{let t=chunkTMISJEGL_js.c(e);if(!t)return {...me};let n=chunkTMISJEGL_js.j(t,"a","name")??chunkTMISJEGL_js.j(t,null,"name")??"Office Theme",r=chunkTMISJEGL_js.e(t,"a","themeElements"),o=chunkTMISJEGL_js.e(r,"a","clrScheme"),a=ct(o),u=chunkTMISJEGL_js.e(r,"a","fontScheme"),l=pt(u);return {name:n,colorScheme:a,fontScheme:l}}catch(t){return console.warn("Failed to parse theme:",t),{...me}}}function dt(e,t="latin"){if(!e?.fontScheme?.majorFont)return Q.majorFont?.latin??"Calibri Light";let n=e.fontScheme.majorFont;return t==="latin"?n.latin||"Calibri Light":t==="ea"?n.ea||"":t==="cs"?n.cs||"":n.fonts?.[t]?n.fonts[t]:n.latin||"Calibri Light"}function ve(e,t="latin"){if(!e?.fontScheme?.minorFont)return Q.minorFont?.latin??"Calibri";let n=e.fontScheme.minorFont;return t==="latin"?n.latin||"Calibri":t==="ea"?n.ea||"":t==="cs"?n.cs||"":n.fonts?.[t]?n.fonts[t]:n.latin||"Calibri"}function _(e,t){if(!t)return "Calibri";let n=t.toLowerCase().includes("major"),r=t.toLowerCase().includes("minor"),o="latin",a=t.toLowerCase();return a.includes("eastasia")?o="ea":(a.includes("bidi")||a.includes("cs"))&&(o="cs"),n?dt(e,o):r?ve(e,o):ve(e,"latin")}function Ae(e){if(!e)return;let t=chunkTMISJEGL_js.l(e,"w","w")??0,n=chunkTMISJEGL_js.j(e,"w","type")??"dxa",r="dxa";return (n==="auto"||n==="dxa"||n==="nil"||n==="pct")&&(r=n),{value:t,type:r}}function X(e){return Ae(e)}function W(e){let t=chunkTMISJEGL_js.j(e,"w","id"),n=t?parseInt(t,10):0,r=(chunkTMISJEGL_js.j(e,"w","author")??"").trim(),o=(chunkTMISJEGL_js.j(e,"w","date")??"").trim();return {id:Number.isInteger(n)&&n>=0?n:0,author:r.length>0?r:"Unknown",date:o.length>0?o:void 0}}function J(e){let t=W(e),n=(chunkTMISJEGL_js.j(e,"w","rsid")??"").trim();return n.length>0?{...t,rsid:n}:t}function D(e){if(!e)return;let r={style:chunkTMISJEGL_js.j(e,"w","val")??"none"},o=chunkTMISJEGL_js.l(e,"w","sz");o!==void 0&&(r.size=o);let a=chunkTMISJEGL_js.l(e,"w","space");a!==void 0&&(r.space=a);let u=chunkTMISJEGL_js.j(e,"w","color"),l=chunkTMISJEGL_js.j(e,"w","themeColor"),f=chunkTMISJEGL_js.j(e,"w","themeTint"),c=chunkTMISJEGL_js.j(e,"w","themeShade");(u||l||f||c)&&(r.color={rgb:u??void 0,themeColor:l,themeTint:f??void 0,themeShade:c??void 0});let p=chunkTMISJEGL_js.j(e,"w","shadow");(p==="1"||p==="true")&&(r.shadow=true);let d=chunkTMISJEGL_js.j(e,"w","frame");return (d==="1"||d==="true")&&(r.frame=true),r}function ee(e){if(!e)return;let t={},n=D(chunkTMISJEGL_js.e(e,"w","top"));n&&(t.top=n);let r=D(chunkTMISJEGL_js.e(e,"w","bottom"));r&&(t.bottom=r);let o=D(chunkTMISJEGL_js.e(e,"w","left")??chunkTMISJEGL_js.e(e,"w","start"));o&&(t.left=o);let a=D(chunkTMISJEGL_js.e(e,"w","right")??chunkTMISJEGL_js.e(e,"w","end"));a&&(t.right=a);let u=D(chunkTMISJEGL_js.e(e,"w","insideH"));u&&(t.insideH=u);let l=D(chunkTMISJEGL_js.e(e,"w","insideV"));if(l&&(t.insideV=l),Object.keys(t).length!==0)return t}function te(e){if(!e)return;let t={},n=X(chunkTMISJEGL_js.e(e,"w","top"));n&&(t.top=n);let r=X(chunkTMISJEGL_js.e(e,"w","bottom"));r&&(t.bottom=r);let o=X(chunkTMISJEGL_js.e(e,"w","left")??chunkTMISJEGL_js.e(e,"w","start"));o&&(t.left=o);let a=X(chunkTMISJEGL_js.e(e,"w","right")??chunkTMISJEGL_js.e(e,"w","end"));if(a&&(t.right=a),Object.keys(t).length!==0)return t}function ne(e){if(!e)return;let t={},n=chunkTMISJEGL_js.j(e,"w","fill");n&&n!=="auto"&&(t.fill={rgb:n});let r=chunkTMISJEGL_js.j(e,"w","themeFill");if(r){t.fill={themeColor:r};let u=chunkTMISJEGL_js.j(e,"w","themeFillTint");u&&t.fill&&(t.fill.themeTint=u);let l=chunkTMISJEGL_js.j(e,"w","themeFillShade");l&&t.fill&&(t.fill.themeShade=l);}let o=chunkTMISJEGL_js.j(e,"w","color");o&&o!=="auto"&&(t.color={rgb:o});let a=chunkTMISJEGL_js.j(e,"w","val");if(a&&(t.pattern=a),Object.keys(t).length!==0)return t}function ge(e){if(!e)return;let t={},n=chunkTMISJEGL_js.j(e,"w","firstRow");(n==="1"||n==="true")&&(t.firstRow=true);let r=chunkTMISJEGL_js.j(e,"w","lastRow");(r==="1"||r==="true")&&(t.lastRow=true);let o=chunkTMISJEGL_js.j(e,"w","firstColumn");(o==="1"||o==="true")&&(t.firstColumn=true);let a=chunkTMISJEGL_js.j(e,"w","lastColumn");(a==="1"||a==="true")&&(t.lastColumn=true);let u=chunkTMISJEGL_js.j(e,"w","noHBand");(u==="1"||u==="true")&&(t.noHBand=true);let l=chunkTMISJEGL_js.j(e,"w","noVBand");(l==="1"||l==="true")&&(t.noVBand=true);let f=chunkTMISJEGL_js.j(e,"w","val");if(f){let c=parseInt(f,16);isNaN(c)||(c&32&&(t.firstRow=true),c&64&&(t.lastRow=true),c&128&&(t.firstColumn=true),c&256&&(t.lastColumn=true),c&512&&(t.noHBand=true),c&1024&&(t.noVBand=true));}if(Object.keys(t).length!==0)return t}function he(e){if(!e)return;let t={},n=chunkTMISJEGL_js.j(e,"w","horzAnchor");(n==="margin"||n==="page"||n==="text")&&(t.horzAnchor=n);let r=chunkTMISJEGL_js.j(e,"w","vertAnchor");(r==="margin"||r==="page"||r==="text")&&(t.vertAnchor=r);let o=chunkTMISJEGL_js.l(e,"w","tblpX");o!==void 0&&(t.tblpX=o);let a=chunkTMISJEGL_js.j(e,"w","tblpXSpec");a&&(t.tblpXSpec=a);let u=chunkTMISJEGL_js.l(e,"w","tblpY");u!==void 0&&(t.tblpY=u);let l=chunkTMISJEGL_js.j(e,"w","tblpYSpec");l&&(t.tblpYSpec=l);let f=chunkTMISJEGL_js.l(e,"w","topFromText");f!==void 0&&(t.topFromText=f);let c=chunkTMISJEGL_js.l(e,"w","bottomFromText");c!==void 0&&(t.bottomFromText=c);let p=chunkTMISJEGL_js.l(e,"w","leftFromText");p!==void 0&&(t.leftFromText=p);let d=chunkTMISJEGL_js.l(e,"w","rightFromText");if(d!==void 0&&(t.rightFromText=d),Object.keys(t).length!==0)return t}function mt(e){return e.columnWidths&&e.columnWidths.length>0?e.columnWidths.length:e.rows.length===0?0:e.rows[0].cells.reduce((t,n)=>t+(n.formatting?.gridSpan??1),0)}function gt(e){return e.rows.length}function ht(e){return e.formatting?.vMerge==="continue"}function wt(e){return e.formatting?.vMerge==="restart"}function yt(e){return e.rows.length===0?false:e.rows[0].formatting?.header===true}var Ne={183:"\u2022",111:"\u25CB",167:"\u25A0",252:"\u2713",110:"\u25A0",113:"\u25CB",117:"\u25C6",118:"\u2756",168:"\u2713",251:"\u2713",254:"\u2713",61623:"\u2022",61550:"\u25A0",61551:"\u25CB",61607:"\u25A0",61692:"\u2713",8226:"\u2022",9679:"\u25CF",9675:"\u25CB",9632:"\u25A0",9633:"\u25A1",9670:"\u25C6",9671:"\u25C7",8211:"\u2013",8212:"\u2014",62:">",45:"-"};function bt(e){if(!e||e.trim()==="")return "\u2022";let t=e.charCodeAt(0);return Ne[t]?Ne[t]:t>=57344&&t<=63743||t<32||t>=127&&t<160?"\u2022":e}function Tt(e){let t=e.listRendering;t&&t.isBullet&&(t.marker=bt(t.marker||""));}function Ft(e,t,n,r,o,a,u){if(e.content.length===0)return;let l=chunkTMISJEGL_js.i(t),f=0;function c(p){if(!chunkEPX7BBJD_js.h(p))return;let d=chunkEPX7BBJD_js.j(p);if(!d)return;let b=chunkTMISJEGL_js.n(p,"wps","wsp");if(b){let C=chunkEPX7BBJD_js.k(b);C&&(d.content=chunkEPX7BBJD_js.g(C,j,null,n,r,o,a??void 0,u??void 0));}let F={type:"shape",shapeType:"rect",size:d.size,position:d.position,wrap:d.wrap,fill:d.fill,outline:d.outline,textBody:{content:d.content,margins:d.margins}};d.id&&(F.id=d.id);let y={type:"shape",shape:F},h=f;if(h>=e.content.length){h=-1;for(let C=e.content.length-1;C>=0;C--)if(e.content[C].type==="run"){h=C;break}}if(h>=0){let C=e.content[h];C.type==="run"&&C.content.push(y);}}for(let p of l){if(chunkTMISJEGL_js.d(p.name??"")!=="r")continue;let d=chunkTMISJEGL_js.i(p);for(let b of d){let F=chunkTMISJEGL_js.d(b.name??"");if(F==="drawing")c(b);else if(F==="AlternateContent"){let y=chunkTMISJEGL_js.i(b),C=y.find(A=>chunkTMISJEGL_js.d(A.name??"")==="Choice")??y.find(A=>chunkTMISJEGL_js.d(A.name??"")==="Fallback");if(C)for(let A of chunkTMISJEGL_js.i(C))chunkTMISJEGL_js.d(A.name??"")==="drawing"&&c(A);}}f++;}}function re(e,t,n,r,o,a,u){let l=[],f=chunkTMISJEGL_js.i(e);for(let c of f){let p=c.name??"";if(p==="w:p"||p.endsWith(":p")){let d=j(c,t,n,r,o,a,u);Ft(d,c,t,n,r,o,a),Tt(d),l.push(d);}else if(p==="w:tbl"||p.endsWith(":tbl")){let d=Y(c,t,n,r,o,a,u);l.push(d);}else if(p==="w:sdt"||p.endsWith(":sdt")){let d=(c.elements??[]).find(b=>b.type==="element"&&(b.name==="w:sdtContent"||b.name?.endsWith(":sdtContent")));d&&l.push(...re(d,t,n,r,o,a,u));}}return l}function Ie(e){switch(e){case "first":return "first";case "even":return "even";default:return "default"}}function Le(e){let t=chunkTMISJEGL_js.j(e,"w","type"),n=chunkTMISJEGL_js.j(e,"r","id")??"";return {type:Ie(t),rId:n}}function Xe(e){let t=chunkTMISJEGL_js.j(e,"w","type"),n=chunkTMISJEGL_js.j(e,"r","id")??"";return {type:Ie(t),rId:n}}function In(e,t="default",n=null,r=null,o=null,a=null,u=null){let l={type:"header",hdrFtrType:t,content:[]};if(!e)return l;let f=chunkTMISJEGL_js.a(e);if(!f)return l;let c=f.elements?.find(p=>p.type==="element"&&(p.name==="w:hdr"||p.name?.endsWith(":hdr")));return c&&(l.content=re(c,n,r,o,a,u,{inHeaderFooter:true})),l}function Ln(e,t="default",n=null,r=null,o=null,a=null,u=null){let l={type:"footer",hdrFtrType:t,content:[]};if(!e)return l;let f=chunkTMISJEGL_js.a(e);if(!f)return l;let c=f.elements?.find(p=>p.type==="element"&&(p.name==="w:ftr"||p.name?.endsWith(":ftr")));return c&&(l.content=re(c,n,r,o,a,u,{inHeaderFooter:true})),l}function Oe(e){switch(e){case "separator":return "separator";case "continuationSeparator":return "continuationSeparator";case "continuationNotice":return "continuationNotice";default:return "normal"}}function De(e,t,n,r,o,a){let u=[];for(let l of chunkTMISJEGL_js.i(e)){let f=l.name??"";f==="w:p"?u.push(j(l,t,n,r,o)):f==="w:tbl"&&u.push(Y(l,t,n,r,o,a));}return u}function Ct(e,t,n,r,o,a){let u=chunkTMISJEGL_js.l(e,"w","id")??0,l=chunkTMISJEGL_js.j(e,"w","type"),f=Oe(l),c=De(e,t,n,r,o,a);return {type:"footnote",id:u,noteType:f,content:c}}function jn(e,t=null,n=null,r=null,o=null,a=null){let u=new Map,l=[];if(!e)return oe(u,l);let f=chunkTMISJEGL_js.a(e);if(!f)return oe(u,l);let c=f.elements?.find(d=>d.type==="element"&&(d.name==="w:footnotes"||d.name?.endsWith(":footnotes")));if(!c)return oe(u,l);let p=chunkTMISJEGL_js.f(c,"w","footnote");for(let d of p){let b=Ct(d,t,n,r,o,a);u.set(b.id,b),l.push(b);}return oe(u,l)}function oe(e,t){return {byId:e,footnotes:t,getFootnote(n){return e.get(n)},hasFootnote(n){return e.has(n)},getNormalFootnotes(){return t.filter(n=>n.noteType==="normal")},getSeparator(){return t.find(n=>n.noteType==="separator")},getContinuationSeparator(){return t.find(n=>n.noteType==="continuationSeparator")}}}function xt(e,t,n,r,o,a){let u=chunkTMISJEGL_js.l(e,"w","id")??0,l=chunkTMISJEGL_js.j(e,"w","type"),f=Oe(l),c=De(e,t,n,r,o,a);return {type:"endnote",id:u,noteType:f,content:c}}function Vn(e,t=null,n=null,r=null,o=null,a=null){let u=new Map,l=[];if(!e)return ie(u,l);let f=chunkTMISJEGL_js.a(e);if(!f)return ie(u,l);let c=f.elements?.find(d=>d.type==="element"&&(d.name==="w:endnotes"||d.name?.endsWith(":endnotes")));if(!c)return ie(u,l);let p=chunkTMISJEGL_js.f(c,"w","endnote");for(let d of p){let b=xt(d,t,n,r,o,a);u.set(b.id,b),l.push(b);}return ie(u,l)}function ie(e,t){return {byId:e,endnotes:t,getEndnote(n){return e.get(n)},hasEndnote(n){return e.has(n)},getNormalEndnotes(){return t.filter(n=>n.noteType==="normal")},getSeparator(){return t.find(n=>n.noteType==="separator")},getContinuationSeparator(){return t.find(n=>n.noteType==="continuationSeparator")}}}function We(e){return e?{decimal:"decimal",upperRoman:"upperRoman",lowerRoman:"lowerRoman",upperLetter:"upperLetter",lowerLetter:"lowerLetter",ordinal:"ordinal",cardinalText:"cardinalText",ordinalText:"ordinalText",bullet:"bullet",chicago:"chicago",none:"none"}[e]:void 0}function St(e){switch(e){case "pageBottom":return "pageBottom";case "beneathText":return "beneathText";case "sectEnd":return "sectEnd";case "docEnd":return "docEnd";default:return}}function kt(e){switch(e){case "sectEnd":return "sectEnd";case "docEnd":return "docEnd";default:return}}function je(e){switch(e){case "continuous":return "continuous";case "eachSect":return "eachSect";case "eachPage":return "eachPage";default:return}}function Ve(e){let t={};if(!e)return t;let n=chunkTMISJEGL_js.e(e,"w","pos");if(n){let u=chunkTMISJEGL_js.j(n,"w","val");t.position=St(u);}let r=chunkTMISJEGL_js.e(e,"w","numFmt");if(r){let u=chunkTMISJEGL_js.j(r,"w","val");t.numFmt=We(u);}let o=chunkTMISJEGL_js.e(e,"w","numStart");o&&(t.numStart=chunkTMISJEGL_js.l(o,"w","val")??void 0);let a=chunkTMISJEGL_js.e(e,"w","numRestart");if(a){let u=chunkTMISJEGL_js.j(a,"w","val");t.numRestart=je(u);}return t}function ze(e){let t={};if(!e)return t;let n=chunkTMISJEGL_js.e(e,"w","pos");if(n){let u=chunkTMISJEGL_js.j(n,"w","val");t.position=kt(u);}let r=chunkTMISJEGL_js.e(e,"w","numFmt");if(r){let u=chunkTMISJEGL_js.j(r,"w","val");t.numFmt=We(u);}let o=chunkTMISJEGL_js.e(e,"w","numStart");o&&(t.numStart=chunkTMISJEGL_js.l(o,"w","val")??void 0);let a=chunkTMISJEGL_js.e(e,"w","numRestart");if(a){let u=chunkTMISJEGL_js.j(a,"w","val");t.numRestart=je(u);}return t}function zn(e){let t=[];for(let n of e.content){if(n.type!=="paragraph")continue;let r=[];for(let o of n.content)if(o.type==="run")for(let a of o.content)a.type==="text"&&r.push(a.text);t.push(r.join(""));}return t.join(`
|
|
2
|
+
`)}function Un(e){let t=[];for(let n of e.content){if(n.type!=="paragraph")continue;let r=[];for(let o of n.content)if(o.type==="run")for(let a of o.content)a.type==="text"&&r.push(a.text);t.push(r.join(""));}return t.join(`
|
|
3
|
+
`)}function Gn(e){return e.noteType==="separator"||e.noteType==="continuationSeparator"||e.noteType==="continuationNotice"}function qn(e){return e.noteType==="separator"||e.noteType==="continuationSeparator"||e.noteType==="continuationNotice"}function Rt(e,t,n,r){if(!e&&!t)return;let o={};return e&&e!=="auto"?o.rgb=e:e==="auto"&&(o.auto=true),t&&(o.themeColor=t),n&&(o.themeTint=n),r&&(o.themeShade=r),Object.keys(o).length>0?o:void 0}function ae(e){if(!e)return;let r={style:chunkTMISJEGL_js.j(e,"w","val")??"none"},o=chunkTMISJEGL_js.l(e,"w","sz");o!==void 0&&(r.size=o);let a=chunkTMISJEGL_js.l(e,"w","space");a!==void 0&&(r.space=a);let u=chunkTMISJEGL_js.j(e,"w","color"),l=chunkTMISJEGL_js.j(e,"w","themeColor"),f=chunkTMISJEGL_js.j(e,"w","themeTint"),c=chunkTMISJEGL_js.j(e,"w","themeShade"),p=Rt(u,l,f,c);p&&(r.color=p);let d=chunkTMISJEGL_js.j(e,"w","shadow");(d==="1"||d==="true")&&(r.shadow=true);let b=chunkTMISJEGL_js.j(e,"w","frame");return (b==="1"||b==="true")&&(r.frame=true),r}function Mt(e){switch(e){case "landscape":return "landscape";case "portrait":return "portrait";default:return}}function Et(e){switch(e){case "continuous":return "continuous";case "nextPage":return "nextPage";case "oddPage":return "oddPage";case "evenPage":return "evenPage";case "nextColumn":return "nextColumn";default:return}}function Pt(e){switch(e){case "top":return "top";case "center":return "center";case "both":return "both";case "bottom":return "bottom";default:return}}function Bt(e){switch(e){case "continuous":return "continuous";case "newPage":return "newPage";case "newSection":return "newSection";default:return}}function Ge(e,t){let n={};if(!e)return n;let r=chunkTMISJEGL_js.e(e,"w","pgSz");if(r){let m=chunkTMISJEGL_js.l(r,"w","w");m!==void 0&&(n.pageWidth=m);let T=chunkTMISJEGL_js.l(r,"w","h");T!==void 0&&(n.pageHeight=T);let E=chunkTMISJEGL_js.j(r,"w","orient"),w=Mt(E);w&&(n.orientation=w);}let o=chunkTMISJEGL_js.e(e,"w","pgMar");if(o){let m=chunkTMISJEGL_js.l(o,"w","top");m!==void 0&&(n.marginTop=m);let T=chunkTMISJEGL_js.l(o,"w","bottom");T!==void 0&&(n.marginBottom=T);let E=chunkTMISJEGL_js.l(o,"w","left");E!==void 0&&(n.marginLeft=E);let w=chunkTMISJEGL_js.l(o,"w","right");w!==void 0&&(n.marginRight=w);let x=chunkTMISJEGL_js.l(o,"w","header");x!==void 0&&(n.headerDistance=x);let P=chunkTMISJEGL_js.l(o,"w","footer");P!==void 0&&(n.footerDistance=P);let B=chunkTMISJEGL_js.l(o,"w","gutter");B!==void 0&&(n.gutter=B);}let a=chunkTMISJEGL_js.e(e,"w","cols");if(a){let m=chunkTMISJEGL_js.l(a,"w","num");m!==void 0&&(n.columnCount=m);let T=chunkTMISJEGL_js.l(a,"w","space");T!==void 0&&(n.columnSpace=T);let E=chunkTMISJEGL_js.j(a,"w","equalWidth");E==="1"||E==="true"?n.equalWidth=true:(E==="0"||E==="false")&&(n.equalWidth=false);let w=chunkTMISJEGL_js.j(a,"w","sep");(w==="1"||w==="true")&&(n.separator=true);let x=chunkTMISJEGL_js.f(a,"w","col");if(x.length>0){n.columns=[];for(let P of x){let B={},I=chunkTMISJEGL_js.l(P,"w","w");I!==void 0&&(B.width=I);let N=chunkTMISJEGL_js.l(P,"w","space");N!==void 0&&(B.space=N),n.columns.push(B);}n.columnCount===void 0&&(n.columnCount=x.length);}}let u=chunkTMISJEGL_js.e(e,"w","type");if(u){let m=chunkTMISJEGL_js.j(u,"w","val"),T=Et(m);T&&(n.sectionStart=T);}let l=chunkTMISJEGL_js.e(e,"w","vAlign");if(l){let m=chunkTMISJEGL_js.j(l,"w","val"),T=Pt(m);T&&(n.verticalAlign=T);}let f=chunkTMISJEGL_js.e(e,"w","bidi");f&&(n.bidi=chunkTMISJEGL_js.m(f));let c=chunkTMISJEGL_js.f(e,"w","headerReference");c.length>0&&(n.headerReferences=c.map(m=>Le(m)));let p=chunkTMISJEGL_js.f(e,"w","footerReference");p.length>0&&(n.footerReferences=p.map(m=>Xe(m)));let d=chunkTMISJEGL_js.e(e,"w","titlePg");d&&(n.titlePg=chunkTMISJEGL_js.m(d));let b=chunkTMISJEGL_js.e(e,"w","evenAndOddHeaders");b&&(n.evenAndOddHeaders=chunkTMISJEGL_js.m(b));let F=chunkTMISJEGL_js.e(e,"w","lnNumType");if(F){n.lineNumbers={};let m=chunkTMISJEGL_js.l(F,"w","start");m!==void 0&&(n.lineNumbers.start=m);let T=chunkTMISJEGL_js.l(F,"w","countBy");T!==void 0&&(n.lineNumbers.countBy=T);let E=chunkTMISJEGL_js.l(F,"w","distance");E!==void 0&&(n.lineNumbers.distance=E);let w=chunkTMISJEGL_js.j(F,"w","restart"),x=Bt(w);x&&(n.lineNumbers.restart=x);}let y=chunkTMISJEGL_js.e(e,"w","pgBorders");if(y){n.pageBorders={};let m=ae(chunkTMISJEGL_js.e(y,"w","top"));m&&(n.pageBorders.top=m);let T=ae(chunkTMISJEGL_js.e(y,"w","bottom"));T&&(n.pageBorders.bottom=T);let E=ae(chunkTMISJEGL_js.e(y,"w","left"));E&&(n.pageBorders.left=E);let w=ae(chunkTMISJEGL_js.e(y,"w","right"));w&&(n.pageBorders.right=w);let x=chunkTMISJEGL_js.j(y,"w","display");(x==="allPages"||x==="firstPage"||x==="notFirstPage")&&(n.pageBorders.display=x);let P=chunkTMISJEGL_js.j(y,"w","offsetFrom");(P==="page"||P==="text")&&(n.pageBorders.offsetFrom=P);let B=chunkTMISJEGL_js.j(y,"w","zOrder");(B==="front"||B==="back")&&(n.pageBorders.zOrder=B);}let h=chunkTMISJEGL_js.e(e,"w","background");if(h){n.background={};let m=chunkTMISJEGL_js.j(h,"w","color");m&&m!=="auto"&&(n.background.color={rgb:m});let T=chunkTMISJEGL_js.j(h,"w","themeColor");T&&(n.background.themeColor=T);let E=chunkTMISJEGL_js.j(h,"w","themeTint");E&&(n.background.themeTint=E);let w=chunkTMISJEGL_js.j(h,"w","themeShade");w&&(n.background.themeShade=w);}let C=chunkTMISJEGL_js.e(e,"w","footnotePr");if(C){let m=Ve(C);Object.keys(m).length>0&&(n.footnotePr=m);}let A=chunkTMISJEGL_js.e(e,"w","endnotePr");if(A){let m=ze(A);Object.keys(m).length>0&&(n.endnotePr=m);}let R=chunkTMISJEGL_js.e(e,"w","docGrid");if(R){n.docGrid={};let m=chunkTMISJEGL_js.j(R,"w","type");(m==="default"||m==="lines"||m==="linesAndChars"||m==="snapToChars")&&(n.docGrid.type=m);let T=chunkTMISJEGL_js.l(R,"w","linePitch");T!==void 0&&(n.docGrid.linePitch=T);let E=chunkTMISJEGL_js.l(R,"w","charSpace");E!==void 0&&(n.docGrid.charSpace=E);}let S=chunkTMISJEGL_js.e(e,"w","paperSrc");if(S){let m=chunkTMISJEGL_js.l(S,"w","first");m!==void 0&&(n.paperSrcFirst=m);let T=chunkTMISJEGL_js.l(S,"w","other");T!==void 0&&(n.paperSrcOther=T);}return n}function Kn(){return {pageWidth:12240,pageHeight:15840,orientation:"portrait",marginTop:1440,marginBottom:1440,marginLeft:1440,marginRight:1440,headerDistance:720,footerDistance:720,gutter:0,columnCount:1,columnSpace:720,equalWidth:true,sectionStart:"nextPage",verticalAlign:"top"}}function Ue(e,t){if(!t||t.length===0)return e;let n=new Set((e??[]).map(o=>o.type)),r=t.filter(o=>!n.has(o.type));return r.length===0?e:[...e??[],...r]}function Qn(e){if(e.length<2)return e;let t=[e[0]];for(let n=1;n<e.length;n++){let r=t[n-1].properties,o=e[n].properties,a=Ue(o.headerReferences,r.headerReferences),u=Ue(o.footerReferences,r.footerReferences),l=o.titlePg!==void 0?o.titlePg:r.titlePg;if(a===o.headerReferences&&u===o.footerReferences&&l===o.titlePg){t.push(e[n]);continue}t.push({...e[n],properties:{...o,headerReferences:a,footerReferences:u,titlePg:l}});}return t}function vt(e,t){return !e&&!t?true:!(!e||!t||e.bold!==t.bold||e.boldCs!==t.boldCs||e.italic!==t.italic||e.italicCs!==t.italicCs||e.strike!==t.strike||e.doubleStrike!==t.doubleStrike||e.smallCaps!==t.smallCaps||e.allCaps!==t.allCaps||e.hidden!==t.hidden||e.emboss!==t.emboss||e.imprint!==t.imprint||e.outline!==t.outline||e.shadow!==t.shadow||e.rtl!==t.rtl||e.cs!==t.cs||e.fontSize!==t.fontSize||e.fontSizeCs!==t.fontSizeCs||e.spacing!==t.spacing||e.position!==t.position||e.scale!==t.scale||e.kerning!==t.kerning||e.vertAlign!==t.vertAlign||e.highlight!==t.highlight||e.effect!==t.effect||e.emphasisMark!==t.emphasisMark||e.styleId!==t.styleId||!Ht(e.underline,t.underline)||!le(e.color,t.color)||!At(e.shading,t.shading)||!Nt(e.fontFamily,t.fontFamily))}function Ht(e,t){return !e&&!t?true:!e||!t||e.style!==t.style?false:le(e.color,t.color)}function le(e,t){return !e&&!t?true:!e||!t?false:e.rgb===t.rgb&&e.auto===t.auto&&e.themeColor===t.themeColor&&e.themeTint===t.themeTint&&e.themeShade===t.themeShade}function At(e,t){return !e&&!t?true:!(!e||!t||e.pattern!==t.pattern||!le(e.color,t.color)||!le(e.fill,t.fill))}function Nt(e,t){return !e&&!t?true:!e||!t?false:e.ascii===t.ascii&&e.hAnsi===t.hAnsi&&e.eastAsia===t.eastAsia&&e.cs===t.cs&&e.asciiTheme===t.asciiTheme&&e.hAnsiTheme===t.hAnsiTheme&&e.eastAsiaTheme===t.eastAsiaTheme&&e.csTheme===t.csTheme}function It(e){return e.type==="text"||e.type==="softHyphen"||e.type==="noBreakHyphen"}function qe(e){return e.content.length===0?true:e.content.every(It)}function Lt(e,t){let n=[];for(let r of e)n.push(r);if(n.length>0&&t.length>0&&n[n.length-1].type==="text"&&t[0].type==="text"){let r=n[n.length-1],o=t[0];n[n.length-1]={type:"text",text:r.text+o.text,preserveSpace:r.preserveSpace||o.preserveSpace||void 0};for(let a=1;a<t.length;a++)n.push(t[a]);}else for(let r of t)n.push(r);return n}function Xt(e){if(e.length<=1)return e;let t=[],n=null;for(let r of e)if(r.content.length!==0){if(n===null){n={...r,content:[...r.content]};continue}qe(n)&&qe(r)&&vt(n.formatting,r.formatting)?n={type:"run",formatting:n.formatting,content:Lt(n.content,r.content)}:(t.push(n),n={...r,content:[...r.content]});}return n!==null&&t.push(n),t}function we(e){if(e.length<=1)return e;let t=[],n=[];function r(){if(n.length>0){let o=Xt(n);t.push(...o),n.length=0;}}for(let o of e)if(o.type==="run")n.push(o);else if(r(),o.type==="hyperlink"){let a={...o,children:we(o.children)};t.push(a);}else t.push(o);return r(),t}function _e(e,t,n,r){let o={};return e&&e!=="auto"?o.rgb=e:e==="auto"&&(o.auto=true),t&&(o.themeColor=t),n&&(o.themeTint=n),r&&(o.themeShade=r),o}function Ot(e){if(!e)return;let t={},n=chunkTMISJEGL_js.j(e,"w","color");n&&n!=="auto"&&(t.color={rgb:n});let r=chunkTMISJEGL_js.j(e,"w","fill");r&&r!=="auto"&&(t.fill={rgb:r});let o=chunkTMISJEGL_js.j(e,"w","themeFill");o&&(t.fill=t.fill||{},t.fill.themeColor=o);let a=chunkTMISJEGL_js.j(e,"w","themeFillTint");a&&t.fill&&(t.fill.themeTint=a);let u=chunkTMISJEGL_js.j(e,"w","themeFillShade");u&&t.fill&&(t.fill.themeShade=u);let l=chunkTMISJEGL_js.j(e,"w","val");return l&&(t.pattern=l),Object.keys(t).length>0?t:void 0}function ue(e,t,n){if(!e)return;let r={},o=chunkTMISJEGL_js.e(e,"w","b");o&&(r.bold=chunkTMISJEGL_js.m(o));let a=chunkTMISJEGL_js.e(e,"w","bCs");a&&(r.boldCs=chunkTMISJEGL_js.m(a));let u=chunkTMISJEGL_js.e(e,"w","i");u&&(r.italic=chunkTMISJEGL_js.m(u));let l=chunkTMISJEGL_js.e(e,"w","iCs");l&&(r.italicCs=chunkTMISJEGL_js.m(l));let f=chunkTMISJEGL_js.e(e,"w","u");if(f){let k=chunkTMISJEGL_js.j(f,"w","val");if(k){r.underline={style:k};let z=chunkTMISJEGL_js.j(f,"w","color"),U=chunkTMISJEGL_js.j(f,"w","themeColor");(z||U)&&(r.underline.color=_e(z,U,chunkTMISJEGL_js.j(f,"w","themeTint"),chunkTMISJEGL_js.j(f,"w","themeShade")));}}let c=chunkTMISJEGL_js.e(e,"w","strike");c&&(r.strike=chunkTMISJEGL_js.m(c));let p=chunkTMISJEGL_js.e(e,"w","dstrike");p&&(r.doubleStrike=chunkTMISJEGL_js.m(p));let d=chunkTMISJEGL_js.e(e,"w","vertAlign");if(d){let k=chunkTMISJEGL_js.j(d,"w","val");(k==="superscript"||k==="subscript"||k==="baseline")&&(r.vertAlign=k);}let b=chunkTMISJEGL_js.e(e,"w","smallCaps");b&&(r.smallCaps=chunkTMISJEGL_js.m(b));let F=chunkTMISJEGL_js.e(e,"w","caps");F&&(r.allCaps=chunkTMISJEGL_js.m(F));let y=chunkTMISJEGL_js.e(e,"w","vanish");y&&(r.hidden=chunkTMISJEGL_js.m(y));let h=chunkTMISJEGL_js.e(e,"w","color");h&&(r.color=_e(chunkTMISJEGL_js.j(h,"w","val"),chunkTMISJEGL_js.j(h,"w","themeColor"),chunkTMISJEGL_js.j(h,"w","themeTint"),chunkTMISJEGL_js.j(h,"w","themeShade")));let C=chunkTMISJEGL_js.e(e,"w","highlight");if(C){let k=chunkTMISJEGL_js.j(C,"w","val");k&&(r.highlight=k);}let A=chunkTMISJEGL_js.e(e,"w","shd");A&&(r.shading=Ot(A));let R=chunkTMISJEGL_js.e(e,"w","sz");if(R){let k=chunkTMISJEGL_js.l(R,"w","val");k!==void 0&&(r.fontSize=k);}let S=chunkTMISJEGL_js.e(e,"w","szCs");if(S){let k=chunkTMISJEGL_js.l(S,"w","val");k!==void 0&&(r.fontSizeCs=k);}let m=chunkTMISJEGL_js.e(e,"w","rFonts");if(m){r.fontFamily={ascii:chunkTMISJEGL_js.j(m,"w","ascii")??void 0,hAnsi:chunkTMISJEGL_js.j(m,"w","hAnsi")??void 0,eastAsia:chunkTMISJEGL_js.j(m,"w","eastAsia")??void 0,cs:chunkTMISJEGL_js.j(m,"w","cs")??void 0};let k=chunkTMISJEGL_js.j(m,"w","asciiTheme");k&&(r.fontFamily.asciiTheme=k,t&&!r.fontFamily.ascii&&(r.fontFamily.ascii=_(t,k)));let z=chunkTMISJEGL_js.j(m,"w","hAnsiTheme");z&&(r.fontFamily.hAnsiTheme=z,t&&!r.fontFamily.hAnsi&&(r.fontFamily.hAnsi=_(t,z)));let U=chunkTMISJEGL_js.j(m,"w","eastAsiaTheme");U&&(r.fontFamily.eastAsiaTheme=U,t&&!r.fontFamily.eastAsia&&(r.fontFamily.eastAsia=_(t,U)));let ce=chunkTMISJEGL_js.j(m,"w","cstheme");ce&&(r.fontFamily.csTheme=ce,t&&!r.fontFamily.cs&&(r.fontFamily.cs=_(t,ce)));}let T=chunkTMISJEGL_js.e(e,"w","spacing");if(T){let k=chunkTMISJEGL_js.l(T,"w","val");k!==void 0&&(r.spacing=k);}let E=chunkTMISJEGL_js.e(e,"w","position");if(E){let k=chunkTMISJEGL_js.l(E,"w","val");k!==void 0&&(r.position=k);}let w=chunkTMISJEGL_js.e(e,"w","w");if(w){let k=chunkTMISJEGL_js.l(w,"w","val");k!==void 0&&(r.scale=k);}let x=chunkTMISJEGL_js.e(e,"w","kern");if(x){let k=chunkTMISJEGL_js.l(x,"w","val");k!==void 0&&(r.kerning=k);}let P=chunkTMISJEGL_js.e(e,"w","effect");if(P){let k=chunkTMISJEGL_js.j(P,"w","val");k&&(r.effect=k);}let B=chunkTMISJEGL_js.e(e,"w","em");if(B){let k=chunkTMISJEGL_js.j(B,"w","val");k&&(r.emphasisMark=k);}let I=chunkTMISJEGL_js.e(e,"w","emboss");I&&(r.emboss=chunkTMISJEGL_js.m(I));let N=chunkTMISJEGL_js.e(e,"w","imprint");N&&(r.imprint=chunkTMISJEGL_js.m(N));let L=chunkTMISJEGL_js.e(e,"w","outline");L&&(r.outline=chunkTMISJEGL_js.m(L));let ye=chunkTMISJEGL_js.e(e,"w","shadow");ye&&(r.shadow=chunkTMISJEGL_js.m(ye));let be=chunkTMISJEGL_js.e(e,"w","rtl");be&&(r.rtl=chunkTMISJEGL_js.m(be));let Te=chunkTMISJEGL_js.e(e,"w","cs");Te&&(r.cs=chunkTMISJEGL_js.m(Te));let Fe=chunkTMISJEGL_js.e(e,"w","rStyle");if(Fe){let k=chunkTMISJEGL_js.j(Fe,"w","val");k&&(r.styleId=k);}return Object.keys(r).length>0?r:void 0}function Dt(e){let t=chunkTMISJEGL_js.j(e,"w","id"),n=t?parseInt(t,10):0,r=(chunkTMISJEGL_js.j(e,"w","author")??"").trim(),o=(chunkTMISJEGL_js.j(e,"w","date")??"").trim(),a=(chunkTMISJEGL_js.j(e,"w","rsid")??"").trim();return {id:Number.isInteger(n)&&n>=0?n:0,author:r.length>0?r:"Unknown",date:o.length>0?o:void 0,rsid:a.length>0?a:void 0}}function Wt(e,t,n,r){if(!e)return;let o=chunkTMISJEGL_js.f(e,"w","rPrChange").map(a=>{let u=chunkTMISJEGL_js.e(a,"w","rPr");return {type:"runPropertyChange",info:Dt(a),previousFormatting:ue(u,t),currentFormatting:r}}).filter(a=>a.previousFormatting||a.currentFormatting);return o.length>0?o:void 0}function jt(e){let t=chunkTMISJEGL_js.k(e),n=chunkTMISJEGL_js.j(e,"xml","space")==="preserve";return {type:"text",text:t,preserveSpace:n||void 0}}function Vt(){return {type:"tab"}}function zt(e){let t=chunkTMISJEGL_js.j(e,"w","type"),n=chunkTMISJEGL_js.j(e,"w","clear"),r={type:"break"};return (t==="page"||t==="column"||t==="textWrapping")&&(r.breakType=t),(n==="none"||n==="left"||n==="right"||n==="all")&&(r.clear=n),r}function Ut(e){let t=chunkTMISJEGL_js.j(e,"w","font")??"",n=chunkTMISJEGL_js.j(e,"w","char")??"";return {type:"symbol",font:t,char:n}}function Gt(e){return {type:"footnoteRef",id:chunkTMISJEGL_js.l(e,"w","id")??0}}function qt(e){return {type:"endnoteRef",id:chunkTMISJEGL_js.l(e,"w","id")??0}}function _t(e){let t=chunkTMISJEGL_js.j(e,"w","fldCharType"),n=chunkTMISJEGL_js.j(e,"w","fldLock")==="true"||chunkTMISJEGL_js.j(e,"w","fldLock")==="1",r=chunkTMISJEGL_js.j(e,"w","dirty")==="true"||chunkTMISJEGL_js.j(e,"w","dirty")==="1",o="begin";return t==="separate"?o="separate":t==="end"&&(o="end"),{type:"fieldChar",charType:o,fldLock:n||void 0,dirty:r||void 0}}function Yt(e){return {type:"instrText",text:chunkTMISJEGL_js.k(e)}}function Ye(e,t,n){let r=chunkEPX7BBJD_js.z(e,t??void 0,n??void 0);return r?{type:"drawing",image:r}:null}function se(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function $t(e,t,n){let r=[],o=chunkTMISJEGL_js.i(e);for(let a of o)switch(se(a.name)){case "t":r.push(jt(a));break;case "tab":r.push(Vt());break;case "br":r.push(zt(a));break;case "sym":r.push(Ut(a));break;case "footnoteReference":r.push(Gt(a));break;case "endnoteReference":r.push(qt(a));break;case "fldChar":r.push(_t(a));break;case "instrText":r.push(Yt(a));break;case "softHyphen":r.push({type:"softHyphen"});break;case "noBreakHyphen":r.push({type:"noBreakHyphen"});break;case "drawing":let l=Ye(a,t,n);l&&r.push(l);break;case "pict":case "object":break;case "rPr":break;case "lastRenderedPageBreak":break;case "cr":r.push({type:"break",breakType:"textWrapping"});break;case "AlternateContent":{let c=chunkTMISJEGL_js.i(a).find(p=>se(p.name)==="Choice")??chunkTMISJEGL_js.i(a).find(p=>se(p.name)==="Fallback");if(c){for(let p of chunkTMISJEGL_js.i(c))if(se(p.name)==="drawing"){let b=Ye(p,t,n);b?.image?.src&&r.push(b);}}break}}return r}function $(e,t,n,r=null,o=null){let a={type:"run",content:[]},u=chunkTMISJEGL_js.e(e,"w","rPr");return u&&(a.formatting=ue(u,n),a.propertyChanges=Wt(u,n,t,a.formatting)),a.content=$t(e,r,o),a}function Zt(e,t,n,r){let o={};return e&&e!=="auto"?o.rgb=e:e==="auto"&&(o.auto=true),t&&(o.themeColor=t),n&&(o.themeTint=n),r&&(o.themeShade=r),o}function Kt(e){if(!e)return;let t={},n=chunkTMISJEGL_js.j(e,"w","color");n&&n!=="auto"&&(t.color={rgb:n});let r=chunkTMISJEGL_js.j(e,"w","fill");r&&r!=="auto"&&(t.fill={rgb:r});let o=chunkTMISJEGL_js.j(e,"w","themeFill");o&&(t.fill=t.fill||{},t.fill.themeColor=o);let a=chunkTMISJEGL_js.j(e,"w","themeFillTint");a&&t.fill&&(t.fill.themeTint=a);let u=chunkTMISJEGL_js.j(e,"w","themeFillShade");u&&t.fill&&(t.fill.themeShade=u);let l=chunkTMISJEGL_js.j(e,"w","val");return l&&(t.pattern=l),Object.keys(t).length>0?t:void 0}function q(e){if(!e)return;let t=chunkTMISJEGL_js.j(e,"w","val");if(!t)return;let n={style:t},r=chunkTMISJEGL_js.j(e,"w","color"),o=chunkTMISJEGL_js.j(e,"w","themeColor");(r||o)&&(n.color=Zt(r,o,chunkTMISJEGL_js.j(e,"w","themeTint"),chunkTMISJEGL_js.j(e,"w","themeShade")));let a=chunkTMISJEGL_js.l(e,"w","sz");a!==void 0&&(n.size=a);let u=chunkTMISJEGL_js.l(e,"w","space");u!==void 0&&(n.space=u);let l=chunkTMISJEGL_js.j(e,"w","shadow");l&&(n.shadow=l==="1"||l==="true");let f=chunkTMISJEGL_js.j(e,"w","frame");return f&&(n.frame=f==="1"||f==="true"),n}function Qt(e){if(!e)return;let t=chunkTMISJEGL_js.f(e,"w","tab");if(t.length===0)return;let n=[];for(let r of t){let o=chunkTMISJEGL_js.l(r,"w","pos"),a=chunkTMISJEGL_js.j(r,"w","val");if(o!==void 0&&a){let u={position:o,alignment:a},l=chunkTMISJEGL_js.j(r,"w","leader");l&&(u.leader=l),n.push(u);}}return n.length>0?n:void 0}function Jt(e){if(!e)return;let t={},n=chunkTMISJEGL_js.l(e,"w","w");n!==void 0&&(t.width=n);let r=chunkTMISJEGL_js.l(e,"w","h");r!==void 0&&(t.height=r);let o=chunkTMISJEGL_js.j(e,"w","hAnchor");(o==="text"||o==="margin"||o==="page")&&(t.hAnchor=o);let a=chunkTMISJEGL_js.j(e,"w","vAnchor");(a==="text"||a==="margin"||a==="page")&&(t.vAnchor=a);let u=chunkTMISJEGL_js.l(e,"w","x");u!==void 0&&(t.x=u);let l=chunkTMISJEGL_js.l(e,"w","y");l!==void 0&&(t.y=l);let f=chunkTMISJEGL_js.j(e,"w","xAlign");f&&(t.xAlign=f);let c=chunkTMISJEGL_js.j(e,"w","yAlign");c&&(t.yAlign=c);let p=chunkTMISJEGL_js.j(e,"w","wrap");return p&&(t.wrap=p),Object.keys(t).length>0?t:void 0}function fe(e,t,n){if(!e)return;let r={},o=chunkTMISJEGL_js.e(e,"w","jc");if(o){let w=chunkTMISJEGL_js.j(o,"w","val");w&&(r.alignment=w);}let a=chunkTMISJEGL_js.e(e,"w","bidi");a&&(r.bidi=chunkTMISJEGL_js.m(a));let u=chunkTMISJEGL_js.e(e,"w","spacing");if(u){let w=chunkTMISJEGL_js.l(u,"w","before");w!==void 0&&(r.spaceBefore=w);let x=chunkTMISJEGL_js.l(u,"w","after");x!==void 0&&(r.spaceAfter=x);let P=chunkTMISJEGL_js.l(u,"w","line");P!==void 0&&(r.lineSpacing=P);let B={};w!==void 0&&(B.before=true),x!==void 0&&(B.after=true),(B.before||B.after)&&(r.spacingExplicit=B);let I=chunkTMISJEGL_js.j(u,"w","lineRule");I&&(r.lineSpacingRule=I);let N=chunkTMISJEGL_js.j(u,"w","beforeAutospacing");N&&(r.beforeAutospacing=N==="1"||N==="true");let L=chunkTMISJEGL_js.j(u,"w","afterAutospacing");L&&(r.afterAutospacing=L==="1"||L==="true");}let l=chunkTMISJEGL_js.e(e,"w","ind");if(l){let w=chunkTMISJEGL_js.l(l,"w","left");w!==void 0&&(r.indentLeft=w);let x=chunkTMISJEGL_js.l(l,"w","right");x!==void 0&&(r.indentRight=x);let P=chunkTMISJEGL_js.l(l,"w","firstLine");P!==void 0&&(r.indentFirstLine=P);let B=chunkTMISJEGL_js.l(l,"w","hanging");B!==void 0&&(r.indentFirstLine=-B,r.hangingIndent=true);let I=chunkTMISJEGL_js.l(l,"w","start");I!==void 0&&r.indentLeft===void 0&&(r.indentLeft=I);let N=chunkTMISJEGL_js.l(l,"w","end");N!==void 0&&r.indentRight===void 0&&(r.indentRight=N);}let f=chunkTMISJEGL_js.e(e,"w","pBdr");if(f){let w={},x=q(chunkTMISJEGL_js.e(f,"w","top"));x&&(w.top=x);let P=q(chunkTMISJEGL_js.e(f,"w","bottom"));P&&(w.bottom=P);let B=q(chunkTMISJEGL_js.e(f,"w","left"));B&&(w.left=B);let I=q(chunkTMISJEGL_js.e(f,"w","right"));I&&(w.right=I);let N=q(chunkTMISJEGL_js.e(f,"w","between"));N&&(w.between=N);let L=q(chunkTMISJEGL_js.e(f,"w","bar"));L&&(w.bar=L),Object.keys(w).length>0&&(r.borders=w);}let c=chunkTMISJEGL_js.e(e,"w","shd");c&&(r.shading=Kt(c));let p=chunkTMISJEGL_js.e(e,"w","tabs");p&&(r.tabs=Qt(p));let d=chunkTMISJEGL_js.e(e,"w","keepNext");d&&(r.keepNext=chunkTMISJEGL_js.m(d));let b=chunkTMISJEGL_js.e(e,"w","keepLines");b&&(r.keepLines=chunkTMISJEGL_js.m(b));let F=chunkTMISJEGL_js.e(e,"w","widowControl");F&&(r.widowControl=chunkTMISJEGL_js.m(F));let y=chunkTMISJEGL_js.e(e,"w","pageBreakBefore");y&&(r.pageBreakBefore=chunkTMISJEGL_js.m(y));let h=chunkTMISJEGL_js.e(e,"w","contextualSpacing");h&&(r.contextualSpacing=chunkTMISJEGL_js.m(h));let C=chunkTMISJEGL_js.e(e,"w","numPr");if(C){let w=chunkTMISJEGL_js.e(C,"w","numId"),x=chunkTMISJEGL_js.e(C,"w","ilvl");if(w||x){if(r.numPr={},w){let P=chunkTMISJEGL_js.l(w,"w","val");P!==void 0&&(r.numPr.numId=P);}if(x){let P=chunkTMISJEGL_js.l(x,"w","val");P!==void 0&&(r.numPr.ilvl=P);}}}let A=chunkTMISJEGL_js.e(e,"w","outlineLvl");if(A){let w=chunkTMISJEGL_js.l(A,"w","val");w!==void 0&&(r.outlineLevel=w);}let R=chunkTMISJEGL_js.e(e,"w","pStyle");if(R){let w=chunkTMISJEGL_js.j(R,"w","val");w&&(r.styleId=w);}let S=chunkTMISJEGL_js.e(e,"w","framePr");S&&(r.frame=Jt(S));let m=chunkTMISJEGL_js.e(e,"w","suppressLineNumbers");m&&(r.suppressLineNumbers=chunkTMISJEGL_js.m(m));let T=chunkTMISJEGL_js.e(e,"w","suppressAutoHyphens");T&&(r.suppressAutoHyphens=chunkTMISJEGL_js.m(T));let E=chunkTMISJEGL_js.e(e,"w","rPr");return E&&(r.runProperties=ue(E,t)),Object.keys(r).length>0?r:void 0}function en(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function tn(e){let t=chunkTMISJEGL_js.l(e,"w","id")??0,n=chunkTMISJEGL_js.j(e,"w","name")??"",r={type:"bookmarkStart",id:t,name:n},o=chunkTMISJEGL_js.l(e,"w","colFirst");o!==void 0&&(r.colFirst=o);let a=chunkTMISJEGL_js.l(e,"w","colLast");return a!==void 0&&(r.colLast=a),r}function nn(e){return {type:"bookmarkEnd",id:chunkTMISJEGL_js.l(e,"w","id")??0}}function $e(e,t,n=null,r=null,o=null){let a={type:"hyperlink",children:[]},u=chunkTMISJEGL_js.j(e,"r","id");if(u&&(a.rId=u,t)){let F=t.get(u);F&&(chunkD536HC5M_js.c(F),a.href=F.target);}let l=chunkTMISJEGL_js.j(e,"w","anchor");l&&(a.anchor=l,a.href||(a.href=`#${l}`));let f=chunkTMISJEGL_js.j(e,"w","tooltip");f&&(a.tooltip=f);let c=chunkTMISJEGL_js.j(e,"w","tgtFrame");c&&(a.target=c);let p=chunkTMISJEGL_js.j(e,"w","history");(p==="1"||p==="true")&&(a.history=true);let d=chunkTMISJEGL_js.j(e,"w","docLocation");d&&(a.docLocation=d);let b=chunkTMISJEGL_js.i(e);for(let F of b)switch(en(F.name)){case "r":a.children.push($(F,n,r,t,o));break;case "bookmarkStart":a.children.push(tn(F));break;case "bookmarkEnd":a.children.push(nn(F));break}return a}function cr(e){let t="";for(let n of e.children)if(n.type==="run")for(let r of n.content)r.type==="text"?t+=r.text:r.type==="tab"&&(t+=" ");return t}function pr(e){return e.href?/^https?:\/\/|^mailto:|^tel:|^ftp:/i.test(e.href):!!e.rId&&!e.anchor}function dr(e){return !!e.anchor}function mr(e){return e.href}function gr(e){return e.children.some(t=>t.type==="run")}function hr(e){return e.children.filter(t=>t.type==="run")}function wr(e,t){if(e.rId){let n=t.get(e.rId);if(n)return chunkD536HC5M_js.c(n),e.href=n.target,e.href}return e.anchor&&!e.href&&(e.href=`#${e.anchor}`),e.href}function Ze(e){let t=chunkTMISJEGL_js.l(e,"w","id")??0,n=chunkTMISJEGL_js.j(e,"w","name")??"",r={type:"bookmarkStart",id:t,name:n},o=chunkTMISJEGL_js.l(e,"w","colFirst");o!==void 0&&(r.colFirst=o);let a=chunkTMISJEGL_js.l(e,"w","colLast");return a!==void 0&&(r.colLast=a),r}function Ke(e){return {type:"bookmarkEnd",id:chunkTMISJEGL_js.l(e,"w","id")??0}}function rn(e){let t={sdtType:"richText"};if(!e||!e.elements)return t;for(let n of e.elements){if(n.type!=="element")continue;switch(n.name?.replace(/^w:/,"")??""){case "alias":t.alias=chunkTMISJEGL_js.j(n,"w","val")??void 0;break;case "tag":t.tag=chunkTMISJEGL_js.j(n,"w","val")??void 0;break;case "lock":t.lock=chunkTMISJEGL_js.j(n,"w","val")??"unlocked";break;case "placeholder":{let o=chunkTMISJEGL_js.e(n,"w","docPart");if(o){let a=chunkTMISJEGL_js.e(o,"w","val");t.placeholder=a?chunkTMISJEGL_js.j(a,"w","val")??void 0:void 0;}break}case "showingPlcHdr":t.showingPlaceholder=true;break;case "text":t.sdtType="plainText";break;case "date":t.sdtType="date",t.dateFormat=chunkTMISJEGL_js.j(n,"w","fullDate")??void 0;break;case "dropDownList":t.sdtType="dropdown",t.listItems=Qe(n);break;case "comboBox":t.sdtType="comboBox",t.listItems=Qe(n);break;case "checkbox":{t.sdtType="checkbox";let o=chunkTMISJEGL_js.e(n,"w14","checked")??chunkTMISJEGL_js.e(n,"w","checked");t.checked=o?chunkTMISJEGL_js.j(o,"w14","val")==="1"||chunkTMISJEGL_js.j(o,"w","val")==="1":false;break}case "picture":t.sdtType="picture";break;case "docPartObj":t.sdtType="buildingBlockGallery";break;case "group":t.sdtType="group";break}}return t}function Qe(e){let t=[];for(let n of e.elements??[])n.type==="element"&&(n.name==="w:listItem"||n.name?.endsWith(":listItem"))&&t.push({displayText:chunkTMISJEGL_js.j(n,"w","displayText")??"",value:chunkTMISJEGL_js.j(n,"w","value")??""});return t}function et(e){let t="";if(e.type==="text"&&typeof e.text=="string")return e.text;if(e.elements)for(let n of e.elements)if((n.name?.replace(/^.*:/,"")??"")==="t"&&n.elements)for(let o of n.elements)o.type==="text"&&typeof o.text=="string"&&(t+=o.text);else t+=et(n);return t}function K(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function tt(e){let t=new Set(["hyperlink","smartTag","sdt","sdtContent","fldSimple","customXml","ins","del","moveFrom","moveTo"]),n=new Set(["pPr","proofErr","bookmarkStart","bookmarkEnd","commentRangeStart","commentRangeEnd","commentReference","permStart","permEnd","rsidR"]),r=new Set(["t","tab","br","cr","sym","drawing","pict","object","softHyphen","noBreakHyphen","fldChar","instrText","pgNum","separator","continuationSeparator","footnoteRef","endnoteRef","footnoteReference","endnoteReference","ptab","monthShort","monthLong","yearShort","yearLong","dayShort","dayLong"]),o=false;function a(l){for(let f of chunkTMISJEGL_js.i(l)){let c=K(f.name);if(!n.has(c)){if(c==="lastRenderedPageBreak"){o=true;continue}if(c==="r"){for(let p of chunkTMISJEGL_js.i(f)){let d=K(p.name);if(d!=="rPr"){if(d==="lastRenderedPageBreak"){o=true;continue}if(d==="br"&&chunkTMISJEGL_js.j(p,"w","type")==="page")return "forced";if(r.has(d))return "visible"}}continue}if(t.has(c)){let p=a(f);if(p!=="continue")return p;continue}return "continue"}}return "continue"}let u=a(e);return u==="forced"?true:u==="visible"?o:false}function Je(e,t){if(!e)return `w:${t}`;let n=e.indexOf(":");return n<0?t:`${e.substring(0,n+1)}${t}`}function nt(e){if(e.type!=="element")return e;let t=K(e.name),n=e.name;return t==="delText"?n=Je(e.name,"t"):t==="delInstrText"&&(n=Je(e.name,"instrText")),{...e,name:n,elements:e.elements?.map(nt)}}function Z(e){let t=chunkTMISJEGL_js.j(e,"w","id"),n=t?parseInt(t,10):0,r=chunkTMISJEGL_js.j(e,"w","author"),o=chunkTMISJEGL_js.j(e,"w","date"),a=r?.trim()??"",u=o?.trim()??"";return {id:Number.isInteger(n)&&n>=0?n:0,author:a.length>0?a:"Unknown",date:u.length>0?u:void 0}}function on(e){let t=Z(e),n=(chunkTMISJEGL_js.j(e,"w","rsid")??"").trim();return n.length>0?{...t,rsid:n}:t}function rt(e,t,n,r){if(!e)return;let o=chunkTMISJEGL_js.f(e,"w","pPrChange").map(a=>{let u=chunkTMISJEGL_js.e(a,"w","pPr");return {type:"paragraphPropertyChange",info:on(a),previousFormatting:fe(u,t),currentFormatting:r}}).filter(a=>a.previousFormatting||a.currentFormatting);return o.length>0?o:void 0}function an(e,t,n,r,o){return $e(e,t,n,r,o)}function ln(e){return Ze(e)}function sn(e){return Ke(e)}function ot(e){let t=e.trim().match(/^\\?([A-Z]+)/i);if(!t)return "UNKNOWN";let n=t[1].toUpperCase();return ["PAGE","NUMPAGES","NUMWORDS","NUMCHARS","DATE","TIME","CREATEDATE","SAVEDATE","PRINTDATE","AUTHOR","TITLE","SUBJECT","KEYWORDS","COMMENTS","FILENAME","FILESIZE","TEMPLATE","DOCPROPERTY","DOCVARIABLE","REF","PAGEREF","NOTEREF","HYPERLINK","TOC","TOA","INDEX","SEQ","STYLEREF","AUTONUM","AUTONUMLGL","AUTONUMOUT","IF","MERGEFIELD","NEXT","NEXTIF","ASK","SET","QUOTE","INCLUDETEXT","INCLUDEPICTURE","SYMBOL","ADVANCE","EDITTIME","REVNUM","SECTION","SECTIONPAGES","USERADDRESS","USERNAME","USERINITIALS"].includes(n)?n:"UNKNOWN"}function un(e,t,n,r,o){let a=chunkTMISJEGL_js.j(e,"w","instr")??"",u=ot(a),l={type:"simpleField",instruction:a,fieldType:u,content:[]},f=chunkTMISJEGL_js.j(e,"w","fldLock");(f==="1"||f==="true")&&(l.fldLock=true);let c=chunkTMISJEGL_js.j(e,"w","dirty");(c==="1"||c==="true")&&(l.dirty=true);let p=chunkTMISJEGL_js.i(e);for(let d of p)K(d.name)==="r"&&l.content.push($(d,t,n,r,o));return l}function V(e,t,n,r,o,a,u="default"){let l=[],f=chunkTMISJEGL_js.i(e),c=false,p="",d=[],b=[],F=false,y=false,h=false;for(let C of f){let A=K(C.name);switch(A){case "r":{let R=u==="deletion"?nt(C):C,S=$(R,t,n,o,a),m=false,T=false,E=false,w="";for(let x of S.content)x.type==="fieldChar"?x.charType==="begin"?(m=true,x.fldLock&&(y=true),x.dirty&&(h=true)):x.charType==="separate"?T=true:x.charType==="end"&&(E=true):x.type==="instrText"&&(w+=x.text);if(m&&(c=true,F=false,p="",d=[],b=[],y=false,h=false),c){if(w&&(p+=w),T&&(F=true),F&&!E?T||b.push(S):!F&&!m&&d.push(S),E){let x={type:"complexField",instruction:p.trim(),fieldType:ot(p),fieldCode:d,fieldResult:b};y&&(x.fldLock=true),h&&(x.dirty=true),l.push(x),c=false;}}else l.push(S);break}case "hyperlink":l.push(an(C,o,t,n,a));break;case "bookmarkStart":l.push(ln(C));break;case "bookmarkEnd":l.push(sn(C));break;case "fldSimple":l.push(un(C,t,n,o,a));break;case "pPr":break;case "proofErr":case "permStart":case "permEnd":case "customXml":break;case "sdt":{let R=(C.elements??[]).find(m=>m.type==="element"&&(m.name==="w:sdtPr"||m.name?.endsWith(":sdtPr"))),S=(C.elements??[]).find(m=>m.type==="element"&&(m.name==="w:sdtContent"||m.name?.endsWith(":sdtContent")));if(S){let m=V(S,t,n,null,o,a,u),E={type:"inlineSdt",properties:rn(R??null),content:m.filter(w=>w.type==="run"||w.type==="hyperlink"||w.type==="simpleField"||w.type==="complexField"||w.type==="inlineSdt"||w.type==="mathEquation")};l.push(E);}break}case "ins":{let R=Z(C),S=V(C,t,n,null,o,a),m={type:"insertion",info:R,content:S.filter(T=>T.type==="run"||T.type==="hyperlink")};l.push(m);break}case "del":{let R=Z(C),S=V(C,t,n,null,o,a,"deletion"),m={type:"deletion",info:R,content:S.filter(T=>T.type==="run"||T.type==="hyperlink")};l.push(m);break}case "moveFrom":{let R=Z(C),S=V(C,t,n,null,o,a,"deletion"),m={type:"moveFrom",info:R,content:S.filter(T=>T.type==="run"||T.type==="hyperlink")};l.push(m);break}case "moveTo":{let R=Z(C),S=V(C,t,n,null,o,a),m={type:"moveTo",info:R,content:S.filter(T=>T.type==="run"||T.type==="hyperlink")};l.push(m);break}case "smartTag":break;case "moveFromRangeStart":{let R=parseInt(chunkTMISJEGL_js.j(C,"w","id")??"0",10),S=chunkTMISJEGL_js.j(C,"w","name")??"";l.push({type:"moveFromRangeStart",id:R,name:S});break}case "moveFromRangeEnd":{let R=parseInt(chunkTMISJEGL_js.j(C,"w","id")??"0",10);l.push({type:"moveFromRangeEnd",id:R});break}case "moveToRangeStart":{let R=parseInt(chunkTMISJEGL_js.j(C,"w","id")??"0",10),S=chunkTMISJEGL_js.j(C,"w","name")??"";l.push({type:"moveToRangeStart",id:R,name:S});break}case "moveToRangeEnd":{let R=parseInt(chunkTMISJEGL_js.j(C,"w","id")??"0",10);l.push({type:"moveToRangeEnd",id:R});break}case "commentRangeStart":{let R=parseInt(chunkTMISJEGL_js.j(C,"w","id")??"0",10);l.push({type:"commentRangeStart",id:R});break}case "commentRangeEnd":{let R=parseInt(chunkTMISJEGL_js.j(C,"w","id")??"0",10);l.push({type:"commentRangeEnd",id:R});break}case "oMath":case "oMathPara":{let R=A==="oMathPara",S=chunkTMISJEGL_js.b(C),m=et(C),T={type:"mathEquation",display:R?"block":"inline",ommlXml:S,plainText:m||void 0};l.push(T);break}}}return l}function fn(e){let t="";for(let n of e.content)if(n.type==="run")for(let r of n.content)r.type==="text"?t+=r.text:r.type==="tab"?t+=" ":r.type==="break"&&(r.breakType==="page"?t+="\f":t+=`
|
|
4
|
+
`);else if(n.type==="hyperlink"){for(let r of n.children)if(r.type==="run")for(let o of r.content)o.type==="text"&&(t+=o.text);}else if(n.type==="simpleField"){for(let r of n.content)if(r.type==="run")for(let o of r.content)o.type==="text"&&(t+=o.text);}else if(n.type==="complexField")for(let r of n.fieldResult)for(let o of r.content)o.type==="text"&&(t+=o.text);return t}function j(e,t,n,r,o=null,a=null,u){let l={type:"paragraph",content:[]},f=chunkTMISJEGL_js.j(e,"w14","paraId")??chunkTMISJEGL_js.j(e,"w","paraId");f&&(l.paraId=f);let c=chunkTMISJEGL_js.j(e,"w14","textId")??chunkTMISJEGL_js.j(e,"w","textId");c&&(l.textId=c),!u?.inHeaderFooter&&tt(e)&&(l.renderedPageBreakBefore=true);let p=chunkTMISJEGL_js.e(e,"w","pPr");if(p){l.formatting=fe(p,n),l.propertyChanges=rt(p,n,t,l.formatting);let F=chunkTMISJEGL_js.e(p,"w","sectPr");F&&(l.sectionProperties=Ge(F));}let d=V(e,t,n,r,o,a);l.content=we(d);let b=l.formatting?.numPr;if(!b&&l.formatting?.styleId&&t){let F=t.get(l.formatting.styleId);F?.pPr?.numPr&&(b=F.pPr.numPr,l.formatting||(l.formatting={}),l.formatting.numPr=b);}if(b&&r){let{numId:F,ilvl:y=0}=b;if(F!==void 0&&F!==0){let h=r.getLevel(F,y);if(h){let C=[];for(let S=0;S<=y;S+=1){let m=r.getLevel(F,S);C.push(m?.numFmt??"decimal");}let A=r.getInstance(F),R=A?.levelOverrides?.find(S=>S.ilvl===y);if(l.listRendering={level:y,numId:F,marker:h.lvlText,isBullet:h.numFmt==="bullet",numFmt:h.numFmt,markerHidden:h.rPr?.hidden||void 0,markerFontFamily:h.rPr?.fontFamily?.ascii||h.rPr?.fontFamily?.hAnsi||void 0,markerFontSize:h.rPr?.fontSize?h.rPr.fontSize/2:void 0,markerSuffix:h.suffix,levelNumFmts:C,abstractNumId:A?.abstractNumId,startOverride:R?.startOverride},h.pPr){l.formatting||(l.formatting={});let S=p?chunkTMISJEGL_js.e(p,"w","ind"):null,m=S!=null&&(chunkTMISJEGL_js.j(S,"w","left")!==null||chunkTMISJEGL_js.j(S,"w","start")!==null),T=w=>{let x=S?chunkTMISJEGL_js.j(S,"w",w):null;if(x===null)return false;let P=parseInt(x,10);return Number.isNaN(P)||P!==0},E=S!=null&&(T("firstLine")||T("hanging"));!m&&h.pPr.indentLeft!==void 0&&(l.formatting.indentLeft=h.pPr.indentLeft),E||(h.pPr.indentFirstLine!==void 0&&(l.formatting.indentFirstLine=h.pPr.indentFirstLine),h.pPr.hangingIndent!==void 0&&(l.formatting.hangingIndent=h.pPr.hangingIndent));}}}}return l}function it(e){if(!e)return;let t={},n=X(chunkTMISJEGL_js.e(e,"w","tblW"));n&&(t.width=n);let r=chunkTMISJEGL_js.e(e,"w","jc");if(r){let h=chunkTMISJEGL_js.j(r,"w","val");(h==="left"||h==="center"||h==="right"||h==="start")&&(t.justification=h==="start"?"left":h);}let o=X(chunkTMISJEGL_js.e(e,"w","tblCellSpacing"));o&&(t.cellSpacing=o);let a=X(chunkTMISJEGL_js.e(e,"w","tblInd"));a&&(t.indent=a);let u=ee(chunkTMISJEGL_js.e(e,"w","tblBorders"));u&&(t.borders=u);let l=te(chunkTMISJEGL_js.e(e,"w","tblCellMar"));l&&(t.cellMargins=l);let f=chunkTMISJEGL_js.e(e,"w","tblLayout");if(f){let h=chunkTMISJEGL_js.j(f,"w","type");(h==="fixed"||h==="autofit")&&(t.layout=h);}let c=chunkTMISJEGL_js.e(e,"w","tblStyle");if(c){let h=chunkTMISJEGL_js.j(c,"w","val");h&&(t.styleId=h);}let p=ge(chunkTMISJEGL_js.e(e,"w","tblLook"));p&&(t.look=p);let d=ne(chunkTMISJEGL_js.e(e,"w","shd"));d&&(t.shading=d);let b=chunkTMISJEGL_js.e(e,"w","tblOverlap");if(b){let h=chunkTMISJEGL_js.j(b,"w","val");(h==="never"||h==="overlap")&&(t.overlap=h);}let F=he(chunkTMISJEGL_js.e(e,"w","tblpPr"));if(F&&(t.floating=F),chunkTMISJEGL_js.m(chunkTMISJEGL_js.e(e,"w","bidiVisual"))&&(t.bidi=true),Object.keys(t).length!==0)return t}function cn(e,t){if(!e)return;let n=chunkTMISJEGL_js.f(e,"w","tblPrChange").map(r=>{let o=chunkTMISJEGL_js.e(r,"w","tblPr");return {type:"tablePropertyChange",info:J(r),previousFormatting:it(o),currentFormatting:t}}).filter(r=>r.previousFormatting||r.currentFormatting);return n.length>0?n:void 0}function pn(e,t){if(!e)return;let n=chunkTMISJEGL_js.f(e,"w","trPrChange").map(r=>{let o=chunkTMISJEGL_js.e(r,"w","trPr");return {type:"tableRowPropertyChange",info:J(r),previousFormatting:at(o),currentFormatting:t}}).filter(r=>r.previousFormatting||r.currentFormatting);return n.length>0?n:void 0}function dn(e,t){if(!e)return;let n=chunkTMISJEGL_js.f(e,"w","tcPrChange").map(r=>{let o=chunkTMISJEGL_js.e(r,"w","tcPr");return {type:"tableCellPropertyChange",info:J(r),previousFormatting:st(o),currentFormatting:t}}).filter(r=>r.previousFormatting||r.currentFormatting);return n.length>0?n:void 0}function mn(e){if(!e)return;let t=chunkTMISJEGL_js.e(e,"w","ins");if(t)return {type:"tableRowInsertion",info:W(t)};let n=chunkTMISJEGL_js.e(e,"w","del");if(n)return {type:"tableRowDeletion",info:W(n)}}function gn(e){if(!e)return;let t=chunkTMISJEGL_js.e(e,"w","cellIns");if(t)return {type:"tableCellInsertion",info:W(t)};let n=chunkTMISJEGL_js.e(e,"w","cellDel");if(n)return {type:"tableCellDeletion",info:W(n)};let r=chunkTMISJEGL_js.e(e,"w","cellMerge");if(r)return {type:"tableCellMerge",info:W(r)}}function at(e){if(!e)return;let t={},n=chunkTMISJEGL_js.e(e,"w","trHeight");if(n){let f=chunkTMISJEGL_js.l(n,"w","val");f!==void 0&&f>0&&(t.height={value:f,type:"dxa"});let c=chunkTMISJEGL_js.j(n,"w","hRule");(c==="auto"||c==="atLeast"||c==="exact")&&(t.heightRule=c);}chunkTMISJEGL_js.m(chunkTMISJEGL_js.e(e,"w","tblHeader"))&&(t.header=true),chunkTMISJEGL_js.m(chunkTMISJEGL_js.e(e,"w","cantSplit"))&&(t.cantSplit=true);let a=chunkTMISJEGL_js.e(e,"w","jc");if(a){let f=chunkTMISJEGL_js.j(a,"w","val");(f==="left"||f==="center"||f==="right")&&(t.justification=f);}chunkTMISJEGL_js.m(chunkTMISJEGL_js.e(e,"w","hidden"))&&(t.hidden=true);let l=lt(chunkTMISJEGL_js.e(e,"w","cnfStyle"));if(l&&(t.conditionalFormat=l),Object.keys(t).length!==0)return t}function lt(e){if(!e)return;let t={},n=chunkTMISJEGL_js.j(e,"w","firstRow");(n==="1"||n==="true")&&(t.firstRow=true);let r=chunkTMISJEGL_js.j(e,"w","lastRow");(r==="1"||r==="true")&&(t.lastRow=true);let o=chunkTMISJEGL_js.j(e,"w","firstColumn");(o==="1"||o==="true")&&(t.firstColumn=true);let a=chunkTMISJEGL_js.j(e,"w","lastColumn");(a==="1"||a==="true")&&(t.lastColumn=true);let u=chunkTMISJEGL_js.j(e,"w","oddHBand");(u==="1"||u==="true")&&(t.oddHBand=true);let l=chunkTMISJEGL_js.j(e,"w","evenHBand");(l==="1"||l==="true")&&(t.evenHBand=true);let f=chunkTMISJEGL_js.j(e,"w","oddVBand");(f==="1"||f==="true")&&(t.oddVBand=true);let c=chunkTMISJEGL_js.j(e,"w","evenVBand");(c==="1"||c==="true")&&(t.evenVBand=true);let p=chunkTMISJEGL_js.j(e,"w","firstRowFirstColumn");(p==="1"||p==="true")&&(t.nwCell=true);let d=chunkTMISJEGL_js.j(e,"w","firstRowLastColumn");(d==="1"||d==="true")&&(t.neCell=true);let b=chunkTMISJEGL_js.j(e,"w","lastRowFirstColumn");(b==="1"||b==="true")&&(t.swCell=true);let F=chunkTMISJEGL_js.j(e,"w","lastRowLastColumn");(F==="1"||F==="true")&&(t.seCell=true);let y=chunkTMISJEGL_js.j(e,"w","val");if(y&&y.length===12&&(y[0]==="1"&&(t.firstRow=true),y[1]==="1"&&(t.lastRow=true),y[2]==="1"&&(t.firstColumn=true),y[3]==="1"&&(t.lastColumn=true),y[4]==="1"&&(t.oddVBand=true),y[5]==="1"&&(t.evenVBand=true),y[6]==="1"&&(t.oddHBand=true),y[7]==="1"&&(t.evenHBand=true),y[8]==="1"&&(t.nwCell=true),y[9]==="1"&&(t.neCell=true),y[10]==="1"&&(t.swCell=true),y[11]==="1"&&(t.seCell=true)),Object.keys(t).length!==0)return t}function st(e){if(!e)return;let t={},n=X(chunkTMISJEGL_js.e(e,"w","tcW"));n&&(t.width=n);let r=ee(chunkTMISJEGL_js.e(e,"w","tcBorders"));r&&(t.borders=r);let o=te(chunkTMISJEGL_js.e(e,"w","tcMar"));o&&(t.margins=o);let a=ne(chunkTMISJEGL_js.e(e,"w","shd"));a&&(t.shading=a);let u=chunkTMISJEGL_js.e(e,"w","vAlign");if(u){let y=chunkTMISJEGL_js.j(u,"w","val");(y==="top"||y==="center"||y==="bottom")&&(t.verticalAlign=y);}let l=chunkTMISJEGL_js.e(e,"w","textDirection");if(l){let y=chunkTMISJEGL_js.j(l,"w","val");y&&(t.textDirection=y);}let f=chunkTMISJEGL_js.e(e,"w","gridSpan");if(f){let y=chunkTMISJEGL_js.l(f,"w","val");y!==void 0&&y>1&&(t.gridSpan=y);}let c=chunkTMISJEGL_js.e(e,"w","vMerge");c&&(chunkTMISJEGL_js.j(c,"w","val")==="restart"?t.vMerge="restart":t.vMerge="continue"),chunkTMISJEGL_js.m(chunkTMISJEGL_js.e(e,"w","tcFitText"))&&(t.fitText=true),chunkTMISJEGL_js.m(chunkTMISJEGL_js.e(e,"w","noWrap"))&&(t.noWrap=true),chunkTMISJEGL_js.m(chunkTMISJEGL_js.e(e,"w","hideMark"))&&(t.hideMark=true);let F=lt(chunkTMISJEGL_js.e(e,"w","cnfStyle"));if(F&&(t.conditionalFormat=F),Object.keys(t).length!==0)return t}function hn(e,t,n,r,o,a,u){let l=[],f=e.elements||[];for(let c of f){if(!c.name)continue;let p=c.name.split(":").pop();if(p==="p"){let d=j(c,t,n,r,o,a,u);l.push(d);}else if(p==="tbl"){let d=Y(c,t,n,r,o,a,u);l.push(d);}}return l.length===0&&l.push({type:"paragraph",content:[]}),l}function wn(e,t,n,r,o,a,u){let l={type:"tableCell",content:[]},f=chunkTMISJEGL_js.e(e,"w","tcPr"),c=st(f);return c&&(l.formatting=c),l.propertyChanges=dn(f,c),l.structuralChange=gn(f),l.content=hn(e,t,n,r,o,a,u),l}function yn(e,t,n,r,o,a,u){let l={type:"tableRow",cells:[]},f=chunkTMISJEGL_js.e(e,"w","trPr"),c=at(f);c&&(l.formatting=c),l.propertyChanges=pn(f,c),l.structuralChange=mn(f);let p=chunkTMISJEGL_js.f(e,"w","tc");for(let d of p){let b=wn(d,t,n,r,o,a,u);l.cells.push(b);}return l}function bn(e){if(!e)return;let t=[],n=chunkTMISJEGL_js.f(e,"w","gridCol");for(let r of n){let o=chunkTMISJEGL_js.l(r,"w","w")??0;t.push(o);}if(!(t.length>0&&t.every(r=>r<=0)))return t.length>0?t:void 0}function Tn(e){return e.cells.reduce((t,n)=>t+(n.formatting?.gridSpan??1),0)}function Fn(e){let t=Math.max(e.columnWidths?.length??0,...e.rows.map(n=>Tn(n)));if(!(t<=1))for(let n of e.rows){if(n.cells.length!==1)continue;let r=n.cells[0];(r.formatting?.gridSpan??1)>=t||r.formatting?.vMerge||r.formatting?.gridSpan==null&&(r.formatting={...r.formatting??{},gridSpan:t});}}function Y(e,t,n,r,o,a,u){let l={type:"table",rows:[]},f=chunkTMISJEGL_js.e(e,"w","tblPr"),c=it(f);c&&(l.formatting=c),l.propertyChanges=cn(f,c);let p=bn(chunkTMISJEGL_js.e(e,"w","tblGrid"));p&&(l.columnWidths=p);let d=chunkTMISJEGL_js.f(e,"w","tr");for(let b of d){let F=yn(b,t,n,r,o,a,u);l.rows.push(F);}return Fn(l),l}exports.A=qn;exports.B=Ge;exports.C=Kn;exports.D=Qn;exports.E=$;exports.F=$e;exports.G=cr;exports.H=pr;exports.I=dr;exports.J=mr;exports.K=gr;exports.L=hr;exports.M=wr;exports.N=fn;exports.O=j;exports.a=xn;exports.b=_;exports.c=Ae;exports.d=D;exports.e=ee;exports.f=te;exports.g=ne;exports.h=ge;exports.i=he;exports.j=mt;exports.k=gt;exports.l=ht;exports.m=wt;exports.n=yt;exports.o=it;exports.p=bt;exports.q=re;exports.r=In;exports.s=Ln;exports.t=jn;exports.u=Vn;exports.v=Ve;exports.w=ze;exports.x=zn;exports.y=Un;exports.z=Gn;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkIO6HZ7KR_js=require('./chunk-IO6HZ7KR.js');var t=new chunkIO6HZ7KR_js.w(chunkIO6HZ7KR_js.v());t.buildSchema();t.initializeRuntime();var s=t,n=t.getSchema();exports.a=s;exports.b=n;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkN3EIZN65_js=require('./chunk-N3EIZN65.js'),chunkU4UCHBZ7_js=require('./chunk-U4UCHBZ7.js'),chunkTE2AF7FM_js=require('./chunk-TE2AF7FM.js'),chunk3NLVHZMT_js=require('./chunk-3NLVHZMT.js'),chunkV6SWUCTS_js=require('./chunk-V6SWUCTS.js'),chunkDC7S76ZX_js=require('./chunk-DC7S76ZX.js');var P=class o{constructor(t){chunkDC7S76ZX_js.a(this,"_document");chunkDC7S76ZX_js.a(this,"_pendingVariables");t instanceof ArrayBuffer||ArrayBuffer.isView(t)?this._document={package:{document:{content:[]}},originalBuffer:t instanceof ArrayBuffer?t:t.buffer}:this._document=t,this._pendingVariables={};}static async fromBuffer(t){let e=await chunkV6SWUCTS_js.f(t);return new o(e)}static fromDocument(t){return new o(t)}getDocument(){return this._document}getText(){let t=this._document.package.document;return this._getBodyText(t)}getFormattedText(){let t=[],e=this._document.package.document;for(let n of e.content)n.type==="paragraph"&&this._extractParagraphSegments(n,t);return t}getVariables(){return chunkU4UCHBZ7_js.a(this._document)}getStyles(){let t=this._document.package.styles;if(!t?.styles)return [];let e=[];for(let[n,r]of Object.entries(t.styles))if(typeof r=="object"&&r!==null){let a=r;e.push({id:n,name:a.name||n,type:a.type==="numbering"?"paragraph":a.type||"paragraph",builtIn:a.default});}return e}getPageCount(){let t=this.getWordCount();return Math.max(1,Math.ceil(t/500))}getWordCount(){return this.getText().split(/\s+/).filter(n=>n.length>0).length}getCharacterCount(t=true){let e=this.getText();return t?e.length:e.replace(/\s/g,"").length}getParagraphCount(){return this._document.package.document.content.filter(t=>t.type==="paragraph").length}getTableCount(){return this._document.package.document.content.filter(t=>t.type==="table").length}getAgentContext(t=100){let e=this._document.package.document,n=e.content.filter(i=>i.type==="paragraph"),r=n.map((i,s)=>{let c=this._getParagraphText(i),p=i.formatting?.styleId;return {index:s,preview:c.slice(0,t),style:p,isHeading:p?.toLowerCase().includes("heading")||false,headingLevel:this._parseHeadingLevel(p),isListItem:!!i.listRendering,isEmpty:c.trim().length===0}}),a=(e.sections||[]).map((i,s)=>({index:s,paragraphCount:i.content?.length||0,pageSize:i.properties?.pageWidth&&i.properties?.pageHeight?{width:i.properties.pageWidth,height:i.properties.pageHeight}:void 0,isLandscape:i.properties?.orientation==="landscape",hasHeader:!!i.properties?.headerReferences?.length,hasFooter:!!i.properties?.footerReferences?.length}));return {paragraphCount:n.length,wordCount:this.getWordCount(),characterCount:this.getCharacterCount(),variables:this.getVariables(),variableCount:this.getVariables().length,availableStyles:this.getStyles(),outline:r,sections:a,hasTables:this.getTableCount()>0,hasImages:this._hasImages(),hasHyperlinks:this._hasHyperlinks()}}insertText(t,e,n={}){let r={type:"insertText",position:t,text:e,formatting:n.formatting};return this._executeCommand(r)}replaceRange(t,e,n={}){let r={type:"replaceText",range:t,text:e,formatting:n.formatting};return this._executeCommand(r)}deleteRange(t){let e={type:"deleteText",range:t};return this._executeCommand(e)}applyFormatting(t,e){let n={type:"formatText",range:t,formatting:e};return this._executeCommand(n)}applyStyle(t,e){let n={type:"applyStyle",paragraphIndex:t,styleId:e};return this._executeCommand(n)}applyParagraphFormatting(t,e){let n={type:"formatParagraph",paragraphIndex:t,formatting:e};return this._executeCommand(n)}insertTable(t,e,n,r={}){let a={type:"insertTable",position:t,rows:e,columns:n,data:r.data,hasHeader:r.hasHeader};return this._executeCommand(a)}insertImage(t,e,n={}){let r={type:"insertImage",position:t,src:e,width:n.width,height:n.height,alt:n.alt};return this._executeCommand(r)}insertHyperlink(t,e,n={}){let r={type:"insertHyperlink",range:t,url:e,displayText:n.displayText,tooltip:n.tooltip};return this._executeCommand(r)}removeHyperlink(t){let e={type:"removeHyperlink",range:t};return this._executeCommand(e)}insertParagraphBreak(t){let e={type:"insertParagraphBreak",position:t};return this._executeCommand(e)}mergeParagraphs(t,e){let n={type:"mergeParagraphs",paragraphIndex:t,count:e};return this._executeCommand(n)}setVariable(t,e){return this._pendingVariables[t]=e,this}setVariables(t){for(let[e,n]of Object.entries(t))this._pendingVariables[e]=n;return this}getPendingVariables(){return {...this._pendingVariables}}clearPendingVariables(){return this._pendingVariables={},this}async applyVariables(t){let e={...this._pendingVariables,...t};if(Object.keys(e).length===0)return this;let n=this._document.originalBuffer;if(!n)throw new Error("Cannot apply variables: no original buffer for processing");let{processTemplate:r}=await import('./processTemplate-HH2E3HBO.js'),a=r(n,e),i=await chunkV6SWUCTS_js.f(a),s=new o(i);return s._pendingVariables={},s}async toBuffer(t){if(this._document.originalBuffer){if(t?.selective){let n=await chunkN3EIZN65_js.c(this._document,this._document.originalBuffer,t.selective);if(n)return this._document.originalBuffer=n,n}let e=await chunk3NLVHZMT_js.h(this._document);return this._document.originalBuffer=e,e}return chunk3NLVHZMT_js.s(this._document)}async toBlob(t="application/vnd.openxmlformats-officedocument.wordprocessingml.document"){let e=await this.toBuffer();return new Blob([e],{type:t})}executeCommands(t){return new o(chunkTE2AF7FM_js.b(this._document,t))}_executeCommand(t){let e=new o(chunkTE2AF7FM_js.a(this._document,t));return e._pendingVariables={...this._pendingVariables},e}_getBodyText(t){let e=[];for(let n of t.content)n.type==="paragraph"?e.push(this._getParagraphText(n)):n.type==="table"&&e.push(this._getTableText(n));return e.join(`
|
|
2
2
|
`)}_getParagraphText(t){let e=[];for(let n of t.content)n.type==="run"?e.push(this._getRunText(n)):n.type==="hyperlink"&&e.push(this._getHyperlinkText(n));return e.join("")}_getRunText(t){return t.content.filter(e=>e.type==="text").map(e=>e.text).join("")}_getHyperlinkText(t){let e=[];for(let n of t.children)n.type==="run"&&e.push(this._getRunText(n));return e.join("")}_getTableText(t){let e=[];for(let n of t.rows)for(let r of n.cells)for(let a of r.content)a.type==="paragraph"&&e.push(this._getParagraphText(a));return e.join(" ")}_extractParagraphSegments(t,e){for(let n of t.content)if(n.type==="run"){let r=this._getRunText(n);r&&e.push({text:r,formatting:n.formatting});}else if(n.type==="hyperlink"){let r=n.href||"";for(let a of n.children)if(a.type==="run"){let i=this._getRunText(a);i&&e.push({text:i,formatting:a.formatting,isHyperlink:true,hyperlinkUrl:r});}}}_parseHeadingLevel(t){if(!t)return;let e=t.match(/heading\s*(\d)/i);if(e)return parseInt(e[1],10)}_hasImages(){let t=this._document.package.document;for(let e of t.content)if(e.type==="paragraph"){for(let n of e.content)if(n.type==="run"){for(let r of n.content)if(r.type==="drawing")return true}}return false}_hasHyperlinks(){let t=this._document.package.document;for(let e of t.content)if(e.type==="paragraph"){for(let n of e.content)if(n.type==="hyperlink")return true}return false}};async function Ct(o){return P.fromBuffer(o)}function kt(o){return P.fromDocument(o)}function M(o,t={}){let{outlineMaxChars:e=100,maxOutlineParagraphs:n=50}=t,r=o.package.document,a=r.content.filter(y=>y.type==="paragraph"),i=z(a,e,n),s=chunkU4UCHBZ7_js.a(o),c=W(o),p=$(r),u=U(r),d=G(r),f=r.content.some(y=>y.type==="table"),x=K(r),l=N(r);return {paragraphCount:a.length,wordCount:u,characterCount:d,variables:s,variableCount:s.length,availableStyles:c,outline:i,sections:p,hasTables:f,hasImages:x,hasHyperlinks:l}}function At(o,t,e={}){let{contextChars:n=200,includeSuggestions:r=true}=e,i=o.package.document.content.filter(m=>m.type==="paragraph"),s=i[t.start.paragraphIndex];if(!s)throw new Error(`Paragraph not found at index ${t.start.paragraphIndex}`);let c=g(s),p="";if(t.start.paragraphIndex===t.end.paragraphIndex)p=c.slice(t.start.offset,t.end.offset);else {let m=[];for(let b=t.start.paragraphIndex;b<=t.end.paragraphIndex;b++){let H=i[b];if(!H)continue;let _=g(H);b===t.start.paragraphIndex?m.push(_.slice(t.start.offset)):b===t.end.paragraphIndex?m.push(_.slice(0,t.end.offset)):m.push(_);}p=m.join(`
|
|
3
3
|
`);}let u=Y(i,t.start.paragraphIndex,t.start.offset,n),d=Z(i,t.end.paragraphIndex,t.end.offset,n),f=tt(s,t.start.offset),x=s.formatting||{},l={index:t.start.paragraphIndex,fullText:c,style:s.formatting?.styleId,wordCount:v(c)},y=false,A=et(s,t.start.offset),S=r?nt(p):[];return {selectedText:p,range:t,formatting:f,paragraphFormatting:x,textBefore:u,textAfter:d,paragraph:l,inTable:y,inHyperlink:A,suggestedActions:S}}function L(o){let t=M(o,{outlineMaxChars:50,maxOutlineParagraphs:10}),e=[`Document with ${t.paragraphCount} paragraphs, ${t.wordCount} words.`];t.hasTables&&e.push("Contains tables."),t.hasImages&&e.push("Contains images."),t.hasHyperlinks&&e.push("Contains hyperlinks."),t.variableCount>0&&e.push(`Has ${t.variableCount} template variables: ${t.variables.join(", ")}`);let n=t.outline.filter(r=>r.isHeading);if(n.length>0){e.push(`
|
|
4
4
|
Headings:`);for(let r of n.slice(0,5)){let a=r.headingLevel||1;e.push(`${" ".repeat(a-1)}- ${r.preview}`);}n.length>5&&e.push(` ... and ${n.length-5} more headings`);}return e.join(" ")}function z(o,t,e){let n=[];for(let r=0;r<Math.min(o.length,e);r++){let a=o[r],i=g(a),s=a.formatting?.styleId;n.push({index:r,preview:i.slice(0,t),style:s,isHeading:Q(s),headingLevel:X(s),isListItem:!!a.listRendering,isEmpty:i.trim().length===0});}return n}function W(o){let t=o.package.styles;if(!t?.styles)return [];let e=[];for(let[n,r]of Object.entries(t.styles))if(typeof r=="object"&&r!==null){let a=r;e.push({id:n,name:a.name||n,type:a.type==="numbering"?"paragraph":a.type||"paragraph",builtIn:a.default});}return e}function $(o){return o.sections?o.sections.map((t,e)=>({index:e,paragraphCount:t.content?.length||0,pageSize:t.properties?.pageWidth&&t.properties?.pageHeight?{width:t.properties.pageWidth,height:t.properties.pageHeight}:void 0,isLandscape:t.properties?.orientation==="landscape",hasHeader:!!t.properties?.headerReferences?.length,hasFooter:!!t.properties?.footerReferences?.length})):[]}function U(o){let t=0;for(let e of o.content)if(e.type==="paragraph"){let n=g(e);t+=v(n);}else e.type==="table"&&(t+=q(e));return t}function v(o){return o.split(/\s+/).filter(e=>e.length>0).length}function G(o){let t=0;for(let e of o.content)if(e.type==="paragraph"){let n=g(e);t+=n.length;}else e.type==="table"&&(t+=J(e));return t}function q(o){let t=0;for(let e of o.rows)for(let n of e.cells)for(let r of n.content)if(r.type==="paragraph"){let a=g(r);t+=v(a);}return t}function J(o){let t=0;for(let e of o.rows)for(let n of e.cells)for(let r of n.content)if(r.type==="paragraph"){let a=g(r);t+=a.length;}return t}function g(o){let t=[];for(let e of o.content)e.type==="run"?t.push(T(e)):e.type==="hyperlink"&&t.push(F(e));return t.join("")}function T(o){return o.content.filter(t=>t.type==="text").map(t=>t.text).join("")}function F(o){let t=[];for(let e of o.children)e.type==="run"&&t.push(T(e));return t.join("")}function K(o){for(let t of o.content)if(t.type==="paragraph"){for(let e of t.content)if(e.type==="run"){for(let n of e.content)if(n.type==="drawing")return true}}return false}function N(o){for(let t of o.content)if(t.type==="paragraph"){for(let e of t.content)if(e.type==="hyperlink")return true}return false}function Q(o){return o?o.toLowerCase().includes("heading"):false}function X(o){if(!o)return;let t=o.match(/heading\s*(\d)/i);if(t)return parseInt(t[1],10)}function Y(o,t,e,n){let r=[],a=0,i=o[t];if(i){let p=g(i).slice(0,e);r.unshift(p),a+=p.length;}for(let c=t-1;c>=0&&a<n;c--){let p=o[c];if(!p)continue;let u=g(p);r.unshift(u),a+=u.length;}let s=r.join(`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Document } from './types/document.js';
|
|
2
2
|
import { T as ThemeColorSlot, C as ColorValue } from './colors-C3vA7HUU.js';
|
|
3
|
-
import { T as Theme, f as ThemeColorScheme } from './styles-
|
|
3
|
+
import { T as Theme, f as ThemeColorScheme } from './styles-BBv7doYK.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Template Processing Utility
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Document } from './types/document.mjs';
|
|
2
2
|
import { T as ThemeColorSlot, C as ColorValue } from './colors-C3vA7HUU.mjs';
|
|
3
|
-
import { T as Theme, f as ThemeColorScheme } from './styles-
|
|
3
|
+
import { T as Theme, f as ThemeColorScheme } from './styles-EI2lxeEN.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Template Processing Utility
|
package/dist/core-plugins.d.mts
CHANGED
|
@@ -29,11 +29,11 @@ export { C as CommandHandler, a as CommandResult, E as ExtractCommand, J as Json
|
|
|
29
29
|
export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-Cpyybgij.mjs';
|
|
30
30
|
import './types/document.mjs';
|
|
31
31
|
import './colors-C3vA7HUU.mjs';
|
|
32
|
-
import './formatting-
|
|
33
|
-
import './lists-
|
|
32
|
+
import './formatting-BH4hcZiq.mjs';
|
|
33
|
+
import './lists-CvG_iVK3.mjs';
|
|
34
34
|
import './types/content.mjs';
|
|
35
35
|
import './docx/wrapTypes.mjs';
|
|
36
|
-
import './styles-
|
|
36
|
+
import './styles-EI2lxeEN.mjs';
|
|
37
37
|
import './types/agentApi.mjs';
|
|
38
38
|
|
|
39
39
|
/**
|
package/dist/core-plugins.d.ts
CHANGED
|
@@ -29,11 +29,11 @@ export { C as CommandHandler, a as CommandResult, E as ExtractCommand, J as Json
|
|
|
29
29
|
export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-E5pahPKL.js';
|
|
30
30
|
import './types/document.js';
|
|
31
31
|
import './colors-C3vA7HUU.js';
|
|
32
|
-
import './formatting-
|
|
33
|
-
import './lists-
|
|
32
|
+
import './formatting-_OXU8gLB.js';
|
|
33
|
+
import './lists-UTp_tk7B.js';
|
|
34
34
|
import './types/content.js';
|
|
35
35
|
import './docx/wrapTypes.js';
|
|
36
|
-
import './styles-
|
|
36
|
+
import './styles-BBv7doYK.js';
|
|
37
37
|
import './types/agentApi.js';
|
|
38
38
|
|
|
39
39
|
/**
|
package/dist/core-plugins.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkABBG4WD2_js=require('./chunk-ABBG4WD2.js');require('./chunk-U4UCHBZ7.js'),require('./chunk-ESI4BSBF.js');var chunk4BFNWPKW_js=require('./chunk-4BFNWPKW.js');require('./chunk-V6SWUCTS.js'),require('./chunk-YCDB5TA6.js'),require('./chunk-IN6IYQ2X.js'),require('./chunk-KBU6QQFU.js'),require('./chunk-MZOVDLYL.js'),require('./chunk-EPX7BBJD.js'),require('./chunk-D536HC5M.js'),require('./chunk-TMISJEGL.js'),require('./chunk-Q4CKLXWA.js'),require('./chunk-4Q2IP5FW.js'),require('./chunk-DC7S76ZX.js');Object.defineProperty(exports,"docxtemplaterPlugin",{enumerable:true,get:function(){return chunkABBG4WD2_js.b}});Object.defineProperty(exports,"isZodSchema",{enumerable:true,get:function(){return chunkABBG4WD2_js.a}});Object.defineProperty(exports,"PluginRegistry",{enumerable:true,get:function(){return chunk4BFNWPKW_js.a}});Object.defineProperty(exports,"createPluginRegistrar",{enumerable:true,get:function(){return chunk4BFNWPKW_js.d}});Object.defineProperty(exports,"pluginRegistry",{enumerable:true,get:function(){return chunk4BFNWPKW_js.b}});Object.defineProperty(exports,"registerPlugins",{enumerable:true,get:function(){return chunk4BFNWPKW_js.c}});
|
package/dist/core-plugins.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as docxtemplaterPlugin,a as isZodSchema}from'./chunk-
|
|
1
|
+
export{b as docxtemplaterPlugin,a as isZodSchema}from'./chunk-GHQS3I2W.mjs';import'./chunk-ARHPXIBJ.mjs';import'./chunk-CGJ6S3AH.mjs';export{a as PluginRegistry,d as createPluginRegistrar,b as pluginRegistry,c as registerPlugins}from'./chunk-3NRMSZX2.mjs';import'./chunk-2IE6UDHJ.mjs';import'./chunk-QMLIXLZJ.mjs';import'./chunk-3JXR6YU4.mjs';import'./chunk-Y5HZAMND.mjs';import'./chunk-ILJUDEZ5.mjs';import'./chunk-QVEAQOMR.mjs';import'./chunk-HL5PQT3A.mjs';import'./chunk-B6LYBJ4H.mjs';import'./chunk-VQWZHPWI.mjs';import'./chunk-VW22RZ6C.mjs';import'./chunk-QYUPLKLP.mjs';
|
package/dist/core.d.mts
CHANGED
|
@@ -22,8 +22,8 @@ export { s as serializeDocumentBody, a as serializeDocx, b as serializeSectionPr
|
|
|
22
22
|
export { createDocx, default as repackDocx, updateMultipleFiles } from './docx/rezip.mjs';
|
|
23
23
|
export { a as attemptSelectiveSave } from './selectiveSave-jinP_4xa.mjs';
|
|
24
24
|
export { b as buildPatchedDocumentXml, v as validatePatchSafety } from './selectiveXmlPatch-ypkxlTD_.mjs';
|
|
25
|
-
export { C as CreateEmptyDocumentOptions, P as ProcessTemplateOptions, a as ProcessTemplateResult, z as ThemeMatrixCell, b as blendColors, c as colorsEqual, d as createDocumentWithText, e as createEmptyDocument, f as createRgbColor, h as createThemeColor, i as darkenColor, A as ensureHexPrefix, B as generateThemeTintShadeMatrix, j as getContrastingColor, l as getTemplateTags, D as getThemeTintShadeHex, m as isBlack, n as isWhite, o as lightenColor, p as parseColorString, r as processTemplate, t as processTemplateAsBlob, u as processTemplateDetailed, v as resolveColor, w as resolveHighlightColor, E as resolveHighlightToCss, x as resolveShadingColor, y as validateTemplate } from './colorResolver-
|
|
26
|
-
export { A as AgentContextOptions, D as DocumentAgent, E as ExtendedSelectionContext, e as SelectionContextOptions, f as buildExtendedSelectionContext, g as buildSelectionContext, k as executeCommand, l as executeCommands, m as getAgentContext, n as getDocumentSummary } from './selectionContext-
|
|
25
|
+
export { C as CreateEmptyDocumentOptions, P as ProcessTemplateOptions, a as ProcessTemplateResult, z as ThemeMatrixCell, b as blendColors, c as colorsEqual, d as createDocumentWithText, e as createEmptyDocument, f as createRgbColor, h as createThemeColor, i as darkenColor, A as ensureHexPrefix, B as generateThemeTintShadeMatrix, j as getContrastingColor, l as getTemplateTags, D as getThemeTintShadeHex, m as isBlack, n as isWhite, o as lightenColor, p as parseColorString, r as processTemplate, t as processTemplateAsBlob, u as processTemplateDetailed, v as resolveColor, w as resolveHighlightColor, E as resolveHighlightToCss, x as resolveShadingColor, y as validateTemplate } from './colorResolver-C6DtsoFI.mjs';
|
|
26
|
+
export { A as AgentContextOptions, D as DocumentAgent, E as ExtendedSelectionContext, e as SelectionContextOptions, f as buildExtendedSelectionContext, g as buildSelectionContext, k as executeCommand, l as executeCommands, m as getAgentContext, n as getDocumentSummary } from './selectionContext-CoZat7QZ.mjs';
|
|
27
27
|
export { emuToPixels, emuToTwips, formatPx, halfPointsToPixels, pixelsToEmu, pixelsToTwips, pointsToPixels, twipsToEmu, twipsToPixels } from './utils/units.mjs';
|
|
28
28
|
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-BOt95Jtf.mjs';
|
|
29
29
|
export { D as DocxInput, t as toArrayBuffer } from './docxInput-DTbCa48g.mjs';
|
|
@@ -45,10 +45,10 @@ import { Run } from './types/content.mjs';
|
|
|
45
45
|
export { BlockContent, BookmarkEnd, BookmarkStart, Comment, CommentRangeEnd, CommentRangeStart, Deletion, DocumentBody, Endnote, Field, FooterReference, Footnote, HeaderFooter, HeaderReference, Hyperlink, Image, Insertion, MoveFrom, MoveTo, Paragraph, ParagraphContent, RunContent, SectionProperties, Shape, Table, TableCell, TableRow, TextBox, TextContent, TrackedChangeInfo, TrackedRunChange } from './types/content.mjs';
|
|
46
46
|
import { EditorView } from 'prosemirror-view';
|
|
47
47
|
export { FlowBlock, FootnoteContent, Layout, Measure, Page } from './layout-engine/types.mjs';
|
|
48
|
-
export { P as ParagraphFormatting, T as TextFormatting } from './formatting-
|
|
49
|
-
export { C as ConvertFootnoteOptions, a as ConvertHeaderFooterOptions, F as FOOTNOTE_SEPARATOR_HEIGHT, H as HeaderFooterMetrics, M as MAX_FOOTNOTE_LAYOUT_PASSES, b as MeasureBlocksFn, S as StabilizeFootnoteLayoutArgs, c as StabilizeFootnoteLayoutResult, d as buildFootnoteContentMap, e as buildFootnoteRenderItems, f as calculateFootnoteReservedHeights, g as collectFootnoteRefs, h as convertHeaderFooterToContent, i as footnoteReservedHeightsEqual, m as mapFootnotesToPages, s as stabilizeFootnoteLayout } from './headerFooterLayout-
|
|
50
|
-
export { L as ListLevel, N as NumberingDefinitions } from './lists-
|
|
51
|
-
export { R as Relationship, S as Style, a as StyleDefinitions, T as Theme, f as ThemeColorScheme, g as ThemeFont, h as ThemeFontScheme } from './styles-
|
|
48
|
+
export { P as ParagraphFormatting, T as TextFormatting } from './formatting-BH4hcZiq.mjs';
|
|
49
|
+
export { C as ConvertFootnoteOptions, a as ConvertHeaderFooterOptions, F as FOOTNOTE_SEPARATOR_HEIGHT, H as HeaderFooterMetrics, M as MAX_FOOTNOTE_LAYOUT_PASSES, b as MeasureBlocksFn, S as StabilizeFootnoteLayoutArgs, c as StabilizeFootnoteLayoutResult, d as buildFootnoteContentMap, e as buildFootnoteRenderItems, f as calculateFootnoteReservedHeights, g as collectFootnoteRefs, h as convertHeaderFooterToContent, i as footnoteReservedHeightsEqual, m as mapFootnotesToPages, s as stabilizeFootnoteLayout } from './headerFooterLayout-DVFcJ832.mjs';
|
|
50
|
+
export { L as ListLevel, N as NumberingDefinitions } from './lists-CvG_iVK3.mjs';
|
|
51
|
+
export { R as Relationship, S as Style, a as StyleDefinitions, T as Theme, f as ThemeColorScheme, g as ThemeFont, h as ThemeFontScheme } from './styles-EI2lxeEN.mjs';
|
|
52
52
|
import './colors-C3vA7HUU.mjs';
|
|
53
53
|
import './docx/wrapTypes.mjs';
|
|
54
54
|
import 'jszip';
|
package/dist/core.d.ts
CHANGED
|
@@ -22,8 +22,8 @@ export { s as serializeDocumentBody, a as serializeDocx, b as serializeSectionPr
|
|
|
22
22
|
export { createDocx, default as repackDocx, updateMultipleFiles } from './docx/rezip.js';
|
|
23
23
|
export { a as attemptSelectiveSave } from './selectiveSave-CWaPEv0B.js';
|
|
24
24
|
export { b as buildPatchedDocumentXml, v as validatePatchSafety } from './selectiveXmlPatch-ypkxlTD_.js';
|
|
25
|
-
export { C as CreateEmptyDocumentOptions, P as ProcessTemplateOptions, a as ProcessTemplateResult, z as ThemeMatrixCell, b as blendColors, c as colorsEqual, d as createDocumentWithText, e as createEmptyDocument, f as createRgbColor, h as createThemeColor, i as darkenColor, A as ensureHexPrefix, B as generateThemeTintShadeMatrix, j as getContrastingColor, l as getTemplateTags, D as getThemeTintShadeHex, m as isBlack, n as isWhite, o as lightenColor, p as parseColorString, r as processTemplate, t as processTemplateAsBlob, u as processTemplateDetailed, v as resolveColor, w as resolveHighlightColor, E as resolveHighlightToCss, x as resolveShadingColor, y as validateTemplate } from './colorResolver-
|
|
26
|
-
export { A as AgentContextOptions, D as DocumentAgent, E as ExtendedSelectionContext, e as SelectionContextOptions, f as buildExtendedSelectionContext, g as buildSelectionContext, k as executeCommand, l as executeCommands, m as getAgentContext, n as getDocumentSummary } from './selectionContext-
|
|
25
|
+
export { C as CreateEmptyDocumentOptions, P as ProcessTemplateOptions, a as ProcessTemplateResult, z as ThemeMatrixCell, b as blendColors, c as colorsEqual, d as createDocumentWithText, e as createEmptyDocument, f as createRgbColor, h as createThemeColor, i as darkenColor, A as ensureHexPrefix, B as generateThemeTintShadeMatrix, j as getContrastingColor, l as getTemplateTags, D as getThemeTintShadeHex, m as isBlack, n as isWhite, o as lightenColor, p as parseColorString, r as processTemplate, t as processTemplateAsBlob, u as processTemplateDetailed, v as resolveColor, w as resolveHighlightColor, E as resolveHighlightToCss, x as resolveShadingColor, y as validateTemplate } from './colorResolver-BZ_yScf4.js';
|
|
26
|
+
export { A as AgentContextOptions, D as DocumentAgent, E as ExtendedSelectionContext, e as SelectionContextOptions, f as buildExtendedSelectionContext, g as buildSelectionContext, k as executeCommand, l as executeCommands, m as getAgentContext, n as getDocumentSummary } from './selectionContext-BPAqgNgk.js';
|
|
27
27
|
export { emuToPixels, emuToTwips, formatPx, halfPointsToPixels, pixelsToEmu, pixelsToTwips, pointsToPixels, twipsToEmu, twipsToPixels } from './utils/units.js';
|
|
28
28
|
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-QPwbcX5j.js';
|
|
29
29
|
export { D as DocxInput, t as toArrayBuffer } from './docxInput-DTbCa48g.js';
|
|
@@ -45,10 +45,10 @@ import { Run } from './types/content.js';
|
|
|
45
45
|
export { BlockContent, BookmarkEnd, BookmarkStart, Comment, CommentRangeEnd, CommentRangeStart, Deletion, DocumentBody, Endnote, Field, FooterReference, Footnote, HeaderFooter, HeaderReference, Hyperlink, Image, Insertion, MoveFrom, MoveTo, Paragraph, ParagraphContent, RunContent, SectionProperties, Shape, Table, TableCell, TableRow, TextBox, TextContent, TrackedChangeInfo, TrackedRunChange } from './types/content.js';
|
|
46
46
|
import { EditorView } from 'prosemirror-view';
|
|
47
47
|
export { FlowBlock, FootnoteContent, Layout, Measure, Page } from './layout-engine/types.js';
|
|
48
|
-
export { P as ParagraphFormatting, T as TextFormatting } from './formatting-
|
|
49
|
-
export { C as ConvertFootnoteOptions, a as ConvertHeaderFooterOptions, F as FOOTNOTE_SEPARATOR_HEIGHT, H as HeaderFooterMetrics, M as MAX_FOOTNOTE_LAYOUT_PASSES, b as MeasureBlocksFn, S as StabilizeFootnoteLayoutArgs, c as StabilizeFootnoteLayoutResult, d as buildFootnoteContentMap, e as buildFootnoteRenderItems, f as calculateFootnoteReservedHeights, g as collectFootnoteRefs, h as convertHeaderFooterToContent, i as footnoteReservedHeightsEqual, m as mapFootnotesToPages, s as stabilizeFootnoteLayout } from './headerFooterLayout-
|
|
50
|
-
export { L as ListLevel, N as NumberingDefinitions } from './lists-
|
|
51
|
-
export { R as Relationship, S as Style, a as StyleDefinitions, T as Theme, f as ThemeColorScheme, g as ThemeFont, h as ThemeFontScheme } from './styles-
|
|
48
|
+
export { P as ParagraphFormatting, T as TextFormatting } from './formatting-_OXU8gLB.js';
|
|
49
|
+
export { C as ConvertFootnoteOptions, a as ConvertHeaderFooterOptions, F as FOOTNOTE_SEPARATOR_HEIGHT, H as HeaderFooterMetrics, M as MAX_FOOTNOTE_LAYOUT_PASSES, b as MeasureBlocksFn, S as StabilizeFootnoteLayoutArgs, c as StabilizeFootnoteLayoutResult, d as buildFootnoteContentMap, e as buildFootnoteRenderItems, f as calculateFootnoteReservedHeights, g as collectFootnoteRefs, h as convertHeaderFooterToContent, i as footnoteReservedHeightsEqual, m as mapFootnotesToPages, s as stabilizeFootnoteLayout } from './headerFooterLayout-B5LyDpSM.js';
|
|
50
|
+
export { L as ListLevel, N as NumberingDefinitions } from './lists-UTp_tk7B.js';
|
|
51
|
+
export { R as Relationship, S as Style, a as StyleDefinitions, T as Theme, f as ThemeColorScheme, g as ThemeFont, h as ThemeFontScheme } from './styles-BBv7doYK.js';
|
|
52
52
|
import './colors-C3vA7HUU.js';
|
|
53
53
|
import './docx/wrapTypes.js';
|
|
54
54
|
import 'jszip';
|