@eigenpal/docx-editor-core 1.5.0 → 1.6.1

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.
Files changed (252) hide show
  1. package/dist/agent/index.d.mts +4 -4
  2. package/dist/agent/index.d.ts +4 -4
  3. package/dist/agent/index.js +1 -1
  4. package/dist/agent/index.mjs +1 -1
  5. package/dist/chunk-3HLRRK6N.mjs +2 -0
  6. package/dist/{chunk-COV4LHQ7.js → chunk-4272FQ2E.js} +1 -1
  7. package/dist/chunk-47SKD7QB.mjs +4 -0
  8. package/dist/chunk-4DCTKHS5.js +1 -0
  9. package/dist/{chunk-3SJQRYO7.js → chunk-4HNEXEGS.js} +1 -1
  10. package/dist/chunk-4U2S3WV2.js +1 -0
  11. package/dist/{chunk-3HENAL6V.mjs → chunk-5EP47PMQ.mjs} +1 -1
  12. package/dist/{chunk-T4O4PFJD.mjs → chunk-6ENZQGYR.mjs} +1 -1
  13. package/dist/chunk-7EU6E64E.mjs +1 -0
  14. package/dist/chunk-A7C3DGQA.mjs +1 -0
  15. package/dist/chunk-B6FA4MJ5.mjs +1 -0
  16. package/dist/chunk-BJSG6TEG.js +1 -0
  17. package/dist/chunk-BMP2OSXE.js +1 -0
  18. package/dist/{chunk-NPFFCPZ6.js → chunk-DEQFU56O.js} +1 -1
  19. package/dist/chunk-DFDL337G.js +4 -0
  20. package/dist/chunk-DKUHG27E.js +1 -0
  21. package/dist/{chunk-WWVIVYX6.mjs → chunk-DU5TWD2W.mjs} +1 -1
  22. package/dist/chunk-DUVSDFRG.js +2 -0
  23. package/dist/{chunk-TV6JLFY5.js → chunk-DUXHJ6QP.js} +1 -1
  24. package/dist/{chunk-TE2AF7FM.js → chunk-FETIBXTH.js} +1 -1
  25. package/dist/chunk-GLPOVLZD.mjs +1 -0
  26. package/dist/{chunk-M7KTKPGO.mjs → chunk-HEJJXAXN.mjs} +1 -1
  27. package/dist/chunk-HQ76VZAN.mjs +1 -0
  28. package/dist/{chunk-WYFK4QOF.mjs → chunk-ICNIAAH7.mjs} +1 -1
  29. package/dist/{chunk-5WINQXA3.js → chunk-ILPNMG7Q.js} +1 -1
  30. package/dist/{chunk-TDYWEVAE.js → chunk-K7NSOCSY.js} +1 -1
  31. package/dist/{chunk-6KM4VW4L.js → chunk-KEDY4GFG.js} +3 -3
  32. package/dist/chunk-KNY7SXPJ.mjs +1 -0
  33. package/dist/{chunk-SKBHY5MK.mjs → chunk-KPWWI5UW.mjs} +1 -1
  34. package/dist/chunk-LVUL7O27.js +1 -0
  35. package/dist/{chunk-O2643IUW.js → chunk-LW5OFHSW.js} +2 -2
  36. package/dist/chunk-MWOHCSZE.js +1 -0
  37. package/dist/chunk-NKIDBERV.js +1 -0
  38. package/dist/chunk-NN2EJIO7.mjs +1 -0
  39. package/dist/{chunk-QUM4DFRE.mjs → chunk-O4RCQNUW.mjs} +1 -1
  40. package/dist/chunk-O5L4BZCZ.mjs +1 -0
  41. package/dist/chunk-OSTMAXZZ.mjs +1 -0
  42. package/dist/{chunk-PYDX4MOT.mjs → chunk-OWGY46IW.mjs} +1 -1
  43. package/dist/chunk-PGWY6UFK.js +1 -0
  44. package/dist/chunk-PJEB3ZWG.mjs +3 -0
  45. package/dist/{chunk-GB7RICH6.js → chunk-PM4KDJJ2.js} +1 -1
  46. package/dist/chunk-Q2VALXEU.js +3 -0
  47. package/dist/chunk-QCPISGPW.mjs +1 -0
  48. package/dist/{chunk-CBKJOPOW.mjs → chunk-QRBFMR7Z.mjs} +1 -1
  49. package/dist/chunk-RRJKF2XI.mjs +1 -0
  50. package/dist/chunk-SHZOAUHB.mjs +1 -0
  51. package/dist/chunk-TT3ILFZC.js +1 -0
  52. package/dist/chunk-TXAB4I4M.mjs +2 -0
  53. package/dist/chunk-UC7JW66O.mjs +1 -0
  54. package/dist/chunk-VMBCUUZM.mjs +1 -0
  55. package/dist/chunk-WTIN6QHX.js +1 -0
  56. package/dist/{chunk-P7HWOJC5.js → chunk-WVY2UXAK.js} +1 -1
  57. package/dist/chunk-XCTYXYEU.js +1 -0
  58. package/dist/{chunk-WXSGCEBZ.js → chunk-XCXQWCV2.js} +1 -1
  59. package/dist/{chunk-M3UL6EUU.mjs → chunk-YSBX4LFA.mjs} +2 -2
  60. package/dist/chunk-YUHOVME2.js +1 -0
  61. package/dist/{content-BlWiORm-.d.mts → content-BEFz1zcs.d.mts} +2 -2
  62. package/dist/{content-eG_Rtl0l.d.ts → content-DNcMlHU0.d.ts} +2 -2
  63. package/dist/{contentControlValues-CO7pUqOf.d.ts → contentControlValues-2pV4M4kG.d.ts} +1 -1
  64. package/dist/{contentControlValues-DfYN9BZ8.d.mts → contentControlValues-CKWIIkkr.d.mts} +1 -1
  65. package/dist/core-plugins.d.mts +2 -2
  66. package/dist/core-plugins.d.ts +2 -2
  67. package/dist/core-plugins.js +1 -1
  68. package/dist/core-plugins.mjs +1 -1
  69. package/dist/core.d.mts +7 -7
  70. package/dist/core.d.ts +7 -7
  71. package/dist/core.js +1 -1
  72. package/dist/core.mjs +1 -1
  73. package/dist/docx/index.d.mts +2 -2
  74. package/dist/docx/index.d.ts +2 -2
  75. package/dist/docx/index.js +1 -1
  76. package/dist/docx/index.mjs +1 -1
  77. package/dist/docx/parser.d.mts +2 -2
  78. package/dist/docx/parser.d.ts +2 -2
  79. package/dist/docx/parser.js +1 -1
  80. package/dist/docx/parser.mjs +1 -1
  81. package/dist/docx/rezip.d.mts +2 -2
  82. package/dist/docx/rezip.d.ts +2 -2
  83. package/dist/docx/serializer/index.d.mts +3 -3
  84. package/dist/docx/serializer/index.d.ts +3 -3
  85. package/dist/editor/index.d.mts +2 -2
  86. package/dist/editor/index.d.ts +2 -2
  87. package/dist/editor/index.js +1 -1
  88. package/dist/editor/index.mjs +1 -1
  89. package/dist/executor-FHL5D4CB.js +1 -0
  90. package/dist/executor-FL6XGVP3.mjs +1 -0
  91. package/dist/{fontLoader-C6VvBUVB.d.ts → fontLoader-CH12AtFF.d.ts} +1 -1
  92. package/dist/{fontLoader-3MFD_Hj2.d.mts → fontLoader-D3X2Qgb_.d.mts} +1 -1
  93. package/dist/{headerFooterLayout-bdHWlU6g.d.ts → headerFooterLayout-BdGTU0IA.d.ts} +31 -16
  94. package/dist/{headerFooterLayout-DJb-dV7X.d.mts → headerFooterLayout-D5-u-IsD.d.mts} +31 -16
  95. package/dist/headless.d.mts +5 -5
  96. package/dist/headless.d.ts +5 -5
  97. package/dist/headless.js +1 -1
  98. package/dist/headless.mjs +1 -1
  99. package/dist/layout-bridge/clickToPositionDom.js +1 -1
  100. package/dist/layout-bridge/clickToPositionDom.mjs +1 -1
  101. package/dist/layout-bridge/index.d.mts +67 -5
  102. package/dist/layout-bridge/index.d.ts +67 -5
  103. package/dist/layout-bridge/index.js +1 -1
  104. package/dist/layout-bridge/index.mjs +1 -1
  105. package/dist/layout-bridge/measuring/index.d.mts +2 -2
  106. package/dist/layout-bridge/measuring/index.d.ts +2 -2
  107. package/dist/layout-bridge/measuring/index.js +1 -1
  108. package/dist/layout-bridge/measuring/index.mjs +1 -1
  109. package/dist/layout-bridge/tableInsertHover.js +1 -1
  110. package/dist/layout-bridge/tableInsertHover.mjs +1 -1
  111. package/dist/layout-bridge/toFlowBlocks.d.mts +2 -2
  112. package/dist/layout-bridge/toFlowBlocks.d.ts +2 -2
  113. package/dist/layout-bridge/toFlowBlocks.js +1 -1
  114. package/dist/layout-bridge/toFlowBlocks.mjs +1 -1
  115. package/dist/layout-engine/index.d.mts +2 -2
  116. package/dist/layout-engine/index.d.ts +2 -2
  117. package/dist/layout-engine/index.js +1 -1
  118. package/dist/layout-engine/index.mjs +1 -1
  119. package/dist/layout-engine/types.d.mts +2 -2
  120. package/dist/layout-engine/types.d.ts +2 -2
  121. package/dist/layout-painter/index.d.mts +3 -3
  122. package/dist/layout-painter/index.d.ts +3 -3
  123. package/dist/layout-painter/index.js +1 -1
  124. package/dist/layout-painter/index.mjs +1 -1
  125. package/dist/layout-painter/renderPage.d.mts +3 -3
  126. package/dist/layout-painter/renderPage.d.ts +3 -3
  127. package/dist/layout-painter/renderPage.js +1 -1
  128. package/dist/layout-painter/renderPage.mjs +1 -1
  129. package/dist/managers/AutoSaveManager.d.mts +2 -2
  130. package/dist/managers/AutoSaveManager.d.ts +2 -2
  131. package/dist/managers/TableSelectionManager.d.mts +2 -2
  132. package/dist/managers/TableSelectionManager.d.ts +2 -2
  133. package/dist/managers/types.d.mts +2 -2
  134. package/dist/managers/types.d.ts +2 -2
  135. package/dist/mcp-cli.mjs +22 -22
  136. package/dist/mcp.d.mts +2 -2
  137. package/dist/mcp.d.ts +2 -2
  138. package/dist/mcp.js +7 -7
  139. package/dist/mcp.mjs +1 -1
  140. package/dist/{nodes-RfTS-NSv.d.mts → nodes-5w_QaI3g.d.mts} +13 -1
  141. package/dist/{nodes-BJef4KFW.d.ts → nodes-qQdZtu3Z.d.ts} +13 -1
  142. package/dist/prosemirror/applyFormatting.d.mts +34 -4
  143. package/dist/prosemirror/applyFormatting.d.ts +34 -4
  144. package/dist/prosemirror/applyFormatting.js +1 -1
  145. package/dist/prosemirror/applyFormatting.mjs +1 -1
  146. package/dist/prosemirror/commands/formatting.js +1 -1
  147. package/dist/prosemirror/commands/formatting.mjs +1 -1
  148. package/dist/prosemirror/commands/index.d.mts +2 -1
  149. package/dist/prosemirror/commands/index.d.ts +2 -1
  150. package/dist/prosemirror/commands/index.js +1 -1
  151. package/dist/prosemirror/commands/index.mjs +1 -1
  152. package/dist/prosemirror/commands/paragraph.js +1 -1
  153. package/dist/prosemirror/commands/paragraph.mjs +1 -1
  154. package/dist/prosemirror/commands/sectionBreak.d.mts +25 -0
  155. package/dist/prosemirror/commands/sectionBreak.d.ts +25 -0
  156. package/dist/prosemirror/commands/sectionBreak.js +1 -0
  157. package/dist/prosemirror/commands/sectionBreak.mjs +1 -0
  158. package/dist/prosemirror/commentIdAllocator.d.mts +2 -2
  159. package/dist/prosemirror/commentIdAllocator.d.ts +2 -2
  160. package/dist/prosemirror/commentOps.d.mts +2 -2
  161. package/dist/prosemirror/commentOps.d.ts +2 -2
  162. package/dist/prosemirror/conversion/fromProseDoc.d.mts +2 -2
  163. package/dist/prosemirror/conversion/fromProseDoc.d.ts +2 -2
  164. package/dist/prosemirror/conversion/fromProseDoc.js +1 -1
  165. package/dist/prosemirror/conversion/fromProseDoc.mjs +1 -1
  166. package/dist/prosemirror/conversion/index.d.mts +2 -2
  167. package/dist/prosemirror/conversion/index.d.ts +2 -2
  168. package/dist/prosemirror/conversion/index.js +1 -1
  169. package/dist/prosemirror/conversion/index.mjs +1 -1
  170. package/dist/prosemirror/extensions/index.js +1 -1
  171. package/dist/prosemirror/extensions/index.mjs +1 -1
  172. package/dist/prosemirror/index.d.mts +4 -4
  173. package/dist/prosemirror/index.d.ts +4 -4
  174. package/dist/prosemirror/index.js +2 -2
  175. package/dist/prosemirror/index.mjs +2 -2
  176. package/dist/prosemirror/plugins/index.d.mts +2 -2
  177. package/dist/prosemirror/plugins/index.d.ts +2 -2
  178. package/dist/prosemirror/plugins/index.js +1 -1
  179. package/dist/prosemirror/plugins/index.mjs +1 -1
  180. package/dist/prosemirror/queries.d.mts +2 -2
  181. package/dist/prosemirror/queries.d.ts +2 -2
  182. package/dist/prosemirror/schema/index.d.mts +3 -3
  183. package/dist/prosemirror/schema/index.d.ts +3 -3
  184. package/dist/prosemirror/schema/index.js +1 -1
  185. package/dist/prosemirror/schema/index.mjs +1 -1
  186. package/dist/prosemirror/utils/extractTrackedChanges.d.mts +2 -2
  187. package/dist/prosemirror/utils/extractTrackedChanges.d.ts +2 -2
  188. package/dist/{sectionPropertiesSerializer-S8J1V9mb.d.ts → sectionPropertiesSerializer-BJSNK-Wl.d.ts} +1 -1
  189. package/dist/{sectionPropertiesSerializer-C8XCmzE4.d.mts → sectionPropertiesSerializer-DI3OIQ1j.d.mts} +1 -1
  190. package/dist/types/content.d.mts +2 -2
  191. package/dist/types/content.d.ts +2 -2
  192. package/dist/types/content.js +1 -1
  193. package/dist/types/content.mjs +1 -1
  194. package/dist/types/document.d.mts +3 -3
  195. package/dist/types/document.d.ts +3 -3
  196. package/dist/types/document.js +1 -1
  197. package/dist/types/document.mjs +1 -1
  198. package/dist/utils/cardStyles.js +1 -1
  199. package/dist/utils/cardStyles.mjs +1 -1
  200. package/dist/utils/comments.d.mts +2 -2
  201. package/dist/utils/comments.d.ts +2 -2
  202. package/dist/utils/index.d.mts +37 -4
  203. package/dist/utils/index.d.ts +37 -4
  204. package/dist/utils/index.js +3 -3
  205. package/dist/utils/index.mjs +3 -3
  206. package/dist/utils/stylePreview.d.mts +83 -0
  207. package/dist/utils/stylePreview.d.ts +83 -0
  208. package/dist/utils/stylePreview.js +1 -0
  209. package/dist/utils/stylePreview.mjs +1 -0
  210. package/dist/utils/units.d.mts +7 -1
  211. package/dist/utils/units.d.ts +7 -1
  212. package/dist/utils/units.js +1 -1
  213. package/dist/utils/units.mjs +1 -1
  214. package/dist/{variableDetector-CN9_pUR_.d.mts → variableDetector-7xBsshP0.d.mts} +1 -1
  215. package/dist/{variableDetector-o4Rb2Csy.d.ts → variableDetector-Bv5Tm0D-.d.ts} +1 -1
  216. package/dist/{watermark-DAcnAs_J.d.mts → watermark-D90356ZM.d.mts} +7 -1
  217. package/dist/{watermark-DAcnAs_J.d.ts → watermark-D90356ZM.d.ts} +7 -1
  218. package/package.json +17 -1
  219. package/dist/chunk-4Q2IP5FW.js +0 -1
  220. package/dist/chunk-4RQAAKQI.mjs +0 -1
  221. package/dist/chunk-5HA66FH4.mjs +0 -1
  222. package/dist/chunk-7OW3VCZE.mjs +0 -1
  223. package/dist/chunk-AA6D2C6R.js +0 -4
  224. package/dist/chunk-AMJNIGO2.mjs +0 -2
  225. package/dist/chunk-BHBOAP6Z.js +0 -3
  226. package/dist/chunk-BTSL4AYY.js +0 -1
  227. package/dist/chunk-C45EFOVP.js +0 -1
  228. package/dist/chunk-CUY2THAO.mjs +0 -1
  229. package/dist/chunk-DKKTY56Q.js +0 -1
  230. package/dist/chunk-DZ3FN3JI.js +0 -2
  231. package/dist/chunk-ENIWJBS7.mjs +0 -2
  232. package/dist/chunk-EZNVVB63.mjs +0 -1
  233. package/dist/chunk-GKAXYZCE.mjs +0 -1
  234. package/dist/chunk-IGYHDSM7.mjs +0 -1
  235. package/dist/chunk-L6ZRNW7Y.mjs +0 -1
  236. package/dist/chunk-LJ2TB6CY.js +0 -1
  237. package/dist/chunk-MOKKS75W.mjs +0 -3
  238. package/dist/chunk-ND33YQGU.js +0 -1
  239. package/dist/chunk-QXSDGNJ4.js +0 -1
  240. package/dist/chunk-RT52EYG3.mjs +0 -4
  241. package/dist/chunk-SHYNWAW6.mjs +0 -1
  242. package/dist/chunk-SNTAAXXA.mjs +0 -1
  243. package/dist/chunk-TAQTZAVZ.js +0 -1
  244. package/dist/chunk-UKMKGIME.js +0 -1
  245. package/dist/chunk-UXPY65AC.js +0 -1
  246. package/dist/chunk-VOCHZNOF.mjs +0 -1
  247. package/dist/chunk-VW22RZ6C.mjs +0 -1
  248. package/dist/chunk-WQRWRWSK.js +0 -1
  249. package/dist/chunk-YHXVNJK5.mjs +0 -1
  250. package/dist/chunk-ZETEPB7I.js +0 -1
  251. package/dist/executor-DZAMMQ35.js +0 -1
  252. package/dist/executor-ZCJRLT3Z.mjs +0 -1
