@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,4 @@
|
|
|
1
|
+
import {h,j as j$2,k,g,z}from'./chunk-QVEAQOMR.mjs';import {c as c$1}from'./chunk-HL5PQT3A.mjs';import {c,j as j$1,e,l,i,a,f,m,d,b,n,k as k$1}from'./chunk-B6LYBJ4H.mjs';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(d(e.name||"")){case "srgbClr":return j$1(e,"a","val")??j$1(e,null,"val")??null;case "sysClr":{let n=j$1(e,"a","lastClr")??j$1(e,null,"lastClr");if(n)return n;switch(j$1(e,"a","val")??j$1(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":{j$1(e,"a","val")??j$1(e,null,"val");return null}default:return null}}function ct(e$1){let t={...He};if(!e$1)return t;for(let n of ut){let r=e(e$1,"a",n);if(r){let o=i(r);if(o.length>0){let a=ft(o[0]);a&&(t[n]=a);}}}return t}function Be(e$1){let t={latin:"",ea:"",cs:"",fonts:{}};if(!e$1)return t;let n=e(e$1,"a","latin");n&&(t.latin=j$1(n,"a","typeface")??j$1(n,null,"typeface")??"");let r=e(e$1,"a","ea");r&&(t.ea=j$1(r,"a","typeface")??j$1(r,null,"typeface")??"");let o=e(e$1,"a","cs");o&&(t.cs=j$1(o,"a","typeface")??j$1(o,null,"typeface")??"");let a=f(e$1,"a","font");for(let u of a){let l=j$1(u,"a","script")??j$1(u,null,"script"),f=j$1(u,"a","typeface")??j$1(u,null,"typeface");l&&f&&(t.fonts=t.fonts||{},t.fonts[l]=f);}return t}function pt(e$1){let t={...Q};if(!e$1)return t;let n=e(e$1,"a","majorFont");n&&(t.majorFont=Be(n));let r=e(e$1,"a","minorFont");return r&&(t.minorFont=Be(r)),t}function xn(e$1){if(!e$1)return {...me};try{let t=c(e$1);if(!t)return {...me};let n=j$1(t,"a","name")??j$1(t,null,"name")??"Office Theme",r=e(t,"a","themeElements"),o=e(r,"a","clrScheme"),a=ct(o),u=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=l(e,"w","w")??0,n=j$1(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=j$1(e,"w","id"),n=t?parseInt(t,10):0,r=(j$1(e,"w","author")??"").trim(),o=(j$1(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=(j$1(e,"w","rsid")??"").trim();return n.length>0?{...t,rsid:n}:t}function D(e){if(!e)return;let r={style:j$1(e,"w","val")??"none"},o=l(e,"w","sz");o!==void 0&&(r.size=o);let a=l(e,"w","space");a!==void 0&&(r.space=a);let u=j$1(e,"w","color"),l$1=j$1(e,"w","themeColor"),f=j$1(e,"w","themeTint"),c=j$1(e,"w","themeShade");(u||l$1||f||c)&&(r.color={rgb:u??void 0,themeColor:l$1,themeTint:f??void 0,themeShade:c??void 0});let p=j$1(e,"w","shadow");(p==="1"||p==="true")&&(r.shadow=true);let d=j$1(e,"w","frame");return (d==="1"||d==="true")&&(r.frame=true),r}function ee(e$1){if(!e$1)return;let t={},n=D(e(e$1,"w","top"));n&&(t.top=n);let r=D(e(e$1,"w","bottom"));r&&(t.bottom=r);let o=D(e(e$1,"w","left")??e(e$1,"w","start"));o&&(t.left=o);let a=D(e(e$1,"w","right")??e(e$1,"w","end"));a&&(t.right=a);let u=D(e(e$1,"w","insideH"));u&&(t.insideH=u);let l=D(e(e$1,"w","insideV"));if(l&&(t.insideV=l),Object.keys(t).length!==0)return t}function te(e$1){if(!e$1)return;let t={},n=X(e(e$1,"w","top"));n&&(t.top=n);let r=X(e(e$1,"w","bottom"));r&&(t.bottom=r);let o=X(e(e$1,"w","left")??e(e$1,"w","start"));o&&(t.left=o);let a=X(e(e$1,"w","right")??e(e$1,"w","end"));if(a&&(t.right=a),Object.keys(t).length!==0)return t}function ne(e){if(!e)return;let t={},n=j$1(e,"w","fill");n&&n!=="auto"&&(t.fill={rgb:n});let r=j$1(e,"w","themeFill");if(r){t.fill={themeColor:r};let u=j$1(e,"w","themeFillTint");u&&t.fill&&(t.fill.themeTint=u);let l=j$1(e,"w","themeFillShade");l&&t.fill&&(t.fill.themeShade=l);}let o=j$1(e,"w","color");o&&o!=="auto"&&(t.color={rgb:o});let a=j$1(e,"w","val");if(a&&(t.pattern=a),Object.keys(t).length!==0)return t}function ge(e){if(!e)return;let t={},n=j$1(e,"w","firstRow");(n==="1"||n==="true")&&(t.firstRow=true);let r=j$1(e,"w","lastRow");(r==="1"||r==="true")&&(t.lastRow=true);let o=j$1(e,"w","firstColumn");(o==="1"||o==="true")&&(t.firstColumn=true);let a=j$1(e,"w","lastColumn");(a==="1"||a==="true")&&(t.lastColumn=true);let u=j$1(e,"w","noHBand");(u==="1"||u==="true")&&(t.noHBand=true);let l=j$1(e,"w","noVBand");(l==="1"||l==="true")&&(t.noVBand=true);let f=j$1(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=j$1(e,"w","horzAnchor");(n==="margin"||n==="page"||n==="text")&&(t.horzAnchor=n);let r=j$1(e,"w","vertAnchor");(r==="margin"||r==="page"||r==="text")&&(t.vertAnchor=r);let o=l(e,"w","tblpX");o!==void 0&&(t.tblpX=o);let a=j$1(e,"w","tblpXSpec");a&&(t.tblpXSpec=a);let u=l(e,"w","tblpY");u!==void 0&&(t.tblpY=u);let l$1=j$1(e,"w","tblpYSpec");l$1&&(t.tblpYSpec=l$1);let f=l(e,"w","topFromText");f!==void 0&&(t.topFromText=f);let c=l(e,"w","bottomFromText");c!==void 0&&(t.bottomFromText=c);let p=l(e,"w","leftFromText");p!==void 0&&(t.leftFromText=p);let d=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$1,r,o,a,u){if(e.content.length===0)return;let l=i(t),f=0;function c(p){if(!h(p))return;let d=j$2(p);if(!d)return;let b=n(p,"wps","wsp");if(b){let C=k(b);C&&(d.content=g(C,j,null,n$1,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$1=f;if(h$1>=e.content.length){h$1=-1;for(let C=e.content.length-1;C>=0;C--)if(e.content[C].type==="run"){h$1=C;break}}if(h$1>=0){let C=e.content[h$1];C.type==="run"&&C.content.push(y);}}for(let p of l){if(d(p.name??"")!=="r")continue;let d$1=i(p);for(let b of d$1){let F=d(b.name??"");if(F==="drawing")c(b);else if(F==="AlternateContent"){let y=i(b),C=y.find(A=>d(A.name??"")==="Choice")??y.find(A=>d(A.name??"")==="Fallback");if(C)for(let A of i(C))d(A.name??"")==="drawing"&&c(A);}}f++;}}function re(e,t,n,r,o,a,u){let l=[],f=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=j$1(e,"w","type"),n=j$1(e,"r","id")??"";return {type:Ie(t),rId:n}}function Xe(e){let t=j$1(e,"w","type"),n=j$1(e,"r","id")??"";return {type:Ie(t),rId:n}}function In(e,t="default",n=null,r=null,o=null,a$1=null,u=null){let l={type:"header",hdrFtrType:t,content:[]};if(!e)return l;let f=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$1,u,{inHeaderFooter:true})),l}function Ln(e,t="default",n=null,r=null,o=null,a$1=null,u=null){let l={type:"footer",hdrFtrType:t,content:[]};if(!e)return l;let f=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$1,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 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=l(e,"w","id")??0,l$1=j$1(e,"w","type"),f=Oe(l$1),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$1=null){let u=new Map,l=[];if(!e)return oe(u,l);let f$1=a(e);if(!f$1)return oe(u,l);let c=f$1.elements?.find(d=>d.type==="element"&&(d.name==="w:footnotes"||d.name?.endsWith(":footnotes")));if(!c)return oe(u,l);let p=f(c,"w","footnote");for(let d of p){let b=Ct(d,t,n,r,o,a$1);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=l(e,"w","id")??0,l$1=j$1(e,"w","type"),f=Oe(l$1),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$1=null){let u=new Map,l=[];if(!e)return ie(u,l);let f$1=a(e);if(!f$1)return ie(u,l);let c=f$1.elements?.find(d=>d.type==="element"&&(d.name==="w:endnotes"||d.name?.endsWith(":endnotes")));if(!c)return ie(u,l);let p=f(c,"w","endnote");for(let d of p){let b=xt(d,t,n,r,o,a$1);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$1){let t={};if(!e$1)return t;let n=e(e$1,"w","pos");if(n){let u=j$1(n,"w","val");t.position=St(u);}let r=e(e$1,"w","numFmt");if(r){let u=j$1(r,"w","val");t.numFmt=We(u);}let o=e(e$1,"w","numStart");o&&(t.numStart=l(o,"w","val")??void 0);let a=e(e$1,"w","numRestart");if(a){let u=j$1(a,"w","val");t.numRestart=je(u);}return t}function ze(e$1){let t={};if(!e$1)return t;let n=e(e$1,"w","pos");if(n){let u=j$1(n,"w","val");t.position=kt(u);}let r=e(e$1,"w","numFmt");if(r){let u=j$1(r,"w","val");t.numFmt=We(u);}let o=e(e$1,"w","numStart");o&&(t.numStart=l(o,"w","val")??void 0);let a=e(e$1,"w","numRestart");if(a){let u=j$1(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:j$1(e,"w","val")??"none"},o=l(e,"w","sz");o!==void 0&&(r.size=o);let a=l(e,"w","space");a!==void 0&&(r.space=a);let u=j$1(e,"w","color"),l$1=j$1(e,"w","themeColor"),f=j$1(e,"w","themeTint"),c=j$1(e,"w","themeShade"),p=Rt(u,l$1,f,c);p&&(r.color=p);let d=j$1(e,"w","shadow");(d==="1"||d==="true")&&(r.shadow=true);let b=j$1(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$1,t){let n={};if(!e$1)return n;let r=e(e$1,"w","pgSz");if(r){let m=l(r,"w","w");m!==void 0&&(n.pageWidth=m);let T=l(r,"w","h");T!==void 0&&(n.pageHeight=T);let E=j$1(r,"w","orient"),w=Mt(E);w&&(n.orientation=w);}let o=e(e$1,"w","pgMar");if(o){let m=l(o,"w","top");m!==void 0&&(n.marginTop=m);let T=l(o,"w","bottom");T!==void 0&&(n.marginBottom=T);let E=l(o,"w","left");E!==void 0&&(n.marginLeft=E);let w=l(o,"w","right");w!==void 0&&(n.marginRight=w);let x=l(o,"w","header");x!==void 0&&(n.headerDistance=x);let P=l(o,"w","footer");P!==void 0&&(n.footerDistance=P);let B=l(o,"w","gutter");B!==void 0&&(n.gutter=B);}let a=e(e$1,"w","cols");if(a){let m=l(a,"w","num");m!==void 0&&(n.columnCount=m);let T=l(a,"w","space");T!==void 0&&(n.columnSpace=T);let E=j$1(a,"w","equalWidth");E==="1"||E==="true"?n.equalWidth=true:(E==="0"||E==="false")&&(n.equalWidth=false);let w=j$1(a,"w","sep");(w==="1"||w==="true")&&(n.separator=true);let x=f(a,"w","col");if(x.length>0){n.columns=[];for(let P of x){let B={},I=l(P,"w","w");I!==void 0&&(B.width=I);let N=l(P,"w","space");N!==void 0&&(B.space=N),n.columns.push(B);}n.columnCount===void 0&&(n.columnCount=x.length);}}let u=e(e$1,"w","type");if(u){let m=j$1(u,"w","val"),T=Et(m);T&&(n.sectionStart=T);}let l$1=e(e$1,"w","vAlign");if(l$1){let m=j$1(l$1,"w","val"),T=Pt(m);T&&(n.verticalAlign=T);}let f$1=e(e$1,"w","bidi");f$1&&(n.bidi=m(f$1));let c=f(e$1,"w","headerReference");c.length>0&&(n.headerReferences=c.map(m=>Le(m)));let p=f(e$1,"w","footerReference");p.length>0&&(n.footerReferences=p.map(m=>Xe(m)));let d=e(e$1,"w","titlePg");d&&(n.titlePg=m(d));let b=e(e$1,"w","evenAndOddHeaders");b&&(n.evenAndOddHeaders=m(b));let F=e(e$1,"w","lnNumType");if(F){n.lineNumbers={};let m=l(F,"w","start");m!==void 0&&(n.lineNumbers.start=m);let T=l(F,"w","countBy");T!==void 0&&(n.lineNumbers.countBy=T);let E=l(F,"w","distance");E!==void 0&&(n.lineNumbers.distance=E);let w=j$1(F,"w","restart"),x=Bt(w);x&&(n.lineNumbers.restart=x);}let y=e(e$1,"w","pgBorders");if(y){n.pageBorders={};let m=ae(e(y,"w","top"));m&&(n.pageBorders.top=m);let T=ae(e(y,"w","bottom"));T&&(n.pageBorders.bottom=T);let E=ae(e(y,"w","left"));E&&(n.pageBorders.left=E);let w=ae(e(y,"w","right"));w&&(n.pageBorders.right=w);let x=j$1(y,"w","display");(x==="allPages"||x==="firstPage"||x==="notFirstPage")&&(n.pageBorders.display=x);let P=j$1(y,"w","offsetFrom");(P==="page"||P==="text")&&(n.pageBorders.offsetFrom=P);let B=j$1(y,"w","zOrder");(B==="front"||B==="back")&&(n.pageBorders.zOrder=B);}let h=e(e$1,"w","background");if(h){n.background={};let m=j$1(h,"w","color");m&&m!=="auto"&&(n.background.color={rgb:m});let T=j$1(h,"w","themeColor");T&&(n.background.themeColor=T);let E=j$1(h,"w","themeTint");E&&(n.background.themeTint=E);let w=j$1(h,"w","themeShade");w&&(n.background.themeShade=w);}let C=e(e$1,"w","footnotePr");if(C){let m=Ve(C);Object.keys(m).length>0&&(n.footnotePr=m);}let A=e(e$1,"w","endnotePr");if(A){let m=ze(A);Object.keys(m).length>0&&(n.endnotePr=m);}let R=e(e$1,"w","docGrid");if(R){n.docGrid={};let m=j$1(R,"w","type");(m==="default"||m==="lines"||m==="linesAndChars"||m==="snapToChars")&&(n.docGrid.type=m);let T=l(R,"w","linePitch");T!==void 0&&(n.docGrid.linePitch=T);let E=l(R,"w","charSpace");E!==void 0&&(n.docGrid.charSpace=E);}let S=e(e$1,"w","paperSrc");if(S){let m=l(S,"w","first");m!==void 0&&(n.paperSrcFirst=m);let T=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=j$1(e,"w","color");n&&n!=="auto"&&(t.color={rgb:n});let r=j$1(e,"w","fill");r&&r!=="auto"&&(t.fill={rgb:r});let o=j$1(e,"w","themeFill");o&&(t.fill=t.fill||{},t.fill.themeColor=o);let a=j$1(e,"w","themeFillTint");a&&t.fill&&(t.fill.themeTint=a);let u=j$1(e,"w","themeFillShade");u&&t.fill&&(t.fill.themeShade=u);let l=j$1(e,"w","val");return l&&(t.pattern=l),Object.keys(t).length>0?t:void 0}function ue(e$1,t,n){if(!e$1)return;let r={},o=e(e$1,"w","b");o&&(r.bold=m(o));let a=e(e$1,"w","bCs");a&&(r.boldCs=m(a));let u=e(e$1,"w","i");u&&(r.italic=m(u));let l$1=e(e$1,"w","iCs");l$1&&(r.italicCs=m(l$1));let f=e(e$1,"w","u");if(f){let k=j$1(f,"w","val");if(k){r.underline={style:k};let z=j$1(f,"w","color"),U=j$1(f,"w","themeColor");(z||U)&&(r.underline.color=_e(z,U,j$1(f,"w","themeTint"),j$1(f,"w","themeShade")));}}let c=e(e$1,"w","strike");c&&(r.strike=m(c));let p=e(e$1,"w","dstrike");p&&(r.doubleStrike=m(p));let d=e(e$1,"w","vertAlign");if(d){let k=j$1(d,"w","val");(k==="superscript"||k==="subscript"||k==="baseline")&&(r.vertAlign=k);}let b=e(e$1,"w","smallCaps");b&&(r.smallCaps=m(b));let F=e(e$1,"w","caps");F&&(r.allCaps=m(F));let y=e(e$1,"w","vanish");y&&(r.hidden=m(y));let h=e(e$1,"w","color");h&&(r.color=_e(j$1(h,"w","val"),j$1(h,"w","themeColor"),j$1(h,"w","themeTint"),j$1(h,"w","themeShade")));let C=e(e$1,"w","highlight");if(C){let k=j$1(C,"w","val");k&&(r.highlight=k);}let A=e(e$1,"w","shd");A&&(r.shading=Ot(A));let R=e(e$1,"w","sz");if(R){let k=l(R,"w","val");k!==void 0&&(r.fontSize=k);}let S=e(e$1,"w","szCs");if(S){let k=l(S,"w","val");k!==void 0&&(r.fontSizeCs=k);}let m$1=e(e$1,"w","rFonts");if(m$1){r.fontFamily={ascii:j$1(m$1,"w","ascii")??void 0,hAnsi:j$1(m$1,"w","hAnsi")??void 0,eastAsia:j$1(m$1,"w","eastAsia")??void 0,cs:j$1(m$1,"w","cs")??void 0};let k=j$1(m$1,"w","asciiTheme");k&&(r.fontFamily.asciiTheme=k,t&&!r.fontFamily.ascii&&(r.fontFamily.ascii=_(t,k)));let z=j$1(m$1,"w","hAnsiTheme");z&&(r.fontFamily.hAnsiTheme=z,t&&!r.fontFamily.hAnsi&&(r.fontFamily.hAnsi=_(t,z)));let U=j$1(m$1,"w","eastAsiaTheme");U&&(r.fontFamily.eastAsiaTheme=U,t&&!r.fontFamily.eastAsia&&(r.fontFamily.eastAsia=_(t,U)));let ce=j$1(m$1,"w","cstheme");ce&&(r.fontFamily.csTheme=ce,t&&!r.fontFamily.cs&&(r.fontFamily.cs=_(t,ce)));}let T=e(e$1,"w","spacing");if(T){let k=l(T,"w","val");k!==void 0&&(r.spacing=k);}let E=e(e$1,"w","position");if(E){let k=l(E,"w","val");k!==void 0&&(r.position=k);}let w=e(e$1,"w","w");if(w){let k=l(w,"w","val");k!==void 0&&(r.scale=k);}let x=e(e$1,"w","kern");if(x){let k=l(x,"w","val");k!==void 0&&(r.kerning=k);}let P=e(e$1,"w","effect");if(P){let k=j$1(P,"w","val");k&&(r.effect=k);}let B=e(e$1,"w","em");if(B){let k=j$1(B,"w","val");k&&(r.emphasisMark=k);}let I=e(e$1,"w","emboss");I&&(r.emboss=m(I));let N=e(e$1,"w","imprint");N&&(r.imprint=m(N));let L=e(e$1,"w","outline");L&&(r.outline=m(L));let ye=e(e$1,"w","shadow");ye&&(r.shadow=m(ye));let be=e(e$1,"w","rtl");be&&(r.rtl=m(be));let Te=e(e$1,"w","cs");Te&&(r.cs=m(Te));let Fe=e(e$1,"w","rStyle");if(Fe){let k=j$1(Fe,"w","val");k&&(r.styleId=k);}return Object.keys(r).length>0?r:void 0}function Dt(e){let t=j$1(e,"w","id"),n=t?parseInt(t,10):0,r=(j$1(e,"w","author")??"").trim(),o=(j$1(e,"w","date")??"").trim(),a=(j$1(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$1,t,n,r){if(!e$1)return;let o=f(e$1,"w","rPrChange").map(a=>{let u=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=k$1(e),n=j$1(e,"xml","space")==="preserve";return {type:"text",text:t,preserveSpace:n||void 0}}function Vt(){return {type:"tab"}}function zt(e){let t=j$1(e,"w","type"),n=j$1(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=j$1(e,"w","font")??"",n=j$1(e,"w","char")??"";return {type:"symbol",font:t,char:n}}function Gt(e){return {type:"footnoteRef",id:l(e,"w","id")??0}}function qt(e){return {type:"endnoteRef",id:l(e,"w","id")??0}}function _t(e){let t=j$1(e,"w","fldCharType"),n=j$1(e,"w","fldLock")==="true"||j$1(e,"w","fldLock")==="1",r=j$1(e,"w","dirty")==="true"||j$1(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:k$1(e)}}function Ye(e,t,n){let r=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=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=i(a).find(p=>se(p.name)==="Choice")??i(a).find(p=>se(p.name)==="Fallback");if(c){for(let p of i(c))if(se(p.name)==="drawing"){let b=Ye(p,t,n);b?.image?.src&&r.push(b);}}break}}return r}function $(e$1,t,n,r=null,o=null){let a={type:"run",content:[]},u=e(e$1,"w","rPr");return u&&(a.formatting=ue(u,n),a.propertyChanges=Wt(u,n,t,a.formatting)),a.content=$t(e$1,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=j$1(e,"w","color");n&&n!=="auto"&&(t.color={rgb:n});let r=j$1(e,"w","fill");r&&r!=="auto"&&(t.fill={rgb:r});let o=j$1(e,"w","themeFill");o&&(t.fill=t.fill||{},t.fill.themeColor=o);let a=j$1(e,"w","themeFillTint");a&&t.fill&&(t.fill.themeTint=a);let u=j$1(e,"w","themeFillShade");u&&t.fill&&(t.fill.themeShade=u);let l=j$1(e,"w","val");return l&&(t.pattern=l),Object.keys(t).length>0?t:void 0}function q(e){if(!e)return;let t=j$1(e,"w","val");if(!t)return;let n={style:t},r=j$1(e,"w","color"),o=j$1(e,"w","themeColor");(r||o)&&(n.color=Zt(r,o,j$1(e,"w","themeTint"),j$1(e,"w","themeShade")));let a=l(e,"w","sz");a!==void 0&&(n.size=a);let u=l(e,"w","space");u!==void 0&&(n.space=u);let l$1=j$1(e,"w","shadow");l$1&&(n.shadow=l$1==="1"||l$1==="true");let f=j$1(e,"w","frame");return f&&(n.frame=f==="1"||f==="true"),n}function Qt(e){if(!e)return;let t=f(e,"w","tab");if(t.length===0)return;let n=[];for(let r of t){let o=l(r,"w","pos"),a=j$1(r,"w","val");if(o!==void 0&&a){let u={position:o,alignment:a},l=j$1(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=l(e,"w","w");n!==void 0&&(t.width=n);let r=l(e,"w","h");r!==void 0&&(t.height=r);let o=j$1(e,"w","hAnchor");(o==="text"||o==="margin"||o==="page")&&(t.hAnchor=o);let a=j$1(e,"w","vAnchor");(a==="text"||a==="margin"||a==="page")&&(t.vAnchor=a);let u=l(e,"w","x");u!==void 0&&(t.x=u);let l$1=l(e,"w","y");l$1!==void 0&&(t.y=l$1);let f=j$1(e,"w","xAlign");f&&(t.xAlign=f);let c=j$1(e,"w","yAlign");c&&(t.yAlign=c);let p=j$1(e,"w","wrap");return p&&(t.wrap=p),Object.keys(t).length>0?t:void 0}function fe(e$1,t,n){if(!e$1)return;let r={},o=e(e$1,"w","jc");if(o){let w=j$1(o,"w","val");w&&(r.alignment=w);}let a=e(e$1,"w","bidi");a&&(r.bidi=m(a));let u=e(e$1,"w","spacing");if(u){let w=l(u,"w","before");w!==void 0&&(r.spaceBefore=w);let x=l(u,"w","after");x!==void 0&&(r.spaceAfter=x);let P=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=j$1(u,"w","lineRule");I&&(r.lineSpacingRule=I);let N=j$1(u,"w","beforeAutospacing");N&&(r.beforeAutospacing=N==="1"||N==="true");let L=j$1(u,"w","afterAutospacing");L&&(r.afterAutospacing=L==="1"||L==="true");}let l$1=e(e$1,"w","ind");if(l$1){let w=l(l$1,"w","left");w!==void 0&&(r.indentLeft=w);let x=l(l$1,"w","right");x!==void 0&&(r.indentRight=x);let P=l(l$1,"w","firstLine");P!==void 0&&(r.indentFirstLine=P);let B=l(l$1,"w","hanging");B!==void 0&&(r.indentFirstLine=-B,r.hangingIndent=true);let I=l(l$1,"w","start");I!==void 0&&r.indentLeft===void 0&&(r.indentLeft=I);let N=l(l$1,"w","end");N!==void 0&&r.indentRight===void 0&&(r.indentRight=N);}let f=e(e$1,"w","pBdr");if(f){let w={},x=q(e(f,"w","top"));x&&(w.top=x);let P=q(e(f,"w","bottom"));P&&(w.bottom=P);let B=q(e(f,"w","left"));B&&(w.left=B);let I=q(e(f,"w","right"));I&&(w.right=I);let N=q(e(f,"w","between"));N&&(w.between=N);let L=q(e(f,"w","bar"));L&&(w.bar=L),Object.keys(w).length>0&&(r.borders=w);}let c=e(e$1,"w","shd");c&&(r.shading=Kt(c));let p=e(e$1,"w","tabs");p&&(r.tabs=Qt(p));let d=e(e$1,"w","keepNext");d&&(r.keepNext=m(d));let b=e(e$1,"w","keepLines");b&&(r.keepLines=m(b));let F=e(e$1,"w","widowControl");F&&(r.widowControl=m(F));let y=e(e$1,"w","pageBreakBefore");y&&(r.pageBreakBefore=m(y));let h=e(e$1,"w","contextualSpacing");h&&(r.contextualSpacing=m(h));let C=e(e$1,"w","numPr");if(C){let w=e(C,"w","numId"),x=e(C,"w","ilvl");if(w||x){if(r.numPr={},w){let P=l(w,"w","val");P!==void 0&&(r.numPr.numId=P);}if(x){let P=l(x,"w","val");P!==void 0&&(r.numPr.ilvl=P);}}}let A=e(e$1,"w","outlineLvl");if(A){let w=l(A,"w","val");w!==void 0&&(r.outlineLevel=w);}let R=e(e$1,"w","pStyle");if(R){let w=j$1(R,"w","val");w&&(r.styleId=w);}let S=e(e$1,"w","framePr");S&&(r.frame=Jt(S));let m$1=e(e$1,"w","suppressLineNumbers");m$1&&(r.suppressLineNumbers=m(m$1));let T=e(e$1,"w","suppressAutoHyphens");T&&(r.suppressAutoHyphens=m(T));let E=e(e$1,"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=l(e,"w","id")??0,n=j$1(e,"w","name")??"",r={type:"bookmarkStart",id:t,name:n},o=l(e,"w","colFirst");o!==void 0&&(r.colFirst=o);let a=l(e,"w","colLast");return a!==void 0&&(r.colLast=a),r}function nn(e){return {type:"bookmarkEnd",id:l(e,"w","id")??0}}function $e(e,t,n=null,r=null,o=null){let a={type:"hyperlink",children:[]},u=j$1(e,"r","id");if(u&&(a.rId=u,t)){let F=t.get(u);F&&(c$1(F),a.href=F.target);}let l=j$1(e,"w","anchor");l&&(a.anchor=l,a.href||(a.href=`#${l}`));let f=j$1(e,"w","tooltip");f&&(a.tooltip=f);let c=j$1(e,"w","tgtFrame");c&&(a.target=c);let p=j$1(e,"w","history");(p==="1"||p==="true")&&(a.history=true);let d=j$1(e,"w","docLocation");d&&(a.docLocation=d);let b=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 c$1(n),e.href=n.target,e.href}return e.anchor&&!e.href&&(e.href=`#${e.anchor}`),e.href}function Ze(e){let t=l(e,"w","id")??0,n=j$1(e,"w","name")??"",r={type:"bookmarkStart",id:t,name:n},o=l(e,"w","colFirst");o!==void 0&&(r.colFirst=o);let a=l(e,"w","colLast");return a!==void 0&&(r.colLast=a),r}function Ke(e){return {type:"bookmarkEnd",id:l(e,"w","id")??0}}function rn(e$1){let t={sdtType:"richText"};if(!e$1||!e$1.elements)return t;for(let n of e$1.elements){if(n.type!=="element")continue;switch(n.name?.replace(/^w:/,"")??""){case "alias":t.alias=j$1(n,"w","val")??void 0;break;case "tag":t.tag=j$1(n,"w","val")??void 0;break;case "lock":t.lock=j$1(n,"w","val")??"unlocked";break;case "placeholder":{let o=e(n,"w","docPart");if(o){let a=e(o,"w","val");t.placeholder=a?j$1(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=j$1(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=e(n,"w14","checked")??e(n,"w","checked");t.checked=o?j$1(o,"w14","val")==="1"||j$1(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:j$1(n,"w","displayText")??"",value:j$1(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 i(l)){let c=K(f.name);if(!n.has(c)){if(c==="lastRenderedPageBreak"){o=true;continue}if(c==="r"){for(let p of i(f)){let d=K(p.name);if(d!=="rPr"){if(d==="lastRenderedPageBreak"){o=true;continue}if(d==="br"&&j$1(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=j$1(e,"w","id"),n=t?parseInt(t,10):0,r=j$1(e,"w","author"),o=j$1(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=(j$1(e,"w","rsid")??"").trim();return n.length>0?{...t,rsid:n}:t}function rt(e$1,t,n,r){if(!e$1)return;let o=f(e$1,"w","pPrChange").map(a=>{let u=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=j$1(e,"w","instr")??"",u=ot(a),l={type:"simpleField",instruction:a,fieldType:u,content:[]},f=j$1(e,"w","fldLock");(f==="1"||f==="true")&&(l.fldLock=true);let c=j$1(e,"w","dirty");(c==="1"||c==="true")&&(l.dirty=true);let p=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=i(e),c=false,p="",d=[],b$1=[],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$1=[],y=false,h=false),c){if(w&&(p+=w),T&&(F=true),F&&!E?T||b$1.push(S):!F&&!m&&d.push(S),E){let x={type:"complexField",instruction:p.trim(),fieldType:ot(p),fieldCode:d,fieldResult:b$1};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(j$1(C,"w","id")??"0",10),S=j$1(C,"w","name")??"";l.push({type:"moveFromRangeStart",id:R,name:S});break}case "moveFromRangeEnd":{let R=parseInt(j$1(C,"w","id")??"0",10);l.push({type:"moveFromRangeEnd",id:R});break}case "moveToRangeStart":{let R=parseInt(j$1(C,"w","id")??"0",10),S=j$1(C,"w","name")??"";l.push({type:"moveToRangeStart",id:R,name:S});break}case "moveToRangeEnd":{let R=parseInt(j$1(C,"w","id")??"0",10);l.push({type:"moveToRangeEnd",id:R});break}case "commentRangeStart":{let R=parseInt(j$1(C,"w","id")??"0",10);l.push({type:"commentRangeStart",id:R});break}case "commentRangeEnd":{let R=parseInt(j$1(C,"w","id")??"0",10);l.push({type:"commentRangeEnd",id:R});break}case "oMath":case "oMathPara":{let R=A==="oMathPara",S=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$1,t,n,r,o=null,a=null,u){let l={type:"paragraph",content:[]},f=j$1(e$1,"w14","paraId")??j$1(e$1,"w","paraId");f&&(l.paraId=f);let c=j$1(e$1,"w14","textId")??j$1(e$1,"w","textId");c&&(l.textId=c),!u?.inHeaderFooter&&tt(e$1)&&(l.renderedPageBreakBefore=true);let p=e(e$1,"w","pPr");if(p){l.formatting=fe(p,n),l.propertyChanges=rt(p,n,t,l.formatting);let F=e(p,"w","sectPr");F&&(l.sectionProperties=Ge(F));}let d=V(e$1,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?e(p,"w","ind"):null,m=S!=null&&(j$1(S,"w","left")!==null||j$1(S,"w","start")!==null),T=w=>{let x=S?j$1(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$1){if(!e$1)return;let t={},n=X(e(e$1,"w","tblW"));n&&(t.width=n);let r=e(e$1,"w","jc");if(r){let h=j$1(r,"w","val");(h==="left"||h==="center"||h==="right"||h==="start")&&(t.justification=h==="start"?"left":h);}let o=X(e(e$1,"w","tblCellSpacing"));o&&(t.cellSpacing=o);let a=X(e(e$1,"w","tblInd"));a&&(t.indent=a);let u=ee(e(e$1,"w","tblBorders"));u&&(t.borders=u);let l=te(e(e$1,"w","tblCellMar"));l&&(t.cellMargins=l);let f=e(e$1,"w","tblLayout");if(f){let h=j$1(f,"w","type");(h==="fixed"||h==="autofit")&&(t.layout=h);}let c=e(e$1,"w","tblStyle");if(c){let h=j$1(c,"w","val");h&&(t.styleId=h);}let p=ge(e(e$1,"w","tblLook"));p&&(t.look=p);let d=ne(e(e$1,"w","shd"));d&&(t.shading=d);let b=e(e$1,"w","tblOverlap");if(b){let h=j$1(b,"w","val");(h==="never"||h==="overlap")&&(t.overlap=h);}let F=he(e(e$1,"w","tblpPr"));if(F&&(t.floating=F),m(e(e$1,"w","bidiVisual"))&&(t.bidi=true),Object.keys(t).length!==0)return t}function cn(e$1,t){if(!e$1)return;let n=f(e$1,"w","tblPrChange").map(r=>{let o=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$1,t){if(!e$1)return;let n=f(e$1,"w","trPrChange").map(r=>{let o=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$1,t){if(!e$1)return;let n=f(e$1,"w","tcPrChange").map(r=>{let o=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$1){if(!e$1)return;let t=e(e$1,"w","ins");if(t)return {type:"tableRowInsertion",info:W(t)};let n=e(e$1,"w","del");if(n)return {type:"tableRowDeletion",info:W(n)}}function gn(e$1){if(!e$1)return;let t=e(e$1,"w","cellIns");if(t)return {type:"tableCellInsertion",info:W(t)};let n=e(e$1,"w","cellDel");if(n)return {type:"tableCellDeletion",info:W(n)};let r=e(e$1,"w","cellMerge");if(r)return {type:"tableCellMerge",info:W(r)}}function at(e$1){if(!e$1)return;let t={},n=e(e$1,"w","trHeight");if(n){let f=l(n,"w","val");f!==void 0&&f>0&&(t.height={value:f,type:"dxa"});let c=j$1(n,"w","hRule");(c==="auto"||c==="atLeast"||c==="exact")&&(t.heightRule=c);}m(e(e$1,"w","tblHeader"))&&(t.header=true),m(e(e$1,"w","cantSplit"))&&(t.cantSplit=true);let a=e(e$1,"w","jc");if(a){let f=j$1(a,"w","val");(f==="left"||f==="center"||f==="right")&&(t.justification=f);}m(e(e$1,"w","hidden"))&&(t.hidden=true);let l$1=lt(e(e$1,"w","cnfStyle"));if(l$1&&(t.conditionalFormat=l$1),Object.keys(t).length!==0)return t}function lt(e){if(!e)return;let t={},n=j$1(e,"w","firstRow");(n==="1"||n==="true")&&(t.firstRow=true);let r=j$1(e,"w","lastRow");(r==="1"||r==="true")&&(t.lastRow=true);let o=j$1(e,"w","firstColumn");(o==="1"||o==="true")&&(t.firstColumn=true);let a=j$1(e,"w","lastColumn");(a==="1"||a==="true")&&(t.lastColumn=true);let u=j$1(e,"w","oddHBand");(u==="1"||u==="true")&&(t.oddHBand=true);let l=j$1(e,"w","evenHBand");(l==="1"||l==="true")&&(t.evenHBand=true);let f=j$1(e,"w","oddVBand");(f==="1"||f==="true")&&(t.oddVBand=true);let c=j$1(e,"w","evenVBand");(c==="1"||c==="true")&&(t.evenVBand=true);let p=j$1(e,"w","firstRowFirstColumn");(p==="1"||p==="true")&&(t.nwCell=true);let d=j$1(e,"w","firstRowLastColumn");(d==="1"||d==="true")&&(t.neCell=true);let b=j$1(e,"w","lastRowFirstColumn");(b==="1"||b==="true")&&(t.swCell=true);let F=j$1(e,"w","lastRowLastColumn");(F==="1"||F==="true")&&(t.seCell=true);let y=j$1(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$1){if(!e$1)return;let t={},n=X(e(e$1,"w","tcW"));n&&(t.width=n);let r=ee(e(e$1,"w","tcBorders"));r&&(t.borders=r);let o=te(e(e$1,"w","tcMar"));o&&(t.margins=o);let a=ne(e(e$1,"w","shd"));a&&(t.shading=a);let u=e(e$1,"w","vAlign");if(u){let y=j$1(u,"w","val");(y==="top"||y==="center"||y==="bottom")&&(t.verticalAlign=y);}let l$1=e(e$1,"w","textDirection");if(l$1){let y=j$1(l$1,"w","val");y&&(t.textDirection=y);}let f=e(e$1,"w","gridSpan");if(f){let y=l(f,"w","val");y!==void 0&&y>1&&(t.gridSpan=y);}let c=e(e$1,"w","vMerge");c&&(j$1(c,"w","val")==="restart"?t.vMerge="restart":t.vMerge="continue"),m(e(e$1,"w","tcFitText"))&&(t.fitText=true),m(e(e$1,"w","noWrap"))&&(t.noWrap=true),m(e(e$1,"w","hideMark"))&&(t.hideMark=true);let F=lt(e(e$1,"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$1,t,n,r,o,a,u){let l={type:"tableCell",content:[]},f=e(e$1,"w","tcPr"),c=st(f);return c&&(l.formatting=c),l.propertyChanges=dn(f,c),l.structuralChange=gn(f),l.content=hn(e$1,t,n,r,o,a,u),l}function yn(e$1,t,n,r,o,a,u){let l={type:"tableRow",cells:[]},f$1=e(e$1,"w","trPr"),c=at(f$1);c&&(l.formatting=c),l.propertyChanges=pn(f$1,c),l.structuralChange=mn(f$1);let p=f(e$1,"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=f(e,"w","gridCol");for(let r of n){let o=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$1,t,n,r,o,a,u){let l={type:"table",rows:[]},f$1=e(e$1,"w","tblPr"),c=it(f$1);c&&(l.formatting=c),l.propertyChanges=cn(f$1,c);let p=bn(e(e$1,"w","tblGrid"));p&&(l.columnWidths=p);let d=f(e$1,"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}export{qn as A,Ge as B,Kn as C,Qn as D,$ as E,$e as F,cr as G,pr as H,dr as I,mr as J,gr as K,hr as L,wr as M,fn as N,j as O,xn as a,_ as b,Ae as c,D as d,ee as e,te as f,ne as g,ge as h,he as i,mt as j,gt as k,ht as l,wt as m,yt as n,it as o,bt as p,re as q,In as r,Ln as s,jn as t,Vn as u,Ve as v,ze as w,zn as x,Un as y,Gn as z};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {d}from'./chunk-HL5PQT3A.mjs';import {i,j,h,l,g,k as k$1,e as e$1}from'./chunk-B6LYBJ4H.mjs';import {e}from'./chunk-VW22RZ6C.mjs';var pe={accent1:"accent1",accent2:"accent2",accent3:"accent3",accent4:"accent4",accent5:"accent5",accent6:"accent6",dk1:"dk1",lt1:"lt1",dk2:"dk2",lt2:"lt2",tx1:"text1",tx2:"text2",bg1:"background1",bg2:"background2",hlink:"hlink",folHlink:"folHlink"},G={black:"000000",white:"FFFFFF",red:"FF0000",green:"00FF00",blue:"0000FF",yellow:"FFFF00",cyan:"00FFFF",magenta:"FF00FF"};function J(e,n){let t=i(n),i$1=t.find(r=>r.name==="a:shade");if(i$1){let r=j(i$1,null,"val");r&&(e.themeShade=Math.round(parseInt(r,10)/1e5*255).toString(16).padStart(2,"0").toUpperCase());}let o=t.find(r=>r.name==="a:tint");if(o){let r=j(o,null,"val");r&&(e.themeTint=Math.round(parseInt(r,10)/1e5*255).toString(16).padStart(2,"0").toUpperCase());}return e}function K(e){if(!e)return;let n=i(e),t=n.find(l=>l.name==="a:srgbClr");if(t){let l=j(t,null,"val");if(l)return J({rgb:l},t)}let i$1=n.find(l=>l.name==="a:schemeClr");if(i$1){let l=j(i$1,null,"val");if(l){let u={themeColor:pe[l]??"dk1"};return J(u,i$1)}}let o=n.find(l=>l.name==="a:sysClr");if(o)return {rgb:j(o,null,"lastClr")??"000000"};let r=n.find(l=>l.name==="a:prstClr");if(r){let l=j(r,null,"val");if(l&&G[l])return {rgb:G[l]}}}function N(e){if(!e)return;let n=i(e);if(n.find(i=>i.name==="a:noFill"))return {type:"none"};let t=n.find(i=>i.name==="a:solidFill");if(t)return {type:"solid",color:K(t)};if(n.find(i=>i.name==="a:gradFill"))return {type:"gradient"}}function S(e){let n=e?h(e,"a:ln"):null;if(!n)return;let t=i(n);if(t.find(u=>u.name==="a:noFill"))return;let i$1={},o=j(n,null,"w");o&&(i$1.width=parseInt(o,10));let r=t.find(u=>u.name==="a:solidFill");r&&(i$1.color=K(r));let l=t.find(u=>u.name==="a:prstDash");if(l){let u=j(l,null,"val");u&&(i$1.style=u);}return i$1}function L(e){if(!e)return;let n=j(e,null,"relativeFrom")??"column",t=h(e,"wp:align");if(t){let o=k$1(t);return {relativeTo:n,alignment:o}}let i=h(e,"wp:posOffset");if(i){let o=k$1(i),r=parseInt(o,10);return {relativeTo:n,posOffset:isNaN(r)?0:r}}return {relativeTo:n}}function z(e){if(!e)return;let n=j(e,null,"relativeFrom")??"paragraph",t=h(e,"wp:align");if(t){let o=k$1(t);return {relativeTo:n,alignment:o}}let i=h(e,"wp:posOffset");if(i){let o=k$1(i),r=parseInt(o,10);return {relativeTo:n,posOffset:isNaN(r)?0:r}}return {relativeTo:n}}function Q(e){let n=h(e,"wp:positionH"),t=h(e,"wp:positionV");if(!(!n&&!t))return {horizontal:L(n)??{relativeTo:"column"},vertical:z(t)??{relativeTo:"paragraph"}}}var W=["wp:wrapNone","wp:wrapSquare","wp:wrapTight","wp:wrapThrough","wp:wrapTopAndBottom"];function D(e,n,t){if(!e){let p={type:n?"behind":"inFront"};return t?.distT!==void 0&&(p.distT=t.distT),t?.distB!==void 0&&(p.distB=t.distB),t?.distL!==void 0&&(p.distL=t.distL),t?.distR!==void 0&&(p.distR=t.distR),p}let o=(e.name||"").replace("wp:",""),r;switch(o){case "wrapNone":r=n?"behind":"inFront";break;case "wrapSquare":r="square";break;case "wrapTight":r="tight";break;case "wrapThrough":r="through";break;case "wrapTopAndBottom":r="topAndBottom";break;default:r="square";}let l$1={type:r},u=j(e,null,"wrapText");u&&(l$1.wrapText=u);let s=l(e,null,"distT")??t?.distT,c=l(e,null,"distB")??t?.distB,m=l(e,null,"distL")??t?.distL,g=l(e,null,"distR")??t?.distR;return s!==void 0&&(l$1.distT=s),c!==void 0&&(l$1.distB=c),m!==void 0&&(l$1.distL=m),g!==void 0&&(l$1.distR=g),l$1}function Y(e){let n=i(e),t=j(e,null,"behindDoc")==="1",i$1=n.find(r=>W.includes(r.name??"")),o={distT:l(e,null,"distT")??void 0,distB:l(e,null,"distB")??void 0,distL:l(e,null,"distL")??void 0,distR:l(e,null,"distR")??void 0};return D(i$1??null,t,o)}var ce={accent1:"5B9BD5",accent2:"ED7D31",accent3:"A5A5A5",accent4:"FFC000",accent5:"4472C4",accent6:"70AD47",dk1:"000000",lt1:"FFFFFF",dk2:"1F497D",lt2:"EEECE1",text1:"000000",text2:"1F497D",background1:"FFFFFF",background2:"EEECE1",hlink:"0563C1",folHlink:"954F72"};function H(e){if(e){if(e.rgb)return `#${e.rgb}`;if(e.themeColor)return `#${ce[e.themeColor]??"000000"}`}}var k=91440;function Z(e){if(!e)return {};let n={},t=l(e,null,"lIns"),i=l(e,null,"rIns"),o=l(e,null,"tIns"),r=l(e,null,"bIns");return (t!==void 0||i!==void 0||o!==void 0||r!==void 0)&&(n.margins={left:t,right:i,top:o,bottom:r}),n}function ve(e){if(!e)return {paragraphElements:[],tableElements:[]};let n=g(e,"p"),t=g(e,"tbl");return {paragraphElements:n,tableElements:t}}function Be(e,n,t,i$1,o,r,l,u){if(!e)return [];let s=[],c=i(e);for(let m of c){let g=m.name||"",p=g.indexOf(":"),T=p>=0?g.substring(p+1):g;if(T==="p"){let b=n(m,i$1,o,r,l);s.push(b);}}return s}function ee(e){let t=i(e).find(u=>u.name==="wp:inline"||u.name==="wp:anchor");if(!t)return false;let i$1=h(t,"a:graphic");if(!i$1)return false;let o=h(i$1,"a:graphicData");if(!o)return false;let r=h(o,"wps:wsp");return r?h(r,"wps:txbx")!==null:false}function Ce(e){return h(e,"wps:txbx")!==null}function Me(e){let t=i(e).find(x=>x.name==="wp:inline"||x.name==="wp:anchor");if(!t)return null;let i$1=t.name==="wp:anchor",o=h(t,"a:graphic");if(!o)return null;let r=h(o,"a:graphicData");if(!r)return null;let l$1=h(r,"wps:wsp");if(!l$1||!h(l$1,"wps:txbx"))return null;let s=i(l$1),c=s.find(x=>x.name==="wps:spPr"),m=s.find(x=>x.name==="wps:bodyPr"),g=h(t,"wp:extent"),p=l(g,null,"cx")??0,T=l(g,null,"cy")??0,b={width:p,height:T},C=h(t,"wp:docPr"),P=C?j(C,null,"id")??void 0:void 0,v=N(c??null),B=S(c??null),E=Z(m??null),y={type:"textBox",size:b,content:[]};if(P&&(y.id=P),v&&(y.fill=v),B&&(y.outline=B),E.margins&&(y.margins=E.margins),i$1){let x=Q(t);x&&(y.position=x);let h=Y(t);h&&(y.wrap=h);}return y}function Re(e){let n=h(e,"wps:txbx");return n?h(n,"w:txbxContent"):null}function Xe(e,n,t,i$1){if(!h(e,"wps:txbx"))return null;let r=i(e),l=r.find(b=>b.name==="wps:spPr"),u=r.find(b=>b.name==="wps:bodyPr"),s=r.find(b=>b.name==="wps:cNvPr"),c=s?j(s,null,"id")??void 0:void 0,m=N(l??null),g=S(l??null),p=Z(u??null),T={type:"textBox",size:n,content:[]};return c&&(T.id=c),m&&(T.fill=m),g&&(T.outline=g),p.margins&&(T.margins=p.margins),t&&(T.position=t),i$1&&(T.wrap=i$1),T}function ke(e$1){return e(e$1.size.width)}function Ae(e$1){return e(e$1.size.height)}function Oe(e$1){return {width:e(e$1.size.width),height:e(e$1.size.height)}}function Ne(e$1){let n=e$1.margins;return {top:e(n?.top??k),bottom:e(n?.bottom??k),left:e(n?.left??k),right:e(n?.right??k)}}function Se(e){return e.position!==void 0||e.wrap!==void 0}function Le(e){return e.fill!==void 0&&e.fill.type!=="none"}function ze(e){return e.outline!==void 0}function We(e){return e.content.length>0}function De(e){let n=[];for(let t of e.content){let i=[];for(let o of t.content)if(o.type==="run")for(let r of o.content)r.type==="text"&&i.push(r.text);n.push(i.join(""));}return n.join(`
|
|
2
|
+
`)}function He(e){if(!(!e.fill||e.fill.type!=="solid"))return H(e.fill.color)}function Ve(e){if(e.outline?.color)return H(e.outline.color)}function _e(e$1){return e$1.outline?.width?e(e$1.outline.width):0}function me(e){if(!e)return;let n=parseInt(e,10);if(!isNaN(n))return n/6e4}function ge(e,n){let t=i(e);for(let i of t)if(n.includes(i.name||""))return i;return null}function ne(e){if(!e)return {width:0,height:0};let n=l(e,null,"cx")??0,t=l(e,null,"cy")??0;return {width:n,height:t}}function te(e){if(!e)return;let n=l(e,null,"l")??0,t=l(e,null,"t")??0,i=l(e,null,"r")??0,o=l(e,null,"b")??0;if(!(n===0&&t===0&&i===0&&o===0))return {left:n,top:t,right:i,bottom:o}}function ie(e){if(!e)return {};let n=j(e,null,"id")??void 0,t=j(e,null,"name")??void 0,i=j(e,null,"descr")??void 0,o=j(e,null,"title")??void 0,r=j(e,null,"decorative")==="1",l=e$1(e,"a","hlinkClick"),u=l?j(l,"r","id")??void 0:void 0;return {id:n,name:t,alt:i,title:o,decorative:r||void 0,hlinkRId:u}}function re(e){if(!e)return;let n=j(e,null,"rot"),t=j(e,null,"flipH")==="1",i=j(e,null,"flipV")==="1",o=me(n);if(o===void 0&&!t&&!i)return;let r={};return o!==void 0&&(r.rotation=o),t&&(r.flipH=true),i&&(r.flipV=true),r}function oe(e){let n=h(e,"a:graphic");if(!n)return {blipFill:null,blip:null};let t=h(n,"a:graphicData");if(!t)return {blipFill:null,blip:null};let i=h(t,"pic:pic");if(!i)return {blipFill:null,blip:null};let o=h(i,"pic:blipFill");return o?{blipFill:o,blip:h(o,"a:blip")}:{blipFill:null,blip:null}}function le(e){if(!e)return;let n=h(e,"a:srcRect");if(!n)return;let t=s=>{let c=l(n,null,s);if(!(c===void 0||c===0))return c/1e5},i=t("l"),o=t("t"),r=t("r"),l$1=t("b");if(i===void 0&&o===void 0&&r===void 0&&l$1===void 0)return;let u={};return i!==void 0&&(u.left=i),o!==void 0&&(u.top=o),r!==void 0&&(u.right=r),l$1!==void 0&&(u.bottom=l$1),u}function ae(e){if(!e)return;let n=h(e,"a:alphaModFix");if(!n)return;let t=l(n,null,"amt");if(!(t===void 0||t>=1e5))return Math.max(0,Math.min(1,t/1e5))}function se(e){if(!e)return "";let n=j(e,"r","embed");if(n)return n;let t=j(e,null,"embed");if(t)return t;let i=j(e,"r","link");return i||""}function ue(e){let n=h(e,"a:graphic");if(!n)return null;let t=h(n,"a:graphicData");if(!t)return null;let i=h(t,"pic:pic");if(!i)return null;let o=h(i,"pic:spPr");return o?h(o,"a:xfrm"):null}function xe(e){if(!e)return e;let n=e.replace(/^\/+/,"");return n.startsWith("media/")?n=`word/${n}`:n.startsWith("word/")||(n=`word/${n}`),n}function he(e){let n=e.split(".").pop()?.toLowerCase()??"";return {png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",bmp:"image/bmp",tiff:"image/tiff",tif:"image/tiff",webp:"image/webp",svg:"image/svg+xml",emf:"image/x-emf",wmf:"image/x-wmf"}[n]??"application/octet-stream"}function de(e,n,t){if(!e||!n)return {};let i=n.get(e);if(!i)return {};let o=i.target;if(!o)return {};let r=xe(o),l=o.split("/").pop(),u=(s,c)=>{let m=c.toLowerCase();for(let[g,p]of s.entries())if(g.toLowerCase()===m)return p};if(t){let s=u(t,r);if(s)return {src:s.dataUrl||s.base64,mimeType:s.mimeType,filename:l};let c=o.replace(/^\/+/,""),m=u(t,c);if(m)return {src:m.dataUrl||m.base64,mimeType:m.mimeType,filename:l};let g=`word/${c}`,p=u(t,g);if(p)return {src:p.dataUrl||p.base64,mimeType:p.mimeType,filename:l}}return {mimeType:he(o),filename:l}}function Te(e,n,t){let i=h(e,"wp:extent"),o=ne(i),r=h(e,"wp:effectExtent"),l$1=te(r),u=h(e,"wp:docPr"),s=ie(u),{blip:c,blipFill:m}=oe(e),g=se(c),p=le(m),T=ae(c),b=de(g,n,t),C=ue(e),P=re(C),v=l(e,null,"distT")??void 0,B=l(e,null,"distB")??void 0,E=l(e,null,"distL")??void 0,y=l(e,null,"distR")??void 0,x={type:"inline"};v!==void 0&&(x.distT=v),B!==void 0&&(x.distB=B),E!==void 0&&(x.distL=E),y!==void 0&&(x.distR=y);let h$1={type:"image",rId:g,size:o,wrap:x};if(s.id&&(h$1.id=s.id),s.alt&&(h$1.alt=s.alt),s.title&&(h$1.title=s.title),s.decorative&&(h$1.decorative=true),b.src&&(h$1.src=b.src),b.mimeType&&(h$1.mimeType=b.mimeType),b.filename&&(h$1.filename=b.filename),l$1&&(h$1.padding=l$1),P&&(h$1.transform=P),p&&(h$1.crop=p),T!==void 0&&(h$1.opacity=T),s.hlinkRId&&n){let X=d(n,s.hlinkRId);X&&(h$1.hlinkHref=X);}return h$1}function be(e,n,t){let i=h(e,"wp:extent"),o=ne(i),r=h(e,"wp:effectExtent"),l$1=te(r),u=h(e,"wp:docPr"),s=ie(u),c=j(e,null,"behindDoc")==="1",m=j(e,null,"layoutInCell"),g=m===null?void 0:m==="1",p=j(e,null,"allowOverlap"),T=p===null?void 0:p==="1",b={distT:l(e,null,"distT")??void 0,distB:l(e,null,"distB")??void 0,distL:l(e,null,"distL")??void 0,distR:l(e,null,"distR")??void 0},C=ge(e,W),P=D(C,c,b),v=h(e,"wp:positionH"),B=h(e,"wp:positionV"),E=L(v),y=z(B),x;(E||y)&&(x={horizontal:E??{relativeTo:"column"},vertical:y??{relativeTo:"paragraph"}});let{blip:h$1,blipFill:X}=oe(e),V=se(h$1),_=le(X),U=ae(h$1),M=de(V,n,t),fe=ue(e),j$1=re(fe),I={type:"image",rId:V,size:o,wrap:P};if(s.id&&(I.id=s.id),s.alt&&(I.alt=s.alt),s.title&&(I.title=s.title),s.decorative&&(I.decorative=true),M.src&&(I.src=M.src),M.mimeType&&(I.mimeType=M.mimeType),M.filename&&(I.filename=M.filename),x&&(I.position=x),l$1&&(I.padding=l$1),j$1&&(I.transform=j$1),_&&(I.crop=_),U!==void 0&&(I.opacity=U),g!==void 0&&(I.layoutInCell=g),T!==void 0&&(I.allowOverlap=T),s.hlinkRId&&n){let q=d(n,s.hlinkRId);q&&(I.hlinkHref=q);}return I}function we(e,n,t){if(ee(e))return null;let i$1=i(e);for(let o of i$1){let r=o.name||"";if(r==="wp:inline"||r==="wp:anchor")return r==="wp:inline"?Te(o,n,t):be(o,n,t)}return null}function Qe(e,n,t){return we(e,n,t)}function Ye(e){return e.wrap.type==="inline"}function Ze(e){return e.wrap.type!=="inline"}function en(e){return e.wrap.type==="behind"}function nn(e){return e.wrap.type==="inFront"}function tn(e$1){return e(e$1.size.width)}function rn(e$1){return e(e$1.size.height)}function on(e){return e.decorative===true}function ln(e$1){return {top:e(e$1.wrap.distT),bottom:e(e$1.wrap.distB),left:e(e$1.wrap.distL),right:e(e$1.wrap.distR)}}export{Ye as A,Ze as B,en as C,nn as D,tn as E,rn as F,on as G,ln as H,K as a,N as b,Q as c,Y as d,H as e,ve as f,Be as g,ee as h,Ce as i,Me as j,Re as k,Xe as l,ke as m,Ae as n,Oe as o,Ne as p,Se as q,Le as r,ze as s,We as t,De as u,He as v,Ve as w,_e as x,we as y,Qe as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {e,b,c,a as a$1}from'./chunk-KQTB5Y7P.mjs';import {a}from'./chunk-
|
|
1
|
+
import {e,b,c,a as a$1}from'./chunk-KQTB5Y7P.mjs';import {a}from'./chunk-TGPS3SRR.mjs';import {TextSelection}from'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=a$1(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$1){let t=M(e$1);return t?{...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=b(m,r.col,r.colspan,i),b$1=u.find(c=>c.row===r.row&&c.col===r.col);if(!b$1)return false;let g=c(u,b$1,o,i,r.table.childCount,c=>{if(c)return b$1.data;let d=b$1.data.type.schema.nodes.paragraph.create(),x=B(b$1.data,0,1,1,f);return b$1.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(TextSelection.near(h.doc.resolve(c+1))));}return t(h.scrollIntoView()),true}var s=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=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}export{be as A,ge as B,Ce as C,Te as D,he as E,ye as F,xe as G,Se as H,ve as I,Ee as J,Ae as K,P as L,W as M,Re as N,ke as O,L as P,N as Q,j as a,V as b,J as c,$ as d,q as e,G as f,K as g,Q as h,X as i,Y as j,Z as k,ee as l,te as m,re as n,oe as o,ne as p,ae as q,le as r,ie as s,se as t,ce as u,de as v,ue as w,pe as x,me as y,fe as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkYVYB4YCI_js=require('./chunk-YVYB4YCI.js'),chunkIO6HZ7KR_js=require('./chunk-IO6HZ7KR.js');function y(e){return chunkIO6HZ7KR_js.g(e,chunkYVYB4YCI_js.b)}var t=chunkYVYB4YCI_js.a.getCommands(),F=t.toggleBold(),f=t.toggleItalic(),S=t.toggleUnderline(),H=t.toggleStrike(),T=t.toggleSuperscript(),h=t.toggleSubscript();function M(e){return t.setTextColor(e)}var A=t.clearTextColor();function v(e){return t.setHighlight(e)}var z=t.clearHighlight();function U(e){return t.setFontSize(e)}var b=t.clearFontSize();function B(e){return t.setFontFamily(e)}var I=t.clearFontFamily();function R(e,o){return t.setUnderlineStyle(e,o)}function _(e,o){return t.setHyperlink(e,o)}var j=t.removeHyperlink();function q(e,o,i){return t.insertHyperlink(e,o,i)}exports.a=y;exports.b=F;exports.c=f;exports.d=S;exports.e=H;exports.f=T;exports.g=h;exports.h=M;exports.i=A;exports.j=v;exports.k=z;exports.l=U;exports.m=b;exports.n=B;exports.o=I;exports.p=R;exports.q=_;exports.r=j;exports.s=q;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {w,v}from'./chunk-BRHHK4MG.mjs';var t=new w(v());t.buildSchema();t.initializeRuntime();var s=t,n=t.getSchema();export{s as a,n as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var xmlJs=require('xml-js');function f(e){return xmlJs.xml2js(e,{compact:false,ignoreComment:true,ignoreInstruction:true,ignoreDoctype:true,alwaysArray:false,trim:false,captureSpacesBetweenElements:true,attributesKey:"attributes",textKey:"text"})}function g(e){return xmlJs.js2xml({elements:[e]},{compact:false,spaces:0})}function h(e){try{let t=f(e);return t.elements&&t.elements.length>0?t.elements.find(n=>n.type==="element")??null:t}catch(t){return console.warn("Failed to parse XML:",t),null}}function s(e){let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function c(e,t,n){if(!e.name)return false;let l=`${t}:${n}`;return e.name===l||s(e.name)===n}function x(e,t,n){if(!e||!e.elements)return null;let l=`${t}:${n}`;for(let r of e.elements)if(r.type==="element"&&(r.name===l||s(r.name||"")===n))return r;return null}function E(e,t,n){if(!e||!e.elements)return [];let l=`${t}:${n}`,r=[];for(let i of e.elements)i.type==="element"&&(i.name===l||s(i.name||"")===n)&&r.push(i);return r}function X(e,t){return !e||!e.elements?[]:e.elements.filter(n=>n.type==="element"&&s(n.name||"")===t)}function w(e,t){if(!e||!e.elements)return null;for(let n of e.elements)if(n.type==="element"&&n.name===t)return n;return null}function y(e){return !e||!e.elements?[]:e.elements.filter(t=>t.type==="element")}function o(e,t,n){if(!e||!e.attributes)return null;let l=e.attributes;if(t){let r=`${t}:${n}`;if(r in l)return l[r]}return n in l?l[n]:null}function a(e){if(!e)return "";if("text"in e&&typeof e.text=="string")return e.text;if(!e.elements)return "";let t="";for(let n of e.elements)n.type==="text"&&"text"in n?t+=n.text??"":n.type==="element"&&(t+=a(n));return t}function b(e,t,n,l=1){let r=o(e,t,n);if(r===null)return;let i=parseInt(r,10);if(!isNaN(i))return i*l}function C(e,t="w"){if(!e)return false;let n=o(e,t,"val");return n===null?true:!(n==="0"||n==="false"||n==="off")}function d(e,t,n){if(!e)return null;if(c(e,t,n))return e;if(e.elements)for(let l of e.elements){if(l.type!=="element")continue;let r=d(l,t,n);if(r)return r}return null}exports.a=f;exports.b=g;exports.c=h;exports.d=s;exports.e=x;exports.f=E;exports.g=X;exports.h=w;exports.i=y;exports.j=o;exports.k=a;exports.l=b;exports.m=C;exports.n=d;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import {h,g as g$1,a as a$1,i,k as k$1,l,m}from'./chunk-LDKESXXK.mjs';import {a}from'./chunk-HL5PQT3A.mjs';import y from'jszip';var j=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
2
|
+
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"></Relationships>`;function E(r){return r.startsWith("/")?r.slice(1):`word/${r}`}function P(r){let e=[{relsPath:"word/_rels/document.xml.rels",blocks:r.package.document.content}],t=r.package.relationships;if(!t)return e;let o=(n,c)=>{if(n)for(let[a,s]of n.entries()){let i=t.get(a);if(!i||i.type!==c||!i.target)continue;let l=E(i.target).replace(/^word\//,"");e.push({relsPath:`word/_rels/${l}.rels`,blocks:s.content});}};return o(r.package.headers,a.header),o(r.package.footers,a.footer),e}async function T(r,e){let t=r.file(e);return (t?await t.async("text"):j).replace(/<Relationships([^>]*)\/>/,"<Relationships$1></Relationships>")}function g(r){let e=0;for(let t of r.matchAll(/Id="rId(\d+)"/g)){let o=parseInt(t[1],10);o>e&&(e=o);}return e}function D(r,e){return e||{png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",bmp:"image/bmp",tif:"image/tiff",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp",wmf:"image/x-wmf",emf:"image/x-emf"}[r]||"application/octet-stream"}function k(r){let e=[];for(let t of r)if(t.type==="paragraph"){for(let o of t.content)if(o.type==="run")for(let n of o.content)n.type==="drawing"&&n.image.src?.startsWith("data:")&&e.push(n.image);}else if(t.type==="table")for(let o of t.rows)for(let n of o.cells)e.push(...k(n.content));return e}var W={"image/png":"png","image/jpeg":"jpeg","image/gif":"gif","image/bmp":"bmp","image/tiff":"tiff","image/webp":"webp","image/svg+xml":"svg"};function z(r){let e=r.match(/^data:([^;]+);base64,(.+)$/);if(!e)throw new Error("Invalid data URL");let t=atob(e[2]),o=new Uint8Array(t.length);for(let n=0;n<t.length;n++)o[n]=t.charCodeAt(n);return {data:o.buffer,extension:W[e[1]]||"png"}}async function q(r,e,t){if(e.size===0)return;let o=r.file("[Content_Types].xml");if(!o)return;let n=await o.async("text"),c=false;for(let a of e)if(!n.includes(`Extension="${a}"`)){let s=D(a,"");n=n.replace("</Types>",`<Default Extension="${a}" ContentType="${s}"/></Types>`),c=true;}c&&r.file("[Content_Types].xml",n,{compression:"DEFLATE",compressionOptions:{level:t}});}function V(r){let e=0;return r.forEach(t=>{let o=t.match(/^word\/media\/image(\d+)\./);if(o){let n=parseInt(o[1],10);n>e&&(e=n);}}),e}async function A(r,e,t){let o=V(e),n=new Set;for(let{relsPath:c,blocks:a$1}of r){let s=k(a$1);if(s.length===0)continue;let i=await T(e,c),p=g(i),l=[];for(let d of s){let{data:u,extension:x}=z(d.src);o++,p++;let v=`image${o}.${x}`,R=`rId${p}`;e.file(`word/media/${v}`,u,{compression:"DEFLATE",compressionOptions:{level:t}}),l.push(`<Relationship Id="${R}" Type="${a.image}" Target="media/${v}"/>`),n.add(x),d.rId=R;}let m=i.replace("</Relationships>",l.join("")+"</Relationships>");e.file(c,m,{compression:"DEFLATE",compressionOptions:{level:t}});}await q(e,n,t);}function S(r){let e=[];for(let t of r)if(t.type==="paragraph")for(let o of t.content)o.type==="hyperlink"&&o.href&&!o.rId&&!o.anchor&&e.push(o);else if(t.type==="table")for(let o of t.rows)for(let n of o.cells)e.push(...S(n.content));return e}async function I(r,e,t){for(let{relsPath:o,blocks:n}of r){let c=S(n);if(c.length===0)continue;let a$2=await T(e,o),s=g(a$2),i=[];for(let l of c){s++;let m=`rId${s}`;i.push(`<Relationship Id="${m}" Type="${a.hyperlink}" Target="${a$1(l.href)}" TargetMode="External"/>`),l.rId=m;}let p=a$2.replace("</Relationships>",i.join("")+"</Relationships>");e.file(o,p,{compression:"DEFLATE",compressionOptions:{level:t}});}}var G="application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",K="application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",L="application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml",X="application/vnd.openxmlformats-officedocument.wordprocessingml.commentsExtended+xml",Z="application/vnd.openxmlformats-officedocument.wordprocessingml.commentsIds+xml",H="application/vnd.openxmlformats-officedocument.wordprocessingml.commentsExtensible+xml";async function O(r,e,t){let o=r.package.relationships;if(!o)return;let n=[];for(let[p,l]of o){if(!l.target)continue;let m=l.type===a.header?G:l.type===a.footer?K:null;m&&n.push({rId:p,target:l.target.replace(/^(\/?word\/)/,""),contentType:m,relType:l.type});}if(n.length===0)return;let c=e.file("[Content_Types].xml");if(c){let p=await c.async("text"),l=false;for(let{target:m,contentType:d}of n){let u=`/word/${m}`;p.includes(`PartName="${u}"`)||(p=p.replace("</Types>",`<Override PartName="${u}" ContentType="${d}"/></Types>`),l=true);}l&&e.file("[Content_Types].xml",p,{compression:"DEFLATE",compressionOptions:{level:t}});}let a$1="word/_rels/document.xml.rels",s=await T(e,a$1),i=false;for(let{rId:p,relType:l,target:m}of n)s.includes(`Id="${p}"`)||(s=s.replace("</Relationships>",`<Relationship Id="${p}" Type="${l}" Target="${m}"/></Relationships>`),i=true);i&&e.file(a$1,s,{compression:"DEFLATE",compressionOptions:{level:t}});}async function Q(r,e){let t=[{partName:"/word/comments.xml",contentType:L,target:"comments.xml",relType:a.comments},{partName:"/word/commentsExtended.xml",contentType:X,target:"commentsExtended.xml",relType:a.commentsExtended},{partName:"/word/commentsIds.xml",contentType:Z,target:"commentsIds.xml",relType:a.commentsIds},{partName:"/word/commentsExtensible.xml",contentType:H,target:"commentsExtensible.xml",relType:a.commentsExtensible}],o=r.file("[Content_Types].xml");if(o){let a=await o.async("text"),s=false;for(let{partName:i,contentType:p}of t)a.includes(i)||(a=a.replace("</Types>",`<Override PartName="${i}" ContentType="${p}"/></Types>`),s=true);s&&r.file("[Content_Types].xml",a,{compression:"DEFLATE",compressionOptions:{level:e}});}let n="word/_rels/document.xml.rels",c=r.file(n);if(c){let a=await c.async("text"),s=false;for(let{target:i,relType:p}of t)if(!a.includes(i)){let l=`rId${g(a)+1}`;a=a.replace("</Relationships>",`<Relationship Id="${l}" Type="${p}" Target="${i}"/></Relationships>`),s=true;}s&&r.file(n,a,{compression:"DEFLATE",compressionOptions:{level:e}});}}async function b(r,e,t){let o=r.package.document.comments;if(!o||o.length===0)return;let{xml:n,paraInfos:c}=i(o);e.file("word/comments.xml",n,{compression:"DEFLATE",compressionOptions:{level:t}});let a=k$1(c);a&&e.file("word/commentsExtended.xml",a,{compression:"DEFLATE",compressionOptions:{level:t}});let s=l(c);s&&e.file("word/commentsIds.xml",s,{compression:"DEFLATE",compressionOptions:{level:t}});let i$1=m(c,o);i$1&&e.file("word/commentsExtensible.xml",i$1,{compression:"DEFLATE",compressionOptions:{level:t}}),await Q(e,t);}function U(r){let e=new Map,t=r.package.relationships;if(!t)return e;let o=[{map:r.package.headers,type:a.header},{map:r.package.footers,type:a.footer}];for(let{map:n,type:c}of o)if(n)for(let[a,s]of n.entries()){let i=t.get(a);i&&i.type===c&&i.target&&e.set(E(i.target),h(s));}return e}function F(r,e,t){let o={level:t};for(let[n,c]of U(r))e.file(n,c,{compression:"DEFLATE",compressionOptions:o});}async function C(){let r=new y;r.file("[Content_Types].xml",`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
3
|
+
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
|
|
4
|
+
<Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>
|
|
5
|
+
<Default Extension="xml" ContentType="application/xml"/>
|
|
6
|
+
<Override PartName="/word/document.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/>
|
|
7
|
+
<Override PartName="/word/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"/>
|
|
8
|
+
<Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/>
|
|
9
|
+
<Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/>
|
|
10
|
+
</Types>`),r.file("_rels/.rels",`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
11
|
+
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
|
12
|
+
<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="word/document.xml"/>
|
|
13
|
+
<Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/>
|
|
14
|
+
<Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/>
|
|
15
|
+
</Relationships>`),r.file("word/_rels/document.xml.rels",`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
16
|
+
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
|
17
|
+
<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/>
|
|
18
|
+
</Relationships>`),r.file("word/document.xml",`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
19
|
+
<w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
|
|
20
|
+
<w:body>
|
|
21
|
+
<w:p>
|
|
22
|
+
<w:r>
|
|
23
|
+
<w:t></w:t>
|
|
24
|
+
</w:r>
|
|
25
|
+
</w:p>
|
|
26
|
+
<w:sectPr>
|
|
27
|
+
<w:pgSz w:w="12240" w:h="15840"/>
|
|
28
|
+
<w:pgMar w:top="1440" w:right="1440" w:bottom="1440" w:left="1440" w:header="720" w:footer="720" w:gutter="0"/>
|
|
29
|
+
</w:sectPr>
|
|
30
|
+
</w:body>
|
|
31
|
+
</w:document>`),r.file("word/styles.xml",`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
32
|
+
<w:styles xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
|
|
33
|
+
<w:docDefaults>
|
|
34
|
+
<w:rPrDefault>
|
|
35
|
+
<w:rPr>
|
|
36
|
+
<w:rFonts w:ascii="Calibri" w:hAnsi="Calibri"/>
|
|
37
|
+
<w:sz w:val="22"/>
|
|
38
|
+
</w:rPr>
|
|
39
|
+
</w:rPrDefault>
|
|
40
|
+
<w:pPrDefault>
|
|
41
|
+
<w:pPr>
|
|
42
|
+
<w:spacing w:after="200" w:line="276" w:lineRule="auto"/>
|
|
43
|
+
</w:pPr>
|
|
44
|
+
</w:pPrDefault>
|
|
45
|
+
</w:docDefaults>
|
|
46
|
+
<w:style w:type="paragraph" w:default="1" w:styleId="Normal">
|
|
47
|
+
<w:name w:val="Normal"/>
|
|
48
|
+
</w:style>
|
|
49
|
+
</w:styles>`);let e=new Date().toISOString();return r.file("docProps/core.xml",`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
50
|
+
<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
51
|
+
<dc:creator>EigenPal DOCX Editor</dc:creator>
|
|
52
|
+
<dcterms:created xsi:type="dcterms:W3CDTF">${e}</dcterms:created>
|
|
53
|
+
<dcterms:modified xsi:type="dcterms:W3CDTF">${e}</dcterms:modified>
|
|
54
|
+
</cp:coreProperties>`),r.file("docProps/app.xml",`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
55
|
+
<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties">
|
|
56
|
+
<Application>EigenPal DOCX Editor</Application>
|
|
57
|
+
<AppVersion>1.0.0</AppVersion>
|
|
58
|
+
</Properties>`),r.generateAsync({type:"arraybuffer",compression:"DEFLATE",compressionOptions:{level:6}})}async function J(r,e={}){if(!r.originalBuffer)throw new Error("Cannot repack document: no original buffer for round-trip. Use createDocx() for new documents.");let{compressionLevel:t=6,updateModifiedDate:o=true,modifiedBy:n}=e,c=r,a=await y.loadAsync(r.originalBuffer),s=new y;for(let[m,d]of Object.entries(a.files)){if(d.dir){s.folder(m.replace(/\/$/,""));continue}let u=await d.async("arraybuffer");s.file(m,u,{compression:"DEFLATE",compressionOptions:{level:t}});}let i=P(c);await A(i,s,t),await I(i,s,t);let p=g$1(c);if(s.file("word/document.xml",p,{compression:"DEFLATE",compressionOptions:{level:t}}),F(c,s,t),await O(c,s,t),await b(c,s,t),o){let m="docProps/core.xml",d=a.file(m);if(d){let u=await d.async("text"),x=Y(u,{updateModifiedDate:o,modifiedBy:n});s.file(m,x,{compression:"DEFLATE",compressionOptions:{level:t}});}}return await s.generateAsync({type:"arraybuffer",compression:"DEFLATE",compressionOptions:{level:t}})}async function be(r,e,t={}){let{compressionLevel:o=6,updateModifiedDate:n=true,modifiedBy:c}=t,a=r,s=new y;for(let[m,d]of Object.entries(e.originalZip.files)){if(d.dir){s.folder(m.replace(/\/$/,""));continue}let u=await d.async("arraybuffer");s.file(m,u,{compression:"DEFLATE",compressionOptions:{level:o}});}let i=P(a);await A(i,s,o),await I(i,s,o);let p=g$1(a);if(s.file("word/document.xml",p,{compression:"DEFLATE",compressionOptions:{level:o}}),F(a,s,o),await O(a,s,o),await b(a,s,o),n&&e.corePropsXml){let m=Y(e.corePropsXml,{updateModifiedDate:n,modifiedBy:c});s.file("docProps/core.xml",m,{compression:"DEFLATE",compressionOptions:{level:o}});}return await s.generateAsync({type:"arraybuffer",compression:"DEFLATE",compressionOptions:{level:o}})}async function Fe(r,e,t={}){let{compressionLevel:o=6}=t,n=await y.loadAsync(r);return n.file("word/document.xml",e,{compression:"DEFLATE",compressionOptions:{level:o}}),n.generateAsync({type:"arraybuffer",compression:"DEFLATE",compressionOptions:{level:o}})}async function Ce(r,e,t,o={}){let{compressionLevel:n=6}=o,c=await y.loadAsync(r);return c.file(e,t,{compression:"DEFLATE",compressionOptions:{level:n}}),c.generateAsync({type:"arraybuffer",compression:"DEFLATE",compressionOptions:{level:n}})}async function ve(r,e,t={}){let o=await y.loadAsync(r);return te(o,e,t)}async function te(r,e,t={}){let{compressionLevel:o=6}=t;for(let[n,c]of e)r.file(n,c,{compression:"DEFLATE",compressionOptions:{level:o}});return r.generateAsync({type:"arraybuffer",compression:"DEFLATE",compressionOptions:{level:o}})}async function oe(r,e){let t=await y.loadAsync(r),o="word/_rels/document.xml.rels",n=t.file(o);if(!n)throw new Error("document.xml.rels not found in DOCX");let c=await n.async("text"),a=`rId${g(c)+1}`,s=e.targetMode==="External"?' TargetMode="External"':"",i=`<Relationship Id="${a}" Type="${e.type}" Target="${a$1(e.target)}"${s}/>`,p=c.replace("</Relationships>",`${i}</Relationships>`);return t.file(o,p),{buffer:await t.generateAsync({type:"arraybuffer",compression:"DEFLATE",compressionOptions:{level:6}}),rId:a}}async function Re(r,e,t,o){let n=await y.loadAsync(r),c=`word/media/${e}`;n.file(c,t);let a=await oe(await n.generateAsync({type:"arraybuffer"}),{type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",target:`media/${e}`}),s=n.file("[Content_Types].xml");if(s){let i=await s.async("text"),p=e.split(".").pop()?.toLowerCase()||"";if(!i.includes(`Extension="${p}"`)&&p){let m=D(p,o),d=`<Default Extension="${p}" ContentType="${m}"/>`,u=i.replace("</Types>",`${d}</Types>`),x=await y.loadAsync(a.buffer);return x.file("[Content_Types].xml",u),{buffer:await x.generateAsync({type:"arraybuffer",compression:"DEFLATE",compressionOptions:{level:6}}),rId:a.rId,path:c}}}return {buffer:a.buffer,rId:a.rId,path:c}}function Y(r,e){let t=r;if(e.updateModifiedDate){let o=new Date().toISOString();t.includes("<dcterms:modified")?t=t.replace(/<dcterms:modified[^>]*>[^<]*<\/dcterms:modified>/,`<dcterms:modified xsi:type="dcterms:W3CDTF">${o}</dcterms:modified>`):t=t.replace("</cp:coreProperties>",`<dcterms:modified xsi:type="dcterms:W3CDTF">${o}</dcterms:modified></cp:coreProperties>`);}return e.modifiedBy&&(t.includes("<cp:lastModifiedBy")?t=t.replace(/<cp:lastModifiedBy>[^<]*<\/cp:lastModifiedBy>/,`<cp:lastModifiedBy>${a$1(e.modifiedBy)}</cp:lastModifiedBy>`):t=t.replace("</cp:coreProperties>",`<cp:lastModifiedBy>${a$1(e.modifiedBy)}</cp:lastModifiedBy></cp:coreProperties>`)),t}async function Me(r){let e=[],t=[];try{let o=await y.loadAsync(r),n=["[Content_Types].xml","word/document.xml"];for(let i of n)o.file(i)||e.push(`Missing required file: ${i}`);let c=["_rels/.rels","word/_rels/document.xml.rels","word/styles.xml"];for(let i of c)o.file(i)||t.push(`Missing recommended file: ${i}`);let a=o.file("word/document.xml");if(a){let i=await a.async("text");i.includes("<?xml")||t.push("document.xml missing XML declaration"),i.includes("<w:document")||e.push("document.xml missing w:document element"),i.includes("<w:body>")||e.push("document.xml missing w:body element");}let s=o.file("[Content_Types].xml");if(s){let i=await s.async("text");!i.includes("word/document.xml")&&!i.includes("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml")&&t.push("Content_Types.xml may be missing document.xml type declaration");}}catch(o){e.push(`Failed to read as ZIP: ${o instanceof Error?o.message:"Unknown error"}`);}return {valid:e.length===0,errors:e,warnings:t}}function Ne(r){if(r.byteLength<4)return false;let e=new Uint8Array(r);return e[0]===80&&e[1]===75}async function _e(r){let e=await C(),t={...r,originalBuffer:e};return J(t)}var $e=J;
|
|
59
|
+
export{g as a,L as b,X as c,Z as d,H as e,U as f,C as g,J as h,be as i,Fe as j,Ce as k,ve as l,te as m,oe as n,Re as o,Y as p,Me as q,Ne as r,_e as s,$e as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkXBIKSAH6_js=require('./chunk-XBIKSAH6.js'),chunkJFZIXFRC_js=require('./chunk-JFZIXFRC.js'),chunk4Q2IP5FW_js=require('./chunk-4Q2IP5FW.js');function We(e){return !chunkJFZIXFRC_js.b(e.wrapType)&&e.wrapType!=="topAndBottom"}function Re(e){return e.wrapType==="behind"}function Ze(e){return chunkJFZIXFRC_js.a(e.wrapType)?true:e.displayMode==="float"}function Y(e){return chunkJFZIXFRC_js.b(e.wrapType)||e.wrapType==="topAndBottom"?false:chunkJFZIXFRC_js.c(e.wrapType)?true:e.displayMode==="float"&&e.cssFloat!=="none"}function Ee(e){return e==="left"?"right":e==="right"?"left":"bothSides"}function A(e,t,n){if(!(!e||e<=0)){if(t==="pct")return n*e/5e3;if(!t||t==="dxa"||t==="auto")return chunk4Q2IP5FW_js.c(e)}}function H(e){return Math.max(1,...e.rows.map(t=>t.cells.reduce((n,o)=>n+Math.max(1,o.colSpan??1),0)))}function _(e,t,n){if(t<=0)return [];let o=n>0?n/t:0;if(e.length===0)return Array(t).fill(o);let r=e.slice(0,t),i=t-r.length;if(i>0){let g=r.filter(p=>p>0),c=g.length>0?g.reduce((p,a)=>p+a,0)/g.length:o;r=r.concat(Array(i).fill(c));}let h=r.reduce((g,c)=>g+(c>0?c:0),0),l=r.filter(g=>g<=0).length;if(h<=0)return Array(t).fill(o);if(l===0)return r;let f=Math.max(0,n-h),d=f>0?f/l:h/Math.max(1,t-l);return r.map(g=>g>0?g:d)}var L=7,X=0;function le(e,t){if(e.kind!=="paragraph"||t.kind!=="paragraph")return "totalHeight"in t?t.totalHeight:"height"in t?t.height:0;let n=e.runs.filter(l=>l.kind!=="text"||l.text.length>0);if(!(t.lines.length===1&&n.length>0&&n.every(l=>l.kind==="image")))return t.totalHeight;let r=n.reduce((l,f)=>f.kind==="image"?Math.max(l,f.height):l,0),i=e.attrs?.spacing?.before??0,h=e.attrs?.spacing?.after??0;return i+r+h}function ue(e){let t=e?.borders?.top?.width??0,n=e?.borders?.bottom?.width??0;return t+n}function D(e,t,n){let o=e.columnWidths??[],r=A(e.width,e.widthType,t),i=H(e),h=r??t;if(e.rows.length>0&&(o=_(o,i,h)),o.length>0&&r){let c=o.reduce((p,a)=>p+a,0);if(c>0&&Math.abs(c-r)>1){let p=r/c;o=o.map(a=>a*p);}}let l=new Map;for(let c=0;c<e.rows.length;c++){let p=e.rows[c];if(!p)continue;let a=0,s=l.get(c)??new Set;for(;s.has(a);)a++;for(let u of p.cells){let x=u.colSpan??1,m=u.rowSpan??1;if(m>1)for(let b=c+1;b<c+m;b++){l.has(b)||l.set(b,new Set);let C=l.get(b);for(let T=0;T<x;T++)C.add(a+T);}for(a+=x;s.has(a);)a++;}}let f=e.rows.map((c,p)=>{let a=0,s=l.get(p)??new Set;for(;s.has(a);)a++;return {cells:c.cells.map(u=>{let x=u.colSpan??1,m=0;for(let F=0;F<x&&a+F<o.length;F++)m+=o[a+F]??0;for(m===0&&(m=(u.width&&u.width>0?u.width:A(u.widthValue,u.widthType,h))??100),a+=x;s.has(a);)a++;let b=u.padding?.left??L,C=u.padding?.right??L,T=Math.max(1,m-b-C);return {blocks:u.blocks.map(F=>n(F,T)),width:m,height:0,colSpan:u.colSpan,rowSpan:u.rowSpan}}),height:0}});for(let c=0;c<f.length;c++){let p=f[c],a=e.rows[c]?.cells,s=0,u=0;for(let C=0;C<p.cells.length;C++){let T=p.cells[C],F=a?.[C],B=0;for(let k=0;k<T.blocks.length;k++){let W=F?.blocks[k],R=T.blocks[k];!W||!R||(B+=le(W,R));}T.height=B;let se=F?.padding?.top??X,ce=F?.padding?.bottom??X;T.height+=se+ce,s=Math.max(s,T.height),u=Math.max(u,ue(F));}let x=e.rows[c],m=x?.height,b=x?.heightRule;m&&b==="exact"?p.height=m:m?p.height=Math.max(s+u,m):p.height=s+u;}let d=f.reduce((c,p)=>c+p.height,0),g=o.reduce((c,p)=>c+p,0)||r||t;return {kind:"table",rows:f,columnWidths:o,totalWidth:g,totalHeight:d}}var pe=4;function ge(e,t,n){let o=Array.isArray(t)?t[0]??0:t,r=he(e,o,n),i=r.filter(s=>s.isMarginRelative),h=r.filter(s=>!s.isMarginRelative),l=new Map;for(let s of i){let u=l.get(s.topY)??[];u.push(s),l.set(s.topY,u);}let f=xe(h,pe),d=[];O(f,d),O(Array.from(l.values()),d);let g=new Map;for(let s of d){let u=g.get(s.anchorBlockIndex)??[];u.push({leftMargin:s.leftMargin,rightMargin:s.rightMargin,topY:s.topY,bottomY:s.bottomY}),g.set(s.anchorBlockIndex,u);}let c=new Set(d.map(s=>s.anchorBlockIndex)),p=0,a=[];return e.map((s,u)=>{c.has(u)&&(p=0,a=g.get(u)??[]);let x=a.length>0?a:void 0,m=Array.isArray(t)?t[u]??o:t,b=n(s,m,x,p);return "totalHeight"in b&&(s.kind==="table"&&s.floating||(p+=b.totalHeight)),b})}function he(e,t,n){let o=[];for(let r=0;r<e.length;r++){let i=e[r];switch(i.kind){case "paragraph":fe(i,r,t,o);break;case "table":de(i,r,t,n,o);break;case "textBox":me(i,r,t,o);break}}return o}function N(e,t,n,o,r,i){let h=0,l=0,f=e?.horizontal;if(f?.align==="left")h=n+r;else if(f?.align==="right")l=n+o;else if(f?.posOffset!==void 0){let d=chunk4Q2IP5FW_js.e(f.posOffset);d<i/2?h=d+n+r:l=i-d+o;}else t==="left"?h=n+r:t==="right"&&(l=n+o);return chunkXBIKSAH6_js.u(h,l,i)}function U(e){let t=e?.vertical?.relativeTo;return t==="margin"||t==="page"}function fe(e,t,n,o){for(let r of e.runs){if(r.kind!=="image")continue;let i=r;if(!Y(i))continue;let h=i.distTop??0,l=i.distBottom??0,f=i.distLeft??12,d=i.distRight??12,g=0,c=i.position?.vertical;c?.align==="top"&&c.relativeTo==="margin"?g=0:c?.posOffset!==void 0&&(g=chunk4Q2IP5FW_js.e(c.posOffset));let p=g+i.height,{leftMargin:a,rightMargin:s}=N(i.position,i.cssFloat,i.width,f,d,n);(a>0||s>0)&&o.push({leftMargin:a,rightMargin:s,topY:g-h,bottomY:p+l,anchorBlockIndex:t,isMarginRelative:U(i.position)});}}function de(e,t,n,o,r){let i=e.floating;if(!i)return;let h=D(e,n,o),l=h.totalWidth,f=h.totalHeight,d=i.leftFromText??12,g=i.rightFromText??12,c=i.topFromText??0,p=i.bottomFromText??0,a=0;i.tblpX!==void 0?a=i.tblpX:i.tblpXSpec?i.tblpXSpec==="left"||i.tblpXSpec==="inside"?a=0:i.tblpXSpec==="right"||i.tblpXSpec==="outside"?a=n-l:i.tblpXSpec==="center"&&(a=(n-l)/2):e.justification==="center"?a=(n-l)/2:e.justification==="right"&&(a=n-l);let s=0,u=0;a<n/2?s=a+l+g:u=n-a+d,{leftMargin:s,rightMargin:u}=chunkXBIKSAH6_js.u(s,u,n);let x=i.tblpY??0,m=x+f;r.push({leftMargin:s,rightMargin:u,topY:x-c,bottomY:m+p,anchorBlockIndex:t});}function me(e,t,n,o){if(!chunkXBIKSAH6_js.E(e)||chunkJFZIXFRC_js.b(e.wrapType)||e.wrapType==="topAndBottom")return;let r=e.width??0,i=e.height??0;if(r<=0||i<=0)return;let h=e.distTop??0,l=e.distBottom??0,f=e.distLeft??12,d=e.distRight??12,g=0;e.position?.vertical?.posOffset!==void 0&&(g=chunk4Q2IP5FW_js.e(e.position.vertical.posOffset));let c=g+i,{leftMargin:p,rightMargin:a}=N(e.position,e.cssFloat,r,f,d,n);p<=0&&a<=0||o.push({leftMargin:p,rightMargin:a,topY:g-h,bottomY:c+l,anchorBlockIndex:t,isMarginRelative:U(e.position)});}function xe(e,t){let n=[];for(let o of e){let r=n.find(i=>i.some(h=>Math.abs(h.anchorBlockIndex-o.anchorBlockIndex)<=t&&o.topY<h.bottomY&&o.bottomY>h.topY));r?r.push(o):n.push([o]);}return n}function O(e,t){for(let n of e){let o=Math.min(...n.map(r=>r.anchorBlockIndex));for(let r of n)t.push({...r,anchorBlockIndex:o});}}var K=2e4,y=new Map;function j(e,t,n){return `${e}|${t}|${n||0}`}function G(){for(;y.size>K;){let e=y.keys().next().value;if(e===void 0)break;y.delete(e);}}function be(e,t,n=0){let o=j(e,t,n),r=y.get(o);if(r!==void 0)return y.delete(o),y.set(o,r),r.width}function Te(e,t,n,o){let r=j(e,t,n);y.set(r,{width:o}),G();}function V(){y.clear();}function Fe(e){!Number.isFinite(e)||e<=0||(K=e,G());}function q(){return y.size}var ye=1e3,J=ye,M=new Map;function Q(e,t,n=false,o=false){return `${e}|${t}|${n}|${o}`}function ee(){for(;M.size>J;){let e=M.keys().next().value;if(e===void 0)break;M.delete(e);}}function Me(e,t,n=false,o=false){let r=Q(e,t,n,o),i=M.get(r);if(i!==void 0)return M.delete(r),M.set(r,i),i}function we(e,t,n,o,r){let i=Q(e,t,n,o);M.set(i,r),ee();}function te(){M.clear();}function Ce(e){!Number.isFinite(e)||e<=0||(J=e,ee());}function ne(){return M.size}var Pe=5e3,oe=Pe,w=new Map;function I(e){let t=[];for(let o of e.runs)o.kind==="text"?t.push(`t:${o.text}|${o.fontFamily}|${o.fontSize}|${o.bold}|${o.italic}`):o.kind==="tab"?t.push(`tab:${o.width}`):o.kind==="image"?t.push(`img:${o.width}x${o.height}`):o.kind==="lineBreak"&&t.push("br");let n=e.attrs;if(n){n.alignment&&t.push(`align:${n.alignment}`),n.indent&&t.push(`indent:${n.indent.left}|${n.indent.right}|${n.indent.firstLine}|${n.indent.hanging}`),n.spacing&&t.push(`spacing:${n.spacing.before}|${n.spacing.after}|${n.spacing.line}|${n.spacing.lineRule}`),n.defaultFontSize!=null&&t.push(`dfs:${n.defaultFontSize}`),n.defaultFontFamily!=null&&t.push(`dff:${n.defaultFontFamily}`);let o=n.borders;if(o){let r=i=>i?`${i.width??""},${i.style??""},${i.color??""}`:"";t.push(`bdr:${r(o.top)}|${r(o.bottom)}|${r(o.left)}|${r(o.right)}`);}n.suppressEmptyParagraphHeight&&t.push("sup");}return t.join("||")}function re(){for(;w.size>oe;){let e=w.keys().next().value;if(e===void 0)break;w.delete(e);}}function ke(e,t){let n=I(e),o=w.get(n);if(o!==void 0&&o.maxWidth===t)return w.delete(n),w.set(n,o),o.measure}function Se(e,t,n){let o=I(e);w.set(o,{measure:n,maxWidth:t}),re();}function ie(){w.clear();}function ve(e){!Number.isFinite(e)||e<=0||(oe=e,re());}function ae(){return w.size}function Ae(){V(),te(),ie();}function Ie(){return q()+ne()+ae()}exports.A=ae;exports.B=Ae;exports.C=Ie;exports.a=A;exports.b=H;exports.c=_;exports.d=We;exports.e=Re;exports.f=Ze;exports.g=Y;exports.h=Ee;exports.i=le;exports.j=D;exports.k=ge;exports.l=be;exports.m=Te;exports.n=V;exports.o=Fe;exports.p=q;exports.q=Me;exports.r=we;exports.s=te;exports.t=Ce;exports.u=ne;exports.v=I;exports.w=ke;exports.x=Se;exports.y=ie;exports.z=ve;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkYCDB5TA6_js=require('./chunk-YCDB5TA6.js'),chunkIN6IYQ2X_js=require('./chunk-IN6IYQ2X.js'),chunkKBU6QQFU_js=require('./chunk-KBU6QQFU.js'),chunkMZOVDLYL_js=require('./chunk-MZOVDLYL.js'),chunkD536HC5M_js=require('./chunk-D536HC5M.js'),chunkTMISJEGL_js=require('./chunk-TMISJEGL.js'),Ve=require('jszip');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var Ve__default=/*#__PURE__*/_interopDefault(Ve);async function G(e){let n=await Ve__default.default.loadAsync(e),t={documentXml:null,stylesXml:null,themeXml:null,numberingXml:null,fontTableXml:null,settingsXml:null,webSettingsXml:null,headers:new Map,footers:new Map,footnotesXml:null,endnotesXml:null,commentsXml:null,commentsExtensibleXml:null,commentsExtendedXml:null,documentRels:null,packageRels:null,contentTypesXml:null,corePropsXml:null,appPropsXml:null,customPropsXml:null,media:new Map,fonts:new Map,allXml:new Map,originalZip:n,originalBuffer:e};for(let[o,s]of Object.entries(n.files)){if(s.dir)continue;let r=o.toLowerCase();if(r.endsWith(".xml")||r.endsWith(".rels")){let a=await s.async("text");if(t.allXml.set(o,a),r==="word/document.xml")t.documentXml=a;else if(r==="word/styles.xml")t.stylesXml=a;else if(r==="word/theme/theme1.xml")t.themeXml=a;else if(r==="word/numbering.xml")t.numberingXml=a;else if(r==="word/fonttable.xml")t.fontTableXml=a;else if(r==="word/settings.xml")t.settingsXml=a;else if(r==="word/websettings.xml")t.webSettingsXml=a;else if(r==="word/footnotes.xml")t.footnotesXml=a;else if(r==="word/endnotes.xml")t.endnotesXml=a;else if(r==="word/comments.xml")t.commentsXml=a;else if(r==="word/commentsextensible.xml")t.commentsExtensibleXml=a;else if(r==="word/commentsextended.xml")t.commentsExtendedXml=a;else if(r==="word/_rels/document.xml.rels")t.documentRels=a;else if(r==="_rels/.rels")t.packageRels=a;else if(r==="[content_types].xml")t.contentTypesXml=a;else if(r==="docprops/core.xml")t.corePropsXml=a;else if(r==="docprops/app.xml")t.appPropsXml=a;else if(r==="docprops/custom.xml")t.customPropsXml=a;else if(r.match(/^word\/header\d+\.xml$/)){let c=o.split("/").pop()||o;t.headers.set(c,a);}else if(r.match(/^word\/footer\d+\.xml$/)){let c=o.split("/").pop()||o;t.footers.set(c,a);}}else if(r.startsWith("word/media/")){let a=await s.async("arraybuffer");t.media.set(o,a);}else if(r.startsWith("word/fonts/")){let a=await s.async("arraybuffer");t.fonts.set(o,a);}}return t}function Ce(e){switch(e.toLowerCase().split(".").pop()){case "png":return "image/png";case "jpg":case "jpeg":return "image/jpeg";case "gif":return "image/gif";case "bmp":return "image/bmp";case "tif":case "tiff":return "image/tiff";case "wmf":return "image/x-wmf";case "emf":return "image/x-emf";case "svg":return "image/svg+xml";case "webp":return "image/webp";default:return "application/octet-stream"}}function Y(e,n,t,o){let s={};return e&&e!=="auto"?s.rgb=e:e==="auto"&&(s.auto=true),n&&(s.themeColor=n),t&&(s.themeTint=t),o&&(s.themeShade=o),s}function $(e){if(!e)return;let n={},t=chunkTMISJEGL_js.j(e,"w","color");t&&t!=="auto"&&(n.color={rgb:t});let o=chunkTMISJEGL_js.j(e,"w","fill");o&&o!=="auto"&&(n.fill={rgb:o});let s=chunkTMISJEGL_js.j(e,"w","themeFill");s&&(n.fill=n.fill||{},n.fill.themeColor=s);let r=chunkTMISJEGL_js.j(e,"w","themeFillTint");r&&n.fill&&(n.fill.themeTint=r);let a=chunkTMISJEGL_js.j(e,"w","themeFillShade");a&&n.fill&&(n.fill.themeShade=a);let c=chunkTMISJEGL_js.j(e,"w","val");return c&&(n.pattern=c),Object.keys(n).length>0?n:void 0}function Z(e,n){if(!e)return;let t={},o=chunkTMISJEGL_js.e(e,"w","b");o&&(t.bold=chunkTMISJEGL_js.m(o));let s=chunkTMISJEGL_js.e(e,"w","bCs");s&&(t.boldCs=chunkTMISJEGL_js.m(s));let r=chunkTMISJEGL_js.e(e,"w","i");r&&(t.italic=chunkTMISJEGL_js.m(r));let a=chunkTMISJEGL_js.e(e,"w","iCs");a&&(t.italicCs=chunkTMISJEGL_js.m(a));let c=chunkTMISJEGL_js.e(e,"w","u");if(c){let g=chunkTMISJEGL_js.j(c,"w","val");if(g){t.underline={style:g};let k=chunkTMISJEGL_js.j(c,"w","color"),j=chunkTMISJEGL_js.j(c,"w","themeColor");(k||j)&&(t.underline.color=Y(k,j,chunkTMISJEGL_js.j(c,"w","themeTint"),chunkTMISJEGL_js.j(c,"w","themeShade")));}}let d=chunkTMISJEGL_js.e(e,"w","strike");d&&(t.strike=chunkTMISJEGL_js.m(d));let u=chunkTMISJEGL_js.e(e,"w","dstrike");u&&(t.doubleStrike=chunkTMISJEGL_js.m(u));let m=chunkTMISJEGL_js.e(e,"w","vertAlign");if(m){let g=chunkTMISJEGL_js.j(m,"w","val");(g==="superscript"||g==="subscript"||g==="baseline")&&(t.vertAlign=g);}let h=chunkTMISJEGL_js.e(e,"w","smallCaps");h&&(t.smallCaps=chunkTMISJEGL_js.m(h));let p=chunkTMISJEGL_js.e(e,"w","caps");p&&(t.allCaps=chunkTMISJEGL_js.m(p));let x=chunkTMISJEGL_js.e(e,"w","vanish");x&&(t.hidden=chunkTMISJEGL_js.m(x));let f=chunkTMISJEGL_js.e(e,"w","color");f&&(t.color=Y(chunkTMISJEGL_js.j(f,"w","val"),chunkTMISJEGL_js.j(f,"w","themeColor"),chunkTMISJEGL_js.j(f,"w","themeTint"),chunkTMISJEGL_js.j(f,"w","themeShade")));let b=chunkTMISJEGL_js.e(e,"w","highlight");if(b){let g=chunkTMISJEGL_js.j(b,"w","val");g&&(t.highlight=g);}let T=chunkTMISJEGL_js.e(e,"w","shd");T&&(t.shading=$(T));let M=chunkTMISJEGL_js.e(e,"w","sz");if(M){let g=chunkTMISJEGL_js.l(M,"w","val");g!==void 0&&(t.fontSize=g);}let X=chunkTMISJEGL_js.e(e,"w","szCs");if(X){let g=chunkTMISJEGL_js.l(X,"w","val");g!==void 0&&(t.fontSizeCs=g);}let P=chunkTMISJEGL_js.e(e,"w","rFonts");if(P){t.fontFamily={ascii:chunkTMISJEGL_js.j(P,"w","ascii")??void 0,hAnsi:chunkTMISJEGL_js.j(P,"w","hAnsi")??void 0,eastAsia:chunkTMISJEGL_js.j(P,"w","eastAsia")??void 0,cs:chunkTMISJEGL_js.j(P,"w","cs")??void 0};let g=chunkTMISJEGL_js.j(P,"w","asciiTheme");g&&(t.fontFamily.asciiTheme=g,n&&!t.fontFamily.ascii&&(t.fontFamily.ascii=chunkYCDB5TA6_js.b(n,g)));let k=chunkTMISJEGL_js.j(P,"w","hAnsiTheme");k&&(t.fontFamily.hAnsiTheme=k,n&&!t.fontFamily.hAnsi&&(t.fontFamily.hAnsi=chunkYCDB5TA6_js.b(n,k)));let j=chunkTMISJEGL_js.j(P,"w","eastAsiaTheme");j&&(t.fontFamily.eastAsiaTheme=j,n&&!t.fontFamily.eastAsia&&(t.fontFamily.eastAsia=chunkYCDB5TA6_js.b(n,j)));let B=chunkTMISJEGL_js.j(P,"w","cstheme");B&&(t.fontFamily.csTheme=B,n&&!t.fontFamily.cs&&(t.fontFamily.cs=chunkYCDB5TA6_js.b(n,B)));}let F=chunkTMISJEGL_js.e(e,"w","spacing");if(F){let g=chunkTMISJEGL_js.l(F,"w","val");g!==void 0&&(t.spacing=g);}let y=chunkTMISJEGL_js.e(e,"w","position");if(y){let g=chunkTMISJEGL_js.l(y,"w","val");g!==void 0&&(t.position=g);}let S=chunkTMISJEGL_js.e(e,"w","w");if(S){let g=chunkTMISJEGL_js.l(S,"w","val");g!==void 0&&(t.scale=g);}let C=chunkTMISJEGL_js.e(e,"w","kern");if(C){let g=chunkTMISJEGL_js.l(C,"w","val");g!==void 0&&(t.kerning=g);}let D=chunkTMISJEGL_js.e(e,"w","effect");if(D){let g=chunkTMISJEGL_js.j(D,"w","val");g&&(t.effect=g);}let I=chunkTMISJEGL_js.e(e,"w","em");if(I){let g=chunkTMISJEGL_js.j(I,"w","val");g&&(t.emphasisMark=g);}let N=chunkTMISJEGL_js.e(e,"w","emboss");N&&(t.emboss=chunkTMISJEGL_js.m(N));let L=chunkTMISJEGL_js.e(e,"w","imprint");L&&(t.imprint=chunkTMISJEGL_js.m(L));let O=chunkTMISJEGL_js.e(e,"w","outline");O&&(t.outline=chunkTMISJEGL_js.m(O));let W=chunkTMISJEGL_js.e(e,"w","shadow");W&&(t.shadow=chunkTMISJEGL_js.m(W));let H=chunkTMISJEGL_js.e(e,"w","rtl");H&&(t.rtl=chunkTMISJEGL_js.m(H));let R=chunkTMISJEGL_js.e(e,"w","cs");R&&(t.cs=chunkTMISJEGL_js.m(R));let A=chunkTMISJEGL_js.e(e,"w","rStyle");if(A){let g=chunkTMISJEGL_js.j(A,"w","val");g&&(t.styleId=g);}return Object.keys(t).length>0?t:void 0}function E(e){if(!e)return;let n=chunkTMISJEGL_js.j(e,"w","val");if(!n)return;let t={style:n},o=chunkTMISJEGL_js.j(e,"w","color"),s=chunkTMISJEGL_js.j(e,"w","themeColor");(o||s)&&(t.color=Y(o,s,chunkTMISJEGL_js.j(e,"w","themeTint"),chunkTMISJEGL_js.j(e,"w","themeShade")));let r=chunkTMISJEGL_js.l(e,"w","sz");r!==void 0&&(t.size=r);let a=chunkTMISJEGL_js.l(e,"w","space");a!==void 0&&(t.space=a);let c=chunkTMISJEGL_js.j(e,"w","shadow");c&&(t.shadow=c==="1"||c==="true");let d=chunkTMISJEGL_js.j(e,"w","frame");return d&&(t.frame=d==="1"||d==="true"),t}function je(e){if(!e)return;let n=chunkTMISJEGL_js.f(e,"w","tab");if(n.length===0)return;let t=[];for(let o of n){let s=chunkTMISJEGL_js.l(o,"w","pos"),r=chunkTMISJEGL_js.j(o,"w","val");if(s!==void 0&&r){let a={position:s,alignment:r},c=chunkTMISJEGL_js.j(o,"w","leader");c&&(a.leader=c),t.push(a);}}return t.length>0?t:void 0}function K(e,n){if(!e)return;let t={},o=chunkTMISJEGL_js.e(e,"w","jc");if(o){let y=chunkTMISJEGL_js.j(o,"w","val");y&&(t.alignment=y);}let s=chunkTMISJEGL_js.e(e,"w","bidi");s&&(t.bidi=chunkTMISJEGL_js.m(s));let r=chunkTMISJEGL_js.e(e,"w","spacing");if(r){let y=chunkTMISJEGL_js.l(r,"w","before");y!==void 0&&(t.spaceBefore=y);let S=chunkTMISJEGL_js.l(r,"w","after");S!==void 0&&(t.spaceAfter=S);let C=chunkTMISJEGL_js.l(r,"w","line");C!==void 0&&(t.lineSpacing=C);let D=chunkTMISJEGL_js.j(r,"w","lineRule");D&&(t.lineSpacingRule=D);let I=chunkTMISJEGL_js.j(r,"w","beforeAutospacing");I&&(t.beforeAutospacing=I==="1"||I==="true");let N=chunkTMISJEGL_js.j(r,"w","afterAutospacing");N&&(t.afterAutospacing=N==="1"||N==="true");}let a=chunkTMISJEGL_js.e(e,"w","ind");if(a){let y=chunkTMISJEGL_js.l(a,"w","left");y!==void 0&&(t.indentLeft=y);let S=chunkTMISJEGL_js.l(a,"w","right");S!==void 0&&(t.indentRight=S);let C=chunkTMISJEGL_js.l(a,"w","firstLine");C!==void 0&&(t.indentFirstLine=C);let D=chunkTMISJEGL_js.l(a,"w","hanging");D!==void 0&&(t.indentFirstLine=-D,t.hangingIndent=true);}let c=chunkTMISJEGL_js.e(e,"w","pBdr");if(c){let y={},S=E(chunkTMISJEGL_js.e(c,"w","top"));S&&(y.top=S);let C=E(chunkTMISJEGL_js.e(c,"w","bottom"));C&&(y.bottom=C);let D=E(chunkTMISJEGL_js.e(c,"w","left"));D&&(y.left=D);let I=E(chunkTMISJEGL_js.e(c,"w","right"));I&&(y.right=I);let N=E(chunkTMISJEGL_js.e(c,"w","between"));N&&(y.between=N);let L=E(chunkTMISJEGL_js.e(c,"w","bar"));L&&(y.bar=L),Object.keys(y).length>0&&(t.borders=y);}let d=chunkTMISJEGL_js.e(e,"w","shd");d&&(t.shading=$(d));let u=chunkTMISJEGL_js.e(e,"w","tabs");u&&(t.tabs=je(u));let m=chunkTMISJEGL_js.e(e,"w","keepNext");m&&(t.keepNext=chunkTMISJEGL_js.m(m));let h=chunkTMISJEGL_js.e(e,"w","keepLines");h&&(t.keepLines=chunkTMISJEGL_js.m(h));let p=chunkTMISJEGL_js.e(e,"w","widowControl");p&&(t.widowControl=chunkTMISJEGL_js.m(p));let x=chunkTMISJEGL_js.e(e,"w","pageBreakBefore");x&&(t.pageBreakBefore=chunkTMISJEGL_js.m(x));let f=chunkTMISJEGL_js.e(e,"w","contextualSpacing");f&&(t.contextualSpacing=chunkTMISJEGL_js.m(f));let b=chunkTMISJEGL_js.e(e,"w","numPr");if(b){let y=chunkTMISJEGL_js.e(b,"w","numId"),S=chunkTMISJEGL_js.e(b,"w","ilvl");if(y||S){if(t.numPr={},y){let C=chunkTMISJEGL_js.l(y,"w","val");C!==void 0&&(t.numPr.numId=C);}if(S){let C=chunkTMISJEGL_js.l(S,"w","val");C!==void 0&&(t.numPr.ilvl=C);}}}let T=chunkTMISJEGL_js.e(e,"w","outlineLvl");if(T){let y=chunkTMISJEGL_js.l(T,"w","val");y!==void 0&&(t.outlineLevel=y);}let M=chunkTMISJEGL_js.e(e,"w","pStyle");if(M){let y=chunkTMISJEGL_js.j(M,"w","val");y&&(t.styleId=y);}let X=chunkTMISJEGL_js.e(e,"w","suppressLineNumbers");X&&(t.suppressLineNumbers=chunkTMISJEGL_js.m(X));let P=chunkTMISJEGL_js.e(e,"w","suppressAutoHyphens");P&&(t.suppressAutoHyphens=chunkTMISJEGL_js.m(P));let F=chunkTMISJEGL_js.e(e,"w","rPr");return F&&(t.runProperties=Z(F,n)),Object.keys(t).length>0?t:void 0}function U(e){if(!e)return;let n=chunkTMISJEGL_js.l(e,"w","w"),t=chunkTMISJEGL_js.j(e,"w","type");if(n!==void 0&&t)return {value:n,type:t}}function Pe(e){if(!e)return;let n={},t=E(chunkTMISJEGL_js.e(e,"w","top"));t&&(n.top=t);let o=E(chunkTMISJEGL_js.e(e,"w","bottom"));o&&(n.bottom=o);let s=E(chunkTMISJEGL_js.e(e,"w","left"));s&&(n.left=s);let r=E(chunkTMISJEGL_js.e(e,"w","right"));r&&(n.right=r);let a=E(chunkTMISJEGL_js.e(e,"w","insideH"));a&&(n.insideH=a);let c=E(chunkTMISJEGL_js.e(e,"w","insideV"));return c&&(n.insideV=c),Object.keys(n).length>0?n:void 0}function Fe(e){if(!e)return;let n={},t=U(chunkTMISJEGL_js.e(e,"w","top"));t&&(n.top=t);let o=U(chunkTMISJEGL_js.e(e,"w","bottom"));o&&(n.bottom=o);let s=U(chunkTMISJEGL_js.e(e,"w","left"));s&&(n.left=s);let r=U(chunkTMISJEGL_js.e(e,"w","right"));return r&&(n.right=r),Object.keys(n).length>0?n:void 0}function Oe(e){if(!e)return;let n={},t=chunkTMISJEGL_js.j(e,"w","val");if(t){let u=parseInt(t,16);isNaN(u)||(n.firstRow=(u&32)!==0,n.lastRow=(u&64)!==0,n.firstColumn=(u&128)!==0,n.lastColumn=(u&256)!==0,n.noHBand=(u&512)!==0,n.noVBand=(u&1024)!==0);}let o=chunkTMISJEGL_js.j(e,"w","firstColumn");o&&(n.firstColumn=o==="1");let s=chunkTMISJEGL_js.j(e,"w","firstRow");s&&(n.firstRow=s==="1");let r=chunkTMISJEGL_js.j(e,"w","lastColumn");r&&(n.lastColumn=r==="1");let a=chunkTMISJEGL_js.j(e,"w","lastRow");a&&(n.lastRow=a==="1");let c=chunkTMISJEGL_js.j(e,"w","noHBand");c&&(n.noHBand=c==="1");let d=chunkTMISJEGL_js.j(e,"w","noVBand");return d&&(n.noVBand=d==="1"),Object.keys(n).length>0?n:void 0}function se(e,n){if(!e)return;let t={},o=chunkTMISJEGL_js.e(e,"w","tblW");o&&(t.width=U(o));let s=chunkTMISJEGL_js.e(e,"w","jc");if(s){let f=chunkTMISJEGL_js.j(s,"w","val");(f==="left"||f==="center"||f==="right")&&(t.justification=f);}let r=chunkTMISJEGL_js.e(e,"w","tblCellSpacing");r&&(t.cellSpacing=U(r));let a=chunkTMISJEGL_js.e(e,"w","tblInd");a&&(t.indent=U(a));let c=chunkTMISJEGL_js.e(e,"w","tblBorders");c&&(t.borders=Pe(c));let d=chunkTMISJEGL_js.e(e,"w","tblCellMar");d&&(t.cellMargins=Fe(d));let u=chunkTMISJEGL_js.e(e,"w","tblLayout");if(u){let f=chunkTMISJEGL_js.j(u,"w","type");(f==="fixed"||f==="autofit")&&(t.layout=f);}let m=chunkTMISJEGL_js.e(e,"w","tblStyle");if(m){let f=chunkTMISJEGL_js.j(m,"w","val");f&&(t.styleId=f);}let h=chunkTMISJEGL_js.e(e,"w","tblLook");h&&(t.look=Oe(h));let p=chunkTMISJEGL_js.e(e,"w","shd");p&&(t.shading=$(p));let x=chunkTMISJEGL_js.e(e,"w","bidiVisual");return x&&(t.bidi=chunkTMISJEGL_js.m(x)),Object.keys(t).length>0?t:void 0}function ae(e){if(!e)return;let n={},t=chunkTMISJEGL_js.e(e,"w","trHeight");if(t){n.height=U(t);let c=chunkTMISJEGL_js.j(t,"w","hRule");c&&(n.heightRule=c);}let o=chunkTMISJEGL_js.e(e,"w","tblHeader");o&&(n.header=chunkTMISJEGL_js.m(o));let s=chunkTMISJEGL_js.e(e,"w","cantSplit");s&&(n.cantSplit=chunkTMISJEGL_js.m(s));let r=chunkTMISJEGL_js.e(e,"w","jc");if(r){let c=chunkTMISJEGL_js.j(r,"w","val");(c==="left"||c==="center"||c==="right")&&(n.justification=c);}let a=chunkTMISJEGL_js.e(e,"w","hidden");return a&&(n.hidden=chunkTMISJEGL_js.m(a)),Object.keys(n).length>0?n:void 0}function le(e,n){if(!e)return;let t={},o=chunkTMISJEGL_js.e(e,"w","tcW");o&&(t.width=U(o));let s=chunkTMISJEGL_js.e(e,"w","tcBorders");s&&(t.borders=Pe(s));let r=chunkTMISJEGL_js.e(e,"w","tcMar");r&&(t.margins=Fe(r));let a=chunkTMISJEGL_js.e(e,"w","shd");a&&(t.shading=$(a));let c=chunkTMISJEGL_js.e(e,"w","vAlign");if(c){let f=chunkTMISJEGL_js.j(c,"w","val");(f==="top"||f==="center"||f==="bottom")&&(t.verticalAlign=f);}let d=chunkTMISJEGL_js.e(e,"w","textDirection");if(d){let f=chunkTMISJEGL_js.j(d,"w","val");f&&(t.textDirection=f);}let u=chunkTMISJEGL_js.e(e,"w","gridSpan");if(u){let f=chunkTMISJEGL_js.l(u,"w","val");f!==void 0&&(t.gridSpan=f);}let m=chunkTMISJEGL_js.e(e,"w","vMerge");if(m){let f=chunkTMISJEGL_js.j(m,"w","val");t.vMerge=f==="restart"?"restart":"continue";}let h=chunkTMISJEGL_js.e(e,"w","tcFitText");h&&(t.fitText=chunkTMISJEGL_js.m(h));let p=chunkTMISJEGL_js.e(e,"w","noWrap");p&&(t.noWrap=chunkTMISJEGL_js.m(p));let x=chunkTMISJEGL_js.e(e,"w","hideMark");return x&&(t.hideMark=chunkTMISJEGL_js.m(x)),Object.keys(t).length>0?t:void 0}function He(e,n){let t={styleId:chunkTMISJEGL_js.j(e,"w","styleId")??"",type:chunkTMISJEGL_js.j(e,"w","type")??"paragraph"},o=chunkTMISJEGL_js.j(e,"w","default");o&&(t.default=o==="1"||o==="true");let s=chunkTMISJEGL_js.e(e,"w","name");s&&(t.name=chunkTMISJEGL_js.j(s,"w","val")??void 0);let r=chunkTMISJEGL_js.e(e,"w","basedOn");r&&(t.basedOn=chunkTMISJEGL_js.j(r,"w","val")??void 0);let a=chunkTMISJEGL_js.e(e,"w","next");a&&(t.next=chunkTMISJEGL_js.j(a,"w","val")??void 0);let c=chunkTMISJEGL_js.e(e,"w","link");c&&(t.link=chunkTMISJEGL_js.j(c,"w","val")??void 0);let d=chunkTMISJEGL_js.e(e,"w","uiPriority");if(d){let F=chunkTMISJEGL_js.l(d,"w","val");F!==void 0&&(t.uiPriority=F);}let u=chunkTMISJEGL_js.e(e,"w","hidden");u&&(t.hidden=chunkTMISJEGL_js.m(u));let m=chunkTMISJEGL_js.e(e,"w","semiHidden");m&&(t.semiHidden=chunkTMISJEGL_js.m(m));let h=chunkTMISJEGL_js.e(e,"w","unhideWhenUsed");h&&(t.unhideWhenUsed=chunkTMISJEGL_js.m(h));let p=chunkTMISJEGL_js.e(e,"w","qFormat");p&&(t.qFormat=chunkTMISJEGL_js.m(p));let x=chunkTMISJEGL_js.e(e,"w","personal");x&&(t.personal=chunkTMISJEGL_js.m(x));let f=chunkTMISJEGL_js.e(e,"w","pPr");f&&(t.pPr=K(f,n));let b=chunkTMISJEGL_js.e(e,"w","rPr");b&&(t.rPr=Z(b,n));let T=chunkTMISJEGL_js.e(e,"w","tblPr");T&&(t.tblPr=se(T));let M=chunkTMISJEGL_js.e(e,"w","trPr");M&&(t.trPr=ae(M));let X=chunkTMISJEGL_js.e(e,"w","tcPr");X&&(t.tcPr=le(X));let P=chunkTMISJEGL_js.f(e,"w","tblStylePr");if(P.length>0){t.tblStylePr=[];for(let F of P){let y=chunkTMISJEGL_js.j(F,"w","type");if(y){let S={type:y},C=chunkTMISJEGL_js.e(F,"w","pPr");C&&(S.pPr=K(C,n));let D=chunkTMISJEGL_js.e(F,"w","rPr");D&&(S.rPr=Z(D,n));let I=chunkTMISJEGL_js.e(F,"w","tblPr");I&&(S.tblPr=se(I));let N=chunkTMISJEGL_js.e(F,"w","trPr");N&&(S.trPr=ae(N));let L=chunkTMISJEGL_js.e(F,"w","tcPr");L&&(S.tcPr=le(L)),t.tblStylePr.push(S);}}}return t}function Ue(e,n){if(!e)return;let t={},o=chunkTMISJEGL_js.e(e,"w","rPrDefault");if(o){let r=chunkTMISJEGL_js.e(o,"w","rPr");r&&(t.rPr=Z(r,n));}let s=chunkTMISJEGL_js.e(e,"w","pPrDefault");if(s){let r=chunkTMISJEGL_js.e(s,"w","pPr");r&&(t.pPr=K(r,n));}return t.rPr||t.pPr?t:void 0}function We(e,n){if(!n)return e;if(!e)return n?{...n}:void 0;let t={...e};for(let o of Object.keys(n)){let s=n[o];if(s!==void 0)if(o==="runProperties")t.runProperties=chunkMZOVDLYL_js.a(t.runProperties,n.runProperties);else if(o==="borders"||o==="numPr"||o==="frame"){let r=t[o],a=s;t[o]={...r||{},...a||{}};}else o==="tabs"&&Array.isArray(s)?t.tabs=[...s]:t[o]=s;}return t}function Ne(e,n,t,o=new Set){if(o.has(e.styleId)||(o.add(e.styleId),!e.basedOn))return e;let s=n.get(e.basedOn);if(!s)return e;let r=Ne(s,n,t,o),a={...e,pPr:We(r.pPr,e.pPr),rPr:chunkMZOVDLYL_js.a(r.rPr,e.rPr)};return e.type==="table"&&((r.tblPr||e.tblPr)&&(a.tblPr={...r.tblPr||{},...e.tblPr||{}}),(r.trPr||e.trPr)&&(a.trPr={...r.trPr||{},...e.trPr||{}}),(r.tcPr||e.tcPr)&&(a.tcPr={...r.tcPr||{},...e.tcPr||{}})),a}function ce(e,n){let t=new Map;try{let o=chunkTMISJEGL_js.c(e);if(!o)return t;let s=chunkTMISJEGL_js.f(o,"w","style");for(let r of s){let a=He(r,n);a.styleId&&t.set(a.styleId,a);}for(let[r,a]of t){let c=Ne(a,t,n);t.set(r,c);}}catch(o){console.warn("Failed to parse styles:",o);}return t}function Me(e,n){let t={styles:[]};try{let o=chunkTMISJEGL_js.c(e);if(!o)return t;let s=chunkTMISJEGL_js.e(o,"w","docDefaults");t.docDefaults=Ue(s,n);let r=chunkTMISJEGL_js.e(o,"w","latentStyles");r&&(t.latentStyles={defLockedState:chunkTMISJEGL_js.j(r,"w","defLockedState")==="1",defUIPriority:chunkTMISJEGL_js.l(r,"w","defUIPriority"),defSemiHidden:chunkTMISJEGL_js.j(r,"w","defSemiHidden")==="1",defUnhideWhenUsed:chunkTMISJEGL_js.j(r,"w","defUnhideWhenUsed")==="1",defQFormat:chunkTMISJEGL_js.j(r,"w","defQFormat")==="1",count:chunkTMISJEGL_js.l(r,"w","count")});let a=ce(e,n);t.styles=Array.from(a.values());}catch(o){console.warn("Failed to parse style definitions:",o);}return t}function Ie(e){let n={abstractNums:[],nums:[]};if(!e)return fe(n);let t=chunkTMISJEGL_js.c(e);if(!t)return fe(n);let o=chunkTMISJEGL_js.f(t,"w","abstractNum");for(let r of o){let a=ze(r);a&&n.abstractNums.push(a);}let s=chunkTMISJEGL_js.f(t,"w","num");for(let r of s){let a=$e(r);a&&n.nums.push(a);}return fe(n)}function ze(e){let n=chunkTMISJEGL_js.j(e,"w","abstractNumId");if(n===null)return null;let t=parseInt(n,10);if(isNaN(t))return null;let o={abstractNumId:t,levels:[]},s=chunkTMISJEGL_js.e(e,"w","multiLevelType");if(s){let u=chunkTMISJEGL_js.j(s,"w","val");(u==="hybridMultilevel"||u==="multilevel"||u==="singleLevel")&&(o.multiLevelType=u);}let r=chunkTMISJEGL_js.e(e,"w","name");r&&(o.name=chunkTMISJEGL_js.j(r,"w","val")??void 0);let a=chunkTMISJEGL_js.e(e,"w","numStyleLink");a&&(o.numStyleLink=chunkTMISJEGL_js.j(a,"w","val")??void 0);let c=chunkTMISJEGL_js.e(e,"w","styleLink");c&&(o.styleLink=chunkTMISJEGL_js.j(c,"w","val")??void 0);let d=chunkTMISJEGL_js.f(e,"w","lvl");for(let u of d){let m=Ae(u);m&&o.levels.push(m);}return o.levels.sort((u,m)=>u.ilvl-m.ilvl),o}function $e(e){let n=chunkTMISJEGL_js.j(e,"w","numId");if(n===null)return null;let t=parseInt(n,10);if(isNaN(t))return null;let o=chunkTMISJEGL_js.e(e,"w","abstractNumId");if(!o)return null;let s=chunkTMISJEGL_js.j(o,"w","val");if(s===null)return null;let r=parseInt(s,10);if(isNaN(r))return null;let a={numId:t,abstractNumId:r},c=chunkTMISJEGL_js.f(e,"w","lvlOverride");if(c.length>0){a.levelOverrides=[];for(let d of c){let u=chunkTMISJEGL_js.j(d,"w","ilvl");if(u===null)continue;let m=parseInt(u,10);if(isNaN(m))continue;let h={ilvl:m},p=chunkTMISJEGL_js.e(d,"w","startOverride");if(p){let f=chunkTMISJEGL_js.j(p,"w","val");if(f!==null){let b=parseInt(f,10);isNaN(b)||(h.startOverride=b);}}let x=chunkTMISJEGL_js.e(d,"w","lvl");x&&(h.lvl=Ae(x)??void 0),a.levelOverrides.push(h);}}return a}function Ae(e){let n=chunkTMISJEGL_js.j(e,"w","ilvl");if(n===null)return null;let t=parseInt(n,10);if(isNaN(t)||t<0||t>8)return null;let o={ilvl:t,numFmt:"decimal",lvlText:""},s=chunkTMISJEGL_js.e(e,"w","start");if(s){let f=chunkTMISJEGL_js.j(s,"w","val");if(f!==null){let b=parseInt(f,10);isNaN(b)||(o.start=b);}}let r=chunkTMISJEGL_js.e(e,"w","numFmt");if(r){let f=chunkTMISJEGL_js.j(r,"w","val");f&&(o.numFmt=Ze(f));}let a=chunkTMISJEGL_js.e(e,"w","lvlText");a&&(o.lvlText=chunkTMISJEGL_js.j(a,"w","val")??"");let c=chunkTMISJEGL_js.e(e,"w","lvlJc");if(c){let f=chunkTMISJEGL_js.j(c,"w","val");(f==="left"||f==="center"||f==="right")&&(o.lvlJc=f);}let d=chunkTMISJEGL_js.e(e,"w","suff");if(d){let f=chunkTMISJEGL_js.j(d,"w","val");(f==="tab"||f==="space"||f==="nothing")&&(o.suffix=f);}let u=chunkTMISJEGL_js.e(e,"w","isLgl");u&&(o.isLgl=chunkTMISJEGL_js.m(u));let m=chunkTMISJEGL_js.e(e,"w","lvlRestart");if(m){let f=chunkTMISJEGL_js.j(m,"w","val");if(f!==null){let b=parseInt(f,10);isNaN(b)||(o.lvlRestart=b);}}let h=chunkTMISJEGL_js.e(e,"w","legacy");h&&(o.legacy={legacy:chunkTMISJEGL_js.m(h),legacySpace:chunkTMISJEGL_js.l(h,"w","legacySpace"),legacyIndent:chunkTMISJEGL_js.l(h,"w","legacyIndent")});let p=chunkTMISJEGL_js.e(e,"w","pPr");p&&(o.pPr=_e(p));let x=chunkTMISJEGL_js.e(e,"w","rPr");return x&&(o.rPr=Qe(x)),o}function Ze(e){return {decimal:"decimal",upperRoman:"upperRoman",lowerRoman:"lowerRoman",upperLetter:"upperLetter",lowerLetter:"lowerLetter",ordinal:"ordinal",cardinalText:"cardinalText",ordinalText:"ordinalText",hex:"hex",chicago:"chicago",bullet:"bullet",none:"none",decimalZero:"decimalZero",ganada:"ganada",chosung:"chosung",ideographDigital:"ideographDigital",japaneseCounting:"japaneseCounting",aiueo:"aiueo",iroha:"iroha",decimalFullWidth:"decimalFullWidth",decimalHalfWidth:"decimalHalfWidth",japaneseLegal:"japaneseLegal",japaneseDigitalTenThousand:"japaneseDigitalTenThousand",decimalEnclosedCircle:"decimalEnclosedCircle",decimalFullWidth2:"decimalFullWidth2",aiueoFullWidth:"aiueoFullWidth",irohaFullWidth:"irohaFullWidth",decimalEnclosedFullstop:"decimalEnclosedFullstop",decimalEnclosedParen:"decimalEnclosedParen",decimalEnclosedCircleChinese:"decimalEnclosedCircleChinese",ideographEnclosedCircle:"ideographEnclosedCircle",ideographTraditional:"ideographTraditional",ideographZodiac:"ideographZodiac",ideographZodiacTraditional:"ideographZodiacTraditional",taiwaneseCounting:"taiwaneseCounting",ideographLegalTraditional:"ideographLegalTraditional",taiwaneseCountingThousand:"taiwaneseCountingThousand",taiwaneseDigital:"taiwaneseDigital",chineseCounting:"chineseCounting",chineseLegalSimplified:"chineseLegalSimplified",chineseCountingThousand:"chineseCountingThousand",koreanDigital:"koreanDigital",koreanCounting:"koreanCounting",koreanLegal:"koreanLegal",koreanDigital2:"koreanDigital2",vietnameseCounting:"vietnameseCounting",russianLower:"russianLower",russianUpper:"russianUpper",numberInDash:"numberInDash",hebrew1:"hebrew1",hebrew2:"hebrew2",arabicAlpha:"arabicAlpha",arabicAbjad:"arabicAbjad",hindiVowels:"hindiVowels",hindiConsonants:"hindiConsonants",hindiNumbers:"hindiNumbers",hindiCounting:"hindiCounting",thaiLetters:"thaiLetters",thaiNumbers:"thaiNumbers",thaiCounting:"thaiCounting"}[e]??"decimal"}function _e(e){let n={},t=chunkTMISJEGL_js.e(e,"w","ind");if(t){let s=chunkTMISJEGL_js.l(t,"w","left"),r=chunkTMISJEGL_js.l(t,"w","right"),a=chunkTMISJEGL_js.l(t,"w","start"),c=chunkTMISJEGL_js.l(t,"w","end"),d=chunkTMISJEGL_js.l(t,"w","firstLine"),u=chunkTMISJEGL_js.l(t,"w","hanging"),m=s??a,h=r??c;m!==void 0&&(n.indentLeft=m),h!==void 0&&(n.indentRight=h),u!==void 0?(n.indentFirstLine=-u,n.hangingIndent=true):d!==void 0&&(n.indentFirstLine=d);}let o=chunkTMISJEGL_js.e(e,"w","tabs");if(o){n.tabs=[];let s=chunkTMISJEGL_js.f(o,"w","tab");for(let r of s){let a=chunkTMISJEGL_js.l(r,"w","pos"),c=chunkTMISJEGL_js.j(r,"w","val"),d=chunkTMISJEGL_js.j(r,"w","leader");a!==void 0&&c&&n.tabs.push({position:a,alignment:Je(c),leader:qe(d)});}}return n}function Je(e){switch(e){case "left":return "left";case "center":return "center";case "right":return "right";case "decimal":return "decimal";case "bar":return "bar";case "clear":return "clear";case "num":return "num";default:return "left"}}function qe(e){if(e)switch(e){case "none":return "none";case "dot":return "dot";case "hyphen":return "hyphen";case "underscore":return "underscore";case "heavy":return "heavy";case "middleDot":return "middleDot";default:return}}function Qe(e){let n={},t=chunkTMISJEGL_js.e(e,"w","rFonts");t&&(n.fontFamily={ascii:chunkTMISJEGL_js.j(t,"w","ascii")??void 0,hAnsi:chunkTMISJEGL_js.j(t,"w","hAnsi")??void 0,eastAsia:chunkTMISJEGL_js.j(t,"w","eastAsia")??void 0,cs:chunkTMISJEGL_js.j(t,"w","cs")??void 0});let o=chunkTMISJEGL_js.e(e,"w","sz");if(o){let d=chunkTMISJEGL_js.l(o,"w","val");d!==void 0&&(n.fontSize=d);}let s=chunkTMISJEGL_js.e(e,"w","color");if(s){let d=chunkTMISJEGL_js.j(s,"w","val"),u=chunkTMISJEGL_js.j(s,"w","themeColor");d==="auto"?n.color={auto:true}:u?n.color={themeColor:u,themeTint:chunkTMISJEGL_js.j(s,"w","themeTint")??void 0,themeShade:chunkTMISJEGL_js.j(s,"w","themeShade")??void 0}:d&&(n.color={rgb:d});}let r=chunkTMISJEGL_js.e(e,"w","b");r&&(n.bold=chunkTMISJEGL_js.m(r));let a=chunkTMISJEGL_js.e(e,"w","i");a&&(n.italic=chunkTMISJEGL_js.m(a));let c=chunkTMISJEGL_js.e(e,"w","vanish");return c&&(n.hidden=chunkTMISJEGL_js.m(c)),n}function fe(e){let n=new Map;for(let o of e.abstractNums)n.set(o.abstractNumId,o);let t=new Map;for(let o of e.nums)t.set(o.numId,o);return {definitions:e,getLevel(o,s){let r=t.get(o);if(!r)return null;if(r.levelOverrides){let c=r.levelOverrides.find(d=>d.ilvl===s);if(c){if(c.lvl)return c.lvl;let d=n.get(r.abstractNumId);if(d){let u=d.levels.find(m=>m.ilvl===s);if(u&&c.startOverride!==void 0)return {...u,start:c.startOverride}}}}let a=n.get(r.abstractNumId);if(!a)return null;if(a.numStyleLink&&a.levels.length===0){for(let c of n.values())if(c.styleLink===a.numStyleLink&&c.levels.length>0){a=c;break}}return a.levels.find(c=>c.ilvl===s)??null},getAbstract(o){return n.get(o)??null},getInstance(o){return t.get(o)??null},hasNumbering(o){return t.has(o)}}}function Ge(e,n){switch(n){case "decimal":case "decimalZero":return e.toString();case "upperRoman":return De(e).toUpperCase();case "lowerRoman":return De(e).toLowerCase();case "upperLetter":return Xe(e).toUpperCase();case "lowerLetter":return Xe(e).toLowerCase();case "ordinal":return Ye(e);case "bullet":return "\u2022";case "none":return "";case "decimalEnclosedParen":return `(${e})`;case "numberInDash":return `-${e}-`;default:return e.toString()}}function De(e){if(e<=0||e>3999)return e.toString();let n=[[1e3,"m"],[900,"cm"],[500,"d"],[400,"cd"],[100,"c"],[90,"xc"],[50,"l"],[40,"xl"],[10,"x"],[9,"ix"],[5,"v"],[4,"iv"],[1,"i"]],t="",o=e;for(let[s,r]of n)for(;o>=s;)t+=r,o-=s;return t}function Xe(e){if(e<=0)return "";let n="",t=e;for(;t>0;)t--,n=String.fromCharCode(97+t%26)+n,t=Math.floor(t/26);return n}function Ye(e){let n=["th","st","nd","rd"],t=e%100;return e+(n[(t-20)%10]||n[t]||n[0])}function Pt(e,n,t){let o=e;for(let s=1;s<=9;s++){let r=`%${s}`;if(o.includes(r)){let a=s-1,c=n[a]??1,d=t[a]??"decimal",u=Ge(c,d);o=o.replace(r,u);}}return o}function Ft(e){if(e.lvlText)return e.lvlText;let n=e.rPr?.fontFamily?.ascii||e.rPr?.fontFamily?.hAnsi;if(n){let t=n.toLowerCase();if(t==="symbol")return "\u2022";if(t.includes("wingding"))return "\u2751"}return "\u2022"}function Nt(e){return e.numFmt==="bullet"||e.numFmt==="none"}var Le=/\{([a-zA-Z_][a-zA-Z0-9_\-\.]*)\}/g;function ke(e){let n=[],t;for(Le.lastIndex=0;(t=Le.exec(e))!==null;){let o=t[1].trim();o&&!n.includes(o)&&n.push(o);}return n}function ee(e){let n=[];for(let t of e)if(t.type==="paragraph"){let o=chunkYCDB5TA6_js.N(t),s=ke(o);for(let r of s)n.includes(r)||n.push(r);}else if(t.type==="table"){let o=Ee(t);for(let s of o)n.includes(s)||n.push(s);}return n}function Ee(e){let n=[];for(let t of e.rows)for(let o of t.cells)for(let s of o.content)if(s.type==="paragraph"){let r=chunkYCDB5TA6_js.N(s),a=ke(r);for(let c of a)n.includes(c)||n.push(c);}else if(s.type==="table"){let r=Ee(s);for(let a of r)n.includes(a)||n.push(a);}return n}function Ke(e,n){let t=[],o=[];for(let s of e)o.push(s),s.type==="paragraph"&&s.sectionProperties&&(t.push({properties:s.sectionProperties,content:o}),o=[]);return (o.length>0||t.length===0)&&t.push({properties:n??chunkYCDB5TA6_js.C(),content:o}),t}function te(e,n=null,t=null,o=null,s=null,r=null){let a={content:[]};if(!e)return a;let c=chunkTMISJEGL_js.a(e);if(!c)return a;let d=(c.elements??[]).find(p=>p.type==="element"&&(p.name==="w:document"||p.name?.endsWith(":document")));if(!d)return a;let u=chunkTMISJEGL_js.e(d,"w","body");if(!u)return a;a.content=chunkYCDB5TA6_js.q(u,n,t,o,s,r);let m=chunkTMISJEGL_js.e(u,"w","sectPr");m&&(a.finalSectionProperties=chunkYCDB5TA6_js.B(m,s));let h=Ke(a.content,a.finalSectionProperties);return a.sections=chunkYCDB5TA6_js.D(h),a.finalSectionProperties&&a.sections.length>0&&(a.finalSectionProperties=a.sections[a.sections.length-1].properties),a}function et(e){let n=new Map,t=chunkTMISJEGL_js.a(e);if(!t)return n;let o=chunkTMISJEGL_js.e(t,"w16cex","commentsExtensible")??t;for(let s of chunkTMISJEGL_js.i(o)){if((s.name?.replace(/^.*:/,"")??"")!=="comment")continue;let a=chunkTMISJEGL_js.j(s,"w16cex","paraId")??chunkTMISJEGL_js.j(s,"w15","paraId")??s.attributes?.["w16cex:paraId"]??s.attributes?.["w15:paraId"],c=chunkTMISJEGL_js.j(s,"w16cex","dateUtc")??chunkTMISJEGL_js.j(s,"w15","dateUtc")??s.attributes?.["w16cex:dateUtc"]??s.attributes?.["w15:dateUtc"];a&&c&&n.set(String(a).toUpperCase(),String(c));}return n}function tt(e){let n=new Map,t=new Map,o=chunkTMISJEGL_js.a(e);if(!o)return {parentByParaId:n,doneByParaId:t};let s=chunkTMISJEGL_js.e(o,"w15","commentsEx")??o;for(let r of chunkTMISJEGL_js.i(s)){if((r.name?.replace(/^.*:/,"")??"")!=="commentEx")continue;let c=chunkTMISJEGL_js.j(r,"w15","paraId")??r.attributes?.["w15:paraId"],d=chunkTMISJEGL_js.j(r,"w15","paraIdParent")??r.attributes?.["w15:paraIdParent"],u=chunkTMISJEGL_js.j(r,"w15","done")??r.attributes?.["w15:done"];if(c){let m=String(c).toUpperCase();d&&n.set(m,String(d).toUpperCase()),u==="1"&&t.set(m,true);}}return {parentByParaId:n,doneByParaId:t}}function Re(e,n,t,o,s,r,a){if(!e)return [];let c=chunkTMISJEGL_js.a(e);if(!c)return [];let d=r?et(r):new Map,u=a?tt(a):null,m=chunkTMISJEGL_js.e(c,"w","comments")??c,h=chunkTMISJEGL_js.i(m),p=[],x=[];for(let f of h){if((f.name?.replace(/^.*:/,"")??"")!=="comment")continue;let T=parseInt(chunkTMISJEGL_js.j(f,"w","id")??"0",10),M=chunkTMISJEGL_js.j(f,"w","author")??"Unknown",X=chunkTMISJEGL_js.j(f,"w","initials"),P=X!=null?String(X):void 0,F=chunkTMISJEGL_js.j(f,"w","date"),y=F!=null?String(F):void 0,S=chunkTMISJEGL_js.j(f,"w14","paraId")??f.attributes?.["w14:paraId"]??chunkTMISJEGL_js.j(f,"w","paraId"),D=(S?d.get(String(S).toUpperCase()):void 0)??y,I=chunkTMISJEGL_js.j(f,"w","done")??f.attributes?.["w:done"],N=I==="1"||I==="true"?true:void 0,L=chunkTMISJEGL_js.j(f,"w16cid","parentId")??chunkTMISJEGL_js.j(f,"w","parentId")??f.attributes?.["w16cid:parentId"]??f.attributes?.["w:parentId"],O=L!=null?parseInt(String(L),10):void 0,W=[],H="";for(let R of chunkTMISJEGL_js.i(f))if((R.name?.replace(/^.*:/,"")??"")==="p"){let g=chunkYCDB5TA6_js.O(R,n,t,null,o,s);W.push(g);let k=chunkTMISJEGL_js.j(R,"w14","paraId")??R.attributes?.["w14:paraId"];k&&(H=String(k).toUpperCase());}N==null&&u&&H&&u.doneByParaId.get(H)&&(N=true),x.push(H),p.push({id:T,author:M,initials:P,date:D,content:W,...N!=null?{done:N}:{},...O!=null&&!isNaN(O)?{parentId:O}:{}});}if(u&&u.parentByParaId.size>0){let f=new Map;for(let b=0;b<p.length;b++){let T=x[b];T&&f.set(T,p[b].id);}for(let b=0;b<p.length;b++){if(p[b].parentId!=null)continue;let T=x[b];if(!T)continue;let M=u.parentByParaId.get(T);if(!M)continue;let X=f.get(M);X!=null&&(p[b]={...p[b],parentId:X});}}return p}async function Be(e,n={}){let t=e instanceof ArrayBuffer?e:await chunkKBU6QQFU_js.p(e),{onProgress:o=()=>{},preloadFonts:s=true,parseHeadersFooters:r=true,parseNotes:a=true,detectVariables:c=true}=n,d=[];try{let p=function(A,g){let k=performance.now(),j=g(),B=performance.now()-k;return h.push({stage:A,ms:B}),B>1e3&&console.warn(`[parseDocx] ${A} took ${Math.round(B)}ms`),j};var u=p;let m=performance.now(),h=[];async function x(A,g){let k=performance.now(),j=await g(),B=performance.now()-k;return h.push({stage:A,ms:B}),B>1e3&&console.warn(`[parseDocx] ${A} took ${Math.round(B)}ms`),j}o("Extracting DOCX...",0);let f=await x("unzip",()=>G(t));o("Extracted DOCX",10),o("Parsing relationships...",10);let b=p("relationships",()=>f.documentRels?chunkD536HC5M_js.b(f.documentRels):new Map);o("Parsed relationships",15),o("Parsing theme...",15);let T=p("theme",()=>chunkYCDB5TA6_js.a(f.themeXml));o("Parsed theme",20),o("Parsing styles...",20);let M=null,X;p("styles",()=>{f.stylesXml&&(M=ce(f.stylesXml,T),X=Me(f.stylesXml,T));}),o("Parsed styles",30),o("Parsing numbering...",30);let P=p("numbering",()=>Ie(f.numberingXml)),F=p("settings",()=>chunkIN6IYQ2X_js.b(f.settingsXml));o("Parsed numbering",35),o("Processing media files...",35);let y=p("media",()=>nt(f,b));o("Processed media",40),o("Parsing document body...",40);let S={content:[]};p("documentBody",()=>{f.documentXml?S=te(f.documentXml,M,T,P,b,y):d.push("No document.xml found in DOCX");}),o("Parsed document body",55);let C,D;if(r){o("Parsing headers/footers...",55);let A=p("headersFooters",()=>ot(f,M,T,P,b,y));C=A.headers,D=A.footers,o("Parsed headers/footers",65);}else o("Skipping headers/footers",65);let I,N;if(a){o("Parsing footnotes/endnotes...",65);let A=p("footnotesEndnotes",()=>rt(f,M,T,P,b,y));I=A.footnotes,N=A.endnotes,o("Parsed footnotes/endnotes",75);}else o("Skipping footnotes/endnotes",75);o("Parsing comments...",75);let L=p("comments",()=>Re(f.commentsXml,M,T,b,y,f.commentsExtensibleXml,f.commentsExtendedXml));L.length>0&&(S.comments=L);let O;c?(o("Detecting template variables...",75),O=p("variables",()=>ee(S.content)),o("Detected variables",80)):o("Skipping variable detection",80),s?(o("Loading fonts...",80),await x("fonts",()=>it(T,X,S)),o("Loaded fonts",95)):o("Skipping font loading",95),o("Assembling document...",95);let H={package:{document:S,styles:X,theme:T,numbering:P.definitions,settings:F,headers:C,footers:D,footnotes:I,endnotes:N,relationships:b,media:y},originalBuffer:t,templateVariables:O,warnings:d.length>0?d:void 0},R=performance.now()-m;if(R>2e3){let A=h.filter(g=>g.ms>100).map(g=>`${g.stage}: ${Math.round(g.ms)}ms`).join(", ");console.warn(`[parseDocx] Total: ${Math.round(R)}ms`+(A?` (${A})`:""));}return o("Complete",100),H}catch(m){let h=m instanceof Error?m.message:String(m);throw console.error("[parseDocx] Failed to parse DOCX:",h,m),new Error(`Failed to parse DOCX: ${h}`)}}function nt(e,n){let t=new Map;for(let[o,s]of e.media.entries()){let r=o.split("/").pop()||o,a=Ce(o),c=new Uint8Array(s),d="";for(let x=0;x<c.length;x++)d+=String.fromCharCode(c[x]);let u=btoa(d),m=`data:${a};base64,${u}`,h={path:o,filename:r,mimeType:a,data:s,dataUrl:m};t.set(o,h);let p=o.replace(/^word\//,"");p!==o&&t.set(p,h);}return t}function ne(e,n){let t=n.toLowerCase();for(let[o,s]of e.entries())if(o.toLowerCase()===t)return s}function ot(e,n,t,o,s,r){let a=new Map,c=new Map;for(let[d,u]of s.entries())if(u.type===chunkD536HC5M_js.a.header&&u.target){let m=u.target.split("/").pop()||u.target,h=ne(e.headers,m);if(h){let p=`word/_rels/${m}.rels`,x=ne(e.allXml,p),f=x?chunkD536HC5M_js.b(x):s,b=chunkYCDB5TA6_js.r(h,"default",n,t,o,f,r);a.set(d,b);}}else if(u.type===chunkD536HC5M_js.a.footer&&u.target){let m=u.target.split("/").pop()||u.target,h=ne(e.footers,m);if(h){let p=`word/_rels/${m}.rels`,x=ne(e.allXml,p),f=x?chunkD536HC5M_js.b(x):s,b=chunkYCDB5TA6_js.s(h,"default",n,t,o,f,r);c.set(d,b);}}return {headers:a,footers:c}}function rt(e,n,t,o,s,r){let a=chunkYCDB5TA6_js.t(e.footnotesXml,n,t,o,s,r),c=chunkYCDB5TA6_js.u(e.endnotesXml,n,t,o,s,r);return {footnotes:a.getNormalFootnotes(),endnotes:c.getNormalEndnotes()}}async function it(e,n,t){let o=new Set;if(e?.fontScheme){let{majorFont:s,minorFont:r}=e.fontScheme;s?.latin&&o.add(s.latin),r?.latin&&o.add(r.latin);}if(n?.docDefaults?.rPr?.fontFamily?.ascii&&o.add(n.docDefaults.rPr.fontFamily.ascii),n?.styles)for(let s of n.styles)s.rPr?.fontFamily?.ascii&&o.add(s.rPr.fontFamily.ascii),s.rPr?.fontFamily?.hAnsi&&o.add(s.rPr.fontFamily.hAnsi);if(t.content){for(let s of t.content)if(s.type==="paragraph")for(let r of s.content)r.type==="run"&&r.formatting?.fontFamily&&(r.formatting.fontFamily.ascii&&o.add(r.formatting.fontFamily.ascii),r.formatting.fontFamily.hAnsi&&o.add(r.formatting.fontFamily.hAnsi));}if(o.size>0)try{await chunkKBU6QQFU_js.l(Array.from(o));}catch(s){console.warn("Failed to load some fonts:",s);}}async function qt(e){return Be(e,{preloadFonts:false,parseHeadersFooters:false,parseNotes:false,detectVariables:true})}async function Qt(e,n){return Be(e,{onProgress:n,preloadFonts:true,parseHeadersFooters:true,parseNotes:true,detectVariables:true})}async function Gt(e){let n=await G(e);if(!n.documentXml)return [];let t=te(n.documentXml);return ee(t.content)}async function Yt(e){let n=await G(e),t=n.documentXml?ee(te(n.documentXml).content):[];return {hasDocument:n.documentXml!==null,hasStyles:n.stylesXml!==null,hasTheme:n.themeXml!==null,hasNumbering:n.numberingXml!==null,headerCount:n.headers.size,footerCount:n.footers.size,mediaCount:n.media.size,variableCount:t.length}}
|
|
2
|
+
exports.a=Ie;exports.b=Ge;exports.c=Pt;exports.d=Ft;exports.e=Nt;exports.f=Be;exports.g=qt;exports.h=Qt;exports.i=Gt;exports.j=Yt;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkD4RPOJC7_js=require('./chunk-D4RPOJC7.js'),chunkIP2VXNWG_js=require('./chunk-IP2VXNWG.js'),chunkJFZIXFRC_js=require('./chunk-JFZIXFRC.js'),chunkMZOVDLYL_js=require('./chunk-MZOVDLYL.js'),chunkYVYB4YCI_js=require('./chunk-YVYB4YCI.js'),chunkMJ5FQX7Q_js=require('./chunk-MJ5FQX7Q.js'),chunk4Q2IP5FW_js=require('./chunk-4Q2IP5FW.js');function _(e){if(!e)return [];let n=[];return e.bold&&n.push(chunkYVYB4YCI_js.b.mark("bold")),e.italic&&n.push(chunkYVYB4YCI_js.b.mark("italic")),e.underline&&e.underline.style!=="none"&&n.push(chunkYVYB4YCI_js.b.mark("underline",{style:e.underline.style,color:e.underline.color})),(e.strike||e.doubleStrike)&&n.push(chunkYVYB4YCI_js.b.mark("strike",{double:e.doubleStrike||false})),e.color&&!e.color.auto&&n.push(chunkYVYB4YCI_js.b.mark("textColor",{rgb:e.color.rgb,themeColor:e.color.themeColor,themeTint:e.color.themeTint,themeShade:e.color.themeShade})),e.highlight&&e.highlight!=="none"&&n.push(chunkYVYB4YCI_js.b.mark("highlight",{color:e.highlight})),e.fontSize&&n.push(chunkYVYB4YCI_js.b.mark("fontSize",{size:e.fontSize})),e.fontFamily&&n.push(chunkYVYB4YCI_js.b.mark("fontFamily",{ascii:e.fontFamily.ascii,hAnsi:e.fontFamily.hAnsi,eastAsia:e.fontFamily.eastAsia,cs:e.fontFamily.cs,asciiTheme:e.fontFamily.asciiTheme,hAnsiTheme:e.fontFamily.hAnsiTheme,eastAsiaTheme:e.fontFamily.eastAsiaTheme,csTheme:e.fontFamily.csTheme})),e.vertAlign==="superscript"?n.push(chunkYVYB4YCI_js.b.mark("superscript")):e.vertAlign==="subscript"&&n.push(chunkYVYB4YCI_js.b.mark("subscript")),e.allCaps&&n.push(chunkYVYB4YCI_js.b.mark("allCaps")),e.smallCaps&&n.push(chunkYVYB4YCI_js.b.mark("smallCaps")),(e.spacing!=null||e.position!=null||e.scale!=null||e.kerning!=null)&&n.push(chunkYVYB4YCI_js.b.mark("characterSpacing",{spacing:e.spacing??null,position:e.position??null,scale:e.scale??null,kerning:e.kerning??null})),e.emboss&&n.push(chunkYVYB4YCI_js.b.mark("emboss")),e.imprint&&n.push(chunkYVYB4YCI_js.b.mark("imprint")),e.shadow&&n.push(chunkYVYB4YCI_js.b.mark("textShadow")),e.emphasisMark&&e.emphasisMark!=="none"&&n.push(chunkYVYB4YCI_js.b.mark("emphasisMark",{type:e.emphasisMark})),e.outline&&n.push(chunkYVYB4YCI_js.b.mark("textOutline")),e.hidden&&n.push(chunkYVYB4YCI_js.b.mark("hidden")),e.rtl&&n.push(chunkYVYB4YCI_js.b.mark("rtl")),e.effect&&e.effect!=="none"&&n.push(chunkYVYB4YCI_js.b.mark("textEffect",{effect:e.effect})),n}function A(e,n){if(!e)return;if(!n)return e;let r=n.resolveRunStyle(e.styleId);return r?chunkMZOVDLYL_js.a(r,e):e}function ee(e,n){let r="",i,t=e.type==="simpleField"?e.content:e.fieldResult;if(t){for(let s of t)if(s.type==="run"){for(let f of s.content)f.type==="text"&&(r+=f.text);!i&&s.formatting&&(i=s.formatting);}}let l=chunkMZOVDLYL_js.a(n,i),o=_(l);return chunkYVYB4YCI_js.b.node("field",{fieldType:e.fieldType,instruction:e.instruction,displayText:r,fieldKind:e.type==="simpleField"?"simple":"complex",fldLock:e.fldLock??false,dirty:e.dirty??false},void 0,o)}function te(e){return chunkYVYB4YCI_js.b.node("math",{display:e.display,ommlXml:e.ommlXml,plainText:e.plainText||""})}function q(e,n,r){let i=[],t=e.formatting?.styleId?r?.getRunStyleOwnProperties(e.formatting.styleId):void 0,l=chunkMZOVDLYL_js.a(chunkMZOVDLYL_js.a(n,t),e.formatting),o=_(l);for(let s of e.content){let f=fe(s,o);i.push(...f);}return i}function fe(e,n){switch(e.type){case "text":return e.text?[chunkYVYB4YCI_js.b.text(e.text,n)]:[];case "break":return e.breakType==="textWrapping"||!e.breakType?[chunkYVYB4YCI_js.b.node("hardBreak",null,void 0,n)]:[];case "tab":return [chunkYVYB4YCI_js.b.node("tab",null,void 0,n)];case "drawing":return e.image?[Te(e.image)]:[];case "shape":{let t=e.shape;return t.textBody&&t.textBody.content.length>0?[]:[be(t)]}case "footnoteRef":let r=chunkYVYB4YCI_js.b.mark("footnoteRef",{id:e.id.toString(),noteType:"footnote"});return [chunkYVYB4YCI_js.b.text(e.id.toString(),[...n,r])];case "endnoteRef":let i=chunkYVYB4YCI_js.b.mark("footnoteRef",{id:e.id.toString(),noteType:"endnote"});return [chunkYVYB4YCI_js.b.text(e.id.toString(),[...n,i])];default:return []}}function Te(e){let n=e.size?.width?chunk4Q2IP5FW_js.e(e.size.width):void 0,r=e.size?.height?chunk4Q2IP5FW_js.e(e.size.height):void 0,i=e.wrap.type,t=e.wrap.wrapText,l=e.position?.horizontal?.alignment,o;i==="inline"||i==="topAndBottom"?o="none":i==="square"||i==="tight"||i==="through"?t==="left"?o="right":t==="right"||l==="left"?o="left":l==="right"?o="right":o="none":o="none";let s="inline";i==="inline"?s="inline":i==="topAndBottom"?s="block":chunkJFZIXFRC_js.b(i)||o&&o!=="none"?s="float":s="block";let f;if(e.transform){let P=[];e.transform.rotation&&P.push(`rotate(${e.transform.rotation}deg)`),e.transform.flipH&&P.push("scaleX(-1)"),e.transform.flipV&&P.push("scaleY(-1)"),P.length>0&&(f=P.join(" "));}let p=e.wrap.distT?chunk4Q2IP5FW_js.e(e.wrap.distT):void 0,c=e.wrap.distB?chunk4Q2IP5FW_js.e(e.wrap.distB):void 0,d=e.wrap.distL?chunk4Q2IP5FW_js.e(e.wrap.distL):void 0,m=e.wrap.distR?chunk4Q2IP5FW_js.e(e.wrap.distR):void 0,u;e.position&&(u={horizontal:e.position.horizontal?{relativeTo:e.position.horizontal.relativeTo,posOffset:e.position.horizontal.posOffset,align:e.position.horizontal.alignment}:void 0,vertical:e.position.vertical?{relativeTo:e.position.vertical.relativeTo,posOffset:e.position.vertical.posOffset,align:e.position.vertical.alignment}:void 0});let w,k,v;if(e.outline&&e.outline.width){w=Math.round(e.outline.width/914400*96*100)/100,e.outline.color?.rgb&&(k=`#${e.outline.color.rgb}`);let P={solid:"solid",dot:"dotted",dash:"dashed",lgDash:"dashed",dashDot:"dashed",lgDashDot:"dashed",lgDashDotDot:"dashed",sysDot:"dotted",sysDash:"dashed",sysDashDot:"dashed",sysDashDotDot:"dashed"};v=e.outline.style&&P[e.outline.style]||"solid";}let N=e.padding?.top?chunk4Q2IP5FW_js.e(e.padding.top):void 0,R=e.padding?.bottom?chunk4Q2IP5FW_js.e(e.padding.bottom):void 0,B=e.padding?.left?chunk4Q2IP5FW_js.e(e.padding.left):void 0,h=e.padding?.right?chunk4Q2IP5FW_js.e(e.padding.right):void 0;return chunkYVYB4YCI_js.b.node("image",{src:e.src||"",alt:e.alt,title:e.title,width:n,height:r,rId:e.rId,wrapType:i,displayMode:s,cssFloat:o,transform:f,distTop:p,distBottom:c,distLeft:d,distRight:m,position:u,borderWidth:w,borderColor:k,borderStyle:v,wrapText:t,hlinkHref:e.hlinkHref,cropTop:e.crop?.top,cropRight:e.crop?.right,cropBottom:e.crop?.bottom,cropLeft:e.crop?.left,opacity:e.opacity,effectExtentTop:N,effectExtentBottom:R,effectExtentLeft:B,effectExtentRight:h,layoutInCell:e.layoutInCell,allowOverlap:e.allowOverlap})}function j(e,n,r){let i=[],t=e.href||(e.anchor?`#${e.anchor}`:""),l=chunkYVYB4YCI_js.b.mark("hyperlink",{href:t,tooltip:e.tooltip,rId:e.rId});for(let o of e.children)if(o.type==="run"){let s=o.formatting?.styleId?r?.getRunStyleOwnProperties(o.formatting.styleId):void 0,f=chunkMZOVDLYL_js.a(chunkMZOVDLYL_js.a(n,s),o.formatting),c=[..._(f),l];for(let d of o.content)i.push(...fe(d,c));}return i}function be(e){let n=e.size?.width?chunk4Q2IP5FW_js.e(e.size.width):100,r=e.size?.height?chunk4Q2IP5FW_js.e(e.size.height):80,i,t="solid",l,o,s;if(e.fill&&(t=e.fill.type,e.fill.color?.rgb&&(i=`#${e.fill.color.rgb}`),e.fill.type==="gradient"&&e.fill.gradient)){let m=e.fill.gradient;l=m.type,o=m.angle,s=JSON.stringify(m.stops.map(u=>({position:u.position,color:u.color.rgb?`#${u.color.rgb}`:"#000000"})));}let f,p,c;e.outline&&(e.outline.width&&(f=Math.round(e.outline.width/914400*96*100)/100),e.outline.color?.rgb&&(p=`#${e.outline.color.rgb}`),c=e.outline.style||"solid");let d;if(e.transform){let m=[];e.transform.rotation&&m.push(`rotate(${e.transform.rotation}deg)`),e.transform.flipH&&m.push("scaleX(-1)"),e.transform.flipV&&m.push("scaleY(-1)"),m.length>0&&(d=m.join(" "));}return chunkYVYB4YCI_js.b.node("shape",{shapeType:e.shapeType||"rect",shapeId:e.id,width:n,height:r,fillColor:i,fillType:t,gradientType:l,gradientAngle:o,gradientStops:s,outlineWidth:f,outlineColor:p,outlineStyle:c,transform:d})}function E(e,n,r,i){let t=Pe(e,n),l=[],o,s=new Set,f;n&&(f=n.resolveParagraphStyle(e.formatting?.styleId).runFormatting);let p=chunkMZOVDLYL_js.a(f,i);for(let c of e.content){if(c.type==="commentRangeStart")s.add(c.id);else if(c.type==="commentRangeEnd")s.delete(c.id);else if(c.type==="run"){let d=q(c,p,n);s.size>0&&(d=D(d,s)),l.push(...d);}else if(c.type==="hyperlink"){let d=j(c,p,n);l.push(...d);}else if(c.type==="simpleField"||c.type==="complexField"){let d=ee(c,p);d&&l.push(d);}else if(c.type==="inlineSdt"){let d=ce(c,p,n);d&&l.push(d);}else if(c.type==="insertion"){let d=X(c,"insertion",p,n);s.size>0&&(d=D(d,s)),l.push(...d);}else if(c.type==="deletion"){let d=X(c,"deletion",p,n);s.size>0&&(d=D(d,s)),l.push(...d);}else if(c.type==="moveFrom"){let d=X(c,"deletion",p,n);s.size>0&&(d=D(d,s)),l.push(...d);}else if(c.type==="moveTo"){let d=X(c,"insertion",p,n);s.size>0&&(d=D(d,s)),l.push(...d);}else if(c.type==="mathEquation"){let d=te(c);d&&l.push(d);}c.type==="bookmarkStart"&&(o||(o=[]),o.push({id:c.id,name:c.name}));}return o&&(t.bookmarks=o),chunkYVYB4YCI_js.b.node("paragraph",t,l)}function D(e,n){if(n.size===0)return e;let r=[...n][0],i=chunkYVYB4YCI_js.b.marks.comment.create({commentId:r});return e.map(t=>t.isText?t.mark(i.addToSet(t.marks)):t)}function X(e,n,r,i){let t=[];for(let o of e.content)o.type==="run"?t.push(...q(o,r,i)):o.type==="hyperlink"&&t.push(...j(o,r,i));let l=chunkYVYB4YCI_js.b.marks[n].create({revisionId:e.info.id,author:e.info.author,date:e.info.date??null});return t.map(o=>o.isText?o.mark(l.addToSet(o.marks)):o)}function Pe(e,n){let r=e.formatting,i=r?.styleId,t={paraId:e.paraId??void 0,textId:e.textId??void 0,styleId:i,numPr:r?.numPr,listNumFmt:e.listRendering?.numFmt,listIsBullet:e.listRendering?.isBullet,listMarker:e.listRendering?.marker,listMarkerHidden:e.listRendering?.markerHidden||void 0,listMarkerFontFamily:e.listRendering?.markerFontFamily||void 0,listMarkerFontSize:e.listRendering?.markerFontSize||void 0,listMarkerSuffix:e.listRendering?.markerSuffix||void 0,listLevelNumFmts:e.listRendering?.levelNumFmts||void 0,listAbstractNumId:e.listRendering?.abstractNumId,listStartOverride:e.listRendering?.startOverride,_originalFormatting:r||void 0};if(n){let l=n.resolveParagraphStyle(i),o=l.paragraphFormatting,s=l.runFormatting;t.alignment=r?.alignment??o?.alignment,t.spaceBefore=r?.spaceBefore??o?.spaceBefore,t.spaceAfter=r?.spaceAfter??o?.spaceAfter,t.lineSpacing=r?.lineSpacing??o?.lineSpacing,t.lineSpacingRule=r?.lineSpacingRule??o?.lineSpacingRule,r?.spacingExplicit&&(t.spacingExplicit=r.spacingExplicit),t.indentLeft=r?.indentLeft??o?.indentLeft,t.indentRight=r?.indentRight??o?.indentRight,t.indentFirstLine=r?.indentFirstLine??o?.indentFirstLine,t.hangingIndent=r?.hangingIndent??o?.hangingIndent,t.borders=r?.borders??o?.borders,t.shading=r?.shading??o?.shading,t.tabs=r?.tabs??o?.tabs,t.pageBreakBefore=r?.pageBreakBefore??o?.pageBreakBefore,t.keepNext=r?.keepNext??o?.keepNext,t.keepLines=r?.keepLines??o?.keepLines,t.contextualSpacing=r?.contextualSpacing??o?.contextualSpacing,t.outlineLevel=r?.outlineLevel??o?.outlineLevel,t.bidi=r?.bidi??o?.bidi;let f=n.getDefaultCharacterStyle()?.rPr,p=f?chunkMZOVDLYL_js.a(s,f):s,c=A(r?.runProperties,n);t.defaultTextFormatting=chunkMZOVDLYL_js.a(p,c),!r?.numPr&&o?.numPr&&o.numPr.numId!==0&&(t.numPr=o.numPr);}else t.alignment=r?.alignment,t.spaceBefore=r?.spaceBefore,t.spaceAfter=r?.spaceAfter,t.lineSpacing=r?.lineSpacing,t.lineSpacingRule=r?.lineSpacingRule,r?.spacingExplicit&&(t.spacingExplicit=r.spacingExplicit),t.indentLeft=r?.indentLeft,t.indentRight=r?.indentRight,t.indentFirstLine=r?.indentFirstLine,t.hangingIndent=r?.hangingIndent,t.borders=r?.borders,t.shading=r?.shading,t.tabs=r?.tabs,t.pageBreakBefore=r?.pageBreakBefore,t.keepNext=r?.keepNext,t.keepLines=r?.keepLines,t.outlineLevel=r?.outlineLevel,t.bidi=r?.bidi,t.defaultTextFormatting=A(r?.runProperties,n);if(e.sectionProperties){t._sectionProperties=e.sectionProperties;let l=e.sectionProperties.sectionStart;(l==="nextPage"||l==="continuous"||l==="oddPage"||l==="evenPage")&&(t.sectionBreakType=l);}return e.renderedPageBreakBefore&&(t.renderedPageBreakBefore=true),t}function ce(e,n,r){let i=e.properties,t=[];for(let l of e.content)if(l.type==="run"){let o=q(l,n,r);t.push(...o);}else if(l.type==="hyperlink"){let o=j(l,n,r);t.push(...o);}else if(l.type==="simpleField"||l.type==="complexField"){let o=ee(l,n);o&&t.push(o);}else if(l.type==="inlineSdt"){let o=ce(l,n,r);o&&t.push(o);}else if(l.type==="mathEquation"){let o=te(l);o&&t.push(o);}return chunkYVYB4YCI_js.b.node("sdt",{sdtType:i.sdtType,alias:i.alias??null,tag:i.tag??null,lock:i.lock??null,placeholder:i.placeholder??null,showingPlaceholder:i.showingPlaceholder??false,dateFormat:i.dateFormat??null,listItems:i.listItems?JSON.stringify(i.listItems):null,checked:i.checked??null},t.length>0?t:void 0)}function ue(e){function n(i){return i.type==="break"&&i.breakType==="page"}function r(i){if(i.type==="run"){for(let t of i.content)if(n(t))return true;return false}if(i.type==="hyperlink"){for(let t of i.children)if(t.type==="run"&&r(t))return true;return false}if(i.type==="insertion"||i.type==="deletion"){let t=i;for(let l of t.content)if(r(l))return true;return false}return false}for(let i of e.content)if(r(i))return true;return false}function x(e,n,r){if(!e||!n)return;let i=e.getStyle(n);if(!i?.tblStylePr)return;let t=i.tblStylePr.find(f=>f.type===r);if(!t)return;let l=A(t.pPr?.runProperties,e),o=A(t.rPr,e),s=chunkMZOVDLYL_js.a(l,o);return {tcPr:t.tcPr,rPr:s}}function M(e,n){if(!e&&!n)return;if(!e)return n;if(!n)return e;let r={},i=e.tcPr,t=n.tcPr;if(i||t){let l={...i??{},...t??{}};(i?.borders||t?.borders)&&(l.borders={...i?.borders??{},...t?.borders??{}}),(i?.shading||t?.shading)&&(l.shading={...i?.shading??{},...t?.shading??{}}),(i?.margins||t?.margins)&&(l.margins={...i?.margins??{},...t?.margins??{}}),r.tcPr=l;}return r.rPr=chunkMZOVDLYL_js.a(e.rPr,n.rPr),r}function ye(e){let n=new Map,r=e.rows.length,i=new Map;for(let t=0;t<r;t++){let l=e.rows[t],o=0;for(let s=0;s<l.cells.length;s++){let f=l.cells[s],p=f.formatting?.gridSpan??1,c=f.formatting?.vMerge,d=`${t}-${o}`;if(c==="restart")i.set(o,t),n.set(d,{rowSpan:1,skip:false});else if(c==="continue"){let m=i.get(o);if(m!==void 0){let u=`${m}-${o}`,w=n.get(u);w&&w.rowSpan++;}n.set(d,{rowSpan:1,skip:true});}else i.delete(o),n.set(d,{rowSpan:1,skip:false});o+=p;}}return n}function K(e,n,r){let i=ye(e),t=e.columnWidths,l=t?.reduce((P,S)=>P+S,0)??0,o=e.formatting?.styleId,s=e.formatting?.look,f=o?n?.getStyle(o):void 0,p=n?.getDefaultTableStyle(),c=e.formatting?.borders??f?.tblPr?.borders??p?.tblPr?.borders,d=e.formatting?.cellMargins??f?.tblPr?.cellMargins??p?.tblPr?.cellMargins??void 0,m=d?{top:d.top?.value,bottom:d.bottom?.value,left:d.left?.value,right:d.right?.value}:void 0,u={styleId:e.formatting?.styleId,width:e.formatting?.width?.value,widthType:e.formatting?.width?.type,justification:e.formatting?.justification,columnWidths:t,floating:e.formatting?.floating,cellMargins:m,look:e.formatting?.look,_originalFormatting:e.formatting||void 0},w={wholeTable:x(n,o,"wholeTable"),firstRow:x(n,o,"firstRow"),lastRow:x(n,o,"lastRow"),firstCol:x(n,o,"firstCol"),lastCol:x(n,o,"lastCol"),band1Horz:x(n,o,"band1Horz"),band2Horz:x(n,o,"band2Horz"),band1Vert:x(n,o,"band1Vert"),band2Vert:x(n,o,"band2Vert"),nwCell:x(n,o,"nwCell"),neCell:x(n,o,"neCell"),swCell:x(n,o,"swCell"),seCell:x(n,o,"seCell")},k=s?.noHBand!==true,v=s?.noVBand!==true,N=0,R=e.rows.length,B=t?.length??Math.max(0,...e.rows.map(P=>P.cells.reduce((S,F)=>S+(F.formatting?.gridSpan??1),0))),h=e.rows.map((P,S)=>{let F=S===0&&!!s?.firstRow,C=S===R-1&&!!s?.lastRow,I=k&&!F&&!C?N%2===0?w.band1Horz:w.band2Horz:void 0;return k&&!F&&!C&&N++,we(P,n,F,t,l,w,I,v,s,c,S,R,B,i,m,r)});return chunkYVYB4YCI_js.b.node("table",u,h)}function we(e,n,r,i,t,l,o,s,f,p,c,d,m,u,w,k){let v={height:e.formatting?.height?.value,heightRule:e.formatting?.heightRule,isHeader:!!e.formatting?.header,_originalFormatting:e.formatting||void 0},N=e.cells.length,R=c===0,B=c===(d??1)-1,h=e.formatting?.conditionalFormat,P=h?.firstRow??R,S=h?.lastRow??B,F=m??N,C=0,I=[];for(let J=0;J<e.cells.length;J++){let Y=e.cells[J],L=Y.formatting?.gridSpan??1,me=`${c??0}-${C}`,oe=u?.get(me),he=oe?.skip??false,ge=oe?.rowSpan??1,re;if(i&&t&&t>0){let W=0;for(let z=0;z<L&&C+z<i.length;z++)W+=i[C+z];re=Math.round(W/t*100);}if(C+=L,he)continue;let ie=C-L===0,le=C===F,T=Y.formatting?.conditionalFormat,G=T?.firstRow??P,Q=T?.lastRow??S,O=T?.firstColumn??ie,V=T?.lastColumn??le,$;if(s){let W=f?.firstColumn?1:0,z=C-L-W;z>=0&&!(f?.lastColumn&&V)&&!(f?.firstColumn&&O)&&($=z%2===0?l?.band1Vert:l?.band2Vert);}T?.oddVBand?$=l?.band1Vert:T?.evenVBand&&($=l?.band2Vert);let H=o;h?.oddHBand?H=l?.band1Horz:h?.evenHBand&&(H=l?.band2Horz),T?.oddHBand?H=l?.band1Horz:T?.evenHBand&&(H=l?.band2Horz);let g=l?.wholeTable;g=M(g,H),g=M(g,$),G&&(f?.firstRow||h?.firstRow||T?.firstRow)&&(g=M(g,l?.firstRow)),Q&&(f?.lastRow||h?.lastRow||T?.lastRow)&&(g=M(g,l?.lastRow)),O&&(f?.firstColumn||h?.firstColumn||T?.firstColumn)&&(g=M(g,l?.firstCol)),V&&(f?.lastColumn||h?.lastColumn||T?.lastColumn)&&(g=M(g,l?.lastCol)),G&&O&&(f?.firstRow||h?.firstRow||T?.firstRow)&&(f?.firstColumn||h?.firstColumn||T?.firstColumn)&&(g=M(g,l?.nwCell)),G&&V&&(f?.firstRow||h?.firstRow||T?.firstRow)&&(f?.lastColumn||h?.lastColumn||T?.lastColumn)&&(g=M(g,l?.neCell)),Q&&O&&(f?.lastRow||h?.lastRow||T?.lastRow)&&(f?.firstColumn||h?.firstColumn||T?.firstColumn)&&(g=M(g,l?.swCell)),Q&&V&&(f?.lastRow||h?.lastRow||T?.lastRow)&&(f?.lastColumn||h?.lastColumn||T?.lastColumn)&&(g=M(g,l?.seCell)),I.push(Ce(Y,n,r,re,g,p,R,B,ie,le,ge,w,k));}return chunkYVYB4YCI_js.b.node("tableRow",v,I)}var Fe=["top","bottom","left","right","insideH","insideV"];function xe(e,n){if(!e)return e;let r;for(let i of Fe){let t=e[i];if(!t?.color?.themeColor||t.color.auto)continue;let l=chunkMJ5FQX7Q_js.b(t.color,n);l&&(r??(r={...e}),r[i]={...t,color:{rgb:l}});}return r??e}function Ce(e,n,r,i,t,l,o,s,f,p,c,d,m){let u=e.formatting,w=c??1,k=u?.width?.value,v=u?.width?.type;k===void 0&&i!==void 0&&(k=i,v="pct");let N=chunkMJ5FQX7Q_js.b(u?.shading?.fill??t?.tcPr?.shading?.fill,m),R=l?{top:o?l.top:l.insideH,bottom:s?l.bottom:l.insideH,left:f?l.left:l.insideV,right:p?l.right:l.insideV}:void 0,B=t?.tcPr?.borders,h=u?.borders,P=xe(R||B||h?{...R??{},...B??{},...h??{}}:void 0,m),S={colspan:u?.gridSpan??1,rowspan:w,width:k,widthType:v,verticalAlign:u?.verticalAlign,backgroundColor:N,textDirection:u?.textDirection,noWrap:u?.noWrap,borders:P,margins:u?.margins?{top:u.margins.top?.value,bottom:u.margins.bottom?.value,left:u.margins.left?.value,right:u.margins.right?.value}:t?.tcPr?.margins?{top:t.tcPr.margins.top?.value,bottom:t.tcPr.margins.bottom?.value,left:t.tcPr.margins.left?.value,right:t.tcPr.margins.right?.value}:d,_originalFormatting:u||void 0,_originalResolvedFill:N},F=[];for(let I of e.content)I.type==="paragraph"?F.push(E(I,n,void 0,t?.rPr)):I.type==="table"&&F.push(K(I,n));F.length===0&&F.push(chunkYVYB4YCI_js.b.node("paragraph",{},[]));let C=r?"tableHeader":"tableCell";return chunkYVYB4YCI_js.b.node(C,S,F)}function ne(e,n){let r=Se(e),i=E(e,n),t=[],l=r.length>0&&i.content.size===0,{anchored:o,inFlow:s}=ke(r);for(let f of o)t.push(pe(f,n));l||t.push(i);for(let f of s)t.push(pe(f,n));return t}function ke(e){let n=[],r=[];for(let i of e)chunkD4RPOJC7_js.a(i)?n.push(i):r.push(i);return {anchored:n,inFlow:r}}function Se(e){let n=[];for(let r of e.content)if(r.type==="run"){for(let i of r.content)if(i.type==="shape"&&"shape"in i){let t=i.shape;t.textBody&&t.textBody.content.length>0&&n.push({type:"textBox",id:t.id,size:t.size,position:t.position,wrap:t.wrap,fill:t.fill,outline:t.outline,content:t.textBody.content,margins:t.textBody.margins});}}return n}function pe(e,n){let r=e.size?.width?chunk4Q2IP5FW_js.e(e.size.width):200,i=e.size?.height?chunk4Q2IP5FW_js.e(e.size.height):void 0,t;e.fill?.color?.rgb&&(t=`#${e.fill.color.rgb}`);let l,o,s;e.outline&&e.outline.width&&(l=Math.round(e.outline.width/914400*96*100)/100,e.outline.color?.rgb&&(o=`#${e.outline.color.rgb}`),s=e.outline.style||"solid");let f=e.margins?.top!=null?chunk4Q2IP5FW_js.e(e.margins.top):4,p=e.margins?.bottom!=null?chunk4Q2IP5FW_js.e(e.margins.bottom):4,c=e.margins?.left!=null?chunk4Q2IP5FW_js.e(e.margins.left):7,d=e.margins?.right!=null?chunk4Q2IP5FW_js.e(e.margins.right):7,m=[];for(let u of e.content)m.push(E(u,n));return m.length===0&&m.push(chunkYVYB4YCI_js.b.node("paragraph",{},[])),chunkYVYB4YCI_js.b.node("textBox",{width:r,height:i,textBoxId:e.id,fillColor:t,outlineWidth:l,outlineColor:o,outlineStyle:s,marginTop:f,marginBottom:p,marginLeft:c,marginRight:d,...chunkD4RPOJC7_js.b(e)},m)}function it(e,n){let r=e.package.document.content,i=[],t=e.package.theme??null,l=n?.styles?chunkIP2VXNWG_js.b(n.styles):null;for(let o of r)if(o.type==="paragraph")i.push(...ne(o,l)),ue(o)&&i.push(chunkYVYB4YCI_js.b.node("pageBreak"));else if(o.type==="table"){let s=K(o,l,t);i.push(s);}return i.length===0&&i.push(chunkYVYB4YCI_js.b.node("paragraph",{},[])),chunkYVYB4YCI_js.b.node("doc",{defaultTabStopTwips:e.package.settings?.defaultTabStop??null},i)}function Re(e,n){let r=[],i=n?.styles?chunkIP2VXNWG_js.b(n.styles):null,t=n?.theme??null;for(let l of e)l.type==="paragraph"?r.push(...ne(l,i)):l.type==="table"&&r.push(K(l,i,t));return r.length===0&&r.push(chunkYVYB4YCI_js.b.node("paragraph",{},[])),chunkYVYB4YCI_js.b.node("doc",{defaultTabStopTwips:n?.defaultTabStopTwips??null},r)}function lt(e,n){return Re(e,n)}function st(){return chunkYVYB4YCI_js.b.node("doc",null,[chunkYVYB4YCI_js.b.node("paragraph",{},[])])}exports.a=it;exports.b=Re;exports.c=lt;exports.d=st;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkYVYB4YCI_js=require('./chunk-YVYB4YCI.js');var e=chunkYVYB4YCI_js.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();exports.A=j;exports.B=q;exports.C=w;exports.D=z;exports.a=g;exports.b=l;exports.c=u;exports.d=x;exports.e=C;exports.f=f;exports.g=S;exports.h=L;exports.i=b;exports.j=y;exports.k=v;exports.l=A;exports.m=I;exports.n=h;exports.o=R;exports.p=T;exports.q=P;exports.r=B;exports.s=k;exports.t=E;exports.u=F;exports.v=H;exports.w=J;exports.x=N;exports.y=O;exports.z=M;
|