@docx-editor.dev/core 2.4.1 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/automation.cjs +1 -1
- package/dist/automation.d.cts +6 -6
- package/dist/automation.d.ts +6 -6
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.cts +12 -12
- package/dist/binding.d.ts +12 -12
- package/dist/binding.js +1 -1
- package/dist/chunk-2GSRLGUI.cjs +10 -0
- package/dist/chunk-2QIA75K3.js +2 -0
- package/dist/chunk-32NXPFYL.js +5 -0
- package/dist/chunk-3C533HSQ.cjs +18 -0
- package/dist/{chunk-YMIMLEX4.cjs → chunk-3FRSOOND.cjs} +1 -1
- package/dist/chunk-45FL7KH4.js +1 -0
- package/dist/chunk-7GYF33B5.cjs +2 -0
- package/dist/chunk-H3DZP4LE.cjs +5 -0
- package/dist/chunk-IJ4V3LGV.cjs +2 -0
- package/dist/chunk-JDHTCMFA.cjs +2 -0
- package/dist/chunk-L2GMLEHX.cjs +14 -0
- package/dist/chunk-LJIX4ZDF.js +10 -0
- package/dist/chunk-QUZM6LWQ.js +14 -0
- package/dist/chunk-T252F4US.js +18 -0
- package/dist/chunk-UVIUNAQ6.js +2 -0
- package/dist/chunk-YTZIGUXT.js +2 -0
- package/dist/{content-control-walk-CbTqHq6O.d.cts → content-control-walk-BeAFh6Xi.d.cts} +1 -1
- package/dist/{content-control-walk-D06GijR0.d.ts → content-control-walk-CQp8l6eS.d.ts} +1 -1
- package/dist/contracts/editor.d.cts +9 -9
- package/dist/contracts/editor.d.ts +9 -9
- package/dist/contracts/interaction.d.cts +9 -9
- package/dist/contracts/interaction.d.ts +9 -9
- package/dist/contracts/modules.d.cts +5 -5
- package/dist/contracts/modules.d.ts +5 -5
- package/dist/{custom-node-writes-BkMgMXxs.d.ts → custom-node-writes-2clI36T9.d.ts} +22 -7
- package/dist/{custom-node-writes-C5YRoPcc.d.cts → custom-node-writes-CIC_-wad.d.cts} +22 -7
- package/dist/{editor-DYvC9CZs.d.cts → editor-CUul9IuY.d.cts} +22 -5
- package/dist/{editor-D1qHfzOt.d.ts → editor-DIwctMcU.d.ts} +22 -5
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +32 -0
- package/dist/editor.d.cts +24 -24
- package/dist/editor.d.ts +24 -24
- package/dist/editor.js +1 -1
- package/dist/{hf-references-CgEOSw3i.d.cts → hf-references-BPET4tlK.d.cts} +2 -2
- package/dist/{hf-references-BdjsQNE_.d.ts → hf-references-CAp1xTv6.d.ts} +2 -2
- package/dist/{image-resources-DXvPZvXD.d.cts → image-resources-CSlQmPIm.d.cts} +10 -10
- package/dist/{image-resources-BG9DLyW7.d.ts → image-resources-e13t-pgy.d.ts} +10 -10
- package/dist/{index-Bb-QAg_f.d.cts → index-8t44iXTY.d.cts} +79 -14
- package/dist/{index-DpY3WZuP.d.ts → index-BUsYjxF5.d.ts} +79 -14
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +18 -18
- package/dist/index.d.ts +18 -18
- package/dist/index.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.cts +114 -50
- package/dist/layout.d.ts +114 -50
- package/dist/layout.js +1 -1
- package/dist/{note-nodes-C6DLxlvj.d.cts → note-nodes-B2wWES2L.d.cts} +1 -1
- package/dist/{note-nodes-BPSTVDMr.d.ts → note-nodes-CZQXU6Fg.d.ts} +1 -1
- package/dist/{review-reads-CQmU9Lcl.d.ts → note-properties-BS66XmcC.d.ts} +91 -67
- package/dist/{review-reads-CxgN62yp.d.cts → note-properties-Dhqkro--.d.cts} +91 -67
- package/dist/{ooxml-package-D_CtywTW.d.ts → ooxml-package-BrxTmTsZ.d.ts} +115 -115
- package/dist/{ooxml-package-CR5us6ad.d.cts → ooxml-package-Cmbe_M04.d.cts} +115 -115
- package/dist/{ooxml-tree-BU0e3DVi.d.cts → ooxml-tree-CG0odFyi.d.cts} +1 -1
- package/dist/{ooxml-tree-BU0e3DVi.d.ts → ooxml-tree-CG0odFyi.d.ts} +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.cts +7 -7
- package/dist/output.d.ts +7 -7
- package/dist/output.js +1 -1
- package/dist/{protocol-CD7slqvl.d.cts → protocol-B5oSt08P.d.cts} +2 -2
- package/dist/{protocol-DsbfgBwA.d.ts → protocol-ooK7PAXz.d.ts} +2 -2
- package/dist/{review-support-DgXTIYBW.d.ts → review-support-Bl9sN8cv.d.ts} +47 -3
- package/dist/{review-support-BJ-YjGmD.d.cts → review-support-CHuJxHmz.d.cts} +47 -3
- package/dist/{revision-projection-DHAkcD_L.d.ts → revision-projection-DRZMzoLD.d.cts} +54 -3
- package/dist/{revision-projection-72ZApe-g.d.cts → revision-projection-u4nT52xT.d.ts} +54 -3
- package/dist/{semantic-cell-selection-DZtyMXkH.d.ts → semantic-cell-selection-CdNQ-a9-.d.cts} +8 -5
- package/dist/{semantic-cell-selection--ezfezTe.d.cts → semantic-cell-selection-Dc-_enhm.d.ts} +8 -5
- package/dist/{semantic-interaction-DrgbgKg6.d.ts → semantic-interaction-CCVwyw2A.d.ts} +2 -30
- package/dist/{semantic-interaction-2yxdv7q0.d.cts → semantic-interaction-DgaWs-5w.d.cts} +2 -30
- package/dist/{semantic-paint-BYjE0Xbl.d.cts → semantic-paint-6iIB4fhx.d.cts} +2 -2
- package/dist/{semantic-paint-BedBxkyY.d.ts → semantic-paint-CKIbFkQ7.d.ts} +2 -2
- package/dist/{semantic-records-CR5hTqMK.d.ts → semantic-records-B-qbrnp2.d.ts} +107 -9
- package/dist/{semantic-records-DSD8WENa.d.cts → semantic-records-Dq8SlCY8.d.cts} +107 -9
- package/dist/{shaped-measurer-BL8g4AcW.d.ts → shaped-measurer-BT4FqYe9.d.ts} +1 -1
- package/dist/{shaped-measurer-CBOTJTV_.d.cts → shaped-measurer-Dx4llNhK.d.cts} +1 -1
- package/dist/store.cjs +1 -1
- package/dist/store.d.cts +254 -231
- package/dist/store.d.ts +254 -231
- package/dist/store.js +1 -1
- package/dist/{tree-op-types-8a6xyRCN.d.ts → tree-op-types-CZw9QhWX.d.ts} +219 -219
- package/dist/{tree-op-types-EZXbR8bW.d.cts → tree-op-types-DOYNkKqD.d.cts} +219 -219
- package/dist/{tree-session-SucW0znF.d.ts → tree-session-CF_EOhTW.d.ts} +14 -8
- package/dist/{tree-session-DrMm8Cj2.d.cts → tree-session-CtK3KgFU.d.cts} +14 -8
- package/dist/{tree-store-BoM6eXaL.d.ts → tree-store-9TaX-L0V.d.ts} +31 -4
- package/dist/{tree-store-UYrGKF_Q.d.cts → tree-store-Jg-q7fyf.d.cts} +31 -4
- package/package.json +3 -3
- package/dist/chunk-33F6TRXO.js +0 -2
- package/dist/chunk-4WWEDTTE.js +0 -2
- package/dist/chunk-BS554B6D.cjs +0 -2
- package/dist/chunk-DQ5HGUWG.cjs +0 -12
- package/dist/chunk-EQO762XH.cjs +0 -10
- package/dist/chunk-F6WNPYOM.js +0 -2
- package/dist/chunk-FL4GWK76.js +0 -12
- package/dist/chunk-GWG5IVVX.cjs +0 -5
- package/dist/chunk-IZIL6BAW.cjs +0 -12
- package/dist/chunk-LIJPSHRA.js +0 -5
- package/dist/chunk-MHDO6HLI.cjs +0 -2
- package/dist/chunk-SG7OH2EK.js +0 -12
- package/dist/chunk-TCX3PVWR.js +0 -10
- package/dist/chunk-YTYKNA6X.cjs +0 -2
- package/dist/chunk-ZACHY6OS.js +0 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';var chunkJDHTCMFA_cjs=require('./chunk-JDHTCMFA.cjs'),chunk2GSRLGUI_cjs=require('./chunk-2GSRLGUI.cjs');var Un=e=>{if(!Number.isSafeInteger(e))throw new RangeError("Fixed-point value must be a safe integer");return e},Wa=(e,n)=>{if(e.trim().length===0||/[\u0000-\u001f\u007f]/.test(e))throw new TypeError(`${n} must be non-blank and contain no control characters`)},ly=(e,n)=>{if(!/^[\x20-\x7e]{4}$/.test(e))throw new TypeError(`${n} must be a four-byte ASCII tag`)},Wu=(e,n,t)=>{let r=Object.entries(e).sort(([a],[i])=>a<i?-1:a>i?1:0),o=Object.create(null);for(let[a,i]of r){if(ly(a,`${n} key`),!Number.isFinite(i)||t&&(!Number.isSafeInteger(i)||i<0))throw new RangeError(`${n} value must be ${t?"a non-negative safe integer":"finite"}`);if(t&&i>4294967295)throw new RangeError(`${n} value must fit an unsigned 32-bit integer`);o[a]=i;}return Object.freeze(o)},cs=e=>Object.freeze({family:e.family,weight:e.weight,style:e.style}),sy=e=>e?Object.freeze({requested:cs(e.requested),resolved:cs(e.resolved)}):void 0,Xu=new WeakSet,fs=e=>{if(chunk2GSRLGUI_cjs.h(e),!Xu.has(e)){if(e.identity!==`${e.hash}#${e.faceIndex}`)throw new TypeError("Resolved font identity does not match hash and face index");if(!Number.isSafeInteger(e.byteLength)||e.byteLength<0)throw new TypeError("Resolved font byte length is invalid");Xu.add(e);}},us=e=>(fs(e),e),$a=e=>(fs(e),Object.freeze({identity:e.identity,id:e.id,family:e.family,request:cs(e.request),hash:e.hash,faceIndex:e.faceIndex,byteLength:e.byteLength,substitution:sy(e.substitution)??null})),rr=e=>{if(Wa(e.shapingLibrary.name,"shaping library name"),Wa(e.shapingLibrary.version,"shaping library version"),Wa(e.unicodeDataVersion,"Unicode data version"),!/^\d+(?:\.\d+){0,3}(?:[-+][0-9A-Za-z.-]+)?$/.test(e.shapingLibrary.version))throw new TypeError("shaping library version must be a numeric version");if(!/^\d+(?:\.\d+){1,2}$/.test(e.unicodeDataVersion))throw new TypeError("Unicode data version must be a dotted numeric version");if(!/^[A-Z][a-z]{3}$/.test(e.script))throw new TypeError("script must be a four-letter ISO 15924 code");if(Wa(e.language,"language"),!/^(?:und|[A-Za-z]{2,8})(?:-[A-Za-z0-9]{1,8})*$/.test(e.language))throw new TypeError("language must be a BCP 47 language tag");if(e.direction!=="ltr"&&e.direction!=="rtl")throw new TypeError("direction must be ltr or rtl");if(!["none","NFC","NFD","NFKC","NFKD"].includes(e.normalization))throw new TypeError("invalid normalization policy");if(!["halfAwayFromZero","halfToEven","towardZero"].includes(e.roundingMode))throw new TypeError("invalid fixed-point rounding mode");if(!Number.isSafeInteger(e.fixedPointScale)||e.fixedPointScale<=0)throw new RangeError("fixed-point scale must be a positive safe integer");let n=us(e.font),t=e.fallbackOrder.map(us),r=new Set;for(let o of t){let a=JSON.stringify($a(o));if(r.has(a))throw new TypeError("fallback order contains a duplicate font");r.add(a);}return Object.freeze({font:n,variationAxes:Wu(e.variationAxes,"variation axis",false),shapingLibrary:Object.freeze({name:e.shapingLibrary.name,version:e.shapingLibrary.version}),unicodeDataVersion:e.unicodeDataVersion,normalization:e.normalization,script:e.script,language:e.language,direction:e.direction,features:Wu(e.features,"OpenType feature",true),fallbackOrder:Object.freeze([...t]),fixedPointScale:e.fixedPointScale,roundingMode:e.roundingMode})},Vu=e=>{let n=rr(e);return Object.freeze({font:$a(n.font),variationAxes:Object.freeze(Object.entries(n.variationAxes).map(t=>Object.freeze(t))),shapingLibrary:Object.freeze({name:n.shapingLibrary.name,version:n.shapingLibrary.version}),unicodeDataVersion:n.unicodeDataVersion,normalization:n.normalization,script:n.script,language:n.language,direction:n.direction,features:Object.freeze(Object.entries(n.features).map(t=>Object.freeze(t))),fallbackOrder:Object.freeze(n.fallbackOrder.map($a)),fixedPointScale:n.fixedPointScale,roundingMode:n.roundingMode})},ps=e=>JSON.stringify(Vu(e)),tr=(e,n)=>{if(!Number.isSafeInteger(e)||e<0)throw new RangeError(`${n} must be a non-negative safe integer`)},Dn=e=>{try{return Un(e)}catch{throw new RangeError("Shaped run contains a non-integer fixed-point value")}},$u=new WeakMap,Xa=e=>{let n=$u.get(e);if(n)return n;fs(e);let t=JSON.stringify({identity:e.identity,id:e.id,family:e.family,request:e.request,hash:e.hash,faceIndex:e.faceIndex,byteLength:e.byteLength,substitution:e.substitution??null});return $u.set(e,t),t},Va=(e,n)=>{let t=rr(n);if(e.direction!=="ltr"&&e.direction!=="rtl")throw new TypeError("Shaped run direction must be ltr or rtl");if(e.direction!==t.direction)throw new TypeError("Shaped run direction does not match shaping environment");if(tr(e.bidiLevel,"bidi level"),(e.bidiLevel&1)===1!=(e.direction==="rtl"))throw new TypeError("Shaped run direction does not match bidi level parity");let r=new Map,o=e.glyphs.map(s=>{tr(s.id,"glyph id"),tr(s.cluster,"glyph cluster");let d=r.get(s.outline);if(!d){if(!Number.isSafeInteger(s.outline.unitsPerEm)||s.outline.unitsPerEm<=0)throw new RangeError("Glyph outline units per em must be a positive safe integer");d=Object.isFrozen(s.outline)?s.outline:Object.freeze({path:s.outline.path,unitsPerEm:s.outline.unitsPerEm}),r.set(s.outline,d);}return Object.freeze({id:s.id,cluster:s.cluster,originX:Dn(s.originX),originY:Dn(s.originY),advanceX:Dn(s.advanceX),advanceY:Dn(s.advanceY),offsetX:Dn(s.offsetX),offsetY:Dn(s.offsetY),outline:d})}),a=e.fontSpans.map(s=>{if(tr(s.glyphStart,"font span start"),tr(s.glyphEnd,"font span end"),s.glyphEnd<=s.glyphStart||s.glyphEnd>o.length)throw new RangeError("Font span glyph range is invalid");s.fallbackIndex!==null&&tr(s.fallbackIndex,"fallback index");let d=us(s.font);if(s.fallbackIndex===null){if(Xa(d)!==Xa(t.font))throw new TypeError("Shaped primary font does not match shaping environment")}else {let c=t.fallbackOrder[s.fallbackIndex];if(!c)throw new RangeError("Shaped fallback index is outside fallback order");if(Xa(d)!==Xa(c))throw new TypeError("Shaped fallback font does not match shaping environment provenance")}return Object.freeze({...s,font:d})});for(let s=0;s<a.length;s+=1){let d=s===0?0:a[s-1].glyphEnd;if(a[s].glyphStart!==d)throw new RangeError("Font spans must cover glyphs contiguously")}if(o.length===0&&a.length!==0||o.length>0&&a.at(-1)?.glyphEnd!==o.length)throw new RangeError("Font spans must cover every glyph exactly once");let i=e.clusters.map(s=>{for(let[c,u]of [["cluster text start",s.textStart],["cluster text end",s.textEnd],["cluster glyph start",s.glyphStart],["cluster glyph end",s.glyphEnd],["cluster font span",s.fontSpan]])tr(u,c);if(s.textEnd<=s.textStart||s.textEnd>e.text.length||s.glyphEnd<=s.glyphStart||s.glyphEnd>o.length)throw new RangeError("Shaped cluster range is invalid");let d=a[s.fontSpan];if(!d||s.glyphStart<d.glyphStart||s.glyphEnd>d.glyphEnd)throw new RangeError("Shaped cluster does not belong to its declared font span");return Object.freeze({...s,advance:Dn(s.advance),caretEdges:Object.freeze(s.caretEdges.map(Dn))})}),l=Object.freeze({ascent:Dn(e.metrics.ascent),descent:Dn(e.metrics.descent),lineGap:Dn(e.metrics.lineGap)});return Object.freeze({text:e.text,direction:e.direction,bidiLevel:e.bidiLevel,glyphs:Object.freeze(o),clusters:Object.freeze(i),fontSpans:Object.freeze(a),metrics:l})},dy=(e,n)=>{let t=Va(e,n);return Object.freeze({text:t.text,direction:t.direction,script:n.script,language:n.language,bidiLevel:t.bidiLevel,glyphs:t.glyphs,clusters:t.clusters,fontSpans:Object.freeze(t.fontSpans.map(r=>Object.freeze({glyphStart:r.glyphStart,glyphEnd:r.glyphEnd,fallbackIndex:r.fallbackIndex,font:$a(r.font)}))),metrics:t.metrics})};var Eo=Object.freeze({name:"HarfBuzz",version:"14.3.0"}),Mo=null,Lo=null;function cy(){return Mo?Promise.resolve():Lo||(Lo=import('harfbuzzjs').then(e=>{let n=e.versionString();if(n!==Eo.version)throw new De("shapingLibraryMismatch",{diagnostic:`expected ${Eo.version}, loaded ${n}`});Mo=e;}).catch(e=>{throw Lo=null,e}),Lo)}function uy(){return Mo!==null}function fy(){if(!Mo)throw new De("notInitialized",{diagnostic:"Call initializeHarfBuzz() before creating a text shaper"});return Mo}var De=class extends Error{name="HarfBuzzShapingError";code;limit;actual;diagnostic;constructor(n,t={}){super(`HarfBuzz shaping failed (${n})`),this.code=n,this.limit=t.limit,this.actual=t.actual,this.diagnostic=t.diagnostic;}},py=16*1024*1024,my=1e6,gy=1e6,hy=1e6,yy=4,by=512,xy=1024*1024,Sy=16*1024*1024,wy=32*1024*1024,Py=64*1024*1024,Ry=64*1024*1024,Iy=1e6,vy=1e6,Ty=1e6,Oy=64,ky=4096,Cy=4*1024*1024,By=64*1024*1024,Ly=64*1024*1024,Fy=256*1024*1024,Ey=new Set(["COLR","CPAL","CBDT","CBLC","sbix","SVG "]),Yu=["cmap","head","hhea","hmtx","maxp"],My=(e,n)=>e[n]<<8|e[n+1],Ny=(e,n)=>e[n]*16777216+(e[n+1]<<16)+(e[n+2]<<8)+e[n+3]>>>0,Ay=(e,n)=>String.fromCharCode(e[0],e[1],e[2],e[3])==="ttcf"?Ny(e,12+n*4):0,Dy=(e,n)=>{let t=Ay(e,n),r=My(e,t+4),o=new Set;for(let a=0;a<r;a+=1){let i=t+12+a*16;o.add(String.fromCharCode(e[i],e[i+1],e[i+2],e[i+3]));}return o},_y=e=>e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength),Hy=(e,n)=>{let t=chunk2GSRLGUI_cjs.j(e,n);if(!t.valid)return t;let r=Dy(e,n);for(let o of Yu)if(!r.has(o))return {valid:false,diagnostic:`missing required ${o} table`};return {valid:true}},zy=Hy,Zn=(e,n,t)=>{if(!Number.isSafeInteger(e)||e<=0||e>t)throw new RangeError(`${n} must be a positive safe integer no greater than ${t}`);return e},jy=(e,n,t)=>{let r=e<0n,o=r?-e:e,a=o/n,i=o%n;if(t!=="towardZero"){let d=i*2n;(d>n||d===n&&(t==="halfAwayFromZero"||t==="halfToEven"&&a%2n!==0n))&&(a+=1n);}let l=r?-a:a,s=Number(l);if(!Number.isSafeInteger(s))throw new RangeError("Shaped fixed-point value exceeds the safe integer range");return s},Ku=(e,n,t,r)=>{if(!Number.isSafeInteger(e))throw new RangeError("font units must be a safe integer");if(!Number.isSafeInteger(n)||n<=0)throw new RangeError("fixed-point denominator must be a positive safe integer");if(!Number.isSafeInteger(t)||t<0)throw new RangeError("fixed-point numerator must be a non-negative safe integer");return Un(jy(BigInt(e)*BigInt(t),BigInt(n),r))},Gy=(e,n,t,r)=>{if(!Number.isSafeInteger(n)||n<=0)throw new RangeError("font size must be a positive integer number of half points");if(n>Math.floor(Number.MAX_SAFE_INTEGER/t))throw new RangeError("font size and fixed-point scale product exceeds the safe integer range");let o=n*t,a=e*2;return i=>Ku(i,a,o,r)},Wy=(e,n)=>{if(n.length===0)return [];let t=[...new Set(n.map(i=>i.cluster))].sort((i,l)=>i-l),r=new Map;for(let i=0;i<t.length;i+=1)r.set(t[i],t[i+1]??e.length);let o=[],a=0;for(;a<n.length;){let i=n[a].cluster,l=a+1;for(;l<n.length&&n[l].cluster===i;)l+=1;let s=n.slice(a,l).reduce((c,u)=>c+u.advanceX,0),d=Un(s);o.push({textStart:i,textEnd:r.get(i),glyphStart:a,glyphEnd:l,advance:d,caretEdges:Object.freeze([Un(0),d]),fontSpan:0}),a=l;}return o},qn=64,st=8,or=8,Xy=32,Uu=qn+2*st,$y=qn+st+or,Vy=qn+st+or,Yy=qn+st+or,Zu=qn+8*st,qu=qn+8*or+st,Ky=qn+6*or+st,Uy=qn+3*or+2*st,Zy=qn+3*or,No=e=>qn+e.length*Uint16Array.BYTES_PER_ELEMENT,gs=e=>Yy+No(e),Fo=e=>Xy+e*st,qy=(e,n)=>Uu+No(e)+$y+gs(n),Jy=e=>Zu+No(e)+Fo(e.length)+e.length*qu,Qy=e=>{let n=new Set(e.glyphs.map(t=>t.outline));return Zu+No(e.text)+Fo(e.glyphs.length)+e.glyphs.length*qu+Fo(e.clusters.length)+e.clusters.length*Ky+e.clusters.reduce((t,r)=>t+Fo(r.caretEdges.length),0)+Fo(e.fontSpans.length)+e.fontSpans.length*Uy+Zy+[...n].reduce((t,r)=>t+gs(r.path),0)},eb=(e,n)=>Uu+No(e)+Vy+n,ms=class{#n;#l;#u;#f;#p;#y;#b;#m;#g;#s;#h;#d;#e;#o=new Map;#a=new Map;#t=new Map;#i=0;#r=0;#c;constructor(n,t){this.#n=n,this.#l=Zn(t.maxFontBytes??py,"maximum font bytes",Ry),this.#u=Zn(t.maxInputUtf16??my,"maximum input UTF-16 code units",Iy),this.#f=Zn(t.maxCodepoints??gy,"maximum input code points",vy),this.#p=Zn(t.maxGlyphs??hy,"maximum shaped glyphs",Ty),this.#y=Zn(t.maxCachedFaces??yy,"maximum cached faces",Oy),this.#b=Zn(t.maxCachedShapes??by,"maximum cached shape results",ky),this.#m=Zn(t.maxOutlineBytes??xy,"maximum outline bytes",Cy),this.#g=Zn(t.maxCachedOutlineBytes??Sy,"maximum cached outline bytes",By),this.#s=Zn(t.maxShapedRunBytes??wy,"maximum shaped run bytes",Ly),this.#h=Zn(t.maxCachedShapeBytes??Py,"maximum cached shape bytes",Fy),this.#d=t.instrumentation?.onFaceCacheEvent,this.#e=t.instrumentation,this.#c=new this.#n.Buffer;}dispose(){this.#o.clear(),this.#a.clear(),this.#t.clear(),this.#i=0,this.#r=0,this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"cleared",retainedBytes:0})),this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"cleared",retainedBytes:0})),this.#c=void 0;}#S(n,t){let r=this.#o.get(n.identity);if(r)return this.#o.delete(n.identity),this.#o.set(n.identity,r),this.#d?.(Object.freeze({kind:"hit",identity:n.identity})),r;let o=chunk2GSRLGUI_cjs.g(n);for(let c of Yu)if(!o.has(c))throw new De("malformedFont",{diagnostic:`missing required ${c} table`});this.#e?.onByteCopy?.();let a=new this.#n.Blob(_y(t)),i=new this.#n.Face(a,n.faceIndex),l=new this.#n.Font(i),s=l.hExtents();if(!Number.isSafeInteger(i.upem)||i.upem<=0||!Number.isSafeInteger(s.ascender)||!Number.isSafeInteger(s.descender)||!Number.isSafeInteger(s.lineGap))throw new De("malformedFont",{diagnostic:"invalid font units or horizontal metrics"});if(l.setScale(i.upem,i.upem),this.#o.size>=this.#y){let c=this.#o.keys().next().value;c!==void 0&&(this.#o.delete(c),this.#d?.(Object.freeze({kind:"evicted",identity:c})));}let d={identity:n.identity,blob:a,face:i,font:l,unitsPerEm:i.upem};return this.#o.set(n.identity,d),this.#d?.(Object.freeze({kind:"created",identity:n.identity})),d}#w(n,t,r){let o=JSON.stringify([n.identity,n.unitsPerEm,r,t]),a=this.#a.get(o);if(a)return this.#a.delete(o),this.#a.set(o,a),this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"hit",retainedBytes:this.#i})),a.outline;this.#e?.onOutlinePathCall?.();let i=n.font.glyphToPath(t),l=gs(i);if(l>this.#m)throw new De("outlineOverLimit",{limit:this.#m,actual:l});let s=Object.freeze({path:i,unitsPerEm:n.unitsPerEm}),d=qy(o,i);if(d>this.#g)return this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"skipped",retainedBytes:this.#i})),s;for(;this.#i+d>this.#g;){let c=this.#a.keys().next().value;if(c===void 0)break;let u=this.#a.get(c);this.#a.delete(c),this.#i-=u.bytes,this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"evicted",retainedBytes:this.#i}));}return this.#a.set(o,{outline:s,bytes:d}),this.#i+=d,this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"created",retainedBytes:this.#i})),s}#x(n){if(n.length>this.#u)throw new De("textOverLimit",{limit:this.#u,actual:n.length});let t=0;for(let r=0;r<n.length;){let o=n.codePointAt(r);if(r+=o>65535?2:1,t+=1,t>this.#f)throw new De("codepointsOverLimit",{limit:this.#f,actual:t})}}shape(n){if(!this.#c)throw new De("disposed");if(chunk2GSRLGUI_cjs.h(n.environment.font),n.environment.font.byteLength>this.#l)throw new De("fontOverLimit",{limit:this.#l,actual:n.environment.font.byteLength});this.#x(n.text);let t=Jy(n.text);if(t>this.#s)throw new De("shapedRunOverLimit",{limit:this.#s,actual:t});let r=rr(n.environment),o=JSON.stringify([n.text,n.fontSizeHalfPoints,n.bidiLevel,ps(r)]),a=this.#t.get(o);if(a)return this.#t.delete(o),this.#t.set(o,a),this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"hit",retainedBytes:this.#r})),a.run;if(this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"miss",retainedBytes:this.#r})),r.shapingLibrary.name!==Eo.name||r.shapingLibrary.version!==Eo.version)throw new De("shapingLibraryMismatch");if(r.normalization!=="none")throw new De("unsupportedNormalization");if(!Number.isSafeInteger(n.bidiLevel)||n.bidiLevel<0||(n.bidiLevel&1)===1!=(r.direction==="rtl"))throw new De("invalidBidiLevel");if(Object.keys(r.variationAxes).length>0)throw new De("unsupportedVariationAxes");if(r.fallbackOrder.length>0)throw new De("unsupportedFallback");let i=chunk2GSRLGUI_cjs.f(r.font),l=chunk2GSRLGUI_cjs.g(r.font);if([...Ey].some(d=>l.has(d)))throw new De("unsupportedColorFont");let s=n.text;this.#x(s);try{let d=this.#S(r.font,i),{face:c,font:u}=d,p=this.#c;p.reset(),p.addText(s),p.setDirection(r.direction==="rtl"?this.#n.Direction.RTL:this.#n.Direction.LTR),p.setScript(r.script),p.setLanguage(r.language),p.setClusterLevel(this.#n.ClusterLevel.MONOTONE_CHARACTERS);let f=Object.entries(r.features).map(([T,I])=>new this.#n.Feature(T,I));this.#e?.onShapeCall?.(),this.#n.shape(u,p,f);let m=p.getGlyphInfosAndPositions();if(m.length>this.#p)throw new De("glyphOverLimit",{limit:this.#p,actual:m.length});let g=Gy(c.upem,n.fontSizeHalfPoints,r.fixedPointScale,r.roundingMode),h=Un(0),y=Un(0),x=new Map,v=JSON.stringify(Object.entries(r.variationAxes).sort(([T],[I])=>T.localeCompare(I))),C=m.map(T=>{let I=g(T.xAdvance??0),b=g(T.yAdvance??0),O={id:T.codepoint,cluster:T.cluster,originX:h,originY:y,advanceX:I,advanceY:b,offsetX:g(T.xOffset??0),offsetY:g(T.yOffset??0),outline:x.get(T.codepoint)??(()=>{let j=this.#w(d,T.codepoint,v);return x.set(T.codepoint,j),j})()};return h=Un(h+I),y=Un(y+b),O}),M=u.hExtents(),N=Va({text:s,direction:r.direction,bidiLevel:n.bidiLevel,glyphs:C,clusters:Wy(s,C),fontSpans:C.length===0?[]:[{glyphStart:0,glyphEnd:C.length,font:r.font,fallbackIndex:null}],metrics:{ascent:g(M.ascender),descent:g(-M.descender),lineGap:g(M.lineGap)}},r),P=Qy(N);if(P>this.#s)throw new De("shapedRunOverLimit",{limit:this.#s,actual:P});let L=eb(o,P);if(L>this.#h)return this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"skipped",retainedBytes:this.#r})),N;for(;this.#t.size>=this.#b||this.#r+L>this.#h;){let T=this.#t.keys().next().value;if(T===void 0)break;let I=this.#t.get(T);this.#t.delete(T),this.#r-=I.bytes,this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"evicted",retainedBytes:this.#r}));}return this.#t.set(o,{run:N,bytes:L}),this.#r+=L,this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"stored",retainedBytes:this.#r})),N}catch(d){throw d instanceof De?d:new De("malformedFont",{diagnostic:d instanceof Error?d.message:"HarfBuzz shaping failed"})}}},nb=(e={})=>new ms(fy(),e);var ee=(e,n,t)=>e>=n&&e<=t,Ya=class extends Error{name="UnsupportedScriptError";code="unsupportedScript";codePoint;constructor(n){super(`Unsupported Unicode script at U+${n.toString(16).toUpperCase()}`),this.codePoint=n;}},tb=e=>{if(ee(e,65313,65338)||ee(e,65345,65370))return {slot:"hAnsi",script:"Latn"};if(ee(e,1424,1535)||ee(e,64285,64335))return {slot:"cs",script:"Hebr"};if(ee(e,1536,1791)||ee(e,1872,1919)||ee(e,2160,2207)||ee(e,2208,2303)||ee(e,64336,65023)||ee(e,65136,65279)||ee(e,126464,126719))return {slot:"cs",script:"Arab"};if(ee(e,4352,4607)||ee(e,11904,12351)||ee(e,12352,12543)||ee(e,12544,12687)||ee(e,12784,12799)||ee(e,13312,19903)||ee(e,19968,40959)||ee(e,44032,55215)||ee(e,63744,64255)||ee(e,65382,65437)||ee(e,65440,65500)||ee(e,131072,201551))return {slot:"eastAsia",script:"Hani"};if(ee(e,2304,2431)||ee(e,43232,43263))return {slot:"cs",script:"Deva"};if(ee(e,2432,2559))return {slot:"cs",script:"Beng"};if(ee(e,880,1023)||ee(e,7936,8191))return {slot:"hAnsi",script:"Grek"};if(ee(e,1024,1327)||ee(e,7296,7311)||ee(e,11744,11775)||ee(e,42560,42655))return {slot:"hAnsi",script:"Cyrl"};if(ee(e,3584,3711))return {slot:"cs",script:"Thai"};if(ee(e,6016,6143)||ee(e,6624,6655))return {slot:"cs",script:"Khmr"};if(ee(e,768,879)||ee(e,6832,6911)||ee(e,7616,7679)||ee(e,8400,8447)||ee(e,8192,8303)||ee(e,65056,65071)||e<=47||ee(e,58,64)||ee(e,91,96)||ee(e,123,191)||e===5760||ee(e,8192,11263)||ee(e,65024,65039)||ee(e,65280,65381)||ee(e,65438,65439)||ee(e,65501,65535)||ee(e,126976,129791)||ee(e,917760,917999))return null;if(e<=127)return {slot:"ascii",script:"Latn"};if(ee(e,192,687)||ee(e,7424,7551)||ee(e,7552,7615)||ee(e,7680,7935)||ee(e,11360,11391)||ee(e,42784,43007)||ee(e,43824,43887))return {slot:"hAnsi",script:"Latn"};throw new Ya(e)};function rb(e,n,t){let r=[];for(let l=0;l<e.length;){let s=e.codePointAt(l),d=l+(s>65535?2:1);r.push({from:l,to:d,classified:tb(s)}),l=d;}let o=null;for(let l of r)l.classified?o=l.classified:o&&(l.classified=o);o=null;for(let l=r.length-1;l>=0;l-=1){let s=r[l];s.classified?o=s.classified:o&&(s.classified=o);}let a=[],i=r.every(({from:l})=>e.codePointAt(l)<=127)?"ascii":"hAnsi";for(let l of r){let s=t.levels[n+l.from]??0,d=(s&1)===1?"rtl":"ltr",c=l.classified??{slot:i,script:"Zyyy"},u=a.at(-1);u&&u.to===l.from&&u.bidiLevel===s&&u.slot===c.slot&&u.script===c.script?a[a.length-1]={...u,to:l.to}:a.push({from:l.from,to:l.to,direction:d,bidiLevel:s,script:c.script,slot:c.slot});}return a}var ob="und";function ab(){return typeof Intl.Segmenter=="function"}function ib(){let e=Intl.Segmenter;if(typeof e!="function")throw new Error("Intl.Segmenter is required for deterministic grapheme segmentation (locale: und)");return e}function lb(){let e=new(ib())("und",{granularity:"grapheme"});return {segment(n){let t=[],r=0;for(let o of e.segment(n)){let a=o.index,i=a+o.segment.length;t.push({index:r,text:o.segment,utf16From:a,utf16To:i}),r+=1;}return t}}}var bs=lb(),xs=bs,Ju=0;function Ss(){return Ju}var Mr=null,ar=null,Ka=null,Ao=null;function _n(e){if(Mr===e&&ar)return ar;if(Ka===e&&Ao){let t=Ao;return Ka=Mr,Ao=ar,Mr=e,ar=t,t}let n=xs.segment(e);return Ka=Mr,Ao=ar,Mr=e,ar=n,n}function sb(e){xs=e,Qu();}function db(){xs=bs,Qu();}function Qu(){Ju+=1,Mr=null,ar=null,Ka=null,Ao=null,hs=null,Ua=null,ys=0;}function cb(e){return _n(e).length}var hs=null,Ua=null,ys=0;function ub(e){if(hs===e&&Ua)return {offsets:Ua,count:ys};let n=_n(e),t=new Int32Array(e.length+1);for(let r of n)for(let o=r.utf16From;o<r.utf16To&&o<e.length;o+=1)t[o]=r.index;return t[e.length]=n.length,hs=e,Ua=t,ys=n.length,{offsets:t,count:n.length}}function Za(e,n){let t=Math.max(0,Math.min(n,e.length)),{offsets:r}=ub(e);return r[t]}function fb(e,n){let t=_n(e);if(t.length===0)return 0;let r=Math.max(0,Math.min(n,t.length));return r>=t.length?e.length:t[r].utf16From}function ws(e){let n=new Set([0,e.text.length]);for(let r of _n(e.text))n.add(r.utf16From),n.add(r.utf16To);let t=new Set([0,e.text.length]);for(let r of e.clusters)t.add(r.textStart),t.add(r.textEnd);return [...n].filter(r=>t.has(r)).sort((r,o)=>r-o)}function qa(e,n){return ws(e).includes(n)}function pb(e,n){return qa(e,n)}function mb(e,n,t){return t>=n&&qa(e,n)&&qa(e,t)}function gb(e){let n=_n(e.text);return ws(e).map(t=>t===e.text.length?n.length:n.findIndex(r=>r.utf16From===t))}var Rs="und";function rf(){return typeof Intl.Segmenter=="function"}function hb(){let e=Intl.Segmenter;if(typeof e!="function")throw new Error(`Intl.Segmenter is required for word segmentation (locale: ${Rs})`);return e}function of(){let e=new(hb())(Rs,{granularity:"word"});return {segment(n){let t=[];for(let r of e.segment(n)){let o=r.index,a=o+r.segment.length;t.push({utf16From:o,utf16To:a,wordLike:r.isWordLike===true});}return t}}}var yb=/^[\p{L}\p{N}']$/u,bb=/^\s$/u;function ef(e){return yb.test(e)}function nf(e){return bb.test(e)}function Ps(e,n,t,r){let o=e[n],a=e[t-1];return {utf16From:o.utf16From,utf16To:a.utf16To,wordLike:r}}function af(e){let n=_n(e);if(n.length===0)return [];let t=[],r=0;for(;r<n.length;){let o=n[r];if(nf(o.text)){let a=r+1;for(;a<n.length&&nf(n[a].text);)a+=1;t.push(Ps(n,r,a,false)),r=a;continue}if(ef(o.text)){let a=r+1;for(;a<n.length&&ef(n[a].text);)a+=1;t.push(Ps(n,r,a,true)),r=a;continue}t.push(Ps(n,r,r+1,false)),r+=1;}return t}function lf(){return {segment:af}}function sf(e={}){let n=e.isIntlAvailable??rf,t=e.createIntlBoundary??of,r=e.createFallbackBoundary??lf;if(!n())return r();try{return t()}catch{return r()}}var tf;function df(){return tf??=sf(),tf}function xb(e,n=df()){return n.segment(e)}function Sb(e,n){return n.map(t=>({graphemeFrom:Za(e,t.utf16From),graphemeTo:Za(e,t.utf16To),wordLike:t.wordLike}))}var Ja=(e,n)=>{if(!Number.isSafeInteger(e)||e<0)throw new RangeError(`${n} must be a non-negative safe integer`)},Nr=(e,n)=>{if(e.trim().length===0)throw new TypeError(`${n} must not be blank`)},Ar=e=>(Ja(e.resourceEpoch,"resourceEpoch"),Ja(e.configEpoch,"configEpoch"),Ja(e.producerVersion,"producerVersion"),Nr(e.extensionFingerprint,"extensionFingerprint"),Nr(e.shapingHash,"shapingHash"),Object.freeze({resourceEpoch:e.resourceEpoch,configEpoch:e.configEpoch,extensionFingerprint:e.extensionFingerprint,shapingHash:e.shapingHash,producerVersion:e.producerVersion})),wb=(e,n)=>{let t=Ar(e),r=Ar(n),a=["resourceEpoch","configEpoch","extensionFingerprint","shapingHash","producerVersion"].filter(i=>t[i]!==r[i]);return a.length===0?Object.freeze({status:"current"}):Object.freeze({status:"restart",changed:Object.freeze(a)})},Is=e=>{let n=e.map(({key:t,fingerprint:r})=>(Nr(t,"resource dependency key"),Nr(r,"resource dependency fingerprint"),Object.freeze({key:t,fingerprint:r}))).sort((t,r)=>t.key<r.key?-1:t.key>r.key?1:0);for(let t=1;t<n.length;t+=1)if(n[t-1].key===n[t].key)throw new TypeError(`Duplicate resource dependency: ${n[t].key}`);return Object.freeze(n)},Pb=e=>(Ja(e.revision,"revision"),Nr(e.dependencyFingerprint,"dependencyFingerprint"),Nr(e.inputFingerprint,"inputFingerprint"),Object.freeze({revision:e.revision,dependencyFingerprint:e.dependencyFingerprint,inputFingerprint:e.inputFingerprint,resourceDependencies:Is(e.resourceDependencies),...Ar(e)})),Rb=(e,n)=>{let t=Is(e),r=Is(n),o=Math.max(t.length,r.length);for(let a=0;a<o;a+=1){let i=t[a],l=r[a];if(i?.key!==l?.key||i?.fingerprint!==l?.fingerprint)return {hit:false,reason:"resource-changed",resourceKey:i?.key??l.key}}return null};function Ib(e,n){if(e.dependencyFingerprint!==n.dependencyFingerprint)return {hit:false,reason:"dependency-changed"};if(e.inputFingerprint!==n.inputFingerprint)return {hit:false,reason:"input-changed"};let t=Rb(e.resourceDependencies,n.resourceDependencies);if(t)return t;let r=["configEpoch","extensionFingerprint","shapingHash","producerVersion"];for(let o of r)if(e[o]!==n[o])return {hit:false,reason:"epoch-changed",epoch:o};return null}var vs=class{entries=new Map;get(n,t){let r=this.entries.get(n);if(!r)return {hit:false,reason:"absent"};let o=Ib(r.provenance,t);return o||{hit:true,value:r.value,provenance:r.provenance}}set(n,t,r){this.entries.set(n,{value:t,provenance:Pb(r)});}evictEpoch(n){let t=Ar(n),r=0;for(let[o,a]of this.entries){let i=a.provenance;(i.configEpoch!==t.configEpoch||i.extensionFingerprint!==t.extensionFingerprint||i.shapingHash!==t.shapingHash||i.producerVersion!==t.producerVersion)&&(this.entries.delete(o),r+=1);}return r}evictResources(n,t){let r=Ar(n),o=this.evictEpoch(r);for(let[a,i]of this.entries)i.provenance.resourceDependencies.some(s=>t.get(s.key)!==s.fingerprint)&&(this.entries.delete(a),o+=1);return o}get size(){return this.entries.size}};var Do=Object.freeze({width:612,height:792,margin:Object.freeze({top:72,right:72,bottom:72,left:72})});function rn(e,n=false){return cf(e.fragments,n)}function cf(e,n=false){let t=[],r=o=>{for(let a of o){if(a.kind==="paragraph"){t.push(a);continue}for(let i of a.rows)if(!(i.isHeaderRepeat&&!n))for(let l of i.cells)r(l.blocks);}};return r(e),t}function uf(e){let n=[];for(let t of e.pages)for(let r of rn(t))n.push(...r.lines);return n}function qR(e){return e.anchoredDrawings??[]}function vb(e,n){let t=[];for(let r of e.pages)for(let o of rn(r))o.paragraphId===n&&t.push(o);return t.sort((r,o)=>r.fragmentIndex-o.fragmentIndex)}function Tb(e,n,t){for(let r of uf(e)){let o=r.range.paragraphId===n?r.range.start:Number.NaN,a=r.range.paragraphId===n?r.range.end:Number.NaN;for(let i of r.spans)i.range.paragraphId===n&&(o=Number.isNaN(o)?i.range.start:Math.min(o,i.range.start),a=Number.isNaN(a)?i.range.end:Math.max(a,i.range.end));for(let i of r.drawings??[])i.paragraphId===n&&(o=Number.isNaN(o)?i.start:Math.min(o,i.start),a=Number.isNaN(a)?i.start+1:Math.max(a,i.start+1));if(!Number.isNaN(o)&&t>=o&&t<=a)return r}return null}function Ts(e){return e.contentControls??[]}function Qa(e){if(e.length===0)return null;let n=1/0,t=1/0,r=-1/0,o=-1/0;for(let a of e)n=Math.min(n,a.x),t=Math.min(t,a.y),r=Math.max(r,a.x+a.width),o=Math.max(o,a.y+a.height);return {x:n,y:t,width:r-n,height:o-t}}function Os(e){let n=false,t=false;for(let r of e)(r==="contentLocked"||r==="sdtContentLocked")&&(n=true),(r==="sdtLocked"||r==="sdtContentLocked")&&(t=true);return n&&t?"sdtContentLocked":n?"contentLocked":t?"sdtLocked":"unlocked"}var ff=1,ei=1;function Dr(e){let n=Math.max(e,1),t=3;if(n>=t){let i=n/3;if(i>=1)return {strokePt:i,gapPt:i,extentPt:n,insetPt:0}}let r=1,o=1,a=Math.max(n,t);return {strokePt:r,gapPt:o,extentPt:a,insetPt:(n-a)/2}}var Ob=new Set(["double","triple","thinThickSmallGap","thickThinSmallGap","thinThickThinSmallGap","thinThickMediumGap","thickThinMediumGap","thinThickThinMediumGap","thinThickLargeGap","thickThinLargeGap","thinThickThinLargeGap","doubleWave"]);function kb(e){return Ob.has(e)}function pf(e,n){return kb(e)?Dr(n).extentPt:n}function Bs(e){return e.some(n=>n.localName==="pageBreakBefore"&&n.attributes?.val!=="0"&&n.attributes?.val!=="false")}var gf=31680/20,Ho=12,hf=3168,yf=14,Hr=Object.freeze({rule:"auto",value:240}),Cb=132,Bb=1584,bf=["top","left","bottom","right","between","bar"],Lb=Object.freeze({}),Fb=/^[0-9A-Fa-f]{6}$/,Eb=new Set(["nil","none"]);function ni(e,n=false){return e===void 0||!(n?/^-?\d{1,9}$/:/^\d{1,9}$/).test(e)?null:Number(e)}function ks(e,n){return !Number.isFinite(e)||e<=0?0:e>n?n:e}function mf(e){let n=ni(e,true);return n===null?0:ks(n/20,gf)}function Cs(e){return e!=="0"&&e!=="false"&&e!=="off"}function Mb(e){return e===void 0||e==="auto"?null:Fb.test(e)?e.toUpperCase():null}function _o(e,n){return e.attributes.find(t=>t.localName===n)?.value}function Jn(e,n){for(let t of e.children)if(t.kind!=="textValue"&&t.localName===n)return t}function Ls(e,n){let t=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&&(t=mf(l)),s!==void 0&&(r=mf(s));let d=i.attributes?.beforeAutospacing,c=i.attributes?.afterAutospacing;d!==void 0&&(o=Cs(d)),c!==void 0&&(a=Cs(c));}if(o||a){let i=n?.inList||n?.inTableCell?0:yf;o&&(t=i),a&&(r=i);}return {before:t,after:r}}function Fs(e){let n,t;for(let a of e){if(a.localName!=="spacing")continue;let i=a.attributes?.lineRule;(i==="auto"||i==="exact"||i==="atLeast")&&(n=i);let l=a.attributes?.line;if(l!==void 0){let s=ni(l,true);s!==null&&(t=s);}}if(t===void 0)return Hr;let r=n??"auto";if(r==="auto"){let a=t/240;return a>0?{rule:"auto",value:Math.min(a,Cb)*240}:Hr}let o=t/20;return o>0?{rule:r,value:Math.min(o,Bb)}:Hr}function Es(e,n,t){let r=e.rule==="auto"?n*(e.value/240):e.rule==="exact"?e.value:Math.max(n,e.value),o=r-n;return o<0?{height:r,baseline:Math.max(0,Math.min(t,r))}:e.rule==="exact"?{height:r,baseline:t+o/2}:{height:r,baseline:t}}function Ms(e){let n=false;for(let t of e){if(t.localName!=="contextualSpacing")continue;let r=t.attributes?.val;n=r===void 0||Cs(r);}return n}function _r(e){if(!e)return;let n=_o(e,"val");if(!n||Eb.has(n))return;let t=ni(_o(e,"sz")),r=t===null?.5:ks(t/8,Ho)||.5,o=ni(_o(e,"space")),a=o===null?0:ks(o,hf),i=_o(e,"shadow"),l=i!==void 0&&i!=="0"&&i!=="false"&&i!=="off";return {val:n,color:Mb(_o(e,"color")),widthPt:r,spacePt:a,...l?{shadow:true}:{}}}function xf(e){let n=_r(Jn(e,"top")),t=_r(Jn(e,"left")??Jn(e,"start")),r=_r(Jn(e,"bottom")),o=_r(Jn(e,"right")??Jn(e,"end")),a=_r(Jn(e,"between")),i=_r(Jn(e,"bar"));return {...n?{top:n}:{},...t?{left:t}:{},...r?{bottom:r}:{},...o?{right:o}:{},...a?{between:a}:{},...i?{bar:i}:{}}}function dt(e){if(!e||e.kind==="textValue")return {};let n=Jn(e,"pBdr");return n?xf(n):{}}function zo(e){let n=Lb;for(let t of e){if(!t||t.kind==="textValue")continue;let r=Jn(t,"pBdr");r&&(n=xf(r));}return n}function Rn(e){return pf(e.val,e.widthPt)}function Mt(e){return e?e.spacePt+Rn(e):0}function Nb(e){return Mt(e)}function Ns(e){let n=[];for(let t of bf){let r=e[t];r&&n.push(`${t}:${r.val},${r.color??"auto"},${r.widthPt},${r.spacePt},${r.shadow?1:0}`);}return n.join("|")}function zr(e,n){return Math.max(e,n)-n}function As(e,n,t,r){return t&&!r?0:zr(e,n)}var Ab=/^[0-9A-Fa-f]{6}$/;function ti(e){if(!(e===void 0||e==="auto"||e==="nil")&&Ab.test(e))return e.toUpperCase()}function jo(e){if(e&&e.val!=="nil")return ti(e.fill)}function Ds(e){if(!e||e.localName!=="shd")return;let n={};for(let t of e.attributes)n[t.localName]=t.value;return jo(n)}function _s(e){let n;for(let t of e)t.localName==="shd"&&(n=jo(t.attributes));return n}function Go(e,n,t){if(e.length===0)return;let r=e[0].box.y,o=e[e.length-1].box;return {x:n,y:r,width:t,height:Math.max(o.y+o.height-r,0)}}var Db=64,_b=31680,Hb=720,zb=36,Hs=new Map([["dot","."],["hyphen","-"],["underscore","_"],["heavy","_"],["middleDot","\xB7"]]),jr=Object.freeze({stops:Object.freeze([]),defaultIntervalPt:36}),jb=new Map([["left","left"],["start","left"],["center","center"],["right","right"],["end","right"],["decimal","decimal"]]),Gb=new Set(["dot","hyphen","underscore","heavy","middleDot"]);function Wo(e){return e.kind!=="textValue"}function ri(e,n){return e.attributes.find(t=>t.localName===n)?.value}function zs(e,n){for(let t of e.children)if(Wo(t)&&t.localName===n)return t}function Sf(e){return e===void 0||!/^-?\d{1,9}$/.test(e)?null:Number(e)}function Wb(e){return !Number.isFinite(e)||e<0?null:e>31680?31680:e}function wf(e,n){if(!n)return;let t=0;for(let r of n.children){if(t>=128)break;if(t+=1,!Wo(r)||r.localName!=="tab")continue;let o=Wb(Sf(ri(r,"pos"))??NaN);if(o===null)continue;let a=ri(r,"val")??"left";if(a==="clear"){e.delete(o);continue}let i=jb.get(a);if(i===void 0||e.size>=64&&!e.has(o))continue;let l=ri(r,"leader");e.set(o,{alignment:i,...l!==void 0&&Gb.has(l)?{leader:l}:{}});}}function Pf(e,n=36){let t=[...e.entries()].sort((o,a)=>o[0]-a[0]),r=[];for(let o=0;o<t.length&&o<64;o+=1){let[a,i]=t[o];r.push({positionPt:a/20,alignment:i.alignment,...Xb(i)});}return {stops:Object.freeze(r),defaultIntervalPt:n}}function Xb(e){return e.leader?{leader:e.leader}:{}}function js(e){let n=new Map;for(let t of e)!t||!Wo(t)||wf(n,zs(t,"tabs"));return Pf(n)}function Gs(e){if(!e||!Wo(e))return jr;let n=new Map;return wf(n,zs(e,"tabs")),Pf(n)}function Xo(e,n){return n===void 0||!Number.isFinite(n)||n<=0||n===e.defaultIntervalPt?e:{stops:e.stops,defaultIntervalPt:n}}function $b(e){if(!e||!Wo(e))return 36;let n=zs(e,"defaultTabStop");if(!n)return 36;let t=Sf(ri(n,"val"));return t===null||t<=0||t>31680?36:t/20}function Gr(e,n,t){let r=Math.max(n,t);for(let i of e.stops)if(i.positionPt>n)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((n+1e-9)/o)*o;return a<=n&&(a+=o),{positionPt:Math.min(a,r),alignment:"left"}}function Ws(e,n,t,r,o){let a=t;switch(e){case "center":a=t-r/2;break;case "right":a=t-r;break;case "decimal":a=t-o;break;default:a=t;}let i=a-n;return i>0?i:0}function ir(e){return `tabs(${e.stops.map(t=>`${t.alignment}@${Math.round(t.positionPt*1e3)}${t.leader?`/${t.leader}`:""}`).join(",")}|d${Math.round(e.defaultIntervalPt*1e3)})`}var oi=4,Rf=4096,Nt=64,Ys=Object.freeze({hasPage:false,hasNumPages:false,hasSectionPages:false}),Vb=/\s*\\\*\s*MERGEFORMAT\s*$/i;function Wr(e){if(e.length>chunk2GSRLGUI_cjs.qc)return null;let n=e.replace(/\s+/g," ").trim().toUpperCase();return n.length>chunk2GSRLGUI_cjs.qc?null:n.replace(Vb,"").trim()}function lr(e){let n=Wr(e);return n==="PAGE"||n==="NUMPAGES"||n==="SECTIONPAGES"?n:null}function In(e,n){return chunk2GSRLGUI_cjs.fc(e,n)}function sr(e){return chunk2GSRLGUI_cjs.gc(e)}function Ks(){return {nodes:0,exhausted:false}}function ct(e){return e.exhausted?false:(e.nodes+=1,e.nodes>Rf?(e.exhausted=true,false):true)}function Vo(){return {nesting:0,instruction:"",instructionOverflow:false,deletedInstruction:"",deletedInstructionOverflow:false,sawLiveInstruction:false,nestingOverflow:false,phase:"idle",inner:[]}}function $o(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 ai(e){return e.sawLiveInstruction?{instruction:e.instruction,overflow:e.instructionOverflow}:{instruction:e.deletedInstruction,overflow:e.deletedInstructionOverflow}}function Yb(e){return e.sawLive?{instruction:e.instruction,overflow:e.overflow}:{instruction:e.deletedInstruction,overflow:e.deletedOverflow}}function Yo(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>oi?e.nestingOverflow=true:e.nesting>=2&&(e.inner[e.nesting-2]={instruction:"",overflow:false,deletedInstruction:"",deletedOverflow:false,sawLive:false,separated:false});}function Xr(e){return e.nesting<2||e.nesting>oi?null:e.inner[e.nesting-2]??null}function If(e){if(e.nesting===1)return e.phase==="instruction";let n=Xr(e);return n!==null&&!n.separated}function $s(e,n){if(!If(e))return false;if(e.nesting===1)return n?!e.deletedInstructionOverflow:!e.instructionOverflow;let t=Xr(e);return n?!t.deletedOverflow:!t.overflow}function vf(e){if(e.nesting===1){e.sawLiveInstruction=true;return}let n=Xr(e);n&&(n.sawLive=true);}function Vs(e,n){if(e.nesting===1){n?(e.deletedInstructionOverflow=true,e.deletedInstruction=""):(e.instructionOverflow=true,e.instruction="");return}let t=Xr(e);t&&(n?(t.deletedOverflow=true,t.deletedInstruction=""):(t.overflow=true,t.instruction=""));}function Xs(e){Vs(e,false),Vs(e,true);}function Kb(e,n,t=false){if(!$s(e,t))return;let r=Xr(e);t||vf(e);let o=r?t?r.deletedInstruction:r.instruction:t?e.deletedInstruction:e.instruction;if(o.length+n.length>chunk2GSRLGUI_cjs.qc){Vs(e,t);return}r?t?r.deletedInstruction=o+n:r.instruction=o+n:t?e.deletedInstruction=o+n:e.instruction=o+n;}function Ko(e,n,t,r){if(!If(e))return;let o=chunk2GSRLGUI_cjs.hc(n);if(o||vf(e),!$s(e,o))return;if(r>Nt){Xs(e);return}let a=[],i=n.kind==="textValue"?[]:n.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(!ct(t)){Xs(e);return}if(l.depth>Nt){Xs(e);return}if(l.node.kind==="textValue"){if(Kb(e,l.node.value,o),!$s(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 Uo(e){if(e.nesting===1){if(e.phase!=="instruction"||(e.phase="result",e.nestingOverflow))return null;let r=ai(e);return r.overflow?null:lr(r.instruction)}let n=Xr(e);if(!n||n.separated)return null;n.separated=true;let t=Yb(n);return t.overflow?null:lr(t.instruction)}function Zo(e){e.nesting>0&&(e.nesting-=1),e.nesting===0&&$o(e);}function Tf(e){return e.phase==="instruction"&&e.nesting>=1}function Of(e){return e.phase==="result"&&e.nesting>=1}function Us(e){let n=false,t=false,r=false,o=Ks(),a=Vo(),i=()=>n&&t&&r,l=f=>{f==="PAGE"?n=true:f==="NUMPAGES"?t=true:r=true;},s=false,d=[],c=(f,m)=>{if(f.kind!=="runProperties"){if(In(f,"begin")){Yo(a),a.nestingOverflow&&(s=true);return}if(sr(f)){Ko(a,f,o,m);return}if(In(f,"separate")){let g=a.nesting,h=a.phase,y=Uo(a);if(s)return;y&&(g<=1||h==="result")&&d.push(y);return}if(In(f,"end")&&(Zo(a),a.nesting===0)){if(!s)for(let g of d)l(g);d.length=0;}}},u=(f,m)=>{if(f.kind==="run")for(let g of f.children){if(!ct(o))return;if(c(g,m+1),(g.kind==="drawing"||g.kind==="generic")&&!sr(g)&&"children"in g&&g.children.length>0){let h={...a,inner:a.inner.map(v=>({...v}))},y=s,x=d;d=[],p(g,m+1),Object.assign(a,h),s=y,d=x;}if(i()||o.exhausted)return}},p=(f,m)=>{if(!i()&&ct(o)&&!(m>Nt)&&f.kind!=="textValue"){if(f.kind==="paragraph"){$o(a),s=false,d.length=0;for(let g of f.children)if(p(g,m+1),i()||o.exhausted)return;$o(a),s=false,d.length=0;return}if(f.kind==="run"){u(f,m);return}if(chunk2GSRLGUI_cjs.ic(f)){let g=lr(chunk2GSRLGUI_cjs.kc(f)??"");if(g){l(g);return}}for(let g of f.children)if(p(g,m+1),i()||o.exhausted)return}};return p(e,0),!n&&!t&&!r?Ys:{hasPage:n,hasNumPages:t,hasSectionPages:r}}var Ub=64,Zb=64,qb=[{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 ut(e){if(!Number.isFinite(e))return 1;let n=Math.trunc(e);return n<0?1:n>9999?9999:n}function At(e){return String(ut(e))}function kf(e){let n=ut(e);return n<10?`0${n}`:String(n)}function Zs(e){let n=ut(e);n>3999&&(n=3999);let t="";for(let{value:r,glyph:o}of qb)for(;n>=r;)if(t+=o,n-=r,t.length>=64)return t.slice(0,64);return t||"I"}function Cf(e){return Zs(e).toLowerCase()}function qs(e){let n=ut(e),t="";for(;n>0&&t.length<8;)n-=1,t=String.fromCharCode(65+n%26)+t,n=Math.floor(n/26);return t||"A"}function Bf(e){return qs(e).toLowerCase()}function Jb(e){let n=ut(e),t=n%100,r=n%10,o=t>=11&&t<=13?"th":r===1?"st":r===2?"nd":r===3?"rd":"th";return `${n}${o}`}function Qb(e){return ut(e).toString(16).toUpperCase()}function ex(e){let n=["*","\u2020","\u2021","\xA7"],t=ut(e);if(t<=0)return n[0];let r=(t-1)%n.length,o=Math.min(Math.floor((t-1)/n.length)+1,nx);return n[r].repeat(o)}var nx=8,ii=["zero","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"],tx=["","","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"];function li(e){let n=ut(e);if(n<20)return ii[n];if(n<100){let r=n%10;return tx[Math.floor(n/10)]+(r===0?"":`-${ii[r]}`)}if(n<1e3){let r=n%100;return `${ii[Math.floor(n/100)]} hundred${r===0?"":` ${li(r)}`}`}let t=n%1e3;return `${ii[Math.floor(n/1e3)]} thousand${t===0?"":` ${li(t)}`}`}function Lf(e){return e.length===0?e:e[0].toUpperCase()+e.slice(1)}function rx(e){return Lf(li(e))}var ox=new Map([["zero","zeroth"],["one","first"],["two","second"],["three","third"],["five","fifth"],["eight","eighth"],["nine","ninth"],["twelve","twelfth"]]);function ax(e){let n=ox.get(e);return n!==void 0?n:e.endsWith("y")?`${e.slice(0,-1)}ieth`:`${e}th`}function ix(e){let n=li(e),t=Math.max(n.lastIndexOf(" "),n.lastIndexOf("-")),r=t<0?"":n.slice(0,t+1);return Lf(r+ax(n.slice(t+1)))}function ft(e,n){switch(e){case "decimal":return At(n);case "decimalZero":return kf(n);case "upperRoman":return Zs(n);case "lowerRoman":return Cf(n);case "upperLetter":return qs(n);case "lowerLetter":return Bf(n);case "ordinal":return Jb(n);case "cardinalText":return rx(n);case "ordinalText":return ix(n);case "hex":return Qb(n);case "chicago":return ex(n);case "numberInDash":return `- ${At(n)} -`;case "none":case "bullet":return "";default:return At(n)}}function Js(e,n,t){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=t[s]??"decimal",c=n[s]??1,u=d==="bullet"?"":ft(d,c);for(let p of u){if(o.length>=64)break;o+=p;}a+=1;continue}}o+=i;}return o}var si="0";function Qs(e,n){if(!Number.isFinite(e)||e<0)return "";let t=Math.floor(e),r=n&&n.length>0?n:"decimal";if(r==="none"||r==="bullet")return At(t);let o=ft(r,t);return o.length>0?o:At(t)}function pt(e,n){if(e==="PAGE")return Qs(n.pageNumber,n.format);let t=e==="NUMPAGES"?n.pageCount:n.sectionPageCount??n.pageCount;return !Number.isFinite(t)||t<0?"":At(Math.floor(t))}function Dt(e){return e.hasPage||e.hasNumPages||e.hasSectionPages}function ed(e,n=Ys){if(!e||!Dt(n))return "";let t=[];return n.hasPage&&(t.push(`p${e.pageNumber}`),e.format&&t.push(`f${e.format}`)),n.hasNumPages&&t.push(`n${e.pageCount}`),n.hasSectionPages&&t.push(`s${e.sectionPageCount??e.pageCount}`),`|fld:${t.join("/")}`}function $r(e,n,t,r){let o=false,a=e.map((i,l)=>{let s=n+l,d=i.pageFieldSource;return d&&d.pageNumber===s&&d.sectionPageCount===t&&d.format===r?i:(o=true,{...i,pageFieldSource:{pageNumber:s,sectionPageCount:t,...r?{format:r}:{}}})});return o?a:e}function lx(e){for(let n of e.spans)if(n.fieldAtom?.pageField)return true;return false}function Ff(e){if(e.kind==="paragraph"){for(let n of e.lines)if(lx(n))return true;return false}for(let n of e.rows)for(let t of n.cells)for(let r of t.blocks)if(Ff(r))return true;return false}function nd(e,n){let t=n,r=false;for(let o of e)t=Math.max(t,o.box.y+o.box.height),!r&&Ff(o)&&(r=true);return {usedBottom:t,hasBodyPageFields:r}}function sx(e,n){let t=null;for(let r=0;r<e.spans.length;r+=1){let o=e.spans[r],a=o.fieldAtom?.pageField?.kind;if(!a)continue;let i=pt(a,n);i!==o.text&&(t||(t=e.spans.slice()),t[r]={...o,text:i});}return t?{...e,spans:t}:e}function Ef(e,n){let t=null;for(let r=0;r<e.length;r+=1){let o=e[r],a=o;if(o.kind==="paragraph"){let i=null;for(let l=0;l<o.lines.length;l+=1){let s=o.lines[l],d=sx(s,n);d!==s&&(i||(i=o.lines.slice()),i[l]=d);}i&&(a={...o,lines:i});}else {let i=null;for(let l=0;l<o.rows.length;l+=1){let s=o.rows[l],d=null;for(let c=0;c<s.cells.length;c+=1){let u=s.cells[c],p=Ef(u.blocks,n);p!==u.blocks&&(d||(d=s.cells.slice()),d[c]={...u,blocks:p});}d&&(i||(i=o.rows.slice()),i[l]={...s,cells:d});}i&&(a={...o,rows:i});}a!==o&&(t||(t=e.slice()),t[r]=a);}return t??e}function _t(e){let n=e.pages.length;if(n===0)return e;let t=false,r=e.pages.map(o=>{let a=o.pageFieldSource,i={pageNumber:a?.pageNumber??o.index+1,pageCount:n,sectionPageCount:a?.sectionPageCount??n,...a?.format?{format:a.format}:{}},l=u=>{if(!u?.pageFieldProjector)return u;t=true;let p=u.pageFieldProjector(i),{pageFieldProjector:f,...m}=p;return m},s=l(o.header),d=l(o.footer),c=o.hasBodyPageFields===false?o.fragments:Ef(o.fragments,i);return s===o.header&&d===o.footer&&c===o.fragments?o:(c!==o.fragments&&(t=true),{...o,...s!==void 0?{header:s}:{},...d!==void 0?{footer:d}:{},...c!==o.fragments?{fragments:c}:{}})});return t?{revision:e.revision,pages:r}:e}var dx=`
|
|
2
|
+
\r`,cx=/[ \t\n\r]*\\\*[ \t\n\r]*(?:"[^"]*"|[^ \t\n\r"\\]+)?[ \t\n\r]*$/;function Mf(e,n){let t=n;for(;t<e.length&&dx.includes(e[t]);)t+=1;return t}function Nf(e,n){if(e[n]==='"'){let r=n+1;for(;r<e.length&&e[r]!=='"';)r+=1;return r<e.length?r+1:r}let t=n;for(;t<e.length&&!`
|
|
3
|
+
\r"`.includes(e[t]);)t+=1;return t}function di(e){if(e.length===0||e.length>256)return null;let n=Mf(e,0);if(e[n]==='"')return null;let t=Nf(e,n),r=e.slice(n,t).toUpperCase();if(r!=="MACROBUTTON"&&r!=="GOTOBUTTON")return null;let o=Mf(e,t);if(o>=e.length)return null;let a=Nf(e,o),i=e.slice(a).trim();for(;;){let l=i.replace(cx,"").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 Af=Object.freeze({TITLE:"title",AUTHOR:"creator",SUBJECT:"subject",KEYWORDS:"keywords",LASTSAVEDBY:"lastModifiedBy",COMMENTS:"description"}),ux=/\s*\\[A-Z*@#!]\s*(?:"[^"]*"|[^\s"\\]+)?\s*$/;function fx(e){let n=e;for(;;){let t=n.replace(ux,"").trimEnd();if(t===n)return n;n=t;}}function px(e){let n=e.trimStart();if(n.length===0)return null;if(n[0]==='"'){let o=n.indexOf('"',1),a=o===-1?n.slice(1):n.slice(1,o);return a.length>0?a:null}let t=n.search(/\s/),r=t===-1?n:n.slice(0,t);return r.length>0?r:null}function ci(e){let n=Wr(e);if(n===null||n.length===0)return null;let t=fx(n),r=Af[t];if(r)return {property:r};if(!t.startsWith("DOCPROPERTY"))return null;let o=t.slice(11);if(o.length===0||!/^\s/.test(o))return null;let a=px(o);if(a===null)return null;let i=Af[a];return i?{property:i}:null}function ui(e,n){if(!n)return null;let t=n[e.property];return t!==void 0&&t.length>0?t:null}var mx=chunk2GSRLGUI_cjs.qc,gx=2048,hx=256;function yx(e){let n=[],t=0;for(;t<e.length;){let r=e[t];if(r===" "||r===" "||r===`
|
|
4
|
+
`||r==="\r"){t+=1;continue}if(r==='"'){let a=t+1;for(;a<e.length&&e[a]!=='"';)a+=1;n.push({value:e.slice(t+1,a),quoted:true}),t=a<e.length?a+1:a;continue}let o=t;for(;o<e.length&&!`
|
|
5
|
+
\r"`.includes(e[o]);)o+=1;n.push({value:e.slice(t,o),quoted:false}),t=o;}return n}var bx=new Set(["\\l","\\o","\\t","\\m","\\n","\\*","\\#","\\@"]);function fi(e){if(e.length===0||e.length>mx)return null;let n=yx(e);if(n.length<2)return null;let t=n[0];if(t.quoted||t.value.toUpperCase()!=="HYPERLINK")return null;let r=null,o=false,a=null,i=false,l=null,s=false;for(let d=1;d<n.length;d+=1){let c=n[d];if(!c.quoted&&c.value.startsWith("\\")){let u=c.value.toLowerCase();if(!bx.has(u))continue;let p=n[d+1];if(!p||!p.quoted&&p.value.startsWith("\\"))continue;d+=1;let f=p.value.length>0&&p.value.length<=hx;u==="\\l"?i||(i=true,f&&(a=p.value)):u==="\\o"&&(s||(s=true,f&&(l=p.value)));continue}o||(o=true,c.value.length>0&&c.value.length<=gx&&(r=c.value));}return r===null&&a===null?null:{target:r,anchor:a,tooltip:l}}function qo(e){if(e.kind==="text"||e.kind==="deletedText"){let n="";for(let t of e.children)t.kind==="textValue"&&(n+=t.value);return n}return e.kind==="tab"?" ":e.kind==="hardBreak"?chunk2GSRLGUI_cjs._b(e):""}function Vr(e){if(!e||e.kind==="textValue")return [];let n=[];for(let t of e.children){if(t.kind==="textValue")continue;let r={};for(let o of t.attributes)r[o.localName]=o.value;n.push(Object.keys(r).length>0?{localName:t.localName,attributes:r}:{localName:t.localName});}return n}function pi(e,n,t){let r=Vr(e.kind==="run"?e.children.find(o=>o.kind==="runProperties"):void 0);return t?[...t(n,r)]:n.length===0?r:[...n,...r]}var Qn=Object.freeze({fontFamily: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}),xx=/^[0-9A-Fa-f]{6}$/;function Ht(e){let n=e.attributes?.val;return n===void 0||!(n==="0"||n==="false"||n==="off")}function Jo(e,n=false){return e===void 0||!(n?/^-?\d{1,7}$/:/^\d{1,7}$/).test(e)?null:Number(e)}function Df(e){return e===void 0||e==="auto"?null:xx.test(e)?e.toUpperCase():null}function _f(e,n){return e==="minorAscii"||e==="minorHAnsi"?n.minor:e==="majorAscii"||e==="majorHAnsi"?n.major:null}function Ee(e,n){let t={...Qn};for(let r of e)switch(r.localName){case "rFonts":{let o=r.attributes,i=(n?_f(o?.asciiTheme,n)??_f(o?.hAnsiTheme,n):null)??o?.ascii??o?.hAnsi;i&&i.length<=128&&(t.fontFamily=i);break}case "sz":{let o=Jo(r.attributes?.val);o!==null&&o>0&&(t.fontSizePt=o/2);break}case "color":{t.color=Df(r.attributes?.val);break}case "b":t.bold=Ht(r);break;case "i":t.italic=Ht(r);break;case "u":{let o=r.attributes?.val??"single";t.underline=o==="none"||!Ht(r)?null:{variant:o,color:Df(r.attributes?.color)};break}case "strike":t.strike=Ht(r);break;case "dstrike":t.doubleStrike=Ht(r);break;case "highlight":{let o=r.attributes?.val;t.highlight=o&&o!=="none"?o:null;break}case "shd":{t.shading=jo(r.attributes)??null;break}case "vertAlign":{let o=r.attributes?.val;o==="superscript"||o==="subscript"?t.verticalAlign=o:o==="baseline"&&(t.verticalAlign="baseline");break}case "position":{let o=Jo(r.attributes?.val,true);o!==null&&(t.baselineShiftPt=o/2);break}case "caps":t.caps=Ht(r);break;case "smallCaps":t.smallCaps=Ht(r);break;case "spacing":{let o=Jo(r.attributes?.val,true);o!==null&&(t.characterSpacingPt=o/20);break}case "w":{let o=Jo(r.attributes?.val);o!==null&&o>0&&(t.horizontalScalePercent=o);break}case "kern":{let o=Jo(r.attributes?.val);o!==null&&(t.kerningMinPt=o/2);break}case "vanish":t.hidden=Ht(r);break;}return t}function zt(e,n){return n.caps?e.toUpperCase():e}function et(e,n,t){return t.measure(zt(e,n),n)}function Sx(e,n){return e.fontFamily===n.fontFamily&&e.fontSizePt===n.fontSizePt&&e.color===n.color&&e.bold===n.bold&&e.italic===n.italic&&e.strike===n.strike&&e.doubleStrike===n.doubleStrike&&e.highlight===n.highlight&&e.shading===n.shading&&e.verticalAlign===n.verticalAlign&&e.baselineShiftPt===n.baselineShiftPt&&e.caps===n.caps&&e.smallCaps===n.smallCaps&&e.characterSpacingPt===n.characterSpacingPt&&e.horizontalScalePercent===n.horizontalScalePercent&&e.kerningMinPt===n.kerningMinPt&&e.hidden===n.hidden&&e.underline?.variant===n.underline?.variant&&e.underline?.color===n.underline?.color}function td(e){return e.verticalAlign==="superscript"?e.baselineShiftPt+e.fontSizePt*.33:e.verticalAlign==="subscript"?e.baselineShiftPt-e.fontSizePt*.16:e.baselineShiftPt}var wx=new Map([[167,"\u2663"],[168,"\u2666"],[169,"\u2665"],[170,"\u2660"],[174,"\u2192"],[176,"\xB0"],[180,"\xD7"],[183,"\u2022"],[222,"\u21D2"]]),Hf=new Map([[108,"\u25CF"],[110,"\u25A0"],[111,"\u25A1"],[167,"\u25AA"],[216,"\u27A2"],[252,"\u2714"],[253,"\u2718"]]),zf=new Map([[167,"\u25AA"],[183,"\u2022"]]),jf=new Map([["symbol",wx],["wingdings",Hf],["wingdings 2",zf],["wingdings 3",zf],["webdings",Hf]]),Px=64;function Qo(e){return !e||e.length>Px?false:jf.has(e.toLowerCase())}function Yr(e,n,t){if(e.length===0||!Qo(n))return e;let r=jf.get(n.toLowerCase());if(t?.(n)===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 jt=61440,ea=61695,rd=128;function Kr(e){return e.kind==="generic"&&e.namespaceUri===chunk2GSRLGUI_cjs.ma&&e.localName==="sym"}function Gf(e,n){if(!(e.kind==="textValue"||!("attributes"in e))){for(let t of e.attributes)if(t.localName===n&&(t.namespaceUri===chunk2GSRLGUI_cjs.ma||t.namespaceUri===""))return t.value}}function Rx(e){return !e||e.length>4||!/^[0-9A-Fa-f]{1,4}$/.test(e)?null:Number.parseInt(e,16)}function mi(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 Ur(e){if(!Kr(e))return null;let n=Rx(Gf(e,"char"));if(n===null)return null;let t=Gf(e,"font"),r=t&&t.length<=rd?t:null,o=Qo(r),a=o&&n<=255&&n+jt<=ea?n+jt:n;if(o&&a>=jt&&a<=ea){let i=Yr(String.fromCodePoint(a),r),l=i.codePointAt(0)<jt;return {text:i,font:r,unicode:l}}return mi(n)?{text:String.fromCodePoint(n),font:r,unicode:n<57344||n>63743}:null}function od(e,n,t){if(!n.font)return {props:e,style:Ee(e,t)};let r=[...e,{localName:"rFonts",attributes:{ascii:n.font,hAnsi:n.font}}];return {props:r,style:Ee(r,t)}}var Ix=256,vx=9;function Tx(e){let n=[],t=0;for(;t<e.length;){let r=e[t];if(r===" "||r===" "||r===`
|
|
6
|
+
`||r==="\r"){t+=1;continue}if(r==='"'){let a=t+1;for(;a<e.length&&e[a]!=='"';)a+=1;n.push({value:e.slice(t+1,a),quoted:true}),t=a<e.length?a+1:a;continue}let o=t;for(;o<e.length&&!`
|
|
7
|
+
\r"`.includes(e[o]);)o+=1;n.push({value:e.slice(t,o),quoted:false}),t=o;}return n}function Ox(e){if(e.quoted)return null;let n=e.value;if(n.length===0||n.length>vx)return null;let t;if(n.startsWith("0x")||n.startsWith("0X")){let r=n.slice(2);if(!/^[0-9A-Fa-f]{1,6}$/.test(r))return null;t=Number.parseInt(r,16);}else {if(!/^\d{1,7}$/.test(n))return null;t=Number.parseInt(n,10);}return t>1114111||t>=55296&&t<=57343?null:t}function gi(e){if(e.length===0||e.length>Ix)return null;let n=Tx(e);if(n.length<2)return null;let t=n[0];if(t.quoted||t.value.toUpperCase()!=="SYMBOL")return null;let r=Ox(n[1]);if(r===null)return null;let o=null,a=null,i=false;for(let l=2;l<n.length;l+=1){let s=n[l];if(s.quoted||!s.value.startsWith("\\"))continue;let d=s.value.toLowerCase();if(d==="\\f"){let c=n[l+1];c&&c.value.length>0&&c.value.length<=rd&&(c.quoted||!c.value.startsWith("\\"))&&(o=c.value,l+=1);continue}if(d==="\\s"){let c=n[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 hi(e,n,t){let r=[];e.font&&r.push({localName:"rFonts",attributes:{ascii:e.font,hAnsi:e.font}}),e.sizePt!==null&&r.push({localName:"sz",attributes:{val:String(e.sizePt*2)}});let o=r.length>0?[...n,...r]:n,a=Ee(o,t);if(e.unicode)return mi(e.code)?{text:String.fromCodePoint(e.code),props:o,style:a}:null;let i=e.font??a.fontFamily;if(Qo(i)){let l=e.code<=255&&e.code+jt<=ea?e.code+jt:e.code;if(l>=jt&&l<=ea)return {text:Yr(String.fromCodePoint(l),i),props:o,style:a}}return mi(e.code)?{text:String.fromCodePoint(e.code),props:o,style:a}:null}function yi(){let e=null,n=0,t=false,r=false,o=()=>{e=null,n=0,t=false,r=false;};return {get active(){return e!==null},onSeparate(a,i){e===null&&a!==null&&(e=a,n=i,t=false,r=false);},onEnd(a,i){if(e===null||a>n)return null;let l=a===n,d=l&&i&&!(t&&!r)?pt(e,i):"";return o(),l?d:null},reset:o,noteResult(a){t=true,a&&(r=true);}}}var fn="all-markup",Wf=Object.freeze([]),kx=32,Cx={revisionInsert:"insert",revisionDelete:"delete",revisionMoveFrom:"moveFrom",revisionMoveTo:"moveTo"};function mt(e,n){for(let t of e.attributes)if(t.localName===n&&t.namespaceUri===e.namespaceUri&&(t.kind==="wmlVal"||t.kind==="genericExtension"||t.kind==="xmlSpace"))return t.value}function xi(e){if(e.kind==="textValue")return null;let n=Cx[e.kind];if(n===void 0)return null;let t=mt(e,"date");return {kind:n,id:mt(e,"id")??"",author:mt(e,"author")??"",...t===void 0?{}:{date:t},nodeId:e.id}}function Si(e,n){return e.length===0?[n]:[...e,n]}function wi(e){return e.kind!=="textValue"&&chunk2GSRLGUI_cjs.ra(e.kind)}var Zr=kx;function on(e,n){if(n==="all-markup"||e.length===0)return true;for(let t of e)if(n==="proposed"?t.kind==="delete"||t.kind==="moveFrom":t.kind==="insert"||t.kind==="moveTo")return false;return true}function qr(e){if(e.kind==="textValue")return bi;let n=e.children.find(o=>o.kind==="paragraphProperties");if(!n||n.kind==="textValue")return bi;let t=n.children.find(o=>o.kind==="runProperties");if(!t||t.kind==="textValue")return bi;let r=[];for(let o of t.children){if(o.kind==="textValue"||o.namespaceUri!==chunk2GSRLGUI_cjs.ma)continue;let a=Bx[o.localName];if(a===void 0)continue;let i=mt(o,"date");r.push({kind:a,id:mt(o,"id")??"",author:mt(o,"author")??"",...i===void 0?{}:{date:i},nodeId:o.id});}return r.length>0?r:bi}var Bx={ins:"insert",del:"delete",moveFrom:"moveFrom",moveTo:"moveTo"};function na(e){if(e.kind==="textValue")return null;let n=e.children.find(r=>r.kind==="paragraphProperties");if(!n||n.kind==="textValue")return null;let t=n.children.find(r=>r.kind==="runProperties");if(!t||t.kind==="textValue")return null;for(let r of t.children){if(r.kind==="textValue"||r.namespaceUri!==chunk2GSRLGUI_cjs.ma||r.localName!=="rPrChange")continue;let o=mt(r,"date");return {kind:"format",id:mt(r,"id")??"",author:mt(r,"author")??"",...o===void 0?{}:{date:o},nodeId:r.id}}return null}var bi=Object.freeze([]);function ad(e){return e.find(n=>Xf(n))??e[0]}function Xf(e){return e.kind==="delete"||e.kind==="moveFrom"}function Pi(e,n){let t=ad(e);return {...t?{markRevisions:e,markRevision:t}:{},...n?{markFormatRevision:n}:{}}}function Lx(e){return ad(qr(e))??null}function Fx(e){for(let n of e){if(n.localName!=="rPrChange"&&n.localName!=="pPrChange")continue;let t=n.attributes??{},r=t.date;return {kind:"format",id:t.id??"",author:t.author??"",...r===void 0?{}:{date:r},nodeId:""}}return null}function gt(e){return e.some(n=>n.kind==="delete"||n.kind==="moveFrom")}function Ex(e){let{simple:n,depth:t,pageContext:r,budget:o,revisions:a,displayMode:i,inheritedRunProperties:l,cascadeRuns:s,themeFonts:d}=e,c="",u,p,f=false,m=Vo(),g=yi(),h=(x,v)=>{u||(u=x,p=v);},y=(x,v,C)=>{if(!(x.kind==="textValue"||v>Nt)){for(let M of x.children)if(M.kind!=="textValue"){if(!ct(o))return;if(M.kind==="run"){let N=pi(M,l,s),P=Ee(N,d);for(let L of M.children){if(L.kind==="runProperties")continue;if(In(L,"begin")){Yo(m),m.nesting===1&&g.reset();continue}if(sr(L)){Ko(m,L,o,v+1);continue}if(In(L,"separate")){let j=m.nesting,ne=m.phase,k=Uo(m);(j===1||ne==="result"&&!m.nestingOverflow)&&g.onSeparate(r?k:null,j);continue}if(In(L,"end")){let j=g.onEnd(m.nesting,r);j!==null&&(c+=j),Zo(m);continue}if(chunk2GSRLGUI_cjs.nc(L))continue;if(Kr(L)){if(on(C,i)&&(f=true),g.active){g.noteResult(!P.hidden&&on(C,i));continue}let j=Ur(L);if(!j?.unicode||P.hidden||!on(C,i))continue;h(N,P),c+=j.text;continue}let T=qo(L);if(T.length===0)continue;let I=gt(C),b=!on(C,i)||L.kind==="deletedText"&&!I;b||(f=true);let O=P.hidden||b;if(g.active){g.noteResult(!O),O||h(N,P);continue}O||(h(N,P),c+=T);}continue}if(chunk2GSRLGUI_cjs.ic(M)){let N=g.active?null:lr(chunk2GSRLGUI_cjs.kc(M)??"");if(N&&r){if(!on(C,i))continue;let P=c.length;y(M,v+1,C),c=c.slice(0,P),c+=pt(N,r);continue}y(M,v+1,C);continue}if(M.kind==="hyperlink"){y(M,v+1,C);continue}if(wi(M)&&C.length<Zr){let N=xi(M);y(M,v+1,N?Si(C,N):C);continue}y(M,v+1,C);}}};return y(n,t,a),{text:c,resultProps:u,resultStyle:p,sawResultContent:f}}function $f(e){let{simple:n,pageContext:t,inheritedRunProperties:r,themeFonts:o}=e,a=Ex(e),i=chunk2GSRLGUI_cjs.kc(n)??"",l=a.resultProps??r,s=lr(i);if(s&&t){let g=a.resultStyle??Ee(r,o);return g.hidden?null:{text:pt(s,t),props:l,style:g}}if(s&&e.bodyPageFields&&!t&&a.text.length===0&&!a.sawResultContent){let g=a.resultStyle??Ee(r,o);return g.hidden?null:{text:si,props:l,style:g,pageField:{kind:s}}}let d=gi(i);if(d){let g=hi(d,l,o);if(g)return g.style.hidden?null:{text:g.text,props:g.props,style:g.style}}let c=a.text.length===0&&!a.sawResultContent;if(c){let g=ci(i);if(g){let h=ui(g,e.documentProperties);if(h!==null){let y=a.resultStyle??Ee(r,o);return y.hidden?null:{text:h,props:l,style:y}}}}let u=c?di(i):null;if(u){let g=a.resultStyle??Ee(r,o);return g.hidden?null:{text:u.display,props:l,style:g}}if(a.text.length===0)return null;let p=a.resultStyle??Ee(r,o);if(p.hidden)return null;let f=e.currentLink?null:fi(i),m=f?e.projectFieldLink?.(f)??null:null;return {text:a.text,props:l,style:p,...m?{link:m}:{}}}var Mx="\u2612",Nx="\u2610";function Ax(e){let n=Wr(e);return n==="FORMCHECKBOX"?"checkbox":n==="FORMDROPDOWN"?"dropdown":null}function id(e,n){e.symbolSpec=gi(n),!e.symbolSpec&&(e.linkSpec=fi(n),!e.linkSpec&&(e.formSpec=Ax(n),!e.formSpec&&(e.buttonSpec=di(n),!e.buttonSpec&&(e.docPropertySpec=ci(n)))));}function Vf(e,n){if(e.formSpec==="checkbox"){if(e.formData?.kind!=="checkbox")return null;let t=e.formData.checked?Mx:Nx;if(e.formData.sizeHalfPoints===null)return {text:t,props:e.props,style:e.style};let r=[...e.props,{localName:"sz",attributes:{val:String(e.formData.sizeHalfPoints)}}];return {text:t,props:r,style:Ee(r,n)}}if(e.formSpec==="dropdown"){if(e.cachedText.length>0||e.sawResultContent||e.formData?.kind!=="dropdown")return null;let t=e.formData.entries[e.formData.selectedIndex]??"";return t.length===0?null:{text:t,props:e.props,style:e.style}}return null}function Yf(e,n){if(e.symbolSpec){let r=hi(e.symbolSpec,e.props,n.themeFonts);if(r)return {text:r.text,props:r.props,style:r.style}}let t=Vf(e,n.themeFonts);if(t)return {text:t.text,props:t.props,style:t.style};if(e.kind&&n.pageContext)return {text:pt(e.kind,n.pageContext),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&&n.bodyPageFields)return {text:si,props:e.props,style:e.style,pageField:{kind:e.kind}};if(e.docPropertySpec){let r=ui(e.docPropertySpec,n.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 dr(e,n,t){if(t<=n)return;let r=e[e.length-1];if(r&&r.end>=n){r.end=Math.max(r.end,t);return}e.push({start:n,end:t});}var Dx=new Set(["left","center","right"]),_x=new Set(["margin","indent","leftMargin"]),Hx=new Set(["dot","hyphen","underscore","middleDot"]);function Kf(e){if(e.kind==="textValue"||e.localName!=="ptab"||e.namespaceUri!==chunk2GSRLGUI_cjs.ma)return null;let n="left",t="margin",r;for(let o of e.attributes)o.namespaceUri===chunk2GSRLGUI_cjs.ma&&(o.localName==="alignment"?n=o.value:o.localName==="relativeTo"?t=o.value:o.localName==="leader"&&(r=o.value));return {alignment:Dx.has(n)?n:"left",relativeTo:_x.has(t)?t:"margin",...r!==void 0&&Hx.has(r)?{leader:r}:{}}}Object.freeze({marks:Object.freeze(new Map)});function cr(e,n){return chunk2GSRLGUI_cjs.ed(e,n)}function ld(e,n){if(!chunk2GSRLGUI_cjs.vd(e))return null;if(chunk2GSRLGUI_cjs.ld(e)||chunk2GSRLGUI_cjs.md(e))return {text:"",projected:true,kind:null,noteId:null};let t=chunk2GSRLGUI_cjs.jd(e),r=chunk2GSRLGUI_cjs.rd(e)??chunk2GSRLGUI_cjs.sd(e);if(!r)return null;let o=chunk2GSRLGUI_cjs.od(e),a=o!==null?cr(r,o):t?void 0:n?.activeNoteKey,i=o!==null?o:a?zx(a,r)??null:null,l=a,s=l!==void 0?t?"to-note":"to-body":void 0,d={projected:true,kind:r,noteId:i,...s?{nav:s}:{},...l?{scopeId:l}:{}};if(t&&o!==null&&chunk2GSRLGUI_cjs.td(e))return {text:"",...d};if(!n||!a)return {text:"",...d};let c=n.marks.get(a);return c==null?{text:"",...d}:n.reservedMarkText&&n.reservedMarkText.length>0?{text:c,measureText:n.reservedMarkText,...d}:{text:c,...d}}function zx(e,n){let t=`${n}:`;if(!e.startsWith(t))return null;let r=e.slice(t.length);if(!/^-?\d+$/.test(r))return null;let o=Number(r);return Number.isSafeInteger(o)?o:null}function Zf(e){return chunk2GSRLGUI_cjs.jd(e)||chunk2GSRLGUI_cjs.kd(e)||chunk2GSRLGUI_cjs.ld(e)||chunk2GSRLGUI_cjs.md(e)}function jx(e){let n=2166136261;for(let t=0;t<e.length;t+=1)n^=e.charCodeAt(t),n=Math.imul(n,16777619);return (n>>>0).toString(16).padStart(8,"0")}var Uf=new WeakMap;function qf(e){if(!e)return "";let n=Uf.get(e);if(n!==void 0)return n;let t=JSON.stringify([[...e.marks],e.reservedMarkText??null,e.activeNoteKey??null]),r=`${e.marks.size}:${jx(t)}`;return Uf.set(e,r),r}function Ri(e,n=[],t,r,o,a,i=fn,l,s,d,c,u,p=false){if(e.kind==="textValue")return [];if(e.kind!=="paragraph")return [];let f=[],m=0,g,h=chunk2GSRLGUI_cjs.rc(e,{maxNesting:oi,maxInstructionChars:chunk2GSRLGUI_cjs.qc}),y=h.filter(R=>R.addressing==="atomic"),x=new Set(y.filter(R=>R.kind==="complex").map(R=>R.node.id)),v=new Set(h.filter(R=>R.kind==="complex"&&R.addressing==="editable-result").map(R=>R.node.id)),C=new Set;for(let R of y)for(let z of R.removeNodeIds)C.add(z);let M=Vo(),N=Ks(),P=null,L=null,T=yi(),I=Wf,b=(R,z,B,H,V,W,A)=>{if(R.length===0&&!H&&!A?.inlineDrawing)return;let Z=A?.linkOverride??g,X=A?.revisionsOverride??I,J=Z?{link:Z}:{},Q=X.length===0?{}:{revisions:X};if(H){f.push({text:R,props:z,style:B,start:V,end:W,projected:true,...A?.measureText!==void 0?{measureText:A.measureText}:{},...A?.noteNav?{noteNav:A.noteNav}:{},...A?.inlineDrawing?{inlineDrawing:A.inlineDrawing}:{},...A?.fieldAtom?{fieldAtom:A.fieldAtom}:{},...J,...Q});return}R.length!==0&&f.push({text:R,props:z,style:B,start:V,end:W,...A?.positionalTab?{positionalTab:A.positionalTab}:{},...A?.breakKind?{breakKind:A.breakKind}:{},...J,...Q});},O=()=>{if(!P||!P.atomic){P=null,L=null;return}let R=P.atomStart,z=R+1;if(P.style.hidden){P=null,L=null;return}if(!on(P.resultRevisions,i)){l&>(P.resultRevisions)&&dr(l,R,z),P=null,L=null;return}let{resultLink:B,linkSpec:H,resultRevisions:V,formField:W}=P,A,Z=()=>{if(A)return A;let J=!B&&H?c?.(H)??null:null,Q=B??J;return A={...V.length>0?{revisionsOverride:V}:{},...Q?{linkOverride:Q}:{},fieldAtom:{formField:W}},A},X=Yf(P,{pageContext:t,themeFonts:d,documentProperties:u,bodyPageFields:p});if(X){let J=Z(),Q=X.pageField?{...J,fieldAtom:{formField:P.formField,pageField:X.pageField}}:J;b(X.text,X.props,X.style,true,R,z,Q);}P=null,L=null;},j=()=>{if(!P)return;let R=!P.resultLink&&P.linkSpec?c?.(P.linkSpec)??null:null,z=B=>R&&!B.link?{...B,link:R}:B;if(P.atomic){m=P.atomStart;for(let B of P.buffered)f.push({...z(B),start:m,end:m+(B.end-B.start)}),m+=B.end-B.start;P.cachedText.length>0&&P.buffered.length===0&&(b(P.cachedText,P.props,P.style,false,m,m+P.cachedText.length,R?{linkOverride:R}:void 0),m+=P.cachedText.length);}else {for(let B of P.buffered)f.push(z(B));m=P.bufferOffset;}P=null,L=null;},ne=(R,z,B)=>{let H=(X,J,Q,se)=>{let be=gt(I),he=B.hidden||!on(I,i)||be;if(J.hidden||he){if(be&&l&&dr(l,Q,se),!J.hidden)return;b("\uFFFC",z,B,true,Q,se);return}b("\uFFFC",z,B,true,Q,se,{inlineDrawing:Object.freeze({drawingNodeId:X,ownerPartName:s.ownerPartName,projection:J,resource:s.resourceOf(J)})});};if(R.kind==="drawing"){let X=m;m+=1;let J=m;if(!s)return;let Q=s.projectionForAtom?.(R.id)??(R.kind==="drawing"?s.project(R):null);if(!Q||Q.kind!=="inline"){b("\uFFFC",z,B,true,X,J);return}H(R.id,Q,X,J);return}if(chunk2GSRLGUI_cjs.ab(R)){let X=m;m+=1;let J=m;if(!s)return;let Q=s.projectionForAtom?.(R.id)??null;if(!Q||Q.kind!=="inline"){b("\uFFFC",z,B,true,X,J);return}H(R.id,Q,X,J);return}if(Zf(R)){let X=ld(R,a),J=m,Q=J+1;if(m=Q,B.hidden||!X||X.text.length===0&&!X.measureText)return;let se=X.scopeId&&X.nav?{scopeId:X.scopeId,direction:X.nav}:void 0;b(X.text.length>0?X.text:X.measureText??"",z,B,true,J,Q,{...X.measureText!==void 0?{measureText:X.measureText}:{},...se?{noteNav:se}:{}});return}let V=Kf(R);if(V){B.hidden||b(" ",z,B,false,m,m,{positionalTab:V});return}if(Kr(R)){let X=Ur(R);if(!X||B.hidden||!on(I,i))return;let J=od(z,X,d);b(X.text,J.props,J.style,true,m,m);return}let W=qo(R);if(W.length===0)return;let A=gt(I);B.hidden||!on(I,i)||R.kind==="deletedText"&&!A||b(W,z,B,false,m,m+W.length,{...R.kind==="hardBreak"?{breakKind:chunk2GSRLGUI_cjs.Yb(R)}:{}}),A&&l&&dr(l,m,m+W.length),m+=W.length;},k=(R,z)=>{if(R.kind!=="run")return;let B=pi(R,n,r),H=Ee(B,d),V=()=>{P&&(P.capturedResultStyle||(P.props=B,P.style=H,P.capturedResultStyle=true),P.capturedResultRevisions||(P.resultRevisions=I,P.capturedResultRevisions=true,!P.resultLink&&g&&(P.resultLink=g)));};for(let W of R.children){if(!ct(N)){if(j(),$o(M),T.reset(),W.kind==="runProperties"||In(W,"begin")||In(W,"separate")||In(W,"end")||sr(W)||C.has(W.id)&&L===null)continue;ne(W,B,H);continue}if(W.kind!=="runProperties"){if(In(W,"begin")){let A=x.has(W.id);Yo(M),M.nesting===1&&(j(),T.reset(),L=A?W.id:null,P={kind:null,symbolSpec:null,linkSpec:null,formSpec:null,buttonSpec:null,docPropertySpec:null,formData:chunk2GSRLGUI_cjs.pc(W),atomic:A,editableResult:v.has(W.id),atomStart:m,props:B,style:H,capturedResultStyle:false,cachedText:"",sawResultContent:false,buffered:[],bufferOffset:m,resultRevisions:I,capturedResultRevisions:I.length>0,formField:chunk2GSRLGUI_cjs.oc(W),...g?{resultLink:g}:{}},A&&(m+=1));continue}if(sr(W)){Ko(M,W,N,z+1);continue}if(In(W,"separate")){let A=M.nesting===1&&M.phase==="instruction",Z=M.nesting,X=Uo(M);if(A&&P){P.kind=X;let J=ai(M);!P.kind&&!J.overflow&&!M.nestingOverflow&&id(P,J.instruction),P.props=B,P.style=H;}else P?.atomic&&M.phase==="result"&&!M.nestingOverflow&&T.onSeparate(t?X:null,Z);continue}if(In(W,"end")){let A=M.nesting===1;if(A&&P?.atomic&&M.phase==="instruction"){let X=ai(M);!X.overflow&&!M.nestingOverflow&&id(P,X.instruction);}let Z=T.onEnd(M.nesting,t);Z!==null&&P?.atomic&&(P.cachedText+=Z),Zo(M),A&&(P?.atomic?O():j());continue}if(!(Tf(M)&&P?.atomic)){if(P&&Of(M)){if(Kr(W)){if(P.atomic){if(on(I,i)&&(P.sawResultContent=true),T.active){T.noteResult(!H.hidden&&on(I,i));continue}if(!H.hidden&&on(I,i)){let se=Ur(W);se?.unicode&&(V(),P.cachedText+=se.text);}continue}let J=Ur(W);if(!J||H.hidden||!on(I,i))continue;let Q=od(B,J,d);P.buffered.push({text:J.text,props:Q.props,style:Q.style,start:m,end:m,projected:true,...I.length>0?{revisions:I}:{},...g?{link:g}:{},fieldAtom:{formField:P.formField}});continue}let A=qo(W);if(A.length===0)continue;let Z=gt(I),X=!on(I,i)||W.kind==="deletedText"&&!Z;if(P.atomic&&!X&&(P.sawResultContent=true),Z&&l&&(P.atomic?dr(l,P.atomStart,P.atomStart+1):dr(l,m,m+A.length)),X){P.atomic&&T.active&&T.noteResult(false),P.atomic||(m+=A.length,P.bufferOffset=m);continue}if(P.atomic){if(T.active){if(T.noteResult(!H.hidden),H.hidden)continue;V();continue}if(H.hidden)continue;V(),P.cachedText+=A;continue}if(H.hidden){m+=A.length,P.bufferOffset=m;continue}P.capturedResultStyle||(P.props=B,P.style=H,P.capturedResultStyle=true),P.buffered.push({text:A,props:B,style:H,start:m,end:m+A.length,...I.length>0?{revisions:I}:{},...g?{link:g}:{},fieldAtom:{formField:P.formField}}),m+=A.length,P.bufferOffset=m;continue}C.has(W.id)&&L===null&&x.size>0,ne(W,B,H);}}}};if(!ct(N))return f;let E=chunk2GSRLGUI_cjs.Wa(),_=(R,z)=>{let B=m;if(m+=1,R.kind==="textValue"||(gt(I)&&l&&dr(l,B,B+1),!on(I,i)))return;let H=$f({simple:R,depth:z,pageContext:t,budget:N,revisions:I,displayMode:i,inheritedRunProperties:n,cascadeRuns:r,themeFonts:d,currentLink:g,projectFieldLink:c,documentProperties:u,bodyPageFields:p});H&&b(H.text,H.props,H.style,true,B,B+1,{fieldAtom:{formField:false,...H.pageField?{pageField:H.pageField}:{}},...H.link?{linkOverride:H.link}:{}});},G=(R,z,B,H)=>{if(chunk2GSRLGUI_cjs.ic(R)){_(R,z);return}if(R.kind==="run"){k(R,z);return}if(chunk2GSRLGUI_cjs.Lb(R)){if(H>=chunk2GSRLGUI_cjs.Kb||z>Nt)return;for(let Z of chunk2GSRLGUI_cjs.Ob(R))G(Z,z+1,B,H+1);return}if(z>Nt||z>=Zr)return;let V=R.kind!=="textValue"&&"localName"in R?chunk2GSRLGUI_cjs.Va(B,R):B;if(R.kind==="hyperlink"){let Z=g;g=o?.(R)??void 0;for(let X of R.children)G(X,z+1,V,H);g=Z;return}if(!wi(R))return;let W=xi(R);if(!W||!ct(N))return;let A=I;I=Si(A,W);for(let Z of R.children)G(Z,z+1,V,H);I=A;};for(let R of e.children)G(R,1,E,0);return j(),f}function Gx(e){let n=Object.entries(e.attributes??{}).sort(([t],[r])=>t<r?-1:t>r?1:0).map(([t,r])=>`${t}=${r}`).join(",");return `${e.localName}(${n})`}function Wx(e){return e.map(Gx).join(";")}var Jf=new WeakMap,ep=1<<18;function np(e){if(e.kind==="textValue")return `t:${e.value}`;let n=e.kind==="paragraph"||e.kind==="table";if(n){let r=Jf.get(e);if(r!==void 0)return r}let t=Xx(e);return n&&t.length<=ep&&Jf.set(e,t),t}function Xx(e){if(e.kind==="textValue")return `t:${e.value}`;let n=[`${e.kind}:${"localName"in e?e.localName:""}#${"id"in e?e.id:""}`];if("attributes"in e&&Array.isArray(e.attributes)){let t=[...e.attributes].map(r=>`${r.namespaceUri??""}:${r.localName}=${r.value}`).sort();for(let r of t)n.push(r);}for(let t of e.children??[])n.push(np(t));return `(${n.join("|")})`}var Qf=new WeakMap;function ur(e){let n=Math.round(e.width*1e3),t=e.drawingToken??"",r=e.exclusionToken??"",o=Wx(e.properties),a=Qf.get(e.paragraph);if(a&&a.producer===e.producer&&a.width===n&&a.drawingToken===t&&a.exclusionToken===r&&a.propertiesToken===o)return a.key;let i=[e.producer,n,t,r,o,np(e.paragraph)].join("\0");return i.length<=ep&&Qf.set(e.paragraph,{producer:e.producer,width:n,drawingToken:t,exclusionToken:r,propertiesToken:o,key:i}),i}function $x(e={}){let n=Math.max(1,e.maxEntries??4096),t=new Map,r=0,o=0,a=0;return {get(i){let l=t.get(i);if(l===void 0){o+=1;return}return r+=1,t.delete(i),t.set(i,l),l},set(i,l){for(t.has(i)&&t.delete(i),t.set(i,l);t.size>n;){let s=t.keys().next();if(s.done)break;t.delete(s.value),a+=1;}},retain(i){for(let l of [...t.keys()])i.has(l)||(t.delete(l),a+=1);},clear(){t.clear();},get stats(){return {hits:r,misses:o,evictions:a,size:t.size}}}}var tp=21600;function _e(e){return Number.isFinite(e)?e:0}function ta(e){if(e.length===0)return Object.freeze([]);let n=[...e].sort((o,a)=>o.start-a.start||o.end-a.end),t=[],r=n[0];for(let o=1;o<n.length;o+=1){let a=n[o];a.start<=r.end+1e-4?r=Object.freeze({start:r.start,end:Math.max(r.end,a.end)}):(t.push(r),r=a);}return t.push(r),Object.freeze(t)}function Vx(e,n){let t=[];for(let r of e)for(let o of n){let a=Math.max(r.start,o.start),i=Math.min(r.end,o.end);i>a+1e-6&&t.push(Object.freeze({start:a,end:i}));}return ta(t)}function sd(e,n,t){let r=[];for(let o of e){let a=Math.max(o.start,n),i=Math.min(o.end,t);i>a+1e-6&&r.push(Object.freeze({start:a,end:i}));}return ta(r)}function Yx(e,n,t){let r=[],o=n;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<t&&r.push(Object.freeze({start:o,end:t})),Object.freeze(r)}function op(e,n){return Jr(e,n)}function dd(e,n,t){return op(Jr(e,n),t)}function Kx(e,n){let t=[],r=Math.min(e.length,cn);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(n<d||n>c||n===c&&s>l||n===d&&s<l)continue;let u=(n-l)/(s-l),p=a.x+u*(i.x-a.x);Number.isFinite(p)&&t.push({x:p,delta:s>l?1:-1});}return t.sort((o,a)=>o.x-a.x||o.delta-a.delta),Object.freeze(t)}function Ux(e,n){let t=[],r=Math.min(e.length,cn);for(let o=0;o<r;o+=1){let a=e[o],i=e[(o+1)%r];if(a.y!==i.y||Math.abs(n-a.y)>1e-6)continue;let l=Math.min(a.x,i.x),s=Math.max(a.x,i.x);s>l&&t.push(Object.freeze({start:l,end:s}));}return ta(t)}function rp(e,n,t){let r=Zx(Kx(e,n),t),o=Ux(e,n);return ta([...r,...o])}function Zx(e,n){if(e.length===0)return Object.freeze([]);let t=[];if(n==="evenodd"){for(let a=0;a+1<e.length;a+=2){let i=e[a].x,l=e[a+1].x;l>i&&t.push(Object.freeze({start:i,end:l}));}return Object.freeze(t)}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&&t.push(Object.freeze({start:o,end:a.x})),o=null);}return Object.freeze(t)}function qx(e,n){return Object.freeze({top:_e(e.top)+_e(n.top),right:_e(e.right)+_e(n.right),bottom:_e(e.bottom)+_e(n.bottom),left:_e(e.left)+_e(n.left)})}function Jx(e,n,t,r,o,a){let i=n.x-e.x,l=n.y-e.y,s=r.x-t.x,d=r.y-t.y,c=i*d-l*s;if(Math.abs(c)<1e-12)return null;let p=((t.x-e.x)*l-(t.y-e.y)*i)/c,f=((t.x-e.x)*d-(t.y-e.y)*s)/c;if(p<-1e-9||p>1+1e-9||f<-1e-9||f>1+1e-9)return null;let m=e.y+p*l;return !Number.isFinite(m)||m<o-1e-6||m>a+1e-6?null:m}function Qx(e,n,t,r){let o=[],a=Math.min(e.length,cn),i=Math.min(n.length,cn);if(a<2||i<2)return Object.freeze([]);let l=cn*cn,s=0;for(let d=0;d<a;d+=1){let c=e[d],u=e[(d+1)%a];for(let p=0;p<i;p+=1){if(s>=l)return Object.freeze(o);s+=1;let f=n[p],m=n[(p+1)%i],g=Jx(c,u,f,m,t,r);g!==null&&o.push(g);}}return Object.freeze(o)}function eS(e,n,t){let r=new Set;r.add(n),r.add(t);for(let o of e){let a=Math.min(o.length,cn);for(let i=0;i<a;i+=1){let l=o[i].y;Number.isFinite(l)&&l>=n-1e-6&&l<=t+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 [n,t]){let p=Math.min(d,c),f=Math.max(d,c);u>=p&&u<=f&&r.add(u);}}}if(e.length>=2)for(let o of Qx(e[0],e[1],n,t))r.add(o);return Object.freeze([...r].sort((o,a)=>o-a))}function nS(e,n,t,r){let o=rp(e,t,r);return n&&n.length>=3&&(o=Vx(o,rp(n,t,"nonzero"))),o}function ap(e,n,t,r,o=null){let a=_e(t.top),i=_e(t.bottom),l=_e(t.left),s=_e(t.right),d=n-i,c=n+a,u=eS(o&&o.length>=3?[e,o]:[e],d,c),p=[],f=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 f){let g=nS(e,o,m,r);for(let h of g)p.push(Object.freeze({start:h.start-l,end:h.end+s}));}return ta(p)}function ip(e){let{x:n,y:t,width:r,height:o}=e;return Object.freeze([Object.freeze({x:n,y:t}),Object.freeze({x:n+r,y:t}),Object.freeze({x:n+r,y:t+o}),Object.freeze({x:n,y:t+o})])}function tS(e){let n=Math.max(0,_e(e.extentWidthPt)),t=Math.max(0,_e(e.extentHeightPt)),r=vi(e.transform,n,t),o=Math.min(e.polygonEmu.length,cn);if(o<3)return ip({x:e.anchorX,y:e.anchorY,width:n,height:t});let a=r.width/tp,i=r.height/tp,l=[];for(let s=0;s<o;s+=1){let d=e.polygonEmu[s];l.push(Object.freeze({x:_e(d.x)*a,y:_e(d.y)*i}));}return Ti({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:n,layoutHeight:t,anchorX:e.anchorX,anchorY:e.anchorY})}function rS(e,n){let t=n.effectInsets??Ii,r=n.wrapDistances??Ii,o=_e(n.contentLeft),a=_e(n.contentRight);if(n.mode==="topAndBottom"){let c=op(Jr(n.contentBounds,t),r);return e<c.y||e>=c.y+c.height?Object.freeze([]):sd([{start:o,end:a}],o,a)}if(n.mode==="square"){let c=dd(n.contentBounds,t,r);return e<c.y||e>=c.y+c.height?Object.freeze([]):sd([{start:c.x,end:c.x+c.width}],o,a)}let i=n.polygon&&n.polygon.length>=3?n.polygon:ip(n.contentBounds),l=n.mode==="through"?"evenodd":"nonzero",s=qx(r,t),d=ap(i,e,s,l,n.clipPolygon);return sd(d,o,a)}function oS(e){return e.length===0?null:Object.freeze({start:Math.min(...e.map(n=>n.start)),end:Math.max(...e.map(n=>n.end))})}function aS(e,n,t,r,o){if(t==="bothSides"||n.length===0)return e;let a=oS(n);if(!a)return e;if(t==="left")return Object.freeze(e.filter(s=>s.end<=a.start+1e-4));if(t==="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 lp(e,n){let t=rS(e,n),r=Yx(t,n.contentLeft,n.contentRight);return aS(r,t,n.textSide,n.contentLeft,n.contentRight)}function iS(e,n,t,r){return t.length<3?false:ap(t,n,r,"nonzero").some(a=>e>=a.start-1e-6&&e<=a.end+1e-6)}function cd(e,n,t){let r=t.effectInsets??Ii,o=t.hitBounds;if(e<o.x||e>o.x+o.width||n<o.y||n>o.y+o.height)return false;if(t.clipPolygon&&t.clipPolygon.length>=3)return iS(e,n,t.clipPolygon,r);let a=Jr(t.contentBounds,r);return e>=a.x&&e<=a.x+a.width&&n>=a.y&&n<=a.y+a.height}function sp(e){let n=Object.freeze({top:_e(e.wrapDistancesEmu.top/nt),right:_e(e.wrapDistancesEmu.right/nt),bottom:_e(e.wrapDistancesEmu.bottom/nt),left:_e(e.wrapDistancesEmu.left/nt)}),t=e.mode==="tight"||e.mode==="through"?tS({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:t,clipPolygon:e.geometry.clipPolygon,wrapDistances:n,effectInsets:e.geometry.effectInsets,textSide:e.textSide,contentLeft:e.contentLeft,contentRight:e.contentRight})}var vn=1e5,cn=chunk2GSRLGUI_cjs.E.maxPolygonPoints,Ii=Object.freeze({top:0,right:0,bottom:0,left:0}),lS=32,sS=.1,dS=new Set(["rect","ellipse","roundRect"]);function ue(e){return Number.isFinite(e)?e:0}function Ln(e,n,t){return Number.isFinite(e)?Math.min(t,Math.max(n,e)):n}function dp(e,n){let t=e+n;return Number.isFinite(t)?t:0}function cp(e,n,t){let r=Ln(e,0,t),o=Ln(n,0,t);if(r<=0||o<=0)return {left:r,right:o};let a=r+o;if(a>=t){let i=(t-1)/a;r*=i,o*=i;}return {left:r,right:o}}function cS(e){let n=cp(Ln(e.left,0,vn),Ln(e.right,0,vn),vn),t=cp(Ln(e.top,0,vn),Ln(e.bottom,0,vn),vn);return Object.freeze({left:n.left,top:t.left,right:n.right,bottom:t.right})}function uS(e){let n=cS({left:e.left*vn,top:e.top*vn,right:e.right*vn,bottom:e.bottom*vn});return Object.freeze({left:n.left/vn,top:n.top/vn,right:n.right/vn,bottom:n.bottom/vn})}function fS(e){let n=t=>{if(!Number.isFinite(t))return 0;let r=t/nt;return !Number.isFinite(r)||Math.abs(r)>72e4?0:r};return Object.freeze({top:n(e.top),right:n(e.right),bottom:n(e.bottom),left:n(e.left)})}function Jr(e,n){let t=ue(n.left),r=ue(n.right),o=ue(n.top),a=ue(n.bottom);return Object.freeze({x:e.x-t,y:e.y-o,width:Math.max(0,dp(e.width,t+r)),height:Math.max(0,dp(e.height,o+a))})}function pS(e,n,t){let r=e*Ln(t.left,0,1),o=n*Ln(t.top,0,1),a=e*(1-Ln(t.right,0,1)),i=n*(1-Ln(t.bottom,0,1));if(a<=r||i<=o){let l=e/2,s=n/2;return Object.freeze({left:l,top:s,right:l,bottom:s})}return Object.freeze({left:r,top:o,right:a,bottom:i})}function vi(e,n,t){let r=e.extentEmu?.cx??0,o=e.extentEmu?.cy??0,a=e.offsetEmu??{x:0,y:0},i=r>0?ue(Gt(r)??n):Math.max(0,ue(n)),l=o>0?ue(Gt(o)??t):Math.max(0,ue(t));return Object.freeze({offsetX:ue(Gt(a.x)??0),offsetY:ue(Gt(a.y)??0),width:i,height:l})}function mS(e,n,t,r){let o=pS(n,t,r),a=o.right-o.left,i=o.bottom-o.top,l=n>0?n:1,s=t>0?t:1,d=[],c=Math.min(e.length,cn);for(let u=0;u<c;u+=1){let p=e[u],f=a<=0?o.left:o.left+Ln(p.x/l,0,1)*a,m=i<=0?o.top:o.top+Ln(p.y/s,0,1)*i;d.push(Object.freeze({x:ue(f),y:ue(m)}));}return Object.freeze(d)}function up(e,n,t){let r=e.x-n.x,o=e.y-n.y;t.flipHorizontal&&(r=-r),t.flipVertical&&(o=-o);let a=ue(t.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:ue(s+n.x),y:ue(d+n.y)})}function fp(e){if(e.length===0)return Object.freeze({x:0,y:0,width:0,height:0});let n=e[0].x,t=e[0].x,r=e[0].y,o=e[0].y,a=Math.min(e.length,cn);for(let i=1;i<a;i+=1){let l=e[i];!Number.isFinite(l.x)||!Number.isFinite(l.y)||(n=Math.min(n,l.x),t=Math.max(t,l.x),r=Math.min(r,l.y),o=Math.max(o,l.y));}return Object.freeze({x:n,y:r,width:Math.max(0,t-n),height:Math.max(0,o-r)})}function ud(e){let n=Object.freeze({x:e.offsetX+e.sourceWidth/2,y:e.offsetY+e.sourceHeight/2}),t=ra(0,0,e.sourceWidth,e.sourceHeight),r=[];for(let l of t)r.push(up(Object.freeze({x:l.x+e.offsetX,y:l.y+e.offsetY}),n,e.transform));let o=fp(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,ue(e.layoutWidth))/a,scaleY:Math.max(0,ue(e.layoutHeight))/i,anchorX:ue(e.anchorX),anchorY:ue(e.anchorY)})}function gS(e,n){return Object.freeze({x:ue(n.anchorX+(e.x-n.bboxX)*n.scaleX),y:ue(n.anchorY+(e.y-n.bboxY)*n.scaleY)})}function Ti(e){let n=e.mapping??ud({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}),t=mS(e.points,e.sourceWidth,e.sourceHeight,e.crop),r=Math.min(t.length>0?t.length:e.points.length,cn),o=t.length>0?t: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:ue(s.x+e.offsetX),y:ue(s.y+e.offsetY)});i.push(gS(up(d,a,e.transform),n));}return Object.freeze(i)}function ra(e,n,t,r){if(t<=0||r<=0){let o=Object.freeze({x:e,y:n});return Object.freeze([o,o,o,o])}return Object.freeze([Object.freeze({x:e,y:n}),Object.freeze({x:e+t,y:n}),Object.freeze({x:e+t,y:n+r}),Object.freeze({x:e,y:n+r})])}function hS(e,n,t){if(!e||!dS.has(e))return null;if(n<=0||t<=0)return ra(0,0,Math.max(0,n),Math.max(0,t));if(e==="rect")return ra(0,0,n,t);if(e==="ellipse"){let l=[],s=n/2,d=t/2,c=n/2,u=t/2,p=Math.min(lS,cn);for(let f=0;f<p;f+=1){let m=f/p*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(n,t)*sS,o=Math.max(0,r),a=n,i=t;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 eo(e){return Object.freeze({x:ue(e.x),y:ue(e.y)})}function yS(e,n){if(e.length===0)return Object.freeze([]);let t=n.x+n.width,r=n.y+n.height,o=(i,l,s)=>{if(i.length===0)return Object.freeze([]);let d=[],c=Math.min(i.length,cn);for(let u=0;u<c;u+=1){let p=eo(i[u]),f=eo(i[(u+1)%c]),m=l(p),g=l(f);if(m&&g?d.push(f):m&&!g?d.push(eo(s(p,f))):!m&&g&&(d.push(eo(s(p,f))),d.push(f)),d.length>=cn)break}return Object.freeze(d.slice(0,cn))},a=e.slice(0,cn).map(eo);return a=[...o(a,i=>i.x>=n.x,(i,l)=>{let s=l.x-i.x,d=Math.abs(s)>1e-6?(n.x-i.x)/s:0;return Object.freeze({x:n.x,y:ue(i.y+d*(l.y-i.y))})})],a=[...o(a,i=>i.x<=t,(i,l)=>{let s=l.x-i.x,d=Math.abs(s)>1e-6?(t-i.x)/s:0;return Object.freeze({x:t,y:ue(i.y+d*(l.y-i.y))})})],a=[...o(a,i=>i.y>=n.y,(i,l)=>{let s=l.y-i.y,d=Math.abs(s)>1e-6?(n.y-i.y)/s:0;return Object.freeze({x:ue(i.x+d*(l.x-i.x)),y:n.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:ue(i.x+d*(l.x-i.x)),y:r})})],Object.freeze(a)}function bS(e){let n=fp(e);return Object.freeze({x:n.x,y:n.y,width:n.width,height:n.height})}function Oi(e,n){let t=xS(e.paintBounds,n),r=t.width>0&&t.height>0?t:Object.freeze({...t}),o=a=>{if(!a||a.length===0)return a;let i=yS(a,n);return i.length>=3?Object.freeze(i.map(eo)):Object.freeze([])};return Object.freeze({...e,paintBounds:t,hitBounds:r,transformedCorners:Object.freeze(o(e.transformedCorners)??e.transformedCorners),clipPolygon:o(e.clipPolygon)})}function xS(e,n){let t=Math.max(e.x,n.x),r=Math.max(e.y,n.y),o=Math.min(e.x+e.width,n.x+n.width),a=Math.min(e.y+e.height,n.y+n.height);return o<=t||a<=r?Object.freeze({x:t,y:r,width:0,height:0}):Object.freeze({x:t,y:r,width:o-t,height:a-r})}function SS(e){let n=Math.max(0,ue(e.extentWidth)),t=Math.max(0,ue(e.extentHeight)),r=ue(e.anchorX),o=ue(e.anchorY),a=uS(e.crop),i=fS(e.effectExtentEmu),l=vi(e.transform,n,t),s=Object.freeze({x:r,y:o,width:n,height:t}),d={sourceWidth:l.width,sourceHeight:l.height,offsetX:l.offsetX,offsetY:l.offsetY,crop:a,transform:e.transform,layoutWidth:n,layoutHeight:t,anchorX:r,anchorY:o},c=ud(d),u=Object.freeze({left:0,top:0,right:0,bottom:0}),p=Ti({points:ra(0,0,l.width,l.height),...d,crop:u,mapping:c}),f=hS(e.presetGeometry,l.width,l.height),m="none",g=f;g||(m=e.presetGeometry?"unsupported-preset":"none",g=ra(0,0,l.width,l.height));let h=Ti({points:g,...d,crop:u,mapping:c}),y=bS(h.length>=3?h:p),x=Jr(y,i);return Object.freeze({contentBounds:s,paintBounds:x,hitBounds:x,transformedCorners:p,clipPolygon:h.length>=3?h:p,clipFallback:m,effectInsets:i})}function no(e){let n=e.projection.picture,t=Object.freeze({rotationDegrees:0,flipHorizontal:false,flipVertical:false,offsetEmu:Object.freeze({x:0,y:0}),extentEmu:Object.freeze({cx:0,cy:0})});return SS({extentWidth:e.extentWidth,extentHeight:e.extentHeight,anchorX:e.anchorX,anchorY:e.anchorY,effectExtentEmu:e.projection.effectExtentEmu,crop:n?.crop??{left:0,top:0,right:0,bottom:0},transform:n?.transform??t,presetGeometry:n?.presetGeometry??null})}function wS(e){let{transform:n,contentWidth:t,contentHeight:r}=e;if(t<=0||r<=0)return null;let o=vi(n,t,r),a=o.width,i=o.height,l=ud({sourceWidth:a,sourceHeight:i,offsetX:o.offsetX,offsetY:o.offsetY,transform:n,layoutWidth:t,layoutHeight:r,anchorX:0,anchorY:0}),s=ue(n.rotationDegrees),d=Math.abs(s%360)>1e-4,c=n.flipHorizontal?-1:1,u=n.flipVertical?-1:1,p=l.scaleX,f=l.scaleY,m=a>0?a/t:1,g=i>0?i/r:1;if(!d&&c===1&&u===1&&Math.abs(p-1)<1e-4&&Math.abs(f-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 y=s*Math.PI/180,x=Math.cos(y),v=Math.sin(y),C=o.offsetX+a/2,M=o.offsetY+i/2,N=p*x*c,P=-p*v*u,L=f*v*c,T=f*x*u,I=p*(C-x*c*(a/2)+v*u*(i/2)-l.bboxX),b=f*(M-v*c*(a/2)-x*u*(i/2)-l.bboxY);return Object.freeze({a:ue(N*m),b:ue(L*m),c:ue(P*g),d:ue(T*g),e:ue(I),f:ue(b)})}function Nv(e){let n=wS(e);if(n)return `matrix(${Qr(n.a)}, ${Qr(n.b)}, ${Qr(n.c)}, ${Qr(n.d)}, ${Qr(n.e)}, ${Qr(n.f)})`}function Qr(e){return Number.isFinite(e)?String(e):"0"}var PS=Object.freeze({"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"}),RS=Object.freeze({rotationDegrees:0,flipHorizontal:false,flipVertical:false,offsetEmu:Object.freeze({x:0,y:0}),extentEmu:Object.freeze({cx:0,cy:0})}),IS=Object.freeze({left:0,top:0,right:0,bottom:0});function gp(e){let n=e.picture,t=null;if(!n){for(let r of e.diagnostics){if(r.code!=="unsupported-graphic")continue;let o=r.detail??"";t=PS[o]??"graphic";break}t===null&&(t="graphic");}return Object.freeze({hyperlinkHref:e.hyperlinkHref,effects:e.effects,crop:n?.crop??IS,transform:n?.transform??RS,placeholderGraphicKind:n?null:t,vectorShape:e.vectorShape})}var nt=12700;function an(e){return e/nt}function Gt(e){if(!Number.isFinite(e)||Math.abs(e)>1e4*nt*72)return null;let n=e/nt;return Number.isFinite(n)?n:null}function ht(e){let n=an(e.inlineDistancesEmu.left),t=an(e.inlineDistancesEmu.right),r=an(e.inlineDistancesEmu.top),o=an(e.inlineDistancesEmu.bottom),a=an(e.effectExtentEmu.left),i=an(e.effectExtentEmu.right),l=an(e.effectExtentEmu.top),s=an(e.effectExtentEmu.bottom),d=an(e.extentEmu.cx),c=an(e.extentEmu.cy);return Object.freeze({distL:n,distR:t,distT:r,distB:o,effectL:a,effectR:i,effectT:l,effectB:s,width:d,height:c,totalWidth:n+a+d+i+t,lineContribution:r+l+c+s+o})}function hp(e,n,t){let r=Math.max(t.distT+t.effectT,e-t.height),o=Math.max(n,r-t.effectT+t.height+t.effectB+t.distB),a=r+t.height+t.effectB;return Object.freeze({extentTopY:r,lineHeight:o,baseline:Math.max(e,a)})}function ki(e,n,t){if(Math.abs(n)<1e-4&&Math.abs(t)<1e-4)return e;let r=a=>Object.freeze({...a,x:a.x+n,y:a.y+t}),o=a=>Object.freeze({x:a.x+n,y:a.y+t});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 Ci(e,n,t){return Math.abs(n)<1e-4&&Math.abs(t)<1e-4?e:Object.freeze({...e,x:e.x+n,y:e.y+t,advanceStart:e.advanceStart+n,advanceEnd:e.advanceEnd+n,paintBounds:Object.freeze({...e.paintBounds,x:e.paintBounds.x+n,y:e.paintBounds.y+t}),hitBounds:Object.freeze({...e.hitBounds,x:e.hitBounds.x+n,y:e.hitBounds.y+t}),geometry:ki(e.geometry,n,t)})}function fd(e,n){return e.length===0?e:e.map(t=>{let r=t.geometry.effectInsets.bottom,o=n-t.height-r,a=o-t.y;return Math.abs(a)<1e-4&&t.baselineOffset===n?t:Object.freeze({...t,y:o,baselineOffset:n,geometry:ki(t.geometry,0,a),paintBounds:Object.freeze({...t.paintBounds,y:t.paintBounds.y+a}),hitBounds:Object.freeze({...t.hitBounds,y:t.hitBounds.y+a})})})}function pd(e,n){let t=Math.max(e.x,n.x),r=Math.max(e.y,n.y),o=Math.min(e.x+e.width,n.x+n.width),a=Math.min(e.y+e.height,n.y+n.height);return o<=t||a<=r?Object.freeze({x:t,y:r,width:0,height:0}):Object.freeze({x:t,y:r,width:o-t,height:a-r})}function Bi(e,n){let t=pd(e.paintBounds,n),r=t.width>0&&t.height>0?t:Object.freeze({...t}),o=e.x-e.geometry.contentBounds.x,a=e.y-e.geometry.contentBounds.y,i=ki(e.geometry,o,a);return Object.freeze({...e,paintBounds:t,hitBounds:r,geometry:Oi(i,n)})}var pp=new Set(["character","column","insideMargin","leftMargin","margin","outsideMargin","page","rightMargin"]),mp=new Set(["bottomMargin","insideMargin","line","margin","outsideMargin","page","paragraph","topMargin"]);function tt(e){return e%2===1}function yp(e,n){return !(!n.layoutInCell||n.cellBox===null||!Number.isFinite(n.cellBox.height)||n.cellBox.height<=0||!Number.isFinite(n.cellBox.width)||n.cellBox.width<=0)}function bp(e,n){if(yp(e,n)){let s=n.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:n.anchorCharacterX,right:n.anchorCharacterX,center:n.anchorCharacterX};case "insideMargin":return tt(n.pageNumber)?{left:d,right:d+c,center:d+c/2}:{left:d+c,right:d+c,center:d+c};case "outsideMargin":return tt(n.pageNumber)?{left:d+c,right:d+c,center:d+c}:{left:d,right:d+c,center:d+c/2};default:return null}}let t=-n.marginLeft,r=n.contentWidth+n.marginRight,o=0,a=n.contentWidth,i=n.columnBox.x,l=n.columnBox.x+n.columnBox.width;switch(e){case "page":return {left:t,right:r,center:(t+r)/2};case "margin":return {left:o,right:a,center:o+n.contentWidth/2};case "column":return {left:i,right:l,center:i+n.columnBox.width/2};case "character":return {left:n.anchorCharacterX,right:n.anchorCharacterX,center:n.anchorCharacterX};case "leftMargin":return {left:t,right:t,center:t};case "rightMargin":return {left:r,right:r,center:r};case "insideMargin":return tt(n.pageNumber)?{left:o,right:o,center:o}:{left:a,right:a,center:a};case "outsideMargin":return tt(n.pageNumber)?{left:r,right:r,center:r}:{left:t,right:t,center:t};default:return null}}function xp(e,n){if(yp(e,n)){let s=n.cellBox;if(!s)return null;let{y:d,height:c}=s;switch(e){case "page":case "margin":case "topMargin":case "bottomMargin":return {top:d,bottom:d+c,center:d+c/2};case "paragraph":return {top:n.paragraphBox.y,bottom:n.paragraphBox.y+n.paragraphBox.height,center:n.paragraphBox.y+n.paragraphBox.height/2};case "line":return {top:n.anchorLineBox.y,bottom:n.anchorLineBox.y+n.anchorLineBox.height,center:n.anchorLineBox.y+n.anchorLineBox.height/2};case "insideMargin":return tt(n.pageNumber)?{top:d,bottom:d+c,center:d+c/2}:{top:d+c,bottom:d+c,center:d+c};case "outsideMargin":return tt(n.pageNumber)?{top:d+c,bottom:d+c,center:d+c}:{top:d,bottom:d+c,center:d+c/2};default:return null}}let t=-n.marginTop,r=n.physicalContentHeight??n.contentHeight,o=r,a=r+n.marginBottom,i=0,l=n.contentHeight;switch(e){case "page":return {top:t,bottom:a,center:(t+a)/2};case "margin":return {top:i,bottom:l,center:i+n.contentHeight/2};case "paragraph":return {top:n.paragraphBox.y,bottom:n.paragraphBox.y+n.paragraphBox.height,center:n.paragraphBox.y+n.paragraphBox.height/2};case "line":return {top:n.anchorLineBox.y,bottom:n.anchorLineBox.y+n.anchorLineBox.height,center:n.anchorLineBox.y+n.anchorLineBox.height/2};case "topMargin":return {top:t,bottom:t,center:t};case "bottomMargin":return {top:o,bottom:o,center:o};case "insideMargin":return tt(n.pageNumber)?{top:i,bottom:i,center:i}:{top:l,bottom:l,center:l};case "outsideMargin":return tt(n.pageNumber)?{top:a,bottom:a,center:a}:{top:t,bottom:t,center:t};default:return null}}function Sp(e){return e===null?0:Gt(e)}function vS(e,n,t){let r=tt(t.pageNumber);if(t.layoutInCell&&t.cellBox&&Number.isFinite(t.cellBox.width)&&t.cellBox.width>0){let{x:o,width:a}=t.cellBox;return e==="inside"?r?o:o+a-n:e==="outside"?r?o+a-n:o:null}return e==="inside"?r?0:t.contentWidth-n:e==="outside"?r?t.contentWidth-n:0:null}function TS(e,n,t){let r=tt(t.pageNumber),o=t.physicalContentHeight??t.contentHeight;if(t.layoutInCell&&t.cellBox&&Number.isFinite(t.cellBox.height)&&t.cellBox.height>0){let{y:a,height:i}=t.cellBox;return e==="inside"?r?a:a+i-n:e==="outside"?r?a+i-n:a:null}return e==="inside"?r?0:o-n:e==="outside"?r?o-n:0:null}function OS(e,n,t,r,o){let a=bp(e,o);if(!a)return null;let i=Sp(t);if(i===null)return null;if(n==="left")return a.left+i;if(n==="center")return a.center-r/2+i;if(n==="right")return a.right-r+i;if(n==="inside"||n==="outside"){let l=vS(n,r,o);if(l!==null)return l+i}return a.left+i}function kS(e,n,t,r,o){let a=xp(e,o);if(!a)return null;let i=Sp(t);if(i===null)return null;if(n==="top")return a.top+i;if(n==="center")return a.center-r/2+i;if(n==="bottom")return a.bottom-r+i;if(n==="inside"||n==="outside"){let l=TS(n,r,o);if(l!==null)return l+i}return a.top+i}function oa(e){let n=e.physicalContentHeight??e.contentHeight;return Object.freeze({x:-e.marginLeft,y:-e.marginTop,width:e.pageWidth,height:n+e.marginTop+e.marginBottom})}function md(e,n){let t=ht(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=Gt(r.simplePosition.xEmu),h=Gt(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-n.marginLeft,y:h-n.marginTop,horizontalFrame:r.horizontal.relativeFrom,verticalFrame:r.vertical.relativeFrom,horizontalFrameOrigin:0,verticalFrameOrigin:0})}let l=r.horizontal.relativeFrom,s=r.vertical.relativeFrom,d=bp(l,n),c=xp(s,n),u=d?.left??0,p=c?.top??0;if(!pp.has(l)||!mp.has(s))return Object.freeze({x:0,y:0,horizontalFrame:pp.has(l)?l:a,verticalFrame:mp.has(s)?s:i,horizontalFrameOrigin:u,verticalFrameOrigin:p,layoutFallback:"unresolvable-frame"});let f=OS(l,r.horizontal.align,r.horizontal.offsetEmu,t.width,n),m=kS(s,r.vertical.align,r.vertical.offsetEmu,t.height,n);return Object.freeze(f===null||m===null?{x:0,y:0,horizontalFrame:l,verticalFrame:s,horizontalFrameOrigin:u,verticalFrameOrigin:p,layoutFallback:"unresolvable-frame"}:{x:f,y:m,horizontalFrame:l,verticalFrame:s,horizontalFrameOrigin:u,verticalFrameOrigin:p})}function CS(e){let n=e.input.projection,t=n.anchor,r=ht(n),o=no({projection:n,anchorX:e.resolved.x,anchorY:e.resolved.y,extentWidth:r.width,extentHeight:r.height}),a=e.clipRegion?pd(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:t?.behindDocument??false,allowOverlap:t?.allowOverlap??true,layoutInCell:t?.layoutInCell??true,relativeHeight:t?.relativeHeight??0,wrap:n.wrap==="inline"?"inFront":n.wrap,...e.sourceOrder!==void 0?{sourceOrder:e.sourceOrder}:{},...e.resolved.layoutFallback?{layoutFallback:e.resolved.layoutFallback}:{},...e.textboxStory?{textboxStory:e.textboxStory}:{},paintBounds:a,hitBounds:i,geometry:e.clipRegion?Oi(o,e.clipRegion):o,resource:e.input.resource,accessibility:chunk2GSRLGUI_cjs.bb(n),...gp(n)})}function Fn(e,n){if(e.kind!=="paragraph")return [];let t=[],r=o=>{if(o.kind==="drawing"){let a=n.projectionForAtom?.(o.id)??n.project(o);a?.kind==="anchored"&&t.push({atomId:o.id,projection:a});return}if(chunk2GSRLGUI_cjs.ab(o)){let a=n.projectionForAtom?.(o.id)??null;a?.kind==="anchored"&&t.push({atomId:o.id,projection:a});return}if("children"in o)for(let a of o.children)r(a);};for(let o of e.children)r(o);return Object.freeze(t)}function Hn(e){let n=new Map;if(e.kind!=="paragraph")return n;let t=0,r=o=>{if(o.kind==="drawing"||chunk2GSRLGUI_cjs.ab(o)){n.set(o.id,t),t+=1;return}if(o.kind==="textValue"){t+=o.value.length;return}if("children"in o)for(let a of o.children)r(a);};for(let o of e.children){if(o.kind==="run"){for(let a of o.children)r(a);continue}if(o.kind==="hyperlink"){for(let a of o.children)if(a.kind==="run")for(let i of a.children)r(i);}}return n}function BS(e,n,t){for(let o of e.spans){if(n<o.range.start)break;if(n<o.range.end){if(t&&o.text!==void 0&&o.style!==void 0){let l=n-o.range.start;return o.box.x+et(o.text.slice(0,l),o.style,t)}let a=o.range.end-o.range.start;if(a<=0)return o.box.x;let i=n-o.range.start;return o.box.x+o.box.width*i/a}if(n===o.range.end)return t&&o.text!==void 0&&o.style!==void 0?o.box.x+et(o.text,o.style,t):o.box.x+o.box.width}let r;for(let o of e.spans)o.range.end<=n&&(r=o);return r?t&&r.text!==void 0&&r.style!==void 0?r.box.x+et(r.text,r.style,t):r.box.x+r.box.width:e.box.x}function LS(e,n){let t=e.range.start;for(let r of e.spans)r.range.end<=n&&(t=r.range.end);return t}function gd(e,n,t){if(!(Math.abs(t)<=.001))for(let r=0;r<e.length;r+=1){let o=e[r];o.anchorParagraphId===n&&(e[r]=Object.freeze({...o,y:o.y+t,geometry:ki(o.geometry,0,t),paintBounds:Object.freeze({...o.paintBounds,y:o.paintBounds.y+t}),hitBounds:Object.freeze({...o.hitBounds,y:o.hitBounds.y+t})}));}}function to(e){let n=Fn(e.paragraph,e.drawingLayout);if(n.length===0)return [];let t=Hn(e.paragraph),r=[];for(let o of n){let a=o.projection;if(a.hidden)continue;let i=t.get(o.atomId);if(i===void 0||e.fragmentRange&&(i<e.fragmentRange.start||i>=e.fragmentRange.end))continue;let l=e.lines.find(h=>i>=h.range.start&&i<h.range.end);if(!l)continue;let s=a.anchor?.layoutInCell??true,c=a.position?.horizontal.relativeFrom==="character"?LS(l,i):i,u=Object.freeze({...e.frameBase,paragraphBox:e.paragraphBox,anchorLineBox:l.box,anchorCharacterX:BS(l,c,e.measurer),columnBox:e.columnBox,cellBox:e.cellBox,layoutInCell:s}),p=md(a,u),m=s&&e.cellBox!==null&&Number.isFinite(e.cellBox.height)&&e.cellBox.height>0&&Number.isFinite(e.cellBox.width)&&e.cellBox.width>0?e.cellBox:oa(e.frameBase),g=CS({input:Object.freeze({drawingNodeId:o.atomId,ownerPartName:e.drawingLayout.ownerPartName,projection:a,resource:e.drawingLayout.resourceOf(a)}),anchorParagraphId:e.paragraphId,start:c,resolved:p,clipRegion:m,...e.sourceOrderOf?{sourceOrder:e.sourceOrderOf(o.atomId)}:{},...a.textboxStory&&e.layoutTextboxStory?{textboxStory:e.layoutTextboxStory(a)}:{}});r.push(g);}return Object.freeze(r)}function wp(e){let n=ht(e.input.projection),t=e.slotX+n.distL+n.effectL,r=no({projection:e.input.projection,anchorX:t,anchorY:e.y,extentWidth:n.width,extentHeight:n.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=pd(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:t,y:e.y,width:n.width,height:n.height,distL:n.distL,distR:n.distR,distT:n.distT,distB:n.distB,advanceStart:e.slotX,advanceEnd:e.slotX+n.totalWidth,baselineOffset:e.baseline,paintBounds:a,hitBounds:i,geometry:Oi(r,o),resource:e.input.resource,accessibility:chunk2GSRLGUI_cjs.bb(e.input.projection),...gp(e.input.projection)})}var FS=256,bd=8,fr=8,ro=class extends Error{name="DrawingExclusionConvergenceError";constructor(n="drawing exclusion reflow did not converge"){super(n);}};function ES(e,n){let t=Math.max(1,n.columnCount);if(t<=1)return 0;let r=e.x+e.width/2;if(n.columnLefts&&n.columnWidths&&n.columnLefts.length===t){for(let i=0;i<t;i+=1){let l=n.columnLefts[i],s=l+n.columnWidths[i];if(r>=l-.001&&r<s+.001)return i}return t-1}let o=n.columnGapPt,a=(n.contentWidth-o*(t-1))/t;for(let i=0;i<t;i+=1){let l=i*(a+o),s=l+a;if(r>=l-.001&&r<s+.001)return i}return t-1}function yd(e){return e.behindDocument?"behind":"inFront"}function Pp(e){return e!=="inline"&&e!=="behind"&&e!=="inFront"}function MS(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 NS(e){return e==="squareLeft"?"left":e==="squareRight"?"right":"bothSides"}function xd(e){let n=MS(e.projection.wrap);if(!n||!e.projection.wrapGeometry)return null;let t=e.projection.wrapGeometry,r=Object.freeze({x:e.anchorX,y:e.anchorY,width:e.geometry.contentBounds.width,height:e.geometry.contentBounds.height});return sp({mode:n,contentBounds:r,geometry:e.geometry,wrapDistancesEmu:t.distancesEmu,polygonEmu:t.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:n==="square"?NS(e.projection.wrap):t.textSide,contentLeft:e.contentLeft,contentRight:e.contentRight})}function Sd(e){if(e.mode==="topAndBottom"||e.mode==="square")return dd(e.contentBounds,e.effectInsets,e.wrapDistances);let n=[e.contentBounds.y,e.contentBounds.y+e.contentBounds.height];if(e.polygon)for(let o of e.polygon)n.push(o.y);let t=Math.min(...n)-e.effectInsets.top-e.wrapDistances.top,r=Math.max(...n)+e.effectInsets.bottom+e.wrapDistances.bottom;return Object.freeze({x:e.contentLeft,y:t,width:Math.max(0,e.contentRight-e.contentLeft),height:Math.max(0,r-t)})}function AS(e){if(e.drawing.behindDocument||!Pp(e.drawing.wrap))return null;let n=e.yOverride??e.drawing.y,t=xd({projection:e.projection,geometry:e.drawing.geometry,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:e.drawing.x,anchorY:n});return t?Object.freeze({drawingNodeId:e.drawing.drawingNodeId,anchorParagraphId:e.drawing.anchorParagraphId,anchorModelStart:e.drawing.start,sourceOrder:e.sourceOrder,paintLayer:yd(e.drawing),relativeHeight:e.drawing.relativeHeight,allowOverlap:e.drawing.allowOverlap,columnIndex:e.columnIndex??0,y:n,verticalBand:Sd(t),input:t}):null}function Rp(e,n){let t=e.sourceOrder??Number.MAX_SAFE_INTEGER,r=n.sourceOrder??Number.MAX_SAFE_INTEGER;return t!==r?t-r:e.drawingNodeId.localeCompare(n.drawingNodeId)}function DS(e,n){let t=yd(e),r=yd(n);return t!==r?t==="behind"?-1:1:e.relativeHeight!==n.relativeHeight?e.relativeHeight-n.relativeHeight:Rp(e,n)}function Ip(e){return Object.freeze([...e].sort(DS))}function hd(e,n){return e.x<n.x+n.width&&e.x+e.width>n.x&&e.y<n.y+n.height&&e.y+e.height>n.y}function wd(e,n){if(Math.abs(n)<=1e-4)return e;let t=e.geometry;return Object.freeze({...e,y:e.y+n,paintBounds:Object.freeze({...e.paintBounds,y:e.paintBounds.y+n}),hitBounds:Object.freeze({...e.hitBounds,y:e.hitBounds.y+n}),geometry:Object.freeze({...t,contentBounds:Object.freeze({...t.contentBounds,y:t.contentBounds.y+n}),paintBounds:Object.freeze({...t.paintBounds,y:t.paintBounds.y+n}),hitBounds:Object.freeze({...t.hitBounds,y:t.hitBounds.y+n}),transformedCorners:t.transformedCorners.map(r=>Object.freeze({x:r.x,y:r.y+n})),clipPolygon:t.clipPolygon?t.clipPolygon.map(r=>Object.freeze({x:r.x,y:r.y+n})):null})})}function vp(e,n){let t=n.maxAttempts??FS,r=[...e].sort(Rp),o=[],a=[],i=[];for(let l of r){if(l.allowOverlap){o.push(l);continue}let s=l,d=0;for(;d<t&&o.some(g=>hd(g.paintBounds,s.paintBounds));){let f=o.find(g=>hd(g.paintBounds,s.paintBounds)),m=f.paintBounds.y+f.paintBounds.height-s.paintBounds.y+.001;s=wd(s,m),d+=1;}let c=o.some(p=>hd(p.paintBounds,s.paintBounds)),u=s.paintBounds.y+s.paintBounds.height>n.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 oo(e,n,t,r){let o=[{start:t,end:r}];for(let a of n){let i=a.verticalBand;if(e<i.y||e>=i.y+i.height)continue;let l=lp(e,a.input),s=[];for(let d of o)for(let c of l){let u=Math.max(d.start,c.start),p=Math.min(d.end,c.end);p>u+1e-6&&s.push(Object.freeze({start:u,end:p}));}if(o=s,o.length===0)break}return Object.freeze(o)}function Tp(e,n){for(let t of n)if(e>=t.start-1e-6&&e<t.end-1e-6)return Math.max(0,t.end-e);return 0}function _S(e,n){for(let t of n)if(t.end>e+1e-6)return t;return null}function Pd(e,n){let t=_S(e,n);if(!t)return null;let r=Math.max(e,t.start),o=t.end-r;return o<=.001?null:Object.freeze({x:r,available:o})}function HS(e,n,t){let r=e.contentBounds;return Object.freeze({...e,contentBounds:Object.freeze({...r,x:r.x+n,y:r.y+t}),contentLeft:e.contentLeft+n,contentRight:e.contentRight+n,...e.polygon?{polygon:e.polygon.map(o=>Object.freeze({x:o.x+n,y:o.y+t}))}:{},...e.clipPolygon?{clipPolygon:e.clipPolygon.map(o=>Object.freeze({x:o.x+n,y:o.y+t}))}:{}})}function Rd(e,n){return Object.freeze({...e,layoutFallback:n})}function Op(e,n,t,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-t,verticalBand:Object.freeze({...a,x:a.x-n,y:a.y-t}),input:Object.freeze({...HS(i,-n,-t),contentLeft:r?.left,contentRight:r?.right??i.contentRight-n})})}))}function kp(e,n,t){return Object.freeze(e.filter(r=>{let o=t(r.anchorParagraphId);return o===void 0?r.sourceOrder<=n:o<=n}))}function Cp(e){let n=Fn(e.paragraph,e.drawingLayout);if(n.length===0)return Object.freeze([]);let t=Hn(e.paragraph),r=Math.max(1,e.contentRight-e.contentLeft),o=[];for(let a of n){if(a.projection.anchor?.behindDocument||!Pp(a.projection.wrap)||a.projection.wrap==="topAndBottom")continue;let i=t.get(a.atomId);if(i===void 0)continue;let l=e.anchorLineTopByModelStart.get(i);if(l===void 0)continue;let s=Object.freeze({x:e.contentLeft,y:l,width:r,height:14}),d=e.anchorCellBox!=null,c=md(a.projection,{pageNumber:1,pageWidth:e.contentRight+e.contentLeft+r,marginLeft:e.contentLeft,marginRight:0,marginTop:0,marginBottom:0,contentWidth:r,contentHeight:648,physicalContentHeight:648,paragraphBox:s,anchorLineBox:s,anchorCharacterX:e.contentLeft,columnBox:s,cellBox:d?e.anchorCellBox:null,layoutInCell:d,ownerPartName:e.drawingLayout.ownerPartName}),u=e.paragraphStartY+l,p=ht(a.projection),f=no({projection:a.projection,anchorX:c.x,anchorY:u,extentWidth:p.width,extentHeight:p.height}),m=xd({projection:a.projection,geometry:f,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:c.x,anchorY:u});m&&o.push(Object.freeze({drawingNodeId:a.atomId,anchorParagraphId:e.paragraphId,anchorModelStart:i,sourceOrder:e.sourceOrderOf?.(a.atomId)??Number.MAX_SAFE_INTEGER,paintLayer:a.projection.anchor?.behindDocument?"behind":"inFront",relativeHeight:a.projection.anchor?.relativeHeight??0,allowOverlap:a.projection.anchor?.allowOverlap??true,columnIndex:0,y:u,verticalBand:Sd(m),input:m}));}return o.sort((a,i)=>a.sourceOrder-i.sourceOrder),Object.freeze(o)}function Li(e){let n=Fn(e.paragraph,e.drawingLayout);if(n.length===0)return Object.freeze([]);let t=Hn(e.paragraph),r=[];for(let o of n){if(o.projection.anchor?.behindDocument||o.projection.wrap!=="topAndBottom")continue;let a=t.get(o.atomId);if(a===void 0)continue;let i=e.anchorLineTopByModelStart.get(a);if(i===void 0)continue;let l=e.paragraphStartY+i,s=ht(o.projection),d=no({projection:o.projection,anchorX:e.contentLeft,anchorY:l,extentWidth:s.width,extentHeight:s.height}),c=xd({projection:o.projection,geometry:d,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:e.contentLeft,anchorY:l});c&&r.push(Object.freeze({drawingNodeId:o.atomId,anchorParagraphId:e.paragraphId,anchorModelStart:a,sourceOrder:e.sourceOrderOf?.(o.atomId)??Number.MAX_SAFE_INTEGER,paintLayer:o.projection.anchor?.behindDocument?"behind":"inFront",relativeHeight:o.projection.anchor?.relativeHeight??0,allowOverlap:o.projection.anchor?.allowOverlap??true,columnIndex:e.columnIndex??0,y:l,verticalBand:Sd(c),input:c}));}return r.sort((o,a)=>o.sourceOrder-a.sourceOrder),Object.freeze(r)}var zS=8;function jS(e,n,t,r){return e<r&&n>t}function yt(e,n,t){if(n<=0||t.length===0)return 0;let r=0;for(let o=0;o<zS;o+=1){let a=e+r,i=a+n,l=a,s=false;for(let c of t){if(c.input.mode!=="topAndBottom")continue;let u=c.verticalBand.y,p=u+c.verticalBand.height;jS(a,i,u,p)&&(s=true,l=Math.max(l,p));}if(!s)break;let d=l-e;if(d<=r+.001)break;r=d;}return r}function GS(e){return e.map(n=>`${n.start.toFixed(3)}-${n.end.toFixed(3)}`).join(",")}function WS(e){let n=e.contentBounds,t=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,n.x.toFixed(3),n.y.toFixed(3),n.width.toFixed(3),n.height.toFixed(3),t.top.toFixed(3),t.right.toFixed(3),t.bottom.toFixed(3),t.left.toFixed(3),r.top.toFixed(3),r.right.toFixed(3),r.bottom.toFixed(3),r.left.toFixed(3),o,a].join(":")}function rt(e){return e.length===0?"":e.map(n=>{let t=n.verticalBand,r=n.y+n.input.contentBounds.height/2,o=oo(r,[n],n.input.contentLeft,n.input.contentRight);return [n.drawingNodeId,String(n.sourceOrder),String(n.columnIndex),n.y.toFixed(3),t.x.toFixed(3),t.y.toFixed(3),t.width.toFixed(3),t.height.toFixed(3),WS(n.input),GS(o)].join("|")}).join(`
|
|
8
|
+
`)}function Id(e,n,t,r,o,a){let i=[];for(let l of e){let s=n.projectionForAtom?.(l.drawingNodeId);if(!s)continue;let d=l.sourceOrder??o?.(l.drawingNodeId)??Number.MAX_SAFE_INTEGER,c=a!==void 0?ES(l,a):0,u=AS({drawing:l,projection:s,sourceOrder:d,contentLeft:t,contentRight:r,columnIndex:c});u&&i.push(u);}return i.sort((l,s)=>l.sourceOrder-s.sourceOrder),Object.freeze(i)}function aa(e,n,t,r,o){let a=o??Object.freeze({columnCount:1,columnGapPt:0,contentWidth:t}),i=new Map;for(let l of e){let s=l.anchoredDrawings??[],d=Id(s,n,0,t,r,a);d.length>0&&i.set(l.index,d);}return i}function Fi(e,n){if(e.size!==n.size)return false;for(let[t,r]of e){let o=n.get(t);if(!o||rt(r)!==rt(o))return false}return true}function Ei(e){return e.size===0?"":[...e.entries()].sort(([n],[t])=>n-t).map(([n,t])=>`${n}:${rt(t)}`).join(`
|
|
9
|
+
`)}var XS=.001;function Tn(e){return Vr(e)}var Ni=new Set(["-","\u2010","\u2013","\u2014"]);function Bp(e){let n=[];for(let t=0;t<e.length;t+=1){let r=e[t];r===" "?(t>0&&n[n.length-1]!==t&&n.push(t),n.push(t+1)):(r===" "||Ni.has(r)&&t>0&&e[t-1]!==" "&&t+1<e.length&&e[t+1]!==" "&&!Ni.has(e[t+1]))&&n.push(t+1);}return n[n.length-1]!==e.length&&n.push(e.length),n}function $S(e,n,t){for(let r=n;r<e.length;r+=1){let o=e[r];if(o.inlineDrawing)return true;let a=r===n?t:0;for(let i=a;i<o.text.length;i+=1){let l=o.text[i];if(l===`
|
|
10
|
+
`||l===chunk2GSRLGUI_cjs.Xb)return false;if(l!==" "&&l!==" ")return true}}return false}function VS(e,n,t,r){let o=0,a=0,i=false;for(let l=n;l<e.length;l+=1){let s=e[l],d=l===n?t:0;for(let c=d;c<s.text.length;){let u=s.text[c];if(u===" "||u===`
|
|
11
|
+
`||u===chunk2GSRLGUI_cjs.Xb)return {width:o,decimalOffset:i?a:o};let p=c+1,f=s.text.slice(c,p),m=r.measure(zt(f,s.style),s.style);!i&&u==="."?i=true:i||(a+=m),o+=m,c=p;}}return {width:o,decimalOffset:i?a:o}}function YS(e,n,t,r){let o=e.relativeTo==="indent"||!r?{left:n,right:t}: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}:{}}}function Lp(e,n,t,r=0){return (t.length>0?yt(e,n.height,t):n.exclusionSkipBefore??0)+Math.max(0,n.height-n.trailingSpacing)+r}function KS(e){return Object.freeze({spans:e.spans.map(n=>Object.freeze({...n,box:Object.freeze({...n.box})})),drawings:e.drawings.map(n=>Object.freeze({...n,paintBounds:Object.freeze({...n.paintBounds}),hitBounds:Object.freeze({...n.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.deletedRanges?{deletedRanges:Object.freeze(e.deletedRanges)}:{},...e.exclusionSkipBefore?{exclusionSkipBefore:e.exclusionSkipBefore}:{}})}var Mi=31680;function ia(e){if(e===void 0||!/^-?\d{1,9}$/.test(e))return null;let n=Number(e);return Number.isFinite(n)?n>Mi?Mi:n<-Mi?-Mi:n:null}function la(e){let n=0,t=0;for(let r of e){if(r.localName!=="ind")continue;let o=r.attributes?.left??r.attributes?.start,a=r.attributes?.right??r.attributes?.end,i=ia(o),l=ia(a);i!==null&&(n=i/20),l!==null&&(t=l/20);}return {left:n,right:t}}function Fp(e){let n="left";for(let t of e)if(t.localName==="jc")switch(t.attributes?.val){case "center":n="center";break;case "right":case "end":n="right";break;case "both":case "distribute":n="both";break;default:n="left";}return n}function US(e){return e.endsWith(" ")}function ZS(e,n){let t=e.range.end-e.range.start;if(t<=0||e.text===" "||e.projected||e.text.length!==t)return Object.freeze([0,e.box.width]);let r=[0];for(let o=1;o<=e.text.length;o+=1)r.push(et(e.text.slice(0,o),e.style,n));return Object.freeze(r)}function ao(e,n){return e.map(t=>t.caretEdges?t:{...t,caretEdges:ZS(t,n)})}function Ai(e,n,t,r,o,a,i){if(e.length===0)return e;if(o==="left")return ao(e,n);let l=e[e.length-1],s=l.text.replace(/\s+$/,""),d=s===l.text?0:l.box.width-et(s,l.style,n),c=i??l.box.x-t+l.box.width-d,u=r-c;if(u<=0)return ao(e,n);if(o==="both"){if(a)return ao(e,n);let f=[];for(let y=1;y<e.length;y+=1)US(e[y-1].text)&&f.push(y);if(f.length===0)return ao(e,n);let m=u/f.length,g=new Set(f),h=0;return ao(e.map((y,x)=>(g.has(x)&&(h+=m),h===0?y:{...y,box:{...y.box,x:y.box.x+h}})),n)}let p=o==="center"?u/2:u;return ao(e.map(f=>({...f,box:{...f.box,x:f.box.x+p}})),n)}function Di(e,n){return n===0||e.length===0?e:e.map(t=>Ci(t,n,0))}function _i(e,n,t,r,o,a,i,l=[],s=jr,d,c,u){let p=i!==null&&a?a.get(i):void 0;if(p)return p;let f=u?.lineSpacing??Hr,m=u?.firstLineOffset??0,g=[],h=Ri(e,l,d,c,u?.projectLink,u?.noteMarks,u?.displayMode??fn,g,u?.inlineDrawingLayout,u?.themeFonts,u?.projectFieldLink,u?.documentProperties,u?.bodyPageFields??false),y=Math.max(0,u?.startOffset??0),x=h.flatMap(F=>{if(F.end<=y)return [];if(F.start>=y)return [F];let S=y-F.start;return [{...F,text:F.projected?F.text:F.text.slice(S),start:y}]});if(x.length===0&&u?.suppressEmptyPlaceholderLine)return [];let v=F=>({...F.revisions===void 0?{}:{revisions:F.revisions},...F.fieldAtom===void 0?{}:{fieldAtom:F.fieldAtom}}),C=u?.markRunProperties??l,M=C.length===0?Qn:Ee(C,u?.themeFonts),N=t+r,P=u?.contentLeft??t,L=u?.contentRight??N,T=u?.contentOriginX??0,I=[],b={spans:[],start:y,end:y,drawings:[],width:0,height:0,baseline:0,leading:0,trailingSpacing:0},O=false,j=new Map,ne=(()=>{let F=new Set;if(!u?.inlineDrawingLayout)return F;let S=Hn(e);for(let K of Fn(e,u.inlineDrawingLayout)){if(K.projection.wrap!=="topAndBottom")continue;let Y=S.get(K.atomId);Y!==void 0&&F.add(Y);}return F})(),k=(()=>{let F=new Set;if(!u?.inlineDrawingLayout)return F;let S=Hn(e);for(let K of Fn(e,u.inlineDrawingLayout)){if(K.projection.anchor?.behindDocument||K.projection.wrap==="topAndBottom"||K.projection.wrap==="inline"||K.projection.wrap==="behind"||K.projection.wrap==="inFront")continue;let Y=S.get(K.atomId);Y!==void 0&&F.add(Y);}return F})(),E=[...(u?.pageExclusionZones??[]).filter(F=>F.anchorParagraphId===n).map(F=>F.anchorModelStart),...ne,...k],_=(()=>{let F=new Map;if(E.length===0)return F;let S=0,K=0,Y=0,U=()=>Y===0?m:0,le=()=>Math.max(1,r-U()),Ie=Se=>{S=Se,K=0,Y+=1;};for(let Se of x){if(Se.inlineDrawing){let Qe=ht(Se.inlineDrawing.projection).totalWidth;K>0&&K+Qe>le()&&Ie(Se.start),E.includes(Se.start)&&F.set(Se.start,S),K+=Qe;continue}if(Se.text===`
|
|
12
|
+
`||Se.text===chunk2GSRLGUI_cjs.Xb){Ie(Se.end);continue}let mn=0;for(let Qe of Bp(Se.text)){let bn=Se.text.slice(mn,Qe);if(bn.length===0)continue;let en=Se.style,Ke=o.measure(bn,en),sn=Se.start+mn;K>0&&K+Ke>le()&&Ie(sn),E.includes(sn)&&F.set(sn,S),E.includes(Se.start)&&F.set(Se.start,S),K+=Ke,mn=Qe;}}for(let Se of E)F.has(Se)||F.set(Se,S);return F})();for(let F of k){let S=_.get(F);S!==void 0&&j.set(F,S);}let G=F=>{if(F.anchorParagraphId!==n)return true;let S=_.get(F.anchorModelStart);return S!==void 0&&b.start>=S||b.end>=F.anchorModelStart},R=()=>{let F=u?.pageExclusionZones?.filter(Y=>!(!G(Y)||Y.anchorParagraphId===n&&(Y.input.mode==="topAndBottom"||u?.anchorCellBox!=null)))??[],S=u?.inlineDrawingLayout&&u.anchorCellBox!=null&&j.size>0?Cp({paragraph:e,paragraphId:n,drawingLayout:u.inlineDrawingLayout,contentLeft:P,contentRight:L,paragraphStartY:u.paragraphStartY??0,anchorLineTopByModelStart:j,anchorCellBox:u.anchorCellBox}):Object.freeze([]),K=u?.inlineDrawingLayout&&j.size>0?Li({paragraph:e,paragraphId:n,drawingLayout:u.inlineDrawingLayout,contentLeft:P,contentRight:L,paragraphStartY:u?.paragraphStartY??0,anchorLineTopByModelStart:j}):Object.freeze([]);return Object.freeze([...F,...S,...K])},z=()=>I.length===0?m:0,B=()=>T+t+z(),H=()=>Math.max(1,r-z()),V=()=>I.reduce((F,S)=>F+S.height+(S.exclusionSkipBefore??0),0),W=()=>(u?.paragraphStartY??0)+V(),A=F=>{ne.has(F)&&j.set(F,V());},Z=()=>{if(O)return;let F=R();if(F.length===0||b.spans.length>0||b.drawings.length>0)return;let S=o.lineMetrics(M),K=yt(W(),b.height>0?b.height:S.height,F);K>.001&&(O=true,b.exclusionSkipBefore=K);},X=()=>W()+(b.exclusionSkipBefore??0)+.001,J=()=>{let F=R();if(F.length===0)return true;Z();let S=oo(X(),F,P,L),K=B()+b.width,Y=Pd(K,S);return Y?(Y.x>K+.001&&(b.width=Y.x-B()),true):false},Q=()=>{let F=H(),S=R();if(S.length===0)return F;if(Z(),!J())return 0;let K=oo(X(),S,P,L),Y=B()+b.width,U=Tp(Y,K);return U<=.001?0:Math.min(F,b.width+U)},se=()=>Math.max(0,Q()-b.width),be=()=>{let F=R();if(F.length===0||!F.some(le=>le.anchorParagraphId!==n||b.end>le.anchorModelStart))return false;let K=oo(X(),F,P,L),Y=B()+b.width,U=false;for(let le of K){if(!U){Y>=le.start-1e-6&&Y<le.end-1e-6&&(U=true);continue}if(le.end-le.start>.001)return b.width=le.start-B(),true}return false},he=F=>{if(E.length===0||F<Math.min(...E))return;let S=R().filter(Ie=>Ie.anchorParagraphId===n&&F>=Ie.anchorModelStart);if(S.length===0)return;Z();let K=oo(X(),S,P,L),Y=B()+b.width,U=-1;for(let Ie=0;Ie<K.length;Ie+=1){let Se=K[Ie];if(Y>=Se.start-.001&&Y<Se.end-.001){U=Ie;break}}if(U>=0)return;let le=Pd(Y,K);le&&le.x>Y+.001&&(b.width=le.x-B());},Re=F=>{R().filter(K=>K.input.mode==="topAndBottom"&&K.anchorParagraphId===n&&F>=K.anchorModelStart).length!==0&&((b.spans.length>0||b.drawings.length>0)&&We(),Z());},fe=(F,S=0)=>S>64?se()>=F:(Z(),J()?F<=se()+.001?true:b.spans.length>0||b.drawings.length>0?be()&&F<=se()+.001?true:(We(),fe(F,S+1)):be()?fe(F,S+1):true:b.spans.length>0||b.drawings.length>0?(We(),fe(F,S+1)):true),Je=(F,S)=>g.filter(K=>K.start<S&&K.end>F).map(K=>({start:Math.max(K.start,F),end:Math.min(K.end,S)})),xe=-1,Ge=0,pn=0,ln="",He=(F,S)=>{let K=o.lineMetrics(F),Y=hp(K.baseline,b.height||K.height,S);return b.height===0?(b.height=Y.lineHeight,b.baseline=Y.baseline):(Y.lineHeight>b.height&&(b.height=Y.lineHeight),b.baseline=Math.max(b.baseline,Y.baseline)),{extentTopY:Y.extentTopY}},vt=()=>{if(b.drawings.length===0)return;b.spans.length===0&&(b.baseline=Math.max(b.baseline,...b.drawings.map(S=>S.y+S.height)));let F=fd(b.drawings,b.baseline);b.drawings.splice(0,b.drawings.length,...F),b.baseline=Math.max(b.baseline,...b.drawings.map(S=>S.y+S.height));},Xn=()=>{if(b.drawings.length===0)return;let F=fd(b.drawings,b.baseline);b.drawings.splice(0,b.drawings.length,...F);},ve=F=>{let S=0;for(let K of b.spans)S=Math.max(S,o.lineMetrics(K.style).height);return S>0?S:F},ze=()=>{if(b.drawings.length===0)return;let F=Math.max(0,...b.drawings.map(S=>S.y+S.height+S.distB));b.height=Math.max(b.height,F);},Bn=()=>{vt(),ze();},te=()=>{if(!(b.spans.length<2))for(let F=1;F<b.spans.length;F+=1){let S=b.spans[F-1],K=b.spans[F],Y=K.box.x-(S.box.x+S.box.width);Y<=.001||b.drawings.some(le=>le.start>=S.range.end&&le.start<K.range.start)||(b.spans[F]={...K,wrapAdvanceBefore:Y});}},We=F=>{let S=o.lineMetrics(M),K=b.baseline;b.height===0?(b.height=S.height,b.baseline=S.baseline,K=S.baseline):F?.includeParagraphMark&&(b.height=Math.max(b.height,S.height)),Bn();let Y=b.height,U=f.rule==="auto"&&b.drawings.length>0,le=U?ve(S.height):Y,Ie=Es(f,le,b.baseline);U||(b.baseline=Ie.baseline),b.leading=Math.max(0,b.baseline-K),b.height=Ie.height,Xn(),f.rule!=="exact"&&ze(),b.trailingSpacing=b.drawings.length===0&&f.rule!=="exact"?Math.max(0,Ie.height-Y):0,(()=>{let Qe=R();if(Qe.length===0)return;let bn=yt(W(),b.height,Qe);bn>.001?b.exclusionSkipBefore=bn:delete b.exclusionSkipBefore;})(),te();let mn=Je(b.start,b.end);mn.length>0&&(b.deletedRanges=mn),I.push(b),xe=-1,Ge=0,O=false,b={spans:[],drawings:[],start:b.end,end:b.end,width:0,height:0,baseline:0,leading:0,trailingSpacing:0},Z();},Xe=false;for(let F=0;F<x.length;F+=1){let S=x[F];if(S.breakKind==="column"){let U=o.lineMetrics(S.style);b.spans.push({range:{paragraphId:n,start:S.start,end:S.end},text:S.text,props:S.props,style:S.style,box:{x:B()+b.width,y:0,width:0,height:U.height},...S.link?{link:S.link}:{},...v(S)}),b.height=Math.max(b.height,U.height),b.baseline=Math.max(b.baseline,U.baseline),b.end=S.end,We(),I[I.length-1].columnBreakAfter=true,Xe=true;continue}if(S.projected&&!S.inlineDrawing&&S.text==="\uFFFC"){A(S.start),b.end=S.end;continue}if(S.inlineDrawing){A(S.start);let U=ht(S.inlineDrawing.projection),le=U.totalWidth;if((b.spans.length>0||b.drawings.length>0)&&b.width+le>Q()&&We(),!fe(le))continue;let{extentTopY:Se}=He(S.style,U),mn=B()+b.width;b.drawings.push(wp({input:S.inlineDrawing,paragraphId:n,start:S.start,slotX:mn,y:Se,baseline:b.baseline,contentLeft:P,contentRight:L})),b.width+=le,b.end=S.end,xe=-1,ln="";continue}if(S.text===chunk2GSRLGUI_cjs.Xb){let U=o.lineMetrics(S.style);b.spans.push({range:{paragraphId:n,start:S.start,end:S.end},text:chunk2GSRLGUI_cjs.Xb,props:S.props,style:S.style,box:{x:B()+b.width,y:0,width:0,height:U.height},...S.link?{link:S.link}:{},...v(S)}),b.height=Math.max(b.height,U.height),b.baseline=Math.max(b.baseline,U.baseline),b.end=S.end,We(),I[I.length-1].pageBreakAfter=true,Xe=false;continue}if(S.text===`
|
|
13
|
+
`){let U=o.lineMetrics(S.style);b.spans.push({range:{paragraphId:n,start:S.start,end:S.end},text:`
|
|
14
|
+
`,props:S.props,style:S.style,box:{x:B()+b.width,y:0,width:0,height:U.height},...S.link?{link:S.link}:{},...v(S)}),b.height=Math.max(b.height,U.height),b.baseline=Math.max(b.baseline,U.baseline),b.end=S.end,We(),Xe=true;continue}Xe=false,Re(S.start),E.length>0&&S.start>=Math.min(...E)&&he(S.start);let K=o.lineMetrics(S.style),Y=0;for(let U of Bp(S.text)){let le=S.text.slice(Y,U);if(le.length===0)continue;let Ie=!!S.projected||!!S.positionalTab||S.end-S.start!==S.text.length,Se=Ie?{paragraphId:n,start:S.start,end:S.end}:{paragraphId:n,start:S.start+Y,end:S.start+U};if(le===" "){(b.spans.length>0||b.drawings.length>0)&&b.width>=Q()&&$S(x,F,U)&&We();let nn=B()+b.width,Ue=VS(x,F,U,o),Fe=S.positionalTab?YS(S.positionalTab,t,N,u?.marginExtent):null,ye=Fe===null?Gr(s,nn,N):Fe.positionPt>nn?Fe:{...Gr(s,nn,N),...Fe.leader?{leader:Fe.leader}:{}},Tt=Ws(ye.alignment,nn,ye.positionPt,Ue.width,Ue.decimalOffset);b.spans.push({range:Se,text:" ",props:S.props,style:S.style,box:{x:nn,y:0,width:Tt,height:K.height},...ye.leader?{tabLeader:ye.leader,tabLeaderAdvancePt:o.measure(Hs.get(ye.leader)??".",S.style)}:{},...S.link?{link:S.link}:{},...ye.leader?{tabLeader:ye.leader}:{},...Ie&&!S.positionalTab?{projected:true}:{},...S.noteNav?{noteNav:S.noteNav}:{},...v(S)}),b.width+=Tt,b.height=Math.max(b.height,K.height),b.baseline=Math.max(b.baseline,K.baseline),b.end=Ie?S.end:S.start+U,ln=" ",Y=U;continue}let mn=S.measureText??le,Qe=o.measure(zt(mn,S.style),S.style),bn=Y>0||ln===""||/[\s\u00a0]$/.test(ln)||/^[\s\u00a0]/.test(le)||Ni.has(ln[ln.length-1])&&!Ni.has(le[0]);if(bn&&(xe=b.spans.length,Ge=b.width,pn=b.end),he(S.start+Y),b.width+Qe>Q()+XS&&(b.spans.length>0||b.drawings.length>0))if(bn||xe<=0){if(!(be()&&b.width+Qe<=Q()+.001)){if(We(),!fe(Qe))continue}}else {let nn=b.spans.splice(xe);b.width=Ge,b.end=pn,b.height=0,b.baseline=0;for(let Ue of b.spans){let Fe=o.lineMetrics(Ue.style);b.height=Math.max(b.height,Fe.height),b.baseline=Math.max(b.baseline,Fe.baseline);}We();for(let Ue of nn){let Fe=o.lineMetrics(Ue.style);b.spans.push({...Ue,box:{...Ue.box,x:B()+b.width}}),b.width+=Ue.box.width,b.height=Math.max(b.height,Fe.height),b.baseline=Math.max(b.baseline,Fe.baseline),b.end=Ue.range.end;}xe=0,Ge=0;}else if(b.spans.length===0&&b.drawings.length===0&&Qe>Q()+.001&&!fe(Qe))continue;let en=le,Ke=S.start+Y,sn=Qe;if(!Ie&&S.measureText===void 0)for(;b.spans.length===0&&en.length>1&&sn>Q();){let nn=1,Ue=en.length-1,Fe=1;for(;nn<=Ue;){let Mn=nn+Ue>>1;o.measure(zt(en.slice(0,Mn),S.style),S.style)<=Q()?(Fe=Mn,nn=Mn+1):Ue=Mn-1;}let ye=en.slice(0,Fe),Tt=o.measure(zt(ye,S.style),S.style);b.spans.push({range:{paragraphId:n,start:Ke,end:Ke+Fe},text:ye,props:S.props,style:S.style,box:{x:B()+b.width,y:0,width:Tt,height:K.height},...S.link?{link:S.link}:{},...S.noteNav?{noteNav:S.noteNav}:{},...v(S)}),b.width+=Tt,b.height=Math.max(b.height,K.height),b.baseline=Math.max(b.baseline,K.baseline),b.end=Ke+Fe,We(),en=en.slice(Fe),Ke+=Fe,sn=o.measure(zt(en,S.style),S.style);}b.spans.push({range:Ie?Se:{paragraphId:n,start:Ke,end:S.start+U},text:en,props:S.props,style:S.style,box:{x:B()+b.width,y:0,width:sn,height:K.height},...S.link?{link:S.link}:{},...Ie&&!S.positionalTab?{projected:true}:{},...S.noteNav?{noteNav:S.noteNav}:{},...v(S)}),b.width+=sn,b.height=Math.max(b.height,K.height),b.baseline=Math.max(b.baseline,K.baseline),b.end=Ie?S.end:S.start+U,ln=le,Y=U;}}return (b.spans.length>0||b.drawings.length>0||I.length===0||Xe)&&We({includeParagraphMark:true}),i!==null&&a&&a.set(i,I.map(KS)),I}var zi=32,Mp=4096,qS=128,JS=/[\u0000-\u001F\u007F-\u009F]/,QS={major:null,minor:null};function pr(e){return e.kind!=="textValue"}function sa(e,n){return e.attributes.find(t=>t.localName===n)?.value}function da(e,n){for(let t of e.children)if(pr(t)&&t.localName===n)return t}function io(e){return !(e===void 0||e.length===0||e.length>qS||JS.test(e)||chunk2GSRLGUI_cjs.S(e))}function e0(e){return e==="1"||e==="true"}function Hi(e){return e.map(n=>n.attributes?{n:n.localName,a:n.attributes}:{n:n.localName})}function ua(e){if(e){for(let n of e.children)if(pr(n)&&(n.kind==="runProperties"||n.localName==="rPr"))return n}}function ji(e){if(e){for(let n of e.children)if(pr(n)&&(n.kind==="paragraphProperties"||n.localName==="pPr"))return n}}var Ep=new Set(["rPrChange","pPrChange","ins","del","moveFrom","moveTo"]);function lo(e){return e.some(n=>Ep.has(n.localName))?e.filter(n=>!Ep.has(n.localName)):e}function n0(e){let n=da(e,"docDefaults");if(!n)return {run:[],paragraph:[],paragraphNode:void 0};let t=da(n,"rPrDefault"),r=da(n,"pPrDefault"),o=ua(t),a=ji(r);return {run:lo(Tn(o)),paragraph:lo(Tn(a)),paragraphNode:a}}function t0(e){let n=sa(e,"styleId");if(!io(n))return null;let t=sa(e,"type")??"",r=(()=>{let d=da(e,"basedOn");return d?sa(d,"val"):void 0})(),o=io(r)?r:null,a=ji(e),i=ua(e),l=new Map,s=0;for(let d of e.children){if(d.kind==="textValue"||d.localName!=="tblStylePr")continue;if(s>=r0)break;s+=1;let c=sa(d,"type");c&&!l.has(c)&&l.set(c,d);}return {styleId:n,type:t,basedOn:o,isDefault:e0(sa(e,"default")),paragraphProperties:lo(Tn(a)),runProperties:lo(Tn(i)),paragraphPropertiesNode:a,tablePropertiesNode:da(e,"tblPr"),conditionalTableFormats:l}}var r0=32,ca=Object.freeze({tablePropertyNodes:Object.freeze([]),paragraphPropertyNodes:Object.freeze([]),paragraphProperties:Object.freeze([]),runProperties:Object.freeze([]),conditional:new Map});function Np(e,n){if(!n||!io(n))return ca;let t=Od(e,n,"table");if(t.length===0)return ca;let r=[],o=[],a=[],i=[],l=new Map;for(let s of t){s.tablePropertiesNode&&r.push(s.tablePropertiesNode),s.paragraphPropertiesNode&&o.push(s.paragraphPropertiesNode),a.push(...s.paragraphProperties),i.push(...s.runProperties);for(let[d,c]of s.conditionalTableFormats)l.set(d,c);}return {tablePropertyNodes:r,paragraphPropertyNodes:o,paragraphProperties:a,runProperties:i,conditional:l}}var vd=Object.freeze({paragraphProperties:Object.freeze([]),paragraphPropertyNodes:Object.freeze([]),runProperties:Object.freeze([])});function Ap(e,n){let t=[...e.paragraphPropertyNodes],r=[...e.paragraphProperties],o=[...e.runProperties];for(let a of n){let i=e.conditional.get(a);if(!i)continue;let l=ji(i);l&&(t.push(l),r.push(...lo(Tn(l))));let s=ua(i);s&&o.push(...lo(Tn(s)));}return t.length===0&&r.length===0&&o.length===0?vd:{paragraphProperties:r,paragraphPropertyNodes:t,runProperties:o}}function o0(e,n=QS){let t=new Map;if(!e)return {cacheToken:chunkJDHTCMFA_cjs.y({empty:true,theme:n}),docDefaultsRun:[],docDefaultsParagraph:[],docDefaultsParagraphNode:void 0,defaultParagraphStyleId:null,defaultCharacterStyleId:null,themeFonts:n,styles:t};let r=n0(e),o=null,a=null,i=0;for(let s of e.children){if(!pr(s)||s.localName!=="style")continue;if(i>=Mp)break;i+=1;let d=t0(s);if(!d)continue;let{isDefault:c,...u}=d;t.set(u.styleId,u),u.type==="paragraph"?c?o=u.styleId:o===u.styleId&&(o=null):u.type==="character"&&(c?a=u.styleId:a===u.styleId&&(a=null));}return {cacheToken:chunkJDHTCMFA_cjs.y({dR:Hi(r.run),dP:Hi(r.paragraph),defP:o,defC:a,theme:n,styles:[...t.values()].map(s=>({id:s.styleId,type:s.type,basedOn:s.basedOn,p:Hi(s.paragraphProperties),r:Hi(s.runProperties)}))}),docDefaultsRun:r.run,docDefaultsParagraph:r.paragraph,docDefaultsParagraphNode:r.paragraphNode,defaultParagraphStyleId:o,defaultCharacterStyleId:a,themeFonts:n,styles:t}}function Td(e,n){let t=null;for(let r of e){if(r.localName!==n)continue;let o=r.attributes?.val;t=io(o)?o:null;}return t}function Od(e,n,t){let r=e.styles.get(n);if(!r||r.type!==t)return [];let o=[],a=new Set,i=n,l=0;for(;i!==null&&l<zi&&!(a.has(i)||!io(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 so(e,n,t){let r=Tn(n),o=Td(r,"pStyle")??e.defaultParagraphStyleId,a=o?Od(e,o,"paragraph"):[],i=[...e.docDefaultsParagraph,...t?.paragraphProperties??[],...a.flatMap(f=>f.paragraphProperties)],l=[...i,...r],s=[];e.docDefaultsParagraphNode&&s.push(e.docDefaultsParagraphNode),t&&s.push(...t.paragraphPropertyNodes);for(let f of a)f.paragraphPropertiesNode&&s.push(f.paragraphPropertiesNode);n&&s.push(n);let d=ua(n&&pr(n)?n:void 0),c=Tn(d),u=[...e.docDefaultsRun,...t?.runProperties??[],...a.flatMap(f=>f.runProperties)],p=c.length===0?u:[...u,...c];return {paragraphProperties:l,inheritedParagraphProperties:i,paragraphPropertyNodes:s,runProperties:u,markRunProperties:p,styleId:o??null}}function Dp(e){let n;for(let t of e){if(!t||t.kind==="textValue")continue;let r=false;for(let o of t.children)if(pr(o)&&o.localName==="pBdr"){r=true;break}r&&(n=dt(t).bottom);}return n}function bt(e,n,t){let r=[];if(t){let a=Td(n,"rStyle")??t.defaultCharacterStyleId;a&&(r=Od(t,a,"character").flatMap(i=>i.runProperties));}return e.length===0&&r.length===0?n:n.length===0&&r.length===0?e:[...e,...r,...n]}function fa(e,n,t,r,o,a=false){let i=ji(e),l=t?so(t,i,o):null,s=l?[...l.paragraphProperties]:Tn(i),d=Tn(ua(i&&pr(i)?i:void 0)),c=l?l.runProperties:[],u=l?l.markRunProperties:d,p=la(s),f=0,m=0;if(r)f=r.indent.hanging,m=r.indent.firstLine;else for(let y of s){if(y.localName!=="ind")continue;let x=ia(y.attributes?.hanging),v=ia(y.attributes?.firstLine);(y.attributes?.hanging!==void 0||y.attributes?.firstLine!==void 0)&&(f=x!==null?Math.max(0,x)/20:0,m=v!==null?v/20:0);}let g=r?{left:r.indent.left,right:r.indent.right,hanging:f,firstLine:m}:{left:p.left,right:p.right,hanging:f,firstLine:m},h=l?js(l.paragraphPropertyNodes):Gs(i);return {props:s,indent:g,available:Math.max(1,n-g.left-g.right),alignment:Fp(s),spacing:Ls(s,{inList:r!==void 0,inTableCell:a}),lineSpacing:Fs(s),contextualSpacing:Ms(s),styleId:l?l.styleId:Td(s,"pStyle")??null,bottomBorder:l?Dp(l.paragraphPropertyNodes):dt(i).bottom,borders:l?zo(l.paragraphPropertyNodes):dt(i),shading:_s(s),inheritedRunProperties:c,markRunProperties:u,tabStops:h,tabStopsCacheToken:ir(h),...r?{listItem:r}:{}}}var _p=new WeakMap;function a0(e){let n=_p.get(e);if(n!==void 0)return n;let t=o=>o.some(a=>a.localName==="pBdr"),r=t(e.docDefaultsParagraph);if(!r){for(let o of e.styles.values())if(t(o.paragraphProperties)){r=true;break}}return _p.set(e,r),r}function Hp(e,n){return !n||!a0(n)?dt(e):zo(so(n,e).paragraphPropertyNodes)}var i0=Object.freeze({keepNext:false,keepLines:false,widowControl:true});function kd(e){let n=e?.val;return n!=="0"&&n!=="false"&&n!=="off"}function zp(e){let n=false,t=false,r=true;for(let o of e)switch(o.localName){case "keepNext":n=kd(o.attributes);break;case "keepLines":t=kd(o.attributes);break;case "widowControl":r=kd(o.attributes);break;}return !n&&!t&&r?i0:{keepNext:n,keepLines:t,widowControl:r}}function jp(e,n,t,r,o){if(e<=n)return e;if(r.keepLines&&!o)return n;if(!r.widowControl||t<2)return e;let a=e;return t-a<2&&(a-=1),a-n===1&&(a-=1),a<n&&(a=n),a===n&&o?e:a}function Gp(e,n,t,r){let o=0,a=t;for(let i=n;i-n<8;i+=1){let l=e[i];if(!l||l.kind!=="paragraph"||!l.spacing||!l.keeps)return null;o+=Math.max(l.spacing.before,a)-a;let s=r(i);if(!l.keeps.keepNext||i+1>=e.length)return o+=s[0]??0,l.keeps.widowControl&&s.length>1&&(o+=s[1]),o;for(let d of s)o+=d;o+=l.spacing.after,a=l.spacing.after;}return null}function Wp(e,n){let t=e;for(let r=0;r<e.length;r+=1){let o=n(r);o!==void 0&&(t===e&&(t=[...e]),t[r]=`${t[r]}~mk~${o}`);}return t}function Xp(e,n){let t=e,r=0;for(let o=e.length-2;o>=0;o-=1)n(o)&&r<8?(t===e&&(t=[...e]),t[o]=`${e[o]}~kn~${t[o+1]}`,r+=1):r=0;return t}var l0=Zr;function zn(e,n){if(e.kind!=="textValue"){for(let t of e.children)if(t.kind!=="textValue"&&t.namespaceUri===chunk2GSRLGUI_cjs.ma&&t.localName===n)return t}}function $p(e){if(e.kind==="textValue")return false;let n=zn(e,"paragraphProperties")??zn(e,"pPr");if(!n)return false;let t=zn(n,"runProperties")??zn(n,"rPr");return t===void 0?false:zn(t,"del")!==void 0||zn(t,"moveFrom")!==void 0}function Vp(e,n){if(e.kind==="textValue"||n>l0)return true;let t=(r,o)=>{for(let a of r){if(a.kind==="textValue")continue;if(a.kind==="run"){for(let l of a.children){if(l.kind==="text"){for(let s of l.children)if(s.kind==="textValue"&&s.value.length>0)return false;continue}if(l.kind!=="runProperties")return false}continue}if(chunk2GSRLGUI_cjs.Lb(a)){if(o>=chunk2GSRLGUI_cjs.Kb)continue;let l=chunk2GSRLGUI_cjs.Nb(a);if(l&&!t(l,o+1))return false;continue}if((a.kind==="hyperlink"||a.kind==="revisionInsert"||a.kind==="revisionMoveTo")&&!Vp(a,o+1))return false}return true};return t(e.children,n)}function Yp(e,n){if(n==="all-markup"||e.kind==="textValue")return false;let t=zn(e,"paragraphProperties")??zn(e,"pPr");if(!t)return false;let r=zn(t,"runProperties")??zn(t,"rPr");return r===void 0?false:(n==="proposed"?["del","moveFrom"]:["ins","moveTo"]).some(a=>zn(r,a)!==void 0)}function Cd(e,n="proposed"){return e.kind!=="paragraph"||n!=="proposed"||!$p(e)?false:Vp(e,0)}function s0(e){let n=e.root;if(n.localName==="hdr"||n.localName==="ftr")return n;let t=r=>{if(r.kind!=="textValue"){if(r.kind==="body")return r;for(let o of r.children){let a=t(o);if(a)return a}}};return t(n)}function d0(e,n){return !(e.kind==="paragraph"&&Cd(e,n))}var Jp=new WeakMap;function Gi(e){return Jp.get(e)??null}function Qp(e,n){let t=n.children.filter(a=>Kp(a)),r=e.flatMap(a=>a.children.filter(i=>!Kp(i))),o={...n,children:[...t,...r]};return Jp.set(o,{merged:o,members:e}),o}function Kp(e){return e.kind!=="textValue"&&(e.kind==="paragraphProperties"||e.localName==="pPr")}function c0(e,n){if(n==="all-markup")return e.map(i=>i.block);let t=[],r=[],o=null,a=()=>{t.push(...Up(r)),r=[],o=null;};for(let{block:i,parentKey:l}of e){if(r.length>0&&l!==o&&a(),i.kind!=="paragraph"){a(),t.push(i);continue}let s=Yp(i,n);if((s||r.length>0)&&!f0(i,n)){a(),t.push(i);continue}if(s){r.push(i),o=l;continue}if(r.length===0){t.push(i);continue}let d=[...r,i];r=[],o=null,t.push(Qp(d,i));}return t.push(...Up(r)),t}function Up(e){if(e.length<2)return e;let n=e[e.length-1];return [Qp(e,n)]}function pa(e,n){return c0(u0(e),n).filter(r=>d0(r,n))}function u0(e){let n=[],t=(r,o,a)=>{for(let i of r)if(i.kind!=="textValue"){if(i.kind==="paragraph"||i.kind==="table"){n.push({block:i,parentKey:a});continue}chunk2GSRLGUI_cjs.Lb(i)&&o<chunk2GSRLGUI_cjs.Kb&&t(chunk2GSRLGUI_cjs.Ob(i),o+1,i.id);}};return t(e,0,""),n}var Zp=new WeakMap;function f0(e,n){let t=Zp.get(e),r=t?.get(n);if(r!==void 0)return r;let o=p0(e,n);return t?t.set(n,o):Zp.set(e,new Map([[n,o]])),o}function p0(e,n){if(!m0(e))return false;let t=Ri(e,[],void 0,void 0,void 0,void 0,n),r=0;for(let o of t)r=Math.max(r,o.end);return r<=chunk2GSRLGUI_cjs.Sd(e).length}function m0(e){let n=0,t=false,r=o=>{if(o.kind!=="textValue"){if(o.namespaceUri===chunk2GSRLGUI_cjs.ma&&o.localName==="fldChar"){let a=o.attributes.find(i=>i.localName==="fldCharType")?.value;a==="begin"?n+=1:a==="end"&&(n-=1,n<0&&(t=true));}for(let a of o.children)r(a);}};return r(e),n===0&&!t}var qp=chunk2GSRLGUI_cjs.He(16);function xt(e,n="all-markup"){let t=qp.get(e),r=t?.[n];if(r)return r;let o=s0(e),a=o?pa(o.children,n):[];return t?t[n]=a:qp.set(e,{[n]:a}),a}function Wi(e,n="all-markup"){return e.kind!=="note"?[]:pa(e.children,n)}function em(e,n="all-markup"){return e.kind==="textValue"?[]:pa(e.children,n)}var g0={state:"none"},nm=(e,n)=>n.state==="omitted"?e:n;function Xi(e,n,t={}){return e.state==="omitted"?n:e.state==="none"?g0:e}function Bd(e,n){let t=nm;return {top:t(e.top,n.top),left:t(e.left,n.left),bottom:t(e.bottom,n.bottom),right:t(e.right,n.right),insideH:t(e.insideH,n.insideH),insideV:t(e.insideV,n.insideV)}}function Ld(e,n){let t=nm;return {top:t(e.top,n.top),left:t(e.left,n.left),bottom:t(e.bottom,n.bottom),right:t(e.right,n.right)}}function $i(e=1048576){let n=e|0;return {intervalsRemaining:n>0?n:0}}function tm(e,n,t,r){let o=Math.max(0,Math.min(n|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]=h0(e[i],o,t,r);}return a}function h0(e,n,t,r){let o=[];for(let c=0;c<e.length;c+=1){let u=e[c],p=Math.max(0,u.gridColumn|0),f=Math.min(n,p+Math.max(0,u.gridSpan|0));p>=f||(o.push({x:p,kind:1,cellIndex:c,cell:u}),o.push({x:f,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}),t&&(t.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 y0(e,n){let t=0,r=e.length;for(;t<r;){let o=t+r>>1;e[o].start<=n?t=o+1:r=o;}return t}function Fd(e,n,t,r){r&&(r.columnLookups+=1);let o=e[n];if(!o||t<0)return;let a=y0(o,t)-1;if(a<0)return;let i=o[a];if(!(t>=i.end))return {cell:i.cell,cellIndex:i.cellIndex}}var im=256,$e={state:"omitted"},qi={state:"none"},lm={top:$e,left:$e,bottom:$e,right:$e,insideH:$e,insideV:$e},sm={top:$e,left:$e,bottom:$e,right:$e},rm={single:1,thick:2,double:3,dotted:4,dashed:5,triple:10},x0=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 ma(e,n){for(let t of e.children)if(t.kind!=="textValue"&&t.localName===n)return t}function Ed(e,n){return e.attributes.find(t=>t.localName===n)?.value}function S0(e){return e===void 0||!/^\d{1,9}$/.test(e)?null:Number(e)}function w0(e){if(e===null)return .5;let n=e/8;return !Number.isFinite(n)||n<=0?.5:n>Ho?Ho:n}function Ji(e){if(!e)return $e;let n=Ed(e,"val");if(!n)return $e;if(n==="nil"||n==="none")return qi;let t=x0.get(n)??"single",r=Ed(e,"color"),o=r===void 0||r==="auto"?null:ti(r)??null;return {state:"edge",style:t,color:o,widthPt:w0(S0(Ed(e,"sz")))}}function dm(e,n){if(!e)return sm;let t={top:$e,left:$e,bottom:$e,right:$e};for(let r of n)t[r]=Ji(ma(e,r));return t}function Qi(e){let n=e&&ma(e,"tblBorders");return n?{...dm(n,["top","left","bottom","right"]),insideH:Ji(ma(n,"insideH")),insideV:Ji(ma(n,"insideV"))}:lm}function el(e){return dm(e&&ma(e,"tcBorders"),["top","left","bottom","right"])}function Md(e){return e.state!=="edge"?0:Math.max(1,Math.round(e.widthPt*8))}function om(e){if(!e)return 0;let n=Number.parseInt(e.slice(0,2),16),t=Number.parseInt(e.slice(2,4),16),r=Number.parseInt(e.slice(4,6),16);return n+t+r}function cm(e,n,t=true){if(e.state==="omitted")return n.state==="omitted"?$e:n;if(n.state==="omitted")return e;if(e.state==="none")return n.state==="none"?qi:n;if(n.state==="none")return e;let r=Md(e),o=Md(n);if(r>o)return e;if(o>r)return n;let a=rm[e.style],i=rm[n.style];if(a!==i)return a>i?e:n;let l=om(e.color),s=om(n.color);return l<s?e:s<l?n:t?e:n}function Vi(e){if(e.state==="edge")return {style:e.style,color:e.color,widthPt:e.widthPt}}function P0(e,n,t){return t?n==="top"||n==="bottom"?e.insideH:e.insideV:e[n]}function R0(e,n){return e===void 0&&n===void 0?true:!e||!n?false:e.style===n.style&&e.color===n.color&&e.widthPt===n.widthPt}function Yi(e){if(e.length===0)return [];let n=[],t={...e[0]};for(let r=1;r<e.length;r+=1){let o=e[r];t.gridEnd===o.gridStart&&R0(t.edge,o.edge)?t={...t,gridEnd:o.gridEnd}:(n.push(t),t={...o});}return n.push(t),n}function Ki(e,n,t){let r=e.filter(a=>a.edge!==void 0);if(r.length!==1)return;let o=r[0];if(!(o.gridStart!==n||o.gridEnd!==t))return o.edge}function am(e,n,t){let r=0,o=Math.min(t,e.length);for(let a=Math.max(0,n);a<o;a+=1)r+=e[a];return r}function I0(e){if(!(!e||e.style!=="double"))return Dr(e.widthPt)}function Ui(e){return e==="dashed"?"dashed":e==="dotted"?"dotted":"solid"}function v0(e,n){return n?e==="outer"?n.insetPt:n.insetPt+n.strokePt+n.gapPt:0}function T0(e,n,t){return t?e==="outer"?n-t.insetPt:n-t.insetPt-t.strokePt-t.gapPt:n}function O0(e,n){return n?e==="outer"?n.insetPt+n.strokePt:n.insetPt+n.extentPt:0}function k0(e,n,t){return t?e==="outer"?n-t.insetPt-t.strokePt:n-t.insetPt-t.extentPt:n}function Wt(e,n){e.length>=im||!(n.width>0)||!(n.height>0)||e.push(n);}function C0(e,n,t,r,o,a,i,l,s,d,c){let u=Dr(t.widthPt),{strokePt:p,gapPt:f,extentPt:m,insetPt:g}=u,h=Math.abs(r)<1e-6,y=Math.abs(o-a)<1e-6,x=Math.abs(r)<1e-6,v=Math.abs(o-i)<1e-6;if(n==="top"||n==="bottom"){let N=n==="top"?g:i-g-p,P=n==="top"?g+p+f:i-g-m;for(let L of ["outer","inner"]){let T=r,I=o;h&&(T=v0(L,l)),y&&(I=T0(L,a,s)),Wt(e,{side:n,role:L,color:t.color,cssStyle:"solid",x:T,y:L==="outer"?N:P,width:I-T,height:p});}return}let C=n==="left"?g:a-g-p,M=n==="left"?g+p+f:a-g-m;for(let N of ["outer","inner"]){let P=r,L=o;x&&(P=O0(N,d)),v&&(L=k0(N,i,c)),Wt(e,{side:n,role:N,color:t.color,cssStyle:"solid",x:N==="outer"?C:M,y:P,width:p,height:L-P});}}function B0(e,n,t,r,o,a,i){let l=t.widthPt,s=Math.max(1,l),d=l*3+s*2;if(n==="top"||n==="bottom"){let u=n==="top"?0:i-d;for(let p=0;p<3;p+=1)Wt(e,{side:n,role:p===0?"outer":p===1?"middle":"inner",color:t.color,cssStyle:"solid",x:r,y:u+p*(l+s),width:o-r,height:l});return}let c=n==="left"?0:a-d;for(let u=0;u<3;u+=1)Wt(e,{side:n,role:u===0?"outer":u===1?"middle":"inner",color:t.color,cssStyle:"solid",x:c+u*(l+s),y:r,width:l,height:o-r});}function L0(e,n,t,r,o,a,i){let l=t.widthPt;n==="top"?Wt(e,{side:n,role:"edge",color:t.color,cssStyle:Ui(t.style),x:r,y:0,width:o-r,height:l}):n==="bottom"?Wt(e,{side:n,role:"edge",color:t.color,cssStyle:Ui(t.style),x:r,y:i-l,width:o-r,height:l}):n==="left"?Wt(e,{side:n,role:"edge",color:t.color,cssStyle:Ui(t.style),x:0,y:r,width:l,height:o-r}):Wt(e,{side:n,role:"edge",color:t.color,cssStyle:Ui(t.style),x:a-l,y:r,width:l,height:o-r});}function Zi(e,n){if(e.length===0)return;let t=e[0];return I0(t.edge)}function F0(e,n,t,r,o,a,i,l,s,d){let c=(O,j,ne)=>{let k=[];for(let E of j){if(!E.edge)continue;let _,G;ne?(_=am(i,l,E.gridStart),G=am(i,l,E.gridEnd)):(_=s[E.gridStart-d]??0,G=s[E.gridEnd-d]??a),k.push({side:O,gridStart:E.gridStart,gridEnd:E.gridEnd,startPt:_,endPt:G,edge:E.edge});}return k},u=c("top",e,true),p=c("left",n,false),f=c("bottom",t,true),m=c("right",r,false),g=[...u,...m,...f,...p],h=Zi(n),y=Zi(r),x=Zi(e),v=Zi(t),C=(O,j)=>O.length===1&&Math.abs(O[0].startPt)<1e-6&&Math.abs(O[0].endPt-j)<1e-6,M=C(u,o),N=C(p,a),P=C(f,o),L=C(m,a),T=[],I=(O,j,ne)=>{for(let k of j){let{edge:E,startPt:_,endPt:G}=k;E.style==="double"?C0(T,O,E,_,G,o,a,O==="top"||O==="bottom"?h:void 0,O==="top"||O==="bottom"?y:void 0,O==="left"||O==="right"?x:void 0,O==="left"||O==="right"?v:void 0):E.style==="triple"?B0(T,O,E,_,G,o,a):ne||L0(T,O,E,_,G,o,a);}};I("top",u,M),I("left",p,N),I("bottom",f,P),I("right",m,L);let b={};return M&&u[0]&&(b.top=u[0].edge),N&&p[0]&&(b.left=p[0].edge),P&&f[0]&&(b.bottom=f[0].edge),L&&m[0]&&(b.right=m[0].edge),g.length>0&&(b.edgeSegments=g),T.length>0&&(b.strokes=T),b}function Nd(e,n,t,r,o,a){let i=e.length,l=e.map(u=>u.map(()=>({})));o&&(o.ownershipSlotsWritten=0,o.columnLookups=0);let s=tm(e,t,o,a),d=(u,p,f)=>Xi(u.borders[p],P0(n,p,f),{}),c=(u,p,f,m)=>u.state==="none"&&p.state!=="edge"||p.state==="none"&&u.state!=="edge"?qi:cm(f,m);for(let u=0;u<i;u+=1){let p=e[u];for(let f=0;f<p.length;f+=1){let m=p[f];if(m.vMergeContinue){l[u][f]={};continue}let g=m.mergeRowSpan??1,h=u+g-1,y=u===0,x=h===i-1,v=m.gridColumn===0,C=m.gridColumn+m.gridSpan-1,M=C>=t-1,N=[];if(y)for(let _=m.gridColumn;_<=C;_+=1)N.push({gridStart:_,gridEnd:_+1,edge:Vi(d(m,"top",false))});let P=[];if(v)for(let _=u;_<=h;_+=1)P.push({gridStart:_,gridEnd:_+1,edge:Vi(d(m,"left",false))});let L=[];for(let _=m.gridColumn;_<=C;_+=1){let G;if(x)G=d(m,"bottom",false);else {let R=Fd(s,h+1,_,o);R?.cell.vMergeContinue?G=$e:G=c(m.borders.bottom,R?R.cell.borders.top:$e,d(m,"bottom",true),R?d(R.cell,"top",true):n.insideH);}L.push({gridStart:_,gridEnd:_+1,edge:Vi(G)});}let T=[];for(let _=u;_<=h;_+=1){let G;if(M)G=d(m,"right",false);else {let R=Fd(s,_,C+1,o);G=c(m.borders.right,R?R.cell.borders.left:$e,d(m,"right",true),R?d(R.cell,"left",true):n.insideV);}T.push({gridStart:_,gridEnd:_+1,edge:Vi(G)});}let I=Yi(N),b=Yi(P),O=Yi(L),j=Yi(T);if(!r){let _={},G=Ki(I,m.gridColumn,C+1),R=Ki(b,u,h+1),z=Ki(O,m.gridColumn,C+1),B=Ki(j,u,h+1);G&&(_.top=G),R&&(_.left=R),z&&(_.bottom=z),B&&(_.right=B);let H=[],V=(W,A)=>{for(let Z of A)Z.edge&&H.push({side:W,gridStart:Z.gridStart,gridEnd:Z.gridEnd,startPt:Z.gridStart,endPt:Z.gridEnd,edge:Z.edge});};V("top",I),V("left",b),V("bottom",O),V("right",j),H.length>0&&(_.edgeSegments=H),l[u][f]=_;continue}let ne=r.cellBoxes[u][f],k=[0],E=0;for(let _=u;_<=h;_+=1){let G=r.rowBands[_];E+=G.height,k.push(E);}k.length>1&&(k[k.length-1]=ne.height),l[u][f]=F0(I,b,O,j,ne.width,ne.height,r.columnWidthsPt,m.gridColumn,k,u);}}return l}function mr(e){return e?"state"in e?e.state==="edge"?e.widthPt:0:e.widthPt:0}var Ad=lm,Dd=sm;var fm=31680/20,jn=Object.freeze({type:"auto",value:0}),E0=100,M0=Object.freeze({mm:72/25.4,cm:72/2.54,in:72,pt:1,pc:12,pi:12});function N0(e,n){for(let t of e.children)if(t.kind!=="textValue"&&t.localName===n)return t}function Hd(e,n){return e.attributes.find(t=>t.localName===n)?.value}function pm(e){if(/^\d{1,9}$/.test(e)){let r=Number(e)/20;return Number.isFinite(r)?{kind:"length",pt:r}:null}let n=/^(\d{1,7}(?:\.\d{1,4})?)%$/.exec(e);if(n){let r=Number(n[1]);return Number.isFinite(r)?{kind:"percent",percent:r}:null}let t=/^(\d{1,9}(?:\.\d{1,4})?)(mm|cm|in|pt|pc|pi)$/.exec(e);if(t){let r=Number(t[1])*M0[t[2]];return Number.isFinite(r)?{kind:"length",pt:r}:null}return null}function gr(e){if(!e)return jn;let n=Hd(e,"type");if(n!==void 0&&n!=="pct"&&n!=="dxa")return n==="nil"?{type:"nil",value:0}:jn;let t=Hd(e,"w");if(t===void 0)return jn;let r=pm(t);if(!r)return jn;let o=/^\d{1,9}$/.test(t);if(r.kind==="percent"||o&&n==="pct"){let a=r.kind==="percent"?r.percent:Number(t)/50;return !Number.isFinite(a)||a<=0?jn:{type:"pct",value:Math.min(a,E0)}}return !Number.isFinite(r.pt)||r.pt<=0?jn:{type:"dxa",value:Math.min(r.pt,fm)}}function ga(e,n){if(!e)return;let t=gr(e);if(t.type==="dxa")return Math.min(t.value,n)}function mm(e){let n=N0(e,"tblGrid");if(!n)return [];let t=[];for(let r of n.children)if(r.kind!=="textValue"&&r.localName==="gridCol"&&(t.push(r),t.length>=1024))break;return t}function A0(e){let n=[];for(let t of e){let r=Hd(t,"w"),o=r===void 0?null:pm(r);if(!o||o.kind!=="length"||!Number.isFinite(o.pt)||o.pt<=0){n.push(void 0);continue}n.push(o.pt>fm?void 0:o.pt);}return n}var _d=1,um=.001;function D0(e,n,t,r){let o=[];for(let i=0;i<t;i+=1)o.push(e[i]);let a=n.filter(i=>i.start<t&&(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,t);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 p=o[i.start];o[i.start]=p===void 0?s:Math.max(p,s);continue}let d=[],c=s;for(let p=i.start;p<l;p+=1){let f=o[p];f===void 0?d.push(p):c-=f;}if(d.length===0||c<=0)continue;let u=c/d.length;for(let p of d)o[p]=u;}return o}function gm(e){let{columnCount:n,tableWidth:t}=e,r=Number.isFinite(e.contentWidthPt)&&e.contentWidthPt>0,o=r?e.contentWidthPt:_d,a=t.type==="dxa"?t.value:t.type==="pct"?o*t.value/100:0,i=A0(e.gridCols),l=D0(i,e.claims,n,a),s=0,d=0;for(let y of l)y===void 0?d+=1:s+=y;let c=[];if(d>0){let y=s>0?s/Math.max(n-d,1):o/n,x=Math.max(o-s,0)/d,v=Math.max(Math.min(x,y),_d);for(let C of l)c.push(C??v);}else for(let y of l)c.push(y);let u=c.reduce((y,x)=>y+x,0);if(!Number.isFinite(u)||u<=0)return new Array(n).fill(o/n);let p=n*_d,f=e.layoutFixed||!r?Number.POSITIVE_INFINITY:o,m=Math.max(a>0?Math.min(a,f):Math.min(u,f),p),g=t.type==="pct"&&a>0;if(u<=m+um&&!g||Math.abs(u-m)<=um)return c;let h=m/u;return c.map(y=>y*h)}var rl=16,ya=3,tl=31680/20,Cm=31680/20,hm=1023,_0=256,ym=31680/20;function bm(e){let n=e&&ge(e,"jc");if(!n)return;let t=Ae(n,"val");if(t==="center")return "center";if(t==="right"||t==="end")return "right";if(t==="left"||t==="start")return "left"}var xm=31680/20,Bm={top:ya,right:ya,bottom:ya,left:ya};function ge(e,n){for(let t of e.children)if(t.kind!=="textValue"&&t.localName===n)return t}function Ae(e,n){return e.attributes.find(t=>t.localName===n)?.value}function H0(e){let n=e&&ge(e,"gridSpan"),t=n&&Ae(n,"val");if(!t||!/^\d{1,7}$/.test(t))return 1;let r=Number(t);return Number.isInteger(r)&&r>1?Math.min(r,1024):1}function Sm(e,n){let t=e&&ge(e,n),r=t&&Ae(t,"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 z0(e){let n=e&&ge(e,"vMerge");return n?Ae(n,"val")!=="restart":false}function j0(e){let n=e&&ge(e,"vAlign"),t=n&&Ae(n,"val");return t==="center"?"center":t==="bottom"?"bottom":"top"}function wm(e){return Ds(e&&ge(e,"shd"))}function Pm(e,n){let t=e&&ge(e,n);if(!t)return false;let r=Ae(t,"val");return r!=="0"&&r!=="false"}var ha=Object.freeze({rule:"auto"});function G0(e){let n=e&&ge(e,"trHeight");if(!n)return ha;let t=Ae(n,"hRule"),r=t==="auto"||t==="exact"||t==="atLeast"?t:void 0;if(r==="auto")return ha;let o=Ae(n,"val");if(o===void 0||!/^\d{1,9}$/.test(o))return ha;let a=Number(o);if(!Number.isFinite(a)||a<=0)return ha;let i=Math.min(a/20,Cm);return i>0?{rule:r==="exact"?"exact":"atLeast",valuePt:i}:ha}function nl(e){if(!e)return;let n=Ae(e,"w");if(n===void 0||!/^\d{1,9}$/.test(n))return;let t=Number(n);if(!Number.isFinite(t)||t<0)return;let r=t/20;return r>tl?tl:r}function zd(e){if(!e)return {};let n=nl(ge(e,"top")),t=nl(ge(e,"left")),r=nl(ge(e,"bottom")),o=nl(ge(e,"right"));return {...n===void 0?{}:{top:n},...t===void 0?{}:{left:t},...r===void 0?{}:{bottom:r},...o===void 0?{}:{right:o}}}function jd(e,n){return {top:n.top??e.top,right:n.right??e.right,bottom:n.bottom??e.bottom,left:n.left??e.left}}function ba(e,n){let t=e.columnWidthsPt.reduce((o,a)=>o+a,0),r=n-t;return !Number.isFinite(r)||r<=0?0:e.alignment==="center"?r/2:e.alignment==="right"?r:Math.min(e.indentPt,r)}function Rm(e){if(e==="page")return "page";if(e==="margin")return "margin";if(e==="text")return "text"}function Im(e){if(e===void 0||!/^-?\d{1,9}$/.test(e))return;let n=Number(e);if(!Number.isFinite(n))return;let t=n/20;return Math.max(-xm,Math.min(xm,t))}function vm(e){let n=e&&ge(e,"tblpPr");if(!n)return;let t=Ae(n,"tblpXSpec"),r=t==="left"||t==="center"||t==="right"||t==="inside"||t==="outside"?t:void 0,o=Ae(n,"tblpYSpec"),a=o==="inline"||o==="top"||o==="center"||o==="bottom"||o==="inside"||o==="outside"?o:void 0;return {horzAnchor:Rm(Ae(n,"horzAnchor"))??"text",vertAnchor:Rm(Ae(n,"vertAnchor"))??"text",...r?{xSpec:r}:{},xPt:Im(Ae(n,"tblpX"))??0,...a?{ySpec:a}:{},yPt:Im(Ae(n,"tblpY"))??0}}function Lm(e,n,t){let r=t[e.horzAnchor],o=r.width-n,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=t.page.left+t.page.width;return Math.max(t.page.left,Math.min(a,i))}var W0=Object.freeze({firstRow:false,lastRow:false,firstColumn:false,lastColumn:false,rowBanding:true,columnBanding:true});function St(e,n){let t=Ae(e,n);if(t!==void 0)return t!=="0"&&t!=="false"&&t!=="off"}function X0(e){let n=e&&ge(e,"tblLook");if(!n)return W0;let t=Ae(n,"val"),r=t&&/^[0-9A-Fa-f]{1,4}$/.test(t)?Number.parseInt(t,16):0;return {firstRow:St(n,"firstRow")??(r&32)!==0,lastRow:St(n,"lastRow")??(r&64)!==0,firstColumn:St(n,"firstColumn")??(r&128)!==0,lastColumn:St(n,"lastColumn")??(r&256)!==0,rowBanding:St(n,"noHBand")===void 0?(r&512)===0:!St(n,"noHBand"),columnBanding:St(n,"noVBand")===void 0?(r&1024)===0:!St(n,"noVBand")}}var Gd=["firstRow","lastRow","firstCol","lastCol","band1Vert","band2Vert","band1Horz","band2Horz","nwCell","neCell","swCell","seCell"],Tm=["firstRow","lastRow","firstColumn","lastColumn","oddVBand","evenVBand","oddHBand","evenHBand","firstRowFirstColumn","firstRowLastColumn","lastRowFirstColumn","lastRowLastColumn"];function Om(e,n){let t=e&&ge(e,"cnfStyle");if(!t)return;let r=Ae(t,"val");if(r&&/^[01]{1,12}$/.test(r))for(let o=0;o<r.length&&o<Gd.length;o+=1)r[o]==="1"&&n.add(Gd[o]);for(let o=0;o<Tm.length;o+=1)St(t,Tm[o])===true&&n.add(Gd[o]);}var $0=["band1Vert","band2Vert","band1Horz","band2Horz","firstCol","lastCol","firstRow","lastRow","nwCell","neCell","swCell","seCell"];function V0(e){let n=new Set;Om(e.rowProperties,n),Om(e.cellProperties,n);let{look:t,rowIndex:r,rowCount:o,gridColumn:a,gridSpan:i,columnCount:l}=e,s=n.has("firstRow")||t.firstRow&&r===0,d=n.has("lastRow")||t.lastRow&&r===o-1,c=n.has("firstCol")||t.firstColumn&&a===0,u=n.has("lastCol")||t.lastColumn&&a+i>=l;if(!(n.has("band1Vert")||n.has("band2Vert"))&&t.columnBanding&&!c&&!u){let g=a-(t.firstColumn?1:0);n.add(g%2===0?"band1Vert":"band2Vert");}if(!(n.has("band1Horz")||n.has("band2Horz"))&&t.rowBanding&&!s&&!d){let g=r-(t.firstRow?1:0);n.add(g%2===0?"band1Horz":"band2Horz");}c&&n.add("firstCol"),u&&n.add("lastCol"),s&&n.add("firstRow"),d&&n.add("lastRow"),s&&c&&n.add("nwCell"),s&&u&&n.add("neCell"),d&&c&&n.add("swCell"),d&&u&&n.add("seCell");let m=[];for(let g of $0)n.has(g)&&m.push(g);return m}var km=new WeakMap;function co(e,n,t,r,o="all-markup"){let a=km.get(e);if(a&&a.contentWidthPt===n&&a.depth===t&&a.styleCascade===r&&a.displayMode===o)return a.structure;let i=Y0(e,n,t,r,o);return km.set(e,{contentWidthPt:n,depth:t,styleCascade:r,displayMode:o,structure:i}),i}function Y0(e,n,t,r,o){if(t>=rl||e.kind!=="table")return null;let a=ge(e,"tblPr"),i=a&&ge(a,"tblStyle")?Ae(ge(a,"tblStyle"),"val"):void 0,l=r?Np(r,i):ca,s=X0(a),d=Bm,c=Ad;for(let z of l.tablePropertyNodes)d=jd(d,zd(ge(z,"tblCellMar"))),c=Bd(c,Qi(z));let u=jd(d,zd(a&&ge(a,"tblCellMar"))),p=Bd(c,a?Qi(a):Ad),f=new Map,m=z=>{if(l===ca)return vd;let B=z.join("|"),H=f.get(B);if(H)return H;let V=Ap(l,z);return f.size<_0&&f.set(B,V),V},g=[],h=[],y=1;for(let z of chunk2GSRLGUI_cjs.me(e.children)){if(z.kind!=="tableRow")continue;let B=ge(z,"trPr"),H=[],V=[],W=[],A=Math.min(Sm(B,"gridBefore"),hm);A>0&&h.push({start:0,span:A,preferred:gr(B&&ge(B,"wBefore"))});let Z=A,X=chunk2GSRLGUI_cjs.me(z.children);for(let se of X){if(se.kind!=="tableCell")continue;let be=ge(se,"tcPr"),he=Math.min(Z,hm),Re=Math.min(H0(be),1024-he),fe=gr(be&&ge(be,"tcW"));H.push(he),V.push(Re),W.push(fe),h.push({start:he,span:Re,preferred:fe}),Z=he+Re;}let J=Sm(B,"gridAfter"),Q=Math.min(Z+J,1024);J>0&&Z<1024&&h.push({start:Z,span:Math.min(J,1024-Z),preferred:gr(B&&ge(B,"wAfter"))}),Q>y&&(y=Q),g.push({node:z,cells:X,properties:B,starts:H,spans:V,preferred:W,gridColumns:Q});}let x=mm(e),v=x.length>0?x.length:y,C=g.length,M=[];for(let z=0;z<g.length;z+=1){let B=g[z],H=B.node,V=B.properties,W=0,A=[];for(let be of B.cells){if(be.kind!=="tableCell")continue;let he=ge(be,"tcPr"),Re=B.starts[W],fe=B.spans[W],Je=B.preferred[W]??jn,xe=V0({look:s,rowIndex:z,rowCount:C,gridColumn:Re,gridSpan:fe,columnCount:v,rowProperties:V,cellProperties:he});W+=1;let Ge,pn=Dd;for(let Xn of xe){let ve=l.conditional.get(Xn);if(!ve)continue;let ze=ge(ve,"tcPr");Ge=wm(ze)??Ge,pn=Ld(pn,el(ze));}let ln=wm(he)??Ge,He=jd(u,zd(he&&ge(he,"tcMar"))),vt=pa(be.children,o);A.push({id:be.id,gridSpan:fe,gridColumn:Re,...x[Re]?.id?{gridColumnId:x[Re].id}:{},vMergeContinue:z0(he),vAlign:j0(he),margins:He,borders:Ld(pn,he?el(he):Dd),...ln===void 0?{}:{shading:ln},preferredWidth:Je,styleFormatting:m(xe),blocks:vt});}let Z=V?ge(V,"ins")??ge(V,"del"):void 0,X=Z?Z.localName==="ins"?"insert":"delete":void 0,J=Z&&Ae(Z,"id"),Q=Z&&Ae(Z,"author"),se=Z&&Ae(Z,"date");M.push({id:H.id,...X?{revisionKind:X}:{},...J!==void 0?{revisionId:J}:{},...Q!==void 0?{revisionAuthor:Q}:{},...se!==void 0?{revisionDate:se}:{},isHeader:Pm(V,"tblHeader"),cantSplit:Pm(V,"cantSplit"),height:G0(V),cells:A});}let N=jn,P,L,T,I,b;for(let z of l.tablePropertyNodes){let B=ge(z,"tblW");B&&(N=gr(B));let H=ge(z,"tblLayout");H&&(P=Ae(H,"type")==="fixed"),L=ga(ge(z,"tblInd"),ym)??L,T=bm(z)??T,I=ga(ge(z,"tblCellSpacing"),tl)??I,b=vm(z)??b;}let O=a&&ge(a,"tblW"),j=O?gr(O):N,ne=a&&ge(a,"tblLayout"),k=ne?Ae(ne,"type")==="fixed":P??false,E=ga(a&&ge(a,"tblInd"),ym)??L??0,_=bm(a)??T??"left",G=t===0?vm(a)??b:void 0,R=ga(a&&ge(a,"tblCellSpacing"),tl)??I??0;return {columnWidthsPt:gm({gridCols:x,claims:h,columnCount:v,contentWidthPt:n,tableWidth:j,layoutFixed:k}),rows:M,tableWidth:j,layoutFixed:k,indentPt:E,alignment:_,...G?{float:G}:{},cellSpacingPt:R,tableBorders:p,defaultMargins:u}}function ol(e){let n=[],t=0;for(let r of e.members){let o=chunk2GSRLGUI_cjs.Sd(r).length;n.push({paragraphId:r.id,base:t,length:o}),t+=o;}return {members:n,total:t}}function Wd(e,n){let t;for(let r of e.members){if(r.base>n)break;(t===void 0||r.length>0||r.base>t.base)&&(t=r);}return t??e.members[e.members.length-1]}function Fm(e,n){let t=Wd(n,e.start);if(!t)return e;let r=e.end-t.base;return {paragraphId:t.paragraphId,start:e.start-t.base,end:Math.min(r,t.length)}}function K0(e,n){return {...e,range:Fm(e.range,n)}}function al(e,n){return e.map(t=>{let r=t.spans.map(u=>K0(u,n)),o=r[0],a=t.drawings?.map(u=>{let p=Wd(n,u.start);return p?{...u,paragraphId:p.paragraphId,start:u.start-p.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))}:Fm(t.range,n),d=a,c=t.deletedRanges?.map(u=>({deleted:u,member:Wd(n,u.start)})).filter(({member:u})=>u?.paragraphId===s.paragraphId).map(({deleted:u,member:p})=>({start:u.start-(p?.base??0),end:u.end-(p?.base??0)}));return {...t,range:s,spans:r,...d?{drawings:d}:{},...c?{deletedRanges:c}:{}}})}var $d=512,Mm=9,Gn=31680/20,U0=8,Z0=128;function xa(e,n){return e.kind!=="textValue"&&e.namespaceUri===chunk2GSRLGUI_cjs.ma&&e.localName===n}function Ve(e,n){for(let t of e.attributes)if(t.localName===n)return t.value}function On(e,n){for(let t of e.children)if(xa(t,n))return t}function wt(e,n=false){return e===void 0||!(n?/^-?\d{1,9}$/:/^\d{1,9}$/).test(e)?null:Number(e)}function q0(e){let n=e/20;return !Number.isFinite(n)||n<=0?0:n>Gn?Gn:n}function Xd(e){let n=e/20;return Number.isFinite(n)?n>Gn?Gn:n<-Gn?-Gn:n:0}function J0(e){let n={left:0,right:0,hanging:0,firstLine:0};if(!e)return n;let t=On(e,"ind");if(!t)return n;let r=wt(Ve(t,"left")??Ve(t,"start"),true),o=wt(Ve(t,"right")??Ve(t,"end"),true),a=wt(Ve(t,"hanging")),i=wt(Ve(t,"firstLine"),true);return {left:r===null?0:Xd(r),right:o===null?0:Xd(o),hanging:a===null?0:q0(a),firstLine:i===null?0:Xd(i),stated:{left:r!==null,right:o!==null,firstLineOffset:a!==null||i!==null}}}function Q0(e){return e==="space"?"space":e==="nothing"?"nothing":"tab"}function ew(e){return e==="center"?"center":e==="right"||e==="end"?"right":"left"}function nw(e,n){let t=On(e,n);if(!t)return false;let r=Ve(t,"val");return r!=="0"&&r!=="false"&&r!=="off"}function Em(e,n){let t=On(e,n);if(!t)return;let r=Ve(t,"val");if(!(r===void 0||r.length===0||r.length>Z0))return r}function tw(e,n){for(let t of e){if(t.localName!==n)continue;let r=t.attributes?.val;return !(r==="0"||r==="false")}return false}function Nm(e){let n=wt(Ve(e,"ilvl"));if(n===null||n<0||n>8)return null;let t=On(e,"start"),r=1;if(t){let y=wt(Ve(t,"val"));y!==null&&y>=0&&(r=Math.min(y,9999));}let o=On(e,"numFmt"),a=(o?Ve(o,"val"):void 0)??"decimal",i=On(e,"lvlText"),l=i?Ve(i,"val")??"":"",s=On(e,"lvlJc"),d=ew(s?Ve(s,"val"):void 0),c=On(e,"suff"),u=Q0(c?Ve(c,"val"):void 0),p=On(e,"lvlRestart"),f;if(p){let y=wt(Ve(p,"val"));y!==null&&y>=0&&y<=9&&(f=y);}let m=On(e,"pPr"),g=On(e,"rPr"),h=g?Vr(g):[];return {ilvl:n,start:r,numFmt:a.length>64?"decimal":a,lvlText:l.length>64?l.slice(0,64):l,lvlJc:d,suff:u,indent:J0(m),...f!==void 0?{lvlRestart:f}:{},isLgl:nw(e,"isLgl"),runProperties:h,vanish:tw(h,"vanish")}}function rw(e){let n=Ve(e,"abstractNumId");if(n===void 0||n.length===0||n.length>64)return null;let t=new Map;for(let a of e.children){if(!xa(a,"lvl"))continue;if(t.size>=9)break;let i=Nm(a);i&&!t.has(i.ilvl)&&t.set(i.ilvl,i);}let r=Em(e,"numStyleLink"),o=Em(e,"styleLink");return {abstractNumId:n,levels:t,...r!==void 0?{numStyleLink:r}:{},...o!==void 0?{styleLink:o}:{}}}function ow(e){let n=wt(Ve(e,"ilvl"));if(n===null||n<0||n>8)return null;let t=On(e,"startOverride"),r;if(t){let i=wt(Ve(t,"val"));i!==null&&i>=0&&(r=Math.min(i,9999));}let o=On(e,"lvl"),a=o?Nm(o)??void 0:void 0;return r===void 0&&a===void 0?{ilvl:n,override:{}}:{ilvl:n,override:{...r!==void 0?{startOverride:r}:{},...a?{level:a}:{}}}}function aw(e){let n=Ve(e,"numId");if(n===void 0||n.length===0||n.length>64)return null;let t=On(e,"abstractNumId"),r=t?Ve(t,"val"):void 0;if(!r||r.length>64)return null;let o=new Map;for(let a of e.children){if(!xa(a,"lvlOverride"))continue;if(o.size>=Mm)break;let i=ow(a);i&&!o.has(i.ilvl)&&o.set(i.ilvl,i.override);}return {numId:n,abstractNumId:r,overrides:o}}function iw(e){let n=new Map,t=new Map;if(!e)return {abstractNums:n,nums:t};let r=0,o=0;for(let a of e.children){if(xa(a,"abstractNum")){if(r>=$d)continue;r+=1;let i=rw(a);i&&!n.has(i.abstractNumId)&&n.set(i.abstractNumId,i);continue}if(xa(a,"num")){if(o>=$d)continue;o+=1;let i=aw(a);i&&!t.has(i.numId)&&t.set(i.numId,i);}}return {abstractNums:n,nums:t}}function lw(e,n,t){let r=new Set([n.abstractNumId]),o=n;for(let a=0;a<U0;a+=1){let i=o.numStyleLink;if(i===void 0)return o;let l=t(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 Am(e,n){let t=false,r=new Map(e.abstractNums);for(let[o,a]of e.abstractNums){if(a.numStyleLink===void 0)continue;let i=lw(e,a,n);!i||i.levels===a.levels||i.levels.size===0||(r.set(o,{...a,levels:i.levels}),t=true);}return t?{abstractNums:r,nums:e.nums}:e}function uo(e,n,t){if(t<0||t>8)return null;let r=e.nums.get(n);if(!r)return null;let o=e.abstractNums.get(r.abstractNumId);if(!o)return null;let a=r.overrides.get(t),i=a?.level??o.levels.get(t);return i?{abstractNumId:r.abstractNumId,level:i,...a?.startOverride!==void 0?{startOverride:a.startOverride}:{}}:null}var Vd=Object.freeze({abstractNums:new Map,nums:new Map});function sw(e,n){let t=e.nums.get(n),r=[];for(let o=0;o<=8;o+=1){let a=uo(e,n,o);if(!a){r.push(1);continue}let i=t?.overrides.get(o)?.startOverride;r.push(i??a.level.start);}return r}function dw(e,n,t){let r=[];for(let o=0;o<=8;o+=1){let a=uo(e,n,o);r.push(a?.level.numFmt??"decimal");}return {formats:r,starts:[...t]}}function cw(e,n){if(n===0)return null;if(n===void 0)return e-1;let t=n-1;return t>=e?null:t}function Yd(e){let n=new Map,t=new Map,r=new Map,o=a=>{let i=n.get(a);i||(i=[0,0,0,0,0,0,0,0,0],n.set(a,i));let l=t.get(a);l||(l=[false,false,false,false,false,false,false,false,false],t.set(a,l));let s=r.get(a);return s||(s=sw(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=uo(e,a,i);if(!l)return null;let{abstractNumId:s,level:d}=l,{counters:c,initialized:u,starts:p}=o(a),{formats:f}=dw(e,a,p);for(let C=i+1;C<=8;C+=1){let M=uo(e,a,C);if(!M)continue;let N=cw(C,M.level.lvlRestart);N!==null&&i<=N&&(u[C]=false);}let m=p[i]??d.start;u[i]?c[i]+=1:(c[i]=m,u[i]=true);let g=c.slice(),h=u.slice(),y=g.map((C,M)=>h[M]?C:p[M]??1),x=d.isLgl?f.map(C=>C==="bullet"||C==="none"?C:"decimal"):f,v=d.vanish?"":d.numFmt==="bullet"&&!/%[1-9]/.test(d.lvlText)?d.lvlText:Js(d.lvlText,y,x);return {abstractNumId:s,numId:a,ilvl:i,level:d,counters:g,markerText:v}}}}function Ud(e){return e.kind!=="textValue"}function Dm(e,n){for(let t of e.attributes)if(t.localName===n)return t.value}function il(e,n){for(let t of e.children)if(Ud(t)&&t.localName===n)return t}function Zd(e){let n=null;for(let t of e){if(!Ud(t))continue;let r=il(t,"numPr");if(!r)continue;let o=il(r,"ilvl"),a=il(r,"numId"),i=a?Dm(a,"val"):void 0,l=o?Dm(o,"val"):"0";if(!i||i==="0"){n=null;continue}if(i.length>64){n=null;continue}let s=/^\d{1,2}$/.test(l??"")?Number(l):0;if(s<0||s>8){n=null;continue}n={numId:i,ilvl:s};}return n}function uw(e,n){let t=new Set,r=e.styles.get(n);for(let o=0;r!==void 0&&o<zi;o+=1){if(t.has(r.styleId))return;t.add(r.styleId);let a=r.paragraphPropertiesNode,i=a?Zd([a]):null;if(i)return i.numId;r=r.basedOn===null?void 0:e.styles.get(r.basedOn);}}var Kd=new WeakMap;function qd(e,n){if(!n)return e;let t=Kd.get(e);if(t&&t.styleCascade===n)return t.linked;let r=Am(e,a=>uw(n,a)),o={styleCascade:n,linked:r};return Kd.set(e,o),Kd.set(r,o),r}function _m(e){return Number.isFinite(e)?e>Gn?Gn:e<-Gn?-Gn:e:0}function Hm(e){let n=null;for(let t of e){if(t.localName!=="ind")continue;let r=t.attributes?.hanging,o=t.attributes?.firstLine;r===void 0&&o===void 0||(n={hanging:r!==void 0&&/^\d{1,9}$/.test(r)?_m(Number(r)/20):0,firstLine:o!==void 0&&/^-?\d{1,9}$/.test(o)?_m(Number(o)/20):0});}return n}function zm(e){return e.some(n=>n.localName==="ind"&&(n.attributes?.left!==void 0||n.attributes?.start!==void 0))}function jm(e){return e.some(n=>n.localName==="ind"&&(n.attributes?.right!==void 0||n.attributes?.end!==void 0))}function Xm(e,n,t=[]){let r=e.stated??{left:false,right:false,firstLineOffset:false},o=la(n),a=la(t),i={hanging:e.hanging,firstLine:e.firstLine},l=zm(t)?a.left:r.left?e.left:zm(n)?o.left:e.left,s=jm(t)?a.right:r.right?e.right:jm(n)?o.right:e.right,d=Hm(t)??(r.firstLineOffset?i:Hm(n)??i);return {left:l,right:s,...d}}function $m(e,n=8){let t=[],r=(o,a)=>{for(let i of o){if(i.kind==="paragraph"){t.push(i);continue}if(!(i.kind!=="table"||a>=n)){for(let l of chunk2GSRLGUI_cjs.me(i.children))if(l.kind==="tableRow")for(let s of chunk2GSRLGUI_cjs.me(l.children)){if(s.kind!=="tableCell")continue;let d=chunk2GSRLGUI_cjs.Pb(s.children);r(d,a+1);}}}};return r(e,0),t}var Gm=new WeakMap;function fw(e,n){let t=Gm.get(e);if(t&&t.styleCascade===n)return t;let r=e.children.find(s=>s.kind==="paragraphProperties"),o=n?so(n,r):null,a=o?o.paragraphPropertyNodes:r?[r]:[],i=r&&Ud(r)?il(r,"rPr"):void 0,l={styleCascade:n,numPr:Zd(a),inheritedParagraphProperties:o?.inheritedParagraphProperties??[],directProps:Tn(r),inheritedMarkProps:o?o.markRunProperties:Tn(i),perLevel:new WeakMap};return Gm.set(e,l),l}function Vm(e,n,t,r){let o=new Map;if(n.nums.size===0)return o;let a=qd(n,t),i=Yd(a);for(let l of $m(e)){let s=fw(l,t),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 h=Xm(c.level.indent,s.inheritedParagraphProperties,s.directProps),y=bt(s.inheritedMarkProps,c.level.runProperties,t);u={indent:h,markerStyle:Ee(y,t?.themeFonts)},s.perLevel.set(c.level,u);}let{indent:p,markerStyle:f}=u,m=Yr(c.markerText,f.fontFamily,r),g=[c.numId,c.ilvl,c.level.numFmt,c.level.lvlText,p.left,p.right,p.hanging,p.firstLine,c.level.lvlJc,c.level.suff,c.level.vanish?1:0,m.length].join("|");o.set(l.id,{numId:c.numId,ilvl:c.ilvl,abstractNumId:c.abstractNumId,numFmt:c.level.numFmt,markerText:m,markerAlign:c.level.lvlJc,suffix:c.level.suff,indent:p,markerStyle:f,cacheToken:g});}return o}var Wm=new WeakMap;function Jd(e,n){if(e.listItems===void 0){let o=Wm.get(n);if(o&&o.rawIndex===e.numberingIndex&&o.styleCascade===e.styleCascade&&o.isFontAvailable===e.isFontAvailable)return {...e,numberingIndex:o.linkedIndex,...o.listItems?{listItems:o.listItems}:{}}}let t=qd(e.numberingIndex??Vd,e.styleCascade),r=e.listItems??(t.nums.size>0?Vm(n,t,e.styleCascade,e.isFontAvailable):void 0);return e.listItems===void 0&&Wm.set(n,{rawIndex:e.numberingIndex,styleCascade:e.styleCascade,isFontAvailable:e.isFontAvailable,linkedIndex:t,listItems:r}),{...e,numberingIndex:t,...r?{listItems:r}:{}}}function ll(e,n,t,r){if((!e.markerText||e.indent.hanging<=0&&n<=0)&&!e.markerText||!e.markerText)return null;let o=e.indent.left,a=e.indent.hanging,i=Math.min(0,o),l=Math.max(i,o-a),s=Math.max(a,n),d=l;return e.markerAlign==="right"?d=o-n:e.markerAlign==="center"&&(d=l+(s-n)/2),d<i&&(d=i),{x:d,y:t,width:Math.max(n,0),height:r}}function pw(e,n,t=jr,r=Number.POSITIVE_INFINITY){if(!e.markerText)return 0;let o=n.measure(e.markerText,e.markerStyle),a=ll(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+n.measure(" ",e.markerStyle)-i:l<=i?0:Gr(t,l,r).positionPt-i}function sl(e,n,t,r,o){return e?pw(e,t,r,o===void 0?void 0:n.left+o):n.hanging>0?-n.hanging:n.firstLine}function dl(e,n,t,r=0){if(!e||!e.markerText||!t)return;let o=n.measure(e.markerText,e.markerStyle),a=ll(e,o,t.y,t.height);if(a)return {text:e.markerText,style:e.markerStyle,box:{x:a.x+r,y:a.y,width:a.width,height:a.height},level:e.ilvl,numId:e.numId,numFmt:e.numFmt}}var Ym=new WeakMap,Km=new WeakMap;function Pt(e){let n=Ym.get(e);if(n)return n;let t=new Set,r=[];for(let o of e.pages)for(let a of rn(o)){for(let i of a.lines)for(let l of yn(i))t.has(l.paragraphId)||(t.add(l.paragraphId),r.push(l.paragraphId));a.lines.length===0&&!t.has(a.paragraphId)&&(t.add(a.paragraphId),r.push(a.paragraphId));}return Ym.set(e,r),r}function fo(e){let n=Km.get(e);if(n)return n;let t=new Map;for(let[r,o]of Pt(e).entries())t.set(o,r);return Km.set(e,t),t}var Um=new WeakMap;function yn(e){let n=Um.get(e);if(n)return n;let t={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)?mw(e):[t];return Um.set(e,o),o}function mw(e){let n=[];for(let t of e.spans){let r=n[n.length-1];if(r&&r.paragraphId===t.range.paragraphId){n[n.length-1]={...r,start:Math.min(r.start,t.range.start),end:Math.max(r.end,t.range.end),spans:[...r.spans,t]};continue}n.push({paragraphId:t.range.paragraphId,start:t.range.start,end:t.range.end,spans:[t],drawings:[]});}return n.map(t=>({...t,drawings:(e.drawings??[]).filter(r=>r.paragraphId===t.paragraphId)}))}function Rt(e,n){return yn(e).find(t=>t.paragraphId===n)??null}function po(e,n,t,r){let o=fo(e),a=o.get(n.paragraphId)??-1,i=o.get(t.paragraphId)??-1,l=o.get(r.paragraphId)??-1;if(a<i||a>l)return null;let s=a===i?Math.max(n.start,t.offset):n.start,d=a===l?Math.min(n.end,r.offset):n.end;return d>s?{start:s,end:d}:null}function yO(e,n){for(let t of e.pages)for(let r of rn(t)){let o=Xt(r).indexOf(n);if(o>0)return Xt(r).slice(0,o).reverse()}return []}var Zm=new WeakMap;function Xt(e){let n=Zm.get(e);if(n)return n;let t=[];for(let r of e.lines??[])for(let o of yn(r))t.includes(o.paragraphId)||t.push(o.paragraphId);return t.includes(e.paragraphId)||t.push(e.paragraphId),Zm.set(e,t),t}function gw(e,n){let t=Xt(e);if(t.length===1)return t[0]===n?{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=Rt(a,n);i&&(r=Math.min(r,i.start),o=Math.max(o,i.end));}return o>=r?{start:r,end:o}:null}function Qd(e,n,t){let r=gw(e,n);return r!==null&&t>=r.start&&t<r.end}function bO(e,n){for(let t of e.pages)for(let r of rn(t))if(r.paragraphId===n)return r;for(let t of e.pages)for(let r of rn(t))if(Xt(r).includes(n))return r;return null}var oc=8,qm=new WeakMap;function ul(e){let n=qm.get(e);if(n)return n;let t=[],r=new Map,o=new Map,a=new Map,i=new Map,l=new Map,s=(c,u)=>{for(let p of c){if(p.kind==="paragraph"){if(!u)for(let f of p.lines)o.set(f.range.paragraphId,f.id);continue}for(let f of p.rows){if(!f.isHeaderRepeat&&!r.has(f.id)){let m=a.get(p.tableId)??0;r.set(f.id,m),a.set(p.tableId,m+1);}for(let m of f.cells){if(!f.isHeaderRepeat&&!u){let g=`${p.tableId}|${m.gridColumn}`;if(m.blocks.length===0){let h=l.get(g);h&&i.set(m,h);}else l.set(g,{row:f,cell:m});}s(m.blocks,u||f.isHeaderRepeat);}}}};for(let c of e.pages)t.push(c.box.y),s(c.fragments,false);let d={pageTops:t,rowIndexById:r,lastLineIdOfParagraph:o,mergeOriginOf:i};return qm.set(e,d),d}function Pa(e,n){let t=ul(e).pageTops;if(t.length===0)return -1;let r=0,o=t.length-1,a=0;for(;r<=o;){let i=r+o>>1;t[i]<=n?(a=i,r=i+1):o=i-1;}return a}function hw(e,n){let t=e.pages[Pa(e,n.y)];if(!t)return false;for(let r of [t.header,t.footer])if(r&&pl(r.box,n))return true;return false}function tc(e,n,t,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||!Sa(a,n))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:t},pageIndex:t,lineId:"",cell:null,contentControlId:null,onGlyphs:true,drawing:Object.freeze({drawingNodeId:a.drawingNodeId,paragraphId:a.anchorParagraphId,start:a.start})}}return null}function fl(e,n,t,r={}){let o=e.pages[n];if(!o)return null;let a={layout:e,pageIndex:o.index,verticalWeight:r.verticalWeight??oc,measurer:r.measurer},i=Jm(e,o.index,t),l=(o.anchoredDrawings??[]).filter(p=>!p.behindDocument),s=(o.anchoredDrawings??[]).filter(p=>p.behindDocument),d=tc(l,t,a.pageIndex);if(d)return {...d,contentControlId:i};let c=cl(o.fragments,t,a,null);if(c?.onGlyphs)return {...c,contentControlId:i};let u=tc(s,t,a.pageIndex);if(u)return {...u,contentControlId:i};if(c)return {...c,contentControlId:i};for(let p=1;p<e.pages.length;p+=1)for(let f of [n-p,n+p]){let m=e.pages[f];if(!m)continue;let g=cl(m.fragments,t,{...a,pageIndex:m.index},null);if(g)return {...g,contentControlId:Jm(e,m.index,t)}}return null}function vO(e,n,t,r,o={}){let a=e.pages[n];if(!a)return null;let i={layout:e,pageIndex:a.index,verticalWeight:o.verticalWeight??oc,measurer:o.measurer};return cl(t,r,i,null)}function yw(e,n,t={}){let r=e.pages[Pa(e,n.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:n.x-o.box.x,y:n.y-o.box.y}),i=tc(o.anchoredDrawings,a,r.index);if(i)return i}return fl(e,r.index,{x:n.x-r.contentBox.x,y:n.y-r.contentBox.y},t)}function pl(e,n){return n.x>=e.x&&n.x<e.x+e.width&&n.y>=e.y&&n.y<e.y+e.height}function ml(e,n,t){let r=e.contentControls??[],o=null;for(let a of r)for(let i of a.fragments)i.pageIndex===n&&pl(i.box,t)&&(!o||a.nestingDepth>o.nestingDepth)&&(o=a);return o}function Jm(e,n,t){return ml(e,n,t)?.id??null}function rc(e,n,t){let r=Math.max(e.x-n.x,0,n.x-(e.x+e.width)),o=Math.max(e.y-n.y,0,n.y-(e.y+e.height));return r+o*t}function bw(e,n,t){return e.kind!=="table"||Math.max(e.box.y-n.y,0,n.y-(e.box.y+e.box.height))>0?rc(e.box,n,t):0}function cl(e,n,t,r){if(e.length===0)return null;let o=null;for(let i of e){if(!pl(i.box,n))continue;o=i;let l=Qm(i,n,t,r);if(l)return l;break}let a=e.filter(i=>i!==o).map(i=>({block:i,score:bw(i,n,t.verticalWeight)})).sort((i,l)=>i.score-l.score);for(let{block:i}of a){let l=Qm(i,n,t,r);if(l)return l}return null}function Qm(e,n,t,r){return e.kind==="paragraph"?xw(e,n,t,r,pl(e.box,n)):Ow(e,n,t)}function xw(e,n,t,r,o){let a=Sw(e.lines,n.y);if(!a)return null;let i=Iw(a,n.x,n.y,t),l=Pw(a,n.x),s=Math.min(Math.max(i.offset,l.start),l.end),d={paragraphId:l.paragraphId,offset:s},c=Ra(a,s,t.measurer,l);return {position:d,caret:{position:d,x:i.x,y:c.y,height:c.height,lineId:a.id,pageIndex:t.pageIndex},pageIndex:t.pageIndex,lineId:a.id,cell:r,onGlyphs:o&&i.withinSpan&&n.y>=a.box.y&&n.y<a.box.y+a.box.height,contentControlId:null,drawing:i.drawing&&i.withinSpan?ww(i.drawing):null}}function Sw(e,n){if(e.length===0)return null;for(let o of e)if(n>=o.box.y&&n<o.box.y+o.box.height)return o;let t=e[0],r=Number.POSITIVE_INFINITY;for(let o of e){let a=n<o.box.y?o.box.y-n:n-(o.box.y+o.box.height);a<r&&(r=a,t=o);}return t}function ww(e){return Object.freeze({drawingNodeId:e.drawingNodeId,paragraphId:e.paragraphId,start:e.start})}function Pw(e,n){let t=yn(e),r=t[0];for(let o of t){let a=o.spans[0];if(a===void 0)continue;let i=o.spans[o.spans.length-1];if(n>=a.box.x&&(r=o),n<i.box.x+i.box.width)break}return r}function Rw(e,n,t){for(let r of t??e.drawings??[])if(r.start===n||r.start+1===n)return r;return null}function Sa(e,n){let t=e.hitBounds;return n.x<t.x||n.x>=t.x+t.width||n.y<t.y||n.y>=t.y+t.height?false:cd(n.x,n.y,e.geometry)}function Iw(e,n,t,r){let o=e.spans;for(let s of e.drawings??[])if(Sa(s,{x:n,y:t}))return {offset:s.start,x:s.hitBounds.x,withinSpan:true,drawing:s};if(o.length===0&&(e.drawings?.length??0)>0){let s=e.drawings[0];if(n<=s.advanceStart)return {offset:e.range.start,x:s.advanceStart,withinSpan:false,drawing:s};let d=e.drawings[e.drawings.length-1];if(n>=d.advanceEnd)return ec(e,d.advanceEnd,r);for(let c of e.drawings??[])if(n>=c.advanceStart&&n<c.advanceEnd){let u=n>=c.x+c.width/2;return {offset:u?c.start+1:c.start,x:u?c.advanceEnd:c.advanceStart,withinSpan:Sa(c,{x:n,y:t}),drawing:c}}}if(o.length===0)return {offset:e.range.start,x:e.contentX,withinSpan:false};let a=o[0];if(n<=a.box.x)return {offset:e.range.start,x:a.box.x,withinSpan:false};let i=o[o.length-1],l=i.box.x+i.box.width;if(n>=l)return ec(e,l,r);for(let s of o)if(n>=s.box.x&&n<s.box.x+s.box.width)return vw(s,n,r);for(let s=0;s<o.length;s+=1){let d=o[s];for(let c of e.drawings??[]){if(n>=c.advanceStart&&n<c.advanceEnd){let u=Sa(c,{x:n,y:t}),p=n>=c.x+c.width/2;return {offset:p?c.start+1:c.start,x:p?c.advanceEnd:c.advanceStart,withinSpan:u,drawing:c}}if(!(c.start<=d.range.start&&c.hitBounds.x+c.hitBounds.width<=d.box.x)){if(Sa(c,{x:n,y:t}))return {offset:c.start,x:c.hitBounds.x,withinSpan:true,drawing:c};if(n<d.box.x&&n>=c.hitBounds.x+c.hitBounds.width)return {offset:c.start+1,x:c.hitBounds.x+c.hitBounds.width,withinSpan:false,drawing:c};if(n<c.hitBounds.x&&n>=(o[s-1]?.box.x??e.contentX))return {offset:c.start,x:c.hitBounds.x,withinSpan:false,drawing:c}}}if(n<d.box.x){let c=o[s-1],u=c.box.x+c.box.width;return n-u<=d.box.x-n?{offset:c.range.end,x:u,withinSpan:false}:{offset:d.range.start,x:d.box.x,withinSpan:false}}}return ec(e,l,r)}function ec(e,n,t){let r=ag(t.layout,e);if(r===e.range.end)return {offset:r,x:n,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=t.measurer?wa(a,i,t.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:n,withinSpan:false}}function ag(e,n){let t=n.range.end;if(t>n.range.start&&nc(n,t-1)===chunk2GSRLGUI_cjs.Xb)return t-1;if(ul(e).lastLineIdOfParagraph.get(n.range.paragraphId)===n.id)return t;let r=t;for(r>n.range.start&&nc(n,r-1)===`
|
|
15
|
+
`&&(r-=1);r>n.range.start&&nc(n,r-1)===" ";)r-=1;return r}function nc(e,n){for(let t of e.spans)if(!(n<t.range.start||n>=t.range.end))return t.text.length!==t.range.end-t.range.start?null:t.text[n-t.range.start]??null;return null}var eg=new WeakMap,ng=new WeakMap;function tg(e){let n=Ss(),t=eg.get(e);if(t&&t.epoch===n)return t.boundaries;let r=[0];for(let o of _n(e.text))r.push(o.utf16To);return r[r.length-1]!==e.text.length&&r.push(e.text.length),eg.set(e,{epoch:n,boundaries:r}),r}function wa(e,n,t){let r=e.caretEdges;if(r&&n>=0&&n<r.length)return r[n];let o=ng.get(t);o||(o=new WeakMap,ng.set(t,o));let a=o.get(e);a||(a=new Map,o.set(e,a));let i=a.get(n);if(i!==void 0)return i;let l=n<=0?0:et(e.text.slice(0,n),e.style,t);return a.set(n,l),l}function ac(e){return e.text===" "||e.projected?true:e.text.length!==e.range.end-e.range.start}function gl(e,n,t){let r=e.range.end-e.range.start;if(r<=0)return e.box.x;let o=Math.max(0,Math.min(n-e.range.start,r)),a=e.caretEdges;return a&&o<a.length?e.box.x+a[o]:!t||ac(e)?e.box.x+e.box.width*(o/r):e.box.x+wa(e,o,t)}function Ra(e,n,t,r){let o=Rw(e,n,r?.drawings);if(o)return {x:n>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;return {x:e.contentX,y:e.box.y+d,height:Math.max(0,e.box.height-d-(e.trailingSpacing??0))}}let i=a[0];for(let d=0;d<a.length;d+=1){let c=a[d];if(n>c.range.start&&n<c.range.end){i=c;break}if(n===c.range.end){let u=a[d+1];if(u&&u.range.start===n&&ac(c)){i=u;break}if(u&&u.range.start===n&&c.text.endsWith(" ")&&u.box.x-(c.box.x+c.box.width)>.25){i=u;break}i=c;}else n>c.range.end&&(i=c);}let l=gl(i,n,t),s=t?.lineMetrics(i.style);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-td(i.style),height:s.height}}function vw(e,n,t){let r=n-e.box.x,o=e.range.end-e.range.start;if(o<=0||ac(e)){let f=r>e.box.width/2;return {offset:f?e.range.end:e.range.start,x:f?e.box.x+e.box.width:e.box.x,withinSpan:true}}if(!t.measurer){let f=Math.max(0,Math.min(1,r/Math.max(e.box.width,Number.EPSILON))),m=Math.round(f*o),g=tg(e),h=g[0],y=Number.POSITIVE_INFINITY;for(let x of g){let v=Math.abs(x-m);v<y&&(y=v,h=x);}return {offset:e.range.start+h,x:e.box.x+e.box.width*(h/o),withinSpan:true}}let a=tg(e),i=1,l=a.length-1;for(;i<l;){let f=i+l>>1;wa(e,a[f],t.measurer)<r?i=f+1:l=f;}let s=a[i],d=a[i-1],c=wa(e,s,t.measurer),u=wa(e,d,t.measurer),p=r-u<=c-r;return {offset:e.range.start+(p?d:s),x:e.box.x+(p?u:c),withinSpan:true}}function rg(e,n,t,r){if(e.length===0)return null;for(let i of e){let l=t(i);if(n>=l&&n<l+r(i))return i}let o=e[0],a=Number.POSITIVE_INFINITY;for(let i of e){let l=t(i),s=n<l?l-n:n-(l+r(i));s<a&&(a=s,o=i);}return o}function Tw(e,n,t,r){return {tableId:n.tableId,rowId:t.id,cellId:r.id,rowIndex:ul(e).rowIndexById.get(t.id)??0,gridColumn:r.gridColumn,gridSpan:r.gridSpan}}function Ow(e,n,t,r){let o=e.rows.filter(d=>!d.isHeaderRepeat),a=o.length>0?o:e.rows,i=[],l=rg(a,n.y,d=>d.box.y,d=>d.box.height);if(l){let d=rg(l.cells,n.x,c=>c.box.x,c=>c.box.width);d&&i.push(kw(t,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:rc(c.box,n,t.verticalWeight)}));s.sort((d,c)=>d.score-c.score);for(let{row:d,cell:c}of [...i,...s.map(u=>u.entry)]){let u=Tw(t.layout,e,d,c),p=cl(c.blocks,n,t,u);if(p)return p}return null}function kw(e,n,t){return t.blocks.length>0?{row:n,cell:t}:ul(e.layout).mergeOriginOf.get(t)??{row:n,cell:t}}function ig(e,n){let t=n.paintBounds;return t.width<=0||t.height<=0?null:Object.freeze({pageIndex:e,x:t.x,y:t.y,width:t.width,height:t.height,record:n})}function Cw(e,n,t){for(let r of n.lines)for(let o of r.drawings??[])if(o.drawingNodeId===t)return ig(e,o);return null}function lg(e,n,t){if(n.kind==="paragraph")return Cw(e,n,t);for(let r of n.rows)for(let o of r.cells)for(let a of o.blocks){let i=lg(e,a,t);if(i)return i}return null}function og(e,n,t){for(let r of n){let o=lg(e,r,t);if(o)return o}return null}function Bw(e,n){for(let t of e.pages){for(let o of t.anchoredDrawings??[])if(o.drawingNodeId===n)return ig(t.index,o);let r=og(t.index,t.fragments,n);if(r)return r;for(let o of [t.header,t.footer]){if(!o)continue;for(let i of o.anchoredDrawings??[]){if(i.drawingNodeId!==n)continue;let l=i.paintBounds;return l.width<=0||l.height<=0?null:Object.freeze({pageIndex:t.index,x:o.box.x+l.x-t.contentBox.x,y:o.box.y+l.y-t.contentBox.y,width:l.width,height:l.height,record:i})}let a=og(t.index,o.fragments,n);if(a){let i=a.record.paintBounds;return Object.freeze({pageIndex:t.index,x:t.header?.box.x===o.box.x||t.footer?.box.x===o.box.x?o.box.x+i.x-t.contentBox.x:a.x,y:o.box.y+i.y-t.contentBox.y,width:a.width,height:a.height,record:a.record})}}}return null}function Lw(e){let n=[0],t=0;for(let r of e)t+=r,n.push(t);return n}function Fw(e,n){let t=n.get(e.id);return t===void 0&&(e.isHeaderRepeat?t=0:(t=n.size,n.set(e.id,t))),{...e,rowIndex:t}}function hl(e,n,t,r){return {...e,nestingDepth:t,columnEdges:e.columnEdges??Lw(n),rows:e.rows.map(o=>Fw(o,r))}}var sg=new WeakMap,mo=4,ic=6,dg=14,Ew={rowDivider:4,columnDivider:4,rightEdge:4,insertRow:3,insertColumn:3,tableBody:0};function cg(e,n,t,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:n,table:a,row:l,rowOrdinal:l.rowIndex,nestingDepth:i,editable:!l.isHeaderRepeat,pageContentBox:t});for(let s of l.cells)cg(s.blocks,n,t,i+1,o);}}}function kO(e){let n=sg.get(e);if(n)return n;let t=[];for(let o=0;o<e.pages.length;o+=1){let a=e.pages[o];cg(a.fragments,o,a.contentBox,0,i=>{t.push(i);});}let r=Object.freeze({sourceRevision:e.revision,occurrences:Object.freeze(t)});return sg.set(e,r),r}function CO(e){let n=e.sourceRevision;switch(e.kind){case "rowDivider":return `${n}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.edgeY}`;case "columnDivider":return `${n}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.leftGridColumnId}:${e.rightGridColumnId}:${e.edgeX}`;case "rightEdge":return `${n}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.gridColumnId}:${e.edgeX}`;case "insertRow":return `${n}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}`;case "insertColumn":return `${n}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.gridColumnId}:${e.isHeaderRepeat}`;case "tableBody":return `${n}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.nestingDepth}:${e.editable}`}}function BO(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 LO(e,n){if(n.kind==="insertRow"){for(let t of e.occurrences)if(t.pageIndex===n.pageIndex&&t.table.tableId===n.tableId&&t.row.id===n.rowId&&t.row.isHeaderRepeat===n.isHeaderRepeat)return t.editable?{kind:"insertRow",pageIndex:t.pageIndex,sourceRevision:e.sourceRevision,tableId:t.table.tableId,rowId:t.row.id,isHeaderRepeat:t.row.isHeaderRepeat,nestingDepth:t.nestingDepth}:null;return null}for(let t of e.occurrences)if(t.pageIndex===n.pageIndex&&t.table.tableId===n.tableId&&t.row.id===n.rowId&&t.row.isHeaderRepeat===n.isHeaderRepeat&&t.editable)for(let r=0;r<t.table.columnEdges.length-1;r+=1){let o=Ia(t.row,r);if(o===n.gridColumnId)return {kind:"insertColumn",pageIndex:t.pageIndex,sourceRevision:e.sourceRevision,tableId:t.table.tableId,rowId:t.row.id,gridColumnId:o,isHeaderRepeat:t.row.isHeaderRepeat,nestingDepth:t.nestingDepth}}return null}function Ia(e,n){for(let t of e.cells)if(t.gridColumn===n)return t.gridColumnId??null;return null}function Mw(e,n,t,r,o){let a=e.pages[n.pageIndex];if(!a)return null;let i=t-a.contentBox.x-o,l=r-a.contentBox.y,s=n.table,d=i-s.box.x,c=l-s.box.y;return d<-mo||c<-dg||d>s.box.width+mo||c>s.box.height+ic?null:{x:d,y:c}}function Nw(e,n,t,r,o){if(n.row.isHeaderRepeat)return null;let a=n.table,i=n.row.box.y-a.box.y+n.row.box.height;if(!a.columnEdges.slice(1).some(d=>Math.abs(t-d)<=mo)&&t>=0&&t<=a.box.width&&Math.abs(r-i)<=mo)return {kind:"rowDivider",pageIndex:n.pageIndex,sourceRevision:e.sourceRevision,tableId:a.tableId,rowId:n.row.id,isHeaderRepeat:n.row.isHeaderRepeat,nestingDepth:n.nestingDepth,edgeY:i};if(r<n.row.box.y-n.table.box.y||r>n.row.box.y-n.table.box.y+n.row.box.height)return null;for(let d=1;d<a.columnEdges.length-1;d+=1){let c=a.columnEdges[d];if(Math.abs(t-c)>mo)continue;let u=Ia(n.row,d-1),p=Ia(n.row,d);if(!u||!p)continue;let f=o.pages[n.pageIndex];return {kind:"columnDivider",pageIndex:n.pageIndex,sourceRevision:e.sourceRevision,tableId:a.tableId,rowId:n.row.id,leftGridColumnId:u,rightGridColumnId:p,isHeaderRepeat:n.row.isHeaderRepeat,nestingDepth:n.nestingDepth,edgeX:c,sheetY:f.contentBox.y+a.box.y+r}}let s=a.columnEdges.at(-1);if(Math.abs(t-s)<=mo){let d=a.columnEdges.length-2,c=Ia(n.row,d);if(!c)return null;let u=o.pages[n.pageIndex];return {kind:"rightEdge",pageIndex:n.pageIndex,sourceRevision:e.sourceRevision,tableId:a.tableId,rowId:n.row.id,gridColumnId:c,isHeaderRepeat:n.row.isHeaderRepeat,nestingDepth:n.nestingDepth,edgeX:s,sheetY:u.contentBox.y+a.box.y+r}}return null}function FO(e,n,t,r,o=0,a){let i=a??Pa(r,t),l=i>=0?o:0,s=null,d=-1,c=-1,u=p=>{if(!p)return;let f=Ew[p.kind];p.nestingDepth<d||p.nestingDepth===d&&f<=c||(d=p.nestingDepth,c=f,s=p);};for(let p of e.occurrences){if(i>=0&&p.pageIndex!==i)continue;let f=Mw(r,p,n,t,l);if(!f||(u(Nw(e,p,f.x,f.y,r)??{kind:"tableBody",pageIndex:p.pageIndex,sourceRevision:e.sourceRevision,tableId:p.table.tableId,nestingDepth:p.nestingDepth,editable:p.editable}),!p.editable))continue;let m=p.row.box.y-p.table.box.y;f.x<=ic&&Math.abs(f.y-(m+p.row.box.height/2))<=p.row.box.height/2+ic&&u({kind:"insertRow",pageIndex:p.pageIndex,sourceRevision:e.sourceRevision,tableId:p.table.tableId,rowId:p.row.id,isHeaderRepeat:p.row.isHeaderRepeat,nestingDepth:p.nestingDepth});for(let g=0;g<p.table.columnEdges.length-1;g+=1){let h=p.table.columnEdges[g],y=p.table.columnEdges[g+1],x=(h+y)/2;if(Math.abs(f.x-x)>(y-h)/2+2||f.y>dg)continue;let v=Ia(p.row,g);if(v){u({kind:"insertColumn",pageIndex:p.pageIndex,sourceRevision:e.sourceRevision,tableId:p.table.tableId,rowId:p.row.id,gridColumnId:v,isHeaderRepeat:p.row.isHeaderRepeat,nestingDepth:p.nestingDepth});break}}}return s}var ug=1048576;function lc(e=ug){let n=e|0;return {cellsRemaining:n>0?n:0}}function sc(e,n,t,r){let o=new Map,a=new Map,i=r?.pageFragment===true,l=new Set,s=i,c=f=>{let m=a.get(f);m&&(o.set(m.id,m.span),a.delete(f));},u=()=>t!==void 0&&t.cellsRemaining<=0,p=()=>{for(let f of [...a.keys()])c(f);};for(let f of e){if(u()){p();break}s&&f.isHeaderRepeat!==true&&(s=false,p(),l?.clear());let m=new Set,g=false;for(let h of f.cells){if(t){if(t.cellsRemaining<=0){g=true;break}t.cellsRemaining-=1;}let y=Math.max(0,Math.min(h.gridColumn|0,1023));if(m.add(y),h.vMergeContinue){let x=a.get(y);x?x.span+=1:l&&!l.has(y)&&(a.set(y,{id:h.id,span:1}));}else c(y),a.set(y,{id:h.id,span:1});l?.add(y);}if(g){p();break}for(let h of [...a.keys()])m.has(h)||c(h);}return p(),o}function pg(e,n,t,r){let o=new Map,a=0,i=l=>{let s=co(l,n,0,t,r);if(s)for(let d of s.rows)for(let c of d.cells)for(let u of c.blocks)u.localName==="p"?o.set(u.id,a++):u.localName==="tbl"&&i(u);};for(let l of e)l.kind==="paragraph"&&l.paragraph?o.set(l.paragraph.id,a++):l.kind==="table"&&l.table&&i(l.table);return o}var bl=4096,fg=1,En=class extends Error{code;constructor(n,t){super(t),this.name="TablePaginationError",this.code=n;}};function dc(e){return e.cells.map(()=>({blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0}))}function mg(e){return e.publishAnchoredDrawings??e.collectAnchoredDrawings}function gg(e,n,t,r,o){let a=mg(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 n){for(let p of u.blocks)if(p.kind==="paragraph"&&p.paragraphId===i.paragraphId){l=p.box,d=p.lines,s=u.box;break}if(l)break}if(!l)continue;let c=s??Object.freeze({x:i.cellOriginX,y:t,width:i.cellContentWidth,height:r});a(to({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.layoutTextboxStoryFor?{layoutTextboxStory:o.layoutTextboxStoryFor}:{}}));}}function Aw(e,n,t,r){if(!(!r.onAnchorRepublish||!r.inlineDrawingLayout||!r.anchorFrameBase||!r.pageContentClip))for(let o of e){if(o.kind!=="paragraph")continue;let a=n.find(l=>l.kind==="paragraph"&&l.id===o.paragraphId);!a||a.kind!=="paragraph"||Fn(a,r.inlineDrawingLayout).length===0||r.onAnchorRepublish(o.paragraphId,to({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:t,pageClip:r.pageContentClip(),measurer:r.measurer,...r.layoutTextboxStoryFor?{layoutTextboxStory:r.layoutTextboxStoryFor}:{}}));}}function Dw(e,n){let t=mg(e),r=e.deferAnchoredDrawings;return !t&&!r?{rowDeps:e,flushDeferred:()=>{}}:{rowDeps:{...e,publishAnchoredDrawings:t,collectAnchoredDrawings:void 0,deferAnchoredDrawings:i=>{n.push(i);}},flushDeferred:(i,l,s)=>{if(n.length!==0){if(t&&!e.anchorDeferOnly)gg(n,i,l,s,e);else if(r)for(let d of n)r(d);n.length=0;}}}}function yl(e,n,t){let r=0;for(let o=n;o<t&&o<e.length;o+=1)r+=e[o];return r}function cc(e,n){return n===0?[...e]:e.map(t=>t.kind==="table"?{...t,box:{...t.box,y:t.box.y+n},rows:t.rows.map(r=>({...r,box:{...r.box,y:r.box.y+n},cells:r.cells.map(o=>({...o,box:{...o.box,y:o.box.y+n},blocks:cc(o.blocks,n)}))}))}:{...t,box:{...t.box,y:t.box.y+n},...t.shadingBox?{shadingBox:{...t.shadingBox,y:t.shadingBox.y+n}}:{},...t.bottomBorder?{bottomBorder:{...t.bottomBorder,box:{...t.bottomBorder.box,y:t.bottomBorder.box.y+n}}}:{},...t.borders?{borders:t.borders.map(r=>({...r,box:{...r.box,y:r.box.y+n}}))}:{},...t.marker?{marker:{...t.marker,box:{...t.marker.box,y:t.marker.box.y+n}}}:{},lines:t.lines.map(r=>({...r,box:{...r.box,y:r.box.y+n},spans:r.spans.map(o=>({...o,box:{...o.box,y:o.box.y+n}})),...r.drawings?{drawings:r.drawings.map(o=>Ci(o,0,n))}:{}}))})}function _w(e,n,t,r,o,a,i){let l=e.id,s=o.listItems?.get(l),{props:d,indent:c,available:u,alignment:p,spacing:f,lineSpacing:m,bottomBorder:g,borders:h,shading:y,inheritedRunProperties:x,markRunProperties:v,tabStops:C,tabStopsCacheToken:M}=fa(e,t,o.styleCascade,s,i?.tableCellStyle,true),N=Xo(C,o.defaultTabStopPt),P=N===C?M:ir(N),L=sl(s,c,o.measurer,N,u),T=o.pageExclusionZones?.()??Object.freeze([]),I=o.paragraphOrderIndex?.(l)??Number.MAX_SAFE_INTEGER,b=o.paragraphOrderIndex?kp(T,I,Y=>o.paragraphOrderIndex?.(Y)):T,O=Op(b,n,0,{left:0,right:c.left+u+c.right}),j=rt(O),ne=j?`${r.toFixed(3)}|${j}`:"",k=ur({paragraph:e,properties:[...d,...x,...v,{localName:"tabStops",attributes:{token:P}},...s?[{localName:"list",attributes:{token:s.cacheToken}}]:[]],width:u,producer:o.producer,...o.drawingTokenForParagraph?.(e)?{drawingToken:o.drawingTokenForParagraph(e)}:o.drawingLayoutToken?{drawingToken:o.drawingLayoutToken}:{},...ne?{exclusionToken:ne}:{}}),E=_i(e,l,c.left,u,o.measurer,o.cache,o.cache?k:null,x,N,o.pageContext,o.styleCascade?(Y,U)=>bt(Y,U,o.styleCascade):void 0,{lineSpacing:m,firstLineOffset:L,marginExtent:{left:0,right:c.left+u+c.right},...o.projectLink?{projectLink:o.projectLink}:{},...o.projectFieldLink?{projectFieldLink:o.projectFieldLink}:{},...o.documentProperties?{documentProperties:o.documentProperties}:{},...o.bodyPageFields?{bodyPageFields:true}:{},displayMode:o.displayMode,...o.noteMarks?{noteMarks:o.noteMarks}:{},...o.inlineDrawingLayout?{inlineDrawingLayout:o.inlineDrawingLayout}:{},contentLeft:0,contentRight:c.left+u+c.right,paragraphStartY:r,anchorCellBox:Object.freeze({x:0,y:0,width:c.left+u+c.right,height:Math.max(1,u)}),...O.length>0?{pageExclusionZones:O}:{},...o.styleCascade?{themeFonts:o.styleCascade.themeFonts}:{},markRunProperties:v}),_=i?.lineStart??0,G=i?.fragmentIndex??0,R=i?.maxBottom??Number.POSITIVE_INFINITY,z=i?.includeAfter??true,B=i?.includeBottomBorder??true,H=_===0?zr(f.before,a):0,V=n+c.left,W=_===0?Mt(h.top):0,A=[],Z=r+H+W,X=_,J=false;for(let Y=_;Y<E.length;Y+=1){let U=E[Y],le=Y===E.length-1,Ie=le&&B&&g?Mt(g):0,Se=le&&z?f.after:0,mn=O.length>0?yt(Z,U.height,O):U.exclusionSkipBefore??0;if(Z+mn+U.height+Ie+Se>R+.001)break;Z+=mn;let bn=n+c.left+(Y===0?L:0),en=Math.max(1,u-(Y===0?L:0)),Ke=U.spans.map(ye=>({...ye,range:{...ye.range,paragraphId:l},box:{...ye.box,x:ye.box.x+n,y:Z}})),sn=Ai(Ke,o.measurer,bn,en,p,le,p==="center"||p==="right"?U.width:void 0),nn=Ke.length>0&&sn.length>0?sn[0].box.x-Ke[0].box.x:p!=="left"&&p!=="both"?(()=>{let ye=en-U.width;return ye<=0?0:p==="center"?ye/2:ye})():0,Ue=Object.freeze({x:n,y:r,width:t,height:Math.max(0,R-r)}),Fe=Di(U.drawings.map(ye=>Bi(Object.freeze({...ye,paragraphId:l,x:n+ye.x,advanceStart:n+ye.advanceStart,advanceEnd:n+ye.advanceEnd,y:Z+ye.y,paintBounds:Object.freeze({...ye.paintBounds,x:n+ye.paintBounds.x,y:Z+ye.paintBounds.y}),hitBounds:Object.freeze({...ye.hitBounds,x:n+ye.hitBounds.x,y:Z+ye.hitBounds.y})}),Ue)),nn);A.push({id:o.nextLineId(l,U.start,Y),range:{paragraphId:l,start:U.start,end:U.end},spans:sn,...Fe.length>0?{drawings:Fe}:{},box:{x:n+c.left,y:Z,width:u,height:U.height},contentX:sn[0]?.box.x??bn+nn,baseline:U.baseline,leading:U.leading,trailingSpacing:U.trailingSpacing,...U.deletedRanges?{deletedRanges:U.deletedRanges}:{}}),Z+=U.height,X=Y+1,J=true;}if(!J)return {fragment:null,bottom:r,spaceAfter:a,nextLineIndex:_,complete:false,fitted:false};let Q=X>=E.length,se=A[0].box.y,be=Z,he=[],Re,fe=se,Je=be,xe=h.left?Rn(h.left):0,Ge=h.right?Rn(h.right):0,pn=h.left?V-h.left.spacePt-xe:V,ln=h.right?V+u+h.right.spacePt+Ge:V+u,He=Math.max(ln-pn,0);if(W>0&&h.top){let Y=Rn(h.top),U=se-h.top.spacePt-Y;he.push({side:"top",edge:h.top,box:{x:pn,y:U,width:He,height:Y}}),fe=U;}if(Q&&B&&g){let Y=Rn(g),U=be+g.spacePt,le={x:pn,y:U,width:He,height:Y};Re={edge:g,box:le},he.push({side:"bottom",edge:g,box:le}),Je=U+Y;}let vt=Math.max(Je-fe,0);if(h.left&&he.push({side:"left",edge:h.left,box:{x:V-h.left.spacePt-xe,y:fe,width:xe,height:vt}}),h.right&&he.push({side:"right",edge:h.right,box:{x:V+u+h.right.spacePt,y:fe,width:Ge,height:vt}}),h.bar){let Y=Rn(h.bar);he.push({side:"bar",edge:h.bar,box:{x:V-h.bar.spacePt-Y,y:se,width:Y,height:Math.max(be-se,0)}});}let Xn=Q&&z?f.after:0,ve=Je+Xn,ze=y===void 0?void 0:h.left||h.right?{x:pn,y:fe,width:He,height:Math.max(Je-fe,0)}:Go(A,V,u),Bn=Q&&o.displayMode==="all-markup",te=Bn?qr(e):[],We=Bn?na(e):null,Xe=_===0?dl(s,o.measurer,A[0]?{y:A[0].box.y,height:A[0].box.height}:void 0,n):void 0,F=Gi(e),S=F?al(A,ol(F)):A,K={kind:"paragraph",id:`${l}#f${G}`,paragraphId:l,fragmentIndex:G,range:{paragraphId:l,start:S[0].range.start,end:S[S.length-1].range.end},props:d,spacing:{before:H,after:Xn},indent:c,...Re?{bottomBorder:Re}:{},...he.length>0?{borders:he}:{},...y===void 0?{}:{shading:y},...ze===void 0?{}:{shadingBox:ze},...Xe?{marker:Xe}:{},...Pi(te,We),lines:S,box:{x:V,y:r,width:u,height:ve-r}};if(o.inlineDrawingLayout&&o.anchorFrameBase&&o.pageContentClip){let Y=Object.freeze({x:n,y:r,width:t,height:Math.max(0,R-r)}),U=K.box,le={paragraph:e,paragraphId:l,paragraphBox:U,lines:S};o.deferAnchoredDrawings?o.deferAnchoredDrawings({...le,cellOriginX:n,cellContentWidth:t}):o.collectAnchoredDrawings&&o.collectAnchoredDrawings(to({paragraph:e,paragraphId:l,paragraphBox:U,lines:S,drawingLayout:o.inlineDrawingLayout,frameBase:o.anchorFrameBase(),columnBox:o.columnBoxForParagraph?.(U)??U,cellBox:Y,pageClip:o.pageContentClip(),measurer:o.measurer,...o.layoutTextboxStoryFor?{layoutTextboxStory:o.layoutTextboxStoryFor}:{}}));}return {fragment:K,bottom:ve,spaceAfter:Xn,nextLineIndex:X,complete:Q,fitted:true}}function hr(e,n,t,r,o,a){let i=hg(e,n,t,r,Number.POSITIVE_INFINITY,o,a,{blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0});return {blocks:i.blocks,bottom:i.bottom}}function hg(e,n,t,r,o,a,i,l,s){let d=[],c=r,u=l.previousSpaceAfter,p=l.blockIndex,f=l.lineIndex,m=l.paragraphFragmentIndex,g=false,h=false;for(;p<e.length;){let y=e[p];if(y.kind==="table"){f!==0&&(f=0),u=0;let v=jw(y,n,t,c,a+1,i);if(!v){p+=1;continue}if(v.bottom>o+.001){h=!g;break}d.push(v.fragment),c=v.bottom,g=true,p+=1,f=0;continue}if(y.kind!=="paragraph"){p+=1,f=0;continue}let x=_w(y,n,Math.max(1,t-n),c,i,u,{lineStart:f,fragmentIndex:m,maxBottom:o,includeAfter:true,includeBottomBorder:true,...s?{tableCellStyle:s}:{}});if(!x.fitted||!x.fragment)break;if(d.push(x.fragment),c=x.bottom,g=true,x.complete)u=x.spaceAfter,p+=1,f=0,m=0;else return {blocks:d,bottom:c,cursor:{blockIndex:p,lineIndex:x.nextLineIndex,previousSpaceAfter:0,paragraphFragmentIndex:m+1},complete:false,fitted:true,nestedSplitBlocked:false}}return {blocks:d,bottom:c,cursor:{blockIndex:p,lineIndex:f,previousSpaceAfter:u,paragraphFragmentIndex:m},complete:p>=e.length,fitted:g,nestedSplitBlocked:h}}function yg(e,n){return {top:e.top+mr(n.top),right:e.right+mr(n.right),bottom:e.bottom+mr(n.bottom),left:e.left+mr(n.left)}}function Hw(e,n,t){return {top:n?{state:"none"}:e.top,left:e.left,bottom:t?{state:"none"}:e.bottom,right:e.right}}function bg(e,n,t){return !n&&!t?e:{...e,cells:e.cells.map(r=>({...r,borders:Hw(r.borders,n,t)}))}}function va(e,n,t,r,o,a,i,l=0){let s=uc(e,n,t,r,Number.POSITIVE_INFINITY,o,false,a,i,dc(e),l);return {record:s.record,bottom:s.bottom}}function uc(e,n,t,r,o,a,i,l,s,d,c=0){let u=yl(n,0,n.length),p=Number.isFinite(c)&&c>0?c/2:0,f=s.measurer.lineMetrics(Qn).height,m=e.height,g=m.rule==="exact"?m.valuePt:void 0,h=m.rule==="atLeast"?m.valuePt:void 0,y=[],{rowDeps:x,flushDeferred:v}=Dw(s,y),C=a&&s.pageOccurrenceKey?{...x,nextLineId:(k,E,_)=>x.nextLineId(k,E,_,s.pageOccurrenceKey())}:x,M=g===void 0?o:Math.min(o,r+Math.max(0,g)),N=[],P=false,L=false,T=r;for(let k=0;k<e.cells.length;k+=1){let E=e.cells[k],_=d[k]??{blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0},G=E.gridSpan,R=E.gridColumn,z=t+yl(n,0,R),B=yl(n,R,Math.min(R+G,n.length))||u,H=Math.min(p,Math.max((B-fg)/2,0)),V=z+H,W=Math.max(B-2*H,fg),A=yg(E.margins,E.borders),Z=i?mr(E.borders.top):A.top,X=r+Z,J=M-A.bottom,Q=[],se=X,be=_,he=true,Re=false,fe=false;if(!E.vMergeContinue)if(J<X+.001)he=_.blockIndex>=E.blocks.length;else {let xe=hg(E.blocks,V+A.left,V+W-A.right,X,J,l,C,_,E.styleFormatting);Q=xe.blocks,se=xe.bottom,be=xe.cursor,he=xe.complete,Re=xe.fitted,fe=xe.nestedSplitBlocked,Re&&(P=true),fe&&(L=true);}let Je=Math.min(M,Re?se+A.bottom:r+Z+f+A.bottom);Je>T&&(T=Je),N.push({cell:E,x:V,width:W,gridColumn:R,blocks:Q,contentTop:X,contentBottom:se,insets:{...A,top:Z},nextCursor:be,complete:E.vMergeContinue?true:he,fitted:Re,nestedSplitBlocked:fe});}T=Math.min(M,Math.max(T,r));for(let k of N){let E=k.fitted?k.contentBottom+k.insets.bottom:r+k.insets.top+f+k.insets.bottom;E>T&&E<=M+.001&&(T=E);}T=Math.min(M,T);let I=false;if(g!==void 0){let k=r+g;k<=o+.001?(T=k,I=true):T=Math.min(o,T);}else if(h!==void 0){let k=r+h;N.every(_=>_.complete)&&k<=o+.001&&k>T&&(T=k);}T=Math.min(o,T);let b=Math.max(0,T-r),O=N.map(k=>{let E=k.blocks,_=I?true:k.complete;if(!k.cell.vMergeContinue&&_&&k.cell.vAlign!=="top"&&E.length>0){let G=k.contentBottom-k.contentTop,R=b-k.insets.top-k.insets.bottom-G;if(R>0){let z=k.cell.vAlign==="center"?R/2:R;E=cc(E,z);}}return {id:k.cell.id,gridColumn:k.gridColumn,...k.cell.gridColumnId?{gridColumnId:k.cell.gridColumnId}:{},gridSpan:k.cell.gridSpan,vMergeContinue:k.cell.vMergeContinue,...k.cell.vMergeContinue?{paintInert:true}:{},rowSpan:1,...k.cell.shading===void 0?{}:{shading:k.cell.shading},blocks:E,box:{x:k.x,y:r,width:k.width,height:b}}}),j=I||N.every(k=>k.complete)?null:N.map(k=>k.nextCursor),ne=I||N.every(k=>k.complete);return v(O,r,b),{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,isHeaderRepeat:a,...i?{isContinuation:true}:{},cells:O,box:{x:t,y:r,width:u,height:b}},bottom:T,remainder:ne?null:j,fitted:P||e.cells.every(k=>k.vMergeContinue)||I,nestedSplitBlocked:L}}function zw(e){return {...e,collectAnchoredDrawings:void 0,publishAnchoredDrawings:void 0,deferAnchoredDrawings:void 0,onAnchorRepublish:void 0,onAnchorShift:void 0,anchorDeferOnly:true}}function fc(e,n,t,r,o,a=0){let i=0,l={...zw(o),pageExclusionZones:void 0,nextLineId:()=>`probe-${i++}`};return va(e,n,t,0,false,r,l,a).record.box.height}function pc(e,n,t,r,o,a,i,l){if(e.length===0)return [];let s=new Map;for(let h of t)for(let y of h.cells)s.set(y.id,y);let d=sc(e,a,o,{pageFragment:true}),c=e.map((h,y)=>({...h,cells:h.cells.map(x=>{let v=d.get(x.id);if(x.vMergeContinue&&v===void 0)return {...x,paintInert:true,rowSpan:1,borders:{},blocks:[]};let C=x.vMergeContinue,M=v??1,N=x.box.height;if(M>1){let I=e[y+M-1];N=I.box.y+I.box.height-x.box.y;}let P=s.get(x.id),L=x.blocks;if(P&&P.vAlign!=="top"&&L.length>0){let I=yg(P.margins,P.borders),b=Number.POSITIVE_INFINITY,O=Number.NEGATIVE_INFINITY;for(let j of L)b=Math.min(b,j.box.y),O=Math.max(O,j.box.y+j.box.height);if(Number.isFinite(b)&&Number.isFinite(O)){let j=N-I.top-I.bottom-(O-b),k=x.box.y+I.top+(j>0?P.vAlign==="center"?j/2:j:0)-b;if(Math.abs(k)>.001){L=cc(L,k);for(let E of L)E.kind==="paragraph"&&i?.(E.paragraphId,k);}}}let T=Object.freeze({x:x.box.x,y:x.box.y,width:x.box.width,height:N});return P&&l&&(M>1||P.vAlign!=="top"&&L.length>0)&&Aw(L,P.blocks,T,l),{...x,...C?{vMergeContinue:false,paintInert:false}:{},rowSpan:M,blocks:L,box:{...x.box,height:N}}})})),u=c.map(h=>h.cells.map(y=>{let x=s.get(y.id);return {gridColumn:y.gridColumn,gridSpan:y.gridSpan,vMergeContinue:y.vMergeContinue,borders:x?.borders??{top:{state:"omitted"},left:{state:"omitted"},bottom:{state:"omitted"},right:{state:"omitted"}},mergeRowSpan:y.rowSpan??1}})),p=n.columnWidthsPt.length,f=n.tableBorders,m={columnWidthsPt:n.columnWidthsPt,rowBands:c.map(h=>({y:h.box.y,height:h.box.height})),cellBoxes:c.map(h=>h.cells.map(y=>({width:y.box.width,height:y.box.height})))},g=Nd(u,f,p,m,void 0,r);return c.map((h,y)=>({...h,cells:h.cells.map((x,v)=>{let C=g[y][v];return x.paintInert||x.vMergeContinue?{...x,borders:{},paintInert:true}:{...x,borders:C}})}))}function jw(e,n,t,r,o,a){if(o>=rl)return null;let i=Math.max(1,t-n),l=co(e,i,o,a.styleCascade,a.displayMode);if(!l||l.rows.length===0)return null;let s=[],d={...a,publishAnchoredDrawings:void 0,collectAnchoredDrawings:void 0,anchorDeferOnly:true,deferAnchoredDrawings:h=>{s.push(h);}},c=n+ba(l,i),u=[],p=r;for(let h of l.rows){let y=va(h,l.columnWidthsPt,c,p,false,o,d,l.cellSpacingPt);u.push(y.record),p=y.bottom;}let f=pc(u,l,l.rows,a.borderOwnershipBudget,a.vMergeResolveBudget,void 0,void 0,void 0);for(let h of s)for(let y of f)if(y.cells.some(v=>v.blocks.some(C=>C.kind==="paragraph"&&C.paragraphId===h.paragraphId))){gg([h],y.cells,y.box.y,y.box.height,a);break}let m=yl(l.columnWidthsPt,0,l.columnWidthsPt.length),g=new Map;return {fragment:hl({kind:"table",id:`${e.id}#f0`,tableId:e.id,fragmentIndex:0,rows:f,box:{x:c,y:r,width:m,height:p-r}},l.columnWidthsPt,o,g),bottom:p}}function xg(e){let n=e.picture;return n?.embeddedRelationshipId?`embed:${e.ownerPartName}:${n.embeddedRelationshipId}`:n?.linkedRelationshipId?`link:${e.ownerPartName}:${n.linkedRelationshipId}`:`nonpicture:${e.drawingNodeId}`}function Sg(e){let n=new Map,t=[{node:e.root,depth:0}],r=0;for(;t.length>0;){let o=t.pop();if(r+=1,r>chunk2GSRLGUI_cjs._a||o.depth>chunk2GSRLGUI_cjs.Ya.maxDrawingDepth)return null;let{node:a}=o;if(a.kind==="drawing"||chunk2GSRLGUI_cjs.ab(a)){n.set(a.id,a);continue}if("children"in a)for(let i=a.children.length-1;i>=0;i-=1)t.push({node:a.children[i],depth:o.depth+1});}return n}function mc(e){let n=e.position,t=e.anchor,r=e.picture,o=e.wrapGeometry;return [e.drawingNodeId,e.ownerPartName,e.kind,e.hidden?"1":"0",String(e.extentEmu.cx),String(e.extentEmu.cy),String(e.effectExtentEmu.top),String(e.effectExtentEmu.right),String(e.effectExtentEmu.bottom),String(e.effectExtentEmu.left),e.compatibilityBranchNodeId??"",t?.simplePos?"sp":"pv",t?String(t.relativeHeight):"",t?t.layoutInCell?"1":"0":"",r?[String(r.crop.left),String(r.crop.top),String(r.crop.right),String(r.crop.bottom),String(r.transform.rotationDegrees),r.transform.flipHorizontal?"1":"0",r.transform.flipVertical?"1":"0",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??""].join(":"):"",o?[o.element,o.textSide,String(o.distancesEmu.top),String(o.distancesEmu.right),String(o.distancesEmu.bottom),String(o.distancesEmu.left),String(o.polygon.length)].join(":"):"",n?[n.horizontal.relativeFrom,n.horizontal.align??"",String(n.horizontal.offsetEmu??""),n.vertical.relativeFrom,n.vertical.align??"",String(n.vertical.offsetEmu??""),String(n.simplePosition.xEmu),String(n.simplePosition.yEmu)].join(":"):""].join("|")}function xl(e){switch(e.kind){case "ready":return `ready:${e.resourceKey}:${e.contentId}:${e.pixelWidth}x${e.pixelHeight}`;case "pending":return `pending:${e.resourceKey}`;case "external":return `external:${e.relationshipId}:${e.sinkSafe?"1":"0"}`;case "missing":return "missing";case "unrenderable":return `unrenderable:${e.reason}`;default:return e.kind}}var Gw=1;function gc(e,n){if(e.kind==="drawing"||chunk2GSRLGUI_cjs.ab(e)){n.push(e.id);return}if("children"in e)for(let t of e.children)gc(t,n);}function Ww(e){if(e.kind!=="paragraph")return [];let n=[];for(let t of e.children)gc(t,n);return Object.freeze(n)}function Xw(e){let{ownerPartName:n,part:t,pkg:r,lookup:o,onResourceSettled:a,rememberReadyHandle:i,forgetReadyHandle:l}=e,s=false,d=0,c=new Map,u=new Set,p=new Map,f=new WeakMap,m=new WeakMap,g=0,h=chunk2GSRLGUI_cjs.$a(r,n),y=chunk2GSRLGUI_cjs.eb(t,{resolveRelationship:h}),x=Sg(t),v=(T,I)=>{if(s||u.has(I))return;u.add(I);let b=d;o.resolveForProjection(T).then(O=>{s||b!==d||(c.set(I,O),O.kind==="ready"&&i(O.validatedHandle),g+=1,p.set(I,g),a(n));}).catch(()=>{s||b!==d||(c.set(I,Object.freeze({kind:"unrenderable",partName:null,mime:"unknown",reason:"decode-failed"})),g+=1,p.set(I,g),a(n));}).finally(()=>{u.delete(I);});},C=T=>{let I=xg(T),b=c.get(I);if(b)return b;let O=T.picture?.linkedRelationshipId;if(O){let ne=o.resolveLinked(n,O);return c.set(I,ne),g+=1,p.set(I,g),ne}let j=Object.freeze({kind:"pending",resourceKey:I});return c.set(I,j),g+=1,p.set(I,g),v(T,I),j},M=T=>y.get(T)??null,N=Object.freeze({ownerPartName:n,projectionForAtom:M,project:T=>M(T.id),resourceOf:C}),P=T=>{let I=m.get(T);if(I)return I;let b=Ww(T),O=null,j=(k,E)=>{if(!(E>=Gw))for(let _ of k){let G=y.get(_)?.textboxStory;if(!G)continue;let R=[];if(gc(G.content,R),R.length!==0){O||(O=[...b]);for(let z of R)O.push(z);j(R,E+1);}}};j(b,0);let ne=O??b;return m.set(T,ne),ne};return {context:N,cacheTokenForPart:()=>`${n}|${g}|${d}|${y.size}`,drawingTokenForParagraph:T=>{let I=f.get(T);if(I?.resourceEpoch===g)return I.token;let b=P(T);if(b.length===0)return f.set(T,{resourceEpoch:g,token:""}),"";let j=b.map(ne=>{let k=y.get(ne);if(!k)return `${ne}:refused`;let E=C(k);return [ne,mc(k),xl(E),String(p.get(xg(k))??0)].join("|")}).sort().join(";");return f.set(T,{resourceEpoch:g,token:j}),j},isCompatibleWith:(T,I)=>{if(T===t)return true;let b=Sg(T);if(x&&b&&x.size===b.size){let j=true;for(let[ne,k]of x)if(b.get(ne)!==k){j=false;break}if(j)return true}let O=chunk2GSRLGUI_cjs.eb(T,{resolveRelationship:chunk2GSRLGUI_cjs.$a(I,n)});if(O.size!==y.size)return false;for(let[j,ne]of y){let k=O.get(j);if(!k||mc(k)!==mc(ne))return false}return true},dispose:()=>{s=true,d+=1;for(let T of c.values())T.kind==="ready"&&l(T.validatedHandle);c.clear(),u.clear(),p.clear();}}}function ik(e){let n=e.session.packageRevision(),t=e.session.currentPackage(),r=e.resourceLookup??chunk2GSRLGUI_cjs.rb(t,{decodePort:e.decodePort}),o=new Map,a=new Map,i=new Map,l=new Map,s=f=>{i.set(f.resourceKey,f);let m=chunk2GSRLGUI_cjs.gb(f);m&&l.set(f.resourceKey,m);},d=f=>{i.delete(f.resourceKey);let m=l.get(f.resourceKey);m&&(chunk2GSRLGUI_cjs.hb(m),l.delete(f.resourceKey));},c=(f,m)=>{let h=m.currentPackage().parts.get(f)??a.get(f);if(h)return h;if(f===m.part().name)return m.part();throw new Error(`Missing inline drawing part ${f}`)},u=(f,m)=>{let g=o.get(f);if(g)return g;let h=c(f,m);a.set(f,h);let y=Xw({ownerPartName:f,part:h,pkg:m.currentPackage(),lookup:r,onResourceSettled:()=>e.onResourcesChanged(),rememberReadyHandle:s,forgetReadyHandle:d});return o.set(f,y),y},p=f=>{let m=f.currentPackage();if(m.partBytes===t.partBytes&&m.relationships===t.relationships&&m.contentTypes===t.contentTypes){for(let[h,y]of o){let x=m.parts.get(h)??(h===f.part().name?f.part():void 0);if(x&&y.isCompatibleWith(x,m)){a.set(h,x);continue}y.dispose(),o.delete(h),a.delete(h);}n=f.packageRevision(),t=m;return}for(let h of o.values())h.dispose();o.clear(),a.clear();for(let h of l.values())chunk2GSRLGUI_cjs.hb(h);l.clear(),i.clear(),e.resourceLookup||r.dispose(),n=f.packageRevision(),t=m,r=e.resourceLookup??chunk2GSRLGUI_cjs.rb(m,{decodePort:e.decodePort});};return Object.freeze({get bodyContext(){return u(e.session.part().name,e.session).context},contextForPart(f){return u(f,e.session).context},cacheTokenForPart(f){return u(f,e.session).cacheTokenForPart()},drawingTokenForParagraph(f,m){return u(m,e.session).drawingTokenForParagraph(f)},mintValidatedBytes(f,m){let g=i.get(f.resourceKey);return !g||g.contentId!==f.contentId?null:chunk2GSRLGUI_cjs.fb(f,m)},sync(f){f.packageRevision()!==n&&p(f);},dispose(){for(let f of o.values())f.dispose();o.clear(),a.clear();for(let f of l.values())chunk2GSRLGUI_cjs.hb(f);l.clear(),i.clear(),e.resourceLookup||r.dispose();}})}function wg(e,n){let t=[],r=o=>{if(o.kind==="paragraph"){let a=n(o);a&&t.push(a);return}if("children"in o)for(let a of o.children)r(a);};return r(e),t.sort().join(";")}function $w(e){let n=t=>{if(t.kind==="textValue"||chunk2GSRLGUI_cjs.dc(t)||chunk2GSRLGUI_cjs.bc(t)!==null)return false;if(t.kind==="text"||t.localName==="t"){for(let r of t.children)if(r.kind==="textValue"&&r.value.trim().length>0)return true;return false}for(let r of t.children)if(r.kind!=="textValue"&&n(r))return true;return false};for(let t of e.children)if(t.kind!=="textValue"&&n(t))return true;return false}function vg(e,n){for(let t of n.resultParagraphIds){let r=chunk2GSRLGUI_cjs.Fa(e,t);if(!(!r||r.kind==="textValue"||r.kind!=="paragraph")&&$w(r))return true}return false}var Pg=new WeakMap,Rg=new WeakMap,Ig=new WeakMap;function hc(e){let n=Pg.get(e);if(n)return n;let t=new Set;for(let r of chunk2GSRLGUI_cjs.Ac(e))t.add(r.beginParagraphId),t.add(r.endParagraphId);return Pg.set(e,t),t}function yc(e){let n=Rg.get(e);if(n)return n;let t=new Set;for(let r of chunk2GSRLGUI_cjs.Ac(e))vg(e,r)||t.add(r.beginParagraphId);return Rg.set(e,t),t}function bc(e){let n=Ig.get(e);if(n)return n;let t=new Set;for(let r of chunk2GSRLGUI_cjs.Ac(e))if(!vg(e,r))for(let o of r.resultParagraphIds)t.add(o);return Ig.set(e,t),t}var Vw=4,Tg=256;function Yw(e){return `txbx-${e}`}function Sl(e,n){let t=e.textboxStory;if(!t)return null;let r=an(e.extentEmu.cx),o=an(e.extentEmu.cy),a=an(t.insetsEmu.left),i=an(t.insetsEmu.right),l=an(t.insetsEmu.top),s=an(t.insetsEmu.bottom),d=Math.max(1,r-a-i),c=Math.max(0,o-l-s),u=an(t.strokeWidthEmu),p={fillHex:t.fillHex,strokeHex:t.strokeHex,strokeWidthPt:u,contentWidth:d,contentHeight:c};if((n.depth??0)>=Vw)return {fragments:[],flowHeight:0,contentOffset:{x:a,y:l},...p,fallbackReason:"textbox-nesting-limit"};let m=em(t.content,n.displayMode),g=Yw(e.drawingNodeId),h=0,y=hr(m,0,d,0,0,{measurer:n.measurer,cache:n.cache,producer:`${n.producer}|txbx:${e.drawingNodeId}`,nextLineId:()=>`${g}-line-${h++}`,styleCascade:n.styleCascade,...n.pageContext?{pageContext:n.pageContext}:{},...n.documentProperties?{documentProperties:n.documentProperties}:{},...n.defaultTabStopPt!==void 0?{defaultTabStopPt:n.defaultTabStopPt}:{},...n.displayMode?{displayMode:n.displayMode}:{},...n.inlineDrawingLayout?{inlineDrawingLayout:n.inlineDrawingLayout}:{},...n.drawingTokenForParagraph?{drawingTokenForParagraph:n.drawingTokenForParagraph}:{}}),x=y.blocks,v=y.bottom,C;if(x.length>Tg){x=x.slice(0,Tg);let P=x[x.length-1];v=P?P.box.y+P.box.height:0,C="textbox-fragment-limit";}if(v>c+.001){let P=x.filter(L=>L.box.y<c-.001);P.length<x.length&&(x=P,C=C??"textbox-height-clip");}let M=Math.max(0,c-v),N=t.verticalAnchor==="center"?M/2:t.verticalAnchor==="bottom"?M:0;return {fragments:x,flowHeight:v,contentOffset:{x:a,y:l+N},...p,...C?{fallbackReason:C}:{}}}var Kw=128;function Uw(e){return chunkJDHTCMFA_cjs.y(chunk2GSRLGUI_cjs.xa(e))}function Zw(e){let n=Math.max(1,Math.floor(e)),t=new Map;return {get(r){let o=t.get(r);if(o!==void 0)return t.delete(r),t.set(r,o),o},set(r,o){for(t.has(r)&&t.delete(r),t.set(r,o);t.size>n;){let a=t.keys().next();if(a.done)break;t.delete(a.value);}},get size(){return t.size}}}function qw(e,n,t,r,o,a,i,l=Kw,s,d=fn,c,u,p,f,m){let g=Us(e.root),h=Zw(l),y=xt(e,d),x=Uw(e),v,C=M=>{let N=Dt(g)||c?M:void 0,P=N?.pageNumber??f?.pageNumber??1,L=ed(N,g)+(c?`|pn:${P}`:"");if(L===""){if(v)return v}else {let k=h.get(L);if(k)return k}let T=0,I=[],b=()=>{let k=N?.pageNumber??f?.pageNumber??1,E=f?.pageWidth??n,_=f?.pageHeight??Math.max(1,n),G=f?.marginLeft??0,R=f?.marginRight??0,z=f?.marginTop??0,B=f?.marginBottom??0,H=Math.max(1,_-z-B);return Object.freeze({pageNumber:k,pageWidth:E,pageHeight:_,marginLeft:G,marginRight:R,marginTop:z,marginBottom:B,contentWidth:n,contentHeight:H,physicalContentHeight:H,ownerPartName:e.name,storyKind:e.name.includes("ftr")?"footer":"header"})},O=Object.freeze([]),j;if(c){let k=false;for(let E=0;E<fr;E+=1){I.splice(0,I.length),T=0,j=hr(y,0,Math.max(1,n),0,0,{measurer:t,cache:o,producer:r+L+(d===fn?"":`|rev:${d}`),nextLineId:()=>`hf-${e.name}-line-${T++}`,styleCascade:a,pageContext:N,...s!==void 0?{defaultTabStopPt:s}:{},displayMode:d,...m?{documentProperties:m}:{},inlineDrawingLayout:c,anchorFrameBase:b,pageContentClip:()=>oa(b()),layoutTextboxStoryFor:G=>Sl(G,{measurer:t,producer:r+L+(d===fn?"":`|rev:${d}`),cache:o,styleCascade:a,...N?{pageContext:N}:{},...s!==void 0?{defaultTabStopPt:s}:{},displayMode:d,...m?{documentProperties:m}:{},inlineDrawingLayout:c,...u?{drawingTokenForParagraph:u}:{}}),collectAnchoredDrawings:G=>{I.push(...G);},columnBoxForParagraph:G=>Object.freeze({x:0,y:G.y,width:n,height:G.height}),pageExclusionZones:()=>O,...u?{drawingTokenForParagraph:u}:p?{drawingLayoutToken:p}:{}});let _=Id(I,c,0,n);if(_.length===0){k=true,O=_;break}if(E>0&&rt(O)===rt(_)){k=true,O=_;break}O=_;}if(!k)throw new ro(`header/footer exclusion reflow did not converge within ${fr} passes`)}else j=hr(y,0,Math.max(1,n),0,0,{measurer:t,cache:o,producer:r+L+(d===fn?"":`|rev:${d}`),nextLineId:()=>`hf-${e.name}-line-${T++}`,styleCascade:a,pageContext:N,...s!==void 0?{defaultTabStopPt:s}:{},displayMode:d,...m?{documentProperties:m}:{}});let ne={partName:e.name,contentKey:x,fragments:j.blocks,flowHeight:j.bottom,pageFieldNeeds:g,...I.length>0?{anchoredDrawings:Object.freeze([...I])}:{},withPageContext:k=>!Dt(g)&&!ne.anchoredDrawings?.length?v??ne:C(k)};return L===""?v=ne:h.set(L,ne),ne};return C(i)}function xc(e,n,t){let r=t-e.box.y,o=u=>({...u,y:u.y+r}),a=u=>{if(!u)return;let p={...u,box:o(u.box),...u.anchoredDrawings?{anchoredDrawings:u.anchoredDrawings}:{}};if(!u.pageFieldProjector)return p;let f=u.pageFieldProjector;return {...p,pageFieldProjector:m=>{let g=f(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(p=>({...p,box:o(p.box)}))}},l=a(e.header),s=a(e.footer),d=i(e.footnotes),c=i(e.endnotes);return {...e,id:`page-${n}`,index:n,box:o(e.box),contentBox:o(e.contentBox),...l?{header:l}:{},...s?{footer:s}:{},...d?{footnotes:d}:{},...c?{endnotes:c}:{}}}function Sc(e){let n=[],t=r=>{if(r.kind==="table"){for(let o of r.rows)for(let a of o.cells)for(let i of a.blocks)t(i);return}for(let o of r.lines)for(let a of o.drawings??[])n.push(xl(a.resource));};for(let r of e.anchoredDrawings??[])n.push(xl(r.resource));for(let r of e.fragments)t(r);return n.length===0?"":`!${n.join("!")}`}var wl=4096,$t=20,Wn=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 wc(e,n,t=31680*2){if(e===void 0||!/^-?\d{1,7}$/.test(e))return n;let r=Number(e);return !Number.isFinite(r)||r<=0||r>t?n:r}function yr(e,n){if(e===void 0||!/^-?\d{1,7}$/.test(e))return n;let t=Number(e);return !Number.isFinite(t)||Math.abs(t)>31680?n:t}function Cg(e,n,t=31680){if(e===void 0||!/^\d{1,7}$/.test(e))return n;let r=Number(e);return !Number.isFinite(r)||r<0||r>t?n:r}var Ye=(e,n)=>{if(!(e.kind==="textValue"||!("attributes"in e))){for(let t of e.attributes??[])if(t.localName===n)return t.value}},br=(e,n)=>{if(e.kind!=="textValue"){for(let t of e.children??[])if(t.kind!=="textValue"&&"localName"in t&&t.localName===n)return t}};function Og(e,n,t){let r=Ye(e,n);return r===void 0?t:r==="0"||r==="false"||r==="off"||r==="no"?false:r==="1"||r==="true"||r==="on"||r==="yes"?true:t}function Jw(e){if(!e)return 1;let n=Ye(e,"num");return !n||!/^\d{1,7}$/.test(n)?1:Math.max(1,Math.min(12,Number(n)))}function Qw(e,n,t){if(!e||e.kind==="textValue")return [];let r=[];for(let o of e.children??[]){if(r.length>=n||o.kind==="textValue"||!("localName"in o)||o.localName!=="col")continue;let a=r.length;r.push({widthTwips:wc(Ye(o,"w"),1,31680),gapTwips:a===n-1?0:Cg(Ye(o,"space"),t)});}return r}function eP(e){let n=e?br(e,"type"):void 0,t=n?Ye(n,"val"):void 0;return t==="continuous"||t==="evenPage"||t==="oddPage"||t==="nextColumn"?t:"nextPage"}var nP=new Set(["hyphen","period","colon","emDash","enDash"]);function Bg(e){let n=br(e,"pgNumType");if(!n||n.kind==="textValue")return;let t={},r=Ye(n,"start");if(r!==void 0&&/^-?\d{1,7}$/.test(r)){let l=Number(r);Number.isFinite(l)&&l>=0&&l<=9999&&(t.start=l);}let o=Ye(n,"fmt");o!==void 0&&o.length>0&&o.length<=64&&!/[<>&"']/.test(o)&&(t.fmt=o);let a=Ye(n,"chapStyle");if(a!==void 0&&/^\d{1,2}$/.test(a)){let l=Number(a);Number.isFinite(l)&&l>=0&&l<=9&&(t.chapStyle=l);}let i=Ye(n,"chapSep");return i!==void 0&&nP.has(i)&&(t.chapSep=i),t}function Pl(e){if(!e)return Wn;let n=br(e,"pgSz"),t=br(e,"pgMar"),r=br(e,"cols"),o=Wn,a=n?Ye(n,"orient"):void 0,i=n?wc(Ye(n,"w"),o.pageSize.widthTwips):o.pageSize.widthTwips,l=n?wc(Ye(n,"h"),o.pageSize.heightTwips):o.pageSize.heightTwips,s=Bg(e),d=Jw(r),c=r?Cg(Ye(r,"space"),o.columns.gapTwips):o.columns.gapTwips,u=r?Og(r,"equalWidth",true):true;return {pageSize:{widthTwips:i,heightTwips:l},margins:{topTwips:t?yr(Ye(t,"top"),1440):o.margins.topTwips,rightTwips:t?yr(Ye(t,"right"),1440):o.margins.rightTwips,bottomTwips:t?yr(Ye(t,"bottom"),1440):o.margins.bottomTwips,leftTwips:t?yr(Ye(t,"left"),1440):o.margins.leftTwips,headerTwips:t?yr(Ye(t,"header"),720):o.margins.headerTwips,footerTwips:t?yr(Ye(t,"footer"),720):o.margins.footerTwips,gutterTwips:t?yr(Ye(t,"gutter"),0):o.margins.gutterTwips},columns:{count:d,gapTwips:c,equalWidth:u,separator:r?Og(r,"sep",false):false,definitions:u?[]:Qw(r,d,c)},landscape:a==="landscape"||i>l,titlePage:chunk2GSRLGUI_cjs.ta(e,"titlePg"),breakType:eP(e),...s!==void 0?{pageNumbering:s}:{}}}function tP(e){let n=t=>{if(t.kind!=="textValue"){if(t.kind==="body")return br(t,"sectPr");for(let r of t.children??[]){let o=n(r);if(o)return o}}};return n(e.root)}function Rl(e){let n=e.children.find(r=>r.kind==="paragraphProperties");if(!n)return;let t=br(n,"sectPr");return t&&t.kind!=="textValue"?t:void 0}function rP(e){let n=Lg(e);return n[n.length-1]?.properties??Wn}function Lg(e,n="all-markup"){return Fg(e,n).sections}function Fg(e,n="all-markup"){return Pc(e,xt(e,n))}var kg=chunk2GSRLGUI_cjs.He(16);function Pc(e,n){let t=kg.get(n);if(t&&t.part===e)return t.result;let r=oP(e,n);return kg.set(n,{part:e,result:r}),r}function oP(e,n){let t=[],r=0,o=false;for(let i=0;i<n.length;i+=1){let l=n[i];if(l.kind!=="paragraph")continue;let s=Rl(l);if(s){if(t.length>=wl){o=true;continue}t.push({index:t.length,properties:Pl(s),blockStart:r,blockEndExclusive:i+1}),r=i+1;}}if(o){if(t.length>0){let i=t[t.length-1];t[t.length-1]={...i,blockEndExclusive:n.length};}return {sections:t,truncated:true}}let a=tP(e);if(r<n.length||t.length===0){if(t.length>=wl){let i=t[t.length-1];return t[t.length-1]={...i,blockEndExclusive:n.length},{sections:t,truncated:true}}t.push({index:t.length,properties:Pl(a),blockStart:r,blockEndExclusive:n.length});}else if(a){if(t.length>=wl)return {sections:t,truncated:true};t.push({index:t.length,properties:Pl(a),blockStart:r,blockEndExclusive:n.length});}return {sections:t,truncated:o}}function xr(e){let n=e.pageSize.widthTwips/$t,t=e.pageSize.heightTwips/$t,r=(e.margins.leftTwips+e.margins.gutterTwips)/$t,o=e.margins.rightTwips/$t,a=e.margins.topTwips/$t,i=e.margins.bottomTwips/$t;return n-r-o<=0||t-a-i<=0?Do:{width:n,height:t,margin:{top:a,right:o,bottom:i,left:r},headerDistance:Math.max(0,e.margins.headerTwips)/$t,footerDistance:Math.max(0,e.margins.footerTwips)/$t}}function Rc(e,n){let t=Math.max(1,n),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(f=>Math.max(1,f.widthTwips/20)),l=o.slice(0,-1).map(f=>Math.max(0,f.gapTwips/20));let c=l.reduce((f,m)=>f+m,0),u=Math.max(r*1,t-c),p=i.reduce((f,m)=>f+m,0);if(p>u){let f=u/p;i=i.map(m=>Math.max(1,m*f));}}else {let c=Math.max(0,e.gapTwips/20),u=Math.min(c,Math.max(0,(t-r*1)/(r-1||1)));l=Array.from({length:Math.max(0,r-1)},()=>u);let p=Math.max(1,(t-l.reduce((f,m)=>f+m,0))/r);i=Array.from({length:r},()=>p);}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}}function aP(e,n,t){return Ta(e,n,()=>t)}function Ta(e,n,t){let r=[],o=null,a=-1,i=-1;for(let l of n){let s=t(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:ft(s.numFmt,d),displayNumber:d});}return r}function Eg(e){let n=new Map;for(let t of e)n.set(t.noteId,t.mark);return n}var go=chunk2GSRLGUI_cjs.xd,Oa=512,Ic=6,iP=1/3;function Mg(e,n){return `note-${e}-${n}`}function lP(e){if(!e)return [];let n=[];for(let t of chunk2GSRLGUI_cjs.zd(e.root)){if(n.length>=go)break;chunk2GSRLGUI_cjs.qd(t)&&n.push(t);}return n}function Ng(e,n){if(e){for(let t of chunk2GSRLGUI_cjs.zd(e.root))if(chunk2GSRLGUI_cjs.pd(t)===n)return t}}function vc(e,n,t){let r=chunk2GSRLGUI_cjs.nd(e),o=chunk2GSRLGUI_cjs.od(e);if(!r||o===null)return null;let a=chunk2GSRLGUI_cjs.ed(r,o),i=Wi(e),l=Mg(r,o),s=0,d=Math.max(1,n),c=t.maxFlowHeightPt??Number.POSITIVE_INFINITY,u=t.noteMarks?{...t.noteMarks,activeNoteKey:a}:{marks:new Map,activeNoteKey:a},p=t.ownerPartName?t.drawingsForPart?.(t.ownerPartName):void 0,f=hr(i,0,d,0,0,{measurer:t.measurer,cache:t.cache,producer:`${t.producer}|${a}`,nextLineId:()=>`${l}-line-${s++}`,styleCascade:t.styleCascade,noteMarks:u,...t.projectLink?{projectLink:t.projectLink}:{},...t.projectFieldLink?{projectFieldLink:t.projectFieldLink}:{},...t.documentProperties?{documentProperties:t.documentProperties}:{},...t.defaultTabStopPt!==void 0?{defaultTabStopPt:t.defaultTabStopPt}:{},...p?{inlineDrawingLayout:p.inlineDrawingLayout,...p.drawingTokenForParagraph?{drawingTokenForParagraph:p.drawingTokenForParagraph}:{}}:{}}),m=f.blocks,g=f.bottom,h;if(m.length>Oa){m=m.slice(0,Oa);let y=m[m.length-1];g=y?y.box.y+y.box.height:0,h="note-fragment-limit";}if(g>c){let y=[],x=0;for(let v of m){let C=v.box.y+v.box.height;if(C>c+.001&&y.length>0)break;y.push(v),x=C;}m=y,g=x,h=h??"note-height-cap";}return {noteKind:r,noteId:o,scopeId:a,noteType:chunk2GSRLGUI_cjs.pd(e),fragments:m,flowHeight:g,...h?{fallbackReason:h}:{}}}function Il(e,n,t,r){if(!e)return null;let o=chunk2GSRLGUI_cjs.Ad(e.root,n);return o?vc(o,t,{...r,ownerPartName:e.name}):null}function Ag(e,n){return "single"}function Dg(e){let n=Wi(e);if(n.length===0)return true;for(let t of n){if(t.kind!=="paragraph")return false;let r=t.children.find(o=>o.kind==="paragraphProperties");if(Object.keys(dt(r)).length>0||!sP(t))return false}return true}function sP(e){for(let n of e.children)if(n.kind!=="textValue"&&n.kind!=="paragraphProperties"){if(n.kind==="run"){if(!dP(n))return false;continue}return false}return true}function dP(e){for(let n of e.children)if(n.kind!=="textValue"&&n.kind!=="runProperties"&&!(chunk2GSRLGUI_cjs.ld(n)||chunk2GSRLGUI_cjs.md(n)||chunk2GSRLGUI_cjs.kd(n))){if(n.kind==="text"){if(n.children.map(r=>r.value).join("").trim().length>0)return false;continue}return false}return true}function ka(e,n,t,r,o,a){let i=Ag(),l=Ng(e,n);if(l){if(Dg(l))return {kind:n,fragments:[],flowHeight:Ic,synthetic:false,ruleStyle:i};let s=vc(l,t,{...r,...e?{ownerPartName:e.name}:{}});if(s&&s.flowHeight>0){let d=a??Number.POSITIVE_INFINITY;return s.flowHeight>d+.001?{kind:n,fragments:[],flowHeight:Ic,synthetic:true,ruleStyle:i,fallbackReason:"note-separator-height-cap"}:{kind:n,fragments:s.fragments,flowHeight:s.flowHeight,synthetic:false}}}return {kind:n,fragments:[],flowHeight:Ic,synthetic:true,ruleStyle:i}}function _g(e,n){let t=Math.max(1,e*iP);return {x:0,y:Math.max(0,(n-.75)/2),width:t,height:.75}}function vl(e,n,t,r){if(e.ruleStyle!==void 0||e.synthetic){let o=_g(t,e.flowHeight);return {x:n+o.x,y:r+o.y,width:o.width,height:Math.max(o.height,e.ruleStyle==="double"?2.25:.75)}}return {x:n,y:r,width:t,height:e.flowHeight}}var Oc=8,Wg=4096,Xg=256,$g=14,kc=12;function cP(e,n){return n>=e.range.start&&n<e.range.end}function Vg(e){let n=[],t=r=>{for(let o of r){if(o.kind==="paragraph"){n.push(o);continue}for(let a of o.rows)if(!a.isHeaderRepeat)for(let i of a.cells)t(i.blocks);}};return t(e),n}function Bc(e){let n=new Map;for(let t of e){let r=n.get(t.paragraphId);r?r.push(t):n.set(t.paragraphId,[t]);}return n}function Ol(e,n,t){let r=Vg(e.fragments);if(!t)return n.filter(i=>r.some(l=>Qd(l,i.paragraphId,i.atomOffset)));let o=[],a=new Set;for(let i of r)for(let l of Xt(i)){let s=t.get(l);if(s)for(let d of s)a.has(d)||Qd(i,l,d.atomOffset)&&(a.add(d),o.push(d));}return o}function Yg(){let e=new Map;return {get(n,t,r,o,a,i,l){let d=`${n?.name??"none"}\0${o}\0${t}\0${r}\0${a}`,c=e.get(d);if(c)return c;let u=ka(n,t,r,i,o,a);return e.set(d,u),u.fallbackReason&&l.push(u.fallbackReason),u}}}function uP(e,n){let t=[];for(let r of e){if(t.length>=go)break;t.push({...r,sectionIndex:n.get(r.paragraphId)??0});}return t}function ho(e,n){return e.footnotePropsBySection[n]??e.footnotePropsBySection[0]??e.documentFootnoteProps}function Lc(e,n){return e.endnotePropsBySection[n]??e.endnotePropsBySection[0]??e.documentEndnoteProps}function Kg(e,n){return {measurer:e.measurer,producer:e.producer,cache:e.cache,styleCascade:e.styleCascade,defaultTabStopPt:e.defaultTabStopPt,projectLink:e.projectLink,projectFieldLink:e.projectFieldLink,documentProperties:e.documentProperties,noteMarks:n,drawingsForPart:e.drawingsForPart}}function fP(e,n){return n===0?e:{...e,box:{...e.box,y:e.box.y+n},...e.shadingBox?{shadingBox:{...e.shadingBox,y:e.shadingBox.y+n}}:{},...e.bottomBorder?{bottomBorder:{...e.bottomBorder,box:{...e.bottomBorder.box,y:e.bottomBorder.box.y+n}}}:{},...e.borders?{borders:e.borders.map(t=>({...t,box:{...t.box,y:t.box.y+n}}))}:{},...e.marker?{marker:{...e.marker,box:{...e.marker.box,y:e.marker.box.y+n}}}:{},lines:e.lines.map(t=>({...t,box:{...t.box,y:t.box.y+n},spans:t.spans.map(r=>({...r,box:{...r.box,y:r.box.y+n}}))}))}}function Hg(e,n){return n===0?[...e]:e.map(t=>t.kind==="paragraph"?fP(t,n):{...t,box:{...t.box,y:t.box.y+n}})}function pP(e,n){if(e.lines.length===0)return e.box.y+e.box.height<=n+.001?{head:e,tail:null}:{head:null,tail:e};let t=0;for(;t<e.lines.length;t+=1){let g=e.lines[t];if(g.box.y+g.box.height>n+.001)break}if(t===0)return {head:null,tail:e};if(t>=e.lines.length)return {head:e,tail:null};let r=e.lines.slice(0,t),o=e.lines.slice(t),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,p=c.box.y+c.box.height,f=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,p-u)},marker:void 0,...f&&f.length>0?{borders:f}:{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,p-u)}}:{}};return {head:d,tail:m}}function mP(e){let n=0;for(let t of e)n=Math.max(n,t.box.y+t.box.height);return n}function kl(e,n,t){if(e.flowHeight<=n+.001)return {head:e.fragments,headHeight:e.flowHeight,tail:[],tailHeight:0};if(n<=.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<Oa;u+=1){let p=e.fragments[u],f=p.box.y+p.box.height;if(f<=n+.001){r.push(p),o=f,a=u+1;continue}if(p.kind==="paragraph"){let m=pP(p,n);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=t?.fullContentHeight??n,y=p.lines[0]?.box.height??p.box.height;if(r.length===0&&n>=g-.001&&y>g+.001){t?.reasons?.push("note-line-exceeds-page"),a=u+1,i=null;let x=e.fragments.slice(a),v=x[0]?.box.y??0;return {head:[],headHeight:0,tail:Hg(x,-v),tailHeight:Math.max(0,e.flowHeight-v)}}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=Hg(l,-s),c=mP(d);return {head:r,headHeight:o,tail:d,tailHeight:c}}function gP(e,n){let t="FootnoteReference";if(!n)return {...Qn,verticalAlign:"superscript"};let r=bt([],[{localName:"rStyle",attributes:{val:t}}],n);return Ee(r,n.themeFonts)}function hP(e,n,t,r){let o=new Set;for(let c of e.values())c&&c.length>0&&o.add(c);let a=Math.max(n.footnotePropsBySection.length,n.endnotePropsBySection.length,1,...t.map(c=>c.sectionIndex+1),...r.map(c=>c.sectionIndex+1)),i=false;for(let c=0;c<a;c+=1){let u=ho(n,c);if(u.numRestart==="eachPage"){i=true;for(let f=0;f<kc;f+=1){let m=ft(u.numFmt,u.numStart+f);m.length>0&&o.add(m);}}let p=Lc(n,c);if(p.numRestart==="eachPage"){i=true;for(let f=0;f<kc;f+=1){let m=ft(p.numFmt,p.numStart+f);m.length>0&&o.add(m);}}}if(!i||o.size===0)return;let l=gP("footnote",n.styleCascade),s,d=-1;for(let c of o){let u=n.measurer.measure(c,l);(u>d+.001||Math.abs(u-d)<=.001&&c.length>(s?.length??0))&&(s=c,d=u);}return s}function Ug(e,n,t){let r=Ta("footnote",e,l=>ho(t,l)),o=Ta("endnote",n,l=>Lc(t,l)),a=new Map;for(let l of r)a.set(cr("footnote",l.noteId),l.mark);for(let l of o)a.set(cr("endnote",l.noteId),l.mark);let i=hP(a,t,e,n);return {marks:a,...i?{reservedMarkText:i}:{}}}function Cl(e){let n=0;for(let t of e.fragments)n=Math.max(n,t.box.y+t.box.height);return n}function Cc(e){let{footnotes:n,endnotes:t,noteStream:r,...o}=e;return o}function yP(e,n){if(n.marks.size===0)return e;let t=false,r=e.pages.map(o=>{let a=Zg(o.fragments,n);return a===o.fragments?o:(t=true,{...o,fragments:a})});return t?{revision:e.revision,pages:r}:e}function Zg(e,n){let t=false,r=e.map(o=>{if(o.kind==="paragraph"){let l=bP(o,n);return l!==o&&(t=true),l}let a=false,i=o.rows.map(l=>{let s=false,d=l.cells.map(c=>{let u=Zg(c.blocks,n);return u===c.blocks?c:(s=true,{...c,blocks:u})});return s?(a=true,{...l,cells:d}):l});return a?(t=true,{...o,rows:i}):o});return t?r:e}function bP(e,n){let t=false,r=e.lines.map(o=>{let a=xP(o,n);return a!==o&&(t=true),a});return t?{...e,lines:r}:e}function xP(e,n){let t=false,r=e.spans.map(o=>{let a=SP(o,n);return a!==o&&(t=true),a});return t?{...e,spans:r}:e}function SP(e,n){if(!e.projected||e.noteNav?.direction!=="to-note")return e;let t=n.marks.get(e.noteNav.scopeId);if(t===void 0)return e;let r=t??"";return e.text===r?e:{...e,text:r}}function wP(e){return e.footnotes?Math.max(0,Math.min(e.contentBox.height,e.footnotes.box.y-e.contentBox.y)):e.contentBox.height}function qg(e){return !(e.noteStream==="footnote-drain"||e.fragments.length===0&&(e.footnotes?.notes.length??0)>0)}function PP(e){for(let n=e.length-1;n>=0;n-=1)if(qg(e[n]))return n;return Math.max(0,e.length-1)}function Fc(e,n,t,r,o,a,i,l){let s=new Map(a),d=n.filter(k=>k.noteKind==="footnote"),c=e.contentBox.width,u=Kg(t,r),p=[],f=0,m=Wg,g=a.size>0?"continuationSeparator":"separator",h=Math.max(0,e.contentBox.height),y=l?.separatorCache?l.separatorCache.get(t.footnotesPart,g,c,"footnote",h,u,i):(()=>{let k=ka(t.footnotesPart,g,c,u,"footnote",h);return k.fallbackReason&&i.push(k.fallbackReason),k})(),x=Math.max(0,e.contentBox.height-Cl(e)-y.flowHeight),v=Math.max(0,e.contentBox.height-$g-y.flowHeight),C=l?.reserveColumnBudget?v:x,N={fullContentHeight:Math.max(0,e.contentBox.height-y.flowHeight),reasons:i};for(let[k,E]of a){let _=k.match(/^(footnote|endnote):(-?\d+)$/);if(!_||_[1]!=="footnote")continue;let G=Number(_[2]),R=Math.max(0,C-f);if(E.height<=R+.001)p.push({noteKind:"footnote",noteId:G,scopeId:k,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:E.height},fragments:E.fragments}),f+=E.height,s.delete(k);else {let z=kl({fragments:E.fragments,flowHeight:E.height},R,N);z.head.length>0&&(p.push({noteKind:"footnote",noteId:G,scopeId:k,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:z.headHeight},fragments:z.head}),f+=z.headHeight),z.tail.length>0?s.set(k,{fragments:z.tail,height:z.tailHeight,mark:null}):s.delete(k);}}for(let k of d){if(p.length>=go){i.push("note-count-limit");break}let E=Il(t.footnotesPart,k.noteId,c,u);if(!E){i.push("missing-note-body");continue}let _=r.marks.get(cr("footnote",k.noteId))??null,G=Math.max(0,C-f);if(m-=E.fragments.length,m<0){i.push("note-area-fragment-limit");break}if(E.flowHeight<=G+.001)p.push({noteKind:"footnote",noteId:k.noteId,scopeId:E.scopeId,mark:k.customMarkFollows?null:_,box:{x:e.contentBox.x,y:0,width:c,height:E.flowHeight},fragments:E.fragments}),f+=E.flowHeight;else {let R=kl(E,G,N);R.head.length>0&&(p.push({noteKind:"footnote",noteId:k.noteId,scopeId:E.scopeId,mark:k.customMarkFollows?null:_,box:{x:e.contentBox.x,y:0,width:c,height:R.headHeight},fragments:R.head}),f+=R.headHeight),R.tail.length>0&&s.set(E.scopeId,{fragments:R.tail,height:R.tailHeight,mark:null});}}if(p.length===0&&a.size===0)return {area:void 0,nextCarry:s};let P=y.flowHeight,L=P+f,T=Cl(e),I;o==="beneathText"?I=e.contentBox.y+T:(I=e.contentBox.y+e.contentBox.height-L,I=Math.max(I,e.contentBox.y+T));let b=I+P,O=p.map(k=>{let E={...k,box:{...k.box,y:b}};return b+=k.box.height,E}),j=vl(y,e.contentBox.x,c,I);return {area:{kind:"footnotes",placement:o==="beneathText"?"beneathText":"pageBottom",box:{x:e.contentBox.x,y:I,width:c,height:L},separator:{kind:g,box:j,fragments:y.fragments,synthetic:y.synthetic,...y.ruleStyle!==void 0?{ruleStyle:y.ruleStyle}:{}},notes:O},nextCarry:s}}function Jg(e,n,t){return {id:`page-${n}`,index:n,box:e.box,contentBox:e.contentBox,fragments:[],...t?{noteStream:t}:{},...e.header?{header:e.header}:{},...e.footer?{footer:e.footer}:{},...e.pageFieldSource?{pageFieldSource:{...e.pageFieldSource,pageNumber:e.pageFieldSource.pageNumber+(n-e.index)}}:{}}}function Ec(e,n){let t=new Set;for(let r of Vg(e.fragments))t.add(n.get(r.paragraphId)??0);return [...t].sort((r,o)=>r-o)}function Qg(e,n,t){for(let r=e.length-1;r>=0;r-=1)if(Ec(e[r],t).includes(n))return r;return Math.max(0,e.length-1)}function RP(e,n,t){let r=Qg(e,n,t);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=Ec(a,t);if(i.length!==0&&!i.includes(n))return o}return e.length}function IP(e){return e.map((n,t)=>n.index===t&&n.id===`page-${t}`?n:{...n,id:`page-${t}`,index:t})}function vP(e){let n=IP(e);return [..._t({revision:0,pages:n}).pages]}function TP(e,n,t,r,o,a,i,l){let s=new Map(a),d=[];if(n.length===0&&a.size===0)return {area:void 0,nextCarry:s,remainingRefs:d};let c=e.contentBox.width,u=Kg(t,r),p=l?.separatorKind??"separator",f=G=>G==="footnote"?t.footnotesPart:t.endnotesPart,m=t.endnotesPart??t.footnotesPart,g=Math.max(0,e.contentBox.height),h=l?.separatorCache?l.separatorCache.get(m,p,c,"endnote",g,u,i):(()=>{let G=ka(m,p,c,u,"endnote",g);return G.fallbackReason&&i.push(G.fallbackReason),G})(),y=h.flowHeight,x=Cl(e),v=e.endnotes?Math.max(x,e.endnotes.box.y-e.contentBox.y+e.endnotes.box.height):x,C=wP(e),M=Math.max(0,C-v-y),P={fullContentHeight:Math.max(0,C-y),reasons:i},L=[],T=0,I=Wg;for(let[G,R]of a){let z=G.match(/^(footnote|endnote):(-?\d+)$/);if(!z)continue;let B=z[1],H=Number(z[2]),V=Math.max(0,M-T);if(R.height<=V+.001)L.push({noteKind:B,noteId:H,scopeId:G,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:R.height},fragments:R.fragments}),T+=R.height,s.delete(G);else {let W=kl({fragments:R.fragments,flowHeight:R.height},V,P);W.head.length>0&&(L.push({noteKind:B,noteId:H,scopeId:G,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:W.headHeight},fragments:W.head}),T+=W.headHeight),W.tail.length>0?s.set(G,{fragments:W.tail,height:W.tailHeight,mark:null}):s.delete(G);}}for(let G=0;G<n.length;G+=1){let R=n[G];if(L.length>=go){i.push("note-count-limit"),d.push(...n.slice(G));break}let z=f(R.noteKind),B=Il(z,R.noteId,c,u);if(!B){i.push("missing-note-body");continue}let H=r.marks.get(cr(R.noteKind,R.noteId))??null,V=Math.max(0,M-T);if(I-=B.fragments.length,I<0){i.push("note-area-fragment-limit"),d.push(...n.slice(G));break}if(B.flowHeight<=V+.001)L.push({noteKind:R.noteKind,noteId:R.noteId,scopeId:B.scopeId,mark:R.customMarkFollows?null:H,box:{x:e.contentBox.x,y:0,width:c,height:B.flowHeight},fragments:B.fragments}),T+=B.flowHeight;else {let W=kl(B,V,P);W.head.length>0&&(L.push({noteKind:R.noteKind,noteId:R.noteId,scopeId:B.scopeId,mark:R.customMarkFollows?null:H,box:{x:e.contentBox.x,y:0,width:c,height:W.headHeight},fragments:W.head}),T+=W.headHeight),W.tail.length>0&&s.set(B.scopeId,{fragments:W.tail,height:W.tailHeight,mark:null}),d.push(...n.slice(G+1));break}}if(L.length===0&&a.size===0)return {area:void 0,nextCarry:s,remainingRefs:d};if(L.length===0)return {area:void 0,nextCarry:s,remainingRefs:d};let b=e.contentBox.y+v,O=b+y,j=L.map(G=>{let R={...G,box:{...G.box,y:O}};return O+=G.box.height,R}),ne=vl(h,e.contentBox.x,c,b),k=y+T,E=Math.max(0,C-v),_=Math.min(k,E);return {area:{kind:"endnotes",placement:o,box:{x:e.contentBox.x,y:b,width:c,height:_},separator:{kind:p,box:ne,fragments:h.fragments,synthetic:h.synthetic,...h.ruleStyle!==void 0?{ruleStyle:h.ruleStyle}:{}},notes:j},nextCarry:s,remainingRefs:d}}function OP(e,n,t,r,o,a,i){let l=e,s=n;for(;s.size>0&&a.remaining>0;){let d=l[l.length-1],c=Jg(d,d.index+1,"footnote-drain"),u=Fc(c,[],t,r,"pageBottom",s,o,{separatorCache:i}),p=u.area?.notes.length??0;if(s=u.nextCarry,p===0){o.push("note-overflow-stalled"),u.area&&(l=[...l,{...c,footnotes:u.area}],a.remaining-=1);break}l=[...l,{...c,footnotes:u.area}],a.remaining-=1;}return s.size>0&&!o.includes("note-overflow-stalled")&&o.push("note-overflow-page-limit"),{pages:l,carry:s}}function kP(e,n,t,r="endnote-overflow"){let o=Jg(t,n,r);return {pages:[...e.slice(0,n),o,...e.slice(n)],pageIndex:n}}function zg(e,n,t){if(t<=n||n>=e.length)return e;let r=Math.min(t,e.length),o=e[n],a=o.pageFieldSource?.pageNumber??n+1,i=o.pageFieldSource?.format,l=r-n,s=[...e];for(let d=n;d<r;d+=1){let c=s[d];s[d]={...c,pageFieldSource:{pageNumber:a+(d-n),sectionPageCount:l,...i?{format:i}:{}}};}return s}function jg(e,n,t,r,o,a,i,l,s){if(t.length===0||e.length===0)return e;let d=[...e],c=[...t],u=new Map,p=n,f=0,m="separator",g=s?.stopBeforeIndex??Number.POSITIVE_INFINITY,h=s?.sectionStartIndex??n,y=s?.stopBeforeIndex!==void 0,x=s?.separatorCache;for(;c.length>0||u.size>0;){if(p>=d.length||p>=g){if(l.remaining<=0){i.push("note-overflow-page-limit");break}let N=d[Math.min(Math.max(p,1),d.length)-1]??d[d.length-1],P=Math.min(p,g,d.length),L=kP(d,P,N,"endnote-overflow");d=L.pages,p=L.pageIndex,y&&(g=P+1),f+=1,l.remaining-=1;}let v=d[p];if(!qg(v)){p+=1;continue}let C=TP(v,c,r,o,a,u,i,{separatorKind:m,...x?{separatorCache:x}:{}});u=C.nextCarry,c=C.remainingRefs;let M=C.area?.notes.length??0;if(C.area){let N=d[p];d[p]={...N,endnotes:N.endnotes?{...C.area,notes:[...N.endnotes.notes,...C.area.notes],box:{...C.area.box,y:N.endnotes.box.y,height:N.endnotes.box.height+C.area.box.height}}:C.area};}else {if(u.size===0&&c.length===0)break;if(!C.area&&u.size===0&&c.length>0){p+=1,m="separator";continue}}if(M===0&&(u.size>0||c.length>0)&&v.fragments.length===0&&v.noteStream==="endnote-overflow"){i.push("note-overflow-stalled");break}if(u.size>0||c.length>0){m="continuationSeparator",p+=1;continue}break}return (c.length>0||u.size>0)&&(i.includes("note-overflow-stalled")||i.push("note-overflow-page-limit")),y?d=zg(d,h,Math.min(g,d.length)):f>0&&(d=zg(d,h,d.length)),d}function eh(e,n,t,r){let o=new Map,a=[],i=new Map,l=Bc(n),s=Yg();for(let c of e.pages){let u=Cc(c),f=Ol(u,n,l).filter(C=>C.noteKind==="footnote"),m=f[0]?.sectionIndex??0,g=ho(t,m);if(g.pos==="sectEnd"||g.pos==="docEnd")continue;let h=Math.max(0,u.contentBox.height-$g),{area:y,nextCarry:x}=Fc(u,f,t,r,g.pos,i,a,{reserveColumnBudget:true,separatorCache:s});i=x;let v=Math.min(y?.box.height??0,h);if(v>0){let C=o.get(c.index)??0;o.set(c.index,Math.max(C,v));}}let d=true;for(let c of e.pages){let u=o.get(c.index)??0;if(u<=0)continue;if(Cl(Cc(c))+u>c.contentBox.height+.5){d=false;break}}return {reserves:o,stable:d,reasons:a}}function nh(e,n,t,r){let o=[...r?.fallbackReasons??[]],a=r?.paragraphSectionIndex??new Map,i={remaining:Xg},l=Bc(n),s=Yg(),d=[],c=[];for(let x of e.pages)for(let v of Ol(x,n,l)){let C={noteId:v.noteId,sectionIndex:v.sectionIndex,pageIndex:x.index,customMarkFollows:v.customMarkFollows};v.noteKind==="footnote"?d.push(C):c.push(C);}let u=Ug(d,c,t),p=new Map,f=new Map,m=[],g=e.pages.map(x=>{let v=Cc(x),C=Ol(x,n,l),M=C.filter(I=>I.noteKind==="footnote"),N=C.filter(I=>I.noteKind==="endnote");for(let I of N)if(Lc(t,I.sectionIndex).pos==="sectEnd"){let O=f.get(I.sectionIndex)??[];O.push(I),f.set(I.sectionIndex,O);}else m.push(I);for(let I of M){let b=ho(t,I.sectionIndex);if(b.pos==="sectEnd"){let O=f.get(I.sectionIndex)??[];O.push(I),f.set(I.sectionIndex,O);}else b.pos==="docEnd"&&m.push(I);}let P=M[0]?.sectionIndex??0,L=ho(t,P),T;if(L.pos==="pageBottom"||L.pos==="beneathText"){let I=M.filter(O=>{let j=ho(t,O.sectionIndex).pos;return j==="pageBottom"||j==="beneathText"}),b=Fc(v,I,t,u,L.pos,p,o,{separatorCache:s});T=b.area,p=b.nextCarry;}return {...v,...T?{footnotes:T}:{}}}),h=g.length;if(p.size>0){let x=OP(g,p,t,u,o,i,s);g=x.pages,p=x.carry;}if(f.size>0&&g.length>0){let x=[...f.keys()].sort((v,C)=>v-C);for(let v of x){let C=f.get(v),M=Qg(g,v,a),N=RP(g,v,a),P=M;for(let L=0;L<=M;L+=1)if(Ec(g[L],a).includes(v)){P=L;break}g=jg(g,M,C,t,u,"sectEnd",o,i,{stopBeforeIndex:N,sectionStartIndex:P,separatorCache:s});}}return m.length>0&&g.length>0&&(g=jg(g,PP(g),m,t,u,"docEnd",o,i,{separatorCache:s})),g.length!==h&&(g=vP(g)),{layout:yP({revision:e.revision,pages:g},u),fallbackReasons:o,noteMarks:u}}function CP(e){return chunk2GSRLGUI_cjs.Zd(e).map(n=>({noteKind:n.noteKind,noteId:n.noteId,paragraphId:n.paragraphId,atomOffset:n.atomOffset,customMarkFollows:n.customMarkFollows}))}function BP(e,n,t){let r=new Map,o=xt(e,t);for(let a=0;a<n.length;a+=1){let i=n[a];for(let l=i.blockStart;l<i.blockEndExclusive;l+=1){let s=o[l];if(!s)continue;if(s.kind==="paragraph"){r.set(s.id,a);continue}let d=(c,u)=>{if(!(u>32)&&c.kind!=="textValue"){if(c.kind==="paragraph"){r.set(c.id,a);return}for(let p of c.children)d(p,u+1);}};d(s,0);}}return r}function Sr(e){let n=new Map;for(let[t,r]of e)r>0&&n.set(t,r);return n}function Tc(e,n){let t=Sr(e),r=Sr(n);if(t.size!==r.size)return false;for(let[o,a]of t)if((r.get(o)??0)!==a)return false;return true}function Gg(e,n){let t=Sr(e);for(let[r,o]of n)o<=0||t.set(r,Math.max(t.get(r)??0,o));return t}function Tl(e){return [...Sr(e)].map(([n,t])=>`${n}=${t}`).sort().join(",")}function th(e,n,t,r,o){let a=CP(e),i=BP(e,n,t.displayMode??fn),l=uP(a,i),s=rh(l,r),d=t.session?.notePageBottomReserves,c=d?Sr(d):new Map,u=[],p=o({...t,noteMarks:s,pageBottomReserves:c}),f=new Set([Tl(c)]);for(let g=0;g<Oc;g+=1){let h=eh(p,l,r,s);if(u=[...h.reasons],h.stable&&Tc(h.reserves,c))break;let y=h.stable?Sr(h.reserves):Gg(c,h.reserves);if(Tc(y,c)){u.push("note-reflow-exhausted");break}let x=Tl(y);if(f.has(x)){y=Gg(c,h.reserves);let v=Tl(y);if(Tc(y,c)||f.has(v)){u.push("note-reflow-exhausted");break}}c=y,f.add(Tl(c)),p=o({...t,noteMarks:s,pageBottomReserves:c}),g===Oc-1&&u.push("note-reflow-exhausted");}let m=nh(p,l,r,{fallbackReasons:u,paragraphSectionIndex:i});return t.session&&(t.session.previous=m.layout,t.session.notePageBottomReserves=Sr(c)),m.layout}function rh(e,n){let t=[],r=[];for(let o of e){let a={noteId:o.noteId,sectionIndex:o.sectionIndex,customMarkFollows:o.customMarkFollows};o.noteKind==="footnote"?t.push(a):r.push(a);}return Ug(t,r,n)}function oh(e,n){let t=e.projectLink??n.projectLink,r=e.projectFieldLink??n.projectFieldLink,o=e.documentProperties??n.documentProperties;return {...e,...t?{projectLink:t}:{},...r?{projectFieldLink:r}:{},...o?{documentProperties:o}:{}}}var LP="http://schemas.openxmlformats.org/wordprocessingml/2006/main",FP="http://schemas.microsoft.com/office/word/2010/wordml",EP="http://schemas.microsoft.com/office/word/2012/wordml";function MP(e){if(e.kind!=="textValue"){for(let n of e.attributes)if(n.localName==="val"&&n.namespaceUri===LP)return n.value}}function Ca(e){for(let n of e.children)if(n.kind!=="textValue"&&(n.kind==="contentControlProperties"||n.localName==="sdtPr"))return n}function yo(e,n){if(e){for(let t of e.children)if(t.kind!=="textValue"&&t.localName===n)return t}}function Vt(e,n){let t=yo(e,n);return t?MP(t):void 0}function Bl(e){return e==="sdtLocked"||e==="contentLocked"||e==="sdtContentLocked"?e:"unlocked"}function Mc(e){if(!e)return "richText";for(let n of e.children){if(n.kind==="textValue")continue;let t=n.kind,r=n.localName,o=n.namespaceUri;if(t==="contentControlDropDownList"||r==="dropDownList")return "dropdown";if(t==="contentControlComboBox"||r==="comboBox")return "comboBox";if(t==="contentControlDate"||r==="date")return "date";if(r==="picture")return "picture";if(t==="contentControlText"||r==="text")return "plainText";if(r==="richText")return "richText";if(t==="contentControlCheckbox"||r==="checkbox"&&o===FP)return "checkbox";if(r==="repeatingSection"&&o===EP)return "repeatingSection"}return "richText"}function ah(e){let n=(t,r)=>{for(let o of t)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(chunk2GSRLGUI_cjs.Lb(o)&&r<chunk2GSRLGUI_cjs.Kb){let a=n(chunk2GSRLGUI_cjs.Ob(o),r+1);if(a)return a}}return null};return n(chunk2GSRLGUI_cjs.Ob(e),0)??"inline"}var NP={kind:"covered",id:"hashed",paragraphId:"covered",fragmentIndex:"covered",range:"hashed",props:"hashed",spacing:"hashed",indent:"hashed",bottomBorder:"hashed",borders:"hashed",shading:"hashed",shadingBox:"hashed",markRevisions:"hashed",markRevision:"covered",markFormatRevision:"hashed",marker:"hashed",lines:"hashed",box:"hashed"},AP={kind:"covered",id:"hashed",tableId:"hashed",fragmentIndex:"hashed",nestingDepth:"hashed",columnEdges:"hashed",rows:"hashed",box:"hashed"};function sh(e){return Object.keys(e).filter(n=>e[n]==="hashed")}var DP=sh(NP),_P=sh(AP),ih=new WeakMap;function lh(e){let n=ih.get(e);if(n!==void 0)return n;let t=e.kind==="table"?JSON.stringify(_P.map(r=>e[r])):JSON.stringify(DP.map(r=>e[r]));return ih.set(e,t),t}function dh(e,n){if(e.length!==n.length)return false;for(let t=0;t<e.length;t+=1){let r=e[t],o=n[t];if(r!==o&&lh(r)!==lh(o))return false}return true}function Nc(e,n){if(e.length!==n.length)return false;for(let t=0;t<e.length;t+=1)if(e[t]!==n[t])return false;return true}var ch=Object.freeze([]),uh=new Map;function fh(e,n){if(e===n)return true;if(e.size!==n.size)return false;for(let[t,r]of e)if(n.get(t)!==r)return false;return true}function Ll(){return {previous:null,checkpoints:[],keys:[],context:"",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}}function ph(e,n){return [...e].map(([t,r])=>`${t}=${r.flowHeight}`).sort().join(",")}function gh(e){return e?`hf:${e.titlePage?1:0}${e.evenAndOddHeaders?1:0};h:${ph(e.headers)};f:${ph(e.footers)}`:""}function Fl(e,n,t){if(e.sectionFurniture)return e.sectionFurniture[n];if(n===t-1)return e.furniture}function HP(e,n){return e.map((t,r)=>{let o=xr(t.properties),a=Fl(n,r,e.length),i=t.properties.pageNumbering,l=i?`pn:${i.start??""},${i.fmt??""},${i.chapStyle??""},${i.chapSep??""}`:"pn:",s=t.properties.columns,d=`cols:${s.count},${s.gapTwips},${s.equalWidth===false?0:1},${s.separator?1:0};${(s.definitions??[]).map(c=>`${c.widthTwips}/${c.gapTwips}`).join(",")}`;return [t.blockStart,t.blockEndExclusive,t.properties.breakType,o.width,o.height,o.margin.top,o.margin.right,o.margin.bottom,o.margin.left,o.headerDistance??36,o.footerDistance??36,gh(a),l,d].join(":")}).join("|")}function zP(e,n,t){if(!e)return null;let r=e.multi;if(r&&r.structureKey===n&&r.sections.length===t)return r;let o={structureKey:n,sections:Array.from({length:t},()=>Ll()),spans:[],previousRemapped:[],previousFinalized:null,previousPageCount:-1};return e.multi=o,o}function jP(e){return e!=="continuous"}function GP(e,n){return e.width===n.width&&e.height===n.height}function WP(e,n){if(n.fragments.length===0&&!n.columnSeparators?.length&&!n.anchoredDrawings?.length)return e;let t=e.anchoredDrawings||n.anchoredDrawings?Object.freeze([...e.anchoredDrawings??[],...n.anchoredDrawings??[]]):void 0;return {...e,fragments:n.fragments.length>0?[...e.fragments,...n.fragments]:e.fragments,...(e.columnSeparators?.length||n.columnSeparators?.length)&&{columnSeparators:[...e.columnSeparators??[],...n.columnSeparators??[]]},...t?{anchoredDrawings:t}:{}}}function mh(e,n,t){e.previous=n,e.startLineCounter=0,e.endLineCounter=t,e.keys=[],e.checkpoints=[],e.context="";}function hh(e,n,t,r,o){let{session:a,...i}=r,l=HP(n,r),s=zP(a,l,n.length),d=[],c=[],u=[],p=0,f=0,m=0,g=0,h=0,y=0,x=0,v=true,C=null,M="",N=1;for(let T=0;T<n.length;T+=1){let I=n[T],b=e.slice(I.blockStart,I.blockEndExclusive),O=xr(I.properties),j=Fl(r,T,n.length),ne=d.length,k=p,E=s?.spans[T],_=gh(j);if(b.length===0&&!jP(I.properties.breakType)){u.push({startIndex:ne,pageCount:0,sheetY:k,remappedPages:[]});continue}let G=T>0&&I.properties.breakType==="continuous"&&d.length>0&&v&&C!==null&&GP(C,O)&&M===_,R=s?.sections[T],z=I.properties.columns.count>1&&n[T+1]?.properties.breakType==="continuous",B=o(b,t,{...i,geometry:O,furniture:j,sectionColumns:I.properties.columns,...z?{balanceColumns:z}:{},lineCounterStart:f,pageIndexStart:G?ne-1:ne,...G?{flowStartY:y,spaceBeforeCarry:x}:{},...R?{session:R}:{}});f=B.lineCounter,y=B.endCursorY,x=B.endSpaceAfter,v=B.endsOpenPage,C=O,M=_,R?(m+=R.stats.placed,g+=R.stats.total):(m+=b.length,g+=b.length);let H=R!==void 0&&R.stats.placed===0&&R.stats.reusedPages===B.pages.length&&E!==void 0&&E.pageCount===B.pages.length,V=E!==void 0&&E.startIndex===ne&&E.sheetY===k&&E.remappedPages.length===B.pages.length,W=I.properties.pageNumbering,A=W?.start!==void 0?W.start:N,Z=W?.fmt,X;if(G){let J=d.length-1,Q=d[J],se=WP(Q,B.pages[0]);if(se!==Q){d[J]=se;let Re=c.lastIndexOf(Q);Re!==-1&&(c[Re]=se);}let be=[];for(let Re of B.pages.slice(1)){let fe=xc(Re,d.length+be.length,p);be.push(fe),p=fe.box.y+fe.box.height+24;}let he=be.length+1;X=$r(be,A+1,he,Z);for(let Re of X)d.push(Re),c.push(Re);N=A+he;}else if(H&&V){X=E.remappedPages,h+=X.length;for(let J of X)d.push(J),c.push(J),p=J.box.y+J.box.height+24;N=A+X.length;}else {let J=[];for(let Q of B.pages){let se=xc(Q,d.length+J.length,p);J.push(se),p=se.box.y+se.box.height+24;}X=$r(J,A,J.length,Z);for(let Q of X)d.push(Q),c.push(Q);N=A+X.length;}u.push({startIndex:ne,pageCount:X.length,sheetY:k,remappedPages:X});}if(d.length===0){let T=xr(n[0]?.properties??Wn),I=o([],t,{...i,geometry:T,sectionColumns:n[0]?.properties.columns??Wn.columns}),b=_t({revision:t,pages:I.pages});return s&&(s.spans=[],s.previousRemapped=I.pages,s.previousFinalized=b,s.previousPageCount=b.pages.length),a&&(mh(a,b,f),a.stats={placed:0,total:0,reusedPages:0,fullPasses:a.stats.fullPasses+1}),b}let P=_t({revision:t,pages:d}),L=P;if(s?.previousFinalized&&s.previousPageCount===P.pages.length&&s.previousRemapped.length===c.length){let T=s.previousFinalized.pages,I=s.previousRemapped,b=P.pages.map((O,j)=>c[j]===I[j]&&T[j]?T[j]:O);L={revision:t,pages:b};}return s&&(s.spans=u,s.previousRemapped=c,s.previousFinalized=L,s.previousPageCount=L.pages.length),a&&(mh(a,L,f),a.stats={placed:m,total:g||1,reusedPages:h,fullPasses:a.stats.fullPasses+(m===g&&h===0?1:0)}),L}function El(e=6,n=14){let t=r=>r.fontSizePt/11;return {measure:(r,o)=>r.length*e*t(o)*(o.horizontalScalePercent/100)+r.length*o.characterSpacingPt,lineMetrics:r=>{let o=r.verticalAlign==="baseline"?1:.75,a=n*t(r)*o;return {height:a,baseline:a*.8}}}}var XP=2,yh=new WeakMap,bh=new WeakMap;function $P(e,n,t){let r=t.displayMode??fn,o=xt(e,r),a=Pc(e,o).sections,i=Rh(e),l={...t,producer:`${t.producer??"unversioned-measurer"}|cc:${i}`,tocFieldChromeParagraphIds:t.tocFieldChromeParagraphIds??hc(e),emptyTocPlaceholderParagraphIds:t.emptyTocPlaceholderParagraphIds??yc(e),emptyTocSuppressedResultParagraphIds:t.emptyTocSuppressedResultParagraphIds??bc(e)},s=t.drawingSourceOrder;!s&&t.inlineDrawingLayout&&(s=bh.get(t.inlineDrawingLayout),s||(s=(()=>{let f=new Map;return chunk2GSRLGUI_cjs.db(e).forEach((m,g)=>{f.set(m.drawingNodeId,g);}),f})(),bh.set(t.inlineDrawingLayout,s)));let d=Jd(s?{...l,drawingSourceOrder:s}:l,o),c=f=>{if(a.length>1)return hh(o,a,n,f,bo);let m=a[0],g=f.geometry??(m?xr(m.properties):Do),h=Fl(f,0,a.length)??f.furniture,y=bo(o,n,{...f,geometry:g,furniture:h,sectionColumns:m?.properties.columns??Wn.columns}),x=m?.properties.pageNumbering,v=Ih({revision:y.layout.revision,pages:$r(y.pages,x?.start??1,y.pages.length,x?.fmt)},y.layout),C=_t(v);return f.session&&(f.session.multi=null,f.session.previous=C),C},u=f=>{let m=tR(f,e,i);return t.session&&(t.session.previous=m),m};if(!t.notes)return u(c(d));let p=oh(t.notes,t);return u(th(e,a,d,p,c))}function xh(e,n,t,r){let o=`line:${e}:${t}:${n}`;return r===void 0?o:`${o}:occ:${r}`}function wr(e,n,t){let r=t.geometry,o=r.width-r.margin.left-r.margin.right,a=Rc(t.sectionColumns??Wn.columns,o);if(t.inlineDrawingLayout&&t.drawingExclusionPass===void 0&&!t.drawingExclusionConverged){let w=q=>t.drawingSourceOrder?.get(q),$=Object.freeze({columnCount:a.count,columnGapPt:a.gaps[0]??0,contentWidth:o,columnLefts:a.lefts,columnWidths:a.widths}),D=new Map,oe=null,ce=false,pe=new Set,de=t.session?.previous?.pages;if(de){D=aa(de,t.inlineDrawingLayout,o,w,$),oe=bo(e,n,{...t,drawingExclusionPass:0,drawingExclusionZonesByPage:D});let q=aa(oe.pages,t.inlineDrawingLayout,o,w,$);if(Fi(D,q))return oe;D=new Map(q),pe.add(Ei(q));}for(let q=0;q<fr;q+=1){oe=bo(e,n,{...t,session:void 0,drawingExclusionPass:q,drawingExclusionZonesByPage:D});let me=aa(oe.pages,t.inlineDrawingLayout,o,w,$);if(me.size===0){ce=true,D=me;break}let we=Ei(me);if(pe.has(we)){ce=true,D=me;break}if(pe.add(we),q>0&&Fi(D,me)){ce=true,D=me;break}D=new Map(me);}if(!ce)for(let q=0;q<XP&&!ce;q+=1){oe=bo(e,n,{...t,session:void 0,drawingExclusionPass:fr+q,drawingExclusionZonesByPage:D});let me=aa(oe.pages,t.inlineDrawingLayout,o,w,$),we=Ei(me);if(Fi(D,me)||pe.has(we)){ce=true,D=me;break}pe.add(we),D=new Map(me);}if(!ce)throw new ro(`wrap exclusion reflow did not converge within ${fr} passes`);return bo(e,n,{...t,drawingExclusionConverged:true,drawingExclusionZonesByPage:D})}let i=t.measurer,l=t.cache,s=t.styleCascade,d=t.listItems,c=t.defaultTabStopPt,u=t.displayMode??fn,p=u==="all-markup",f=t.tocFieldChromeParagraphIds,m=t.emptyTocPlaceholderParagraphIds,g=t.emptyTocSuppressedResultParagraphIds,h=(t.producer??"unversioned-measurer")+(s?`|sc:${s.cacheToken}`:"")+(t.noteMarks?`|nm:${qf(t.noteMarks)}`:"")+(d&&d.size>0?`|num:${d.size}`:"")+(c!==void 0?`|dts:${c}`:"")+(u===fn?"":`|rev:${u}`),y=a.widths[0],x=t.furniture,v=r.headerDistance??36,C=r.footerDistance??36,M=w=>{let $=0;for(let D of w?.values()??[])$=Math.max($,D.flowHeight);return $},N=r.height*.4,P=Math.min(N,Math.max(r.margin.top,x?v+M(x.headers):0)),L=Math.min(N,Math.max(r.margin.bottom,x?C+M(x.footers):0)),T=r.height-P-L,I=r.height-r.margin.top-r.margin.bottom,b=t.pageBottomReserves,O=t.session,j=t.lineCounterStart??0,ne=x?`|hf:${v},${C},${x.titlePage?1:0}${x.evenAndOddHeaders?1:0};`+[...x.headers].map(([w,$])=>`h${w}=${$.flowHeight}@${$.contentKey}${Sc($)}`).sort().join(",")+";"+[...x.footers].map(([w,$])=>`f${w}=${$.flowHeight}@${$.contentKey}${Sc($)}`).sort().join(","):"",k=t.flowStartY??0,E=t.spaceBeforeCarry??0,_=t.pageIndexStart??0,G=b?`|nr:${[...b].map(([w,$])=>`${w}=${$}`).join(",")}`:"",R=t.columnRegionBottom,z=`|cols:${a.widths.join(",")};${a.gaps.join(",")};${a.separator?1:0}${R!==void 0?`;bal:${R}`:""}`,B=`${h}|${r.width}x${r.height}|${r.margin.top},${r.margin.right},${r.margin.bottom},${r.margin.left}|fs:${k},${E}|pi:${_}${ne}${G}${z}`,H=[],V=()=>{let w=Math.max(1,T-(b?.get(H.length)??0));return R!==void 0&&H.length===0?Math.max(1,Math.min(w,R)):w},W=(w,$)=>{let D=w.kind==="paragraph"?t.drawingTokenForParagraph?.(w)??t.drawingLayoutToken??"":w.kind==="table"&&t.drawingTokenForParagraph?wg(w,t.drawingTokenForParagraph):"",oe=yh.get(w);if(oe&&oe.contentWidth===$&&oe.producer===h&&oe.drawingToken===D)return oe.entry;let ce;if(w.kind==="table")ce={kind:"table",table:w,key:ur({paragraph:w,properties:[],width:$,producer:h,...D?{drawingToken:D}:{}})};else {let pe=d?.get(w.id),de=fa(w,$,s,pe),{props:q,indent:me,available:we,alignment:Pe,spacing:Te,lineSpacing:Ce,contextualSpacing:Oe,styleId:tn,shading:ae,inheritedRunProperties:Me,markRunProperties:Be}=de,Ne=Hp(w.children.find(xn=>xn.kind==="paragraphProperties"),s),ot=Ns(Ne),je=Xo(de.tabStops,c),Zt=je===de.tabStops?de.tabStopsCacheToken:ir(je);ce={kind:"paragraph",paragraph:w,props:q,indent:me,available:we,alignment:Pe,spacing:Te,lineSpacing:Ce,contextualSpacing:Oe,styleId:tn,borders:Ne,borderGroupKey:ot===""?"":`${ot}@${me.left},${me.left+we}`,shading:ae,inheritedRunProperties:Me,markRunProperties:Be,tabStops:je,keeps:zp(q),...pe?{listItem:pe}:{},key:ur({paragraph:w,properties:[...q,...Me,...Be,{localName:"tabStops",attributes:{token:Zt}},...pe?[{localName:"list",attributes:{token:pe.cacheToken}}]:[]],width:we,producer:h,...D?{drawingToken:D}:{}})};}return yh.set(w,{contentWidth:$,producer:h,drawingToken:D,entry:ce}),ce},A=e.map(w=>W(w,y)),Z=A.map(w=>w.key),X=pg(A,y,s,u),J=A.map(w=>w.kind==="paragraph"&&w.keeps.keepNext),Q=A.map(w=>w.kind==="paragraph"?d?.get(w.paragraph.id)?.markerText:void 0),se=Wp(Xp(Z,w=>J[w]),w=>Q[w]),be=O?.previous??null,he=be!==null&&O!==void 0&&O.context===B,Re=a.count===1&&he,fe=0;if(he){let w=Math.min(se.length,O.keys.length);for(;fe<w&&se[fe]===O.keys[fe];)fe+=1;}let Je=0;if(Re){let w=Math.min(se.length,O.keys.length)-fe;for(;Je<w&&se[se.length-1-Je]===O.keys[O.keys.length-1-Je];)Je+=1;}if(he&&fe===A.length&&A.length===O.keys.length){let w=Ih({revision:n,pages:be.pages},be),$=j+(O.endLineCounter-O.startLineCounter);return O.previous=w,O.startLineCounter=j,O.endLineCounter=$,O.stats={placed:0,total:A.length,reusedPages:be.pages.length,fullPasses:O.stats.fullPasses},l?.retain(new Set(Z)),{layout:w,pages:w.pages,lineCounter:$,endCursorY:O.endCursorY,endSpaceAfter:O.endSpaceAfter,endsOpenPage:O.endsOpenPage}}let xe=[],Ge=0,pn=0,ln=()=>a.lefts[Ge],He=()=>a.widths[Ge],vt=()=>({text:{left:ln(),width:He()},margin:{left:0,width:o},page:{left:-r.margin.left,width:r.width}}),Xn=()=>xe.length>pn,ve=[],ze=[],Bn=new Map,te=k,We=k,Xe=0,F=j,S=E,K=[],Y=()=>({pageCount:H.length,pageFragments:[...xe],pendingAnchoredDrawings:[...ve],deferredAnchoredDrawings:ze.length>0?[...ze]:ch,anchorPageDeferCounts:Bn.size>0?new Map(Bn):uh,cursorY:te,lineCounter:F,previousSpaceAfter:S,flowColumnIndex:Xe}),U=0,le=0,Ie=0,Se=k===0;if(Re&&fe>0&&fe<O.checkpoints.length){let w=O.checkpoints[fe];H.push(...be.pages.slice(0,w.pageCount)),xe=[...w.pageFragments],ve=[...w.pendingAnchoredDrawings],ze=[...w.deferredAnchoredDrawings],Bn.clear();for(let[$,D]of w.anchorPageDeferCounts)Bn.set($,D);te=w.cursorY,Xe=w.flowColumnIndex,Ge=w.flowColumnIndex,F=w.lineCounter,S=w.previousSpaceAfter,U=fe,Se=false,Ie=H.length,K.push(...O.checkpoints.slice(0,fe));}let mn=w=>({x:0,y:w*(r.height+24),width:r.width,height:r.height}),Qe=w=>x?.titlePage&&w===0?"first":x?.evenAndOddHeaders&&(_+w+1)%2===0?"even":"default",bn=(w,$,D)=>{if(!x)return;let oe=Qe($),ce=(w==="header"?x.headers:x.footers).get(oe);if(!ce)return;let pe=Ce=>{let Oe=w==="header"?D.y+v:D.y+r.height-C-Ce.flowHeight;return {kind:w,variant:oe,partName:Ce.partName,...Ce.rId?{rId:Ce.rId}:{},box:{x:D.x+r.margin.left,y:Oe,width:o,height:Ce.flowHeight},fragments:Ce.fragments,...Ce.anchoredDrawings?{anchoredDrawings:Ce.anchoredDrawings}:{}}},de=_+$+1,q={pageNumber:de,pageCount:Math.max(de,H.length+1),sectionPageCount:$+1},me=ce.pageFieldNeeds,Pe=Dt(me)||(ce.anchoredDrawings?.length??0)>0?ce.withPageContext(q):ce,Te=pe(Pe);return Dt(me)?{...Te,pageFieldProjector:Ce=>pe(ce.withPageContext(Ce))}:Te},en=a.count,Ke=ln,sn=w=>Object.freeze({x:a.lefts[Xe]??0,y:w.y,width:a.widths[Xe]??y,height:w.height}),nn=()=>Object.freeze({pageNumber:_+H.length+1,pageWidth:r.width,pageHeight:r.height,marginLeft:r.margin.left,marginRight:r.margin.right,marginTop:r.margin.top,marginBottom:r.margin.bottom,contentWidth:y,contentHeight:V(),physicalContentHeight:I,ownerPartName:t.inlineDrawingLayout?.ownerPartName??chunk2GSRLGUI_cjs.n,storyKind:"body"}),Ue=()=>oa(nn()),Fe=w=>t.drawingSourceOrder?.get(w),ye=w=>{if(w.length===0)return;for(let D of w)ve.some(oe=>oe.drawingNodeId===D.drawingNodeId)||ve.push(D.sourceOrder===void 0&&Fe(D.drawingNodeId)!==void 0?Object.freeze({...D,sourceOrder:Fe(D.drawingNodeId)}):D);if(!t.inlineDrawingLayout)return;let $=vp(ve,{pageBottom:V()});if(ve.splice(0,ve.length,...$.drawings),$.deferred.length>0)for(let D of $.deferred){let oe=(Bn.get(D.drawingNodeId)??0)+1;Bn.set(D.drawingNodeId,oe),oe>=bd?ve.push(Rd(D,"page-defer-exhausted")):ze.push(D);}},Tt=()=>{if(ze.length===0)return;let w=ze.map($=>wd($,te-$.y));ze=[],ye(w);},Mn=()=>{let w=H.length,$=mn(w),D=bn("header",w,$),oe=bn("footer",w,$),{usedBottom:ce,hasBodyPageFields:pe}=nd(xe,We);H.push({id:`page-${w}`,index:w,box:$,contentBox:{x:$.x+r.margin.left,y:$.y+P,width:o,height:T},fragments:xe,hasBodyPageFields:pe,...a.separator?{columnSeparators:a.gaps.map((de,q)=>({x:a.lefts[q]+a.widths[q]+de/2-.375,y:We,width:.75,height:Math.max(0,ce-We)}))}:{},...ve.length>0?{anchoredDrawings:Ip(ve)}:{},...D?{header:D}:{},...oe?{footer:oe}:{}}),xe=[],ve=[],te=0,Ge=0,Xe=0,We=0,pn=0;},zc=(w,$)=>{if(w.kind!=="paragraph"||w.listItem!==void 0||w.shading!==void 0)return false;let{top:D,bottom:oe,left:ce,right:pe,between:de}=w.borders;if(D??oe??ce??pe??de)return false;let q=t.inlineDrawingLayout;return q&&Fn(w.paragraph,q).length>0?false:$.every(me=>me.drawings.length===0&&!me.pageBreakAfter&&!me.columnBreakAfter&&me.spans.every(we=>we.text.length===0))},So=()=>{if(Ge+1<a.count){Ge+=1,Xe=Ge,te=We,S=0,pn=xe.length;return}Mn(),Tt();},jc=w=>Sl(w,{measurer:i,producer:h,cache:l,styleCascade:s,...c!==void 0?{defaultTabStopPt:c}:{},...u?{displayMode:u}:{},...t.documentProperties?{documentProperties:t.documentProperties}:{},inlineDrawingLayout:t.inlineDrawingLayout,drawingTokenForParagraph:t.drawingTokenForParagraph}),Ot={measurer:i,cache:l,producer:h,nextLineId:(w,$,D,oe)=>(F+=1,xh(w,$,D,oe)),pageOccurrenceKey:()=>String(_+H.length),styleCascade:s,listItems:d,...c!==void 0?{defaultTabStopPt:c}:{},...t.projectLink?{projectLink:t.projectLink}:{},...t.projectFieldLink?{projectFieldLink:t.projectFieldLink}:{},...t.documentProperties?{documentProperties:t.documentProperties}:{},bodyPageFields:true,...t.noteMarks?{noteMarks:t.noteMarks}:{},...t.inlineDrawingLayout?{inlineDrawingLayout:t.inlineDrawingLayout}:{},...t.drawingTokenForParagraph?{drawingTokenForParagraph:t.drawingTokenForParagraph}:t.drawingLayoutToken?{drawingLayoutToken:t.drawingLayoutToken}:{},...t.inlineDrawingLayout?{anchorFrameBase:nn,pageContentClip:Ue,layoutTextboxStoryFor:jc,publishAnchoredDrawings:ye,collectAnchoredDrawings:ye,columnBoxForParagraph:sn,pageExclusionZones:()=>t.drawingExclusionZonesByPage?.get(H.length)??Object.freeze([]),paragraphOrderIndex:w=>X.get(w),onAnchorShift:(w,$)=>gd(ve,w,$),onAnchorRepublish:(w,$)=>{for(let D=ve.length-1;D>=0;D-=1)ve[D].anchorParagraphId===w&&ve.splice(D,1);ve.push(...$);}}:{},borderOwnershipBudget:$i(),vMergeResolveBudget:lc(),displayMode:u},Hl=w=>sl(d?.get(w.paragraph.id)??w.listItem,w.indent,i,w.tabStops,w.available),zl=(w,$,D=0)=>{let oe=w.paragraph.id,pe=!(m?.has(oe)??false)&&((f?.has(oe)??false)||(g?.has(oe)??false)),de=w.available,q=Ke(),we=(t.drawingExclusionZonesByPage?.get(H.length)??Object.freeze([])).filter(tn=>{let ae=X.get(w.paragraph.id),Me=X.get(tn.anchorParagraphId);if(ae!==void 0&&Me!==void 0){if(Me>ae)return false}else {let Be=A.findIndex(Ne=>Ne.kind==="paragraph"&&Ne.paragraph.id===tn.anchorParagraphId);if(Be<0||Be>$)return false}return !(en>1&&tn.columnIndex!==Xe)}),Pe=rt(we),Te=t.drawingTokenForParagraph?.(w.paragraph)??t.drawingLayoutToken??(t.inlineDrawingLayout?"drawing":void 0),Ce=l&&!pe?Pe||Te?ur({paragraph:w.paragraph,properties:w.props,width:de,producer:h,...Te?{drawingToken:Te}:{},...Pe?{exclusionToken:`${Xe}|${te.toFixed(3)}|${Pe}`}:{},...D>0?{startOffset:D}:{}}):D===0?w.key:`${w.key}|from:${D}`:null,Oe=en>1;return _i(w.paragraph,oe,w.indent.left,de,i,l,Ce,w.inheritedRunProperties,w.tabStops,void 0,s?(tn,ae)=>bt(tn,ae,s):void 0,{lineSpacing:w.lineSpacing,firstLineOffset:D===0?Hl(w):0,startOffset:D,marginExtent:{left:0,right:w.indent.left+de+w.indent.right},...t.projectLink?{projectLink:t.projectLink}:{},...t.projectFieldLink?{projectFieldLink:t.projectFieldLink}:{},...t.documentProperties?{documentProperties:t.documentProperties}:{},bodyPageFields:true,displayMode:u,...t.noteMarks?{noteMarks:t.noteMarks}:{},...t.inlineDrawingLayout?{inlineDrawingLayout:t.inlineDrawingLayout}:{},contentLeft:Oe?q:0,contentRight:Oe?q+He():w.indent.left+de+w.indent.right,paragraphStartY:te,...we.length>0?{pageExclusionZones:we}:{},...pe?{suppressEmptyPlaceholderLine:true}:{},...s?{themeFonts:s.themeFonts}:{},markRunProperties:w.markRunProperties})},Gc=(w,$)=>(t.drawingExclusionZonesByPage?.get(H.length)??Object.freeze([])).filter(oe=>{let ce=X.get(w.paragraph.id),pe=X.get(oe.anchorParagraphId);if(ce!==void 0&&pe!==void 0){if(pe>ce)return false}else {let de=A.findIndex(q=>q.kind==="paragraph"&&q.paragraph.id===oe.anchorParagraphId);if(de<0||de>$)return false}return !(en>1&&oe.columnIndex!==Xe||oe.anchorParagraphId===w.paragraph.id&&oe.input.mode==="topAndBottom")}),Wc=(w,$,D,oe,ce,pe,de)=>{let q=Gc(w,$);if(!t.inlineDrawingLayout||oe<=ce)return q;let me=Hn(w.paragraph),we=new Map,Pe=0;for(let ae=ce;ae<oe;ae+=1){let Me=D[ae];for(let Ne of me.values())Ne>=Me.start&&Ne<Me.end&&we.set(Ne,Pe);let Be=de.get(ae)??D[ae].exclusionSkipBefore??0;Pe+=Be+D[ae].height;}if(we.size===0)return q;let Te=en>1,Ce=w.available,Oe=Ke(),tn=Li({paragraph:w.paragraph,paragraphId:w.paragraph.id,drawingLayout:t.inlineDrawingLayout,contentLeft:Te?Oe:0,contentRight:Te?Oe+He():w.indent.left+Ce+w.indent.right,paragraphStartY:pe,anchorLineTopByModelStart:we,columnIndex:Xe});return Object.freeze([...q,...tn])},Jh=(w,$,D,oe,ce,pe,de,q)=>{if(t.inlineDrawingLayout){let Te=[...Hn(w.paragraph).values()];if(Te.length>0){let Ce=Math.min(...Te);if(de.end<=Ce||Te.some(Oe=>Oe>=de.start&&Oe<de.end)&&de.end<=Ce+1)return 0}}let me=Wc(w,$,D,oe,ce,pe,q),we=me.length>0?yt(te,de.height,me):0,Pe=de.exclusionSkipBefore??0;return we>.001?we:Pe},Qh=w=>{let $=He(),D=co(w,$,0,s,u);if(!D||D.rows.length===0)return;let oe=D.columnWidthsPt.reduce((ae,Me)=>ae+Me,0),ce=()=>D.float?Lm(D.float,oe,vt()):ln()+ba(D,He()),pe=ce();D.float&&D.float.vertAnchor==="text"&&!D.float.ySpec&&(te=Math.max(0,Math.min(te+D.float.yPt,V())));let de=[];for(let ae of D.rows)if(ae.isHeader)de.push(ae);else break;let q=0,me=te,we=[],Pe=new Map,Te=[],Ce=()=>{if(we.length===0)return;let ae=pc(we,D,Te,Ot.borderOwnershipBudget,Ot.vMergeResolveBudget,void 0,(Be,Ne)=>{gd(ve,Be,Ne);},Ot),Me=ae[ae.length-1];xe.push(hl({kind:"table",id:`${w.id}#f${q}`,tableId:w.id,fragmentIndex:q,rows:ae,box:{x:pe,y:me,width:D.columnWidthsPt.reduce((Be,Ne)=>Be+Ne,0),height:Me.box.y+Me.box.height-me}},D.columnWidthsPt,0,Pe)),q+=1,we=[],Te=[];},Oe=ae=>{if(de.length===0)return;let Me=0;for(let Be of de)Me+=fc(Be,D.columnWidthsPt,pe,0,Ot,D.cellSpacingPt);if(Me>V()+.001)throw new En("table-row-overheight",`Table header group (${de.length} row(s)) is taller than the page content box`);te+Me>V()+.001&&te>0&&(Ce(),So(),pe=ce(),me=te);for(let Be of de){let Ne=va(Be,D.columnWidthsPt,pe,te,ae,0,Ot,D.cellSpacingPt);if(Ne.bottom>V()+.001)throw new En("table-row-overheight",`Table header row ${Be.id} overflowed the page content box`);we.push(Ne.record),Te.push(Be),te=Ne.bottom;}},tn=ae=>{Ce(),So(),pe=ce(),me=te,Oe(true);};Oe(false);for(let ae of D.rows.slice(de.length)){let Me=fc(ae,D.columnWidthsPt,pe,0,Ot,D.cellSpacingPt),Be=dc(ae),Ne=false,ot=0,je=false;for(Me<=V()+.001&&te+Me>V()+.001&&te>0&&(tn(),je=true);;){if(ot+=1,ot>bl)throw new En("table-row-fragment-limit",`Table row ${ae.id} exceeded ${bl} page fragments`);let Zt=V()-te;if(Zt<=.001&&te>0){if(je)throw new En("table-row-overheight",`Table row ${ae.id} cannot fit after repeated header rows`);tn(),je=true;continue}if(!Ne&&Me<=Zt+.001){let at=va(ae,D.columnWidthsPt,pe,te,false,0,Ot,D.cellSpacingPt);if(at.bottom>V()+.001)throw new En("table-row-overheight",`Table row ${ae.id} overflowed the page content box after placement`);we.push(at.record),Te.push(ae),te=at.bottom;break}if(ae.cantSplit||ae.height.rule==="exact"){if(te>0&&!je){tn(),je=true;continue}throw new En("table-row-overheight",ae.height.rule==="exact"?`Table row ${ae.id} has w:trHeight hRule=exact taller than the available page content`:`Table row ${ae.id} has w:cantSplit and is taller than the available page content`)}let xn=uc(ae,D.columnWidthsPt,pe,te,V(),false,Ne,0,Ot,Be,D.cellSpacingPt);if(!xn.fitted&&te>0&&!je){tn(),je=true;continue}if(!xn.fitted)throw new En(xn.nestedSplitBlocked?"table-row-split-unsupported":"table-row-overheight",xn.nestedSplitBlocked?`Table row ${ae.id} contains a nested table taller than the page content box`:`Table row ${ae.id} has content that cannot fit a page content box`);if(xn.bottom>V()+.001)throw new En("table-row-overheight",`Table row ${ae.id} overflowed the page content box`);let wo=xn.remainder!==null,Rr=bg(ae,Ne,wo);if(we.push(xn.record),Te.push(Rr),te=xn.bottom,!wo)break;Be=xn.remainder,Ne=true,je=false,tn();}}Ce();},Ut=false,jl=A.length;for(let w=U;w<A.length;w+=1){let $=W(e[w],He());if(K[w]=Y(),Re&&Je>0&&w>=A.length-Je){let re=O.checkpoints[w+(O.keys.length-A.length)];if(re&&re.cursorY===te&&re.previousSpaceAfter===S&&re.flowColumnIndex===Xe&&re.pageCount===H.length&&dh(re.pageFragments,xe)&&Nc(re.pendingAnchoredDrawings,ve)&&Nc(re.deferredAnchoredDrawings,ze)&&fh(re.anchorPageDeferCounts,Bn)){let ie=be.pages.slice(re.pageCount);H.push(...ie),Ie+=ie.length,Ut=true,jl=w,F+=O.endLineCounter-re.lineCounter;break}}if(le+=1,$.kind==="table"){S=0,Qh($.table);continue}let{paragraph:D,props:oe,spacing:ce,contextualSpacing:pe,styleId:de,borders:q,shading:me,keeps:we}=$,{indent:Pe,alignment:Te,markRunProperties:Ce}=$,Oe=$.available,tn=w>0?A[w-1]:void 0,ae=A[w+1],Me=re=>re?.kind==="paragraph"&&re.styleId===de&&de!==null,Be=pe?{before:Me(tn)?0:ce.before,after:Me(ae)?0:ce.after}:ce,Ne=d?.get(D.id)??$.listItem,ot=Hl($),je=D.id,Zt=$.borderGroupKey,xn=re=>Zt!==""&&re?.kind==="paragraph"&&re.borderGroupKey===Zt,wo=xn(tn),Rr=xn(ae),at=wo?void 0:q.top,Ir=Rr?q.between:q.bottom,qt=Mt(at),Zc=Mt(Ir);Bs(oe)&&(xe.length>0||H.length===0)&&(Mn(),S=0);let Ze=zl($,w);if(Ze.length===0)continue;let ny=Rl(D)!==void 0&&zc($,Ze),qc=()=>ny&&R===void 0&&Ge+1>=a.count,Gl=re=>{let ie=W(D,He());ie.kind==="paragraph"&&(Pe=ie.indent,Te=ie.alignment,Oe=ie.available,Ce=ie.markRunProperties,ot=re===0?Hl(ie):0,Ze=[...zl(ie,w,re)]);};{let re=zr(Be.before,S),ie=Ce.length===0?Qn:Ee(Ce,s?.themeFonts),gn=Ze.length<=1?Zc+Be.after:0,$n=te+re+qt,kn=Wc($,w,Ze,0,0,$n,new Map),er=Ze[0]?Lp($n,Ze[0],kn,gn):i.lineMetrics(ie).height+gn,Ct=re+qt+er;if(we.keepNext&&!J[w-1]){let qe=Gp(A,w,S,it=>{let Vn=A[it];return Vn?.kind==="paragraph"?zl(Vn,it).map(Nn=>Nn.height):[]});qe!==null&&qe+qt<=V()&&(Ct=Math.max(Ct,qe+qt));}te+Ct>V()&&te>0&&!qc()&&(So(),S=0,Gl(0));}let ty=te===0&&!Xn(),Wl=As(Be.before,S,ty,Se);Wl>0&&(te+=Wl),qt>0&&(te+=qt),Se=false;let Jt=0,Le=[],Jc=Ze[0]?.start??0,vr=Wl,Qt=qt,Xl=false,Po=te,Qc=0,Ea=new Map;S=0;let eu=t.inlineDrawingLayout!==void 0&&Fn($.paragraph,t.inlineDrawingLayout).length>0,nu=false,$l=null,ry=qr($.paragraph),tu=Gi($.paragraph),ru=tu?ol(tu):null,oy=()=>{let re=Le[0];if(!re)return 0;let ie=Qc;if(ie<=.001)return 0;let gn=yt(Po,re.box.height,Gc($,w));return Math.max(0,ie-gn)},Ma=re=>{if(Le.length===0)return;let ie=ln(),gn=Ke(),$n=Le[0].box.y,kn=$n-vr-Qt,er=Le[Le.length-1].box.y+Le[Le.length-1].box.height,Ct=re?Be.after:0,qe=[],it,Vn=$n,Nn=er,Bt=q.left?Rn(q.left):0,Io=q.right?Rn(q.right):0,Tr=q.left?ie+Pe.left-q.left.spacePt-Bt:ie+Pe.left,Yl=q.right?ie+Pe.left+Oe+q.right.spacePt+Io:ie+Pe.left+Oe,Or=Math.max(Yl-Tr,0);if(Qt>0&&at){let dn=Rn(at),Yn=$n-at.spacePt-dn;qe.push({side:"top",edge:at,box:{x:Tr,y:Yn,width:Or,height:dn}}),Vn=Yn;}if(re&&Ir){let dn=Rn(Ir),Yn=er+Ir.spacePt,Lt={x:Tr,y:Yn,width:Or,height:dn};qe.push({side:Rr?"between":"bottom",edge:Ir,box:Lt}),Rr||(it={edge:Ir,box:Lt}),Nn=Yn+dn;}re&&(te=Math.max(te,Nn+Ct));let kr=Math.max(Nn+Ct-kn,0),ke=wo&&Jt===0?kn:Vn,lt=Rr&&re?kn+kr:Nn,Cr=Math.max(lt-ke,0);if(q.left&&qe.push({side:"left",edge:q.left,box:{x:ie+Pe.left-q.left.spacePt-Bt,y:ke,width:Bt,height:Cr}}),q.right&&qe.push({side:"right",edge:q.right,box:{x:ie+Pe.left+Oe+q.right.spacePt,y:ke,width:Io,height:Cr}}),q.bar){let dn=Rn(q.bar);qe.push({side:"bar",edge:q.bar,box:{x:ie+Pe.left-q.bar.spacePt-dn,y:$n,width:dn,height:Math.max(er-$n,0)}});}let Br=ru?al(Le,ru):null,Lr=Jt===0?dl(Ne,i,Le[0]?{y:Le[0].box.y,height:Le[0].box.height}:void 0):void 0,Na=Lr?{...Lr,box:{...Lr.box,x:Lr.box.x+ie}}:void 0;if(xe.push({kind:"paragraph",id:`${je}#f${Jt}`,paragraphId:je,fragmentIndex:Jt,range:Br?Br[Br.length-1].range:{paragraphId:je,start:Jc,end:Le[Le.length-1].range.end},props:oe,spacing:{before:vr,after:Ct},indent:Pe,...it?{bottomBorder:it}:{},...qe.length>0?{borders:qe}:{},...me===void 0?{}:{shading:me,shadingBox:q.left||q.right?{x:Tr,y:Vn,width:Or,height:Math.max(Nn-Vn,0)}:Go(Le,ie+Pe.left,Oe)},...Na?{marker:Na}:{},...re&&p?Pi(ry,na($.paragraph)):{},lines:Br??Le,box:{x:gn+Pe.left,y:kn,width:Oe,height:kr}}),t.inlineDrawingLayout&&eu&&!nu){nu=true;let dn=[...Hn($.paragraph).values()],Yn=dn.length>0&&dn.every(Cn=>Le.some(nr=>Cn>=nr.range.start&&Cn<nr.range.end)),Lt,Aa,Kl;if(Yn){let Cn=kn-oy();Lt=Le,Aa={x:gn+Pe.left,y:Cn,width:Oe,height:kr},Kl=sn({x:gn+Pe.left,y:Cn,height:kr});}else {let Cn=$l??{columnX:gn,columnWidth:He(),startY:kn},nr=Cn.startY;Lt=Ze.map((An,ay)=>{let iy={id:`anchor-line-${ay}`,range:{paragraphId:je,start:An.start,end:An.end},box:{x:Cn.columnX+Pe.left,y:nr,width:Oe,height:An.height},contentX:An.spans.length>0?An.spans[0].box.x+Cn.columnX:Cn.columnX+Pe.left,baseline:An.baseline,leading:An.leading,trailingSpacing:An.trailingSpacing,spans:An.spans.map(Ul=>({...Ul,box:{...Ul.box,x:Ul.box.x+Cn.columnX,y:nr}}))};return nr+=An.height+(An.exclusionSkipBefore??0),iy});let ou=Cn.startY;Aa={x:Cn.columnX+Pe.left,y:ou,width:Oe,height:Math.max(nr-ou,Le[0]?.box.height??0)},Kl=sn(Aa);}ye(to({paragraph:$.paragraph,paragraphId:je,paragraphBox:Aa,lines:Lt,drawingLayout:t.inlineDrawingLayout,frameBase:nn(),columnBox:Kl,cellBox:null,pageClip:Ue(),measurer:i,sourceOrderOf:Fe,layoutTextboxStory:jc}));}Jt+=1,Jc=Le[Le.length-1].range.end,Le=[],vr=0,Qt=0;},kt=0,Vl=0,Ro=Ze.length+8;for(let re=0;re<Ze.length;re+=1){let ie=Ze[re],gn=re===Ze.length-1,$n=gn?Zc+Be.after:0;re===kt&&(Po=te,eu&&$l===null&&Jt===0&&($l=Object.freeze({columnX:Ke(),columnWidth:He(),startY:Po})));let kn=Jh($,w,Ze,re,kt,Po,ie,Ea),er=kn+Math.max(0,ie.height-ie.trailingSpacing)+$n;if(te+er>V()&&!qc()&&(Le.length>0||xe.length>0||H.length>0)){let ke=!Xn(),lt=Vl<Ro?jp(re,kt,Ze.length,we,ke):re,Cr=lt<re;for(let dn=re;dn>lt;dn-=1){Le.pop();let Yn=Ze[dn-1],Lt=Ea.get(dn-1)??Yn.exclusionSkipBefore??0;Ea.delete(dn-1),te-=Yn.height+Lt,F-=1;}let Br=Cr&&Le.length===0&&Jt===0,Lr=Ze[lt].start,Na=He();if(Ma(false),So(),vr=0,Br?te=Qt:Qt=0,He()!==Na){Gl(Lr),Ro=Math.max(Ro,Ze.length+8),kt=0,Cr&&(Vl+=1),re=-1;continue}if(kt=lt,Po=te,Cr){Vl+=1,re=lt-1;continue}}let qe=Ke();Ea.set(re,kn),te+=kn;let it=qe+Pe.left+(re===0?ot:0),Vn=Math.max(1,Oe-(re===0?ot:0)),Nn=ie.spans.map(ke=>({...ke,range:{...ke.range,paragraphId:je},box:{...ke.box,x:ke.box.x+qe,y:te}})),Bt=Ai(Nn,i,it,Vn,Te,gn,Te==="center"||Te==="right"?ie.width:void 0),Io=Nn.length>0&&Bt.length>0?Bt[0].box.x-Nn[0].box.x:Te!=="left"&&Te!=="both"?(()=>{let ke=Vn-ie.width;return ke<=0?0:Te==="center"?ke/2:ke})():0,Tr=Object.freeze({x:0,y:0,width:y,height:V()}),Yl=ie.drawings.map(ke=>{let lt=Object.freeze({...ke,paragraphId:je,x:qe+ke.x,y:te+ke.y,advanceStart:ke.advanceStart+qe,advanceEnd:ke.advanceEnd+qe,paintBounds:Object.freeze({...ke.paintBounds,x:qe+ke.paintBounds.x,y:te+ke.paintBounds.y}),hitBounds:Object.freeze({...ke.hitBounds,x:qe+ke.hitBounds.x,y:te+ke.hitBounds.y})});return Bi(lt,Tr)}),Or=Di(Yl,Io),kr={id:xh(D.id,ie.start,re),range:{paragraphId:je,start:ie.start,end:ie.end},spans:Bt,box:{x:Ke()+Pe.left,y:te,width:Oe,height:ie.height},contentX:Bt[0]?.box.x??it+Io,baseline:ie.baseline,leading:ie.leading,trailingSpacing:ie.trailingSpacing,...ie.deletedRanges?{deletedRanges:ie.deletedRanges}:{},...Or.length>0?{drawings:Or}:{}};if(F+=1,Le.length===0&&(Qc=kn),Le.push(kr),te+=ie.height,ie.columnBreakAfter){let ke=He();if(Ma(gn),So(),vr=0,Qt=0,Xl=true,!gn&&He()!==ke){Gl(ie.end),Ro=Math.max(Ro,Ze.length+8),kt=0,re=-1;continue}kt=re+1;}else ie.pageBreakAfter&&(Ma(gn),Mn(),vr=0,Qt=0,Xl=true,kt=re+1);}Ma(true),S=Xl?0:Be.after;}Ut||(K[A.length]=Y());let Xc=Ut&&O?O.endCursorY:te,$c=Ut&&O?O.endSpaceAfter:S,Vc=!Ut&&(xe.length>0||H.length===0),Yc=Ut&&O?O.endsOpenPage:Vc;Vc&&Mn();let Kc=0,ey=bd*4+8;for(;(ve.length>0||ze.length>0)&&Kc<ey;)Kc+=1,ve.length===0&&Tt(),Mn();ze.length>0&&(ve.push(...ze.map(w=>Rd(w,"page-defer-exhausted"))),ze=[],Mn()),l?.retain(new Set(Z));let Uc={revision:n,pages:H};return O&&(O.previous=Uc,O.checkpoints=Ut?[...K.slice(0,jl),...O.checkpoints.slice(jl+(O.keys.length-A.length))]:K,O.keys=se,O.context=B,O.startLineCounter=j,O.endLineCounter=F,O.endCursorY=Xc,O.endSpaceAfter=$c,O.endsOpenPage=Yc,O.stats={placed:le,total:A.length,reusedPages:Ie,fullPasses:O.stats.fullPasses+(U===0?1:0)}),{layout:Uc,pages:H,lineCounter:F,endCursorY:Xc,endSpaceAfter:$c,endsOpenPage:Yc}}function Sh(e,n,t){let r=n.lefts.map(()=>t);for(let o of e.fragments){let a=0;for(let i=n.count-1;i>=0;i-=1)if(o.box.x+.5>=n.lefts[i]){a=i;break}r[a]=Math.max(r[a],o.box.y+o.box.height);}return r}var VP=.25,YP=20;function bo(e,n,t){let r=Rc(t.sectionColumns??Wn.columns,t.geometry.width-t.geometry.margin.left-t.geometry.margin.right);if(!t.balanceColumns||r.count<2||t.columnRegionBottom!==void 0)return t.session&&(t.session.balanceLimit=null),wr(e,n,t);let o=t.session,a=t.flowStartY??0,{session:i,...l}=t,s=h=>{let y=h.pages[0],x=y?Math.max(...Sh(y,r,a)):h.endCursorY;return o&&(o.endCursorY=x),{...h,endCursorY:x}};if(o&&o.balanceLimit!==null){let h=o.balanceLimit,y=wr(e,n,{...t,columnRegionBottom:h});if(o.stats.placed===0&&o.stats.reusedPages===y.pages.length)return o.balanceLimit=h,s(y)}let d=wr(e,n,l);if(d.pages.length!==1||!d.endsOpenPage)return o&&(o.balanceLimit=null),wr(e,n,t);let c=Sh(d.pages[0],r,a),u=c.reduce((h,y)=>h+Math.max(0,y-a),0);if(u<=0)return o&&(o.balanceLimit=null),wr(e,n,t);let p=a+u/r.count,f=Math.max(...c)+.01,m=h=>{try{let y=wr(e,n,{...l,columnRegionBottom:h});return y.pages.length===1&&y.endsOpenPage}catch{return false}};for(let h=0;h<YP&&f-p>VP;h+=1){let y=(p+f)/2;m(y)?f=y:p=y;}let g=wr(e,n,{...t,columnRegionBottom:f});return o&&(o.balanceLimit=f),s(g)}function Rh(e){let n=wh.get(e);if(n!==void 0)return n;let t=KP(e);return wh.set(e,t),t}var wh=new WeakMap,Ph=new WeakMap;function KP(e){let n=(t,r)=>{if(t.kind==="textValue")return "";if(r===0&&(t.kind==="paragraph"||t.kind==="table")){let a=Ph.get(t);if(a!==void 0)return a}let o;if(chunk2GSRLGUI_cjs.Lb(t)){if(r>=chunk2GSRLGUI_cjs.Kb)return "";let a=Ca(t),i=[t.id,Vt(a,"alias")??"",Vt(a,"tag")??"",Bl(Vt(a,"lock")),Mc(a),yo(a,"showingPlcHdr")?"1":"0",yo(a,"dataBinding")?"1":"0"].join(":"),l=chunk2GSRLGUI_cjs.Ob(t).map(s=>n(s,r+1)).filter(s=>s.length>0);o=[i,...l].join("|");}else o=t.children.map(a=>n(a,r)).filter(a=>a.length>0).join("|");return r===0&&(t.kind==="paragraph"||t.kind==="table")&&Ph.set(t,o),o};return n(e.root,0)}function Ml(e){if(e.kind==="textValue")return e.value.length;if(e.kind==="tab"||e.kind==="hardBreak")return 1;if(e.kind==="runProperties"||e.kind==="paragraphProperties"||e.kind==="generic")return 0;if(chunk2GSRLGUI_cjs.Lb(e)){let t=0;for(let r of chunk2GSRLGUI_cjs.Ob(e))t+=Ml(r);return t}let n=0;for(let t of e.children)n+=Ml(t);return n}function UP(e){let n=[],t=(i,l)=>{for(let s of i){if(s.kind==="paragraph"||s.kind==="table"){l.push(s.id);continue}if(chunk2GSRLGUI_cjs.Lb(s)){t(chunk2GSRLGUI_cjs.Ob(s),l);continue}(s.kind==="tableRow"||s.kind==="tableCell")&&t(s.children,l);}},r=(i,l,s,d,c)=>{let u=s;for(let p of i)if(!(p.kind==="textValue"||p.kind==="paragraphProperties")){if(chunk2GSRLGUI_cjs.Lb(p)){if(d>=chunk2GSRLGUI_cjs.Kb){u+=Ml(p);continue}let f=Ca(p),m=Bl(Vt(f,"lock")),g=[...c,m],h=u,y=r(chunk2GSRLGUI_cjs.Ob(p),l,u,d+1,g);n.push({control:p,nestingDepth:d,lockStack:g,level:"inline",paragraphId:l,range:{start:h,end:y},blockIds:[]}),u=y;continue}if(p.kind==="hyperlink"){u=r(p.children,l,u,d,c);continue}u+=Ml(p);}return u},o=(i,l,s)=>{for(let d of i){if(d.kind==="textValue")continue;if(d.kind==="paragraph"){r(d.children,d.id,0,l,s);continue}if(d.kind==="table"){for(let h of d.children)h.kind==="tableRow"&&o([h],l,s);continue}if(d.kind==="tableRow"){for(let h of d.children)h.kind==="tableCell"?o(h.children,l,s):chunk2GSRLGUI_cjs.Lb(h)&&o([h],l,s);continue}if(!chunk2GSRLGUI_cjs.Lb(d)||l>=chunk2GSRLGUI_cjs.Kb)continue;let c=Ca(d),u=Bl(Vt(c,"lock")),p=[...s,u],f=ah(d),m=chunk2GSRLGUI_cjs.Ob(d);if(f==="inline"){o(m,l+1,p);continue}let g=[];t(m,g),n.push({control:d,nestingDepth:l,lockStack:p,level:f,blockIds:g}),o(m,l+1,p);}},a=e.root.children.find(i=>i.kind==="body");return a&&a.kind!=="textValue"&&o(a.children,0,[]),n}function ZP(e,n){let t=new Map,r=new Map,o=s=>{let d=t.get(s.blockId);d?d.push(s):t.set(s.blockId,[s]);},a=s=>{let d=r.get(s.paragraphId);d?d.push(s):r.set(s.paragraphId,[s]);},i=0,l=(s,d)=>{if(d.kind==="paragraph"){o({pageIndex:s,blockId:d.paragraphId,box:d.box});for(let c of d.lines){let u=i;i+=1;let p=Math.max(0,c.box.height-c.leading-(c.trailingSpacing??0));for(let f of c.spans)a({pageIndex:s,paragraphId:f.range.paragraphId,start:f.range.start,end:f.range.end,line:u,box:{x:f.box.x,y:f.box.y+c.leading,width:f.box.width,height:p}});}return}o({pageIndex:s,blockId:d.tableId,box:d.box});for(let c of d.rows)if(!c.isHeaderRepeat)for(let u of c.cells)for(let p of u.blocks)l(s,p);};for(let s of e.pages)for(let d of s.fragments)l(s.index,d);return {blocksById:t,spansByParagraph:r}}function qP(e,n,t){let r=new Map,o=new Set;for(let a of e)if(!o.has(a)){o.add(a);for(let i of n.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=Qa(i);return l?[{pageIndex:a,box:l}]:[]})}function JP(e,n,t,r){let o=t.spansByParagraph.get(e)??[],a=new Map,i=0,l=o.length;for(;i<l;){let s=i+(l-i>>1);(n.start===n.end?o[s].end<n.start:o[s].end<=n.start)?i=s+1:l=s;}for(let s=i;s<o.length;s+=1){let d=o[s];if(d.end<=n.start)continue;if(d.start>=n.end)break;let c=a.get(d.line);c?c.boxes.push(d.box):a.set(d.line,{pageIndex:d.pageIndex,boxes:[d.box]});}if(a.size===0&&n.start===n.end)for(let s=i;s<o.length;s+=1){let d=o[s];if(d.start>n.start)break;if(n.start>d.end)continue;let c=d.start===d.end?d.box.x:d.box.x+d.box.width*(n.start-d.start)/Math.max(1,d.end-d.start);return [{pageIndex:d.pageIndex,box:{x:c,y:d.box.y,width:0,height:d.box.height}}]}return [...a.entries()].sort(([s],[d])=>s-d).flatMap(([,s])=>{let d=Qa(s.boxes);return d?[{pageIndex:s.pageIndex,box:d}]:[]})}function QP(e,n,t){let r=Ca(e.control),o=Vt(r,"alias"),a=Vt(r,"tag"),i=e.lockStack[e.lockStack.length-1]??"unlocked",l=e.level==="inline"&&e.paragraphId&&e.range?JP(e.paragraphId,e.range,n):qP(e.blockIds,n);return {id:e.control.id,...o!==void 0?{alias:o}:{},...a!==void 0?{tag:a}:{},controlType:Mc(r),lock:i,effectiveLock:Os(e.lockStack),placeholder:yo(r,"showingPlcHdr")!==void 0,bound:yo(r,"dataBinding")!==void 0,nestingDepth:e.nestingDepth,level:e.level,fragments:l}}function eR(e,n){if(e.length!==n.length)return false;for(let t=0;t<e.length;t+=1){let r=e[t],o=n[t];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 nR(e,n){return e.id===n.id&&e.alias===n.alias&&e.tag===n.tag&&e.controlType===n.controlType&&e.lock===n.lock&&e.effectiveLock===n.effectiveLock&&e.placeholder===n.placeholder&&e.bound===n.bound&&e.nestingDepth===n.nestingDepth&&e.level===n.level&&eR(e.fragments,n.fragments)}function Ba(e,n){if(!e)return n.length===0;if(e.length!==n.length)return false;for(let t=0;t<e.length;t+=1)if(!nR(e[t],n[t]))return false;return true}function Ih(e,n){return {revision:e.revision,pages:e.pages,...n.contentControls!==void 0?{contentControls:n.contentControls}:{},...n.controlContextToken!==void 0?{controlContextToken:n.controlContextToken}:{}}}function tR(e,n,t=Rh(n),r){if(t===""){let u=e.pages.some(f=>f.contentControls!==void 0&&f.contentControls.length>0);if(!u&&e.controlContextToken===t&&Ba(e.contentControls,[]))return e;let p=u?e.pages.map(f=>f.contentControls!==void 0&&f.contentControls.length>0?{...f,contentControls:[]}:f):e.pages;return {revision:e.revision,pages:p,contentControls:[],controlContextToken:t}}let o=UP(n),a=ZP(e),i=o.map(u=>QP(u,a)),l=new Map;for(let u of i)for(let p of u.fragments){let f=l.get(p.pageIndex),m={...u,fragments:[p]};f?f.push(m):l.set(p.pageIndex,[m]);}if(e.controlContextToken===t&&Ba(e.contentControls,i)&&e.pages.every(u=>Ba(u.contentControls,l.get(u.index)??[])))return e;let s=false,d=e.pages.map(u=>{let p=l.get(u.index)??[];return Ba(u.contentControls,p)||p.length===0&&!u.contentControls?u:(s=true,{...u,contentControls:p})}),c=s?d:e.pages;return c===e.pages&&e.controlContextToken===t&&Ba(e.contentControls,i)?e:{revision:e.revision,pages:c,contentControls:i,controlContextToken:t}}var kh="Calibri, Carlito, Helvetica, Arial, sans-serif",rR=4096,oR=256;function vh(e,n){return e===void 0?Math.max(1,Math.floor(n)):Number.isFinite(e)&&e>0?Math.max(1,Math.floor(e)):1}function Th(e){let n=new Map,t=0;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>e;){let a=n.keys().next();if(a.done)break;n.delete(a.value),t+=1;}},get size(){return n.size},get evictions(){return t}}}var Oh=/^[\p{L}\p{N}\p{M} \-.+_]{1,64}$/u;function Ch(e=null){return e!=null&&typeof e.measureText=="function"}function Bh(e={}){let n=e.scale??1;if(!(n>0)||!Number.isFinite(n))return null;let t=e.fallbackFamily??kh,r=e.context??null;if(!Ch(r))return null;let o=r,a=Th(vh(e.maxWidthEntries,rR)),i=Th(vh(e.maxMetricsEntries,oR)),l=e.fontAlias,s=c=>{let u=c.fontFamily&&Oh.test(c.fontFamily)?c.fontFamily:null,p=u?l?.(u):void 0,f=p&&Oh.test(p)?p:null,m=u?f?`"${f}", "${u}", ${t}`:`"${u}", ${t}`:t,g=c.bold?"bold":"normal",h=c.italic?"italic":"normal",y=c.fontSizePt*(c.verticalAlign==="baseline"?1:.75)*n;return `${h} ${g} ${y}px ${m}`},d=(c,u,p)=>c/n*(p.horizontalScalePercent/100)+u.length*p.characterSpacingPt;return {measure(c,u){if(c.length===0)return 0;let p=s(u),f=`${p}\0${c}`,m=a.get(f);if(m!==void 0)return d(m,c,u);o.font=p;let g=o.measureText(c).width;return a.set(f,g),d(g,c,u)},lineMetrics(c){let u=c.fontSizePt*(c.verticalAlign==="baseline"?1:.75),p=s(c),f=i.get(p);if(f)return f;let m=u*1.15,g=u*.8;o.font=p;let h=o.measureText("Hxg"),y=h.fontBoundingBoxAscent,x=h.fontBoundingBoxDescent;if(typeof y=="number"&&Number.isFinite(y)&&y>0&&(g=y/n,typeof x=="number"&&Number.isFinite(x)&&x>=0)){let C=(y+x)/n;C>0&&(m=C);}m>0||(m=u*1.15);let v={height:m,baseline:g};return i.set(p,v),v}}}function aR(e=1,n={}){let t=Bh({...n,scale:n.scale??e});return t?{measurer:t,producer:n.fontAlias?"canvas-measurer+embedded":"canvas-measurer"}:{measurer:El(),producer:"fixed-measurer"}}function iR(e){return e.box}function Lh(e,n){if(e.kind==="paragraph"){n.add(e.paragraphId);return}for(let t of e.rows)for(let r of t.cells)for(let o of r.blocks)Lh(o,n);}function lR(e){let n=new Map,t=(o,a,i)=>{if(!(o.kind==="textValue"||i>chunk2GSRLGUI_cjs.fe*4)){for(let l of o.children)if(l.kind!=="textValue"){if(l.kind==="paragraph"){for(let s of r)n.get(s)?.push(l.id);t(l,l.id,i+1);continue}if(l.kind==="contentControl"){n.set(l.id,[]),r.push(l.id);let s=chunk2GSRLGUI_cjs.pe(l);s&&t(s,a,i+1),r.pop();let d=n.get(l.id);d&&d.length===0&&a!==null&&d.push(a);continue}t(l,a,i+1);}}},r=[];return t(e,null,0),n}function sR(e,n){let t=Math.min(e.x,n.x),r=Math.min(e.y,n.y);return {x:t,y:r,width:Math.max(e.x+e.width,n.x+n.width)-t,height:Math.max(e.y+e.height,n.y+n.height)-r}}function dR(e,n){let t=chunk2GSRLGUI_cjs.te(e.root);if(t.length===0)return cR;let r=new Map;n.pages.forEach((i,l)=>{(d=>{for(let c of d){let u=new Set;Lh(c,u);for(let p of u){let f=r.get(p)??[];f.push({pageIndex:l,box:iR(c)}),r.set(p,f);}}})(i.fragments);});let o=lR(e.root),a=[];for(let i of t){let l=chunk2GSRLGUI_cjs.re(i.node),s=[...i.ancestors.map(p=>chunk2GSRLGUI_cjs.re(p).lock),l.lock],d=o.get(i.node.id)??[],c=new Map;for(let p of d)for(let f of r.get(p)??[]){let m=c.get(f.pageIndex);c.set(f.pageIndex,m?sR(m,f.box):f.box);}let u=[...c.entries()].sort((p,f)=>p[0]-f[0]).map(([p,f])=>({pageIndex:p,...f}));a.push({controlId:i.node.id,type:l.type,level:chunk2GSRLGUI_cjs.se(i.node),depth:i.depth,lock:l.lock,effectiveLock:chunk2GSRLGUI_cjs.we(s),showingPlaceholder:l.showingPlaceholder,temporary:l.temporary,...l.tag===void 0?{}:{tag:l.tag},...l.alias===void 0?{}:{alias:l.alias},...l.id===void 0?{}:{id:l.id},...l.dataBinding===void 0?{}:{dataBinding:l.dataBinding},paragraphIds:d,fragments:u});}return a}var cR=Object.freeze([]);var Fh=e=>e.verticalAlign==="baseline"?1:.75;function Eh(e){let n=Math.round(e.fontSizePt*2);return Math.max(1,n)}function uR(e){let{shaper:n,resolveFont:t,fallback:r,shapingLibrary:o,unicodeDataVersion:a,fixedPointScale:i=1e3,script:l="Latn",language:s="en"}=e,d=new Map,c=new Map,u=(f,m)=>`${f.identity}|${Eh(m)}`,p=(f,m,g)=>n.shape({text:f,fontSizeHalfPoints:Eh(g),bidiLevel:0,environment:rr({font:m,variationAxes:{},shapingLibrary:o,unicodeDataVersion:a,normalization:"none",script:l,language:s,direction:"ltr",features:{},fallbackOrder:[],fixedPointScale:i,roundingMode:"halfToEven"})});return {measure(f,m){if(f.length===0)return 0;let g=t(m);if(!g)return r.measure(f,m);let h=`${u(g,m)}|${f}`,y=d.get(h);if(y===void 0){let x=0;try{for(let v of p(f,g,m).glyphs)x+=v.advanceX;}catch{return r.measure(f,m)}y=x/i,d.set(h,y);}return y*Fh(m)*(m.horizontalScalePercent/100)+f.length*m.characterSpacingPt},lineMetrics(f){let m=t(f);if(!m)return r.lineMetrics(f);let g=Fh(f),h=u(m,f),y=c.get(h);if(y)return g===1?y:{height:y.height*g,baseline:y.baseline*g};let x,v=true;try{let C=p(" ",m,f),M=C.metrics.ascent/i,N=C.metrics.descent/i,P=M+N;P>0?x={height:P,baseline:M}:(x=r.lineMetrics(f),v=!1);}catch{x=r.lineMetrics(f),v=false;}return v?(c.set(h,x),g===1?x:{height:x.height*g,baseline:x.baseline*g}):x}}}function fR(e){let{layout:n,viewport:t}=e,r=new Set;if(!t){for(let s of n.pages)r.add(s.index);return r}let o=Math.max(0,Math.trunc(e.overscanPages??1)),a=t.top+t.height,i=-1,l=-1;for(let s of n.pages){let d=s.box.y;d+s.box.height>=t.top&&d<=a&&(i===-1&&(i=s.index),l=s.index);}if(i===-1){let s=pR(n,t.top);s!==null&&(i=s,l=s);}if(i!==-1){let s=Math.max(0,i-o),d=Math.min(n.pages.length-1,l+o);for(let c=s;c<=d;c+=1)r.add(c);}for(let s of e.pinnedPages??[])s>=0&&s<n.pages.length&&r.add(s);return r}function pR(e,n){let t=null,r=Number.POSITIVE_INFINITY;for(let o of e.pages){let a=n<o.box.y?o.box.y-n:n>o.box.y+o.box.height?n-(o.box.y+o.box.height):0;a<r&&(r=a,t=o.index);}return t}var Mh=["text-local","paragraph-local","flow-structural","global"];function Nh(e,n){return Mh.indexOf(n)>Mh.indexOf(e)?n:e}function mR(e){return {impact:"text-local",paragraphIds:new Set,created:new Set,deleted:new Set,dependencyKeys:new Set,structural:false,revision:e}}function gR(e){let{run:n,currentRevision:t,publish:r,schedule:o}=e,a=null,i=null,l=null,s=0,d=0;function c(h){let y=e.runCooperatively;if(!y)return n(h);let x=y(h);l=x;try{for(;;){let v=x.step();if(v)return v;if(t()!==h.revision)return x.cancel(),d+=1,null;if(l!==x)return null}}finally{l===x&&(l=null);}}function u(h){let y=f(t());y.impact=Nh(y.impact,h.impact),y.structural=y.structural||h.structural;for(let x of h.paragraphIds)y.paragraphIds.add(x);for(let x of h.created)y.created.add(x);for(let x of h.deleted)y.deleted.add(x);for(let x of h.dependencyKeys)y.dependencyKeys.add(x);}let p=h=>({impact:h.impact,paragraphIds:h.paragraphIds,created:h.created,deleted:h.deleted,dependencyKeys:h.dependencyKeys,structural:h.structural,revision:h.revision});function f(h){return a||(a=mR(h)),a.revision=Math.max(a.revision,h),a}function m(){!o||i||(i=o(()=>{i=null,g();}));}function g(){i&&(i(),i=null),l&&(l.cancel(),l=null,d+=1);let h=a;if(!h)return false;a=null;let y=p(h),x=c(y);return !x||x.revision!==t()?(s+=1,u(y),m(),false):(r(x,y),true)}return {notify(h){let y=f(h.toRevision);y.impact=Nh(y.impact,h.impact);for(let x of h.dirty)y.paragraphIds.add(x);for(let x of h.created)y.created.add(x),y.paragraphIds.add(x);for(let x of h.deleted)y.deleted.add(x),y.paragraphIds.add(x);for(let x of h.dependencyKeys)y.dependencyKeys.add(x);for(let x of h.splitJoin)y.structural=true,"split"in x?(y.paragraphIds.add(x.split.from),y.paragraphIds.add(x.split.tail)):(y.paragraphIds.add(x.join.kept),y.paragraphIds.add(x.join.removed));(h.impact==="flow-structural"||h.impact==="global")&&(y.structural=true),m();},invalidateAll(h,y){let x=f(h);x.impact="flow-structural",x.structural=true,y&&x.dependencyKeys.add(y),m();},flush:g,pending:()=>a?p(a):null,cancel(){i?.(),i=null,l?.cancel(),l=null,a=null;},get staleDiscards(){return s},get cancelledRuns(){return d}}}function Pr(e,n,t,r){let o=r?r.spans:e.spans;for(let i of r?r.drawings:e.drawings??[]){if(n===i.start)return i.advanceStart;if(n===i.start+1)return i.advanceEnd}let a=r?r.spans[0]?.box.x??e.contentX:e.contentX;for(let i of o){if(n<=i.range.start)return i.box.x;if(n>=i.range.end){a=i.box.x+i.box.width;continue}return gl(i,n,t)}return a}function Ah(e,n){let t=Dc(e,n);if(!t)return [];let r=[];for(let o of e.pages)for(let a of rn(o))for(let i of a.lines)for(let l of yn(i)){let s=po(e,l,t.from,t.to);if(!s)continue;let d=Pr(i,s.start,void 0,l),c=Pr(i,s.end,void 0,l);r.push({pageIndex:o.index,x:Math.min(d,c),y:i.box.y,width:Math.abs(c-d),height:i.box.height});}return r}function Dh(e,n,t){let r=new Map;if(n.length===0)return r;for(let o of e.pages)if(!(t&&!t.has(o.index)))for(let a of rn(o))for(let i of a.lines)for(let l of yn(i))for(let s of n){let d=po(e,l,s.from,s.to);if(!d)continue;let c=Pr(i,d.start,void 0,l),u=Pr(i,d.end,void 0,l),p=r.get(s.key)??[];p.push({pageIndex:o.index,x:Math.min(c,u),y:i.box.y,width:Math.abs(u-c),height:i.box.height}),r.set(s.key,p);}return r}function _c(e){let n=new Map;for(let t=0;t<e.length;t+=1){let r=e[t].position,o=n.get(r.paragraphId);o||(o=new Map,n.set(r.paragraphId,o)),o.has(r.offset)||o.set(r.offset,t);}return {stops:e,index:n}}var Nl=class{#n=new WeakMap;#l=new WeakMap;get(n,t,r,o){let a;if(!r)a=this.#n.get(n)??new Map,this.#n.has(n)||this.#n.set(n,a);else {let s=this.#l.get(n);s||(s=new WeakMap,this.#l.set(n,s)),a=s.get(r)??new Map,s.has(r)||s.set(r,a);}let i=a.get(t);if(i)return i;let l=o();return a.set(t,l),l}};function _h(e){let n=[],t=new Set;for(let r of e)t.has(r.lineId)||(t.add(r.lineId),n.push(r.lineId));return n}function Hh(e,n,t){let r=null;for(let o of e)o.lineId===n&&(!r||Math.abs(o.x-t)<Math.abs(r.x-t))&&(r=o);return r}function zh(e,n,t){let r=t.index.get(e.paragraphId)?.get(e.offset);if(r===void 0)return null;let o=t.stops[r].lineId,a=t.stops.filter(i=>i.lineId===o);return (n===-1?a[0]:a[a.length-1])?.position??null}function jh(e,n,t,r,o){let a=o(e.paragraphId),i=a.index.get(e.paragraphId)?.get(e.offset);if(i===void 0)return null;let l=i+n;if(l>=0&&l<a.stops.length)return {position:a.stops[l].position,desiredX:null};let s=t[r+n];if(!s)return {position:e,desiredX:null};let d=o(s).stops,c=n===-1?d[d.length-1]:d[0];return c?{position:c.position,desiredX:null}:null}function Gh(e,n,t){let r=e===-1?n[0]:n[n.length-1];if(!r)return null;let o=t(r).stops;return (e===-1?o[0]:o[o.length-1])?.position??null}function Wh(e,n,t,r,o,a){let i=a(e.paragraphId),l=i.index.get(e.paragraphId)?.get(e.offset);if(l===void 0)return null;let s=i.stops[l],d=t??s.x,c=_h(i.stops),u=c.indexOf(s.lineId),p=c[u+n];if(p){let m=Hh(i.stops,p,d);return m?{position:m.position,desiredX:d}:null}for(let m=o+n;m>=0&&m<r.length;m+=n){let g=a(r[m]),h=_h(g.stops),y=n===-1?h[h.length-1]:h[0];if(!y)continue;let x=Hh(g.stops,y,d);if(x)return {position:x.position,desiredX:d}}let f=n===-1?i.stops[0]:i.stops[i.stops.length-1];return f?{position:f.position,desiredX:d}:null}var hR=/[\p{L}\p{N}_'\u2019]/u;function La(e,n,t){let r=a=>{let i=e[a];return i!==void 0&&hR.test(i)},o=Math.max(0,Math.min(n,e.length));if(t===-1){for(;o>0&&!r(o-1);)o-=1;for(;o>0&&r(o-1);)o-=1;return o}for(;o<e.length&&!r(o);)o+=1;for(;o<e.length&&r(o);)o+=1;return o}var Xh=new WeakMap;function It(e){let n=Xh.get(e);if(n)return n;let t=new Map,r=(a,i)=>{for(let l of yn(a)){let s={line:a,pageIndex:i},d=t.get(l.paragraphId);d?d.push(s):t.set(l.paragraphId,[s]);}},o=(a,i)=>{let l=s=>{for(let d of s){if(d.kind==="paragraph"){for(let c of d.lines)r(c,i);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 e.pages){for(let i of rn(a))for(let l of i.lines)r(l,a.index);a.header&&o(a.header.fragments,a.index),a.footer&&o(a.footer.fragments,a.index);for(let i of [a.footnotes,a.endnotes])if(i)for(let l of i.notes)o(l.fragments,a.index);}return Xh.set(e,t),t}function yR(e,n,t){let r=It(e).get(n.range.paragraphId)??[],o=false;for(let a of r){if(a.line===n){o=true;continue}if(o&&a.line.range.start===t)return true}return false}function bR(e,n,t){for(let{line:r}of It(e).get(n)??[])if(r.range.start===t&&r.drawings?.some(o=>o.start===t))return r;return null}function xR(e,n){let t=e.deletedRanges;if(t===void 0)return false;for(let r of t)if(n>r.start&&n<r.end)return true;return false}function SR(e,n,t){for(let r of t?t.spans:e.spans)if(!(n<=r.range.start||n>=r.range.end)&&(r.projected||r.text.length!==r.range.end-r.range.start))return true;return false}function Vh(e){let n=e.spans[e.spans.length-1]?.text;return n===`
|
|
16
|
+
`||n===chunk2GSRLGUI_cjs.Xb}function Dl(e,n,t,r,o,a,i){for(let l of yn(t))i!==void 0&&l.paragraphId!==i||wR(e,n,t,l,r,o,a);}function wR(e,n,t,r,o,a,i){let l=yn(t).length>1;for(let s=r.start;s<=r.end;s+=1)if(!(s===r.end&&s>r.start&&!l&&Vh(t)&&yR(n,t,s))){if(s===r.start&&s>a&&e.length>0){let d=e[e.length-1];if(d.position.paragraphId===r.paragraphId&&d.position.offset===s)continue}SR(t,s,r)||xR(t,s)||e.push({position:{paragraphId:r.paragraphId,offset:s},x:Pr(t,s,i,r),y:t.box.y,height:t.box.height,lineId:t.id,pageIndex:o});}}function Yh(e,n,t,r,o){for(let a of n){if(a.kind==="paragraph"){for(let i of a.lines)Dl(r,e,i,t,a.range.start,o);continue}for(let i of a.rows)if(!i.isHeaderRepeat)for(let l of i.cells)Yh(e,l.blocks,t,r,o);}}var PR=new Nl;function Kh(e,n){let t=[];for(let r of e.pages)for(let o of rn(r))for(let a of o.lines)Dl(t,e,a,r.index,o.range.start,n);return t}function RR(e,n,t){let o=(It(e).get(n.paragraphId)??[]).find(({line:i})=>{let l=Rt(i,n.paragraphId);return l!==null&&n.offset>=l.start&&n.offset<=l.end});if(!o||yn(o.line).length<2)return null;let a=[];return Dl(a,e,o.line,o.pageIndex,0,t),_c(a)}function Al(e,n,t){return PR.get(e,n,t,()=>{let r=[];for(let{line:o,pageIndex:a}of It(e).get(n)??[])Dl(r,e,o,a,0,t,n);return _c(r)})}function IR(e,n,t,r){if(!e.pages[n])return [];let o=[];return Yh(e,t,n,o,r),o}function vR(e){return e?typeof e.measure=="function"?{measurer:e}:e:{}}function Uh(e,n,t){let r=vR(t),o=It(e).get(n.paragraphId)??[],a=r.preferredPageIndex,i=a===void 0?o:[...o].sort((s,d)=>{let c=s.pageIndex===a?0:1,u=d.pageIndex===a?0:1;return c-u}),l=null;for(let{line:s,pageIndex:d}of i){let c=Rt(s,n.paragraphId);if(!c||n.offset<c.start||n.offset>c.end)continue;if(n.offset===c.end&&n.offset>c.start&&yn(s).length===1&&Vh(s)){l??={line:s,pageIndex:d};continue}if(n.offset===c.end&&n.offset>c.start&&bR(e,n.paragraphId,n.offset))continue;let u=Ra(s,n.offset,r.measurer,c);return {position:n,x:u.x,y:u.y,height:u.height,lineId:s.id,pageIndex:d}}if(l){let s=Ra(l.line,n.offset,r.measurer,Rt(l.line,n.paragraphId));return {position:n,x:s.x,y:s.y,height:s.height,lineId:l.line.id,pageIndex:l.pageIndex}}return null}function TR(e,n){let t=n.pageIndex!==void 0&&e.pages[n.pageIndex]?n.pageIndex:0;return fl(e,t,n)?.caret??null}function OR(e,n){let t=n.pageIndex!==void 0&&e.pages[n.pageIndex]?n.pageIndex:0;return ml(e,t,n)}function kR(e){return Ts(e)}function Dc(e,n){if(n.anchor.paragraphId===n.head.paragraphId)return n.anchor.offset<=n.head.offset?{from:n.anchor,to:n.head}:{from:n.head,to:n.anchor};let t=Pt(e),r=t.indexOf(n.anchor.paragraphId),o=t.indexOf(n.head.paragraphId);return r===-1||o===-1?null:r<o||r===o&&n.anchor.offset<=n.head.offset?{from:n.anchor,to:n.head}:{from:n.head,to:n.anchor}}function xo(e,n){let t=[],r=new Set;for(let{line:a}of It(e).get(n)??[]){let i=Rt(a,n);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," ");t.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),t.push({start:s,text:"\uFFFC"}));}}}t.sort((a,i)=>a.start-i.start);let o="";for(let a of t)a.start>o.length&&(o+=" ".repeat(a.start-o.length)),o=o.slice(0,a.start)+a.text;return o}function $h(e,n,t,r){let o=Pt(e),a=fo(e).get(n.paragraphId);return a===void 0?null:jh(n,t,o,a,i=>Al(e,i,r))}function CR(e,n,t,r=null,o={}){if(!o.stops&&(t==="left"||t==="right"))return $h(e,n,t==="left"?-1:1,o.measurer);if(!o.stops&&(t==="wordLeft"||t==="wordRight")){let s=t==="wordLeft"?-1:1,d=La(xo(e,n.paragraphId),n.offset,s);return d===n.offset?$h(e,n,s,o.measurer):{position:{paragraphId:n.paragraphId,offset:d},desiredX:null}}if(!o.stops&&(t==="lineStart"||t==="lineEnd")){let s=zh(n,t==="lineStart"?-1:1,RR(e,n,o.measurer)??Al(e,n.paragraphId,o.measurer));return s?{position:s,desiredX:null}:null}if(!o.stops&&(t==="documentStart"||t==="documentEnd")){let s=Gh(t==="documentStart"?-1:1,Pt(e),d=>Al(e,d,o.measurer));return s?{position:s,desiredX:null}:null}if(!o.stops&&(t==="up"||t==="down")){let s=fo(e).get(n.paragraphId);return s===void 0?null:Wh(n,t==="up"?-1:1,r,Pt(e),s,d=>Al(e,d,o.measurer))}let a=o.stops?[...o.stops]:Kh(e,o.measurer);if(a.length===0)return null;let i=a.findIndex(s=>s.position.paragraphId===n.paragraphId&&s.position.offset===n.offset);if(i===-1)return null;let l=a[i];switch(t){case "left":return {position:a[Math.max(0,i-1)].position,desiredX:null};case "right":return {position:a[Math.min(a.length-1,i+1)].position,desiredX:null};case "lineStart":return {position:a.filter(d=>d.lineId===l.lineId)[0].position,desiredX:null};case "lineEnd":{let s=a.filter(d=>d.lineId===l.lineId);return {position:s[s.length-1].position,desiredX:null}}case "wordLeft":case "wordRight":{let s=xo(e,n.paragraphId),d=t==="wordLeft"?-1:1,c=La(s,n.offset,d);return c===n.offset?{position:a[d===-1?Math.max(0,i-1):Math.min(a.length-1,i+1)].position,desiredX:null}:{position:{paragraphId:n.paragraphId,offset:c},desiredX:null}}case "documentStart":return {position:a[0].position,desiredX:null};case "documentEnd":return {position:a[a.length-1].position,desiredX:null};case "pageUp":case "pageDown":{let s=r??l.x,d=l.pageIndex+(t==="pageUp"?-1:1),c=a.filter(f=>f.pageIndex===d);if(c.length===0)return {position:(t==="pageUp"?a[0]:a[a.length-1]).position,desiredX:s};let u=c[0],p=Number.POSITIVE_INFINITY;for(let f of c){let m=Math.abs(f.y-l.y)*1e3+Math.abs(f.x-s);m<p&&(p=m,u=f);}return {position:u.position,desiredX:s}}case "up":case "down":{let s=r??l.x,d=[],c=new Set;for(let g of a)c.has(g.lineId)||(c.add(g.lineId),d.push(g.lineId));let u=d.indexOf(l.lineId),p=t==="up"?u-1:u+1;if(p<0||p>=d.length)return {position:(t==="up"?a[0]:a[a.length-1]).position,desiredX:s};let f=a.filter(g=>g.lineId===d[p]),m=f[0];for(let g of f)Math.abs(g.x-s)<Math.abs(m.x-s)&&(m=g);return {position:m.position,desiredX:s}}default:return null}}function BR(e,n){return Uh(e,n)}function LR(e,n){let t=Dc(e,n);if(!t)return [];if(t.from.paragraphId===t.to.paragraphId&&t.from.offset===t.to.offset)return FR(e,t.from);let r=[];if(t.from.paragraphId===t.to.paragraphId){for(let{line:d}of It(e).get(t.from.paragraphId)??[]){let c=Rt(d,t.from.paragraphId);if(!c)continue;let u=po(e,c,t.from,t.to);if(u)for(let p of c.spans)p.range.end>u.start&&p.range.start<u.end&&r.push(p);}return r}let o=Pt(e),a=fo(e),i=It(e),l=a.get(t.from.paragraphId)??-1,s=a.get(t.to.paragraphId)??-1;if(l===-1||s===-1)return [];for(let d=l;d<=s;d+=1)for(let{line:c}of i.get(o[d])??[]){let u=Rt(c,o[d]);if(!u)continue;let p=po(e,u,t.from,t.to);if(p)for(let f of u.spans)f.range.end>p.start&&f.range.start<p.end&&r.push(f);}return r}function FR(e,n){let t=null;for(let{line:r}of It(e).get(n.paragraphId)??[])for(let o of Rt(r,n.paragraphId)?.spans??[]){if(o.range.start<n.offset&&n.offset<=o.range.end)return [o];t===null&&o.range.start===n.offset&&(t=o);}return t?[t]:[]}var Zh=new WeakMap;function Kt(e){let n=Zh.get(e);if(n)return n;let t=new Map,r=new Map,o=new Map,a=(l,s)=>{for(let d of l){if(d.kind==="paragraph")continue;let c=d.tableId,u=o.get(c);u||(u=new Map,o.set(c,u),t.set(c,[]),r.set(c,new Map));for(let p of d.rows){let f=u.get(p.id);f===void 0&&(f=u.size,u.set(p.id,f),r.get(c).set(f,p.cells));for(let m of p.cells)t.get(c).push({pageIndex:s,tableId:c,row:p,cell:m,rowIndex:f,isHeaderRepeat:p.isHeaderRepeat}),a(m.blocks,s);}}};for(let l of e.pages)a(l.fragments,l.index);let i=new Map;for(let[l,s]of t)i.set(l,{placed:s,rows:r.get(l)??new Map});return Zh.set(e,i),i}function qh(e){let n=0;for(let t of e.rows.values())for(let r of t)n=Math.max(n,Yt(r).to+1);return n}var Yt=e=>({from:e.gridColumn,to:e.gridColumn+Math.max(1,e.gridSpan)-1});function ER(e,n,t){if(n.tableId!==t.tableId)return null;let r=Kt(e).get(n.tableId);if(!r)return null;let o=Math.min(n.rowIndex,t.rowIndex),a=Math.max(n.rowIndex,t.rowIndex),i=Math.min(Yt(n).from,Yt(t).from),l=Math.max(Yt(n).to,Yt(t).to),s=f=>{let{from:m,to:g}=Yt(f);return g>=i&&m<=l},d=f=>(r.rows.get(f)??[]).some(m=>m.vMergeContinue&&s(m)),c=r.rows.size+qh(r)+2;for(let f=0;!(f>c);f+=1){let m=false;for(let[g,h]of r.rows)if(!(g<o||g>a))for(let y of h){if(!s(y))continue;let{from:x,to:v}=Yt(y);x<i&&(i=x,m=true),v>l&&(l=v,m=true);}for(;o>0&&d(o);)o-=1,m=true;for(;d(a+1);)a+=1,m=true;if(!m)break}let u=[],p=new Set;for(let f of r.placed){if(f.isHeaderRepeat||f.rowIndex<o||f.rowIndex>a)continue;let{from:m,to:g}=Yt(f.cell);g<i||m>l||p.has(f.cell.id)||(p.add(f.cell.id),u.push(f.cell.id));}return u.length===0?null:{kind:"cells",tableId:n.tableId,cellIds:u,rows:{from:o,to:a},columns:{from:i,to:l},text:MR(e,n.tableId,u)}}function _l(e,n){let t=new Set(n),r=[],o=new Set;for(let a of Kt(e).values())for(let i of a.placed)if(!(i.isHeaderRepeat||!t.has(i.cell.id)))for(let l of i.cell.blocks)Fa(l,r,o);return r}function Fa(e,n,t){if(e.kind==="paragraph"){for(let r of Xt(e))t.has(r)||(t.add(r),n.push(r));return}for(let r of e.rows)if(!r.isHeaderRepeat)for(let o of r.cells)for(let a of o.blocks)Fa(a,n,t);}function MR(e,n,t){let r=_l(e,t),o=r[0],a=r[r.length-1];return !o||!a?NR(e,n):{anchor:{paragraphId:o,offset:0},head:{paragraphId:a,offset:xo(e,a).length}}}function NR(e,n){let t=Kt(e).get(n);for(let o of t?.placed??[]){if(o.isHeaderRepeat)continue;let a=[];for(let l of o.cell.blocks)Fa(l,a,new Set);let i=a[0];if(i){let l={paragraphId:i,offset:0};return {anchor:l,head:l}}}for(let o of e.pages)for(let a of rn(o)){let i={paragraphId:a.paragraphId,offset:0};return {anchor:i,head:i}}let r={paragraphId:"",offset:0};return {anchor:r,head:r}}function AR(e,n){let t=new Set(_l(e,n)),r=[],o=new Set;for(let a of e.pages)for(let i of rn(a))if(t.has(i.paragraphId))for(let l of i.lines)for(let s of l.spans){let d=`${s.range.paragraphId}:${s.range.start}:${s.range.end}`;o.has(d)||(o.add(d),r.push(s));}return r}function DR(e,n){let t=new Set(n),r=[];for(let o of Kt(e).values())for(let a of o.placed)t.has(a.cell.id)&&r.push({pageIndex:a.pageIndex,x:a.cell.box.x,y:a.cell.box.y,width:a.cell.box.width,height:a.cell.box.height});return r}function _R(e,n){let t=Kt(e).get(n.tableId);if(!t)return "";let r=new Set(n.cellIds),o=new Map,a=new Set;for(let i of t.placed){if(i.isHeaderRepeat||!r.has(i.cell.id)||a.has(i.cell.id))continue;a.add(i.cell.id);let l=_l(e,[i.cell.id]).map(d=>xo(e,d)).join(`
|
|
17
|
+
`),s=o.get(i.rowIndex);s?s.set(i.cell.gridColumn,l):o.set(i.rowIndex,new Map([[i.cell.gridColumn,l]]));}return [...o.keys()].sort((i,l)=>i-l).map(i=>{let l=o.get(i),s=[];for(let d=n.columns.from;d<=n.columns.to;d+=1)s.push(l.get(d)??"");return s.join(" ")}).join(`
|
|
18
|
+
`)}function Hc(e,n){let t=null,r=-1;for(let[o,a]of Kt(e))for(let i of a.placed){if(i.isHeaderRepeat)continue;let l=[];for(let d of i.cell.blocks)Fa(d,l,new Set);if(!l.includes(n))continue;let s=o.length;s<=r||(r=s,t={tableId:o,rows:a.rows.size,columns:qh(a),rowIndex:i.rowIndex,columnIndex:i.cell.gridColumn});}return t}function LB(e,n,t){if(t){let a=Hc(e,n);if(!a||a.tableId!==t.tableId)return null;let i=t.cellIds[0];if(!i)return null;let l=Kt(e).get(t.tableId);if(!l)return null;for(let s of l.placed)if(s.cell.id===i)return {tableId:t.tableId,rowId:s.row.id,cellId:i,cellIds:t.cellIds,gridColumnIndex:s.cell.gridColumn,isHeaderRepeat:s.isHeaderRepeat};return null}let r=Hc(e,n);if(!r)return null;let o=Kt(e).get(r.tableId);if(!o)return null;for(let a of o.placed){if(a.isHeaderRepeat)continue;let i=[];for(let l of a.cell.blocks)Fa(l,i,new Set);if(i.includes(n))return {tableId:r.tableId,rowId:a.row.id,cellId:a.cell.id,cellIds:[a.cell.id],gridColumnIndex:a.cell.gridColumn,isHeaderRepeat:a.row.isHeaderRepeat}}return null}exports.$=ei;exports.$a=et;exports.$b=qd;exports.$c=Dg;exports.A=qa;exports.Aa=_b;exports.Ab=$p;exports.Ac=bl;exports.Ad=Kh;exports.B=pb;exports.Ba=Hb;exports.Bb=Cd;exports.Bc=En;exports.Bd=IR;exports.C=mb;exports.Ca=zb;exports.Cb=xt;exports.Cc=ik;exports.Cd=Uh;exports.D=gb;exports.Da=Hs;exports.Db=Wi;exports.Dc=hc;exports.Dd=TR;exports.E=Rs;exports.Ea=jr;exports.Eb=Xi;exports.Ec=yc;exports.Ed=OR;exports.F=rf;exports.Fa=js;exports.Fb=im;exports.Fc=bc;exports.Fd=kR;exports.G=of;exports.Ga=Gs;exports.Gb=Ji;exports.Gc=qw;exports.Gd=xo;exports.H=af;exports.Ha=Xo;exports.Hb=Qi;exports.Hc=wl;exports.Hd=CR;exports.I=lf;exports.Ia=$b;exports.Ib=el;exports.Ic=Wn;exports.Id=BR;exports.J=sf;exports.Ja=Gr;exports.Jb=Md;exports.Jc=Bg;exports.Jd=LR;exports.K=df;exports.Ka=Ws;exports.Kb=cm;exports.Kc=Pl;exports.Kd=ER;exports.L=xb;exports.La=ir;exports.Lb=Nd;exports.Lc=Rl;exports.Ld=_l;exports.M=Sb;exports.Ma=Ub;exports.Mb=mr;exports.Mc=rP;exports.Md=AR;exports.N=Ar;exports.Na=Zb;exports.Nb=jn;exports.Nc=Lg;exports.Nd=DR;exports.O=wb;exports.Oa=ut;exports.Ob=rl;exports.Oc=Fg;exports.Od=_R;exports.P=vs;exports.Pa=At;exports.Pb=ya;exports.Pc=xr;exports.Pd=Hc;exports.Q=Do;exports.Qa=kf;exports.Qb=Cm;exports.Qc=aP;exports.Qd=LB;exports.R=rn;exports.Ra=Zs;exports.Rb=Bm;exports.Rc=Ta;exports.S=cf;exports.Sa=Cf;exports.Sb=ba;exports.Sc=Eg;exports.T=uf;exports.Ta=qs;exports.Tb=co;exports.Tc=go;exports.U=qR;exports.Ua=Bf;exports.Ub=$d;exports.Uc=Oa;exports.V=vb;exports.Va=ft;exports.Vb=Mm;exports.Vc=Mg;exports.W=Tb;exports.Wa=Js;exports.Wb=iw;exports.Wc=lP;exports.X=Ts;exports.Xa=Qs;exports.Xb=uo;exports.Xc=Ng;exports.Y=Qa;exports.Ya=Qn;exports.Yb=Vd;exports.Yc=vc;exports.Z=Os;exports.Za=Ee;exports.Zb=Yd;exports.Zc=Il;exports._=ff;exports._a=zt;exports._b=Zd;exports._c=Ag;exports.a=Un;exports.aa=Dr;exports.ab=Sx;exports.ac=Xm;exports.ad=ka;exports.b=rr;exports.ba=Bs;exports.bb=td;exports.bc=$m;exports.bd=_g;exports.c=Vu;exports.ca=gf;exports.cb=fn;exports.cc=Vm;exports.cd=vl;exports.d=ps;exports.da=Ho;exports.db=on;exports.dc=Jd;exports.dd=Oc;exports.e=Va;exports.ea=hf;exports.eb=qr;exports.ec=ll;exports.ed=Xg;exports.f=dy;exports.fa=yf;exports.fb=na;exports.fc=Pt;exports.fd=kc;exports.g=Eo;exports.ga=Hr;exports.gb=ad;exports.gc=yn;exports.gd=cP;exports.h=cy;exports.ha=bf;exports.hb=Xf;exports.hc=yO;exports.hd=Bc;exports.i=uy;exports.ia=Ls;exports.ib=Lx;exports.ic=Xt;exports.id=Ol;exports.j=De;exports.ja=Fs;exports.jb=Fx;exports.jc=bO;exports.jd=eh;exports.k=zy;exports.ka=Es;exports.kb=gt;exports.kc=oc;exports.kd=nh;exports.l=Ku;exports.la=Ms;exports.lb=cr;exports.lc=Pa;exports.ld=rh;exports.m=nb;exports.ma=dt;exports.mb=ld;exports.mc=hw;exports.md=Ll;exports.n=Ya;exports.na=zo;exports.nb=ur;exports.nc=fl;exports.nd=El;exports.o=rb;exports.oa=Rn;exports.ob=$x;exports.oc=vO;exports.od=$P;exports.p=ob;exports.pa=Mt;exports.pb=Nv;exports.pc=yw;exports.pd=kh;exports.q=ab;exports.qa=Nb;exports.qb=yd;exports.qc=ml;exports.qd=Ch;exports.r=bs;exports.ra=Ns;exports.rb=Mi;exports.rc=ag;exports.rd=Bh;exports.s=Ss;exports.sa=zr;exports.sb=zi;exports.sc=gl;exports.sd=aR;exports.t=_n;exports.ta=As;exports.tb=Mp;exports.tc=Ra;exports.td=dR;exports.u=sb;exports.ua=ti;exports.ub=io;exports.uc=Bw;exports.ud=uR;exports.v=db;exports.va=jo;exports.vb=o0;exports.vc=kO;exports.vd=fR;exports.w=cb;exports.wa=Ds;exports.wb=so;exports.wc=CO;exports.wd=gR;exports.x=Za;exports.xa=_s;exports.xb=Dp;exports.xc=BO;exports.xd=Ah;exports.y=fb;exports.ya=Go;exports.yb=bt;exports.yc=LO;exports.yd=Dh;exports.z=ws;exports.za=Db;exports.zb=fa;exports.zc=FO;exports.zd=La;
|