@eigenpal/docx-editor-core 1.0.3 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +13 -16
- package/dist/agent/index.d.mts +42 -7
- package/dist/agent/index.d.ts +42 -7
- package/dist/agent/index.js +1 -1
- package/dist/agent/index.mjs +1 -1
- package/dist/chunk-2EQGBVPV.js +2 -0
- package/dist/chunk-2XP6GLA4.mjs +1 -0
- package/dist/chunk-44FHVKSI.js +1 -0
- package/dist/{chunk-2IE6UDHJ.mjs → chunk-44JKHPGF.mjs} +1 -1
- package/dist/{chunk-ABBG4WD2.js → chunk-4QEETB7U.js} +2 -2
- package/dist/chunk-53VKL6CG.js +1 -0
- package/dist/chunk-5BLQHXWK.mjs +1 -0
- package/dist/chunk-5M7TI6TV.js +1 -0
- package/dist/chunk-6JKM7TWJ.mjs +1 -0
- package/dist/{chunk-EQVNAHL7.mjs → chunk-6Y6LON6Y.mjs} +1 -1
- package/dist/{chunk-QVEAQOMR.mjs → chunk-6ZXL3EIP.mjs} +1 -1
- package/dist/{chunk-GHQS3I2W.mjs → chunk-7BVHKWEW.mjs} +1 -1
- package/dist/chunk-7HANRHHL.js +1 -0
- package/dist/chunk-7LRR7RKE.mjs +15 -0
- package/dist/chunk-7OW3VCZE.mjs +1 -0
- package/dist/chunk-7ZN4WI5N.mjs +4 -0
- package/dist/chunk-AMB6Y77B.js +1 -0
- package/dist/{chunk-3JXR6YU4.mjs → chunk-BOOHU5EW.mjs} +1 -1
- package/dist/{chunk-XBHF5Q2F.js → chunk-BXWOLARZ.js} +1 -1
- package/dist/chunk-C45EFOVP.js +1 -0
- package/dist/chunk-CCPBNE2F.mjs +2 -0
- package/dist/{chunk-XWQB6APW.mjs → chunk-D62KS7QG.mjs} +1 -1
- package/dist/chunk-DI6CRWSW.mjs +1 -0
- package/dist/chunk-DTTWBKGN.mjs +0 -0
- package/dist/chunk-DV6GWBUJ.js +2 -0
- package/dist/{chunk-EPX7BBJD.js → chunk-E4JMCA5X.js} +2 -2
- package/dist/chunk-EQAORQC3.mjs +1 -0
- package/dist/chunk-FO6IX2DB.js +6 -0
- package/dist/chunk-FW23IMBF.mjs +1 -0
- package/dist/chunk-FYKRDDKG.js +1 -0
- package/dist/chunk-GSKMHXHG.js +1 -0
- package/dist/chunk-GUQFNJHE.mjs +1 -0
- package/dist/{chunk-D536HC5M.js → chunk-HQPWFUP5.js} +1 -1
- package/dist/chunk-ICE6NC3S.mjs +1 -0
- package/dist/chunk-IFUED5ZS.mjs +1 -0
- package/dist/chunk-ISKTBM4L.js +1 -0
- package/dist/chunk-IYKBX24M.js +1 -0
- package/dist/chunk-KOEWROYV.mjs +6 -0
- package/dist/chunk-KRN6YSR2.mjs +1 -0
- package/dist/chunk-KZXZWGFX.mjs +1 -0
- package/dist/chunk-L24C5TEX.mjs +1 -0
- package/dist/chunk-L72YAV5N.js +3 -0
- package/dist/chunk-LK6I3HMH.mjs +0 -0
- package/dist/{chunk-XBIKSAH6.js → chunk-LTHT4A4S.js} +1 -1
- package/dist/chunk-LWH66Q7Q.js +1 -0
- package/dist/chunk-MERJFGEP.mjs +59 -0
- package/dist/chunk-MJ6XZFVD.mjs +1 -0
- package/dist/chunk-MNOHUTKE.js +15 -0
- package/dist/chunk-MP4QSEO2.mjs +1 -0
- package/dist/{chunk-HL5PQT3A.mjs → chunk-OEXVWIHW.mjs} +1 -1
- package/dist/chunk-PVAVS3IU.js +1 -0
- package/dist/chunk-QEACB5VG.js +1 -0
- package/dist/{chunk-EV6W6KXG.mjs → chunk-QKLY4F2J.mjs} +1 -1
- package/dist/chunk-QYF7BRG3.js +2 -0
- package/dist/chunk-ROG4MNOR.js +4 -0
- package/dist/{chunk-D5E5TA74.js → chunk-RORPREG3.js} +1 -1
- package/dist/chunk-SORYYVJ7.js +1 -0
- package/dist/chunk-SZIOF5SG.js +59 -0
- package/dist/{chunk-SAFW7UQZ.js → chunk-THLJYXFB.js} +1 -1
- package/dist/chunk-TUIEV7Q7.js +1 -0
- package/dist/{chunk-Z4SJCSTS.js → chunk-U4WUDHDK.js} +1 -1
- package/dist/chunk-U4XMGWF7.js +1 -0
- package/dist/chunk-U67MWOPZ.mjs +1 -0
- package/dist/chunk-VMRUBLPI.js +1 -0
- package/dist/chunk-WLDI6N3B.mjs +3 -0
- package/dist/chunk-WLHNIXWC.mjs +2 -0
- package/dist/chunk-WVERBZZU.js +1 -0
- package/dist/chunk-XCKTBNKN.js +1 -0
- package/dist/chunk-XPV6VILW.mjs +1 -0
- package/dist/chunk-Z5MJYQSD.mjs +1 -0
- package/dist/chunk-ZBFNOJGY.js +1 -0
- package/dist/chunk-ZX26QZJ5.mjs +1 -0
- package/dist/content-CE-ZdMwG.d.mts +1418 -0
- package/dist/content-CYXJ2tfQ.d.ts +1418 -0
- package/dist/contentControlValues-DAwTWfgR.d.mts +187 -0
- package/dist/contentControlValues-gyVPsi6m.d.ts +187 -0
- package/dist/core-plugins.d.mts +1 -2
- package/dist/core-plugins.d.ts +1 -2
- package/dist/core-plugins.js +1 -1
- package/dist/core-plugins.mjs +1 -1
- package/dist/core.d.mts +6 -7
- package/dist/core.d.ts +6 -7
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/{documentSerializer-C1ueey5d.d.mts → documentSerializer-Bghq9rFI.d.mts} +1 -1
- package/dist/{documentSerializer-Chn7J1WG.d.ts → documentSerializer-C4lFC60P.d.ts} +1 -1
- package/dist/documentStyles-D87dxl18.d.mts +34 -0
- package/dist/documentStyles-DToJv9co.d.ts +34 -0
- package/dist/docx/index.d.mts +1 -2
- package/dist/docx/index.d.ts +1 -2
- package/dist/docx/index.js +1 -1
- package/dist/docx/index.mjs +1 -1
- package/dist/docx/parser.d.mts +1 -2
- package/dist/docx/parser.d.ts +1 -2
- package/dist/docx/parser.js +1 -1
- package/dist/docx/parser.mjs +1 -1
- package/dist/docx/rezip.d.mts +1 -2
- package/dist/docx/rezip.d.ts +1 -2
- package/dist/docx/rezip.js +1 -1
- package/dist/docx/rezip.mjs +1 -1
- package/dist/docx/serializer/index.d.mts +2 -3
- package/dist/docx/serializer/index.d.ts +2 -3
- package/dist/docx/serializer/index.js +1 -1
- package/dist/docx/serializer/index.mjs +1 -1
- package/dist/{fontLoader-QPwbcX5j.d.ts → fontLoader-Cm02v7PO.d.ts} +63 -3
- package/dist/{fontLoader-BOt95Jtf.d.mts → fontLoader-Z7pqeNvZ.d.mts} +63 -3
- package/dist/{headerFooterLayout-B5LyDpSM.d.ts → headerFooterLayout-Bd58Tum3.d.ts} +74 -2
- package/dist/{headerFooterLayout-DVFcJ832.d.mts → headerFooterLayout-CuIJiIzi.d.mts} +74 -2
- package/dist/headless.d.mts +7 -6
- package/dist/headless.d.ts +7 -6
- package/dist/headless.js +1 -1
- package/dist/headless.mjs +1 -1
- package/dist/layout-bridge/index.d.mts +4 -4
- package/dist/layout-bridge/index.d.ts +4 -4
- package/dist/layout-bridge/index.js +1 -1
- package/dist/layout-bridge/index.mjs +1 -1
- package/dist/layout-bridge/measuring/index.d.mts +4 -0
- package/dist/layout-bridge/measuring/index.d.ts +4 -0
- 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 +2 -1
- package/dist/layout-bridge/toFlowBlocks.d.ts +2 -1
- package/dist/layout-bridge/toFlowBlocks.js +1 -1
- package/dist/layout-bridge/toFlowBlocks.mjs +1 -1
- package/dist/layout-engine/index.d.mts +4 -1
- package/dist/layout-engine/index.d.ts +4 -1
- package/dist/layout-engine/index.js +1 -1
- package/dist/layout-engine/index.mjs +1 -1
- package/dist/layout-engine/types.d.mts +74 -1
- package/dist/layout-engine/types.d.ts +74 -1
- 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 +27 -4
- package/dist/layout-painter/renderPage.d.ts +27 -4
- package/dist/layout-painter/renderPage.js +1 -1
- package/dist/layout-painter/renderPage.mjs +1 -1
- package/dist/managers/AutoSaveManager.d.mts +1 -2
- package/dist/managers/AutoSaveManager.d.ts +1 -2
- package/dist/managers/TableSelectionManager.d.mts +1 -2
- package/dist/managers/TableSelectionManager.d.ts +1 -2
- package/dist/managers/types.d.mts +1 -2
- package/dist/managers/types.d.ts +1 -2
- package/dist/mcp-cli.mjs +23 -22
- package/dist/mcp.d.mts +1 -2
- package/dist/mcp.d.ts +1 -2
- package/dist/mcp.js +3 -3
- package/dist/mcp.mjs +1 -1
- package/dist/{nodes-D7PTUJ2N.d.ts → nodes-BNkRKBBX.d.ts} +64 -3
- package/dist/{nodes-CL8M0L-a.d.mts → nodes-Bz-UHhLE.d.mts} +64 -3
- package/dist/prosemirror/commands/formatting.js +1 -1
- package/dist/prosemirror/commands/formatting.mjs +1 -1
- package/dist/prosemirror/commands/index.d.mts +80 -6
- package/dist/prosemirror/commands/index.d.ts +80 -6
- package/dist/prosemirror/commands/index.js +1 -1
- package/dist/prosemirror/commands/index.mjs +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 +2 -3
- package/dist/prosemirror/conversion/fromProseDoc.d.ts +2 -3
- package/dist/prosemirror/conversion/fromProseDoc.js +1 -1
- package/dist/prosemirror/conversion/fromProseDoc.mjs +1 -1
- package/dist/prosemirror/conversion/index.d.mts +3 -4
- package/dist/prosemirror/conversion/index.d.ts +3 -4
- package/dist/prosemirror/conversion/index.js +1 -1
- package/dist/prosemirror/conversion/index.mjs +1 -1
- package/dist/prosemirror/editor.css +302 -95
- package/dist/prosemirror/extensions/index.js +1 -1
- package/dist/prosemirror/extensions/index.mjs +1 -1
- package/dist/prosemirror/extensions/nodes/TableExtension.js +1 -1
- package/dist/prosemirror/extensions/nodes/TableExtension.mjs +1 -1
- package/dist/prosemirror/index.d.mts +94 -7
- package/dist/prosemirror/index.d.ts +94 -7
- package/dist/prosemirror/index.js +3 -1
- package/dist/prosemirror/index.mjs +3 -1
- package/dist/prosemirror/plugins/index.d.mts +124 -17
- package/dist/prosemirror/plugins/index.d.ts +124 -17
- package/dist/prosemirror/plugins/index.js +1 -1
- package/dist/prosemirror/plugins/index.mjs +1 -1
- package/dist/prosemirror/schema/index.d.mts +3 -4
- package/dist/prosemirror/schema/index.d.ts +3 -4
- package/dist/prosemirror/schema/index.js +1 -1
- package/dist/prosemirror/schema/index.mjs +1 -1
- package/dist/prosemirror/styles/index.d.mts +9 -0
- package/dist/prosemirror/styles/index.d.ts +9 -0
- package/dist/prosemirror/styles/index.js +1 -1
- package/dist/prosemirror/styles/index.mjs +1 -1
- package/dist/prosemirror/utils/extractTrackedChanges.d.mts +44 -22
- package/dist/prosemirror/utils/extractTrackedChanges.d.ts +44 -22
- package/dist/prosemirror/utils/extractTrackedChanges.js +1 -1
- package/dist/prosemirror/utils/extractTrackedChanges.mjs +1 -1
- package/dist/types/content.d.mts +4 -1167
- package/dist/types/content.d.ts +4 -1167
- package/dist/types/document.d.mts +2 -4
- package/dist/types/document.d.ts +2 -4
- package/dist/utils/comments.d.mts +78 -5
- package/dist/utils/comments.d.ts +78 -5
- package/dist/utils/comments.js +1 -1
- package/dist/utils/comments.mjs +1 -1
- package/dist/utils/highlightColors.js +1 -1
- package/dist/utils/highlightColors.mjs +1 -1
- package/dist/utils/index.d.mts +2 -3
- package/dist/utils/index.d.ts +2 -3
- package/dist/utils/index.js +3 -3
- package/dist/utils/index.mjs +3 -3
- package/dist/{variableDetector-CAdt8yOr.d.mts → variableDetector-C7BLz9sJ.d.mts} +1 -1
- package/dist/{variableDetector-W4XEN9YC.d.ts → variableDetector-HPZbJ_gw.d.ts} +1 -1
- package/package.json +3 -3
- package/dist/chunk-3AZWLVLC.js +0 -1
- package/dist/chunk-3NLVHZMT.js +0 -59
- package/dist/chunk-5SU4HPQS.mjs +0 -1
- package/dist/chunk-7PX32GLB.mjs +0 -1
- package/dist/chunk-AHXPHBMT.js +0 -1
- package/dist/chunk-B6LYBJ4H.mjs +0 -1
- package/dist/chunk-BFB4PRS4.mjs +0 -1
- package/dist/chunk-BRHHK4MG.mjs +0 -2
- package/dist/chunk-CP5OSG5Z.mjs +0 -1
- package/dist/chunk-CUXXRGPQ.mjs +0 -1
- package/dist/chunk-D4RPOJC7.js +0 -1
- package/dist/chunk-FWTP7BN7.mjs +0 -4
- package/dist/chunk-G7AKYAKU.mjs +0 -1
- package/dist/chunk-HAAMO2Z2.mjs +0 -1
- package/dist/chunk-ILJUDEZ5.mjs +0 -1
- package/dist/chunk-IN6IYQ2X.js +0 -1
- package/dist/chunk-IO6HZ7KR.js +0 -2
- package/dist/chunk-IP2VXNWG.js +0 -1
- package/dist/chunk-KBU6QQFU.js +0 -9
- package/dist/chunk-LBKMYD3M.mjs +0 -1
- package/dist/chunk-LDKESXXK.mjs +0 -3
- package/dist/chunk-MZOVDLYL.js +0 -1
- package/dist/chunk-N3EIZN65.js +0 -1
- package/dist/chunk-NBLJPT54.mjs +0 -1
- package/dist/chunk-NERY274X.js +0 -1
- package/dist/chunk-NNQWQOC5.mjs +0 -1
- package/dist/chunk-NO5LW2DQ.mjs +0 -1
- package/dist/chunk-OCAX2KJQ.js +0 -4
- package/dist/chunk-OTDF6PZK.js +0 -1
- package/dist/chunk-P3AXSRLG.mjs +0 -1
- package/dist/chunk-Q4CKLXWA.js +0 -1
- package/dist/chunk-QMLIXLZJ.mjs +0 -4
- package/dist/chunk-QXHL67FG.mjs +0 -1
- package/dist/chunk-TGPS3SRR.mjs +0 -1
- package/dist/chunk-TMISJEGL.js +0 -1
- package/dist/chunk-TRJWRZZD.js +0 -1
- package/dist/chunk-TRQN2SFW.mjs +0 -59
- package/dist/chunk-UGXSKZVM.js +0 -1
- package/dist/chunk-V435QKZB.js +0 -3
- package/dist/chunk-V6SWUCTS.js +0 -2
- package/dist/chunk-VQWZHPWI.mjs +0 -1
- package/dist/chunk-X3NB7STJ.js +0 -1
- package/dist/chunk-XOH7YAYL.js +0 -1
- package/dist/chunk-Y5HZAMND.mjs +0 -9
- package/dist/chunk-Y7I5QDCN.mjs +0 -1
- package/dist/chunk-YCDB5TA6.js +0 -4
- package/dist/chunk-YE357WVA.js +0 -1
- package/dist/chunk-YVYB4YCI.js +0 -1
- package/dist/lists-CvG_iVK3.d.mts +0 -148
- package/dist/lists-UTp_tk7B.d.ts +0 -148
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {PluginKey}from'prosemirror-state';var i={Highest:0,High:50,Default:100,Low:150,Lowest:200};function u(n){return e=>{let t={...n.defaultOptions,...e};return {type:"extension",config:{name:n.name,priority:n.priority??i.Default,options:t},onSchemaReady(o){return n.onSchemaReady(o,t)}}}}function d(n){return e=>{let t={...n.defaultOptions,...e},o=typeof n.nodeSpec=="function"?n.nodeSpec(t):n.nodeSpec;return {type:"node",config:{name:n.name,priority:n.priority??i.Default,options:t,schemaNodeName:n.schemaNodeName,nodeSpec:o},onSchemaReady(r){return n.onSchemaReady?.(r,t)??{}}}}}function g(n){return e=>{let t={...n.defaultOptions,...e},o=typeof n.markSpec=="function"?n.markSpec(t):n.markSpec;return {type:"mark",config:{name:n.name,priority:n.priority??i.Default,options:t,schemaMarkName:n.schemaMarkName,markSpec:o},onSchemaReady(r){return n.onSchemaReady?.(r,t)??{}}}}}var s=new PluginKey("suggestionMode"),S="suggestionModeApplied",f="suggestionModeBypass";var p=Date.now();function x(){return p++}function M(n){let e=s.getState(n);return e?.active?{revisionId:x(),author:e.author,date:new Date().toISOString()}:null}export{i as a,u as b,d as c,g as d,s as e,S as f,f as g,x as h,M as i};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';var l=new Set,d=new Map,y=new Set,f=new Map,w=new Set,p=new Set,u=false;function m(t,n){let e=t instanceof Error?t.message:String(t),o=new Error(`[font] ${n}: ${e}`,{cause:t});if(p.size>0)for(let i of p)try{i(o);}catch(a){console.error("Font error subscriber threw:",a);}else console.warn(o.message);}function x(t,n="normal"){return `${t.trim()}|${n}`}function P(t,n=[400,700],e=["normal","italic"]){let o=encodeURIComponent(t),i=[];for(let s of e){let r=s==="italic"?1:0;for(let c of n)i.push(`${r},${c}`);}i.sort();let a=i.join(";");return `https://fonts.googleapis.com/css2?family=${o}:ital,wght@${a}&display=swap`}async function h(t,n){if(typeof document>"u")return false;let e=t.trim();if(l.has(e))return true;let o=d.get(e);if(o)return o;let i=(async()=>{u=true;try{let a=P(e,n?.weights,n?.styles),s=document.createElement("link");return s.rel="stylesheet",s.href=a,await new Promise(c=>{s.onload=()=>c(!0),s.onerror=()=>c(!1),document.head.appendChild(s),setTimeout(()=>c(!1),5e3);})?(await b(e,3e3),l.add(e),F([e]),!0):!1}catch(a){return m(a,`failed to load "${e}"`),false}finally{d.delete(e),d.size===0&&f.size===0&&(u=false);}})();return d.set(e,i),i}async function A(t,n){let e=t.filter(o=>!l.has(o.trim()));e.length!==0&&await Promise.all(e.map(o=>h(o,n)));}function T(t){return l.has(t.trim())}function z(){return u}function G(){return Array.from(l)}function U(t){return w.add(t),()=>{w.delete(t);}}function F(t){for(let n of w)try{n(t);}catch(e){m(e,"load callback threw");}}function I(t){return p.add(t),()=>{p.delete(t);}}async function b(t,n){if("fonts"in document)try{let e=`400 16px "${t}"`;return await Promise.race([document.fonts.load(e),new Promise(o=>setTimeout(o,n))]),document.fonts.check(e)}catch{}return await new Promise(e=>setTimeout(e,100)),true}function M(t,n="sans-serif"){if(typeof document>"u")return false;let e=(i,a)=>{let r=document.createElement("canvas").getContext("2d");if(!r)return false;r.textBaseline="top";let c="abcdefghijklmnopqrstuvwxyz0123456789";r.font=`72px ${a}`;let g=r.measureText(c).width;return r.font=`72px "${i}", ${a}`,r.measureText(c).width!==g};return e(t,n)?true:e(t,n==="sans-serif"?"serif":"sans-serif")}async function R(t,n,e){if(typeof document>"u")return false;let o=t.trim(),i=x(o,e?.weight);if(y.has(i))return true;let a=f.get(i);if(a)return a;let s=(async()=>{u=true;try{let r=new Blob([n],{type:"font/ttf"}),c=URL.createObjectURL(r),g=document.createElement("style");return g.textContent=`
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: "${o}";
|
|
4
|
+
src: url(${c}) format('truetype');
|
|
5
|
+
font-weight: ${e?.weight??"normal"};
|
|
6
|
+
font-display: swap;
|
|
7
|
+
}
|
|
8
|
+
`,document.head.appendChild(g),await b(o,3e3),y.add(i),l.add(o),F([o]),!0}catch(r){return m(r,`failed to load "${o}" from buffer`),false}finally{f.delete(i),d.size===0&&f.size===0&&(u=false);}})();return f.set(i,s),s}function C(t){let n=t.split("?")[0].split("#")[0].toLowerCase();return n.endsWith(".woff2")?"woff2":n.endsWith(".woff")?"woff":n.endsWith(".otf")?"opentype":"truetype"}async function $(t,n,e){if(typeof document>"u")return false;if(/[<>]/.test(n))return m(new Error(`invalid src URL for "${t}": contains '<' or '>'`),"rejected src"),false;let o=t.trim(),i=x(o,e?.weight);if(y.has(i))return true;let a=f.get(i);if(a)return a;let s=(async()=>{u=true;try{let r=document.createElement("style");return r.textContent=`
|
|
9
|
+
@font-face {
|
|
10
|
+
font-family: "${o}";
|
|
11
|
+
src: url(${JSON.stringify(n)}) format('${C(n)}');
|
|
12
|
+
font-weight: ${e?.weight??"normal"};
|
|
13
|
+
font-display: swap;
|
|
14
|
+
}
|
|
15
|
+
`,document.head.appendChild(r),await b(o,3e3),y.add(i),l.add(o),F([o]),!0}catch(r){return m(r,`failed to load "${o}" from ${n}`),false}finally{f.delete(i),d.size===0&&f.size===0&&(u=false);}})();return f.set(i,s),s}async function D(t){!t||t.length===0||await Promise.all(t.map(n=>$(n.family,n.src,{weight:n.weight})));}var k={Calibri:"Carlito",Cambria:"Caladea",Arial:"Arimo","Times New Roman":"Tinos","Courier New":"Cousine",Garamond:"EB Garamond","Book Antiqua":"EB Garamond",Georgia:"Tinos",Verdana:"Open Sans",Tahoma:"Open Sans","Trebuchet MS":"Source Sans Pro","Century Gothic":"Poppins","Franklin Gothic":"Libre Franklin",Palatino:"EB Garamond","Palatino Linotype":"EB Garamond","Lucida Sans":"Open Sans","Segoe UI":"Open Sans",Impact:"Anton","Comic Sans MS":"Comic Neue",Consolas:"Inconsolata","Lucida Console":"Inconsolata",Monaco:"Fira Code"};function S(t){let n=t.trim();return k[n]||n}async function E(t){let n=t.trim(),e=S(n);if(e!==n){let o=await h(e);return o&&l.add(n),o}return h(e)}async function v(t){let n=[...new Set(t.map(e=>e.trim()))];await Promise.all(n.map(e=>E(e)));}async function W(){await A(["Carlito","Caladea","Arimo","Tinos","Cousine","EB Garamond"]);}function B(t){let n=new Set,e=t;if(!e?.package)return n;let o=e.package?.document?.content;if(Array.isArray(o)){for(let a of o)if(a?.type==="paragraph"&&Array.isArray(a.content)){for(let s of a.content)if(s?.type==="run"&&s.formatting?.fontFamily){let{ascii:r,hAnsi:c}=s.formatting.fontFamily;r&&n.add(r),c&&c!==r&&n.add(c);}}}let i=e.package?.styles?.styles;if(Array.isArray(i)){for(let a of i)if(a?.runProperties?.fontFamily){let{ascii:s,hAnsi:r}=a.runProperties.fontFamily;s&&n.add(s),r&&r!==s&&n.add(r);}}return n}async function O(t){let n=B(t);n.size!==0&&await v(Array.from(n));}async function j(t){if(t instanceof ArrayBuffer)return t;if(t instanceof Uint8Array){let n=new ArrayBuffer(t.byteLength);return new Uint8Array(n).set(t),n}if(t instanceof Blob)return t.arrayBuffer();throw new TypeError(`Unsupported DocxInput type: ${typeof t}`)}exports.a=h;exports.b=A;exports.c=T;exports.d=z;exports.e=G;exports.f=U;exports.g=I;exports.h=M;exports.i=R;exports.j=$;exports.k=D;exports.l=k;exports.m=S;exports.n=E;exports.o=v;exports.p=W;exports.q=B;exports.r=O;exports.s=j;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {u,E}from'./chunk-6Y6LON6Y.mjs';import {b,a,c}from'./chunk-QPFJJPIC.mjs';import {c as c$1,e}from'./chunk-VW22RZ6C.mjs';function We(e){return !b(e.wrapType)&&e.wrapType!=="topAndBottom"}function Re(e){return e.wrapType==="behind"}function Ze(e){return a(e.wrapType)?true:e.displayMode==="float"}function Y(e){return b(e.wrapType)||e.wrapType==="topAndBottom"?false:c(e.wrapType)?true:e.displayMode==="float"&&e.cssFloat!=="none"}function $e(e){return e==="left"?"right":e==="right"?"left":"bothSides"}function v(e,n,t){if(!(!e||e<=0)){if(n==="pct")return t*e/5e3;if(!n||n==="dxa"||n==="auto")return c$1(e)}}function H(e){return Math.max(1,...e.rows.map(n=>n.cells.reduce((t,o)=>t+Math.max(1,o.colSpan??1),0)))}function _(e,n,t){if(n<=0)return [];let o=t>0?t/n:0;if(e.length===0)return Array(n).fill(o);let r=e.slice(0,n),i=n-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(n).fill(o);if(l===0)return r;let f=Math.max(0,t-h),d=f>0?f/l:h/Math.max(1,n-l);return r.map(g=>g>0?g:d)}var L=7,D=0;function le(e,n){if(e.kind!=="paragraph"||n.kind!=="paragraph")return "totalHeight"in n?n.totalHeight:"height"in n?n.height:0;let t=e.runs.filter(l=>l.kind!=="text"||l.text.length>0);if(!(n.lines.length===1&&t.length>0&&t.every(l=>l.kind==="image")))return n.totalHeight;let r=t.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 n=e?.borders?.top?.width??0,t=e?.borders?.bottom?.width??0;return n+t}function X(e,n,t){let o=e.columnWidths??[],r=v(e.width,e.widthType,n),i=H(e),h=r??n;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:v(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=>t(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??D,ce=F?.padding?.bottom??D;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||n;return {kind:"table",rows:f,columnWidths:o,totalWidth:g,totalHeight:d}}var pe=4;function ge(e,n,t){let o=Array.isArray(n)?n[0]??0:n,r=he(e,o,t),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(n)?n[u]??o:n,b=t(s,m,x,p);return "totalHeight"in b&&(s.kind==="table"&&s.floating||(p+=b.totalHeight)),b})}function he(e,n,t){let o=[];for(let r=0;r<e.length;r++){let i=e[r];switch(i.kind){case "paragraph":fe(i,r,n,o);break;case "table":de(i,r,n,t,o);break;case "textBox":me(i,r,n,o);break}}return o}function N(e$1,n,t,o,r,i){let h=0,l=0,f=e$1?.horizontal;if(f?.align==="left")h=t+r;else if(f?.align==="right")l=t+o;else if(f?.posOffset!==void 0){let d=e(f.posOffset);d<i/2?h=d+t+r:l=i-d+o;}else n==="left"?h=t+r:n==="right"&&(l=t+o);return u(h,l,i)}function U(e){let n=e?.vertical?.relativeTo;return n==="margin"||n==="page"}function fe(e$1,n,t,o){for(let r of e$1.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=e(c.posOffset));let p=g+i.height,{leftMargin:a,rightMargin:s}=N(i.position,i.cssFloat,i.width,f,d,t);(a>0||s>0)&&o.push({leftMargin:a,rightMargin:s,topY:g-h,bottomY:p+l,anchorBlockIndex:n,isMarginRelative:U(i.position)});}}function de(e,n,t,o,r){let i=e.floating;if(!i)return;let h=X(e,t,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=t-l:i.tblpXSpec==="center"&&(a=(t-l)/2):e.justification==="center"?a=(t-l)/2:e.justification==="right"&&(a=t-l);let s=0,u$1=0;a<t/2?s=a+l+g:u$1=t-a+d,{leftMargin:s,rightMargin:u$1}=u(s,u$1,t);let x=i.tblpY??0,m=x+f;r.push({leftMargin:s,rightMargin:u$1,topY:x-c,bottomY:m+p,anchorBlockIndex:n});}function me(e$1,n,t,o){if(!E(e$1)||b(e$1.wrapType)||e$1.wrapType==="topAndBottom")return;let r=e$1.width??0,i=e$1.height??0;if(r<=0||i<=0)return;let h=e$1.distTop??0,l=e$1.distBottom??0,f=e$1.distLeft??12,d=e$1.distRight??12,g=0;e$1.position?.vertical?.posOffset!==void 0&&(g=e(e$1.position.vertical.posOffset));let c=g+i,{leftMargin:p,rightMargin:a}=N(e$1.position,e$1.cssFloat,r,f,d,t);p<=0&&a<=0||o.push({leftMargin:p,rightMargin:a,topY:g-h,bottomY:c+l,anchorBlockIndex:n,isMarginRelative:U(e$1.position)});}function xe(e,n){let t=[];for(let o of e){let r=t.find(i=>i.some(h=>Math.abs(h.anchorBlockIndex-o.anchorBlockIndex)<=n&&o.topY<h.bottomY&&o.bottomY>h.topY));r?r.push(o):t.push([o]);}return t}function O(e,n){for(let t of e){let o=Math.min(...t.map(r=>r.anchorBlockIndex));for(let r of t)n.push({...r,anchorBlockIndex:o});}}var K=2e4,y=new Map;function j(e,n,t){return `${e}|${n}|${t||0}`}function G(){for(;y.size>K;){let e=y.keys().next().value;if(e===void 0)break;y.delete(e);}}function be(e,n,t=0){let o=j(e,n,t),r=y.get(o);if(r!==void 0)return y.delete(o),y.set(o,r),r.width}function Te(e,n,t,o){let r=j(e,n,t);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,n,t=false,o=false){return `${e}|${n}|${t}|${o}`}function ee(){for(;M.size>J;){let e=M.keys().next().value;if(e===void 0)break;M.delete(e);}}function Me(e,n,t=false,o=false){let r=Q(e,n,t,o),i=M.get(r);if(i!==void 0)return M.delete(r),M.set(r,i),i}function we(e,n,t,o,r){let i=Q(e,n,t,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 A(e){let n=[];for(let o of e.runs)o.kind==="text"?n.push(`t:${o.text}|${o.fontFamily}|${o.fontSize}|${o.bold}|${o.italic}`):o.kind==="tab"?n.push(`tab:${o.width}`):o.kind==="image"?n.push(`img:${o.width}x${o.height}`):o.kind==="lineBreak"&&n.push("br");let t=e.attrs;if(t){t.alignment&&n.push(`align:${t.alignment}`),t.indent&&n.push(`indent:${t.indent.left}|${t.indent.right}|${t.indent.firstLine}|${t.indent.hanging}`),t.spacing&&n.push(`spacing:${t.spacing.before}|${t.spacing.after}|${t.spacing.line}|${t.spacing.lineRule}`),t.defaultFontSize!=null&&n.push(`dfs:${t.defaultFontSize}`),t.defaultFontFamily!=null&&n.push(`dff:${t.defaultFontFamily}`);let o=t.borders;if(o){let r=i=>i?`${i.width??""},${i.style??""},${i.color??""}`:"";n.push(`bdr:${r(o.top)}|${r(o.bottom)}|${r(o.left)}|${r(o.right)}`);}t.suppressEmptyParagraphHeight&&n.push("sup"),t.pPrIns&&n.push(`pins:${t.pPrIns.revisionId}`),t.pPrDel&&n.push(`pdel:${t.pPrDel.revisionId}`);}return n.join("||")}function re(){for(;w.size>oe;){let e=w.keys().next().value;if(e===void 0)break;w.delete(e);}}function ke(e,n){let t=A(e),o=w.get(t);if(o!==void 0&&o.maxWidth===n)return w.delete(t),w.set(t,o),o.measure}function Se(e,n,t){let o=A(e);w.set(o,{measure:t,maxWidth:n}),re();}function ie(){w.clear();}function Ie(e){!Number.isFinite(e)||e<=0||(oe=e,re());}function ae(){return w.size}function ve(){V(),te(),ie();}function Ae(){return q()+ne()+ae()}export{ae as A,ve as B,Ae as C,v as a,H as b,_ as c,We as d,Re as e,Ze as f,Y as g,$e as h,le as i,X as j,ge as k,be as l,Te as m,V as n,Fe as o,q as p,Me as q,we as r,te as s,Ce as t,ne as u,A as v,ke as w,Se as x,ie as y,Ie as z};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {c,i,j}from'./chunk-
|
|
1
|
+
import {c,i,j}from'./chunk-WLHNIXWC.mjs';var u={image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",header:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",footer:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",footnotes:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes",endnotes:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes",styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",numbering:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",fontTable:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",settings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings",webSettings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings",oleObject:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/oleObject",chart:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",diagramData:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData",officeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",coreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",extendedProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",customProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",customXml:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",commentsExtended:"http://schemas.microsoft.com/office/2011/relationships/commentsExtended",commentsIds:"http://schemas.microsoft.com/office/2016/09/relationships/commentsIds",commentsExtensible:"http://schemas.microsoft.com/office/2018/08/relationships/commentsExtensible"};function x(e){let t=new Map;if(!e||e.trim().length===0)return t;let i$1=c(e);if(!i$1)return console.warn("Failed to parse relationships XML"),t;let f=i(i$1);for(let o of f){let l=o.name||"";if(!l.endsWith("Relationship")&&!l.includes(":Relationship"))continue;let n=j(o,null,"Id"),r=j(o,null,"Type"),a=j(o,null,"Target"),c=j(o,null,"TargetMode");if(!n||!r||!a){console.warn("Relationship missing required attributes:",{id:n,type:r,target:a});continue}let p={id:n,type:r,target:a};c==="External"?p.targetMode="External":c==="Internal"&&(p.targetMode="Internal"),t.set(n,p);}return t}function d(e){return e.type===u.hyperlink&&e.targetMode==="External"}function R(e,t){return e.get(t)?.target}
|
|
2
2
|
export{u as a,x as b,d as c,R as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkC45EFOVP_js=require('./chunk-C45EFOVP.js'),chunk4Q2IP5FW_js=require('./chunk-4Q2IP5FW.js');function L(t){return t.attrs.href||""}function D(t){let e=t.filter(n=>n.type.name!=="hyperlink");return e.length===0?"":e.map(n=>`${n.type.name}:${JSON.stringify(n.attrs)}`).sort().join("|")}function x(t){let e={};for(let n of t)switch(n.type.name){case "bold":e.bold=true,e.boldCs=true;break;case "italic":e.italic=true,e.italicCs=true;break;case "underline":{let i=n.attrs;e.underline={style:i.style||"single",color:i.color};break}case "strike":n.attrs.double?e.doubleStrike=true:e.strike=true;break;case "textColor":{let i=n.attrs;e.color={rgb:i.rgb,themeColor:i.themeColor,themeTint:i.themeTint,themeShade:i.themeShade};break}case "highlight":e.highlight=n.attrs.color;break;case "fontSize":e.fontSize=n.attrs.size,e.fontSizeCs=n.attrs.size;break;case "fontFamily":{let i=n.attrs;e.fontFamily={ascii:i.ascii,hAnsi:i.hAnsi,eastAsia:i.eastAsia||void 0,cs:i.cs||i.ascii||void 0,asciiTheme:i.asciiTheme,hAnsiTheme:i.hAnsiTheme||void 0,eastAsiaTheme:i.eastAsiaTheme||void 0,csTheme:i.csTheme||void 0};break}case "superscript":e.vertAlign="superscript";break;case "subscript":e.vertAlign="subscript";break;case "allCaps":e.allCaps=true;break;case "smallCaps":e.smallCaps=true;break;case "characterSpacing":{n.attrs.spacing!=null&&(e.spacing=n.attrs.spacing),n.attrs.position!=null&&(e.position=n.attrs.position),n.attrs.scale!=null&&(e.scale=n.attrs.scale),n.attrs.kerning!=null&&(e.kerning=n.attrs.kerning);break}case "emboss":e.emboss=true;break;case "imprint":e.imprint=true;break;case "textShadow":e.shadow=true;break;case "emphasisMark":e.emphasisMark=n.attrs.type||"dot";break;case "textOutline":e.outline=true;break;case "hidden":e.hidden=true;break;case "rtl":e.rtl=true;break;case "textEffect":e.effect=n.attrs.effect||"blinkBackground";break}return e}function H(t){let e=t.attrs.href;return e?.startsWith("#")?{type:"hyperlink",anchor:e.substring(1),tooltip:t.attrs.tooltip||void 0,children:[]}:{type:"hyperlink",href:e,tooltip:t.attrs.tooltip||void 0,rId:t.attrs.rId||void 0,children:[]}}function P(t,e){let n=e.marks.filter(i=>i.type.name!=="hyperlink");e.isText&&e.text?t.children.push(w(e.text,n)):e.type.name==="tab"?t.children.push(v()):e.type.name==="hardBreak"&&t.children.push(M());}function w(t,e){let n=x(e),i={type:"text",text:t};return {type:"run",formatting:Object.keys(n).length>0?n:void 0,content:[i]}}function O(t,e){let n=t.content[t.content.length-1];n&&n.type==="text"?n.text+=e:t.content.push({type:"text",text:e});}function M(){return {type:"run",content:[{type:"break",breakType:"textWrapping"}]}}function v(){return {type:"run",content:[{type:"tab"}]}}function W(t,e){let n=t.attrs,i=e&&e.length>0?x(e):void 0,o=n.displayText||"";if(!o)switch(n.fieldType){case "PAGE":o="1";break;case "NUMPAGES":o="1";break;default:o=" ";break}let r={type:"run",content:[{type:"text",text:o}],...i&&Object.keys(i).length>0?{formatting:i}:{}};return n.fieldKind==="complex"?{type:"complexField",instruction:n.instruction,fieldType:n.fieldType,fieldCode:[],fieldResult:[r],fldLock:n.fldLock||void 0,dirty:n.dirty||void 0}:{type:"simpleField",instruction:n.instruction,fieldType:n.fieldType,content:[r],fldLock:n.fldLock||void 0,dirty:n.dirty||void 0}}function j(t){let e=t.attrs;return {type:"mathEquation",display:e.display||"inline",ommlXml:e.ommlXml,plainText:e.plainText||void 0}}function R(t){let e=t.attrs,i={type:e.wrapType||"inline"};e.distTop!==void 0&&(i.distT=chunk4Q2IP5FW_js.f(e.distTop)),e.distBottom!==void 0&&(i.distB=chunk4Q2IP5FW_js.f(e.distBottom)),e.distLeft!==void 0&&(i.distL=chunk4Q2IP5FW_js.f(e.distLeft)),e.distRight!==void 0&&(i.distR=chunk4Q2IP5FW_js.f(e.distRight)),e.wrapText&&(i.wrapText=e.wrapText);let o={type:"image",rId:e.rId||"",src:e.src,alt:e.alt||void 0,title:e.title||void 0,size:{width:chunk4Q2IP5FW_js.f(e.width||0),height:chunk4Q2IP5FW_js.f(e.height||0)},wrap:i};if(e.transform){let a=e.transform,l={},f=a.match(/rotate\(([-\d.]+)deg\)/);f&&(l.rotation=parseFloat(f[1])),a.includes("scaleX(-1)")&&(l.flipH=true),a.includes("scaleY(-1)")&&(l.flipV=true),(l.rotation||l.flipH||l.flipV)&&(o.transform=l);}if(e.position?.horizontal&&e.position?.vertical){let a=e.position;o.position={horizontal:{relativeTo:a.horizontal.relativeTo||"column",alignment:a.horizontal.align,posOffset:a.horizontal.posOffset},vertical:{relativeTo:a.vertical.relativeTo||"paragraph",alignment:a.vertical.align,posOffset:a.vertical.posOffset}};}if(e.borderWidth&&e.borderWidth>0){let a={solid:"solid",dotted:"dot",dashed:"dash",double:"solid",groove:"solid",ridge:"solid",inset:"solid",outset:"solid"};o.outline={width:chunk4Q2IP5FW_js.f(e.borderWidth),color:e.borderColor?{rgb:e.borderColor.replace("#","")}:void 0,style:e.borderStyle&&a[e.borderStyle]||"solid"};}if(e.hlinkHref&&(o.hlinkHref=e.hlinkHref),e.cropTop!==void 0||e.cropRight!==void 0||e.cropBottom!==void 0||e.cropLeft!==void 0){let a={};e.cropTop!==void 0&&e.cropTop!==null&&(a.top=e.cropTop),e.cropRight!==void 0&&e.cropRight!==null&&(a.right=e.cropRight),e.cropBottom!==void 0&&e.cropBottom!==null&&(a.bottom=e.cropBottom),e.cropLeft!==void 0&&e.cropLeft!==null&&(a.left=e.cropLeft),Object.keys(a).length>0&&(o.crop=a);}if(e.opacity!==void 0&&e.opacity!==null&&e.opacity<1&&(o.opacity=e.opacity),e.layoutInCell!==void 0&&e.layoutInCell!==null&&(o.layoutInCell=e.layoutInCell),e.allowOverlap!==void 0&&e.allowOverlap!==null&&(o.allowOverlap=e.allowOverlap),e.effectExtentTop||e.effectExtentBottom||e.effectExtentLeft||e.effectExtentRight){let a={};e.effectExtentTop&&(a.top=chunk4Q2IP5FW_js.f(e.effectExtentTop)),e.effectExtentBottom&&(a.bottom=chunk4Q2IP5FW_js.f(e.effectExtentBottom)),e.effectExtentLeft&&(a.left=chunk4Q2IP5FW_js.f(e.effectExtentLeft)),e.effectExtentRight&&(a.right=chunk4Q2IP5FW_js.f(e.effectExtentRight)),Object.keys(a).length>0&&(o.padding=a);}return {type:"run",content:[{type:"drawing",image:o}]}}function S(t){let e=t.attrs,n={type:"shape",shapeType:e.shapeType||"rect",id:e.shapeId||void 0,size:{width:e.width?chunk4Q2IP5FW_js.f(e.width):0,height:e.height?chunk4Q2IP5FW_js.f(e.height):0}};if(e.fillType==="gradient"&&e.gradientStops)try{let o=JSON.parse(e.gradientStops);n.fill={type:"gradient",gradient:{type:e.gradientType||"linear",angle:e.gradientAngle||void 0,stops:o.map(r=>({position:r.position,color:{rgb:r.color.replace("#","")}}))}};}catch{n.fill={type:"solid",color:{rgb:(e.fillColor||"000000").replace("#","")}};}else e.fillColor?n.fill={type:e.fillType||"solid",color:{rgb:e.fillColor.replace("#","")}}:e.fillType==="none"&&(n.fill={type:"none"});if(e.outlineWidth&&e.outlineWidth>0){let o={solid:"solid",dotted:"dot",dashed:"dash"};n.outline={width:chunk4Q2IP5FW_js.f(e.outlineWidth),color:e.outlineColor?{rgb:e.outlineColor.replace("#","")}:void 0,style:e.outlineStyle&&o[e.outlineStyle]||"solid"};}return {type:"run",content:[{type:"shape",shape:n}]}}function T(t){let e=t.attrs,n=$(z(t),t),i=e.bookmarks;if(i&&i.length>0){let r=i.map(l=>({type:"bookmarkStart",id:l.id,name:l.name})),a=i.map(l=>({type:"bookmarkEnd",id:l.id}));n=[...r,...n,...a];}let o={type:"paragraph",paraId:e.paraId||void 0,textId:e.textId||void 0,formatting:K(e),content:n};return e.renderedPageBreakBefore&&(o.renderedPageBreakBefore=true),e.pPrIns&&(o.pPrIns={id:e.pPrIns.revisionId,author:e.pPrIns.author,...e.pPrIns.date?{date:e.pPrIns.date}:{}}),e.pPrDel&&(o.pPrDel={id:e.pPrDel.revisionId,author:e.pPrDel.author,...e.pPrDel.date?{date:e.pPrDel.date}:{}}),e.pPrChange&&e.pPrChange.length>0&&(o.propertyChanges=e.pPrChange),e._sectionProperties?o.sectionProperties=e._sectionProperties:e.sectionBreakType&&(o.sectionProperties={sectionStart:e.sectionBreakType}),o}function $(t,e){let n=new Set;if(e.forEach(a=>{for(let l of a.marks)l.type.name==="comment"&&n.add(l.attrs.commentId);}),n.size===0)return t;let i=[],o=new Set,r=0;e.forEach(a=>{let l=new Set;for(let f of a.marks)f.type.name==="comment"&&l.add(f.attrs.commentId);for(let f of [...o])l.has(f)||(i.push({type:"commentRangeEnd",id:f}),o.delete(f));for(let f of l)o.has(f)||(i.push({type:"commentRangeStart",id:f}),o.add(f));r<t.length&&i.push(t[r]),r++;});for(let a of o)i.push({type:"commentRangeEnd",id:a});return i}function K(t){if(t._originalFormatting){let n=t._originalFormatting,i={...n};return t.alignment!==(n.alignment||void 0)&&(i.alignment=t.alignment||void 0),t.numPr!==n.numPr&&JSON.stringify(t.numPr)!==JSON.stringify(n.numPr)&&(i.numPr=t.numPr||void 0),t.styleId!==(n.styleId||void 0)&&(i.styleId=t.styleId||void 0),t.pageBreakBefore!==(n.pageBreakBefore||void 0)&&(i.pageBreakBefore=t.pageBreakBefore||void 0),t.bidi!==(n.bidi||void 0)&&(i.bidi=t.bidi||void 0),i}if(t.alignment||t.spaceBefore||t.spaceAfter||t.lineSpacing||t.indentLeft||t.indentRight||t.indentFirstLine||t.numPr||t.styleId||t.borders||t.shading||t.tabs||t.outlineLevel!=null||t.contextualSpacing||t.bidi)return {alignment:t.alignment||void 0,spaceBefore:t.spaceBefore||void 0,spaceAfter:t.spaceAfter||void 0,lineSpacing:t.lineSpacing||void 0,lineSpacingRule:t.lineSpacingRule||void 0,indentLeft:t.indentLeft||void 0,indentRight:t.indentRight||void 0,indentFirstLine:t.indentFirstLine||void 0,hangingIndent:t.hangingIndent||void 0,numPr:t.numPr||void 0,styleId:t.styleId||void 0,borders:t.borders||void 0,shading:t.shading||void 0,tabs:t.tabs||void 0,outlineLevel:t.outlineLevel??void 0,contextualSpacing:t.contextualSpacing||void 0,bidi:t.bidi||void 0}}function z(t){let e=[],n=null,i=null,o=null;return t.forEach(r=>{let a=r.marks.find(s=>s.type.name==="footnoteRef");if(a){n&&(e.push(n),n=null,i=null),o&&(e.push(o),o=null);let u={type:a.attrs.noteType==="endnote"?"endnoteRef":"footnoteRef",id:parseInt(a.attrs.id,10)||0};e.push({type:"run",content:[u]});return}let l=r.marks.find(s=>s.type.name==="insertion"),f=r.marks.find(s=>s.type.name==="deletion");if(l||f){n&&(e.push(n),n=null,i=null),o&&(e.push(o),o=null);let s=l||f,u;if(r.type.name==="image")u=R(r);else if(r.type.name==="shape")u=S(r);else {let m=r.marks.filter(h=>h.type.name!=="insertion"&&h.type.name!=="deletion"),g=x(m);u={type:"run",content:r.isText&&r.text?[{type:"text",text:r.text}]:[],...Object.keys(g).length>0?{formatting:g}:{}};}let p={id:s.attrs.revisionId,author:s.attrs.author||"Unknown",date:s.attrs.date||void 0},y=s.attrs.isMovePair===true;l?y?e.push({type:"moveTo",info:p,content:[u]}):e.push({type:"insertion",info:p,content:[u]}):y?e.push({type:"moveFrom",info:p,content:[u]}):e.push({type:"deletion",info:p,content:[u]});return}let d=r.marks.find(s=>s.type.name==="hyperlink");if(d){let s=L(d),u=o?.href||(o?.anchor?`#${o.anchor}`:"");o&&u===s?P(o,r):(n&&(e.push(n),n=null,i=null),o&&e.push(o),o=H(d),P(o,r));return}if(o&&(e.push(o),o=null),r.isText){let s=D(r.marks);n&&i===s?O(n,r.text||""):(n&&e.push(n),n=w(r.text||"",r.marks),i=s);}else r.type.name==="hardBreak"?(n&&(e.push(n),n=null,i=null),e.push(M())):r.type.name==="image"?(n&&(e.push(n),n=null,i=null),e.push(R(r))):r.type.name==="shape"?(n&&(e.push(n),n=null,i=null),e.push(S(r))):r.type.name==="tab"?(n&&(e.push(n),n=null,i=null),e.push(v())):r.type.name==="field"?(n&&(e.push(n),n=null,i=null),e.push(W(r,r.marks))):r.type.name==="sdt"?(n&&(e.push(n),n=null,i=null),e.push(V(r))):r.type.name==="math"&&(n&&(e.push(n),n=null,i=null),e.push(j(r)));}),n&&e.push(n),o&&e.push(o),e}function V(t){let e=chunkC45EFOVP_js.b(t.attrs),i=z(t).filter(o=>o.type==="run"||o.type==="hyperlink"||o.type==="simpleField"||o.type==="complexField"||o.type==="inlineSdt"||o.type==="mathEquation");return {type:"inlineSdt",properties:e,content:i}}function q(t){for(let e of t)for(let n of e.cells){let i=n.formatting?.borders;if(i){let o=i.top||i.left||i.right||i.bottom||i.insideH||i.insideV;return o?{top:i.top??o,bottom:i.bottom??o,left:i.left??o,right:i.right??o,insideH:i.insideH??i.bottom??o,insideV:i.insideV??i.right??o}:void 0}}}function J(t){let e=[],n=[],i=0;for(let o=0;o<t.childCount;o++){let r=t.child(o),a=0;r.forEach(l=>{if(l.type.name!=="tableCell"&&l.type.name!=="tableHeader")return;for(;e[o]?.[a];)a++;let f=l.attrs.rowspan||1,d=l.attrs.colspan||1;n.push({row:o,col:a,rowspan:f,colspan:d,cell:G(l)});for(let s=o;s<o+f;s++){let u=e[s]??[];e[s]=u;for(let p=a;p<a+d;p++)u[p]=true;}a+=d,i=Math.max(i,a);});}return {anchors:n,totalCols:i}}function I(t){let e=t.attrs,{anchors:n,totalCols:i}=J(t),o=new Map,r=new Map;for(let d of n){o.set(`${d.row}-${d.col}`,d);for(let s=d.row;s<d.row+d.rowspan;s++)for(let u=d.col;u<d.col+d.colspan;u++)r.set(`${s}-${u}`,d);}let a=[];for(let d=0;d<t.childCount;d++){let s=t.child(d),u=[];for(let m=0;m<i;){let g=o.get(`${d}-${m}`);if(g){let b={...g.cell.formatting??{}};g.colspan>1?b.gridSpan=g.colspan:delete b.gridSpan,g.rowspan>1?b.vMerge="restart":delete b.vMerge,u.push({...g.cell,formatting:Object.keys(b).length?b:void 0}),m+=g.colspan;continue}let h=r.get(`${d}-${m}`);if(!h){m++;continue}let k={...h.cell.formatting??{}};h.colspan>1?k.gridSpan=h.colspan:delete k.gridSpan,k.vMerge="continue",u.push({...h.cell,content:[],formatting:k}),m+=h.colspan;}let p=s.attrs,y={type:"tableRow",formatting:X(p),cells:u};p.trIns?y.structuralChange={type:"tableRowInsertion",info:{id:p.trIns.revisionId,author:p.trIns.author,...p.trIns.date?{date:p.trIns.date}:{}}}:p.trDel&&(y.structuralChange={type:"tableRowDeletion",info:{id:p.trDel.revisionId,author:p.trDel.author,...p.trDel.date?{date:p.trDel.date}:{}}}),p.trPrChange&&p.trPrChange.length>0&&(y.propertyChanges=p.trPrChange),a.push(y);}let l=U(e)||void 0;if(!l?.borders){let d=q(a);if(d)if(l)l.borders=d;else return {type:"table",columnWidths:e.columnWidths||void 0,formatting:{borders:d},rows:a}}let f={type:"table",columnWidths:e.columnWidths||void 0,formatting:l,rows:a};return e.tblPrChange&&e.tblPrChange.length>0&&(f.propertyChanges=e.tblPrChange),f}function U(t){if(t._originalFormatting){let o=t._originalFormatting,r={...o};t.styleId!==(o.styleId||void 0)&&(r.styleId=t.styleId||void 0),t.justification!==(o.justification||void 0)&&(r.justification=t.justification||void 0),t.floating!==(o.floating||void 0)&&(r.floating=t.floating||void 0),t.look!==(o.look||void 0)&&(r.look=t.look||void 0);let a=o.width?.value,l=o.width?.type;return (t.width!==a||t.widthType!==l)&&(t.width!=null||t.widthType?r.width={value:t.width??0,type:t.widthType||"dxa"}:r.width=void 0),t.cellMargins&&(r.cellMargins={top:t.cellMargins.top!=null?{value:t.cellMargins.top,type:"dxa"}:void 0,bottom:t.cellMargins.bottom!=null?{value:t.cellMargins.bottom,type:"dxa"}:void 0,left:t.cellMargins.left!=null?{value:t.cellMargins.left,type:"dxa"}:void 0,right:t.cellMargins.right!=null?{value:t.cellMargins.right,type:"dxa"}:void 0}),r}if(!(t.styleId||t.width!=null||t.widthType||t.justification||t.floating||t.cellMargins||t.look))return;let n=t.cellMargins?{top:t.cellMargins.top!=null?{value:t.cellMargins.top,type:"dxa"}:void 0,bottom:t.cellMargins.bottom!=null?{value:t.cellMargins.bottom,type:"dxa"}:void 0,left:t.cellMargins.left!=null?{value:t.cellMargins.left,type:"dxa"}:void 0,right:t.cellMargins.right!=null?{value:t.cellMargins.right,type:"dxa"}:void 0}:void 0,i;return (t.width!=null||t.widthType)&&(i={value:t.width??0,type:t.widthType||"dxa"}),{styleId:t.styleId||void 0,width:i,justification:t.justification||void 0,floating:t.floating||void 0,cellMargins:n,look:t.look||void 0}}function X(t){if(t._originalFormatting){let n=t._originalFormatting,i={...n};return t.height!==(n.height?.value||void 0)&&(i.height=t.height?{value:t.height,type:"dxa"}:void 0),t.heightRule!==(n.heightRule||void 0)&&(i.heightRule=t.heightRule||void 0),t.isHeader!==(n.header||void 0)&&(i.header=t.isHeader||void 0),i}if(t.height||t.isHeader)return {height:t.height?{value:t.height,type:"dxa"}:void 0,heightRule:t.heightRule||void 0,header:t.isHeader||void 0}}function G(t){let e=t.attrs,n=[];t.forEach(o=>{o.type.name==="paragraph"?n.push(T(o)):o.type.name==="table"&&n.push(I(o));});let i={type:"tableCell",formatting:Y(e),content:n};if(e.cellMarker){let o=e.cellMarker,r={id:o.info.revisionId,author:o.info.author,...o.info.date?{date:o.info.date}:{}};o.kind==="ins"?i.structuralChange={type:"tableCellInsertion",info:r}:o.kind==="del"?i.structuralChange={type:"tableCellDeletion",info:r}:i.structuralChange={type:"tableCellMerge",info:r,...o.vMerge?{vMerge:o.vMerge}:{},...o.vMergeOrig?{vMergeOrig:o.vMergeOrig}:{}};}return e.tcPrChange&&e.tcPrChange.length>0&&(i.propertyChanges=e.tcPrChange),i}function Y(t){if(t._originalFormatting){let i=t._originalFormatting,o={...i};if(t.colspan>1&&(o.gridSpan=t.colspan),t.width!=null&&(o.width={value:t.width,type:t.widthType||"dxa"}),t.verticalAlign!==(i.verticalAlign||void 0)&&(o.verticalAlign=t.verticalAlign||void 0),t.backgroundColor?t._originalResolvedFill===t.backgroundColor&&i.shading?o.shading=i.shading:o.shading={fill:{rgb:t.backgroundColor}}:i.shading&&(o.shading=void 0),t.borders&&(o.borders=t.borders),t.margins){let r=t.margins,a={};r.top!=null&&(a.top={value:r.top,type:"dxa"}),r.bottom!=null&&(a.bottom={value:r.bottom,type:"dxa"}),r.left!=null&&(a.left={value:r.left,type:"dxa"}),r.right!=null&&(a.right={value:r.right,type:"dxa"}),o.margins=a;}return t.textDirection!==(i.textDirection||void 0)&&(o.textDirection=t.textDirection||void 0),o}if(!(t.colspan>1||t.rowspan>1||t.width!=null||t.verticalAlign||t.backgroundColor||t.borders||t.margins||t.textDirection))return;let n;if(t.margins){let i=t.margins;n={},i.top!=null&&(n.top={value:i.top,type:"dxa"}),i.bottom!=null&&(n.bottom={value:i.bottom,type:"dxa"}),i.left!=null&&(n.left={value:i.left,type:"dxa"}),i.right!=null&&(n.right={value:i.right,type:"dxa"});}return {gridSpan:t.colspan>1?t.colspan:void 0,width:t.width!=null?{value:t.width,type:t.widthType||"dxa"}:void 0,verticalAlign:t.verticalAlign||void 0,textDirection:t.textDirection||void 0,shading:t.backgroundColor?{fill:{rgb:t.backgroundColor}}:void 0,borders:t.borders,margins:n}}function A(t){let e=t.attrs,n=[];t.forEach(l=>{l.type.name==="paragraph"&&n.push(T(l));});let i={type:"shape",shapeType:"rect",id:e.textBoxId||void 0,size:{width:e.width?chunk4Q2IP5FW_js.f(e.width):0,height:e.height?chunk4Q2IP5FW_js.f(e.height):0},textBody:{content:n.length>0?n:[{type:"paragraph",content:[]}],margins:{top:e.marginTop!=null?chunk4Q2IP5FW_js.f(e.marginTop):void 0,bottom:e.marginBottom!=null?chunk4Q2IP5FW_js.f(e.marginBottom):void 0,left:e.marginLeft!=null?chunk4Q2IP5FW_js.f(e.marginLeft):void 0,right:e.marginRight!=null?chunk4Q2IP5FW_js.f(e.marginRight):void 0}}},o=chunkC45EFOVP_js.f(e);o&&(i.position=o);let r=chunkC45EFOVP_js.g(e);if(r&&(i.wrap=r),e.fillColor&&(i.fill={type:"solid",color:{rgb:e.fillColor.replace("#","")}}),e.outlineWidth&&e.outlineWidth>0){let l={solid:"solid",dotted:"dot",dashed:"dash"};i.outline={width:chunk4Q2IP5FW_js.f(e.outlineWidth),color:e.outlineColor?{rgb:e.outlineColor.replace("#","")}:void 0,style:e.outlineStyle&&l[e.outlineStyle]||"solid"};}return {type:"run",content:[{type:"shape",shape:i}]}}function _(t){return {type:"paragraph",content:[A(t)]}}function Q(t,e){let i={content:B(t),finalSectionProperties:e?.package.document.finalSectionProperties,sections:e?.package.document.sections,comments:e?.package.document.comments};return e?{...e,package:{...e.package,document:i}}:{package:{document:i}}}function B(t){let e=[],n=[],i=()=>{for(let o of n)e.push({type:"paragraph",content:[o]});n=[];};return t.forEach(o=>{if(o.type.name==="paragraph"){let r=T(o);n.length>0&&(r.content=[...n,...r.content],n=[]),e.push(r);}else if(o.type.name==="table")i(),e.push(I(o));else if(o.type.name==="blockSdt")i(),e.push(Z(o));else if(o.type.name==="textBox"){let r=o.attrs;chunkC45EFOVP_js.e(r)?n.push(A(o)):(i(),e.push(_(o)));}else o.type.name==="pageBreak"&&(i(),e.push(ee()));}),i(),e}function Z(t){return {type:"blockSdt",properties:chunkC45EFOVP_js.b(t.attrs),content:B(t)}}function ee(){return {type:"paragraph",content:[{type:"run",content:[{type:"break",breakType:"page"}]}]}}function xe(t,e){return Q(e,t)}function ke(t){return B(t)}exports.a=Q;exports.b=xe;exports.c=ke;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var F={FFFF00:"yellow","00FF00":"green","00FFFF":"cyan",FF00FF:"magenta","0000FF":"blue",FF0000:"red","00008B":"darkBlue","008080":"darkCyan","008000":"darkGreen",800080:"darkMagenta","8B0000":"darkRed",808e3:"darkYellow",808080:"darkGray",C0C0C0:"lightGray","000000":"black",FFFFFF:"white"};function a(e){let r=e.replace(/^#/,"").toUpperCase();return F[r]||null}exports.a=F;exports.b=a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {c}from'./chunk-
|
|
1
|
+
import {c}from'./chunk-KRN6YSR2.mjs';import {a as a$1}from'./chunk-ARHPXIBJ.mjs';import {b,a as a$2}from'./chunk-CUY2THAO.mjs';import {h as h$1,s}from'./chunk-MERJFGEP.mjs';import {f}from'./chunk-44JKHPGF.mjs';import {a}from'./chunk-QYUPLKLP.mjs';var P=class o{constructor(t){a(this,"_document");a(this,"_pendingVariables");t instanceof ArrayBuffer||ArrayBuffer.isView(t)?this._document={package:{document:{content:[]}},originalBuffer:t instanceof ArrayBuffer?t:t.buffer}:this._document=t,this._pendingVariables={};}static async fromBuffer(t){let e=await f(t);return new o(e)}static fromDocument(t){return new o(t)}getDocument(){return this._document}getText(){let t=this._document.package.document;return this._getBodyText(t)}getFormattedText(){let t=[],e=this._document.package.document;for(let n of e.content)n.type==="paragraph"&&this._extractParagraphSegments(n,t);return t}getVariables(){return a$1(this._document)}getStyles(){let t=this._document.package.styles;if(!t?.styles)return [];let e=[];for(let[n,r]of Object.entries(t.styles))if(typeof r=="object"&&r!==null){let a=r;e.push({id:n,name:a.name||n,type:a.type==="numbering"?"paragraph":a.type||"paragraph",builtIn:a.default});}return e}getPageCount(){let t=this.getWordCount();return Math.max(1,Math.ceil(t/500))}getWordCount(){return this.getText().split(/\s+/).filter(n=>n.length>0).length}getCharacterCount(t=true){let e=this.getText();return t?e.length:e.replace(/\s/g,"").length}getParagraphCount(){return this._document.package.document.content.filter(t=>t.type==="paragraph").length}getTableCount(){return this._document.package.document.content.filter(t=>t.type==="table").length}getAgentContext(t=100){let e=this._document.package.document,n=e.content.filter(i=>i.type==="paragraph"),r=n.map((i,s)=>{let c=this._getParagraphText(i),p=i.formatting?.styleId;return {index:s,preview:c.slice(0,t),style:p,isHeading:p?.toLowerCase().includes("heading")||false,headingLevel:this._parseHeadingLevel(p),isListItem:!!i.listRendering,isEmpty:c.trim().length===0}}),a=(e.sections||[]).map((i,s)=>({index:s,paragraphCount:i.content?.length||0,pageSize:i.properties?.pageWidth&&i.properties?.pageHeight?{width:i.properties.pageWidth,height:i.properties.pageHeight}:void 0,isLandscape:i.properties?.orientation==="landscape",hasHeader:!!i.properties?.headerReferences?.length,hasFooter:!!i.properties?.footerReferences?.length}));return {paragraphCount:n.length,wordCount:this.getWordCount(),characterCount:this.getCharacterCount(),variables:this.getVariables(),variableCount:this.getVariables().length,availableStyles:this.getStyles(),outline:r,sections:a,hasTables:this.getTableCount()>0,hasImages:this._hasImages(),hasHyperlinks:this._hasHyperlinks()}}insertText(t,e,n={}){let r={type:"insertText",position:t,text:e,formatting:n.formatting};return this._executeCommand(r)}replaceRange(t,e,n={}){let r={type:"replaceText",range:t,text:e,formatting:n.formatting};return this._executeCommand(r)}deleteRange(t){let e={type:"deleteText",range:t};return this._executeCommand(e)}applyFormatting(t,e){let n={type:"formatText",range:t,formatting:e};return this._executeCommand(n)}applyStyle(t,e){let n={type:"applyStyle",paragraphIndex:t,styleId:e};return this._executeCommand(n)}applyParagraphFormatting(t,e){let n={type:"formatParagraph",paragraphIndex:t,formatting:e};return this._executeCommand(n)}insertTable(t,e,n,r={}){let a={type:"insertTable",position:t,rows:e,columns:n,data:r.data,hasHeader:r.hasHeader};return this._executeCommand(a)}insertImage(t,e,n={}){let r={type:"insertImage",position:t,src:e,width:n.width,height:n.height,alt:n.alt};return this._executeCommand(r)}insertHyperlink(t,e,n={}){let r={type:"insertHyperlink",range:t,url:e,displayText:n.displayText,tooltip:n.tooltip};return this._executeCommand(r)}removeHyperlink(t){let e={type:"removeHyperlink",range:t};return this._executeCommand(e)}insertParagraphBreak(t){let e={type:"insertParagraphBreak",position:t};return this._executeCommand(e)}mergeParagraphs(t,e){let n={type:"mergeParagraphs",paragraphIndex:t,count:e};return this._executeCommand(n)}setVariable(t,e){return this._pendingVariables[t]=e,this}setVariables(t){for(let[e,n]of Object.entries(t))this._pendingVariables[e]=n;return this}getPendingVariables(){return {...this._pendingVariables}}clearPendingVariables(){return this._pendingVariables={},this}async applyVariables(t){let e={...this._pendingVariables,...t};if(Object.keys(e).length===0)return this;let n=this._document.originalBuffer;if(!n)throw new Error("Cannot apply variables: no original buffer for processing");let{processTemplate:r}=await import('./processTemplate-GPFDLQMX.mjs'),a=r(n,e),i=await f(a),s=new o(i);return s._pendingVariables={},s}async toBuffer(t){if(this._document.originalBuffer){if(t?.selective){let n=await c(this._document,this._document.originalBuffer,t.selective);if(n)return this._document.originalBuffer=n,n}let e=await h$1(this._document);return this._document.originalBuffer=e,e}return s(this._document)}async toBlob(t="application/vnd.openxmlformats-officedocument.wordprocessingml.document"){let e=await this.toBuffer();return new Blob([e],{type:t})}executeCommands(t){return new o(b(this._document,t))}_executeCommand(t){let e=new o(a$2(this._document,t));return e._pendingVariables={...this._pendingVariables},e}_getBodyText(t){let e=[];for(let n of t.content)n.type==="paragraph"?e.push(this._getParagraphText(n)):n.type==="table"&&e.push(this._getTableText(n));return e.join(`
|
|
2
2
|
`)}_getParagraphText(t){let e=[];for(let n of t.content)n.type==="run"?e.push(this._getRunText(n)):n.type==="hyperlink"&&e.push(this._getHyperlinkText(n));return e.join("")}_getRunText(t){return t.content.filter(e=>e.type==="text").map(e=>e.text).join("")}_getHyperlinkText(t){let e=[];for(let n of t.children)n.type==="run"&&e.push(this._getRunText(n));return e.join("")}_getTableText(t){let e=[];for(let n of t.rows)for(let r of n.cells)for(let a of r.content)a.type==="paragraph"&&e.push(this._getParagraphText(a));return e.join(" ")}_extractParagraphSegments(t,e){for(let n of t.content)if(n.type==="run"){let r=this._getRunText(n);r&&e.push({text:r,formatting:n.formatting});}else if(n.type==="hyperlink"){let r=n.href||"";for(let a of n.children)if(a.type==="run"){let i=this._getRunText(a);i&&e.push({text:i,formatting:a.formatting,isHyperlink:true,hyperlinkUrl:r});}}}_parseHeadingLevel(t){if(!t)return;let e=t.match(/heading\s*(\d)/i);if(e)return parseInt(e[1],10)}_hasImages(){let t=this._document.package.document;for(let e of t.content)if(e.type==="paragraph"){for(let n of e.content)if(n.type==="run"){for(let r of n.content)if(r.type==="drawing")return true}}return false}_hasHyperlinks(){let t=this._document.package.document;for(let e of t.content)if(e.type==="paragraph"){for(let n of e.content)if(n.type==="hyperlink")return true}return false}};async function Ct(o){return P.fromBuffer(o)}function kt(o){return P.fromDocument(o)}function M(o,t={}){let{outlineMaxChars:e=100,maxOutlineParagraphs:n=50}=t,r=o.package.document,a=r.content.filter(y=>y.type==="paragraph"),i=z(a,e,n),s=a$1(o),c=W(o),p=$(r),u=U(r),d=G(r),f=r.content.some(y=>y.type==="table"),x=K(r),l=N(r);return {paragraphCount:a.length,wordCount:u,characterCount:d,variables:s,variableCount:s.length,availableStyles:c,outline:i,sections:p,hasTables:f,hasImages:x,hasHyperlinks:l}}function At(o,t,e={}){let{contextChars:n=200,includeSuggestions:r=true}=e,i=o.package.document.content.filter(m=>m.type==="paragraph"),s=i[t.start.paragraphIndex];if(!s)throw new Error(`Paragraph not found at index ${t.start.paragraphIndex}`);let c=g(s),p="";if(t.start.paragraphIndex===t.end.paragraphIndex)p=c.slice(t.start.offset,t.end.offset);else {let m=[];for(let b=t.start.paragraphIndex;b<=t.end.paragraphIndex;b++){let H=i[b];if(!H)continue;let _=g(H);b===t.start.paragraphIndex?m.push(_.slice(t.start.offset)):b===t.end.paragraphIndex?m.push(_.slice(0,t.end.offset)):m.push(_);}p=m.join(`
|
|
3
3
|
`);}let u=Y(i,t.start.paragraphIndex,t.start.offset,n),d=Z(i,t.end.paragraphIndex,t.end.offset,n),f=tt(s,t.start.offset),x=s.formatting||{},l={index:t.start.paragraphIndex,fullText:c,style:s.formatting?.styleId,wordCount:v(c)},y=false,A=et(s,t.start.offset),S=r?nt(p):[];return {selectedText:p,range:t,formatting:f,paragraphFormatting:x,textBefore:u,textAfter:d,paragraph:l,inTable:y,inHyperlink:A,suggestedActions:S}}function L(o){let t=M(o,{outlineMaxChars:50,maxOutlineParagraphs:10}),e=[`Document with ${t.paragraphCount} paragraphs, ${t.wordCount} words.`];t.hasTables&&e.push("Contains tables."),t.hasImages&&e.push("Contains images."),t.hasHyperlinks&&e.push("Contains hyperlinks."),t.variableCount>0&&e.push(`Has ${t.variableCount} template variables: ${t.variables.join(", ")}`);let n=t.outline.filter(r=>r.isHeading);if(n.length>0){e.push(`
|
|
4
4
|
Headings:`);for(let r of n.slice(0,5)){let a=r.headingLevel||1;e.push(`${" ".repeat(a-1)}- ${r.preview}`);}n.length>5&&e.push(` ... and ${n.length-5} more headings`);}return e.join(" ")}function z(o,t,e){let n=[];for(let r=0;r<Math.min(o.length,e);r++){let a=o[r],i=g(a),s=a.formatting?.styleId;n.push({index:r,preview:i.slice(0,t),style:s,isHeading:Q(s),headingLevel:X(s),isListItem:!!a.listRendering,isEmpty:i.trim().length===0});}return n}function W(o){let t=o.package.styles;if(!t?.styles)return [];let e=[];for(let[n,r]of Object.entries(t.styles))if(typeof r=="object"&&r!==null){let a=r;e.push({id:n,name:a.name||n,type:a.type==="numbering"?"paragraph":a.type||"paragraph",builtIn:a.default});}return e}function $(o){return o.sections?o.sections.map((t,e)=>({index:e,paragraphCount:t.content?.length||0,pageSize:t.properties?.pageWidth&&t.properties?.pageHeight?{width:t.properties.pageWidth,height:t.properties.pageHeight}:void 0,isLandscape:t.properties?.orientation==="landscape",hasHeader:!!t.properties?.headerReferences?.length,hasFooter:!!t.properties?.footerReferences?.length})):[]}function U(o){let t=0;for(let e of o.content)if(e.type==="paragraph"){let n=g(e);t+=v(n);}else e.type==="table"&&(t+=q(e));return t}function v(o){return o.split(/\s+/).filter(e=>e.length>0).length}function G(o){let t=0;for(let e of o.content)if(e.type==="paragraph"){let n=g(e);t+=n.length;}else e.type==="table"&&(t+=J(e));return t}function q(o){let t=0;for(let e of o.rows)for(let n of e.cells)for(let r of n.content)if(r.type==="paragraph"){let a=g(r);t+=v(a);}return t}function J(o){let t=0;for(let e of o.rows)for(let n of e.cells)for(let r of n.content)if(r.type==="paragraph"){let a=g(r);t+=a.length;}return t}function g(o){let t=[];for(let e of o.content)e.type==="run"?t.push(T(e)):e.type==="hyperlink"&&t.push(F(e));return t.join("")}function T(o){return o.content.filter(t=>t.type==="text").map(t=>t.text).join("")}function F(o){let t=[];for(let e of o.children)e.type==="run"&&t.push(T(e));return t.join("")}function K(o){for(let t of o.content)if(t.type==="paragraph"){for(let e of t.content)if(e.type==="run"){for(let n of e.content)if(n.type==="drawing")return true}}return false}function N(o){for(let t of o.content)if(t.type==="paragraph"){for(let e of t.content)if(e.type==="hyperlink")return true}return false}function Q(o){return o?o.toLowerCase().includes("heading"):false}function X(o){if(!o)return;let t=o.match(/heading\s*(\d)/i);if(t)return parseInt(t[1],10)}function Y(o,t,e,n){let r=[],a=0,i=o[t];if(i){let p=g(i).slice(0,e);r.unshift(p),a+=p.length;}for(let c=t-1;c>=0&&a<n;c--){let p=o[c];if(!p)continue;let u=g(p);r.unshift(u),a+=u.length;}let s=r.join(`
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkROG4MNOR_js=require('./chunk-ROG4MNOR.js'),chunk44FHVKSI_js=require('./chunk-44FHVKSI.js'),chunkMNOHUTKE_js=require('./chunk-MNOHUTKE.js'),chunkHQPWFUP5_js=require('./chunk-HQPWFUP5.js'),chunkDV6GWBUJ_js=require('./chunk-DV6GWBUJ.js'),chunkGSKMHXHG_js=require('./chunk-GSKMHXHG.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=chunkDV6GWBUJ_js.j(e,"w","color");t&&t!=="auto"&&(n.color={rgb:t});let o=chunkDV6GWBUJ_js.j(e,"w","fill");o&&o!=="auto"&&(n.fill={rgb:o});let s=chunkDV6GWBUJ_js.j(e,"w","themeFill");s&&(n.fill=n.fill||{},n.fill.themeColor=s);let r=chunkDV6GWBUJ_js.j(e,"w","themeFillTint");r&&n.fill&&(n.fill.themeTint=r);let a=chunkDV6GWBUJ_js.j(e,"w","themeFillShade");a&&n.fill&&(n.fill.themeShade=a);let c=chunkDV6GWBUJ_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=chunkDV6GWBUJ_js.e(e,"w","b");o&&(t.bold=chunkDV6GWBUJ_js.m(o));let s=chunkDV6GWBUJ_js.e(e,"w","bCs");s&&(t.boldCs=chunkDV6GWBUJ_js.m(s));let r=chunkDV6GWBUJ_js.e(e,"w","i");r&&(t.italic=chunkDV6GWBUJ_js.m(r));let a=chunkDV6GWBUJ_js.e(e,"w","iCs");a&&(t.italicCs=chunkDV6GWBUJ_js.m(a));let c=chunkDV6GWBUJ_js.e(e,"w","u");if(c){let g=chunkDV6GWBUJ_js.j(c,"w","val");if(g){t.underline={style:g};let k=chunkDV6GWBUJ_js.j(c,"w","color"),j=chunkDV6GWBUJ_js.j(c,"w","themeColor");(k||j)&&(t.underline.color=Y(k,j,chunkDV6GWBUJ_js.j(c,"w","themeTint"),chunkDV6GWBUJ_js.j(c,"w","themeShade")));}}let d=chunkDV6GWBUJ_js.e(e,"w","strike");d&&(t.strike=chunkDV6GWBUJ_js.m(d));let u=chunkDV6GWBUJ_js.e(e,"w","dstrike");u&&(t.doubleStrike=chunkDV6GWBUJ_js.m(u));let m=chunkDV6GWBUJ_js.e(e,"w","vertAlign");if(m){let g=chunkDV6GWBUJ_js.j(m,"w","val");(g==="superscript"||g==="subscript"||g==="baseline")&&(t.vertAlign=g);}let h=chunkDV6GWBUJ_js.e(e,"w","smallCaps");h&&(t.smallCaps=chunkDV6GWBUJ_js.m(h));let p=chunkDV6GWBUJ_js.e(e,"w","caps");p&&(t.allCaps=chunkDV6GWBUJ_js.m(p));let x=chunkDV6GWBUJ_js.e(e,"w","vanish");x&&(t.hidden=chunkDV6GWBUJ_js.m(x));let f=chunkDV6GWBUJ_js.e(e,"w","color");f&&(t.color=Y(chunkDV6GWBUJ_js.j(f,"w","val"),chunkDV6GWBUJ_js.j(f,"w","themeColor"),chunkDV6GWBUJ_js.j(f,"w","themeTint"),chunkDV6GWBUJ_js.j(f,"w","themeShade")));let b=chunkDV6GWBUJ_js.e(e,"w","highlight");if(b){let g=chunkDV6GWBUJ_js.j(b,"w","val");g&&(t.highlight=g);}let T=chunkDV6GWBUJ_js.e(e,"w","shd");T&&(t.shading=$(T));let M=chunkDV6GWBUJ_js.e(e,"w","sz");if(M){let g=chunkDV6GWBUJ_js.l(M,"w","val");g!==void 0&&(t.fontSize=g);}let X=chunkDV6GWBUJ_js.e(e,"w","szCs");if(X){let g=chunkDV6GWBUJ_js.l(X,"w","val");g!==void 0&&(t.fontSizeCs=g);}let P=chunkDV6GWBUJ_js.e(e,"w","rFonts");if(P){t.fontFamily={ascii:chunkDV6GWBUJ_js.j(P,"w","ascii")??void 0,hAnsi:chunkDV6GWBUJ_js.j(P,"w","hAnsi")??void 0,eastAsia:chunkDV6GWBUJ_js.j(P,"w","eastAsia")??void 0,cs:chunkDV6GWBUJ_js.j(P,"w","cs")??void 0};let g=chunkDV6GWBUJ_js.j(P,"w","asciiTheme");g&&(t.fontFamily.asciiTheme=g,n&&!t.fontFamily.ascii&&(t.fontFamily.ascii=chunkROG4MNOR_js.b(n,g)));let k=chunkDV6GWBUJ_js.j(P,"w","hAnsiTheme");k&&(t.fontFamily.hAnsiTheme=k,n&&!t.fontFamily.hAnsi&&(t.fontFamily.hAnsi=chunkROG4MNOR_js.b(n,k)));let j=chunkDV6GWBUJ_js.j(P,"w","eastAsiaTheme");j&&(t.fontFamily.eastAsiaTheme=j,n&&!t.fontFamily.eastAsia&&(t.fontFamily.eastAsia=chunkROG4MNOR_js.b(n,j)));let B=chunkDV6GWBUJ_js.j(P,"w","cstheme");B&&(t.fontFamily.csTheme=B,n&&!t.fontFamily.cs&&(t.fontFamily.cs=chunkROG4MNOR_js.b(n,B)));}let F=chunkDV6GWBUJ_js.e(e,"w","spacing");if(F){let g=chunkDV6GWBUJ_js.l(F,"w","val");g!==void 0&&(t.spacing=g);}let y=chunkDV6GWBUJ_js.e(e,"w","position");if(y){let g=chunkDV6GWBUJ_js.l(y,"w","val");g!==void 0&&(t.position=g);}let S=chunkDV6GWBUJ_js.e(e,"w","w");if(S){let g=chunkDV6GWBUJ_js.l(S,"w","val");g!==void 0&&(t.scale=g);}let C=chunkDV6GWBUJ_js.e(e,"w","kern");if(C){let g=chunkDV6GWBUJ_js.l(C,"w","val");g!==void 0&&(t.kerning=g);}let D=chunkDV6GWBUJ_js.e(e,"w","effect");if(D){let g=chunkDV6GWBUJ_js.j(D,"w","val");g&&(t.effect=g);}let I=chunkDV6GWBUJ_js.e(e,"w","em");if(I){let g=chunkDV6GWBUJ_js.j(I,"w","val");g&&(t.emphasisMark=g);}let N=chunkDV6GWBUJ_js.e(e,"w","emboss");N&&(t.emboss=chunkDV6GWBUJ_js.m(N));let L=chunkDV6GWBUJ_js.e(e,"w","imprint");L&&(t.imprint=chunkDV6GWBUJ_js.m(L));let O=chunkDV6GWBUJ_js.e(e,"w","outline");O&&(t.outline=chunkDV6GWBUJ_js.m(O));let W=chunkDV6GWBUJ_js.e(e,"w","shadow");W&&(t.shadow=chunkDV6GWBUJ_js.m(W));let H=chunkDV6GWBUJ_js.e(e,"w","rtl");H&&(t.rtl=chunkDV6GWBUJ_js.m(H));let R=chunkDV6GWBUJ_js.e(e,"w","cs");R&&(t.cs=chunkDV6GWBUJ_js.m(R));let A=chunkDV6GWBUJ_js.e(e,"w","rStyle");if(A){let g=chunkDV6GWBUJ_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=chunkDV6GWBUJ_js.j(e,"w","val");if(!n)return;let t={style:n},o=chunkDV6GWBUJ_js.j(e,"w","color"),s=chunkDV6GWBUJ_js.j(e,"w","themeColor");(o||s)&&(t.color=Y(o,s,chunkDV6GWBUJ_js.j(e,"w","themeTint"),chunkDV6GWBUJ_js.j(e,"w","themeShade")));let r=chunkDV6GWBUJ_js.l(e,"w","sz");r!==void 0&&(t.size=r);let a=chunkDV6GWBUJ_js.l(e,"w","space");a!==void 0&&(t.space=a);let c=chunkDV6GWBUJ_js.j(e,"w","shadow");c&&(t.shadow=c==="1"||c==="true");let d=chunkDV6GWBUJ_js.j(e,"w","frame");return d&&(t.frame=d==="1"||d==="true"),t}function je(e){if(!e)return;let n=chunkDV6GWBUJ_js.f(e,"w","tab");if(n.length===0)return;let t=[];for(let o of n){let s=chunkDV6GWBUJ_js.l(o,"w","pos"),r=chunkDV6GWBUJ_js.j(o,"w","val");if(s!==void 0&&r){let a={position:s,alignment:r},c=chunkDV6GWBUJ_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=chunkDV6GWBUJ_js.e(e,"w","jc");if(o){let y=chunkDV6GWBUJ_js.j(o,"w","val");y&&(t.alignment=y);}let s=chunkDV6GWBUJ_js.e(e,"w","bidi");s&&(t.bidi=chunkDV6GWBUJ_js.m(s));let r=chunkDV6GWBUJ_js.e(e,"w","spacing");if(r){let y=chunkDV6GWBUJ_js.l(r,"w","before");y!==void 0&&(t.spaceBefore=y);let S=chunkDV6GWBUJ_js.l(r,"w","after");S!==void 0&&(t.spaceAfter=S);let C=chunkDV6GWBUJ_js.l(r,"w","line");C!==void 0&&(t.lineSpacing=C);let D=chunkDV6GWBUJ_js.j(r,"w","lineRule");D&&(t.lineSpacingRule=D);let I=chunkDV6GWBUJ_js.j(r,"w","beforeAutospacing");I&&(t.beforeAutospacing=I==="1"||I==="true");let N=chunkDV6GWBUJ_js.j(r,"w","afterAutospacing");N&&(t.afterAutospacing=N==="1"||N==="true");}let a=chunkDV6GWBUJ_js.e(e,"w","ind");if(a){let y=chunkDV6GWBUJ_js.l(a,"w","left");y!==void 0&&(t.indentLeft=y);let S=chunkDV6GWBUJ_js.l(a,"w","right");S!==void 0&&(t.indentRight=S);let C=chunkDV6GWBUJ_js.l(a,"w","firstLine");C!==void 0&&(t.indentFirstLine=C);let D=chunkDV6GWBUJ_js.l(a,"w","hanging");D!==void 0&&(t.indentFirstLine=-D,t.hangingIndent=true);}let c=chunkDV6GWBUJ_js.e(e,"w","pBdr");if(c){let y={},S=E(chunkDV6GWBUJ_js.e(c,"w","top"));S&&(y.top=S);let C=E(chunkDV6GWBUJ_js.e(c,"w","bottom"));C&&(y.bottom=C);let D=E(chunkDV6GWBUJ_js.e(c,"w","left"));D&&(y.left=D);let I=E(chunkDV6GWBUJ_js.e(c,"w","right"));I&&(y.right=I);let N=E(chunkDV6GWBUJ_js.e(c,"w","between"));N&&(y.between=N);let L=E(chunkDV6GWBUJ_js.e(c,"w","bar"));L&&(y.bar=L),Object.keys(y).length>0&&(t.borders=y);}let d=chunkDV6GWBUJ_js.e(e,"w","shd");d&&(t.shading=$(d));let u=chunkDV6GWBUJ_js.e(e,"w","tabs");u&&(t.tabs=je(u));let m=chunkDV6GWBUJ_js.e(e,"w","keepNext");m&&(t.keepNext=chunkDV6GWBUJ_js.m(m));let h=chunkDV6GWBUJ_js.e(e,"w","keepLines");h&&(t.keepLines=chunkDV6GWBUJ_js.m(h));let p=chunkDV6GWBUJ_js.e(e,"w","widowControl");p&&(t.widowControl=chunkDV6GWBUJ_js.m(p));let x=chunkDV6GWBUJ_js.e(e,"w","pageBreakBefore");x&&(t.pageBreakBefore=chunkDV6GWBUJ_js.m(x));let f=chunkDV6GWBUJ_js.e(e,"w","contextualSpacing");f&&(t.contextualSpacing=chunkDV6GWBUJ_js.m(f));let b=chunkDV6GWBUJ_js.e(e,"w","numPr");if(b){let y=chunkDV6GWBUJ_js.e(b,"w","numId"),S=chunkDV6GWBUJ_js.e(b,"w","ilvl");if(y||S){if(t.numPr={},y){let C=chunkDV6GWBUJ_js.l(y,"w","val");C!==void 0&&(t.numPr.numId=C);}if(S){let C=chunkDV6GWBUJ_js.l(S,"w","val");C!==void 0&&(t.numPr.ilvl=C);}}}let T=chunkDV6GWBUJ_js.e(e,"w","outlineLvl");if(T){let y=chunkDV6GWBUJ_js.l(T,"w","val");y!==void 0&&(t.outlineLevel=y);}let M=chunkDV6GWBUJ_js.e(e,"w","pStyle");if(M){let y=chunkDV6GWBUJ_js.j(M,"w","val");y&&(t.styleId=y);}let X=chunkDV6GWBUJ_js.e(e,"w","suppressLineNumbers");X&&(t.suppressLineNumbers=chunkDV6GWBUJ_js.m(X));let P=chunkDV6GWBUJ_js.e(e,"w","suppressAutoHyphens");P&&(t.suppressAutoHyphens=chunkDV6GWBUJ_js.m(P));let F=chunkDV6GWBUJ_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=chunkDV6GWBUJ_js.l(e,"w","w"),t=chunkDV6GWBUJ_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(chunkDV6GWBUJ_js.e(e,"w","top"));t&&(n.top=t);let o=E(chunkDV6GWBUJ_js.e(e,"w","bottom"));o&&(n.bottom=o);let s=E(chunkDV6GWBUJ_js.e(e,"w","left"));s&&(n.left=s);let r=E(chunkDV6GWBUJ_js.e(e,"w","right"));r&&(n.right=r);let a=E(chunkDV6GWBUJ_js.e(e,"w","insideH"));a&&(n.insideH=a);let c=E(chunkDV6GWBUJ_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(chunkDV6GWBUJ_js.e(e,"w","top"));t&&(n.top=t);let o=U(chunkDV6GWBUJ_js.e(e,"w","bottom"));o&&(n.bottom=o);let s=U(chunkDV6GWBUJ_js.e(e,"w","left"));s&&(n.left=s);let r=U(chunkDV6GWBUJ_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=chunkDV6GWBUJ_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=chunkDV6GWBUJ_js.j(e,"w","firstColumn");o&&(n.firstColumn=o==="1");let s=chunkDV6GWBUJ_js.j(e,"w","firstRow");s&&(n.firstRow=s==="1");let r=chunkDV6GWBUJ_js.j(e,"w","lastColumn");r&&(n.lastColumn=r==="1");let a=chunkDV6GWBUJ_js.j(e,"w","lastRow");a&&(n.lastRow=a==="1");let c=chunkDV6GWBUJ_js.j(e,"w","noHBand");c&&(n.noHBand=c==="1");let d=chunkDV6GWBUJ_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=chunkDV6GWBUJ_js.e(e,"w","tblW");o&&(t.width=U(o));let s=chunkDV6GWBUJ_js.e(e,"w","jc");if(s){let f=chunkDV6GWBUJ_js.j(s,"w","val");(f==="left"||f==="center"||f==="right")&&(t.justification=f);}let r=chunkDV6GWBUJ_js.e(e,"w","tblCellSpacing");r&&(t.cellSpacing=U(r));let a=chunkDV6GWBUJ_js.e(e,"w","tblInd");a&&(t.indent=U(a));let c=chunkDV6GWBUJ_js.e(e,"w","tblBorders");c&&(t.borders=Pe(c));let d=chunkDV6GWBUJ_js.e(e,"w","tblCellMar");d&&(t.cellMargins=Fe(d));let u=chunkDV6GWBUJ_js.e(e,"w","tblLayout");if(u){let f=chunkDV6GWBUJ_js.j(u,"w","type");(f==="fixed"||f==="autofit")&&(t.layout=f);}let m=chunkDV6GWBUJ_js.e(e,"w","tblStyle");if(m){let f=chunkDV6GWBUJ_js.j(m,"w","val");f&&(t.styleId=f);}let h=chunkDV6GWBUJ_js.e(e,"w","tblLook");h&&(t.look=Oe(h));let p=chunkDV6GWBUJ_js.e(e,"w","shd");p&&(t.shading=$(p));let x=chunkDV6GWBUJ_js.e(e,"w","bidiVisual");return x&&(t.bidi=chunkDV6GWBUJ_js.m(x)),Object.keys(t).length>0?t:void 0}function ae(e){if(!e)return;let n={},t=chunkDV6GWBUJ_js.e(e,"w","trHeight");if(t){n.height=U(t);let c=chunkDV6GWBUJ_js.j(t,"w","hRule");c&&(n.heightRule=c);}let o=chunkDV6GWBUJ_js.e(e,"w","tblHeader");o&&(n.header=chunkDV6GWBUJ_js.m(o));let s=chunkDV6GWBUJ_js.e(e,"w","cantSplit");s&&(n.cantSplit=chunkDV6GWBUJ_js.m(s));let r=chunkDV6GWBUJ_js.e(e,"w","jc");if(r){let c=chunkDV6GWBUJ_js.j(r,"w","val");(c==="left"||c==="center"||c==="right")&&(n.justification=c);}let a=chunkDV6GWBUJ_js.e(e,"w","hidden");return a&&(n.hidden=chunkDV6GWBUJ_js.m(a)),Object.keys(n).length>0?n:void 0}function le(e,n){if(!e)return;let t={},o=chunkDV6GWBUJ_js.e(e,"w","tcW");o&&(t.width=U(o));let s=chunkDV6GWBUJ_js.e(e,"w","tcBorders");s&&(t.borders=Pe(s));let r=chunkDV6GWBUJ_js.e(e,"w","tcMar");r&&(t.margins=Fe(r));let a=chunkDV6GWBUJ_js.e(e,"w","shd");a&&(t.shading=$(a));let c=chunkDV6GWBUJ_js.e(e,"w","vAlign");if(c){let f=chunkDV6GWBUJ_js.j(c,"w","val");(f==="top"||f==="center"||f==="bottom")&&(t.verticalAlign=f);}let d=chunkDV6GWBUJ_js.e(e,"w","textDirection");if(d){let f=chunkDV6GWBUJ_js.j(d,"w","val");f&&(t.textDirection=f);}let u=chunkDV6GWBUJ_js.e(e,"w","gridSpan");if(u){let f=chunkDV6GWBUJ_js.l(u,"w","val");f!==void 0&&(t.gridSpan=f);}let m=chunkDV6GWBUJ_js.e(e,"w","vMerge");if(m){let f=chunkDV6GWBUJ_js.j(m,"w","val");t.vMerge=f==="restart"?"restart":"continue";}let h=chunkDV6GWBUJ_js.e(e,"w","tcFitText");h&&(t.fitText=chunkDV6GWBUJ_js.m(h));let p=chunkDV6GWBUJ_js.e(e,"w","noWrap");p&&(t.noWrap=chunkDV6GWBUJ_js.m(p));let x=chunkDV6GWBUJ_js.e(e,"w","hideMark");return x&&(t.hideMark=chunkDV6GWBUJ_js.m(x)),Object.keys(t).length>0?t:void 0}function He(e,n){let t={styleId:chunkDV6GWBUJ_js.j(e,"w","styleId")??"",type:chunkDV6GWBUJ_js.j(e,"w","type")??"paragraph"},o=chunkDV6GWBUJ_js.j(e,"w","default");o&&(t.default=o==="1"||o==="true");let s=chunkDV6GWBUJ_js.e(e,"w","name");s&&(t.name=chunkDV6GWBUJ_js.j(s,"w","val")??void 0);let r=chunkDV6GWBUJ_js.e(e,"w","basedOn");r&&(t.basedOn=chunkDV6GWBUJ_js.j(r,"w","val")??void 0);let a=chunkDV6GWBUJ_js.e(e,"w","next");a&&(t.next=chunkDV6GWBUJ_js.j(a,"w","val")??void 0);let c=chunkDV6GWBUJ_js.e(e,"w","link");c&&(t.link=chunkDV6GWBUJ_js.j(c,"w","val")??void 0);let d=chunkDV6GWBUJ_js.e(e,"w","uiPriority");if(d){let F=chunkDV6GWBUJ_js.l(d,"w","val");F!==void 0&&(t.uiPriority=F);}let u=chunkDV6GWBUJ_js.e(e,"w","hidden");u&&(t.hidden=chunkDV6GWBUJ_js.m(u));let m=chunkDV6GWBUJ_js.e(e,"w","semiHidden");m&&(t.semiHidden=chunkDV6GWBUJ_js.m(m));let h=chunkDV6GWBUJ_js.e(e,"w","unhideWhenUsed");h&&(t.unhideWhenUsed=chunkDV6GWBUJ_js.m(h));let p=chunkDV6GWBUJ_js.e(e,"w","qFormat");p&&(t.qFormat=chunkDV6GWBUJ_js.m(p));let x=chunkDV6GWBUJ_js.e(e,"w","personal");x&&(t.personal=chunkDV6GWBUJ_js.m(x));let f=chunkDV6GWBUJ_js.e(e,"w","pPr");f&&(t.pPr=K(f,n));let b=chunkDV6GWBUJ_js.e(e,"w","rPr");b&&(t.rPr=Z(b,n));let T=chunkDV6GWBUJ_js.e(e,"w","tblPr");T&&(t.tblPr=se(T));let M=chunkDV6GWBUJ_js.e(e,"w","trPr");M&&(t.trPr=ae(M));let X=chunkDV6GWBUJ_js.e(e,"w","tcPr");X&&(t.tcPr=le(X));let P=chunkDV6GWBUJ_js.f(e,"w","tblStylePr");if(P.length>0){t.tblStylePr=[];for(let F of P){let y=chunkDV6GWBUJ_js.j(F,"w","type");if(y){let S={type:y},C=chunkDV6GWBUJ_js.e(F,"w","pPr");C&&(S.pPr=K(C,n));let D=chunkDV6GWBUJ_js.e(F,"w","rPr");D&&(S.rPr=Z(D,n));let I=chunkDV6GWBUJ_js.e(F,"w","tblPr");I&&(S.tblPr=se(I));let N=chunkDV6GWBUJ_js.e(F,"w","trPr");N&&(S.trPr=ae(N));let L=chunkDV6GWBUJ_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=chunkDV6GWBUJ_js.e(e,"w","rPrDefault");if(o){let r=chunkDV6GWBUJ_js.e(o,"w","rPr");r&&(t.rPr=Z(r,n));}let s=chunkDV6GWBUJ_js.e(e,"w","pPrDefault");if(s){let r=chunkDV6GWBUJ_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=chunkGSKMHXHG_js.b(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:chunkGSKMHXHG_js.b(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=chunkDV6GWBUJ_js.c(e);if(!o)return t;let s=chunkDV6GWBUJ_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=chunkDV6GWBUJ_js.c(e);if(!o)return t;let s=chunkDV6GWBUJ_js.e(o,"w","docDefaults");t.docDefaults=Ue(s,n);let r=chunkDV6GWBUJ_js.e(o,"w","latentStyles");r&&(t.latentStyles={defLockedState:chunkDV6GWBUJ_js.j(r,"w","defLockedState")==="1",defUIPriority:chunkDV6GWBUJ_js.l(r,"w","defUIPriority"),defSemiHidden:chunkDV6GWBUJ_js.j(r,"w","defSemiHidden")==="1",defUnhideWhenUsed:chunkDV6GWBUJ_js.j(r,"w","defUnhideWhenUsed")==="1",defQFormat:chunkDV6GWBUJ_js.j(r,"w","defQFormat")==="1",count:chunkDV6GWBUJ_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=chunkDV6GWBUJ_js.c(e);if(!t)return fe(n);let o=chunkDV6GWBUJ_js.f(t,"w","abstractNum");for(let r of o){let a=ze(r);a&&n.abstractNums.push(a);}let s=chunkDV6GWBUJ_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=chunkDV6GWBUJ_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=chunkDV6GWBUJ_js.e(e,"w","multiLevelType");if(s){let u=chunkDV6GWBUJ_js.j(s,"w","val");(u==="hybridMultilevel"||u==="multilevel"||u==="singleLevel")&&(o.multiLevelType=u);}let r=chunkDV6GWBUJ_js.e(e,"w","name");r&&(o.name=chunkDV6GWBUJ_js.j(r,"w","val")??void 0);let a=chunkDV6GWBUJ_js.e(e,"w","numStyleLink");a&&(o.numStyleLink=chunkDV6GWBUJ_js.j(a,"w","val")??void 0);let c=chunkDV6GWBUJ_js.e(e,"w","styleLink");c&&(o.styleLink=chunkDV6GWBUJ_js.j(c,"w","val")??void 0);let d=chunkDV6GWBUJ_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=chunkDV6GWBUJ_js.j(e,"w","numId");if(n===null)return null;let t=parseInt(n,10);if(isNaN(t))return null;let o=chunkDV6GWBUJ_js.e(e,"w","abstractNumId");if(!o)return null;let s=chunkDV6GWBUJ_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=chunkDV6GWBUJ_js.f(e,"w","lvlOverride");if(c.length>0){a.levelOverrides=[];for(let d of c){let u=chunkDV6GWBUJ_js.j(d,"w","ilvl");if(u===null)continue;let m=parseInt(u,10);if(isNaN(m))continue;let h={ilvl:m},p=chunkDV6GWBUJ_js.e(d,"w","startOverride");if(p){let f=chunkDV6GWBUJ_js.j(p,"w","val");if(f!==null){let b=parseInt(f,10);isNaN(b)||(h.startOverride=b);}}let x=chunkDV6GWBUJ_js.e(d,"w","lvl");x&&(h.lvl=Ae(x)??void 0),a.levelOverrides.push(h);}}return a}function Ae(e){let n=chunkDV6GWBUJ_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=chunkDV6GWBUJ_js.e(e,"w","start");if(s){let f=chunkDV6GWBUJ_js.j(s,"w","val");if(f!==null){let b=parseInt(f,10);isNaN(b)||(o.start=b);}}let r=chunkDV6GWBUJ_js.e(e,"w","numFmt");if(r){let f=chunkDV6GWBUJ_js.j(r,"w","val");f&&(o.numFmt=Ze(f));}let a=chunkDV6GWBUJ_js.e(e,"w","lvlText");a&&(o.lvlText=chunkDV6GWBUJ_js.j(a,"w","val")??"");let c=chunkDV6GWBUJ_js.e(e,"w","lvlJc");if(c){let f=chunkDV6GWBUJ_js.j(c,"w","val");(f==="left"||f==="center"||f==="right")&&(o.lvlJc=f);}let d=chunkDV6GWBUJ_js.e(e,"w","suff");if(d){let f=chunkDV6GWBUJ_js.j(d,"w","val");(f==="tab"||f==="space"||f==="nothing")&&(o.suffix=f);}let u=chunkDV6GWBUJ_js.e(e,"w","isLgl");u&&(o.isLgl=chunkDV6GWBUJ_js.m(u));let m=chunkDV6GWBUJ_js.e(e,"w","lvlRestart");if(m){let f=chunkDV6GWBUJ_js.j(m,"w","val");if(f!==null){let b=parseInt(f,10);isNaN(b)||(o.lvlRestart=b);}}let h=chunkDV6GWBUJ_js.e(e,"w","legacy");h&&(o.legacy={legacy:chunkDV6GWBUJ_js.m(h),legacySpace:chunkDV6GWBUJ_js.l(h,"w","legacySpace"),legacyIndent:chunkDV6GWBUJ_js.l(h,"w","legacyIndent")});let p=chunkDV6GWBUJ_js.e(e,"w","pPr");p&&(o.pPr=_e(p));let x=chunkDV6GWBUJ_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=chunkDV6GWBUJ_js.e(e,"w","ind");if(t){let s=chunkDV6GWBUJ_js.l(t,"w","left"),r=chunkDV6GWBUJ_js.l(t,"w","right"),a=chunkDV6GWBUJ_js.l(t,"w","start"),c=chunkDV6GWBUJ_js.l(t,"w","end"),d=chunkDV6GWBUJ_js.l(t,"w","firstLine"),u=chunkDV6GWBUJ_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=chunkDV6GWBUJ_js.e(e,"w","tabs");if(o){n.tabs=[];let s=chunkDV6GWBUJ_js.f(o,"w","tab");for(let r of s){let a=chunkDV6GWBUJ_js.l(r,"w","pos"),c=chunkDV6GWBUJ_js.j(r,"w","val"),d=chunkDV6GWBUJ_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=chunkDV6GWBUJ_js.e(e,"w","rFonts");t&&(n.fontFamily={ascii:chunkDV6GWBUJ_js.j(t,"w","ascii")??void 0,hAnsi:chunkDV6GWBUJ_js.j(t,"w","hAnsi")??void 0,eastAsia:chunkDV6GWBUJ_js.j(t,"w","eastAsia")??void 0,cs:chunkDV6GWBUJ_js.j(t,"w","cs")??void 0});let o=chunkDV6GWBUJ_js.e(e,"w","sz");if(o){let d=chunkDV6GWBUJ_js.l(o,"w","val");d!==void 0&&(n.fontSize=d);}let s=chunkDV6GWBUJ_js.e(e,"w","color");if(s){let d=chunkDV6GWBUJ_js.j(s,"w","val"),u=chunkDV6GWBUJ_js.j(s,"w","themeColor");d==="auto"?n.color={auto:true}:u?n.color={themeColor:u,themeTint:chunkDV6GWBUJ_js.j(s,"w","themeTint")??void 0,themeShade:chunkDV6GWBUJ_js.j(s,"w","themeShade")??void 0}:d&&(n.color={rgb:d});}let r=chunkDV6GWBUJ_js.e(e,"w","b");r&&(n.bold=chunkDV6GWBUJ_js.m(r));let a=chunkDV6GWBUJ_js.e(e,"w","i");a&&(n.italic=chunkDV6GWBUJ_js.m(a));let c=chunkDV6GWBUJ_js.e(e,"w","vanish");return c&&(n.hidden=chunkDV6GWBUJ_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=chunkROG4MNOR_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=chunkROG4MNOR_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??chunkROG4MNOR_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=chunkDV6GWBUJ_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=chunkDV6GWBUJ_js.e(d,"w","body");if(!u)return a;a.content=chunkROG4MNOR_js.q(u,n,t,o,s,r);let m=chunkDV6GWBUJ_js.e(u,"w","sectPr");m&&(a.finalSectionProperties=chunkROG4MNOR_js.B(m,s));let h=Ke(a.content,a.finalSectionProperties);return a.sections=chunkROG4MNOR_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=chunkDV6GWBUJ_js.a(e);if(!t)return n;let o=chunkDV6GWBUJ_js.e(t,"w16cex","commentsExtensible")??t;for(let s of chunkDV6GWBUJ_js.i(o)){if((s.name?.replace(/^.*:/,"")??"")!=="comment")continue;let a=chunkDV6GWBUJ_js.j(s,"w16cex","paraId")??chunkDV6GWBUJ_js.j(s,"w15","paraId")??s.attributes?.["w16cex:paraId"]??s.attributes?.["w15:paraId"],c=chunkDV6GWBUJ_js.j(s,"w16cex","dateUtc")??chunkDV6GWBUJ_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=chunkDV6GWBUJ_js.a(e);if(!o)return {parentByParaId:n,doneByParaId:t};let s=chunkDV6GWBUJ_js.e(o,"w15","commentsEx")??o;for(let r of chunkDV6GWBUJ_js.i(s)){if((r.name?.replace(/^.*:/,"")??"")!=="commentEx")continue;let c=chunkDV6GWBUJ_js.j(r,"w15","paraId")??r.attributes?.["w15:paraId"],d=chunkDV6GWBUJ_js.j(r,"w15","paraIdParent")??r.attributes?.["w15:paraIdParent"],u=chunkDV6GWBUJ_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=chunkDV6GWBUJ_js.a(e);if(!c)return [];let d=r?et(r):new Map,u=a?tt(a):null,m=chunkDV6GWBUJ_js.e(c,"w","comments")??c,h=chunkDV6GWBUJ_js.i(m),p=[],x=[];for(let f of h){if((f.name?.replace(/^.*:/,"")??"")!=="comment")continue;let T=parseInt(chunkDV6GWBUJ_js.j(f,"w","id")??"0",10),M=chunkDV6GWBUJ_js.j(f,"w","author")??"Unknown",X=chunkDV6GWBUJ_js.j(f,"w","initials"),P=X!=null?String(X):void 0,F=chunkDV6GWBUJ_js.j(f,"w","date"),y=F!=null?String(F):void 0,S=chunkDV6GWBUJ_js.j(f,"w14","paraId")??f.attributes?.["w14:paraId"]??chunkDV6GWBUJ_js.j(f,"w","paraId"),D=(S?d.get(String(S).toUpperCase()):void 0)??y,I=chunkDV6GWBUJ_js.j(f,"w","done")??f.attributes?.["w:done"],N=I==="1"||I==="true"?true:void 0,L=chunkDV6GWBUJ_js.j(f,"w16cid","parentId")??chunkDV6GWBUJ_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 chunkDV6GWBUJ_js.i(f))if((R.name?.replace(/^.*:/,"")??"")==="p"){let g=chunkROG4MNOR_js.O(R,n,t,null,o,s);W.push(g);let k=chunkDV6GWBUJ_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 chunkMNOHUTKE_js.s(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?chunkHQPWFUP5_js.b(f.documentRels):new Map);o("Parsed relationships",15),o("Parsing theme...",15);let T=p("theme",()=>chunkROG4MNOR_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",()=>chunk44FHVKSI_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===chunkHQPWFUP5_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?chunkHQPWFUP5_js.b(x):s,b=chunkROG4MNOR_js.r(h,"default",n,t,o,f,r);a.set(d,b);}}else if(u.type===chunkHQPWFUP5_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?chunkHQPWFUP5_js.b(x):s,b=chunkROG4MNOR_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=chunkROG4MNOR_js.t(e.footnotesXml,n,t,o,s,r),c=chunkROG4MNOR_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 chunkMNOHUTKE_js.o(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,4 @@
|
|
|
1
|
+
'use strict';var chunkE4JMCA5X_js=require('./chunk-E4JMCA5X.js'),chunkHQPWFUP5_js=require('./chunk-HQPWFUP5.js'),chunkDV6GWBUJ_js=require('./chunk-DV6GWBUJ.js');var He={dk1:"000000",lt1:"FFFFFF",dk2:"44546A",lt2:"E7E6E6",accent1:"4472C4",accent2:"ED7D31",accent3:"A5A5A5",accent4:"FFC000",accent5:"5B9BD5",accent6:"70AD47",hlink:"0563C1",folHlink:"954F72"},J={majorFont:{latin:"Calibri Light",ea:"",cs:"",fonts:{}},minorFont:{latin:"Calibri",ea:"",cs:"",fonts:{}}},he={name:"Office Theme",colorScheme:He,fontScheme:J},ft=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];function ct(e){if(!e)return null;switch(chunkDV6GWBUJ_js.d(e.name||"")){case "srgbClr":return chunkDV6GWBUJ_js.j(e,"a","val")??chunkDV6GWBUJ_js.j(e,null,"val")??null;case "sysClr":{let n=chunkDV6GWBUJ_js.j(e,"a","lastClr")??chunkDV6GWBUJ_js.j(e,null,"lastClr");if(n)return n;switch(chunkDV6GWBUJ_js.j(e,"a","val")??chunkDV6GWBUJ_js.j(e,null,"val")){case "windowText":case "menuText":case "captionText":case "btnText":return "000000";case "window":case "menu":case "btnFace":case "btnHighlight":return "FFFFFF";case "highlight":return "0078D7";case "highlightText":return "FFFFFF";case "grayText":return "808080";default:return null}}case "schemeClr":{chunkDV6GWBUJ_js.j(e,"a","val")??chunkDV6GWBUJ_js.j(e,null,"val");return null}default:return null}}function pt(e){let t={...He};if(!e)return t;for(let n of ft){let o=chunkDV6GWBUJ_js.e(e,"a",n);if(o){let r=chunkDV6GWBUJ_js.i(o);if(r.length>0){let a=ct(r[0]);a&&(t[n]=a);}}}return t}function ve(e){let t={latin:"",ea:"",cs:"",fonts:{}};if(!e)return t;let n=chunkDV6GWBUJ_js.e(e,"a","latin");n&&(t.latin=chunkDV6GWBUJ_js.j(n,"a","typeface")??chunkDV6GWBUJ_js.j(n,null,"typeface")??"");let o=chunkDV6GWBUJ_js.e(e,"a","ea");o&&(t.ea=chunkDV6GWBUJ_js.j(o,"a","typeface")??chunkDV6GWBUJ_js.j(o,null,"typeface")??"");let r=chunkDV6GWBUJ_js.e(e,"a","cs");r&&(t.cs=chunkDV6GWBUJ_js.j(r,"a","typeface")??chunkDV6GWBUJ_js.j(r,null,"typeface")??"");let a=chunkDV6GWBUJ_js.f(e,"a","font");for(let u of a){let l=chunkDV6GWBUJ_js.j(u,"a","script")??chunkDV6GWBUJ_js.j(u,null,"script"),f=chunkDV6GWBUJ_js.j(u,"a","typeface")??chunkDV6GWBUJ_js.j(u,null,"typeface");l&&f&&(t.fonts=t.fonts||{},t.fonts[l]=f);}return t}function dt(e){let t={...J};if(!e)return t;let n=chunkDV6GWBUJ_js.e(e,"a","majorFont");n&&(t.majorFont=ve(n));let o=chunkDV6GWBUJ_js.e(e,"a","minorFont");return o&&(t.minorFont=ve(o)),t}function Rn(e){if(!e)return {...he};try{let t=chunkDV6GWBUJ_js.c(e);if(!t)return {...he};let n=chunkDV6GWBUJ_js.j(t,"a","name")??chunkDV6GWBUJ_js.j(t,null,"name")??"Office Theme",o=chunkDV6GWBUJ_js.e(t,"a","themeElements"),r=chunkDV6GWBUJ_js.e(o,"a","clrScheme"),a=pt(r),u=chunkDV6GWBUJ_js.e(o,"a","fontScheme"),l=dt(u);return {name:n,colorScheme:a,fontScheme:l}}catch(t){return console.warn("Failed to parse theme:",t),{...he}}}function mt(e,t="latin"){if(!e?.fontScheme?.majorFont)return J.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 Ne(e,t="latin"){if(!e?.fontScheme?.minorFont)return J.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 Y(e,t){if(!t)return "Calibri";let n=t.toLowerCase().includes("major"),o=t.toLowerCase().includes("minor"),r="latin",a=t.toLowerCase();return a.includes("eastasia")?r="ea":(a.includes("bidi")||a.includes("cs"))&&(r="cs"),n?mt(e,r):o?Ne(e,r):Ne(e,"latin")}function Ae(e){if(!e)return;let t=chunkDV6GWBUJ_js.l(e,"w","w")??0,n=chunkDV6GWBUJ_js.j(e,"w","type")??"dxa",o="dxa";return (n==="auto"||n==="dxa"||n==="nil"||n==="pct")&&(o=n),{value:t,type:o}}function O(e){return Ae(e)}function V(e){let t=chunkDV6GWBUJ_js.j(e,"w","id"),n=t?parseInt(t,10):0,o=(chunkDV6GWBUJ_js.j(e,"w","author")??"").trim(),r=(chunkDV6GWBUJ_js.j(e,"w","date")??"").trim();return {id:Number.isInteger(n)&&n>=0?n:0,author:o.length>0?o:"Unknown",date:r.length>0?r:void 0}}function ee(e){return V(e)}function D(e){if(!e)return;let o={style:chunkDV6GWBUJ_js.j(e,"w","val")??"none"},r=chunkDV6GWBUJ_js.l(e,"w","sz");r!==void 0&&(o.size=r);let a=chunkDV6GWBUJ_js.l(e,"w","space");a!==void 0&&(o.space=a);let u=chunkDV6GWBUJ_js.j(e,"w","color"),l=chunkDV6GWBUJ_js.j(e,"w","themeColor"),f=chunkDV6GWBUJ_js.j(e,"w","themeTint"),c=chunkDV6GWBUJ_js.j(e,"w","themeShade");(u||l||f||c)&&(o.color={rgb:u??void 0,themeColor:l,themeTint:f??void 0,themeShade:c??void 0});let p=chunkDV6GWBUJ_js.j(e,"w","shadow");(p==="1"||p==="true")&&(o.shadow=true);let d=chunkDV6GWBUJ_js.j(e,"w","frame");return (d==="1"||d==="true")&&(o.frame=true),o}function te(e){if(!e)return;let t={},n=D(chunkDV6GWBUJ_js.e(e,"w","top"));n&&(t.top=n);let o=D(chunkDV6GWBUJ_js.e(e,"w","bottom"));o&&(t.bottom=o);let r=D(chunkDV6GWBUJ_js.e(e,"w","left")??chunkDV6GWBUJ_js.e(e,"w","start"));r&&(t.left=r);let a=D(chunkDV6GWBUJ_js.e(e,"w","right")??chunkDV6GWBUJ_js.e(e,"w","end"));a&&(t.right=a);let u=D(chunkDV6GWBUJ_js.e(e,"w","insideH"));u&&(t.insideH=u);let l=D(chunkDV6GWBUJ_js.e(e,"w","insideV"));if(l&&(t.insideV=l),Object.keys(t).length!==0)return t}function ne(e){if(!e)return;let t={},n=O(chunkDV6GWBUJ_js.e(e,"w","top"));n&&(t.top=n);let o=O(chunkDV6GWBUJ_js.e(e,"w","bottom"));o&&(t.bottom=o);let r=O(chunkDV6GWBUJ_js.e(e,"w","left")??chunkDV6GWBUJ_js.e(e,"w","start"));r&&(t.left=r);let a=O(chunkDV6GWBUJ_js.e(e,"w","right")??chunkDV6GWBUJ_js.e(e,"w","end"));if(a&&(t.right=a),Object.keys(t).length!==0)return t}function oe(e){if(!e)return;let t={},n=chunkDV6GWBUJ_js.j(e,"w","fill");n&&n!=="auto"&&(t.fill={rgb:n});let o=chunkDV6GWBUJ_js.j(e,"w","themeFill");if(o){t.fill={themeColor:o};let u=chunkDV6GWBUJ_js.j(e,"w","themeFillTint");u&&t.fill&&(t.fill.themeTint=u);let l=chunkDV6GWBUJ_js.j(e,"w","themeFillShade");l&&t.fill&&(t.fill.themeShade=l);}let r=chunkDV6GWBUJ_js.j(e,"w","color");r&&r!=="auto"&&(t.color={rgb:r});let a=chunkDV6GWBUJ_js.j(e,"w","val");if(a&&(t.pattern=a),Object.keys(t).length!==0)return t}function we(e){if(!e)return;let t={},n=chunkDV6GWBUJ_js.j(e,"w","firstRow");(n==="1"||n==="true")&&(t.firstRow=true);let o=chunkDV6GWBUJ_js.j(e,"w","lastRow");(o==="1"||o==="true")&&(t.lastRow=true);let r=chunkDV6GWBUJ_js.j(e,"w","firstColumn");(r==="1"||r==="true")&&(t.firstColumn=true);let a=chunkDV6GWBUJ_js.j(e,"w","lastColumn");(a==="1"||a==="true")&&(t.lastColumn=true);let u=chunkDV6GWBUJ_js.j(e,"w","noHBand");(u==="1"||u==="true")&&(t.noHBand=true);let l=chunkDV6GWBUJ_js.j(e,"w","noVBand");(l==="1"||l==="true")&&(t.noVBand=true);let f=chunkDV6GWBUJ_js.j(e,"w","val");if(f){let c=parseInt(f,16);isNaN(c)||(c&32&&(t.firstRow=true),c&64&&(t.lastRow=true),c&128&&(t.firstColumn=true),c&256&&(t.lastColumn=true),c&512&&(t.noHBand=true),c&1024&&(t.noVBand=true));}if(Object.keys(t).length!==0)return t}function ye(e){if(!e)return;let t={},n=chunkDV6GWBUJ_js.j(e,"w","horzAnchor");(n==="margin"||n==="page"||n==="text")&&(t.horzAnchor=n);let o=chunkDV6GWBUJ_js.j(e,"w","vertAnchor");(o==="margin"||o==="page"||o==="text")&&(t.vertAnchor=o);let r=chunkDV6GWBUJ_js.l(e,"w","tblpX");r!==void 0&&(t.tblpX=r);let a=chunkDV6GWBUJ_js.j(e,"w","tblpXSpec");a&&(t.tblpXSpec=a);let u=chunkDV6GWBUJ_js.l(e,"w","tblpY");u!==void 0&&(t.tblpY=u);let l=chunkDV6GWBUJ_js.j(e,"w","tblpYSpec");l&&(t.tblpYSpec=l);let f=chunkDV6GWBUJ_js.l(e,"w","topFromText");f!==void 0&&(t.topFromText=f);let c=chunkDV6GWBUJ_js.l(e,"w","bottomFromText");c!==void 0&&(t.bottomFromText=c);let p=chunkDV6GWBUJ_js.l(e,"w","leftFromText");p!==void 0&&(t.leftFromText=p);let d=chunkDV6GWBUJ_js.l(e,"w","rightFromText");if(d!==void 0&&(t.rightFromText=d),Object.keys(t).length!==0)return t}function gt(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 ht(e){return e.rows.length}function wt(e){return e.formatting?.vMerge==="continue"}function yt(e){return e.formatting?.vMerge==="restart"}function bt(e){return e.rows.length===0?false:e.rows[0].formatting?.header===true}var Tt={richText:"richText",text:"plainText",date:"date",dropDownList:"dropDownList",comboBox:"comboBox",picture:"picture",docPartObj:"buildingBlockGallery",docPartList:"buildingBlockGallery",group:"group",equation:"equation",citation:"citation",bibliography:"bibliography",checkbox:"checkbox"};function Ft(e){if(!e||!e.elements)return "richText";for(let t of e.elements){if(t.type!=="element"||!t.name)continue;let n=chunkDV6GWBUJ_js.d(t.name),o=Tt[n];if(o)return o}return "richText"}function Ct(e){let t=[];for(let n of e.elements??[])n.type==="element"&&chunkDV6GWBUJ_js.d(n.name||"")==="listItem"&&t.push({displayText:chunkDV6GWBUJ_js.j(n,"w","displayText")||"",value:chunkDV6GWBUJ_js.j(n,"w","value")||""});return t}function re(e,t){let n={sdtType:Ft(e)};if(e){n.rawPropertiesXml=chunkDV6GWBUJ_js.b(e);for(let o of e.elements??[]){if(o.type!=="element"||!o.name)continue;switch(chunkDV6GWBUJ_js.d(o.name)){case "id":{let a=chunkDV6GWBUJ_js.j(o,"w","val");if(a!=null){let u=parseInt(a,10);Number.isNaN(u)||(n.id=u);}break}case "alias":n.alias=chunkDV6GWBUJ_js.j(o,"w","val")??void 0;break;case "tag":n.tag=chunkDV6GWBUJ_js.j(o,"w","val")??void 0;break;case "lock":n.lock=chunkDV6GWBUJ_js.j(o,"w","val")??"unlocked";break;case "placeholder":{let a=chunkDV6GWBUJ_js.e(o,"w","docPart");a&&(n.placeholder=chunkDV6GWBUJ_js.j(a,"w","val")??void 0);break}case "showingPlcHdr":{let a=chunkDV6GWBUJ_js.j(o,"w","val");n.showingPlaceholder=a==null||!/^(0|false|off)$/i.test(a);break}case "date":{let a=chunkDV6GWBUJ_js.e(o,"w","dateFormat");a&&(n.dateFormat=chunkDV6GWBUJ_js.j(a,"w","val")??void 0);break}case "dropDownList":case "comboBox":n.listItems=Ct(o);break;case "checkbox":{let a=chunkDV6GWBUJ_js.e(o,"w14","checked")??chunkDV6GWBUJ_js.e(o,"w","checked");n.checked=a?chunkDV6GWBUJ_js.j(a,"w14","val")==="1"||chunkDV6GWBUJ_js.j(a,"w","val")==="1":false;break}case "dataBinding":{let a={},u=chunkDV6GWBUJ_js.j(o,"w","xpath"),l=chunkDV6GWBUJ_js.j(o,"w","storeItemID"),f=chunkDV6GWBUJ_js.j(o,"w","prefixMappings");u!=null&&(a.xpath=u),l!=null&&(a.storeItemID=l),f!=null&&(a.prefixMappings=f),n.dataBinding=a;break}}}}return t&&(n.rawEndPropertiesXml=chunkDV6GWBUJ_js.b(t)),n}var Ie={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 xt(e){if(!e||e.trim()==="")return "\u2022";let t=e.charCodeAt(0);return Ie[t]?Ie[t]:t>=57344&&t<=63743||t<32||t>=127&&t<160?"\u2022":e}function St(e){let t=e.listRendering;t&&t.isBullet&&(t.marker=xt(t.marker||""));}function kt(e,t,n,o,r,a,u){if(e.content.length===0)return;let l=chunkDV6GWBUJ_js.i(t),f=0;function c(p){if(!chunkE4JMCA5X_js.h(p))return;let d=chunkE4JMCA5X_js.j(p);if(!d)return;let C=chunkDV6GWBUJ_js.n(p,"wps","wsp");if(C){let T=chunkE4JMCA5X_js.k(C);T&&(d.content=chunkE4JMCA5X_js.g(T,W,null,n,o,r,a??void 0,u??void 0));}let b={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&&(b.id=d.id);let w={type:"shape",shape:b},h=f;if(h>=e.content.length){h=-1;for(let T=e.content.length-1;T>=0;T--)if(e.content[T].type==="run"){h=T;break}}if(h>=0){let T=e.content[h];T.type==="run"&&T.content.push(w);}}for(let p of l){if(chunkDV6GWBUJ_js.d(p.name??"")!=="r")continue;let d=chunkDV6GWBUJ_js.i(p);for(let C of d){let b=chunkDV6GWBUJ_js.d(C.name??"");if(b==="drawing")c(C);else if(b==="AlternateContent"){let w=chunkDV6GWBUJ_js.i(C),T=w.find(B=>chunkDV6GWBUJ_js.d(B.name??"")==="Choice")??w.find(B=>chunkDV6GWBUJ_js.d(B.name??"")==="Fallback");if(T)for(let B of chunkDV6GWBUJ_js.i(T))chunkDV6GWBUJ_js.d(B.name??"")==="drawing"&&c(B);}}f++;}}function ie(e,t,n,o,r,a,u){let l=[],f=chunkDV6GWBUJ_js.i(e);for(let c of f){let p=c.name??"";if(p==="w:p"||p.endsWith(":p")){let d=W(c,t,n,o,r,a,u);kt(d,c,t,n,o,r,a),St(d),l.push(d);}else if(p==="w:tbl"||p.endsWith(":tbl")){let d=$(c,t,n,o,r,a,u);l.push(d);}else (p==="w:sdt"||p.endsWith(":sdt"))&&l.push(Mt(c,t,n,o,r,a,u));}return l}function Mt(e,t,n,o,r,a,u){let l=chunkDV6GWBUJ_js.e(e,"w","sdtPr"),f=chunkDV6GWBUJ_js.e(e,"w","sdtEndPr"),c=chunkDV6GWBUJ_js.e(e,"w","sdtContent"),p=re(l,f),d=c?ie(c,t,n,o,r,a,u):[];return {type:"blockSdt",properties:p,content:d}}function Le(e){switch(e){case "first":return "first";case "even":return "even";default:return "default"}}function Xe(e){let t=chunkDV6GWBUJ_js.j(e,"w","type"),n=chunkDV6GWBUJ_js.j(e,"r","id")??"";return {type:Le(t),rId:n}}function Oe(e){let t=chunkDV6GWBUJ_js.j(e,"w","type"),n=chunkDV6GWBUJ_js.j(e,"r","id")??"";return {type:Le(t),rId:n}}function jn(e,t="default",n=null,o=null,r=null,a=null,u=null){let l={type:"header",hdrFtrType:t,content:[]};if(!e)return l;let f=chunkDV6GWBUJ_js.a(e);if(!f)return l;let c=f.elements?.find(p=>p.type==="element"&&(p.name==="w:hdr"||p.name?.endsWith(":hdr")));return c&&(l.content=ie(c,n,o,r,a,u,{inHeaderFooter:true})),l}function zn(e,t="default",n=null,o=null,r=null,a=null,u=null){let l={type:"footer",hdrFtrType:t,content:[]};if(!e)return l;let f=chunkDV6GWBUJ_js.a(e);if(!f)return l;let c=f.elements?.find(p=>p.type==="element"&&(p.name==="w:ftr"||p.name?.endsWith(":ftr")));return c&&(l.content=ie(c,n,o,r,a,u,{inHeaderFooter:true})),l}function De(e){switch(e){case "separator":return "separator";case "continuationSeparator":return "continuationSeparator";case "continuationNotice":return "continuationNotice";default:return "normal"}}function Ve(e,t,n,o,r,a){let u=[];for(let l of chunkDV6GWBUJ_js.i(e)){let f=l.name??"";f==="w:p"?u.push(W(l,t,n,o,r)):f==="w:tbl"&&u.push($(l,t,n,o,r,a));}return u}function Rt(e,t,n,o,r,a){let u=chunkDV6GWBUJ_js.l(e,"w","id")??0,l=chunkDV6GWBUJ_js.j(e,"w","type"),f=De(l),c=Ve(e,t,n,o,r,a);return {type:"footnote",id:u,noteType:f,content:c}}function Yn(e,t=null,n=null,o=null,r=null,a=null){let u=new Map,l=[];if(!e)return ae(u,l);let f=chunkDV6GWBUJ_js.a(e);if(!f)return ae(u,l);let c=f.elements?.find(d=>d.type==="element"&&(d.name==="w:footnotes"||d.name?.endsWith(":footnotes")));if(!c)return ae(u,l);let p=chunkDV6GWBUJ_js.f(c,"w","footnote");for(let d of p){let C=Rt(d,t,n,o,r,a);u.set(C.id,C),l.push(C);}return ae(u,l)}function ae(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 Et(e,t,n,o,r,a){let u=chunkDV6GWBUJ_js.l(e,"w","id")??0,l=chunkDV6GWBUJ_js.j(e,"w","type"),f=De(l),c=Ve(e,t,n,o,r,a);return {type:"endnote",id:u,noteType:f,content:c}}function $n(e,t=null,n=null,o=null,r=null,a=null){let u=new Map,l=[];if(!e)return le(u,l);let f=chunkDV6GWBUJ_js.a(e);if(!f)return le(u,l);let c=f.elements?.find(d=>d.type==="element"&&(d.name==="w:endnotes"||d.name?.endsWith(":endnotes")));if(!c)return le(u,l);let p=chunkDV6GWBUJ_js.f(c,"w","endnote");for(let d of p){let C=Et(d,t,n,o,r,a);u.set(C.id,C),l.push(C);}return le(u,l)}function le(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 Pt(e){switch(e){case "pageBottom":return "pageBottom";case "beneathText":return "beneathText";case "sectEnd":return "sectEnd";case "docEnd":return "docEnd";default:return}}function Bt(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 ze(e){let t={};if(!e)return t;let n=chunkDV6GWBUJ_js.e(e,"w","pos");if(n){let u=chunkDV6GWBUJ_js.j(n,"w","val");t.position=Pt(u);}let o=chunkDV6GWBUJ_js.e(e,"w","numFmt");if(o){let u=chunkDV6GWBUJ_js.j(o,"w","val");t.numFmt=We(u);}let r=chunkDV6GWBUJ_js.e(e,"w","numStart");r&&(t.numStart=chunkDV6GWBUJ_js.l(r,"w","val")??void 0);let a=chunkDV6GWBUJ_js.e(e,"w","numRestart");if(a){let u=chunkDV6GWBUJ_js.j(a,"w","val");t.numRestart=je(u);}return t}function Ue(e){let t={};if(!e)return t;let n=chunkDV6GWBUJ_js.e(e,"w","pos");if(n){let u=chunkDV6GWBUJ_js.j(n,"w","val");t.position=Bt(u);}let o=chunkDV6GWBUJ_js.e(e,"w","numFmt");if(o){let u=chunkDV6GWBUJ_js.j(o,"w","val");t.numFmt=We(u);}let r=chunkDV6GWBUJ_js.e(e,"w","numStart");r&&(t.numStart=chunkDV6GWBUJ_js.l(r,"w","val")??void 0);let a=chunkDV6GWBUJ_js.e(e,"w","numRestart");if(a){let u=chunkDV6GWBUJ_js.j(a,"w","val");t.numRestart=je(u);}return t}function Kn(e){let t=[];for(let n of e.content){if(n.type!=="paragraph")continue;let o=[];for(let r of n.content)if(r.type==="run")for(let a of r.content)a.type==="text"&&o.push(a.text);t.push(o.join(""));}return t.join(`
|
|
2
|
+
`)}function Zn(e){let t=[];for(let n of e.content){if(n.type!=="paragraph")continue;let o=[];for(let r of n.content)if(r.type==="run")for(let a of r.content)a.type==="text"&&o.push(a.text);t.push(o.join(""));}return t.join(`
|
|
3
|
+
`)}function Qn(e){return e.noteType==="separator"||e.noteType==="continuationSeparator"||e.noteType==="continuationNotice"}function Jn(e){return e.noteType==="separator"||e.noteType==="continuationSeparator"||e.noteType==="continuationNotice"}function vt(e,t,n,o){if(!e&&!t)return;let r={};return e&&e!=="auto"?r.rgb=e:e==="auto"&&(r.auto=true),t&&(r.themeColor=t),n&&(r.themeTint=n),o&&(r.themeShade=o),Object.keys(r).length>0?r:void 0}function se(e){if(!e)return;let o={style:chunkDV6GWBUJ_js.j(e,"w","val")??"none"},r=chunkDV6GWBUJ_js.l(e,"w","sz");r!==void 0&&(o.size=r);let a=chunkDV6GWBUJ_js.l(e,"w","space");a!==void 0&&(o.space=a);let u=chunkDV6GWBUJ_js.j(e,"w","color"),l=chunkDV6GWBUJ_js.j(e,"w","themeColor"),f=chunkDV6GWBUJ_js.j(e,"w","themeTint"),c=chunkDV6GWBUJ_js.j(e,"w","themeShade"),p=vt(u,l,f,c);p&&(o.color=p);let d=chunkDV6GWBUJ_js.j(e,"w","shadow");(d==="1"||d==="true")&&(o.shadow=true);let C=chunkDV6GWBUJ_js.j(e,"w","frame");return (C==="1"||C==="true")&&(o.frame=true),o}function Nt(e){switch(e){case "landscape":return "landscape";case "portrait":return "portrait";default:return}}function Ht(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 At(e){switch(e){case "top":return "top";case "center":return "center";case "both":return "both";case "bottom":return "bottom";default:return}}function It(e){switch(e){case "continuous":return "continuous";case "newPage":return "newPage";case "newSection":return "newSection";default:return}}function qe(e,t){let n={};if(!e)return n;let o=chunkDV6GWBUJ_js.e(e,"w","pgSz");if(o){let m=chunkDV6GWBUJ_js.l(o,"w","w");m!==void 0&&(n.pageWidth=m);let F=chunkDV6GWBUJ_js.l(o,"w","h");F!==void 0&&(n.pageHeight=F);let E=chunkDV6GWBUJ_js.j(o,"w","orient"),y=Nt(E);y&&(n.orientation=y);}let r=chunkDV6GWBUJ_js.e(e,"w","pgMar");if(r){let m=chunkDV6GWBUJ_js.l(r,"w","top");m!==void 0&&(n.marginTop=m);let F=chunkDV6GWBUJ_js.l(r,"w","bottom");F!==void 0&&(n.marginBottom=F);let E=chunkDV6GWBUJ_js.l(r,"w","left");E!==void 0&&(n.marginLeft=E);let y=chunkDV6GWBUJ_js.l(r,"w","right");y!==void 0&&(n.marginRight=y);let x=chunkDV6GWBUJ_js.l(r,"w","header");x!==void 0&&(n.headerDistance=x);let P=chunkDV6GWBUJ_js.l(r,"w","footer");P!==void 0&&(n.footerDistance=P);let v=chunkDV6GWBUJ_js.l(r,"w","gutter");v!==void 0&&(n.gutter=v);}let a=chunkDV6GWBUJ_js.e(e,"w","cols");if(a){let m=chunkDV6GWBUJ_js.l(a,"w","num");m!==void 0&&(n.columnCount=m);let F=chunkDV6GWBUJ_js.l(a,"w","space");F!==void 0&&(n.columnSpace=F);let E=chunkDV6GWBUJ_js.j(a,"w","equalWidth");E==="1"||E==="true"?n.equalWidth=true:(E==="0"||E==="false")&&(n.equalWidth=false);let y=chunkDV6GWBUJ_js.j(a,"w","sep");(y==="1"||y==="true")&&(n.separator=true);let x=chunkDV6GWBUJ_js.f(a,"w","col");if(x.length>0){n.columns=[];for(let P of x){let v={},I=chunkDV6GWBUJ_js.l(P,"w","w");I!==void 0&&(v.width=I);let A=chunkDV6GWBUJ_js.l(P,"w","space");A!==void 0&&(v.space=A),n.columns.push(v);}n.columnCount===void 0&&(n.columnCount=x.length);}}let u=chunkDV6GWBUJ_js.e(e,"w","type");if(u){let m=chunkDV6GWBUJ_js.j(u,"w","val"),F=Ht(m);F&&(n.sectionStart=F);}let l=chunkDV6GWBUJ_js.e(e,"w","vAlign");if(l){let m=chunkDV6GWBUJ_js.j(l,"w","val"),F=At(m);F&&(n.verticalAlign=F);}let f=chunkDV6GWBUJ_js.e(e,"w","bidi");f&&(n.bidi=chunkDV6GWBUJ_js.m(f));let c=chunkDV6GWBUJ_js.f(e,"w","headerReference");c.length>0&&(n.headerReferences=c.map(m=>Xe(m)));let p=chunkDV6GWBUJ_js.f(e,"w","footerReference");p.length>0&&(n.footerReferences=p.map(m=>Oe(m)));let d=chunkDV6GWBUJ_js.e(e,"w","titlePg");d&&(n.titlePg=chunkDV6GWBUJ_js.m(d));let C=chunkDV6GWBUJ_js.e(e,"w","evenAndOddHeaders");C&&(n.evenAndOddHeaders=chunkDV6GWBUJ_js.m(C));let b=chunkDV6GWBUJ_js.e(e,"w","lnNumType");if(b){n.lineNumbers={};let m=chunkDV6GWBUJ_js.l(b,"w","start");m!==void 0&&(n.lineNumbers.start=m);let F=chunkDV6GWBUJ_js.l(b,"w","countBy");F!==void 0&&(n.lineNumbers.countBy=F);let E=chunkDV6GWBUJ_js.l(b,"w","distance");E!==void 0&&(n.lineNumbers.distance=E);let y=chunkDV6GWBUJ_js.j(b,"w","restart"),x=It(y);x&&(n.lineNumbers.restart=x);}let w=chunkDV6GWBUJ_js.e(e,"w","pgBorders");if(w){n.pageBorders={};let m=se(chunkDV6GWBUJ_js.e(w,"w","top"));m&&(n.pageBorders.top=m);let F=se(chunkDV6GWBUJ_js.e(w,"w","bottom"));F&&(n.pageBorders.bottom=F);let E=se(chunkDV6GWBUJ_js.e(w,"w","left"));E&&(n.pageBorders.left=E);let y=se(chunkDV6GWBUJ_js.e(w,"w","right"));y&&(n.pageBorders.right=y);let x=chunkDV6GWBUJ_js.j(w,"w","display");(x==="allPages"||x==="firstPage"||x==="notFirstPage")&&(n.pageBorders.display=x);let P=chunkDV6GWBUJ_js.j(w,"w","offsetFrom");(P==="page"||P==="text")&&(n.pageBorders.offsetFrom=P);let v=chunkDV6GWBUJ_js.j(w,"w","zOrder");(v==="front"||v==="back")&&(n.pageBorders.zOrder=v);}let h=chunkDV6GWBUJ_js.e(e,"w","background");if(h){n.background={};let m=chunkDV6GWBUJ_js.j(h,"w","color");m&&m!=="auto"&&(n.background.color={rgb:m});let F=chunkDV6GWBUJ_js.j(h,"w","themeColor");F&&(n.background.themeColor=F);let E=chunkDV6GWBUJ_js.j(h,"w","themeTint");E&&(n.background.themeTint=E);let y=chunkDV6GWBUJ_js.j(h,"w","themeShade");y&&(n.background.themeShade=y);}let T=chunkDV6GWBUJ_js.e(e,"w","footnotePr");if(T){let m=ze(T);Object.keys(m).length>0&&(n.footnotePr=m);}let B=chunkDV6GWBUJ_js.e(e,"w","endnotePr");if(B){let m=Ue(B);Object.keys(m).length>0&&(n.endnotePr=m);}let M=chunkDV6GWBUJ_js.e(e,"w","docGrid");if(M){n.docGrid={};let m=chunkDV6GWBUJ_js.j(M,"w","type");(m==="default"||m==="lines"||m==="linesAndChars"||m==="snapToChars")&&(n.docGrid.type=m);let F=chunkDV6GWBUJ_js.l(M,"w","linePitch");F!==void 0&&(n.docGrid.linePitch=F);let E=chunkDV6GWBUJ_js.l(M,"w","charSpace");E!==void 0&&(n.docGrid.charSpace=E);}let S=chunkDV6GWBUJ_js.e(e,"w","paperSrc");if(S){let m=chunkDV6GWBUJ_js.l(S,"w","first");m!==void 0&&(n.paperSrcFirst=m);let F=chunkDV6GWBUJ_js.l(S,"w","other");F!==void 0&&(n.paperSrcOther=F);}return n}function ro(){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 Ge(e,t){if(!t||t.length===0)return e;let n=new Set((e??[]).map(r=>r.type)),o=t.filter(r=>!n.has(r.type));return o.length===0?e:[...e??[],...o]}function io(e){if(e.length<2)return e;let t=[e[0]];for(let n=1;n<e.length;n++){let o=t[n-1].properties,r=e[n].properties,a=Ge(r.headerReferences,o.headerReferences),u=Ge(r.footerReferences,o.footerReferences),l=r.titlePg!==void 0?r.titlePg:o.titlePg;if(a===r.headerReferences&&u===r.footerReferences&&l===r.titlePg){t.push(e[n]);continue}t.push({...e[n],properties:{...r,headerReferences:a,footerReferences:u,titlePg:l}});}return t}function Lt(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||!Xt(e.underline,t.underline)||!ue(e.color,t.color)||!Ot(e.shading,t.shading)||!Dt(e.fontFamily,t.fontFamily))}function Xt(e,t){return !e&&!t?true:!e||!t||e.style!==t.style?false:ue(e.color,t.color)}function ue(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 Ot(e,t){return !e&&!t?true:!(!e||!t||e.pattern!==t.pattern||!ue(e.color,t.color)||!ue(e.fill,t.fill))}function Dt(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 Vt(e){return e.type==="text"||e.type==="softHyphen"||e.type==="noBreakHyphen"}function _e(e){return e.content.length===0?true:e.content.every(Vt)}function Wt(e,t){let n=[];for(let o of e)n.push(o);if(n.length>0&&t.length>0&&n[n.length-1].type==="text"&&t[0].type==="text"){let o=n[n.length-1],r=t[0];n[n.length-1]={type:"text",text:o.text+r.text,preserveSpace:o.preserveSpace||r.preserveSpace||void 0};for(let a=1;a<t.length;a++)n.push(t[a]);}else for(let o of t)n.push(o);return n}function jt(e){if(e.length<=1)return e;let t=[],n=null;for(let o of e)if(o.content.length!==0){if(n===null){n={...o,content:[...o.content]};continue}_e(n)&&_e(o)&&Lt(n.formatting,o.formatting)?n={type:"run",formatting:n.formatting,content:Wt(n.content,o.content)}:(t.push(n),n={...o,content:[...o.content]});}return n!==null&&t.push(n),t}function be(e){if(e.length<=1)return e;let t=[],n=[];function o(){if(n.length>0){let r=jt(n);t.push(...r),n.length=0;}}for(let r of e)if(r.type==="run")n.push(r);else if(o(),r.type==="hyperlink"){let a={...r,children:be(r.children)};t.push(a);}else t.push(r);return o(),t}function Ye(e,t,n,o){let r={};return e&&e!=="auto"?r.rgb=e:e==="auto"&&(r.auto=true),t&&(r.themeColor=t),n&&(r.themeTint=n),o&&(r.themeShade=o),r}function zt(e){if(!e)return;let t={},n=chunkDV6GWBUJ_js.j(e,"w","color");n&&n!=="auto"&&(t.color={rgb:n});let o=chunkDV6GWBUJ_js.j(e,"w","fill");o&&o!=="auto"&&(t.fill={rgb:o});let r=chunkDV6GWBUJ_js.j(e,"w","themeFill");r&&(t.fill=t.fill||{},t.fill.themeColor=r);let a=chunkDV6GWBUJ_js.j(e,"w","themeFillTint");a&&t.fill&&(t.fill.themeTint=a);let u=chunkDV6GWBUJ_js.j(e,"w","themeFillShade");u&&t.fill&&(t.fill.themeShade=u);let l=chunkDV6GWBUJ_js.j(e,"w","val");return l&&(t.pattern=l),Object.keys(t).length>0?t:void 0}function ce(e,t,n){if(!e)return;let o={},r=chunkDV6GWBUJ_js.e(e,"w","b");r&&(o.bold=chunkDV6GWBUJ_js.m(r));let a=chunkDV6GWBUJ_js.e(e,"w","bCs");a&&(o.boldCs=chunkDV6GWBUJ_js.m(a));let u=chunkDV6GWBUJ_js.e(e,"w","i");u&&(o.italic=chunkDV6GWBUJ_js.m(u));let l=chunkDV6GWBUJ_js.e(e,"w","iCs");l&&(o.italicCs=chunkDV6GWBUJ_js.m(l));let f=chunkDV6GWBUJ_js.e(e,"w","u");if(f){let k=chunkDV6GWBUJ_js.j(f,"w","val");if(k){o.underline={style:k};let z=chunkDV6GWBUJ_js.j(f,"w","color"),U=chunkDV6GWBUJ_js.j(f,"w","themeColor");(z||U)&&(o.underline.color=Ye(z,U,chunkDV6GWBUJ_js.j(f,"w","themeTint"),chunkDV6GWBUJ_js.j(f,"w","themeShade")));}}let c=chunkDV6GWBUJ_js.e(e,"w","strike");c&&(o.strike=chunkDV6GWBUJ_js.m(c));let p=chunkDV6GWBUJ_js.e(e,"w","dstrike");p&&(o.doubleStrike=chunkDV6GWBUJ_js.m(p));let d=chunkDV6GWBUJ_js.e(e,"w","vertAlign");if(d){let k=chunkDV6GWBUJ_js.j(d,"w","val");(k==="superscript"||k==="subscript"||k==="baseline")&&(o.vertAlign=k);}let C=chunkDV6GWBUJ_js.e(e,"w","smallCaps");C&&(o.smallCaps=chunkDV6GWBUJ_js.m(C));let b=chunkDV6GWBUJ_js.e(e,"w","caps");b&&(o.allCaps=chunkDV6GWBUJ_js.m(b));let w=chunkDV6GWBUJ_js.e(e,"w","vanish");w&&(o.hidden=chunkDV6GWBUJ_js.m(w));let h=chunkDV6GWBUJ_js.e(e,"w","color");h&&(o.color=Ye(chunkDV6GWBUJ_js.j(h,"w","val"),chunkDV6GWBUJ_js.j(h,"w","themeColor"),chunkDV6GWBUJ_js.j(h,"w","themeTint"),chunkDV6GWBUJ_js.j(h,"w","themeShade")));let T=chunkDV6GWBUJ_js.e(e,"w","highlight");if(T){let k=chunkDV6GWBUJ_js.j(T,"w","val");k&&(o.highlight=k);}let B=chunkDV6GWBUJ_js.e(e,"w","shd");B&&(o.shading=zt(B));let M=chunkDV6GWBUJ_js.e(e,"w","sz");if(M){let k=chunkDV6GWBUJ_js.l(M,"w","val");k!==void 0&&(o.fontSize=k);}let S=chunkDV6GWBUJ_js.e(e,"w","szCs");if(S){let k=chunkDV6GWBUJ_js.l(S,"w","val");k!==void 0&&(o.fontSizeCs=k);}let m=chunkDV6GWBUJ_js.e(e,"w","rFonts");if(m){o.fontFamily={ascii:chunkDV6GWBUJ_js.j(m,"w","ascii")??void 0,hAnsi:chunkDV6GWBUJ_js.j(m,"w","hAnsi")??void 0,eastAsia:chunkDV6GWBUJ_js.j(m,"w","eastAsia")??void 0,cs:chunkDV6GWBUJ_js.j(m,"w","cs")??void 0};let k=chunkDV6GWBUJ_js.j(m,"w","asciiTheme");k&&(o.fontFamily.asciiTheme=k,t&&!o.fontFamily.ascii&&(o.fontFamily.ascii=Y(t,k)));let z=chunkDV6GWBUJ_js.j(m,"w","hAnsiTheme");z&&(o.fontFamily.hAnsiTheme=z,t&&!o.fontFamily.hAnsi&&(o.fontFamily.hAnsi=Y(t,z)));let U=chunkDV6GWBUJ_js.j(m,"w","eastAsiaTheme");U&&(o.fontFamily.eastAsiaTheme=U,t&&!o.fontFamily.eastAsia&&(o.fontFamily.eastAsia=Y(t,U)));let de=chunkDV6GWBUJ_js.j(m,"w","cstheme");de&&(o.fontFamily.csTheme=de,t&&!o.fontFamily.cs&&(o.fontFamily.cs=Y(t,de)));}let F=chunkDV6GWBUJ_js.e(e,"w","spacing");if(F){let k=chunkDV6GWBUJ_js.l(F,"w","val");k!==void 0&&(o.spacing=k);}let E=chunkDV6GWBUJ_js.e(e,"w","position");if(E){let k=chunkDV6GWBUJ_js.l(E,"w","val");k!==void 0&&(o.position=k);}let y=chunkDV6GWBUJ_js.e(e,"w","w");if(y){let k=chunkDV6GWBUJ_js.l(y,"w","val");k!==void 0&&(o.scale=k);}let x=chunkDV6GWBUJ_js.e(e,"w","kern");if(x){let k=chunkDV6GWBUJ_js.l(x,"w","val");k!==void 0&&(o.kerning=k);}let P=chunkDV6GWBUJ_js.e(e,"w","effect");if(P){let k=chunkDV6GWBUJ_js.j(P,"w","val");k&&(o.effect=k);}let v=chunkDV6GWBUJ_js.e(e,"w","em");if(v){let k=chunkDV6GWBUJ_js.j(v,"w","val");k&&(o.emphasisMark=k);}let I=chunkDV6GWBUJ_js.e(e,"w","emboss");I&&(o.emboss=chunkDV6GWBUJ_js.m(I));let A=chunkDV6GWBUJ_js.e(e,"w","imprint");A&&(o.imprint=chunkDV6GWBUJ_js.m(A));let X=chunkDV6GWBUJ_js.e(e,"w","outline");X&&(o.outline=chunkDV6GWBUJ_js.m(X));let Te=chunkDV6GWBUJ_js.e(e,"w","shadow");Te&&(o.shadow=chunkDV6GWBUJ_js.m(Te));let Fe=chunkDV6GWBUJ_js.e(e,"w","rtl");Fe&&(o.rtl=chunkDV6GWBUJ_js.m(Fe));let Ce=chunkDV6GWBUJ_js.e(e,"w","cs");Ce&&(o.cs=chunkDV6GWBUJ_js.m(Ce));let xe=chunkDV6GWBUJ_js.e(e,"w","rStyle");if(xe){let k=chunkDV6GWBUJ_js.j(xe,"w","val");k&&(o.styleId=k);}return Object.keys(o).length>0?o:void 0}function Ut(e){let t=chunkDV6GWBUJ_js.j(e,"w","id"),n=t?parseInt(t,10):0,o=(chunkDV6GWBUJ_js.j(e,"w","author")??"").trim(),r=(chunkDV6GWBUJ_js.j(e,"w","date")??"").trim(),a=(chunkDV6GWBUJ_js.j(e,"w","rsid")??"").trim();return {id:Number.isInteger(n)&&n>=0?n:0,author:o.length>0?o:"Unknown",date:r.length>0?r:void 0,rsid:a.length>0?a:void 0}}function Gt(e,t,n,o){if(!e)return;let r=chunkDV6GWBUJ_js.f(e,"w","rPrChange").map(a=>{let u=chunkDV6GWBUJ_js.e(a,"w","rPr");return {type:"runPropertyChange",info:Ut(a),previousFormatting:ce(u,t),currentFormatting:o}}).filter(a=>a.previousFormatting||a.currentFormatting);return r.length>0?r:void 0}function qt(e){let t=chunkDV6GWBUJ_js.k(e),n=chunkDV6GWBUJ_js.j(e,"xml","space")==="preserve";return {type:"text",text:t,preserveSpace:n||void 0}}function _t(){return {type:"tab"}}function Yt(e){let t=chunkDV6GWBUJ_js.j(e,"w","type"),n=chunkDV6GWBUJ_js.j(e,"w","clear"),o={type:"break"};return (t==="page"||t==="column"||t==="textWrapping")&&(o.breakType=t),(n==="none"||n==="left"||n==="right"||n==="all")&&(o.clear=n),o}function $t(e){let t=chunkDV6GWBUJ_js.j(e,"w","font")??"",n=chunkDV6GWBUJ_js.j(e,"w","char")??"";return {type:"symbol",font:t,char:n}}function Kt(e){return {type:"footnoteRef",id:chunkDV6GWBUJ_js.l(e,"w","id")??0}}function Zt(e){return {type:"endnoteRef",id:chunkDV6GWBUJ_js.l(e,"w","id")??0}}function Qt(e){let t=chunkDV6GWBUJ_js.j(e,"w","fldCharType"),n=chunkDV6GWBUJ_js.j(e,"w","fldLock")==="true"||chunkDV6GWBUJ_js.j(e,"w","fldLock")==="1",o=chunkDV6GWBUJ_js.j(e,"w","dirty")==="true"||chunkDV6GWBUJ_js.j(e,"w","dirty")==="1",r="begin";return t==="separate"?r="separate":t==="end"&&(r="end"),{type:"fieldChar",charType:r,fldLock:n||void 0,dirty:o||void 0}}function Jt(e){return {type:"instrText",text:chunkDV6GWBUJ_js.k(e)}}function $e(e,t,n){let o=chunkE4JMCA5X_js.z(e,t??void 0,n??void 0);return o?{type:"drawing",image:o}:null}function fe(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function en(e,t,n){let o=[],r=chunkDV6GWBUJ_js.i(e);for(let a of r)switch(fe(a.name)){case "t":o.push(qt(a));break;case "tab":o.push(_t());break;case "br":o.push(Yt(a));break;case "sym":o.push($t(a));break;case "footnoteReference":o.push(Kt(a));break;case "endnoteReference":o.push(Zt(a));break;case "fldChar":o.push(Qt(a));break;case "instrText":o.push(Jt(a));break;case "softHyphen":o.push({type:"softHyphen"});break;case "noBreakHyphen":o.push({type:"noBreakHyphen"});break;case "drawing":let l=$e(a,t,n);l&&o.push(l);break;case "pict":case "object":break;case "rPr":break;case "lastRenderedPageBreak":break;case "cr":o.push({type:"break",breakType:"textWrapping"});break;case "AlternateContent":{let c=chunkDV6GWBUJ_js.i(a).find(p=>fe(p.name)==="Choice")??chunkDV6GWBUJ_js.i(a).find(p=>fe(p.name)==="Fallback");if(c){for(let p of chunkDV6GWBUJ_js.i(c))if(fe(p.name)==="drawing"){let C=$e(p,t,n);C?.image?.src&&o.push(C);}}break}}return o}function K(e,t,n,o=null,r=null){let a={type:"run",content:[]},u=chunkDV6GWBUJ_js.e(e,"w","rPr");return u&&(a.formatting=ce(u,n),a.propertyChanges=Gt(u,n,t,a.formatting)),a.content=en(e,o,r),a}function tn(e,t,n,o){let r={};return e&&e!=="auto"?r.rgb=e:e==="auto"&&(r.auto=true),t&&(r.themeColor=t),n&&(r.themeTint=n),o&&(r.themeShade=o),r}function nn(e){if(!e)return;let t={},n=chunkDV6GWBUJ_js.j(e,"w","color");n&&n!=="auto"&&(t.color={rgb:n});let o=chunkDV6GWBUJ_js.j(e,"w","fill");o&&o!=="auto"&&(t.fill={rgb:o});let r=chunkDV6GWBUJ_js.j(e,"w","themeFill");r&&(t.fill=t.fill||{},t.fill.themeColor=r);let a=chunkDV6GWBUJ_js.j(e,"w","themeFillTint");a&&t.fill&&(t.fill.themeTint=a);let u=chunkDV6GWBUJ_js.j(e,"w","themeFillShade");u&&t.fill&&(t.fill.themeShade=u);let l=chunkDV6GWBUJ_js.j(e,"w","val");return l&&(t.pattern=l),Object.keys(t).length>0?t:void 0}function q(e){if(!e)return;let t=chunkDV6GWBUJ_js.j(e,"w","val");if(!t)return;let n={style:t},o=chunkDV6GWBUJ_js.j(e,"w","color"),r=chunkDV6GWBUJ_js.j(e,"w","themeColor");(o||r)&&(n.color=tn(o,r,chunkDV6GWBUJ_js.j(e,"w","themeTint"),chunkDV6GWBUJ_js.j(e,"w","themeShade")));let a=chunkDV6GWBUJ_js.l(e,"w","sz");a!==void 0&&(n.size=a);let u=chunkDV6GWBUJ_js.l(e,"w","space");u!==void 0&&(n.space=u);let l=chunkDV6GWBUJ_js.j(e,"w","shadow");l&&(n.shadow=l==="1"||l==="true");let f=chunkDV6GWBUJ_js.j(e,"w","frame");return f&&(n.frame=f==="1"||f==="true"),n}function on(e){if(!e)return;let t=chunkDV6GWBUJ_js.f(e,"w","tab");if(t.length===0)return;let n=[];for(let o of t){let r=chunkDV6GWBUJ_js.l(o,"w","pos"),a=chunkDV6GWBUJ_js.j(o,"w","val");if(r!==void 0&&a){let u={position:r,alignment:a},l=chunkDV6GWBUJ_js.j(o,"w","leader");l&&(u.leader=l),n.push(u);}}return n.length>0?n:void 0}function rn(e){if(!e)return;let t={},n=chunkDV6GWBUJ_js.l(e,"w","w");n!==void 0&&(t.width=n);let o=chunkDV6GWBUJ_js.l(e,"w","h");o!==void 0&&(t.height=o);let r=chunkDV6GWBUJ_js.j(e,"w","hAnchor");(r==="text"||r==="margin"||r==="page")&&(t.hAnchor=r);let a=chunkDV6GWBUJ_js.j(e,"w","vAnchor");(a==="text"||a==="margin"||a==="page")&&(t.vAnchor=a);let u=chunkDV6GWBUJ_js.l(e,"w","x");u!==void 0&&(t.x=u);let l=chunkDV6GWBUJ_js.l(e,"w","y");l!==void 0&&(t.y=l);let f=chunkDV6GWBUJ_js.j(e,"w","xAlign");f&&(t.xAlign=f);let c=chunkDV6GWBUJ_js.j(e,"w","yAlign");c&&(t.yAlign=c);let p=chunkDV6GWBUJ_js.j(e,"w","wrap");return p&&(t.wrap=p),Object.keys(t).length>0?t:void 0}function pe(e,t,n){if(!e)return;let o={},r=chunkDV6GWBUJ_js.e(e,"w","jc");if(r){let y=chunkDV6GWBUJ_js.j(r,"w","val");y&&(o.alignment=y);}let a=chunkDV6GWBUJ_js.e(e,"w","bidi");a&&(o.bidi=chunkDV6GWBUJ_js.m(a));let u=chunkDV6GWBUJ_js.e(e,"w","spacing");if(u){let y=chunkDV6GWBUJ_js.l(u,"w","before");y!==void 0&&(o.spaceBefore=y);let x=chunkDV6GWBUJ_js.l(u,"w","after");x!==void 0&&(o.spaceAfter=x);let P=chunkDV6GWBUJ_js.l(u,"w","line");P!==void 0&&(o.lineSpacing=P);let v={};y!==void 0&&(v.before=true),x!==void 0&&(v.after=true),(v.before||v.after)&&(o.spacingExplicit=v);let I=chunkDV6GWBUJ_js.j(u,"w","lineRule");I&&(o.lineSpacingRule=I);let A=chunkDV6GWBUJ_js.j(u,"w","beforeAutospacing");A&&(o.beforeAutospacing=A==="1"||A==="true");let X=chunkDV6GWBUJ_js.j(u,"w","afterAutospacing");X&&(o.afterAutospacing=X==="1"||X==="true");}let l=chunkDV6GWBUJ_js.e(e,"w","ind");if(l){let y=chunkDV6GWBUJ_js.l(l,"w","left");y!==void 0&&(o.indentLeft=y);let x=chunkDV6GWBUJ_js.l(l,"w","right");x!==void 0&&(o.indentRight=x);let P=chunkDV6GWBUJ_js.l(l,"w","firstLine");P!==void 0&&(o.indentFirstLine=P);let v=chunkDV6GWBUJ_js.l(l,"w","hanging");v!==void 0&&(o.indentFirstLine=-v,o.hangingIndent=true);let I=chunkDV6GWBUJ_js.l(l,"w","start");I!==void 0&&o.indentLeft===void 0&&(o.indentLeft=I);let A=chunkDV6GWBUJ_js.l(l,"w","end");A!==void 0&&o.indentRight===void 0&&(o.indentRight=A);}let f=chunkDV6GWBUJ_js.e(e,"w","pBdr");if(f){let y={},x=q(chunkDV6GWBUJ_js.e(f,"w","top"));x&&(y.top=x);let P=q(chunkDV6GWBUJ_js.e(f,"w","bottom"));P&&(y.bottom=P);let v=q(chunkDV6GWBUJ_js.e(f,"w","left"));v&&(y.left=v);let I=q(chunkDV6GWBUJ_js.e(f,"w","right"));I&&(y.right=I);let A=q(chunkDV6GWBUJ_js.e(f,"w","between"));A&&(y.between=A);let X=q(chunkDV6GWBUJ_js.e(f,"w","bar"));X&&(y.bar=X),Object.keys(y).length>0&&(o.borders=y);}let c=chunkDV6GWBUJ_js.e(e,"w","shd");c&&(o.shading=nn(c));let p=chunkDV6GWBUJ_js.e(e,"w","tabs");p&&(o.tabs=on(p));let d=chunkDV6GWBUJ_js.e(e,"w","keepNext");d&&(o.keepNext=chunkDV6GWBUJ_js.m(d));let C=chunkDV6GWBUJ_js.e(e,"w","keepLines");C&&(o.keepLines=chunkDV6GWBUJ_js.m(C));let b=chunkDV6GWBUJ_js.e(e,"w","widowControl");b&&(o.widowControl=chunkDV6GWBUJ_js.m(b));let w=chunkDV6GWBUJ_js.e(e,"w","pageBreakBefore");w&&(o.pageBreakBefore=chunkDV6GWBUJ_js.m(w));let h=chunkDV6GWBUJ_js.e(e,"w","contextualSpacing");h&&(o.contextualSpacing=chunkDV6GWBUJ_js.m(h));let T=chunkDV6GWBUJ_js.e(e,"w","numPr");if(T){let y=chunkDV6GWBUJ_js.e(T,"w","numId"),x=chunkDV6GWBUJ_js.e(T,"w","ilvl");if(y||x){if(o.numPr={},y){let P=chunkDV6GWBUJ_js.l(y,"w","val");P!==void 0&&(o.numPr.numId=P);}if(x){let P=chunkDV6GWBUJ_js.l(x,"w","val");P!==void 0&&(o.numPr.ilvl=P);}}}let B=chunkDV6GWBUJ_js.e(e,"w","outlineLvl");if(B){let y=chunkDV6GWBUJ_js.l(B,"w","val");y!==void 0&&(o.outlineLevel=y);}let M=chunkDV6GWBUJ_js.e(e,"w","pStyle");if(M){let y=chunkDV6GWBUJ_js.j(M,"w","val");y&&(o.styleId=y);}let S=chunkDV6GWBUJ_js.e(e,"w","framePr");S&&(o.frame=rn(S));let m=chunkDV6GWBUJ_js.e(e,"w","suppressLineNumbers");m&&(o.suppressLineNumbers=chunkDV6GWBUJ_js.m(m));let F=chunkDV6GWBUJ_js.e(e,"w","suppressAutoHyphens");F&&(o.suppressAutoHyphens=chunkDV6GWBUJ_js.m(F));let E=chunkDV6GWBUJ_js.e(e,"w","rPr");return E&&(o.runProperties=ce(E,t)),Object.keys(o).length>0?o:void 0}function an(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function ln(e){let t=chunkDV6GWBUJ_js.l(e,"w","id")??0,n=chunkDV6GWBUJ_js.j(e,"w","name")??"",o={type:"bookmarkStart",id:t,name:n},r=chunkDV6GWBUJ_js.l(e,"w","colFirst");r!==void 0&&(o.colFirst=r);let a=chunkDV6GWBUJ_js.l(e,"w","colLast");return a!==void 0&&(o.colLast=a),o}function sn(e){return {type:"bookmarkEnd",id:chunkDV6GWBUJ_js.l(e,"w","id")??0}}function Ke(e,t,n=null,o=null,r=null){let a={type:"hyperlink",children:[]},u=chunkDV6GWBUJ_js.j(e,"r","id");if(u&&(a.rId=u,t)){let b=t.get(u);b&&(chunkHQPWFUP5_js.c(b),a.href=b.target);}let l=chunkDV6GWBUJ_js.j(e,"w","anchor");l&&(a.anchor=l,a.href||(a.href=`#${l}`));let f=chunkDV6GWBUJ_js.j(e,"w","tooltip");f&&(a.tooltip=f);let c=chunkDV6GWBUJ_js.j(e,"w","tgtFrame");c&&(a.target=c);let p=chunkDV6GWBUJ_js.j(e,"w","history");(p==="1"||p==="true")&&(a.history=true);let d=chunkDV6GWBUJ_js.j(e,"w","docLocation");d&&(a.docLocation=d);let C=chunkDV6GWBUJ_js.i(e);for(let b of C)switch(an(b.name)){case "r":a.children.push(K(b,n,o,t,r));break;case "bookmarkStart":a.children.push(ln(b));break;case "bookmarkEnd":a.children.push(sn(b));break}return a}function bo(e){let t="";for(let n of e.children)if(n.type==="run")for(let o of n.content)o.type==="text"?t+=o.text:o.type==="tab"&&(t+=" ");return t}function To(e){return e.href?/^https?:\/\/|^mailto:|^tel:|^ftp:/i.test(e.href):!!e.rId&&!e.anchor}function Fo(e){return !!e.anchor}function Co(e){return e.href}function xo(e){return e.children.some(t=>t.type==="run")}function So(e){return e.children.filter(t=>t.type==="run")}function ko(e,t){if(e.rId){let n=t.get(e.rId);if(n)return chunkHQPWFUP5_js.c(n),e.href=n.target,e.href}return e.anchor&&!e.href&&(e.href=`#${e.anchor}`),e.href}function Ze(e){let t=chunkDV6GWBUJ_js.l(e,"w","id")??0,n=chunkDV6GWBUJ_js.j(e,"w","name")??"",o={type:"bookmarkStart",id:t,name:n},r=chunkDV6GWBUJ_js.l(e,"w","colFirst");r!==void 0&&(o.colFirst=r);let a=chunkDV6GWBUJ_js.l(e,"w","colLast");return a!==void 0&&(o.colLast=a),o}function Qe(e){return {type:"bookmarkEnd",id:chunkDV6GWBUJ_js.l(e,"w","id")??0}}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 r of n.elements)r.type==="text"&&typeof r.text=="string"&&(t+=r.text);else t+=et(n);return t}function Q(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"]),o=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"]),r=false;function a(l){for(let f of chunkDV6GWBUJ_js.i(l)){let c=Q(f.name);if(!n.has(c)){if(c==="lastRenderedPageBreak"){r=true;continue}if(c==="r"){for(let p of chunkDV6GWBUJ_js.i(f)){let d=Q(p.name);if(d!=="rPr"){if(d==="lastRenderedPageBreak"){r=true;continue}if(d==="br"&&chunkDV6GWBUJ_js.j(p,"w","type")==="page")return "forced";if(o.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"?r: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=Q(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=chunkDV6GWBUJ_js.j(e,"w","id"),n=t?parseInt(t,10):0,o=chunkDV6GWBUJ_js.j(e,"w","author"),r=chunkDV6GWBUJ_js.j(e,"w","date"),a=o?.trim()??"",u=r?.trim()??"";return {id:Number.isInteger(n)&&n>=0?n:0,author:a.length>0?a:"Unknown",date:u.length>0?u:void 0}}function un(e){return Z(e)}function ot(e,t,n,o){if(!e)return;let r=chunkDV6GWBUJ_js.f(e,"w","pPrChange").map(a=>{let u=chunkDV6GWBUJ_js.e(a,"w","pPr");return {type:"paragraphPropertyChange",info:un(a),previousFormatting:pe(u,t),currentFormatting:o}}).filter(a=>a.previousFormatting||a.currentFormatting);return r.length>0?r:void 0}function fn(e,t,n,o,r){return Ke(e,t,n,o,r)}function cn(e){return Ze(e)}function pn(e){return Qe(e)}function rt(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 dn(e,t,n,o,r){let a=chunkDV6GWBUJ_js.j(e,"w","instr")??"",u=rt(a),l={type:"simpleField",instruction:a,fieldType:u,content:[]},f=chunkDV6GWBUJ_js.j(e,"w","fldLock");(f==="1"||f==="true")&&(l.fldLock=true);let c=chunkDV6GWBUJ_js.j(e,"w","dirty");(c==="1"||c==="true")&&(l.dirty=true);let p=chunkDV6GWBUJ_js.i(e);for(let d of p)Q(d.name)==="r"&&l.content.push(K(d,t,n,o,r));return l}function j(e,t,n,o,r,a,u="default"){let l=[],f=chunkDV6GWBUJ_js.i(e),c=false,p="",d=[],C=[],b=false,w=false,h=false;for(let T of f){let B=Q(T.name);switch(B){case "r":{let M=u==="deletion"?nt(T):T,S=K(M,t,n,r,a),m=false,F=false,E=false,y="";for(let x of S.content)x.type==="fieldChar"?x.charType==="begin"?(m=true,x.fldLock&&(w=true),x.dirty&&(h=true)):x.charType==="separate"?F=true:x.charType==="end"&&(E=true):x.type==="instrText"&&(y+=x.text);if(m&&(c=true,b=false,p="",d=[],C=[],w=false,h=false),c){if(y&&(p+=y),F&&(b=true),b&&!E?F||C.push(S):!b&&!m&&d.push(S),E){let x={type:"complexField",instruction:p.trim(),fieldType:rt(p),fieldCode:d,fieldResult:C};w&&(x.fldLock=true),h&&(x.dirty=true),l.push(x),c=false;}}else l.push(S);break}case "hyperlink":l.push(fn(T,r,t,n,a));break;case "bookmarkStart":l.push(cn(T));break;case "bookmarkEnd":l.push(pn(T));break;case "fldSimple":l.push(dn(T,t,n,r,a));break;case "pPr":break;case "proofErr":case "permStart":case "permEnd":case "customXml":break;case "sdt":{let M=(T.elements??[]).find(m=>m.type==="element"&&(m.name==="w:sdtPr"||m.name?.endsWith(":sdtPr"))),S=(T.elements??[]).find(m=>m.type==="element"&&(m.name==="w:sdtContent"||m.name?.endsWith(":sdtContent")));if(S){let m=j(S,t,n,null,r,a,u),E={type:"inlineSdt",properties:re(M??null),content:m.filter(y=>y.type==="run"||y.type==="hyperlink"||y.type==="simpleField"||y.type==="complexField"||y.type==="inlineSdt"||y.type==="mathEquation")};l.push(E);}break}case "ins":{let M=Z(T),S=j(T,t,n,null,r,a),m={type:"insertion",info:M,content:S.filter(F=>F.type==="run"||F.type==="hyperlink")};l.push(m);break}case "del":{let M=Z(T),S=j(T,t,n,null,r,a,"deletion"),m={type:"deletion",info:M,content:S.filter(F=>F.type==="run"||F.type==="hyperlink")};l.push(m);break}case "moveFrom":{let M=Z(T),S=j(T,t,n,null,r,a,"deletion"),m={type:"moveFrom",info:M,content:S.filter(F=>F.type==="run"||F.type==="hyperlink")};l.push(m);break}case "moveTo":{let M=Z(T),S=j(T,t,n,null,r,a),m={type:"moveTo",info:M,content:S.filter(F=>F.type==="run"||F.type==="hyperlink")};l.push(m);break}case "smartTag":break;case "moveFromRangeStart":{let M=parseInt(chunkDV6GWBUJ_js.j(T,"w","id")??"0",10),S=chunkDV6GWBUJ_js.j(T,"w","name")??"";l.push({type:"moveFromRangeStart",id:M,name:S});break}case "moveFromRangeEnd":{let M=parseInt(chunkDV6GWBUJ_js.j(T,"w","id")??"0",10);l.push({type:"moveFromRangeEnd",id:M});break}case "moveToRangeStart":{let M=parseInt(chunkDV6GWBUJ_js.j(T,"w","id")??"0",10),S=chunkDV6GWBUJ_js.j(T,"w","name")??"";l.push({type:"moveToRangeStart",id:M,name:S});break}case "moveToRangeEnd":{let M=parseInt(chunkDV6GWBUJ_js.j(T,"w","id")??"0",10);l.push({type:"moveToRangeEnd",id:M});break}case "commentRangeStart":{let M=parseInt(chunkDV6GWBUJ_js.j(T,"w","id")??"0",10);l.push({type:"commentRangeStart",id:M});break}case "commentRangeEnd":{let M=parseInt(chunkDV6GWBUJ_js.j(T,"w","id")??"0",10);l.push({type:"commentRangeEnd",id:M});break}case "oMath":case "oMathPara":{let M=B==="oMathPara",S=chunkDV6GWBUJ_js.b(T),m=et(T),F={type:"mathEquation",display:M?"block":"inline",ommlXml:S,plainText:m||void 0};l.push(F);break}}}return l}function mn(e){let t="";for(let n of e.content)if(n.type==="run")for(let o of n.content)o.type==="text"?t+=o.text:o.type==="tab"?t+=" ":o.type==="break"&&(o.breakType==="page"?t+="\f":t+=`
|
|
4
|
+
`);else if(n.type==="hyperlink"){for(let o of n.children)if(o.type==="run")for(let r of o.content)r.type==="text"&&(t+=r.text);}else if(n.type==="simpleField"){for(let o of n.content)if(o.type==="run")for(let r of o.content)r.type==="text"&&(t+=r.text);}else if(n.type==="complexField")for(let o of n.fieldResult)for(let r of o.content)r.type==="text"&&(t+=r.text);return t}function it(e){let t=chunkDV6GWBUJ_js.j(e,"w","id");if(t==null)return null;let n=parseInt(t,10);if(Number.isNaN(n))return null;let o=chunkDV6GWBUJ_js.j(e,"w","author")??"",r=chunkDV6GWBUJ_js.j(e,"w","date")??void 0,a={id:n,author:o};return r&&(a.date=r),a}function W(e,t,n,o,r=null,a=null,u){let l={type:"paragraph",content:[]},f=chunkDV6GWBUJ_js.j(e,"w14","paraId")??chunkDV6GWBUJ_js.j(e,"w","paraId");f&&(l.paraId=f);let c=chunkDV6GWBUJ_js.j(e,"w14","textId")??chunkDV6GWBUJ_js.j(e,"w","textId");c&&(l.textId=c),!u?.inHeaderFooter&&tt(e)&&(l.renderedPageBreakBefore=true);let p=chunkDV6GWBUJ_js.e(e,"w","pPr");if(p){l.formatting=pe(p,n),l.propertyChanges=ot(p,n,t,l.formatting);let b=chunkDV6GWBUJ_js.e(p,"w","rPr");if(b){let h=chunkDV6GWBUJ_js.e(b,"w","ins");if(h){let B=it(h);B&&(l.pPrIns=B);}let T=chunkDV6GWBUJ_js.e(b,"w","del");if(T){let B=it(T);B&&(l.pPrDel=B);}}let w=chunkDV6GWBUJ_js.e(p,"w","sectPr");w&&(l.sectionProperties=qe(w));}let d=j(e,t,n,o,r,a);l.content=be(d);let C=l.formatting?.numPr;if(!C&&l.formatting?.styleId&&t){let b=t.get(l.formatting.styleId);b?.pPr?.numPr&&(C=b.pPr.numPr,l.formatting||(l.formatting={}),l.formatting.numPr=C);}if(C&&o){let{numId:b,ilvl:w=0}=C;if(b!==void 0&&b!==0){let h=o.getLevel(b,w);if(h){let T=[];for(let S=0;S<=w;S+=1){let m=o.getLevel(b,S);T.push(m?.numFmt??"decimal");}let B=o.getInstance(b),M=B?.levelOverrides?.find(S=>S.ilvl===w);if(l.listRendering={level:w,numId:b,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:T,abstractNumId:B?.abstractNumId,startOverride:M?.startOverride},h.pPr){l.formatting||(l.formatting={});let S=p?chunkDV6GWBUJ_js.e(p,"w","ind"):null,m=S!=null&&(chunkDV6GWBUJ_js.j(S,"w","left")!==null||chunkDV6GWBUJ_js.j(S,"w","start")!==null),F=y=>{let x=S?chunkDV6GWBUJ_js.j(S,"w",y):null;if(x===null)return false;let P=parseInt(x,10);return Number.isNaN(P)||P!==0},E=S!=null&&(F("firstLine")||F("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 at(e){if(!e)return;let t={},n=O(chunkDV6GWBUJ_js.e(e,"w","tblW"));n&&(t.width=n);let o=chunkDV6GWBUJ_js.e(e,"w","jc");if(o){let h=chunkDV6GWBUJ_js.j(o,"w","val");(h==="left"||h==="center"||h==="right"||h==="start")&&(t.justification=h==="start"?"left":h);}let r=O(chunkDV6GWBUJ_js.e(e,"w","tblCellSpacing"));r&&(t.cellSpacing=r);let a=O(chunkDV6GWBUJ_js.e(e,"w","tblInd"));a&&(t.indent=a);let u=te(chunkDV6GWBUJ_js.e(e,"w","tblBorders"));u&&(t.borders=u);let l=ne(chunkDV6GWBUJ_js.e(e,"w","tblCellMar"));l&&(t.cellMargins=l);let f=chunkDV6GWBUJ_js.e(e,"w","tblLayout");if(f){let h=chunkDV6GWBUJ_js.j(f,"w","type");(h==="fixed"||h==="autofit")&&(t.layout=h);}let c=chunkDV6GWBUJ_js.e(e,"w","tblStyle");if(c){let h=chunkDV6GWBUJ_js.j(c,"w","val");h&&(t.styleId=h);}let p=we(chunkDV6GWBUJ_js.e(e,"w","tblLook"));p&&(t.look=p);let d=oe(chunkDV6GWBUJ_js.e(e,"w","shd"));d&&(t.shading=d);let C=chunkDV6GWBUJ_js.e(e,"w","tblOverlap");if(C){let h=chunkDV6GWBUJ_js.j(C,"w","val");(h==="never"||h==="overlap")&&(t.overlap=h);}let b=ye(chunkDV6GWBUJ_js.e(e,"w","tblpPr"));if(b&&(t.floating=b),chunkDV6GWBUJ_js.m(chunkDV6GWBUJ_js.e(e,"w","bidiVisual"))&&(t.bidi=true),Object.keys(t).length!==0)return t}function gn(e,t){if(!e)return;let n=chunkDV6GWBUJ_js.f(e,"w","tblPrChange").map(o=>{let r=chunkDV6GWBUJ_js.e(o,"w","tblPr");return {type:"tablePropertyChange",info:ee(o),previousFormatting:at(r),currentFormatting:t}}).filter(o=>o.previousFormatting||o.currentFormatting);return n.length>0?n:void 0}function hn(e,t){if(!e)return;let n=chunkDV6GWBUJ_js.f(e,"w","trPrChange").map(o=>{let r=chunkDV6GWBUJ_js.e(o,"w","trPr");return {type:"tableRowPropertyChange",info:ee(o),previousFormatting:lt(r),currentFormatting:t}}).filter(o=>o.previousFormatting||o.currentFormatting);return n.length>0?n:void 0}function wn(e,t){if(!e)return;let n=chunkDV6GWBUJ_js.f(e,"w","tcPrChange").map(o=>{let r=chunkDV6GWBUJ_js.e(o,"w","tcPr");return {type:"tableCellPropertyChange",info:ee(o),previousFormatting:ut(r),currentFormatting:t}}).filter(o=>o.previousFormatting||o.currentFormatting);return n.length>0?n:void 0}function yn(e){if(!e)return;let t=chunkDV6GWBUJ_js.e(e,"w","ins");if(t)return {type:"tableRowInsertion",info:V(t)};let n=chunkDV6GWBUJ_js.e(e,"w","del");if(n)return {type:"tableRowDeletion",info:V(n)}}function bn(e){if(!e)return;let t=chunkDV6GWBUJ_js.e(e,"w","cellIns");if(t)return {type:"tableCellInsertion",info:V(t)};let n=chunkDV6GWBUJ_js.e(e,"w","cellDel");if(n)return {type:"tableCellDeletion",info:V(n)};let o=chunkDV6GWBUJ_js.e(e,"w","cellMerge");if(o){let r=chunkDV6GWBUJ_js.j(o,"w","vMerge"),a=chunkDV6GWBUJ_js.j(o,"w","vMergeOrig"),u=l=>l==="rest"||l==="cont";return {type:"tableCellMerge",info:V(o),...u(r)?{vMerge:r}:{},...u(a)?{vMergeOrig:a}:{}}}}function lt(e){if(!e)return;let t={},n=chunkDV6GWBUJ_js.e(e,"w","trHeight");if(n){let f=chunkDV6GWBUJ_js.l(n,"w","val");f!==void 0&&f>0&&(t.height={value:f,type:"dxa"});let c=chunkDV6GWBUJ_js.j(n,"w","hRule");(c==="auto"||c==="atLeast"||c==="exact")&&(t.heightRule=c);}chunkDV6GWBUJ_js.m(chunkDV6GWBUJ_js.e(e,"w","tblHeader"))&&(t.header=true),chunkDV6GWBUJ_js.m(chunkDV6GWBUJ_js.e(e,"w","cantSplit"))&&(t.cantSplit=true);let a=chunkDV6GWBUJ_js.e(e,"w","jc");if(a){let f=chunkDV6GWBUJ_js.j(a,"w","val");(f==="left"||f==="center"||f==="right")&&(t.justification=f);}chunkDV6GWBUJ_js.m(chunkDV6GWBUJ_js.e(e,"w","hidden"))&&(t.hidden=true);let l=st(chunkDV6GWBUJ_js.e(e,"w","cnfStyle"));if(l&&(t.conditionalFormat=l),Object.keys(t).length!==0)return t}function st(e){if(!e)return;let t={},n=chunkDV6GWBUJ_js.j(e,"w","firstRow");(n==="1"||n==="true")&&(t.firstRow=true);let o=chunkDV6GWBUJ_js.j(e,"w","lastRow");(o==="1"||o==="true")&&(t.lastRow=true);let r=chunkDV6GWBUJ_js.j(e,"w","firstColumn");(r==="1"||r==="true")&&(t.firstColumn=true);let a=chunkDV6GWBUJ_js.j(e,"w","lastColumn");(a==="1"||a==="true")&&(t.lastColumn=true);let u=chunkDV6GWBUJ_js.j(e,"w","oddHBand");(u==="1"||u==="true")&&(t.oddHBand=true);let l=chunkDV6GWBUJ_js.j(e,"w","evenHBand");(l==="1"||l==="true")&&(t.evenHBand=true);let f=chunkDV6GWBUJ_js.j(e,"w","oddVBand");(f==="1"||f==="true")&&(t.oddVBand=true);let c=chunkDV6GWBUJ_js.j(e,"w","evenVBand");(c==="1"||c==="true")&&(t.evenVBand=true);let p=chunkDV6GWBUJ_js.j(e,"w","firstRowFirstColumn");(p==="1"||p==="true")&&(t.nwCell=true);let d=chunkDV6GWBUJ_js.j(e,"w","firstRowLastColumn");(d==="1"||d==="true")&&(t.neCell=true);let C=chunkDV6GWBUJ_js.j(e,"w","lastRowFirstColumn");(C==="1"||C==="true")&&(t.swCell=true);let b=chunkDV6GWBUJ_js.j(e,"w","lastRowLastColumn");(b==="1"||b==="true")&&(t.seCell=true);let w=chunkDV6GWBUJ_js.j(e,"w","val");if(w&&w.length===12&&(w[0]==="1"&&(t.firstRow=true),w[1]==="1"&&(t.lastRow=true),w[2]==="1"&&(t.firstColumn=true),w[3]==="1"&&(t.lastColumn=true),w[4]==="1"&&(t.oddVBand=true),w[5]==="1"&&(t.evenVBand=true),w[6]==="1"&&(t.oddHBand=true),w[7]==="1"&&(t.evenHBand=true),w[8]==="1"&&(t.nwCell=true),w[9]==="1"&&(t.neCell=true),w[10]==="1"&&(t.swCell=true),w[11]==="1"&&(t.seCell=true)),Object.keys(t).length!==0)return t}function ut(e){if(!e)return;let t={},n=O(chunkDV6GWBUJ_js.e(e,"w","tcW"));n&&(t.width=n);let o=te(chunkDV6GWBUJ_js.e(e,"w","tcBorders"));o&&(t.borders=o);let r=ne(chunkDV6GWBUJ_js.e(e,"w","tcMar"));r&&(t.margins=r);let a=oe(chunkDV6GWBUJ_js.e(e,"w","shd"));a&&(t.shading=a);let u=chunkDV6GWBUJ_js.e(e,"w","vAlign");if(u){let w=chunkDV6GWBUJ_js.j(u,"w","val");(w==="top"||w==="center"||w==="bottom")&&(t.verticalAlign=w);}let l=chunkDV6GWBUJ_js.e(e,"w","textDirection");if(l){let w=chunkDV6GWBUJ_js.j(l,"w","val");w&&(t.textDirection=w);}let f=chunkDV6GWBUJ_js.e(e,"w","gridSpan");if(f){let w=chunkDV6GWBUJ_js.l(f,"w","val");w!==void 0&&w>1&&(t.gridSpan=w);}let c=chunkDV6GWBUJ_js.e(e,"w","vMerge");c&&(chunkDV6GWBUJ_js.j(c,"w","val")==="restart"?t.vMerge="restart":t.vMerge="continue"),chunkDV6GWBUJ_js.m(chunkDV6GWBUJ_js.e(e,"w","tcFitText"))&&(t.fitText=true),chunkDV6GWBUJ_js.m(chunkDV6GWBUJ_js.e(e,"w","noWrap"))&&(t.noWrap=true),chunkDV6GWBUJ_js.m(chunkDV6GWBUJ_js.e(e,"w","hideMark"))&&(t.hideMark=true);let b=st(chunkDV6GWBUJ_js.e(e,"w","cnfStyle"));if(b&&(t.conditionalFormat=b),Object.keys(t).length!==0)return t}function Tn(e,t,n,o,r,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=W(c,t,n,o,r,a,u);l.push(d);}else if(p==="tbl"){let d=$(c,t,n,o,r,a,u);l.push(d);}}return l.length===0&&l.push({type:"paragraph",content:[]}),l}function Fn(e,t,n,o,r,a,u){let l={type:"tableCell",content:[]},f=chunkDV6GWBUJ_js.e(e,"w","tcPr"),c=ut(f);return c&&(l.formatting=c),l.propertyChanges=wn(f,c),l.structuralChange=bn(f),l.content=Tn(e,t,n,o,r,a,u),l}function Cn(e,t,n,o,r,a,u){let l={type:"tableRow",cells:[]},f=chunkDV6GWBUJ_js.e(e,"w","trPr"),c=lt(f);c&&(l.formatting=c),l.propertyChanges=hn(f,c),l.structuralChange=yn(f);let p=chunkDV6GWBUJ_js.f(e,"w","tc");for(let d of p){let C=Fn(d,t,n,o,r,a,u);l.cells.push(C);}return l}function xn(e){if(!e)return;let t=[],n=chunkDV6GWBUJ_js.f(e,"w","gridCol");for(let o of n){let r=chunkDV6GWBUJ_js.l(o,"w","w")??0;t.push(r);}if(!(t.length>0&&t.every(o=>o<=0)))return t.length>0?t:void 0}function Sn(e){return e.cells.reduce((t,n)=>t+(n.formatting?.gridSpan??1),0)}function kn(e){let t=Math.max(e.columnWidths?.length??0,...e.rows.map(n=>Sn(n)));if(!(t<=1))for(let n of e.rows){if(n.cells.length!==1)continue;let o=n.cells[0];(o.formatting?.gridSpan??1)>=t||o.formatting?.vMerge||o.formatting?.gridSpan==null&&(o.formatting={...o.formatting??{},gridSpan:t});}}function $(e,t,n,o,r,a,u){let l={type:"table",rows:[]},f=chunkDV6GWBUJ_js.e(e,"w","tblPr"),c=at(f);c&&(l.formatting=c),l.propertyChanges=gn(f,c);let p=xn(chunkDV6GWBUJ_js.e(e,"w","tblGrid"));p&&(l.columnWidths=p);let d=chunkDV6GWBUJ_js.f(e,"w","tr");for(let C of d){let b=Cn(C,t,n,o,r,a,u);l.rows.push(b);}return kn(l),l}exports.A=Jn;exports.B=qe;exports.C=ro;exports.D=io;exports.E=K;exports.F=Ke;exports.G=bo;exports.H=To;exports.I=Fo;exports.J=Co;exports.K=xo;exports.L=So;exports.M=ko;exports.N=mn;exports.O=W;exports.a=Rn;exports.b=Y;exports.c=Ae;exports.d=D;exports.e=te;exports.f=ne;exports.g=oe;exports.h=we;exports.i=ye;exports.j=gt;exports.k=ht;exports.l=wt;exports.m=yt;exports.n=bt;exports.o=at;exports.p=xt;exports.q=ie;exports.r=jn;exports.s=zn;exports.t=Yn;exports.u=$n;exports.v=ze;exports.w=Ue;exports.x=Kn;exports.y=Zn;exports.z=Qn;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkXCKTBNKN_js=require('./chunk-XCKTBNKN.js');var O=30,F=200,y=24,R=10,B=10,C=24;function N(_){let{mouseX:n,mouseY:l,pagesContainer:d,target:L,hfEditMode:m,edgeProximity:r=O}=_,T=`.${chunkXCKTBNKN_js.v.table}`,H=`.${chunkXCKTBNKN_js.v.row}`,p=`.${chunkXCKTBNKN_js.v.cell}`,h=`.${chunkXCKTBNKN_js.B.header}`,M=`.${chunkXCKTBNKN_js.B.footer}`,E=t=>{let o=!!t.closest(h),e=!!t.closest(M);return !o&&!e?!m:o?m==="header":m==="footer"},c=L.closest(T);if(c&&!E(c)&&(c=null),!c){let t=d.querySelectorAll(T);for(let o of Array.from(t)){if(!E(o))continue;let e=o.getBoundingClientRect(),s=n>=e.left-r&&n<e.left,A=l>=e.top-r&&l<e.top,P=n>=e.left-r&&n<=e.right,I=l>=e.top-r&&l<=e.bottom;if(s&&I||A&&P){c=o;break}}}if(!c)return null;let i=c.getBoundingClientRect(),b=n<i.left+r&&n>=i.left-r,g=l<i.top+r&&l>=i.top-r;if(!b&&!g)return null;let u=c.querySelectorAll(`:scope > ${H}`);if(u.length===0)return null;let S=t=>t&&Number(t.dataset.pmStart)||0;if(b)for(let t=0;t<u.length;t++){let o=u[t].getBoundingClientRect();if(l>=o.top&&l<=o.bottom){let e=u[t].querySelector(p),s=S(e);if(!s)break;return {type:"row",clientX:i.left-y,clientY:o.top+o.height/2-R,cellPmPos:s}}}if(g){let t=u[0].querySelectorAll(`:scope > ${p}`);for(let o=0;o<t.length;o++){let e=t[o].getBoundingClientRect();if(n>=e.left&&n<=e.right){let s=S(t[o]);if(!s)break;return {type:"column",clientX:e.left+e.width/2-B,clientY:i.top-C,cellPmPos:s}}}}return null}exports.a=O;exports.b=F;exports.c=N;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkLTHT4A4S_js=require('./chunk-LTHT4A4S.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 $e(e){return e==="left"?"right":e==="right"?"left":"bothSides"}function v(e,n,t){if(!(!e||e<=0)){if(n==="pct")return t*e/5e3;if(!n||n==="dxa"||n==="auto")return chunk4Q2IP5FW_js.c(e)}}function H(e){return Math.max(1,...e.rows.map(n=>n.cells.reduce((t,o)=>t+Math.max(1,o.colSpan??1),0)))}function _(e,n,t){if(n<=0)return [];let o=t>0?t/n:0;if(e.length===0)return Array(n).fill(o);let r=e.slice(0,n),i=n-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(n).fill(o);if(l===0)return r;let f=Math.max(0,t-h),d=f>0?f/l:h/Math.max(1,n-l);return r.map(g=>g>0?g:d)}var L=7,D=0;function le(e,n){if(e.kind!=="paragraph"||n.kind!=="paragraph")return "totalHeight"in n?n.totalHeight:"height"in n?n.height:0;let t=e.runs.filter(l=>l.kind!=="text"||l.text.length>0);if(!(n.lines.length===1&&t.length>0&&t.every(l=>l.kind==="image")))return n.totalHeight;let r=t.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 n=e?.borders?.top?.width??0,t=e?.borders?.bottom?.width??0;return n+t}function X(e,n,t){let o=e.columnWidths??[],r=v(e.width,e.widthType,n),i=H(e),h=r??n;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:v(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=>t(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??D,ce=F?.padding?.bottom??D;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||n;return {kind:"table",rows:f,columnWidths:o,totalWidth:g,totalHeight:d}}var pe=4;function ge(e,n,t){let o=Array.isArray(n)?n[0]??0:n,r=he(e,o,t),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(n)?n[u]??o:n,b=t(s,m,x,p);return "totalHeight"in b&&(s.kind==="table"&&s.floating||(p+=b.totalHeight)),b})}function he(e,n,t){let o=[];for(let r=0;r<e.length;r++){let i=e[r];switch(i.kind){case "paragraph":fe(i,r,n,o);break;case "table":de(i,r,n,t,o);break;case "textBox":me(i,r,n,o);break}}return o}function N(e,n,t,o,r,i){let h=0,l=0,f=e?.horizontal;if(f?.align==="left")h=t+r;else if(f?.align==="right")l=t+o;else if(f?.posOffset!==void 0){let d=chunk4Q2IP5FW_js.e(f.posOffset);d<i/2?h=d+t+r:l=i-d+o;}else n==="left"?h=t+r:n==="right"&&(l=t+o);return chunkLTHT4A4S_js.u(h,l,i)}function U(e){let n=e?.vertical?.relativeTo;return n==="margin"||n==="page"}function fe(e,n,t,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,t);(a>0||s>0)&&o.push({leftMargin:a,rightMargin:s,topY:g-h,bottomY:p+l,anchorBlockIndex:n,isMarginRelative:U(i.position)});}}function de(e,n,t,o,r){let i=e.floating;if(!i)return;let h=X(e,t,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=t-l:i.tblpXSpec==="center"&&(a=(t-l)/2):e.justification==="center"?a=(t-l)/2:e.justification==="right"&&(a=t-l);let s=0,u=0;a<t/2?s=a+l+g:u=t-a+d,{leftMargin:s,rightMargin:u}=chunkLTHT4A4S_js.u(s,u,t);let x=i.tblpY??0,m=x+f;r.push({leftMargin:s,rightMargin:u,topY:x-c,bottomY:m+p,anchorBlockIndex:n});}function me(e,n,t,o){if(!chunkLTHT4A4S_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,t);p<=0&&a<=0||o.push({leftMargin:p,rightMargin:a,topY:g-h,bottomY:c+l,anchorBlockIndex:n,isMarginRelative:U(e.position)});}function xe(e,n){let t=[];for(let o of e){let r=t.find(i=>i.some(h=>Math.abs(h.anchorBlockIndex-o.anchorBlockIndex)<=n&&o.topY<h.bottomY&&o.bottomY>h.topY));r?r.push(o):t.push([o]);}return t}function O(e,n){for(let t of e){let o=Math.min(...t.map(r=>r.anchorBlockIndex));for(let r of t)n.push({...r,anchorBlockIndex:o});}}var K=2e4,y=new Map;function j(e,n,t){return `${e}|${n}|${t||0}`}function G(){for(;y.size>K;){let e=y.keys().next().value;if(e===void 0)break;y.delete(e);}}function be(e,n,t=0){let o=j(e,n,t),r=y.get(o);if(r!==void 0)return y.delete(o),y.set(o,r),r.width}function Te(e,n,t,o){let r=j(e,n,t);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,n,t=false,o=false){return `${e}|${n}|${t}|${o}`}function ee(){for(;M.size>J;){let e=M.keys().next().value;if(e===void 0)break;M.delete(e);}}function Me(e,n,t=false,o=false){let r=Q(e,n,t,o),i=M.get(r);if(i!==void 0)return M.delete(r),M.set(r,i),i}function we(e,n,t,o,r){let i=Q(e,n,t,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 A(e){let n=[];for(let o of e.runs)o.kind==="text"?n.push(`t:${o.text}|${o.fontFamily}|${o.fontSize}|${o.bold}|${o.italic}`):o.kind==="tab"?n.push(`tab:${o.width}`):o.kind==="image"?n.push(`img:${o.width}x${o.height}`):o.kind==="lineBreak"&&n.push("br");let t=e.attrs;if(t){t.alignment&&n.push(`align:${t.alignment}`),t.indent&&n.push(`indent:${t.indent.left}|${t.indent.right}|${t.indent.firstLine}|${t.indent.hanging}`),t.spacing&&n.push(`spacing:${t.spacing.before}|${t.spacing.after}|${t.spacing.line}|${t.spacing.lineRule}`),t.defaultFontSize!=null&&n.push(`dfs:${t.defaultFontSize}`),t.defaultFontFamily!=null&&n.push(`dff:${t.defaultFontFamily}`);let o=t.borders;if(o){let r=i=>i?`${i.width??""},${i.style??""},${i.color??""}`:"";n.push(`bdr:${r(o.top)}|${r(o.bottom)}|${r(o.left)}|${r(o.right)}`);}t.suppressEmptyParagraphHeight&&n.push("sup"),t.pPrIns&&n.push(`pins:${t.pPrIns.revisionId}`),t.pPrDel&&n.push(`pdel:${t.pPrDel.revisionId}`);}return n.join("||")}function re(){for(;w.size>oe;){let e=w.keys().next().value;if(e===void 0)break;w.delete(e);}}function ke(e,n){let t=A(e),o=w.get(t);if(o!==void 0&&o.maxWidth===n)return w.delete(t),w.set(t,o),o.measure}function Se(e,n,t){let o=A(e);w.set(o,{measure:t,maxWidth:n}),re();}function ie(){w.clear();}function Ie(e){!Number.isFinite(e)||e<=0||(oe=e,re());}function ae(){return w.size}function ve(){V(),te(),ie();}function Ae(){return q()+ne()+ae()}exports.A=ae;exports.B=ve;exports.C=Ae;exports.a=v;exports.b=H;exports.c=_;exports.d=We;exports.e=Re;exports.f=Ze;exports.g=Y;exports.h=$e;exports.i=le;exports.j=X;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=A;exports.w=ke;exports.x=Se;exports.y=ie;exports.z=Ie;
|