@docx-editor.dev/core 2.18.0 → 2.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/automation.cjs +1 -1
  2. package/dist/automation.js +1 -1
  3. package/dist/binding.cjs +1 -1
  4. package/dist/binding.js +1 -1
  5. package/dist/{chunk-4DB7ZFQN.js → chunk-2QU7QTM7.js} +1 -1
  6. package/dist/{chunk-PBM6WERF.cjs → chunk-3JKOZBQ3.cjs} +1 -1
  7. package/dist/{chunk-ZMM5RNM6.js → chunk-3SU7UWCR.js} +1 -1
  8. package/dist/{chunk-ZKQX2PNF.cjs → chunk-5BI4SIHO.cjs} +1 -1
  9. package/dist/chunk-6ESSCMXL.js +2 -0
  10. package/dist/{chunk-GUPITGJQ.cjs → chunk-6W4DIR4X.cjs} +1 -1
  11. package/dist/{chunk-CG7CP632.cjs → chunk-76F73CY6.cjs} +1 -1
  12. package/dist/{chunk-KDYD5TAW.cjs → chunk-7VO6BLKV.cjs} +1 -1
  13. package/dist/{chunk-MSIFK7TJ.js → chunk-AKQRKR2H.js} +1 -1
  14. package/dist/chunk-BJQDNKEX.js +5 -0
  15. package/dist/{chunk-OODFC5R2.js → chunk-BUNY5MRX.js} +1 -1
  16. package/dist/chunk-FBWBSHC4.cjs +11 -0
  17. package/dist/{chunk-SUEX3CL7.cjs → chunk-GWW5FOLJ.cjs} +5 -5
  18. package/dist/chunk-IA7WTZHI.js +11 -0
  19. package/dist/chunk-IXGUCLER.js +20 -0
  20. package/dist/{chunk-NJONXJJY.cjs → chunk-JWHXOJEU.cjs} +2 -2
  21. package/dist/chunk-NDPLQG4Y.cjs +18 -0
  22. package/dist/{chunk-YVYEJBLL.cjs → chunk-NIVIC7PA.cjs} +1 -1
  23. package/dist/chunk-NLGUL6QL.js +3 -0
  24. package/dist/chunk-OWUSDS3L.cjs +20 -0
  25. package/dist/{chunk-FZ2BIMCY.cjs → chunk-RDKPMNN6.cjs} +1 -1
  26. package/dist/{chunk-2ZEU42EA.js → chunk-TSDGKNV7.js} +1 -1
  27. package/dist/chunk-TUCDPXBD.js +18 -0
  28. package/dist/{chunk-THCGTV53.js → chunk-UOE4WKL7.js} +1 -1
  29. package/dist/{chunk-MDP5SNK4.cjs → chunk-VSCPFHTD.cjs} +2 -2
  30. package/dist/{chunk-DQS4KZUX.js → chunk-ZUGTEKLM.js} +2 -2
  31. package/dist/collaboration/replication.cjs +1 -1
  32. package/dist/collaboration/replication.js +1 -1
  33. package/dist/editor.cjs +1 -1
  34. package/dist/editor.js +1 -1
  35. package/dist/export.cjs +2 -2
  36. package/dist/export.js +1 -1
  37. package/dist/index.cjs +1 -1
  38. package/dist/index.js +1 -1
  39. package/dist/layout.cjs +1 -1
  40. package/dist/layout.js +1 -1
  41. package/dist/output.cjs +1 -1
  42. package/dist/output.js +1 -1
  43. package/dist/store.cjs +1 -1
  44. package/dist/store.js +1 -1
  45. package/package.json +2 -2
  46. package/dist/chunk-4KMSEFIG.js +0 -3
  47. package/dist/chunk-72BDQFHY.js +0 -18
  48. package/dist/chunk-77DD4EBC.cjs +0 -11
  49. package/dist/chunk-BEOPUDAB.js +0 -5
  50. package/dist/chunk-CJCFEXTA.js +0 -11
  51. package/dist/chunk-LQ6XWTKQ.cjs +0 -18
  52. package/dist/chunk-MRPPCGCX.cjs +0 -20
  53. package/dist/chunk-P6VGDI57.js +0 -2
  54. package/dist/chunk-QBMAXYN7.js +0 -20
@@ -0,0 +1,18 @@
1
+ 'use strict';var chunkFGBADUSK_cjs=require('./chunk-FGBADUSK.cjs'),chunkVSCPFHTD_cjs=require('./chunk-VSCPFHTD.cjs'),chunkFBWBSHC4_cjs=require('./chunk-FBWBSHC4.cjs'),sT=require('bidi-js');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var sT__default=/*#__PURE__*/_interopDefault(sT);var ah=6,ih=14,bE=`fixed:char-width=${ah}:line-height=${ih}`;function qk(e=ah,t=ih){let n=r=>r.fontSizePt/11;return {measure:(r,o)=>r.length*e*n(o)*(o.horizontalScalePercent/100)+r.length*o.characterSpacingPt,lineMetrics:r=>{let o=r.verticalAlign==="baseline"?1:.75,a=t*n(r)*o;return {height:a,baseline:a*.8}}}}var Zk=/^[0-9A-Fa-f]{6}$/;function Iu(e){if(!(e===void 0||e==="auto"||e==="nil")&&Zk.test(e))return e.toUpperCase()}function As(e){if(e&&e.val!=="nil")return Iu(e.fill)}function lh(e){if(!e||e.localName!=="shd")return;let t={};for(let n of e.attributes)t[n.localName]=n.value;return As(t)}function sh(e){let t;for(let n of e)n.localName==="shd"&&(t=As(n.attributes));return t}function Ds(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 Po="http://schemas.microsoft.com/office/word/2010/wordml",dh=/^[0-9a-f]{6}$/i;function ch(e){if(e.namespaceUri!==Po||e.localName!=="textOutline")return null;let t={localName:"textOutline"},n={};for(let l of e.attributes){if(l.namespaceUri!==Po||!["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!==Po)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!==Po||d.localName!=="srgbClr"||d.children.length!==0||d.attributes.length!==1)return t;let c=d.attributes[0];if(c.namespaceUri!==Po||c.localName!=="val"||!dh.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!==Po||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!==Po||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 uh(e){let t=e.attributes?.w,n=e.attributes?.outlineColor;if(!t||!/^\d{1,8}$/.test(t)||!n||!dh.test(n))return;let r=Number(t);return r>0&&r<=20116800?Object.freeze({widthPt:r/12700,color:n.toUpperCase()}):void 0}var Jk=new Set(["b","bCs","caps","emboss","i","iCs","imprint","outline","shadow","smallCaps","strike","vanish"]);function Hn(e){let t=e.attributes?.val;return t===void 0||!(t==="0"||t==="false"||t==="off")}var fh=new WeakMap;function _s(e){let t=[],n;for(let r of e){let o=r.role==="carried"?fh.get(r.properties):void 0,a;for(let i of r.properties){if(!Jk.has(i.localName)){r.emit&&t.push(i);continue}o||(a||(a=new Map),a.set(i.localName,Hn(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 fh.set(t,n),t}var Tn=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}),Qk=/^[0-9A-Fa-f]{6}$/;function Ki(e,t=false){return e===void 0||!(t?/^-?\d{1,7}$/:/^\d{1,7}$/).test(e)?null:Number(e)}function mh(e){return e===void 0||e==="auto"?null:Qk.test(e)?e.toUpperCase():null}var gh={major:null,minor:null,majorEastAsia:null,minorEastAsia:null};function Ae(e,t){let n={...Tn},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?chunkVSCPFHTD_cjs.b(i?.asciiTheme,t,r)??chunkVSCPFHTD_cjs.b(i?.hAnsiTheme,t,r):null)??i?.ascii??i?.hAnsi;s&&s.length<=128&&(n.fontFamily=s);let c=(t?chunkVSCPFHTD_cjs.b(i?.eastAsiaTheme,t,r):null)??i?.eastAsia;c&&c.length<=128&&(n.fontFamilyEastAsia=c);break}case "sz":{let i=Ki(a.attributes?.val);i!==null&&i>0&&(n.fontSizePt=i/2);break}case "color":{n.color=mh(a.attributes?.val);break}case "b":n.bold=Hn(a);break;case "textOutline":n.textOutline=uh(a);break;case "i":n.italic=Hn(a);break;case "u":{let i=a.attributes?.val??"single";n.underline=i==="none"||!Hn(a)?null:{variant:i,color:mh(a.attributes?.color)};break}case "strike":n.strike=Hn(a);break;case "dstrike":n.doubleStrike=Hn(a);break;case "highlight":{let i=a.attributes?.val;n.highlight=i&&i!=="none"?i:null;break}case "shd":{n.shading=As(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=Ki(a.attributes?.val,true);i!==null&&(n.baselineShiftPt=i/2);break}case "caps":n.caps=Hn(a);break;case "smallCaps":n.smallCaps=Hn(a);break;case "spacing":{let i=Ki(a.attributes?.val,true);i!==null&&(n.characterSpacingPt=i/20);break}case "w":{let i=Ki(a.attributes?.val);i!==null&&i>0&&(n.horizontalScalePercent=i);break}case "kern":{let i=Ki(a.attributes?.val);i!==null&&(n.kerningMinPt=i/2);break}case "vanish":n.hidden=Hn(a);break;}return o||(n.fontFamily??=t?.minor??null),n.fontFamilyEastAsia??=t?.minorEastAsia??chunkVSCPFHTD_cjs.c(r),n}var ph=new WeakMap;function js(e,t){if(e.fontFamily===t)return e;let n=ph.get(e);n||(n=new Map,ph.set(e,n));let r=n.get(t);return r||(r=Object.freeze({...e,fontFamily:t}),n.set(t,r)),r}function nn(e,t){return t.caps?e.toUpperCase():e}function qe(e,t,n){return n.measure(nn(e,t),t)}function hh(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.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.hidden===t.hidden&&e.underline?.variant===t.underline?.variant&&e.underline?.color===t.underline?.color}function yh(e){return e.verticalAlign==="superscript"?e.baselineShiftPt+e.fontSizePt*.33:e.verticalAlign==="subscript"?e.baselineShiftPt-e.fontSizePt*.16:e.baselineShiftPt}var OE="und";function FE(){return typeof Intl.Segmenter=="function"}function ev(){let e=Intl.Segmenter;if(typeof e!="function")throw new Error("Intl.Segmenter is required for deterministic grapheme segmentation (locale: und)");return e}function tv(){let e=new(ev())("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 bh=tv(),Cu=bh,xh=0;function Ws(){return xh}var Ia=null,Ro=null,Hs=null,Xi=null;function Ye(e){if(Ia===e&&Ro)return Ro;if(Hs===e&&Xi){let n=Xi;return Hs=Ia,Xi=Ro,Ia=e,Ro=n,n}let t=Cu.segment(e);return Hs=Ia,Xi=Ro,Ia=e,Ro=t,t}function CE(e){Cu=e,Sh();}function ME(){Cu=bh,Sh();}function Sh(){xh+=1,Ia=null,Ro=null,Hs=null,Xi=null,Ou=null,zs=null,Fu=0;}function BE(e){return Ye(e).length}var Ou=null,zs=null,Fu=0;function nv(e){if(Ou===e&&zs)return {offsets:zs,count:Fu};let t=Ye(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,Ou=e,zs=n,Fu=t.length,{offsets:n,count:t.length}}function LE(e,t){let n=Math.max(0,Math.min(t,e.length)),{offsets:r}=nv(e);return r[n]}function EE(e,t){let n=Ye(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 Ph(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 Rh(e,t,n){if(t?.toLowerCase()!=="times new roman")return false;let r,o,a=(i,l)=>((n?chunkVSCPFHTD_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 Mu(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 ie=(e,t,n)=>e>=t&&e<=n,Vs=class extends Error{name="UnsupportedScriptError";code="unsupportedScript";codePoint;constructor(t){super(`Unsupported Unicode script at U+${t.toString(16).toUpperCase()}`),this.codePoint=t;}},vh=e=>{if(ie(e,65313,65338)||ie(e,65345,65370))return {slot:"hAnsi",script:"Latn"};if(ie(e,1424,1535)||ie(e,64285,64335))return {slot:"cs",script:"Hebr"};if(ie(e,1536,1791)||ie(e,1872,1919)||ie(e,2160,2207)||ie(e,2208,2303)||ie(e,64336,65023)||ie(e,65136,65279)||ie(e,126464,126719))return {slot:"cs",script:"Arab"};if(ie(e,4352,4607)||ie(e,11904,12351)||ie(e,12352,12543)||ie(e,12544,12687)||ie(e,12784,12799)||ie(e,13312,19903)||ie(e,19968,40959)||ie(e,44032,55215)||ie(e,63744,64255)||ie(e,65382,65437)||ie(e,65440,65500)||ie(e,131072,201551))return {slot:"eastAsia",script:"Hani"};if(ie(e,2304,2431)||ie(e,43232,43263))return {slot:"cs",script:"Deva"};if(ie(e,2432,2559))return {slot:"cs",script:"Beng"};if(ie(e,880,1023)||ie(e,7936,8191))return {slot:"hAnsi",script:"Grek"};if(ie(e,1024,1327)||ie(e,7296,7311)||ie(e,11744,11775)||ie(e,42560,42655))return {slot:"hAnsi",script:"Cyrl"};if(ie(e,3584,3711))return {slot:"cs",script:"Thai"};if(ie(e,6016,6143)||ie(e,6624,6655))return {slot:"cs",script:"Khmr"};if(ie(e,768,879)||ie(e,6832,6911)||ie(e,7616,7679)||ie(e,8400,8447)||ie(e,8192,8303)||ie(e,65056,65071)||e<=47||ie(e,58,64)||ie(e,91,96)||ie(e,123,191)||e===5760||ie(e,8192,11263)||ie(e,65024,65039)||ie(e,65280,65381)||ie(e,65438,65439)||ie(e,65501,65535)||ie(e,126976,129791)||ie(e,917760,917999))return null;if(e<=127)return {slot:"ascii",script:"Latn"};if(ie(e,192,687)||ie(e,7424,7551)||ie(e,7552,7615)||ie(e,7680,7935)||ie(e,11360,11391)||ie(e,42784,43007)||ie(e,43824,43887))return {slot:"hAnsi",script:"Latn"};throw new Vs(e)};function rv(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:vh(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 Th(e,t,n){let r=rv(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 _e(e,t){if(t!=="eastAsia")return e;let n=e.fontFamilyEastAsia;return n===null?e:js(e,n)}var wh=e=>{let t;try{t=vh(e);}catch(n){if(n instanceof Vs)return "base";throw n}return t===null?"common":t.slot==="eastAsia"?"eastAsia":"base"},kh=e=>{for(let t=0;t<e.length;t+=1)if(e.charCodeAt(t)>=128)return false;return true};function Ih(e,t=[]){let n=[],r=(p,m,g)=>{let h=n.at(-1);h&&h.segment===p&&h.to===m?n[n.length-1]={segment:p,from:h.from,to:g}:n.push({segment:p,from:m,to:g});},o=null,i=e.some((p,m)=>{if(!t[m]||kh(p))return false;for(let g of p)if(Mu(g.codePointAt(0)))return true;return false})?Ye(e.join("")):null,l=0,s=0,d=false,c=[],u=p=>{for(let m of c)p==="eastAsia"&&!m.ascii&&r(m.segment,m.from,m.to);c.length=0;};for(let p=0;p<e.length;p+=1){let m=e[p],g=s;if(s+=m.length,!i&&kh(m)){/[0-9A-Za-z]/.test(m)&&(u("base"),o="base");continue}for(let h=0;h<m.length;){let b=m.codePointAt(h),x=h+(b>65535?2:1),y=false;if(i){let S=g+h;for(;i[l].utf16To<=S;)l+=1;let T=i[l];b=T.text.codePointAt(0),x=Math.min(m.length,T.utf16To-g),S===T.utf16From&&(d=!!t[p]&&Mu(b)),y=d;}if(y){let S=wh(b);S!=="common"&&(u(S),o=S),r(p,h,x),h=x;continue}let O=wh(b);O==="common"?o===null?c.push({segment:p,from:h,to:x,ascii:b<=127}):o==="eastAsia"&&b>127&&r(p,h,x):(u(O),o=O,O==="eastAsia"&&r(p,h,x)),h=x;}}if(n.length<2)return n;n.sort((p,m)=>p.segment-m.segment||p.from-m.from);let f=[n[0]];for(let p=1;p<n.length;p+=1){let m=n[p],g=f[f.length-1];g.segment===m.segment&&m.from<=g.to?m.to>g.to&&(f[f.length-1]={...g,to:m.to}):f.push(m);}return f}function Oh(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 Rt(e,t=false){return rn(e.fragments,t)}var Fh=new WeakMap;function rn(e,t=false){let n=Fh.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={},Fh.set(e,n)),n[r]=a,a}function Mh(e){let t=[];for(let n of e.pages)for(let r of Rt(n))t.push(...r.lines);return t}function ov(e){return e.anchoredDrawings??[]}var av=Object.freeze({x:0,y:0,width:0,height:0});function Oa(e){let t=e??av;return {box:t,origin:Object.freeze({x:t.x,y:t.y})}}var iv={fragments:true,anchoredDrawings:true,header:true,footer:true,footnotes:true,endnotes:true},lv=Object.freeze(Object.keys(iv));var sv={separator:true,notes:true},dv=Object.freeze(Object.keys(sv));function Ch(e,t,n,r){let o=t.kind??(n==="footnote"?"footnotes":"endnotes");for(let a of dv)switch(a){case "separator":t.separator&&r({page:e,story:"note-separator",host:t.separator,...Oa(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,...Oa(i.box),noteScopeId:i.scopeId,noteAreaKind:o});break;case "endnote":r({page:e,story:"endnote",host:i,...Oa(i.box),noteScopeId:i.scopeId,noteAreaKind:o});break;}break;}}function cv(e,t){for(let n of lv)switch(n){case "fragments":t({page:e,story:"body",host:e,...Oa(e.contentBox),noteScopeId:null,noteAreaKind:null});break;case "anchoredDrawings":break;case "header":e.header&&t({page:e,story:"header",host:e.header,...Oa(e.header.box),noteScopeId:null,noteAreaKind:null});break;case "footer":e.footer&&t({page:e,story:"footer",host:e.footer,...Oa(e.footer.box),noteScopeId:null,noteAreaKind:null});break;case "footnotes":e.footnotes&&Ch(e,e.footnotes,"footnote",t);break;case "endnotes":e.endnotes&&Ch(e,e.endnotes,"endnote",t);break;}}function uv(e,t){for(let n of e.pages)cv(n,t);}var Bh=16,Bu=Object.freeze({x:0,y:0});function Lh(e,t,n){let r=t.textboxStory?.contentOffset??Bu,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 Fa(e,t,n=Bu,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>Bh)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]),Lh(d,u,l===0?r?.(u):void 0));for(let u of i.fragments)o(u,c);};a(e,0,Object.freeze([]),n);}function GE(e,t){uv(e,n=>{let{page:r,story:o,host:a,noteScopeId:i,noteAreaKind:l}=n,s=o==="header"||o==="footer"?d=>Oh(d,n.origin,{x:r.box.x,y:r.box.y}):void 0;Fa(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=p=>Object.freeze({x:u.x+p.x-d.x,y:u.y+p.y-d.y,width:p.width,height:p.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 Lu(e,t,n=Bu,r){let o=(a,i,l,s)=>{if(!(i>Bh)){for(let d of rn(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]),Lh(s,d,i===0?r?.(d):void 0));}};o(e,0,Object.freeze([]),n);}function fv(e,t){let n=[];for(let r of e.pages)for(let o of Rt(r))o.paragraphId===t&&n.push(o);return n.sort((r,o)=>r.fragmentIndex-o.fragmentIndex)}function Gs(e,t,n,r){for(let o of r??Mh(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 Eu(e){return e.contentControls??[]}function $s(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 Nu(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 Ks=Object.freeze({width:612,height:792,margin:Object.freeze({top:72,right:72,bottom:72,left:72})});var Eh=new WeakMap,Nh=new WeakMap,Ah=new WeakMap,Dh=new WeakMap;function _h(e){let t=Dh.get(e);if(t)return t;let n=new Set,r=[];for(let o of Rt(e)){for(let a of o.lines)for(let i of Ca(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 Dh.set(e,r),r}function Ma(e){let t=Eh.get(e);if(t)return t;let n=new Set,r=[];for(let o of e.pages)for(let a of _h(o))n.has(a)||(n.add(a),r.push(a));return Eh.set(e,r),r}function wo(e){let t=Nh.get(e);if(t)return t;let n=new Map;for(let[r,o]of Ma(e).entries())n.set(o,r);return Nh.set(e,n),n}function mv(e){let t=Ah.get(e);if(t)return t;let n=new Set,r=[],o=a=>{for(let i of rn(a)){for(let l of i.lines)for(let s of Ca(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 _h(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 Ah.set(e,r),r}var jh=new WeakMap;function Yi(e){let t=jh.get(e);if(t)return t;let n=[...Rt(e)];for(let r of [e.header,e.footer])r&&n.push(...rn(r.fragments));for(let r of [e.footnotes,e.endnotes])if(r)for(let o of r.notes)n.push(...rn(o.fragments));return jh.set(e,n),n}function Wh(e,t,n){return e.paragraphId===t&&n>=e.start&&n<e.end}var Hh=new WeakMap;function gt(e){let t=Hh.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)?pv(e):[n];return Hh.set(e,o),o}function Ca(e){let t=gt(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 pv(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 pr(e,t){return gt(e).find(n=>n.paragraphId===t)??null}function ko(e,t,n,r,o=wo(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 nN(e,t){for(let n of e.pages)for(let r of Rt(n)){let o=Ba(r).indexOf(t);if(o>0)return Ba(r).slice(0,o).reverse()}return []}var zh=new WeakMap;function Ba(e){let t=zh.get(e);if(t)return t;let n=[];for(let r of e.lines??[])for(let o of Ca(r))n.includes(o.paragraphId)||n.push(o.paragraphId);return n.includes(e.paragraphId)||n.push(e.paragraphId),zh.set(e,n),n}function gv(e,t){let n=Ba(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=pr(a,t);i&&(r=Math.min(r,i.start),o=Math.max(o,i.end));}return o>=r?{start:r,end:o}:null}function gr(e,t,n){let r=gv(e,t);return r!==null&&n>=r.start&&n<r.end}function rN(e,t){for(let n of e.pages)for(let r of Yi(n))if(r.paragraphId===t)return r;for(let n of e.pages)for(let r of Yi(n))if(Ba(r).includes(t))return r;return null}function Vh(e,t){return t?{...e,range:{paragraphId:t.paragraphId,start:t.start,end:t.end},spans:t.spans,drawings:t.drawings}:e}var aN=64,iN=64,hv=[{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 Nr(e){if(!Number.isFinite(e))return 1;let t=Math.trunc(e);return t<0?1:t>9999?9999:t}function vo(e){return String(Nr(e))}function yv(e){let t=Nr(e);return t<10?`0${t}`:String(t)}function Gh(e){let t=Nr(e);t>3999&&(t=3999);let n="";for(let{value:r,glyph:o}of hv)for(;t>=r;)if(n+=o,t-=r,n.length>=64)return n.slice(0,64);return n||"I"}function bv(e){return Gh(e).toLowerCase()}function $h(e){let t=Nr(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 xv(e){return $h(e).toLowerCase()}function Sv(e){let t=Nr(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 Pv(e){return Nr(e).toString(16).toUpperCase()}function Rv(e){let t=["*","\u2020","\u2021","\xA7"],n=Nr(e);if(n<=0)return t[0];let r=(n-1)%t.length,o=Math.min(Math.floor((n-1)/t.length)+1,wv);return t[r].repeat(o)}var wv=8,Xs=["zero","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"],kv=["","","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"];function Ys(e){let t=Nr(e);if(t<20)return Xs[t];if(t<100){let r=t%10;return kv[Math.floor(t/10)]+(r===0?"":`-${Xs[r]}`)}if(t<1e3){let r=t%100;return `${Xs[Math.floor(t/100)]} hundred${r===0?"":` ${Ys(r)}`}`}let n=t%1e3;return `${Xs[Math.floor(t/1e3)]} thousand${n===0?"":` ${Ys(n)}`}`}function Kh(e){return e.length===0?e:e[0].toUpperCase()+e.slice(1)}function vv(e){return Kh(Ys(e))}var Tv=new Map([["zero","zeroth"],["one","first"],["two","second"],["three","third"],["five","fifth"],["eight","eighth"],["nine","ninth"],["twelve","twelfth"]]);function Iv(e){let t=Tv.get(e);return t!==void 0?t:e.endsWith("y")?`${e.slice(0,-1)}ieth`:`${e}th`}function Ov(e){let t=Ys(e),n=Math.max(t.lastIndexOf(" "),t.lastIndexOf("-")),r=n<0?"":t.slice(0,n+1);return Kh(r+Iv(t.slice(n+1)))}function zn(e,t){switch(e){case "decimal":return vo(t);case "decimalZero":return yv(t);case "upperRoman":return Gh(t);case "lowerRoman":return bv(t);case "upperLetter":return $h(t);case "lowerLetter":return xv(t);case "ordinal":return Sv(t);case "cardinalText":return vv(t);case "ordinalText":return Ov(t);case "hex":return Pv(t);case "chicago":return Rv(t);case "numberInDash":return `- ${vo(t)} -`;case "none":case "bullet":return "";default:return vo(t)}}function Au(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"?"":zn(d,c);for(let f of u){if(o.length>=64)break;o+=f;}a+=1;continue}}o+=i;}return o}var Xh=4096,Wt=64,Hu=Object.freeze({hasPage:false,hasNumPages:false,hasSectionPages:false}),Yh=/\s*\\\*\s*MERGEFORMAT\s*$/i;function To(e){if(e.length>chunkFBWBSHC4_cjs.oe)return null;let t=e.replace(/\s+/g," ").trim().toUpperCase();return t.length>chunkFBWBSHC4_cjs.oe?null:t.replace(Yh,"").trim()}var Fv=/\s*\\#\s*(?:"([^"]*)"|([^\\"]+))$/;function Cv(e){if(e.length>chunkFBWBSHC4_cjs.oe)return null;let t=e.replace(/\s+/g," ").trim();if(t.length>chunkFBWBSHC4_cjs.oe)return null;let n=t.replace(Yh,"").trim(),r=Fv.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 La(e){let t=Cv(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 Ar(e){return La(e)?.kind??null}function wt(e,t){return chunkFBWBSHC4_cjs.be(e,t)}function hr(e){return chunkFBWBSHC4_cjs.ce(e)}function yr(){return {nodes:0,exhausted:false}}function ot(e){return e.exhausted?false:(e.nodes+=1,e.nodes>Xh?(e.exhausted=true,false):true)}function Io(){return {nesting:0,instruction:"",instructionOverflow:false,deletedInstruction:"",deletedInstructionOverflow:false,sawLiveInstruction:false,nestingOverflow:false,phase:"idle",inner:[]}}function Ui(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 Ea(e){return e.sawLiveInstruction?{instruction:e.instruction,overflow:e.instructionOverflow}:{instruction:e.deletedInstruction,overflow:e.deletedInstructionOverflow}}function Mv(e){return e.sawLive?{instruction:e.instruction,overflow:e.overflow}:{instruction:e.deletedInstruction,overflow:e.deletedOverflow}}function Oo(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>chunkFBWBSHC4_cjs.pe?e.nestingOverflow=true:e.nesting>=2&&(e.inner[e.nesting-2]={instruction:"",overflow:false,deletedInstruction:"",deletedOverflow:false,sawLive:false,separated:false});}function Na(e){return e.nesting<2||e.nesting>chunkFBWBSHC4_cjs.pe?null:e.inner[e.nesting-2]??null}function Uh(e){if(e.nesting===1)return e.phase==="instruction";let t=Na(e);return t!==null&&!t.separated}function _u(e,t){if(!Uh(e))return false;if(e.nesting===1)return t?!e.deletedInstructionOverflow:!e.instructionOverflow;let n=Na(e);return t?!n.deletedOverflow:!n.overflow}function qh(e){if(e.nesting===1){e.sawLiveInstruction=true;return}let t=Na(e);t&&(t.sawLive=true);}function ju(e,t){if(e.nesting===1){t?(e.deletedInstructionOverflow=true,e.deletedInstruction=""):(e.instructionOverflow=true,e.instruction="");return}let n=Na(e);n&&(t?(n.deletedOverflow=true,n.deletedInstruction=""):(n.overflow=true,n.instruction=""));}function Du(e){ju(e,false),ju(e,true);}function Bv(e,t,n=false){if(!_u(e,n))return;let r=Na(e);n||qh(e);let o=r?n?r.deletedInstruction:r.instruction:n?e.deletedInstruction:e.instruction;if(o.length+t.length>chunkFBWBSHC4_cjs.oe){ju(e,n);return}r?n?r.deletedInstruction=o+t:r.instruction=o+t:n?e.deletedInstruction=o+t:e.instruction=o+t;}function Fo(e,t,n,r){if(!Uh(e))return;let o=chunkFBWBSHC4_cjs.de(t);if(o||qh(e),!_u(e,o))return;if(r>Wt){Du(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(!ot(n)){Du(e);return}if(l.depth>Wt){Du(e);return}if(l.node.kind==="textValue"){if(Bv(e,l.node.value,o),!_u(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 Co(e){if(e.nesting===1){if(e.phase!=="instruction"||(e.phase="result",e.nestingOverflow))return null;let r=Ea(e);return r.overflow?null:La(r.instruction)}let t=Na(e);if(!t||t.separated)return null;t.separated=true;let n=Mv(t);return n.overflow?null:La(n.instruction)}function Mo(e){e.nesting>0&&(e.nesting-=1),e.nesting===0&&Ui(e);}function Zh(e){return e.phase==="instruction"&&e.nesting>=1}function Jh(e){return e.phase==="result"&&e.nesting>=1}function zu(e){let t=false,n=false,r=false,o=yr(),a=Io(),i=()=>t&&n&&r,l=p=>{p==="PAGE"?t=true:p==="NUMPAGES"?n=true:r=true;},s=false,d=[],c=(p,m)=>{if(p.kind!=="runProperties"){if(wt(p,"begin")){Oo(a),a.nestingOverflow&&(s=true);return}if(hr(p)){Fo(a,p,o,m);return}if(wt(p,"separate")){let g=a.nesting,h=a.phase,b=Co(a);if(s)return;b&&(g<=1||h==="result")&&d.push(b.kind);return}if(wt(p,"end")&&(Mo(a),a.nesting===0)){if(!s)for(let g of d)l(g);d.length=0;}}},u=(p,m)=>{if(p.kind==="run")for(let g of p.children){if(!ot(o))return;if(c(g,m+1),(g.kind==="drawing"||g.kind==="generic")&&!hr(g)&&"children"in g&&g.children.length>0){let h={...a,inner:a.inner.map(y=>({...y}))},b=s,x=d;d=[],f(g,m+1),Object.assign(a,h),s=b,d=x;}if(i()||o.exhausted)return}},f=(p,m)=>{if(!i()&&ot(o)&&!(m>Wt)&&p.kind!=="textValue"){if(p.kind==="paragraph"){Ui(a),s=false,d.length=0;for(let g of p.children)if(f(g,m+1),i()||o.exhausted)return;Ui(a),s=false,d.length=0;return}if(p.kind==="run"){u(p,m);return}if(chunkFBWBSHC4_cjs.ee(p)){let g=Ar(chunkFBWBSHC4_cjs.ge(p)??"");if(g){l(g);return}}for(let g of p.children)if(f(g,m+1),i()||o.exhausted)return}};return f(e,0),!t&&!n&&!r?Hu:{hasPage:t,hasNumPages:n,hasSectionPages:r}}function Us(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 m=0;m<t.length;m+=1)r.push(o),t[m]==="0"&&(o=true);let a=n.length,i=false,l=0,s=0,d=[],c=-1;for(let m=t.length-1;m>=0;m-=1){let g=t[m];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[m])&&(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(""),p=d.slice(0,c+1).reverse().join("");return f+u.reverse().join("")+p}function In(e){return "outOfFlow"in e&&e.outOfFlow===true}var Aa="0";function Dr(e,t){return e!=="PAGE"||!t||t==="decimal"}function qs(e,t,n){return t===void 0||!Dr(e,n)?Aa:Us(0,t)??Aa}function Gu(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 vo(n);let o=zn(r,n);return o.length>0?o:vo(n)}function br(e,t,n){if(e==="PAGE"){if(n!==void 0&&Dr(e,t.format)){let o=Us(t.pageNumber,n);if(o!==null)return o}return Gu(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=Us(r,n);if(o!==null)return o}return vo(Math.floor(r))}function _r(e){return e.hasPage||e.hasNumPages||e.hasSectionPages}function $u(e,t=Hu){if(!e||!_r(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 _a(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 Lv(e){for(let t of e.spans)if(t.fieldAtom?.pageField||t.fieldAtom?.pageRef)return true;return false}function ey(e){if(e.kind==="paragraph"){for(let t of e.lines)if(Lv(t))return true;return false}for(let t of e.rows)for(let n of t.cells)for(let r of n.blocks)if(ey(r))return true;return false}function Ku(e,t){let n=t,r=false;for(let o of e)In(o)||(n=Math.max(n,o.box.y+o.box.height)),!r&&ey(o)&&(r=true);return {usedBottom:n,hasBodyPageFields:r}}var Wu=new WeakMap;function Ev(e,t,n,r){let o=Wu.get(e);if(o)return t.length>0&&n!==t&&o.revision===r?(Wu.delete(e),false):true;let a=t.length===0||t===n;return a&&Number.isFinite(r)&&Wu.set(e,{revision:r}),a}function ty(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)ty(o,t);}function ny(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)ny(i,t,n,r);}var Qh=new WeakMap;function ry(e){let t=Qh.get(e);if(t!==void 0)return t;let n=Nv(e);return Qh.set(e,n),n}function Nv(e){let t=null;for(let o of e)if(o.hasBodyPageFields!==false)for(let a of o.fragments)ty(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)ny(l,t,i,n);}let r="";for(let[o,a]of n)r+=`${o}@${a.pageNumber}/${a.format??""};`;return {hosts:n,token:r}}function Xu(e){return ry(e)?.token??""}function Av(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=Gu(d.pageNumber,d.format);if(c.length===0)continue;let f=Ev(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=br(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 oy(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=Av(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],p=oy(f.blocks,t,n);p!==f.blocks&&(c||(c=d.cells.slice()),c[u]={...f,blocks:p});}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 Da=new WeakMap;function yN(e){for(let t of Array.isArray(e.pages)?e.pages:[])t.header&&Da.delete(t.header),t.footer&&Da.delete(t.footer);}function Dv(e,t){return e.pageNumber===t.pageNumber&&e.pageCount===t.pageCount&&(e.sectionPageCount??e.pageCount)===(t.sectionPageCount??t.pageCount)&&e.format===t.format}function Yu(e,t,n){let r=Da.get(e);r&&Da.set(t,{context:r.context,projector:r.projector,dy:r.dy+n});}var Vu=new WeakMap;function jr(e){let t=e.pages.length;if(t===0)return e;let n=ry(e.pages),r=n?.token??"",o=false,a=e.pages.map(i=>{let l=Vu.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,b=0;if(!h){let R=Da.get(g);if(!R||Dv(R.context,d))return g;h=R.projector,b=R.dy;}o=true;let x=h(d),{pageFieldProjector:y,box:O,...S}=x,T={...S,box:b===0?O:{...O,y:O.y+b}};return Da.set(T,{context:d,projector:h,dy:b}),T},u=c(i.header),f=c(i.footer),p=i.hasBodyPageFields===false?i.fragments:oy(i.fragments,d,n?{hosts:n.hosts,revision:e.revision}:void 0);if(u===i.header&&f===i.footer&&p===i.fragments)return Vu.set(i,{pageCount:t,pageRefToken:r,result:i}),i;p!==i.fragments&&(o=true);let m={...i,...u!==void 0?{header:u}:{},...f!==void 0?{footer:f}:{},...p!==i.fragments?{fragments:p}:{}};return Vu.set(i,{pageCount:t,pageRefToken:r,result:m}),m});return o?{...e,pages:a}:e}function _v(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 Bo(e){if(To(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=_v(d),o===null)return null;continue}return null}return {kind:r,numFmt:o,suppressPeriod:a}}function ay(e,t){let n=zn(e.numFmt??"decimal",t);return n.length===0?"":e.suppressPeriod?n:`${n}.`}var Uu=256,jv=Object.freeze({suppressNonDelimiterText:false,noteRef:false,pageRef:false}),Hv=Object.freeze({suppressNonDelimiterText:true,noteRef:false,pageRef:false}),zv=Object.freeze({suppressNonDelimiterText:false,noteRef:true,pageRef:false}),Wv=Object.freeze({suppressNonDelimiterText:false,noteRef:false,pageRef:true}),Zs=new WeakMap;function On(e){return Zs.get(e)??jv}function Vv(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 Hr(e){if(e.length>chunkFBWBSHC4_cjs.oe)return null;let t=e.replace(/\s+/g," ").trim();if(t.length>chunkFBWBSHC4_cjs.oe)return null;let n=Vv(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>Uu||o.startsWith("\\"))return null;if(r==="NOTEREF")return Gv(n,o);if(r==="PAGEREF")return $v(n,o);let a=false,i=false,l=false,s=false,d=false;for(let f=2;f<n.length;f+=1){let p=n[f].toUpperCase();if(p==="\\R")i=true;else if(p==="\\W")l=true;else if(p==="\\N")a=true;else if(p==="\\T")s=true;else if(p==="\\H")d=true;else if(p==="\\*"&&n[f+1]?.toUpperCase()==="MERGEFORMAT")f+=1;else {if(p==="\\*MERGEFORMAT")continue;return null}}let u={bookmark:o,numberSwitch:a?"n":i?"r":l?"w":null,hyperlink:d};return s&&Zs.set(u,Hv),u}function Gv(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 Zs.set(r,zv),r}function $v(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 Zs.set(r,Wv),r}var je="all-markup",Qs=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]()}},vN=new Qs([]);function TN(e){let t=new Set;for(let o of e)t.add(o);if(t.size===0)return;let n=[...t].sort(),r=new Qs(n);return Object.freeze({hiddenAuthors:r,includes:o=>!r.has(o.author),includesNode:(o,a)=>!r.has(a),cacheKey:JSON.stringify(n)})}function ja(e,t){return e.includes?.(t)??ly(e,t.nodeId,t.author)}function ly(e,t,n){return e.includesNode?.(t,n)??!e.hiddenAuthors.has(n)}function qi(e,t,n){return ja(e,t)?n:e.excludedNodeMode?.(t.nodeId,t.author)??"proposed"}function sy(e,t,n,r){return ly(e,t,n)?r:e.excludedNodeMode?.(t,n)??"proposed"}var Sr=Object.freeze([]),Kv=32,Xv={revisionInsert:"insert",revisionDelete:"delete",revisionMoveFrom:"moveFrom",revisionMoveTo:"moveTo"};function xr(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 on(e){if(e.kind==="textValue")return null;let t=Xv[e.kind];if(t===void 0)return null;let n=xr(e,"date");return {kind:t,id:xr(e,"id")??"",author:xr(e,"author")??"",...n===void 0?{}:{date:n},nodeId:e.id}}function pn(e,t){return e.length===0?[t]:[...e,t]}function qt(e){return e.kind!=="textValue"&&chunkFBWBSHC4_cjs.ka(e.kind)}var td=Kv;function He(e,t,n){if(e.length===0||t==="all-markup"&&!n)return true;for(let r of e){let o=n?qi(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 qu(e,t,n){if(!n&&t==="all-markup")return e;if(!He(e,t,n))return null;if(!n)return e;let r=e.filter(o=>ja(n,o));return r.length===0?Sr:r}function iy(e,t,n){return t==="all-markup"&&(!n||ja(n,e))}function Yv(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 ja(t,{kind:"format",id:n.attributes?.id??"",author:n.attributes?.author??"",...n.attributes?.date===void 0?{}:{date:n.attributes.date},nodeId:r})}):e}function nd(e,t,n,r){let o=qu(e,n,r);if(o===null)return null;let a=r?Yv(t,r):t;return o.length===0?{props:a}:{props:a,revisions:o}}function rd(e,t,n){if(t!=="all-markup")return {revisions:Sr,formatRevision:null};if(!n)return {revisions:Ha(e),formatRevision:ed(e)};let r=Ha(e).filter(a=>iy(a,t,n)),o=ed(e);return {revisions:r,formatRevision:o&&iy(o,t,n)?o:null}}function dy(e,t,n){let r=Ha(e);if(!n)return r.length>0||ed(e)!==null;if(r.some(a=>ja(n,a)))return true;let o=ed(e);return o!==null&&ja(n,o)}function Ha(e){if(e.kind==="textValue")return Js;let t=e.children.find(o=>o.kind==="paragraphProperties");if(!t||t.kind==="textValue")return Js;let n=t.children.find(o=>o.kind==="runProperties");if(!n||n.kind==="textValue")return Js;let r=[];for(let o of n.children){if(o.kind==="textValue"||o.namespaceUri!==chunkFBWBSHC4_cjs.da)continue;let a=Uv[o.localName];if(a===void 0)continue;let i=xr(o,"date");r.push({kind:a,id:xr(o,"id")??"",author:xr(o,"author")??"",...i===void 0?{}:{date:i},nodeId:o.id});}return r.length>0?r:Js}var Uv={ins:"insert",del:"delete",moveFrom:"moveFrom",moveTo:"moveTo"};function ed(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!==chunkFBWBSHC4_cjs.da||r.localName!=="rPrChange")continue;let o=xr(r,"date");return {kind:"format",id:xr(r,"id")??"",author:xr(r,"author")??"",...o===void 0?{}:{date:o},nodeId:r.id}}return null}var Js=Object.freeze([]);function cy(e){return e.find(t=>qv(t))??e[0]}function qv(e){return e.kind==="delete"||e.kind==="moveFrom"}function od(e,t){let n=cy(e);return {...n?{markRevisions:e,markRevision:n}:{},...t?{markFormatRevision:t}:{}}}function IN(e){return cy(Ha(e))??null}function ad(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 Wn(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}})}function za(e,t){if(e.kind!=="textValue"){for(let n of e.children)if(n.kind!=="textValue"&&n.namespaceUri===chunkFBWBSHC4_cjs.da&&n.localName===t)return n}}function LN(e){if(e.kind==="textValue")return false;let t=za(e,"paragraphProperties")??za(e,"pPr");if(!t)return false;let n=za(t,"runProperties")??za(t,"rPr");return n===void 0?false:za(n,"del")!==void 0||za(n,"moveFrom")!==void 0}function Zu(e,t,n,r,o=[]){if(e.kind==="textValue"||t>=chunkFBWBSHC4_cjs.la)return true;let a=(i,l)=>{for(let s of i){if(s.kind==="textValue")continue;if(s.kind==="run"){for(let u of s.children){if(u.kind==="text"){for(let f of u.children)if(f.kind==="textValue"&&f.value.length>0)return false;continue}if(u.kind!=="runProperties")return false}continue}if(chunkFBWBSHC4_cjs.Dd(s)){if(l+1>=chunkFBWBSHC4_cjs.la)continue;let u=chunkFBWBSHC4_cjs.Fd(s);if(u&&!a(u,l+1))return false;continue}if(chunkFBWBSHC4_cjs.na(s)&&!qt(s)){if(!Zu(s,l+1,n,r,o))return false;continue}if(!qt(s))continue;let d=on(s);if(!d)continue;let c=pn(o,d);if(He(c,n,r)&&!Zu(s,l+1,n,r,c))return false}return true};return a(e.children,t)}function Ju(e,t,n){if(t==="all-markup"&&!n)return false;for(let r of Ha(e)){let o=n?qi(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 uy(e,t="proposed",n){return e.kind!=="paragraph"||!Ju(e,t,n)?false:Zu(e,0,t,n)}var Zv=`
2
+ \r`,Jv=/[ \t\n\r]*\\\*[ \t\n\r]*(?:"[^"]*"|[^ \t\n\r"\\]+)?[ \t\n\r]*$/;function fy(e,t){let n=t;for(;n<e.length&&Zv.includes(e[n]);)n+=1;return n}function my(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 id(e){if(e.length===0||e.length>256)return null;let t=fy(e,0);if(e[t]==='"')return null;let n=my(e,t),r=e.slice(t,n).toUpperCase();if(r!=="MACROBUTTON"&&r!=="GOTOBUTTON")return null;let o=fy(e,n);if(o>=e.length)return null;let a=my(e,o),i=e.slice(a).trim();for(;;){let l=i.replace(Jv,"").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 py=Object.freeze({TITLE:"title",AUTHOR:"creator",SUBJECT:"subject",KEYWORDS:"keywords",LASTSAVEDBY:"lastModifiedBy",COMMENTS:"description"}),Qv=/\s*\\[A-Z*@#!]\s*(?:"[^"]*"|[^\s"\\]+)?\s*$/;function eT(e){let t=e;for(;;){let n=t.replace(Qv,"").trimEnd();if(n===t)return t;t=n;}}function tT(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 ld(e){let t=To(e);if(t===null||t.length===0)return null;let n=eT(t),r=py[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=tT(o);if(a===null)return null;let i=py[a];return i?{property:i}:null}function sd(e,t){if(!t)return null;let n=t[e.property];return n!==void 0&&n.length>0?n:null}var nT=chunkFBWBSHC4_cjs.oe,rT=2048,oT=256;function aT(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 iT=new Set(["\\l","\\o","\\t","\\m","\\n","\\*","\\#","\\@"]);function dd(e){if(e.length===0||e.length>nT)return null;let t=aT(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(!iT.has(u))continue;let f=t[d+1];if(!f||!f.quoted&&f.value.startsWith("\\"))continue;d+=1;let p=f.value.length>0&&f.value.length<=oT;u==="\\l"?i||(i=true,p&&(a=f.value)):u==="\\o"&&(s||(s=true,p&&(l=f.value)));continue}o||(o=true,c.value.length>0&&c.value.length<=rT&&(r=c.value));}return r===null&&a===null?null:{target:r,anchor:a,tooltip:l}}var Lo=1024;function Zi(e,t){for(let n of e.attributes)if(n.namespaceUri===chunkFBWBSHC4_cjs.da&&n.localName===t)return n.value}function Qu(e){return e.kind==="drawing"||e.localName==="drawing"||e.localName==="pict"}function hy(e,t){let n="",r=(o,a)=>{if(!(o.kind==="textValue"||n.length>=Lo)&&!(t.exhausted||a>Wt)&&ot(t)){if(o.kind==="text"){for(let i of o.children)i.kind==="textValue"&&(n+=i.value.slice(0,Lo-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 gy=new WeakMap;function yy(e,t){let n=gy.get(e),r=n?.get(t);if(r!==void 0)return r;let o=false,a=false,i,l="",s=yr(),d=u=>{let f=Lo-l.length;if(f<=0){a=true;return}l+=u.length>f?u.slice(0,f):u;},c=(u,f,p)=>{if(a||u.kind==="textValue"||p>=chunkFBWBSHC4_cjs.la||s.exhausted||f>Wt)return;if(u.kind==="bookmarkStart"){!o&&Zi(u,"name")===t&&(o=true,i=Zi(u,"id"));return}if(u.kind==="bookmarkEnd"){o&&i!==void 0&&Zi(u,"id")===i&&(a=true);return}if(u.kind==="run"){if(!o)return;for(let g of u.children){if(a||!ot(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(Qu(u)||chunkFBWBSHC4_cjs.ee(u)||!ot(s))return;let m=chunkFBWBSHC4_cjs.ma(u,p);for(let g of u.children)c(g,f+1,m);};for(let u of e.children){if(a||!ot(s))break;c(u,1,0);}return n||(n=new Map,gy.set(e,n)),n.set(t,l),l}function Wa(e){let t=[],n=0;for(let r of e.members){let o=chunkFBWBSHC4_cjs.Qe(r).length;t.push({paragraphId:r.id,base:n,length:o}),n+=o;}return {members:t,total:n}}function ef(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 by(e,t){let n=ef(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 lT(e,t){return {...e,range:by(e.range,t)}}function cd(e,t){return e.map(n=>{let r=n.spans.map(u=>lT(u,t)),o=r[0],a=n.drawings?.map(u=>{let f=ef(t,u.start);return f?{...u,paragraphId:f.paragraphId,start:u.start-f.base}:u}),i=o?r.filter(u=>u.range.paragraphId===o.range.paragraphId):[],l=o?(a??[]).filter(u=>u.paragraphId===o.range.paragraphId):[],s=o?{paragraphId:o.range.paragraphId,start:Math.min(o.range.start,...l.map(u=>u.start)),end:Math.max(i[i.length-1].range.end,...l.map(u=>u.start+1))}:by(n.range,t),d=a,c=n.deletedRanges?.map(u=>({deleted:u,member:ef(t,u.start)})).filter(({member:u})=>u?.paragraphId===s.paragraphId).map(({deleted:u,member:f})=>({start:u.start-(f?.base??0),end:u.end-(f?.base??0)}));return {...n,range:s,spans:r,...d?{drawings:d}:{},...c?{deletedRanges:c}:{}}})}function xy(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)&&hh(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 Sy(e){let t="children"in e?zr(e):null;return t?new Set(Wa(t).members.map(n=>n.base)):void 0}var Va=sT__default.default();function kt(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 ud(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 Ry=/[\u061c\u200e\u200f\u202a-\u202e\u2066-\u2069]/u;function dT(e,t,n){let r=Va.getEmbeddingLevels(t,n?"rtl":"ltr");if(Ry.test(t))return r;let o=0;for(let a=0;a<e.length;){let i=ud(e[a].props),l=a,s=0;for(;l<e.length&&ud(e[l].props)===i;)s+=e[l].text.length,l++;let d=Va.getEmbeddingLevels(t.slice(o,o+s),i?"rtl":"ltr");r.levels.set(d.levels,o),o+=s,a=l;}return r}function wy(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=>ud(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=dT(e,r,t),a=!Ry.test(r),i=[],l=0;for(let s of xy(e,n)){let d;try{d=Th(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:ud(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 Py(e,t,n,r,o){for(let s=r-1;s>=n&&Array.from(e[s].text).every(d=>["WS","B","S"].includes(Va.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 tf(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 tf(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(Va.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 Py(e,n,c.start,c.end,c.rtl))r.push(u);}else for(let l of Py(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 fd(e,t){return e.length?e.reduce((n,r)=>Math.min(n,r.box.x),1/0):t}function nf(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 ky(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(Va.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,qe(a,_e(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 cT=new WeakMap;function vy(e,t){cT.set(e,t);}function uT(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 fT(e){return e.map(uT).join("\0;")}var mT=1<<18,pT=new TextEncoder;function of(e){return chunkFBWBSHC4_cjs.a(pT.encode(e))}var gT=2048,Ty=2*1024*1024,Eo=new Map,rf=0;function Ji(e){let t=Eo.get(e);if(t)return Eo.delete(e),Eo.set(e,t),t.digest;let n=of(e),r=e.length*2;if(r<=Ty)for(Eo.set(e,{digest:n,bytes:r}),rf+=r;Eo.size>gT||rf>Ty;){let o=Eo.entries().next();if(o.done)break;Eo.delete(o.value[0]),rf-=o.value[1].bytes;}return n}function Qi(e,t){return `${e}|${t?"drawing":""}`}function J(e){let t="";for(let n of e)t+=`${n.length}:${n}`;return t}var Iy=new WeakMap;function Fy(e,t){if(!t||t.size===0)return "";let n=Iy.get(e),r=n?.get(t);if(r!==void 0)return r;let o=No(e,a=>t.get(a.id)?.cacheToken??"");return o.length<=mT&&(n||(n=new WeakMap,Iy.set(e,n)),n.set(t,o)),o}function No(e,t){let n=[],r=false,o=[e];for(;o.length>0;){let a=o.pop();if(a.kind==="paragraph"){let i=t(a);i&&(r=true),n.push(i);continue}if("children"in a)for(let i=a.children.length-1;i>=0;i-=1)o.push(a.children[i]);}return r?J(n):""}function af(e){return e?{nodeDigests:new WeakMap,paragraphKeys:new WeakMap}:{nodeDigests:new Map,paragraphKeys:new Map}}var Cy=af(true);function My(e,t){if(e.kind==="textValue")return of(lf(e));let n=t.nodeDigests.get(e);if(n!==void 0)return n;let r=of(lf(e,t));return t.nodeDigests.set(e,r),r}function lf(e,t=Cy){if(e.kind==="textValue")return J(["text",e.value]);let n=[];for(let o of e.attributes)n.push(J([o.namespaceUri??"",o.localName,o.value]));n.sort();let r=[];for(let o of e.children)r.push(o.kind==="textValue"?lf(o):J(["child-digest",My(o,t)]));return J(["element",e.kind,e.localName,e.id,J(n),J(r)])}var hT=8;function md(e){return By(e,Cy)}function By(e,t){let n=Math.round(e.width*1e3),r=e.drawingToken??"",o=e.projectionToken??"",a=e.exclusionToken??"",i=Ji(fT(e.properties)),l=My(e.paragraph,t),s=Ji(e.producer),d=Ji(r),c=Ji(o),u=Ji(a),f=t.paragraphKeys.get(e.paragraph),p=f?.entries.findIndex(h=>h.producerIdentity===s&&h.width===n&&h.drawingIdentity===d&&h.projectionIdentity===c&&h.exclusionIdentity===u&&h.propertiesToken===i);if(f&&p!==void 0&&p>=0){let[h]=f.entries.splice(p,1);return f.entries.push(h),h.key}let m=`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:m}),f.entries.length>hT&&f.entries.shift(),m}var Ly=new WeakMap;function pd(e,t){Ly.set(e,t);}function Ey(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=Ly.get(a);if(i)for(let l of i)o.add(l);}t||e.retain(o);}var yT=8,bT=8;function lA(e={}){let t=Math.max(1,e.maxEntries??4096),n=e.retainAcrossPasses??true,r=t*8,o=new Map,a=af(n),i=0,l=0,s=0,d=0,c=0,u=0,f=0,p=0,m=0,g=0,h={retainAcrossPasses:n,keyFor(b){return By(b,a)},get(b){let x=o.get(b);if(x===void 0){d+=1;return}return s+=1,o.delete(b),x.generation=i,o.set(b,x),x.value},set(b,x){for(o.has(b)&&o.delete(b),o.set(b,{value:x,generation:i});o.size>t;){let y=o.entries().next();if(y.done||y.value[1].generation>=i&&o.size<=r)break;o.size>r?f+=1:u+=1,o.delete(y.value[0]),c+=1;}},release(b){!n&&o.delete(b)&&(m+=1);},retentionPassDue(){return l+=1,l%yT===0},retain(b){i+=1;for(let x of b){let y=o.get(x);y&&(y.generation=i);}for(let[x,y]of o)i-y.generation>bT&&(o.delete(x),c+=1,p+=1);},clear(){g+=o.size,o.clear(),a=af(n);},get stats(){return {hits:s,misses:d,evictions:c,size:o.size}}};return vy(h,{snapshot(){let b=0;for(let x of o.keys())b+=x.length*2;return {hits:s,misses:d,evictions:c,size:o.size,softLimit:t,hardLimit:r,keyTextBytes:b,softLimitEvictions:u,hardLimitEvictions:f,staleEvictions:p,releasedEntries:m,clearedEntries:g}},visit(b){for(let x of o.values())b(x.value);}}),h}var Ny=512,xT=9,Fn=31680/20,ST=8,PT=128;function el(e,t){return e.kind!=="textValue"&&e.namespaceUri===chunkFBWBSHC4_cjs.da&&e.localName===t}function at(e,t){for(let n of e.attributes)if(n.localName===t)return n.value}function Zt(e,t){for(let n of e.children)if(el(n,t))return n}function Vn(e,t=false){return e===void 0||!(t?/^-?\d{1,9}$/:/^\d{1,9}$/).test(e)?null:Number(e)}function RT(e){let t=e/20;return !Number.isFinite(t)||t<=0?0:t>Fn?Fn:t}function gd(e){let t=e/20;return Number.isFinite(t)?t>Fn?Fn:t<-Fn?-Fn:t:0}function wT(e){let t={left:0,right:0,hanging:0,firstLine:0};if(!e)return t;let n=Zt(e,"ind");if(!n)return t;let r={};for(let s of ["left","right","start","end"]){let d=Vn(at(n,s),true);d!==null&&(r[s]=gd(d));}let o=Vn(at(n,"left")??at(n,"start"),true),a=Vn(at(n,"right")??at(n,"end"),true),i=Vn(at(n,"hanging")),l=Vn(at(n,"firstLine"),true);return {...r.start!==void 0||r.end!==void 0?{authored:r}:{},left:o===null?0:gd(o),right:a===null?0:gd(a),hanging:i===null?0:RT(i),firstLine:l===null?0:gd(l),stated:{left:o!==null,right:a!==null,firstLineOffset:i!==null||l!==null}}}function kT(e){return e==="space"?"space":e==="nothing"?"nothing":"tab"}function vT(e){return e==="center"?"center":e==="right"||e==="end"?"right":"left"}function TT(e,t){let n=Zt(e,t);if(!n)return false;let r=at(n,"val");return r!=="0"&&r!=="false"&&r!=="off"}function Ay(e,t){let n=Zt(e,t);if(!n)return;let r=at(n,"val");if(!(r===void 0||r.length===0||r.length>PT))return r}function IT(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 Dy(e){let t=Vn(at(e,"ilvl"));if(t===null||t<0||t>8)return null;let n=Zt(e,"start"),r=1;if(n){let b=Vn(at(n,"val"));b!==null&&b>=0&&(r=Math.min(b,9999));}let o=Zt(e,"numFmt"),a=(o?at(o,"val"):void 0)??"decimal",i=Zt(e,"lvlText"),l=i?at(i,"val")??"":"",s=Zt(e,"lvlJc"),d=vT(s?at(s,"val"):void 0),c=Zt(e,"suff"),u=kT(c?at(c,"val"):void 0),f=Zt(e,"lvlRestart"),p;if(f){let b=Vn(at(f,"val"));b!==null&&b>=0&&b<=9&&(p=b);}let m=Zt(e,"pPr"),g=Zt(e,"rPr"),h=g?Ga(g):[];return {ilvl:t,start:r,numFmt:a.length>64?"decimal":a,lvlText:l.length>64?l.slice(0,64):l,lvlJc:d,suff:u,indent:wT(m),...p!==void 0?{lvlRestart:p}:{},isLgl:TT(e,"isLgl"),runProperties:h,vanish:IT(h,"vanish")}}function OT(e){let t=at(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(!el(a,"lvl"))continue;if(n.size>=9)break;let i=Dy(a);i&&!n.has(i.ilvl)&&n.set(i.ilvl,i);}let r=Ay(e,"numStyleLink"),o=Ay(e,"styleLink");return {abstractNumId:t,levels:n,...r!==void 0?{numStyleLink:r}:{},...o!==void 0?{styleLink:o}:{}}}function FT(e){let t=Vn(at(e,"ilvl"));if(t===null||t<0||t>8)return null;let n=Zt(e,"startOverride"),r;if(n){let i=Vn(at(n,"val"));i!==null&&i>=0&&(r=Math.min(i,9999));}let o=Zt(e,"lvl"),a=o?Dy(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 CT(e){let t=at(e,"numId");if(t===void 0||t.length===0||t.length>64)return null;let n=Zt(e,"abstractNumId"),r=n?at(n,"val"):void 0;if(!r||r.length>64)return null;let o=new Map;for(let a of e.children){if(!el(a,"lvlOverride"))continue;if(o.size>=xT)break;let i=FT(a);i&&!o.has(i.ilvl)&&o.set(i.ilvl,i.override);}return {numId:t,abstractNumId:r,overrides:o}}function _y(e){let t=new Map,n=new Map;if(!e)return {abstractNums:t,nums:n};let r=0,o=0;for(let a of e.children){if(el(a,"abstractNum")){if(r>=Ny)continue;r+=1;let i=OT(a);i&&!t.has(i.abstractNumId)&&t.set(i.abstractNumId,i);continue}if(el(a,"num")){if(o>=Ny)continue;o+=1;let i=CT(a);i&&!n.has(i.numId)&&n.set(i.numId,i);}}return {abstractNums:t,nums:n}}function MT(e,t,n){let r=new Set([t.abstractNumId]),o=t;for(let a=0;a<ST;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 jy(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=MT(e,a,t);!i||i.levels===a.levels||i.levels.size===0||(r.set(o,{...a,levels:i.levels}),n=true);}return n?{abstractNums:r,nums:e.nums}:e}function $a(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 Hy=Object.freeze({abstractNums:new Map,nums:new Map});function BT(e,t){let n=e.nums.get(t),r=[];for(let o=0;o<=8;o+=1){let a=$a(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 LT(e,t,n){let r=[];for(let o=0;o<=8;o+=1){let a=$a(e,t,o);r.push(a?.level.numFmt??"decimal");}return {formats:r,starts:[...n]}}function zy(e,t){return t?e.map(n=>n==="bullet"||n==="none"?n:"decimal"):e}function ET(e,t){if(t===0)return null;if(t===void 0)return e-1;let n=t-1;return n>=e?null:n}function Wy(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=BT(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=$a(e,a,i);if(!l)return null;let{abstractNumId:s,level:d}=l,{counters:c,initialized:u,starts:f}=o(a),{formats:p}=LT(e,a,f);for(let S=i+1;S<=8;S+=1){let T=$a(e,a,S);if(!T)continue;let R=ET(S,T.level.lvlRestart);R!==null&&i<=R&&(u[S]=false);}let m=f[i]??d.start;u[i]?c[i]+=1:(c[i]=m,u[i]=true);let g=c.slice(),h=u.slice(),b=g.map((S,T)=>h[T]?S:f[T]??1),x=zy(p,d.isLgl),y=d.vanish?"":d.numFmt==="bullet"&&!/%[1-9]/.test(d.lvlText)?d.lvlText:Au(d.lvlText,b,x),O={abstractNumId:s,numId:a,ilvl:i,level:d,counters:g,markerText:y};return Vy.set(O,b),O}}}var Vy=new WeakMap;function Gy(e){return Vy.get(e)??e.counters}var NT=/[\p{L}\s]/u;function AT(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}NT.test(r)||(t+=r);}return t}function $y(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 p=0;p<=8;p+=1){let m=$a(r,o,p);l.push(p<=a?m?.level??null:null),s.push(m?.level.numFmt??"decimal");}let d=p=>p!==null&&p.numFmt!=="bullet"&&p.numFmt!=="none"&&p.lvlText.length>0;if(!d(l[a]??null))return null;let c=[],u=[];for(let p=a;p>=0&&!(t&&p!==a);p-=1){let m=l[p];d(m)&&(p!==a&&u.some(g=>g.includes(`%${p+1}`))||(c.push(p),u.push(m.lvlText)));}c.reverse();let f="";for(let p of c){let m=l[p],g=n?AT(m.lvlText):m.lvlText;f+=Au(g,i,zy(s,m.isLgl));}return f.length>0?f:null}var sf=Object.freeze({kinsoku:true,overflowPunctuation:true,characterWrap:false}),hd=e=>!["0","false","off"].includes(e??"");function Ky(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=hd(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 yd(e,t){let{kinsoku:n,overflowPunctuation:r,characterWrap:o}=sf;for(let a of e)a.localName==="kinsoku"&&(n=hd(a.attributes?.val)),a.localName==="overflowPunct"&&(r=hd(a.attributes?.val)),a.localName==="wordWrap"&&(o=!hd(a.attributes?.val));return {settings:t,kinsoku:n,overflowPunctuation:r,characterWrap:o}}function tl(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 DT="!%),.:;?]}\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",_T="$([\\{\xA3\xA5\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF04\uFF08\uFF3B\uFF5B\uFF62\uFFE1\uFFE5",jT="!%),.:;>?]}\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",HT="$([{\xA3\xA5\xB7\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\u3016\u301D\uFE59\uFE5B\uFE5D\uFF04\uFF08\uFF0E\uFF3B\uFF5B\uFFE1\uFFE5",zT="! ),.:;?]}\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(" ",""),WT="([{\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",VT="!%),.:;?]}\xA2\xB0\u2019\u201D\u2032\u2033\u2103\u3009\u300B\u300D\u300F\u3011\u3015\uFF01\uFF05\uFF09\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF3D\uFF5D\uFFE0",GT="$([\\{\xA3\xA5\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF04\uFF08\uFF3B\uFF5B\uFFE1\uFFE5\uFFE6",$T="\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 Xy(e,t){let n=e.split("-")[0],r=/^zh-(tw|hk|mo|hant)(-|$)/.test(e),o=n==="zh"?r?zT:jT:n==="ko"?VT:DT,a=n==="zh"?r?WT:HT:n==="ko"?GT:_T;return n==="ja"&&t?.strict&&(o+=$T),o=t?.before[e]??o,a=t?.after[e]??a,{before:o,after:a}}function Ao(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 qy=e=>new Set([...e].map(t=>t.codePointAt(0))),nl=qy("\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"),rl=qy("\u300C\u300E\uFF08\u3010\u3008\u300A\u3014\u3016\u3018\u301A\uFF5B\uFF3B\uFF1C\uFF62\uFF04\uFFE5");function Zy(e,t){return !(!Ao(e)||!Ao(t)||rl.has(e)||nl.has(t))}function Cn(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 xd=new Set(["-","\u2010","\u2013","\u2014"]),Yy=11904;function KT(e){let t=null;return n=>{if(t===null){t=new Set;for(let r of Ye(e))t.add(r.utf16From);t.add(e.length);}return t.has(n)}}function XT(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 Do(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===" "||xd.has(a)&&o>0&&e[o-1]!==" "&&o+1<e.length&&e[o+1]!==" "&&!xd.has(e[o+1]))&&n.push(o+1);}let r=n;if(t){let o=[],a=KT(e);for(let i=0;i<e.length;){let l=e.codePointAt(i),s=i+(l>65535?2:1);if(s>=e.length)break;Zy(l,e.codePointAt(s))&&a(s)&&o.push(s),i=s;}o.length>0&&(r=XT(n,o));}return r[r.length-1]!==e.length&&r.push(e.length),r}function Sd(e,t){return !(t!==void 0&&nl.has(t)||e!==void 0&&rl.has(e))}function Jy(e,t){return t<=0||t>=e.length?true:Sd(Cn(e.slice(0,t)),e.codePointAt(t))}var bd=new Map,Uy=-1;function YT(e,t){let n=Ws();(Uy!==n||bd.size>=2048)&&(bd.clear(),Uy=n);let r=e*1114112+t,o=bd.get(r);if(o!==void 0)return o;let a=0;for(let l of Ye(String.fromCodePoint(e,t)))a+=1;let i=a>1;return bd.set(r,i),i}function Pd(e,t,n){let r=n||e===""||/[\s ]$/.test(e)||/^[\s ]/.test(t)||xd.has(e[e.length-1])&&!xd.has(t[0]),o=e.length===0?0:e.charCodeAt(e.length-1);if(o<Yy&&t.charCodeAt(0)<Yy)return r?"opens":"continues";if(o===9)return "opens";let a=Cn(e),i=t.codePointAt(0);return a!==void 0&&!YT(a,i)||!Sd(a,i)?"forbidden":r||a!==void 0&&Zy(a,i)?"opens":"continues"}function Wr(e){return e>=4352&&e<=4607||e>=12592&&e<=12687||e>=43360&&e<=43391||e>=44032&&e<=55295}var tt=e=>Ao(e)||Wr(e),cf=e=>/[\u1100-\u11ff\u2e80-\u318f\u31c0-\u9fff\ua960-\ua97f\uac00-\ud7ff\uf900-\ufaff\ufe30-\ufe4f\uff01-\uff9f\u{20000}-\u{323af}]/u.test(e),Qy=e=>e>=65296&&e<=65305||e>=65313&&e<=65338||e>=65345&&e<=65370,df=e=>!e.projected&&!e.positionalTab&&!e.inlineDrawing&&!e.equation&&e.end-e.start===e.text.length;function Rd(e,t){if(!t.characterWrap&&!e.some(S=>/[\u1100-\u11ff\u2e80-\ud7ff\uf900-\uffef\u{20000}-\u{323af}]/u.test(S.text)||tl(S.props)))return null;let n=new Map,r=[],o=0;for(let S of e){n.set(S,o);let T=df(S)?S.text:"\uFFFC".repeat(Math.min(S.text.length,1));r.push(T),o+=T.length;}let a=r.join(""),i=Ye(a),l=new Map([[0,"opens"],[a.length,"opens"]]),s=new Set(Do(a,false)),d=new Set,c=/[$¥£₩+-$£¥+\-]?[0-90-9]+(?:[.,:/.,:/][0-90-9]+)*(?:[%%‰])?|[A-Za-z]+/gu;for(let S of a.matchAll(c))if(/[0-9A-Za-z]/u.test(S[0]))for(let T=S.index+1;T<S.index+S[0].length;T++)d.add(T);let u=0,f=0,p=i.some(S=>Wr(S.text.codePointAt(0))),m=p?"ko-kr":/[\u3040-\u30ff\uff66-\uff9f]/u.test(a)?"ja-jp":"zh-cn",g=[],h=false;for(let S of i)/^[\p{P}\p{S}\p{M}]+$/u.test(S.text)||(h=tt(S.text.codePointAt(0))),g.push(h||tt(S.text.codePointAt(0)));let b=e.map(S=>tl(S.props)),x=new Map,y=S=>{let T=x.get(S);return T||(T=Xy(S,t.settings),x.set(S,T)),T};for(let S=1;S<i.length;S++){let T=i[S-1],R=i[S],w=R.utf16From;for(;u+1<e.length&&n.get(e[u+1])<=w;)u++;for(;f+1<e.length&&n.get(e[f+1])<=T.utf16From;)f++;let k=Cn(T.text),I=T.text.codePointAt(0),P=R.text.codePointAt(0);if(/[\t\n\f\ufffc]/u.test(T.text+R.text)){l.set(w,"opens");continue}if(/[\u00a0\u202f\u2060\ufeff]/u.test(T.text+R.text)){l.set(w,"forbidden");continue}let F=false;if(t.kinsoku){let j=b[u]??(t.settings&&(tt(P)||g[S-1]&&/^[\p{P}\p{S}]+$/u.test(R.text))?m:void 0),M=b[f]??(t.settings&&(tt(I)||tt(P)&&/^[\p{P}\p{S}]+$/u.test(T.text))?m:void 0);if(j||M)F=(j?y(j).before.includes(String.fromCodePoint(P)):nl.has(P))||(M?y(M).after.includes(String.fromCodePoint(k)):rl.has(k));else if(F=nl.has(P)||rl.has(k),g[S-1]||tt(P)){let B=Wr(k)||Wr(P)?"ko-kr":"ja-jp",A=y(B);F||=g[S-1]&&A.before.includes(String.fromCodePoint(P))||tt(P)&&A.after.includes(String.fromCodePoint(k));}}if(F){l.set(w,"forbidden");continue}if(d.has(w)){l.set(w,"continues");continue}let E=tt(I)&&!Qy(I)||tt(P)&&!Qy(P)||g[S-1]&&/^[\p{P}\p{S}]+$/u.test(T.text),_=t.characterWrap&&(!p||Wr(I)&&Wr(P)),z=Wr(I)&&Wr(P)&&!_,V=s.has(w)||/\s$/u.test(T.text)||/^\s/u.test(R.text)||E&&!z||_;l.set(w,V?"opens":"continues");}let O=new Map;for(let S of e){let T=n.get(S);if(!df(S)){O.set(S,Do(S.text,false));continue}let R=[];for(let w=1;w<S.text.length;w++){let k=l.get(T+w);(k==="opens"||d.has(T+w)&&k==="continues")&&R.push(w);}R.push(S.text.length),O.set(S,R);}return {boundaries:S=>O.get(S),decision:(S,T)=>df(S)?l.get(n.get(S)+T)??"forbidden":"opens",cutAllowed:(S,T,R)=>l.get(n.get(S)+T+R)!=="forbidden"&&l.has(n.get(S)+T+R)}}function eb(e,t,n){if(!e.some(d=>cf(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||!cf(d.text)){r.push(d);continue}let c=Ye(d.text),u=[],f=0;for(let b=1;b<c.length;b++)(tt(Cn(c[b-1].text))||tt(c[b].text.codePointAt(0)))&&(u.push({from:f,to:c[b].utf16From}),f=c[b].utf16From);if(u.push({from:f,to:d.text.length}),u.length===1){r.push(d);continue}let p=_e(d.style,d.fontSlot),m=u.map(b=>qe(d.text.slice(b.from,b.to),p,t)),g=m.reduce((b,x)=>b+x,0),h=d.box.x;for(let b=0;b<u.length;b++){let x=u[b],y=g>0?m[b]*d.box.width/g:0,{caretEdges:O,...S}=d;r.push({...S,text:d.text.slice(x.from,x.to),range:{...d.range,start:d.range.start+x.from,end:d.range.start+x.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=Rd(a,sf);for(let d=1;d<r.length;d++){let c=r[d-1],u=r[d],f=Cn(c.text),p=u.text.codePointAt(0);f===void 0||p===void 0||u.lineEndWhitespace||u.text===`
6
+ `||(c.text.endsWith(" ")||(tt(f)||tt(p))&&i?.decision(a[d],0)==="opens"&&Sd(f,p)&&!/[\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}}))}var tb=.001;function uf(e){let t=kt(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 UT(e){return e.endsWith(" ")}function qT(e,t,n,r,o,a,i){if(e.length===0||o==="left")return e;let l=e.length;for(;l>0&&e[l-1].box.width===0&&(e[l-1].text===`
7
+ `||e[l-1].text===chunkFBWBSHC4_cjs.Td);)l-=1;let s=l;for(;s>0&&e[s-1].lineEndWhitespace;)s-=1;let d=e[l-1],c=s<e.length?e[s].box.x-n:void 0,u=i!==void 0&&d!==void 0&&Math.abs(d.box.x+d.box.width-n-i)<=tb;if(s<l&&u&&(o==="center"||o==="right")){let b=r-c;if(b<=0)return e;let x=o==="center"?b/2:b,y=(i??0)>=r-tb,O=e[s].box.x+x;return e.map((S,T)=>{if(T<s)return {...S,box:{...S.box,x:S.box.x+x}};if(!y)return {...S,box:{...S.box,x:S.box.x+x}};let R=Math.min(S.box.width,Math.max(0,n+r-O)),w={...S,box:{...S.box,x:O,width:R}};return O+=R,w})}let f=e[e.length-1],m=i??c??(()=>{let b=f.text.replace(/\s+$/,""),x=b===f.text?0:f.box.width-qe(b,_e(f.style,f.fontSlot),t);return f.box.x-n+f.box.width-x})(),g=r-m;if(g<=0)return e;if(o==="both"){if(a)return e;let b=eb(e,t,g);if(b)return b;let x=[];for(let T=1;T<s;T+=1)UT(e[T-1].text)&&x.push(T);if(x.length===0)return e;let y=g/x.length,O=new Set(x),S=0;return e.map((T,R)=>(O.has(R)&&(S+=y),S===0?T:{...T,box:{...T.box,x:T.box.x+S}}))}let h=o==="center"?g/2:g;return e.map(b=>({...b,box:{...b.box,x:b.box.x+h}}))}function ol(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 tf(qT(ky(e,t),t,n,r,s,a,i),l)}var ZT=/^[、。〈〉《》「」『』【】〔〕〖〗〘〙〚〛!(),.:;?[]{}]$/u,al=/^[〈《「『【〔〖〘〚([{]$/u,ff=/^[、。〉》」』】〕〗〙〛),.]}]$/u,JT=/^[\u3041-\u3096\u30a1-\u30fa][\u3099\u309a]?$/u;function nb(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 rb(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,qe(a.text,_e(i.style,i.fontSlot),n));}return r}var QT=e=>!e.projected&&!e.style.textOutline&&e.style.shaping?.direction!=="rtl"&&!e.style.underline&&!e.style.strike&&!e.style.doubleStrike&&!e.revisions?.length&&!ad(e.props)&&e.measureText===void 0&&!e.positionalTab&&!e.equation&&!e.inlineDrawing&&e.end-e.start===e.text.length;function eI(e,t,n,r){let o=[],a=0,i=e.map(c=>{o.push(a);let u=QT(c)?c.text:"\uFFFC";return a+=u.length,u}).join(""),l=new Map,s=0,d=Ye(i);for(let c=0;c<d.length;c++){let u=d[c],f=d[c-1]?.text,p=d[c+1]?.text;for(;s+1<e.length&&o[s+1]<=u.utf16From;)s++;let m=e[s],g=al.test(u.text)&&f!==void 0&&al.test(f),h=p!==void 0&&(ff.test(u.text)&&(al.test(p)||ff.test(p)||p==="\uFF1A")||u.text==="\uFF1A"&&(al.test(p)||ff.test(p))&&!r&&!m.style.highlight&&!m.style.shading),b=g||h?.5:t&&JT.test(u.text)?.125:0;if(!b)continue;let x=_e(m.style,m.fontSlot),y=qe(u.text,x,n),O=g||h?qe(u.text,{...x,characterSpacingPt:0},n):y,S=O*b;if(u.text==="\uFF1A"&&p!==void 0){let R=s,w=d[c+1].utf16From;for(;R+1<e.length&&o[R+1]<=w;)R++;let k=e[R],I=_e(k.style,k.fontSlot);if(al.test(p)){let P=qe(p,{...I,characterSpacingPt:0},n);S=Math.min(S,Math.max(0,P/2));}else {let P=n.inkBounds?.(u.text,x),F=n.inkBounds?.(p,I),E=qe(p,I,n);if(!P||!F||![P.left,P.right,F.left,F.right].every(Number.isFinite)||P.left<0||F.left<0||P.right<P.left||F.right<F.left||P.right>O||P.right>y/2+E||F.right>E||k.style.highlight||k.style.shading)continue;S=y/2;}}let T=Math.max(0,Math.min(y,S))/u.text.length;for(let R=s;R<e.length&&o[R]<u.utf16To;R++){let w=e[R],k=Math.max(0,u.utf16From-o[R]),I=Math.min(w.text.length,u.utf16To-o[R]);if(k===I)continue;let P=l.get(w);P||(P=[],l.set(w,P)),P.push({from:k,to:I,reduction:T,glyphOffset:g?-T:h?0:void 0});}}return l}function ob(e,t,n,r=false){let o=t.settings?.compression;if(!o||o==="doNotCompress")return e;let a=[],i=new WeakMap,l=eI(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,p=i.get(s.style);p||(p=new Map,i.set(s.style,p));let m=p.get(f);m||(m={...s.style,characterSpacingPt:f},p.set(f,m)),a.push({...s,text:s.text.slice(u.from,u.to),start:s.start+u.from,end:s.start+u.to,style:m,...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 Ka(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)||!ZT.test(a)&&!tl(t.props))return false;let i=Ye(e).at(-1)?.text;if(!i||!/^[\p{Pe}\p{Pf}\p{Po}]$/u.test(i))return false;let l=qe(i,_e(t.style,t.fontSlot),o);return r-l<=n+.001&&n>=-1e-3}var ab=/^[〈《「『【〔〖〘〚([{]$/u,ib=/^[、。〉》」』】〕〗〙〛),.]}]$/u,il=/^[〈《「『【〔〖〘〚([{、。〉》」』】〕〗〙〛),.]}:]$/u,lb=/[〈《「『【〔〖〘〚([{、。〉》」』】〕〗〙〛),.]}:]/u,Vr=.001;function sb(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"&&!ad(e.props)}function db(e){return e.every(t=>sb(t)&&!t.projected&&!t.fieldAtom&&!t.equation&&!t.positionalTab&&!t.inlineDrawing&&t.measureText===void 0&&t.end-t.start===t.text.length&&Ye(t.text).every(n=>/^[ \n\f]$/u.test(n.text)||tt(n.text.codePointAt(0))||il.test(n.text)))}function tI(e){return sb(e)&&!e.projected&&!e.fieldAtom&&!e.equation&&!e.caretEdges&&!e.lineEndWhitespace&&!e.wrapAdvanceBefore&&e.range.end-e.range.start===e.text.length}function nI(e,t,n){let r=[],o=0;for(let[a,i]of e.entries()){if(o+=i.text.length,o>4096||!tI(i))return;let l=_e(i.style,i.fontSlot),s=0;for(let d of Ye(i.text)){if(d.text!==" "&&!tt(d.text.codePointAt(0))&&!il.test(d.text))return;let c=d.utf16To===i.text.length?i.box.width:qe(i.text.slice(0,d.utf16To),l,t),u=c-s,f=i.range.start+d.utf16From,p=0,m=n.length-1;for(;p<m;){let h=p+m+1>>1;n[h].start<=f?p=h:m=h-1;}let g=n[p];r.push({sourceIndex:a,alreadyReduced:Math.max(0,(g.style.characterSpacingPt-i.style.characterSpacingPt)*d.text.length),natural:qe(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 mf(e){return e.ink!==void 0&&Number.isFinite(e.ink.left)&&Number.isFinite(e.ink.right)&&e.ink.right>=e.ink.left}function rI(e,t,n,r,o){let a=t.reduce((x,y)=>x+y.box.width,0),i=e.width+a-n;if(i<=Vr||!r.inkBounds||e.drawings.length||!t.some(x=>lb.test(x.text))&&!e.spans.some(x=>lb.test(x.text)))return;for(let x=1;x<e.spans.length;x++){let y=e.spans[x-1];if(Math.abs(y.box.x+y.box.width-e.spans[x].box.x)>Vr)return}let l=e.spans.length,s=nI([...e.spans,...t],r,o);if(!s)return;let d=s.find(x=>x.sourceIndex===l);if(tt(d.span.text.codePointAt(0))&&!il.test(d.span.text)&&n-e.width+Vr<d.natural/2)return;let c=s.at(-1);if(ib.test(c.span.text)&&mf(c)){let x=Math.max(c.natural/2,c.ink.right+(c.span.glyphOffsetPt??0));c.reduction=Math.min(i,Math.max(0,c.span.box.width-x)),i-=c.reduction;}let u=[];for(let x=1;x<s.length;x++){let y=s[x-1],O=s[x],S=y.span.text,T=O.span.text,R,w;if(ab.test(T)&&tt(S.codePointAt(0))&&!il.test(S))R=O,w=true;else if(S==="\uFF1A"&&ab.test(T)||ib.test(S)&&tt(T.codePointAt(0))&&!il.test(T))R=y,w=false;else continue;if(!mf(y)||!mf(O))continue;let k=y.span.box.width+(O.span.glyphOffsetPt??0)+O.ink.left-(y.span.glyphOffsetPt??0)-y.ink.right,I=Math.max(0,Math.min(R.natural/2-R.alreadyReduced,R.span.box.width-R.reduction,w?O.ink.left+(O.span.glyphOffsetPt??0):1/0,k));I>Vr&&u.push({cell:R,capacity:I,left:w});}if(i>u.reduce((x,y)=>x+y.capacity,0)+Vr)return;let f=u;for(;i>Vr&&f.length;){let x=i/f.length,y=[];for(let O of f){let S=Math.min(x,O.capacity);O.cell.reduction+=S,O.left&&(O.cell.shift-=S),i-=S,O.capacity-S>Vr&&y.push({...O,capacity:O.capacity-S});}f=y;}let p=[],m=[],g=[],h=e.spans[0]?.box.x??t[0].box.x,b=0;for(let x of s){let y=x.span,O=x.reduction>0,S={...y,...O?{style:{...y.style,characterSpacingPt:y.style.characterSpacingPt-x.reduction/y.text.length},glyphOffsetPt:(y.glyphOffsetPt??0)+x.shift}:{},box:{...y.box,x:h,width:y.box.width-x.reduction}};h+=S.box.width,x.sourceIndex<l?(g[x.sourceIndex]??=p.length,p.push(S)):(m.push(S),b+=S.box.width);}g[l]=p.length,e.spans.length=0;for(let x of p)e.spans.push(x);return e.width=n-b,{candidate:m,width:b,spanStarts:g}}function cb(e,t,n,r){let o=new Map;return (a,i,l,s,d,c,u,f)=>{let p=o.get(s.start);if(p)return o.delete(s.start),p;if(!f||!n.inkBounds||!t)return;let m=[],g=i,h=l,b=s,x=d,y=c,O=0;for(;;){let I=e[g];if(I.projected||I.measureText!==void 0||I.equation||I.positionalTab||I.inlineDrawing||I.revisions?.length||(O+=h.length,O>4096||m.length>=256))return;if(m.push({text:h,range:b,props:I.props,style:I.style,fontSlot:I.fontSlot,glyphOffsetPt:I.glyphOffsetPt,fieldAtom:I.fieldAtom,box:{x:y,y:0,width:x,height:n.lineMetrics(_e(I.style,I.fontSlot)).height}}),y+=x,b.end<I.end)break;let P=e[g+1];if(!P||t.decision(P,0)==="opens")break;g++;let F=t.boundaries(P)[0]??P.text.length;h=P.text.slice(0,F),b={...s,start:P.start,end:P.start+F},x=qe(h,_e(P.style,P.fontSlot),n);}let S=0,T=false;for(let I=m.length-1;I>=0;I--){let P=m[I],F=P.text.replace(/ +$/u,"");if(S+=qe(P.text.slice(F.length),_e(P.style,P.fontSlot),n),F.length){T=true;break}}if(S>0&&T&&y-c-S<=u-a.width+Vr||r&&Ka(m.map(I=>I.text).join(""),e[g],u-a.width,y-c,n))return;let R=rI(a,m,u,n,e);if(!R)return;let w,k=0;for(let I of m){let P=[],F=0;for(;k<R.candidate.length&&R.candidate[k].range.start<I.range.end;){let _=R.candidate[k++];P.push(_),F+=_.box.width;}let E={candidate:P,width:F};w?o.set(I.range.start,E):w={...E,spanStarts:R.spanStarts};}return w}}function ub(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 YA=64,UA=31680,qA=720,ZA=36,fb=new Map([["dot","."],["hyphen","-"],["underscore","_"],["heavy","_"],["middleDot","\xB7"]]),ll=Object.freeze({stops:Object.freeze([]),defaultIntervalPt:36}),oI=new Map([["left","left"],["start","left"],["center","center"],["right","right"],["end","right"],["decimal","decimal"]]),aI=new Set(["dot","hyphen","underscore","heavy","middleDot"]);function sl(e){return e.kind!=="textValue"}function wd(e,t){return e.attributes.find(n=>n.localName===t)?.value}function pf(e,t){for(let n of e.children)if(sl(n)&&n.localName===t)return n}function mb(e){return e===void 0||!/^-?\d{1,9}$/.test(e)?null:Number(e)}function iI(e){return !Number.isFinite(e)||e<0?null:e>31680?31680:e}function pb(e,t){if(!t)return;let n=0;for(let r of t.children){if(n>=128)break;if(n+=1,!sl(r)||r.localName!=="tab")continue;let o=iI(mb(wd(r,"pos"))??NaN);if(o===null)continue;let a=wd(r,"val")??"left";if(a==="clear"){e.delete(o);continue}let i=oI.get(a);if(i===void 0||e.size>=64&&!e.has(o))continue;let l=wd(r,"leader");e.set(o,{alignment:i,...l!==void 0&&aI.has(l)?{leader:l}:{}});}}function gb(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,alignment:i.alignment,...lI(i)});}return {stops:Object.freeze(r),defaultIntervalPt:t}}function lI(e){return e.leader?{leader:e.leader}:{}}function hb(e){let t=new Map;for(let n of e)!n||!sl(n)||pb(t,pf(n,"tabs"));return gb(t)}function yb(e){if(!e||!sl(e))return ll;let t=new Map;return pb(t,pf(e,"tabs")),gb(t)}function bb(e,t){return t===void 0||!Number.isFinite(t)||t<=0||t===e.defaultIntervalPt?e:{stops:e.stops,defaultIntervalPt:t}}function xb(e){if(!e||!sl(e))return 36;let t=pf(e,"defaultTabStop");if(!t)return 36;let n=mb(wd(t,"val"));return n===null||n<=0||n>31680?36:n/20}function Xa(e,t,n){let r=Math.max(t,n);for(let i of e.stops)if(i.positionPt>t)return {positionPt:Math.min(i.positionPt,r),alignment:i.alignment,...i.leader?{leader:i.leader}:{}};let o=e.defaultIntervalPt>0?e.defaultIntervalPt:36,a=Math.ceil((t+1e-9)/o)*o;return a<=t&&(a+=o),{positionPt:Math.min(a,r),alignment:"left"}}function Sb(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 kd(e){return `tabs(${e.stops.map(n=>`${n.alignment}@${Math.round(n.positionPt*1e3)}${n.leader?`/${n.leader}`:""}`).join(",")}|d${Math.round(e.defaultIntervalPt*1e3)})`}var sI=1,gf=1;function dl(e){let t=Math.max(e,1),n=3;if(t>=n){let i=t/3;if(i>=1)return {strokePt:i,gapPt:i,extentPt:t,insetPt:0}}let r=1,o=1,a=Math.max(t,n);return {strokePt:r,gapPt:o,extentPt:a,insetPt:(t-a)/2}}var dI=new Set(["double","triple","thinThickSmallGap","thickThinSmallGap","thinThickThinSmallGap","thinThickMediumGap","thickThinMediumGap","thinThickThinMediumGap","thinThickLargeGap","thickThinLargeGap","thinThickThinLargeGap","doubleWave"]);function cI(e){return dI.has(e)}function Pb(e,t){return cI(e)?dl(t).extentPt:t}function wb(e){let t=false;for(let n of e){if(n.localName!=="pageBreakBefore")continue;let r=n.attributes?.val;t=r===void 0||Td(r);}return t}var uI=31680/20,Id=12,fI=3168,mI=14,ul=Object.freeze({rule:"auto",value:240}),pI=132,gI=1584,hI=["top","left","bottom","right","between","bar"],yI=Object.freeze({}),bI=/^[0-9A-Fa-f]{6}$/,xI=new Set(["nil","none"]);function vd(e,t=false){return e===void 0||!(t?/^-?\d{1,9}$/:/^\d{1,9}$/).test(e)?null:Number(e)}function hf(e,t){return !Number.isFinite(e)||e<=0?0:e>t?t:e}function Rb(e){let t=vd(e,true);return t===null?0:hf(chunkFBWBSHC4_cjs._e(chunkFBWBSHC4_cjs.Ye(t)),uI)}function Td(e){return e!=="0"&&e!=="false"&&e!=="off"}function SI(e){return e===void 0||e==="auto"?null:bI.test(e)?e.toUpperCase():null}function cl(e,t){return e.attributes.find(n=>n.localName===t)?.value}function Gn(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function nD(e,t){let n=null;for(let r of e)r.localName===t&&(n={...n??{},...r.attributes??{}});return n}function kb(e,t){let n=0,r=0,o=false,a=false;for(let i of e){if(i.localName!=="spacing")continue;let l=i.attributes?.before,s=i.attributes?.after;l!==void 0&&(n=Rb(l)),s!==void 0&&(r=Rb(s));let d=i.attributes?.beforeAutospacing,c=i.attributes?.afterAutospacing;d!==void 0&&(o=Td(d)),c!==void 0&&(a=Td(c));}if(o||a){let i=t?.inList||t?.inTableCell?0:mI;o&&(n=i),a&&(r=i);}return {before:n,after:r}}function vb(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=vd(l,true);s!==null&&(n=s);}}if(n===void 0)return ul;let r=t??"auto";if(r==="auto"){let a=n/240;return a>0?{rule:"auto",value:Math.min(a,pI)*240}:ul}let o=n/20;return o>0?{rule:r,value:Math.min(o,gI)}:ul}function Od(e,t,n){let r=e.rule==="auto"?t*(e.value/240):e.rule==="exact"?e.value:Math.max(t,e.value),o=r-t;return o<0?{height:r,baseline:Math.max(0,Math.min(n,r))}:e.rule==="exact"?{height:r,baseline:n+o/2}:{height:r,baseline:n}}function Tb(e){let t=false;for(let n of e){if(n.localName!=="contextualSpacing")continue;let r=n.attributes?.val;t=r===void 0||Td(r);}return t}function Ya(e){if(!e)return;let t=cl(e,"val");if(!t||xI.has(t))return;let n=vd(cl(e,"sz")),r=n===null?.5:hf(n/8,Id)||.5,o=vd(cl(e,"space")),a=o===null?0:hf(o,fI),i=cl(e,"shadow"),l=i!==void 0&&i!=="0"&&i!=="false"&&i!=="off";return {val:t,color:SI(cl(e,"color")),widthPt:r,spacePt:a,...l?{shadow:true}:{}}}function Ib(e){let t=Ya(Gn(e,"top")),n=Ya(Gn(e,"left")??Gn(e,"start")),r=Ya(Gn(e,"bottom")),o=Ya(Gn(e,"right")??Gn(e,"end")),a=Ya(Gn(e,"between")),i=Ya(Gn(e,"bar"));return {...t?{top:t}:{},...n?{left:n}:{},...r?{bottom:r}:{},...o?{right:o}:{},...a?{between:a}:{},...i?{bar:i}:{}}}function Gr(e){if(!e||e.kind==="textValue")return {};let t=Gn(e,"pBdr");return t?Ib(t):{}}function Fd(e){let t=yI;for(let n of e){if(!n||n.kind==="textValue")continue;let r=Gn(n,"pBdr");r&&(t=Ib(r));}return t}function an(e){return Pb(e.val,e.widthPt)}function _o(e){return e?e.spacePt+an(e):0}function rD(e){return _o(e)}function Ob(e){let t=[];for(let n of hI){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 Ua(e,t){return Math.max(e,t)-t}function Fb(e,t,n,r){return n&&!r?0:Ua(e,t)}function jo(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 Cb=21600;function nt(e){return Number.isFinite(e)?e:0}function fl(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 Md(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 fl(n)}function yf(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 fl(r)}function PI(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 Bb(e,t){return qa(e,t)}function bf(e,t,n){return Bb(qa(e,t),n)}function RI(e,t){let n=[],r=Math.min(e.length,Ft);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 wI(e,t){let n=[],r=Math.min(e.length,Ft);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 fl(n)}function Mb(e,t,n){let r=kI(RI(e,t),n),o=wI(e,t);return fl([...r,...o])}function kI(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 vI(e,t){return Object.freeze({top:nt(e.top)+nt(t.top),right:nt(e.right)+nt(t.right),bottom:nt(e.bottom)+nt(t.bottom),left:nt(e.left)+nt(t.left)})}function TI(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,p=((n.x-e.x)*d-(n.y-e.y)*s)/c;if(f<-1e-9||f>1+1e-9||p<-1e-9||p>1+1e-9)return null;let m=e.y+f*l;return !Number.isFinite(m)||m<o-1e-6||m>a+1e-6?null:m}function II(e,t,n,r){let o=[],a=Math.min(e.length,Ft),i=Math.min(t.length,Ft);if(a<2||i<2)return Object.freeze([]);let l=Ft*Ft,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 p=t[f],m=t[(f+1)%i],g=TI(c,u,p,m,n,r);g!==null&&o.push(g);}}return Object.freeze(o)}function OI(e,t,n){let r=new Set;r.add(t),r.add(n);for(let o of e){let a=Math.min(o.length,Ft);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),p=Math.max(d,c);u>=f&&u<=p&&r.add(u);}}}if(e.length>=2)for(let o of II(e[0],e[1],t,n))r.add(o);return Object.freeze([...r].sort((o,a)=>o-a))}function FI(e,t,n,r){let o=Mb(e,n,r);return t&&t.length>=3&&(o=Md(o,Mb(t,n,"nonzero"))),o}function Lb(e,t,n,r,o=null){let a=nt(n.top),i=nt(n.bottom),l=nt(n.left),s=nt(n.right),d=t-i,c=t+a,u=OI(o&&o.length>=3?[e,o]:[e],d,c),f=[],p=u.length>=2?u.flatMap((m,g)=>{if(g+1>=u.length)return [];let h=u[g+1];return h<=m+1e-6?[m]:[m,h,(m+h)/2]}):[d];for(let m of p){let g=FI(e,o,m,r);for(let h of g)f.push(Object.freeze({start:h.start-l,end:h.end+s}));}return fl(f)}function Eb(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 CI(e){let t=Math.max(0,nt(e.extentWidthPt)),n=Math.max(0,nt(e.extentHeightPt)),r=Bd(e.transform,t,n),o=Math.min(e.polygonEmu.length,Ft);if(o<3)return Eb({x:e.anchorX,y:e.anchorY,width:t,height:n});let a=r.width/Cb,i=r.height/Cb,l=[];for(let s=0;s<o;s+=1){let d=e.polygonEmu[s];l.push(Object.freeze({x:nt(d.x)*a,y:nt(d.y)*i}));}return Ld({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 MI(e,t){let n=t.effectInsets??Cd,r=t.wrapDistances??Cd,o=nt(t.contentLeft),a=nt(t.contentRight);if(t.mode==="topAndBottom"){let c=Bb(qa(t.contentBounds,n),r);return e<c.y||e>=c.y+c.height?Object.freeze([]):yf([{start:o,end:a}],o,a)}if(t.mode==="square"){let c=bf(t.contentBounds,n,r);return e<c.y||e>=c.y+c.height?Object.freeze([]):yf([{start:c.x,end:c.x+c.width}],o,a)}let i=t.polygon&&t.polygon.length>=3?t.polygon:Eb(t.contentBounds),l=t.mode==="through"?"evenodd":"nonzero",s=vI(r,n),d=Lb(i,e,s,l,t.clipPolygon);return yf(d,o,a)}function BI(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 LI(e,t,n,r,o){if(n==="bothSides"||t.length===0)return e;let a=BI(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 Nb(e,t){let n=MI(e,t),r=PI(n,t.contentLeft,t.contentRight);return LI(r,n,t.textSide,t.contentLeft,t.contentRight)}function EI(e,t,n,r){return n.length<3?false:Lb(n,t,r,"nonzero").some(a=>e>=a.start-1e-6&&e<=a.end+1e-6)}function xf(e,t,n){let r=n.effectInsets??Cd,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 EI(e,t,n.clipPolygon,r);let a=qa(n.contentBounds,r);return e>=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height}function Ab(e){let t=Object.freeze({top:nt(e.wrapDistancesEmu.top/$n),right:nt(e.wrapDistancesEmu.right/$n),bottom:nt(e.wrapDistancesEmu.bottom/$n),left:nt(e.wrapDistancesEmu.left/$n)}),n=e.mode==="tight"||e.mode==="through"?CI({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 Jt=1e5,Ft=chunkFBWBSHC4_cjs.m.maxPolygonPoints,Cd=Object.freeze({top:0,right:0,bottom:0,left:0}),NI=32,AI=.1,DI=new Set(["rect","ellipse","roundRect"]);function Ie(e){return Number.isFinite(e)?e:0}function gn(e,t,n){return Number.isFinite(e)?Math.min(n,Math.max(t,e)):t}function Db(e,t){let n=e+t;return Number.isFinite(n)?n:0}function _b(e,t,n){let r=gn(e,0,n),o=gn(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 _I(e){let t=_b(gn(e.left,0,Jt),gn(e.right,0,Jt),Jt),n=_b(gn(e.top,0,Jt),gn(e.bottom,0,Jt),Jt);return Object.freeze({left:t.left,top:n.left,right:t.right,bottom:n.right})}function jI(e){let t=_I({left:e.left*Jt,top:e.top*Jt,right:e.right*Jt,bottom:e.bottom*Jt});return Object.freeze({left:t.left/Jt,top:t.top/Jt,right:t.right/Jt,bottom:t.bottom/Jt})}function HI(e){let t=n=>{if(!Number.isFinite(n))return 0;let r=n/$n;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 qa(e,t){let n=Ie(t.left),r=Ie(t.right),o=Ie(t.top),a=Ie(t.bottom);return Object.freeze({x:e.x-n,y:e.y-o,width:Math.max(0,Db(e.width,n+r)),height:Math.max(0,Db(e.height,o+a))})}function zI(e,t,n){let r=e*gn(n.left,0,1),o=t*gn(n.top,0,1),a=e*(1-gn(n.right,0,1)),i=t*(1-gn(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 Bd(e,t,n){let r=e.extentEmu?.cx??0,o=e.extentEmu?.cy??0,a=e.offsetEmu??{x:0,y:0},i=r>0?Ie($r(r)??t):Math.max(0,Ie(t)),l=o>0?Ie($r(o)??n):Math.max(0,Ie(n));return Object.freeze({offsetX:Ie($r(a.x)??0),offsetY:Ie($r(a.y)??0),width:i,height:l})}function WI(e,t,n,r){let o=zI(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,Ft);for(let u=0;u<c;u+=1){let f=e[u],p=a<=0?o.left:o.left+gn(f.x/l,0,1)*a,m=i<=0?o.top:o.top+gn(f.y/s,0,1)*i;d.push(Object.freeze({x:Ie(p),y:Ie(m)}));}return Object.freeze(d)}function jb(e,t,n){let r=e.x-t.x,o=e.y-t.y;n.flipHorizontal&&(r=-r),n.flipVertical&&(o=-o);let a=Ie(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:Ie(s+t.x),y:Ie(d+t.y)})}function Hb(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,Ft);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 Sf(e){let t=Object.freeze({x:e.offsetX+e.sourceWidth/2,y:e.offsetY+e.sourceHeight/2}),n=ml(0,0,e.sourceWidth,e.sourceHeight),r=[];for(let l of n)r.push(jb(Object.freeze({x:l.x+e.offsetX,y:l.y+e.offsetY}),t,e.transform));let o=Hb(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,Ie(e.layoutWidth))/a,scaleY:Math.max(0,Ie(e.layoutHeight))/i,anchorX:Ie(e.anchorX),anchorY:Ie(e.anchorY)})}function VI(e,t){return Object.freeze({x:Ie(t.anchorX+(e.x-t.bboxX)*t.scaleX),y:Ie(t.anchorY+(e.y-t.bboxY)*t.scaleY)})}function Ld(e){let t=e.mapping??Sf({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=WI(e.points,e.sourceWidth,e.sourceHeight,e.crop),r=Math.min(n.length>0?n.length:e.points.length,Ft),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:Ie(s.x+e.offsetX),y:Ie(s.y+e.offsetY)});i.push(VI(jb(d,a,e.transform),t));}return Object.freeze(i)}function ml(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 GI(e,t,n){if(!e||!DI.has(e))return null;if(t<=0||n<=0)return ml(0,0,Math.max(0,t),Math.max(0,n));if(e==="rect")return ml(0,0,t,n);if(e==="ellipse"){let l=[],s=t/2,d=n/2,c=t/2,u=n/2,f=Math.min(NI,Ft);for(let p=0;p<f;p+=1){let m=p/f*Math.PI*2;l.push(Object.freeze({x:s+c*Math.cos(m),y:d+u*Math.sin(m)}));}return Object.freeze(l)}let r=Math.min(t,n)*AI,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 Ja(e){return Object.freeze({x:Ie(e.x),y:Ie(e.y)})}function $I(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,Ft);for(let u=0;u<c;u+=1){let f=Ja(i[u]),p=Ja(i[(u+1)%c]),m=l(f),g=l(p);if(m&&g?d.push(p):m&&!g?d.push(Ja(s(f,p))):!m&&g&&(d.push(Ja(s(f,p))),d.push(p)),d.length>=Ft)break}return Object.freeze(d.slice(0,Ft))},a=e.slice(0,Ft).map(Ja);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:Ie(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:Ie(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:Ie(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:Ie(i.x+d*(l.x-i.x)),y:r})})],Object.freeze(a)}function KI(e){let t=Hb(e);return Object.freeze({x:t.x,y:t.y,width:t.width,height:t.height})}function Ed(e,t){let n=XI(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=$I(a,t);return i.length>=3?Object.freeze(i.map(Ja)):Object.freeze([])};return Object.freeze({...e,paintBounds:n,hitBounds:r,transformedCorners:Object.freeze(o(e.transformedCorners)??e.transformedCorners),clipPolygon:o(e.clipPolygon)})}function XI(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 YI(e){let t=Math.max(0,Ie(e.extentWidth)),n=Math.max(0,Ie(e.extentHeight)),r=Ie(e.anchorX),o=Ie(e.anchorY),a=jI(e.crop),i=HI(e.effectExtentEmu),l=Bd(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=Sf(d),u=Object.freeze({left:0,top:0,right:0,bottom:0}),f=Ld({points:ml(0,0,l.width,l.height),...d,crop:u,mapping:c}),p=GI(e.presetGeometry,l.width,l.height),m="none",g=p;g||(m=e.presetGeometry?"unsupported-preset":"none",g=ml(0,0,l.width,l.height));let h=Ld({points:g,...d,crop:u,mapping:c}),b=KI(h.length>=3?h:f),x=qa(b,i);return Object.freeze({contentBounds:s,paintBounds:x,hitBounds:x,transformedCorners:f,clipPolygon:h.length>=3?h:f,clipFallback:m,effectInsets:i})}function Qa(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 YI({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 UI(e){let{transform:t,contentWidth:n,contentHeight:r}=e;if(n<=0||r<=0)return null;let o=Bd(t,n,r),a=o.width,i=o.height,l=Sf({sourceWidth:a,sourceHeight:i,offsetX:o.offsetX,offsetY:o.offsetY,transform:t,layoutWidth:n,layoutHeight:r,anchorX:0,anchorY:0}),s=Ie(t.rotationDegrees),d=Math.abs(s%360)>1e-4,c=t.flipHorizontal?-1:1,u=t.flipVertical?-1:1,f=l.scaleX,p=l.scaleY,m=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(p-1)<1e-4&&Math.abs(o.offsetX)<1e-4&&Math.abs(o.offsetY)<1e-4&&Math.abs(m-1)<1e-4&&Math.abs(g-1)<1e-4)return null;let b=s*Math.PI/180,x=Math.cos(b),y=Math.sin(b),O=o.offsetX+a/2,S=o.offsetY+i/2,T=f*x*c,R=-f*y*u,w=p*y*c,k=p*x*u,I=f*(O-x*c*(a/2)+y*u*(i/2)-l.bboxX),P=p*(S-y*c*(a/2)-x*u*(i/2)-l.bboxY);return Object.freeze({a:Ie(T*m),b:Ie(w*m),c:Ie(R*g),d:Ie(k*g),e:Ie(I),f:Ie(P)})}function uD(e){let t=UI(e);if(t)return `matrix(${Za(t.a)}, ${Za(t.b)}, ${Za(t.c)}, ${Za(t.d)}, ${Za(t.e)}, ${Za(t.f)})`}function Za(e){return Number.isFinite(e)?String(e):"0"}function zb(e,t){let n=(r,o)=>{if(!(o>=chunkFBWBSHC4_cjs.la)){if(r.kind==="run"){for(let a of r.children)t(a);return}if(chunkFBWBSHC4_cjs.na(r)){for(let a of r.children)n(a,o+1);return}if(chunkFBWBSHC4_cjs.Dd(r))for(let a of chunkFBWBSHC4_cjs.Gd(r))n(a,o+1);}};for(let r of e.children)n(r,0);}function Nd(e,t){let n=[],r=(o,a)=>{if(!(a>=chunkFBWBSHC4_cjs.la)){if(o.kind==="run"){for(let i of o.children)(i.kind==="drawing"||chunkFBWBSHC4_cjs.hb(i)||chunkFBWBSHC4_cjs.Sa(i))&&t(i,n,o);return}if(chunkFBWBSHC4_cjs.na(o)){n.push(o);for(let i of o.children)r(i,a+1);n.pop();return}if(chunkFBWBSHC4_cjs.Dd(o)){n.push(o);for(let i of chunkFBWBSHC4_cjs.Gd(o))r(i,a+1);n.pop();}}};for(let o of e.children)r(o,0);}function pl(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"?chunkFBWBSHC4_cjs.Wd(e):""}function Ga(e){if(!e||e.kind==="textValue")return [];let t=[];for(let n of e.children){if(n.kind==="textValue")continue;if(n.localName==="textOutline"){let a=ch(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 ei(e,t,n){let r=Ga(e.kind==="run"?e.children.find(o=>o.kind==="runProperties"):void 0);return n?[...n(t,r)]:t.length===0?r:[...t,...r]}var Wb=new WeakMap;function qI(e){if(e.kind!=="run")return false;let t=Wb.get(e);return t===void 0&&(t=Ae(ei(e,[])).hidden,Wb.set(e,t)),t}function Vt(e,t){if(e.kind!=="paragraph")return [];let n=[];return Nd(e,(r,o,a)=>{let i=Sr;for(let l of o){let s=qt(l)?on(l):null;s&&(i=pn(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(chunkFBWBSHC4_cjs.hb(r)||chunkFBWBSHC4_cjs.Sa(r)){if(chunkFBWBSHC4_cjs.Sa(r)&&qI(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 hn(e){let t=new Map;if(e.kind!=="paragraph")return t;let n;return zb(e,r=>{if(r.kind!=="drawing"&&!chunkFBWBSHC4_cjs.hb(r)&&!chunkFBWBSHC4_cjs.Sa(r))return;let o=(n??=chunkFBWBSHC4_cjs.Qe(e)).spanOf(r);o&&t.set(r.id,o.start);}),t}var ZI=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"]]),JI=Object.freeze({rotationDegrees:0,flipHorizontal:false,flipVertical:false,offsetEmu:Object.freeze({x:0,y:0}),extentEmu:Object.freeze({cx:0,cy:0})}),QI=Object.freeze({left:0,top:0,right:0,bottom:0});function $b(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=ZI.get(o)??"graphic";break}n===null&&(n="graphic");}return Object.freeze({hyperlinkHref:e.hyperlinkHref,effects:e.effects,crop:t?.crop??QI,transform:t?.transform??JI,placeholderGraphicKind:t||e.legacyGraphic?null:n,vectorShape:e.vectorShape})}var $n=12700;function vt(e){return e/$n}function $r(e){if(!Number.isFinite(e)||Math.abs(e)>1e4*$n*72)return null;let t=e/$n;return Number.isFinite(t)?t:null}function Xn(e){let t=vt(e.inlineDistancesEmu.left),n=vt(e.inlineDistancesEmu.right),r=vt(e.inlineDistancesEmu.top),o=vt(e.inlineDistancesEmu.bottom),a=vt(e.effectExtentEmu.left),i=vt(e.effectExtentEmu.right),l=vt(e.effectExtentEmu.top),s=vt(e.effectExtentEmu.bottom),d=vt(e.extentEmu.cx),c=vt(e.extentEmu.cy);return Object.freeze({distL:t,distR:n,distT:r,distB:o,effectL:a,effectR:i,effectT:l,effectB:s,width:d,height:c,totalWidth:t+a+d+i+n,lineContribution:r+l+c+s+o})}function Kb(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 Ad(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)),clipPolygon:e.clipPolygon?Object.freeze(e.clipPolygon.map(o)):null})}function Yn(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:Ad(e.geometry,t,n)})}function Pf(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:Ad(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 Rf(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 Dd(e,t){let n=Rf(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=Ad(e.geometry,o,a);return Object.freeze({...e,paintBounds:n,hitBounds:r,geometry:Ed(i,t)})}var Vb=new Set(["character","column","insideMargin","leftMargin","margin","outsideMargin","page","rightMargin"]),Gb=new Set(["bottomMargin","insideMargin","line","margin","outsideMargin","page","paragraph","topMargin"]);function Kn(e){return e.onPageParityRead?.(),e.pageNumber%2===1}function Xb(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 Yb(e,t){if(Xb(e,t)){let s=t.cellBox;if(!s)return null;let{x:d,width:c}=s;switch(e){case "page":case "column":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 Kn(t)?{left:d,right:d+c,center:d+c/2}:{left:d+c,right:d+c,center:d+c};case "outsideMargin":return Kn(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 Kn(t)?{left:o,right:o,center:o}:{left:a,right:a,center:a};case "outsideMargin":return Kn(t)?{left:r,right:r,center:r}:{left:n,right:n,center:n};default:return null}}function Ub(e,t){if(Xb(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 Kn(t)?{top:u,bottom:u+f,center:u+f/2}:{top:u+f,bottom:u+f,center:u+f};case "outsideMargin":return Kn(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 Kn(t)?{top:i,bottom:i,center:i}:{top:l,bottom:l,center:l};case "outsideMargin":return Kn(t)?{top:a,bottom:a,center:a}:{top:n,bottom:n,center:n};default:return null}}function qb(e){return e===null?0:$r(e)}function eO(e,t,n){let r=Kn(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 tO(e,t,n){let r=Kn(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 nO(e,t,n,r,o){let a=Yb(e,o);if(!a)return null;let i=qb(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=eO(t,r,o);if(l!==null)return l+i}return a.left+i}function rO(e,t,n,r,o){let a=Ub(e,o);if(!a)return null;let i=qb(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=tO(t,r,o);if(l!==null)return l+i}return a.top+i}function wf(e,t){let n=Xn(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=$r(r.simplePosition.xEmu),h=$r(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=Yb(l,t),c=Ub(s,t),u=d?.left??0,f=c?.top??0;if(!Vb.has(l)||!Gb.has(s))return Object.freeze({x:0,y:0,horizontalFrame:Vb.has(l)?l:a,verticalFrame:Gb.has(s)?s:i,horizontalFrameOrigin:u,verticalFrameOrigin:f,layoutFallback:"unresolvable-frame"});let p=nO(l,r.horizontal.align,r.horizontal.offsetEmu,n.width,t),m=rO(s,r.vertical.align,r.vertical.offsetEmu,n.height,t);return Object.freeze(p===null||m===null?{x:0,y:0,horizontalFrame:l,verticalFrame:s,horizontalFrameOrigin:u,verticalFrameOrigin:f,layoutFallback:"unresolvable-frame"}:{x:p,y:m,horizontalFrame:l,verticalFrame:s,horizontalFrameOrigin:u,verticalFrameOrigin:f})}function oO(e){let t=e.input.projection,n=t.anchor,r=Xn(t),o=Qa({projection:t,anchorX:e.resolved.x,anchorY:e.resolved.y,extentWidth:r.width,extentHeight:r.height}),a=e.clipRegion?Rf(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:n?.layoutInCell??true,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?Ed(o,e.clipRegion):o,resource:e.input.resource,accessibility:chunkFBWBSHC4_cjs.kb(t),...$b(t)})}function aO(e,t,n){let r=(a,i,l)=>qe(a,_e(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 iO(e,t){let n=e.range.start;for(let r of e.spans)r.range.end<=t&&(n=r.range.end);return n}function kf(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:Ad(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 Kr(e){let t=Vt(e.paragraph,e.drawingLayout);if(t.length===0)return [];let n=hn(e.paragraph),r=e.displayMode??je,o=[];for(let a of t){let i=a.projection;if(i.hidden)continue;let l=qu(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=i.anchor?.layoutInCell??true,f=i.position?.horizontal.relativeFrom==="character"?iO(d,s):s,p=Object.freeze({...e.frameBase,paragraphBox:e.paragraphBox,anchorLineBox:d.box,anchorCharacterX:aO(d,f,e.measurer),columnBox:e.columnBox,cellBox:e.cellBox,layoutInCell:c}),m=wf(i,p),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:jo(e.frameBase),b=g?e.cellBox:h,x=oO({input:Object.freeze({drawingNodeId:a.atomId,ownerPartName:e.drawingLayout.ownerPartName,projection:i,resource:e.drawingLayout.resourceOf(i)}),anchorParagraphId:e.paragraphId,start:f,resolved:m,clipRegion:b,revisions:l,...e.sourceOrderOf?{sourceOrder:e.sourceOrderOf(i.drawingNodeId)}:{},...i.textboxStory&&e.layoutTextboxStory?{textboxStory:e.layoutTextboxStory(i)}:{}});o.push(x);}return Object.freeze(o)}function Zb(e){let t=Xn(e.input.projection),n=e.slotX+t.distL+t.effectL,r=Qa({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=Rf(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:Ed(r,o),resource:e.input.resource,accessibility:chunkFBWBSHC4_cjs.kb(e.input.projection),...$b(e.input.projection),...e.revisions&&e.revisions.length>0?{revisions:e.revisions}:{}})}var lO=256,If=8,Ho=8,ti=class extends Error{name="DrawingExclusionConvergenceError";constructor(t="drawing exclusion reflow did not converge"){super(t);}};function sO(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 Tf(e){return e.behindDocument?"behind":"inFront"}function Qb(e){return e!=="inline"&&e!=="behind"&&e!=="inFront"}function dO(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 cO(e){return e==="squareLeft"?"left":e==="squareRight"?"right":"bothSides"}function Of(e){let t=dO(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 Ab({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"?cO(e.projection.wrap):n.textSide,contentLeft:e.contentLeft,contentRight:e.contentRight})}function Ff(e){if(e.mode==="topAndBottom"||e.mode==="square")return bf(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 uO(e){if(e.drawing.behindDocument||!Qb(e.drawing.wrap))return null;let t=e.yOverride??e.drawing.y,n=Of({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,sourceOrder:e.sourceOrder,paintLayer:Tf(e.drawing),relativeHeight:e.drawing.relativeHeight,allowOverlap:e.drawing.allowOverlap,columnIndex:e.columnIndex??0,y:t,verticalBand:Ff(n),input:n}):null}function ex(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 fO(e,t){let n=Tf(e),r=Tf(t);return n!==r?n==="behind"?-1:1:e.relativeHeight!==t.relativeHeight?e.relativeHeight-t.relativeHeight:ex(e,t)}function tx(e){return Object.freeze([...e].sort(fO))}function vf(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 Cf(e,t){if(Math.abs(t)<=1e-4)return e;let n=e.geometry;return Object.freeze({...e,y:e.y+t,paintBounds:Object.freeze({...e.paintBounds,y:e.paintBounds.y+t}),hitBounds:Object.freeze({...e.hitBounds,y:e.hitBounds.y+t}),geometry:Object.freeze({...n,contentBounds:Object.freeze({...n.contentBounds,y:n.contentBounds.y+t}),paintBounds:Object.freeze({...n.paintBounds,y:n.paintBounds.y+t}),hitBounds:Object.freeze({...n.hitBounds,y:n.hitBounds.y+t}),transformedCorners:n.transformedCorners.map(r=>Object.freeze({x:r.x,y:r.y+t})),clipPolygon:n.clipPolygon?n.clipPolygon.map(r=>Object.freeze({x:r.x,y:r.y+t})):null})})}function nx(e,t){let n=t.maxAttempts??lO,r=[...e].sort(ex),o=[],a=[],i=[];for(let l of r){if(l.allowOverlap){o.push(l);continue}let s=l,d=0;for(;d<n&&o.some(g=>vf(g.paintBounds,s.paintBounds));){let p=o.find(g=>vf(g.paintBounds,s.paintBounds)),m=p.paintBounds.y+p.paintBounds.height-s.paintBounds.y+.001;s=Cf(s,m),d+=1;}let c=o.some(f=>vf(f.paintBounds,s.paintBounds)),u=s.paintBounds.y+s.paintBounds.height>t.pageBottom+.001;if(c||u){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)})}function Pr(e,t,n,r){let o=[{start:n,end:r}],a=false;for(let i of t){let l=i.verticalBand;if(e<l.y||e>=l.y+l.height)continue;let s=Nb(e,i.input);i.sourceKind==="table"&&!s.some(c=>c.start<=n&&c.end>=r)&&(a=true);let d=[];for(let c of o)for(let u of s){let f=Math.max(c.start,u.start),p=Math.min(c.end,u.end);p>f+1e-6&&d.push(Object.freeze({start:f,end:p}));}if(o=d,o.length===0)break}return a&&(o=o.filter(i=>i.end-i.start>18.001)),Object.freeze(o)}function rx(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 mO(e,t){for(let n of t)if(n.end>e+1e-6)return n;return null}function Mf(e,t){let n=mO(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 pO(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 Bf(e,t){return Object.freeze({...e,layoutFallback:t})}function _d(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({...pO(i,-t,-n),contentLeft:r?.left??i.contentLeft-t,contentRight:r?.right??i.contentRight-t})})}))}function ox(e,t,n){return Object.freeze(e.filter(r=>{let o=n(r.anchorParagraphId);return o===void 0?r.sourceOrder<=t:o<=t}))}function ax(e){let t=Vt(e.paragraph,e.drawingLayout);if(t.length===0)return Object.freeze([]);let n=hn(e.paragraph),r=e.displayMode??je,o=Math.max(1,e.contentRight-e.contentLeft),a=[];for(let i of t){if(!He(i.revisions,r,e.revisionAuthorFilter)||i.projection.anchor?.behindDocument||!Qb(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=wf(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,p=Xn(i.projection),m=Qa({projection:i.projection,anchorX:u.x,anchorY:f,extentWidth:p.width,extentHeight:p.height}),g=Of({projection:i.projection,geometry:m,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:Ff(g),input:g}));}return a.sort((i,l)=>i.sourceOrder-l.sourceOrder),Object.freeze(a)}function jd(e){let t=Vt(e.paragraph,e.drawingLayout);if(t.length===0)return Object.freeze([]);let n=hn(e.paragraph),r=e.displayMode??je,o=[];for(let a of t){if(!He(a.revisions,r,e.revisionAuthorFilter)||a.projection.anchor?.behindDocument||a.projection.wrap!=="topAndBottom")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=e.paragraphStartY+l,d=Xn(a.projection),c=Qa({projection:a.projection,anchorX:e.contentLeft,anchorY:s,extentWidth:d.width,extentHeight:d.height}),u=Of({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:Ff(u),input:u}));}return o.sort((a,i)=>a.sourceOrder-i.sourceOrder),Object.freeze(o)}var gO=8;function hO(e,t,n,r){return e<r&&t>n}function Xr(e,t,n){if(t<=0||n.length===0)return 0;let r=0;for(let o=0;o<gO;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;hO(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 yO(e){return e.map(t=>`${t.start.toFixed(3)}-${t.end.toFixed(3)}`).join(",")}function bO(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 Un(e){return e.length===0?"":e.map(t=>{let n=t.verticalBand,r=t.y+t.input.contentBounds.height/2,o=Pr(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),bO(t.input),yO(o)].join("|")}).join(`
8
+ `)}function Lf(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?sO(l,a):0,u=uO({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 Ef(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=Lf(s,t,0,n,r,a);d.length>0&&i.set(l.index,d);}return i}var Jb=new WeakMap;function SO(e){return e?`${e.columnCount};${e.columnGapPt};${e.contentWidth};${(e.columnLefts??[]).join(",")};${(e.columnWidths??[]).join(",")}`:""}function ix(e,t,n,r,o,a){let i=SO(a),l=Jb.get(e);if(l&&l.drawingLayout===t&&l.drawingLayoutEpoch===n&&l.contentWidth===r&&l.drawingSourceOrder===o&&l.columnToken===i)return l.zones;let s=Ef(e,t,r,o?d=>{let c=t.projectionForAtom?.(d)?.drawingNodeId??d;return o.get(c)}:void 0,a);return Jb.set(e,{drawingLayout:t,drawingLayoutEpoch:n,contentWidth:r,drawingSourceOrder:o,columnToken:i,zones:s}),s}function Hd(e,t){if(e.size!==t.size)return false;for(let[n,r]of e){let o=t.get(n);if(!o||Un(r)!==Un(o))return false}return true}function zd(e){return e.size===0?"":[...e.entries()].sort(([t],[n])=>t-n).map(([t,n])=>`${t}:${Un(n)}`).join(`
9
+ `)}var Ze=.001,PO=32,Nf=128;function lx(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-Ze&&a>t+Ze}function RO(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>Nf)return;if(r.size>Nf)return}return [...r].filter(Number.isFinite).sort((a,i)=>a-i)}function wO(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)<Ze||Math.abs(a.x-n)<Ze||Math.abs(a.y-r)<Ze||Math.abs(a.y-o)<Ze)&&(Math.abs(a.x-l.x)<Ze||Math.abs(a.y-l.y)<Ze)}):false}function sx(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(p=>p.input.mode==="square"||p.input.mode==="topAndBottom"||p.input.mode==="tight"&&wO(p.input.polygon)),l,s=()=>l??=n.filter(p=>lx(p,r,o)),d=p=>{let m=p,g=[...s()].sort((h,b)=>h.verticalBand.y-b.verticalBand.y);for(let h of g){if(h.verticalBand.y>=m+t-Ze)break;m=Math.max(m,h.verticalBand.y+h.verticalBand.height);}return m-e},c=0,u=false,f=e;for(let p=0;p<PO;p++){let m=i.filter(y=>y.verticalBand.y<f+t-Ze&&y.verticalBand.y+y.verticalBand.height>f+Ze);if(m.length===0&&!u)return f-e;let g=m.some(y=>y.sourceKind==="table"&&lx(y,r,o));if(a===0&&!g&&!u)return f-e;let h=[{start:r,end:o}],b=[f+Ze,f+t-Ze];for(let y of m)b.push(Math.max(f,y.verticalBand.y)+Ze);for(let y of b)if(h=Md(h,Pr(y,i,r,o)).filter(O=>O.end-O.start>=a-Ze),h.length===0)break;if(h.length>0){if(!u&&(!g||i.length===n.length))return f-e;let y=RO(s(),f,f+t);if(!y)return d(f);let O=[{start:r,end:o}],S=[f+Ze,f+t-Ze];for(let T of y)T>f&&T<f+t&&(S.push(Math.max(f+Ze,T-Ze)),S.push(Math.min(f+t-Ze,T+Ze)));for(let T of S){if(++c>Nf)return d(f);if(O=Md(O,Pr(T,n,r,o)).filter(R=>R.end-R.start>=a-Ze),O.length===0)break}if(O.length>0)return f-e;u=true,f=Math.min(f+t,y.find(T=>T>f+Ze)??1/0);continue}g&&i.length!==n.length&&(u=true);let x=1/0;for(let y of m){let O=y.verticalBand.y+y.verticalBand.height;O>f+Ze&&(x=Math.min(x,O));}if(!Number.isFinite(x)||x<=f||x-e>1e5)return u?d(f):f-e;f=x;}return u?d(f):f-e}function dx(e){let t,n=()=>{let a=e.line();if(t===a||a.spans.length>0||a.drawings.length>0)return;let i=e.zones();if(i.length===0)return;let l=e.measurer.lineMetrics(e.emptyStyle),s=Xr(e.top(),a.height>0?a.height:l.height,i);s>.001&&(t=a,a.exclusionSkipBefore=s);};return {applyTopAndBottomSkipIfNeeded:n,applyNarrowWrapSkipIfNeeded:(a,i)=>{let l=e.line();if(l.spans.length>0||l.drawings.length>0)return;n();let s=e.zones();if(s.length===0)return;let d=e.measurer.lineMetrics(i),c=a.codePointAt(0),u=c===void 0?"":String.fromCodePoint(c),f=sx(e.top()+(l.exclusionSkipBefore??0),Math.max(d.height,Od(e.lineSpacing,d.height,d.baseline).height),s,e.left(),e.right,e.measurer.measure(nn(u,i),i));f>.001&&(l.exclusionSkipBefore=(l.exclusionSkipBefore??0)+f,l.width=0,t=l);},finalizeTopAndBottomClearance:()=>{let a=e.line(),i=e.zones();if(i.length===0)return;let l=Math.max(Xr(e.top(),a.height,i),a.exclusionSkipBefore??0);l>.001?a.exclusionSkipBefore=l:delete a.exclusionSkipBefore;}}}var ni=.7,kO=1.25,vO="Cambria Math";function Vd(e){return js(e,vO)}function qn(e,t,n,r){return Object.freeze({x:e,y:t,width:n,height:r})}function ln(e,t,n){return Object.freeze({...e,box:qn(t,n,e.box.width,e.box.height)})}var TO=4,IO=8,cx=new WeakMap;function OO(e){let t=Vd(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].join("|")}function FO(e,t){if(t===void 0)return {projections:new WeakMap};let n=cx.get(e);n||(n=new Map,cx.set(e,n));let r=n.get(t);if(r)return n.delete(t),n.set(t,r),r;if(n.size>=TO){let a=n.keys().next().value;a!==void 0&&n.delete(a);}let o={projections:new WeakMap};return n.set(t,o),o}function ri(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 ux(e,t,n,r){let o=r.metrics.get(n);if(o)return o;let a=e.lineMetrics(ri(t,n,r));return r.metrics.set(n,a),a}function Wd(e,t,n,r,o,a){let i=ri(r,o,a),l=ux(n,r,o,a);return Object.freeze({kind:e,text:t,fontSizePt:i.fontSizePt,box:qn(0,0,qe(t,i,n),l.height),baseline:l.baseline})}function CO(e,t){if(e.length===0)return Object.freeze({kind:"row",items:Object.freeze([]),box:qn(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=ln(i,o,n-i.baseline);return o+=i.box.width,l});return Object.freeze({kind:"row",items:Object.freeze(a),box:qn(0,0,o,n+r),baseline:n})}function yn(e,t,n,r,o){switch(e.kind){case "text":return Wd("text",e.value,t,n,r,o);case "fallback":return Wd("fallback",e.text||"\u2026",t,n,r,o);case "row":return CO(e.items.map(a=>yn(a,t,n,r,o)),ux(t,n,r,o));case "fraction":{let a=ri(n,r,o),i=yn(e.numerator,t,n,r*ni,o),l=yn(e.denominator,t,n,r*ni,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,p=f+c+d,m=p+l.box.height,g=Math.min(m,f+c/2+a.fontSizePt*.22);return Object.freeze({kind:"fraction",numerator:ln(i,(u-i.box.width)/2,0),denominator:ln(l,(u-l.box.width)/2,p),bar:qn(s/2,f,u-s,c),box:qn(0,0,u,m),baseline:g})}case "radical":{let a=ri(n,r,o),i=yn(e.radicand,t,n,r,o),l=Wd("text","\u221A",t,n,r,o),s=e.degree?yn(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,p=f+l.box.width,m=u+i.baseline,g=Math.max(u+i.box.height,m+(l.box.height-l.baseline));return Object.freeze({kind:"radical",sign:ln(l,f,m-l.baseline),radicand:ln(i,p,u),...s?{degree:ln(s,0,0)}:{},bar:qn(p,0,i.box.width,d),box:qn(0,0,p+i.box.width,g),baseline:m})}case "script":{let a=ri(n,r,o),i=yn(e.base,t,n,r,o),l=e.subscript?yn(e.subscript,t,n,r*ni,o):void 0,s=e.superscript?yn(e.superscript,t,n,r*ni,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,p=f+i.baseline,m=p+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?m+l.box.height:0);return Object.freeze({kind:"script",base:ln(i,0,f),...l?{subscript:ln(l,c,m)}:{},...s?{superscript:ln(s,c,u)}:{},box:qn(0,0,g,h),baseline:p})}case "nary":{let a=ri(n,r,o),i=Wd("text",e.operator,t,n,r*kO,o),l=yn(e.body,t,n,r,o),s=e.lowerLimit?yn(e.lowerLimit,t,n,r*ni,o):void 0,d=e.upperLimit?yn(e.upperLimit,t,n,r*ni,o):void 0,c=Math.max(.5,a.fontSizePt*.05),u=Math.max(i.box.width,s?.box.width??0,d?.box.width??0),p=d?d.box.height+c:0,m=p+i.baseline,g=p+i.box.height+(s?c:0),h=u+c,b=m-l.baseline,y=-Math.min(0,p,b,s?g:0),O=m+y,S=Math.max(p+i.box.height,s?g+s.box.height:0,b+l.box.height)+y;return Object.freeze({kind:"nary",operator:ln(i,(u-i.box.width)/2,p+y),body:ln(l,h,b+y),...s?{lowerLimit:ln(s,(u-s.box.width)/2,g+y)}:{},...d?{upperLimit:ln(d,(u-d.box.width)/2,y)}:{},box:qn(0,0,h+l.box.width,S),baseline:O})}}}function MO(e,t,n){let r=Vd(n),o={styles:new Map,metrics:new Map};return Object.freeze({sourceNodeId:e.sourceNodeId,geometry:yn(e.expression,t,r,1,o),fallbackText:e.fallbackText,truncated:e.truncated})}function fx(e,t){let n=FO(e,t);return (r,o)=>{let a=OO(o),i=n.projections.get(r),l=i?.get(a);if(l&&i)return i.delete(a),i.set(a,l),l;let s=MO(r,e,o);if(i||(i=new Map,n.projections.set(r,i)),i.size>=IO){let d=i.keys().next().value;d!==void 0&&i.delete(d);}return i.set(a,s),s}}function oi(e){if(e.length===0)return false;for(let t of e)if(t!==" "&&t!=="\u3000")return false;return true}function Gd(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 mx(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 px(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="",p=0,m=-1,g=()=>u===0?o:0,h=()=>Math.max(1,r-g()),b=x=>{s=x,d.push(x),c=0,u+=1;};for(let x of t){let y=i(x);if(y){let T=y.geometry.box.width;c>0&&c+T>h()&&b(x.start),c+=T,f="",m=-1;continue}if(x.inlineDrawing){let T=Xn(x.inlineDrawing.projection).totalWidth;c>0&&c+T>h()&&b(x.start),c+=T,f="",m=-1;continue}if(x.text===`
10
+ `||x.text===chunkFBWBSHC4_cjs.Td){b(x.end);continue}let O=!!x.projected||!!x.positionalTab||x.end-x.start!==x.text.length,S=0;for(let T of e.cjkBreaks?.boundaries(x)??Do(x.text,!O)){let R=x.text.slice(S,T);if(R.length===0)continue;let w=_e(x.style,x.fontSlot),k=V=>n.measure(nn(V,w),w),I=k(x.measureText??R);if(!O&&x.measureText===void 0){let V=h()-c;I=Gd(R,I,V,k,.001)?.width??I,c>0&&oi(R)&&(I=Math.min(I,Math.max(0,V)));}let P=x.start+S,F=e.cjkBreaks?.decision(x,S)??Pd(f,R,S>0),E=F==="opens";E&&(p=P,m=c);let _=e.typography?.overflowPunctuation&&Ka(R,x,h()-c,I,n),z=e.colonNaturalWidths?.get(x)??I;if(!_&&c>0&&c+z>h()){if(!(F==="forbidden"&&m<=0))if(E||m<=0)b(P);else {let V=c-m;b(p),c=V;}m=0;}c+=I,f=R,S=T;}}for(let x of a){let y=0,O=d.length-1;for(;y<O;){let S=y+O+1>>1;d[S]<=x?y=S:O=S-1;}l.set(x,d[y]);}return l}function LO(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 gx(e,t,n,r){if(n<=r.remainingLineWidth()+r.overflowTolerancePt)return {text:e,modelStart:t,width:n,brokeLine:false};let o=Ye(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,p=a;for(;u<=f;){let h=u+f>>1,b=o[h-1].utf16To;r.measureText(e.slice(i,b))<=c+r.overflowTolerancePt?(p=h,u=h+1):f=h-1;}if(p===a&&r.lineHasText()&&!(i===0&&r.keepWithPrevious)){r.closeLine(),s=true;continue}if(p===a&&(p+=1),p=LO(e,o,a,p,r.cutAllowedAt),p===o.length)break;let m=o[p-1].utf16To,g=e.slice(i,m);r.appendPrefix({text:g,modelStart:t+i,width:r.measureText(g)}),r.closeLine(),s=true,a=p,i=m,l=r.measureText(e.slice(i));}return {text:e.slice(i),modelStart:t+i,width:l,brokeLine:s}}var EO={props:true,style:true,fontSlot:true,glyphOffsetPt:true,caretEdges:true,tabLeader:true,tabLeaderAdvancePt:true,link:true,wrapAdvanceBefore:true,revisions:true,fieldAtom:true,projected:true,equation:true,noteNav:true,lineEndWhitespace:true},NO=Object.keys(EO);function AO(e,t){for(let n of NO)if(e[n]!==t[n])return false;return true}function DO(e,t){if(e.glyphOffsetPt||t.glyphOffsetPt||e.caretEdges!==void 0||t.caretEdges!==void 0)return false;let n=Cn(e.text),r=t.text.codePointAt(0);return n===void 0||r===void 0||!Ao(n)||!Ao(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:AO(e,t)}function hx(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&&DO(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 Af(e,t,n){return Math.max(Xr(t,e.height,n),e.exclusionSkipBefore??0)}function Df(e,t,n,r=0){return Af(t,e,n)+Math.max(0,t.height-t.trailingSpacing)+r}function yx(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.anchorRevisions?{anchorRevisions:Object.freeze(e.anchorRevisions)}:{}})}function gl(e,t){return t===0||e.length===0?e:e.map(n=>Yn(n,t,0))}var hl=.001;function Ct(e){return Ga(e)}function _O(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===chunkFBWBSHC4_cjs.Td?a[i]=0:l!==" "&&!oi(l)?a[i]=1:a[i]=a[i+1];}t[r]=a,n=a[0]===1;}return t}function jO(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=_e(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===chunkFBWBSHC4_cjs.Td)return {width:o,decimalOffset:i?a:o};let p=u+1,m=s.text.slice(u,p),g=r.measure(nn(m,d),d);!i&&f==="."?i=true:i||(a+=g),o+=g,u=p;}}return {width:o,decimalOffset:i?a:o}}function HO(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 $d=31680;function yl(e){if(e===void 0||!/^-?\d{1,9}$/.test(e))return null;let t=Number(e);return Number.isFinite(t)?t>$d?chunkFBWBSHC4_cjs.Ye($d):t<-$d?chunkFBWBSHC4_cjs.Ye(-$d):chunkFBWBSHC4_cjs.Ye(t):null}function bl(e){let t=0,n=0,r=kt(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=yl(a),s=yl(i);l!==null&&(t=chunkFBWBSHC4_cjs._e(l)),s!==null&&(n=chunkFBWBSHC4_cjs._e(s));}return {left:t,right:n}}function _f(e,t,n,r,o,a,i,l=[],s=ll,d,c,u,f=false){let p=i!==null&&a?a.get(i):void 0;if(p)return p;let m=u?.lineSpacing??ul,g=u?.firstLineOffset??0,h=[],b=ai(e,l,d,c,u?.projectLink,u?.noteMarks,u?.displayMode??je,h,u?.inlineDrawingLayout,u?.themeFonts,u?.projectFieldLink,u?.documentProperties,u?.bodyPageFields??false,u?.refFields,u?.revisionAuthorFilter),x=wy(b,u?.paragraphRtl??kt(Ct("children"in e?e.children.find(N=>N.kind==="paragraphProperties"):void 0)),Sy(e)),y=Math.max(0,u?.startOffset??0),O=x.flatMap(N=>{if(N.end<=y)return [];if(N.start>=y)return [N];let C=y-N.start;return [{...N,text:N.projected?N.text:N.text.slice(C),start:y}]}),S=u?.typography??yd(Ct("children"in e?e.children.find(N=>N.kind==="paragraphProperties"):void 0)),T=ob(O,S,o,f),R=rb(T,O,o),w=S.settings?.compression!==void 0&&S.settings.compression!=="doNotCompress"&&!u?.pageExclusionZones?.length&&o.inkBounds!==void 0&&db(x),k=w&&!f,I=_O(T),P=Rd(T,S),F=cb(T,P,o,S.overflowPunctuation),E=fx(o,u?.equationCacheToken),_=N=>N.equation?E(N.equation,N.style):null;if(T.length===0&&u?.suppressEmptyPlaceholderLine)return [];let z=N=>({...N.revisions===void 0?{}:{revisions:N.revisions},...N.fieldAtom===void 0?{}:{fieldAtom:N.fieldAtom}}),V=u?.markRunProperties??l,j=V.length===0?Tn:Ae(V,u?.themeFonts),M=n+r,B=u?.contentLeft??n,A=u?.contentRight??M,D=u?.contentOriginX??0,H=Math.min(A,D+M),K=[],$=0,v={spans:[],start:y,end:y,drawings:[],width:0,height:0,baseline:0,leading:0,trailingSpacing:0},Y=new Map,U=u?.displayMode??je,X=(()=>{let N=new Set;if(!u?.inlineDrawingLayout)return N;let C=hn(e);for(let re of Vt(e,u.inlineDrawingLayout)){if(!He(re.revisions,U,u?.revisionAuthorFilter)||re.projection.wrap!=="topAndBottom")continue;let se=C.get(re.atomId);se!==void 0&&N.add(se);}return N})(),ee=(()=>{let N=new Set;if(!u?.inlineDrawingLayout)return N;let C=hn(e);for(let re of Vt(e,u.inlineDrawingLayout)){if(!He(re.revisions,U,u?.revisionAuthorFilter)||re.projection.anchor?.behindDocument||re.projection.wrap==="topAndBottom"||re.projection.wrap==="inline"||re.projection.wrap==="behind"||re.projection.wrap==="inFront")continue;let se=C.get(re.atomId);se!==void 0&&N.add(se);}return N})(),W=[...(u?.pageExclusionZones??[]).filter(N=>N.anchorParagraphId===t).map(N=>N.anchorModelStart),...X,...ee],ne=px({colonNaturalWidths:R,typography:S,cjkBreaks:P,pieces:T,measurer:o,available:r,firstLineOffset:g,anchorStarts:W,equationLayoutOf:_});for(let N of ee){let C=ne.get(N);C!==void 0&&Y.set(N,C);}let ye=N=>{if(N.anchorParagraphId!==t)return true;let C=ne.get(N.anchorModelStart);return C!==void 0&&v.start>=C||v.end>=N.anchorModelStart},le=()=>{let N=u?.pageExclusionZones?.filter(se=>!(!ye(se)||se.anchorParagraphId===t&&(!se.sourceKind&&se.input.mode==="topAndBottom"||u?.anchorCellBox!=null)))??[],C=u?.inlineDrawingLayout&&u.anchorCellBox!=null&&Y.size>0?ax({paragraph:e,paragraphId:t,drawingLayout:u.inlineDrawingLayout,contentLeft:B,contentRight:A,paragraphStartY:u.paragraphStartY??0,anchorLineTopByModelStart:Y,anchorCellBox:u.anchorCellBox,displayMode:U,...u.revisionAuthorFilter?{revisionAuthorFilter:u.revisionAuthorFilter}:{}}):Object.freeze([]),re=u?.inlineDrawingLayout&&Y.size>0?jd({paragraph:e,paragraphId:t,drawingLayout:u.inlineDrawingLayout,contentLeft:B,contentRight:A,paragraphStartY:u?.paragraphStartY??0,anchorLineTopByModelStart:Y,displayMode:U,...u.revisionAuthorFilter?{revisionAuthorFilter:u.revisionAuthorFilter}:{}}):Object.freeze([]);return Object.freeze([...N,...C,...re])},ve=()=>K.length===0?g:0,q=()=>D+n+ve(),Pe=()=>Math.max(1,r-ve()),Te=()=>K.reduce((N,C)=>N+C.height+(C.exclusionSkipBefore??0),0),ae=()=>(u?.paragraphStartY??0)+Te(),Ce=N=>{X.has(N)&&Y.set(N,Te());},{applyTopAndBottomSkipIfNeeded:me,applyNarrowWrapSkipIfNeeded:Se,finalizeTopAndBottomClearance:We}=dx({line:()=>v,top:ae,zones:le,left:()=>Math.max(B,q()),right:H,emptyStyle:j,measurer:o,lineSpacing:m}),Me=()=>ae()+(v.exclusionSkipBefore??0)+.001,Fe=()=>{let N=le();if(N.length===0)return true;me();let C=Pr(Me(),N,B,H),re=q()+v.width,se=Mf(re,C);return se?(se.x>re+.001&&(v.width=se.x-q()),true):false},ce=()=>{let N=Pe(),C=le();if(C.length===0)return Math.max(N,$-q());if(me(),!Fe())return 0;let re=Pr(Me(),C,B,H),se=q()+v.width,Re=rx(se,re);return Re<=.001?0:Math.min(N,v.width+Re)},ht=()=>Math.max(0,ce()-v.width),Lt=()=>{let N=le();if(N.length===0||!N.some(Ee=>Ee.anchorParagraphId!==t||v.end>Ee.anchorModelStart))return false;let re=Pr(Me(),N,B,H),se=q()+v.width,Re=false;for(let Ee of re){if(!Re){se>=Ee.start-1e-6&&se<Ee.end-1e-6&&(Re=true);continue}if(Ee.end-Ee.start>.001)return v.width=Ee.start-q(),true}return false},En=N=>{if(W.length===0||N<Math.min(...W))return;let C=le().filter(pe=>pe.anchorParagraphId===t&&N>=pe.anchorModelStart);if(C.length===0)return;me();let re=Pr(Me(),C,B,H),se=q()+v.width,Re=-1;for(let pe=0;pe<re.length;pe+=1){let fe=re[pe];if(se>=fe.start-.001&&se<fe.end-.001){Re=pe;break}}if(Re>=0)return;let Ee=Mf(se,re);Ee&&Ee.x>se+.001&&(v.width=Ee.x-q());},ar=N=>{le().filter(re=>re.input.mode==="topAndBottom"&&re.anchorParagraphId===t&&N>=re.anchorModelStart).length!==0&&((v.spans.length>0||v.drawings.length>0)&&yt(),me());},Be=(N,C=0)=>C>64?ht()>=N:(me(),Fe()?N<=ht()+.001?true:v.spans.length>0||v.drawings.length>0?Lt()&&N<=ht()+.001?true:(yt(),Be(N,C+1)):Lt()?Be(N,C+1):true:v.spans.length>0||v.drawings.length>0?(yt(),Be(N,C+1)):true),ir=(N,C)=>h.filter(re=>re.start<C&&re.end>N).map(re=>({start:Math.max(re.start,N),end:Math.min(re.end,C)})),Ge=-1,Dt=0,_t=0,$t="",Ai=(N,C)=>{let re=o.lineMetrics(N),se=Kb(re.baseline,v.height||re.height,C);return v.height===0?(v.height=se.lineHeight,v.baseline=se.baseline):(se.lineHeight>v.height&&(v.height=se.lineHeight),v.baseline=Math.max(v.baseline,se.baseline)),{extentTopY:se.extentTopY}},dn=()=>{if(v.drawings.length===0)return;v.spans.length===0&&(v.baseline=Math.max(v.baseline,...v.drawings.map(C=>C.y+C.height)));let N=Pf(v.drawings,v.baseline);v.drawings.splice(0,v.drawings.length,...N),v.baseline=Math.max(v.baseline,...v.drawings.map(C=>C.y+C.height));},so=()=>{if(v.drawings.length===0)return;let N=Pf(v.drawings,v.baseline);v.drawings.splice(0,v.drawings.length,...N);},co=N=>{let C=0;for(let re of v.spans)C=Math.max(C,o.lineMetrics(_e(re.style,re.fontSlot)).height);return C>0?C:N},Tt=()=>{if(v.drawings.length===0)return;let N=Math.max(0,...v.drawings.map(C=>C.y+C.height+C.distB));v.height=Math.max(v.height,N);},xn=()=>{dn(),Tt();},jt=()=>{if(!(v.spans.length<2))for(let N=1;N<v.spans.length;N+=1){let C=v.spans[N-1],re=v.spans[N],se=re.box.x-(C.box.x+C.box.width);se<=.001||v.drawings.some(Ee=>Ee.start>=C.range.end&&Ee.start<re.range.start)||(v.spans[N]={...re,wrapAdvanceBefore:se});}},yt=N=>{let C=o.lineMetrics(j),re=v.baseline;v.height===0?(v.height=C.height,v.baseline=C.baseline,re=C.baseline):N?.includeParagraphMark&&(v.height=Math.max(v.height,C.height)),xn();let se=v.height,Re=v.drawings.length>0||v.spans.some(Et=>Et.equation!==void 0),Ee=m.rule==="auto"&&Re,pe=Ee?co(C.height):se,fe=Od(m,pe,v.baseline);Ee||(v.baseline=fe.baseline),v.leading=Math.max(0,v.baseline-re),v.height=Ee?Math.max(fe.height,se):fe.height,so(),m.rule!=="exact"&&Tt(),v.trailingSpacing=v.drawings.length===0&&m.rule!=="exact"?Math.max(0,fe.height-se):0,We(),hx(v),jt();let Je=ir(v.start,v.end);Je.length>0&&(v.deletedRanges=Je),K.push(v),Ge=-1,Dt=0,$=0,v={spans:[],drawings:[],start:v.end,end:v.end,width:0,height:0,baseline:0,leading:0,trailingSpacing:0},me();},Le=false;for(let N=0;N<T.length;N+=1){let C=T[N];if(C.breakKind==="column"){let pe=o.lineMetrics(C.style);v.spans.push({range:{paragraphId:t,start:C.start,end:C.end},text:C.text,props:C.props,style:C.style,box:{x:q()+v.width,y:0,width:0,height:pe.height},...C.link?{link:C.link}:{},...z(C)}),v.height=Math.max(v.height,pe.height),v.baseline=Math.max(v.baseline,pe.baseline),v.end=C.end,yt(),K[K.length-1].columnBreakAfter=true,Le=true;continue}if(C.equation){let pe=_(C),fe=pe.geometry.box.width;if((v.spans.length>0||v.drawings.length>0)&&v.width+fe>ce()&&yt(),!Be(fe))continue;let Et=Math.max(0,v.height-v.baseline),Ke=Math.max(0,pe.geometry.box.height-pe.geometry.baseline);v.baseline=Math.max(v.baseline,pe.geometry.baseline),v.height=v.baseline+Math.max(Et,Ke),v.spans.push({range:{paragraphId:t,start:C.start,end:C.end},text:"\uFFFC",props:C.props,style:C.style,box:{x:q()+v.width,y:0,width:fe,height:pe.geometry.box.height},projected:true,equation:pe,...z(C)}),v.width+=fe,v.end=C.end,Ge=-1,$t="";continue}if(C.projected&&!C.inlineDrawing&&C.text==="\uFFFC"){Ce(C.start),C.anchoredAtom&&C.revisions!==void 0&&He(C.revisions,U,u?.revisionAuthorFilter)&&(v.anchorRevisions=[...v.anchorRevisions??[],...C.revisions]),v.end=C.end;continue}if(C.inlineDrawing){Ce(C.start);let pe=Xn(C.inlineDrawing.projection),fe=pe.totalWidth;if((v.spans.length>0||v.drawings.length>0)&&v.width+fe>ce()&&yt(),!Be(fe))continue;let{extentTopY:Et}=Ai(C.style,pe),Ke=q()+v.width;v.drawings.push(Zb({input:C.inlineDrawing,paragraphId:t,start:C.start,slotX:Ke,y:Et,baseline:v.baseline,contentLeft:D,contentRight:D+M,...C.revisions?{revisions:C.revisions}:{}})),v.width+=fe,v.end=C.end,Ge=-1,$t="";continue}if(C.text===chunkFBWBSHC4_cjs.Td){let pe=o.lineMetrics(C.style);v.spans.push({range:{paragraphId:t,start:C.start,end:C.end},text:chunkFBWBSHC4_cjs.Td,props:C.props,style:C.style,box:{x:q()+v.width,y:0,width:0,height:pe.height},...C.link?{link:C.link}:{},...z(C)}),v.height=Math.max(v.height,pe.height),v.baseline=Math.max(v.baseline,pe.baseline),v.end=C.end,yt(),K[K.length-1].pageBreakAfter=true,Le=false;continue}if(C.text===`
13
+ `){C.breakKind==="line"&&(v.manualBreakAfter=true);let pe=o.lineMetrics(C.style);v.spans.push({range:{paragraphId:t,start:C.start,end:C.end},text:`
14
+ `,props:C.props,style:C.style,box:{x:q()+v.width,y:0,width:0,height:pe.height},...C.link?{link:C.link}:{},...z(C)}),v.height=Math.max(v.height,pe.height),v.baseline=Math.max(v.baseline,pe.baseline),v.end=C.end,yt(),Le=true;continue}Le=false,ar(C.start),W.length>0&&C.start>=Math.min(...W)&&En(C.start);let re=_e(C.style,C.fontSlot),se=o.lineMetrics(re),Re=!!C.projected||!!C.positionalTab||C.end-C.start!==C.text.length,Ee=0;for(let pe of P?.boundaries(C)??Do(C.text,!Re)){let fe=C.text.slice(Ee,pe);if(fe.length===0)continue;let Je=Re?{paragraphId:t,start:C.start,end:C.end}:{paragraphId:t,start:C.start+Ee,end:C.start+pe};if(fe===" "){(v.spans.length>0||v.drawings.length>0)&&v.width>=ce()&&I[N][pe]===1&&yt();let $e=q()+v.width,Ve=jO(T,N,pe,o),At=C.positionalTab?HO(C.positionalTab,n,M,u?.marginExtent):null,fo=le().length===0?Math.max(M,u?.marginExtent?.right??M):M,lr=Xa(s,$e,fo),Qt=At===null?lr.alignment==="left"?Xa(s,$e,M):lr:At.positionPt>$e?At:{...Xa(s,$e,M),...At.leader?{leader:At.leader}:{}};Qt.alignment!=="left"&&($=Math.max($,Math.min(Qt.positionPt,fo)));let mo=Sb(Qt.alignment,$e,Qt.positionPt,Ve.width,Ve.decimalOffset);v.spans.push({range:Je,text:" ",props:C.props,style:C.style,box:{x:$e,y:0,width:mo,height:se.height},...Qt.leader?{tabLeader:Qt.leader,tabLeaderAdvancePt:o.measure(fb.get(Qt.leader)??".",C.style)}:{},...C.link?{link:C.link}:{},...Qt.leader?{tabLeader:Qt.leader}:{},...Re&&!C.positionalTab?{projected:true}:{},...C.noteNav?{noteNav:C.noteNav}:{},...z(C)}),v.width+=mo,v.height=Math.max(v.height,se.height),v.baseline=Math.max(v.baseline,se.baseline),v.end=Re?C.end:C.start+pe,$t=" ",Ee=pe;continue}let Et=C.measureText??fe,Ke=o.measure(nn(Et,re),re),Sn=P?.decision(C,Ee)??Pd($t,fe,Ee>0),Pn=Sn==="opens";Pn&&(Ge=v.spans.length,Dt=v.width,_t=v.end),En(C.start+Ee),Se(fe,re);let Nt=w&&W.length===0&&pe===C.text.length&&T[N+1]!==void 0&&P?.decision(T[N+1],0)==="forbidden",uo=!Re&&C.measureText===void 0&&!Nt?Gd(fe,Ke,ce()-v.width,$e=>o.measure(nn($e,re),re),hl):void 0;Ke=uo?.width??Ke;let be=S.overflowPunctuation&&Ka(fe,C,ce()-v.width,Ke,o),Tr=k&&W.length===0?()=>{let $e=F(v,N,fe,Je,Ke,q()+v.width,ce(),!oi(fe)||Pn&&I[N][pe]===1);return $e&&(Ke=$e.width,Ge>=0&&$e.spanStarts&&(Ge=$e.spanStarts[Ge],Dt=Ge<v.spans.length?v.spans[Ge].box.x-q():v.width)),$e}:void 0,it=v,Kt=Tr?.(),ft=!Nt&&oi(fe)&&(I[N][pe]!==1||!Re&&(v.spans.length>0||v.drawings.length>0)&&v.width+Ke>ce()+hl);ft&&(Ke=Math.min(Ke,Math.max(0,ce()-v.width)));let cn=Kt?Ke:R.get(C)??Ke;if(!be&&v.width+cn>ce()+hl&&(v.spans.length>0||v.drawings.length>0)){if(!(Sn==="forbidden"&&Ge<=0))if(!Pn&&Ge===0)Lt();else if(Pn||Ge<0){if(!(Lt()&&v.width+cn<=ce()+.001)){if(yt(),!Be(cn))continue;Ge=0,Dt=0,_t=v.end;}}else {let $e=v.spans.splice(Ge);v.width=Dt,v.end=_t,v.height=0,v.baseline=0;for(let Ve of v.spans){let At=o.lineMetrics(_e(Ve.style,Ve.fontSlot));v.height=Math.max(v.height,At.height),v.baseline=Math.max(v.baseline,At.baseline);}yt();for(let Ve of $e){let At=o.lineMetrics(_e(Ve.style,Ve.fontSlot));v.spans.push({...Ve,box:{...Ve.box,x:q()+v.width}}),v.width+=Ve.box.width,v.height=Math.max(v.height,At.height),v.baseline=Math.max(v.baseline,At.baseline),v.end=Ve.range.end;}Ge=0,Dt=0;}}else if(v.spans.length===0&&v.drawings.length===0&&cn>ce()+.001&&!Be(cn))continue;!Kt&&v!==it&&(Kt=Tr?.());let sa=fe,da=C.start+Ee,Ir=Ke;if(!Re&&C.measureText===void 0&&!be&&(v.spans.length===0||!Pn&&Ge===0)&&Ke>ht()+hl){let $e=gx(fe,da,Ke,{remainingLineWidth:ht,lineHasText:()=>v.spans.length>0,measureText:Ve=>o.measure(nn(Ve,re),re),appendPrefix:Ve=>{v.spans.push({range:{paragraphId:t,start:Ve.modelStart,end:Ve.modelStart+Ve.text.length},text:Ve.text,props:C.props,style:C.style,box:{x:q()+v.width,y:0,width:Ve.width,height:se.height},...C.link?{link:C.link}:{},...C.noteNav?{noteNav:C.noteNav}:{},...C.fontSlot?{fontSlot:C.fontSlot}:{},...C.glyphOffsetPt!==void 0?{glyphOffsetPt:C.glyphOffsetPt}:{},...z(C)}),v.width+=Ve.width,v.height=Math.max(v.height,se.height),v.baseline=Math.max(v.baseline,se.baseline),v.end=Ve.modelStart+Ve.text.length;},closeLine:yt,overflowTolerancePt:hl,keepWithPrevious:Sn==="forbidden",cutAllowedAt:P?(Ve,At)=>P.cutAllowed(C,Ee,At):Jy});sa=$e.text,da=$e.modelStart,Ir=$e.width,$e.brokeLine&&(Ge=0,Dt=0,_t=v.end);}if(sa.length>0){let $e={range:Re?Je:{paragraphId:t,start:da,end:C.start+pe},text:sa,props:C.props,style:C.style,box:{x:q()+v.width,y:0,width:Ir,height:se.height},...C.link?{link:C.link}:{},...Re&&!C.positionalTab?{projected:true}:{},...C.noteNav?{noteNav:C.noteNav}:{},...C.fontSlot?{fontSlot:C.fontSlot}:{},...C.glyphOffsetPt!==void 0?{glyphOffsetPt:C.glyphOffsetPt}:{},...ft?{lineEndWhitespace:true}:{},...z(C)};Kt?ub(v.spans,$e,Kt):mx(v.spans,$e,uo),v.width+=Ir,v.height=Math.max(v.height,se.height),v.baseline=Math.max(v.baseline,se.baseline),v.end=Re?C.end:C.start+pe;}$t=fe,Ee=pe;}}return (v.spans.length>0||v.drawings.length>0||K.length===0||Le)&&yt({includeParagraphMark:true}),!f&&nb(K)?_f(e,t,n,r,o,a,i,l,s,d,c,u,true):(i!==null&&a&&a.set(i,a.retainAcrossPasses===false?K:K.map(yx)),K)}var zO=128,WO=/[\u0000-\u001F\u007F-\u009F]/,VO=32;function Ur(e){return e.kind!=="textValue"}function ii(e,t){return e.attributes.find(n=>n.localName===t)?.value}function zo(e,t){for(let n of e.children)if(Ur(n)&&n.localName===t)return n}function Yr(e){return e===void 0||e.length===0||e.length>zO?false:!WO.test(e)&&!chunkFBWBSHC4_cjs.I(e)}function GO(e){return e==="1"||e==="true"||e==="on"}function li(e){if(e){for(let t of e.children)if(Ur(t)&&(t.kind==="runProperties"||t.localName==="rPr"))return t}}function xl(e){if(e){for(let t of e.children)if(Ur(t)&&(t.kind==="paragraphProperties"||t.localName==="pPr"))return t}}var bx=new Set(["rPrChange","pPrChange","ins","del","moveFrom","moveTo"]);function Wo(e){return e.some(t=>bx.has(t.localName))?e.filter(t=>!bx.has(t.localName)):e}function xx(e){let t=zo(e,"docDefaults");if(!t)return {run:[],paragraph:[],paragraphNode:void 0};let n=li(zo(t,"rPrDefault")),r=xl(zo(t,"pPrDefault"));return {run:Wo(Ct(n)),paragraph:Wo(Ct(r)),paragraphNode:r}}function Sx(e){let t=ii(e,"styleId");if(!Yr(t))return null;let n=ii(e,"type")??"",r=zo(e,"basedOn"),o=r?ii(r,"val"):void 0,a=Yr(o)?o:null,i=zo(e,"next"),l=i?ii(i,"val"):void 0,s=Yr(l)?l:null,d=xl(e),c=li(e),u=new Map,f=0;for(let p of e.children){if(p.kind==="textValue"||p.localName!=="tblStylePr")continue;if(f>=VO)break;f+=1;let m=ii(p,"type");m&&!u.has(m)&&u.set(m,p);}return {styleId:t,type:n,basedOn:a,next:s,outlineLevel:chunkFGBADUSK_cjs.a(e),isDefault:GO(ii(e,"default")),paragraphProperties:Wo(Ct(d)),runProperties:Wo(Ct(c)),paragraphPropertiesNode:d,tablePropertiesNode:zo(e,"tblPr"),tableRowPropertiesNode:zo(e,"trPr"),conditionalTableFormats:u}}var Hf=32,$O=4096;function Kd(e){return e.map(t=>t.attributes?{n:t.localName,a:t.attributes}:{n:t.localName})}function jf(e){return e?chunkVSCPFHTD_cjs.B(chunkFBWBSHC4_cjs.ra(e)):""}function KO(e){return [...e.conditionalTableFormats].map(([t,n])=>[t,jf(n)])}var Xd=Object.freeze({tablePropertyNodes:Object.freeze([]),tableRowPropertyNodes:Object.freeze([]),paragraphPropertyNodes:Object.freeze([]),paragraphProperties:Object.freeze([]),runProperties:Object.freeze([]),conditional:new Map});function wx(e,t){let n=t&&Yr(t)?t:null,r=n?Rx(e,n):null;if(r)return r;let o=e.defaultTableStyleId;return !o||o===n?Xd:Rx(e,o)??Xd}var Px=new WeakMap;function Rx(e,t){let n=Px.get(e);n||(n=new Map,Px.set(e,n));let r=n.get(t);if(r)return r;let o=XO(e,t);return o?(n.set(t,o),o):null}function XO(e,t){let n=Yd(e,t,"table");if(n.length===0)return null;let r=[],o=[],a=[],i=[],l=[],s=new Map;for(let d of n){d.tablePropertiesNode&&r.push(d.tablePropertiesNode),d.tableRowPropertiesNode&&o.push(d.tableRowPropertiesNode),d.paragraphPropertiesNode&&a.push(d.paragraphPropertiesNode),i.push(...d.paragraphProperties),l.push(...d.runProperties);for(let[c,u]of d.conditionalTableFormats)s.set(c,u);}return Object.freeze({tablePropertyNodes:Object.freeze(r),tableRowPropertyNodes:Object.freeze(o),paragraphPropertyNodes:Object.freeze(a),paragraphProperties:Object.freeze(i),runProperties:Object.freeze(l),conditional:YO(s)})}function YO(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 kx(e){return e.paragraphPropertyNodes.length>0||e.paragraphProperties.length>0||e.runProperties.length>0||e.conditional.size>0}var zf=Object.freeze({paragraphProperties:Object.freeze([]),paragraphPropertyNodes:Object.freeze([]),runProperties:Object.freeze([])});function vx(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=xl(i);l&&(n.push(l),r.push(...Wo(Ct(l))));let s=li(i);s&&o.push(...Wo(Ct(s)));}return n.length===0&&r.length===0&&o.length===0?zf:{paragraphProperties:r,paragraphPropertyNodes:n,runProperties:o}}function Tx(e,t=gh,n=null){let r=Ky(n),o=new Map;if(!e)return {cacheToken:chunkVSCPFHTD_cjs.B({empty:true,theme:t,typography:r}),typography:r,docDefaultsRun:[],docDefaultsParagraph:[],docDefaultsParagraphNode:void 0,defaultParagraphStyleId:null,defaultCharacterStyleId:null,defaultTableStyleId:null,themeFonts:t,styles:o};let a=xx(e),i=null,l=null,s=null,d=0;for(let u of e.children){if(!Ur(u)||u.localName!=="style")continue;if(d>=$O)break;d+=1;let f=Sx(u);if(!f)continue;let{isDefault:p,...m}=f;o.set(m.styleId,m),m.type==="paragraph"?p?i=m.styleId:i===m.styleId&&(i=null):m.type==="character"?p?l=m.styleId:l===m.styleId&&(l=null):m.type==="table"&&(p?s=m.styleId:s===m.styleId&&(s=null));}return {cacheToken:chunkVSCPFHTD_cjs.B({typography:r,dR:Kd(a.run),dP:Kd(a.paragraph),defP:i,defC:l,defT:s,theme:t,styles:[...o.values()].map(u=>({id:u.styleId,type:u.type,basedOn:u.basedOn,outlineLevel:u.outlineLevel,p:Kd(u.paragraphProperties),r:Kd(u.runProperties),tPr:jf(u.tablePropertiesNode),trPr:jf(u.tableRowPropertiesNode),tblStylePr:KO(u)}))}),typography:r,docDefaultsRun:a.run,docDefaultsParagraph:a.paragraph,docDefaultsParagraphNode:a.paragraphNode,defaultParagraphStyleId:i,defaultCharacterStyleId:l,defaultTableStyleId:s,themeFonts:t,styles:o}}function Wf(e,t){let n=null;for(let r of e){if(r.localName!==t)continue;let o=r.attributes?.val;n=Yr(o)?o:null;}return n}function Yd(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<Hf&&!(a.has(i)||!Yr(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 Sl(e,t,n){let r=Ct(t),o=Wf(r,"pStyle")??e.defaultParagraphStyleId,a=o?Yd(e,o,"paragraph"):[],i=[...e.docDefaultsParagraph,...n?.paragraphProperties??[],...a.flatMap(p=>p.paragraphProperties)],l=[...i,...r],s=[];e.docDefaultsParagraphNode&&s.push(e.docDefaultsParagraphNode),n&&s.push(...n.paragraphPropertyNodes);for(let p of a)p.paragraphPropertiesNode&&s.push(p.paragraphPropertiesNode);t&&s.push(t);let d=li(t&&Ur(t)?t:void 0),c=Ct(d),u=_s([{properties:e.docDefaultsRun,role:"defaults",emit:true},{properties:n?.runProperties??[],role:"xor",emit:true},{properties:a.flatMap(p=>p.runProperties),role:"xor",emit:true}]),f=c.length===0?u:_s([{properties:u,role:"carried",emit:true},{properties:c,role:"direct",emit:true}]);return {paragraphProperties:l,inheritedParagraphProperties:i,paragraphPropertyNodes:s,runProperties:u,markRunProperties:f,styleId:o??null}}function UO(e){let t;for(let n of e){if(!n||n.kind==="textValue")continue;let r=false;for(let o of n.children)if(Ur(o)&&o.localName==="pBdr"){r=true;break}r&&(t=Gr(n).bottom);}return t}function si(e,t,n){let r=[];if(n){let i=Wf(t,"rStyle")??n.defaultCharacterStyleId;i&&(r=Yd(n,i,"character").flatMap(l=>l.runProperties));}if(e.length===0&&r.length===0)return t;if(r.length===0&&t.length===0)return e;let o=r.length===0?e:_s([...e.length>0?[{properties:n?.docDefaultsRun??[],role:"defaults",emit:false}]:[],{properties:e,role:"carried",emit:true},{properties:r,role:"xor",emit:true}]);return t.length===0?o:[...o,...t]}function Vo(e,t,n,r,o,a=false){let i=xl(e),l=n?Sl(n,i,o):null,s=l?[...l.paragraphProperties]:Ct(i),d=Ct(li(i&&Ur(i)?i:void 0)),c=l?l.runProperties:[],u=l?l.markRunProperties:d,f=bl(s),p=0,m=0;if(r)p=r.indent.hanging,m=r.indent.firstLine;else for(let O of s){if(O.localName!=="ind")continue;let S=yl(O.attributes?.hanging),T=yl(O.attributes?.firstLine);(O.attributes?.hanging!==void 0||O.attributes?.firstLine!==void 0)&&(p=S!==null?Math.max(0,chunkFBWBSHC4_cjs._e(S)):0,m=T!==null?chunkFBWBSHC4_cjs._e(T):0);}let g=r?{left:r.indent.left,right:r.indent.right,hanging:p,firstLine:m}:{left:f.left,right:f.right,hanging:p,firstLine:m},h=l?hb(l.paragraphPropertyNodes):yb(i),b=l?l.styleId:Wf(s,"pStyle")??null,x=null,y=false;for(let O of s){if(O.localName!=="outlineLvl")continue;y=true;let S=O.attributes?.val;x=S!==void 0&&/^[0-8]$/.test(S)?Number(S):null;}if(!y&&n&&b){let O=Yd(n,b,"paragraph");for(let S=O.length-1;S>=0;S-=1){let T=O[S].outlineLevel;if(T!==null){x=T;break}}}if(!y&&x===null&&b){let O=/^heading\s*([1-9])$/i.exec(b.trim());O&&(x=Number(O[1])-1);}return {props:s,indent:g,available:Math.max(1,t-g.left-g.right),alignment:uf(s),spacing:kb(s,{inList:r!==void 0,inTableCell:a}),lineSpacing:vb(s),contextualSpacing:Tb(s),styleId:b,outlineLevel:x,bottomBorder:l?UO(l.paragraphPropertyNodes):Gr(i).bottom,borders:l?Fd(l.paragraphPropertyNodes):Gr(i),shading:sh(s),inheritedRunProperties:c,markRunProperties:u,tabStops:h,tabStopsCacheToken:kd(h),...r?{listItem:r}:{}}}var qO=new Map([[167,"\u2663"],[168,"\u2666"],[169,"\u2665"],[170,"\u2660"],[174,"\u2192"],[176,"\xB0"],[180,"\xD7"],[183,"\u2022"],[222,"\u21D2"]]),Ix=new Map([[108,"\u25CF"],[110,"\u25A0"],[111,"\u25A1"],[167,"\u25AA"],[216,"\u27A2"],[252,"\u2714"],[253,"\u2718"]]),Ox=new Map([[167,"\u25AA"],[183,"\u2022"]]),Fx=new Map([["symbol",qO],["wingdings",Ix],["wingdings 2",Ox],["wingdings 3",Ox],["webdings",Ix]]),ZO=64;function Go(e){return !e||e.length>ZO?false:Fx.has(e.toLowerCase())}function di(e,t,n){if(e.length===0||!Go(t))return e;let r=Fx.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 $f=new WeakMap;function p_(e,t){let n=t.dependencyKeys.size===0||[...t.dependencyKeys].every(r=>r===chunkFBWBSHC4_cjs.g.story);$f.set(e,{preservesNumberedSequence:t.impact==="text-local"&&!t.structural&&t.created.size===0&&t.deleted.size===0&&n});}function QO(e){let t=$f.get(e);return $f.delete(e),t}function eF(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.caps?1:0,e.smallCaps?1:0].join(",")}var _x=new WeakMap;function jx(e){return _x.get(e)}function Kf(e){return e.kind!=="textValue"}function Cx(e,t){for(let n of e.attributes)if(n.localName===t)return n.value}function Ud(e,t){for(let n of e.children)if(Kf(n)&&n.localName===t)return n}function Hx(e){if(!Kf(e))return null;let t=Ud(e,"numPr");if(!t)return null;let n=Ud(t,"numId"),r=Ud(t,"ilvl"),o;if(n){let i=Cx(n,"val");o=i!==void 0&&i!=="0"&&i.length<=64?i:null;}let a;if(r){let i=Cx(r,"val"),l=/^\d{1,2}$/.test(i??"")?Number(i):0;a=l<=8?l:null;}return {numId:o,ilvl:a}}function tF(e){let t=null,n=0;for(let r of e){let o=Hx(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 nF(e,t){let n=new Set,r=e.styles.get(t);for(let o=0;r!==void 0&&o<Hf;o+=1){if(n.has(r.styleId))return;n.add(r.styleId);let a=r.paragraphPropertiesNode,i=a?Hx(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 Vf=new WeakMap;function qd(e,t){if(!t)return e;let n=Vf.get(e);if(n&&n.styleCascade===t)return n.linked;let r=jy(e,a=>nF(t,a)),o={styleCascade:t,linked:r};return Vf.set(e,o),Vf.set(r,o),r}function Mx(e){return Number.isFinite(e)?e>Fn?Fn:e<-Fn?-Fn:e:0}function Bx(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)?Mx(Number(r)/20):0,firstLine:o!==void 0&&/^-?\d{1,9}$/.test(o)?Mx(Number(o)/20):0});}return t}function Lx(e,t=false){return e.some(n=>n.localName==="ind"&&(n.attributes?.left!==void 0||n.attributes?.[t?"end":"start"]!==void 0))}function Ex(e,t=false){return e.some(n=>n.localName==="ind"&&(n.attributes?.right!==void 0||n.attributes?.[t?"start":"end"]!==void 0))}function rF(e,t,n=[]){let r=kt([...t,...n]),o={localName:"bidi",attributes:{val:r?"1":"0"}};if(e.authored){let f=e.authored,p=f.left??(r?f.end:f.start),m=f.right??(r?f.start:f.end);e={...e,left:p??0,right:m??0,stated:{left:p!==void 0,right:m!==void 0,firstLineOffset:e.stated?.firstLineOffset??false}};}let a=e.stated??{left:false,right:false,firstLineOffset:false},i=bl([...t,o]),l=bl([...n,o]),s={hanging:e.hanging,firstLine:e.firstLine},d=Lx(n,r)?l.left:a.left?e.left:Lx(t,r)?i.left:e.left,c=Ex(n,r)?l.right:a.right?e.right:Ex(t,r)?i.right:e.right,u=Bx(n)??(a.firstLineOffset?s:Bx(t)??s);return {left:d,right:c,...u}}function $o(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 chunkFBWBSHC4_cjs.Dc(i.children))if(l.kind==="tableRow")for(let s of chunkFBWBSHC4_cjs.Dc(l.children)){if(s.kind!=="tableCell")continue;let d=chunkFBWBSHC4_cjs.Hd(s.children);r(d,a+1);}}}};return r(e,0),n}var Nx=new WeakMap;function zx(e,t){let n=Nx.get(e);if(n&&n.styleCascade===t)return n;let r=e.children.find(s=>s.kind==="paragraphProperties"),o=t?Sl(t,r):null,a=o?o.paragraphPropertyNodes:r?[r]:[],i=r&&Kf(r)?Ud(r,"rPr"):void 0,l={styleCascade:t,numPr:tF(a),inheritedParagraphProperties:o?.inheritedParagraphProperties??[],directProps:Ct(r),inheritedMarkProps:o?o.markRunProperties:Ct(i),perLevel:new WeakMap};return Nx.set(e,l),l}function Xf(e,t,n,r){let o=new Map;if(t.nums.size===0)return o;let a=qd(t,n),i=Wy(a);for(let l of $o(e)){let s=zx(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 b=rF(c.level.indent,s.inheritedParagraphProperties,s.directProps),x=si(s.inheritedMarkProps,c.level.runProperties,n);u={indent:b,markerStyle:Ae(x,n?.themeFonts)},s.perLevel.set(c.level,u);}let{indent:f,markerStyle:p}=u,m=di(c.markerText,p.fontFamily,r),g=J([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,m,eF(p)].map(String)),h={numId:c.numId,ilvl:c.ilvl,abstractNumId:c.abstractNumId,numFmt:c.level.numFmt,markerText:m,...c.level.numFmt==="bullet"?{}:{ordinal:c.counters[c.ilvl]??1},markerAlign:c.level.lvlJc,suffix:c.level.suff,indent:f,markerStyle:p,cacheToken:g};_x.set(h,{index:a,numId:c.numId,ilvl:c.ilvl,expandCounters:Gy(c)}),o.set(l.id,h);}return o}var Wx=new WeakMap,Vx=new WeakMap;function Ax(e,t,n){let r=n?Vx.get(n):Wx.get(t);if(r&&r.rawIndex===e.numberingIndex&&r.styleCascade===e.styleCascade&&r.isFontAvailable===e.isFontAvailable)return r}function oF(e,t,n){t?Vx.set(t,n):Wx.set(e,n);}function Gx(e,t,n){if(e.listItems===void 0){let i=Ax(e,t,n);if(i&&n===void 0)return {...e,numberingIndex:i.linkedIndex,...i.listItems?{listItems:i.listItems}:{}}}let r=e.listItems===void 0?Ax(e,t,n):void 0,o=r&&r.rawIndex===e.numberingIndex&&r.styleCascade===e.styleCascade&&r.isFontAvailable===e.isFontAvailable?r.linkedIndex:qd(e.numberingIndex??Hy,e.styleCascade),a=e.listItems??(o.nums.size>0?sF(t,e.numberingIndex,o,e.styleCascade,e.isFontAvailable,n):void 0);return e.listItems===void 0&&oF(t,n,{rawIndex:e.numberingIndex,styleCascade:e.styleCascade,isFontAvailable:e.isFontAvailable,linkedIndex:o,listItems:a}),{...e,numberingIndex:o,...a?{listItems:a}:{}}}function ui(e,t){return Gx(e,t,void 0)}function $x(e,t,n){return Gx(e,t,n)}var Dx=new WeakMap,aF=Object.freeze([]);function iF(e,t){let n=Dx.get(e);if(n&&n.styleCascade===t)return n.numbered;let r=$o([e]).filter(a=>zx(a,t).numPr!==null),o=r.length>0?r:aF;return Dx.set(e,{styleCascade:t,numbered:o}),o}var ci=new WeakMap,Gf=new WeakMap;function lF(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 sF(e,t,n,r,o,a){let i=e[0],l=e[e.length-1],s=a?Gf.get(a):(i?ci.get(i):void 0)??(l?ci.get(l):void 0);if((a?QO(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 m=0;m<e.length;m+=1){let g=e[m],h=s&&s.blocks[m]===g?s.numberedByBlock[m]:iF(g,r);c[m]=h,u&&!lF(h,s.numberedByBlock[m])&&(u=false);}if(s&&u){let m={...s,blocks:e,numberedByBlock:c};return a?Gf.set(a,m):(i&&ci.set(i,m),l&&l!==i&&ci.set(l,m)),s.listItems}let f=Xf(e,n,r,o),p={rawIndex:t,styleCascade:r,isFontAvailable:o,blocks:e,numberedByBlock:c,listItems:f};return a?Gf.set(a,p):(i&&ci.set(i,p),l&&l!==i&&ci.set(l,p)),f}function Yf(e,t,n,r){if((!e.markerText||e.indent.hanging<=0&&t<=0)&&!e.markerText||!e.markerText)return null;let o=e.indent.left,a=e.indent.hanging,i=a>0?0:Math.max(0,e.indent.firstLine),l=Math.min(0,o),s=i>0?o+i:Math.max(l,o-a),d=Math.max(a,t),c=s;return e.markerAlign==="right"?c=i>0?s+d-t:o-t:e.markerAlign==="center"&&(c=s+(d-t)/2),c<l&&(c=l),{x:c,y:n,width:Math.max(t,0),height:r}}function dF(e,t,n=ll,r=Number.POSITIVE_INFINITY){if(!e.markerText)return 0;let o=t.measure(e.markerText,e.markerStyle),a=Yf(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:Xa(n,l,r).positionPt-i}function Kx(e,t,n,r,o){return e?dF(e,n,r,o===void 0?void 0:t.left+o):t.hanging>0?-t.hanging:t.firstLine}function y_(e,t,n){return fi(e,t,()=>n)}function fi(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:zn(s.numFmt,d),displayNumber:d});}return r}function cF(e){let t=new Map;for(let n of e)t.set(n.noteId,n.mark);return t}var Uf=4096,Mn=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 Zf(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 Ko(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 Zx(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 ct=(e,t)=>{if(!(e.kind==="textValue"||!("attributes"in e))){for(let n of e.attributes??[])if(n.localName===t)return n.value}},Xo=(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 Xx(e,t,n){let r=ct(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 uF(e){if(!e)return 1;let t=ct(e,"num");return !t||!/^\d{1,7}$/.test(t)?1:Math.max(1,Math.min(12,Number(t)))}function fF(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:Zf(ct(o,"w"),1,31680),gapTwips:a===t-1?0:Zx(ct(o,"space"),n)});}return r}function mF(e){let t=e?Xo(e,"type"):void 0,n=t?ct(t,"val"):void 0;return n==="continuous"||n==="evenPage"||n==="oddPage"||n==="nextColumn"?n:"nextPage"}var pF=new Set(["hyphen","period","colon","emDash","enDash"]);function gF(e){let t=Xo(e,"pgNumType");if(!t||t.kind==="textValue")return;let n={},r=ct(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=ct(t,"fmt");o!==void 0&&o.length>0&&o.length<=64&&!/[<>&"']/.test(o)&&(n.fmt=o);let a=ct(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=ct(t,"chapSep");return i!==void 0&&pF.has(i)&&(n.chapSep=i),n}var Yx=new WeakMap;function qf(e){if(!e)return Mn;let t=Yx.get(e);if(t!==void 0)return t;let n=hF(e);return Yx.set(e,n),n}function hF(e){let t=Xo(e,"pgSz"),n=Xo(e,"pgMar"),r=Xo(e,"cols"),o=Mn,a=t?ct(t,"orient"):void 0,i=t?Zf(ct(t,"w"),o.pageSize.widthTwips):o.pageSize.widthTwips,l=t?Zf(ct(t,"h"),o.pageSize.heightTwips):o.pageSize.heightTwips,s=gF(e),d=uF(r),c=r?Zx(ct(r,"space"),o.columns.gapTwips):o.columns.gapTwips,u=r?Xx(r,"equalWidth",true):true;return {pageSize:{widthTwips:i,heightTwips:l},margins:{topTwips:n?Ko(ct(n,"top"),1440):o.margins.topTwips,rightTwips:n?Ko(ct(n,"right"),1440):o.margins.rightTwips,bottomTwips:n?Ko(ct(n,"bottom"),1440):o.margins.bottomTwips,leftTwips:n?Ko(ct(n,"left"),1440):o.margins.leftTwips,headerTwips:n?Ko(ct(n,"header"),720):o.margins.headerTwips,footerTwips:n?Ko(ct(n,"footer"),720):o.margins.footerTwips,gutterTwips:n?Ko(ct(n,"gutter"),0):o.margins.gutterTwips},columns:{count:d,gapTwips:c,equalWidth:u,separator:r?Xx(r,"sep",false):false,definitions:u?[]:fF(r,d,c)},landscape:a==="landscape"||i>l,titlePage:chunkFBWBSHC4_cjs.pa(e,"titlePg"),breakType:mF(e),...s!==void 0?{pageNumbering:s}:{}}}function yF(e){let t=n=>{if(n.kind!=="textValue"){if(n.kind==="body")return Xo(n,"sectPr");for(let r of n.children??[]){let o=t(r);if(o)return o}}};return t(e.root)}var Ux=new WeakMap;function Zn(e){let t=Ux.get(e);if(t!==void 0)return t??void 0;let n=e.children.find(a=>a.kind==="paragraphProperties"),r=n?Xo(n,"sectPr"):void 0,o=r&&r.kind!=="textValue"?r:void 0;return Ux.set(e,o??null),o}function w_(e){let t=Jf(e);return t[t.length-1]?.properties??Mn}function Jf(e,t="all-markup",n){return Qf(e,t,n).sections}function Jx(e,t="all-markup",n){let r=bn(e,t,n),o=Yo(e,r).sections,a=bn(e,"all-markup"),i=Yo(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"&&Zn(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"||!Zn(c)?l:s.get(c.id)??l})}function Qf(e,t="all-markup",n){return Yo(e,bn(e,t,n))}var qx=chunkFBWBSHC4_cjs.mg(16);function Yo(e,t){let n=qx.get(t);if(n&&n.part===e)return n.result;let r=bF(e,t);return qx.set(t,{part:e,result:r}),r}function bF(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=Zn(l);if(s){if(n.length>=Uf){o=true;continue}n.push({index:n.length,properties:qf(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=yF(e);if(r<t.length||n.length===0){if(n.length>=Uf){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:qf(a),blockStart:r,blockEndExclusive:t.length});}else if(a){if(n.length>=Uf)return {sections:n,truncated:true};n.push({index:n.length,properties:qf(a),blockStart:r,blockEndExclusive:t.length});}return {sections:n,truncated:o}}function qr(e){let t=chunkFBWBSHC4_cjs._e(chunkFBWBSHC4_cjs.Ye(e.pageSize.widthTwips)),n=chunkFBWBSHC4_cjs._e(chunkFBWBSHC4_cjs.Ye(e.pageSize.heightTwips)),r=chunkFBWBSHC4_cjs._e(chunkFBWBSHC4_cjs.Ye(e.margins.leftTwips+e.margins.gutterTwips)),o=chunkFBWBSHC4_cjs._e(chunkFBWBSHC4_cjs.Ye(e.margins.rightTwips)),a=chunkFBWBSHC4_cjs._e(chunkFBWBSHC4_cjs.Ye(e.margins.topTwips)),i=chunkFBWBSHC4_cjs._e(chunkFBWBSHC4_cjs.Ye(e.margins.bottomTwips));return t-r-o<=0||n-a-i<=0?Ks:{width:t,height:n,margin:{top:a,right:o,bottom:i,left:r},headerDistance:chunkFBWBSHC4_cjs._e(chunkFBWBSHC4_cjs.Ye(Math.max(0,e.margins.headerTwips))),footerDistance:chunkFBWBSHC4_cjs._e(chunkFBWBSHC4_cjs.Ye(Math.max(0,e.margins.footerTwips)))}}var Qx=4096,eS=new WeakMap;function oS(e,t){let n=eS.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 eS.set(e,{sections:t,input:r}),r}function E_(e,t,n){let r=chunkFBWBSHC4_cjs.Df(e),o=chunkFBWBSHC4_cjs.Ef(r),a=chunkFBWBSHC4_cjs.Ff(r),i=chunkFBWBSHC4_cjs.Gf(void 0,o),l=chunkFBWBSHC4_cjs.Hf(void 0,a),s=Yo(t,n).sections,d=c=>{if(c.blockStart===c.blockEndExclusive)return;let u=n[c.blockEndExclusive-1];return u?.kind==="paragraph"?Zn(u):void 0};return {sections:s,footnotePropsBySection:s.map(c=>chunkFBWBSHC4_cjs.Gf(chunkFBWBSHC4_cjs.Bf(d(c)),o)),endnotePropsBySection:s.map(c=>chunkFBWBSHC4_cjs.Hf(chunkFBWBSHC4_cjs.Cf(d(c)),a)),documentFootnoteProps:i,documentEndnoteProps:l}}var xF=Object.freeze([]);function SF(e){for(let t of e.attributes){if(t.localName!=="customMarkFollows"||t.namespaceUri!==chunkFBWBSHC4_cjs.da&&t.namespaceUri!=="")continue;let n=t.value;return !(n==="0"||n==="false"||n==="off")}return false}var tS=new WeakMap;function PF(e){let t=tS.get(e);if(t)return t;let n=null;for(let o of chunkFBWBSHC4_cjs.Oe(e)){let a=o.node;if(a.kind!=="noteReference")continue;let i=chunkFBWBSHC4_cjs.kd(a),l=chunkFBWBSHC4_cjs.hd(a);i===null||l===null||(n??=[]).push({nodeId:a.id,noteKind:i,noteId:l,customMarkFollows:SF(a)});}let r=n===null?xF:Object.freeze(n);return tS.set(e,r),r}function RF(e,t){return e.footnotePropsBySection[t]??e.footnotePropsBySection[0]??e.documentFootnoteProps}function wF(e,t){return e.endnotePropsBySection[t]??e.endnotePropsBySection[0]??e.documentEndnoteProps}var kF=new Map,nS=new WeakMap;function aS(e,t){let n=nS.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<Qx;f+=1){for(;s<t.sections.length-1&&f>=t.sections[s].blockEndExclusive;)s+=1;let p=t.sections.length>0?s:0;for(let m of $o([e[f]]))for(let g of PF(m)){if(l>=Qx)break;l+=1;let h={noteId:g.noteId,sectionIndex:p,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,p,m,g)=>{if(p.length===0||(f==="footnote"?t.footnotePropsBySection.length>0?t.footnotePropsBySection:[t.documentFootnoteProps]:t.endnotePropsBySection.length>0?t.endnotePropsBySection:[t.documentEndnoteProps]).some(x=>x.numRestart==="eachPage"))return;let b=fi(f,p,g);for(let x=0;x<b.length;x+=1){let y=b[x].mark,O=m[x];y!==null&&y.length>0&&O!==void 0&&(d??=new Map).set(O,y);}};c("footnote",r,o,f=>RF(t,f)),c("endnote",a,i,f=>wF(t,f));let u=d??kF;return nS.set(e,{input:t,index:u}),u}function em(e,t){for(let n of e.attributes)if(n.namespaceUri===chunkFBWBSHC4_cjs.da&&n.localName===t)return n.value}var rS=new WeakMap;function iS(e,t){let n=rS.get(e),r=n?.get(t);if(r!==void 0)return r;let o=false,a=false,i,l=null,s=yr(),d=(c,u,f)=>{if(a||c.kind==="textValue"||f>=chunkFBWBSHC4_cjs.la||s.exhausted||u>Wt)return;if(c.kind==="bookmarkStart"){!o&&em(c,"name")===t&&(o=true,i=em(c,"id"));return}if(c.kind==="bookmarkEnd"){o&&i!==void 0&&em(c,"id")===i&&(a=true);return}if(o&&c.kind==="noteReference"){l=c.id,a=true;return}if(!ot(s))return;let p=chunkFBWBSHC4_cjs.ma(c,f);for(let m of c.children)d(m,u+1,p);};for(let c of e.children){if(a||!ot(s))break;d(c,1,0);}return n||(n=new Map,rS.set(e,n)),n.set(t,l),l}function Zr(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 vF=512,TF=2048,lS=4096,pS=Object.freeze([]),gS=Object.freeze([]),IF=Object.freeze({fields:gS,bookmarks:pS});function tm(e){return e.replace(/\u00A0/g," ").replace(/\s+/g," ").trim()}var sS=new WeakMap;function OF(e){let t=sS.get(e);if(t)return t;let n=null,r=null,o=yr(),a=Io(),i=null,l=null,s=Sr,d=Sr,c=()=>{if(a.nesting!==1||a.phase!=="instruction"||a.nestingOverflow)return;let m=Ea(a);if(m.overflow||l===null)return;let g=Hr(m.instruction);if(g){i={spec:g,autonum:null,anchorId:l,cached:"",revisions:d};return}let h=Bo(m.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:tm(i.cached),revisions:i.revisions}),i=null);},f=(m,g,h)=>{if(m.kind==="textValue"||h>=chunkFBWBSHC4_cjs.la||o.exhausted||g>Wt)return;if(m.kind==="bookmarkStart"){let x=Zi(m,"name");x!==void 0&&x.length>0&&x.length<=Uu&&(r??=[]).push(x);return}if(m.kind==="run"){for(let x of m.children){if(!ot(o))return;if(x.kind!=="runProperties"){if(wt(x,"begin")){Oo(a),a.nesting===1&&(l=x.id,d=s,i=null);continue}if(hr(x)){Fo(a,x,o,g+1);continue}if(wt(x,"separate")){c(),Co(a);continue}if(wt(x,"end")){let y=a.nesting===1;c(),Mo(a),y&&u();continue}if(i&&a.nesting===1&&a.phase==="result")if(x.kind==="text")for(let y of x.children)y.kind==="textValue"&&i.cached.length<Lo&&(i.cached+=y.value.slice(0,Lo-i.cached.length));else x.kind==="tab"&&i.cached.length<Lo&&(i.cached+=" ");}}return}if(chunkFBWBSHC4_cjs.ee(m)){let x=chunkFBWBSHC4_cjs.ge(m)??"",y=Hr(x),O=y===null?Bo(x):null;(y||O)&&(n??=[]).push({spec:y,autonum:O,anchorId:m.id,cached:tm(hy(m,o)),revisions:s});return}if(Qu(m)||!ot(o))return;if(qt(m)){let x=on(m);if(x){let y=s;s=pn(y,x);let O=chunkFBWBSHC4_cjs.ma(m,h);for(let S of m.children)f(S,g+1,O);s=y;return}}let b=chunkFBWBSHC4_cjs.ma(m,h);for(let x of m.children)f(x,g+1,b);};for(let m of e.children){if(!ot(o))break;f(m,1,0);}let p=n===null&&r===null?IF:Object.freeze({fields:n??gS,bookmarks:r??pS});return sS.set(e,p),p}var FF=Object.freeze({fieldsByParagraph:null,bookmarkOwners:null}),dS=new WeakMap;function CF(e){let t=dS.get(e);if(t)return t;let n=null,r=null;for(let a of $o([e])){let i=OF(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<TF&&r.set(l,a);}let o=n===null&&r===null?FF:Object.freeze({fieldsByParagraph:n,bookmarkOwners:r});return dS.set(e,o),o}var Zd=new WeakMap;function MF(e){let t=e[0],n=e[e.length-1],r=(t?Zd.get(t):void 0)??(n?Zd.get(n):void 0)??new Map;return t&&Zd.set(t,r),n&&Zd.set(n,r),r}var Jd=new WeakMap;function BF(e){let t=e[0],n=e[e.length-1],r=(t?Jd.get(t):void 0)??(n?Jd.get(n):void 0)??new Map;return t&&Jd.set(t,r),n&&Jd.set(n,r),r}function cS(e){return e.length>1&&e.endsWith(".")?e.slice(0,-1):e}var uS=new WeakMap;function fS(e,t=je,n){if(!e)return [];let r=`${t}|${n?.cacheKey??""}`,o=uS.get(e),a=o?.get(r);if(a)return a;let i=[];for(let l of chunkFBWBSHC4_cjs.sd(e.root)){if(i.length>=chunkFBWBSHC4_cjs.qd)break;if(!chunkFBWBSHC4_cjs.jd(l))continue;let s=Pl(l,t,n);s.length>0&&i.push(s);}return o?Zr(o,r,i):uS.set(e,new Map([[r,i]])),i}var mS=new WeakMap;function LF(e,t,n,r,o,a){let i=new Map,l=[],s=0,d=w=>{for(let k of w){let I=CF(k);if(l.push(I),!!I.fieldsByParagraph)for(let[P,F]of I.fieldsByParagraph){if(s>=vF)break;i.set(P,F),s+=F.length;}}};if(d(e),n){for(let w of fS(n.footnotesPart,o,a))d(w);for(let w of fS(n.endnotesPart,o,a))d(w);}if(i.size===0)return null;let c=new Set;for(let w of i.values())for(let k of w)k.spec&&c.add(k.spec.bookmark);let u=new Map;for(let w of l)if(w.bookmarkOwners)for(let[k,I]of w.bookmarkOwners)c.has(k)&&!u.has(k)&&u.set(k,I);let f=new Map,p=new Map,m=new Map;for(let[w,k]of i)for(let I of k){if(!I.autonum||!He(I.revisions,o,a))continue;let P=(m.get(I.autonum.kind)??0)+1;m.set(I.autonum.kind,P);let F=ay(I.autonum,P);F.length!==0&&(f.set(I.anchorId,F),p.has(w)||p.set(w,F));}let g=w=>{let k=On(w);if(k.pageRef)return null;let I=u.get(w.bookmark);if(!I)return null;if(k.noteRef){if(r===void 0)return null;let F=iS(I,w.bookmark);return F===null?null:aS(e,r).get(F)??null}if(w.numberSwitch!==null){let F=t?.get(I.id);if(!F){if(k.suppressNonDelimiterText)return null;let j=p.get(I.id);return j!==void 0?cS(j):null}let E=jx(F),_=E!==void 0?$y(E,w.numberSwitch==="n",k.suppressNonDelimiterText):null,z=!k.suppressNonDelimiterText&&F.numFmt!=="bullet"&&F.numFmt!=="none"&&F.markerText.length>0?F.markerText:null,V=_??z;return V===null?null:cS(V)}if(k.suppressNonDelimiterText)return null;let P=yy(I,w.bookmark);return P.length>0?P:null},h=new Map,b=w=>{let k=On(w),I=`${k.suppressNonDelimiterText?"t":""}${k.noteRef?"x":""}`,P=`${w.numberSwitch??"-"}${I}\0${w.bookmark}`;if(h.has(P))return h.get(P)??null;let F=g(w);return h.set(P,F),F},x=MF(e),y=BF(e),O=new Map,S=new Map,T=new Map,R=[];for(let[w,k]of i){let I=[];for(let F of k){if(F.spec===null){let V=F.autonum?f.get(F.anchorId)??null:null;I.push(V!==null?`a${V}`:`c${F.cached}`);continue}if(On(F.spec).pageRef){let V=u.get(F.spec.bookmark);if(V){let j=y.get(F.anchorId);j===void 0&&y.size<lS&&(j=Object.freeze({}),y.set(F.anchorId,j)),j!==void 0&&S.set(F.anchorId,{spec:F.spec,projection:{targetParagraphId:V.id,cached:F.cached,calibration:j}});}I.push(`c${F.cached}${V?.id??""}`);continue}let E=b(F.spec),_=x.get(F.anchorId);_===void 0&&(_=F.cached.length===0||E!==null&&tm(E)===F.cached,F.cached.length>0&&x.size<lS&&x.set(F.anchorId,_));let z=_?E:null;O.set(F.anchorId,{spec:F.spec,live:z}),I.push(z!==null?`l${z}`:`c${F.cached}`);}let P=I.join("");T.set(w,P),R.push(w,P);}return {valuesToken:J(R),tokenForParagraph:w=>T.get(w)??"",liveValueOf:(w,k)=>{let I=O.get(w);return !I||I.live===null||I.spec.bookmark!==k.bookmark||I.spec.numberSwitch!==k.numberSwitch||On(I.spec)!==On(k)?null:I.live},autonumValueOf:w=>f.get(w)??null,pageRefProjectionOf:(w,k)=>{let I=S.get(w);return !I||I.spec.bookmark!==k.bookmark||On(I.spec)!==On(k)?null:I.projection}}}function Z_(e,t,n){return nm(e,t,n,void 0)}function nm(e,t,n,r,o=je,a){let i=n?.footnotesPart??null,l=n?.endnotesPart??null,s=mS.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=LF(e,t,n,r,o,a);return mS.set(e,{listItems:t,footnotesPart:i,endnotesPart:l,noteNumbering:r,displayMode:o,authorFilterKey:a?.cacheKey??"",context:d}),d}function hS(e,t){let n=[];for(let r of $o([e])){let o=t.tokenForParagraph(r.id);o&&n.push(o);}return n.join(";")}var Jr=61440,Rl=61695,rm=128;function mi(e){return e.kind==="generic"&&e.namespaceUri===chunkFBWBSHC4_cjs.da&&e.localName==="sym"}function yS(e,t){if(!(e.kind==="textValue"||!("attributes"in e))){for(let n of e.attributes)if(n.localName===t&&(n.namespaceUri===chunkFBWBSHC4_cjs.da||n.namespaceUri===""))return n.value}}function EF(e){return !e||e.length>4||!/^[0-9A-Fa-f]{1,4}$/.test(e)?null:Number.parseInt(e,16)}function Qd(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 pi(e){if(!mi(e))return null;let t=EF(yS(e,"char"));if(t===null)return null;let n=yS(e,"font"),r=n&&n.length<=rm?n:null,o=Go(r),a=o&&t<=255&&t+Jr<=Rl?t+Jr:t;if(o&&a>=Jr&&a<=Rl){let i=di(String.fromCodePoint(a),r),l=i.codePointAt(0)<Jr;return {text:i,font:r,unicode:l}}return Qd(t)?{text:String.fromCodePoint(t),font:r,unicode:t<57344||t>63743}:null}function om(e,t,n){if(!t.font)return {props:e,style:Ae(e,n)};let r=[...e,{localName:"rFonts",attributes:{ascii:t.font,hAnsi:t.font,eastAsia:t.font,hint:"default"}}];return {props:r,style:Ae(r,n)}}var NF=256,AF=9;function DF(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 _F(e){if(e.quoted)return null;let t=e.value;if(t.length===0||t.length>AF)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 ec(e){if(e.length===0||e.length>NF)return null;let t=DF(e);if(t.length<2)return null;let n=t[0];if(n.quoted||n.value.toUpperCase()!=="SYMBOL")return null;let r=_F(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<=rm&&(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 tc(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=Ae(o,n);if(e.unicode)return Qd(e.code)?{text:String.fromCodePoint(e.code),props:o,style:a}:null;let i=e.font??a.fontFamily;if(Go(i)){let l=e.code<=255&&e.code+Jr<=Rl?e.code+Jr:e.code;if(l>=Jr&&l<=Rl)return {text:di(String.fromCodePoint(l),i),props:o,style:a}}return Qd(e.code)?{text:String.fromCodePoint(e.code),props:o,style:a}:null}function nc(){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)?br(e.kind,i,e.picture):"";return o(),l?d:null},reset:o,noteResult(a){n=true,a&&(r=true);}}}function jF(e){let{simple:t,depth:n,pageContext:r,budget:o,revisions:a,displayMode:i,inheritedRunProperties:l,cascadeRuns:s,themeFonts:d}=e,c="",u,f,p=false,m=Io(),g=nc(),h=(x,y)=>{u||(u=x,f=y);},b=(x,y,O)=>{if(!(x.kind==="textValue"||y>Wt)){for(let S of x.children)if(S.kind!=="textValue"){if(!ot(o))return;if(S.kind==="run"){let T=ei(S,l,s),R=Ae(T,d);for(let w of S.children){if(w.kind==="runProperties")continue;if(wt(w,"begin")){Oo(m),m.nesting===1&&g.reset();continue}if(hr(w)){Fo(m,w,o,y+1);continue}if(wt(w,"separate")){let E=m.nesting,_=m.phase,z=Co(m);(E===1||_==="result"&&!m.nestingOverflow)&&g.onSeparate(r?z:null,E);continue}if(wt(w,"end")){let E=g.onEnd(m.nesting,r);E!==null&&(c+=E),Mo(m);continue}if(chunkFBWBSHC4_cjs.je(w))continue;if(mi(w)){if(He(O,i,e.authorFilter)&&(p=true),g.active){g.noteResult(!R.hidden&&He(O,i,e.authorFilter));continue}let E=pi(w);if(!E?.unicode||R.hidden||!He(O,i,e.authorFilter))continue;h(T,R),c+=E.text;continue}let k=pl(w);if(k.length===0)continue;let I=Wn(O),P=!He(O,i,e.authorFilter)||w.kind==="deletedText"&&!I;P||(p=true);let F=R.hidden||P;if(g.active){g.noteResult(!F),F||h(T,R);continue}F||(h(T,R),c+=k);}continue}if(chunkFBWBSHC4_cjs.ee(S)){let T=g.active?null:La(chunkFBWBSHC4_cjs.ge(S)??"");if(T&&r){if(!He(O,i,e.authorFilter))continue;let R=c.length;b(S,y+1,O),c=c.slice(0,R),c+=br(T.kind,r,T.picture);continue}b(S,y+1,O);continue}if(S.kind==="hyperlink"){b(S,y+1,O);continue}if(qt(S)&&O.length<td){let T=on(S);b(S,y+1,T?pn(O,T):O);continue}b(S,y+1,O);}}};return b(t,n,a),{text:c,resultProps:u,resultStyle:f,sawResultContent:p}}function bS(e){let{simple:t,pageContext:n,inheritedRunProperties:r,themeFonts:o}=e,a=jF(e),i=chunkFBWBSHC4_cjs.ge(t)??"",l=a.resultProps??r,s=La(i);if(s&&n){let g=a.resultStyle??Ae(r,o);return g.hidden?null:{text:br(s.kind,n,s.picture),props:l,style:g}}if(s&&e.bodyPageFields&&!n&&a.text.length===0&&!a.sawResultContent){let g=a.resultStyle??Ae(r,o);if(g.hidden)return null;let b=s.picture!==void 0&&Dr(s.kind,e.bodyPageFields.format)?s.picture:void 0;return {text:qs(s.kind,b,e.bodyPageFields.format),props:l,style:g,pageField:b===void 0?{kind:s.kind}:{kind:s.kind,picture:b}}}let d=ec(i);if(d){let g=tc(d,l,o);if(g)return g.style.hidden?null:{text:g.text,props:g.props,style:g.style}}if(e.refFields){let g=Hr(i);if(g){let h=e.refFields.liveValueOf(t.id,g);if(h!==null){let b=a.resultStyle??Ae(r,o);return b.hidden?null:{text:h,props:l,style:b}}if(e.bodyPageFields&&e.refFields.pageRefProjectionOf){let b=e.refFields.pageRefProjectionOf(t.id,g);if(b){let x=a.resultStyle??Ae(r,o);if(x.hidden)return null;if(a.text.length>0)return {text:a.text,props:l,style:x,pageRef:b};if(!a.sawResultContent)return {text:Aa,props:l,style:x,pageRef:b}}}}else if(e.refFields.autonumValueOf&&Bo(i)){let h=e.refFields.autonumValueOf(t.id);if(h!==null){let b=a.resultStyle??Ae(r,o);return b.hidden?null:{text:h,props:l,style:b}}}}let c=a.text.length===0&&!a.sawResultContent;if(c){let g=ld(i);if(g){let h=sd(g,e.documentProperties);if(h!==null){let b=a.resultStyle??Ae(r,o);return b.hidden?null:{text:h,props:l,style:b}}}}let u=c?id(i):null;if(u){let g=a.resultStyle??Ae(r,o);return g.hidden?null:{text:u.display,props:l,style:g}}if(a.text.length===0)return null;let f=a.resultStyle??Ae(r,o);if(f.hidden)return null;let p=e.currentLink?null:dd(i),m=p?e.projectFieldLink?.(p)??null:null;return {text:a.text,props:l,style:f,...m?{link:m}:{}}}var HF="\u2612",zF="\u2610";function WF(e){let t=To(e);return t==="FORMCHECKBOX"?"checkbox":t==="FORMDROPDOWN"?"dropdown":null}function wl(e,t){e.symbolSpec=ec(t),!e.symbolSpec&&(e.linkSpec=dd(t),!e.linkSpec&&(e.formSpec=WF(t),!e.formSpec&&(e.buttonSpec=id(t),!e.buttonSpec&&(e.docPropertySpec=ld(t),!e.docPropertySpec&&(e.refSpec=Hr(t),!e.refSpec&&(e.autonumSpec=Bo(t)))))));}function Nj(e,t){if(t.allowPageFields&&t.hasSeparate&&Ar(e)!==null)return true;let n={symbolSpec:null,linkSpec:null,formSpec:null,buttonSpec:null,docPropertySpec:null,refSpec:null,autonumSpec:null};return wl(n,e),n.symbolSpec!==null||n.buttonSpec!==null||n.docPropertySpec!==null||t.allowRefFields&&n.refSpec!==null&&(t.allowPageRef||!On(n.refSpec).pageRef)||t.allowAutonum&&n.autonumSpec!==null||n.formSpec!==null&&t.hasLegacyFormData}function Aj(e,t){if(t.allowPageFields&&Ar(e)!==null)return true;let n={symbolSpec:null,linkSpec:null,formSpec:null,buttonSpec:null,docPropertySpec:null,refSpec:null,autonumSpec:null};return wl(n,e),n.symbolSpec!==null||n.buttonSpec!==null||n.docPropertySpec!==null||t.allowRefFields&&n.refSpec!==null&&(t.allowPageRef||!On(n.refSpec).pageRef)||t.allowAutonum&&n.autonumSpec!==null}function xS(e,t){if(e.formSpec==="checkbox"){if(e.formData?.kind!=="checkbox")return null;let n=e.formData.checked?HF:zF;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:Ae(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.length===0?null:{text:n,props:e.props,style:e.style}}return null}function SS(e,t){if(e.symbolSpec){let r=tc(e.symbolSpec,e.props,t.themeFonts);if(r)return {text:r.text,props:r.props,style:r.style}}let n=xS(e,t.themeFonts);if(n)return {text:n.text,props:n.props,style:n.style};if(e.kind&&t.pageContext)return {text:br(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:Aa,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&&Dr(e.kind,t.bodyPageFields.format)?e.picture:void 0;return {text:qs(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=sd(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 Qr(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 VF=new Set(["left","center","right"]),GF=new Set(["margin","indent","leftMargin"]),$F=new Set(["dot","hyphen","underscore","middleDot"]);function im(e){if(e.kind==="textValue"||e.localName!=="ptab"||e.namespaceUri!==chunkFBWBSHC4_cjs.da)return null;let t="left",n="margin",r;for(let o of e.attributes)o.namespaceUri===chunkFBWBSHC4_cjs.da&&(o.localName==="alignment"?t=o.value:o.localName==="relativeTo"?n=o.value:o.localName==="leader"&&(r=o.value));return {alignment:VF.has(t)?t:"left",relativeTo:GF.has(n)?n:"margin",...r!==void 0&&$F.has(r)?{leader:r}:{}}}function am(e,t,n,r){return {...e,text:e.text.slice(t,n),start:e.start+t,end:e.start+n,...r?{fontSlot:r}:{}}}function lm(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(Ph(c.props)&&!Go(c.style.fontFamily)&&!Rh(c.props,c.style.fontFamilyEastAsia,t)));}let a=Ih(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 m=0;for(let g of u)g.from>m&&l.push(am(c,m,g.from,void 0)),l.push(am(c,g.from,g.to,"eastAsia")),m=g.to;m<c.text.length&&l.push(am(c,m,c.text.length,void 0));}return l}function PS(e){return e.kind==="drawing"||chunkFBWBSHC4_cjs.hb(e)||chunkFBWBSHC4_cjs.Sa(e)}function RS(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=Wn(r),l=e.hiddenRun||!He(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 wS(e){let t=chunkFBWBSHC4_cjs.qe(e,{maxNesting:chunkFBWBSHC4_cjs.pe,maxInstructionChars:chunkFBWBSHC4_cjs.oe}),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 gi(e,t){return chunkFBWBSHC4_cjs.Zc(e,t)}function vS(e,t){if(!chunkFBWBSHC4_cjs.od(e))return null;if(chunkFBWBSHC4_cjs.ed(e)||chunkFBWBSHC4_cjs.fd(e))return {text:"",projected:true,kind:null,noteId:null};let n=chunkFBWBSHC4_cjs.cd(e),r=chunkFBWBSHC4_cjs.kd(e)??chunkFBWBSHC4_cjs.ld(e);if(!r)return null;let o=chunkFBWBSHC4_cjs.hd(e),a=o!==null?gi(r,o):n?void 0:t?.activeNoteKey,i=o!==null?o:a?KF(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&&chunkFBWBSHC4_cjs.md(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 KF(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 TS(e){return chunkFBWBSHC4_cjs.cd(e)||chunkFBWBSHC4_cjs.dd(e)||chunkFBWBSHC4_cjs.ed(e)||chunkFBWBSHC4_cjs.fd(e)}function XF(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 kS=new WeakMap;function IS(e){if(!e)return "";let t=kS.get(e);if(t!==void 0)return t;let n=JSON.stringify([[...e.marks],e.reservedMarkText??null,e.activeNoteKey??null]),r=`${e.marks.size}:${XF(n)}`;return kS.set(e,r),r}function ai(e,t=[],n,r,o,a,i=je,l,s,d,c,u,f=false,p,m){if(e.kind==="textValue")return [];if(e.kind!=="paragraph")return [];let g=[],h=0,b,{atomBeginIds:x,editableResultBeginIds:y,coveredIds:O}=wS(e),S=Io(),T=yr(),R=null,w=null,k=nc(),I=Sr,P=(B,A,D,H,K,$,v)=>{if(B.length===0&&!H&&!v?.inlineDrawing)return;let Y=v?.linkOverride??b,U=nd(v?.revisionsOverride??I,A,i,m);if(U===null)return;let X=Y?{link:Y}:{};if(H){g.push({text:B,...U,style:D,start:K,end:$,projected:true,...v?.measureText!==void 0?{measureText:v.measureText}:{},...v?.noteNav?{noteNav:v.noteNav}:{},...v?.inlineDrawing?{inlineDrawing:v.inlineDrawing}:{},...v?.anchoredAtom?{anchoredAtom:true}:{},...v?.equation?{equation:v.equation}:{},...v?.fieldAtom?{fieldAtom:v.fieldAtom}:{},...X});return}B.length!==0&&g.push({text:B,...U,style:D,start:K,end:$,...v?.positionalTab?{positionalTab:v.positionalTab}:{},...v?.breakKind?{breakKind:v.breakKind}:{},...X});},F=()=>{if(!R||!R.atomic){R=null,w=null;return}let B=R.atomStart,A=B+1;if(R.style.hidden){R=null,w=null;return}if(!He(R.resultRevisions,i,m)){l&&Wn(R.resultRevisions)&&Qr(l,B,A),R=null,w=null;return}let{resultLink:D,linkSpec:H,resultRevisions:K,capturedResultRevisions:$,formField:v}=R,Y,U=()=>{if(Y)return Y;let ee=!D&&H?c?.(H)??null:null,W=D??ee;return Y={...$?{revisionsOverride:K}:{},...W?{linkOverride:W}:{},fieldAtom:{formField:v}},Y},X=SS(R,{pageContext:n,themeFonts:d,documentProperties:u,bodyPageFields:f,...p?{refFields:p}:{}});if(X){let ee=U(),W=X.pageField||X.pageRefField?{...ee,fieldAtom:{formField:R.formField,...X.pageField?{pageField:X.pageField}:{},...X.pageRefField?{pageRef:X.pageRefField}:{}}}:ee;P(X.text,X.props,X.style,true,B,A,W);}R=null,w=null;},E=()=>{if(!R)return;let B=!R.resultLink&&R.linkSpec?c?.(R.linkSpec)??null:null,A=D=>B&&!D.link?{...D,link:B}:D;if(R.atomic){h=R.atomStart;for(let D of R.buffered)g.push({...A(D),start:h,end:h+(D.end-D.start)}),h+=D.end-D.start;R.cachedText.length>0&&R.buffered.length===0&&(P(R.cachedText,R.props,R.style,false,h,h+R.cachedText.length,{...R.capturedResultRevisions?{revisionsOverride:R.resultRevisions}:{},...B?{linkOverride:B}:{}}),h+=R.cachedText.length);}else {for(let D of R.buffered)g.push(A(D));h=R.bufferOffset;}R=null,w=null;},_=(B,A,D)=>{if(PS(B)){let Y=h;h+=1;let U=h;if(!s)return;let X=RS({node:B,layout:s,hiddenRun:D.hidden,revisions:I,displayMode:i,authorFilter:m});X.recordDeleted&&l&&Qr(l,Y,U),X.emit&&P("\uFFFC",A,D,true,Y,U,X.extras);return}if(TS(B)){let Y=vS(B,a),U=h,X=U+1;if(h=X,D.hidden||!Y||Y.text.length===0&&!Y.measureText)return;let ee=Y.scopeId&&Y.nav?{scopeId:Y.scopeId,direction:Y.nav}:void 0;P(Y.text.length>0?Y.text:Y.measureText??"",A,D,true,U,X,{...Y.measureText!==void 0?{measureText:Y.measureText}:{},...ee?{noteNav:ee}:{}});return}let H=im(B);if(H){D.hidden||P(" ",A,D,false,h,h,{positionalTab:H});return}if(mi(B)){let Y=pi(B);if(!Y||D.hidden||!He(I,i,m))return;let U=om(A,Y,d);P(Y.text,U.props,U.style,true,h,h);return}let K=pl(B);if(K.length===0)return;let $=Wn(I);D.hidden||!He(I,i,m)||B.kind==="deletedText"&&!$||P(K,A,D,false,h,h+K.length,{...B.kind==="hardBreak"?{breakKind:chunkFBWBSHC4_cjs.Ud(B)}:{}}),$&&l&&Qr(l,h,h+K.length),h+=K.length;},z=(B,A)=>{if(B.kind!=="run")return;let D=ei(B,t,r),H=Ae(D,d),K=()=>{R&&(R.capturedResultStyle||(R.props=D,R.style=H,R.capturedResultStyle=true),R.capturedResultRevisions||(R.resultRevisions=I,R.capturedResultRevisions=true,!R.resultLink&&b&&(R.resultLink=b)));};for(let $ of B.children){if(!ot(T)){if(E(),Ui(S),k.reset(),$.kind==="runProperties"||wt($,"begin")||wt($,"separate")||wt($,"end")||hr($)||O.has($.id)&&w===null)continue;_($,D,H);continue}if($.kind!=="runProperties"){if(wt($,"begin")){let v=x.has($.id);Oo(S),S.nesting===1&&(E(),k.reset(),w=v?$.id:null,R={kind:null,picture:null,symbolSpec:null,linkSpec:null,formSpec:null,buttonSpec:null,docPropertySpec:null,refSpec:null,autonumSpec:null,formData:chunkFBWBSHC4_cjs.le($),beginId:$.id,atomic:v,editableResult:y.has($.id),atomStart:h,props:D,style:H,capturedResultStyle:false,cachedText:"",sawResultContent:false,buffered:[],bufferOffset:h,resultRevisions:I,capturedResultRevisions:I.length>0,formField:chunkFBWBSHC4_cjs.ke($),...b?{resultLink:b}:{}},v&&(h+=1));continue}if(hr($)){Fo(S,$,T,A+1);continue}if(wt($,"separate")){let v=S.nesting===1&&S.phase==="instruction",Y=S.nesting,U=Co(S);if(v&&R){R.kind=U?.kind??null,R.picture=U?.picture??null;let X=Ea(S);!R.kind&&!X.overflow&&!S.nestingOverflow&&wl(R,X.instruction),R.props=D,R.style=H;}else R?.atomic&&S.phase==="result"&&!S.nestingOverflow&&k.onSeparate(n?U:null,Y);continue}if(wt($,"end")){let v=S.nesting===1;if(v&&R?.atomic&&S.phase==="instruction"){let U=Ea(S);!U.overflow&&!S.nestingOverflow&&wl(R,U.instruction);}let Y=k.onEnd(S.nesting,n);Y!==null&&R?.atomic&&(R.cachedText+=Y),Mo(S),v&&(R?.atomic?F():E());continue}if(!(Zh(S)&&R?.atomic)){if(R&&Jh(S)){if(mi($)){if(R.atomic){if(He(I,i,m)&&(R.sawResultContent=true),k.active){k.noteResult(!H.hidden&&He(I,i,m));continue}if(!H.hidden&&He(I,i,m)){let ve=pi($);ve?.unicode&&(K(),R.cachedText+=ve.text);}continue}let ne=pi($);if(!ne||H.hidden)continue;let ye=om(D,ne,d),le=nd(I,ye.props,i,m);if(le===null)continue;R.buffered.push({text:ne.text,style:ye.style,start:h,end:h,projected:true,...le,...b?{link:b}:{},fieldAtom:{formField:R.formField}});continue}let v=R.atomic?null:im($),Y=v?" ":pl($),U=v?0:Y.length;if(Y.length===0)continue;let X=Wn(I),ee=nd(I,D,i,m),W=ee===null||$.kind==="deletedText"&&!X;if(R.atomic&&!W&&(R.sawResultContent=true),X&&l&&(R.atomic?Qr(l,R.atomStart,R.atomStart+1):Qr(l,h,h+U)),W){R.atomic&&k.active&&k.noteResult(false),R.atomic||(h+=U,R.bufferOffset=h);continue}if(R.atomic){if(k.active){if(k.noteResult(!H.hidden),H.hidden)continue;K();continue}if(H.hidden)continue;K(),R.cachedText+=Y;continue}if(H.hidden){h+=U,R.bufferOffset=h;continue}R.capturedResultStyle||(R.props=D,R.style=H,R.capturedResultStyle=true),R.buffered.push({text:Y,style:H,start:h,end:h+U,...v?{positionalTab:v}:{},...ee,...b?{link:b}:{},fieldAtom:{formField:R.formField}}),h+=U,R.bufferOffset=h;continue}O.has($.id)&&w===null&&x.size>0,_($,D,H);}}}};if(!ot(T))return lm(g,d);let V=chunkFBWBSHC4_cjs.Va(),j=(B,A)=>{let D=h;if(h+=1,B.kind==="textValue"||(Wn(I)&&l&&Qr(l,D,D+1),!He(I,i,m)))return;let H=bS({simple:B,depth:A,pageContext:n,budget:T,revisions:I,displayMode:i,authorFilter:m,inheritedRunProperties:t,cascadeRuns:r,themeFonts:d,currentLink:b,projectFieldLink:c,documentProperties:u,bodyPageFields:f,...p?{refFields:p}:{}});H&&P(H.text,H.props,H.style,true,D,D+1,{fieldAtom:{formField:false,...H.pageField?{pageField:H.pageField}:{},...H.pageRef?{pageRef:H.pageRef}:{}},...H.link?{linkOverride:H.link}:{}});},M=(B,A,D,H)=>{if(H>=chunkFBWBSHC4_cjs.la)return;let K=chunkFBWBSHC4_cjs.sc(B);if(K){let v=h++;Wn(I)&&l&&Qr(l,v,h);let Y=Vd(Ae(t,d));return Y.hidden||!He(I,i,m)?void 0:P("\uFFFC",t,Y,true,v,h,{equation:K})}if(chunkFBWBSHC4_cjs.ee(B)){j(B,A);return}if(B.kind==="run"){z(B,A);return}if(chunkFBWBSHC4_cjs.Dd(B)){if(A>Wt)return;for(let v of chunkFBWBSHC4_cjs.Gd(B))M(v,A+1,D,H+1);return}if(A>Wt)return;let $=B.kind!=="textValue"&&"localName"in B?chunkFBWBSHC4_cjs.Ua(D,B):D;if(B.kind==="hyperlink"){let v=b;b=o?.(B)??void 0;for(let Y of B.children)M(Y,A+1,$,H+1);b=v;return}if(qt(B)){let v=on(B);if(!v||!ot(T))return;let Y=I;I=pn(Y,v);for(let U of B.children)M(U,A+1,$,H+1);I=Y;return}if(chunkFBWBSHC4_cjs.na(B))for(let v of B.children)M(v,A+1,$,H+1);};for(let B of e.children)M(B,1,V,0);return E(),lm(g,d)}var kl=new WeakMap;function Uo(e,t){return e.kind!=="textValue"&&e.namespaceUri===chunkFBWBSHC4_cjs.da&&e.localName===t}function sm(e,t,n,r=0){if(t==="all-markup"&&!n||r>=chunkFBWBSHC4_cjs.W)return e;let o=`${t}|${n?.cacheKey??""}`,a=kl.get(e)?.get(o);if(a)return a;let i=e.children,l=Uo(e,"pPr")?"pPrChange":Uo(e,"rPr")?"rPrChange":null,s=l?i.find(p=>Uo(p,l)):void 0;if(s&&s.kind!=="textValue"){let p=h=>s.attributes.find(b=>b.namespaceUri===chunkFBWBSHC4_cjs.da&&b.localName===h)?.value??"",m=n?qi(n,{kind:"format",nodeId:s.id,id:p("id"),author:p("author")},t):t,g=m==="original"?chunkFBWBSHC4_cjs.sh(s):null;m==="proposed"&&(i=i.filter(h=>h!==s)),g!==null&&(l==="pPrChange"?i=[...g.filter(h=>!Uo(h,"rPr")&&!Uo(h,"sectPr")),...i.filter(h=>Uo(h,"rPr")||Uo(h,"sectPr"))]:i=[...i.filter(chunkFBWBSHC4_cjs.Ce),...g.filter(h=>!chunkFBWBSHC4_cjs.Ce(h))]);}let d=i!==e.children,c=i.map(p=>{if(p.kind==="textValue"||p.localName.endsWith("PrChange"))return p;let m=sm(p,t,n,r+1);return d||=m!==p,m}),u=d?{...e,children:c}:e,f=kl.get(e);if(f||kl.set(e,f=new Map),Zr(f,o,u),u!==e){let p=kl.get(u);p||kl.set(u,p=new Map),Zr(p,o,u);}return u}function YF(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 UF(e,t,n){return !(e.kind==="paragraph"&&uy(e,t,n))}var BS=new WeakMap;function zr(e){return BS.get(e)??null}function LS(e,t){let n=t.children.filter(a=>OS(a)),r=e.flatMap(a=>a.children.filter(i=>!OS(i))),o={...t,children:[...n,...r]};return BS.set(o,{merged:o,members:e}),o}function OS(e){return e.kind!=="textValue"&&(e.kind==="paragraphProperties"||e.localName==="pPr")}function qF(e,t,n){if(t==="all-markup"&&!n)return e.map(l=>l.block);let r=[],o=[],a=null,i=()=>{r.push(...FS(o)),o=[],a=null;};for(let{block:l,parentKey:s}of e){if(o.length>0&&s!==a&&i(),l.kind!=="paragraph"){i(),r.push(l);continue}let d=Ju(l,t,n);if((d||o.length>0)&&!QF(l,t,n)){i(),r.push(l);continue}if(d){o.push(l),a=s;continue}if(o.length===0){r.push(l);continue}let c=[...o,l];o=[],a=null,r.push(LS(c,l));}return r.push(...FS(o)),r}function FS(e){if(e.length<2)return e;let t=e[e.length-1];return [LS(e,t)]}function vl(e,t,n){let r=JF(e).map(a=>({...a,block:sm(a.block,t,n)}));return qF(r,t,n).filter(a=>UF(a,t,n))}var ZF=new Set(["pPr","bookmarkStart","bookmarkEnd","proofErr","permStart","permEnd"]);function ES(e){for(let t of e.children){if(t.kind==="textValue"){if(t.value.length>0)return false;continue}if(t.namespaceUri!==chunkFBWBSHC4_cjs.da||!ZF.has(t.localName))return false}return true}function JF(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=chunkFBWBSHC4_cjs.wd(i);l!==null&&o<chunkFBWBSHC4_cjs.Cd&&n(l,o+1,i.id);}};return n(e,0,""),t}var CS=new WeakMap;function QF(e,t,n){let r=`${t}|${n?.cacheKey??""}`,o=CS.get(e),a=o?.get(r);if(a!==void 0)return a;let i=eC(e,t,n);return o?Zr(o,r,i):CS.set(e,new Map([[r,i]])),i}function eC(e,t,n){if(!tC(e))return false;let r=ai(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<=chunkFBWBSHC4_cjs.Qe(e).length}function tC(e){let t=0,n=false,r=o=>{if(o.kind!=="textValue"){if(o.namespaceUri===chunkFBWBSHC4_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 MS=chunkFBWBSHC4_cjs.mg(16);function bn(e,t="all-markup",n){let r=`${t}|${n?.cacheKey??""}`,o=MS.get(e),a=o?.get(r);if(a)return a;let i=YF(e),l=i?vl(i.children,t,n):[];return o?Zr(o,r,l):MS.set(e,new Map([[r,l]])),l}function Pl(e,t="all-markup",n){return e.kind!=="note"?[]:vl(e.children,t,n)}function dm(e,t="all-markup",n){return e.kind==="textValue"?[]:vl(e.children,t,n)}var nC="http://schemas.microsoft.com/office/word";function NS(e){if(!e||e.namespaceUri!==chunkFBWBSHC4_cjs.da||e.localName!=="settings")return;let t,n=false;for(let r of e.children)if(!(r.kind==="textValue"||r.namespaceUri!==chunkFBWBSHC4_cjs.da||r.localName!=="compat"))for(let o of r.children){if(o.kind==="textValue"||o.namespaceUri!==chunkFBWBSHC4_cjs.da||o.localName!=="compatSetting")continue;let a=l=>o.attributes.find(s=>s.namespaceUri===chunkFBWBSHC4_cjs.da&&s.localName===l)?.value;if(a("name")!=="compatibilityMode"||a("uri")!==nC)continue;if(n)return;n=true;let i=a("val");t=i==="11"||i==="12"||i==="14"||i==="15"?Number(i):void 0;}return t}function ZH(e){let t,n,r,o,a,i,l,s,d,c,u,f,p,m,g,h,b;return {styleCascade(){let x=e.stylesRoot(),y=e.documentThemeFonts(),O=e.settingsRoot();return (f===void 0||x!==r||O!==p||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=x,o=y.major,a=y.minor,i=y.majorEastAsia,l=y.minorEastAsia,s=y.majorBidi,d=y.minorBidi,c=y.majorSupplemental,u=y.minorSupplemental,p=O,f=Tx(x,y,O)),f},defaultTabStopPt(){let x=e.settingsRoot();return (g===void 0||x!==m)&&(m=x,g=xb(x)),g},compatibilityMode(){let x=e.settingsRoot();return x!==h&&(h=x,b=NS(x)),b},numberingIndex(){let x=e.numberingRoot();return (n===void 0||x!==t)&&(t=x,n=_y(x)),n}}}var rC={state:"none"},AS=(e,t)=>t.state==="omitted"?e:t;function cm(e,t,n={}){return e.state==="omitted"?t:e.state==="none"?rC:e}function um(e,t){let n=AS;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 fm(e,t){let n=AS;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 eo(e=1048576){let t=e|0;return {intervalsRemaining:t>0?t:0}}function DS(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]=oC(e[i],o,n,r);}return a}function oC(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),p=Math.min(t,f+Math.max(0,u.gridSpan|0));f>=p||(o.push({x:f,kind:1,cellIndex:c,cell:u}),o.push({x:p,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 aC(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 mm(e,t,n,r){r&&(r.columnLookups+=1);let o=e[t];if(!o||n<0)return;let a=aC(o,n)-1;if(a<0)return;let i=o[a];if(!(n>=i.end))return {cell:i.cell,cellIndex:i.cellIndex}}var lC=256,ut={state:"omitted"},sc={state:"none"},WS={top:ut,left:ut,bottom:ut,right:ut,insideH:ut,insideV:ut},VS={top:ut,left:ut,bottom:ut,right:ut},_S={single:1,thick:2,double:3,dotted:4,dashed:5,triple:10},sC=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 hi(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function pm(e,t){return e.attributes.find(n=>n.localName===t)?.value}function dC(e){return e===void 0||!/^\d{1,9}$/.test(e)?null:Number(e)}function cC(e){if(e===null)return .5;let t=e/8;return !Number.isFinite(t)||t<=0?.5:t>Id?Id:t}function gm(e){if(!e)return ut;let t=pm(e,"val");if(!t)return ut;if(t==="nil"||t==="none")return sc;let n=sC.get(t)??"single",r=pm(e,"color"),o=r===void 0||r==="auto"?null:Iu(r)??null;return {state:"edge",style:n,color:o,widthPt:cC(dC(pm(e,"sz")))}}function GS(e,t){if(!e)return VS;let n={top:ut,left:ut,bottom:ut,right:ut};for(let r of t){let o=r==="left"?"start":r==="right"?"end":void 0,a=hi(e,r)??(o?hi(e,o):void 0);n[r]=gm(a);}return n}function hm(e){let t=e&&hi(e,"tblBorders");return t?{...GS(t,["top","left","bottom","right"]),insideH:gm(hi(t,"insideH")),insideV:gm(hi(t,"insideV"))}:WS}function ym(e){return GS(e&&hi(e,"tcBorders"),["top","left","bottom","right"])}function jS(e){return e.state!=="edge"?0:Math.max(1,Math.round(e.widthPt*8))}function HS(e){if(!e)return 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+n+r}function uC(e,t,n=true){if(e.state==="omitted")return t.state==="omitted"?ut:t;if(t.state==="omitted")return e;if(e.state==="none")return t.state==="none"?sc:t;if(t.state==="none")return e;let r=jS(e),o=jS(t);if(r>o)return e;if(o>r)return t;let a=_S[e.style],i=_S[t.style];if(a!==i)return a>i?e:t;let l=HS(e.color),s=HS(t.color);return l<s?e:s<l?t:n?e:t}function rc(e){if(e.state==="edge")return {style:e.style,color:e.color,widthPt:e.widthPt}}function fC(e,t,n){return n?t==="top"||t==="bottom"?e.insideH:e.insideV:e[t]}function mC(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 oc(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&&mC(n.edge,o.edge)?n={...n,gridEnd:o.gridEnd}:(t.push(n),n={...o});}return t.push(n),t}function ac(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 zS(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 pC(e){if(!(!e||e.style!=="double"))return dl(e.widthPt)}function ic(e){return e==="dashed"?"dashed":e==="dotted"?"dotted":"solid"}function gC(e,t){return t?e==="outer"?t.insetPt:t.insetPt+t.strokePt+t.gapPt:0}function hC(e,t,n){return n?e==="outer"?t-n.insetPt:t-n.insetPt-n.strokePt-n.gapPt:t}function yC(e,t){return t?e==="outer"?t.insetPt+t.strokePt:t.insetPt+t.extentPt:0}function bC(e,t,n){return n?e==="outer"?t-n.insetPt-n.strokePt:t-n.insetPt-n.extentPt:t}function to(e,t){e.length>=lC||!(t.width>0)||!(t.height>0)||e.push(t);}function xC(e,t,n,r,o,a,i,l,s,d,c){let u=dl(n.widthPt),{strokePt:f,gapPt:p,extentPt:m,insetPt:g}=u,h=Math.abs(r)<1e-6,b=Math.abs(o-a)<1e-6,x=Math.abs(r)<1e-6,y=Math.abs(o-i)<1e-6;if(t==="top"||t==="bottom"){let T=t==="top"?g:i-g-f,R=t==="top"?g+f+p:i-g-m;for(let w of ["outer","inner"]){let k=r,I=o;h&&(k=gC(w,l)),b&&(I=hC(w,a,s)),to(e,{side:t,role:w,color:n.color,cssStyle:"solid",x:k,y:w==="outer"?T:R,width:I-k,height:f});}return}let O=t==="left"?g:a-g-f,S=t==="left"?g+f+p:a-g-m;for(let T of ["outer","inner"]){let R=r,w=o;x&&(R=yC(T,d)),y&&(w=bC(T,i,c)),to(e,{side:t,role:T,color:n.color,cssStyle:"solid",x:T==="outer"?O:S,y:R,width:f,height:w-R});}}function SC(e,t,n,r,o,a,i){let l=n.widthPt,s=Math.max(1,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)to(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)to(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 PC(e,t,n,r,o,a,i){let l=n.widthPt;t==="top"?to(e,{side:t,role:"edge",color:n.color,cssStyle:ic(n.style),x:r,y:0,width:o-r,height:l}):t==="bottom"?to(e,{side:t,role:"edge",color:n.color,cssStyle:ic(n.style),x:r,y:i-l,width:o-r,height:l}):t==="left"?to(e,{side:t,role:"edge",color:n.color,cssStyle:ic(n.style),x:0,y:r,width:l,height:o-r}):to(e,{side:t,role:"edge",color:n.color,cssStyle:ic(n.style),x:a-l,y:r,width:l,height:o-r});}function lc(e,t){if(e.length===0)return;let n=e[0];return pC(n.edge)}function RC(e,t,n,r,o,a,i,l,s,d){let c=(F,E,_)=>{let z=[];for(let V of E){if(!V.edge)continue;let j,M;_?(j=zS(i,l,V.gridStart),M=zS(i,l,V.gridEnd)):(j=s[V.gridStart-d]??0,M=s[V.gridEnd-d]??a),z.push({side:F,gridStart:V.gridStart,gridEnd:V.gridEnd,startPt:j,endPt:M,edge:V.edge});}return z},u=c("top",e,true),f=c("left",t,false),p=c("bottom",n,true),m=c("right",r,false),g=[...u,...m,...p,...f],h=lc(t),b=lc(r),x=lc(e),y=lc(n),O=(F,E)=>F.length===1&&Math.abs(F[0].startPt)<1e-6&&Math.abs(F[0].endPt-E)<1e-6,S=O(u,o),T=O(f,a),R=O(p,o),w=O(m,a),k=[],I=(F,E,_)=>{for(let z of E){let{edge:V,startPt:j,endPt:M}=z;V.style==="double"?xC(k,F,V,j,M,o,a,F==="top"||F==="bottom"?h:void 0,F==="top"||F==="bottom"?b:void 0,F==="left"||F==="right"?x:void 0,F==="left"||F==="right"?y:void 0):V.style==="triple"?SC(k,F,V,j,M,o,a):_||PC(k,F,V,j,M,o,a);}};I("top",u,S),I("left",f,T),I("bottom",p,R),I("right",m,w);let P={};return S&&u[0]&&(P.top=u[0].edge),T&&f[0]&&(P.left=f[0].edge),R&&p[0]&&(P.bottom=p[0].edge),w&&m[0]&&(P.right=m[0].edge),g.length>0&&(P.edgeSegments=g),k.length>0&&(P.strokes=k),P}function dc(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=DS(e,n,o,a),d=(u,f,p)=>cm(u.borders[f],fC(t,f,p),{}),c=(u,f,p,m)=>u.state==="none"&&f.state!=="edge"||f.state==="none"&&u.state!=="edge"?sc:uC(p,m);for(let u=0;u<i;u+=1){let f=e[u];for(let p=0;p<f.length;p+=1){let m=f[p];if(m.vMergeContinue){l[u][p]={};continue}let g=m.mergeRowSpan??1,h=u+g-1,b=u===0,x=h===i-1,y=m.gridColumn===0,O=m.gridColumn+m.gridSpan-1,S=O>=n-1,T=[];if(b)for(let j=m.gridColumn;j<=O;j+=1)T.push({gridStart:j,gridEnd:j+1,edge:rc(d(m,"top",false))});let R=[];if(y)for(let j=u;j<=h;j+=1)R.push({gridStart:j,gridEnd:j+1,edge:rc(d(m,"left",false))});let w=[];for(let j=m.gridColumn;j<=O;j+=1){let M;if(x)M=d(m,"bottom",false);else {let B=mm(s,h+1,j,o);B?.cell.vMergeContinue?M=ut:M=c(m.borders.bottom,B?B.cell.borders.top:ut,d(m,"bottom",true),B?d(B.cell,"top",true):t.insideH);}w.push({gridStart:j,gridEnd:j+1,edge:rc(M)});}let k=[];for(let j=u;j<=h;j+=1){let M;if(S)M=d(m,"right",false);else {let B=mm(s,j,O+1,o);M=c(m.borders.right,B?B.cell.borders.left:ut,d(m,"right",true),B?d(B.cell,"left",true):t.insideV);}k.push({gridStart:j,gridEnd:j+1,edge:rc(M)});}let I=oc(T),P=oc(R),F=oc(w),E=oc(k);if(!r){let j={},M=ac(I,m.gridColumn,O+1),B=ac(P,u,h+1),A=ac(F,m.gridColumn,O+1),D=ac(E,u,h+1);M&&(j.top=M),B&&(j.left=B),A&&(j.bottom=A),D&&(j.right=D);let H=[],K=($,v)=>{for(let Y of v)Y.edge&&H.push({side:$,gridStart:Y.gridStart,gridEnd:Y.gridEnd,startPt:Y.gridStart,endPt:Y.gridEnd,edge:Y.edge});};K("top",I),K("left",P),K("bottom",F),K("right",E),H.length>0&&(j.edgeSegments=H),l[u][p]=j;continue}let _=r.cellBoxes[u][p],z=[0],V=0;for(let j=u;j<=h;j+=1){let M=r.rowBands[j];V+=M.height,z.push(V);}z.length>1&&(z[z.length-1]=_.height),l[u][p]=RC(I,P,F,E,_.width,_.height,r.columnWidthsPt,m.gridColumn,z,u);}}return l}function Rr(e){return e?"state"in e?e.state==="edge"?e.widthPt:0:e.widthPt:0}var bm=WS,xm=VS;var KS=31680/20,Jn=Object.freeze({type:"auto",value:0}),wC=100,kC=Object.freeze({mm:72/25.4,cm:72/2.54,in:72,pt:1,pc:12,pi:12});function vC(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function Pm(e,t){return e.attributes.find(n=>n.localName===t)?.value}function XS(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])*kC[n[2]];return Number.isFinite(r)?{kind:"length",pt:r}:null}return null}function qo(e){if(!e)return Jn;let t=Pm(e,"type");if(t!==void 0&&t!=="pct"&&t!=="dxa")return t==="nil"?{type:"nil",value:0}:Jn;let n=Pm(e,"w");if(n===void 0)return Jn;let r=XS(n);if(!r)return Jn;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?Jn:{type:"pct",value:Math.min(a,wC)}}return !Number.isFinite(r.pt)||r.pt<=0?Jn:{type:"dxa",value:Math.min(r.pt,KS)}}function Tl(e,t){if(!e)return;let n=qo(e);if(n.type==="dxa")return Math.min(n.value,t)}function YS(e){let t=vC(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 TC(e){let t=[];for(let n of e){let r=Pm(n,"w"),o=r===void 0?null:XS(r);if(!o||o.kind!=="length"||!Number.isFinite(o.pt)||o.pt<=0){t.push(void 0);continue}t.push(o.pt>KS?void 0:o.pt);}return t}var Sm=1,$S=.001;function IC(e,t,n,r){let o=[];for(let i=0;i<n;i+=1)o.push(e[i]);let a=t.filter(i=>i.start<n&&(i.preferred.type==="dxa"||i.preferred.type==="pct"&&r>0)).sort((i,l)=>i.span-l.span);for(let i of a){let l=Math.min(i.start+i.span,n);if(l<=i.start)continue;let s=i.preferred.type==="pct"?r*i.preferred.value/100:i.preferred.value;if(!Number.isFinite(s)||s<=0)continue;if(l-i.start===1){let f=o[i.start];o[i.start]=f===void 0?s:Math.max(f,s);continue}let d=[],c=s;for(let f=i.start;f<l;f+=1){let p=o[f];p===void 0?d.push(f):c-=p;}if(d.length===0||c<=0)continue;let u=c/d.length;for(let f of d)o[f]=u;}return o}function US(e){let{columnCount:t,tableWidth:n}=e,r=Number.isFinite(e.contentWidthPt)&&e.contentWidthPt>0,o=r?e.contentWidthPt:Sm,a=n.type==="dxa"?n.value:n.type==="pct"?o*n.value/100:0,i=TC(e.gridCols),l=IC(i,e.claims,t,a),s=0,d=0;for(let b of l)b===void 0?d+=1:s+=b;let c=[];if(d>0){let b=s>0?s/Math.max(t-d,1):o/t,x=Math.max(o-s,0)/d,y=Math.max(Math.min(x,b),Sm);for(let O of l)c.push(O??y);}else for(let b of l)c.push(b);let u=c.reduce((b,x)=>b+x,0);if(!Number.isFinite(u)||u<=0)return new Array(t).fill(o/t);let f=t*Sm,p=e.layoutFixed||!r?Number.POSITIVE_INFINITY:o,m=Math.max(a>0?Math.min(a,p):Math.min(u,p),f),g=n.type==="pct"&&a>0;if(u<=m+$S&&!g||Math.abs(u-m)<=$S)return c;let h=m/u;return c.map(b=>b*h)}function yi(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function OC(e,t){return e.attributes.find(n=>n.localName===t)?.value}var FC=3,qS=108/20,Il=31680/20,ZS={top:0,right:qS,bottom:0,left:qS};function cc(e){if(!e)return;let t=OC(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>Il?Il:r}function uc(e){if(!e)return {};let t=cc(yi(e,"top")),n=cc(yi(e,"left")??yi(e,"start")),r=cc(yi(e,"bottom")),o=cc(yi(e,"right")??yi(e,"end"));return {...t===void 0?{}:{top:t},...n===void 0?{}:{left:n},...r===void 0?{}:{bottom:r},...o===void 0?{}:{right:o}}}function fc(e,t){return {top:t.top??e.top,right:t.right??e.right,bottom:t.bottom??e.bottom,left:t.left??e.left}}function Ol(e,t){if(e.legacyContentAlignment)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)||r<=0?0:e.alignment==="center"?r/2:e.alignment==="right"?e.bidiVisual?Math.max(0,r-e.indentPt):r:e.bidiVisual?0:Math.min(e.indentPt,r)}function Zo(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))}function CC(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function Bn(e,t){return e.attributes.find(n=>n.localName===t)?.value}var JS=31680/20;function QS(e){if(e==="page")return "page";if(e==="margin")return "margin";if(e==="text")return "text"}function bi(e){if(e===void 0||!/^-?\d{1,9}$/.test(e))return;let t=Number(e);if(!Number.isFinite(t))return;let n=t/20;return Math.max(-JS,Math.min(JS,n))}function Rm(e){let t=e&&CC(e,"tblpPr");if(!t)return;let n=Bn(t,"tblpXSpec"),r=n==="left"||n==="center"||n==="right"||n==="inside"||n==="outside"?n:void 0,o=Bn(t,"tblpYSpec"),a=o==="inline"||o==="top"||o==="center"||o==="bottom"||o==="inside"||o==="outside"?o:void 0;return {horzAnchor:QS(Bn(t,"horzAnchor"))??"text",vertAnchor:QS(Bn(t,"vertAnchor"))??"text",...r?{xSpec:r}:{},xPt:bi(Bn(t,"tblpX"))??0,...a?{ySpec:a}:{},yPt:bi(Bn(t,"tblpY"))??0,...["topFromText","rightFromText","bottomFromText","leftFromText"].some(i=>Bn(t,i)!==void 0)?{distances:{top:Math.max(0,bi(Bn(t,"topFromText"))??0),right:Math.max(0,bi(Bn(t,"rightFromText"))??0),bottom:Math.max(0,bi(Bn(t,"bottomFromText"))??0),left:Math.max(0,bi(Bn(t,"leftFromText"))??0)}}:{}}}function tP(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 nP(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){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 rP(e,t){return {x:t.x+t.height-(e.y-t.y),y:t.y+(e.x-t.x)}}var eP=new WeakMap,oP=new WeakSet;function MC(e){let t=eP.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 rn(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 eP.set(e,n),n}function aP(e,t,n){let r=MC(e).get(n)??[];return r.find(o=>o.pageIndex===t)??r[0]}function xi(e,t){let n=aP(e,t.pageIndex,t.position.paragraphId);if(!n)return t;let r=BC(t,n.cell.box),o={...t,...r};return oP.add(o),o}function hz(e){return oP.has(e)}function wm(e,t,n){let r=aP(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 BC(e,t){return {x:t.x+(e.y-t.y),y:t.y+t.height-(e.x-t.x)}}function iP(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 lP(e,t){if(e){for(let n of e.children)if(n.kind!=="textValue"&&n.namespaceUri===chunkFBWBSHC4_cjs.da&&n.localName===t)return n}}function km(e){let t=lP(e,"tblHeader");if(!t)return;let n=t.attributes.find(r=>r.namespaceUri===chunkFBWBSHC4_cjs.da&&r.localName==="val")?.value;return n===void 0||n!=="0"&&n!=="false"&&n!=="off"}function sP(e,t,n){let r=false;for(let o of e.tableRowPropertyNodes)r=km(o)??r;for(let o of t)r=km(lP(e.conditional.get(o),"trPr"))??r;return km(n)??r}function LC(e){if(e.namespaceUri!==chunkFBWBSHC4_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!==chunkFBWBSHC4_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!==chunkFBWBSHC4_cjs.da||!/^\d{1,9}$/.test(o[0].value)||Number(o[0].value)>31680||a.length>1||a.length===1&&(a[0].namespaceUri!==chunkFBWBSHC4_cjs.da||a[0].value!=="dxa"))return false}return true}function dP(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(!LC(o))return false}else n.push(o);}return true}var vm=31680/20,cP=.001;function uP(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=Qn(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+cP?{...o,preferred:{type:"dxa",value:l}}:o})}function Fl(e,t){let n;for(let r of e.children)if(!(r.kind==="textValue"||r.localName!==t)){if(n||r.namespaceUri!==chunkFBWBSHC4_cjs.da)return;n=r;}return n}function Qn(e,t){let n=e?.attributes.filter(r=>r.localName===t);return n?.length===1&&n[0].namespaceUri===chunkFBWBSHC4_cjs.da?n[0].value:void 0}function fP(e){let{compatibilityMode:t,contentWidthPt:n,table:r,rows:o,columnCount:a}=e;if(t!==11&&t!==12&&t!==14||e.depth!==0||e.floating||e.layoutFixed||e.alignment!=="left"||e.indentPt!==0||e.cellSpacingPt!==0||e.tableWidth.type!=="pct"||e.tableWidth.value!==100||!Number.isFinite(n)||n<=0||n>vm||a<1||a>1024)return;let i=Fl(r,"tblPr");if(!i)return;let l=Fl(i,"tblW"),s=Fl(i,"tblInd"),d=Qn(l,"w");if(Qn(l,"type")!=="pct"||d!=="5000"&&d!=="100%"||Qn(s,"type")!=="dxa"||Qn(s,"w")!=="0"||Qn(Fl(i,"tblLayout"),"type")!=="autofit")return;for(let x of [...e.propertyNodes,i])for(let y of x.children)if(y.kind!=="textValue"&&(["jc","tblCellSpacing"].includes(y.localName)&&y.namespaceUri!==chunkFBWBSHC4_cjs.da||y.localName==="tblpPr"||y.localName==="bidiVisual"||y.localName==="jc"&&!["left","start"].includes(Qn(y,"val")??"")||y.localName==="tblCellSpacing"&&(Qn(y,"type")!=="dxa"||Qn(y,"w")!=="0")))return;let c=o[0]?.cells[0],u=o[0]?.cells.at(-1);if(!c||!u||!dP(r,e.propertyNodes))return;let f=c.margins.left,p=u.margins.right,m=n+f+p;if(!Number.isFinite(m)||f<0||p<0||f+p<=0||m>vm)return;for(let x of o){let y=x.cells[0],O=x.cells.at(-1);if(!y||!O||y.gridColumn!==0||O.gridColumn+O.gridSpan!==a||y.margins.left!==f||O.margins.right!==p)return}let g=Fl(r,"tblGrid");if(!g)return;let h=0,b=0;for(let x of g.children){if(x.kind==="textValue")continue;if(x.localName!=="gridCol"||x.namespaceUri!==chunkFBWBSHC4_cjs.da)return;let y=Qn(x,"w");if(y===void 0||!/^\d{1,9}$/.test(y))return;let O=Number(y)/20;if(O<1||O>vm||++h>1024)return;b+=O;}return h===a&&Math.abs(b-m)<cP?m:void 0}var Fm=16,EC=31680/20,mP=1023,NC=256,pP=31680/20;function gP(e){let t=e&&ze(e,"jc");if(!t)return;let n=sn(t,"val");if(n==="center")return "center";if(n==="right"||n==="end")return "right";if(n==="left"||n==="start")return "left"}function ze(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function sn(e,t){return e.attributes.find(n=>n.localName===t)?.value}function Tm(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.namespaceUri===chunkFBWBSHC4_cjs.da&&n.localName===t)return n}function mc(e,t){return e.attributes.find(n=>n.namespaceUri===chunkFBWBSHC4_cjs.da&&n.localName===t)?.value}function AC(e){let t=e&&ze(e,"gridSpan"),n=t&&sn(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 hP(e,t){let n=e&&ze(e,t),r=n&&sn(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 DC(e){let t=e&&ze(e,"vMerge");return t?sn(t,"val")!=="restart":false}function yP(e){return lh(e&&ze(e,"shd"))}function Im(e,t){let n=e&&ze(e,t);if(!n)return false;let r=sn(n,"val");return r===void 0||r!=="0"&&r!=="false"&&r!=="off"}var Cl=Object.freeze({rule:"auto"});function _C(e){let t=e&&ze(e,"trHeight");if(!t)return Cl;let n=sn(t,"hRule"),r=n==="auto"||n==="exact"||n==="atLeast"?n:void 0;if(r==="auto")return Cl;let o=sn(t,"val");if(o===void 0||!/^\d{1,9}$/.test(o))return Cl;let a=Number(o);if(!Number.isFinite(a)||a<=0)return Cl;let i=Math.min(a/20,EC);return i>0?{rule:r==="exact"?"exact":"atLeast",valuePt:i}:Cl}var jC=Object.freeze({firstRow:false,lastRow:false,firstColumn:false,lastColumn:false,rowBanding:true,columnBanding:true});function wr(e,t){let n=sn(e,t);if(n!==void 0)return n!=="0"&&n!=="false"&&n!=="off"}function HC(e){let t=e&&ze(e,"tblLook");if(!t)return jC;let n=sn(t,"val"),r=n&&/^[0-9A-Fa-f]{1,4}$/.test(n)?Number.parseInt(n,16):0;return {firstRow:wr(t,"firstRow")??(r&32)!==0,lastRow:wr(t,"lastRow")??(r&64)!==0,firstColumn:wr(t,"firstColumn")??(r&128)!==0,lastColumn:wr(t,"lastColumn")??(r&256)!==0,rowBanding:wr(t,"noHBand")===void 0?(r&512)===0:!wr(t,"noHBand"),columnBanding:wr(t,"noVBand")===void 0?(r&1024)===0:!wr(t,"noVBand")}}var Om=["firstRow","lastRow","firstCol","lastCol","band1Vert","band2Vert","band1Horz","band2Horz","nwCell","neCell","swCell","seCell"],bP=["firstRow","lastRow","firstColumn","lastColumn","oddVBand","evenVBand","oddHBand","evenHBand","firstRowFirstColumn","firstRowLastColumn","lastRowFirstColumn","lastRowLastColumn"];function xP(e,t){let n=e&&ze(e,"cnfStyle");if(!n)return;let r=sn(n,"val");if(r&&/^[01]{1,12}$/.test(r))for(let o=0;o<r.length&&o<Om.length;o+=1)r[o]==="1"&&t.add(Om[o]);for(let o=0;o<bP.length;o+=1)wr(n,bP[o])===true&&t.add(Om[o]);}var zC=["band1Vert","band2Vert","band1Horz","band2Horz","firstCol","lastCol","firstRow","lastRow","nwCell","neCell","swCell","seCell"];function SP(e){let t=new Set;xP(e.rowProperties,t),xP(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 m=[];for(let g of zC)t.has(g)&&m.push(g);return m}var WC=new WeakMap,VC=new WeakMap;function Gt(e,t,n,r,o="all-markup",a,i){let l=a?VC:WC,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=GC(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 GC(e,t,n,r,o,a,i){if(n>=Fm||e.kind!=="table")return null;let l=ze(e,"tblPr"),s=l&&ze(l,"tblStyle")?sn(ze(l,"tblStyle"),"val"):void 0,d=r?wx(r,s):Xd,c=HC(l),u=false;for(let U of d.tablePropertyNodes)ze(U,"bidiVisual")&&(u=Im(U,"bidiVisual"));l&&ze(l,"bidiVisual")&&(u=Im(l,"bidiVisual"));let f=ZS,p=bm;for(let U of d.tablePropertyNodes)f=fc(f,uc(ze(U,"tblCellMar"))),p=um(p,hm(U));let m=fc(f,uc(l&&ze(l,"tblCellMar"))),g=um(p,l?hm(l):bm),h=new Map,b=kx(d),x=U=>{if(!b)return zf;let X=U.join("|"),ee=h.get(X);if(ee)return ee;let W=vx(d,U);return h.size<NC&&h.set(X,W),W},y=[],O=[],S=1;for(let U of chunkFBWBSHC4_cjs.Dc(e.children)){if(U.kind!=="tableRow")continue;let X=Tm(U,"trPr"),ee=X?Tm(X,"ins")??Tm(X,"del"):void 0,W=ee?.localName,ne=ee?mc(ee,"author")??"":void 0,ye=ee&&ne!==void 0&&a?sy(a,ee.id,ne,o):o;if(ye==="proposed"&&W==="del"||ye==="original"&&W==="ins")continue;let le=ye==="all-markup"?ee:void 0,ve=[],q=[],Pe=[],Te=Math.min(hP(X,"gridBefore"),mP);Te>0&&O.push({start:0,span:Te,preferred:qo(X&&ze(X,"wBefore"))});let ae=Te,Ce=chunkFBWBSHC4_cjs.Dc(U.children);for(let We of Ce){if(We.kind!=="tableCell")continue;let Me=ze(We,"tcPr"),Fe=Math.min(ae,mP),ce=Math.min(AC(Me),1024-Fe),ht=qo(Me&&ze(Me,"tcW"));ve.push(Fe),q.push(ce),Pe.push(ht),O.push({start:Fe,span:ce,preferred:ht}),ae=Fe+ce;}let me=hP(X,"gridAfter"),Se=Math.min(ae+me,1024);me>0&&ae<1024&&O.push({start:ae,span:Math.min(me,1024-ae),preferred:qo(X&&ze(X,"wAfter"))}),Se>S&&(S=Se),y.push({node:U,revision:le,cells:Ce,properties:X,starts:ve,spans:q,preferred:Pe,gridColumns:Se});}let T=YS(e),R=T.length>0?T.length:S,w=y.length,k=[];for(let U=0;U<y.length;U+=1){let X=y[U],ee=X.node,W=X.properties,ne=SP({look:c,rowIndex:U,rowCount:w,gridColumn:0,gridSpan:Math.max(1,R),columnCount:Math.max(1,R),rowProperties:W,cellProperties:void 0}),ye=sP(d,ne,W),le=0,ve=[];for(let me of X.cells){if(me.kind!=="tableCell")continue;let Se=ze(me,"tcPr"),We=X.starts[le],Me=X.spans[le],Fe=X.preferred[le]??Jn,ce=SP({look:c,rowIndex:U,rowCount:w,gridColumn:We,gridSpan:Me,columnCount:R,rowProperties:W,cellProperties:Se});le+=1;let ht,Lt=xm;for(let ir of ce){let Ge=d.conditional.get(ir);if(!Ge)continue;let Dt=ze(Ge,"tcPr");ht=yP(Dt)??ht,Lt=fm(Lt,ym(Dt));}let En=yP(Se)??ht,ar=fc(m,uc(Se&&ze(Se,"tcMar"))),Be=vl(me.children,o,a);ve.push({id:me.id,gridSpan:Me,gridColumn:We,...T[We]?.id?{gridColumnId:T[We].id}:{},vMergeContinue:DC(Se),vAlign:iP(Se),textDirection:tP(Se),margins:ar,borders:fm(Lt,Se?ym(Se):xm),...En===void 0?{}:{shading:En},preferredWidth:Fe,styleFormatting:x(ce),blocks:Be});}let q=X.revision,Pe=q?q.localName==="ins"?"insert":"delete":void 0,Te=q&&mc(q,"id"),ae=q&&mc(q,"author"),Ce=q&&mc(q,"date");k.push({id:ee.id,...Pe?{revisionKind:Pe}:{},...Te!==void 0?{revisionId:Te}:{},...ae!==void 0?{revisionAuthor:ae}:{},...Ce!==void 0?{revisionDate:Ce}:{},isHeader:ye,cantSplit:Im(W,"cantSplit"),height:_C(W),cells:ve});}let I=Jn,P,F,E,_,z;for(let U of d.tablePropertyNodes){let X=ze(U,"tblW");X&&(I=qo(X));let ee=ze(U,"tblLayout");ee&&(P=sn(ee,"type")==="fixed"),F=Tl(ze(U,"tblInd"),pP)??F,E=gP(U)??E,_=Tl(ze(U,"tblCellSpacing"),Il)??_,z=Rm(U)??z;}let V=l&&ze(l,"tblW"),j=V?qo(V):I,M=l&&ze(l,"tblLayout"),B=M?sn(M,"type")==="fixed":P??false,A=Tl(l&&ze(l,"tblInd"),pP)??F??0,D=gP(l)??E??"left",H=n===0?Rm(l)??z:void 0,K=Tl(l&&ze(l,"tblCellSpacing"),Il)??_??0,$=fP({table:e,propertyNodes:d.tablePropertyNodes,rows:k,columnCount:R,contentWidthPt:t,compatibilityMode:i,depth:n,tableWidth:j,layoutFixed:B,alignment:D,indentPt:A,cellSpacingPt:K,floating:H!==void 0}),v=US({gridCols:T,claims:$===void 0?O:uP(O,T,$),columnCount:R,contentWidthPt:$??t,tableWidth:j,layoutFixed:B}),Y=u?k.map(U=>({...U,cells:U.cells.map(X=>({...X,margins:{...X.margins,left:X.margins.right,right:X.margins.left},borders:{...X.borders,left:X.borders.right,right:X.borders.left},logicalGridColumn:X.gridColumn,gridColumn:Math.max(0,v.length-X.gridColumn-X.gridSpan)}))})):k;return {...u?{bidiVisual:true}:{},columnWidthsPt:u?[...v].reverse():v,rows:$===void 0?Y:Y.map(U=>({...U,cells:U.cells.map(X=>({...X,legacyContentAlignment:true}))})),...$===void 0?{}:{legacyContentAlignment:true},tableWidth:j,layoutFixed:B,indentPt:A,alignment:u?D==="left"?"right":D==="right"?"left":D:D,...H?{float:H}:{},cellSpacingPt:K,tableBorders:u?{...g,left:g.right,right:g.left}:g,defaultMargins:u?{...m,left:m.right,right:m.left}:m}}var gc=65536;function Xz(e,t){if(e.length>gc)return;let n=new Array(e.length+1).fill(0),r=Ye(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 Yz(e,t,n,r,o){if(e.length>gc||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+pc(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+pc(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 pc(e){let t=0;for(let n=0;n<e.length;n++)e[n]===" "&&t++;return t}var PP=new WeakMap;function RP(e,t,n){let r=PP.get(n);r||(r=new WeakMap,PP.set(n,r));let o=r.get(e),a=_e(e.style,e.fontSlot),i=nn(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 p=0;o=f.map((m,g)=>g===0?0:(p=Math.max(p,Math.min(l,Number.isFinite(m)?m:p)),g===i.length?l:p));}}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=nn(e.text.slice(0,s),a);if(o)return o[d.length]??l;let c=a.shaping?.wordSpacingPt??0,u=Math.max(0,l-pc(i)*c);return Math.max(0,Math.min(l,u*d.length/Math.max(1,i.length)+pc(d)*c))}function er(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}}var MP=8;function Lm(e,t){return t?{...t,caret:xi(e,t.caret)}:null}var wP=new WeakMap;function yc(e){let t=wP.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 p of f.lines)o.set(p.range.paragraphId,p.id);continue}for(let p of f.rows){if(!p.isHeaderRepeat&&!r.has(p.id)){let m=a.get(f.tableId)??0;r.set(p.id,m),a.set(f.tableId,m+1);}for(let m of p.cells){if(!p.isHeaderRepeat&&!u){let g=`${f.tableId}|${m.gridColumn}`;if(m.blocks.length===0){let h=l.get(g);h&&i.set(m,h);}else l.set(g,{row:p,cell:m});}s(m.blocks,u||p.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 wP.set(e,d),d}function bc(e,t){let n=yc(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 dW(e,t){let n=e.pages[bc(e,t.y)];if(!n)return false;for(let r of [n.header,n.footer])if(r&&Si(r.box,t))return true;return false}function Em(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||!Ml(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 Am(e,t,n,r={}){let o=e.pages[t];if(!o)return null;let a={layout:e,pageIndex:o.index,verticalWeight:r.verticalWeight??MP,measurer:r.measurer},i=kP(e,o.index,n),l=(o.anchoredDrawings??[]).filter(f=>!f.behindDocument),s=(o.anchoredDrawings??[]).filter(f=>f.behindDocument),d=Em(l,n,a.pageIndex);if(d)return {...d,contentControlId:i};let c=Lm(e,hc(o.fragments,n,a,null));if(c?.onGlyphs)return {...c,contentControlId:i};let u=Em(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 p of [t-f,t+f]){let m=e.pages[p];if(!m)continue;let g=Lm(e,hc(m.fragments,n,{...a,pageIndex:m.index},null));if(g)return {...g,contentControlId:kP(e,m.index,n)}}return null}function cW(e,t,n,r,o={}){let a=e.pages[t];if(!a)return null;let i={layout:e,pageIndex:a.index,verticalWeight:o.verticalWeight??MP,measurer:o.measurer};return Lm(e,hc(n,r,i,null))}function uW(e,t,n={}){let r=e.pages[bc(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=Em(o.anchoredDrawings,a,r.index);if(i)return i}return Am(e,r.index,{x:t.x-r.contentBox.x,y:t.y-r.contentBox.y},n)}function Si(e,t){return t.x>=e.x&&t.x<e.x+e.width&&t.y>=e.y&&t.y<e.y+e.height}function Dm(e,t,n){let r=e.contentControls??[],o=null;for(let a of r)for(let i of a.fragments)i.pageIndex===t&&Si(i.box,n)&&(!o||a.nestingDepth>o.nestingDepth)&&(o=a);return o}function kP(e,t,n){return Dm(e,t,n)?.id??null}function Nm(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 $C(e,t,n){return e.kind!=="table"||Math.max(e.box.y-t.y,0,t.y-(e.box.y+e.box.height))>0?Nm(e.box,t,n):0}function hc(e,t,n,r){if(e.length===0)return null;if(e.some(i=>i.kind==="paragraph"&&i.outOfFlow&&Si(i.box,t)))for(let i=e.length-1;i>=0;i-=1){let l=e[i];if(!Si(l.box,t))continue;let s=Cm(l,t,n,r);if(s)return s}let o=null;for(let i of e){if(!Si(i.box,t))continue;o=i;let l=Cm(i,t,n,r);if(l)return l;break}let a=e.filter(i=>i!==o).map(i=>({block:i,score:$C(i,t,n.verticalWeight)})).sort((i,l)=>i.score-l.score);for(let{block:i}of a){let l=Cm(i,t,n,r);if(l)return l}return null}function Cm(e,t,n,r){return e.kind==="paragraph"?KC(e,t,n,r,Si(e.box,t)):QC(e,t,n)}function KC(e,t,n,r,o){if(e.clipToBox&&!o)return null;let a=XC(e.lines,t.y);if(!a)return null;let i=ZC(a,t.x,t.y,n),l=UC(a,t.x),s=Math.min(Math.max(i.offset,l.start),l.end),d={paragraphId:l.paragraphId,offset:s},c=Ll(a,s,n.measurer,l),u=er({...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?YC(i.drawing):null}:null}function XC(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 YC(e){return Object.freeze({drawingNodeId:e.drawingNodeId,paragraphId:e.paragraphId,start:e.start})}function UC(e,t){let n=gt(e),r=nf(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 qC(e,t,n){for(let r of n??e.drawings??[])if(r.start===t||r.start+1===t)return r;return null}function Ml(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:xf(t.x,t.y,e.geometry)}function ZC(e,t,n,r){let o=e.spans;for(let d of e.drawings??[])if(Ml(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 Mm(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:Ml(u,{x:t,y:n}),drawing:u}}}if(o.length===0)return {offset:e.range.start,x:e.contentX,withinSpan:false};let a=nf(o,t);if(a){let d=OP(a,Math.max(a.box.x,Math.min(t,a.box.x+a.box.width)),r),c=gt(e).find(p=>p.paragraphId===a.range.paragraphId),u=Vh(e,c),f=Math.min(d.offset,BP(r.layout,u));return f===d.offset?d:{...d,offset:f,x:Ll(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 Mm(e,s,r);for(let d of o)if(t>=d.box.x&&t<d.box.x+d.box.width)return OP(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=Ml(u,{x:t,y:n}),p=t>=u.x+u.width/2;return {offset:p?u.start+1:u.start,x:p?u.advanceEnd:u.advanceStart,withinSpan:f,drawing:u}}if(!(u.start<=c.range.start&&u.hitBounds.x+u.hitBounds.width<=c.box.x)){if(Ml(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 Mm(e,s,r)}function Mm(e,t,n){let r=BP(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?Bl(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 BP(e,t){let n=t.range.end;if(n>t.range.start&&Bm(t,n-1)===chunkFBWBSHC4_cjs.Td)return n-1;if(yc(e).lastLineIdOfParagraph.get(t.range.paragraphId)===t.id)return n;let r=n;for(r>t.range.start&&Bm(t,r-1)===`
17
+ `&&(r-=1);r>t.range.start&&Bm(t,r-1)===" ";)r-=1;return r}function Bm(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 vP=new WeakMap,TP=new WeakMap;function IP(e){let t=Ws(),n=vP.get(e);if(n&&n.epoch===t)return n.boundaries;let r=[0];for(let o of Ye(e.text))r.push(o.utf16To);return r[r.length-1]!==e.text.length&&r.push(e.text.length),vP.set(e,{epoch:t,boundaries:r}),r}function Bl(e,t,n){let r=e.caretEdges;if(r&&t>=0&&t<r.length)return r[t];if(e.style.shaping)return RP(e,t,n);let o=TP.get(n);o||(o=new WeakMap,TP.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:qe(e.text.slice(0,t),_e(e.style,e.fontSlot),n),s=e.lineEndWhitespace?Math.min(l,e.box.width):l;return a.set(t,s),s}function _m(e){return e.text===" "||e.projected?true:e.text.length!==e.range.end-e.range.start}function tr(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||_m(e)?a(e.box.width*(o/r)):a(Bl(e,o,n))}function Ll(e,t,n,r){let o=qC(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&&_m(c)){i=u;break}if(u&&u.range.start===t){let f=tt(Cn(c.text)??0)||tt(u.text.codePointAt(0)??0),p=u.box.x-(c.box.x+c.box.width)-(u.wrapAdvanceBefore??0);if(c.text.endsWith(" ")&&p>.25||f&&p>.001){i=u;break}}i=c;}else t>c.range.end&&(i=c);}let l=tr(i,t,n),s=n?.lineMetrics(_e(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-yh(i.style),height:s.height}}function OP(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||_m(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),b=IP(e),x=b[0],y=Number.POSITIVE_INFINITY;for(let O of b){let S=Math.abs(O-h);S<y&&(y=S,x=O);}return {offset:e.range.start+x,x:a(e.box.width*(x/i)),withinSpan:true}}let l=IP(e),s=1,d=l.length-1;for(;s<d;){let g=s+d>>1;Bl(e,l[g],n.measurer)<o?s=g+1:d=g;}let c=l[s],u=l[s-1],f=Bl(e,c,n.measurer),p=Bl(e,u,n.measurer),m=o-p<=f-o;return {offset:e.range.start+(m?u:c),x:a(m?p:f),withinSpan:true}}function FP(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 JC(e,t,n,r){return {tableId:t.tableId,rowId:n.id,cellId:r.id,rowIndex:yc(e).rowIndexById.get(n.id)??0,gridColumn:r.gridColumn,gridSpan:r.gridSpan}}function QC(e,t,n,r){let o=e.rows.filter(d=>!d.isHeaderRepeat),a=o.length>0?o:e.rows,i=[],l=FP(a,t.y,d=>d.box.y,d=>d.box.height);if(l){let d=FP(l.cells,t.x,c=>c.box.x,c=>c.box.width);d&&i.push(eM(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:Nm(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=JC(n.layout,e,d,c),f=c.textDirection==="btLr"?rP(t,c.box):t,p=hc(c.blocks,f,n,u);if(p)return p}return null}function eM(e,t,n){return n.blocks.length>0?{row:t,cell:n}:yc(e.layout).mergeOriginOf.get(n)??{row:t,cell:n}}function LP(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 tM(e,t,n){for(let r of t.lines)for(let o of r.drawings??[])if(o.drawingNodeId===n)return LP(e,o);return null}function EP(e,t,n){if(t.kind==="paragraph")return tM(e,t,n);for(let r of t.rows)for(let o of r.cells)for(let a of o.blocks){let i=EP(e,a,n);if(i)return i}return null}function CP(e,t,n){for(let r of t){let o=EP(e,r,n);if(o)return o}return null}function fW(e,t){for(let n of e.pages){for(let o of n.anchoredDrawings??[])if(o.drawingNodeId===t)return LP(n.index,o);let r=CP(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=CP(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}function xc(e,t,n){return e.some(r=>r.spans.length>0||(r.drawings?.length??0)>0)?{}:{emptyParagraphStyle:t.length===0?Tn:Ae(t,n)}}function nr(e){return {...e,measuringOnly:true,collectAnchoredDrawings:void 0,publishAnchoredDrawings:void 0,deferAnchoredDrawings:void 0,onAnchorRepublish:void 0,onAnchorShift:void 0,anchorDeferOnly:true}}function NP(e){return e.publishAnchoredDrawings??e.collectAnchoredDrawings}function jm(e,t,n,r,o){let a=NP(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(Kr({paragraph:i.paragraph,paragraphId:i.paragraphId,paragraphBox:l,lines:d,drawingLayout:o.inlineDrawingLayout,frameBase:o.anchorFrameBase(),columnBox:o.columnBoxForParagraph?.(l)??l,cellBox:c,pageClip:o.pageContentClip(),measurer:o.measurer,...o.hostedStory?{layoutTextboxStory:o.hostedStory.layoutTextboxStoryFor}:{},...o.displayMode?{displayMode:o.displayMode}:{}}));}}function AP(e,t){let n=NP(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)jm(t,i,l,s,e);else if(r)for(let d of t)r(d);t.length=0;}}}}function Sc(e,t,n){let r=bb(e.tabStops,t),{left:o,hanging:a,firstLine:i}=e.indent;(a>0||i<0)&&o>0&&!r.stops.some(s=>s.positionPt===o)&&(r={...r,stops:[...r.stops,{positionPt:o,alignment:"left"}].sort((s,d)=>s.positionPt-d.positionPt)});let l=r===e.tabStops?e.tabStopsCacheToken:kd(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 Hm(e,t){return e?`${t.toFixed(3)}|${e}`:""}function DP(e,t){let n=Hm(t.exclusionToken,t.paragraphStartY),r=e;return n&&(r+=`\0excl:${t.columnIndex}|${n}`),t.startOffset>0&&(r+=`\0from:${t.startOffset}`),r}function Pc(e){let{formatting:t,styleCascade:n}=e;return _f(e.paragraph,e.paragraphId,e.indentLeft,e.available,e.measurer,e.cache,e.cacheKey,t.inheritedRunProperties,e.tabStops,e.pageContext,n?(r,o)=>si(r,o,n):void 0,{...e.flow,paragraphRtl:kt(t.props),lineSpacing:t.lineSpacing,typography:yd(t.props,n?.typography),equationCacheToken:e.producer,...n?{themeFonts:n.themeFonts}:{},markRunProperties:t.markRunProperties})}var _P=new WeakMap;function El(e){let t=Ob(e.borders);return t===""?"":`${t}@${e.indent.left},${e.indent.right}`}function zm(e,t,n){_P.set(e,{styleCascade:t.styleCascade,tableCellStyle:t.tableCellStyle,listItem:t.listItems?.get(e.id),key:n});}function nM(e,t){let n=t.listItems?.get(e.id),r=_P.get(e);if(r&&r.styleCascade===t.styleCascade&&r.tableCellStyle===t.tableCellStyle&&r.listItem===n)return r.key;let o=El(Vo(e,1,t.styleCascade,n,t.tableCellStyle,true));return zm(e,t,o),o}function jP(e,t){return e&&e.kind==="paragraph"?nM(e,t):""}function HP(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 Rc(e,t,n,r,o,a){return Kx(e&&HP(e,a),a&&e?{...t,left:t.right}:t,n,r,o)}function wc(e,t,n,r=0,o){if(!e||!e.markerText||!n)return;let a=t.measure(e.markerText,e.markerStyle),i=Yf(HP(e,o!==void 0),a,n.y,n.height);if(i)return {text:e.markerText,style:e.markerStyle,box:{x:r+(o===void 0?i.x:o-i.x-i.width),y:i.y,width:i.width,height:i.height},level:e.ilvl,numId:e.numId,numFmt:e.numFmt,...e.ordinal===void 0?{}:{ordinal:e.ordinal}}}function rM(e){let t=[0],n=0;for(let r of e)n+=r,t.push(n);return t}function oM(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 Al(e,t,n,r){return {...e,nestingDepth:n,columnEdges:e.columnEdges??rM(t),rows:e.rows.map(o=>oM(o,r))}}var zP=new WeakMap,WP=new WeakMap;function aM(e){let t=WP.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 WP.set(e,n),n}var Pi=4,Wm=6,VP=14,iM={rowDivider:4,columnDivider:4,rightEdge:4,insertRow:3,insertColumn:3,tableBody:0};function Vm(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)Vm(s.blocks,t,n,i+1,o);}}}function MW(e){let t=zP.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);};Vm(a.fragments,o,a.contentBox,0,i);for(let l of [a.header,a.footer])l&&Vm(l.fragments,o,l.box,0,i);}let r=Object.freeze({sourceRevision:e.revision,occurrences:Object.freeze(n)});return zP.set(e,r),r}function BW(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 LW(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 EW(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=Nl(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 Nl(e,t){for(let n of e.cells)if(n.gridColumn===t)return n.gridColumnId??null;return null}function lM(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<-Pi||u<-VP||c>d.box.width+Pi||u>d.box.height+Wm?null:{x:c,y:u}}function sM(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)<=Pi)&&n>=0&&n<=o.box.width&&Math.abs(r-a)<=Pi)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||aM(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)>Pi)continue;let c=Nl(t.row,s-1),u=Nl(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)<=Pi){let s=o.columnEdges.length-2,d=Nl(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 NW(e,t,n,r,o=0,a){let i=a??bc(r,n),l=i>=0?o:0,s=null,d=-1,c=-1,u=f=>{if(!f)return;let p=iM[f.kind];f.nestingDepth<d||f.nestingDepth===d&&p<=c||(d=f.nestingDepth,c=p,s=f);};for(let f of e.occurrences){if(i>=0&&f.pageIndex!==i)continue;let p=lM(r,f,t,n,l);if(!p||(u(sM(e,f,p.x,p.y)??{kind:"tableBody",pageIndex:f.pageIndex,sourceRevision:e.sourceRevision,tableId:f.table.tableId,nestingDepth:f.nestingDepth,editable:f.editable}),!f.editable))continue;let m=f.row.box.y-f.table.box.y;p.x<=Wm&&Math.abs(p.y-(m+f.row.box.height/2))<=f.row.box.height/2+Wm&&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],b=f.table.columnEdges[g+1],x=(h+b)/2;if(Math.abs(p.x-x)>(b-h)/2+2||p.y>VP)continue;let y=Nl(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}var GP=1048576;function Jo(e=GP){let t=e|0;return {cellsRemaining:t>0?t:0}}function kc(e,t,n,r){let o=new Map,a=new Map,i=r?.pageFragment===true,l=i?new Set:null,s=i,c=p=>{let m=a.get(p);m&&(o.set(m.id,m.span),a.delete(p));},u=()=>n!==void 0&&n.cellsRemaining<=0,f=()=>{for(let p of [...a.keys()])c(p);};for(let p of e){if(u()){f();break}s&&p.isHeaderRepeat!==true&&(s=false,f(),l?.clear());let m=new Set,g=false;for(let h of p.cells){if(n){if(n.cellsRemaining<=0){g=true;break}n.cellsRemaining-=1;}let b=Math.max(0,Math.min(h.gridColumn|0,1023));if(m.add(b),h.vMergeContinue){let x=a.get(b);x?x.span+=1:l&&!l.has(b)&&(a.set(b,{id:h.id,span:1}));}else c(b),a.set(b,{id:h.id,span:1});l?.add(b);}if(g){f();break}for(let h of [...a.keys()])m.has(h)||c(h);}return f(),o}var vc=.001;function dM(e,t){return {...e,height:{rule:"auto"},cells:[t]}}function cM(e){let t=kc(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 uM(e,t){if(e.length===0||!e.some(w=>w.cells.some(k=>k.vMergeContinue)))return null;let{heads:n,headIdsByRow:r}=cM(e);if(n.length===0)return null;let o=new Map(n.map(w=>[w.span,w])),a=new Map;for(let w of n){let k=a.get(w.span.headRow);k?k.push(w.span):a.set(w.span.headRow,[w.span]);}for(let w of a.values())w.sort((k,I)=>I.endRow-k.endRow);let i=new Map,l=new Map,s=new Map,d=new Map,c=new Set,u=new Set,f=new Set,p=new Set,m=new Map,g=new Map,h=(w,k,I)=>{let P=new Set;for(let V of r.get(w)??[])(f.has(V)||V===k)&&P.add(V);let F=I===void 0?"":`@${I.toFixed(2)}`,E=`${w}${F}\0${[...P].sort().join("\0")}`,_=i.get(E);if(_!==void 0)return _;let z=t(e[w],P,I);return i.set(E,z),z},b=(w,k)=>{let I=k===void 0?w:`${w.headCellId}@${k.toFixed(2)}`,P=l.get(I);if(P!==void 0)return P;let F=o.get(w),E=t(dM(e[w.headRow],F.cell),void 0,k);return l.set(I,E),E},x=(w,k,I)=>h(w,k,I)+(s.get(w)??0),y=w=>{for(let k=w.headRow+1;k<=w.endRow;k+=1)if(r.has(k))return true;return false},O=(w,k)=>{let I=0;for(let P=w.headRow;P<=w.endRow;P+=1)I+=x(P,w.headCellId,k===void 0?void 0:k+I);return I},S=(w,k)=>{let I=new Map,P=0;for(let F=w.headRow;F<=w.endRow;F+=1){let E=x(F,w.headCellId,k===void 0?void 0:k+P);I.set(F,E),P+=E;}return I},T=w=>{for(let k=w.endRow;k>=w.headRow;k-=1)if(e[k].height.rule!=="exact")return k},R=(w,k)=>{if(y(w)||p.has(w.headRow)&&!u.has(w))return Number.POSITIVE_INFINITY;let I=O(w,k);return T(w)===void 0?I:Math.max(I,b(w,k))};return {spansAt:w=>a.get(w)??[],heightOf:R,accept:(w,k)=>{if(u.has(w)||y(w)||p.has(w.headRow))return;let I=S(w,k),P=0;for(let z of I.values())P+=z;let F=T(w),E=b(w,k);if(F===void 0&&E>P+vc)return;let _=F===void 0?0:E-P;u.add(w),f.add(w.headCellId),p.add(w.headRow),_>vc&&(s.set(F,(s.get(F)??0)+_),I.set(F,(I.get(F)??0)+_));for(let[z,V]of I)c.add(z),d.set(z,Math.max(d.get(z)??0,V));m.set(w,k),g.set(w,_>vc?F:void 0);},withdrawAt:w=>{for(let k of a.get(w)??[]){if(!u.delete(k))continue;f.delete(k.headCellId),p.delete(k.headRow),m.delete(k);let I=g.get(k);I!==void 0&&s.delete(I),g.delete(k);for(let P=k.headRow;P<=k.endRow;P+=1)c.delete(P),d.delete(P);}},rowOptions:w=>{if(!c.has(w))return;let k;for(let I of a.get(w)??[])u.has(I)&&(k??=new Map,k.set(I.headCellId,R(I,m.get(I))));return {...k?{detachedSpanHeightPtByCellId:k}:{},heightFloorPt:d.get(w)??x(w)}}}}function $P(e,t,n,r){for(let o of e?.spansAt(t)??[])n+e.heightOf(o,n)>r+vc||e.accept(o,n);return e?.rowOptions(t)}function KP(e,t,n,r,o){return uM(e.rows,(a,i,l)=>o(a,e.columnWidthsPt,typeof t=="function"?t():t,n,r,e.cellSpacingPt,i?{detachedSpanHeightPtByCellId:new Map([...i].map(s=>[s,Number.POSITIVE_INFINITY]))}:void 0,l))}function XP(e,t,n){for(let r of e?.spansAt(t)??[])e.accept(r,n);return e?.rowOptions(t)}function no(e,t,n=false){let r=Rr(t.left),o=Rr(t.right),a=[t.left,t.right].every(l=>l.state!=="edge"||l.style==="single"||l.style==="thick"),i=n&&a&&e.left>=r&&e.right>=o;return {top:e.top+Rr(t.top),right:e.right+(i?0:o),bottom:e.bottom+Rr(t.bottom),left:e.left+(i?0:r)}}function fM(e,t,n){return {top:t?{state:"none"}:e.top,left:e.left,bottom:n?{state:"none"}:e.bottom,right:e.right}}function Tc(e,t,n){return !t&&!n?e:{...e,cells:e.cells.map(r=>({...r,borders:fM(r.borders,t,n)}))}}function mM(e,t,n,r){if(!(!r.onAnchorRepublish||!r.inlineDrawingLayout||!r.anchorFrameBase||!r.pageContentClip))for(let o of e){if(o.kind!=="paragraph")continue;let a=t.find(l=>l.kind==="paragraph"&&l.id===o.paragraphId);!a||a.kind!=="paragraph"||Vt(a,r.inlineDrawingLayout).length===0||r.onAnchorRepublish(o.paragraphId,Kr({paragraph:a,paragraphId:o.paragraphId,paragraphBox:o.box,lines:o.lines,drawingLayout:r.inlineDrawingLayout,frameBase:r.anchorFrameBase(),columnBox:r.columnBoxForParagraph?.(o.box)??o.box,cellBox:n,pageClip:r.pageContentClip(),measurer:r.measurer,...r.hostedStory?{layoutTextboxStory:r.hostedStory.layoutTextboxStoryFor}:{},...r.displayMode?{displayMode:r.displayMode}:{}}));}}function Ri(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:Ri(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}}}:{},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=>Yn(o,0,t))}:{}}))})}function wi(e,t,n,r,o,a,i,l,s){if(e.length===0)return [];let d=new Map;for(let b of n)for(let x of b.cells)d.set(x.id,x);let c=kc(e,a,o,{pageFragment:true}),u=e.map((b,x)=>({...b,cells:b.cells.map(y=>{let O=c.get(y.id);if(y.vMergeContinue&&O===void 0)return {...y,paintInert:true,rowSpan:1,borders:{},blocks:[]};let S=y.vMergeContinue,T=O??1,R=y.box.height;if(T>1){let P=e[x+T-1];R=P.box.y+P.box.height-y.box.y;}let w=d.get(y.id),k=y.blocks;if(w&&w.vAlign!=="top"&&k.length>0){let P=s?.get(b)?.get(y.id)??no(w.margins,w.borders,w.legacyContentAlignment===true&&t.cellSpacingPt===0),F=Number.POSITIVE_INFINITY,E=Number.NEGATIVE_INFINITY;for(let _ of k)F=Math.min(F,_.box.y),E=Math.max(E,_.box.y+_.box.height);if(Number.isFinite(F)&&Number.isFinite(E)){let _=w.textDirection==="btLr",z=(_?y.box.width-P.left-P.right:R-P.top-P.bottom)-(E-F),j=y.box.y+(_?P.left:P.top)+(z>0?w.vAlign==="center"?z/2:z:0)-F;if(Math.abs(j)>.001){k=Ri(k,j);for(let M of k)M.kind==="paragraph"&&i?.(M.paragraphId,j);}}}let I=Object.freeze({x:y.box.x,y:y.box.y,width:y.box.width,height:R});return w&&l&&(T>1||w.vAlign!=="top"&&k.length>0)&&mM(k,w.blocks,I,l),{...y,...S?{vMergeContinue:false,paintInert:false}:{},rowSpan:T,blocks:k,box:{...y.box,height:R}}})})),f=u.map(b=>b.cells.map(x=>{let y=d.get(x.id);return {gridColumn:x.gridColumn,gridSpan:x.gridSpan,vMergeContinue:x.vMergeContinue,borders:y?.borders??{top:{state:"omitted"},left:{state:"omitted"},bottom:{state:"omitted"},right:{state:"omitted"}},mergeRowSpan:x.rowSpan??1}})),p=t.columnWidthsPt.length,m=t.tableBorders,g={columnWidthsPt:t.columnWidthsPt,rowBands:u.map(b=>({y:b.box.y,height:b.box.height})),cellBoxes:u.map(b=>b.cells.map(x=>({width:x.box.width,height:x.box.height})))},h=dc(f,m,p,g,void 0,r);return u.map((b,x)=>({...b,cells:b.cells.map((y,O)=>{let S=h[x][O];return y.paintInert||y.vMergeContinue?{...y,borders:{},paintInert:true}:{...y,borders:S}})}))}function Gm(e,t,n,r,o,a){let i=new Map,l=0,s=d=>{let c=Gt(d,t,0,n,r,o,a);if(c)for(let u of c.rows)for(let f of u.cells)for(let p of f.blocks)p.localName==="p"?i.set(p.id,l++):p.localName==="tbl"&&s(p);};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 $m=4096,YP=1,rr=class extends Error{code;constructor(t,n){super(n),this.name="TablePaginationError",this.code=t;}};function Km(e){return e.cells.map(()=>({blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0,precededByEmittedTable:false}))}function Dl(e,t,n){let r=0;for(let o=t;o<n&&o<e.length;o+=1)r+=e[o];return r}function pM(e,t,n,r,o,a,i){let l=e.id,s=o.cache?.keyFor?.bind(o.cache)??md,d=o.listItems?.get(l),c=Vo(e,n,o.styleCascade,d,i?.tableCellStyle,true),{props:u,indent:f,available:p,alignment:m,styleId:g,outlineLevel:h,spacing:b,bottomBorder:x,borders:y,shading:O}=c,S=kt(u),T={styleCascade:o.styleCascade,tableCellStyle:i?.tableCellStyle,listItems:o.listItems},R=El(c);zm(e,T,R);let w=Le=>R!==""&&jP(Le,T)===R,k=w(i?.borderNeighbours?.previous),I=w(i?.borderNeighbours?.next),P=k?void 0:y.top,F=I?y.between:x,{tabStops:E,properties:_}=Sc(c,o.defaultTabStopPt,{listToken:d?.cacheToken,hostedListToken:o.hostedStory?.hostedListTokenForParagraph?.(e)??"",refToken:o.refFields?.tokenForParagraph(l)??""}),z=Rc(d,f,o.measurer,E,p,S),V=o.pageExclusionZones?.()??Object.freeze([]),j=o.paragraphOrderIndex?.(l)??Number.MAX_SAFE_INTEGER,M=o.paragraphOrderIndex?ox(V,j,Le=>o.paragraphOrderIndex?.(Le)):V,B=_d(M,t,0,{left:0,right:f.left+p+f.right}),A=Un(B),D=Hm(A,r),H=s({paragraph:e,properties:_,width:p,producer:o.producer,drawingToken:Qi(o.drawingTokenForParagraph?.(e)||o.drawingLayoutToken||"",o.inlineDrawingLayout!==void 0),projectionToken:o.projectionTokenForParagraph?.(e)??"",...D?{exclusionToken:D}:{}});o.cache&&o.onCellBreakKey?.(H);let K=Pc({paragraph:e,paragraphId:l,indentLeft:f.left,available:p,measurer:o.measurer,cache:o.cache,cacheKey:o.cache?H:null,formatting:c,producer:o.producer,styleCascade:o.styleCascade,tabStops:E,...o.pageContext?{pageContext:o.pageContext}:{},flow:{firstLineOffset:z,marginExtent:{left:0,right:f.left+p+f.right},...o.projectLink?{projectLink:o.projectLink}:{},...o.projectFieldLink?{projectFieldLink:o.projectFieldLink}:{},...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:f.left+p+f.right,paragraphStartY:r,anchorCellBox:Object.freeze({x:0,y:0,width:f.left+p+f.right,height:Math.max(1,p)}),...B.length>0?{pageExclusionZones:B}:{}}}),$=i?.lineStart??0,v=i?.fragmentIndex??0,Y=i?.maxBottom??Number.POSITIVE_INFINITY,U=i?.includeAfter??true,X=i?.includeBottomBorder??true,ee=()=>d!==void 0||o.displayMode==="all-markup"&&dy(e,"all-markup",o.revisionAuthorFilter),W=(i?.collapseHeight??false)&&!ee(),ne=$===0&&!W?Ua(b.before,a):0,ye=t+f.left,le=$===0&&!W?_o(P):0,ve=[],q=r+ne+le,Pe=$,Te=false;for(let Le=$;Le<K.length;Le+=1){let N=K[Le],C=Le===K.length-1,re=C&&X&&F&&!W?_o(F):0,se=C&&U&&!W?b.after:0,Re=W?0:Af(N,q,B);if((W?q:q+Re+N.height+re+se)>Y+.001)break;q+=Re;let pe=t+f.left+(Le===0&&!S?z:0),fe=Math.max(1,p-(Le===0?z:0)),Je=N.spans.map(Nt=>({...Nt,range:{...Nt.range,paragraphId:l},box:{...Nt.box,x:Nt.box.x+t-(S&&Le===0?z:0),y:q}})),Et=ol(Je,o.measurer,pe,fe,m,C,m==="center"||m==="right"?N.width:void 0,S),Ke=Je.length>0&&Et.length>0?Et[0].box.x-Je[0].box.x:m!=="left"&&m!=="both"?(()=>{let Nt=fe-N.width;return Nt<=0?0:m==="center"?Nt/2:Nt})():0,Sn=Object.freeze({x:t,y:r,width:n,height:Math.max(0,Y-r)}),Pn=gl(N.drawings.map(Nt=>Dd(Object.freeze({...Yn(Nt,t,q),paragraphId:l}),Sn)),Ke);ve.push({id:o.nextLineId(l,N.start,Le),range:{paragraphId:l,start:N.start,end:N.end},spans:Et,...Pn.length>0?{drawings:Pn}:{},box:{x:t+f.left,y:q,width:p,height:W?0:N.height},contentX:fd(Et,pe+Ke),baseline:W?Math.max(0,Math.min(N.baseline,i?.collapseBandAbove??0)):N.baseline,leading:W?0:N.leading,trailingSpacing:W?0:N.trailingSpacing,...N.manualBreakAfter?{manualBreakAfter:true}:{},...N.deletedRanges?{deletedRanges:N.deletedRanges}:{},...N.anchorRevisions?{anchorRevisions:N.anchorRevisions}:{}}),W||(q+=N.height),Pe=Le+1,Te=true;}if(!Te)return {fragment:null,bottom:r,spaceAfter:a,nextLineIndex:$,complete:false,fitted:false};let ae=Pe>=K.length,Ce=ve[0].box.y,me=q,Se=[],We,Me=Ce,Fe=me,ce=y.left?an(y.left):0,ht=y.right?an(y.right):0,Lt=y.left?ye-y.left.spacePt-ce:ye,En=y.right?ye+p+y.right.spacePt+ht:ye+p,ar=Math.max(En-Lt,0);if(le>0&&P){let Le=an(P),N=Ce-P.spacePt-Le;Se.push({side:"top",edge:P,box:{x:Lt,y:N,width:ar,height:Le}}),Me=N;}if(ae&&X&&F&&!W){let Le=an(F),N=me+F.spacePt,C={x:Lt,y:N,width:ar,height:Le};I||(We={edge:F,box:C}),Se.push({side:I?"between":"bottom",edge:F,box:C}),Fe=N+Le;}let Be=ae&&U&&!W?b.after:0,ir=k&&$===0?r:Me,Ge=I&&ae?Fe+Be:Fe,Dt=Math.max(Ge-ir,0);if(y.left&&Se.push({side:"left",edge:y.left,box:{x:ye-y.left.spacePt-ce,y:ir,width:ce,height:Dt}}),y.right&&Se.push({side:"right",edge:y.right,box:{x:ye+p+y.right.spacePt,y:ir,width:ht,height:Dt}}),y.bar){let Le=an(y.bar);Se.push({side:"bar",edge:y.bar,box:{x:ye-y.bar.spacePt-Le,y:Ce,width:Le,height:Math.max(me-Ce,0)}});}let _t=Fe+Be,$t=O===void 0?void 0:y.left||y.right?{x:Lt,y:Me,width:ar,height:Math.max(Fe-Me,0)}:Ds(ve,ye,p),dn=ae&&o.displayMode==="all-markup"?rd(e,"all-markup",o.revisionAuthorFilter):null,so=dn?.revisions??[],co=dn?.formatRevision??null,Tt=$===0?wc(d,o.measurer,ve[0]?{y:ve[0].box.y,height:ve[0].box.height}:void 0,t,S?f.left+p+f.right:void 0):void 0,xn=zr(e),jt=xn?cd(ve,Wa(xn)):ve,yt={kind:"paragraph",id:`${l}#f${v}`,...ae?{paragraphEnd:true}:{},paragraphId:l,fragmentIndex:v,range:{paragraphId:l,start:jt[0].range.start,end:jt[jt.length-1].range.end},props:u,styleId:g,outlineLevel:h,alignment:m,spacing:{before:ne,after:Be},indent:f,tabStops:E,...We?{bottomBorder:We}:{},...Se.length>0?{borders:Se}:{},...O===void 0?{}:{shading:O},...$t===void 0?{}:{shadingBox:$t},...Tt?{marker:Tt}:{},...od(so,co),lines:jt,...xc(jt,c.markRunProperties,o.styleCascade?.themeFonts),box:{x:ye,y:r,width:p,height:_t-r}};if(o.inlineDrawingLayout&&o.anchorFrameBase&&o.pageContentClip){let Le=Object.freeze({x:t,y:r,width:n,height:Math.max(0,Y-r)}),N=yt.box,C={paragraph:e,paragraphId:l,paragraphBox:N,lines:jt};o.deferAnchoredDrawings?o.deferAnchoredDrawings({...C,cellOriginX:t,cellContentWidth:n}):o.collectAnchoredDrawings&&o.collectAnchoredDrawings(Kr({paragraph:e,paragraphId:l,paragraphBox:N,lines:jt,drawingLayout:o.inlineDrawingLayout,frameBase:o.anchorFrameBase(),columnBox:o.columnBoxForParagraph?.(N)??N,cellBox:Le,pageClip:o.pageContentClip(),measurer:o.measurer,...o.hostedStory?{layoutTextboxStory:o.hostedStory.layoutTextboxStoryFor}:{},...o.displayMode?{displayMode:o.displayMode}:{},...o.revisionAuthorFilter?{revisionAuthorFilter:o.revisionAuthorFilter}:{}}));}return {fragment:yt,bottom:_t,spaceAfter:Be,nextLineIndex:Pe,complete:ae,fitted:true}}function Qo(e,t,n,r,o,a){let i=UP(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 UP(e,t,n,r,o,a,i,l,s,d=false){let c=[],u=r,f=l.previousSpaceAfter,p=l.blockIndex,m=l.lineIndex,g=l.paragraphFragmentIndex,h=false,b=false,x=l.precededByEmittedTable;for(;p<e.length;){let y=e[p];if(y.kind==="table"){m!==0&&(m=0),f=0;let T=hM(y,t,n,u,a+1,i);if(!T){x=false,p+=1;continue}if(T.bottom>o+.001){b=!h;break}c.push(T.fragment),u=T.bottom,h=true,x=true,p+=1,m=0;continue}if(y.kind!=="paragraph"){x=false,p+=1,m=0;continue}let O=d&&p===e.length-1&&x&&ES(y),S=pM(y,t,Math.max(1,n-t),u,i,f,{lineStart:m,fragmentIndex:g,maxBottom:o,includeAfter:true,includeBottomBorder:true,collapseHeight:O,collapseBandAbove:u-r,...s?{tableCellStyle:s}:{},borderNeighbours:{previous:p>0?e[p-1]:void 0,next:e[p+1]}});if(!S.fitted||!S.fragment)break;if(c.push(S.fragment),u=S.bottom,h=true,S.complete)f=S.spaceAfter,x=false,p+=1,m=0,g=0;else return {blocks:c,bottom:u,cursor:{blockIndex:p,lineIndex:S.nextLineIndex,previousSpaceAfter:0,paragraphFragmentIndex:g+1,precededByEmittedTable:x},complete:false,fitted:true,nestedSplitBlocked:false}}return {blocks:c,bottom:u,cursor:{blockIndex:p,lineIndex:m,previousSpaceAfter:f,paragraphFragmentIndex:g,precededByEmittedTable:x},complete:p>=e.length,fitted:h,nestedSplitBlocked:b}}function or(e,t,n,r,o,a,i,l=0,s,d=Number.POSITIVE_INFINITY){return _l(e,t,n,r,Number.POSITIVE_INFINITY,o,false,a,i,Km(e),l,s,d)}function _l(e,t,n,r,o,a,i,l,s,d,c=0,u,f=o){let p=u?.detachedSpanHeightPtByCellId,m=Dl(t,0,t.length),g=Number.isFinite(c)&&c>0?c/2:0,h=s.measurer.lineMetrics(Tn).height,b=e.height,x=b.rule==="exact"?b.valuePt:void 0,y=b.rule==="atLeast"?b.valuePt:void 0,O=[],{rowDeps:S,flushDeferred:T}=AP(s,O),R=a&&s.pageOccurrenceKey?{...S,nextLineId:(M,B,A)=>S.nextLineId(M,B,A,s.pageOccurrenceKey())}:S,w=x===void 0?o:Math.min(o,r+Math.max(0,x)),k=[],I=false,P=false,F=r;for(let M=0;M<e.cells.length;M+=1){let B=e.cells[M],A=d[M]??{blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0,precededByEmittedTable:false},D=B.gridSpan,H=B.gridColumn,K=n+Dl(t,0,H),$=Dl(t,H,Math.min(H+D,t.length))||m,v=Math.min(g,Math.max(($-YP)/2,0)),Y=K+v,U=Math.max($-2*v,YP),X=s.cellContentInsets?.get(B.id)??no(B.margins,B.borders,B.legacyContentAlignment===true&&c===0),ee=i?Rr(B.borders.top):X.top,W=p?.get(B.id),ne=W!==void 0,ye=ne?Math.min(f,r+W):w,le=B.textDirection==="btLr",ve=le?Y+X.bottom:Y+X.left,q=le?Y+Math.max(0,ye-r)-ee:Y+U-X.right,Pe=le?r+X.left:r+ee,Te=le?r+U-X.right:ye-X.bottom,ae=[],Ce=Pe,me=A,Se=true,We=false,Me=false;if(!B.vMergeContinue)if(Te<Pe+.001)Se=A.blockIndex>=B.blocks.length;else {let ce=UP(B.blocks,ve,q,Pe,Te,l,R,A,B.styleFormatting,true);ae=ce.blocks,Ce=ce.bottom,me=ce.cursor,Se=ce.complete,We=ce.fitted,Me=ce.nestedSplitBlocked,We&&(I=true),Me&&(P=true);}let Fe=Math.min(ye,le&&We?r+ee+(nP(ae,ve)-ve)+X.bottom:We?Ce+X.bottom:r+ee+h+X.bottom);Fe>F&&!ne&&(F=Fe),k.push({cell:B,x:Y,width:U,gridColumn:H,blocks:ae,contentTop:Pe,contentBottom:Ce,physicalBottom:Fe,insets:{...X,top:ee},nextCursor:me,complete:B.vMergeContinue?true:Se,fitted:We,nestedSplitBlocked:Me});}F=Math.min(w,Math.max(F,r));for(let M of k){if(p?.has(M.cell.id)===true)continue;let B=M.physicalBottom;B>F&&B<=w+.001&&(F=B);}if(F<=r+.001&&k.length>0){let M=r;for(let B of k){let A=r+B.insets.top+h+B.insets.bottom;A>M&&(M=A);}F=Math.min(w,M);}F=Math.min(w,F);let E=false;if(x!==void 0){let M=r+x;M<=o+.001?(F=M,E=true):F=Math.min(o,F);}else {let M=i?0:u?.heightFloorPt??0,B=r+Math.max(y??0,M);B>F&&B<=o+.001&&k.every(D=>D.complete)&&(F=B);}F=Math.min(o,F);let _=Math.max(0,F-r),z=k.map(M=>{let B=M.blocks,A=E?true:M.complete;if(!M.cell.vMergeContinue&&A&&M.cell.vAlign!=="top"&&B.length>0){let D=M.contentBottom-M.contentTop,H=M.cell.textDirection==="btLr"?M.width-M.insets.left-M.insets.right-D:_-M.insets.top-M.insets.bottom-D;if(H>0){let K=M.cell.vAlign==="center"?H/2:H;B=Ri(B,K);}}return {id:M.cell.id,gridColumn:M.gridColumn,...M.cell.logicalGridColumn===void 0?{}:{logicalGridColumn:M.cell.logicalGridColumn},...M.cell.gridColumnId?{gridColumnId:M.cell.gridColumnId}:{},gridSpan:M.cell.gridSpan,vMergeContinue:M.cell.vMergeContinue,...M.cell.vMergeContinue?{paintInert:true}:{},rowSpan:1,...M.cell.shading===void 0?{}:{shading:M.cell.shading},...M.cell.textDirection==="btLr"?{textDirection:"btLr"}:{},blocks:B,box:{x:M.x,y:r,width:M.width,height:_}}}),V=E||k.every(M=>M.complete)?null:k.map(M=>M.nextCursor),j=E||k.every(M=>M.complete);return T(z,r,_),{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}:{},rowIndex:0,isHeaderRow:e.isHeader,isHeaderRepeat:a,...i?{isContinuation:true}:{},cells:z,box:{x:n,y:r,width:m,height:_}},bottom:F,remainder:j?null:V,fitted:I||e.cells.every(M=>M.vMergeContinue)||E,nestedSplitBlocked:P}}function Xm(e,t,n,r,o,a=0,i,l){let s=0,d=l!==void 0,c={...nr(o),...d?{}:{pageExclusionZones:void 0},nextLineId:()=>`probe-${s++}`};return or(e,t,n,l??0,false,r,c,a,i).record.box.height}function gM(e,t,n,r,o,a,i,l,s){let d=u=>or(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 Ym=(e,t,n,r,o)=>r.measuringOnly===true?null:KP(o?{...e,rows:o}:e,t,n,r,Xm);function hM(e,t,n,r,o,a){if(o>=Fm)return null;let i=Math.max(1,n-t),l=Gt(e,i,o-(a.tableNestingOffset??0),a.styleCascade,a.displayMode,a.revisionAuthorFilter,a.compatibilityMode);if(!l||l.rows.length===0)return null;let s=[],d={...a,publishAnchoredDrawings:void 0,collectAnchoredDrawings:void 0,anchorDeferOnly:true,deferAnchoredDrawings:b=>{s.push(b);}},c=t+Ol(l,i),u=Ym(l,c,o,d),f=[],p=r;for(let[b,x]of l.rows.entries()){let y=s.length,O=gM(x,l,c,p,o,d,false,XP(u,b,p),()=>{s.length=y,u?.withdrawAt(b);});f.push(O.record),p=O.bottom;}let m=wi(f,l,l.rows,a.borderOwnershipBudget,a.vMergeResolveBudget,void 0,void 0,void 0);for(let b of s)for(let x of m)if(x.cells.some(O=>O.blocks.some(S=>S.kind==="paragraph"&&S.paragraphId===b.paragraphId))){jm([b],x.cells,x.box.y,x.box.height,a);break}let g=Dl(l.columnWidthsPt,0,l.columnWidthsPt.length),h=new Map;return {fragment:Al({kind:"table",id:`${e.id}#f0`,tableId:e.id,fragmentIndex:0,rows:m,box:{x:c,y:r,width:g,height:p-r}},l.columnWidthsPt,o,h),bottom:p}}function jl(e,t,n,r,o,a,i,l=()=>false){let s=[],d=n;for(let p of e.rows){let m=or(p,e.columnWidthsPt,t,d,l(p),a,i,e.cellSpacingPt);s.push(m.record),d=m.bottom;}let c=wi(s,e,e.rows,i.borderOwnershipBudget,i.vMergeResolveBudget),u=Dl(e.columnWidthsPt,0,e.columnWidthsPt.length),f=new Map;return {fragment:Al({kind:"table",id:`${o}#f${r}`,tableId:o,fragmentIndex:r,rows:c,box:{x:t,y:n,width:u,height:d-n}},e.columnWidthsPt,a,f),bottom:d}}var qP=new WeakMap,yM=0;function ZP(e){let t=qP.get(e.content);return t===void 0&&(t=++yM,qP.set(e.content,t)),J([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)])}function JP(e){let t=e.picture;return t?.embeddedRelationshipId?`embed:${e.ownerPartName}:${t.embeddedRelationshipId}`:t?.linkedRelationshipId?`link:${e.ownerPartName}:${t.linkedRelationshipId}`:`nonpicture:${e.drawingNodeId}`}var QP=new WeakMap,Um=new Map,bM=16,xM=32;function oR(e,t){let n=QP.get(e);if(n)return n;let r;if(e.kind==="drawing"||chunkFBWBSHC4_cjs.hb(e)||chunkFBWBSHC4_cjs.Sa(e))r={atoms:new Map([[e.id,e]]),visited:1,deepest:0};else if(!("children"in e)||e.children.length===0)r={atoms:Um,visited:1,deepest:0};else if((t<2||e.children.length>=bM)&&t<xM){let o=null,a=1,i=0;for(let l of e.children){let s=oR(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??Um,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>chunkFBWBSHC4_cjs.fb)break;s.depth>i&&(i=s.depth);let d=s.node;if(d.kind==="drawing"||chunkFBWBSHC4_cjs.hb(d)||chunkFBWBSHC4_cjs.Sa(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:Um,visited:a,deepest:i};}return QP.set(e,r),r}function qm(e){let t=oR(e.root,0);return t.visited>chunkFBWBSHC4_cjs.fb||t.deepest>chunkFBWBSHC4_cjs.db.maxDrawingDepth?null:t.atoms}var eR=new WeakMap;function aR(e,t){let n=eR.get(e.root),r=n?.get(t);if(r)return r;let o=qm(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 chunkFBWBSHC4_cjs.mb(e))a.set(l.drawingNodeId,i),i+=1;return n||(n=new WeakMap,eR.set(e.root,n)),n.set(t,a),a}var Zm=new Float64Array(1),Ic=new Uint32Array(Zm.buffer);function SM(e){Ln[0]=2166136261,Ln[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"),Jm(i,Ln);}let o=n.arrowheadsEmu;if(t.push(String(o?.length??0)),o)for(let a of o)t.push(String(a.length)),Jm(a,Ln);}return [String(e.extentEmu.cx),String(e.extentEmu.cy),String(e.components.length),t.join(","),Ln[0].toString(36),Ln[1].toString(36)].join(";")}var Ln=new Uint32Array(2);function PM(e){return Ln[0]=2166136261,Ln[1]=268435859,Jm(e,Ln),`${Ln[0].toString(36)}:${Ln[1].toString(36)}`}function Jm(e,t){let n=t[0],r=t[1];for(let o of e)Zm[0]=o.x,n=Math.imul(n^Ic[0],16777619),r=Math.imul(r^Ic[1],16777651),Zm[0]=o.y,n=Math.imul(n^Ic[1],16777619),r=Math.imul(r^Ic[0],16777651);t[0]=n,t[1]=r;}function Qm(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:J(e.diagnostics.map(l=>J([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:J([String(e.extentEmu.cx),String(e.extentEmu.cy)]),effectExtentEmu:J([String(e.effectExtentEmu.top),String(e.effectExtentEmu.right),String(e.effectExtentEmu.bottom),String(e.effectExtentEmu.left)]),inlineDistancesEmu:J([String(e.inlineDistancesEmu.top),String(e.inlineDistancesEmu.right),String(e.inlineDistancesEmu.bottom),String(e.inlineDistancesEmu.left)]),wrap:e.wrap,textboxStory:e.textboxStory?ZP(e.textboxStory):"",compatibilityBranchNodeId:e.compatibilityBranchNodeId??"",anchor:n?J([String(n.simplePos),String(n.relativeHeight),String(n.layoutInCell),String(n.allowOverlap),String(n.behindDocument)]):"",locks:J([String(e.locks.select),String(e.locks.move),String(e.locks.resize),String(e.locks.changeAspect)]),effects:J([String(e.effects.grayscale),String(e.effects.brightness),String(e.effects.contrast),String(e.effects.bilevel??"")]),picture:r?J([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?SM(a):"",wrapGeometry:o?J([o.element,o.textSide,String(o.distancesEmu.top),String(o.distancesEmu.right),String(o.distancesEmu.bottom),String(o.distancesEmu.left),String(o.polygon.length),PM(o.polygon)]):"",position:t?J([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 J(Object.values(i))}function Hl(e){switch(e.kind){case "ready":return J(["ready",e.resourceKey,e.contentId,`${e.pixelWidth}x${e.pixelHeight}`]);case "pending":return J(["pending",e.resourceKey]);case "external":return J(["external",e.relationshipId,e.sinkSafe?"1":"0"]);case "missing":return "missing";case "unrenderable":return `unrenderable:${e.reason}`;default:return e.kind}}var RM=1;function iR(e,t){if(e.kind==="paragraph"){for(let n of lR(e))t.push(n);return}if("children"in e)for(let n of e.children)iR(n,t);}function lR(e){if(e.kind!=="paragraph")return [];let t=[];return Nd(e,n=>t.push(n.id)),Object.freeze(t)}function wM(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,p=new WeakMap,m=new WeakMap,g=0,h=chunkFBWBSHC4_cjs.gb(r,t),b=chunkFBWBSHC4_cjs.bb(r),x=chunkFBWBSHC4_cjs.nb(n,{resolveRelationship:h,resolveSchemeColor:b.resolveSchemeColor,resolveStyleMatrixReference:b.resolveStyleMatrixReference}),y=qm(n),O=(I,P)=>{if(s||u.has(P))return;u.add(P);let F=d;o.resolveForProjection(I).then(E=>{s||F!==d||(c.set(P,E),E.kind==="ready"&&i(E.validatedHandle),g+=1,f.set(P,g),u.delete(P),a(t));}).catch(()=>{s||F!==d||(c.set(P,Object.freeze({kind:"unrenderable",partName:null,mime:"unknown",reason:"decode-failed"})),g+=1,f.set(P,g),u.delete(P),a(t));});},S=I=>{let P=JP(I),F=c.get(P);if(F)return F;let E=I.picture?.linkedRelationshipId;if(E){let z=o.resolveLinked(t,E);return c.set(P,z),g+=1,f.set(P,g),z}let _=Object.freeze({kind:"pending",resourceKey:P});return c.set(P,_),g+=1,f.set(P,g),O(I,P),_},T=I=>x.get(I)??null,R=Object.freeze({ownerPartName:t,projectionForAtom:T,project:I=>T(I.id),resourceOf:S}),w=I=>{let P=m.get(I);if(P)return P;let F=lR(I),E=null,_=(V,j)=>{if(!(j>=RM))for(let M of V){let B=x.get(M)?.textboxStory;if(!B)continue;let A=[];if(iR(B.content,A),A.length!==0){E||(E=[...F]);for(let D of A)E.push(D);_(A,j+1);}}};_(F,0);let z=E??F;return m.set(I,z),z};return {context:R,cacheTokenForPart:()=>`${t}|${g}|${d}|${x.size}`,drawingTokenForParagraph:I=>{let P=p.get(I);if(P?.resourceEpoch===g)return P.token;let F=w(I);if(F.length===0)return p.set(I,{resourceEpoch:g,token:""}),"";let E=F.map(z=>kM(x.get(z)??null,z,S,V=>f.get(JP(V))??0)).sort(),_=J(E);return p.set(I,{resourceEpoch:g,token:_}),_},pendingResourceCount:()=>u.size,isCompatibleWith:(I,P)=>{let F=chunkFBWBSHC4_cjs.bb(P);if(F.cacheToken!==b.cacheToken)return false;if(I===n)return true;let E=qm(I);if(y&&E&&y.size===E.size){let z=true;for(let[V,j]of y)if(E.get(V)!==j){z=false;break}if(z)return true}let _=chunkFBWBSHC4_cjs.nb(I,{resolveRelationship:chunkFBWBSHC4_cjs.gb(P,t),resolveSchemeColor:F.resolveSchemeColor,resolveStyleMatrixReference:F.resolveStyleMatrixReference});if(_.size!==x.size)return false;for(let[z,V]of x){let j=_.get(z);if(!j||Qm(j)!==Qm(V))return false}return true},dispose:()=>{s=true,d+=1;for(let I of c.values())I.kind==="ready"&&l(I.validatedHandle);c.clear(),u.clear(),f.clear();}}}var tR=0;function _V(e){let t=e.session.packageRevision(),n=e.session.currentPackage(),r=e.resourceLookup??chunkFBWBSHC4_cjs.Bb(n,{decodePort:e.decodePort}),o=new Map,a=new Map,i=new WeakMap,l=new Map,s=new Map,d=m=>{l.set(m.resourceKey,m);let g=chunkFBWBSHC4_cjs.pb(m);g&&s.set(m.resourceKey,g);},c=m=>{l.delete(m.resourceKey);let g=s.get(m.resourceKey);g&&(chunkFBWBSHC4_cjs.qb(g),s.delete(m.resourceKey));},u=(m,g)=>{let b=g.currentPackage().parts.get(m)??a.get(m);if(b)return b;if(m===g.part().name)return g.part();throw new Error(`Missing inline drawing part ${m}`)},f=(m,g)=>{let h=o.get(m);if(h)return h;let b=u(m,g);a.set(m,b);let x=wM({ownerPartName:m,part:b,pkg:g.currentPackage(),lookup:r,onResourceSettled:()=>e.onResourcesChanged(),rememberReadyHandle:d,forgetReadyHandle:c});return o.set(m,x),tR+=1,i.set(x,tR),x},p=m=>{let g=m.currentPackage();if(g.partBytes===n.partBytes&&g.relationships===n.relationships&&g.contentTypes===n.contentTypes){for(let[b,x]of o){let y=g.parts.get(b)??(b===m.part().name?m.part():void 0);if(y&&x.isCompatibleWith(y,g)){a.set(b,y);continue}x.dispose(),o.delete(b),a.delete(b);}t=m.packageRevision(),n=g;return}for(let b of o.values())b.dispose();o.clear(),a.clear();for(let b of s.values())chunkFBWBSHC4_cjs.qb(b);s.clear(),l.clear(),e.resourceLookup||r.dispose(),t=m.packageRevision(),n=g,r=e.resourceLookup??chunkFBWBSHC4_cjs.Bb(g,{decodePort:e.decodePort});};return Object.freeze({get bodyContext(){return f(e.session.part().name,e.session).context},contextForPart(m){return f(m,e.session).context},cacheTokenForPart(m){let g=f(m,e.session);return `${i.get(g)??0}|${g.cacheTokenForPart()}`},drawingTokenForParagraph(m,g){let h=f(g,e.session);return `${i.get(h)??0}|${h.drawingTokenForParagraph(m)}`},pendingResourceCount(){let m=0;for(let g of o.values())m+=g.pendingResourceCount();return m},mintValidatedBytes(m,g){return l.get(m.resourceKey)!==m?null:chunkFBWBSHC4_cjs.ob(m,g)},sync(m){m.packageRevision()===t&&m.currentPackage()===n||p(m);},dispose(){for(let m of o.values())m.dispose();o.clear(),a.clear();for(let m of s.values())chunkFBWBSHC4_cjs.qb(m);s.clear(),l.clear(),e.resourceLookup||r.dispose();}})}function kM(e,t,n,r){if(!e)return J([t,"refused"]);let o=[t,Qm(e),Hl(n(e))];return r&&o.push(String(r(e))),J(o)}function sR(e,t,n){if(t===void 0)return rR(e,n);let r=nR.get(e);if(r&&r.epoch===t)return r.token;let o=rR(e,n);return nR.set(e,{epoch:t,token:o}),o}var nR=new WeakMap;function rR(e,t){return No(e,t)}var vM=4,ep=256;function TM(e){return `txbx-${e}`}var dR=new WeakMap;function pR(e,t,n,r="all-markup",o){if(!t||t.nums.size===0)return;let a=dR.get(e);if(a&&a.rawIndex===t&&a.styleCascade===n&&a.displayMode===r&&a.authorFilter===o)return a.listItems;let i=qd(t,n),l=dm(e,r,o),s=Xf(l,i,n),d=s.size>0?s:void 0;return dR.set(e,{rawIndex:t,styleCascade:n,displayMode:r,authorFilter:o,listItems:d}),d}var gR=2e4,tp=Object.freeze({contents:Object.freeze([]),truncated:false}),zl=new WeakMap;function IM(e){let t=[],n=0,r=false,o=[e];for(;o.length>0;){let a=o.pop();if(n+=1,n>gR){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}):tp}function OM(e){let t=zl.get(e);if(t)return t;if(e.kind!=="table"){let l=IM(e);return zl.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"){zl.has(l.scan.paragraph)||zl.set(l.scan.paragraph,l.scan.contents.length>0?Object.freeze({contents:Object.freeze(l.scan.contents),truncated:false}):tp);continue}let s=l.node;if(r+=1,r>gR){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}):tp;return zl.set(e,i),i}var cR=1,uR=new WeakMap;function FM(e){let t=uR.get(e);return t===void 0&&(t=cR,cR+=1,uR.set(e,t)),t}var fR=new WeakMap;function CM(e,t,n,r="all-markup",o){if(t.nums.size===0)return "";let a=OM(e);if(a.contents.length===0&&!a.truncated)return "";let i=fR.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=pR(d,t,n,r,o);if(c)for(let[u,f]of c)l.push(J([u,f.cacheToken]));}a.truncated&&l.push(`truncated:${FM(t)}`);let s=l.length===0?"":`|txbxlist:${J(l)}`;return fR.set(e,{rawIndex:t,styleCascade:n,displayMode:r,authorFilter:o,token:s}),s}function Oc(e,t,n,r,o){return Object.freeze({layoutTextboxStoryFor:e,hostedListTokenForParagraph:!t||t.nums.size===0?null:a=>CM(a,t,n,r,o)})}function Fc(e,t){let n=e.textboxStory;if(!n)return null;let r=vt(e.extentEmu.cx),o=vt(e.extentEmu.cy),a=vt(n.insetsEmu.left),i=vt(n.insetsEmu.right),l=vt(n.insetsEmu.top),s=vt(n.insetsEmu.bottom),d=Math.max(1,r-a-i),c=Math.max(0,o-l-s),u=vt(n.strokeWidthEmu),f={fillHex:n.fillHex,strokeHex:n.strokeHex,strokeWidthPt:u,contentWidth:d,contentHeight:c};if((t.depth??0)>=vM)return {fragments:[],flowHeight:0,contentOffset:{x:a,y:l},...f,fallbackReason:"textbox-nesting-limit"};let m=dm(n.content,t.displayMode,t.revisionAuthorFilter),g=pR(n.content,t.numberingIndex,t.styleCascade,t.displayMode,t.revisionAuthorFilter),h=TM(e.drawingNodeId),b=0,x=Qo(m,0,d,0,0,{measurer:t.measurer,cache:t.cache,producer:`${t.producer}|txbx:${e.drawingNodeId}`,nextLineId:()=>`${h}-line-${b++}`,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}:{},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=x.blocks,O=x.bottom,S,T=[];if(y.length>ep){mR(y.slice(ep),T),y=y.slice(0,ep);let k=y[y.length-1];O=k?k.box.y+k.box.height:0,S="textbox-fragment-limit";}if(O>c+.001){let k=y.filter(I=>I.box.y<c-.001);k.length<y.length&&(mR(y.filter(I=>I.box.y>=c-.001),T),y=k,S=S??"textbox-height-clip");}let R=Math.max(0,c-O),w=n.verticalAnchor==="center"?R/2:n.verticalAnchor==="bottom"?R:0;return {fragments:y,flowHeight:O,contentOffset:{x:a,y:l+w},...f,...S?{fallbackReason:S}:{},...T.length>0?{clippedResourceToken:J(T)}:{}}}function mR(e,t){Fa({fragments:e},n=>{t.push(Hl(n.resource));});}function ea(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}}}:{},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 np(e,t){return t===0?[...e]:e.map(n=>n.kind==="paragraph"?ea(n,t):{...n,box:{...n.box,y:n.box.y+t}})}function Wl(e){let t=0;for(let n of e)In(n)||(t=Math.max(t,n.box.y+n.box.height));return t}function Vl(e){let t=0;for(let n of e.fragments)t=Math.max(t,rp(n));return t}function rp(e){if(In(e))return 0;let t=e.kind==="paragraph"?e.spacing.after:0;return e.box.y+e.box.height-t}function Cc(e){let t=Number.POSITIVE_INFINITY;for(let n of e.fragments){if(In(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 hR=new WeakMap;function Gl(e,t){let n=hR.get(e.fragments);n||(n=new WeakMap,hR.set(e.fragments,n));let r=n.get(t);if(r)return r;let o=MM(e,t);return n.set(t,o),o}function MM(e,t){let n=0,r=0,o=0,a=false;for(let d of e.fragments){if(d.kind==="paragraph"){if(!gr(d,t.paragraphId,t.atomOffset))continue;let c=BM(d,t),u=c?.top??d.box.y,f=c?.bottom??d.box.y+d.box.height;f>r&&(n=u,r=f,o=d.box.y,a=c!==null&&!In(d));continue}if(LM(d,[t])){let c=d.box.y+d.box.height;c>r&&(n=d.box.y,r=c,a=false);}}let i=d=>Math.min(Math.max(0,d),e.contentBox.height),l=i(n),s=i(r);return {top:l,bottom:s,blockTop:i(o),evictable:a&&s>l}}function BM(e,t){for(let n of e.lines)for(let r of gt(n))if(Wh(r,t.paragraphId,t.atomOffset))return {top:n.box.y,bottom:n.box.y+n.box.height};return null}function LM(e,t){let n=r=>{for(let o of r){if(o.kind==="paragraph"){for(let a of t)if(gr(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 op(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 ap=e=>e.kind!=="textValue",kr=(e,t)=>ap(e)&&e.namespaceUri===chunkFBWBSHC4_cjs.da&&e.localName===t,yR=e=>e.children.filter(ap),EM=(e,t)=>{let n=e.attributes.filter(r=>r.localName===t);return n.length===1&&n[0].namespaceUri===chunkFBWBSHC4_cjs.da?n[0].value:void 0};function $l(e,{leadingTab:t=false,allowDecoration:n=false}={}){let r=0,o="",a="",i="",l=0;for(let s of yR(e))if(!kr(s,"pPr")){if(!kr(s,"r"))return;for(let d of yR(s)){if(kr(d,"rPr"))continue;if(kr(d,"tab")&&r===0&&!a&&!l&&t&&!d.children.length){l++;continue}if(kr(d,"fldChar")&&!d.children.length){let u=EM(d,"fldCharType");if(r===0&&u==="begin")r=1;else if(r===1&&u==="separate"&&Ar(o)==="PAGE")r=2;else if(r===2&&u==="end")r=3;else return;continue}if(d.children.some(ap))return;let c=d.children.map(u=>u.kind==="textValue"?u.value:"").join("");if(kr(d,"instrText")&&r===1)o+=c;else if(n&&kr(d,"t")&&r===0)a+=c;else if(n&&kr(d,"t")&&r===3)i+=c;else if(!(kr(d,"t")&&r===2&&/^\d*$/.test(c)))return}}return r===3&&Ar(o)==="PAGE"&&l===Number(t)&&(!a&&!i||a==="- "&&i===" -")?a+i:void 0}var lp=31680/20,PR=e=>e.kind!=="textValue",ta=(e,t)=>PR(e)&&e.namespaceUri===chunkFBWBSHC4_cjs.da&&e.localName===t,vi=e=>e.children.filter(PR),ki=(e,t)=>{let n=e.attributes.filter(r=>r.localName===t);return n.length===1&&n[0].namespaceUri===chunkFBWBSHC4_cjs.da?n[0].value:void 0};function ip(e,t){let n=vi(e).filter(r=>r.localName===t);return n.length===1&&ta(n[0],t)?n[0]:void 0}function bR(e){if(e===void 0||!/^\d{1,5}$/.test(e))return;let t=Number(e)/20;return t<=lp?t:void 0}function xR(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 NM(e,t){return t.lines[0].spans.length===0&&vi(e).every(n=>ta(n,"pPr")||ta(n,"r")&&vi(n).every(r=>ta(r,"rPr")))}function SR(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 RR(e,t,n){if(!n||!ta(e.root,"ftr")||t.blocks.length!==2||!Number.isFinite(n.pageWidth)||n.pageWidth<=0||n.pageWidth>lp||!Number.isFinite(n.marginLeft)||n.marginLeft<0||n.marginLeft>n.pageWidth)return t;let r=vi(e.root),[o,a]=t.blocks;if(r.length!==2||r.some(S=>S.kind!=="paragraph")||!o||!a||!xR(o)||!xR(a)||!SR(o,true)||!SR(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>lp)return t;let i=ip(r[0],"pPr"),l=ip(r[1],"pPr");if(!i||!l||vi(i).some(S=>!["framePr","pStyle","tabs","jc","rPr"].some(T=>ta(S,T)))||vi(l).some(S=>!["pStyle","jc","ind","rPr"].some(T=>ta(S,T)))||$l(r[0],{leadingTab:true,allowDecoration:true})===void 0||$l(r[1],{allowDecoration:true})===void 0&&!NM(r[1],a))return t;let d=ip(i,"framePr"),c=new Set(["w","wrap","vAnchor","hAnchor","x","yAlign"]);if(!d||d.children.length||d.attributes.some(S=>S.namespaceUri!==chunkFBWBSHC4_cjs.da||!c.has(S.localName))||ki(d,"wrap")!=="around"||ki(d,"vAnchor")!=="text"||ki(d,"hAnchor")!=="page"||ki(d,"yAlign")!=="center")return t;let u=bR(ki(d,"w")),f=bR(ki(d,"x"));if(u===void 0||u<=0||f===void 0||f+u>n.pageWidth)return t;let p=o.lines[0],m=1/0,g=-1/0;for(let S of p.spans)S.box.width<=0||S.text===" "||S.text.trim()===""||(m=Math.min(m,S.box.x-o.box.x),g=Math.max(g,S.box.x+S.box.width-o.box.x));if(!Number.isFinite(m)||!Number.isFinite(g)||m<0||!(g<=u||m>=u))return t;let h=ea(a,-a.box.y),b=(a.box.height-o.box.height)/2;if(b<0)return t;let x=ea(o,b-o.box.y),y=f-n.marginLeft-o.box.x,O={...x,clipToBox:true,box:{...x.box,x:o.box.x+y,width:u},lines:x.lines.map(S=>({...S,box:{...S.box,x:S.box.x+y},contentX:S.contentX+y,spans:S.spans.map(T=>({...T,box:{...T.box,x:T.box.x+y}}))}))};return {...t,blocks:[O,h],bottom:h.box.height}}var kR=e=>e.kind!=="textValue",Mt=(e,t)=>kR(e)&&e.namespaceUri===chunkFBWBSHC4_cjs.da&&e.localName===t,ro=(e,t)=>e.attributes.find(n=>n.namespaceUri===chunkFBWBSHC4_cjs.da&&n.localName===t)?.value;function na(e){return e.children.filter(kR)}function AM(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()&&!Mt(r,"t")&&!Mt(r,"instrText"))return false;t.push({node:a,depth:o+1});}}}return true}function DM(e){let t="";for(let n of e.children){if(n.kind!=="textValue")return null;t+=n.value;}return t}function _M(e){let t=na(e.root);if(t.length!==2||t.some(m=>m.kind!=="paragraph"))return null;let[n,r]=t,o=na(n).find(m=>Mt(m,"pPr")),a=na(r).find(m=>Mt(m,"pPr"));if(!o||!a)return null;let i=na(o),l=na(a);if(i.filter(m=>Mt(m,"framePr")).length!==1||i.filter(m=>Mt(m,"pStyle")).length!==1||l.filter(m=>Mt(m,"pStyle")).length!==1||i.some(m=>!["pStyle","framePr","jc","rPr"].some(g=>Mt(m,g)))||l.some(m=>!["pStyle","jc","rPr"].some(g=>Mt(m,g))))return null;let s=i.find(m=>Mt(m,"pStyle")),d=l.find(m=>Mt(m,"pStyle")),c=i.find(m=>Mt(m,"framePr"));if(!ro(s,"val")||ro(s,"val")!==ro(d,"val"))return null;let u="";for(let m of na(r))if(!Mt(m,"pPr")){if(!Mt(m,"r"))return null;for(let g of na(m)){if(Mt(g,"rPr"))continue;if(!Mt(g,"t"))return null;let h=DM(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(m=>m.namespaceUri!==chunkFBWBSHC4_cjs.da||!f.has(m.localName))||ro(c,"wrap")!=="around"||ro(c,"vAnchor")!=="text"||ro(c,"hAnchor")!=="margin"||ro(c,"xAlign")!=="center")return null;let p=ro(c,"y")??"0";return !["0","1"].includes(p)||$l(n)!==""?null:{first:n.id,empty:r.id,y:Number(p)/20,decoration:u}}function wR(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 vR(e,t,n,r){if(!Mt(e.root,"ftr")||!AM(e))return t;let o=_M(e);if(!o)return RR(e,t,r);if(t.blocks.length!==2)return t;let[a,i]=t.blocks;if(!a||!i||!wR(a)||!wR(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=ea(a,o.y-a.box.y),s=ea(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,p=(n-(f-c))/2-c,m={...l,alignment:"center",box:{...l.box,x:c+p,width:f-c},lines:[{...d,box:{...d.box,x:c+p,width:f-c},contentX:d.contentX+p,spans:d.spans.map(g=>({...g,box:{...g.box,x:g.box.x+p}}))}]};return {...t,blocks:[m,s],bottom:Math.max(m.box.y+m.box.height,s.box.y+s.box.height)}}var jM=128,TR=new WeakMap;function HM(e){let t=TR.get(e);if(t!==void 0)return t;let n=chunkVSCPFHTD_cjs.B(chunkFBWBSHC4_cjs.ra(e));return TR.set(e,n),n}function zM(e){let t=Math.max(1,Math.floor(e)),n=new Map;return {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 FR(e,t,n,r,o,a,i,l=jM,s,d=je,c,u,f,p,m,g){let h=g?.revisionAuthorFilter,b=zu(e.root),x=zM(l),y=bn(e,d,h),O=ui({numberingIndex:g?.numberingIndex,styleCascade:a},y).listItems,S=HM(e),T,R=w=>{let k=_r(b)||c?w:void 0,I=k?.pageNumber??p?.pageNumber??1,P=c&&k?.contentInsetTop!==void 0&&k.contentInsetBottom!==void 0&&k.storyTop!==void 0?`|hf:${k.contentInsetTop},${k.contentInsetBottom},${k.storyTop}`:"",F=$u(k,b)+(c?`|pn:${I}`:"")+P;if(F===""){if(T)return T}else {let D=x.get(F);if(D)return D}let E=0,_=[],z=()=>{let D=k?.pageNumber??p?.pageNumber??1,H=p?.pageWidth??t,K=p?.pageHeight??Math.max(1,t),$=p?.marginLeft??0,v=p?.marginRight??0,Y=p?.marginTop??0,U=p?.marginBottom??0,X=Math.max(1,K-Y-U),ee=k?.contentInsetTop!==void 0&&k.contentInsetBottom!==void 0&&k.storyTop!==void 0?Object.freeze({top:k.contentInsetTop-k.storyTop,height:Math.max(1,K-k.contentInsetTop-k.contentInsetBottom)}):void 0;return Object.freeze({pageNumber:D,pageWidth:H,pageHeight:K,marginLeft:$,marginRight:v,marginBottom:U,contentInsetTop:Y,contentInsetBottom:U,contentWidth:t,...ee?{verticalMarginFrame:ee}:{},contentHeight:X,contentBandHeight:X,ownerPartName:e.name,storyKind:e.name.includes("ftr")?"footer":"header"})},j=c?Oc(D=>Fc(D,{measurer:n,producer:r+F+(d===je?"":`|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}:{},...m?{documentProperties:m}:{},...g?.projectLink?{projectLink:g.projectLink}:{},...g?.projectFieldLink?{projectFieldLink:g.projectFieldLink}:{},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,M=Object.freeze([]),B;if(c){let D=false;for(let H=0;H<Ho;H+=1){_.splice(0,_.length),E=0,B=Qo(y,0,Math.max(1,t),0,0,{measurer:n,cache:o,producer:r+F+(d===je?"":`|rev:${d}`)+(h?`|reviewers:${h.cacheKey}`:""),nextLineId:()=>`hf-${e.name}-line-${E++}`,styleCascade:a,...O?{listItems:O}:{},hostedStory:j,pageContext:k,...s!==void 0?{defaultTabStopPt:s}:{},compatibilityMode:g?.compatibilityMode,tableNestingOffset:1,displayMode:d,...h?{revisionAuthorFilter:h}:{},...m?{documentProperties:m}:{},...g?.projectLink?{projectLink:g.projectLink}:{},...g?.projectFieldLink?{projectFieldLink:g.projectFieldLink}:{},...g?.projectionTokenForParagraph?{projectionTokenForParagraph:g.projectionTokenForParagraph}:{},...g?.projectionTokenForTable?{projectionTokenForTable:g.projectionTokenForTable}:{},inlineDrawingLayout:c,anchorFrameBase:z,pageContentClip:()=>{let $=z();return k?.storyTop!==void 0?Object.freeze({x:-$.marginLeft,y:-k.storyTop,width:$.pageWidth,height:$.pageHeight}):jo($)},collectAnchoredDrawings:$=>{_.push(...$);},columnBoxForParagraph:$=>Object.freeze({x:0,y:$.y,width:t,height:$.height}),pageExclusionZones:()=>M,...u?{drawingTokenForParagraph:u}:f?{drawingLayoutToken:f}:{},...g?.projectionTokenForParagraph?{projectionTokenForParagraph:g.projectionTokenForParagraph}:{},...g?.projectionTokenForTable?{projectionTokenForTable:g.projectionTokenForTable}:{}});let K=Lf(_,c,0,t);if(K.length===0){D=true,M=K;break}if(H>0&&Un(M)===Un(K)){D=true,M=K;break}M=K;}if(!D)throw new ti(`header/footer exclusion reflow did not converge within ${Ho} passes`)}else B=Qo(y,0,Math.max(1,t),0,0,{measurer:n,cache:o,producer:r+F+(d===je?"":`|rev:${d}`)+(h?`|reviewers:${h.cacheKey}`:""),nextLineId:()=>`hf-${e.name}-line-${E++}`,styleCascade:a,...O?{listItems:O}:{},pageContext:k,...s!==void 0?{defaultTabStopPt:s}:{},compatibilityMode:g?.compatibilityMode,tableNestingOffset:1,displayMode:d,...h?{revisionAuthorFilter:h}:{},...m?{documentProperties:m}:{},...g?.projectLink?{projectLink:g.projectLink}:{},...g?.projectFieldLink?{projectFieldLink:g.projectFieldLink}:{},...g?.projectionTokenForParagraph?{projectionTokenForParagraph:g.projectionTokenForParagraph}:{},...g?.projectionTokenForTable?{projectionTokenForTable:g.projectionTokenForTable}:{}});B=vR(e,B,t,p);let A={partName:e.name,part:e,contentKey:S,...g?.projectionEpoch?{projectionEpoch:g.projectionEpoch}:{},fragments:B.blocks,flowHeight:B.bottom,pageFieldNeeds:b,..._.length>0?{anchoredDrawings:Object.freeze([..._])}:{},withPageContext:D=>!_r(b)&&!A.anchoredDrawings?.length?T??A:R(D)};return F===""?T=A:x.set(F,A),A};return R(i)}function ra(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 Yu(u,f,r),f;let p=u.pageFieldProjector;return {...f,pageFieldProjector:m=>{let g=p(m);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 IR=new WeakMap;function WM(e){let t=IR.get(e);if(t!==void 0)return t;let n=[];Lu(e,o=>{let a=o.marker;a&&n.push(J([o.paragraphId,a.text,a.numFmt,String(a.level)]));});let r=n.length===0?"":`|list:${J(n)}`;return IR.set(e,r),r}var OR=new WeakMap;function VM(e){let t=OR.get(e);if(t!==void 0)return t;let n=[];Fa(e,o=>{n.push(Hl(o.resource)),o.kind==="anchoredDrawing"&&o.textboxStory?.clippedResourceToken&&n.push(`clip:${o.textboxStory.clippedResourceToken}`);});let r=n.length===0?"":`!${J(n)}`;return OR.set(e,r),r}function sp(e,t){return J([e,String(t.flowHeight),t.contentKey,t.projectionEpoch??"",VM(t),WM(t)])}function CR(e,t,n){if(!e)return "";let r=(o,a)=>J([...a].map(([i,l])=>sp(`${o}${i}`,l)).sort());return `|hf:${t},${n},${e.titlePage?1:0}${e.evenAndOddHeaders?1:0};`+J([r("h",e.headers),r("f",e.footers)])}var GM="http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",$M="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer";function KM(e){let t=new Map;for(let n of e.relationships.get(e.mainDocumentPart)??[]){if(n.type!==GM&&n.type!==$M)continue;let r=chunkFBWBSHC4_cjs.E(n);r.mode!=="Internal"||!r.target.ok||t.has(r.target.partName)||t.set(r.target.partName,n.id);}return t}function XM(e){return e.relationships.get(e.mainDocumentPart)??e.relationships}function IG(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:p,linkProjectors:m,projectFieldLink:g}=e,h=new WeakMap,b=new WeakMap,x=(k,I,P)=>{if(I.rId===P)return I;let F=b.get(k);F||(F=new WeakMap,b.set(k,F));let E=F.get(I),_=E?.get(P);if(_)return _;let z={...I,rId:P,withPageContext:V=>x(k,I.withPageContext(V),P)};return E||(E=new Map,F.set(I,E)),E.set(P,z),z},y=new Map,O=null,S=(k,I,P)=>(O!==I&&(O=I,y=KM(k)),y.get(P)),T=(k,I,P)=>{let F=m.epochForPart(k.name),E=c?.cacheKey??"",_=l?.(),z=s?.(),V=f?.(k.name)??"",j=i?.(),M=a?.(),B=m.projectLinkForPart(k.name),A=h.get(k);if(A&&A.width===I&&A.pageHeight===P.height&&A.marginTop===P.margin.top&&A.marginBottom===P.margin.bottom&&A.marginLeft===P.margin.left&&A.marginRight===P.margin.right&&A.producer===r&&A.projectionEpoch===F&&A.revisionAuthorFilterKey===E&&A.defaultTabStopPt===_&&A.compatibilityMode===z&&A.drawingLayoutToken===V&&A.numberingIndex===j&&A.styleCascade===M)return A.story;let D=FR(k,I,n,r,o,M,void 0,void 0,_,d,u?.(k.name),p?H=>p(k.name,H):void 0,void 0,{pageNumber:1,pageWidth:P.width,pageHeight:P.height,marginLeft:P.margin.left,marginRight:P.margin.right,marginTop:P.margin.top,marginBottom:P.margin.bottom},t.documentProperties(),{compatibilityMode:z,...j?{numberingIndex:j}:{},projectLink:B,...g?{projectFieldLink:g}:{},projectionEpoch:F,projectionTokenForParagraph:H=>m.tokenForParagraphForPart(k.name,H),projectionTokenForTable:H=>m.tokenForTableForPart(k.name,H),...c?{revisionAuthorFilter:c}:{}});return h.set(k,{width:I,pageHeight:P.height,marginTop:P.margin.top,marginBottom:P.margin.bottom,marginLeft:P.margin.left,marginRight:P.margin.right,producer:r,projectionEpoch:F,revisionAuthorFilterKey:E,defaultTabStopPt:_,compatibilityMode:z,drawingLayoutToken:V,numberingIndex:j,styleCascade:M,story:D}),D},R=(k,I,P,F,E)=>{if(!P||P.headers.size===0&&P.footers.size===0)return;let _=E.width-E.margin.left-E.margin.right,z=(V,j)=>{let M=new Map;for(let[B,A]of V){let D=j?.get(B),H=D?.partName===A.name?D.rId:S(k,I,A.name),K=T(A,_,E);M.set(B,H?x(I,K,H):K);}return M};return {titlePage:P.titlePage,evenAndOddHeaders:P.evenAndOddHeaders,headers:z(P.headers,F?.headers),footers:z(P.footers,F?.footers)}},w=()=>{let k=t.currentPackage(),I=XM(k),P=Jf(t.part(),d,c),F=Jx(t.part(),d,c),E=t.headerFooterPartsBySection(),_=t.headerFooterResolutionBySection?.()??chunkFBWBSHC4_cjs.Od(k);return P.map((z,V)=>{let j=F[V]??V;return R(k,I,E[j],_[j],qr(z.properties))})};return {sectionFurniture:w,furniture(){let k=w();return k[k.length-1]}}}function YM(e,t,n,r,o){let a=bn(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"?Zn(s):void 0});let i=[];for(let l of a){if(l.kind!=="paragraph")continue;let s=Zn(l);s&&i.push(s);}for(;i.length<t.length;)i.push(void 0);return i}function NG(e){let t=e.view.currentPackage(),n=chunkFBWBSHC4_cjs.Of(t,"footnote"),r=chunkFBWBSHC4_cjs.Of(t,"endnote");if(!n&&!r)return;let o=e.view.part();if(chunkFBWBSHC4_cjs.Pf(o).length===0)return;let a=chunkFBWBSHC4_cjs.Df(t),i=chunkFBWBSHC4_cjs.Ef(a),l=chunkFBWBSHC4_cjs.Ff(a),s=chunkFBWBSHC4_cjs.Gf(void 0,i),d=chunkFBWBSHC4_cjs.Hf(void 0,l),c=Qf(o,e.displayMode,e.revisionAuthorFilter),u=YM(o,c.sections,c.truncated,e.displayMode,e.revisionAuthorFilter),f=c.sections.map((h,b)=>chunkFBWBSHC4_cjs.Gf(chunkFBWBSHC4_cjs.Bf(u[b]),i)),p=c.sections.map((h,b)=>chunkFBWBSHC4_cjs.Hf(chunkFBWBSHC4_cjs.Cf(u[b]),l)),m=e.inlineDrawingLayoutForPart?h=>{let b=e.inlineDrawingLayoutForPart(h);if(b)return {inlineDrawingLayout:b,...e.drawingTokenForParagraphForPart?{drawingTokenForParagraph:x=>e.drawingTokenForParagraphForPart(h,x)}:{}}}:void 0,g=[n,r];return {footnotesPart:n,endnotesPart:r,footnotePropsBySection:f.length>0?f:[s],endnotePropsBySection:p.length>0?p:[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}:{},projectionTokenForParagraphForPart:e.linkProjectors.tokenForParagraphForPart,projectionTokenForTableForPart:e.linkProjectors.tokenForTableForPart,projectionEpoch:g.map(h=>h?e.linkProjectors.epochForPart(h.name):"").join("\0"),...m?{drawingsForPart:m}:{},...m&&e.drawingLayoutEpochForPart?{drawingLayoutEpoch:g.map(h=>h?e.drawingLayoutEpochForPart(h.name):"").join("\0")}:{}}}function AG(e,t,n){return chunkFBWBSHC4_cjs.sf(e.currentPackage(),t,n)}var UM=new TextEncoder,qM=512,oo=Object.freeze({title:"field-projected",creator:"field-projected",subject:"field-projected",keywords:"field-projected",lastModifiedBy:"field-projected",description:"field-projected",company:"reserved",manager:"reserved"}),ZM=Object.freeze({title:oo.title,creator:oo.creator,subject:oo.subject,keywords:oo.keywords,lastModifiedBy:oo.lastModifiedBy,description:oo.description}),dp=Object.freeze(Object.keys(ZM)),MR=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"}),BR=new WeakMap;function JM(e){let t=BR.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=ai(s,[],void 0,void 0,void 0,void 0,"all-markup",void 0,void 0,void 0,void 0,MR),c=new Set(d.map(u=>u.text));for(let u of dp)c.has(MR[u])&&a.add(u);}let i=dp.filter(s=>a.has(s)),l=Object.freeze({links:Object.freeze(n),documentProperties:Object.freeze(i)});return BR.set(e,l),l}function LR(e){return chunkFBWBSHC4_cjs.a(UM.encode(J(e)))}var ER=new WeakMap;function NR(e,t){let n=new WeakMap,r=new WeakMap,o=l=>{let s=e.packageRevision(),d=e.currentPackage(),c=ER.get(e);(!c||c.revision!==s||c.pkg!==d)&&(c={revision:s,pkg:d,epochs:new Map},ER.set(e,c));let u=c.epochs.get(l);if(u!==void 0)return u;let f=["story-projection-part:v1",l];f.push(J(Object.keys(oo).map(g=>`${g}:${oo[g]}`)));for(let g of d.relationships.get(l)??[])f.push(J([g.id,g.type,g.rawTarget,g.targetMode,String(g.order)]));for(let g of d.externalTargets)g.ownerPart===l&&f.push(J([g.id,g.type,g.rawTarget,g.sinkSafe?"1":"0"]));let p=e.documentProperties();for(let g of dp)f.push(J([g,p[g]??""]));let m=`story-projection-part:${LR(f)}`;return c.epochs.size<qM&&c.epochs.set(l,m),m},a=(l,s)=>{let d=JM(s);if(d.links.length===0&&d.documentProperties.length===0)return "";let c=t(l),u=o(l),f=n.get(s),p=f?.get(c);if(p?.epoch===u)return p.token;let m=e.documentProperties(),g=["story-projection:v1"];for(let x of d.links){let y=c(x);g.push(y?J([y.id,y.kind,y.href??"",y.anchor??"",y.tooltip??""]):"no-link");}for(let x of d.documentProperties)g.push(J([x,m[x]??""]));let h=`story-projection:${LR(g)}`,b=f??new WeakMap;return b.set(c,{epoch:u,token:h}),f||n.set(s,b),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 p=No(s,g=>a(l,g)),m=u??new WeakMap;return m.set(d,{epoch:c,token:p}),u||r.set(s,m),p},epochForPart:o})}var QM=512;function AR(e){return t=>{if(t.kind==="textValue")return null;let n=chunkFBWBSHC4_cjs.$a(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 GG(e){let t=AR(o=>e.relationshipTarget(o)),n=new Map,r=o=>{let a=n.get(o);if(a)return a;let i=AR(l=>chunkFBWBSHC4_cjs.sf(e.currentPackage(),o,l));return n.size<QM&&n.set(o,i),i};return Object.freeze({projectLink:t,projectLinkForPart:r,...NR(e,r)})}var eB=4096;function tB(e){let t=e.tooltip!==null?{tooltip:chunkFBWBSHC4_cjs.q(e.tooltip)}:{};if(e.target!==null){let o=chunkFBWBSHC4_cjs.L(e.target);if(o.ok&&o.href.length>0&&chunkFBWBSHC4_cjs.x(o.href).ok){let i=e.anchor!==null&&!o.href.includes("#")?chunkFBWBSHC4_cjs.L(chunkFBWBSHC4_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:chunkFBWBSHC4_cjs.q(e.anchor)}:{},...t}}if(e.anchor===null)return null}if(e.anchor===null)return null;let n=chunkFBWBSHC4_cjs.q(e.anchor),r=chunkFBWBSHC4_cjs.L(n);return {kind:"internal",href:r.ok&&r.href.length>0?`#${r.href}`:null,authored:e.anchor,anchor:n,...t}}function YG(){let e=new Map,t=new Map,n=0;return {project(r){let o=tB(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>=eB)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 DR=new WeakMap;function nB(e){let t=DR.get(e);if(t!==void 0)return t;let n=rB(e);return DR.set(e,n),n}function rB(e){let t=(n,r)=>{if(n.kind==="textValue"||r>=chunkFBWBSHC4_cjs.la||chunkFBWBSHC4_cjs.$d(n)||chunkFBWBSHC4_cjs.Zd(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=chunkFBWBSHC4_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 zR(e,t){for(let n of t.resultParagraphIds){let r=chunkFBWBSHC4_cjs.Ga(e,n);if(!(!r||r.kind==="textValue"||r.kind!=="paragraph")&&nB(r))return true}return false}var _R=new WeakMap,jR=new WeakMap,HR=new WeakMap;function WR(e){let t=_R.get(e);if(t)return t;let n=new Set;for(let r of chunkFBWBSHC4_cjs.ze(e))n.add(r.beginParagraphId),n.add(r.endParagraphId);return _R.set(e,n),n}function VR(e){let t=jR.get(e);if(t)return t;let n=new Set;for(let r of chunkFBWBSHC4_cjs.ze(e))zR(e,r)||n.add(r.beginParagraphId);return jR.set(e,n),n}function GR(e){let t=HR.get(e);if(t)return t;let n=new Set;for(let r of chunkFBWBSHC4_cjs.ze(e))if(!zR(e,r))for(let o of r.resultParagraphIds)n.add(o);return HR.set(e,n),n}function $R(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 oB="http://schemas.openxmlformats.org/wordprocessingml/2006/main",aB="http://schemas.microsoft.com/office/word/2010/wordml",iB="http://schemas.microsoft.com/office/word/2012/wordml";function lB(e){if(e.kind!=="textValue"){for(let t of e.attributes)if(t.localName==="val"&&t.namespaceUri===oB)return t.value}}function Ti(e){for(let t of e.children)if(t.kind!=="textValue"&&(t.kind==="contentControlProperties"||t.localName==="sdtPr"))return t}function oa(e,t){if(e){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}}function vr(e,t){let n=oa(e,t);return n?lB(n):void 0}function Kl(e){return e==="sdtLocked"||e==="contentLocked"||e==="sdtContentLocked"?e:"unlocked"}function Mc(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(n==="contentControlText"||r==="text")return "plainText";if(r==="richText")return "richText";if(n==="contentControlCheckbox"||r==="checkbox"&&o===aB)return "checkbox";if(r==="repeatingSection"&&o===iB)return "repeatingSection"}return "richText"}function KR(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(chunkFBWBSHC4_cjs.Dd(o)&&r<chunkFBWBSHC4_cjs.Cd){let a=t(chunkFBWBSHC4_cjs.Gd(o),r+1);if(a)return a}}return null};return t(chunkFBWBSHC4_cjs.Gd(e),0)??"inline"}function Ii(e){let t=XR.get(e);if(t!==void 0)return t;let n=sB(e);return Bc!==null&&Bc===n?n=Bc:Bc=n,XR.set(e,n),n}var Bc=null,XR=new WeakMap,YR=new WeakMap;function sB(e){let t=(n,r)=>{if(n.kind==="textValue")return "";let o=n.kind==="paragraph"||n.kind==="table"||chunkFBWBSHC4_cjs.Dd(n);if(o){let i=YR.get(n);if(i!==void 0&&i.depth===r)return i.token}let a;if(chunkFBWBSHC4_cjs.Dd(n)){if(r>=chunkFBWBSHC4_cjs.Cd)return "";let i=Ti(n),l=[n.id,vr(i,"alias")??"",vr(i,"tag")??"",Kl(vr(i,"lock")),Mc(i),oa(i,"showingPlcHdr")?"1":"0",oa(i,"dataBinding")?"1":"0"].join(":"),s=chunkFBWBSHC4_cjs.Gd(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&&YR.set(n,{depth:r,token:a}),a};return t(e.root,0)}function qR(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 cp=new WeakMap,UR=new WeakMap;function ZR(e){if(e.length===1)return Xl(e[0]);let t=cp.get(e[0]);if(t&&Lc(t.parts,e))return t.index;let n=e.map(d=>Xl(d)),r=UR.get(n[0]);if(r&&Lc(r.indexes,n))return cp.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 UR.set(n[0],{indexes:n,index:s}),cp.set(e[0],{parts:e,index:s}),s}var up=new WeakMap;function Lc(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 JR=new WeakMap;function dB(e){for(let t of chunkFBWBSHC4_cjs.xd(e))if(t.root.kind!=="textValue"){for(let n of t.root.children)if(n.kind!=="textValue")return n}return null}function Xl(e){let t=up.get(e);if(t!==void 0)return t;let n=uB(e),r=dB(e),o=r?JR.get(r):void 0;if(o&&Lc(o.lists,n))return up.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&&JR.set(r,{lists:n,index:s}),up.set(e,s),s}var cB=Object.freeze([]);function uB(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=chunkFBWBSHC4_cjs.wd(d);if(c!==null&&s<chunkFBWBSHC4_cjs.Cd){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>=chunkFBWBSHC4_cjs.la)){for(let u of i)if(!(u.kind==="textValue"||u.kind==="paragraphProperties")){if(chunkFBWBSHC4_cjs.Dd(u)){let f=chunkFBWBSHC4_cjs.Qe(l).spanOf(u);if(!f)continue;let p=Ti(u),m=Kl(vr(p,"lock")),g=[...c,m];r(chunkFBWBSHC4_cjs.Gd(u),l,s+1,d+1,g),t.push({control:u,nestingDepth:s,lockStack:g,level:"inline",paragraphId:l.id,range:f,blockIds:[]});continue}chunkFBWBSHC4_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 b of c.children)b.kind==="tableRow"&&o([b],l,s,d);continue}if(c.kind==="tableRow"){for(let b of c.children)b.kind==="tableCell"?o(b.children,l,s,d):chunkFBWBSHC4_cjs.Dd(b)&&o([b],l,s,d);continue}if(!chunkFBWBSHC4_cjs.Dd(c)){let b=chunkFBWBSHC4_cjs.wd(c);b!==null&&d<chunkFBWBSHC4_cjs.Cd&&o(b,l,s,d+1);continue}if(l>=chunkFBWBSHC4_cjs.Cd)continue;let u=Ti(c),f=Kl(vr(u,"lock")),p=[...s,f],m=KR(c),g=chunkFBWBSHC4_cjs.wd(c)??[];if(m==="inline"){o(g,l+1,p,d+1);continue}let h=[];n(g,h),t.push({control:c,nestingDepth:l,lockStack:p,level:m,blockIds:h}),o(g,l+1,p,d+1);}},a=[];for(let i of chunkFBWBSHC4_cjs.xd(e))if(i.root.kind!=="textValue")for(let l of i.root.children){if(l.kind==="textValue")continue;let s=QR.get(l);if(s!==void 0){a.push(s);continue}let d=t.length;o([l],0,[]);let c=t.length===d?cB:Object.freeze(t.slice(d));QR.set(l,c),a.push(c);}return a}var QR=new WeakMap,fp=1<<20,e0=new WeakMap,t0=null,n0=0;function fB(e){return e!==t0&&(t0=e,n0+=1),n0}function mB(e,t,n,r){let o=e0.get(e);if(o!==void 0&&o.neededStamp===n)return o;let a=[],i=[],l=e.index*fp,s=0,d=0,c=p=>s===0&&d===0?p:{x:p.x+s,y:p.y+d,width:p.width,height:p.height},u=(p,m)=>{if(m.kind==="paragraph"){t.neededBlockIds.has(m.paragraphId)&&(a.push({pageIndex:p,blockId:m.paragraphId,box:c($R(m))}));let g=t.neededParagraphIds.has(m.paragraphId);for(let h of m.lines){let b=l;if(l=Math.min(l+1,e.index*fp+fp-1),!g)continue;let x=Math.max(0,h.box.height-h.leading-(h.trailingSpacing??0));for(let y of h.spans)i.push({pageIndex:p,paragraphId:y.range.paragraphId,start:y.range.start,end:y.range.end,line:b,box:{x:y.box.x+s,y:y.box.y+h.leading+d,width:y.box.width,height:x}});}return}t.neededBlockIds.has(m.tableId)&&(a.push({pageIndex:p,blockId:m.tableId,box:c(m.box)}));for(let g of m.rows)if(!g.isHeaderRepeat)for(let h of g.cells)for(let b of h.blocks)u(p,b);};for(let p of e.fragments)u(e.index,p);for(let p of [e.header,e.footer])if(p){s=p.box.x-e.contentBox.x,d=p.box.y-e.contentBox.y;for(let m of p.fragments)u(e.index,m);}s=0,d=0;let f={neededStamp:n,blocks:a,spans:i};return e0.set(e,f),f}function pB(e,t,n){let r=fB(t.neededToken),o=new Map,a=new Map,i=new Set;for(let l of e.pages){let s=mB(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 gB(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=$s(i);return l?[{pageIndex:a,box:l}]:[]})}function hB(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;c.add(f.pageIndex);let p=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:p,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=$s(d.boxes);return c?[{pageIndex:d.pageIndex,box:c}]:[]})}var r0=new WeakMap;function yB(e){let t=r0.get(e);if(t!==void 0)return t;let n=Ti(e),r=vr(n,"alias"),o=vr(n,"tag"),a={...r!==void 0?{alias:r}:{},...o!==void 0?{tag:o}:{},controlType:Mc(n),placeholder:oa(n,"showingPlcHdr")!==void 0,bound:oa(n,"dataBinding")!==void 0};return r0.set(e,a),a}function bB(e,t,n){let r=e.level==="inline"&&e.paragraphId&&e.range?hB(e.paragraphId,e.range,t):gB(e.blockIds,t);return {...gp(e),fragments:r}}function xB(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 SB(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&&xB(e.fragments,t.fragments)}function Oi(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(!SB(e[n],t[n]))return false;return true}function mp(e,t){return {...t,revision:e.revision,pages:e.pages}}var o0=new WeakMap;function pp(e,t,n=Ii(t),r){let o=qR(e,t);if(o.length>1){let f=o.map(p=>Ii(p));n=f.some(p=>p!=="")?f.join("|"):"";}if(n===""){let f=e.pages.some(m=>m.contentControls!==void 0&&m.contentControls.length>0);if(!f&&e.controlContextToken===n&&Oi(e.contentControls,[]))return e;let p=f?e.pages.map(m=>m.contentControls!==void 0&&m.contentControls.length>0?{...m,contentControls:[]}:m):e.pages;return {...e,pages:p,contentControls:[],controlContextToken:n}}let a=ZR(o),i=pB(e,a),l=a.controls.map(f=>bB(f,i)),s=new Map;for(let f of l)for(let p of f.fragments){let m=s.get(p.pageIndex),g={...f,fragments:[p]};m?m.push(g):s.set(p.pageIndex,[g]);}if(e.controlContextToken===n&&Oi(e.contentControls,l)&&e.pages.every(f=>Oi(f.contentControls,s.get(f.index)??[])))return e;let d=false,c=e.pages.map(f=>{let p=s.get(f.index)??[];if(Oi(f.contentControls,p)||p.length===0&&!f.contentControls)return f;d=true;let m=o0.get(f);if(m&&Oi(m.controls,p))return m.wrapped;let g={...f,contentControls:p};return o0.set(f,{controls:p,wrapped:g}),g}),u=d?c:e.pages;return u===e.pages&&e.controlContextToken===n&&Oi(e.contentControls,l)?e:{...e,pages:u,contentControls:l,controlContextToken:n}}function b$(e,t){return Xl(e).controls.filter(r=>t?r.paragraphId!==void 0?t.has(r.paragraphId):a0(r.control).some(o=>t.has(o)):true).map(gp)}function a0(e){let t=[],n=r=>{for(let o of r)if(o.kind!=="textValue"){if(o.kind==="paragraph"){t.push(o.id);continue}if(chunkFBWBSHC4_cjs.Dd(o)){n(chunkFBWBSHC4_cjs.Gd(o));continue}n(o.children);}};return n(chunkFBWBSHC4_cjs.Gd(e)),t}function x$(e,t){let n=null;for(let r of Xl(e).controls)(r.paragraphId===t||r.blockIds.includes(t)||a0(r.control).includes(t))&&(!n||r.nestingDepth>=n.nestingDepth)&&(n=r);return n?gp(n):null}function gp(e){let t=yB(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:Nu(e.lockStack),placeholder:t.placeholder,bound:t.bound,nestingDepth:e.nestingDepth,level:e.level,fragments:[]}}var Yl=chunkFBWBSHC4_cjs.qd,Ec=512,hp=6,PB=1/3;function RB(e,t){return `note-${e}-${t}`}function I$(e){if(!e)return [];let t=[];for(let n of chunkFBWBSHC4_cjs.sd(e.root)){if(t.length>=Yl)break;chunkFBWBSHC4_cjs.jd(n)&&t.push(n);}return t}function wB(e,t){if(e){for(let n of chunkFBWBSHC4_cjs.sd(e.root))if(chunkFBWBSHC4_cjs.id(n)===t)return n}}function l0(e,t,n){let r=chunkFBWBSHC4_cjs.gd(e),o=chunkFBWBSHC4_cjs.hd(e);if(!r||o===null)return null;let a=chunkFBWBSHC4_cjs.Zc(r,o),i=n.displayMode??je,l=Pl(e,i,n.revisionAuthorFilter),s=RB(r,o),d=0,c=Math.max(1,t),u=n.maxFlowHeightPt??Number.POSITIVE_INFINITY,f=n.noteMarks?{...n.noteMarks,activeNoteKey:a}:{marks:new Map,activeNoteKey:a},p=n.ownerPartName?n.drawingsForPart?.(n.ownerPartName):void 0,m=(n.ownerPartName?n.projectLinkForPart?.(n.ownerPartName):void 0)??n.projectLink,g=ui({numberingIndex:n.numberingIndex,styleCascade:n.styleCascade},l).listItems,h=Qo(l,0,c,0,0,{measurer:n.measurer,cache:n.cache,producer:n.producer+(i===je?"":`|rev:${i}`)+(n.revisionAuthorFilter?`|reviewers:${n.revisionAuthorFilter.cacheKey}`:"")+`|${a}`,nextLineId:()=>`${s}-line-${d++}`,styleCascade:n.styleCascade,...g?{listItems:g}:{},noteMarks:f,...m?{projectLink:m}:{},...n.projectFieldLink?{projectFieldLink:n.projectFieldLink}:{},...n.documentProperties?{documentProperties:n.documentProperties}:{},...n.ownerPartName&&n.projectionTokenForParagraphForPart?{projectionTokenForParagraph:O=>n.projectionTokenForParagraphForPart(n.ownerPartName,O)}:{},...n.ownerPartName&&n.projectionTokenForTableForPart?{projectionTokenForTable:O=>n.projectionTokenForTableForPart(n.ownerPartName,O)}:{},...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=h.blocks,x=h.bottom,y;if(b.length>Ec){b=b.slice(0,Ec);let O=b[b.length-1];x=O?O.box.y+O.box.height:0,y="note-fragment-limit";}if(x>u){let O=[],S=0;for(let T of b){let R=T.box.y+T.box.height;if(R>u+.001&&O.length>0)break;O.push(T),S=R;}b=O,x=S,y=y??"note-height-cap";}return {noteKind:r,noteId:o,scopeId:a,noteType:chunkFBWBSHC4_cjs.id(e),fragments:b,flowHeight:x,...y?{fallbackReason:y}:{}}}function i0(e,t,n,r){if(!e)return null;let o=chunkFBWBSHC4_cjs.ud(e.root,t);return o?l0(o,n,{...r,ownerPartName:e.name}):null}function Ul(e,t,n,r,o){if(!o)return i0(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=i0(e,t,n,r);return o.set(a,l),l}function kB(e,t){return "single"}function vB(e,t,n){let r=Pl(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(Gr(a)).length>0||!TB(o))return false}return true}function TB(e){for(let t of e.children)if(t.kind!=="textValue"&&t.kind!=="paragraphProperties"){if(t.kind==="run"){if(!IB(t))return false;continue}return false}return true}function IB(e){for(let t of e.children)if(t.kind!=="textValue"&&t.kind!=="runProperties"&&!(chunkFBWBSHC4_cjs.ed(t)||chunkFBWBSHC4_cjs.fd(t)||chunkFBWBSHC4_cjs.dd(t))){if(t.kind==="text"){if(t.children.map(r=>r.value).join("").trim().length>0)return false;continue}return false}return true}function yp(e,t,n,r,o,a){let i=kB(),l=wB(e,t);if(l){if(vB(l,r.displayMode,r.revisionAuthorFilter))return {kind:t,fragments:[],flowHeight:hp,synthetic:false,ruleStyle:i};let s=l0(l,n,{...r,...e?{ownerPartName:e.name}:{}});if(s&&s.flowHeight>0){let d=a??Number.POSITIVE_INFINITY;return s.flowHeight>d+.001?{kind:t,fragments:[],flowHeight:hp,synthetic:true,ruleStyle:i,fallbackReason:"note-separator-height-cap"}:{kind:t,fragments:s.fragments,flowHeight:s.flowHeight,synthetic:false}}}return {kind:t,fragments:[],flowHeight:hp,synthetic:true,ruleStyle:i}}function OB(e,t){let n=Math.max(1,e*PB);return {x:0,y:Math.max(0,(t-.75)/2),width:n,height:.75}}function bp(e,t,n,r){if(e.ruleStyle!==void 0||e.synthetic){let o=OB(n,e.flowHeight);return {x:t+o.x,y:r+o.y,width:o.width,height:Math.max(o.height,e.ruleStyle==="double"?2.25:.75)}}return {x:t,y:r,width:n,height:e.flowHeight}}var s0=new WeakMap,d0=new WeakMap;function FB(e,t,n){let r=e.map(o=>`${o.blockStart}-${o.blockEndExclusive}`).join(",");return `${t};${n?.cacheKey??""};${r}`}function xp(e){let t=zr(e);return t?t.members.map(n=>n.id):[e.id]}function Sp(e){let t=d0.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),d0.set(e,n),n}function CB(e,t){if(e.kind!==t.kind)return false;let n=e.kind==="paragraph"?xp(e):Sp(e),r=t.kind==="paragraph"?xp(t):Sp(t);return n.length===r.length&&n.every((o,a)=>o===r[a])}function c0(e,t,n,r,o){let a=bn(e,n,r),i=FB(t,n,r),l=o?s0.get(o):void 0;if(l?.boundsFingerprint===i&&l.blocks.length===a.length&&a.every((d,c)=>d===l.blocks[c]||CB(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 p=f.kind==="paragraph"?xp(f):Sp(f);for(let m of p)s.set(m,d);}}return o&&s0.set(o,{blocks:a,boundsFingerprint:i,map:s}),s}function Fi(e,t){return Math.max(0,e-14-t)}var ql=.5,u0=2*ql;function Nc(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 f0(e,t,n){n<=0||e.set(t,Math.max(e.get(t)??0,n));}function ao(e){let t=new Map;for(let[n,r]of e)r>0&&t.set(n,r);return t}function Ac(e,t){let n=ao(e),r=ao(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 m0(e,t){let n=ao(e);for(let[r,o]of t)o<=0||n.set(r,Math.max(n.get(r)??0,o));return n}function Ci(e){return [...ao(e)].map(([t,n])=>`${t}=${n}`).sort().join(",")}function MB(e,t){if(e.lines.length===0)return e.box.y+e.box.height<=t+.001?{head:e,tail:null}:{head:null,tail:e};let n=0;for(;n<e.lines.length;n+=1){let g=e.lines[n];if(g.box.y+g.box.height>t+.001)break}if(n===0)return {head:null,tail:e};if(n>=e.lines.length)return {head:e,tail:null};let r=e.lines.slice(0,n),o=e.lines.slice(n),a=r[r.length-1],i=e.box.y,l=a.box.y+a.box.height,s=e.borders?.filter(g=>g.side!=="bottom"),d={...e,range:{paragraphId:e.paragraphId,start:r[0].range.start,end:a.range.end},spacing:{before:e.spacing.before,after:0},lines:r,box:{...e.box,height:Math.max(0,l-i)},...s&&s.length>0?{borders:s}:{borders:void 0},bottomBorder:void 0,...e.shadingBox?{shadingBox:{...e.shadingBox,height:Math.max(0,l-e.shadingBox.y)}}:{}},c=o[o.length-1],u=o[0].box.y,f=c.box.y+c.box.height,p=e.borders?.filter(g=>g.side!=="top"),m={...e,id:`${e.paragraphId}#f${e.fragmentIndex+1}`,fragmentIndex:e.fragmentIndex+1,range:{paragraphId:e.paragraphId,start:o[0].range.start,end:o[o.length-1].range.end},spacing:{before:0,after:e.spacing.after},lines:o,box:{x:e.box.x,y:u,width:e.box.width,height:Math.max(0,f-u)},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:u,width:e.shadingBox.width,height:Math.max(0,f-u)}}:{}};return {head:d,tail:m}}function Zl(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<Ec;u+=1){let f=e.fragments[u],p=f.box.y+f.box.height;if(p<=t+.001){r.push(f),o=p,a=u+1;continue}if(f.kind==="paragraph"){let m=MB(f,t);if(m.head)r.push(m.head),o=m.head.box.y+m.head.box.height,i=m.tail,a=u+1;else {let g=n?.fullContentHeight??t,b=f.lines[0]?.box.height??f.box.height;if(r.length===0&&t>=g-.001&&b>g+.001){n?.reasons?.push("note-line-exceeds-page"),a=u+1,i=null;let x=e.fragments.slice(a),y=x[0]?.box.y??0;return {head:[],headHeight:0,tail:np(x,-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=np(l,-s),c=Wl(d);return {head:r,headHeight:o,tail:d,tailHeight:c}}var io=8,p0=2,BB=Object.freeze({keepNext:false,keepLines:false,widowControl:true});function Pp(e){let t=e?.val;return t!=="0"&&t!=="false"&&t!=="off"}function g0(e){let t=false,n=false,r=true;for(let o of e)switch(o.localName){case "keepNext":t=Pp(o.attributes);break;case "keepLines":n=Pp(o.attributes);break;case "widowControl":r=Pp(o.attributes);break;}return !t&&!n&&r?BB:{keepNext:t,keepLines:n,widowControl:r}}function h0(e,t,n,r,o){if(e<=t)return e;if(r.keepLines&&!o)return t;if(!r.widowControl||n<p0)return e;let a=e;return n-a<p0&&(a-=1),a-t===1&&(a-=1),a<t&&(a=t),a===t&&o?e:a}function y0(e,t,n,r,o){let a=0,i=n;for(let l=t;l-t<io;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 LB(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 EB(e,t,n){let r=e;for(let o=0;o<e.length;o+=1){if(!t(o))continue;let a=n(o);if(a===null)continue;let i=o>0&&n(o-1)===a,l=o+1<e.length&&n(o+1)===a;r===e&&(r=[...e]),r[o]=`${r[o]}~cs~${i?1:0}${l?1:0}`;}return r}function NB(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 AB(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 DB(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<io?(r===e&&(r=[...e]),r[i]=`${e[i]}~kn~${r[a]}`,o+=1):o=0,a=i);return r}function b0(e,t){let n=t.terminalTableGroup,r=n?e.map((a,i)=>i>=n.start&&i<=n.anchorIndex?J([a,n.token]):a):e,o=EB(r,t.contextualSpacingAt,t.styleIdAt);return o=NB(o,t.borderGroupKeyAt),t.tocVerdicts.length>0&&(o=AB(o,a=>t.tocVerdicts[a])),o=LB(o,t.markerTextAt),o=DB(o,t.keepsNextAt,t.skipKeepNextAt),o}var _B=io+1;function x0(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 P of o){let F=Gl(r,P);F.bottom<=F.top||(!a||F.bottom<a.bottom-.001)&&(a=F,i=P);}if(!a||!i)return 0;let l=a.bottom-a.top,s=Vl(t),d=t.contentBox.height;if(d-s<l-.001)return 0;let c,u=0;for(let P of r.fragments){if(P.kind!=="paragraph"||u>=_B)return 0;if(u+=1,gr(P,i.paragraphId,i.atomOffset)){c=P;break}}if(!c)return 0;let f=o.filter(P=>gr(c,P.paragraphId,P.atomOffset));if(f.length===0)return 0;let p=Cc(r),m=Math.max(0,a.bottom-p),g=Math.max(0,rp(c)-p),h=t.contentBox.width,b=Fi(d,e.plainSeparatorHeight),x=0;for(let P of f){let F=Ul(e.footnotesPart,P.noteId,h,e.opts,e.noteLayoutCache);if(!F)continue;let E=Gl(r,P),_=E.evictable?E.bottom-E.blockTop:0;F.flowHeight>b-_+.001||(x+=F.flowHeight);}if(x<=0)return 0;let y=(e.existingAreaHeight>0?e.existingAreaHeight:e.plainSeparatorHeight)+x,O=Math.max(0,d-s-ql);if(!(s+m+l+y<=d+.001))return O;if(s+g+l+y<=d+.001)return 0;let{usedReservePt:R}=e;if(R===void 0)return 0;let w=Math.max(0,d-R-s),k=m+l>w+.001,I=Math.abs(R-O)<=u0;return k&&!I?0:O}var S0=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",projectFieldLink:"pass-projector",documentProperties:"content-fingerprint",refFields:"content-fingerprint",drawingsForPart:"drawing-epoch-guarded",drawingLayoutEpoch:"content-fingerprint"});function Rp(e,t){for(let n of Object.keys(S0))if(S0[n]===t&&e[n]!==void 0)return true;return false}function Dc(e){return `${e.pos},${e.numFmt},${e.numStart},${e.numRestart}`}function P0(e){return Rp(e,"drawing-epoch-guarded")&&e.drawingLayoutEpoch===void 0||Rp(e,"relationship-epoch-guarded")&&e.linkRelsEpoch===void 0||Rp(e,"projection-epoch-guarded")&&e.projectionEpoch===void 0?null:[e.producer,e.displayMode??je,e.revisionAuthorFilter?.cacheKey??"",e.defaultTabStopPt??"",e.compatibilityMode??"",e.drawingLayoutEpoch??"",e.linkRelsEpoch??"",e.projectionEpoch??"",e.refFields?.valuesToken??"",e.documentProperties?JSON.stringify(e.documentProperties):"",Dc(e.documentFootnoteProps),Dc(e.documentEndnoteProps),e.footnotePropsBySection.map(Dc).join(";"),e.endnotePropsBySection.map(Dc).join(";")].join("\0")}var jB=.4;function wp(e,t,n){return e&&chunkFBWBSHC4_cjs.Ld(e,"first")&&n===0?"first":e&&chunkFBWBSHC4_cjs.Ld(e,"even")&&(t+n+1)%2===0?"even":"default"}function R0(e){let{furniture:t,pageHeight:n,marginTop:r,marginBottom:o}=e,a=n*jB,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=wp(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),p=Object.freeze({top:u,bottom:f,height:n-u-f});return i.set(d,p),p}}var kp=new WeakMap;function X$(e){kp.delete(e);}function Jl(e,t){kp.set(e,t);}function vp(e,t,n,r){return kp.get(e)?.(t,n,r)}var aa=24;function w0(e){let{furniture:t,geometry:n,headerDistance:r,footerDistance:o,pageIndexStart:a}=e,i=c=>({x:0,y:c*(n.height+aa),width:n.width,height:n.height}),l=c=>wp(t,a,c),s=(c,u,f)=>{if(!t)return;let p=l(u),m=(c==="header"?t.headers:t.footers).get(p);if(!m)return;let g=w=>{let k=c==="header"?f.y+r:f.y+n.height-o-w.flowHeight;return {kind:c,variant:p,partName:w.partName,...w.part?{part:w.part}:{},...w.rId?{rId:w.rId}:{},box:{x:f.x+n.margin.left,y:k,width:e.contentWidth,height:w.flowHeight},fragments:w.fragments,...w.anchoredDrawings?{anchoredDrawings:w.anchoredDrawings}:{}}},h=a+u+1,b={pageNumber:h,pageCount:Math.max(h,e.pageCount()+1),sectionPageCount:u+1},x=e.insetsFor(u),y=w=>{let k=m;for(let I=0;I<8;I+=1){let P=c==="header"?r:n.height-o-k.flowHeight,F={...w,contentInsetTop:x.top,contentInsetBottom:x.bottom,storyTop:P},E=m.withPageContext(F);if(Math.abs(E.flowHeight-k.flowHeight)<=.001)return E;k=E;}throw new Error("header/footer attached-page anchor layout did not converge")},O=m.pageFieldNeeds,T=_r(O)||(m.anchoredDrawings?.length??0)>0?y(b):m,R=g(T);return _r(O)?{...R,pageFieldProjector:w=>g(y(w))}:R};return {pageBox:i,variantFor:l,furnitureFor:s,overflowShellAt:(c,u)=>{let f=c-a,p=s("header",f,u),m=s("footer",f,u);return {insets:e.insetsFor(f),...p?{header:p}:{},...m?{footer:m}:{}}}}}function k0(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:ra(n,r,t);return t+=n.box.height+aa,i})}function v0(e){if(e.kind!=="tableRow")return null;let t=e.children.find(a=>a.namespaceUri===chunkFBWBSHC4_cjs.da&&a.localName==="trPr");if(!t)return null;let n=null;for(let a of t.children)if(a.kind!=="textValue"&&a.namespaceUri===chunkFBWBSHC4_cjs.da&&!(a.localName!=="ins"&&a.localName!=="del")){n=a;break}if(!n)return null;let r=a=>n.attributes.find(i=>i.namespaceUri===chunkFBWBSHC4_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 T0(e,t,n){let r=[];for(let o of e){let a=qt(o)?on(o):v0(o);if(a){if(r.length>=td)return false;r=pn(r,a);}}return He(r,t,n)}function I0(e){let t=[];for(let n of e){let r=qt(n)?on(n):v0(n);r&&t.push([r.kind,r.nodeId,r.author]);}return JSON.stringify(t)}function _c(e){return `${e.noteKind}|${e.noteId}|${e.paragraphId}|${e.customMarkFollows?1:0}|${e.sectionIndex}`}function O0(e){return e.map(t=>`${_c(t)}|${t.atomOffset}`).join(";")}function Tp(e){return e.map(_c).join(";")}function Ip(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||_c(r)!==_c(o))return false}return true}var z0=64,W0=8,C0=z0+2*W0,V0=4096,HB=256,M0=12,B0=new WeakMap;function zB(e,t,n){if(!e)return {memo:null,allHits:t,reused:false};let r=P0(n);if(r===null)return e.notes=null,{memo:null,allHits:t,reused:false};let o=O0(t),a=null,i=e.notes;if(i){let s=B0.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?Tp(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??Tp(t),inputFingerprint:r,allHits:t,provisionalMarks:nw(t,n),finalMarks:null,settledReserves:null,reflowSpent:null,pageAttach:new WeakMap,pageReserve:new WeakMap};return B0.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 IK(e,t){return t>=e.range.start&&t<e.range.end}var L0=new WeakMap;function G0(e){let t=L0.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),L0.set(e,n),n}var E0=new WeakMap;function $0(e){let t=E0.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 E0.set(e,n),n}var N0=new WeakMap;function jc(e,t,n){let r=G0(e.fragments);if(!n)return t.filter(l=>r.some(s=>gr(s,l.paragraphId,l.atomOffset)));let o=N0.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 Ba(l)){let d=n.get(s);if(d)for(let c of d)i.has(c)||gr(l,s,c.atomOffset)&&(i.add(c),a.push(c));}return N0.set(e.fragments,{refIndex:n,result:a}),a}function K0(){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=yp(t,n,r,i,o,a);return e.set(d,u),u.fallbackReason&&l.push(u.fallbackReason),u}}}function X0(e){return e==="sectEnd"||e==="docEnd"}var A0=new WeakMap;function Y0(e){let t=A0.get(e);return t||(t=new Map,A0.set(e,t)),t}function U0(e,t,n,r,o,a,i,l){if(e)return e.get(t,n,r,o,a,i,l);let s=yp(t,n,r,i,o,a);return s.fallbackReason&&l.push(s.fallbackReason),s}function WB(e,t){let n=[];for(let r of e){if(n.length>=Yl)break;n.push({...r,sectionIndex:t.get(r.paragraphId)??0});}return n}function ia(e,t){return e.footnotePropsBySection[t]??e.footnotePropsBySection[0]??e.documentFootnoteProps}function Op(e,t){return e.endnotePropsBySection[t]??e.endnotePropsBySection[0]??e.documentEndnoteProps}function Fp(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,documentProperties:e.documentProperties,refFields:e.refFields,noteMarks:t,drawingsForPart:e.drawingsForPart,projectionTokenForParagraphForPart:e.projectionTokenForParagraphForPart,projectionTokenForTableForPart:e.projectionTokenForTableForPart}}function VB(e,t){let n="FootnoteReference";if(!t)return {...Tn,verticalAlign:"superscript"};let r=si([],[{localName:"rStyle",attributes:{val:n}}],t);return Ae(r,t.themeFonts)}function GB(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=ia(t,c);if(u.numRestart==="eachPage"){i=true;for(let p=0;p<M0;p+=1){let m=zn(u.numFmt,u.numStart+p);m.length>0&&o.add(m);}}let f=Op(t,c);if(f.numRestart==="eachPage"){i=true;for(let p=0;p<M0;p+=1){let m=zn(f.numFmt,f.numStart+p);m.length>0&&o.add(m);}}}if(!i||o.size===0)return;let l=VB("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 q0(e,t,n){let r=fi("footnote",e,l=>ia(n,l)),o=fi("endnote",t,l=>Op(n,l)),a=new Map;for(let l of r)a.set(gi("footnote",l.noteId),l.mark);for(let l of o)a.set(gi("endnote",l.noteId),l.mark);let i=GB(a,n,e,t);return {marks:a,...i?{reservedMarkText:i}:{}}}function $B(e,t){if(t.marks.size===0)return e;let n=false,r=e.pages.map(o=>{if(!KB(o.fragments))return o;let a=Z0(o.fragments,t);return a===o.fragments?o:(n=true,{...o,fragments:a})});return n?{...e,pages:r}:e}var D0=new WeakMap;function KB(e){let t=D0.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),D0.set(e,n),n}function Z0(e,t){let n=false,r=e.map(o=>{if(o.kind==="paragraph"){let l=XB(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=Z0(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 XB(e,t){let n=false,r=e.lines.map(o=>{let a=YB(o,t);return a!==o&&(n=true),a});return n?{...e,lines:r}:e}function YB(e,t){let n=false,r=e.spans.map(o=>{let a=UB(o,t);return a!==o&&(n=true),a});return n?{...e,spans:r}:e}function UB(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 qB(e){return e.footnotes?Math.max(0,Math.min(e.contentBox.height,e.footnotes.box.y-e.contentBox.y)):e.contentBox.height}function J0(e){return !(e.noteStream==="footnote-drain"||e.fragments.length===0&&(e.footnotes?.notes.length??0)>0)}function ZB(e){for(let t=e.length-1;t>=0;t-=1)if(J0(e[t]))return t;return Math.max(0,e.length-1)}function Cp(e,t,n,r,o,a,i,l){let s=new Map(a),d=t.filter(A=>A.noteKind==="footnote"),c=e.contentBox.width,u=Fp(n,r),f=[],p=0,m=V0,g=a.size>0?"continuationSeparator":"separator",h=Math.max(0,e.contentBox.height),b=A=>U0(l?.separatorCache,n.footnotesPart,A,c,"footnote",h,u,i),x=b(g),y=Vl(e),O=Math.max(0,e.contentBox.height-y-x.flowHeight),S=Fi(e.contentBox.height,x.flowHeight),T=l?.reserveColumnBudget?S:O,w={fullContentHeight:Math.max(0,e.contentBox.height-x.flowHeight),reasons:i},k=l?.reserveBandOf?g==="separator"?S:Fi(e.contentBox.height,b("separator").flowHeight):0,I=l?.reserveBandOf?Cc(e):0;for(let[A,D]of a){let H=A.match(/^(footnote|endnote):(-?\d+)$/);if(!H||H[1]!=="footnote")continue;let K=Number(H[2]),$=Math.max(0,T-p);if(D.height<=$+.001)f.push({noteKind:"footnote",noteId:K,scopeId:A,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:D.height},fragments:D.fragments}),p+=D.height,s.delete(A);else {let v=Zl({fragments:D.fragments,flowHeight:D.height},$,w);v.head.length>0&&(f.push({noteKind:"footnote",noteId:K,scopeId:A,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:v.headHeight},fragments:v.head}),p+=v.headHeight),v.tail.length>0?s.set(A,{fragments:v.tail,height:v.tailHeight,mark:null}):s.delete(A);}}let P;for(let A of d){if(f.length>=Yl){i.push("note-count-limit");break}let D=l?.reserveBandOf?.(A);if(P!==void 0&&D&&D.evictable&&D.bottom>P+.001)continue;let H=Ul(n.footnotesPart,A.noteId,c,u,l?.noteLayoutCache);if(!H){i.push("missing-note-body");continue}let K=r.marks.get(gi("footnote",A.noteId))??null,$=D?Math.min(T,Math.max(0,e.contentBox.height-Math.max(14,D.bottom)-x.flowHeight)):T,v=Math.max(0,$-p);if(D&&D.evictable&&l?.evictionAllowed!==false&&H.flowHeight>v+.001&&H.flowHeight<=k-(D.bottom-D.blockTop)+.001&&D.top>I+.001&&D.top>=14){P=P===void 0?D.top:Math.min(P,D.top);continue}if(m-=H.fragments.length,m<0){i.push("note-area-fragment-limit");break}if(H.flowHeight<=v+.001)f.push({noteKind:"footnote",noteId:A.noteId,scopeId:H.scopeId,mark:A.customMarkFollows?null:K,box:{x:e.contentBox.x,y:0,width:c,height:H.flowHeight},fragments:H.fragments}),p+=H.flowHeight;else {let Y=Zl(H,v,w);Y.head.length>0&&(f.push({noteKind:"footnote",noteId:A.noteId,scopeId:H.scopeId,mark:A.customMarkFollows?null:K,box:{x:e.contentBox.x,y:0,width:c,height:Y.headHeight},fragments:Y.head}),p+=Y.headHeight),Y.tail.length>0&&s.set(H.scopeId,{fragments:Y.tail,height:Y.tailHeight,mark:null});}}if(f.length===0&&a.size===0)return {area:void 0,nextCarry:s,evictionTopPt:P};let F=x.flowHeight,E=F+p,_=Wl(e.fragments),z;o==="beneathText"?z=e.contentBox.y+Math.max(y,Math.min(_,e.contentBox.height-E)):(z=e.contentBox.y+e.contentBox.height-E,z=Math.max(z,e.contentBox.y+y));let V=z+F,j=f.map(A=>{let D={...A,box:{...A.box,y:V}};return V+=A.box.height,D}),M=bp(x,e.contentBox.x,c,z);return {area:{kind:"footnotes",placement:o==="beneathText"?"beneathText":"pageBottom",box:{x:e.contentBox.x,y:z,width:c,height:E},separator:{kind:g,box:M,fragments:x.fragments,synthetic:x.synthetic,...x.ruleStyle!==void 0?{ruleStyle:x.ruleStyle}:{}},notes:j},nextCarry:s,evictionTopPt:P}}function Q0(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 JB(e){return t=>{let n=vp(e,t.sectionAnchorIndex,t.landingIndex,t.template.box);return QB(t.template,t.landingIndex,t.noteStream,n)}}function QB(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;return {id:`page-${t}`,index:t,box:e.box,contentBox:o,fragments:[],...n?{noteStream:n}:{},...a?{header:a}:{},...i?{footer:i}:{},...e.pageFieldSource?{pageFieldSource:{...e.pageFieldSource,pageNumber:e.pageFieldSource.pageNumber+1}}:{}}}function eL(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=vp(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,p=tL(a,s-a.contentBox.y,u-f);if(!p.fits(s,u))return a;r=true;let{header:m,footer:g,...h}=a;return {...h,contentBox:c,...p.footnotes?{footnotes:p.footnotes}:{},...p.endnotes?{endnotes:p.endnotes}:{},...l.header?{header:l.header}:{},...l.footer?{footer:l.footer}:{}}});return r?o:[...e]}function _0(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 tL(e,t,n){let r=i=>i.placement==="pageBottom"?n:t,o=e.footnotes?_0(e.footnotes,r(e.footnotes)):void 0,a=e.endnotes?_0(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 Mp(e,t){let n=new Set;for(let r of G0(e.fragments))n.add(t.get(r.paragraphId)??0);return [...n].sort((r,o)=>r-o)}function ew(e,t,n){for(let r=e.length-1;r>=0;r-=1)if(Mp(e[r],n).includes(t))return r;return Math.max(0,e.length-1)}function nL(e,t,n){let r=ew(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=Mp(a,n);if(i.length!==0&&!i.includes(t))return o}return e.length}function rL(e,t){let n=k0(e);return [...jr({revision:t,pages:n}).pages]}function oL(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=Fp(n,r),f=l?.separatorKind??"separator",p=M=>M==="footnote"?n.footnotesPart:n.endnotesPart,m=n.endnotesPart??n.footnotesPart,g=Math.max(0,e.contentBox.height),h=U0(l?.separatorCache,m,f,c,"endnote",g,u,i),b=h.flowHeight,x=Wl(e.fragments),y=e.endnotes?Math.max(x,e.endnotes.box.y-e.contentBox.y+e.endnotes.box.height):x,O=qB(e),S=Math.max(0,O-y-b),R={fullContentHeight:Math.max(0,O-b),reasons:i},w=[],k=0,I=V0;for(let[M,B]of a){let A=M.match(/^(footnote|endnote):(-?\d+)$/);if(!A)continue;let D=A[1],H=Number(A[2]),K=Math.max(0,S-k);if(B.height<=K+.001)w.push({noteKind:D,noteId:H,scopeId:M,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:B.height},fragments:B.fragments}),k+=B.height,s.delete(M);else {let $=Zl({fragments:B.fragments,flowHeight:B.height},K,R);$.head.length>0&&(w.push({noteKind:D,noteId:H,scopeId:M,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:$.headHeight},fragments:$.head}),k+=$.headHeight),$.tail.length>0?s.set(M,{fragments:$.tail,height:$.tailHeight,mark:null}):s.delete(M);}}for(let M=0;M<t.length;M+=1){let B=t[M];if(w.length>=Yl){i.push("note-count-limit"),d.push(...t.slice(M));break}let A=p(B.noteKind),D=Ul(A,B.noteId,c,u,l?.noteLayoutCache);if(!D){i.push("missing-note-body");continue}let H=r.marks.get(gi(B.noteKind,B.noteId))??null,K=Math.max(0,S-k);if(I-=D.fragments.length,I<0){i.push("note-area-fragment-limit"),d.push(...t.slice(M));break}if(D.flowHeight<=K+.001)w.push({noteKind:B.noteKind,noteId:B.noteId,scopeId:D.scopeId,mark:B.customMarkFollows?null:H,box:{x:e.contentBox.x,y:0,width:c,height:D.flowHeight},fragments:D.fragments}),k+=D.flowHeight;else {let $=Zl(D,K,R);$.head.length>0&&(w.push({noteKind:B.noteKind,noteId:B.noteId,scopeId:D.scopeId,mark:B.customMarkFollows?null:H,box:{x:e.contentBox.x,y:0,width:c,height:$.headHeight},fragments:$.head}),k+=$.headHeight),$.tail.length>0&&s.set(D.scopeId,{fragments:$.tail,height:$.tailHeight,mark:null}),d.push(...t.slice(M+1));break}}if(w.length===0&&a.size===0)return {area:void 0,nextCarry:s,remainingRefs:d};if(w.length===0)return {area:void 0,nextCarry:s,remainingRefs:d};let P=e.contentBox.y+y,F=P+b,E=w.map(M=>{let B={...M,box:{...M.box,y:F}};return F+=M.box.height,B}),_=bp(h,e.contentBox.x,c,P),z=b+k,V=Math.max(0,O-y),j=Math.min(z,V);return {area:{kind:"endnotes",placement:o,box:{x:e.contentBox.x,y:P,width:c,height:j},separator:{kind:f,box:_,fragments:h.fragments,synthetic:h.synthetic,...h.ruleStyle!==void 0?{ruleStyle:h.ruleStyle}:{}},notes:E},nextCarry:s,remainingRefs:d}}function aL(e,t,n,r,o,a,i,l,s){let d=e,c=t,u=e[Q0(e,e.length-1)].index;for(;c.size>0&&a.remaining>0;){let f=d[d.length-1],p=s({template:f,landingIndex:d.length,noteStream:"footnote-drain",sectionAnchorIndex:u}),m=Cp(p,[],n,r,"pageBottom",c,o,{separatorCache:i,noteLayoutCache:l}),g=m.area?.notes.length??0;if(c=m.nextCarry,g===0){o.push("note-overflow-stalled"),m.area&&(d=[...d,{...p,footnotes:m.area}],a.remaining-=1);break}d=[...d,{...p,footnotes:m.area}],a.remaining-=1;}return c.size>0&&!o.includes("note-overflow-stalled")&&o.push("note-overflow-page-limit"),{pages:d,carry:c}}function iL(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 j0(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 H0(e,t,n,r,o,a,i,l,s){if(n.length===0||e.length===0)return e;let d=e[Q0(e,t)].index,c=[...e],u=[...n],f=new Map,p=t,m=0,g="separator",h=s?.stopBeforeIndex??Number.POSITIVE_INFINITY,b=s?.sectionStartIndex??t,x=s?.stopBeforeIndex!==void 0,y=s?.separatorCache;for(;u.length>0||f.size>0;){if(p>=c.length||p>=h){if(l.remaining<=0){i.push("note-overflow-page-limit");break}let R=c[Math.min(Math.max(p,1),c.length)-1]??c[c.length-1],w=Math.min(p,h,c.length),k=iL(c,w,R,s.mint,d,"endnote-overflow");c=k.pages,p=k.pageIndex,x&&(h=w+1),m+=1,l.remaining-=1;}let O=c[p];if(!J0(O)){p+=1;continue}let S=oL(O,u,r,o,a,f,i,{separatorKind:g,...y?{separatorCache:y}:{},...s.noteLayoutCache?{noteLayoutCache:s.noteLayoutCache}:{}});f=S.nextCarry,u=S.remainingRefs;let T=S.area?.notes.length??0;if(S.area){let R=c[p];c[p]={...R,endnotes:R.endnotes?{...S.area,notes:[...R.endnotes.notes,...S.area.notes],box:{...S.area.box,y:R.endnotes.box.y,height:R.endnotes.box.height+S.area.box.height}}:S.area};}else {if(f.size===0&&u.length===0)break;if(!S.area&&f.size===0&&u.length>0){p+=1,g="separator";continue}}if(T===0&&(f.size>0||u.length>0)&&O.fragments.length===0&&O.noteStream==="endnote-overflow"){i.push("note-overflow-stalled");break}if(f.size>0||u.length>0){g="continuationSeparator",p+=1;continue}break}return (u.length>0||f.size>0)&&(i.includes("note-overflow-stalled")||i.push("note-overflow-page-limit")),x?c=j0(c,b,Math.min(h,c.length)):m>0&&(c=j0(c,b,c.length)),c}function lL(e,t,n,r,o,a){let i=o??null,l=new Map,s=[],d=new Map,c=$0(t),u=K0(),f=Y0(r),p=Fp(n,r),m=y=>y.noteKind==="footnote"&&!X0(ia(n,y.sectionIndex).pos),g=t.some(m),h=y=>jc(y,t,c).filter(m),b=(y,O,S)=>f0(l,y,Math.min(O,S));for(let y=0;y<e.pages.length;y+=1){let O=e.pages[y],S=op(O),R=jc(S,t,c).filter(K=>K.noteKind==="footnote"),w=R.filter(m),k=w[0]?.sectionIndex??0,I=ia(n,k),P=e.pages[y+1],F=a?a.get(O.index)??0:void 0,E=Fi(S.contentBox.height,0),_=K=>g?x0({bodyPage:S,nextPage:P,existingAreaHeight:K,usedReservePt:F,pageBottomRefsOf:h,footnotesPart:n.footnotesPart,opts:p,plainSeparatorHeight:u.get(n.footnotesPart,"separator",S.contentBox.width,"footnote",Math.max(0,S.contentBox.height),p,s).flowHeight,noteLayoutCache:f}):0;if(w.length===0&&d.size===0){b(O.index,_(0),E);continue}if(i&&d.size===0){let K=i.pageReserve.get(O);if(K&&K.marks===r&&Ip(R,K.pageRefs)){for(let $ of K.reasons)s.push($);b(O.index,Math.max(K.reserve,_(K.areaHeight)),E);continue}}let z=d.size===0,V=s.length,{area:j,nextCarry:M,evictionTopPt:B}=Cp(S,w,n,r,I.pos,d,s,{reserveColumnBudget:true,reserveBandOf:K=>Gl(S,K),separatorCache:u,noteLayoutCache:f,evictionAllowed:!P||P.contentBox.width===S.contentBox.width&&P.contentBox.height===S.contentBox.height});d=M;let A=B!==void 0?Math.max(0,S.contentBox.height-B-ql):0,D=j?.box.height??0,H=Math.min(Math.max(D,A),E);i&&z&&d.size===0&&i.pageReserve.set(O,{pageRefs:R,marks:r,reserve:H,areaHeight:D,reasons:s.slice(V)}),b(O.index,Math.max(H,_(D)),E);}let x=true;for(let y of e.pages){let O=l.get(y.index)??0;if(O<=0)continue;if(Vl(y)+O>y.contentBox.height+.5){x=false;break}}return {reserves:l,stable:x,reasons:s}}function sL(e,t,n,r){let o=r?.memo??null,a=[...r?.fallbackReasons??[]],i=r?.paragraphSectionIndex??new Map,l={remaining:HB},s=$0(t),d=K0(),c=JB(e),u=[],f=[];for(let T of e.pages)for(let R of jc(T,t,s)){let w={noteId:R.noteId,sectionIndex:R.sectionIndex,pageIndex:T.index,customMarkFollows:R.customMarkFollows};R.noteKind==="footnote"?u.push(w):f.push(w);}let p=o?[...u,...f].map(T=>`${T.noteId}|${T.sectionIndex}|${T.pageIndex??""}|${T.customMarkFollows?1:0}`).join(";"):"",m;o&&o.finalMarks&&o.finalMarks.sitesFingerprint===p?m=o.finalMarks.marks:(m=q0(u,f,n),o&&(o.finalMarks={sitesFingerprint:p,marks:m}));let g=Y0(m),h=new Map,b=new Map,x=[],y=e.pages.map(T=>{let R=jc(T,t,s),w=R.filter(M=>M.noteKind==="footnote"),k=R.filter(M=>M.noteKind==="endnote");for(let M of k)if(Op(n,M.sectionIndex).pos==="sectEnd"){let A=b.get(M.sectionIndex)??[];A.push(M),b.set(M.sectionIndex,A);}else x.push(M);for(let M of w){let B=ia(n,M.sectionIndex);if(B.pos==="sectEnd"){let A=b.get(M.sectionIndex)??[];A.push(M),b.set(M.sectionIndex,A);}else B.pos==="docEnd"&&x.push(M);}if(o&&h.size===0){let M=o.pageAttach.get(T);if(M&&M.marks===m&&Ip(w,M.pageRefs)){for(let B of M.reasons)a.push(B);return M.attached}}let I=op(T),P=w.filter(M=>{let B=ia(n,M.sectionIndex).pos;return B==="pageBottom"||B==="beneathText"}),F=P[0]?.sectionIndex??0,E=ia(n,F),_,z=h.size===0,V=a.length;if(P.length>0||h.size>0||w.length===0&&!X0(E.pos)){let M=Cp(I,P,n,m,E.pos,h,a,{separatorCache:d,noteLayoutCache:g});_=M.area,h=M.nextCarry;}let j=_?{...I,footnotes:_}:I;if(o&&z&&h.size===0){let M={pageRefs:w,marks:m,attached:j,reserve:0,reasons:a.slice(V)};if(o.pageAttach.set(j,M),j!==T){let B=o.pageReserve.get(T);B&&o.pageReserve.set(j,B);}}return j}),O=y.length;if(h.size>0){let T=aL(y,h,n,m,a,l,d,g,c);y=T.pages,h=T.carry;}if(b.size>0&&y.length>0){let T=[...b.keys()].sort((R,w)=>R-w);for(let R of T){let w=b.get(R),k=ew(y,R,i),I=nL(y,R,i),P=k;for(let F=0;F<=k;F+=1)if(Mp(y[F],i).includes(R)){P=F;break}y=H0(y,k,w,n,m,"sectEnd",a,l,{stopBeforeIndex:I,sectionStartIndex:P,separatorCache:d,noteLayoutCache:g,mint:c});}}return x.length>0&&y.length>0&&(y=H0(y,ZB(y),x,n,m,"docEnd",a,l,{separatorCache:d,noteLayoutCache:g,mint:c})),y.length!==O&&(y=eL(y,e),y=rL(y,e.revision)),{layout:$B({...e,pages:y},m),fallbackReasons:a,noteMarks:m}}function dL(e,t,n){return (t==="all-markup"&&n===void 0?chunkFBWBSHC4_cjs.Pf(e):chunkFBWBSHC4_cjs.Qf(e,{includeReference:(a,i)=>T0(i,t,n),projectionKey:`${t};${n?.cacheKey??""}`,ancestryKey:I0})).map(a=>({noteKind:a.noteKind,noteId:a.noteId,paragraphId:a.paragraphId,atomOffset:a.atomOffset,customMarkFollows:a.customMarkFollows}))}function tw(e,t,n,r,o){let a=n.displayMode??je,i=n.revisionAuthorFilter,l=dL(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=c0(e,t,a,i,n.session),d=WB(l,s),c=zB(n.session,d,r),u=c.memo,f=c.allHits,p=u?.provisionalMarks??nw(f,r),m=n.session?.notePageBottomReserves,g=m?ao(m):new Map,h=[],b=o({...n,noteMarks:p,pageBottomReserves:g}),x=Ci(g),y=c.reused&&u?.settledReserves&&u.settledReserves.part===e&&u.settledReserves.fingerprint===x?u.settledReserves:null;if(y)h=[...y.reasons];else {let S=new Set([x]),T=u&&u.reflowSpent&&u.reflowSpent.part===e?u.reflowSpent:{part:e,adopted:0};u&&(u.reflowSpent=T);let R=0,w=m&&g.size>0?W0:z0,k=b.pages.length,I=Math.max(8,Math.ceil(k/16)),P=0;for(let F=0;F<w;F+=1){let E=lL(b,f,r,p,u,g);if(h=[...E.reasons],E.stable&&Ac(E.reserves,g))break;if(T.adopted>=C0){h.push("note-reflow-exhausted");break}if(P>=I){h.push("note-reflow-exhausted");break}let _=ao(E.reserves);if(Ac(_,g)){h.push("note-reflow-exhausted");break}let z=Ci(_);if(S.has(z)){_=m0(g,E.reserves);let V=Ci(_);if(Ac(_,g)||S.has(V)){h.push("note-reflow-exhausted");break}}g=_,S.add(Ci(g)),T.adopted+=1,R+=1,b=o({...n,noteMarks:p,pageBottomReserves:g}),P=b.pages.length>k?P+1:0,k=b.pages.length,F===w-1&&h.push("note-reflow-exhausted");}u&&(R===0||T.adopted>=C0)&&(u.settledReserves={part:e,fingerprint:Ci(g),reasons:[...h]});}let O=sL(b,f,r,{fallbackReasons:h,paragraphSectionIndex:s,memo:u});return n.session&&(n.session.previous=O.layout,n.session.notePageBottomReserves=ao(g)),O.layout}function nw(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 q0(n,r,t)}function rw(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}:{},...o?{documentProperties:o}:{},...a?{refFields:a}:{},...i?{displayMode:i}:{},...l?{revisionAuthorFilter:l}:{}}}function lo(){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 Bp(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);}function ow(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 aw(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 iw(e,t){return e!==1?"columns":t?.size?JSON.stringify([...t].sort()):"body"}var uL=1584,lw=1e4,fL="http://schemas.openxmlformats.org/wordprocessingml/2006/main";function Ql(e){if(e===void 0||!/^-?\d{1,8}$/.test(e))return null;let t=Number(e)/20;return Math.abs(t)<=uL?t:null}function sw(e){let t=[e],n=0;for(;t.length;){let r=t.pop();if(++n>lw||r.namespaceUri!==fL||["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>lw)return false;for(let o of r.children)o.kind!=="textValue"&&t.push(o);}return true}function dw(e){let t;for(let p of e)p.localName==="framePr"&&(t=p);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(p=>!r.has(p)))return null;let o=n.wrap??"around";if(!["around","none","notBeside"].includes(o))return null;let a=Ql(n.hSpace??"0"),i=Ql(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=Ql(n.x),s=Ql(n.y),d=Ql(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=J(Object.keys(n).sort().map(p=>J([p,n[p]])));return {x:l,y:s,width:d,wrap:o,hSpace:a,vSpace:i,horizontalAnchor:c,verticalAnchor:u,token:f}}function cw(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)}}:{},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=>Yn(l,r,o))}:{}}))}}function uw(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}var fw=new WeakMap;function Lp(e){let t=fw.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 fw.set(e,n),n}function mw(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=Gt(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 mL(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 Ep(e,t){let n=t.pendingPositionedTableTokens,r=e.pendingPositionedTableTokens;return (n===r||n?.length===r?.length&&n?.signature===r?.signature)&&mL(e.positionedTableAnchorSignals,t.positionedTableAnchorSignals??[])}function pw(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:chunkFBWBSHC4_cjs.a(new TextEncoder().encode(J([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 p=r.get(u[f]);p&&d.add(p);}a=s.pendingPositionedTableTokens,l(d),c.splice(0,c.length,...s.positionedTableAnchorSignals??[]);},same(s,d,c,u){return l(c),Ep({pendingPositionedTableTokens:s,positionedTableAnchorSignals:d},{pendingPositionedTableTokens:a,positionedTableAnchorSignals:u})}}}function gw(e,t,n,r,o){let a=Lp(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 p=n.length;o(f.table,l.column,l.anchorY,d);for(let m=p;m<n.length;m++){let g=n[m];g.kind==="table"&&(n[m]={...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 Hc(e){return e.kind==="table"&&e.outOfFlow===true}function hw(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 yw(e,t){for(let n=t;n<e.length;n+=1){let r=e[n];if(!In(r))return true}return false}function Np(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 gL={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",marker:"hashed",tabStops:"hashed",lines:"hashed",box:"hashed"},hL={kind:"covered",floatingWrap:"hashed",id:"hashed",tableId:"hashed",fragmentIndex:"hashed",nestingDepth:"hashed",columnEdges:"hashed",rows:"hashed",box:"hashed"};function xw(e){return Object.keys(e).filter(t=>e[t]==="hashed")}var yL=xw(gL),bL=xw(hL),bw=new WeakMap;function zc(e){let t=bw.get(e);if(t!==void 0)return t;let n=e.kind==="table"?JSON.stringify([Hc(e),...bL.map(r=>e[r])]):JSON.stringify(yL.map(r=>e[r]));return bw.set(e,n),n}function Sw(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&&zc(r)!==zc(o))return false}return true}function Ap(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 Pw=Object.freeze([]),Rw=new Map;function ww(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 kw(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=chunkFBWBSHC4_cjs.a(new TextEncoder().encode(J(e.slice(r,i+1))));n===e&&(n=[...e]);for(let s=r;s<=i;s++)n[s]=J([e[s],l]);r=-1;}return n}function Dp(e,t){return e===t||e?.length===t?.length&&e?.signature===t?.signature}var Wc=class{pending;checkpoint(){return this.pending}restore(t){this.pending=t;}same(t){return Dp(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=chunkFBWBSHC4_cjs.a(new TextEncoder().encode(J([this.pending?.signature??"",t.token,r,String(l.sourceOrder),zc(n)])));this.pending={item:l,previous:this.pending,length:(this.pending?.length??0)+1,signature:s};}publish(t,n,r){if(!this.pending)return [];let o=new Array(this.pending.length);for(let l=this.pending;l;l=l.previous)o[l.length-1]=l.item;let a=new Map,i=o.map(l=>{let s=cw(l.fragment,l.frame,t),d={x:t[l.frame.horizontalAnchor].x+l.frame.x,y:s.box.y,width:l.frame.width,height:s.box.height},c=a.get(l.groupId);if(c){let u=Math.max(c.x+c.width,d.x+d.width),f=Math.max(c.y+c.height,d.y+d.height);c.x=Math.min(c.x,d.x),c.y=Math.min(c.y,d.y),c.width=u-c.x,c.height=f-c.y;}else a.set(l.groupId,d);return {item:l,fragment:s}});return this.pending=void 0,i.map(({item:l,fragment:s})=>({...s,positionedFrame:{anchorId:n,columnIndex:r,groupId:l.groupId,sourceOrder:l.sourceOrder,wrap:l.frame.wrap,hSpace:l.frame.hSpace,vSpace:l.frame.vSpace,box:a.get(l.groupId)}}))}};var vw=new WeakMap;function xL(e){let t=vw.get(e);if(t!==void 0)return t;let n=o=>o.some(a=>a.localName==="pBdr"),r=n(e.docDefaultsParagraph);if(!r){for(let o of e.styles.values())if(n(o.paragraphProperties)){r=true;break}}return vw.set(e,r),r}function Tw(e,t){return !t||!xL(t)?Gr(e):Fd(Sl(t,e).paragraphPropertyNodes)}function Fw(e,t,n,r,o,a){return e.some(i=>{if(i.kind!=="table")return false;let l=Gt(i,t,0,n,r,o,a)?.float;return l!==void 0&&l.ySpec!=="inline"})}function Cw(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=s.columnIndex,f=n.columnLefts?.[u]??0,p=n.columnWidths?.[u]??n.contentWidth,m={sourceKind:"table",drawingNodeId:`table:${l.tableId}`,anchorParagraphId:s.anchorId,anchorModelStart:0,sourceOrder:s.sourceOrder,paintLayer:"inFront",relativeHeight:0,allowOverlap:true,columnIndex:u,y:d.y,verticalBand:{x:d.x-c.left,y:d.y-c.top,width:d.width+c.left+c.right,height:d.height+c.top+c.bottom},input:{mode:d.x-c.left<=f&&d.x+d.width+c.right>=f+p?"topAndBottom":"square",contentBounds:d,polygon:null,clipPolygon:null,wrapDistances:c,effectInsets:{top:0,right:0,bottom:0,left:0},textSide:"bothSides",contentLeft:f,contentRight:f+p}};i||(r??=new Map(t),i=[...t.get(o)??[]],r.set(o,i)),i.push(m);}}return r??t}var Iw=new WeakMap;function Vc(e,t,n){let r;if(!n.inlineDrawingLayout){let d=Iw.get(n);d||Iw.set(n,d=new WeakMap),r=d.get(e),r||d.set(e,r=new Map);let c=r.get(t);if(c!==void 0)return c}let o=Gt(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(d=>d.kind==="tableProperties");if(a&&a.kind!=="textValue"&&a.children.some(d=>d.kind!=="textValue"&&d.localName==="tblOverlap"&&d.attributes.some(c=>c.localName==="val"&&c.value==="never")))return 1/0;let i=0,l=jl(o,0,0,0,e.id,0,{...nr(n),onCellBreakKey:void 0,borderOwnershipBudget:eo(),vMergeResolveBudget:Jo(),nextLineId:()=>`floating-table-probe-${i++}`}),s=Math.max(0,o.float.yPt)+l.bottom+(o.float.distances?.bottom??0);return r?.set(t,s),s}function Mw(e,t,n,r,o,a){if(t.size===0)return 0;let i=0;for(let l of Lp(e).get(n)??[]){if(!t.has(l.table.id))continue;let s=_p(l.table,a.anchorY,r,a.frames,a.earlier,o),d=Vc(l.table,r,o)+s-a.anchorY+Math.min(0,l.float.yPt);i=Math.max(i,d);}return i}function _p(e,t,n,r,o,a){let i=Gt(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((m,g)=>m+g,0),d=l.distances??{top:0,right:0,left:0},c=Zo(l,s,r)-d.left,u=Vc(e,n,a)-Math.max(0,l.yPt)+d.top,f=t+l.yPt-d.top,p=o.flatMap(m=>m.kind==="table"?m.floatingWrap?[]:[m.box]:m.lines.flatMap(g=>[...g.spans.filter(h=>h.text.trim()).map(h=>h.box),...(g.drawings??[]).map(h=>h.paintBounds)])).sort((m,g)=>m.y-g.y);for(let m of p)c<m.x+m.width&&c+s+d.left+d.right>m.x&&f<m.y+m.height&&f+u>m.y&&(f=m.y+m.height);return f+d.top-l.yPt}function Bw(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 Ow=new WeakMap;function Lw(e,t,n){if(!n.pageExclusionZones||!t?.size)return false;let r=Ow.get(n);if(r?.zones!==t){let i=1/0;for(let l of t.values())for(let s of l)i=Math.min(i,n.paragraphOrderIndex?.(s.anchorParagraphId)??s.sourceOrder);r={zones:t,order:i},Ow.set(n,r);}let o=[e],a=0;for(;o.length;){let i=o.pop();if(++a>1e4)return true;if(i.kind==="paragraph"){if(r.order<=(n.paragraphOrderIndex?.(i.id)??Number.MAX_SAFE_INTEGER))return true;continue}if(a+o.length+i.children.length>1e4)return true;for(let l of i.children)l.kind!=="textValue"&&o.push(l);}return false}var Ew=new WeakMap;function Nw(e,t){if(t){let n=Ew.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}Ew.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 Aw(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,p=n.columnWidths?.[u]??n.contentWidth,m={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+p,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:m,effectInsets:{left:0,right:0,top:0,bottom:0},textSide:"bothSides",contentLeft:f,contentRight:f+p}};l??=[...t.get(o)??[]],l.push(h);}l&&(r??=new Map(t),r.set(o,l));}return r??t}function jp(e,t=false){let n=new Set;for(let r of e){let o=new Set;for(let a of r.fragments){if(a.kind!=="paragraph"||!a.positionedFrame)continue;let i=a.positionedFrame,l=i.wrap!=="around"||i.box.x-i.hSpace<=0&&i.box.x+i.box.width+i.hSpace>=r.contentBox.width,s=i.box.y-i.vSpace,d=i.box.y+i.box.height+i.vSpace;(t||l&&d>0&&s<r.contentBox.height&&i.box.height+2*i.vSpace>=r.contentBox.height-.001)&&o.add(i.groupId);}for(let a of r.fragments)a.kind==="paragraph"&&a.positionedFrame&&o.has(a.positionedFrame.groupId)&&n.add(a.paragraphId);}return n}function Dw(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 _w(e,t,n){if(e.listItem!==void 0||e.shading!==void 0)return false;let{top:r,bottom:o,left:a,right:i,between:l}=e.borders;return (r??o??a??i??l)||n&&Vt(e.paragraph,n).length>0?false:t.every(s=>s.drawings.length===0&&!s.pageBreakAfter&&!s.columnBreakAfter&&s.spans.every(d=>d.text.length===0))}function jw(e,t,n,r,o,a,i,l,s,d=0){let c=0,u={...nr(l),cache:void 0,borderOwnershipBudget:void 0,vMergeResolveBudget:void 0,onCellBreakKey:void 0,nextLineId:()=>`probe-progress-${c++}`};return _l(e,t,n,r,o,false,a,i,u,s,d).fitted}var RL="http://schemas.openxmlformats.org/wordprocessingml/2006/main",Hw=8192,wL=32,kL=64,zw=new WeakMap;function vL(e){let t=zw.get(e);if(t!==void 0)return t;let n=e.rows.some(r=>r.cells.some(o=>o.vMergeContinue));return zw.set(e,n),n}var TL=new Set(["p","r","t","tab","br","cr","noBreakHyphen","softHyphen","hyperlink","fldSimple","fldChar","instrText","bookmarkStart","bookmarkEnd","proofErr","pPr","rPr"]);function Hp(e){return e.cells[0]?.logicalGridColumn===void 0?e.cells:[...e.cells].reverse()}function IL(e,t){let n=0;for(let r of e){let o=0;for(let a of Hp(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>Hw||d>wL)return false;if(s.kind==="textValue")continue;if(s.namespaceUri!==RL||!c&&!TL.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>Hw)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 Ww(e,t,n,r,o,a,i,l,s){if(e.cellSpacingPt>0||e.float||t.length===0||t.length>kL||e.columnWidthsPt.length>1024||![r,o,a,i,l].every(Number.isFinite)||vL(e)||(s.pageExclusionZones?.().length??0)>0||!IL([...t,n],e.columnWidthsPt.length))return;let d=t.reduce((T,R)=>T+R.cells.length,n.cells.length);if(s.borderOwnershipBudget&&s.borderOwnershipBudget.intervalsRemaining<d||!n.cantSplit&&n.height.rule!=="exact"&&l>a-o-i+.001)return;let c=t[t.length-1],u=Hp(c),f=Hp(n),p=dc([u,f],e.tableBorders,e.columnWidthsPt.length)[0],m=new Map,g=[];for(let[T,R]of u.entries()){let w=0;for(let k of p[T].edgeSegments??[]){if(k.side!=="bottom")continue;let I=Rr(k.edge);w=Math.max(w,I),g.push({start:k.gridStart,end:k.gridEnd,extent:I});}m.set(R.id,{...no(R.margins,R.borders,R.legacyContentAlignment===true),bottom:R.margins.bottom+w});}let h=0;for(let T of f){let R=0,w=T.gridColumn+T.gridSpan;for(;h<g.length&&g[h].end<=T.gridColumn;)h++;for(let k=h;k<g.length&&g[k].start<w;k++)R=Math.max(R,g[k].extent);m.set(T.id,{...no(T.margins,T.borders,T.legacyContentAlignment===true),top:T.margins.top+R});}if([c,n].every(T=>T.cells.every(R=>{let w=no(R.margins,R.borders,R.legacyContentAlignment===true),k=m.get(R.id);return w.top===k.top&&w.bottom===k.bottom})))return;let b=0,x={...nr(s),cache:void 0,borderOwnershipBudget:void 0,vMergeResolveBudget:void 0,onCellBreakKey:void 0,cellContentInsets:m,nextLineId:()=>`probe-header-border-${b++}`},y=o;for(let T of t){let R=or(T,e.columnWidthsPt,r,y,true,0,x);if(y=R.bottom,R.remainder!==null||y>a+.001)return null}let O=y-o,S=or(n,e.columnWidthsPt,r,y,false,0,x);return S.remainder!==null||S.bottom>a+.001?null:{bodyRowId:n.id,headerHeight:O,bodyHeight:S.bottom-y,deps:{...s,cellContentInsets:m}}}var OL=Number.MAX_SAFE_INTEGER/1024;function Vw(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:p}=t,m=n(),g=Gt(e,m,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",b=t.cursorY,x=h?l():void 0,y=h?()=>OL:o,O=g.columnWidthsPt.reduce((W,ne)=>W+ne,0),S=()=>g.float?Zo(g.float,O,i()):r()+Ol(g,n()),T=S();!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&&x&&(t.cursorY=Np(g.float,0,x));let R=(W,ne=t.cursorY)=>Xm(W,g.columnWidthsPt,T,0,u,g.cellSpacingPt,void 0,u.pageExclusionZones?.().length?ne:void 0),w=[];for(let W of g.rows)if(W.isHeader)w.push(W);else break;let k=0;for(let W of w)k+=R(W,t.cursorY+k);let I=k>(t.unreservedContentHeight?.()??y())+.001,P=!I,F=0,E=t.cursorY,_=[],z=new Map,V=[],j=new Map,M,B,A=(W,ne)=>{ne.cellContentInsets&&j.set(W,ne.cellContentInsets);},D=()=>{if(_.length===0)return;let W=wi(_,g,V,u.borderOwnershipBudget,u.vMergeResolveBudget,void 0,f,u,j),ne=W[W.length-1],ye=Al({kind:"table",...h?{outOfFlow:true}:{},id:`${e.id}#f${F}`,tableId:e.id,fragmentIndex:F,rows:W,box:{x:T,y:E,width:g.columnWidthsPt.reduce((ve,q)=>ve+q,0),height:ne.box.y+ne.box.height-E}},g.columnWidthsPt,0,z),le=ye;if(h&&g.float&&x){let q=Np(g.float,ye.box.height,x)-ye.box.y;if(le=Ri([ye],q)[0],Math.abs(q)>.001){let Pe=Te=>{for(let ae of Te)if(ae.kind==="paragraph")f(ae.paragraphId,q);else for(let Ce of ae.rows)for(let me of Ce.cells)Pe(me.blocks);};for(let Te of ye.rows)for(let ae of Te.cells)Pe(ae.blocks);}}p(le),F+=1,_=[],V=[],j=new Map,M=void 0;},H=(W,ne)=>{if(w.length===0)return;let ye=W?B?.():void 0;if(ye===null)return;let le=ye?.headerHeight??k;if(W&&t.cursorY+le>y()+.001)return;t.cursorY+le>y()+.001&&t.cursorY>0&&(D(),a(),T=S(),E=t.cursorY);let ve=!W&&t.cursorY+le>y()+.001?t.unreservedContentHeight?.()??y():y();if(!W&&t.cursorY+le>ve+.001){I=true,P=false;return}if(W&&!ye&&ne&&!ne(t.cursorY+le))return;let q=ye?.deps??u;for(let Pe of w){let Te=or(Pe,g.columnWidthsPt,T,t.cursorY,W,0,q,g.cellSpacingPt);if(Te.bottom>ve+.001)throw new rr("table-row-overheight",`Table header row ${Pe.id} overflowed the page content box`);_.push(Te.record),A(Te.record,q),V.push(Pe),t.cursorY=Te.bottom;}M=ye;},K=W=>{D(),a(),T=S(),E=t.cursorY,P&&H(true,W);};I||H(false);let $=g.rows.slice(I?0:w.length),v=Ym(g,()=>T,0,u,$),Y,U=0,X=0,ee=(W,ne)=>{Y=$P(v,W,t.cursorY,y()),X=Y?.heightFloorPt??R(ne??$[W]),U=Y?.heightFloorPt??(M?.bodyRowId===$[W]?.id?M.bodyHeight:X);};for(let[W,ne]of $.entries()){I&&W>=w.length&&(P=true),ee(W,ne);let ye=Km(ne),le=false,ve=0,q=false,Pe=()=>M?.bodyRowId===ne.id?M.deps:u;B=()=>le?void 0:Ww(g,w,ne,T,t.cursorY,y(),k,X,u);let Te=Y!==void 0&&Y.detachedSpanHeightPtByCellId===void 0,ae=Ce=>{let me=y(),Se=me-Ce;return Se<=.001?false:!le&&U<=Se+.001?true:!le&&(ne.cantSplit||ne.height.rule==="exact")?false:jw(ne,g.columnWidthsPt,T,Ce,me,le,0,u,ye,g.cellSpacingPt)};for(!Te&&U<=y()+.001&&t.cursorY+U>y()+.001&&t.cursorY>0&&(K(ae),q=true,ee(W));;){if(ve+=1,ve>$m)throw new rr("table-row-fragment-limit",`Table row ${ne.id} exceeded ${$m} page fragments`);let Ce=y()-t.cursorY;if(Ce<=.001&&t.cursorY>0){if(q)throw new rr("table-row-overheight",`Table row ${ne.id} cannot fit after repeated header rows`);K(ae),q=true,ee(W);continue}if(!le&&U<=Ce+.001){let Fe=or(ne,g.columnWidthsPt,T,t.cursorY,false,0,Pe(),g.cellSpacingPt,Y,y());if(Fe.bottom>y()+.001)throw new rr("table-row-overheight",`Table row ${ne.id} overflowed the page content box after placement`);let ce=Fe.remainder!==null;if(_.push(Fe.record),A(Fe.record,Pe()),V.push(ce?Tc(ne,le,true):ne),t.cursorY=Fe.bottom,!ce)break;ye=Fe.remainder,le=true,q=false,K(ae);continue}if(!le&&(ne.cantSplit||ne.height.rule==="exact")){if(t.cursorY>0&&!q){K(ae),q=true,ee(W);continue}let Fe=t.unreservedContentHeight?.()??y();if(Fe>y()+.001&&U<=Fe-t.cursorY+.001){let ce=or(ne,g.columnWidthsPt,T,t.cursorY,false,0,Pe(),g.cellSpacingPt,Y,Fe);if(ce.bottom<=Fe+.001&&ce.remainder===null){_.push(ce.record),A(ce.record,Pe()),V.push(ne),t.cursorY=ce.bottom;break}}throw new rr("table-row-overheight",ne.height.rule==="exact"?`Table row ${ne.id} has w:trHeight hRule=exact taller than the available page content`:`Table row ${ne.id} has w:cantSplit and is taller than the available page content`)}let me=_l(ne,g.columnWidthsPt,T,t.cursorY,y(),false,le,0,u,ye,g.cellSpacingPt,Y);if(!me.fitted&&t.cursorY>0&&!q){K(ae),q=true,ee(W);continue}let Se=t.unreservedContentHeight?.()??y();if(!me.fitted&&t.cursorY<=.001&&!q&&Se>y()+.001){K(ae),q=true,ee(W);continue}if(!me.fitted)throw new rr(me.nestedSplitBlocked?"table-row-split-unsupported":"table-row-overheight",me.nestedSplitBlocked?`Table row ${ne.id} contains a nested table taller than the page content box`:`Table row ${ne.id} has content that cannot fit a page content box`);if(me.bottom>y()+.001)throw new rr("table-row-overheight",`Table row ${ne.id} overflowed the page content box`);let We=me.remainder!==null,Me=Tc(ne,le,We);if(_.push(me.record),V.push(Me),t.cursorY=me.bottom,!We)break;ye=me.remainder,le=true,q=false,K(ae);}}return D(),h&&(t.cursorY=b),{outOfFlow:h}}var Mi="http://schemas.openxmlformats.org/wordprocessingml/2006/main",FL=32,Gw=1e4,$w=1e4;function CL(e){if(e.kind!=="paragraph"||e.listItem||e.shading||e.paragraph.children.some(r=>r.kind==="paragraphProperties"?false:r.kind==="textValue"||r.namespaceUri!==Mi?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>$w||r.namespaceUri!==Mi||["ins","del","moveFrom","moveTo","pPrChange","rPrChange","vanish","webHidden"].includes(r.localName)||n+t.length+r.children.length>$w)return false;for(let o of r.children){if(o.kind==="textValue")return false;t.push(o);}}return true}function ML(e){let t=[e],n=0;for(;t.length;){let r=t.pop();if(++n>Gw||r.namespaceUri!==Mi||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===Mi&&o.localName==="val"&&o.value==="overlap")||n+t.length+r.children.length>Gw)return false;for(let o of r.children)o.kind!=="textValue"&&t.push(o);}return true}function BL(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!==Mi||r.children.length)return false;let o=new Set;for(let a of r.attributes){if(a.namespaceUri!==Mi||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 Kw(e,t,n,r,o,a){let i=e.length-1,l=e[i];if(!l||!CL(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(!ML(f.table)||!BL(f.table))return;let m=Gt(f.table,t,0,n,r,o,a)?.float;if(!m||m.vertAnchor!=="text"||m.ySpec||d.length>=FL)return;d.push(f.table),c.push(f.key),s=u;}if(d.length)return {start:s,anchorIndex:i,tables:d.reverse(),token:J(c)}}function Xw(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(p=>Gt(p,o,0,t.styleCascade,t.displayMode,t.authorFilter,t.deps.compatibilityMode)),l=[],s=n+r,d=0,c={...nr(t.deps),onCellBreakKey:void 0,borderOwnershipBudget:eo(),vMergeResolveBudget:Jo(),nextLineId:()=>`terminal-table-probe-${d++}`};for(let p=0;p<i.length;p+=1){let m=i[p];if(!m?.float||!m.rows.length)return;let g=m.columnWidthsPt.reduce((y,O)=>y+O,0),h=Zo(m.float,g,t.frames),b=n+m.float.yPt;if(![h,b,g].every(Number.isFinite)||g<=0||h<0||h+g>o+.001||b<n||b>a)return;let x=jl(m,h,b,0,e.tables[p].id,0,c);if(!Number.isFinite(x.bottom)||x.bottom>a+.001||l.some(y=>h<y.right&&h+g>y.left&&b<y.bottom&&x.bottom>y.top))return;s=Math.max(s,x.bottom),l.push({left:h,top:b,right:h+g,bottom:x.bottom});}let u=[];return {fragments:i.map((p,m)=>{let g=[];u.push(g);let{left:h,top:b}=l[m];return {...jl(p,h,b,0,e.tables[m].id,0,{...t.deps,onCellBreakKey:y=>g.push(y)}).fragment,outOfFlow:true}}),bottom:s,cellBreakKeys:u}}function zp(e,t,n,r){let o=`line:${e}:${n}:${t}`;return r===void 0?o:`${o}:occ:${r}`}function Yw(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.markPageCount>0&&e.delta+e.markPageCount>0;return t&&r&&!e.hasNoteReserves&&!e.hasExclusionZones}var Bi=1;function Gc(e,t){let n=Math.max(Bi,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(p=>Math.max(Bi,chunkFBWBSHC4_cjs._e(chunkFBWBSHC4_cjs.Ye(p.widthTwips)))),l=o.slice(0,-1).map(p=>Math.max(0,chunkFBWBSHC4_cjs._e(chunkFBWBSHC4_cjs.Ye(p.gapTwips))));let c=l.reduce((p,m)=>p+m,0),u=Math.max(r*Bi,n-c),f=i.reduce((p,m)=>p+m,0);if(f>u){let p=u/f;i=i.map(m=>Math.max(Bi,m*p));}}else {let c=Math.max(0,chunkFBWBSHC4_cjs._e(chunkFBWBSHC4_cjs.Ye(e.gapTwips))),u=Math.min(c,Math.max(0,(n-r*Bi)/(r-1||1)));l=Array.from({length:Math.max(0,r-1)},()=>u);let f=Math.max(Bi,(n-l.reduce((p,m)=>p+m,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 EL=8,Li=[],Uw=new TextEncoder;function NL(e,t){let n=chunkFBWBSHC4_cjs.a(Uw.encode(e===void 0?"undefined":`string:${e}`)),r=chunkFBWBSHC4_cjs.a(Uw.encode(t));return `control-producer:v1:${n}:${r}`}function Jw(e,t){let n=Li.findIndex(o=>o.base===e&&o.token===t);if(n>=0){let[o]=Li.splice(n,1);return Li.push(o),o.producer}let r=NL(e,t);return Li.push({base:e,token:t,producer:r}),Li.length>EL&&Li.shift(),r}var qw=new WeakMap,Zw=null;function AL(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 Qw(e,t,n,r,o,a,i,l){let s=t?qw.get(t):Zw;if(AL(s,e,n,r,o,a,i,l))return s.producer;let d=(e??"unversioned-measurer")+(t?`|sc:${t.cacheToken}`:"")+(n?`|nm:${IS(n)}`:"")+(r!==void 0?`|dts:${r}`:"")+(o===je?"":`|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?qw.set(t,c):Zw=c,d}var $c=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]:Pw,anchorPageDeferCounts:i.size>0?new Map(i):Rw,...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 ek(e,t){return e.cursorY===t.cursorY&&e.previousSpaceAfter===t.previousSpaceAfter&&e.flowColumnIndex===t.flowColumnIndex&&Sw(e.pageFragments,t.pageFragments)&&Dp(e.pendingParagraphFrames,t.pendingParagraphFrames)&&Ap(e.pendingAnchoredDrawings,t.pendingAnchoredDrawings)&&Ap(e.deferredAnchoredDrawings,t.deferredAnchoredDrawings)&&ww(e.anchorPageDeferCounts,t.anchorPageDeferCounts)&&Ep(e,t)}function tk(e,t,n){return J([...e].map(([r,o])=>`${n}${r}=${o.flowHeight}`).sort())}function ok(e){return e?`hf:${e.titlePage?1:0}${e.evenAndOddHeaders?1:0};h:${tk(e.headers,false,"h")};f:${tk(e.footers,false,"f")}`:""}function Kc(e,t,n){if(e.sectionFurniture)return e.sectionFurniture[t];if(t===n-1)return e.furniture}function DL(e,t){let n=e.map((r,o)=>{let a=qr(r.properties),i=Kc(t,o,e.length),l=r.properties.pageNumbering,s=l?`pn:${J([l.start??"",l.fmt??"",l.chapStyle??"",l.chapSep??""].map(String))}`:"pn:",d=r.properties.columns,c=`cols:${d.count},${d.gapTwips},${d.equalWidth===false?0:1},${d.separator?1:0};${(d.definitions??[]).map(u=>`${u.widthTwips}/${u.gapTwips}`).join(",")}`;return J([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,ok(i),s,c].map(String))});return J(n)}function _L(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},()=>lo()),spans:[],previousRemapped:[],previousFinalized:null,previousPageCount:-1,previousPageRefToken:""};return e.multi=o,o}function jL(e){return e!=="continuous"}function HL(e,t){return e.width===t.width&&e.height===t.height}function zL(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 WL(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 nk(e,t,n){e.previous=t,e.startLineCounter=0,e.endLineCounter=n,e.keys=[],e.checkpoints=[],e.context="",e.producer="";}var rk=new WeakMap;function VL(e,t,n,r,o,a){let i=rk.get(e);if(i&&i.globalIndex===t&&i.sheetY===n&&i.pageNumber===r&&i.sectionPageCount===o&&i.format===a)return i.published;let l=ra(e,t,n),s=_a([l],r,o,a)[0];return rk.set(e,{globalIndex:t,sheetY:n,pageNumber:r,sectionPageCount:o,format:a,published:s}),s}function ak(e,t,n,r,o){let{session:a,...i}=r,l=DL(t,r),s=_L(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=[],p=[],m=0,g=0,h=0,b=0,x=0,y=0,O=0,S=true,T=[],R=null,w="",k=1;for(let E=0;E<t.length;E+=1){let _=t[E],z=e.slice(_.blockStart,_.blockEndExclusive),V=qr(_.properties),j=Kc(r,E,t.length),M=u.length,B=m,A=s?.spans[E],D=ok(j);if(z.length===0&&!jL(_.properties.breakType)){p.push({startIndex:M,pageCount:0,sheetY:B,remappedPages:[],sourcePages:[]});continue}let H=E>0&&_.properties.breakType==="continuous"&&u.length>0&&S&&R!==null&&HL(R,V)&&w===D,K=s?.sections[E],$=_.properties.columns.count>1&&t[E+1]?.properties.breakType==="continuous",v=H?zL(u[u.length-1]):void 0,Y=_.properties.pageNumbering?.fmt,U=H?u[u.length-1]?.pageFieldSource?.format:void 0,X=H&&!Dr("PAGE",U)?U:Y,ee=o(z,n,{...i,retainKeys:d,geometry:V,furniture:j,sectionColumns:_.properties.columns,...$?{balanceColumns:$}:{},lineCounterStart:g,pageIndexStart:H?M-1:M,...H?{flowStartY:y,spaceBeforeCarry:O}:{},...v?{continuedPageInsets:v}:{},...X!==void 0?{bodyPageNumberFormat:X}:{},...K?{session:K}:{}});T.push({startIndex:M,at:ee.overflowShellAt}),g=ee.lineCounter,y=ee.endCursorY,O=ee.endSpaceAfter,S=ee.endsOpenPage,R=V,w=D,K?(h+=K.stats.placed,b+=K.stats.total):(h+=z.length,b+=z.length);let W=K!==void 0&&K.stats.placed===0&&K.stats.reusedPages===ee.pages.length&&A!==void 0&&A.pageCount===ee.pages.length&&A.sourcePages.length===ee.pages.length&&A.sourcePages.every((ae,Ce)=>ae===ee.pages[Ce]),ne=A!==void 0&&A.startIndex===M&&A.sheetY===B&&A.remappedPages.length===ee.pages.length,ye=_.properties.pageNumbering,le=ye?.start!==void 0?ye.start:k,ve=ye?.fmt,q=A?.remappedPages[0],Pe=A===void 0||A.remappedPages.length===0||q?.pageFieldSource!==void 0&&q.pageFieldSource.pageNumber===le&&q.pageFieldSource.sectionPageCount===A.remappedPages.length&&q.pageFieldSource.format===ve,Te;if(H){let ae=u.length-1,Ce=u[ae],me=WL(Ce,ee.pages[0]);if(me!==Ce){u[ae]=me;let Me=f.lastIndexOf(Ce);Me!==-1&&(f[Me]=me);}let Se=[];for(let Me of ee.pages.slice(1)){let Fe=ra(Me,u.length+Se.length,m);Se.push(Fe),m=Fe.box.y+Fe.box.height+aa;}let We=Se.length+1;Te=_a(Se,le+1,We,ve);for(let Me of Te)u.push(Me),f.push(Me);k=le+We;}else if(W&&ne&&Pe){Te=A.remappedPages,x+=Te.length;for(let ae of Te)u.push(ae),f.push(ae),m=ae.box.y+ae.box.height+aa;k=le+Te.length;}else {let ae=[];for(let Ce of ee.pages){let me=VL(Ce,u.length+ae.length,m,le+ae.length,ee.pages.length,ve);ae.push(me),m=me.box.y+me.box.height+aa;}Te=ae;for(let Ce of Te)u.push(Ce),f.push(Ce);k=le+Te.length;}p.push({startIndex:M,pageCount:Te.length,sheetY:B,remappedPages:Te,sourcePages:ee.pages});}if(u.length===0){let E=qr(t[0]?.properties??Mn),_=o([],n,{...i,retainKeys:d,geometry:E,sectionColumns:t[0]?.properties.columns??Mn.columns});c();let z=jr({revision:n,pages:_.pages});return Jl(z,(V,j,M)=>_.overflowShellAt(j,M)),s&&(s.spans=[],s.previousRemapped=_.pages,s.previousFinalized=z,s.previousPageCount=z.pages.length,s.previousPageRefToken=Xu(_.pages)),a&&(nk(a,z,g),a.stats={placed:0,total:0,reusedPages:0,fullPasses:a.stats.fullPasses+1}),z}let I=jr({revision:n,pages:u}),P=I,F=Xu(u);if(s?.previousFinalized&&s.previousPageCount===I.pages.length&&s.previousRemapped.length===f.length&&s.previousPageRefToken===F){let E=s.previousFinalized.pages,_=s.previousRemapped,z=I.pages.map((V,j)=>f[j]===_[j]&&E[j]?E[j]:V);P={...I,pages:z};}return s&&(s.spans=p,s.previousRemapped=f,s.previousFinalized=P,s.previousPageCount=P.pages.length,s.previousPageRefToken=F),a&&(nk(a,P,g),a.stats={placed:h,total:b||1,reusedPages:x,fullPasses:a.stats.fullPasses+(h===b&&x===0?1:0)}),Jl(P,(E,_,z)=>{let V=T[0];for(let M of T)M.startIndex<=E&&(V=M);return (V??T[T.length-1])?.at(_,z)}),c(),P}function ik(e,t,n){let r=t.lefts.map(()=>n);for(let o of e.fragments){if(In(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 GL=.25,$L=20;function lk(e,t,n,r){let o=Gc(n.sectionColumns??Mn.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 b=h.pages[0],x=b?Math.max(...ik(b,o,i)):h.endCursorY;return a&&(a.endCursorY=x),{...h,endCursorY:x}};if(a&&a.balanceLimit!==null){let h=a.balanceLimit,b=r(e,t,{...n,columnRegionBottom:h});if(a.stats.placed===0&&a.stats.reusedPages===b.pages.length)return a.balanceLimit=h,s(b)}let d=r(e,t,l);if(d.pages.length!==1||!d.endsOpenPage)return a&&(a.balanceLimit=null),r(e,t,n);let c=ik(d.pages[0],o,i),u=c.reduce((h,b)=>h+Math.max(0,b-i),0);if(u<=0)return a&&(a.balanceLimit=null),r(e,t,n);let f=i+u/o.count,p=Math.max(...c)+.01,m=h=>{try{let b=r(e,t,{...l,columnRegionBottom:h});return b.pages.length===1&&b.endsOpenPage}catch{return false}};for(let h=0;h<$L&&p-f>GL;h+=1){let b=(f+p)/2;m(b)?p=b:f=b;}let g=r(e,t,{...n,columnRegionBottom:p});return a&&(a.balanceLimit=p),s(g)}var XL=2,sk=new WeakMap,dk=new WeakMap;function Wp(e){if(e===void 0||e.size===0)return "";let t=dk.get(e);if(t!==void 0)return t;let n=[...e].join(",");return dk.set(e,n),n}function YL(e){let t=Wp(e.chrome),n=Wp(e.placeholder),r=Wp(e.suppressed);return t===""&&n===""&&r===""?"":`${t}|${n}|${r}`}function UL(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 zY(e,t,n){let r=n.displayMode??je,o=n.revisionAuthorFilter,a=bn(e,r,o),i=Yo(e,a).sections,l=Ii(e),s={...n,displayMode:r,producer:Jw(n.producer,l),tocFieldChromeParagraphIds:n.tocFieldChromeParagraphIds??WR(e),emptyTocPlaceholderParagraphIds:n.emptyTocPlaceholderParagraphIds??VR(e),emptyTocSuppressedResultParagraphIds:n.emptyTocSuppressedResultParagraphIds??GR(e)},d=n.drawingSourceOrder;!d&&n.inlineDrawingLayout&&(d=aR(e,n.inlineDrawingLayout));let c=n.session?$x(d?{...s,drawingSourceOrder:d}:s,a,n.session):ui(d?{...s,drawingSourceOrder:d}:s,a),u=nm(a,c.listItems,n.notes?{footnotesPart:n.notes.footnotesPart,endnotesPart:n.notes.endnotesPart}:void 0,n.notes?oS(n.notes,i):void 0,r,o),f=u===null?c:{...c,refFields:u},p=h=>{if(i.length>1)return ak(a,i,t,h,Xc);let b=i[0],x=h.geometry??(b?qr(b.properties):Ks),y=Kc(h,0,i.length)??h.furniture,O=b?.properties.pageNumbering,S=Xc(a,t,{...h,geometry:x,furniture:y,sectionColumns:b?.properties.columns??Mn.columns,...O?.fmt?{bodyPageNumberFormat:O.fmt}:{}}),T=O,R=mp({revision:S.layout.revision,pages:_a(S.pages,T?.start??1,S.pages.length,T?.fmt)},S.layout),w=jr(R);return Jl(w,(k,I,P)=>S.overflowShellAt(I,P)),h.session&&(h.session.multi=null,h.session.previous=w),w},m=h=>{let b=h;if(h.displayMode!==r){let{contentControls:y,controlContextToken:O,...S}=h;b={...S,displayMode:r,...y!==void 0?{contentControls:y}:{},...O!==void 0?{controlContextToken:O}:{}};}let x=pp(b,e,l);return n.session&&(n.session.previous=x),x};if(!n.notes)return n.session&&(n.session.notes=null,n.session.notePageBottomReserves=null),m(p(f));let g=rw(n.notes,u?{...n,refFields:u}:n);return m(tw(e,i,f,g,p))}function qL(e,t,n){let r=n.geometry,o=n.cache?.keyFor?.bind(n.cache)??md,a=r.width-r.margin.left-r.margin.right,i=Gc(n.sectionColumns??Mn.columns,a);if((n.inlineDrawingLayout||Nw(e,n.styleCascade)||Fw(e,a,n.styleCascade,n.displayMode??je,n.revisionAuthorFilter,n.compatibilityMode))&&n.drawingExclusionPass===void 0&&!n.drawingExclusionConverged){let L=ge=>{let we=n.inlineDrawingLayout?.projectionForAtom?.(ge)?.drawingNodeId??ge;return n.drawingSourceOrder?.get(we)},G=Object.freeze({columnCount:i.count,columnGapPt:i.gaps[0]??0,contentWidth:a,columnLefts:i.lefts,columnWidths:i.widths}),Q=(ge,we=false)=>{let Ue=n.inlineDrawingLayout?we?ix(ge,n.inlineDrawingLayout,n.drawingLayoutEpoch,a,n.drawingSourceOrder,G):Ef(ge,n.inlineDrawingLayout,a,L,G):new Map;return Aw(ge,Cw(ge,Ue,G),G)},te=new Map,xe=null,Ne=false,Oe=new Set,De=ge=>(Xc(e,t,ge)),he=ge=>{let we=jp(ge.pages);if(we.size===0)return null;let Ue=n.paragraphFrameFallbackRound??0,ke=new Set(n.disabledParagraphFrameIds);for(let Nn of Ue>=3?jp(ge.pages,true):we)ke.add(Nn);let et=n.session?lo():void 0,un=Xc(e,t,{...n,session:et,disabledParagraphFrameIds:ke,paragraphFrameFallbackRound:Ue+1});return n.session&&et&&Bp(n.session,et),un},lt=n.session?.previous?.pages;if(lt){te=Q(lt,true),xe=De({...n,drawingExclusionPass:0,drawingExclusionZonesByPage:te});let ge=he(xe);if(ge)return ge;if(xe.pages===lt)return xe;let we=Q(xe.pages,true);if(Hd(te,we))return xe;te=new Map(we),Oe.add(zd(we));}let Qe=(ge,we)=>(n.session&&we&&Bp(n.session,we),ge),Z=ge=>{let we=n.session?lo():void 0;return Qe(De({...n,session:we,drawingExclusionConverged:true,drawingExclusionZonesByPage:ge}),we)};for(let ge=0;ge<Ho;ge+=1){let we=n.session?lo():void 0;xe=De({...n,session:we,drawingExclusionPass:ge,drawingExclusionZonesByPage:te});let Ue=he(xe);if(Ue)return Ue;let ke=Q(xe.pages);if(ke.size===0)return ge===0&&te.size===0?Qe(xe,we):Z(ke);if(Hd(te,ke))return Qe(xe,we);let et=zd(ke);if(Oe.has(et)){Ne=true,te=ke;break}Oe.add(et),te=new Map(ke);}if(!Ne)for(let ge=0;ge<XL&&!Ne;ge+=1){let we=n.session?lo():void 0;xe=De({...n,session:we,drawingExclusionPass:Ho+ge,drawingExclusionZonesByPage:te});let Ue=he(xe);if(Ue)return Ue;let ke=Q(xe.pages),et=zd(ke);if(Hd(te,ke))return Qe(xe,we);if(Oe.has(et)){Ne=true,te=ke;break}Oe.add(et),te=new Map(ke);}if(!Ne)throw new ti(`wrap exclusion reflow did not converge within ${Ho} passes`);return Z(te)}let l=n.measurer,s=n.cache,d=n.styleCascade,c=n.listItems,u=n.refFields,f=n.defaultTabStopPt,p=n.displayMode??je,m=n.revisionAuthorFilter,g=p==="all-markup",h=n.tocFieldChromeParagraphIds,b=n.emptyTocPlaceholderParagraphIds,x=n.emptyTocSuppressedResultParagraphIds,y={chrome:h,placeholder:b,suppressed:x},O=YL(y),S=Qw(n.disabledParagraphFrameIds?.size?J([n.producer??"",J([...n.disabledParagraphFrameIds].sort())]):n.producer,d,n.noteMarks,f,p,m,n.bodyPageNumberFormat,n.compatibilityMode),T=i.widths[0],R=n.furniture,w=r.headerDistance??36,k=r.footerDistance??36,I=n.pageBottomReserves,P=n.session,F=n.lineCounterStart??0,E=CR(R,w,k),_=n.flowStartY??0,z=n.spaceBeforeCarry??0,V=n.pageIndexStart??0,j=R0({...R?{furniture:R}:{},pageHeight:r.height,marginTop:r.margin.top,marginBottom:r.margin.bottom,headerDistance:w,footerDistance:k,pageIndexStart:V,...n.continuedPageInsets?{continuedPageInsets:n.continuedPageInsets}:{}}),M=Object.freeze(n.bodyPageNumberFormat!==void 0?{format:n.bodyPageNumberFormat}:{}),B=P?.previous?P.previous.pages.length+1:1/0,A=n.columnRegionBottom,D=`|cols:${i.widths.join(",")};${i.gaps.join(",")};${i.separator?1:0}${A!==void 0?`;bal:${A}`:""}`,H=n.continuedPageInsets,K=H?`|cont:${H.top},${H.height}`:"",$=L=>`${r.width}x${r.height}|${r.margin.top},${r.margin.right},${r.margin.bottom},${r.margin.left}|fs:${_},${z}${K}${E}${L}${D}`,v=$(Nc(I,V,B)),Y=V&1,U=false,X=null,ee=()=>{U=true;},W=[],ne=w0({...R?{furniture:R}:{},geometry:r,headerDistance:w,footerDistance:k,pageIndexStart:V,contentWidth:a,insetsFor:j,pageCount:()=>W.length}),{pageBox:ye,furnitureFor:le,overflowShellAt:ve}=ne,q=L=>{let G=Math.max(1,j(W.length).height-L);return A!==void 0&&W.length===0?Math.max(1,Math.min(G,A)):G},Pe=()=>q(I?.get(V+W.length)??0),Te=()=>q(0),ae=n.inlineDrawingLayout!==void 0,me=ae?Oc(L=>Fc(L,{measurer:l,producer:S,cache:s,styleCascade:d,...f!==void 0?{defaultTabStopPt:f}:{},compatibilityMode:n.compatibilityMode,...p?{displayMode:p}:{},...m?{revisionAuthorFilter:m}:{},...n.documentProperties?{documentProperties:n.documentProperties}:{},...n.projectLink?{projectLink:n.projectLink}:{},...n.projectFieldLink?{projectFieldLink:n.projectFieldLink}:{},...n.numberingIndex?{numberingIndex:n.numberingIndex}:{},inlineDrawingLayout:n.inlineDrawingLayout,drawingTokenForParagraph:n.drawingTokenForParagraph,projectionTokenForParagraph:n.projectionTokenForParagraph,projectionTokenForTable:n.projectionTokenForTable}),n.numberingIndex,d,p,m):void 0,Se=(L,G)=>{let Q=L.kind==="paragraph"?n.drawingTokenForParagraph?.(L)||n.drawingLayoutToken||"":L.kind==="table"&&n.drawingTokenForParagraph?sR(L,n.drawingLayoutEpoch,n.drawingTokenForParagraph)||n.drawingLayoutToken||"":n.drawingLayoutToken||"",te=L.kind==="paragraph"?n.projectionTokenForParagraph?.(L)??"":L.kind==="table"&&n.projectionTokenForParagraph?n.projectionTokenForTable?.(L)??No(L,n.projectionTokenForParagraph):"",xe=me?.hostedListTokenForParagraph?.(L)??"",Ne=L.kind==="table"?Fy(L,c):c?.get(L.id)?.cacheToken??"",Oe=Ne===""&&xe===""?"":J([Ne,xe]),De=u===void 0?"":L.kind==="table"?hS(L,u):u.tokenForParagraph(L.id),he=sk.get(L);if(he&&he.contentWidth===G&&he.frameEnabled===(i.count===1&&!n.disabledParagraphFrameIds?.has(L.id))&&he.producer===S&&he.drawingToken===Q&&he.projectionToken===te&&he.listToken===Oe&&he.refToken===De&&he.drawingContext===ae)return he.entry;let lt=Qi(Q,ae),Qe;if(L.kind==="table")Qe={kind:"table",table:L,key:o({paragraph:L,properties:[...Oe?[{localName:"list",attributes:{token:Oe}}]:[],...De?[{localName:"refFields",attributes:{token:De}}]:[]],width:G,producer:S,drawingToken:lt,projectionToken:te})};else {let Z=c?.get(L.id),ge=Vo(L,G,d,Z),we=i.count===1&&!n.disabledParagraphFrameIds?.has(L.id)?dw(ge.props):null,Ue=we&&sw(L)?we:void 0;Ue&&(ge=Vo(L,Ue.width,d,Z));let{props:ke,indent:et,available:un,alignment:Nn,spacing:fa,lineSpacing:ou,contextualSpacing:ma,styleId:Ht,outlineLevel:us,shading:fs,inheritedRunProperties:ms,markRunProperties:pa}=ge,Or=Tw(L.children.find(ps=>ps.kind==="paragraphProperties"),d),{tabStops:Fr,properties:dr}=Sc(ge,f,{listToken:Z?.cacheToken,hostedListToken:xe,refToken:De});Qe={kind:"paragraph",...Ue?{frame:Ue}:{},paragraph:L,props:ke,indent:et,available:un,alignment:Nn,spacing:fa,lineSpacing:ou,contextualSpacing:ma,styleId:Ht,outlineLevel:us,borders:Or,borderGroupKey:El({borders:Or,indent:et}),shading:fs,inheritedRunProperties:ms,markRunProperties:pa,tabStops:Fr,keeps:g0(ke),...Z?{listItem:Z}:{},key:o({paragraph:L,properties:dr,width:un,producer:S,drawingToken:lt,projectionToken:te})};}return sk.set(L,{contentWidth:G,frameEnabled:i.count===1&&!n.disabledParagraphFrameIds?.has(L.id),producer:S,drawingToken:Q,projectionToken:te,listToken:Oe,refToken:De,drawingContext:ae,entry:Qe}),Qe},We=(n.drawingTokenForParagraph!==void 0||n.drawingLayoutToken!==void 0)&&n.drawingLayoutEpoch===void 0?null:Qi(n.drawingLayoutEpoch??"",ae),Me=n.projectionTokenForParagraph!==void 0&&n.projectionEpoch===void 0?null:n.projectionEpoch??"",Fe=iw(i.count,n.disabledParagraphFrameIds),ce=P?.prepass,ht=ce!=null&&ce.framePolicy===Fe&&We!==null&&Me!==null&&ce.drawingEpoch===We&&ce.projectionEpoch===Me&&ce.producer===S&&ce.contentWidth===T&&ce.styleCascade===d&&ce.listItems===c&&ce.numberingIndex===n.numberingIndex&&ce.tocToken===O&&ce.refToken===(u?.valuesToken??""),Lt=ht&&ce.bodies.length===e.length&&ce.bodies.every((L,G)=>L===e[G]),En=Lt?ce:ar();function ar(){let L=ht&&i.count===1&&!n.disabledParagraphFrameIds?ce:null,G=ow(e,L,Z=>Se(Z,T)),Q=G.map(Z=>Z.key),te=Kw(G,T,d,p,m,n.compatibilityMode),xe=G.map(Z=>Z.kind==="paragraph"&&Z.keeps.keepNext),Ne=G.map(Z=>Z.kind==="paragraph"?c?.get(Z.paragraph.id)?.markerText:void 0),Oe=G.map(Z=>Z.kind==="paragraph"&&Z.contextualSpacing),De=G.map(Z=>Z.kind==="paragraph"?Z.styleId:null),he=G.map(Z=>Z.kind==="paragraph"?Z.borderGroupKey:""),lt=O===""?[]:G.map(Z=>Z.kind==="paragraph"?UL(Z.paragraph.id,y):""),Qe=b0(kw(Q,G),{terminalTableGroup:te,contextualSpacingAt:Z=>Oe[Z],styleIdAt:Z=>De[Z]??null,borderGroupKeyAt:Z=>he[Z],tocVerdicts:lt,markerTextAt:Z=>Ne[Z],keepsNextAt:Z=>xe[Z],skipKeepNextAt:Z=>G[Z]?.kind==="paragraph"&&!!G[Z].frame});return {framePolicy:Fe,bodies:e,producer:S,contentWidth:T,styleCascade:d,listItems:c,numberingIndex:n.numberingIndex,drawingEpoch:We??"",projectionEpoch:Me??"",prepared:G,keys:Q,paragraphDocumentOrder:L&&aw(L.bodies,e)?L.paragraphDocumentOrder:Gm(G,T,d,p,m,n.compatibilityMode),keepsNext:xe,markerTexts:Ne,tocToken:O,refToken:u?.valuesToken??"",flowKeys:Qe,terminalTextTables:te}}P&&We!==null&&Me!==null&&!Lt&&(P.prepass=En);let{prepared:Be,keys:ir,paragraphDocumentOrder:Ge,keepsNext:Dt,flowKeys:_t,terminalTextTables:$t}=En,Ai=()=>{n.retainKeys!==false&&(n.retainKeys===void 0&&s&&!(s.retentionPassDue?.()??true)||Ey(s,n.retainKeys,ir,Be.flatMap(L=>L.kind==="table"?[L.table]:[])));},dn=P?.previous??null,so=dn!==null&&P!==void 0&&P.context===v&&P.producer===S&&(!P.parityDependent||P.startPageParity===Y),co=i.count===1&&so,Tt=0;if(so){let L=Math.min(_t.length,P.keys.length);for(;Tt<L&&_t[Tt]===P.keys[Tt];)Tt+=1;}let xn=0;if(co){let L=Math.min(_t.length,P.keys.length)-Tt;for(;xn<L&&_t[_t.length-1-xn]===P.keys[P.keys.length-1-xn];)xn+=1;}if(so&&Tt===Be.length&&Be.length===P.keys.length){let L=mp({revision:t,pages:dn.pages},dn),G=F+(P.endLineCounter-P.startLineCounter);return P.previous=L,P.startLineCounter=F,P.endLineCounter=G,P.startPageParity=Y,P.stats={placed:0,total:Be.length,reusedPages:dn.pages.length,fullPasses:P.stats.fullPasses},Ai(),{layout:L,pages:L.pages,lineCounter:G,endCursorY:P.endCursorY,endSpaceAfter:P.endSpaceAfter,endsOpenPage:P.endsOpenPage,overflowShellAt:ve}}let jt=mw(Be,T,d,p,m,n.compatibilityMode),yt=new Set(jt.map(({table:L})=>L.id)),Le=pw(jt,_t),N=[],C=0,re=0,se=()=>i.lefts[C],Re=()=>i.widths[C],Ee=()=>({text:{left:se(),width:Re()},margin:{left:0,width:a},page:{left:-r.margin.left,width:r.width}}),pe=()=>yw(N,re),fe=[],Je=[],Et=new Map,Ke=new Set,Sn=[],Pn=new Set,Nt=0,uo=new Wc,be=_,Tr=_,it=0,Kt=F,ft=z,cn=[],sa=new $c({paragraphFrames:uo,positionedFlow:Le,pendingFloatIds:Ke,floatSignals:Sn,anchorPageDeferCounts:Et}),da=()=>sa.capture({pageCount:W.length,pageFragments:N,pendingAnchoredDrawings:fe,deferredAnchoredDrawings:Je,cursorY:be,lineCounter:Kt,previousSpaceAfter:ft,flowColumnIndex:it}),Ir=0,Qc=0,$e=0,Ve=_===0;if(co&&Tt>0&&Tt<P.checkpoints.length){let L=P.checkpoints[Tt];W.push(...dn.pages.slice(0,L.pageCount)),{pageFragments:N,pendingAnchoredDrawings:fe,deferredAnchoredDrawings:Je,cursorY:be,flowColumnIndex:it,lineCounter:Kt,previousSpaceAfter:ft}=sa.restore(L),C=it,Ir=Tt,Ve=false,$e=W.length,cn.push(...P.checkpoints.slice(0,Tt));}let At=(L,G)=>{let Q=j(W.length).top;for(let te of uo.publish({page:{x:-r.margin.left,y:-Q},margin:{x:0,y:r.margin.top-Q},text:{x:se(),y:G}},L,it))N.push(te);},fo=i.count,lr=se,Qt=L=>Object.freeze({x:i.lefts[it]??0,y:L.y,width:i.widths[it]??T,height:L.height}),mo=()=>Dw({pageNumber:V+W.length+1,onPageParityRead:ee,geometry:r,insets:j(W.length),contentWidth:T,contentHeight:Pe(),ownerPartName:n.inlineDrawingLayout?.ownerPartName??chunkFBWBSHC4_cjs.s}),Qp=()=>jo(mo()),eu=L=>{let G=n.inlineDrawingLayout?.projectionForAtom?.(L)?.drawingNodeId??L;return n.drawingSourceOrder?.get(G)},is=L=>{if(L.length===0)return;for(let Q of L)fe.some(te=>te.drawingNodeId===Q.drawingNodeId)||fe.push(Q.sourceOrder===void 0&&eu(Q.drawingNodeId)!==void 0?Object.freeze({...Q,sourceOrder:eu(Q.drawingNodeId)}):Q);if(!n.inlineDrawingLayout)return;let G=nx(fe,{pageBottom:Pe()});if(fe.splice(0,fe.length,...G.drawings),G.deferred.length>0)for(let Q of G.deferred){let te=(Et.get(Q.drawingNodeId)??0)+1;Et.set(Q.drawingNodeId,te),te>=If?fe.push(Bf(Q,"page-defer-exhausted")):Je.push(Q);}},eg=()=>{if(Je.length===0)return;let L=Je.map(G=>Cf(G,be-G.y));Je=[],is(L);},tg=()=>{},ca=()=>{tg();let L=W.length,G=ye(L),Q=le("header",L,G),te=le("footer",L,G),{usedBottom:xe,hasBodyPageFields:Ne}=Ku(N,Tr),Oe=j(L);W.push({id:`page-${L}`,index:L,box:G,contentBox:{x:G.x+r.margin.left,y:G.y+Oe.top,width:a,height:Oe.height},fragments:N,hasBodyPageFields:Ne,...i.separator?{columnSeparators:i.gaps.map((De,he)=>({x:i.lefts[he]+i.widths[he]+De/2-.375,y:Tr,width:.75,height:Math.max(0,xe-Tr)}))}:{},...fe.length>0?{anchoredDrawings:tx(fe)}:{},...Q?{header:Q}:{},...te?{footer:te}:{}}),N=[],fe=[],be=0,C=0,it=0,Tr=0,re=0;},jk=(L,G)=>L.kind==="paragraph"&&_w(L,G,n.inlineDrawingLayout),ls=()=>{if(C+1<i.count){C+=1,it=C,be=Tr,ft=0,re=N.length;return}ca(),eg();},ua={measurer:l,cache:s,producer:S,onCellBreakKey:L=>{X?.push(L);},nextLineId:(L,G,Q,te)=>(Kt+=1,zp(L,G,Q,te)),pageOccurrenceKey:()=>String(W.length),styleCascade:d,listItems:c,...f!==void 0?{defaultTabStopPt:f}:{},compatibilityMode:n.compatibilityMode,...n.projectLink?{projectLink:n.projectLink}:{},...n.projectFieldLink?{projectFieldLink:n.projectFieldLink}:{},...n.documentProperties?{documentProperties:n.documentProperties}:{},bodyPageFields:M,...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:mo,pageContentClip:Qp,hostedStory:me,publishAnchoredDrawings:is,collectAnchoredDrawings:is,columnBoxForParagraph:Qt,pageExclusionZones:()=>n.drawingExclusionZonesByPage?.get(W.length)??Object.freeze([]),paragraphOrderIndex:L=>Ge.get(L),onAnchorShift:(L,G)=>kf(fe,L,G),onAnchorRepublish:(L,G)=>{for(let Q=fe.length-1;Q>=0;Q-=1)fe[Q].anchorParagraphId===L&&fe.splice(Q,1);fe.push(...G);}}:{},borderOwnershipBudget:eo(),vMergeResolveBudget:Jo(),displayMode:p,...m?{revisionAuthorFilter:m}:{}},tu=L=>Rc(c?.get(L.paragraph.id)??L.listItem,L.indent,l,L.tabStops,L.available,kt(L.props)),ss=new Map,Hk=(L,G)=>{let Q=ss.get(L);Q||(Q=new Set,ss.set(L,Q)),Q.add(G);},ng=L=>{let G=ss.get(L);if(!(!G||!s)){for(let Q of G)s.release?.(Q);ss.delete(L);}},ds=(L,G,Q=0)=>{let te=L.paragraph.id,Ne=!(b?.has(te)??false)&&((h?.has(te)??false)||(x?.has(te)??false)),Oe=L.available,De=lr(),lt=(L.frame?[]:n.drawingExclusionZonesByPage?.get(W.length)??Object.freeze([])).filter(we=>{let Ue=Ge.get(L.paragraph.id),ke=Ge.get(we.anchorParagraphId);if(Ue!==void 0&&ke!==void 0){if(ke>Ue)return false}else {let et=Be.findIndex(un=>un.kind==="paragraph"&&un.paragraph.id===we.anchorParagraphId);if(et<0||et>G)return false}return !(fo>1&&we.columnIndex!==it)}),Qe=De===0?lt:_d(lt,De,0),Z=Un(Qe),ge=null;return s&&!Ne&&(ge=DP(L.key,{exclusionToken:Z,paragraphStartY:be,columnIndex:it,startOffset:Q}),Hk(te,ge)),Pc({paragraph:L.paragraph,paragraphId:te,indentLeft:L.indent.left,available:Oe,measurer:l,cache:s,cacheKey:ge,formatting:L,producer:S,styleCascade:d,tabStops:L.tabStops,flow:{firstLineOffset:Q===0?tu(L):0,startOffset:Q,marginExtent:{left:0,right:L.indent.left+Oe+L.indent.right},...n.projectLink?{projectLink:n.projectLink}:{},...n.projectFieldLink?{projectFieldLink:n.projectFieldLink}:{},...n.documentProperties?{documentProperties:n.documentProperties}:{},bodyPageFields:M,...u?{refFields:u}:{},displayMode:p,...m?{revisionAuthorFilter:m}:{},...n.noteMarks?{noteMarks:n.noteMarks}:{},...n.inlineDrawingLayout?{inlineDrawingLayout:n.inlineDrawingLayout}:{},contentLeft:0,contentRight:fo>1?Re():L.indent.left+Oe+L.indent.right,paragraphStartY:be,...Qe.length>0?{pageExclusionZones:Qe}:{},...Ne?{suppressEmptyPlaceholderLine:true}:{}}})},rg=(L,G)=>(n.drawingExclusionZonesByPage?.get(W.length)??Object.freeze([])).filter(te=>{let xe=Ge.get(L.paragraph.id),Ne=Ge.get(te.anchorParagraphId);if(xe!==void 0&&Ne!==void 0){if(Ne>xe)return false}else {let Oe=Be.findIndex(De=>De.kind==="paragraph"&&De.paragraph.id===te.anchorParagraphId);if(Oe<0||Oe>G)return false}return !(fo>1&&te.columnIndex!==it||!te.sourceKind&&te.anchorParagraphId===L.paragraph.id&&te.input.mode==="topAndBottom")}),og=(L,G,Q,te,xe,Ne,Oe)=>{let De=rg(L,G);if(!n.inlineDrawingLayout||te<=xe)return De;let he=hn(L.paragraph),lt=new Map,Qe=0;for(let ke=xe;ke<te;ke+=1){let et=Q[ke];for(let Nn of he.values())Nn>=et.start&&Nn<et.end&&lt.set(Nn,Qe);let un=Oe.get(ke)??Q[ke].exclusionSkipBefore??0;Qe+=un+Q[ke].height;}if(lt.size===0)return De;let Z=fo>1,ge=L.available,we=lr(),Ue=jd({paragraph:L.paragraph,paragraphId:L.paragraph.id,drawingLayout:n.inlineDrawingLayout,contentLeft:Z?we:0,contentRight:Z?we+Re():L.indent.left+ge+L.indent.right,paragraphStartY:Ne,anchorLineTopByModelStart:lt,columnIndex:it,displayMode:p,...m?{revisionAuthorFilter:m}:{}});return Object.freeze([...De,...Ue])},zk=(L,G,Q,te,xe,Ne,Oe,De)=>{if(n.inlineDrawingLayout){let Z=[...hn(L.paragraph).values()];if(Z.length>0){let ge=Math.min(...Z);if(Oe.end<=ge||Z.some(we=>we>=Oe.start&&we<Oe.end)&&Oe.end<=ge+1)return 0}}let he=og(L,G,Q,te,xe,Ne,De),lt=he.length>0?Xr(be,Oe.height,he):0,Qe=Oe.exclusionSkipBefore??0;return Math.max(lt,Qe)},ag=(L,G=be,Q=false)=>{let te=be,xe={positionTextTable:Q,cursorY:G,columnWidth:Re,columnLeft:se,contentHeight:Pe,unreservedContentHeight:Te,advanceColumn:()=>{be=xe.cursorY,ls(),xe.cursorY=be;},anchorFrames:Ee,verticalAnchorFrames:()=>hw(mo(),G,r.margin.top),styleCascade:d,displayMode:p,...m?{revisionAuthorFilter:m}:{},deps:ua,compatibilityMode:n.compatibilityMode,shiftAnchor:(Oe,De)=>kf(fe,Oe,De),publishFragment:Oe=>N.push(Oe)},Ne=Vw(L,xe);return be=Ne.outOfFlow?te:xe.cursorY,Ne.outOfFlow};tg=()=>gw(jt,Ke,N,Sn,(L,G,Q,te)=>{let xe=C,Ne=it;C=G,it=G,X=[];try{let Oe=_p(L,Q,Re(),Ee(),N.slice(0,te),ua);ag(L,Oe,!0),pd(L,X);}finally{X=null,C=xe,it=Ne;}});let sr=false,nu=Be.length,ru=0;for(let L=Ir;L<Be.length;L+=1){let G=Se(e[L],Re());if(cn[L]=da(),co&&xn>0&&L>=Be.length-xn){let ue=P.checkpoints[L+(P.keys.length-Be.length)];if(ue&&ek(ue,cn[L])){let de=W.length-ue.pageCount;if(Yw({delta:de,titlePage:R?.titlePage===true,evenAndOddHeaders:R?.evenAndOddHeaders===true,parityDependent:P.parityDependent,usedPageParity:U,markPageCount:ue.pageCount,continuedInsets:H!==void 0,hasNoteReserves:I!==void 0,hasExclusionZones:(n.drawingExclusionZonesByPage?.size??0)>0})){let st=de===0?dn.pages.slice(ue.pageCount):dn.pages.slice(ue.pageCount).map((dt,It)=>ra(dt,W.length+It,ye(W.length+It).y));W.push(...st),$e+=st.length,sr=true,nu=L,ru=de,Kt+=P.endLineCounter-ue.lineCounter;break}}}if(Qc+=1,G.kind==="table"){if(Pn.has(G.table.id))continue;if($t?.start===L&&i.count===1&&Ke.size===0&&!N.some(Hc)&&!n.drawingExclusionZonesByPage?.get(W.length)?.length){let ue=Be[$t.anchorIndex];if(ue.kind==="paragraph"){let de=ds(ue,$t.anchorIndex);if(de.length===1&&de[0].spans.length===0){let bt=Ua(ue.spacing.before,ft),st=Xw($t,{cursorY:be+bt,anchorHeight:de[0].height,contentWidth:T,contentHeight:Pe(),frames:Ee(),deps:ua,styleCascade:d,displayMode:p,authorFilter:m});if(st){for(let dt of st.fragments){let It=jt.find(An=>An.table.id===dt.tableId);N.push({...dt,floatingWrap:{anchorId:It.anchorId,columnIndex:it,float:It.float,sourceOrder:It.sourceIndex}});}for(let[dt,It]of $t.tables.entries())Pn.add(It.id),pd(It,st.cellBreakKeys[dt]);Nt=st.bottom;continue}}}}if(yt.has(G.table.id)&&!Lw(G.table,n.drawingExclusionZonesByPage,ua)&&Vc(G.table,Math.min(...i.widths),ua)<=Pe()){Le.add(Ke,G.table.id);continue}X=[];try{ag(G.table)||(ft=0),pd(G.table,X);}finally{X=null;}continue}let Q=G.frame,{paragraph:te,props:xe,spacing:Ne,contextualSpacing:Oe,styleId:De,borders:he,shading:lt,keeps:Qe}=G,{indent:Z,alignment:ge,markRunProperties:we}=G,Ue=kt(G.props),ke=G.available,et=L>0?Be[L-1]:void 0,un=Be[L+1],Nn=ue=>ue?.kind==="paragraph"&&ue.styleId===De&&De!==null,fa=Oe?{before:Nn(et)?0:Ne.before,after:Nn(un)?0:Ne.after}:Ne,ou=c?.get(te.id)??G.listItem,ma=tu(G),Ht=te.id,us=G.borderGroupKey,fs=ue=>us!==""&&ue?.kind==="paragraph"&&ue.borderGroupKey===us,ms=fs(et),pa=fs(un),Or=ms?void 0:he.top,Fr=pa?he.between:he.bottom,dr=_o(Or),ps=_o(Fr);wb(xe)&&(N.length>0||be>0)&&(ca(),ft=0);let mt=ds(G,L);if(mt.length===0){ng(Ht),Le.note(Sn,te.id,it,N.length,be);continue}let Vk=Zn(te)!==void 0&&jk(G,mt),ug=()=>Vk&&A===void 0&&C+1>=i.count,au=ue=>{let de=Se(te,Re());de.kind==="paragraph"&&(Z=de.indent,ge=de.alignment,ke=de.available,we=de.markRunProperties,ma=ue===0?tu(de):0,mt=[...ds(de,L,ue)]);},gs=Q?{cursorY:be,previousSpaceAfter:ft,firstParagraphOfSection:Ve}:null,hs=Q?uo.start(Q,et?.kind==="paragraph"?et.paragraph.id:void 0):null;if(hs&&(be=hs.cursorY,ft=hs.previousSpaceAfter),!Q){let ue=Ua(fa.before,ft),de=we.length===0?Tn:Ae(we,d?.themeFonts),bt=mt.length<=1?ps:0,st=be+ue+dr,dt=og(G,L,mt,0,0,st,new Map),It=mt[0]?Df(st,mt[0],dt,bt):l.lineMetrics(de).height+bt,An=ue+dr+Math.max(It,Mw(jt,Ke,Ht,Re(),ua,{anchorY:st,frames:Ee(),earlier:N}));if(Qe.keepNext&&!Dt[L-1]){let zt=y0(Be,L,ft,fn=>{let Dn=Se(e[fn],Re());return Dn.kind==="paragraph"?ds(Dn,fn).map(Rn=>Rn.height):[]},fn=>Be[fn]?.kind==="paragraph"&&!!Be[fn].frame);zt!==null&&zt+dr<=Pe()&&(An=Math.max(An,zt+dr));}be+An>Pe()&&be>0&&!ug()&&(ls(),ft=0,au(0));}let Gk=be===0&&!pe(),iu=Fb(fa.before,ft,Q?false:Gk,Q?false:Ve);iu>0&&(be+=iu),dr>0&&(be+=dr),Ve=false;let Cr=0,Xe=[],fg=mt[0]?.start??0,ga=iu,po=dr,lu=false,go=be,mg=0,ys=new Map;ft=0;let pg=n.inlineDrawingLayout!==void 0&&Vt(G.paragraph,n.inlineDrawingLayout).length>0,gg=false,su=null,{revisions:$k,formatRevision:Kk}=rd(G.paragraph,p,m),hg=zr(G.paragraph),yg=hg?Wa(hg):null,Xk=()=>{let ue=Xe[0];if(!ue)return 0;let de=mg;if(de<=.001)return 0;let bt=Xr(go,ue.box.height,rg(G,L));return Math.max(0,de-bt)},bs=ue=>{if(Xe.length===0)return;let de=se(),bt=lr(),st=Xe[0].box.y,dt=st-ga-po,It=Xe[Xe.length-1].box.y+Xe[Xe.length-1].box.height,An=ue?fa.after:0,zt=[],fn,Dn=st,Rn=It,Br=he.left?an(he.left):0,_i=he.right?an(he.right):0,ha=he.left?de+Z.left-he.left.spacePt-Br:de+Z.left,cu=he.right?de+Z.left+ke+he.right.spacePt+_i:de+Z.left+ke,ya=Math.max(cu-ha,0);if(po>0&&Or){let Xt=an(Or),ur=st-Or.spacePt-Xt;zt.push({side:"top",edge:Or,box:{x:ha,y:ur,width:ya,height:Xt}}),Dn=ur;}if(ue&&Fr){let Xt=an(Fr),ur=It+Fr.spacePt,Ra={x:ha,y:ur,width:ya,height:Xt};zt.push({side:pa?"between":"bottom",edge:Fr,box:Ra}),pa||(fn={edge:Fr,box:Ra}),Rn=ur+Xt;}ue&&(be=Math.max(be,Rn+An));let ba=Math.max(Rn+An-dt,0),xt=ms&&Cr===0?dt:Dn,cr=pa&&ue?dt+ba:Rn,xa=Math.max(cr-xt,0);if(he.left&&zt.push({side:"left",edge:he.left,box:{x:de+Z.left-he.left.spacePt-Br,y:xt,width:Br,height:xa}}),he.right&&zt.push({side:"right",edge:he.right,box:{x:de+Z.left+ke+he.right.spacePt,y:xt,width:_i,height:xa}}),he.bar){let Xt=an(he.bar);zt.push({side:"bar",edge:he.bar,box:{x:de+Z.left-he.bar.spacePt-Xt,y:st,width:Xt,height:Math.max(It-st,0)}});}let Sa=yg?cd(Xe,yg):null,Pa=Cr===0?wc(ou,l,Xe[0]?{y:Xe[0].box.y,height:Xe[0].box.height}:void 0,0,Ue?Z.left+ke+Z.right:void 0):void 0,xs=Pa?{...Pa,box:{...Pa.box,x:Pa.box.x+de}}:void 0;!Q&&Cr===0&&(At(Ht,go),Le.note(Sn,Ht,it,N.length,go));let Lr={kind:"paragraph",id:`${Ht}#f${Cr}`,paragraphId:Ht,fragmentIndex:Cr,range:Sa?Sa[Sa.length-1].range:{paragraphId:Ht,start:fg,end:Xe[Xe.length-1].range.end},props:xe,styleId:G.styleId,outlineLevel:G.outlineLevel,alignment:G.alignment,spacing:{before:ga,after:An},indent:Z,...fn?{bottomBorder:fn}:{},...zt.length>0?{borders:zt}:{},...lt===void 0?{}:{shading:lt,shadingBox:he.left||he.right?{x:ha,y:Dn,width:ya,height:Math.max(Rn-Dn,0)}:Ds(Xe,de+Z.left,ke)},tabStops:G.tabStops,...xs?{marker:xs}:{},...ue?{paragraphEnd:true}:{},...ue&&g?od($k,Kk):{},lines:Sa??Xe,...xc(Xe,we,d?.themeFonts),box:{x:bt+Z.left,y:dt,width:ke,height:ba}};if(Q?uo.add(Q,Lr,hs?.groupId,L):N.push(Lr),n.inlineDrawingLayout&&pg&&!gg){gg=true;let Xt=[...hn(G.paragraph).values()],ur=Xt.length>0&&Xt.every(en=>Xe.some(ho=>en>=ho.range.start&&en<ho.range.end)),Ra,Ss,uu;if(ur){let en=dt-Xk();Ra=Xe,Ss={x:bt+Z.left,y:en,width:ke,height:ba},uu=Qt({x:bt+Z.left,y:en,height:ba});}else {let en=su??{columnX:bt,columnWidth:Re(),startY:dt},ho=en.startY;Ra=mt.map((wn,Yk)=>{let Uk={id:`anchor-line-${Yk}`,range:{paragraphId:Ht,start:wn.start,end:wn.end},box:{x:en.columnX+Z.left,y:ho,width:ke,height:wn.height},contentX:wn.spans.length>0?wn.spans[0].box.x+en.columnX:en.columnX+Z.left,baseline:wn.baseline,leading:wn.leading,trailingSpacing:wn.trailingSpacing,spans:wn.spans.map(fu=>({...fu,box:{...fu.box,x:fu.box.x+en.columnX,y:ho}}))};return ho+=wn.height+(wn.exclusionSkipBefore??0),Uk});let bg=en.startY;Ss={x:en.columnX+Z.left,y:bg,width:ke,height:Math.max(ho-bg,Xe[0]?.box.height??0)},uu=Qt(Ss);}is(Kr({paragraph:G.paragraph,paragraphId:Ht,paragraphBox:Ss,lines:Ra,drawingLayout:n.inlineDrawingLayout,frameBase:mo(),columnBox:uu,cellBox:null,pageClip:Qp(),measurer:l,sourceOrderOf:eu,layoutTextboxStory:me.layoutTextboxStoryFor,displayMode:p,...m?{revisionAuthorFilter:m}:{}}));}Cr+=1,fg=Xe[Xe.length-1].range.end,Xe=[],ga=0,po=0;},Mr=0,du=0,Di=mt.length+io;for(let ue=0;ue<mt.length;ue+=1){let de=mt[ue],bt=ue===mt.length-1,st=bt?ps:0;ue===Mr&&(go=be,pg&&su===null&&Cr===0&&(su=Object.freeze({columnX:lr(),columnWidth:Re(),startY:go})));let dt=Q?0:zk(G,L,mt,ue,Mr,go,de,ys),It=dt+Math.max(0,de.height-de.trailingSpacing)+st;if(!Q&&be+It>Pe()&&!ug()&&(Xe.length>0||N.length>0||W.length>0&&Math.max(0,de.height-de.trailingSpacing)+st<=Pe())){let xt=!pe(),cr=du<Di?h0(ue,Mr,mt.length,Qe,xt):ue,xa=cr<ue;for(let Lr=ue;Lr>cr;Lr-=1){Xe.pop();let Xt=mt[Lr-1],ur=ys.get(Lr-1)??Xt.exclusionSkipBefore??0;ys.delete(Lr-1),be-=Xt.height+ur,Kt-=1;}let Sa=xa&&Xe.length===0&&Cr===0,Pa=mt[cr].start,xs=Re();if(bs(false),ls(),ga=0,Sa?be=po:po=0,Re()!==xs){au(Pa),Di=Math.max(Di,mt.length+io),Mr=0,xa&&(du+=1),ue=-1;continue}if(Mr=cr,go=be,xa){du+=1,ue=cr-1;continue}}let zt=lr();ys.set(ue,dt),be+=dt;let fn=zt+Z.left+(ue===0&&!Ue?ma:0),Dn=Math.max(1,ke-(ue===0?ma:0)),Rn=de.spans.map(xt=>({...xt,range:{...xt.range,paragraphId:Ht},box:{...xt.box,x:xt.box.x+zt-(Ue&&ue===0?ma:0),y:be}})),Br=ol(Rn,l,fn,Dn,ge,bt,ge==="center"||ge==="right"?de.width:void 0,Ue),_i=Rn.length>0&&Br.length>0?Br[0].box.x-Rn[0].box.x:ge!=="left"&&ge!=="both"?(()=>{let xt=Dn-de.width;return xt<=0?0:ge==="center"?xt/2:xt})():0,ha=Object.freeze({x:0,y:0,width:a,height:Pe()}),cu=de.drawings.map(xt=>{let cr=Object.freeze({...Yn(xt,zt,be),paragraphId:Ht});return Dd(cr,ha)}),ya=gl(cu,_i),ba={id:zp(te.id,de.start,ue),range:{paragraphId:Ht,start:de.start,end:de.end},spans:Br,box:{x:lr()+Z.left,y:be,width:ke,height:de.height},contentX:fd(Br,fn+_i),baseline:de.baseline,leading:de.leading,trailingSpacing:de.trailingSpacing,...de.manualBreakAfter?{manualBreakAfter:true}:{},...de.deletedRanges?{deletedRanges:de.deletedRanges}:{},...ya.length>0?{drawings:ya}:{},...de.anchorRevisions?{anchorRevisions:de.anchorRevisions}:{}};if(Kt+=1,Xe.length===0&&(mg=dt),Xe.push(ba),be+=de.height,de.columnBreakAfter){let xt=Re();if(bs(bt),ls(),ga=0,po=0,lu=true,!bt&&Re()!==xt){au(de.end),Di=Math.max(Di,mt.length+io),Mr=0,ue=-1;continue}Mr=ue+1;}else de.pageBreakAfter&&(bs(bt),ca(),ga=0,po=0,lu=true,Mr=ue+1);}bs(true),ng(Ht),ft=lu?0:fa.after,gs&&(be=gs.cursorY,ft=gs.previousSpaceAfter,Ve=gs.firstParagraphOfSection);}sr||At("",be),sr||(cn[Be.length]=da());let cs=sr&&P?P.endCursorY:Math.max(be,Nt),ig=sr&&P?P.endSpaceAfter:ft,lg=!sr&&(N.length>0||Sn.length>0||W.length===0),sg=sr&&P?P.endsOpenPage:lg;lg&&(ca(),cs=Math.max(cs,Bw(W.at(-1).fragments),uw(W.at(-1).fragments)));let dg=0,Wk=If*4+8;for(;(fe.length>0||Je.length>0)&&dg<Wk;)dg+=1,fe.length===0&&eg(),ca();Je.length>0&&(fe.push(...Je.map(L=>Bf(L,"page-defer-exhausted"))),Je=[],ca()),Ai();let cg={revision:t,pages:W,...n.displayMode?{displayMode:n.displayMode}:{}};if(P){P.previous=cg,P.checkpoints=sr?[...cn.slice(0,nu),...P.checkpoints.slice(nu+(P.keys.length-Be.length)).map(G=>ru===0?G:{...G,pageCount:G.pageCount+ru})]:cn,P.keys=_t,P.context=W.length+1===B?v:$(Nc(I,V,W.length+1)),P.producer=S;let L=U||R?.evenAndOddHeaders===true;P.parityDependent=Ir===0&&!sr?L:P.parityDependent||L,P.startPageParity=Y,P.startLineCounter=F,P.endLineCounter=Kt,P.endCursorY=cs,P.endSpaceAfter=ig,P.endsOpenPage=sg,P.stats={placed:Qc,total:Be.length,reusedPages:$e,fullPasses:P.stats.fullPasses+(Ir===0?1:0)};}return {layout:cg,pages:W,lineCounter:Kt,endCursorY:cs,endSpaceAfter:ig,endsOpenPage:sg,overflowShellAt:ve}}function Xc(e,t,n){return lk(e,t,n,qL)}var ck=new WeakMap,uk=new WeakMap;function Bt(e){let t=ck.get(e);if(t)return t;let n=new Map;for(let r of e.pages)for(let[o,a]of ZL(r)){let i=n.get(o);i?i.push(...a):n.set(o,[...a]);}return ck.set(e,n),n}function ZL(e){let t=uk.get(e);if(t)return t;let n=new Map,r=(a,i,l)=>{for(let s of gt(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 Rt(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 uk.set(e,n),n}function YY(e,t,n){let r=Bt(e).get(t);if(r&&r.length>0){let o=Gs(e,t,n,r.map(a=>a.line));if(o)return o}return Gs(e,t,n)}var fk=new WeakMap;function Vp(e,t){let n=fk.get(e);n||(n=new Map,fk.set(e,n));let r=n.get(t);if(r)return r;let o=[];for(let{line:i}of Bt(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 mk(e,t){for(let n of e)if(t>n.start&&t<n.end)return true;return false}function JL(e,t){for(let n of Vp(e,t.paragraphId))if(t.offset>n.start&&t.offset<n.end)return {paragraphId:t.paragraphId,offset:n.end};return t}var QL=/[\p{L}\p{N}_'\u2019]/u;function es(e,t,n,r=eE){let o=i=>{let l=e[i];return l!==void 0&&QL.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 eE=new Set;function Ei(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?tr(i,i.range.start,n):i.box.x;if(t>=i.range.end){a=i.style.shaping?tr(i,i.range.end,n):i.box.x+i.box.width;continue}return tr(i,t,n)}return a}function Gp(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 pk=new WeakMap,tE=/^[\p{Control}\p{Default_Ignorable_Code_Point}]+$/u,nE=/[\p{Letter}\p{Number}\p{Punctuation}\p{Symbol}]/u;function rE(e,t,n,r){if(tE.test(e.text.slice(t-e.range.start,n-e.range.start)))return null;if(e.style.shaping&&r&&e.text.length<=gc&&e.text.length===e.range.end-e.range.start){let o=pk.get(e);o||(o=Ye(e.text),pk.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=tr(e,e.range.start+l.utf16From,r);if(nE.test(l.text)&&tr(e,n,r)===s){let d=n+1,c=e.range.end;for(;d<c;){let u=Math.floor((d+c)/2);tr(e,u,r)===s?d=u+1:c=u;}n=Math.min(d,e.range.end);}}}return [tr(e,t,r),tr(e,n,r)]}function Yc(e,t,n,r,o){let a=o?.spans??e.spans;if(!a.some(l=>l.style.shaping!==void 0)){let l=Ei(e,t,r,o),s=Ei(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=rE(l,s,d,r);if(!c)continue;let[u,f]=c;i.push({x:Math.min(u,f),width:Math.abs(f-u)});}return Gp(i)}var gk=new WeakMap;function $p(e,t){let n=gk.get(e);if(n||gk.set(e,n=new Map),n.has(t))return n.get(t);let r=Bt(e),o=new Set([t]),a=new Map,i=new Map,l=new Map;for(let u of o){let f;for(let p of r.get(u)??[]){let m=p.line.id;a.set(m,p),l.has(m)||l.set(m,0);for(let g of gt(p.line))o.add(g.paragraphId);if(f&&f!==m){let g=i.get(f);g||i.set(f,g=new Set),g.has(m)||(g.add(m),l.set(m,l.get(m)+1));}f=m;}}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 p of i.get(f)??[])l.set(p,l.get(p)-1),l.get(p)===0&&s.push(p);}let c={members:[...o],lines:d};for(let u of o)n.set(u,c);return c}var hk=new WeakMap;function ts(e,t){let n=hk.get(e);if(n||hk.set(e,n=new Map),!n.get(t.lineId)?.has(t.position.paragraphId)){let r=Bt(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&&Yi(a).find(l=>l.range.paragraphId===t.position.paragraphId);i&&kt(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 yk=new WeakMap;function Xp(e){let t=yk.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))}]))},yk.set(e,t),t}function Kp(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 la(e,t,n,r){let o=e[t],a=r(o);if(a===void 0)return {target:e[t+n],logicalDirection:n};let i=Xp(e),l=i.groups.get(o.lineId),d=Kp(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),p=[...l.paragraphIds].some(h=>f.paragraphIds.has(h)),m=p?Kp(f):f.logical;return {target:(p?n:c)===1?m[0]:m.at(-1),logicalDirection:c}}function ns(e,t,n,r){let o=Xp(e).groups.get(t.lineId),a=r(t),i=a===void 0?o.logical:Kp(o);return n*(a??1)===-1?i[0]:i.at(-1)}function Yp(e,t,n,r,o,a){let i=t[n];if(o(i)===void 0)return es(e,i.position.offset,r,a);let l=Xp(t).indexes,s=i,d=false;for(let c=0;c<t.length;c++){let u=la(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 p=/[\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&&!p)break;d||=p;}else if(d)break;if(s=u,a.has(s.position.offset))break}return s.position.offset}function Ni(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 Up(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 rs=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 Sk(e,t){for(let n=e.length-1;n>=0;n--)if(e[n].position.paragraphId===t)return e[n]}function bk(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 xk(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 os(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 qp(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 Pk(e,t,n,r=()=>{}){let o=n.index.get(e.paragraphId)?.get(e.offset),a=o===void 0?os(n.stops,e):n.stops[o];return a?ns(n.stops,a,t,r).position:null}function Rk(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=Ni(i.stops,e,t,a);let f=qp(i.stops,e,s);if(f)return {position:f.position,desiredX:null}}else {let f=la(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 wk(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 kk(e,t,n,r,o,a){let i=a(e.paragraphId),l=i.index.get(e.paragraphId)?.get(e.offset),s=l===void 0?os(i.stops,e):i.stops[l];if(!s)return null;let d=n??s.x,c=bk(i.stops),u=c.indexOf(s.lineId),f=c[u+t];if(f){let m=xk(i.stops,f,d);return m?{position:m.position,desiredX:d}:null}for(let m=o+t;m>=0&&m<r.length;m+=t){let g=a(r[m]),h=bk(g.stops),b=t===-1?h[h.length-1]:h[0];if(!b)continue;let x=xk(g.stops,b,d);if(x)return {position:x.position,desiredX:d}}let p=t===-1?i.stops[0]:i.stops[i.stops.length-1];return p?{position:p.position,desiredX:d}:null}function vk(e,t,n){let r=Bt(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 Tk(e,t,n){for(let{line:r}of Bt(e).get(t)??[])if(r.range.start===n&&r.drawings?.some(o=>o.start===n))return r;return null}function Ik(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 Zp(e){let t=e.spans[e.spans.length-1]?.text;return t===`
18
+ `||t===chunkFBWBSHC4_cjs.Td}function Ok(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 Zc(e,t,n,r,o,a,i){for(let l of gt(n))a!==void 0&&l.paragraphId!==a||iE(e,t,n,l,r,o,i);}function iE(e,t,n,r,o,a,i){let l=gt(n).length>1,s=Vp(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&&Zp(n)&&vk(t,n,c)||c===r.start&&r.start>0&&e.length>0&&Sk(e,r.paragraphId)?.position.offset===c||Ik(n,c,r)||mk(s,c)&&!d(c))continue;let u=er({x:Ei(n,c,a,r),y:n.box.y,width:0,height:n.box.height},i);u&&e.push(xi(t,{position:{paragraphId:r.paragraphId,offset:c},x:u.x,y:u.y,height:u.height,lineId:n.id,pageIndex:o}));}}function Lk(e,t,n,r,o){for(let a of t){if(a.kind==="paragraph"){for(let i of a.lines)Zc(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)Lk(e,l.blocks,n,r,o);}}var lE=new rs;function sE(e,t){let n=[];for(let r of e.pages)for(let o of Rt(r))for(let a of o.lines)Zc(n,e,a,r.index,t,void 0,o.clipToBox?o.box:void 0);return n}var dE=new rs;function Jp(e,t,n){let r=$p(e,t);return r?dE.get(e,r.members[0],n,()=>{let o=[];for(let{line:a,pageIndex:i,clipBox:l}of r.lines)Zc(o,e,a,i,n,void 0,l);return Up(o)}):Uc(e,t,n)}function Uc(e,t,n){return lE.get(e,t,n,()=>{let r=[];for(let{line:o,pageIndex:a,clipBox:i}of Bt(e).get(t)??[])Zc(r,e,o,a,n,t,i);return Up(r)})}function F2(e,t,n,r){if(!e.pages[t])return [];let o=[];return Lk(e,n,t,o,r),o}function cE(e){return e?typeof e.measure=="function"?{measurer:e}:e:{}}function uE(e,t,n){let r=e.pages[t];if(!r)return [];let o=[];for(let a of Rt(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 fE(e,t,n){let r=cE(n),o=Bt(e).get(t.paragraphId)??[],a=r.preferredPageIndex,i=a===void 0?[]:uE(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,p)=>{let m=f.pageIndex===a?0:1,g=p.pageIndex===a?0:1;return m-g}),u=null;for(let{line:f,pageIndex:p,clipBox:m}of c){let g=pr(f,t.paragraphId);if(!g||t.offset<g.start||t.offset>g.end)continue;if(t.offset===g.end&&t.offset>g.start&&gt(f).length===1&&(Zp(f)||Ok(f,g))){u??={line:f,pageIndex:p,clipBox:m};continue}if(t.offset===g.end&&t.offset>g.start&&Tk(e,t.paragraphId,t.offset))continue;let h=er({...Ll(f,t.offset,r.measurer,g),width:0},m);if(h)return xi(e,{position:t,x:h.x,y:h.y,height:h.height,lineId:f.id,pageIndex:p})}if(u){let f=er({...Ll(u.line,t.offset,r.measurer,pr(u.line,t.paragraphId)),width:0},u.clipBox);return f?xi(e,{position:t,x:f.x,y:f.y,height:f.height,lineId:u.line.id,pageIndex:u.pageIndex}):null}return null}function C2(e,t){let n=t.pageIndex!==void 0&&e.pages[t.pageIndex]?t.pageIndex:0;return Am(e,n,t)?.caret??null}function M2(e,t){let n=t.pageIndex!==void 0&&e.pages[t.pageIndex]?t.pageIndex:0;return Dm(e,n,t)}function B2(e){return Eu(e)}var Fk=new WeakMap;function Ek(e){let t=Fk.get(e);return t||(t=new Map,e.forEach((n,r)=>{t.has(n)||t.set(n,r);}),Fk.set(e,t)),t}function qc(e,t){return Ek(e).get(t)??-1}function Jc(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=qc(t,e.anchor.paragraphId),r=qc(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 Ck(e,t){let n=[],r=new Set;for(let{line:a}of Bt(e).get(t)??[]){let i=pr(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 Mk(e,t){let n=new Set;for(let{line:r}of Bt(e).get(t)??[]){let o=pr(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 Bk(e,t,n,r){let o=Ma(e),a=wo(e),i=a.get(t.paragraphId);if(i===void 0)return null;let l=$p(e,t.paragraphId),s=Jp(e,t.paragraphId,r),d=c=>ts(e,c);if(l){let c=s.index.get(t.paragraphId)?.get(t.offset),u=c===void 0?Ni(s.stops,t,n,d):la(s.stops,c,n,d).logicalDirection,f=l.members.map(p=>a.get(p)).filter(p=>p!==void 0);i=u===-1?Math.min(...f):Math.max(...f);}return Rk(t,n,o,i,c=>c===t.paragraphId?s:Uc(e,c,r),d)}function L2(e,t,n,r=null,o={}){let a=d=>ts(e,d);if(!o.stops&&(n==="left"||n==="right"))return Bk(e,t,n==="left"?-1:1,o.measurer);if(!o.stops&&(n==="wordLeft"||n==="wordRight")){let d=n==="wordLeft"?-1:1,c=Jp(e,t.paragraphId,o.measurer),u=c.index.get(t.paragraphId)?.get(t.offset),f=Ck(e,t.paragraphId),p=Mk(e,t.paragraphId),m=u===void 0?es(f,t.offset,Ni(c.stops,t,d,a),p):Yp(f,c.stops,u,d,a,p);return m===t.offset?Bk(e,t,d,o.measurer):{position:{paragraphId:t.paragraphId,offset:m},desiredX:null}}if(!o.stops&&(n==="lineStart"||n==="lineEnd")){let d=Pk(t,n==="lineStart"?-1:1,Jp(e,t.paragraphId,o.measurer),a);return d?{position:d,desiredX:null}:null}if(!o.stops&&(n==="documentStart"||n==="documentEnd")){let d=wk(n==="documentStart"?-1:1,Ma(e),c=>Uc(e,c,o.measurer));return d?{position:d,desiredX:null}:null}if(!o.stops&&(n==="up"||n==="down")){let d=wo(e).get(t.paragraphId);return d===void 0?null:kk(t,n==="up"?-1:1,r,Ma(e),d,c=>Uc(e,c,o.measurer))}let i=o.stops??sE(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=qp(i,t,Ni(i,t,n==="left"?-1:1,a))??os(i,t);return c?{position:c.position,desiredX:null}:null}let d=os(i,t);if(!d)return null;l=i.indexOf(d);}let s=i[l];switch(n){case "left":case "right":return {position:(la(i,l,n==="left"?-1:1,c=>ts(e,c)).target??s).position,desiredX:null};case "lineStart":return {position:ns(i,s,-1,a).position,desiredX:null};case "lineEnd":return {position:ns(i,s,1,a).position,desiredX:null};case "wordLeft":case "wordRight":{let d=Ck(e,t.paragraphId),c=Yp(d,i,l,n==="wordLeft"?-1:1,a,Mk(e,t.paragraphId));return c===t.offset?{position:(la(i,l,n==="wordLeft"?-1:1,f=>ts(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(m=>m.pageIndex===c);if(u.length===0)return {position:(n==="pageUp"?i[0]:i[i.length-1]).position,desiredX:d};let f=u[0],p=Number.POSITIVE_INFINITY;for(let m of u){let g=Math.abs(m.y-s.y)*1e3+Math.abs(m.x-d);g<p&&(p=g,f=m);}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),p=n==="up"?f-1:f+1;if(p<0||p>=c.length)return {position:(n==="up"?i[0]:i[i.length-1]).position,desiredX:d};let m=i.filter(h=>h.lineId===c[p]),g=m[0];for(let h of m)Math.abs(h.x-d)<Math.abs(g.x-d)&&(g=h);return {position:g.position,desiredX:d}}default:return null}}function E2(e,t,n){return fE(e,t,n)}function N2(e,t,n){let r=Jc(t,n);if(!r)return [];if(r.from.paragraphId===r.to.paragraphId&&r.from.offset===r.to.offset)return mE(e,r.from);let o=[];if(r.from.paragraphId===r.to.paragraphId){for(let{line:s}of Bt(e).get(r.from.paragraphId)??[]){let d=pr(s,r.from.paragraphId);if(!d)continue;let c=ko(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=Bt(e),i=qc(n,r.from.paragraphId),l=qc(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=pr(d,n[s]);if(!c)continue;let u=ko(e,c,r.from,r.to,Ek(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 mE(e,t){let n=null;for(let{line:r}of Bt(e).get(t.paragraphId)??[])for(let o of pr(r,t.paragraphId)?.spans??[]){if(o.range.start<t.offset&&t.offset<=o.range.end)return [o];n===null&&o.range.start===t.offset&&(n=o);}return n?[n]:[]}function oE(e,t,n,r){return _k(e,t,n,true,r)}function U2(e,t,n,r){return _k(e,t,n,false,r)}var Nk=new WeakMap,Ak=new WeakMap;function pE(e){let t=Nk.get(e);if(t)return t;let n=new Map;for(let r of e.pages)for(let o of Rt(r))for(let a of o.lines)for(let i of gt(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 Nk.set(e,n),n}function Dk(e){let t=Ak.get(e);if(t)return t;let n=new Map(e.map((r,o)=>[r,o]));return Ak.set(e,n),n}function gE(e){return Math.max(3,Math.min(8,e*.25))}function _k(e,t,n,r,o){let a=Jc(t,n);if(!a)return [];let i=Dk(n),l=i.get(a.from.paragraphId),s=i.get(a.to.paragraphId),d=pE(e),c=[];for(let u of e.pages)for(let f of Rt(u))for(let p of f.lines){let m=Ca(p);for(let[g,h]of m.entries()){let b=ko(e,h,a.from,a.to),x=i.get(h.paragraphId),y=d.get(h.paragraphId),O=l!==void 0&&s!==void 0&&x!==void 0&&x>=l&&x<s&&y?.end===h.end&&y.start===h.start&&g===m.length-1;if((!r||!b)&&!O)continue;let S=r&&b?Yc(p,b.start,b.end,o,h):[];if(O){let T=gE(Math.max(0,p.box.height-p.leading-(p.trailingSpacing??0))),R=h.spans[0]?.style.shaping?.baseLevel,w=R===void 0?kt(f.props):R%2===1,k=Ei(p,h.end,o,h);if(h.spans.some(I=>I.style.shaping!==void 0)){k=w?1/0:-1/0;for(let I of h.spans)k=w?Math.min(k,I.box.x):Math.max(k,I.box.x+I.box.width);}S.push({x:w?k-T:k,width:T});}for(let T of Gp(S)){let R=er({pageIndex:u.index,...T,y:p.box.y,height:p.box.height},f.clipToBox?f.box:void 0);R&&c.push(wm(e,h.paragraphId,R));}}}return c}function aE(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 Rt(a))for(let l of i.lines)for(let s of gt(l))for(let d of t){let c=ko(e,s,d.from,d.to);if(!c)continue;let u=o.get(d.key)??[];for(let f of Yc(l,c.start,c.end,r,s)){let p=er({pageIndex:a.index,...f,y:l.box.y,height:l.box.height},i.clipToBox?i.box:void 0);p&&(u.push(wm(e,s.paragraphId,p)),o.set(d.key,u));}}return o}function q2(e){return {x:e.contentBox.x,y:e.contentBox.y}}function as(e,t){return {x:t.x-e.contentBox.x,y:t.y-e.contentBox.y}}function Z2(e,t,n){if(wo(e).has(t))return {x:0,y:0};let r=e.pages[n];if(!r)return {x:0,y:0};let o=a=>rn(a).some(i=>i.paragraphId===t);if(r.header&&o(r.header.fragments))return as(r,r.header.box);if(r.footer&&o(r.footer.fragments))return as(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 as(r,i.box)}return {x:0,y:0}}function J2(e,t,n,r,o){let a=new Map,i=[];for(let d of t){let c=Jc({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=Dk(n),s=(d,c,u,f)=>{for(let p of rn(d))for(let m of p.lines){for(let g of gt(m))for(let h of i){let b=ko(e,g,h.from,h.to,l);if(!b)continue;let x=a.get(h.key)??[];for(let y of Yc(m,b.start,b.end,o,g)){let O=er({pageIndex:c,...y,y:m.box.y,height:m.box.height},p.clipToBox?p.box:void 0);O&&(x.push({...O,x:O.x+u,y:O.y+f}),a.set(h.key,x));}}}};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=as(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=as(d,u.box);s(u.fragments,d.index,f.x,f.y);}}return a}exports.$=Bv;exports.$a=Sb;exports.$b=Zn;exports.$c=MW;exports.$d=aE;exports.A=Oh;exports.Aa=cy;exports.Ab=vO;exports.Ac=ym;exports.Ad=wB;exports.B=Rt;exports.Ba=qv;exports.Bb=MO;exports.Bc=jS;exports.Bd=l0;exports.C=rn;exports.Ca=IN;exports.Cb=$d;exports.Cc=uC;exports.Cd=i0;exports.D=Mh;exports.Da=ad;exports.Db=Yr;exports.Dc=dc;exports.Dd=kB;exports.E=ov;exports.Ea=Wn;exports.Eb=Hf;exports.Ec=Rr;exports.Ed=vB;exports.F=cv;exports.Fa=LN;exports.Fb=$O;exports.Fc=Jn;exports.Fd=yp;exports.G=uv;exports.Ga=Ju;exports.Gb=Tx;exports.Gc=FC;exports.Gd=OB;exports.H=Fa;exports.Ha=uy;exports.Hb=Sl;exports.Hc=ZS;exports.Hd=bp;exports.I=GE;exports.Ia=vl;exports.Ib=UO;exports.Ic=hz;exports.Id=z0;exports.J=Lu;exports.Ja=bn;exports.Jb=si;exports.Jc=Ol;exports.Jd=HB;exports.K=fv;exports.Ka=Pl;exports.Kb=Vo;exports.Kc=Fm;exports.Kd=M0;exports.L=Gs;exports.La=kt;exports.Lb=p_;exports.Lc=EC;exports.Ld=IK;exports.M=Eu;exports.Ma=md;exports.Mb=tF;exports.Mc=Gt;exports.Md=$0;exports.N=$s;exports.Na=lA;exports.Nb=qd;exports.Nc=Xz;exports.Nd=jc;exports.O=Nu;exports.Oa=Wy;exports.Ob=rF;exports.Oc=Yz;exports.Od=lL;exports.P=Ks;exports.Pa=uf;exports.Pb=$o;exports.Pc=pc;exports.Pd=sL;exports.Q=gt;exports.Qa=YA;exports.Qb=Xf;exports.Qc=MP;exports.Qd=nw;exports.R=Ca;exports.Ra=UA;exports.Rb=ui;exports.Rc=bc;exports.Rd=lo;exports.S=nN;exports.Sa=qA;exports.Sb=Yf;exports.Sc=dW;exports.Sd=zY;exports.T=Ba;exports.Ta=ZA;exports.Tb=y_;exports.Tc=Am;exports.Td=Bt;exports.U=rN;exports.Ua=fb;exports.Ub=fi;exports.Uc=cW;exports.Ud=YY;exports.V=Ma;exports.Va=ll;exports.Vb=cF;exports.Vc=uW;exports.Vd=JL;exports.W=mv;exports.Wa=hb;exports.Wb=Uf;exports.Wc=Dm;exports.Wd=es;exports.X=Io;exports.Xa=yb;exports.Xb=Mn;exports.Xc=BP;exports.Xd=ts;exports.Y=Ui;exports.Ya=bb;exports.Yb=gF;exports.Yc=tr;exports.Yd=Ei;exports.Z=Ea;exports.Za=xb;exports.Zb=qf;exports.Zc=Ll;exports.Zd=oE;exports._=Oo;exports._a=Xa;exports._b=yF;exports._c=fW;exports._d=U2;exports.a=bE;exports.aa=Co;exports.ab=kd;exports.ac=w_;exports.ad=BW;exports.ae=q2;exports.b=qk;exports.ba=Mo;exports.bb=sI;exports.bc=Jf;exports.bd=LW;exports.be=as;exports.c=Iu;exports.ca=Jh;exports.cb=gf;exports.cc=Jx;exports.cd=EW;exports.ce=Z2;exports.d=As;exports.da=aN;exports.db=dl;exports.dc=Qf;exports.dd=NW;exports.de=J2;exports.e=lh;exports.ea=iN;exports.eb=wb;exports.ec=qr;exports.ed=$m;exports.ee=sE;exports.f=sh;exports.fa=Nr;exports.fb=uI;exports.fc=E_;exports.fd=rr;exports.fe=F2;exports.g=Ds;exports.ga=vo;exports.gb=Id;exports.gc=fS;exports.gd=pR;exports.ge=fE;exports.h=Tn;exports.ha=yv;exports.hb=fI;exports.hc=Z_;exports.hd=OM;exports.he=C2;exports.i=Ae;exports.ia=Gh;exports.ib=mI;exports.ic=nm;exports.id=FR;exports.ie=M2;exports.j=nn;exports.ja=bv;exports.jb=ul;exports.jc=ec;exports.jd=IG;exports.je=B2;exports.k=qe;exports.ka=$h;exports.kb=hI;exports.kc=Nj;exports.kd=NG;exports.ke=Ck;exports.l=hh;exports.la=xv;exports.lb=nD;exports.lc=Aj;exports.ld=AG;exports.le=Mk;exports.m=yh;exports.ma=zn;exports.mb=kb;exports.mc=gi;exports.md=GG;exports.me=L2;exports.n=OE;exports.na=Au;exports.nb=vb;exports.nc=vS;exports.nd=YG;exports.ne=E2;exports.o=FE;exports.oa=Gu;exports.ob=Od;exports.oc=ai;exports.od=g0;exports.oe=N2;exports.p=bh;exports.pa=Ev;exports.pb=Tb;exports.pc=Ny;exports.pd=WR;exports.q=Ws;exports.qa=ry;exports.qb=Gr;exports.qc=xT;exports.qd=VR;exports.r=Ye;exports.ra=yN;exports.rb=Fd;exports.rc=_y;exports.rd=GR;exports.s=CE;exports.sa=Bo;exports.sb=an;exports.sc=$a;exports.sd=X$;exports.t=ME;exports.ta=Hr;exports.tb=_o;exports.tc=Hy;exports.td=$R;exports.u=BE;exports.ua=je;exports.ub=rD;exports.uc=ZH;exports.ud=b$;exports.v=LE;exports.va=vN;exports.vb=Ob;exports.vc=_V;exports.vd=x$;exports.w=EE;exports.wa=TN;exports.wb=Ua;exports.wc=cm;exports.wd=Yl;exports.x=Vs;exports.xa=He;exports.xb=Fb;exports.xc=lC;exports.xd=Ec;exports.y=Th;exports.ya=Ha;exports.yb=uD;exports.yc=gm;exports.yd=RB;exports.z=_e;exports.za=ed;exports.zb=Tf;exports.zc=hm;exports.zd=I$;