@eigenpal/docx-editor-core 1.6.1 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/index.js +1 -1
- package/dist/agent/index.mjs +1 -1
- package/dist/chunk-25775MLP.mjs +2 -0
- package/dist/{chunk-DKUHG27E.js → chunk-2AEZLDY4.js} +1 -1
- package/dist/chunk-2EFI3BAN.js +59 -0
- package/dist/{chunk-XCXQWCV2.js → chunk-2EKWMNCY.js} +1 -1
- package/dist/chunk-3QQLHMB6.mjs +4 -0
- package/dist/{chunk-DEQFU56O.js → chunk-455DUC37.js} +1 -1
- package/dist/chunk-4EATD3FP.js +2 -0
- package/dist/chunk-4VLKSJRK.mjs +1 -0
- package/dist/{chunk-WTIN6QHX.js → chunk-5CLYWBNI.js} +1 -1
- package/dist/{chunk-NKIDBERV.js → chunk-5TLT5TUD.js} +1 -1
- package/dist/{chunk-DUXHJ6QP.js → chunk-5ZAMEYCA.js} +1 -1
- package/dist/{chunk-O4RCQNUW.mjs → chunk-6BAIXYUY.mjs} +1 -1
- package/dist/{chunk-7EU6E64E.mjs → chunk-6UCWVS7Y.mjs} +1 -1
- package/dist/chunk-7E2TOWBX.mjs +1 -0
- package/dist/{chunk-YSBX4LFA.mjs → chunk-7LPUPZAO.mjs} +2 -2
- package/dist/{chunk-OWGY46IW.mjs → chunk-AC6JHCPC.mjs} +1 -1
- package/dist/chunk-B3SVS2AF.js +1 -0
- package/dist/{chunk-4HNEXEGS.js → chunk-BA4OW45H.js} +1 -1
- package/dist/{chunk-KPWWI5UW.mjs → chunk-CF4SIWV2.mjs} +1 -1
- package/dist/{chunk-GFM6PERG.js → chunk-CMZXBKDH.js} +1 -1
- package/dist/chunk-CRQO6WI3.mjs +2 -0
- package/dist/chunk-DPMR7U7D.js +2 -0
- package/dist/{chunk-QZPVZY6S.mjs → chunk-EEEED6FG.mjs} +1 -1
- package/dist/{chunk-HQ76VZAN.mjs → chunk-IJ2PPHRN.mjs} +1 -1
- package/dist/chunk-IUYHWUBF.mjs +1 -0
- package/dist/chunk-LMGFGJTJ.mjs +1 -0
- package/dist/chunk-LZTEPSU2.js +4 -0
- package/dist/{chunk-TXAB4I4M.mjs → chunk-NJBEJTIO.mjs} +1 -1
- package/dist/chunk-OBRTIXHC.mjs +59 -0
- package/dist/{chunk-TT3ILFZC.js → chunk-OTXLG6KM.js} +1 -1
- package/dist/chunk-QI6JDDGO.js +1 -0
- package/dist/{chunk-DUVSDFRG.js → chunk-R5DGXEWJ.js} +1 -1
- package/dist/{chunk-DU5TWD2W.mjs → chunk-RT5AAIEK.mjs} +1 -1
- package/dist/{chunk-KEDY4GFG.js → chunk-SSL74NAS.js} +3 -3
- package/dist/{chunk-NN2EJIO7.mjs → chunk-T5G3IWCO.mjs} +1 -1
- package/dist/{chunk-QRBFMR7Z.mjs → chunk-U55TPVTA.mjs} +1 -1
- package/dist/{chunk-ICNIAAH7.mjs → chunk-V4DLVFYG.mjs} +1 -1
- package/dist/chunk-WA4IJOGH.js +1 -0
- package/dist/{chunk-PM4KDJJ2.js → chunk-XLY5A37T.js} +1 -1
- package/dist/{chunk-K7NSOCSY.js → chunk-XRJFWDCV.js} +1 -1
- package/dist/chunk-ZCYUN3EC.js +1 -0
- package/dist/{chunk-A7C3DGQA.mjs → chunk-ZW3VG4TK.mjs} +1 -1
- package/dist/core-plugins.js +1 -1
- package/dist/core-plugins.mjs +1 -1
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/docx/index.js +1 -1
- package/dist/docx/index.mjs +1 -1
- package/dist/docx/parser.js +1 -1
- package/dist/docx/parser.mjs +1 -1
- package/dist/docx/rezip.d.mts +2 -2
- package/dist/docx/rezip.d.ts +2 -2
- package/dist/docx/rezip.js +1 -1
- package/dist/docx/rezip.mjs +1 -1
- package/dist/docx/serializer/index.js +1 -1
- package/dist/docx/serializer/index.mjs +1 -1
- package/dist/editor/index.js +1 -1
- package/dist/editor/index.mjs +1 -1
- package/dist/executor-LAWUSXNG.mjs +1 -0
- package/dist/executor-SJOHUTMY.js +1 -0
- package/dist/headless.js +1 -1
- package/dist/headless.mjs +1 -1
- package/dist/layout-bridge/index.js +1 -1
- package/dist/layout-bridge/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.js +1 -1
- package/dist/layout-bridge/toFlowBlocks.mjs +1 -1
- package/dist/layout-painter/index.js +1 -1
- package/dist/layout-painter/index.mjs +1 -1
- package/dist/layout-painter/renderPage.js +1 -1
- package/dist/layout-painter/renderPage.mjs +1 -1
- package/dist/mcp-cli.mjs +23 -23
- package/dist/mcp.js +8 -8
- package/dist/mcp.mjs +1 -1
- package/dist/prosemirror/applyFormatting.js +1 -1
- package/dist/prosemirror/applyFormatting.mjs +1 -1
- package/dist/prosemirror/commands/formatting.js +1 -1
- package/dist/prosemirror/commands/formatting.mjs +1 -1
- 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/index.js +1 -1
- package/dist/prosemirror/conversion/index.mjs +1 -1
- package/dist/prosemirror/extensions/index.js +1 -1
- package/dist/prosemirror/extensions/index.mjs +1 -1
- package/dist/prosemirror/index.js +2 -2
- package/dist/prosemirror/index.mjs +1 -1
- package/dist/prosemirror/schema/index.js +1 -1
- package/dist/prosemirror/schema/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-2LVK7EF5.mjs +0 -2
- package/dist/chunk-47SKD7QB.mjs +0 -4
- package/dist/chunk-4JPHW7ZI.js +0 -2
- package/dist/chunk-4U2S3WV2.js +0 -1
- package/dist/chunk-5EP47PMQ.mjs +0 -2
- package/dist/chunk-B6FA4MJ5.mjs +0 -1
- package/dist/chunk-C2BAPYGJ.js +0 -1
- package/dist/chunk-DFDL337G.js +0 -4
- package/dist/chunk-F24WZXN4.mjs +0 -59
- package/dist/chunk-FETIBXTH.js +0 -1
- package/dist/chunk-JQUIUKRO.js +0 -59
- package/dist/chunk-LE67NTCN.mjs +0 -1
- package/dist/chunk-SHZOAUHB.mjs +0 -1
- package/dist/chunk-WVY2UXAK.js +0 -2
- package/dist/executor-FHL5D4CB.js +0 -1
- package/dist/executor-FL6XGVP3.mjs +0 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import {h,j as j$2,k,g,A,y}from'./chunk-3HLRRK6N.mjs';import {c as c$1}from'./chunk-W77JXDEV.mjs';import {c as c$2}from'./chunk-4VLKSJRK.mjs';import {g as g$1}from'./chunk-KNY7SXPJ.mjs';import {d}from'./chunk-VJFIAFZ5.mjs';import {c,j as j$1,e,l,i,a,f,m,d as d$1,b,o,n,k as k$1}from'./chunk-3ANZ3252.mjs';var De={dk1:"000000",lt1:"FFFFFF",dk2:"44546A",lt2:"E7E6E6",accent1:"4472C4",accent2:"ED7D31",accent3:"A5A5A5",accent4:"FFC000",accent5:"5B9BD5",accent6:"70AD47",hlink:"0563C1",folHlink:"954F72"},ee={majorFont:{latin:"Calibri Light",ea:"",cs:"",fonts:{}},minorFont:{latin:"Calibri",ea:"",cs:"",fonts:{}}},ye={name:"Office Theme",colorScheme:De,fontScheme:ee},bt=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];function Tt(e){if(!e)return null;switch(d$1(e.name||"")){case "srgbClr":return j$1(e,"a","val")??j$1(e,null,"val")??null;case "sysClr":{let n=j$1(e,"a","lastClr")??j$1(e,null,"lastClr");if(n)return n;switch(j$1(e,"a","val")??j$1(e,null,"val")){case "windowText":case "menuText":case "captionText":case "btnText":return "000000";case "window":case "menu":case "btnFace":case "btnHighlight":return "FFFFFF";case "highlight":return "0078D7";case "highlightText":return "FFFFFF";case "grayText":return "808080";default:return null}}case "schemeClr":{j$1(e,"a","val")??j$1(e,null,"val");return null}default:return null}}function xt(e$1){let t={...De};if(!e$1)return t;for(let n of bt){let o=e(e$1,"a",n);if(o){let r=i(o);if(r.length>0){let a=Tt(r[0]);a&&(t[n]=a);}}}return t}function Le(e$1){let t={latin:"",ea:"",cs:"",fonts:{}};if(!e$1)return t;let n=e(e$1,"a","latin");n&&(t.latin=j$1(n,"a","typeface")??j$1(n,null,"typeface")??"");let o=e(e$1,"a","ea");o&&(t.ea=j$1(o,"a","typeface")??j$1(o,null,"typeface")??"");let r=e(e$1,"a","cs");r&&(t.cs=j$1(r,"a","typeface")??j$1(r,null,"typeface")??"");let a=f(e$1,"a","font");for(let u of a){let l=j$1(u,"a","script")??j$1(u,null,"script"),f=j$1(u,"a","typeface")??j$1(u,null,"typeface");l&&f&&(t.fonts=t.fonts||{},t.fonts[l]=f);}return t}function Ft(e$1){let t={...ee};if(!e$1)return t;let n=e(e$1,"a","majorFont");n&&(t.majorFont=Le(n));let o=e(e$1,"a","minorFont");return o&&(t.minorFont=Le(o)),t}function Hn(e$1){if(!e$1)return {...ye};try{let t=c(e$1);if(!t)return {...ye};let n=j$1(t,"a","name")??j$1(t,null,"name")??"Office Theme",o=e(t,"a","themeElements"),r=e(o,"a","clrScheme"),a=xt(r),u=e(o,"a","fontScheme"),l=Ft(u);return {name:n,colorScheme:a,fontScheme:l}}catch(t){return console.warn("Failed to parse theme:",t),{...ye}}}function Ct(e,t="latin"){if(!e?.fontScheme?.majorFont)return ee.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 Xe(e,t="latin"){if(!e?.fontScheme?.minorFont)return ee.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?Ct(e,r):o?Xe(e,r):Xe(e,"latin")}function Oe(e){if(!e)return;let t=l(e,"w","w")??0,n=j$1(e,"w","type")??"dxa",o="dxa";return (n==="auto"||n==="dxa"||n==="nil"||n==="pct")&&(o=n),{value:t,type:o}}function D(e){return Oe(e)}function j(e){let t=j$1(e,"w","id"),n=t?parseInt(t,10):0,o=(j$1(e,"w","author")??"").trim(),r=(j$1(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 te(e){return j(e)}function V(e){if(!e)return;let o={style:j$1(e,"w","val")??"none"},r=l(e,"w","sz");r!==void 0&&(o.size=r);let a=l(e,"w","space");a!==void 0&&(o.space=a);let u=j$1(e,"w","color"),l$1=j$1(e,"w","themeColor"),f=j$1(e,"w","themeTint"),c=j$1(e,"w","themeShade");(u||l$1||f||c)&&(o.color={rgb:u??void 0,themeColor:l$1,themeTint:f??void 0,themeShade:c??void 0});let d=j$1(e,"w","shadow");(d==="1"||d==="true")&&(o.shadow=true);let p=j$1(e,"w","frame");return (p==="1"||p==="true")&&(o.frame=true),o}function ne(e$1){if(!e$1)return;let t={},n=V(e(e$1,"w","top"));n&&(t.top=n);let o=V(e(e$1,"w","bottom"));o&&(t.bottom=o);let r=V(e(e$1,"w","left")??e(e$1,"w","start"));r&&(t.left=r);let a=V(e(e$1,"w","right")??e(e$1,"w","end"));a&&(t.right=a);let u=V(e(e$1,"w","insideH"));u&&(t.insideH=u);let l=V(e(e$1,"w","insideV"));if(l&&(t.insideV=l),Object.keys(t).length!==0)return t}function oe(e$1){if(!e$1)return;let t={},n=D(e(e$1,"w","top"));n&&(t.top=n);let o=D(e(e$1,"w","bottom"));o&&(t.bottom=o);let r=D(e(e$1,"w","left")??e(e$1,"w","start"));r&&(t.left=r);let a=D(e(e$1,"w","right")??e(e$1,"w","end"));if(a&&(t.right=a),Object.keys(t).length!==0)return t}function re(e){if(!e)return;let t={},n=j$1(e,"w","fill");n&&n!=="auto"&&(t.fill={rgb:n});let o=j$1(e,"w","themeFill");if(o){t.fill={themeColor:o};let u=j$1(e,"w","themeFillTint");u&&t.fill&&(t.fill.themeTint=u);let l=j$1(e,"w","themeFillShade");l&&t.fill&&(t.fill.themeShade=l);}let r=j$1(e,"w","color");r&&r!=="auto"&&(t.color={rgb:r});let a=j$1(e,"w","val");if(a&&(t.pattern=a),Object.keys(t).length!==0)return t}function be(e){if(!e)return;let t={},n=j$1(e,"w","firstRow");(n==="1"||n==="true")&&(t.firstRow=true);let o=j$1(e,"w","lastRow");(o==="1"||o==="true")&&(t.lastRow=true);let r=j$1(e,"w","firstColumn");(r==="1"||r==="true")&&(t.firstColumn=true);let a=j$1(e,"w","lastColumn");(a==="1"||a==="true")&&(t.lastColumn=true);let u=j$1(e,"w","noHBand");(u==="1"||u==="true")&&(t.noHBand=true);let l=j$1(e,"w","noVBand");(l==="1"||l==="true")&&(t.noVBand=true);let f=j$1(e,"w","val");if(f){let c=parseInt(f,16);isNaN(c)||(c&32&&(t.firstRow=true),c&64&&(t.lastRow=true),c&128&&(t.firstColumn=true),c&256&&(t.lastColumn=true),c&512&&(t.noHBand=true),c&1024&&(t.noVBand=true));}if(Object.keys(t).length!==0)return t}function Te(e){if(!e)return;let t={},n=j$1(e,"w","horzAnchor");(n==="margin"||n==="page"||n==="text")&&(t.horzAnchor=n);let o=j$1(e,"w","vertAnchor");(o==="margin"||o==="page"||o==="text")&&(t.vertAnchor=o);let r=l(e,"w","tblpX");r!==void 0&&(t.tblpX=r);let a=j$1(e,"w","tblpXSpec");a&&(t.tblpXSpec=a);let u=l(e,"w","tblpY");u!==void 0&&(t.tblpY=u);let l$1=j$1(e,"w","tblpYSpec");l$1&&(t.tblpYSpec=l$1);let f=l(e,"w","topFromText");f!==void 0&&(t.topFromText=f);let c=l(e,"w","bottomFromText");c!==void 0&&(t.bottomFromText=c);let d=l(e,"w","leftFromText");d!==void 0&&(t.leftFromText=d);let p=l(e,"w","rightFromText");if(p!==void 0&&(t.rightFromText=p),Object.keys(t).length!==0)return t}function kt(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 St(e){return e.rows.length}function Mt(e){return e.formatting?.vMerge==="continue"}function Rt(e){return e.formatting?.vMerge==="restart"}function Et(e){return e.rows.length===0?false:e.rows[0].formatting?.header===true}var Pt={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 Bt(e){if(!e||!e.elements)return "richText";for(let t of e.elements){if(t.type!=="element"||!t.name)continue;let n=d$1(t.name),o=Pt[n];if(o)return o}return "richText"}function vt(e){let t=[];for(let n of e.elements??[])n.type==="element"&&d$1(n.name||"")==="listItem"&&t.push({displayText:j$1(n,"w","displayText")||"",value:j$1(n,"w","value")||""});return t}function ie(e$1,t){let n={sdtType:Bt(e$1)};if(e$1){n.rawPropertiesXml=b(e$1);for(let o of e$1.elements??[]){if(o.type!=="element"||!o.name)continue;switch(d$1(o.name)){case "id":{let a=j$1(o,"w","val");if(a!=null){let u=parseInt(a,10);Number.isNaN(u)||(n.id=u);}break}case "alias":n.alias=j$1(o,"w","val")??void 0;break;case "tag":n.tag=j$1(o,"w","val")??void 0;break;case "lock":n.lock=j$1(o,"w","val")??"unlocked";break;case "placeholder":{let a=e(o,"w","docPart");a&&(n.placeholder=j$1(a,"w","val")??void 0);break}case "showingPlcHdr":{let a=j$1(o,"w","val");n.showingPlaceholder=a==null||!/^(0|false|off)$/i.test(a);break}case "date":{let a=e(o,"w","dateFormat");a&&(n.dateFormat=j$1(a,"w","val")??void 0);break}case "dropDownList":case "comboBox":n.listItems=vt(o);break;case "checkbox":{let a=e(o,"w14","checked")??e(o,"w","checked");n.checked=a?j$1(a,"w14","val")==="1"||j$1(a,"w","val")==="1":false;break}case "dataBinding":{let a={},u=j$1(o,"w","xpath"),l=j$1(o,"w","storeItemID"),f=j$1(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=b(t)),n}var We={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 Nt(e){if(!e||e.trim()==="")return "\u2022";let t=e.charCodeAt(0);return We[t]?We[t]:t>=57344&&t<=63743||t<32||t>=127&&t<160?"\u2022":e}function At(e){let t=e.listRendering;t&&t.isBullet&&(t.marker=Nt(t.marker||""));}function It(e,t,n$1,o,r,a,u){if(e.content.length===0)return;let l=i(t),f=0;function c(d){if(!h(d))return;let p=j$2(d);if(!p)return;let w=n(d,"wps","wsp");if(w){let h=k(w);h&&(p.content=g(h,Z,null,n$1,o,r,a??void 0,u??void 0));}let T={type:"shape",shapeType:"rect",size:p.size,position:p.position,wrap:p.wrap,fill:p.fill,outline:p.outline,textBody:{content:p.content,margins:p.margins}};p.id&&(T.id=p.id);let y={type:"shape",shape:T},x=f;if(x>=e.content.length){x=-1;for(let h=e.content.length-1;h>=0;h--)if(e.content[h].type==="run"){x=h;break}}if(x>=0){let h=e.content[x];h.type==="run"&&h.content.push(y);}}for(let d of l){if(d$1(d.name??"")!=="r")continue;let p=i(d);for(let w of p){let T=d$1(w.name??"");if(T==="drawing")c(w);else if(T==="AlternateContent"){let y=i(w),h=y.find(P=>d$1(P.name??"")==="Choice")??y.find(P=>d$1(P.name??"")==="Fallback");if(h)for(let P of i(h))d$1(P.name??"")==="drawing"&&c(P);}}f++;}}function q(e,t,n,o,r,a,u){let l=[],f=i(e);for(let c of f){let d=c.name??"";if(d==="w:p"||d.endsWith(":p")){let p=Z(c,t,n,o,r,a,u);It(p,c,t,n,o,r,a),At(p),l.push(p);}else if(d==="w:tbl"||d.endsWith(":tbl")){let p=xe(c,t,n,o,r,a,u);l.push(p);}else (d==="w:sdt"||d.endsWith(":sdt"))&&l.push(Ht(c,t,n,o,r,a,u));}return l}function Ht(e$1,t,n,o,r,a,u){let l=e(e$1,"w","sdtPr"),f=e(e$1,"w","sdtEndPr"),c=e(e$1,"w","sdtContent"),d=ie(l,f),p=c?q(c,t,n,o,r,a,u):[];return {type:"blockSdt",properties:d,content:p}}function ae(e){let t={};if(!e)return t;for(let n of e.split(";")){let o=n.indexOf(":");if(o<0)continue;let r=n.slice(0,o).trim().toLowerCase(),a=n.slice(o+1).trim();r&&(t[r]=a);}return t}function Lt(e){if(!e)return "#C0C0C0";let t=e.trim();return t.startsWith("#")?t:/^[0-9a-fA-F]{6}$/.test(t)?`#${t}`:t}function Ve(e){if(!e)return;let t=e.match(/^(-?[0-9.]+)(pt|px|in|cm|mm)?$/);if(!t)return;let n=parseFloat(t[1]);if(!isNaN(n))switch(t[2]){case "in":return n*96;case "cm":return n/2.54*96;case "mm":return n/25.4*96;case "px":return n;default:return n*96/72}}var je=914400/96;function Xt(e,t,n){if(!e||!t)return {};let o=t.get(e);if(!o?.target)return {};let r=o.target,a=r.split("/").pop()??r,u=[r,r.replace(/^\/+/,""),`word/${r.replace(/^\/+/,"")}`,`word/media/${a}`,`media/${a}`];if(n)for(let l of u){let f=l.toLowerCase();for(let[c,d]of n.entries())if(c.toLowerCase()===f)return {dataUrl:d.dataUrl??d.base64,mediaPath:d.path,contentType:d.mimeType}}return {}}function Fe(e,t){if(t.includes("watermark")||(j$1(e,null,"type")??"").includes("_t136"))return true;let o=i(e).find(r=>r.name==="v:imagedata"||r.name?.endsWith(":imagedata"));return !!(o&&(j$1(o,null,"gain")||j$1(o,"o","gain")||j$1(o,null,"blacklevel")))}function Ue(e,t=null,n=null){if(!e)return;let o$1=o(e,"v","shape");for(let r of o$1){let a=(j$1(r,null,"id")??"").toLowerCase(),u=i(r),l=u.find(w=>w.name==="v:textpath"||w.name?.endsWith(":textpath")),f=u.find(w=>w.name==="v:imagedata"||w.name?.endsWith(":imagedata"));if(!Fe(r,a)&&!l)continue;let c=ae(j$1(r,null,"style")),d=parseFloat(c.rotation??"0")||0,p=Math.abs(d)>5;if(l){let w=j$1(l,null,"string")??"",x=(ae(j$1(l,null,"style"))["font-family"]??"Calibri").replace(/["']/g,"").replace(/^"|"$/g,"").trim()||"Calibri",h=u.find(M=>M.name==="v:fill"||M.name?.endsWith(":fill")),P=h?j$1(h,null,"opacity"):null,C=P!=null&&parseFloat(P)<1;return {kind:"text",text:w,font:x,color:Lt(j$1(r,null,"fillcolor")),semitransparent:C,layout:p?"diagonal":"horizontal",fontSize:void 0}}if(f){let w=j$1(f,"r","id")??j$1(f,"r","embed")??j$1(f,null,"id")??"",{dataUrl:T,mediaPath:y,contentType:x}=Xt(w,t,n),h=j$1(f,null,"gain"),P=j$1(f,null,"blacklevel"),C=h!=null||P!=null,M=Ve(c.width),m=Ve(c.height);return {kind:"picture",relId:w||void 0,mediaPath:y,contentType:x,dataUrl:T,scale:1,washout:C,widthEmu:M!=null?Math.round(M*je):void 0,heightEmu:m!=null?Math.round(m*je):void 0}}}}function ze(e){switch(e){case "first":return "first";case "even":return "even";default:return "default"}}function _e(e){let t=j$1(e,"w","type"),n=j$1(e,"r","id")??"";return {type:ze(t),rId:n}}function Ge(e){let t=j$1(e,"w","type"),n=j$1(e,"r","id")??"";return {type:ze(t),rId:n}}function Jn(e,t="default",n=null,o=null,r=null,a$1=null,u=null){let l={type:"header",hdrFtrType:t,content:[]};if(!e)return l;let f=a(e);if(!f)return l;let c=f.elements?.find(p=>p.type==="element"&&(p.name==="w:hdr"||p.name?.endsWith(":hdr")));if(!c)return l;l.content=q(c,n,o,r,a$1,u,{inHeaderFooter:true});let d=Ue(c,a$1,u);return d&&(l.watermark=d),l}function eo(e,t="default",n=null,o=null,r=null,a$1=null,u=null){let l={type:"footer",hdrFtrType:t,content:[]};if(!e)return l;let f=a(e);if(!f)return l;let c=f.elements?.find(d=>d.type==="element"&&(d.name==="w:ftr"||d.name?.endsWith(":ftr")));return c&&(l.content=q(c,n,o,r,a$1,u,{inHeaderFooter:true})),l}function qe(e){switch(e){case "separator":return "separator";case "continuationSeparator":return "continuationSeparator";case "continuationNotice":return "continuationNotice";default:return "normal"}}function $e(e,t,n,o,r,a){let u=q(e,t,n,o,r,a),l=false;for(let f of i(e)){let c=f.name??"";if(c==="w:bookmarkStart"||c.endsWith(":bookmarkStart")||c==="w:bookmarkEnd"||c.endsWith(":bookmarkEnd")||c==="w:customXml"||c.endsWith(":customXml")){l=true;break}}return {blocks:u,hasUnmodeled:l}}function Dt(e,t,n,o,r,a){let u=l(e,"w","id")??0,l$1=j$1(e,"w","type"),f=qe(l$1),{blocks:c,hasUnmodeled:d}=$e(e,t,n,o,r,a);return {type:"footnote",id:u,noteType:f,content:c,...d?{verbatimXml:b(e)}:{}}}function ro(e,t=null,n=null,o=null,r=null,a$1=null){let u=new Map,l=[];if(!e)return le(u,l);let f$1=a(e);if(!f$1)return le(u,l);let c=f$1.elements?.find(p=>p.type==="element"&&(p.name==="w:footnotes"||p.name?.endsWith(":footnotes")));if(!c)return le(u,l);let d=f(c,"w","footnote");for(let p of d){let w=Dt(p,t,n,o,r,a$1);u.set(w.id,w),l.push(w);}return le(u,l)}function le(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 Ot(e,t,n,o,r,a){let u=l(e,"w","id")??0,l$1=j$1(e,"w","type"),f=qe(l$1),{blocks:c,hasUnmodeled:d}=$e(e,t,n,o,r,a);return {type:"endnote",id:u,noteType:f,content:c,...d?{verbatimXml:b(e)}:{}}}function io(e,t=null,n=null,o=null,r=null,a$1=null){let u=new Map,l=[];if(!e)return se(u,l);let f$1=a(e);if(!f$1)return se(u,l);let c=f$1.elements?.find(p=>p.type==="element"&&(p.name==="w:endnotes"||p.name?.endsWith(":endnotes")));if(!c)return se(u,l);let d=f(c,"w","endnote");for(let p of d){let w=Ot(p,t,n,o,r,a$1);u.set(w.id,w),l.push(w);}return se(u,l)}function se(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 Ye(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 Wt(e){switch(e){case "pageBottom":return "pageBottom";case "beneathText":return "beneathText";case "sectEnd":return "sectEnd";case "docEnd":return "docEnd";default:return}}function Vt(e){switch(e){case "sectEnd":return "sectEnd";case "docEnd":return "docEnd";default:return}}function Ze(e){switch(e){case "continuous":return "continuous";case "eachSect":return "eachSect";case "eachPage":return "eachPage";default:return}}function Ke(e$1){let t={};if(!e$1)return t;let n=e(e$1,"w","pos");if(n){let u=j$1(n,"w","val");t.position=Wt(u);}let o=e(e$1,"w","numFmt");if(o){let u=j$1(o,"w","val");t.numFmt=Ye(u);}let r=e(e$1,"w","numStart");r&&(t.numStart=l(r,"w","val")??void 0);let a=e(e$1,"w","numRestart");if(a){let u=j$1(a,"w","val");t.numRestart=Ze(u);}return t}function Qe(e$1){let t={};if(!e$1)return t;let n=e(e$1,"w","pos");if(n){let u=j$1(n,"w","val");t.position=Vt(u);}let o=e(e$1,"w","numFmt");if(o){let u=j$1(o,"w","val");t.numFmt=Ye(u);}let r=e(e$1,"w","numStart");r&&(t.numStart=l(r,"w","val")??void 0);let a=e(e$1,"w","numRestart");if(a){let u=j$1(a,"w","val");t.numRestart=Ze(u);}return t}function ao(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 lo(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 so(e){return e.noteType==="separator"||e.noteType==="continuationSeparator"||e.noteType==="continuationNotice"}function uo(e){return e.noteType==="separator"||e.noteType==="continuationSeparator"||e.noteType==="continuationNotice"}function jt(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 ue(e){if(!e)return;let o={style:j$1(e,"w","val")??"none"},r=l(e,"w","sz");r!==void 0&&(o.size=r);let a=l(e,"w","space");a!==void 0&&(o.space=a);let u=j$1(e,"w","color"),l$1=j$1(e,"w","themeColor"),f=j$1(e,"w","themeTint"),c=j$1(e,"w","themeShade"),d=jt(u,l$1,f,c);d&&(o.color=d);let p=j$1(e,"w","shadow");(p==="1"||p==="true")&&(o.shadow=true);let w=j$1(e,"w","frame");return (w==="1"||w==="true")&&(o.frame=true),o}function Ut(e){switch(e){case "landscape":return "landscape";case "portrait":return "portrait";default:return}}function zt(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 _t(e){switch(e){case "top":return "top";case "center":return "center";case "both":return "both";case "bottom":return "bottom";default:return}}function Gt(e){switch(e){case "continuous":return "continuous";case "newPage":return "newPage";case "newSection":return "newSection";default:return}}function et(e$1,t){let n={};if(!e$1)return n;let o=e(e$1,"w","pgSz");if(o){let m=l(o,"w","w");m!==void 0&&(n.pageWidth=m);let F=l(o,"w","h");F!==void 0&&(n.pageHeight=F);let E=j$1(o,"w","orient"),b=Ut(E);b&&(n.orientation=b);}let r=e(e$1,"w","pgMar");if(r){let m=l(r,"w","top");m!==void 0&&(n.marginTop=m);let F=l(r,"w","bottom");F!==void 0&&(n.marginBottom=F);let E=l(r,"w","left");E!==void 0&&(n.marginLeft=E);let b=l(r,"w","right");b!==void 0&&(n.marginRight=b);let k=l(r,"w","header");k!==void 0&&(n.headerDistance=k);let B=l(r,"w","footer");B!==void 0&&(n.footerDistance=B);let N=l(r,"w","gutter");N!==void 0&&(n.gutter=N);}let a=e(e$1,"w","cols");if(a){let m=l(a,"w","num");m!==void 0&&(n.columnCount=m);let F=l(a,"w","space");F!==void 0&&(n.columnSpace=F);let E=j$1(a,"w","equalWidth");E==="1"||E==="true"?n.equalWidth=true:(E==="0"||E==="false")&&(n.equalWidth=false);let b=j$1(a,"w","sep");(b==="1"||b==="true")&&(n.separator=true);let k=f(a,"w","col");if(k.length>0){n.columns=[];for(let B of k){let N={},H=l(B,"w","w");H!==void 0&&(N.width=H);let I=l(B,"w","space");I!==void 0&&(N.space=I),n.columns.push(N);}n.columnCount===void 0&&(n.columnCount=k.length);}}let u=e(e$1,"w","type");if(u){let m=j$1(u,"w","val"),F=zt(m);F&&(n.sectionStart=F);}let l$1=e(e$1,"w","vAlign");if(l$1){let m=j$1(l$1,"w","val"),F=_t(m);F&&(n.verticalAlign=F);}let f$1=e(e$1,"w","bidi");f$1&&(n.bidi=m(f$1));let c=f(e$1,"w","headerReference");c.length>0&&(n.headerReferences=c.map(m=>_e(m)));let d=f(e$1,"w","footerReference");d.length>0&&(n.footerReferences=d.map(m=>Ge(m)));let p=e(e$1,"w","titlePg");p&&(n.titlePg=m(p));let w=e(e$1,"w","evenAndOddHeaders");w&&(n.evenAndOddHeaders=m(w));let T=e(e$1,"w","lnNumType");if(T){n.lineNumbers={};let m=l(T,"w","start");m!==void 0&&(n.lineNumbers.start=m);let F=l(T,"w","countBy");F!==void 0&&(n.lineNumbers.countBy=F);let E=l(T,"w","distance");E!==void 0&&(n.lineNumbers.distance=E);let b=j$1(T,"w","restart"),k=Gt(b);k&&(n.lineNumbers.restart=k);}let y=e(e$1,"w","pgBorders");if(y){n.pageBorders={};let m=ue(e(y,"w","top"));m&&(n.pageBorders.top=m);let F=ue(e(y,"w","bottom"));F&&(n.pageBorders.bottom=F);let E=ue(e(y,"w","left"));E&&(n.pageBorders.left=E);let b=ue(e(y,"w","right"));b&&(n.pageBorders.right=b);let k=j$1(y,"w","display");(k==="allPages"||k==="firstPage"||k==="notFirstPage")&&(n.pageBorders.display=k);let B=j$1(y,"w","offsetFrom");(B==="page"||B==="text")&&(n.pageBorders.offsetFrom=B);let N=j$1(y,"w","zOrder");(N==="front"||N==="back")&&(n.pageBorders.zOrder=N);}let x=e(e$1,"w","background");if(x){n.background={};let m=j$1(x,"w","color");m&&m!=="auto"&&(n.background.color={rgb:m});let F=j$1(x,"w","themeColor");F&&(n.background.themeColor=F);let E=j$1(x,"w","themeTint");E&&(n.background.themeTint=E);let b=j$1(x,"w","themeShade");b&&(n.background.themeShade=b);}let h=e(e$1,"w","footnotePr");if(h){let m=Ke(h);Object.keys(m).length>0&&(n.footnotePr=m);}let P=e(e$1,"w","endnotePr");if(P){let m=Qe(P);Object.keys(m).length>0&&(n.endnotePr=m);}let C=e(e$1,"w","docGrid");if(C){n.docGrid={};let m=j$1(C,"w","type");(m==="default"||m==="lines"||m==="linesAndChars"||m==="snapToChars")&&(n.docGrid.type=m);let F=l(C,"w","linePitch");F!==void 0&&(n.docGrid.linePitch=F);let E=l(C,"w","charSpace");E!==void 0&&(n.docGrid.charSpace=E);}let M=e(e$1,"w","paperSrc");if(M){let m=l(M,"w","first");m!==void 0&&(n.paperSrcFirst=m);let F=l(M,"w","other");F!==void 0&&(n.paperSrcOther=F);}return n}function go(){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 Je(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 ho(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=Je(r.headerReferences,o.headerReferences),u=Je(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 tt(e){if(!e)return;let t=/^(-?[\d.]+)\s*(pt|in|px|cm|mm|pc)?$/.exec(e.trim());if(!t)return;let n=parseFloat(t[1]);if(!isNaN(n))switch(t[2]){case "pt":return n/72*96;case "in":return n*96;case "cm":return n/2.54*96;case "mm":return n/25.4*96;case "pc":return n/6*96;case "px":case void 0:return n;default:return}}function qt(e){return j$1(e,"r","id")??j$1(e,"r","embed")??j$1(e,null,"id")??""}function $t(e){if(!e)return null;let t;if(e.startsWith("data:")){let n=e.indexOf(",");if(n<0)return null;t=e.slice(n+1);}else if(/^[A-Za-z0-9+/]/.test(e)&&!e.includes(":"))t=e;else return null;try{let n=typeof atob=="function"?atob(t):globalThis.Buffer?.from(t,"base64").toString("binary");if(typeof n!="string")return null;let o=new Uint8Array(n.length);for(let r=0;r<n.length;r++)o[r]=n.charCodeAt(r);return o}catch{return null}}function Yt(e){if(!e||e.length<24)return null;let t=new DataView(e.buffer,e.byteOffset,e.byteLength);if(e[0]===137&&e[1]===80&&e[2]===78&&e[3]===71)return {width:t.getUint32(16),height:t.getUint32(20)};if(e[0]===71&&e[1]===73&&e[2]===70)return {width:e[6]|e[7]<<8,height:e[8]|e[9]<<8};if(e[0]===66&&e[1]===77&&e.length>=26)return {width:t.getInt32(18,true),height:Math.abs(t.getInt32(22,true))};if(e[0]===255&&e[1]===216){let n=2;for(;n+9<e.length;){if(e[n]!==255){n++;continue}let o=e[n+1];if(o>=192&&o<=207&&o!==196&&o!==200&&o!==204)return {height:e[n+5]<<8|e[n+6],width:e[n+7]<<8|e[n+8]};let r=e[n+2]<<8|e[n+3];if(r<2)break;n+=2+r;}}return null}function nt(e,t,n){let o$1=[...o(e,"v","shape"),...o(e,"v","rect"),...o(e,"v","roundrect"),...o(e,"v","oval")];for(let r of o$1){let a=i(r).find(h=>h.name==="v:imagedata"||h.name?.endsWith(":imagedata"));if(!a)continue;let u=qt(a);if(!u)continue;let l=(j$1(r,null,"id")??"").toLowerCase();if(Fe(r,l))continue;let{src:f,mimeType:c,filename:d}=y(u,t??void 0,n??void 0),p=ae(j$1(r,null,"style")),w=tt(p.width),T=tt(p.height);if(w==null||T==null){let h=Yt($t(f));h&&h.width>0&&h.height>0&&(w==null&&T==null?(w=h.width,T=h.height):w==null?w=T*(h.width/h.height):T=w*(h.height/h.width));}let y$1={type:"image",rId:u,size:{width:w!=null?g$1(w):0,height:T!=null?g$1(T):0},wrap:{type:"inline"}};f&&(y$1.src=f),c&&(y$1.mimeType=c),d&&(y$1.filename=d);let x=j$1(a,"o","title")??void 0;return x&&(y$1.title=x),{type:"drawing",image:y$1}}return null}function ot(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=j$1(e,"w","color");n&&n!=="auto"&&(t.color={rgb:n});let o=j$1(e,"w","fill");o&&o!=="auto"&&(t.fill={rgb:o});let r=j$1(e,"w","themeFill");r&&(t.fill=t.fill||{},t.fill.themeColor=r);let a=j$1(e,"w","themeFillTint");a&&t.fill&&(t.fill.themeTint=a);let u=j$1(e,"w","themeFillShade");u&&t.fill&&(t.fill.themeShade=u);let l=j$1(e,"w","val");return l&&(t.pattern=l),Object.keys(t).length>0?t:void 0}function ce(e$1,t,n){if(!e$1)return;let o={},r=e(e$1,"w","b");r&&(o.bold=m(r));let a=e(e$1,"w","bCs");a&&(o.boldCs=m(a));let u=e(e$1,"w","i");u&&(o.italic=m(u));let l$1=e(e$1,"w","iCs");l$1&&(o.italicCs=m(l$1));let f=e(e$1,"w","u");if(f){let S=j$1(f,"w","val");if(S){o.underline={style:S};let z=j$1(f,"w","color"),_=j$1(f,"w","themeColor");(z||_)&&(o.underline.color=ot(z,_,j$1(f,"w","themeTint"),j$1(f,"w","themeShade")));}}let c=e(e$1,"w","strike");c&&(o.strike=m(c));let d=e(e$1,"w","dstrike");d&&(o.doubleStrike=m(d));let p=e(e$1,"w","vertAlign");if(p){let S=j$1(p,"w","val");(S==="superscript"||S==="subscript"||S==="baseline")&&(o.vertAlign=S);}let w=e(e$1,"w","smallCaps");w&&(o.smallCaps=m(w));let T=e(e$1,"w","caps");T&&(o.allCaps=m(T));let y=e(e$1,"w","vanish");y&&(o.hidden=m(y));let x=e(e$1,"w","color");x&&(o.color=ot(j$1(x,"w","val"),j$1(x,"w","themeColor"),j$1(x,"w","themeTint"),j$1(x,"w","themeShade")));let h=e(e$1,"w","highlight");if(h){let S=j$1(h,"w","val");S&&(o.highlight=S);}let P=e(e$1,"w","shd");P&&(o.shading=Zt(P));let C=e(e$1,"w","sz");if(C){let S=l(C,"w","val");S!==void 0&&(o.fontSize=S);}let M=e(e$1,"w","szCs");if(M){let S=l(M,"w","val");S!==void 0&&(o.fontSizeCs=S);}let m$1=e(e$1,"w","rFonts");if(m$1){o.fontFamily={ascii:j$1(m$1,"w","ascii")??void 0,hAnsi:j$1(m$1,"w","hAnsi")??void 0,eastAsia:j$1(m$1,"w","eastAsia")??void 0,cs:j$1(m$1,"w","cs")??void 0};let S=j$1(m$1,"w","asciiTheme");S&&(o.fontFamily.asciiTheme=S,t&&!o.fontFamily.ascii&&(o.fontFamily.ascii=Y(t,S)));let z=j$1(m$1,"w","hAnsiTheme");z&&(o.fontFamily.hAnsiTheme=z,t&&!o.fontFamily.hAnsi&&(o.fontFamily.hAnsi=Y(t,z)));let _=j$1(m$1,"w","eastAsiaTheme");_&&(o.fontFamily.eastAsiaTheme=_,t&&!o.fontFamily.eastAsia&&(o.fontFamily.eastAsia=Y(t,_)));let pe=j$1(m$1,"w","cstheme");pe&&(o.fontFamily.csTheme=pe,t&&!o.fontFamily.cs&&(o.fontFamily.cs=Y(t,pe)));}let F=e(e$1,"w","spacing");if(F){let S=l(F,"w","val");S!==void 0&&(o.spacing=S);}let E=e(e$1,"w","position");if(E){let S=l(E,"w","val");S!==void 0&&(o.position=S);}let b=e(e$1,"w","w");if(b){let S=l(b,"w","val");S!==void 0&&(o.scale=S);}let k=e(e$1,"w","kern");if(k){let S=l(k,"w","val");S!==void 0&&(o.kerning=S);}let B=e(e$1,"w","effect");if(B){let S=j$1(B,"w","val");S&&(o.effect=S);}let N=e(e$1,"w","em");if(N){let S=j$1(N,"w","val");S&&(o.emphasisMark=S);}let H=e(e$1,"w","emboss");H&&(o.emboss=m(H));let I=e(e$1,"w","imprint");I&&(o.imprint=m(I));let X=e(e$1,"w","outline");X&&(o.outline=m(X));let Ce=e(e$1,"w","shadow");Ce&&(o.shadow=m(Ce));let ke=e(e$1,"w","rtl");ke&&(o.rtl=m(ke));let Se=e(e$1,"w","cs");Se&&(o.cs=m(Se));let Me=e(e$1,"w","rStyle");if(Me){let S=j$1(Me,"w","val");S&&(o.styleId=S);}return Object.keys(o).length>0?o:void 0}function Kt(e){let t=j$1(e,"w","id"),n=t?parseInt(t,10):0,o=(j$1(e,"w","author")??"").trim(),r=(j$1(e,"w","date")??"").trim(),a=(j$1(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 Qt(e$1,t,n,o){if(!e$1)return;let r=f(e$1,"w","rPrChange").map(a=>{let u=e(a,"w","rPr");return {type:"runPropertyChange",info:Kt(a),previousFormatting:ce(u,t),currentFormatting:o}}).filter(a=>a.previousFormatting||a.currentFormatting);return r.length>0?r:void 0}function Jt(e){let t=k$1(e),n=j$1(e,"xml","space")==="preserve";return {type:"text",text:t,preserveSpace:n||void 0}}function en(){return {type:"tab"}}function tn(e){let t=j$1(e,"w","type"),n=j$1(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 nn(e){let t=j$1(e,"w","font")??"",n=j$1(e,"w","char")??"";return {type:"symbol",font:t,char:n}}function on(e){return {type:"footnoteRef",id:l(e,"w","id")??0}}function rn(e){return {type:"endnoteRef",id:l(e,"w","id")??0}}function an(e){let t=j$1(e,"w","fldCharType"),n=j$1(e,"w","fldLock")==="true"||j$1(e,"w","fldLock")==="1",o=j$1(e,"w","dirty")==="true"||j$1(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 ln(e){return {type:"instrText",text:k$1(e)}}function rt(e,t,n){let o=A(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 sn(e,t,n){let o=[],r=i(e);for(let a of r)switch(fe(a.name)){case "t":o.push(Jt(a));break;case "tab":o.push(en());break;case "br":o.push(tn(a));break;case "sym":o.push(nn(a));break;case "footnoteReference":o.push(on(a));break;case "endnoteReference":o.push(rn(a));break;case "fldChar":o.push(an(a));break;case "instrText":o.push(ln(a));break;case "softHyphen":o.push({type:"softHyphen"});break;case "noBreakHyphen":o.push({type:"noBreakHyphen"});break;case "drawing":let l=rt(a,t,n);l&&o.push(l);break;case "pict":case "object":{let f=nt(a,t,n);f&&o.push(f);break}case "rPr":break;case "lastRenderedPageBreak":break;case "cr":o.push({type:"break",breakType:"textWrapping"});break;case "AlternateContent":{let c=i(a).find(d=>fe(d.name)==="Choice")??i(a).find(d=>fe(d.name)==="Fallback");if(c){for(let d of i(c))if(fe(d.name)==="drawing"){let w=rt(d,t,n);w?.image?.src&&o.push(w);}}break}case "footnoteRef":o.push({type:"footnoteRefMark"});break;case "endnoteRef":o.push({type:"endnoteRefMark"});break;case "separator":o.push({type:"separator"});break;case "continuationSeparator":o.push({type:"continuationSeparator"});break;}return o}function K(e$1,t,n,o=null,r=null){let a={type:"run",content:[]},u=e(e$1,"w","rPr");return u&&(a.formatting=ce(u,n),a.propertyChanges=Qt(u,n,t,a.formatting)),a.content=sn(e$1,o,r),a}function un(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 fn(e){if(!e)return;let t={},n=j$1(e,"w","color");n&&n!=="auto"&&(t.color={rgb:n});let o=j$1(e,"w","fill");o&&o!=="auto"&&(t.fill={rgb:o});let r=j$1(e,"w","themeFill");r&&(t.fill=t.fill||{},t.fill.themeColor=r);let a=j$1(e,"w","themeFillTint");a&&t.fill&&(t.fill.themeTint=a);let u=j$1(e,"w","themeFillShade");u&&t.fill&&(t.fill.themeShade=u);let l=j$1(e,"w","val");return l&&(t.pattern=l),Object.keys(t).length>0?t:void 0}function $(e){if(!e)return;let t=j$1(e,"w","val");if(!t)return;let n={style:t},o=j$1(e,"w","color"),r=j$1(e,"w","themeColor");(o||r)&&(n.color=un(o,r,j$1(e,"w","themeTint"),j$1(e,"w","themeShade")));let a=l(e,"w","sz");a!==void 0&&(n.size=a);let u=l(e,"w","space");u!==void 0&&(n.space=u);let l$1=j$1(e,"w","shadow");l$1&&(n.shadow=l$1==="1"||l$1==="true");let f=j$1(e,"w","frame");return f&&(n.frame=f==="1"||f==="true"),n}function cn(e){if(!e)return;let t=f(e,"w","tab");if(t.length===0)return;let n=[];for(let o of t){let r=l(o,"w","pos"),a=j$1(o,"w","val");if(r!==void 0&&a){let u={position:r,alignment:a},l=j$1(o,"w","leader");l&&(u.leader=l),n.push(u);}}return n.length>0?n:void 0}function dn(e){if(!e)return;let t={},n=l(e,"w","w");n!==void 0&&(t.width=n);let o=l(e,"w","h");o!==void 0&&(t.height=o);let r=j$1(e,"w","hAnchor");(r==="text"||r==="margin"||r==="page")&&(t.hAnchor=r);let a=j$1(e,"w","vAnchor");(a==="text"||a==="margin"||a==="page")&&(t.vAnchor=a);let u=l(e,"w","x");u!==void 0&&(t.x=u);let l$1=l(e,"w","y");l$1!==void 0&&(t.y=l$1);let f=j$1(e,"w","xAlign");f&&(t.xAlign=f);let c=j$1(e,"w","yAlign");c&&(t.yAlign=c);let d=j$1(e,"w","wrap");return d&&(t.wrap=d),Object.keys(t).length>0?t:void 0}function de(e$1,t,n){if(!e$1)return;let o={},r=e(e$1,"w","jc");if(r){let b=j$1(r,"w","val");b&&(o.alignment=b);}let a=e(e$1,"w","bidi");a&&(o.bidi=m(a));let u=e(e$1,"w","spacing");if(u){let b=l(u,"w","before");b!==void 0&&(o.spaceBefore=b);let k=l(u,"w","after");k!==void 0&&(o.spaceAfter=k);let B=l(u,"w","line");B!==void 0&&(o.lineSpacing=B);let N={};b!==void 0&&(N.before=true),k!==void 0&&(N.after=true),(N.before||N.after)&&(o.spacingExplicit=N);let H=j$1(u,"w","lineRule");H&&(o.lineSpacingRule=H);let I=j$1(u,"w","beforeAutospacing");I&&(o.beforeAutospacing=I==="1"||I==="true");let X=j$1(u,"w","afterAutospacing");X&&(o.afterAutospacing=X==="1"||X==="true");}let l$1=e(e$1,"w","ind");if(l$1){let b=l(l$1,"w","left");b!==void 0&&(o.indentLeft=b);let k=l(l$1,"w","right");k!==void 0&&(o.indentRight=k);let B=l(l$1,"w","firstLine");B!==void 0&&(o.indentFirstLine=B);let N=l(l$1,"w","hanging");N!==void 0&&(o.indentFirstLine=-N,o.hangingIndent=true);let H=l(l$1,"w","start");H!==void 0&&o.indentLeft===void 0&&(o.indentLeft=H);let I=l(l$1,"w","end");I!==void 0&&o.indentRight===void 0&&(o.indentRight=I);}let f=e(e$1,"w","pBdr");if(f){let b={},k=$(e(f,"w","top"));k&&(b.top=k);let B=$(e(f,"w","bottom"));B&&(b.bottom=B);let N=$(e(f,"w","left"));N&&(b.left=N);let H=$(e(f,"w","right"));H&&(b.right=H);let I=$(e(f,"w","between"));I&&(b.between=I);let X=$(e(f,"w","bar"));X&&(b.bar=X),Object.keys(b).length>0&&(o.borders=b);}let c=e(e$1,"w","shd");c&&(o.shading=fn(c));let d=e(e$1,"w","tabs");d&&(o.tabs=cn(d));let p=e(e$1,"w","keepNext");p&&(o.keepNext=m(p));let w=e(e$1,"w","keepLines");w&&(o.keepLines=m(w));let T=e(e$1,"w","widowControl");T&&(o.widowControl=m(T));let y=e(e$1,"w","pageBreakBefore");y&&(o.pageBreakBefore=m(y));let x=e(e$1,"w","contextualSpacing");x&&(o.contextualSpacing=m(x));let h=e(e$1,"w","numPr");if(h){let b=e(h,"w","numId"),k=e(h,"w","ilvl");if(b||k){if(o.numPr={},b){let B=l(b,"w","val");B!==void 0&&(o.numPr.numId=B);}if(k){let B=l(k,"w","val");B!==void 0&&(o.numPr.ilvl=B);}}}let P=e(e$1,"w","outlineLvl");if(P){let b=l(P,"w","val");b!==void 0&&(o.outlineLevel=b);}let C=e(e$1,"w","pStyle");if(C){let b=j$1(C,"w","val");b&&(o.styleId=b);}let M=e(e$1,"w","framePr");M&&(o.frame=dn(M));let m$1=e(e$1,"w","suppressLineNumbers");m$1&&(o.suppressLineNumbers=m(m$1));let F=e(e$1,"w","suppressAutoHyphens");F&&(o.suppressAutoHyphens=m(F));let E=e(e$1,"w","rPr");return E&&(o.runProperties=ce(E,t)),Object.keys(o).length>0?o:void 0}function pn(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function mn(e){let t=l(e,"w","id")??0,n=j$1(e,"w","name")??"",o={type:"bookmarkStart",id:t,name:n},r=l(e,"w","colFirst");r!==void 0&&(o.colFirst=r);let a=l(e,"w","colLast");return a!==void 0&&(o.colLast=a),o}function gn(e){return {type:"bookmarkEnd",id:l(e,"w","id")??0}}function it(e,t,n=null,o=null,r=null){let a={type:"hyperlink",children:[]},u=j$1(e,"r","id");if(u&&(a.rId=u,t)){let T=t.get(u);T&&(c$1(T),a.href=T.target);}let l=j$1(e,"w","anchor");l&&(a.anchor=l,a.href||(a.href=`#${l}`));let f=j$1(e,"w","tooltip");f&&(a.tooltip=f);let c=j$1(e,"w","tgtFrame");c&&(a.target=c);let d=j$1(e,"w","history");(d==="1"||d==="true")&&(a.history=true);let p=j$1(e,"w","docLocation");p&&(a.docLocation=p);let w=i(e);for(let T of w)switch(pn(T.name)){case "r":a.children.push(K(T,n,o,t,r));break;case "bookmarkStart":a.children.push(mn(T));break;case "bookmarkEnd":a.children.push(gn(T));break}return a}function Io(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 Ho(e){return e.href?/^https?:\/\/|^mailto:|^tel:|^ftp:/i.test(e.href):!!e.rId&&!e.anchor}function Lo(e){return !!e.anchor}function Xo(e){return e.href}function Do(e){return e.children.some(t=>t.type==="run")}function Oo(e){return e.children.filter(t=>t.type==="run")}function Wo(e,t){if(e.rId){let n=t.get(e.rId);if(n)return c$1(n),e.href=n.target,e.href}return e.anchor&&!e.href&&(e.href=`#${e.anchor}`),e.href}function at(e){let t=l(e,"w","id")??0,n=j$1(e,"w","name")??"",o={type:"bookmarkStart",id:t,name:n},r=l(e,"w","colFirst");r!==void 0&&(o.colFirst=r);let a=l(e,"w","colLast");return a!==void 0&&(o.colLast=a),o}function lt(e){return {type:"bookmarkEnd",id:l(e,"w","id")??0}}function ut(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+=ut(n);return t}function J(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function ft(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 i(l)){let c=J(f.name);if(!n.has(c)){if(c==="lastRenderedPageBreak"){r=true;continue}if(c==="r"){for(let d of i(f)){let p=J(d.name);if(p!=="rPr"){if(p==="lastRenderedPageBreak"){r=true;continue}if(p==="br"&&j$1(d,"w","type")==="page")return "forced";if(o.has(p))return "visible"}}continue}if(t.has(c)){let d=a(f);if(d!=="continue")return d;continue}return "continue"}}return "continue"}let u=a(e);return u==="forced"?true:u==="visible"?r:false}function st(e,t){if(!e)return `w:${t}`;let n=e.indexOf(":");return n<0?t:`${e.substring(0,n+1)}${t}`}function ct(e){if(e.type!=="element")return e;let t=J(e.name),n=e.name;return t==="delText"?n=st(e.name,"t"):t==="delInstrText"&&(n=st(e.name,"instrText")),{...e,name:n,elements:e.elements?.map(ct)}}function Q(e){let t=j$1(e,"w","id"),n=t?parseInt(t,10):0,o=j$1(e,"w","author"),r=j$1(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 hn(e){return Q(e)}function dt(e$1,t,n,o){if(!e$1)return;let r=f(e$1,"w","pPrChange").map(a=>{let u=e(a,"w","pPr");return {type:"paragraphPropertyChange",info:hn(a),previousFormatting:de(u,t),currentFormatting:o}}).filter(a=>a.previousFormatting||a.currentFormatting);return r.length>0?r:void 0}function wn(e,t,n,o,r){return it(e,t,n,o,r)}function yn(e){return at(e)}function bn(e){return lt(e)}function pt(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 Tn(e,t,n,o,r){let a=j$1(e,"w","instr")??"",u=pt(a),l={type:"simpleField",instruction:a,fieldType:u,content:[]},f=j$1(e,"w","fldLock");(f==="1"||f==="true")&&(l.fldLock=true);let c=j$1(e,"w","dirty");(c==="1"||c==="true")&&(l.dirty=true);let d=i(e);for(let p of d)J(p.name)==="r"&&l.content.push(K(p,t,n,o,r));return l}function U(e,t,n,o,r,a,u="default"){let l=[],f=i(e),c=false,d="",p=[],w=[],T=false,y=false,x=false;for(let h of f){let P=J(h.name);switch(P){case "r":{let C=u==="deletion"?ct(h):h,M=K(C,t,n,r,a),m=false,F=false,E=false,b="";for(let k of M.content)k.type==="fieldChar"?k.charType==="begin"?(m=true,k.fldLock&&(y=true),k.dirty&&(x=true)):k.charType==="separate"?F=true:k.charType==="end"&&(E=true):k.type==="instrText"&&(b+=k.text);if(m&&(c=true,T=false,d="",p=[],w=[],y=false,x=false),c){if(b&&(d+=b),F&&(T=true),T&&!E?F||w.push(M):!T&&!m&&p.push(M),E){let k={type:"complexField",instruction:d.trim(),fieldType:pt(d),fieldCode:p,fieldResult:w};y&&(k.fldLock=true),x&&(k.dirty=true),l.push(k),c=false;}}else l.push(M);break}case "hyperlink":l.push(wn(h,r,t,n,a));break;case "bookmarkStart":l.push(yn(h));break;case "bookmarkEnd":l.push(bn(h));break;case "fldSimple":l.push(Tn(h,t,n,r,a));break;case "pPr":break;case "proofErr":case "permStart":case "permEnd":case "customXml":break;case "sdt":{let C=(h.elements??[]).find(m=>m.type==="element"&&(m.name==="w:sdtPr"||m.name?.endsWith(":sdtPr"))),M=(h.elements??[]).find(m=>m.type==="element"&&(m.name==="w:sdtContent"||m.name?.endsWith(":sdtContent")));if(M){let m=U(M,t,n,null,r,a,u),E={type:"inlineSdt",properties:ie(C??null),content:m.filter(b=>b.type==="run"||b.type==="hyperlink"||b.type==="simpleField"||b.type==="complexField"||b.type==="inlineSdt"||b.type==="mathEquation")};l.push(E);}break}case "ins":{let C=Q(h),M=U(h,t,n,null,r,a),m={type:"insertion",info:C,content:M.filter(F=>F.type==="run"||F.type==="hyperlink")};l.push(m);break}case "del":{let C=Q(h),M=U(h,t,n,null,r,a,"deletion"),m={type:"deletion",info:C,content:M.filter(F=>F.type==="run"||F.type==="hyperlink")};l.push(m);break}case "moveFrom":{let C=Q(h),M=U(h,t,n,null,r,a,"deletion"),m={type:"moveFrom",info:C,content:M.filter(F=>F.type==="run"||F.type==="hyperlink")};l.push(m);break}case "moveTo":{let C=Q(h),M=U(h,t,n,null,r,a),m={type:"moveTo",info:C,content:M.filter(F=>F.type==="run"||F.type==="hyperlink")};l.push(m);break}case "smartTag":break;case "moveFromRangeStart":{let C=parseInt(j$1(h,"w","id")??"0",10),M=j$1(h,"w","name")??"";l.push({type:"moveFromRangeStart",id:C,name:M});break}case "moveFromRangeEnd":{let C=parseInt(j$1(h,"w","id")??"0",10);l.push({type:"moveFromRangeEnd",id:C});break}case "moveToRangeStart":{let C=parseInt(j$1(h,"w","id")??"0",10),M=j$1(h,"w","name")??"";l.push({type:"moveToRangeStart",id:C,name:M});break}case "moveToRangeEnd":{let C=parseInt(j$1(h,"w","id")??"0",10);l.push({type:"moveToRangeEnd",id:C});break}case "commentRangeStart":{let C=parseInt(j$1(h,"w","id")??"0",10);l.push({type:"commentRangeStart",id:C});break}case "commentRangeEnd":{let C=parseInt(j$1(h,"w","id")??"0",10);l.push({type:"commentRangeEnd",id:C});break}case "oMath":case "oMathPara":{let C=P==="oMathPara",M=b(h),m=ut(h),F={type:"mathEquation",display:C?"block":"inline",ommlXml:M,plainText:m||void 0};l.push(F);break}}}return l}function xn(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 mt(e){let t=j$1(e,"w","id");if(t==null)return null;let n=parseInt(t,10);if(Number.isNaN(n))return null;let o=j$1(e,"w","author")??"",r=j$1(e,"w","date")??void 0,a={id:n,author:o};return r&&(a.date=r),a}function Z(e$1,t,n,o,r=null,a=null,u){let l={type:"paragraph",content:[]},f=j$1(e$1,"w14","paraId")??j$1(e$1,"w","paraId");f&&(l.paraId=c$2(f));let c=j$1(e$1,"w14","textId")??j$1(e$1,"w","textId");c&&(l.textId=c$2(c)),!u?.inHeaderFooter&&ft(e$1)&&(l.renderedPageBreakBefore=true);let d$1=e(e$1,"w","pPr");if(d$1){l.formatting=de(d$1,n),l.propertyChanges=dt(d$1,n,t,l.formatting);let y=e(d$1,"w","rPr");if(y){let h=e(y,"w","ins");if(h){let C=mt(h);C&&(l.pPrIns=C);}let P=e(y,"w","del");if(P){let C=mt(P);C&&(l.pPrDel=C);}}let x=e(d$1,"w","sectPr");x&&(l.sectionProperties=et(x));}let p=U(e$1,t,n,o,r,a);l.content=p;let w=l.formatting?.numPr,T=false;if(!w&&l.formatting?.styleId&&t){let y=t.get(l.formatting.styleId);y?.pPr?.numPr&&(w=y.pPr.numPr,T=true,l.formatting||(l.formatting={}),l.formatting.numPr=w,l.formatting.numPrFromStyle=w);}if(w&&o){let y=d(w,o);if(y){l.listRendering=y;let x=T?Fn(l.formatting?.styleId,t):{left:false,firstLine:false},h=o.getLevel(y.numId,y.level);if(h?.pPr){l.formatting||(l.formatting={});let P=d$1?e(d$1,"w","ind"):null,C=P!=null&&(j$1(P,"w","left")!==null||j$1(P,"w","start")!==null),M=F=>{let E=P?j$1(P,"w",F):null;if(E===null)return false;let b=parseInt(E,10);return Number.isNaN(b)||b!==0},m=P!=null&&(M("firstLine")||M("hanging"));!C&&!x.left&&h.pPr.indentLeft!==void 0&&(l.formatting.indentLeft=h.pPr.indentLeft),!m&&!x.firstLine&&(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 Fn(e,t){let n={left:false,firstLine:false};if(!e||!t)return n;let o=new Set,r=e;for(;r&&!o.has(r);){o.add(r);let a=t.get(r);if(!a)break;let u=a.pPr;if(u&&(n.left||(n.left=u.indentLeft!==void 0),n.firstLine||(n.firstLine=u.indentFirstLine!==void 0||u.hangingIndent!==void 0)),n.left&&n.firstLine)break;r=a.basedOn;}return n}function gt(e$1){if(!e$1)return;let t={},n=D(e(e$1,"w","tblW"));n&&(t.width=n);let o=e(e$1,"w","jc");if(o){let x=j$1(o,"w","val");(x==="left"||x==="center"||x==="right"||x==="start")&&(t.justification=x==="start"?"left":x);}let r=D(e(e$1,"w","tblCellSpacing"));r&&(t.cellSpacing=r);let a=D(e(e$1,"w","tblInd"));a&&(t.indent=a);let u=ne(e(e$1,"w","tblBorders"));u&&(t.borders=u);let l=oe(e(e$1,"w","tblCellMar"));l&&(t.cellMargins=l);let f=e(e$1,"w","tblLayout");if(f){let x=j$1(f,"w","type");(x==="fixed"||x==="autofit")&&(t.layout=x);}let c=e(e$1,"w","tblStyle");if(c){let x=j$1(c,"w","val");x&&(t.styleId=x);}let d=be(e(e$1,"w","tblLook"));d&&(t.look=d);let p=re(e(e$1,"w","shd"));p&&(t.shading=p);let w=e(e$1,"w","tblOverlap");if(w){let x=j$1(w,"w","val");(x==="never"||x==="overlap")&&(t.overlap=x);}let T=Te(e(e$1,"w","tblpPr"));if(T&&(t.floating=T),m(e(e$1,"w","bidiVisual"))&&(t.bidi=true),Object.keys(t).length!==0)return t}function Cn(e$1,t){if(!e$1)return;let n=f(e$1,"w","tblPrChange").map(o=>{let r=e(o,"w","tblPr");return {type:"tablePropertyChange",info:te(o),previousFormatting:gt(r),currentFormatting:t}}).filter(o=>o.previousFormatting||o.currentFormatting);return n.length>0?n:void 0}function kn(e$1,t){if(!e$1)return;let n=f(e$1,"w","trPrChange").map(o=>{let r=e(o,"w","trPr");return {type:"tableRowPropertyChange",info:te(o),previousFormatting:ht(r),currentFormatting:t}}).filter(o=>o.previousFormatting||o.currentFormatting);return n.length>0?n:void 0}function Sn(e$1,t){if(!e$1)return;let n=f(e$1,"w","tcPrChange").map(o=>{let r=e(o,"w","tcPr");return {type:"tableCellPropertyChange",info:te(o),previousFormatting:yt(r),currentFormatting:t}}).filter(o=>o.previousFormatting||o.currentFormatting);return n.length>0?n:void 0}function Mn(e$1){if(!e$1)return;let t=e(e$1,"w","ins");if(t)return {type:"tableRowInsertion",info:j(t)};let n=e(e$1,"w","del");if(n)return {type:"tableRowDeletion",info:j(n)}}function Rn(e$1){if(!e$1)return;let t=e(e$1,"w","cellIns");if(t)return {type:"tableCellInsertion",info:j(t)};let n=e(e$1,"w","cellDel");if(n)return {type:"tableCellDeletion",info:j(n)};let o=e(e$1,"w","cellMerge");if(o){let r=j$1(o,"w","vMerge"),a=j$1(o,"w","vMergeOrig"),u=l=>l==="rest"||l==="cont";return {type:"tableCellMerge",info:j(o),...u(r)?{vMerge:r}:{},...u(a)?{vMergeOrig:a}:{}}}}function ht(e$1){if(!e$1)return;let t={},n=e(e$1,"w","trHeight");if(n){let f=l(n,"w","val");f!==void 0&&f>0&&(t.height={value:f,type:"dxa"});let c=j$1(n,"w","hRule");(c==="auto"||c==="atLeast"||c==="exact")&&(t.heightRule=c);}m(e(e$1,"w","tblHeader"))&&(t.header=true),m(e(e$1,"w","cantSplit"))&&(t.cantSplit=true);let a=e(e$1,"w","jc");if(a){let f=j$1(a,"w","val");(f==="left"||f==="center"||f==="right")&&(t.justification=f);}m(e(e$1,"w","hidden"))&&(t.hidden=true);let l$1=wt(e(e$1,"w","cnfStyle"));if(l$1&&(t.conditionalFormat=l$1),Object.keys(t).length!==0)return t}function wt(e){if(!e)return;let t={},n=j$1(e,"w","firstRow");(n==="1"||n==="true")&&(t.firstRow=true);let o=j$1(e,"w","lastRow");(o==="1"||o==="true")&&(t.lastRow=true);let r=j$1(e,"w","firstColumn");(r==="1"||r==="true")&&(t.firstColumn=true);let a=j$1(e,"w","lastColumn");(a==="1"||a==="true")&&(t.lastColumn=true);let u=j$1(e,"w","oddHBand");(u==="1"||u==="true")&&(t.oddHBand=true);let l=j$1(e,"w","evenHBand");(l==="1"||l==="true")&&(t.evenHBand=true);let f=j$1(e,"w","oddVBand");(f==="1"||f==="true")&&(t.oddVBand=true);let c=j$1(e,"w","evenVBand");(c==="1"||c==="true")&&(t.evenVBand=true);let d=j$1(e,"w","firstRowFirstColumn");(d==="1"||d==="true")&&(t.nwCell=true);let p=j$1(e,"w","firstRowLastColumn");(p==="1"||p==="true")&&(t.neCell=true);let w=j$1(e,"w","lastRowFirstColumn");(w==="1"||w==="true")&&(t.swCell=true);let T=j$1(e,"w","lastRowLastColumn");(T==="1"||T==="true")&&(t.seCell=true);let y=j$1(e,"w","val");if(y&&y.length===12&&(y[0]==="1"&&(t.firstRow=true),y[1]==="1"&&(t.lastRow=true),y[2]==="1"&&(t.firstColumn=true),y[3]==="1"&&(t.lastColumn=true),y[4]==="1"&&(t.oddVBand=true),y[5]==="1"&&(t.evenVBand=true),y[6]==="1"&&(t.oddHBand=true),y[7]==="1"&&(t.evenHBand=true),y[8]==="1"&&(t.nwCell=true),y[9]==="1"&&(t.neCell=true),y[10]==="1"&&(t.swCell=true),y[11]==="1"&&(t.seCell=true)),Object.keys(t).length!==0)return t}function yt(e$1){if(!e$1)return;let t={},n=D(e(e$1,"w","tcW"));n&&(t.width=n);let o=ne(e(e$1,"w","tcBorders"));o&&(t.borders=o);let r=oe(e(e$1,"w","tcMar"));r&&(t.margins=r);let a=re(e(e$1,"w","shd"));a&&(t.shading=a);let u=e(e$1,"w","vAlign");if(u){let y=j$1(u,"w","val");(y==="top"||y==="center"||y==="bottom")&&(t.verticalAlign=y);}let l$1=e(e$1,"w","textDirection");if(l$1){let y=j$1(l$1,"w","val");y&&(t.textDirection=y);}let f=e(e$1,"w","gridSpan");if(f){let y=l(f,"w","val");y!==void 0&&y>1&&(t.gridSpan=y);}let c=e(e$1,"w","vMerge");c&&(j$1(c,"w","val")==="restart"?t.vMerge="restart":t.vMerge="continue"),m(e(e$1,"w","tcFitText"))&&(t.fitText=true),m(e(e$1,"w","noWrap"))&&(t.noWrap=true),m(e(e$1,"w","hideMark"))&&(t.hideMark=true);let T=wt(e(e$1,"w","cnfStyle"));if(T&&(t.conditionalFormat=T),Object.keys(t).length!==0)return t}function En(e,t,n,o,r,a,u){let l=[],f=e.elements||[];for(let c of f){if(!c.name)continue;let d=c.name.split(":").pop();if(d==="p"){let p=Z(c,t,n,o,r,a,u);l.push(p);}else if(d==="tbl"){let p=xe(c,t,n,o,r,a,u);l.push(p);}}return l.length===0&&l.push({type:"paragraph",content:[]}),l}function Pn(e$1,t,n,o,r,a,u){let l={type:"tableCell",content:[]},f=e(e$1,"w","tcPr"),c=yt(f);return c&&(l.formatting=c),l.propertyChanges=Sn(f,c),l.structuralChange=Rn(f),l.content=En(e$1,t,n,o,r,a,u),l}function Bn(e$1,t,n,o,r,a,u){let l={type:"tableRow",cells:[]},f$1=e(e$1,"w","trPr"),c=ht(f$1);c&&(l.formatting=c),l.propertyChanges=kn(f$1,c),l.structuralChange=Mn(f$1);let d=f(e$1,"w","tc");for(let p of d){let w=Pn(p,t,n,o,r,a,u);l.cells.push(w);}return l}function vn(e){if(!e)return;let t=[],n=f(e,"w","gridCol");for(let o of n){let r=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 Nn(e){return e.cells.reduce((t,n)=>t+(n.formatting?.gridSpan??1),0)}function An(e){let t=Math.max(e.columnWidths?.length??0,...e.rows.map(n=>Nn(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 xe(e$1,t,n,o,r,a,u){let l={type:"table",rows:[]},f$1=e(e$1,"w","tblPr"),c=gt(f$1);c&&(l.formatting=c),l.propertyChanges=Cn(f$1,c);let d=vn(e(e$1,"w","tblGrid"));d&&(l.columnWidths=d);let p=f(e$1,"w","tr");for(let w of p){let T=Bn(w,t,n,o,r,a,u);l.rows.push(T);}return An(l),l}export{uo as A,et as B,go as C,ho as D,K as E,it as F,Io as G,Ho as H,Lo as I,Xo as J,Do as K,Oo as L,Wo as M,xn as N,Z as O,Hn as a,Y as b,Oe as c,V as d,ne as e,oe as f,re as g,be as h,Te as i,kt as j,St as k,Mt as l,Rt as m,Et as n,gt as o,Nt as p,q,Jn as r,eo as s,ro as t,io as u,Ke as v,Qe as w,ao as x,lo as y,so as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkZCYUN3EC_js=require('./chunk-ZCYUN3EC.js');var e=chunkZCYUN3EC_js.a.getCommands();function g(t){return e.setAlignment(t)}var l=e.alignLeft(),u=e.alignCenter(),x=e.alignRight(),C=e.alignJustify();function f(t,n="auto"){return e.setLineSpacing(t,n)}var S=e.singleSpacing(),L=e.oneAndHalfSpacing(),b=e.doubleSpacing();function y(t=720){return e.increaseIndent(t)}function v(t=720){return e.decreaseIndent(t)}function A(t){return e.setIndentLeft(t)}function I(t){return e.setIndentRight(t)}function h(t,n){return e.setIndentFirstLine(t,n)}var R=e.toggleBulletList(),T=e.toggleNumberedList(),P=e.increaseListLevel(),B=e.decreaseListLevel(),k=e.removeList();function E(t){return e.setSpaceBefore(t)}function F(t){return e.setSpaceAfter(t)}function H(t,n){return e.applyStyle(t,n)}var J=e.clearStyle();function N(t){return e.insertSectionBreak(t)}var O=e.removeSectionBreak();function M(t,n="left",r="none"){return e.addTabStop(t,n,r)}function j(t){return e.removeTabStop(t)}var q=e.setRtl(),w=e.setLtr(),z=e.generateTOC();exports.A=j;exports.B=q;exports.C=w;exports.D=z;exports.a=g;exports.b=l;exports.c=u;exports.d=x;exports.e=C;exports.f=f;exports.g=S;exports.h=L;exports.i=b;exports.j=y;exports.k=v;exports.l=A;exports.m=I;exports.n=h;exports.o=R;exports.p=T;exports.q=P;exports.r=B;exports.s=k;exports.t=E;exports.u=F;exports.v=H;exports.w=J;exports.x=N;exports.y=O;exports.z=M;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkWA4IJOGH_js=require('./chunk-WA4IJOGH.js'),chunkB3SVS2AF_js=require('./chunk-B3SVS2AF.js');function l(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function s(e){return e==null||!Number.isFinite(e)?"0":String(Math.round(e))}var x='xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex" xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex" xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex" xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex" xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex" xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink" xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:oel="http://schemas.microsoft.com/office/2019/extlst" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16du="http://schemas.microsoft.com/office/word/2023/wordml/word16du" xmlns:w16sdtdh="http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash" xmlns:w16sdtfl="http://schemas.microsoft.com/office/word/2024/wordml/sdtformatlock" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape"',y='mc:Ignorable="w14 w15 w16se w16cid w16 w16cex w16sdtdh w16sdtfl w16du wp14"';function R(e,t){if(!e||e.style==="none"||e.style==="nil")return "";let n=[`w:val="${e.style}"`];return e.size!==void 0&&n.push(`w:sz="${s(e.size)}"`),e.space!==void 0&&n.push(`w:space="${s(e.space)}"`),e.color&&(e.color.auto?n.push('w:color="auto"'):e.color.rgb&&n.push(`w:color="${e.color.rgb}"`),e.color.themeColor&&n.push(`w:themeColor="${e.color.themeColor}"`),e.color.themeTint&&n.push(`w:themeTint="${e.color.themeTint}"`),e.color.themeShade&&n.push(`w:themeShade="${e.color.themeShade}"`)),e.shadow&&n.push('w:shadow="true"'),e.frame&&n.push('w:frame="true"'),`<w:${t} ${n.join(" ")}/>`}function Ie(e){return `<w:headerReference ${[`w:type="${e.type}"`,`r:id="${e.rId}"`].join(" ")}/>`}function je(e){return `<w:footerReference ${[`w:type="${e.type}"`,`r:id="${e.rId}"`].join(" ")}/>`}function Be(e){if(!e)return "";let t=[];return e.position&&t.push(`<w:pos w:val="${e.position}"/>`),e.numFmt&&t.push(`<w:numFmt w:val="${e.numFmt}"/>`),e.numStart!==void 0&&t.push(`<w:numStart w:val="${e.numStart}"/>`),e.numRestart&&t.push(`<w:numRestart w:val="${e.numRestart}"/>`),t.length===0?"":`<w:footnotePr>${t.join("")}</w:footnotePr>`}function Ae(e){if(!e)return "";let t=[];return e.position&&t.push(`<w:pos w:val="${e.position}"/>`),e.numFmt&&t.push(`<w:numFmt w:val="${e.numFmt}"/>`),e.numStart!==void 0&&t.push(`<w:numStart w:val="${e.numStart}"/>`),e.numRestart&&t.push(`<w:numRestart w:val="${e.numRestart}"/>`),t.length===0?"":`<w:endnotePr>${t.join("")}</w:endnotePr>`}function Ee(e){let t=[];return e.pageWidth!==void 0&&t.push(`w:w="${s(e.pageWidth)}"`),e.pageHeight!==void 0&&t.push(`w:h="${s(e.pageHeight)}"`),e.orientation==="landscape"&&t.push('w:orient="landscape"'),t.length===0?"":`<w:pgSz ${t.join(" ")}/>`}function Xe(e){let t=[];return e.marginTop!==void 0&&t.push(`w:top="${s(e.marginTop)}"`),e.marginRight!==void 0&&t.push(`w:right="${s(e.marginRight)}"`),e.marginBottom!==void 0&&t.push(`w:bottom="${s(e.marginBottom)}"`),e.marginLeft!==void 0&&t.push(`w:left="${s(e.marginLeft)}"`),e.headerDistance!==void 0&&t.push(`w:header="${s(e.headerDistance)}"`),e.footerDistance!==void 0&&t.push(`w:footer="${s(e.footerDistance)}"`),e.gutter!==void 0&&t.push(`w:gutter="${s(e.gutter)}"`),t.length===0?"":`<w:pgMar ${t.join(" ")}/>`}function De(e){if(!e.columnCount&&!e.columns?.length)return "";let t=[];e.columnCount!==void 0&&e.columnCount>1&&t.push(`w:num="${s(e.columnCount)}"`),e.columnSpace!==void 0&&t.push(`w:space="${s(e.columnSpace)}"`),e.equalWidth!==void 0&&t.push(`w:equalWidth="${e.equalWidth?"1":"0"}"`),e.separator&&t.push('w:sep="1"');let n="";return e.columns&&e.columns.length>0&&(n=e.columns.map(i=>{let o=[];return i.width!==void 0&&o.push(`w:w="${s(i.width)}"`),i.space!==void 0&&o.push(`w:space="${s(i.space)}"`),`<w:col ${o.join(" ")}/>`}).join("")),t.length===0&&!n?"":`<w:cols${t.length>0?" "+t.join(" "):""}>${n}</w:cols>`}function Me(e){if(!e.lineNumbers)return "";let t=e.lineNumbers,n=[];return t.countBy!==void 0&&n.push(`w:countBy="${s(t.countBy)}"`),t.start!==void 0&&n.push(`w:start="${s(t.start)}"`),t.distance!==void 0&&n.push(`w:distance="${s(t.distance)}"`),t.restart&&n.push(`w:restart="${t.restart}"`),n.length===0?"":`<w:lnNumType ${n.join(" ")}/>`}function Le(e){if(!e.pageBorders)return "";let t=e.pageBorders,n=[],r=[];if(t.display&&n.push(`w:display="${t.display}"`),t.offsetFrom&&n.push(`w:offsetFrom="${t.offsetFrom}"`),t.zOrder&&n.push(`w:zOrder="${t.zOrder}"`),t.top){let o=R(t.top,"top");o&&r.push(o);}if(t.left){let o=R(t.left,"left");o&&r.push(o);}if(t.bottom){let o=R(t.bottom,"bottom");o&&r.push(o);}if(t.right){let o=R(t.right,"right");o&&r.push(o);}return r.length===0?"":`<w:pgBorders${n.length>0?" "+n.join(" "):""}>${r.join("")}</w:pgBorders>`}function We(e){if(!e.docGrid)return "";let t=e.docGrid,n=[];return t.type&&n.push(`w:type="${t.type}"`),t.linePitch!==void 0&&n.push(`w:linePitch="${t.linePitch}"`),t.charSpace!==void 0&&n.push(`w:charSpace="${t.charSpace}"`),n.length===0?"":`<w:docGrid ${n.join(" ")}/>`}function I(e){if(!e)return "";let t=[];if(e.headerReferences)for(let p of e.headerReferences)t.push(Ie(p));if(e.footerReferences)for(let p of e.footerReferences)t.push(je(p));let n=Be(e.footnotePr);n&&t.push(n);let r=Ae(e.endnotePr);r&&t.push(r),e.sectionStart&&t.push(`<w:type w:val="${e.sectionStart}"/>`);let i=Ee(e);i&&t.push(i);let o=Xe(e);if(o&&t.push(o),e.paperSrcFirst!==void 0||e.paperSrcOther!==void 0){let p=[];e.paperSrcFirst!==void 0&&p.push(`w:first="${e.paperSrcFirst}"`),e.paperSrcOther!==void 0&&p.push(`w:other="${e.paperSrcOther}"`),t.push(`<w:paperSrc ${p.join(" ")}/>`);}let a=Le(e);a&&t.push(a);let c=Me(e);c&&t.push(c);let u=De(e);u&&t.push(u),e.verticalAlign&&t.push(`<w:vAlign w:val="${e.verticalAlign}"/>`),e.titlePg&&t.push("<w:titlePg/>"),e.bidi&&t.push("<w:bidi/>");let f=We(e);return f&&t.push(f),e.evenAndOddHeaders&&t.push("<w:evenAndOddHeaders/>"),t.length===0?"":`<w:sectPr>${t.join("")}</w:sectPr>`}function He(e,t){if(!e||e.style==="none"||e.style==="nil")return "";let n=[`w:val="${e.style}"`];return e.size!==void 0&&n.push(`w:sz="${s(e.size)}"`),e.space!==void 0&&n.push(`w:space="${s(e.space)}"`),e.color&&(e.color.auto?n.push('w:color="auto"'):e.color.rgb&&n.push(`w:color="${e.color.rgb}"`),e.color.themeColor&&n.push(`w:themeColor="${e.color.themeColor}"`),e.color.themeTint&&n.push(`w:themeTint="${e.color.themeTint}"`),e.color.themeShade&&n.push(`w:themeShade="${e.color.themeShade}"`)),e.shadow&&n.push('w:shadow="true"'),e.frame&&n.push('w:frame="true"'),`<w:${t} ${n.join(" ")}/>`}var Oe=["top","left","bottom","right","between","bar"];function _(e){if(!e)return "";let t=[];for(let n of Oe){let r=He(e[n],n);r&&t.push(r);}return t.length===0?"":`<w:pBdr>${t.join("")}</w:pBdr>`}function V(e){if(!e)return "";let t=[];return e.pattern?t.push(`w:val="${e.pattern}"`):t.push('w:val="clear"'),e.color?.rgb?t.push(`w:color="${e.color.rgb}"`):e.color?.auto&&t.push('w:color="auto"'),e.fill?.rgb?t.push(`w:fill="${e.fill.rgb}"`):e.fill?.auto&&t.push('w:fill="auto"'),e.fill?.themeColor&&t.push(`w:themeFill="${e.fill.themeColor}"`),e.fill?.themeTint&&t.push(`w:themeFillTint="${e.fill.themeTint}"`),e.fill?.themeShade&&t.push(`w:themeFillShade="${e.fill.themeShade}"`),t.length===0?"":`<w:shd ${t.join(" ")}/>`}function U(e){return !e||e.length===0?"":`<w:tabs>${e.map(n=>{let r=[`w:val="${n.alignment}"`,`w:pos="${s(n.position)}"`];return n.leader&&n.leader!=="none"&&r.push(`w:leader="${n.leader}"`),`<w:tab ${r.join(" ")}/>`}).join("")}</w:tabs>`}function Y(e){let t=[];return e.spaceBefore!==void 0&&t.push(`w:before="${s(e.spaceBefore)}"`),e.spaceAfter!==void 0&&t.push(`w:after="${s(e.spaceAfter)}"`),e.lineSpacing!==void 0&&t.push(`w:line="${s(e.lineSpacing)}"`),e.lineSpacingRule&&t.push(`w:lineRule="${e.lineSpacingRule}"`),e.beforeAutospacing&&t.push('w:beforeAutospacing="1"'),e.afterAutospacing&&t.push('w:afterAutospacing="1"'),t.length===0?"":`<w:spacing ${t.join(" ")}/>`}function Z(e){let t=[];return e.indentLeft!==void 0&&t.push(`w:left="${s(e.indentLeft)}"`),e.indentRight!==void 0&&t.push(`w:right="${s(e.indentRight)}"`),e.indentFirstLine!==void 0&&(e.hangingIndent?t.push(`w:hanging="${s(Math.abs(e.indentFirstLine))}"`):e.indentFirstLine!==0&&t.push(`w:firstLine="${s(e.indentFirstLine)}"`)),t.length===0?"":`<w:ind ${t.join(" ")}/>`}function J(e){if(!e)return "";let t=[];return e.ilvl!==void 0&&t.push(`<w:ilvl w:val="${s(e.ilvl)}"/>`),e.numId!==void 0&&t.push(`<w:numId w:val="${s(e.numId)}"/>`),t.length===0?"":`<w:numPr>${t.join("")}</w:numPr>`}function K(e){if(!e)return "";let t=[];return e.width!==void 0&&t.push(`w:w="${s(e.width)}"`),e.height!==void 0&&t.push(`w:h="${s(e.height)}"`),e.hAnchor&&t.push(`w:hAnchor="${e.hAnchor}"`),e.vAnchor&&t.push(`w:vAnchor="${e.vAnchor}"`),e.x!==void 0&&t.push(`w:x="${s(e.x)}"`),e.y!==void 0&&t.push(`w:y="${s(e.y)}"`),e.xAlign&&t.push(`w:xAlign="${e.xAlign}"`),e.yAlign&&t.push(`w:yAlign="${e.yAlign}"`),e.wrap&&t.push(`w:wrap="${e.wrap}"`),t.length===0?"":`<w:framePr ${t.join(" ")}/>`}function ee(e){let t=[`w:id="${e.id}"`,`w:name="${l(e.name)}"`];return e.colFirst!==void 0&&t.push(`w:colFirst="${e.colFirst}"`),e.colLast!==void 0&&t.push(`w:colLast="${e.colLast}"`),`<w:bookmarkStart ${t.join(" ")}/>`}function te(e){return `<w:bookmarkEnd w:id="${e.id}"/>`}function H(e){let t=[];e.rId&&t.push(`r:id="${e.rId}"`),e.anchor&&t.push(`w:anchor="${l(e.anchor)}"`),e.tooltip&&t.push(`w:tooltip="${l(e.tooltip)}"`),e.target&&t.push(`w:tgtFrame="${l(e.target)}"`),e.history===false&&t.push('w:history="0"'),e.docLocation&&t.push(`w:docLocation="${l(e.docLocation)}"`);let n=e.children.map(i=>i.type==="run"?P(i):i.type==="bookmarkStart"?ee(i):i.type==="bookmarkEnd"?te(i):"").join("");return t.length===0&&!e.href?n:`<w:hyperlink${t.length>0?" "+t.join(" "):""}>${n}</w:hyperlink>`}function ne(e){let t=[],n=e.content.find(c=>c.type==="run"),r=n?.formatting?S(n.formatting):"",i=['w:fldCharType="begin"'];e.fldLock&&i.push('w:fldLock="true"'),t.push(`<w:r>${r}<w:fldChar ${i.join(" ")}/></w:r>`);let a=e.instruction.startsWith(" ")||e.instruction.endsWith(" ")||e.instruction.includes(" ")?' xml:space="preserve"':"";t.push(`<w:r>${r}<w:instrText${a}>${l(e.instruction)}</w:instrText></w:r>`),t.push(`<w:r>${r}<w:fldChar w:fldCharType="separate"/></w:r>`);for(let c of e.content)c.type==="run"&&t.push(P(c));return t.push(`<w:r>${r}<w:fldChar w:fldCharType="end"/></w:r>`),t.join("")}function re(e){let t=[],n=e.fieldResult?.[0]?.formatting,r=n?S(n):"",i=['w:fldCharType="begin"'];if(e.fldLock&&i.push('w:fldLock="true"'),t.push(`<w:r>${r}<w:fldChar ${i.join(" ")}/></w:r>`),e.fieldCode.length>0)t.push(...e.fieldCode.map(o=>P(o)));else {let a=e.instruction.startsWith(" ")||e.instruction.endsWith(" ")||e.instruction.includes(" ")?' xml:space="preserve"':"";t.push(`<w:r>${r}<w:instrText${a}>${l(e.instruction)}</w:instrText></w:r>`);}return t.push(`<w:r>${r}<w:fldChar w:fldCharType="separate"/></w:r>`),t.push(...e.fieldResult.map(o=>P(o))),t.push(`<w:r>${r}<w:fldChar w:fldCharType="end"/></w:r>`),t.join("")}function ie(e){let t=e.properties,n=[];switch(t.alias&&n.push(`<w:alias w:val="${l(t.alias)}"/>`),t.tag&&n.push(`<w:tag w:val="${l(t.tag)}"/>`),t.lock&&t.lock!=="unlocked"&&n.push(`<w:lock w:val="${t.lock}"/>`),t.showingPlaceholder&&n.push("<w:showingPlcHdr/>"),t.sdtType){case "plainText":n.push("<w:text/>");break;case "date":t.dateFormat?n.push(`<w:date w:fullDate="${l(t.dateFormat)}"/>`):n.push("<w:date/>");break;case "dropDownList":{let a=(t.listItems??[]).map(c=>`<w:listItem w:displayText="${l(c.displayText)}" w:value="${l(c.value)}"/>`).join("");n.push(`<w:dropDownList>${a}</w:dropDownList>`);break}case "comboBox":{let a=(t.listItems??[]).map(c=>`<w:listItem w:displayText="${l(c.displayText)}" w:value="${l(c.value)}"/>`).join("");n.push(`<w:comboBox>${a}</w:comboBox>`);break}case "checkbox":n.push(`<w14:checkbox><w14:checked w14:val="${t.checked?"1":"0"}"/></w14:checkbox>`);break;case "picture":n.push("<w:picture/>");break}let r=e.content.map(a=>{switch(a.type){case "run":return P(a);case "hyperlink":return H(a);case "simpleField":return ne(a);case "complexField":return re(a);case "inlineSdt":return ie(a);case "mathEquation":return a.ommlXml||"";default:return a}}).join(""),i=t.rawPropertiesXml??`<w:sdtPr>${n.join("")}</w:sdtPr>`,o=t.rawEndPropertiesXml??"";return `<w:sdt>${i}${o}<w:sdtContent>${r}</w:sdtContent></w:sdt>`}function Q(e,t){let n=[`w:id="${t.id}"`,`w:name="${l(t.name)}"`];return `<w:${e} ${n.join(" ")}/>`}function j(e,t){let n=t.info,r=Number.isInteger(n.id)&&n.id>=0?n.id:0,i=typeof n.author=="string"?n.author.trim():"",o=i.length>0?i:"Unknown",a=typeof n.date=="string"?n.date.trim():void 0,c=[`w:id="${r}"`,`w:author="${l(o)}"`];a&&c.push(`w:date="${l(a)}"`);let u=t.content.map(f=>{if(f.type==="run"){let p=P(f),w=f.content.some(m=>m.type==="drawing");return (e==="del"||e==="moveFrom")&&!w?p.replace(/<w:t\b/g,"<w:delText").replace(/<\/w:t>/g,"</w:delText>").replace(/<w:instrText\b/g,"<w:delInstrText").replace(/<\/w:instrText>/g,"</w:delInstrText>"):p}return f.type==="hyperlink"?H(f):""}).join("");return `<w:${e} ${c.join(" ")}>${u}</w:${e}>`}function oe(e){switch(e.type){case "run":return P(e);case "hyperlink":return H(e);case "bookmarkStart":return ee(e);case "bookmarkEnd":return te(e);case "simpleField":return ne(e);case "complexField":return re(e);case "inlineSdt":return ie(e);case "commentRangeStart":return `<w:commentRangeStart w:id="${e.id}"/>`;case "commentRangeEnd":return `<w:commentRangeEnd w:id="${e.id}"/><w:r><w:rPr><w:rStyle w:val="CommentReference"/></w:rPr><w:commentReference w:id="${e.id}"/></w:r>`;case "insertion":return j("ins",e);case "deletion":return j("del",e);case "moveFrom":return j("moveFrom",e);case "moveTo":return j("moveTo",e);case "moveFromRangeStart":return Q("moveFromRangeStart",e);case "moveFromRangeEnd":return `<w:moveFromRangeEnd w:id="${e.id}"/>`;case "moveToRangeStart":return Q("moveToRangeStart",e);case "moveToRangeEnd":return `<w:moveToRangeEnd w:id="${e.id}"/>`;case "mathEquation":return e.ommlXml||"";default:return ""}}function se(e){let t=Number.isInteger(e.id)&&e.id>=0?e.id:0,n=typeof e.author=="string"&&e.author.length>0?e.author:"Unknown",r=[`w:id="${t}"`,`w:author="${l(n)}"`],i=typeof e.date=="string"&&e.date.length>0?e.date:void 0;return i&&r.push(`w:date="${l(i)}"`),r.join(" ")}function Ne(e,t,n){let r=[];if(t&&r.push(`<w:ins ${se(t)}/>`),n&&r.push(`<w:del ${se(n)}/>`),e?.runProperties){let i=S(e.runProperties);if(i)if(i.startsWith("<w:rPr>")&&i.endsWith("</w:rPr>")){let o=i.slice(7,-8);o.length>0&&r.push(o);}else i.startsWith("<w:rPr/>")||r.push(i);}return r.length===0?"":`<w:rPr>${r.join("")}</w:rPr>`}function ae(e,t,n,r,i){let o=[];if(e){e.styleId&&o.push(`<w:pStyle w:val="${l(e.styleId)}"/>`),e.keepNext===true?o.push("<w:keepNext/>"):e.keepNext===false&&o.push('<w:keepNext w:val="0"/>'),e.keepLines===true?o.push("<w:keepLines/>"):e.keepLines===false&&o.push('<w:keepLines w:val="0"/>'),e.contextualSpacing===true?o.push("<w:contextualSpacing/>"):e.contextualSpacing===false&&o.push('<w:contextualSpacing w:val="0"/>'),e.pageBreakBefore===true?o.push("<w:pageBreakBefore/>"):e.pageBreakBefore===false&&o.push('<w:pageBreakBefore w:val="0"/>');let a=K(e.frame);a&&o.push(a),e.widowControl===false?o.push('<w:widowControl w:val="0"/>'):e.widowControl===true&&o.push("<w:widowControl/>");let u=e.numPrFromStyle!=null&&JSON.stringify(e.numPr)===JSON.stringify(e.numPrFromStyle)?"":J(e.numPr);u&&o.push(u);let f=_(e.borders);f&&o.push(f);let p=V(e.shading);p&&o.push(p);let w=U(e.tabs);w&&o.push(w),e.suppressLineNumbers===true?o.push("<w:suppressLineNumbers/>"):e.suppressLineNumbers===false&&o.push('<w:suppressLineNumbers w:val="0"/>'),e.suppressAutoHyphens===true?o.push("<w:suppressAutoHyphens/>"):e.suppressAutoHyphens===false&&o.push('<w:suppressAutoHyphens w:val="0"/>');let m=Y(e);m&&o.push(m);let C=Z(e);C&&o.push(C),e.bidi===true?o.push("<w:bidi/>"):e.bidi===false&&o.push('<w:bidi w:val="0"/>'),e.alignment&&o.push(`<w:jc w:val="${e.alignment}"/>`),e.outlineLevel!==void 0&&o.push(`<w:outlineLvl w:val="${e.outlineLevel}"/>`);}if(!i?.baseOnly){let a=Ne(e,n??void 0,r??void 0);if(a&&o.push(a),i?.sectionProperties){let c=I(i.sectionProperties);c&&o.push(c);}t&&t.length>0&&o.push(Ge(t[0]));}return o.length===0?"":`<w:pPr>${o.join("")}</w:pPr>`}function qe(e){return !e.startsWith("<w:pPr>")||!e.endsWith("</w:pPr>")?"":e.slice(7,-8)}function Ge(e){let t=Number.isInteger(e.info.id)&&e.info.id>=0?e.info.id:0,n=typeof e.info.author=="string"?e.info.author.trim():"",r=n.length>0?n:"Unknown",i=typeof e.info.date=="string"?e.info.date.trim():void 0,o=[`w:id="${t}"`,`w:author="${l(r)}"`];i&&o.push(`w:date="${l(i)}"`);let a=ae(e.previousFormatting,void 0,void 0,void 0,{baseOnly:true})||"<w:pPr/>",c=qe(a),u=c.length>0?`<w:pPr>${c}</w:pPr>`:"<w:pPr/>";return `<w:pPrChange ${o.join(" ")}>${u}</w:pPrChange>`}function b(e){let t=[],n=[];e.paraId&&n.push(`w14:paraId="${e.paraId}"`),e.textId&&n.push(`w14:textId="${e.textId}"`);let r=n.length>0?" "+n.join(" "):"",i=ae(e.formatting,e.propertyChanges,e.pPrIns,e.pPrDel,e.sectionProperties?{sectionProperties:e.sectionProperties}:void 0);i&&t.push(i);let o=!!e.renderedPageBreakBefore;for(let a of e.content){let c=oe(a);if(c){if(o){let u=_e(c);u&&(c=u,o=false);}t.push(c);}}return `<w:p${r}>${t.join("")}</w:p>`}function _e(e){let t=/<w:r(?=[\s>/])[^>]*>/;return t.test(e)?e.replace(t,n=>`${n}<w:lastRenderedPageBreak/>`):null}var le=1e5;function N(){le=1e5;}function ce(e){return e!=null&&e!==""&&e!==0?String(e):String(le++)}function O(e){if(!e)return "";if(e.rgb)return `<a:srgbClr val="${e.rgb.replace("#","")}"/>`;if(e.themeColor){let t=`<a:schemeClr val="${e.themeColor}"`;return e.themeTint?t+=`><a:tint val="${e.themeTint}"/></a:schemeClr>`:e.themeShade?t+=`><a:shade val="${e.themeShade}"/></a:schemeClr>`:t+="/>",t}return ""}function Ve(e){if(!e||e.type==="none")return "<a:noFill/>";if(e.type==="solid"&&e.color)return `<a:solidFill>${O(e.color)}</a:solidFill>`;if(e.type==="gradient"&&e.gradient){let t=e.gradient,n=t.stops.map(i=>`<a:gs pos="${i.position}">${O(i.color)}</a:gs>`).join(""),r=t.type==="linear"?`<a:lin ang="${(t.angle||0)*6e4}" scaled="1"/>`:"";return `<a:gradFill><a:gsLst>${n}</a:gsLst>${r}</a:gradFill>`}return ""}function pe(e){if(!e)return "";let t=[];e.width!=null&&t.push(`w="${e.width}"`),e.cap&&t.push(`cap="${e.cap}"`);let n=[];return e.color&&n.push(`<a:solidFill>${O(e.color)}</a:solidFill>`),e.style&&e.style!=="solid"&&n.push(`<a:prstDash val="${e.style}"/>`),e.headEnd&&n.push(`<a:headEnd type="${e.headEnd.type}"${e.headEnd.width?` w="${e.headEnd.width}"`:""}${e.headEnd.length?` len="${e.headEnd.length}"`:""}/>`),e.tailEnd&&n.push(`<a:tailEnd type="${e.tailEnd.type}"${e.tailEnd.width?` w="${e.tailEnd.width}"`:""}${e.tailEnd.length?` len="${e.tailEnd.length}"`:""}/>`),n.length===0&&t.length===0?"":`<a:ln${t.length?" "+t.join(" "):""}>${n.join("")}</a:ln>`}function ue(e){let t=[],n=e.horizontal;t.push(`<wp:positionH relativeFrom="${n.relativeTo}">`),n.alignment?t.push(`<wp:align>${n.alignment}</wp:align>`):t.push(`<wp:posOffset>${s(n.posOffset)}</wp:posOffset>`),t.push("</wp:positionH>");let r=e.vertical;return t.push(`<wp:positionV relativeFrom="${r.relativeTo}">`),r.alignment?t.push(`<wp:align>${r.alignment}</wp:align>`):t.push(`<wp:posOffset>${s(r.posOffset)}</wp:posOffset>`),t.push("</wp:positionV>"),t.join("")}function fe(e){let t=e.wrapText?` wrapText="${e.wrapText}"`:' wrapText="bothSides"';switch(e.type){case "square":return `<wp:wrapSquare${t}/>`;case "tight":return `<wp:wrapTight${t}><wp:wrapPolygon edited="0"><wp:start x="0" y="0"/><wp:lineTo x="0" y="21600"/><wp:lineTo x="21600" y="21600"/><wp:lineTo x="21600" y="0"/><wp:lineTo x="0" y="0"/></wp:wrapPolygon></wp:wrapTight>`;case "through":return `<wp:wrapThrough${t}><wp:wrapPolygon edited="0"><wp:start x="0" y="0"/><wp:lineTo x="0" y="21600"/><wp:lineTo x="21600" y="21600"/><wp:lineTo x="21600" y="0"/><wp:lineTo x="0" y="0"/></wp:wrapPolygon></wp:wrapThrough>`;case "topAndBottom":return "<wp:wrapTopAndBottom/>";case "behind":case "inFront":return "<wp:wrapNone/>";default:return "<wp:wrapNone/>"}}function Ue(e,t){let n=e.size.width,r=e.size.height,i=e.rId||"rId1",o=t,a=e.filename||`image${o}`,c="";e.transform?.rotation&&(c+=` rot="${Math.round(e.transform.rotation*6e4)}"`),e.transform?.flipH&&(c+=' flipH="1"'),e.transform?.flipV&&(c+=' flipV="1"');let u=e.opacity!==void 0&&e.opacity<1?`<a:alphaModFix amt="${Math.round(Math.max(0,Math.min(1,e.opacity))*1e5)}"/>`:"",f=u?`<a:blip r:embed="${i}">${u}</a:blip>`:`<a:blip r:embed="${i}"/>`,p=[];e.crop?.left&&p.push(`l="${Math.round(e.crop.left*1e5)}"`),e.crop?.top&&p.push(`t="${Math.round(e.crop.top*1e5)}"`),e.crop?.right&&p.push(`r="${Math.round(e.crop.right*1e5)}"`),e.crop?.bottom&&p.push(`b="${Math.round(e.crop.bottom*1e5)}"`);let w=p.length>0?`<a:srcRect ${p.join(" ")}/>`:"";return ['<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">','<a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture">','<pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture">',"<pic:nvPicPr>",`<pic:cNvPr id="${o}" name="${l(a)}"${e.alt?` descr="${l(e.alt)}"`:""}/>`,"<pic:cNvPicPr/>","</pic:nvPicPr>","<pic:blipFill>",f,w,"<a:stretch><a:fillRect/></a:stretch>","</pic:blipFill>","<pic:spPr>",`<a:xfrm${c}>`,'<a:off x="0" y="0"/>',`<a:ext cx="${s(n)}" cy="${s(r)}"/>`,"</a:xfrm>",'<a:prstGeom prst="rect"><a:avLst/></a:prstGeom>',e.outline?pe(e.outline):"","</pic:spPr>","</pic:pic>","</a:graphicData>","</a:graphic>"].join("")}function he(e){let t=e.image,n=t.wrap.type!=="inline",r=t.size.width,i=t.size.height,o=t.wrap.distT??0,a=t.wrap.distB??0,c=t.wrap.distL??0,u=t.wrap.distR??0,f=t.padding?.left??0,p=t.padding?.top??0,w=t.padding?.right??0,m=t.padding?.bottom??0,C=`<wp:effectExtent l="${s(f)}" t="${s(p)}" r="${s(w)}" b="${s(m)}"/>`,g=ce(t.id),E=t.title||t.filename||`Picture ${g}`,z=Ue(t,g);if(!n)return ["<w:drawing>",`<wp:inline distT="${s(o)}" distB="${s(a)}" distL="${s(c)}" distR="${s(u)}">`,`<wp:extent cx="${s(r)}" cy="${s(i)}"/>`,C,`<wp:docPr id="${g}" name="${l(E)}"${t.alt?` descr="${l(t.alt)}"`:""}${t.decorative?' hidden="1"':""}/>`,'<wp:cNvGraphicFramePr><a:graphicFrameLocks xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" noChangeAspect="1"/></wp:cNvGraphicFramePr>',z,"</wp:inline>","</w:drawing>"].join("");let X=t.wrap.type==="behind"?"1":"0",D=t.position?ue(t.position):'<wp:positionH relativeFrom="column"><wp:posOffset>0</wp:posOffset></wp:positionH><wp:positionV relativeFrom="paragraph"><wp:posOffset>0</wp:posOffset></wp:positionV>',M=fe(t.wrap);return ["<w:drawing>",`<wp:anchor distT="${s(o)}" distB="${s(a)}" distL="${s(c)}" distR="${s(u)}" simplePos="0" relativeHeight="251658240" behindDoc="${X}" locked="0" layoutInCell="${t.layoutInCell===false?"0":"1"}" allowOverlap="${t.allowOverlap===false?"0":"1"}">`,'<wp:simplePos x="0" y="0"/>',D,`<wp:extent cx="${s(r)}" cy="${s(i)}"/>`,C,M,`<wp:docPr id="${g}" name="${l(E)}"${t.alt?` descr="${l(t.alt)}"`:""}/>`,'<wp:cNvGraphicFramePr><a:graphicFrameLocks xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" noChangeAspect="1"/></wp:cNvGraphicFramePr>',z,"</wp:anchor>","</w:drawing>"].join("")}function Ye(e){return e.map(t=>b(t)).join("")}function de(e){let t=e.shape,n=t.size.width,r=t.size.height,i=t.shapeType==="textBox",o=t.wrap&&t.wrap.type!=="inline",a=t.wrap?.distT??0,c=t.wrap?.distB??0,u=t.wrap?.distL??0,f=t.wrap?.distR??0,p=ce(t.id),w=t.name||(i?`TextBox ${p}`:`Shape ${p}`),m="";t.transform?.rotation&&(m+=` rot="${Math.round(t.transform.rotation*6e4)}"`),t.transform?.flipH&&(m+=' flipH="1"'),t.transform?.flipV&&(m+=' flipV="1"');let C=["<wps:spPr>",`<a:xfrm${m}>`,'<a:off x="0" y="0"/>',`<a:ext cx="${s(n)}" cy="${s(r)}"/>`,"</a:xfrm>",`<a:prstGeom prst="${t.shapeType==="textBox"?"rect":t.shapeType}"><a:avLst/></a:prstGeom>`,Ve(t.fill),pe(t.outline),"</wps:spPr>"].join(""),g="";if(t.textBody){let d=t.textBody,$=['rot="0"','vert="horz"'];d.anchor&&$.push(`anchor="${d.anchor==="middle"?"ctr":d.anchor}"`),d.anchorCenter&&$.push('anchorCtr="1"'),d.margins&&(d.margins.left!=null&&$.push(`lIns="${s(d.margins.left)}"`),d.margins.top!=null&&$.push(`tIns="${s(d.margins.top)}"`),d.margins.right!=null&&$.push(`rIns="${s(d.margins.right)}"`),d.margins.bottom!=null&&$.push(`bIns="${s(d.margins.bottom)}"`)),i?g=["<wps:txbx><w:txbxContent>",Ye(d.content),"</w:txbxContent></wps:txbx>",`<wps:bodyPr ${$.join(" ")}/>`].join(""):g=[`<wps:bodyPr ${$.join(" ")}/>`].join("");}let z=['<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">','<a:graphicData uri="http://schemas.microsoft.com/office/word/2010/wordprocessingShape">',["<wps:wsp>",`<wps:cNvSpPr${i?' txBox="1"':""}/>`,C,g,"</wps:wsp>"].join(""),"</a:graphicData>","</a:graphic>"].join("");if(!o)return ["<w:drawing>",`<wp:inline distT="${s(a)}" distB="${s(c)}" distL="${s(u)}" distR="${s(f)}">`,`<wp:extent cx="${s(n)}" cy="${s(r)}"/>`,'<wp:effectExtent l="0" t="0" r="0" b="0"/>',`<wp:docPr id="${p}" name="${l(w)}"/>`,"<wp:cNvGraphicFramePr/>",z,"</wp:inline>","</w:drawing>"].join("");let X=t.wrap?.type==="behind"?"1":"0",D=t.position?ue(t.position):'<wp:positionH relativeFrom="column"><wp:posOffset>0</wp:posOffset></wp:positionH><wp:positionV relativeFrom="paragraph"><wp:posOffset>0</wp:posOffset></wp:positionV>',M=fe(t.wrap);return ["<w:drawing>",`<wp:anchor distT="${s(a)}" distB="${s(c)}" distL="${s(u)}" distR="${s(f)}" simplePos="0" relativeHeight="251658240" behindDoc="${X}" locked="0" layoutInCell="1" allowOverlap="1">`,'<wp:simplePos x="0" y="0"/>',D,`<wp:extent cx="${s(n)}" cy="${s(r)}"/>`,'<wp:effectExtent l="0" t="0" r="0" b="0"/>',M,`<wp:docPr id="${p}" name="${l(w)}"/>`,"<wp:cNvGraphicFramePr/>",z,"</wp:anchor>","</w:drawing>"].join("")}var Ze=new Set(["black","blue","cyan","darkBlue","darkCyan","darkGray","darkGreen","darkMagenta","darkRed","darkYellow","green","lightGray","magenta","red","white","yellow"]);function Je(e){if(!e)return "";let t=[];return e.auto?t.push('w:val="auto"'):e.rgb&&t.push(`w:val="${e.rgb}"`),e.themeColor&&t.push(`w:themeColor="${e.themeColor}"`),e.themeTint&&t.push(`w:themeTint="${e.themeTint}"`),e.themeShade&&t.push(`w:themeShade="${e.themeShade}"`),t.length===0?"":`<w:color ${t.join(" ")}/>`}function Ke(e){if(!e)return "";let t=[];return e.pattern?t.push(`w:val="${e.pattern}"`):t.push('w:val="clear"'),e.color?.rgb?t.push(`w:color="${e.color.rgb}"`):e.color?.auto&&t.push('w:color="auto"'),e.fill?.rgb?t.push(`w:fill="${e.fill.rgb}"`):e.fill?.auto&&t.push('w:fill="auto"'),e.fill?.themeColor&&t.push(`w:themeFill="${e.fill.themeColor}"`),e.fill?.themeTint&&t.push(`w:themeFillTint="${e.fill.themeTint}"`),e.fill?.themeShade&&t.push(`w:themeFillShade="${e.fill.themeShade}"`),t.length===0?"":`<w:shd ${t.join(" ")}/>`}function S(e){if(!e)return "";let t=[];if(e.styleId&&t.push(`<w:rStyle w:val="${l(e.styleId)}"/>`),e.fontFamily){let i=[];e.fontFamily.ascii&&i.push(`w:ascii="${l(e.fontFamily.ascii)}"`),e.fontFamily.hAnsi&&i.push(`w:hAnsi="${l(e.fontFamily.hAnsi)}"`),e.fontFamily.eastAsia&&i.push(`w:eastAsia="${l(e.fontFamily.eastAsia)}"`),e.fontFamily.cs&&i.push(`w:cs="${l(e.fontFamily.cs)}"`),e.fontFamily.asciiTheme&&i.push(`w:asciiTheme="${e.fontFamily.asciiTheme}"`),e.fontFamily.hAnsiTheme&&i.push(`w:hAnsiTheme="${e.fontFamily.hAnsiTheme}"`),e.fontFamily.eastAsiaTheme&&i.push(`w:eastAsiaTheme="${e.fontFamily.eastAsiaTheme}"`),e.fontFamily.csTheme&&i.push(`w:csTheme="${e.fontFamily.csTheme}"`),i.length>0&&t.push(`<w:rFonts ${i.join(" ")}/>`);}e.bold===true?t.push("<w:b/>"):e.bold===false&&t.push('<w:b w:val="0"/>'),e.boldCs===true?t.push("<w:bCs/>"):e.boldCs===false&&t.push('<w:bCs w:val="0"/>'),e.italic===true?t.push("<w:i/>"):e.italic===false&&t.push('<w:i w:val="0"/>'),e.italicCs===true?t.push("<w:iCs/>"):e.italicCs===false&&t.push('<w:iCs w:val="0"/>'),e.allCaps===true?t.push("<w:caps/>"):e.allCaps===false&&t.push('<w:caps w:val="0"/>'),e.smallCaps===true?t.push("<w:smallCaps/>"):e.smallCaps===false&&t.push('<w:smallCaps w:val="0"/>'),e.strike===true?t.push("<w:strike/>"):e.strike===false&&t.push('<w:strike w:val="0"/>'),e.doubleStrike===true?t.push("<w:dstrike/>"):e.doubleStrike===false&&t.push('<w:dstrike w:val="0"/>'),e.outline===true?t.push("<w:outline/>"):e.outline===false&&t.push('<w:outline w:val="0"/>'),e.shadow===true?t.push("<w:shadow/>"):e.shadow===false&&t.push('<w:shadow w:val="0"/>'),e.emboss===true?t.push("<w:emboss/>"):e.emboss===false&&t.push('<w:emboss w:val="0"/>'),e.imprint===true?t.push("<w:imprint/>"):e.imprint===false&&t.push('<w:imprint w:val="0"/>'),e.hidden===true?t.push("<w:vanish/>"):e.hidden===false&&t.push('<w:vanish w:val="0"/>');let n=Je(e.color);if(n&&t.push(n),e.spacing!==void 0&&t.push(`<w:spacing w:val="${s(e.spacing)}"/>`),e.scale!==void 0&&t.push(`<w:w w:val="${s(e.scale)}"/>`),e.kerning!==void 0&&t.push(`<w:kern w:val="${s(e.kerning)}"/>`),e.position!==void 0&&t.push(`<w:position w:val="${s(e.position)}"/>`),e.fontSize!==void 0&&t.push(`<w:sz w:val="${s(e.fontSize)}"/>`),e.fontSizeCs!==void 0&&t.push(`<w:szCs w:val="${s(e.fontSizeCs)}"/>`),e.highlight&&e.highlight!=="none"){if(Ze.has(e.highlight))t.push(`<w:highlight w:val="${e.highlight}"/>`);else if(!e.shading){let i=e.highlight.replace(/^#/,"");/^[0-9a-fA-F]{6}$/.test(i)&&t.push(`<w:shd w:val="clear" w:color="auto" w:fill="${i}"/>`);}}if(e.underline){let i=[`w:val="${e.underline.style}"`];e.underline.color&&(e.underline.color.rgb&&i.push(`w:color="${e.underline.color.rgb}"`),e.underline.color.themeColor&&i.push(`w:themeColor="${e.underline.color.themeColor}"`),e.underline.color.themeTint&&i.push(`w:themeTint="${e.underline.color.themeTint}"`),e.underline.color.themeShade&&i.push(`w:themeShade="${e.underline.color.themeShade}"`)),t.push(`<w:u ${i.join(" ")}/>`);}e.effect&&e.effect!=="none"&&t.push(`<w:effect w:val="${e.effect}"/>`),e.emphasisMark&&e.emphasisMark!=="none"&&t.push(`<w:em w:val="${e.emphasisMark}"/>`);let r=Ke(e.shading);return r&&t.push(r),e.vertAlign&&e.vertAlign!=="baseline"&&t.push(`<w:vertAlign w:val="${e.vertAlign}"/>`),e.rtl===true?t.push("<w:rtl/>"):e.rtl===false&&t.push('<w:rtl w:val="0"/>'),e.cs===true?t.push("<w:cs/>"):e.cs===false&&t.push('<w:cs w:val="0"/>'),t.length===0?"":`<w:rPr>${t.join("")}</w:rPr>`}function Qe(e){return !e.startsWith("<w:rPr>")||!e.endsWith("</w:rPr>")?"":e.slice(7,-8)}function et(e){let t=Number.isInteger(e.info.id)&&e.info.id>=0?e.info.id:0,n=typeof e.info.author=="string"?e.info.author.trim():"",r=n.length>0?n:"Unknown",i=typeof e.info.date=="string"?e.info.date.trim():void 0,o=[`w:id="${t}"`,`w:author="${l(r)}"`];i&&o.push(`w:date="${l(i)}"`);let a=S(e.previousFormatting)||"<w:rPr/>";return `<w:rPrChange ${o.join(" ")}>${a}</w:rPrChange>`}function tt(e,t){let n=S(e),r=n?Qe(n):"",i=(t??[]).map(et).join(""),o=`${r}${i}`;return o?`<w:rPr>${o}</w:rPr>`:""}function nt(e){return `<w:t${e.preserveSpace||e.text.startsWith(" ")||e.text.endsWith(" ")||e.text.includes(" ")?' xml:space="preserve"':""}>${l(e.text)}</w:t>`}function rt(e){return "<w:tab/>"}function it(e){let t=[];return e.breakType==="page"?t.push('w:type="page"'):e.breakType==="column"?t.push('w:type="column"'):e.breakType==="textWrapping"&&(t.push('w:type="textWrapping"'),e.clear&&e.clear!=="none"&&t.push(`w:clear="${e.clear}"`)),t.length===0?"<w:br/>":`<w:br ${t.join(" ")}/>`}function ot(e){return `<w:sym w:font="${l(e.font)}" w:char="${l(e.char)}"/>`}function st(e){return e.type==="footnoteRef"?`<w:footnoteReference w:id="${e.id}"/>`:`<w:endnoteReference w:id="${e.id}"/>`}function at(e){let t=[`w:fldCharType="${e.charType}"`];return e.fldLock&&t.push('w:fldLock="true"'),e.dirty&&t.push('w:dirty="true"'),`<w:fldChar ${t.join(" ")}/>`}function lt(e){return `<w:instrText${e.text.startsWith(" ")||e.text.endsWith(" ")||e.text.includes(" ")?' xml:space="preserve"':""}>${l(e.text)}</w:instrText>`}function ct(e){return "<w:softHyphen/>"}function pt(e){return "<w:noBreakHyphen/>"}function ut(e){switch(e.type){case "text":return nt(e);case "tab":return rt();case "break":return it(e);case "symbol":return ot(e);case "footnoteRef":case "endnoteRef":return st(e);case "footnoteRefMark":return "<w:footnoteRef/>";case "endnoteRefMark":return "<w:endnoteRef/>";case "separator":return "<w:separator/>";case "continuationSeparator":return "<w:continuationSeparator/>";case "fieldChar":return at(e);case "instrText":return lt(e);case "softHyphen":return ct();case "noBreakHyphen":return pt();case "drawing":return he(e);case "shape":return de(e);default:return ""}}function P(e){let t=[],n=tt(e.formatting,e.propertyChanges);n&&t.push(n);for(let r of e.content){let i=ut(r);i&&t.push(i);}return `<w:r>${t.join("")}</w:r>`}function q(e){if(!e)return "";let n=[e.firstRow?"1":"0",e.lastRow?"1":"0",e.firstColumn?"1":"0",e.lastColumn?"1":"0",e.oddVBand?"1":"0",e.evenVBand?"1":"0",e.oddHBand?"1":"0",e.evenHBand?"1":"0",e.nwCell?"1":"0",e.neCell?"1":"0",e.swCell?"1":"0",e.seCell?"1":"0"].join("");return n==="000000000000"?"":`<w:cnfStyle w:val="${n}"/>`}function G(e){if(!(e==null||!Number.isFinite(e)||e<=0))return Math.max(1,Math.round(e))}function ht(e){return e.columnWidths&&e.columnWidths.length>0?e.columnWidths.length:e.rows.reduce((t,n)=>{let r=n.cells.reduce((i,o)=>i+Math.max(1,Math.round(o.formatting?.gridSpan??1)),0);return Math.max(t,r)},0)}function dt(e){let t=[];for(let n of e.cells){let r=G(n.formatting?.width?.value);if(r==null)return;let i=Math.max(1,Math.round(n.formatting?.gridSpan??1));t.push(...chunkWA4IJOGH_js.a(r,i));}return t}function wt(e){let t=e.columnWidths?.map(a=>G(a)).filter(a=>a!=null);if(t&&t.length>0)return t;let n=ht(e);if(n<=0)return [];let r,i=-1;for(let a of e.rows){let c=dt(a);c&&c.length===n&&a.cells.length>i&&(r=c,i=a.cells.length);}if(r)return r;let o=e.formatting?.width?.type==="dxa"?G(e.formatting.width.value):void 0;return chunkWA4IJOGH_js.a(o??9360,n)}function we(e){let t=wt(e);return t.length===0?"":`<w:tblGrid>${t.map(r=>`<w:gridCol w:w="${s(r)}"/>`).join("")}</w:tblGrid>`}function mt(e){let t=Number.isInteger(e.id)&&e.id>=0?e.id:0,n=typeof e.author=="string"?e.author.trim():"",r=n.length>0?n:"Unknown",i=typeof e.date=="string"?e.date.trim():void 0;return {id:t,author:r,date:i}}function T(e){let t=mt(e),n=[`w:id="${t.id}"`,`w:author="${l(t.author)}"`];return t.date&&n.push(`w:date="${l(t.date)}"`),n.join(" ")}function v(e,t){if(!e)return "";let n=[`w:w="${s(e.value)}"`,`w:type="${e.type}"`];return `<w:${t} ${n.join(" ")}/>`}function F(e,t){if(!e||e.style==="none"||e.style==="nil")return "";let n=[`w:val="${e.style}"`];return e.size!==void 0&&n.push(`w:sz="${s(e.size)}"`),e.space!==void 0&&n.push(`w:space="${s(e.space)}"`),e.color&&(e.color.auto?n.push('w:color="auto"'):e.color.rgb&&n.push(`w:color="${e.color.rgb}"`),e.color.themeColor&&n.push(`w:themeColor="${e.color.themeColor}"`),e.color.themeTint&&n.push(`w:themeTint="${e.color.themeTint}"`),e.color.themeShade&&n.push(`w:themeShade="${e.color.themeShade}"`)),e.shadow&&n.push('w:shadow="true"'),e.frame&&n.push('w:frame="true"'),`<w:${t} ${n.join(" ")}/>`}function me(e,t){if(!e)return "";let n=[];if(e.top){let r=F(e.top,"top");r&&n.push(r);}if(e.left){let r=F(e.left,"left");r&&n.push(r);}if(e.bottom){let r=F(e.bottom,"bottom");r&&n.push(r);}if(e.right){let r=F(e.right,"right");r&&n.push(r);}if(e.insideH){let r=F(e.insideH,"insideH");r&&n.push(r);}if(e.insideV){let r=F(e.insideV,"insideV");r&&n.push(r);}return n.length===0?"":`<w:${t}>${n.join("")}</w:${t}>`}function ge(e,t){if(!e)return "";let n=[];return e.top&&n.push(v(e.top,"top")),e.left&&n.push(v(e.left,"left")),e.bottom&&n.push(v(e.bottom,"bottom")),e.right&&n.push(v(e.right,"right")),n.length===0?"":`<w:${t}>${n.join("")}</w:${t}>`}function $e(e){if(!e)return "";let t=[];return e.pattern?t.push(`w:val="${e.pattern}"`):t.push('w:val="clear"'),e.color?.rgb?t.push(`w:color="${e.color.rgb}"`):e.color?.auto&&t.push('w:color="auto"'),e.fill?.rgb?t.push(`w:fill="${e.fill.rgb}"`):e.fill?.auto&&t.push('w:fill="auto"'),e.fill?.themeColor&&t.push(`w:themeFill="${e.fill.themeColor}"`),e.fill?.themeTint&&t.push(`w:themeFillTint="${e.fill.themeTint}"`),e.fill?.themeShade&&t.push(`w:themeFillShade="${e.fill.themeShade}"`),t.length===0?"":`<w:shd ${t.join(" ")}/>`}function gt(e){if(!e)return "";let t=[];return e.firstRow&&t.push('w:firstRow="1"'),e.lastRow&&t.push('w:lastRow="1"'),e.firstColumn&&t.push('w:firstColumn="1"'),e.lastColumn&&t.push('w:lastColumn="1"'),e.noHBand&&t.push('w:noHBand="1"'),e.noVBand&&t.push('w:noVBand="1"'),t.length===0?"":`<w:tblLook ${t.join(" ")}/>`}function $t(e){if(!e)return "";let t=[];return e.horzAnchor&&t.push(`w:horzAnchor="${e.horzAnchor}"`),e.vertAnchor&&t.push(`w:vertAnchor="${e.vertAnchor}"`),e.tblpX!==void 0&&t.push(`w:tblpX="${s(e.tblpX)}"`),e.tblpXSpec&&t.push(`w:tblpXSpec="${e.tblpXSpec}"`),e.tblpY!==void 0&&t.push(`w:tblpY="${s(e.tblpY)}"`),e.tblpYSpec&&t.push(`w:tblpYSpec="${e.tblpYSpec}"`),e.topFromText!==void 0&&t.push(`w:topFromText="${s(e.topFromText)}"`),e.bottomFromText!==void 0&&t.push(`w:bottomFromText="${s(e.bottomFromText)}"`),e.leftFromText!==void 0&&t.push(`w:leftFromText="${s(e.leftFromText)}"`),e.rightFromText!==void 0&&t.push(`w:rightFromText="${s(e.rightFromText)}"`),t.length===0?"":`<w:tblpPr ${t.join(" ")}/>`}function xe(e,t){let n=[];if(e){e.styleId&&n.push(`<w:tblStyle w:val="${l(e.styleId)}"/>`);let r=$t(e.floating);r&&n.push(r),e.overlap&&n.push(`<w:tblOverlap w:val="${e.overlap}"/>`),e.bidi&&n.push("<w:bidiVisual/>");let i=v(e.width,"tblW");i&&n.push(i),e.justification&&n.push(`<w:jc w:val="${e.justification}"/>`);let o=v(e.cellSpacing,"tblCellSpacing");o&&n.push(o);let a=v(e.indent,"tblInd");a&&n.push(a);let c=me(e.borders,"tblBorders");c&&n.push(c);let u=$e(e.shading);u&&n.push(u),e.layout&&n.push(`<w:tblLayout w:type="${e.layout}"/>`);let f=ge(e.cellMargins,"tblCellMar");f&&n.push(f);let p=gt(e.look);p&&n.push(p);}return t&&t.length>0&&n.push(yt(t[0])),n.length===0?"":`<w:tblPr>${n.join("")}</w:tblPr>`}function xt(e){return !e.startsWith("<w:tblPr>")||!e.endsWith("</w:tblPr>")?"":e.slice(9,-10)}function yt(e){let t=T(e.info),n=xe(e.previousFormatting)||"<w:tblPr/>",r=xt(n),i=r.length>0?`<w:tblPr>${r}</w:tblPr>`:"<w:tblPr/>";return `<w:tblPrChange ${t}>${i}</w:tblPrChange>`}function ye(e,t,n){let r=[];if(e){let i=q(e.conditionalFormat);if(i&&r.push(i),e.cantSplit&&r.push("<w:cantSplit/>"),e.header&&r.push("<w:tblHeader/>"),e.height){let o=[`w:val="${s(e.height.value)}"`];e.heightRule&&o.push(`w:hRule="${e.heightRule}"`),r.push(`<w:trHeight ${o.join(" ")}/>`);}e.justification&&r.push(`<w:jc w:val="${e.justification}"/>`),e.hidden&&r.push("<w:hidden/>");}return n&&(n.type==="tableRowInsertion"?r.push(`<w:ins ${T(n.info)}/>`):n.type==="tableRowDeletion"&&r.push(`<w:del ${T(n.info)}/>`)),t&&t.length>0&&r.push(bt(t[0])),r.length===0?"":`<w:trPr>${r.join("")}</w:trPr>`}function Pt(e){return !e.startsWith("<w:trPr>")||!e.endsWith("</w:trPr>")?"":e.slice(8,-9)}function bt(e){let t=T(e.info),n=ye(e.previousFormatting)||"<w:trPr/>",r=Pt(n),i=r.length>0?`<w:trPr>${r}</w:trPr>`:"<w:trPr/>";return `<w:trPrChange ${t}>${i}</w:trPrChange>`}function Pe(e,t,n){let r=[];if(e){let i=q(e.conditionalFormat);i&&r.push(i);let o=v(e.width,"tcW");o&&r.push(o),e.gridSpan&&e.gridSpan>1&&r.push(`<w:gridSpan w:val="${s(e.gridSpan)}"/>`),e.vMerge&&(e.vMerge==="restart"?r.push('<w:vMerge w:val="restart"/>'):r.push("<w:vMerge/>"));let a=me(e.borders,"tcBorders");a&&r.push(a);let c=$e(e.shading);c&&r.push(c),e.noWrap&&r.push("<w:noWrap/>");let u=ge(e.margins,"tcMar");u&&r.push(u),e.textDirection&&r.push(`<w:textDirection w:val="${e.textDirection}"/>`),e.fitText&&r.push("<w:tcFitText/>"),e.verticalAlign&&r.push(`<w:vAlign w:val="${e.verticalAlign}"/>`),e.hideMark&&r.push("<w:hideMark/>");}if(n){if(n.type==="tableCellInsertion")r.push(`<w:cellIns ${T(n.info)}/>`);else if(n.type==="tableCellDeletion")r.push(`<w:cellDel ${T(n.info)}/>`);else if(n.type==="tableCellMerge"){let i=n.vMerge?` w:vMerge="${n.vMerge}"`:"",o=n.vMergeOrig?` w:vMergeOrig="${n.vMergeOrig}"`:"";r.push(`<w:cellMerge ${T(n.info)}${i}${o}/>`);}}return t&&t.length>0&&r.push(Tt(t[0])),r.length===0?"":`<w:tcPr>${r.join("")}</w:tcPr>`}function vt(e){return !e.startsWith("<w:tcPr>")||!e.endsWith("</w:tcPr>")?"":e.slice(8,-9)}function Tt(e){let t=T(e.info),n=Pe(e.previousFormatting)||"<w:tcPr/>",r=vt(n),i=r.length>0?`<w:tcPr>${r}</w:tcPr>`:"<w:tcPr/>";return `<w:tcPrChange ${t}>${i}</w:tcPrChange>`}function Ct(e){let t=[];for(let n of e)n.type==="paragraph"?t.push(b(n)):n.type==="table"&&t.push(k(n));return t.length===0&&t.push("<w:p/>"),t.join("")}function St(e){let t=[],n=Pe(e.formatting,e.propertyChanges,e.structuralChange);return n&&t.push(n),t.push(Ct(e.content)),`<w:tc>${t.join("")}</w:tc>`}function Ft(e){let t=[],n=ye(e.formatting,e.propertyChanges,e.structuralChange);n&&t.push(n);for(let r of e.cells)t.push(St(r));return `<w:tr>${t.join("")}</w:tr>`}function k(e){let t=[],n=xe(e.formatting,e.propertyChanges),r=we(e);n?t.push(n):r&&t.push("<w:tblPr/>"),r&&t.push(r);for(let i of e.rows)t.push(Ft(i));return `<w:tbl>${t.join("")}</w:tbl>`}function B(e,t){let n=e.content.map(t).join(""),r=e.properties.rawPropertiesXml??"",i=e.properties.rawEndPropertiesXml??"";return `<w:sdt>${r}${i}<w:sdtContent>${n}</w:sdtContent></w:sdt>`}var h={wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"};function zt(){let e={wpc:h.wpc,mc:h.mc,o:h.o,r:h.r,m:h.m,v:h.v,wp14:h.wp14,wp:h.wp,w10:h.w10,w:h.w,w14:h.w14,w15:h.w15,w16se:h.w16se,w16cid:h.w16cid,w16:h.w16,w16cex:h.w16cex,w16sdtdh:h.w16sdtdh,wne:h.wne,wpg:h.wpg,wps:h.wps};return Object.entries(e).map(([t,n])=>`xmlns:${t}="${n}"`).join(" ")}function A(e){return e.type==="paragraph"?b(e):e.type==="table"?k(e):e.type==="blockSdt"?B(e,A):""}function kt(e){return e.map(t=>A(t)).join("")}function Rt(e){let t=[];return t.push(kt(e.content)),e.finalSectionProperties&&t.push(I(e.finalSectionProperties)),t.join("")}function vn(e){N();let t=[];t.push('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>');let n=zt();return t.push(`<w:document ${n} mc:Ignorable="w14 w15 w16se w16cid w16 w16cex w16sdtdh wp14">`),t.push("<w:body>"),t.push(Rt(e.package.document)),t.push("</w:body>"),t.push("</w:document>"),t.join("")}var It='<v:shapetype id="_x0000_t136" coordsize="21600,21600" o:spt="136" adj="10800" path="m@7,l@8,m@5,21600l@6,21600e"><v:formulas><v:f eqn="sum #0 0 10800"/><v:f eqn="prod #0 2 1"/><v:f eqn="sum 21600 0 @1"/><v:f eqn="sum 0 0 @2"/><v:f eqn="sum 21600 0 @3"/><v:f eqn="if @0 @3 0"/><v:f eqn="if @0 21600 @1"/><v:f eqn="if @0 0 @2"/><v:f eqn="if @0 @4 21600"/><v:f eqn="mid @5 @6"/><v:f eqn="mid @8 @5"/><v:f eqn="mid @7 @8"/><v:f eqn="mid @6 @7"/><v:f eqn="sum @6 0 @5"/></v:formulas><v:path textpathok="t" o:connecttype="custom" o:connectlocs="@9,0;@10,10800;@9,21600;@11,10800" o:connectangles="270,180,90,0"/><v:textpath on="t" fitshape="t"/><v:handles><v:h position="#0,bottomRight" xrange="6629,14971"/></v:handles><o:lock v:ext="edit" text="t" shapetype="t"/></v:shapetype>',jt='<v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"><v:stroke joinstyle="miter"/><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"/><v:f eqn="sum @0 1 0"/><v:f eqn="sum 0 0 @1"/><v:f eqn="prod @2 1 2"/><v:f eqn="prod @3 21600 pixelWidth"/><v:f eqn="prod @3 21600 pixelHeight"/><v:f eqn="sum @0 0 1"/><v:f eqn="prod @6 1 2"/><v:f eqn="prod @7 21600 pixelWidth"/><v:f eqn="sum @8 21600 0"/><v:f eqn="prod @7 21600 pixelHeight"/><v:f eqn="sum @10 21600 0"/></v:formulas><v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/><o:lock v:ext="edit" aspectratio="t"/></v:shapetype>';function Bt(e){let t=Math.max(e.text.trim().length,1),n=Math.min(Math.max(t*26,120),468);return {width:n,height:n/2}}var be=12700;function At(e){let t=e.widthEmu!==void 0?e.widthEmu/be:311.4,n=e.heightEmu!==void 0?e.heightEmu/be:t;return {width:t*(e.scale||1),height:n*(e.scale||1)}}function Et(e){let{width:t,height:n}=Bt(e),r=e.layout==="diagonal"?";rotation:315":"",i=`position:absolute;margin-left:0;margin-top:0;width:${t}pt;height:${n}pt${r};z-index:-251658240;mso-position-horizontal:center;mso-position-horizontal-relative:margin;mso-position-vertical:center;mso-position-vertical-relative:margin`,o=e.semitransparent?'<v:fill opacity=".5"/>':"",a=e.fontSize!==void 0?e.fontSize:1,c=`font-family:"${l(e.font)}";font-size:${a}pt`;return "<w:p><w:r><w:rPr><w:noProof/></w:rPr><w:pict>"+It+`<v:shape id="PowerPlusWaterMarkObject1" o:spid="_x0000_s2049" type="#_x0000_t136" style="${i}" o:allowincell="f" fillcolor="${l(e.color)}" stroked="f">`+o+`<v:textpath style="${c}" string="${l(e.text)}"/></v:shape></w:pict></w:r></w:p>`}function Xt(e){if(!e.relId)return "";let{width:t,height:n}=At(e),r=`position:absolute;margin-left:0;margin-top:0;width:${t}pt;height:${n}pt;z-index:-251657216;mso-position-horizontal:center;mso-position-horizontal-relative:margin;mso-position-vertical:center;mso-position-vertical-relative:margin`,i=e.washout?' gain="19661f" blacklevel="22938f"':"";return "<w:p><w:r><w:rPr><w:noProof/></w:rPr><w:pict>"+jt+`<v:shape id="WordPictureWatermark1" o:spid="_x0000_s2050" type="#_x0000_t75" style="${r}" o:allowincell="f"><v:imagedata r:id="${l(e.relId)}" o:title="watermark"${i}/></v:shape></w:pict></w:r></w:p>`}function ve(e){return e.kind==="text"?Et(e):Xt(e)}var Dt={wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"};function Mt(){return Object.entries(Dt).map(([e,t])=>`xmlns:${e}="${t}"`).join(" ")}function Te(e){return e.type==="paragraph"?b(e):e.type==="table"?k(e):e.type==="blockSdt"?B(e,Te):""}function In(e){let t=e.type==="header"?"w:hdr":"w:ftr",n=Mt(),r=e.content.map(i=>Te(i)).join("");return e.watermark&&(r=ve(e.watermark)+r),r||(r="<w:p><w:pPr/></w:p>"),`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
2
|
+
<${t} ${n}>${r}</${t}>`}function ze(e){let t="<w:r>",n=[];e.formatting?.bold&&n.push("<w:b/>"),e.formatting?.italic&&n.push("<w:i/>"),n.length>0&&(t+=`<w:rPr>${n.join("")}</w:rPr>`);for(let r of e.content)if(r.type==="text"){let i=r.text!==r.text.trim()||r.text.includes(" ");t+=i?`<w:t xml:space="preserve">${l(r.text)}</w:t>`:`<w:t>${l(r.text)}</w:t>`;}else r.type==="break"&&(t+="<w:br/>");return t+="</w:r>",t}function Ce(e,t){let n=t?`<w:p w14:paraId="${t}">`:"<w:p>";for(let r of e.content)r.type==="run"&&(n+=ze(r));return n+="</w:p>",n}function Se(e,t){let n=t?`<w:p w14:paraId="${t}">`:"<w:p>";n+='<w:r><w:rPr><w:rStyle w:val="CommentReference"/></w:rPr><w:annotationRef/></w:r>';for(let r of e.content)r.type==="run"&&(n+=ze(r));return n+="</w:p>",n}function Fe(e,t){let n=chunkB3SVS2AF_js.a(),r=[`w:id="${e.id}"`];if(e.author&&r.push(`w:author="${l(e.author)}"`),e.initials?r.push(`w:initials="${l(e.initials)}"`):r.push('w:initials=""'),e.date){let o=e.date.replace(/\.\d{3}Z$/,"Z");r.push(`w:date="${l(o)}"`);}let i=`<w:comment ${r.join(" ")}>`;if(e.content&&e.content.length>0)if(e.content.length===1)i+=Se(e.content[0],n);else {i+=Se(e.content[0]);for(let o=1;o<e.content.length-1;o++)i+=Ce(e.content[o]);i+=Ce(e.content[e.content.length-1],n);}else i+=`<w:p w14:paraId="${n}"><w:r><w:rPr><w:rStyle w:val="CommentReference"/></w:rPr><w:annotationRef/></w:r></w:p>`;return i+="</w:comment>",t.push({commentId:e.id,lastParaId:n,durableId:chunkB3SVS2AF_js.a(),parentId:e.parentId,done:e.done}),i}function Lt(e){if(!e||e.length===0)return {xml:"",paraInfos:[]};let t=[],n=[];for(let o of e)(o.parentId==null?t:n).push(o);let r=[],i=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:comments ${x} ${y}>`;for(let o of t)i+=Fe(o,r);for(let o of n)i+=Fe(o,r);return i+="</w:comments>",{xml:i,paraInfos:r}}function En(e){return Lt(e).xml}function Xn(e){if(e.length===0)return "";let t=new Map;for(let r of e)t.set(r.commentId,r.lastParaId);let n=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w15:commentsEx ${x} ${y}>`;for(let r of e){let i=`w15:paraId="${r.lastParaId}" w15:done="${r.done?"1":"0"}"`;if(r.parentId!=null){let o=t.get(r.parentId);o&&(i+=` w15:paraIdParent="${o}"`);}n+=`<w15:commentEx ${i} />`;}return n+="</w15:commentsEx>",n}function Dn(e){if(e.length===0)return "";let t=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w16cid:commentsIds ${x} ${y}>`;for(let n of e)t+=`<w16cid:commentId w16cid:paraId="${n.lastParaId}" w16cid:durableId="${n.durableId}" />`;return t+="</w16cid:commentsIds>",t}function Mn(e,t){if(e.length===0)return "";let n=new Map;for(let i of t)n.set(i.id,i);let r=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w16cex:commentsExtensible ${x} ${y}>`;for(let i of e){let o=n.get(i.commentId);if(!o?.date)continue;let a=i.durableId,c=(o.date.endsWith("Z")?o.date:o.date+"Z").replace(/\.\d{3}Z$/,"Z");r+=`<w16cex:commentExtensible w16cex:durableId="${a}" w16cex:dateUtc="${c}"/>`;}return r+="</w16cex:commentsExtensible>",r}var ke='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';function Re(e,t){if(t.verbatimXml)return t.verbatimXml;let n=[];t.noteType&&t.noteType!=="normal"&&n.push(`w:type="${t.noteType}"`),n.push(`w:id="${t.id}"`);let r=t.content.map(i=>A(i)).join("");return `<w:${e} ${n.join(" ")}>${r}</w:${e}>`}function On(e){let t=e.map(n=>Re("footnote",n)).join("");return `${ke}<w:footnotes ${x} ${y}>${t}</w:footnotes>`}function Nn(e){let t=e.map(n=>Re("endnote",n)).join("");return `${ke}<w:endnotes ${x} ${y}>${t}</w:endnotes>`}exports.a=l;exports.b=P;exports.c=I;exports.d=b;exports.e=k;exports.f=A;exports.g=Rt;exports.h=vn;exports.i=In;exports.j=Lt;exports.k=En;exports.l=Xn;exports.m=Dn;exports.n=Mn;exports.o=On;exports.p=Nn;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(){return Math.floor(Math.random()*2147483647).toString(16).toUpperCase().padStart(8,"0")}var t=/^[0-9A-Fa-f]{8}$/;function r(n){return !n||!t.test(n)?false:parseInt(n,16)<2147483647}function f(n){if(n!=null)return r(n)?n:e()}export{e as a,r as b,f as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var chunkNKIDBERV_js=require('./chunk-NKIDBERV.js'),chunkXCTYXYEU_js=require('./chunk-XCTYXYEU.js'),chunkDKUHG27E_js=require('./chunk-DKUHG27E.js'),chunkBJSG6TEG_js=require('./chunk-BJSG6TEG.js');function be(e,n){let i=e.floating;if(!i)return false;let r=chunkXCTYXYEU_js.f(e,n),t=0;i.tblpX!==void 0?t=i.tblpX:i.tblpXSpec?i.tblpXSpec==="left"||i.tblpXSpec==="inside"?t=0:i.tblpXSpec==="right"||i.tblpXSpec==="outside"?t=n-r:i.tblpXSpec==="center"&&(t=(n-r)/2):e.justification==="center"?t=(n-r)/2:e.justification==="right"&&(t=n-r);let o=i.leftFromText??0,l=i.rightFromText??0,a=t-o,s=n-(t+r)-l;return a<chunkXCTYXYEU_js.E&&s<chunkXCTYXYEU_js.E}function We(e,n,i){for(let r=0;r<e.length;r++){let t=e[r];t.kind==="table"&&t.floating&&be(t,n[r]??i)&&(e[r]={...t,floating:void 0});}}function ne(e,n){if(e.pages.length===0)return null;let i=e.pageGap??0,r=0,t=null,o=1/0;for(let l=0;l<e.pages.length;l++){let a=e.pages[l],s=a.size?.h??e.pageSize.h,f=r,u=f+s;if(n.y>=f&&n.y<u)return {pageIndex:l,page:a,pageY:n.y-f};let c=f+s/2,g=Math.abs(n.y-c);g<o&&(o=g,t=l),r=u+i;}if(t!==null){let l=e.pages[t],a=A(e,t);return {pageIndex:t,page:l,pageY:Math.max(0,Math.min(n.y-a,l.size?.h??e.pageSize.h))}}return null}function A(e,n){let i=e.pageGap??0,r=0;for(let t=0;t<n&&t<e.pages.length;t++){let l=e.pages[t].size?.h??e.pageSize.h;r+=l+i;}return r}function Ge(e,n){return ne(e,{y:n})?.pageIndex??null}function oe(e,n){return e.findIndex(i=>i.id===n)}function Ve(e,n){let i=0;for(let r=e.fromLine;r<e.toLine&&r<n.lines.length;r++)i+=n.lines[r].lineHeight;return i}function xe(e,n,i,r){let t=[...e.page.fragments].sort((o,l)=>{let a=o.y-l.y;return Math.abs(a)>.5?a:o.x-l.x});for(let o of t){let l=oe(n,o.blockId);if(l===-1)continue;let a=n[l],s=i[l];if(!a||!s)continue;let f;if(o.kind==="paragraph"){if(a.kind!=="paragraph"||s.kind!=="paragraph")continue;f=Ve(o,s);}else if(o.kind==="table")f=o.height;else if(o.kind==="image")f=o.height;else continue;let u=r.x>=o.x&&r.x<=o.x+o.width,c=r.y>=o.y&&r.y<=o.y+f;if(u&&c)return {fragment:o,block:a,measure:s,pageIndex:e.pageIndex,localX:r.x-o.x,localY:r.y-o.y}}return null}function Ue(e,n,i,r){for(let t of e.page.fragments){if(t.kind!=="image")continue;let o=oe(n,t.blockId);if(o===-1)continue;let l=n[o],a=i[o];if(!l||!a)continue;let s=r.x>=t.x&&r.x<=t.x+t.width,f=r.y>=t.y&&r.y<=t.y+t.height;if(s&&f)return {fragment:t,block:l,measure:a,pageIndex:e.pageIndex,localX:r.x-t.x,localY:r.y-t.y}}return null}function Te(e,n,i,r){for(let t of e.page.fragments){if(t.kind!=="table")continue;let o=t,l=r.x>=o.x&&r.x<=o.x+o.width,a=r.y>=o.y&&r.y<=o.y+o.height;if(!l||!a)continue;let s=oe(n,o.blockId);if(s===-1)continue;let f=n[s],u=i[s];if(!f||f.kind!=="table"||!u||u.kind!=="table")continue;let c=f,g=u,h=r.x-o.x,x=r.y-o.y,d=o.headerRowCount??0,m=d>0&&o.continuesFromPrev?chunkXCTYXYEU_js.Y(g,d):0,p=0,b=-1;if(g.rows.length===0||c.rows.length===0)continue;if(m>0&&x<m){let F=0;for(let w=0;w<d&&w<g.rows.length;w++){let L=g.rows[w];if(x>=F&&x<F+L.height){b=w;break}F+=L.height;}b===-1&&(b=0);}else {let F=x-m;for(let w=o.fromRow;w<o.toRow&&w<g.rows.length;w++){let L=g.rows[w];if(F>=p&&F<p+L.height){b=w;break}p+=L.height;}}if(b===-1&&(b=Math.min(o.toRow-1,g.rows.length-1),b<o.fromRow))continue;let k=g.rows[b],H=c.rows[b];if(!k||!H)continue;let M=0,T=-1;if(k.cells.length===0||H.cells.length===0)continue;for(let F=0;F<k.cells.length;F++){let w=k.cells[F];if(h>=M&&h<M+w.width){T=F;break}M+=w.width;}if(T===-1&&(T=k.cells.length-1,T<0))continue;let P=k.cells[T],S=H.cells[T];if(!P||!S)continue;let y=0;if(m>0&&b<d)for(let F=0;F<b;F++)y+=g.rows[F]?.height??0;else {y=m;for(let F=o.fromRow;F<b;F++)y+=g.rows[F]?.height??0;}let R=0;for(let F=0;F<T;F++)R+=k.cells[F]?.width??0;let X,I;if(S.blocks&&S.blocks.length>0){let F=S.blocks[0],w=P.blocks[0];F.kind==="paragraph"&&w?.kind==="paragraph"&&(X=F,I=w);}let E=h-R,C=x-y;return {fragment:o,block:c,measure:g,pageIndex:e.pageIndex,rowIndex:b,colIndex:T,cellBlock:X,cellMeasure:I,cellLocalX:Math.max(0,E),cellLocalY:Math.max(0,C)}}return null}function $e(e,n,i,r){let t={pageHit:null,fragmentHit:null,tableCellHit:null};if(t.pageHit=ne(e,r),!t.pageHit)return t;let o=A(e,t.pageHit.pageIndex),l={x:r.x,y:r.y-o};return t.fragmentHit=xe(t.pageHit,n,i,l),t.fragmentHit?.fragment.kind==="table"&&(t.tableCellHit=Te(t.pageHit,n,i,l)),t}function qe(e){if(e.pages.length===0)return 0;let n=e.pageGap??0,i=0;for(let r=0;r<e.pages.length;r++){let t=e.pages[r];i+=t.size?.h??e.pageSize.h,r<e.pages.length-1&&(i+=n);}return i}function je(e,n){return A(e,n)}function Je(e,n){if(n<0||n>=e.pages.length)return null;let i=A(e,n),t=e.pages[n].size?.h??e.pageSize.h;return {top:i,bottom:i+t}}function re(e){return {fontFamily:e.fontFamily??"Arial",fontSize:e.fontSize??12,bold:e.bold,italic:e.italic,letterSpacing:e.letterSpacing}}function ke(e,n){let i=[];for(let r=n.fromRun;r<=n.toRun&&r<e.runs.length;r++){let t=e.runs[r];if(t){if(t.kind==="tab"||t.kind==="image"||t.kind==="lineBreak"){i.push(t);continue}if(t.kind==="text"){let o=t.text??"",l=r===n.fromRun,a=r===n.toRun;if(l||a){let s=l?n.fromChar:0,f=a?n.toChar:o.length,u=o.slice(s,f);u.length>0&&i.push({...t,text:u});}else i.push(t);}}}return i}function Fe(e,n){let i,r,t=e.pmStart??0,o=0;for(let l=0;l<e.runs.length&&l<=n.toRun;l++){let a=e.runs[l];a&&(l<n.fromRun?a.kind==="text"?o+=(a.text??"").length:(a.kind==="tab"||a.kind==="lineBreak"||a.kind==="image")&&(o+=1):l===n.fromRun&&(o+=n.fromChar,i=t+o,a.kind==="text"&&(o=n.fromChar)));}if(i!==void 0){let l=0;for(let a=n.fromRun;a<=n.toRun&&a<e.runs.length;a++){let s=e.runs[a];if(s)if(s.kind==="text"){let f=s.text??"",u=a===n.fromRun?n.fromChar:0,c=a===n.toRun?n.toChar:f.length;l+=c-u;}else (s.kind==="tab"||s.kind==="lineBreak"||s.kind==="image")&&(l+=1);}r=i+l;}return {pmStart:i,pmEnd:r}}function Ke(e,n,i,r){let t=0;for(let o=i;o<r&&o<e.lines.length;o++){let a=e.lines[o].lineHeight;if(n>=t&&n<t+a)return o;t+=a;}return r>i?Math.min(r-1,e.lines.length-1):null}function Qe(e,n,i,r){let{pmStart:t,pmEnd:o}=Fe(e,n);if(t===void 0||o===void 0)return {charOffset:0,pmPosition:e.pmStart??0};let l=e.attrs?.alignment??"left",a=0;l==="center"?a=Math.max(0,(r-n.width)/2):l==="right"&&(a=Math.max(0,r-n.width));let s=Math.max(0,i-a);if(s<=0)return {charOffset:0,pmPosition:t};let f=ke(e,n);if(f.length===0)return {charOffset:0,pmPosition:t};let u=0,c=0;for(let h of f){if(h.kind==="tab"){let x=h.width??48,d=u+x;if(s<=d){let m=u+x/2;return s<m?{charOffset:c,pmPosition:t+c}:{charOffset:c+1,pmPosition:t+c+1}}u=d,c+=1;continue}if(h.kind==="image"){let x=h.width,d=u+x;if(s<=d){let m=u+x/2;return s<m?{charOffset:c,pmPosition:t+c}:{charOffset:c+1,pmPosition:t+c+1}}u=d,c+=1;continue}if(h.kind==="lineBreak"){if(s>=u)return {charOffset:c,pmPosition:t+c};c+=1;continue}if(h.kind==="text"){let x=h.text??"";if(x.length===0)continue;let d=re(h),m=chunkXCTYXYEU_js.m(x,d),p=u+m.width;if(s<=p){let b=s-u,k=chunkXCTYXYEU_js.n(b,m.charWidths),H=c+k;return {charOffset:H,pmPosition:t+H}}u=p,c+=x.length;}}return {charOffset:o-t,pmPosition:o}}function ie(e){let{fragment:n,block:i,measure:r,localX:t,localY:o}=e;if(n.kind!=="paragraph"||i.kind!=="paragraph"||r.kind!=="paragraph")return null;let l=n,a=i,s=r,f=Ke(s,o,l.fromLine,l.toLine);if(f===null)return null;let u=s.lines[f];if(!u)return null;let c=0;for(let k=l.fromLine;k<f;k++)c+=s.lines[k]?.lineHeight??0;let g=a.attrs?.indent,h=g?.left??0,x=g?.right??0,d=Math.max(0,n.width-h-x),m=t-h,{charOffset:p,pmPosition:b}=Qe(a,u,m,d);return {pmPosition:b,charOffset:p,lineIndex:f}}function Me(e){let{cellBlock:n,cellMeasure:i,cellLocalX:r,cellLocalY:t}=e;if(!n||!i)return null;let o={fragment:{kind:"paragraph",blockId:n.id,x:0,y:0,width:i.lines.reduce((a,s)=>Math.max(a,s.width),100),fromLine:0,toLine:i.lines.length,height:i.totalHeight},block:n,measure:i,pageIndex:e.pageIndex,localX:r,localY:t};return ie(o)?.pmPosition??null}function Ze(e,n){if(n)return Me(n);if(!e)return null;let{fragment:i}=e;return i.kind==="paragraph"?ie(e)?.pmPosition??null:i.kind==="image"?i.pmStart??null:null}function ye(e,n,i,r){let t=e.pmStart??0,o=e.pmEnd??t;if(i<t||i>o)return null;let l=i-t;for(let a=0;a<n.lines.length;a++){let s=n.lines[a],{pmStart:f,pmEnd:u}=Fe(e,s);if(f===void 0||u===void 0)continue;let c=f-t,g=u-t;if(l>=c&&l<=g){let h=l-c,x=ke(e,s),d=0,m=0;for(let p of x)if(p.kind==="tab"){if(h<=m+1)return h<=m?{x:d,lineIndex:a}:{x:d+(p.width??48),lineIndex:a};d+=p.width??48,m+=1;}else if(p.kind==="image"){if(h<=m+1)return h<=m?{x:d,lineIndex:a}:{x:d+p.width,lineIndex:a};d+=p.width,m+=1;}else if(p.kind==="lineBreak"){if(h<=m)return {x:d,lineIndex:a};m+=1;}else if(p.kind==="text"){let b=p.text??"";if(h<=m+b.length){let M=h-m,T=re(p),P=chunkXCTYXYEU_js.m(b.slice(0,M),T);return {x:d+P.width,lineIndex:a}}let k=re(p),H=chunkXCTYXYEU_js.m(b,k);d+=H.width,m+=b.length;}return {x:d,lineIndex:a}}}return null}function et(e,n,i,r,t,o,l){let a=ye(e,n,i);if(!a)return null;let s=e.attrs?.alignment??"left",f=e.attrs?.indent,u=f?.left??0,c=f?.right??0,g=Math.max(0,o-u-c),h=n.lines[a.lineIndex];if(!h)return null;let x=0;s==="center"?x=Math.max(0,(g-h.width)/2):s==="right"&&(x=Math.max(0,g-h.width));let d=0;for(let m=l;m<a.lineIndex;m++)d+=n.lines[m]?.lineHeight??0;return {x:r+u+x+a.x,y:t+d,height:h.lineHeight}}function tt(e,n,i={}){let r=i.scope??"body",t=r==="body"?"layout-page-content":`layout-page-${r}`,o=`.${t} .layout-table-cell`,l=e.querySelectorAll(`.${t} .layout-table-cell-selected`);for(let c of Array.from(l))c.classList.remove("layout-table-cell-selected");let a=n.selection;if(!("$anchorCell"in a&&typeof a.forEachCell=="function")||!a.forEachCell)return;let f=[];a.forEachCell((c,g)=>{f.push([g,g+c.nodeSize]);});let u=e.querySelectorAll(o);for(let c of Array.from(u)){let g=c,h=g.dataset.pmStart;if(h===void 0)continue;let x=Number(h);for(let[d,m]of f)if(x>=d&&x<m){g.classList.add("layout-table-cell-selected");break}}}function He(e){return {fontFamily:e.fontFamily??"Arial",fontSize:e.fontSize??12,bold:e.bold,italic:e.italic,letterSpacing:e.letterSpacing}}function ae(e,n){return e.findIndex(i=>i.id===n)}function V(e,n){let r=(e.pmStart??0)+1,t=0,o;for(let s=0;s<e.runs.length&&s<=n.toRun;s++){let f=e.runs[s];if(f){if(s<n.fromRun)f.kind==="text"?t+=(f.text??"").length:t+=1;else if(s===n.fromRun){t+=n.fromChar,o=r+t;break}}}o===void 0&&(o=r);let l=0;for(let s=n.fromRun;s<=n.toRun&&s<e.runs.length;s++){let f=e.runs[s];if(f)if(f.kind==="text"){let u=f.text??"",c=s===n.fromRun?n.fromChar:0,g=s===n.toRun?n.toChar:u.length;l+=g-c;}else l+=1;}let a=o+l;return {pmStart:o,pmEnd:a}}function we(e,n,i,r){let t=[];for(let o=0;o<n.lines.length;o++){let l=n.lines[o],a=V(e,l);a.pmStart===void 0||a.pmEnd===void 0||a.pmEnd>i&&a.pmStart<r&&t.push({line:l,index:o});}return t}function W(e,n,i){let r=V(e,n);return r.pmStart===void 0?0:Math.max(0,i-r.pmStart)}function G(e,n,i,r){let t=0,o=0;for(let l=n.fromRun;l<=n.toRun&&l<e.runs.length;l++){let a=e.runs[l];if(a){if(a.kind==="tab"){let s=a.width??48;if(o+1>=i)return i<=o?t:t+s;t+=s,o+=1;continue}if(a.kind==="image"){let s=a.width;if(o+1>=i)return i<=o?t:t+s;t+=s,o+=1;continue}if(a.kind==="lineBreak"){if(i<=o)return t;o+=1;continue}if(a.kind==="text"){let s=a.text??"",f=l===n.fromRun,u=l===n.toRun,c=f?n.fromChar:0,g=u?n.toChar:s.length,h=s.slice(c,g);if(o+h.length>=i){let m=i-o,p=He(a),b=chunkXCTYXYEU_js.m(h.slice(0,m),p);return t+b.width}let x=He(a),d=chunkXCTYXYEU_js.m(h,x);t+=d.width,o+=h.length;}}}return t}function J(e,n){let i=0;for(let r=0;r<n&&r<e.lines.length;r++)i+=e.lines[r].lineHeight;return i}function nt(e,n,i,r,t){if(r===t)return [];let o=Math.min(r,t),l=Math.max(r,t),a=[];for(let s=0;s<e.pages.length;s++){let f=e.pages[s],u=A(e,s);for(let c of f.fragments){if(c.kind==="paragraph"){let g=ae(n,c.blockId);if(g===-1)continue;let h=n[g],x=i[g];if(!h||h.kind!=="paragraph"||!x||x.kind!=="paragraph")continue;let d=h,m=x,p=c,b=we(d,m,o,l);for(let{line:k,index:H}of b){if(H<p.fromLine||H>=p.toLine)continue;let M=V(d,k);if(M.pmStart===void 0||M.pmEnd===void 0)continue;let T=Math.max(M.pmStart,o),P=Math.min(M.pmEnd,l);if(T>=P)continue;let S=W(d,k,T),y=W(d,k,P),B=d.attrs?.indent,R=B?.left??0,X=B?.right??0,I=Math.max(0,c.width-R-X),E=G(d,k,S),C=G(d,k,y),F=d.attrs?.alignment??"left",w=0;F==="center"?w=Math.max(0,(I-k.width)/2):F==="right"&&(w=Math.max(0,I-k.width));let L=J(m,H)-J(m,p.fromLine),D=c.x+R+w+Math.min(E,C),Y=Math.max(1,Math.abs(C-E)),z=c.y+L;a.push({x:D,y:z+u,width:Y,height:k.lineHeight,pageIndex:s});}}if(c.kind==="table"){let g=ae(n,c.blockId);if(g===-1)continue;let h=n[g],x=i[g];if(!h||h.kind!=="table"||!x||x.kind!=="table")continue;let d=h,m=x,p=c,b=[],k=0;for(let y=0;y<m.rows.length;y++)b.push(Math.round(k)),k+=m.rows[y]?.height??0;b.push(Math.round(k));let H=p.headerRowCount??0,M=H>0&&p.continuesFromPrev?chunkXCTYXYEU_js.Y(m,H):0,T=(b[p.fromRow]??0)+(p.topClip??0),P=p.bottomClip!==void 0?Math.round(p.height):M+((b[p.toRow]??0)-T),S=y=>M+(y-T);for(let y=p.fromRow;y<p.toRow&&y<d.rows.length;y++){let B=d.rows[y],R=m.rows[y];if(!B||!R)continue;let X=b[y]??0,I=0;for(let E=0;E<B.cells.length;E++){let C=B.cells[E],F=R.cells[E];if(!C||!F)continue;let w=C.padding?.top??0,L=chunkXCTYXYEU_js.O(C.blocks,F.blocks,w);for(let D=0;D<C.blocks.length;D++){let Y=C.blocks[D],z=F.blocks[D];if(!Y||Y.kind!=="paragraph"||!z||z.kind!=="paragraph")continue;let O=Y,_e=z,Xe=L.lineTops[D]??[],Oe=we(O,_e,o,l);for(let{line:v,index:Ne}of Oe){let q=V(O,v);if(q.pmStart===void 0||q.pmEnd===void 0)continue;let se=Math.max(q.pmStart,o),ce=Math.min(q.pmEnd,l);if(se>=ce)continue;let Q=S(X+(Xe[Ne]??0));if(Q+v.lineHeight<=M||Q>=P)continue;let Ye=W(O,v,se),ze=W(O,v,ce),ue=G(O,v,Ye,F.width),fe=G(O,v,ze,F.width);a.push({x:p.x+I+Math.min(ue,fe),y:p.y+Q+u,width:Math.max(1,Math.abs(fe-ue)),height:v.lineHeight,pageIndex:s});}}I+=F.width;}}}if(c.kind==="image"){let g=c.pmStart??0;(c.pmEnd??g+1)>o&&g<l&&a.push({x:c.x,y:c.y+u,width:c.width,height:c.height,pageIndex:s});}}}return a}function ot(e,n,i,r){for(let t=0;t<e.pages.length;t++){let o=e.pages[t],l=A(e,t);for(let a of o.fragments){if(a.kind==="paragraph"){let s=ae(n,a.blockId);if(s===-1)continue;let f=n[s],u=i[s];if(!f||f.kind!=="paragraph"||!u||u.kind!=="paragraph")continue;let c=f,g=u,h=a,x=c.pmStart??0,d=c.pmEnd??x;if(r<x||r>d)continue;for(let m=h.fromLine;m<h.toLine;m++){let p=g.lines[m];if(!p)continue;let b=V(c,p);if(!(b.pmStart===void 0||b.pmEnd===void 0)&&r>=b.pmStart&&r<=b.pmEnd){let k=W(c,p,r),H=c.attrs?.indent,M=H?.left??0,T=H?.right??0,P=Math.max(0,a.width-M-T),S=G(c,p,k),y=c.attrs?.alignment??"left",B=0;y==="center"?B=Math.max(0,(P-p.width)/2):y==="right"&&(B=Math.max(0,P-p.width));let R=J(g,m)-J(g,h.fromLine);return {x:a.x+M+B+S,y:a.y+R+l,height:p.lineHeight,pageIndex:t}}}}if(a.kind==="image"){let s=a.pmStart??0,f=a.pmEnd??s+1;if(r>=s&&r<=f){let u=r===s?0:a.width;return {x:a.x+u,y:a.y+l,height:a.height,pageIndex:t}}}}}return null}function rt(e){return e.length<=1?false:new Set(e.map(i=>i.pageIndex)).size>1}function it(e){let n=new Map;for(let i of e){let r=n.get(i.pageIndex)??[];r.push(i),n.set(i.pageIndex,r);}return n}function at(e){if(e.kind!=="paragraph")return false;let n=e.attrs;return n?!!(n.borders?.top||n.borders?.bottom||n.spacingExplicit?.before||n.spacingExplicit?.after):false}function Pe(e){return Se(e)}function Se(e){let n=new Set;for(let i=1;i<e.length;i++){let r=e[i-1],t=e[i];r.kind==="table"&&t.kind==="paragraph"&&(t.runs.length>0||at(t)||n.add(i));}return e.map((i,r)=>{if(i.kind==="table")return lt(i);if(i.kind!=="paragraph")return i;let t=n.has(r),o=i.attrs?.spacingExplicit,l=i.attrs?.spacing?.before!=null,a=i.attrs?.spacing?.after!=null,s=l&&!o?.before,f=a&&!o?.after,u=s||f;if(!u&&!t)return i;let c=i.attrs;return u&&c?.spacing&&(c={...c,spacing:{...c.spacing,before:o?.before?c.spacing.before:void 0,after:o?.after?c.spacing.after:void 0}}),t&&(c={...c??{},suppressEmptyParagraphHeight:true}),{...i,attrs:c}})}function lt(e){let n=false,i=e.rows.map(r=>{let t=false,o=r.cells.map(l=>{let a=Se(l.blocks);return a.some((f,u)=>f!==l.blocks[u])?(t=true,{...l,blocks:a}):l});return t?(n=true,{...r,cells:o}):r});return n?{...e,rows:i}:e}function st(e){return e?.align??e?.alignment}function Be(e,n,i,r){let t=r.section==="header"?r.margins.header??48:r.pageSize.h-(r.margins.footer??48)-i,o=e.position?.vertical;if(!o)return n;let l=st(o),a=o.posOffset!==void 0?chunkBJSG6TEG_js.f(o.posOffset):void 0;if(o.relativeTo==="page"){if(a!==void 0)return a-t;if(l==="top")return -t;if(l==="bottom")return r.pageSize.h-e.height-t;if(l==="center")return (r.pageSize.h-e.height)/2-t}if(o.relativeTo==="margin"){let s=r.margins.top,f=r.pageSize.h-r.margins.top-r.margins.bottom;if(a!==void 0)return s+a-t;if(l==="top")return s-t;if(l==="bottom")return s+f-e.height-t;if(l==="center")return s+(f-e.height)/2-t}return a!==void 0?n+a:n}function Re(e){switch(e.kind){case "paragraph":case "table":return true;case "image":return !e.anchor?.isAnchored;case "textBox":return e.displayMode===void 0||e.displayMode==="inline";default:return false}}function ct(e){return e?e.kind==="paragraph"||e.kind==="table"?e.totalHeight:e.kind==="image"||e.kind==="textBox"?e.height:0:0}function Ie(e,n,i,r){let t=0,o=0,l=0;for(let a=0;a<e.length;a++){let s=e[a],f=n[a];if(!(!s||!f)){if(s.kind==="paragraph"&&f.kind==="paragraph"){let u=l,c=u+f.totalHeight;t=Math.min(t,u),o=Math.max(o,c);for(let g of s.runs){if(g.kind!=="image"||!g.position)continue;let h=Be(g,u,i,r);t=Math.min(t,h),o=Math.max(o,h+g.height);}l=c;}else if(s.kind==="table"&&f.kind==="table"){let u=l+f.totalHeight;t=Math.min(t,l),o=Math.max(o,u),l=u;}else if(s.kind==="image"&&f.kind==="image"){let u=l+f.height;t=Math.min(t,l),o=Math.max(o,u),l=u;}else if(s.kind==="textBox"&&f.kind==="textBox"){let u=l+f.height;t=Math.min(t,l),o=Math.max(o,u),s.displayMode!=="float"&&(l=u);}}}return {visualTop:t,visualBottom:o}}function ut(e,n,i,r){if(!e||!e.content||e.content.length===0)return;let t=chunkDKUHG27E_js.b(e.content,{styles:r.styles??void 0,theme:r.theme??null,defaultTabStopTwips:r.defaultTabStopTwips??null});return Ce(t,n,i,r)}function Ce(e,n,i,r){let t=chunkNKIDBERV_js.c(e,{theme:r.theme??void 0});if(t.length===0)return;let o=Pe(t),l=r.measureBlocks(o,n),a=0,s=0;for(let c=0;c<o.length;c++){let g=ct(l[c]);a+=g,Re(o[c])&&(s+=g);}let{visualTop:f,visualBottom:u}=Ie(o,l,a,i);return {blocks:o,measures:l,height:a,flowHeight:s,visualTop:f,visualBottom:u}}var K={header:null,footer:null};function ft(){K.header=null,K.footer=null;}function Ee(e,n){let i=n.querySelectorAll(`.layout-page-${e}`);if(i.length===0)return null;let r=n.defaultView,t=r?r.innerHeight/2:0,o=i[0],l=1/0;for(let c of Array.from(i)){let g=c.getBoundingClientRect(),h=Math.abs((g.top+g.bottom)/2-t);h<l&&(l=h,o=c);}let a=K[e];if(a&&a.host===o&&a.host.isConnected)return a;let s=Array.from(o.querySelectorAll("span[data-pm-start][data-pm-end]")),f=Array.from(o.querySelectorAll("[data-pm-start][data-pm-end]")),u={host:o,spans:s,ranged:f};return K[e]=u,u}function dt(e,n,i=globalThis.document){let r=e.state.selection;if(!r.empty)return null;let t=r.head,o=Ee(n,i);if(!o)return null;let{host:l,spans:a}=o;for(let d of a){let m=Number(d.dataset.pmStart),p=Number(d.dataset.pmEnd);if(!(!Number.isFinite(m)||!Number.isFinite(p))&&t>=m&&t<=p){let b=l.ownerDocument.createRange(),k=l.ownerDocument.createTreeWalker(d,NodeFilter.SHOW_TEXT),H=t-m,M=k.nextNode();for(;M;){let S=M.data.length;if(H<=S){try{b.setStart(M,H),b.setEnd(M,H);let y=b.getClientRects()[0]??b.getBoundingClientRect();if(y&&y.height>0)return {top:y.top,left:y.left,height:y.height}}catch{}break}H-=S,M=k.nextNode();}let T=d.getBoundingClientRect(),P=(t-m)/Math.max(1,p-m);return {top:T.top,left:T.left+T.width*P,height:T.height}}}let s=l.querySelector(`[data-pm-start="${t}"]`);if(s){let d=s.getBoundingClientRect();return {top:d.top,left:d.left+1,height:d.height||16}}let f=o.ranged,u=null,c=1/0;for(let d of f){let m=Number(d.dataset.pmStart),p=Number(d.dataset.pmEnd);if(!Number.isFinite(m)||!Number.isFinite(p)||t<m||t>p)continue;let b=p-m;b<c&&(c=b,u=d);}if(u){let d=u.getBoundingClientRect(),m=Number(u.dataset.pmEnd),p=t>=m;return {top:d.top,left:p?d.right:d.left+1,height:d.height||16}}let g=null,h=-1/0;for(let d of f){let m=Number(d.dataset.pmStart);Number.isFinite(m)&&(m>t||m>h&&(h=m,g=d));}if(g){let d=g.getBoundingClientRect();return {top:d.top,left:d.right,height:d.height||16}}let x=l.getBoundingClientRect();return {top:x.top+2,left:x.left+2,height:16}}function mt(e,n,i=globalThis.document){let r=e.state.selection;if(r.empty)return [];let t=r.from,o=r.to,l=[],a=Ee(n,i);if(!a)return l;let{host:s,spans:f}=a;for(let u of f){let c=Number(u.dataset.pmStart),g=Number(u.dataset.pmEnd);if(!Number.isFinite(c)||!Number.isFinite(g)||g<=t||c>=o)continue;if(u.classList.contains("layout-run-tab")){let p=u.getBoundingClientRect();l.push({top:p.top,left:p.left,width:p.width,height:p.height});continue}let h=null;if(u.firstChild?.nodeType===Node.TEXT_NODE?h=u.firstChild:u.firstChild?.nodeType===Node.ELEMENT_NODE&&u.firstChild.tagName==="A"&&u.firstChild.firstChild?.nodeType===Node.TEXT_NODE&&(h=u.firstChild.firstChild),!h)continue;let x=Math.max(0,t-c),d=Math.min(h.length,o-c);if(x>=d)continue;let m=s.ownerDocument.createRange();m.setStart(h,x),m.setEnd(h,d);for(let p of Array.from(m.getClientRects()))l.push({top:p.top,left:p.left,width:p.width,height:p.height});}return l}function Le(e){return e?e.flowHeight??e.height:0}function gt(e){let{pageSize:n,margins:i,finalMargins:r,bodyBlocks:t,headers:o,footers:l,warn:a}=e,s=i.header??48,f=i.footer??48,u=i.top-s,c=i.bottom-f,g=Math.max(0,...(o??[]).map(Le)),h=Math.max(0,...(l??[]).map(Le)),x=g>u,d=h>c;if(!x&&!d)return {margins:i,finalMargins:r};let m=Math.max(0,n.h-24),p=false,b=M=>{let T={...M};return x&&(T.top=Math.max(M.top,s+g)),d&&(T.bottom=Math.max(M.bottom,f+h)),T.top+T.bottom>m&&(p=true,T.bottom=Math.max(0,Math.min(T.bottom,m-T.top)),T.top+T.bottom>m&&(T.top=Math.max(0,m-T.bottom))),T},k=b(i),H=b(r);if(t)for(let M of t){if(M.kind!=="sectionBreak")continue;let T=M;T.margins&&(T.margins=b(T.margins));}return p&&a&&a(`[layout] header/footer content exceeds page height; clamping margins to preserve a content area. pageHeight=${Math.round(n.h)} headerBand=${Math.round(g)} footerBand=${Math.round(h)} top=${Math.round(k.top)} bottom=${Math.round(k.bottom)}`),{margins:k,finalMargins:H}}var Ae=816,De=1056,U=96,le=48;function $(e){return Math.round(e/1440*96)}function N(e,n){return e!=null?$(e):n}function ht(e){return {w:e?.pageWidth?$(e.pageWidth):Ae,h:e?.pageHeight?$(e.pageHeight):De}}function pt(e){return {top:N(e?.marginTop,U),right:N(e?.marginRight,U),bottom:N(e?.marginBottom,U),left:N(e?.marginLeft,U),header:N(e?.headerDistance,le),footer:N(e?.footerDistance,le)}}function bt(e,n){let i={header:null,footer:null,firstHeader:null,firstFooter:null};if(!e?.package)return i;let r=e.package.headers,t=e.package.footers,o=null,l=null,a=null,s=null;if(r&&n?.headerReferences){let f=n.headerReferences.find(c=>c.type==="default");f?.rId&&(o=r.get(f.rId)??null);let u=n.headerReferences.find(c=>c.type==="first");u?.rId&&(a=r.get(u.rId)??null);}if(t&&n?.footerReferences){let f=n.footerReferences.find(c=>c.type==="default");f?.rId&&(l=t.get(f.rId)??null);let u=n.footerReferences.find(c=>c.type==="first");u?.rId&&(s=t.get(u.rId)??null);}return n?.titlePg||(!o&&a&&(o=a),!l&&s&&(l=s)),{header:o,footer:l,firstHeader:a,firstFooter:s}}function xt(e){let n=e?.columnCount??1;if(n<=1)return;let i=$(e?.columnSpace??720);return {count:n,gap:i,equalWidth:e?.equalWidth??true,separator:e?.separator}}function ve(e){let n=e.pageSize.w-e.margins.left-e.margins.right,i=e.columns;return !i||i.count<=1?n:Math.floor((n-(i.count-1)*i.gap)/i.count)}function Tt(e,n,i){let{configs:r,breakIndices:t}=chunkXCTYXYEU_js.W(e,n,i),o=0,l=[];for(let a=0;a<e.length;a++)l.push(ve(r[o]??n)),o<t.length&&a===t[o]&&o++;return l}exports.A=ut;exports.B=Ce;exports.C=ft;exports.D=dt;exports.E=mt;exports.F=gt;exports.G=Ae;exports.H=De;exports.I=U;exports.J=le;exports.K=$;exports.L=ht;exports.M=pt;exports.N=bt;exports.O=xt;exports.P=ve;exports.Q=Tt;exports.a=be;exports.b=We;exports.c=ne;exports.d=A;exports.e=Ge;exports.f=xe;exports.g=Ue;exports.h=Te;exports.i=$e;exports.j=qe;exports.k=je;exports.l=Je;exports.m=ie;exports.n=Me;exports.o=Ze;exports.p=ye;exports.q=et;exports.r=tt;exports.s=nt;exports.t=ot;exports.u=rt;exports.v=it;exports.w=Pe;exports.x=Be;exports.y=Re;exports.z=Ie;
|
|
1
|
+
'use strict';var chunk5TLT5TUD_js=require('./chunk-5TLT5TUD.js'),chunkXCTYXYEU_js=require('./chunk-XCTYXYEU.js'),chunk2AEZLDY4_js=require('./chunk-2AEZLDY4.js'),chunkBJSG6TEG_js=require('./chunk-BJSG6TEG.js');function be(e,n){let i=e.floating;if(!i)return false;let r=chunkXCTYXYEU_js.f(e,n),t=0;i.tblpX!==void 0?t=i.tblpX:i.tblpXSpec?i.tblpXSpec==="left"||i.tblpXSpec==="inside"?t=0:i.tblpXSpec==="right"||i.tblpXSpec==="outside"?t=n-r:i.tblpXSpec==="center"&&(t=(n-r)/2):e.justification==="center"?t=(n-r)/2:e.justification==="right"&&(t=n-r);let o=i.leftFromText??0,l=i.rightFromText??0,a=t-o,s=n-(t+r)-l;return a<chunkXCTYXYEU_js.E&&s<chunkXCTYXYEU_js.E}function We(e,n,i){for(let r=0;r<e.length;r++){let t=e[r];t.kind==="table"&&t.floating&&be(t,n[r]??i)&&(e[r]={...t,floating:void 0});}}function ne(e,n){if(e.pages.length===0)return null;let i=e.pageGap??0,r=0,t=null,o=1/0;for(let l=0;l<e.pages.length;l++){let a=e.pages[l],s=a.size?.h??e.pageSize.h,f=r,u=f+s;if(n.y>=f&&n.y<u)return {pageIndex:l,page:a,pageY:n.y-f};let c=f+s/2,g=Math.abs(n.y-c);g<o&&(o=g,t=l),r=u+i;}if(t!==null){let l=e.pages[t],a=A(e,t);return {pageIndex:t,page:l,pageY:Math.max(0,Math.min(n.y-a,l.size?.h??e.pageSize.h))}}return null}function A(e,n){let i=e.pageGap??0,r=0;for(let t=0;t<n&&t<e.pages.length;t++){let l=e.pages[t].size?.h??e.pageSize.h;r+=l+i;}return r}function Ge(e,n){return ne(e,{y:n})?.pageIndex??null}function oe(e,n){return e.findIndex(i=>i.id===n)}function Ve(e,n){let i=0;for(let r=e.fromLine;r<e.toLine&&r<n.lines.length;r++)i+=n.lines[r].lineHeight;return i}function xe(e,n,i,r){let t=[...e.page.fragments].sort((o,l)=>{let a=o.y-l.y;return Math.abs(a)>.5?a:o.x-l.x});for(let o of t){let l=oe(n,o.blockId);if(l===-1)continue;let a=n[l],s=i[l];if(!a||!s)continue;let f;if(o.kind==="paragraph"){if(a.kind!=="paragraph"||s.kind!=="paragraph")continue;f=Ve(o,s);}else if(o.kind==="table")f=o.height;else if(o.kind==="image")f=o.height;else continue;let u=r.x>=o.x&&r.x<=o.x+o.width,c=r.y>=o.y&&r.y<=o.y+f;if(u&&c)return {fragment:o,block:a,measure:s,pageIndex:e.pageIndex,localX:r.x-o.x,localY:r.y-o.y}}return null}function Ue(e,n,i,r){for(let t of e.page.fragments){if(t.kind!=="image")continue;let o=oe(n,t.blockId);if(o===-1)continue;let l=n[o],a=i[o];if(!l||!a)continue;let s=r.x>=t.x&&r.x<=t.x+t.width,f=r.y>=t.y&&r.y<=t.y+t.height;if(s&&f)return {fragment:t,block:l,measure:a,pageIndex:e.pageIndex,localX:r.x-t.x,localY:r.y-t.y}}return null}function Te(e,n,i,r){for(let t of e.page.fragments){if(t.kind!=="table")continue;let o=t,l=r.x>=o.x&&r.x<=o.x+o.width,a=r.y>=o.y&&r.y<=o.y+o.height;if(!l||!a)continue;let s=oe(n,o.blockId);if(s===-1)continue;let f=n[s],u=i[s];if(!f||f.kind!=="table"||!u||u.kind!=="table")continue;let c=f,g=u,h=r.x-o.x,x=r.y-o.y,d=o.headerRowCount??0,m=d>0&&o.continuesFromPrev?chunkXCTYXYEU_js.Y(g,d):0,p=0,b=-1;if(g.rows.length===0||c.rows.length===0)continue;if(m>0&&x<m){let F=0;for(let w=0;w<d&&w<g.rows.length;w++){let L=g.rows[w];if(x>=F&&x<F+L.height){b=w;break}F+=L.height;}b===-1&&(b=0);}else {let F=x-m;for(let w=o.fromRow;w<o.toRow&&w<g.rows.length;w++){let L=g.rows[w];if(F>=p&&F<p+L.height){b=w;break}p+=L.height;}}if(b===-1&&(b=Math.min(o.toRow-1,g.rows.length-1),b<o.fromRow))continue;let k=g.rows[b],H=c.rows[b];if(!k||!H)continue;let M=0,T=-1;if(k.cells.length===0||H.cells.length===0)continue;for(let F=0;F<k.cells.length;F++){let w=k.cells[F];if(h>=M&&h<M+w.width){T=F;break}M+=w.width;}if(T===-1&&(T=k.cells.length-1,T<0))continue;let P=k.cells[T],S=H.cells[T];if(!P||!S)continue;let y=0;if(m>0&&b<d)for(let F=0;F<b;F++)y+=g.rows[F]?.height??0;else {y=m;for(let F=o.fromRow;F<b;F++)y+=g.rows[F]?.height??0;}let R=0;for(let F=0;F<T;F++)R+=k.cells[F]?.width??0;let X,I;if(S.blocks&&S.blocks.length>0){let F=S.blocks[0],w=P.blocks[0];F.kind==="paragraph"&&w?.kind==="paragraph"&&(X=F,I=w);}let E=h-R,C=x-y;return {fragment:o,block:c,measure:g,pageIndex:e.pageIndex,rowIndex:b,colIndex:T,cellBlock:X,cellMeasure:I,cellLocalX:Math.max(0,E),cellLocalY:Math.max(0,C)}}return null}function $e(e,n,i,r){let t={pageHit:null,fragmentHit:null,tableCellHit:null};if(t.pageHit=ne(e,r),!t.pageHit)return t;let o=A(e,t.pageHit.pageIndex),l={x:r.x,y:r.y-o};return t.fragmentHit=xe(t.pageHit,n,i,l),t.fragmentHit?.fragment.kind==="table"&&(t.tableCellHit=Te(t.pageHit,n,i,l)),t}function qe(e){if(e.pages.length===0)return 0;let n=e.pageGap??0,i=0;for(let r=0;r<e.pages.length;r++){let t=e.pages[r];i+=t.size?.h??e.pageSize.h,r<e.pages.length-1&&(i+=n);}return i}function je(e,n){return A(e,n)}function Je(e,n){if(n<0||n>=e.pages.length)return null;let i=A(e,n),t=e.pages[n].size?.h??e.pageSize.h;return {top:i,bottom:i+t}}function re(e){return {fontFamily:e.fontFamily??"Arial",fontSize:e.fontSize??12,bold:e.bold,italic:e.italic,letterSpacing:e.letterSpacing}}function ke(e,n){let i=[];for(let r=n.fromRun;r<=n.toRun&&r<e.runs.length;r++){let t=e.runs[r];if(t){if(t.kind==="tab"||t.kind==="image"||t.kind==="lineBreak"){i.push(t);continue}if(t.kind==="text"){let o=t.text??"",l=r===n.fromRun,a=r===n.toRun;if(l||a){let s=l?n.fromChar:0,f=a?n.toChar:o.length,u=o.slice(s,f);u.length>0&&i.push({...t,text:u});}else i.push(t);}}}return i}function Fe(e,n){let i,r,t=e.pmStart??0,o=0;for(let l=0;l<e.runs.length&&l<=n.toRun;l++){let a=e.runs[l];a&&(l<n.fromRun?a.kind==="text"?o+=(a.text??"").length:(a.kind==="tab"||a.kind==="lineBreak"||a.kind==="image")&&(o+=1):l===n.fromRun&&(o+=n.fromChar,i=t+o,a.kind==="text"&&(o=n.fromChar)));}if(i!==void 0){let l=0;for(let a=n.fromRun;a<=n.toRun&&a<e.runs.length;a++){let s=e.runs[a];if(s)if(s.kind==="text"){let f=s.text??"",u=a===n.fromRun?n.fromChar:0,c=a===n.toRun?n.toChar:f.length;l+=c-u;}else (s.kind==="tab"||s.kind==="lineBreak"||s.kind==="image")&&(l+=1);}r=i+l;}return {pmStart:i,pmEnd:r}}function Ke(e,n,i,r){let t=0;for(let o=i;o<r&&o<e.lines.length;o++){let a=e.lines[o].lineHeight;if(n>=t&&n<t+a)return o;t+=a;}return r>i?Math.min(r-1,e.lines.length-1):null}function Qe(e,n,i,r){let{pmStart:t,pmEnd:o}=Fe(e,n);if(t===void 0||o===void 0)return {charOffset:0,pmPosition:e.pmStart??0};let l=e.attrs?.alignment??"left",a=0;l==="center"?a=Math.max(0,(r-n.width)/2):l==="right"&&(a=Math.max(0,r-n.width));let s=Math.max(0,i-a);if(s<=0)return {charOffset:0,pmPosition:t};let f=ke(e,n);if(f.length===0)return {charOffset:0,pmPosition:t};let u=0,c=0;for(let h of f){if(h.kind==="tab"){let x=h.width??48,d=u+x;if(s<=d){let m=u+x/2;return s<m?{charOffset:c,pmPosition:t+c}:{charOffset:c+1,pmPosition:t+c+1}}u=d,c+=1;continue}if(h.kind==="image"){let x=h.width,d=u+x;if(s<=d){let m=u+x/2;return s<m?{charOffset:c,pmPosition:t+c}:{charOffset:c+1,pmPosition:t+c+1}}u=d,c+=1;continue}if(h.kind==="lineBreak"){if(s>=u)return {charOffset:c,pmPosition:t+c};c+=1;continue}if(h.kind==="text"){let x=h.text??"";if(x.length===0)continue;let d=re(h),m=chunkXCTYXYEU_js.m(x,d),p=u+m.width;if(s<=p){let b=s-u,k=chunkXCTYXYEU_js.n(b,m.charWidths),H=c+k;return {charOffset:H,pmPosition:t+H}}u=p,c+=x.length;}}return {charOffset:o-t,pmPosition:o}}function ie(e){let{fragment:n,block:i,measure:r,localX:t,localY:o}=e;if(n.kind!=="paragraph"||i.kind!=="paragraph"||r.kind!=="paragraph")return null;let l=n,a=i,s=r,f=Ke(s,o,l.fromLine,l.toLine);if(f===null)return null;let u=s.lines[f];if(!u)return null;let c=0;for(let k=l.fromLine;k<f;k++)c+=s.lines[k]?.lineHeight??0;let g=a.attrs?.indent,h=g?.left??0,x=g?.right??0,d=Math.max(0,n.width-h-x),m=t-h,{charOffset:p,pmPosition:b}=Qe(a,u,m,d);return {pmPosition:b,charOffset:p,lineIndex:f}}function Me(e){let{cellBlock:n,cellMeasure:i,cellLocalX:r,cellLocalY:t}=e;if(!n||!i)return null;let o={fragment:{kind:"paragraph",blockId:n.id,x:0,y:0,width:i.lines.reduce((a,s)=>Math.max(a,s.width),100),fromLine:0,toLine:i.lines.length,height:i.totalHeight},block:n,measure:i,pageIndex:e.pageIndex,localX:r,localY:t};return ie(o)?.pmPosition??null}function Ze(e,n){if(n)return Me(n);if(!e)return null;let{fragment:i}=e;return i.kind==="paragraph"?ie(e)?.pmPosition??null:i.kind==="image"?i.pmStart??null:null}function ye(e,n,i,r){let t=e.pmStart??0,o=e.pmEnd??t;if(i<t||i>o)return null;let l=i-t;for(let a=0;a<n.lines.length;a++){let s=n.lines[a],{pmStart:f,pmEnd:u}=Fe(e,s);if(f===void 0||u===void 0)continue;let c=f-t,g=u-t;if(l>=c&&l<=g){let h=l-c,x=ke(e,s),d=0,m=0;for(let p of x)if(p.kind==="tab"){if(h<=m+1)return h<=m?{x:d,lineIndex:a}:{x:d+(p.width??48),lineIndex:a};d+=p.width??48,m+=1;}else if(p.kind==="image"){if(h<=m+1)return h<=m?{x:d,lineIndex:a}:{x:d+p.width,lineIndex:a};d+=p.width,m+=1;}else if(p.kind==="lineBreak"){if(h<=m)return {x:d,lineIndex:a};m+=1;}else if(p.kind==="text"){let b=p.text??"";if(h<=m+b.length){let M=h-m,T=re(p),P=chunkXCTYXYEU_js.m(b.slice(0,M),T);return {x:d+P.width,lineIndex:a}}let k=re(p),H=chunkXCTYXYEU_js.m(b,k);d+=H.width,m+=b.length;}return {x:d,lineIndex:a}}}return null}function et(e,n,i,r,t,o,l){let a=ye(e,n,i);if(!a)return null;let s=e.attrs?.alignment??"left",f=e.attrs?.indent,u=f?.left??0,c=f?.right??0,g=Math.max(0,o-u-c),h=n.lines[a.lineIndex];if(!h)return null;let x=0;s==="center"?x=Math.max(0,(g-h.width)/2):s==="right"&&(x=Math.max(0,g-h.width));let d=0;for(let m=l;m<a.lineIndex;m++)d+=n.lines[m]?.lineHeight??0;return {x:r+u+x+a.x,y:t+d,height:h.lineHeight}}function tt(e,n,i={}){let r=i.scope??"body",t=r==="body"?"layout-page-content":`layout-page-${r}`,o=`.${t} .layout-table-cell`,l=e.querySelectorAll(`.${t} .layout-table-cell-selected`);for(let c of Array.from(l))c.classList.remove("layout-table-cell-selected");let a=n.selection;if(!("$anchorCell"in a&&typeof a.forEachCell=="function")||!a.forEachCell)return;let f=[];a.forEachCell((c,g)=>{f.push([g,g+c.nodeSize]);});let u=e.querySelectorAll(o);for(let c of Array.from(u)){let g=c,h=g.dataset.pmStart;if(h===void 0)continue;let x=Number(h);for(let[d,m]of f)if(x>=d&&x<m){g.classList.add("layout-table-cell-selected");break}}}function He(e){return {fontFamily:e.fontFamily??"Arial",fontSize:e.fontSize??12,bold:e.bold,italic:e.italic,letterSpacing:e.letterSpacing}}function ae(e,n){return e.findIndex(i=>i.id===n)}function V(e,n){let r=(e.pmStart??0)+1,t=0,o;for(let s=0;s<e.runs.length&&s<=n.toRun;s++){let f=e.runs[s];if(f){if(s<n.fromRun)f.kind==="text"?t+=(f.text??"").length:t+=1;else if(s===n.fromRun){t+=n.fromChar,o=r+t;break}}}o===void 0&&(o=r);let l=0;for(let s=n.fromRun;s<=n.toRun&&s<e.runs.length;s++){let f=e.runs[s];if(f)if(f.kind==="text"){let u=f.text??"",c=s===n.fromRun?n.fromChar:0,g=s===n.toRun?n.toChar:u.length;l+=g-c;}else l+=1;}let a=o+l;return {pmStart:o,pmEnd:a}}function we(e,n,i,r){let t=[];for(let o=0;o<n.lines.length;o++){let l=n.lines[o],a=V(e,l);a.pmStart===void 0||a.pmEnd===void 0||a.pmEnd>i&&a.pmStart<r&&t.push({line:l,index:o});}return t}function W(e,n,i){let r=V(e,n);return r.pmStart===void 0?0:Math.max(0,i-r.pmStart)}function G(e,n,i,r){let t=0,o=0;for(let l=n.fromRun;l<=n.toRun&&l<e.runs.length;l++){let a=e.runs[l];if(a){if(a.kind==="tab"){let s=a.width??48;if(o+1>=i)return i<=o?t:t+s;t+=s,o+=1;continue}if(a.kind==="image"){let s=a.width;if(o+1>=i)return i<=o?t:t+s;t+=s,o+=1;continue}if(a.kind==="lineBreak"){if(i<=o)return t;o+=1;continue}if(a.kind==="text"){let s=a.text??"",f=l===n.fromRun,u=l===n.toRun,c=f?n.fromChar:0,g=u?n.toChar:s.length,h=s.slice(c,g);if(o+h.length>=i){let m=i-o,p=He(a),b=chunkXCTYXYEU_js.m(h.slice(0,m),p);return t+b.width}let x=He(a),d=chunkXCTYXYEU_js.m(h,x);t+=d.width,o+=h.length;}}}return t}function J(e,n){let i=0;for(let r=0;r<n&&r<e.lines.length;r++)i+=e.lines[r].lineHeight;return i}function nt(e,n,i,r,t){if(r===t)return [];let o=Math.min(r,t),l=Math.max(r,t),a=[];for(let s=0;s<e.pages.length;s++){let f=e.pages[s],u=A(e,s);for(let c of f.fragments){if(c.kind==="paragraph"){let g=ae(n,c.blockId);if(g===-1)continue;let h=n[g],x=i[g];if(!h||h.kind!=="paragraph"||!x||x.kind!=="paragraph")continue;let d=h,m=x,p=c,b=we(d,m,o,l);for(let{line:k,index:H}of b){if(H<p.fromLine||H>=p.toLine)continue;let M=V(d,k);if(M.pmStart===void 0||M.pmEnd===void 0)continue;let T=Math.max(M.pmStart,o),P=Math.min(M.pmEnd,l);if(T>=P)continue;let S=W(d,k,T),y=W(d,k,P),B=d.attrs?.indent,R=B?.left??0,X=B?.right??0,I=Math.max(0,c.width-R-X),E=G(d,k,S),C=G(d,k,y),F=d.attrs?.alignment??"left",w=0;F==="center"?w=Math.max(0,(I-k.width)/2):F==="right"&&(w=Math.max(0,I-k.width));let L=J(m,H)-J(m,p.fromLine),D=c.x+R+w+Math.min(E,C),Y=Math.max(1,Math.abs(C-E)),z=c.y+L;a.push({x:D,y:z+u,width:Y,height:k.lineHeight,pageIndex:s});}}if(c.kind==="table"){let g=ae(n,c.blockId);if(g===-1)continue;let h=n[g],x=i[g];if(!h||h.kind!=="table"||!x||x.kind!=="table")continue;let d=h,m=x,p=c,b=[],k=0;for(let y=0;y<m.rows.length;y++)b.push(Math.round(k)),k+=m.rows[y]?.height??0;b.push(Math.round(k));let H=p.headerRowCount??0,M=H>0&&p.continuesFromPrev?chunkXCTYXYEU_js.Y(m,H):0,T=(b[p.fromRow]??0)+(p.topClip??0),P=p.bottomClip!==void 0?Math.round(p.height):M+((b[p.toRow]??0)-T),S=y=>M+(y-T);for(let y=p.fromRow;y<p.toRow&&y<d.rows.length;y++){let B=d.rows[y],R=m.rows[y];if(!B||!R)continue;let X=b[y]??0,I=0;for(let E=0;E<B.cells.length;E++){let C=B.cells[E],F=R.cells[E];if(!C||!F)continue;let w=C.padding?.top??0,L=chunkXCTYXYEU_js.O(C.blocks,F.blocks,w);for(let D=0;D<C.blocks.length;D++){let Y=C.blocks[D],z=F.blocks[D];if(!Y||Y.kind!=="paragraph"||!z||z.kind!=="paragraph")continue;let O=Y,_e=z,Xe=L.lineTops[D]??[],Oe=we(O,_e,o,l);for(let{line:v,index:Ne}of Oe){let q=V(O,v);if(q.pmStart===void 0||q.pmEnd===void 0)continue;let se=Math.max(q.pmStart,o),ce=Math.min(q.pmEnd,l);if(se>=ce)continue;let Q=S(X+(Xe[Ne]??0));if(Q+v.lineHeight<=M||Q>=P)continue;let Ye=W(O,v,se),ze=W(O,v,ce),ue=G(O,v,Ye,F.width),fe=G(O,v,ze,F.width);a.push({x:p.x+I+Math.min(ue,fe),y:p.y+Q+u,width:Math.max(1,Math.abs(fe-ue)),height:v.lineHeight,pageIndex:s});}}I+=F.width;}}}if(c.kind==="image"){let g=c.pmStart??0;(c.pmEnd??g+1)>o&&g<l&&a.push({x:c.x,y:c.y+u,width:c.width,height:c.height,pageIndex:s});}}}return a}function ot(e,n,i,r){for(let t=0;t<e.pages.length;t++){let o=e.pages[t],l=A(e,t);for(let a of o.fragments){if(a.kind==="paragraph"){let s=ae(n,a.blockId);if(s===-1)continue;let f=n[s],u=i[s];if(!f||f.kind!=="paragraph"||!u||u.kind!=="paragraph")continue;let c=f,g=u,h=a,x=c.pmStart??0,d=c.pmEnd??x;if(r<x||r>d)continue;for(let m=h.fromLine;m<h.toLine;m++){let p=g.lines[m];if(!p)continue;let b=V(c,p);if(!(b.pmStart===void 0||b.pmEnd===void 0)&&r>=b.pmStart&&r<=b.pmEnd){let k=W(c,p,r),H=c.attrs?.indent,M=H?.left??0,T=H?.right??0,P=Math.max(0,a.width-M-T),S=G(c,p,k),y=c.attrs?.alignment??"left",B=0;y==="center"?B=Math.max(0,(P-p.width)/2):y==="right"&&(B=Math.max(0,P-p.width));let R=J(g,m)-J(g,h.fromLine);return {x:a.x+M+B+S,y:a.y+R+l,height:p.lineHeight,pageIndex:t}}}}if(a.kind==="image"){let s=a.pmStart??0,f=a.pmEnd??s+1;if(r>=s&&r<=f){let u=r===s?0:a.width;return {x:a.x+u,y:a.y+l,height:a.height,pageIndex:t}}}}}return null}function rt(e){return e.length<=1?false:new Set(e.map(i=>i.pageIndex)).size>1}function it(e){let n=new Map;for(let i of e){let r=n.get(i.pageIndex)??[];r.push(i),n.set(i.pageIndex,r);}return n}function at(e){if(e.kind!=="paragraph")return false;let n=e.attrs;return n?!!(n.borders?.top||n.borders?.bottom||n.spacingExplicit?.before||n.spacingExplicit?.after):false}function Pe(e){return Se(e)}function Se(e){let n=new Set;for(let i=1;i<e.length;i++){let r=e[i-1],t=e[i];r.kind==="table"&&t.kind==="paragraph"&&(t.runs.length>0||at(t)||n.add(i));}return e.map((i,r)=>{if(i.kind==="table")return lt(i);if(i.kind!=="paragraph")return i;let t=n.has(r),o=i.attrs?.spacingExplicit,l=i.attrs?.spacing?.before!=null,a=i.attrs?.spacing?.after!=null,s=l&&!o?.before,f=a&&!o?.after,u=s||f;if(!u&&!t)return i;let c=i.attrs;return u&&c?.spacing&&(c={...c,spacing:{...c.spacing,before:o?.before?c.spacing.before:void 0,after:o?.after?c.spacing.after:void 0}}),t&&(c={...c??{},suppressEmptyParagraphHeight:true}),{...i,attrs:c}})}function lt(e){let n=false,i=e.rows.map(r=>{let t=false,o=r.cells.map(l=>{let a=Se(l.blocks);return a.some((f,u)=>f!==l.blocks[u])?(t=true,{...l,blocks:a}):l});return t?(n=true,{...r,cells:o}):r});return n?{...e,rows:i}:e}function st(e){return e?.align??e?.alignment}function Be(e,n,i,r){let t=r.section==="header"?r.margins.header??48:r.pageSize.h-(r.margins.footer??48)-i,o=e.position?.vertical;if(!o)return n;let l=st(o),a=o.posOffset!==void 0?chunkBJSG6TEG_js.f(o.posOffset):void 0;if(o.relativeTo==="page"){if(a!==void 0)return a-t;if(l==="top")return -t;if(l==="bottom")return r.pageSize.h-e.height-t;if(l==="center")return (r.pageSize.h-e.height)/2-t}if(o.relativeTo==="margin"){let s=r.margins.top,f=r.pageSize.h-r.margins.top-r.margins.bottom;if(a!==void 0)return s+a-t;if(l==="top")return s-t;if(l==="bottom")return s+f-e.height-t;if(l==="center")return s+(f-e.height)/2-t}return a!==void 0?n+a:n}function Re(e){switch(e.kind){case "paragraph":case "table":return true;case "image":return !e.anchor?.isAnchored;case "textBox":return e.displayMode===void 0||e.displayMode==="inline";default:return false}}function ct(e){return e?e.kind==="paragraph"||e.kind==="table"?e.totalHeight:e.kind==="image"||e.kind==="textBox"?e.height:0:0}function Ie(e,n,i,r){let t=0,o=0,l=0;for(let a=0;a<e.length;a++){let s=e[a],f=n[a];if(!(!s||!f)){if(s.kind==="paragraph"&&f.kind==="paragraph"){let u=l,c=u+f.totalHeight;t=Math.min(t,u),o=Math.max(o,c);for(let g of s.runs){if(g.kind!=="image"||!g.position)continue;let h=Be(g,u,i,r);t=Math.min(t,h),o=Math.max(o,h+g.height);}l=c;}else if(s.kind==="table"&&f.kind==="table"){let u=l+f.totalHeight;t=Math.min(t,l),o=Math.max(o,u),l=u;}else if(s.kind==="image"&&f.kind==="image"){let u=l+f.height;t=Math.min(t,l),o=Math.max(o,u),l=u;}else if(s.kind==="textBox"&&f.kind==="textBox"){let u=l+f.height;t=Math.min(t,l),o=Math.max(o,u),s.displayMode!=="float"&&(l=u);}}}return {visualTop:t,visualBottom:o}}function ut(e,n,i,r){if(!e||!e.content||e.content.length===0)return;let t=chunk2AEZLDY4_js.b(e.content,{styles:r.styles??void 0,theme:r.theme??null,defaultTabStopTwips:r.defaultTabStopTwips??null});return Ce(t,n,i,r)}function Ce(e,n,i,r){let t=chunk5TLT5TUD_js.c(e,{theme:r.theme??void 0});if(t.length===0)return;let o=Pe(t),l=r.measureBlocks(o,n),a=0,s=0;for(let c=0;c<o.length;c++){let g=ct(l[c]);a+=g,Re(o[c])&&(s+=g);}let{visualTop:f,visualBottom:u}=Ie(o,l,a,i);return {blocks:o,measures:l,height:a,flowHeight:s,visualTop:f,visualBottom:u}}var K={header:null,footer:null};function ft(){K.header=null,K.footer=null;}function Ee(e,n){let i=n.querySelectorAll(`.layout-page-${e}`);if(i.length===0)return null;let r=n.defaultView,t=r?r.innerHeight/2:0,o=i[0],l=1/0;for(let c of Array.from(i)){let g=c.getBoundingClientRect(),h=Math.abs((g.top+g.bottom)/2-t);h<l&&(l=h,o=c);}let a=K[e];if(a&&a.host===o&&a.host.isConnected)return a;let s=Array.from(o.querySelectorAll("span[data-pm-start][data-pm-end]")),f=Array.from(o.querySelectorAll("[data-pm-start][data-pm-end]")),u={host:o,spans:s,ranged:f};return K[e]=u,u}function dt(e,n,i=globalThis.document){let r=e.state.selection;if(!r.empty)return null;let t=r.head,o=Ee(n,i);if(!o)return null;let{host:l,spans:a}=o;for(let d of a){let m=Number(d.dataset.pmStart),p=Number(d.dataset.pmEnd);if(!(!Number.isFinite(m)||!Number.isFinite(p))&&t>=m&&t<=p){let b=l.ownerDocument.createRange(),k=l.ownerDocument.createTreeWalker(d,NodeFilter.SHOW_TEXT),H=t-m,M=k.nextNode();for(;M;){let S=M.data.length;if(H<=S){try{b.setStart(M,H),b.setEnd(M,H);let y=b.getClientRects()[0]??b.getBoundingClientRect();if(y&&y.height>0)return {top:y.top,left:y.left,height:y.height}}catch{}break}H-=S,M=k.nextNode();}let T=d.getBoundingClientRect(),P=(t-m)/Math.max(1,p-m);return {top:T.top,left:T.left+T.width*P,height:T.height}}}let s=l.querySelector(`[data-pm-start="${t}"]`);if(s){let d=s.getBoundingClientRect();return {top:d.top,left:d.left+1,height:d.height||16}}let f=o.ranged,u=null,c=1/0;for(let d of f){let m=Number(d.dataset.pmStart),p=Number(d.dataset.pmEnd);if(!Number.isFinite(m)||!Number.isFinite(p)||t<m||t>p)continue;let b=p-m;b<c&&(c=b,u=d);}if(u){let d=u.getBoundingClientRect(),m=Number(u.dataset.pmEnd),p=t>=m;return {top:d.top,left:p?d.right:d.left+1,height:d.height||16}}let g=null,h=-1/0;for(let d of f){let m=Number(d.dataset.pmStart);Number.isFinite(m)&&(m>t||m>h&&(h=m,g=d));}if(g){let d=g.getBoundingClientRect();return {top:d.top,left:d.right,height:d.height||16}}let x=l.getBoundingClientRect();return {top:x.top+2,left:x.left+2,height:16}}function mt(e,n,i=globalThis.document){let r=e.state.selection;if(r.empty)return [];let t=r.from,o=r.to,l=[],a=Ee(n,i);if(!a)return l;let{host:s,spans:f}=a;for(let u of f){let c=Number(u.dataset.pmStart),g=Number(u.dataset.pmEnd);if(!Number.isFinite(c)||!Number.isFinite(g)||g<=t||c>=o)continue;if(u.classList.contains("layout-run-tab")){let p=u.getBoundingClientRect();l.push({top:p.top,left:p.left,width:p.width,height:p.height});continue}let h=null;if(u.firstChild?.nodeType===Node.TEXT_NODE?h=u.firstChild:u.firstChild?.nodeType===Node.ELEMENT_NODE&&u.firstChild.tagName==="A"&&u.firstChild.firstChild?.nodeType===Node.TEXT_NODE&&(h=u.firstChild.firstChild),!h)continue;let x=Math.max(0,t-c),d=Math.min(h.length,o-c);if(x>=d)continue;let m=s.ownerDocument.createRange();m.setStart(h,x),m.setEnd(h,d);for(let p of Array.from(m.getClientRects()))l.push({top:p.top,left:p.left,width:p.width,height:p.height});}return l}function Le(e){return e?e.flowHeight??e.height:0}function gt(e){let{pageSize:n,margins:i,finalMargins:r,bodyBlocks:t,headers:o,footers:l,warn:a}=e,s=i.header??48,f=i.footer??48,u=i.top-s,c=i.bottom-f,g=Math.max(0,...(o??[]).map(Le)),h=Math.max(0,...(l??[]).map(Le)),x=g>u,d=h>c;if(!x&&!d)return {margins:i,finalMargins:r};let m=Math.max(0,n.h-24),p=false,b=M=>{let T={...M};return x&&(T.top=Math.max(M.top,s+g)),d&&(T.bottom=Math.max(M.bottom,f+h)),T.top+T.bottom>m&&(p=true,T.bottom=Math.max(0,Math.min(T.bottom,m-T.top)),T.top+T.bottom>m&&(T.top=Math.max(0,m-T.bottom))),T},k=b(i),H=b(r);if(t)for(let M of t){if(M.kind!=="sectionBreak")continue;let T=M;T.margins&&(T.margins=b(T.margins));}return p&&a&&a(`[layout] header/footer content exceeds page height; clamping margins to preserve a content area. pageHeight=${Math.round(n.h)} headerBand=${Math.round(g)} footerBand=${Math.round(h)} top=${Math.round(k.top)} bottom=${Math.round(k.bottom)}`),{margins:k,finalMargins:H}}var Ae=816,De=1056,U=96,le=48;function $(e){return Math.round(e/1440*96)}function N(e,n){return e!=null?$(e):n}function ht(e){return {w:e?.pageWidth?$(e.pageWidth):Ae,h:e?.pageHeight?$(e.pageHeight):De}}function pt(e){return {top:N(e?.marginTop,U),right:N(e?.marginRight,U),bottom:N(e?.marginBottom,U),left:N(e?.marginLeft,U),header:N(e?.headerDistance,le),footer:N(e?.footerDistance,le)}}function bt(e,n){let i={header:null,footer:null,firstHeader:null,firstFooter:null};if(!e?.package)return i;let r=e.package.headers,t=e.package.footers,o=null,l=null,a=null,s=null;if(r&&n?.headerReferences){let f=n.headerReferences.find(c=>c.type==="default");f?.rId&&(o=r.get(f.rId)??null);let u=n.headerReferences.find(c=>c.type==="first");u?.rId&&(a=r.get(u.rId)??null);}if(t&&n?.footerReferences){let f=n.footerReferences.find(c=>c.type==="default");f?.rId&&(l=t.get(f.rId)??null);let u=n.footerReferences.find(c=>c.type==="first");u?.rId&&(s=t.get(u.rId)??null);}return n?.titlePg||(!o&&a&&(o=a),!l&&s&&(l=s)),{header:o,footer:l,firstHeader:a,firstFooter:s}}function xt(e){let n=e?.columnCount??1;if(n<=1)return;let i=$(e?.columnSpace??720);return {count:n,gap:i,equalWidth:e?.equalWidth??true,separator:e?.separator}}function ve(e){let n=e.pageSize.w-e.margins.left-e.margins.right,i=e.columns;return !i||i.count<=1?n:Math.floor((n-(i.count-1)*i.gap)/i.count)}function Tt(e,n,i){let{configs:r,breakIndices:t}=chunkXCTYXYEU_js.W(e,n,i),o=0,l=[];for(let a=0;a<e.length;a++)l.push(ve(r[o]??n)),o<t.length&&a===t[o]&&o++;return l}exports.A=ut;exports.B=Ce;exports.C=ft;exports.D=dt;exports.E=mt;exports.F=gt;exports.G=Ae;exports.H=De;exports.I=U;exports.J=le;exports.K=$;exports.L=ht;exports.M=pt;exports.N=bt;exports.O=xt;exports.P=ve;exports.Q=Tt;exports.a=be;exports.b=We;exports.c=ne;exports.d=A;exports.e=Ge;exports.f=xe;exports.g=Ue;exports.h=Te;exports.i=$e;exports.j=qe;exports.k=je;exports.l=Je;exports.m=ie;exports.n=Me;exports.o=Ze;exports.p=ye;exports.q=et;exports.r=tt;exports.s=nt;exports.t=ot;exports.u=rt;exports.v=it;exports.w=Pe;exports.x=Be;exports.y=Re;exports.z=Ie;
|