@@ -1 +0,0 @@
1
- 'use strict';var chunkBTSL4AYY_js=require('./chunk-BTSL4AYY.js'),chunkZETEPB7I_js=require('./chunk-ZETEPB7I.js'),chunkTAQTZAVZ_js=require('./chunk-TAQTZAVZ.js'),chunkDROCYKAR_js=require('./chunk-DROCYKAR.js'),chunkAA6D2C6R_js=require('./chunk-AA6D2C6R.js'),chunkUXPY65AC_js=require('./chunk-UXPY65AC.js'),chunkBHBOAP6Z_js=require('./chunk-BHBOAP6Z.js'),chunkN3Y5BUKV_js=require('./chunk-N3Y5BUKV.js'),chunk4Q2IP5FW_js=require('./chunk-4Q2IP5FW.js');function tt(e,t,n,o,r){let a=new Map,i=[];for(let m of e.fragments){let s=o(m);if(s.length===0||!("height"in m))continue;let b=m.y-e.margins.top,g=b+m.height;s.forEach((u,E)=>{let y=`${E}:${u.id}`,p=a.get(y);p?(p.top=Math.min(p.top,b),p.bottom=Math.max(p.bottom,g)):(a.set(y,{group:u,depth:E,top:b,bottom:g}),i.push(y));});}let d=2,l=[];for(let m of i){let{group:s,depth:b,top:g,bottom:u}=a.get(m),E=b*(d+1),y=r.createElement("div");y.className="layout-block-sdt-box",y.dataset.sdtGroupId=s.id,y.dataset.sdtType=s.sdtType,y.dataset.sdtDepth=String(b+1),s.tag!=null&&(y.dataset.sdtTag=s.tag),s.alias!=null&&(y.dataset.sdtAlias=s.alias),s.lock!=null&&(y.dataset.sdtLock=s.lock),y.style.position="absolute",y.style.left=`${E}px`,y.style.top=`${g-d}px`,y.style.width=`${n-E*2}px`,y.style.height=`${u-g+d*2}px`;let p=s.alias||s.tag||s.sdtType;if(p){let F=r.createElement("span");F.className="layout-block-sdt-label",F.textContent=p,y.appendChild(F);}let w=wt(s.sdtType);if(w&&s.tag!=null&&!s.bound&&s.lock!=="contentLocked"&&s.lock!=="sdtContentLocked"){let F=r.createElement("button");F.type="button",F.className="layout-sdt-widget",F.dataset.sdtWidget=w,F.dataset.sdtTag=s.tag,F.dataset.sdtGroupId=s.id,F.setAttribute("aria-label",`${w} control ${s.alias||s.tag}`),w==="dropdown"?F.setAttribute("aria-haspopup","listbox"):w==="date"&&F.setAttribute("aria-haspopup","dialog"),F.textContent=w==="dropdown"?"\u25BE":w==="date"?"\u{1F4C5}":s.checked?"\u2612":"\u2610",y.appendChild(F);}if(s.repeatingItem&&!s.bound){let F=r.createElement("div");F.className="layout-sdt-repeat-controls";for(let c of ["add","remove"]){let x=r.createElement("button");x.type="button",x.className="layout-sdt-repeat-btn",x.dataset.sdtRepeat=c,x.dataset.sdtGroupId=s.id,x.setAttribute("aria-label",c==="add"?"Add item":"Remove item"),x.textContent=c==="add"?"\uFF0B":"\u2715",F.appendChild(x);}y.appendChild(F);}t.appendChild(y),l.push(y);}Tt(t,l);}function wt(e){return e==="checkbox"?"checkbox":e==="dropDownList"||e==="comboBox"?"dropdown":e==="date"?"date":null}function Tt(e,t){if(t.length===0||typeof e.addEventListener!="function")return;let n=(d,l)=>{for(let m of t){let s=m.getBoundingClientRect(),b=d>=s.left&&d<=s.right&&l>=s.top&&l<=s.bottom;b!==m.classList.contains("is-active")&&m.classList.toggle("is-active",b);}},o=typeof requestAnimationFrame=="function"?requestAnimationFrame:d=>d(),r=false,a=0,i=0;e.addEventListener("mousemove",d=>{a=d.clientX,i=d.clientY,!r&&(r=true,o(()=>{r=false,n(a,i);}));}),e.addEventListener("mouseleave",()=>{for(let d of t)d.classList.remove("is-active");});}function Tn(e,t,n){let o=new Set,r=e.content.size,a=i=>{let d=e.resolve(Math.max(0,Math.min(i,r)));for(let l=1;l<=d.depth;l++)d.node(l).type.name==="blockSdt"&&o.add(`sdt@${d.before(l)}`);};return a(t),n!==t&&a(n),o}function In(e,t){let n=e.querySelectorAll(".layout-block-sdt-box");for(let o of n){let r=o.dataset.sdtGroupId,a=r!=null&&t.has(r);a!==o.classList.contains("is-focused")&&o.classList.toggle("is-focused",a);}}var U={fragment:"layout-fragment",paragraph:"layout-fragment-paragraph",table:"layout-fragment-table",image:"layout-fragment-image",line:"layout-line",run:"layout-run"};function It(e){return e.kind==="paragraph"}function Ft(e){return e.kind==="table"}function Ct(e){return e.kind==="image"}function fe(e){e.style.position="absolute",e.style.overflow="hidden";}function Rt(e,t,n){let o=n.createElement("div");return o.className=`${U.fragment} ${U.paragraph}`,fe(o),o.dataset.blockId=String(e.blockId),o.dataset.fromLine=String(e.fromLine),o.dataset.toLine=String(e.toLine),e.pmStart!==void 0&&(o.dataset.pmStart=String(e.pmStart)),e.pmEnd!==void 0&&(o.dataset.pmEnd=String(e.pmEnd)),e.continuesFromPrev&&(o.dataset.continuesFromPrev="true"),e.continuesOnNext&&(o.dataset.continuesOnNext="true"),o}function Et(e,t,n){let o=n.createElement("div");return o.className=`${U.fragment} ${U.table}`,fe(o),o.dataset.blockId=String(e.blockId),o.dataset.fromRow=String(e.fromRow),o.dataset.toRow=String(e.toRow),e.pmStart!==void 0&&(o.dataset.pmStart=String(e.pmStart)),e.pmEnd!==void 0&&(o.dataset.pmEnd=String(e.pmEnd)),o}function Lt(e,t,n){let o=n.createElement("div");return o.className=`${U.fragment} ${U.image}`,fe(o),o.dataset.blockId=String(e.blockId),e.pmStart!==void 0&&(o.dataset.pmStart=String(e.pmStart)),e.pmEnd!==void 0&&(o.dataset.pmEnd=String(e.pmEnd)),e.isAnchored&&(o.dataset.anchored="true"),e.zIndex!==void 0&&(o.style.zIndex=String(e.zIndex)),o}function Ie(e,t,n={}){let o=n.document??document;if(It(e))return Rt(e,t,o);if(Ft(e))return Et(e,t,o);if(Ct(e))return Lt(e,t,o);let r=o.createElement("div");r.className=U.fragment,fe(r);let a=e;return a.blockId!==void 0&&(r.dataset.blockId=String(a.blockId)),a.kind&&(r.dataset.kind=a.kind),r}var P={fragment:"layout-paragraph",line:"layout-line",run:"layout-run",text:"layout-run-text",tab:"layout-run-tab",image:"layout-run-image",lineBreak:"layout-run-linebreak"};function A(e){return e.kind==="text"}function N(e){return e.kind==="tab"}function j(e){return e.kind==="image"}function W(e){return e.kind==="lineBreak"}function X(e){return e.kind==="field"}var nt={image:"layout-image",imageAnchored:"layout-image-anchored"};function oe(e){return !!(e.cropTop||e.cropRight||e.cropBottom||e.cropLeft||e.opacity!=null&&e.opacity<1)}function re(e,t){let n=t.cropTop??0,o=t.cropRight??0,r=t.cropBottom??0,a=t.cropLeft??0;(n||o||r||a)&&(e.style.clipPath=`inset(${n*100}% ${o*100}% ${r*100}% ${a*100}%)`),t.opacity!=null&&t.opacity<1&&(e.style.opacity=String(Math.max(0,t.opacity)));}function Z(e,t,n,o,r={}){let a=r.document??document,i=a.createElement("div");i.className=nt.image,e.isAnchored&&i.classList.add(nt.imageAnchored),i.style.position="absolute",i.style.width=`${e.width}px`,i.style.height=`${e.height}px`,i.style.overflow="hidden",e.zIndex!==void 0&&(i.style.zIndex=String(e.zIndex)),t.anchor?.behindDoc&&(i.style.zIndex="-1"),i.dataset.blockId=String(e.blockId),e.pmStart!==void 0&&(i.dataset.pmStart=String(e.pmStart)),e.pmEnd!==void 0&&(i.dataset.pmEnd=String(e.pmEnd));let d=a.createElement("img");if(d.src=t.src,d.alt=t.alt??"",d.style.width="100%",d.style.height="100%",d.style.objectFit="contain",d.style.display="block",t.transform&&(d.style.transform=t.transform),d.draggable=false,t.hlinkHref){let l=a.createElement("a");l.href=t.hlinkHref,l.target="_blank",l.rel="noopener noreferrer",l.style.display="block",l.style.width="100%",l.style.height="100%",l.appendChild(d),i.appendChild(l);}else i.appendChild(d);return i}function vt(e,t,n){if(t.fontFamily&&(e.style.fontFamily=chunkN3Y5BUKV_js.a(t.fontFamily).cssFallback),t.fontSize){let r=t.fontSize*96/72;e.style.fontSize=`${r}px`;}if(t.bold&&(e.style.fontWeight="bold"),t.italic&&(e.style.fontStyle="italic"),t.color&&(e.style.color=t.color),t.letterSpacing&&(e.style.letterSpacing=`${t.letterSpacing}px`),t.allCaps&&(e.style.textTransform="uppercase"),t.smallCaps&&(e.style.fontVariant="small-caps"),t.positionPx&&(e.style.verticalAlign=`${t.positionPx}px`),t.horizontalScale&&t.horizontalScale!==100&&(e.style.display="inline-block",e.style.transform=`scaleX(${t.horizontalScale/100})`,e.style.transformOrigin="left center"),t.kerningMinPt&&t.kerningMinPt>0&&(t.fontSize??11)>=t.kerningMinPt&&(e.style.fontKerning="normal"),t.emboss&&(e.style.textShadow="1px 1px 1px rgba(255,255,255,0.5), -1px -1px 1px rgba(0,0,0,0.3)"),t.imprint&&(e.style.textShadow="-1px -1px 1px rgba(255,255,255,0.5), 1px 1px 1px rgba(0,0,0,0.3)"),t.textShadow&&!t.emboss&&!t.imprint&&(e.style.textShadow="1px 1px 2px rgba(0,0,0,0.3)"),t.textOutline&&(e.style.webkitTextStroke="1px currentColor",e.style.webkitTextFillColor="transparent"),t.emphasisMark){let r=t.emphasisMark==="comma"?"filled sesame":t.emphasisMark==="circle"?"filled circle":"filled dot",a=t.emphasisMark==="underDot"?"under right":"over right";e.style.textEmphasis=`${r}`,e.style.textEmphasisPosition=a,e.style.webkitTextEmphasis=r,e.style.webkitTextEmphasisPosition=a;}t.highlight&&(e.style.backgroundColor=t.highlight);let o=[];if(t.underline&&(o.push("underline"),typeof t.underline=="object"&&(t.underline.style&&(e.style.textDecorationStyle=t.underline.style),t.underline.color&&(e.style.textDecorationColor=t.underline.color))),t.strike&&o.push("line-through"),t.commentIds&&t.commentIds.length>0){let r=t.commentIds.find(a=>!n||!n.has(a));r!=null&&(e.style.backgroundColor="rgba(255, 212, 0, 0.15)",e.style.borderBottom="1px solid rgba(255, 212, 0, 0.4)",e.dataset.commentId=String(r));}t.isInsertion&&(e.style.backgroundColor="rgba(52, 168, 83, 0.08)",e.style.borderBottom="2px dashed #2e7d32",e.style.paddingBottom="1px",e.classList.add("docx-insertion"),t.changeAuthor&&(e.dataset.changeAuthor=t.changeAuthor),t.changeDate&&(e.dataset.changeDate=t.changeDate),t.changeRevisionId!=null&&(e.dataset.revisionId=String(t.changeRevisionId))),t.isDeletion&&(e.style.backgroundColor="rgba(211, 47, 47, 0.08)",e.style.color="#c62828",o.includes("line-through")||o.push("line-through"),e.style.textDecorationColor="#c62828",e.classList.add("docx-deletion"),t.changeAuthor&&(e.dataset.changeAuthor=t.changeAuthor),t.changeDate&&(e.dataset.changeDate=t.changeDate),t.changeRevisionId!=null&&(e.dataset.revisionId=String(t.changeRevisionId))),o.length>0&&(e.style.textDecorationLine=o.join(" ")),t.superscript&&(e.style.verticalAlign="super",e.style.fontSize="0.75em"),t.subscript&&(e.style.verticalAlign="sub",e.style.fontSize="0.75em"),t.hidden&&(e.classList.add("docx-hidden"),e.style.opacity="0.4",e.style.textDecoration="underline dotted"),t.rtl&&e.setAttribute("dir","rtl"),t.textEffect&&(e.classList.add("docx-text-effect",`docx-text-effect-${t.textEffect}`),e.dataset.effect=t.textEffect);}function z(e,t,n){t!==void 0&&(e.dataset.pmStart=String(t)),n!==void 0&&(e.dataset.pmEnd=String(n));}function Pt(e,t){let n=t.inlineSdtWidget;n&&(e.classList.add("layout-inline-sdt-widget"),e.dataset.sdtWidget=n.kind,e.dataset.sdtGroupId=n.groupId,e.dataset.sdtPos=String(n.pos),n.tag&&(e.dataset.sdtTag=n.tag),n.alias&&(e.dataset.sdtAlias=n.alias),typeof n.checked=="boolean"&&(e.dataset.sdtChecked=String(n.checked),e.setAttribute("aria-checked",String(n.checked))),e.setAttribute("role","checkbox"),e.setAttribute("tabindex","0"),e.setAttribute("aria-label",n.alias||n.tag||"Checkbox content control"));}function ie(e,t,n){let o=t.createElement("span");if(o.className=`${P.run} ${P.text}`,vt(o,e,n),z(o,e.pmStart,e.pmEnd),Pt(o,e),e.hyperlink){let r=t.createElement("a");r.href=e.hyperlink.href,e.hyperlink.href.startsWith("#")||(r.target="_blank",r.rel="noopener noreferrer"),e.hyperlink.tooltip&&(r.title=e.hyperlink.tooltip),r.textContent=e.text,r.style.color="inherit",r.style.textDecoration="inherit",e.hyperlink.noDefaultStyle||(e.color||(r.style.color="#0563c1",o.style.color="#0563c1"),e.underline||(r.style.textDecoration="underline")),o.appendChild(r);}else o.textContent=e.text;return o}var Bt=1e3;function ge(e,t,n,o){let r=t.createElement("span");r.className=`${P.run} ${P.tab}`,r.style.display="inline-block",r.style.width=`${n}px`,z(r,e.pmStart,e.pmEnd);let a=o&&o!=="none"?Mt(o):null;if(a){r.style.position="relative",r.textContent="\u200B";let i=t.createElement("span");i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",i.style.overflow="hidden",i.style.whiteSpace="nowrap",i.textContent=a.repeat(Bt),r.appendChild(i);}else r.textContent="\xA0";return r}function Mt(e){switch(e){case "dot":return ".";case "hyphen":return "-";case "underscore":return "_";case "middleDot":return "\xB7";case "heavy":return "_";default:return null}}function it(e){if(!e)return 0;let t=e.match(/rotate\(([-\d.]+)deg\)/);return t?(parseFloat(t[1])%360+360)%360:0}function at(e,t,n){if(n===0||n===180)return {w:e,h:t};if(n===90||n===270)return {w:t,h:e};let o=n*Math.PI/180,r=Math.abs(Math.sin(o)),a=Math.abs(Math.cos(o));return {w:e*a+t*r,h:e*r+t*a}}function ot(e,t){t.distTop&&(e.style.marginTop=`${t.distTop}px`),t.distBottom&&(e.style.marginBottom=`${t.distBottom}px`);}function $t(e,t){let n=t.createElement("img");n.className=`${P.run} ${P.image}`,n.src=e.src,n.width=e.width,n.height=e.height,n.style.width=`${e.width}px`,n.style.height=`${e.height}px`,e.alt&&(n.alt=e.alt),e.transform&&(n.style.transform=e.transform,n.style.transformOrigin="center center"),oe(e)&&re(n,e);let o=it(e.transform);if(o!==0){let r=at(e.width,e.height,o),a=t.createElement("span");return a.style.display="inline-block",a.style.position="relative",a.style.width=`${r.w}px`,a.style.height=`${r.h}px`,a.style.verticalAlign="middle",n.style.position="absolute",n.style.left=`${(r.w-e.width)/2}px`,n.style.top=`${(r.h-e.height)/2}px`,ot(a,e),z(a,e.pmStart,e.pmEnd),a.appendChild(n),a}return n.style.display="inline-block",n.style.verticalAlign="middle",e.width>0&&e.height>0&&(n.style.height="auto",n.style.aspectRatio=`${e.width} / ${e.height}`,n.style.maxWidth="100%"),ot(n,e),z(n,e.pmStart,e.pmEnd),n}function rt(e,t){let n=t.createElement("div");n.className="layout-block-image",n.style.display="block",n.style.textAlign="center",n.style.marginTop=`${e.distTop??6}px`,n.style.marginBottom=`${e.distBottom??6}px`;let o=t.createElement("img");o.src=e.src,o.width=e.width,o.height=e.height,o.style.marginLeft="auto",o.style.marginRight="auto",e.alt&&(o.alt=e.alt),e.transform&&(o.style.transform=e.transform,o.style.transformOrigin="center center"),oe(e)&&re(o,e);let r=it(e.transform);if(r!==0){let a=at(e.width,e.height,r);n.style.height=`${a.h}px`,n.style.position="relative",o.style.position="absolute",o.style.left="50%",o.style.top="50%",o.style.marginLeft=`${-e.width/2}px`,o.style.marginRight="0",o.style.marginTop=`${-e.height/2}px`;}return z(n,e.pmStart,e.pmEnd),n.appendChild(o),n}function me(e,t){let n;return chunkZETEPB7I_js.c(e)||e.displayMode==="block"||e.wrapType==="topAndBottom"?n=rt(e,t):n=$t(e,t),Ht(n,e),n}function Ht(e,t){if(t.isInsertion)e.style.outline="2px solid #2e7d32",e.style.outlineOffset="1px",e.classList.add("docx-insertion");else if(t.isDeletion)e.style.outline="2px solid #c62828",e.style.outlineOffset="1px",e.style.opacity="0.6",e.classList.add("docx-deletion");else return;t.changeAuthor&&(e.dataset.changeAuthor=t.changeAuthor),t.changeDate&&(e.dataset.changeDate=t.changeDate),t.changeRevisionId!=null&&(e.dataset.revisionId=String(t.changeRevisionId));}function Fe(e,t){let n=t.createElement("br");return n.className=`${P.run} ${P.lineBreak}`,z(n,e.pmStart,e.pmEnd),n}function ue(e,t,n){let o=e.fallback??"";switch(e.fieldType){case "PAGE":o=String(n.pageNumber);break;case "NUMPAGES":o=String(n.totalPages);break;case "DATE":o=new Date().toLocaleDateString();break;case "TIME":o=new Date().toLocaleTimeString();break}let r={...e,text:o};return ie(r,t,n?.resolvedCommentIds)}function Ce(e,t,n){if(A(e))return ie(e,t,n?.resolvedCommentIds);if(N(e))return ge(e,t,48,void 0);if(j(e))return me(e,t);if(W(e))return Fe(e,t);if(X(e)&&n)return ue(e,t,n);let o=t.createElement("span");return o.className=P.run,o}function dt(e,t){let n=[],o=e.runs;for(let r=t.fromRun;r<=t.toRun;r++){let a=o[r];if(a)if(A(a)){let i=r===t.fromRun?t.fromChar:0,d=r===t.toRun?t.toChar:a.text.length;if(i>0||d<a.text.length){let l=a.text.slice(i,d);n.push({...a,text:l,pmStart:a.pmStart!==void 0?a.pmStart+i:void 0,pmEnd:a.pmStart!==void 0?a.pmStart+d:void 0});}else n.push(a);}else n.push(a);}return n}function st(e){return e==="center"?"center":e==="right"?"flex-end":"flex-start"}function lt(e){return [e.pmStart??"no-start",e.pmEnd??"no-end",e.src,e.width,e.height,e.displayMode??"inline",e.wrapType??"none"].join("|")}function At(e){return {val:e.val,pos:e.pos,leader:e.leader}}function Ot(e,t,n){let o="";for(let r=t+1;r<e.length;r++){let a=e[r];if(A(a))o+=a.text;else if(X(a))a.fieldType==="PAGE"&&n?o+=String(n.pageNumber):a.fieldType==="NUMPAGES"&&n?o+=String(n.totalPages):o+=a.fallback??"";else if(N(a)||W(a))break}return o}var zt=.5;function Dt(e,t,n,o){let r=0;for(let a=t+1;a<e.length;a++){let i=e[a];if(N(i)||W(i))break;if(A(i))r+=n(i.text||"",i.fontSize,i.fontFamily,i.bold,i.italic);else if(X(i)){let d;i.fieldType==="PAGE"&&o?d=String(o.pageNumber):i.fieldType==="NUMPAGES"&&o?d=String(o.totalPages):d=i.fallback??"",r+=n(d,i.fontSize,i.fontFamily,i.bold,i.italic);}else j(i)&&!chunkZETEPB7I_js.c(i)&&(r+=i.width||0);}return r}function Nt(e){let n=e.createElement("canvas").getContext("2d");return (o,r=11,a="Calibri",i=false,d=false)=>{if(!n)return o.length*7;let l=chunkN3Y5BUKV_js.a(a).cssFallback,m=r*96/72,s=[];return d&&s.push("italic"),i&&s.push("bold"),s.push(`${m}px`,l),n.font=s.join(" "),n.measureText(o).width}}function he(e,t,n,o,r){let a=o.createElement("div");a.className=P.line,a.style.height=`${t.lineHeight}px`,a.style.lineHeight=`${t.lineHeight}px`;let i=dt(e,t);if(i.length===1&&j(i[0])){let w=i[0].position?.horizontal?.align??n;a.style.display="flex",a.style.alignItems="center",a.style.justifyContent=st(w),a.dataset.flexLine="true";}else i.some(j)&&(a.style.display="flex",a.style.alignItems="baseline",a.style.justifyContent=st(n),a.style.lineHeight="normal",a.dataset.flexLine="true");if(i.length===0){let y=o.createElement("span");return y.className=`${P.run} layout-empty-run`,y.innerHTML="&nbsp;",a.appendChild(y),a}let d=n==="justify",l=false;d&&r&&(l=!r.isLastLine||r.paragraphEndsWithLineBreak,l&&(a.style.textAlign="justify",a.style.textAlignLast="justify",a.style.width=`${r.availableWidth}px`)),a.style.whiteSpace="pre";let m=i.some(y=>A(y)&&y.highlight);a.style.overflow=m?"hidden":"visible";let s=i.some(N),b,g=Nt(o);if(s){let y=r?.tabStops?.map(At),p=r?.leftIndentPx?Math.round(r.leftIndentPx*15):0;b={explicitStops:y,leftIndent:p};}let u=0,E=r?.leftIndentPx??0;if(r?.isFirstLine){let y=r?.firstLineIndentPx??0;u=E+y;}else u=E;for(let y=0;y<i.length;y++){let p=i[y];if(N(p)&&b){let w=Dt(i,y,g,r?.context),F=Ot(i,y,r?.context),c=F.indexOf("."),x=c>=0?g(F.slice(0,c)):0,T=chunkTAQTZAVZ_js.v(u,b,{followingWidth:w,decimalPrefixWidth:x}),S=r?.lineRightEdgePx,k=w,f=false;for(let I=y+1;I<i.length&&!W(i[I]);I++)if(N(i[I])){f=true;break}if(S!==void 0&&T.alignment==="end"&&!f&&u+T.width+k>=S-zt){a.style.display="flex",a.style.alignItems="baseline",a.style.whiteSpace="nowrap",a.style.textIndent="0",a.dataset.flexLine="true",r?.isFirstLine&&r.firstLineIndentPx&&r.firstLineIndentPx<0&&a.firstElementChild instanceof HTMLElement&&(a.firstElementChild.style.marginLeft=`${r.firstLineIndentPx}px`);let I=ge(p,o,0,T.leader);I.style.flex="1 1 0",I.style.minWidth="0",I.style.width="auto",a.appendChild(I);for(let v=y+1;v<i.length;v++){let L=i[v];if(N(L)||W(L))break;if(A(L))a.appendChild(ie(L,o,r?.context?.resolvedCommentIds));else if(X(L)&&r?.context)a.appendChild(ue(L,o,r.context));else if(j(L)){if(chunkZETEPB7I_js.c(L))continue;let B=lt(L);r?.renderedInlineImageKeys?.has(B)||(r?.renderedInlineImageKeys?.add(B),a.appendChild(me(L,o)));}else a.appendChild(Ce(L,o,r?.context));}break}let R=T.width;S!==void 0&&u+R+k>S&&(R=Math.max(1,S-u-k));let C=ge(p,o,R,T.leader);a.appendChild(C),u+=R;}else if(A(p)){let w=ie(p,o,r?.context?.resolvedCommentIds);if(p.highlight){let T=(p.fontSize?p.fontSize*96/72:14.67)*1.2,S=Math.max(0,t.lineHeight-T);if(S>0){let k=S/2;w.style.paddingTop=`${k}px`,w.style.paddingBottom=`${k}px`;}}a.appendChild(w);let F=p.fontSize||11,c=p.fontFamily||"Calibri";u+=g(p.text,F,c,p.bold,p.italic);}else if(j(p)){if(chunkZETEPB7I_js.c(p))continue;let w=lt(p);if(r?.renderedInlineImageKeys?.has(w))continue;r?.renderedInlineImageKeys?.add(w);let F=me(p,o);a.appendChild(F),p.displayMode!=="block"&&p.wrapType!=="topAndBottom"&&(u+=p.width);}else if(W(p)){let w=Fe(p,o);a.appendChild(w);}else if(X(p)&&r?.context){let w=ue(p,o,r.context);a.appendChild(w);let F=p.fallback??"";p.fieldType==="PAGE"?F=String(r.context.pageNumber):p.fieldType==="NUMPAGES"&&(F=String(r.context.totalPages));let c=p.fontSize||11,x=p.fontFamily||"Calibri";u+=g(F,c,x,p.bold,p.italic);}else {let w=Ce(p,o,r?.context);a.appendChild(w);}}if(!a.querySelector("span[data-pm-start][data-pm-end]")){let y=i.find(W);if(y?.pmStart!==void 0){let p=o.createElement("span");p.className=P.run,z(p,y.pmStart,y.pmStart),p.textContent="\u200B",a.insertBefore(p,a.firstChild);}}return a}function ae(e,t){return !e&&!t?true:!e||!t?false:e.style===t.style&&e.width===t.width&&e.color===t.color}function ct(e,t){return !e&&!t||!e||!t?false:ae(e.top,t.top)&&ae(e.bottom,t.bottom)&&ae(e.left,t.left)&&ae(e.right,t.right)&&ae(e.between,t.between)}var Wt=/[\u0590-\u085F\u08A0-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/,_t=/[\u0041-\u005A\u0061-\u007A\u00C0-\u02B8\u0370-\u0589\u10A0-\u10FF\u1E00-\u1FFF]/;function Gt(e){let t=(e.runs??[]).filter(A);if(!t.some(n=>n.rtl))return false;for(let n of t)for(let o of n.text){if(Wt.test(o))return true;if(_t.test(o))return false}return true}function D(e,t,n,o,r={}){let a=r.document??document,i=a.createElement("div");i.className=P.fragment,i.style.position=o.positioning==="absolute"?"absolute":"relative",i.dataset.blockId=String(e.blockId),i.dataset.fromLine=String(e.fromLine),i.dataset.toLine=String(e.toLine),z(i,e.pmStart,e.pmEnd),e.continuesFromPrev&&(i.dataset.continuesFromPrev="true"),e.continuesOnNext&&(i.dataset.continuesOnNext="true");let d=t.attrs?.pPrIns,l=t.attrs?.pPrDel;if(d||l){let S=d??l;i.classList.add("layout-revision-pmark"),i.classList.add(d?"layout-revision-ins":"layout-revision-del"),i.dataset.revisionId=String(S.revisionId),i.dataset.revisionAuthor=S.author,S.date&&(i.dataset.revisionDate=S.date);}let m=n.lines.slice(e.fromLine,e.toLine),s=t.attrs?.alignment;t.attrs?.styleId&&(i.dataset.styleId=t.attrs.styleId);let b=!!t.attrs?.bidi||Gt(t);b&&(i.dir="rtl"),s?s==="center"?i.style.textAlign="center":s==="right"?i.style.textAlign="right":s==="left"?i.style.textAlign="left":i.style.textAlign=b?"right":"left":b&&(i.style.textAlign="right");let g=t.attrs?.indent,u=0,E=0;g&&(b?(g.left&&g.left>0&&(E=g.left),g.right&&g.right>0&&(u=g.right)):(g.left&&g.left>0&&(u=g.left),g.right&&g.right>0&&(E=g.right)));let y=t.attrs?.borders;if(y){let S=L=>{switch(L){case "single":return "solid";case "double":return "double";case "dotted":return "dotted";case "dashed":return "dashed";case "thick":return "solid";case "wave":return "wavy";case "dashSmallGap":return "dashed";case "nil":case "none":return "none";default:return "solid"}};i.style.boxSizing="border-box";let k=L=>`${L.width}px ${S(L.style)} ${L.color}`,f=ct(r.prevBorders,y),h=ct(y,r.nextBorders),R=f?y.between:y.top,C=h?void 0:y.bottom,I=a.createElement("div");if(I.className="layout-paragraph-border",I.style.position="absolute",I.style.pointerEvents="none",I.style.boxSizing="border-box",I.style.left=`${u-(y.left?.space??0)}px`,I.style.right=`${E-(y.right?.space??0)}px`,I.style.top=`${-(R?.space??0)}px`,I.style.bottom=`${-(C?.space??0)}px`,R&&(I.style.borderTop=k(R)),C&&(I.style.borderBottom=k(C)),y.left&&(I.style.borderLeft=k(y.left)),y.right&&(I.style.borderRight=k(y.right)),(R||C||y.left||y.right)&&i.appendChild(I),y.bar){let L=a.createElement("div");L.style.position="absolute",L.style.left="-8px",L.style.top="0",L.style.bottom="0",L.style.borderLeft=k(y.bar),i.style.position="relative",i.appendChild(L);}}t.attrs?.shading&&(i.style.backgroundColor=t.attrs.shading);let p=e.width-u-E,F=t.runs[t.runs.length-1]?.kind==="lineBreak",c=n.lines.length,x=0;g?.hanging&&g.hanging>0?x=-g.hanging:g?.firstLine&&g.firstLine>0&&(x=g.firstLine);let T=r.renderedInlineImageKeys??new Set;for(let S=0;S<m.length;S++){let k=m[S],f=e.fromLine+S,h=f===c-1,R=f===0&&!e.continuesFromPrev,C=k.leftOffset??0,I=k.rightOffset??0,v=p;if(R){let M=g?.hanging&&g.hanging>0,$=g?.firstLine&&g.firstLine>0;M&&g?.hanging?v=p+g.hanging:$&&g?.firstLine&&(v=p-g.firstLine);}if(Yt(k,t)){let M=a.createElement("div");M.className=`${P.line} layout-line-split`,M.style.position="relative",M.style.height=`${k.lineHeight}px`,M.style.lineHeight=`${k.lineHeight}px`;for(let $ of k.segments){let te={fromRun:$.fromRun,fromChar:$.fromChar,toRun:$.toRun,toChar:$.toChar,width:$.width,ascent:k.ascent,descent:k.descent,lineHeight:k.lineHeight},Y=he(t,te,s,a,{availableWidth:$.availableWidth,isLastLine:h,isFirstLine:R,paragraphEndsWithLineBreak:F,tabStops:t.attrs?.tabs,leftIndentPx:u,firstLineIndentPx:R?x:0,context:o,renderedInlineImageKeys:T});Y.className+=" layout-line-segment",Y.style.position="absolute",Y.style.left=`${$.leftOffset}px`,Y.style.top="0",Y.style.width=`${$.availableWidth}px`,M.appendChild(Y);}i.appendChild(M);continue}let L=he(t,k,s,a,{availableWidth:v-C-I,isLastLine:h,isFirstLine:R,paragraphEndsWithLineBreak:F,tabStops:t.attrs?.tabs,leftIndentPx:u,firstLineIndentPx:R?x:0,context:o,renderedInlineImageKeys:T,lineRightEdgePx:e.width-E-I});if(C>0||I>0){C>0&&(L.style.marginLeft=`${C}px`),I>0&&(L.style.marginRight=`${I}px`);let M=v-C-I;M>0&&(L.style.width=`${M}px`);}k.floatSkipBefore&&k.floatSkipBefore>0&&(L.style.marginTop=`${k.floatSkipBefore}px`);let B=g?.hanging&&g.hanging>0,Oe=g?.firstLine&&g.firstLine>0,St=L.dataset.flexLine==="true";if(R?u>0&&B?(L.style.paddingLeft=`${u}px`,St||(L.style.textIndent=`-${g.hanging}px`)):u>0&&Oe?(L.style.paddingLeft=`${u}px`,L.style.textIndent=`${g.firstLine}px`):u>0?L.style.paddingLeft=`${u}px`:Oe&&(L.style.textIndent=`${g.firstLine}px`):u>0?L.style.paddingLeft=`${u}px`:B&&(L.style.paddingLeft=`${g.hanging}px`),E>0&&(L.style.paddingRight=`${E}px`),R&&t.attrs?.listMarker&&!t.attrs?.listMarkerHidden){let M=g?.hanging??0,$=g?.firstLine??0,te=M>0?u-M:u+$;L.style.paddingLeft=`${Math.max(0,te)}px`,L.style.textIndent="0";let{fontFamily:Y,fontSize:kt}=chunkTAQTZAVZ_js.w(t),ze=jt(t.attrs.listMarker,chunkTAQTZAVZ_js.x(t),a,Y,kt,t.attrs.listMarkerRevision);te<0&&u>0&&(ze.style.marginLeft=`${te}px`),L.insertBefore(ze,L.firstChild);}i.appendChild(L);}if((d||l)&&!e.continuesOnNext){let S=i.lastElementChild;if(S){let k=a.createElement("span");k.className="layout-revision-pmark-glyph",d?k.classList.add("layout-revision-ins"):k.classList.add("layout-revision-del"),k.textContent="\xB6",k.setAttribute("aria-hidden","true"),S.appendChild(k);}}return i}function Yt(e,t){return (e.segments?.length??0)>1&&!t.attrs?.listMarker}function jt(e,t,n,o,r,a){let i=n.createElement("span");return i.className="layout-list-marker",i.style.fontFamily=chunkN3Y5BUKV_js.a(o).cssFallback,i.style.fontSize=`${r*96/72}px`,i.style.textAlign="left",i.style.boxSizing="border-box",i.style.display="inline-block",i.style.minWidth=`${t}px`,i.textContent=e,a==="ins"?i.style.color="#2e7d32":a==="del"&&(i.style.color="#c62828",i.style.textDecoration="line-through"),i}function q(e,t,n){let o=t.createElement("div");o.className=n.layerClass,o.style.position="absolute",o.style.top="0",o.style.left="0",n.sizing==="inset0"?(o.style.right="0",o.style.bottom="0"):(o.style.width="100%",o.style.height="100%",o.style.overflow="hidden"),o.style.pointerEvents="none",n.layerMode==="front"&&(o.style.zIndex="10");for(let r of e){let a=t.createElement("div");a.className=n.itemClass,a.style.position="absolute",a.style.pointerEvents="auto",a.style.top=`${r.y}px`,a.style.left=`${r.x}px`,r.pmStart!==void 0&&(a.dataset.pmStart=String(r.pmStart)),r.pmEnd!==void 0&&(a.dataset.pmEnd=String(r.pmEnd));let i=t.createElement("img");i.src=r.src,i.style.width=`${r.width}px`,i.style.height=`${r.height}px`,i.style.display="block",i.style.maxWidth="none",i.style.maxHeight="none",r.alt&&(i.alt=r.alt),r.transform&&(i.style.transform=r.transform,i.style.transformOrigin="center center"),oe(r)&&re(i,r),a.appendChild(i),o.appendChild(a);}return o}function pt(e,t,n){let o=[],r=0;for(let a=0;a<e.blocks.length;a++){let i=e.blocks[a];if(i?.kind!=="paragraph"){let m=t.blocks[a];m&&m.kind==="table"&&(r+=m.totalHeight??0);continue}let d=i;for(let m of d.runs){if(m.kind!=="image")continue;let s=m;if(!chunkZETEPB7I_js.c(s))continue;let b=s.position,g=s.distTop??0,u=s.distBottom??0,E=s.distLeft??12,y=s.distRight??12,p="left",w=0;if(b?.horizontal){let c=b.horizontal;c.align==="right"?(p="right",w=n-s.width):c.align==="left"?w=0:c.align==="center"?w=(n-s.width)/2:c.posOffset!==void 0&&(w=chunk4Q2IP5FW_js.e(c.posOffset),p=w>n/2?"right":"left");}else s.cssFloat==="right"&&(p="right",w=n-s.width);let F=r;if(b?.vertical){let c=b.vertical;c.posOffset!==void 0?F=r+chunk4Q2IP5FW_js.e(c.posOffset):c.align==="top"&&(F=0);}w=Math.max(0,Math.min(w,n-s.width)),o.push({src:s.src,width:s.width,height:s.height,alt:s.alt,transform:s.transform,x:w,y:F,side:p,distTop:g,distBottom:u,distLeft:E,distRight:y,wrapText:chunkZETEPB7I_js.e(s.cssFloat),wrapType:s.wrapType,pmStart:s.pmStart,pmEnd:s.pmEnd});}let l=t.blocks[a];l&&l.kind==="paragraph"&&(r+=l.totalHeight);}return o}function Re(e){return !!e&&e.style!=="none"&&e.style!=="nil"&&e.width!==0}function J(e,t,n){let o=`border${t.charAt(0).toUpperCase()+t.slice(1)}`;if(!Re(n))e.style[o]="none";else {let r=n.width??1,a=n.color??"#000000",i=n.style??"solid";e.style[o]=`${r}px ${i} ${a}`;}}function Ee(e){let t=[],n=0;for(let o of e)t.push(Math.round(n)),n+=o?.height??0;return t.push(Math.round(n)),t}function ft(e,t){let n=e.createElement("div");n.className="layout-table-cut-border",n.style.position="absolute",n.style.left=`${t.x}px`,n.style.width=`${t.width}px`;let o=t.border.width??1;return n.style.top=`${t.edge==="bottom"?t.topY-o:t.topY}px`,J(n,"top",t.border),n}function Le(e,t,n,o){e.classList.add(`ep-revision-${t}`,`ep-revision-${n}`),e.dataset.revisionId=String(o.revisionId),e.dataset.revisionAuthor=o.author,o.date&&(e.dataset.revisionDate=o.date);}var _={table:"layout-table",row:"layout-table-row",cell:"layout-table-cell",cellContent:"layout-table-cell-content",resizeHandle:"layout-table-resize-handle",rowResizeHandle:"layout-table-row-resize-handle",tableEdgeHandleBottom:"layout-table-edge-handle-bottom",tableEdgeHandleRight:"layout-table-edge-handle-right"};function Kt(e,t,n,o){let r=o.createElement("div");r.className=_.cellContent,r.style.position="relative";let a=e.padding?.left??7,i=e.padding?.right??7,d=Math.max(0,t.width-a-i);r.style.width=`${d}px`;let l=pt(e,t,d),m;if(l.length>0){m=l.filter(chunkZETEPB7I_js.a).map(E=>{let y=E.x+E.width+E.distRight,p=E.y-E.distTop,w=E.y+E.height+E.distBottom,F=0,c=0,x=E.wrapText??"bothSides";return x==="right"?F=y:x==="left"?c=d-(E.x-E.distLeft):E.side==="left"?F=y:c=d-(E.x-E.distLeft),{leftMargin:F,rightMargin:c,topY:p,bottomY:w}});let u=l.filter(chunkZETEPB7I_js.b);u.length>0&&r.appendChild(q(u,o,{layerClass:"layout-cell-floating-images-layer",itemClass:"layout-cell-floating-image",sizing:"fullSize",layerMode:"behind"}));}let s=0,b=0;for(let u=0;u<e.blocks.length;u++){let E=e.blocks[u],y=t.blocks[u];if(E?.kind==="paragraph"&&y?.kind==="paragraph"){let p=E,w=y,F=p.attrs?.spacing,c=Math.max(b,F?.before??0);s+=c,m&&m.length>0&&(w=chunkTAQTZAVZ_js.z(p,d,{floatingZones:m,paragraphYOffset:s}));let x={blockId:p.id,width:d,height:w.totalHeight,fromLine:0,toLine:w.lines.length,pmStart:p.pmStart,pmEnd:p.pmEnd},T={...n,insideTableCell:true},S=D(x,p,w,T,{document:o});S.style.position="relative",c>0&&(S.style.marginTop=`${c}px`),r.appendChild(S),s+=w.totalHeight,b=F?.after??0;}else if(E?.kind==="table"&&y?.kind==="table"){let p=E,w=y,F=b,c=Vt(p,w,n,o);c.style.position="relative",F>0&&(c.style.marginTop=`${F}px`),r.appendChild(c),s+=F+(y.totalHeight??0),b=0;}}b>0&&(r.style.paddingBottom=`${b}px`);let g=l.filter(u=>!chunkZETEPB7I_js.b(u));return g.length>0&&r.appendChild(q(g,o,{layerClass:"layout-cell-floating-images-layer",itemClass:"layout-cell-floating-image",sizing:"fullSize",layerMode:"front"})),r}function Vt(e,t,n,o){let r=o.createElement("div");r.className=`${_.table} layout-nested-table`,r.style.position="relative",r.style.width=`${t.totalWidth}px`,r.style.display="block",e.justification==="center"?(r.style.marginLeft="auto",r.style.marginRight="auto"):e.justification==="right"?r.style.marginLeft="auto":e.indent&&(r.style.marginLeft=`${e.indent}px`),r.dataset.blockId=String(e.id),e.pmStart!==void 0&&(r.dataset.pmStart=String(e.pmStart)),e.pmEnd!==void 0&&(r.dataset.pmEnd=String(e.pmEnd));let a=e.rows[0],i=a?.trackedIns,d=a?.trackedDel,l=(g,u)=>!!g&&!!u&&(g.author??"")===(u.author??"")&&(g.date??null)===(u.date??null),m=e.rows.length>0&&e.rows.every(g=>i?l(g.trackedIns,i):d?l(g.trackedDel,d):false);if(m){let g=i??d,u=i?"ins":"del";r.classList.add("ep-revision-table",`ep-revision-${u}`),r.dataset.revisionId=String(g.revisionId),r.dataset.revisionAuthor=g.author,g.date&&(r.dataset.revisionDate=g.date);}let s=Ee(t.rows),b=new Map;for(let g=0;g<e.rows.length;g++){let u=e.rows[g],E=t.rows[g];if(!u||!E)continue;let y=ve(u,E,g,s[g]??0,t.columnWidths,e.rows.length,n,o,b,s,void 0,m);r.appendChild(y);}return r.style.height=`${s[e.rows.length]??0}px`,r}function gt(e,t,n,o,r,a,i,d){let l=i.createElement("div");l.className=_.cell,e.trackedMarker&&e.trackedMarker.info.revisionId!==d&&Le(l,"cell",e.trackedMarker.kind,e.trackedMarker.info),l.style.position="absolute",l.style.left=`${n}px`,l.style.top="0",l.style.width=`${t.width}px`,l.style.height=`${o}px`,l.style.overflow="hidden",l.style.boxSizing="border-box";let m=e.padding?.top??1,s=e.padding?.right??7,b=e.padding?.bottom??1,g=e.padding?.left??7;l.style.padding=`${m}px ${s}px ${b}px ${g}px`,e.borders&&(r.isFirstRow&&J(l,"top",e.borders.top),J(l,"right",e.borders.right),J(l,"bottom",e.borders.bottom),r.isFirstCol&&J(l,"left",e.borders.left)),e.background&&(l.style.backgroundColor=e.background),e.noWrap&&(l.style.whiteSpace="nowrap");let u=(t.height??0)>=o-.5;if(e.verticalAlign&&!u)switch(l.style.display="flex",l.style.flexDirection="column",e.verticalAlign){case "top":l.style.justifyContent="flex-start";break;case "center":l.style.justifyContent="center";break;case "bottom":l.style.justifyContent="flex-end";break}let E=Kt(e,t,a,i);if(l.appendChild(E),e.blocks.length>0){let y=e.blocks[0],p=e.blocks[e.blocks.length-1];y&&"pmStart"in y&&y.pmStart!==void 0&&(l.dataset.pmStart=String(y.pmStart)),p&&"pmEnd"in p&&p.pmEnd!==void 0&&(l.dataset.pmEnd=String(p.pmEnd));}return l}function Ut(e,t){return chunkTAQTZAVZ_js.b(e).map(n=>{let o=0;for(let r=0;r<n.columnIndex;r++)o+=t[r]??0;return {rowIndex:n.rowIndex,cellIndex:n.cellIndex,columnIndex:n.columnIndex,x:o,colSpan:n.colSpan,rowSpan:n.rowSpan,cell:e.rows[n.rowIndex].cells[n.cellIndex]}})}function ve(e,t,n,o,r,a,i,d,l,m,s,b){let g=d.createElement("div");g.className=_.row,b||(e.trackedDel?Le(g,"row","del",e.trackedDel):e.trackedIns&&Le(g,"row","ins",e.trackedIns));let u=m&&m.length>n+1?(m[n+1]??0)-(m[n]??0):t.height;g.style.position="absolute",g.style.left="0",g.style.top=`${o}px`,g.style.width="100%",g.style.height=`${u}px`,g.dataset.rowIndex=String(n);let E=new Set;if(l){for(let[,w]of l)if(w.startRow<n&&w.startRow+w.rowSpan>n)for(let F=0;F<w.colSpan;F++)E.add(w.columnIndex+F);}let y=0,p=0;for(;E.has(p);)y+=r[p]??0,p++;for(let w=0;w<e.cells.length;w++){let F=e.cells[w],c=t.cells[w];if(!F||!c)continue;let x=F.colSpan??1,T=F.rowSpan??1,S=u;if(T>1&&m){S=0;for(let I=n;I<n+T&&I<m.length-1;I++)S+=(m[I+1]??0)-(m[I]??0);S===0&&(S=t.height*T);}let k=n===0||s===true,h=p===0;p+x>=r.length;let C=gt(F,c,y,S,{isFirstRow:k,isFirstCol:h},i,d,e.trackedIns?.revisionId??e.trackedDel?.revisionId);if(C.dataset.cellIndex=String(w),C.dataset.columnIndex=String(p),T>1&&(C.dataset.rowSpan=String(T)),g.appendChild(C),T>1&&l){let I=`${n}-${p}`;l.set(I,{cell:F,cellMeasure:c,columnIndex:p,startRow:n,rowSpan:T,colSpan:x,x:y,totalHeight:S});}for(let I=0;I<x&&p+I<r.length;I++)y+=r[p+I]??0;for(p+=x;E.has(p);)y+=r[p]??0,p++;}return g}function Q(e,t,n,o,r={}){let a=r.document??document,i=a.createElement("div");i.className=_.table,i.style.position=o.positioning==="flow"?"relative":"absolute",i.style.width=`${e.width}px`,i.style.overflow="hidden",i.dataset.blockId=String(e.blockId),i.dataset.fromRow=String(e.fromRow),i.dataset.toRow=String(e.toRow),e.pmStart!==void 0&&(i.dataset.pmStart=String(e.pmStart)),e.pmEnd!==void 0&&(i.dataset.pmEnd=String(e.pmEnd));let d=t.rows[0],l=d?.trackedIns,m=d?.trackedDel,s=(f,h)=>!!f&&!!h&&(f.author??"")===(h.author??"")&&(f.date??null)===(h.date??null),b=t.rows.length>0&&t.rows.every(f=>l?s(f.trackedIns,l):m?s(f.trackedDel,m):false);if(b){let f=l??m,h=l?"ins":"del";i.classList.add("ep-revision-table",`ep-revision-${h}`),i.dataset.revisionId=String(f.revisionId),i.dataset.revisionAuthor=f.author,f.date&&(i.dataset.revisionDate=f.date),i.style.overflowX="visible",i.style.overflowY="hidden";}let g=0;for(let f=0;f<n.columnWidths.length-1;f++){g+=n.columnWidths[f]??0;let h=a.createElement("div");h.className=_.resizeHandle,h.style.position="absolute",h.style.left=`${g-3}px`,h.style.top="0",h.style.width="6px",h.style.height="100%",h.style.cursor="col-resize",h.style.zIndex="10",h.dataset.columnIndex=String(f),h.dataset.tableBlockId=String(e.blockId),e.pmStart!==void 0&&(h.dataset.tablePmStart=String(e.pmStart)),i.appendChild(h);}let u=Ee(n.rows),E=Ut(t,n.columnWidths),y=e.headerRowCount??0,p=0;if(y>0&&e.continuesFromPrev){let f=new Map;for(let h=0;h<y;h++){let R=t.rows[h],C=n.rows[h];if(!R||!C)continue;let I=ve(R,C,h,p,n.columnWidths,t.rows.length,o,a,f,u,h===0,b);I.dataset.repeatedHeader="true",i.appendChild(I),p+=C.height;}}let w=(u[e.fromRow]??0)+(e.topClip??0),F=f=>p+(f-w),c=e.bottomClip!==void 0?Math.round(e.height):F(u[e.toRow]??0);i.style.height=`${c}px`;let x=new Map,T=y>0&&e.continuesFromPrev;for(let f of E){if(f.rowSpan<=1||f.rowIndex>=e.fromRow||f.rowIndex+f.rowSpan<=e.fromRow||T&&f.rowIndex<y)continue;let h=n.rows[f.rowIndex]?.cells?.[f.cellIndex];if(!h)continue;let R=0;for(let B=f.rowIndex;B<f.rowIndex+f.rowSpan&&B<u.length-1;B++)R+=(u[B+1]??0)-(u[B]??0);x.set(`${f.rowIndex}-${f.columnIndex}`,{cell:f.cell,cellMeasure:h,columnIndex:f.columnIndex,startRow:f.rowIndex,rowSpan:f.rowSpan,colSpan:f.colSpan,x:f.x,totalHeight:R});f.rowIndex+f.rowSpan>=t.rows.length;let I=f.columnIndex===0;f.columnIndex+f.colSpan>=n.columnWidths.length;let L=gt(f.cell,h,f.x,R,{isFirstRow:false,isFirstCol:I},o,a);L.style.top=`${F(u[f.rowIndex]??0)}px`,L.dataset.columnIndex=String(f.columnIndex),L.dataset.vmergeContinuation="true",delete L.dataset.pmStart,delete L.dataset.pmEnd,i.appendChild(L);}for(let f=e.fromRow;f<e.toRow;f++){let h=t.rows[f],R=n.rows[f];if(!h||!R)continue;let C=y>0&&e.continuesFromPrev?false:e.continuesFromPrev&&f===e.fromRow&&!e.topClip,I=ve(h,R,f,F(u[f]??0),n.columnWidths,t.rows.length,o,a,x,u,C,b);i.appendChild(I);}let S=(f,h,R,C)=>{for(let I of E){if(I.rowIndex>f||I.rowIndex+I.rowSpan-1<f||C&&!(h==="bottom"?I.rowIndex+I.rowSpan-1>f:I.rowIndex<f))continue;let v=I.cell.borders?.[h];if(!Re(v))continue;let L=0;for(let B=0;B<I.colSpan;B++)L+=n.columnWidths[I.columnIndex+B]??0;i.appendChild(ft(a,{x:I.x,topY:R,width:L,edge:h,border:v}));}};e.topClip?S(e.fromRow,"top",p,false):e.continuesFromPrev&&S(e.fromRow,"top",p,true),e.bottomClip!==void 0?S(e.toRow-1,"bottom",c,false):e.continuesOnNext&&S(e.toRow-1,"bottom",c,true);for(let f=e.fromRow;f<e.toRow-1;f++){let h=F(u[f+1]??0);if(h<=p||h>=e.height)continue;let R=a.createElement("div");R.className=_.rowResizeHandle,R.style.position="absolute",R.style.left="0",R.style.top=`${h-3}px`,R.style.width="100%",R.style.height="6px",R.style.cursor="row-resize",R.style.zIndex="10",R.dataset.rowIndex=String(f),R.dataset.tableBlockId=String(e.blockId),e.pmStart!==void 0&&(R.dataset.tablePmStart=String(e.pmStart)),i.appendChild(R);}let k=e.toRow===t.rows.length&&e.bottomClip===void 0;if(k){let f=a.createElement("div");f.className=_.tableEdgeHandleBottom,f.style.position="absolute",f.style.left="0",f.style.top=`${F(u[e.toRow]??0)-3}px`,f.style.width="100%",f.style.height="6px",f.style.cursor="row-resize",f.style.zIndex="10",f.dataset.rowIndex=String(t.rows.length-1),f.dataset.tableBlockId=String(e.blockId),f.dataset.isEdge="bottom",e.pmStart!==void 0&&(f.dataset.tablePmStart=String(e.pmStart)),i.appendChild(f);}if(k){let f=n.columnWidths.reduce((R,C)=>R+C,0),h=a.createElement("div");h.className=_.tableEdgeHandleRight,h.style.position="absolute",h.style.left=`${f-3}px`,h.style.top="0",h.style.width="6px",h.style.height="100%",h.style.cursor="col-resize",h.style.zIndex="10",h.dataset.columnIndex=String(n.columnWidths.length-1),h.dataset.tableBlockId=String(e.blockId),h.dataset.isEdge="right",e.pmStart!==void 0&&(h.dataset.tablePmStart=String(e.pmStart)),i.appendChild(h);}return i}var Xt={textBox:"layout-textbox"};function ee(e,t,n,o,r={}){let a=r.document??document,i=a.createElement("div");if(i.className=Xt.textBox,i.style.position="absolute",i.style.width=`${e.width}px`,i.style.height=`${e.height}px`,i.style.overflow="hidden",i.style.boxSizing="border-box",qt(i,e),t.fillColor&&(i.style.backgroundColor=t.fillColor),t.outlineWidth&&t.outlineWidth>0){let s=t.outlineStyle||"solid",b=t.outlineColor||"#000000";i.style.border=`${t.outlineWidth}px ${s} ${b}`;}let d=t.margins??chunkDROCYKAR_js.a;i.style.padding=`${d.top}px ${d.right}px ${d.bottom}px ${d.left}px`,i.dataset.blockId=String(e.blockId),e.pmStart!==void 0&&(i.dataset.pmStart=String(e.pmStart)),e.pmEnd!==void 0&&(i.dataset.pmEnd=String(e.pmEnd));let l=e.width-d.left-d.right,m=0;for(let s=0;s<t.content.length;s++){let b=t.content[s],g=n.innerMeasures[s];if(!g)continue;let u={blockId:b.id,width:l,height:g.totalHeight,pmStart:b.pmStart,pmEnd:b.pmEnd,fromLine:0,toLine:g.lines.length},E=D(u,b,g,{...o,positioning:"flow"},{document:a});i.appendChild(E),m+=g.totalHeight;}return i}function qt(e,t){!t.isFloating&&t.zIndex===void 0||(e.style.zIndex=String(t.zIndex??10));}var Zt="layout-watermark-layer";function Jt(e,t){let n=Math.max(e.trim().length,1),o=t/(n*.62);return Math.max(24,Math.min(o,180))}function Qt(e,t,n){let o=n.createElement("div");o.style.position="absolute",o.style.top="50%",o.style.left="50%",o.style.whiteSpace="nowrap",o.style.fontWeight="bold",o.style.color=e.color,o.style.fontFamily=chunkN3Y5BUKV_js.a(e.font).cssFallback,o.style.userSelect="none";let r=t.size.w-t.margins.left-t.margins.right,a=e.layout==="diagonal"?r*1.3:r,i=e.fontSize!==void 0?e.fontSize*96/72:Jt(e.text,a);o.style.fontSize=`${i}px`,o.style.lineHeight="1",o.style.opacity=e.semitransparent?"0.5":"0.85";let d=e.layout==="diagonal"?-45:0;return o.style.transform=`translate(-50%, -50%) rotate(${d}deg)`,o.style.transformOrigin="center center",o.textContent=e.text,o}function en(e,t,n){if(!e.dataUrl)return null;let o=n.createElement("img");o.src=e.dataUrl,o.alt="",o.style.position="absolute",o.style.top="50%",o.style.left="50%",o.style.transform="translate(-50%, -50%)";let r=t.size.w-t.margins.left-t.margins.right,a=e.widthEmu!==void 0?e.widthEmu/(914400/96):r*.75;return o.style.width=`${a*(e.scale||1)}px`,o.style.height="auto",e.washout&&(o.style.opacity="0.5",o.style.filter="brightness(1.4) contrast(0.4)"),o}function mt(e,t,n=document){let o=e.kind==="text"?Qt(e,t,n):en(e,t,n);if(!o)return null;let r=n.createElement("div");return r.className=Zt,r.setAttribute("aria-hidden","true"),r.style.position="absolute",r.style.inset="0",r.style.overflow="hidden",r.style.pointerEvents="none",r.style.zIndex="0",r.appendChild(o),r}function ut(e){return e?.align??e?.alignment}function tn(e,t){let n=e.position.vertical;if(!n)return e.paragraphY;let o=ut(n),r=n.posOffset!==void 0?chunk4Q2IP5FW_js.e(n.posOffset):void 0;if(n.relativeTo==="page"){if(r!==void 0)return r-t.flowTop;if(o==="top")return -t.flowTop;if(o==="bottom")return t.pageHeight-e.height-t.flowTop;if(o==="center")return (t.pageHeight-e.height)/2-t.flowTop}if(n.relativeTo==="margin"){let a=t.margins.top,i=t.pageHeight-t.margins.top-t.margins.bottom;if(r!==void 0)return a+r-t.flowTop;if(o==="top")return a-t.flowTop;if(o==="bottom")return a+i-e.height-t.flowTop;if(o==="center")return a+(i-e.height)/2-t.flowTop}return r!==void 0?e.paragraphY+r:e.paragraphY}function Pe(e,t,n){if(!t)return "0";let o=ut(t);if(t.relativeTo==="page"){if(t.posOffset!==void 0)return `${chunk4Q2IP5FW_js.e(t.posOffset)-n.flowLeft}px`;if(o==="right")return `${n.pageWidth-e-n.flowLeft}px`;if(o==="center")return `${(n.pageWidth-e)/2-n.flowLeft}px`;if(o==="left")return `${-n.flowLeft}px`}return t.posOffset!==void 0?`${chunk4Q2IP5FW_js.e(t.posOffset)}px`:o==="right"?`${n.contentWidth-e}px`:o==="center"?`${(n.contentWidth-e)/2}px`:"0"}function nn(e,t,n){e.style.left=Pe(t.width,t.position.horizontal,n);}function ht(e,t){let n=e.tblpY??0;e.vertAnchor==="page"?n-=t.flowTop:e.vertAnchor==="margin"&&(n+=t.margins.top-t.flowTop);let o=e.tblpX??0;return e.horzAnchor==="page"?o-=t.flowLeft:e.horzAnchor==="margin"&&(o+=t.margins.left-t.flowLeft),{left:o,top:n}}function Be(e,t,n,o){let r=n.document??document,a=r.createElement("div");a.style.position="relative";let i=t.contentWidth??600,d=[],l=0;for(let m=0;m<e.blocks.length;m++){let s=e.blocks[m],b=e.measures[m];if(!(!s||!b))if(s.kind==="paragraph"){if(b.kind!=="paragraph")continue;let g=s,u=b,E=g.attrs?.spacing?.before??0,y=l,p=[];for(let x of g.runs)if(x.kind==="image"&&"position"in x&&x.position){let T=x;d.push({src:T.src,width:T.width,height:T.height,alt:T.alt,paragraphY:y,position:T.position});}else p.push(x);let w={...g,runs:p},F={blockId:g.id,width:i,height:u.totalHeight,fromLine:0,toLine:u.lines.length,pmStart:g.pmStart,pmEnd:g.pmEnd},c=D(F,w,u,{...t,positioning:"absolute"},{document:r});c.style.top=`${l+E}px`,c.style.left="0",c.style.width=`${i}px`,a.appendChild(c),l+=u.totalHeight;}else if(s.kind==="table"){if(b.kind!=="table")continue;let g={blockId:s.id,width:b.totalWidth,height:b.totalHeight,fromRow:0,toRow:b.rows.length,pmStart:s.pmStart,pmEnd:s.pmEnd},u=Q(g,s,b,{...t,positioning:"absolute"},{document:r});if(s.floating){let{left:E,top:y}=ht(s.floating,o);u.style.top=`${y}px`,u.style.left=`${E}px`,a.appendChild(u);}else u.style.top=`${l}px`,u.style.left="0",a.appendChild(u),l+=b.totalHeight;}else if(s.kind==="image"){if(b.kind!=="image")continue;let g={blockId:s.id,width:b.width,height:b.height,pmStart:s.pmStart,pmEnd:s.pmEnd},u=Z(g,s,b,{...t},{document:r});u.style.top=`${l}px`,u.style.left="0",a.appendChild(u),l+=b.height;}else if(s.kind==="textBox"){if(b.kind!=="textBox")continue;let g={blockId:s.id,width:b.width,height:b.height,pmStart:s.pmStart,pmEnd:s.pmEnd},u=ee(g,s,b,{...t,positioning:"absolute"},{document:r});u.style.top=`${l}px`,u.style.left=Pe(b.width,s.position?.horizontal,o),a.appendChild(u),s.displayMode!=="float"&&(l+=b.height);}else s.kind==="sectionBreak"||s.kind==="pageBreak"||s.kind==="columnBreak"||chunkDROCYKAR_js.c(s,"renderHeaderFooterContent");}for(let m of d){let s=r.createElement("img");s.src=m.src,s.width=m.width,s.height=m.height,m.alt&&(s.alt=m.alt),s.style.position="absolute",s.style.display="block",s.style.width=`${m.width}px`,s.style.height=`${m.height}px`,s.style.maxWidth="none",s.style.maxHeight="none",nn(s,m,o),s.style.top=`${tn(m,o)}px`,a.appendChild(s);}return a}var be=12,Me=6;function on(e,t){if(e.size!==t.size)return false;for(let[n,o]of e)if(t.get(n)!==o)return false;return true}function rn(e,t){for(let[n,o]of t)if((e.get(n)??0)<o)return false;return true}function an(e,t){let n=new Map(e);for(let[o,r]of t)n.set(o,Math.max(n.get(o)??0,r));return n}var $e=8;function Io(e){let t=[],n=o=>{for(let r of o)if(r.kind==="paragraph")for(let a of r.runs)a.kind==="text"&&a.footnoteRefId!=null&&t.push({footnoteId:a.footnoteRefId,pmPos:a.pmStart??0});else if(r.kind==="table")for(let a of r.rows)for(let i of a.cells)n(i.blocks);else r.kind==="textBox"&&n(r.content);};return n(e),t}function ye(e,t){let n=new Map;if(t.length===0)return n;for(let o of t)for(let r of e){let a=false;for(let i of r.fragments){let d=i.pmStart??-1,l=i.pmEnd??-1;if(d>=0&&l>=0&&o.pmPos>=d&&o.pmPos<l){let m=n.get(r.number)??[];m.includes(o.footnoteId)||m.push(o.footnoteId),n.set(r.number,m),a=true;break}}if(a)break}return n}function sn(e,t){if(e.length===0)return [{kind:"paragraph",id:`fn-empty-${t}`,runs:[{kind:"text",text:`${t} `,fontSize:$e,superscript:true}]}];let n=e.map(r=>{if(r.kind!=="paragraph")return r;let a=r;return {...a,runs:a.runs.map(i=>(i.kind==="text"||i.kind==="tab")&&i.fontSize==null?{...i,fontSize:$e}:i)}}),o=n[0];if(o.kind==="paragraph"){let r={kind:"text",text:`${t} `,fontSize:$e,superscript:true};n[0]={...o,runs:[r,...o.runs]};}return n}function ln(e,t,n,o){let r=chunkUXPY65AC_js.c(e.content,{styles:o.styles??void 0,theme:o.theme??null,defaultTabStopTwips:o.defaultTabStopTwips??null}),a=chunkBTSL4AYY_js.c(r,{theme:o.theme??void 0}),i=sn(a,t),d=o.measureBlocks(i,n),l=d.reduce((m,s)=>s.kind==="paragraph"||s.kind==="table"?m+s.totalHeight:s.kind==="image"||s.kind==="textBox"?m+s.height:m,0);return {id:e.id,displayNumber:t,blocks:i,measures:d,height:l}}function Fo(e,t,n,o){let r=new Map,a=new Map;for(let l of e)(l.noteType==="normal"||l.noteType==null)&&a.set(l.id,l);let i=1,d=new Set;for(let l of t){if(d.has(l.footnoteId))continue;d.add(l.footnoteId);let m=a.get(l.footnoteId);m&&(r.set(l.footnoteId,ln(m,i,n,o)),i++);}return r}function He(e,t){let n=new Map;for(let[o,r]of e){let a=0;for(let i of r){let d=t.get(i);d&&(a+=d.height);}a>0&&(a+=be,n.set(o,a));}return n}function Co(e){let{blocks:t,measures:n,layoutOpts:o,footnoteRefs:r,footnoteContentMap:a,initialLayout:i}=e,d=ye(i.pages,r),l=He(d,a);if(l.size===0)return {layout:i,pageFootnoteMap:d,converged:true};let m=i,s=false;for(let b=0;b<Me;b++){m=chunkTAQTZAVZ_js.U(t,n,{...o,footnoteReservedHeights:l});let g=ye(m.pages,r),u=He(g,a);if(d=g,on(l,u)){l=u,s=true;break}l=u;}if(!s){let b=l,g=false;for(let u=0;u<Me;u++){m=chunkTAQTZAVZ_js.U(t,n,{...o,footnoteReservedHeights:b}),d=ye(m.pages,r);let E=He(d,a);if(rn(b,E)){g=true;break}b=an(b,E);}g||(m=chunkTAQTZAVZ_js.U(t,n,{...o,footnoteReservedHeights:b}),d=ye(m.pages,r)),console.warn(`[docx-editor] footnote layout did not stabilize within ${Me} passes; settling with conservative page reservations. If footnotes appear misplaced, please file a bug with the document.`);}for(let[b,g]of d){let u=m.pages.find(E=>E.number===b);u&&(u.footnoteIds=g);}return {layout:m,pageFootnoteMap:d,converged:s}}function Ro(e,t,n){let o=new Map;if(!n?.package?.footnotes)return o;let r=new Map;for(let a of n.package.footnotes)a.noteType&&a.noteType!=="normal"||r.set(a.id,a);for(let[a,i]of e){let d=[];for(let l of i){let m=r.get(l);if(!m)continue;let s=t.get(l),b=s?.displayNumber??0;d.push({displayNumber:String(b),text:chunkAA6D2C6R_js.x(m),content:s});}d.length>0&&o.set(a,d);}return o}function dn(e,t,n,o){let r=o.createElement("div");r.className="layout-footnote-content",r.style.position="relative",r.style.width=`${t}px`,r.style.height=`${e.height}px`;let a=0;for(let i=0;i<e.blocks.length;i++){let d=e.blocks[i],l=e.measures[i];if(!(!d||!l)){if(d.kind==="paragraph"&&l.kind==="paragraph"){let m=d.attrs?.spacing?.before??0,s={blockId:d.id,width:t,height:l.totalHeight,pmStart:d.pmStart,pmEnd:d.pmEnd,fromLine:0,toLine:l.lines.length},b=D(s,d,l,{...n,section:"body",contentWidth:t,positioning:"absolute"},{document:o});b.style.top=`${a+m}px`,b.style.left="0",b.style.width=`${t}px`,b.style.height=`${l.totalHeight}px`,r.appendChild(b),a+=l.totalHeight;}else if(d.kind==="table"&&l.kind==="table"){let m={blockId:d.id,width:l.totalWidth,height:l.totalHeight,pmStart:d.pmStart,pmEnd:d.pmEnd,fromRow:0,toRow:l.rows.length},s=Q(m,d,l,{...n,section:"body",contentWidth:t,positioning:"absolute"},{document:o});s.style.top=`${a}px`,s.style.left="0",r.appendChild(s),a+=l.totalHeight;}else if(d.kind==="image"&&l.kind==="image"){let m={blockId:d.id,width:l.width,height:l.height,pmStart:d.pmStart,pmEnd:d.pmEnd},s=Z(m,d,l,{...n},{document:o});s.style.top=`${a}px`,s.style.left="0",r.appendChild(s),a+=l.height;}else if(d.kind==="textBox"&&l.kind==="textBox"){let m={blockId:d.id,width:l.width,height:l.height,pmStart:d.pmStart,pmEnd:d.pmEnd},s=ee(m,d,l,{...n,section:"body",contentWidth:t,positioning:"absolute"},{document:o});s.style.top=`${a}px`,s.style.left="0",r.appendChild(s),a+=l.height;}}}return r}function cn(e,t){let n=t.createElement("div");n.style.fontSize="10px",n.style.lineHeight="1.3",n.style.marginBottom="4px",n.style.color="#000";let o=t.createElement("sup");o.textContent=e.displayNumber,o.style.fontSize="7px",o.style.marginRight="2px",n.appendChild(o);let r=t.createTextNode(" "+e.text);return n.appendChild(r),n}function yt(e){let t=be;for(let n of e)n.content&&(t+=n.content.height);return t}function bt(e,t,n,o){let r=o.createElement("div");r.className="layout-footnote-area",r.style.width=`${t}px`;let a=o.createElement("div"),i=.5,d=(be-i)/2;a.style.width="33%",a.style.height=`${i}px`,a.style.backgroundColor="#000",a.style.marginBottom=`${d}px`,a.style.marginTop=`${d}px`,r.appendChild(a);for(let l of e)r.appendChild(l.content?dn(l.content,t,n,o):cn(l,o));return r}function Ae(e,t,n){let o={pageNumber:e.number,totalPages:t,section:"body",resolvedCommentIds:n.resolvedCommentIds},r={...n};if(n.titlePg&&e.number===1&&(r.headerContent=n.firstPageHeaderContent,r.footerContent=n.firstPageFooterContent),n.footnotesByPage){let a=n.footnotesByPage.get(e.number);a&&a.length>0&&(r.footnoteArea=a);}return {context:o,pageOptions:r}}function xt(e){let t=[];t.push(`s:${e.size.w},${e.size.h}`),t.push(`m:${e.margins.top},${e.margins.right},${e.margins.bottom},${e.margins.left}`),t.push(`n:${e.number}`),e.footnoteReservedHeight&&t.push(`fn:${e.footnoteReservedHeight}`);for(let n of e.fragments){let o=`${n.kind}:${n.blockId},${n.x},${n.y},${n.width},${n.height}`;n.pmStart!==void 0&&(o+=`,ps:${n.pmStart}`),n.pmEnd!==void 0&&(o+=`,pe:${n.pmEnd}`),n.kind==="paragraph"?o+=`,fl:${n.fromLine},tl:${n.toLine}`:n.kind==="table"&&(o+=`,fr:${n.fromRow},tr:${n.toRow}`),t.push(o);}return t.join("|")}function pn(e){let t=[];return e.headerContent&&t.push(`hdr:${e.headerContent.blocks.length},${e.headerContent.height},${e.headerContent.visualTop??0},${e.headerContent.visualBottom??e.headerContent.height}`),e.footerContent&&t.push(`ftr:${e.footerContent.blocks.length},${e.footerContent.height},${e.footerContent.visualTop??0},${e.footerContent.visualBottom??e.footerContent.height}`),e.firstPageHeaderContent&&t.push(`fp-hdr:${e.firstPageHeaderContent.blocks.length},${e.firstPageHeaderContent.height}`),e.firstPageFooterContent&&t.push(`fp-ftr:${e.firstPageFooterContent.blocks.length},${e.firstPageFooterContent.height}`),e.titlePg&&t.push("titlePg"),e.theme&&t.push(`thm:${e.theme.name??"default"}`),e.pageBorders&&t.push(`pb:${JSON.stringify(e.pageBorders)}`),e.headerDistance!==void 0&&t.push(`hd:${e.headerDistance}`),e.footerDistance!==void 0&&t.push(`fd:${e.footerDistance}`),t.join("|")}function fn(e,t){e.style.display="flex",e.style.flexDirection="column",e.style.alignItems="center",e.style.gap=`${t}px`,e.style.padding=`${t}px`,e.style.backgroundColor="var(--doc-bg, #f8f9fa)";}var xe=2,gn=8;function mn(e,t,n={}){let o=e.length,r=n.pageGap??24,a=t,i=a.__pageRenderState,d=pn(n),l=o>=gn;if(i&&i.optionsHash===d&&l){let p=i.pageStates,w=i.pageDataMap,F=a.__pageObserver,c=[];for(let S of e)c.push(xt(S));let x=i.totalPages!==o,T=Math.min(p.length,e.length);for(let S=0;S<T;S++){let k=p[S],f=c[S];if(k.fingerprint===f&&!x){let C=w.get(k.element);C&&(C.page=e[S]);continue}let h=k.element,R=w.get(h);R&&(R.page=e[S],R.rendered&&un(h,w,o,n)),k.fingerprint=f,le(h,e[S].size.w,e[S].size.h,n),h.dataset.pageNumber=String(e[S].number);}if(e.length>p.length){let S=n.document??document;for(let k=p.length;k<e.length;k++){let f=e[k],h=S.createElement("div");h.className=n.pageClassName??G.page,h.dataset.pageNumber=String(f.number),h.dataset.pageIndex=String(k),le(h,f.size.w,f.size.h,n),t.appendChild(h),p.push({element:h,fingerprint:c[k]}),w.set(h,{page:f,index:k,rendered:false}),F&&F.observe(h);}}if(e.length<p.length){for(let S=p.length-1;S>=e.length;S--){let k=p[S].element;F&&F.unobserve(k),w.delete(k),t.removeChild(k);}p.length=e.length;}for(let S=0;S<p.length;S++){let k=w.get(p[S].element);k&&(k.index=S);}return i.totalPages=o,i.currentOptions=n,"incremental"}let s=a.__pageObserver;s&&(s.disconnect(),a.__pageObserver=void 0),t.innerHTML="",a.__pageRenderState=void 0,fn(t,r);let b=[],g=[];for(let p=0;p<e.length;p++){let w=e[p];if(g.push(xt(w)),l){let c=(n.document??document).createElement("div");c.className=n.pageClassName??G.page,c.dataset.pageNumber=String(w.number),c.dataset.pageIndex=String(p),le(c,w.size.w,w.size.h,n),t.appendChild(c),b.push(c);}else {let{context:F,pageOptions:c}=Ae(w,o,n),x=Se(w,F,c);t.appendChild(x),b.push(x);}}if(!l)return "full";let u=new Map;for(let p=0;p<e.length;p++)u.set(b[p],{page:e[p],index:p,rendered:false});let E=new IntersectionObserver(p=>{let w=a.__pageRenderState;if(!w)return;let{currentOptions:F,totalPages:c,pageDataMap:x}=w;for(let f of p){let h=f.target,R=x.get(h);if(R&&f.isIntersecting){se(h,x,c,F);for(let C=-xe;C<=xe;C++){let I=R.index+C;I>=0&&I<w.pageStates.length&&I!==R.index&&se(w.pageStates[I].element,x,c,F);}}}let T=window.innerHeight,S=T*3,k=new Set;for(let[f,h]of x){if(!h.rendered)continue;let R=f.getBoundingClientRect();R.bottom>-S&&R.top<T+S&&k.add(h.index);}for(let[f,h]of x){if(!h.rendered)continue;let R=false;for(let C of k)if(Math.abs(h.index-C)<=xe+1){R=true;break}!R&&k.size>0&&hn(f,x);}},{root:null,rootMargin:"1500px 0px 1500px 0px"});for(let p of b)E.observe(p);a.__pageObserver=E,a.__pageRenderState={pageStates:b.map((p,w)=>({element:p,fingerprint:g[w]})),totalPages:o,optionsHash:d,pageDataMap:u,currentOptions:n};let y=Math.min(e.length,xe+3);for(let p=0;p<y;p++)se(b[p],u,o,n);return "full"}function se(e,t,n,o){let r=t.get(e);if(!r||r.rendered)return;let{context:a,pageOptions:i}=Ae(r.page,n,o),d=Se(r.page,a,i);for(;d.firstChild;)e.appendChild(d.firstChild);r.rendered=true;}function un(e,t,n,o){let r=t.get(e);if(!r)return;let{context:a,pageOptions:i}=Ae(r.page,n,o),l=Se(r.page,a,i).querySelector(`.${G.content}`),m=e.querySelector(`.${G.content}`);l&&m?e.replaceChild(l,m):(e.innerHTML="",r.rendered=false,se(e,t,n,o));}function hn(e,t){let n=t.get(e);!n||!n.rendered||(e.innerHTML="",n.rendered=false);}function yn(e){let n=e.__pageRenderState;if(!n)return 0;let{pageStates:o,totalPages:r,currentOptions:a,pageDataMap:i}=n,d=0;for(let{element:l}of o){let m=i.get(l);!m||m.rendered||(se(l,i,r,a),d++);}return d}var G={page:"layout-page",content:"layout-page-content",header:"layout-page-header",footer:"layout-page-footer"};function le(e,t,n,o){e.style.position="relative",e.style.width=`${t}px`,e.style.height=`${n}px`,e.style.backgroundColor=o.backgroundColor??"#ffffff",e.style.overflow="hidden",e.style.fontFamily=chunkN3Y5BUKV_js.a("Calibri").cssFallback,e.style.fontSize=`${1056/72}px`,e.style.color="#000000",o.showBorders&&(e.style.border="1px solid #ccc"),o.showShadow&&(e.style.boxShadow="0 2px 8px rgba(0, 0, 0, 0.15)");}function bn(e,t){switch(t??"allPages"){case "firstPage":return e===1;case "notFirstPage":return e!==1;default:return true}}function ke(e){return e?.space!==void 0?chunk4Q2IP5FW_js.i(e.space):0}function we(e,t,n,o){if(!t||t.style==="none"||t.style==="nil")return;let r=chunkBHBOAP6Z_js.c(t,n,o);for(let[l,m]of Object.entries(r))e.style[l]=String(m);let a=`border${n}Style`,i=`border${n}Width`;if(e.style[a]==="double"){let l=parseFloat(e.style[i]);(!Number.isFinite(l)||l<3)&&(e.style[i]="3px");}}function xn(e,t,n){let o=t.pageBorders;if(!o||!bn(e.number,o.display)||![o.top,o.bottom,o.left,o.right].some(b=>b&&b.style!=="none"&&b.style!=="nil"))return null;let a=o.offsetFrom??"text",i=ke(o.top),d=ke(o.right),l=ke(o.bottom),m=ke(o.left),s=n.createElement("div");return s.className="layout-page-border",s.style.position="absolute",s.style.pointerEvents="none",s.style.boxSizing="border-box",s.style.zIndex=o.zOrder==="back"?"0":"20",a==="page"?(s.style.top=`${i}px`,s.style.right=`${d}px`,s.style.bottom=`${l}px`,s.style.left=`${m}px`):(s.style.top=`${Math.max(0,e.margins.top-i)}px`,s.style.right=`${Math.max(0,e.margins.right-d)}px`,s.style.bottom=`${Math.max(0,e.margins.bottom-l)}px`,s.style.left=`${Math.max(0,e.margins.left-m)}px`),we(s,o.top,"Top",t.theme),we(s,o.bottom,"Bottom",t.theme),we(s,o.left,"Left",t.theme),we(s,o.right,"Right",t.theme),s}function Sn(e,t){let n=t.margins;e.style.position="absolute",e.style.top=`${n.top}px`,e.style.left=`${n.left}px`,e.style.right=`${n.right}px`,e.style.bottom=`${n.bottom}px`,e.style.overflow="visible";}function kn(e,t,n){e.style.position="absolute",e.style.left=`${t.x-n.left}px`;let o=t.y-n.top;e.style.top=`${t.kind==="table"?Math.round(o):o}px`,e.style.width=`${t.width}px`,"height"in t&&t.kind!=="table"&&(e.style.height=`${t.height}px`);}function wn(e,t,n,o){let r=[];for(let a of e.runs){if(a.kind!=="image")continue;let i=a;if(!chunkZETEPB7I_js.c(i))continue;let d=i.distTop??0,l=i.distBottom??0,m=i.distLeft??12,s=i.distRight??12,{x:b,y:g,side:u}=chunkZETEPB7I_js.g(i,t,n,o);r.push({src:i.src,width:i.width,height:i.height,alt:i.alt,transform:i.transform,side:u,x:b,y:g,distTop:d,distBottom:l,distLeft:m,distRight:s,pmStart:i.pmStart,pmEnd:i.pmEnd,wrapText:chunkZETEPB7I_js.e(i.cssFloat),wrapType:i.wrapType,cropTop:i.cropTop,cropRight:i.cropRight,cropBottom:i.cropBottom,cropLeft:i.cropLeft,opacity:i.opacity});}return r}function Se(e,t,n={}){let o=n.document??document,r=o.createElement("div");if(r.className=n.pageClassName??G.page,r.dataset.pageNumber=String(e.number),le(r,e.size.w,e.size.h,n),n.watermark){let c=mt(n.watermark,e,o);c&&r.appendChild(c);}let a=xn(e,n,o);a&&n.pageBorders?.zOrder==="back"&&r.appendChild(a);let i=o.createElement("div");i.className=G.content,Sn(i,e);let d=chunkZETEPB7I_js.f(e),l=d.contentWidth,m=[],s=[];for(let c of e.fragments)if(c.kind==="paragraph"&&n.blockLookup){let x=n.blockLookup.get(String(c.blockId));if(x?.block.kind==="paragraph"){let T=x.block,S=c.y-e.margins.top,k=wn(T,S,l,d);m.push(...k);}}for(let c of m)chunkZETEPB7I_js.a(c)&&s.push({side:c.side,x:c.x,y:c.y,width:c.width,height:c.height,distTop:c.distTop,distBottom:c.distBottom,distLeft:c.distLeft,distRight:c.distRight,wrapText:c.wrapText,wrapType:c.wrapType});if(n.blockLookup)for(let c of e.fragments){if(c.kind!=="table")continue;let x=n.blockLookup.get(String(c.blockId));if(x?.block.kind!=="table")continue;let S=x.block.floating;if(!S)continue;let k=c.x-e.margins.left,f=c.y-e.margins.top,h=S.topFromText??0,R=S.bottomFromText??0,C=S.leftFromText??12,I=S.rightFromText??12,v=k<l/2?"left":"right";s.push({side:v,x:k,y:f,width:c.width,height:c.height,distTop:h,distBottom:R,distLeft:C,distRight:I});}if(n.blockLookup)for(let c of e.fragments){if(c.kind!=="textBox")continue;let x=n.blockLookup.get(String(c.blockId));if(x?.block.kind!=="textBox")continue;let T=x.block;if(!chunkTAQTZAVZ_js.I(T))continue;let S=c.y-e.margins.top,k=chunkZETEPB7I_js.g({width:c.width,height:c.height,position:T.position,cssFloat:T.cssFloat},S,l,d);c.x=e.margins.left+k.x,c.y=e.margins.top+k.y,!(!chunkTAQTZAVZ_js.J(T)&&!chunkTAQTZAVZ_js.K(T))&&s.push({side:k.side,x:k.x,y:k.y,width:c.width,height:c.height,distTop:T.distTop??0,distBottom:T.distBottom??0,distLeft:T.distLeft??12,distRight:T.distRight??12,wrapText:T.wrapText,wrapType:T.wrapType});}let b=s.length>0?chunkTAQTZAVZ_js.t(s,l):[],g=m.filter(chunkZETEPB7I_js.b),u=m.filter(c=>!chunkZETEPB7I_js.b(c));if(g.length>0){let c=q(g,o,{layerClass:"layout-floating-images-layer",itemClass:"layout-page-floating-image",sizing:"inset0",layerMode:"behind"});i.appendChild(c);}let E=c=>{if(c.kind!=="paragraph"||!n.blockLookup||!c.blockId)return;let x=n.blockLookup.get(String(c.blockId));if(x?.block.kind==="paragraph")return x.block.attrs?.borders},y,p=new Map,w=c=>!n.blockLookup||!c.blockId?[]:n.blockLookup.get(String(c.blockId))?.block.sdtGroups??[],F=(c,x)=>{if(x.length===0)return;let T=x[x.length-1];c.classList.add("layout-block-sdt"),c.dataset.sdtGroupId=T.id,c.dataset.sdtType=T.sdtType,c.dataset.sdtDepth=String(x.length),T.tag!=null&&(c.dataset.sdtTag=T.tag),T.alias!=null&&(c.dataset.sdtAlias=T.alias),T.lock!=null&&(c.dataset.sdtLock=T.lock);};for(let c=0;c<e.fragments.length;c++){let x=e.fragments[c],T,S={...t,section:"body",contentWidth:l},k=x.y-e.margins.top;if(n.blockLookup&&x.blockId){let f=n.blockLookup.get(String(x.blockId));if(x.kind==="paragraph"&&f?.block.kind==="paragraph"&&f?.measure.kind==="paragraph"){let h=f.block,R=c+1<e.fragments.length?E(e.fragments[c+1]):void 0,C=String(x.blockId),I=p.get(C);I||(I=new Set,p.set(C,I));let v=f.measure;b.length>0&&(v=chunkTAQTZAVZ_js.z(h,l,{floatingZones:b,paragraphYOffset:k})),T=D(x,h,v,S,{document:o,prevBorders:y,nextBorders:R,renderedInlineImageKeys:I}),y=h.attrs?.borders;}else x.kind==="table"&&f?.block.kind==="table"&&f?.measure.kind==="table"?(T=Q(x,f.block,f.measure,S,{document:o}),y=void 0):x.kind==="image"&&f?.block.kind==="image"&&f?.measure.kind==="image"?(T=Z(x,f.block,f.measure,S,{document:o}),y=void 0):x.kind==="textBox"&&f?.block.kind==="textBox"&&f?.measure.kind==="textBox"?(T=ee(x,f.block,f.measure,S,{document:o}),y=void 0):(T=Ie(x,S,{document:o}),y=void 0);}else T=Ie(x,S,{document:o}),y=void 0;kn(T,x,{left:e.margins.left,top:e.margins.top}),F(T,w(x)),i.appendChild(T);}if(tt(e,i,l,w,o),u.length>0){let c=q(u,o,{layerClass:"layout-floating-images-layer",itemClass:"layout-page-floating-image",sizing:"inset0",layerMode:"front"});i.appendChild(c);}if(e.columns&&e.columns.separator&&e.columns.count>1){let c=e.columns.count,x=e.columns.gap,T=(l-(c-1)*x)/c,S=e.size.h-e.margins.top-e.margins.bottom;for(let k=0;k<c-1;k++){let f=(k+1)*T+k*x+x/2,h=o.createElement("div");h.style.position="absolute",h.style.left=`${f}px`,h.style.top="0",h.style.height=`${S}px`,h.style.width="0.5px",h.style.backgroundColor="#000",h.style.pointerEvents="none",i.appendChild(h);}}if(n.footnoteArea&&n.footnoteArea.length>0){let c=bt(n.footnoteArea,l,t,o);c.style.position="absolute";let x=Math.max(e.footnoteReservedHeight??0,yt(n.footnoteArea)),T=e.size.h-e.margins.bottom-e.margins.top;c.style.top=`${Math.max(-e.margins.top,T-x)}px`,c.style.left="0",c.style.right="0",i.appendChild(c);}r.appendChild(i);{let x=n.headerDistance??e.margins.header??48,T=e.size.w-e.margins.left-e.margins.right,S=Math.max(e.margins.top-x,48),k=n.headerContent?.visualTop??0,f=n.headerContent?.visualBottom??n.headerContent?.height??0,h=Math.max(f-k,24),R=f>S,C=o.createElement("div");C.className=G.header,C.style.position="absolute",C.style.top=`${x+k}px`,C.style.left=`${e.margins.left}px`,C.style.right=`${e.margins.right}px`,C.style.width=`${T}px`,C.style.height=`${h}px`,C.style.minHeight=`${h}px`;let I=!R;if(n.headerContent&&n.headerContent.blocks.length>0){let v={flowTop:x,flowLeft:e.margins.left,contentWidth:T,pageWidth:e.size.w,pageHeight:e.size.h,margins:e.margins},L=Be(n.headerContent,{...t,section:"header",contentWidth:T},n,v);L.style.top=`${-k}px`,L.querySelector("img")&&(I=false),C.appendChild(L);}I&&(C.style.maxHeight=`${S}px`,C.style.overflow="hidden"),r.appendChild(C);}{let x=n.footerDistance??e.margins.footer??48,T=e.size.w-e.margins.left-e.margins.right,S=Math.max(e.margins.bottom-x,48),k=n.footerContent?.visualTop??0,f=n.footerContent?.visualBottom??n.footerContent?.height??0,h=Math.max(f-k,24),R=h>S,C=o.createElement("div");C.className=G.footer,C.style.position="absolute",C.style.top=`${e.size.h-x-h}px`,C.style.left=`${e.margins.left}px`,C.style.right=`${e.margins.right}px`,C.style.width=`${T}px`,C.style.height=`${h}px`,C.style.minHeight=`${h}px`;let I=!R;if(n.footerContent&&n.footerContent.blocks.length>0){let v={flowTop:e.size.h-x-(n.footerContent?.height??0),flowLeft:e.margins.left,contentWidth:T,pageWidth:e.size.w,pageHeight:e.size.h,margins:e.margins},L=Be(n.footerContent,{...t,section:"footer",contentWidth:T},n,v);L.style.top=`${-k}px`,L.querySelector("img")&&(I=false),C.appendChild(L);}I&&(C.style.maxHeight=`${S}px`,C.style.overflow="hidden"),r.appendChild(C);}return a&&n.pageBorders?.zOrder!=="back"&&r.appendChild(a),r}exports.A=ht;exports.B=mn;exports.C=yn;exports.D=G;exports.E=le;exports.F=Se;exports.a=be;exports.b=Me;exports.c=on;exports.d=Io;exports.e=ye;exports.f=sn;exports.g=ln;exports.h=Fo;exports.i=He;exports.j=Co;exports.k=Ro;exports.l=Tn;exports.m=In;exports.n=U;exports.o=Ie;exports.p=nt;exports.q=Z;exports.r=dt;exports.s=he;exports.t=D;exports.u=q;exports.v=_;exports.w=Q;exports.x=Xt;exports.y=ee;exports.z=Pe;
@@ -1,4 +0,0 @@
1
- import {h,j as j$2,k,g,z}from'./chunk-AMJNIGO2.mjs';import {c as c$1}from'./chunk-W77JXDEV.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 Ie={dk1:"000000",lt1:"FFFFFF",dk2:"44546A",lt2:"E7E6E6",accent1:"4472C4",accent2:"ED7D31",accent3:"A5A5A5",accent4:"FFC000",accent5:"5B9BD5",accent6:"70AD47",hlink:"0563C1",folHlink:"954F72"},J={majorFont:{latin:"Calibri Light",ea:"",cs:"",fonts:{}},minorFont:{latin:"Calibri",ea:"",cs:"",fonts:{}}},ge={name:"Office Theme",colorScheme:Ie,fontScheme:J},ht=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];function wt(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 yt(e$1){let t={...Ie};if(!e$1)return t;for(let n of ht){let o=e(e$1,"a",n);if(o){let r=i(o);if(r.length>0){let a=wt(r[0]);a&&(t[n]=a);}}}return t}function Ae(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 bt(e$1){let t={...J};if(!e$1)return t;let n=e(e$1,"a","majorFont");n&&(t.majorFont=Ae(n));let o=e(e$1,"a","minorFont");return o&&(t.minorFont=Ae(o)),t}function Xn(e$1){if(!e$1)return {...ge};try{let t=c(e$1);if(!t)return {...ge};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=yt(r),u=e(o,"a","fontScheme"),l=bt(u);return {name:n,colorScheme:a,fontScheme:l}}catch(t){return console.warn("Failed to parse theme:",t),{...ge}}}function Tt(e,t="latin"){if(!e?.fontScheme?.majorFont)return J.majorFont?.latin??"Calibri Light";let n=e.fontScheme.majorFont;return t==="latin"?n.latin||"Calibri Light":t==="ea"?n.ea||"":t==="cs"?n.cs||"":n.fonts?.[t]?n.fonts[t]:n.latin||"Calibri Light"}function He(e,t="latin"){if(!e?.fontScheme?.minorFont)return J.minorFont?.latin??"Calibri";let n=e.fontScheme.minorFont;return t==="latin"?n.latin||"Calibri":t==="ea"?n.ea||"":t==="cs"?n.cs||"":n.fonts?.[t]?n.fonts[t]:n.latin||"Calibri"}function $(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?Tt(e,r):o?He(e,r):He(e,"latin")}function Le(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 O(e){return Le(e)}function V(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 ee(e){return V(e)}function W(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 p=j$1(e,"w","shadow");(p==="1"||p==="true")&&(o.shadow=true);let d=j$1(e,"w","frame");return (d==="1"||d==="true")&&(o.frame=true),o}function te(e$1){if(!e$1)return;let t={},n=W(e(e$1,"w","top"));n&&(t.top=n);let o=W(e(e$1,"w","bottom"));o&&(t.bottom=o);let r=W(e(e$1,"w","left")??e(e$1,"w","start"));r&&(t.left=r);let a=W(e(e$1,"w","right")??e(e$1,"w","end"));a&&(t.right=a);let u=W(e(e$1,"w","insideH"));u&&(t.insideH=u);let l=W(e(e$1,"w","insideV"));if(l&&(t.insideV=l),Object.keys(t).length!==0)return t}function ne(e$1){if(!e$1)return;let t={},n=O(e(e$1,"w","top"));n&&(t.top=n);let o=O(e(e$1,"w","bottom"));o&&(t.bottom=o);let r=O(e(e$1,"w","left")??e(e$1,"w","start"));r&&(t.left=r);let a=O(e(e$1,"w","right")??e(e$1,"w","end"));if(a&&(t.right=a),Object.keys(t).length!==0)return t}function oe(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 he(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 we(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 p=l(e,"w","leftFromText");p!==void 0&&(t.leftFromText=p);let d=l(e,"w","rightFromText");if(d!==void 0&&(t.rightFromText=d),Object.keys(t).length!==0)return t}function Ct(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 Ft(e){return e.rows.length}function xt(e){return e.formatting?.vMerge==="continue"}function kt(e){return e.formatting?.vMerge==="restart"}function St(e){return e.rows.length===0?false:e.rows[0].formatting?.header===true}var Mt={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 Rt(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=Mt[n];if(o)return o}return "richText"}function Et(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 re(e$1,t){let n={sdtType:Rt(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=Et(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 Xe={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 Pt(e){if(!e||e.trim()==="")return "\u2022";let t=e.charCodeAt(0);return Xe[t]?Xe[t]:t>=57344&&t<=63743||t<32||t>=127&&t<160?"\u2022":e}function Bt(e){let t=e.listRendering;t&&t.isBullet&&(t.marker=Pt(t.marker||""));}function vt(e,t,n$1,o,r,a,u){if(e.content.length===0)return;let l=i(t),f=0;function c(p){if(!h(p))return;let d=j$2(p);if(!d)return;let y=n(p,"wps","wsp");if(y){let w=k(y);w&&(d.content=g(w,Y,null,n$1,o,r,a??void 0,u??void 0));}let F={type:"shape",shapeType:"rect",size:d.size,position:d.position,wrap:d.wrap,fill:d.fill,outline:d.outline,textBody:{content:d.content,margins:d.margins}};d.id&&(F.id=d.id);let h$1={type:"shape",shape:F},C=f;if(C>=e.content.length){C=-1;for(let w=e.content.length-1;w>=0;w--)if(e.content[w].type==="run"){C=w;break}}if(C>=0){let w=e.content[C];w.type==="run"&&w.content.push(h$1);}}for(let p of l){if(d$1(p.name??"")!=="r")continue;let d=i(p);for(let y of d){let F=d$1(y.name??"");if(F==="drawing")c(y);else if(F==="AlternateContent"){let h=i(y),w=h.find(P=>d$1(P.name??"")==="Choice")??h.find(P=>d$1(P.name??"")==="Fallback");if(w)for(let P of i(w))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 p=c.name??"";if(p==="w:p"||p.endsWith(":p")){let d=Y(c,t,n,o,r,a,u);vt(d,c,t,n,o,r,a),Bt(d),l.push(d);}else if(p==="w:tbl"||p.endsWith(":tbl")){let d=ye(c,t,n,o,r,a,u);l.push(d);}else (p==="w:sdt"||p.endsWith(":sdt"))&&l.push(Nt(c,t,n,o,r,a,u));}return l}function Nt(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"),p=re(l,f),d=c?q(c,t,n,o,r,a,u):[];return {type:"blockSdt",properties:p,content:d}}function Oe(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 At(e){if(!e)return "#C0C0C0";let t=e.trim();return t.startsWith("#")?t:/^[0-9a-fA-F]{6}$/.test(t)?`#${t}`:t}function De(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 We=914400/96;function Ht(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,p]of n.entries())if(c.toLowerCase()===f)return {dataUrl:p.dataUrl??p.base64,mediaPath:p.path,contentType:p.mimeType}}return {}}function It(e,t){return !!(t.includes("watermark")||(j$1(e,null,"type")??"").includes("_t136"))}function Ve(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(y=>y.name==="v:textpath"||y.name?.endsWith(":textpath")),f=u.find(y=>y.name==="v:imagedata"||y.name?.endsWith(":imagedata"));if(!It(r,a)&&!l&&!f)continue;let c=Oe(j$1(r,null,"style")),p=parseFloat(c.rotation??"0")||0,d=Math.abs(p)>5;if(l){let y=j$1(l,null,"string")??"",C=(Oe(j$1(l,null,"style"))["font-family"]??"Calibri").replace(/["']/g,"").replace(/^&quot;|&quot;$/g,"").trim()||"Calibri",w=u.find(M=>M.name==="v:fill"||M.name?.endsWith(":fill")),P=w?j$1(w,null,"opacity"):null,x=P!=null&&parseFloat(P)<1;return {kind:"text",text:y,font:C,color:At(j$1(r,null,"fillcolor")),semitransparent:x,layout:d?"diagonal":"horizontal",fontSize:void 0}}if(f){let y=j$1(f,"r","id")??j$1(f,"r","embed")??j$1(f,null,"id")??"",{dataUrl:F,mediaPath:h,contentType:C}=Ht(y,t,n),w=j$1(f,null,"gain"),P=j$1(f,null,"blacklevel"),x=w!=null||P!=null,M=De(c.width),m=De(c.height);return {kind:"picture",relId:y||void 0,mediaPath:h,contentType:C,dataUrl:F,scale:1,washout:x,widthEmu:M!=null?Math.round(M*We):void 0,heightEmu:m!=null?Math.round(m*We):void 0}}}}function je(e){switch(e){case "first":return "first";case "even":return "even";default:return "default"}}function Ue(e){let t=j$1(e,"w","type"),n=j$1(e,"r","id")??"";return {type:je(t),rId:n}}function ze(e){let t=j$1(e,"w","type"),n=j$1(e,"r","id")??"";return {type:je(t),rId:n}}function to(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(d=>d.type==="element"&&(d.name==="w:hdr"||d.name?.endsWith(":hdr")));if(!c)return l;l.content=q(c,n,o,r,a$1,u,{inHeaderFooter:true});let p=Ve(c,a$1,u);return p&&(l.watermark=p),l}function no(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(p=>p.type==="element"&&(p.name==="w:ftr"||p.name?.endsWith(":ftr")));return c&&(l.content=q(c,n,o,r,a$1,u,{inHeaderFooter:true})),l}function _e(e){switch(e){case "separator":return "separator";case "continuationSeparator":return "continuationSeparator";case "continuationNotice":return "continuationNotice";default:return "normal"}}function qe(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 Lt(e,t,n,o,r,a){let u=l(e,"w","id")??0,l$1=j$1(e,"w","type"),f=_e(l$1),{blocks:c,hasUnmodeled:p}=qe(e,t,n,o,r,a);return {type:"footnote",id:u,noteType:f,content:c,...p?{verbatimXml:b(e)}:{}}}function ao(e,t=null,n=null,o=null,r=null,a$1=null){let u=new Map,l=[];if(!e)return ie(u,l);let f$1=a(e);if(!f$1)return ie(u,l);let c=f$1.elements?.find(d=>d.type==="element"&&(d.name==="w:footnotes"||d.name?.endsWith(":footnotes")));if(!c)return ie(u,l);let p=f(c,"w","footnote");for(let d of p){let y=Lt(d,t,n,o,r,a$1);u.set(y.id,y),l.push(y);}return ie(u,l)}function ie(e,t){return {byId:e,footnotes:t,getFootnote(n){return e.get(n)},hasFootnote(n){return e.has(n)},getNormalFootnotes(){return t.filter(n=>n.noteType==="normal")},getSeparator(){return t.find(n=>n.noteType==="separator")},getContinuationSeparator(){return t.find(n=>n.noteType==="continuationSeparator")}}}function Xt(e,t,n,o,r,a){let u=l(e,"w","id")??0,l$1=j$1(e,"w","type"),f=_e(l$1),{blocks:c,hasUnmodeled:p}=qe(e,t,n,o,r,a);return {type:"endnote",id:u,noteType:f,content:c,...p?{verbatimXml:b(e)}:{}}}function lo(e,t=null,n=null,o=null,r=null,a$1=null){let u=new Map,l=[];if(!e)return ae(u,l);let f$1=a(e);if(!f$1)return ae(u,l);let c=f$1.elements?.find(d=>d.type==="element"&&(d.name==="w:endnotes"||d.name?.endsWith(":endnotes")));if(!c)return ae(u,l);let p=f(c,"w","endnote");for(let d of p){let y=Xt(d,t,n,o,r,a$1);u.set(y.id,y),l.push(y);}return ae(u,l)}function ae(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 Ge(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 Ot(e){switch(e){case "pageBottom":return "pageBottom";case "beneathText":return "beneathText";case "sectEnd":return "sectEnd";case "docEnd":return "docEnd";default:return}}function Dt(e){switch(e){case "sectEnd":return "sectEnd";case "docEnd":return "docEnd";default:return}}function $e(e){switch(e){case "continuous":return "continuous";case "eachSect":return "eachSect";case "eachPage":return "eachPage";default:return}}function Ye(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=Ot(u);}let o=e(e$1,"w","numFmt");if(o){let u=j$1(o,"w","val");t.numFmt=Ge(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=$e(u);}return t}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=Dt(u);}let o=e(e$1,"w","numFmt");if(o){let u=j$1(o,"w","val");t.numFmt=Ge(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=$e(u);}return t}function so(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 uo(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 fo(e){return e.noteType==="separator"||e.noteType==="continuationSeparator"||e.noteType==="continuationNotice"}function co(e){return e.noteType==="separator"||e.noteType==="continuationSeparator"||e.noteType==="continuationNotice"}function Wt(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 le(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"),p=Wt(u,l$1,f,c);p&&(o.color=p);let d=j$1(e,"w","shadow");(d==="1"||d==="true")&&(o.shadow=true);let y=j$1(e,"w","frame");return (y==="1"||y==="true")&&(o.frame=true),o}function Vt(e){switch(e){case "landscape":return "landscape";case "portrait":return "portrait";default:return}}function jt(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 Ut(e){switch(e){case "top":return "top";case "center":return "center";case "both":return "both";case "bottom":return "bottom";default:return}}function zt(e){switch(e){case "continuous":return "continuous";case "newPage":return "newPage";case "newSection":return "newSection";default:return}}function Qe(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 T=l(o,"w","h");T!==void 0&&(n.pageHeight=T);let E=j$1(o,"w","orient"),b=Vt(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 T=l(r,"w","bottom");T!==void 0&&(n.marginBottom=T);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 v=l(r,"w","gutter");v!==void 0&&(n.gutter=v);}let a=e(e$1,"w","cols");if(a){let m=l(a,"w","num");m!==void 0&&(n.columnCount=m);let T=l(a,"w","space");T!==void 0&&(n.columnSpace=T);let E=j$1(a,"w","equalWidth");E==="1"||E==="true"?n.equalWidth=true:(E==="0"||E==="false")&&(n.equalWidth=false);let 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 v={},I=l(B,"w","w");I!==void 0&&(v.width=I);let H=l(B,"w","space");H!==void 0&&(v.space=H),n.columns.push(v);}n.columnCount===void 0&&(n.columnCount=k.length);}}let u=e(e$1,"w","type");if(u){let m=j$1(u,"w","val"),T=jt(m);T&&(n.sectionStart=T);}let l$1=e(e$1,"w","vAlign");if(l$1){let m=j$1(l$1,"w","val"),T=Ut(m);T&&(n.verticalAlign=T);}let f$1=e(e$1,"w","bidi");f$1&&(n.bidi=m(f$1));let c=f(e$1,"w","headerReference");c.length>0&&(n.headerReferences=c.map(m=>Ue(m)));let p=f(e$1,"w","footerReference");p.length>0&&(n.footerReferences=p.map(m=>ze(m)));let d=e(e$1,"w","titlePg");d&&(n.titlePg=m(d));let y=e(e$1,"w","evenAndOddHeaders");y&&(n.evenAndOddHeaders=m(y));let F=e(e$1,"w","lnNumType");if(F){n.lineNumbers={};let m=l(F,"w","start");m!==void 0&&(n.lineNumbers.start=m);let T=l(F,"w","countBy");T!==void 0&&(n.lineNumbers.countBy=T);let E=l(F,"w","distance");E!==void 0&&(n.lineNumbers.distance=E);let b=j$1(F,"w","restart"),k=zt(b);k&&(n.lineNumbers.restart=k);}let h=e(e$1,"w","pgBorders");if(h){n.pageBorders={};let m=le(e(h,"w","top"));m&&(n.pageBorders.top=m);let T=le(e(h,"w","bottom"));T&&(n.pageBorders.bottom=T);let E=le(e(h,"w","left"));E&&(n.pageBorders.left=E);let b=le(e(h,"w","right"));b&&(n.pageBorders.right=b);let k=j$1(h,"w","display");(k==="allPages"||k==="firstPage"||k==="notFirstPage")&&(n.pageBorders.display=k);let B=j$1(h,"w","offsetFrom");(B==="page"||B==="text")&&(n.pageBorders.offsetFrom=B);let v=j$1(h,"w","zOrder");(v==="front"||v==="back")&&(n.pageBorders.zOrder=v);}let C=e(e$1,"w","background");if(C){n.background={};let m=j$1(C,"w","color");m&&m!=="auto"&&(n.background.color={rgb:m});let T=j$1(C,"w","themeColor");T&&(n.background.themeColor=T);let E=j$1(C,"w","themeTint");E&&(n.background.themeTint=E);let b=j$1(C,"w","themeShade");b&&(n.background.themeShade=b);}let w=e(e$1,"w","footnotePr");if(w){let m=Ye(w);Object.keys(m).length>0&&(n.footnotePr=m);}let P=e(e$1,"w","endnotePr");if(P){let m=Ke(P);Object.keys(m).length>0&&(n.endnotePr=m);}let x=e(e$1,"w","docGrid");if(x){n.docGrid={};let m=j$1(x,"w","type");(m==="default"||m==="lines"||m==="linesAndChars"||m==="snapToChars")&&(n.docGrid.type=m);let T=l(x,"w","linePitch");T!==void 0&&(n.docGrid.linePitch=T);let E=l(x,"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 T=l(M,"w","other");T!==void 0&&(n.paperSrcOther=T);}return n}function wo(){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 Ze(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 yo(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=Ze(r.headerReferences,o.headerReferences),u=Ze(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 _t(e,t){return !e&&!t?true:!(!e||!t||e.bold!==t.bold||e.boldCs!==t.boldCs||e.italic!==t.italic||e.italicCs!==t.italicCs||e.strike!==t.strike||e.doubleStrike!==t.doubleStrike||e.smallCaps!==t.smallCaps||e.allCaps!==t.allCaps||e.hidden!==t.hidden||e.emboss!==t.emboss||e.imprint!==t.imprint||e.outline!==t.outline||e.shadow!==t.shadow||e.rtl!==t.rtl||e.cs!==t.cs||e.fontSize!==t.fontSize||e.fontSizeCs!==t.fontSizeCs||e.spacing!==t.spacing||e.position!==t.position||e.scale!==t.scale||e.kerning!==t.kerning||e.vertAlign!==t.vertAlign||e.highlight!==t.highlight||e.effect!==t.effect||e.emphasisMark!==t.emphasisMark||e.styleId!==t.styleId||!qt(e.underline,t.underline)||!se(e.color,t.color)||!Gt(e.shading,t.shading)||!$t(e.fontFamily,t.fontFamily))}function qt(e,t){return !e&&!t?true:!e||!t||e.style!==t.style?false:se(e.color,t.color)}function se(e,t){return !e&&!t?true:!e||!t?false:e.rgb===t.rgb&&e.auto===t.auto&&e.themeColor===t.themeColor&&e.themeTint===t.themeTint&&e.themeShade===t.themeShade}function Gt(e,t){return !e&&!t?true:!(!e||!t||e.pattern!==t.pattern||!se(e.color,t.color)||!se(e.fill,t.fill))}function $t(e,t){return !e&&!t?true:!e||!t?false:e.ascii===t.ascii&&e.hAnsi===t.hAnsi&&e.eastAsia===t.eastAsia&&e.cs===t.cs&&e.asciiTheme===t.asciiTheme&&e.hAnsiTheme===t.hAnsiTheme&&e.eastAsiaTheme===t.eastAsiaTheme&&e.csTheme===t.csTheme}function Yt(e){return e.type==="text"||e.type==="softHyphen"||e.type==="noBreakHyphen"}function Je(e){return e.content.length===0?true:e.content.every(Yt)}function Kt(e,t){let n=[];for(let o of e)n.push(o);if(n.length>0&&t.length>0&&n[n.length-1].type==="text"&&t[0].type==="text"){let o=n[n.length-1],r=t[0];n[n.length-1]={type:"text",text:o.text+r.text,preserveSpace:o.preserveSpace||r.preserveSpace||void 0};for(let a=1;a<t.length;a++)n.push(t[a]);}else for(let o of t)n.push(o);return n}function Zt(e){if(e.length<=1)return e;let t=[],n=null;for(let o of e)if(o.content.length!==0){if(n===null){n={...o,content:[...o.content]};continue}Je(n)&&Je(o)&&_t(n.formatting,o.formatting)?n={type:"run",formatting:n.formatting,content:Kt(n.content,o.content)}:(t.push(n),n={...o,content:[...o.content]});}return n!==null&&t.push(n),t}function be(e){if(e.length<=1)return e;let t=[],n=[];function o(){if(n.length>0){let r=Zt(n);t.push(...r),n.length=0;}}for(let r of e)if(r.type==="run")n.push(r);else if(o(),r.type==="hyperlink"){let a={...r,children:be(r.children)};t.push(a);}else t.push(r);return o(),t}function et(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 Qt(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 fe(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 U=j$1(f,"w","color"),z=j$1(f,"w","themeColor");(U||z)&&(o.underline.color=et(U,z,j$1(f,"w","themeTint"),j$1(f,"w","themeShade")));}}let c=e(e$1,"w","strike");c&&(o.strike=m(c));let p=e(e$1,"w","dstrike");p&&(o.doubleStrike=m(p));let d=e(e$1,"w","vertAlign");if(d){let S=j$1(d,"w","val");(S==="superscript"||S==="subscript"||S==="baseline")&&(o.vertAlign=S);}let y=e(e$1,"w","smallCaps");y&&(o.smallCaps=m(y));let F=e(e$1,"w","caps");F&&(o.allCaps=m(F));let h=e(e$1,"w","vanish");h&&(o.hidden=m(h));let C=e(e$1,"w","color");C&&(o.color=et(j$1(C,"w","val"),j$1(C,"w","themeColor"),j$1(C,"w","themeTint"),j$1(C,"w","themeShade")));let w=e(e$1,"w","highlight");if(w){let S=j$1(w,"w","val");S&&(o.highlight=S);}let P=e(e$1,"w","shd");P&&(o.shading=Qt(P));let x=e(e$1,"w","sz");if(x){let S=l(x,"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=$(t,S)));let U=j$1(m$1,"w","hAnsiTheme");U&&(o.fontFamily.hAnsiTheme=U,t&&!o.fontFamily.hAnsi&&(o.fontFamily.hAnsi=$(t,U)));let z=j$1(m$1,"w","eastAsiaTheme");z&&(o.fontFamily.eastAsiaTheme=z,t&&!o.fontFamily.eastAsia&&(o.fontFamily.eastAsia=$(t,z)));let pe=j$1(m$1,"w","cstheme");pe&&(o.fontFamily.csTheme=pe,t&&!o.fontFamily.cs&&(o.fontFamily.cs=$(t,pe)));}let T=e(e$1,"w","spacing");if(T){let S=l(T,"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 v=e(e$1,"w","em");if(v){let S=j$1(v,"w","val");S&&(o.emphasisMark=S);}let I=e(e$1,"w","emboss");I&&(o.emboss=m(I));let H=e(e$1,"w","imprint");H&&(o.imprint=m(H));let X=e(e$1,"w","outline");X&&(o.outline=m(X));let Te=e(e$1,"w","shadow");Te&&(o.shadow=m(Te));let Ce=e(e$1,"w","rtl");Ce&&(o.rtl=m(Ce));let Fe=e(e$1,"w","cs");Fe&&(o.cs=m(Fe));let xe=e(e$1,"w","rStyle");if(xe){let S=j$1(xe,"w","val");S&&(o.styleId=S);}return Object.keys(o).length>0?o:void 0}function Jt(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 en(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:Jt(a),previousFormatting:fe(u,t),currentFormatting:o}}).filter(a=>a.previousFormatting||a.currentFormatting);return r.length>0?r:void 0}function tn(e){let t=k$1(e),n=j$1(e,"xml","space")==="preserve";return {type:"text",text:t,preserveSpace:n||void 0}}function nn(){return {type:"tab"}}function on(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 rn(e){let t=j$1(e,"w","font")??"",n=j$1(e,"w","char")??"";return {type:"symbol",font:t,char:n}}function an(e){return {type:"footnoteRef",id:l(e,"w","id")??0}}function ln(e){return {type:"endnoteRef",id:l(e,"w","id")??0}}function sn(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 un(e){return {type:"instrText",text:k$1(e)}}function tt(e,t,n){let o=z(e,t??void 0,n??void 0);return o?{type:"drawing",image:o}:null}function ue(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function fn(e,t,n){let o=[],r=i(e);for(let a of r)switch(ue(a.name)){case "t":o.push(tn(a));break;case "tab":o.push(nn());break;case "br":o.push(on(a));break;case "sym":o.push(rn(a));break;case "footnoteReference":o.push(an(a));break;case "endnoteReference":o.push(ln(a));break;case "fldChar":o.push(sn(a));break;case "instrText":o.push(un(a));break;case "softHyphen":o.push({type:"softHyphen"});break;case "noBreakHyphen":o.push({type:"noBreakHyphen"});break;case "drawing":let l=tt(a,t,n);l&&o.push(l);break;case "pict":case "object":break;case "rPr":break;case "lastRenderedPageBreak":break;case "cr":o.push({type:"break",breakType:"textWrapping"});break;case "AlternateContent":{let c=i(a).find(p=>ue(p.name)==="Choice")??i(a).find(p=>ue(p.name)==="Fallback");if(c){for(let p of i(c))if(ue(p.name)==="drawing"){let y=tt(p,t,n);y?.image?.src&&o.push(y);}}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=fe(u,n),a.propertyChanges=en(u,n,t,a.formatting)),a.content=fn(e$1,o,r),a}function cn(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 pn(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 G(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=cn(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 dn(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 mn(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 p=j$1(e,"w","wrap");return p&&(t.wrap=p),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","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 v={};b!==void 0&&(v.before=true),k!==void 0&&(v.after=true),(v.before||v.after)&&(o.spacingExplicit=v);let I=j$1(u,"w","lineRule");I&&(o.lineSpacingRule=I);let H=j$1(u,"w","beforeAutospacing");H&&(o.beforeAutospacing=H==="1"||H==="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 v=l(l$1,"w","hanging");v!==void 0&&(o.indentFirstLine=-v,o.hangingIndent=true);let I=l(l$1,"w","start");I!==void 0&&o.indentLeft===void 0&&(o.indentLeft=I);let H=l(l$1,"w","end");H!==void 0&&o.indentRight===void 0&&(o.indentRight=H);}let f=e(e$1,"w","pBdr");if(f){let b={},k=G(e(f,"w","top"));k&&(b.top=k);let B=G(e(f,"w","bottom"));B&&(b.bottom=B);let v=G(e(f,"w","left"));v&&(b.left=v);let I=G(e(f,"w","right"));I&&(b.right=I);let H=G(e(f,"w","between"));H&&(b.between=H);let X=G(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=pn(c));let p=e(e$1,"w","tabs");p&&(o.tabs=dn(p));let d=e(e$1,"w","keepNext");d&&(o.keepNext=m(d));let y=e(e$1,"w","keepLines");y&&(o.keepLines=m(y));let F=e(e$1,"w","widowControl");F&&(o.widowControl=m(F));let h=e(e$1,"w","pageBreakBefore");h&&(o.pageBreakBefore=m(h));let C=e(e$1,"w","contextualSpacing");C&&(o.contextualSpacing=m(C));let w=e(e$1,"w","numPr");if(w){let b=e(w,"w","numId"),k=e(w,"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 x=e(e$1,"w","pStyle");if(x){let b=j$1(x,"w","val");b&&(o.styleId=b);}let M=e(e$1,"w","framePr");M&&(o.frame=mn(M));let m$1=e(e$1,"w","suppressLineNumbers");m$1&&(o.suppressLineNumbers=m(m$1));let T=e(e$1,"w","suppressAutoHyphens");T&&(o.suppressAutoHyphens=m(T));let E=e(e$1,"w","rPr");return E&&(o.runProperties=fe(E,t)),Object.keys(o).length>0?o:void 0}function gn(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function hn(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 wn(e){return {type:"bookmarkEnd",id:l(e,"w","id")??0}}function nt(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 F=t.get(u);F&&(c$1(F),a.href=F.target);}let l=j$1(e,"w","anchor");l&&(a.anchor=l,a.href||(a.href=`#${l}`));let f=j$1(e,"w","tooltip");f&&(a.tooltip=f);let c=j$1(e,"w","tgtFrame");c&&(a.target=c);let p=j$1(e,"w","history");(p==="1"||p==="true")&&(a.history=true);let d=j$1(e,"w","docLocation");d&&(a.docLocation=d);let y=i(e);for(let F of y)switch(gn(F.name)){case "r":a.children.push(K(F,n,o,t,r));break;case "bookmarkStart":a.children.push(hn(F));break;case "bookmarkEnd":a.children.push(wn(F));break}return a}function vo(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 No(e){return e.href?/^https?:\/\/|^mailto:|^tel:|^ftp:/i.test(e.href):!!e.rId&&!e.anchor}function Ao(e){return !!e.anchor}function Ho(e){return e.href}function Io(e){return e.children.some(t=>t.type==="run")}function Lo(e){return e.children.filter(t=>t.type==="run")}function Xo(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 ot(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 rt(e){return {type:"bookmarkEnd",id:l(e,"w","id")??0}}function at(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+=at(n);return t}function Q(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function lt(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=Q(f.name);if(!n.has(c)){if(c==="lastRenderedPageBreak"){r=true;continue}if(c==="r"){for(let p of i(f)){let d=Q(p.name);if(d!=="rPr"){if(d==="lastRenderedPageBreak"){r=true;continue}if(d==="br"&&j$1(p,"w","type")==="page")return "forced";if(o.has(d))return "visible"}}continue}if(t.has(c)){let p=a(f);if(p!=="continue")return p;continue}return "continue"}}return "continue"}let u=a(e);return u==="forced"?true:u==="visible"?r:false}function it(e,t){if(!e)return `w:${t}`;let n=e.indexOf(":");return n<0?t:`${e.substring(0,n+1)}${t}`}function st(e){if(e.type!=="element")return e;let t=Q(e.name),n=e.name;return t==="delText"?n=it(e.name,"t"):t==="delInstrText"&&(n=it(e.name,"instrText")),{...e,name:n,elements:e.elements?.map(st)}}function Z(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 yn(e){return Z(e)}function ut(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:yn(a),previousFormatting:ce(u,t),currentFormatting:o}}).filter(a=>a.previousFormatting||a.currentFormatting);return r.length>0?r:void 0}function bn(e,t,n,o,r){return nt(e,t,n,o,r)}function Tn(e){return ot(e)}function Cn(e){return rt(e)}function ft(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 Fn(e,t,n,o,r){let a=j$1(e,"w","instr")??"",u=ft(a),l={type:"simpleField",instruction:a,fieldType:u,content:[]},f=j$1(e,"w","fldLock");(f==="1"||f==="true")&&(l.fldLock=true);let c=j$1(e,"w","dirty");(c==="1"||c==="true")&&(l.dirty=true);let p=i(e);for(let d of p)Q(d.name)==="r"&&l.content.push(K(d,t,n,o,r));return l}function j(e,t,n,o,r,a,u="default"){let l=[],f=i(e),c=false,p="",d=[],y=[],F=false,h=false,C=false;for(let w of f){let P=Q(w.name);switch(P){case "r":{let x=u==="deletion"?st(w):w,M=K(x,t,n,r,a),m=false,T=false,E=false,b="";for(let k of M.content)k.type==="fieldChar"?k.charType==="begin"?(m=true,k.fldLock&&(h=true),k.dirty&&(C=true)):k.charType==="separate"?T=true:k.charType==="end"&&(E=true):k.type==="instrText"&&(b+=k.text);if(m&&(c=true,F=false,p="",d=[],y=[],h=false,C=false),c){if(b&&(p+=b),T&&(F=true),F&&!E?T||y.push(M):!F&&!m&&d.push(M),E){let k={type:"complexField",instruction:p.trim(),fieldType:ft(p),fieldCode:d,fieldResult:y};h&&(k.fldLock=true),C&&(k.dirty=true),l.push(k),c=false;}}else l.push(M);break}case "hyperlink":l.push(bn(w,r,t,n,a));break;case "bookmarkStart":l.push(Tn(w));break;case "bookmarkEnd":l.push(Cn(w));break;case "fldSimple":l.push(Fn(w,t,n,r,a));break;case "pPr":break;case "proofErr":case "permStart":case "permEnd":case "customXml":break;case "sdt":{let x=(w.elements??[]).find(m=>m.type==="element"&&(m.name==="w:sdtPr"||m.name?.endsWith(":sdtPr"))),M=(w.elements??[]).find(m=>m.type==="element"&&(m.name==="w:sdtContent"||m.name?.endsWith(":sdtContent")));if(M){let m=j(M,t,n,null,r,a,u),E={type:"inlineSdt",properties:re(x??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 x=Z(w),M=j(w,t,n,null,r,a),m={type:"insertion",info:x,content:M.filter(T=>T.type==="run"||T.type==="hyperlink")};l.push(m);break}case "del":{let x=Z(w),M=j(w,t,n,null,r,a,"deletion"),m={type:"deletion",info:x,content:M.filter(T=>T.type==="run"||T.type==="hyperlink")};l.push(m);break}case "moveFrom":{let x=Z(w),M=j(w,t,n,null,r,a,"deletion"),m={type:"moveFrom",info:x,content:M.filter(T=>T.type==="run"||T.type==="hyperlink")};l.push(m);break}case "moveTo":{let x=Z(w),M=j(w,t,n,null,r,a),m={type:"moveTo",info:x,content:M.filter(T=>T.type==="run"||T.type==="hyperlink")};l.push(m);break}case "smartTag":break;case "moveFromRangeStart":{let x=parseInt(j$1(w,"w","id")??"0",10),M=j$1(w,"w","name")??"";l.push({type:"moveFromRangeStart",id:x,name:M});break}case "moveFromRangeEnd":{let x=parseInt(j$1(w,"w","id")??"0",10);l.push({type:"moveFromRangeEnd",id:x});break}case "moveToRangeStart":{let x=parseInt(j$1(w,"w","id")??"0",10),M=j$1(w,"w","name")??"";l.push({type:"moveToRangeStart",id:x,name:M});break}case "moveToRangeEnd":{let x=parseInt(j$1(w,"w","id")??"0",10);l.push({type:"moveToRangeEnd",id:x});break}case "commentRangeStart":{let x=parseInt(j$1(w,"w","id")??"0",10);l.push({type:"commentRangeStart",id:x});break}case "commentRangeEnd":{let x=parseInt(j$1(w,"w","id")??"0",10);l.push({type:"commentRangeEnd",id:x});break}case "oMath":case "oMathPara":{let x=P==="oMathPara",M=b(w),m=at(w),T={type:"mathEquation",display:x?"block":"inline",ommlXml:M,plainText:m||void 0};l.push(T);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 ct(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 Y(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=f);let c=j$1(e$1,"w14","textId")??j$1(e$1,"w","textId");c&&(l.textId=c),!u?.inHeaderFooter&&lt(e$1)&&(l.renderedPageBreakBefore=true);let p=e(e$1,"w","pPr");if(p){l.formatting=ce(p,n),l.propertyChanges=ut(p,n,t,l.formatting);let h=e(p,"w","rPr");if(h){let w=e(h,"w","ins");if(w){let x=ct(w);x&&(l.pPrIns=x);}let P=e(h,"w","del");if(P){let x=ct(P);x&&(l.pPrDel=x);}}let C=e(p,"w","sectPr");C&&(l.sectionProperties=Qe(C));}let d$1=j(e$1,t,n,o,r,a);l.content=be(d$1);let y=l.formatting?.numPr,F=false;if(!y&&l.formatting?.styleId&&t){let h=t.get(l.formatting.styleId);h?.pPr?.numPr&&(y=h.pPr.numPr,F=true,l.formatting||(l.formatting={}),l.formatting.numPr=y,l.formatting.numPrFromStyle=y);}if(y&&o){let h=d(y,o);if(h){l.listRendering=h;let C=F?kn(l.formatting?.styleId,t):{left:false,firstLine:false},w=o.getLevel(h.numId,h.level);if(w?.pPr){l.formatting||(l.formatting={});let P=p?e(p,"w","ind"):null,x=P!=null&&(j$1(P,"w","left")!==null||j$1(P,"w","start")!==null),M=T=>{let E=P?j$1(P,"w",T):null;if(E===null)return false;let b=parseInt(E,10);return Number.isNaN(b)||b!==0},m=P!=null&&(M("firstLine")||M("hanging"));!x&&!C.left&&w.pPr.indentLeft!==void 0&&(l.formatting.indentLeft=w.pPr.indentLeft),!m&&!C.firstLine&&(w.pPr.indentFirstLine!==void 0&&(l.formatting.indentFirstLine=w.pPr.indentFirstLine),w.pPr.hangingIndent!==void 0&&(l.formatting.hangingIndent=w.pPr.hangingIndent));}}}return l}function kn(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 pt(e$1){if(!e$1)return;let t={},n=O(e(e$1,"w","tblW"));n&&(t.width=n);let o=e(e$1,"w","jc");if(o){let C=j$1(o,"w","val");(C==="left"||C==="center"||C==="right"||C==="start")&&(t.justification=C==="start"?"left":C);}let r=O(e(e$1,"w","tblCellSpacing"));r&&(t.cellSpacing=r);let a=O(e(e$1,"w","tblInd"));a&&(t.indent=a);let u=te(e(e$1,"w","tblBorders"));u&&(t.borders=u);let l=ne(e(e$1,"w","tblCellMar"));l&&(t.cellMargins=l);let f=e(e$1,"w","tblLayout");if(f){let C=j$1(f,"w","type");(C==="fixed"||C==="autofit")&&(t.layout=C);}let c=e(e$1,"w","tblStyle");if(c){let C=j$1(c,"w","val");C&&(t.styleId=C);}let p=he(e(e$1,"w","tblLook"));p&&(t.look=p);let d=oe(e(e$1,"w","shd"));d&&(t.shading=d);let y=e(e$1,"w","tblOverlap");if(y){let C=j$1(y,"w","val");(C==="never"||C==="overlap")&&(t.overlap=C);}let F=we(e(e$1,"w","tblpPr"));if(F&&(t.floating=F),m(e(e$1,"w","bidiVisual"))&&(t.bidi=true),Object.keys(t).length!==0)return t}function Sn(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:ee(o),previousFormatting:pt(r),currentFormatting:t}}).filter(o=>o.previousFormatting||o.currentFormatting);return n.length>0?n:void 0}function Mn(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:ee(o),previousFormatting:dt(r),currentFormatting:t}}).filter(o=>o.previousFormatting||o.currentFormatting);return n.length>0?n:void 0}function Rn(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:ee(o),previousFormatting:gt(r),currentFormatting:t}}).filter(o=>o.previousFormatting||o.currentFormatting);return n.length>0?n:void 0}function En(e$1){if(!e$1)return;let t=e(e$1,"w","ins");if(t)return {type:"tableRowInsertion",info:V(t)};let n=e(e$1,"w","del");if(n)return {type:"tableRowDeletion",info:V(n)}}function Pn(e$1){if(!e$1)return;let t=e(e$1,"w","cellIns");if(t)return {type:"tableCellInsertion",info:V(t)};let n=e(e$1,"w","cellDel");if(n)return {type:"tableCellDeletion",info:V(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:V(o),...u(r)?{vMerge:r}:{},...u(a)?{vMergeOrig:a}:{}}}}function dt(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=mt(e(e$1,"w","cnfStyle"));if(l$1&&(t.conditionalFormat=l$1),Object.keys(t).length!==0)return t}function mt(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 p=j$1(e,"w","firstRowFirstColumn");(p==="1"||p==="true")&&(t.nwCell=true);let d=j$1(e,"w","firstRowLastColumn");(d==="1"||d==="true")&&(t.neCell=true);let y=j$1(e,"w","lastRowFirstColumn");(y==="1"||y==="true")&&(t.swCell=true);let F=j$1(e,"w","lastRowLastColumn");(F==="1"||F==="true")&&(t.seCell=true);let h=j$1(e,"w","val");if(h&&h.length===12&&(h[0]==="1"&&(t.firstRow=true),h[1]==="1"&&(t.lastRow=true),h[2]==="1"&&(t.firstColumn=true),h[3]==="1"&&(t.lastColumn=true),h[4]==="1"&&(t.oddVBand=true),h[5]==="1"&&(t.evenVBand=true),h[6]==="1"&&(t.oddHBand=true),h[7]==="1"&&(t.evenHBand=true),h[8]==="1"&&(t.nwCell=true),h[9]==="1"&&(t.neCell=true),h[10]==="1"&&(t.swCell=true),h[11]==="1"&&(t.seCell=true)),Object.keys(t).length!==0)return t}function gt(e$1){if(!e$1)return;let t={},n=O(e(e$1,"w","tcW"));n&&(t.width=n);let o=te(e(e$1,"w","tcBorders"));o&&(t.borders=o);let r=ne(e(e$1,"w","tcMar"));r&&(t.margins=r);let a=oe(e(e$1,"w","shd"));a&&(t.shading=a);let u=e(e$1,"w","vAlign");if(u){let h=j$1(u,"w","val");(h==="top"||h==="center"||h==="bottom")&&(t.verticalAlign=h);}let l$1=e(e$1,"w","textDirection");if(l$1){let h=j$1(l$1,"w","val");h&&(t.textDirection=h);}let f=e(e$1,"w","gridSpan");if(f){let h=l(f,"w","val");h!==void 0&&h>1&&(t.gridSpan=h);}let c=e(e$1,"w","vMerge");c&&(j$1(c,"w","val")==="restart"?t.vMerge="restart":t.vMerge="continue"),m(e(e$1,"w","tcFitText"))&&(t.fitText=true),m(e(e$1,"w","noWrap"))&&(t.noWrap=true),m(e(e$1,"w","hideMark"))&&(t.hideMark=true);let F=mt(e(e$1,"w","cnfStyle"));if(F&&(t.conditionalFormat=F),Object.keys(t).length!==0)return t}function Bn(e,t,n,o,r,a,u){let l=[],f=e.elements||[];for(let c of f){if(!c.name)continue;let p=c.name.split(":").pop();if(p==="p"){let d=Y(c,t,n,o,r,a,u);l.push(d);}else if(p==="tbl"){let d=ye(c,t,n,o,r,a,u);l.push(d);}}return l.length===0&&l.push({type:"paragraph",content:[]}),l}function vn(e$1,t,n,o,r,a,u){let l={type:"tableCell",content:[]},f=e(e$1,"w","tcPr"),c=gt(f);return c&&(l.formatting=c),l.propertyChanges=Rn(f,c),l.structuralChange=Pn(f),l.content=Bn(e$1,t,n,o,r,a,u),l}function Nn(e$1,t,n,o,r,a,u){let l={type:"tableRow",cells:[]},f$1=e(e$1,"w","trPr"),c=dt(f$1);c&&(l.formatting=c),l.propertyChanges=Mn(f$1,c),l.structuralChange=En(f$1);let p=f(e$1,"w","tc");for(let d of p){let y=vn(d,t,n,o,r,a,u);l.cells.push(y);}return l}function An(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 Hn(e){return e.cells.reduce((t,n)=>t+(n.formatting?.gridSpan??1),0)}function In(e){let t=Math.max(e.columnWidths?.length??0,...e.rows.map(n=>Hn(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 ye(e$1,t,n,o,r,a,u){let l={type:"table",rows:[]},f$1=e(e$1,"w","tblPr"),c=pt(f$1);c&&(l.formatting=c),l.propertyChanges=Sn(f$1,c);let p=An(e(e$1,"w","tblGrid"));p&&(l.columnWidths=p);let d=f(e$1,"w","tr");for(let y of d){let F=Nn(y,t,n,o,r,a,u);l.rows.push(F);}return In(l),l}export{co as A,Qe as B,wo as C,yo as D,K as E,nt as F,vo as G,No as H,Ao as I,Ho as J,Io as K,Lo as L,Xo as M,xn as N,Y as O,Xn as a,$ as b,Le as c,W as d,te as e,ne as f,oe as g,he as h,we as i,Ct as j,Ft as k,xt as l,kt as m,St as n,pt as o,Pt as p,q,to as r,no as s,ao as t,lo as u,Ye as v,Ke as w,so as x,uo as y,fo as z};
@@ -1 +0,0 @@
1
- import {a as a$1,c,d}from'./chunk-7OW3VCZE.mjs';import {b as b$4}from'./chunk-QPFJJPIC.mjs';import {a}from'./chunk-GYWTUUXX.mjs';import {b as b$1}from'./chunk-SNTAAXXA.mjs';import {b}from'./chunk-2XP6GLA4.mjs';import {b as b$3,n}from'./chunk-67LVRQIR.mjs';import {e}from'./chunk-VW22RZ6C.mjs';import {b as b$2}from'./chunk-DI6CRWSW.mjs';function we(e){if(!e||e.pattern&&e.pattern!=="clear")return;let n$1=e.fill?.rgb;if(!(!n$1||e.fill?.auto))return n(n$1)}function X(e){if(!e)return [];let n=[];e.bold&&n.push(b$1.mark("bold")),e.italic&&n.push(b$1.mark("italic")),e.underline&&e.underline.style!=="none"&&n.push(b$1.mark("underline",{style:e.underline.style,color:e.underline.color})),(e.strike||e.doubleStrike)&&n.push(b$1.mark("strike",{double:e.doubleStrike||false})),e.color&&!e.color.auto&&n.push(b$1.mark("textColor",{rgb:e.color.rgb,themeColor:e.color.themeColor,themeTint:e.color.themeTint,themeShade:e.color.themeShade}));let o=e.highlight&&e.highlight!=="none"?e.highlight:we(e.shading);return o&&n.push(b$1.mark("highlight",{color:o})),e.fontSize&&n.push(b$1.mark("fontSize",{size:e.fontSize})),e.fontFamily&&n.push(b$1.mark("fontFamily",{ascii:e.fontFamily.ascii,hAnsi:e.fontFamily.hAnsi,eastAsia:e.fontFamily.eastAsia,cs:e.fontFamily.cs,asciiTheme:e.fontFamily.asciiTheme,hAnsiTheme:e.fontFamily.hAnsiTheme,eastAsiaTheme:e.fontFamily.eastAsiaTheme,csTheme:e.fontFamily.csTheme})),e.vertAlign==="superscript"?n.push(b$1.mark("superscript")):e.vertAlign==="subscript"&&n.push(b$1.mark("subscript")),e.allCaps&&n.push(b$1.mark("allCaps")),e.smallCaps&&n.push(b$1.mark("smallCaps")),(e.spacing!=null||e.position!=null||e.scale!=null||e.kerning!=null)&&n.push(b$1.mark("characterSpacing",{spacing:e.spacing??null,position:e.position??null,scale:e.scale??null,kerning:e.kerning??null})),e.emboss&&n.push(b$1.mark("emboss")),e.imprint&&n.push(b$1.mark("imprint")),e.shadow&&n.push(b$1.mark("textShadow")),e.emphasisMark&&e.emphasisMark!=="none"&&n.push(b$1.mark("emphasisMark",{type:e.emphasisMark})),e.outline&&n.push(b$1.mark("textOutline")),e.hidden&&n.push(b$1.mark("hidden")),e.rtl&&n.push(b$1.mark("rtl")),e.effect&&e.effect!=="none"&&n.push(b$1.mark("textEffect",{effect:e.effect})),n}function E(e,n){if(!e)return;if(!n)return e;let o=n.resolveRunStyle(e.styleId);return o?b$2(o,e):e}function ee(e,n){let o="",l,t=e.type==="simpleField"?e.content:e.fieldResult;if(t){for(let s of t)if(s.type==="run"){for(let u of s.content)u.type==="text"&&(o+=u.text);!l&&s.formatting&&(l=s.formatting);}}let r=b$2(n,l),i=X(r);return b$1.node("field",{fieldType:e.fieldType,instruction:e.instruction,displayText:o,fieldKind:e.type==="simpleField"?"simple":"complex",fldLock:e.fldLock??false,dirty:e.dirty??false},void 0,i)}function te(e){return b$1.node("math",{display:e.display,ommlXml:e.ommlXml,plainText:e.plainText||""})}function K(e,n,o){let l=[],t=e.formatting?.styleId?o?.getRunStyleOwnProperties(e.formatting.styleId):void 0,r=b$2(b$2(n,t),e.formatting),i=X(r);for(let s of e.content){let u=pe(s,i);l.push(...u);}return l}function pe(e,n){switch(e.type){case "text":return e.text?[b$1.text(e.text,n)]:[];case "break":return e.breakType==="textWrapping"||!e.breakType?[b$1.node("hardBreak",null,void 0,n)]:[];case "tab":return [b$1.node("tab",null,void 0,n)];case "drawing":return e.image?[xe(e.image)]:[];case "shape":{let t=e.shape;return t.textBody&&t.textBody.content.length>0?[]:[Fe(t)]}case "footnoteRef":let o=b$1.mark("footnoteRef",{id:e.id.toString(),noteType:"footnote"});return [b$1.text(e.id.toString(),[...n,o])];case "endnoteRef":let l=b$1.mark("footnoteRef",{id:e.id.toString(),noteType:"endnote"});return [b$1.text(e.id.toString(),[...n,l])];default:return []}}function xe(e$1){let n=e$1.size?.width?e(e$1.size.width):void 0,o=e$1.size?.height?e(e$1.size.height):void 0,l=e$1.wrap.type,t=e$1.wrap.wrapText,r=e$1.position?.horizontal?.alignment,i;l==="inline"||l==="topAndBottom"?i="none":l==="square"||l==="tight"||l==="through"?t==="left"?i="right":t==="right"||r==="left"?i="left":r==="right"?i="right":i="none":i="none";let s="inline";l==="inline"?s="inline":l==="topAndBottom"?s="block":b$4(l)||i&&i!=="none"?s="float":s="block";let u;if(e$1.transform){let P=[];e$1.transform.rotation&&P.push(`rotate(${e$1.transform.rotation}deg)`),e$1.transform.flipH&&P.push("scaleX(-1)"),e$1.transform.flipV&&P.push("scaleY(-1)"),P.length>0&&(u=P.join(" "));}let c=e$1.wrap.distT!=null?e(e$1.wrap.distT):void 0,f=e$1.wrap.distB!=null?e(e$1.wrap.distB):void 0,a=e$1.wrap.distL!=null?e(e$1.wrap.distL):void 0,p=e$1.wrap.distR!=null?e(e$1.wrap.distR):void 0,m;e$1.position&&(m={horizontal:e$1.position.horizontal?{relativeTo:e$1.position.horizontal.relativeTo,posOffset:e$1.position.horizontal.posOffset,align:e$1.position.horizontal.alignment}:void 0,vertical:e$1.position.vertical?{relativeTo:e$1.position.vertical.relativeTo,posOffset:e$1.position.vertical.posOffset,align:e$1.position.vertical.alignment}:void 0});let S,w,M;if(e$1.outline&&e$1.outline.width){S=Math.round(e$1.outline.width/914400*96*100)/100,e$1.outline.color?.rgb&&(w=`#${e$1.outline.color.rgb}`);let P={solid:"solid",dot:"dotted",dash:"dashed",lgDash:"dashed",dashDot:"dashed",lgDashDot:"dashed",lgDashDotDot:"dashed",sysDot:"dotted",sysDash:"dashed",sysDashDot:"dashed",sysDashDotDot:"dashed"};M=e$1.outline.style&&P[e$1.outline.style]||"solid";}let z=e$1.padding?.top?e(e$1.padding.top):void 0,I=e$1.padding?.bottom?e(e$1.padding.bottom):void 0,B=e$1.padding?.left?e(e$1.padding.left):void 0,g=e$1.padding?.right?e(e$1.padding.right):void 0;return b$1.node("image",{src:e$1.src||"",alt:e$1.alt,title:e$1.title,width:n,height:o,rId:e$1.rId,wrapType:l,displayMode:s,cssFloat:i,transform:u,distTop:c,distBottom:f,distLeft:a,distRight:p,position:m,borderWidth:S,borderColor:w,borderStyle:M,wrapText:t,hlinkHref:e$1.hlinkHref,cropTop:e$1.crop?.top,cropRight:e$1.crop?.right,cropBottom:e$1.crop?.bottom,cropLeft:e$1.crop?.left,opacity:e$1.opacity,effectExtentTop:z,effectExtentBottom:I,effectExtentLeft:B,effectExtentRight:g,layoutInCell:e$1.layoutInCell,allowOverlap:e$1.allowOverlap})}function Y(e,n,o){let l=[],t=e.href||(e.anchor?`#${e.anchor}`:""),r=b$1.mark("hyperlink",{href:t,tooltip:e.tooltip,rId:e.rId});for(let i of e.children)if(i.type==="run"){let s=i.formatting?.styleId?o?.getRunStyleOwnProperties(i.formatting.styleId):void 0,u=b$2(b$2(n,s),i.formatting),f=[...X(u),r];for(let a of i.content)l.push(...pe(a,f));}return l}function Fe(e$1){let n=e$1.size?.width?e(e$1.size.width):100,o=e$1.size?.height?e(e$1.size.height):80,l,t="solid",r,i,s;if(e$1.fill&&(t=e$1.fill.type,e$1.fill.color?.rgb&&(l=`#${e$1.fill.color.rgb}`),e$1.fill.type==="gradient"&&e$1.fill.gradient)){let p=e$1.fill.gradient;r=p.type,i=p.angle,s=JSON.stringify(p.stops.map(m=>({position:m.position,color:m.color.rgb?`#${m.color.rgb}`:"#000000"})));}let u,c,f;e$1.outline&&(e$1.outline.width&&(u=Math.round(e$1.outline.width/914400*96*100)/100),e$1.outline.color?.rgb&&(c=`#${e$1.outline.color.rgb}`),f=e$1.outline.style||"solid");let a;if(e$1.transform){let p=[];e$1.transform.rotation&&p.push(`rotate(${e$1.transform.rotation}deg)`),e$1.transform.flipH&&p.push("scaleX(-1)"),e$1.transform.flipV&&p.push("scaleY(-1)"),p.length>0&&(a=p.join(" "));}return b$1.node("shape",{shapeType:e$1.shapeType||"rect",shapeId:e$1.id,width:n,height:o,fillColor:l,fillType:t,gradientType:r,gradientAngle:i,gradientStops:s,outlineWidth:u,outlineColor:c,outlineStyle:f,transform:a})}function V(e,n,o,l){let t=ke(e,n),r=[],i,s=new Set,u;n&&(u=n.resolveParagraphStyle(e.formatting?.styleId).runFormatting);let c=b$2(u,l);for(let f of e.content){if(f.type==="commentRangeStart")s.add(f.id);else if(f.type==="commentRangeEnd")s.delete(f.id);else if(f.type==="run"){let a=K(f,c,n);s.size>0&&(a=O(a,s)),r.push(...a);}else if(f.type==="hyperlink"){let a=Y(f,c,n);r.push(...a);}else if(f.type==="simpleField"||f.type==="complexField"){let a=ee(f,c);a&&r.push(a);}else if(f.type==="inlineSdt"){let a=me(f,c,n);a&&r.push(a);}else if(f.type==="insertion"){let a=J(f,"insertion",c,n);s.size>0&&(a=O(a,s)),r.push(...a);}else if(f.type==="deletion"){let a=J(f,"deletion",c,n);s.size>0&&(a=O(a,s)),r.push(...a);}else if(f.type==="moveFrom"){let a=J(f,"deletion",c,n,true);s.size>0&&(a=O(a,s)),r.push(...a);}else if(f.type==="moveTo"){let a=J(f,"insertion",c,n,true);s.size>0&&(a=O(a,s)),r.push(...a);}else if(f.type==="mathEquation"){let a=te(f);a&&r.push(a);}f.type==="bookmarkStart"&&(i||(i=[]),i.push({id:f.id,name:f.name}));}return i&&(t.bookmarks=i),b$1.node("paragraph",t,r)}function O(e,n){if(n.size===0)return e;let o=[...n][0],l=b$1.marks.comment.create({commentId:o});return e.map(t=>t.isText?t.mark(l.addToSet(t.marks)):t)}function J(e,n,o,l,t=false){let r=[];for(let s of e.content)s.type==="run"?r.push(...K(s,o,l)):s.type==="hyperlink"&&r.push(...Y(s,o,l));let i=b$1.marks[n].create({revisionId:e.info.id,author:e.info.author,date:e.info.date??null,isMovePair:t});return r.map(s=>s.isText||s.type.allowsMarkType(i.type)?s.mark(i.addToSet(s.marks)):s)}function ke(e,n){let o=e.formatting,l=o?.styleId,t={paraId:e.paraId??void 0,textId:e.textId??void 0,styleId:l,numPr:o?.numPr,numPrFromStyle:o?.numPrFromStyle,listNumFmt:e.listRendering?.numFmt,listIsBullet:e.listRendering?.isBullet,listMarker:e.listRendering?.marker,listMarkerHidden:e.listRendering?.markerHidden||void 0,listMarkerFontFamily:e.listRendering?.markerFontFamily||void 0,listMarkerFontSize:e.listRendering?.markerFontSize||void 0,listMarkerSuffix:e.listRendering?.markerSuffix||void 0,listLevelNumFmts:e.listRendering?.levelNumFmts||void 0,listAbstractNumId:e.listRendering?.abstractNumId,listStartOverride:e.listRendering?.startOverride,_originalFormatting:o||void 0};if(n){let r=n.resolveParagraphStyle(l),i=r.paragraphFormatting,s=r.runFormatting;t.alignment=o?.alignment??i?.alignment,t.spaceBefore=o?.spaceBefore??i?.spaceBefore,t.spaceAfter=o?.spaceAfter??i?.spaceAfter,t.lineSpacing=o?.lineSpacing??i?.lineSpacing,t.lineSpacingRule=o?.lineSpacingRule??i?.lineSpacingRule,o?.spacingExplicit&&(t.spacingExplicit=o.spacingExplicit),t.indentLeft=o?.indentLeft??i?.indentLeft,t.indentRight=o?.indentRight??i?.indentRight;let c=o?.numPr?.numId===0&&i?.numPr&&i.numPr.numId!==0?void 0:i;t.indentFirstLine=o?.indentFirstLine??c?.indentFirstLine,t.hangingIndent=o?.hangingIndent??c?.hangingIndent,t.borders=o?.borders??i?.borders,t.shading=o?.shading??i?.shading,t.tabs=o?.tabs??i?.tabs,t.pageBreakBefore=o?.pageBreakBefore??i?.pageBreakBefore,t.keepNext=o?.keepNext??i?.keepNext,t.keepLines=o?.keepLines??i?.keepLines,t.contextualSpacing=o?.contextualSpacing??i?.contextualSpacing,t.outlineLevel=o?.outlineLevel??i?.outlineLevel,t.bidi=o?.bidi??i?.bidi;let f=n.getDefaultCharacterStyle()?.rPr,a=f?b$2(s,f):s,p=E(o?.runProperties,n);t.defaultTextFormatting=b$2(a,p),!o?.numPr&&i?.numPr&&i.numPr.numId!==0&&(t.numPr=i.numPr,t.numPrFromStyle=i.numPr);}else t.alignment=o?.alignment,t.spaceBefore=o?.spaceBefore,t.spaceAfter=o?.spaceAfter,t.lineSpacing=o?.lineSpacing,t.lineSpacingRule=o?.lineSpacingRule,o?.spacingExplicit&&(t.spacingExplicit=o.spacingExplicit),t.indentLeft=o?.indentLeft,t.indentRight=o?.indentRight,t.indentFirstLine=o?.indentFirstLine,t.hangingIndent=o?.hangingIndent,t.borders=o?.borders,t.shading=o?.shading,t.tabs=o?.tabs,t.pageBreakBefore=o?.pageBreakBefore,t.keepNext=o?.keepNext,t.keepLines=o?.keepLines,t.outlineLevel=o?.outlineLevel,t.bidi=o?.bidi,t.defaultTextFormatting=E(o?.runProperties,n);if(e.sectionProperties){t._sectionProperties=e.sectionProperties;let r=e.sectionProperties.sectionStart;(r==="nextPage"||r==="continuous"||r==="oddPage"||r==="evenPage")&&(t.sectionBreakType=r);}return e.renderedPageBreakBefore&&(t.renderedPageBreakBefore=true),e.pPrIns&&(t.pPrIns={revisionId:e.pPrIns.id,author:e.pPrIns.author,date:e.pPrIns.date??null}),e.pPrDel&&(t.pPrDel={revisionId:e.pPrDel.id,author:e.pPrDel.author,date:e.pPrDel.date??null}),e.propertyChanges&&e.propertyChanges.length>0&&(t.pPrChange=e.propertyChanges),t}function me(e,n,o){let l=e.properties,t=[];for(let r of e.content)if(r.type==="run"){let i=K(r,n,o);t.push(...i);}else if(r.type==="hyperlink"){let i=Y(r,n,o);t.push(...i);}else if(r.type==="simpleField"||r.type==="complexField"){let i=ee(r,n);i&&t.push(i);}else if(r.type==="inlineSdt"){let i=me(r,n,o);i&&t.push(i);}else if(r.type==="mathEquation"){let i=te(r);i&&t.push(i);}return b$1.node("sdt",a$1(l),t.length>0?t:void 0)}function ge(e){function n(l){return l.type==="break"&&l.breakType==="page"}function o(l){if(l.type==="run"){for(let t of l.content)if(n(t))return true;return false}if(l.type==="hyperlink"){for(let t of l.children)if(t.type==="run"&&o(t))return true;return false}if(l.type==="insertion"||l.type==="deletion"){let t=l;for(let r of t.content)if(o(r))return true;return false}return false}for(let l of e.content)if(o(l))return true;return false}function R(e,n,o){if(!e||!n)return;let l=e.getStyle(n);if(!l?.tblStylePr)return;let t=l.tblStylePr.find(u=>u.type===o);if(!t)return;let r=E(t.pPr?.runProperties,e),i=E(t.rPr,e),s=b$2(r,i);return {tcPr:t.tcPr,rPr:s}}function N(e,n){if(!e&&!n)return;if(!e)return n;if(!n)return e;let o={},l=e.tcPr,t=n.tcPr;if(l||t){let r={...l??{},...t??{}};(l?.borders||t?.borders)&&(r.borders={...l?.borders??{},...t?.borders??{}}),(l?.shading||t?.shading)&&(r.shading={...l?.shading??{},...t?.shading??{}}),(l?.margins||t?.margins)&&(r.margins={...l?.margins??{},...t?.margins??{}}),o.tcPr=r;}return o.rPr=b$2(e.rPr,n.rPr),o}function Se(e){let n=new Map,o=e.rows.length,l=new Map;for(let t=0;t<o;t++){let r=e.rows[t],i=0,s=r.cells.map(c=>{let f=c.formatting?.gridSpan??1,a=i;return i+=f,{colIndex:a,vMerge:c.formatting?.vMerge,key:`${t}-${a}`}});if(s.length>0&&s.every(({colIndex:c,vMerge:f})=>f==="continue"&&l.has(c))){for(let{colIndex:c,key:f}of s)l.delete(c),n.set(f,{rowSpan:1,skip:false});continue}for(let{colIndex:c,vMerge:f,key:a}of s){let p=c;if(f==="restart")l.set(p,t),n.set(a,{rowSpan:1,skip:false});else if(f==="continue"){let m=l.get(p);if(m!==void 0){let S=`${m}-${p}`,w=n.get(S);w&&w.rowSpan++,n.set(a,{rowSpan:1,skip:true});}else n.set(a,{rowSpan:1,skip:false});}else l.delete(p),n.set(a,{rowSpan:1,skip:false});}}return n}function ne(e,n,o){let l=Se(e),t=e.columnWidths,r=t?.reduce((P,x)=>P+x,0)??0,i=e.formatting?.styleId,s=e.formatting?.look,u=i?n?.getStyle(i):void 0,c=n?.getDefaultTableStyle(),f=e.formatting?.borders??u?.tblPr?.borders??c?.tblPr?.borders,a=e.formatting?.cellMargins??u?.tblPr?.cellMargins??c?.tblPr?.cellMargins??void 0,p=a?{top:a.top?.value,bottom:a.bottom?.value,left:a.left?.value,right:a.right?.value}:void 0,m={styleId:e.formatting?.styleId,width:e.formatting?.width?.value,widthType:e.formatting?.width?.type,justification:e.formatting?.justification,columnWidths:t,tableLayout:e.formatting?.layout??null,floating:e.formatting?.floating,cellMargins:p,look:e.formatting?.look,_originalFormatting:e.formatting||void 0};e.propertyChanges&&e.propertyChanges.length>0&&(m.tblPrChange=e.propertyChanges);let S={wholeTable:R(n,i,"wholeTable"),firstRow:R(n,i,"firstRow"),lastRow:R(n,i,"lastRow"),firstCol:R(n,i,"firstCol"),lastCol:R(n,i,"lastCol"),band1Horz:R(n,i,"band1Horz"),band2Horz:R(n,i,"band2Horz"),band1Vert:R(n,i,"band1Vert"),band2Vert:R(n,i,"band2Vert"),nwCell:R(n,i,"nwCell"),neCell:R(n,i,"neCell"),swCell:R(n,i,"swCell"),seCell:R(n,i,"seCell")},w=s?.noHBand!==true,M=s?.noVBand!==true,z=0,I=e.rows.length,B=t?.length??Math.max(0,...e.rows.map(P=>P.cells.reduce((x,k)=>x+(k.formatting?.gridSpan??1),0))),g=e.rows.map((P,x)=>{let k=x===0&&!!s?.firstRow,v=x===I-1&&!!s?.lastRow,h=w&&!k&&!v?z%2===0?S.band1Horz:S.band2Horz:void 0;return w&&!k&&!v&&z++,Re(P,n,k,t,r,S,h,M,s,f,x,I,B,l,p,o)});return b$1.node("table",m,g)}function Re(e,n,o,l,t,r,i,s,u,c,f,a,p,m,S,w){let M={height:e.formatting?.height?.value,heightRule:e.formatting?.heightRule,isHeader:!!e.formatting?.header,_originalFormatting:e.formatting||void 0};if(e.structuralChange){let C=e.structuralChange,D={revisionId:C.info.id,author:C.info.author,date:C.info.date??null};C.type==="tableRowInsertion"?M.trIns=D:C.type==="tableRowDeletion"&&(M.trDel=D);}e.propertyChanges&&e.propertyChanges.length>0&&(M.trPrChange=e.propertyChanges);let z=e.cells.length,I=f===0,B=f===(a??1)-1,g=e.formatting?.conditionalFormat,P=g?.firstRow??I,x=g?.lastRow??B,k=p??z,v=0,h=[];for(let C=0;C<e.cells.length;C++){let D=e.cells[C],H=D.formatting?.gridSpan??1,ye=`${f??0}-${v}`,re=m?.get(ye),Pe=re?.skip??false,Ce=re?.rowSpan??1,ie;if(l&&t&&t>0){let q=0;for(let A=0;A<H&&v+A<l.length;A++)q+=l[v+A];ie=Math.round(q/t*100);}if(v+=H,Pe)continue;let le=v-H===0,se=v===k,b=D.formatting?.conditionalFormat,G=b?.firstRow??P,Q=b?.lastRow??x,$=b?.firstColumn??le,W=b?.lastColumn??se,_;if(s){let q=u?.firstColumn?1:0,A=v-H-q;A>=0&&!(u?.lastColumn&&W)&&!(u?.firstColumn&&$)&&(_=A%2===0?r?.band1Vert:r?.band2Vert);}b?.oddVBand?_=r?.band1Vert:b?.evenVBand&&(_=r?.band2Vert);let L=i;g?.oddHBand?L=r?.band1Horz:g?.evenHBand&&(L=r?.band2Horz),b?.oddHBand?L=r?.band1Horz:b?.evenHBand&&(L=r?.band2Horz);let T=r?.wholeTable;T=N(T,L),T=N(T,_),G&&(u?.firstRow||g?.firstRow||b?.firstRow)&&(T=N(T,r?.firstRow)),Q&&(u?.lastRow||g?.lastRow||b?.lastRow)&&(T=N(T,r?.lastRow)),$&&(u?.firstColumn||g?.firstColumn||b?.firstColumn)&&(T=N(T,r?.firstCol)),W&&(u?.lastColumn||g?.lastColumn||b?.lastColumn)&&(T=N(T,r?.lastCol)),G&&$&&(u?.firstRow||g?.firstRow||b?.firstRow)&&(u?.firstColumn||g?.firstColumn||b?.firstColumn)&&(T=N(T,r?.nwCell)),G&&W&&(u?.firstRow||g?.firstRow||b?.firstRow)&&(u?.lastColumn||g?.lastColumn||b?.lastColumn)&&(T=N(T,r?.neCell)),Q&&$&&(u?.lastRow||g?.lastRow||b?.lastRow)&&(u?.firstColumn||g?.firstColumn||b?.firstColumn)&&(T=N(T,r?.swCell)),Q&&W&&(u?.lastRow||g?.lastRow||b?.lastRow)&&(u?.lastColumn||g?.lastColumn||b?.lastColumn)&&(T=N(T,r?.seCell)),h.push(he(D,n,o,ie,T,c,I,B,le,se,Ce,S,w));}if(h.length===0){let C=Math.max(k,1),D={formatting:C>1?{gridSpan:C}:void 0,content:[{type:"paragraph",content:[]}]},H=N(r?.wholeTable,i);h.push(he(D,n,o,t&&t>0?100:void 0,H,c,I,B,true,true,1,S,w));}return b$1.node("tableRow",M,h)}var Me=["top","bottom","left","right","insideH","insideV"];function ve(e,n){if(!e)return e;let o;for(let l of Me){let t=e[l];if(!t?.color?.themeColor||t.color.auto)continue;let r=b$3(t.color,n);r&&(o??(o={...e}),o[l]={...t,color:{rgb:r}});}return o??e}function he(e,n,o,l,t,r,i,s,u,c,f,a,p){let m=e.formatting,S=f??1,w=m?.width?.value,M=m?.width?.type;w===void 0&&l!==void 0&&(w=l,M="pct");let z=b$3(m?.shading?.fill??t?.tcPr?.shading?.fill,p),I=r?{top:i?r.top:r.insideH,bottom:s?r.bottom:r.insideH,left:u?r.left:r.insideV,right:c?r.right:r.insideV}:void 0,B=t?.tcPr?.borders,g=m?.borders,P=ve(I||B||g?{...I??{},...B??{},...g??{}}:void 0,p),x={colspan:m?.gridSpan??1,rowspan:S,width:w,widthType:M,verticalAlign:m?.verticalAlign,backgroundColor:z,textDirection:m?.textDirection,noWrap:m?.noWrap,borders:P,margins:m?.margins?{top:m.margins.top?.value,bottom:m.margins.bottom?.value,left:m.margins.left?.value,right:m.margins.right?.value}:t?.tcPr?.margins?{top:t.tcPr.margins.top?.value,bottom:t.tcPr.margins.bottom?.value,left:t.tcPr.margins.left?.value,right:t.tcPr.margins.right?.value}:a,_originalFormatting:m||void 0,_originalResolvedFill:z};if(e.structuralChange){let h=e.structuralChange,C={revisionId:h.info.id,author:h.info.author,date:h.info.date??null};h.type==="tableCellInsertion"?x.cellMarker={kind:"ins",info:C}:h.type==="tableCellDeletion"?x.cellMarker={kind:"del",info:C}:h.type==="tableCellMerge"&&(x.cellMarker={kind:"merge",info:C,vMerge:h.vMerge??"cont",...h.vMergeOrig?{vMergeOrig:h.vMergeOrig}:{}});}e.propertyChanges&&e.propertyChanges.length>0&&(x.tcPrChange=e.propertyChanges);let k=[];for(let h of e.content)h.type==="paragraph"?k.push(V(h,n,void 0,t?.rPr)):h.type==="table"&&k.push(ne(h,n));k.length===0&&k.push(b$1.node("paragraph",{},[]));let v=o?"tableHeader":"tableCell";return b$1.node(v,x,k)}function be(e,n){let o=Ne(e),l=V(e,n),t=[],r=o.length>0&&l.content.size===0,{anchored:i,inFlow:s}=Ie(o);for(let u of i)t.push(Te(u,n));r||t.push(l);for(let u of s)t.push(Te(u,n));return t}function Ie(e){let n=[],o=[];for(let l of e)c(l)?n.push(l):o.push(l);return {anchored:n,inFlow:o}}function Ne(e){let n=[];for(let o of e.content)if(o.type==="run"){for(let l of o.content)if(l.type==="shape"&&"shape"in l){let t=l.shape;t.textBody&&t.textBody.content.length>0&&n.push({type:"textBox",id:t.id,size:t.size,position:t.position,wrap:t.wrap,fill:t.fill,outline:t.outline,content:t.textBody.content,margins:t.textBody.margins});}}return n}function Te(e$1,n){let o=e$1.size?.width?e(e$1.size.width):200,l=e$1.size?.height?e(e$1.size.height):void 0,t;e$1.fill?.color?.rgb&&(t=`#${e$1.fill.color.rgb}`);let r,i,s;e$1.outline&&e$1.outline.width&&(r=Math.round(e$1.outline.width/914400*96*100)/100,e$1.outline.color?.rgb&&(i=`#${e$1.outline.color.rgb}`),s=e$1.outline.style||"solid");let u=e$1.margins?.top!=null?e(e$1.margins.top):4,c=e$1.margins?.bottom!=null?e(e$1.margins.bottom):4,f=e$1.margins?.left!=null?e(e$1.margins.left):7,a=e$1.margins?.right!=null?e(e$1.margins.right):7,p=[];for(let m of e$1.content)p.push(V(m,n));return p.length===0&&p.push(b$1.node("paragraph",{},[])),b$1.node("textBox",{width:o,height:l,textBoxId:e$1.id,fillColor:t,outlineWidth:r,outlineColor:i,outlineStyle:s,marginTop:u,marginBottom:c,marginLeft:f,marginRight:a,...d(e$1)},p)}function oe(e,n,o,l){let t=[];for(let r of e)if(r.type==="paragraph")t.push(...be(r,n)),l&&ge(r)&&t.push(b$1.node("pageBreak"));else if(r.type==="table")t.push(ne(r,n,o));else if(r.type==="blockSdt"){let i=oe(r.content,n,o,l),s=i.length>0?i:[b$1.node("paragraph",{},[])];t.push(b$1.node("blockSdt",a$1(r.properties),s));}return t}function mt(e,n){let o=e.package.theme??null,l=n?.styles?b(n.styles):null,t=oe(e.package.document.content,l,o,true);return t.length===0&&t.push(b$1.node("paragraph",{},[])),t[t.length-1]?.type.name==="blockSdt"&&t.push(b$1.node("paragraph",{},[])),b$1.node("doc",{defaultTabStopTwips:e.package.settings?.defaultTabStop??null,watermark:a(e)??null},t)}function Be(e,n){let o=n?.styles?b(n.styles):null,l=n?.theme??null,t=oe(e,o,l,false);return t.length===0&&t.push(b$1.node("paragraph",{},[])),b$1.node("doc",{defaultTabStopTwips:n?.defaultTabStopTwips??null},t)}function gt(e,n){return Be(e,n)}function ht(){return b$1.node("doc",null,[b$1.node("paragraph",{},[])])}export{mt as a,Be as b,gt as c,ht as d};
@@ -1 +0,0 @@
1
- import {r,q}from'./chunk-ENIWJBS7.mjs';var t=new r(q());t.buildSchema();t.initializeRuntime();var s=t,n=t.getSchema();export{s as a,n as b};
@@ -1 +0,0 @@
1
- 'use strict';var chunkIMKU4O3P_js=require('./chunk-IMKU4O3P.js'),chunkDROCYKAR_js=require('./chunk-DROCYKAR.js'),chunkFIGLFSNR_js=require('./chunk-FIGLFSNR.js'),chunkJFZIXFRC_js=require('./chunk-JFZIXFRC.js'),chunkN3Y5BUKV_js=require('./chunk-N3Y5BUKV.js'),chunk4Q2IP5FW_js=require('./chunk-4Q2IP5FW.js');function J(e,t,n,r){let i=e-t-n,o=(r.count-1)*r.gap;return (i-o)/r.count}function fe(e){let t={...e.pageSize},n={...e.margins},r=e.columns??{count:1,gap:0},i=false,o,s,a=[],l=[];function u(){return t.h-n.bottom}function c(){return u()-n.top}function g(){return t.w-n.left-n.right}if(c()<=0)throw new Error(`Paginator: page size and margins yield no content area (pageSize=${Math.round(t.w)}x${Math.round(t.h)} margins top=${Math.round(n.top)} bottom=${Math.round(n.bottom)} left=${Math.round(n.left)} right=${Math.round(n.right)})`);let d=J(t.w,n.left,n.right,r),S=n.top;function P(h){return n.left+h*(d+r.gap)}function M(){(o||s)&&(o&&(t=o),s&&(n=s),o=void 0,s=void 0,d=J(t.w,n.left,n.right,r));let h=a.length+1,F=n.top,v=u(),m=e.footnoteReservedHeights?.get(h)??0,p=v-m,x={number:h,fragments:[],margins:{...n},size:{...t},footnoteReservedHeight:m>0?m:void 0,columns:r.count>1?{...r}:void 0},b={page:x,cursorY:F,columnIndex:0,topMargin:F,contentBottom:p,trailingSpacing:0};return a.push(x),l.push(b),S=F,e.onNewPage&&e.onNewPage(b),b}function B(){return l.length===0?M():l[l.length-1]}function T(h){return h.contentBottom-h.cursorY}function I(h,F){let v=F||B();return T(v)>=h}function w(h){return h.columnIndex<r.count-1?(h.columnIndex+=1,h.cursorY=S,h.trailingSpacing=0,h):M()}function C(h){let F=B(),v=Number.isFinite(h)&&h>0?h:0;for(;!I(v,F);){let m=F.contentBottom-F.topMargin;if(v>m)return i||(i=true,console.warn(`Paginator: fragment height ${v.toFixed(0)}px exceeds page content height ${m.toFixed(0)}px; placing with overflow.`)),F.cursorY!==F.topMargin&&(F=w(F)),F;F=w(F);}return F}function R(h,F,v=0,m=0){let p=Math.max(v,B().trailingSpacing),x=p+F,b=C(x),y=p,z=P(b.columnIndex),k=b.cursorY+y;return h.x=z,h.y=k,b.page.fragments.push(h),b.cursorY=k+F,b.trailingSpacing=m,{state:b,x:z,y:k}}function f(){if(l.length>0){let h=l[l.length-1];if(h.page.fragments.length===0&&h.cursorY===h.topMargin)return h}return M()}function L(){let h=B();return w(h)}function H(h){r=h,d=J(t.w,n.left,n.right,r);let F=B();F.page.columns=r.count>1?{...r}:void 0,S=F.cursorY,F.columnIndex=0;}function W(h,F,v=true){if(!v){o=h?{...h}:o,s=F?{...F}:s;return}if(h&&(t={...h}),F&&(n={...F}),c()<=0)throw new Error("Paginator: section page size and margins yield no content area");d=J(t.w,n.left,n.right,r),o=void 0,s=void 0;}return {pages:a,states:l,get columnWidth(){return d},get columns(){return {...r}},getCurrentState:B,getAvailableHeight:()=>T(B()),getContentWidth:g,fits:h=>I(h),ensureFits:C,addFragment:R,forcePageBreak:f,forceColumnBreak:L,getColumnX:P,updateColumns:H,updatePageLayout:W}}function ge(e){let t=new Map,n=new Set;for(let r=0;r<e.length;r++){if(n.has(r))continue;let i=e[r];if(i.kind!=="paragraph"||!i.attrs?.keepNext)continue;let s=[r],a=r;for(let c=r+1;c<e.length;c++){let g=e[c];if(g.kind==="sectionBreak"||g.kind==="pageBreak"||g.kind==="columnBreak"||g.kind!=="paragraph")break;if(g.attrs?.keepNext)s.push(c),a=c,n.add(c);else break}let l=a+1,u=-1;if(l<e.length){let c=e[l];c.kind!=="sectionBreak"&&c.kind!=="pageBreak"&&c.kind!=="columnBreak"&&(u=l);}t.set(r,{startIndex:r,endIndex:a,memberIndices:s,anchorIndex:u});}return t}function me(e,t,n){let r=0;for(let i of e.memberIndices){let o=t[i],s=n[i];if(o.kind!=="paragraph"||s.kind!=="paragraph")continue;let a=o,l=s,u=a.attrs?.spacing?.before??0;r+=u,r+=l.totalHeight;let c=a.attrs?.spacing?.after??0;r+=c;}if(e.anchorIndex!==-1){let i=n[e.anchorIndex];if(i?.kind==="paragraph"){let o=i;o.lines.length>0&&(r+=o.lines[0].lineHeight);}}return r}function pe(e){let t=new Set;for(let n of e.values())for(let r=1;r<n.memberIndices.length;r++)t.add(n.memberIndices[r]);return t}function it(e){return e.kind!=="paragraph"?false:e.attrs?.keepLines===true}function de(e){return e.kind!=="paragraph"?false:e.attrs?.pageBreakBefore===true}function $(e){return e.displayMode==="float"||chunkJFZIXFRC_js.a(e.wrapType)||e.wrapType==="topAndBottom"}function ot(e){return $(e)&&e.wrapType==="topAndBottom"}function at(e){return $(e)&&!chunkJFZIXFRC_js.b(e.wrapType)&&e.wrapType!=="topAndBottom"}function qt(e,t,n){if(!(!e||e<=0)){if(t==="pct")return n*e/5e3;if(!t||t==="dxa"||t==="auto")return chunk4Q2IP5FW_js.c(e)}}function Ce(e){let t=new Map,n=[];for(let r=0;r<e.rows.length;r++){let i=e.rows[r]?.cells??[],o=t.get(r)??new Set,s=0;for(;o.has(s);)s++;for(let a=0;a<i.length;a++){let l=i[a];if(!l)continue;let u=l.colSpan??1,c=l.rowSpan??1;if(n.push({rowIndex:r,cellIndex:a,columnIndex:s,colSpan:u,rowSpan:c}),c>1)for(let g=r+1;g<r+c;g++){t.has(g)||t.set(g,new Set);let d=t.get(g);for(let S=0;S<u;S++)d.add(s+S);}for(s+=u;o.has(s);)s++;}}return n}function Jt(e){return Math.max(1,...e.rows.map(t=>t.cells.reduce((n,r)=>n+Math.max(1,r.colSpan??1),0)))}function Qt(e,t,n){if(t<=0)return [];let r=n>0?n/t:0;if(e.length===0)return Array(t).fill(r);let i=e.slice(0,t),o=t-i.length;if(o>0){let c=i.filter(d=>d>0),g=c.length>0?c.reduce((d,S)=>d+S,0)/c.length:r;i=i.concat(Array(o).fill(g));}let s=i.reduce((c,g)=>c+(g>0?g:0),0),a=i.filter(c=>c<=0).length;if(s<=0)return Array(t).fill(r);if(a===0)return i;let l=Math.max(0,n-s),u=l>0?l/a:s/Math.max(1,t-a);return i.map(c=>c>0?c:u)}function Re(e,t,n){let r=[],i=[],o=n,s=0,a=t?.length??0;for(let l=0;l<a;l++){let u=t[l],c=e?.[l];if(c?.kind==="paragraph"&&u?.kind==="paragraph"){let g=c.attrs?.spacing;o+=Math.max(s,g?.before??0);let d=[];for(let S of u.lines)o+=S.floatSkipBefore??0,d.push(o),o+=S.lineHeight,i.push(o);r.push(d),s=g?.after??0;}else u&&"totalHeight"in u&&typeof u.totalHeight=="number"?(o+=s+u.totalHeight,r.push([]),i.push(o),s=0):r.push([]);}return {lineTops:r,flatBottoms:i,contentHeight:o-n+s}}function Le(e,t){let n=t.rows.length,r=[],i=0;for(let a=0;a<n;a++)r.push(i),i+=t.rows[a]?.height??0;r.push(i);let o=Ce(e),s=[];for(let a=0;a<n;a++){let l=t.rows[a]?.height??0,u=new Set;u.add(l);for(let c of o){if(c.rowIndex>a||c.rowIndex+c.rowSpan-1<a)continue;let g=e.rows[c.rowIndex]?.cells?.[c.cellIndex],d=t.rows[c.rowIndex]?.cells?.[c.cellIndex];if(!g||!d)continue;let S=g.padding?.top??0,{flatBottoms:P}=Re(g.blocks,d.blocks,S),M=r[a]-r[c.rowIndex];for(let B of P){let T=B-M;T>0&&T<l&&u.add(T);}}s.push([...u].sort((c,g)=>c-g));}return {rowTops:r,breakOffsets:s}}function ke(e,t,n,r){let i=e.breakOffsets[t];if(!i||i.length===0)return 0;let o=n+r,s=0;for(let a of i)if(!(a<=n))if(a<=o)s=a-n;else break;return s}var st=1440,he=96,ve=st/he,Ee=11,We="Calibri",lt=1,ut=.8,ct=.2,j=null;function be(){if(!j){let e=typeof document<"u"?document.createElement("canvas"):null;if(!e)throw new Error("Canvas not available. Ensure this runs in a DOM environment.");if(j=e.getContext("2d"),!j)throw new Error("Failed to get 2D context from canvas")}return j}function sn(){j=null;}var Ie=new Map;function He(e){let t=Ie.get(e);if(t===void 0){let n=chunkN3Y5BUKV_js.a(e);t={cssFallback:n.cssFallback,singleLineRatio:n.singleLineRatio},Ie.set(e,t);}return t}function ft(e){return He(e).cssFallback}function xe(e){let t=[];e.italic&&t.push("italic"),e.bold&&t.push("bold");let n=e.fontSize??Ee,r=Y(n);t.push(`${r}px`);let i=e.fontFamily??We;return t.push(ft(i)),t.join(" ")}function V(e){let t=e.fontSize??Ee,n=e.fontFamily??We,r=Y(t),i=r*ut,o=r*ct,s=r*lt;try{let l=be();l.font=xe(e);let u=l.measureText("Hg");typeof u.actualBoundingBoxAscent=="number"&&typeof u.actualBoundingBoxDescent=="number"&&(i=u.actualBoundingBoxAscent,o=u.actualBoundingBoxDescent);}catch{}s=Math.max(s,i+o);let a=He(n).singleLineRatio;return {fontSize:t,ascent:i,descent:o,lineHeight:s,fontFamily:n,singleLineRatio:a}}function O(e,t){if(!e)return 0;let n=be();n.font=xe(t);let i=n.measureText(e).width;return t.letterSpacing&&e.length>1&&(i+=t.letterSpacing*(e.length-1)),i}function ln(e,t){let n=O(e,t),r=V(t);return {width:n,height:r.ascent+r.descent,ascent:r.ascent,descent:r.descent}}function Ae(e,t){let n=V(t);if(!e)return {width:0,charWidths:[],metrics:n};let r=be();r.font=xe(t);let i=t.letterSpacing??0,o=[],s=0;for(let a=0;a<e.length;a++){let l=e[a],c=r.measureText(l).width;i&&a<e.length-1&&(c+=i),o.push(c),s+=c;}return {width:s,charWidths:o,metrics:n}}function un(e,t){if(t.length===0||e<=0)return 0;let n=0;for(let r=0;r<t.length;r++){let i=t[r],o=n+i/2;if(e<=o)return r;n+=i;}return t.length}function cn(e,t){if(e<=0||t.length===0)return 0;let n=Math.min(e,t.length),r=0;for(let i=0;i<n;i++)r+=t[i];return r}function fn(e){return e/ve}function gn(e){return Math.round(e*ve)}function Y(e){return e*he/72}function gt(e){return e*72/he}function mn(e){return Y(e/2)}function pn(e){return gt(e)*2}function Se(e){return e/1440*96}function Me(e){return e/96*1440}function mt(e){let{explicitStops:t=[],defaultTabInterval:n=720,leftIndent:r=0}=e,i=t.filter(g=>g.val!=="clear").filter(g=>g.pos>=r),o=t.filter(g=>g.val==="clear").map(g=>g.pos),s=i.reduce((g,d)=>Math.max(g,d.pos),0),a=[...i];r>0&&!i.some(g=>g.pos<=r)&&(o.some(d=>Math.abs(d-r)<20)||a.push({val:"start",pos:r,leader:"none"}));let u=s>0?Math.max(s,r):r,c=r+14400;for(;u<c;){u+=n;let g=i.some(P=>Math.abs(P.pos-u)<20),d=o.some(P=>Math.abs(P-u)<20),S=r>0&&Math.abs(u-r)<20;!g&&!d&&!S&&a.push({val:"start",pos:u,leader:"none"});}return a.sort((g,d)=>g.pos-d.pos)}function Oe(e,t,n={}){let{defaultTabInterval:r=720}=t,i=Me(e),s=mt(t).find(u=>u.pos>i);if(!s){let u=Se(r),c=u-e%u;return c<=0&&(c=u),{width:c,alignment:"default"}}let l=Se(s.pos)-e;if(s.val==="center")l-=(n.followingWidth??0)/2;else if(s.val==="end")l-=n.followingWidth??0;else if(s.val==="decimal")l-=n.decimalPrefixWidth??0;else if(s.val==="bar")return {width:0,leader:s.leader,alignment:"bar"};if(l<1){let u=Se(r),c=u-e%u;return c<=0&&(c=u),{width:c,alignment:"default"}}return {width:l,leader:s.leader,alignment:s.val}}var pt="Calibri",dt=11;function ht(e){let t=e.attrs,n=e.runs?.find(o=>o.kind==="text"),r=t?.listMarkerFontFamily??n?.fontFamily??t?.defaultFontFamily??pt,i=t?.listMarkerFontSize??n?.fontSize??t?.defaultFontSize??dt;return {fontFamily:r,fontSize:i}}function _e(e){let t=e.attrs;if(!t?.listMarker||t.listMarkerHidden)return 0;let n=t.indent,r=n?.hanging??0;if(r>0)return r;let{fontFamily:i,fontSize:o}=ht(e),s={fontFamily:i,fontSize:o},a=O(t.listMarker,s),l=t.listMarkerSuffix??"tab";if(l==="nothing")return a;if(l==="space")return a+O(" ",s);let u=n?.left??0,c=n?.firstLine??0,g=u+c,d=g+a,S=(t.tabs??[]).filter(T=>T.val!=="clear"&&T.val!=="bar").map(T=>chunkIMKU4O3P_js.a(T.pos)).filter(T=>T>=d).sort((T,I)=>T-I)[0],P=chunkIMKU4O3P_js.a(t.defaultTabStopTwips??chunkFIGLFSNR_js.a),M=P>0?(Math.floor(d/P)+1)*P:void 0,B;return S!==void 0&&M!==void 0?B=Math.min(S,M):B=S??M,B===void 0?a+Y(o)*.5:B-g}var D=11,X="Calibri",bt=1.15,ne=1,Z=.5;function ze(e,t,n,r=false){let i=1,o=e.length,s=0;for(;i<=o;){let a=i+o>>>1;O(e.slice(0,a),t)<=n?(s=a,i=a+1):o=a-1;}return r&&s===0?1:s}function q(e){return {fontFamily:e.fontFamily??X,fontSize:e.fontSize??D,bold:e.bold,italic:e.italic,letterSpacing:e.letterSpacing}}function De(e,t,n){let r=Y(e),i=n?.ascent??r*.8,o=n?.descent??r*.2,s=n?.singleLineRatio??1.15,a=r*s,l;if(t?.lineRule==="exact"&&t.line!==void 0)l=t.line;else if(t?.lineRule==="atLeast"&&t.line!==void 0){let u=a*ne;l=Math.max(t.line,u);}else t?.line!==void 0&&t?.lineUnit==="multiplier"?l=a*t.line:t?.line!==void 0&&t?.lineUnit==="px"?l=t.line:l=a*ne;return {ascent:i,descent:o,lineHeight:l}}function Ne(e,t,n){let r=V({fontSize:e,fontFamily:n??X}),i=De(e,t,r),o=t?.lineRule??"auto";if(o==="auto"||o==="atLeast"){let s=Y(e),a=Math.max(i.lineHeight,s*bt);if(a!==i.lineHeight)return {...i,lineHeight:a}}return i}function Q(e){return e.kind==="text"}function Ze(e){return e.kind==="tab"}function Ue(e){return e.kind==="image"}function Xe(e){return e.kind==="lineBreak"}function Ge(e){return e.kind==="field"}function xt(e){return !e.text||e.text.replace(/\u00a0/g," ").trim().length===0}function St(e,t){let n=0;for(let r=t+1;r<e.length;r++){let i=e[r];if(Ze(i)||Xe(i))break;if(Q(i))n+=O(i.text||"",q(i));else if(Ge(i)){let o={fontFamily:i.fontFamily??X,fontSize:i.fontSize??D,bold:i.bold,italic:i.italic};n+=O(i.fallback||"1",o);}else Ue(i)&&(n+=i.width||0);}return n}function Mt(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];(r===" "||r==="-"||r===" ")&&t.push(n+1);}return t}function Ke(e,t,n){let r=Math.max(1,n),i=Math.max(0,e),o=Math.max(0,t);return i>=r||o>=r||i+o>=r?{leftMargin:0,rightMargin:0}:{leftMargin:i,rightMargin:o}}function Tt(e,t,n){let r=e.runs,i=e.attrs,o=i?.spacing,s=n?.floatingZones,a=n?.paragraphYOffset??0,l=i?.indent,u=l?.left??0,c=l?.right??0,g=(l?.firstLine??0)-(l?.hanging??0),d=Math.max(1,t-u-c),S=(l?.hanging??0)===0?_e(e):0,P=Math.max(1,d-g-S),M=0,B=0,T=Y(D)*ne,I=(m,p)=>{if(!s||s.length===0)return;let x=a+M,b=Ye(x,m,s,p,U)-x;b>0&&(M+=b,B+=b);};I(T,P);let w=te(M,T,s,a),C=Math.max(1,ee(w,P)),R=[];if(r.length===0){if(i?.suppressEmptyParagraphHeight)return R.push({fromRun:0,fromChar:0,toRun:0,toChar:0,width:0,ascent:0,descent:0,lineHeight:0}),{kind:"paragraph",lines:R,totalHeight:0};let m=i?.defaultFontSize??D,p=i?.defaultFontFamily??X,x=Ne(m,o,p);R.push({fromRun:0,fromChar:0,toRun:0,toChar:0,width:0,...x});let b=x.lineHeight;return o?.before&&(b+=o.before),o?.after&&(b+=o.after),{kind:"paragraph",lines:R,totalHeight:b}}if(r.length===1&&Q(r[0])&&xt(r[0])){let m=r[0],p=m.fontSize??i?.defaultFontSize??D,x=m.fontFamily??i?.defaultFontFamily??X,b=Ne(p,o,x);R.push({fromRun:0,fromChar:0,toRun:0,toChar:0,width:0,...b});let y=b.lineHeight;return o?.before&&(y+=o.before),o?.after&&(y+=o.after),{kind:"paragraph",lines:R,totalHeight:y}}let f={fromRun:0,fromChar:0,toRun:0,toChar:0,width:0,maxFontSize:D,maxFontMetrics:null,maxImageHeightPx:0,availableWidth:C,leftOffset:w.leftMargin,rightOffset:w.rightMargin,segmentZones:w.segments},L=()=>{let m=De(f.maxFontSize,o,f.maxFontMetrics),p={...m};if(f.maxImageHeightPx>p.lineHeight){let b=f.maxImageHeightPx,y=p.descent;f.fromRun===f.toRun?(p.lineHeight=b+y*2,p.ascent=b+y):(p.lineHeight=b+y,p.ascent=b);}let x={fromRun:f.fromRun,fromChar:f.fromChar,toRun:f.toRun,toChar:f.toChar,width:f.width,...p};f.leftOffset>0&&(x.leftOffset=f.leftOffset),f.rightOffset>0&&(x.rightOffset=f.rightOffset),f.segmentZones?.length&&(x.segments=H(x,f.segmentZones)),B>0&&(x.floatSkipBefore=B,B=0),R.push(x),M+=m.lineHeight;},H=(m,p)=>{let x=p[0],b=p[1];if(!x)return;if(!b||m.width<=x.availableWidth+Z)return [{fromRun:m.fromRun,fromChar:m.fromChar,toRun:m.toRun,toChar:m.toChar,width:m.width,leftOffset:x.leftOffset,availableWidth:x.availableWidth}];if(m.fromRun!==m.toRun)return;let y=r[m.fromRun];if(!y||!Q(y))return;let z=y,k=z.text.slice(m.fromChar,m.toChar),_=q(z),E=ze(k,_,x.availableWidth);if(E<=0||E>=k.length)return;let N=m.fromChar+E,A=k.slice(0,E),K=k.slice(E);return [{fromRun:m.fromRun,fromChar:m.fromChar,toRun:m.toRun,toChar:N,width:O(A,_),leftOffset:x.leftOffset,availableWidth:x.availableWidth},{fromRun:m.fromRun,fromChar:N,toRun:m.toRun,toChar:m.toChar,width:O(K,_),leftOffset:b.leftOffset,availableWidth:b.availableWidth}]},W=(m,p)=>{L();let x=Y(D)*ne;I(x,d);let b=te(M,x,s,a),y=Math.max(1,ee(b,d));f={fromRun:m,fromChar:p,toRun:m,toChar:p,width:0,maxFontSize:D,maxFontMetrics:null,maxImageHeightPx:0,availableWidth:y,leftOffset:b.leftMargin,rightOffset:b.rightMargin,segmentZones:b.segments};},h=m=>{let p=m.fontSize??D;(!f.maxFontMetrics||p>f.maxFontSize)&&(f.maxFontSize=p,f.maxFontMetrics=V(m));};for(let m=0;m<r.length;m++){let p=r[m];if(Xe(p)){f.toRun=m,f.toChar=0,W(m+1,0);continue}if(Ze(p)){let x=q(p);h(x);let b=St(r,m),y=f.width+(f.leftOffset??0),z=R.length===0,k=u+(z?g:0)+y,_={explicitStops:i?.tabs,leftIndent:Me(u)},E=Oe(k,_,{followingWidth:b}).width;if(y+E>f.availableWidth+Z){let N=f.availableWidth-y-b;N>1&&(E=N);}f.width+E>f.availableWidth+Z&&(W(m,0),h(x)),f.width+=E,f.toRun=m,f.toChar=1;continue}if(Ue(p)){let x=p.wrapType,b=p.displayMode==="float"||chunkJFZIXFRC_js.c(x);if(p.position&&b){f.toRun=m,f.toChar=1;continue}if(x==="topAndBottom"||p.displayMode==="block"){f.width>0&&W(m,0);let N=p.height,A=p.distTop??6,K=p.distBottom??6;f.toRun=m,f.toChar=1,f.maxImageHeightPx=N+A+K,W(m+1,0);continue}let y=p.width,z=p.height;f.width+y>f.availableWidth+Z&&W(m,0);let k=y>0&&y>f.availableWidth?f.availableWidth/y:1,E=z*k+(p.distTop??0)+(p.distBottom??0);E>f.maxImageHeightPx&&(f.maxImageHeightPx=E),f.width+=y,f.toRun=m,f.toChar=1;continue}if(Ge(p)){let x=p.fallback||"1",b={fontFamily:p.fontFamily??X,fontSize:p.fontSize??D,bold:p.bold,italic:p.italic};h(b);let y=O(x,b);f.width>0&&f.width+y>f.availableWidth+Z&&(W(m,0),h(b)),f.width+=y,f.toRun=m,f.toChar=1;continue}if(Q(p)){let x=p,b=x.text,y=q(x);if(h(y),!b||b.length===0){f.toRun=m,f.toChar=0;continue}let z=Mt(b),k=0;for(;k<b.length;){let _=b.length;for(let A of z)if(A>k){_=A;break}let E=b.slice(k,_),N=O(E,y);if(N>f.availableWidth+Z){let A=0;for(;A<E.length;){let K=f.availableWidth-f.width+Z,tt=E.slice(A),oe=ze(tt,y,K);if(oe===0){if(f.width>0){W(m,k+A),h(y);continue}oe=1;}let ae=A+oe,nt=E.slice(A,ae),rt=O(nt,y);f.width+=rt,f.toRun=m,f.toChar=k+ae,A=ae,A<E.length&&(W(m,k+A),h(y));}k=_;continue}f.width>0&&f.width+N>f.availableWidth+Z&&(W(m,k),h(y)),f.width+=N,f.toRun=m,f.toChar=_,k=_;}}}L();let v=R.reduce((m,p)=>m+p.lineHeight+(p.floatSkipBefore??0),0);return o?.before&&(v+=o.before),o?.after&&(v+=o.after),{kind:"paragraph",lines:R,totalHeight:v}}function Cn(e,t){return e.map(n=>Tt(n,t))}function Rn(e){let t=q(e);return Ae(e.text,t).charWidths}function In(e,t){return e.map(n=>{let r=n.x-n.distLeft,i=n.x+n.width+n.distRight,o=n.y-n.distTop,s=n.y+n.height+n.distBottom;if(n.wrapType==="topAndBottom")return {leftMargin:0,rightMargin:0,topY:o,bottomY:s,fullWidthBlock:true};let a=0,l=0,u,c=n.wrapText??"bothSides";c==="right"?a=Te(i):c==="left"?l=ye(r,t):c==="largest"?{leftMargin:a,rightMargin:l}=Bt(r,i,t):Pt(r,i,t)?u=Ft(r,i,t):n.side==="left"?a=Te(i):l=ye(r,t);let g=Ke(a,l,t);return {leftMargin:g.leftMargin,rightMargin:g.rightMargin,topY:o,bottomY:s,segments:u}})}function ee(e,t){return e.segments?.reduce((r,i)=>r+i.availableWidth,0)??t-e.leftMargin-e.rightMargin}function te(e,t,n,r){if(!n||n.length===0)return {leftMargin:0,rightMargin:0};let i=0,o=0,s,a=r+e,l=a+t;for(let u of n)if(!(l<=u.topY||a>=u.bottomY)){if(u.fullWidthBlock)return {leftMargin:0,rightMargin:0,segments:[{leftOffset:0,availableWidth:0}]};if(u.segments?.length){s=s?yt(s,u.segments):u.segments;continue}i=Math.max(i,u.leftMargin),o=Math.max(o,u.rightMargin);}return {leftMargin:i,rightMargin:o,segments:s}}function Ye(e,t,n,r,i){if(!n||n.length===0)return e;let o=e;for(let s=0;s<n.length+2;s++){let a=te(o,t,n,0);if(ee(a,r)>=i)return o;let u=o+t,c=1/0;for(let g of n)u<=g.topY||o>=g.bottomY||g.bottomY>o&&g.bottomY<c&&(c=g.bottomY);if(!Number.isFinite(c)||c<=o)return o;o=c;}return o}function yt(e,t){let n=[];for(let r of e)for(let i of t){let o=Math.max(r.leftOffset,i.leftOffset),s=Math.min(r.leftOffset+r.availableWidth,i.leftOffset+i.availableWidth);s>o&&n.push({leftOffset:o,availableWidth:s-o});}return n}var U=24;function Pt(e,t,n){return e>U&&t+U<n}function Ft(e,t,n){return [{leftOffset:0,availableWidth:Math.max(0,e)},{leftOffset:Math.max(0,t),availableWidth:Math.max(0,n-t)}].filter(r=>r.availableWidth>1)}function Bt(e,t,n){let r=Math.max(0,e);return Math.max(0,n-t)>=r?{leftMargin:Te(t),rightMargin:0}:{leftMargin:0,rightMargin:ye(e,n)}}function Te(e){return Math.max(0,e)}function ye(e,t){return Math.max(0,t-e)}function wt(e,t){return e==null||!Number.isFinite(e)?0:Math.max(0,Math.min(t,e))}function re(e,t,n){if(e)return e.kind==="text"?typeof e.pmStart=="number"?e.pmStart+wt(t,e.text.length):n==="end"?e.pmEnd:void 0:n==="end"?typeof e.pmEnd=="number"?e.pmEnd:typeof e.pmStart=="number"?e.pmStart+1:void 0:e.pmStart}function $e(e,t,n,r){if(t.lines.length===0||n>=r)return {pmStart:e.pmStart,pmEnd:e.pmEnd};let i=t.lines[n],o=t.lines[r-1],s=i?e.runs[i.fromRun]:void 0,a=o?e.runs[o.toRun]:void 0,l=n===0?e.pmStart??re(s,i?.fromChar??0,"start"):re(s,i?.fromChar??0,"start"),u=r>=t.lines.length?e.pmEnd??re(a,o?.toChar??0,"end"):re(a,o?.toChar??0,"end");return l==null&&(l=e.pmStart),u==null&&(u=e.pmEnd),l!=null&&u!=null&&u<=l&&(u=l+1),{pmStart:l,pmEnd:u}}var je={count:1,gap:0};function Ct(e,t,n){return {activeTopMargin:e.top,activeBottomMargin:e.bottom,activeLeftMargin:e.left,activeRightMargin:e.right,pendingTopMargin:null,pendingBottomMargin:null,pendingLeftMargin:null,pendingRightMargin:null,activePageSize:{...t},pendingPageSize:null,activeColumns:n?{...n}:{...je},pendingColumns:null,activeOrientation:null,pendingOrientation:null,hasAnyPages:false}}function Rt(e,t){return t.count>1}function ie(e){return e?{count:e.count,gap:e.gap}:{...je}}function Lt(e,t,n){let r={...t},i=e.type??"continuous",o=e.margins,s=e.pageSize,a=e.orientation;o&&(typeof o.top=="number"&&(r.pendingTopMargin=Math.max(0,o.top)),typeof o.bottom=="number"&&(r.pendingBottomMargin=Math.max(0,o.bottom)),typeof o.left=="number"&&(r.pendingLeftMargin=Math.max(0,o.left)),typeof o.right=="number"&&(r.pendingRightMargin=Math.max(0,o.right))),s&&(r.pendingPageSize={w:s.w,h:s.h}),a&&(r.pendingOrientation=a);let l=Rt((e.margins,void 0),r.activeColumns);switch(i){case "nextPage":return r.pendingColumns=ie(void 0),{decision:{forcePageBreak:true,forceMidPageRegion:false},state:r};case "evenPage":return r.pendingColumns=ie(void 0),{decision:{forcePageBreak:true,forceMidPageRegion:false,requiredParity:"even"},state:r};case "oddPage":return r.pendingColumns=ie(void 0),{decision:{forcePageBreak:true,forceMidPageRegion:false,requiredParity:"odd"},state:r};default:return l?(r.pendingColumns=ie(void 0),{decision:{forcePageBreak:false,forceMidPageRegion:true},state:r}):{decision:{forcePageBreak:false,forceMidPageRegion:false},state:r}}}function kt(e){let t={...e};return t.pendingTopMargin!==null&&(t.activeTopMargin=t.pendingTopMargin,t.pendingTopMargin=null),t.pendingBottomMargin!==null&&(t.activeBottomMargin=t.pendingBottomMargin,t.pendingBottomMargin=null),t.pendingLeftMargin!==null&&(t.activeLeftMargin=t.pendingLeftMargin,t.pendingLeftMargin=null),t.pendingRightMargin!==null&&(t.activeRightMargin=t.pendingRightMargin,t.pendingRightMargin=null),t.pendingPageSize!==null&&(t.activePageSize=t.pendingPageSize,t.pendingPageSize=null),t.pendingColumns!==null&&(t.activeColumns=t.pendingColumns,t.pendingColumns=null),t.pendingOrientation!==null&&(t.activeOrientation=t.pendingOrientation,t.pendingOrientation=null),t}function It(e){return {top:e.pendingTopMargin??e.activeTopMargin,bottom:e.pendingBottomMargin??e.activeBottomMargin,left:e.pendingLeftMargin??e.activeLeftMargin,right:e.pendingRightMargin??e.activeRightMargin}}function vt(e){return e.pendingPageSize??e.activePageSize}function Et(e){return e.pendingColumns??e.activeColumns}function Wt(e,t){for(let n=0;n<e.pages.length;n++)for(let r of e.pages[n].fragments){if(r.pmStart==null)continue;let i=r.pmStart,o=r.pmEnd??i+1;if(t>=i&&t<o)return n}return null}var Ht={w:816,h:1056},G={top:96,right:96,bottom:96,left:96},Je={count:1,gap:0};function At(e,t,n){let r=[],i=[],o=t;for(let s=0;s<e.length;s++){if(e[s].kind!=="sectionBreak")continue;let a=e[s],l={pageSize:a.pageSize??o.pageSize,margins:a.margins??o.margins,columns:a.columns};r.push(l),i.push(s),o=l;}return r.push(n),{configs:r,breakIndices:i}}function Qe(e){if(e.runs.length===0)return true;if(e.runs.length!==1)return false;let t=e.runs[0];return t.kind==="text"&&(t.text??"")===""}function Ve(e){let t=e.attrs?.spacing?.before??0;return Qe(e)&&!e.attrs?.spacingExplicit?.before?0:t}function qe(e){let t=e.attrs?.spacing?.after??0;return Qe(e)&&!e.attrs?.spacingExplicit?.after?0:t}function et(e){for(let t=0;t<e.length-1;t++){let n=e[t],r=e[t+1];if(n.kind!=="paragraph"||r.kind!=="paragraph")continue;let i=n.attrs,o=r.attrs;i?.contextualSpacing&&o?.contextualSpacing&&i.styleId&&i.styleId===o.styleId&&(i.spacing&&(i.spacing={...i.spacing,after:0}),o.spacing&&(o.spacing={...o.spacing,before:0}));}for(let t of e)if(t.kind==="table")for(let n of t.rows)for(let r of n.cells)et(r.blocks);}function Zn(e,t,n={}){if(e.length!==t.length)throw new Error(`layoutDocument: expected one measure per block (blocks=${e.length}, measures=${t.length})`);let r=n.pageSize??Ht,i={top:n.margins?.top??G.top,right:n.margins?.right??G.right,bottom:n.margins?.bottom??G.bottom,left:n.margins?.left??G.left,header:n.margins?.header??n.margins?.top??G.top,footer:n.margins?.footer??n.margins?.bottom??G.bottom};n.headerContentHeights,n.footerContentHeights,n.titlePage,n.evenAndOddHeaders;let o={...i},s=n.finalPageSize??r,a=n.finalMargins??o;if(r.w-o.left-o.right<=0)throw new Error("layoutDocument: page size and margins yield no content area");let u={pageSize:r,margins:o,columns:n.columns},c={pageSize:s,margins:a,columns:n.columns},{configs:g,breakIndices:d}=At(e,u,c),S=[...d.map(w=>e[w].type),n.bodyBreakType],P=g[0]??u,M=fe({pageSize:P.pageSize,margins:P.margins,columns:P.columns??Je,footnoteReservedHeights:n.footnoteReservedHeights});et(e);let B=ge(e),T=pe(B),I=0;for(let w=0;w<e.length;w++){let C=e[w],R=t[w];de(C)&&M.forcePageBreak();let f=B.get(w);if(f&&!T.has(w)){let L=me(f,e,t),H=M.getCurrentState(),W=M.getAvailableHeight(),h=H.contentBottom-H.topMargin;L<=h&&L>W&&H.page.fragments.length>0&&M.forcePageBreak();}switch(C.kind){case "paragraph":Ot(C,R,M,M.getContentWidth());break;case "table":C.floating?Yt(C,R,M,M.getContentWidth()):Nt(C,R,M);break;case "image":Dt(C,R,M);break;case "textBox":Ut(C,R,M);break;case "pageBreak":M.forcePageBreak();break;case "columnBreak":M.forceColumnBreak();break;case "sectionBreak":{let L=S[I+1]??S[I];Xt(C,M,g[I+1]??P,L),I++;break}default:chunkDROCYKAR_js.c(C,"runLayoutPipeline");}}return M.pages.length===0&&M.getCurrentState(),{pageSize:r,pages:M.pages,columns:n.columns,pageGap:n.pageGap}}function Ot(e,t,n,r){if(t.kind!=="paragraph")throw new Error("layoutParagraph: expected paragraph measure");let i=t.lines;if(i.length===0){let l=Ve(e),u=qe(e),c=n.getCurrentState(),g={kind:"paragraph",blockId:e.id,x:n.getColumnX(c.columnIndex),y:c.cursorY+l,width:r,height:0,fromLine:0,toLine:0,pmStart:e.pmStart,pmEnd:e.pmEnd};n.addFragment(g,0,l,u);return}let o=Ve(e),s=qe(e),a=0;for(;a<i.length;){let l=n.getCurrentState(),u=a===0?Math.max(o,l.trailingSpacing):0,c=n.getAvailableHeight()-u,g=0,d=0;for(let C=a;C<i.length;C++){let R=i[C].lineHeight+(i[C].floatSkipBefore??0),f=g+R;if(f<=c||d===0)g=f,d++;else break}let S=a===0,P=a+d>=i.length,M=S?o:0,B=P?s:0,T=$e(e,t,a,a+d),I={kind:"paragraph",blockId:e.id,x:n.getColumnX(l.columnIndex),y:0,width:r,height:g,fromLine:a,toLine:a+d,pmStart:T.pmStart,pmEnd:T.pmEnd,continuesFromPrev:!S,continuesOnNext:!P},w=n.addFragment(I,g,M,B);I.y=w.y,a+=d,a<i.length&&n.ensureFits(i[a].lineHeight);}}function _t(e){let t=0;for(let n of e.rows)if(n.isHeader)t++;else break;return t}function zt(e,t){let n=0;for(let r=0;r<t&&r<e.rows.length;r++)n+=e.rows[r].height;return n}function Nt(e,t,n){if(t.kind!=="table")throw new Error("layoutTable: expected table measure");let r=t.rows;if(r.length===0)return;let i=_t(e),o=zt(t,i),s=Le(e,t),a=0,l=0;for(;a<r.length;){let u=n.getCurrentState(),c=a===0&&l===0,g=c?u.trailingSpacing:0,d=!c&&i>0?o:0,S=n.getAvailableHeight()-g-d,P=a,M=l,B=0,T=a,I=l,w=a,C,R=false;for(;T<r.length;){let F=r[T].height,v=T===P?I:0,m=F-v;if(B+m<=S){B+=m,T+=1,w=T;continue}let p=S-B,x=e.rows[T]?.cantSplit?0:ke(s,T,v,p);x>0?(B+=x,w=T+1,C=v+x,R=true):w>P||(B+=m,w=T+1);break}let f=d+B,L=w===r.length&&!R,H=n.getColumnX(u.columnIndex);e.justification==="center"?H=H+(n.columnWidth-t.totalWidth)/2:e.justification==="right"?H=H+n.columnWidth-t.totalWidth:e.indent&&(H+=e.indent);let W={kind:"table",blockId:e.id,x:H,y:0,width:t.totalWidth,height:f,fromRow:P,toRow:w,pmStart:e.pmStart,pmEnd:e.pmEnd,continuesFromPrev:!c,continuesOnNext:!L,headerRowCount:!c&&i>0?i:void 0,topClip:M>0?M:void 0,bottomClip:C},h=n.addFragment(W,f,0,0);if(W.y=h.y,W.x=H,R?(a=w-1,l=C??0):(a=w,l=0),a<r.length){let F=(i>0?o:0)+(r[a].height-l);n.ensureFits(F);}}}function Yt(e,t,n,r){if(t.kind!=="table")throw new Error("layoutFloatingTable: expected table measure");let i=n.getCurrentState(),o=e.floating,s=i.page,a=s.margins,l=t.totalWidth,u=t.totalHeight,c=s.size.h-a.top-a.bottom,g=a.left,d=a.top;o?.horzAnchor==="page"&&(g=0),o?.vertAnchor==="page"&&(d=0),o?.vertAnchor==="text"&&(d=i.cursorY);let S=n.getColumnX(i.columnIndex);if(o?.tblpX!==void 0)S=g+o.tblpX;else if(o?.tblpXSpec){let L=o.tblpXSpec;L==="left"||L==="inside"?S=g:L==="right"||L==="outside"?S=g+r-l:L==="center"&&(S=g+(r-l)/2);}else e.justification==="center"?S=g+(r-l)/2:e.justification==="right"&&(S=g+r-l);let P=i.cursorY,M=false;if(o?.tblpY!==void 0)P=d+o.tblpY,M=true;else if(o?.tblpYSpec){M=true;let L=o.tblpYSpec;L==="top"?P=d:L==="bottom"?P=d+c-u:L==="center"&&(P=d+(c-u)/2);}M||(P=n.ensureFits(u).cursorY);let B=a.left,T=a.left+r-l;Number.isFinite(T)&&(S=Math.max(B,Math.min(S,T)));let I={kind:"table",blockId:e.id,x:S,y:P,width:l,height:u,fromRow:0,toRow:e.rows.length,pmStart:e.pmStart,pmEnd:e.pmEnd,isFloating:true};i.page.fragments.push(I);let w=o?.leftFromText??0,C=o?.rightFromText??0,R=S-a.left-w,f=a.left+r-(S+l)-C;if(R<U&&f<U){let L=P+u+(o?.bottomFromText??0);L>i.cursorY&&(i.cursorY=L);}}function Dt(e,t,n){if(t.kind!=="image")throw new Error("layoutImage: expected image measure");if(e.anchor?.isAnchored){Zt(e,t,n);return}let r=n.ensureFits(t.height),i={kind:"image",blockId:e.id,x:n.getColumnX(r.columnIndex),y:0,width:t.width,height:t.height,pmStart:e.pmStart,pmEnd:e.pmEnd},o=n.addFragment(i,t.height,0,0);i.y=o.y;}function Zt(e,t,n){let r=n.getCurrentState(),i=e.anchor,o=i.offsetH??n.getColumnX(r.columnIndex),s=i.offsetV??r.cursorY,a={kind:"image",blockId:e.id,x:o,y:s,width:t.width,height:t.height,pmStart:e.pmStart,pmEnd:e.pmEnd,isAnchored:true,zIndex:i.behindDoc?-1:1};r.page.fragments.push(a);}function Ut(e,t,n){if(t.kind!=="textBox")throw new Error("layoutTextBox: expected textBox measure");if($(e)){let s=n.getCurrentState(),a={kind:"textBox",blockId:e.id,x:n.getColumnX(s.columnIndex),y:s.cursorY,width:t.width,height:t.height,pmStart:e.pmStart,pmEnd:e.pmEnd,isFloating:true,zIndex:e.wrapType==="behind"?-1:1};s.page.fragments.push(a);return}let r=n.ensureFits(t.height),i={kind:"textBox",blockId:e.id,x:n.getColumnX(r.columnIndex),y:0,width:t.width,height:t.height,pmStart:e.pmStart,pmEnd:e.pmEnd},o=n.addFragment(i,t.height,0,0);i.y=o.y;}function Xt(e,t,n,r){switch(r??"nextPage"){case "nextPage":t.updatePageLayout(n.pageSize,n.margins),t.forcePageBreak();break;case "evenPage":{t.updatePageLayout(n.pageSize,n.margins),t.forcePageBreak().page.number%2!==0&&t.forcePageBreak();break}case "oddPage":{t.updatePageLayout(n.pageSize,n.margins),t.forcePageBreak().page.number%2===0&&t.forcePageBreak();break}case "continuous":t.updatePageLayout(n.pageSize,n.margins,false);break}t.updateColumns(n.columns??Je);}exports.A=Cn;exports.B=Rn;exports.C=fe;exports.D=ge;exports.E=me;exports.F=pe;exports.G=it;exports.H=de;exports.I=$;exports.J=ot;exports.K=at;exports.L=Re;exports.M=Ct;exports.N=Lt;exports.O=kt;exports.P=It;exports.Q=vt;exports.R=Et;exports.S=Wt;exports.T=At;exports.U=Zn;exports.V=zt;exports.a=qt;exports.b=Ce;exports.c=Jt;exports.d=Qt;exports.e=be;exports.f=sn;exports.g=xe;exports.h=V;exports.i=O;exports.j=ln;exports.k=Ae;exports.l=un;exports.m=cn;exports.n=fn;exports.o=gn;exports.p=Y;exports.q=gt;exports.r=mn;exports.s=pn;exports.t=In;exports.u=te;exports.v=Oe;exports.w=ht;exports.x=_e;exports.y=Ke;exports.z=Tt;
@@ -1 +0,0 @@
1
- 'use strict';var chunkC45EFOVP_js=require('./chunk-C45EFOVP.js'),chunkRQVHKDXK_js=require('./chunk-RQVHKDXK.js'),chunk4Q2IP5FW_js=require('./chunk-4Q2IP5FW.js');function O(t){return t.attrs.href||""}function H(t){let e=t.filter(n=>n.type.name!=="hyperlink");return e.length===0?"":e.map(n=>`${n.type.name}:${JSON.stringify(n.attrs)}`).sort().join("|")}function k(t){let e={};for(let n of t)switch(n.type.name){case "bold":e.bold=true,e.boldCs=true;break;case "italic":e.italic=true,e.italicCs=true;break;case "underline":{let o=n.attrs;e.underline={style:o.style||"single",color:o.color};break}case "strike":n.attrs.double?e.doubleStrike=true:e.strike=true;break;case "textColor":{let o=n.attrs;e.color={rgb:o.rgb,themeColor:o.themeColor,themeTint:o.themeTint,themeShade:o.themeShade};break}case "highlight":e.highlight=n.attrs.color;break;case "fontSize":e.fontSize=n.attrs.size,e.fontSizeCs=n.attrs.size;break;case "fontFamily":{let o=n.attrs;e.fontFamily={ascii:o.ascii,hAnsi:o.hAnsi,eastAsia:o.eastAsia||void 0,cs:o.cs||o.ascii||void 0,asciiTheme:o.asciiTheme,hAnsiTheme:o.hAnsiTheme||void 0,eastAsiaTheme:o.eastAsiaTheme||void 0,csTheme:o.csTheme||void 0};break}case "superscript":e.vertAlign="superscript";break;case "subscript":e.vertAlign="subscript";break;case "allCaps":e.allCaps=true;break;case "smallCaps":e.smallCaps=true;break;case "characterSpacing":{n.attrs.spacing!=null&&(e.spacing=n.attrs.spacing),n.attrs.position!=null&&(e.position=n.attrs.position),n.attrs.scale!=null&&(e.scale=n.attrs.scale),n.attrs.kerning!=null&&(e.kerning=n.attrs.kerning);break}case "emboss":e.emboss=true;break;case "imprint":e.imprint=true;break;case "textShadow":e.shadow=true;break;case "emphasisMark":e.emphasisMark=n.attrs.type||"dot";break;case "textOutline":e.outline=true;break;case "hidden":e.hidden=true;break;case "rtl":e.rtl=true;break;case "textEffect":e.effect=n.attrs.effect||"blinkBackground";break}return e}function W(t){let e=t.attrs.href;return e?.startsWith("#")?{type:"hyperlink",anchor:e.substring(1),tooltip:t.attrs.tooltip||void 0,children:[]}:{type:"hyperlink",href:e,tooltip:t.attrs.tooltip||void 0,rId:t.attrs.rId||void 0,children:[]}}function P(t,e){let n=e.marks.filter(o=>o.type.name!=="hyperlink");e.isText&&e.text?t.children.push(w(e.text,n)):e.type.name==="tab"?t.children.push(v()):e.type.name==="hardBreak"&&t.children.push(M());}function w(t,e){let n=k(e),o={type:"text",text:t};return {type:"run",formatting:Object.keys(n).length>0?n:void 0,content:[o]}}function j(t,e){let n=t.content[t.content.length-1];n&&n.type==="text"?n.text+=e:t.content.push({type:"text",text:e});}function M(){return {type:"run",content:[{type:"break",breakType:"textWrapping"}]}}function v(){return {type:"run",content:[{type:"tab"}]}}function z(t,e){let n=t.attrs,o=e&&e.length>0?k(e):void 0,i=n.displayText||"";if(!i)switch(n.fieldType){case "PAGE":i="1";break;case "NUMPAGES":i="1";break;default:i=" ";break}let r={type:"run",content:[{type:"text",text:i}],...o&&Object.keys(o).length>0?{formatting:o}:{}};return n.fieldKind==="complex"?{type:"complexField",instruction:n.instruction,fieldType:n.fieldType,fieldCode:[],fieldResult:[r],fldLock:n.fldLock||void 0,dirty:n.dirty||void 0}:{type:"simpleField",instruction:n.instruction,fieldType:n.fieldType,content:[r],fldLock:n.fldLock||void 0,dirty:n.dirty||void 0}}function _(t){let e=t.attrs;return {type:"mathEquation",display:e.display||"inline",ommlXml:e.ommlXml,plainText:e.plainText||void 0}}function R(t){let e=t.attrs,o={type:e.wrapType||"inline"};e.distTop!==void 0&&(o.distT=chunk4Q2IP5FW_js.f(e.distTop)),e.distBottom!==void 0&&(o.distB=chunk4Q2IP5FW_js.f(e.distBottom)),e.distLeft!==void 0&&(o.distL=chunk4Q2IP5FW_js.f(e.distLeft)),e.distRight!==void 0&&(o.distR=chunk4Q2IP5FW_js.f(e.distRight)),e.wrapText&&(o.wrapText=e.wrapText);let i={type:"image",rId:e.rId||"",src:e.src,alt:e.alt||void 0,title:e.title||void 0,size:{width:chunk4Q2IP5FW_js.f(e.width||0),height:chunk4Q2IP5FW_js.f(e.height||0)},wrap:o};if(e.transform){let a=e.transform,l={},u=a.match(/rotate\(([-\d.]+)deg\)/);u&&(l.rotation=parseFloat(u[1])),a.includes("scaleX(-1)")&&(l.flipH=true),a.includes("scaleY(-1)")&&(l.flipV=true),(l.rotation||l.flipH||l.flipV)&&(i.transform=l);}if(e.position?.horizontal&&e.position?.vertical){let a=e.position;i.position={horizontal:{relativeTo:a.horizontal.relativeTo||"column",alignment:a.horizontal.align,posOffset:a.horizontal.posOffset},vertical:{relativeTo:a.vertical.relativeTo||"paragraph",alignment:a.vertical.align,posOffset:a.vertical.posOffset}};}if(e.borderWidth&&e.borderWidth>0){let a={solid:"solid",dotted:"dot",dashed:"dash",double:"solid",groove:"solid",ridge:"solid",inset:"solid",outset:"solid"};i.outline={width:chunk4Q2IP5FW_js.f(e.borderWidth),color:e.borderColor?{rgb:e.borderColor.replace("#","")}:void 0,style:e.borderStyle&&a[e.borderStyle]||"solid"};}if(e.hlinkHref&&(i.hlinkHref=e.hlinkHref),e.cropTop!==void 0||e.cropRight!==void 0||e.cropBottom!==void 0||e.cropLeft!==void 0){let a={};e.cropTop!==void 0&&e.cropTop!==null&&(a.top=e.cropTop),e.cropRight!==void 0&&e.cropRight!==null&&(a.right=e.cropRight),e.cropBottom!==void 0&&e.cropBottom!==null&&(a.bottom=e.cropBottom),e.cropLeft!==void 0&&e.cropLeft!==null&&(a.left=e.cropLeft),Object.keys(a).length>0&&(i.crop=a);}if(e.opacity!==void 0&&e.opacity!==null&&e.opacity<1&&(i.opacity=e.opacity),e.layoutInCell!==void 0&&e.layoutInCell!==null&&(i.layoutInCell=e.layoutInCell),e.allowOverlap!==void 0&&e.allowOverlap!==null&&(i.allowOverlap=e.allowOverlap),e.effectExtentTop||e.effectExtentBottom||e.effectExtentLeft||e.effectExtentRight){let a={};e.effectExtentTop&&(a.top=chunk4Q2IP5FW_js.f(e.effectExtentTop)),e.effectExtentBottom&&(a.bottom=chunk4Q2IP5FW_js.f(e.effectExtentBottom)),e.effectExtentLeft&&(a.left=chunk4Q2IP5FW_js.f(e.effectExtentLeft)),e.effectExtentRight&&(a.right=chunk4Q2IP5FW_js.f(e.effectExtentRight)),Object.keys(a).length>0&&(i.padding=a);}return {type:"run",content:[{type:"drawing",image:i}]}}function S(t){let e=t.attrs,n={type:"shape",shapeType:e.shapeType||"rect",id:e.shapeId||void 0,size:{width:e.width?chunk4Q2IP5FW_js.f(e.width):0,height:e.height?chunk4Q2IP5FW_js.f(e.height):0}};if(e.fillType==="gradient"&&e.gradientStops)try{let i=JSON.parse(e.gradientStops);n.fill={type:"gradient",gradient:{type:e.gradientType||"linear",angle:e.gradientAngle||void 0,stops:i.map(r=>({position:r.position,color:{rgb:r.color.replace("#","")}}))}};}catch{n.fill={type:"solid",color:{rgb:(e.fillColor||"000000").replace("#","")}};}else e.fillColor?n.fill={type:e.fillType||"solid",color:{rgb:e.fillColor.replace("#","")}}:e.fillType==="none"&&(n.fill={type:"none"});if(e.outlineWidth&&e.outlineWidth>0){let i={solid:"solid",dotted:"dot",dashed:"dash"};n.outline={width:chunk4Q2IP5FW_js.f(e.outlineWidth),color:e.outlineColor?{rgb:e.outlineColor.replace("#","")}:void 0,style:e.outlineStyle&&i[e.outlineStyle]||"solid"};}return {type:"run",content:[{type:"shape",shape:n}]}}function T(t){let e=t.attrs,n=J(K(t),t),o=e.bookmarks;if(o&&o.length>0){let r=o.map(l=>({type:"bookmarkStart",id:l.id,name:l.name})),a=o.map(l=>({type:"bookmarkEnd",id:l.id}));n=[...r,...n,...a];}let i={type:"paragraph",paraId:e.paraId||void 0,textId:e.textId||void 0,formatting:q(e),content:n};return e.renderedPageBreakBefore&&(i.renderedPageBreakBefore=true),e.pPrIns&&(i.pPrIns={id:e.pPrIns.revisionId,author:e.pPrIns.author,...e.pPrIns.date?{date:e.pPrIns.date}:{}}),e.pPrDel&&(i.pPrDel={id:e.pPrDel.revisionId,author:e.pPrDel.author,...e.pPrDel.date?{date:e.pPrDel.date}:{}}),e.pPrChange&&e.pPrChange.length>0&&(i.propertyChanges=e.pPrChange),e._sectionProperties?i.sectionProperties=e._sectionProperties:e.sectionBreakType&&(i.sectionProperties={sectionStart:e.sectionBreakType}),i}function J(t,e){let n=new Set;if(e.forEach(a=>{for(let l of a.marks)l.type.name==="comment"&&n.add(l.attrs.commentId);}),n.size===0)return t;let o=[],i=new Set,r=0;e.forEach(a=>{let l=new Set;for(let u of a.marks)u.type.name==="comment"&&l.add(u.attrs.commentId);for(let u of [...i])l.has(u)||(o.push({type:"commentRangeEnd",id:u}),i.delete(u));for(let u of l)i.has(u)||(o.push({type:"commentRangeStart",id:u}),i.add(u));r<t.length&&o.push(t[r]),r++;});for(let a of i)o.push({type:"commentRangeEnd",id:a});return o}function $(t){return t.numPrFromStyle!=null&&t.numPr!=null&&JSON.stringify(t.numPr)===JSON.stringify(t.numPrFromStyle)}function q(t){if(t._originalFormatting){let n=t._originalFormatting,o={...n};return t.alignment!==(n.alignment||void 0)&&(o.alignment=t.alignment||void 0),$(t)?(delete o.numPr,delete o.numPrFromStyle):t.numPr!==n.numPr&&JSON.stringify(t.numPr)!==JSON.stringify(n.numPr)&&(o.numPr=t.numPr||void 0,delete o.numPrFromStyle),t.styleId!==(n.styleId||void 0)&&(o.styleId=t.styleId||void 0),t.pageBreakBefore!==(n.pageBreakBefore||void 0)&&(o.pageBreakBefore=t.pageBreakBefore||void 0),t.bidi!==(n.bidi||void 0)&&(o.bidi=t.bidi||void 0),o}if(t.alignment||t.spaceBefore||t.spaceAfter||t.lineSpacing||t.indentLeft||t.indentRight||t.indentFirstLine||t.numPr||t.styleId||t.borders||t.shading||t.tabs||t.outlineLevel!=null||t.contextualSpacing||t.bidi)return {alignment:t.alignment||void 0,spaceBefore:t.spaceBefore||void 0,spaceAfter:t.spaceAfter||void 0,lineSpacing:t.lineSpacing||void 0,lineSpacingRule:t.lineSpacingRule||void 0,indentLeft:t.indentLeft||void 0,indentRight:t.indentRight||void 0,indentFirstLine:t.indentFirstLine||void 0,hangingIndent:t.hangingIndent||void 0,numPr:$(t)?void 0:t.numPr||void 0,styleId:t.styleId||void 0,borders:t.borders||void 0,shading:t.shading||void 0,tabs:t.tabs||void 0,outlineLevel:t.outlineLevel??void 0,contextualSpacing:t.contextualSpacing||void 0,bidi:t.bidi||void 0}}function K(t){let e=[],n=null,o=null,i=null;return t.forEach(r=>{let a=r.marks.find(s=>s.type.name==="footnoteRef");if(a){n&&(e.push(n),n=null,o=null),i&&(e.push(i),i=null);let f={type:a.attrs.noteType==="endnote"?"endnoteRef":"footnoteRef",id:parseInt(a.attrs.id,10)||0};e.push({type:"run",content:[f]});return}let l=r.marks.find(s=>s.type.name==="insertion"),u=r.marks.find(s=>s.type.name==="deletion");if(l||u){n&&(e.push(n),n=null,o=null),i&&(e.push(i),i=null);let s=l||u,f;if(r.type.name==="image")f=R(r);else if(r.type.name==="shape")f=S(r);else {let h=r.marks.filter(g=>g.type.name!=="insertion"&&g.type.name!=="deletion"),m=k(h);f={type:"run",content:r.isText&&r.text?[{type:"text",text:r.text}]:[],...Object.keys(m).length>0?{formatting:m}:{}};}let p={id:s.attrs.revisionId,author:s.attrs.author||"Unknown",date:s.attrs.date||void 0},y=s.attrs.isMovePair===true;l?y?e.push({type:"moveTo",info:p,content:[f]}):e.push({type:"insertion",info:p,content:[f]}):y?e.push({type:"moveFrom",info:p,content:[f]}):e.push({type:"deletion",info:p,content:[f]});return}let d=r.marks.find(s=>s.type.name==="hyperlink");if(d){let s=O(d),f=i?.href||(i?.anchor?`#${i.anchor}`:"");i&&f===s?P(i,r):(n&&(e.push(n),n=null,o=null),i&&e.push(i),i=W(d),P(i,r));return}if(i&&(e.push(i),i=null),r.isText){let s=H(r.marks);n&&o===s?j(n,r.text||""):(n&&e.push(n),n=w(r.text||"",r.marks),o=s);}else r.type.name==="hardBreak"?(n&&(e.push(n),n=null,o=null),e.push(M())):r.type.name==="image"?(n&&(e.push(n),n=null,o=null),e.push(R(r))):r.type.name==="shape"?(n&&(e.push(n),n=null,o=null),e.push(S(r))):r.type.name==="tab"?(n&&(e.push(n),n=null,o=null),e.push(v())):r.type.name==="field"?(n&&(e.push(n),n=null,o=null),e.push(z(r,r.marks))):r.type.name==="sdt"?(n&&(e.push(n),n=null,o=null),e.push(U(r))):r.type.name==="math"&&(n&&(e.push(n),n=null,o=null),e.push(_(r)));}),n&&e.push(n),i&&e.push(i),e}function U(t){let e=chunkC45EFOVP_js.b(t.attrs),o=K(t).filter(i=>i.type==="run"||i.type==="hyperlink"||i.type==="simpleField"||i.type==="complexField"||i.type==="inlineSdt"||i.type==="mathEquation");return {type:"inlineSdt",properties:e,content:o}}function X(t){for(let e of t)for(let n of e.cells){let o=n.formatting?.borders;if(o){let i=o.top||o.left||o.right||o.bottom||o.insideH||o.insideV;return i?{top:o.top??i,bottom:o.bottom??i,left:o.left??i,right:o.right??i,insideH:o.insideH??o.bottom??i,insideV:o.insideV??o.right??i}:void 0}}}function G(t){let e=[],n=[],o=0;for(let i=0;i<t.childCount;i++){let r=t.child(i),a=0;r.forEach(l=>{if(l.type.name!=="tableCell"&&l.type.name!=="tableHeader")return;for(;e[i]?.[a];)a++;let u=l.attrs.rowspan||1,d=l.attrs.colspan||1;n.push({row:i,col:a,rowspan:u,colspan:d,cell:Z(l)});for(let s=i;s<i+u;s++){let f=e[s]??[];e[s]=f;for(let p=a;p<a+d;p++)f[p]=true;}a+=d,o=Math.max(o,a);});}return {anchors:n,totalCols:o}}function I(t){let e=t.attrs,{anchors:n,totalCols:o}=G(t),i=new Map,r=new Map;for(let d of n){i.set(`${d.row}-${d.col}`,d);for(let s=d.row;s<d.row+d.rowspan;s++)for(let f=d.col;f<d.col+d.colspan;f++)r.set(`${s}-${f}`,d);}let a=[];for(let d=0;d<t.childCount;d++){let s=t.child(d),f=[];for(let h=0;h<o;){let m=i.get(`${d}-${h}`);if(m){let b={...m.cell.formatting??{}};m.colspan>1?b.gridSpan=m.colspan:delete b.gridSpan,m.rowspan>1?b.vMerge="restart":delete b.vMerge,f.push({...m.cell,formatting:Object.keys(b).length?b:void 0}),h+=m.colspan;continue}let g=r.get(`${d}-${h}`);if(!g){h++;continue}let x={...g.cell.formatting??{}};g.colspan>1?x.gridSpan=g.colspan:delete x.gridSpan,x.vMerge="continue",f.push({...g.cell,content:[],formatting:x}),h+=g.colspan;}let p=s.attrs,y={type:"tableRow",formatting:Q(p),cells:f};p.trIns?y.structuralChange={type:"tableRowInsertion",info:{id:p.trIns.revisionId,author:p.trIns.author,...p.trIns.date?{date:p.trIns.date}:{}}}:p.trDel&&(y.structuralChange={type:"tableRowDeletion",info:{id:p.trDel.revisionId,author:p.trDel.author,...p.trDel.date?{date:p.trDel.date}:{}}}),p.trPrChange&&p.trPrChange.length>0&&(y.propertyChanges=p.trPrChange),a.push(y);}let l=Y(e)||void 0;if(!l?.borders){let d=X(a);if(d)if(l)l.borders=d;else return {type:"table",columnWidths:e.columnWidths||void 0,formatting:{borders:d},rows:a}}let u={type:"table",columnWidths:e.columnWidths||void 0,formatting:l,rows:a};return e.tblPrChange&&e.tblPrChange.length>0&&(u.propertyChanges=e.tblPrChange),u}function Y(t){if(t._originalFormatting){let i=t._originalFormatting,r={...i};t.styleId!==(i.styleId||void 0)&&(r.styleId=t.styleId||void 0),t.justification!==(i.justification||void 0)&&(r.justification=t.justification||void 0),t.floating!==(i.floating||void 0)&&(r.floating=t.floating||void 0),t.tableLayout!==(i.layout||void 0)&&(r.layout=t.tableLayout||void 0),t.look!==(i.look||void 0)&&(r.look=t.look||void 0);let a=i.width?.value,l=i.width?.type;return (t.width!==a||t.widthType!==l)&&(t.width!=null||t.widthType?r.width={value:t.width??0,type:t.widthType||"dxa"}:r.width=void 0),t.cellMargins&&(r.cellMargins={top:t.cellMargins.top!=null?{value:t.cellMargins.top,type:"dxa"}:void 0,bottom:t.cellMargins.bottom!=null?{value:t.cellMargins.bottom,type:"dxa"}:void 0,left:t.cellMargins.left!=null?{value:t.cellMargins.left,type:"dxa"}:void 0,right:t.cellMargins.right!=null?{value:t.cellMargins.right,type:"dxa"}:void 0}),r}if(!(t.styleId||t.width!=null||t.widthType||t.justification||t.tableLayout||t.floating||t.cellMargins||t.look))return;let n=t.cellMargins?{top:t.cellMargins.top!=null?{value:t.cellMargins.top,type:"dxa"}:void 0,bottom:t.cellMargins.bottom!=null?{value:t.cellMargins.bottom,type:"dxa"}:void 0,left:t.cellMargins.left!=null?{value:t.cellMargins.left,type:"dxa"}:void 0,right:t.cellMargins.right!=null?{value:t.cellMargins.right,type:"dxa"}:void 0}:void 0,o;return (t.width!=null||t.widthType)&&(o={value:t.width??0,type:t.widthType||"dxa"}),{styleId:t.styleId||void 0,width:o,justification:t.justification||void 0,layout:t.tableLayout||void 0,floating:t.floating||void 0,cellMargins:n,look:t.look||void 0}}function Q(t){if(t._originalFormatting){let n=t._originalFormatting,o={...n};return t.height!==(n.height?.value||void 0)&&(o.height=t.height?{value:t.height,type:"dxa"}:void 0),t.heightRule!==(n.heightRule||void 0)&&(o.heightRule=t.heightRule||void 0),t.isHeader!==(n.header||void 0)&&(o.header=t.isHeader||void 0),o}if(t.height||t.isHeader)return {height:t.height?{value:t.height,type:"dxa"}:void 0,heightRule:t.heightRule||void 0,header:t.isHeader||void 0}}function Z(t){let e=t.attrs,n=[];t.forEach(i=>{i.type.name==="paragraph"?n.push(T(i)):i.type.name==="table"&&n.push(I(i));});let o={type:"tableCell",formatting:ee(e),content:n};if(e.cellMarker){let i=e.cellMarker,r={id:i.info.revisionId,author:i.info.author,...i.info.date?{date:i.info.date}:{}};i.kind==="ins"?o.structuralChange={type:"tableCellInsertion",info:r}:i.kind==="del"?o.structuralChange={type:"tableCellDeletion",info:r}:o.structuralChange={type:"tableCellMerge",info:r,...i.vMerge?{vMerge:i.vMerge}:{},...i.vMergeOrig?{vMergeOrig:i.vMergeOrig}:{}};}return e.tcPrChange&&e.tcPrChange.length>0&&(o.propertyChanges=e.tcPrChange),o}function ee(t){if(t._originalFormatting){let o=t._originalFormatting,i={...o};if(t.colspan>1&&(i.gridSpan=t.colspan),t.width!=null&&(i.width={value:t.width,type:t.widthType||"dxa"}),t.verticalAlign!==(o.verticalAlign||void 0)&&(i.verticalAlign=t.verticalAlign||void 0),t.backgroundColor?t._originalResolvedFill===t.backgroundColor&&o.shading?i.shading=o.shading:i.shading={fill:{rgb:t.backgroundColor}}:o.shading&&(i.shading=void 0),t.borders&&(i.borders=t.borders),t.margins){let r=t.margins,a={};r.top!=null&&(a.top={value:r.top,type:"dxa"}),r.bottom!=null&&(a.bottom={value:r.bottom,type:"dxa"}),r.left!=null&&(a.left={value:r.left,type:"dxa"}),r.right!=null&&(a.right={value:r.right,type:"dxa"}),i.margins=a;}return t.textDirection!==(o.textDirection||void 0)&&(i.textDirection=t.textDirection||void 0),i}if(!(t.colspan>1||t.rowspan>1||t.width!=null||t.verticalAlign||t.backgroundColor||t.borders||t.margins||t.textDirection))return;let n;if(t.margins){let o=t.margins;n={},o.top!=null&&(n.top={value:o.top,type:"dxa"}),o.bottom!=null&&(n.bottom={value:o.bottom,type:"dxa"}),o.left!=null&&(n.left={value:o.left,type:"dxa"}),o.right!=null&&(n.right={value:o.right,type:"dxa"});}return {gridSpan:t.colspan>1?t.colspan:void 0,width:t.width!=null?{value:t.width,type:t.widthType||"dxa"}:void 0,verticalAlign:t.verticalAlign||void 0,textDirection:t.textDirection||void 0,shading:t.backgroundColor?{fill:{rgb:t.backgroundColor}}:void 0,borders:t.borders,margins:n}}function F(t){let e=t.attrs,n=[];t.forEach(l=>{l.type.name==="paragraph"&&n.push(T(l));});let o={type:"shape",shapeType:"rect",id:e.textBoxId||void 0,size:{width:e.width?chunk4Q2IP5FW_js.f(e.width):0,height:e.height?chunk4Q2IP5FW_js.f(e.height):0},textBody:{content:n.length>0?n:[{type:"paragraph",content:[]}],margins:{top:e.marginTop!=null?chunk4Q2IP5FW_js.f(e.marginTop):void 0,bottom:e.marginBottom!=null?chunk4Q2IP5FW_js.f(e.marginBottom):void 0,left:e.marginLeft!=null?chunk4Q2IP5FW_js.f(e.marginLeft):void 0,right:e.marginRight!=null?chunk4Q2IP5FW_js.f(e.marginRight):void 0}}},i=chunkC45EFOVP_js.f(e);i&&(o.position=i);let r=chunkC45EFOVP_js.g(e);if(r&&(o.wrap=r),e.fillColor&&(o.fill={type:"solid",color:{rgb:e.fillColor.replace("#","")}}),e.outlineWidth&&e.outlineWidth>0){let l={solid:"solid",dotted:"dot",dashed:"dash"};o.outline={width:chunk4Q2IP5FW_js.f(e.outlineWidth),color:e.outlineColor?{rgb:e.outlineColor.replace("#","")}:void 0,style:e.outlineStyle&&l[e.outlineStyle]||"solid"};}return {type:"run",content:[{type:"shape",shape:o}]}}function V(t){return {type:"paragraph",content:[F(t)]}}function te(t,e){let o={content:A(t),finalSectionProperties:e?.package.document.finalSectionProperties,sections:e?.package.document.sections,comments:e?.package.document.comments},i=e?{...e,package:{...e.package,document:o}}:{package:{document:o}},r=t.attrs.watermark??null,a=chunkRQVHKDXK_js.a(i)??null;return r!==a?chunkRQVHKDXK_js.b(i,r):i}function A(t){let e=[],n=[],o=()=>{for(let i of n)e.push({type:"paragraph",content:[i]});n=[];};return t.forEach(i=>{if(i.type.name==="paragraph"){let r=T(i);n.length>0&&(r.content=[...n,...r.content],n=[]),e.push(r);}else if(i.type.name==="table")o(),e.push(I(i));else if(i.type.name==="blockSdt")o(),e.push(ne(i));else if(i.type.name==="textBox"){let r=i.attrs;chunkC45EFOVP_js.e(r)?n.push(F(i)):(o(),e.push(V(i)));}else i.type.name==="pageBreak"&&(o(),e.push(ie()));}),o(),e}function ne(t){return {type:"blockSdt",properties:chunkC45EFOVP_js.b(t.attrs),content:A(t)}}function ie(){return {type:"paragraph",content:[{type:"run",content:[{type:"break",breakType:"page"}]}]}}function we(t,e){return te(e,t)}function Me(t){return A(t)}exports.a=te;exports.b=we;exports.c=Me;