@docx-editor.dev/core 2.22.0 → 2.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/README.md +7 -6
  2. package/dist/automation.cjs +1 -1
  3. package/dist/automation.d.ts +13 -12
  4. package/dist/automation.js +1 -1
  5. package/dist/binding.cjs +1 -1
  6. package/dist/binding.d.ts +11 -10
  7. package/dist/binding.js +1 -1
  8. package/dist/{chunk-5RKCJ5DF.js → chunk-2LXGB2X7.js} +1 -1
  9. package/dist/chunk-3OMDEMLL.js +1 -0
  10. package/dist/{chunk-RLKX7BIP.cjs → chunk-6CPYOVRT.cjs} +1 -1
  11. package/dist/chunk-AKF5KM2W.cjs +4 -0
  12. package/dist/chunk-BOGQGMMU.cjs +1 -0
  13. package/dist/chunk-CVNDMQIX.cjs +26 -0
  14. package/dist/chunk-DF7F7TNU.cjs +1 -0
  15. package/dist/{chunk-IWAUA732.js → chunk-G765WG4R.js} +1 -1
  16. package/dist/{chunk-X2LJDR53.cjs → chunk-IEXYOLNR.cjs} +5 -5
  17. package/dist/chunk-J3EM5ZEA.js +18 -0
  18. package/dist/{chunk-P5PWSRNW.cjs → chunk-JDAAGZNE.cjs} +1 -1
  19. package/dist/chunk-JNE6QF47.js +26 -0
  20. package/dist/chunk-JQTVFP72.cjs +2 -0
  21. package/dist/chunk-JXL25DRU.js +11 -0
  22. package/dist/chunk-KPSGB64S.js +1 -0
  23. package/dist/chunk-P4SBMHHO.cjs +5 -0
  24. package/dist/chunk-QQAF64KN.js +5 -0
  25. package/dist/chunk-SI5FLZGU.js +4 -0
  26. package/dist/chunk-SOUJNWXV.js +1 -0
  27. package/dist/chunk-T4TKRNZT.cjs +11 -0
  28. package/dist/chunk-TBFZZX7Z.cjs +1 -0
  29. package/dist/chunk-VPKKYCZI.cjs +2 -0
  30. package/dist/chunk-W3ZUPQIZ.cjs +18 -0
  31. package/dist/chunk-XMWH2R23.js +5 -0
  32. package/dist/chunk-XWXJB4J7.js +1 -0
  33. package/dist/chunk-YIBEBHT3.js +2 -0
  34. package/dist/chunk-ZSM6X52G.cjs +1 -0
  35. package/dist/chunk-ZXAGLAY2.js +2 -0
  36. package/dist/collaboration/replication.cjs +1 -1
  37. package/dist/collaboration/replication.d.ts +6 -5
  38. package/dist/collaboration/replication.js +1 -1
  39. package/dist/collaboration.d.ts +7 -6
  40. package/dist/contracts/document.d.ts +4 -3
  41. package/dist/contracts/editor.d.ts +9 -9
  42. package/dist/contracts/interaction.d.ts +2 -1
  43. package/dist/contracts/modules.d.ts +9 -8
  44. package/dist/contracts/types.d.ts +1 -1
  45. package/dist/{custom-node-writes-Ck6eOiJ3.d.ts → custom-node-writes-77rvPW2-.d.ts} +4 -3
  46. package/dist/{document-protection-CMPEonQc.d.ts → document-protection-CYIjO-li.d.ts} +3 -2
  47. package/dist/{editor-BKDVqXyk.d.ts → editor-BU6rjQZz.d.ts} +134 -26
  48. package/dist/editor.cjs +1 -1
  49. package/dist/editor.css +1 -1
  50. package/dist/editor.d.ts +57 -66
  51. package/dist/editor.js +1 -1
  52. package/dist/export.cjs +2 -2
  53. package/dist/export.d.ts +17 -16
  54. package/dist/export.js +2 -2
  55. package/dist/{failure-DNNmwsgD.d.ts → failure-BIPVQbRm.d.ts} +2 -1
  56. package/dist/{font-resolver-PBc8Vuxs.d.ts → font-resolver-CPO7wtg6.d.ts} +3 -2
  57. package/dist/{headless-document-view-9wjJT20Y.d.ts → headless-document-view-Cc3fFWhv.d.ts} +4 -3
  58. package/dist/{image-resources-B0v-XaTM.d.ts → image-resources-DkuzBnTM.d.ts} +3 -2
  59. package/dist/{index-DQA53aR1.d.ts → index-BOkQYOsZ.d.ts} +75 -36
  60. package/dist/index.cjs +1 -1
  61. package/dist/index.d.ts +18 -18
  62. package/dist/index.js +1 -1
  63. package/dist/{layout-shaping-Dyr0ZSOI.d.ts → layout-shaping-BOOxnLxF.d.ts} +3 -2
  64. package/dist/layout.cjs +1 -1
  65. package/dist/layout.d.ts +164 -83
  66. package/dist/layout.js +1 -1
  67. package/dist/{note-properties-D_lmG9xx.d.ts → note-properties-DMfKK3QU.d.ts} +3 -2
  68. package/dist/{omml-equation-CfTm3jOK.d.ts → omml-equation-BY7OdfGY.d.ts} +3 -2
  69. package/dist/output.cjs +1 -1
  70. package/dist/output.d.ts +9 -8
  71. package/dist/output.js +1 -1
  72. package/dist/{protocol-CkVDxyQ3.d.ts → protocol-CPAakntQ.d.ts} +4 -3
  73. package/dist/{review-paragraph-order-BjUs-tDd.d.ts → review-paragraph-order-B0BP_wJP.d.ts} +1 -1
  74. package/dist/{revision-projection-DDVBYTIG.d.ts → revision-projection-CVJeA2jp.d.ts} +3 -2
  75. package/dist/{semantic-cell-selection-DW6qsmoC.d.ts → semantic-cell-selection-BtO2s2Za.d.ts} +10 -6
  76. package/dist/{semantic-interaction-BNiYSBcB.d.ts → semantic-interaction-COMnWyBQ.d.ts} +3 -2
  77. package/dist/{semantic-paint-DE236npp.d.ts → semantic-paint-C032N0ps.d.ts} +4 -3
  78. package/dist/{semantic-records-C5OeXnaL.d.ts → semantic-records-BSjo-xck.d.ts} +889 -779
  79. package/dist/store.cjs +1 -1
  80. package/dist/store.d.ts +17 -17
  81. package/dist/store.js +1 -1
  82. package/dist/{tree-package-fragment-DBb97w3F.d.ts → tree-package-fragment-BIyGh6L8.d.ts} +4 -3
  83. package/dist/{tree-session-contract-BYat3RKx.d.ts → tree-session-contract-CHcCnz3W.d.ts} +7 -6
  84. package/dist/{types-barrel-ChGvWjkO.d.ts → types-barrel-DN_-gaRX.d.ts} +70 -5
  85. package/package.json +3 -3
  86. package/dist/chunk-65GJRSZ5.cjs +0 -18
  87. package/dist/chunk-6TBRG6SA.cjs +0 -20
  88. package/dist/chunk-A72MJGY7.cjs +0 -4
  89. package/dist/chunk-AZ7QSAXH.js +0 -4
  90. package/dist/chunk-BL57VQ7E.js +0 -1
  91. package/dist/chunk-CB6RQ3GD.cjs +0 -11
  92. package/dist/chunk-FGBADUSK.cjs +0 -1
  93. package/dist/chunk-GG4IAKFI.js +0 -5
  94. package/dist/chunk-HJYLFMLX.js +0 -2
  95. package/dist/chunk-HL6NO7IH.cjs +0 -2
  96. package/dist/chunk-HZQFGB2X.cjs +0 -5
  97. package/dist/chunk-OZXBAEWW.js +0 -2
  98. package/dist/chunk-PD5XKBJA.js +0 -1
  99. package/dist/chunk-REMFTPDL.cjs +0 -2
  100. package/dist/chunk-UGLO2GA5.cjs +0 -1
  101. package/dist/chunk-UOQONZVQ.js +0 -11
  102. package/dist/chunk-VD2MWTR6.js +0 -20
  103. package/dist/chunk-VIXH2OVP.js +0 -1
  104. package/dist/chunk-VP7SDFCM.js +0 -1
  105. package/dist/chunk-W2JIZ5JH.js +0 -18
  106. package/dist/chunk-W5H62AWM.cjs +0 -1
  107. package/dist/chunk-YQXY6TQ3.js +0 -5
  108. package/dist/chunk-YYFBYVW4.cjs +0 -1
@@ -1,18 +0,0 @@
1
- 'use strict';var chunkFGBADUSK_cjs=require('./chunk-FGBADUSK.cjs'),chunkHZQFGB2X_cjs=require('./chunk-HZQFGB2X.cjs'),chunkCB6RQ3GD_cjs=require('./chunk-CB6RQ3GD.cjs'),cC=require('bidi-js');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var cC__default=/*#__PURE__*/_interopDefault(cC);var wO=new Map([[167,"\u2663"],[168,"\u2666"],[169,"\u2665"],[170,"\u2660"],[174,"\u2192"],[176,"\xB0"],[180,"\xD7"],[183,"\u2022"],[222,"\u21D2"]]),Zy=new Map([[108,"\u25CF"],[110,"\u25A0"],[111,"\u25A1"],[167,"\u25AA"],[216,"\u27A2"],[252,"\u2714"],[253,"\u2718"]]),Jy=new Map([[167,"\u25AA"],[183,"\u2022"]]),Qf=new Map([["symbol",wO],["wingdings",Zy],["wingdings 2",Jy],["wingdings 3",Jy],["webdings",Zy]]),kO=64,Qy=Object.freeze([...Qf.keys()]);function na(e){return !e||e.length>kO?false:Qf.has(e.toLowerCase())}function eb(e){for(let t of e){let n=t.codePointAt(0);if(n>=61440&&n<=61695)return true}return false}function ui(e,t,n){if(e.length===0||!na(t))return e;let r=Qf.get(t.toLowerCase());if(n?.(t)===true)return e;let o="",a=false;for(let i of e){let l=i.codePointAt(0);if(l>=61440&&l<=61695){let s=r.get(l-61440);if(s!==void 0){o+=s,a=true;continue}}o+=i;}return a?o:e}var vO=/^[0-9A-Fa-f]{6}$/;function em(e){if(!(e===void 0||e==="auto"||e==="nil")&&vO.test(e))return e.toUpperCase()}function $d(e){if(e&&e.val!=="nil")return em(e.fill)}function tb(e){if(!e||e.localName!=="shd")return;let t={};for(let n of e.attributes)t[n.localName]=n.value;return $d(t)}function nb(e){let t;for(let n of e)n.localName==="shd"&&(t=$d(n.attributes));return t}function Kd(e,t,n){if(e.length===0)return;let r=e[0].box.y,o=e[e.length-1].box;return {x:t,y:r,width:n,height:Math.max(o.y+o.height-r,0)}}var Ud=.25,Xd=.25;function fi(e){let t=Math.max(e,.25),n=Math.max(e,.25),r=t*2+n;return {strokePt:t,gapPt:n,extentPt:r,insetPt:(e-r)/2}}var TO=new Set(["double","triple","thinThickSmallGap","thickThinSmallGap","thinThickThinSmallGap","thinThickMediumGap","thickThinMediumGap","thinThickThinMediumGap","thinThickLargeGap","thickThinLargeGap","thinThickThinLargeGap","doubleWave"]);function IO(e){return TO.has(e)}function ra(e,t){return IO(e)?fi(t).extentPt:t}var OO=new Set(["single","thick","double","dotted","dashed","dotDash","dotDotDash","triple","thinThickSmallGap","thickThinSmallGap","thinThickThinSmallGap","thinThickMediumGap","thickThinMediumGap","thinThickThinMediumGap","thinThickLargeGap","thickThinLargeGap","thinThickThinLargeGap","wave","doubleWave","dashSmallGap","dashDotStroked","threeDEmboss","threeDEngrave","outset","inset"]);function rb(e){return OO.has(e)}function Gl(e){let t=false;for(let n of e){if(n.localName!=="pageBreakBefore")continue;let r=n.attributes?.val;t=r===void 0||pi(r);}return t}var tm=31680/20,Yd=12,FO=3168,CO=14,zl=Object.freeze({rule:"auto",value:240}),MO=132,BO=1584,LO=["top","left","bottom","right","between","bar"],EO=Object.freeze({}),NO=/^[0-9A-Fa-f]{6}$/,AO=new Set(["nil","none"]);function mi(e,t=false){return e===void 0||!(t?/^-?\d{1,9}$/:/^\d{1,9}$/).test(e)?null:Number(e)}function Vl(e,t){return !Number.isFinite(e)||e<=0?0:e>t?t:e}function ob(e){let t=mi(e,true);return t===null?0:Vl(chunkCB6RQ3GD_cjs.hf(chunkCB6RQ3GD_cjs.ff(t)),tm)}function pi(e){return e!=="0"&&e!=="false"&&e!=="off"}function DO(e){return e===void 0||e==="auto"?null:NO.test(e)?e.toUpperCase():null}function nr(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function M1(e,t){let n=null;for(let r of e)r.localName===t&&(n={...n??{},...r.attributes??{}});return n}function ab(e){let t=false,n=false;for(let r of e){if(r.localName!=="spacing")continue;let o=r.attributes?.beforeAutospacing,a=r.attributes?.afterAutospacing;o!==void 0&&(t=pi(o)),a!==void 0&&(n=pi(a));}return {before:t,after:n}}function $l(e,t){let n=0,r=0,o=null,a=null,i=false,l=false;for(let s of e){if(s.localName!=="spacing")continue;let d=s.attributes?.before,c=s.attributes?.after;d!==void 0&&(n=ob(d)),c!==void 0&&(r=ob(c)),s.attributes?.beforeLines!==void 0&&(o=mi(s.attributes.beforeLines,true)),s.attributes?.afterLines!==void 0&&(a=mi(s.attributes.afterLines,true));let u=s.attributes?.beforeAutospacing,f=s.attributes?.afterAutospacing;u!==void 0&&(i=pi(u)),f!==void 0&&(l=pi(f));}if(o!==null&&(n=Vl(o*(t?.lineUnitPt??12)/100,tm)),a!==null&&(r=Vl(a*(t?.lineUnitPt??12)/100,tm)),i||l){let s=t?.inList?0:CO;i&&(n=s),l&&(r=s);}return {before:n,after:r}}function ib(e){let t,n;for(let a of e){if(a.localName!=="spacing")continue;let i=a.attributes?.lineRule;(i==="auto"||i==="exact"||i==="atLeast")&&(t=i);let l=a.attributes?.line;if(l!==void 0){let s=mi(l,true);s!==null&&(n=s);}}if(n===void 0)return zl;let r=t??"auto";if(r==="auto"){let a=n/240;return a>0?{rule:"auto",value:Math.min(a,MO)*240}:zl}let o=n/20;return o>0?{rule:r,value:Math.min(o,BO)}:zl}function rr(e,t,n){let r=e.rule==="auto"?t*(e.value/240):e.rule==="exact"?e.value:Math.max(t,e.value);if(e.rule==="exact")return {height:r,baseline:e.preserveExactBaseline?Math.max(0,Math.min(n,r)):r*.8};let o=r-t;return o<0?{height:r,baseline:Math.max(0,Math.min(n,r))}:e.rule==="atLeast"?{height:r,baseline:n+o}:{height:r,baseline:n}}function lb(e){let t=false;for(let n of e){if(n.localName!=="contextualSpacing")continue;let r=n.attributes?.val;t=r===void 0||pi(r);}return t}function uo(e){if(e)return nm(Object.fromEntries(e.attributes.map(t=>[t.localName,t.value])))}function nm(e){let t=e?.val;if(!t||AO.has(t))return;let n=mi(e?.sz),r=n===null?.5:Vl(n/8,Yd)||.5,o=mi(e?.space),a=o===null?0:Vl(o,FO),i=e?.shadow,l=i!==void 0&&i!=="0"&&i!=="false"&&i!=="off";return {val:t,color:DO(e?.color),widthPt:r,spacePt:a,...l?{shadow:true}:{}}}function sb(e){let t=uo(nr(e,"top")),n=uo(nr(e,"left")??nr(e,"start")),r=uo(nr(e,"bottom")),o=uo(nr(e,"right")??nr(e,"end")),a=uo(nr(e,"between")),i=uo(nr(e,"bar"));return {...t?{top:t}:{},...n?{left:n}:{},...r?{bottom:r}:{},...o?{right:o}:{},...a?{between:a}:{},...i?{bar:i}:{}}}function qd(e){if(!e||e.kind==="textValue")return {};let t=nr(e,"pBdr");return t?sb(t):{}}function db(e){let t=EO;for(let n of e){if(!n||n.kind==="textValue")continue;let r=nr(n,"pBdr");r&&(t=sb(r));}return t}function xn(e){return ra(e.val,e.widthPt)}function fo(e){return e?e.spacePt+xn(e):0}function B1(e){return fo(e)}function cb(e){let t=[];for(let n of LO){let r=e[n];r&&t.push(`${n}:${r.val},${r.color??"auto"},${r.widthPt},${r.spacePt},${r.shadow?1:0}`);}return t.join("|")}function gi(e,t){return Math.max(e,t)-t}function rm(e,t,n,r){return n&&!r?0:gi(e,t)}var oa="http://schemas.microsoft.com/office/word/2010/wordml",ub=/^[0-9a-f]{6}$/i;function fb(e){if(e.namespaceUri!==oa||e.localName!=="textOutline")return null;let t={localName:"textOutline"},n={};for(let l of e.attributes){if(l.namespaceUri!==oa||!["w","cap","cmpd","algn"].includes(l.localName))return t;n[l.localName]=l.value;}if(n.cmpd!==void 0&&n.cmpd!=="sng"||n.algn!==void 0&&n.algn!=="ctr"||n.cap!==void 0&&!["flat","rnd","sq"].includes(n.cap)||!/^\d{1,8}$/.test(n.w??"")||Number(n.w)>20116800)return t;let r,o=false,a=false,i=false;if(e.children.length>7)return t;for(let l of e.children){if(l.kind==="textValue"){if(l.value.trim())return t;continue}if(l.namespaceUri!==oa)return t;if(l.localName==="solidFill"&&!o&&l.attributes.length===0){if(o=true,l.children.length>3||l.children.some(u=>u.kind==="textValue"&&u.value.trim()))return t;let s=l.children.filter(u=>u.kind!=="textValue");if(s.length!==1)return t;let d=s[0];if(d.namespaceUri!==oa||d.localName!=="srgbClr"||d.children.length!==0||d.attributes.length!==1)return t;let c=d.attributes[0];if(c.namespaceUri!==oa||c.localName!=="val"||!ub.test(c.value))return t;r=c.value.toUpperCase();}else if(l.localName==="prstDash"&&!a){a=true;let s=l.attributes[0];if(l.children.length||l.attributes.length!==1||s?.namespaceUri!==oa||s.localName!=="val"||s.value!=="solid")return t}else if(["round","bevel","miter"].includes(l.localName)&&!i){if(i=true,l.children.length)return t;if(l.localName==="miter"){if(l.attributes.length>1)return t;let s=l.attributes[0];if(s&&(s.namespaceUri!==oa||s.localName!=="lim"||!/^\d{1,8}$/.test(s.value)))return t}else if(l.attributes.length)return t}else return t}return r&&Number(n.w)>0?{localName:"textOutline",attributes:{w:n.w,outlineColor:r}}:t}function mb(e){let t=e.attributes?.w,n=e.attributes?.outlineColor;if(!t||!/^\d{1,8}$/.test(t)||!n||!ub.test(n))return;let r=Number(t);return r>0&&r<=20116800?Object.freeze({widthPt:r/12700,color:n.toUpperCase()}):void 0}var _O=new Set(["b","bCs","caps","emboss","i","iCs","imprint","outline","shadow","smallCaps","strike","vanish"]);function or(e){let t=e.attributes?.val;return t===void 0||!(t==="0"||t==="false"||t==="off")}var pb=new WeakMap;function hi(e){let t=[],n;for(let r of e){let o=r.role==="carried"?pb.get(r.properties):void 0,a;for(let i of r.properties){if(!_O.has(i.localName)){r.emit&&t.push(i);continue}o||(a||(a=new Map),a.set(i.localName,or(i)));}if(o){if(o.size>0){n||(n=new Map);for(let[i,l]of o)n.set(i,l);}continue}if(a){n||(n=new Map);for(let[i,l]of a){let s=n.get(i);r.role==="direct"?n.set(i,{value:l,forced:false}):l?r.role==="defaults"?n.set(i,{value:true,forced:true}):n.set(i,{value:s?.forced===true?true:!(s?.value??false),forced:s?.forced===true}):n.set(i,{value:false,forced:false});}}}if(!n)return t;for(let[r,o]of n)t.push(o.value?{localName:r}:{localName:r,attributes:{val:"0"}});return pb.set(t,n),t}var jO="http://schemas.microsoft.com/office/word";function yi(e){if(!e||e.namespaceUri!==chunkCB6RQ3GD_cjs.da||e.localName!=="settings")return;let t,n=false;for(let r of e.children)if(!(r.kind==="textValue"||r.namespaceUri!==chunkCB6RQ3GD_cjs.da||r.localName!=="compat"))for(let o of r.children){if(o.kind==="textValue"||o.namespaceUri!==chunkCB6RQ3GD_cjs.da||o.localName!=="compatSetting")continue;let a=s=>o.attributes.find(d=>d.namespaceUri===chunkCB6RQ3GD_cjs.da&&d.localName===s)?.value;if(a("name")!=="compatibilityMode"||a("uri")!==jO)continue;if(n)return;n=true;let i=a("val"),l=i!==void 0&&/^\d{1,4}$/.test(i)?Number(i):void 0;t=l!==void 0&&l>=11?l:void 0;}return t}function bi(e){return e!==void 0&&e>=15}var gb="http://schemas.microsoft.com/office/word/2010/wordml",HO="http://schemas.microsoft.com/office/word",WO=new Set(["none","standard","contextual","historical","discretional","standardContextual","standardHistorical","contextualHistorical","standardDiscretional","contextualDiscretional","historicalDiscretional","standardContextualHistorical","standardContextualDiscretional","standardHistoricalDiscretional","contextualHistoricalDiscretional","all"]);function hb(e){if(!(e.namespaceUri!==gb||e.localName!=="ligatures"))return e.attributes.find(t=>t.namespaceUri===gb&&t.localName==="val")?.value}function yb(e){if(!e||!WO.has(e))return;let t=e.toLowerCase();return {standard:e==="all"||t.includes("standard"),contextual:e==="all"||t.includes("contextual"),historical:e==="all"||t.includes("historical"),discretionary:e==="all"||t.includes("discretional")}}function W1(e){return {liga:e.ligatures?.standard?1:0,clig:e.ligatures?.contextual?1:0,hlig:e.ligatures?.historical?1:0,dlig:e.ligatures?.discretionary?1:0}}function z1(e){return `${e.ligatures?.standard?1:0}${e.ligatures?.contextual?1:0}${e.ligatures?.historical?1:0}${e.ligatures?.discretionary?1:0}`}function bb(e){if(!e||e.namespaceUri!==chunkCB6RQ3GD_cjs.da||e.localName!=="settings")return false;let t=yi(e),n=t!==void 0&&t>=15,r=false;for(let o of e?.children??[])if(!(o.kind==="textValue"||o.namespaceUri!==chunkCB6RQ3GD_cjs.da||o.localName!=="compat"))for(let a of o.children){if(a.kind==="textValue"||a.namespaceUri!==chunkCB6RQ3GD_cjs.da||a.localName!=="compatSetting")continue;let i=l=>a.attributes.find(s=>s.namespaceUri===chunkCB6RQ3GD_cjs.da&&s.localName===l)?.value;if(!(i("name")!=="enableOpenTypeFeatures"||i("uri")!==HO)){if(r)return false;r=true,n=["1","true","on"].includes(i("val")??"");}}return n}var zO=Object.freeze([Object.freeze({localName:"ligatures",attributes:Object.freeze({val:"none"})})]);function Zd(e,t){return !t||!e.some(n=>n.localName==="ligatures"&&n.attributes?.val!=="none")?e:hi([{properties:e,role:"carried",emit:true},{properties:zO,role:"direct",emit:true}])}var Sn=Object.freeze({fontFamily:null,fontFamilyEastAsia:null,fontSizePt:10,color:null,bold:false,italic:false,underline:null,strike:false,doubleStrike:false,highlight:null,shading:null,verticalAlign:"baseline",baselineShiftPt:0,caps:false,smallCaps:false,characterSpacingPt:0,horizontalScalePercent:100,kerningMinPt:0,hidden:false}),VO=/^[0-9A-Fa-f]{6}$/;function Kl(e,t=false){return e===void 0||!(t?/^-?\d{1,7}$/:/^\d{1,7}$/).test(e)?null:Number(e)}function xb(e){return e===void 0||e==="auto"?null:VO.test(e)?e.toUpperCase():null}var Pb={major:null,minor:null,majorEastAsia:null,minorEastAsia:null};function Ne(e,t){let n={...Sn},r,o=false;for(let a of e)a.localName==="lang"&&a.attributes?.eastAsia!==void 0&&(r=a.attributes.eastAsia);for(let a of e)switch(a.localName){case "rFonts":{let i=a.attributes;o||=["ascii","hAnsi","asciiTheme","hAnsiTheme"].some(u=>!!i?.[u]);let s=(t?chunkHZQFGB2X_cjs.b(i?.asciiTheme,t,r)??chunkHZQFGB2X_cjs.b(i?.hAnsiTheme,t,r):null)??i?.ascii??i?.hAnsi;s&&s.length<=128&&(n.fontFamily=s);let c=(t?chunkHZQFGB2X_cjs.b(i?.eastAsiaTheme,t,r):null)??i?.eastAsia;c&&c.length<=128&&(n.fontFamilyEastAsia=c);break}case "sz":{let i=Kl(a.attributes?.val);i!==null&&i>0&&(n.fontSizePt=i/2);break}case "color":{n.color=xb(a.attributes?.val);break}case "b":n.bold=or(a);break;case "textOutline":n.textOutline=mb(a);break;case "bdr":n.border=nm(a.attributes);break;case "i":n.italic=or(a);break;case "u":{let i=a.attributes?.val??"single";n.underline=i==="none"||!or(a)?null:{variant:i,color:xb(a.attributes?.color)};break}case "strike":n.strike=or(a);break;case "dstrike":n.doubleStrike=or(a);break;case "highlight":{let i=a.attributes?.val;n.highlight=i&&i!=="none"?i:null;break}case "shd":{n.shading=$d(a.attributes)??null;break}case "vertAlign":{let i=a.attributes?.val;i==="superscript"||i==="subscript"?n.verticalAlign=i:i==="baseline"&&(n.verticalAlign="baseline");break}case "position":{let i=Kl(a.attributes?.val,true);i!==null&&(n.baselineShiftPt=i/2);break}case "caps":n.caps=or(a);break;case "smallCaps":n.smallCaps=or(a);break;case "spacing":{let i=Kl(a.attributes?.val,true);i!==null&&(n.characterSpacingPt=i/20);break}case "w":{let i=Kl(a.attributes?.val);i!==null&&i>0&&(n.horizontalScalePercent=i);break}case "kern":{let i=Kl(a.attributes?.val);i!==null&&i>=0&&(n.kerningMinPt=i/2,n.kerningEnabled=i>0);break}case "ligatures":{let i=yb(a.attributes?.val);i&&(n.ligatures=i);break}case "vanish":n.hidden=or(a);break;}return o||(n.fontFamily??=t?.minor??null),n.fontFamilyEastAsia??=t?.minorEastAsia??chunkHZQFGB2X_cjs.c(r),n}var Sb=new WeakMap;function Jd(e,t){if(e.fontFamily===t)return e;let n=Sb.get(e);n||(n=new Map,Sb.set(e,n));let r=n.get(t);return r||(r=Object.freeze({...e,fontFamily:t}),n.set(t,r)),r}function zt(e,t){return t.caps?e.toUpperCase():e}function Ze(e,t,n){return n.measure(zt(e,t),t)}function Rb(e,t){return e.shaping?.script===t.shaping?.script&&e.shaping?.direction===t.shaping?.direction&&e.shaping?.level===t.shaping?.level&&e.shaping?.baseLevel===t.shaping?.baseLevel&&e.shaping?.runDirection===t.shaping?.runDirection&&e.shaping?.wordSpacingPt===t.shaping?.wordSpacingPt&&e.fontFamily===t.fontFamily&&e.fontFamilyEastAsia===t.fontFamilyEastAsia&&e.fontSizePt===t.fontSizePt&&e.color===t.color&&e.textOutline?.widthPt===t.textOutline?.widthPt&&e.textOutline?.color===t.textOutline?.color&&e.border?.val===t.border?.val&&e.border?.color===t.border?.color&&e.border?.widthPt===t.border?.widthPt&&e.border?.spacePt===t.border?.spacePt&&e.border?.shadow===t.border?.shadow&&e.bold===t.bold&&e.italic===t.italic&&e.strike===t.strike&&e.doubleStrike===t.doubleStrike&&e.highlight===t.highlight&&e.shading===t.shading&&e.verticalAlign===t.verticalAlign&&e.baselineShiftPt===t.baselineShiftPt&&e.caps===t.caps&&e.smallCaps===t.smallCaps&&e.characterSpacingPt===t.characterSpacingPt&&e.horizontalScalePercent===t.horizontalScalePercent&&e.kerningMinPt===t.kerningMinPt&&e.kerningEnabled===t.kerningEnabled&&e.ligatures?.standard===t.ligatures?.standard&&e.ligatures?.contextual===t.ligatures?.contextual&&e.ligatures?.historical===t.ligatures?.historical&&e.ligatures?.discretionary===t.ligatures?.discretionary&&e.hidden===t.hidden&&e.underline?.variant===t.underline?.variant&&e.underline?.color===t.underline?.color}function xi(e){return e.verticalAlign==="superscript"?e.baselineShiftPt+e.fontSizePt*.33:e.verticalAlign==="subscript"?e.baselineShiftPt-e.fontSizePt*.16:e.baselineShiftPt}function om(e){return e.verticalAlign==="baseline"?1:.65}var wb=6,kb=14,J1=`fixed:char-width=${wb}:line-height=${kb}`;function GO(e=wb,t=kb){let n=r=>r.fontSizePt/11;return {measure:(r,o)=>r.length*e*n(o)*om(o)*(o.horizontalScalePercent/100)+r.length*o.characterSpacingPt,lineMetrics:r=>{let o=om(r),a=t*n(r)*o;return {height:a,baseline:a*.8}}}}var e_="und";function t_(){return typeof Intl.Segmenter=="function"}function $O(){let e=Intl.Segmenter;if(typeof e!="function")throw new Error("Intl.Segmenter is required for deterministic grapheme segmentation (locale: und)");return e}function KO(){let e=new($O())("und",{granularity:"grapheme"});return {segment(t){let n=[],r=0;for(let o of e.segment(t)){let a=o.index,i=a+o.segment.length;n.push({index:r,text:o.segment,utf16From:a,utf16To:i}),r+=1;}return n}}}var vb=KO(),lm=vb,Tb=0;function tc(){return Tb}var Si=null,aa=null,Qd=null,Ul=null;function et(e){if(Si===e&&aa)return aa;if(Qd===e&&Ul){let n=Ul;return Qd=Si,Ul=aa,Si=e,aa=n,n}let t=lm.segment(e);return Qd=Si,Ul=aa,Si=e,aa=t,t}function n_(e){lm=e,Ib();}function r_(){lm=vb,Ib();}function Ib(){Tb+=1,Si=null,aa=null,Qd=null,Ul=null,am=null,ec=null,im=0;}function o_(e){return et(e).length}var am=null,ec=null,im=0;function UO(e){if(am===e&&ec)return {offsets:ec,count:im};let t=et(e),n=new Int32Array(e.length+1);for(let r of t)for(let o=r.utf16From;o<r.utf16To&&o<e.length;o+=1)n[o]=r.index;return n[e.length]=t.length,am=e,ec=n,im=t.length,{offsets:n,count:t.length}}function a_(e,t){let n=Math.max(0,Math.min(t,e.length)),{offsets:r}=UO(e);return r[n]}function i_(e,t){let n=et(e);if(n.length===0)return 0;let r=Math.max(0,Math.min(t,n.length));return r>=n.length?e.length:n[r].utf16From}function Ob(e){let t,n=false,r=false;for(let o of e)if(o.localName==="rFonts"&&o.attributes?.hint!==void 0)t=o.attributes.hint;else if(o.localName==="cs"||o.localName==="rtl"){let a=!["0","false","off"].includes(o.attributes?.val??"1");o.localName==="cs"?n=a:r=a;}return t==="eastAsia"&&!n&&!r}function Fb(e,t,n){if(t?.toLowerCase()!=="times new roman")return false;let r,o,a=(i,l)=>((n?chunkHZQFGB2X_cjs.b(i,n):null)??l)?.toLowerCase()??null;for(let i of e){if(i.localName!=="rFonts")continue;let l=i.attributes;(l?.asciiTheme!==void 0||l?.ascii!==void 0)&&(r=a(l.asciiTheme,l.ascii)),(l?.hAnsiTheme!==void 0||l?.hAnsi!==void 0)&&(o=a(l.hAnsiTheme,l.hAnsi));}return r==null||o==null?true:r===o}function sm(e){return e===161||e===164||e>=167&&e<=168||e===170||e===173||e===175||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===215||e===247||e>=688&&e<=767||e>=880&&e<=975||e>=1024&&e<=1279||e>=8192&&e<=8202||e>=8208&&e<=8231||e>=8240&&e<=8287||e>=8304&&e<=8399||e>=8448&&e<=10175||e>=64256&&e<=64284}var ge=(e,t,n)=>e>=t&&e<=n,nc=class extends Error{name="UnsupportedScriptError";code="unsupportedScript";codePoint;constructor(t){super(`Unsupported Unicode script at U+${t.toString(16).toUpperCase()}`),this.codePoint=t;}},Bb=e=>{if(ge(e,65313,65338)||ge(e,65345,65370))return {slot:"hAnsi",script:"Latn"};if(ge(e,1424,1535)||ge(e,64285,64335))return {slot:"cs",script:"Hebr"};if(ge(e,1536,1791)||ge(e,1872,1919)||ge(e,2160,2207)||ge(e,2208,2303)||ge(e,64336,65023)||ge(e,65136,65279)||ge(e,126464,126719))return {slot:"cs",script:"Arab"};if(ge(e,4352,4607)||ge(e,11904,12351)||ge(e,12352,12543)||ge(e,12544,12687)||ge(e,12784,12799)||ge(e,13312,19903)||ge(e,19968,40959)||ge(e,44032,55215)||ge(e,63744,64255)||ge(e,65382,65437)||ge(e,65440,65500)||ge(e,131072,201551))return {slot:"eastAsia",script:"Hani"};if(ge(e,2304,2431)||ge(e,43232,43263))return {slot:"cs",script:"Deva"};if(ge(e,2432,2559))return {slot:"cs",script:"Beng"};if(ge(e,880,1023)||ge(e,7936,8191))return {slot:"hAnsi",script:"Grek"};if(ge(e,1024,1327)||ge(e,7296,7311)||ge(e,11744,11775)||ge(e,42560,42655))return {slot:"hAnsi",script:"Cyrl"};if(ge(e,3584,3711))return {slot:"cs",script:"Thai"};if(ge(e,6016,6143)||ge(e,6624,6655))return {slot:"cs",script:"Khmr"};if(ge(e,768,879)||ge(e,6832,6911)||ge(e,7616,7679)||ge(e,8400,8447)||ge(e,8192,8303)||ge(e,65056,65071)||e<=47||ge(e,58,64)||ge(e,91,96)||ge(e,123,191)||e===5760||ge(e,8192,11263)||ge(e,65024,65039)||ge(e,65280,65381)||ge(e,65438,65439)||ge(e,65501,65535)||ge(e,126976,129791)||ge(e,917760,917999))return null;if(e<=127)return {slot:"ascii",script:"Latn"};if(ge(e,192,687)||ge(e,7424,7551)||ge(e,7552,7615)||ge(e,7680,7935)||ge(e,11360,11391)||ge(e,42784,43007)||ge(e,43824,43887))return {slot:"hAnsi",script:"Latn"};throw new nc(e)};function XO(e){let t=[];for(let r=0;r<e.length;){let o=e.codePointAt(r),a=r+(o>65535?2:1);t.push({from:r,to:a,classified:Bb(o)}),r=a;}let n=null;for(let r of t)r.classified?n=r.classified:n&&(r.classified=n);n=null;for(let r=t.length-1;r>=0;r-=1){let o=t[r];o.classified?n=o.classified:n&&(o.classified=n);}return t}function Lb(e,t,n){let r=XO(e),o=[],a=r.every(({from:i})=>e.codePointAt(i)<=127)?"ascii":"hAnsi";for(let i of r){let l=n.levels[t+i.from]??0,s=(l&1)===1?"rtl":"ltr",d=i.classified??{slot:a,script:"Zyyy"},c=o.at(-1);c&&c.to===i.from&&c.bidiLevel===l&&c.slot===d.slot&&c.script===d.script?o[o.length-1]={...c,to:i.to}:o.push({from:i.from,to:i.to,direction:s,bidiLevel:l,script:d.script,slot:d.slot});}return o}function Ae(e,t){if(t!=="eastAsia")return e;let n=e.fontFamilyEastAsia;return n===null?e:Jd(e,n)}var Cb=e=>{let t;try{t=Bb(e);}catch(n){if(n instanceof nc)return "base";throw n}return t===null?"common":t.slot==="eastAsia"?"eastAsia":"base"},Mb=e=>{for(let t=0;t<e.length;t+=1)if(e.charCodeAt(t)>=128)return false;return true};function Eb(e,t=[]){let n=[],r=(m,p,g)=>{let h=n.at(-1);h&&h.segment===m&&h.to===p?n[n.length-1]={segment:m,from:h.from,to:g}:n.push({segment:m,from:p,to:g});},o=null,i=e.some((m,p)=>{if(!t[p]||Mb(m))return false;for(let g of m)if(sm(g.codePointAt(0)))return true;return false})?et(e.join("")):null,l=0,s=0,d=false,c=[],u=m=>{for(let p of c)m==="eastAsia"&&!p.ascii&&r(p.segment,p.from,p.to);c.length=0;};for(let m=0;m<e.length;m+=1){let p=e[m],g=s;if(s+=p.length,!i&&Mb(p)){/[0-9A-Za-z]/.test(p)&&(u("base"),o="base");continue}for(let h=0;h<p.length;){let x=p.codePointAt(h),b=h+(x>65535?2:1),y=false;if(i){let P=g+h;for(;i[l].utf16To<=P;)l+=1;let R=i[l];x=R.text.codePointAt(0),b=Math.min(p.length,R.utf16To-g),P===R.utf16From&&(d=!!t[m]&&sm(x)),y=d;}if(y){let P=Cb(x);P!=="common"&&(u(P),o=P),r(m,h,b),h=b;continue}let w=Cb(x);w==="common"?o===null?c.push({segment:m,from:h,to:b,ascii:x<=127}):o==="eastAsia"&&x>127&&r(m,h,b):(u(w),o=w,w==="eastAsia"&&r(m,h,b)),h=b;}}if(n.length<2)return n;n.sort((m,p)=>m.segment-p.segment||m.from-p.from);let f=[n[0]];for(let m=1;m<n.length;m+=1){let p=n[m],g=f[f.length-1];g.segment===p.segment&&p.from<=g.to?p.to>g.to&&(f[f.length-1]={...g,to:p.to}):f.push(p);}return f}function rc(e,t,n){return Object.freeze({x:e.horizontalFrame==="page"?n.x+e.x-e.horizontalFrameOrigin:t.x+e.x,y:e.verticalFrame==="page"?n.y+e.y-e.verticalFrameOrigin:t.y+e.y})}function At(e,t=false){return Pn(e.fragments,t)}var Nb=new WeakMap;function Pn(e,t=false){let n=Nb.get(e),r=t?"withRepeats":"withoutRepeats",o=n?.[r];if(o)return o;let a=[],i=l=>{for(let s of l){if(s.kind==="paragraph"){a.push(s);continue}for(let d of s.rows)if(!(d.isHeaderRepeat&&!t))for(let c of d.cells)i(c.blocks);}};return i(e),n||(n={},Nb.set(e,n)),n[r]=a,a}function Db(e){let t=[];for(let n of e.pages)for(let r of At(n))t.push(...r.lines);return t}function YO(e){return e.anchoredDrawings??[]}var qO=Object.freeze({x:0,y:0,width:0,height:0});function Pi(e){let t=e??qO;return {box:t,origin:Object.freeze({x:t.x,y:t.y})}}var ZO={fragments:true,anchoredDrawings:true,header:true,footer:true,footnotes:true,endnotes:true},JO=Object.freeze(Object.keys(ZO));var QO={separator:true,notes:true},eF=Object.freeze(Object.keys(QO));function Ab(e,t,n,r){let o=t.kind??(n==="footnote"?"footnotes":"endnotes");for(let a of eF)switch(a){case "separator":t.separator&&r({page:e,story:"note-separator",host:t.separator,...Pi(t.separator.box),noteScopeId:null,noteAreaKind:o});break;case "notes":for(let i of t.notes)switch(n){case "footnote":r({page:e,story:"footnote",host:i,...Pi(i.box),noteScopeId:i.scopeId,noteAreaKind:o});break;case "endnote":r({page:e,story:"endnote",host:i,...Pi(i.box),noteScopeId:i.scopeId,noteAreaKind:o});break;}break;}}function tF(e,t){for(let n of JO)switch(n){case "fragments":t({page:e,story:"body",host:e,...Pi(e.contentBox),noteScopeId:null,noteAreaKind:null});break;case "anchoredDrawings":break;case "header":e.header&&t({page:e,story:"header",host:e.header,...Pi(e.header.box),noteScopeId:null,noteAreaKind:null});break;case "footer":e.footer&&t({page:e,story:"footer",host:e.footer,...Pi(e.footer.box),noteScopeId:null,noteAreaKind:null});break;case "footnotes":e.footnotes&&Ab(e,e.footnotes,"footnote",t);break;case "endnotes":e.endnotes&&Ab(e,e.endnotes,"endnote",t);break;}}function nF(e,t){for(let n of e.pages)tF(n,t);}var _b=16,dm=Object.freeze({x:0,y:0});function jb(e,t,n){let r=t.textboxStory?.contentOffset??dm,o=n??{x:e.x+t.x,y:e.y+t.y};return Object.freeze({x:o.x+r.x,y:o.y+r.y})}function Ri(e,t,n=dm,r){let o=(i,l)=>{if(i.kind==="table"){for(let s of i.rows)for(let d of s.cells)for(let c of d.blocks)o(c,l);return}for(let s of i.lines)for(let d of s.drawings??[])t(d,{...l,paragraph:i,line:s});},a=(i,l,s,d)=>{if(l>_b)return;let c={storyOrigin:d,textboxDepth:l,textboxOwner:s[s.length-1]??null,textboxPath:s};for(let u of i.anchoredDrawings??[])t(u,{...c,paragraph:null,line:null}),u.textboxStory&&a(u.textboxStory,l+1,Object.freeze([...s,u]),jb(d,u,l===0?r?.(u):void 0));for(let u of i.fragments)o(u,c);};a(e,0,Object.freeze([]),n);}function h_(e,t){nF(e,n=>{let{page:r,story:o,host:a,noteScopeId:i,noteAreaKind:l}=n,s=o==="header"||o==="footer"?d=>rc(d,n.origin,{x:r.box.x,y:r.box.y}):void 0;Ri(a,(d,c)=>{let u=d.kind==="anchoredDrawing"&&c.textboxDepth===0&&s?s(d):Object.freeze({x:c.storyOrigin.x+d.x,y:c.storyOrigin.y+d.y}),f=m=>Object.freeze({x:u.x+m.x-d.x,y:u.y+m.y-d.y,width:m.width,height:m.height});t({page:r,story:c.textboxDepth===0?o:"textbox",rootStory:o,noteScopeId:i,noteAreaKind:l,root:n,drawingOrigin:u,absolutePaintBounds:f(d.paintBounds),absoluteHitBounds:f(d.hitBounds),paintLayer:d.kind==="inlineDrawing"?"inline":d.behindDocument?"behind-text":"in-front-of-text",drawing:d,...c});},n.origin,s);});}function cm(e,t,n=dm,r){let o=(a,i,l,s)=>{if(!(i>_b)){for(let d of Pn(a.fragments,true))t(d,{storyOrigin:s,textboxDepth:i,textboxOwner:l[l.length-1]??null,textboxPath:l});for(let d of a.anchoredDrawings??[])d.textboxStory&&o(d.textboxStory,i+1,Object.freeze([...l,d]),jb(s,d,i===0?r?.(d):void 0));}};o(e,0,Object.freeze([]),n);}function rF(e,t){let n=[];for(let r of e.pages)for(let o of At(r))o.paragraphId===t&&n.push(o);return n.sort((r,o)=>r.fragmentIndex-o.fragmentIndex)}function oc(e,t,n,r){for(let o of r??Db(e)){let a=o.range.paragraphId===t?o.range.start:Number.NaN,i=o.range.paragraphId===t?o.range.end:Number.NaN;for(let l of o.spans)l.range.paragraphId===t&&(a=Number.isNaN(a)?l.range.start:Math.min(a,l.range.start),i=Number.isNaN(i)?l.range.end:Math.max(i,l.range.end));for(let l of o.drawings??[])l.paragraphId===t&&(a=Number.isNaN(a)?l.start:Math.min(a,l.start),i=Number.isNaN(i)?l.start+1:Math.max(i,l.start+1));if(!Number.isNaN(a)&&n>=a&&n<=i)return o}return null}function um(e){return e.contentControls??[]}function ac(e){if(e.length===0)return null;let t=1/0,n=1/0,r=-1/0,o=-1/0;for(let a of e)t=Math.min(t,a.x),n=Math.min(n,a.y),r=Math.max(r,a.x+a.width),o=Math.max(o,a.y+a.height);return {x:t,y:n,width:r-t,height:o-n}}function fm(e){let t=false,n=false;for(let r of e)(r==="contentLocked"||r==="sdtContentLocked")&&(t=true),(r==="sdtLocked"||r==="sdtContentLocked")&&(n=true);return t&&n?"sdtContentLocked":t?"contentLocked":n?"sdtLocked":"unlocked"}var ic=Object.freeze({width:612,height:792,margin:Object.freeze({top:72,right:72,bottom:72,left:72})});var Hb=new WeakMap,Wb=new WeakMap,zb=new WeakMap,Vb=new WeakMap;function Gb(e){let t=Vb.get(e);if(t)return t;let n=new Set,r=[];for(let o of At(e)){for(let a of o.lines)for(let i of wi(a))n.has(i.paragraphId)||(n.add(i.paragraphId),r.push(i.paragraphId));o.lines.length===0&&!n.has(o.paragraphId)&&(n.add(o.paragraphId),r.push(o.paragraphId));}return Vb.set(e,r),r}function ki(e){let t=Hb.get(e);if(t)return t;let n=new Set,r=[];for(let o of e.pages)for(let a of Gb(o))n.has(a)||(n.add(a),r.push(a));return Hb.set(e,r),r}function ia(e){let t=Wb.get(e);if(t)return t;let n=new Map;for(let[r,o]of ki(e).entries())n.set(o,r);return Wb.set(e,n),n}function oF(e){let t=zb.get(e);if(t)return t;let n=new Set,r=[],o=a=>{for(let i of Pn(a)){for(let l of i.lines)for(let s of wi(l))n.has(s.paragraphId)||(n.add(s.paragraphId),r.push(s.paragraphId));i.lines.length===0&&!n.has(i.paragraphId)&&(n.add(i.paragraphId),r.push(i.paragraphId));}};for(let a of e.pages){for(let i of Gb(a))n.has(i)||(n.add(i),r.push(i));for(let i of [a.header,a.footer])i&&o(i.fragments);for(let i of [a.footnotes,a.endnotes])if(i){i.separator&&o(i.separator.fragments);for(let l of i.notes)o(l.fragments);}}return zb.set(e,r),r}var $b=new WeakMap;function Xl(e){let t=$b.get(e);if(t)return t;let n=[...At(e)];for(let r of [e.header,e.footer])r&&n.push(...Pn(r.fragments));for(let r of [e.footnotes,e.endnotes])if(r)for(let o of r.notes)n.push(...Pn(o.fragments));return $b.set(e,n),n}function Xb(e,t,n){return e.paragraphId===t&&n>=e.start&&n<e.end}var Kb=new WeakMap;function Ct(e){let t=Kb.get(e);if(t)return t;let n={paragraphId:e.range.paragraphId,start:e.range.start,end:e.range.end,spans:e.spans,drawings:e.drawings??[]},o=e.spans.some(a=>a.range.paragraphId!==e.range.paragraphId)||(e.drawings??[]).some(a=>a.paragraphId!==e.range.paragraphId)?aF(e):[n];return Kb.set(e,o),o}function wi(e){let t=Ct(e);if(t.length<2||!e.spans.some(o=>o.style.shaping))return t;let n=new Map(t.map(o=>[o.paragraphId,o])),r=[];for(let o of e.spans){let a=n.get(o.range.paragraphId);a&&(r.push(a),n.delete(a.paragraphId));}return [...r,...n.values()]}function aF(e){let t=[...e.spans.map((r,o)=>({paragraphId:r.range.paragraphId,x:r.box?.x??o,order:o*2+1})),...(e.drawings??[]).map((r,o)=>({paragraphId:r.paragraphId,x:r.advanceStart??r.x??e.spans.length+o,order:o*2}))].sort((r,o)=>r.x-o.x||r.order-o.order),n=[];for(let r of t)n.includes(r.paragraphId)||n.push(r.paragraphId);return n.map(r=>{let o=e.spans.filter(c=>c.range.paragraphId===r),a=(e.drawings??[]).filter(c=>c.paragraphId===r),i=[...o.map(c=>c.range.start),...a.map(c=>c.start)],l=[...o.map(c=>c.range.end),...a.map(c=>c.start+1)],s=i[0],d=l[0];for(let c=1;c<i.length;c+=1)i[c]<s&&(s=i[c]),l[c]>d&&(d=l[c]);return {paragraphId:r,start:s,end:d,spans:o,drawings:a}})}function _r(e,t){return Ct(e).find(n=>n.paragraphId===t)??null}function la(e,t,n,r,o=ia(e)){if(n.paragraphId===r.paragraphId){if(t.paragraphId!==n.paragraphId)return null;let c=Math.max(t.start,n.offset),u=Math.min(t.end,r.offset);return u>c?{start:c,end:u}:null}let a=o.get(t.paragraphId),i=o.get(n.paragraphId),l=o.get(r.paragraphId);if(a===void 0||i===void 0||l===void 0||a<i||a>l)return null;let s=a===i?Math.max(t.start,n.offset):t.start,d=a===l?Math.min(t.end,r.offset):t.end;return d>s?{start:s,end:d}:null}function O_(e,t){for(let n of e.pages)for(let r of At(n)){let o=vi(r).indexOf(t);if(o>0)return vi(r).slice(0,o).reverse()}return []}var Ub=new WeakMap;function vi(e){let t=Ub.get(e);if(t)return t;let n=[];for(let r of e.lines??[])for(let o of wi(r))n.includes(o.paragraphId)||n.push(o.paragraphId);return n.includes(e.paragraphId)||n.push(e.paragraphId),Ub.set(e,n),n}function iF(e,t){let n=vi(e);if(n.length===1)return n[0]===t?{start:e.range.start,end:e.range.end}:null;let r=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;for(let a of e.lines??[]){let i=_r(a,t);i&&(r=Math.min(r,i.start),o=Math.max(o,i.end));}return o>=r?{start:r,end:o}:null}function jr(e,t,n){let r=iF(e,t);return r!==null&&n>=r.start&&n<r.end}function F_(e,t){for(let n of e.pages)for(let r of Xl(n))if(r.paragraphId===t)return r;for(let n of e.pages)for(let r of Xl(n))if(vi(r).includes(t))return r;return null}function Yb(e,t){return t?{...e,range:{paragraphId:t.paragraphId,start:t.start,end:t.end},spans:t.spans,drawings:t.drawings}:e}function B_(e){return e==="simple-markup"?"proposed":e}var We="all-markup",lF=Object.freeze({hiddenAuthors:Object.freeze(new Set),resolvedMarkup:"plain",cacheKey:"plain"}),qb=new WeakMap;function L_(e){if(!e)return lF;if(e.resolvedMarkup==="plain")return e;let t=qb.get(e);return t||(t=Object.freeze({...e,resolvedMarkup:"plain",cacheKey:`${e.cacheKey}|plain`}),qb.set(e,t)),t}var sc=class{#e;constructor(t){this.#e=new Set(t),Object.freeze(this);}get size(){return this.#e.size}has(t){return this.#e.has(t)}forEach(t,n){this.#e.forEach(r=>t.call(n,r,r,this));}entries(){return this.#e.entries()}keys(){return this.#e.keys()}values(){return this.#e.values()}union(t){let n=new Set(this.#e),r=t.keys(),o=r.next();for(;!o.done;)n.add(o.value),o=r.next();return n}intersection(t){let n=new Set;for(let r of this.#e)t.has(r)&&n.add(r);return n}difference(t){let n=new Set;for(let r of this.#e)t.has(r)||n.add(r);return n}symmetricDifference(t){let n=new Set(this.#e),r=t.keys(),o=r.next();for(;!o.done;){let a=o.value;this.#e.has(a)?n.delete(a):n.add(a),o=r.next();}return n}isSubsetOf(t){if(this.size>t.size)return false;for(let n of this.#e)if(!t.has(n))return false;return true}isSupersetOf(t){if(this.size<t.size)return false;let n=t.keys(),r=n.next();for(;!r.done;){if(!this.#e.has(r.value))return false;r=n.next();}return true}isDisjointFrom(t){for(let n of this.#e)if(t.has(n))return false;return true}[Symbol.iterator](){return this.#e[Symbol.iterator]()}},E_=new sc([]);function N_(e){let t=new Set;for(let o of e)t.add(o);if(t.size===0)return;let n=[...t].sort(),r=new sc(n);return Object.freeze({hiddenAuthors:r,includes:o=>!r.has(o.author),includesNode:(o,a)=>!r.has(a),cacheKey:JSON.stringify(n)})}function Wr(e,t){return e.includes?.(t)??cc(e,t.nodeId,t.author)}function cc(e,t,n){return e.includesNode?.(t,n)??!e.hiddenAuthors.has(n)}function Yl(e,t,n){return Wr(e,t)?n:e.excludedNodeMode?.(t.nodeId,t.author)??"proposed"}function Jb(e,t,n,r){return cc(e,t,n)?r:e.excludedNodeMode?.(t,n)??"proposed"}var Mn=Object.freeze([]),sF=32,dF={revisionInsert:"insert",revisionDelete:"delete",revisionMoveFrom:"moveFrom",revisionMoveTo:"moveTo"};function Hr(e,t){for(let n of e.attributes)if(n.localName===t&&n.namespaceUri===e.namespaceUri&&(n.kind==="wmlVal"||n.kind==="genericExtension"||n.kind==="xmlSpace"))return n.value}function tn(e){if(e.kind==="textValue")return null;let t=dF[e.kind];if(t===void 0)return null;let n=Hr(e,"date");return {kind:t,id:Hr(e,"id")??"",author:Hr(e,"author")??"",...n===void 0?{}:{date:n},nodeId:e.id}}function fn(e,t){return e.length===0?[t]:[...e,t]}function qt(e){return e.kind!=="textValue"&&chunkCB6RQ3GD_cjs.ka(e.kind)}var uc=sF;function De(e,t,n){if(e.length===0||t==="all-markup"&&!n)return true;for(let r of e){let o=n?Yl(n,r,t):t;if(o==="all-markup")continue;if(o==="proposed"?r.kind==="delete"||r.kind==="moveFrom":r.kind==="insert"||r.kind==="moveTo")return false}return true}function mm(e,t,n){if(!n&&t==="all-markup")return e;if(!De(e,t,n))return null;if(t!=="all-markup"&&n?.resolvedMarkup==="plain")return Mn;if(!n)return e;let r=e.filter(o=>Wr(n,o));return r.length===0?Mn:r}function ql(e,t,n){if(t==="all-markup"||e.length===0)return Mn;if(!n)return e;let r=e.filter(o=>Wr(n,o));return r.length===0?Mn:r}function Zb(e,t,n){return t==="all-markup"&&(!n||Wr(n,e))}function cF(e,t){return t?e.filter(n=>{if(n.localName!=="rPrChange"&&n.localName!=="pPrChange")return true;let r="revisionNodeId"in n&&typeof n.revisionNodeId=="string"?n.revisionNodeId:"";return Wr(t,{kind:"format",id:n.attributes?.id??"",author:n.attributes?.author??"",...n.attributes?.date===void 0?{}:{date:n.attributes.date},nodeId:r})}):e}function fc(e,t,n,r){let o=mm(e,n,r);if(o===null)return null;let a=r?cF(t,r):t,i=ql(e,n,r);return {props:a,...o.length===0?{}:{revisions:o},...i.length===0?{}:{changeSites:i}}}function mc(e,t,n){if(t!=="all-markup")return {revisions:Mn,formatRevision:null};if(!n)return {revisions:mo(e),formatRevision:dc(e)};let r=mo(e).filter(a=>Zb(a,t,n)),o=dc(e);return {revisions:r,formatRevision:o&&Zb(o,t,n)?o:null}}function pm(e,t,n){let r=mo(e);if(!n)return r.length>0||dc(e)!==null;if(r.some(a=>Wr(n,a)))return true;let o=dc(e);return o!==null&&Wr(n,o)}function mo(e){if(e.kind==="textValue")return lc;let t=e.children.find(o=>o.kind==="paragraphProperties");if(!t||t.kind==="textValue")return lc;let n=t.children.find(o=>o.kind==="runProperties");if(!n||n.kind==="textValue")return lc;let r=[];for(let o of n.children){if(o.kind==="textValue"||o.namespaceUri!==chunkCB6RQ3GD_cjs.da)continue;let a=uF[o.localName];if(a===void 0)continue;let i=Hr(o,"date");r.push({kind:a,id:Hr(o,"id")??"",author:Hr(o,"author")??"",...i===void 0?{}:{date:i},nodeId:o.id});}return r.length>0?r:lc}var uF={ins:"insert",del:"delete",moveFrom:"moveFrom",moveTo:"moveTo"};function dc(e){if(e.kind==="textValue")return null;let t=e.children.find(r=>r.kind==="paragraphProperties");if(!t||t.kind==="textValue")return null;let n=t.children.find(r=>r.kind==="runProperties");if(!n||n.kind==="textValue")return null;for(let r of n.children){if(r.kind==="textValue"||r.namespaceUri!==chunkCB6RQ3GD_cjs.da||r.localName!=="rPrChange")continue;let o=Hr(r,"date");return {kind:"format",id:Hr(r,"id")??"",author:Hr(r,"author")??"",...o===void 0?{}:{date:o},nodeId:r.id}}return null}var lc=Object.freeze([]);function Qb(e){return e.find(t=>fF(t))??e[0]}function fF(e){return e.kind==="delete"||e.kind==="moveFrom"}function pc(e,t){let n=Qb(e);return {...n?{markRevisions:e,markRevision:n}:{},...t?{markFormatRevision:t}:{}}}function A_(e){return Qb(mo(e))??null}function gc(e){for(let t of e){if(t.localName!=="rPrChange"&&t.localName!=="pPrChange")continue;let n=t.attributes??{},r=n.date;return {kind:"format",id:n.id??"",author:n.author??"",...r===void 0?{}:{date:r},nodeId:""}}return null}function ar(e){return e.some(t=>{switch(t.kind){case "delete":case "moveFrom":return true;case "insert":case "moveTo":case "format":return false;default:return t.kind}})}var mF=new WeakMap;function ex(e,t){mF.set(e,t);}function pF(e){let t=Object.entries(e.attributes??{}).sort(([n],[r])=>n<r?-1:n>r?1:0).map(([n,r])=>`${n}=${r}`).join("\0,");return `${e.localName}(\0${t}\0)`}function gF(e){return e.map(pF).join("\0;")}var hF=1<<18,yF=new TextEncoder;function hc(e){return chunkCB6RQ3GD_cjs.a(yF.encode(e))}var bF=2048,tx=2*1024*1024,sa=new Map,gm=0,xF;function Zl(e){if(e.length===0)return xF??=hc(e);let t=sa.get(e);if(t)return sa.delete(e),sa.set(e,t),t.digest;let n=hc(e),r=e.length*2;if(r<=tx){sa.set(e,{digest:n,bytes:r}),gm+=r;for(let[o,a]of sa){if(sa.size<=bF&&gm<=tx)break;sa.delete(o),gm-=a.bytes;}}return n}function Jl(e,t){return `${e}|${t?"drawing":""}`}function ae(e){let t="";for(let n of e)t+=`${n.length}:${n}`;return t}var nx=new WeakMap;function ax(e,t){if(!t||t.size===0)return "";let n=nx.get(e),r=n?.get(t);if(r!==void 0)return r;let o=da(e,a=>t.get(a.id)?.cacheToken??"");return o.length<=hF&&(n||(n=new WeakMap,nx.set(e,n)),n.set(t,o)),o}function da(e,t){let n=[],r=false;for(let o of SF(e)){let a=t(o);a&&(r=true),n.push(a);}return r?ae(n):""}var rx=new WeakMap;function SF(e){let t=rx.get(e);if(t)return t;let n=[],r=[e];for(;r.length>0;){let o=r.pop();if(o.kind==="paragraph"){n.push(o);continue}if("children"in o)for(let a=o.children.length-1;a>=0;a-=1)r.push(o.children[a]);}return rx.set(e,n),n}function hm(e){return e?{nodeDigests:new WeakMap,paragraphKeys:new WeakMap}:{nodeDigests:new Map,paragraphKeys:new Map}}var ix=hm(true);function lx(e,t){if(e.kind==="textValue")return hc(ym(e));let n=t.nodeDigests.get(e);if(n!==void 0)return n;let r=hc(ym(e,t));return t.nodeDigests.set(e,r),r}function ym(e,t=ix){if(e.kind==="textValue")return ae(["text",e.value]);let n=[];for(let o of e.attributes)n.push(ae([o.namespaceUri??"",o.localName,o.value]));n.sort();let r=[];for(let o of e.children)r.push(o.kind==="textValue"?ym(o):ae(["child-digest",lx(o,t)]));return ae(["element",e.kind,e.localName,e.id,ae(n),ae(r)])}var PF=8;function yc(e){return sx(e,ix)}function sx(e,t){let n=Math.round(e.width*1e3),r=e.drawingToken??"",o=e.projectionToken??"",a=e.exclusionToken??"",i=Zl(gF(e.properties)),l=lx(e.paragraph,t),s=Zl(e.producer),d=Zl(r),c=Zl(o),u=Zl(a),f=t.paragraphKeys.get(e.paragraph),m=f?.entries.findIndex(h=>h.producerIdentity===s&&h.width===n&&h.drawingIdentity===d&&h.projectionIdentity===c&&h.exclusionIdentity===u&&h.propertiesToken===i);if(f&&m!==void 0&&m>=0){let[h]=f.entries.splice(m,1);return f.entries.push(h),h.key}let p=`plk:${l}:${s}:${n}:${d}:${c}:${u}:${i}`;f||(f={entries:[]},t.paragraphKeys.set(e.paragraph,f));let g=f.entries.find(h=>h.propertiesToken===i)?.propertiesToken??i;return f.entries.push({producerIdentity:s,width:n,drawingIdentity:d,projectionIdentity:c,exclusionIdentity:u,propertiesToken:g,key:p}),f.entries.length>PF&&f.entries.shift(),p}var dx=new WeakMap;function bc(e,t){dx.set(e,t);}function cx(e,t,n,r){if(!e)return;let o=t??new Set;for(let a of n)o.add(a);for(let a of r){let i=dx.get(a);if(i)for(let l of i)o.add(l);}t||e.retain(o);}var RF=8,wF=8;function W_(e={}){let t=Math.max(1,e.maxEntries??4096),n=e.retainAcrossPasses??true,r=t*8,o=new Map,a=hm(n),i=0,l=0,s=0,d=0,c=0,u=0,f=0,m=0,p=0,g=0,h={retainAcrossPasses:n,keyFor(x){return sx(x,a)},get(x){let b=o.get(x);if(b===void 0){d+=1;return}return s+=1,o.delete(x),b.generation=i,o.set(x,b),b.value},set(x,b){if(o.has(x)&&o.delete(x),o.set(x,{value:b,generation:i}),!(o.size<=t))for(let[y,w]of o){if(o.size<=t||w.generation>=i&&o.size<=r)break;o.size>r?f+=1:u+=1,o.delete(y),c+=1;}},release(x){!n&&o.delete(x)&&(p+=1);},retentionPassDue(){return l+=1,l%RF===0},retain(x){i+=1;for(let b of x){let y=o.get(b);y&&(y.generation=i);}for(let[b,y]of o)i-y.generation>wF&&(o.delete(b),c+=1,m+=1);},clear(){g+=o.size,o.clear(),a=hm(n);},get stats(){return {hits:s,misses:d,evictions:c,size:o.size}}};return ex(h,{snapshot(){let x=0;for(let b of o.keys())x+=b.length*2;return {hits:s,misses:d,evictions:c,size:o.size,softLimit:t,hardLimit:r,keyTextBytes:x,softLimitEvictions:u,hardLimitEvictions:f,staleEvictions:m,releasedEntries:p,clearedEntries:g}},visit(x){for(let b of o.values())x(b.value);}}),h}var ux=4096,Zt=64,Pm=Object.freeze({hasPage:false,hasNumPages:false,hasSectionPages:false}),fx=/\s*\\\*\s*MERGEFORMAT\s*$/i;function ca(e){if(e.length>chunkCB6RQ3GD_cjs.ue)return null;let t=e.replace(/\s+/g," ").trim().toUpperCase();return t.length>chunkCB6RQ3GD_cjs.ue?null:t.replace(fx,"").trim()}var kF=/\s*\\#\s*(?:"([^"]*)"|([^\\"]+))$/;function vF(e){if(e.length>chunkCB6RQ3GD_cjs.ue)return null;let t=e.replace(/\s+/g," ").trim();if(t.length>chunkCB6RQ3GD_cjs.ue)return null;let n=t.replace(fx,"").trim(),r=kF.exec(n);if(!r)return {keyword:n.toUpperCase(),picture:void 0};let o=r[1]??r[2]??"";return {keyword:n.slice(0,r.index).trim().toUpperCase(),picture:o.length>0?o:void 0}}function Ti(e){let t=vF(e);if(t===null)return null;let{keyword:n,picture:r}=t;return n!=="PAGE"&&n!=="NUMPAGES"&&n!=="SECTIONPAGES"?null:r===void 0?{kind:n}:{kind:n,picture:r}}function po(e){return Ti(e)?.kind??null}function Dt(e,t){return chunkCB6RQ3GD_cjs.he(e,t)}function zr(e){return chunkCB6RQ3GD_cjs.ie(e)}function Vr(){return {nodes:0,exhausted:false}}function yt(e){return e.exhausted?false:(e.nodes+=1,e.nodes>ux?(e.exhausted=true,false):true)}function ua(){return {nesting:0,instruction:"",instructionOverflow:false,deletedInstruction:"",deletedInstructionOverflow:false,sawLiveInstruction:false,nestingOverflow:false,phase:"idle",inner:[]}}function Ql(e){e.nesting=0,e.instruction="",e.instructionOverflow=false,e.deletedInstruction="",e.deletedInstructionOverflow=false,e.sawLiveInstruction=false,e.nestingOverflow=false,e.phase="idle",e.inner.length=0;}function Ii(e){return e.sawLiveInstruction?{instruction:e.instruction,overflow:e.instructionOverflow}:{instruction:e.deletedInstruction,overflow:e.deletedInstructionOverflow}}function TF(e){return e.sawLive?{instruction:e.instruction,overflow:e.overflow}:{instruction:e.deletedInstruction,overflow:e.deletedOverflow}}function fa(e){e.nesting===0&&(e.instruction="",e.instructionOverflow=false,e.deletedInstruction="",e.deletedInstructionOverflow=false,e.sawLiveInstruction=false,e.nestingOverflow=false,e.phase="instruction",e.inner.length=0),e.nesting+=1,e.nesting>chunkCB6RQ3GD_cjs.ve?e.nestingOverflow=true:e.nesting>=2&&(e.inner[e.nesting-2]={instruction:"",overflow:false,deletedInstruction:"",deletedOverflow:false,sawLive:false,separated:false});}function Oi(e){return e.nesting<2||e.nesting>chunkCB6RQ3GD_cjs.ve?null:e.inner[e.nesting-2]??null}function mx(e){if(e.nesting===1)return e.phase==="instruction";let t=Oi(e);return t!==null&&!t.separated}function xm(e,t){if(!mx(e))return false;if(e.nesting===1)return t?!e.deletedInstructionOverflow:!e.instructionOverflow;let n=Oi(e);return t?!n.deletedOverflow:!n.overflow}function px(e){if(e.nesting===1){e.sawLiveInstruction=true;return}let t=Oi(e);t&&(t.sawLive=true);}function Sm(e,t){if(e.nesting===1){t?(e.deletedInstructionOverflow=true,e.deletedInstruction=""):(e.instructionOverflow=true,e.instruction="");return}let n=Oi(e);n&&(t?(n.deletedOverflow=true,n.deletedInstruction=""):(n.overflow=true,n.instruction=""));}function bm(e){Sm(e,false),Sm(e,true);}function IF(e,t,n=false){if(!xm(e,n))return;let r=Oi(e);n||px(e);let o=r?n?r.deletedInstruction:r.instruction:n?e.deletedInstruction:e.instruction;if(o.length+t.length>chunkCB6RQ3GD_cjs.ue){Sm(e,n);return}r?n?r.deletedInstruction=o+t:r.instruction=o+t:n?e.deletedInstruction=o+t:e.instruction=o+t;}function ma(e,t,n,r){if(!mx(e))return;let o=chunkCB6RQ3GD_cjs.je(t);if(o||px(e),!xm(e,o))return;if(r>Zt){bm(e);return}let a=[],i=t.kind==="textValue"?[]:t.children??[];for(let l=i.length-1;l>=0;l-=1)a.push({node:i[l],depth:r+1});for(;a.length>0;){let l=a.pop();if(!yt(n)){bm(e);return}if(l.depth>Zt){bm(e);return}if(l.node.kind==="textValue"){if(IF(e,l.node.value,o),!xm(e,o))return;continue}let s=l.node.children??[];for(let d=s.length-1;d>=0;d-=1)a.push({node:s[d],depth:l.depth+1});}}function pa(e){if(e.nesting===1){if(e.phase!=="instruction"||(e.phase="result",e.nestingOverflow))return null;let r=Ii(e);return r.overflow?null:Ti(r.instruction)}let t=Oi(e);if(!t||t.separated)return null;t.separated=true;let n=TF(t);return n.overflow?null:Ti(n.instruction)}function ga(e){e.nesting>0&&(e.nesting-=1),e.nesting===0&&Ql(e);}function gx(e){return e.phase==="instruction"&&e.nesting>=1}function hx(e){return e.phase==="result"&&e.nesting>=1}function Rm(e){let t=false,n=false,r=false,o=Vr(),a=ua(),i=()=>t&&n&&r,l=m=>{m==="PAGE"?t=true:m==="NUMPAGES"?n=true:r=true;},s=false,d=[],c=(m,p)=>{if(m.kind!=="runProperties"){if(Dt(m,"begin")){fa(a),a.nestingOverflow&&(s=true);return}if(zr(m)){ma(a,m,o,p);return}if(Dt(m,"separate")){let g=a.nesting,h=a.phase,x=pa(a);if(s)return;x&&(g<=1||h==="result")&&d.push(x.kind);return}if(Dt(m,"end")&&(ga(a),a.nesting===0)){if(!s)for(let g of d)l(g);d.length=0;}}},u=(m,p)=>{if(m.kind==="run")for(let g of m.children){if(!yt(o))return;if(c(g,p+1),(g.kind==="drawing"||g.kind==="generic")&&!zr(g)&&"children"in g&&g.children.length>0){let h={...a,inner:a.inner.map(y=>({...y}))},x=s,b=d;d=[],f(g,p+1),Object.assign(a,h),s=x,d=b;}if(i()||o.exhausted)return}},f=(m,p)=>{if(!i()&&yt(o)&&!(p>Zt)&&m.kind!=="textValue"){if(m.kind==="paragraph"){Ql(a),s=false,d.length=0;for(let g of m.children)if(f(g,p+1),i()||o.exhausted)return;Ql(a),s=false,d.length=0;return}if(m.kind==="run"){u(m,p);return}if(chunkCB6RQ3GD_cjs.ke(m)){let g=po(chunkCB6RQ3GD_cjs.me(m)??"");if(g){l(g);return}}for(let g of m.children)if(f(g,p+1),i()||o.exhausted)return}};return f(e,0),!t&&!n&&!r?Pm:{hasPage:t,hasNumPages:n,hasSectionPages:r}}var es=256,OF=Object.freeze({suppressNonDelimiterText:false,noteRef:false,pageRef:false}),FF=Object.freeze({suppressNonDelimiterText:true,noteRef:false,pageRef:false}),CF=Object.freeze({suppressNonDelimiterText:false,noteRef:true,pageRef:false}),MF=Object.freeze({suppressNonDelimiterText:false,noteRef:false,pageRef:true}),xc=new WeakMap;function $n(e){return xc.get(e)??OF}function BF(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r===" "){n+=1;continue}if(r==='"'){let a=e.indexOf('"',n+1);if(a===-1)return null;t.push(e.slice(n+1,a)),n=a+1;continue}let o=n;for(;o<e.length&&e[o]!==" ";)o+=1;t.push(e.slice(n,o)),n=o;}return t}function go(e){if(e.length>chunkCB6RQ3GD_cjs.ue)return null;let t=e.replace(/\s+/g," ").trim();if(t.length>chunkCB6RQ3GD_cjs.ue)return null;let n=BF(t);if(n===null||n.length<2)return null;let r=n[0].toUpperCase();if(r!=="REF"&&r!=="NOTEREF"&&r!=="PAGEREF")return null;let o=n[1];if(o.length===0||o.length>es||o.startsWith("\\"))return null;if(r==="NOTEREF")return LF(n,o);if(r==="PAGEREF")return EF(n,o);let a=false,i=false,l=false,s=false,d=false;for(let f=2;f<n.length;f+=1){let m=n[f].toUpperCase();if(m==="\\R")i=true;else if(m==="\\W")l=true;else if(m==="\\N")a=true;else if(m==="\\T")s=true;else if(m==="\\H")d=true;else if(m==="\\*"&&n[f+1]?.toUpperCase()==="MERGEFORMAT")f+=1;else {if(m==="\\*MERGEFORMAT")continue;return null}}let u={bookmark:o,numberSwitch:a?"n":i?"r":l?"w":null,hyperlink:d};return s&&xc.set(u,FF),u}function LF(e,t){let n=false;for(let o=2;o<e.length;o+=1){let a=e[o].toUpperCase();if(a==="\\H")n=true;else if(a==="\\*"&&e[o+1]?.toUpperCase()==="MERGEFORMAT")o+=1;else {if(a==="\\*MERGEFORMAT")continue;return null}}let r={bookmark:t,numberSwitch:null,hyperlink:n};return xc.set(r,CF),r}function EF(e,t){let n=false;for(let o=2;o<e.length;o+=1){let a=e[o].toUpperCase();if(a==="\\H")n=true;else if(a==="\\*"&&e[o+1]?.toUpperCase()==="MERGEFORMAT")o+=1;else {if(a==="\\*MERGEFORMAT")continue;return null}}let r={bookmark:t,numberSwitch:null,hyperlink:n};return xc.set(r,MF),r}var X_=64,Y_=64,NF=[{value:1e3,glyph:"M"},{value:900,glyph:"CM"},{value:500,glyph:"D"},{value:400,glyph:"CD"},{value:100,glyph:"C"},{value:90,glyph:"XC"},{value:50,glyph:"L"},{value:40,glyph:"XL"},{value:10,glyph:"X"},{value:9,glyph:"IX"},{value:5,glyph:"V"},{value:4,glyph:"IV"},{value:1,glyph:"I"}];function ho(e){if(!Number.isFinite(e))return 1;let t=Math.trunc(e);return t<0?1:t>9999?9999:t}function ha(e){return String(ho(e))}function AF(e){let t=ho(e);return t<10?`0${t}`:String(t)}function yx(e){let t=ho(e);t>3999&&(t=3999);let n="";for(let{value:r,glyph:o}of NF)for(;t>=r;)if(n+=o,t-=r,n.length>=64)return n.slice(0,64);return n||"I"}function DF(e){return yx(e).toLowerCase()}function bx(e){let t=ho(e),n="";for(;t>0&&n.length<8;)t-=1,n=String.fromCharCode(65+t%26)+n,t=Math.floor(t/26);return n||"A"}function _F(e){return bx(e).toLowerCase()}function jF(e){let t=ho(e),n=t%100,r=t%10,o=n>=11&&n<=13?"th":r===1?"st":r===2?"nd":r===3?"rd":"th";return `${t}${o}`}function HF(e){return ho(e).toString(16).toUpperCase()}function WF(e){let t=["*","\u2020","\u2021","\xA7"],n=ho(e);if(n<=0)return t[0];let r=(n-1)%t.length,o=Math.min(Math.floor((n-1)/t.length)+1,zF);return t[r].repeat(o)}var zF=8,Sc=["zero","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"],VF=["","","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"];function Pc(e){let t=ho(e);if(t<20)return Sc[t];if(t<100){let r=t%10;return VF[Math.floor(t/10)]+(r===0?"":`-${Sc[r]}`)}if(t<1e3){let r=t%100;return `${Sc[Math.floor(t/100)]} hundred${r===0?"":` ${Pc(r)}`}`}let n=t%1e3;return `${Sc[Math.floor(t/1e3)]} thousand${n===0?"":` ${Pc(n)}`}`}function xx(e){return e.length===0?e:e[0].toUpperCase()+e.slice(1)}function GF(e){return xx(Pc(e))}var $F=new Map([["zero","zeroth"],["one","first"],["two","second"],["three","third"],["five","fifth"],["eight","eighth"],["nine","ninth"],["twelve","twelfth"]]);function KF(e){let t=$F.get(e);return t!==void 0?t:e.endsWith("y")?`${e.slice(0,-1)}ieth`:`${e}th`}function UF(e){let t=Pc(e),n=Math.max(t.lastIndexOf(" "),t.lastIndexOf("-")),r=n<0?"":t.slice(0,n+1);return xx(r+KF(t.slice(n+1)))}function ir(e,t){switch(e){case "decimal":return ha(t);case "decimalZero":return AF(t);case "upperRoman":return yx(t);case "lowerRoman":return DF(t);case "upperLetter":return bx(t);case "lowerLetter":return _F(t);case "ordinal":return jF(t);case "cardinalText":return GF(t);case "ordinalText":return UF(t);case "hex":return HF(t);case "chicago":return WF(t);case "numberInDash":return `- ${ha(t)} -`;case "none":case "bullet":return "";default:return ha(t)}}function wm(e,t,n){let r=e.length>64?e.slice(0,64):e,o="";for(let a=0;a<r.length&&!(o.length>=64);a+=1){let i=r[a];if(i==="%"&&a+1<r.length){let l=r[a+1];if(l>="1"&&l<="9"){let s=Number(l)-1,d=n[s]??"decimal",c=t[s]??1,u=d==="bullet"?"":ir(d,c);for(let f of u){if(o.length>=64)break;o+=f;}a+=1;continue}}o+=i;}return o}function XF(e){let t=e.toUpperCase(),n=e[0]===e[0]?.toUpperCase();switch(t){case "ARABIC":return "decimal";case "ALPHABETIC":return n?"upperLetter":"lowerLetter";case "ROMAN":return n?"upperRoman":"lowerRoman";case "ORDINAL":return "ordinal";case "CARDTEXT":return "cardinalText";case "ORDTEXT":return "ordinalText";case "HEX":return "hex";default:return null}}function ya(e){if(ca(e)===null)return null;let n=e.replace(/\s+/g," ").trim().split(" "),r=n[0]?.toUpperCase();if(r!=="AUTONUM"&&r!=="AUTONUMLGL"&&r!=="AUTONUMOUT")return null;let o=null,a=false;for(let i=1;i<n.length;i+=1){let s=n[i].toUpperCase();if(s==="\\E"){a=true;continue}if(s==="\\*"){let d=n[i+1];if(d===void 0)return null;if(i+=1,d.toUpperCase()==="MERGEFORMAT")continue;if(o=XF(d),o===null)return null;continue}return null}return {kind:r,numFmt:o,suppressPeriod:a}}function Sx(e,t){let n=ir(e.numFmt??"decimal",t);return n.length===0?"":e.suppressPeriod?n:`${n}.`}function Fi(e,t){if(e.kind!=="textValue"){for(let n of e.children)if(n.kind!=="textValue"&&n.namespaceUri===chunkCB6RQ3GD_cjs.da&&n.localName===t)return n}}function oj(e){if(e.kind==="textValue")return false;let t=Fi(e,"paragraphProperties")??Fi(e,"pPr");if(!t)return false;let n=Fi(t,"runProperties")??Fi(t,"rPr");return n===void 0?false:Fi(n,"del")!==void 0||Fi(n,"moveFrom")!==void 0}function Rc(e,t,n,r,o=[],a=false){if(e.kind==="textValue")return true;if(t>=chunkCB6RQ3GD_cjs.la)return !a;let i=(l,s)=>{for(let d of l){if(d.kind==="textValue")continue;if(d.kind==="run"){if(a&&ZF(d))continue;for(let f of d.children){if(f.kind==="text"){for(let m of f.children)if(m.kind==="textValue"&&m.value.length>0)return false;continue}if(f.kind!=="runProperties")return false}continue}if(chunkCB6RQ3GD_cjs.Jd(d)){if(s+1>=chunkCB6RQ3GD_cjs.la){if(a)return false;continue}let f=chunkCB6RQ3GD_cjs.Ld(d);if(f&&!i(f,s+1))return false;continue}if(chunkCB6RQ3GD_cjs.na(d)&&!qt(d)){if(!Rc(d,s+1,n,r,o,a))return false;continue}if(!qt(d)){if(a&&!qF(d))return false;continue}let c=tn(d);if(!c)continue;let u=fn(o,c);if(De(u,n,r)&&!Rc(d,s+1,n,r,u,a))return false}return true};return i(e.children,t)}var YF=new Set(["pPr","bookmarkStart","bookmarkEnd","commentRangeStart","commentRangeEnd","moveFromRangeStart","moveFromRangeEnd","moveToRangeStart","moveToRangeEnd","permStart","permEnd","proofErr"]);function qF(e){return e.kind==="paragraphProperties"?true:e.namespaceUri===chunkCB6RQ3GD_cjs.da&&YF.has(e.localName)}function ZF(e){let t=e.children.find(n=>n.kind==="runProperties");return t!==void 0&&chunkCB6RQ3GD_cjs.pa(t,"vanish")}function Px(e,t,n){return Rc(e,0,t,n,[],true)}function km(e,t,n){if(t==="all-markup"&&!n)return false;for(let r of mo(e)){let o=n?Yl(n,r,t):t;if(o==="all-markup")continue;let a=r.kind==="delete"||r.kind==="moveFrom";if(o==="proposed"&&a||o==="original"&&!a)return true}return false}function Rx(e,t="proposed",n){return e.kind!=="paragraph"||!km(e,t,n)?false:Rc(e,0,t,n)}var wx=new WeakMap;function vx(e){let t=wx.get(e);if(t)return t;let n=new Map;for(let r of chunkCB6RQ3GD_cjs.Ge(e)){let o=chunkCB6RQ3GD_cjs.Fe(r);if(o)for(let a of new Set([o.separateParagraphId,...r.resultParagraphIds,r.endParagraphId])){let i=chunkCB6RQ3GD_cjs.Ha(e,a);if(i?.kind!=="paragraph")continue;let l=chunkCB6RQ3GD_cjs.Ze(i),s=r.beginParagraphId===r.endParagraphId?l.spanOf(r.beginNodeId):void 0,d=s?.start??(a===o.separateParagraphId?l.spanOf(o.separateNodeId)?.end:0),c=s?.end??(a===r.endParagraphId?l.spanOf(o.endNodeId)?.start:l.length);if(d===void 0||c===void 0||c<=d)continue;let u=n.get(a)??[];u.push({start:d,end:c}),n.set(a,u);}}return wx.set(e,n),n}function Tx(e,t,n){return !e||!t?.length?e:(r,o)=>e(r,t.some(a=>n()>=a.start&&n()<a.end)?o.filter(a=>!(a.localName==="rStyle"&&a.attributes?.val==="Hyperlink")):o)}var kx=new WeakMap;function Ix(e){if(e.size===0)return "";let t=kx.get(e);if(t!==void 0)return t;let n=[];for(let[o,a]of e)n.push(o,a.map(i=>`${i.start},${i.end}`).join(";"));let r=chunkHZQFGB2X_cjs.C(ae(n));return kx.set(e,r),r}function ts(e){if(e.kind==="text"||e.kind==="deletedText"){let t="";for(let n of e.children)n.kind==="textValue"&&(t+=n.value);return t}return e.kind==="tab"?" ":e.kind==="hardBreak"?chunkCB6RQ3GD_cjs.ae(e):""}function Ci(e){if(!e||e.kind==="textValue")return [];let t=[];for(let n of e.children){if(n.kind==="textValue")continue;if(n.localName==="ligatures"){let a=hb(n);a!==void 0&&t.push({localName:"ligatures",attributes:{val:a}});continue}if(n.localName==="textOutline"){let a=fb(n);a&&t.push(a);continue}let r={};for(let a of n.attributes)r[a.localName]=a.value;let o=Object.keys(r).length>0;if(n.localName==="rPrChange"||n.localName==="pPrChange"){let a=o?{localName:n.localName,attributes:r,revisionNodeId:n.id}:{localName:n.localName,revisionNodeId:n.id};t.push(a);continue}t.push(o?{localName:n.localName,attributes:r}:{localName:n.localName});}return t}function Gr(e,t,n){let r=Ci(e.kind==="run"?e.children.find(o=>o.kind==="runProperties"):void 0);return n?[...n(t,r)]:t.length===0?r:[...t,...r]}function JF(e){let t="",n=[];for(let r of e){let o=n.every(Boolean);if(chunkCB6RQ3GD_cjs.he(r,"begin")){if(n.length>=chunkCB6RQ3GD_cjs.ve)return null;o&&(t+="{"),n.push(true);}else if(chunkCB6RQ3GD_cjs.he(r,"separate"))n.length&&(n[n.length-1]=false);else if(chunkCB6RQ3GD_cjs.he(r,"end"))n.pop(),n.every(Boolean)&&(t+="}");else if(o&&chunkCB6RQ3GD_cjs.ke(r))t+=`{${chunkCB6RQ3GD_cjs.me(r)??""}}`;else if(o&&chunkCB6RQ3GD_cjs.ie(r)&&r.kind!=="textValue")for(let a of r.children)a.kind==="textValue"&&(t+=a.value);if(t.length>chunkCB6RQ3GD_cjs.ue)return null}return t||null}function vm(e,t,n,r,o,a,i,l=[]){if(e.kind!=="paragraph")return [...t];let s=chunkCB6RQ3GD_cjs.we(e);if(s.length===0&&l.length===0)return [...t];let d=[];if(!chunkCB6RQ3GD_cjs.te(e,d,{left:4096}))return [...t];let c=chunkCB6RQ3GD_cjs.Ze(e),u=new Map,f=new Map,m=(g,h,x)=>{if(g.kind==="textValue"||x>64)return;let b=qt(g)?fn(h,tn(g)):h;f.set(g.id,b),g.kind==="run"&&u.set(g.id,g);for(let y of g.children)m(y,b,x+1);};m(e,[],0);let p=[...t];for(let g of s){let h=new Set(g.removeNodeIds),x=d.filter(S=>h.has(S.node.id)&&De(f.get(S.node.id)??[],a,i)).map(S=>S.node),b=JF(x),y=c.spanOf(g.node);if(!b||!y)continue;let w=g.addressing==="atomic"?y.start+1:y.end;if(g.addressing!=="atomic")for(let S of x)w=Math.max(w,c.spanOf(S)?.end??w);let P=t.find(S=>S.start>=y.start&&S.end<=w&&S.fieldAtom),R=f.get(g.node.id)??[];if(!De(R,a,i))continue;let O=u.get(g.formatRunIds[0]??g.runId),F=P?.props??(O?Gr(O,n,r):n),k=P?.style??Ne(F,o);if(k.hidden)continue;let v={text:b,props:F,style:k,start:y.start,end:w,projected:true,fieldAtom:{formField:false},...R.length?{revisions:R}:{}};p=p.filter(S=>!(S.start>=y.start&&S.end<=w&&(S.end>S.start||S.fieldAtom))),p.push(v);}for(let g of l)if(p=p.filter(h=>h.end<=g.start||h.start>=g.end),g.code){let h=g.sourceNodeId?f.get(g.sourceNodeId)??[]:[];if(!De(h,a,i))continue;let x=d.find(P=>P.node.id===g.sourceNodeId),b=x&&u.get(x.runId),y=b?Gr(b,n,r):n,w=Ne(y,o);if(w.hidden)continue;p.push({text:g.code,props:y,style:w,...h.length?{revisions:h}:{},start:g.start,end:g.end,projected:true,fieldAtom:{formField:false}});}return p.sort((g,h)=>g.start-h.start)}var QF=`
2
- \r`,eC=/[ \t\n\r]*\\\*[ \t\n\r]*(?:"[^"]*"|[^ \t\n\r"\\]+)?[ \t\n\r]*$/;function Ox(e,t){let n=t;for(;n<e.length&&QF.includes(e[n]);)n+=1;return n}function Fx(e,t){if(e[t]==='"'){let r=t+1;for(;r<e.length&&e[r]!=='"';)r+=1;return r<e.length?r+1:r}let n=t;for(;n<e.length&&!`
3
- \r"`.includes(e[n]);)n+=1;return n}function wc(e){if(e.length===0||e.length>256)return null;let t=Ox(e,0);if(e[t]==='"')return null;let n=Fx(e,t),r=e.slice(t,n).toUpperCase();if(r!=="MACROBUTTON"&&r!=="GOTOBUTTON")return null;let o=Ox(e,n);if(o>=e.length)return null;let a=Fx(e,o),i=e.slice(a).trim();for(;;){let l=i.replace(eC,"").trimEnd();if(l===i)break;i=l;}if(i[0]==='"'){let l=i.indexOf('"',1);l===-1?i=i.slice(1):l===i.length-1&&(i=i.slice(1,-1));}return i.length===0?null:{display:i}}var Cx=Object.freeze({TITLE:"title",AUTHOR:"creator",SUBJECT:"subject",KEYWORDS:"keywords",LASTSAVEDBY:"lastModifiedBy",COMMENTS:"description"}),tC=/\s*\\[A-Z*@#!]\s*(?:"[^"]*"|[^\s"\\]+)?\s*$/;function nC(e){let t=e;for(;;){let n=t.replace(tC,"").trimEnd();if(n===t)return t;t=n;}}function rC(e){let t=e.trimStart();if(t.length===0)return null;if(t[0]==='"'){let o=t.indexOf('"',1),a=o===-1?t.slice(1):t.slice(1,o);return a.length>0?a:null}let n=t.search(/\s/),r=n===-1?t:t.slice(0,n);return r.length>0?r:null}function kc(e){let t=ca(e);if(t===null||t.length===0)return null;let n=nC(t),r=Cx[n];if(r)return {property:r};if(!n.startsWith("DOCPROPERTY"))return null;let o=n.slice(11);if(o.length===0||!/^\s/.test(o))return null;let a=rC(o);if(a===null)return null;let i=Cx[a];return i?{property:i}:null}function vc(e,t){if(!t)return null;let n=t[e.property];return n!==void 0&&n.length>0?n:null}function Tc(e){if(e.length>chunkCB6RQ3GD_cjs.ue)return null;let t=[],n=0;for(;n<e.length;){if(/\s/.test(e[n])){n++;continue}let l=e[n]==='"',s=l?++n:n;for(;n<e.length&&(l?e[n]!=='"':!/\s/.test(e[n]));)n++;if(l&&n===e.length||(t.push({value:e.slice(s,n),quoted:l}),l&&(n++,n<e.length&&!/\s/.test(e[n]))))return null}let[r,o]=t;if(!r||r.quoted||!o)return null;let a=r.value.toUpperCase();if(!["REF","PAGEREF","NOTEREF"].includes(a)||!o.value||o.value.length>es||o.value.startsWith("\\"))return null;let i=false;for(let l=2;l<t.length;l++){let s=t[l];if(s.quoted)return null;let d=s.value.toLowerCase();if(d==="\\h")i=true;else {if(d==="\\p")continue;if(a==="REF"&&["\\r","\\w","\\n","\\t","\\f"].includes(d))continue;if(a==="NOTEREF"&&d==="\\f")continue;if(d==="\\*mergeformat")continue;if(d==="\\*"||d==="\\#"||a==="REF"&&d==="\\d"){let c=t[++l];if(!c||!c.quoted&&c.value.startsWith("\\"))return null}else return null}}return i?{target:null,anchor:o.value,tooltip:null}:null}var oC=chunkCB6RQ3GD_cjs.ue,aC=2048,iC=256;function lC(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r===" "||r===" "||r===`
4
- `||r==="\r"){n+=1;continue}if(r==='"'){let a=n+1;for(;a<e.length&&e[a]!=='"';)a+=1;t.push({value:e.slice(n+1,a),quoted:true}),n=a<e.length?a+1:a;continue}let o=n;for(;o<e.length&&!`
5
- \r"`.includes(e[o]);)o+=1;t.push({value:e.slice(n,o),quoted:false}),n=o;}return t}var sC=new Set(["\\l","\\o","\\t","\\m","\\n","\\*","\\#","\\@"]);function Ic(e){if(e.length===0||e.length>oC)return null;let t=lC(e);if(t.length<2)return null;let n=t[0];if(n.quoted||n.value.toUpperCase()!=="HYPERLINK")return null;let r=null,o=false,a=null,i=false,l=null,s=false;for(let d=1;d<t.length;d+=1){let c=t[d];if(!c.quoted&&c.value.startsWith("\\")){let u=c.value.toLowerCase();if(!sC.has(u))continue;let f=t[d+1];if(!f||!f.quoted&&f.value.startsWith("\\"))continue;d+=1;let m=f.value.length>0&&f.value.length<=iC;u==="\\l"?i||(i=true,m&&(a=f.value)):u==="\\o"&&(s||(s=true,m&&(l=f.value)));continue}o||(o=true,c.value.length>0&&c.value.length<=aC&&(r=c.value));}return r===null&&a===null?null:{target:r,anchor:a,tooltip:l}}var ba=1024;function ns(e,t){for(let n of e.attributes)if(n.namespaceUri===chunkCB6RQ3GD_cjs.da&&n.localName===t)return n.value}function Tm(e){return e.kind==="drawing"||e.localName==="drawing"||e.localName==="pict"}function Bx(e,t){let n="",r=(o,a)=>{if(!(o.kind==="textValue"||n.length>=ba)&&!(t.exhausted||a>Zt)&&yt(t)){if(o.kind==="text"){for(let i of o.children)i.kind==="textValue"&&(n+=i.value.slice(0,ba-n.length));return}for(let i of o.children)r(i,a+1);}};for(let o of e.children)r(o,1);return n}var Mx=new WeakMap;function Lx(e,t){let n=Mx.get(e),r=n?.get(t);if(r!==void 0)return r;let o=false,a=false,i,l="",s=Vr(),d=u=>{let f=ba-l.length;if(f<=0){a=true;return}l+=u.length>f?u.slice(0,f):u;},c=(u,f,m)=>{if(a||u.kind==="textValue"||m>=chunkCB6RQ3GD_cjs.la||s.exhausted||f>Zt)return;if(u.kind==="bookmarkStart"){!o&&ns(u,"name")===t&&(o=true,i=ns(u,"id"));return}if(u.kind==="bookmarkEnd"){o&&i!==void 0&&ns(u,"id")===i&&(a=true);return}if(u.kind==="run"){if(!o)return;for(let g of u.children){if(a||!yt(s))return;if(g.kind==="text")for(let h of g.children)h.kind==="textValue"&&d(h.value);else g.kind==="tab"&&d(" ");}return}if(Tm(u)||chunkCB6RQ3GD_cjs.ke(u)||!yt(s))return;let p=chunkCB6RQ3GD_cjs.ma(u,m);for(let g of u.children)c(g,f+1,p);};for(let u of e.children){if(a||!yt(s))break;c(u,1,0);}return n||(n=new Map,Mx.set(e,n)),n.set(t,l),l}function Ex(e){return [e.fontFamily??"",e.fontSizePt,e.bold?1:0,e.italic?1:0,e.characterSpacingPt,e.horizontalScalePercent,e.verticalAlign,e.hidden?1:0,e.kerningMinPt,e.ligatures?.standard?1:0,e.ligatures?.contextual?1:0,e.ligatures?.historical?1:0,e.ligatures?.discretionary?1:0,e.caps?1:0,e.smallCaps?1:0].join(",")}var Ax=new WeakMap,Nx=new WeakMap;function Oc(e,t){return t&&Ax.set(e,t),e}function rs(e){return e?Ax.get(e):void 0}function Dx(e){let t=rs(e);if(!t)return "";let n=Nx.get(t);return n||(n=chunkHZQFGB2X_cjs.B(chunkCB6RQ3GD_cjs.ra(t)),Nx.set(t,n)),n}function yo(e,t,n){if(!e.has(t)&&e.size>=8){let r=e.keys().next();r.done||e.delete(r.value);}e.set(t,n);}var os=new WeakMap,_x=new WeakMap;function Fc(e){return e&&e.kind!=="textValue"?_x.get(e)??null:null}function xa(e,t){return e.kind!=="textValue"&&e.namespaceUri===chunkCB6RQ3GD_cjs.da&&e.localName===t}function Mi(e,t,n){if(t==="all-markup"||e.kind==="textValue")return [];let r=[...ql(mo(e),t,n)],o=e.children.find(s=>s.kind==="paragraphProperties"),a=Fc(o);a&&r.push(a);let i=o&&o.kind!=="textValue"?o.children.find(s=>s.kind==="runProperties"):void 0,l=Fc(i);return l&&r.push(l),r}function Im(e,t,n,r=0){if(t==="all-markup"&&!n||r>=chunkCB6RQ3GD_cjs.W)return e;let o=`${t}|${n?.cacheKey??""}`,a=os.get(e)?.get(o);if(a)return a;let i=e.children,l=null,s=xa(e,"pPr")?"pPrChange":xa(e,"rPr")?"rPrChange":null,d=s?i.find(p=>xa(p,s)):void 0;if(d&&d.kind!=="textValue"){let p=y=>d.attributes.find(w=>w.namespaceUri===chunkCB6RQ3GD_cjs.da&&w.localName===y)?.value??"",g=p("date"),h={kind:"format",nodeId:d.id,id:p("id"),author:p("author"),...g===""?{}:{date:g}},x=n?Yl(n,h,t):t,b=x==="original"?chunkCB6RQ3GD_cjs.Rh(d):null;x==="proposed"&&(i=i.filter(y=>y!==d)),l=x==="proposed"&&(!n||Wr(n,h))?h:null,b!==null&&(s==="pPrChange"?i=[...b.filter(y=>!xa(y,"rPr")&&!xa(y,"sectPr")),...i.filter(y=>xa(y,"rPr")||xa(y,"sectPr"))]:i=[...i.filter(chunkCB6RQ3GD_cjs.Je),...b.filter(y=>!chunkCB6RQ3GD_cjs.Je(y))]);}let c=i!==e.children,u=i.map(p=>{if(p.kind==="textValue"||p.localName.endsWith("PrChange"))return p;let g=Im(p,t,n,r+1);return c||=g!==p,g}),f=c?{...e,children:u}:e;l&&_x.set(f,l);let m=os.get(e);if(m||os.set(e,m=new Map),yo(m,o,f),f!==e){let p=os.get(f);p||os.set(f,p=new Map),yo(p,o,f);}return f}function Bi(e,t,n){let r=[],o=0,a=e.members.length-1;return e.members.forEach((i,l)=>{let s=chunkCB6RQ3GD_cjs.Ze(i).length,d=l<a&&t?Mi(i,t,n):[];r.push({paragraphId:i.id,base:o,length:s,...d.length>0?{markChangeSites:d}:{}}),o+=s;}),{members:r,total:o}}function Om(e,t){let n;for(let r of e.members){if(r.base>t)break;(n===void 0||r.length>0||r.base>n.base)&&(n=r);}return n??e.members[e.members.length-1]}function jx(e,t){let n=Om(t,e.start);if(!n)return e;let r=e.end-n.base;return {paragraphId:n.paragraphId,start:e.start-n.base,end:Math.min(r,n.length)}}function dC(e,t){return {...e,range:jx(e.range,t)}}function Cc(e,t){let n=t.members.filter(r=>r.markChangeSites!==void 0).map(r=>({offset:r.base+r.length,sites:r.markChangeSites}));return e.map(r=>{let o=n.filter(p=>p.offset>=r.range.start&&(p.offset<r.range.end||p.offset===r.range.end&&p.offset===t.total)).flatMap(p=>p.sites),a=o.length>0?[...r.changeSites??[],...o]:r.changeSites,i=r.spans.map(p=>dC(p,t)),l=i[0],s=r.drawings?.map(p=>{let g=Om(t,p.start);return g?{...p,paragraphId:g.paragraphId,start:p.start-g.base}:p}),d=l?i.filter(p=>p.range.paragraphId===l.range.paragraphId):[],c=l?(s??[]).filter(p=>p.paragraphId===l.range.paragraphId):[],u=l?{paragraphId:l.range.paragraphId,start:Math.min(l.range.start,...c.map(p=>p.start)),end:Math.max(d[d.length-1].range.end,...c.map(p=>p.start+1))}:jx(r.range,t),f=s,m=r.deletedRanges?.map(p=>({deleted:p,member:Om(t,p.start)})).filter(({member:p})=>p?.paragraphId===u.paragraphId).map(({deleted:p,member:g})=>({start:p.start-(g?.base??0),end:p.end-(g?.base??0)}));return {...r,range:u,spans:i,...f?{drawings:f}:{},...m?{deletedRanges:m}:{},...a?{changeSites:a}:{}}})}function Hx(e,t){let n=e.map(o=>{if(o.projected||o.inlineDrawing||o.anchoredAtom||o.equation||o.positionalTab||o.breakKind||o.measureText!==void 0||o.fieldAtom||o.end-o.start!==o.text.length||/[\t\r\n]/u.test(o.text))return null;let{text:a,start:i,end:l,style:s,...d}=o;return JSON.stringify(d)}),r=[];for(let o=0;o<e.length;){let a=o+1;for(;a<e.length&&n[o]!==null&&n[a]===n[o]&&e[a-1].end===e[a].start&&!t?.has(e[a].start)&&Rb(e[o].style,e[a].style);)a++;let i=e[o];r.push(a===o+1?i:{...i,text:e.slice(o,a).map(l=>l.text).join(""),end:e[a-1].end}),o=a;}return r}function Wx(e){let t="children"in e?bo(e):null;return t?new Set(Bi(t).members.map(n=>n.base)):void 0}var Li=cC__default.default();function bt(e){let t=false;for(let n of e)if(n.localName==="bidi"){let r=n.attributes?.val;t=r===void 0||r==="1"||r==="true"||r==="on";}return t}function Mc(e){let t=false;for(let n of e){if(n.localName!=="rtl")continue;let r=n.attributes?.val;t=r===void 0||r==="1"||r==="true"||r==="on";}return t}var Vx=/[\u061c\u200e\u200f\u202a-\u202e\u2066-\u2069]/u;function uC(e,t,n){let r=Li.getEmbeddingLevels(t,n?"rtl":"ltr");if(Vx.test(t))return r;let o=0;for(let a=0;a<e.length;){let i=Mc(e[a].props),l=a,s=0;for(;l<e.length&&Mc(e[l].props)===i;)s+=e[l].text.length,l++;let d=Li.getEmbeddingLevels(t.slice(o,o+s),i?"rtl":"ltr");r.levels.set(d.levels,o),o+=s,a=l;}return r}function Gx(e,t,n){let r=e.map(s=>s.text).join("");if(!t&&!/[\u0590-\u08ff\ufb1d-\ufdff\ufe70-\ufeff]/u.test(r)&&!e.some(s=>Mc(s.props))||e.some(s=>s.projected||s.inlineDrawing||s.equation||s.positionalTab||s.measureText!==void 0||s.end-s.start!==s.text.length||s.text.includes(" ")))return e;let o=uC(e,r,t),a=!Vx.test(r),i=[],l=0;for(let s of Hx(e,n)){let d;try{d=Lb(s.text,l,o);}catch{return e}for(let c of d){let u={...s.style,shaping:{script:c.script,direction:c.direction,level:c.bidiLevel,baseLevel:t?1:0,...a?{runDirection:Mc(s.props)?"rtl":"ltr"}:{}}};i.push({...s,text:s.text.slice(c.from,c.to),start:s.start+c.from,end:s.start+c.to,style:u});}l+=s.text.length;}return i}function zx(e,t,n,r,o){for(let s=r-1;s>=n&&Array.from(e[s].text).every(d=>["WS","B","S"].includes(Li.getBidiCharTypeName(d)));s--)t[s]=o?1:0;let a=Array.from({length:r-n},(s,d)=>n+d),i=0,l=1/0;for(let s=n;s<r;s++)i=Math.max(i,t[s]),t[s]%2&&(l=Math.min(l,t[s]));for(let s=i;s>=l;s--)for(let d=0;d<a.length;){if(t[a[d]]<s){d++;continue}let c=d+1;for(;c<a.length&&t[a[c]]>=s;)c++;for(let u=d,f=c-1;u<f;u++,f--)[a[u],a[f]]=[a[f],a[u]];d=c;}return a}function Fm(e,t=e.some(n=>n.style.shaping?.baseLevel===1)){if(!e.some(l=>l.style.shaping))return e;if(e.some((l,s)=>s>0&&(l.wrapAdvanceBefore??0)>0)){let l=[],s=0;for(let d=1;d<=e.length;d++)if(!(d<e.length&&!(e[d].wrapAdvanceBefore>0))){for(let c of Fm(e.slice(s,d),t))l.push(c);s=d;}return l}let n=e.map(l=>l.style.shaping?.level??0),r=[];if(e.every(l=>l.style.shaping?.runDirection!==void 0)){let l=e.length;for(;l>0&&Array.from(e[l-1].text).every(c=>["WS","B","S"].includes(Li.getBidiCharTypeName(c)));)l--;let s=c=>c>=l?t:e[c].style.shaping?.runDirection==="rtl",d=[];for(let c=0;c<e.length;){let u=s(c),f=c+1;for(;f<e.length&&s(f)===u;)f++;d.push({start:c,end:f,rtl:u}),c=f;}t&&d.reverse();for(let c of d)for(let u of zx(e,n,c.start,c.end,c.rtl))r.push(u);}else for(let l of zx(e,n,0,e.length,t))r.push(l);let o=[...e],a=e.reduce((l,s)=>Math.min(l,s.box.x),1/0),i=e.map((l,s)=>l.box.width+Math.max(0,(e[s+1]?.box.x??l.box.x+l.box.width)-l.box.x-l.box.width));for(let l of r){let s=e[l],d=n[l]%2?"rtl":"ltr",c=i[l]-s.box.width,u=s.text.split(" ").length-1,f=u>0?c/u:0;o[l]={...s,style:s.style.shaping?{...s.style,shaping:{...s.style.shaping,direction:d,...f>0?{wordSpacingPt:f}:{}}}:s.style,box:{...s.box,x:a,width:i[l]}},a+=i[l];}return o}function Bc(e,t){return e.length?e.reduce((n,r)=>Math.min(n,r.box.x),1/0):t}function Cm(e,t){if(!e.some(o=>o.style.shaping!==void 0))return null;let n=null,r=1/0;for(let o of e){let a=Math.max(o.box.x-t,t-o.box.x-o.box.width,0);a<r&&(n=o,r=a);}return n}function $x(e,t){if(!e.some(n=>n.style.shaping))return e;for(let n=e.length-1;n>=0;n--){let r=e[n],o=r.text.length;for(;o>0&&["WS","B","S"].includes(Li.getBidiCharTypeName(r.text[o-1]));)o--;if(o===0)continue;if(o===r.text.length)return e;let a=r.text.slice(o),i=Math.min(r.box.width,Ze(a,Ae(r.style,r.fontSlot),t)),l={...r,text:r.text.slice(0,o),range:{...r.range,end:r.range.start+o},box:{...r.box,width:r.box.width-i}},s={...r,text:a,range:{...r.range,start:r.range.start+o},box:{...r.box,x:r.box.x+r.box.width-i,width:i}};return [...e.slice(0,n),l,s,...e.slice(n+1)]}return e}var fC="http://schemas.openxmlformats.org/officeDocument/2006/relationships",mC=64,pC=8,gC=256,Lc=1584,hC=64;function yC(e){return (e-2)/6}function Ux(e,t){if(!Number.isFinite(t))return null;let n=yC(t);if(!Number.isFinite(n)||n<=0)return null;let r=e.width*n,o=e.height*n;return !Number.isFinite(r)||!Number.isFinite(o)||r<=0||o<=0||r>Lc||o>Lc?null:{relationshipId:e.relationshipId,width:r,height:o,authored:e}}function Xx(e){return e.kind!=="textValue"}function Kx(e){return !Number.isFinite(e)||e<=0?null:e>Lc?Lc:e}function bC(e){let t=[{node:e,depth:0}],n=0;for(;t.length>0;){let r=t.shift();if(n>=gC)return null;n+=1;let o=r.node;if(o.namespaceUri===chunkCB6RQ3GD_cjs.Ta){let a=chunkCB6RQ3GD_cjs.Xa(o),i=a?Kx(chunkCB6RQ3GD_cjs.Wa(a.get("width"))):null,l=a?Kx(chunkCB6RQ3GD_cjs.Wa(a.get("height"))):null;if(i!==null&&l!==null)for(let s of chunkCB6RQ3GD_cjs.Va(o)){if(s.namespaceUri!==chunkCB6RQ3GD_cjs.Ta||s.localName!=="imagedata")continue;let d=chunkCB6RQ3GD_cjs.Ua(s,"id",fC);if(!(d===void 0||d.length===0||d.length>hC))return {relationshipId:d,width:i,height:l}}}if(!(r.depth>=pC))for(let a of o.children)Xx(a)&&t.push({node:a,depth:r.depth+1});}return null}function Yx(e){let t=new Map;if(!e)return t;let n=0;for(let r of e.children){if(!Xx(r)||r.namespaceUri!==chunkCB6RQ3GD_cjs.da||r.localName!=="numPicBullet")continue;if(n>=mC)break;n+=1;let o=chunkCB6RQ3GD_cjs.Ua(r,"numPicBulletId",chunkCB6RQ3GD_cjs.da);if(o===void 0||o.length===0||o.length>64||t.has(o))continue;let a=bC(r);a&&t.set(o,{picBulletId:o,...a});}return t}var qx=512,xC=9,Kn=31680/20,SC=8,PC=128;function as(e,t){return e.kind!=="textValue"&&e.namespaceUri===chunkCB6RQ3GD_cjs.da&&e.localName===t}function dt(e,t){for(let n of e.attributes)if(n.localName===t)return n.value}function nn(e,t){for(let n of e.children)if(as(n,t))return n}function lr(e,t=false){return e===void 0||!(t?/^-?\d{1,9}$/:/^\d{1,9}$/).test(e)?null:Number(e)}function RC(e){let t=e/20;return !Number.isFinite(t)||t<=0?0:t>Kn?Kn:t}function Ec(e){let t=e/20;return Number.isFinite(t)?t>Kn?Kn:t<-Kn?-Kn:t:0}function wC(e){let t={left:0,right:0,hanging:0,firstLine:0};if(!e)return t;let n=nn(e,"ind");if(!n)return t;let r={};for(let s of ["left","right","start","end"]){let d=lr(dt(n,s),true);d!==null&&(r[s]=Ec(d));}let o=lr(dt(n,"left")??dt(n,"start"),true),a=lr(dt(n,"right")??dt(n,"end"),true),i=lr(dt(n,"hanging")),l=lr(dt(n,"firstLine"),true);return {...r.start!==void 0||r.end!==void 0?{authored:r}:{},left:o===null?0:Ec(o),right:a===null?0:Ec(a),hanging:i===null?0:RC(i),firstLine:l===null?0:Ec(l),stated:{left:o!==null,right:a!==null,firstLineOffset:i!==null||l!==null}}}function kC(e){return e==="space"?"space":e==="nothing"?"nothing":"tab"}function vC(e){return e==="center"?"center":e==="right"||e==="end"?"right":"left"}function TC(e,t){let n=nn(e,t);if(!n)return false;let r=dt(n,"val");return r!=="0"&&r!=="false"&&r!=="off"}function Zx(e,t){let n=nn(e,t);if(!n)return;let r=dt(n,"val");if(!(r===void 0||r.length===0||r.length>PC))return r}function IC(e,t){for(let n of e){if(n.localName!==t)continue;let r=n.attributes?.val;return !(r==="0"||r==="false")}return false}function Jx(e){let t=lr(dt(e,"ilvl"));if(t===null||t<0||t>8)return null;let n=nn(e,"start"),r=1;if(n){let w=lr(dt(n,"val"));w!==null&&w>=0&&(r=Math.min(w,9999));}let o=nn(e,"numFmt"),a=(o?dt(o,"val"):void 0)??"decimal",i=nn(e,"lvlText"),l=i?dt(i,"val")??"":"",s=nn(e,"lvlJc"),d=vC(s?dt(s,"val"):void 0),c=nn(e,"suff"),u=kC(c?dt(c,"val"):void 0),f=nn(e,"lvlRestart"),m;if(f){let w=lr(dt(f,"val"));w!==null&&w>=0&&w<=9&&(m=w);}let p=nn(e,"lvlPicBulletId"),g=p?dt(p,"val"):void 0,h=g!==void 0&&g.length>0&&g.length<=64?g:void 0,x=nn(e,"pPr"),b=nn(e,"rPr"),y=b?Ci(b):[];return Oc({ilvl:t,start:r,numFmt:a.length>64?"decimal":a,lvlText:l.length>64?l.slice(0,64):l,lvlJc:d,suff:u,indent:wC(x),...m!==void 0?{lvlRestart:m}:{},...h!==void 0?{picBulletId:h}:{},isLgl:TC(e,"isLgl"),runProperties:y,vanish:IC(y,"vanish")},x)}function OC(e){let t=dt(e,"abstractNumId");if(t===void 0||t.length===0||t.length>64)return null;let n=new Map;for(let a of e.children){if(!as(a,"lvl"))continue;if(n.size>=9)break;let i=Jx(a);i&&!n.has(i.ilvl)&&n.set(i.ilvl,i);}let r=Zx(e,"numStyleLink"),o=Zx(e,"styleLink");return {abstractNumId:t,levels:n,...r!==void 0?{numStyleLink:r}:{},...o!==void 0?{styleLink:o}:{}}}function FC(e){let t=lr(dt(e,"ilvl"));if(t===null||t<0||t>8)return null;let n=nn(e,"startOverride"),r;if(n){let i=lr(dt(n,"val"));i!==null&&i>=0&&(r=Math.min(i,9999));}let o=nn(e,"lvl"),a=o?Jx(o)??void 0:void 0;return r===void 0&&a===void 0?{ilvl:t,override:{}}:{ilvl:t,override:{...r!==void 0?{startOverride:r}:{},...a?{level:a}:{}}}}function CC(e){let t=dt(e,"numId");if(t===void 0||t.length===0||t.length>64)return null;let n=nn(e,"abstractNumId"),r=n?dt(n,"val"):void 0;if(!r||r.length>64)return null;let o=new Map;for(let a of e.children){if(!as(a,"lvlOverride"))continue;if(o.size>=xC)break;let i=FC(a);i&&!o.has(i.ilvl)&&o.set(i.ilvl,i.override);}return {numId:t,abstractNumId:r,overrides:o}}function Qx(e){let t=new Map,n=new Map;if(!e)return {abstractNums:t,nums:n};let r=0,o=0;for(let i of e.children){if(as(i,"abstractNum")){if(r>=qx)continue;r+=1;let l=OC(i);l&&!t.has(l.abstractNumId)&&t.set(l.abstractNumId,l);continue}if(as(i,"num")){if(o>=qx)continue;o+=1;let l=CC(i);l&&!n.has(l.numId)&&n.set(l.numId,l);}}let a=Yx(e);return a.size>0?{abstractNums:t,nums:n,pictureBullets:a}:{abstractNums:t,nums:n}}function MC(e,t,n){let r=new Set([t.abstractNumId]),o=t;for(let a=0;a<SC;a+=1){let i=o.numStyleLink;if(i===void 0)return o;let l=n(i);if(l===void 0)return null;let s=e.nums.get(l);if(!s)return null;let d=e.abstractNums.get(s.abstractNumId);if(!d||r.has(d.abstractNumId))return null;r.add(d.abstractNumId),o=d;}return null}function eS(e,t){let n=false,r=new Map(e.abstractNums);for(let[o,a]of e.abstractNums){if(a.numStyleLink===void 0)continue;let i=MC(e,a,t);!i||i.levels===a.levels||i.levels.size===0||(r.set(o,{...a,levels:i.levels}),n=true);}return n?e.pictureBullets?{abstractNums:r,nums:e.nums,pictureBullets:e.pictureBullets}:{abstractNums:r,nums:e.nums}:e}function Ei(e,t,n){if(n<0||n>8)return null;let r=e.nums.get(t);if(!r)return null;let o=e.abstractNums.get(r.abstractNumId);if(!o)return null;let a=r.overrides.get(n),i=a?.level??o.levels.get(n);return i?{abstractNumId:r.abstractNumId,level:i,...a?.startOverride!==void 0?{startOverride:a.startOverride}:{}}:null}var tS=Object.freeze({abstractNums:new Map,nums:new Map});function BC(e,t){let n=e.nums.get(t),r=[];for(let o=0;o<=8;o+=1){let a=Ei(e,t,o);if(!a){r.push(1);continue}let i=n?.overrides.get(o)?.startOverride;r.push(i??a.level.start);}return r}function LC(e,t,n){let r=[];for(let o=0;o<=8;o+=1){let a=Ei(e,t,o);r.push(a?.level.numFmt??"decimal");}return {formats:r,starts:[...n]}}function nS(e,t){return t?e.map(n=>n==="bullet"||n==="none"?n:"decimal"):e}function EC(e,t){if(t===0)return null;if(t===void 0)return e-1;let n=t-1;return n>=e?null:n}function rS(e){let t=new Map,n=new Map,r=new Map,o=a=>{let i=t.get(a);i||(i=[0,0,0,0,0,0,0,0,0],t.set(a,i));let l=n.get(a);l||(l=[false,false,false,false,false,false,false,false,false],n.set(a,l));let s=r.get(a);return s||(s=BC(e,a),r.set(a,s)),{counters:i,initialized:l,starts:s}};return {advance(a,i){if(i<0||i>8||a.length===0||a.length>64)return null;let l=Ei(e,a,i);if(!l)return null;let{abstractNumId:s,level:d}=l,{counters:c,initialized:u,starts:f}=o(a),{formats:m}=LC(e,a,f);for(let P=i+1;P<=8;P+=1){let R=Ei(e,a,P);if(!R)continue;let O=EC(P,R.level.lvlRestart);O!==null&&i<=O&&(u[P]=false);}let p=f[i]??d.start;u[i]?c[i]+=1:(c[i]=p,u[i]=true);let g=c.slice(),h=u.slice(),x=g.map((P,R)=>h[R]?P:f[R]??1),b=nS(m,d.isLgl),y=d.vanish?"":d.numFmt==="bullet"&&!/%[1-9]/.test(d.lvlText)?d.lvlText:wm(d.lvlText,x,b),w={abstractNumId:s,numId:a,ilvl:i,level:d,counters:g,markerText:y};return oS.set(w,x),w}}}var oS=new WeakMap;function aS(e){return oS.get(e)??e.counters}var NC=/[\p{L}\s]/u;function AC(e){let t="";for(let n=0;n<e.length;n+=1){let r=e[n],o=e[n+1];if(r==="%"&&o!==void 0&&o>="1"&&o<="9"){t+=r+o,n+=1;continue}NC.test(r)||(t+=r);}return t}function iS(e,t=false,n=false){let{index:r,numId:o,ilvl:a,expandCounters:i}=e;if(a<0||a>8)return null;let l=[],s=[];for(let m=0;m<=8;m+=1){let p=Ei(r,o,m);l.push(m<=a?p?.level??null:null),s.push(p?.level.numFmt??"decimal");}let d=m=>m!==null&&m.numFmt!=="bullet"&&m.numFmt!=="none"&&m.lvlText.length>0;if(!d(l[a]??null))return null;let c=[],u=[];for(let m=a;m>=0&&!(t&&m!==a);m-=1){let p=l[m];d(p)&&(m!==a&&u.some(g=>g.includes(`%${m+1}`))||(c.push(m),u.push(p.lvlText)));}c.reverse();let f="";for(let m of c){let p=l[m],g=n?AC(p.lvlText):p.lvlText;f+=wm(g,i,nS(s,p.isLgl));}return f.length>0?f:null}var DC=Object.freeze([Object.freeze({localName:"spacing",attributes:Object.freeze({after:"160",line:"278",lineRule:"auto"})})]);function lS(e){if(e.namespaceUri!==chunkCB6RQ3GD_cjs.da)return [];let t=e.children.find(n=>n.kind!=="textValue"&&n.namespaceUri===chunkCB6RQ3GD_cjs.da&&n.localName==="docDefaults");return !t||t.kind==="textValue"||t.children.some(n=>n.kind!=="textValue"&&n.namespaceUri===chunkCB6RQ3GD_cjs.da&&n.localName==="pPrDefault")?[]:DC}var sS=Object.freeze([Object.freeze({localName:"kern",attributes:Object.freeze({val:"2"})})]),_C=Object.freeze([...sS,Object.freeze({localName:"ligatures",attributes:Object.freeze({val:"standardContextual"})})]);function Mm(e,t=false){let n=t?_C:sS;if(!e)return n;if(e.namespaceUri!==chunkCB6RQ3GD_cjs.da)return [];let r=e.children.find(o=>o.kind!=="textValue"&&o.namespaceUri===chunkCB6RQ3GD_cjs.da&&o.localName==="docDefaults");return r&&r.kind!=="textValue"&&r.children.some(o=>o.kind!=="textValue"&&o.namespaceUri===chunkCB6RQ3GD_cjs.da&&o.localName==="rPrDefault")?[]:n}function dS(e){if(!e||e.namespaceUri!==chunkCB6RQ3GD_cjs.da||e.localName!=="settings")return false;let t=yi(e);if(t!==void 0&&![11,12,14].includes(t))return false;let n=false;for(let r of e.children)if(!(r.kind==="textValue"||r.namespaceUri!==chunkCB6RQ3GD_cjs.da||r.localName!=="compat"))for(let o of r.children){if(o.kind!=="textValue"&&o.namespaceUri===chunkCB6RQ3GD_cjs.da&&o.localName==="compatSetting"&&t===void 0){let i=l=>o.attributes.find(s=>s.namespaceUri===chunkCB6RQ3GD_cjs.da&&s.localName===l)?.value;if(i("name")==="compatibilityMode"&&i("uri")==="http://schemas.microsoft.com/office/word")return false}if(o.kind==="textValue"||o.namespaceUri!==chunkCB6RQ3GD_cjs.da||o.localName!=="noExtraLineSpacing")continue;let a=o.attributes.find(i=>i.namespaceUri===chunkCB6RQ3GD_cjs.da&&i.localName==="val")?.value;n=a===void 0||a==="1"||a==="true"||a==="on";}return n}var Bm=Object.freeze({kinsoku:true,overflowPunctuation:true,characterWrap:false}),Nc=e=>!["0","false","off"].includes(e??"");function cS(e){let t=false,n="doNotCompress",r=Object.create(null),o=Object.create(null);for(let a of e?.children??[]){if(!("localName"in a)||a.namespaceUri!=="http://schemas.openxmlformats.org/wordprocessingml/2006/main")continue;let i=a.attributes.find(d=>d.localName==="val"&&d.namespaceUri===a.namespaceUri)?.value;if(a.localName==="strictFirstAndLastChars"&&(t=Nc(i)),a.localName==="characterSpacingControl"&&(i==="doNotCompress"||i==="compressPunctuation"||i==="compressPunctuationAndJapaneseKana")&&(n=i),a.localName!=="noLineBreaksBefore"&&a.localName!=="noLineBreaksAfter")continue;let l=a.attributes.find(d=>d.localName==="lang"&&d.namespaceUri===a.namespaceUri)?.value.toLowerCase();if(!l||!/^[a-z]{2,3}(?:-[a-z0-9]{2,8}){0,3}$/.test(l))continue;let s=a.localName==="noLineBreaksBefore"?r:o;(Object.keys(s).length<64||Object.hasOwn(s,l))&&(s[l]=(i??"").slice(0,4096));}return Object.freeze({strict:t,compression:n,before:Object.freeze(r),after:Object.freeze(o)})}function Ac(e,t){let{kinsoku:n,overflowPunctuation:r,characterWrap:o}=Bm;for(let a of e)a.localName==="kinsoku"&&(n=Nc(a.attributes?.val)),a.localName==="overflowPunct"&&(r=Nc(a.attributes?.val)),a.localName==="wordWrap"&&(o=!Nc(a.attributes?.val));return {settings:t,kinsoku:n,overflowPunctuation:r,characterWrap:o}}function is(e){let t;for(let n of e){if(n.localName!=="lang")continue;let r=n.attributes?.eastAsia??n.attributes?.val;r&&/^(ja|zh|ko)(-|$)/i.test(r)&&(t=r.toLowerCase());}return t}var jC="!%),.:;?]}\xA2\xB0\u2019\u201D\u2030\u2032\u2033\u2103\u3001\u3002\u3005\u3009\u300B\u300D\u300F\u3011\u3015\u309B\u309C\u309D\u309E\u30FB\u30FD\u30FE\uFF01\uFF05\uFF09\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF3D\uFF5D\uFF61\uFF63\uFF64\uFF65\uFF9E\uFF9F\uFFE0",HC="$([\\{\xA3\xA5\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF04\uFF08\uFF3B\uFF5B\uFF62\uFFE1\uFFE5",WC="!%),.:;>?]}\xA2\xA8\xB0\xB7\u02C7\u02C9\u2015\u2016\u2019\u201D\u2026\u2030\u2032\u2033\u203A\u2103\u2236\u3001\u3002\u3003\u3009\u300B\u300D\u300F\u3011\u3015\u3017\u301E\uFE36\uFE3A\uFE3E\uFE40\uFE44\uFE5A\uFE5C\uFE5E\uFF01\uFF02\uFF05\uFF07\uFF09\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF3D\uFF40\uFF5C\uFF5D\uFF5E\uFFE0",zC="$([{\xA3\xA5\xB7\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\u3016\u301D\uFE59\uFE5B\uFE5D\uFF04\uFF08\uFF0E\uFF3B\uFF5B\uFFE1\uFFE5",VC="! ),.:;?]}\xA2\xB7\u2013\u2014\u2019\u201D\u2022\u2025\u2026\u2027\u2032\u2574\u3001\u3002\u3009\u300B\u300D\u300F\u3011\u3015\u301E\uFE30\uFE31\uFE33\uFE34\uFE36\uFE38\uFE3A\uFE3C\uFE3E\uFE40\uFE42\uFE44\uFE4F\uFE50\uFE51\uFE52\uFE54\uFE55\uFE56\uFE57\uFE5A\uFE5C\uFE5E\uFF01\uFF09\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF3D\uFF5C\uFF5D\uFF64".replace(" ",""),GC="([{\xA3\xA5\u2018\u201C\u2035\u3008\u300A\u300C\u300E\u3010\u3014\u301D\uFE35\uFE37\uFE39\uFE3B\uFE3D\uFE3F\uFE41\uFE43\uFE59\uFE5B\uFE5D\uFF08\uFF5B",$C="!%),.:;?]}\xA2\xB0\u2019\u201D\u2032\u2033\u2103\u3009\u300B\u300D\u300F\u3011\u3015\uFF01\uFF05\uFF09\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF3D\uFF5D\uFFE0",KC="$([\\{\xA3\xA5\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF04\uFF08\uFF3B\uFF5B\uFFE1\uFFE5\uFFE6",UC="\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u30FC\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F\uFF70";function uS(e,t){let n=e.split("-")[0],r=/^zh-(tw|hk|mo|hant)(-|$)/.test(e),o=n==="zh"?r?VC:WC:n==="ko"?$C:jC,a=n==="zh"?r?GC:zC:n==="ko"?KC:HC;return n==="ja"&&t?.strict&&(o+=UC),o=t?.before[e]??o,a=t?.after[e]??a,{before:o,after:a}}function Sa(e){return e>=11904&&e<=12591||e>=12736&&e<=40959||e>=63744&&e<=64255||e>=65072&&e<=65103||e>=65281&&e<=65439||e>=131072&&e<=205743}var pS=e=>new Set([...e].map(t=>t.codePointAt(0))),ls=pS("\u3002\uFF0E\uFF0C\u3001\uFF1B\uFF1A\uFF1F\uFF01\u300D\u300F\uFF09\u3011\u3009\u300B\u3015\u3017\u3019\u301B\uFF5D\uFF3D\uFF1E\uFF05\u3000\u30FB\uFF61\uFF63\uFF64\uFF65\uFF70\uFF9E\uFF9F\u3005\u301C\u309D\u309E\u30FD\u30FE\u30FC\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F"),ss=pS("\u300C\u300E\uFF08\u3010\u3008\u300A\u3014\u3016\u3018\u301A\uFF5B\uFF3B\uFF1C\uFF62\uFF04\uFFE5");function gS(e,t){return !(!Sa(e)||!Sa(t)||ss.has(e)||ls.has(t))}function Un(e){if(e.length===0)return;let t=e.charCodeAt(e.length-1);return t>=56320&&t<=57343&&e.length>=2?e.codePointAt(e.length-2):t}var _c=new Set(["-","\u2010","\u2013","\u2014"]),fS=11904;function XC(e){let t=null;return n=>{if(t===null){t=new Set;for(let r of et(e))t.add(r.utf16From);t.add(e.length);}return t.has(n)}}function YC(e,t){let n=[],r=0,o=0;for(;r<e.length||o<t.length;){let a=r<e.length?e[r]:Number.POSITIVE_INFINITY,i=o<t.length?t[o]:Number.POSITIVE_INFINITY;a<i?(n.push(a),r+=1):(n.push(i),o+=1);}return n}function Pa(e,t){let n=[];for(let o=0;o<e.length;o+=1){let a=e[o];a===" "?(o>0&&n[n.length-1]!==o&&n.push(o),n.push(o+1)):(a===" "||_c.has(a)&&o>0&&e[o-1]!==" "&&o+1<e.length&&e[o+1]!==" "&&!_c.has(e[o+1]))&&n.push(o+1);}let r=n;if(t){let o=[],a=XC(e);for(let i=0;i<e.length;){let l=e.codePointAt(i),s=i+(l>65535?2:1);if(s>=e.length)break;gS(l,e.codePointAt(s))&&a(s)&&o.push(s),i=s;}o.length>0&&(r=YC(n,o));}return r[r.length-1]!==e.length&&r.push(e.length),r}function jc(e,t){return !(t!==void 0&&ls.has(t)||e!==void 0&&ss.has(e))}function hS(e,t){return t<=0||t>=e.length?true:jc(Un(e.slice(0,t)),e.codePointAt(t))}var Dc=new Map,mS=-1;function qC(e,t){let n=tc();(mS!==n||Dc.size>=2048)&&(Dc.clear(),mS=n);let r=e*1114112+t,o=Dc.get(r);if(o!==void 0)return o;let a=0;for(let l of et(String.fromCodePoint(e,t)))a+=1;let i=a>1;return Dc.set(r,i),i}function Hc(e,t,n){let r=n||e===""||/[\s ]$/.test(e)||/^[\s ]/.test(t)||_c.has(e[e.length-1])&&!_c.has(t[0]),o=e.length===0?0:e.charCodeAt(e.length-1);if(o<fS&&t.charCodeAt(0)<fS)return r?"opens":"continues";if(o===9)return "opens";let a=Un(e),i=t.codePointAt(0);return a!==void 0&&!qC(a,i)||!jc(a,i)?"forbidden":r||a!==void 0&&gS(a,i)?"opens":"continues"}var ZC=Object.freeze({inTableCell:true,compatibilityMode:void 0,anchorsWrapText:true,rowsClearOutOfCellFloats:false});function Ra(e,t,n){return Object.freeze({inTableCell:e===true,compatibilityMode:t.compatibilityMode,anchorsWrapText:t.anchorsWrapText!==false||e===true,rowsClearOutOfCellFloats:n!==void 0&&t.outOfCellFloatParagraphs?.has(n)===true})}function ds(e,t){if(!t.inTableCell||bi(t.compatibilityMode))return true;let n=e.position;return n?.horizontal.relativeFrom==="character"||n?.vertical.relativeFrom==="line"?true:e.anchor?.layoutInCell??true}function Lm(e,t){return t.anchorCellBox!=null&&!ds(e,t.cellAnchorScope??ZC)}function yS(e,t,n){return {anchorCellBox:Object.freeze({x:0,y:0,width:e,height:Math.max(1,t)}),cellAnchorScope:n}}function wa(e){let t=e.pageHeight;return Object.freeze({x:-e.marginLeft,y:-e.contentInsetTop,width:e.pageWidth,height:t!==void 0&&Number.isFinite(t)&&t>0?t:e.contentBandHeight+e.contentInsetTop+e.contentInsetBottom})}var bS=21600;function ct(e){return Number.isFinite(e)?e:0}function cs(e){if(e.length===0)return Object.freeze([]);let t=[...e].sort((o,a)=>o.start-a.start||o.end-a.end),n=[],r=t[0];for(let o=1;o<t.length;o+=1){let a=t[o];a.start<=r.end+1e-4?r=Object.freeze({start:r.start,end:Math.max(r.end,a.end)}):(n.push(r),r=a);}return n.push(r),Object.freeze(n)}function zc(e,t){let n=[];for(let r of e)for(let o of t){let a=Math.max(r.start,o.start),i=Math.min(r.end,o.end);i>a+1e-6&&n.push(Object.freeze({start:a,end:i}));}return cs(n)}function Em(e,t,n){let r=[];for(let o of e){let a=Math.max(o.start,t),i=Math.min(o.end,n);i>a+1e-6&&r.push(Object.freeze({start:a,end:i}));}return cs(r)}function JC(e,t,n){let r=[],o=t;for(let a of e)a.start>o&&r.push(Object.freeze({start:o,end:a.start})),o=Math.max(o,a.end);return o<n&&r.push(Object.freeze({start:o,end:n})),Object.freeze(r)}function SS(e,t){return Ni(e,t)}function Nm(e,t,n){return SS(Ni(e,t),n)}function QC(e,t){let n=[],r=Math.min(e.length,Vt);if(r<2)return Object.freeze([]);for(let o=0;o<r;o+=1){let a=e[o],i=e[(o+1)%r],l=a.y,s=i.y;if(l===s)continue;let d=Math.min(l,s),c=Math.max(l,s);if(t<d||t>c||t===c&&s>l||t===d&&s<l)continue;let u=(t-l)/(s-l),f=a.x+u*(i.x-a.x);Number.isFinite(f)&&n.push({x:f,delta:s>l?1:-1});}return n.sort((o,a)=>o.x-a.x||o.delta-a.delta),Object.freeze(n)}function eM(e,t){let n=[],r=Math.min(e.length,Vt);for(let o=0;o<r;o+=1){let a=e[o],i=e[(o+1)%r];if(a.y!==i.y||Math.abs(t-a.y)>1e-6)continue;let l=Math.min(a.x,i.x),s=Math.max(a.x,i.x);s>l&&n.push(Object.freeze({start:l,end:s}));}return cs(n)}function xS(e,t,n){let r=tM(QC(e,t),n),o=eM(e,t);return cs([...r,...o])}function tM(e,t){if(e.length===0)return Object.freeze([]);let n=[];if(t==="evenodd"){for(let a=0;a+1<e.length;a+=2){let i=e[a].x,l=e[a+1].x;l>i&&n.push(Object.freeze({start:i,end:l}));}return Object.freeze(n)}let r=0,o=null;for(let a of e){let i=r;r+=a.delta,i===0&&r!==0?o=a.x:i!==0&&r===0&&o!==null&&(a.x>o&&n.push(Object.freeze({start:o,end:a.x})),o=null);}return Object.freeze(n)}function nM(e,t){return Object.freeze({top:ct(e.top)+ct(t.top),right:ct(e.right)+ct(t.right),bottom:ct(e.bottom)+ct(t.bottom),left:ct(e.left)+ct(t.left)})}function rM(e,t,n,r,o,a){let i=t.x-e.x,l=t.y-e.y,s=r.x-n.x,d=r.y-n.y,c=i*d-l*s;if(Math.abs(c)<1e-12)return null;let f=((n.x-e.x)*l-(n.y-e.y)*i)/c,m=((n.x-e.x)*d-(n.y-e.y)*s)/c;if(f<-1e-9||f>1+1e-9||m<-1e-9||m>1+1e-9)return null;let p=e.y+f*l;return !Number.isFinite(p)||p<o-1e-6||p>a+1e-6?null:p}function oM(e,t,n,r){let o=[],a=Math.min(e.length,Vt),i=Math.min(t.length,Vt);if(a<2||i<2)return Object.freeze([]);let l=Vt*Vt,s=0;for(let d=0;d<a;d+=1){let c=e[d],u=e[(d+1)%a];for(let f=0;f<i;f+=1){if(s>=l)return Object.freeze(o);s+=1;let m=t[f],p=t[(f+1)%i],g=rM(c,u,m,p,n,r);g!==null&&o.push(g);}}return Object.freeze(o)}function aM(e,t,n){let r=new Set;r.add(t),r.add(n);for(let o of e){let a=Math.min(o.length,Vt);for(let i=0;i<a;i+=1){let l=o[i].y;Number.isFinite(l)&&l>=t-1e-6&&l<=n+1e-6&&r.add(l);}for(let i=0;i<a;i+=1){let l=o[i],s=o[(i+1)%a],d=l.y,c=s.y;if(d!==c)for(let u of [t,n]){let f=Math.min(d,c),m=Math.max(d,c);u>=f&&u<=m&&r.add(u);}}}if(e.length>=2)for(let o of oM(e[0],e[1],t,n))r.add(o);return Object.freeze([...r].sort((o,a)=>o-a))}function iM(e,t,n,r){let o=xS(e,n,r);return t&&t.length>=3&&(o=zc(o,xS(t,n,"nonzero"))),o}function PS(e,t,n,r,o=null){let a=ct(n.top),i=ct(n.bottom),l=ct(n.left),s=ct(n.right),d=t-i,c=t+a,u=aM(o&&o.length>=3?[e,o]:[e],d,c),f=[],m=u.length>=2?u.flatMap((p,g)=>{if(g+1>=u.length)return [];let h=u[g+1];return h<=p+1e-6?[p]:[p,h,(p+h)/2]}):[d];for(let p of m){let g=iM(e,o,p,r);for(let h of g)f.push(Object.freeze({start:h.start-l,end:h.end+s}));}return cs(f)}function RS(e){let{x:t,y:n,width:r,height:o}=e;return Object.freeze([Object.freeze({x:t,y:n}),Object.freeze({x:t+r,y:n}),Object.freeze({x:t+r,y:n+o}),Object.freeze({x:t,y:n+o})])}function lM(e){let t=Math.max(0,ct(e.extentWidthPt)),n=Math.max(0,ct(e.extentHeightPt)),r=Vc(e.transform,t,n),o=Math.min(e.polygonEmu.length,Vt);if(o<3)return RS({x:e.anchorX,y:e.anchorY,width:t,height:n});let a=r.width/bS,i=r.height/bS,l=[];for(let s=0;s<o;s+=1){let d=e.polygonEmu[s];l.push(Object.freeze({x:ct(d.x)*a,y:ct(d.y)*i}));}return Gc({points:Object.freeze(l),sourceWidth:r.width,sourceHeight:r.height,offsetX:r.offsetX,offsetY:r.offsetY,crop:{left:0,top:0,right:0,bottom:0},transform:e.transform,layoutWidth:t,layoutHeight:n,anchorX:e.anchorX,anchorY:e.anchorY})}function sM(e,t){let n=t.effectInsets??Wc,r=t.wrapDistances??Wc,o=ct(t.contentLeft),a=ct(t.contentRight);if(t.mode==="topAndBottom"){let c=SS(Ni(t.contentBounds,n),r);return e<c.y||e>=c.y+c.height?Object.freeze([]):Em([{start:o,end:a}],o,a)}if(t.mode==="square"){let c=Nm(t.contentBounds,n,r);return e<c.y||e>=c.y+c.height?Object.freeze([]):Em([{start:c.x,end:c.x+c.width}],o,a)}let i=t.polygon&&t.polygon.length>=3?t.polygon:RS(t.contentBounds),l=t.mode==="through"?"evenodd":"nonzero",s=nM(r,n),d=PS(i,e,s,l,t.clipPolygon);return Em(d,o,a)}function dM(e){return e.length===0?null:Object.freeze({start:Math.min(...e.map(t=>t.start)),end:Math.max(...e.map(t=>t.end))})}function cM(e,t,n,r,o){if(n==="bothSides"||t.length===0)return e;let a=dM(t);if(!a)return e;if(n==="left")return Object.freeze(e.filter(s=>s.end<=a.start+1e-4));if(n==="right")return Object.freeze(e.filter(s=>s.start>=a.end-1e-4));let i=Math.max(0,a.start-r),l=Math.max(0,o-a.end);return i===l?Object.freeze(e.filter(s=>s.start>=a.end-1e-4)):i>l?Object.freeze(e.filter(s=>s.end<=a.start+1e-4)):Object.freeze(e.filter(s=>s.start>=a.end-1e-4))}function wS(e,t){let n=sM(e,t),r=JC(n,t.contentLeft,t.contentRight);return cM(r,n,t.textSide,t.contentLeft,t.contentRight)}function uM(e,t,n,r){return n.length<3?false:PS(n,t,r,"nonzero").some(a=>e>=a.start-1e-6&&e<=a.end+1e-6)}function Am(e,t,n){let r=n.effectInsets??Wc,o=n.hitBounds;if(e<o.x||e>o.x+o.width||t<o.y||t>o.y+o.height)return false;if(n.clipPolygon&&n.clipPolygon.length>=3)return uM(e,t,n.clipPolygon,r);let a=Ni(n.contentBounds,r);return e>=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height}function kS(e){let t=Object.freeze({top:ct(e.wrapDistancesEmu.top/sr),right:ct(e.wrapDistancesEmu.right/sr),bottom:ct(e.wrapDistancesEmu.bottom/sr),left:ct(e.wrapDistancesEmu.left/sr)}),n=e.mode==="tight"||e.mode==="through"?lM({polygonEmu:e.polygonEmu,extentWidthPt:e.extentWidthPt,extentHeightPt:e.extentHeightPt,anchorX:e.contentBounds.x,anchorY:e.contentBounds.y,transform:e.transform}):null;return Object.freeze({mode:e.mode,contentBounds:e.contentBounds,polygon:n,clipPolygon:e.geometry.clipPolygon,wrapDistances:t,effectInsets:e.geometry.effectInsets,textSide:e.textSide,contentLeft:e.contentLeft,contentRight:e.contentRight})}var mn=1e5,Vt=chunkCB6RQ3GD_cjs.m.maxPolygonPoints,Wc=Object.freeze({top:0,right:0,bottom:0,left:0}),fM=32,mM=.1,pM=new Set(["rect","ellipse","roundRect"]);function Ee(e){return Number.isFinite(e)?e:0}function Bn(e,t,n){return Number.isFinite(e)?Math.min(n,Math.max(t,e)):t}function vS(e,t){let n=e+t;return Number.isFinite(n)?n:0}function TS(e,t,n){let r=Bn(e,0,n),o=Bn(t,0,n);if(r<=0||o<=0)return {left:r,right:o};let a=r+o;if(a>=n){let i=(n-1)/a;r*=i,o*=i;}return {left:r,right:o}}function gM(e){let t=TS(Bn(e.left,0,mn),Bn(e.right,0,mn),mn),n=TS(Bn(e.top,0,mn),Bn(e.bottom,0,mn),mn);return Object.freeze({left:t.left,top:n.left,right:t.right,bottom:n.right})}function hM(e){let t=gM({left:e.left*mn,top:e.top*mn,right:e.right*mn,bottom:e.bottom*mn});return Object.freeze({left:t.left/mn,top:t.top/mn,right:t.right/mn,bottom:t.bottom/mn})}function yM(e){let t=n=>{if(!Number.isFinite(n))return 0;let r=n/sr;return !Number.isFinite(r)||Math.abs(r)>72e4?0:r};return Object.freeze({top:t(e.top),right:t(e.right),bottom:t(e.bottom),left:t(e.left)})}function Ni(e,t){let n=Ee(t.left),r=Ee(t.right),o=Ee(t.top),a=Ee(t.bottom);return Object.freeze({x:e.x-n,y:e.y-o,width:Math.max(0,vS(e.width,n+r)),height:Math.max(0,vS(e.height,o+a))})}function bM(e,t,n){let r=e*Bn(n.left,0,1),o=t*Bn(n.top,0,1),a=e*(1-Bn(n.right,0,1)),i=t*(1-Bn(n.bottom,0,1));if(a<=r||i<=o){let l=e/2,s=t/2;return Object.freeze({left:l,top:s,right:l,bottom:s})}return Object.freeze({left:r,top:o,right:a,bottom:i})}function Vc(e,t,n){let r=e.extentEmu?.cx??0,o=e.extentEmu?.cy??0,a=e.offsetEmu??{x:0,y:0},i=r>0?Ee(dr(r)??t):Math.max(0,Ee(t)),l=o>0?Ee(dr(o)??n):Math.max(0,Ee(n));return Object.freeze({offsetX:Ee(dr(a.x)??0),offsetY:Ee(dr(a.y)??0),width:i,height:l})}function xM(e,t,n,r){let o=bM(t,n,r),a=o.right-o.left,i=o.bottom-o.top,l=t>0?t:1,s=n>0?n:1,d=[],c=Math.min(e.length,Vt);for(let u=0;u<c;u+=1){let f=e[u],m=a<=0?o.left:o.left+Bn(f.x/l,0,1)*a,p=i<=0?o.top:o.top+Bn(f.y/s,0,1)*i;d.push(Object.freeze({x:Ee(m),y:Ee(p)}));}return Object.freeze(d)}function IS(e,t,n){let r=e.x-t.x,o=e.y-t.y;n.flipHorizontal&&(r=-r),n.flipVertical&&(o=-o);let a=Ee(n.rotationDegrees)*Math.PI/180,i=Math.cos(a),l=Math.sin(a),s=r*i-o*l,d=r*l+o*i;return Object.freeze({x:Ee(s+t.x),y:Ee(d+t.y)})}function OS(e){if(e.length===0)return Object.freeze({x:0,y:0,width:0,height:0});let t=e[0].x,n=e[0].x,r=e[0].y,o=e[0].y,a=Math.min(e.length,Vt);for(let i=1;i<a;i+=1){let l=e[i];!Number.isFinite(l.x)||!Number.isFinite(l.y)||(t=Math.min(t,l.x),n=Math.max(n,l.x),r=Math.min(r,l.y),o=Math.max(o,l.y));}return Object.freeze({x:t,y:r,width:Math.max(0,n-t),height:Math.max(0,o-r)})}function Dm(e){let t=Object.freeze({x:e.offsetX+e.sourceWidth/2,y:e.offsetY+e.sourceHeight/2}),n=us(0,0,e.sourceWidth,e.sourceHeight),r=[];for(let l of n)r.push(IS(Object.freeze({x:l.x+e.offsetX,y:l.y+e.offsetY}),t,e.transform));let o=OS(r),a=Math.max(o.width,1e-6),i=Math.max(o.height,1e-6);return Object.freeze({bboxX:o.x,bboxY:o.y,scaleX:Math.max(0,Ee(e.layoutWidth))/a,scaleY:Math.max(0,Ee(e.layoutHeight))/i,anchorX:Ee(e.anchorX),anchorY:Ee(e.anchorY)})}function SM(e,t){return Object.freeze({x:Ee(t.anchorX+(e.x-t.bboxX)*t.scaleX),y:Ee(t.anchorY+(e.y-t.bboxY)*t.scaleY)})}function Gc(e){let t=e.mapping??Dm({sourceWidth:e.sourceWidth,sourceHeight:e.sourceHeight,offsetX:e.offsetX,offsetY:e.offsetY,transform:e.transform,layoutWidth:e.layoutWidth,layoutHeight:e.layoutHeight,anchorX:e.anchorX,anchorY:e.anchorY}),n=xM(e.points,e.sourceWidth,e.sourceHeight,e.crop),r=Math.min(n.length>0?n.length:e.points.length,Vt),o=n.length>0?n:e.points.slice(0,r),a=Object.freeze({x:e.offsetX+e.sourceWidth/2,y:e.offsetY+e.sourceHeight/2}),i=[];for(let l=0;l<r;l+=1){let s=o[l],d=Object.freeze({x:Ee(s.x+e.offsetX),y:Ee(s.y+e.offsetY)});i.push(SM(IS(d,a,e.transform),t));}return Object.freeze(i)}function us(e,t,n,r){if(n<=0||r<=0){let o=Object.freeze({x:e,y:t});return Object.freeze([o,o,o,o])}return Object.freeze([Object.freeze({x:e,y:t}),Object.freeze({x:e+n,y:t}),Object.freeze({x:e+n,y:t+r}),Object.freeze({x:e,y:t+r})])}function PM(e,t,n){if(!e||!pM.has(e))return null;if(t<=0||n<=0)return us(0,0,Math.max(0,t),Math.max(0,n));if(e==="rect")return us(0,0,t,n);if(e==="ellipse"){let l=[],s=t/2,d=n/2,c=t/2,u=n/2,f=Math.min(fM,Vt);for(let m=0;m<f;m+=1){let p=m/f*Math.PI*2;l.push(Object.freeze({x:s+c*Math.cos(p),y:d+u*Math.sin(p)}));}return Object.freeze(l)}let r=Math.min(t,n)*mM,o=Math.max(0,r),a=t,i=n;return Object.freeze([Object.freeze({x:o,y:0}),Object.freeze({x:a-o,y:0}),Object.freeze({x:a,y:o}),Object.freeze({x:a,y:i-o}),Object.freeze({x:a-o,y:i}),Object.freeze({x:o,y:i}),Object.freeze({x:0,y:i-o}),Object.freeze({x:0,y:o})])}function Di(e){return Object.freeze({x:Ee(e.x),y:Ee(e.y)})}function RM(e,t){if(e.length===0)return Object.freeze([]);let n=t.x+t.width,r=t.y+t.height,o=(i,l,s)=>{if(i.length===0)return Object.freeze([]);let d=[],c=Math.min(i.length,Vt);for(let u=0;u<c;u+=1){let f=Di(i[u]),m=Di(i[(u+1)%c]),p=l(f),g=l(m);if(p&&g?d.push(m):p&&!g?d.push(Di(s(f,m))):!p&&g&&(d.push(Di(s(f,m))),d.push(m)),d.length>=Vt)break}return Object.freeze(d.slice(0,Vt))},a=e.slice(0,Vt).map(Di);return a=[...o(a,i=>i.x>=t.x,(i,l)=>{let s=l.x-i.x,d=Math.abs(s)>1e-6?(t.x-i.x)/s:0;return Object.freeze({x:t.x,y:Ee(i.y+d*(l.y-i.y))})})],a=[...o(a,i=>i.x<=n,(i,l)=>{let s=l.x-i.x,d=Math.abs(s)>1e-6?(n-i.x)/s:0;return Object.freeze({x:n,y:Ee(i.y+d*(l.y-i.y))})})],a=[...o(a,i=>i.y>=t.y,(i,l)=>{let s=l.y-i.y,d=Math.abs(s)>1e-6?(t.y-i.y)/s:0;return Object.freeze({x:Ee(i.x+d*(l.x-i.x)),y:t.y})})],a=[...o(a,i=>i.y<=r,(i,l)=>{let s=l.y-i.y,d=Math.abs(s)>1e-6?(r-i.y)/s:0;return Object.freeze({x:Ee(i.x+d*(l.x-i.x)),y:r})})],Object.freeze(a)}function wM(e){let t=OS(e);return Object.freeze({x:t.x,y:t.y,width:t.width,height:t.height})}function $c(e,t){let n=kM(e.paintBounds,t),r=n.width>0&&n.height>0?n:Object.freeze({...n}),o=a=>{if(!a||a.length===0)return a;let i=RM(a,t);return i.length>=3?Object.freeze(i.map(Di)):Object.freeze([])};return Object.freeze({...e,paintBounds:n,hitBounds:r,transformedCorners:Object.freeze(o(e.transformedCorners)??e.transformedCorners),clipPolygon:o(e.clipPolygon)})}function kM(e,t){let n=Math.max(e.x,t.x),r=Math.max(e.y,t.y),o=Math.min(e.x+e.width,t.x+t.width),a=Math.min(e.y+e.height,t.y+t.height);return o<=n||a<=r?Object.freeze({x:n,y:r,width:0,height:0}):Object.freeze({x:n,y:r,width:o-n,height:a-r})}function vM(e){let t=Math.max(0,Ee(e.extentWidth)),n=Math.max(0,Ee(e.extentHeight)),r=Ee(e.anchorX),o=Ee(e.anchorY),a=hM(e.crop),i=yM(e.effectExtentEmu),l=Vc(e.transform,t,n),s=Object.freeze({x:r,y:o,width:t,height:n}),d={sourceWidth:l.width,sourceHeight:l.height,offsetX:l.offsetX,offsetY:l.offsetY,crop:a,transform:e.transform,layoutWidth:t,layoutHeight:n,anchorX:r,anchorY:o},c=Dm(d),u=Object.freeze({left:0,top:0,right:0,bottom:0}),f=Gc({points:us(0,0,l.width,l.height),...d,crop:u,mapping:c}),m=PM(e.presetGeometry,l.width,l.height),p="none",g=m;g||(p=e.presetGeometry?"unsupported-preset":"none",g=us(0,0,l.width,l.height));let h=Gc({points:g,...d,crop:u,mapping:c}),x=wM(h.length>=3?h:f),b=Ni(x,i);return Object.freeze({contentBounds:s,paintBounds:b,hitBounds:b,transformedCorners:f,imageTransformCorners:f,clipPolygon:h.length>=3?h:f,clipFallback:p,effectInsets:i})}function _i(e){let t=e.projection.picture,n=Object.freeze({rotationDegrees:0,flipHorizontal:false,flipVertical:false,offsetEmu:Object.freeze({x:0,y:0}),extentEmu:Object.freeze({cx:0,cy:0})});return vM({extentWidth:e.extentWidth,extentHeight:e.extentHeight,anchorX:e.anchorX,anchorY:e.anchorY,effectExtentEmu:e.projection.effectExtentEmu,crop:t?.crop??{left:0,top:0,right:0,bottom:0},transform:t?.transform??n,presetGeometry:t?.presetGeometry??null})}function TM(e){let{transform:t,contentWidth:n,contentHeight:r}=e;if(n<=0||r<=0)return null;let o=Vc(t,n,r),a=o.width,i=o.height,l=Dm({sourceWidth:a,sourceHeight:i,offsetX:o.offsetX,offsetY:o.offsetY,transform:t,layoutWidth:n,layoutHeight:r,anchorX:0,anchorY:0}),s=Ee(t.rotationDegrees),d=Math.abs(s%360)>1e-4,c=t.flipHorizontal?-1:1,u=t.flipVertical?-1:1,f=l.scaleX,m=l.scaleY,p=a>0?a/n:1,g=i>0?i/r:1;if(!d&&c===1&&u===1&&Math.abs(f-1)<1e-4&&Math.abs(m-1)<1e-4&&Math.abs(o.offsetX)<1e-4&&Math.abs(o.offsetY)<1e-4&&Math.abs(p-1)<1e-4&&Math.abs(g-1)<1e-4)return null;let x=s*Math.PI/180,b=Math.cos(x),y=Math.sin(x),w=o.offsetX+a/2,P=o.offsetY+i/2,R=f*b*c,O=-f*y*u,F=m*y*c,k=m*b*u,v=f*(w-b*c*(a/2)+y*u*(i/2)-l.bboxX),S=m*(P-y*c*(a/2)-b*u*(i/2)-l.bboxY);return Object.freeze({a:Ee(R*p),b:Ee(F*p),c:Ee(O*g),d:Ee(k*g),e:Ee(v),f:Ee(S)})}function AH(e){let t=TM(e);if(t)return `matrix(${Ai(t.a)}, ${Ai(t.b)}, ${Ai(t.c)}, ${Ai(t.d)}, ${Ai(t.e)}, ${Ai(t.f)})`}function Ai(e){return Number.isFinite(e)?String(e):"0"}function FS(e,t){let n=(r,o)=>{if(!(o>=chunkCB6RQ3GD_cjs.la)){if(r.kind==="run"){for(let a of r.children)t(a);return}if(chunkCB6RQ3GD_cjs.na(r)){for(let a of r.children)n(a,o+1);return}if(chunkCB6RQ3GD_cjs.Jd(r))for(let a of chunkCB6RQ3GD_cjs.Md(r))n(a,o+1);}};for(let r of e.children)n(r,0);}function Kc(e,t){let n=[],r=(o,a)=>{if(!(a>=chunkCB6RQ3GD_cjs.la)){if(o.kind==="run"){for(let i of o.children)(i.kind==="drawing"||chunkCB6RQ3GD_cjs.nb(i)||chunkCB6RQ3GD_cjs.Ya(i))&&t(i,n,o);return}if(chunkCB6RQ3GD_cjs.na(o)){n.push(o);for(let i of o.children)r(i,a+1);n.pop();return}if(chunkCB6RQ3GD_cjs.Jd(o)){n.push(o);for(let i of chunkCB6RQ3GD_cjs.Md(o))r(i,a+1);n.pop();}}};for(let o of e.children)r(o,0);}var CS=new WeakMap;function IM(e){if(e.kind!=="run")return false;let t=CS.get(e);return t===void 0&&(t=Ne(Gr(e,[])).hidden,CS.set(e,t)),t}function wt(e,t){if(e.kind!=="paragraph")return [];let n=[];return Kc(e,(r,o,a)=>{let i=Mn;for(let l of o){let s=qt(l)?tn(l):null;s&&(i=fn(i,s));}if(r.kind==="drawing"){let l=t.projectionForAtom?.(r.id)??t.project(r);l?.kind==="anchored"&&n.push({atomId:r.id,projection:l,revisions:i});return}if(chunkCB6RQ3GD_cjs.nb(r)||chunkCB6RQ3GD_cjs.Ya(r)){if(chunkCB6RQ3GD_cjs.Ya(r)&&IM(a))return;let l=t.projectionForAtom?.(r.id)??null;l?.kind==="anchored"&&n.push({atomId:r.id,projection:l,revisions:i});}}),Object.freeze(n)}function Rn(e){let t=new Map;if(e.kind!=="paragraph")return t;let n;return FS(e,r=>{if(r.kind!=="drawing"&&!chunkCB6RQ3GD_cjs.nb(r)&&!chunkCB6RQ3GD_cjs.Ya(r))return;let o=(n??=chunkCB6RQ3GD_cjs.Ze(e)).spanOf(r);o&&t.set(r.id,o.start);}),t}var OM=new Map([["http://schemas.openxmlformats.org/drawingml/2006/chart","chart"],["http://schemas.openxmlformats.org/drawingml/2006/diagram","diagram"],["http://schemas.microsoft.com/office/word/2010/wordprocessingGroup","group"],["http://schemas.microsoft.com/office/word/2010/wordprocessingShape","textbox"],["http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas","canvas"]]),FM=Object.freeze({rotationDegrees:0,flipHorizontal:false,flipVertical:false,offsetEmu:Object.freeze({x:0,y:0}),extentEmu:Object.freeze({cx:0,cy:0})}),CM=Object.freeze({left:0,top:0,right:0,bottom:0});function LS(e){let t=e.picture,n=null;if(!t){for(let r of e.diagnostics){if(r.code!=="unsupported-graphic")continue;let o=r.detail??"";n=OM.get(o)??"graphic";break}n===null&&(n="graphic");}return Object.freeze({hyperlinkHref:e.hyperlinkHref,effects:e.effects,crop:t?.crop??CM,transform:t?.transform??FM,placeholderGraphicKind:t||e.legacyGraphic?null:n,vectorShape:e.vectorShape})}var sr=12700;function pn(e){return e/sr}function dr(e){if(!Number.isFinite(e)||Math.abs(e)>1e4*sr*72)return null;let t=e/sr;return Number.isFinite(t)?t:null}function ur(e){let a=pn(e.effectExtentEmu.left),i=pn(e.effectExtentEmu.right),l=pn(e.effectExtentEmu.top),s=pn(e.effectExtentEmu.bottom),d=pn(e.extentEmu.cx),c=pn(e.extentEmu.cy);return Object.freeze({distL:0,distR:0,distT:0,distB:0,effectL:a,effectR:i,effectT:l,effectB:s,width:d,height:c,totalWidth:0+a+d+i+0,lineContribution:0+l+c+s+0})}function ES(e,t,n){let r=Math.max(n.distT+n.effectT,e-n.height),o=Math.max(t,r-n.effectT+n.height+n.effectB+n.distB),a=r+n.height+n.effectB;return Object.freeze({extentTopY:r,lineHeight:o,baseline:Math.max(e,a)})}function Uc(e,t,n){if(Math.abs(t)<1e-4&&Math.abs(n)<1e-4)return e;let r=a=>Object.freeze({...a,x:a.x+t,y:a.y+n}),o=a=>Object.freeze({x:a.x+t,y:a.y+n});return Object.freeze({...e,contentBounds:r(e.contentBounds),paintBounds:r(e.paintBounds),hitBounds:r(e.hitBounds),transformedCorners:Object.freeze(e.transformedCorners.map(o)),...e.imageTransformCorners?{imageTransformCorners:Object.freeze(e.imageTransformCorners.map(o))}:{},clipPolygon:e.clipPolygon?Object.freeze(e.clipPolygon.map(o)):null})}function Ln(e,t,n){return Math.abs(t)<1e-4&&Math.abs(n)<1e-4?e:Object.freeze({...e,x:e.x+t,y:e.y+n,advanceStart:e.advanceStart+t,advanceEnd:e.advanceEnd+t,paintBounds:Object.freeze({...e.paintBounds,x:e.paintBounds.x+t,y:e.paintBounds.y+n}),hitBounds:Object.freeze({...e.hitBounds,x:e.hitBounds.x+t,y:e.hitBounds.y+n}),geometry:Uc(e.geometry,t,n)})}function _m(e,t){return e.length===0?e:e.map(n=>{let r=n.geometry.effectInsets.bottom,o=t-n.height-r,a=o-n.y;return Math.abs(a)<1e-4&&n.baselineOffset===t?n:Object.freeze({...n,y:o,baselineOffset:t,geometry:Uc(n.geometry,0,a),paintBounds:Object.freeze({...n.paintBounds,y:n.paintBounds.y+a}),hitBounds:Object.freeze({...n.hitBounds,y:n.hitBounds.y+a})})})}function jm(e,t){let n=Math.max(e.x,t.x),r=Math.max(e.y,t.y),o=Math.min(e.x+e.width,t.x+t.width),a=Math.min(e.y+e.height,t.y+t.height);return o<=n||a<=r?Object.freeze({x:n,y:r,width:0,height:0}):Object.freeze({x:n,y:r,width:o-n,height:a-r})}function Xc(e,t){let n=jm(e.paintBounds,t),r=n.width>0&&n.height>0?n:Object.freeze({...n}),o=e.x-e.geometry.contentBounds.x,a=e.y-e.geometry.contentBounds.y,i=Uc(e.geometry,o,a);return Object.freeze({...e,paintBounds:n,hitBounds:r,geometry:$c(i,t)})}var MS=new Set(["character","column","insideMargin","leftMargin","margin","outsideMargin","page","rightMargin"]),BS=new Set(["bottomMargin","insideMargin","line","margin","outsideMargin","page","paragraph","topMargin"]);function cr(e){return e.onPageParityRead?.(),e.pageNumber%2===1}function NS(e,t){return !(!t.layoutInCell||t.cellBox===null||!Number.isFinite(t.cellBox.height)||t.cellBox.height<=0||!Number.isFinite(t.cellBox.width)||t.cellBox.width<=0)}function AS(e,t){if(NS(e,t)){let s=t.cellBox;if(!s)return null;let{x:d,width:c}=s;switch(e){case "column":{let u=t.cellContentBox??s;return {left:u.x,right:u.x+u.width,center:u.x+u.width/2}}case "page":case "margin":case "leftMargin":return {left:d,right:d+c,center:d+c/2};case "rightMargin":return {left:d,right:d+c,center:d+c/2};case "character":return {left:t.anchorCharacterX,right:t.anchorCharacterX,center:t.anchorCharacterX};case "insideMargin":return cr(t)?{left:d,right:d+c,center:d+c/2}:{left:d+c,right:d+c,center:d+c};case "outsideMargin":return cr(t)?{left:d+c,right:d+c,center:d+c}:{left:d,right:d+c,center:d+c/2};default:return null}}let n=-t.marginLeft,r=t.contentWidth+t.marginRight,o=0,a=t.contentWidth,i=t.columnBox.x,l=t.columnBox.x+t.columnBox.width;switch(e){case "page":return {left:n,right:r,center:(n+r)/2};case "margin":return {left:o,right:a,center:o+t.contentWidth/2};case "column":return {left:i,right:l,center:i+t.columnBox.width/2};case "character":return {left:t.anchorCharacterX,right:t.anchorCharacterX,center:t.anchorCharacterX};case "leftMargin":return {left:n,right:n,center:n};case "rightMargin":return {left:r,right:r,center:r};case "insideMargin":return cr(t)?{left:o,right:o,center:o}:{left:a,right:a,center:a};case "outsideMargin":return cr(t)?{left:r,right:r,center:r}:{left:n,right:n,center:n};default:return null}}function DS(e,t){if(NS(e,t)){let c=t.cellBox;if(!c)return null;let{y:u,height:f}=c;switch(e){case "page":case "margin":case "topMargin":case "bottomMargin":return {top:u,bottom:u+f,center:u+f/2};case "paragraph":return {top:t.paragraphBox.y,bottom:t.paragraphBox.y+t.paragraphBox.height,center:t.paragraphBox.y+t.paragraphBox.height/2};case "line":return {top:t.anchorLineBox.y,bottom:t.anchorLineBox.y+t.anchorLineBox.height,center:t.anchorLineBox.y+t.anchorLineBox.height/2};case "insideMargin":return cr(t)?{top:u,bottom:u+f,center:u+f/2}:{top:u+f,bottom:u+f,center:u+f};case "outsideMargin":return cr(t)?{top:u+f,bottom:u+f,center:u+f}:{top:u,bottom:u+f,center:u+f/2};default:return null}}let n=-t.contentInsetTop,r=t.contentBandHeight,o=n+t.pageHeight-t.marginBottom,a=r+t.contentInsetBottom,i=0,l=t.contentHeight,s=t.verticalMarginFrame?.top??i,d=s+(t.verticalMarginFrame?.height??t.contentHeight);switch(e){case "page":return {top:n,bottom:a,center:(n+a)/2};case "margin":return {top:s,bottom:d,center:(s+d)/2};case "paragraph":return {top:t.paragraphBox.y,bottom:t.paragraphBox.y+t.paragraphBox.height,center:t.paragraphBox.y+t.paragraphBox.height/2};case "line":return {top:t.anchorLineBox.y,bottom:t.anchorLineBox.y+t.anchorLineBox.height,center:t.anchorLineBox.y+t.anchorLineBox.height/2};case "topMargin":return {top:n,bottom:n,center:n};case "bottomMargin":return {top:o,bottom:o,center:o};case "insideMargin":return cr(t)?{top:i,bottom:i,center:i}:{top:l,bottom:l,center:l};case "outsideMargin":return cr(t)?{top:a,bottom:a,center:a}:{top:n,bottom:n,center:n};default:return null}}function _S(e){return e===null?0:dr(e)}function MM(e,t,n){let r=cr(n);if(n.layoutInCell&&n.cellBox&&Number.isFinite(n.cellBox.width)&&n.cellBox.width>0){let{x:o,width:a}=n.cellBox;return e==="inside"?r?o:o+a-t:e==="outside"?r?o+a-t:o:null}return e==="inside"?r?0:n.contentWidth-t:e==="outside"?r?n.contentWidth-t:0:null}function BM(e,t,n){let r=cr(n),o=n.contentBandHeight;if(n.layoutInCell&&n.cellBox&&Number.isFinite(n.cellBox.height)&&n.cellBox.height>0){let{y:a,height:i}=n.cellBox;return e==="inside"?r?a:a+i-t:e==="outside"?r?a+i-t:a:null}return e==="inside"?r?0:o-t:e==="outside"?r?o-t:0:null}function LM(e,t,n,r,o){let a=AS(e,o);if(!a)return null;let i=_S(n);if(i===null)return null;if(t==="left")return a.left+i;if(t==="center")return a.center-r/2+i;if(t==="right")return a.right-r+i;if(t==="inside"||t==="outside"){let l=MM(t,r,o);if(l!==null)return l+i}return a.left+i}function EM(e,t,n,r,o){let a=DS(e,o);if(!a)return null;let i=_S(n);if(i===null)return null;if(t==="top")return a.top+i;if(t==="center")return a.center-r/2+i;if(t==="bottom")return a.bottom-r+i;if(t==="inside"||t==="outside"){let l=BM(t,r,o);if(l!==null)return l+i}return a.top+i}function Hm(e,t){let n=ur(e),r=e.position,o=e.anchor,a="page",i="page";if(!r||!o)return Object.freeze({x:0,y:0,horizontalFrame:a,verticalFrame:i,horizontalFrameOrigin:0,verticalFrameOrigin:0,layoutFallback:"unresolvable-frame"});if(o.simplePos){let g=dr(r.simplePosition.xEmu),h=dr(r.simplePosition.yEmu);return Object.freeze(g===null||h===null?{x:0,y:0,horizontalFrame:r.horizontal.relativeFrom,verticalFrame:r.vertical.relativeFrom,horizontalFrameOrigin:0,verticalFrameOrigin:0,layoutFallback:"unresolvable-frame"}:{x:g-t.marginLeft,y:h-t.contentInsetTop,horizontalFrame:r.horizontal.relativeFrom,verticalFrame:r.vertical.relativeFrom,horizontalFrameOrigin:0,verticalFrameOrigin:0})}let l=r.horizontal.relativeFrom,s=r.vertical.relativeFrom,d=AS(l,t),c=DS(s,t),u=d?.left??0,f=c?.top??0;if(!MS.has(l)||!BS.has(s))return Object.freeze({x:0,y:0,horizontalFrame:MS.has(l)?l:a,verticalFrame:BS.has(s)?s:i,horizontalFrameOrigin:u,verticalFrameOrigin:f,layoutFallback:"unresolvable-frame"});let m=LM(l,r.horizontal.align,r.horizontal.offsetEmu,n.width,t),p=EM(s,r.vertical.align,r.vertical.offsetEmu,n.height,t);return Object.freeze(m===null||p===null?{x:0,y:0,horizontalFrame:l,verticalFrame:s,horizontalFrameOrigin:u,verticalFrameOrigin:f,layoutFallback:"unresolvable-frame"}:{x:m,y:p,horizontalFrame:l,verticalFrame:s,horizontalFrameOrigin:u,verticalFrameOrigin:f})}function NM(e){let t=e.input.projection,n=t.anchor,r=ur(t),o=_i({projection:t,anchorX:e.resolved.x,anchorY:e.resolved.y,extentWidth:r.width,extentHeight:r.height}),a=e.clipRegion?jm(o.paintBounds,e.clipRegion):o.paintBounds,i=a.width>0&&a.height>0?a:Object.freeze({...a});return Object.freeze({kind:"anchoredDrawing",drawingNodeId:e.input.drawingNodeId,paragraphId:e.anchorParagraphId,anchorParagraphId:e.anchorParagraphId,ownerPartName:e.input.ownerPartName,start:e.start,x:e.resolved.x,y:e.resolved.y,width:r.width,height:r.height,horizontalFrame:e.resolved.horizontalFrame,verticalFrame:e.resolved.verticalFrame,horizontalFrameOrigin:e.resolved.horizontalFrameOrigin,verticalFrameOrigin:e.resolved.verticalFrameOrigin,behindDocument:n?.behindDocument??false,allowOverlap:n?.allowOverlap??true,layoutInCell:e.layoutInCell,relativeHeight:n?.relativeHeight??0,wrap:t.wrap==="inline"?"inFront":t.wrap,...e.sourceOrder!==void 0?{sourceOrder:e.sourceOrder}:{},...e.resolved.layoutFallback?{layoutFallback:e.resolved.layoutFallback}:{},...e.textboxStory?{textboxStory:e.textboxStory}:{},...e.revisions&&e.revisions.length>0?{revisions:e.revisions}:{},paintBounds:a,hitBounds:i,geometry:e.clipRegion?$c(o,e.clipRegion):o,resource:e.input.resource,accessibility:chunkCB6RQ3GD_cjs.qb(t),...LS(t)})}function AM(e,t,n){let r=(a,i,l)=>Ze(a,Ae(i,l),n);for(let a of e.spans){if(t<a.range.start)break;if(t<a.range.end){if(n&&a.text!==void 0&&a.style!==void 0){let s=t-a.range.start;return a.box.x+r(a.text.slice(0,s),a.style,a.fontSlot)}let i=a.range.end-a.range.start;if(i<=0)return a.box.x;let l=t-a.range.start;return a.box.x+a.box.width*l/i}if(t===a.range.end)return n&&a.text!==void 0&&a.style!==void 0?a.box.x+r(a.text,a.style,a.fontSlot):a.box.x+a.box.width}let o;for(let a of e.spans)a.range.end<=t&&(o=a);return o?n&&o.text!==void 0&&o.style!==void 0?o.box.x+r(o.text,o.style,o.fontSlot):o.box.x+o.box.width:e.box.x}function DM(e,t){let n=e.range.start;for(let r of e.spans)r.range.end<=t&&(n=r.range.end);return n}function Wm(e,t,n){if(!(Math.abs(n)<=.001))for(let r=0;r<e.length;r+=1){let o=e[r];o.anchorParagraphId===t&&(!o.layoutInCell&&!["paragraph","line"].includes(o.verticalFrame)||(e[r]=Object.freeze({...o,y:o.y+n,geometry:Uc(o.geometry,0,n),paintBounds:Object.freeze({...o.paintBounds,y:o.paintBounds.y+n}),hitBounds:Object.freeze({...o.hitBounds,y:o.hitBounds.y+n})})));}}function ka(e){let t=wt(e.paragraph,e.drawingLayout);if(t.length===0)return [];let n=Rn(e.paragraph),r=e.displayMode??We,o=[];for(let a of t){let i=a.projection;if(i.hidden)continue;let l=mm(a.revisions,r,e.revisionAuthorFilter);if(l===null)continue;let s=n.get(a.atomId);if(s===void 0||e.fragmentRange&&(s<e.fragmentRange.start||s>=e.fragmentRange.end))continue;let d=e.lines.find(y=>s>=y.range.start&&s<y.range.end);if(!d)continue;let c=e.cellBox===null?i.anchor?.layoutInCell??true:ds(i,e.cellAnchorScope),f=i.position?.horizontal.relativeFrom==="character"?DM(d,s):s,m=Object.freeze({...e.frameBase,paragraphBox:e.paragraphBox,anchorLineBox:d.box,anchorCharacterX:AM(d,f,e.measurer),columnBox:e.columnBox,cellBox:e.cellBox,cellContentBox:e.cellContentBox,layoutInCell:c}),p=Hm(i,m),g=i.wrap!=="inFront"&&i.wrap!=="behind"&&c&&e.cellBox!==null&&Number.isFinite(e.cellBox.height)&&e.cellBox.height>0&&Number.isFinite(e.cellBox.width)&&e.cellBox.width>0,h=i.position?.vertical.relativeFrom==="margin"?e.pageClip:wa(e.frameBase),x=g?e.cellBox:h,b=NM({input:Object.freeze({drawingNodeId:a.atomId,ownerPartName:e.drawingLayout.ownerPartName,projection:i,resource:e.drawingLayout.resourceOf(i)}),anchorParagraphId:e.paragraphId,start:f,resolved:p,layoutInCell:c,clipRegion:x,revisions:l,...e.sourceOrderOf?{sourceOrder:e.sourceOrderOf(i.drawingNodeId)}:{},...i.textboxStory&&e.layoutTextboxStory?{textboxStory:e.layoutTextboxStory(i)}:{}});o.push(b);}return Object.freeze(o)}function jS(e){let t=ur(e.input.projection),n=e.slotX+t.distL+t.effectL,r=_i({projection:e.input.projection,anchorX:n,anchorY:e.y,extentWidth:t.width,extentHeight:t.height}),o=e.contentTop!==void 0&&e.contentBottom!==void 0?Object.freeze({x:e.contentLeft,y:e.contentTop,width:Math.max(0,e.contentRight-e.contentLeft),height:Math.max(0,e.contentBottom-e.contentTop)}):Object.freeze({x:e.contentLeft,y:r.paintBounds.y,width:Math.max(0,e.contentRight-e.contentLeft),height:r.paintBounds.height}),a=jm(r.paintBounds,o),i=a.width>0&&a.height>0?a:Object.freeze({...a});return Object.freeze({kind:"inlineDrawing",drawingNodeId:e.input.drawingNodeId,paragraphId:e.paragraphId,ownerPartName:e.input.ownerPartName,start:e.start,x:n,y:e.y,width:t.width,height:t.height,distL:t.distL,distR:t.distR,distT:t.distT,distB:t.distB,advanceStart:e.slotX,advanceEnd:e.slotX+t.totalWidth,baselineOffset:e.baseline,paintBounds:a,hitBounds:i,geometry:$c(r,o),resource:e.input.resource,accessibility:chunkCB6RQ3GD_cjs.qb(e.input.projection),...LS(e.input.projection),...e.revisions&&e.revisions.length>0?{revisions:e.revisions}:{}})}function Gm(e,t){let n=e.sourceOrder??Number.MAX_SAFE_INTEGER,r=t.sourceOrder??Number.MAX_SAFE_INTEGER;return n!==r?n-r:e.drawingNodeId.localeCompare(t.drawingNodeId)}function Vm(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function fs(e,t,n){return Object.freeze({...e,x:e.x+t,y:e.y+n})}function zm(e,t,n){return Object.freeze({x:e.x+t,y:e.y+n})}function ms(e,t,n){if(Math.abs(t)<=1e-4&&Math.abs(n)<=1e-4)return e;let r=e.geometry;return Object.freeze({...e,x:e.x+t,y:e.y+n,paintBounds:fs(e.paintBounds,t,n),hitBounds:fs(e.hitBounds,t,n),geometry:Object.freeze({...r,contentBounds:fs(r.contentBounds,t,n),paintBounds:fs(r.paintBounds,t,n),hitBounds:fs(r.hitBounds,t,n),transformedCorners:r.transformedCorners.map(o=>zm(o,t,n)),...r.imageTransformCorners?{imageTransformCorners:r.imageTransformCorners.map(o=>zm(o,t,n))}:{},clipPolygon:r.clipPolygon?r.clipPolygon.map(o=>zm(o,t,n)):null})})}function $m(e,t){return ms(e,0,t)}function _M(e,t,n,r){let o=e.paintBounds,a=t.paintBounds.x+t.paintBounds.width-o.x,i=t.paintBounds.x-(o.x+o.width);for(let l of [a,i]){let s=o.x+l;if(s<-1e-3||s+o.width>r+.001)continue;let d=ms(e,l,0);if(!n.some(c=>Vm(c.paintBounds,d.paintBounds)))return d}return null}function HS(e,t){let n=t.maxAttempts??256,r=[...e].sort(Gm),o=[],a=[],i=[];for(let l of r){if(l.allowOverlap){o.push(l);continue}let s=l,d=0;for(;d<n;){let f=o.find(g=>Vm(g.paintBounds,s.paintBounds));if(!f)break;let m=t.contentWidth===void 0?null:_M(s,f,o,t.contentWidth);if(m){s=m;break}let p=f.paintBounds.y+f.paintBounds.height-s.paintBounds.y+.001;s=$m(s,p),d+=1;}let c=o.some(f=>Vm(f.paintBounds,s.paintBounds)),u=s.paintBounds.y+s.paintBounds.height>t.contentHeight+.001;if(c||u){s.x!==l.x&&(s=ms(s,l.x-s.x,0)),a.push(s),i.push(s.drawingNodeId);continue}o.push(s);}return Object.freeze({drawings:Object.freeze(o),deferred:Object.freeze(a),deferredNodeIds:Object.freeze(i)})}var WS=8;function jM(e,t,n,r){return e<r&&t>n}function $r(e,t,n){if(t<=0||n.length===0)return 0;let r=0;for(let o=0;o<WS;o+=1){let a=e+r,i=a+t,l=a,s=false;for(let c of n){if(c.input.mode!=="topAndBottom")continue;let u=c.verticalBand.y,f=u+c.verticalBand.height;jM(a,i,u,f)&&(s=true,l=Math.max(l,f));}if(!s)break;let d=l-e;if(d<=r+.001)break;r=d;}return r}function zS(e,t){if(!t||t.align!==null||t.relativeFrom!=="paragraph"&&t.relativeFrom!=="line")return e;let n=dr(t.offsetEmu??0);return n===null?e:e+n}var Um=8,xo=16,va=class extends Error{name="DrawingExclusionConvergenceError";constructor(t="drawing exclusion reflow did not converge"){super(t);}};function HM(e,t){let n=Math.max(1,t.columnCount);if(n<=1)return 0;let r=e.x+e.width/2;if(t.columnLefts&&t.columnWidths&&t.columnLefts.length===n){for(let i=0;i<n;i+=1){let l=t.columnLefts[i],s=l+t.columnWidths[i];if(r>=l-.001&&r<s+.001)return i}return n-1}let o=t.columnGapPt,a=(t.contentWidth-o*(n-1))/n;for(let i=0;i<n;i+=1){let l=i*(a+o),s=l+a;if(r>=l-.001&&r<s+.001)return i}return n-1}function Km(e){return e.behindDocument?"behind":"inFront"}function Yc(e){return e!=="inline"&&e!=="behind"&&e!=="inFront"}function WM(e){switch(e){case "inline":case "behind":case "inFront":return null;case "square":case "squareLeft":case "squareRight":return "square";case "tight":return "tight";case "through":return "through";case "topAndBottom":return "topAndBottom";default:return null}}function zM(e){return e==="squareLeft"?"left":e==="squareRight"?"right":"bothSides"}function Xm(e){let t=WM(e.projection.wrap);if(!t||!e.projection.wrapGeometry)return null;let n=e.projection.wrapGeometry,r=Object.freeze({x:e.anchorX,y:e.anchorY,width:e.geometry.contentBounds.width,height:e.geometry.contentBounds.height});return kS({mode:t,contentBounds:r,geometry:e.geometry,wrapDistancesEmu:n.distancesEmu,polygonEmu:n.polygon,crop:e.projection.picture?.crop??{},transform:e.projection.picture?.transform??{rotationDegrees:0,flipHorizontal:false,flipVertical:false,offsetEmu:{x:0,y:0},extentEmu:{cx:0,cy:0}},extentWidthPt:e.geometry.contentBounds.width,extentHeightPt:e.geometry.contentBounds.height,textSide:t==="square"?zM(e.projection.wrap):n.textSide,contentLeft:e.contentLeft,contentRight:e.contentRight})}function ps(e){if(e.mode==="topAndBottom"||e.mode==="square")return Nm(e.contentBounds,e.effectInsets,e.wrapDistances);let t=[e.contentBounds.y,e.contentBounds.y+e.contentBounds.height];if(e.polygon)for(let o of e.polygon)t.push(o.y);let n=Math.min(...t)-e.effectInsets.top-e.wrapDistances.top,r=Math.max(...t)+e.effectInsets.bottom+e.wrapDistances.bottom;return Object.freeze({x:e.contentLeft,y:n,width:Math.max(0,e.contentRight-e.contentLeft),height:Math.max(0,r-n)})}function VM(e){return e!=="paragraph"&&e!=="line"}function gs(e){if(e.drawing.behindDocument||!Yc(e.drawing.wrap))return null;let t=e.yOverride??e.drawing.y,n=Xm({projection:e.projection,geometry:e.drawing.geometry,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:e.drawing.x,anchorY:t});return n?Object.freeze({drawingNodeId:e.drawing.drawingNodeId,anchorParagraphId:e.drawing.anchorParagraphId,anchorModelStart:e.drawing.start,...VM(e.drawing.verticalFrame)?{pageFramedBand:true}:{},sourceOrder:e.sourceOrder,paintLayer:Km(e.drawing),relativeHeight:e.drawing.relativeHeight,allowOverlap:e.drawing.allowOverlap,columnIndex:e.columnIndex??0,y:t,verticalBand:ps(n),input:n}):null}function GM(e,t){let n=Km(e),r=Km(t);return n!==r?n==="behind"?-1:1:e.relativeHeight!==t.relativeHeight?e.relativeHeight-t.relativeHeight:Gm(e,t)}function GS(e){return Object.freeze([...e].sort(GM))}function So(e,t,n,r,o=0){let a=[{start:n,end:r}],i=false;for(let l of t){let s=l.verticalBand,d=l.input.mode==="square"&&o>0;if(e>=s.y+s.height||(d?e+o<=s.y+.001:e<s.y))continue;let c=d?Math.max(e,s.y):e,u=wS(c,l.input);l.sourceKind==="table"&&!u.some(m=>m.start<=n&&m.end>=r)&&(i=true);let f=[];for(let m of a)for(let p of u){let g=Math.max(m.start,p.start),h=Math.min(m.end,p.end);h>g+1e-6&&f.push(Object.freeze({start:g,end:h}));}if(a=f,a.length===0)break}return i&&(a=a.filter(l=>l.end-l.start>18.001)),Object.freeze(a)}function $S(e,t){for(let n of t)if(e>=n.start-1e-6&&e<n.end-1e-6)return Math.max(0,n.end-e);return 0}function $M(e,t){for(let n of t)if(n.end>e+1e-6)return n;return null}function Ym(e,t){let n=$M(e,t);if(!n)return null;let r=Math.max(e,n.start),o=n.end-r;return o<=.001?null:Object.freeze({x:r,available:o})}function KM(e,t,n){let r=e.contentBounds;return Object.freeze({...e,contentBounds:Object.freeze({...r,x:r.x+t,y:r.y+n}),contentLeft:e.contentLeft+t,contentRight:e.contentRight+t,...e.polygon?{polygon:e.polygon.map(o=>Object.freeze({x:o.x+t,y:o.y+n}))}:{},...e.clipPolygon?{clipPolygon:e.clipPolygon.map(o=>Object.freeze({x:o.x+t,y:o.y+n}))}:{}})}function qm(e,t){return Object.freeze({...e,layoutFallback:t})}function ji(e,t,n,r){return e.length===0?e:Object.freeze(e.map(o=>{let a=o.verticalBand,i=o.input;return Object.freeze({...o,y:o.y-n,verticalBand:Object.freeze({...a,x:a.x-t,y:a.y-n}),input:Object.freeze({...KM(i,-t,-n),contentLeft:r?.left??i.contentLeft-t,contentRight:r?.right??i.contentRight-t})})}))}function KS(e,t,n){return Object.freeze(e.filter(r=>{if(r.sourceKind==="furniture")return true;let o=n(r.anchorParagraphId);return o===void 0?r.sourceOrder<=t:o<=t}))}function US(e){let t=wt(e.paragraph,e.drawingLayout);if(t.length===0)return Object.freeze([]);let n=Rn(e.paragraph),r=e.displayMode??We,o=Math.max(1,e.contentRight-e.contentLeft),a=[];for(let i of t){if(!De(i.revisions,r,e.revisionAuthorFilter)||i.projection.anchor?.behindDocument||Lm(i.projection,e)||!Yc(i.projection.wrap)||i.projection.wrap==="topAndBottom")continue;let l=n.get(i.atomId);if(l===void 0)continue;let s=e.anchorLineTopByModelStart.get(l);if(s===void 0)continue;let d=Object.freeze({x:e.contentLeft,y:s,width:o,height:14}),c=e.anchorCellBox!=null,u=Hm(i.projection,{pageNumber:1,pageWidth:e.contentRight+e.contentLeft+o,pageHeight:792,marginLeft:e.contentLeft,marginRight:0,marginBottom:0,contentInsetTop:0,contentInsetBottom:0,contentWidth:o,contentHeight:648,contentBandHeight:648,paragraphBox:d,anchorLineBox:d,anchorCharacterX:e.contentLeft,columnBox:d,cellBox:c?e.anchorCellBox:null,layoutInCell:c,ownerPartName:e.drawingLayout.ownerPartName,storyKind:"body"}),f=e.paragraphStartY+s,m=ur(i.projection),p=_i({projection:i.projection,anchorX:u.x,anchorY:f,extentWidth:m.width,extentHeight:m.height}),g=Xm({projection:i.projection,geometry:p,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:u.x,anchorY:f});g&&a.push(Object.freeze({drawingNodeId:i.atomId,anchorParagraphId:e.paragraphId,anchorModelStart:l,sourceOrder:e.sourceOrderOf?.(i.projection.drawingNodeId)??Number.MAX_SAFE_INTEGER,paintLayer:i.projection.anchor?.behindDocument?"behind":"inFront",relativeHeight:i.projection.anchor?.relativeHeight??0,allowOverlap:i.projection.anchor?.allowOverlap??true,columnIndex:0,y:f,verticalBand:ps(g),input:g}));}return a.sort((i,l)=>i.sourceOrder-l.sourceOrder),Object.freeze(a)}function qc(e){let t=wt(e.paragraph,e.drawingLayout);if(t.length===0)return Object.freeze([]);let n=Rn(e.paragraph),r=e.displayMode??We,o=[];for(let a of t){if(!De(a.revisions,r,e.revisionAuthorFilter)||a.projection.anchor?.behindDocument||a.projection.wrap!=="topAndBottom"||e.cellAnchorScope?.rowsClearOutOfCellFloats&&Lm(a.projection,e))continue;let i=n.get(a.atomId);if(i===void 0)continue;let l=e.anchorLineTopByModelStart.get(i);if(l===void 0)continue;let s=zS(e.paragraphStartY+l,a.projection.position?.vertical??null),d=ur(a.projection),c=_i({projection:a.projection,anchorX:e.contentLeft,anchorY:s,extentWidth:d.width,extentHeight:d.height}),u=Xm({projection:a.projection,geometry:c,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:e.contentLeft,anchorY:s});u&&o.push(Object.freeze({drawingNodeId:a.atomId,anchorParagraphId:e.paragraphId,anchorModelStart:i,sourceOrder:e.sourceOrderOf?.(a.projection.drawingNodeId)??Number.MAX_SAFE_INTEGER,paintLayer:a.projection.anchor?.behindDocument?"behind":"inFront",relativeHeight:a.projection.anchor?.relativeHeight??0,allowOverlap:a.projection.anchor?.allowOverlap??true,columnIndex:e.columnIndex??0,y:s,verticalBand:ps(u),input:u}));}return o.sort((a,i)=>a.sourceOrder-i.sourceOrder),Object.freeze(o)}function UM(e){return e.map(t=>`${t.start.toFixed(3)}-${t.end.toFixed(3)}`).join(",")}function XM(e){let t=e.contentBounds,n=e.wrapDistances,r=e.effectInsets,o=e.polygon?.map(i=>`${i.x.toFixed(3)},${i.y.toFixed(3)}`).join(";")??"",a=e.clipPolygon?.map(i=>`${i.x.toFixed(3)},${i.y.toFixed(3)}`).join(";")??"";return [e.mode,e.textSide,t.x.toFixed(3),t.y.toFixed(3),t.width.toFixed(3),t.height.toFixed(3),n.top.toFixed(3),n.right.toFixed(3),n.bottom.toFixed(3),n.left.toFixed(3),r.top.toFixed(3),r.right.toFixed(3),r.bottom.toFixed(3),r.left.toFixed(3),o,a].join(":")}function fr(e){return e.length===0?"":e.map(t=>{let n=t.verticalBand,r=t.y+t.input.contentBounds.height/2,o=So(r,[t],t.input.contentLeft,t.input.contentRight);return [t.drawingNodeId,t.sourceKind??"",String(t.sourceOrder),String(t.columnIndex),t.y.toFixed(3),n.x.toFixed(3),n.y.toFixed(3),n.width.toFixed(3),n.height.toFixed(3),XM(t.input),UM(o)].join("|")}).join(`
6
- `)}function Zm(e,t,n,r,o,a){let i=[];for(let l of e){let s=t.projectionForAtom?.(l.drawingNodeId);if(!s)continue;let d=l.sourceOrder??o?.(l.drawingNodeId)??Number.MAX_SAFE_INTEGER,c=a!==void 0?HM(l,a):0,u=gs({drawing:l,projection:s,sourceOrder:d,contentLeft:n,contentRight:r,columnIndex:c});u&&i.push(u);}return i.sort((l,s)=>l.sourceOrder-s.sourceOrder),Object.freeze(i)}function Jm(e,t,n,r,o){let a=o??Object.freeze({columnCount:1,columnGapPt:0,contentWidth:n}),i=new Map;for(let l of e){let s=l.anchoredDrawings??[],d=Zm(s,t,0,n,r,a);d.length>0&&i.set(l.index,d);}return i}var VS=new WeakMap;function qM(e){return e?`${e.columnCount};${e.columnGapPt};${e.contentWidth};${(e.columnLefts??[]).join(",")};${(e.columnWidths??[]).join(",")}`:""}function XS(e,t,n,r,o,a){let i=qM(a),l=VS.get(e);if(l&&l.drawingLayout===t&&l.drawingLayoutEpoch===n&&l.contentWidth===r&&l.drawingSourceOrder===o&&l.columnToken===i)return l.zones;let s=Jm(e,t,r,o?d=>{let c=t.projectionForAtom?.(d)?.drawingNodeId??d;return o.get(c)}:void 0,a);return VS.set(e,{drawingLayout:t,drawingLayoutEpoch:n,contentWidth:r,drawingSourceOrder:o,columnToken:i,zones:s}),s}function Zc(e,t){if(e.size!==t.size)return false;for(let[n,r]of e){let o=t.get(n);if(!o||fr(r)!==fr(o))return false}return true}function Jc(e){return e.size===0?"":[...e.entries()].sort(([t],[n])=>t-n).map(([t,n])=>`${t}:${fr(n)}`).join(`
7
- `)}function En(e,t){let n=Math.max(e.height-e.baseline,t.height-t.baseline);e.baseline=Math.max(e.baseline,t.baseline),e.height=e.baseline+n;}var ZM={props:true,style:true,fontSlot:true,glyphOffsetPt:true,borderBaselinePt:true,caretEdges:true,tabLeader:true,tabLeaderAdvancePt:true,link:true,wrapAdvanceBefore:true,revisions:true,changeSites:true,fieldAtom:true,projected:true,equation:true,noteNav:true,noteSeparator:true,lineEndWhitespace:true},JM=Object.keys(ZM);function QM(e,t){for(let n of JM)if(e[n]!==t[n])return false;return true}function eB(e,t){if(e.glyphOffsetPt||t.glyphOffsetPt||e.caretEdges!==void 0||t.caretEdges!==void 0)return false;let n=Un(e.text),r=t.text.codePointAt(0);return n===void 0||r===void 0||!Sa(n)||!Sa(r)||e.range.paragraphId!==t.range.paragraphId||e.range.end!==t.range.start||Math.abs(e.box.x+e.box.width-t.box.x)>.01||e.box.height!==t.box.height?false:QM(e,t)}function YS(e){if(e.spans.length<2)return;let t=[];for(let n=0;n<e.spans.length;){let r=n;for(;r+1<e.spans.length&&eB(e.spans[r],e.spans[r+1]);)r+=1;let o=e.spans[n];if(r===n){t.push(o),n+=1;continue}let a=[],i=0;for(let l=n;l<=r;l+=1)a.push(e.spans[l].text),i+=e.spans[l].box.width;t.push({...o,range:{...o.range,end:e.spans[r].range.end},text:a.join(""),box:{...o.box,width:i}}),n=r+1;}if(t.length!==e.spans.length){e.spans.length=0;for(let n of t)e.spans.push(n);}}function Qm(e,t,n){return Math.max($r(t,e.height,n),e.exclusionSkipBefore??0)}function ep(e,t,n,r=0){return Qm(t,e,n)+Math.max(0,t.height-t.trailingSpacing)+r}function qS(e){return Object.freeze({spans:e.spans.map(t=>Object.freeze({...t,box:Object.freeze({...t.box})})),drawings:e.drawings.map(t=>Object.freeze({...t,paintBounds:Object.freeze({...t.paintBounds}),hitBounds:Object.freeze({...t.hitBounds})})),start:e.start,end:e.end,width:e.width,height:e.height,baseline:e.baseline,leading:e.leading,trailingSpacing:e.trailingSpacing,...e.pageBreakAfter?{pageBreakAfter:true}:{},...e.columnBreakAfter?{columnBreakAfter:true}:{},...e.manualBreakAfter?{manualBreakAfter:true}:{},...e.deletedRanges?{deletedRanges:Object.freeze(e.deletedRanges)}:{},...e.exclusionSkipBefore?{exclusionSkipBefore:e.exclusionSkipBefore}:{},...e.wrapSegment?{wrapSegment:Object.freeze({...e.wrapSegment})}:{},...e.anchorRevisions?{anchorRevisions:Object.freeze(e.anchorRevisions)}:{},...e.changeSites?{changeSites:Object.freeze(e.changeSites)}:{}})}function hs(e,t){return t===0||e.length===0?e:e.map(n=>Ln(n,t,0))}function ZS(e){if(!(e.spans.length<2))for(let t=1;t<e.spans.length;t+=1){let n=e.spans[t-1],r=e.spans[t],o=r.box.x-(n.box.x+n.box.width);o<=.001||e.drawings.some(i=>i.start>=n.range.end&&i.start<r.range.start)||(e.spans[t]={...r,wrapAdvanceBefore:o});}}function tp(e){for(let t of e.drawings)e.height=Math.max(e.height,t.y+t.height+t.distB);}function tB(e,t){return e.val===t.val&&e.color===t.color&&e.widthPt===t.widthPt&&e.spacePt===t.spacePt&&e.shadow===t.shadow}function OW(e){if(!e.spans.some(o=>o.style.border))return [];let t=[],n,r=()=>{if(!n)return;let{box:o,edge:a}=n,i=ra(a.val,a.widthPt),l=o.x-a.spacePt-i,s=o.y-a.spacePt-i,d=o.width+2*(a.spacePt+i),c=o.height+2*(a.spacePt+i);t.push({side:"top",edge:a,box:{x:l,y:s,width:d,height:i}},{side:"bottom",edge:a,box:{x:l,y:s+c-i,width:d,height:i}},{side:"left",edge:a,box:{x:l,y:s,width:i,height:c}},{side:"right",edge:a,box:{x:l+d-i,y:s,width:i,height:c}}),n=void 0;};for(let o of [...e.spans].sort((a,i)=>a.box.x-i.box.x)){let a=o.style.border;if(!a||o.style.hidden||!o.text||/^[\r\n\f]+$/.test(o.text)){r();continue}let i=o.borderBaselinePt===void 0?o.box.y+(e.leading??0):e.box.y+e.baseline-o.borderBaselinePt,l={...o.box,y:i-xi(o.style)};if(n&&tB(n.edge,a)&&n.paragraphId===o.range.paragraphId&&(n.end===o.range.start||n.start===o.range.end)&&(n.end===o.range.start?o.wrapAdvanceBefore??0:n.wrapBefore)<=.001){let s=Math.max(n.box.y+n.box.height,l.y+l.height);n.box={x:n.box.x,y:Math.min(n.box.y,l.y),width:l.x+l.width-n.box.x,height:s-Math.min(n.box.y,l.y)},o.range.start<n.start&&(n.wrapBefore=o.wrapAdvanceBefore??0),n.start=Math.min(n.start,o.range.start),n.end=Math.max(n.end,o.range.end);}else r(),n={box:l,edge:a,paragraphId:o.range.paragraphId,start:o.range.start,end:o.range.end,wrapBefore:o.wrapAdvanceBefore??0};}return r(),t}function np(e,t){for(let n=0;n<e.spans.length;n++){let r=e.spans[n],o=r.style.border;if(!o||r.style.hidden||!r.text||/^[\r\n\f]+$/.test(r.text))continue;let a=t.lineMetrics(Ae(r.style,r.fontSlot),r.text);r.borderBaselinePt!==a.baseline&&(e.spans[n]={...r,borderBaselinePt:a.baseline});let i=o.spacePt+ra(o.val,o.widthPt);En(e,{height:a.height+2*i,baseline:a.baseline+i});}}function JS(e,t,n){let r={height:0,baseline:0,spans:e};for(let o of e)En(r,t.lineMetrics(Ae(o.style,o.fontSlot),o.text));return np(r,t),r.height>0?r.height:n}function QS(e,t,n){return !((e===t||e.length===0&&t.length===0)&&n.every(r=>r.style.verticalAlign==="baseline"))}var Po=e=>({...e.revisions===void 0?{}:{revisions:e.revisions},...e.changeSites===void 0?{}:{changeSites:e.changeSites},...e.fieldAtom===void 0?{}:{fieldAtom:e.fieldAtom},...e.noteSeparator?{noteSeparator:e.noteSeparator}:{}});function Qc(e,t){if(!e.style.shaping&&!/^[\p{Script=Latin}\p{N}\p{P} ]*$/u.test(e.text)||e.lineEndWhitespace||!/^[^\s]* $/u.test(e.text)||e.equation)return 0;let n=Ae(e.style,e.fontSlot),r=Math.max(0,e.box.width-Ze(e.text.slice(0,-1),n,t)),o=r*.75;return r-o}function eP(e,t,n,r,o,a,i=e.length,l=o,s=false){let d=/^[^\s]+ $/u.test(t);if(!(d||s&&/^[^\s]+$/u.test(t))||e.some(y=>y.text.includes(" ")||y.wrapAdvanceBefore||y.equation))return false;let c=Ze(d?t.slice(0,-1):t,n,r),u=o+c-a,f=e.reduce((y,w)=>y+Qc(w,r),0);if(u<=0||u>f+.001)return false;let m=f*4,p=e.slice(0,Math.max(0,Math.min(i,e.length))),g=p.length?Qc(p[p.length-1],r)*4:0,h=p.reduce((y,w)=>y+Qc(w,r)*4,0)-g;if(h<=0)return false;let x=1+Math.max(0,a-l+g)/h,b=m/(m-u);return x>1.5||1+(x-1)/1.7>=b}function tP(e){return e!==void 0&&e.text[0]===" "&&!e.projected&&!e.positionalTab&&e.measureText===void 0&&e.end-e.start===e.text.length}function nP(e,t,n,r=e.length-1){let o=e.map((s,d)=>d<r?Qc(s,n):0);if(t<=0||t>o.reduce((s,d)=>s+d,0)+.001)return e;let a=o.map(()=>0),i=t;for(let s=0;s<o.length&&i>.001;s++){let d=o.map((u,f)=>u-a[f]>.001?f:-1).filter(u=>u>=0);if(!d.length)break;let c=i/d.length;for(let u of d){let f=Math.min(c,o[u]-a[u]);a[u]+=f,i-=f;}}let l=0;return e.map((s,d)=>{let c=a[d],u=l||c?{...s,box:{...s.box,x:s.box.x-l,width:s.box.width-c},...c?{style:{...s.style,shaping:{script:"Latn",direction:"ltr",level:0,baseLevel:0,...s.style.shaping,wordSpacingPt:(s.style.shaping?.wordSpacingPt??0)-c}}}:{}}:s;return l+=c,u})}function Ro(e){return e>=4352&&e<=4607||e>=12592&&e<=12687||e>=43360&&e<=43391||e>=44032&&e<=55295}var lt=e=>Sa(e)||Ro(e),op=e=>/[\u1100-\u11ff\u2e80-\u318f\u31c0-\u9fff\ua960-\ua97f\uac00-\ud7ff\uf900-\ufaff\ufe30-\ufe4f\uff01-\uff9f\u{20000}-\u{323af}]/u.test(e),rP=e=>e>=65296&&e<=65305||e>=65313&&e<=65338||e>=65345&&e<=65370,rp=e=>!e.projected&&!e.positionalTab&&!e.inlineDrawing&&!e.equation&&e.end-e.start===e.text.length;function eu(e,t){if(!t.characterWrap&&!e.some(P=>/[\u1100-\u11ff\u2e80-\ud7ff\uf900-\uffef\u{20000}-\u{323af}]/u.test(P.text)||is(P.props)))return null;let n=new Map,r=[],o=0;for(let P of e){n.set(P,o);let R=rp(P)?P.text:"\uFFFC".repeat(Math.min(P.text.length,1));r.push(R),o+=R.length;}let a=r.join(""),i=et(a),l=new Map([[0,"opens"],[a.length,"opens"]]),s=new Set(Pa(a,false)),d=new Set,c=/[$¥£₩+-$£¥+\-]?[0-90-9]+(?:[.,:/.,:/][0-90-9]+)*(?:[%%‰])?|[A-Za-z]+/gu;for(let P of a.matchAll(c))if(/[0-9A-Za-z]/u.test(P[0]))for(let R=P.index+1;R<P.index+P[0].length;R++)d.add(R);let u=0,f=0,m=i.some(P=>Ro(P.text.codePointAt(0))),p=m?"ko-kr":/[\u3040-\u30ff\uff66-\uff9f]/u.test(a)?"ja-jp":"zh-cn",g=[],h=false;for(let P of i)/^[\p{P}\p{S}\p{M}]+$/u.test(P.text)||(h=lt(P.text.codePointAt(0))),g.push(h||lt(P.text.codePointAt(0)));let x=e.map(P=>is(P.props)),b=new Map,y=P=>{let R=b.get(P);return R||(R=uS(P,t.settings),b.set(P,R)),R};for(let P=1;P<i.length;P++){let R=i[P-1],O=i[P],F=O.utf16From;for(;u+1<e.length&&n.get(e[u+1])<=F;)u++;for(;f+1<e.length&&n.get(e[f+1])<=R.utf16From;)f++;let k=Un(R.text),v=R.text.codePointAt(0),S=O.text.codePointAt(0);if(/[\t\n\f\ufffc]/u.test(R.text+O.text)){l.set(F,"opens");continue}if(/[\u00a0\u202f\u2060\ufeff]/u.test(R.text+O.text)){l.set(F,"forbidden");continue}let C=false;if(t.kinsoku){let A=x[u]??(t.settings&&(lt(S)||g[P-1]&&/^[\p{P}\p{S}]+$/u.test(O.text))?p:void 0),_=x[f]??(t.settings&&(lt(v)||lt(S)&&/^[\p{P}\p{S}]+$/u.test(R.text))?p:void 0);if(A||_)C=(A?y(A).before.includes(String.fromCodePoint(S)):ls.has(S))||(_?y(_).after.includes(String.fromCodePoint(k)):ss.has(k));else if(C=ls.has(S)||ss.has(k),g[P-1]||lt(S)){let E=Ro(k)||Ro(S)?"ko-kr":"ja-jp",j=y(E);C||=g[P-1]&&j.before.includes(String.fromCodePoint(S))||lt(S)&&j.after.includes(String.fromCodePoint(k));}}if(C){l.set(F,"forbidden");continue}if(d.has(F)){l.set(F,"continues");continue}let I=lt(v)&&!rP(v)||lt(S)&&!rP(S)||g[P-1]&&/^[\p{P}\p{S}]+$/u.test(R.text),N=t.characterWrap&&(!m||Ro(v)&&Ro(S)),L=Ro(v)&&Ro(S)&&!N,D=s.has(F)||/\s$/u.test(R.text)||/^\s/u.test(O.text)||I&&!L||N;l.set(F,D?"opens":"continues");}let w=new Map;for(let P of e){let R=n.get(P);if(!rp(P)){w.set(P,Pa(P.text,false));continue}let O=[];for(let F=1;F<P.text.length;F++){let k=l.get(R+F);(k==="opens"||d.has(R+F)&&k==="continues")&&O.push(F);}O.push(P.text.length),w.set(P,O);}return {boundaries:P=>w.get(P),decision:(P,R)=>rp(P)?l.get(n.get(P)+R)??"forbidden":"opens",cutAllowed:(P,R,O)=>l.get(n.get(P)+R+O)!=="forbidden"&&l.has(n.get(P)+R+O)}}function oP(e,t,n){if(!e.some(d=>op(d.text)))return null;if(e.some(d=>d.text.includes(" ")||d.wrapAdvanceBefore))return e;let r=[];for(let d of e){if(d.projected||d.equation||d.range.end-d.range.start!==d.text.length||!op(d.text)){r.push(d);continue}let c=et(d.text),u=[],f=0;for(let x=1;x<c.length;x++)(lt(Un(c[x-1].text))||lt(c[x].text.codePointAt(0)))&&(u.push({from:f,to:c[x].utf16From}),f=c[x].utf16From);if(u.push({from:f,to:d.text.length}),u.length===1){r.push(d);continue}let m=Ae(d.style,d.fontSlot),p=u.map(x=>Ze(d.text.slice(x.from,x.to),m,t)),g=p.reduce((x,b)=>x+b,0),h=d.box.x;for(let x=0;x<u.length;x++){let b=u[x],y=g>0?p[x]*d.box.width/g:0,{caretEdges:w,...P}=d;r.push({...P,text:d.text.slice(b.from,b.to),range:{...d.range,start:d.range.start+b.from,end:d.range.start+b.to},box:{...d.box,x:h,width:y}}),h+=y;}}let o=new Set,a=r.map(d=>({text:d.text,props:d.props,style:d.style,start:d.range.start,end:d.range.end,projected:!!(d.projected||d.equation)})),i=eu(a,Bm);for(let d=1;d<r.length;d++){let c=r[d-1],u=r[d],f=Un(c.text),m=u.text.codePointAt(0);f===void 0||m===void 0||u.lineEndWhitespace||u.text===`
8
- `||(c.text.endsWith(" ")||(lt(f)||lt(m))&&i?.decision(a[d],0)==="opens"&&jc(f,m)&&!/[\u00a0\u202f\u2060\ufeff]/u.test(c.text.slice(-1)+u.text[0]))&&o.add(d);}if(o.size===0)return e;let l=n/o.size,s=0;return r.map((d,c)=>(o.has(c)&&(s+=l),s===0?d:{...d,box:{...d.box,x:d.box.x+s}}))}function ys(e){let t=e.length;for(;t>0&&e.charCodeAt(t-1)===32;)t-=1;return e.slice(0,t)}var aP=.001;function bs(e){let t=bt(e),n=t?"right":"left";for(let r of e)if(r.localName==="jc")switch(r.attributes?.val){case "center":n="center";break;case "right":n="right";break;case "start":n=t?"right":"left";break;case "end":n=t?"left":"right";break;case "both":case "distribute":n="both";break;default:n="left";}return n}function nB(e){return e.endsWith(" ")}function rB(e,t,n,r,o,a,i,l){if(e.length===0||o==="left")return e;let s=e.length;for(;s>0&&e[s-1].box.width===0&&(e[s-1].text===`
9
- `||e[s-1].text===chunkCB6RQ3GD_cjs.Zd);)s-=1;let d=s;for(;d>0&&e[d-1].lineEndWhitespace;)d-=1;let c=e[s-1],u=d<e.length?e[d].box.x-n:void 0,f=i!==void 0&&c!==void 0&&Math.abs(c.box.x+c.box.width-n-i)<=aP;if(d<s&&f&&(o==="center"||o==="right")){let P=r-u;if(P<=0)return e;let R=o==="center"?P/2:P,O=(i??0)>=r-aP,F=e[d].box.x+R;return e.map((k,v)=>{if(v<d)return {...k,box:{...k.box,x:k.box.x+R}};if(!O)return {...k,box:{...k.box,x:k.box.x+R}};let S=Math.min(k.box.width,Math.max(0,n+r-F)),C={...k,box:{...k.box,x:F,width:S}};return F+=S,C})}let m=e[e.length-1],p=(P,R=P.text.trimEnd())=>R===P.text?0:P.box.width-Ze(R,Ae(P.style,P.fontSlot),t),g=()=>m.box.x-n+m.box.width-p(m),h=o==="both"&&!l&&i===void 0&&d>0&&d<s,x=i??(u!==void 0&&h?u-p(e[d-1],ys(e[d-1].text)):u)??g(),b=0;if((o==="center"||o==="right")&&f&&c?.text.endsWith(" ")&&!c.lineEndWhitespace){let P=ys(c.text),R=Ze(P,Ae(c.style,c.fontSlot),t),O=Math.max(0,c.box.width-R);x-=O,l&&(b=O);}let y=r-x;if(y<-1e-3&&o==="both"&&!a)return nP(e,-y,t,h?d-1:e.length-1);if(y<=0)return e;if(o==="both"){if(a)return e;let P=oP(e,t,y);if(P)return P;let R=[];for(let v=1;v<d;v+=1)nB(e[v-1].text)&&R.push(v);if(R.length===0)return e;let O=y/R.length,F=new Set(R),k=0;return e.map((v,S)=>(F.has(S)&&(k+=O),k===0?v:{...v,box:{...v.box,x:v.box.x+k}}))}let w=(o==="center"?y/2:y)-b;return e.map(P=>({...P,box:{...P.box,x:P.box.x+w}}))}function xs(e,t,n,r,o,a,i,l=e.some(s=>s.style.shaping?.baseLevel===1)){let s=o==="both"&&a&&l?"right":o;return Fm(rB($x(e,t),t,n,r,s,a,i,l),l)}function ap(e,t,n,r){let o=e.wrapSegment;return o?{indent:t+o.start,available:Math.max(1,o.end-o.start),used:n-t+e.width-o.start}:{indent:n,available:r,used:e.width}}var oB=/^[、。〈〉《》「」『』【】〔〕〖〗〘〙〚〛!(),.:;?[]{}]$/u,Ss=/^[〈《「『【〔〖〘〚([{]$/u,ip=/^[、。〉》」』】〕〗〙〛),.]}]$/u,aB=/^[\u3041-\u3096\u30a1-\u30fa][\u3099\u309a]?$/u;function iP(e){return e.some(t=>t.spans.some((n,r)=>n.glyphOffsetPt===0&&n.text.endsWith("\uFF1A")&&(!t.spans[r+1]||(t.spans[r+1].wrapAdvanceBefore??0)>0)))}function lP(e,t,n){let r=new Map,o=0;for(let a of e){if(a.glyphOffsetPt!==0||a.text!=="\uFF1A")continue;for(;o+1<t.length&&t[o].end<=a.start;)o++;let i=t[o];r.set(a,Ze(a.text,Ae(i.style,i.fontSlot),n));}return r}var iB=e=>!e.projected&&!e.style.textOutline&&e.style.shaping?.direction!=="rtl"&&!e.style.underline&&!e.style.strike&&!e.style.doubleStrike&&!e.revisions?.length&&!gc(e.props)&&e.measureText===void 0&&!e.positionalTab&&!e.equation&&!e.inlineDrawing&&e.end-e.start===e.text.length;function lB(e,t,n,r){let o=[],a=0,i=e.map(c=>{o.push(a);let u=iB(c)?c.text:"\uFFFC";return a+=u.length,u}).join(""),l=new Map,s=0,d=et(i);for(let c=0;c<d.length;c++){let u=d[c],f=d[c-1]?.text,m=d[c+1]?.text;for(;s+1<e.length&&o[s+1]<=u.utf16From;)s++;let p=e[s],g=Ss.test(u.text)&&f!==void 0&&Ss.test(f),h=m!==void 0&&(ip.test(u.text)&&(Ss.test(m)||ip.test(m)||m==="\uFF1A")||u.text==="\uFF1A"&&(Ss.test(m)||ip.test(m))&&!r&&!p.style.highlight&&!p.style.shading),x=g||h?.5:t&&aB.test(u.text)?.125:0;if(!x)continue;let b=Ae(p.style,p.fontSlot),y=Ze(u.text,b,n),w=g||h?Ze(u.text,{...b,characterSpacingPt:0},n):y,P=w*x;if(u.text==="\uFF1A"&&m!==void 0){let O=s,F=d[c+1].utf16From;for(;O+1<e.length&&o[O+1]<=F;)O++;let k=e[O],v=Ae(k.style,k.fontSlot);if(Ss.test(m)){let S=Ze(m,{...v,characterSpacingPt:0},n);P=Math.min(P,Math.max(0,S/2));}else {let S=n.inkBounds?.(u.text,b),C=n.inkBounds?.(m,v),I=Ze(m,v,n);if(!S||!C||![S.left,S.right,C.left,C.right].every(Number.isFinite)||S.left<0||C.left<0||S.right<S.left||C.right<C.left||S.right>w||S.right>y/2+I||C.right>I||k.style.highlight||k.style.shading)continue;P=y/2;}}let R=Math.max(0,Math.min(y,P))/u.text.length;for(let O=s;O<e.length&&o[O]<u.utf16To;O++){let F=e[O],k=Math.max(0,u.utf16From-o[O]),v=Math.min(F.text.length,u.utf16To-o[O]);if(k===v)continue;let S=l.get(F);S||(S=[],l.set(F,S)),S.push({from:k,to:v,reduction:R,glyphOffset:g?-R:h?0:void 0});}}return l}function sP(e,t,n,r=false){let o=t.settings?.compression;if(!o||o==="doNotCompress")return e;let a=[],i=new WeakMap,l=lB(e,o==="compressPunctuationAndJapaneseKana",n,r);for(let s of e){let d=l.get(s);if(!d){a.push(s);continue}let c=0;for(let u of d){u.from>c&&a.push({...s,text:s.text.slice(c,u.from),start:s.start+c,end:s.start+u.from});let f=s.style.characterSpacingPt-u.reduction,m=i.get(s.style);m||(m=new Map,i.set(s.style,m));let p=m.get(f);p||(p={...s.style,characterSpacingPt:f},m.set(f,p)),a.push({...s,text:s.text.slice(u.from,u.to),start:s.start+u.from,end:s.start+u.to,style:p,...u.glyphOffset!==void 0?{glyphOffsetPt:u.glyphOffset}:{}}),c=u.to;}c===0?a.push(s):c<s.text.length&&a.push({...s,text:s.text.slice(c),start:s.start+c});}return a}function Hi(e,t,n,r,o){if(t.projected||t.measureText!==void 0)return false;let a=e[e.length-1];if(!a||!/^[\p{Pe}\p{Pf}\p{Po}]$/u.test(a)||!oB.test(a)&&!is(t.props))return false;let i=et(e).at(-1)?.text;if(!i||!/^[\p{Pe}\p{Pf}\p{Po}]$/u.test(i))return false;let l=Ze(i,Ae(t.style,t.fontSlot),o);return r-l<=n+.001&&n>=-1e-3}var dP=/^[〈《「『【〔〖〘〚([{]$/u,cP=/^[、。〉》」』】〕〗〙〛),.]}]$/u,Ps=/^[〈《「『【〔〖〘〚([{、。〉》」』】〕〗〙〛),.]}:]$/u,uP=/[〈《「『【〔〖〘〚([{、。〉》」』】〕〗〙〛),.]}:]/u,wo=.001;function fP(e){let t=e.style;return !e.revisions?.length&&!t.textOutline&&!t.underline&&!t.strike&&!t.doubleStrike&&!t.highlight&&!t.shading&&t.shaping?.direction!=="rtl"&&!gc(e.props)}function mP(e){return e.every(t=>fP(t)&&!t.projected&&!t.fieldAtom&&!t.equation&&!t.positionalTab&&!t.inlineDrawing&&t.measureText===void 0&&t.end-t.start===t.text.length&&et(t.text).every(n=>/^[ \n\f]$/u.test(n.text)||lt(n.text.codePointAt(0))||Ps.test(n.text)))}function sB(e){return fP(e)&&!e.projected&&!e.fieldAtom&&!e.equation&&!e.caretEdges&&!e.lineEndWhitespace&&!e.wrapAdvanceBefore&&e.range.end-e.range.start===e.text.length}function dB(e,t,n){let r=[],o=0;for(let[a,i]of e.entries()){if(o+=i.text.length,o>4096||!sB(i))return;let l=Ae(i.style,i.fontSlot),s=0;for(let d of et(i.text)){if(d.text!==" "&&!lt(d.text.codePointAt(0))&&!Ps.test(d.text))return;let c=d.utf16To===i.text.length?i.box.width:Ze(i.text.slice(0,d.utf16To),l,t),u=c-s,f=i.range.start+d.utf16From,m=0,p=n.length-1;for(;m<p;){let h=m+p+1>>1;n[h].start<=f?m=h:p=h-1;}let g=n[m];r.push({sourceIndex:a,alreadyReduced:Math.max(0,(g.style.characterSpacingPt-i.style.characterSpacingPt)*d.text.length),natural:Ze(d.text,{...l,characterSpacingPt:0},t),ink:t.inkBounds?.(d.text,l),reduction:0,shift:0,span:{...i,text:d.text,range:{...i.range,start:i.range.start+d.utf16From,end:i.range.start+d.utf16To},box:{...i.box,x:i.box.x+s,width:u}}}),s=c;}}return r}function lp(e){return e.ink!==void 0&&Number.isFinite(e.ink.left)&&Number.isFinite(e.ink.right)&&e.ink.right>=e.ink.left}function cB(e,t,n,r,o){let a=t.reduce((b,y)=>b+y.box.width,0),i=e.width+a-n;if(i<=wo||!r.inkBounds||e.drawings.length||!t.some(b=>uP.test(b.text))&&!e.spans.some(b=>uP.test(b.text)))return;for(let b=1;b<e.spans.length;b++){let y=e.spans[b-1];if(Math.abs(y.box.x+y.box.width-e.spans[b].box.x)>wo)return}let l=e.spans.length,s=dB([...e.spans,...t],r,o);if(!s)return;let d=s.find(b=>b.sourceIndex===l);if(lt(d.span.text.codePointAt(0))&&!Ps.test(d.span.text)&&n-e.width+wo<d.natural/2)return;let c=s.at(-1);if(cP.test(c.span.text)&&lp(c)){let b=Math.max(c.natural/2,c.ink.right+(c.span.glyphOffsetPt??0));c.reduction=Math.min(i,Math.max(0,c.span.box.width-b)),i-=c.reduction;}let u=[];for(let b=1;b<s.length;b++){let y=s[b-1],w=s[b],P=y.span.text,R=w.span.text,O,F;if(dP.test(R)&&lt(P.codePointAt(0))&&!Ps.test(P))O=w,F=true;else if(P==="\uFF1A"&&dP.test(R)||cP.test(P)&&lt(R.codePointAt(0))&&!Ps.test(R))O=y,F=false;else continue;if(!lp(y)||!lp(w))continue;let k=y.span.box.width+(w.span.glyphOffsetPt??0)+w.ink.left-(y.span.glyphOffsetPt??0)-y.ink.right,v=Math.max(0,Math.min(O.natural/2-O.alreadyReduced,O.span.box.width-O.reduction,F?w.ink.left+(w.span.glyphOffsetPt??0):1/0,k));v>wo&&u.push({cell:O,capacity:v,left:F});}if(i>u.reduce((b,y)=>b+y.capacity,0)+wo)return;let f=u;for(;i>wo&&f.length;){let b=i/f.length,y=[];for(let w of f){let P=Math.min(b,w.capacity);w.cell.reduction+=P,w.left&&(w.cell.shift-=P),i-=P,w.capacity-P>wo&&y.push({...w,capacity:w.capacity-P});}f=y;}let m=[],p=[],g=[],h=e.spans[0]?.box.x??t[0].box.x,x=0;for(let b of s){let y=b.span,w=b.reduction>0,P={...y,...w?{style:{...y.style,characterSpacingPt:y.style.characterSpacingPt-b.reduction/y.text.length},glyphOffsetPt:(y.glyphOffsetPt??0)+b.shift}:{},box:{...y.box,x:h,width:y.box.width-b.reduction}};h+=P.box.width,b.sourceIndex<l?(g[b.sourceIndex]??=m.length,m.push(P)):(p.push(P),x+=P.box.width);}g[l]=m.length,e.spans.length=0;for(let b of m)e.spans.push(b);return e.width=n-x,{candidate:p,width:x,spanStarts:g}}function pP(e,t,n,r){let o=new Map;return (a,i,l,s,d,c,u,f)=>{let m=o.get(s.start);if(m)return o.delete(s.start),m;if(!f||!n.inkBounds||!t)return;let p=[],g=i,h=l,x=s,b=d,y=c,w=0;for(;;){let v=e[g];if(v.projected||v.measureText!==void 0||v.equation||v.positionalTab||v.inlineDrawing||v.revisions?.length||(w+=h.length,w>4096||p.length>=256))return;if(p.push({text:h,range:x,props:v.props,style:v.style,fontSlot:v.fontSlot,glyphOffsetPt:v.glyphOffsetPt,fieldAtom:v.fieldAtom,box:{x:y,y:0,width:b,height:n.lineMetrics(Ae(v.style,v.fontSlot)).height}}),y+=b,x.end<v.end)break;let S=e[g+1];if(!S||t.decision(S,0)==="opens")break;g++;let C=t.boundaries(S)[0]??S.text.length;h=S.text.slice(0,C),x={...s,start:S.start,end:S.start+C},b=Ze(h,Ae(S.style,S.fontSlot),n);}let P=0,R=false;for(let v=p.length-1;v>=0;v--){let S=p[v],C=ys(S.text);if(P+=Ze(S.text.slice(C.length),Ae(S.style,S.fontSlot),n),C.length){R=true;break}}if(P>0&&R&&y-c-P<=u-a.width+wo||r&&Hi(p.map(v=>v.text).join(""),e[g],u-a.width,y-c,n))return;let O=cB(a,p,u,n,e);if(!O)return;let F,k=0;for(let v of p){let S=[],C=0;for(;k<O.candidate.length&&O.candidate[k].range.start<v.range.end;){let N=O.candidate[k++];S.push(N),C+=N.box.width;}let I={candidate:S,width:C};F?o.set(v.range.start,I):F={...I,spanStarts:O.spanStarts};}return F}}function gP(e,t,n){let r=t.box.x;for(let o of n.candidate)e.push({...t,text:o.text,range:o.range,style:o.style,glyphOffsetPt:o.glyphOffsetPt,box:{...t.box,x:r,width:o.box.width}}),r+=o.box.width;}var gz=64,hz=31680,yz=720,bz=36,hP=new Map([["dot","."],["hyphen","-"],["underscore","_"],["heavy","_"],["middleDot","\xB7"]]),Rs=Object.freeze({stops:Object.freeze([]),defaultIntervalPt:36}),uB=new Map([["left","left"],["start","left"],["center","center"],["right","right"],["end","right"],["decimal","decimal"]]),fB=new Set(["dot","hyphen","underscore","heavy","middleDot"]);function ws(e){return e.kind!=="textValue"}function tu(e,t){return e.attributes.find(n=>n.localName===t)?.value}function sp(e,t){for(let n of e.children)if(ws(n)&&n.localName===t)return n}function yP(e){return e===void 0||!/^-?\d{1,9}$/.test(e)?null:Number(e)}function mB(e){return !Number.isFinite(e)||e<0?null:e>31680?31680:e}function bP(e,t){if(!t)return;let n=0;for(let r of t.children){if(n>=128)break;if(n+=1,!ws(r)||r.localName!=="tab")continue;let o=mB(yP(tu(r,"pos"))??NaN);if(o===null)continue;let a=tu(r,"val")??"left";if(a==="clear"){e.delete(o);continue}let i=a==="num"?"left":uB.get(a);if(i===void 0||e.size>=64&&!e.has(o))continue;let l=tu(r,"leader");e.set(o,{alignment:i,...a==="num"?{numberingOnly:true}:{},...l!==void 0&&fB.has(l)?{leader:l}:{}});}}function xP(e,t=36){let n=[...e.entries()].sort((o,a)=>o[0]-a[0]),r=[];for(let o=0;o<n.length&&o<64;o+=1){let[a,i]=n[o];r.push({positionPt:a/20,...i});}return {stops:Object.freeze(r),defaultIntervalPt:t}}function SP(e){let t=new Map;for(let n of e)!n||!ws(n)||bP(t,sp(n,"tabs"));return xP(t)}function xz(e){if(!e||!ws(e))return Rs;let t=new Map;return bP(t,sp(e,"tabs")),xP(t)}function PP(e,t){return t===void 0||!Number.isFinite(t)||t<=0||t===e.defaultIntervalPt?e:{stops:e.stops,defaultIntervalPt:t}}function RP(e){if(!e||!ws(e))return 36;let t=sp(e,"defaultTabStop");if(!t)return 36;let n=yP(tu(t,"val"));return n===null||n<=0||n>31680?36:n/20}function Wi(e,t,n,r=false){let o=Math.max(t,n);for(let l of e.stops)if(!(l.numberingOnly&&!r)&&l.positionPt>t)return {positionPt:Math.min(l.positionPt,o),alignment:l.alignment,...l.leader?{leader:l.leader}:{}};let a=e.defaultIntervalPt>0?e.defaultIntervalPt:36,i=Math.ceil((t+1e-9)/a)*a;return i<=t&&(i+=a),{positionPt:Math.min(i,o),alignment:"left"}}function wP(e,t,n,r,o){let a=n;switch(e){case "center":a=n-r/2;break;case "right":a=n-r;break;case "decimal":a=n-o;break;default:a=n;}let i=a-t;return i>0?i:0}function nu(e){return `tabs(${e.stops.map(n=>`${n.alignment}@${Math.round(n.positionPt*1e3)}${n.numberingOnly?"#num":""}${n.leader?`/${n.leader}`:""}`).join(",")}|d${Math.round(e.defaultIntervalPt*1e3)})`}var at=.001,pB=32,dp=128;function kP(e,t,n){if(e.input.mode==="topAndBottom")return true;let r=e.input,o=r.contentBounds.x,a=o+r.contentBounds.width;for(let i of [r.polygon,r.clipPolygon])for(let l of i??[])o=Math.min(o,l.x),a=Math.max(a,l.x);return o-=r.wrapDistances.left+r.effectInsets.left,a+=r.wrapDistances.right+r.effectInsets.right,o<n-at&&a>t+at}function gB(e,t,n){let r=new Set,o=a=>{a>t&&a<n&&r.add(a);};for(let a of e){if(a.verticalBand.y>=n||a.verticalBand.y+a.verticalBand.height<=t)continue;o(a.verticalBand.y),o(a.verticalBand.y+a.verticalBand.height);let i=a.input.wrapDistances.top+a.input.effectInsets.top,l=a.input.wrapDistances.bottom+a.input.effectInsets.bottom;for(let s of [a.input.polygon,a.input.clipPolygon])for(let d of s??[])if(o(d.y-i),o(d.y+l),r.size>dp)return;if(r.size>dp)return}return [...r].filter(Number.isFinite).sort((a,i)=>a-i)}function hB(e){if(!e||e.length<4)return false;let t=1/0,n=-1/0,r=1/0,o=-1/0;for(let a of e)t=Math.min(t,a.x),n=Math.max(n,a.x),r=Math.min(r,a.y),o=Math.max(o,a.y);return n>t&&o>r?e.every((a,i)=>{let l=e[(i+1)%e.length];return (Math.abs(a.x-t)<at||Math.abs(a.x-n)<at||Math.abs(a.y-r)<at||Math.abs(a.y-o)<at)&&(Math.abs(a.x-l.x)<at||Math.abs(a.y-l.y)<at)}):false}function cp(e,t,n,r,o,a){if(!(t>0&&a>=0&&a<=o-r)||!Number.isFinite(a)||n.length===0)return 0;let i=n.filter(m=>m.input.mode==="square"||m.input.mode==="topAndBottom"||m.input.mode==="tight"&&hB(m.input.polygon)),l,s=()=>l??=n.filter(m=>kP(m,r,o)),d=m=>{let p=m,g=[...s()].sort((h,x)=>h.verticalBand.y-x.verticalBand.y);for(let h of g){if(h.verticalBand.y>=p+t-at)break;p=Math.max(p,h.verticalBand.y+h.verticalBand.height);}return p-e},c=0,u=false,f=e;for(let m=0;m<pB;m++){let p=i.filter(y=>y.verticalBand.y<f+t-at&&y.verticalBand.y+y.verticalBand.height>f+at);if(p.length===0&&!u)return f-e;let g=p.some(y=>y.sourceKind==="table"&&kP(y,r,o));if(a===0&&!g&&!u)return f-e;let h=[{start:r,end:o}],x=[f+at,f+t-at];for(let y of p)x.push(Math.max(f,y.verticalBand.y)+at);for(let y of x)if(h=zc(h,So(y,i,r,o)).filter(w=>w.end-w.start>=a-at),h.length===0)break;if(h.length>0){if(!u&&(!g||i.length===n.length))return f-e;let y=gB(s(),f,f+t);if(!y)return d(f);let w=[{start:r,end:o}],P=[f+at,f+t-at];for(let R of y)R>f&&R<f+t&&(P.push(Math.max(f+at,R-at)),P.push(Math.min(f+t-at,R+at)));for(let R of P){if(++c>dp)return d(f);if(w=zc(w,So(R,n,r,o)).filter(O=>O.end-O.start>=a-at),w.length===0)break}if(w.length>0)return f-e;u=true,f=Math.min(f+t,y.find(R=>R>f+at)??1/0);continue}g&&i.length!==n.length&&(u=true);let b=1/0;for(let y of p){let w=y.verticalBand.y+y.verticalBand.height;w>f+at&&(b=Math.min(b,w));}if(!Number.isFinite(b)||b<=f||b-e>1e5)return u?d(f):f-e;f=b;}return u?d(f):f-e}function yB(e,t,n,r,o,a,i,l){let s=rr(i,e.height,e.baseline).height;if(n<=s+.001||e.spans.length===0&&e.drawings.length===0)return 0;let d=So(t,r,o,a,s),c=So(t,r,o,a,n),u=(b,y)=>y.some(w=>b.x>=w.start-.001&&b.x+b.width<=w.end+.001),f=e.spans.some(b=>b.text.trim()&&u(b.box,d)&&!u(b.box,c)),m=e.drawings.some(b=>u(b,d)&&!u(b,c));if(!f&&!m)return 0;if(e.spans.some(b=>b.text.includes(" ")))return null;let p=1/0,g=-1/0;for(let b of e.spans)p=Math.min(p,b.box.x),g=Math.max(g,b.box.x+b.box.width);for(let b of e.drawings)p=Math.min(p,b.x),g=Math.max(g,b.x+b.width);let h=c.find(b=>Math.max(p,b.start)+g-p+l<=b.end+.001);if(!h)return null;let x=Math.max(0,h.start-p);for(let b=0;b<e.spans.length;b++){let y=e.spans[b];e.spans[b]={...y,box:{...y.box,x:y.box.x+x}};}for(let b=0;b<e.drawings.length;b++)e.drawings[b]=Ln(e.drawings[b],x,0);return e.width+=x,x}function vP(e){let t,n=()=>{let i=e.line();if(t===i||i.spans.length>0||i.drawings.length>0)return;let l=e.zones();if(l.length===0)return;let s=e.measurer.lineMetrics(e.emptyStyle),d=$r(e.top(),i.height>0?i.height:s.height,l);d>.001&&(t=i,i.exclusionSkipBefore=d);};return {applyTopAndBottomSkipIfNeeded:n,applyNarrowWrapSkipIfNeeded:(i,l)=>{let s=e.line();if(s.spans.length>0||s.drawings.length>0)return;n();let d=e.zones();if(d.length===0)return;let c=e.measurer.lineMetrics(l),u=i.codePointAt(0),f=u===void 0?"":String.fromCodePoint(u),m=cp(e.top()+(s.exclusionSkipBefore??0),Math.max(c.height,rr(e.lineSpacing,c.height,c.baseline).height),d,e.left(),e.right,e.measurer.measure(zt(f,l),l));m>.001&&(s.exclusionSkipBefore=(s.exclusionSkipBefore??0)+m,s.width=0,t=s);},applyInlineObjectSkipIfNeeded:(i,l)=>{let s=e.line(),d=s.spans.length>0||s.drawings.length>0;n();let c=e.zones();if(c.length===0)return;let u=cp(e.top()+(s.exclusionSkipBefore??0),Math.max(s.height,l+Math.max(0,s.height-s.baseline)),c,e.left(),e.right,Math.min(s.width+i,Math.max(0,e.right-e.left())));u>.001&&(s.exclusionSkipBefore=(s.exclusionSkipBefore??0)+u,d||(s.width=0),t=s);},finalizeTopAndBottomClearance:()=>{let i=e.line(),l=e.zones();if(l.length===0)return;let s=Math.max($r(e.top(),i.height,l),i.exclusionSkipBefore??0);s>.001?i.exclusionSkipBefore=s:delete i.exclusionSkipBefore;}}}function TP(e){let t=e.initialMetrics,n=1/0,r=()=>e.top()+(e.line().exclusionSkipBefore??0)+.001,o=()=>{let a=e.line(),i=Math.max(a.baseline,t.baseline),l=i+Math.max(a.height-a.baseline,t.height-t.baseline);return rr(e.lineSpacing,l,i).height};return {setMetrics:(a,i=1/0)=>{t=a,n=i;},setWidth:a=>{n=a;},intervals:a=>So(r(),a,e.left,e.right,o()),relocate:a=>yB(e.line(),r(),o(),a,e.left,e.right,e.lineSpacing,n)}}var zi=.7,bB=1.25,xB="Cambria Math";function ou(e){return Jd(e,xB)}function mr(e,t,n,r){return Object.freeze({x:e,y:t,width:n,height:r})}function wn(e,t,n){return Object.freeze({...e,box:mr(t,n,e.box.width,e.box.height)})}var SB=4,PB=8,IP=new WeakMap;function RB(e){let t=ou(e);return [t.fontFamily??"",t.fontSizePt,t.bold?1:0,t.italic?1:0,t.verticalAlign,t.baselineShiftPt,t.caps?1:0,t.smallCaps?1:0,t.characterSpacingPt,t.horizontalScalePercent,t.kerningMinPt,t.ligatures?.standard?1:0,t.ligatures?.contextual?1:0,t.ligatures?.historical?1:0,t.ligatures?.discretionary?1:0].join("|")}function wB(e,t){if(t===void 0)return {projections:new WeakMap};let n=IP.get(e);n||(n=new Map,IP.set(e,n));let r=n.get(t);if(r)return n.delete(t),n.set(t,r),r;if(n.size>=SB){let a=n.keys().next().value;a!==void 0&&n.delete(a);}let o={projections:new WeakMap};return n.set(t,o),o}function Vi(e,t,n){let r=n.styles.get(t);if(r)return r;let o=t===1?e:Object.freeze({...e,fontSizePt:e.fontSizePt*t,characterSpacingPt:e.characterSpacingPt*t});return n.styles.set(t,o),o}function OP(e,t,n,r){let o=r.metrics.get(n);if(o)return o;let a=e.lineMetrics(Vi(t,n,r));return r.metrics.set(n,a),a}function ru(e,t,n,r,o,a){let i=Vi(r,o,a),l=OP(n,r,o,a);return Object.freeze({kind:e,text:t,fontSizePt:i.fontSizePt,box:mr(0,0,Ze(t,i,n),l.height),baseline:l.baseline})}function kB(e,t){if(e.length===0)return Object.freeze({kind:"row",items:Object.freeze([]),box:mr(0,0,0,t.height),baseline:t.baseline});let n=Math.max(...e.map(i=>i.baseline)),r=Math.max(...e.map(i=>i.box.height-i.baseline)),o=0,a=e.map(i=>{let l=wn(i,o,n-i.baseline);return o+=i.box.width,l});return Object.freeze({kind:"row",items:Object.freeze(a),box:mr(0,0,o,n+r),baseline:n})}function Nn(e,t,n,r,o){switch(e.kind){case "text":return ru("text",e.value,t,n,r,o);case "fallback":return ru("fallback",e.text||"\u2026",t,n,r,o);case "row":return kB(e.items.map(a=>Nn(a,t,n,r,o)),OP(t,n,r,o));case "fraction":{let a=Vi(n,r,o),i=Nn(e.numerator,t,n,r*zi,o),l=Nn(e.denominator,t,n,r*zi,o),s=Math.max(.75,a.fontSizePt*.08),d=Math.max(.75,a.fontSizePt*.08),c=Math.max(.6,a.fontSizePt*.055),u=Math.max(i.box.width,l.box.width)+s*2,f=i.box.height+d,m=f+c+d,p=m+l.box.height,g=Math.min(p,f+c/2+a.fontSizePt*.22);return Object.freeze({kind:"fraction",numerator:wn(i,(u-i.box.width)/2,0),denominator:wn(l,(u-l.box.width)/2,m),bar:mr(s/2,f,u-s,c),box:mr(0,0,u,p),baseline:g})}case "radical":{let a=Vi(n,r,o),i=Nn(e.radicand,t,n,r,o),l=ru("text","\u221A",t,n,r,o),s=e.degree?Nn(e.degree,t,n,r*.55,o):void 0,d=Math.max(.55,a.fontSizePt*.05),c=Math.max(.35,a.fontSizePt*.035),u=d+c,f=s?Math.max(0,s.box.width*.65):0,m=f+l.box.width,p=u+i.baseline,g=Math.max(u+i.box.height,p+(l.box.height-l.baseline));return Object.freeze({kind:"radical",sign:wn(l,f,p-l.baseline),radicand:wn(i,m,u),...s?{degree:wn(s,0,0)}:{},bar:mr(m,0,i.box.width,d),box:mr(0,0,m+i.box.width,g),baseline:p})}case "script":{let a=Vi(n,r,o),i=Nn(e.base,t,n,r,o),l=e.subscript?Nn(e.subscript,t,n,r*zi,o):void 0,s=e.superscript?Nn(e.superscript,t,n,r*zi,o):void 0,d=Math.max(.4,a.fontSizePt*.04),c=i.box.width+d,u=0,f=s?Math.max(0,s.box.height-i.baseline*.45):0,m=f+i.baseline,p=m+a.fontSizePt*.08,g=c+Math.max(l?.box.width??0,s?.box.width??0,-d),h=Math.max(f+i.box.height,s?u+s.box.height:0,l?p+l.box.height:0);return Object.freeze({kind:"script",base:wn(i,0,f),...l?{subscript:wn(l,c,p)}:{},...s?{superscript:wn(s,c,u)}:{},box:mr(0,0,g,h),baseline:m})}case "nary":{let a=Vi(n,r,o),i=ru("text",e.operator,t,n,r*bB,o),l=Nn(e.body,t,n,r,o),s=e.lowerLimit?Nn(e.lowerLimit,t,n,r*zi,o):void 0,d=e.upperLimit?Nn(e.upperLimit,t,n,r*zi,o):void 0,c=Math.max(.5,a.fontSizePt*.05),u=Math.max(i.box.width,s?.box.width??0,d?.box.width??0),m=d?d.box.height+c:0,p=m+i.baseline,g=m+i.box.height+(s?c:0),h=u+c,x=p-l.baseline,y=-Math.min(0,m,x,s?g:0),w=p+y,P=Math.max(m+i.box.height,s?g+s.box.height:0,x+l.box.height)+y;return Object.freeze({kind:"nary",operator:wn(i,(u-i.box.width)/2,m+y),body:wn(l,h,x+y),...s?{lowerLimit:wn(s,(u-s.box.width)/2,g+y)}:{},...d?{upperLimit:wn(d,(u-d.box.width)/2,y)}:{},box:mr(0,0,h+l.box.width,P),baseline:w})}}}function vB(e,t,n){let r=ou(n),o={styles:new Map,metrics:new Map};return Object.freeze({sourceNodeId:e.sourceNodeId,geometry:Nn(e.expression,t,r,1,o),fallbackText:e.fallbackText,truncated:e.truncated})}function FP(e,t){let n=wB(e,t);return (r,o)=>{let a=RB(o),i=n.projections.get(r),l=i?.get(a);if(l&&i)return i.delete(a),i.set(a,l),l;let s=vB(r,e,o);if(i||(i=new Map,n.projections.set(r,i)),i.size>=PB){let d=i.keys().next().value;d!==void 0&&i.delete(d);}return i.set(a,s),s}}function Ta(e){if(e.length===0)return false;for(let t of e)if(t!==" "&&t!=="\u3000")return false;return true}function au(e,t,n,r,o){if(t<=n+o)return;let a=e.length;for(;a>0&&e[a-1]===" ";)a--;if(a===0||a===e.length)return;let i=r(e.slice(0,a));if(!(i>n+o))return {length:a,visibleWidth:i,width:Math.max(i,n)}}function CP(e,t,n){if(!n){e.push(t);return}let r=t.range.start+n.length;e.push({...t,text:t.text.slice(0,n.length),range:{...t.range,end:r},box:{...t.box,width:n.visibleWidth}},{...t,text:t.text.slice(n.length),range:{...t.range,start:r},box:{...t.box,x:t.box.x+n.visibleWidth,width:Math.max(0,t.box.width-n.visibleWidth)},lineEndWhitespace:true});}function BP(e){let{pieces:t,measurer:n,available:r,firstLineOffset:o,anchorStarts:a,equationLayoutOf:i}=e,l=new Map;if(a.length===0)return l;let s=t[0]?.start??0,d=[s],c=0,u=0,f="",m=0,p=-1,g=()=>u===0?o:0,h=()=>Math.max(1,r-g()),x=b=>{s=b,d.push(b),c=0,u+=1;};for(let b of t){let y=i(b);if(y){let R=y.geometry.box.width;c>0&&c+R>h()&&x(b.start),c+=R,f="",p=-1;continue}if(b.inlineDrawing){let R=ur(b.inlineDrawing.projection).totalWidth;c>0&&c+R>h()&&x(b.start),c+=R,f="",p=-1;continue}if(b.text===`
10
- `||b.text===chunkCB6RQ3GD_cjs.Zd){x(b.end);continue}let w=!!b.projected||!!b.positionalTab||b.end-b.start!==b.text.length,P=0;for(let R of e.cjkBreaks?.boundaries(b)??Pa(b.text,!w)){let O=b.text.slice(P,R);if(O.length===0)continue;let F=Ae(b.style,b.fontSlot),k=D=>n.measure(zt(D,F),F),v=b.fieldAtom?.formControl?.kind==="checkbox"?F.fontSizePt:k(b.measureText??O);if(!w&&b.measureText===void 0){let D=h()-c;v=au(O,v,D,k,.001)?.width??v,c>0&&Ta(O)&&(v=Math.min(v,Math.max(0,D)));}let S=b.start+P,C=e.cjkBreaks?.decision(b,P)??Hc(f,O,P>0),I=C==="opens";I&&(m=S,p=c);let N=e.typography?.overflowPunctuation&&Hi(O,b,h()-c,v,n),L=e.colonNaturalWidths?.get(b)??v;if(!N&&c>0&&c+L>h()){if(!(C==="forbidden"&&p<=0))if(I||p<=0)x(S);else {let D=c-p;x(m),c=D;}p=0;}c+=v,f=O,P=R;}}for(let b of a){let y=0,w=d.length-1;for(;y<w;){let P=y+w+1>>1;d[P]<=b?y=P:w=P-1;}l.set(b,d[y]);}return l}function TB(e,t,n,r,o){if(o===void 0||o(e,t[r-1].utf16To))return r;for(let a=r-1;a>n;a-=1)if(o(e,t[a-1].utf16To))return a;for(let a=r+1;a<=t.length;a+=1)if(o(e,t[a-1].utf16To))return a;return t.length}function LP(e,t,n,r){if(n<=r.remainingLineWidth()+r.overflowTolerancePt)return {text:e,modelStart:t,width:n,brokeLine:false};let o=et(e),a=0,i=0,l=n,s=false;for(;a<o.length&&l>r.remainingLineWidth()+r.overflowTolerancePt;){if(o.length-a===1){if(r.lineHasText()&&!(i===0&&r.keepWithPrevious)){r.closeLine(),s=true;continue}break}let c=r.remainingLineWidth(),u=a+1,f=o.length-1,m=a;for(;u<=f;){let h=u+f>>1,x=o[h-1].utf16To;r.measureText(e.slice(i,x))<=c+r.overflowTolerancePt?(m=h,u=h+1):f=h-1;}if(m===a&&r.lineHasText()&&!(i===0&&r.keepWithPrevious)){r.closeLine(),s=true;continue}if(m===a&&(m+=1),m=TB(e,o,a,m,r.cutAllowedAt),m===o.length)break;let p=o[m-1].utf16To,g=e.slice(i,p);r.appendPrefix({text:g,modelStart:t+i,width:r.measureText(g)}),r.closeLine(),s=true,a=m,i=p,l=r.measureText(e.slice(i));}return {text:e.slice(i),modelStart:t+i,width:l,brokeLine:s}}function EP(e){let t=new Array(e.length),n=false;for(let r=e.length-1;r>=0;r-=1){let o=e[r],a=new Uint8Array(o.text.length+1);if(a[o.text.length]=n?1:0,o.inlineDrawing)a.fill(1);else for(let i=o.text.length-1;i>=0;i-=1){let l=o.text[i];l===`
11
- `||l===chunkCB6RQ3GD_cjs.Zd?a[i]=0:l!==" "&&!Ta(l)?a[i]=1:a[i]=a[i+1];}t[r]=a,n=a[0]===1;}return t}function NP(e,t,n,r){let o=0,a=0,i=false;for(let l=t;l<e.length;l+=1){let s=e[l],d=Ae(s.style,s.fontSlot),c=l===t?n:0;for(let u=c;u<s.text.length;){let f=s.text[u];if(f===" "||f===`
12
- `||f===chunkCB6RQ3GD_cjs.Zd)return {width:o,decimalOffset:i?a:o};let m=u+1,p=s.text.slice(u,m),g=r.measure(zt(p,d),d);!i&&f==="."?i=true:i||(a+=g),o+=g,u=m;}}return {width:o,decimalOffset:i?a:o}}function AP(e,t,n,r){let o=e.relativeTo==="indent"||!r?{left:t,right:n}:r;return {positionPt:e.alignment==="right"?o.right:e.alignment==="center"?(o.left+o.right)/2:o.left,alignment:e.alignment,...e.leader?{leader:e.leader}:{}}}var ks=.001;function ut(e){return Ci(e)}var iu=31680;function vs(e){if(e===void 0||!/^-?\d{1,9}$/.test(e))return null;let t=Number(e);return Number.isFinite(t)?t>iu?chunkCB6RQ3GD_cjs.ff(iu):t<-iu?chunkCB6RQ3GD_cjs.ff(-iu):chunkCB6RQ3GD_cjs.ff(t):null}function Ts(e){let t=0,n=0,r=bt(e);for(let o of e){if(o.localName!=="ind")continue;let a=o.attributes?.left??(r?o.attributes?.end:o.attributes?.start),i=o.attributes?.right??(r?o.attributes?.start:o.attributes?.end),l=vs(a),s=vs(i);l!==null&&(t=chunkCB6RQ3GD_cjs.hf(l)),s!==null&&(n=chunkCB6RQ3GD_cjs.hf(s));}return {left:t,right:n}}function up(e,t,n,r,o,a,i,l=[],s=Rs,d,c,u,f=false){let m=i!==null&&a?a.get(i):void 0;if(m)return m;let p=u?.lineSpacing??zl,g=u?.firstLineOffset??0,h=u?.firstLineMinimumBaseline??0,x=Math.max(0,u?.firstLineMarkerAscent??0),b=[],y=[],w=lu(e,l,d,c,u?.projectLink,u?.noteMarks,u?.displayMode??We,b,u?.inlineDrawingLayout,u?.themeFonts,u?.projectFieldLink,u?.documentProperties,u?.bodyPageFields??false,u?.refFields,u?.revisionAuthorFilter,u?.showFieldCodes,u?.fieldCodeRanges,u?.tocLinkStyleRanges,y),P=Gx(w,u?.paragraphRtl??bt(ut("children"in e?e.children.find(W=>W.kind==="paragraphProperties"):void 0)),Wx(e)),R=Math.max(0,u?.startOffset??0),O=P.flatMap(W=>{if(W.end<=R&&!((R===0||u?.showFieldCodes)&&W.projected&&W.start===W.end&&W.start===R))return [];if(W.start>=R)return [W];let M=R-W.start;return [{...W,text:W.projected?W.text:W.text.slice(M),start:R}]}),F=u?.typography??Ac(ut("children"in e?e.children.find(W=>W.kind==="paragraphProperties"):void 0)),k=sP(O,F,o,f),v=lP(k,O,o),S=F.settings?.compression!==void 0&&F.settings.compression!=="doNotCompress"&&!u?.pageExclusionZones?.length&&o.inkBounds!==void 0&&mP(P),C=S&&!f,I=EP(k),N=eu(k,F),L=pP(k,N,o,F.overflowPunctuation),D=FP(o,u?.equationCacheToken),A=W=>W.equation?D(W.equation,W.style):null;if(k.length===0&&u?.suppressEmptyPlaceholderLine)return [];let _=u?.markRunProperties??l,E=_.length===0?Sn:Ne(_,u?.themeFonts),j=n+r,U=u?.contentLeft??n,te=u?.contentRight??j,re=u?.contentOriginX??0,J=Math.min(te,re+j),H=[],Q=0,T={spans:[],start:R,end:R,drawings:[],width:0,height:0,baseline:0,leading:0,trailingSpacing:0},G=new Map,ee=u?.displayMode??We,K=(()=>{let W=new Set;if(!u?.inlineDrawingLayout)return W;let M=Rn(e);for(let z of wt(e,u.inlineDrawingLayout)){if(!De(z.revisions,ee,u?.revisionAuthorFilter)||z.projection.wrap!=="topAndBottom")continue;let X=M.get(z.atomId);X!==void 0&&W.add(X);}return W})(),q=(()=>{let W=new Set;if(!u?.inlineDrawingLayout)return W;let M=Rn(e);for(let z of wt(e,u.inlineDrawingLayout)){if(!De(z.revisions,ee,u?.revisionAuthorFilter)||z.projection.anchor?.behindDocument||z.projection.wrap==="topAndBottom"||z.projection.wrap==="inline"||z.projection.wrap==="behind"||z.projection.wrap==="inFront")continue;let X=M.get(z.atomId);X!==void 0&&W.add(X);}return W})(),se=[...(u?.pageExclusionZones??[]).filter(W=>W.anchorParagraphId===t).map(W=>W.anchorModelStart),...K,...q],ie=BP({colonNaturalWidths:v,typography:F,cjkBreaks:N,pieces:k,measurer:o,available:r,firstLineOffset:g,anchorStarts:se,equationLayoutOf:A});for(let W of q){let M=ie.get(W);M!==void 0&&G.set(W,M);}let Y=W=>{if(W.anchorParagraphId!==t||W.pageFramedBand)return true;let M=ie.get(W.anchorModelStart);return M!==void 0&&T.start>=M||T.end>=W.anchorModelStart},V=()=>{let W=u?.pageExclusionZones?.filter(ue=>!(!Y(ue)||ue.anchorParagraphId===t&&(!ue.sourceKind&&ue.input.mode==="topAndBottom"||u?.anchorCellBox!=null)))??[],M=u?.cellAnchorScope?.anchorsWrapText!==false,z=M&&u?.inlineDrawingLayout&&u.anchorCellBox!=null&&G.size>0?US({paragraph:e,paragraphId:t,drawingLayout:u.inlineDrawingLayout,contentLeft:U,contentRight:te,paragraphStartY:u.paragraphStartY??0,anchorLineTopByModelStart:G,anchorCellBox:u.anchorCellBox,cellAnchorScope:u.cellAnchorScope,displayMode:ee,...u.revisionAuthorFilter?{revisionAuthorFilter:u.revisionAuthorFilter}:{}}):Object.freeze([]),X=M&&u?.inlineDrawingLayout&&G.size>0?qc({paragraph:e,paragraphId:t,drawingLayout:u.inlineDrawingLayout,contentLeft:U,contentRight:te,paragraphStartY:u.anchorParagraphStartY??u.paragraphStartY??0,anchorLineTopByModelStart:G,anchorCellBox:u.anchorCellBox,cellAnchorScope:u.cellAnchorScope,displayMode:ee,...u.revisionAuthorFilter?{revisionAuthorFilter:u.revisionAuthorFilter}:{}}):Object.freeze([]);return Object.freeze([...W,...z,...X])},ce=()=>H.length===0?g:0,le=()=>re+n+ce(),Pe=()=>Math.max(1,r-ce()),fe=()=>H.reduce((W,M)=>W+M.height+(M.exclusionSkipBefore??0),0),Re=()=>(u?.paragraphStartY??0)+fe(),he=W=>{K.has(W)&&G.set(W,fe());},{applyTopAndBottomSkipIfNeeded:we,applyNarrowWrapSkipIfNeeded:Oe,applyInlineObjectSkipIfNeeded:Te,finalizeTopAndBottomClearance:Ce}=vP({line:()=>T,top:Re,zones:V,left:()=>Math.max(U,le()),right:J,emptyStyle:E,measurer:o,lineSpacing:p}),ze=TP({line:()=>T,top:Re,left:U,right:J,lineSpacing:p,initialMetrics:o.lineMetrics(E)}),xe=ze.intervals,Xe=(W,M)=>{let z=Ym(W,M);if(!z)return null;if(z.x<=W+.001||T.width>.001||ce()<=0)return z.x;let X=Ym(z.x+ce(),M);return X?X.x:z.x},Me=()=>{let W=V();if(W.length===0)return true;we();let M=ze.relocate(W);if(M===null)return false;Mt+=M;let z=xe(W),X=le()+T.width,ue=Xe(X,z);return ue===null?false:(ue>X+.001&&(T.width=ue-le()),true)},je=()=>{let W=Pe(),M=V();if(M.length===0)return Math.max(W,Q-le());if(we(),!Me())return 0;let z=xe(M),X=le()+T.width,ue=$S(X,z);return ue<=.001?0:Math.min(W,T.width+ue)},_t=()=>Math.max(0,je()-T.width),_e=()=>{if(u?.paragraphRtl)return;let W=V();if(W.length===0)return;let M=xe(W);if(M.length===0)return;let z=T.spans[0]?.box.x??Math.max(U,le()),X=le()+T.width,ue=M.find(oe=>z>=oe.start-.001&&z<=oe.end+.001);!ue||X>ue.end+.001||ue.start<=U+.001&&ue.end>=J-.001||(T.wrapSegment={start:z,end:ue.end});},vt=()=>{let W=V();if(W.length===0||!W.some(oe=>oe.anchorParagraphId!==t||T.end>oe.anchorModelStart))return false;let z=xe(W),X=le()+T.width,ue=false;for(let oe of z){if(!ue){X>=oe.start-1e-6&&X<oe.end-1e-6&&(ue=true);continue}if(oe.end-oe.start>.001)return T.width=oe.start-le(),true}return false},Tt=W=>{if(se.length===0||W<Math.min(...se))return;let M=V().filter(Se=>Se.anchorParagraphId===t&&W>=Se.anchorModelStart);if(M.length===0)return;we();let z=xe(M),X=le()+T.width,ue=-1;for(let Se=0;Se<z.length;Se+=1){let ot=z[Se];if(X>=ot.start-.001&&X<ot.end-.001){ue=Se;break}}if(ue>=0)return;let oe=Xe(X,z);oe!==null&&oe>X+.001&&(T.width=oe-le());},It=W=>{let M=V().filter(X=>X.input.mode==="topAndBottom"&&X.anchorParagraphId===t&&W>=X.anchorModelStart);if(M.length===0)return;M.some(X=>T.start<X.anchorModelStart)&&(T.spans.length>0||T.drawings.length>0)&&st(),we();},Je=(W,M=0)=>M>64?_t()>=W:(we(),Me()?W<=_t()+.001?true:T.spans.length>0||T.drawings.length>0?vt()&&W<=_t()+.001?true:(st(),Je(W,M+1)):vt()?Je(W,M+1):true:T.spans.length>0||T.drawings.length>0?(st(),Je(W,M+1)):true),jt=(W,M)=>b.filter(z=>z.start<M&&z.end>W).map(z=>({start:Math.max(z.start,W),end:Math.min(z.end,M)})),wr=W=>`${W.kind}|${W.id}|${W.author}|${W.nodeId}`,an=W=>{let M=new Set,z=[];for(let X of W)if(X)for(let ue of X){let oe=wr(ue);M.has(oe)||(M.add(oe),z.push(ue));}return z},kr=new Set,to=(W,M,z)=>{let X=[];for(let ue of y){let oe=ue.start<W.end&&ue.end>W.start,Se=W.start===W.end&&ue.start<=W.start&&ue.end>=W.start;!oe&&!Se||(kr.add(ue),X.push(...ue.revisions));}return an([z,...M.map(ue=>ue.changeSites),X])},Kt=W=>{let M=W[W.length-1];if(!M)return;let z=y.filter(X=>!kr.has(X));if(z.length!==0){for(let X of z)kr.add(X);M.changeSites=an([M.changeSites,...z.map(X=>X.revisions)]);}},Ke=-1,Mt=0,vr=0,Tn="",nt=(W,M)=>{let z=o.lineMetrics(W),X=ES(z.baseline,T.height||z.height,M);return T.height===0?(T.height=X.lineHeight,T.baseline=X.baseline):(X.lineHeight>T.height&&(T.height=X.lineHeight),T.baseline=Math.max(T.baseline,X.baseline)),{extentTopY:X.extentTopY}},Ut=()=>{if(T.drawings.length===0)return;T.spans.length===0&&(T.baseline=Math.max(T.baseline,...T.drawings.map(M=>M.y+M.height)));let W=_m(T.drawings,T.baseline);T.drawings.splice(0,T.drawings.length,...W),T.baseline=Math.max(T.baseline,...T.drawings.map(M=>M.y+M.height));},no=()=>{if(T.drawings.length===0)return;let W=_m(T.drawings,T.baseline);T.drawings.splice(0,T.drawings.length,...W);},st=W=>{let M=o.lineMetrics(E),z=T.baseline;if(T.height===0?(T.height=M.height,T.baseline=M.baseline,z=M.baseline):W?.includeParagraphMark&&!u?.paragraphMarkIsCellEnd&&o.hasResolvedFont?.(E)!==false&&QS(_,l,T.spans)&&(T.height=Math.max(T.height,M.height)),H.length===0&&x>T.baseline){let Ie=x-T.baseline;T.baseline=x,T.height+=Ie,z+=Ie;}np(T,o),Ut(),tp(T);let X=T.height,ue=T.drawings.length>0||T.spans.some(Ie=>Ie.equation!==void 0),oe=p.rule==="auto"&&ue,Se=oe?JS(T.spans,o,M.height):X,ot=rr(p,Se,T.baseline);oe||(T.baseline=ot.baseline);let mt=H.length===0&&p.rule!=="exact"?h:0,Bt=Math.max(0,mt-T.baseline);T.baseline+=Bt,T.leading=Math.max(0,T.baseline-z),T.height=oe?Math.max(ot.height,X):ot.height,T.height+=Bt,no(),p.rule!=="exact"&&tp(T),T.trailingSpacing=T.drawings.length===0&&p.rule!=="exact"?Math.max(0,ot.height-X):0,Ce(),YS(T),ZS(T);let de=jt(T.start,T.end);de.length>0&&(T.deletedRanges=de);let Xt=to(T,T.spans,T.changeSites);Xt.length>0&&(T.changeSites=Xt),_e(),H.push(T),Ke=-1,Mt=0,Q=0,T={spans:[],drawings:[],start:T.end,end:T.end,width:0,height:0,baseline:0,leading:0,trailingSpacing:0},we();},rt=false;for(let W=0;W<k.length;W+=1){let M=k[W];if(M.breakKind==="column"){let oe=o.lineMetrics(M.style);T.spans.push({range:{paragraphId:t,start:M.start,end:M.end},text:M.text,props:M.props,style:M.style,box:{x:le()+T.width,y:0,width:0,height:oe.height},...M.link?{link:M.link}:{},...Po(M)}),En(T,oe),T.end=M.end,st(),H[H.length-1].columnBreakAfter=true,rt=true;continue}if(M.equation){let oe=A(M),Se=oe.geometry.box.width;if((T.spans.length>0||T.drawings.length>0)&&T.width+Se>je()&&st(),ze.setMetrics({height:oe.geometry.box.height,baseline:oe.geometry.baseline},Se),Te(Se,oe.geometry.box.height),!Je(Se))continue;let mt=Math.max(0,T.height-T.baseline),Bt=Math.max(0,oe.geometry.box.height-oe.geometry.baseline);T.baseline=Math.max(T.baseline,oe.geometry.baseline),T.height=T.baseline+Math.max(mt,Bt),T.spans.push({range:{paragraphId:t,start:M.start,end:M.end},text:"\uFFFC",props:M.props,style:M.style,box:{x:le()+T.width,y:0,width:Se,height:oe.geometry.box.height},projected:true,equation:oe,...Po(M)}),T.width+=Se,T.end=M.end,Ke=-1,Tn="";continue}if(M.projected&&!M.inlineDrawing&&!M.noteSeparator&&M.text==="\uFFFC"){he(M.start),M.anchoredAtom&&M.revisions!==void 0&&De(M.revisions,ee,u?.revisionAuthorFilter)&&(T.anchorRevisions=[...T.anchorRevisions??[],...M.revisions]),M.anchoredAtom&&M.changeSites&&(T.changeSites=[...T.changeSites??[],...M.changeSites]),T.end=M.end;continue}if(M.inlineDrawing){he(M.start);let oe=ur(M.inlineDrawing.projection),Se=oe.totalWidth;if((T.spans.length>0||T.drawings.length>0)&&T.width+Se>je()&&st(),ze.setMetrics({height:oe.lineContribution,baseline:oe.lineContribution},Se),Te(Se,oe.lineContribution),!Je(Se))continue;let{extentTopY:mt}=nt(M.style,oe),Bt=le()+T.width;T.drawings.push(jS({input:M.inlineDrawing,paragraphId:t,start:M.start,slotX:Bt,y:mt,baseline:T.baseline,contentLeft:re,contentRight:re+j,...M.revisions?{revisions:M.revisions}:{}})),M.changeSites&&(T.changeSites=[...T.changeSites??[],...M.changeSites]),T.width+=Se,T.end=M.end,Ke=-1,Tn="";continue}if(M.text===chunkCB6RQ3GD_cjs.Zd){let oe=o.lineMetrics(M.style);T.spans.push({range:{paragraphId:t,start:M.start,end:M.end},text:chunkCB6RQ3GD_cjs.Zd,props:M.props,style:M.style,box:{x:le()+T.width,y:0,width:0,height:oe.height},...M.link?{link:M.link}:{},...Po(M)}),En(T,oe),T.end=M.end,st(),H[H.length-1].pageBreakAfter=true,rt=false;continue}if(M.text===`
13
- `){M.breakKind==="line"&&(T.manualBreakAfter=true);let oe=o.lineMetrics(M.style);T.spans.push({range:{paragraphId:t,start:M.start,end:M.end},text:`
14
- `,props:M.props,style:M.style,box:{x:le()+T.width,y:0,width:0,height:oe.height},...M.link?{link:M.link}:{},...Po(M)}),En(T,oe),T.end=M.end,st(),rt=true;continue}rt=false,It(M.start),se.length>0&&M.start>=Math.min(...se)&&Tt(M.start);let z=Ae(M.style,M.fontSlot),X=!!M.projected||!!M.positionalTab||M.end-M.start!==M.text.length,ue=0;for(let oe of N?.boundaries(M)??Pa(M.text,!X)){let Se=M.text.slice(ue,oe);if(Se.length===0)continue;let ot=o.lineMetrics(z,M.noteSeparator?void 0:zt(Se,z));ze.setMetrics(ot);let mt=X?{paragraphId:t,start:M.start,end:M.end}:{paragraphId:t,start:M.start+ue,end:M.start+oe};if(Se===" "){(T.spans.length>0||T.drawings.length>0)&&T.width>=je()&&I[W][oe]===1&&st();let Ye=le()+T.width,Be=NP(k,W,oe,o),Ht=M.positionalTab?AP(M.positionalTab,n,j,u?.marginExtent):null,Za=V().length===0?Math.max(j,u?.marginExtent?.right??j):j,Ho=Wi(s,Ye,Za),In=Ht===null?Ho.alignment==="left"?Wi(s,Ye,j):Ho:Ht.positionPt>Ye?Ht:{...Wi(s,Ye,j),...Ht.leader?{leader:Ht.leader}:{}};In.alignment!=="left"&&(Q=Math.max(Q,Math.min(In.positionPt,Za)));let Fl=wP(In.alignment,Ye,In.positionPt,Be.width,Be.decimalOffset);T.spans.push({range:mt,text:" ",props:M.props,style:M.style,box:{x:Ye,y:0,width:Fl,height:ot.height},...In.leader?{tabLeader:In.leader,tabLeaderAdvancePt:o.measure(hP.get(In.leader)??".",M.style)}:{},...M.link?{link:M.link}:{},...In.leader?{tabLeader:In.leader}:{},...X&&!M.positionalTab?{projected:true}:{},...M.noteNav?{noteNav:M.noteNav}:{},...Po(M)}),T.width+=Fl,En(T,ot),T.end=X?M.end:M.start+oe,Tn=" ",ue=oe;continue}let Bt=M.measureText??Se,de=M.noteSeparator?Math.min(M.noteSeparator==="separator"?144:je(),je()):M.fieldAtom?.formControl?.kind==="checkbox"?z.fontSizePt:o.measure(zt(Bt,z),z);ze.setWidth(de);let Xt=M.noteSeparator||T.spans.at(-1)?.noteSeparator?"opens":N?.decision(M,ue)??Hc(Tn,Se,ue>0),Ie=Xt==="opens";Ie&&(Ke=T.spans.length,Mt=T.width,vr=T.end),Tt(M.start+ue),Oe(Se,z);let _n=S&&se.length===0&&oe===M.text.length&&k[W+1]!==void 0&&N?.decision(k[W+1],0)==="forbidden",xt=!X&&M.measureText===void 0&&!_n?au(Se,de,je()-T.width,Ye=>o.measure(zt(Ye,z),z),ks):void 0;de=xt?.width??de;let Tr=F.overflowPunctuation&&Hi(Se,M,je()-T.width,de,o),Ol=C&&se.length===0?()=>{let Ye=L(T,W,Se,mt,de,le()+T.width,je(),!Ta(Se)||Ie&&I[W][oe]===1);return Ye&&(de=Ye.width,Ke>=0&&Ye.spanStarts&&(Ke=Ye.spanStarts[Ke],Mt=Ke<T.spans.length?T.spans[Ke].box.x-le():T.width)),Ye}:void 0,md=T,Jn=Ol?.(),Ya=!_n&&Ta(Se)&&(I[W][oe]!==1||!X&&(T.spans.length>0||T.drawings.length>0)&&T.width+de>je()+ks);Ya&&(de=Math.min(de,Math.max(0,je()-T.width)));let Ir=Jn?de:v.get(M)??de;if(!Tr&&!(Ya&&u?.justifySpaceShrink)&&T.width+Ir>je()+ks&&!(u?.justifySpaceShrink&&(Ie||Xt==="continues"&&Ke>0)&&!u.paragraphRtl&&!u.pageExclusionZones?.length&&se.length===0&&T.drawings.length===0&&I[W][oe]===1&&eP(T.spans,Se,z,o,T.width,je(),Ie?T.spans.length:Ke,Ie?T.width:Mt,oe<M.text.length?!X&&M.text[oe]===" ":tP(k[W+1])))&&(T.spans.length>0||T.drawings.length>0)){if(!(Xt==="forbidden"&&Ke<=0))if(!Ie&&Ke===0)vt();else if(Ie||Ke<0){if(!(vt()&&T.width+Ir<=je()+.001)){if(st(),!Je(Ir))continue;Ke=0,Mt=0,vr=T.end;}}else {let Ye=T.spans.splice(Ke);T.width=Mt,T.end=vr,T.height=0,T.baseline=0;for(let Be of T.spans){let Ht=o.lineMetrics(Ae(Be.style,Be.fontSlot),Be.noteSeparator?void 0:Be.text);En(T,Ht);}st();for(let Be of Ye){Oe(Be.text,Ae(Be.style,Be.fontSlot));let Ht=o.lineMetrics(Ae(Be.style,Be.fontSlot),Be.noteSeparator?void 0:Be.text);T.spans.push({...Be,box:{...Be.box,x:le()+T.width}}),T.width+=Be.box.width,En(T,Ht),T.end=Be.range.end;}Ke=0,Mt=0;}}else if(T.spans.length===0&&T.drawings.length===0&&Ir>je()+.001&&!Je(Ir))continue;Oe(Se,z),!Jn&&T!==md&&(Jn=Ol?.());let jn=Se,qa=M.start+ue,Or=de;if(!X&&M.measureText===void 0&&!Tr&&(T.spans.length===0||!Ie&&Ke===0)&&de>_t()+ks){let Ye=LP(Se,qa,de,{remainingLineWidth:_t,lineHasText:()=>T.spans.length>0,measureText:Be=>o.measure(zt(Be,z),z),appendPrefix:Be=>{let Ht=o.lineMetrics(z,zt(Be.text,z));T.spans.push({range:{paragraphId:t,start:Be.modelStart,end:Be.modelStart+Be.text.length},text:Be.text,props:M.props,style:M.style,box:{x:le()+T.width,y:0,width:Be.width,height:Ht.height},...M.link?{link:M.link}:{},...M.noteNav?{noteNav:M.noteNav}:{},...M.fontSlot?{fontSlot:M.fontSlot}:{},...M.glyphOffsetPt!==void 0?{glyphOffsetPt:M.glyphOffsetPt}:{},...Po(M)}),T.width+=Be.width,En(T,Ht),T.end=Be.modelStart+Be.text.length;},closeLine:st,overflowTolerancePt:ks,keepWithPrevious:Xt==="forbidden",cutAllowedAt:N?(Be,Ht)=>N.cutAllowed(M,ue,Ht):hS});jn=Ye.text,qa=Ye.modelStart,Or=Ye.width,Ye.brokeLine&&(Ke=0,Mt=0,vr=T.end);}if(jn.length>0){let Ye=o.lineMetrics(z,M.noteSeparator?void 0:zt(jn,z)),Be={range:X?mt:{paragraphId:t,start:qa,end:M.start+oe},text:jn,props:M.props,style:M.style,box:{x:le()+T.width,y:0,width:Or,height:Ye.height},...M.link?{link:M.link}:{},...X&&!M.positionalTab?{projected:true}:{},...M.noteNav?{noteNav:M.noteNav}:{},...M.fontSlot?{fontSlot:M.fontSlot}:{},...M.glyphOffsetPt!==void 0?{glyphOffsetPt:M.glyphOffsetPt}:{},...Ya?{lineEndWhitespace:true}:{},...Po(M)};Jn?gP(T.spans,Be,Jn):CP(T.spans,Be,xt),T.width+=Or,En(T,Ye),T.end=X?M.end:M.start+oe;}Tn=Se,ue=oe;}}return (T.spans.length>0||T.drawings.length>0||H.length===0||rt)&&st({includeParagraphMark:true}),!f&&iP(H)?up(e,t,n,r,o,a,i,l,s,d,c,u,true):(Kt(H),i!==null&&a&&a.set(i,a.retainAcrossPasses===false?H:H.map(qS)),H)}var fp="http://schemas.openxmlformats.org/wordprocessingml/2006/main";function DP(e){let t=false;for(let n of e?.children??[])if(!(n.kind==="textValue"||n.namespaceUri!==fp||n.localName!=="compat"))for(let r of n.children){if(r.kind==="textValue"||r.namespaceUri!==fp||r.localName!=="compatSetting")continue;let o=a=>r.attributes.find(i=>i.namespaceUri===fp&&i.localName===a)?.value;o("name")==="overrideTableStyleFontSizeAndJustification"&&o("uri")==="http://schemas.microsoft.com/office/word"&&(t=["1","true","on"].includes(o("val")??""));}return t}function _P(e,t){let n=new Map;for(let o of e)n.set(o.localName,o.attributes?.val);let r=new Set;for(let o of ["sz","szCs"]){let a=Number(n.get(o));(a===22||a===24)&&t.some(i=>i.localName===o&&Number(i.attributes?.val)>0)&&r.add(o);}return n.get("jc")==="left"&&r.add("jc"),r.size?e.filter(o=>!r.has(o.localName)):e}var IB=128,OB=/[\u0000-\u001F\u007F-\u009F]/,FB=32;function vo(e){return e.kind!=="textValue"}function pr(e,t){return e.attributes.find(n=>n.localName===t)?.value}function gr(e,t){for(let n of e.children)if(vo(n)&&n.localName===t)return n}function ko(e){return e===void 0||e.length===0||e.length>IB?false:!OB.test(e)&&!chunkCB6RQ3GD_cjs.I(e)}function CB(e){return e==="1"||e==="true"||e==="on"}function Gi(e){if(e){for(let t of e.children)if(vo(t)&&(t.kind==="runProperties"||t.localName==="rPr"))return t}}function Is(e){if(e){for(let t of e.children)if(vo(t)&&(t.kind==="paragraphProperties"||t.localName==="pPr"))return t}}var jP=new Set(["rPrChange","pPrChange","ins","del","moveFrom","moveTo"]);function Ia(e){return e.some(t=>jP.has(t.localName))?e.filter(t=>!jP.has(t.localName)):e}function HP(e){let t=gr(e,"docDefaults");if(!t)return {run:[],paragraph:[],paragraphNode:void 0};let n=Gi(gr(t,"rPrDefault")),r=Is(gr(t,"pPrDefault"));return {run:Ia(ut(n)),paragraph:Ia(ut(r)),paragraphNode:r}}function WP(e){let t=pr(e,"styleId");if(!ko(t))return null;let n=pr(e,"type")??"",r=gr(e,"basedOn"),o=r?pr(r,"val"):void 0,a=ko(o)?o:null,i=gr(e,"next"),l=i?pr(i,"val"):void 0,s=ko(l)?l:null,d=Is(e),c=Gi(e),u=new Map,f=0;for(let m of e.children){if(m.kind==="textValue"||m.localName!=="tblStylePr")continue;if(f>=FB)break;f+=1;let p=pr(m,"type");p&&!u.has(p)&&u.set(p,m);}return {styleId:t,type:n,basedOn:a,next:s,outlineLevel:chunkFGBADUSK_cjs.a(e),isDefault:CB(pr(e,"default")),paragraphProperties:Ia(ut(d)),runProperties:Ia(ut(c)),paragraphPropertiesNode:d,tablePropertiesNode:gr(e,"tblPr"),tableRowPropertiesNode:gr(e,"trPr"),tableCellPropertiesNode:gr(e,"tcPr"),conditionalTableFormats:u}}var mp=32,MB=4096;function Os(e){return e.map(t=>t.attributes?{n:t.localName,a:t.attributes}:{n:t.localName})}function su(e){return e?chunkHZQFGB2X_cjs.B(chunkCB6RQ3GD_cjs.ra(e)):""}function BB(e){return [...e.conditionalTableFormats].map(([t,n])=>[t,su(n)])}var du=Object.freeze({tablePropertyNodes:Object.freeze([]),tableRowPropertyNodes:Object.freeze([]),tableCellPropertyNodes:Object.freeze([]),paragraphPropertyNodes:Object.freeze([]),paragraphProperties:Object.freeze([]),runProperties:Object.freeze([]),conditional:new Map});function $P(e,t){let n=t&&ko(t)?t:null,r=n?VP(e,n):null;if(r)return r;let o=e.defaultTableStyleId;return !o||o===n?du:VP(e,o)??du}var zP=new WeakMap;function VP(e,t){let n=zP.get(e);n||(n=new Map,zP.set(e,n));let r=n.get(t);if(r)return r;let o=LB(e,t);return o?(n.set(t,o),o):null}function LB(e,t){let n=cu(e,t,"table");if(n.length===0)return null;let r=[],o=[],a=[],i=[],l=[],s=[],d=new Map,c=new Map;for(let u of n){u.tablePropertiesNode&&r.push(u.tablePropertiesNode),u.tableRowPropertiesNode&&o.push(u.tableRowPropertiesNode),u.tableCellPropertiesNode&&a.push(u.tableCellPropertiesNode),u.paragraphPropertiesNode&&i.push(u.paragraphPropertiesNode),l.push(...u.paragraphProperties),s.push(...u.runProperties);for(let[f,m]of u.conditionalTableFormats)d.set(f,m),c.set(f,Object.freeze([...c.get(f)??[],m]));}return Object.freeze({tablePropertyNodes:Object.freeze(r),tableRowPropertyNodes:Object.freeze(o),tableCellPropertyNodes:Object.freeze(a),paragraphPropertyNodes:Object.freeze(i),paragraphProperties:Object.freeze(l),runProperties:Object.freeze(s),conditional:GP(d),conditionalStyleLayers:GP(c)})}function GP(e){let t=Object.freeze({get:n=>e.get(n),has:n=>e.has(n),forEach:(n,r)=>{for(let[o,a]of e)n.call(r,a,o,t);},keys:()=>e.keys(),values:()=>e.values(),entries:()=>e.entries(),[Symbol.iterator]:()=>e[Symbol.iterator](),[Symbol.toStringTag]:"Map",get size(){return e.size}});return t}function KP(e){return e.paragraphPropertyNodes.length>0||e.paragraphProperties.length>0||e.runProperties.length>0||e.conditional.size>0}var pp=Object.freeze({paragraphProperties:Object.freeze([]),paragraphPropertyNodes:Object.freeze([]),runProperties:Object.freeze([])});function UP(e,t){let n=[...e.paragraphPropertyNodes],r=[...e.paragraphProperties],o=[...e.runProperties];for(let a of t){let i=e.conditional.get(a);if(!i)continue;let l=Is(i);l&&(n.push(l),r.push(...Ia(ut(l))));let s=Gi(i);s&&o.push(...Ia(ut(s)));}return n.length===0&&r.length===0&&o.length===0?pp:{paragraphProperties:r,paragraphPropertyNodes:n,runProperties:o}}function EB(e){return {major:e.major??null,minor:e.minor??null,majorEastAsia:e.majorEastAsia??null,minorEastAsia:e.minorEastAsia??null,majorBidi:e.majorBidi??null,minorBidi:e.minorBidi??null,majorSupplemental:e.majorSupplemental??null,minorSupplemental:e.minorSupplemental??null}}function XP(e,t=Pb,n=null){let r=cS(n),o=bb(n),a=o?{}:{disableOptionalLigatures:true},i=DP(n),l=dS(n)?{preserveExactLineBaseline:true}:{},s=new Map,d=EB(t);if(!e){let x=Mm(null,o);return {cacheToken:chunkHZQFGB2X_cjs.B({empty:true,dR:Os(x),...a,theme:d,typography:r,strictTableHierarchy:i,...l}),...l,...a,strictTableStyleHierarchy:i,typography:r,docDefaultsRun:x,docDefaultsParagraph:[],docDefaultsParagraphNode:void 0,defaultParagraphStyleId:null,defaultCharacterStyleId:null,defaultTableStyleId:null,themeFonts:t,styles:s}}let c=HP(e),u={...c,run:[...Mm(e,o),...c.run],paragraph:[...lS(e),...c.paragraph]},f=null,m=null,p=null,g=0;for(let x of e.children){if(!vo(x)||x.localName!=="style")continue;if(g>=MB)break;g+=1;let b=WP(x);if(!b)continue;let{isDefault:y,...w}=b;s.set(w.styleId,w),w.type==="paragraph"?y?f=w.styleId:f===w.styleId&&(f=null):w.type==="character"?y?m=w.styleId:m===w.styleId&&(m=null):w.type==="table"&&(y?p=w.styleId:p===w.styleId&&(p=null));}return {cacheToken:chunkHZQFGB2X_cjs.B({...l,...a,strictTableHierarchy:i,typography:r,dR:Os(u.run),dP:Os(u.paragraph),defP:f,defC:m,defT:p,theme:d,styles:[...s.values()].map(x=>({id:x.styleId,type:x.type,basedOn:x.basedOn,outlineLevel:x.outlineLevel,p:Os(x.paragraphProperties),r:Os(x.runProperties),tPr:su(x.tablePropertiesNode),trPr:su(x.tableRowPropertiesNode),tcPr:su(x.tableCellPropertiesNode),tblStylePr:BB(x)}))}),...l,...a,strictTableStyleHierarchy:i,typography:r,docDefaultsRun:u.run,docDefaultsParagraph:u.paragraph,docDefaultsParagraphNode:u.paragraphNode,defaultParagraphStyleId:f,defaultCharacterStyleId:m,defaultTableStyleId:p,themeFonts:t,styles:s}}function gp(e,t){let n=null;for(let r of e){if(r.localName!==t)continue;let o=r.attributes?.val;n=ko(o)?o:null;}return n}function cu(e,t,n){let r=e.styles.get(t);if(!r||r.type!==n)return [];let o=[],a=new Set,i=t,l=0;for(;i!==null&&l<mp&&!(a.has(i)||!ko(i));){a.add(i);let s=e.styles.get(i);if(!s)break;o.push(s),i=s.basedOn,l+=1;}return o.reverse()}function uu(e,t,n){return YP(e,t,n)}function YP(e,t,n,r){let o=ut(t),a=gp(o,"pStyle")??e.defaultParagraphStyleId,i=a?cu(e,a,"paragraph"):[],l=o.some(h=>h.localName==="numPr"),s=(h,x)=>n&&!e.strictTableStyleHierarchy&&h.styleId===e.defaultParagraphStyleId?_P(x,[...e.docDefaultsRun,...n.runProperties]):x,d=[...e.docDefaultsParagraph,...n?.paragraphProperties??[],...l?[]:ut(r),...i.flatMap(h=>s(h,h.paragraphProperties)),...l?ut(r):[]],c=[...d,...o],u=[];e.docDefaultsParagraphNode&&u.push(e.docDefaultsParagraphNode),n&&u.push(...n.paragraphPropertyNodes),r&&!l&&u.push(r);for(let h of i)h.paragraphPropertiesNode&&u.push(h.paragraphPropertiesNode);r&&l&&u.push(r),t&&u.push(t);let f=Gi(t&&vo(t)?t:void 0),m=ut(f),p=hi([{properties:e.docDefaultsRun,role:"defaults",emit:true},{properties:n?.runProperties??[],role:"xor",emit:true},{properties:i.flatMap(h=>s(h,h.runProperties)),role:"xor",emit:true}]),g=m.length===0?p:hi([{properties:p,role:"carried",emit:true},{properties:m,role:"direct",emit:true}]);return {paragraphProperties:c,inheritedParagraphProperties:d,paragraphPropertyNodes:u,runProperties:Zd(p,e.disableOptionalLigatures),markRunProperties:Zd(g,e.disableOptionalLigatures),styleId:a??null}}function NB(e){let t;for(let n of e){if(!n||n.kind==="textValue")continue;let r=false;for(let o of n.children)if(vo(o)&&o.localName==="pBdr"){r=true;break}r&&(t=qd(n).bottom);}return t}function $i(e,t,n){let r=i=>Zd(i,n?.disableOptionalLigatures),o=[];if(n){let l=gp(t,"rStyle")??n.defaultCharacterStyleId;l&&(o=cu(n,l,"character").flatMap(s=>s.runProperties));}if(e.length===0&&o.length===0)return r(t);if(o.length===0&&t.length===0)return r(e);let a=o.length===0?e:hi([...e.length>0?[{properties:n?.docDefaultsRun??[],role:"defaults",emit:false}]:[],{properties:e,role:"carried",emit:true},{properties:o,role:"xor",emit:true}]);return t.length===0?r(a):r([...a,...t])}function Kr(e,t,n,r,o,a=false,i=12){let l=Is(e),s=rs(r),d=n?YP(n,l,o,s):null,c=d?.paragraphPropertyNodes??[s,l].filter(O=>O!==void 0),u=d?[...d.paragraphProperties]:[...ut(s),...ut(l)],f=ut(Gi(l&&vo(l)?l:void 0)),m=d?d.runProperties:[],p=d?d.markRunProperties:f,g=Ts(u),h=0,x=0;if(r)h=r.indent.hanging,x=r.indent.firstLine;else for(let O of u){if(O.localName!=="ind")continue;let F=vs(O.attributes?.hanging),k=vs(O.attributes?.firstLine);(O.attributes?.hanging!==void 0||O.attributes?.firstLine!==void 0)&&(h=F!==null?Math.max(0,chunkCB6RQ3GD_cjs.hf(F)):0,x=k!==null?chunkCB6RQ3GD_cjs.hf(k):0);}let b=r?{left:r.indent.left,right:r.indent.right,hanging:h,firstLine:x}:{left:g.left,right:g.right,hanging:h,firstLine:x},y=SP(c),w=d?d.styleId:gp(u,"pStyle")??null,P=null,R=false;for(let O of u){if(O.localName!=="outlineLvl")continue;R=true;let F=O.attributes?.val;P=F!==void 0&&/^[0-8]$/.test(F)?Number(F):null;}if(!R&&n&&w){let O=cu(n,w,"paragraph");for(let F=O.length-1;F>=0;F-=1){let k=O[F].outlineLevel;if(k!==null){P=k;break}}}if(!R&&P===null&&w){let O=/^heading\s*([1-9])$/i.exec(w.trim());O&&(P=Number(O[1])-1);}return {props:u,indent:b,available:Math.max(1,t-b.left-b.right),alignment:bs(u),spacing:$l(u,{inList:r!==void 0,lineUnitPt:i}),lineSpacing:{...ib(u),...n?.preserveExactLineBaseline?{preserveExactBaseline:true}:{}},contextualSpacing:lb(u),styleId:w,outlineLevel:P,bottomBorder:NB(c),borders:db(c),shading:nb(u),inheritedRunProperties:m,markRunProperties:p,tabStops:y,tabStopsCacheToken:nu(y),...r?{listItem:r}:{}}}var qP=new Map;function AB(e){let t=qP.get(e);return t||(t=Ne([{localName:"rFonts",attributes:{ascii:e,hAnsi:e,hint:"default"}}]),qP.set(e,t)),t}var ZP=new Map,hp=new WeakMap;function JP(e){let t=e?.hasResolvedFont;if(!e||!t)return;let n=hp.get(e);if(n!==void 0)return n??void 0;let r=[];for(let i of Qy){let l=false;try{l=t.call(e,AB(i))===!0;}catch{l=false;}l&&r.push(i);}if(r.length===0){hp.set(e,null);return}let o=r.join("|"),a=ZP.get(o);if(!a){let i=new Set(r);a=l=>i.has(l.toLowerCase()),ZP.set(o,a);}return hp.set(e,a),a}function fu(e,t){if(e.kind!=="textValue"){for(let n of e.children)if(n.kind!=="textValue"&&n.namespaceUri===chunkCB6RQ3GD_cjs.da&&n.localName===t)return n}}var QP=new WeakMap;function DB(e){let t=QP.get(e);if(t!==void 0)return t;let n=fu(e,"pPr"),r=n&&fu(n,"rPr"),o=r!==void 0&&(chunkCB6RQ3GD_cjs.pa(r,"vanish")||chunkCB6RQ3GD_cjs.pa(r,"specVanish"));return QP.set(e,o),o}function _B(e){let t=fu(e,"pPr");return t!==void 0&&fu(t,"sectPr")!==void 0}var tR=new WeakMap,nR=new WeakMap,eR=new WeakMap;function yp(e){return nR.get(e)}function jB(e,t){let n=eR.get(e);if(n&&n.neighbours.before===t.before&&n.neighbours.after===t.after)return n.standIn;let r={...e};return nR.set(r,t),eR.set(e,{neighbours:t,standIn:r}),r}function rR(e,t,n,r=()=>true){let o=null,a;for(let c=e.length-1;c>=0;c-=1){let u=e[c],{block:f}=u;if(f.kind==="paragraph"&&a?.block.kind==="paragraph"&&a.parentKey===u.parentKey&&DB(f)&&!_B(f)&&Px(f,t,n)){(o??=new Set).add(c);continue}a=u;}if(o===null)return e.map(c=>c.block);let i=o,l=(c,u)=>{let f=e[c+u];return f&&i.has(c+u)&&f.parentKey===e[c].parentKey?f.block:void 0},s=e.map((c,u)=>{let{block:f}=c;if(i.has(u)||f.kind!=="paragraph"||!r(f))return f;let m=l(u,-1),p=l(u,1);return !m&&!p?f:jB(f,{...m?{before:m}:{},...p?{after:p}:{}})}),d=s.filter((c,u)=>!i.has(u));return tR.set(d,s),d}function oR(e){return tR.get(e)??e}function mu(e,t){return e.picBullet?e.picBullet.width:t.measure(e.markerText,e.markerStyle)}function aR(e){return e.markerText.length>0||e.picBullet!==void 0}function pu(e,t,n,r){if(!aR(e))return null;let o=e.indent.left,a=e.indent.hanging,i=a>0?-a:e.indent.firstLine,l=Math.min(0,o),d=Math.max(l,o+i);return e.markerAlign==="right"?d-=t:e.markerAlign==="center"&&(d-=t/2),d<l&&(d=l),{x:d,y:n,width:Math.max(t,0),height:r}}function iR(e,t,n=Rs,r=Number.POSITIVE_INFINITY){if(!aR(e))return 0;let o=mu(e,t),a=pu(e,o,0,0);if(!a)return 0;let i=e.indent.left,l=a.x+a.width;return e.suffix==="nothing"?l-i:e.suffix==="space"?l+t.measure(" ",e.markerStyle)-i:l<=i?0:Wi(n,l,r,true).positionPt-i}function bp(e,t,n,r,o){return e?iR(e,n,r,o===void 0?void 0:t.left+o):t.hanging>0?-t.hanging:t.firstLine}var Pp=new WeakMap;function bG(e,t){let n=t.dependencyKeys.size===0||[...t.dependencyKeys].every(r=>r===chunkCB6RQ3GD_cjs.g.story);Pp.set(e,{preservesNumberedSequence:t.impact==="text-local"&&!t.structural&&t.created.size===0&&t.deleted.size===0&&n});}function WB(e){let t=Pp.get(e);return Pp.delete(e),t}var gR=new WeakMap;function hR(e){return gR.get(e)}function Rp(e){return e.kind!=="textValue"}function lR(e,t){for(let n of e.attributes)if(n.localName===t)return n.value}function gu(e,t){for(let n of e.children)if(Rp(n)&&n.localName===t)return n}function yR(e){if(!Rp(e))return null;let t=gu(e,"numPr");if(!t)return null;let n=gu(t,"numId"),r=gu(t,"ilvl"),o;if(n){let i=lR(n,"val");o=i!==void 0&&i!=="0"&&i.length<=64?i:null;}let a;if(r){let i=lR(r,"val"),l=/^\d{1,2}$/.test(i??"")?Number(i):0;a=l<=8?l:null;}return {numId:o,ilvl:a}}function zB(e){let t=null,n=0;for(let r of e){let o=yR(r);o&&(o.numId!==void 0&&(t=o.numId),o.ilvl!==void 0&&(o.ilvl===null?t=null:n=o.ilvl));}return t===null?null:{numId:t,ilvl:n}}function VB(e,t){let n=new Set,r=e.styles.get(t);for(let o=0;r!==void 0&&o<mp;o+=1){if(n.has(r.styleId))return;n.add(r.styleId);let a=r.paragraphPropertiesNode,i=a?yR(a):null;if(i&&i.numId!==void 0)return i.numId??void 0;r=r.basedOn===null?void 0:e.styles.get(r.basedOn);}}var xp=new WeakMap;function hu(e,t){if(!t)return e;let n=xp.get(e);if(n&&n.styleCascade===t)return n.linked;let r=eS(e,a=>VB(t,a)),o={styleCascade:t,linked:r};return xp.set(e,o),xp.set(r,o),r}function sR(e){return Number.isFinite(e)?e>Kn?Kn:e<-Kn?-Kn:e:0}function dR(e){let t=null;for(let n of e){if(n.localName!=="ind")continue;let r=n.attributes?.hanging,o=n.attributes?.firstLine;r===void 0&&o===void 0||(t={hanging:r!==void 0&&/^\d{1,9}$/.test(r)?sR(Number(r)/20):0,firstLine:o!==void 0&&/^-?\d{1,9}$/.test(o)?sR(Number(o)/20):0});}return t}function cR(e,t=false){return e.some(n=>n.localName==="ind"&&(n.attributes?.left!==void 0||n.attributes?.[t?"end":"start"]!==void 0))}function uR(e,t=false){return e.some(n=>n.localName==="ind"&&(n.attributes?.right!==void 0||n.attributes?.[t?"start":"end"]!==void 0))}function GB(e,t,n=[]){let r=bt([...t,...n]),o={localName:"bidi",attributes:{val:r?"1":"0"}};if(e.authored){let f=e.authored,m=f.left??(r?f.end:f.start),p=f.right??(r?f.start:f.end);e={...e,left:m??0,right:p??0,stated:{left:m!==void 0,right:p!==void 0,firstLineOffset:e.stated?.firstLineOffset??false}};}let a=e.stated??{left:false,right:false,firstLineOffset:false},i=Ts([...t,o]),l=Ts([...n,o]),s={hanging:e.hanging,firstLine:e.firstLine},d=cR(n,r)?l.left:a.left?e.left:cR(t,r)?i.left:e.left,c=uR(n,r)?l.right:a.right?e.right:uR(t,r)?i.right:e.right,u=dR(n)??(a.firstLineOffset?s:dR(t)??s);return {left:d,right:c,...u}}function Oa(e,t=8){let n=[],r=(o,a)=>{for(let i of o){if(i.kind==="paragraph"){n.push(i);continue}if(!(i.kind!=="table"||a>=t)){for(let l of chunkCB6RQ3GD_cjs.Jc(i.children))if(l.kind==="tableRow")for(let s of chunkCB6RQ3GD_cjs.Jc(l.children)){if(s.kind!=="tableCell")continue;let d=chunkCB6RQ3GD_cjs.Nd(s.children);r(d,a+1);}}}};return r(e,0),n}var fR=new WeakMap;function bR(e,t){let n=fR.get(e);if(n&&n.styleCascade===t)return n;let r=e.children.find(s=>s.kind==="paragraphProperties"),o=t?uu(t,r):null,a=o?o.paragraphPropertyNodes:r?[r]:[],i=r&&Rp(r)?gu(r,"rPr"):void 0,l={styleCascade:t,numPr:zB(a),inheritedParagraphProperties:o?.inheritedParagraphProperties??[],directProps:ut(r),inheritedMarkProps:o?o.markRunProperties:ut(i),perLevel:new WeakMap};return fR.set(e,l),l}function wp(e,t,n,r){let o=new Map;if(t.nums.size===0)return o;let a=hu(t,n),i=rS(a);for(let l of Oa(e)){let s=bR(l,n),d=s.numPr;if(!d)continue;let c=i.advance(d.numId,d.ilvl);if(!c)continue;let u=s.perLevel.get(c.level);if(!u){let w=GB(c.level.indent,s.inheritedParagraphProperties,s.directProps),P=$i(s.inheritedMarkProps,c.level.runProperties,n);u={indent:w,markerStyle:Ne(P,n?.themeFonts)},s.perLevel.set(c.level,u);}let{indent:f,markerStyle:m}=u,p=ui(c.markerText,m.fontFamily,r),g=p!==c.markerText&&!eb(p)?{...m,fontFamily:null,fontFamilyEastAsia:null}:m,h=c.level.picBulletId===void 0?void 0:a.pictureBullets?.get(c.level.picBulletId),x=h?Ux(h,g.fontSizePt)??void 0:void 0,b=ae([c.numId,c.ilvl,c.level.numFmt,c.level.lvlText,f.left,f.right,f.hanging,f.firstLine,c.level.lvlJc,c.level.suff,c.level.vanish?1:0,Dx(c.level),p,Ex(g),x?`${x.relationshipId}:${x.width}:${x.height}`:""].map(String)),y={numId:c.numId,ilvl:c.ilvl,abstractNumId:c.abstractNumId,numFmt:c.level.numFmt,markerText:p,...c.level.numFmt==="bullet"?{}:{ordinal:c.counters[c.ilvl]??1},markerAlign:c.level.lvlJc,suffix:c.level.suff,indent:f,markerStyle:g,...x?{picBullet:x}:{},cacheToken:b};Oc(y,rs(c.level)),gR.set(y,{index:a,numId:c.numId,ilvl:c.ilvl,expandCounters:aS(c)}),o.set(l.id,y);}return o}var xR=new WeakMap,SR=new WeakMap;function $B(e){return e.isFontAvailable??JP(e.measurer)}function mR(e,t,n,r){let o=r?SR.get(r):xR.get(n);if(o&&o.rawIndex===e.numberingIndex&&o.styleCascade===e.styleCascade&&o.isFontAvailable===t)return o}function KB(e,t,n){t?SR.set(t,n):xR.set(e,n);}function PR(e,t,n){let r=oR(t),o=$B(e);if(e.listItems===void 0){let s=mR(e,o,r,n);if(s&&n===void 0)return {...e,numberingIndex:s.linkedIndex,...s.listItems?{listItems:s.listItems}:{}}}let a=e.listItems===void 0?mR(e,o,r,n):void 0,i=a&&a.rawIndex===e.numberingIndex&&a.styleCascade===e.styleCascade&&a.isFontAvailable===o?a.linkedIndex:hu(e.numberingIndex??tS,e.styleCascade),l=e.listItems??(i.nums.size>0?qB(r,e.numberingIndex,i,e.styleCascade,o,n):void 0);return e.listItems===void 0&&KB(r,n,{rawIndex:e.numberingIndex,styleCascade:e.styleCascade,isFontAvailable:o,linkedIndex:i,listItems:l}),{...e,numberingIndex:i,...l?{listItems:l}:{}}}function Ui(e,t){return PR(e,t,void 0)}function RR(e,t,n){return PR(e,t,n)}var pR=new WeakMap,UB=Object.freeze([]);function XB(e,t){let n=pR.get(e);if(n&&n.styleCascade===t)return n.numbered;let r=Oa([e]).filter(a=>bR(a,t).numPr!==null),o=r.length>0?r:UB;return pR.set(e,{styleCascade:t,numbered:o}),o}var Ki=new WeakMap,Sp=new WeakMap;function YB(e,t){return e.length===t.length&&e.every((n,r)=>{let o=t[r];if(!o||n.id!==o.id)return false;let a=n.children.find(l=>l.kind==="paragraphProperties"),i=o.children.find(l=>l.kind==="paragraphProperties");return a===i})}function qB(e,t,n,r,o,a){let i=e[0],l=e[e.length-1],s=a?Sp.get(a):(i?Ki.get(i):void 0)??(l?Ki.get(l):void 0);if((a?WB(a):void 0)?.preservesNumberedSequence&&s&&s.rawIndex===t&&s.styleCascade===r&&s.isFontAvailable===o)return s.listItems;let c=new Array(e.length),u=s!==void 0&&s.rawIndex===t&&s.styleCascade===r&&s.isFontAvailable===o&&s.blocks.length===e.length;for(let p=0;p<e.length;p+=1){let g=e[p],h=s&&s.blocks[p]===g?s.numberedByBlock[p]:XB(g,r);c[p]=h,u&&!YB(h,s.numberedByBlock[p])&&(u=false);}if(s&&u){let p={...s,blocks:e,numberedByBlock:c};return a?Sp.set(a,p):(i&&Ki.set(i,p),l&&l!==i&&Ki.set(l,p)),s.listItems}let f=wp(e,n,r,o),m={rawIndex:t,styleCascade:r,isFontAvailable:o,blocks:e,numberedByBlock:c,listItems:f};return a?Sp.set(a,m):(i&&Ki.set(i,m),l&&l!==i&&Ki.set(l,m)),f}function RG(e,t,n){return Xi(e,t,()=>n)}function Xi(e,t,n){let r=[],o=null,a=-1,i=-1;for(let l of t){let s=n(l.sectionIndex);if(l.customMarkFollows){r.push({noteId:l.noteId,mark:null});continue}o===null?(o=s.numStart,a=l.sectionIndex,i=l.pageIndex??-1):s.numRestart==="eachSect"&&l.sectionIndex!==a?(o=s.numStart,a=l.sectionIndex):s.numRestart==="eachPage"&&l.pageIndex!==void 0&&l.pageIndex!==i?(o=s.numStart,i=l.pageIndex):s.numRestart==="eachSect"?a=l.sectionIndex:s.numRestart==="eachPage"&&l.pageIndex!==void 0&&(i=l.pageIndex);let d=o;o+=1,r.push({noteId:l.noteId,mark:ir(s.numFmt,d),displayNumber:d});}return r}function ZB(e){let t=new Map;for(let n of e)t.set(n.noteId,n.mark);return t}var JB=["top","left","bottom","right"];function kp(e,t){if(!(e.kind==="textValue"||!("attributes"in e))){for(let n of e.attributes??[])if(n.localName===t)return n.value}}function Fs(e,t){if(e.kind!=="textValue"){for(let n of e.children??[])if(n.kind!=="textValue"&&"localName"in n&&n.localName===t)return n}}function yu(e){let t=uo(e);if(!(!t||!rb(t.val)))return t}function QB(e){return e==="firstPage"||e==="notFirstPage"?e:"allPages"}function wR(e){let t=Fs(e,"pgBorders");if(!t)return;let n=yu(Fs(t,"top")),r=yu(Fs(t,"left")),o=yu(Fs(t,"bottom")),a=yu(Fs(t,"right"));if(!(!n&&!r&&!o&&!a))return {offsetFrom:kp(t,"offsetFrom")==="page"?"page":"text",display:QB(kp(t,"display")),zOrder:kp(t,"zOrder")==="back"?"back":"front",...n?{top:n}:{},...r?{left:r}:{},...o?{bottom:o}:{},...a?{right:a}:{}}}function bu(e){if(!e)return "";let t=[e.offsetFrom,e.display,e.zOrder];for(let n of JB){let r=e[n];r&&t.push(`${n}:${r.val},${r.color??"auto"},${r.widthPt},${r.spacePt}`);}return t.join(",")}var vp=4096,Yn=Object.freeze({pageSize:Object.freeze({widthTwips:12240,heightTwips:15840}),margins:Object.freeze({topTwips:1440,rightTwips:1440,bottomTwips:1440,leftTwips:1440,headerTwips:720,footerTwips:720,gutterTwips:0}),columns:Object.freeze({count:1,gapTwips:720,equalWidth:true,separator:false,definitions:Object.freeze([])}),landscape:false,titlePage:false,breakType:"nextPage"});function Ip(e,t,n=31680*2){if(e===void 0||!/^-?\d{1,7}$/.test(e))return t;let r=Number(e);return !Number.isFinite(r)||r<=0||r>n?t:r}function Fa(e,t){if(e===void 0||!/^-?\d{1,7}$/.test(e))return t;let n=Number(e);return !Number.isFinite(n)||Math.abs(n)>31680?t:n}function Op(e,t,n=31680){if(e===void 0||!/^\d{1,7}$/.test(e))return t;let r=Number(e);return !Number.isFinite(r)||r<0||r>n?t:r}var ft=(e,t)=>{if(!(e.kind==="textValue"||!("attributes"in e))){for(let n of e.attributes??[])if(n.localName===t)return n.value}},To=(e,t)=>{if(e.kind!=="textValue"){for(let n of e.children??[])if(n.kind!=="textValue"&&"localName"in n&&n.localName===t)return n}};function kR(e,t,n){let r=ft(e,t);return r===void 0?n:r==="0"||r==="false"||r==="off"||r==="no"?false:r==="1"||r==="true"||r==="on"||r==="yes"?true:n}function eL(e){if(!e)return 1;let t=ft(e,"num");return !t||!/^\d{1,7}$/.test(t)?1:Math.max(1,Math.min(12,Number(t)))}function tL(e,t,n){if(!e||e.kind==="textValue")return [];let r=[];for(let o of e.children??[]){if(r.length>=t||o.kind==="textValue"||!("localName"in o)||o.localName!=="col")continue;let a=r.length;r.push({widthTwips:Ip(ft(o,"w"),1,31680),gapTwips:a===t-1?0:Op(ft(o,"space"),n)});}return r}function nL(e){let t=e?To(e,"type"):void 0,n=t?ft(t,"val"):void 0;return n==="continuous"||n==="evenPage"||n==="oddPage"||n==="nextColumn"?n:"nextPage"}var rL=new Set(["hyphen","period","colon","emDash","enDash"]);function oL(e){let t=To(e,"pgNumType");if(!t||t.kind==="textValue")return;let n={},r=ft(t,"start");if(r!==void 0&&/^-?\d{1,7}$/.test(r)){let l=Number(r);Number.isFinite(l)&&l>=0&&l<=9999&&(n.start=l);}let o=ft(t,"fmt");o!==void 0&&o.length>0&&o.length<=64&&!/[<>&"']/.test(o)&&(n.fmt=o);let a=ft(t,"chapStyle");if(a!==void 0&&/^\d{1,2}$/.test(a)){let l=Number(a);Number.isFinite(l)&&l>=0&&l<=9&&(n.chapStyle=l);}let i=ft(t,"chapSep");return i!==void 0&&rL.has(i)&&(n.chapSep=i),n}var vR=new WeakMap;function Tp(e){if(!e)return Yn;let t=vR.get(e);if(t!==void 0)return t;let n=aL(e);return vR.set(e,n),n}function aL(e){let t=To(e,"pgSz"),n=To(e,"pgMar"),r=To(e,"cols"),o=Yn,a=To(e,"docGrid"),i=a?ft(a,"type"):void 0,l=a?Op(ft(a,"linePitch"),0):0,s=t?ft(t,"orient"):void 0,d=t?Ip(ft(t,"w"),o.pageSize.widthTwips):o.pageSize.widthTwips,c=t?Ip(ft(t,"h"),o.pageSize.heightTwips):o.pageSize.heightTwips,u=oL(e),f=wR(e),m=eL(r),p=r?Op(ft(r,"space"),o.columns.gapTwips):o.columns.gapTwips,g=r?kR(r,"equalWidth",true):true;return {...(i==="lines"||i==="linesAndChars")&&l>0?{gridLinePitchTwips:l}:{},pageSize:{widthTwips:d,heightTwips:c},margins:{topTwips:n?Fa(ft(n,"top"),1440):o.margins.topTwips,rightTwips:n?Fa(ft(n,"right"),1440):o.margins.rightTwips,bottomTwips:n?Fa(ft(n,"bottom"),1440):o.margins.bottomTwips,leftTwips:n?Fa(ft(n,"left"),1440):o.margins.leftTwips,headerTwips:n?Fa(ft(n,"header"),720):o.margins.headerTwips,footerTwips:n?Fa(ft(n,"footer"),720):o.margins.footerTwips,gutterTwips:n?Fa(ft(n,"gutter"),0):o.margins.gutterTwips},columns:{count:m,gapTwips:p,equalWidth:g,separator:r?kR(r,"sep",false):false,definitions:g?[]:tL(r,m,p)},landscape:s==="landscape"||d>c,titlePage:chunkCB6RQ3GD_cjs.pa(e,"titlePg"),breakType:nL(e),...u!==void 0?{pageNumbering:u}:{},...f!==void 0?{pageBorders:f}:{}}}function iL(e){let t=n=>{if(n.kind!=="textValue"){if(n.kind==="body")return To(n,"sectPr");for(let r of n.children??[]){let o=t(r);if(o)return o}}};return t(e.root)}var TR=new WeakMap;function Xn(e){let t=TR.get(e);if(t!==void 0)return t??void 0;let n=e.children.find(a=>a.kind==="paragraphProperties"),r=n?To(n,"sectPr"):void 0,o=r&&r.kind!=="textValue"?r:void 0;return TR.set(e,o??null),o}function BG(e){let t=Fp(e);return t[t.length-1]?.properties??Yn}function Fp(e,t="all-markup",n){return Cp(e,t,n).sections}function OR(e,t="all-markup",n){let r=An(e,t,n),o=Ca(e,r).sections,a=An(e,"all-markup"),i=Ca(e,a).sections,l=Math.max(0,i.length-1),s=new Map;for(let d of i){if(d.blockStart===d.blockEndExclusive)continue;let c=a[d.blockEndExclusive-1];c?.kind==="paragraph"&&Xn(c)&&s.set(c.id,d.index);}return o.map(d=>{if(d.blockStart===d.blockEndExclusive)return l;let c=r[d.blockEndExclusive-1];return c?.kind!=="paragraph"||!Xn(c)?l:s.get(c.id)??l})}function Cp(e,t="all-markup",n){return Ca(e,An(e,t,n))}var IR=chunkCB6RQ3GD_cjs.zg(16);function Ca(e,t){let n=IR.get(t);if(n&&n.part===e)return n.result;let r=lL(e,t);return IR.set(t,{part:e,result:r}),r}function lL(e,t){let n=[],r=0,o=false;for(let i=0;i<t.length;i+=1){let l=t[i];if(l.kind!=="paragraph")continue;let s=Xn(l);if(s){if(n.length>=vp){o=true;continue}n.push({index:n.length,properties:Tp(s),blockStart:r,blockEndExclusive:i+1}),r=i+1;}}if(o){if(n.length>0){let i=n[n.length-1];n[n.length-1]={...i,blockEndExclusive:t.length};}return {sections:n,truncated:true}}let a=iL(e);if(r<t.length||n.length===0){if(n.length>=vp){let i=n[n.length-1];return n[n.length-1]={...i,blockEndExclusive:t.length},{sections:n,truncated:true}}n.push({index:n.length,properties:Tp(a),blockStart:r,blockEndExclusive:t.length});}else if(a){if(n.length>=vp)return {sections:n,truncated:true};n.push({index:n.length,properties:Tp(a),blockStart:r,blockEndExclusive:t.length});}return {sections:n,truncated:o}}function Io(e){let t=chunkCB6RQ3GD_cjs.hf(chunkCB6RQ3GD_cjs.ff(e.pageSize.widthTwips)),n=chunkCB6RQ3GD_cjs.hf(chunkCB6RQ3GD_cjs.ff(e.pageSize.heightTwips)),r=chunkCB6RQ3GD_cjs.hf(chunkCB6RQ3GD_cjs.ff(e.margins.leftTwips+e.margins.gutterTwips)),o=chunkCB6RQ3GD_cjs.hf(chunkCB6RQ3GD_cjs.ff(e.margins.rightTwips)),a=chunkCB6RQ3GD_cjs.hf(chunkCB6RQ3GD_cjs.ff(e.margins.topTwips)),i=chunkCB6RQ3GD_cjs.hf(chunkCB6RQ3GD_cjs.ff(e.margins.bottomTwips));return t-r-o<=0||n-a-i<=0?ic:{width:t,height:n,margin:{top:a,right:o,bottom:i,left:r},headerDistance:chunkCB6RQ3GD_cjs.hf(chunkCB6RQ3GD_cjs.ff(Math.max(0,e.margins.headerTwips))),footerDistance:chunkCB6RQ3GD_cjs.hf(chunkCB6RQ3GD_cjs.ff(Math.max(0,e.margins.footerTwips)))}}var FR=4096,CR=new WeakMap;function ER(e,t){let n=CR.get(e);if(n&&n.sections===t)return n.input;let r={sections:t,footnotePropsBySection:e.footnotePropsBySection,endnotePropsBySection:e.endnotePropsBySection,documentFootnoteProps:e.documentFootnoteProps,documentEndnoteProps:e.documentEndnoteProps};return CR.set(e,{sections:t,input:r}),r}function VG(e,t,n){let r=chunkCB6RQ3GD_cjs.Qf(e),o=chunkCB6RQ3GD_cjs.Rf(r),a=chunkCB6RQ3GD_cjs.Sf(r),i=chunkCB6RQ3GD_cjs.Tf(void 0,o),l=chunkCB6RQ3GD_cjs.Uf(void 0,a),s=Ca(t,n).sections,d=c=>{if(c.blockStart===c.blockEndExclusive)return;let u=n[c.blockEndExclusive-1];return u?.kind==="paragraph"?Xn(u):void 0};return {sections:s,footnotePropsBySection:s.map(c=>chunkCB6RQ3GD_cjs.Tf(chunkCB6RQ3GD_cjs.Of(d(c)),o)),endnotePropsBySection:s.map(c=>chunkCB6RQ3GD_cjs.Uf(chunkCB6RQ3GD_cjs.Pf(d(c)),a)),documentFootnoteProps:i,documentEndnoteProps:l}}var sL=Object.freeze([]);function dL(e){for(let t of e.attributes){if(t.localName!=="customMarkFollows"||t.namespaceUri!==chunkCB6RQ3GD_cjs.da&&t.namespaceUri!=="")continue;let n=t.value;return !(n==="0"||n==="false"||n==="off")}return false}var MR=new WeakMap;function cL(e){let t=MR.get(e);if(t)return t;let n=null;for(let o of chunkCB6RQ3GD_cjs.Xe(e)){let a=o.node;if(a.kind!=="noteReference")continue;let i=chunkCB6RQ3GD_cjs.qd(a),l=chunkCB6RQ3GD_cjs.nd(a);i===null||l===null||(n??=[]).push({nodeId:a.id,noteKind:i,noteId:l,customMarkFollows:dL(a)});}let r=n===null?sL:Object.freeze(n);return MR.set(e,r),r}function uL(e,t){return e.footnotePropsBySection[t]??e.footnotePropsBySection[0]??e.documentFootnoteProps}function fL(e,t){return e.endnotePropsBySection[t]??e.endnotePropsBySection[0]??e.documentEndnoteProps}var mL=new Map,BR=new WeakMap;function NR(e,t){let n=BR.get(e);if(n&&n.input===t)return n.index;let r=[],o=[],a=[],i=[],l=0,s=0;for(let f=0;f<e.length&&l<FR;f+=1){for(;s<t.sections.length-1&&f>=t.sections[s].blockEndExclusive;)s+=1;let m=t.sections.length>0?s:0;for(let p of Oa([e[f]]))for(let g of cL(p)){if(l>=FR)break;l+=1;let h={noteId:g.noteId,sectionIndex:m,customMarkFollows:g.customMarkFollows};g.noteKind==="footnote"?(r.push(h),o.push(g.nodeId)):(a.push(h),i.push(g.nodeId));}}let d=null,c=(f,m,p,g)=>{if(m.length===0||(f==="footnote"?t.footnotePropsBySection.length>0?t.footnotePropsBySection:[t.documentFootnoteProps]:t.endnotePropsBySection.length>0?t.endnotePropsBySection:[t.documentEndnoteProps]).some(b=>b.numRestart==="eachPage"))return;let x=Xi(f,m,g);for(let b=0;b<x.length;b+=1){let y=x[b].mark,w=p[b];y!==null&&y.length>0&&w!==void 0&&(d??=new Map).set(w,y);}};c("footnote",r,o,f=>uL(t,f)),c("endnote",a,i,f=>fL(t,f));let u=d??mL;return BR.set(e,{input:t,index:u}),u}function Mp(e,t){for(let n of e.attributes)if(n.namespaceUri===chunkCB6RQ3GD_cjs.da&&n.localName===t)return n.value}var LR=new WeakMap;function AR(e,t){let n=LR.get(e),r=n?.get(t);if(r!==void 0)return r;let o=false,a=false,i,l=null,s=Vr(),d=(c,u,f)=>{if(a||c.kind==="textValue"||f>=chunkCB6RQ3GD_cjs.la||s.exhausted||u>Zt)return;if(c.kind==="bookmarkStart"){!o&&Mp(c,"name")===t&&(o=true,i=Mp(c,"id"));return}if(c.kind==="bookmarkEnd"){o&&i!==void 0&&Mp(c,"id")===i&&(a=true);return}if(o&&c.kind==="noteReference"){l=c.id,a=true;return}if(!yt(s))return;let m=chunkCB6RQ3GD_cjs.ma(c,f);for(let p of c.children)d(p,u+1,m);};for(let c of e.children){if(a||!yt(s))break;d(c,1,0);}return n||(n=new Map,LR.set(e,n)),n.set(t,l),l}var pL=512,gL=2048,DR=4096,GR=Object.freeze([]),$R=Object.freeze([]),hL=Object.freeze({fields:$R,bookmarks:GR});function Bp(e){return e.replace(/\u00A0/g," ").replace(/\s+/g," ").trim()}var _R=new WeakMap;function yL(e){let t=_R.get(e);if(t)return t;let n=null,r=null,o=Vr(),a=ua(),i=null,l=null,s=Mn,d=Mn,c=()=>{if(a.nesting!==1||a.phase!=="instruction"||a.nestingOverflow)return;let p=Ii(a);if(p.overflow||l===null)return;let g=go(p.instruction);if(g){i={spec:g,autonum:null,anchorId:l,cached:"",revisions:d};return}let h=ya(p.instruction);h&&(i={spec:null,autonum:h,anchorId:l,cached:"",revisions:d});},u=()=>{i&&((n??=[]).push({spec:i.spec,autonum:i.autonum,anchorId:i.anchorId,cached:Bp(i.cached),revisions:i.revisions}),i=null);},f=(p,g,h)=>{if(p.kind==="textValue"||h>=chunkCB6RQ3GD_cjs.la||o.exhausted||g>Zt)return;if(p.kind==="bookmarkStart"){let b=ns(p,"name");b!==void 0&&b.length>0&&b.length<=es&&(r??=[]).push(b);return}if(p.kind==="run"){for(let b of p.children){if(!yt(o))return;if(b.kind!=="runProperties"){if(Dt(b,"begin")){fa(a),a.nesting===1&&(l=b.id,d=s,i=null);continue}if(zr(b)){ma(a,b,o,g+1);continue}if(Dt(b,"separate")){c(),pa(a);continue}if(Dt(b,"end")){let y=a.nesting===1;c(),ga(a),y&&u();continue}if(i&&a.nesting===1&&a.phase==="result")if(b.kind==="text")for(let y of b.children)y.kind==="textValue"&&i.cached.length<ba&&(i.cached+=y.value.slice(0,ba-i.cached.length));else b.kind==="tab"&&i.cached.length<ba&&(i.cached+=" ");}}return}if(chunkCB6RQ3GD_cjs.ke(p)){let b=chunkCB6RQ3GD_cjs.me(p)??"",y=go(b),w=y===null?ya(b):null;(y||w)&&(n??=[]).push({spec:y,autonum:w,anchorId:p.id,cached:Bp(Bx(p,o)),revisions:s});return}if(Tm(p)||!yt(o))return;if(qt(p)){let b=tn(p);if(b){let y=s;s=fn(y,b);let w=chunkCB6RQ3GD_cjs.ma(p,h);for(let P of p.children)f(P,g+1,w);s=y;return}}let x=chunkCB6RQ3GD_cjs.ma(p,h);for(let b of p.children)f(b,g+1,x);};for(let p of e.children){if(!yt(o))break;f(p,1,0);}let m=n===null&&r===null?hL:Object.freeze({fields:n??$R,bookmarks:r??GR});return _R.set(e,m),m}var bL=Object.freeze({fieldsByParagraph:null,bookmarkOwners:null}),jR=new WeakMap;function xL(e){let t=jR.get(e);if(t)return t;let n=null,r=null;for(let a of Oa([e])){let i=yL(a);i.fields.length>0&&(n??=new Map).set(a.id,i.fields);for(let l of i.bookmarks)r??=new Map,!r.has(l)&&r.size<gL&&r.set(l,a);}let o=n===null&&r===null?bL:Object.freeze({fieldsByParagraph:n,bookmarkOwners:r});return jR.set(e,o),o}var xu=new WeakMap;function SL(e){let t=e[0],n=e[e.length-1],r=(t?xu.get(t):void 0)??(n?xu.get(n):void 0)??new Map;return t&&xu.set(t,r),n&&xu.set(n,r),r}var Su=new WeakMap;function PL(e){let t=e[0],n=e[e.length-1],r=(t?Su.get(t):void 0)??(n?Su.get(n):void 0)??new Map;return t&&Su.set(t,r),n&&Su.set(n,r),r}function HR(e){return e.length>1&&e.endsWith(".")?e.slice(0,-1):e}var WR=new WeakMap;function zR(e,t=We,n){if(!e)return [];let r=`${t}|${n?.cacheKey??""}`,o=WR.get(e),a=o?.get(r);if(a)return a;let i=[];for(let l of chunkCB6RQ3GD_cjs.yd(e.root)){if(i.length>=chunkCB6RQ3GD_cjs.wd)break;if(!chunkCB6RQ3GD_cjs.pd(l))continue;let s=Yi(l,t,n);s.length>0&&i.push(s);}return o?yo(o,r,i):WR.set(e,new Map([[r,i]])),i}var VR=new WeakMap;function RL(e,t,n,r,o,a){let i=new Map,l=[],s=0,d=F=>{for(let k of F){let v=xL(k);if(l.push(v),!!v.fieldsByParagraph)for(let[S,C]of v.fieldsByParagraph){if(s>=pL)break;i.set(S,C),s+=C.length;}}};if(d(e),n){for(let F of zR(n.footnotesPart,o,a))d(F);for(let F of zR(n.endnotesPart,o,a))d(F);}if(i.size===0)return null;let c=new Set;for(let F of i.values())for(let k of F)k.spec&&c.add(k.spec.bookmark);let u=new Map;for(let F of l)if(F.bookmarkOwners)for(let[k,v]of F.bookmarkOwners)c.has(k)&&!u.has(k)&&u.set(k,v);let f=new Map,m=new Map,p=new Map;for(let[F,k]of i)for(let v of k){if(!v.autonum||!De(v.revisions,o,a))continue;let S=(p.get(v.autonum.kind)??0)+1;p.set(v.autonum.kind,S);let C=Sx(v.autonum,S);C.length!==0&&(f.set(v.anchorId,C),m.has(F)||m.set(F,C));}let g=F=>{let k=$n(F);if(k.pageRef)return null;let v=u.get(F.bookmark);if(!v)return null;if(k.noteRef){if(r===void 0)return null;let C=AR(v,F.bookmark);return C===null?null:NR(e,r).get(C)??null}if(F.numberSwitch!==null){let C=t?.get(v.id);if(!C){if(k.suppressNonDelimiterText)return null;let A=m.get(v.id);return A!==void 0?HR(A):null}let I=hR(C),N=I!==void 0?iS(I,F.numberSwitch==="n",k.suppressNonDelimiterText):null,L=!k.suppressNonDelimiterText&&C.numFmt!=="bullet"&&C.numFmt!=="none"&&C.markerText.length>0?C.markerText:null,D=N??L;return D===null?null:HR(D)}if(k.suppressNonDelimiterText)return null;let S=Lx(v,F.bookmark);return S.length>0?S:null},h=new Map,x=F=>{let k=$n(F),v=`${k.suppressNonDelimiterText?"t":""}${k.noteRef?"x":""}`,S=`${F.numberSwitch??"-"}${v}\0${F.bookmark}`;if(h.has(S))return h.get(S)??null;let C=g(F);return h.set(S,C),C},b=SL(e),y=PL(e),w=new Map,P=new Map,R=new Map,O=[];for(let[F,k]of i){let v=[];for(let C of k){if(C.spec===null){let D=C.autonum?f.get(C.anchorId)??null:null;v.push(D!==null?`a${D}`:`c${C.cached}`);continue}if($n(C.spec).pageRef){let D=u.get(C.spec.bookmark);if(D){let A=y.get(C.anchorId);A===void 0&&y.size<DR&&(A=Object.freeze({}),y.set(C.anchorId,A)),A!==void 0&&P.set(C.anchorId,{spec:C.spec,projection:{targetParagraphId:D.id,cached:C.cached,calibration:A}});}v.push(`c${C.cached}${D?.id??""}`);continue}let I=x(C.spec),N=b.get(C.anchorId);N===void 0&&(N=C.cached.length===0||I!==null&&Bp(I)===C.cached,C.cached.length>0&&b.size<DR&&b.set(C.anchorId,N));let L=N?I:null;w.set(C.anchorId,{spec:C.spec,live:L}),v.push(L!==null?`l${L}`:`c${C.cached}`);}let S=v.join("");R.set(F,S),O.push(F,S);}return {valuesToken:ae(O),tokenForParagraph:F=>R.get(F)??"",liveValueOf:(F,k)=>{let v=w.get(F);return !v||v.live===null||v.spec.bookmark!==k.bookmark||v.spec.numberSwitch!==k.numberSwitch||$n(v.spec)!==$n(k)?null:v.live},autonumValueOf:F=>f.get(F)??null,pageRefProjectionOf:(F,k)=>{let v=P.get(F);return !v||v.spec.bookmark!==k.bookmark||$n(v.spec)!==$n(k)?null:v.projection}}}function a$(e,t,n){return Lp(e,t,n,void 0)}function Lp(e,t,n,r,o=We,a){let i=n?.footnotesPart??null,l=n?.endnotesPart??null,s=VR.get(e);if(s&&s.listItems===t&&s.footnotesPart===i&&s.endnotesPart===l&&s.noteNumbering===r&&s.displayMode===o&&s.authorFilterKey===(a?.cacheKey??""))return s.context;let d=RL(e,t,n,r,o,a);return VR.set(e,{listItems:t,footnotesPart:i,endnotesPart:l,noteNumbering:r,displayMode:o,authorFilterKey:a?.cacheKey??"",context:d}),d}function KR(e,t){let n=[];for(let r of Oa([e])){let o=t.tokenForParagraph(r.id);o&&n.push(o);}return n.join(";")}var Oo=61440,Cs=61695,Ep=128;function qi(e){return e.kind==="generic"&&e.namespaceUri===chunkCB6RQ3GD_cjs.da&&e.localName==="sym"}function UR(e,t){if(!(e.kind==="textValue"||!("attributes"in e))){for(let n of e.attributes)if(n.localName===t&&(n.namespaceUri===chunkCB6RQ3GD_cjs.da||n.namespaceUri===""))return n.value}}function wL(e){return !e||e.length>4||!/^[0-9A-Fa-f]{1,4}$/.test(e)?null:Number.parseInt(e,16)}function Pu(e){return !(!Number.isInteger(e)||e<32||e>1114111||e>=127&&e<=159||e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65534)===65534||e===65532)}function Zi(e){if(!qi(e))return null;let t=wL(UR(e,"char"));if(t===null)return null;let n=UR(e,"font"),r=n&&n.length<=Ep?n:null,o=na(r),a=o&&t<=255&&t+Oo<=Cs?t+Oo:t;if(o&&a>=Oo&&a<=Cs){let i=ui(String.fromCodePoint(a),r),l=i.codePointAt(0)<Oo;return {text:i,font:r,unicode:l}}return Pu(t)?{text:String.fromCodePoint(t),font:r,unicode:t<57344||t>63743}:null}function Np(e,t,n){if(!t.font)return {props:e,style:Ne(e,n)};let r=[...e,{localName:"rFonts",attributes:{ascii:t.font,hAnsi:t.font,eastAsia:t.font,hint:"default"}}];return {props:r,style:Ne(r,n)}}var kL=256,vL=9;function TL(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r===" "||r===" "||r===`
15
- `||r==="\r"){n+=1;continue}if(r==='"'){let a=n+1;for(;a<e.length&&e[a]!=='"';)a+=1;t.push({value:e.slice(n+1,a),quoted:true}),n=a<e.length?a+1:a;continue}let o=n;for(;o<e.length&&!`
16
- \r"`.includes(e[o]);)o+=1;t.push({value:e.slice(n,o),quoted:false}),n=o;}return t}function IL(e){if(e.quoted)return null;let t=e.value;if(t.length===0||t.length>vL)return null;let n;if(t.startsWith("0x")||t.startsWith("0X")){let r=t.slice(2);if(!/^[0-9A-Fa-f]{1,6}$/.test(r))return null;n=Number.parseInt(r,16);}else {if(!/^\d{1,7}$/.test(t))return null;n=Number.parseInt(t,10);}return n>1114111||n>=55296&&n<=57343?null:n}function Ru(e){if(e.length===0||e.length>kL)return null;let t=TL(e);if(t.length<2)return null;let n=t[0];if(n.quoted||n.value.toUpperCase()!=="SYMBOL")return null;let r=IL(t[1]);if(r===null)return null;let o=null,a=null,i=false;for(let l=2;l<t.length;l+=1){let s=t[l];if(s.quoted||!s.value.startsWith("\\"))continue;let d=s.value.toLowerCase();if(d==="\\f"){let c=t[l+1];c&&c.value.length>0&&c.value.length<=Ep&&(c.quoted||!c.value.startsWith("\\"))&&(o=c.value,l+=1);continue}if(d==="\\s"){let c=t[l+1];if(c&&(c.quoted||!c.value.startsWith("\\"))&&(l+=1,/^\d{1,3}$/.test(c.value))){let u=Number(c.value);u>=1&&u<=999&&(a=u);}continue}d==="\\u"&&(i=true);}return {code:r,font:o,sizePt:a,unicode:i}}function wu(e,t,n){let r=[];e.font&&r.push({localName:"rFonts",attributes:{ascii:e.font,hAnsi:e.font,eastAsia:e.font,hint:"default"}}),e.sizePt!==null&&r.push({localName:"sz",attributes:{val:String(e.sizePt*2)}});let o=r.length>0?[...t,...r]:t,a=Ne(o,n);if(e.unicode)return Pu(e.code)?{text:String.fromCodePoint(e.code),props:o,style:a}:null;let i=e.font??a.fontFamily;if(na(i)){let l=e.code<=255&&e.code+Oo<=Cs?e.code+Oo:e.code;if(l>=Oo&&l<=Cs)return {text:ui(String.fromCodePoint(l),i),props:o,style:a}}return Pu(e.code)?{text:String.fromCodePoint(e.code),props:o,style:a}:null}function ku(e,t){if(!Number.isFinite(e)||e<0||t.length===0||t.length>64||t.includes(".")||t.includes(";")||t.includes("'"))return null;let n=String(Math.floor(e)),r=[],o=false;for(let p=0;p<t.length;p+=1)r.push(o),t[p]==="0"&&(o=true);let a=n.length,i=false,l=0,s=0,d=[],c=-1;for(let p=t.length-1;p>=0;p-=1){let g=t[p];if(g==="0"||g==="#"){i=true,l+=1,c=d.length,a>0?(a-=1,d.push(n[a])):d.push(g==="0"?"0":" ");continue}if(g===","){s===0&&(s=l),l=0,(a>0||r[p])&&(c=d.length,d.push(","));continue}d.push(g);}if(!i)return null;let u=[];for(;a>0;)s>0&&l>=s&&(u.push(","),l=0),a-=1,l+=1,u.push(n[a]);let f=d.slice(c+1).reverse().join(""),m=d.slice(0,c+1).reverse().join("");return f+u.reverse().join("")+m}function kn(e){return "outOfFlow"in e&&e.outOfFlow===true}var Ji="0";function Fo(e,t){return e!=="PAGE"||!t||t==="decimal"}function vu(e,t,n){return t===void 0||!Fo(e,n)?Ji:ku(0,t)??Ji}function _p(e,t){if(!Number.isFinite(e)||e<0)return "";let n=Math.floor(e),r=t&&t.length>0?t:"decimal";if(r==="none"||r==="bullet")return ha(n);let o=ir(r,n);return o.length>0?o:ha(n)}function Ur(e,t,n){if(e==="PAGE"){if(n!==void 0&&Fo(e,t.format)){let o=ku(t.pageNumber,n);if(o!==null)return o}return _p(t.pageNumber,t.format)}let r=e==="NUMPAGES"?t.pageCount:t.sectionPageCount??t.pageCount;if(!Number.isFinite(r)||r<0)return "";if(n!==void 0){let o=ku(r,n);if(o!==null)return o}return ha(Math.floor(r))}function Xr(e){return e.hasPage||e.hasNumPages||e.hasSectionPages}function jp(e,t=Pm){if(!e||!Xr(t))return "";let n=[];return t.hasPage&&(n.push(`p${e.pageNumber}`),e.format&&n.push(`f${e.format}`)),t.hasNumPages&&n.push(`n${e.pageCount}`),t.hasSectionPages&&n.push(`s${e.sectionPageCount??e.pageCount}`),`|fld:${n.join("/")}`}function el(e,t,n,r){let o=false,a=e.map((i,l)=>{let s=t+l,d=i.pageFieldSource;return d&&d.pageNumber===s&&d.sectionPageCount===n&&d.format===r?i:(o=true,{...i,pageFieldSource:{pageNumber:s,sectionPageCount:n,...r?{format:r}:{}}})});return o?a:e}function OL(e){for(let t of e.spans)if(t.fieldAtom?.pageField||t.fieldAtom?.pageRef)return true;return false}function YR(e){if(e.kind==="paragraph"){for(let t of e.lines)if(OL(t))return true;return false}for(let t of e.rows)for(let n of t.cells)for(let r of n.blocks)if(YR(r))return true;return false}function Hp(e,t){let n=t,r=false;for(let o of e)kn(o)||(n=Math.max(n,o.box.y+o.box.height)),!r&&YR(o)&&(r=true);return {usedBottom:n,hasBodyPageFields:r}}var Ap=new WeakMap;function FL(e,t,n,r){let o=Ap.get(e);if(o)return t.length>0&&n!==t&&o.revision===r?(Ap.delete(e),false):true;let a=t.length===0||t===n;return a&&Number.isFinite(r)&&Ap.set(e,{revision:r}),a}function qR(e,t){if(e.kind==="paragraph"){for(let n of e.lines)for(let r of n.spans){let o=r.fieldAtom?.pageRef?.targetParagraphId;o!==void 0&&t.add(o);}return}for(let n of e.rows)for(let r of n.cells)for(let o of r.blocks)qR(o,t);}function ZR(e,t,n,r){if(e.kind==="paragraph"){t.has(e.paragraphId)&&!r.has(e.paragraphId)&&r.set(e.paragraphId,n);return}for(let o of e.rows)for(let a of o.cells)for(let i of a.blocks)ZR(i,t,n,r);}var XR=new WeakMap;function JR(e){let t=XR.get(e);if(t!==void 0)return t;let n=CL(e);return XR.set(e,n),n}function CL(e){let t=null;for(let o of e)if(o.hasBodyPageFields!==false)for(let a of o.fragments)qR(a,t??=new Set);if(!t||t.size===0)return null;let n=new Map;for(let o of e){if(n.size>=t.size)break;let a=o.pageFieldSource,i={pageNumber:a?.pageNumber??o.index+1,...a?.format?{format:a.format}:{}};for(let l of o.fragments)ZR(l,t,i,n);}let r="";for(let[o,a]of n)r+=`${o}@${a.pageNumber}/${a.format??""};`;return {hosts:n,token:r}}function Wp(e){return JR(e)?.token??""}function ML(e,t,n){let r=null;for(let o=0;o<e.spans.length;o+=1){let a=e.spans[o],i=a.fieldAtom?.pageRef;if(i){let d=n?.hosts.get(i.targetParagraphId);if(!d)continue;let c=_p(d.pageNumber,d.format);if(c.length===0)continue;let f=FL(i.calibration,i.cached,c,n.revision)?c:i.cached;if(f.length===0||f===a.text)continue;r||(r=e.spans.slice()),r[o]={...a,text:f};continue}let l=a.fieldAtom?.pageField;if(!l)continue;let s=Ur(l.kind,t,l.picture);s!==a.text&&(r||(r=e.spans.slice()),r[o]={...a,text:s});}return r?{...e,spans:r}:e}function QR(e,t,n){let r=null;for(let o=0;o<e.length;o+=1){let a=e[o],i=a;if(a.kind==="paragraph"){let l=null;for(let s=0;s<a.lines.length;s+=1){let d=a.lines[s],c=ML(d,t,n);c!==d&&(l||(l=a.lines.slice()),l[s]=c);}l&&(i={...a,lines:l});}else {let l=null;for(let s=0;s<a.rows.length;s+=1){let d=a.rows[s],c=null;for(let u=0;u<d.cells.length;u+=1){let f=d.cells[u],m=QR(f.blocks,t,n);m!==f.blocks&&(c||(c=d.cells.slice()),c[u]={...f,blocks:m});}c&&(l||(l=a.rows.slice()),l[s]={...d,cells:c});}l&&(i={...a,rows:l});}i!==a&&(r||(r=e.slice()),r[o]=i);}return r??e}var Qi=new WeakMap;function R$(e){for(let t of Array.isArray(e.pages)?e.pages:[])t.header&&Qi.delete(t.header),t.footer&&Qi.delete(t.footer);}function BL(e,t){return e.pageNumber===t.pageNumber&&e.pageCount===t.pageCount&&(e.sectionPageCount??e.pageCount)===(t.sectionPageCount??t.pageCount)&&e.format===t.format}function zp(e,t,n){let r=Qi.get(e);r&&Qi.set(t,{context:r.context,projector:r.projector,dy:r.dy+n});}var Dp=new WeakMap;function Co(e){let t=e.pages.length;if(t===0)return e;let n=JR(e.pages),r=n?.token??"",o=false,a=e.pages.map(i=>{let l=Dp.get(i);if(l&&l.pageCount===t&&l.pageRefToken===r)return l.result!==i&&(o=true),l.result;let s=i.pageFieldSource,d={pageNumber:s?.pageNumber??i.index+1,pageCount:t,sectionPageCount:s?.sectionPageCount??t,...s?.format?{format:s.format}:{}},c=g=>{if(!g)return g;let h=g.pageFieldProjector,x=0;if(!h){let O=Qi.get(g);if(!O||BL(O.context,d))return g;h=O.projector,x=O.dy;}o=true;let b=h(d),{pageFieldProjector:y,box:w,...P}=b,R={...P,box:x===0?w:{...w,y:w.y+x}};return Qi.set(R,{context:d,projector:h,dy:x}),R},u=c(i.header),f=c(i.footer),m=i.hasBodyPageFields===false?i.fragments:QR(i.fragments,d,n?{hosts:n.hosts,revision:e.revision}:void 0);if(u===i.header&&f===i.footer&&m===i.fragments)return Dp.set(i,{pageCount:t,pageRefToken:r,result:i}),i;m!==i.fragments&&(o=true);let p={...i,...u!==void 0?{header:u}:{},...f!==void 0?{footer:f}:{},...m!==i.fragments?{fragments:m}:{}};return Dp.set(i,{pageCount:t,pageRefToken:r,result:p}),p});return o?{...e,pages:a}:e}function Tu(){let e=null,t=0,n=false,r=false,o=()=>{e=null,t=0,n=false,r=false;};return {get active(){return e!==null},onSeparate(a,i){e===null&&a!==null&&(e=a,t=i,n=false,r=false);},onEnd(a,i){if(e===null||a>t)return null;let l=a===t,d=l&&i&&!(n&&!r)?Ur(e.kind,i,e.picture):"";return o(),l?d:null},reset:o,noteResult(a){n=true,a&&(r=true);}}}function LL(e){let{simple:t,depth:n,pageContext:r,budget:o,revisions:a,displayMode:i,inheritedRunProperties:l,cascadeRuns:s,themeFonts:d}=e,c="",u,f,m=false,p=ua(),g=Tu(),h=(b,y)=>{u||(u=b,f=y);},x=(b,y,w)=>{if(!(b.kind==="textValue"||y>Zt)){for(let P of b.children)if(P.kind!=="textValue"){if(!yt(o))return;if(P.kind==="run"){let R=Gr(P,l,s),O=Ne(R,d);for(let F of P.children){if(F.kind==="runProperties")continue;if(Dt(F,"begin")){fa(p),p.nesting===1&&g.reset();continue}if(zr(F)){ma(p,F,o,y+1);continue}if(Dt(F,"separate")){let I=p.nesting,N=p.phase,L=pa(p);(I===1||N==="result"&&!p.nestingOverflow)&&g.onSeparate(r?L:null,I);continue}if(Dt(F,"end")){let I=g.onEnd(p.nesting,r);I!==null&&(c+=I),ga(p);continue}if(chunkCB6RQ3GD_cjs.pe(F))continue;if(qi(F)){if(De(w,i,e.authorFilter)&&(m=true),g.active){g.noteResult(!O.hidden&&De(w,i,e.authorFilter));continue}let I=Zi(F);if(!I?.unicode||O.hidden||!De(w,i,e.authorFilter))continue;h(R,O),c+=I.text;continue}let k=ts(F);if(k.length===0)continue;let v=ar(w),S=!De(w,i,e.authorFilter)||F.kind==="deletedText"&&!v;S||(m=true);let C=O.hidden||S;if(g.active){g.noteResult(!C),C||h(R,O);continue}C||(h(R,O),c+=k);}continue}if(chunkCB6RQ3GD_cjs.ke(P)){let R=g.active?null:Ti(chunkCB6RQ3GD_cjs.me(P)??"");if(R&&r){if(!De(w,i,e.authorFilter))continue;let O=c.length;x(P,y+1,w),c=c.slice(0,O),c+=Ur(R.kind,r,R.picture);continue}x(P,y+1,w);continue}if(P.kind==="hyperlink"){x(P,y+1,w);continue}if(qt(P)&&w.length<uc){let R=tn(P);x(P,y+1,R?fn(w,R):w);continue}x(P,y+1,w);}}};return x(t,n,a),{text:c,resultProps:u,resultStyle:f,sawResultContent:m}}function e0(e){let t=EL(e);if(!t||e.currentLink)return t;let n=chunkCB6RQ3GD_cjs.me(e.simple)??"",r=Ic(n)??Tc(n),o=r?e.projectFieldLink?.(r):null;return o?{...t,link:o}:t}function EL(e){let{simple:t,pageContext:n,inheritedRunProperties:r,themeFonts:o}=e,a=LL(e),i=chunkCB6RQ3GD_cjs.me(t)??"",l=a.resultProps??r,s=Ti(i);if(s&&n){let m=a.resultStyle??Ne(r,o);return m.hidden?null:{text:Ur(s.kind,n,s.picture),props:l,style:m}}if(s&&e.bodyPageFields&&!n&&a.text.length===0&&!a.sawResultContent){let m=a.resultStyle??Ne(r,o);if(m.hidden)return null;let g=s.picture!==void 0&&Fo(s.kind,e.bodyPageFields.format)?s.picture:void 0;return {text:vu(s.kind,g,e.bodyPageFields.format),props:l,style:m,pageField:g===void 0?{kind:s.kind}:{kind:s.kind,picture:g}}}let d=Ru(i);if(d){let m=wu(d,l,o);if(m)return m.style.hidden?null:{text:m.text,props:m.props,style:m.style}}if(e.refFields){let m=go(i);if(m){let p=e.refFields.liveValueOf(t.id,m);if(p!==null){let g=a.resultStyle??Ne(r,o);return g.hidden?null:{text:p,props:l,style:g}}if(e.bodyPageFields&&e.refFields.pageRefProjectionOf){let g=e.refFields.pageRefProjectionOf(t.id,m);if(g){let h=a.resultStyle??Ne(r,o);if(h.hidden)return null;if(a.text.length>0)return {text:a.text,props:l,style:h,pageRef:g};if(!a.sawResultContent)return {text:Ji,props:l,style:h,pageRef:g}}}}else if(e.refFields.autonumValueOf&&ya(i)){let p=e.refFields.autonumValueOf(t.id);if(p!==null){let g=a.resultStyle??Ne(r,o);return g.hidden?null:{text:p,props:l,style:g}}}}let c=a.text.length===0&&!a.sawResultContent;if(c){let m=kc(i);if(m){let p=vc(m,e.documentProperties);if(p!==null){let g=a.resultStyle??Ne(r,o);return g.hidden?null:{text:p,props:l,style:g}}}}let u=c?wc(i):null;if(u){let m=a.resultStyle??Ne(r,o);return m.hidden?null:{text:u.display,props:l,style:m}}if(a.text.length===0)return null;let f=a.resultStyle??Ne(r,o);return f.hidden?null:{text:a.text,props:l,style:f}}var NL="\u2612",AL="\u2610";function DL(e){let t=ca(e);return t==="FORMCHECKBOX"?"checkbox":t==="FORMDROPDOWN"?"dropdown":null}function Ms(e,t){e.symbolSpec=Ru(t),!e.symbolSpec&&(e.linkSpec=Ic(t),!e.linkSpec&&(e.formSpec=DL(t),!e.formSpec&&(e.buttonSpec=wc(t),!e.buttonSpec&&(e.docPropertySpec=kc(t),!e.docPropertySpec&&(e.linkSpec=Tc(t),e.refSpec=go(t),!e.refSpec&&(e.autonumSpec=ya(t)))))));}function Q$(e,t){if(t.allowPageFields&&t.hasSeparate&&po(e)!==null)return true;let n={symbolSpec:null,linkSpec:null,formSpec:null,buttonSpec:null,docPropertySpec:null,refSpec:null,autonumSpec:null};return Ms(n,e),n.symbolSpec!==null||n.buttonSpec!==null||n.docPropertySpec!==null||t.allowRefFields&&n.refSpec!==null&&(t.allowPageRef||!$n(n.refSpec).pageRef)||t.allowAutonum&&n.autonumSpec!==null||n.formSpec!==null&&t.hasLegacyFormData}function eK(e,t){if(t.allowPageFields&&po(e)!==null)return true;let n={symbolSpec:null,linkSpec:null,formSpec:null,buttonSpec:null,docPropertySpec:null,refSpec:null,autonumSpec:null};return Ms(n,e),n.symbolSpec!==null||n.buttonSpec!==null||n.docPropertySpec!==null||t.allowRefFields&&n.refSpec!==null&&(t.allowPageRef||!$n(n.refSpec).pageRef)||t.allowAutonum&&n.autonumSpec!==null}function t0(e){if(e.formSpec==="dropdown"&&e.formData?.kind==="dropdown")return {...e.formData,...e.formAccessibleName?{accessibleName:e.formAccessibleName}:{}};if(!(e.formSpec!=="checkbox"||e.formData?.kind!=="checkbox"))return {kind:"checkbox",checked:e.formData.checked,...e.formAccessibleName?{accessibleName:e.formAccessibleName}:{}}}function n0(e,t){if(e.formSpec==="checkbox"){if(e.formData?.kind!=="checkbox")return null;let n=e.formData.checked?NL:AL;if(e.formData.sizeHalfPoints===null)return {text:n,props:e.props,style:e.style};let r=[...e.props,{localName:"sz",attributes:{val:String(e.formData.sizeHalfPoints)}}];return {text:n,props:r,style:Ne(r,t)}}if(e.formSpec==="dropdown"){if(e.cachedText.length>0||e.sawResultContent||e.formData?.kind!=="dropdown")return null;let n=e.formData.entries[e.formData.selectedIndex];return n===void 0?null:{text:n||"\xA0",props:e.props,style:e.style}}return null}function r0(e,t){if(e.symbolSpec){let r=wu(e.symbolSpec,e.props,t.themeFonts);if(r)return {text:r.text,props:r.props,style:r.style}}let n=n0(e,t.themeFonts);if(n)return {text:n.text,props:n.props,style:n.style};if(e.kind&&t.pageContext)return {text:Ur(e.kind,t.pageContext,e.picture??void 0),props:e.props,style:e.style};if(e.refSpec&&t.refFields){let r=t.refFields.liveValueOf(e.beginId,e.refSpec);if(r!==null)return {text:r,props:e.props,style:e.style}}if(e.refSpec&&t.refFields?.pageRefProjectionOf&&t.bodyPageFields){let r=t.refFields.pageRefProjectionOf(e.beginId,e.refSpec);if(r){if(e.cachedText.length>0)return {text:e.cachedText,props:e.props,style:e.style,pageRefField:r};if(!e.sawResultContent)return {text:Ji,props:e.props,style:e.style,pageRefField:r}}}if(e.autonumSpec&&t.refFields?.autonumValueOf){let r=t.refFields.autonumValueOf(e.beginId);if(r!==null)return {text:r,props:e.props,style:e.style}}if(e.cachedText.length>0)return {text:e.cachedText,props:e.props,style:e.style};if(!e.sawResultContent){if(e.kind&&t.bodyPageFields){let o=e.picture!==null&&Fo(e.kind,t.bodyPageFields.format)?e.picture:void 0;return {text:vu(e.kind,o,t.bodyPageFields.format),props:e.props,style:e.style,pageField:{kind:e.kind,...o!==void 0?{picture:o}:{}}}}if(e.docPropertySpec){let r=vc(e.docPropertySpec,t.documentProperties);if(r!==null)return {text:r,props:e.props,style:e.style}}if(e.buttonSpec)return {text:e.buttonSpec.display,props:e.props,style:e.style}}return null}function _L(e,t,n,r){r.length===0||n<=t||e.push({start:t,end:n,revisions:r});}function o0(e,t,n){return e?(r,o,a)=>_L(e,r,o,ql(a,t,n)):()=>{}}function Gp(e){return e.capturedResultRevisions?{revisionsOverride:e.resultRevisions,formatSiteOverride:e.resultFormatSite}:{}}function a0(e,t){return t?{...e,changeSites:[...e.changeSites??[],t]}:e}function Mo(e,t,n){if(n<=t)return;let r=e[e.length-1];if(r&&r.end>=t){r.end=Math.max(r.end,n);return}e.push({start:t,end:n});}var jL=new Set(["left","center","right"]),HL=new Set(["margin","indent","leftMargin"]),WL=new Set(["dot","hyphen","underscore","middleDot"]);function $p(e){if(e.kind==="textValue"||e.localName!=="ptab"||e.namespaceUri!==chunkCB6RQ3GD_cjs.da)return null;let t="left",n="margin",r;for(let o of e.attributes)o.namespaceUri===chunkCB6RQ3GD_cjs.da&&(o.localName==="alignment"?t=o.value:o.localName==="relativeTo"?n=o.value:o.localName==="leader"&&(r=o.value));return {alignment:jL.has(t)?t:"left",relativeTo:HL.has(n)?n:"margin",...r!==void 0&&WL.has(r)?{leader:r}:{}}}function Vp(e,t,n,r){return {...e,text:e.text.slice(t,n),start:e.start+t,end:e.start+n,...r?{fontSlot:r}:{}}}function Kp(e,t){if(!e.some(({style:d})=>d.fontFamilyEastAsia!==null&&d.fontFamilyEastAsia!==d.fontFamily))return e;let n=[],r=[],o=[];for(let d=0;d<e.length;d+=1){let c=e[d];c.positionalTab||c.breakKind||c.inlineDrawing||c.anchoredAtom||c.equation||c.text.length!==0&&(n.push(d),r.push(c.text),o.push(Ob(c.props)&&!na(c.style.fontFamily)&&!Fb(c.props,c.style.fontFamilyEastAsia,t)));}let a=Eb(r,o);if(a.length===0)return e;let i=new Map;for(let d of a){let c=i.get(d.segment);c?c.push({from:d.from,to:d.to}):i.set(d.segment,[{from:d.from,to:d.to}]);}let l=[],s=0;for(let d=0;d<e.length;d+=1){let c=e[d];if(n[s]!==d){l.push(c);continue}let u=i.get(s);s+=1;let{style:f}=c;if(!u||f.fontFamilyEastAsia===null||f.fontFamilyEastAsia===f.fontFamily){l.push(c);continue}if(!(!c.projected&&!c.fieldAtom&&!c.noteNav&&c.measureText===void 0&&c.end-c.start===c.text.length)){let g=u.length===1&&u[0].from===0&&u[0].to===c.text.length;l.push(g?{...c,fontSlot:"eastAsia"}:c);continue}let p=0;for(let g of u)g.from>p&&l.push(Vp(c,p,g.from,void 0)),l.push(Vp(c,g.from,g.to,"eastAsia")),p=g.to;p<c.text.length&&l.push(Vp(c,p,c.text.length,void 0));}return l}function i0(e){return e.kind==="drawing"||chunkCB6RQ3GD_cjs.nb(e)||chunkCB6RQ3GD_cjs.Ya(e)}function l0(e){let{node:t,layout:n,revisions:r,displayMode:o}=e,a=n.projectionForAtom?.(t.id)??(t.kind==="drawing"?n.project(t):null);if(!a||a.kind!=="inline")return a?.kind==="anchored"&&!a.hidden?{recordDeleted:false,emit:true,extras:{anchoredAtom:true}}:{recordDeleted:false,emit:true};let i=ar(r),l=e.hiddenRun||!De(r,o,e.authorFilter);return a.hidden||l?a.hidden?{recordDeleted:i,emit:true}:{recordDeleted:i,emit:false}:{recordDeleted:i,emit:true,extras:{inlineDrawing:Object.freeze({drawingNodeId:t.id,ownerPartName:n.ownerPartName,projection:a,resource:n.resourceOf(a)})}}}function s0(e){if(e.kind==="textValue")return;let t=e.children.slice(0,256).find(r=>r.kind!=="textValue"&&r.namespaceUri===chunkCB6RQ3GD_cjs.da&&r.localName==="ffData");if(!t||t.kind==="textValue"||t.children.length>256||!t.children.some(r=>r.kind!=="textValue"&&r.namespaceUri===chunkCB6RQ3GD_cjs.da&&(r.localName==="checkBox"||r.localName==="ddList"))||t.children.some(r=>r.kind!=="textValue"&&r.namespaceUri===chunkCB6RQ3GD_cjs.da&&(r.localName==="entryMacro"||r.localName==="exitMacro")))return;let n=t.children.find(r=>r.kind!=="textValue"&&r.namespaceUri===chunkCB6RQ3GD_cjs.da&&r.localName==="name");if(!(!n||n.kind==="textValue"))return n.attributes.slice(0,64).find(r=>r.localName==="val"&&(r.namespaceUri===chunkCB6RQ3GD_cjs.da||r.namespaceUri===""))?.value.slice(0,256).replace(/[\u0000-\u001f\u007f\u202a-\u202e\u2066-\u2069]/g,"").trim()||void 0}function d0(e){let t=chunkCB6RQ3GD_cjs.we(e,{maxNesting:chunkCB6RQ3GD_cjs.ve,maxInstructionChars:chunkCB6RQ3GD_cjs.ue}),n=t.filter(i=>i.addressing==="atomic"),r=new Set(n.filter(i=>i.kind==="complex").map(i=>i.node.id)),o=new Set(t.filter(i=>i.kind==="complex"&&i.addressing==="editable-result").map(i=>i.node.id)),a=new Set;for(let i of n)for(let l of i.removeNodeIds)a.add(l);return {atomBeginIds:r,editableResultBeginIds:o,coveredIds:a}}Object.freeze({marks:Object.freeze(new Map)});function tl(e,t){return chunkCB6RQ3GD_cjs.dd(e,t)}function u0(e,t){if(!chunkCB6RQ3GD_cjs.ud(e))return null;if(chunkCB6RQ3GD_cjs.kd(e)||chunkCB6RQ3GD_cjs.ld(e))return {text:t?.measureSeparatorMarkers?chunkCB6RQ3GD_cjs.Zc:"",...t?.measureSeparatorMarkers?{noteSeparator:chunkCB6RQ3GD_cjs.kd(e)?"separator":"continuationSeparator"}:{},projected:true,kind:null,noteId:null};let n=chunkCB6RQ3GD_cjs.id(e),r=chunkCB6RQ3GD_cjs.qd(e)??chunkCB6RQ3GD_cjs.rd(e);if(!r)return null;let o=chunkCB6RQ3GD_cjs.nd(e),a=o!==null?tl(r,o):n?void 0:t?.activeNoteKey,i=o!==null?o:a?zL(a,r)??null:null,l=a,s=l!==void 0?n?"to-note":"to-body":void 0,d={projected:true,kind:r,noteId:i,...s?{nav:s}:{},...l?{scopeId:l}:{}};if(n&&o!==null&&chunkCB6RQ3GD_cjs.sd(e))return {text:"",...d};if(!t||!a)return {text:"",...d};let c=t.marks.get(a);return c==null?{text:"",...d}:t.reservedMarkText&&t.reservedMarkText.length>0?{text:c,measureText:t.reservedMarkText,...d}:{text:c,...d}}function zL(e,t){let n=`${t}:`;if(!e.startsWith(n))return null;let r=e.slice(n.length);if(!/^-?\d+$/.test(r))return null;let o=Number(r);return Number.isSafeInteger(o)?o:null}function f0(e){return chunkCB6RQ3GD_cjs.id(e)||chunkCB6RQ3GD_cjs.jd(e)||chunkCB6RQ3GD_cjs.kd(e)||chunkCB6RQ3GD_cjs.ld(e)}function VL(e){let t=2166136261;for(let n=0;n<e.length;n+=1)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return (t>>>0).toString(16).padStart(8,"0")}var c0=new WeakMap;function m0(e){if(!e)return "";let t=c0.get(e);if(t!==void 0)return t;let n=JSON.stringify([[...e.marks],e.reservedMarkText??null,e.activeNoteKey??null,...e.measureSeparatorMarkers?[true]:[]]),r=`${e.marks.size}:${VL(n)}`;return c0.set(e,r),r}function lu(e,t=[],n,r,o,a,i=We,l,s,d,c,u,f=false,m,p,g=false,h,x,b){if(e.kind==="textValue")return [];if(e.kind!=="paragraph")return [];let y=o0(b,i,p),w=null,P=[],R=0;r=Tx(r,g?void 0:x,()=>I?.atomic?I.atomStart:R);let O,{atomBeginIds:F,editableResultBeginIds:k,coveredIds:v}=d0(e),S=ua(),C=Vr(),I=null,N=null,L=Tu(),D=Mn,A=(H,Q,T,G,ee,K,q)=>{if(H.length===0&&!G&&!q?.inlineDrawing)return;let se=q?.linkOverride??O,ie=fc(q?.revisionsOverride??D,Q,i,p);if(ie===null)return;let Y=a0(ie,q?.revisionsOverride?q.formatSiteOverride??null:w),V=se?{link:se}:{};if(G){P.push({text:H,...Y,style:T,start:ee,end:K,projected:true,...q?.measureText!==void 0?{measureText:q.measureText}:{},...q?.noteNav?{noteNav:q.noteNav}:{},...q?.noteSeparator?{noteSeparator:q.noteSeparator}:{},...q?.inlineDrawing?{inlineDrawing:q.inlineDrawing}:{},...q?.anchoredAtom?{anchoredAtom:true}:{},...q?.equation?{equation:q.equation}:{},...q?.fieldAtom?{fieldAtom:q.fieldAtom}:{},...V});return}H.length!==0&&P.push({text:H,...Y,style:T,start:ee,end:K,...q?.positionalTab?{positionalTab:q.positionalTab}:{},...q?.breakKind?{breakKind:q.breakKind}:{},...V});},_=()=>{if(!I||!I.atomic){I=null,N=null;return}let H=I.atomStart,Q=H+1;if(I.style.hidden){I=null,N=null;return}if(!De(I.resultRevisions,i,p)){l&&ar(I.resultRevisions)&&Mo(l,H,Q),y(H,Q,I.resultRevisions),I=null,N=null;return}let{resultLink:T,linkSpec:G,formField:ee}=I,K=Gp(I),q=t0(I),se,ie=()=>{if(se)return se;let V=!T&&G?c?.(G)??null:null,ce=T??V;return se={...K,...ce?{linkOverride:ce}:{},fieldAtom:{formField:ee,...q?{formControl:q}:{}}},se},Y=r0(I,{pageContext:n,themeFonts:d,documentProperties:u,bodyPageFields:f,...m?{refFields:m}:{}});if(Y){let V=ie(),ce=Y.pageField||Y.pageRefField?{...V,fieldAtom:{formField:I.formField,...Y.pageField?{pageField:Y.pageField}:{},...Y.pageRefField?{pageRef:Y.pageRefField}:{}}}:V;A(Y.text,Y.props,Y.style,true,H,Q,ce);}I=null,N=null;},E=()=>{if(!I)return;let H=!I.resultLink&&I.linkSpec?c?.(I.linkSpec)??null:null,Q=T=>H&&!T.link?{...T,link:H}:T;if(I.atomic){R=I.atomStart;for(let T of I.buffered)P.push({...Q(T),start:R,end:R+(T.end-T.start)}),R+=T.end-T.start;I.cachedText.length>0&&I.buffered.length===0&&(A(I.cachedText,I.props,I.style,false,R,R+I.cachedText.length,{...Gp(I),...H?{linkOverride:H}:{}}),R+=I.cachedText.length);}else {for(let T of I.buffered)P.push(Q(T));R=I.bufferOffset;}I=null,N=null;},j=(H,Q,T)=>{if(i0(H)){let ie=R;R+=1;let Y=R;if(!s)return;let V=l0({node:H,layout:s,hiddenRun:T.hidden,revisions:D,displayMode:i,authorFilter:p});V.recordDeleted&&l&&Mo(l,ie,Y),V.emit||y(ie,Y,D),V.emit&&A("\uFFFC",Q,T,true,ie,Y,V.extras);return}if(f0(H)){let ie=u0(H,a),Y=R,V=Y+1;if(R=V,T.hidden||!ie||ie.text.length===0&&!ie.measureText)return;let ce=ie.scopeId&&ie.nav?{scopeId:ie.scopeId,direction:ie.nav}:void 0;A(ie.text.length>0?ie.text:ie.measureText??"",Q,T,true,Y,V,{...ie.measureText!==void 0?{measureText:ie.measureText}:{},...ce?{noteNav:ce}:{},...ie.noteSeparator?{noteSeparator:ie.noteSeparator}:{}});return}if(p0(H)){!T.hidden&&De(D,i,p)&&A("\u2011",Q,T,true,R,R);return}let G=$p(H);if(G){T.hidden||A(" ",Q,T,false,R,R,{positionalTab:G});return}if(qi(H)){let ie=Zi(H);if(!ie||T.hidden||!De(D,i,p))return;let Y=Np(Q,ie,d);A(ie.text,Y.props,Y.style,true,R,R);return}let ee=ts(H);if(ee.length===0)return;let K=ar(D),q=!De(D,i,p),se=T.hidden||q||H.kind==="deletedText"&&!K;q&&!T.hidden&&y(R,R+ee.length,D),se||A(ee,Q,T,false,R,R+ee.length,{...H.kind==="hardBreak"?{breakKind:chunkCB6RQ3GD_cjs._d(H)}:{}}),K&&l&&Mo(l,R,R+ee.length),R+=ee.length;},U=(H,Q)=>{if(H.kind!=="run")return;let T=Gr(H,t,r),G=Ne(T,d);w=Fc(H.children.find(K=>K.kind==="runProperties"));let ee=()=>{I&&(I.capturedResultStyle||(I.props=T,I.style=G,I.capturedResultStyle=true),I.capturedResultRevisions||(I.resultRevisions=D,I.resultFormatSite=w,I.capturedResultRevisions=true,!I.resultLink&&O&&(I.resultLink=O)));};for(let K of H.children){if(!yt(C)){if(E(),Ql(S),L.reset(),K.kind==="runProperties"||Dt(K,"begin")||Dt(K,"separate")||Dt(K,"end")||zr(K)||v.has(K.id)&&N===null)continue;j(K,T,G);continue}if(K.kind!=="runProperties"){if(Dt(K,"begin")){let q=F.has(K.id);if(fa(S),S.nesting===1){E(),L.reset(),N=q?K.id:null;let se=chunkCB6RQ3GD_cjs.re(K);I={kind:null,picture:null,symbolSpec:null,linkSpec:null,formSpec:null,buttonSpec:null,docPropertySpec:null,refSpec:null,autonumSpec:null,formData:se,formAccessibleName:se?s0(K):void 0,beginId:K.id,atomic:q,editableResult:k.has(K.id),atomStart:R,props:T,style:G,capturedResultStyle:false,cachedText:"",sawResultContent:false,buffered:[],bufferOffset:R,resultRevisions:D,resultFormatSite:w,capturedResultRevisions:D.length>0,formField:chunkCB6RQ3GD_cjs.qe(K),...O?{resultLink:O}:{}},q&&(R+=1);}continue}if(zr(K)){ma(S,K,C,Q+1);continue}if(Dt(K,"separate")){let q=S.nesting===1&&S.phase==="instruction",se=S.nesting,ie=pa(S);if(q&&I){I.kind=ie?.kind??null,I.picture=ie?.picture??null;let Y=Ii(S);!I.kind&&!Y.overflow&&!S.nestingOverflow&&Ms(I,Y.instruction),I.props=T,I.style=G;}else I?.atomic&&S.phase==="result"&&!S.nestingOverflow&&L.onSeparate(n?ie:null,se);continue}if(Dt(K,"end")){let q=S.nesting===1;if(q&&I?.atomic&&S.phase==="instruction"){let ie=Ii(S);!ie.overflow&&!S.nestingOverflow&&Ms(I,ie.instruction);}let se=L.onEnd(S.nesting,n);se!==null&&I?.atomic&&(I.cachedText+=se),ga(S),q&&(I?.atomic?_():E());continue}if(!(gx(S)&&I?.atomic)){if(I&&hx(S)){if(qi(K)){if(I.atomic){if(De(D,i,p)&&(I.sawResultContent=true),L.active){L.noteResult(!G.hidden&&De(D,i,p));continue}if(!G.hidden&&De(D,i,p)){let he=Zi(K);he?.unicode&&(ee(),I.cachedText+=he.text);}continue}let Pe=Zi(K);if(!Pe||G.hidden)continue;let fe=Np(T,Pe,d),Re=fc(D,fe.props,i,p);if(Re===null)continue;I.buffered.push({text:Pe.text,style:fe.style,start:R,end:R,projected:true,...Re,...O?{link:O}:{},fieldAtom:{formField:I.formField}});continue}let q=I.atomic?null:$p(K),se=p0(K),ie=q?" ":se?"\u2011":ts(K),Y=q||se?0:ie.length;if(ie.length===0)continue;let V=ar(D),ce=fc(D,T,i,p),le=ce===null||K.kind==="deletedText"&&!V;if(I.atomic&&!le&&(I.sawResultContent=true),ce===null&&(I.atomic?y(I.atomStart,I.atomStart+1,D):y(R,R+Y,D)),V&&l&&(I.atomic?Mo(l,I.atomStart,I.atomStart+1):Mo(l,R,R+Y)),le){I.atomic&&L.active&&L.noteResult(false),I.atomic||(R+=Y,I.bufferOffset=R);continue}if(I.atomic){if(L.active){if(L.noteResult(!G.hidden),G.hidden)continue;ee();continue}if(G.hidden)continue;ee(),I.cachedText+=ie;continue}if(G.hidden){R+=Y,I.bufferOffset=R;continue}I.capturedResultStyle||(I.props=T,I.style=G,I.capturedResultStyle=true),I.buffered.push({text:ie,style:G,start:R,end:R+Y,...q?{positionalTab:q}:{},...se?{projected:true}:{},...ce,...O?{link:O}:{},fieldAtom:{formField:I.formField}}),R+=Y,I.bufferOffset=R;continue}v.has(K.id)&&N===null&&F.size>0,j(K,T,G);}}}};if(!yt(C))return Kp(g?vm(e,P,t,r,d,i,p,h):P,d);let te=chunkCB6RQ3GD_cjs.$a(),re=(H,Q)=>{let T=R;if(R+=1,H.kind==="textValue")return;if(ar(D)&&l&&Mo(l,T,T+1),!De(D,i,p)){y(T,T+1,D);return}let G=e0({simple:H,depth:Q,pageContext:n,budget:C,revisions:D,displayMode:i,authorFilter:p,inheritedRunProperties:t,cascadeRuns:r,themeFonts:d,currentLink:O,projectFieldLink:c,documentProperties:u,bodyPageFields:f,...m?{refFields:m}:{}});G&&A(G.text,G.props,G.style,true,T,T+1,{fieldAtom:{formField:false,...G.pageField?{pageField:G.pageField}:{},...G.pageRef?{pageRef:G.pageRef}:{}},...G.link?{linkOverride:G.link}:{}});},J=(H,Q,T,G)=>{if(G>=chunkCB6RQ3GD_cjs.la)return;let ee=chunkCB6RQ3GD_cjs.yc(H);if(ee){let q=R++;ar(D)&&l&&Mo(l,q,R);let se=ou(Ne(t,d));return !se.hidden&&!De(D,i,p)&&y(q,R,D),se.hidden||!De(D,i,p)?void 0:A("\uFFFC",t,se,true,q,R,{equation:ee})}if(chunkCB6RQ3GD_cjs.ke(H)){re(H,Q);return}if(H.kind==="run"){U(H,Q),w=null;return}if(chunkCB6RQ3GD_cjs.Jd(H)){if(Q>Zt)return;for(let q of chunkCB6RQ3GD_cjs.Md(H))J(q,Q+1,T,G+1);return}if(Q>Zt)return;let K=H.kind!=="textValue"&&"localName"in H?chunkCB6RQ3GD_cjs._a(T,H):T;if(H.kind==="hyperlink"){let q=O;O=o?.(H)??void 0;for(let se of H.children)J(se,Q+1,K,G+1);O=q;return}if(qt(H)){let q=tn(H);if(!q||!yt(C))return;let se=D;D=fn(se,q);for(let ie of H.children)J(ie,Q+1,K,G+1);D=se;return}if(chunkCB6RQ3GD_cjs.na(H))for(let q of H.children)J(q,Q+1,K,G+1);};for(let H of e.children)J(H,1,te,0);return E(),Kp(g?vm(e,P,t,r,d,i,p,h):P,d)}function p0(e){return e.kind!=="textValue"&&e.localName==="noBreakHyphen"&&e.namespaceUri==="http://schemas.openxmlformats.org/wordprocessingml/2006/main"}function Iu(e,t=[],n,r,o,a,i=We,l,s,d,c,u,f=false,m,p){return lu(e,t,n,r,o,a,i,l,s,d,c,u,f,m,p)}function GL(e){let t=e.root;if(t.localName==="hdr"||t.localName==="ftr")return t;let n=r=>{if(r.kind!=="textValue"){if(r.kind==="body")return r;for(let o of r.children){let a=n(o);if(a)return a}}};return n(t)}function $L(e,t,n){return !(e.kind==="paragraph"&&Rx(e,t,n))}var Up=new WeakMap;function bo(e){return Up.get(e)??null}function b0(e,t){let n=t.children.filter(a=>g0(a)),r=e.flatMap(a=>a.children.filter(i=>!g0(i))),o={...t,children:[...n,...r]};return Up.set(o,{merged:o,members:e}),o}function g0(e){return e.kind!=="textValue"&&(e.kind==="paragraphProperties"||e.localName==="pPr")}function KL(e,t,n){if(t==="all-markup"&&!n)return e;let r=[],o=[],a=null,i=()=>{let l=a??"";for(let s of UL(o))r.push({block:s,parentKey:l});o=[],a=null;};for(let l of e){let{block:s,parentKey:d}=l;if(o.length>0&&d!==a&&i(),s.kind!=="paragraph"){i(),r.push(l);continue}let c=km(s,t,n);if((c||o.length>0)&&!qL(s,t,n)){i(),r.push(l);continue}if(c){o.push(s),a=d;continue}if(o.length===0){r.push(l);continue}let u=[...o,s];o=[],a=null,r.push({block:b0(u,s),parentKey:d});}return i(),r}function UL(e){if(e.length<2)return e;let t=e[e.length-1];return [b0(e,t)]}function Bs(e,t,n){let r=YL(e).map(a=>({...a,block:Im(a.block,t,n)})),o=KL(r,t,n).filter(a=>$L(a.block,t,n));return rR(o,t,n,a=>!Up.has(a))}var XL=new Set(["pPr","bookmarkStart","bookmarkEnd","proofErr","permStart","permEnd"]);function x0(e){for(let t of e.children){if(t.kind==="textValue"){if(t.value.length>0)return false;continue}if(t.namespaceUri!==chunkCB6RQ3GD_cjs.da||!XL.has(t.localName))return false}return true}function YL(e){let t=[],n=(r,o,a)=>{for(let i of r){if(i.kind==="textValue")continue;if(i.kind==="paragraph"||i.kind==="table"){t.push({block:i,parentKey:a});continue}let l=chunkCB6RQ3GD_cjs.Cd(i);l!==null&&o<chunkCB6RQ3GD_cjs.Id&&n(l,o+1,i.id);}};return n(e,0,""),t}var h0=new WeakMap;function qL(e,t,n){let r=`${t}|${n?.cacheKey??""}`,o=h0.get(e),a=o?.get(r);if(a!==void 0)return a;let i=ZL(e,t,n);return o?yo(o,r,i):h0.set(e,new Map([[r,i]])),i}function ZL(e,t,n){if(!JL(e))return false;let r=Iu(e,[],void 0,void 0,void 0,void 0,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,n),o=0;for(let a of r)o=Math.max(o,a.end);return o<=chunkCB6RQ3GD_cjs.Ze(e).length}function JL(e){let t=0,n=false,r=o=>{if(o.kind!=="textValue"){if(o.namespaceUri===chunkCB6RQ3GD_cjs.da&&o.localName==="fldChar"){let a=o.attributes.find(i=>i.localName==="fldCharType")?.value;a==="begin"?t+=1:a==="end"&&(t-=1,t<0&&(n=true));}for(let a of o.children)r(a);}};return r(e),t===0&&!n}var y0=chunkCB6RQ3GD_cjs.zg(16);function An(e,t="all-markup",n){let r=`${t}|${n?.cacheKey??""}`,o=y0.get(e),a=o?.get(r);if(a)return a;let i=GL(e),l=i?Bs(i.children,t,n):[];return o?yo(o,r,l):y0.set(e,new Map([[r,l]])),l}function Yi(e,t="all-markup",n){return e.kind!=="note"?[]:Bs(e.children,t,n)}function Xp(e,t="all-markup",n){return e.kind==="textValue"?[]:Bs(e.children,t,n)}function y2(e){let t,n,r,o,a,i,l,s,d,c,u,f,m,p,g,h,x;return {styleCascade(){let b=e.stylesRoot(),y=e.documentThemeFonts(),w=e.settingsRoot();return (f===void 0||b!==r||w!==m||y.major!==o||y.minor!==a||y.majorEastAsia!==i||y.minorEastAsia!==l||y.majorBidi!==s||y.minorBidi!==d||y.majorSupplemental!==c||y.minorSupplemental!==u)&&(r=b,o=y.major,a=y.minor,i=y.majorEastAsia,l=y.minorEastAsia,s=y.majorBidi,d=y.minorBidi,c=y.majorSupplemental,u=y.minorSupplemental,m=w,f=XP(b,y,w)),f},defaultTabStopPt(){let b=e.settingsRoot();return (g===void 0||b!==p)&&(p=b,g=RP(b)),g},compatibilityMode(){let b=e.settingsRoot();return b!==h&&(h=b,x=yi(b)),x},numberingIndex(){let b=e.numberingRoot();return (n===void 0||b!==t)&&(t=b,n=Qx(b)),n}}}var QL={state:"none"},S0=(e,t)=>t.state==="omitted"?e:t;function hr(e,t,n={}){return e.state==="omitted"?t:e.state==="none"?QL:e}function Yp(e,t){let n=S0;return {top:n(e.top,t.top),left:n(e.left,t.left),bottom:n(e.bottom,t.bottom),right:n(e.right,t.right),insideH:n(e.insideH,t.insideH),insideV:n(e.insideV,t.insideV)}}function qp(e,t){let n=S0;return {top:n(e.top,t.top),left:n(e.left,t.left),bottom:n(e.bottom,t.bottom),right:n(e.right,t.right)}}function yr(e=1048576){let t=e|0;return {intervalsRemaining:t>0?t:0}}function Ou(e,t,n,r){let o=Math.max(0,Math.min(t|0,1024)),a=new Array(e.length);for(let i=0;i<e.length;i+=1){if(r&&r.intervalsRemaining<=0){a[i]=[];continue}a[i]=eE(e[i],o,n,r);}return a}function eE(e,t,n,r){let o=[];for(let c=0;c<e.length;c+=1){let u=e[c],f=Math.max(0,u.gridColumn|0),m=Math.min(t,f+Math.max(0,u.gridSpan|0));f>=m||(o.push({x:f,kind:1,cellIndex:c,cell:u}),o.push({x:m,kind:0,cellIndex:c,cell:u}));}if(o.length===0)return [];o.sort((c,u)=>c.x!==u.x?c.x-u.x:c.kind!==u.kind?c.kind-u.kind:c.cellIndex-u.cellIndex);let a=new Map,i,l=o[0].x,s=[],d=()=>{i=void 0;for(let c of a.values())(!i||c.cellIndex<i.cellIndex)&&(i=c);};for(let c of o){if(c.x>l&&i&&(!r||r.intervalsRemaining>0)){let u=s[s.length-1];u&&u.end===l&&u.cellIndex===i.cellIndex&&u.cell===i.cell?s[s.length-1]={start:u.start,end:c.x,cell:u.cell,cellIndex:u.cellIndex}:(s.push({start:l,end:c.x,cell:i.cell,cellIndex:i.cellIndex}),n&&(n.ownershipSlotsWritten+=1),r&&(r.intervalsRemaining-=1));}c.kind===1?a.set(c.cellIndex,{cell:c.cell,cellIndex:c.cellIndex}):a.delete(c.cellIndex),d(),l=c.x;}return s}function tE(e,t){let n=0,r=e.length;for(;n<r;){let o=n+r>>1;e[o].start<=t?n=o+1:r=o;}return n}function Bo(e,t,n,r){r&&(r.columnLookups+=1);let o=e[t];if(!o||n<0)return;let a=tE(o,n)-1;if(a<0)return;let i=o[a];if(!(n>=i.end))return {cell:i.cell,cellIndex:i.cellIndex}}var rE=256,kt={state:"omitted"},Lu={state:"none"},k0={top:kt,left:kt,bottom:kt,right:kt,insideH:kt,insideV:kt},v0={top:kt,left:kt,bottom:kt,right:kt},Jp={single:1,thick:2,double:3,dotted:4,dashed:5,triple:10},oE=new Map([["single","single"],["thick","thick"],["double","double"],["dotted","dotted"],["dashed","dashed"],["dashSmallGap","dashed"],["dotDash","dashed"],["dotDotDash","dashed"],["triple","triple"],["wave","single"],["hairline","single"],["inset","single"],["outset","single"]]);function nl(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function Zp(e,t){return e.attributes.find(n=>n.localName===t)?.value}function aE(e){return e===void 0||!/^\d{1,9}$/.test(e)?null:Number(e)}function iE(e){if(e===null)return .5;let t=e/8;return !Number.isFinite(t)||t<=0?.5:t>Yd?Yd:t}function Qp(e){if(!e)return kt;let t=Zp(e,"val");if(!t)return kt;if(t==="nil"||t==="none")return Lu;let n=oE.get(t)??"single",r=Zp(e,"color"),o=r===void 0||r==="auto"?null:em(r)??null;return {state:"edge",style:n,color:o,widthPt:iE(aE(Zp(e,"sz")))}}function T0(e,t){if(!e)return v0;let n={top:kt,left:kt,bottom:kt,right:kt};for(let r of t){let o=r==="left"?"start":r==="right"?"end":void 0,a=nl(e,r)??(o?nl(e,o):void 0);n[r]=Qp(a);}return n}function eg(e){let t=e&&nl(e,"tblBorders");return t?{...T0(t,["top","left","bottom","right"]),insideH:Qp(nl(t,"insideH")),insideV:Qp(nl(t,"insideV"))}:k0}function tg(e){return T0(e&&nl(e,"tcBorders"),["top","left","bottom","right"])}function P0(e){return e.state!=="edge"?0:e.style==="dotted"||e.style==="dashed"?1:Math.max(1,Math.round(e.widthPt*8))*Jp[e.style]}function R0(e){if(!e)return [0,0,0];let t=Number.parseInt(e.slice(0,2),16),n=Number.parseInt(e.slice(2,4),16),r=Number.parseInt(e.slice(4,6),16);return [t+r+2*n,r+2*n,n]}function lE(e,t,n=true){if(e.state==="omitted")return t.state==="omitted"?kt:t;if(t.state==="omitted")return e;if(e.state==="none")return t.state==="none"?Lu:t;if(t.state==="none")return e;let r=P0(e),o=P0(t);if(r>o)return e;if(o>r)return t;let a=Jp[e.style],i=Jp[t.style];if(a!==i)return a>i?e:t;let l=R0(e.color),s=R0(t.color);for(let d=0;d<l.length;d++){if(l[d]<s[d])return e;if(s[d]<l[d])return t}return n?e:t}function Fu(e){if(e.state==="edge")return {style:e.style,color:e.color,widthPt:e.widthPt}}function sE(e,t,n){return n?t==="top"||t==="bottom"?e.insideH:e.insideV:e[t]}function dE(e,t){return e===void 0&&t===void 0?true:!e||!t?false:e.style===t.style&&e.color===t.color&&e.widthPt===t.widthPt}function Cu(e){if(e.length===0)return [];let t=[],n={...e[0]};for(let r=1;r<e.length;r+=1){let o=e[r];n.gridEnd===o.gridStart&&dE(n.edge,o.edge)?n={...n,gridEnd:o.gridEnd}:(t.push(n),n={...o});}return t.push(n),t}function Mu(e,t,n){let r=e.filter(a=>a.edge!==void 0);if(r.length!==1)return;let o=r[0];if(!(o.gridStart!==t||o.gridEnd!==n))return o.edge}function w0(e,t,n){let r=0,o=Math.min(n,e.length);for(let a=Math.max(0,t);a<o;a+=1)r+=e[a];return r}function cE(e){if(!(!e||e.style!=="double"))return fi(e.widthPt)}function uE(e){return e==="dashed"?"dashed":e==="dotted"?"dotted":"solid"}function fE(e,t){return t?e==="outer"?t.insetPt:t.insetPt+t.strokePt+t.gapPt:0}function mE(e,t,n){return n?e==="outer"?t-n.insetPt:t-n.insetPt-n.strokePt-n.gapPt:t}function pE(e,t){return t?e==="outer"?t.insetPt+t.strokePt:t.insetPt+t.extentPt:0}function gE(e,t,n){return n?e==="outer"?t-n.insetPt-n.strokePt:t-n.insetPt-n.extentPt:t}function Ls(e,t){e.length>=rE||!(t.width>0)||!(t.height>0)||e.push(t);}function hE(e,t,n,r,o,a,i,l,s,d,c){let u=fi(n.widthPt),{strokePt:f,gapPt:m,extentPt:p,insetPt:g}=u,h=Math.abs(r)<1e-6,x=Math.abs(o-a)<1e-6,b=Math.abs(r)<1e-6,y=Math.abs(o-i)<1e-6;if(t==="top"||t==="bottom"){let R=t==="top"?g:i-g-f,O=t==="top"?g+f+m:i-g-p;for(let F of ["outer","inner"]){let k=r,v=o;h&&(k=fE(F,l)),x&&(v=mE(F,a,s)),Ls(e,{side:t,role:F,color:n.color,cssStyle:"solid",x:k,y:F==="outer"?R:O,width:v-k,height:f});}return}let w=t==="left"?g:a-g-f,P=t==="left"?g+f+m:a-g-p;for(let R of ["outer","inner"]){let O=r,F=o;b&&(O=pE(R,d)),y&&(F=gE(R,i,c)),Ls(e,{side:t,role:R,color:n.color,cssStyle:"solid",x:R==="outer"?w:P,y:O,width:f,height:F-O});}}function yE(e,t,n,r,o,a,i){let l=Math.max(.25,n.widthPt),s=Math.max(.25,l),d=l*3+s*2;if(t==="top"||t==="bottom"){let u=t==="top"?0:i-d;for(let f=0;f<3;f+=1)Ls(e,{side:t,role:f===0?"outer":f===1?"middle":"inner",color:n.color,cssStyle:"solid",x:r,y:u+f*(l+s),width:o-r,height:l});return}let c=t==="left"?0:a-d;for(let u=0;u<3;u+=1)Ls(e,{side:t,role:u===0?"outer":u===1?"middle":"inner",color:n.color,cssStyle:"solid",x:c+u*(l+s),y:r,width:l,height:o-r});}function bE(e,t,n,r,o,a,i,l){let s=t==="top"||t==="bottom",d=n.widthPt,c=s?r:l?t==="right"?a-d/2:-d/2:t==="right"?a:0;Ls(e,{side:t,role:"edge",color:n.color,cssStyle:uE(n.style),x:c,y:s?t==="bottom"?i-(l?0:d):0:r,width:s?o-r:d,height:s?d:o-r});}function Bu(e,t){if(e.length===0)return;let n=e[0];return cE(n.edge)}function xE(e,t,n,r,o,a,i,l,s,d,c=false,u=false,f=false){let m=(L,D,A)=>{let _=[];for(let E of D){if(!E.edge)continue;let j,U;A?(j=w0(i,l,E.gridStart),U=w0(i,l,E.gridEnd)):(j=s[E.gridStart-d]??0,U=s[E.gridEnd-d]??a),_.push({side:L,gridStart:E.gridStart,gridEnd:E.gridEnd,startPt:j,endPt:U,edge:E.edge});}return _},p=m("top",e,true),g=m("left",t,false),h=m("bottom",n,true),x=m("right",r,false),b=[...p,...x,...h,...g],y=Bu(t),w=Bu(r),P=Bu(e),R=Bu(n),O=(L,D)=>L.length===1&&Math.abs(L[0].startPt)<1e-6&&Math.abs(L[0].endPt-D)<1e-6,F=O(p,o),k=O(g,a),v=O(h,o),S=O(x,a),C=[],I=(L,D,A)=>{for(let _ of D){let{edge:E,startPt:j,endPt:U}=_;E.style==="double"?hE(C,L,E,j,U,o,a,L==="top"||L==="bottom"?y:void 0,L==="top"||L==="bottom"?w:void 0,L==="left"||L==="right"?P:void 0,L==="left"||L==="right"?R:void 0):E.style==="triple"?yE(C,L,E,j,U,o,a):(!A||c&&(L==="top"||L==="bottom")||L==="right"||f&&L==="left")&&bE(C,L,E,j,U,o,a,L==="left"||L==="right"?f:c&&L!=="top"&&!(L==="bottom"&&u));}};I("top",p,F),I("left",g,k),I("bottom",h,v),I("right",x,S);let N={};return F&&p[0]&&(N.top=p[0].edge),k&&g[0]&&(N.left=g[0].edge),v&&h[0]&&(N.bottom=h[0].edge),S&&x[0]&&(N.right=x[0].edge),b.length>0&&(N.edgeSegments=b),C.length>0&&(N.strokes=C),N}function rl(e,t,n,r,o,a){let i=e.length,l=e.map(u=>u.map(()=>({})));o&&(o.ownershipSlotsWritten=0,o.columnLookups=0);let s=Ou(e,n,o,a),d=(u,f,m)=>hr(u.borders[f],sE(t,f,m),{}),c=(u,f,m,p)=>u.state==="none"&&f.state!=="edge"||f.state==="none"&&u.state!=="edge"?Lu:lE(m,p);for(let u=0;u<i;u+=1){let f=e[u];for(let m=0;m<f.length;m+=1){let p=f[m];if(p.vMergeContinue){l[u][m]={};continue}let g=p.mergeRowSpan??1,h=u+g-1,x=u===0,b=h===i-1,y=p.gridColumn===0,w=p.gridColumn+p.gridSpan-1,P=w>=n-1,R=[];if(x)for(let A=p.gridColumn;A<=w;A+=1)R.push({gridStart:A,gridEnd:A+1,edge:Fu(d(p,"top",false))});let O=[];if(y)for(let A=u;A<=h;A+=1)O.push({gridStart:A,gridEnd:A+1,edge:Fu(d(p,"left",false))});let F=[];for(let A=p.gridColumn;A<=w;A+=1){let _;if(b)_=d(p,"bottom",false);else {let E=Bo(s,h+1,A,o);E?.cell.vMergeContinue?_=kt:_=c(p.borders.bottom,E?E.cell.borders.top:kt,d(p,"bottom",true),E?d(E.cell,"top",true):t.insideH);}F.push({gridStart:A,gridEnd:A+1,edge:Fu(_)});}let k=[];for(let A=u;A<=h;A+=1){let _;if(P)_=d(p,"right",false);else {let E=Bo(s,A,w+1,o);_=c(p.borders.right,E?E.cell.borders.left:kt,d(p,"right",true),E?d(E.cell,"left",true):t.insideV);}k.push({gridStart:A,gridEnd:A+1,edge:Fu(_)});}let v=Cu(R),S=Cu(O),C=Cu(F),I=Cu(k);if(!r){let A={},_=Mu(v,p.gridColumn,w+1),E=Mu(S,u,h+1),j=Mu(C,p.gridColumn,w+1),U=Mu(I,u,h+1);_&&(A.top=_),E&&(A.left=E),j&&(A.bottom=j),U&&(A.right=U);let te=[],re=(J,H)=>{for(let Q of H)Q.edge&&te.push({side:J,gridStart:Q.gridStart,gridEnd:Q.gridEnd,startPt:Q.gridStart,endPt:Q.gridEnd,edge:Q.edge});};re("top",v),re("left",S),re("bottom",C),re("right",I),te.length>0&&(A.edgeSegments=te),l[u][m]=A;continue}let N=r.cellBoxes[u][m],L=[0],D=0;for(let A=u;A<=h;A+=1){let _=r.rowBands[A];D+=_.height,L.push(D);}L.length>1&&(L[L.length-1]=N.height),l[u][m]=xE(v,S,C,I,N.width,N.height,r.columnWidthsPt,p.gridColumn,L,u,r.collapsedHorizontal,b&&N.outerBottomInsetReserved!==false,N.centeredSidePaint??N.centeredSideRules);}}return l}function Es(e){if(!e||"state"in e&&e.state!=="edge")return 0;if(e.style==="double"){let t=fi(e.widthPt);return t.insetPt+t.extentPt}if(e.style==="triple"){let t=Math.max(.25,e.widthPt);return t*3+Math.max(.25,t)*2}return e.widthPt}var ng=k0,rg=v0;var O0=31680/20,br=Object.freeze({type:"auto",value:0}),SE=100,PE=Object.freeze({mm:72/25.4,cm:72/2.54,in:72,pt:1,pc:12,pi:12});function RE(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function ag(e,t){return e.attributes.find(n=>n.localName===t)?.value}function F0(e){if(/^\d{1,9}$/.test(e)){let r=Number(e)/20;return Number.isFinite(r)?{kind:"length",pt:r}:null}let t=/^(\d{1,7}(?:\.\d{1,4})?)%$/.exec(e);if(t){let r=Number(t[1]);return Number.isFinite(r)?{kind:"percent",percent:r}:null}let n=/^(\d{1,9}(?:\.\d{1,4})?)(mm|cm|in|pt|pc|pi)$/.exec(e);if(n){let r=Number(n[1])*PE[n[2]];return Number.isFinite(r)?{kind:"length",pt:r}:null}return null}function Ma(e){if(!e)return br;let t=ag(e,"type");if(t!==void 0&&t!=="pct"&&t!=="dxa")return t==="nil"?{type:"nil",value:0}:br;let n=ag(e,"w");if(n===void 0)return br;let r=F0(n);if(!r)return br;let o=/^\d{1,9}$/.test(n);if(r.kind==="percent"||o&&t==="pct"){let a=r.kind==="percent"?r.percent:Number(n)/50;return !Number.isFinite(a)||a<=0?br:{type:"pct",value:Math.min(a,SE)}}return !Number.isFinite(r.pt)||r.pt<=0?br:{type:"dxa",value:Math.min(r.pt,O0)}}function Ns(e,t){if(!e)return;let n=Ma(e);if(n.type==="dxa")return Math.min(n.value,t)}function C0(e){let t=RE(e,"tblGrid");if(!t)return [];let n=[];for(let r of t.children)if(r.kind!=="textValue"&&r.localName==="gridCol"&&(n.push(r),n.length>=1024))break;return n}function wE(e){let t=[];for(let n of e){let r=ag(n,"w"),o=r===void 0?null:F0(r);if(!o||o.kind!=="length"||!Number.isFinite(o.pt)||o.pt<=0){t.push(void 0);continue}t.push(o.pt>O0?void 0:o.pt);}return t}var og=1,I0=.001;function kE(e,t,n,r){let o=r>0,a=[];for(let l=0;l<n;l+=1)a.push(e[l]);let i=t.filter(l=>l.start<n&&(l.preferred.type==="dxa"||l.preferred.type==="pct"&&r>0)).sort((l,s)=>l.span-s.span);for(let l of i){let s=Math.min(l.start+l.span,n);if(s<=l.start)continue;let d=l.preferred.type==="pct"?r*l.preferred.value/100:l.preferred.value;if(!Number.isFinite(d)||d<=0)continue;if(s-l.start===1){if(o&&l.preferred.type==="dxa"&&e[l.start]!==void 0)continue;let m=a[l.start];a[l.start]=m===void 0?d:Math.max(m,d);continue}let c=[],u=d;for(let m=l.start;m<s;m+=1){let p=a[m];p===void 0?c.push(m):u-=p;}if(c.length===0||u<=0)continue;let f=u/c.length;for(let m of c)a[m]=f;}return a}function M0(e){let{columnCount:t,tableWidth:n}=e,r=Number.isFinite(e.contentWidthPt)&&e.contentWidthPt>0,o=r?e.contentWidthPt:og,a=n.type==="dxa"?n.value:n.type==="pct"?o*n.value/100:0,i=wE(e.gridCols),l=kE(i,e.claims,t,a),s=0,d=0;for(let x of l)x===void 0?d+=1:s+=x;let c=[];if(d>0){let x=s>0?s/Math.max(t-d,1):o/t,b=Math.max(o-s,0)/d,y=Math.max(Math.min(b,x),og);for(let w of l)c.push(w??y);}else for(let x of l)c.push(x);let u=c.reduce((x,b)=>x+b,0);if(!Number.isFinite(u)||u<=0)return new Array(t).fill(o/t);let f=t*og,m=e.layoutFixed||!r?Number.POSITIVE_INFINITY:o,p=Math.max(a>0?a:Math.min(u,m),f),g=n.type==="pct"&&a>0;if(u<=p+I0&&!g||Math.abs(u-p)<=I0)return c;let h=p/u;return c.map(x=>x*h)}function ol(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function vE(e,t){return e.attributes.find(n=>n.localName===t)?.value}var TE=3,B0=108/20,As=31680/20,IE={top:0,right:B0,bottom:0,left:B0};function Eu(e){if(!e)return;let t=vE(e,"w");if(t===void 0||!/^\d{1,9}$/.test(t))return;let n=Number(t);if(!Number.isFinite(n)||n<0)return;let r=n/20;return r>As?As:r}function Nu(e){if(!e)return {};let t=Eu(ol(e,"top")),n=Eu(ol(e,"left")??ol(e,"start")),r=Eu(ol(e,"bottom")),o=Eu(ol(e,"right")??ol(e,"end"));return {...t===void 0?{}:{top:t},...n===void 0?{}:{left:n},...r===void 0?{}:{bottom:r},...o===void 0?{}:{right:o}}}function Au(e,t){return {top:t.top??e.top,right:t.right??e.right,bottom:t.bottom??e.bottom,left:t.left??e.left}}function rn(e,t,n=false,r=false,o=false){if(t.state!=="edge")return e;let a=Math.floor(t.widthPt*20+1e-8)/20,i=n&&t.style!=="double"&&t.style!=="triple",l=n||r&&(t.style==="single"||t.style==="thick"),s=n&&o&&t.style==="double"?Es(t)-t.widthPt:Es(t);return Math.max(e+a*(l?.5:1),s*(i?.5:1))}function L0(e){return e.state!=="edge"||e.style!=="double"&&e.style!=="triple"}function Lo(e){if(!e||"state"in e&&e.state!=="edge")return 0;let{style:t,widthPt:n}=e;return t==="double"||t==="triple"?0:Math.floor(n*20+1e-8)/20}function on(e,t){return ig(e.margins,e.contentBorders??e.borders,e.legacyContentAlignment===true&&t,t,e.contentBottomIsOuter,e.centeredSideRules,e.topBandClearancePt)}function Du(e,t,n,r=0,o=false){return o?0:e.state==="edge"?Lo(e):t.state==="none"?0:Math.max(Lo(hr(e,n)),r)}function ig(e,t,n=false,r=true,o=false,a=false,i){let l=Es(t.left),s=Es(t.right),d=[t.left,t.right].every(p=>p.state!=="edge"||p.style==="single"||p.style==="thick"),c=n&&d&&e.left>=l&&e.right>=s,u=r&&i!==void 0,f=u&&L0(t.top),m=u&&!o&&L0(t.bottom);return {top:f?e.top+i:rn(e.top,t.top,r,false,true),right:a&&r?Math.max(e.right,s/2):c?e.right:rn(e.right,t.right,false,r),bottom:m?e.bottom:rn(e.bottom,t.bottom,r&&!o),left:a&&r?Math.max(e.left,l/2):c?e.left:rn(e.left,t.left,false,r)}}function Ba(e,t,n){let r=e.float;if(!r)return t.text.left+al(e,t.text.width);let o=e.columnWidthsPt.reduce((s,d)=>s+d,0),a=E0(r,o,t),i=e.rows[0]?.cells[0];if(n!==void 0&&![11,12,14].includes(n)||e.bidiVisual||e.cellSpacingPt!==0||r.horzAnchor!=="text"||r.vertAnchor!=="text"||r.xSpec!==void 0||!i||i.gridColumn!==0)return a;let l=ig(i.margins,i.contentBorders??i.borders).left;return Math.max(t.page.left,a-l)}function al(e,t){if(e.legacyContentAlignment&&e.alignment==="left")return -(e.rows[0]?.cells[0]?.margins.left??0);let n=e.columnWidthsPt.reduce((o,a)=>o+a,0),r=t-n;return Number.isFinite(r)?e.alignment==="center"?r/2:e.alignment==="right"?e.bidiVisual&&r>0?Math.max(0,r-e.indentPt):r:r<=0||e.bidiVisual?0:Math.min(e.indentPt,r):0}function E0(e,t,n){let r=n[e.horzAnchor],o=r.width-t,a;if(e.xSpec==="center"?a=r.left+o/2:e.xSpec==="right"||e.xSpec==="outside"?a=r.left+o:e.xSpec?a=r.left:a=r.left+e.xPt,!Number.isFinite(a))return r.left;let i=n.page.left+n.page.width;return Math.max(n.page.left,Math.min(a,i))}var N0=["single","thick"];function OE(e){let{left:t,right:n}=e.contentBorders??e.borders,r=t.state==="edge"&&N0.includes(t.style),o=n.state==="edge"&&N0.includes(n.style);return !(!r&&!o||r&&o&&t.widthPt!==n.widthPt)}function A0(e,t){return e.map(n=>({...n,cells:n.cells.map(r=>OE(r)?t(r):r)}))}function D0(e){return A0(e,t=>({...t,centeredSidePaint:true}))}function _0(e){return A0(e,t=>({...t,centeredSideRules:true}))}var j0=1048576;function Yr(e=j0){let t=e|0;return {cellsRemaining:t>0?t:0}}function il(e,t,n,r){let o=new Map,a=new Map,i=r?.pageFragment===true,l=i?new Set:null,s=i,c=m=>{let p=a.get(m);p&&(o.set(p.id,p.span),a.delete(m));},u=()=>n!==void 0&&n.cellsRemaining<=0,f=()=>{for(let m of [...a.keys()])c(m);};for(let m of e){if(u()){f();break}s&&m.isHeaderRepeat!==true&&(s=false,f(),l?.clear());let p=new Set,g=false;for(let h of m.cells){if(n){if(n.cellsRemaining<=0){g=true;break}n.cellsRemaining-=1;}let x=Math.max(0,Math.min(h.gridColumn|0,1023));if(p.add(x),h.vMergeContinue){let b=a.get(x);b?b.span+=1:l&&!l.has(x)&&(a.set(x,{id:h.id,span:1}));}else c(x),a.set(x,{id:h.id,span:1});l?.add(x);}if(g){f();break}for(let h of [...a.keys()])p.has(h)||c(h);}return f(),o}var FE={state:"omitted"};function H0(e,t,n){return n?e.map(r=>({...r,cells:r.cells.map(o=>({...o,margins:{...o.margins,left:o.margins.right,right:o.margins.left},borders:{...o.borders,left:o.borders.right,right:o.borders.left},logicalGridColumn:o.gridColumn,gridColumn:Math.max(0,t-o.gridColumn-o.gridSpan)}))})):e}function CE(e,t,n,r,o,a){let i=e.map(()=>new Float64Array(a));for(let l=0;l<e.length;l+=1)for(let s=0;s<e[l].cells.length;s+=1){let d=e[l].cells[s];if(d.vMergeContinue)continue;let c=l+(r.get(d.id)??1),u=i[c];if(u)for(let f of n[l][s].edgeSegments??[]){if(f.side!=="bottom")continue;let m=Lo(f.edge),p=Math.min(f.gridEnd,a);for(let g=Math.max(0,f.gridStart);g<p;g+=1)u[g]=Math.max(u[g],m);}}return e.map((l,s)=>{let d=0;for(let c of l.cells){let u=s===0?t.top:t.insideH,f=Math.min(c.gridColumn+c.gridSpan,a);for(let m=c.gridColumn;m<f;m+=1){let p=s===0?void 0:Bo(o,s-1,m),g=p?e[s-1]?.cells[p.cellIndex]:void 0;d=Math.max(d,Du(c.borders.top,g?.borders.bottom??FE,u,i[s]?.[m]??0,c.suppressesTopBand));}}return d})}function _u(e,t,n,r=true){let o=il(e);if(!r)return ME(e,t,n,o);let a=e.map(f=>f.cells.map(m=>({...m,mergeRowSpan:o.get(m.id)??1}))),i=Ou(a,n),l=rl(a,t,n),s=new Map;for(let f=0;f<e.length;f++)for(let m of e[f].cells){if(m.vMergeContinue)continue;s.set(m.id,m);let p=f+(o.get(m.id)??1);for(let g=f+1;g<p;g++){let h=Bo(i,g,m.gridColumn),x=h&&e[g]?.cells[h.cellIndex];x?.vMergeContinue&&s.set(x.id,m);}}let d=new Map;for(let f of e)for(let m of f.cells){let p=g=>g.state==="none"?g:{state:"omitted"};d.set(m.id,{top:p(m.borders.top),bottom:p(m.borders.bottom),left:p(m.borders.left),right:p(m.borders.right)});}let c=(f,m,p)=>{let g=s.get(f.id)??f,h=d.get(g.id),x={state:"edge",...p},b=m==="top"||m==="bottom";(h[m].state!=="edge"||rn(g.margins[m],x,b,!b,m==="top")>rn(g.margins[m],h[m],b,!b,m==="top"))&&d.set(g.id,{...h,[m]:x});};for(let f=0;f<e.length;f++)for(let m=0;m<e[f].cells.length;m++){let p=e[f].cells[m];for(let g of l[f][m].edgeSegments??[])if(c(p,g.side,g.edge),g.side==="right"){let h=p.gridColumn+p.gridSpan;for(let x=g.gridStart;x<g.gridEnd;x++){let b=Bo(i,x,h),y=b&&e[x]?.cells[b.cellIndex];y&&c(y,"left",g.edge);}}else if(g.side==="bottom"){let h=f+(o.get(p.id)??1);for(let x=g.gridStart;x<g.gridEnd;x++){let b=Bo(i,h,x),y=b&&e[h]?.cells[b.cellIndex];y&&c(y,"top",g.edge);}}}let u=CE(e,t,l,o,i,n);return e.map((f,m)=>({...f,cells:f.cells.map(p=>{let g=u[m];return p.vMergeContinue?{...p,topBandClearancePt:g}:{...p,topBandClearancePt:g,contentBorders:d.get(p.id),contentBottomIsOuter:m+(o.get(p.id)??1)===e.length}})}))}function ME(e,t,n,r){let o=(a,i)=>a.state==="omitted"&&i.state==="edge"?i:a;return e.map((a,i)=>({...a,cells:a.cells.map(l=>({...l,contentBorders:{top:o(l.borders.top,i===0?t.top:t.insideH),bottom:o(l.borders.bottom,i+(r.get(l.id)??1)===e.length?t.bottom:t.insideH),left:o(l.borders.left,l.gridColumn===0?t.left:t.insideV),right:o(l.borders.right,l.gridColumn+l.gridSpan===n?t.right:t.insideV)}}))}))}function W0(e,t,n,r,o){if(!t.some(i=>i.height.rule==="atLeast")||!t.some(i=>i.cells.some(l=>l.vMergeContinue)))return e;let a=_u(t.map(i=>({...i,cells:i.cells.map(l=>({...l,vMergeContinue:false}))})),n,r,o);return e.map((i,l)=>i.height.rule!=="atLeast"?i:{...i,cells:i.cells.map((s,d)=>{let c=a[l].cells[d],u=on(c,o);return {...s,minimumContentInsets:{top:u.top,bottom:u.bottom}}})})}function z0(e,t,n){let r=0,o=0;for(let a of t){let i=n?.get(a.cell.id)??a.cell.minimumContentInsets??a.insets;r=Math.max(r,i.top),o=Math.max(o,i.bottom);}return e+r+o}function BE(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function qn(e,t){return e.attributes.find(n=>n.localName===t)?.value}var V0=31680/20;function G0(e){if(e==="page")return "page";if(e==="margin")return "margin";if(e==="text")return "text"}function ll(e,t=false){if(e===void 0||!/^-?\d{1,9}$/.test(e))return;let n=Number(e);if(!Number.isFinite(n))return;let r=(n-(t?1:0))/20;return Math.max(-V0,Math.min(V0,r))}function lg(e){let t=e&&BE(e,"tblpPr");if(!t)return;let n=qn(t,"tblpXSpec"),r=n==="left"||n==="center"||n==="right"||n==="inside"||n==="outside"?n:void 0,o=qn(t,"tblpYSpec"),a=o==="inline"||o==="top"||o==="center"||o==="bottom"||o==="inside"||o==="outside"?o:void 0;return {horzAnchor:G0(qn(t,"horzAnchor"))??"text",vertAnchor:G0(qn(t,"vertAnchor"))??"text",...r?{xSpec:r}:{},xPt:ll(qn(t,"tblpX"),true)??0,...a?{ySpec:a}:{},yPt:ll(qn(t,"tblpY"),true)??0,...["topFromText","rightFromText","bottomFromText","leftFromText"].some(i=>qn(t,i)!==void 0)?{distances:{top:Math.max(0,ll(qn(t,"topFromText"))??0),right:Math.max(0,ll(qn(t,"rightFromText"))??0),bottom:Math.max(0,ll(qn(t,"bottomFromText"))??0),left:Math.max(0,ll(qn(t,"leftFromText"))??0)}}:{}}}function K0(e){let t=e?.children.find(r=>r.kind!=="textValue"&&r.localName==="textDirection");return !t||t.kind==="textValue"?"horizontal":t?.attributes.find(r=>r.localName==="val")?.value==="btLr"?"btLr":"horizontal"}function U0(e,t){let n=t;for(let r of e){if(r.kind==="table"){n=Math.max(n,r.box.x+r.box.width);continue}for(let o of r.lines)if(!(o.box.height===0&&o.spans.length===0&&!o.drawings?.length)){n=Math.max(n,o.contentX);for(let a of o.spans)n=Math.max(n,a.box.x+a.box.width);for(let a of o.drawings??[])n=Math.max(n,a.advanceEnd);}}return n}function X0(e,t){return {x:t.x+t.height-(e.y-t.y),y:t.y+(e.x-t.x)}}var $0=new WeakMap,Y0=new WeakSet;function LE(e){let t=$0.get(e);if(t)return t;let n=new Map,r=(o,a)=>{for(let i of o)if(i.kind==="table")for(let l of i.rows)for(let s of l.cells)if(s.textDirection==="btLr")for(let d of Pn(s.blocks)){let c=n.get(d.paragraphId)??[];c.push({pageIndex:a,cell:s}),n.set(d.paragraphId,c);}else r(s.blocks,a);};for(let o of e.pages){r(o.fragments,o.index),o.header&&r(o.header.fragments,o.index),o.footer&&r(o.footer.fragments,o.index);for(let a of [o.footnotes,o.endnotes])if(a){a.separator&&r(a.separator.fragments,o.index);for(let i of a.notes)r(i.fragments,o.index);}}return $0.set(e,n),n}function q0(e,t,n){let r=LE(e).get(n)??[];return r.find(o=>o.pageIndex===t)??r[0]}function sl(e,t){let n=q0(e,t.pageIndex,t.position.paragraphId);if(!n)return t;let r=EE(t,n.cell.box),o={...t,...r};return Y0.add(o),o}function Z2(e){return Y0.has(e)}function sg(e,t,n){let r=q0(e,n.pageIndex,t);if(!r)return n;let o=r.cell.box;return {...n,x:o.x+(n.y-o.y),y:o.y+o.height-(n.x-o.x)-n.width,width:n.height,height:n.width}}function EE(e,t){return {x:t.x+(e.y-t.y),y:t.y+t.height-(e.x-t.x)}}function Z0(e){let t;for(let r of e?.children??[])if(r.kind!=="textValue"&&r.localName==="vAlign"){t=r;break}let n=t?.attributes.find(r=>r.localName==="val")?.value;return n==="center"?"center":n==="bottom"?"bottom":"top"}function J0(e,t){if(e){for(let n of e.children)if(n.kind!=="textValue"&&n.namespaceUri===chunkCB6RQ3GD_cjs.da&&n.localName===t)return n}}function dg(e){let t=J0(e,"tblHeader");if(!t)return;let n=t.attributes.find(r=>r.namespaceUri===chunkCB6RQ3GD_cjs.da&&r.localName==="val")?.value;return n===void 0||n!=="0"&&n!=="false"&&n!=="off"}function Q0(e,t,n){let r=false;for(let o of e.tableRowPropertyNodes)r=dg(o)??r;for(let o of t)r=dg(J0(e.conditional.get(o),"trPr"))??r;return dg(n)??r}function cg(e,t){if(e){for(let n of e.children)if(n.kind!=="textValue"&&n.namespaceUri===chunkCB6RQ3GD_cjs.da&&n.localName===t)return n}}function ju(e){if(e?.namespaceUri!==chunkCB6RQ3GD_cjs.da)return;let t=cg(e,"hideMark");if(!t)return;let n=t.attributes.find(r=>r.namespaceUri===chunkCB6RQ3GD_cjs.da&&r.localName==="val")?.value;return n===void 0||!["0","false","off"].includes(n)}function ew(e,t,n){let r=false;for(let o of e.tableCellPropertyNodes??[])r=ju(o)??r;for(let o of t){let a=e.conditionalStyleLayers?.get(o);if(a)for(let i of a)r=ju(cg(i,"tcPr"))??r;else r=ju(cg(e.conditional.get(o),"tcPr"))??r;}return ju(n)??r}function tw(e,t,n,r,o){let a=e.at(-1);if(!t||!a||a.spans.length>0||a.drawings.length>0)return e;let i=e.length===1&&o?.markerText&&!o.markerStyle.hidden?n.lineMetrics(o.markerStyle):{height:0,baseline:0},l=i.height>0?rr(r,i.height,i.baseline):i;return [...e.slice(0,-1),{...a,height:l.height,baseline:l.baseline,leading:Math.max(0,l.baseline-i.baseline),trailingSpacing:r.rule==="exact"?0:Math.max(0,l.height-i.height)}]}function NE(e){if(e.namespaceUri!==chunkCB6RQ3GD_cjs.da)return false;let t=new Set;for(let n of e.children){if(n.kind==="textValue")continue;let r=n.localName==="start"?"left":n.localName==="end"?"right":n.localName;if(n.namespaceUri!==chunkCB6RQ3GD_cjs.da||!["top","left","bottom","right"].includes(r)||t.has(r))return false;t.add(r);let o=n.attributes.filter(i=>i.localName==="w"),a=n.attributes.filter(i=>i.localName==="type");if(o.length!==1||o[0].namespaceUri!==chunkCB6RQ3GD_cjs.da||!/^\d{1,9}$/.test(o[0].value)||Number(o[0].value)>31680||a.length>1||a.length===1&&(a[0].namespaceUri!==chunkCB6RQ3GD_cjs.da||a[0].value!=="dxa"))return false}return true}function nw(e,t){let n=[e,...t];for(;n.length>0;){let r=n.pop();for(let o of r.children)if(!(o.kind==="textValue"||o.kind==="paragraph"||o.kind==="table"))if(o.localName==="tblCellMar"||o.localName==="tcMar"){if(!NE(o))return false}else n.push(o);}return true}var ug=31680/20,rw=.001;function ow(e,t,n){let r=n/1e4+.025;return e.map(o=>{if(o.span!==1||o.preferred.type!=="pct")return o;let a=o.preferred.value*50;if(Math.abs(a-Math.round(a))>1e-8)return o;let i=xr(t[o.start],"w");if(i===void 0||!/^\d{1,9}$/.test(i))return o;let l=Number(i)/20,s=n*o.preferred.value/100-l;return s>0&&s<=r+rw?{...o,preferred:{type:"dxa",value:l}}:o})}function Ds(e,t){let n;for(let r of e.children)if(!(r.kind==="textValue"||r.localName!==t)){if(n||r.namespaceUri!==chunkCB6RQ3GD_cjs.da)return;n=r;}return n}function xr(e,t){let n=e?.attributes.filter(r=>r.localName===t);return n?.length===1&&n[0].namespaceUri===chunkCB6RQ3GD_cjs.da?n[0].value:void 0}function aw(e){let{compatibilityMode:t,contentWidthPt:n,table:r,rows:o,columnCount:a}=e;if(t!==void 0&&t!==11&&t!==12&&t!==14||e.depth!==0||e.floating||e.layoutFixed||!["left","center"].includes(e.alignment)||e.indentPt!==0||e.cellSpacingPt!==0||e.tableWidth.type!=="pct"||e.tableWidth.value<=0||e.tableWidth.value>100||!Number.isFinite(n)||n<=0||n>ug||a<1||a>1024)return;let i=Ds(r,"tblPr");if(!i)return;let l=Ds(i,"tblW"),s=Ds(i,"tblInd"),d=xr(l,"w"),c=Ds(i,"tblLayout"),u=w=>i.children.some(P=>P.kind!=="textValue"&&P.localName===w);if(xr(l,"type")!=="pct"||d===void 0||(!/^\d{1,4}$/.test(d)||Number(d)>5e3)&&(!/^\d{1,3}(?:\.\d+)?%$/.test(d)||Number(d.slice(0,-1))>100)||u("tblInd")&&(xr(s,"type")!=="dxa"||xr(s,"w")!=="0")||u("tblLayout")&&xr(c,"type")!=="autofit")return;for(let w of [...e.propertyNodes,i])for(let P of w.children)if(P.kind!=="textValue"&&(["jc","tblCellSpacing"].includes(P.localName)&&P.namespaceUri!==chunkCB6RQ3GD_cjs.da||P.localName==="tblpPr"||P.localName==="bidiVisual"||P.localName==="jc"&&!["left","start","center"].includes(xr(P,"val")??"")||P.localName==="tblCellSpacing"&&(xr(P,"type")!=="dxa"||xr(P,"w")!=="0")))return;let f=o[0]?.cells[0],m=o[0]?.cells.at(-1);if(!f||!m||!nw(r,e.propertyNodes))return;let p=f.margins.left,g=m.margins.right,h=n+p+g;if(!Number.isFinite(h)||p<0||g<0||p+g<=0||h>ug)return;for(let w of o){let P=w.cells[0],R=w.cells.at(-1);if(!P||!R||P.gridColumn!==0||R.gridColumn+R.gridSpan!==a||P.margins.left!==p||R.margins.right!==g)return}let x=Ds(r,"tblGrid");if(!x)return;let b=0,y=0;for(let w of x.children){if(w.kind==="textValue")continue;if(w.localName!=="gridCol"||w.namespaceUri!==chunkCB6RQ3GD_cjs.da)return;let P=xr(w,"w");if(P===void 0||!/^\d{1,9}$/.test(P))return;let R=Number(P)/20;if(R<1||R>ug||++b>1024)return;y+=R;}return b===a&&Math.abs(y-h*e.tableWidth.value/100)<=.025+rw?h:void 0}var gg=16,AE=31680/20,iw=1023,DE=256,lw=31680/20;function sw(e){let t=e&&Ge(e,"jc");if(!t)return;let n=vn(t,"val");if(n==="center")return "center";if(n==="right"||n==="end")return "right";if(n==="left"||n==="start")return "left"}function Ge(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function vn(e,t){return e.attributes.find(n=>n.localName===t)?.value}function fg(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.namespaceUri===chunkCB6RQ3GD_cjs.da&&n.localName===t)return n}function La(e,t){return e.attributes.find(n=>n.namespaceUri===chunkCB6RQ3GD_cjs.da&&n.localName===t)?.value}function _E(e){let t=e&&Ge(e,"gridSpan"),n=t&&vn(t,"val");if(!n||!/^\d{1,7}$/.test(n))return 1;let r=Number(n);return Number.isInteger(r)&&r>1?Math.min(r,1024):1}function dw(e,t){let n=e&&Ge(e,t),r=n&&vn(n,"val");if(!r||!/^\d{1,7}$/.test(r))return 0;let o=Number(r);return Number.isInteger(o)&&o>0?Math.min(o,1024):0}function jE(e){let t=e&&Ge(e,"vMerge");return t?vn(t,"val")!=="restart":false}function cw(e){return tb(e&&Ge(e,"shd"))}function mg(e,t){let n=e&&Ge(e,t);if(!n)return false;let r=vn(n,"val");return r===void 0||r!=="0"&&r!=="false"&&r!=="off"}var _s=Object.freeze({rule:"auto"});function HE(e){let t=e&&Ge(e,"trHeight");if(!t)return _s;let n=vn(t,"hRule"),r=n==="auto"||n==="exact"||n==="atLeast"?n:void 0;if(r==="auto")return _s;let o=vn(t,"val");if(o===void 0||!/^\d{1,9}$/.test(o))return _s;let a=Number(o);if(!Number.isFinite(a)||a<=0)return _s;let i=Math.min(a/20,AE);return i>0?{rule:r==="exact"?"exact":"atLeast",valuePt:i}:_s}var WE=Object.freeze({firstRow:false,lastRow:false,firstColumn:false,lastColumn:false,rowBanding:true,columnBanding:true});function qr(e,t){let n=vn(e,t);if(n!==void 0)return n!=="0"&&n!=="false"&&n!=="off"}function zE(e){let t=e&&Ge(e,"tblLook");if(!t)return WE;let n=vn(t,"val"),r=n&&/^[0-9A-Fa-f]{1,4}$/.test(n)?Number.parseInt(n,16):0;return {firstRow:qr(t,"firstRow")??(r&32)!==0,lastRow:qr(t,"lastRow")??(r&64)!==0,firstColumn:qr(t,"firstColumn")??(r&128)!==0,lastColumn:qr(t,"lastColumn")??(r&256)!==0,rowBanding:qr(t,"noHBand")===void 0?(r&512)===0:!qr(t,"noHBand"),columnBanding:qr(t,"noVBand")===void 0?(r&1024)===0:!qr(t,"noVBand")}}var pg=["firstRow","lastRow","firstCol","lastCol","band1Vert","band2Vert","band1Horz","band2Horz","nwCell","neCell","swCell","seCell"],uw=["firstRow","lastRow","firstColumn","lastColumn","oddVBand","evenVBand","oddHBand","evenHBand","firstRowFirstColumn","firstRowLastColumn","lastRowFirstColumn","lastRowLastColumn"];function fw(e,t){let n=e&&Ge(e,"cnfStyle");if(!n)return;let r=vn(n,"val");if(r&&/^[01]{1,12}$/.test(r))for(let o=0;o<r.length&&o<pg.length;o+=1)r[o]==="1"&&t.add(pg[o]);for(let o=0;o<uw.length;o+=1)qr(n,uw[o])===true&&t.add(pg[o]);}var VE=["band1Vert","band2Vert","band1Horz","band2Horz","firstCol","lastCol","firstRow","lastRow","nwCell","neCell","swCell","seCell"];function mw(e){let t=new Set;fw(e.rowProperties,t),fw(e.cellProperties,t);let{look:n,rowIndex:r,rowCount:o,gridColumn:a,gridSpan:i,columnCount:l}=e,s=t.has("firstRow")||n.firstRow&&r===0,d=t.has("lastRow")||n.lastRow&&r===o-1,c=t.has("firstCol")||n.firstColumn&&a===0,u=t.has("lastCol")||n.lastColumn&&a+i>=l;if(!(t.has("band1Vert")||t.has("band2Vert"))&&n.columnBanding&&!c&&!u){let g=a-(n.firstColumn?1:0);t.add(g%2===0?"band1Vert":"band2Vert");}if(!(t.has("band1Horz")||t.has("band2Horz"))&&n.rowBanding&&!s&&!d){let g=r-(n.firstRow?1:0);t.add(g%2===0?"band1Horz":"band2Horz");}c&&t.add("firstCol"),u&&t.add("lastCol"),s&&t.add("firstRow"),d&&t.add("lastRow"),s&&c&&t.add("nwCell"),s&&u&&t.add("neCell"),d&&c&&t.add("swCell"),d&&u&&t.add("seCell");let p=[];for(let g of VE)t.has(g)&&p.push(g);return p}var GE=new WeakMap,$E=new WeakMap;function Jt(e,t,n,r,o="all-markup",a,i){let l=a?$E:GE,s=l.get(e);if(s&&s.contentWidthPt===t&&s.depth===n&&s.styleCascade===r&&s.displayMode===o&&s.authorFilter===a&&s.compatibilityMode===i)return s.structure;let d=KE(e,t,n,r,o,a,i),c={contentWidthPt:t,depth:n,styleCascade:r,displayMode:o,authorFilter:a,compatibilityMode:i,structure:d};return l.set(e,c),d}function KE(e,t,n,r,o,a,i){if(n>=gg||e.kind!=="table")return null;let l=Ge(e,"tblPr"),s=l&&Ge(l,"tblStyle")?vn(Ge(l,"tblStyle"),"val"):void 0,d=r?$P(r,s):du,c=zE(l),u=false;for(let ee of d.tablePropertyNodes)Ge(ee,"bidiVisual")&&(u=mg(ee,"bidiVisual"));l&&Ge(l,"bidiVisual")&&(u=mg(l,"bidiVisual"));let f={top:0,right:.5,bottom:0,left:.5},m=ng;for(let ee of d.tablePropertyNodes)f=Au(f,Nu(Ge(ee,"tblCellMar"))),m=Yp(m,eg(ee));let p=Au(f,Nu(l&&Ge(l,"tblCellMar"))),g=Yp(m,l?eg(l):ng),h=new Map,x=KP(d),b=ee=>{if(!x)return pp;let K=ee.join("|"),q=h.get(K);if(q)return q;let se=UP(d,ee);return h.size<DE&&h.set(K,se),se},y=[],w=[],P=1;for(let ee of chunkCB6RQ3GD_cjs.Jc(e.children)){if(ee.kind!=="tableRow")continue;let K=fg(ee,"trPr"),q=K?fg(K,"ins")??fg(K,"del"):void 0,se=q?.localName,ie=q?La(q,"author")??"":void 0,Y=q&&ie!==void 0&&a?Jb(a,q.id,ie,o):o;if(Y==="proposed"&&se==="del"||Y==="original"&&se==="ins")continue;let V=Y==="all-markup"?q:void 0,ce=q&&Y!=="all-markup"&&ie!==void 0&&(!a||cc(a,q.id,ie))?[{kind:se==="ins"?"insert":"delete",id:La(q,"id")??"",author:ie,...La(q,"date")===void 0?{}:{date:La(q,"date")},nodeId:q.id}]:void 0,le=[],Pe=[],fe=[],Re=Math.min(dw(K,"gridBefore"),iw);Re>0&&w.push({start:0,span:Re,preferred:Ma(K&&Ge(K,"wBefore"))});let he=Re,we=chunkCB6RQ3GD_cjs.Jc(ee.children);for(let Ce of we){if(Ce.kind!=="tableCell")continue;let ze=Ge(Ce,"tcPr"),xe=Math.min(he,iw),Xe=Math.min(_E(ze),1024-xe),Me=Ma(ze&&Ge(ze,"tcW"));le.push(xe),Pe.push(Xe),fe.push(Me),w.push({start:xe,span:Xe,preferred:Me}),he=xe+Xe;}let Oe=dw(K,"gridAfter"),Te=Math.min(he+Oe,1024);Oe>0&&he<1024&&w.push({start:he,span:Math.min(Oe,1024-he),preferred:Ma(K&&Ge(K,"wAfter"))}),Te>P&&(P=Te),y.push({node:ee,revision:V,changeSites:ce,cells:we,properties:K,starts:le,spans:Pe,preferred:fe,gridColumns:Te});}let R=C0(e),O=R.length>0?R.length:P,F=y.length,k=[];for(let ee=0;ee<y.length;ee+=1){let K=y[ee],q=K.node,se=K.properties,ie=mw({look:c,rowIndex:ee,rowCount:F,gridColumn:0,gridSpan:Math.max(1,O),columnCount:Math.max(1,O),rowProperties:se,cellProperties:void 0}),Y=Q0(d,ie,se),V=0,ce=[];for(let we of K.cells){if(we.kind!=="tableCell")continue;let Oe=Ge(we,"tcPr"),Te=K.starts[V],Ce=K.spans[V],ze=K.preferred[V]??br,xe=mw({look:c,rowIndex:ee,rowCount:F,gridColumn:Te,gridSpan:Ce,columnCount:O,rowProperties:se,cellProperties:Oe});V+=1;let Xe,Me=rg;for(let Tt of xe){let It=d.conditional.get(Tt);if(!It)continue;let Je=Ge(It,"tcPr");Xe=cw(Je)??Xe,Me=qp(Me,tg(Je));}let je=cw(Oe)??Xe,_t=Au(p,Nu(Oe&&Ge(Oe,"tcMar"))),_e=Bs(we.children,o,a),vt=Oe?tg(Oe):rg;ce.push({id:we.id,gridSpan:Ce,gridColumn:Te,...R[Te]?.id?{gridColumnId:R[Te].id}:{},vMergeContinue:jE(Oe),hideEndMark:ew(d,xe,Oe),vAlign:Z0(Oe),textDirection:K0(Oe),margins:_t,borders:qp(Me,vt),...vt.top.state==="none"?{suppressesTopBand:true}:{},...je===void 0?{}:{shading:je},preferredWidth:ze,styleFormatting:b(xe),blocks:_e});}let le=K.revision,Pe=le?le.localName==="ins"?"insert":"delete":void 0,fe=le&&La(le,"id"),Re=le&&La(le,"author"),he=le&&La(le,"date");k.push({id:q.id,...Pe?{revisionKind:Pe}:{},...fe!==void 0?{revisionId:fe}:{},...Re!==void 0?{revisionAuthor:Re}:{},...he!==void 0?{revisionDate:he}:{},...K.changeSites?{changeSites:K.changeSites}:{},isHeader:Y,cantSplit:mg(se,"cantSplit"),height:HE(se),cells:ce});}let v=br,S,C,I,N,L;for(let ee of d.tablePropertyNodes){let K=Ge(ee,"tblW");K&&(v=Ma(K));let q=Ge(ee,"tblLayout");q&&(S=vn(q,"type")==="fixed"),C=Ns(Ge(ee,"tblInd"),lw)??C,I=sw(ee)??I,N=Ns(Ge(ee,"tblCellSpacing"),As)??N,L=lg(ee)??L;}let D=l&&Ge(l,"tblW"),A=D?Ma(D):v,_=l&&Ge(l,"tblLayout"),E=_?vn(_,"type")==="fixed":S??false,j=Ns(l&&Ge(l,"tblInd"),lw)??C??0,U=sw(l)??I??"left",te=n===0?lg(l)??L:void 0,re=Ns(l&&Ge(l,"tblCellSpacing"),As)??N??0,J=aw({table:e,propertyNodes:d.tablePropertyNodes,rows:k,columnCount:O,contentWidthPt:t,compatibilityMode:i,depth:n,tableWidth:A,layoutFixed:E,alignment:U,indentPt:j,cellSpacingPt:re,floating:te!==void 0}),H=M0({gridCols:R,claims:J===void 0?w:ow(w,R,J*A.value/100),columnCount:O,contentWidthPt:J??t,tableWidth:A,layoutFixed:E}),Q=H0(k,H.length,u),T=_u(Q,u?{...g,left:g.right,right:g.left}:g,H.length,re===0);T=W0(T,Q,u?{...g,left:g.right,right:g.left}:g,H.length,re===0);let G=(i===void 0||[11,12,14].includes(i))&&n===0&&!u&&!te&&re===0;return G&&(T=D0(T)),G&&A.type==="dxa"&&(T=_0(T)),{...u?{bidiVisual:true}:{},columnWidthsPt:u?[...H].reverse():H,rows:J===void 0?T:T.map(ee=>({...ee,cells:ee.cells.map(K=>({...K,legacyContentAlignment:true}))})),...J===void 0?{}:{legacyContentAlignment:true},tableWidth:A,layoutFixed:E,indentPt:j,alignment:u?U==="left"?"right":U==="right"?"left":U:U,...te?{float:te}:{},cellSpacingPt:re,tableBorders:u?{...g,left:g.right,right:g.left}:g,defaultMargins:u?{...p,left:p.right,right:p.left}:p}}var Wu=65536;function NU(e,t){if(e.length>Wu)return;let n=new Array(e.length+1).fill(0),r=et(e),o=Math.max(0,t);for(let[a,i]of r.entries()){let l=o*a/r.length;for(let s=i.utf16From;s<i.utf16To;s++)n[s]=l;n[i.utf16To]=o*(a+1)/r.length;}return n}function AU(e,t,n,r,o){if(e.length>Wu||t.text!==e)return;let a=new Array(e.length+1).fill(0),i=[...t.clusters].sort((c,u)=>c.textStart-u.textStart);if(i.length===0&&e.length>0)return;let l=0,s=0,d=Math.max(0,t.glyphs.reduce((c,u)=>c+u.advanceX*n,0)+e.length*r+Hu(e)*o);for(let c of i){if(c.textStart!==s||c.textEnd<=s||c.textEnd>e.length||!Number.isInteger(c.textEnd))return;for(let f=c.textStart;f<c.textEnd;f++)a[f]=l;let u=(c.textEnd-c.textStart)*r+Hu(e.slice(c.textStart,c.textEnd))*o;l=Math.max(l,Math.min(d,l+c.advance*n+u)),a[c.textEnd]=l,s=c.textEnd;}if(s===e.length)return a[e.length]=d,a}function Hu(e){let t=0;for(let n=0;n<e.length;n++)e[n]===" "&&t++;return t}var pw=new WeakMap;function gw(e,t,n){let r=pw.get(n);r||(r=new WeakMap,pw.set(n,r));let o=r.get(e),a=Ae(e.style,e.fontSlot),i=zt(e.text,a),l=Math.max(0,e.box.width);if(o===void 0){o=null;try{let f=n.caretAdvances?.(i,a);if(f&&f.length===i.length+1){let m=0;o=f.map((p,g)=>g===0?0:(m=Math.max(m,Math.min(l,Number.isFinite(p)?p:m)),g===i.length?l:m));}}catch{}r.set(e,o);}let s=Math.max(0,Math.min(t,e.text.length));if(s===0)return 0;if(s===e.text.length)return l;let d=zt(e.text.slice(0,s),a);if(o)return o[d.length]??l;let c=a.shaping?.wordSpacingPt??0,u=Math.max(0,l-Hu(i)*c);return Math.max(0,Math.min(l,u*d.length/Math.max(1,i.length)+Hu(d)*c))}function Sr(e,t){if(!t)return e;let n=Math.max(e.x,t.x),r=Math.max(e.y,t.y),o=Math.min(e.x+e.width,t.x+t.width),a=Math.min(e.y+e.height,t.y+t.height);return a<=r||(e.width===0?o<n:o<=n)?null:{...e,x:n,y:r,width:o-n,height:a-r}}function zu(e,t,n){let r=Math.max(e.x-t.x,0,t.x-(e.x+e.width)),o=Math.max(e.y-t.y,0,t.y-(e.y+e.height));return r+o*n}function hw(e,t,n){return e.kind!=="table"||Math.max(e.box.y-t.y,0,t.y-(e.box.y+e.box.height))>0?zu(e.box,t,n):0}function hg(e){return e.kind==="paragraph"&&e.outOfFlow===true&&!e.positionedFrame}var vw=8;function Sg(e,t){return t?{...t,caret:sl(e,t.caret)}:null}var yw=new WeakMap;function Vu(e){let t=yw.get(e);if(t)return t;let n=[],r=new Map,o=new Map,a=new Map,i=new Map,l=new Map,s=(c,u)=>{for(let f of c){if(f.kind==="paragraph"){if(!u)for(let m of f.lines)o.set(m.range.paragraphId,m.id);continue}for(let m of f.rows){if(!m.isHeaderRepeat&&!r.has(m.id)){let p=a.get(f.tableId)??0;r.set(m.id,p),a.set(f.tableId,p+1);}for(let p of m.cells){if(!m.isHeaderRepeat&&!u){let g=`${f.tableId}|${p.gridColumn}`;if(p.blocks.length===0){let h=l.get(g);h&&i.set(p,h);}else l.set(g,{row:m,cell:p});}s(p.blocks,u||m.isHeaderRepeat);}}}};for(let c of e.pages)n.push(c.box.y),s(c.fragments,false);let d={pageTops:n,rowIndexById:r,lastLineIdOfParagraph:o,mergeOriginOf:i};return yw.set(e,d),d}function Gu(e,t){let n=Vu(e).pageTops;if(n.length===0)return -1;let r=0,o=n.length-1,a=0;for(;r<=o;){let i=r+o>>1;n[i]<=t?(a=i,r=i+1):o=i-1;}return a}function QU(e,t){let n=e.pages[Gu(e,t.y)];if(!n)return false;for(let r of [n.header,n.footer])if(r&&dl(r.box,t))return true;return false}function Pg(e,t,n,r=false){if(!e||e.length===0)return null;let o=[...e].sort((a,i)=>a.behindDocument!==i.behindDocument?a.behindDocument?-1:1:i.relativeHeight-a.relativeHeight);for(let a of o){if(r&&a.behindDocument||!js(a,t))continue;let i={paragraphId:a.anchorParagraphId,offset:a.start};return {position:i,caret:{position:i,x:a.x,y:a.y,height:a.height,lineId:"",pageIndex:n},pageIndex:n,lineId:"",cell:null,contentControlId:null,onGlyphs:true,drawing:Object.freeze({drawingNodeId:a.drawingNodeId,paragraphId:a.anchorParagraphId,start:a.start})}}return null}function Rg(e,t,n,r={}){let o=e.pages[t];if(!o)return null;let a={layout:e,pageIndex:o.index,verticalWeight:r.verticalWeight??vw,measurer:r.measurer},i=bw(e,o.index,n),l=(o.anchoredDrawings??[]).filter(f=>!f.behindDocument),s=(o.anchoredDrawings??[]).filter(f=>f.behindDocument),d=Pg(l,n,a.pageIndex);if(d)return {...d,contentControlId:i};let c=Sg(e,cl(o.fragments,n,a,null));if(c?.onGlyphs)return {...c,contentControlId:i};let u=Pg(s,n,a.pageIndex);if(u)return {...u,contentControlId:i};if(c)return {...c,contentControlId:i};for(let f=1;f<e.pages.length;f+=1)for(let m of [t-f,t+f]){let p=e.pages[m];if(!p)continue;let g=Sg(e,cl(p.fragments,n,{...a,pageIndex:p.index},null));if(g)return {...g,contentControlId:bw(e,p.index,n)}}return null}function eX(e,t,n,r,o={}){let a=e.pages[t];if(!a)return null;let i={layout:e,pageIndex:a.index,verticalWeight:o.verticalWeight??vw,measurer:o.measurer};return Sg(e,cl(n,r,i,null))}function tX(e,t,n={}){let r=e.pages[Gu(e,t.y)];if(!r)return null;for(let o of [r.header,r.footer]){if(!o?.anchoredDrawings||o.anchoredDrawings.length===0)continue;let a=Object.freeze({x:t.x-o.box.x,y:t.y-o.box.y}),i=Pg(o.anchoredDrawings,a,r.index);if(i)return i}return Rg(e,r.index,{x:t.x-r.contentBox.x,y:t.y-r.contentBox.y},n)}function dl(e,t){return t.x>=e.x&&t.x<e.x+e.width&&t.y>=e.y&&t.y<e.y+e.height}function wg(e,t,n){let r=e.contentControls??[],o=null;for(let a of r)for(let i of a.fragments)i.pageIndex===t&&dl(i.box,n)&&(!o||a.nestingDepth>o.nestingDepth)&&(o=a);return o}function bw(e,t,n){return wg(e,t,n)?.id??null}function cl(e,t,n,r){if(e.length===0)return null;let o=e.filter(hg);if(o.length>0&&o.length<e.length){let l=e.filter(s=>!hg(s));return cl(l,t,n,r)??cl(o,t,n,r)}if(e.some(l=>l.kind==="paragraph"&&l.outOfFlow&&dl(l.box,t)))for(let l=e.length-1;l>=0;l-=1){let s=e[l];if(!dl(s.box,t))continue;let d=yg(s,t,n,r);if(d)return d}let a=null;for(let l of e){if(!dl(l.box,t))continue;a=l;let s=yg(l,t,n,r);if(s)return s;break}let i=e.filter(l=>l!==a).map(l=>({block:l,score:hw(l,t,n.verticalWeight)})).sort((l,s)=>l.score-s.score);for(let{block:l}of i){let s=yg(l,t,n,r);if(s)return s}return null}function yg(e,t,n,r){return e.kind==="paragraph"?UE(e,t,n,r,dl(e.box,t)):eN(e,t,n)}function UE(e,t,n,r,o){if(e.clipToBox&&!o)return null;let a=XE(e.lines,t.y);if(!a)return null;let i=JE(a,t.x,t.y,n),l=qE(a,t.x),s=Math.min(Math.max(i.offset,l.start),l.end),d={paragraphId:l.paragraphId,offset:s},c=Ws(a,s,n.measurer,l),u=Sr({...c,x:i.x,width:0},e.clipToBox?e.box:void 0);return u?{position:d,caret:{position:d,x:u.x,y:u.y,height:u.height,lineId:a.id,pageIndex:n.pageIndex},pageIndex:n.pageIndex,lineId:a.id,cell:r,onGlyphs:o&&i.withinSpan&&t.y>=a.box.y&&t.y<a.box.y+a.box.height,contentControlId:null,drawing:i.drawing&&i.withinSpan?YE(i.drawing):null}:null}function XE(e,t){if(e.length===0)return null;for(let o of e)if(t>=o.box.y&&t<o.box.y+o.box.height)return o;let n=e[0],r=Number.POSITIVE_INFINITY;for(let o of e){let a=t<o.box.y?o.box.y-t:t-(o.box.y+o.box.height);a<r&&(r=a,n=o);}return n}function YE(e){return Object.freeze({drawingNodeId:e.drawingNodeId,paragraphId:e.paragraphId,start:e.start})}function qE(e,t){let n=Ct(e),r=Cm(e.spans,t);if(r){let a=n.find(i=>i.paragraphId===r.range.paragraphId);if(a)return a}let o=n[0];for(let a of n){let i=a.spans[0];if(i===void 0)continue;let l=a.spans[a.spans.length-1];if(t>=i.box.x&&(o=a),t<l.box.x+l.box.width)break}return o}function ZE(e,t,n){for(let r of n??e.drawings??[])if(r.start===t||r.start+1===t)return r;return null}function js(e,t){let n=e.hitBounds;return t.x<n.x||t.x>=n.x+n.width||t.y<n.y||t.y>=n.y+n.height?false:Am(t.x,t.y,e.geometry)}function JE(e,t,n,r){let o=e.spans;for(let d of e.drawings??[])if(js(d,{x:t,y:n}))return {offset:d.start,x:d.hitBounds.x,withinSpan:true,drawing:d};if(o.length===0&&(e.drawings?.length??0)>0){let d=e.drawings[0];if(t<=d.advanceStart)return {offset:e.range.start,x:d.advanceStart,withinSpan:false,drawing:d};let c=e.drawings[e.drawings.length-1];if(t>=c.advanceEnd)return bg(e,c.advanceEnd,r);for(let u of e.drawings??[])if(t>=u.advanceStart&&t<u.advanceEnd){let f=t>=u.x+u.width/2;return {offset:f?u.start+1:u.start,x:f?u.advanceEnd:u.advanceStart,withinSpan:js(u,{x:t,y:n}),drawing:u}}}if(o.length===0)return {offset:e.range.start,x:e.contentX,withinSpan:false};let a=Cm(o,t);if(a){let d=Rw(a,Math.max(a.box.x,Math.min(t,a.box.x+a.box.width)),r),c=Ct(e).find(m=>m.paragraphId===a.range.paragraphId),u=Yb(e,c),f=Math.min(d.offset,Tw(r.layout,u));return f===d.offset?d:{...d,offset:f,x:Ws(e,f,r.measurer,c).x}}let i=o[0];if(t<=i.box.x)return {offset:e.range.start,x:i.box.x,withinSpan:false};let l=o[o.length-1],s=l.box.x+l.box.width;if(t>=s)return bg(e,s,r);for(let d of o)if(t>=d.box.x&&t<d.box.x+d.box.width)return Rw(d,t,r);for(let d=0;d<o.length;d+=1){let c=o[d];for(let u of e.drawings??[]){if(t>=u.advanceStart&&t<u.advanceEnd){let f=js(u,{x:t,y:n}),m=t>=u.x+u.width/2;return {offset:m?u.start+1:u.start,x:m?u.advanceEnd:u.advanceStart,withinSpan:f,drawing:u}}if(!(u.start<=c.range.start&&u.hitBounds.x+u.hitBounds.width<=c.box.x)){if(js(u,{x:t,y:n}))return {offset:u.start,x:u.hitBounds.x,withinSpan:true,drawing:u};if(t<c.box.x&&t>=u.hitBounds.x+u.hitBounds.width)return {offset:u.start+1,x:u.hitBounds.x+u.hitBounds.width,withinSpan:false,drawing:u};if(t<u.hitBounds.x&&t>=(o[d-1]?.box.x??e.contentX))return {offset:u.start,x:u.hitBounds.x,withinSpan:false,drawing:u}}}if(t<c.box.x){let u=o[d-1],f=u.box.x+u.box.width;return t-f<=c.box.x-t?{offset:u.range.end,x:f,withinSpan:false}:{offset:c.range.start,x:c.box.x,withinSpan:false}}}return bg(e,s,r)}function bg(e,t,n){let r=Tw(n.layout,e);if(r===e.range.end)return {offset:r,x:t,withinSpan:false};for(let o=e.spans.length-1;o>=0;o-=1){let a=e.spans[o];if(r<a.range.start)continue;let i=r-a.range.start,l=n.measurer?Hs(a,i,n.measurer):a.box.width*(a.range.end>a.range.start?i/(a.range.end-a.range.start):0);return {offset:r,x:a.box.x+l,withinSpan:false}}return {offset:r,x:t,withinSpan:false}}function Tw(e,t){let n=t.range.end;if(n>t.range.start&&xg(t,n-1)===chunkCB6RQ3GD_cjs.Zd)return n-1;if(Vu(e).lastLineIdOfParagraph.get(t.range.paragraphId)===t.id)return n;let r=n;for(r>t.range.start&&xg(t,r-1)===`
17
- `&&(r-=1);r>t.range.start&&xg(t,r-1)===" ";)r-=1;return r}function xg(e,t){for(let n of e.spans)if(!(t<n.range.start||t>=n.range.end))return n.text.length!==n.range.end-n.range.start?null:n.text[t-n.range.start]??null;return null}var xw=new WeakMap,Sw=new WeakMap;function Pw(e){let t=tc(),n=xw.get(e);if(n&&n.epoch===t)return n.boundaries;let r=[0];for(let o of et(e.text))r.push(o.utf16To);return r[r.length-1]!==e.text.length&&r.push(e.text.length),xw.set(e,{epoch:t,boundaries:r}),r}function Hs(e,t,n){let r=e.caretEdges;if(r&&t>=0&&t<r.length)return r[t];if(e.style.shaping)return gw(e,t,n);let o=Sw.get(n);o||(o=new WeakMap,Sw.set(n,o));let a=o.get(e);a||(a=new Map,o.set(e,a));let i=a.get(t);if(i!==void 0)return i;let l=t<=0?0:Ze(e.text.slice(0,t),Ae(e.style,e.fontSlot),n),s=e.lineEndWhitespace?Math.min(l,e.box.width):l;return a.set(t,s),s}function kg(e){return e.text===" "||e.projected?true:e.text.length!==e.range.end-e.range.start}function Pr(e,t,n){let r=e.range.end-e.range.start;if(r<=0)return e.box.x;let o=Math.max(0,Math.min(t-e.range.start,r)),a=l=>e.box.x+(e.style.shaping?.direction==="rtl"?e.box.width-l:l),i=e.caretEdges;return i&&o<i.length?e.box.x+i[o]:!n||kg(e)?a(e.box.width*(o/r)):a(Hs(e,o,n))}function Ws(e,t,n,r){let o=ZE(e,t,r?.drawings);if(o)return {x:t>o.start?o.advanceEnd:o.advanceStart,y:o.y,height:o.height};let a=r?r.spans:e.spans;if(a.length===0){let d=e.leading??0,c=Math.max(0,e.box.height-d-(e.trailingSpacing??0));if(c<=0&&e.box.height<=0){let u=Math.max(0,e.baseline);return {x:e.contentX,y:e.box.y-u,height:u}}return {x:e.contentX,y:e.box.y+d,height:c}}let i=a[0];for(let d=0;d<a.length;d+=1){let c=a[d];if(t>c.range.start&&t<c.range.end){i=c;break}if(t===c.range.end){let u=a[d+1];if(u?.range.start===t&&c.style.shaping&&u.style.shaping){i=u;break}if(u&&u.range.start===t&&kg(c)){i=u;break}if(u&&u.range.start===t){let f=lt(Un(c.text)??0)||lt(u.text.codePointAt(0)??0),m=u.box.x-(c.box.x+c.box.width)-(u.wrapAdvanceBefore??0);if(c.text.endsWith(" ")&&m>.25||f&&m>.001){i=u;break}}i=c;}else t>c.range.end&&(i=c);}let l=Pr(i,t,n),s=n?.lineMetrics(Ae(i.style,i.fontSlot));return !s||s.height<=0?{x:l,y:e.box.y,height:e.box.height}:{x:l,y:e.box.y+e.baseline-s.baseline-xi(i.style),height:s.height}}function Rw(e,t,n){let r=e.style.shaping?.direction==="rtl",o=r?e.box.x+e.box.width-t:t-e.box.x,a=g=>e.box.x+(r?e.box.width-g:g),i=e.range.end-e.range.start;if(i<=0||kg(e)){let g=o>e.box.width/2;return {offset:g?e.range.end:e.range.start,x:a(g?e.box.width:0),withinSpan:true}}if(!n.measurer){let g=Math.max(0,Math.min(1,o/Math.max(e.box.width,Number.EPSILON))),h=Math.round(g*i),x=Pw(e),b=x[0],y=Number.POSITIVE_INFINITY;for(let w of x){let P=Math.abs(w-h);P<y&&(y=P,b=w);}return {offset:e.range.start+b,x:a(e.box.width*(b/i)),withinSpan:true}}let l=Pw(e),s=1,d=l.length-1;for(;s<d;){let g=s+d>>1;Hs(e,l[g],n.measurer)<o?s=g+1:d=g;}let c=l[s],u=l[s-1],f=Hs(e,c,n.measurer),m=Hs(e,u,n.measurer),p=o-m<=f-o;return {offset:e.range.start+(p?u:c),x:a(p?m:f),withinSpan:true}}function ww(e,t,n,r){if(e.length===0)return null;for(let i of e){let l=n(i);if(t>=l&&t<l+r(i))return i}let o=e[0],a=Number.POSITIVE_INFINITY;for(let i of e){let l=n(i),s=t<l?l-t:t-(l+r(i));s<a&&(a=s,o=i);}return o}function QE(e,t,n,r){return {tableId:t.tableId,rowId:n.id,cellId:r.id,rowIndex:Vu(e).rowIndexById.get(n.id)??0,gridColumn:r.gridColumn,gridSpan:r.gridSpan}}function eN(e,t,n,r){let o=e.rows.filter(d=>!d.isHeaderRepeat),a=o.length>0?o:e.rows,i=[],l=ww(a,t.y,d=>d.box.y,d=>d.box.height);if(l){let d=ww(l.cells,t.x,c=>c.box.x,c=>c.box.width);d&&i.push(tN(n,l,d));}let s=[];for(let d of a)for(let c of d.cells)c.blocks.length!==0&&(i.some(u=>u.cell===c)||s.push({entry:{row:d,cell:c},score:zu(c.box,t,n.verticalWeight)}));s.sort((d,c)=>d.score-c.score);for(let{row:d,cell:c}of [...i,...s.map(u=>u.entry)]){let u=QE(n.layout,e,d,c),f=c.textDirection==="btLr"?X0(t,c.box):t,m=cl(c.blocks,f,n,u);if(m)return m}return null}function tN(e,t,n){return n.blocks.length>0?{row:t,cell:n}:Vu(e.layout).mergeOriginOf.get(n)??{row:t,cell:n}}function Iw(e,t){let n=t.paintBounds;return n.width<=0||n.height<=0?null:Object.freeze({pageIndex:e,x:n.x,y:n.y,width:n.width,height:n.height,record:t})}function nN(e,t,n){for(let r of t.lines)for(let o of r.drawings??[])if(o.drawingNodeId===n)return Iw(e,o);return null}function Ow(e,t,n){if(t.kind==="paragraph")return nN(e,t,n);for(let r of t.rows)for(let o of r.cells)for(let a of o.blocks){let i=Ow(e,a,n);if(i)return i}return null}function kw(e,t,n){for(let r of t){let o=Ow(e,r,n);if(o)return o}return null}function nX(e,t){for(let n of e.pages){for(let o of n.anchoredDrawings??[])if(o.drawingNodeId===t)return Iw(n.index,o);let r=kw(n.index,n.fragments,t);if(r)return r;for(let o of [n.header,n.footer]){if(!o)continue;for(let i of o.anchoredDrawings??[]){if(i.drawingNodeId!==t)continue;let l=i.paintBounds;return l.width<=0||l.height<=0?null:Object.freeze({pageIndex:n.index,x:o.box.x+l.x-n.contentBox.x,y:o.box.y+l.y-n.contentBox.y,width:l.width,height:l.height,record:i})}let a=kw(n.index,o.fragments,t);if(a){let i=a.record.paintBounds;return Object.freeze({pageIndex:n.index,x:n.header?.box.x===o.box.x||n.footer?.box.x===o.box.x?o.box.x+i.x-n.contentBox.x:a.x,y:o.box.y+i.y-n.contentBox.y,width:a.width,height:a.height,record:a.record})}}}return null}var Zr=8,Fw=2,rN=Object.freeze({keepNext:false,keepLines:false,widowControl:true});function vg(e){let t=e?.val;return t!=="0"&&t!=="false"&&t!=="off"}function Eo(e){let t=false,n=false,r=true;for(let o of e)switch(o.localName){case "keepNext":t=vg(o.attributes);break;case "keepLines":n=vg(o.attributes);break;case "widowControl":r=vg(o.attributes);break;}return !t&&!n&&r?rN:{keepNext:t,keepLines:n,widowControl:r}}function ul(e,t,n,r,o){if(e<=t)return e;if(r.keepLines&&!o)return t;if(!r.widowControl||n<Fw)return e;let a=e;return n-a<Fw&&(a-=1),a-t===1&&(a-=1),a<t&&(a=t),a===t&&o?e:a}function Cw(e,t,n,r,o){let a=0,i=n;for(let l=t;l-t<Zr;l+=1){let s=e[l];if(s&&o?.(l))continue;if(!s||s.kind!=="paragraph"||!s.spacing||!s.keeps)return null;a+=Math.max(s.spacing.before,i)-i;let d=r(l);if(!s.keeps.keepNext||l+1>=e.length)return a+=d[0]??0,s.keeps.widowControl&&d.length>1&&(a+=d[1]),a;for(let c of d)a+=c;a+=s.spacing.after,i=s.spacing.after;}return null}function oN(e,t){let n=e;for(let r=0;r<e.length;r+=1){let o=t(r);o!==void 0&&(n===e&&(n=[...e]),n[r]=`${n[r]}~mk~${o}`);}return n}function aN(e,t,n,r=(o,a)=>o+a>=0&&o+a<e.length?n(o+a):null){let o=e;for(let a=0;a<e.length;a+=1){if(!t(a))continue;let i=n(a);if(i===null)continue;let l=r(a,-1)===i,s=r(a,1)===i;o===e&&(o=[...e]),o[a]=`${o[a]}~cs~${l?1:0}${s?1:0}`;}return o}function iN(e,t){let n=e;for(let r=0;r<e.length;r+=1){let o=t(r);if(o==="")continue;let a=r>0&&t(r-1)===o,i=r+1<e.length&&t(r+1)===o;n===e&&(n=[...e]),n[r]=`${n[r]}~bg~${a?1:0}${i?1:0}`;}return n}function lN(e,t){let n=e;for(let r=0;r<e.length;r+=1){let o=t(r);o!==""&&(n===e&&(n=[...e]),n[r]=`${n[r]}~toc~${o}`);}return n}function sN(e,t,n){let r=e,o=0,a=-1;for(let i=e.length-1;i>=0;i-=1)n?.(i)||(a>=0&&t(i)&&o<Zr?(r===e&&(r=[...e]),r[i]=`${e[i]}~kn~${r[a]}`,o+=1):o=0,a=i);return r}function Mw(e,t){let n=t.terminalTableGroup,r=n?e.map((a,i)=>i>=n.start&&i<=n.anchorIndex?ae([a,n.token]):a):e,o=aN(r,t.contextualSpacingAt,t.styleIdAt,t.neighbourStyleAt);return o=iN(o,t.borderGroupKeyAt),t.tocVerdicts.length>0&&(o=lN(o,a=>t.tocVerdicts[a])),o=oN(o,t.markerTextAt),o=sN(o,t.keepsNextAt,t.skipKeepNextAt),o}function gn(e,t,n){if(e.cellSpacingPt>0)return n;let r=new Map(n.cellContentInsets),o=new Map(n.cellMinimumContentInsets);for(let a of t.cells){let i=rn(a.margins.top,hr(a.borders.top,e.tableBorders.top));r.set(a.id,{...r.get(a.id)??on(a,true),top:i});let l=o.get(a.id)??a.minimumContentInsets;l&&o.set(a.id,{...l,top:i});}return {...n,cellContentInsets:r,...o.size?{cellMinimumContentInsets:o}:{}}}function Bw(e,t,n){if(e.cellSpacingPt>0)return n;let r=new Map(n.cellContentInsets),o=new Map(n.cellMinimumContentInsets),a=false;for(let i of t.cells){let l=r.get(i.id)??on(i,true),s=rn(i.margins.bottom,hr(i.borders.bottom,e.tableBorders.bottom));l.bottom!==s&&(a=true),r.set(i.id,{...l,bottom:s});let d=o.get(i.id)??i.minimumContentInsets;d&&(d.bottom!==s&&(a=true),o.set(i.id,{...d,bottom:s}));}return a?{...n,cellContentInsets:r,...o.size?{cellMinimumContentInsets:o}:{}}:n}function Ig(e,t,n,r,o){return t?{before:r!==void 0&&r===n?0:e.before,after:o!==void 0&&o===n?0:e.after}:e}function Tg(e,t,n){if(e?.kind!=="paragraph")return;let r=e.children.find(o=>o.kind==="paragraphProperties");return t?uu(t,r,n).styleId:ut(r).find(o=>o.localName==="pStyle")?.attributes?.val??null}function Lw(e,t,n,r,o,a){return t?Ig(e,true,n,Tg(r?.previous,o,a),Tg(r?.next,o,a)):e}function Ea(e,t,n,r){let o=yp(e),a=t<0?o?.before:o?.after;return a?Tg(a,r):n?.kind==="paragraph"?n.styleId:void 0}function dN(e,t,n,r){let o=e[t]?.paragraph;if(!o)return null;let a=Ea(o,n,e[t+n],r);return a===void 0?null:a??""}function Ew(e,t){let n=yp(e);return n?{...t,previous:n.before??t?.previous,next:n.after??t?.next}:t}function Nw(e,t){let n=e.map(o=>o.kind==="paragraph"&&!!o.contextualSpacing),r=e.map(o=>o.kind==="paragraph"?o.styleId??"":null);return {contextualSpacingAt:o=>n[o],styleIdAt:o=>r[o]??null,neighbourStyleAt:(o,a)=>dN(e,o,a,t)}}function Qt(e){return {...e,measuringOnly:true,collectAnchoredDrawings:void 0,publishAnchoredDrawings:void 0,deferAnchoredDrawings:void 0,onAnchorRepublish:void 0,onAnchorShift:void 0,anchorDeferOnly:true}}function Aw(e){return e.publishAnchoredDrawings??e.collectAnchoredDrawings}function Og(e,t,n,r,o){let a=Aw(o);if(!(e.length===0||!a||!o.inlineDrawingLayout||!o.anchorFrameBase||!o.pageContentClip))for(let i of e){let l=null,s=null,d=i.lines;for(let u of t){for(let f of u.blocks)if(f.kind==="paragraph"&&f.paragraphId===i.paragraphId){l=f.box,d=f.lines,s=u.box;break}if(l)break}if(!l)continue;let c=s??Object.freeze({x:i.cellOriginX,y:n,width:i.cellContentWidth,height:r});a(ka({paragraph:i.paragraph,paragraphId:i.paragraphId,paragraphBox:l,lines:d,drawingLayout:o.inlineDrawingLayout,frameBase:o.anchorFrameBase(),columnBox:o.columnBoxForParagraph?.(l)??l,cellBox:c,cellContentBox:{...c,x:i.cellOriginX,width:i.cellContentWidth},pageClip:o.pageContentClip(),cellAnchorScope:Ra(true,o),measurer:o.measurer,...o.hostedStory?{layoutTextboxStory:o.hostedStory.layoutTextboxStoryFor}:{},...o.displayMode?{displayMode:o.displayMode}:{},...o.revisionAuthorFilter?{revisionAuthorFilter:o.revisionAuthorFilter}:{}}));}}function Dw(e,t,n,r,o){if(!(!r.onAnchorRepublish||!r.inlineDrawingLayout||!r.anchorFrameBase||!r.pageContentClip))for(let a of e){if(a.kind!=="paragraph")continue;let i=t.find(s=>s.kind==="paragraph"&&s.id===a.paragraphId);!i||i.kind!=="paragraph"||wt(i,r.inlineDrawingLayout).length===0||r.onAnchorRepublish(a.paragraphId,ka({paragraph:i,paragraphId:a.paragraphId,paragraphBox:a.box,lines:a.lines,drawingLayout:r.inlineDrawingLayout,frameBase:r.anchorFrameBase(),columnBox:r.columnBoxForParagraph?.(a.box)??a.box,cellBox:n,cellContentBox:o,pageClip:r.pageContentClip(),cellAnchorScope:Ra(true,r),measurer:r.measurer,...r.hostedStory?{layoutTextboxStory:r.hostedStory.layoutTextboxStoryFor}:{},...r.displayMode?{displayMode:r.displayMode}:{},...r.revisionAuthorFilter?{revisionAuthorFilter:r.revisionAuthorFilter}:{}}));}}function _w(e,t){let n=Aw(e),r=e.deferAnchoredDrawings;return !n&&!r?{rowDeps:e,flushDeferred:()=>{}}:{rowDeps:{...e,publishAnchoredDrawings:n,collectAnchoredDrawings:void 0,deferAnchoredDrawings:i=>{t.push(i);}},flushDeferred:(i,l,s)=>{if(t.length!==0){if(n&&!e.anchorDeferOnly)Og(t,i,l,s,e);else if(r)for(let d of t)r(d);t.length=0;}}}}var $u=.001;function cN(e,t){return {...e,height:{rule:"auto"},cells:[t]}}function uN(e){let t=il(e),n=[],r=new Map;for(let o=0;o<e.length;o+=1)for(let a of e[o].cells){let i=t.get(a.id);if(i===void 0||i<2)continue;let l=Math.min(o+i-1,e.length-1);if(l<=o)continue;n.push({span:{headRow:o,endRow:l,headCellId:a.id},cell:a});let s=r.get(o);s?s.add(a.id):r.set(o,new Set([a.id]));}return {heads:n,headIdsByRow:r}}function fN(e,t,n){if(e.length===0||!e.some(k=>k.cells.some(v=>v.vMergeContinue)))return null;let{heads:r,headIdsByRow:o}=uN(e);if(r.length===0)return null;let a=new Map(r.map(k=>[k.span,k])),i=new Map;for(let k of r){let v=i.get(k.span.headRow);v?v.push(k.span):i.set(k.span.headRow,[k.span]);}for(let k of i.values())k.sort((v,S)=>S.endRow-v.endRow);let l=new Map,s=new Map,d=new Map,c=new Map,u=new Set,f=new Set,m=new Set,p=new Set,g=new Map,h=new Map,x=(k,v,S)=>{let C=new Set;for(let A of o.get(k)??[])(m.has(A)||A===v)&&C.add(A);let I=S===void 0?"":`@${S.toFixed(2)}`,N=`${k}${I}\0${n?.(e[k])??""}\0${[...C].sort().join("\0")}`,L=l.get(N);if(L!==void 0)return L;let D=t(e[k],C,S);return l.set(N,D),D},b=(k,v)=>{let S=n?.(e[k.headRow]),C=v===void 0&&S===void 0?k:`${k.headCellId}@${v?.toFixed(2)??""}:${S??""}`,I=s.get(C);if(I!==void 0)return I;let N=a.get(k),L=t(cN(e[k.headRow],N.cell),void 0,v);return s.set(C,L),L},y=(k,v,S)=>x(k,v,S)+(d.get(k)??0),w=k=>{for(let v=k.headRow+1;v<=k.endRow;v+=1)if(o.has(v))return true;return false},P=(k,v)=>{let S=0;for(let C=k.headRow;C<=k.endRow;C+=1)S+=y(C,k.headCellId,v===void 0?void 0:v+S);return S},R=(k,v)=>{let S=new Map,C=0;for(let I=k.headRow;I<=k.endRow;I+=1){let N=y(I,k.headCellId,v===void 0?void 0:v+C);S.set(I,N),C+=N;}return S},O=k=>{for(let v=k.endRow;v>=k.headRow;v-=1)if(e[v].height.rule!=="exact")return v},F=(k,v)=>{if(w(k)||p.has(k.headRow)&&!f.has(k))return Number.POSITIVE_INFINITY;let S=P(k,v);return O(k)===void 0?S:Math.max(S,b(k,v))};return {spansAt:k=>i.get(k)??[],heightOf:F,accept:(k,v)=>{if(f.has(k)||w(k)||p.has(k.headRow))return;let S=R(k,v),C=0;for(let D of S.values())C+=D;let I=O(k),N=b(k,v);if(I===void 0&&N>C+$u)return;let L=I===void 0?0:N-C;f.add(k),m.add(k.headCellId),p.add(k.headRow),L>$u&&(d.set(I,(d.get(I)??0)+L),S.set(I,(S.get(I)??0)+L));for(let[D,A]of S)u.add(D),c.set(D,Math.max(c.get(D)??0,A));g.set(k,v),h.set(k,L>$u?I:void 0);},withdrawAt:k=>{for(let v of i.get(k)??[]){if(!f.delete(v))continue;m.delete(v.headCellId),p.delete(v.headRow),g.delete(v);let S=h.get(v);S!==void 0&&d.delete(S),h.delete(v);for(let C=v.headRow;C<=v.endRow;C+=1)u.delete(C),c.delete(C);}},rowOptions:k=>{if(!u.has(k))return;let v;for(let S of i.get(k)??[])f.has(S)&&(v??=new Map,v.set(S.headCellId,F(S,g.get(S))));return {...v?{detachedSpanHeightPtByCellId:v}:{},heightFloorPt:c.get(k)??y(k)}}}}function jw(e,t,n,r){for(let o of e?.spansAt(t)??[])n+e.heightOf(o,n)>r+$u||e.accept(o,n);return e?.rowOptions(t)}function Hw(e,t,n,r,o,a){return fN(e.rows,(i,l,s)=>o(i,e.columnWidthsPt,typeof t=="function"?t():t,n,r,e.cellSpacingPt,l?{detachedSpanHeightPtByCellId:new Map([...l].map(d=>[d,Number.POSITIVE_INFINITY]))}:void 0,s),a)}function Ww(e,t,n){for(let r of e?.spansAt(t)??[])e.accept(r,n);return e?.rowOptions(t)}function fl(e,t){return t===0?[...e]:e.map(n=>n.kind==="table"?{...n,box:{...n.box,y:n.box.y+t},rows:n.rows.map(r=>({...r,box:{...r.box,y:r.box.y+t},cells:r.cells.map(o=>({...o,box:{...o.box,y:o.box.y+t},blocks:fl(o.blocks,t)}))}))}:{...n,box:{...n.box,y:n.box.y+t},...n.shadingBox?{shadingBox:{...n.shadingBox,y:n.shadingBox.y+t}}:{},...n.bottomBorder?{bottomBorder:{...n.bottomBorder,box:{...n.bottomBorder.box,y:n.bottomBorder.box.y+t}}}:{},...n.borders?{borders:n.borders.map(r=>({...r,box:{...r.box,y:r.box.y+t}}))}:{},...n.marker?{marker:{...n.marker,box:{...n.marker.box,y:n.marker.box.y+t},...n.marker.picture?{picture:{...n.marker.picture,box:{...n.marker.picture.box,y:n.marker.picture.box.y+t}}}:{}}}:{},lines:n.lines.map(r=>({...r,box:{...r.box,y:r.box.y+t},spans:r.spans.map(o=>({...o,box:{...o.box,y:o.box.y+t}})),...r.drawings?{drawings:r.drawings.map(o=>Ln(o,0,t))}:{}}))})}function Na(e,t,n,r,o,a,i,l,s){if(e.length===0)return [];let d=new Map;for(let x of n)for(let b of x.cells)d.set(b.id,b);let c=il(e,a,o,{pageFragment:true}),u=e.map((x,b)=>({...x,cells:x.cells.map(y=>{let w=c.get(y.id);if(y.vMergeContinue&&w===void 0)return {...y,paintInert:true,rowSpan:1,borders:{},blocks:[]};let P=y.vMergeContinue,R=w??1,O=y.box.height;if(R>1){let S=e[b+R-1];O=S.box.y+S.box.height-y.box.y;}let F=d.get(y.id),k=y.blocks;if(F&&F.vAlign!=="top"&&k.length>0){let S=s?.get(x)?.get(y.id)??on(F,t.cellSpacingPt===0),C=Number.POSITIVE_INFINITY,I=Number.NEGATIVE_INFINITY;for(let N of k)C=Math.min(C,N.box.y),I=Math.max(I,N.box.y+N.box.height);if(Number.isFinite(C)&&Number.isFinite(I)){let N=F.textDirection==="btLr",L=(N?y.box.width-S.left-S.right:O-S.top-S.bottom)-(I-C),A=y.box.y+(N?S.left:S.top)+(L>0?F.vAlign==="center"?L/2:L:0)-C;if(Math.abs(A)>.001){k=fl(k,A);for(let _ of k)_.kind==="paragraph"&&i?.(_.paragraphId,A);}}}let v=Object.freeze({x:y.box.x,y:y.box.y,width:y.box.width,height:O});if(F&&l&&(R>1||F.vAlign!=="top"&&k.length>0)){let S=s?.get(x)?.get(y.id)??on(F,t.cellSpacingPt===0),C={...v,x:v.x+S.left,width:Math.max(1,v.width-S.left-S.right)};Dw(k,F.blocks,v,l,C);}return {...y,...P?{vMergeContinue:false,paintInert:false}:{},rowSpan:R,blocks:k,box:{...y.box,height:O}}})})),f=u.map(x=>x.cells.map(b=>{let y=d.get(b.id);return {gridColumn:b.gridColumn,gridSpan:b.gridSpan,vMergeContinue:b.vMergeContinue,borders:y?.borders??{top:{state:"omitted"},left:{state:"omitted"},bottom:{state:"omitted"},right:{state:"omitted"}},mergeRowSpan:b.rowSpan??1}})),m=t.columnWidthsPt.length,p=t.tableBorders,g={collapsedHorizontal:t.cellSpacingPt===0,columnWidthsPt:t.columnWidthsPt,rowBands:u.map(x=>({y:x.box.y,height:x.box.height})),cellBoxes:u.map((x,b)=>x.cells.map(y=>{let w=d.get(y.id),P=w&&(s?.get(e[b])?.get(y.id)??on(w,t.cellSpacingPt===0)),R=w&&P?P.bottom>=rn(w.margins.bottom,hr(w.borders.bottom,t.tableBorders.bottom))-.001:false;return {width:y.box.width,height:y.box.height,outerBottomInsetReserved:R,centeredSideRules:w?.centeredSideRules===true&&t.cellSpacingPt===0,centeredSidePaint:w?.centeredSidePaint===true&&t.cellSpacingPt===0}}))},h=rl(f,p,m,g,void 0,r);return u.map((x,b)=>({...x,cells:x.cells.map((y,w)=>{let P=h[b][w];return y.paintInert||y.vMergeContinue?{...y,borders:{},paintInert:true}:{...y,borders:P}})}))}function mN(e){let t=[0],n=0;for(let r of e)n+=r,t.push(n);return t}function pN(e,t){let n=t.get(e.id);return n===void 0&&(e.isHeaderRepeat?n=0:(n=t.size,t.set(e.id,n))),{...e,rowIndex:n}}function pl(e,t,n,r){return {...e,nestingDepth:n,columnEdges:e.columnEdges??mN(t),rows:e.rows.map(o=>pN(o,r))}}var zw=new WeakMap,Vw=new WeakMap;function gN(e){let t=Vw.get(e);if(t)return t;let n=new Set;for(let r of e.occurrences)r.row.cells.some(o=>o.gridSpan>1||o.vMergeContinue||(o.rowSpan??1)>1)&&n.add(r.table.tableId);return Vw.set(e,n),n}var ml=4,Fg=6,Gw=14,hN={rowDivider:4,columnDivider:4,rightEdge:4,insertRow:3,insertColumn:3,tableBody:0};function Cg(e,t,n,r,o){for(let a of e){if(a.kind!=="table")continue;let i=a.nestingDepth??r;for(let l of a.rows){o({pageIndex:t,table:a,row:l,rowOrdinal:l.rowIndex,nestingDepth:i,editable:!l.isHeaderRepeat,pageContentBox:n});for(let s of l.cells)Cg(s.blocks,t,n,i+1,o);}}}function IX(e){let t=zw.get(e);if(t)return t;let n=[];for(let o=0;o<e.pages.length;o+=1){let a=e.pages[o],i=l=>{n.push(l);};Cg(a.fragments,o,a.contentBox,0,i);for(let l of [a.header,a.footer])l&&Cg(l.fragments,o,l.box,0,i);}let r=Object.freeze({sourceRevision:e.revision,occurrences:Object.freeze(n)});return zw.set(e,r),r}function OX(e){let t=e.sourceRevision;switch(e.kind){case "rowDivider":return `${t}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.edgeY}`;case "columnDivider":return `${t}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.leftGridColumnId}:${e.rightGridColumnId}:${e.edgeX}`;case "rightEdge":return `${t}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.gridColumnId}:${e.edgeX}`;case "insertRow":return `${t}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}`;case "insertColumn":return `${t}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.gridColumnId}:${e.isHeaderRepeat}`;case "tableBody":return `${t}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.nestingDepth}:${e.editable}`}}function FX(e){switch(e.kind){case "rowDivider":return `${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.edgeY}`;case "columnDivider":return `${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.leftGridColumnId}:${e.rightGridColumnId}:${e.edgeX}`;case "rightEdge":return `${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.gridColumnId}:${e.edgeX}`;case "insertRow":return `${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}`;case "insertColumn":return `${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.gridColumnId}:${e.isHeaderRepeat}`;case "tableBody":return `${e.kind}:${e.pageIndex}:${e.tableId}:${e.nestingDepth}:${e.editable}`}}function CX(e,t){if(t.kind==="insertRow"){for(let n of e.occurrences)if(n.pageIndex===t.pageIndex&&n.table.tableId===t.tableId&&n.row.id===t.rowId&&n.row.isHeaderRepeat===t.isHeaderRepeat)return n.editable?{kind:"insertRow",pageIndex:n.pageIndex,sourceRevision:e.sourceRevision,tableId:n.table.tableId,rowId:n.row.id,isHeaderRepeat:n.row.isHeaderRepeat,nestingDepth:n.nestingDepth}:null;return null}for(let n of e.occurrences)if(n.pageIndex===t.pageIndex&&n.table.tableId===t.tableId&&n.row.id===t.rowId&&n.row.isHeaderRepeat===t.isHeaderRepeat&&n.editable)for(let r=0;r<n.table.columnEdges.length-1;r+=1){let o=zs(n.row,r);if(o===t.gridColumnId)return {kind:"insertColumn",pageIndex:n.pageIndex,sourceRevision:e.sourceRevision,tableId:n.table.tableId,rowId:n.row.id,gridColumnId:o,isHeaderRepeat:n.row.isHeaderRepeat,nestingDepth:n.nestingDepth}}return null}function zs(e,t){for(let n of e.cells)if(n.gridColumn===t)return n.gridColumnId??null;return null}function yN(e,t,n,r,o){if(!e.pages[t.pageIndex])return null;let i=t.pageContentBox,l=n-i.x-o,s=r-i.y,d=t.table,c=l-d.box.x,u=s-d.box.y;return c<-ml||u<-Gw||c>d.box.width+ml||u>d.box.height+Fg?null:{x:c,y:u}}function bN(e,t,n,r){if(t.row.isHeaderRepeat)return null;let o=t.table,a=t.row.box.y-o.box.y+t.row.box.height;if(!o.columnEdges.slice(1).some(s=>Math.abs(n-s)<=ml)&&n>=0&&n<=o.box.width&&Math.abs(r-a)<=ml)return {kind:"rowDivider",pageIndex:t.pageIndex,sourceRevision:e.sourceRevision,tableId:o.tableId,rowId:t.row.id,isHeaderRepeat:t.row.isHeaderRepeat,nestingDepth:t.nestingDepth,edgeY:a};if(r<t.row.box.y-t.table.box.y||r>t.row.box.y-t.table.box.y+t.row.box.height||gN(e).has(o.tableId))return null;for(let s=1;s<o.columnEdges.length-1;s+=1){let d=o.columnEdges[s];if(Math.abs(n-d)>ml)continue;let c=zs(t.row,s-1),u=zs(t.row,s);if(!(!c||!u))return {kind:"columnDivider",pageIndex:t.pageIndex,sourceRevision:e.sourceRevision,tableId:o.tableId,rowId:t.row.id,leftGridColumnId:c,rightGridColumnId:u,isHeaderRepeat:t.row.isHeaderRepeat,nestingDepth:t.nestingDepth,edgeX:d,sheetY:t.pageContentBox.y+o.box.y+r}}let l=o.columnEdges.at(-1);if(Math.abs(n-l)<=ml){let s=o.columnEdges.length-2,d=zs(t.row,s);return !d||t.row.cells.some(c=>c.logicalGridColumn!==void 0)?null:{kind:"rightEdge",pageIndex:t.pageIndex,sourceRevision:e.sourceRevision,tableId:o.tableId,rowId:t.row.id,gridColumnId:d,isHeaderRepeat:t.row.isHeaderRepeat,nestingDepth:t.nestingDepth,edgeX:l,sheetY:t.pageContentBox.y+o.box.y+r}}return null}function MX(e,t,n,r,o=0,a){let i=a??Gu(r,n),l=i>=0?o:0,s=null,d=-1,c=-1,u=f=>{if(!f)return;let m=hN[f.kind];f.nestingDepth<d||f.nestingDepth===d&&m<=c||(d=f.nestingDepth,c=m,s=f);};for(let f of e.occurrences){if(i>=0&&f.pageIndex!==i)continue;let m=yN(r,f,t,n,l);if(!m||(u(bN(e,f,m.x,m.y)??{kind:"tableBody",pageIndex:f.pageIndex,sourceRevision:e.sourceRevision,tableId:f.table.tableId,nestingDepth:f.nestingDepth,editable:f.editable}),!f.editable))continue;let p=f.row.box.y-f.table.box.y;m.x<=Fg&&Math.abs(m.y-(p+f.row.box.height/2))<=f.row.box.height/2+Fg&&u({kind:"insertRow",pageIndex:f.pageIndex,sourceRevision:e.sourceRevision,tableId:f.table.tableId,rowId:f.row.id,isHeaderRepeat:f.row.isHeaderRepeat,nestingDepth:f.nestingDepth});for(let g=0;g<f.table.columnEdges.length-1;g+=1){let h=f.table.columnEdges[g],x=f.table.columnEdges[g+1],b=(h+x)/2;if(Math.abs(m.x-b)>(x-h)/2+2||m.y>Gw)continue;let y=zs(f.row,g);if(y){u({kind:"insertColumn",pageIndex:f.pageIndex,sourceRevision:e.sourceRevision,tableId:f.table.tableId,rowId:f.row.id,gridColumnId:y,isHeaderRepeat:f.row.isHeaderRepeat,nestingDepth:f.nestingDepth});break}}}return s}function $w(e,t,n,r,o,a,i=Number.POSITIVE_INFINITY,l){if(o>=gg)return null;let s=Math.max(1,n-t),d=Jt(e,s,o-(a.tableNestingOffset??0),a.styleCascade,a.displayMode,a.revisionAuthorFilter,a.compatibilityMode);if(!d||d.rows.length===0)return null;let c=l?.nextRowIndex??0,u=l?.fragmentIndex??0,f=Number.isFinite(i),m=d.rows.some(S=>S.isHeader||S.cells.some(C=>C.vMergeContinue)),p=0,g={...Qt(a),cache:void 0,borderOwnershipBudget:void 0,vMergeResolveBudget:void 0,onCellBreakKey:void 0,nextLineId:()=>`probe-nested-${p++}`},h=[],x={...a,publishAnchoredDrawings:void 0,collectAnchoredDrawings:void 0,anchorDeferOnly:true,deferAnchoredDrawings:S=>{h.push(S);}},b=t+al(d,s),y=Ku(d,b,o,x,void 0,S=>S.id===d.rows[c]?.id),w=[],P=new Map,R=r,O=c;for(let S=c;S<d.rows.length;S++){let C=d.rows[S],I=S===c?gn(d,C,x):x,N=S===c?gn(d,C,g):g;if(f&&!m){let A=Vs(C,d.columnWidthsPt,b,o,N,d.cellSpacingPt,void 0,R);if(R+A>i+.001)break}let L=h.length,D=Kw(C,d,b,R,o,I,false,Ww(y,S,R),()=>{h.length=L,y?.withdrawAt(S);});w.push(D.record),I.cellContentInsets&&P.set(D.record,I.cellContentInsets),R=D.bottom,O=S+1;}if(w.length===0||R>i+.001)return {fragment:null,bottom:r};let F=Na(w,d,d.rows.slice(c,O),a.borderOwnershipBudget,a.vMergeResolveBudget,void 0,void 0,void 0,P);for(let S of h)for(let C of F)if(C.cells.some(N=>N.blocks.some(L=>L.kind==="paragraph"&&L.paragraphId===S.paragraphId))){Og([S],C.cells,C.box.y,C.box.height,a);break}let k=d.columnWidthsPt.reduce((S,C)=>S+C,0),v=new Map(d.rows.map((S,C)=>[S.id,C]));return {...O<d.rows.length?{remainder:{nextRowIndex:O,fragmentIndex:u+1}}:{},fragment:pl({kind:"table",id:`${e.id}#f${u}`,tableId:e.id,fragmentIndex:u,rows:F,box:{x:b,y:r,width:k,height:R-r}},d.columnWidthsPt,o,v),bottom:R}}function Uu(e,t,n){return e.some(r=>r.spans.length>0||(r.drawings?.length??0)>0)?{}:{emptyParagraphStyle:t.length===0?Sn:Ne(t,n)}}function Uw(e,t,n,r){if(!n&&!r)return e;let o=ab(t),a=n&&o.before,i=r&&o.after;return !a&&!i?e:{before:a?0:e.before,after:i?0:e.after}}function Xu(e,t,n){let r=PP(e.tabStops,t),{left:o,hanging:a,firstLine:i}=e.indent;(a>0||i<0)&&o>0&&!r.stops.some(s=>s.positionPt===o&&!s.numberingOnly)&&(r={...r,stops:[...r.stops,{positionPt:o,alignment:"left"}].sort((s,d)=>s.positionPt-d.positionPt)});let l=r===e.tabStops?e.tabStopsCacheToken:nu(r);return {tabStops:r,properties:[...e.props,...e.inheritedRunProperties,...e.markRunProperties,{localName:"tabStops",attributes:{token:l}},...n.listToken!==void 0?[{localName:"list",attributes:{token:n.listToken}}]:[],...n.hostedListToken?[{localName:"txbxList",attributes:{token:n.hostedListToken}}]:[],...n.refToken?[{localName:"refFields",attributes:{token:n.refToken}}]:[]]}}function Mg(e,t){return e?`${t.toFixed(3)}|${e}`:""}function Xw(e,t){let n=Mg(t.exclusionToken,t.paragraphStartY),r=e;return n&&(r+=`\0excl:${t.columnIndex}|${n}`),t.anchorParagraphStartY!==void 0&&t.anchorParagraphStartY!==t.paragraphStartY&&(r+=`\0anchor:${t.anchorParagraphStartY}`),t.startOffset>0&&(r+=`\0from:${t.startOffset}`),r}function gl(e){let{formatting:t,styleCascade:n}=e;return up(e.paragraph,e.paragraphId,e.indentLeft,e.available,e.measurer,e.cache,e.cacheKey,t.inheritedRunProperties,e.tabStops,e.pageContext,n?(r,o)=>$i(r,o,n):void 0,{...e.flow,paragraphRtl:bt(t.props),justifySpaceShrink:e.compatibilityMode!==void 0&&e.compatibilityMode>=15&&bs(t.props)==="both",lineSpacing:t.lineSpacing,typography:Ac(t.props,n?.typography),equationCacheToken:e.producer,...n?{themeFonts:n.themeFonts}:{},markRunProperties:t.markRunProperties})}function Yw(e){let t=new Map;return {rememberBreakKey:(o,a)=>{let i=t.get(o);i||(i=new Set,t.set(o,i)),i.add(a);},releasePlacedBreaks:o=>{let a=t.get(o);if(!(!a||!e)){for(let i of a)e.release?.(i);t.delete(o);}}}}function qw(e,t,n){if(e.hideEndMark)return null;let r=e.blocks.at(-1);if(r?.kind!=="paragraph")return null;let o=Kr(r,t,n.styleCascade,n.listItems?.get(r.id),e.styleFormatting,true),a=o.markRunProperties.length===0?Sn:Ne(o.markRunProperties,n.styleCascade?.themeFonts);if(a.hidden||n.measurer.hasResolvedFont?.(a)===false)return null;let i=n.measurer.lineMetrics(a);return {linePt:rr(o.lineSpacing,i.height,i.baseline).height,spacing:o.spacing}}function xN(e,t,n){return qw(e,t,n)?.linePt??0}function SN(e,t,n){let r=qw(e,t,n);return r===null?0:Math.max(0,r.spacing.before)+r.linePt+Math.max(0,r.spacing.after)}function Zw(e,t,n,r){return r.vertical?{markFloor:0,continuation:0}:e.vMergeContinue?{markFloor:0,continuation:r.continuationOnlyRow?SN(e,t,n):0}:{markFloor:xN(e,t,n),continuation:0}}var Jw=new WeakMap;function Gs(e){let t=cb(e.borders);return t===""?"":`${t}@${e.indent.left},${e.indent.right}`}function Qw(e,t,n){Jw.set(e,{styleCascade:t.styleCascade,tableCellStyle:t.tableCellStyle,listItem:t.listItems?.get(e.id),key:n});}function PN(e,t){let n=t.listItems?.get(e.id),r=Jw.get(e);if(r&&r.styleCascade===t.styleCascade&&r.tableCellStyle===t.tableCellStyle&&r.listItem===n)return r.key;let o=Gs(Kr(e,1,t.styleCascade,n,t.tableCellStyle,true));return Qw(e,t,o),o}function RN(e,t){return e&&e.kind==="paragraph"?PN(e,t):""}function ek(e,t,n,r){Qw(e,n,t);let o=a=>t!==""&&RN(a,n)===t;return {continuesAbove:o(r?.previous),continuesBelow:o(r?.next)}}function tk(e,t){return t?{...e,indent:{...e.indent,left:e.indent.right,right:e.indent.left},markerAlign:e.markerAlign==="left"?"right":e.markerAlign==="right"?"left":"center"}:e}function Bg(e,t,n,r,o,a){return bp(e&&tk(e,a),a&&e?{...t,left:t.right}:t,n,r,o)}function Lg(e,t){if(!e)return {};if(e.picBullet)return {firstLineMinimumBaseline:e.picBullet.height};if(e.markerText.length===0||e.markerStyle.hidden)return {};let{baseline:n}=t.lineMetrics(e.markerStyle,e.markerText);return n>0?{firstLineMarkerAscent:n}:{}}function nk(e,t){let n=r=>e?.get(r.paragraph.id)??r.listItem;return {firstLineOffsetOf:r=>Bg(n(r),r.indent,t,r.tabStops,r.available,bt(r.props)),firstLineFloorOf:r=>Lg(n(r),t)}}function Yu(e,t,n,r=0,o,a){if(!e||!n||!e.markerText&&!e.picBullet)return;let i=mu(e,t),l=pu(tk(e,o!==void 0),i,n.box.y,n.box.height);if(!l)return;let s=r+(o===void 0?l.x:o-l.x-l.width),d=e.picBullet,c=d&&a?a(d.relationshipId):null,u=d&&c?{picture:{ownerPartName:c.ownerPartName,relationshipId:d.relationshipId,box:{x:s,y:n.box.y+n.baseline-d.height,width:d.width,height:d.height},resource:c.resource}}:{};return {text:e.markerText,style:e.markerStyle,box:{x:s,y:l.y,width:l.width,height:l.height},level:e.ilvl,numId:e.numId,numFmt:e.numFmt,...e.ordinal===void 0?{}:{ordinal:e.ordinal},...u}}function Eg(e,t,n,r,o,a){let i=new Map,l=0,s=d=>{let c=Jt(d,t,0,n,r,o,a);if(c)for(let u of c.rows)for(let f of u.cells)for(let m of f.blocks)m.localName==="p"?i.set(m.id,l++):m.localName==="tbl"&&s(m);};for(let d of e)d.kind==="paragraph"&&d.paragraph?i.set(d.paragraph.id,l++):d.kind==="table"&&d.table&&s(d.table);return i}var Ng=4096,rk=1,Rr=class extends Error{code;constructor(t,n){super(n),this.name="TablePaginationError",this.code=t;}};function Ag(e){return e.cells.map(()=>({blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0,precededByEmittedTable:false}))}function qu(e,t,n){let r=0;for(let o=t;o<n&&o<e.length;o+=1)r+=e[o];return r}function wN(e,t,n,r,o,a,i){let l=e.id,s=o.cache?.keyFor?.bind(o.cache)??yc,d=o.listItems?.get(l),c=Kr(e,n,o.styleCascade,d,i?.tableCellStyle,true,o.paragraphLineUnitPt),{props:u,indent:f,available:m,alignment:p,styleId:g,outlineLevel:h,spacing:x,bottomBorder:b,borders:y,shading:w}=c,P=Uw(x,u,i?.firstInCell===true,i?.lastInCell===true),R=Lw(P,c.contextualSpacing,g,Ew(e,i?.borderNeighbours),o.styleCascade,i?.tableCellStyle),O=bt(u),{continuesAbove:F,continuesBelow:k}=ek(e,Gs(c),{styleCascade:o.styleCascade,tableCellStyle:i?.tableCellStyle,listItems:o.listItems},i?.borderNeighbours),v=F?void 0:y.top,S=k?y.between:b,{tabStops:C,properties:I}=Xu(c,o.defaultTabStopPt,{listToken:d?.cacheToken,hostedListToken:o.hostedStory?.hostedListTokenForParagraph?.(e)??"",refToken:o.refFields?.tokenForParagraph(l)??""}),N=i?.startOffset??0,L=N===0&&(i?.lineStart??0)===0,D=N===0?Bg(d,f,o.measurer,C,m,O):0,A=Ra(i?.inTableCell,o,l),_=A.anchorsWrapText&&o.pageExclusionZones?.()||[],E=o.paragraphOrderIndex?.(l)??Number.MAX_SAFE_INTEGER,j=o.paragraphOrderIndex?KS(_,E,z=>o.paragraphOrderIndex?.(z)):_,U=f.left+m+f.right,te=ji(j,t,0,{left:0,right:U}),re=fr(te),J=Mg(re,r),H=s({paragraph:e,properties:I,width:m,producer:o.producer,drawingToken:Jl(o.drawingTokenForParagraph?.(e)||o.drawingLayoutToken||"",o.inlineDrawingLayout!==void 0),projectionToken:`${o.projectionTokenForParagraph?.(e)??""}|cellEndMark:${i?.cellEndMark===true}|from:${N}|rowsClear:${A.rowsClearOutOfCellFloats}`,...J?{exclusionToken:J}:{}});o.cache&&o.onCellBreakKey?.(H);let Q=gl({compatibilityMode:o.compatibilityMode,paragraph:e,paragraphId:l,indentLeft:f.left,available:m,measurer:o.measurer,cache:o.cache,cacheKey:o.cache?H:null,formatting:c,producer:o.producer,styleCascade:o.styleCascade,tabStops:C,...o.pageContext?{pageContext:o.pageContext}:{},flow:{paragraphMarkIsCellEnd:i?.cellEndMark,firstLineOffset:D,...N===0?Lg(d,o.measurer):{},startOffset:N,marginExtent:{left:0,right:U},...o.projectLink?{projectLink:o.projectLink}:{},...o.projectFieldLink?{projectFieldLink:o.projectFieldLink}:{},showFieldCodes:o.showFieldCodes,fieldCodeRanges:o.fieldCodeRanges?.get(l),tocLinkStyleRanges:o.tocLinkStyleRanges?.get(l),suppressEmptyPlaceholderLine:o.fieldCodeRanges?.get(l)?.some(z=>z.suppressParagraph),...o.documentProperties?{documentProperties:o.documentProperties}:{},...o.bodyPageFields?{bodyPageFields:o.bodyPageFields}:{},...o.refFields?{refFields:o.refFields}:{},displayMode:o.displayMode,...o.revisionAuthorFilter?{revisionAuthorFilter:o.revisionAuthorFilter}:{},...o.noteMarks?{noteMarks:o.noteMarks}:{},...o.inlineDrawingLayout?{inlineDrawingLayout:o.inlineDrawingLayout}:{},contentLeft:0,contentRight:U,paragraphStartY:r,...yS(U,m,A),...te.length>0?{pageExclusionZones:te}:{}}}),T=i?.startOffset!==void 0?0:i?.lineStart??0,G=i?.startOffset!==void 0?i?.lineStart??0:0,ee=i?.fragmentIndex??0,K=i?.maxBottom??Number.POSITIVE_INFINITY,q=i?.includeAfter??true,se=i?.includeBottomBorder??true,ie=()=>d!==void 0||o.displayMode==="all-markup"&&pm(e,"all-markup",o.revisionAuthorFilter),Y=tw(Q,i?.hideEndMark===true&&!(o.displayMode==="all-markup"&&pm(e,"all-markup",o.revisionAuthorFilter)),o.measurer,c.lineSpacing,d),V=(i?.collapseHeight??false)&&!ie(),ce=L&&!V?gi(R.before,a):0,le=t+f.left,Pe=L&&!V?fo(v):0,fe=[],Re=r+ce+Pe,he=T,we=false,Oe=[],Te=Re;for(let z=T;z<Y.length;z+=1){let X=Y[z],ue=z===Y.length-1,oe=ue&&se&&S&&!V?fo(S):0,Se=ue&&q&&!V?R.after:0,ot=V?0:Qm(X,Te,te),mt=V?Te:Te+ot+X.height+oe+Se;if((ue&&!V?Math.max(mt,i?.cellEndMarkMinBottom??mt):mt)>K+.001)break;Oe.push(Te+ot),V||(Te+=ot+X.height);}let Ce=T+Oe.length;Ce<Y.length&&(o.compatibilityMode??0)>=15&&i?.applyWidowControl!==false&&(Ce=ul(Ce,T,Y.length,{...Eo(u),keepLines:false},i?.aloneOnPage??true));for(let z=T;z<Ce;z+=1){let X=Y[z],ue=z===Y.length-1;Re=Oe[z-T];let oe=t+f.left+(z===0&&!O?D:0),Se=Math.max(1,m-(z===0?D:0)),ot=X.spans.map(Ie=>({...Ie,range:{...Ie.range,paragraphId:l},box:{...Ie.box,x:Ie.box.x+t-(O&&z===0?D:0),y:Re}})),mt=xs(ot,o.measurer,oe,Se,p,ue,p==="center"||p==="right"?X.width:void 0,O),Bt=ot.length>0&&mt.length>0?mt[0].box.x-ot[0].box.x:p!=="left"&&p!=="both"?(()=>{let Ie=Se-X.width;return Ie<=0?0:p==="center"?Ie/2:Ie})():0,de=Object.freeze({x:t,y:r,width:n,height:Math.max(0,K-r)}),Xt=hs(X.drawings.map(Ie=>Xc(Object.freeze({...Ln(Ie,t,Re),paragraphId:l}),de)),Bt);fe.push({id:o.nextLineId(l,X.start,G+z),range:{paragraphId:l,start:X.start,end:X.end},spans:mt,...Xt.length>0?{drawings:Xt}:{},box:{x:t+f.left,y:Re,width:m,height:V?0:X.height},contentX:Bc(mt,oe+Bt),baseline:V?Math.max(0,Math.min(X.baseline,i?.collapseBandAbove??0)):X.baseline,leading:V?0:X.leading,trailingSpacing:V?0:X.trailingSpacing,...X.manualBreakAfter?{manualBreakAfter:true}:{},...X.deletedRanges?{deletedRanges:X.deletedRanges}:{},...X.anchorRevisions?{anchorRevisions:X.anchorRevisions}:{},...X.changeSites?{changeSites:X.changeSites}:{}}),V||(Re+=X.height),he=z+1,we=true;}if(!we)return {fragment:null,bottom:r,spaceAfter:a,nextLineIndex:G+T,nextStartOffset:N,complete:false,fitted:false};let ze=he>=Y.length,xe=fe[0].box.y,Xe=Re,Me=[],je,_t=xe,_e=Xe,vt=y.left?xn(y.left):0,Tt=y.right?xn(y.right):0,It=y.left?le-y.left.spacePt-vt:le,Je=y.right?le+m+y.right.spacePt+Tt:le+m,jt=Math.max(Je-It,0);if(Pe>0&&v){let z=xn(v),X=xe-v.spacePt-z;Me.push({side:"top",edge:v,box:{x:It,y:X,width:jt,height:z}}),_t=X;}if(ze&&se&&S&&!V){let z=xn(S),X=Xe+S.spacePt,ue={x:It,y:X,width:jt,height:z};k||(je={edge:S,box:ue}),Me.push({side:k?"between":"bottom",edge:S,box:ue}),_e=X+z;}let wr=ze&&q&&!V?R.after:0,an=F&&L?r:_t,kr=k&&ze?_e+wr:_e,to=Math.max(kr-an,0);if(y.left&&Me.push({side:"left",edge:y.left,box:{x:le-y.left.spacePt-vt,y:an,width:vt,height:to}}),y.right&&Me.push({side:"right",edge:y.right,box:{x:le+m+y.right.spacePt,y:an,width:Tt,height:to}}),y.bar){let z=xn(y.bar);Me.push({side:"bar",edge:y.bar,box:{x:le-y.bar.spacePt-z,y:xe,width:z,height:Math.max(Xe-xe,0)}});}let Kt=_e+wr,Ke=w===void 0?void 0:y.left||y.right?{x:It,y:_t,width:jt,height:Math.max(_e-_t,0)}:Kd(fe,le,m),vr=ze&&o.displayMode==="all-markup"?mc(e,"all-markup",o.revisionAuthorFilter):null,Tn=vr?.revisions??[],nt=vr?.formatRevision??null,Ut=o.displayMode??"proposed",no=ze?Mi(e,Ut,o.revisionAuthorFilter):[],st=L?Yu(d,o.measurer,fe[0],t,O?f.left+m+f.right:void 0,o.inlineDrawingLayout?.pictureBulletResource):void 0,rt=bo(e),W=rt?Cc(fe,Bi(rt,Ut,o.revisionAuthorFilter)):fe,M={kind:"paragraph",id:`${l}#f${ee}`,...ze?{paragraphEnd:true}:{},paragraphId:l,fragmentIndex:ee,range:{paragraphId:l,start:W[0].range.start,end:W[W.length-1].range.end},props:u,styleId:g,outlineLevel:h,alignment:p,spacing:{before:ce,after:wr},indent:f,tabStops:C,...je?{bottomBorder:je}:{},...Me.length>0?{borders:Me}:{},...w===void 0?{}:{shading:w},...Ke===void 0?{}:{shadingBox:Ke},...st?{marker:st}:{},...pc(Tn,nt),...no.length>0?{markChangeSites:no}:{},lines:W,...Uu(W,c.markRunProperties,o.styleCascade?.themeFonts),box:{x:le,y:r,width:m,height:Kt-r}};if(o.inlineDrawingLayout&&o.anchorFrameBase&&o.pageContentClip){let z=Object.freeze({x:t,y:r,width:n,height:Math.max(0,K-r)}),X=M.box,ue={paragraph:e,paragraphId:l,paragraphBox:X,lines:W};o.deferAnchoredDrawings?o.deferAnchoredDrawings({...ue,cellOriginX:t,cellContentWidth:n}):o.collectAnchoredDrawings&&o.collectAnchoredDrawings(ka({paragraph:e,paragraphId:l,paragraphBox:X,lines:W,drawingLayout:o.inlineDrawingLayout,frameBase:o.anchorFrameBase(),columnBox:o.columnBoxForParagraph?.(X)??X,cellBox:z,cellContentBox:z,pageClip:o.pageContentClip(),cellAnchorScope:A,measurer:o.measurer,...o.hostedStory?{layoutTextboxStory:o.hostedStory.layoutTextboxStoryFor}:{},...o.displayMode?{displayMode:o.displayMode}:{},...o.revisionAuthorFilter?{revisionAuthorFilter:o.revisionAuthorFilter}:{}}));}return {fragment:M,bottom:Kt,spaceAfter:wr,nextLineIndex:G+he,nextStartOffset:Y[he]?.start??Y.at(-1).end,complete:ze,fitted:true}}function Aa(e,t,n,r,o,a){let i=ok(e,t,n,r,Number.POSITIVE_INFINITY,o,a,{blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0,precededByEmittedTable:false});return {blocks:i.blocks,bottom:i.bottom}}function ok(e,t,n,r,o,a,i,l,s,d=false,c,u=false,f=true){let m=[],p=r,g=l.previousSpaceAfter,h=l.blockIndex,x=l.lineIndex,b=l.startOffset,y=l.nestedTable,w=l.paragraphFragmentIndex,P=false,R=false,O=l.precededByEmittedTable;for(;h<e.length;){let F=e[h];if(F.kind==="table"){x!==0&&(x=0),g=0;let S=$w(F,t,n,p,a+1,i,o,y);if(!S){O=false,h+=1;continue}if(!S.fragment){R=!P;break}if(m.push(S.fragment),p=S.bottom,P=true,O=true,y=S.remainder,y)break;h+=1,x=0,b=void 0;continue}if(F.kind!=="paragraph"){O=false,h+=1,x=0,b=void 0;continue}let k=d&&h===e.length-1&&O&&x0(F),v=wN(F,t,Math.max(1,n-t),p,i,g,{inTableCell:d,lineStart:x,startOffset:b,applyWidowControl:f,aloneOnPage:!P&&i.rowAtPageStart!==false,fragmentIndex:w,maxBottom:o,includeAfter:true,includeBottomBorder:true,firstInCell:h===0,lastInCell:h===e.length-1,cellEndMark:(u||c!==void 0)&&h===e.length-1,hideEndMark:u&&h===e.length-1,cellEndMarkMinBottom:h===e.length-1?c:void 0,collapseHeight:k,collapseBandAbove:p-r,...s?{tableCellStyle:s}:{},borderNeighbours:{previous:h>0?e[h-1]:void 0,next:e[h+1]}});if(!v.fitted||!v.fragment)break;if(m.push(v.fragment),p=v.bottom,P=true,v.complete)g=v.spaceAfter,O=false,h+=1,x=0,b=void 0,w=0;else return {blocks:m,bottom:p,cursor:{blockIndex:h,lineIndex:v.nextLineIndex,startOffset:v.nextStartOffset,previousSpaceAfter:0,paragraphFragmentIndex:w+1,precededByEmittedTable:O},complete:false,fitted:true,nestedSplitBlocked:false}}return {blocks:m,bottom:p,cursor:{blockIndex:h,lineIndex:x,startOffset:b,...y?{nestedTable:y}:{},previousSpaceAfter:g,paragraphFragmentIndex:w,precededByEmittedTable:O},complete:h>=e.length,fitted:P,nestedSplitBlocked:R}}function Dn(e,t,n,r,o,a,i,l=0,s,d=Number.POSITIVE_INFINITY){return $s(e,t,n,r,Number.POSITIVE_INFINITY,o,false,a,i,Ag(e),l,s,d)}function $s(e,t,n,r,o,a,i,l,s,d,c=0,u,f=o){let m=u?.detachedSpanHeightPtByCellId,p=qu(t,0,t.length),g=Number.isFinite(c)&&c>0?c/2:0,h=s.measurer.lineMetrics(Sn).height,x=e.height,b=x.rule==="exact"?x.valuePt:void 0,y=x.rule==="atLeast"?x.valuePt:void 0,w=[],{rowDeps:P,flushDeferred:R}=_w(s,w),O=a&&s.pageOccurrenceKey?{...P,nextLineId:(E,j,U)=>P.nextLineId(E,j,U,s.pageOccurrenceKey())}:P,F=b===void 0?o:Math.min(o,r+Math.max(0,b)),k=[],v=false,S=false,C=e.cells.length>0&&e.cells.every(E=>E.vMergeContinue),I=r;for(let E=0;E<e.cells.length;E+=1){let j=e.cells[E],U=d[E]??{blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0,precededByEmittedTable:false},te=j.gridSpan,re=j.gridColumn,J=n+qu(t,0,re),H=qu(t,re,Math.min(re+te,t.length))||p,Q=Math.min(g,Math.max((H-rk)/2,0)),T=J+Q,G=Math.max(H-2*Q,rk),ee=s.cellContentInsets?.get(j.id)??on(j,c===0),K=ee.top,q=m?.get(j.id),se=q!==void 0,ie=se?Math.min(f,r+q):F,Y=j.textDirection==="btLr",V=Y?T+ee.bottom:T+ee.left,ce=Y?T+Math.max(0,ie-r)-K:T+G-ee.right,le=Y?r+ee.left:r+K,Pe=Y?r+G-ee.right:ie-ee.bottom,{markFloor:fe,continuation:Re}=Zw(j,ce-V,O,{vertical:Y,continuationOnlyRow:C}),he=[],we=le,Oe=U,Te=true,Ce=false,ze=false;if(!j.vMergeContinue)if(Pe<le-.001)Te=U.blockIndex>=j.blocks.length;else {let je=ok(j.blocks,V,ce,le,Pe,l,O,U,j.styleFormatting,true,Y?void 0:r+Math.min(fe,b??1/0)-ee.bottom,j.hideEndMark,!Y&&(se||b===void 0));he=je.blocks,we=je.bottom,Oe=je.cursor,Te=je.complete,Ce=je.fitted,ze=je.nestedSplitBlocked,Ce&&(v=true),ze&&(S=true);}let xe=he.at(-1),Xe=Te&&xe?.kind==="paragraph"&&xe.box.height>0?fe:0,Me=Math.min(ie,Math.max(r+Xe,j.vMergeContinue?Re>0?r+K+Re+ee.bottom:r:Y&&Ce?r+K+(U0(he,V)-V)+ee.bottom:Ce?we+ee.bottom:r+K+h+ee.bottom));Me>I&&!se&&(I=Me),k.push({cell:j,x:T,width:G,gridColumn:re,blocks:he,contentTop:le,contentBottom:we,physicalBottom:Me,insets:{...ee,top:K},nextCursor:Oe,complete:j.vMergeContinue?true:Te,fitted:Ce,nestedSplitBlocked:ze});}I=Math.min(F,Math.max(I,r));for(let E of k){if(m?.has(E.cell.id)===true)continue;let j=E.physicalBottom;j>I&&j<=F+.001&&(I=j);}if(I<=r+.001&&k.some(E=>!E.cell.vMergeContinue&&!E.cell.hideEndMark)){let E=r;for(let j of k){if(j.cell.hideEndMark)continue;let U=r+j.insets.top+h+j.insets.bottom;U>E&&(E=U);}I=Math.min(F,E);}I=Math.min(F,I);let N=false;if(b!==void 0){let E=r+b;E<=o+.001?(I=E,N=true):I=Math.min(o,I);}else {let E=i||y===void 0?0:z0(y,k,s.cellMinimumContentInsets),j=i?0:u?.heightFloorPt??0,U=r+Math.max(E,j);U>I&&U<=o+.001&&k.every(re=>re.complete)&&(I=U);}I=Math.min(o,I);let L=Math.max(0,I-r),D=k.map(E=>{let j=E.blocks,U=N?true:E.complete;if(!E.cell.vMergeContinue&&U&&E.cell.vAlign!=="top"&&j.length>0){let te=E.contentBottom-E.contentTop,re=E.cell.textDirection==="btLr"?E.width-E.insets.left-E.insets.right-te:L-E.insets.top-E.insets.bottom-te;if(re>0){let J=E.cell.vAlign==="center"?re/2:re;j=fl(j,J);}}return {id:E.cell.id,gridColumn:E.gridColumn,...E.cell.logicalGridColumn===void 0?{}:{logicalGridColumn:E.cell.logicalGridColumn},...E.cell.gridColumnId?{gridColumnId:E.cell.gridColumnId}:{},gridSpan:E.cell.gridSpan,vMergeContinue:E.cell.vMergeContinue,...E.cell.vMergeContinue?{paintInert:true}:{},rowSpan:1,...E.cell.shading===void 0?{}:{shading:E.cell.shading},...E.cell.textDirection==="btLr"?{textDirection:"btLr"}:{},blocks:j,box:{x:E.x,y:r,width:E.width,height:L}}}),A=N||k.every(E=>E.complete)?null:k.map(E=>E.nextCursor),_=N||k.every(E=>E.complete);return R(D,r,L),{record:{id:e.id,...e.revisionKind?{revisionKind:e.revisionKind}:{},...e.revisionId!==void 0?{revisionId:e.revisionId}:{},...e.revisionAuthor!==void 0?{revisionAuthor:e.revisionAuthor}:{},...e.revisionDate!==void 0?{revisionDate:e.revisionDate}:{},...e.changeSites?{changeSites:e.changeSites}:{},rowIndex:0,isHeaderRow:e.isHeader,isHeaderRepeat:a,...i?{isContinuation:true}:{},cells:D,box:{x:n,y:r,width:p,height:L}},bottom:I,remainder:_?null:A,fitted:v||e.cells.every(E=>E.vMergeContinue)||N,nestedSplitBlocked:S}}function Vs(e,t,n,r,o,a=0,i,l){let s=0,d=l!==void 0,c={...Qt(o),...d?{}:{pageExclusionZones:void 0},nextLineId:()=>`probe-${s++}`};return Dn(e,t,n,l??0,false,r,c,a,i).record.box.height}function Kw(e,t,n,r,o,a,i,l,s){let d=u=>Dn(e,t.columnWidthsPt,n,r,i,o,a,t.cellSpacingPt,u),c=d(l);return c.remainder===null||l===void 0?c:(s(),d(void 0))}var Ku=(e,t,n,r,o,a)=>r.measuringOnly===true?null:Hw(o?{...e,rows:o}:e,t,n,r,(i,l,s,d,c,u,f,m)=>Vs(i,l,s,d,a?.(i)?gn(e,i,c):c,u,f,m),a?i=>a(i)?"outer-top":"shared-top":void 0);function Da(e,t,n,r,o,a,i,l=()=>false){let s=[],d=new Map,c=n;for(let[p,g]of e.rows.entries()){let h=p===0?gn(e,g,i):i,x=Dn(g,e.columnWidthsPt,t,c,l(g),a,h,e.cellSpacingPt);s.push(x.record),h.cellContentInsets&&d.set(x.record,h.cellContentInsets),c=x.bottom;}let u=Na(s,e,e.rows,i.borderOwnershipBudget,i.vMergeResolveBudget,void 0,void 0,void 0,d),f=qu(e.columnWidthsPt,0,e.columnWidthsPt.length),m=new Map;return {fragment:pl({kind:"table",id:`${o}#f${r}`,tableId:o,fragmentIndex:r,rows:u,box:{x:t,y:n,width:f,height:c-n}},e.columnWidthsPt,a,m),bottom:c}}var ak=new WeakMap,kN=0;function ik(e){let t=ak.get(e.content);return t===void 0&&(t=++kN,ak.set(e.content,t)),ae([String(t),e.contentNodeId,String(e.insetsEmu.top),String(e.insetsEmu.right),String(e.insetsEmu.bottom),String(e.insetsEmu.left),e.verticalAnchor,e.autofit,e.fillHex??"",e.strokeHex??"",String(e.strokeWidthEmu)])}var vN="http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",lk="/word/numbering.xml",TN=64;function sk(e){let t=0,n=0,r,o=new Map,a=new Set,i=()=>{if(r!==void 0)return r;let d=e.currentPackage(),c=null;for(let u of d.relationships.get(d.mainDocumentPart)??[]){if(u.type!==vN)continue;let f=chunkCB6RQ3GD_cjs.E(u);if(f.mode!=="Internal"||!f.target.ok)break;d.parts.has(f.target.partName)&&(c=f.target.partName);break}return c===null&&d.parts.has(lk)&&(c=lk),r=c,c},l=(d,c)=>{o.set(d,c),c.kind==="ready"&&e.rememberReadyHandle(c.validatedHandle),a.delete(d),t+=1,e.onResourcesChanged();},s=(d,c)=>{if(a.has(c))return;a.add(c);let u=n;e.lookup().resolveEmbedded(d,c).then(f=>{u===n&&l(c,f);}).catch(()=>{u===n&&l(c,Object.freeze({kind:"unrenderable",partName:null,mime:"unknown",reason:"decode-failed"}));});};return Object.freeze({resolve(d){let c=i();if(c===null)return null;let u=o.get(d);if(u)return {ownerPartName:c,resource:u};if(o.size>=TN)return null;let f=Object.freeze({kind:"pending",resourceKey:`picbullet:${c}:${d}`});return o.set(d,f),s(c,d),{ownerPartName:c,resource:f}},epoch:()=>t,pendingCount:()=>a.size,reset(){n+=1,t+=1,r=void 0,o.clear(),a.clear();}})}function dk(e){let t=e.picture;return t?.embeddedRelationshipId?`embed:${e.ownerPartName}:${t.embeddedRelationshipId}`:t?.linkedRelationshipId?`link:${e.ownerPartName}:${t.linkedRelationshipId}`:`nonpicture:${e.drawingNodeId}`}var ck=new WeakMap,Dg=new Map,IN=16,ON=32;function gk(e,t){let n=ck.get(e);if(n)return n;let r;if(e.kind==="drawing"||chunkCB6RQ3GD_cjs.nb(e)||chunkCB6RQ3GD_cjs.Ya(e))r={atoms:new Map([[e.id,e]]),visited:1,deepest:0};else if(!("children"in e)||e.children.length===0)r={atoms:Dg,visited:1,deepest:0};else if((t<2||e.children.length>=IN)&&t<ON){let o=null,a=1,i=0;for(let l of e.children){let s=gk(l,t+1);if(a+=s.visited,s.deepest+1>i&&(i=s.deepest+1),s.atoms.size>0){o||(o=new Map);for(let[d,c]of s.atoms)o.set(d,c);}}r={atoms:o??Dg,visited:a,deepest:i};}else {let o=new Map,a=0,i=0,l=[{node:e,depth:0}];for(;l.length>0;){let s=l.pop();if(a+=1,a>chunkCB6RQ3GD_cjs.lb)break;s.depth>i&&(i=s.depth);let d=s.node;if(d.kind==="drawing"||chunkCB6RQ3GD_cjs.nb(d)||chunkCB6RQ3GD_cjs.Ya(d)){o.set(d.id,d);continue}if("children"in d)for(let c=d.children.length-1;c>=0;c-=1)l.push({node:d.children[c],depth:s.depth+1});}r={atoms:o.size>0?o:Dg,visited:a,deepest:i};}return ck.set(e,r),r}function _g(e){let t=gk(e.root,0);return t.visited>chunkCB6RQ3GD_cjs.lb||t.deepest>chunkCB6RQ3GD_cjs.jb.maxDrawingDepth?null:t.atoms}var uk=new WeakMap;function hk(e,t){let n=uk.get(e.root),r=n?.get(t);if(r)return r;let o=_g(e),a=new Map,i=0;if(o)for(let l of o.keys()){let s=t.projectionForAtom?.(l)?.drawingNodeId??l;a.set(s,i),i+=1;}else for(let l of chunkCB6RQ3GD_cjs.sb(e))a.set(l.drawingNodeId,i),i+=1;return n||(n=new WeakMap,uk.set(e.root,n)),n.set(t,a),a}var jg=new Float64Array(1),Zu=new Uint32Array(jg.buffer);function FN(e){Zn[0]=2166136261,Zn[1]=268435859;let t=[];for(let n of e.components){t.push(n.fillHex??"",String(n.fillAlpha),n.strokeHex??"",String(n.strokeAlpha),String(n.strokeWidthEmu),String(n.subpathsEmu.length));let r=n.subpathsEmu;for(let a=0;a<r.length;a+=1){let i=r[a];t.push(String(i.length),n.subpathsClosed?.[a]===false?"0":"1"),Hg(i,Zn);}let o=n.arrowheadsEmu;if(t.push(String(o?.length??0)),o)for(let a of o)t.push(String(a.length)),Hg(a,Zn);}return [String(e.extentEmu.cx),String(e.extentEmu.cy),String(e.components.length),t.join(","),Zn[0].toString(36),Zn[1].toString(36)].join(";")}var Zn=new Uint32Array(2);function CN(e){return Zn[0]=2166136261,Zn[1]=268435859,Hg(e,Zn),`${Zn[0].toString(36)}:${Zn[1].toString(36)}`}function Hg(e,t){let n=t[0],r=t[1];for(let o of e)jg[0]=o.x,n=Math.imul(n^Zu[0],16777619),r=Math.imul(r^Zu[1],16777651),jg[0]=o.y,n=Math.imul(n^Zu[1],16777619),r=Math.imul(r^Zu[0],16777651);t[0]=n,t[1]=r;}function Wg(e){let t=e.position,n=e.anchor,r=e.picture,o=e.wrapGeometry,a=e.vectorShape,i={drawingNodeId:e.drawingNodeId,ownerPartName:e.ownerPartName,kind:e.kind,diagnostics:ae(e.diagnostics.map(l=>ae([l.code,l.nodeId,l.detail??""]))),relationshipId:e.relationshipId??"",docPrId:String(e.docPrId??""),name:e.name,title:e.title,description:e.description,hyperlinkHref:e.hyperlinkHref??"",hidden:String(e.hidden),extentEmu:ae([String(e.extentEmu.cx),String(e.extentEmu.cy)]),effectExtentEmu:ae([String(e.effectExtentEmu.top),String(e.effectExtentEmu.right),String(e.effectExtentEmu.bottom),String(e.effectExtentEmu.left)]),inlineDistancesEmu:ae([String(e.inlineDistancesEmu.top),String(e.inlineDistancesEmu.right),String(e.inlineDistancesEmu.bottom),String(e.inlineDistancesEmu.left)]),wrap:e.wrap,textboxStory:e.textboxStory?ik(e.textboxStory):"",compatibilityBranchNodeId:e.compatibilityBranchNodeId??"",anchor:n?ae([String(n.simplePos),String(n.relativeHeight),String(n.layoutInCell),String(n.allowOverlap),String(n.behindDocument)]):"",locks:ae([String(e.locks.select),String(e.locks.move),String(e.locks.resize),String(e.locks.changeAspect)]),effects:ae([String(e.effects.grayscale),String(e.effects.brightness),String(e.effects.contrast),String(e.effects.bilevel??"")]),picture:r?ae([String(r.crop.left),String(r.crop.top),String(r.crop.right),String(r.crop.bottom),String(r.transform.rotationDegrees),String(r.transform.flipHorizontal),String(r.transform.flipVertical),String(r.transform.offsetEmu.x),String(r.transform.offsetEmu.y),String(r.transform.extentEmu.cx),String(r.transform.extentEmu.cy),r.embeddedRelationshipId??"",r.linkedRelationshipId??"",r.presetGeometry??"",r.fillMode]):"",legacyGraphic:e.legacyGraphic?JSON.stringify(e.legacyGraphic):"",vectorShape:a?FN(a):"",wrapGeometry:o?ae([o.element,o.textSide,String(o.distancesEmu.top),String(o.distancesEmu.right),String(o.distancesEmu.bottom),String(o.distancesEmu.left),String(o.polygon.length),CN(o.polygon)]):"",position:t?ae([t.horizontal.relativeFrom,t.horizontal.align??"",String(t.horizontal.offsetEmu??""),t.vertical.relativeFrom,t.vertical.align??"",String(t.vertical.offsetEmu??""),String(t.simplePosition.xEmu),String(t.simplePosition.yEmu)]):""};return ae(Object.values(i))}function Ks(e){switch(e.kind){case "ready":return ae(["ready",e.resourceKey,e.contentId,`${e.pixelWidth}x${e.pixelHeight}`]);case "pending":return ae(["pending",e.resourceKey]);case "external":return ae(["external",e.relationshipId,e.sinkSafe?"1":"0"]);case "missing":return "missing";case "unrenderable":return `unrenderable:${e.reason}`;default:return e.kind}}var MN=1;function yk(e,t){if(e.kind==="paragraph"){for(let n of bk(e))t.push(n);return}if("children"in e)for(let n of e.children)yk(n,t);}function bk(e){if(e.kind!=="paragraph")return [];let t=[];return Kc(e,n=>t.push(n.id)),Object.freeze(t)}function BN(e){let{ownerPartName:t,part:n,pkg:r,lookup:o,onResourceSettled:a,rememberReadyHandle:i,forgetReadyHandle:l}=e,s=false,d=0,c=new Map,u=new Set,f=new Map,m=new WeakMap,p=new WeakMap,g=0,h=chunkCB6RQ3GD_cjs.mb(r,t),x=chunkCB6RQ3GD_cjs.hb(r),b=chunkCB6RQ3GD_cjs.tb(n,{resolveRelationship:h,resolveSchemeColor:x.resolveSchemeColor,resolveStyleMatrixReference:x.resolveStyleMatrixReference}),y=_g(n),w=(v,S)=>{if(s||u.has(S))return;u.add(S);let C=d;o.resolveForProjection(v).then(I=>{s||C!==d||(c.set(S,I),I.kind==="ready"&&i(I.validatedHandle),g+=1,f.set(S,g),u.delete(S),a(t));}).catch(()=>{s||C!==d||(c.set(S,Object.freeze({kind:"unrenderable",partName:null,mime:"unknown",reason:"decode-failed"})),g+=1,f.set(S,g),u.delete(S),a(t));});},P=v=>{let S=dk(v),C=c.get(S);if(C)return C;let I=v.picture?.linkedRelationshipId;if(I){let L=o.resolveLinked(t,I);return c.set(S,L),g+=1,f.set(S,g),L}let N=Object.freeze({kind:"pending",resourceKey:S});return c.set(S,N),g+=1,f.set(S,g),w(v,S),N},R=v=>b.get(v)??null,O=Object.freeze({ownerPartName:t,projectionForAtom:R,project:v=>R(v.id),resourceOf:P,pictureBulletResource:e.pictureBulletResource}),F=v=>{let S=p.get(v);if(S)return S;let C=bk(v),I=null,N=(D,A)=>{if(!(A>=MN))for(let _ of D){let E=b.get(_)?.textboxStory;if(!E)continue;let j=[];if(yk(E.content,j),j.length!==0){I||(I=[...C]);for(let U of j)I.push(U);N(j,A+1);}}};N(C,0);let L=I??C;return p.set(v,L),L};return {context:O,cacheTokenForPart:()=>`${t}|${g}|${d}|${b.size}`,drawingTokenForParagraph:v=>{let S=m.get(v);if(S?.resourceEpoch===g)return S.token;let C=F(v);if(C.length===0)return m.set(v,{resourceEpoch:g,token:""}),"";let I=C.map(L=>LN(b.get(L)??null,L,P,D=>f.get(dk(D))??0)).sort(),N=ae(I);return m.set(v,{resourceEpoch:g,token:N}),N},pendingResourceCount:()=>u.size,isCompatibleWith:(v,S)=>{let C=chunkCB6RQ3GD_cjs.hb(S);if(C.cacheToken!==x.cacheToken)return false;if(v===n)return true;let I=_g(v);if(y&&I&&y.size===I.size){let L=true;for(let[D,A]of y)if(I.get(D)!==A){L=false;break}if(L)return true}let N=chunkCB6RQ3GD_cjs.tb(v,{resolveRelationship:chunkCB6RQ3GD_cjs.mb(S,t),resolveSchemeColor:C.resolveSchemeColor,resolveStyleMatrixReference:C.resolveStyleMatrixReference});if(N.size!==b.size)return false;for(let[L,D]of b){let A=N.get(L);if(!A||Wg(A)!==Wg(D))return false}return true},dispose:()=>{s=true,d+=1;for(let v of c.values())v.kind==="ready"&&l(v.validatedHandle);c.clear(),u.clear(),f.clear();}}}var fk=0;function d6(e){let t=e.session.packageRevision(),n=e.session.currentPackage(),r=e.resourceLookup??chunkCB6RQ3GD_cjs.Hb(n,{decodePort:e.decodePort}),o=new Map,a=new Map,i=new WeakMap,l=new Map,s=new Map,d=g=>{l.set(g.resourceKey,g);let h=chunkCB6RQ3GD_cjs.vb(g);h&&s.set(g.resourceKey,h);},c=g=>{l.delete(g.resourceKey);let h=s.get(g.resourceKey);h&&(chunkCB6RQ3GD_cjs.wb(h),s.delete(g.resourceKey));},u=sk({currentPackage:()=>n,lookup:()=>r,rememberReadyHandle:d,onResourcesChanged:()=>e.onResourcesChanged()}),f=(g,h)=>{let b=h.currentPackage().parts.get(g)??a.get(g);if(b)return b;if(g===h.part().name)return h.part();throw new Error(`Missing inline drawing part ${g}`)},m=(g,h)=>{let x=o.get(g);if(x)return x;let b=f(g,h);a.set(g,b);let y=BN({ownerPartName:g,part:b,pkg:h.currentPackage(),lookup:r,onResourceSettled:()=>e.onResourcesChanged(),rememberReadyHandle:d,forgetReadyHandle:c,pictureBulletResource:u.resolve});return o.set(g,y),fk+=1,i.set(y,fk),y},p=g=>{let h=g.currentPackage();if(h.partBytes===n.partBytes&&h.relationships===n.relationships&&h.contentTypes===n.contentTypes){for(let[b,y]of o){let w=h.parts.get(b)??(b===g.part().name?g.part():void 0);if(w&&y.isCompatibleWith(w,h)){a.set(b,w);continue}y.dispose(),o.delete(b),a.delete(b);}t=g.packageRevision(),n=h;return}for(let b of o.values())b.dispose();o.clear(),a.clear();for(let b of s.values())chunkCB6RQ3GD_cjs.wb(b);s.clear(),l.clear(),u.reset(),e.resourceLookup||r.dispose(),t=g.packageRevision(),n=h,r=e.resourceLookup??chunkCB6RQ3GD_cjs.Hb(h,{decodePort:e.decodePort});};return Object.freeze({get bodyContext(){return m(e.session.part().name,e.session).context},contextForPart(g){return m(g,e.session).context},cacheTokenForPart(g){let h=m(g,e.session);return `${u.epoch()}|${i.get(h)??0}|${h.cacheTokenForPart()}`},drawingTokenForParagraph(g,h){let x=m(h,e.session);return `${u.epoch()}|${i.get(x)??0}|${x.drawingTokenForParagraph(g)}`},pendingResourceCount(){let g=u.pendingCount();for(let h of o.values())g+=h.pendingResourceCount();return g},mintValidatedBytes(g,h){return l.get(g.resourceKey)!==g?null:chunkCB6RQ3GD_cjs.ub(g,h)},sync(g){g.packageRevision()===t&&g.currentPackage()===n||p(g);},dispose(){u.reset();for(let g of o.values())g.dispose();o.clear(),a.clear();for(let g of s.values())chunkCB6RQ3GD_cjs.wb(g);s.clear(),l.clear(),e.resourceLookup||r.dispose();}})}function LN(e,t,n,r){if(!e)return ae([t,"refused"]);let o=[t,Wg(e),Ks(n(e))];return r&&o.push(String(r(e))),ae(o)}function xk(e,t,n){if(t===void 0)return pk(e,n);let r=mk.get(e);if(r&&r.epoch===t)return r.token;let o=pk(e,n);return mk.set(e,{epoch:t,token:o}),o}var mk=new WeakMap;function pk(e,t){return da(e,t)}var EN=4,zg=256;function NN(e){return `txbx-${e}`}var Sk=new WeakMap;function vk(e,t,n,r="all-markup",o){if(!t||t.nums.size===0)return;let a=Sk.get(e);if(a&&a.rawIndex===t&&a.styleCascade===n&&a.displayMode===r&&a.authorFilter===o)return a.listItems;let i=hu(t,n),l=Xp(e,r,o),s=wp(l,i,n),d=s.size>0?s:void 0;return Sk.set(e,{rawIndex:t,styleCascade:n,displayMode:r,authorFilter:o,listItems:d}),d}var Tk=2e4,Vg=Object.freeze({contents:Object.freeze([]),truncated:false}),Us=new WeakMap;function AN(e){let t=[],n=0,r=false,o=[e];for(;o.length>0;){let a=o.pop();if(n+=1,n>Tk){r=true;break}if(a.kind!=="textValue"&&a.localName==="txbxContent"){t.push(a);continue}if("children"in a)for(let i=a.children.length-1;i>=0;i-=1)o.push(a.children[i]);}return t.length>0||r?Object.freeze({contents:Object.freeze(t),truncated:r}):Vg}function DN(e){let t=Us.get(e);if(t)return t;if(e.kind!=="table"){let l=AN(e);return Us.set(e,l),l}let n=[],r=0,o=false,a=[{phase:"enter",node:e,paragraphOwners:[]}];for(;a.length>0;){let l=a.pop();if(l.phase==="exit-paragraph"){Us.has(l.scan.paragraph)||Us.set(l.scan.paragraph,l.scan.contents.length>0?Object.freeze({contents:Object.freeze(l.scan.contents),truncated:false}):Vg);continue}let s=l.node;if(r+=1,r>Tk){o=true;break}if(s.kind!=="textValue"&&s.localName==="txbxContent"){n.push(s);for(let c of l.paragraphOwners)c.contents.push(s);continue}if(!("children"in s))continue;let d=l.paragraphOwners;if(s.kind==="paragraph"){let c={paragraph:s,contents:[]};d=Object.freeze([...d,c]),a.push({phase:"exit-paragraph",scan:c});}for(let c=s.children.length-1;c>=0;c-=1)a.push({phase:"enter",node:s.children[c],paragraphOwners:d});}let i=n.length>0||o?Object.freeze({contents:Object.freeze(n),truncated:o}):Vg;return Us.set(e,i),i}var Pk=1,Rk=new WeakMap;function _N(e){let t=Rk.get(e);return t===void 0&&(t=Pk,Pk+=1,Rk.set(e,t)),t}var wk=new WeakMap;function jN(e,t,n,r="all-markup",o){if(t.nums.size===0)return "";let a=DN(e);if(a.contents.length===0&&!a.truncated)return "";let i=wk.get(e);if(i&&i.rawIndex===t&&i.styleCascade===n&&i.displayMode===r&&i.authorFilter===o)return i.token;let l=[];for(let d of a.contents){let c=vk(d,t,n,r,o);if(c)for(let[u,f]of c)l.push(ae([u,f.cacheToken]));}a.truncated&&l.push(`truncated:${_N(t)}`);let s=l.length===0?"":`|txbxlist:${ae(l)}`;return wk.set(e,{rawIndex:t,styleCascade:n,displayMode:r,authorFilter:o,token:s}),s}function Ju(e,t,n,r,o){return Object.freeze({layoutTextboxStoryFor:e,hostedListTokenForParagraph:!t||t.nums.size===0?null:a=>jN(a,t,n,r,o)})}function Qu(e,t){let n=e.textboxStory;if(!n)return null;let r=pn(e.extentEmu.cx),o=pn(e.extentEmu.cy),a=pn(n.insetsEmu.left),i=pn(n.insetsEmu.right),l=pn(n.insetsEmu.top),s=pn(n.insetsEmu.bottom),d=Math.max(1,r-a-i),c=Math.max(0,o-l-s),u=pn(n.strokeWidthEmu),f={fillHex:n.fillHex,strokeHex:n.strokeHex,strokeWidthPt:u,contentWidth:d,contentHeight:c};if((t.depth??0)>=EN)return {fragments:[],flowHeight:0,contentOffset:{x:a,y:l},...f,fallbackReason:"textbox-nesting-limit"};let p=Xp(n.content,t.displayMode,t.revisionAuthorFilter),g=vk(n.content,t.numberingIndex,t.styleCascade,t.displayMode,t.revisionAuthorFilter),h=NN(e.drawingNodeId),x=0,b=Aa(p,0,d,0,0,{measurer:t.measurer,cache:t.cache,producer:`${t.producer}${t.showFieldCodes?"|field-codes":""}|txbx:${e.drawingNodeId}`,nextLineId:()=>`${h}-line-${x++}`,styleCascade:t.styleCascade,...g?{listItems:g}:{},...t.pageContext?{pageContext:t.pageContext}:{},...t.documentProperties?{documentProperties:t.documentProperties}:{},...t.projectLink?{projectLink:t.projectLink}:{},...t.projectFieldLink?{projectFieldLink:t.projectFieldLink}:{},showFieldCodes:t.showFieldCodes,compatibilityMode:t.compatibilityMode,tableNestingOffset:1,...t.defaultTabStopPt!==void 0?{defaultTabStopPt:t.defaultTabStopPt}:{},...t.displayMode?{displayMode:t.displayMode}:{},...t.revisionAuthorFilter?{revisionAuthorFilter:t.revisionAuthorFilter}:{},...t.inlineDrawingLayout?{inlineDrawingLayout:t.inlineDrawingLayout}:{},...t.drawingTokenForParagraph?{drawingTokenForParagraph:t.drawingTokenForParagraph}:{},...t.projectionTokenForParagraph?{projectionTokenForParagraph:t.projectionTokenForParagraph}:{},...t.projectionTokenForTable?{projectionTokenForTable:t.projectionTokenForTable}:{}}),y=b.blocks,w=b.bottom,P,R=[];if(y.length>zg){kk(y.slice(zg),R),y=y.slice(0,zg);let k=y[y.length-1];w=k?k.box.y+k.box.height:0,P="textbox-fragment-limit";}if(w>c+.001){let k=y.filter(v=>v.box.y<c-.001);k.length<y.length&&(kk(y.filter(v=>v.box.y>=c-.001),R),y=k,P=P??"textbox-height-clip");}let O=Math.max(0,c-w),F=n.verticalAnchor==="center"?O/2:n.verticalAnchor==="bottom"?O:0;return {fragments:y,flowHeight:w,contentOffset:{x:a,y:l+F},...f,...P?{fallbackReason:P}:{},...R.length>0?{clippedResourceToken:ae(R)}:{}}}function kk(e,t){Ri({fragments:e},n=>{t.push(Ks(n.resource));});}function _a(e,t){return t===0?e:{...e,box:{...e.box,y:e.box.y+t},...e.shadingBox?{shadingBox:{...e.shadingBox,y:e.shadingBox.y+t}}:{},...e.bottomBorder?{bottomBorder:{...e.bottomBorder,box:{...e.bottomBorder.box,y:e.bottomBorder.box.y+t}}}:{},...e.borders?{borders:e.borders.map(n=>({...n,box:{...n.box,y:n.box.y+t}}))}:{},...e.marker?{marker:{...e.marker,box:{...e.marker.box,y:e.marker.box.y+t},...e.marker.picture?{picture:{...e.marker.picture,box:{...e.marker.picture.box,y:e.marker.picture.box.y+t}}}:{}}}:{},lines:e.lines.map(n=>({...n,box:{...n.box,y:n.box.y+t},spans:n.spans.map(r=>({...r,box:{...r.box,y:r.box.y+t}}))}))}}function Gg(e,t){return t===0?[...e]:e.map(n=>n.kind==="paragraph"?_a(n,t):{...n,box:{...n.box,y:n.box.y+t}})}function ja(e){let t=0;for(let n of e)kn(n)||(t=Math.max(t,n.box.y+n.box.height));return t}function Xs(e){let t=0;for(let n of e.fragments)t=Math.max(t,$g(n));return t}function $g(e){if(kn(e))return 0;let t=e.kind==="paragraph"?e.spacing.after:0;return e.box.y+e.box.height-t}function Ys(e){let t=Number.POSITIVE_INFINITY;for(let n of e.fragments){if(kn(n))continue;let r=n.kind==="paragraph"?n.lines[0]?.box.y??n.box.y:n.box.y;t=Math.min(t,r);}return Number.isFinite(t)?t:0}var Ik=new WeakMap;function Ha(e,t){let n=Ik.get(e.fragments);n||(n=new WeakMap,Ik.set(e.fragments,n));let r=n.get(t);if(r)return r;let o=HN(e,t);return n.set(t,o),o}function Ok(e,t){for(let n of t)if(Ha(e,n).preserveOrphanLine===true)return true;return false}function HN(e,t){let n=0,r=0,o=0,a=false,i=false;for(let c of e.fragments){if(c.kind==="paragraph"){if(!jr(c,t.paragraphId,t.atomOffset))continue;let u=WN(c,t),f=u?.top??c.box.y,m=u?.bottom??c.box.y+c.box.height;if(m>r){n=f,r=m,o=c.box.y,a=u!==null&&!kn(c);let p=Eo(c.props);i=a&&u?.index===1&&c.fragmentIndex===0&&(c.lines.length>=4||!c.paragraphEnd)&&p.widowControl&&!p.keepLines;}continue}if(zN(c,[t])){let u=c.box.y+c.box.height;u>r&&(n=c.box.y,r=u,a=false,i=false);}}let l=c=>Math.min(Math.max(0,c),e.contentBox.height),s=l(n),d=l(r);return {top:s,bottom:d,blockTop:l(o),evictable:a&&d>s,...i?{preserveOrphanLine:true}:{}}}function WN(e,t){for(let[n,r]of e.lines.entries())for(let o of Ct(r))if(Xb(o,t.paragraphId,t.atomOffset))return {top:r.box.y,bottom:r.box.y+r.box.height,index:n};return null}function zN(e,t){let n=r=>{for(let o of r){if(o.kind==="paragraph"){for(let a of t)if(jr(o,a.paragraphId,a.atomOffset))return true;continue}for(let a of o.rows)if(!a.isHeaderRepeat){for(let i of a.cells)if(n(i.blocks))return true}}return false};for(let r of e.rows)if(!r.isHeaderRepeat){for(let o of r.cells)if(n(o.blocks))return true}return false}function Kg(e){if(e.footnotes===void 0&&e.endnotes===void 0&&e.noteStream===void 0)return e;let{footnotes:t,endnotes:n,noteStream:r,...o}=e;return o}var Ug=e=>e.kind!=="textValue",Jr=(e,t)=>Ug(e)&&e.namespaceUri===chunkCB6RQ3GD_cjs.da&&e.localName===t,Fk=e=>e.children.filter(Ug),VN=(e,t)=>{let n=e.attributes.filter(r=>r.localName===t);return n.length===1&&n[0].namespaceUri===chunkCB6RQ3GD_cjs.da?n[0].value:void 0};function qs(e,{leadingTab:t=false,allowDecoration:n=false}={}){let r=0,o="",a="",i="",l=0;for(let s of Fk(e))if(!Jr(s,"pPr")){if(!Jr(s,"r"))return;for(let d of Fk(s)){if(Jr(d,"rPr"))continue;if(Jr(d,"tab")&&r===0&&!a&&!l&&t&&!d.children.length){l++;continue}if(Jr(d,"fldChar")&&!d.children.length){let u=VN(d,"fldCharType");if(r===0&&u==="begin")r=1;else if(r===1&&u==="separate"&&po(o)==="PAGE")r=2;else if(r===2&&u==="end")r=3;else return;continue}if(d.children.some(Ug))return;let c=d.children.map(u=>u.kind==="textValue"?u.value:"").join("");if(Jr(d,"instrText")&&r===1)o+=c;else if(n&&Jr(d,"t")&&r===0)a+=c;else if(n&&Jr(d,"t")&&r===3)i+=c;else if(!(Jr(d,"t")&&r===2&&/^\d*$/.test(c)))return}}return r===3&&po(o)==="PAGE"&&l===Number(t)&&(!a&&!i||a==="- "&&i===" -")?a+i:void 0}var Yg=31680/20,Lk=e=>e.kind!=="textValue",Wa=(e,t)=>Lk(e)&&e.namespaceUri===chunkCB6RQ3GD_cjs.da&&e.localName===t,yl=e=>e.children.filter(Lk),hl=(e,t)=>{let n=e.attributes.filter(r=>r.localName===t);return n.length===1&&n[0].namespaceUri===chunkCB6RQ3GD_cjs.da?n[0].value:void 0};function Xg(e,t){let n=yl(e).filter(r=>r.localName===t);return n.length===1&&Wa(n[0],t)?n[0]:void 0}function Ck(e){if(e===void 0||!/^\d{1,5}$/.test(e))return;let t=Number(e)/20;return t<=Yg?t:void 0}function Mk(e){return e.kind==="paragraph"&&e.lines.length===1&&!e.marker&&!e.borders?.length&&!e.shading&&!e.lines[0].drawings?.length&&e.spacing.before===0&&e.spacing.after===0&&e.indent.left===0&&e.indent.firstLine===0&&e.indent.hanging===0}function GN(e,t){return t.lines[0].spans.length===0&&yl(e).every(n=>Wa(n,"pPr")||Wa(n,"r")&&yl(n).every(r=>Wa(r,"rPr")))}function Bk(e,t){let n=new Set(["pStyle","tabs","jc","rPr","ind","spacing","widowControl","contextualSpacing","snapToGrid",...t?["framePr"]:[]]);return e.props.length<=64&&e.props.every(r=>n.has(r.localName))&&e.props.filter(r=>r.localName==="framePr").length===Number(t)}function Ek(e,t,n){if(!n||!Wa(e.root,"ftr")||t.blocks.length!==2||!Number.isFinite(n.pageWidth)||n.pageWidth<=0||n.pageWidth>Yg||!Number.isFinite(n.marginLeft)||n.marginLeft<0||n.marginLeft>n.pageWidth)return t;let r=yl(e.root),[o,a]=t.blocks;if(r.length!==2||r.some(P=>P.kind!=="paragraph")||!o||!a||!Mk(o)||!Mk(a)||!Bk(o,true)||!Bk(a,false)||o.paragraphId!==r[0].id||a.paragraphId!==r[1].id||o.alignment!=="left"||o.indent.right!==0||a.indent.right<0||a.indent.right>Yg)return t;let i=Xg(r[0],"pPr"),l=Xg(r[1],"pPr");if(!i||!l||yl(i).some(P=>!["framePr","pStyle","tabs","jc","rPr"].some(R=>Wa(P,R)))||yl(l).some(P=>!["pStyle","jc","ind","rPr"].some(R=>Wa(P,R)))||qs(r[0],{leadingTab:true,allowDecoration:true})===void 0||qs(r[1],{allowDecoration:true})===void 0&&!GN(r[1],a))return t;let d=Xg(i,"framePr"),c=new Set(["w","wrap","vAnchor","hAnchor","x","yAlign"]);if(!d||d.children.length||d.attributes.some(P=>P.namespaceUri!==chunkCB6RQ3GD_cjs.da||!c.has(P.localName))||hl(d,"wrap")!=="around"||hl(d,"vAnchor")!=="text"||hl(d,"hAnchor")!=="page"||hl(d,"yAlign")!=="center")return t;let u=Ck(hl(d,"w")),f=Ck(hl(d,"x"));if(u===void 0||u<=0||f===void 0||f+u>n.pageWidth)return t;let m=o.lines[0],p=1/0,g=-1/0;for(let P of m.spans)P.box.width<=0||P.text===" "||P.text.trim()===""||(p=Math.min(p,P.box.x-o.box.x),g=Math.max(g,P.box.x+P.box.width-o.box.x));if(!Number.isFinite(p)||!Number.isFinite(g)||p<0||!(g<=u||p>=u))return t;let h=_a(a,-a.box.y),x=(a.box.height-o.box.height)/2;if(x<0)return t;let b=_a(o,x-o.box.y),y=f-n.marginLeft-o.box.x,w={...b,clipToBox:true,box:{...b.box,x:o.box.x+y,width:u},lines:b.lines.map(P=>({...P,box:{...P.box,x:P.box.x+y},contentX:P.contentX+y,spans:P.spans.map(R=>({...R,box:{...R.box,x:R.box.x+y}}))}))};return {...t,blocks:[w,h],bottom:h.box.height}}var Ak=e=>e.kind!=="textValue",Gt=(e,t)=>Ak(e)&&e.namespaceUri===chunkCB6RQ3GD_cjs.da&&e.localName===t,No=(e,t)=>e.attributes.find(n=>n.namespaceUri===chunkCB6RQ3GD_cjs.da&&n.localName===t)?.value;function za(e){return e.children.filter(Ak)}function $N(e){let t=[{node:e.root,depth:0}],n=0;for(;t.length;){let{node:r,depth:o}=t.pop();if(++n>512||o>16)return false;if(r.kind==="textValue"){if(r.value.length>256)return false}else {if(n+t.length+r.children.length>512||r.attributes.length>32||r.attributes.some(a=>a.value.length>1024))return false;for(let a of r.children){if(a.kind==="textValue"&&a.value.trim()&&!Gt(r,"t")&&!Gt(r,"instrText"))return false;t.push({node:a,depth:o+1});}}}return true}function KN(e){let t="";for(let n of e.children){if(n.kind!=="textValue")return null;t+=n.value;}return t}function UN(e){let t=za(e.root);if(t.length!==2||t.some(p=>p.kind!=="paragraph"))return null;let[n,r]=t,o=za(n).find(p=>Gt(p,"pPr")),a=za(r).find(p=>Gt(p,"pPr"));if(!o||!a)return null;let i=za(o),l=za(a);if(i.filter(p=>Gt(p,"framePr")).length!==1||i.filter(p=>Gt(p,"pStyle")).length!==1||l.filter(p=>Gt(p,"pStyle")).length!==1||i.some(p=>!["pStyle","framePr","jc","rPr"].some(g=>Gt(p,g)))||l.some(p=>!["pStyle","jc","rPr"].some(g=>Gt(p,g))))return null;let s=i.find(p=>Gt(p,"pStyle")),d=l.find(p=>Gt(p,"pStyle")),c=i.find(p=>Gt(p,"framePr"));if(!No(s,"val")||No(s,"val")!==No(d,"val"))return null;let u="";for(let p of za(r))if(!Gt(p,"pPr")){if(!Gt(p,"r"))return null;for(let g of za(p)){if(Gt(g,"rPr"))continue;if(!Gt(g,"t"))return null;let h=KN(g);if(h===null)return null;u+=h;}}if(u&&!/^· {1,15}·$/.test(u))return null;let f=new Set(["wrap","vAnchor","hAnchor","xAlign","y"]);if(c.children.length||c.attributes.some(p=>p.namespaceUri!==chunkCB6RQ3GD_cjs.da||!f.has(p.localName))||No(c,"wrap")!=="around"||No(c,"vAnchor")!=="text"||No(c,"hAnchor")!=="margin"||No(c,"xAlign")!=="center")return null;let m=No(c,"y")??"0";return !["0","1"].includes(m)||qs(n)!==""?null:{first:n.id,empty:r.id,y:Number(m)/20,decoration:u}}function Nk(e){return e.kind==="paragraph"&&e.lines.length===1&&!e.marker&&!e.borders?.length&&!e.shading&&!e.lines[0].drawings?.length&&e.spacing.before===0&&e.spacing.after===0&&Object.values(e.indent).every(t=>t===0)}function Dk(e,t,n,r){if(!Gt(e.root,"ftr")||!$N(e))return t;let o=UN(e);if(!o)return Ek(e,t,r);if(t.blocks.length!==2)return t;let[a,i]=t.blocks;if(!a||!i||!Nk(a)||!Nk(i)||a.paragraphId!==o.first||i.paragraphId!==o.empty||(o.decoration?i.alignment!=="center"||i.lines[0].spans.map(g=>g.text).join("")!==o.decoration:i.lines[0].spans.length>0))return t;let l=_a(a,o.y-a.box.y),s=_a(i,-i.box.y),d=l.lines[0],c=d.spans[0]?.box.x??d.contentX,u=d.spans.at(-1),f=u?u.box.x+u.box.width:c,m=(n-(f-c))/2-c,p={...l,alignment:"center",box:{...l.box,x:c+m,width:f-c},lines:[{...d,box:{...d.box,x:c+m,width:f-c},contentX:d.contentX+m,spans:d.spans.map(g=>({...g,box:{...g.box,x:g.box.x+m}}))}]};return {...t,blocks:[p,s],bottom:Math.max(p.box.y+p.box.height,s.box.y+s.box.height)}}var XN=128,YN=3,qN=4096,_k=new WeakMap;function ZN(e){let t=_k.get(e);if(t!==void 0)return t;let n=chunkHZQFGB2X_cjs.B(chunkCB6RQ3GD_cjs.ra(e));return _k.set(e,n),n}function JN(e){let t=Math.max(1,Math.floor(e)),n=new Map;return {growTo(r){Number.isFinite(r)&&r>t&&(t=Math.floor(r));},get(r){let o=n.get(r);if(o!==void 0)return n.delete(r),n.set(r,o),o},set(r,o){for(n.has(r)&&n.delete(r),n.set(r,o);n.size>t;){let a=n.keys().next();if(a.done)break;n.delete(a.value);}},get size(){return n.size}}}function Wk(e,t,n,r,o,a,i,l,s,d=We,c,u,f,m,p,g){g?.showFieldCodes&&(r+="|field-codes");let h=g?.revisionAuthorFilter,x=Rm(e.root),b=JN(l??XN),y=An(e,d,h),w=Ui({numberingIndex:g?.numberingIndex,styleCascade:a,measurer:n},y).listItems,P=ZN(e),R,O=F=>{let k=Xr(x)||c?F:void 0,v=k?.pageNumber??m?.pageNumber??1,S=c&&k?.contentInsetTop!==void 0&&k.contentInsetBottom!==void 0&&k.storyTop!==void 0?`|hf:${k.contentInsetTop},${k.contentInsetBottom},${k.storyTop}`:"",C=jp(k,x)+(c?`|pn:${v}`:"")+S;if(C===""){if(R)return R}else {let te=b.get(C);if(te)return te;l===void 0&&Xr(x)&&b.growTo(Math.min(qN,v*YN));}let I=0,N=[],L=()=>{let te=k?.pageNumber??m?.pageNumber??1,re=m?.pageWidth??t,J=m?.pageHeight??Math.max(1,t),H=m?.marginLeft??0,Q=m?.marginRight??0,T=m?.marginTop??0,G=m?.marginBottom??0,ee=Math.max(1,J-T-G),K=k?.contentInsetTop!==void 0&&k.contentInsetBottom!==void 0&&k.storyTop!==void 0?Object.freeze({top:k.contentInsetTop-k.storyTop,height:Math.max(1,J-k.contentInsetTop-k.contentInsetBottom)}):void 0;return Object.freeze({pageNumber:te,pageWidth:re,pageHeight:J,marginLeft:H,marginRight:Q,marginBottom:G,contentInsetTop:T,contentInsetBottom:G,contentWidth:t,...K?{verticalMarginFrame:K}:{},contentHeight:ee,contentBandHeight:ee,ownerPartName:e.name,storyKind:e.name.includes("ftr")?"footer":"header"})},A=c?Ju(te=>Qu(te,{measurer:n,producer:r+C+(d===We?"":`|rev:${d}`)+(h?`|reviewers:${h.cacheKey}`:""),cache:o,styleCascade:a,...k?{pageContext:k}:{},...s!==void 0?{defaultTabStopPt:s}:{},compatibilityMode:g?.compatibilityMode,displayMode:d,...h?{revisionAuthorFilter:h}:{},...p?{documentProperties:p}:{},...g?.projectLink?{projectLink:g.projectLink}:{},...g?.projectFieldLink?{projectFieldLink:g.projectFieldLink}:{},showFieldCodes:g?.showFieldCodes,inlineDrawingLayout:c,...u?{drawingTokenForParagraph:u}:{},...g?.projectionTokenForParagraph?{projectionTokenForParagraph:g.projectionTokenForParagraph}:{},...g?.projectionTokenForTable?{projectionTokenForTable:g.projectionTokenForTable}:{},...g?.numberingIndex?{numberingIndex:g.numberingIndex}:{}}),g?.numberingIndex,a,d,h):void 0,_=Object.freeze([]),E,j=bi(g?.compatibilityMode);if(c){let te=false;for(let re=0;re<xo;re+=1){N.splice(0,N.length),I=0,E=Aa(y,0,Math.max(1,t),0,0,{measurer:n,cache:o,producer:r+C+(d===We?"":`|rev:${d}`)+(h?`|reviewers:${h.cacheKey}`:""),nextLineId:()=>`hf-${e.name}-line-${I++}`,styleCascade:a,...w?{listItems:w}:{},hostedStory:A,pageContext:k,...s!==void 0?{defaultTabStopPt:s}:{},compatibilityMode:g?.compatibilityMode,anchorsWrapText:j,tableNestingOffset:1,displayMode:d,...h?{revisionAuthorFilter:h}:{},...p?{documentProperties:p}:{},...g?.projectLink?{projectLink:g.projectLink}:{},...g?.projectFieldLink?{projectFieldLink:g.projectFieldLink}:{},showFieldCodes:g?.showFieldCodes,...g?.projectionTokenForParagraph?{projectionTokenForParagraph:g.projectionTokenForParagraph}:{},...g?.projectionTokenForTable?{projectionTokenForTable:g.projectionTokenForTable}:{},inlineDrawingLayout:c,anchorFrameBase:L,pageContentClip:()=>{let H=L();return k?.storyTop!==void 0?Object.freeze({x:-H.marginLeft,y:-k.storyTop,width:H.pageWidth,height:H.pageHeight}):wa(H)},collectAnchoredDrawings:H=>{N.push(...H);},columnBoxForParagraph:H=>Object.freeze({x:0,y:H.y,width:t,height:H.height}),pageExclusionZones:()=>_,...u?{drawingTokenForParagraph:u}:f?{drawingLayoutToken:f}:{},...g?.projectionTokenForParagraph?{projectionTokenForParagraph:g.projectionTokenForParagraph}:{},...g?.projectionTokenForTable?{projectionTokenForTable:g.projectionTokenForTable}:{}});let J=Zm(N,c,0,t);if(J.length===0){te=true,_=J;break}if(re>0&&fr(_)===fr(J)){te=true,_=J;break}_=J;}if(!te)throw new va(`header/footer exclusion reflow did not converge within ${xo} passes`)}else E=Aa(y,0,Math.max(1,t),0,0,{measurer:n,cache:o,producer:r+C+(d===We?"":`|rev:${d}`)+(h?`|reviewers:${h.cacheKey}`:""),nextLineId:()=>`hf-${e.name}-line-${I++}`,styleCascade:a,...w?{listItems:w}:{},pageContext:k,...s!==void 0?{defaultTabStopPt:s}:{},compatibilityMode:g?.compatibilityMode,tableNestingOffset:1,displayMode:d,...h?{revisionAuthorFilter:h}:{},...p?{documentProperties:p}:{},...g?.projectLink?{projectLink:g.projectLink}:{},...g?.projectFieldLink?{projectFieldLink:g.projectFieldLink}:{},showFieldCodes:g?.showFieldCodes,...g?.projectionTokenForParagraph?{projectionTokenForParagraph:g.projectionTokenForParagraph}:{},...g?.projectionTokenForTable?{projectionTokenForTable:g.projectionTokenForTable}:{}});E=Dk(e,E,t,m);let U={partName:e.name,part:e,contentKey:P,...g?.projectionEpoch?{projectionEpoch:g.projectionEpoch}:{},fragments:E.blocks,flowHeight:E.bottom,pageFieldNeeds:x,...N.length>0?{anchoredDrawings:Object.freeze([...N])}:{},withPageContext:te=>!Xr(x)&&!U.anchoredDrawings?.length?R??U:O(te)};return C===""?R=U:b.set(C,U),U};return O(i)}function Va(e,t,n){let r=n-e.box.y,o=u=>({...u,y:u.y+r}),a=u=>{if(!u)return;let f={...u,box:o(u.box),...u.anchoredDrawings?{anchoredDrawings:u.anchoredDrawings}:{}};if(!u.pageFieldProjector)return zp(u,f,r),f;let m=u.pageFieldProjector;return {...f,pageFieldProjector:p=>{let g=m(p);return {...g,box:o(g.box)}}}},i=u=>{if(u)return {...u,box:o(u.box),...u.separator?{separator:{...u.separator,box:o(u.separator.box)}}:{},notes:u.notes.map(f=>({...f,box:o(f.box)}))}},l=a(e.header),s=a(e.footer),d=i(e.footnotes),c=i(e.endnotes);return {...e,id:`page-${t}`,index:t,box:o(e.box),contentBox:o(e.contentBox),...l?{header:l}:{},...s?{footer:s}:{},...d?{footnotes:d}:{},...c?{endnotes:c}:{}}}var jk=new WeakMap;function QN(e){let t=jk.get(e);if(t!==void 0)return t;let n=[];cm(e,o=>{let a=o.marker;a&&n.push(ae([o.paragraphId,a.text,a.numFmt,String(a.level)]));});let r=n.length===0?"":`|list:${ae(n)}`;return jk.set(e,r),r}var Hk=new WeakMap;function eA(e){let t=Hk.get(e);if(t!==void 0)return t;let n=[];Ri(e,o=>{n.push(Ks(o.resource)),o.kind==="anchoredDrawing"&&o.textboxStory?.clippedResourceToken&&n.push(`clip:${o.textboxStory.clippedResourceToken}`);});let r=n.length===0?"":`!${ae(n)}`;return Hk.set(e,r),r}function qg(e,t){return ae([e,String(t.flowHeight),t.contentKey,t.projectionEpoch??"",eA(t),QN(t)])}function zk(e,t,n){if(!e)return "";let r=(o,a)=>ae([...a].map(([i,l])=>qg(`${o}${i}`,l)).sort());return `|hf:${t},${n},${e.titlePage?1:0}${e.evenAndOddHeaders?1:0};`+ae([r("h",e.headers),r("f",e.footers)])}function Vk(e){return e.root.children.some(t=>t.kind!=="textValue"&&t.namespaceUri===chunkCB6RQ3GD_cjs.da&&t.localName==="background")}function Ga(e,t,n=[]){return {id:e,kind:t==="p"?"paragraph":t==="pPr"?"paragraphProperties":"generic",namespaceUri:chunkCB6RQ3GD_cjs.da,localName:t,prefix:"w",namespaceBindings:[],attributes:[],children:n}}function tA(e,t){for(let n of e?.children??[]){if(n.kind==="textValue"||n.localName!=="style"||pr(n,"type")!=="paragraph")continue;let r=gr(n,"name");if(r&&pr(r,"val")?.toLowerCase()===t)return pr(n,"styleId")??t}return t==="header"?"Header":"Footer"}function Gk(e){let t=new WeakMap,n=new WeakMap,r=new WeakMap,o=new Map,a,i=(s,d,c)=>{if(s&&d==="footer")return s;let u=s&&t.get(s);if(u)return u;let f=e();a!==f&&(o.clear(),a=f);let m=`${d}-${c}`;if(!s&&o.has(m))return o.get(m);let p=s?.name??`/__layout/background-${m}.xml`,g=`${s?.id??p}:background-reserve`,h=new Set,x=[];if(!s){let w={...Ga(`${g}:style`,"pStyle"),kind:"generic",attributes:[{kind:"wmlVal",namespaceUri:chunkCB6RQ3GD_cjs.da,localName:"val",prefix:"w",value:tA(f,d)}]},P=Ga(`${g}:initial`,"p",[Ga(`${g}:pPr`,"pPr",[w])]);x.push(P),h.add(P.id);}if(d==="header"){let w=Ga(`${g}:terminal`,"p");h.add(w.id),x.push(Ga(`${g}:container`,"sdt",[Ga(`${g}:content`,"sdtContent",[w])]));}let b=s?.root??Ga(`${g}:root`,d==="header"?"hdr":"ftr"),y={id:s?.id??p,name:p,contentType:s?.contentType??`application/vnd.openxmlformats-officedocument.wordprocessingml.${d}+xml`,root:{...b,children:[...b.children,...x]}};return n.set(y,{original:s,reserveIds:h}),s?t.set(s,y):o.set(m,y),y},l=s=>{let d=s.part&&n.get(s.part);if(!d)return s;let c=r.get(s);if(c)return c;let u={...s,part:d.original,fragments:s.fragments.filter(f=>f.kind!=="paragraph"||!d.reserveIds.has(f.paragraphId)),withPageContext:f=>l(s.withPageContext(f))};return r.set(s,u),u};return {variantPart:i,authoredStory:l,isImplicitPart:s=>n.has(s)&&!n.get(s).original}}var nA="http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",rA="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer";function oA(e){let t=new Map;for(let n of e.relationships.get(e.mainDocumentPart)??[]){if(n.type!==nA&&n.type!==rA)continue;let r=chunkCB6RQ3GD_cjs.E(n);r.mode!=="Internal"||!r.target.ok||t.has(r.target.partName)||t.set(r.target.partName,n.id);}return t}function aA(e){return e.relationships.get(e.mainDocumentPart)??e.relationships}var iA=8;function oq(e){let{view:t,measurer:n,producer:r,cache:o,styleCascade:a,numberingIndex:i,defaultTabStopPt:l,compatibilityMode:s,displayMode:d,revisionAuthorFilter:c,inlineDrawingLayoutForPart:u,drawingLayoutTokenForPart:f,drawingTokenForParagraphForPart:m,linkProjectors:p,projectFieldLink:g,showFieldCodes:h}=e,x=Gk(()=>t.stylesRoot()),b=new WeakMap,y=new WeakMap,w=(S,C,I)=>{if(C.rId===I)return C;let N=y.get(S);N||(N=new WeakMap,y.set(S,N));let L=N.get(C),D=L?.get(I);if(D)return D;let A={...C,rId:I,withPageContext:_=>w(S,C.withPageContext(_),I)};return L||(L=new Map,N.set(C,L)),L.set(I,A),A},P=new Map,R=null,O=(S,C,I)=>(R!==C&&(R=C,P=oA(S)),P.get(I)),F=(S,C,I)=>{let N=p.epochForPart(S.name),L=c?.cacheKey??"",D=l?.(),A=s?.(),_=!x.isImplicitPart(S),E=_?f?.(S.name)??"":"",j=i?.(),U=a?.(),te=p.projectLinkForPart(S.name),re=b.get(S),J=re?.find(G=>G.width===C&&G.pageHeight===I.height&&G.marginTop===I.margin.top&&G.marginBottom===I.margin.bottom&&G.marginLeft===I.margin.left&&G.marginRight===I.margin.right);if(J&&J.producer===r&&J.projectionEpoch===N&&J.revisionAuthorFilterKey===L&&J.defaultTabStopPt===D&&J.compatibilityMode===A&&J.drawingLayoutToken===E&&J.numberingIndex===j&&J.styleCascade===U)return J.story;let H=Wk(S,C,n,r,o,U,void 0,void 0,D,d,_?u?.(S.name):void 0,_&&m?G=>m(S.name,G):void 0,void 0,{pageNumber:1,pageWidth:I.width,pageHeight:I.height,marginLeft:I.margin.left,marginRight:I.margin.right,marginTop:I.margin.top,marginBottom:I.margin.bottom},t.documentProperties(),{compatibilityMode:A,...j?{numberingIndex:j}:{},projectLink:te,...g?{projectFieldLink:g}:{},showFieldCodes:h,projectionEpoch:N,projectionTokenForParagraph:G=>p.tokenForParagraphForPart(S.name,G),projectionTokenForTable:G=>p.tokenForTableForPart(S.name,G),...c?{revisionAuthorFilter:c}:{}}),Q={width:C,pageHeight:I.height,marginTop:I.margin.top,marginBottom:I.margin.bottom,marginLeft:I.margin.left,marginRight:I.margin.right,producer:r,projectionEpoch:N,revisionAuthorFilterKey:L,defaultTabStopPt:D,compatibilityMode:A,drawingLayoutToken:E,numberingIndex:j,styleCascade:U,story:H},T=(re??[]).filter(G=>G!==J);return T.push(Q),T.length>iA&&T.shift(),b.set(S,T),H},k=(S,C,I,N,L)=>{let D=Vk(t.part());if(!I||!D&&I.headers.size===0&&I.footers.size===0)return;let A=L.width-L.margin.left-L.margin.right,_=(E,j,U)=>{let te=new Map,re=D?["default","first","even"]:[...E.keys()];for(let J of re){let H=E.get(J),Q=D?x.variantPart(H,U,J):H,T=j?.get(J),G=T?.partName===Q.name?T.rId:O(S,C,Q.name),ee=x.authoredStory(F(Q,A,L));te.set(J,G?w(C,ee,G):ee);}return te};return {titlePage:I.titlePage,evenAndOddHeaders:I.evenAndOddHeaders,headers:_(I.headers,N?.headers,"header"),footers:_(I.footers,N?.footers,"footer")}},v=()=>{let S=t.currentPackage(),C=aA(S),I=Fp(t.part(),d,c),N=OR(t.part(),d,c),L=t.headerFooterPartsBySection(),D=t.headerFooterResolutionBySection?.()??chunkCB6RQ3GD_cjs.Ud(S);return I.map((A,_)=>{let E=N[_]??_;return k(S,C,L[E],D[E],Io(A.properties))})};return {sectionFurniture:v,furniture(){let S=v();return S[S.length-1]}}}function lA(e,t,n,r,o){let a=An(e,r,o);if(!n)return t.map(l=>{if(l.blockStart===l.blockEndExclusive)return;let s=a[l.blockEndExclusive-1];return s?.kind==="paragraph"?Xn(s):void 0});let i=[];for(let l of a){if(l.kind!=="paragraph")continue;let s=Xn(l);s&&i.push(s);}for(;i.length<t.length;)i.push(void 0);return i}function fq(e){let t=e.view.currentPackage(),n=chunkCB6RQ3GD_cjs.$f(t,"footnote"),r=chunkCB6RQ3GD_cjs.$f(t,"endnote");if(!n&&!r)return;let o=e.view.part();if(chunkCB6RQ3GD_cjs.ag(o).length===0)return;let a=chunkCB6RQ3GD_cjs.Qf(t),i=chunkCB6RQ3GD_cjs.Rf(a),l=chunkCB6RQ3GD_cjs.Sf(a),s=chunkCB6RQ3GD_cjs.Tf(void 0,i),d=chunkCB6RQ3GD_cjs.Uf(void 0,l),c=Cp(o,e.displayMode,e.revisionAuthorFilter),u=lA(o,c.sections,c.truncated,e.displayMode,e.revisionAuthorFilter),f=c.sections.map((h,x)=>chunkCB6RQ3GD_cjs.Tf(chunkCB6RQ3GD_cjs.Of(u[x]),i)),m=c.sections.map((h,x)=>chunkCB6RQ3GD_cjs.Uf(chunkCB6RQ3GD_cjs.Pf(u[x]),l)),p=e.inlineDrawingLayoutForPart?h=>{let x=e.inlineDrawingLayoutForPart(h);if(x)return {inlineDrawingLayout:x,...e.drawingTokenForParagraphForPart?{drawingTokenForParagraph:b=>e.drawingTokenForParagraphForPart(h,b)}:{}}}:void 0,g=[n,r];return {footnotesPart:n,endnotesPart:r,footnotePropsBySection:f.length>0?f:[s],endnotePropsBySection:m.length>0?m:[d],documentFootnoteProps:s,documentEndnoteProps:d,measurer:e.measurer,producer:e.producer,cache:e.cache,styleCascade:e.styleCascade?.(),numberingIndex:e.numberingIndex?.(),defaultTabStopPt:e.defaultTabStopPt,compatibilityMode:e.compatibilityMode,displayMode:e.displayMode,revisionAuthorFilter:e.revisionAuthorFilter,projectLinkForPart:e.linkProjectors.projectLinkForPart,linkRelsEpoch:g.map(h=>h?e.linkProjectors.epochForPart(h.name):"").join("\0"),...e.projectFieldLink?{projectFieldLink:e.projectFieldLink}:{},showFieldCodes:e.showFieldCodes,projectionTokenForParagraphForPart:e.linkProjectors.tokenForParagraphForPart,projectionTokenForTableForPart:e.linkProjectors.tokenForTableForPart,projectionEpoch:g.map(h=>h?e.linkProjectors.epochForPart(h.name):"").join("\0"),...p?{drawingsForPart:p}:{},...p&&e.drawingLayoutEpochForPart?{drawingLayoutEpoch:g.map(h=>h?e.drawingLayoutEpochForPart(h.name):"").join("\0")}:{}}}function mq(e,t,n){return chunkCB6RQ3GD_cjs.Ff(e.currentPackage(),t,n)}var sA=new TextEncoder,dA=512,Ao=Object.freeze({title:"field-projected",creator:"field-projected",subject:"field-projected",keywords:"field-projected",lastModifiedBy:"field-projected",description:"field-projected",company:"reserved",manager:"reserved"}),cA=Object.freeze({title:Ao.title,creator:Ao.creator,subject:Ao.subject,keywords:Ao.keywords,lastModifiedBy:Ao.lastModifiedBy,description:Ao.description}),Zg=Object.freeze(Object.keys(cA)),$k=Object.freeze({title:"doc-property:title",creator:"doc-property:creator",subject:"doc-property:subject",keywords:"doc-property:keywords",lastModifiedBy:"doc-property:lastModifiedBy",description:"doc-property:description"}),Kk=new WeakMap;function uA(e){let t=Kk.get(e);if(t)return t;let n=[],r=[e],o=[e];for(;o.length>0;){let s=o.pop();if(s!==e&&s.kind==="paragraph"&&r.push(s),s.kind==="hyperlink"&&n.push(s),s.kind!=="textValue")for(let d=s.children.length-1;d>=0;d-=1)o.push(s.children[d]);}let a=new Set;for(let s of r){let d=Iu(s,[],void 0,void 0,void 0,void 0,"all-markup",void 0,void 0,void 0,void 0,$k),c=new Set(d.map(u=>u.text));for(let u of Zg)c.has($k[u])&&a.add(u);}let i=Zg.filter(s=>a.has(s)),l=Object.freeze({links:Object.freeze(n),documentProperties:Object.freeze(i)});return Kk.set(e,l),l}function Uk(e){return chunkCB6RQ3GD_cjs.a(sA.encode(ae(e)))}var Xk=new WeakMap;function Yk(e,t){let n=new WeakMap,r=new WeakMap,o=l=>{let s=e.packageRevision(),d=e.currentPackage(),c=Xk.get(e);(!c||c.revision!==s||c.pkg!==d)&&(c={revision:s,pkg:d,epochs:new Map},Xk.set(e,c));let u=c.epochs.get(l);if(u!==void 0)return u;let f=["story-projection-part:v1",l];f.push(ae(Object.keys(Ao).map(g=>`${g}:${Ao[g]}`)));for(let g of d.relationships.get(l)??[])f.push(ae([g.id,g.type,g.rawTarget,g.targetMode,String(g.order)]));for(let g of d.externalTargets)g.ownerPart===l&&f.push(ae([g.id,g.type,g.rawTarget,g.sinkSafe?"1":"0"]));let m=e.documentProperties();for(let g of Zg)f.push(ae([g,m[g]??""]));let p=`story-projection-part:${Uk(f)}`;return c.epochs.size<dA&&c.epochs.set(l,p),p},a=(l,s)=>{let d=uA(s);if(d.links.length===0&&d.documentProperties.length===0)return "";let c=t(l),u=o(l),f=n.get(s),m=f?.get(c);if(m?.epoch===u)return m.token;let p=e.documentProperties(),g=["story-projection:v1"];for(let b of d.links){let y=c(b);g.push(y?ae([y.id,y.kind,y.href??"",y.anchor??"",y.tooltip??""]):"no-link");}for(let b of d.documentProperties)g.push(ae([b,p[b]??""]));let h=`story-projection:${Uk(g)}`,x=f??new WeakMap;return x.set(c,{epoch:u,token:h}),f||n.set(s,x),h};return Object.freeze({tokenForParagraphForPart:a,tokenForTableForPart:(l,s)=>{let d=t(l),c=o(l),u=r.get(s),f=u?.get(d);if(f?.epoch===c)return f.token;let m=da(s,g=>a(l,g)),p=u??new WeakMap;return p.set(d,{epoch:c,token:m}),u||r.set(s,p),m},epochForPart:o})}var fA=512;function qk(e){return t=>{if(t.kind==="textValue")return null;let n=chunkCB6RQ3GD_cjs.fb(t,e);return {id:t.id,kind:n.kind,href:n.href,...n.anchor!==void 0?{anchor:n.anchor}:{},...n.tooltip!==void 0?{tooltip:n.tooltip}:{}}}}function Pq(e){let t=qk(o=>e.relationshipTarget(o)),n=new Map,r=o=>{let a=n.get(o);if(a)return a;let i=qk(l=>chunkCB6RQ3GD_cjs.Ff(e.currentPackage(),o,l));return n.size<fA&&n.set(o,i),i};return Object.freeze({projectLink:t,projectLinkForPart:r,...Yk(e,r)})}var mA=4096;function pA(e){let t=e.tooltip!==null?{tooltip:chunkCB6RQ3GD_cjs.q(e.tooltip)}:{};if(e.target!==null){let o=chunkCB6RQ3GD_cjs.L(e.target);if(o.ok&&o.href.length>0&&chunkCB6RQ3GD_cjs.x(o.href).ok){let i=e.anchor!==null&&!o.href.includes("#")?chunkCB6RQ3GD_cjs.L(chunkCB6RQ3GD_cjs.q(e.anchor)):null;return {kind:"external",href:i&&i.ok&&i.href.length>0?`${o.href}#${i.href}`:o.href,authored:e.target,...e.anchor!==null?{anchor:chunkCB6RQ3GD_cjs.q(e.anchor)}:{},...t}}if(e.anchor===null)return null}if(e.anchor===null)return null;let n=chunkCB6RQ3GD_cjs.q(e.anchor),r=chunkCB6RQ3GD_cjs.L(n);return {kind:"internal",href:r.ok&&r.href.length>0?`#${r.href}`:null,authored:e.anchor,anchor:n,...t}}function vq(){let e=new Map,t=new Map,n=0;return {project(r){let o=pA(r);if(!o)return null;let a=`${r.target??""}\0${r.anchor??""}\0${r.tooltip??""}`,i=e.get(a);if(i===void 0){if(e.size>=mA)return null;i=`field-hyperlink:${++n}`,e.set(a,i),t.set(i,Object.freeze({id:i,paragraphId:"",start:0,end:0,text:"",kind:o.kind,href:o.href,authored:o.authored,...o.anchor!==void 0?{anchor:o.anchor}:{},...o.tooltip!==void 0?{tooltip:o.tooltip}:{}}));}return {id:i,kind:o.kind,href:o.href,...o.anchor!==void 0?{anchor:o.anchor}:{},...o.tooltip!==void 0?{tooltip:o.tooltip}:{}}},linkById:r=>t.get(r)??null,clear(){e.clear(),t.clear();}}}var Zk=new WeakMap;function tv(e){let t=Zk.get(e);if(t!==void 0)return t;let n=gA(e);return Zk.set(e,n),n}function gA(e){let t=(n,r)=>{if(n.kind==="textValue"||r>=chunkCB6RQ3GD_cjs.la||chunkCB6RQ3GD_cjs.fe(n)||chunkCB6RQ3GD_cjs.de(n)!==null)return false;if(n.kind==="text"||n.localName==="t"){for(let a of n.children)if(a.kind==="textValue"&&a.value.trim().length>0)return true;return false}let o=chunkCB6RQ3GD_cjs.ma(n,r);for(let a of n.children)if(a.kind!=="textValue"&&t(a,o))return true;return false};for(let n of e.children)if(n.kind!=="textValue"&&t(n,0))return true;return false}function nv(e,t){for(let n of t.resultParagraphIds){let r=chunkCB6RQ3GD_cjs.Ha(e,n);if(!(!r||r.kind==="textValue"||r.kind!=="paragraph")&&tv(r))return true}return false}var Jk=new WeakMap,Qk=new WeakMap,ev=new WeakMap;function rv(e){let t=Jk.get(e);if(t)return t;let n=new Set;for(let r of chunkCB6RQ3GD_cjs.Ge(e)){let o=chunkCB6RQ3GD_cjs.Ha(e,r.beginParagraphId);o!==null&&o.kind!=="textValue"&&o.kind==="paragraph"&&tv(o)||n.add(r.beginParagraphId),n.add(r.endParagraphId);}return Jk.set(e,n),n}function ov(e){let t=Qk.get(e);if(t)return t;let n=new Set;for(let r of chunkCB6RQ3GD_cjs.Ge(e))nv(e,r)||n.add(r.beginParagraphId);return Qk.set(e,n),n}function av(e){let t=ev.get(e);if(t)return t;let n=new Set;for(let r of chunkCB6RQ3GD_cjs.Ge(e))if(!nv(e,r))for(let o of r.resultParagraphIds)n.add(o);return ev.set(e,n),n}function Zs(e){return e?ra(e.val,e.widthPt):0}function ef(e,t,n){return e==="page"?t?.spacePt??0:Math.max(0,n-(t?.spacePt??0)-Zs(t))}function tf(e,t,n){if(!e||e.display==="firstPage"&&!n||e.display==="notFirstPage"&&n)return;let r=Zs(e.top),o=Zs(e.left),a=Zs(e.bottom),i=Zs(e.right),l=ef(e.offsetFrom,e.top,t.margin.top),s=ef(e.offsetFrom,e.left,t.margin.left),d=t.height-ef(e.offsetFrom,e.bottom,t.margin.bottom),c=t.width-ef(e.offsetFrom,e.right,t.margin.right),u=c-s,f=d-l;if(u<=0||f<=0)return;let m=[];if(e.top&&m.push({side:"top",edge:e.top,box:{x:s,y:l,width:u,height:r}}),e.bottom&&m.push({side:"bottom",edge:e.bottom,box:{x:s,y:d-a,width:u,height:a}}),e.left&&m.push({side:"left",edge:e.left,box:{x:s,y:l,width:o,height:f}}),e.right&&m.push({side:"right",edge:e.right,box:{x:c-i,y:l,width:i,height:f}}),m.length!==0)return {zOrder:e.zOrder,display:e.display,strokes:m}}function iv(e){if(e.clipToBox)return e.box;let t=e.box.x,n=t+e.box.width,r=o=>{t=Math.min(t,o.x),n=Math.max(n,o.x+o.width);};e.marker&&r(e.marker.box);for(let o of e.lines){for(let a of o.spans)r(a.box);for(let a of o.drawings??[])r(a);}return t===e.box.x&&n===e.box.x+e.box.width?e.box:{...e.box,x:t,width:n-t}}var hA="http://schemas.openxmlformats.org/wordprocessingml/2006/main",yA="http://schemas.microsoft.com/office/word/2010/wordml",bA="http://schemas.microsoft.com/office/word/2012/wordml";function xA(e){if(e.kind!=="textValue"){for(let t of e.attributes)if(t.localName==="val"&&t.namespaceUri===hA)return t.value}}function bl(e){for(let t of e.children)if(t.kind!=="textValue"&&(t.kind==="contentControlProperties"||t.localName==="sdtPr"))return t}function $a(e,t){if(e){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}}function Qr(e,t){let n=$a(e,t);return n?xA(n):void 0}function Js(e){return e==="sdtLocked"||e==="contentLocked"||e==="sdtContentLocked"?e:"unlocked"}function nf(e){if(!e)return "richText";for(let t of e.children){if(t.kind==="textValue")continue;let n=t.kind,r=t.localName,o=t.namespaceUri;if(n==="contentControlDropDownList"||r==="dropDownList")return "dropdown";if(n==="contentControlComboBox"||r==="comboBox")return "comboBox";if(n==="contentControlDate"||r==="date")return "date";if(r==="picture")return "picture";if(r==="docPartList")return "buildingBlockGallery";if(n==="contentControlText"||r==="text")return "plainText";if(r==="richText")return "richText";if(n==="contentControlCheckbox"||r==="checkbox"&&o===yA)return "checkbox";if(r==="repeatingSection"&&o===bA)return "repeatingSection"}return "richText"}function lv(e){let t=(n,r)=>{for(let o of n)if(o.kind!=="textValue"){if(o.kind==="tableRow")return "row";if(o.kind==="tableCell")return "cell";if(o.kind==="paragraph"||o.kind==="table")return "block";if(chunkCB6RQ3GD_cjs.Jd(o)&&r<chunkCB6RQ3GD_cjs.Id){let a=t(chunkCB6RQ3GD_cjs.Md(o),r+1);if(a)return a}}return null};return t(chunkCB6RQ3GD_cjs.Md(e),0)??"inline"}function xl(e){let t=sv.get(e);if(t!==void 0)return t;let n=SA(e);return rf!==null&&rf===n?n=rf:rf=n,sv.set(e,n),n}var rf=null,sv=new WeakMap,dv=new WeakMap;function SA(e){let t=(n,r)=>{if(n.kind==="textValue")return "";let o=n.kind==="paragraph"||n.kind==="table"||chunkCB6RQ3GD_cjs.Jd(n);if(o){let i=dv.get(n);if(i!==void 0&&i.depth===r)return i.token}let a;if(chunkCB6RQ3GD_cjs.Jd(n)){if(r>=chunkCB6RQ3GD_cjs.Id)return "";let i=bl(n),l=[n.id,Qr(i,"alias")??"",Qr(i,"tag")??"",Js(Qr(i,"lock")),nf(i),$a(i,"showingPlcHdr")?"1":"0",$a(i,"dataBinding")?"1":"0"].join(":"),s=chunkCB6RQ3GD_cjs.Md(n).map(d=>t(d,r+1)).filter(d=>d.length>0);a=[l,...s].join("|");}else a=n.children.map(i=>t(i,r)).filter(i=>i.length>0).join("|");return o&&dv.set(n,{depth:r,token:a}),a};return t(e.root,0)}function uv(e,t){let n=[t],r=new Set([t]);for(let o of e.pages)for(let a of [o.header,o.footer])!a?.part||r.has(a.part)||(r.add(a.part),n.push(a.part));return n}var Jg=new WeakMap,cv=new WeakMap;function fv(e){if(e.length===1)return Qs(e[0]);let t=Jg.get(e[0]);if(t&&of(t.parts,e))return t.index;let n=e.map(d=>Qs(d)),r=cv.get(n[0]);if(r&&of(r.indexes,n))return Jg.set(e[0],{parts:e,index:r.index}),r.index;let o=[],a=new Set,i=new Set;for(let d of n){for(let c of d.controls)o.push(c);for(let c of d.neededBlockIds)a.add(c);for(let c of d.neededParagraphIds)i.add(c);}let l=`${[...a].sort().join(",")};${[...i].sort().join(",")}`,s={controls:o,neededBlockIds:a,neededParagraphIds:i,neededToken:l};return cv.set(n[0],{indexes:n,index:s}),Jg.set(e[0],{parts:e,index:s}),s}var Qg=new WeakMap;function of(e,t){if(e.length!==t.length)return false;for(let n=0;n<e.length;n+=1)if(e[n]!==t[n])return false;return true}var mv=new WeakMap;function PA(e){for(let t of chunkCB6RQ3GD_cjs.Dd(e))if(t.root.kind!=="textValue"){for(let n of t.root.children)if(n.kind!=="textValue")return n}return null}function Qs(e){let t=Qg.get(e);if(t!==void 0)return t;let n=wA(e),r=PA(e),o=r?mv.get(r):void 0;if(o&&of(o.lists,n))return Qg.set(e,o.index),o.index;let a=[];for(let d of n)for(let c of d)a.push(c);let i=new Set,l=new Set;for(let d of a){for(let c of d.blockIds)i.add(c);d.paragraphId!==void 0&&l.add(d.paragraphId);}let s={controls:a,neededBlockIds:i,neededParagraphIds:l,neededToken:`${[...i].sort().join(",")};${[...l].sort().join(",")}`};return r&&mv.set(r,{lists:n,index:s}),Qg.set(e,s),s}var RA=Object.freeze([]);function wA(e){let t=[],n=(i,l,s=0)=>{for(let d of i){if(d.kind==="paragraph"||d.kind==="table"){l.push(d.id);continue}let c=chunkCB6RQ3GD_cjs.Cd(d);if(c!==null&&s<chunkCB6RQ3GD_cjs.Id){n(c,l,s+1);continue}(d.kind==="tableRow"||d.kind==="tableCell")&&n(d.children,l,s);}},r=(i,l,s,d,c)=>{if(!(d>=chunkCB6RQ3GD_cjs.la)){for(let u of i)if(!(u.kind==="textValue"||u.kind==="paragraphProperties")){if(chunkCB6RQ3GD_cjs.Jd(u)){let f=chunkCB6RQ3GD_cjs.Ze(l).spanOf(u);if(!f)continue;let m=bl(u),p=Js(Qr(m,"lock")),g=[...c,p];r(chunkCB6RQ3GD_cjs.Md(u),l,s+1,d+1,g),t.push({control:u,nestingDepth:s,lockStack:g,level:"inline",paragraphId:l.id,range:f,blockIds:[]});continue}chunkCB6RQ3GD_cjs.na(u)&&r(u.children,l,s,d+1,c);}}},o=(i,l,s,d=0)=>{for(let c of i){if(c.kind==="textValue")continue;if(c.kind==="paragraph"){r(c.children,c,l,0,s);continue}if(c.kind==="table"){for(let x of c.children)x.kind==="tableRow"&&o([x],l,s,d);continue}if(c.kind==="tableRow"){for(let x of c.children)x.kind==="tableCell"?o(x.children,l,s,d):chunkCB6RQ3GD_cjs.Jd(x)&&o([x],l,s,d);continue}if(!chunkCB6RQ3GD_cjs.Jd(c)){let x=chunkCB6RQ3GD_cjs.Cd(c);x!==null&&d<chunkCB6RQ3GD_cjs.Id&&o(x,l,s,d+1);continue}if(l>=chunkCB6RQ3GD_cjs.Id)continue;let u=bl(c),f=Js(Qr(u,"lock")),m=[...s,f],p=lv(c),g=chunkCB6RQ3GD_cjs.Cd(c)??[];if(p==="inline"){o(g,l+1,m,d+1);continue}let h=[];n(g,h),t.push({control:c,nestingDepth:l,lockStack:m,level:p,blockIds:h}),o(g,l+1,m,d+1);}},a=[];for(let i of chunkCB6RQ3GD_cjs.Dd(e))if(i.root.kind!=="textValue")for(let l of i.root.children){if(l.kind==="textValue")continue;let s=pv.get(l);if(s!==void 0){a.push(s);continue}let d=t.length;o([l],0,[]);let c=t.length===d?RA:Object.freeze(t.slice(d));pv.set(l,c),a.push(c);}return a}var pv=new WeakMap,eh=1<<20,gv=new WeakMap,hv=null,yv=0;function kA(e){return e!==hv&&(hv=e,yv+=1),yv}function vA(e,t,n,r){let o=gv.get(e);if(o!==void 0&&o.neededStamp===n)return o;let a=[],i=[],l=e.index*eh,s=0,d=0,c=m=>s===0&&d===0?m:{x:m.x+s,y:m.y+d,width:m.width,height:m.height},u=(m,p)=>{if(p.kind==="paragraph"){t.neededBlockIds.has(p.paragraphId)&&(a.push({pageIndex:m,blockId:p.paragraphId,box:c(iv(p))}));let g=t.neededParagraphIds.has(p.paragraphId);for(let h of p.lines){let x=l;if(l=Math.min(l+1,e.index*eh+eh-1),!g)continue;let b=Math.max(0,h.box.height-h.leading-(h.trailingSpacing??0)),y=[];for(let w of h.spans)y.push({pageIndex:m,paragraphId:w.range.paragraphId,start:w.range.start,end:w.range.end,line:x,box:{x:w.box.x+s,y:w.box.y+h.leading+d,width:w.box.width,height:b}});for(let w of h.drawings??[])y.push({pageIndex:m,paragraphId:w.paragraphId,start:w.start,end:w.start+1,line:x,box:c(w.paintBounds)});h.drawings?.length&&y.sort((w,P)=>w.start-P.start||w.end-P.end);for(let w of y)i.push(w);}return}t.neededBlockIds.has(p.tableId)&&(a.push({pageIndex:m,blockId:p.tableId,box:c(p.box)}));for(let g of p.rows)if(!g.isHeaderRepeat)for(let h of g.cells)for(let x of h.blocks)u(m,x);};for(let m of e.fragments)u(e.index,m);for(let m of [e.header,e.footer])if(m){s=m.box.x-e.contentBox.x,d=m.box.y-e.contentBox.y;for(let p of m.fragments)u(e.index,p);}s=0,d=0;let f={neededStamp:n,blocks:a,spans:i};return gv.set(e,f),f}function TA(e,t,n){let r=kA(t.neededToken),o=new Map,a=new Map,i=new Set;for(let l of e.pages){let s=vA(l,t,r);for(let d of s.blocks){let c=o.get(d.blockId);c?c.push(d):o.set(d.blockId,[d]);}for(let d of s.spans){let c=a.get(d.paragraphId);c?(d.start<c[c.length-1].start&&i.add(d.paragraphId),c.push(d)):a.set(d.paragraphId,[d]);}}return {blocksById:o,spansByParagraph:a,repeatedParagraphs:i}}function IA(e,t,n){let r=new Map,o=new Set;for(let a of e)if(!o.has(a)){o.add(a);for(let i of t.blocksById.get(a)??[]){let l=r.get(i.pageIndex);l?l.push(i.box):r.set(i.pageIndex,[i.box]);}}return [...r.entries()].sort(([a],[i])=>a-i).flatMap(([a,i])=>{let l=ac(i);return l?[{pageIndex:a,box:l}]:[]})}function OA(e,t,n,r){let o=n.spansByParagraph.get(e)??[],a=new Map,i=n.repeatedParagraphs.has(e),l=0,s=o.length;for(;!i&&l<s;){let d=l+(s-l>>1);(t.start===t.end?o[d].end<t.start:o[d].end<=t.start)?l=d+1:s=d;}i&&(l=0);for(let d=l;d<o.length;d+=1){let c=o[d];if(c.end<=t.start)continue;if(c.start>=t.end){if(i)continue;break}let u=a.get(c.line);u?u.boxes.push(c.box):a.set(c.line,{pageIndex:c.pageIndex,boxes:[c.box]});}if(a.size===0&&t.start===t.end){let d=[],c=new Set;for(let u=l;u<o.length;u+=1){let f=o[u];if(f.start>t.start){if(i)continue;break}if(t.start>f.end||c.has(f.pageIndex))continue;if(c.add(f.pageIndex),f.start===f.end&&f.start===t.start&&f.box.width>0){if(d.push({pageIndex:f.pageIndex,box:f.box}),!i)break;continue}let m=f.start===f.end?f.box.x:f.box.x+f.box.width*(t.start-f.start)/Math.max(1,f.end-f.start);if(d.push({pageIndex:f.pageIndex,box:{x:m,y:f.box.y,width:0,height:f.box.height}}),!i)break}if(d.length>0)return d}return [...a.entries()].sort(([d],[c])=>d-c).flatMap(([,d])=>{let c=ac(d.boxes);return c?[{pageIndex:d.pageIndex,box:c}]:[]})}var bv=new WeakMap;function FA(e){let t=bv.get(e);if(t!==void 0)return t;let n=bl(e),r=Qr(n,"alias"),o=Qr(n,"tag"),a={...r!==void 0?{alias:r}:{},...o!==void 0?{tag:o}:{},controlType:nf(n),placeholder:$a(n,"showingPlcHdr")!==void 0,bound:$a(n,"dataBinding")!==void 0};return bv.set(e,a),a}function CA(e,t,n){let r=e.level==="inline"&&e.paragraphId&&e.range?OA(e.paragraphId,e.range,t):IA(e.blockIds,t);return {...rh(e),fragments:r}}function MA(e,t){if(e.length!==t.length)return false;for(let n=0;n<e.length;n+=1){let r=e[n],o=t[n];if(r!==o&&(r.pageIndex!==o.pageIndex||r.box.x!==o.box.x||r.box.y!==o.box.y||r.box.width!==o.box.width||r.box.height!==o.box.height))return false}return true}function BA(e,t){return e.id===t.id&&e.alias===t.alias&&e.tag===t.tag&&e.controlType===t.controlType&&e.lock===t.lock&&e.effectiveLock===t.effectiveLock&&e.placeholder===t.placeholder&&e.bound===t.bound&&e.nestingDepth===t.nestingDepth&&e.level===t.level&&MA(e.fragments,t.fragments)}function Sl(e,t){if(!e)return t.length===0;if(e.length!==t.length)return false;for(let n=0;n<e.length;n+=1)if(!BA(e[n],t[n]))return false;return true}function th(e,t){return {...t,revision:e.revision,pages:e.pages}}var xv=new WeakMap;function nh(e,t,n=xl(t),r){let o=uv(e,t);if(o.length>1){let f=o.map(m=>xl(m));n=f.some(m=>m!=="")?f.join("|"):"";}if(n===""){let f=e.pages.some(p=>p.contentControls!==void 0&&p.contentControls.length>0);if(!f&&e.controlContextToken===n&&Sl(e.contentControls,[]))return e;let m=f?e.pages.map(p=>p.contentControls!==void 0&&p.contentControls.length>0?{...p,contentControls:[]}:p):e.pages;return {...e,pages:m,contentControls:[],controlContextToken:n}}let a=fv(o),i=TA(e,a),l=a.controls.map(f=>CA(f,i)),s=new Map;for(let f of l)for(let m of f.fragments){let p=s.get(m.pageIndex),g={...f,fragments:[m]};p?p.push(g):s.set(m.pageIndex,[g]);}if(e.controlContextToken===n&&Sl(e.contentControls,l)&&e.pages.every(f=>Sl(f.contentControls,s.get(f.index)??[])))return e;let d=false,c=e.pages.map(f=>{let m=s.get(f.index)??[];if(Sl(f.contentControls,m)||m.length===0&&!f.contentControls)return f;d=true;let p=xv.get(f);if(p&&Sl(p.controls,m))return p.wrapped;let g={...f,contentControls:m};return xv.set(f,{controls:m,wrapped:g}),g}),u=d?c:e.pages;return u===e.pages&&e.controlContextToken===n&&Sl(e.contentControls,l)?e:{...e,pages:u,contentControls:l,controlContextToken:n}}function Zq(e,t){return Qs(e).controls.filter(r=>t?r.paragraphId!==void 0?t.has(r.paragraphId):Sv(r.control).some(o=>t.has(o)):true).map(rh)}function Sv(e){let t=[],n=r=>{for(let o of r)if(o.kind!=="textValue"){if(o.kind==="paragraph"){t.push(o.id);continue}if(chunkCB6RQ3GD_cjs.Jd(o)){n(chunkCB6RQ3GD_cjs.Md(o));continue}n(o.children);}};return n(chunkCB6RQ3GD_cjs.Md(e)),t}function Jq(e,t){let n=null;for(let r of Qs(e).controls)(r.paragraphId===t||r.blockIds.includes(t)||Sv(r.control).includes(t))&&(!n||r.nestingDepth>=n.nestingDepth)&&(n=r);return n?rh(n):null}function rh(e){let t=FA(e.control);return {id:e.control.id,...t.alias!==void 0?{alias:t.alias}:{},...t.tag!==void 0?{tag:t.tag}:{},controlType:t.controlType,lock:e.lockStack[e.lockStack.length-1]??"unlocked",effectiveLock:fm(e.lockStack),placeholder:t.placeholder,bound:t.bound,nestingDepth:e.nestingDepth,level:e.level,fragments:[]}}var LA=.25,EA=.5;function Pv(e,t,n){let r=n?n.offsetPt:e.style.fontSizePt*LA,o=n?n.thicknessPt:EA;return {x:e.box.x,y:Math.max(t.box.y,t.box.y+t.baseline-xi(e.style)-r),width:e.box.width,height:o}}var ed=chunkCB6RQ3GD_cjs.wd,af=512,Rv=6;function NA(e,t){return `note-${e}-${t}`}function cZ(e){if(!e)return [];let t=[];for(let n of chunkCB6RQ3GD_cjs.yd(e.root)){if(t.length>=ed)break;chunkCB6RQ3GD_cjs.pd(n)&&t.push(n);}return t}function AA(e,t){if(e){for(let n of chunkCB6RQ3GD_cjs.yd(e.root))if(chunkCB6RQ3GD_cjs.od(n)===t)return n}}function kv(e,t,n){let r=chunkCB6RQ3GD_cjs.md(e),o=chunkCB6RQ3GD_cjs.nd(e);if(!r||o===null)return null;let a=chunkCB6RQ3GD_cjs.dd(r,o),i=n.displayMode??We,l=Yi(e,i,n.revisionAuthorFilter),s=NA(r,o),d=0,c=Math.max(1,t),u=n.maxFlowHeightPt??Number.POSITIVE_INFINITY,f=chunkCB6RQ3GD_cjs.od(e)==="separator"||chunkCB6RQ3GD_cjs.od(e)==="continuationSeparator",m={...n.noteMarks??{marks:new Map},activeNoteKey:a,...f?{measureSeparatorMarkers:true}:{}},p=n.ownerPartName?n.drawingsForPart?.(n.ownerPartName):void 0,g=(n.ownerPartName?n.projectLinkForPart?.(n.ownerPartName):void 0)??n.projectLink,h=Ui({numberingIndex:n.numberingIndex,styleCascade:n.styleCascade,measurer:n.measurer},l).listItems,x=Aa(l,0,c,0,0,{measurer:n.measurer,cache:n.cache,producer:n.producer+(f?"|separator-metrics":"")+(n.showFieldCodes?"|field-codes":"")+(i===We?"":`|rev:${i}`)+(n.revisionAuthorFilter?`|reviewers:${n.revisionAuthorFilter.cacheKey}`:"")+`|${a}`,nextLineId:()=>`${s}-line-${d++}`,styleCascade:n.styleCascade,...h?{listItems:h}:{},noteMarks:m,...g?{projectLink:g}:{},...n.projectFieldLink?{projectFieldLink:n.projectFieldLink}:{},showFieldCodes:n.showFieldCodes,...n.documentProperties?{documentProperties:n.documentProperties}:{},...n.ownerPartName&&n.projectionTokenForParagraphForPart?{projectionTokenForParagraph:P=>n.projectionTokenForParagraphForPart(n.ownerPartName,P)}:{},...n.ownerPartName&&n.projectionTokenForTableForPart?{projectionTokenForTable:P=>n.projectionTokenForTableForPart(n.ownerPartName,P)}:{},...n.refFields?{refFields:n.refFields}:{},displayMode:i,compatibilityMode:n.compatibilityMode,tableNestingOffset:1,...n.defaultTabStopPt!==void 0?{defaultTabStopPt:n.defaultTabStopPt}:{},...p?{inlineDrawingLayout:p.inlineDrawingLayout,...p.drawingTokenForParagraph?{drawingTokenForParagraph:p.drawingTokenForParagraph}:{}}:{},...n.revisionAuthorFilter?{revisionAuthorFilter:n.revisionAuthorFilter}:{}}),b=x.blocks,y=x.bottom,w;if(b.length>af){b=b.slice(0,af);let P=b[b.length-1];y=P?P.box.y+P.box.height:0,w="note-fragment-limit";}if(y>u){let P=[],R=0;for(let O of b){let F=O.box.y+O.box.height;if(F>u+.001&&P.length>0)break;P.push(O),R=F;}b=P,y=R,w=w??"note-height-cap";}return {noteKind:r,noteId:o,scopeId:a,noteType:chunkCB6RQ3GD_cjs.od(e),fragments:b,flowHeight:y,...w?{fallbackReason:w}:{}}}function wv(e,t,n,r){if(!e)return null;let o=chunkCB6RQ3GD_cjs.Ad(e.root,t);return o?kv(o,n,{...r,ownerPartName:e.name}):null}function td(e,t,n,r,o){if(!o)return wv(e,t,n,r);let a=`${e?.name??"none"}\0${t}\0${n}`,i=o.get(a);if(i!==void 0)return i;let l=wv(e,t,n,r);return o.set(a,l),l}function DA(e,t){return "single"}function _A(e,t,n){let r=Yi(e,t,n);if(r.length===0)return true;for(let o of r){if(o.kind!=="paragraph")return false;let a=o.children.find(i=>i.kind==="paragraphProperties");if(Object.keys(qd(a)).length>0||!jA(o))return false}return true}function jA(e){for(let t of e.children)if(t.kind!=="textValue"&&t.kind!=="paragraphProperties"){if(t.kind==="run"){if(!HA(t))return false;continue}return false}return true}function HA(e){for(let t of e.children)if(t.kind!=="textValue"&&t.kind!=="runProperties"&&!(chunkCB6RQ3GD_cjs.kd(t)||chunkCB6RQ3GD_cjs.ld(t)||chunkCB6RQ3GD_cjs.jd(t))){if(t.kind==="text"){if(t.children.map(r=>r.value).join("").trim().length>0)return false;continue}return false}return true}function oh(e,t,n,r,o,a){let i=DA(),l=AA(e,t);if(l){let s=kv(l,n,{...r,...e?{ownerPartName:e.name}:{}});if(s){let d=_A(l,r.displayMode,r.revisionAuthorFilter),c=s.flowHeight,u,f,m=false;if(d){let g=s.fragments.filter(O=>O.kind==="paragraph"),h=g.flatMap(O=>O.lines.flatMap(F=>F.spans.filter(k=>k.noteSeparator).map(k=>({line:F,span:k}))));m=h.length===1;let x=g.at(-1),y=Yi(l,r.displayMode,r.revisionAuthorFilter).at(-1),w=y?.kind==="paragraph"?y.children.find(O=>O.kind==="paragraphProperties"):void 0,P=w?.kind==="paragraphProperties"&&w.children.some(O=>O.localName==="pStyle"||O.localName==="spacing"&&O.attributes.some(F=>F.localName==="after"));c-=P?0:x?.spacing.after??0;let R=h[0];R&&(f=R.span.style.color,u=Pv(R.span,R.line,r.measurer.strikeoutMetrics?.(R.span.style)));}let p=a??Number.POSITIVE_INFINITY;return c>p+.001?{kind:t,fragments:[],flowHeight:Rv,synthetic:true,ruleStyle:i,fallbackReason:"note-separator-height-cap"}:{kind:t,fragments:d&&m?[]:s.fragments,flowHeight:c,synthetic:false,...d&&m?{ruleStyle:i,...u?{ruleBox:u}:{},...f!==void 0?{ruleColor:f}:{}}:{}}}}return {kind:t,fragments:[],flowHeight:Rv,synthetic:true,ruleStyle:i}}function WA(e,t,n="separator"){let r=Math.max(1,Math.min(e,n==="continuationSeparator"?e:144));return {x:0,y:Math.max(0,(t-.5)/2),width:r,height:.5}}function ah(e,t,n,r){if(e.ruleStyle!==void 0||e.synthetic){let o=e.ruleBox??WA(n,e.flowHeight,e.kind),a=e.ruleStyle==="double"?2.25:e.ruleBox?0:.5;return {x:t+o.x,y:r+o.y,width:o.width,height:Math.max(o.height,a)}}return {x:t,y:r,width:n,height:e.flowHeight}}var vv=new WeakMap,Tv=new WeakMap;function zA(e,t,n){let r=e.map(o=>`${o.blockStart}-${o.blockEndExclusive}`).join(",");return `${t};${n?.cacheKey??""};${r}`}function ih(e){let t=bo(e);return t?t.members.map(n=>n.id):[e.id]}function lh(e){let t=Tv.get(e);if(t)return t;let n=[],r=(o,a)=>{if(!(a>32||o.kind==="textValue")){if(o.kind==="paragraph"){n.push(o.id);return}for(let i of o.children)r(i,a+1);}};return r(e,0),Tv.set(e,n),n}function VA(e,t){if(e.kind!==t.kind)return false;let n=e.kind==="paragraph"?ih(e):lh(e),r=t.kind==="paragraph"?ih(t):lh(t);return n.length===r.length&&n.every((o,a)=>o===r[a])}function Iv(e,t,n,r,o){let a=An(e,n,r),i=zA(t,n,r),l=o?vv.get(o):void 0;if(l?.boundsFingerprint===i&&l.blocks.length===a.length&&a.every((d,c)=>d===l.blocks[c]||VA(d,l.blocks[c])))return l.blocks=a,l.map;let s=new Map;for(let d=0;d<t.length;d+=1){let c=t[d];for(let u=c.blockStart;u<c.blockEndExclusive;u+=1){let f=a[u];if(!f)continue;let m=f.kind==="paragraph"?ih(f):lh(f);for(let p of m)s.set(p,d);}}return o&&vv.set(o,{blocks:a,boundsFingerprint:i,map:s}),s}function Pl(e,t){return Math.max(0,e-14-t)}var nd=.5,Ov=2*nd;function lf(e,t,n){if(!e)return "";let r=[];for(let[o,a]of e){let i=o-t;i>=0&&i<n&&r.push([i,a]);}return r.length===0?"":(r.sort((o,a)=>o[0]-a[0]),`|nr:${r.map(([o,a])=>`${o}=${a}`).join(",")}`)}function Fv(e,t,n){n<=0||e.set(t,Math.max(e.get(t)??0,n));}function Do(e){let t=new Map;for(let[n,r]of e)r>0&&t.set(n,r);return t}function rd(e,t){let n=Do(e),r=Do(t);if(n.size!==r.size)return false;for(let[o,a]of n)if((r.get(o)??0)!==a)return false;return true}function Cv(e,t){let n=Do(e);for(let[r,o]of t)o<=0||n.set(r,Math.max(n.get(r)??0,o));return n}function _o(e){return [...Do(e)].map(([t,n])=>`${t}=${n}`).sort().join(",")}function GA(e,t,n){if(e.lines.length===0)return e.box.y+e.box.height<=t+.001?{head:e,tail:null}:{head:null,tail:e};let r=0;for(;r<e.lines.length;r+=1){let h=e.lines[r];if(h.box.y+h.box.height>t+.001)break}if(r>=e.lines.length)return {head:e,tail:null};if(n&&(r=ul(r,0,e.lines.length,Eo(e.props),false)),r===0)return {head:null,tail:e};let o=e.lines.slice(0,r),a=e.lines.slice(r),i=o[o.length-1],l=e.box.y,s=i.box.y+i.box.height,d=e.borders?.filter(h=>h.side!=="bottom"),c={...e,range:{paragraphId:e.paragraphId,start:o[0].range.start,end:i.range.end},spacing:{before:e.spacing.before,after:0},lines:o,box:{...e.box,height:Math.max(0,s-l)},...d&&d.length>0?{borders:d}:{borders:void 0},bottomBorder:void 0,...e.shadingBox?{shadingBox:{...e.shadingBox,height:Math.max(0,s-e.shadingBox.y)}}:{}},u=a[a.length-1],f=a[0].box.y,m=u.box.y+u.box.height,p=e.borders?.filter(h=>h.side!=="top"),g={...e,id:`${e.paragraphId}#f${e.fragmentIndex+1}`,fragmentIndex:e.fragmentIndex+1,range:{paragraphId:e.paragraphId,start:a[0].range.start,end:a[a.length-1].range.end},spacing:{before:0,after:e.spacing.after},lines:a,box:{x:e.box.x,y:f,width:e.box.width,height:Math.max(0,m-f)},marker:void 0,...p&&p.length>0?{borders:p}:{borders:void 0},...e.bottomBorder?{bottomBorder:e.bottomBorder}:{},...e.shadingBox?{shadingBox:{x:e.shadingBox.x,y:f,width:e.shadingBox.width,height:Math.max(0,m-f)}}:{}};return {head:c,tail:g}}function od(e,t,n){if(e.flowHeight<=t+.001)return {head:e.fragments,headHeight:e.flowHeight,tail:[],tailHeight:0};if(t<=.001)return {head:[],headHeight:0,tail:e.fragments,tailHeight:e.flowHeight};let r=[],o=0,a=0,i=null;for(let u=0;u<e.fragments.length&&u<af;u+=1){let f=e.fragments[u],m=f.box.y+f.box.height;if(m<=t+.001){r.push(f),o=m,a=u+1;continue}if(f.kind==="paragraph"){let p=GA(f,t,(n?.fullContentHeight??t)>t+.001);if(p.head)r.push(p.head),o=p.head.box.y+p.head.box.height,i=p.tail,a=u+1;else {let g=n?.fullContentHeight??t,x=f.lines[0]?.box.height??f.box.height;if(r.length===0&&t>=g-.001&&x>g+.001){n?.reasons?.push("note-line-exceeds-page"),a=u+1,i=null;let b=e.fragments.slice(a),y=b[0]?.box.y??0;return {head:[],headHeight:0,tail:Gg(b,-y),tailHeight:Math.max(0,e.flowHeight-y)}}a=u,i=null;}break}a=u;break}let l=[...i?[i]:[],...e.fragments.slice(a)];if(l.length===0)return {head:r,headHeight:o,tail:[],tailHeight:0};let s=l[0]?.box.y??0,d=Gg(l,-s),c=ja(d);return {head:r,headHeight:o,tail:d,tailHeight:c}}var $A=Zr+1;function Mv(e){let{bodyPage:t,nextPage:n}=e;if(!n||n.contentBox.width!==t.contentBox.width||n.contentBox.height!==t.contentBox.height)return 0;let r=n,o=e.pageBottomRefsOf(r);if(o.length===0)return 0;let a,i;for(let S of o){let C=Ha(r,S);C.bottom<=C.top||(!a||C.bottom<a.bottom-.001)&&(a=C,i=S);}if(!a||!i)return 0;let l=a.bottom-a.top,s=Xs(t),d=t.contentBox.height;if(d-s<l-.001)return 0;let c,u=0;for(let S of r.fragments){if(S.kind!=="paragraph"||u>=$A)return 0;if(u+=1,jr(S,i.paragraphId,i.atomOffset)){c=S;break}}if(!c||e.allowOrphanDeferral&&Ha(r,i).preserveOrphanLine&&ja(t.fragments)+a.bottom-Ys(r)+e.existingAreaHeight<=d+.001)return 0;let f=o.filter(S=>jr(c,S.paragraphId,S.atomOffset));if(f.length===0)return 0;let m=Ys(r),p=Math.max(0,a.bottom-m),g=Math.max(0,$g(c)-m),h=t.contentBox.width,x=Pl(d,e.plainSeparatorHeight),b=0;for(let S of f){let C=td(e.footnotesPart,S.noteId,h,e.opts,e.noteLayoutCache);if(!C)continue;let I=Ha(r,S),N=I.evictable?I.bottom-I.blockTop:0;C.flowHeight>x-N+.001||(b+=C.flowHeight);}if(b<=0)return 0;let y=(e.existingAreaHeight>0?e.existingAreaHeight:e.plainSeparatorHeight)+b,w=Math.max(0,d-s-nd);if(!(s+p+l+y<=d+.001))return w;if(s+g+l+y<=d+.001)return 0;let{usedReservePt:O}=e;if(O===void 0)return 0;let F=Math.max(0,d-O-s),k=p+l>F+.001,v=Math.abs(O-w)<=Ov;return k&&!v?0:w}var Bv=Object.freeze({footnotesPart:"identity-check",endnotesPart:"identity-check",footnotePropsBySection:"content-fingerprint",endnotePropsBySection:"content-fingerprint",documentFootnoteProps:"content-fingerprint",documentEndnoteProps:"content-fingerprint",measurer:"identity-check",producer:"content-fingerprint",displayMode:"content-fingerprint",revisionAuthorFilter:"content-fingerprint",cache:"identity-check",styleCascade:"identity-check",numberingIndex:"identity-check",defaultTabStopPt:"content-fingerprint",compatibilityMode:"content-fingerprint",projectLink:"pass-projector",projectLinkForPart:"relationship-epoch-guarded",linkRelsEpoch:"content-fingerprint",projectionTokenForParagraphForPart:"projection-epoch-guarded",projectionTokenForTableForPart:"projection-epoch-guarded",projectionEpoch:"content-fingerprint",showFieldCodes:"content-fingerprint",projectFieldLink:"pass-projector",documentProperties:"content-fingerprint",refFields:"content-fingerprint",drawingsForPart:"drawing-epoch-guarded",drawingLayoutEpoch:"content-fingerprint"});function sh(e,t){for(let n of Object.keys(Bv))if(Bv[n]===t&&e[n]!==void 0)return true;return false}function sf(e){return `${e.pos},${e.numFmt},${e.numStart},${e.numRestart}`}function Lv(e){return sh(e,"drawing-epoch-guarded")&&e.drawingLayoutEpoch===void 0||sh(e,"relationship-epoch-guarded")&&e.linkRelsEpoch===void 0||sh(e,"projection-epoch-guarded")&&e.projectionEpoch===void 0?null:[e.producer,e.displayMode??We,e.revisionAuthorFilter?.cacheKey??"",e.showFieldCodes??false,e.defaultTabStopPt??"",e.compatibilityMode??"",e.drawingLayoutEpoch??"",e.linkRelsEpoch??"",e.projectionEpoch??"",e.refFields?.valuesToken??"",e.documentProperties?JSON.stringify(e.documentProperties):"",sf(e.documentFootnoteProps),sf(e.documentEndnoteProps),e.footnotePropsBySection.map(sf).join(";"),e.endnotePropsBySection.map(sf).join(";")].join("\0")}var KA=.4;function dh(e,t,n){return e&&chunkCB6RQ3GD_cjs.Rd(e,"first")&&n===0?"first":e&&chunkCB6RQ3GD_cjs.Rd(e,"even")&&(t+n+1)%2===0?"even":"default"}function Ev(e){let{furniture:t,pageHeight:n,marginTop:r,marginBottom:o}=e,a=n*KA,i=new Map,l=(s,d,c)=>Math.min(a,Math.max(c,d?s+d.flowHeight:0));return s=>{if(s===0&&e.continuedPageInsets)return e.continuedPageInsets;let d=dh(t,e.pageIndexStart,s),c=i.get(d);if(c)return c;let u=l(e.headerDistance,t?.headers.get(d),r),f=l(e.footerDistance,t?.footers.get(d),o),m=Object.freeze({top:u,bottom:f,height:n-u-f});return i.set(d,m),m}}var ch=new WeakMap;function FZ(e){ch.delete(e);}function ad(e,t){ch.set(e,t);}function uh(e,t,n,r){return ch.get(e)?.(t,n,r)}var Ka=24;function Nv(e){let{furniture:t,geometry:n,headerDistance:r,footerDistance:o,pageIndexStart:a}=e,i=c=>({x:0,y:c*(n.height+Ka),width:n.width,height:n.height}),l=c=>dh(t,a,c),s=(c,u,f)=>{if(!t)return;let m=l(u),p=(c==="header"?t.headers:t.footers).get(m);if(!p)return;let g=F=>{let k=c==="header"?f.y+r:f.y+n.height-o-F.flowHeight;return {kind:c,variant:m,partName:F.partName,...F.part?{part:F.part}:{},...F.rId?{rId:F.rId}:{},box:{x:f.x+n.margin.left,y:k,width:e.contentWidth,height:F.flowHeight},fragments:F.fragments,...F.anchoredDrawings?{anchoredDrawings:F.anchoredDrawings}:{}}},h=a+u+1,x={pageNumber:h,pageCount:Math.max(h,e.pageCount()+1),sectionPageCount:u+1},b=e.insetsFor(u),y=F=>{let k=p;for(let v=0;v<8;v+=1){let S=c==="header"?r:n.height-o-k.flowHeight,C={...F,contentInsetTop:b.top,contentInsetBottom:b.bottom,storyTop:S},I=p.withPageContext(C);if(Math.abs(I.flowHeight-k.flowHeight)<=.001)return I;k=I;}throw new Error("header/footer attached-page anchor layout did not converge")},w=p.pageFieldNeeds,R=Xr(w)||(p.anchoredDrawings?.length??0)>0?y(x):p,O=g(R);return Xr(w)?{...O,pageFieldProjector:F=>g(y(F))}:O};return {pageBox:i,variantFor:l,furnitureFor:s,overflowShellAt:(c,u)=>{let f=c-a,m=s("header",f,u),p=s("footer",f,u),g=tf(e.pageBorders,n,f===0);return {insets:e.insetsFor(f),...m?{header:m}:{},...p?{footer:p}:{},...g?{pageBorders:g}:{}}}}}function Av(e){let t=0;return e.map((n,r)=>{let o=`page-${r}`,i=n.index===r&&n.id===o&&n.box.y===t?n:Va(n,r,t);return t+=n.box.height+Ka,i})}function Dv(e){if(e.kind!=="tableRow")return null;let t=e.children.find(a=>a.namespaceUri===chunkCB6RQ3GD_cjs.da&&a.localName==="trPr");if(!t)return null;let n=null;for(let a of t.children)if(a.kind!=="textValue"&&a.namespaceUri===chunkCB6RQ3GD_cjs.da&&!(a.localName!=="ins"&&a.localName!=="del")){n=a;break}if(!n)return null;let r=a=>n.attributes.find(i=>i.namespaceUri===chunkCB6RQ3GD_cjs.da&&i.localName===a)?.value,o=r("date");return {kind:n.localName==="ins"?"insert":"delete",id:r("id")??"",author:r("author")??"",...o===void 0?{}:{date:o},nodeId:n.id}}function _v(e,t,n){let r=[];for(let o of e){let a=qt(o)?tn(o):Dv(o);if(a){if(r.length>=uc)return false;r=fn(r,a);}}return De(r,t,n)}function jv(e){let t=[];for(let n of e){let r=qt(n)?tn(n):Dv(n);r&&t.push([r.kind,r.nodeId,r.author]);}return JSON.stringify(t)}function df(e){return `${e.noteKind}|${e.noteId}|${e.paragraphId}|${e.customMarkFollows?1:0}|${e.sectionIndex}`}function Hv(e){return e.map(t=>`${df(t)}|${t.atomOffset}`).join(";")}function fh(e){return e.map(df).join(";")}function mh(e,t){if(e===t)return true;if(e.length!==t.length)return false;for(let n=0;n<e.length;n+=1){let r=e[n],o=t[n];if(r.atomOffset!==o.atomOffset||df(r)!==df(o))return false}return true}var Qv=64,eT=8,zv=Qv+2*eT,tT=4096,UA=256,Vv=12,Gv=new WeakMap;function XA(e,t,n){if(!e)return {memo:null,allHits:t,reused:false};let r=Lv(n);if(r===null)return e.notes=null,{memo:null,allHits:t,reused:false};let o=Hv(t),a=null,i=e.notes;if(i){let s=Gv.get(i),d=i.inputFingerprint===r&&s!==void 0&&s.footnotesPart===n.footnotesPart&&s.endnotesPart===n.endnotesPart&&s.measurer===n.measurer&&s.cache===n.cache&&s.styleCascade===n.styleCascade&&s.numberingIndex===n.numberingIndex;if(d&&i.hitsFingerprint===o)return {memo:i,allHits:i.allHits,reused:true};if(a=d?fh(t):null,a!==null&&i.identityFingerprint===a)return i.hitsFingerprint=o,i.allHits=t,{memo:i,allHits:t,reused:true}}let l={hitsFingerprint:o,identityFingerprint:a??fh(t),inputFingerprint:r,allHits:t,provisionalMarks:gT(t,n),finalMarks:null,settledReserves:null,reflowSpent:null,pageAttach:new WeakMap,pageReserve:new WeakMap};return Gv.set(l,{footnotesPart:n.footnotesPart,endnotesPart:n.endnotesPart,measurer:n.measurer,cache:n.cache,styleCascade:n.styleCascade,numberingIndex:n.numberingIndex}),e.notes=l,{memo:l,allHits:t,reused:false}}function c3(e,t){return t>=e.range.start&&t<e.range.end}var $v=new WeakMap;function nT(e){let t=$v.get(e);if(t)return t;let n=[],r=o=>{for(let a of o){if(a.kind==="paragraph"){n.push(a);continue}for(let i of a.rows)if(!i.isHeaderRepeat)for(let l of i.cells)r(l.blocks);}};return r(e),$v.set(e,n),n}var Kv=new WeakMap;function rT(e){let t=Kv.get(e);if(t)return t;let n=new Map;for(let r of e){let o=n.get(r.paragraphId);o?o.push(r):n.set(r.paragraphId,[r]);}return Kv.set(e,n),n}var Uv=new WeakMap;function cf(e,t,n){let r=nT(e.fragments);if(!n)return t.filter(l=>r.some(s=>jr(s,l.paragraphId,l.atomOffset)));let o=Uv.get(e.fragments);if(o&&o.refIndex===n)return o.result;let a=[],i=new Set;for(let l of r)for(let s of vi(l)){let d=n.get(s);if(d)for(let c of d)i.has(c)||jr(l,s,c.atomOffset)&&(i.add(c),a.push(c));}return Uv.set(e.fragments,{refIndex:n,result:a}),a}function oT(){let e=new Map;return {get(t,n,r,o,a,i,l){let d=`${t?.name??"none"}\0${o}\0${n}\0${r}\0${a}`,c=e.get(d);if(c)return c;let u=oh(t,n,r,i,o,a);return e.set(d,u),u.fallbackReason&&l.push(u.fallbackReason),u}}}function aT(e){return e==="sectEnd"||e==="docEnd"}var Xv=new WeakMap;function iT(e){let t=Xv.get(e);return t||(t=new Map,Xv.set(e,t)),t}function lT(e,t,n,r,o,a,i,l){if(e)return e.get(t,n,r,o,a,i,l);let s=oh(t,n,r,i,o,a);return s.fallbackReason&&l.push(s.fallbackReason),s}function YA(e,t){let n=[];for(let r of e){if(n.length>=ed)break;n.push({...r,sectionIndex:t.get(r.paragraphId)??0});}return n}function Ua(e,t){return e.footnotePropsBySection[t]??e.footnotePropsBySection[0]??e.documentFootnoteProps}function ph(e,t){return e.endnotePropsBySection[t]??e.endnotePropsBySection[0]??e.documentEndnoteProps}function gh(e,t){return {measurer:e.measurer,producer:e.producer,displayMode:e.displayMode,cache:e.cache,styleCascade:e.styleCascade,numberingIndex:e.numberingIndex,defaultTabStopPt:e.defaultTabStopPt,compatibilityMode:e.compatibilityMode,revisionAuthorFilter:e.revisionAuthorFilter,projectLink:e.projectLink,projectLinkForPart:e.projectLinkForPart,projectFieldLink:e.projectFieldLink,showFieldCodes:e.showFieldCodes,documentProperties:e.documentProperties,refFields:e.refFields,noteMarks:t,drawingsForPart:e.drawingsForPart,projectionTokenForParagraphForPart:e.projectionTokenForParagraphForPart,projectionTokenForTableForPart:e.projectionTokenForTableForPart}}function qA(e,t){let n="FootnoteReference";if(!t)return {...Sn,verticalAlign:"superscript"};let r=$i([],[{localName:"rStyle",attributes:{val:n}}],t);return Ne(r,t.themeFonts)}function ZA(e,t,n,r){let o=new Set;for(let c of e.values())c&&c.length>0&&o.add(c);let a=Math.max(t.footnotePropsBySection.length,t.endnotePropsBySection.length,1,...n.map(c=>c.sectionIndex+1),...r.map(c=>c.sectionIndex+1)),i=false;for(let c=0;c<a;c+=1){let u=Ua(t,c);if(u.numRestart==="eachPage"){i=true;for(let m=0;m<Vv;m+=1){let p=ir(u.numFmt,u.numStart+m);p.length>0&&o.add(p);}}let f=ph(t,c);if(f.numRestart==="eachPage"){i=true;for(let m=0;m<Vv;m+=1){let p=ir(f.numFmt,f.numStart+m);p.length>0&&o.add(p);}}}if(!i||o.size===0)return;let l=qA("footnote",t.styleCascade),s,d=-1;for(let c of o){let u=t.measurer.measure(c,l);(u>d+.001||Math.abs(u-d)<=.001&&c.length>(s?.length??0))&&(s=c,d=u);}return s}function sT(e,t,n){let r=Xi("footnote",e,l=>Ua(n,l)),o=Xi("endnote",t,l=>ph(n,l)),a=new Map;for(let l of r)a.set(tl("footnote",l.noteId),l.mark);for(let l of o)a.set(tl("endnote",l.noteId),l.mark);let i=ZA(a,n,e,t);return {marks:a,...i?{reservedMarkText:i}:{}}}function JA(e,t){if(t.marks.size===0)return e;let n=false,r=e.pages.map(o=>{if(!QA(o.fragments))return o;let a=dT(o.fragments,t);return a===o.fragments?o:(n=true,{...o,fragments:a})});return n?{...e,pages:r}:e}var Yv=new WeakMap;function QA(e){let t=Yv.get(e);if(t!==void 0)return t;let n=false,r=o=>{for(let a of o){if(n)return;if(a.kind==="paragraph"){for(let i of a.lines)for(let l of i.spans)if(l.projected&&l.noteNav?.direction==="to-note"){n=true;return}continue}for(let i of a.rows)for(let l of i.cells)r(l.blocks);}};return r(e),Yv.set(e,n),n}function dT(e,t){let n=false,r=e.map(o=>{if(o.kind==="paragraph"){let l=eD(o,t);return l!==o&&(n=true),l}let a=false,i=o.rows.map(l=>{let s=false,d=l.cells.map(c=>{let u=dT(c.blocks,t);return u===c.blocks?c:(s=true,{...c,blocks:u})});return s?(a=true,{...l,cells:d}):l});return a?(n=true,{...o,rows:i}):o});return n?r:e}function eD(e,t){let n=false,r=e.lines.map(o=>{let a=tD(o,t);return a!==o&&(n=true),a});return n?{...e,lines:r}:e}function tD(e,t){let n=false,r=e.spans.map(o=>{let a=nD(o,t);return a!==o&&(n=true),a});return n?{...e,spans:r}:e}function nD(e,t){if(!e.projected||e.noteNav?.direction!=="to-note")return e;let n=t.marks.get(e.noteNav.scopeId);if(n===void 0)return e;let r=n??"";return e.text===r?e:{...e,text:r}}function rD(e){return e.footnotes?Math.max(0,Math.min(e.contentBox.height,e.footnotes.box.y-e.contentBox.y)):e.contentBox.height}function cT(e){return !(e.noteStream==="footnote-drain"||e.fragments.length===0&&(e.footnotes?.notes.length??0)>0)}function oD(e){for(let t=e.length-1;t>=0;t-=1)if(cT(e[t]))return t;return Math.max(0,e.length-1)}function hh(e,t,n,r,o,a,i,l){let s=new Map(a),d=t.filter(j=>j.noteKind==="footnote"),c=e.contentBox.width,u=gh(n,r),f=[],m=0,p=tT,g=a.size>0?"continuationSeparator":"separator",h=Math.max(0,e.contentBox.height),x=j=>lT(l?.separatorCache,n.footnotesPart,j,c,"footnote",h,u,i),b=x(g),y=Xs(e),w=Math.max(0,e.contentBox.height-y-b.flowHeight),P=Pl(e.contentBox.height,b.flowHeight),R=l?.reserveColumnBudget?P:w,F={fullContentHeight:Math.max(0,e.contentBox.height-b.flowHeight),reasons:i},k=l?.reserveBandOf?g==="separator"?P:Pl(e.contentBox.height,x("separator").flowHeight):0,v=l?.reserveBandOf?Ys(e):0;for(let[j,U]of a){let te=j.match(/^(footnote|endnote):(-?\d+)$/);if(!te||te[1]!=="footnote")continue;let re=Number(te[2]),J=Math.max(0,R-m);if(U.height<=J+.001)f.push({noteKind:"footnote",noteId:re,scopeId:j,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:U.height},fragments:U.fragments}),m+=U.height,s.delete(j);else {let H=od({fragments:U.fragments,flowHeight:U.height},J,F);H.head.length>0&&(f.push({noteKind:"footnote",noteId:re,scopeId:j,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:H.headHeight},fragments:H.head}),m+=H.headHeight),H.tail.length>0?s.set(j,{fragments:H.tail,height:H.tailHeight,mark:null}):s.delete(j);}}let S;for(let j of d){if(f.length>=ed){i.push("note-count-limit");break}let U=l?.reserveBandOf?.(j);if(S!==void 0&&U&&U.evictable&&U.bottom>S+.001)continue;let te=td(n.footnotesPart,j.noteId,c,u,l?.noteLayoutCache);if(!te){i.push("missing-note-body");continue}let re=r.marks.get(tl("footnote",j.noteId))??null,J=U?Math.min(R,Math.max(0,e.contentBox.height-Math.max(14,U.bottom)-b.flowHeight)):R,H=Math.max(0,J-m);if(U&&U.evictable&&l?.evictionAllowed!==false&&!(l?.allowOrphanDeferral&&U.preserveOrphanLine)&&te.flowHeight>H+.001&&te.flowHeight<=k-(U.bottom-U.blockTop)+.001&&U.top>v+.001&&U.top>=14){S=S===void 0?U.top:Math.min(S,U.top);continue}if(p-=te.fragments.length,p<0){i.push("note-area-fragment-limit");break}if(te.flowHeight<=H+.001)f.push({noteKind:"footnote",noteId:j.noteId,scopeId:te.scopeId,mark:j.customMarkFollows?null:re,box:{x:e.contentBox.x,y:0,width:c,height:te.flowHeight},fragments:te.fragments}),m+=te.flowHeight;else {let Q=od(te,H,F);Q.head.length>0&&(f.push({noteKind:"footnote",noteId:j.noteId,scopeId:te.scopeId,mark:j.customMarkFollows?null:re,box:{x:e.contentBox.x,y:0,width:c,height:Q.headHeight},fragments:Q.head}),m+=Q.headHeight),Q.tail.length>0&&s.set(te.scopeId,{fragments:Q.tail,height:Q.tailHeight,mark:null});}}if(f.length===0&&a.size===0)return {area:void 0,nextCarry:s,evictionTopPt:S};let C=b.flowHeight,I=C+m,N=ja(e.fragments),L;o==="beneathText"?L=e.contentBox.y+Math.max(y,Math.min(N,e.contentBox.height-I)):(L=e.contentBox.y+e.contentBox.height-I,L=Math.max(L,e.contentBox.y+y));let D=L+C,A=f.map(j=>{let U={...j,box:{...j.box,y:D}};return D+=j.box.height,U}),_=ah(b,e.contentBox.x,c,L);return {area:{kind:"footnotes",placement:o==="beneathText"?"beneathText":"pageBottom",box:{x:e.contentBox.x,y:L,width:c,height:I},separator:{kind:g,box:_,fragments:b.fragments,synthetic:b.synthetic,...b.ruleStyle!==void 0?{ruleStyle:b.ruleStyle}:{},...b.ruleColor!==void 0?{ruleColor:b.ruleColor}:{}},notes:A},nextCarry:s,evictionTopPt:S}}function uT(e,t){let n=Math.min(Math.max(t,0),e.length-1);for(;n>0&&e[n].noteStream!==void 0;)n-=1;return n}function aD(e){return t=>{let n=uh(e,t.sectionAnchorIndex,t.landingIndex,t.template.box);return iD(t.template,t.landingIndex,t.noteStream,n)}}function iD(e,t,n,r){let o=r?{x:e.contentBox.x,y:e.box.y+r.insets.top,width:e.contentBox.width,height:r.insets.height}:e.contentBox,a=r?r.header:e.header,i=r?r.footer:e.footer,l=r?r.pageBorders:e.pageBorders?.display!=="firstPage"?e.pageBorders:void 0;return {id:`page-${t}`,index:t,box:e.box,contentBox:o,fragments:[],...l?{pageBorders:l}:{},...n?{noteStream:n}:{},...a?{header:a}:{},...i?{footer:i}:{},...e.pageFieldSource?{pageFieldSource:{...e.pageFieldSource,pageNumber:e.pageFieldSource.pageNumber+1}}:{}}}function lD(e,t){let n=null,r=false,o=e.map((a,i)=>{if(a.noteStream===void 0)return n=a.index,a;if(n===null)return a;let l=uh(t,n,i,a.box);if(!l)return a;let s=a.box.y+l.insets.top;if(s===a.contentBox.y&&l.insets.height===a.contentBox.height&&l.header?.variant===a.header?.variant&&l.footer?.variant===a.footer?.variant)return a;let c={...a.contentBox,y:s,height:l.insets.height},u=s+c.height,f=a.contentBox.y+a.contentBox.height,m=sD(a,s-a.contentBox.y,u-f);if(!m.fits(s,u))return a;r=true;let{header:p,footer:g,...h}=a;return {...h,contentBox:c,...m.footnotes?{footnotes:m.footnotes}:{},...m.endnotes?{endnotes:m.endnotes}:{},...l.header?{header:l.header}:{},...l.footer?{footer:l.footer}:{}}});return r?o:[...e]}function qv(e,t){if(t===0)return e;let n=r=>({...r,y:r.y+t});return {...e,box:n(e.box),...e.separator?{separator:{...e.separator,box:n(e.separator.box)}}:{},notes:e.notes.map(r=>({...r,box:n(r.box)}))}}function sD(e,t,n){let r=i=>i.placement==="pageBottom"?n:t,o=e.footnotes?qv(e.footnotes,r(e.footnotes)):void 0,a=e.endnotes?qv(e.endnotes,r(e.endnotes)):void 0;return {...o?{footnotes:o}:{},...a?{endnotes:a}:{},fits(i,l){let s=d=>d===void 0||d.box.y>=i-.001&&d.box.y+d.box.height<=l+.001;return s(o)&&s(a)}}}function yh(e,t){let n=new Set;for(let r of nT(e.fragments))n.add(t.get(r.paragraphId)??0);return [...n].sort((r,o)=>r-o)}function fT(e,t,n){for(let r=e.length-1;r>=0;r-=1)if(yh(e[r],n).includes(t))return r;return Math.max(0,e.length-1)}function dD(e,t,n){let r=fT(e,t,n);for(let o=r+1;o<e.length;o+=1){let a=e[o];if(a.noteStream==="footnote-drain"||a.noteStream==="endnote-overflow"||a.fragments.length===0&&(a.footnotes?.notes.length??0)>0)continue;let i=yh(a,n);if(i.length!==0&&!i.includes(t))return o}return e.length}function cD(e,t){let n=Av(e);return [...Co({revision:t,pages:n}).pages]}function uD(e,t,n,r,o,a,i,l){let s=new Map(a),d=[];if(t.length===0&&a.size===0)return {area:void 0,nextCarry:s,remainingRefs:d};let c=e.contentBox.width,u=gh(n,r),f=l?.separatorKind??"separator",m=_=>_==="footnote"?n.footnotesPart:n.endnotesPart,p=n.endnotesPart??n.footnotesPart,g=Math.max(0,e.contentBox.height),h=lT(l?.separatorCache,p,f,c,"endnote",g,u,i),x=h.flowHeight,b=ja(e.fragments),y=e.endnotes?Math.max(b,e.endnotes.box.y-e.contentBox.y+e.endnotes.box.height):b,w=rD(e),P=Math.max(0,w-y-x),O={fullContentHeight:Math.max(0,w-x),reasons:i},F=[],k=0,v=tT;for(let[_,E]of a){let j=_.match(/^(footnote|endnote):(-?\d+)$/);if(!j)continue;let U=j[1],te=Number(j[2]),re=Math.max(0,P-k);if(E.height<=re+.001)F.push({noteKind:U,noteId:te,scopeId:_,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:E.height},fragments:E.fragments}),k+=E.height,s.delete(_);else {let J=od({fragments:E.fragments,flowHeight:E.height},re,O);J.head.length>0&&(F.push({noteKind:U,noteId:te,scopeId:_,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:J.headHeight},fragments:J.head}),k+=J.headHeight),J.tail.length>0?s.set(_,{fragments:J.tail,height:J.tailHeight,mark:null}):s.delete(_);}}for(let _=0;_<t.length;_+=1){let E=t[_];if(F.length>=ed){i.push("note-count-limit"),d.push(...t.slice(_));break}let j=m(E.noteKind),U=td(j,E.noteId,c,u,l?.noteLayoutCache);if(!U){i.push("missing-note-body");continue}let te=r.marks.get(tl(E.noteKind,E.noteId))??null,re=Math.max(0,P-k);if(v-=U.fragments.length,v<0){i.push("note-area-fragment-limit"),d.push(...t.slice(_));break}if(U.flowHeight<=re+.001)F.push({noteKind:E.noteKind,noteId:E.noteId,scopeId:U.scopeId,mark:E.customMarkFollows?null:te,box:{x:e.contentBox.x,y:0,width:c,height:U.flowHeight},fragments:U.fragments}),k+=U.flowHeight;else {let J=od(U,re,O);J.head.length>0&&(F.push({noteKind:E.noteKind,noteId:E.noteId,scopeId:U.scopeId,mark:E.customMarkFollows?null:te,box:{x:e.contentBox.x,y:0,width:c,height:J.headHeight},fragments:J.head}),k+=J.headHeight),J.tail.length>0&&s.set(U.scopeId,{fragments:J.tail,height:J.tailHeight,mark:null}),d.push(...t.slice(_+1));break}}if(F.length===0&&a.size===0)return {area:void 0,nextCarry:s,remainingRefs:d};if(F.length===0)return {area:void 0,nextCarry:s,remainingRefs:d};let S=e.contentBox.y+y,C=S+x,I=F.map(_=>{let E={..._,box:{..._.box,y:C}};return C+=_.box.height,E}),N=ah(h,e.contentBox.x,c,S),L=x+k,D=Math.max(0,w-y),A=Math.min(L,D);return {area:{kind:"endnotes",placement:o,box:{x:e.contentBox.x,y:S,width:c,height:A},separator:{kind:f,box:N,fragments:h.fragments,synthetic:h.synthetic,...h.ruleStyle!==void 0?{ruleStyle:h.ruleStyle}:{},...h.ruleColor!==void 0?{ruleColor:h.ruleColor}:{}},notes:I},nextCarry:s,remainingRefs:d}}function fD(e,t,n,r,o,a,i,l,s){let d=e,c=t,u=e[uT(e,e.length-1)].index;for(;c.size>0&&a.remaining>0;){let f=d[d.length-1],m=s({template:f,landingIndex:d.length,noteStream:"footnote-drain",sectionAnchorIndex:u}),p=hh(m,[],n,r,"pageBottom",c,o,{separatorCache:i,noteLayoutCache:l}),g=p.area?.notes.length??0;if(c=p.nextCarry,g===0){o.push("note-overflow-stalled"),p.area&&(d=[...d,{...m,footnotes:p.area}],a.remaining-=1);break}d=[...d,{...m,footnotes:p.area}],a.remaining-=1;}return c.size>0&&!o.includes("note-overflow-stalled")&&o.push("note-overflow-page-limit"),{pages:d,carry:c}}function mD(e,t,n,r,o,a="endnote-overflow"){let i=r({template:n,landingIndex:t,noteStream:a,sectionAnchorIndex:o});return {pages:[...e.slice(0,t),i,...e.slice(t)],pageIndex:t}}function Zv(e,t,n){if(n<=t||t>=e.length)return e;let r=Math.min(n,e.length),o=e[t],a=o.pageFieldSource?.pageNumber??t+1,i=o.pageFieldSource?.format,l=r-t,s=[...e];for(let d=t;d<r;d+=1){let c=s[d];s[d]={...c,pageFieldSource:{pageNumber:a+(d-t),sectionPageCount:l,...i?{format:i}:{}}};}return s}function Jv(e,t,n,r,o,a,i,l,s){if(n.length===0||e.length===0)return e;let d=e[uT(e,t)].index,c=[...e],u=[...n],f=new Map,m=t,p=0,g="separator",h=s?.stopBeforeIndex??Number.POSITIVE_INFINITY,x=s?.sectionStartIndex??t,b=s?.stopBeforeIndex!==void 0,y=s?.separatorCache;for(;u.length>0||f.size>0;){if(m>=c.length||m>=h){if(l.remaining<=0){i.push("note-overflow-page-limit");break}let O=c[Math.min(Math.max(m,1),c.length)-1]??c[c.length-1],F=Math.min(m,h,c.length),k=mD(c,F,O,s.mint,d,"endnote-overflow");c=k.pages,m=k.pageIndex,b&&(h=F+1),p+=1,l.remaining-=1;}let w=c[m];if(!cT(w)){m+=1;continue}let P=uD(w,u,r,o,a,f,i,{separatorKind:g,...y?{separatorCache:y}:{},...s.noteLayoutCache?{noteLayoutCache:s.noteLayoutCache}:{}});f=P.nextCarry,u=P.remainingRefs;let R=P.area?.notes.length??0;if(P.area){let O=c[m];c[m]={...O,endnotes:O.endnotes?{...P.area,notes:[...O.endnotes.notes,...P.area.notes],box:{...P.area.box,y:O.endnotes.box.y,height:O.endnotes.box.height+P.area.box.height}}:P.area};}else {if(f.size===0&&u.length===0)break;if(!P.area&&f.size===0&&u.length>0){m+=1,g="separator";continue}}if(R===0&&(f.size>0||u.length>0)&&w.fragments.length===0&&w.noteStream==="endnote-overflow"){i.push("note-overflow-stalled");break}if(f.size>0||u.length>0){g="continuationSeparator",m+=1;continue}break}return (u.length>0||f.size>0)&&(i.includes("note-overflow-stalled")||i.push("note-overflow-page-limit")),b?c=Zv(c,x,Math.min(h,c.length)):p>0&&(c=Zv(c,x,c.length)),c}function u3(e,t,n,r,o,a){return mT(e,t,n,r,o,a,false)}function mT(e,t,n,r,o,a,i){let l=o??null,s=new Map,d=[],c=false,u=new Map,f=rT(t),m=oT(),p=iT(r),g=gh(n,r),h=P=>P.noteKind==="footnote"&&!aT(Ua(n,P.sectionIndex).pos),x=t.some(h),b=P=>cf(P,t,f).filter(h),y=(P,R,O)=>Fv(s,P,Math.min(R,O));for(let P=0;P<e.pages.length;P+=1){let R=e.pages[P],O=Kg(R),k=cf(O,t,f).filter(H=>H.noteKind==="footnote"),v=k.filter(h);c=c||Ok(O,v);let S=v[0]?.sectionIndex??0,C=Ua(n,S),I=e.pages[P+1],N=a?a.get(R.index)??0:void 0,L=Pl(O.contentBox.height,0),D=H=>x?Mv({bodyPage:O,nextPage:I,allowOrphanDeferral:i,existingAreaHeight:H,usedReservePt:N,pageBottomRefsOf:b,footnotesPart:n.footnotesPart,opts:g,plainSeparatorHeight:m.get(n.footnotesPart,"separator",O.contentBox.width,"footnote",Math.max(0,O.contentBox.height),g,d).flowHeight,noteLayoutCache:p}):0;if(v.length===0&&u.size===0){y(R.index,D(0),L);continue}if(l&&u.size===0){let H=l.pageReserve.get(R);if(H&&H.marks===r&&H.allowOrphanDeferral===i&&mh(k,H.pageRefs)){for(let Q of H.reasons)d.push(Q);y(R.index,Math.max(H.reserve,D(H.areaHeight)),L);continue}}let A=u.size===0,_=d.length,{area:E,nextCarry:j,evictionTopPt:U}=hh(O,v,n,r,C.pos,u,d,{reserveColumnBudget:true,allowOrphanDeferral:i,reserveBandOf:H=>Ha(O,H),separatorCache:m,noteLayoutCache:p,evictionAllowed:!I||I.contentBox.width===O.contentBox.width&&I.contentBox.height===O.contentBox.height});u=j;let te=U!==void 0?Math.max(0,O.contentBox.height-U-nd):0,re=E?.box.height??0,J=Math.min(Math.max(re,te),L);l&&A&&u.size===0&&l.pageReserve.set(R,{allowOrphanDeferral:i,pageRefs:k,marks:r,reserve:J,areaHeight:re,reasons:d.slice(_)}),y(R.index,Math.max(J,D(re)),L);}let w=true;for(let P of e.pages){let R=s.get(P.index)??0;if(R<=0)continue;if(Xs(P)+R>P.contentBox.height+.5){w=false;break}}return {reserves:s,stable:w,reasons:d,orphanCandidates:c}}function pD(e,t,n,r){let o=r?.memo??null,a=[...r?.fallbackReasons??[]],i=r?.paragraphSectionIndex??new Map,l={remaining:UA},s=rT(t),d=oT(),c=aD(e),u=[],f=[];for(let R of e.pages)for(let O of cf(R,t,s)){let F={noteId:O.noteId,sectionIndex:O.sectionIndex,pageIndex:R.index,customMarkFollows:O.customMarkFollows};O.noteKind==="footnote"?u.push(F):f.push(F);}let m=o?[...u,...f].map(R=>`${R.noteId}|${R.sectionIndex}|${R.pageIndex??""}|${R.customMarkFollows?1:0}`).join(";"):"",p;o&&o.finalMarks&&o.finalMarks.sitesFingerprint===m?p=o.finalMarks.marks:(p=sT(u,f,n),o&&(o.finalMarks={sitesFingerprint:m,marks:p}));let g=iT(p),h=new Map,x=new Map,b=[],y=e.pages.map(R=>{let O=cf(R,t,s),F=O.filter(_=>_.noteKind==="footnote"),k=O.filter(_=>_.noteKind==="endnote");for(let _ of k)if(ph(n,_.sectionIndex).pos==="sectEnd"){let j=x.get(_.sectionIndex)??[];j.push(_),x.set(_.sectionIndex,j);}else b.push(_);for(let _ of F){let E=Ua(n,_.sectionIndex);if(E.pos==="sectEnd"){let j=x.get(_.sectionIndex)??[];j.push(_),x.set(_.sectionIndex,j);}else E.pos==="docEnd"&&b.push(_);}if(o&&h.size===0){let _=o.pageAttach.get(R);if(_&&_.marks===p&&mh(F,_.pageRefs)){for(let E of _.reasons)a.push(E);return _.attached}}let v=Kg(R),S=F.filter(_=>{let E=Ua(n,_.sectionIndex).pos;return E==="pageBottom"||E==="beneathText"}),C=S[0]?.sectionIndex??0,I=Ua(n,C),N,L=h.size===0,D=a.length;if(S.length>0||h.size>0||F.length===0&&!aT(I.pos)){let _=hh(v,S,n,p,I.pos,h,a,{separatorCache:d,noteLayoutCache:g});N=_.area,h=_.nextCarry;}let A=N?{...v,footnotes:N}:v;if(o&&L&&h.size===0){let _={pageRefs:F,marks:p,attached:A,reserve:0,reasons:a.slice(D)};if(o.pageAttach.set(A,_),A!==R){let E=o.pageReserve.get(R);E&&o.pageReserve.set(A,E);}}return A}),w=y.length;if(h.size>0){let R=fD(y,h,n,p,a,l,d,g,c);y=R.pages,h=R.carry;}if(x.size>0&&y.length>0){let R=[...x.keys()].sort((O,F)=>O-F);for(let O of R){let F=x.get(O),k=fT(y,O,i),v=dD(y,O,i),S=k;for(let C=0;C<=k;C+=1)if(yh(y[C],i).includes(O)){S=C;break}y=Jv(y,k,F,n,p,"sectEnd",a,l,{stopBeforeIndex:v,sectionStartIndex:S,separatorCache:d,noteLayoutCache:g,mint:c});}}return b.length>0&&y.length>0&&(y=Jv(y,oD(y),b,n,p,"docEnd",a,l,{separatorCache:d,noteLayoutCache:g,mint:c})),y.length!==w&&(y=lD(y,e),y=cD(y,e.revision)),{layout:JA({...e,pages:y},p),fallbackReasons:a,noteMarks:p}}function gD(e,t,n){return (t==="all-markup"&&n===void 0?chunkCB6RQ3GD_cjs.ag(e):chunkCB6RQ3GD_cjs.bg(e,{includeReference:(a,i)=>_v(i,t,n),projectionKey:`${t};${n?.cacheKey??""}`,ancestryKey:jv})).map(a=>({noteKind:a.noteKind,noteId:a.noteId,paragraphId:a.paragraphId,atomOffset:a.atomOffset,customMarkFollows:a.customMarkFollows}))}function pT(e,t,n,r,o){let a=n.displayMode??We,i=n.revisionAuthorFilter,l=gD(e,a,i);if(l.length===0)return n.session&&(n.session.notes=null,n.session.notePageBottomReserves=null),o({...n,noteMarks:void 0,pageBottomReserves:void 0});let s=Iv(e,t,a,i,n.session),d=YA(l,s),c=XA(n.session,d,r),u=c.memo,f=c.allHits,m=u?.provisionalMarks??gT(f,r),p=n.session?.notePageBottomReserves,g=p?Do(p):new Map,h=[],x=o({...n,noteMarks:m,pageBottomReserves:g}),b=u?.orphanPolicyPart===e,y=_o(g),w=c.reused&&u?.settledReserves&&u.settledReserves.part===e&&u.settledReserves.fingerprint===y?u.settledReserves:null;if(w)h=[...w.reasons];else {let R=new Set([y]),O=u&&u.reflowSpent&&u.reflowSpent.part===e?u.reflowSpent:{part:e,adopted:0};u&&(u.reflowSpent=O);let F=0,k=p&&g.size>0?eT:Qv,v=null,S=[],C=false,I=x.pages.length,N=Math.max(8,Math.ceil(I/16)),L=0;for(let D=0;D<k;D+=1){let A=mT(x,f,r,m,u,g,b);if(h=[...A.reasons],A.stable&&rd(A.reserves,g)){if(!b&&A.orphanCandidates){v=g,S=[...A.reasons],b=true,u&&(u.orphanPolicyPart=e),R.clear(),R.add(_o(g));continue}C=true;break}if(O.adopted>=zv){h.push("note-reflow-exhausted");break}if(L>=N){h.push("note-reflow-exhausted");break}let _=Do(A.reserves);if(rd(_,g)){h.push("note-reflow-exhausted");break}let E=_o(_);if(R.has(E)){_=Cv(g,A.reserves);let j=_o(_);if(rd(_,g)||R.has(j)){h.push("note-reflow-exhausted");break}}g=_,R.add(_o(g)),O.adopted+=1,F+=1,x=o({...n,noteMarks:m,pageBottomReserves:g}),L=x.pages.length>I?L+1:0,I=x.pages.length,D===k-1&&h.push("note-reflow-exhausted");}if(!C&&v){let D=!rd(v,g);g=v,h=[...S],D&&(x=o({...n,noteMarks:m,pageBottomReserves:g})),u&&(u.settledReserves={part:e,fingerprint:_o(g),reasons:[...h]});}u&&(F===0||O.adopted>=zv)&&(u.settledReserves={part:e,fingerprint:_o(g),reasons:[...h]});}let P=pD(x,f,r,{fallbackReasons:h,paragraphSectionIndex:s,memo:u});return n.session&&(n.session.previous=P.layout,n.session.notePageBottomReserves=Do(g)),P.layout}function gT(e,t){let n=[],r=[];for(let o of e){let a={noteId:o.noteId,sectionIndex:o.sectionIndex,customMarkFollows:o.customMarkFollows};o.noteKind==="footnote"?n.push(a):r.push(a);}return sT(n,r,t)}function hT(e,t){let n=e.projectLink??t.projectLink,r=e.projectFieldLink??t.projectFieldLink,o=e.documentProperties??t.documentProperties,a=e.refFields??t.refFields,i=e.displayMode??t.displayMode,l=e.revisionAuthorFilter??t.revisionAuthorFilter;return {...e,...n?{projectLink:n}:{},...r?{projectFieldLink:r}:{},showFieldCodes:e.showFieldCodes??t.showFieldCodes,...o?{documentProperties:o}:{},...a?{refFields:a}:{},...i?{displayMode:i}:{},...l?{revisionAuthorFilter:l}:{}}}function jo(){return {previous:null,checkpoints:[],keys:[],context:"",producer:"",parityDependent:false,startPageParity:0,prepass:null,startLineCounter:0,endLineCounter:0,endCursorY:0,endSpaceAfter:0,endsOpenPage:true,stats:{placed:0,total:0,reusedPages:0,fullPasses:0},balanceLimit:null,multi:null,notePageBottomReserves:null,notes:null}}function bh(e,t){let n={previous:t.previous,checkpoints:t.checkpoints,keys:t.keys,context:t.context,producer:t.producer,parityDependent:t.parityDependent,startPageParity:t.startPageParity,prepass:t.prepass,notes:t.notes,startLineCounter:t.startLineCounter,endLineCounter:t.endLineCounter,endCursorY:t.endCursorY,endSpaceAfter:t.endSpaceAfter,endsOpenPage:t.endsOpenPage,stats:t.stats,balanceLimit:t.balanceLimit,multi:t.multi,notePageBottomReserves:t.notePageBottomReserves};Object.assign(e,n);}var hD=1584,yT=1e4,yD="http://schemas.openxmlformats.org/wordprocessingml/2006/main";function id(e){if(e===void 0||!/^-?\d{1,8}$/.test(e))return null;let t=Number(e)/20;return Math.abs(t)<=hD?t:null}function xh(e){let t=[e],n=0;for(;t.length;){let r=t.pop();if(++n>yT||r.namespaceUri!==yD||["drawing","pict","object","sectPr","footnoteReference","endnoteReference","pageBreakBefore","ins","del","moveFrom","moveTo","pPrChange","rPrChange"].includes(r.localName)||r.localName==="br"&&r.attributes.some(o=>o.localName==="type"&&o.value!=="textWrapping")||n+t.length+r.children.length>yT)return false;for(let o of r.children)o.kind!=="textValue"&&t.push(o);}return true}function Sh(e){let t;for(let m of e)m.localName==="framePr"&&(t=m);if(!t?.attributes)return null;let n=t.attributes,r=new Set(["x","y","w","hAnchor","vAnchor","wrap","anchorLock","hSpace","vSpace"]);if(Object.keys(n).some(m=>!r.has(m)))return null;let o=n.wrap??"around";if(!["around","none","notBeside"].includes(o))return null;let a=id(n.hSpace??"0"),i=id(n.vSpace??"0");if(a===null||i===null||a<0||i<0||n.anchorLock!==void 0&&!["0","1","true","false","on","off"].includes(n.anchorLock))return null;let l=id(n.x??"0"),s=id(n.y??"0"),d=id(n.w);if(l===null||s===null||d===null||d<=0)return null;let c=n.hAnchor??"text",u=n.vAnchor??"text";if(!["page","margin","text"].includes(c)||!["page","margin","text"].includes(u)||u==="text"&&s<0)return null;let f=ae(Object.keys(n).sort().map(m=>ae([m,n[m]])));return {x:l,y:s,width:d,wrap:o,hSpace:a,vSpace:i,horizontalAnchor:c,verticalAnchor:u,token:f}}function bT(e,t,n){let r=n[t.horizontalAnchor].x+t.x,o=n[t.verticalAnchor].y+t.y,a=i=>({...i,x:i.x+r,y:i.y+o});return {...e,outOfFlow:true,box:a(e.box),...e.shadingBox?{shadingBox:a(e.shadingBox)}:{},...e.bottomBorder?{bottomBorder:{...e.bottomBorder,box:a(e.bottomBorder.box)}}:{},...e.borders?{borders:e.borders.map(i=>({...i,box:a(i.box)}))}:{},...e.marker?{marker:{...e.marker,box:a(e.marker.box),...e.marker.picture?{picture:{...e.marker.picture,box:a(e.marker.picture.box)}}:{}}}:{},lines:e.lines.map(i=>({...i,box:a(i.box),contentX:i.contentX+r,spans:i.spans.map(l=>({...l,box:a(l.box)})),...i.drawings?{drawings:i.drawings.map(l=>Ln(l,r,o))}:{}}))}}function xT(e){let t=0;for(let n of e){if(n.kind!=="paragraph"||!n.positionedFrame)continue;let{box:r,vSpace:o}=n.positionedFrame;t=Math.max(t,r.y+r.height+o);}return t}function ST(e,t,n,r){let o=Sh(t.props);if(o)return xh(e)?o:void 0;let a;for(let m of t.props)m.localName==="framePr"&&(a=m.attributes);if(!a||a.dropCap!=="drop"||t.lineSpacing.rule!=="exact"||t.lineSpacing.value<=0||t.lineSpacing.value>1584||t.listItem||t.spacing.before!==0||t.spacing.after!==0||t.shading!==void 0||Object.values(t.borders).some(Boolean)||t.alignment!=="left"||bt(t.props))return;let i=Number(a.lines);if(!Number.isInteger(i)||i<2||i>10||!xh(e)||Object.keys(a).some(m=>!["dropCap","lines","wrap","hAnchor","vAnchor","hSpace"].includes(m))||a.wrap!==void 0&&a.wrap!=="around"||a.hAnchor!==void 0&&a.hAnchor!=="text"||a.vAnchor!==void 0&&a.vAnchor!=="text")return;let l=[e],s=0;for(;l.length;)for(let m of l.pop().children)if(m.kind==="textValue"?s+=m.value.length:l.push(m),s>32)return;let d=gl({paragraph:e,paragraphId:e.id,indentLeft:t.indent.left,available:t.available,measurer:n,cache:void 0,cacheKey:null,formatting:t,producer:"drop-cap-probe",styleCascade:r,tabStops:t.tabStops,flow:{firstLineOffset:t.indent.firstLine-t.indent.hanging}}),c=d[0];if(d.length!==1||!c||c.spans.length===0||c.spans.some(m=>m.equation||m.projected||m.style.baselineShiftPt!==c.spans[0].style.baselineShiftPt)||c.spans.reduce((m,p)=>m+p.text.length,0)>32)return;let u=Math.max(...c.spans.map(m=>m.box.x+m.box.width))+t.indent.right;if(!(u>0)||u>=t.available||u>1584)return;let f=Sh([{localName:"framePr",attributes:{x:"0",y:"0",w:String(Math.ceil(u*20)),hSpace:a.hSpace??"0"}}]);return f?{...f,width:u+.001,dropCapLines:i,token:`drop-cap:${e.id}:${f.token}`}:void 0}function PT(e,t,n,r){let o=e.lines[0],a=n[0];if(!o||!a)return {fragment:e,height:e.box.height};let i=n[Math.min(t,n.length)-1],l=Math.max(0,t-n.length)*i.box.height,s=i.box.y+i.baseline+l-r,d=i.box.y+i.box.height+l-r,c=o.spans[0]?.style.baselineShiftPt??0,u=s+c-o.baseline-o.box.y;return {height:d,fragment:{...e,box:{...e.box,height:d},lines:e.lines.map(f=>({...f,baseline:f.baseline+u,spans:f.spans.map(m=>({...m,box:{...m.box,y:m.box.y+u}}))}))}}}function RT(e,t,n){if(!t)return false;let r=Rn(e),o=wt(e,t),a=o.map(l=>r.get(l.atomId)).filter(l=>l!==void 0);if(a.length===0)return false;let i=a.reduce((l,s)=>Math.min(l,s),1/0);return n.end<=i?true:a.some(l=>l>=n.start&&l<n.end)&&n.end<=i+1&&!o.some(l=>{let s=r.get(l.atomId);return l.projection.wrap==="topAndBottom"&&s!==void 0&&s>=n.start&&s<n.end})}function wT(e){let{pageZones:t,brokenLines:n,lineIndex:r,fragmentFirstLine:o,appliedSkipByLineIndex:a}=e;if(r<=o)return t;let i=Rn(e.paragraph),l=new Map,s=0;for(let d=o;d<r;d++){let c=n[d];for(let u of i.values())u>=c.start&&u<c.end&&l.set(u,s);s+=(a.get(d)??c.exclusionSkipBefore??0)+c.height;}return l.size===0?t:Object.freeze([...t,...qc({...e,anchorLineTopByModelStart:l})])}function kT(e){let t=new Map,n=new Map,r=(a,i)=>{if(a.sourceKind||a.input.mode!=="square"&&a.input.mode!=="topAndBottom"||a.anchorModelStart!==0||!e.drawingLayout)return false;let l=e.paragraphAt(i+1);if(!l||l.frame||l.paragraph.id!==a.anchorParagraphId)return false;let s=n.get(l.paragraph.id);return s||(s=new Set(wt(l.paragraph,e.drawingLayout).filter(({projection:d})=>d.position?.vertical.relativeFrom==="paragraph"&&d.position.vertical.align===null&&(d.position.vertical.offsetEmu??0)>=0).map(({projection:d})=>d.drawingNodeId)),n.set(l.paragraph.id,s)),s.has(a.drawingNodeId)},o=a=>a.reduce((i,l)=>i+l.height+(l.exclusionSkipBefore??0),0);return {select(a,i,l,s,d={}){let{placement:c=false,omittedAnchor:u,spaceBefore:f=0}=d;return s.filter(m=>{if(m.anchorParagraphId===u)return false;if(m.sourceKind==="furniture")return true;let p=e.paragraphOrder.get(a.paragraph.id),g=e.paragraphOrder.get(m.anchorParagraphId),h=m.pageFramedBand===true||!c&&r(m,i);if(p!==void 0&&g!==void 0){if(g>p&&!h)return false}else {let x=e.paragraphIndex(m.anchorParagraphId);if(x<0||x>i&&!h)return false}return e.columnCount>1&&m.columnIndex!==l?false:!(c&&!m.sourceKind&&m.anchorParagraphId===a.paragraph.id&&m.input.mode==="topAndBottom")}).map(m=>{if(c||!r(m,i))return m;let p=e.paragraphAt(i+1),g=a.contextualSpacing&&a.styleId!==null&&a.styleId===p?.styleId?0:a.spacing.after,h={...m.input,wrapDistances:{...m.input.wrapDistances,top:m.input.wrapDistances.top+g,bottom:m.input.wrapDistances.bottom+(m.input.mode==="topAndBottom"?f:0)}};return {...m,input:h,verticalBand:ps(h)}})},measure(a,i,l,s,d){let c=l.find(u=>r(u,i));c&&t.set(`${a}:${c.anchorParagraphId}`,Math.max(0,o(s)-o(d(c.anchorParagraphId))));},displacement(a,i){return t.get(`${a}:${i}`)??0}}}var vT=new WeakMap;function TT(e){if(!e)return false;for(let t of [e.headers,e.footers])for(let n of t.values())if(n.anchoredDrawings?.some(r=>!r.behindDocument&&!["inline","behind","inFront"].includes(r.wrap)))return true;return false}function IT(e){let t=[];for(let n of [e.header,e.footer]){if(!n?.part||!n.anchoredDrawings?.length)continue;let r=vT.get(n.part);r||(r=chunkCB6RQ3GD_cjs.tb(n.part),vT.set(n.part,r));for(let o of n.anchoredDrawings){let a=r.get(o.drawingNodeId);if(!a)continue;let i=gs({drawing:o,projection:a,sourceOrder:-1,contentLeft:0,contentRight:e.contentBox.width});if(!i)continue;let l=rc(o,n.box,e.box),[s]=ji([i],o.x-l.x+e.contentBox.x,o.y-l.y+e.contentBox.y,{left:0,right:e.contentBox.width});!s||s.verticalBand.y>=e.contentBox.height||s.verticalBand.y+s.verticalBand.height<=0||t.push(Object.freeze({...s,sourceKind:"furniture",drawingNodeId:`${n.partName}:${o.drawingNodeId}`,anchorParagraphId:`${n.partName}:${o.anchorParagraphId}`}));}}return Object.freeze(t)}var OT=new WeakMap;function FT(e){let t=OT.get(e);if(t)return t;let n=new Map;for(let r of chunkCB6RQ3GD_cjs.Ge(e)){if(r.beginParagraphId===r.endParagraphId)continue;let o=chunkCB6RQ3GD_cjs.Fe(r);if(o)for(let a of new Set([r.beginParagraphId,...r.resultParagraphIds,r.endParagraphId])){let i=chunkCB6RQ3GD_cjs.Ha(e,a);if(i?.kind!=="paragraph")continue;let l=chunkCB6RQ3GD_cjs.Ze(i),s=a===r.beginParagraphId,d=s?l.spanOf(r.beginNodeId)?.start??0:0,c=a===r.endParagraphId?l.spanOf(o.endNodeId)?.end??l.length:l.length,u={start:d,end:c,...s?{code:`{ ${r.instruction.raw} }`,sourceNodeId:r.beginNodeId}:{},suppressParagraph:!s&&d===0&&c===l.length},f=n.get(a);f?f.push(u):n.set(a,[u]);}}return OT.set(e,n),n}var CT=new WeakMap;function Ph(e){if(e===void 0||e.size===0)return "";let t=CT.get(e);if(t!==void 0)return t;let n=[...e].join(",");return CT.set(e,n),n}function MT(e){let t=Ph(e.chrome),n=Ph(e.placeholder),r=Ph(e.suppressed);return t===""&&n===""&&r===""?"":`${t}|${n}|${r}`}function BT(e,t){let n=t.chrome?.has(e)??false,r=t.placeholder?.has(e)??false,o=t.suppressed?.has(e)??false;return !n&&!r&&!o?"":`${n?1:0}${r?1:0}${o?1:0}`}function LT(e,t,n){if(!t)return e.map(n);let r=0;if(e.length!==t.bodies.length)for(;r<Math.min(e.length,t.bodies.length)&&e[e.length-1-r]===t.bodies[t.bodies.length-1-r];)r+=1;return e.map((o,a)=>o===t.bodies[a]?t.prepared[a]:a>=e.length-r?t.prepared[a+t.bodies.length-e.length]:n(o))}function ET(e,t){return e.length===t.length&&e.every((n,r)=>{let o=t[r];return n===o||n.kind==="paragraph"&&o.kind==="paragraph"&&n.id===o.id})}function NT(e,t){return e!==1?"columns":t?.size?JSON.stringify([...t].sort()):"body"}function AT(e,t=12,n){return e.map((r,o)=>{if(r.kind!=="paragraph"||!r.listItem&&!r.contextualSpacing)return r;let a=u=>{let f=e[o+u],m=r.paragraph?Ea(r.paragraph,u,f,n):f?.kind==="paragraph"?f.styleId:void 0;return m!==void 0&&m===r.styleId},i=u=>{let f=e[o+u];return f?.kind==="paragraph"&&r.listItem!==void 0&&f.listItem?.numId===r.listItem.numId||r.contextualSpacing&&a(u)},l=$l(r.props,{lineUnitPt:t}),s=$l(r.props,{inList:r.listItem!==void 0,lineUnitPt:t}),d=r.listItem&&o===0||i(-1)?s.before:l.before,c=i(1)?s.after:l.after;return r.contextualSpacing&&(a(-1)&&(d=0),a(1)&&(c=0)),d===r.spacing.before&&c===r.spacing.after?r:{...r,spacing:{before:d,after:c}}})}function DT(e,t){let n=e;return t.forEach((r,o)=>{r.kind!=="paragraph"||r.listItem===void 0||(n===e&&(n=[...e]),n[o]=`${n[o]}~ls~${r.spacing.before},${r.spacing.after}`);}),n}var _T=new WeakMap;function Rh(e){let t=_T.get(e);if(t)return t;let n=new Map;for(let r of e){let o=n.get(r.anchorId)??[];o.push(r),n.set(r.anchorId,o);}return _T.set(e,n),n}function jT(e,t,n,r,o,a){let i=[],l;for(let s=e.length-1;s>=0;s-=1){let d=e[s];if(d.kind==="paragraph"&&!d.props.some(u=>u.localName==="framePr")){l=d.paragraph.id;continue}if(d.kind!=="table")continue;let c=Jt(d.table,t,0,n,r,o,a)?.float;!c||c.ySpec==="inline"||l&&i.push({table:d.table,sourceIndex:s,anchorId:l,float:c});}return i.reverse()}function xD(e,t){let n=e??[];return n.length===t.length&&n.every((r,o)=>r.anchorId===t[o].anchorId&&r.column===t[o].column&&r.fragmentIndex===t[o].fragmentIndex&&r.anchorY===t[o].anchorY)}function wh(e,t){let n=t.pendingPositionedTableTokens,r=e.pendingPositionedTableTokens;return (n===r||n?.length===r?.length&&n?.signature===r?.signature)&&xD(e.positionedTableAnchorSignals,t.positionedTableAnchorSignals??[])}function HT(e,t){let n=new Map,r=new Map,o=new Set;for(let s of e){let d=JSON.stringify([s.table.id,t[s.sourceIndex]]);n.set(s.table.id,d),r.set(d,s.table.id),o.add(s.anchorId);}let a,i=s=>{a={token:s,previous:a,length:(a?.length??0)+1,signature:chunkCB6RQ3GD_cjs.a(new TextEncoder().encode(ae([a?.signature??"",s])))};},l=s=>{if((a?.length??0)!==s.size){a=void 0;for(let d of s){let c=n.get(d);c&&i(c);}}};return {add(s,d){if(l(s),s.has(d))return;let c=n.get(d);c&&(s.add(d),i(c));},note(s,d,c,u,f){o.has(d)&&s.push({anchorId:d,column:c,fragmentIndex:u,anchorY:f});},checkpoint(s,d){return l(s),{pendingPositionedTableTokens:a,positionedTableAnchorSignals:[...d]}},restore(s,d,c){d.clear();let u=[];for(let f=s.pendingPositionedTableTokens;f;f=f.previous)u.push(f.token);for(let f=u.length-1;f>=0;f--){let m=r.get(u[f]);m&&d.add(m);}a=s.pendingPositionedTableTokens,l(d),c.splice(0,c.length,...s.positionedTableAnchorSignals??[]);},same(s,d,c,u){return l(c),wh({pendingPositionedTableTokens:s,positionedTableAnchorSignals:d},{pendingPositionedTableTokens:a,positionedTableAnchorSignals:u})}}}function WT(e,t,n,r,o){let a=Rh(e),i=0;for(let l of r){let s=a.get(l.anchorId);if(!s)continue;let d=l.fragmentIndex+i,c=n.length;for(let f of s){if(!t.has(f.table.id))continue;let m=n.length;o(f.table,l.column,l.anchorY,d);for(let p=m;p<n.length;p++){let g=n[p];g.kind==="table"&&(n[p]={...g,floatingWrap:{anchorId:l.anchorId,columnIndex:l.column,float:f.float,sourceOrder:f.sourceIndex}});}t.delete(f.table.id);}let u=n.splice(c);n.splice(d,0,...u),i+=u.length;}r.length=0;}function uf(e){return e.kind==="table"&&e.outOfFlow===true}function zT(e,t,n){return {text:{top:t,height:Math.max(0,e.contentHeight-t)},margin:{top:n-e.contentInsetTop,height:Math.max(0,e.pageHeight-n-e.marginBottom)},page:{top:-e.contentInsetTop,height:e.pageHeight}}}function VT(e,t){for(let n=t;n<e.length;n+=1){let r=e[n];if(!kn(r))return true}return false}function Rl(e,t,n){let r=n[e.vertAnchor],o=r.height-t,a;if(e.ySpec==="center"?a=r.top+o/2:e.ySpec==="bottom"||e.ySpec==="outside"?a=r.top+o:e.ySpec?a=r.top:a=r.top+e.yPt,!Number.isFinite(a))return r.top;let i=n.page.top+n.page.height;return Math.max(n.page.top,Math.min(a,i))}var PD={kind:"covered",id:"hashed",paragraphId:"covered",fragmentIndex:"covered",clipToBox:"hashed",outOfFlow:"hashed",positionedFrame:"hashed",range:"hashed",props:"hashed",styleId:"hashed",outlineLevel:"hashed",alignment:"hashed",spacing:"hashed",indent:"hashed",bottomBorder:"hashed",borders:"hashed",shading:"hashed",shadingBox:"hashed",paragraphEnd:"hashed",emptyParagraphStyle:"hashed",markRevisions:"hashed",markRevision:"covered",markFormatRevision:"hashed",markChangeSites:"hashed",marker:"hashed",tabStops:"hashed",lines:"hashed",box:"hashed"},RD={kind:"covered",floatingWrap:"hashed",id:"hashed",tableId:"hashed",fragmentIndex:"hashed",nestingDepth:"hashed",columnEdges:"hashed",rows:"hashed",box:"hashed"};function $T(e){return Object.keys(e).filter(t=>e[t]==="hashed")}var wD=$T(PD),kD=$T(RD),GT=new WeakMap;function ff(e){let t=GT.get(e);if(t!==void 0)return t;let n=e.kind==="table"?JSON.stringify([uf(e),...kD.map(r=>e[r])]):JSON.stringify(wD.map(r=>e[r]));return GT.set(e,n),n}function KT(e,t){if(e.length!==t.length)return false;for(let n=0;n<e.length;n+=1){let r=e[n],o=t[n];if(r!==o&&ff(r)!==ff(o))return false}return true}function kh(e,t){if(e.length!==t.length)return false;for(let n=0;n<e.length;n+=1)if(e[n]!==t[n])return false;return true}var UT=Object.freeze([]),XT=new Map;function YT(e,t){if(e===t)return true;if(e.size!==t.size)return false;for(let[n,r]of e)if(t.get(n)!==r)return false;return true}function qT(e,t){let n=e,r=-1;for(let o=0;o<=t.length;o++){let a=t[o];if(a?.frame&&r<0&&(r=o),r<0||a&&(a.frame||a.kind!=="paragraph"))continue;let i=Math.min(o,e.length-1),l=chunkCB6RQ3GD_cjs.a(new TextEncoder().encode(ae(e.slice(r,i+1))));n===e&&(n=[...e]);for(let s=r;s<=i;s++)n[s]=ae([e[s],l]);r=-1;}return n}function vh(e,t){return e===t||e?.length===t?.length&&e?.signature===t?.signature}var mf=class{pending;checkpoint(){return this.pending}restore(t){this.pending=t;}same(t){return vh(this.pending,t)}start(t,n){let r=this.pending?.item;return r&&r.fragment.paragraphId===n&&r.frame.token===t.token?{cursorY:r.fragment.box.y+r.fragment.box.height,previousSpaceAfter:r.fragment.spacing.after,groupId:r.groupId}:{cursorY:0,previousSpaceAfter:0}}add(t,n,r=n.paragraphId,o=0){let a=this.pending?.item,i=a?.groupId===r?a:void 0,l={frame:t,fragment:n,groupId:r,sourceOrder:i?.sourceOrder??o},s=chunkCB6RQ3GD_cjs.a(new TextEncoder().encode(ae([this.pending?.signature??"",t.token,r,String(l.sourceOrder),ff(n)])));this.pending={item:l,previous:this.pending,length:(this.pending?.length??0)+1,signature:s};}requiredAnchorBand(t){let n=0;for(let o=this.pending;o;o=o.previous)n=Math.max(n,o.item.frame.dropCapLines??0);let r=0;for(let o=0;o<n;o++){let a=t[Math.min(o,t.length-1)];r+=(a?.height??0)+(a?.exclusionSkipBefore??0);}return r}publish(t,n,r,o=[]){if(!this.pending)return [];let a=new Array(this.pending.length);for(let s=this.pending;s;s=s.previous)a[s.length-1]=s.item;let i=new Map,l=a.map(s=>{let d=s.frame.dropCapLines?PT(s.fragment,s.frame.dropCapLines,o,t.text.y):void 0,c=bT(d?.fragment??s.fragment,s.frame,t),u={x:t[s.frame.horizontalAnchor].x+s.frame.x,y:c.box.y,width:s.frame.width,height:d?.height??c.box.height},f=i.get(s.groupId);if(f){let m=Math.max(f.x+f.width,u.x+u.width),p=Math.max(f.y+f.height,u.y+u.height);f.x=Math.min(f.x,u.x),f.y=Math.min(f.y,u.y),f.width=m-f.x,f.height=p-f.y;}else i.set(s.groupId,u);return {item:s,fragment:c}});return this.pending=void 0,l.map(({item:s,fragment:d})=>({...d,positionedFrame:{anchorId:n,columnIndex:r,groupId:s.groupId,sourceOrder:s.sourceOrder,...s.frame.dropCapLines?{dropCapLines:s.frame.dropCapLines}:{},wrap:s.frame.wrap,hSpace:s.frame.hSpace,vSpace:s.frame.vSpace,box:i.get(s.groupId)}}))}};function QT(e,t,n,r,o,a){return e.some(i=>{if(i.kind!=="table")return false;let l=Jt(i,t,0,n,r,o,a)?.float;return l!==void 0&&l.ySpec!=="inline"})}function vD(e){let t=Math.max(0,e.columnEdges.length-1),n=0,r=0;for(let o of e.rows)for(let a of o.cells){let i=a.borders;if(!i)continue;let l=a.gridColumn<=0,s=a.gridColumn+a.gridSpan>=t;l&&(n=Math.max(n,i.left?.widthPt??0)),s&&(r=Math.max(r,i.right?.widthPt??0));for(let d of i.edgeSegments??[])l&&d.side==="left"&&(n=Math.max(n,d.edge.widthPt)),s&&d.side==="right"&&(r=Math.max(r,d.edge.widthPt));}return {left:n,right:r}}function eI(e,t,n){let r;for(let[o,a]of e.entries()){let i;for(let l of a.fragments){if(l.kind!=="table")continue;let s=l.floatingWrap;if(!s)continue;let d=l.box,c=s.float.distances??{top:0,right:0,bottom:0,left:0},u=vD(l),f=c.left>0?u.left:0,m=c.right>0?u.right:0,p={x:d.x-f,y:d.y,width:d.width+f+m,height:d.height},g=s.columnIndex,h=n.columnLefts?.[g]??0,x=n.columnWidths?.[g]??n.contentWidth,b={sourceKind:"table",drawingNodeId:`table:${l.tableId}`,anchorParagraphId:s.anchorId,anchorModelStart:0,sourceOrder:s.sourceOrder,paintLayer:"inFront",relativeHeight:0,allowOverlap:true,columnIndex:g,y:p.y,verticalBand:{x:p.x-c.left,y:p.y-c.top,width:p.width+c.left+c.right,height:p.height+c.top+c.bottom},input:{mode:p.x-c.left<=h&&p.x+p.width+c.right>=h+x?"topAndBottom":"square",contentBounds:p,polygon:null,clipPolygon:null,wrapDistances:c,effectInsets:{top:0,right:0,bottom:0,left:0},textSide:"bothSides",contentLeft:h,contentRight:h+x}};i||(r??=new Map(t),i=[...t.get(o)??[]],r.set(o,i)),i.push(b);}}return r??t}var ZT=new WeakMap;function pf(e,t,n){let r;if(!n.inlineDrawingLayout){let l=ZT.get(n);l||ZT.set(n,l=new WeakMap),r=l.get(e),r||l.set(e,r=new Map);let s=r.get(t);if(s!==void 0)return s}let o=Jt(e,t,0,n.styleCascade,n.displayMode,n.revisionAuthorFilter,n.compatibilityMode);if(!o?.float||o.float.vertAnchor!=="text")return 0;if(o.float.ySpec)return 1/0;let a=e.children.find(l=>l.kind==="tableProperties");if(n.isolatedFloatingTableId!==e.id&&a&&a.kind!=="textValue"&&a.children.some(l=>l.kind!=="textValue"&&l.localName==="tblOverlap"&&l.attributes.some(s=>s.localName==="val"&&s.value==="never")))return 1/0;let i=Math.max(0,o.float.yPt)+tI(o,e.id,n)+(o.float.distances?.bottom??0);return r?.set(t,i),i}function tI(e,t,n){let r=0;return Da(e,0,0,0,t,0,{...Qt(n),onCellBreakKey:void 0,borderOwnershipBudget:yr(),vMergeResolveBudget:Yr(),nextLineId:()=>`floating-table-probe-${r++}`}).bottom}function TD(e,t,n,r){let o=r.frames.text;if(e.float.vertAnchor==="text"||o.left>r.frames.margin.left+.5||o.width<r.frames.margin.width-.5)return 0;let a=r.earlier.flatMap(y=>kn(y)||y.kind==="table"&&y.floatingWrap?[]:y.kind==="table"?[y.box]:y.lines.map(w=>w.box));if(a.length===0)return 0;let i=Jt(e.table,t,0,n.styleCascade,n.displayMode,n.revisionAuthorFilter,n.compatibilityMode),l=i?.float;if(!i||!l||l.vertAnchor==="text"||l.ySpec==="inline")return 0;let s=l.distances??{top:0,right:0,bottom:0,left:0},d=Ba(i,r.frames,n.compatibilityMode),c=i.columnWidthsPt.reduce((y,w)=>y+w,0),u=d-s.left,f=d+c+s.right;if(u>o.left||f<o.left+o.width)return 0;let m=a.reduce((y,w)=>Math.max(y,w.y+w.height),0);if(!l.ySpec&&m<=Rl(l,0,r.verticalFrames)-s.top)return 0;let p=tI(i,e.table.id,n),g=Rl(l,p,r.verticalFrames),h=g-s.top,x=g+p+s.bottom,b=1/0;for(let y of a)y.y<x&&y.y+y.height>h&&y.x<f&&y.x+y.width>u&&(b=Math.min(b,y.y));return b>r.anchorY?0:x-b+r.anchorExtent}function nI(e,t,n,r,o,a){if(t.size===0)return 0;let i=0;for(let l of Rh(e).get(n)??[]){if(!t.has(l.table.id))continue;let s=Th(l.table,a.anchorY,r,a.frames,a.earlier,o),d=pf(l.table,r,o)+s-a.anchorY+Math.min(0,l.float.yPt);i=Math.max(i,d,TD(l,r,o,a));}return i}function Th(e,t,n,r,o,a){let i=Jt(e,n,0,a.styleCascade,a.displayMode,a.revisionAuthorFilter,a.compatibilityMode),l=i?.float;if(!i||!l||l.vertAnchor!=="text"||l.ySpec)return t;let s=i.columnWidthsPt.reduce((p,g)=>p+g,0),d=l.distances??{top:0,right:0,left:0},c=Ba(i,r,a.compatibilityMode)-d.left,u=pf(e,n,a)-Math.max(0,l.yPt)+d.top,f=t+l.yPt-d.top,m=o.flatMap(p=>p.kind==="table"?p.floatingWrap?[]:[p.box]:p.lines.flatMap(g=>[...g.spans.filter(h=>h.text.trim()).map(h=>h.box),...(g.drawings??[]).map(h=>h.paintBounds)])).sort((p,g)=>p.y-g.y);for(let p of m)c<p.x+p.width&&c+s+d.left+d.right>p.x&&f<p.y+p.height&&f+u>p.y&&(f=p.y+p.height);return f+d.top-l.yPt}function rI(e){let t=0;for(let n of e)n.kind!=="table"||n.floatingWrap?.float.vertAnchor!=="text"||(t=Math.max(t,n.box.y+n.box.height+(n.floatingWrap.float.distances?.bottom??0)));return t}var JT=new WeakMap;function oI(e,t,n,r=0){if(!n.pageExclusionZones||!t?.size)return false;let o=JT.get(n);if(o?.zones!==t){let c=[];for(let[u,f]of t){let m=1/0;for(let p of f)m=Math.min(m,n.paragraphOrderIndex?.(p.anchorParagraphId)??p.sourceOrder);c.push([u,m]);}c.sort((u,f)=>u[0]-f[0]);for(let u=c.length-2;u>=0;u--)c[u][1]=Math.min(c[u][1],c[u+1][1]);o={zones:t,remainingOrders:c},JT.set(n,o);}let a=0,i=o.remainingOrders.length;for(;a<i;){let c=a+i>>>1;o.remainingOrders[c][0]<r?a=c+1:i=c;}let l=o.remainingOrders[a]?.[1];if(l===void 0||l===1/0)return false;let s=[e],d=0;for(;s.length;){let c=s.pop();if(++d>1e4)return true;if(c.kind==="paragraph"){if(l<=(n.paragraphOrderIndex?.(c.id)??Number.MAX_SAFE_INTEGER))return true;continue}if(d+s.length+c.children.length>1e4)return true;for(let u of c.children)u.kind!=="textValue"&&s.push(u);}return false}var aI=new WeakMap;function iI(e,t){if(t){let n=aI.get(t);if(n===void 0){n=t.docDefaultsParagraph.some(r=>r.localName==="framePr");for(let r of t.styles.values())if(r.paragraphProperties.some(o=>o.localName==="framePr")){n=true;break}aI.set(t,n);}if(n)return true}return e.some(n=>n.kind==="paragraph"&&n.children.some(r=>r.kind==="paragraphProperties"&&r.children.some(o=>o.localName==="framePr")))}function lI(e,t,n){let r;for(let[o,a]of e.entries()){let i=new Set,l;for(let s of a.fragments){if(s.kind!=="paragraph")continue;let d=s.positionedFrame;if(!d||i.has(d.groupId))continue;i.add(d.groupId);let c=d.box,u=d.columnIndex,f=n.columnLefts?.[u]??0,m=n.columnWidths?.[u]??n.contentWidth,p={left:d.hSpace,right:d.hSpace,top:d.vSpace,bottom:d.vSpace},g=c.x-d.hSpace<=f&&c.x+c.width+d.hSpace>=f+m,h={sourceKind:"frame",sourceOrder:d.sourceOrder,drawingNodeId:`frame:${d.groupId}`,anchorParagraphId:d.anchorId,anchorModelStart:0,paintLayer:"inFront",relativeHeight:0,allowOverlap:true,columnIndex:u,y:c.y,verticalBand:{x:c.x-d.hSpace,y:c.y-d.vSpace,width:c.width+2*d.hSpace,height:c.height+2*d.vSpace},input:{mode:d.wrap==="none"||d.wrap==="notBeside"||g?"topAndBottom":"square",contentBounds:c,polygon:null,clipPolygon:null,wrapDistances:p,effectInsets:{left:0,right:0,top:0,bottom:0},textSide:"bothSides",contentLeft:f,contentRight:f+m}};l??=[...t.get(o)??[]],l.push(h);}l&&(r??=new Map(t),r.set(o,l));}return r??t}function Ih(e,t=false){let n=new Set;for(let r of e){let o=new Set,a=new Map;for(let i of r.fragments){if(i.kind!=="paragraph"||!i.positionedFrame)continue;let l=i.positionedFrame;if(l.dropCapLines!==void 0){let u=a.get(l.anchorId);u&&(o.add(u),o.add(l.groupId)),a.set(l.anchorId,l.groupId);}let s=l.wrap!=="around"||l.box.x-l.hSpace<=0&&l.box.x+l.box.width+l.hSpace>=r.contentBox.width,d=l.box.y-l.vSpace,c=l.box.y+l.box.height+l.vSpace;(t||l.dropCapLines!==void 0&&(!l.anchorId||c>r.contentBox.height+.001)||s&&c>0&&d<r.contentBox.height&&l.box.height+2*l.vSpace>=r.contentBox.height-.001)&&o.add(l.groupId);}for(let i of r.fragments)i.kind==="paragraph"&&i.positionedFrame&&o.has(i.positionedFrame.groupId)&&n.add(i.paragraphId);}return n}function sI(e){let{geometry:t,insets:n}=e;return Object.freeze({pageNumber:e.pageNumber,onPageParityRead:e.onPageParityRead,pageWidth:t.width,pageHeight:t.height,marginLeft:t.margin.left,marginRight:t.margin.right,marginBottom:t.margin.bottom,contentInsetTop:n.top,contentInsetBottom:n.bottom,contentWidth:e.contentWidth,contentHeight:e.contentHeight,contentBandHeight:n.height,ownerPartName:e.ownerPartName,storyKind:"body"})}function dI(e,t,n){return e.shading===void 0&&Oh(e,t,n)}function Oh(e,t,n){if(e.listItem!==void 0)return false;let{top:r,bottom:o,left:a,right:i,between:l,bar:s}=e.borders;return (r??o??a??i??l??s)||n&&wt(e.paragraph,n).length>0?false:t.every(d=>d.drawings.length===0&&!d.pageBreakAfter&&!d.columnBreakAfter&&d.spans.every(c=>c.text.length===0))}var FD="http://schemas.openxmlformats.org/wordprocessingml/2006/main";var cI=new WeakMap;function gf(e){let t=cI.get(e);if(t!==void 0)return t;let n=e.rows.some(r=>r.cells.some(o=>o.vMergeContinue));return cI.set(e,n),n}var CD=new Set(["p","r","t","tab","br","cr","noBreakHyphen","softHyphen","hyperlink","fldSimple","fldChar","instrText","bookmarkStart","bookmarkEnd","proofErr","pPr","rPr"]);function hf(e){return e.cells[0]?.logicalGridColumn===void 0?e.cells:[...e.cells].reverse()}function yf(e,t){let n=0;for(let r of e){let o=0;for(let a of hf(r)){if(a.vMergeContinue||a.textDirection!=="horizontal"||a.gridColumn!==o||(o+=a.gridSpan,o>t))return false;for(let i of a.blocks){if(i.kind!=="paragraph")return false;let l=[{node:i,depth:0,properties:false}];for(;l.length>0;){let{node:s,depth:d,properties:c}=l.pop();if(++n>8192||d>32)return false;if(s.kind==="textValue")continue;if(s.namespaceUri!==FD||!c&&!CD.has(s.localName)||s.localName==="br"&&s.attributes.some(f=>f.localName==="type"&&f.value!=="textWrapping")||["drawing","pict","object","txbxContent","tbl","vMerge","framePr"].includes(s.localName)||n+l.length+s.children.length>8192)return false;let u=c||s.localName==="pPr"||s.localName==="rPr";for(let f of s.children)l.push({node:f,depth:d+1,properties:u});}}}if(o!==t)return false}return true}function Fh(e,t,n,r,o,a){if(e.cellSpacingPt>0||e.float||gf(e)||e.columnWidthsPt.length>1024||![n,r,o].every(Number.isFinite)||(a.pageExclusionZones?.().length??0)>0)return;let i=Bw(e,t,a);if(i===a||!yf([t],e.columnWidthsPt.length))return;let l=0,s={...Qt(i),cache:void 0,borderOwnershipBudget:void 0,vMergeResolveBudget:void 0,onCellBreakKey:void 0,nextLineId:()=>`probe-terminal-border-${l++}`},d=Dn(t,e.columnWidthsPt,n,r,false,0,s);if(!(d.remainder!==null||d.bottom>o+.001))return {height:d.record.box.height,deps:i,probe:d.record}}function uI(e,t){return e.cells.length!==t.cells.length?false:e.cells.every((n,r)=>{let o=t.cells[r];return n.blocks.length===o.blocks.length&&n.blocks.every((a,i)=>{let l=o.blocks[i];return a.kind==="paragraph"&&l.kind==="paragraph"&&a.paragraphId===l.paragraphId&&a.lines.length===l.lines.length&&a.lines.every((s,d)=>s.spans.length===l.lines[d].spans.length&&s.spans.every((c,u)=>c.text===l.lines[d].spans[u].text))})})}function Ch(e,t,n,r,o,a,i,l,s,d=0,c){let u=0,f={...Qt(l),cache:void 0,borderOwnershipBudget:void 0,vMergeResolveBudget:void 0,onCellBreakKey:void 0,nextLineId:()=>`probe-progress-${u++}`},m=$s(e,t,n,r,o,false,a,i,f,s,d);return m.fitted&&(!c?.requireEveryCell||m.record.cells.every((p,g)=>p.vMergeContinue||e.cells[g].blocks.length===0||p.blocks.length>0))}var MD=64;function fI(e,t,n,r,o,a,i,l,s){if(e.cellSpacingPt>0||e.float||t.length===0||t.length>MD||e.columnWidthsPt.length>1024||![r,o,a,i,l].every(Number.isFinite)||gf(e)||(s.pageExclusionZones?.().length??0)>0||!yf([...t,n],e.columnWidthsPt.length))return;let d=t.reduce((k,v)=>k+v.cells.length,n.cells.length);if(s.borderOwnershipBudget&&s.borderOwnershipBudget.intervalsRemaining<d||!(n.height.rule==="exact"||n.cantSplit&&l<=a+.001)&&l>a-o-i+.001)return;let u=t[t.length-1],f=hf(u),m=hf(n),p=rl([f,m],e.tableBorders,e.columnWidthsPt.length)[0],g=new Map,h=[];for(let k=0;k<f.length;k+=1)for(let v of p[k].edgeSegments??[])v.side==="bottom"&&h.push({start:v.gridStart,end:v.gridEnd,edge:v.edge});for(let[k,v]of f.entries()){let S=v.margins.bottom;for(let C of p[k].edgeSegments??[])C.side!=="bottom"||Lo(C.edge)>0||(S=Math.max(S,rn(v.margins.bottom,{state:"edge",...C.edge},true)));g.set(v.id,{...on(v,true),bottom:S});}let x=0,b=0;for(let k of m)for(let v of f){if(v.gridColumn+v.gridSpan<=k.gridColumn||v.gridColumn>=k.gridColumn+k.gridSpan)continue;let S=0;for(let C of h)C.end<=v.gridColumn||C.start>=v.gridColumn+v.gridSpan||(S=Math.max(S,Lo(C.edge)));b=Math.max(b,Du(k.borders.top,v.borders.bottom,e.tableBorders.insideH,S,k.suppressesTopBand));}for(let k of m){let v=k.margins.top+b,S=k.gridColumn+k.gridSpan;for(;x<h.length&&h[x].end<=k.gridColumn;)x++;for(let C=x;C<h.length&&h[C].start<S;C++)Lo(h[C].edge)>0||(v=Math.max(v,rn(k.margins.top,{state:"edge",...h[C].edge},true,false,true)));g.set(k.id,{...on(k,true),top:v});}if([u,n].every(k=>k.cells.every(v=>{let S=on(v,true),C=g.get(v.id);return S.top===C.top&&S.bottom===C.bottom})))return;let y=gn(e,t[0],{...s,cellContentInsets:g}),w=0,P={...Qt(s),cache:void 0,borderOwnershipBudget:void 0,vMergeResolveBudget:void 0,onCellBreakKey:void 0,cellContentInsets:y.cellContentInsets,nextLineId:()=>`probe-header-border-${w++}`},R=o;for(let k of t){let v=Dn(k,e.columnWidthsPt,r,R,true,0,P);if(R=v.bottom,v.remainder!==null||R>a+.001)return null}let O=R-o,F=Dn(n,e.columnWidthsPt,r,R,false,0,P);return F.remainder!==null||F.bottom>a+.001?null:{bodyRowId:n.id,headerHeight:O,bodyHeight:F.bottom-R,deps:y}}var eo=.001;function mI(e,t,n,r,o){let a=o.inlineDrawingLayout;if(!a||bi(o.compatibilityMode))return null;let i=new Set(BD(e,a,o));if(i.size===0)return null;let l=ED(e,t,n,r,a,{...o,outOfCellFloatParagraphs:i});for(let g of [...i])l.some(h=>h.paragraphId===g)||i.delete(g);if(i.size===0)return null;let s=0,d=new Map,c=new Set,u=(g,h)=>{let x=g.anchorRowBottom-g.anchorRowTop,b=g.anchorRowTop+s;return (g.top<=b+x+eo?Math.max(b,g.bottom+g.leadIn):b)+x<=h+eo},f=g=>g.map(h=>{let x=d.get(h.anchorParagraphId);return x===void 0||!["paragraph","line"].includes(h.verticalFrame)?h:ms(h,0,-x)}),m=g=>g&&(h=>g(f(h))),p=o.onAnchorRepublish;return {deps:{...o,publishAnchoredDrawings:m(o.publishAnchoredDrawings),collectAnchoredDrawings:m(o.collectAnchoredDrawings),...p?{onAnchorRepublish:(g,h)=>p(g,f(h))}:{},outOfCellFloatParagraphs:i},clear:(g,h,x,b)=>{for(let w of l)c.has(w.paragraphId)||(w.top>=b||!u(w,b))&&i.delete(w.paragraphId);l=l.filter(w=>i.has(w.paragraphId)&&w.bottom>g+eo&&w.top<b);let y=g;for(let w=0;l.length>0&&w<=l.length;w+=1){let P=y+h(y),R=l.find(O=>O.top<=P+eo&&O.bottom>y+eo);if(!R)break;y=R.bottom;}s+=y-g;for(let w of x)for(let P of w.cells)for(let R of P.blocks)i.has(R.id)&&(c.add(R.id),s>eo&&d.set(R.id,s));return y},end:()=>{l=[],s=0,d.clear(),c.clear(),i.clear();}}}function BD(e,t,n){let r=new Set;if(e.rows.some(a=>a.cells.some(i=>i.vMergeContinue)))return r;let o=Ra(true,n);for(let a of e.rows)if(!a.isHeader){for(let i of a.cells)if(i.vAlign==="top")for(let l of i.blocks)l.kind==="paragraph"&&LD(l,t,o)&&r.add(l.id);}return r}function LD(e,t,n){let r=wt(e,t);return r.length===0?false:r.every(({projection:o})=>o.hidden||o.anchor?.behindDocument||!Yc(o.wrap)?false:!ds(o,n))}function ED(e,t,n,r,o,a){let i=a.outOfCellFloatParagraphs,l=[],s=p=>{for(let g of p)l.push(g);},d=a.pageExclusionZones,c=0,u=Da(e,n,r,0,t,0,{...Qt(a),measuringOnly:a.measuringOnly,anchorDeferOnly:false,publishAnchoredDrawings:s,collectAnchoredDrawings:s,onCellBreakKey:void 0,...d?{pageExclusionZones:()=>d().filter(p=>!i.has(p.anchorParagraphId??""))}:{},borderOwnershipBudget:yr(),vMergeResolveBudget:Yr(),nextLineId:()=>`out-of-cell-float-probe-${c++}`}),f=AD(u.fragment),m=[];for(let p of l){if(!i.has(p.anchorParagraphId))continue;let g=o.projectionForAtom?.(p.drawingNodeId),h=g?gs({drawing:p,projection:g,sourceOrder:0,contentLeft:-1e6,contentRight:1e6}):null;if(!h)continue;let x=h.verticalBand.y,b=h.verticalBand.y+h.verticalBand.height,y=f.get(p.anchorParagraphId);y&&(y.contentTop!==void 0&&p.paintBounds.y<=y.contentTop+eo&&(x=Math.min(x,y.top)),b>x+eo&&m.push(Object.freeze({top:x,bottom:b,paragraphId:p.anchorParagraphId,anchorRowTop:y.top,anchorRowBottom:y.bottom,leadIn:Math.max(0,y.top-ND(u.fragment,x))})));}return m}function ND(e,t){let n=e.rows.find(r=>r.box.y+r.box.height>=t-eo);return n?n.box.y:t}function AD(e){let t=new Map;for(let n of e.rows){let r=n.box.y+n.box.height;for(let o of n.cells)for(let[a,i]of o.blocks.entries())i.kind==="paragraph"&&t.set(i.paragraphId,{top:n.box.y,bottom:r,...a===0?{contentTop:i.box.y}:{}});}return t}var DD=Number.MAX_SAFE_INTEGER/1024;function pI(e,t){let{columnWidth:n,columnLeft:r,contentHeight:o,advanceColumn:a,anchorFrames:i,verticalAnchorFrames:l,styleCascade:s,displayMode:d,revisionAuthorFilter:c,deps:u,shiftAnchor:f,publishFragment:m}=t,p=n(),g=Jt(e,p,0,s,d,c,t.compatibilityMode);if(!g||g.rows.length===0)return {outOfFlow:false};let h=g.float!==void 0&&(g.float.vertAnchor!=="text"||t.positionTextTable===true)&&g.float.ySpec!=="inline",x=t.cursorY,b=h?l():void 0,y=h?()=>DD:o,w=()=>g.float?Ba(g,i(),t.compatibilityMode):r()+al(g,n()),P=w();!h&&g.float&&g.float.vertAnchor==="text"&&!g.float.ySpec?t.cursorY=Math.max(0,Math.min(t.cursorY+g.float.yPt,y())):h&&g.float&&b&&(t.cursorY=Rl(g.float,0,b));let R=(Y,V=t.cursorY,ce)=>Vs(Y,g.columnWidthsPt,P,0,ce??F,g.cellSpacingPt,void 0,F.pageExclusionZones?.().length?V:void 0),O=h||g.float?null:mI(g,e.id,P,t.cursorY,u),F=O?.deps??u,k=[];for(let Y of g.rows)if(Y.isHeader)k.push(Y);else break;let v=0;for(let[Y,V]of k.entries())v+=R(V,t.cursorY+v,Y===0?gn(g,V,F):F);let S=v>(t.unreservedContentHeight?.()??y())+.001,C=!S,I=0,N=t.cursorY,L=[],D=new Map,A=[],_=new Map,E=new Set(g.rows),j=false,U,te,re=(Y,V)=>{V.cellContentInsets&&_.set(Y,V.cellContentInsets);},J=()=>{if(L.length===0){O?.end();return}let Y=L.length-1,V=L[Y],ce=A[Y];if(!V.isContinuation&&E.has(ce)){let he={...F,cellContentInsets:_.get(V)??F.cellContentInsets},we=Fh(g,ce,P,V.box.y,y(),he);if(we&&uI(V,we.probe)){let Oe={...V,box:{...V.box,height:we.height},cells:V.cells.map(Te=>({...Te,box:{...Te.box,height:we.height}}))};L[Y]=Oe,_.delete(V),re(Oe,we.deps),t.cursorY+=we.height-V.box.height;}}let le=Na(L,g,A,F.borderOwnershipBudget,F.vMergeResolveBudget,void 0,f,F,_),Pe=le[le.length-1],fe=pl({kind:"table",...h?{outOfFlow:true}:{},id:`${e.id}#f${I}`,tableId:e.id,fragmentIndex:I,rows:le,box:{x:P,y:N,width:g.columnWidthsPt.reduce((he,we)=>he+we,0),height:Pe.box.y+Pe.box.height-N}},g.columnWidthsPt,0,D),Re=fe;if(h&&g.float&&b){let we=Rl(g.float,fe.box.height,b)-fe.box.y;if(Re=fl([fe],we)[0],Math.abs(we)>.001){let Oe=Te=>{for(let Ce of Te)if(Ce.kind==="paragraph")f(Ce.paragraphId,we);else for(let ze of Ce.rows)for(let xe of ze.cells)Oe(xe.blocks);};for(let Te of fe.rows)for(let Ce of Te.cells)Oe(Ce.blocks);}}m(Re),O?.end(),I+=1,L=[],A=[],_=new Map,U=void 0;},H=(Y,V)=>{if(k.length===0)return;let ce=Y?te?.():void 0;if(ce===null)return;let le=ce?.headerHeight??v;if(Y&&t.cursorY+le>y()+.001)return;t.cursorY+le>y()+.001&&t.cursorY>0&&(J(),a(),P=w(),N=t.cursorY);let Pe=!Y&&t.cursorY+le>y()+.001?t.unreservedContentHeight?.()??y():y();if(!Y&&t.cursorY+le>Pe+.001){S=true,C=false;return}if(Y&&!ce&&V&&!V(t.cursorY+le))return;let fe=gn(g,k[0],ce?.deps??F);for(let Re of k){let he=Dn(Re,g.columnWidthsPt,P,t.cursorY,Y,0,fe,g.cellSpacingPt);if(he.bottom>Pe+.001)throw new Rr("table-row-overheight",`Table header row ${Re.id} overflowed the page content box`);L.push(he.record),re(he.record,fe),A.push(Re),t.cursorY=he.bottom;}U=ce;},Q=Y=>{J(),a(),P=w(),N=t.cursorY,C&&H(true,Y);};S||(O&&(t.cursorY=O.clear(t.cursorY,()=>v,k,y()),N=t.cursorY),H(false));let T=g.rows.slice(S?0:k.length),G=new Set,ee=Ku(g,()=>P,0,F,T,Y=>G.has(Y.id)),K,q=0,se=0,ie=(Y,V)=>{let ce=V??T[Y];L.length===0?G.add(ce.id):G.delete(ce.id),K=jw(ee,Y,t.cursorY,y()),se=K?.heightFloorPt??R(ce,t.cursorY,L.length===0?gn(g,ce,F):F),q=K?.heightFloorPt??(U?.bodyRowId===T[Y]?.id?U.bodyHeight:se);};for(let[Y,V]of T.entries()){S&&Y>=k.length&&(C=true);let ce=j;if(j=false,O){let xe=L.length===0?gn(g,V,F):void 0,Xe=Me=>R(V,Me,xe);t.cursorY=O.clear(t.cursorY,Xe,[V],y()),L.length===0&&(N=t.cursorY);}ie(Y,V);let le,Pe=Ag(V),fe=false,Re=0,he=false,we=()=>({...le??(U?.bodyRowId===V.id?U.deps:L.length===0?gn(g,V,F):F),rowAtPageStart:he||t.cursorY<=.001||L.length>0&&L.every(xe=>xe.isHeaderRepeat)});te=()=>fe?void 0:fI(g,k,V,P,t.cursorY,y(),v,se,F);let Oe=()=>q<=Math.max(y(),t.unreservedContentHeight?.()??0)+.001,Te=K!==void 0&&K.detachedSpanHeightPtByCellId===void 0,Ce=xe=>{let Xe=y(),Me=Xe-xe;return Me<=.001?false:!fe&&q<=Me+.001?true:!fe&&(V.height.rule==="exact"||V.cantSplit&&Oe())?false:Ch(V,g.columnWidthsPt,P,xe,Xe,fe,0,{...F,rowAtPageStart:false},Pe,g.cellSpacingPt,{requireEveryCell:!fe&&q<=Xe+.001})},ze=()=>{if(le||fe||Te||q<=y()-t.cursorY+.001)return;let xe=Fh(g,V,P,t.cursorY,y(),we());xe&&(le=xe.deps,q=xe.height,j=true);};for(ce||ze(),(ce||!Te&&q<=y()+.001&&t.cursorY+q>y()+.001&&t.cursorY>0&&(V.cantSplit||V.height.rule==="exact"||!Ch(V,g.columnWidthsPt,P,t.cursorY,y(),false,0,we(),Pe,g.cellSpacingPt,{requireEveryCell:true})))&&(Q(Ce),he=true,ie(Y));;){if(ze(),Re+=1,Re>Ng)throw new Rr("table-row-fragment-limit",`Table row ${V.id} exceeded ${Ng} page fragments`);let xe=y()-t.cursorY;if(xe<=.001&&t.cursorY>0){if(he)throw new Rr("table-row-overheight",`Table row ${V.id} cannot fit after repeated header rows`);Q(Ce),he=true,ie(Y);continue}if(!fe&&q<=xe+.001){let vt=we(),Tt=Dn(V,g.columnWidthsPt,P,t.cursorY,false,0,vt,g.cellSpacingPt,K,y());if(Tt.bottom>y()+.001)throw new Rr("table-row-overheight",`Table row ${V.id} overflowed the page content box after placement`);let It=Tt.remainder!==null;if(L.push(Tt.record),re(Tt.record,vt),A.push(It?{...V}:V),t.cursorY=Tt.bottom,!It)break;Pe=Tt.remainder,fe=true,he=false,Q(Ce);continue}if(!fe&&(V.cantSplit||V.height.rule==="exact")){let vt=V.height.rule!=="exact"&&!Oe(),Tt=L.length>0&&L.every(Je=>Je.isHeaderRow)&&(N<=.001||L.every(Je=>Je.isHeaderRepeat));if(t.cursorY>0&&!he&&!(vt&&Tt)){Q(Ce),he=true,ie(Y);continue}let It=t.unreservedContentHeight?.()??y();if(It>y()+.001&&q<=It-t.cursorY+.001){let Je=we(),jt=Dn(V,g.columnWidthsPt,P,t.cursorY,false,0,Je,g.cellSpacingPt,K,It);if(jt.bottom<=It+.001&&jt.remainder===null){L.push(jt.record),re(jt.record,Je),A.push(V),t.cursorY=jt.bottom;break}}if(!vt)throw new Rr("table-row-overheight",V.height.rule==="exact"?`Table row ${V.id} has w:trHeight hRule=exact taller than the available page content`:`Table row ${V.id} has w:cantSplit and is taller than the available page content`)}let Xe=we(),Me=$s(V,g.columnWidthsPt,P,t.cursorY,y(),false,fe,0,Xe,Pe,g.cellSpacingPt,K);if(!Me.fitted&&t.cursorY>0&&!he){Q(Ce),he=true,ie(Y);continue}let je=t.unreservedContentHeight?.()??y();if(!Me.fitted&&t.cursorY<=.001&&!he&&je>y()+.001){Q(Ce),he=true,ie(Y);continue}if(!Me.fitted)throw new Rr(Me.nestedSplitBlocked?"table-row-split-unsupported":"table-row-overheight",Me.nestedSplitBlocked?`Table row ${V.id} contains a nested table taller than the page content box`:`Table row ${V.id} has content that cannot fit a page content box`);if(Me.bottom>y()+.001)throw new Rr("table-row-overheight",`Table row ${V.id} overflowed the page content box`);let _t=Me.remainder!==null,_e=fe||_t?{...V}:V;if(L.push(Me.record),re(Me.record,Xe),A.push(_e),t.cursorY=Me.bottom,!_t)break;Pe=Me.remainder,fe=true,he=false,Q(Ce);}}return J(),h&&(t.cursorY=x),{outOfFlow:h}}var wl="http://schemas.openxmlformats.org/wordprocessingml/2006/main",_D=32,gI=1e4,hI=1e4;function jD(e){if(e.kind!=="paragraph"||e.listItem||e.shading||e.paragraph.children.some(r=>r.kind==="paragraphProperties"?false:r.kind==="textValue"||r.namespaceUri!==wl?true:["bookmarkStart","bookmarkEnd","proofErr"].includes(r.localName)?r.children.length!==0:r.kind!=="run"||r.children.some(o=>o.kind!=="runProperties"))||e.props.some(r=>["framePr","numPr","pBdr","shd","pageBreakBefore"].includes(r.localName)))return false;let t=[e.paragraph],n=0;for(;t.length;){let r=t.pop();if(++n>hI||r.namespaceUri!==wl||["ins","del","moveFrom","moveTo","pPrChange","rPrChange","vanish","webHidden"].includes(r.localName)||n+t.length+r.children.length>hI)return false;for(let o of r.children){if(o.kind==="textValue")return false;t.push(o);}}return true}var yI=new WeakMap;function HD(e){let t=yI.get(e);if(t!==void 0)return t;let n=WD(e);return yI.set(e,n),n}function WD(e){let t=[e],n=0;for(;t.length;){let r=t.pop();if(++n>gI||r.namespaceUri!==wl||r!==e&&r.kind==="table"||["vMerge","hMerge","tblHeader","drawing","pict","object","fldChar","fldSimple","instrText","footnoteReference","endnoteReference","ins","del","moveFrom","moveTo","sdt","altChunk","framePr"].includes(r.localName)||r.localName==="tblOverlap"&&!r.attributes.some(o=>o.namespaceUri===wl&&o.localName==="val"&&o.value==="overlap")||n+t.length+r.children.length>gI)return false;for(let o of r.children)o.kind!=="textValue"&&t.push(o);}return true}function zD(e){let t;for(let a of e.children)if(a.kind==="tableProperties"){if(t)return false;t=a;}if(!t)return false;let n=t.children.filter(a=>a.kind!=="textValue"&&a.localName==="tblpPr");if(n.length!==1)return false;let r=n[0];if(r.kind==="textValue"||r.namespaceUri!==wl||r.children.length)return false;let o=new Set;for(let a of r.attributes){if(a.namespaceUri!==wl||o.has(a.localName))return false;if(o.add(a.localName),a.localName==="vertAnchor"){if(a.value!=="text")return false}else if(a.localName==="horzAnchor"){if(!["text","margin","page"].includes(a.value))return false}else if(a.localName==="tblpXSpec"){if(!["left","center","right","inside","outside"].includes(a.value))return false}else if(a.localName==="tblpX"||a.localName==="tblpY"){if(!/^-?\d+$/.test(a.value)||Math.abs(Number(a.value))>31680)return false}else if(["leftFromText","rightFromText","topFromText","bottomFromText"].includes(a.localName)){if(!/^\d+$/.test(a.value)||Number(a.value)>31680||(a.localName==="topFromText"||a.localName==="bottomFromText")&&Number(a.value)!==0)return false}else return false}return o.has("vertAnchor")}function bI(e,t,n,r,o,a){let i=e.length-1,l=e[i];if(!l||!jD(l))return;let s=i,d=[],c=[l.key];for(let u=i-1;u>=0;u-=1){let f=e[u];if(f.kind!=="table")break;if(!HD(f.table)||!zD(f.table))return;let p=Jt(f.table,t,0,n,r,o,a)?.float;if(!p||p.vertAnchor!=="text"||p.ySpec||d.length>=_D)return;d.push(f.table),c.push(f.key),s=u;}if(d.length)return {start:s,anchorIndex:i,tables:d.reverse(),token:ae(c)}}function xI(e,t,n){return e.map(r=>{let o=t.find(a=>a.table.id===r.tableId);return {...r,floatingWrap:{anchorId:o.anchorId,columnIndex:n,float:o.float,sourceOrder:o.sourceIndex}}})}function SI(e,t){let{cursorY:n,anchorHeight:r,contentWidth:o,contentHeight:a}=t;if(!Number.isFinite(r)||r<=0||n+r>a+.001)return;let i=e.tables.map(m=>Jt(m,o,0,t.styleCascade,t.displayMode,t.authorFilter,t.deps.compatibilityMode)),l=[],s=n+r,d=0,c={...Qt(t.deps),onCellBreakKey:void 0,borderOwnershipBudget:yr(),vMergeResolveBudget:Yr(),nextLineId:()=>`terminal-table-probe-${d++}`};for(let m=0;m<i.length;m+=1){let p=i[m];if(!p?.float||!p.rows.length)return;let g=p.columnWidthsPt.reduce((y,w)=>y+w,0),h=Ba(p,t.frames,t.deps.compatibilityMode),x=n+p.float.yPt;if(![h,x,g].every(Number.isFinite)||g<=0||h<0||h+g>o+.001||x<n||x>a)return;let b=Da(p,h,x,0,e.tables[m].id,0,c);if(!Number.isFinite(b.bottom)||b.bottom>a+.001||l.some(y=>h<y.right&&h+g>y.left&&x<y.bottom&&b.bottom>y.top))return;s=Math.max(s,b.bottom),l.push({left:h,top:x,right:h+g,bottom:b.bottom});}let u=[];return {fragments:i.map((m,p)=>{let g=[];u.push(g);let{left:h,top:x}=l[p];return {...Da(m,h,x,0,e.tables[p].id,0,{...t.deps,onCellBreakKey:y=>g.push(y)}).fragment,outOfFlow:true}}),bottom:s,cellBreakKeys:u}}function Mh(e,t,n,r){let o=`line:${e}:${n}:${t}`;return r===void 0?o:`${o}:occ:${r}`}function PI(e){if(e.delta===0)return true;let t=e.delta%2===0||!e.evenAndOddHeaders&&!e.parityDependent&&!e.usedPageParity,r=!(e.titlePage||e.continuedInsets||e.firstPageBorders)||e.markPageCount>0&&e.delta+e.markPageCount>0;return t&&r&&!e.hasNoteReserves&&!e.hasExclusionZones}function RI(e){let{geometry:t,columns:n,columnRegionBottom:r,continuedInsets:o}=e,a=`|cols:${n.widths.join(",")};${n.gaps.join(",")};${n.separator?1:0}${r!==void 0?`;bal:${r}`:""}`,i=o?`|cont:${o.top},${o.height}`:"",l=e.sectionPageBorders?`|pgb:${bu(e.sectionPageBorders)}`:"",s=`${t.width}x${t.height}|${t.margin.top},${t.margin.right},${t.margin.bottom},${t.margin.left}|fs:${e.flowStartY},${e.spaceBeforeCarry}${i}${e.furnitureContext}`,d=e.sectionMarkCollapses?"|smc":"";return c=>`${s}${c}${a}${l}${d}`}var kl=1;function bf(e,t){let n=Math.max(kl,t),r=Math.max(1,Math.min(12,Math.floor(e.count))),o=e.definitions??[],a=e.equalWidth===false&&o.length===r&&o.every(c=>c.widthTwips>0),i,l;if(a){i=o.map(m=>Math.max(kl,chunkCB6RQ3GD_cjs.hf(chunkCB6RQ3GD_cjs.ff(m.widthTwips)))),l=o.slice(0,-1).map(m=>Math.max(0,chunkCB6RQ3GD_cjs.hf(chunkCB6RQ3GD_cjs.ff(m.gapTwips))));let c=l.reduce((m,p)=>m+p,0),u=Math.max(r*kl,n-c),f=i.reduce((m,p)=>m+p,0);if(f>u){let m=u/f;i=i.map(p=>Math.max(kl,p*m));}}else {let c=Math.max(0,chunkCB6RQ3GD_cjs.hf(chunkCB6RQ3GD_cjs.ff(e.gapTwips))),u=Math.min(c,Math.max(0,(n-r*kl)/(r-1||1)));l=Array.from({length:Math.max(0,r-1)},()=>u);let f=Math.max(kl,(n-l.reduce((m,p)=>m+p,0))/r);i=Array.from({length:r},()=>f);}let s=[],d=0;for(let c=0;c<r;c+=1)s.push(d),d+=i[c]+(l[c]??0);return {count:r,widths:i,gaps:l,lefts:s,separator:e.separator===true&&r>1}}var GD=8,vl=[],wI=new TextEncoder;function $D(e,t){let n=chunkCB6RQ3GD_cjs.a(wI.encode(e===void 0?"undefined":`string:${e}`)),r=chunkCB6RQ3GD_cjs.a(wI.encode(t));return `control-producer:v1:${n}:${r}`}function Bh(e,t){let n=vl.findIndex(o=>o.base===e&&o.token===t);if(n>=0){let[o]=vl.splice(n,1);return vl.push(o),o.producer}let r=$D(e,t);return vl.push({base:e,token:t,producer:r}),vl.length>GD&&vl.shift(),r}var kI=new WeakMap,vI=null;function KD(e,t,n,r,o,a,i,l){return e!=null&&e.base===t&&e.noteMarks===n&&e.defaultTabStopPt===r&&e.displayMode===o&&e.authorFilter===a&&e.pageNumberFormat===i&&e.compatibilityMode===l}function TI(e,t,n,r,o,a,i,l){let s=t?kI.get(t):vI;if(KD(s,e,n,r,o,a,i,l))return s.producer;let d=(e??"unversioned-measurer")+(t?`|sc:${t.cacheToken}`:"")+(n?`|nm:${m0(n)}`:"")+(r!==void 0?`|dts:${r}`:"")+(o===We?"":`|rev:${o}`)+(a?`|reviewers:${a.cacheKey}`:"")+(i!==void 0?`|pnf:${i}`:"")+(l!==void 0?`|compat:${l}`:""),c={base:e,noteMarks:n,defaultTabStopPt:r,displayMode:o,authorFilter:a,pageNumberFormat:i,compatibilityMode:l,producer:d};return t?kI.set(t,c):vI=c,d}var xf=class{constructor(t){this.dependencies=t;}dependencies;capture(t){let{paragraphFrames:n,positionedFlow:r,pendingFloatIds:o,floatSignals:a,anchorPageDeferCounts:i}=this.dependencies;return {pageCount:t.pageCount,pageFragments:[...t.pageFragments],pendingAnchoredDrawings:[...t.pendingAnchoredDrawings],pendingParagraphFrames:n.checkpoint(),deferredAnchoredDrawings:t.deferredAnchoredDrawings.length>0?[...t.deferredAnchoredDrawings]:UT,anchorPageDeferCounts:i.size>0?new Map(i):XT,...r.checkpoint(o,a),cursorY:t.cursorY,lineCounter:t.lineCounter,previousSpaceAfter:t.previousSpaceAfter,flowColumnIndex:t.flowColumnIndex}}restore(t){let{paragraphFrames:n,positionedFlow:r,pendingFloatIds:o,floatSignals:a,anchorPageDeferCounts:i}=this.dependencies;n.restore(t.pendingParagraphFrames),i.clear();for(let[l,s]of t.anchorPageDeferCounts)i.set(l,s);return r.restore(t,o,a),{pageCount:t.pageCount,pageFragments:[...t.pageFragments],pendingAnchoredDrawings:[...t.pendingAnchoredDrawings],deferredAnchoredDrawings:[...t.deferredAnchoredDrawings],cursorY:t.cursorY,lineCounter:t.lineCounter,previousSpaceAfter:t.previousSpaceAfter,flowColumnIndex:t.flowColumnIndex}}};function II(e,t){return e.cursorY===t.cursorY&&e.previousSpaceAfter===t.previousSpaceAfter&&e.flowColumnIndex===t.flowColumnIndex&&KT(e.pageFragments,t.pageFragments)&&vh(e.pendingParagraphFrames,t.pendingParagraphFrames)&&kh(e.pendingAnchoredDrawings,t.pendingAnchoredDrawings)&&kh(e.deferredAnchoredDrawings,t.deferredAnchoredDrawings)&&YT(e.anchorPageDeferCounts,t.anchorPageDeferCounts)&&wh(e,t)}function OI(e,t,n){return ae([...e].map(([r,o])=>`${n}${r}=${o.flowHeight}`).sort())}function MI(e){return e?`hf:${e.titlePage?1:0}${e.evenAndOddHeaders?1:0};h:${OI(e.headers,false,"h")};f:${OI(e.footers,false,"f")}`:""}function Sf(e,t,n){if(e.sectionFurniture)return e.sectionFurniture[t];if(t===n-1)return e.furniture}function UD(e,t){let n=e.map((r,o)=>{let a=Io(r.properties),i=Sf(t,o,e.length),l=r.properties.pageNumbering,s=l?`pn:${ae([l.start??"",l.fmt??"",l.chapStyle??"",l.chapSep??""].map(String))}`:"pn:",d=r.properties.columns,c=`pgb:${bu(r.properties.pageBorders)}`,u=`cols:${d.count},${d.gapTwips},${d.equalWidth===false?0:1},${d.separator?1:0};${(d.definitions??[]).map(f=>`${f.widthTwips}/${f.gapTwips}`).join(",")}`;return ae([r.properties.breakType,a.width,a.height,a.margin.top,a.margin.right,a.margin.bottom,a.margin.left,a.headerDistance??36,a.footerDistance??36,MI(i),s,u,c].map(String))});return ae(n)}function XD(e,t,n){if(!e)return null;let r=e.multi;if(r&&r.structureKey===t&&r.sections.length===n)return r;let o={structureKey:t,sections:Array.from({length:n},()=>jo()),spans:[],previousRemapped:[],previousFinalized:null,previousPageCount:-1,previousPageRefToken:""};return e.multi=o,o}function YD(e){return e!=="continuous"}function qD(e,t){return e.width===t.width&&e.height===t.height}function ZD(e){let t=e.contentBox.y-e.box.y;return {top:t,bottom:e.box.height-t-e.contentBox.height,height:e.contentBox.height}}function JD(e,t){if(t.fragments.length===0&&!t.columnSeparators?.length&&!t.anchoredDrawings?.length)return e;let n=e.anchoredDrawings||t.anchoredDrawings?Object.freeze([...e.anchoredDrawings??[],...t.anchoredDrawings??[]]):void 0;return {...e,fragments:t.fragments.length>0?[...e.fragments,...t.fragments]:e.fragments,...(e.columnSeparators?.length||t.columnSeparators?.length)&&{columnSeparators:[...e.columnSeparators??[],...t.columnSeparators??[]]},...n?{anchoredDrawings:n}:{}}}function FI(e,t,n){e.previous=t,e.startLineCounter=0,e.endLineCounter=n,e.keys=[],e.checkpoints=[],e.context="",e.producer="";}var CI=new WeakMap;function QD(e,t,n,r,o,a){let i=CI.get(e);if(i&&i.globalIndex===t&&i.sheetY===n&&i.pageNumber===r&&i.sectionPageCount===o&&i.format===a)return i.published;let l=Va(e,t,n),s=el([l],r,o,a)[0];return CI.set(e,{globalIndex:t,sheetY:n,pageNumber:r,sectionPageCount:o,format:a,published:s}),s}function BI(e,t,n,r,o){let{session:a,...i}=r,l=UD(t,r),s=XD(a,l,t.length),d=i.cache&&i.retainKeys!==false?i.retainKeys??(i.cache.retentionPassDue?.()??true?new Set:false):false,c=()=>{d&&!i.retainKeys&&i.cache?.retain(d);},u=[],f=[],m=[],p=0,g=0,h=0,x=0,b=0,y=0,w=0,P=true,R=[],O=null,F="",k=1;for(let I=0;I<t.length;I+=1){let N=t[I],L=e.slice(N.blockStart,N.blockEndExclusive),D=Io(N.properties),A=Sf(r,I,t.length),_=u.length,E=p,j=s?.spans[I],U=MI(A);if(L.length===0&&!YD(N.properties.breakType)){m.push({startIndex:_,pageCount:0,sheetY:E,remappedPages:[],sourcePages:[]});continue}let te=I>0&&N.properties.breakType==="continuous"&&u.length>0&&P&&O!==null&&qD(O,D)&&F===U,re=s?.sections[I],J=t[I+1]?.properties.breakType==="continuous",H=N.properties.columns.count>1&&J,Q=te?ZD(u[u.length-1]):void 0,T=N.properties.pageNumbering?.fmt,G=te?u[u.length-1]?.pageFieldSource?.format:void 0,ee=te&&!Fo("PAGE",G)?G:T,K=o(L,n,{...i,retainKeys:d,geometry:D,furniture:A,sectionColumns:N.properties.columns,paragraphLineUnitPt:(N.properties.gridLinePitchTwips??240)/20,...N.properties.pageBorders?{sectionPageBorders:N.properties.pageBorders}:{},...H?{balanceColumns:H}:{},...J?{sectionMarkCollapses:true}:{},lineCounterStart:g,pageIndexStart:te?_-1:_,spaceBeforeCarry:w,...te?{flowStartY:y}:{},...Q?{continuedPageInsets:Q}:{},...ee!==void 0?{bodyPageNumberFormat:ee}:{},...re?{session:re}:{}});R.push({startIndex:_,at:K.overflowShellAt}),g=K.lineCounter,y=K.endCursorY,w=K.endSpaceAfter,P=K.endsOpenPage,O=D,F=U,re?(h+=re.stats.placed,x+=re.stats.total):(h+=L.length,x+=L.length);let q=re!==void 0&&re.stats.placed===0&&re.stats.reusedPages===K.pages.length&&j!==void 0&&j.pageCount===K.pages.length&&j.sourcePages.length===K.pages.length&&j.sourcePages.every((fe,Re)=>fe===K.pages[Re]),se=j!==void 0&&j.startIndex===_&&j.sheetY===E&&j.remappedPages.length===K.pages.length,ie=N.properties.pageNumbering,Y=ie?.start!==void 0?ie.start:k,V=ie?.fmt,ce=j?.remappedPages[0],le=j===void 0||j.remappedPages.length===0||ce?.pageFieldSource!==void 0&&ce.pageFieldSource.pageNumber===Y&&ce.pageFieldSource.sectionPageCount===j.remappedPages.length&&ce.pageFieldSource.format===V,Pe;if(te){let fe=u.length-1,Re=u[fe],he=JD(Re,K.pages[0]);if(he!==Re){u[fe]=he;let Te=f.lastIndexOf(Re);Te!==-1&&(f[Te]=he);}let we=[];for(let Te of K.pages.slice(1)){let Ce=Va(Te,u.length+we.length,p);we.push(Ce),p=Ce.box.y+Ce.box.height+Ka;}let Oe=we.length+1;Pe=el(we,Y+1,Oe,V);for(let Te of Pe)u.push(Te),f.push(Te);k=Y+Oe;}else if(q&&se&&le){Pe=j.remappedPages,b+=Pe.length;for(let fe of Pe)u.push(fe),f.push(fe),p=fe.box.y+fe.box.height+Ka;k=Y+Pe.length;}else {let fe=[];for(let Re of K.pages){let he=QD(Re,u.length+fe.length,p,Y+fe.length,K.pages.length,V);fe.push(he),p=he.box.y+he.box.height+Ka;}Pe=fe;for(let Re of Pe)u.push(Re),f.push(Re);k=Y+Pe.length;}m.push({startIndex:_,pageCount:Pe.length,sheetY:E,remappedPages:Pe,sourcePages:K.pages});}if(u.length===0){let I=Io(t[0]?.properties??Yn),N=o([],n,{...i,retainKeys:d,geometry:I,paragraphLineUnitPt:(t[0]?.properties.gridLinePitchTwips??240)/20,sectionColumns:t[0]?.properties.columns??Yn.columns,...t[0]?.properties.pageBorders?{sectionPageBorders:t[0].properties.pageBorders}:{}});c();let L=Co({revision:n,pages:N.pages});return ad(L,(D,A,_)=>N.overflowShellAt(A,_)),s&&(s.spans=[],s.previousRemapped=N.pages,s.previousFinalized=L,s.previousPageCount=L.pages.length,s.previousPageRefToken=Wp(N.pages)),a&&(FI(a,L,g),a.stats={placed:0,total:0,reusedPages:0,fullPasses:a.stats.fullPasses+1}),L}let v=Co({revision:n,pages:u}),S=v,C=Wp(u);if(s?.previousFinalized&&s.previousPageCount===v.pages.length&&s.previousRemapped.length===f.length&&s.previousPageRefToken===C){let I=s.previousFinalized.pages,N=s.previousRemapped,L=v.pages.map((D,A)=>f[A]===N[A]&&I[A]?I[A]:D);S={...v,pages:L};}return s&&(s.spans=m,s.previousRemapped=f,s.previousFinalized=S,s.previousPageCount=S.pages.length,s.previousPageRefToken=C),a&&(FI(a,S,g),a.stats={placed:h,total:x||1,reusedPages:b,fullPasses:a.stats.fullPasses+(h===x&&b===0?1:0)}),ad(S,(I,N,L)=>{let D=R[0];for(let _ of R)_.startIndex<=I&&(D=_);return (D??R[R.length-1])?.at(N,L)}),c(),S}function LI(e,t,n){let r=t.lefts.map(()=>n);for(let o of e.fragments){if(kn(o))continue;let a=0;for(let i=t.count-1;i>=0;i-=1)if(o.box.x+.5>=t.lefts[i]){a=i;break}r[a]=Math.max(r[a],o.box.y+o.box.height);}return r}var e1=.25,t1=20;function EI(e,t,n,r){let o=bf(n.sectionColumns??Yn.columns,n.geometry.width-n.geometry.margin.left-n.geometry.margin.right);if(!n.balanceColumns||o.count<2||n.columnRegionBottom!==void 0)return n.session&&(n.session.balanceLimit=null),r(e,t,n);let a=n.session,i=n.flowStartY??0,l={...n,session:void 0},s=h=>{let x=h.pages[0],b=x?Math.max(...LI(x,o,i)):h.endCursorY;return a&&(a.endCursorY=b),{...h,endCursorY:b}};if(a&&a.balanceLimit!==null){let h=a.balanceLimit,x=r(e,t,{...n,columnRegionBottom:h});if(a.stats.placed===0&&a.stats.reusedPages===x.pages.length)return a.balanceLimit=h,s(x)}let d=r(e,t,l);if(d.pages.length!==1||!d.endsOpenPage)return a&&(a.balanceLimit=null),r(e,t,n);let c=LI(d.pages[0],o,i),u=c.reduce((h,x)=>h+Math.max(0,x-i),0);if(u<=0)return a&&(a.balanceLimit=null),r(e,t,n);let f=i+u/o.count,m=Math.max(...c)+.01,p=h=>{try{let x=r(e,t,{...l,columnRegionBottom:h});return x.pages.length===1&&x.endsOpenPage}catch{return false}};for(let h=0;h<t1&&m-f>e1;h+=1){let x=(f+m)/2;p(x)?m=x:f=x;}let g=r(e,t,{...n,columnRegionBottom:m});return a&&(a.balanceLimit=m),s(g)}var r1=2,NI=new WeakMap;function C8(e,t,n){let r=n.displayMode??We,o=n.revisionAuthorFilter,a=An(e,r,o),i=Ca(e,a).sections,l=xl(e),s=vx(e),d={...n,fieldCodeRanges:n.showFieldCodes?FT(e):void 0,tocLinkStyleRanges:s,displayMode:r,producer:Bh(Bh(n.showFieldCodes?`${n.producer??""}|field-codes`:n.producer,l),Ix(s)),tocFieldChromeParagraphIds:n.tocFieldChromeParagraphIds??rv(e),emptyTocPlaceholderParagraphIds:n.emptyTocPlaceholderParagraphIds??ov(e),emptyTocSuppressedResultParagraphIds:n.emptyTocSuppressedResultParagraphIds??av(e)},c=n.drawingSourceOrder;!c&&n.inlineDrawingLayout&&(c=hk(e,n.inlineDrawingLayout));let u=c?{...d,drawingSourceOrder:c}:d,f=n.session?RR(u,a,n.session):Ui(u,a),m=Lp(a,f.listItems,n.notes?{footnotesPart:n.notes.footnotesPart,endnotesPart:n.notes.endnotesPart}:void 0,n.notes?ER(n.notes,i):void 0,r,o),p=m===null?f:{...f,refFields:m},g=b=>{if(i.length>1)return BI(a,i,t,b,Pf);let y=i[0],w=b.geometry??(y?Io(y.properties):ic),P=Sf(b,0,i.length)??b.furniture,R=y?.properties.pageNumbering,O=Pf(a,t,{...b,geometry:w,furniture:P,paragraphLineUnitPt:(y?.properties.gridLinePitchTwips??240)/20,sectionColumns:y?.properties.columns??Yn.columns,...y?.properties.pageBorders?{sectionPageBorders:y.properties.pageBorders}:{},...R?.fmt?{bodyPageNumberFormat:R.fmt}:{}}),F=R,k=th({revision:O.layout.revision,pages:el(O.pages,F?.start??1,O.pages.length,F?.fmt)},O.layout),v=Co(k);return ad(v,(S,C,I)=>O.overflowShellAt(C,I)),b.session&&(b.session.multi=null,b.session.previous=v),v},h=b=>{let y=b;if(b.displayMode!==r){let{contentControls:P,controlContextToken:R,...O}=b;y={...O,displayMode:r,...P!==void 0?{contentControls:P}:{},...R!==void 0?{controlContextToken:R}:{}};}let w=nh(y,e,l);return n.session&&(n.session.previous=w),w};if(!n.notes)return n.session&&(n.session.notes=null,n.session.notePageBottomReserves=null),h(g(p));let x=hT(n.notes,m?{...n,refFields:m}:n);return h(pT(e,i,p,x,g))}function o1(e,t,n){let r=n.geometry,o=n.cache?.keyFor?.bind(n.cache)??yc,a=r.width-r.margin.left-r.margin.right,i=bf(n.sectionColumns??Yn.columns,a);if((n.inlineDrawingLayout||iI(e,n.styleCascade)||QT(e,a,n.styleCascade,n.displayMode??We,n.revisionAuthorFilter,n.compatibilityMode))&&n.drawingExclusionPass===void 0&&!n.drawingExclusionConverged){let B=pe=>{let Le=n.inlineDrawingLayout?.projectionForAtom?.(pe)?.drawingNodeId??pe;return n.drawingSourceOrder?.get(Le)},$=Object.freeze({columnCount:i.count,columnGapPt:i.gaps[0]??0,contentWidth:a,columnLefts:i.lefts,columnWidths:i.widths}),ne=(pe,Le=false)=>{let Pt=n.inlineDrawingLayout?Le?XS(pe,n.inlineDrawingLayout,n.drawingLayoutEpoch,a,n.drawingSourceOrder,$):Jm(pe,n.inlineDrawingLayout,a,B,$):new Map;return lI(pe,eI(pe,Pt,$),$)},me=new Map,ve=null,He=false,Ve=new Set,ke=pe=>(Pf(e,t,pe)),qe=pe=>{let Le=Ih(pe.pages);if(Le.size===0)return null;let Pt=n.paragraphFrameFallbackRound??0,tt=new Set(n.disabledParagraphFrameIds);for(let oo of Pt>=3?Ih(pe.pages,true):Le)tt.add(oo);let $e=n.session?jo():void 0,ln=Pf(e,t,{...n,session:$e,disabledParagraphFrameIds:tt,paragraphFrameFallbackRound:Pt+1});return n.session&&$e&&bh(n.session,$e),ln},Fe=n.session?.previous?.pages;if(Fe){me=ne(Fe,true),ve=ke({...n,drawingExclusionPass:0,drawingExclusionZonesByPage:me});let pe=qe(ve);if(pe)return pe;if(ve.pages===Fe)return ve;let Le=ne(ve.pages,true);if(Zc(me,Le))return ve;me=new Map(Le),Ve.add(Jc(Le));}let St=(pe,Le)=>(n.session&&Le&&bh(n.session,Le),pe),On=pe=>{let Le=n.session?jo():void 0;return St(ke({...n,session:Le,drawingExclusionConverged:true,drawingExclusionZonesByPage:pe}),Le)};for(let pe=0;pe<xo;pe+=1){let Le=n.session?jo():void 0;ve=ke({...n,session:Le,drawingExclusionPass:pe,drawingExclusionZonesByPage:me});let Pt=qe(ve);if(Pt)return Pt;let tt=ne(ve.pages);if(tt.size===0)return pe===0&&me.size===0?St(ve,Le):On(tt);if(Zc(me,tt))return St(ve,Le);let $e=Jc(tt);if(Ve.has($e)){He=true,me=tt;break}Ve.add($e),me=new Map(tt);}if(!He)for(let pe=0;pe<r1&&!He;pe+=1){let Le=n.session?jo():void 0;ve=ke({...n,session:Le,drawingExclusionPass:xo+pe,drawingExclusionZonesByPage:me});let Pt=qe(ve);if(Pt)return Pt;let tt=ne(ve.pages),$e=Jc(tt);if(Zc(me,tt))return St(ve,Le);if(Ve.has($e)){He=true,me=tt;break}Ve.add($e),me=new Map(tt);}if(!He)throw new va(`wrap exclusion reflow did not converge within ${xo} passes`);return On(me)}let l=n.measurer,s=n.cache,d=n.styleCascade,c=n.listItems,u=n.refFields,f=n.defaultTabStopPt,m=n.displayMode??We,p=n.revisionAuthorFilter,g=m==="all-markup",h=n.tocFieldChromeParagraphIds,x=n.emptyTocPlaceholderParagraphIds,b=n.emptyTocSuppressedResultParagraphIds,y={chrome:h,placeholder:x,suppressed:b},w=MT(y),P=TI(n.disabledParagraphFrameIds?.size?ae([n.producer??"",ae([...n.disabledParagraphFrameIds].sort())]):n.producer,d,n.noteMarks,f,m,p,n.bodyPageNumberFormat,n.compatibilityMode),R=i.widths[0],O=n.furniture,F=r.headerDistance??36,k=r.footerDistance??36,v=n.pageBottomReserves,S=n.session,C=n.lineCounterStart??0,I=zk(O,F,k),N=n.flowStartY??0,L=n.spaceBeforeCarry??0,D=n.pageIndexStart??0,A=Ev({...O?{furniture:O}:{},pageHeight:r.height,marginTop:r.margin.top,marginBottom:r.margin.bottom,headerDistance:F,footerDistance:k,pageIndexStart:D,...n.continuedPageInsets?{continuedPageInsets:n.continuedPageInsets}:{}}),_=Object.freeze(n.bodyPageNumberFormat!==void 0?{format:n.bodyPageNumberFormat}:{}),E=S?.previous?S.previous.pages.length+1:1/0,j=n.columnRegionBottom,U=n.continuedPageInsets,te=RI({geometry:r,flowStartY:N,spaceBeforeCarry:L,continuedInsets:U,furnitureContext:I,columns:i,columnRegionBottom:j,sectionPageBorders:n.sectionPageBorders,sectionMarkCollapses:n.sectionMarkCollapses}),re=te(lf(v,D,E)),J=D&1,H=false,Q=null,T=()=>{H=true;},G=[],ee=Nv({...O?{furniture:O}:{},geometry:r,headerDistance:F,footerDistance:k,pageIndexStart:D,contentWidth:a,insetsFor:A,pageCount:()=>G.length,...n.sectionPageBorders?{pageBorders:n.sectionPageBorders}:{}}),{pageBox:K,furnitureFor:q,overflowShellAt:se}=ee,ie=TT(O),Y=-1,V=Object.freeze([]),ce=()=>{let B=G.length;if(Y===B)return V;let $=n.drawingExclusionZonesByPage?.get(B)??Object.freeze([]);if(Y=B,V=$,ie){let ne=K(B),me=A(B),ve=IT({box:ne,contentBox:{x:ne.x+r.margin.left,y:ne.y+me.top,width:a,height:me.height},header:q("header",B,ne),footer:q("footer",B,ne)});ve.length&&(V=Object.freeze([...$,...ve]));}return V},le=B=>{let $=Math.max(1,A(G.length).height-B);return j!==void 0&&G.length===0?Math.max(1,Math.min($,j)):$},Pe=()=>le(v?.get(D+G.length)??0),fe=()=>le(0),Re=n.inlineDrawingLayout!==void 0,we=Re?Ju(B=>Qu(B,{measurer:l,producer:P,cache:s,styleCascade:d,...f!==void 0?{defaultTabStopPt:f}:{},compatibilityMode:n.compatibilityMode,...m?{displayMode:m}:{},...p?{revisionAuthorFilter:p}:{},...n.documentProperties?{documentProperties:n.documentProperties}:{},...n.projectLink?{projectLink:n.projectLink}:{},...n.projectFieldLink?{projectFieldLink:n.projectFieldLink}:{},showFieldCodes:n.showFieldCodes,...n.numberingIndex?{numberingIndex:n.numberingIndex}:{},inlineDrawingLayout:n.inlineDrawingLayout,drawingTokenForParagraph:n.drawingTokenForParagraph,projectionTokenForParagraph:n.projectionTokenForParagraph,projectionTokenForTable:n.projectionTokenForTable}),n.numberingIndex,d,m,p):void 0,Oe=(B,$)=>{let ne=B.kind==="paragraph"?n.drawingTokenForParagraph?.(B)||n.drawingLayoutToken||"":B.kind==="table"&&n.drawingTokenForParagraph?xk(B,n.drawingLayoutEpoch,n.drawingTokenForParagraph)||n.drawingLayoutToken||"":n.drawingLayoutToken||"",me=B.kind==="paragraph"?n.projectionTokenForParagraph?.(B)??"":B.kind==="table"&&n.projectionTokenForParagraph?n.projectionTokenForTable?.(B)??da(B,n.projectionTokenForParagraph):"",ve=we?.hostedListTokenForParagraph?.(B)??"",He=B.kind==="table"?ax(B,c):c?.get(B.id)?.cacheToken??"",Ve=He===""&&ve===""?"":ae([He,ve]),ke=u===void 0?"":B.kind==="table"?KR(B,u):u.tokenForParagraph(B.id),qe=NI.get(B);if(qe&&qe.contentWidth===$&&qe.frameEnabled===(i.count===1&&!n.disabledParagraphFrameIds?.has(B.id))&&qe.producer===P&&qe.drawingToken===ne&&qe.projectionToken===me&&qe.listToken===Ve&&qe.refToken===ke&&qe.drawingContext===Re)return qe.entry;let Fe=Jl(ne,Re),St;if(B.kind==="table")St={kind:"table",table:B,key:o({paragraph:B,properties:[...Ve?[{localName:"list",attributes:{token:Ve}}]:[],...ke?[{localName:"refFields",attributes:{token:ke}}]:[]],width:$,producer:P,drawingToken:Fe,projectionToken:`${me??""}|${n.paragraphLineUnitPt??12}`})};else {let On=c?.get(B.id),pe=Kr(B,$,d,On,void 0,false,n.paragraphLineUnitPt),Le=i.count===1&&!n.disabledParagraphFrameIds?.has(B.id)?ST(B,pe,l,d):void 0;Le&&(pe=Kr(B,Le.width,d,On,void 0,false,n.paragraphLineUnitPt));let{props:Pt,indent:tt,available:$e,alignment:ln,spacing:oo,lineSpacing:Cl,contextualSpacing:ao,styleId:Lt,outlineLevel:hd,shading:yd,inheritedRunProperties:bd,markRunProperties:zo}=pe,io=pe.borders,{tabStops:Cr,properties:Mr}=Xu(pe,f,{listToken:On?.cacheToken,hostedListToken:ve,refToken:ke});St={kind:"paragraph",...Le?{frame:Le}:{},paragraph:B,props:Pt,indent:tt,available:$e,alignment:ln,spacing:oo,lineSpacing:Cl,contextualSpacing:ao,styleId:Lt,outlineLevel:hd,borders:io,borderGroupKey:Gs({borders:io,indent:tt}),shading:yd,inheritedRunProperties:bd,markRunProperties:zo,tabStops:Cr,keeps:Eo(Pt),...On?{listItem:On}:{},key:o({paragraph:B,properties:Mr,width:$e,producer:P,drawingToken:Fe,projectionToken:`${me??""}|${n.paragraphLineUnitPt??12}`})};}return NI.set(B,{contentWidth:$,frameEnabled:i.count===1&&!n.disabledParagraphFrameIds?.has(B.id),producer:P,drawingToken:ne,projectionToken:me,listToken:Ve,refToken:ke,drawingContext:Re,entry:St}),St},Te=(n.drawingTokenForParagraph!==void 0||n.drawingLayoutToken!==void 0)&&n.drawingLayoutEpoch===void 0?null:Jl(n.drawingLayoutEpoch??"",Re),Ce=n.projectionTokenForParagraph!==void 0&&n.projectionEpoch===void 0?null:n.projectionEpoch??"",ze=NT(i.count,n.disabledParagraphFrameIds)+`|${n.paragraphLineUnitPt??12}`,xe=S?.prepass,Xe=xe!=null&&xe.framePolicy===ze&&Te!==null&&Ce!==null&&xe.drawingEpoch===Te&&xe.projectionEpoch===Ce&&xe.producer===P&&xe.contentWidth===R&&xe.styleCascade===d&&xe.listItems===c&&xe.numberingIndex===n.numberingIndex&&xe.tocToken===w&&xe.refToken===(u?.valuesToken??""),Me=Xe&&xe.bodies.length===e.length&&xe.bodies.every((B,$)=>B===e[$]),je=Me?xe:_t();function _t(){let B=Xe&&i.count===1&&!n.disabledParagraphFrameIds?xe:null,$=AT(LT(e,B,Fe=>Oe(Fe,R)),n.paragraphLineUnitPt,d),ne=$.map(Fe=>Fe.key),me=bI($,R,d,m,p,n.compatibilityMode),ve=$.map(Fe=>Fe.kind==="paragraph"&&Fe.keeps.keepNext),He=$.map(Fe=>Fe.kind==="paragraph"?c?.get(Fe.paragraph.id)?.markerText:void 0),Ve=$.map(Fe=>Fe.kind==="paragraph"?Fe.borderGroupKey:""),ke=w===""?[]:$.map(Fe=>Fe.kind==="paragraph"?BT(Fe.paragraph.id,y):""),qe=Mw(DT(qT(ne,$),$),{terminalTableGroup:me,...Nw($,d),borderGroupKeyAt:Fe=>Ve[Fe],tocVerdicts:ke,markerTextAt:Fe=>He[Fe],keepsNextAt:Fe=>ve[Fe],skipKeepNextAt:Fe=>$[Fe]?.kind==="paragraph"&&!!$[Fe].frame});return {framePolicy:ze,bodies:e,producer:P,contentWidth:R,styleCascade:d,listItems:c,numberingIndex:n.numberingIndex,drawingEpoch:Te??"",projectionEpoch:Ce??"",prepared:$,keys:ne,paragraphDocumentOrder:B&&ET(B.bodies,e)?B.paragraphDocumentOrder:Eg($,R,d,m,p,n.compatibilityMode),keepsNext:ve,markerTexts:He,tocToken:w,refToken:u?.valuesToken??"",flowKeys:qe,terminalTextTables:me}}S&&Te!==null&&Ce!==null&&!Me&&(S.prepass=je);let{prepared:_e,keys:vt,paragraphDocumentOrder:Tt,keepsNext:It,flowKeys:Je,terminalTextTables:jt}=je,wr=()=>{n.retainKeys!==false&&(n.retainKeys===void 0&&s&&!(s.retentionPassDue?.()??true)||cx(s,n.retainKeys,vt,_e.flatMap(B=>B.kind==="table"?[B.table]:[])));},an=S?.previous??null,kr=an!==null&&S!==void 0&&S.context===re&&S.producer===P&&(!S.parityDependent||S.startPageParity===J),to=i.count===1&&kr,Kt=0;if(kr){let B=Math.min(Je.length,S.keys.length);for(;Kt<B&&Je[Kt]===S.keys[Kt];)Kt+=1;}let Ke=0;if(to){let B=Math.min(Je.length,S.keys.length)-Kt;for(;Ke<B&&Je[Je.length-1-Ke]===S.keys[S.keys.length-1-Ke];)Ke+=1;}if(kr&&Kt===_e.length&&_e.length===S.keys.length){let B=th({revision:t,pages:an.pages},an),$=C+(S.endLineCounter-S.startLineCounter);return S.previous=B,S.startLineCounter=C,S.endLineCounter=$,S.startPageParity=J,S.stats={placed:0,total:_e.length,reusedPages:an.pages.length,fullPasses:S.stats.fullPasses},wr(),{layout:B,pages:B.pages,lineCounter:$,endCursorY:S.endCursorY,endSpaceAfter:S.endSpaceAfter,endsOpenPage:S.endsOpenPage,overflowShellAt:se}}let Mt=jT(_e,R,d,m,p,n.compatibilityMode),vr=new Set(Mt.map(({table:B})=>B.id)),Tn=HT(Mt,Je),nt=[],Ut=0,no=0,st=()=>i.lefts[Ut],rt=()=>i.widths[Ut],W=()=>({text:{left:st(),width:rt()},margin:{left:0,width:a},page:{left:-r.margin.left,width:r.width}}),M=()=>VT(nt,no),z=[],X=[],ue=new Map,oe=new Set,Se=[],ot=new Set,mt=0,Bt=new mf,de=N,Xt=N,Ie=0,_n=C,xt=L,Tr=[],Ol=new xf({paragraphFrames:Bt,positionedFlow:Tn,pendingFloatIds:oe,floatSignals:Se,anchorPageDeferCounts:ue}),md=()=>Ol.capture({pageCount:G.length,pageFragments:nt,pendingAnchoredDrawings:z,deferredAnchoredDrawings:X,cursorY:de,lineCounter:_n,previousSpaceAfter:xt,flowColumnIndex:Ie}),Jn=0,Ya=0,Ir=0,jn=N===0;if(to&&Kt>0&&Kt<S.checkpoints.length){let B=S.checkpoints[Kt];G.push(...an.pages.slice(0,B.pageCount)),{pageFragments:nt,pendingAnchoredDrawings:z,deferredAnchoredDrawings:X,cursorY:de,flowColumnIndex:Ie,lineCounter:_n,previousSpaceAfter:xt}=Ol.restore(B),Ut=Ie,Jn=Kt,jn=false,Ir=G.length,Tr.push(...S.checkpoints.slice(0,Kt));}let qa=(B,$,ne=[])=>{let me=A(G.length).top;for(let ve of Bt.publish({page:{x:-r.margin.left,y:-me},margin:{x:0,y:r.margin.top-me},text:{x:st(),y:$}},B,Ie,ne))nt.push(ve);},Or=i.count,ro=st,Ye=B=>Object.freeze({x:i.lefts[Ie]??0,y:B.y,width:i.widths[Ie]??R,height:B.height}),Be=()=>sI({pageNumber:D+G.length+1,onPageParityRead:T,geometry:r,insets:A(G.length),contentWidth:R,contentHeight:Pe(),ownerPartName:n.inlineDrawingLayout?.ownerPartName??chunkCB6RQ3GD_cjs.s}),Ht=()=>wa(Be()),Za=B=>{let $=n.inlineDrawingLayout?.projectionForAtom?.(B)?.drawingNodeId??B;return n.drawingSourceOrder?.get($)},Ho=B=>{if(B.length===0)return;for(let ne of B)z.some(me=>me.drawingNodeId===ne.drawingNodeId)||z.push(ne.sourceOrder===void 0&&Za(ne.drawingNodeId)!==void 0?Object.freeze({...ne,sourceOrder:Za(ne.drawingNodeId)}):ne);if(!n.inlineDrawingLayout)return;let $=HS(z,Be());if(z.splice(0,z.length,...$.drawings),$.deferred.length>0)for(let ne of $.deferred){let me=(ue.get(ne.drawingNodeId)??0)+1;ue.set(ne.drawingNodeId,me),me>=Um?z.push(qm(ne,"page-defer-exhausted")):X.push(ne);}},In=()=>{if(X.length===0)return;let B=X.map($=>$m($,de-$.y));X=[],Ho(B);},Fl=()=>{},Ja=()=>{Fl();let B=G.length,$=K(B),ne=q("header",B,$),me=q("footer",B,$),{usedBottom:ve,hasBodyPageFields:He}=Hp(nt,Xt),Ve=A(B),ke=tf(n.sectionPageBorders,r,B===0);G.push({id:`page-${B}`,index:B,box:$,contentBox:{x:$.x+r.margin.left,y:$.y+Ve.top,width:a,height:Ve.height},fragments:nt,hasBodyPageFields:He,...i.separator?{columnSeparators:i.gaps.map((qe,Fe)=>({x:i.lefts[Fe]+i.widths[Fe]+qe/2-.375,y:Xt,width:.75,height:Math.max(0,ve-Xt)}))}:{},...ke?{pageBorders:ke}:{},...z.length>0?{anchoredDrawings:GS(z)}:{},...ne?{header:ne}:{},...me?{footer:me}:{}}),nt=[],z=[],de=0,Ut=0,Ie=0,Xt=0,no=0;},uO=(B,$)=>B.kind==="paragraph"&&dI(B,$,n.inlineDrawingLayout),pd=()=>{if(Ut+1<i.count){Ut+=1,Ie=Ut,de=Xt,xt=0,no=nt.length;return}Ja(),In();},Qa={paragraphLineUnitPt:n.paragraphLineUnitPt,isolatedFloatingTableId:Mt.length===1?Mt[0].table.id:void 0,measurer:l,cache:s,producer:P,onCellBreakKey:B=>{Q?.push(B);},nextLineId:(B,$,ne,me)=>(_n+=1,Mh(B,$,ne,me)),pageOccurrenceKey:()=>String(G.length),styleCascade:d,listItems:c,...f!==void 0?{defaultTabStopPt:f}:{},compatibilityMode:n.compatibilityMode,...n.projectLink?{projectLink:n.projectLink}:{},...n.projectFieldLink?{projectFieldLink:n.projectFieldLink}:{},showFieldCodes:n.showFieldCodes,fieldCodeRanges:n.fieldCodeRanges,tocLinkStyleRanges:n.tocLinkStyleRanges,...n.documentProperties?{documentProperties:n.documentProperties}:{},bodyPageFields:_,...u?{refFields:u}:{},...n.noteMarks?{noteMarks:n.noteMarks}:{},...n.inlineDrawingLayout!==void 0?{inlineDrawingLayout:n.inlineDrawingLayout}:{},...n.drawingTokenForParagraph?{drawingTokenForParagraph:n.drawingTokenForParagraph}:n.drawingLayoutToken?{drawingLayoutToken:n.drawingLayoutToken}:{},...n.projectionTokenForParagraph?{projectionTokenForParagraph:n.projectionTokenForParagraph}:{},...n.inlineDrawingLayout?{anchorFrameBase:Be,pageContentClip:Ht,hostedStory:we,publishAnchoredDrawings:Ho,collectAnchoredDrawings:Ho,columnBoxForParagraph:Ye,onAnchorShift:(B,$)=>Wm(z,B,$),onAnchorRepublish:(B,$)=>{for(let ne=z.length-1;ne>=0;ne-=1)z[ne].anchorParagraphId===B&&z.splice(ne,1);z.push(...$);}}:{},...n.inlineDrawingLayout||ie?{pageExclusionZones:ce,paragraphOrderIndex:B=>Tt.get(B)}:{},borderOwnershipBudget:yr(),vMergeResolveBudget:Yr(),displayMode:m,...p?{revisionAuthorFilter:p}:{}},{firstLineOffsetOf:If,firstLineFloorOf:fO}=nk(c,l),{rememberBreakKey:mO,releasePlacedBreaks:Of}=Yw(s),Wo=kT({drawingLayout:n.inlineDrawingLayout,paragraphAt:B=>{let $=_e[B];return $?.kind==="paragraph"?$:void 0},paragraphOrder:Tt,paragraphIndex:B=>_e.findIndex($=>$.kind==="paragraph"&&$.paragraph.id===B),columnCount:Or}),ei=(B,$,ne=0,me,ve)=>{let He=B.paragraph.id,Ve=x?.has(He)??false,ke=n.fieldCodeRanges?.get(He)?.some(ln=>ln.suppressParagraph)||!Ve&&((h?.has(He)??false)||(b?.has(He)??false)),qe=B.available,Fe=ro(),St=me??de;if(me===void 0&&ne===0&&!B.frame){let ln=_e[$-1],oo=B.styleId!==null&&Ea(B.paragraph,-1,ln,d)===B.styleId,Cl=B.contextualSpacing&&oo?0:B.spacing.before,ao=B.borderGroupKey!==""&&ln?.kind==="paragraph"&&ln.borderGroupKey===B.borderGroupKey;St+=rm(Cl,xt,de===0&&!M(),jn||Gl(B.props))+fo(ao?void 0:B.borders.top);}let On=B.frame?[]:ce(),pe=Wo.select(B,$,Ie,On,{omittedAnchor:ve,spaceBefore:Math.max(0,St-de)}),Le=Fe===0?pe:ji(pe,Fe,0),Pt=fr(Le),tt=St-Wo.displacement(G.length,He),$e=null;return s&&!ke&&($e=Xw(B.key,{exclusionToken:Pt,paragraphStartY:St,anchorParagraphStartY:tt,columnIndex:Ie,startOffset:ne}),mO(He,$e)),gl({compatibilityMode:n.compatibilityMode,paragraph:B.paragraph,paragraphId:He,indentLeft:B.indent.left,available:qe,measurer:l,cache:s,cacheKey:$e,formatting:B,producer:P,styleCascade:d,tabStops:B.tabStops,flow:{firstLineOffset:ne===0?If(B):0,...ne===0?fO(B):{},startOffset:ne,marginExtent:{left:0,right:B.indent.left+qe+B.indent.right},...n.projectLink?{projectLink:n.projectLink}:{},...n.projectFieldLink?{projectFieldLink:n.projectFieldLink}:{},showFieldCodes:n.showFieldCodes,fieldCodeRanges:n.fieldCodeRanges?.get(He),tocLinkStyleRanges:n.tocLinkStyleRanges?.get(He),...n.documentProperties?{documentProperties:n.documentProperties}:{},bodyPageFields:_,...u?{refFields:u}:{},displayMode:m,...p?{revisionAuthorFilter:p}:{},...n.noteMarks?{noteMarks:n.noteMarks}:{},...n.inlineDrawingLayout?{inlineDrawingLayout:n.inlineDrawingLayout}:{},contentLeft:0,contentRight:Or>1?rt():B.indent.left+qe+B.indent.right,paragraphStartY:St,anchorParagraphStartY:tt,...Le.length>0?{pageExclusionZones:Le}:{},...ke?{suppressEmptyPlaceholderLine:true}:{}}})},Vh=(B,$)=>Wo.select(B,$,Ie,ce(),{placement:true}),Gh=(B,$,ne,me,ve,He,Ve)=>{let ke=Vh(B,$);return n.inlineDrawingLayout?wT({paragraph:B.paragraph,paragraphId:B.paragraph.id,drawingLayout:n.inlineDrawingLayout,contentLeft:Or>1?ro():0,contentRight:Or>1?ro()+rt():B.indent.left+B.available+B.indent.right,paragraphStartY:He-Wo.displacement(G.length,B.paragraph.id),columnIndex:Ie,displayMode:m,...p?{revisionAuthorFilter:p}:{},pageZones:ke,brokenLines:ne,lineIndex:me,fragmentFirstLine:ve,appliedSkipByLineIndex:Ve}):ke},pO=(B,$,ne,me,ve,He,Ve,ke)=>{if(RT(B.paragraph,n.inlineDrawingLayout,Ve))return 0;let qe=Gh(B,$,ne,me,ve,He,ke),Fe=qe.length>0?$r(de,Ve.height,qe):0,St=Ve.exclusionSkipBefore??0;return Math.max(Fe,St)},$h=B=>zT(Be(),B,r.margin.top),Kh=(B,$=de,ne=false)=>{let me=de,ve={positionTextTable:ne,cursorY:$,columnWidth:rt,columnLeft:st,contentHeight:Pe,unreservedContentHeight:fe,advanceColumn:()=>{de=ve.cursorY,pd(),ve.cursorY=de;},anchorFrames:W,verticalAnchorFrames:()=>$h($),styleCascade:d,displayMode:m,...p?{revisionAuthorFilter:p}:{},deps:Qa,compatibilityMode:n.compatibilityMode,shiftAnchor:(Ve,ke)=>Wm(z,Ve,ke),publishFragment:Ve=>nt.push(Ve)},He=pI(B,ve);return de=He.outOfFlow?me:ve.cursorY,He.outOfFlow};Fl=()=>WT(Mt,oe,nt,Se,(B,$,ne,me)=>{let ve=Ut,He=Ie;Ut=$,Ie=$,Q=[];try{let Ve=Th(B,ne,rt(),W(),nt.slice(0,me),Qa);Kh(B,Ve,!0),bc(B,Q);}finally{Q=null,Ut=ve,Ie=He;}});let Uh=(B,$)=>{let ne=_e[B];return n.sectionMarkCollapses===true&&B>0&&B===_e.length-1&&ne?.kind==="paragraph"&&!ne.frame&&!Gl(ne.props)&&Xn(ne.paragraph)!==void 0&&(c?.get(ne.paragraph.id)??ne.listItem)===void 0&&Oh(ne,$??ei(ne,B),n.inlineDrawingLayout)},Fr=false,Ff=_e.length,Cf=0;for(let B=Jn;B<_e.length;B+=1){let $=Oe(e[B],rt());if(Tr[B]=md(),to&&Ke>0&&B>=_e.length-Ke){let ye=S.checkpoints[B+(S.keys.length-_e.length)];if(ye&&II(ye,Tr[B])){let be=G.length-ye.pageCount;if(PI({delta:be,titlePage:O?.titlePage===true,evenAndOddHeaders:O?.evenAndOddHeaders===true,parityDependent:S.parityDependent,usedPageParity:H,markPageCount:ye.pageCount,continuedInsets:U!==void 0,firstPageBorders:n.sectionPageBorders!==void 0&&n.sectionPageBorders.display!=="allPages",hasNoteReserves:v!==void 0,hasExclusionZones:(n.drawingExclusionZonesByPage?.size??0)>0})){let pt=be===0?an.pages.slice(ye.pageCount):an.pages.slice(ye.pageCount).map((Ot,en)=>Va(Ot,G.length+en,K(G.length+en).y));G.push(...pt),Ir+=pt.length,Fr=true,Ff=B,Cf=be,_n+=S.endLineCounter-ye.lineCounter;break}}}if(Ya+=1,$.kind==="table"){if(ot.has($.table.id))continue;if(jt?.start===B&&i.count===1&&oe.size===0&&!nt.some(uf)&&!ce().length){let ye=_e[jt.anchorIndex];if(ye.kind==="paragraph"){let be=ei(ye,jt.anchorIndex);if(be.length===1&&be[0].spans.length===0){let Ue=gi(ye.spacing.before,xt),pt=SI(jt,{cursorY:de+Ue,anchorHeight:be[0].height,contentWidth:R,contentHeight:Pe(),frames:W(),deps:Qa,styleCascade:d,displayMode:m,authorFilter:p});if(pt){let Ot=xI(pt.fragments,Mt,Ie);for(let en of Ot)nt.push(en);for(let[en,Hn]of jt.tables.entries())ot.add(Hn.id),bc(Hn,pt.cellBreakKeys[en]);mt=pt.bottom;continue}}}}if(vr.has($.table.id)&&!ie&&!oI($.table,n.drawingExclusionZonesByPage,Qa,G.length)&&pf($.table,Math.min(...i.widths),Qa)<=Pe()){Tn.add(oe,$.table.id);continue}Q=[];try{Kh($.table)||(xt=0),bc($.table,Q);}finally{Q=null;}continue}let ne=$.frame,{paragraph:me,props:ve,contextualSpacing:He,styleId:Ve,borders:ke,shading:qe,keeps:Fe}=$,St=_e[B],On=St.kind==="paragraph"?St.spacing:$.spacing,{indent:pe,alignment:Le,markRunProperties:Pt}=$,tt=bt($.props),$e=$.available,ln=B>0?_e[B-1]:void 0,oo=_e[B+1],Cl=c?.get(me.id)??$.listItem,ao=If($),Lt=me.id,hd=$.borderGroupKey,yd=ye=>hd!==""&&ye?.kind==="paragraph"&&ye.borderGroupKey===hd,bd=yd(ln),zo=yd(oo),io=bd?void 0:ke.top,Cr=zo?ke.between:ke.bottom,Mr=fo(io),Qh=fo(Cr);Gl(ve)&&(nt.length>0||de>0)&&(Ja(),xt=0);let it=ei($,B),ey=(ye=0,be)=>{Wo.measure(G.length,B,ce(),it,Ue=>ei($,B,ye,be,Ue));};if(ey(),it.length===0){Of(Lt),Tn.note(Se,me.id,Ie,nt.length,de);continue}let ty=Xn(me)!==void 0,hO=ty&&uO($,it),Ml=ty&&!ne&&Uh(B,it),ny=()=>Ml||hO&&j===void 0&&Ut+1>=i.count,xd=Ig(Ml?{before:0,after:0}:On,He,Ve,Ea(me,-1,ln,d),Ea(me,1,oo,d)),Sd=(ye,be)=>{let Ue=Oe(me,rt());Ue.kind==="paragraph"&&(pe=Ue.indent,Le=Ue.alignment,$e=Ue.available,Pt=Ue.markRunProperties,ao=ye===0?If(Ue):0,Of(Lt),it=[...ei(Ue,B,ye,be)],ey(ye,be));},Pd=ne||Ml?{cursorY:de,previousSpaceAfter:xt,firstParagraphOfSection:jn}:null,Rd=ne?Bt.start(ne,ln?.kind==="paragraph"?ln.paragraph.id:void 0):null;if(Rd&&(de=Rd.cursorY,xt=Rd.previousSpaceAfter),!ne){let ye=gi(xd.before,xt),be=Pt.length===0?Sn:Ne(Pt,d?.themeFonts),Ue=it.length<=1?Qh:0,pt=de+ye+Mr,Ot=Gh($,B,it,0,0,pt,new Map),en=it[0]?ep(pt,it[0],Ot,Ue):l.lineMetrics(be).height+Ue,Hn=ye+Mr+Math.max(en,Bt.requiredAnchorBand(it),nI(Mt,oe,Lt,rt(),Qa,{anchorY:pt,anchorExtent:en,frames:W(),verticalFrames:$h(pt),earlier:nt}));if(Fe.keepNext&&!It[B-1]){let Yt=Cw(_e,B,xt,hn=>{let Lr=Oe(e[hn],rt());return Lr.kind==="paragraph"?ei(Lr,hn).map(Wn=>Wn.height):[]},hn=>_e[hn]?.kind==="paragraph"&&(!!_e[hn].frame||Uh(hn)));Yt!==null&&Yt+Mr<=Pe()&&(Hn=Math.max(Hn,Yt+Mr));}de+Hn>Pe()&&de>0&&!ny()&&(pd(),xt=0,Sd(0));}let yO=de===0&&!M(),Mf=rm(xd.before,xt,ne?false:yO,ne?false:jn||Gl(ve));Mf>0&&(de+=Mf),Mr>0&&(de+=Mr),jn=false;let lo=0,Qe=[],ry=it[0]?.start??0,ti=Mf,Vo=Mr,Bf=false,Go=de,oy=0,$o=new Map;xt=0;let ay=n.inlineDrawingLayout!==void 0&&wt($.paragraph,n.inlineDrawingLayout).length>0,iy=false,Lf=null,{revisions:bO,formatRevision:xO}=mc($.paragraph,m,p),ly=Mi($.paragraph,m,p),sy=bo($.paragraph),dy=sy?Bi(sy,m,p):null,SO=()=>{let ye=Qe[0];if(!ye)return 0;let be=oy;if(be<=.001)return 0;let Ue=$r(Go,ye.box.height,Vh($,B));return Math.max(0,be-Ue)},wd=ye=>{if(Qe.length===0)return;let be=st(),Ue=ro(),pt=Qe[0].box.y,Ot=pt-ti-Vo,en=Qe[Qe.length-1].box.y+Qe[Qe.length-1].box.height,Hn=ye?xd.after:0,Yt=[],hn,Lr=pt,Wn=en,Er=ke.left?xn(ke.left):0,Uo=ke.right?xn(ke.right):0,Xo=ke.left?be+pe.left-ke.left.spacePt-Er:be+pe.left,Nf=ke.right?be+pe.left+$e+ke.right.spacePt+Uo:be+pe.left+$e,Bl=Math.max(Nf-Xo,0);if(Vo>0&&io){let sn=xn(io),Nr=pt-io.spacePt-sn;Yt.push({side:"top",edge:io,box:{x:Xo,y:Nr,width:Bl,height:sn}}),Lr=Nr;}let Ll=ne&&Cr&&!zo?Hn:0;if(ye&&Cr){let sn=xn(Cr),Nr=en+Ll+Cr.spacePt,oi={x:Xo,y:Nr,width:Bl,height:sn};Yt.push({side:zo?"between":"bottom",edge:Cr,box:oi}),zo||(hn={edge:Cr,box:oi}),Wn=Nr+sn;}let kd=Hn-Ll;ye&&(de=Math.max(de,Wn+kd));let gt=Math.max(Wn+kd-Ot,0),yn=bd&&lo===0?Ot:Lr,El=zo&&ye?Ot+gt:Wn,vd=Math.max(El-yn,0);if(ke.left&&Yt.push({side:"left",edge:ke.left,box:{x:be+pe.left-ke.left.spacePt-Er,y:yn,width:Er,height:vd}}),ke.right&&Yt.push({side:"right",edge:ke.right,box:{x:be+pe.left+$e+ke.right.spacePt,y:yn,width:Uo,height:vd}}),ke.bar){let sn=xn(ke.bar);Yt.push({side:"bar",edge:ke.bar,box:{x:be+pe.left-ke.bar.spacePt-sn,y:pt,width:sn,height:Math.max(en-pt,0)}});}let ni=dy?Cc(Qe,dy):null,ri=lo===0?Yu(Cl,l,Qe[0],0,tt?pe.left+$e+pe.right:void 0,n.inlineDrawingLayout?.pictureBulletResource):void 0,Td=ri?{...ri,box:{...ri.box,x:ri.box.x+be}}:void 0;!ne&&lo===0&&(qa(Lt,Go,Qe),Tn.note(Se,Lt,Ie,nt.length,Go));let Qn={kind:"paragraph",id:`${Lt}#f${lo}`,paragraphId:Lt,fragmentIndex:lo,range:ni?ni[ni.length-1].range:{paragraphId:Lt,start:ry,end:Qe[Qe.length-1].range.end},props:ve,styleId:$.styleId,outlineLevel:$.outlineLevel,alignment:$.alignment,spacing:{before:ti,after:Hn},indent:pe,...hn?{bottomBorder:hn}:{},...Yt.length>0?{borders:Yt}:{},...Ml?{outOfFlow:true}:{},...qe===void 0||Ml?{}:{shading:qe,shadingBox:ke.left||ke.right?{x:Xo,y:Lr,width:Bl,height:Math.max(Wn-Lr,0)}:Kd(Qe,be+pe.left,$e)},tabStops:$.tabStops,...Td?{marker:Td}:{},...ye?{paragraphEnd:true}:{},...ye&&g?pc(bO,xO):{},...ye&&ly.length>0?{markChangeSites:ly}:{},lines:ni??Qe,...Uu(Qe,Pt,d?.themeFonts),box:{x:Ue+pe.left,y:Ot,width:$e,height:gt}};if(ne?Bt.add(ne,Qn,Rd?.groupId,B):nt.push(Qn),n.inlineDrawingLayout&&ay&&!iy){iy=true;let sn=[...Rn($.paragraph).values()],Nr=sn.length>0&&sn.every(bn=>Qe.some(Yo=>bn>=Yo.range.start&&bn<Yo.range.end)),oi,Id,Af;if(Nr){let bn=Ot-SO()-Wo.displacement(G.length,Lt);oi=Qe,Id={x:Ue+pe.left,y:bn,width:$e,height:gt},Af=Ye({x:Ue+pe.left,y:bn,height:gt});}else {let bn=Lf??{columnX:Ue,columnWidth:rt(),startY:Ot},Yo=bn.startY;oi=it.map((zn,PO)=>{let RO={id:`anchor-line-${PO}`,range:{paragraphId:Lt,start:zn.start,end:zn.end},box:{x:bn.columnX+pe.left,y:Yo,width:$e,height:zn.height},contentX:zn.spans.length>0?zn.spans[0].box.x+bn.columnX:bn.columnX+pe.left,baseline:zn.baseline,leading:zn.leading,trailingSpacing:zn.trailingSpacing,spans:zn.spans.map(Df=>({...Df,box:{...Df.box,x:Df.box.x+bn.columnX,y:Yo}}))};return Yo+=zn.height+(zn.exclusionSkipBefore??0),RO});let uy=bn.startY-Wo.displacement(G.length,Lt);Id={x:bn.columnX+pe.left,y:uy,width:$e,height:Math.max(Yo-uy,Qe[0]?.box.height??0)},Af=Ye(Id);}Ho(ka({paragraph:$.paragraph,paragraphId:Lt,paragraphBox:Id,lines:oi,drawingLayout:n.inlineDrawingLayout,frameBase:Be(),columnBox:Af,cellBox:null,pageClip:Ht(),cellAnchorScope:null,measurer:l,sourceOrderOf:Za,layoutTextboxStory:we.layoutTextboxStoryFor,displayMode:m,...p?{revisionAuthorFilter:p}:{}}));}lo+=1,ry=Qe[Qe.length-1].range.end,Qe=[],ti=0,Vo=0;},Br=0,Ef=0,Ko=it.length+Zr,cy=0;for(let ye=0;ye<it.length;ye+=1){let be=it[ye],Ue=ye===it.length-1,pt=Ue?Qh:0;ye===Br&&(Go=de,ay&&Lf===null&&lo===0&&(Lf=Object.freeze({columnX:ro(),columnWidth:rt(),startY:Go})));let Ot=ne?0:pO($,B,it,ye,Br,Go,be,$o),en=Ot+Math.max(0,be.height-be.trailingSpacing)+pt;if(!ne&&de+en>Pe()&&!ny()&&(Qe.length>0||nt.length>0||(G.length>0||ie&&Ot>0)&&Math.max(0,be.height-be.trailingSpacing)+pt<=Pe())){if(!M()&&Ot>0&&ce().some(Qn=>Qn.sourceKind==="furniture")&&++cy>xo*Or)throw new va("wrapping page furniture leaves no room for body content");let gt=!M(),yn=Ef<Ko?ul(ye,Br,it.length,Fe,gt):ye,El=yn<ye;for(let Qn=ye;Qn>yn;Qn-=1){Qe.pop();let sn=it[Qn-1],Nr=$o.get(Qn-1)??sn.exclusionSkipBefore??0;$o.delete(Qn-1),de-=sn.height+Nr,_n-=1;}let vd=El&&Qe.length===0&&lo===0,ni=it[yn].start,ri=rt(),Td=ce().length>0;if(wd(false),pd(),ti=0,vd?de=Vo:Vo=0,rt()!==ri||Td||ce().length>0){Sd(ni,de),$o.clear(),Ko=Math.max(Ko,it.length+Zr),Br=0,El&&(Ef+=1),ye=-1;continue}if(Br=yn,Go=de,El){Ef+=1,ye=yn-1;continue}}cy=0;let Yt=ro();$o.set(ye,Ot),de+=Ot;let hn=Yt+pe.left+(ye===0&&!tt?ao:0),Lr=Math.max(1,$e-(ye===0?ao:0)),Wn=be.spans.map(gt=>({...gt,range:{...gt.range,paragraphId:Lt},box:{...gt.box,x:gt.box.x+Yt-(tt&&ye===0?ao:0),y:de}})),Er=ap(be,Yt,hn,Lr),Uo=xs(Wn,l,Er.indent,Er.available,Le,Ue,Le==="center"||Le==="right"?Er.used:void 0,tt),Xo=Wn.length>0&&Uo.length>0?Uo[0].box.x-Wn[0].box.x:Le!=="left"&&Le!=="both"?(()=>{let gt=Er.available-Er.used;return gt<=0?0:Le==="center"?gt/2:gt})():0,Nf=Object.freeze({x:0,y:0,width:a,height:Pe()}),Bl=be.drawings.map(gt=>{let yn=Object.freeze({...Ln(gt,Yt,de),paragraphId:Lt});return Xc(yn,Nf)}),Ll=hs(Bl,Xo),kd={id:Mh(me.id,be.start,ye),range:{paragraphId:Lt,start:be.start,end:be.end},spans:Uo,box:{x:ro()+pe.left,y:de,width:$e,height:be.height},contentX:Bc(Uo,hn+Xo),baseline:be.baseline,leading:be.leading,trailingSpacing:be.trailingSpacing,...be.manualBreakAfter?{manualBreakAfter:true}:{},...be.deletedRanges?{deletedRanges:be.deletedRanges}:{},...Ll.length>0?{drawings:Ll}:{},...be.anchorRevisions?{anchorRevisions:be.anchorRevisions}:{},...be.changeSites?{changeSites:be.changeSites}:{}};if(_n+=1,Qe.length===0&&(oy=Ot),Qe.push(kd),de+=be.height,be.columnBreakAfter){let gt=rt(),yn=ce().length>0;if(wd(Ue),pd(),ti=0,Vo=0,Bf=true,!Ue&&(rt()!==gt||yn||ce().length>0)){Sd(be.end,de),$o.clear(),Ko=Math.max(Ko,it.length+Zr),Br=0,ye=-1;continue}Br=ye+1;}else if(be.pageBreakAfter){let gt=ce().length>0;if(wd(Ue),Ja(),ti=0,Vo=0,Bf=true,!Ue&&(gt||ce().length>0)){Sd(be.end,de),$o.clear(),Ko=Math.max(Ko,it.length+Zr),Br=0,ye=-1;continue}Br=ye+1;}}wd(true),Of(Lt),xt=Bf?0:xd.after,Pd&&(de=Pd.cursorY,xt=Pd.previousSpaceAfter,jn=Pd.firstParagraphOfSection);}Fr||qa("",de),Fr||(Tr[_e.length]=md());let gd=Fr&&S?S.endCursorY:Math.max(de,mt),Xh=Fr&&S?S.endSpaceAfter:xt,Yh=!Fr&&(nt.length>0||Se.length>0||G.length===0),qh=Fr&&S?S.endsOpenPage:Yh;Yh&&(Ja(),gd=Math.max(gd,rI(G.at(-1).fragments),xT(G.at(-1).fragments)));let Zh=0,gO=Um*4+8;for(;(z.length>0||X.length>0)&&Zh<gO;)Zh+=1,z.length===0&&In(),Ja();X.length>0&&(z.push(...X.map(B=>qm(B,"page-defer-exhausted"))),X=[],Ja()),wr();let Jh={revision:t,pages:G,...n.displayMode?{displayMode:n.displayMode}:{}};if(S){S.previous=Jh,S.checkpoints=Fr?[...Tr.slice(0,Ff),...S.checkpoints.slice(Ff+(S.keys.length-_e.length)).map($=>Cf===0?$:{...$,pageCount:$.pageCount+Cf})]:Tr,S.keys=Je,S.context=G.length+1===E?re:te(lf(v,D,G.length+1)),S.producer=P;let B=H||O?.evenAndOddHeaders===true;S.parityDependent=Jn===0&&!Fr?B:S.parityDependent||B,S.startPageParity=J,S.startLineCounter=C,S.endLineCounter=_n,S.endCursorY=gd,S.endSpaceAfter=Xh,S.endsOpenPage=qh,S.stats={placed:Ya,total:_e.length,reusedPages:Ir,fullPasses:S.stats.fullPasses+(Jn===0?1:0)};}return {layout:Jh,pages:G,lineCounter:_n,endCursorY:gd,endSpaceAfter:Xh,endsOpenPage:qh,overflowShellAt:se}}function Pf(e,t,n){return EI(e,t,n,o1)}var AI=new WeakMap,DI=new WeakMap;function $t(e){let t=AI.get(e);if(t)return t;let n=new Map;for(let r of e.pages)for(let[o,a]of a1(r)){let i=n.get(o);i?i.push(...a):n.set(o,[...a]);}return AI.set(e,n),n}function a1(e){let t=DI.get(e);if(t)return t;let n=new Map,r=(a,i,l)=>{for(let s of Ct(a)){let d={line:a,pageIndex:i,...l?{clipBox:l}:{}},c=n.get(s.paragraphId);c?c.push(d):n.set(s.paragraphId,[d]);}},o=(a,i)=>{let l=s=>{for(let d of s){if(d.kind==="paragraph"){for(let c of d.lines)r(c,i,d.clipToBox?d.box:void 0);continue}for(let c of d.rows)if(!c.isHeaderRepeat)for(let u of c.cells)l(u.blocks);}};l(a);};for(let a of At(e))for(let i of a.lines)r(i,e.index,a.clipToBox?a.box:void 0);e.header&&o(e.header.fragments,e.index),e.footer&&o(e.footer.fragments,e.index);for(let a of [e.footnotes,e.endnotes])if(a)for(let i of a.notes)o(i.fragments,e.index);return DI.set(e,n),n}function D8(e,t,n){let r=$t(e).get(t);if(r&&r.length>0){let o=oc(e,t,n,r.map(a=>a.line));if(o)return o}return oc(e,t,n)}var _I=new WeakMap;function Lh(e,t){let n=_I.get(e);n||(n=new Map,_I.set(e,n));let r=n.get(t);if(r)return r;let o=[];for(let{line:i}of $t(e).get(t)??[])if(i.range.paragraphId===t)for(let l of i.deletedRanges??[])o.push({start:l.start,end:l.end});o.sort((i,l)=>i.start-l.start);let a=[];for(let i of o){let l=a[a.length-1];l&&i.start<=l.end?l.end=Math.max(l.end,i.end):a.push(i);}return n.set(t,a),a}function jI(e,t){for(let n of e)if(t>n.start&&t<n.end)return true;return false}function i1(e,t){for(let n of Lh(e,t.paragraphId))if(t.offset>n.start&&t.offset<n.end)return {paragraphId:t.paragraphId,offset:n.end};return t}var l1=/[\p{L}\p{N}_'\u2019]/u;function ld(e,t,n,r=s1){let o=i=>{let l=e[i];return l!==void 0&&l1.test(l)},a=Math.max(0,Math.min(t,e.length));if(n===-1){for(;a>0&&!o(a-1);)if(a-=1,r.has(a))return a;for(;a>0&&o(a-1);)if(a-=1,r.has(a))return a;return a}for(;a<e.length&&!o(a);)if(a+=1,r.has(a))return a;for(;a<e.length&&o(a);)if(a+=1,r.has(a))return a;return a}var s1=new Set;function Tl(e,t,n,r){let o=r?r.spans:e.spans;for(let i of r?r.drawings:e.drawings??[]){if(t===i.start)return i.advanceStart;if(t===i.start+1)return i.advanceEnd}let a=r?r.spans[0]?.box.x??e.contentX:e.contentX;for(let i of o){if(t<=i.range.start)return i.style.shaping?Pr(i,i.range.start,n):i.box.x;if(t>=i.range.end){a=i.style.shaping?Pr(i,i.range.end,n):i.box.x+i.box.width;continue}return Pr(i,t,n)}return a}function Eh(e){e.sort((n,r)=>n.x-r.x);let t=[];for(let n of e){let r=t.at(-1);r&&n.x<=r.x+r.width+.001?t[t.length-1]={x:r.x,width:Math.max(r.x+r.width,n.x+n.width)-r.x}:t.push(n);}return t}var HI=new WeakMap,d1=/^[\p{Control}\p{Default_Ignorable_Code_Point}]+$/u,c1=/[\p{Letter}\p{Number}\p{Punctuation}\p{Symbol}]/u;function u1(e,t,n,r){if(d1.test(e.text.slice(t-e.range.start,n-e.range.start)))return null;if(e.style.shaping&&r&&e.text.length<=Wu&&e.text.length===e.range.end-e.range.start){let o=HI.get(e);o||(o=et(e.text),HI.set(e,o));let a=s=>{let d=0,c=o.length;for(;d<c;){let u=Math.floor((d+c)/2);o[u].utf16To<=s?d=u+1:c=u;}return o[d]},i=a(t-e.range.start),l=a(n-e.range.start-1);if(i&&l){t=e.range.start+i.utf16From,n=e.range.start+l.utf16To;let s=Pr(e,e.range.start+l.utf16From,r);if(c1.test(l.text)&&Pr(e,n,r)===s){let d=n+1,c=e.range.end;for(;d<c;){let u=Math.floor((d+c)/2);Pr(e,u,r)===s?d=u+1:c=u;}n=Math.min(d,e.range.end);}}}return [Pr(e,t,r),Pr(e,n,r)]}function Rf(e,t,n,r,o){let a=o?.spans??e.spans;if(!a.some(l=>l.style.shaping!==void 0)){let l=Tl(e,t,r,o),s=Tl(e,n,r,o);return [{x:Math.min(l,s),width:Math.abs(s-l)}]}let i=[];for(let l of a){let s=Math.max(t,l.range.start),d=Math.min(n,l.range.end);if(s>=d)continue;let c=u1(l,s,d,r);if(!c)continue;let[u,f]=c;i.push({x:Math.min(u,f),width:Math.abs(f-u)});}return Eh(i)}var WI=new WeakMap;function Nh(e,t){let n=WI.get(e);if(n||WI.set(e,n=new Map),n.has(t))return n.get(t);let r=$t(e),o=new Set([t]),a=new Map,i=new Map,l=new Map;for(let u of o){let f;for(let m of r.get(u)??[]){let p=m.line.id;a.set(p,m),l.has(p)||l.set(p,0);for(let g of Ct(m.line))o.add(g.paragraphId);if(f&&f!==p){let g=i.get(f);g||i.set(f,g=new Set),g.has(p)||(g.add(p),l.set(p,l.get(p)+1));}f=p;}}if(o.size===1)return n.set(t,null),null;let s=[...a.keys()].filter(u=>l.get(u)===0),d=[];for(let u=0;u<s.length;u++){let f=s[u];d.push(a.get(f));for(let m of i.get(f)??[])l.set(m,l.get(m)-1),l.get(m)===0&&s.push(m);}let c={members:[...o],lines:d};for(let u of o)n.set(u,c);return c}var zI=new WeakMap;function sd(e,t){let n=zI.get(e);if(n||zI.set(e,n=new Map),!n.get(t.lineId)?.has(t.position.paragraphId)){let r=$t(e).get(t.position.paragraphId)??[],o=r.flatMap(({line:a})=>a.spans).find(a=>a.range.paragraphId===t.position.paragraphId&&a.style.shaping)?.style.shaping?.baseLevel;if(o===void 0&&r.every(({line:a})=>a.spans.length===0&&!a.drawings?.length)){let a=e.pages[r[0]?.pageIndex??-1],i=a&&Xl(a).find(l=>l.range.paragraphId===t.position.paragraphId);i&&bt(i.props)&&(o=1);}for(let{line:a}of r){let i=a.spans.find(s=>s.range.paragraphId===t.position.paragraphId&&s.style.shaping)?.style.shaping?.baseLevel??o,l=n.get(a.id);l||n.set(a.id,l=new Map),l.set(t.position.paragraphId,i===void 0?void 0:i%2?-1:1);}}return n.get(t.lineId)?.get(t.position.paragraphId)}var VI=new WeakMap;function Dh(e){let t=VI.get(e);if(t)return t;let n=new Map;for(let o of e){let a=n.get(o.lineId);a||n.set(o.lineId,a=[]),a.push(o);}let r=[...n.keys()];return t={indexes:new Map(e.map((o,a)=>[o,a])),lines:r,lineIndexes:new Map(r.map((o,a)=>[o,a])),groups:new Map([...n].map(([o,a])=>[o,{logical:a,paragraphIds:new Set(a.map(i=>i.position.paragraphId))}]))},VI.set(e,t),t}function Ah(e){return e.visual||(e.visual=[...e.logical].sort((t,n)=>t.x-n.x),e.indexes=new Map(e.visual.map((t,n)=>[t,n]))),e.visual}function Xa(e,t,n,r){let o=e[t],a=r(o);if(a===void 0)return {target:e[t+n],logicalDirection:n};let i=Dh(e),l=i.groups.get(o.lineId),d=Ah(l)[l.indexes.get(o)+n],c=n*a;if(d)return {target:d,logicalDirection:c};let u=i.lines[i.lineIndexes.get(o.lineId)+c];if(!u)return {logicalDirection:c};let f=i.groups.get(u),m=[...l.paragraphIds].some(h=>f.paragraphIds.has(h)),p=m?Ah(f):f.logical;return {target:(m?n:c)===1?p[0]:p.at(-1),logicalDirection:c}}function dd(e,t,n,r){let o=Dh(e).groups.get(t.lineId),a=r(t),i=a===void 0?o.logical:Ah(o);return n*(a??1)===-1?i[0]:i.at(-1)}function _h(e,t,n,r,o,a){let i=t[n];if(o(i)===void 0)return ld(e,i.position.offset,r,a);let l=Dh(t).indexes,s=i,d=false;for(let c=0;c<t.length;c++){let u=Xa(t,l.get(s),r,o).target;if(!u||u.position.paragraphId!==i.position.paragraphId)break;if(Math.abs(l.get(u)-l.get(s))===1){let m=/[\p{L}\p{N}\p{M}_'\u2019]/u.test(e.slice(Math.min(s.position.offset,u.position.offset),Math.max(s.position.offset,u.position.offset)));if(d&&!m)break;d||=m;}else if(d)break;if(s=u,a.has(s.position.offset))break}return s.position.offset}function Il(e,t,n,r){let o,a;for(let l of e)l.position.paragraphId===t.paragraphId&&(l.position.offset<t.offset&&(!o||l.position.offset>o.position.offset)&&(o=l),l.position.offset>t.offset&&(!a||l.position.offset<a.position.offset)&&(a=l));if(o&&a&&o.lineId===a.lineId&&o.x!==a.x)return n*(a.x<o.x?-1:1);let i=o??a;return n*(i?r(i)??1:1)}function jh(e){let t=new Map;for(let n=0;n<e.length;n+=1){let r=e[n].position,o=t.get(r.paragraphId);o||(o=new Map,t.set(r.paragraphId,o)),o.has(r.offset)||o.set(r.offset,n);}return {stops:e,index:t}}var cd=class{#e=new WeakMap;#t=new WeakMap;get(t,n,r,o){let a;if(!r)a=this.#e.get(t)??new Map,this.#e.has(t)||this.#e.set(t,a);else {let s=this.#t.get(t);s||(s=new WeakMap,this.#t.set(t,s)),a=s.get(r)??new Map,s.has(r)||s.set(r,a);}let i=a.get(n);if(i)return i;let l=o();return a.set(n,l),l}};function KI(e,t){for(let n=e.length-1;n>=0;n--)if(e[n].position.paragraphId===t)return e[n]}function GI(e){let t=[],n=new Set;for(let r of e)n.has(r.lineId)||(n.add(r.lineId),t.push(r.lineId));return t}function $I(e,t,n){let r=null;for(let o of e)o.lineId===t&&(!r||Math.abs(o.x-n)<Math.abs(r.x-n))&&(r=o);return r}function ud(e,t){let n=null;for(let r of e)r.position.paragraphId===t.paragraphId&&(!n||Math.abs(r.position.offset-t.offset)<Math.abs(n.position.offset-t.offset))&&(n=r);return n}function Hh(e,t,n){let r=null;for(let o of e){if(o.position.paragraphId!==t.paragraphId)continue;let a=o.position.offset;n===1?a>t.offset&&(!r||a<r.position.offset)&&(r=o):a<t.offset&&(!r||a>r.position.offset)&&(r=o);}return r}function UI(e,t,n,r=()=>{}){let o=n.index.get(e.paragraphId)?.get(e.offset),a=o===void 0?ud(n.stops,e):n.stops[o];return a?dd(n.stops,a,t,r).position:null}function XI(e,t,n,r,o,a=()=>{}){let i=o(e.paragraphId),l=i.index.get(e.paragraphId)?.get(e.offset),s=t;if(l===void 0){s=Il(i.stops,e,t,a);let f=Hh(i.stops,e,s);if(f)return {position:f.position,desiredX:null}}else {let f=Xa(i.stops,l,t,a);if(s=f.logicalDirection,f.target)return {position:f.target.position,desiredX:null}}let d=n[r+s];if(!d)return {position:e,desiredX:null};let c=o(d).stops,u=s===-1?c[c.length-1]:c[0];return u?{position:u.position,desiredX:null}:null}function YI(e,t,n){let r=e===-1?t[0]:t[t.length-1];if(!r)return null;let o=n(r).stops;return (e===-1?o[0]:o[o.length-1])?.position??null}function qI(e,t,n,r,o,a){let i=a(e.paragraphId),l=i.index.get(e.paragraphId)?.get(e.offset),s=l===void 0?ud(i.stops,e):i.stops[l];if(!s)return null;let d=n??s.x,c=GI(i.stops),u=c.indexOf(s.lineId),f=c[u+t];if(f){let p=$I(i.stops,f,d);return p?{position:p.position,desiredX:d}:null}for(let p=o+t;p>=0&&p<r.length;p+=t){let g=a(r[p]),h=GI(g.stops),x=t===-1?h[h.length-1]:h[0];if(!x)continue;let b=$I(g.stops,x,d);if(b)return {position:b.position,desiredX:d}}let m=t===-1?i.stops[0]:i.stops[i.stops.length-1];return m?{position:m.position,desiredX:d}:null}function ZI(e,t,n){let r=$t(e).get(t.range.paragraphId)??[],o=false;for(let a of r){if(a.line===t){o=true;continue}if(o&&a.line.range.start===n)return true}return false}function JI(e,t,n){for(let{line:r}of $t(e).get(t)??[])if(r.range.start===n&&r.drawings?.some(o=>o.start===n))return r;return null}function QI(e,t,n){for(let r of n?n.spans:e.spans)if(!(t<=r.range.start||t>=r.range.end)&&(r.projected||r.text.length!==r.range.end-r.range.start))return true;return false}function Wh(e){let t=e.spans[e.spans.length-1]?.text;return t===`
18
- `||t===chunkCB6RQ3GD_cjs.Zd}function eO(e,t){if(t.end-t.start!==1||!e.drawings?.some(n=>n.start===t.start))return false;for(let n of t.spans)if(n.range.end>n.range.start)return false;return true}function vf(e,t,n,r,o,a,i){for(let l of Ct(n))a!==void 0&&l.paragraphId!==a||p1(e,t,n,l,r,o,i);}function p1(e,t,n,r,o,a,i){let l=Ct(n).length>1,s=Lh(t,r.paragraphId),d=c=>r.spans.some(u=>u.range.start<=c&&c<=u.range.end);for(let c=r.start;c<=r.end;c+=1){if(c===r.end&&c>r.start&&!l&&Wh(n)&&ZI(t,n,c)||c===r.start&&r.start>0&&e.length>0&&KI(e,r.paragraphId)?.position.offset===c||QI(n,c,r)||jI(s,c)&&!d(c))continue;let u=Sr({x:Tl(n,c,a,r),y:n.box.y,width:0,height:n.box.height},i);u&&e.push(sl(t,{position:{paragraphId:r.paragraphId,offset:c},x:u.x,y:u.y,height:u.height,lineId:n.id,pageIndex:o}));}}function aO(e,t,n,r,o){for(let a of t){if(a.kind==="paragraph"){for(let i of a.lines)vf(r,e,i,n,o,void 0,a.clipToBox?a.box:void 0);continue}for(let i of a.rows)if(!i.isHeaderRepeat)for(let l of i.cells)aO(e,l.blocks,n,r,o);}}var g1=new cd;function h1(e,t){let n=[];for(let r of e.pages)for(let o of At(r))for(let a of o.lines)vf(n,e,a,r.index,t,void 0,o.clipToBox?o.box:void 0);return n}var y1=new cd;function zh(e,t,n){let r=Nh(e,t);return r?y1.get(e,r.members[0],n,()=>{let o=[];for(let{line:a,pageIndex:i,clipBox:l}of r.lines)vf(o,e,a,i,n,void 0,l);return jh(o)}):wf(e,t,n)}function wf(e,t,n){return g1.get(e,t,n,()=>{let r=[];for(let{line:o,pageIndex:a,clipBox:i}of $t(e).get(t)??[])vf(r,e,o,a,n,t,i);return jh(r)})}function b5(e,t,n,r){if(!e.pages[t])return [];let o=[];return aO(e,n,t,o,r),o}function b1(e){return e?typeof e.measure=="function"?{measurer:e}:e:{}}function x1(e,t,n){let r=e.pages[t];if(!r)return [];let o=[];for(let a of At(r,true))if(a.paragraphId===n)for(let i of a.lines)o.push({line:i,pageIndex:t,...a.clipToBox?{clipBox:a.box}:{}});return o}function S1(e,t,n){let r=b1(n),o=$t(e).get(t.paragraphId)??[],a=r.preferredPageIndex,i=a===void 0?[]:x1(e,a,t.paragraphId),l=new Set(o.map(f=>f.line.id)),s=i.filter(f=>!l.has(f.line.id)),d=s.length>0?[...o,...s]:o,c=a===void 0?d:[...d].sort((f,m)=>{let p=f.pageIndex===a?0:1,g=m.pageIndex===a?0:1;return p-g}),u=null;for(let{line:f,pageIndex:m,clipBox:p}of c){let g=_r(f,t.paragraphId);if(!g||t.offset<g.start||t.offset>g.end)continue;if(t.offset===g.end&&t.offset>g.start&&Ct(f).length===1&&(Wh(f)||eO(f,g))){u??={line:f,pageIndex:m,clipBox:p};continue}if(t.offset===g.end&&t.offset>g.start&&JI(e,t.paragraphId,t.offset))continue;let h=Sr({...Ws(f,t.offset,r.measurer,g),width:0},p);if(h)return sl(e,{position:t,x:h.x,y:h.y,height:h.height,lineId:f.id,pageIndex:m})}if(u){let f=Sr({...Ws(u.line,t.offset,r.measurer,_r(u.line,t.paragraphId)),width:0},u.clipBox);return f?sl(e,{position:t,x:f.x,y:f.y,height:f.height,lineId:u.line.id,pageIndex:u.pageIndex}):null}return null}function x5(e,t){let n=t.pageIndex!==void 0&&e.pages[t.pageIndex]?t.pageIndex:0;return Rg(e,n,t)?.caret??null}function S5(e,t){let n=t.pageIndex!==void 0&&e.pages[t.pageIndex]?t.pageIndex:0;return wg(e,n,t)}function P5(e){return um(e)}var tO=new WeakMap;function iO(e){let t=tO.get(e);return t||(t=new Map,e.forEach((n,r)=>{t.has(n)||t.set(n,r);}),tO.set(e,t)),t}function kf(e,t){return iO(e).get(t)??-1}function Tf(e,t){if(e.anchor.paragraphId===e.head.paragraphId)return e.anchor.offset<=e.head.offset?{from:e.anchor,to:e.head}:{from:e.head,to:e.anchor};let n=kf(t,e.anchor.paragraphId),r=kf(t,e.head.paragraphId);return n===-1||r===-1?null:n<r||n===r&&e.anchor.offset<=e.head.offset?{from:e.anchor,to:e.head}:{from:e.head,to:e.anchor}}function nO(e,t){let n=[],r=new Set;for(let{line:a}of $t(e).get(t)??[]){let i=_r(a,t);if(i){for(let l of i.spans){if(l.range.end===l.range.start)continue;let s=`${l.range.start}:${l.range.end}`;if(r.has(s))continue;r.add(s);let d=l.range.end-l.range.start,c=l.text.length===d?l.text:l.text.slice(0,d).padEnd(d," ");n.push({start:l.range.start,text:c});}for(let l of i.drawings){let s=l.start,d=s+1,c=`${s}:${d}`;r.has(c)||(r.add(c),n.push({start:s,text:"\uFFFC"}));}}}n.sort((a,i)=>a.start-i.start);let o="";for(let a of n)a.start>o.length&&(o+=" ".repeat(a.start-o.length)),o=o.slice(0,a.start)+a.text;return o}function rO(e,t){let n=new Set;for(let{line:r}of $t(e).get(t)??[]){let o=_r(r,t);if(o)for(let a of o.spans)a.range.end!==a.range.start&&a.revisions?.some(i=>i.kind==="delete"||i.kind==="moveFrom")&&(n.add(a.range.start),n.add(a.range.end));}return n}function oO(e,t,n,r){let o=ki(e),a=ia(e),i=a.get(t.paragraphId);if(i===void 0)return null;let l=Nh(e,t.paragraphId),s=zh(e,t.paragraphId,r),d=c=>sd(e,c);if(l){let c=s.index.get(t.paragraphId)?.get(t.offset),u=c===void 0?Il(s.stops,t,n,d):Xa(s.stops,c,n,d).logicalDirection,f=l.members.map(m=>a.get(m)).filter(m=>m!==void 0);i=u===-1?Math.min(...f):Math.max(...f);}return XI(t,n,o,i,c=>c===t.paragraphId?s:wf(e,c,r),d)}function R5(e,t,n,r=null,o={}){let a=d=>sd(e,d);if(!o.stops&&(n==="left"||n==="right"))return oO(e,t,n==="left"?-1:1,o.measurer);if(!o.stops&&(n==="wordLeft"||n==="wordRight")){let d=n==="wordLeft"?-1:1,c=zh(e,t.paragraphId,o.measurer),u=c.index.get(t.paragraphId)?.get(t.offset),f=nO(e,t.paragraphId),m=rO(e,t.paragraphId),p=u===void 0?ld(f,t.offset,Il(c.stops,t,d,a),m):_h(f,c.stops,u,d,a,m);return p===t.offset?oO(e,t,d,o.measurer):{position:{paragraphId:t.paragraphId,offset:p},desiredX:null}}if(!o.stops&&(n==="lineStart"||n==="lineEnd")){let d=UI(t,n==="lineStart"?-1:1,zh(e,t.paragraphId,o.measurer),a);return d?{position:d,desiredX:null}:null}if(!o.stops&&(n==="documentStart"||n==="documentEnd")){let d=YI(n==="documentStart"?-1:1,ki(e),c=>wf(e,c,o.measurer));return d?{position:d,desiredX:null}:null}if(!o.stops&&(n==="up"||n==="down")){let d=ia(e).get(t.paragraphId);return d===void 0?null:qI(t,n==="up"?-1:1,r,ki(e),d,c=>wf(e,c,o.measurer))}let i=o.stops??h1(e,o.measurer);if(i.length===0)return null;let l=i.findIndex(d=>d.position.paragraphId===t.paragraphId&&d.position.offset===t.offset);if(l===-1){if(n==="left"||n==="right"){let c=Hh(i,t,Il(i,t,n==="left"?-1:1,a))??ud(i,t);return c?{position:c.position,desiredX:null}:null}let d=ud(i,t);if(!d)return null;l=i.indexOf(d);}let s=i[l];switch(n){case "left":case "right":return {position:(Xa(i,l,n==="left"?-1:1,c=>sd(e,c)).target??s).position,desiredX:null};case "lineStart":return {position:dd(i,s,-1,a).position,desiredX:null};case "lineEnd":return {position:dd(i,s,1,a).position,desiredX:null};case "wordLeft":case "wordRight":{let d=nO(e,t.paragraphId),c=_h(d,i,l,n==="wordLeft"?-1:1,a,rO(e,t.paragraphId));return c===t.offset?{position:(Xa(i,l,n==="wordLeft"?-1:1,f=>sd(e,f)).target??s).position,desiredX:null}:{position:{paragraphId:t.paragraphId,offset:c},desiredX:null}}case "documentStart":return {position:i[0].position,desiredX:null};case "documentEnd":return {position:i[i.length-1].position,desiredX:null};case "pageUp":case "pageDown":{let d=r??s.x,c=s.pageIndex+(n==="pageUp"?-1:1),u=i.filter(p=>p.pageIndex===c);if(u.length===0)return {position:(n==="pageUp"?i[0]:i[i.length-1]).position,desiredX:d};let f=u[0],m=Number.POSITIVE_INFINITY;for(let p of u){let g=Math.abs(p.y-s.y)*1e3+Math.abs(p.x-d);g<m&&(m=g,f=p);}return {position:f.position,desiredX:d}}case "up":case "down":{let d=r??s.x,c=[],u=new Set;for(let h of i)u.has(h.lineId)||(u.add(h.lineId),c.push(h.lineId));let f=c.indexOf(s.lineId),m=n==="up"?f-1:f+1;if(m<0||m>=c.length)return {position:(n==="up"?i[0]:i[i.length-1]).position,desiredX:d};let p=i.filter(h=>h.lineId===c[m]),g=p[0];for(let h of p)Math.abs(h.x-d)<Math.abs(g.x-d)&&(g=h);return {position:g.position,desiredX:d}}default:return null}}function w5(e,t,n){return S1(e,t,n)}function k5(e,t,n){let r=Tf(t,n);if(!r)return [];if(r.from.paragraphId===r.to.paragraphId&&r.from.offset===r.to.offset)return P1(e,r.from);let o=[];if(r.from.paragraphId===r.to.paragraphId){for(let{line:s}of $t(e).get(r.from.paragraphId)??[]){let d=_r(s,r.from.paragraphId);if(!d)continue;let c=la(e,d,r.from,r.to);if(c)for(let u of d.spans)u.range.end>c.start&&u.range.start<c.end&&o.push(u);}return o}let a=$t(e),i=kf(n,r.from.paragraphId),l=kf(n,r.to.paragraphId);if(i===-1||l===-1)return [];for(let s=i;s<=l;s+=1)for(let{line:d}of a.get(n[s])??[]){let c=_r(d,n[s]);if(!c)continue;let u=la(e,c,r.from,r.to,iO(n));if(u)for(let f of c.spans)f.range.end>u.start&&f.range.start<u.end&&o.push(f);}return o}function P1(e,t){let n=null,r=null;for(let{line:o}of $t(e).get(t.paragraphId)??[])for(let a of _r(o,t.paragraphId)?.spans??[]){if(a.range.start<t.offset&&t.offset<=a.range.end)return [a];a.range.start===t.offset&&(a.range.end===a.range.start&&a.projected?r??=a:n??=a);}return n?[n]:r?[r]:[]}function f1(e,t,n,r){return cO(e,t,n,true,r)}function _5(e,t,n,r){return cO(e,t,n,false,r)}var lO=new WeakMap,sO=new WeakMap;function R1(e){let t=lO.get(e);if(t)return t;let n=new Map;for(let r of e.pages)for(let o of At(r))for(let a of o.lines)for(let i of Ct(a)){let l=n.get(i.paragraphId);(!l||i.end>l.end||i.end===l.end&&i.start>l.start)&&n.set(i.paragraphId,{end:i.end,start:i.start});}return lO.set(e,n),n}function dO(e){let t=sO.get(e);if(t)return t;let n=new Map(e.map((r,o)=>[r,o]));return sO.set(e,n),n}function w1(e){return Math.max(3,Math.min(8,e*.25))}function cO(e,t,n,r,o){if(t.anchor.paragraphId===t.head.paragraphId&&t.anchor.offset===t.head.offset)return [];let a=Tf(t,n);if(!a)return [];let i=dO(n),l=i.get(a.from.paragraphId),s=i.get(a.to.paragraphId),d=R1(e),c=[];for(let u of e.pages)for(let f of At(u))for(let m of f.lines){let p=wi(m);for(let[g,h]of p.entries()){let x=la(e,h,a.from,a.to),b=i.get(h.paragraphId),y=d.get(h.paragraphId),w=l!==void 0&&s!==void 0&&b!==void 0&&b>=l&&b<s&&y?.end===h.end&&y.start===h.start&&g===p.length-1;if((!r||!x)&&!w)continue;let P=r&&x?Rf(m,x.start,x.end,o,h):[];if(w){let R=w1(Math.max(0,m.box.height-m.leading-(m.trailingSpacing??0))),O=h.spans[0]?.style.shaping?.baseLevel,F=O===void 0?bt(f.props):O%2===1,k=Tl(m,h.end,o,h);if(h.spans.some(v=>v.style.shaping!==void 0)){k=F?1/0:-1/0;for(let v of h.spans)k=F?Math.min(k,v.box.x):Math.max(k,v.box.x+v.box.width);}P.push({x:F?k-R:k,width:R});}for(let R of Eh(P)){let O=Sr({pageIndex:u.index,...R,y:m.box.y,height:m.box.height},f.clipToBox?f.box:void 0);O&&c.push(sg(e,h.paragraphId,O));}}}return c}function m1(e,t,n,r){let o=new Map;if(t.length===0)return o;for(let a of e.pages)if(!(n&&!n.has(a.index)))for(let i of At(a))for(let l of i.lines)for(let s of Ct(l))for(let d of t){let c=la(e,s,d.from,d.to);if(!c)continue;let u=o.get(d.key)??[];for(let f of Rf(l,c.start,c.end,r,s)){let m=Sr({pageIndex:a.index,...f,y:l.box.y,height:l.box.height},i.clipToBox?i.box:void 0);m&&(u.push(sg(e,s.paragraphId,m)),o.set(d.key,u));}}return o}function j5(e){return {x:e.contentBox.x,y:e.contentBox.y}}function fd(e,t){return {x:t.x-e.contentBox.x,y:t.y-e.contentBox.y}}function H5(e,t,n){if(ia(e).has(t))return {x:0,y:0};let r=e.pages[n];if(!r)return {x:0,y:0};let o=a=>Pn(a).some(i=>i.paragraphId===t);if(r.header&&o(r.header.fragments))return fd(r,r.header.box);if(r.footer&&o(r.footer.fragments))return fd(r,r.footer.box);for(let a of [r.footnotes,r.endnotes])if(a){for(let i of a.notes)if(o(i.fragments))return fd(r,i.box)}return {x:0,y:0}}function W5(e,t,n,r,o){let a=new Map,i=[];for(let d of t){let c=Tf({anchor:d.from,head:d.to},n);c&&i.push({key:d.key,from:c.from,to:c.to});}if(i.length===0)return a;let l=dO(n),s=(d,c,u,f)=>{for(let m of Pn(d))for(let p of m.lines){for(let g of Ct(p))for(let h of i){let x=la(e,g,h.from,h.to,l);if(!x)continue;let b=a.get(h.key)??[];for(let y of Rf(p,x.start,x.end,o,g)){let w=Sr({pageIndex:c,...y,y:p.box.y,height:p.box.height},m.clipToBox?m.box:void 0);w&&(b.push({...w,x:w.x+u,y:w.y+f}),a.set(h.key,b));}}}};for(let d of e.pages)if(!(r&&!r.has(d.index))){s(d.fragments,d.index,0,0);for(let c of [d.header,d.footer]){if(!c)continue;let u=fd(d,c.box);s(c.fragments,d.index,u.x,u.y);}for(let c of [d.footnotes,d.endnotes])if(c)for(let u of c.notes){let f=fd(d,u.box);s(u.fragments,d.index,f.x,f.y);}}return a}exports.$=rc;exports.$a=bx;exports.$b=wR;exports.$c=Hu;exports.$d=cf;exports.A=fo;exports.Aa=N_;exports.Ab=RP;exports.Ac=qx;exports.Ad=vq;exports.Ae=R5;exports.B=B1;exports.Ba=De;exports.Bb=Wi;exports.Bc=xC;exports.Bd=rv;exports.Be=w5;exports.C=cb;exports.Ca=mo;exports.Cb=wP;exports.Cc=Qx;exports.Cd=ov;exports.Ce=k5;exports.D=gi;exports.Da=dc;exports.Db=nu;exports.Dc=Ei;exports.Dd=av;exports.E=rm;exports.Ea=Qb;exports.Eb=xB;exports.Ec=tS;exports.Ed=FZ;exports.F=Sn;exports.Fa=fF;exports.Fb=vB;exports.Fc=y2;exports.Fd=tf;exports.G=Ne;exports.Ga=A_;exports.Gb=iu;exports.Gc=d6;exports.Gd=iv;exports.H=zt;exports.Ha=gc;exports.Hb=ko;exports.Hc=Eo;exports.Hd=Zq;exports.I=Ze;exports.Ia=ar;exports.Ib=mp;exports.Ic=hr;exports.Id=Jq;exports.J=Rb;exports.Ja=yc;exports.Jb=MB;exports.Jc=rE;exports.Jd=Pv;exports.K=xi;exports.Ka=W_;exports.Kb=XP;exports.Kc=Qp;exports.Kd=ed;exports.L=om;exports.La=ua;exports.Lb=uu;exports.Lc=eg;exports.Ld=af;exports.M=J1;exports.Ma=Ql;exports.Mb=NB;exports.Mc=tg;exports.Md=NA;exports.N=GO;exports.Na=Ii;exports.Nb=$i;exports.Nc=P0;exports.Nd=cZ;exports.O=e_;exports.Oa=fa;exports.Ob=Kr;exports.Oc=lE;exports.Od=AA;exports.P=t_;exports.Pa=IF;exports.Pb=pu;exports.Pc=rl;exports.Pd=kv;exports.Q=vb;exports.Qa=pa;exports.Qb=bG;exports.Qc=Es;exports.Qd=wv;exports.R=tc;exports.Ra=ga;exports.Rb=zB;exports.Rc=br;exports.Rd=DA;exports.S=et;exports.Sa=hx;exports.Sb=hu;exports.Sc=TE;exports.Sd=_A;exports.T=n_;exports.Ta=go;exports.Tb=GB;exports.Tc=IE;exports.Td=oh;exports.U=r_;exports.Ua=X_;exports.Ub=Oa;exports.Uc=Z2;exports.Ud=WA;exports.V=o_;exports.Va=Y_;exports.Vb=wp;exports.Vc=al;exports.Vd=ah;exports.W=a_;exports.Wa=ho;exports.Wb=Ui;exports.Wc=gg;exports.Wd=Qv;exports.X=i_;exports.Xa=ha;exports.Xb=RG;exports.Xc=AE;exports.Xd=UA;exports.Y=nc;exports.Ya=AF;exports.Yb=Xi;exports.Yc=Jt;exports.Yd=Vv;exports.Z=Lb;exports.Za=yx;exports.Zb=ZB;exports.Zc=NU;exports.Zd=c3;exports._=Ae;exports._a=DF;exports._b=JB;exports._c=AU;exports._d=rT;exports.a=ui;exports.aa=At;exports.ab=_F;exports.ac=bu;exports.ad=Sr;exports.ae=u3;exports.b=em;exports.ba=Pn;exports.bb=ir;exports.bc=vp;exports.bd=vw;exports.be=pD;exports.c=$d;exports.ca=Db;exports.cb=wm;exports.cc=Yn;exports.cd=Gu;exports.ce=gT;exports.d=tb;exports.da=YO;exports.db=ya;exports.dc=oL;exports.dd=QU;exports.de=jo;exports.e=nb;exports.ea=tF;exports.eb=oj;exports.ec=Tp;exports.ed=Rg;exports.ee=C8;exports.f=Kd;exports.fa=nF;exports.fb=km;exports.fc=iL;exports.fd=eX;exports.fe=$t;exports.g=W1;exports.ga=Ri;exports.gb=Rx;exports.gc=Xn;exports.gd=tX;exports.ge=D8;exports.h=z1;exports.ha=h_;exports.hb=oR;exports.hc=BG;exports.hd=wg;exports.he=i1;exports.i=Ud;exports.ia=cm;exports.ib=Bs;exports.ic=Fp;exports.id=Tw;exports.ie=ld;exports.j=Xd;exports.ja=rF;exports.jb=An;exports.jc=OR;exports.jd=Pr;exports.je=sd;exports.k=fi;exports.ka=oc;exports.kb=Yi;exports.kc=Cp;exports.kd=Ws;exports.ke=Tl;exports.l=Gl;exports.la=um;exports.lb=bt;exports.lc=Io;exports.ld=nX;exports.le=f1;exports.m=tm;exports.ma=ac;exports.mb=rS;exports.mc=VG;exports.md=IX;exports.me=_5;exports.n=Yd;exports.na=fm;exports.nb=AH;exports.nc=zR;exports.nd=OX;exports.ne=m1;exports.o=FO;exports.oa=ic;exports.ob=Km;exports.oc=a$;exports.od=FX;exports.oe=j5;exports.p=CO;exports.pa=Ct;exports.pb=OW;exports.pc=Lp;exports.pd=CX;exports.pe=fd;exports.q=zl;exports.qa=wi;exports.qb=bs;exports.qc=Ru;exports.qd=MX;exports.qe=H5;exports.r=LO;exports.ra=O_;exports.rb=gz;exports.rc=_p;exports.rd=Ng;exports.re=W5;exports.s=M1;exports.sa=vi;exports.sb=hz;exports.sc=FL;exports.sd=Rr;exports.se=h1;exports.t=$l;exports.ta=F_;exports.tb=yz;exports.tc=JR;exports.td=vk;exports.te=b5;exports.u=ib;exports.ua=ki;exports.ub=bz;exports.uc=R$;exports.ud=DN;exports.ue=S1;exports.v=rr;exports.va=oF;exports.vb=hP;exports.vc=Q$;exports.vd=Wk;exports.ve=x5;exports.w=lb;exports.wa=B_;exports.wb=Rs;exports.wc=eK;exports.wd=oq;exports.we=S5;exports.x=qd;exports.xa=We;exports.xb=SP;exports.xc=tl;exports.xd=fq;exports.xe=P5;exports.y=db;exports.ya=L_;exports.yb=xz;exports.yc=u0;exports.yd=mq;exports.ye=nO;exports.z=xn;exports.za=E_;exports.zb=PP;exports.zc=Iu;exports.zd=Pq;exports.ze=rO;